@nexeraid/identity-schemas 1.12.19-dev → 1.12.20-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 (19) hide show
  1. package/dist/declarations/src/identity/identity-v2.schema.d.ts +167 -1387
  2. package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
  3. package/dist/{frontend-utilities.schema-b735a522.esm.js → frontend-utilities.schema-529049f7.esm.js} +1 -1
  4. package/dist/{frontend-utilities.schema-d9815781.cjs.prod.js → frontend-utilities.schema-abfeae8c.cjs.prod.js} +1 -1
  5. package/dist/{frontend-utilities.schema-b031116d.cjs.dev.js → frontend-utilities.schema-d6e21fa5.cjs.dev.js} +1 -1
  6. package/dist/{identity-api.schema-ea0d3694.esm.js → identity-api.schema-25e04205.esm.js} +2 -25
  7. package/dist/{identity-api.schema-4f0296c0.cjs.prod.js → identity-api.schema-4615eb5b.cjs.dev.js} +1 -27
  8. package/dist/{identity-api.schema-32516598.cjs.dev.js → identity-api.schema-bf6bbbf4.cjs.prod.js} +1 -27
  9. package/dist/nexeraid-identity-schemas.cjs.dev.js +2 -5
  10. package/dist/nexeraid-identity-schemas.cjs.prod.js +2 -5
  11. package/dist/nexeraid-identity-schemas.esm.js +3 -3
  12. package/dist/package.json +1 -1
  13. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -4
  14. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -4
  15. package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
  16. package/package.json +1 -1
  17. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
  18. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
  19. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
