@gataca/qr 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/gat-icon-alert-0ad19b26.js +14 -0
  3. package/dist/cjs/gataca-autoqr.cjs.entry.js +105 -0
  4. package/dist/cjs/gataca-qr_2.cjs.entry.js +294 -0
  5. package/dist/cjs/gataca-qrws.cjs.entry.js +252 -0
  6. package/dist/cjs/gataca-ssibutton_2.cjs.entry.js +309 -0
  7. package/dist/cjs/gatacaqr.cjs.js +19 -0
  8. package/dist/cjs/index-93d47a75.js +1469 -0
  9. package/dist/cjs/index.cjs.js +16 -0
  10. package/dist/cjs/loader.cjs.js +21 -0
  11. package/dist/cjs/qr-code-styling-412bbc7a.js +28 -0
  12. package/dist/cjs/utils-ef28b844.js +27 -0
  13. package/dist/collection/assets/icons/gat-icon-alert.svg +5 -0
  14. package/dist/collection/assets/icons/gat-icon-check.svg +5 -0
  15. package/dist/collection/assets/icons/gat-icon-refresh.svg +4 -0
  16. package/dist/collection/assets/images/logo_gataca.svg +7 -0
  17. package/dist/collection/collection-manifest.json +17 -0
  18. package/dist/collection/components/gataca-autoqr/gataca-autoqr.css +116 -0
  19. package/dist/collection/components/gataca-autoqr/gataca-autoqr.js +323 -0
  20. package/dist/collection/components/gataca-qr/components/qr/QR.js +5 -0
  21. package/dist/collection/components/gataca-qr/components/readQR/ReadQR.js +11 -0
  22. package/dist/collection/components/gataca-qr/components/readQR/components/AnimatedLoader.js +4 -0
  23. package/dist/collection/components/gataca-qr/components/retryButton/RetryButton.js +13 -0
  24. package/dist/collection/components/gataca-qr/components/success/Success.js +8 -0
  25. package/dist/collection/components/gataca-qr/gataca-qr.css +399 -0
  26. package/dist/collection/components/gataca-qr/gataca-qr.js +965 -0
  27. package/dist/collection/components/gataca-qrdisplay/gataca-qrdisplay.js +154 -0
  28. package/dist/collection/components/gataca-qrws/components/qr/QR.js +5 -0
  29. package/dist/collection/components/gataca-qrws/components/readQR/ReadQR.js +11 -0
  30. package/dist/collection/components/gataca-qrws/components/readQR/components/AnimatedLoader.js +4 -0
  31. package/dist/collection/components/gataca-qrws/components/retryButton/RetryButton.js +13 -0
  32. package/dist/collection/components/gataca-qrws/components/success/Success.js +8 -0
  33. package/dist/collection/components/gataca-qrws/gataca-qrws.css +400 -0
  34. package/dist/collection/components/gataca-qrws/gataca-qrws.js +974 -0
  35. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.css +116 -0
  36. package/dist/collection/components/gataca-ssibutton/gataca-ssibutton.js +933 -0
  37. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.css +116 -0
  38. package/dist/collection/components/gataca-ssibuttonws/gataca-ssibuttonws.js +410 -0
  39. package/dist/collection/index.js +2 -0
  40. package/dist/collection/utils/index.js +1 -0
  41. package/dist/collection/utils/utils.js +22 -0
  42. package/dist/components/gat-icon-alert.js +30 -0
  43. package/dist/components/gataca-autoqr.d.ts +11 -0
  44. package/dist/components/gataca-autoqr.js +161 -0
  45. package/dist/components/gataca-qr.d.ts +11 -0
  46. package/dist/components/gataca-qr.js +6 -0
  47. package/dist/components/gataca-qr2.js +309 -0
  48. package/dist/components/gataca-qrdisplay.d.ts +11 -0
  49. package/dist/components/gataca-qrdisplay.js +6 -0
  50. package/dist/components/gataca-qrdisplay2.js +93 -0
  51. package/dist/components/gataca-qrws.d.ts +11 -0
  52. package/dist/components/gataca-qrws.js +6 -0
  53. package/dist/components/gataca-qrws2.js +310 -0
  54. package/dist/components/gataca-ssibutton.d.ts +11 -0
  55. package/dist/components/gataca-ssibutton.js +6 -0
  56. package/dist/components/gataca-ssibutton2.js +318 -0
  57. package/dist/components/gataca-ssibuttonws.d.ts +11 -0
  58. package/dist/components/gataca-ssibuttonws.js +6 -0
  59. package/dist/components/gataca-ssibuttonws2.js +102 -0
  60. package/dist/components/index.d.ts +27 -0
  61. package/dist/components/index.js +8 -0
  62. package/dist/esm/gat-icon-alert-7b06ef3a.js +9 -0
  63. package/dist/esm/gataca-autoqr.entry.js +101 -0
  64. package/dist/esm/gataca-qr_2.entry.js +289 -0
  65. package/dist/esm/gataca-qrws.entry.js +248 -0
  66. package/dist/esm/gataca-ssibutton_2.entry.js +304 -0
  67. package/dist/esm/gatacaqr.js +17 -0
  68. package/dist/esm/index-2be54f32.js +1443 -0
  69. package/dist/esm/index.js +1 -0
  70. package/dist/esm/loader.js +17 -0
  71. package/dist/esm/polyfills/core-js.js +11 -0
  72. package/dist/esm/polyfills/css-shim.js +1 -0
  73. package/dist/esm/polyfills/dom.js +79 -0
  74. package/dist/esm/polyfills/es5-html-element.js +1 -0
  75. package/dist/esm/polyfills/index.js +34 -0
  76. package/dist/esm/polyfills/system.js +6 -0
  77. package/dist/esm/qr-code-styling-0eeb38d5.js +26 -0
  78. package/dist/esm/utils-63e7a33b.js +24 -0
  79. package/dist/gatacaqr/gatacaqr.esm.js +1 -0
  80. package/dist/gatacaqr/index.esm.js +1 -0
  81. package/dist/gatacaqr/p-0381ab9a.entry.js +1 -0
  82. package/dist/gatacaqr/p-0be4566d.js +1 -0
  83. package/dist/gatacaqr/p-16298cb4.entry.js +1 -0
  84. package/dist/gatacaqr/p-2cd7b062.js +1 -0
  85. package/dist/gatacaqr/p-5ae5f952.js +2 -0
  86. package/dist/gatacaqr/p-68f20267.entry.js +1 -0
  87. package/dist/gatacaqr/p-9e9af27e.entry.js +1 -0
  88. package/dist/gatacaqr/p-ea783014.js +1 -0
  89. package/dist/index.cjs.js +1 -0
  90. package/dist/index.js +1 -0
  91. package/dist/types/components/gataca-autoqr/gataca-autoqr.d.ts +85 -0
  92. package/dist/types/components/gataca-qr/components/qr/QR.d.ts +9 -0
  93. package/dist/types/components/gataca-qr/components/readQR/ReadQR.d.ts +13 -0
  94. package/dist/types/components/gataca-qr/components/readQR/components/AnimatedLoader.d.ts +2 -0
  95. package/dist/types/components/gataca-qr/components/retryButton/RetryButton.d.ts +13 -0
  96. package/dist/types/components/gataca-qr/components/success/Success.d.ts +7 -0
  97. package/dist/types/components/gataca-qr/gataca-qr.d.ts +246 -0
  98. package/dist/types/components/gataca-qrdisplay/gataca-qrdisplay.d.ts +35 -0
  99. package/dist/types/components/gataca-qrws/components/qr/QR.d.ts +9 -0
  100. package/dist/types/components/gataca-qrws/components/readQR/ReadQR.d.ts +13 -0
  101. package/dist/types/components/gataca-qrws/components/readQR/components/AnimatedLoader.d.ts +2 -0
  102. package/dist/types/components/gataca-qrws/components/retryButton/RetryButton.d.ts +13 -0
  103. package/dist/types/components/gataca-qrws/components/success/Success.d.ts +7 -0
  104. package/dist/types/components/gataca-qrws/gataca-qrws.d.ts +239 -0
  105. package/dist/types/components/gataca-ssibutton/gataca-ssibutton.d.ts +218 -0
  106. package/dist/types/components/gataca-ssibuttonws/gataca-ssibuttonws.d.ts +110 -0
  107. package/dist/types/components.d.ts +1326 -0
  108. package/dist/types/index.d.ts +2 -0
  109. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  110. package/dist/types/utils/index.d.ts +1 -0
  111. package/dist/types/utils/utils.d.ts +57 -0
  112. package/loader/cdn.js +3 -0
  113. package/loader/index.cjs.js +3 -0
  114. package/loader/index.d.ts +12 -0
  115. package/loader/index.es2017.js +3 -0
  116. package/loader/index.js +4 -0
  117. package/loader/package.json +11 -0
  118. package/package.json +45 -0
  119. package/readme.md +69 -0
