@nexeraid/identity-schemas 1.12.0-dev

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 (97) hide show
  1. package/README.md +26 -0
  2. package/dist/declarations/src/blockchain.schema.d.ts +93 -0
  3. package/dist/declarations/src/blockchain.schema.d.ts.map +1 -0
  4. package/dist/declarations/src/config.schema.d.ts +128 -0
  5. package/dist/declarations/src/config.schema.d.ts.map +1 -0
  6. package/dist/declarations/src/countries.schema.d.ts +11 -0
  7. package/dist/declarations/src/countries.schema.d.ts.map +1 -0
  8. package/dist/declarations/src/credential-storage.schema.d.ts +138 -0
  9. package/dist/declarations/src/credential-storage.schema.d.ts.map +1 -0
  10. package/dist/declarations/src/identity/app-requests.schema.d.ts +4092 -0
  11. package/dist/declarations/src/identity/app-requests.schema.d.ts.map +1 -0
  12. package/dist/declarations/src/identity/challenge-query.schema.d.ts +1109 -0
  13. package/dist/declarations/src/identity/challenge-query.schema.d.ts.map +1 -0
  14. package/dist/declarations/src/identity/execute-scenario.schema.d.ts +135 -0
  15. package/dist/declarations/src/identity/execute-scenario.schema.d.ts.map +1 -0
  16. package/dist/declarations/src/identity/get-started.schema.d.ts +19 -0
  17. package/dist/declarations/src/identity/get-started.schema.d.ts.map +1 -0
  18. package/dist/declarations/src/identity/host-requests.schema.d.ts +2721 -0
  19. package/dist/declarations/src/identity/host-requests.schema.d.ts.map +1 -0
  20. package/dist/declarations/src/identity/index.d.ts +12 -0
  21. package/dist/declarations/src/identity/index.d.ts.map +1 -0
  22. package/dist/declarations/src/identity/kyc.schema.d.ts +2593 -0
  23. package/dist/declarations/src/identity/kyc.schema.d.ts.map +1 -0
  24. package/dist/declarations/src/identity/polygon-id.schema.d.ts +425 -0
  25. package/dist/declarations/src/identity/polygon-id.schema.d.ts.map +1 -0
  26. package/dist/declarations/src/identity/query.schema.d.ts +526 -0
  27. package/dist/declarations/src/identity/query.schema.d.ts.map +1 -0
  28. package/dist/declarations/src/identity/txAuthData.schema.d.ts +62 -0
  29. package/dist/declarations/src/identity/txAuthData.schema.d.ts.map +1 -0
  30. package/dist/declarations/src/identity/txAuthDataTezos.schema.d.ts +56 -0
  31. package/dist/declarations/src/identity/txAuthDataTezos.schema.d.ts.map +1 -0
  32. package/dist/declarations/src/identity/zkps.schema.d.ts +962 -0
  33. package/dist/declarations/src/identity/zkps.schema.d.ts.map +1 -0
  34. package/dist/declarations/src/index.d.ts +5 -0
  35. package/dist/declarations/src/index.d.ts.map +1 -0
  36. package/dist/declarations/src/verifiable-credentials/GenericVerifiableCredentialSchema.d.ts +95 -0
  37. package/dist/declarations/src/verifiable-credentials/GenericVerifiableCredentialSchema.d.ts.map +1 -0
  38. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/ID3CredentialSubjectSchema.d.ts +2839 -0
  39. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/ID3CredentialSubjectSchema.d.ts.map +1 -0
  40. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanCredentialSubjectSchema.d.ts +163 -0
  41. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanCredentialSubjectSchema.d.ts.map +1 -0
  42. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanPassportCredentialSubjectSchema.d.ts +21 -0
  43. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanPassportCredentialSubjectSchema.d.ts.map +1 -0
  44. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanSelfieCredentialSubjectSchema.d.ts +21 -0
  45. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanSelfieCredentialSubjectSchema.d.ts.map +1 -0
  46. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_AMLScreeningsResultsCredentialSubjectSchema.d.ts +2692 -0
  47. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_AMLScreeningsResultsCredentialSubjectSchema.d.ts.map +1 -0
  48. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDImageCredentialSubjectSchema.d.ts +24 -0
  49. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDImageCredentialSubjectSchema.d.ts.map +1 -0
  50. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDInformationCredentialSubjectSchema.d.ts +258 -0
  51. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDInformationCredentialSubjectSchema.d.ts.map +1 -0
  52. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_ProofOfResidenceCredentialSubjectSchema.d.ts +39 -0
  53. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_ProofOfResidenceCredentialSubjectSchema.d.ts.map +1 -0
  54. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_SelfieImageCredentialSubjectSchema.d.ts +21 -0
  55. package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_SelfieImageCredentialSubjectSchema.d.ts.map +1 -0
  56. package/dist/declarations/src/verifiable-credentials/cleanObject.d.ts +12 -0
  57. package/dist/declarations/src/verifiable-credentials/cleanObject.d.ts.map +1 -0
  58. package/dist/declarations/src/verifiable-credentials/frontend-utilities.schema.d.ts +16 -0
  59. package/dist/declarations/src/verifiable-credentials/frontend-utilities.schema.d.ts.map +1 -0
  60. package/dist/declarations/src/verifiable-credentials/general-vc-typing.schema.d.ts +5978 -0
  61. package/dist/declarations/src/verifiable-credentials/general-vc-typing.schema.d.ts.map +1 -0
  62. package/dist/declarations/src/verifiable-credentials/generated/IDImageCredentialSubjectSchema.d.ts +48 -0
  63. package/dist/declarations/src/verifiable-credentials/generated/IDImageCredentialSubjectSchema.d.ts.map +1 -0
  64. package/dist/declarations/src/verifiable-credentials/generated/IDInformationCredentialSubjectSchema.d.ts +96 -0
  65. package/dist/declarations/src/verifiable-credentials/generated/IDInformationCredentialSubjectSchema.d.ts.map +1 -0
  66. package/dist/declarations/src/verifiable-credentials/generated/ProofOfResidenceCredentialSubjectSchema.d.ts +48 -0
  67. package/dist/declarations/src/verifiable-credentials/generated/ProofOfResidenceCredentialSubjectSchema.d.ts.map +1 -0
  68. package/dist/declarations/src/verifiable-credentials/generated/SelfieImageCredentialSubjectSchema.d.ts +39 -0
  69. package/dist/declarations/src/verifiable-credentials/generated/SelfieImageCredentialSubjectSchema.d.ts.map +1 -0
  70. package/dist/declarations/src/verifiable-credentials/index.d.ts +56 -0
  71. package/dist/declarations/src/verifiable-credentials/index.d.ts.map +1 -0
  72. package/dist/declarations/src/verifiable-credentials/vc-utils.schema.d.ts +8 -0
  73. package/dist/declarations/src/verifiable-credentials/vc-utils.schema.d.ts.map +1 -0
  74. package/dist/declarations/src/verifiable-credentials/vc_json_schema_map.d.ts +127 -0
  75. package/dist/declarations/src/verifiable-credentials/vc_json_schema_map.d.ts.map +1 -0
  76. package/dist/nexeraid-identity-schemas.cjs.d.ts +2 -0
  77. package/dist/nexeraid-identity-schemas.cjs.dev.js +110 -0
  78. package/dist/nexeraid-identity-schemas.cjs.js +7 -0
  79. package/dist/nexeraid-identity-schemas.cjs.prod.js +110 -0
  80. package/dist/nexeraid-identity-schemas.esm.js +40 -0
  81. package/dist/package.json +72 -0
  82. package/dist/txAuthDataTezos.schema-92a60696.cjs.prod.js +2995 -0
  83. package/dist/txAuthDataTezos.schema-a6ddf460.esm.js +2775 -0
  84. package/dist/txAuthDataTezos.schema-ad3b7592.cjs.dev.js +2995 -0
  85. package/identity/dist/nexeraid-identity-schemas-identity.cjs.d.ts +2 -0
  86. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +141 -0
  87. package/identity/dist/nexeraid-identity-schemas-identity.cjs.js +7 -0
  88. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +141 -0
  89. package/identity/dist/nexeraid-identity-schemas-identity.esm.js +2 -0
  90. package/identity/package.json +4 -0
  91. package/package.json +71 -0
  92. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.d.ts +2 -0
  93. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2158 -0
  94. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.js +7 -0
  95. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2158 -0
  96. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2126 -0
  97. package/verifiable-credentials/package.json +4 -0