@@ -855,7 +855,7 @@ export declare const TxAuthDataSignatureResponse: z.ZodObject<{
855
855
  data: z.ZodUnion<[z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
856
856
  isAuthorized: z.ZodLiteral<true>;
857
857
  signature: z.ZodEffects<z.ZodString, string, string>;
858
- payload: z.ZodString;
858
+ payload: z.ZodString; /** The workflow id to bind the user session to */
859
859
  blockExpiration: z.ZodNumber;
860
860
  }, "strip", z.ZodTypeAny, {
861
861
  signature: string;
@@ -977,1407 +977,187 @@ export declare const GetCustomerStatusResponse: z.ZodObject<{
977
977
  data?: unknown;
978
978
  }>;
979
979
  export type GetCustomerStatusResponse = z.infer<typeof GetCustomerStatusResponse>;
980
- export declare const VerificationBeginNotification: z.ZodObject<{
981
- type: z.ZodLiteral<"verificationBegin">;
982
- }, "strip", z.ZodTypeAny, {
983
- type: "verificationBegin";
984
- }, {
985
- type: "verificationBegin";
986
- }>;
987
- export type VerificationBeginNotification = z.infer<typeof VerificationBeginNotification>;
988
- export declare const ValidVerificationCompleteData: z.ZodUnion<[z.ZodObject<{
989
- type: z.ZodLiteral<"onlineVerification">;
990
- verification: z.ZodObject<{
991
- customerId: z.ZodString;
992
- scenarioExecutionId: z.ZodString;
993
- status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
994
- results: z.ZodArray<z.ZodArray<z.ZodObject<{
995
- objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
996
- objectId: z.ZodString;
997
- name: z.ZodString;
998
- address: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>>>;
999
- result: z.ZodObject<{
1000
- result: z.ZodObject<{
1001
- is_valid: z.ZodBoolean;
1002
- reasons: z.ZodArray<z.ZodUnknown, "many">;
1003
- }, "strip", z.ZodTypeAny, {
1004
- is_valid: boolean;
1005
- reasons: unknown[];
1006
- }, {
1007
- is_valid: boolean;
1008
- reasons: unknown[];
1009
- }>;
1010
- executionId: z.ZodString;
1011
- }, "strip", z.ZodTypeAny, {
1012
- result: {
1013
- is_valid: boolean;
1014
- reasons: unknown[];
1015
- };
1016
- executionId: string;
1017
- }, {
1018
- result: {
1019
- is_valid: boolean;
1020
- reasons: unknown[];
1021
- };
1022
- executionId: string;
1023
- }>;
1024
- executionId: z.ZodString;
1025
- scenarioId: z.ZodString;
1026
- }, "strip", z.ZodTypeAny, {
1027
- name: string;
1028
- result: {
1029
- result: {
1030
- is_valid: boolean;
1031
- reasons: unknown[];
1032
- };
1033
- executionId: string;
1034
- };
1035
- executionId: string;
1036
- scenarioId: string;
1037
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1038
- objectId: string;
1039
- address?: string | null | undefined;
1040
- }, {
1041
- name: string;
1042
- result: {
1043
- result: {
1044
- is_valid: boolean;
1045
- reasons: unknown[];
1046
- };
1047
- executionId: string;
1048
- };
1049
- executionId: string;
1050
- scenarioId: string;
1051
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1052
- objectId: string;
1053
- address?: string | null | undefined;
1054
- }>, "many">, "many">;
1055
- }, "strip", z.ZodTypeAny, {
1056
- status: "valid" | "unknown" | "not-valid" | "error";
1057
- customerId: string;
1058
- scenarioExecutionId: string;
1059
- results: {
1060
- name: string;
1061
- result: {
1062
- result: {
1063
- is_valid: boolean;
1064
- reasons: unknown[];
1065
- };
1066
- executionId: string;
1067
- };
1068
- executionId: string;
1069
- scenarioId: string;
1070
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1071
- objectId: string;
1072
- address?: string | null | undefined;
1073
- }[][];
1074
- }, {
1075
- status: "valid" | "unknown" | "not-valid" | "error";
1076
- customerId: string;
1077
- scenarioExecutionId: string;
1078
- results: {
1079
- name: string;
1080
- result: {
1081
- result: {
1082
- is_valid: boolean;
1083
- reasons: unknown[];
1084
- };
1085
- executionId: string;
1086
- };
1087
- executionId: string;
1088
- scenarioId: string;
1089
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1090
- objectId: string;
1091
- address?: string | null | undefined;
1092
- }[][];
1093
- }>;
1094
- isVerified: z.ZodBoolean;
1095
- }, "strip", z.ZodTypeAny, {
1096
- type: "onlineVerification";
1097
- verification: {
1098
- status: "valid" | "unknown" | "not-valid" | "error";
1099
- customerId: string;
1100
- scenarioExecutionId: string;
1101
- results: {
1102
- name: string;
1103
- result: {
1104
- result: {
1105
- is_valid: boolean;
1106
- reasons: unknown[];
1107
- };
1108
- executionId: string;
1109
- };
1110
- executionId: string;
1111
- scenarioId: string;
1112
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1113
- objectId: string;
1114
- address?: string | null | undefined;
1115
- }[][];
1116
- };
1117
- isVerified: boolean;
1118
- }, {
1119
- type: "onlineVerification";
1120
- verification: {
1121
- status: "valid" | "unknown" | "not-valid" | "error";
1122
- customerId: string;
1123
- scenarioExecutionId: string;
1124
- results: {
1125
- name: string;
1126
- result: {
1127
- result: {
1128
- is_valid: boolean;
1129
- reasons: unknown[];
1130
- };
1131
- executionId: string;
1132
- };
1133
- executionId: string;
1134
- scenarioId: string;
1135
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1136
- objectId: string;
1137
- address?: string | null | undefined;
1138
- }[][];
1139
- };
1140
- isVerified: boolean;
1141
- }>, z.ZodObject<{
1142
- type: z.ZodLiteral<"zkpVerification">;
1143
- verification: z.ZodObject<{
1144
- customerId: z.ZodString;
1145
- scenarioExecutionId: z.ZodString;
1146
- status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1147
- results: z.ZodArray<z.ZodArray<z.ZodObject<{
1148
- objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1149
- objectId: z.ZodString;
1150
- name: z.ZodString;
1151
- address: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>>>;
1152
- result: z.ZodObject<{
1153
- result: z.ZodObject<{
1154
- is_valid: z.ZodBoolean;
1155
- reasons: z.ZodArray<z.ZodUnknown, "many">;
1156
- }, "strip", z.ZodTypeAny, {
1157
- is_valid: boolean;
1158
- reasons: unknown[];
1159
- }, {
1160
- is_valid: boolean;
1161
- reasons: unknown[];
1162
- }>;
1163
- executionId: z.ZodString;
1164
- }, "strip", z.ZodTypeAny, {
1165
- result: {
1166
- is_valid: boolean;
1167
- reasons: unknown[];
1168
- };
1169
- executionId: string;
1170
- }, {
1171
- result: {
1172
- is_valid: boolean;
1173
- reasons: unknown[];
1174
- };
1175
- executionId: string;
1176
- }>;
1177
- executionId: z.ZodString;
1178
- scenarioId: z.ZodString;
1179
- }, "strip", z.ZodTypeAny, {
1180
- name: string;
1181
- result: {
1182
- result: {
1183
- is_valid: boolean;
1184
- reasons: unknown[];
1185
- };
1186
- executionId: string;
1187
- };
1188
- executionId: string;
1189
- scenarioId: string;
1190
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1191
- objectId: string;
1192
- address?: string | null | undefined;
1193
- }, {
1194
- name: string;
1195
- result: {
1196
- result: {
1197
- is_valid: boolean;
1198
- reasons: unknown[];
1199
- };
1200
- executionId: string;
1201
- };
1202
- executionId: string;
1203
- scenarioId: string;
1204
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1205
- objectId: string;
1206
- address?: string | null | undefined;
1207
- }>, "many">, "many">;
1208
- }, "strip", z.ZodTypeAny, {
1209
- status: "valid" | "unknown" | "not-valid" | "error";
1210
- customerId: string;
1211
- scenarioExecutionId: string;
1212
- results: {
1213
- name: string;
1214
- result: {
1215
- result: {
1216
- is_valid: boolean;
1217
- reasons: unknown[];
1218
- };
1219
- executionId: string;
1220
- };
1221
- executionId: string;
1222
- scenarioId: string;
1223
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1224
- objectId: string;
1225
- address?: string | null | undefined;
1226
- }[][];
1227
- }, {
1228
- status: "valid" | "unknown" | "not-valid" | "error";
1229
- customerId: string;
1230
- scenarioExecutionId: string;
1231
- results: {
1232
- name: string;
1233
- result: {
1234
- result: {
1235
- is_valid: boolean;
1236
- reasons: unknown[];
1237
- };
1238
- executionId: string;
1239
- };
1240
- executionId: string;
1241
- scenarioId: string;
1242
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1243
- objectId: string;
1244
- address?: string | null | undefined;
1245
- }[][];
1246
- }>;
1247
- isVerified: z.ZodBoolean;
980
+ export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
981
+ type: z.ZodLiteral<"identityAppLoaded">;
1248
982
  }, "strip", z.ZodTypeAny, {
1249
- type: "zkpVerification";
1250
- verification: {
1251
- status: "valid" | "unknown" | "not-valid" | "error";
1252
- customerId: string;
1253
- scenarioExecutionId: string;
1254
- results: {
1255
- name: string;
1256
- result: {
1257
- result: {
1258
- is_valid: boolean;
1259
- reasons: unknown[];
1260
- };
1261
- executionId: string;
1262
- };
1263
- executionId: string;
1264
- scenarioId: string;
1265
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1266
- objectId: string;
1267
- address?: string | null | undefined;
1268
- }[][];
1269
- };
1270
- isVerified: boolean;
983
+ type: "identityAppLoaded";
1271
984
  }, {
1272
- type: "zkpVerification";
1273
- verification: {
1274
- status: "valid" | "unknown" | "not-valid" | "error";
1275
- customerId: string;
1276
- scenarioExecutionId: string;
1277
- results: {
1278
- name: string;
1279
- result: {
1280
- result: {
1281
- is_valid: boolean;
1282
- reasons: unknown[];
1283
- };
1284
- executionId: string;
1285
- };
1286
- executionId: string;
1287
- scenarioId: string;
1288
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1289
- objectId: string;
1290
- address?: string | null | undefined;
1291
- }[][];
1292
- };
1293
- isVerified: boolean;
985
+ type: "identityAppLoaded";
1294
986
  }>, z.ZodObject<{
1295
- type: z.ZodLiteral<"onChainVerification">;
1296
- verificationHashes: z.ZodArray<z.ZodString, "many">;
1297
- isVerified: z.ZodBoolean;
1298
- }, "strip", z.ZodTypeAny, {
1299
- type: "onChainVerification";
1300
- isVerified: boolean;
1301
- verificationHashes: string[];
1302
- }, {
1303
- type: "onChainVerification";
1304
- isVerified: boolean;
1305
- verificationHashes: string[];
1306
- }>]>;
1307
- export type ValidVerificationCompleteData = z.infer<typeof ValidVerificationCompleteData>;
1308
- export declare const VerificationCompleteNotification: z.ZodObject<{
1309
- type: z.ZodLiteral<"verificationComplete">;
1310
- data: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1311
- type: z.ZodLiteral<"onlineVerification">;
1312
- verification: z.ZodObject<{
1313
- customerId: z.ZodString;
1314
- scenarioExecutionId: z.ZodString;
1315
- status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1316
- results: z.ZodArray<z.ZodArray<z.ZodObject<{
1317
- objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1318
- objectId: z.ZodString;
1319
- name: z.ZodString;
1320
- address: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>>>;
1321
- result: z.ZodObject<{
1322
- result: z.ZodObject<{
1323
- is_valid: z.ZodBoolean;
1324
- reasons: z.ZodArray<z.ZodUnknown, "many">;
1325
- }, "strip", z.ZodTypeAny, {
1326
- is_valid: boolean;
1327
- reasons: unknown[];
1328
- }, {
1329
- is_valid: boolean;
1330
- reasons: unknown[];
1331
- }>;
1332
- executionId: z.ZodString;
1333
- }, "strip", z.ZodTypeAny, {
1334
- result: {
1335
- is_valid: boolean;
1336
- reasons: unknown[];
1337
- };
1338
- executionId: string;
1339
- }, {
1340
- result: {
1341
- is_valid: boolean;
1342
- reasons: unknown[];
1343
- };
1344
- executionId: string;
1345
- }>;
1346
- executionId: z.ZodString;
1347
- scenarioId: z.ZodString;
1348
- }, "strip", z.ZodTypeAny, {
1349
- name: string;
1350
- result: {
1351
- result: {
1352
- is_valid: boolean;
1353
- reasons: unknown[];
1354
- };
1355
- executionId: string;
1356
- };
1357
- executionId: string;
1358
- scenarioId: string;
1359
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1360
- objectId: string;
1361
- address?: string | null | undefined;
1362
- }, {
1363
- name: string;
1364
- result: {
1365
- result: {
1366
- is_valid: boolean;
1367
- reasons: unknown[];
1368
- };
1369
- executionId: string;
1370
- };
1371
- executionId: string;
1372
- scenarioId: string;
1373
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1374
- objectId: string;
1375
- address?: string | null | undefined;
1376
- }>, "many">, "many">;
1377
- }, "strip", z.ZodTypeAny, {
1378
- status: "valid" | "unknown" | "not-valid" | "error";
1379
- customerId: string;
1380
- scenarioExecutionId: string;
1381
- results: {
1382
- name: string;
1383
- result: {
1384
- result: {
1385
- is_valid: boolean;
1386
- reasons: unknown[];
1387
- };
1388
- executionId: string;
1389
- };
1390
- executionId: string;
1391
- scenarioId: string;
1392
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1393
- objectId: string;
1394
- address?: string | null | undefined;
1395
- }[][];
1396
- }, {
1397
- status: "valid" | "unknown" | "not-valid" | "error";
1398
- customerId: string;
1399
- scenarioExecutionId: string;
1400
- results: {
1401
- name: string;
1402
- result: {
1403
- result: {
1404
- is_valid: boolean;
1405
- reasons: unknown[];
1406
- };
1407
- executionId: string;
1408
- };
1409
- executionId: string;
1410
- scenarioId: string;
1411
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1412
- objectId: string;
1413
- address?: string | null | undefined;
1414
- }[][];
1415
- }>;
1416
- isVerified: z.ZodBoolean;
1417
- }, "strip", z.ZodTypeAny, {
1418
- type: "onlineVerification";
1419
- verification: {
1420
- status: "valid" | "unknown" | "not-valid" | "error";
1421
- customerId: string;
1422
- scenarioExecutionId: string;
1423
- results: {
1424
- name: string;
1425
- result: {
1426
- result: {
1427
- is_valid: boolean;
1428
- reasons: unknown[];
1429
- };
1430
- executionId: string;
1431
- };
1432
- executionId: string;
1433
- scenarioId: string;
1434
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1435
- objectId: string;
1436
- address?: string | null | undefined;
1437
- }[][];
1438
- };
1439
- isVerified: boolean;
1440
- }, {
1441
- type: "onlineVerification";
1442
- verification: {
1443
- status: "valid" | "unknown" | "not-valid" | "error";
1444
- customerId: string;
1445
- scenarioExecutionId: string;
1446
- results: {
1447
- name: string;
1448
- result: {
1449
- result: {
1450
- is_valid: boolean;
1451
- reasons: unknown[];
1452
- };
1453
- executionId: string;
1454
- };
1455
- executionId: string;
1456
- scenarioId: string;
1457
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1458
- objectId: string;
1459
- address?: string | null | undefined;
1460
- }[][];
1461
- };
1462
- isVerified: boolean;
1463
- }>, z.ZodObject<{
1464
- type: z.ZodLiteral<"zkpVerification">;
1465
- verification: z.ZodObject<{
1466
- customerId: z.ZodString;
1467
- scenarioExecutionId: z.ZodString;
1468
- status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1469
- results: z.ZodArray<z.ZodArray<z.ZodObject<{
1470
- objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1471
- objectId: z.ZodString;
1472
- name: z.ZodString;
1473
- address: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>>>;
1474
- result: z.ZodObject<{
1475
- result: z.ZodObject<{
1476
- is_valid: z.ZodBoolean;
1477
- reasons: z.ZodArray<z.ZodUnknown, "many">;
1478
- }, "strip", z.ZodTypeAny, {
1479
- is_valid: boolean;
1480
- reasons: unknown[];
1481
- }, {
1482
- is_valid: boolean;
1483
- reasons: unknown[];
1484
- }>;
1485
- executionId: z.ZodString;
1486
- }, "strip", z.ZodTypeAny, {
1487
- result: {
1488
- is_valid: boolean;
1489
- reasons: unknown[];
1490
- };
1491
- executionId: string;
1492
- }, {
1493
- result: {
1494
- is_valid: boolean;
1495
- reasons: unknown[];
1496
- };
1497
- executionId: string;
1498
- }>;
1499
- executionId: z.ZodString;
1500
- scenarioId: z.ZodString;
1501
- }, "strip", z.ZodTypeAny, {
1502
- name: string;
1503
- result: {
1504
- result: {
1505
- is_valid: boolean;
1506
- reasons: unknown[];
1507
- };
1508
- executionId: string;
1509
- };
1510
- executionId: string;
1511
- scenarioId: string;
1512
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1513
- objectId: string;
1514
- address?: string | null | undefined;
1515
- }, {
1516
- name: string;
1517
- result: {
1518
- result: {
1519
- is_valid: boolean;
1520
- reasons: unknown[];
1521
- };
1522
- executionId: string;
1523
- };
1524
- executionId: string;
1525
- scenarioId: string;
1526
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1527
- objectId: string;
1528
- address?: string | null | undefined;
1529
- }>, "many">, "many">;
1530
- }, "strip", z.ZodTypeAny, {
1531
- status: "valid" | "unknown" | "not-valid" | "error";
1532
- customerId: string;
1533
- scenarioExecutionId: string;
1534
- results: {
1535
- name: string;
1536
- result: {
1537
- result: {
1538
- is_valid: boolean;
1539
- reasons: unknown[];
1540
- };
1541
- executionId: string;
1542
- };
1543
- executionId: string;
1544
- scenarioId: string;
1545
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1546
- objectId: string;
1547
- address?: string | null | undefined;
1548
- }[][];
1549
- }, {
1550
- status: "valid" | "unknown" | "not-valid" | "error";
1551
- customerId: string;
1552
- scenarioExecutionId: string;
1553
- results: {
1554
- name: string;
1555
- result: {
1556
- result: {
1557
- is_valid: boolean;
1558
- reasons: unknown[];
1559
- };
1560
- executionId: string;
1561
- };
1562
- executionId: string;
1563
- scenarioId: string;
1564
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1565
- objectId: string;
1566
- address?: string | null | undefined;
1567
- }[][];
1568
- }>;
1569
- isVerified: z.ZodBoolean;
1570
- }, "strip", z.ZodTypeAny, {
1571
- type: "zkpVerification";
1572
- verification: {
1573
- status: "valid" | "unknown" | "not-valid" | "error";
1574
- customerId: string;
1575
- scenarioExecutionId: string;
1576
- results: {
1577
- name: string;
1578
- result: {
1579
- result: {
1580
- is_valid: boolean;
1581
- reasons: unknown[];
1582
- };
1583
- executionId: string;
1584
- };
1585
- executionId: string;
1586
- scenarioId: string;
1587
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1588
- objectId: string;
1589
- address?: string | null | undefined;
1590
- }[][];
1591
- };
1592
- isVerified: boolean;
1593
- }, {
1594
- type: "zkpVerification";
1595
- verification: {
1596
- status: "valid" | "unknown" | "not-valid" | "error";
1597
- customerId: string;
1598
- scenarioExecutionId: string;
1599
- results: {
1600
- name: string;
1601
- result: {
1602
- result: {
1603
- is_valid: boolean;
1604
- reasons: unknown[];
1605
- };
1606
- executionId: string;
1607
- };
1608
- executionId: string;
1609
- scenarioId: string;
1610
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1611
- objectId: string;
1612
- address?: string | null | undefined;
1613
- }[][];
1614
- };
1615
- isVerified: boolean;
1616
- }>, z.ZodObject<{
1617
- type: z.ZodLiteral<"onChainVerification">;
1618
- verificationHashes: z.ZodArray<z.ZodString, "many">;
1619
- isVerified: z.ZodBoolean;
1620
- }, "strip", z.ZodTypeAny, {
1621
- type: "onChainVerification";
1622
- isVerified: boolean;
1623
- verificationHashes: string[];
1624
- }, {
1625
- type: "onChainVerification";
1626
- isVerified: boolean;
1627
- verificationHashes: string[];
1628
- }>]>, z.ZodObject<{
1629
- error: z.ZodUnknown;
1630
- verification: z.ZodNull;
1631
- }, "strip", z.ZodTypeAny, {
1632
- verification: null;
1633
- error?: unknown;
1634
- }, {
1635
- verification: null;
1636
- error?: unknown;
1637
- }>]>;
1638
- }, "strip", z.ZodTypeAny, {
1639
- type: "verificationComplete";
1640
- data: {
1641
- type: "onlineVerification";
1642
- verification: {
1643
- status: "valid" | "unknown" | "not-valid" | "error";
1644
- customerId: string;
1645
- scenarioExecutionId: string;
1646
- results: {
1647
- name: string;
1648
- result: {
1649
- result: {
1650
- is_valid: boolean;
1651
- reasons: unknown[];
1652
- };
1653
- executionId: string;
1654
- };
1655
- executionId: string;
1656
- scenarioId: string;
1657
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1658
- objectId: string;
1659
- address?: string | null | undefined;
1660
- }[][];
1661
- };
1662
- isVerified: boolean;
1663
- } | {
1664
- type: "zkpVerification";
1665
- verification: {
1666
- status: "valid" | "unknown" | "not-valid" | "error";
1667
- customerId: string;
1668
- scenarioExecutionId: string;
1669
- results: {
1670
- name: string;
1671
- result: {
1672
- result: {
1673
- is_valid: boolean;
1674
- reasons: unknown[];
1675
- };
1676
- executionId: string;
1677
- };
1678
- executionId: string;
1679
- scenarioId: string;
1680
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1681
- objectId: string;
1682
- address?: string | null | undefined;
1683
- }[][];
1684
- };
1685
- isVerified: boolean;
1686
- } | {
1687
- type: "onChainVerification";
1688
- isVerified: boolean;
1689
- verificationHashes: string[];
1690
- } | {
1691
- verification: null;
1692
- error?: unknown;
1693
- };
1694
- }, {
1695
- type: "verificationComplete";
1696
- data: {
1697
- type: "onlineVerification";
1698
- verification: {
1699
- status: "valid" | "unknown" | "not-valid" | "error";
1700
- customerId: string;
1701
- scenarioExecutionId: string;
1702
- results: {
1703
- name: string;
1704
- result: {
1705
- result: {
1706
- is_valid: boolean;
1707
- reasons: unknown[];
1708
- };
1709
- executionId: string;
1710
- };
1711
- executionId: string;
1712
- scenarioId: string;
1713
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1714
- objectId: string;
1715
- address?: string | null | undefined;
1716
- }[][];
1717
- };
1718
- isVerified: boolean;
1719
- } | {
1720
- type: "zkpVerification";
1721
- verification: {
1722
- status: "valid" | "unknown" | "not-valid" | "error";
1723
- customerId: string;
1724
- scenarioExecutionId: string;
1725
- results: {
1726
- name: string;
1727
- result: {
1728
- result: {
1729
- is_valid: boolean;
1730
- reasons: unknown[];
1731
- };
1732
- executionId: string;
1733
- };
1734
- executionId: string;
1735
- scenarioId: string;
1736
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1737
- objectId: string;
1738
- address?: string | null | undefined;
1739
- }[][];
1740
- };
1741
- isVerified: boolean;
1742
- } | {
1743
- type: "onChainVerification";
1744
- isVerified: boolean;
1745
- verificationHashes: string[];
1746
- } | {
1747
- verification: null;
1748
- error?: unknown;
1749
- };
1750
- }>;
1751
- export type VerificationCompleteNotification = z.infer<typeof VerificationCompleteNotification>;
1752
- export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
1753
- type: z.ZodLiteral<"identityAppLoaded">;
1754
- }, "strip", z.ZodTypeAny, {
1755
- type: "identityAppLoaded";
1756
- }, {
1757
- type: "identityAppLoaded";
1758
- }>, z.ZodObject<{
1759
- type: z.ZodLiteral<"identityAppConfigured">;
1760
- data: z.ZodObject<{
1761
- auth: z.ZodObject<{
1762
- token: z.ZodString;
1763
- }, "strip", z.ZodTypeAny, {
1764
- token: string;
1765
- }, {
1766
- token: string;
1767
- }>;
1768
- }, "strip", z.ZodTypeAny, {
1769
- auth: {
1770
- token: string;
1771
- };
1772
- }, {
1773
- auth: {
1774
- token: string;
1775
- };
1776
- }>;
1777
- }, "strip", z.ZodTypeAny, {
1778
- type: "identityAppConfigured";
1779
- data: {
1780
- auth: {
1781
- token: string;
1782
- };
1783
- };
1784
- }, {
1785
- type: "identityAppConfigured";
1786
- data: {
1787
- auth: {
1788
- token: string;
1789
- };
1790
- };
1791
- }>, z.ZodObject<{
1792
- type: z.ZodLiteral<"walletSignRequest">;
1793
- data: z.ZodObject<{
1794
- message: z.ZodString;
1795
- }, "strip", z.ZodTypeAny, {
1796
- message: string;
1797
- }, {
1798
- message: string;
1799
- }>;
1800
- }, "strip", z.ZodTypeAny, {
1801
- type: "walletSignRequest";
1802
- data: {
1803
- message: string;
1804
- };
1805
- }, {
1806
- type: "walletSignRequest";
1807
- data: {
1808
- message: string;
1809
- };
1810
- }>, z.ZodObject<{
1811
- type: z.ZodLiteral<"txAuthDataSignatureResponse">;
1812
- data: z.ZodUnion<[z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1813
- isAuthorized: z.ZodLiteral<true>;
1814
- signature: z.ZodEffects<z.ZodString, string, string>;
1815
- payload: z.ZodString;
1816
- blockExpiration: z.ZodNumber;
1817
- }, "strip", z.ZodTypeAny, {
1818
- signature: string;
1819
- blockExpiration: number;
1820
- isAuthorized: true;
1821
- payload: string;
1822
- }, {
1823
- signature: string;
1824
- blockExpiration: number;
1825
- isAuthorized: true;
1826
- payload: string;
1827
- }>, z.ZodObject<{
1828
- isAuthorized: z.ZodLiteral<false>;
1829
- errorMessage: z.ZodAny;
1830
- }, "strip", z.ZodTypeAny, {
1831
- isAuthorized: false;
1832
- errorMessage?: any;
1833
- }, {
1834
- isAuthorized: false;
1835
- errorMessage?: any;
1836
- }>]>, z.ZodObject<{
1837
- namespace: z.ZodLiteral<"eip155">;
1838
- userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
1839
- }, "strip", z.ZodTypeAny, {
1840
- namespace: "eip155";
1841
- userAddress: `0x${string}`;
1842
- }, {
1843
- namespace: "eip155";
1844
- userAddress: string;
1845
- }>>, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1846
- isAuthorized: z.ZodLiteral<true>;
1847
- signature: z.ZodEffects<z.ZodString, `edsig${string}`, string>;
1848
- blockExpiration: z.ZodNumber;
1849
- }, "strip", z.ZodTypeAny, {
1850
- signature: `edsig${string}`;
1851
- blockExpiration: number;
1852
- isAuthorized: true;
1853
- }, {
1854
- signature: string;
1855
- blockExpiration: number;
1856
- isAuthorized: true;
1857
- }>, z.ZodObject<{
1858
- isAuthorized: z.ZodLiteral<false>;
1859
- errorMessage: z.ZodAny;
1860
- }, "strip", z.ZodTypeAny, {
1861
- isAuthorized: false;
1862
- errorMessage?: any;
1863
- }, {
1864
- isAuthorized: false;
1865
- errorMessage?: any;
1866
- }>]>, z.ZodObject<{
1867
- namespace: z.ZodLiteral<"tezos">;
1868
- userAddress: z.ZodEffects<z.ZodString, `tz${string}`, string>;
1869
- }, "strip", z.ZodTypeAny, {
1870
- namespace: "tezos";
1871
- userAddress: `tz${string}`;
1872
- }, {
1873
- namespace: "tezos";
1874
- userAddress: string;
1875
- }>>]>;
1876
- }, "strip", z.ZodTypeAny, {
1877
- type: "txAuthDataSignatureResponse";
1878
- data: (({
1879
- signature: string;
1880
- blockExpiration: number;
1881
- isAuthorized: true;
1882
- payload: string;
1883
- } | {
1884
- isAuthorized: false;
1885
- errorMessage?: any;
1886
- }) & {
1887
- namespace: "eip155";
1888
- userAddress: `0x${string}`;
1889
- }) | (({
1890
- signature: `edsig${string}`;
1891
- blockExpiration: number;
1892
- isAuthorized: true;
1893
- } | {
1894
- isAuthorized: false;
1895
- errorMessage?: any;
1896
- }) & {
1897
- namespace: "tezos";
1898
- userAddress: `tz${string}`;
1899
- });
1900
- }, {
1901
- type: "txAuthDataSignatureResponse";
1902
- data: (({
1903
- signature: string;
1904
- blockExpiration: number;
1905
- isAuthorized: true;
1906
- payload: string;
1907
- } | {
1908
- isAuthorized: false;
1909
- errorMessage?: any;
1910
- }) & {
1911
- namespace: "eip155";
1912
- userAddress: string;
1913
- }) | (({
1914
- signature: string;
1915
- blockExpiration: number;
1916
- isAuthorized: true;
1917
- } | {
1918
- isAuthorized: false;
1919
- errorMessage?: any;
1920
- }) & {
1921
- namespace: "tezos";
1922
- userAddress: string;
1923
- });
1924
- }>, z.ZodObject<{
1925
- type: z.ZodLiteral<"getCustomerStatusResponse">;
1926
- data: z.ZodUnion<[z.ZodEffects<z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status", unknown>, z.ZodNull]>;
1927
- }, "strip", z.ZodTypeAny, {
1928
- type: "getCustomerStatusResponse";
1929
- data: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | null;
1930
- }, {
1931
- type: "getCustomerStatusResponse";
1932
- data?: unknown;
1933
- }>, z.ZodObject<{
1934
- type: z.ZodLiteral<"verificationBegin">;
1935
- }, "strip", z.ZodTypeAny, {
1936
- type: "verificationBegin";
1937
- }, {
1938
- type: "verificationBegin";
1939
- }>, z.ZodObject<{
1940
- type: z.ZodLiteral<"verificationComplete">;
1941
- data: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1942
- type: z.ZodLiteral<"onlineVerification">;
1943
- verification: z.ZodObject<{
1944
- customerId: z.ZodString;
1945
- scenarioExecutionId: z.ZodString;
1946
- status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1947
- results: z.ZodArray<z.ZodArray<z.ZodObject<{
1948
- objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1949
- objectId: z.ZodString;
1950
- name: z.ZodString;
1951
- address: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>>>;
1952
- result: z.ZodObject<{
1953
- result: z.ZodObject<{
1954
- is_valid: z.ZodBoolean;
1955
- reasons: z.ZodArray<z.ZodUnknown, "many">;
1956
- }, "strip", z.ZodTypeAny, {
1957
- is_valid: boolean;
1958
- reasons: unknown[];
1959
- }, {
1960
- is_valid: boolean;
1961
- reasons: unknown[];
1962
- }>;
1963
- executionId: z.ZodString;
1964
- }, "strip", z.ZodTypeAny, {
1965
- result: {
1966
- is_valid: boolean;
1967
- reasons: unknown[];
1968
- };
1969
- executionId: string;
1970
- }, {
1971
- result: {
1972
- is_valid: boolean;
1973
- reasons: unknown[];
1974
- };
1975
- executionId: string;
1976
- }>;
1977
- executionId: z.ZodString;
1978
- scenarioId: z.ZodString;
1979
- }, "strip", z.ZodTypeAny, {
1980
- name: string;
1981
- result: {
1982
- result: {
1983
- is_valid: boolean;
1984
- reasons: unknown[];
1985
- };
1986
- executionId: string;
1987
- };
1988
- executionId: string;
1989
- scenarioId: string;
1990
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1991
- objectId: string;
1992
- address?: string | null | undefined;
1993
- }, {
1994
- name: string;
1995
- result: {
1996
- result: {
1997
- is_valid: boolean;
1998
- reasons: unknown[];
1999
- };
2000
- executionId: string;
2001
- };
2002
- executionId: string;
2003
- scenarioId: string;
2004
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2005
- objectId: string;
2006
- address?: string | null | undefined;
2007
- }>, "many">, "many">;
2008
- }, "strip", z.ZodTypeAny, {
2009
- status: "valid" | "unknown" | "not-valid" | "error";
2010
- customerId: string;
2011
- scenarioExecutionId: string;
2012
- results: {
2013
- name: string;
2014
- result: {
2015
- result: {
2016
- is_valid: boolean;
2017
- reasons: unknown[];
2018
- };
2019
- executionId: string;
2020
- };
2021
- executionId: string;
2022
- scenarioId: string;
2023
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2024
- objectId: string;
2025
- address?: string | null | undefined;
2026
- }[][];
2027
- }, {
2028
- status: "valid" | "unknown" | "not-valid" | "error";
2029
- customerId: string;
2030
- scenarioExecutionId: string;
2031
- results: {
2032
- name: string;
2033
- result: {
2034
- result: {
2035
- is_valid: boolean;
2036
- reasons: unknown[];
2037
- };
2038
- executionId: string;
2039
- };
2040
- executionId: string;
2041
- scenarioId: string;
2042
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2043
- objectId: string;
2044
- address?: string | null | undefined;
2045
- }[][];
2046
- }>;
2047
- isVerified: z.ZodBoolean;
2048
- }, "strip", z.ZodTypeAny, {
2049
- type: "onlineVerification";
2050
- verification: {
2051
- status: "valid" | "unknown" | "not-valid" | "error";
2052
- customerId: string;
2053
- scenarioExecutionId: string;
2054
- results: {
2055
- name: string;
2056
- result: {
2057
- result: {
2058
- is_valid: boolean;
2059
- reasons: unknown[];
2060
- };
2061
- executionId: string;
2062
- };
2063
- executionId: string;
2064
- scenarioId: string;
2065
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2066
- objectId: string;
2067
- address?: string | null | undefined;
2068
- }[][];
2069
- };
2070
- isVerified: boolean;
2071
- }, {
2072
- type: "onlineVerification";
2073
- verification: {
2074
- status: "valid" | "unknown" | "not-valid" | "error";
2075
- customerId: string;
2076
- scenarioExecutionId: string;
2077
- results: {
2078
- name: string;
2079
- result: {
2080
- result: {
2081
- is_valid: boolean;
2082
- reasons: unknown[];
2083
- };
2084
- executionId: string;
2085
- };
2086
- executionId: string;
2087
- scenarioId: string;
2088
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2089
- objectId: string;
2090
- address?: string | null | undefined;
2091
- }[][];
2092
- };
2093
- isVerified: boolean;
2094
- }>, z.ZodObject<{
2095
- type: z.ZodLiteral<"zkpVerification">;
2096
- verification: z.ZodObject<{
2097
- customerId: z.ZodString;
2098
- scenarioExecutionId: z.ZodString;
2099
- status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
2100
- results: z.ZodArray<z.ZodArray<z.ZodObject<{
2101
- objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
2102
- objectId: z.ZodString;
2103
- name: z.ZodString;
2104
- address: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>>>;
2105
- result: z.ZodObject<{
2106
- result: z.ZodObject<{
2107
- is_valid: z.ZodBoolean;
2108
- reasons: z.ZodArray<z.ZodUnknown, "many">;
2109
- }, "strip", z.ZodTypeAny, {
2110
- is_valid: boolean;
2111
- reasons: unknown[];
2112
- }, {
2113
- is_valid: boolean;
2114
- reasons: unknown[];
2115
- }>;
2116
- executionId: z.ZodString;
2117
- }, "strip", z.ZodTypeAny, {
2118
- result: {
2119
- is_valid: boolean;
2120
- reasons: unknown[];
2121
- };
2122
- executionId: string;
2123
- }, {
2124
- result: {
2125
- is_valid: boolean;
2126
- reasons: unknown[];
2127
- };
2128
- executionId: string;
2129
- }>;
2130
- executionId: z.ZodString;
2131
- scenarioId: z.ZodString;
2132
- }, "strip", z.ZodTypeAny, {
2133
- name: string;
2134
- result: {
2135
- result: {
2136
- is_valid: boolean;
2137
- reasons: unknown[];
2138
- };
2139
- executionId: string;
2140
- };
2141
- executionId: string;
2142
- scenarioId: string;
2143
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2144
- objectId: string;
2145
- address?: string | null | undefined;
2146
- }, {
2147
- name: string;
2148
- result: {
2149
- result: {
2150
- is_valid: boolean;
2151
- reasons: unknown[];
2152
- };
2153
- executionId: string;
2154
- };
2155
- executionId: string;
2156
- scenarioId: string;
2157
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2158
- objectId: string;
2159
- address?: string | null | undefined;
2160
- }>, "many">, "many">;
2161
- }, "strip", z.ZodTypeAny, {
2162
- status: "valid" | "unknown" | "not-valid" | "error";
2163
- customerId: string;
2164
- scenarioExecutionId: string;
2165
- results: {
2166
- name: string;
2167
- result: {
2168
- result: {
2169
- is_valid: boolean;
2170
- reasons: unknown[];
2171
- };
2172
- executionId: string;
2173
- };
2174
- executionId: string;
2175
- scenarioId: string;
2176
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2177
- objectId: string;
2178
- address?: string | null | undefined;
2179
- }[][];
2180
- }, {
2181
- status: "valid" | "unknown" | "not-valid" | "error";
2182
- customerId: string;
2183
- scenarioExecutionId: string;
2184
- results: {
2185
- name: string;
2186
- result: {
2187
- result: {
2188
- is_valid: boolean;
2189
- reasons: unknown[];
2190
- };
2191
- executionId: string;
2192
- };
2193
- executionId: string;
2194
- scenarioId: string;
2195
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2196
- objectId: string;
2197
- address?: string | null | undefined;
2198
- }[][];
2199
- }>;
2200
- isVerified: z.ZodBoolean;
2201
- }, "strip", z.ZodTypeAny, {
2202
- type: "zkpVerification";
2203
- verification: {
2204
- status: "valid" | "unknown" | "not-valid" | "error";
2205
- customerId: string;
2206
- scenarioExecutionId: string;
2207
- results: {
2208
- name: string;
2209
- result: {
2210
- result: {
2211
- is_valid: boolean;
2212
- reasons: unknown[];
2213
- };
2214
- executionId: string;
2215
- };
2216
- executionId: string;
2217
- scenarioId: string;
2218
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2219
- objectId: string;
2220
- address?: string | null | undefined;
2221
- }[][];
987
+ type: z.ZodLiteral<"identityAppConfigured">;
988
+ data: z.ZodObject<{
989
+ auth: z.ZodObject<{
990
+ token: z.ZodString;
991
+ }, "strip", z.ZodTypeAny, {
992
+ token: string;
993
+ }, {
994
+ token: string;
995
+ }>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ auth: {
998
+ token: string;
2222
999
  };
2223
- isVerified: boolean;
2224
1000
  }, {
2225
- type: "zkpVerification";
2226
- verification: {
2227
- status: "valid" | "unknown" | "not-valid" | "error";
2228
- customerId: string;
2229
- scenarioExecutionId: string;
2230
- results: {
2231
- name: string;
2232
- result: {
2233
- result: {
2234
- is_valid: boolean;
2235
- reasons: unknown[];
2236
- };
2237
- executionId: string;
2238
- };
2239
- executionId: string;
2240
- scenarioId: string;
2241
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2242
- objectId: string;
2243
- address?: string | null | undefined;
2244
- }[][];
1001
+ auth: {
1002
+ token: string;
1003
+ };
1004
+ }>;
1005
+ }, "strip", z.ZodTypeAny, {
1006
+ type: "identityAppConfigured";
1007
+ data: {
1008
+ auth: {
1009
+ token: string;
1010
+ };
1011
+ };
1012
+ }, {
1013
+ type: "identityAppConfigured";
1014
+ data: {
1015
+ auth: {
1016
+ token: string;
2245
1017
  };
2246
- isVerified: boolean;
1018
+ };
1019
+ }>, z.ZodObject<{
1020
+ type: z.ZodLiteral<"walletSignRequest">;
1021
+ data: z.ZodObject<{
1022
+ message: z.ZodString;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ message: string;
1025
+ }, {
1026
+ message: string;
1027
+ }>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ type: "walletSignRequest";
1030
+ data: {
1031
+ message: string;
1032
+ };
1033
+ }, {
1034
+ type: "walletSignRequest";
1035
+ data: {
1036
+ message: string;
1037
+ };
1038
+ }>, z.ZodObject<{
1039
+ type: z.ZodLiteral<"txAuthDataSignatureResponse">;
1040
+ data: z.ZodUnion<[z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1041
+ isAuthorized: z.ZodLiteral<true>;
1042
+ signature: z.ZodEffects<z.ZodString, string, string>;
1043
+ payload: z.ZodString; /** The workflow id to bind the user session to */
1044
+ blockExpiration: z.ZodNumber;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ signature: string;
1047
+ blockExpiration: number;
1048
+ isAuthorized: true;
1049
+ payload: string;
1050
+ }, {
1051
+ signature: string;
1052
+ blockExpiration: number;
1053
+ isAuthorized: true;
1054
+ payload: string;
2247
1055
  }>, z.ZodObject<{
2248
- type: z.ZodLiteral<"onChainVerification">;
2249
- verificationHashes: z.ZodArray<z.ZodString, "many">;
2250
- isVerified: z.ZodBoolean;
1056
+ isAuthorized: z.ZodLiteral<false>;
1057
+ errorMessage: z.ZodAny;
2251
1058
  }, "strip", z.ZodTypeAny, {
2252
- type: "onChainVerification";
2253
- isVerified: boolean;
2254
- verificationHashes: string[];
1059
+ isAuthorized: false;
1060
+ errorMessage?: any;
2255
1061
  }, {
2256
- type: "onChainVerification";
2257
- isVerified: boolean;
2258
- verificationHashes: string[];
1062
+ isAuthorized: false;
1063
+ errorMessage?: any;
2259
1064
  }>]>, z.ZodObject<{
2260
- error: z.ZodUnknown;
2261
- verification: z.ZodNull;
1065
+ namespace: z.ZodLiteral<"eip155">;
1066
+ userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
2262
1067
  }, "strip", z.ZodTypeAny, {
2263
- verification: null;
2264
- error?: unknown;
1068
+ namespace: "eip155";
1069
+ userAddress: `0x${string}`;
2265
1070
  }, {
2266
- verification: null;
2267
- error?: unknown;
2268
- }>]>;
1071
+ namespace: "eip155";
1072
+ userAddress: string;
1073
+ }>>, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1074
+ isAuthorized: z.ZodLiteral<true>;
1075
+ signature: z.ZodEffects<z.ZodString, `edsig${string}`, string>;
1076
+ blockExpiration: z.ZodNumber;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ signature: `edsig${string}`;
1079
+ blockExpiration: number;
1080
+ isAuthorized: true;
1081
+ }, {
1082
+ signature: string;
1083
+ blockExpiration: number;
1084
+ isAuthorized: true;
1085
+ }>, z.ZodObject<{
1086
+ isAuthorized: z.ZodLiteral<false>;
1087
+ errorMessage: z.ZodAny;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ isAuthorized: false;
1090
+ errorMessage?: any;
1091
+ }, {
1092
+ isAuthorized: false;
1093
+ errorMessage?: any;
1094
+ }>]>, z.ZodObject<{
1095
+ namespace: z.ZodLiteral<"tezos">;
1096
+ userAddress: z.ZodEffects<z.ZodString, `tz${string}`, string>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ namespace: "tezos";
1099
+ userAddress: `tz${string}`;
1100
+ }, {
1101
+ namespace: "tezos";
1102
+ userAddress: string;
1103
+ }>>]>;
2269
1104
  }, "strip", z.ZodTypeAny, {
2270
- type: "verificationComplete";
2271
- data: {
2272
- type: "onlineVerification";
2273
- verification: {
2274
- status: "valid" | "unknown" | "not-valid" | "error";
2275
- customerId: string;
2276
- scenarioExecutionId: string;
2277
- results: {
2278
- name: string;
2279
- result: {
2280
- result: {
2281
- is_valid: boolean;
2282
- reasons: unknown[];
2283
- };
2284
- executionId: string;
2285
- };
2286
- executionId: string;
2287
- scenarioId: string;
2288
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2289
- objectId: string;
2290
- address?: string | null | undefined;
2291
- }[][];
2292
- };
2293
- isVerified: boolean;
2294
- } | {
2295
- type: "zkpVerification";
2296
- verification: {
2297
- status: "valid" | "unknown" | "not-valid" | "error";
2298
- customerId: string;
2299
- scenarioExecutionId: string;
2300
- results: {
2301
- name: string;
2302
- result: {
2303
- result: {
2304
- is_valid: boolean;
2305
- reasons: unknown[];
2306
- };
2307
- executionId: string;
2308
- };
2309
- executionId: string;
2310
- scenarioId: string;
2311
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2312
- objectId: string;
2313
- address?: string | null | undefined;
2314
- }[][];
2315
- };
2316
- isVerified: boolean;
1105
+ type: "txAuthDataSignatureResponse";
1106
+ data: (({
1107
+ signature: string;
1108
+ blockExpiration: number;
1109
+ isAuthorized: true;
1110
+ payload: string;
2317
1111
  } | {
2318
- type: "onChainVerification";
2319
- isVerified: boolean;
2320
- verificationHashes: string[];
1112
+ isAuthorized: false;
1113
+ errorMessage?: any;
1114
+ }) & {
1115
+ namespace: "eip155";
1116
+ userAddress: `0x${string}`;
1117
+ }) | (({
1118
+ signature: `edsig${string}`;
1119
+ blockExpiration: number;
1120
+ isAuthorized: true;
2321
1121
  } | {
2322
- verification: null;
2323
- error?: unknown;
2324
- };
1122
+ isAuthorized: false;
1123
+ errorMessage?: any;
1124
+ }) & {
1125
+ namespace: "tezos";
1126
+ userAddress: `tz${string}`;
1127
+ });
2325
1128
  }, {
2326
- type: "verificationComplete";
2327
- data: {
2328
- type: "onlineVerification";
2329
- verification: {
2330
- status: "valid" | "unknown" | "not-valid" | "error";
2331
- customerId: string;
2332
- scenarioExecutionId: string;
2333
- results: {
2334
- name: string;
2335
- result: {
2336
- result: {
2337
- is_valid: boolean;
2338
- reasons: unknown[];
2339
- };
2340
- executionId: string;
2341
- };
2342
- executionId: string;
2343
- scenarioId: string;
2344
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2345
- objectId: string;
2346
- address?: string | null | undefined;
2347
- }[][];
2348
- };
2349
- isVerified: boolean;
2350
- } | {
2351
- type: "zkpVerification";
2352
- verification: {
2353
- status: "valid" | "unknown" | "not-valid" | "error";
2354
- customerId: string;
2355
- scenarioExecutionId: string;
2356
- results: {
2357
- name: string;
2358
- result: {
2359
- result: {
2360
- is_valid: boolean;
2361
- reasons: unknown[];
2362
- };
2363
- executionId: string;
2364
- };
2365
- executionId: string;
2366
- scenarioId: string;
2367
- objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2368
- objectId: string;
2369
- address?: string | null | undefined;
2370
- }[][];
2371
- };
2372
- isVerified: boolean;
1129
+ type: "txAuthDataSignatureResponse";
1130
+ data: (({
1131
+ signature: string;
1132
+ blockExpiration: number;
1133
+ isAuthorized: true;
1134
+ payload: string;
2373
1135
  } | {
2374
- type: "onChainVerification";
2375
- isVerified: boolean;
2376
- verificationHashes: string[];
1136
+ isAuthorized: false;
1137
+ errorMessage?: any;
1138
+ }) & {
1139
+ namespace: "eip155";
1140
+ userAddress: string;
1141
+ }) | (({
1142
+ signature: string;
1143
+ blockExpiration: number;
1144
+ isAuthorized: true;
2377
1145
  } | {
2378
- verification: null;
2379
- error?: unknown;
2380
- };
1146
+ isAuthorized: false;
1147
+ errorMessage?: any;
1148
+ }) & {
1149
+ namespace: "tezos";
1150
+ userAddress: string;
1151
+ });
1152
+ }>, z.ZodObject<{
1153
+ type: z.ZodLiteral<"getCustomerStatusResponse">;
1154
+ data: z.ZodUnion<[z.ZodEffects<z.ZodEnum<["Active", "Rejected", "Dormant", "To be reviewed", "Failed", "Escalated", "Terminated", "No status"]>, "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status", unknown>, z.ZodNull]>;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ type: "getCustomerStatusResponse";
1157
+ data: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | null;
1158
+ }, {
1159
+ type: "getCustomerStatusResponse";
1160
+ data?: unknown;
2381
1161
  }>, z.ZodObject<Omit<{
2382
1162
  type: z.ZodLiteral<"kycCompletion">;
2383
1163
  identifier: z.ZodString;
@@ -2416,7 +1196,6 @@ export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
2416
1196
  data: z.ZodObject<{
2417
1197
  customerId: z.ZodString;
2418
1198
  scenarioExecutionId: z.ZodString;
2419
- /** The external customer id of the user, if provided it's used to de-duplicate users */
2420
1199
  status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
2421
1200
  results: z.ZodArray<z.ZodArray<z.ZodObject<{
2422
1201
  objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
@@ -2425,6 +1204,7 @@ export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
2425
1204
  address: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>>>;
2426
1205
  result: z.ZodObject<{
2427
1206
  result: z.ZodObject<{
1207
+ /** The blockchain id, mostly required, but some namespaces don't support it */
2428
1208
  is_valid: z.ZodBoolean;
2429
1209
  reasons: z.ZodArray<z.ZodUnknown, "many">;
2430
1210
  }, "strip", z.ZodTypeAny, {
@@ -2447,7 +1227,7 @@ export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
2447
1227
  reasons: unknown[];
2448
1228
  };
2449
1229
  executionId: string;
2450
- }>;
1230
+ }>; /** The workflow id to bind the user session to */
2451
1231
  executionId: z.ZodString;
2452
1232
  scenarioId: z.ZodString;
2453
1233
  }, "strip", z.ZodTypeAny, {
@@ -2578,7 +1358,7 @@ export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
2578
1358
  type: z.ZodString;
2579
1359
  thid: z.ZodOptional<z.ZodString>;
2580
1360
  body: z.ZodObject<{
2581
- callbackUrl: z.ZodString; /** The blockchain address to challenge */
1361
+ callbackUrl: z.ZodString;
2582
1362
  reason: z.ZodOptional<z.ZodString>;
2583
1363
  did_doc: z.ZodOptional<z.ZodAny>;
2584
1364
  message: z.ZodOptional<z.ZodString>;