@@ -0,0 +1,1326 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { RESULT_STATUS } from "./utils";
9
+ import { RESULT_STATUS as RESULT_STATUS1, WSResponse } from "./utils/utils";
10
+ export namespace Components {
11
+ interface GatacaAutoqr {
12
+ /**
13
+ * ___Just for polling flavour___ ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
14
+ */
15
+ "checkStatus"?: (
16
+ id?: string
17
+ ) => Promise<{ result: RESULT_STATUS; data?: any }>;
18
+ /**
19
+ * ***Mandatory*** ID of the QR configuration to display
20
+ */
21
+ "configId": string;
22
+ /**
23
+ * ___Optional___ ConfigURL Repository to download the config from
24
+ */
25
+ "configRepository": string;
26
+ /**
27
+ * ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
28
+ */
29
+ "createSession"?: () => Promise<{
30
+ sessionId: string;
31
+ authenticationRequest?: string;
32
+ }>;
33
+ /**
34
+ * ___Just for polling flavour___ ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
35
+ */
36
+ "errorCallback": (error?: Error) => void;
37
+ /**
38
+ * Retrieve manually the session data on a successful login
39
+ */
40
+ "getSessionData": () => Promise<any>;
41
+ /**
42
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
43
+ */
44
+ "successCallback": (data?: any) => void;
45
+ /**
46
+ * ___Just for WS flavour___ **RECOMMENDED** Callback to invoke an a message has been received on the socket. It provides the socket itself and the message as parameters. If not used, the messages provided by the server on the Socket connection must conform to the WSReponse interface If used, an Event named **sessionMsg** must be triggered with a WSReponse as data
47
+ */
48
+ "wsOnMessage": (socket: WebSocket, msg: MessageEvent) => void;
49
+ /**
50
+ * ___Just for WS flavour___ [Optional] Function to send a message to the server upon socket creation
51
+ */
52
+ "wsOnOpen": (socket: WebSocket) => void;
53
+ }
54
+ interface GatacaQr {
55
+ /**
56
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
57
+ */
58
+ "autorefresh": boolean;
59
+ /**
60
+ * _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
61
+ */
62
+ "autostart": boolean;
63
+ /**
64
+ * _[Optional]_ String to show "by brand" label
65
+ */
66
+ "byBrandLabel"?: string;
67
+ /**
68
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
69
+ */
70
+ "callbackServer": string;
71
+ /**
72
+ * ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
73
+ */
74
+ "checkStatus"?: (
75
+ id?: string
76
+ ) => Promise<{ result: RESULT_STATUS1; data?: any }>;
77
+ /**
78
+ * _[Optional]_ String to show "click inside" label
79
+ */
80
+ "clickInsideBoxLabel"?: string;
81
+ /**
82
+ * ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
83
+ */
84
+ "createSession"?: () => Promise<{
85
+ sessionId: string;
86
+ authenticationRequest?: string;
87
+ }>;
88
+ /**
89
+ * _[Optional]_ String to show when credentials not validatedd
90
+ */
91
+ "credentialsNotValidatedLabel"?: string;
92
+ /**
93
+ * _[Optional]_ String to show "provided credentials not validates" error
94
+ */
95
+ "credsNotValidatedErrorLabel"?: string;
96
+ /**
97
+ * Force manually the display of a QR
98
+ */
99
+ "display": () => Promise<void>;
100
+ /**
101
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
102
+ */
103
+ "dynamicLink"?: boolean;
104
+ /**
105
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
106
+ */
107
+ "errorCallback": (error?: Error) => void;
108
+ /**
109
+ * _[Optional]_ String to show "failed login" error
110
+ */
111
+ "failedLoginErrorLabel"?: string;
112
+ /**
113
+ * Retrieve manually the session data on a successful login
114
+ */
115
+ "getSessionData": () => Promise<any>;
116
+ /**
117
+ * _[Optional]_ Boolean to show or not show the gataca brand title
118
+ */
119
+ "hideBrandTitle"?: boolean;
120
+ /**
121
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
122
+ */
123
+ "hideModalBoxShadow"?: boolean;
124
+ /**
125
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
126
+ */
127
+ "hideModalTexts"?: boolean;
128
+ /**
129
+ * _[Optional]_ Boolean to show or not show the QR Modal description
130
+ */
131
+ "hideQrModalDescription"?: boolean;
132
+ /**
133
+ * _[Optional]_ Size 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
134
+ */
135
+ "logoSize"?: number;
136
+ /**
137
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
138
+ */
139
+ "logoSrc"?: string;
140
+ /**
141
+ * _[Optional]_ Height of the modal
142
+ */
143
+ "modalHeight"?: number;
144
+ /**
145
+ * _[Optional]_ String to set Modal title color
146
+ */
147
+ "modalTitleColor"?: string;
148
+ /**
149
+ * _[Optional]_ Width of the modal
150
+ */
151
+ "modalWidth"?: number;
152
+ /**
153
+ * _[Optional]_ Frequency in seconds to check if the session has been validated
154
+ */
155
+ "pollingFrequency"?: number;
156
+ /**
157
+ * _[Optional]_ String to show when qr code expired
158
+ */
159
+ "qrCodeExpiredLabel"?: string;
160
+ /**
161
+ * _[Optional]_ Modifies the Modal description
162
+ */
163
+ "qrModalDescription"?: string;
164
+ /**
165
+ * _[Optional]_ Modifies the qr headline title
166
+ */
167
+ "qrModalTitle"?: string;
168
+ /**
169
+ * ***Mandatory just for V1*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
170
+ */
171
+ "qrRole": string;
172
+ /**
173
+ * _[Optional]_ Size of QR Displayed
174
+ */
175
+ "qrSize"?: number;
176
+ /**
177
+ * _[Optional]_ String description to show when QR already read
178
+ */
179
+ "readQrDescription"?: string;
180
+ /**
181
+ * _[Optional]_ String title to show when QR already read
182
+ */
183
+ "readQrTitle"?: string;
184
+ /**
185
+ * _[Optional]_ String to show "refresh QR" label
186
+ */
187
+ "refreshQrLabel"?: string;
188
+ /**
189
+ * _[Optional]_ String to show "scan QR" label
190
+ */
191
+ "scanQrLabel"?: string;
192
+ /**
193
+ * _[Optional]_ Maximum time window to display the session
194
+ */
195
+ "sessionTimeout"?: number;
196
+ /**
197
+ * Stop manually an ongoing session
198
+ */
199
+ "stop": () => Promise<void>;
200
+ /**
201
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
202
+ */
203
+ "successCallback": (data?: any) => void;
204
+ /**
205
+ * _[Optional]_ String to show "successful login" label
206
+ */
207
+ "successLoginLabel"?: string;
208
+ /**
209
+ * _[Optional]_ String to show "user not scan in time" error
210
+ */
211
+ "userNotScanInTimeErrorLabel"?: string;
212
+ /**
213
+ * _[Optional]_ If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
214
+ */
215
+ "v"?: string;
216
+ /**
217
+ * _[Optional]_ String to show "waiting start session" label
218
+ */
219
+ "waitingStartSessionLabel"?: string;
220
+ }
221
+ interface GatacaQrdisplay {
222
+ /**
223
+ * _[Optional]_ Size 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
224
+ */
225
+ "logoSize"?: number;
226
+ /**
227
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
228
+ */
229
+ "logoSrc"?: string;
230
+ /**
231
+ * _[Optional]_ QR Color.
232
+ */
233
+ "qrColor"?: string;
234
+ /**
235
+ * _[Mandatory]_ Sets the contents of the QR
236
+ */
237
+ "qrData": string;
238
+ /**
239
+ * _[Optional]_ Round usage
240
+ */
241
+ "rounded"?: boolean;
242
+ /**
243
+ * _[Optional]_ Size of the QR Displayed
244
+ */
245
+ "size"?: number;
246
+ }
247
+ interface GatacaQrws {
248
+ /**
249
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
250
+ */
251
+ "autorefresh": boolean;
252
+ /**
253
+ * _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
254
+ */
255
+ "autostart": boolean;
256
+ /**
257
+ * _[Optional]_ String to show "by brand" label
258
+ */
259
+ "byBrandLabel"?: string;
260
+ /**
261
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
262
+ */
263
+ "callbackServer": string;
264
+ /**
265
+ * _[Optional]_ String to show "click inside" label
266
+ */
267
+ "clickInsideBoxLabel"?: string;
268
+ /**
269
+ * _[Optional]_ String to show when credentials not validatedd
270
+ */
271
+ "credentialsNotValidatedLabel"?: string;
272
+ /**
273
+ * _[Optional]_ String to show "provided credentials not validates" error
274
+ */
275
+ "credsNotValidatedErrorLabel"?: string;
276
+ /**
277
+ * Force manually the display of a QR
278
+ */
279
+ "display": () => Promise<void>;
280
+ /**
281
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
282
+ */
283
+ "dynamicLink"?: boolean;
284
+ /**
285
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
286
+ */
287
+ "errorCallback": (error?: Error) => void;
288
+ /**
289
+ * _[Optional]_ String to show "failed login" error
290
+ */
291
+ "failedLoginErrorLabel"?: string;
292
+ /**
293
+ * Retrieve manually the session data on a successful login
294
+ */
295
+ "getSessionData": () => Promise<any>;
296
+ /**
297
+ * _[Optional]_ Boolean to show or not show the gataca brand title
298
+ */
299
+ "hideBrandTitle"?: boolean;
300
+ /**
301
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
302
+ */
303
+ "hideModalBoxShadow"?: boolean;
304
+ /**
305
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
306
+ */
307
+ "hideModalTexts"?: boolean;
308
+ /**
309
+ * _[Optional]_ Boolean to show or not show the QR Modal description
310
+ */
311
+ "hideQrModalDescription"?: boolean;
312
+ /**
313
+ * _[Optional]_ Size 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
314
+ */
315
+ "logoSize"?: number;
316
+ /**
317
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
318
+ */
319
+ "logoSrc"?: string;
320
+ /**
321
+ * _[Optional]_ Height of the modal
322
+ */
323
+ "modalHeight"?: number;
324
+ /**
325
+ * _[Optional]_ String to set Modal title color
326
+ */
327
+ "modalTitleColor"?: string;
328
+ /**
329
+ * _[Optional]_ Width of the modal
330
+ */
331
+ "modalWidth"?: number;
332
+ /**
333
+ * _[Optional]_ String to show when qr code expired
334
+ */
335
+ "qrCodeExpiredLabel"?: string;
336
+ /**
337
+ * _[Optional]_ Modifies the Modal description
338
+ */
339
+ "qrModalDescription"?: string;
340
+ /**
341
+ * _[Optional]_ Modifies the qr headline title
342
+ */
343
+ "qrModalTitle"?: string;
344
+ /**
345
+ * ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
346
+ */
347
+ "qrRole": string;
348
+ /**
349
+ * _[Optional]_ Size of QR Displayed
350
+ */
351
+ "qrSize"?: number;
352
+ /**
353
+ * _[Optional]_ String description to show when QR already read
354
+ */
355
+ "readQrDescription"?: string;
356
+ /**
357
+ * _[Optional]_ String title to show when QR already read
358
+ */
359
+ "readQrTitle"?: string;
360
+ /**
361
+ * _[Optional]_ String to show "refresh QR" label
362
+ */
363
+ "refreshQrLabel"?: string;
364
+ /**
365
+ * _[Optional]_ String to show "scan QR" label
366
+ */
367
+ "scanQrLabel"?: string;
368
+ /**
369
+ * ***Mandatory*** Maximum time window to display the session and keep the websocket connection. It's needed to ensure the socket is closed.
370
+ */
371
+ "sessionTimeout"?: number;
372
+ /**
373
+ * ***Mandatory*** WS Endpoint on your service to be invoked upon display
374
+ */
375
+ "socketEndpoint": string;
376
+ /**
377
+ * Stop manually an ongoing session
378
+ */
379
+ "stop": () => Promise<void>;
380
+ /**
381
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
382
+ */
383
+ "successCallback": (data?: any) => void;
384
+ /**
385
+ * _[Optional]_ String to show "successful login" label
386
+ */
387
+ "successLoginLabel"?: string;
388
+ /**
389
+ * _[Optional]_ String to show "user not scan in time" error
390
+ */
391
+ "userNotScanInTimeErrorLabel"?: string;
392
+ /**
393
+ * _[Optional]_ If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
394
+ */
395
+ "v"?: string;
396
+ /**
397
+ * _[Optional]_ String to show "waiting start session" label
398
+ */
399
+ "waitingStartSessionLabel"?: string;
400
+ /**
401
+ * **RECOMMENDED** Callback to invoke an a message has been received on the socket. It provides the socket itself and the message as parameters. If not used, the messages provided by the server on the Socket connection must conform to the WSReponse interface If used, an Event named **sessionMsg** must be triggered with a WSReponse as data
402
+ */
403
+ "wsOnMessage": (socket: WebSocket, msg: MessageEvent) => void;
404
+ /**
405
+ * [Optional] Function to send a message to the server upon socket creation
406
+ */
407
+ "wsOnOpen": (socket: WebSocket) => void;
408
+ }
409
+ interface GatacaSsibutton {
410
+ /**
411
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
412
+ */
413
+ "autorefresh": boolean;
414
+ /**
415
+ * _[Optional]_ In the case of being a button, modifies its text
416
+ */
417
+ "buttonText"?: string;
418
+ /**
419
+ * _[Optional]_ String to show "by brand" label
420
+ */
421
+ "byBrandLabel"?: string;
422
+ /**
423
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
424
+ */
425
+ "callbackServer": string;
426
+ /**
427
+ * _[Optional]_ Maximum time window to check if the App is installed
428
+ */
429
+ "checkAppTimeout"?: number;
430
+ /**
431
+ * ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
432
+ */
433
+ "checkStatus"?: (
434
+ id?: string
435
+ ) => Promise<{ result: RESULT_STATUS1; data?: any }>;
436
+ /**
437
+ * _[Optional]_ String to show "click inside" label
438
+ */
439
+ "clickInsideBoxLabel"?: string;
440
+ /**
441
+ * ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
442
+ */
443
+ "createSession"?: () => Promise<{
444
+ sessionId: string;
445
+ authenticationRequest?: string;
446
+ }>;
447
+ /**
448
+ * _[Optional]_ String to show when credentials not validatedd
449
+ */
450
+ "credentialsNotValidatedLabel"?: string;
451
+ /**
452
+ * _[Optional]_ String to show "provided credentials not validates" error
453
+ */
454
+ "credsNotValidatedErrorLabel"?: string;
455
+ /**
456
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
457
+ */
458
+ "dynamicLink"?: boolean;
459
+ /**
460
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
461
+ */
462
+ "errorCallback": (error?: Error) => void;
463
+ /**
464
+ * _[Optional]_ String to show "failed login" error
465
+ */
466
+ "failedLoginErrorLabel"?: string;
467
+ /**
468
+ * Retrieve manually the session data on a successful login
469
+ */
470
+ "getSessionData": () => Promise<any>;
471
+ /**
472
+ * _[Optional]_ Function that runs every time the loading state changes while checking if the App is installed. Only on mobile with v3.
473
+ */
474
+ "handleCheckAppLoading"?: (isCheckingApp?: boolean) => void;
475
+ /**
476
+ * _[Optional]_ Boolean to show or not show the gataca brand title
477
+ */
478
+ "hideBrandTitle"?: boolean;
479
+ /**
480
+ * _[Optional]_ Boolean to show or not show the QR Modal description
481
+ */
482
+ "hideQrModalDescription"?: boolean;
483
+ /**
484
+ * _[Optional]_ Size 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
485
+ */
486
+ "logoSize"?: number;
487
+ /**
488
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
489
+ */
490
+ "logoSrc"?: string;
491
+ /**
492
+ * _[Optional]_ String to set Modal title color
493
+ */
494
+ "modalTitleColor"?: string;
495
+ /**
496
+ * _[Optional]_ Frequency in seconds to check if the session has been validated
497
+ */
498
+ "pollingFrequency"?: number;
499
+ /**
500
+ * _[Optional]_ String to show when qr code expired
501
+ */
502
+ "qrCodeExpiredLabel"?: string;
503
+ /**
504
+ * _[Optional]_ Modifies the Modal description
505
+ */
506
+ "qrModalDescription"?: string;
507
+ /**
508
+ * _[Optional]_ Modifies the qr headline title
509
+ */
510
+ "qrModalTitle"?: string;
511
+ /**
512
+ * ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
513
+ */
514
+ "qrRole": string;
515
+ /**
516
+ * _[Optional]_ String to show "refresh QR" label
517
+ */
518
+ "refreshQrLabel"?: string;
519
+ /**
520
+ * _[Optional]_ String to show "scan QR" label
521
+ */
522
+ "scanQrLabel"?: string;
523
+ /**
524
+ * _[Optional]_ Maximum time window to display the session
525
+ */
526
+ "sessionTimeout"?: number;
527
+ /**
528
+ * Force manually the start polling
529
+ */
530
+ "startMobilePolling": () => Promise<void>;
531
+ /**
532
+ * Stop manually an ongoing session
533
+ */
534
+ "stop": () => Promise<void>;
535
+ /**
536
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
537
+ */
538
+ "successCallback": (data?: any) => void;
539
+ /**
540
+ * _[Optional]_ String to show "successful login" label
541
+ */
542
+ "successLoginLabel"?: string;
543
+ /**
544
+ * _[Optional]_ String to show "user not scan in time" error
545
+ */
546
+ "userNotScanInTimeErrorLabel"?: string;
547
+ /**
548
+ * _[Optional]_ If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
549
+ */
550
+ "v"?: string;
551
+ /**
552
+ * _[Optional]_ String to show "waiting start session" label
553
+ */
554
+ "waitingStartSessionLabel"?: string;
555
+ }
556
+ interface GatacaSsibuttonws {
557
+ /**
558
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
559
+ */
560
+ "autorefresh": boolean;
561
+ /**
562
+ * _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
563
+ */
564
+ "autostart": boolean;
565
+ /**
566
+ * _[Optional]_ In the case of being a button, modifies its text
567
+ */
568
+ "buttonText"?: string;
569
+ /**
570
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
571
+ */
572
+ "callbackServer": string;
573
+ /**
574
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
575
+ */
576
+ "dynamicLink"?: boolean;
577
+ /**
578
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
579
+ */
580
+ "errorCallback": (error?: Error) => void;
581
+ /**
582
+ * Retrieve manually the session data on a successful login
583
+ */
584
+ "getSessionData": () => Promise<any>;
585
+ /**
586
+ * _[Optional]_ Boolean to show or not show the gataca brand title
587
+ */
588
+ "hideBrandTitle"?: boolean;
589
+ /**
590
+ * _[Optional]_ Modifies the Modal description
591
+ */
592
+ "qrModalDescription"?: string;
593
+ /**
594
+ * _[Optional]_ Modifies the qr headline title
595
+ */
596
+ "qrModalTitle"?: string;
597
+ /**
598
+ * ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
599
+ */
600
+ "qrRole": string;
601
+ /**
602
+ * ***Mandatory*** Maximum time window to display the session and keep the websocket connection. It's needed to ensure the socket is closed.
603
+ */
604
+ "sessionTimeout"?: number;
605
+ /**
606
+ * ***Mandatory*** WS Endpoint on your service to be invoked upon display
607
+ */
608
+ "socketEndpoint": string;
609
+ /**
610
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
611
+ */
612
+ "successCallback": (data?: any) => void;
613
+ /**
614
+ * **RECOMMENDED** If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
615
+ */
616
+ "v"?: string;
617
+ /**
618
+ * **RECOMMENDED** Callback to invoke an a message has been received on the socket. It provides the socket itself and the message as parameters. If not used, the messages provided by the server on the Socket connection must conform to the WSReponse interface If used, an Event named **sessionMsg** must be triggered with a WSReponse as data
619
+ */
620
+ "wsOnMessage": (socket: WebSocket, msg: MessageEvent) => void;
621
+ /**
622
+ * [Optional] Function to send a message to the server upon socket creation
623
+ */
624
+ "wsOnOpen": (socket: WebSocket) => void;
625
+ }
626
+ }
627
+ export interface GatacaAutoqrCustomEvent<T> extends CustomEvent<T> {
628
+ detail: T;
629
+ target: HTMLGatacaAutoqrElement;
630
+ }
631
+ export interface GatacaQrCustomEvent<T> extends CustomEvent<T> {
632
+ detail: T;
633
+ target: HTMLGatacaQrElement;
634
+ }
635
+ export interface GatacaQrwsCustomEvent<T> extends CustomEvent<T> {
636
+ detail: T;
637
+ target: HTMLGatacaQrwsElement;
638
+ }
639
+ export interface GatacaSsibuttonCustomEvent<T> extends CustomEvent<T> {
640
+ detail: T;
641
+ target: HTMLGatacaSsibuttonElement;
642
+ }
643
+ export interface GatacaSsibuttonwsCustomEvent<T> extends CustomEvent<T> {
644
+ detail: T;
645
+ target: HTMLGatacaSsibuttonwsElement;
646
+ }
647
+ declare global {
648
+ interface HTMLGatacaAutoqrElement extends Components.GatacaAutoqr, HTMLStencilElement {
649
+ }
650
+ var HTMLGatacaAutoqrElement: {
651
+ prototype: HTMLGatacaAutoqrElement;
652
+ new (): HTMLGatacaAutoqrElement;
653
+ };
654
+ interface HTMLGatacaQrElement extends Components.GatacaQr, HTMLStencilElement {
655
+ }
656
+ var HTMLGatacaQrElement: {
657
+ prototype: HTMLGatacaQrElement;
658
+ new (): HTMLGatacaQrElement;
659
+ };
660
+ interface HTMLGatacaQrdisplayElement extends Components.GatacaQrdisplay, HTMLStencilElement {
661
+ }
662
+ var HTMLGatacaQrdisplayElement: {
663
+ prototype: HTMLGatacaQrdisplayElement;
664
+ new (): HTMLGatacaQrdisplayElement;
665
+ };
666
+ interface HTMLGatacaQrwsElement extends Components.GatacaQrws, HTMLStencilElement {
667
+ }
668
+ var HTMLGatacaQrwsElement: {
669
+ prototype: HTMLGatacaQrwsElement;
670
+ new (): HTMLGatacaQrwsElement;
671
+ };
672
+ interface HTMLGatacaSsibuttonElement extends Components.GatacaSsibutton, HTMLStencilElement {
673
+ }
674
+ var HTMLGatacaSsibuttonElement: {
675
+ prototype: HTMLGatacaSsibuttonElement;
676
+ new (): HTMLGatacaSsibuttonElement;
677
+ };
678
+ interface HTMLGatacaSsibuttonwsElement extends Components.GatacaSsibuttonws, HTMLStencilElement {
679
+ }
680
+ var HTMLGatacaSsibuttonwsElement: {
681
+ prototype: HTMLGatacaSsibuttonwsElement;
682
+ new (): HTMLGatacaSsibuttonwsElement;
683
+ };
684
+ interface HTMLElementTagNameMap {
685
+ "gataca-autoqr": HTMLGatacaAutoqrElement;
686
+ "gataca-qr": HTMLGatacaQrElement;
687
+ "gataca-qrdisplay": HTMLGatacaQrdisplayElement;
688
+ "gataca-qrws": HTMLGatacaQrwsElement;
689
+ "gataca-ssibutton": HTMLGatacaSsibuttonElement;
690
+ "gataca-ssibuttonws": HTMLGatacaSsibuttonwsElement;
691
+ }
692
+ }
693
+ declare namespace LocalJSX {
694
+ interface GatacaAutoqr {
695
+ /**
696
+ * ___Just for polling flavour___ ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
697
+ */
698
+ "checkStatus"?: (
699
+ id?: string
700
+ ) => Promise<{ result: RESULT_STATUS; data?: any }>;
701
+ /**
702
+ * ***Mandatory*** ID of the QR configuration to display
703
+ */
704
+ "configId"?: string;
705
+ /**
706
+ * ___Optional___ ConfigURL Repository to download the config from
707
+ */
708
+ "configRepository"?: string;
709
+ /**
710
+ * ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
711
+ */
712
+ "createSession"?: () => Promise<{
713
+ sessionId: string;
714
+ authenticationRequest?: string;
715
+ }>;
716
+ /**
717
+ * ___Just for polling flavour___ ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
718
+ */
719
+ "errorCallback"?: (error?: Error) => void;
720
+ /**
721
+ * GatacaLoginCompleted event, triggered with session data upon login success
722
+ */
723
+ "onGatacaLoginCompleted"?: (event: GatacaAutoqrCustomEvent<any>) => void;
724
+ /**
725
+ * GatacaLoginFailed event, triggered with error upon login failure
726
+ */
727
+ "onGatacaLoginFailed"?: (event: GatacaAutoqrCustomEvent<any>) => void;
728
+ /**
729
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
730
+ */
731
+ "successCallback"?: (data?: any) => void;
732
+ /**
733
+ * ___Just for WS flavour___ **RECOMMENDED** Callback to invoke an a message has been received on the socket. It provides the socket itself and the message as parameters. If not used, the messages provided by the server on the Socket connection must conform to the WSReponse interface If used, an Event named **sessionMsg** must be triggered with a WSReponse as data
734
+ */
735
+ "wsOnMessage"?: (socket: WebSocket, msg: MessageEvent) => void;
736
+ /**
737
+ * ___Just for WS flavour___ [Optional] Function to send a message to the server upon socket creation
738
+ */
739
+ "wsOnOpen"?: (socket: WebSocket) => void;
740
+ }
741
+ interface GatacaQr {
742
+ /**
743
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
744
+ */
745
+ "autorefresh"?: boolean;
746
+ /**
747
+ * _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
748
+ */
749
+ "autostart"?: boolean;
750
+ /**
751
+ * _[Optional]_ String to show "by brand" label
752
+ */
753
+ "byBrandLabel"?: string;
754
+ /**
755
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
756
+ */
757
+ "callbackServer"?: string;
758
+ /**
759
+ * ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
760
+ */
761
+ "checkStatus"?: (
762
+ id?: string
763
+ ) => Promise<{ result: RESULT_STATUS1; data?: any }>;
764
+ /**
765
+ * _[Optional]_ String to show "click inside" label
766
+ */
767
+ "clickInsideBoxLabel"?: string;
768
+ /**
769
+ * ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
770
+ */
771
+ "createSession"?: () => Promise<{
772
+ sessionId: string;
773
+ authenticationRequest?: string;
774
+ }>;
775
+ /**
776
+ * _[Optional]_ String to show when credentials not validatedd
777
+ */
778
+ "credentialsNotValidatedLabel"?: string;
779
+ /**
780
+ * _[Optional]_ String to show "provided credentials not validates" error
781
+ */
782
+ "credsNotValidatedErrorLabel"?: string;
783
+ /**
784
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
785
+ */
786
+ "dynamicLink"?: boolean;
787
+ /**
788
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
789
+ */
790
+ "errorCallback"?: (error?: Error) => void;
791
+ /**
792
+ * _[Optional]_ String to show "failed login" error
793
+ */
794
+ "failedLoginErrorLabel"?: string;
795
+ /**
796
+ * _[Optional]_ Boolean to show or not show the gataca brand title
797
+ */
798
+ "hideBrandTitle"?: boolean;
799
+ /**
800
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
801
+ */
802
+ "hideModalBoxShadow"?: boolean;
803
+ /**
804
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
805
+ */
806
+ "hideModalTexts"?: boolean;
807
+ /**
808
+ * _[Optional]_ Boolean to show or not show the QR Modal description
809
+ */
810
+ "hideQrModalDescription"?: boolean;
811
+ /**
812
+ * _[Optional]_ Size 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
813
+ */
814
+ "logoSize"?: number;
815
+ /**
816
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
817
+ */
818
+ "logoSrc"?: string;
819
+ /**
820
+ * _[Optional]_ Height of the modal
821
+ */
822
+ "modalHeight"?: number;
823
+ /**
824
+ * _[Optional]_ String to set Modal title color
825
+ */
826
+ "modalTitleColor"?: string;
827
+ /**
828
+ * _[Optional]_ Width of the modal
829
+ */
830
+ "modalWidth"?: number;
831
+ /**
832
+ * GatacaLoginCompleted event, triggered with session data upon login success
833
+ */
834
+ "onGatacaLoginCompleted"?: (event: GatacaQrCustomEvent<any>) => void;
835
+ /**
836
+ * GatacaLoginFailed event, triggered with error upon login failure
837
+ */
838
+ "onGatacaLoginFailed"?: (event: GatacaQrCustomEvent<any>) => void;
839
+ /**
840
+ * _[Optional]_ Frequency in seconds to check if the session has been validated
841
+ */
842
+ "pollingFrequency"?: number;
843
+ /**
844
+ * _[Optional]_ String to show when qr code expired
845
+ */
846
+ "qrCodeExpiredLabel"?: string;
847
+ /**
848
+ * _[Optional]_ Modifies the Modal description
849
+ */
850
+ "qrModalDescription"?: string;
851
+ /**
852
+ * _[Optional]_ Modifies the qr headline title
853
+ */
854
+ "qrModalTitle"?: string;
855
+ /**
856
+ * ***Mandatory just for V1*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
857
+ */
858
+ "qrRole"?: string;
859
+ /**
860
+ * _[Optional]_ Size of QR Displayed
861
+ */
862
+ "qrSize"?: number;
863
+ /**
864
+ * _[Optional]_ String description to show when QR already read
865
+ */
866
+ "readQrDescription"?: string;
867
+ /**
868
+ * _[Optional]_ String title to show when QR already read
869
+ */
870
+ "readQrTitle"?: string;
871
+ /**
872
+ * _[Optional]_ String to show "refresh QR" label
873
+ */
874
+ "refreshQrLabel"?: string;
875
+ /**
876
+ * _[Optional]_ String to show "scan QR" label
877
+ */
878
+ "scanQrLabel"?: string;
879
+ /**
880
+ * _[Optional]_ Maximum time window to display the session
881
+ */
882
+ "sessionTimeout"?: number;
883
+ /**
884
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
885
+ */
886
+ "successCallback"?: (data?: any) => void;
887
+ /**
888
+ * _[Optional]_ String to show "successful login" label
889
+ */
890
+ "successLoginLabel"?: string;
891
+ /**
892
+ * _[Optional]_ String to show "user not scan in time" error
893
+ */
894
+ "userNotScanInTimeErrorLabel"?: string;
895
+ /**
896
+ * _[Optional]_ If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
897
+ */
898
+ "v"?: string;
899
+ /**
900
+ * _[Optional]_ String to show "waiting start session" label
901
+ */
902
+ "waitingStartSessionLabel"?: string;
903
+ }
904
+ interface GatacaQrdisplay {
905
+ /**
906
+ * _[Optional]_ Size 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
907
+ */
908
+ "logoSize"?: number;
909
+ /**
910
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
911
+ */
912
+ "logoSrc"?: string;
913
+ /**
914
+ * _[Optional]_ QR Color.
915
+ */
916
+ "qrColor"?: string;
917
+ /**
918
+ * _[Mandatory]_ Sets the contents of the QR
919
+ */
920
+ "qrData"?: string;
921
+ /**
922
+ * _[Optional]_ Round usage
923
+ */
924
+ "rounded"?: boolean;
925
+ /**
926
+ * _[Optional]_ Size of the QR Displayed
927
+ */
928
+ "size"?: number;
929
+ }
930
+ interface GatacaQrws {
931
+ /**
932
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
933
+ */
934
+ "autorefresh"?: boolean;
935
+ /**
936
+ * _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
937
+ */
938
+ "autostart"?: boolean;
939
+ /**
940
+ * _[Optional]_ String to show "by brand" label
941
+ */
942
+ "byBrandLabel"?: string;
943
+ /**
944
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
945
+ */
946
+ "callbackServer"?: string;
947
+ /**
948
+ * _[Optional]_ String to show "click inside" label
949
+ */
950
+ "clickInsideBoxLabel"?: string;
951
+ /**
952
+ * _[Optional]_ String to show when credentials not validatedd
953
+ */
954
+ "credentialsNotValidatedLabel"?: string;
955
+ /**
956
+ * _[Optional]_ String to show "provided credentials not validates" error
957
+ */
958
+ "credsNotValidatedErrorLabel"?: string;
959
+ /**
960
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
961
+ */
962
+ "dynamicLink"?: boolean;
963
+ /**
964
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
965
+ */
966
+ "errorCallback"?: (error?: Error) => void;
967
+ /**
968
+ * _[Optional]_ String to show "failed login" error
969
+ */
970
+ "failedLoginErrorLabel"?: string;
971
+ /**
972
+ * _[Optional]_ Boolean to show or not show the gataca brand title
973
+ */
974
+ "hideBrandTitle"?: boolean;
975
+ /**
976
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
977
+ */
978
+ "hideModalBoxShadow"?: boolean;
979
+ /**
980
+ * _[Optional]_ Boolean to show or not show the modal title, brandTitle and description
981
+ */
982
+ "hideModalTexts"?: boolean;
983
+ /**
984
+ * _[Optional]_ Boolean to show or not show the QR Modal description
985
+ */
986
+ "hideQrModalDescription"?: boolean;
987
+ /**
988
+ * _[Optional]_ Size 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
989
+ */
990
+ "logoSize"?: number;
991
+ /**
992
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
993
+ */
994
+ "logoSrc"?: string;
995
+ /**
996
+ * _[Optional]_ Height of the modal
997
+ */
998
+ "modalHeight"?: number;
999
+ /**
1000
+ * _[Optional]_ String to set Modal title color
1001
+ */
1002
+ "modalTitleColor"?: string;
1003
+ /**
1004
+ * _[Optional]_ Width of the modal
1005
+ */
1006
+ "modalWidth"?: number;
1007
+ /**
1008
+ * GatacaLoginCompleted event, triggered with session data upon login success
1009
+ */
1010
+ "onGatacaLoginCompleted"?: (event: GatacaQrwsCustomEvent<any>) => void;
1011
+ /**
1012
+ * GatacaLoginFailed event, triggered with error upon login failure
1013
+ */
1014
+ "onGatacaLoginFailed"?: (event: GatacaQrwsCustomEvent<any>) => void;
1015
+ /**
1016
+ * _[Optional]_ String to show when qr code expired
1017
+ */
1018
+ "qrCodeExpiredLabel"?: string;
1019
+ /**
1020
+ * _[Optional]_ Modifies the Modal description
1021
+ */
1022
+ "qrModalDescription"?: string;
1023
+ /**
1024
+ * _[Optional]_ Modifies the qr headline title
1025
+ */
1026
+ "qrModalTitle"?: string;
1027
+ /**
1028
+ * ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
1029
+ */
1030
+ "qrRole"?: string;
1031
+ /**
1032
+ * _[Optional]_ Size of QR Displayed
1033
+ */
1034
+ "qrSize"?: number;
1035
+ /**
1036
+ * _[Optional]_ String description to show when QR already read
1037
+ */
1038
+ "readQrDescription"?: string;
1039
+ /**
1040
+ * _[Optional]_ String title to show when QR already read
1041
+ */
1042
+ "readQrTitle"?: string;
1043
+ /**
1044
+ * _[Optional]_ String to show "refresh QR" label
1045
+ */
1046
+ "refreshQrLabel"?: string;
1047
+ /**
1048
+ * _[Optional]_ String to show "scan QR" label
1049
+ */
1050
+ "scanQrLabel"?: string;
1051
+ /**
1052
+ * ***Mandatory*** Maximum time window to display the session and keep the websocket connection. It's needed to ensure the socket is closed.
1053
+ */
1054
+ "sessionTimeout"?: number;
1055
+ /**
1056
+ * ***Mandatory*** WS Endpoint on your service to be invoked upon display
1057
+ */
1058
+ "socketEndpoint"?: string;
1059
+ /**
1060
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
1061
+ */
1062
+ "successCallback"?: (data?: any) => void;
1063
+ /**
1064
+ * _[Optional]_ String to show "successful login" label
1065
+ */
1066
+ "successLoginLabel"?: string;
1067
+ /**
1068
+ * _[Optional]_ String to show "user not scan in time" error
1069
+ */
1070
+ "userNotScanInTimeErrorLabel"?: string;
1071
+ /**
1072
+ * _[Optional]_ If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
1073
+ */
1074
+ "v"?: string;
1075
+ /**
1076
+ * _[Optional]_ String to show "waiting start session" label
1077
+ */
1078
+ "waitingStartSessionLabel"?: string;
1079
+ /**
1080
+ * **RECOMMENDED** Callback to invoke an a message has been received on the socket. It provides the socket itself and the message as parameters. If not used, the messages provided by the server on the Socket connection must conform to the WSReponse interface If used, an Event named **sessionMsg** must be triggered with a WSReponse as data
1081
+ */
1082
+ "wsOnMessage"?: (socket: WebSocket, msg: MessageEvent) => void;
1083
+ /**
1084
+ * [Optional] Function to send a message to the server upon socket creation
1085
+ */
1086
+ "wsOnOpen"?: (socket: WebSocket) => void;
1087
+ }
1088
+ interface GatacaSsibutton {
1089
+ /**
1090
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
1091
+ */
1092
+ "autorefresh"?: boolean;
1093
+ /**
1094
+ * _[Optional]_ In the case of being a button, modifies its text
1095
+ */
1096
+ "buttonText"?: string;
1097
+ /**
1098
+ * _[Optional]_ String to show "by brand" label
1099
+ */
1100
+ "byBrandLabel"?: string;
1101
+ /**
1102
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
1103
+ */
1104
+ "callbackServer"?: string;
1105
+ /**
1106
+ * _[Optional]_ Maximum time window to check if the App is installed
1107
+ */
1108
+ "checkAppTimeout"?: number;
1109
+ /**
1110
+ * ***Mandatory*** Check status function to query the current status of the session The function must query a client endpoint to check the status. That endpoint must return an error if the session has expired.
1111
+ */
1112
+ "checkStatus"?: (
1113
+ id?: string
1114
+ ) => Promise<{ result: RESULT_STATUS1; data?: any }>;
1115
+ /**
1116
+ * _[Optional]_ String to show "click inside" label
1117
+ */
1118
+ "clickInsideBoxLabel"?: string;
1119
+ /**
1120
+ * ***Mandatory*** Create session function to generate a new Session Using v="3", it can provide just a session Id Using another version, it must provide also the authentication request. The session Id is the id of the presentation definition
1121
+ */
1122
+ "createSession"?: () => Promise<{
1123
+ sessionId: string;
1124
+ authenticationRequest?: string;
1125
+ }>;
1126
+ /**
1127
+ * _[Optional]_ String to show when credentials not validatedd
1128
+ */
1129
+ "credentialsNotValidatedLabel"?: string;
1130
+ /**
1131
+ * _[Optional]_ String to show "provided credentials not validates" error
1132
+ */
1133
+ "credsNotValidatedErrorLabel"?: string;
1134
+ /**
1135
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
1136
+ */
1137
+ "dynamicLink"?: boolean;
1138
+ /**
1139
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
1140
+ */
1141
+ "errorCallback"?: (error?: Error) => void;
1142
+ /**
1143
+ * _[Optional]_ String to show "failed login" error
1144
+ */
1145
+ "failedLoginErrorLabel"?: string;
1146
+ /**
1147
+ * _[Optional]_ Function that runs every time the loading state changes while checking if the App is installed. Only on mobile with v3.
1148
+ */
1149
+ "handleCheckAppLoading"?: (isCheckingApp?: boolean) => void;
1150
+ /**
1151
+ * _[Optional]_ Boolean to show or not show the gataca brand title
1152
+ */
1153
+ "hideBrandTitle"?: boolean;
1154
+ /**
1155
+ * _[Optional]_ Boolean to show or not show the QR Modal description
1156
+ */
1157
+ "hideQrModalDescription"?: boolean;
1158
+ /**
1159
+ * _[Optional]_ Size 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
1160
+ */
1161
+ "logoSize"?: number;
1162
+ /**
1163
+ * _[Optional]_ Logo to display, just if the logo size is greater than 0. No logo is the GATACA logo.
1164
+ */
1165
+ "logoSrc"?: string;
1166
+ /**
1167
+ * _[Optional]_ String to set Modal title color
1168
+ */
1169
+ "modalTitleColor"?: string;
1170
+ /**
1171
+ * GatacaLoginCompleted event, triggered with session data upon login success
1172
+ */
1173
+ "onGatacaLoginCompleted"?: (event: GatacaSsibuttonCustomEvent<any>) => void;
1174
+ /**
1175
+ * GatacaLoginFailed event, triggered with error upon login failure
1176
+ */
1177
+ "onGatacaLoginFailed"?: (event: GatacaSsibuttonCustomEvent<any>) => void;
1178
+ /**
1179
+ * _[Optional]_ Frequency in seconds to check if the session has been validated
1180
+ */
1181
+ "pollingFrequency"?: number;
1182
+ /**
1183
+ * _[Optional]_ String to show when qr code expired
1184
+ */
1185
+ "qrCodeExpiredLabel"?: string;
1186
+ /**
1187
+ * _[Optional]_ Modifies the Modal description
1188
+ */
1189
+ "qrModalDescription"?: string;
1190
+ /**
1191
+ * _[Optional]_ Modifies the qr headline title
1192
+ */
1193
+ "qrModalTitle"?: string;
1194
+ /**
1195
+ * ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
1196
+ */
1197
+ "qrRole"?: string;
1198
+ /**
1199
+ * _[Optional]_ String to show "refresh QR" label
1200
+ */
1201
+ "refreshQrLabel"?: string;
1202
+ /**
1203
+ * _[Optional]_ String to show "scan QR" label
1204
+ */
1205
+ "scanQrLabel"?: string;
1206
+ /**
1207
+ * _[Optional]_ Maximum time window to display the session
1208
+ */
1209
+ "sessionTimeout"?: number;
1210
+ /**
1211
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
1212
+ */
1213
+ "successCallback"?: (data?: any) => void;
1214
+ /**
1215
+ * _[Optional]_ String to show "successful login" label
1216
+ */
1217
+ "successLoginLabel"?: string;
1218
+ /**
1219
+ * _[Optional]_ String to show "user not scan in time" error
1220
+ */
1221
+ "userNotScanInTimeErrorLabel"?: string;
1222
+ /**
1223
+ * _[Optional]_ If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
1224
+ */
1225
+ "v"?: string;
1226
+ /**
1227
+ * _[Optional]_ String to show "waiting start session" label
1228
+ */
1229
+ "waitingStartSessionLabel"?: string;
1230
+ }
1231
+ interface GatacaSsibuttonws {
1232
+ /**
1233
+ * _[Optional]_ Set to refresh the session automatically upon expiration. By default it is false
1234
+ */
1235
+ "autorefresh"?: boolean;
1236
+ /**
1237
+ * _[Optional]_ Set to enable autoload when the QR is displayed. By default it is true
1238
+ */
1239
+ "autostart"?: boolean;
1240
+ /**
1241
+ * _[Optional]_ In the case of being a button, modifies its text
1242
+ */
1243
+ "buttonText"?: string;
1244
+ /**
1245
+ * ***Mandatory just for V1*** Connect/Certify Server where the wallet will send the data
1246
+ */
1247
+ "callbackServer"?: string;
1248
+ /**
1249
+ * _[Optional]_ Display a link containing a dynamic link to invoke the wallet if closed
1250
+ */
1251
+ "dynamicLink"?: boolean;
1252
+ /**
1253
+ * ***Mandatory*** Callback fired upon session expired or invalid If not set, session error would not be handled An error containing information will be passed as parameter
1254
+ */
1255
+ "errorCallback"?: (error?: Error) => void;
1256
+ /**
1257
+ * _[Optional]_ Boolean to show or not show the gataca brand title
1258
+ */
1259
+ "hideBrandTitle"?: boolean;
1260
+ /**
1261
+ * GatacaLoginCompleted event, triggered with session data upon login success
1262
+ */
1263
+ "onGatacaLoginCompleted"?: (event: GatacaSsibuttonwsCustomEvent<any>) => void;
1264
+ /**
1265
+ * GatacaLoginFailed event, triggered with error upon login failure
1266
+ */
1267
+ "onGatacaLoginFailed"?: (event: GatacaSsibuttonwsCustomEvent<any>) => void;
1268
+ /**
1269
+ * _[Optional]_ Modifies the Modal description
1270
+ */
1271
+ "qrModalDescription"?: string;
1272
+ /**
1273
+ * _[Optional]_ Modifies the qr headline title
1274
+ */
1275
+ "qrModalTitle"?: string;
1276
+ /**
1277
+ * ***Mandatory*** Decide if scanning the credential as a verifier to request credentials or as an issuer too issue credentials. Options: connect | certify
1278
+ */
1279
+ "qrRole"?: string;
1280
+ /**
1281
+ * ***Mandatory*** Maximum time window to display the session and keep the websocket connection. It's needed to ensure the socket is closed.
1282
+ */
1283
+ "sessionTimeout"?: number;
1284
+ /**
1285
+ * ***Mandatory*** WS Endpoint on your service to be invoked upon display
1286
+ */
1287
+ "socketEndpoint"?: string;
1288
+ /**
1289
+ * ***Mandatory*** Callback fired upon session correctly verified If not set, session validation wouldn't trigger any action The session data and a possible token will be sent as parameters to the callback
1290
+ */
1291
+ "successCallback"?: (data?: any) => void;
1292
+ /**
1293
+ * **RECOMMENDED** If 3, handle deeplink redirects and deprecates (remove) v1 functionality. If not, the create session must be providing both an authentication request and a session Id
1294
+ */
1295
+ "v"?: string;
1296
+ /**
1297
+ * **RECOMMENDED** Callback to invoke an a message has been received on the socket. It provides the socket itself and the message as parameters. If not used, the messages provided by the server on the Socket connection must conform to the WSReponse interface If used, an Event named **sessionMsg** must be triggered with a WSReponse as data
1298
+ */
1299
+ "wsOnMessage"?: (socket: WebSocket, msg: MessageEvent) => void;
1300
+ /**
1301
+ * [Optional] Function to send a message to the server upon socket creation
1302
+ */
1303
+ "wsOnOpen"?: (socket: WebSocket) => void;
1304
+ }
1305
+ interface IntrinsicElements {
1306
+ "gataca-autoqr": GatacaAutoqr;
1307
+ "gataca-qr": GatacaQr;
1308
+ "gataca-qrdisplay": GatacaQrdisplay;
1309
+ "gataca-qrws": GatacaQrws;
1310
+ "gataca-ssibutton": GatacaSsibutton;
1311
+ "gataca-ssibuttonws": GatacaSsibuttonws;
1312
+ }
1313
+ }
1314
+ export { LocalJSX as JSX };
1315
+ declare module "@stencil/core" {
1316
+ export namespace JSX {
1317
+ interface IntrinsicElements {
1318
+ "gataca-autoqr": LocalJSX.GatacaAutoqr & JSXBase.HTMLAttributes<HTMLGatacaAutoqrElement>;
1319
+ "gataca-qr": LocalJSX.GatacaQr & JSXBase.HTMLAttributes<HTMLGatacaQrElement>;
1320
+ "gataca-qrdisplay": LocalJSX.GatacaQrdisplay & JSXBase.HTMLAttributes<HTMLGatacaQrdisplayElement>;
1321
+ "gataca-qrws": LocalJSX.GatacaQrws & JSXBase.HTMLAttributes<HTMLGatacaQrwsElement>;
1322
+ "gataca-ssibutton": LocalJSX.GatacaSsibutton & JSXBase.HTMLAttributes<HTMLGatacaSsibuttonElement>;
1323
+ "gataca-ssibuttonws": LocalJSX.GatacaSsibuttonws & JSXBase.HTMLAttributes<HTMLGatacaSsibuttonwsElement>;
1324
+ }
1325
+ }
1326
+ }