@@ -0,0 +1,2721 @@
1
+ import { z } from "zod";
2
+ export declare const SimplifiedCredential: z.ZodObject<{
3
+ id: z.ZodString;
4
+ type: z.ZodArray<z.ZodString, "many">;
5
+ issuanceDate: z.ZodString;
6
+ journeyId: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ id: string;
9
+ journeyId: string;
10
+ type: string[];
11
+ issuanceDate: string;
12
+ }, {
13
+ id: string;
14
+ journeyId: string;
15
+ type: string[];
16
+ issuanceDate: string;
17
+ }>;
18
+ export type SimplifiedCredential = z.infer<typeof SimplifiedCredential>;
19
+ /**
20
+ * GetCredentialsRequest
21
+ */
22
+ export declare const GetCredentialsRequest: z.ZodObject<{
23
+ type: z.ZodLiteral<"getCredentials">;
24
+ data: z.ZodUndefined;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: "getCredentials";
27
+ data?: undefined;
28
+ }, {
29
+ type: "getCredentials";
30
+ data?: undefined;
31
+ }>;
32
+ export type GetCredentialsRequest = z.infer<typeof GetCredentialsRequest>;
33
+ /**
34
+ * GetCredentialsResponse
35
+ */
36
+ export declare const GetCredentialsResponse: z.ZodObject<{
37
+ type: z.ZodLiteral<"polygonIdCredentials">;
38
+ credentials: z.ZodArray<z.ZodObject<{
39
+ id: z.ZodString;
40
+ type: z.ZodArray<z.ZodString, "many">;
41
+ issuanceDate: z.ZodString;
42
+ journeyId: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id: string;
45
+ journeyId: string;
46
+ type: string[];
47
+ issuanceDate: string;
48
+ }, {
49
+ id: string;
50
+ journeyId: string;
51
+ type: string[];
52
+ issuanceDate: string;
53
+ }>, "many">;
54
+ identifier: z.ZodString;
55
+ }, "strip", z.ZodTypeAny, {
56
+ type: "polygonIdCredentials";
57
+ identifier: string;
58
+ credentials: {
59
+ id: string;
60
+ journeyId: string;
61
+ type: string[];
62
+ issuanceDate: string;
63
+ }[];
64
+ }, {
65
+ type: "polygonIdCredentials";
66
+ identifier: string;
67
+ credentials: {
68
+ id: string;
69
+ journeyId: string;
70
+ type: string[];
71
+ issuanceDate: string;
72
+ }[];
73
+ }>;
74
+ export type GetCredentialsResponse = z.infer<typeof GetCredentialsResponse>;
75
+ /**
76
+ * PolygonIdRequest
77
+ */
78
+ export declare const PolygonIdRequestData: z.ZodUnion<[z.ZodObject<{
79
+ type: z.ZodLiteral<"auth">;
80
+ authRequest: z.ZodObject<{
81
+ id: z.ZodString;
82
+ typ: z.ZodNativeEnum<typeof import("./polygon-id.schema.js").MediaType>;
83
+ type: z.ZodString;
84
+ thid: z.ZodOptional<z.ZodString>;
85
+ body: z.ZodObject<{
86
+ callbackUrl: z.ZodString;
87
+ reason: z.ZodOptional<z.ZodString>;
88
+ did_doc: z.ZodOptional<z.ZodAny>;
89
+ message: z.ZodOptional<z.ZodString>;
90
+ scope: z.ZodArray<z.ZodObject<{
91
+ id: z.ZodNumber;
92
+ circuitId: z.ZodString;
93
+ optional: z.ZodOptional<z.ZodBoolean>;
94
+ query: z.ZodRecord<z.ZodString, z.ZodAny>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ id: number;
97
+ circuitId: string;
98
+ query: Record<string, any>;
99
+ optional?: boolean | undefined;
100
+ }, {
101
+ id: number;
102
+ circuitId: string;
103
+ query: Record<string, any>;
104
+ optional?: boolean | undefined;
105
+ }>, "many">;
106
+ }, "strip", z.ZodTypeAny, {
107
+ callbackUrl: string;
108
+ scope: {
109
+ id: number;
110
+ circuitId: string;
111
+ query: Record<string, any>;
112
+ optional?: boolean | undefined;
113
+ }[];
114
+ message?: string | undefined;
115
+ reason?: string | undefined;
116
+ did_doc?: any;
117
+ }, {
118
+ callbackUrl: string;
119
+ scope: {
120
+ id: number;
121
+ circuitId: string;
122
+ query: Record<string, any>;
123
+ optional?: boolean | undefined;
124
+ }[];
125
+ message?: string | undefined;
126
+ reason?: string | undefined;
127
+ did_doc?: any;
128
+ }>;
129
+ from: z.ZodString;
130
+ to: z.ZodOptional<z.ZodString>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ id: string;
133
+ type: string;
134
+ typ: import("./polygon-id.schema.js").MediaType;
135
+ body: {
136
+ callbackUrl: string;
137
+ scope: {
138
+ id: number;
139
+ circuitId: string;
140
+ query: Record<string, any>;
141
+ optional?: boolean | undefined;
142
+ }[];
143
+ message?: string | undefined;
144
+ reason?: string | undefined;
145
+ did_doc?: any;
146
+ };
147
+ from: string;
148
+ thid?: string | undefined;
149
+ to?: string | undefined;
150
+ }, {
151
+ id: string;
152
+ type: string;
153
+ typ: import("./polygon-id.schema.js").MediaType;
154
+ body: {
155
+ callbackUrl: string;
156
+ scope: {
157
+ id: number;
158
+ circuitId: string;
159
+ query: Record<string, any>;
160
+ optional?: boolean | undefined;
161
+ }[];
162
+ message?: string | undefined;
163
+ reason?: string | undefined;
164
+ did_doc?: any;
165
+ };
166
+ from: string;
167
+ thid?: string | undefined;
168
+ to?: string | undefined;
169
+ }>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ type: "auth";
172
+ authRequest: {
173
+ id: string;
174
+ type: string;
175
+ typ: import("./polygon-id.schema.js").MediaType;
176
+ body: {
177
+ callbackUrl: string;
178
+ scope: {
179
+ id: number;
180
+ circuitId: string;
181
+ query: Record<string, any>;
182
+ optional?: boolean | undefined;
183
+ }[];
184
+ message?: string | undefined;
185
+ reason?: string | undefined;
186
+ did_doc?: any;
187
+ };
188
+ from: string;
189
+ thid?: string | undefined;
190
+ to?: string | undefined;
191
+ };
192
+ }, {
193
+ type: "auth";
194
+ authRequest: {
195
+ id: string;
196
+ type: string;
197
+ typ: import("./polygon-id.schema.js").MediaType;
198
+ body: {
199
+ callbackUrl: string;
200
+ scope: {
201
+ id: number;
202
+ circuitId: string;
203
+ query: Record<string, any>;
204
+ optional?: boolean | undefined;
205
+ }[];
206
+ message?: string | undefined;
207
+ reason?: string | undefined;
208
+ did_doc?: any;
209
+ };
210
+ from: string;
211
+ thid?: string | undefined;
212
+ to?: string | undefined;
213
+ };
214
+ }>, z.ZodObject<{
215
+ type: z.ZodLiteral<"credentialOffer">;
216
+ credentialOfferRequest: z.ZodObject<{
217
+ qrCodeLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ schemaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ qrCodeLink?: string | null | undefined;
221
+ schemaType?: string | null | undefined;
222
+ }, {
223
+ qrCodeLink?: string | null | undefined;
224
+ schemaType?: string | null | undefined;
225
+ }>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ type: "credentialOffer";
228
+ credentialOfferRequest: {
229
+ qrCodeLink?: string | null | undefined;
230
+ schemaType?: string | null | undefined;
231
+ };
232
+ }, {
233
+ type: "credentialOffer";
234
+ credentialOfferRequest: {
235
+ qrCodeLink?: string | null | undefined;
236
+ schemaType?: string | null | undefined;
237
+ };
238
+ }>, z.ZodObject<{
239
+ type: z.ZodLiteral<"zkp">;
240
+ zkpRequest: z.ZodObject<{
241
+ id: z.ZodNumber;
242
+ circuitId: z.ZodString;
243
+ optional: z.ZodOptional<z.ZodBoolean>;
244
+ query: z.ZodRecord<z.ZodString, z.ZodAny>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ id: number;
247
+ circuitId: string;
248
+ query: Record<string, any>;
249
+ optional?: boolean | undefined;
250
+ }, {
251
+ id: number;
252
+ circuitId: string;
253
+ query: Record<string, any>;
254
+ optional?: boolean | undefined;
255
+ }>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ type: "zkp";
258
+ zkpRequest: {
259
+ id: number;
260
+ circuitId: string;
261
+ query: Record<string, any>;
262
+ optional?: boolean | undefined;
263
+ };
264
+ }, {
265
+ type: "zkp";
266
+ zkpRequest: {
267
+ id: number;
268
+ circuitId: string;
269
+ query: Record<string, any>;
270
+ optional?: boolean | undefined;
271
+ };
272
+ }>]>;
273
+ export type PolygonIdRequestData = z.infer<typeof PolygonIdRequestData>;
274
+ export declare const PolygonIdRequest: z.ZodObject<{
275
+ type: z.ZodLiteral<"polygonIdRequest">;
276
+ data: z.ZodUnion<[z.ZodObject<{
277
+ type: z.ZodLiteral<"auth">;
278
+ authRequest: z.ZodObject<{
279
+ id: z.ZodString;
280
+ typ: z.ZodNativeEnum<typeof import("./polygon-id.schema.js").MediaType>;
281
+ type: z.ZodString;
282
+ thid: z.ZodOptional<z.ZodString>;
283
+ body: z.ZodObject<{
284
+ callbackUrl: z.ZodString;
285
+ reason: z.ZodOptional<z.ZodString>;
286
+ did_doc: z.ZodOptional<z.ZodAny>;
287
+ message: z.ZodOptional<z.ZodString>;
288
+ scope: z.ZodArray<z.ZodObject<{
289
+ id: z.ZodNumber;
290
+ circuitId: z.ZodString;
291
+ optional: z.ZodOptional<z.ZodBoolean>;
292
+ query: z.ZodRecord<z.ZodString, z.ZodAny>;
293
+ }, "strip", z.ZodTypeAny, {
294
+ id: number;
295
+ circuitId: string;
296
+ query: Record<string, any>;
297
+ optional?: boolean | undefined;
298
+ }, {
299
+ id: number;
300
+ circuitId: string;
301
+ query: Record<string, any>;
302
+ optional?: boolean | undefined;
303
+ }>, "many">;
304
+ }, "strip", z.ZodTypeAny, {
305
+ callbackUrl: string;
306
+ scope: {
307
+ id: number;
308
+ circuitId: string;
309
+ query: Record<string, any>;
310
+ optional?: boolean | undefined;
311
+ }[];
312
+ message?: string | undefined;
313
+ reason?: string | undefined;
314
+ did_doc?: any;
315
+ }, {
316
+ callbackUrl: string;
317
+ scope: {
318
+ id: number;
319
+ circuitId: string;
320
+ query: Record<string, any>;
321
+ optional?: boolean | undefined;
322
+ }[];
323
+ message?: string | undefined;
324
+ reason?: string | undefined;
325
+ did_doc?: any;
326
+ }>;
327
+ from: z.ZodString;
328
+ to: z.ZodOptional<z.ZodString>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ id: string;
331
+ type: string;
332
+ typ: import("./polygon-id.schema.js").MediaType;
333
+ body: {
334
+ callbackUrl: string;
335
+ scope: {
336
+ id: number;
337
+ circuitId: string;
338
+ query: Record<string, any>;
339
+ optional?: boolean | undefined;
340
+ }[];
341
+ message?: string | undefined;
342
+ reason?: string | undefined;
343
+ did_doc?: any;
344
+ };
345
+ from: string;
346
+ thid?: string | undefined;
347
+ to?: string | undefined;
348
+ }, {
349
+ id: string;
350
+ type: string;
351
+ typ: import("./polygon-id.schema.js").MediaType;
352
+ body: {
353
+ callbackUrl: string;
354
+ scope: {
355
+ id: number;
356
+ circuitId: string;
357
+ query: Record<string, any>;
358
+ optional?: boolean | undefined;
359
+ }[];
360
+ message?: string | undefined;
361
+ reason?: string | undefined;
362
+ did_doc?: any;
363
+ };
364
+ from: string;
365
+ thid?: string | undefined;
366
+ to?: string | undefined;
367
+ }>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ type: "auth";
370
+ authRequest: {
371
+ id: string;
372
+ type: string;
373
+ typ: import("./polygon-id.schema.js").MediaType;
374
+ body: {
375
+ callbackUrl: string;
376
+ scope: {
377
+ id: number;
378
+ circuitId: string;
379
+ query: Record<string, any>;
380
+ optional?: boolean | undefined;
381
+ }[];
382
+ message?: string | undefined;
383
+ reason?: string | undefined;
384
+ did_doc?: any;
385
+ };
386
+ from: string;
387
+ thid?: string | undefined;
388
+ to?: string | undefined;
389
+ };
390
+ }, {
391
+ type: "auth";
392
+ authRequest: {
393
+ id: string;
394
+ type: string;
395
+ typ: import("./polygon-id.schema.js").MediaType;
396
+ body: {
397
+ callbackUrl: string;
398
+ scope: {
399
+ id: number;
400
+ circuitId: string;
401
+ query: Record<string, any>;
402
+ optional?: boolean | undefined;
403
+ }[];
404
+ message?: string | undefined;
405
+ reason?: string | undefined;
406
+ did_doc?: any;
407
+ };
408
+ from: string;
409
+ thid?: string | undefined;
410
+ to?: string | undefined;
411
+ };
412
+ }>, z.ZodObject<{
413
+ type: z.ZodLiteral<"credentialOffer">;
414
+ credentialOfferRequest: z.ZodObject<{
415
+ qrCodeLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ schemaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ }, "strip", z.ZodTypeAny, {
418
+ qrCodeLink?: string | null | undefined;
419
+ schemaType?: string | null | undefined;
420
+ }, {
421
+ qrCodeLink?: string | null | undefined;
422
+ schemaType?: string | null | undefined;
423
+ }>;
424
+ }, "strip", z.ZodTypeAny, {
425
+ type: "credentialOffer";
426
+ credentialOfferRequest: {
427
+ qrCodeLink?: string | null | undefined;
428
+ schemaType?: string | null | undefined;
429
+ };
430
+ }, {
431
+ type: "credentialOffer";
432
+ credentialOfferRequest: {
433
+ qrCodeLink?: string | null | undefined;
434
+ schemaType?: string | null | undefined;
435
+ };
436
+ }>, z.ZodObject<{
437
+ type: z.ZodLiteral<"zkp">;
438
+ zkpRequest: z.ZodObject<{
439
+ id: z.ZodNumber;
440
+ circuitId: z.ZodString;
441
+ optional: z.ZodOptional<z.ZodBoolean>;
442
+ query: z.ZodRecord<z.ZodString, z.ZodAny>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ id: number;
445
+ circuitId: string;
446
+ query: Record<string, any>;
447
+ optional?: boolean | undefined;
448
+ }, {
449
+ id: number;
450
+ circuitId: string;
451
+ query: Record<string, any>;
452
+ optional?: boolean | undefined;
453
+ }>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ type: "zkp";
456
+ zkpRequest: {
457
+ id: number;
458
+ circuitId: string;
459
+ query: Record<string, any>;
460
+ optional?: boolean | undefined;
461
+ };
462
+ }, {
463
+ type: "zkp";
464
+ zkpRequest: {
465
+ id: number;
466
+ circuitId: string;
467
+ query: Record<string, any>;
468
+ optional?: boolean | undefined;
469
+ };
470
+ }>]>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ type: "polygonIdRequest";
473
+ data: {
474
+ type: "auth";
475
+ authRequest: {
476
+ id: string;
477
+ type: string;
478
+ typ: import("./polygon-id.schema.js").MediaType;
479
+ body: {
480
+ callbackUrl: string;
481
+ scope: {
482
+ id: number;
483
+ circuitId: string;
484
+ query: Record<string, any>;
485
+ optional?: boolean | undefined;
486
+ }[];
487
+ message?: string | undefined;
488
+ reason?: string | undefined;
489
+ did_doc?: any;
490
+ };
491
+ from: string;
492
+ thid?: string | undefined;
493
+ to?: string | undefined;
494
+ };
495
+ } | {
496
+ type: "credentialOffer";
497
+ credentialOfferRequest: {
498
+ qrCodeLink?: string | null | undefined;
499
+ schemaType?: string | null | undefined;
500
+ };
501
+ } | {
502
+ type: "zkp";
503
+ zkpRequest: {
504
+ id: number;
505
+ circuitId: string;
506
+ query: Record<string, any>;
507
+ optional?: boolean | undefined;
508
+ };
509
+ };
510
+ }, {
511
+ type: "polygonIdRequest";
512
+ data: {
513
+ type: "auth";
514
+ authRequest: {
515
+ id: string;
516
+ type: string;
517
+ typ: import("./polygon-id.schema.js").MediaType;
518
+ body: {
519
+ callbackUrl: string;
520
+ scope: {
521
+ id: number;
522
+ circuitId: string;
523
+ query: Record<string, any>;
524
+ optional?: boolean | undefined;
525
+ }[];
526
+ message?: string | undefined;
527
+ reason?: string | undefined;
528
+ did_doc?: any;
529
+ };
530
+ from: string;
531
+ thid?: string | undefined;
532
+ to?: string | undefined;
533
+ };
534
+ } | {
535
+ type: "credentialOffer";
536
+ credentialOfferRequest: {
537
+ qrCodeLink?: string | null | undefined;
538
+ schemaType?: string | null | undefined;
539
+ };
540
+ } | {
541
+ type: "zkp";
542
+ zkpRequest: {
543
+ id: number;
544
+ circuitId: string;
545
+ query: Record<string, any>;
546
+ optional?: boolean | undefined;
547
+ };
548
+ };
549
+ }>;
550
+ export type PolygonIdRequest = z.infer<typeof PolygonIdRequest>;
551
+ /**
552
+ * PolygonIdResponse
553
+ */
554
+ export declare const PolygonIdResponseData: z.ZodUnion<[z.ZodObject<{
555
+ type: z.ZodLiteral<"auth">;
556
+ authResponse: z.ZodObject<{
557
+ id: z.ZodString;
558
+ typ: z.ZodOptional<z.ZodNativeEnum<typeof import("./polygon-id.schema.js").MediaType>>;
559
+ type: z.ZodString;
560
+ thid: z.ZodOptional<z.ZodString>;
561
+ body: z.ZodObject<{
562
+ did_doc: z.ZodOptional<z.ZodAny>;
563
+ message: z.ZodOptional<z.ZodString>;
564
+ scope: z.ZodArray<z.ZodObject<{
565
+ id: z.ZodNumber;
566
+ circuitId: z.ZodString;
567
+ vp: z.ZodOptional<z.ZodAny>;
568
+ proof: z.ZodObject<{
569
+ pi_a: z.ZodArray<z.ZodString, "many">;
570
+ pi_b: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
571
+ pi_c: z.ZodArray<z.ZodString, "many">;
572
+ protocol: z.ZodString;
573
+ curve: z.ZodOptional<z.ZodString>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ pi_a: string[];
576
+ pi_b: string[][];
577
+ pi_c: string[];
578
+ protocol: string;
579
+ curve?: string | undefined;
580
+ }, {
581
+ pi_a: string[];
582
+ pi_b: string[][];
583
+ pi_c: string[];
584
+ protocol: string;
585
+ curve?: string | undefined;
586
+ }>;
587
+ pub_signals: z.ZodArray<z.ZodString, "many">;
588
+ }, "strip", z.ZodTypeAny, {
589
+ id: number;
590
+ proof: {
591
+ pi_a: string[];
592
+ pi_b: string[][];
593
+ pi_c: string[];
594
+ protocol: string;
595
+ curve?: string | undefined;
596
+ };
597
+ circuitId: string;
598
+ pub_signals: string[];
599
+ vp?: any;
600
+ }, {
601
+ id: number;
602
+ proof: {
603
+ pi_a: string[];
604
+ pi_b: string[][];
605
+ pi_c: string[];
606
+ protocol: string;
607
+ curve?: string | undefined;
608
+ };
609
+ circuitId: string;
610
+ pub_signals: string[];
611
+ vp?: any;
612
+ }>, "many">;
613
+ }, "strip", z.ZodTypeAny, {
614
+ scope: {
615
+ id: number;
616
+ proof: {
617
+ pi_a: string[];
618
+ pi_b: string[][];
619
+ pi_c: string[];
620
+ protocol: string;
621
+ curve?: string | undefined;
622
+ };
623
+ circuitId: string;
624
+ pub_signals: string[];
625
+ vp?: any;
626
+ }[];
627
+ message?: string | undefined;
628
+ did_doc?: any;
629
+ }, {
630
+ scope: {
631
+ id: number;
632
+ proof: {
633
+ pi_a: string[];
634
+ pi_b: string[][];
635
+ pi_c: string[];
636
+ protocol: string;
637
+ curve?: string | undefined;
638
+ };
639
+ circuitId: string;
640
+ pub_signals: string[];
641
+ vp?: any;
642
+ }[];
643
+ message?: string | undefined;
644
+ did_doc?: any;
645
+ }>;
646
+ from: z.ZodOptional<z.ZodString>;
647
+ to: z.ZodOptional<z.ZodString>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ id: string;
650
+ type: string;
651
+ body: {
652
+ scope: {
653
+ id: number;
654
+ proof: {
655
+ pi_a: string[];
656
+ pi_b: string[][];
657
+ pi_c: string[];
658
+ protocol: string;
659
+ curve?: string | undefined;
660
+ };
661
+ circuitId: string;
662
+ pub_signals: string[];
663
+ vp?: any;
664
+ }[];
665
+ message?: string | undefined;
666
+ did_doc?: any;
667
+ };
668
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
669
+ thid?: string | undefined;
670
+ from?: string | undefined;
671
+ to?: string | undefined;
672
+ }, {
673
+ id: string;
674
+ type: string;
675
+ body: {
676
+ scope: {
677
+ id: number;
678
+ proof: {
679
+ pi_a: string[];
680
+ pi_b: string[][];
681
+ pi_c: string[];
682
+ protocol: string;
683
+ curve?: string | undefined;
684
+ };
685
+ circuitId: string;
686
+ pub_signals: string[];
687
+ vp?: any;
688
+ }[];
689
+ message?: string | undefined;
690
+ did_doc?: any;
691
+ };
692
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
693
+ thid?: string | undefined;
694
+ from?: string | undefined;
695
+ to?: string | undefined;
696
+ }>;
697
+ }, "strip", z.ZodTypeAny, {
698
+ type: "auth";
699
+ authResponse: {
700
+ id: string;
701
+ type: string;
702
+ body: {
703
+ scope: {
704
+ id: number;
705
+ proof: {
706
+ pi_a: string[];
707
+ pi_b: string[][];
708
+ pi_c: string[];
709
+ protocol: string;
710
+ curve?: string | undefined;
711
+ };
712
+ circuitId: string;
713
+ pub_signals: string[];
714
+ vp?: any;
715
+ }[];
716
+ message?: string | undefined;
717
+ did_doc?: any;
718
+ };
719
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
720
+ thid?: string | undefined;
721
+ from?: string | undefined;
722
+ to?: string | undefined;
723
+ };
724
+ }, {
725
+ type: "auth";
726
+ authResponse: {
727
+ id: string;
728
+ type: string;
729
+ body: {
730
+ scope: {
731
+ id: number;
732
+ proof: {
733
+ pi_a: string[];
734
+ pi_b: string[][];
735
+ pi_c: string[];
736
+ protocol: string;
737
+ curve?: string | undefined;
738
+ };
739
+ circuitId: string;
740
+ pub_signals: string[];
741
+ vp?: any;
742
+ }[];
743
+ message?: string | undefined;
744
+ did_doc?: any;
745
+ };
746
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
747
+ thid?: string | undefined;
748
+ from?: string | undefined;
749
+ to?: string | undefined;
750
+ };
751
+ }>, z.ZodObject<{
752
+ type: z.ZodLiteral<"credentialOffer">;
753
+ credentialOfferResponse: z.ZodArray<z.ZodObject<{
754
+ id: z.ZodString;
755
+ "@context": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
756
+ type: z.ZodArray<z.ZodString, "many">;
757
+ expirationDate: z.ZodOptional<z.ZodString>;
758
+ issuanceDate: z.ZodOptional<z.ZodString>;
759
+ credentialSubject: z.ZodRecord<z.ZodString, z.ZodAny>;
760
+ credentialStatus: z.ZodObject<{
761
+ id: z.ZodString;
762
+ type: z.ZodEnum<["SparseMerkleTreeProof", "Iden3ReverseSparseMerkleTreeProof", "Iden3commRevocationStatusV1.0", "Iden3OnchainSparseMerkleTreeProof2023"]>;
763
+ revocationNonce: z.ZodOptional<z.ZodNumber>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ id: string;
766
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
767
+ revocationNonce?: number | undefined;
768
+ }, {
769
+ id: string;
770
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
771
+ revocationNonce?: number | undefined;
772
+ }>;
773
+ issuer: z.ZodString;
774
+ credentialSchema: z.ZodObject<{
775
+ id: z.ZodString;
776
+ type: z.ZodString;
777
+ }, "strip", z.ZodTypeAny, {
778
+ id: string;
779
+ type: string;
780
+ }, {
781
+ id: string;
782
+ type: string;
783
+ }>;
784
+ proof: z.ZodAny;
785
+ }, "strip", z.ZodTypeAny, {
786
+ id: string;
787
+ type: string[];
788
+ credentialSubject: Record<string, any>;
789
+ credentialStatus: {
790
+ id: string;
791
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
792
+ revocationNonce?: number | undefined;
793
+ };
794
+ issuer: string;
795
+ credentialSchema: {
796
+ id: string;
797
+ type: string;
798
+ };
799
+ "@context"?: string[] | undefined;
800
+ expirationDate?: string | undefined;
801
+ issuanceDate?: string | undefined;
802
+ proof?: any;
803
+ }, {
804
+ id: string;
805
+ type: string[];
806
+ credentialSubject: Record<string, any>;
807
+ credentialStatus: {
808
+ id: string;
809
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
810
+ revocationNonce?: number | undefined;
811
+ };
812
+ issuer: string;
813
+ credentialSchema: {
814
+ id: string;
815
+ type: string;
816
+ };
817
+ "@context"?: string[] | undefined;
818
+ expirationDate?: string | undefined;
819
+ issuanceDate?: string | undefined;
820
+ proof?: any;
821
+ }>, "many">;
822
+ }, "strip", z.ZodTypeAny, {
823
+ type: "credentialOffer";
824
+ credentialOfferResponse: {
825
+ id: string;
826
+ type: string[];
827
+ credentialSubject: Record<string, any>;
828
+ credentialStatus: {
829
+ id: string;
830
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
831
+ revocationNonce?: number | undefined;
832
+ };
833
+ issuer: string;
834
+ credentialSchema: {
835
+ id: string;
836
+ type: string;
837
+ };
838
+ "@context"?: string[] | undefined;
839
+ expirationDate?: string | undefined;
840
+ issuanceDate?: string | undefined;
841
+ proof?: any;
842
+ }[];
843
+ }, {
844
+ type: "credentialOffer";
845
+ credentialOfferResponse: {
846
+ id: string;
847
+ type: string[];
848
+ credentialSubject: Record<string, any>;
849
+ credentialStatus: {
850
+ id: string;
851
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
852
+ revocationNonce?: number | undefined;
853
+ };
854
+ issuer: string;
855
+ credentialSchema: {
856
+ id: string;
857
+ type: string;
858
+ };
859
+ "@context"?: string[] | undefined;
860
+ expirationDate?: string | undefined;
861
+ issuanceDate?: string | undefined;
862
+ proof?: any;
863
+ }[];
864
+ }>, z.ZodObject<{
865
+ type: z.ZodLiteral<"zkp">;
866
+ zkpResponse: z.ZodObject<{
867
+ id: z.ZodNumber;
868
+ circuitId: z.ZodString;
869
+ vp: z.ZodOptional<z.ZodAny>;
870
+ proof: z.ZodObject<{
871
+ pi_a: z.ZodArray<z.ZodString, "many">;
872
+ pi_b: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
873
+ pi_c: z.ZodArray<z.ZodString, "many">;
874
+ protocol: z.ZodString;
875
+ curve: z.ZodOptional<z.ZodString>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ pi_a: string[];
878
+ pi_b: string[][];
879
+ pi_c: string[];
880
+ protocol: string;
881
+ curve?: string | undefined;
882
+ }, {
883
+ pi_a: string[];
884
+ pi_b: string[][];
885
+ pi_c: string[];
886
+ protocol: string;
887
+ curve?: string | undefined;
888
+ }>;
889
+ pub_signals: z.ZodArray<z.ZodString, "many">;
890
+ }, "strip", z.ZodTypeAny, {
891
+ id: number;
892
+ proof: {
893
+ pi_a: string[];
894
+ pi_b: string[][];
895
+ pi_c: string[];
896
+ protocol: string;
897
+ curve?: string | undefined;
898
+ };
899
+ circuitId: string;
900
+ pub_signals: string[];
901
+ vp?: any;
902
+ }, {
903
+ id: number;
904
+ proof: {
905
+ pi_a: string[];
906
+ pi_b: string[][];
907
+ pi_c: string[];
908
+ protocol: string;
909
+ curve?: string | undefined;
910
+ };
911
+ circuitId: string;
912
+ pub_signals: string[];
913
+ vp?: any;
914
+ }>;
915
+ }, "strip", z.ZodTypeAny, {
916
+ type: "zkp";
917
+ zkpResponse: {
918
+ id: number;
919
+ proof: {
920
+ pi_a: string[];
921
+ pi_b: string[][];
922
+ pi_c: string[];
923
+ protocol: string;
924
+ curve?: string | undefined;
925
+ };
926
+ circuitId: string;
927
+ pub_signals: string[];
928
+ vp?: any;
929
+ };
930
+ }, {
931
+ type: "zkp";
932
+ zkpResponse: {
933
+ id: number;
934
+ proof: {
935
+ pi_a: string[];
936
+ pi_b: string[][];
937
+ pi_c: string[];
938
+ protocol: string;
939
+ curve?: string | undefined;
940
+ };
941
+ circuitId: string;
942
+ pub_signals: string[];
943
+ vp?: any;
944
+ };
945
+ }>, z.ZodObject<{
946
+ type: z.ZodLiteral<"close">;
947
+ screen: z.ZodEnum<["auth", "credentialOffer", "zkp", "getCredentials"]>;
948
+ closeResponse: z.ZodString;
949
+ }, "strip", z.ZodTypeAny, {
950
+ type: "close";
951
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
952
+ closeResponse: string;
953
+ }, {
954
+ type: "close";
955
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
956
+ closeResponse: string;
957
+ }>]>;
958
+ export type PolygonIdResponseData = z.infer<typeof PolygonIdResponseData>;
959
+ export declare const PolygonIdResponse: z.ZodObject<{
960
+ type: z.ZodLiteral<"polygonIdResponse">;
961
+ identifier: z.ZodString;
962
+ data: z.ZodUnion<[z.ZodObject<{
963
+ type: z.ZodLiteral<"auth">;
964
+ authResponse: z.ZodObject<{
965
+ id: z.ZodString;
966
+ typ: z.ZodOptional<z.ZodNativeEnum<typeof import("./polygon-id.schema.js").MediaType>>;
967
+ type: z.ZodString;
968
+ thid: z.ZodOptional<z.ZodString>;
969
+ body: z.ZodObject<{
970
+ did_doc: z.ZodOptional<z.ZodAny>;
971
+ message: z.ZodOptional<z.ZodString>;
972
+ scope: z.ZodArray<z.ZodObject<{
973
+ id: z.ZodNumber;
974
+ circuitId: z.ZodString;
975
+ vp: z.ZodOptional<z.ZodAny>;
976
+ proof: z.ZodObject<{
977
+ pi_a: z.ZodArray<z.ZodString, "many">;
978
+ pi_b: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
979
+ pi_c: z.ZodArray<z.ZodString, "many">;
980
+ protocol: z.ZodString;
981
+ curve: z.ZodOptional<z.ZodString>;
982
+ }, "strip", z.ZodTypeAny, {
983
+ pi_a: string[];
984
+ pi_b: string[][];
985
+ pi_c: string[];
986
+ protocol: string;
987
+ curve?: string | undefined;
988
+ }, {
989
+ pi_a: string[];
990
+ pi_b: string[][];
991
+ pi_c: string[];
992
+ protocol: string;
993
+ curve?: string | undefined;
994
+ }>;
995
+ pub_signals: z.ZodArray<z.ZodString, "many">;
996
+ }, "strip", z.ZodTypeAny, {
997
+ id: number;
998
+ proof: {
999
+ pi_a: string[];
1000
+ pi_b: string[][];
1001
+ pi_c: string[];
1002
+ protocol: string;
1003
+ curve?: string | undefined;
1004
+ };
1005
+ circuitId: string;
1006
+ pub_signals: string[];
1007
+ vp?: any;
1008
+ }, {
1009
+ id: number;
1010
+ proof: {
1011
+ pi_a: string[];
1012
+ pi_b: string[][];
1013
+ pi_c: string[];
1014
+ protocol: string;
1015
+ curve?: string | undefined;
1016
+ };
1017
+ circuitId: string;
1018
+ pub_signals: string[];
1019
+ vp?: any;
1020
+ }>, "many">;
1021
+ }, "strip", z.ZodTypeAny, {
1022
+ scope: {
1023
+ id: number;
1024
+ proof: {
1025
+ pi_a: string[];
1026
+ pi_b: string[][];
1027
+ pi_c: string[];
1028
+ protocol: string;
1029
+ curve?: string | undefined;
1030
+ };
1031
+ circuitId: string;
1032
+ pub_signals: string[];
1033
+ vp?: any;
1034
+ }[];
1035
+ message?: string | undefined;
1036
+ did_doc?: any;
1037
+ }, {
1038
+ scope: {
1039
+ id: number;
1040
+ proof: {
1041
+ pi_a: string[];
1042
+ pi_b: string[][];
1043
+ pi_c: string[];
1044
+ protocol: string;
1045
+ curve?: string | undefined;
1046
+ };
1047
+ circuitId: string;
1048
+ pub_signals: string[];
1049
+ vp?: any;
1050
+ }[];
1051
+ message?: string | undefined;
1052
+ did_doc?: any;
1053
+ }>;
1054
+ from: z.ZodOptional<z.ZodString>;
1055
+ to: z.ZodOptional<z.ZodString>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ id: string;
1058
+ type: string;
1059
+ body: {
1060
+ scope: {
1061
+ id: number;
1062
+ proof: {
1063
+ pi_a: string[];
1064
+ pi_b: string[][];
1065
+ pi_c: string[];
1066
+ protocol: string;
1067
+ curve?: string | undefined;
1068
+ };
1069
+ circuitId: string;
1070
+ pub_signals: string[];
1071
+ vp?: any;
1072
+ }[];
1073
+ message?: string | undefined;
1074
+ did_doc?: any;
1075
+ };
1076
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
1077
+ thid?: string | undefined;
1078
+ from?: string | undefined;
1079
+ to?: string | undefined;
1080
+ }, {
1081
+ id: string;
1082
+ type: string;
1083
+ body: {
1084
+ scope: {
1085
+ id: number;
1086
+ proof: {
1087
+ pi_a: string[];
1088
+ pi_b: string[][];
1089
+ pi_c: string[];
1090
+ protocol: string;
1091
+ curve?: string | undefined;
1092
+ };
1093
+ circuitId: string;
1094
+ pub_signals: string[];
1095
+ vp?: any;
1096
+ }[];
1097
+ message?: string | undefined;
1098
+ did_doc?: any;
1099
+ };
1100
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
1101
+ thid?: string | undefined;
1102
+ from?: string | undefined;
1103
+ to?: string | undefined;
1104
+ }>;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ type: "auth";
1107
+ authResponse: {
1108
+ id: string;
1109
+ type: string;
1110
+ body: {
1111
+ scope: {
1112
+ id: number;
1113
+ proof: {
1114
+ pi_a: string[];
1115
+ pi_b: string[][];
1116
+ pi_c: string[];
1117
+ protocol: string;
1118
+ curve?: string | undefined;
1119
+ };
1120
+ circuitId: string;
1121
+ pub_signals: string[];
1122
+ vp?: any;
1123
+ }[];
1124
+ message?: string | undefined;
1125
+ did_doc?: any;
1126
+ };
1127
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
1128
+ thid?: string | undefined;
1129
+ from?: string | undefined;
1130
+ to?: string | undefined;
1131
+ };
1132
+ }, {
1133
+ type: "auth";
1134
+ authResponse: {
1135
+ id: string;
1136
+ type: string;
1137
+ body: {
1138
+ scope: {
1139
+ id: number;
1140
+ proof: {
1141
+ pi_a: string[];
1142
+ pi_b: string[][];
1143
+ pi_c: string[];
1144
+ protocol: string;
1145
+ curve?: string | undefined;
1146
+ };
1147
+ circuitId: string;
1148
+ pub_signals: string[];
1149
+ vp?: any;
1150
+ }[];
1151
+ message?: string | undefined;
1152
+ did_doc?: any;
1153
+ };
1154
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
1155
+ thid?: string | undefined;
1156
+ from?: string | undefined;
1157
+ to?: string | undefined;
1158
+ };
1159
+ }>, z.ZodObject<{
1160
+ type: z.ZodLiteral<"credentialOffer">;
1161
+ credentialOfferResponse: z.ZodArray<z.ZodObject<{
1162
+ id: z.ZodString;
1163
+ "@context": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1164
+ type: z.ZodArray<z.ZodString, "many">;
1165
+ expirationDate: z.ZodOptional<z.ZodString>;
1166
+ issuanceDate: z.ZodOptional<z.ZodString>;
1167
+ credentialSubject: z.ZodRecord<z.ZodString, z.ZodAny>;
1168
+ credentialStatus: z.ZodObject<{
1169
+ id: z.ZodString;
1170
+ type: z.ZodEnum<["SparseMerkleTreeProof", "Iden3ReverseSparseMerkleTreeProof", "Iden3commRevocationStatusV1.0", "Iden3OnchainSparseMerkleTreeProof2023"]>;
1171
+ revocationNonce: z.ZodOptional<z.ZodNumber>;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ id: string;
1174
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1175
+ revocationNonce?: number | undefined;
1176
+ }, {
1177
+ id: string;
1178
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1179
+ revocationNonce?: number | undefined;
1180
+ }>;
1181
+ issuer: z.ZodString;
1182
+ credentialSchema: z.ZodObject<{
1183
+ id: z.ZodString;
1184
+ type: z.ZodString;
1185
+ }, "strip", z.ZodTypeAny, {
1186
+ id: string;
1187
+ type: string;
1188
+ }, {
1189
+ id: string;
1190
+ type: string;
1191
+ }>;
1192
+ proof: z.ZodAny;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ id: string;
1195
+ type: string[];
1196
+ credentialSubject: Record<string, any>;
1197
+ credentialStatus: {
1198
+ id: string;
1199
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1200
+ revocationNonce?: number | undefined;
1201
+ };
1202
+ issuer: string;
1203
+ credentialSchema: {
1204
+ id: string;
1205
+ type: string;
1206
+ };
1207
+ "@context"?: string[] | undefined;
1208
+ expirationDate?: string | undefined;
1209
+ issuanceDate?: string | undefined;
1210
+ proof?: any;
1211
+ }, {
1212
+ id: string;
1213
+ type: string[];
1214
+ credentialSubject: Record<string, any>;
1215
+ credentialStatus: {
1216
+ id: string;
1217
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1218
+ revocationNonce?: number | undefined;
1219
+ };
1220
+ issuer: string;
1221
+ credentialSchema: {
1222
+ id: string;
1223
+ type: string;
1224
+ };
1225
+ "@context"?: string[] | undefined;
1226
+ expirationDate?: string | undefined;
1227
+ issuanceDate?: string | undefined;
1228
+ proof?: any;
1229
+ }>, "many">;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ type: "credentialOffer";
1232
+ credentialOfferResponse: {
1233
+ id: string;
1234
+ type: string[];
1235
+ credentialSubject: Record<string, any>;
1236
+ credentialStatus: {
1237
+ id: string;
1238
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1239
+ revocationNonce?: number | undefined;
1240
+ };
1241
+ issuer: string;
1242
+ credentialSchema: {
1243
+ id: string;
1244
+ type: string;
1245
+ };
1246
+ "@context"?: string[] | undefined;
1247
+ expirationDate?: string | undefined;
1248
+ issuanceDate?: string | undefined;
1249
+ proof?: any;
1250
+ }[];
1251
+ }, {
1252
+ type: "credentialOffer";
1253
+ credentialOfferResponse: {
1254
+ id: string;
1255
+ type: string[];
1256
+ credentialSubject: Record<string, any>;
1257
+ credentialStatus: {
1258
+ id: string;
1259
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1260
+ revocationNonce?: number | undefined;
1261
+ };
1262
+ issuer: string;
1263
+ credentialSchema: {
1264
+ id: string;
1265
+ type: string;
1266
+ };
1267
+ "@context"?: string[] | undefined;
1268
+ expirationDate?: string | undefined;
1269
+ issuanceDate?: string | undefined;
1270
+ proof?: any;
1271
+ }[];
1272
+ }>, z.ZodObject<{
1273
+ type: z.ZodLiteral<"zkp">;
1274
+ zkpResponse: z.ZodObject<{
1275
+ id: z.ZodNumber;
1276
+ circuitId: z.ZodString;
1277
+ vp: z.ZodOptional<z.ZodAny>;
1278
+ proof: z.ZodObject<{
1279
+ pi_a: z.ZodArray<z.ZodString, "many">;
1280
+ pi_b: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
1281
+ pi_c: z.ZodArray<z.ZodString, "many">;
1282
+ protocol: z.ZodString;
1283
+ curve: z.ZodOptional<z.ZodString>;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ pi_a: string[];
1286
+ pi_b: string[][];
1287
+ pi_c: string[];
1288
+ protocol: string;
1289
+ curve?: string | undefined;
1290
+ }, {
1291
+ pi_a: string[];
1292
+ pi_b: string[][];
1293
+ pi_c: string[];
1294
+ protocol: string;
1295
+ curve?: string | undefined;
1296
+ }>;
1297
+ pub_signals: z.ZodArray<z.ZodString, "many">;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ id: number;
1300
+ proof: {
1301
+ pi_a: string[];
1302
+ pi_b: string[][];
1303
+ pi_c: string[];
1304
+ protocol: string;
1305
+ curve?: string | undefined;
1306
+ };
1307
+ circuitId: string;
1308
+ pub_signals: string[];
1309
+ vp?: any;
1310
+ }, {
1311
+ id: number;
1312
+ proof: {
1313
+ pi_a: string[];
1314
+ pi_b: string[][];
1315
+ pi_c: string[];
1316
+ protocol: string;
1317
+ curve?: string | undefined;
1318
+ };
1319
+ circuitId: string;
1320
+ pub_signals: string[];
1321
+ vp?: any;
1322
+ }>;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ type: "zkp";
1325
+ zkpResponse: {
1326
+ id: number;
1327
+ proof: {
1328
+ pi_a: string[];
1329
+ pi_b: string[][];
1330
+ pi_c: string[];
1331
+ protocol: string;
1332
+ curve?: string | undefined;
1333
+ };
1334
+ circuitId: string;
1335
+ pub_signals: string[];
1336
+ vp?: any;
1337
+ };
1338
+ }, {
1339
+ type: "zkp";
1340
+ zkpResponse: {
1341
+ id: number;
1342
+ proof: {
1343
+ pi_a: string[];
1344
+ pi_b: string[][];
1345
+ pi_c: string[];
1346
+ protocol: string;
1347
+ curve?: string | undefined;
1348
+ };
1349
+ circuitId: string;
1350
+ pub_signals: string[];
1351
+ vp?: any;
1352
+ };
1353
+ }>, z.ZodObject<{
1354
+ type: z.ZodLiteral<"close">;
1355
+ screen: z.ZodEnum<["auth", "credentialOffer", "zkp", "getCredentials"]>;
1356
+ closeResponse: z.ZodString;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ type: "close";
1359
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
1360
+ closeResponse: string;
1361
+ }, {
1362
+ type: "close";
1363
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
1364
+ closeResponse: string;
1365
+ }>]>;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ type: "polygonIdResponse";
1368
+ data: {
1369
+ type: "auth";
1370
+ authResponse: {
1371
+ id: string;
1372
+ type: string;
1373
+ body: {
1374
+ scope: {
1375
+ id: number;
1376
+ proof: {
1377
+ pi_a: string[];
1378
+ pi_b: string[][];
1379
+ pi_c: string[];
1380
+ protocol: string;
1381
+ curve?: string | undefined;
1382
+ };
1383
+ circuitId: string;
1384
+ pub_signals: string[];
1385
+ vp?: any;
1386
+ }[];
1387
+ message?: string | undefined;
1388
+ did_doc?: any;
1389
+ };
1390
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
1391
+ thid?: string | undefined;
1392
+ from?: string | undefined;
1393
+ to?: string | undefined;
1394
+ };
1395
+ } | {
1396
+ type: "credentialOffer";
1397
+ credentialOfferResponse: {
1398
+ id: string;
1399
+ type: string[];
1400
+ credentialSubject: Record<string, any>;
1401
+ credentialStatus: {
1402
+ id: string;
1403
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1404
+ revocationNonce?: number | undefined;
1405
+ };
1406
+ issuer: string;
1407
+ credentialSchema: {
1408
+ id: string;
1409
+ type: string;
1410
+ };
1411
+ "@context"?: string[] | undefined;
1412
+ expirationDate?: string | undefined;
1413
+ issuanceDate?: string | undefined;
1414
+ proof?: any;
1415
+ }[];
1416
+ } | {
1417
+ type: "zkp";
1418
+ zkpResponse: {
1419
+ id: number;
1420
+ proof: {
1421
+ pi_a: string[];
1422
+ pi_b: string[][];
1423
+ pi_c: string[];
1424
+ protocol: string;
1425
+ curve?: string | undefined;
1426
+ };
1427
+ circuitId: string;
1428
+ pub_signals: string[];
1429
+ vp?: any;
1430
+ };
1431
+ } | {
1432
+ type: "close";
1433
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
1434
+ closeResponse: string;
1435
+ };
1436
+ identifier: string;
1437
+ }, {
1438
+ type: "polygonIdResponse";
1439
+ data: {
1440
+ type: "auth";
1441
+ authResponse: {
1442
+ id: string;
1443
+ type: string;
1444
+ body: {
1445
+ scope: {
1446
+ id: number;
1447
+ proof: {
1448
+ pi_a: string[];
1449
+ pi_b: string[][];
1450
+ pi_c: string[];
1451
+ protocol: string;
1452
+ curve?: string | undefined;
1453
+ };
1454
+ circuitId: string;
1455
+ pub_signals: string[];
1456
+ vp?: any;
1457
+ }[];
1458
+ message?: string | undefined;
1459
+ did_doc?: any;
1460
+ };
1461
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
1462
+ thid?: string | undefined;
1463
+ from?: string | undefined;
1464
+ to?: string | undefined;
1465
+ };
1466
+ } | {
1467
+ type: "credentialOffer";
1468
+ credentialOfferResponse: {
1469
+ id: string;
1470
+ type: string[];
1471
+ credentialSubject: Record<string, any>;
1472
+ credentialStatus: {
1473
+ id: string;
1474
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
1475
+ revocationNonce?: number | undefined;
1476
+ };
1477
+ issuer: string;
1478
+ credentialSchema: {
1479
+ id: string;
1480
+ type: string;
1481
+ };
1482
+ "@context"?: string[] | undefined;
1483
+ expirationDate?: string | undefined;
1484
+ issuanceDate?: string | undefined;
1485
+ proof?: any;
1486
+ }[];
1487
+ } | {
1488
+ type: "zkp";
1489
+ zkpResponse: {
1490
+ id: number;
1491
+ proof: {
1492
+ pi_a: string[];
1493
+ pi_b: string[][];
1494
+ pi_c: string[];
1495
+ protocol: string;
1496
+ curve?: string | undefined;
1497
+ };
1498
+ circuitId: string;
1499
+ pub_signals: string[];
1500
+ vp?: any;
1501
+ };
1502
+ } | {
1503
+ type: "close";
1504
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
1505
+ closeResponse: string;
1506
+ };
1507
+ identifier: string;
1508
+ }>;
1509
+ export type PolygonIdResponse = z.infer<typeof PolygonIdResponse>;
1510
+ /**
1511
+ * StartFlowRequest
1512
+ */
1513
+ export declare const StartFlowRequest: z.ZodUnion<[z.ZodObject<{
1514
+ type: z.ZodLiteral<"startVerification">;
1515
+ data: z.ZodUndefined;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ type: "startVerification";
1518
+ data?: undefined;
1519
+ }, {
1520
+ type: "startVerification";
1521
+ data?: undefined;
1522
+ }>, z.ZodObject<{
1523
+ type: z.ZodLiteral<"startManagement">;
1524
+ data: z.ZodUndefined;
1525
+ }, "strip", z.ZodTypeAny, {
1526
+ type: "startManagement";
1527
+ data?: undefined;
1528
+ }, {
1529
+ type: "startManagement";
1530
+ data?: undefined;
1531
+ }>, z.ZodObject<{
1532
+ type: z.ZodLiteral<"startKYB">;
1533
+ data: z.ZodUndefined;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ type: "startKYB";
1536
+ data?: undefined;
1537
+ }, {
1538
+ type: "startKYB";
1539
+ data?: undefined;
1540
+ }>]>;
1541
+ export type StartFlowRequest = z.infer<typeof StartFlowRequest>;
1542
+ /**
1543
+ * IsVerifiedRequest
1544
+ */
1545
+ export declare const IsVerifiedRequest: z.ZodObject<{
1546
+ type: z.ZodLiteral<"isVerifiedRequest">;
1547
+ data: z.ZodObject<{
1548
+ userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
1549
+ }, "strip", z.ZodTypeAny, {
1550
+ userAddress: `0x${string}`;
1551
+ }, {
1552
+ userAddress: string;
1553
+ }>;
1554
+ identifier: z.ZodString;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ type: "isVerifiedRequest";
1557
+ data: {
1558
+ userAddress: `0x${string}`;
1559
+ };
1560
+ identifier: string;
1561
+ }, {
1562
+ type: "isVerifiedRequest";
1563
+ data: {
1564
+ userAddress: string;
1565
+ };
1566
+ identifier: string;
1567
+ }>;
1568
+ export type IsVerifiedRequest = z.infer<typeof IsVerifiedRequest>;
1569
+ /**
1570
+ * IsVerifiedResponse
1571
+ */
1572
+ export declare const IsVerifiedResponse: z.ZodObject<{
1573
+ type: z.ZodLiteral<"isVerifiedResponse">;
1574
+ isVerified: z.ZodBoolean;
1575
+ identifier: z.ZodString;
1576
+ }, "strip", z.ZodTypeAny, {
1577
+ type: "isVerifiedResponse";
1578
+ identifier: string;
1579
+ isVerified: boolean;
1580
+ }, {
1581
+ type: "isVerifiedResponse";
1582
+ identifier: string;
1583
+ isVerified: boolean;
1584
+ }>;
1585
+ export type IsVerifiedResponse = z.infer<typeof IsVerifiedResponse>;
1586
+ /**
1587
+ * GetTxAuthSigRequest
1588
+ */
1589
+ export declare const GetTxAuthSigRequest: z.ZodObject<{
1590
+ type: z.ZodLiteral<"getTxAuthSigRequest">;
1591
+ data: z.ZodObject<Omit<{
1592
+ chainId: z.ZodEffects<z.ZodEnum<[import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM, import("../index.js").NEXERA_EVM_CHAINS.POLYGON, import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY, import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE, import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI, import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM, import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA, import("../index.js").NEXERA_EVM_CHAINS.BASE, import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA, import("../index.js").NEXERA_EVM_CHAINS.BNB, import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET, import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM, import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER, import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM, import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA]>, import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI | import("../index.js").NEXERA_EVM_CHAINS.POLYGON | import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY | import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.BASE | import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM | import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER | import("../index.js").NEXERA_EVM_CHAINS.BNB | import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET, unknown>;
1593
+ contractAbi: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1594
+ contractAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
1595
+ functionName: z.ZodString;
1596
+ args: z.ZodArray<z.ZodUnknown, "many">;
1597
+ userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
1598
+ blockExpiration: z.ZodOptional<z.ZodNumber>;
1599
+ nonce: z.ZodOptional<z.ZodNumber>;
1600
+ }, "userAddress">, "strip", z.ZodTypeAny, {
1601
+ chainId: import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI | import("../index.js").NEXERA_EVM_CHAINS.POLYGON | import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY | import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.BASE | import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM | import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER | import("../index.js").NEXERA_EVM_CHAINS.BNB | import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET;
1602
+ contractAbi: Record<string, unknown>[];
1603
+ contractAddress: `0x${string}`;
1604
+ functionName: string;
1605
+ args: unknown[];
1606
+ blockExpiration?: number | undefined;
1607
+ nonce?: number | undefined;
1608
+ }, {
1609
+ contractAbi: Record<string, unknown>[];
1610
+ contractAddress: string;
1611
+ functionName: string;
1612
+ args: unknown[];
1613
+ chainId?: unknown;
1614
+ blockExpiration?: number | undefined;
1615
+ nonce?: number | undefined;
1616
+ }>;
1617
+ identifier: z.ZodString;
1618
+ }, "strip", z.ZodTypeAny, {
1619
+ type: "getTxAuthSigRequest";
1620
+ data: {
1621
+ chainId: import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI | import("../index.js").NEXERA_EVM_CHAINS.POLYGON | import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY | import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.BASE | import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM | import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER | import("../index.js").NEXERA_EVM_CHAINS.BNB | import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET;
1622
+ contractAbi: Record<string, unknown>[];
1623
+ contractAddress: `0x${string}`;
1624
+ functionName: string;
1625
+ args: unknown[];
1626
+ blockExpiration?: number | undefined;
1627
+ nonce?: number | undefined;
1628
+ };
1629
+ identifier: string;
1630
+ }, {
1631
+ type: "getTxAuthSigRequest";
1632
+ data: {
1633
+ contractAbi: Record<string, unknown>[];
1634
+ contractAddress: string;
1635
+ functionName: string;
1636
+ args: unknown[];
1637
+ chainId?: unknown;
1638
+ blockExpiration?: number | undefined;
1639
+ nonce?: number | undefined;
1640
+ };
1641
+ identifier: string;
1642
+ }>;
1643
+ export type GetTxAuthSigRequest = z.infer<typeof GetTxAuthSigRequest>;
1644
+ /**
1645
+ * GetTxAuthSigResponse
1646
+ */
1647
+ export declare const GetTxAuthSigResponse: z.ZodObject<{
1648
+ type: z.ZodLiteral<"getTxAuthSigResponse">;
1649
+ signatureResponse: z.ZodObject<{
1650
+ payload: z.ZodOptional<z.ZodString>;
1651
+ signature: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1652
+ blockExpiration: z.ZodOptional<z.ZodNumber>;
1653
+ isAuthorized: z.ZodBoolean;
1654
+ errorMessage: z.ZodOptional<z.ZodAny>;
1655
+ }, "strip", z.ZodTypeAny, {
1656
+ isAuthorized: boolean;
1657
+ signature?: string | undefined;
1658
+ blockExpiration?: number | undefined;
1659
+ payload?: string | undefined;
1660
+ errorMessage?: any;
1661
+ }, {
1662
+ isAuthorized: boolean;
1663
+ signature?: string | undefined;
1664
+ blockExpiration?: number | undefined;
1665
+ payload?: string | undefined;
1666
+ errorMessage?: any;
1667
+ }>;
1668
+ identifier: z.ZodString;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ type: "getTxAuthSigResponse";
1671
+ identifier: string;
1672
+ signatureResponse: {
1673
+ isAuthorized: boolean;
1674
+ signature?: string | undefined;
1675
+ blockExpiration?: number | undefined;
1676
+ payload?: string | undefined;
1677
+ errorMessage?: any;
1678
+ };
1679
+ }, {
1680
+ type: "getTxAuthSigResponse";
1681
+ identifier: string;
1682
+ signatureResponse: {
1683
+ isAuthorized: boolean;
1684
+ signature?: string | undefined;
1685
+ blockExpiration?: number | undefined;
1686
+ payload?: string | undefined;
1687
+ errorMessage?: any;
1688
+ };
1689
+ }>;
1690
+ export type GetTxAuthSigResponse = z.infer<typeof GetTxAuthSigResponse>;
1691
+ export declare const HostRequestMessage: z.ZodUnion<[z.ZodObject<{
1692
+ type: z.ZodLiteral<"getCredentials">;
1693
+ data: z.ZodUndefined;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ type: "getCredentials";
1696
+ data?: undefined;
1697
+ }, {
1698
+ type: "getCredentials";
1699
+ data?: undefined;
1700
+ }>, z.ZodObject<{
1701
+ type: z.ZodLiteral<"polygonIdRequest">;
1702
+ data: z.ZodUnion<[z.ZodObject<{
1703
+ type: z.ZodLiteral<"auth">;
1704
+ authRequest: z.ZodObject<{
1705
+ id: z.ZodString;
1706
+ typ: z.ZodNativeEnum<typeof import("./polygon-id.schema.js").MediaType>;
1707
+ type: z.ZodString;
1708
+ thid: z.ZodOptional<z.ZodString>;
1709
+ body: z.ZodObject<{
1710
+ callbackUrl: z.ZodString;
1711
+ reason: z.ZodOptional<z.ZodString>;
1712
+ did_doc: z.ZodOptional<z.ZodAny>;
1713
+ message: z.ZodOptional<z.ZodString>;
1714
+ scope: z.ZodArray<z.ZodObject<{
1715
+ id: z.ZodNumber;
1716
+ circuitId: z.ZodString;
1717
+ optional: z.ZodOptional<z.ZodBoolean>;
1718
+ query: z.ZodRecord<z.ZodString, z.ZodAny>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ id: number;
1721
+ circuitId: string;
1722
+ query: Record<string, any>;
1723
+ optional?: boolean | undefined;
1724
+ }, {
1725
+ id: number;
1726
+ circuitId: string;
1727
+ query: Record<string, any>;
1728
+ optional?: boolean | undefined;
1729
+ }>, "many">;
1730
+ }, "strip", z.ZodTypeAny, {
1731
+ callbackUrl: string;
1732
+ scope: {
1733
+ id: number;
1734
+ circuitId: string;
1735
+ query: Record<string, any>;
1736
+ optional?: boolean | undefined;
1737
+ }[];
1738
+ message?: string | undefined;
1739
+ reason?: string | undefined;
1740
+ did_doc?: any;
1741
+ }, {
1742
+ callbackUrl: string;
1743
+ scope: {
1744
+ id: number;
1745
+ circuitId: string;
1746
+ query: Record<string, any>;
1747
+ optional?: boolean | undefined;
1748
+ }[];
1749
+ message?: string | undefined;
1750
+ reason?: string | undefined;
1751
+ did_doc?: any;
1752
+ }>;
1753
+ from: z.ZodString;
1754
+ to: z.ZodOptional<z.ZodString>;
1755
+ }, "strip", z.ZodTypeAny, {
1756
+ id: string;
1757
+ type: string;
1758
+ typ: import("./polygon-id.schema.js").MediaType;
1759
+ body: {
1760
+ callbackUrl: string;
1761
+ scope: {
1762
+ id: number;
1763
+ circuitId: string;
1764
+ query: Record<string, any>;
1765
+ optional?: boolean | undefined;
1766
+ }[];
1767
+ message?: string | undefined;
1768
+ reason?: string | undefined;
1769
+ did_doc?: any;
1770
+ };
1771
+ from: string;
1772
+ thid?: string | undefined;
1773
+ to?: string | undefined;
1774
+ }, {
1775
+ id: string;
1776
+ type: string;
1777
+ typ: import("./polygon-id.schema.js").MediaType;
1778
+ body: {
1779
+ callbackUrl: string;
1780
+ scope: {
1781
+ id: number;
1782
+ circuitId: string;
1783
+ query: Record<string, any>;
1784
+ optional?: boolean | undefined;
1785
+ }[];
1786
+ message?: string | undefined;
1787
+ reason?: string | undefined;
1788
+ did_doc?: any;
1789
+ };
1790
+ from: string;
1791
+ thid?: string | undefined;
1792
+ to?: string | undefined;
1793
+ }>;
1794
+ }, "strip", z.ZodTypeAny, {
1795
+ type: "auth";
1796
+ authRequest: {
1797
+ id: string;
1798
+ type: string;
1799
+ typ: import("./polygon-id.schema.js").MediaType;
1800
+ body: {
1801
+ callbackUrl: string;
1802
+ scope: {
1803
+ id: number;
1804
+ circuitId: string;
1805
+ query: Record<string, any>;
1806
+ optional?: boolean | undefined;
1807
+ }[];
1808
+ message?: string | undefined;
1809
+ reason?: string | undefined;
1810
+ did_doc?: any;
1811
+ };
1812
+ from: string;
1813
+ thid?: string | undefined;
1814
+ to?: string | undefined;
1815
+ };
1816
+ }, {
1817
+ type: "auth";
1818
+ authRequest: {
1819
+ id: string;
1820
+ type: string;
1821
+ typ: import("./polygon-id.schema.js").MediaType;
1822
+ body: {
1823
+ callbackUrl: string;
1824
+ scope: {
1825
+ id: number;
1826
+ circuitId: string;
1827
+ query: Record<string, any>;
1828
+ optional?: boolean | undefined;
1829
+ }[];
1830
+ message?: string | undefined;
1831
+ reason?: string | undefined;
1832
+ did_doc?: any;
1833
+ };
1834
+ from: string;
1835
+ thid?: string | undefined;
1836
+ to?: string | undefined;
1837
+ };
1838
+ }>, z.ZodObject<{
1839
+ type: z.ZodLiteral<"credentialOffer">;
1840
+ credentialOfferRequest: z.ZodObject<{
1841
+ qrCodeLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1842
+ schemaType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ qrCodeLink?: string | null | undefined;
1845
+ schemaType?: string | null | undefined;
1846
+ }, {
1847
+ qrCodeLink?: string | null | undefined;
1848
+ schemaType?: string | null | undefined;
1849
+ }>;
1850
+ }, "strip", z.ZodTypeAny, {
1851
+ type: "credentialOffer";
1852
+ credentialOfferRequest: {
1853
+ qrCodeLink?: string | null | undefined;
1854
+ schemaType?: string | null | undefined;
1855
+ };
1856
+ }, {
1857
+ type: "credentialOffer";
1858
+ credentialOfferRequest: {
1859
+ qrCodeLink?: string | null | undefined;
1860
+ schemaType?: string | null | undefined;
1861
+ };
1862
+ }>, z.ZodObject<{
1863
+ type: z.ZodLiteral<"zkp">;
1864
+ zkpRequest: z.ZodObject<{
1865
+ id: z.ZodNumber;
1866
+ circuitId: z.ZodString;
1867
+ optional: z.ZodOptional<z.ZodBoolean>;
1868
+ query: z.ZodRecord<z.ZodString, z.ZodAny>;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ id: number;
1871
+ circuitId: string;
1872
+ query: Record<string, any>;
1873
+ optional?: boolean | undefined;
1874
+ }, {
1875
+ id: number;
1876
+ circuitId: string;
1877
+ query: Record<string, any>;
1878
+ optional?: boolean | undefined;
1879
+ }>;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ type: "zkp";
1882
+ zkpRequest: {
1883
+ id: number;
1884
+ circuitId: string;
1885
+ query: Record<string, any>;
1886
+ optional?: boolean | undefined;
1887
+ };
1888
+ }, {
1889
+ type: "zkp";
1890
+ zkpRequest: {
1891
+ id: number;
1892
+ circuitId: string;
1893
+ query: Record<string, any>;
1894
+ optional?: boolean | undefined;
1895
+ };
1896
+ }>]>;
1897
+ }, "strip", z.ZodTypeAny, {
1898
+ type: "polygonIdRequest";
1899
+ data: {
1900
+ type: "auth";
1901
+ authRequest: {
1902
+ id: string;
1903
+ type: string;
1904
+ typ: import("./polygon-id.schema.js").MediaType;
1905
+ body: {
1906
+ callbackUrl: string;
1907
+ scope: {
1908
+ id: number;
1909
+ circuitId: string;
1910
+ query: Record<string, any>;
1911
+ optional?: boolean | undefined;
1912
+ }[];
1913
+ message?: string | undefined;
1914
+ reason?: string | undefined;
1915
+ did_doc?: any;
1916
+ };
1917
+ from: string;
1918
+ thid?: string | undefined;
1919
+ to?: string | undefined;
1920
+ };
1921
+ } | {
1922
+ type: "credentialOffer";
1923
+ credentialOfferRequest: {
1924
+ qrCodeLink?: string | null | undefined;
1925
+ schemaType?: string | null | undefined;
1926
+ };
1927
+ } | {
1928
+ type: "zkp";
1929
+ zkpRequest: {
1930
+ id: number;
1931
+ circuitId: string;
1932
+ query: Record<string, any>;
1933
+ optional?: boolean | undefined;
1934
+ };
1935
+ };
1936
+ }, {
1937
+ type: "polygonIdRequest";
1938
+ data: {
1939
+ type: "auth";
1940
+ authRequest: {
1941
+ id: string;
1942
+ type: string;
1943
+ typ: import("./polygon-id.schema.js").MediaType;
1944
+ body: {
1945
+ callbackUrl: string;
1946
+ scope: {
1947
+ id: number;
1948
+ circuitId: string;
1949
+ query: Record<string, any>;
1950
+ optional?: boolean | undefined;
1951
+ }[];
1952
+ message?: string | undefined;
1953
+ reason?: string | undefined;
1954
+ did_doc?: any;
1955
+ };
1956
+ from: string;
1957
+ thid?: string | undefined;
1958
+ to?: string | undefined;
1959
+ };
1960
+ } | {
1961
+ type: "credentialOffer";
1962
+ credentialOfferRequest: {
1963
+ qrCodeLink?: string | null | undefined;
1964
+ schemaType?: string | null | undefined;
1965
+ };
1966
+ } | {
1967
+ type: "zkp";
1968
+ zkpRequest: {
1969
+ id: number;
1970
+ circuitId: string;
1971
+ query: Record<string, any>;
1972
+ optional?: boolean | undefined;
1973
+ };
1974
+ };
1975
+ }>, z.ZodUnion<[z.ZodObject<{
1976
+ type: z.ZodLiteral<"startVerification">;
1977
+ data: z.ZodUndefined;
1978
+ }, "strip", z.ZodTypeAny, {
1979
+ type: "startVerification";
1980
+ data?: undefined;
1981
+ }, {
1982
+ type: "startVerification";
1983
+ data?: undefined;
1984
+ }>, z.ZodObject<{
1985
+ type: z.ZodLiteral<"startManagement">;
1986
+ data: z.ZodUndefined;
1987
+ }, "strip", z.ZodTypeAny, {
1988
+ type: "startManagement";
1989
+ data?: undefined;
1990
+ }, {
1991
+ type: "startManagement";
1992
+ data?: undefined;
1993
+ }>, z.ZodObject<{
1994
+ type: z.ZodLiteral<"startKYB">;
1995
+ data: z.ZodUndefined;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ type: "startKYB";
1998
+ data?: undefined;
1999
+ }, {
2000
+ type: "startKYB";
2001
+ data?: undefined;
2002
+ }>]>, z.ZodObject<{
2003
+ type: z.ZodLiteral<"isVerifiedRequest">;
2004
+ data: z.ZodObject<{
2005
+ userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
2006
+ }, "strip", z.ZodTypeAny, {
2007
+ userAddress: `0x${string}`;
2008
+ }, {
2009
+ userAddress: string;
2010
+ }>;
2011
+ identifier: z.ZodString;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ type: "isVerifiedRequest";
2014
+ data: {
2015
+ userAddress: `0x${string}`;
2016
+ };
2017
+ identifier: string;
2018
+ }, {
2019
+ type: "isVerifiedRequest";
2020
+ data: {
2021
+ userAddress: string;
2022
+ };
2023
+ identifier: string;
2024
+ }>, z.ZodObject<{
2025
+ type: z.ZodLiteral<"getTxAuthSigRequest">;
2026
+ data: z.ZodObject<Omit<{
2027
+ chainId: z.ZodEffects<z.ZodEnum<[import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM, import("../index.js").NEXERA_EVM_CHAINS.POLYGON, import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY, import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE, import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI, import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM, import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA, import("../index.js").NEXERA_EVM_CHAINS.BASE, import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA, import("../index.js").NEXERA_EVM_CHAINS.BNB, import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET, import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM, import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER, import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM, import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA]>, import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI | import("../index.js").NEXERA_EVM_CHAINS.POLYGON | import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY | import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.BASE | import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM | import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER | import("../index.js").NEXERA_EVM_CHAINS.BNB | import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET, unknown>;
2028
+ contractAbi: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
2029
+ contractAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
2030
+ functionName: z.ZodString;
2031
+ args: z.ZodArray<z.ZodUnknown, "many">;
2032
+ userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
2033
+ blockExpiration: z.ZodOptional<z.ZodNumber>;
2034
+ nonce: z.ZodOptional<z.ZodNumber>;
2035
+ }, "userAddress">, "strip", z.ZodTypeAny, {
2036
+ chainId: import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI | import("../index.js").NEXERA_EVM_CHAINS.POLYGON | import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY | import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.BASE | import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM | import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER | import("../index.js").NEXERA_EVM_CHAINS.BNB | import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET;
2037
+ contractAbi: Record<string, unknown>[];
2038
+ contractAddress: `0x${string}`;
2039
+ functionName: string;
2040
+ args: unknown[];
2041
+ blockExpiration?: number | undefined;
2042
+ nonce?: number | undefined;
2043
+ }, {
2044
+ contractAbi: Record<string, unknown>[];
2045
+ contractAddress: string;
2046
+ functionName: string;
2047
+ args: unknown[];
2048
+ chainId?: unknown;
2049
+ blockExpiration?: number | undefined;
2050
+ nonce?: number | undefined;
2051
+ }>;
2052
+ identifier: z.ZodString;
2053
+ }, "strip", z.ZodTypeAny, {
2054
+ type: "getTxAuthSigRequest";
2055
+ data: {
2056
+ chainId: import("../index.js").NEXERA_EVM_CHAINS.ETHEREUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM | import("../index.js").NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM | import("../index.js").NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE | import("../index.js").NEXERA_EVM_CHAINS.AVALANCHE_FUJI | import("../index.js").NEXERA_EVM_CHAINS.POLYGON | import("../index.js").NEXERA_EVM_CHAINS.POLYGON_AMOY | import("../index.js").NEXERA_EVM_CHAINS.SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.BASE | import("../index.js").NEXERA_EVM_CHAINS.BASE_SEPOLIA | import("../index.js").NEXERA_EVM_CHAINS.MOONBEAM | import("../index.js").NEXERA_EVM_CHAINS.MOONRIVER | import("../index.js").NEXERA_EVM_CHAINS.BNB | import("../index.js").NEXERA_EVM_CHAINS.BNB_TESTNET;
2057
+ contractAbi: Record<string, unknown>[];
2058
+ contractAddress: `0x${string}`;
2059
+ functionName: string;
2060
+ args: unknown[];
2061
+ blockExpiration?: number | undefined;
2062
+ nonce?: number | undefined;
2063
+ };
2064
+ identifier: string;
2065
+ }, {
2066
+ type: "getTxAuthSigRequest";
2067
+ data: {
2068
+ contractAbi: Record<string, unknown>[];
2069
+ contractAddress: string;
2070
+ functionName: string;
2071
+ args: unknown[];
2072
+ chainId?: unknown;
2073
+ blockExpiration?: number | undefined;
2074
+ nonce?: number | undefined;
2075
+ };
2076
+ identifier: string;
2077
+ }>]>;
2078
+ export type HostRequestMessage = z.infer<typeof HostRequestMessage>;
2079
+ export declare const IdentityResponseMessage: z.ZodUnion<[z.ZodObject<{
2080
+ type: z.ZodLiteral<"polygonIdCredentials">;
2081
+ credentials: z.ZodArray<z.ZodObject<{
2082
+ id: z.ZodString;
2083
+ type: z.ZodArray<z.ZodString, "many">;
2084
+ issuanceDate: z.ZodString;
2085
+ journeyId: z.ZodString;
2086
+ }, "strip", z.ZodTypeAny, {
2087
+ id: string;
2088
+ journeyId: string;
2089
+ type: string[];
2090
+ issuanceDate: string;
2091
+ }, {
2092
+ id: string;
2093
+ journeyId: string;
2094
+ type: string[];
2095
+ issuanceDate: string;
2096
+ }>, "many">;
2097
+ identifier: z.ZodString;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ type: "polygonIdCredentials";
2100
+ identifier: string;
2101
+ credentials: {
2102
+ id: string;
2103
+ journeyId: string;
2104
+ type: string[];
2105
+ issuanceDate: string;
2106
+ }[];
2107
+ }, {
2108
+ type: "polygonIdCredentials";
2109
+ identifier: string;
2110
+ credentials: {
2111
+ id: string;
2112
+ journeyId: string;
2113
+ type: string[];
2114
+ issuanceDate: string;
2115
+ }[];
2116
+ }>, z.ZodObject<{
2117
+ type: z.ZodLiteral<"polygonIdResponse">;
2118
+ identifier: z.ZodString;
2119
+ data: z.ZodUnion<[z.ZodObject<{
2120
+ type: z.ZodLiteral<"auth">;
2121
+ authResponse: z.ZodObject<{
2122
+ id: z.ZodString;
2123
+ typ: z.ZodOptional<z.ZodNativeEnum<typeof import("./polygon-id.schema.js").MediaType>>;
2124
+ type: z.ZodString;
2125
+ thid: z.ZodOptional<z.ZodString>;
2126
+ body: z.ZodObject<{
2127
+ did_doc: z.ZodOptional<z.ZodAny>;
2128
+ message: z.ZodOptional<z.ZodString>;
2129
+ scope: z.ZodArray<z.ZodObject<{
2130
+ id: z.ZodNumber;
2131
+ circuitId: z.ZodString;
2132
+ vp: z.ZodOptional<z.ZodAny>;
2133
+ proof: z.ZodObject<{
2134
+ pi_a: z.ZodArray<z.ZodString, "many">;
2135
+ pi_b: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
2136
+ pi_c: z.ZodArray<z.ZodString, "many">;
2137
+ protocol: z.ZodString;
2138
+ curve: z.ZodOptional<z.ZodString>;
2139
+ }, "strip", z.ZodTypeAny, {
2140
+ pi_a: string[];
2141
+ pi_b: string[][];
2142
+ pi_c: string[];
2143
+ protocol: string;
2144
+ curve?: string | undefined;
2145
+ }, {
2146
+ pi_a: string[];
2147
+ pi_b: string[][];
2148
+ pi_c: string[];
2149
+ protocol: string;
2150
+ curve?: string | undefined;
2151
+ }>;
2152
+ pub_signals: z.ZodArray<z.ZodString, "many">;
2153
+ }, "strip", z.ZodTypeAny, {
2154
+ id: number;
2155
+ proof: {
2156
+ pi_a: string[];
2157
+ pi_b: string[][];
2158
+ pi_c: string[];
2159
+ protocol: string;
2160
+ curve?: string | undefined;
2161
+ };
2162
+ circuitId: string;
2163
+ pub_signals: string[];
2164
+ vp?: any;
2165
+ }, {
2166
+ id: number;
2167
+ proof: {
2168
+ pi_a: string[];
2169
+ pi_b: string[][];
2170
+ pi_c: string[];
2171
+ protocol: string;
2172
+ curve?: string | undefined;
2173
+ };
2174
+ circuitId: string;
2175
+ pub_signals: string[];
2176
+ vp?: any;
2177
+ }>, "many">;
2178
+ }, "strip", z.ZodTypeAny, {
2179
+ scope: {
2180
+ id: number;
2181
+ proof: {
2182
+ pi_a: string[];
2183
+ pi_b: string[][];
2184
+ pi_c: string[];
2185
+ protocol: string;
2186
+ curve?: string | undefined;
2187
+ };
2188
+ circuitId: string;
2189
+ pub_signals: string[];
2190
+ vp?: any;
2191
+ }[];
2192
+ message?: string | undefined;
2193
+ did_doc?: any;
2194
+ }, {
2195
+ scope: {
2196
+ id: number;
2197
+ proof: {
2198
+ pi_a: string[];
2199
+ pi_b: string[][];
2200
+ pi_c: string[];
2201
+ protocol: string;
2202
+ curve?: string | undefined;
2203
+ };
2204
+ circuitId: string;
2205
+ pub_signals: string[];
2206
+ vp?: any;
2207
+ }[];
2208
+ message?: string | undefined;
2209
+ did_doc?: any;
2210
+ }>;
2211
+ from: z.ZodOptional<z.ZodString>;
2212
+ to: z.ZodOptional<z.ZodString>;
2213
+ }, "strip", z.ZodTypeAny, {
2214
+ id: string;
2215
+ type: string;
2216
+ body: {
2217
+ scope: {
2218
+ id: number;
2219
+ proof: {
2220
+ pi_a: string[];
2221
+ pi_b: string[][];
2222
+ pi_c: string[];
2223
+ protocol: string;
2224
+ curve?: string | undefined;
2225
+ };
2226
+ circuitId: string;
2227
+ pub_signals: string[];
2228
+ vp?: any;
2229
+ }[];
2230
+ message?: string | undefined;
2231
+ did_doc?: any;
2232
+ };
2233
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
2234
+ thid?: string | undefined;
2235
+ from?: string | undefined;
2236
+ to?: string | undefined;
2237
+ }, {
2238
+ id: string;
2239
+ type: string;
2240
+ body: {
2241
+ scope: {
2242
+ id: number;
2243
+ proof: {
2244
+ pi_a: string[];
2245
+ pi_b: string[][];
2246
+ pi_c: string[];
2247
+ protocol: string;
2248
+ curve?: string | undefined;
2249
+ };
2250
+ circuitId: string;
2251
+ pub_signals: string[];
2252
+ vp?: any;
2253
+ }[];
2254
+ message?: string | undefined;
2255
+ did_doc?: any;
2256
+ };
2257
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
2258
+ thid?: string | undefined;
2259
+ from?: string | undefined;
2260
+ to?: string | undefined;
2261
+ }>;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ type: "auth";
2264
+ authResponse: {
2265
+ id: string;
2266
+ type: string;
2267
+ body: {
2268
+ scope: {
2269
+ id: number;
2270
+ proof: {
2271
+ pi_a: string[];
2272
+ pi_b: string[][];
2273
+ pi_c: string[];
2274
+ protocol: string;
2275
+ curve?: string | undefined;
2276
+ };
2277
+ circuitId: string;
2278
+ pub_signals: string[];
2279
+ vp?: any;
2280
+ }[];
2281
+ message?: string | undefined;
2282
+ did_doc?: any;
2283
+ };
2284
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
2285
+ thid?: string | undefined;
2286
+ from?: string | undefined;
2287
+ to?: string | undefined;
2288
+ };
2289
+ }, {
2290
+ type: "auth";
2291
+ authResponse: {
2292
+ id: string;
2293
+ type: string;
2294
+ body: {
2295
+ scope: {
2296
+ id: number;
2297
+ proof: {
2298
+ pi_a: string[];
2299
+ pi_b: string[][];
2300
+ pi_c: string[];
2301
+ protocol: string;
2302
+ curve?: string | undefined;
2303
+ };
2304
+ circuitId: string;
2305
+ pub_signals: string[];
2306
+ vp?: any;
2307
+ }[];
2308
+ message?: string | undefined;
2309
+ did_doc?: any;
2310
+ };
2311
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
2312
+ thid?: string | undefined;
2313
+ from?: string | undefined;
2314
+ to?: string | undefined;
2315
+ };
2316
+ }>, z.ZodObject<{
2317
+ type: z.ZodLiteral<"credentialOffer">;
2318
+ credentialOfferResponse: z.ZodArray<z.ZodObject<{
2319
+ id: z.ZodString;
2320
+ "@context": z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2321
+ type: z.ZodArray<z.ZodString, "many">;
2322
+ expirationDate: z.ZodOptional<z.ZodString>;
2323
+ issuanceDate: z.ZodOptional<z.ZodString>;
2324
+ credentialSubject: z.ZodRecord<z.ZodString, z.ZodAny>;
2325
+ credentialStatus: z.ZodObject<{
2326
+ id: z.ZodString;
2327
+ type: z.ZodEnum<["SparseMerkleTreeProof", "Iden3ReverseSparseMerkleTreeProof", "Iden3commRevocationStatusV1.0", "Iden3OnchainSparseMerkleTreeProof2023"]>;
2328
+ revocationNonce: z.ZodOptional<z.ZodNumber>;
2329
+ }, "strip", z.ZodTypeAny, {
2330
+ id: string;
2331
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2332
+ revocationNonce?: number | undefined;
2333
+ }, {
2334
+ id: string;
2335
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2336
+ revocationNonce?: number | undefined;
2337
+ }>;
2338
+ issuer: z.ZodString;
2339
+ credentialSchema: z.ZodObject<{
2340
+ id: z.ZodString;
2341
+ type: z.ZodString;
2342
+ }, "strip", z.ZodTypeAny, {
2343
+ id: string;
2344
+ type: string;
2345
+ }, {
2346
+ id: string;
2347
+ type: string;
2348
+ }>;
2349
+ proof: z.ZodAny;
2350
+ }, "strip", z.ZodTypeAny, {
2351
+ id: string;
2352
+ type: string[];
2353
+ credentialSubject: Record<string, any>;
2354
+ credentialStatus: {
2355
+ id: string;
2356
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2357
+ revocationNonce?: number | undefined;
2358
+ };
2359
+ issuer: string;
2360
+ credentialSchema: {
2361
+ id: string;
2362
+ type: string;
2363
+ };
2364
+ "@context"?: string[] | undefined;
2365
+ expirationDate?: string | undefined;
2366
+ issuanceDate?: string | undefined;
2367
+ proof?: any;
2368
+ }, {
2369
+ id: string;
2370
+ type: string[];
2371
+ credentialSubject: Record<string, any>;
2372
+ credentialStatus: {
2373
+ id: string;
2374
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2375
+ revocationNonce?: number | undefined;
2376
+ };
2377
+ issuer: string;
2378
+ credentialSchema: {
2379
+ id: string;
2380
+ type: string;
2381
+ };
2382
+ "@context"?: string[] | undefined;
2383
+ expirationDate?: string | undefined;
2384
+ issuanceDate?: string | undefined;
2385
+ proof?: any;
2386
+ }>, "many">;
2387
+ }, "strip", z.ZodTypeAny, {
2388
+ type: "credentialOffer";
2389
+ credentialOfferResponse: {
2390
+ id: string;
2391
+ type: string[];
2392
+ credentialSubject: Record<string, any>;
2393
+ credentialStatus: {
2394
+ id: string;
2395
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2396
+ revocationNonce?: number | undefined;
2397
+ };
2398
+ issuer: string;
2399
+ credentialSchema: {
2400
+ id: string;
2401
+ type: string;
2402
+ };
2403
+ "@context"?: string[] | undefined;
2404
+ expirationDate?: string | undefined;
2405
+ issuanceDate?: string | undefined;
2406
+ proof?: any;
2407
+ }[];
2408
+ }, {
2409
+ type: "credentialOffer";
2410
+ credentialOfferResponse: {
2411
+ id: string;
2412
+ type: string[];
2413
+ credentialSubject: Record<string, any>;
2414
+ credentialStatus: {
2415
+ id: string;
2416
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2417
+ revocationNonce?: number | undefined;
2418
+ };
2419
+ issuer: string;
2420
+ credentialSchema: {
2421
+ id: string;
2422
+ type: string;
2423
+ };
2424
+ "@context"?: string[] | undefined;
2425
+ expirationDate?: string | undefined;
2426
+ issuanceDate?: string | undefined;
2427
+ proof?: any;
2428
+ }[];
2429
+ }>, z.ZodObject<{
2430
+ type: z.ZodLiteral<"zkp">;
2431
+ zkpResponse: z.ZodObject<{
2432
+ id: z.ZodNumber;
2433
+ circuitId: z.ZodString;
2434
+ vp: z.ZodOptional<z.ZodAny>;
2435
+ proof: z.ZodObject<{
2436
+ pi_a: z.ZodArray<z.ZodString, "many">;
2437
+ pi_b: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
2438
+ pi_c: z.ZodArray<z.ZodString, "many">;
2439
+ protocol: z.ZodString;
2440
+ curve: z.ZodOptional<z.ZodString>;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ pi_a: string[];
2443
+ pi_b: string[][];
2444
+ pi_c: string[];
2445
+ protocol: string;
2446
+ curve?: string | undefined;
2447
+ }, {
2448
+ pi_a: string[];
2449
+ pi_b: string[][];
2450
+ pi_c: string[];
2451
+ protocol: string;
2452
+ curve?: string | undefined;
2453
+ }>;
2454
+ pub_signals: z.ZodArray<z.ZodString, "many">;
2455
+ }, "strip", z.ZodTypeAny, {
2456
+ id: number;
2457
+ proof: {
2458
+ pi_a: string[];
2459
+ pi_b: string[][];
2460
+ pi_c: string[];
2461
+ protocol: string;
2462
+ curve?: string | undefined;
2463
+ };
2464
+ circuitId: string;
2465
+ pub_signals: string[];
2466
+ vp?: any;
2467
+ }, {
2468
+ id: number;
2469
+ proof: {
2470
+ pi_a: string[];
2471
+ pi_b: string[][];
2472
+ pi_c: string[];
2473
+ protocol: string;
2474
+ curve?: string | undefined;
2475
+ };
2476
+ circuitId: string;
2477
+ pub_signals: string[];
2478
+ vp?: any;
2479
+ }>;
2480
+ }, "strip", z.ZodTypeAny, {
2481
+ type: "zkp";
2482
+ zkpResponse: {
2483
+ id: number;
2484
+ proof: {
2485
+ pi_a: string[];
2486
+ pi_b: string[][];
2487
+ pi_c: string[];
2488
+ protocol: string;
2489
+ curve?: string | undefined;
2490
+ };
2491
+ circuitId: string;
2492
+ pub_signals: string[];
2493
+ vp?: any;
2494
+ };
2495
+ }, {
2496
+ type: "zkp";
2497
+ zkpResponse: {
2498
+ id: number;
2499
+ proof: {
2500
+ pi_a: string[];
2501
+ pi_b: string[][];
2502
+ pi_c: string[];
2503
+ protocol: string;
2504
+ curve?: string | undefined;
2505
+ };
2506
+ circuitId: string;
2507
+ pub_signals: string[];
2508
+ vp?: any;
2509
+ };
2510
+ }>, z.ZodObject<{
2511
+ type: z.ZodLiteral<"close">;
2512
+ screen: z.ZodEnum<["auth", "credentialOffer", "zkp", "getCredentials"]>;
2513
+ closeResponse: z.ZodString;
2514
+ }, "strip", z.ZodTypeAny, {
2515
+ type: "close";
2516
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
2517
+ closeResponse: string;
2518
+ }, {
2519
+ type: "close";
2520
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
2521
+ closeResponse: string;
2522
+ }>]>;
2523
+ }, "strip", z.ZodTypeAny, {
2524
+ type: "polygonIdResponse";
2525
+ data: {
2526
+ type: "auth";
2527
+ authResponse: {
2528
+ id: string;
2529
+ type: string;
2530
+ body: {
2531
+ scope: {
2532
+ id: number;
2533
+ proof: {
2534
+ pi_a: string[];
2535
+ pi_b: string[][];
2536
+ pi_c: string[];
2537
+ protocol: string;
2538
+ curve?: string | undefined;
2539
+ };
2540
+ circuitId: string;
2541
+ pub_signals: string[];
2542
+ vp?: any;
2543
+ }[];
2544
+ message?: string | undefined;
2545
+ did_doc?: any;
2546
+ };
2547
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
2548
+ thid?: string | undefined;
2549
+ from?: string | undefined;
2550
+ to?: string | undefined;
2551
+ };
2552
+ } | {
2553
+ type: "credentialOffer";
2554
+ credentialOfferResponse: {
2555
+ id: string;
2556
+ type: string[];
2557
+ credentialSubject: Record<string, any>;
2558
+ credentialStatus: {
2559
+ id: string;
2560
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2561
+ revocationNonce?: number | undefined;
2562
+ };
2563
+ issuer: string;
2564
+ credentialSchema: {
2565
+ id: string;
2566
+ type: string;
2567
+ };
2568
+ "@context"?: string[] | undefined;
2569
+ expirationDate?: string | undefined;
2570
+ issuanceDate?: string | undefined;
2571
+ proof?: any;
2572
+ }[];
2573
+ } | {
2574
+ type: "zkp";
2575
+ zkpResponse: {
2576
+ id: number;
2577
+ proof: {
2578
+ pi_a: string[];
2579
+ pi_b: string[][];
2580
+ pi_c: string[];
2581
+ protocol: string;
2582
+ curve?: string | undefined;
2583
+ };
2584
+ circuitId: string;
2585
+ pub_signals: string[];
2586
+ vp?: any;
2587
+ };
2588
+ } | {
2589
+ type: "close";
2590
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
2591
+ closeResponse: string;
2592
+ };
2593
+ identifier: string;
2594
+ }, {
2595
+ type: "polygonIdResponse";
2596
+ data: {
2597
+ type: "auth";
2598
+ authResponse: {
2599
+ id: string;
2600
+ type: string;
2601
+ body: {
2602
+ scope: {
2603
+ id: number;
2604
+ proof: {
2605
+ pi_a: string[];
2606
+ pi_b: string[][];
2607
+ pi_c: string[];
2608
+ protocol: string;
2609
+ curve?: string | undefined;
2610
+ };
2611
+ circuitId: string;
2612
+ pub_signals: string[];
2613
+ vp?: any;
2614
+ }[];
2615
+ message?: string | undefined;
2616
+ did_doc?: any;
2617
+ };
2618
+ typ?: import("./polygon-id.schema.js").MediaType | undefined;
2619
+ thid?: string | undefined;
2620
+ from?: string | undefined;
2621
+ to?: string | undefined;
2622
+ };
2623
+ } | {
2624
+ type: "credentialOffer";
2625
+ credentialOfferResponse: {
2626
+ id: string;
2627
+ type: string[];
2628
+ credentialSubject: Record<string, any>;
2629
+ credentialStatus: {
2630
+ id: string;
2631
+ type: "SparseMerkleTreeProof" | "Iden3ReverseSparseMerkleTreeProof" | "Iden3commRevocationStatusV1.0" | "Iden3OnchainSparseMerkleTreeProof2023";
2632
+ revocationNonce?: number | undefined;
2633
+ };
2634
+ issuer: string;
2635
+ credentialSchema: {
2636
+ id: string;
2637
+ type: string;
2638
+ };
2639
+ "@context"?: string[] | undefined;
2640
+ expirationDate?: string | undefined;
2641
+ issuanceDate?: string | undefined;
2642
+ proof?: any;
2643
+ }[];
2644
+ } | {
2645
+ type: "zkp";
2646
+ zkpResponse: {
2647
+ id: number;
2648
+ proof: {
2649
+ pi_a: string[];
2650
+ pi_b: string[][];
2651
+ pi_c: string[];
2652
+ protocol: string;
2653
+ curve?: string | undefined;
2654
+ };
2655
+ circuitId: string;
2656
+ pub_signals: string[];
2657
+ vp?: any;
2658
+ };
2659
+ } | {
2660
+ type: "close";
2661
+ screen: "getCredentials" | "auth" | "credentialOffer" | "zkp";
2662
+ closeResponse: string;
2663
+ };
2664
+ identifier: string;
2665
+ }>, z.ZodObject<{
2666
+ type: z.ZodLiteral<"isVerifiedResponse">;
2667
+ isVerified: z.ZodBoolean;
2668
+ identifier: z.ZodString;
2669
+ }, "strip", z.ZodTypeAny, {
2670
+ type: "isVerifiedResponse";
2671
+ identifier: string;
2672
+ isVerified: boolean;
2673
+ }, {
2674
+ type: "isVerifiedResponse";
2675
+ identifier: string;
2676
+ isVerified: boolean;
2677
+ }>, z.ZodObject<{
2678
+ type: z.ZodLiteral<"getTxAuthSigResponse">;
2679
+ signatureResponse: z.ZodObject<{
2680
+ payload: z.ZodOptional<z.ZodString>;
2681
+ signature: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2682
+ blockExpiration: z.ZodOptional<z.ZodNumber>;
2683
+ isAuthorized: z.ZodBoolean;
2684
+ errorMessage: z.ZodOptional<z.ZodAny>;
2685
+ }, "strip", z.ZodTypeAny, {
2686
+ isAuthorized: boolean;
2687
+ signature?: string | undefined;
2688
+ blockExpiration?: number | undefined;
2689
+ payload?: string | undefined;
2690
+ errorMessage?: any;
2691
+ }, {
2692
+ isAuthorized: boolean;
2693
+ signature?: string | undefined;
2694
+ blockExpiration?: number | undefined;
2695
+ payload?: string | undefined;
2696
+ errorMessage?: any;
2697
+ }>;
2698
+ identifier: z.ZodString;
2699
+ }, "strip", z.ZodTypeAny, {
2700
+ type: "getTxAuthSigResponse";
2701
+ identifier: string;
2702
+ signatureResponse: {
2703
+ isAuthorized: boolean;
2704
+ signature?: string | undefined;
2705
+ blockExpiration?: number | undefined;
2706
+ payload?: string | undefined;
2707
+ errorMessage?: any;
2708
+ };
2709
+ }, {
2710
+ type: "getTxAuthSigResponse";
2711
+ identifier: string;
2712
+ signatureResponse: {
2713
+ isAuthorized: boolean;
2714
+ signature?: string | undefined;
2715
+ blockExpiration?: number | undefined;
2716
+ payload?: string | undefined;
2717
+ errorMessage?: any;
2718
+ };
2719
+ }>]>;
2720
+ export type IdentityResponseMessage = z.infer<typeof IdentityResponseMessage>;
2721
+ //# sourceMappingURL=host-requests.schema.d.ts.map