-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvscode-data.json
507 lines (507 loc) · 24.8 KB
/
vscode-data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
{
"version": 1.1,
"tags": [
{
"name": "gataca-autoqr",
"description": {
"kind": "markdown",
"value": "This component built using stencyl allows an easy integration to display a GatacaQR using a predefined generated config that is downloaded when the component is displayed.\n\nAn AutoQR Config has the following structure:\n\n```typescript\nexport type QRConfig = {\n useButton: boolean;\n useWs: boolean;\n\n //To display any QR\n qrModalTitle?: string;\n qrModalDescription?: string;\n hideBrandTitle?: boolean;\n\n successCallback: (data?: any) => void;\n errorCallback: (error?: Error) => void;\n\n autostart: boolean;\n autorefresh: boolean;\n sessionTimeout?: number;\n\n qrRole: string;\n callbackServer: string;\n v2?: boolean;\n dynamicLink?: boolean;\n\n //Just for Polling\n checkStatus?: (id?: string) => Promise<{ result: RESULT_STATUS; data?: any }>;\n createSession?: () => Promise<{\n sessionId: string;\n authenticationRequest?: string;\n }>;\n pollingFrequency?: number;\n\n //Just for WS\n socketEndpoint: string;\n wsOnOpen?: (socket: WebSocket) => void;\n wsOnMessage?: (socket: WebSocket, msg: MessageEvent) => void;\n\n //Just for Buttons\n buttonText?: string;\n};\n```\n\nDepending on the parameters **useWs** and **useButton**, it will automatically load the corresponding component of the 4 possible options, with all the configuration loaded.\n\n| **useButton** \\ **useWs** | _false_: Using Polling | _true_: Using Websockets |\n|---|---|---|\n| _false_: Displaying the QR | [Gataca QR](../gataca-qr/readme.md) | [Gataca QRWS](../gataca-qrws/readme.md) |\n| _true_: Displaying an SSI Button | [Gataca SSIButton](../gataca-ssibutton/readme.md) | [Gataca SSIButtonWS](../gataca-ssibuttonws/readme.md) |"
},
"attributes": [
{
"name": "config-id",
"description": "***Mandatory***\nID of the QR configuration to display"
},
{
"name": "config-repository",
"description": "___Optional___\nConfigURL Repository to download the config from"
}
]
},
{
"name": "gataca-qr",
"description": {
"kind": "markdown",
"value": "This component built using stencyl allows an easy integration to display a gataca QR to be read by the wallet.\n\nThis component can be used with the prerequisite of having an application which can be integrated with GATACA Components: Connect and Certify. More precisely, your application will need to be able to perform the two operations against your connect or certify servers:\n\n1. Create sessions\n2. Consult sessions"
},
"attributes": [
{
"name": "autorefresh",
"description": "_[Optional]_\nSet to refresh the session automatically upon expiration. By default it is false"
},
{
"name": "autostart",
"description": "_[Optional]_\nSet to enable autoload when the QR is displayed. By default it is true"
},
{
"name": "by-brand-label",
"description": "_[Optional]_\nString to show \"by brand\" label"
},
{
"name": "callback-server",
"description": "***Mandatory just for V1***\nConnect/Certify Server where the wallet will send the data"
},
{
"name": "click-inside-box-label",
"description": "_[Optional]_\nString to show \"click inside\" label"
},
{
"name": "credentials-not-validated-label",
"description": "_[Optional]_\nString to show when credentials not validatedd"
},
{
"name": "creds-not-validated-error-label",
"description": "_[Optional]_\nString to show \"provided credentials not validates\" error"
},
{
"name": "dynamic-link",
"description": "_[Optional]_\nDisplay a link containing a dynamic link to invoke the wallet if closed"
},
{
"name": "failed-login-error-label",
"description": "_[Optional]_\nString to show \"failed login\" error"
},
{
"name": "hide-brand-title",
"description": "_[Optional]_\nBoolean to show or not show the gataca brand title"
},
{
"name": "hide-modal-box-shadow",
"description": "_[Optional]_\nBoolean to show or not show the modal title, brandTitle and description"
},
{
"name": "hide-modal-texts",
"description": "_[Optional]_\nBoolean to show or not show the modal title, brandTitle and description"
},
{
"name": "hide-qr-modal-description",
"description": "_[Optional]_\nBoolean to show or not show the QR Modal description"
},
{
"name": "logo-size",
"description": "_[Optional]_\nSize of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33"
},
{
"name": "logo-src",
"description": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
},
{
"name": "modal-height",
"description": "_[Optional]_\nHeight of the modal"
},
{
"name": "modal-title-color",
"description": "_[Optional]_\nString to set Modal title color"
},
{
"name": "modal-width",
"description": "_[Optional]_\nWidth of the modal"
},
{
"name": "polling-frequency",
"description": "_[Optional]_\nFrequency in seconds to check if the session has been validated"
},
{
"name": "qr-code-expired-label",
"description": "_[Optional]_\nString to show when qr code expired"
},
{
"name": "qr-modal-description",
"description": "_[Optional]_\nModifies the Modal description"
},
{
"name": "qr-modal-title",
"description": "_[Optional]_\nModifies the qr headline title"
},
{
"name": "qr-role",
"description": "***Mandatory just for V1***\nDecide if scanning the credential as a verifier to request credentials\nor as an issuer too issue credentials.\nOptions: connect | certify"
},
{
"name": "qr-size",
"description": "_[Optional]_\nSize of QR Displayed"
},
{
"name": "read-qr-description",
"description": "_[Optional]_\nString description to show when QR already read"
},
{
"name": "read-qr-title",
"description": "_[Optional]_\nString title to show when QR already read"
},
{
"name": "refresh-qr-label",
"description": "_[Optional]_\nString to show \"refresh QR\" label"
},
{
"name": "scan-qr-label",
"description": "_[Optional]_\nString to show \"scan QR\" label"
},
{
"name": "session-timeout",
"description": "_[Optional]_\nMaximum time window to display the session"
},
{
"name": "success-login-label",
"description": "_[Optional]_\nString to show \"successful login\" label"
},
{
"name": "user-not-scan-in-time-error-label",
"description": "_[Optional]_\nString to show \"user not scan in time\" error"
},
{
"name": "v-2",
"description": "_[Optional]_\nSet to use v2 links. The create session must be providing both an authentication request and a session Id"
},
{
"name": "waiting-start-session-label",
"description": "_[Optional]_\nString to show \"waiting start session\" label"
}
]
},
{
"name": "gataca-qrdisplay",
"description": {
"kind": "markdown",
"value": "This component built using stencyl allows an easy integration to display a QR with the gataca styles\n\nContinuing with that example, you could integrate in any HTML using the following code\n\n```html\n<!DOCTYPE html>\n<html dir=\"ltr\" lang=\"en\">\n\n<head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0\">\n <title>Gataca QR Display Component</title>\n <script type=\"module\" src=\"/build/gataca-qrdisplay.esm.js\"></script>\n <script nomodule src=\"/build/gataca-qrdisplay.js\"></script>\n</head>\n\n<body>\n <div class=\"your-container-styles\">\n\n <gataca-qrdisplay id=\"gataca-qr\" qr-data=\"DATA TO DISPLAY\">\n </gataca-qr>\n\n </div>\n</body>\n\n</html>\n```"
},
"attributes": [
{
"name": "logo-size",
"description": "_[Optional]_\nSize of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33"
},
{
"name": "logo-src",
"description": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
},
{
"name": "qr-color",
"description": "_[Optional]_\nQR Color."
},
{
"name": "qr-data",
"description": "_[Mandatory]_\nSets the contents of the QR"
},
{
"name": "rounded",
"description": "_[Optional]_\nRound usage"
},
{
"name": "size",
"description": "_[Optional]_\nSize of the QR Displayed"
}
]
},
{
"name": "gataca-qrws",
"description": {
"kind": "markdown",
"value": "This component built using stencyl allows an easy integration to display a gataca QR to be read by the wallet.\n\nIt does the same but using WebSockets instead of polling\n\nThis component can be used with the prerequisite of having an application which can be integrated with GATACA Components: Connect and Certify. In this case, your application must offer a WebSocket communication.\n\nThe websocket service implemented by your service may be completely custom or use the following structure for messages -the type is exported by this library-:\n\n```typescript\nexport type WSResponse = {\n sessionId: string;\n result: RESULT_STATUS;\n authenticatedUserData?: any;\n authenticationRequest?: string;\n error?: string;\n};\n```\n\nIf your WS Messages implement this interface, you need to know that the QR will start when a WS message is received with result === RESULT_STATUS.ONGOING (0) and a sessionId.\nThe QR will end when a message with a different result is received, depending on the result.\n\nIf your server wants to implement a different interface, there is no problem, but you need to trigger an Event named **sessionMsg** with a matching WSResponse in detail for the QR Component to understand (see examples)."
},
"attributes": [
{
"name": "autorefresh",
"description": "_[Optional]_\nSet to refresh the session automatically upon expiration. By default it is false"
},
{
"name": "autostart",
"description": "_[Optional]_\nSet to enable autoload when the QR is displayed. By default it is true"
},
{
"name": "by-brand-label",
"description": "_[Optional]_\nString to show \"by brand\" label"
},
{
"name": "callback-server",
"description": "***Mandatory just for V1***\nConnect/Certify Server where the wallet will send the data"
},
{
"name": "click-inside-box-label",
"description": "_[Optional]_\nString to show \"click inside\" label"
},
{
"name": "credentials-not-validated-label",
"description": "_[Optional]_\nString to show when credentials not validatedd"
},
{
"name": "creds-not-validated-error-label",
"description": "_[Optional]_\nString to show \"provided credentials not validates\" error"
},
{
"name": "dynamic-link",
"description": "_[Optional]_\nDisplay a link containing a dynamic link to invoke the wallet if closed"
},
{
"name": "failed-login-error-label",
"description": "_[Optional]_\nString to show \"failed login\" error"
},
{
"name": "hide-brand-title",
"description": "_[Optional]_\nBoolean to show or not show the gataca brand title"
},
{
"name": "hide-modal-box-shadow",
"description": "_[Optional]_\nBoolean to show or not show the modal title, brandTitle and description"
},
{
"name": "hide-modal-texts",
"description": "_[Optional]_\nBoolean to show or not show the modal title, brandTitle and description"
},
{
"name": "hide-qr-modal-description",
"description": "_[Optional]_\nBoolean to show or not show the QR Modal description"
},
{
"name": "logo-size",
"description": "_[Optional]_\nSize of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33"
},
{
"name": "logo-src",
"description": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
},
{
"name": "modal-height",
"description": "_[Optional]_\nHeight of the modal"
},
{
"name": "modal-title-color",
"description": "_[Optional]_\nString to set Modal title color"
},
{
"name": "modal-width",
"description": "_[Optional]_\nWidth of the modal"
},
{
"name": "qr-code-expired-label",
"description": "_[Optional]_\nString to show when qr code expired"
},
{
"name": "qr-modal-description",
"description": "_[Optional]_\nModifies the Modal description"
},
{
"name": "qr-modal-title",
"description": "_[Optional]_\nModifies the qr headline title"
},
{
"name": "qr-role",
"description": "***Mandatory***\nDecide if scanning the credential as a verifier to request credentials\nor as an issuer too issue credentials.\nOptions: connect | certify"
},
{
"name": "qr-size",
"description": "_[Optional]_\nSize of QR Displayed"
},
{
"name": "read-qr-description",
"description": "_[Optional]_\nString description to show when QR already read"
},
{
"name": "read-qr-title",
"description": "_[Optional]_\nString title to show when QR already read"
},
{
"name": "refresh-qr-label",
"description": "_[Optional]_\nString to show \"refresh QR\" label"
},
{
"name": "scan-qr-label",
"description": "_[Optional]_\nString to show \"scan QR\" label"
},
{
"name": "session-timeout",
"description": "***Mandatory***\nMaximum time window to display the session and keep the websocket connection. It's needed to ensure the socket is closed."
},
{
"name": "socket-endpoint",
"description": "***Mandatory***\nWS Endpoint on your service to be invoked upon display"
},
{
"name": "success-login-label",
"description": "_[Optional]_\nString to show \"successful login\" label"
},
{
"name": "user-not-scan-in-time-error-label",
"description": "_[Optional]_\nString to show \"user not scan in time\" error"
},
{
"name": "v-2",
"description": "**RECOMMENDED**\nSet to use v2 links. The create session must be providing both an authentication request and a session Id"
},
{
"name": "waiting-start-session-label",
"description": "_[Optional]_\nString to show \"waiting start session\" label"
}
]
},
{
"name": "gataca-ssibutton",
"description": {
"kind": "markdown",
"value": "This component built using stencyl allows an easy integration to display a \"Quick SSI Access Button\", with a similar to the current existing sign-in buttons for OAuth2 providers like Google, Twitter or Facebook.\n\nThis component wraps the logic to display and hide a Gataca-QR component under a button. To configure and integrate it, you need to follow the same process as the basic [Gataca-QR component](../gataca-qr/readme.md).\n\nThis component can be used with the prerequisite of having an application which can be integrated with GATACA Components: Connect and Certify. More precisely, your application will need to be able to perform the two operations against your connect or certify servers:\n\n1. Create sessions\n2. Consult sessions"
},
"attributes": [
{
"name": "autorefresh",
"description": "_[Optional]_\nSet to refresh the session automatically upon expiration. By default it is false"
},
{
"name": "button-text",
"description": "_[Optional]_\nIn the case of being a button, modifies its text"
},
{
"name": "by-brand-label",
"description": "_[Optional]_\nString to show \"by brand\" label"
},
{
"name": "callback-server",
"description": "***Mandatory just for V1***\nConnect/Certify Server where the wallet will send the data"
},
{
"name": "click-inside-box-label",
"description": "_[Optional]_\nString to show \"click inside\" label"
},
{
"name": "credentials-not-validated-label",
"description": "_[Optional]_\nString to show when credentials not validatedd"
},
{
"name": "creds-not-validated-error-label",
"description": "_[Optional]_\nString to show \"provided credentials not validates\" error"
},
{
"name": "dynamic-link",
"description": "_[Optional]_\nDisplay a link containing a dynamic link to invoke the wallet if closed"
},
{
"name": "failed-login-error-label",
"description": "_[Optional]_\nString to show \"failed login\" error"
},
{
"name": "hide-brand-title",
"description": "_[Optional]_\nBoolean to show or not show the gataca brand title"
},
{
"name": "hide-qr-modal-description",
"description": "_[Optional]_\nBoolean to show or not show the QR Modal description"
},
{
"name": "logo-size",
"description": "_[Optional]_\nSize of the logo to display in percentage to the total size [0-1]. 0 means no logo will be displayed. Default is the GATACA logo. Recommended size is around 0.33"
},
{
"name": "logo-src",
"description": "_[Optional]_\nLogo to display, just if the logo size is greater than 0. No logo is the GATACA logo."
},
{
"name": "modal-title-color",
"description": "_[Optional]_\nString to set Modal title color"
},
{
"name": "polling-frequency",
"description": "_[Optional]_\nFrequency in seconds to check if the session has been validated"
},
{
"name": "qr-code-expired-label",
"description": "_[Optional]_\nString to show when qr code expired"
},
{
"name": "qr-modal-description",
"description": "_[Optional]_\nModifies the Modal description"
},
{
"name": "qr-modal-title",
"description": "_[Optional]_\nModifies the qr headline title"
},
{
"name": "qr-role",
"description": "***Mandatory***\nDecide if scanning the credential as a verifier to request credentials\nor as an issuer too issue credentials.\nOptions: connect | certify"
},
{
"name": "refresh-qr-label",
"description": "_[Optional]_\nString to show \"refresh QR\" label"
},
{
"name": "scan-qr-label",
"description": "_[Optional]_\nString to show \"scan QR\" label"
},
{
"name": "session-timeout",
"description": "_[Optional]_\nMaximum time window to display the session"
},
{
"name": "success-login-label",
"description": "_[Optional]_\nString to show \"successful login\" label"
},
{
"name": "user-not-scan-in-time-error-label",
"description": "_[Optional]_\nString to show \"user not scan in time\" error"
},
{
"name": "v-2",
"description": "_[Optional]_\nSet to use v2 links. The create session must be providing both an authentication request and a session Id"
},
{
"name": "waiting-start-session-label",
"description": "_[Optional]_\nString to show \"waiting start session\" label"
}
]
},
{
"name": "gataca-ssibuttonws",
"description": {
"kind": "markdown",
"value": "This component built using stencyl allows an easy integration to display a \"Quick SSI Access Button\", with a similar to the current existing sign-in buttons for OAuth2 providers like Google, Twitter or Facebook. The display is identical to the simple [Gataca-SSI Button](../gataca-ssibutton/readme.md), but with a component using websockets underneath.\n\nThis component wraps the logic to display and hide a Gataca-QR component under a button. To configure and integrate it, you need to follow the same process as the base [Gataca-QRWS Component](../gataca-qrws/readme.md). It is the suitable option if you wish to display an SSI Button but allowing the use of WebSockets instead of polling.\n\nThis component can be used with the prerequisite of having an application which can be integrated with GATACA Components: Connect and Certify. In this case, your application must offer a WebSocket communication.\n\nThe websocket service implemented by your service may be completely custom or use the following structure for messages -the type is exported by this library-:\n\n```typescript\nexport type WSResponse = {\n sessionId: string;\n result: RESULT_STATUS;\n authenticatedUserData?: any;\n authenticationRequest?: string;\n error?: string;\n};\n```\n\nIf your WS Messages implement this interface, you need to know that the QR will start when a WS message is received with result === RESULT_STATUS.ONGOING (0) and a sessionId.\nThe QR will end when a message with a different result is received, depending on the result.\n\nIf your server wants to implement a different interface, there is no problem, but you need to trigger an Event named **sessionMsg** with a matching WSResponse in detail for the QR Component to understand (see examples)."
},
"attributes": [
{
"name": "autorefresh",
"description": "_[Optional]_\nSet to refresh the session automatically upon expiration. By default it is false"
},
{
"name": "autostart",
"description": "_[Optional]_\nSet to enable autoload when the QR is displayed. By default it is true"
},
{
"name": "button-text",
"description": "_[Optional]_\nIn the case of being a button, modifies its text"
},
{
"name": "callback-server",
"description": "***Mandatory just for V1***\nConnect/Certify Server where the wallet will send the data"
},
{
"name": "dynamic-link",
"description": "_[Optional]_\nDisplay a link containing a dynamic link to invoke the wallet if closed"
},
{
"name": "hide-brand-title",
"description": "_[Optional]_\nBoolean to show or not show the gataca brand title"
},
{
"name": "qr-modal-description",
"description": "_[Optional]_\nModifies the Modal description"
},
{
"name": "qr-modal-title",
"description": "_[Optional]_\nModifies the qr headline title"
},
{
"name": "qr-role",
"description": "***Mandatory***\nDecide if scanning the credential as a verifier to request credentials\nor as an issuer too issue credentials.\nOptions: connect | certify"
},
{
"name": "session-timeout",
"description": "***Mandatory***\nMaximum time window to display the session and keep the websocket connection. It's needed to ensure the socket is closed."
},
{
"name": "socket-endpoint",
"description": "***Mandatory***\nWS Endpoint on your service to be invoked upon display"
},
{
"name": "v-2",
"description": "**RECOMMENDED**\nSet to use v2 links. The create session must be providing both an authentication request and a session Id"
}
]
}
]
}