@nexeraid/identity-schemas 1.12.16-dev → 1.12.17-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 (21) hide show
  1. package/dist/declarations/src/identity/challenge-query.schema.d.ts +158 -0
  2. package/dist/declarations/src/identity/challenge-query.schema.d.ts.map +1 -1
  3. package/dist/declarations/src/identity/identity-v2.schema.d.ts +1090 -160
  4. package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
  5. package/dist/{frontend-utilities.schema-6d0912b0.cjs.prod.js → frontend-utilities.schema-5c7e4938.cjs.prod.js} +1 -1
  6. package/dist/{frontend-utilities.schema-efc06daf.cjs.dev.js → frontend-utilities.schema-dfeb3391.cjs.dev.js} +1 -1
  7. package/dist/{frontend-utilities.schema-99db048a.esm.js → frontend-utilities.schema-f6f3eea6.esm.js} +1 -1
  8. package/dist/{identity-api.schema-bb419f4c.esm.js → identity-api.schema-8f4532a6.esm.js} +34 -2
  9. package/dist/{identity-api.schema-dc9a849c.cjs.dev.js → identity-api.schema-c28d229f.cjs.dev.js} +38 -1
  10. package/dist/{identity-api.schema-63e650ec.cjs.prod.js → identity-api.schema-f4f93e24.cjs.prod.js} +38 -1
  11. package/dist/nexeraid-identity-schemas.cjs.dev.js +7 -2
  12. package/dist/nexeraid-identity-schemas.cjs.prod.js +7 -2
  13. package/dist/nexeraid-identity-schemas.esm.js +3 -3
  14. package/dist/package.json +1 -1
  15. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +6 -1
  16. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +6 -1
  17. package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
  18. package/package.json +1 -1
  19. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
  20. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
  21. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
@@ -997,187 +997,1117 @@ export declare const GetCustomerStatusResponse: z.ZodObject<{
997
997
  data?: unknown;
998
998
  }>;
999
999
  export type GetCustomerStatusResponse = z.infer<typeof GetCustomerStatusResponse>;
1000
- export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
1001
- type: z.ZodLiteral<"identityAppLoaded">;
1000
+ export declare const VerificationBeginNotification: z.ZodObject<{
1001
+ type: z.ZodLiteral<"verificationBegin">;
1002
1002
  }, "strip", z.ZodTypeAny, {
1003
- type: "identityAppLoaded";
1003
+ type: "verificationBegin";
1004
1004
  }, {
1005
- type: "identityAppLoaded";
1006
- }>, z.ZodObject<{
1007
- type: z.ZodLiteral<"identityAppConfigured">;
1008
- data: z.ZodObject<{
1009
- auth: z.ZodObject<{
1010
- token: z.ZodString;
1005
+ type: "verificationBegin";
1006
+ }>;
1007
+ export type VerificationBeginNotification = z.infer<typeof VerificationBeginNotification>;
1008
+ export declare const VerificationCompleteNotification: z.ZodObject<{
1009
+ type: z.ZodLiteral<"verificationComplete">;
1010
+ data: z.ZodUnion<[z.ZodObject<{
1011
+ error: z.ZodNull;
1012
+ type: z.ZodLiteral<"onlineVerification">;
1013
+ verification: z.ZodObject<{
1014
+ customerId: z.ZodString;
1015
+ scenarioExecutionId: z.ZodString;
1016
+ status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1017
+ results: z.ZodArray<z.ZodArray<z.ZodObject<{
1018
+ objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1019
+ objectId: z.ZodString;
1020
+ name: z.ZodString;
1021
+ 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>]>>>;
1022
+ result: z.ZodObject<{
1023
+ result: z.ZodObject<{
1024
+ is_valid: z.ZodBoolean;
1025
+ reasons: z.ZodArray<z.ZodUnknown, "many">;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ is_valid: boolean;
1028
+ reasons: unknown[];
1029
+ }, {
1030
+ is_valid: boolean;
1031
+ reasons: unknown[];
1032
+ }>;
1033
+ executionId: z.ZodString;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ result: {
1036
+ is_valid: boolean;
1037
+ reasons: unknown[];
1038
+ };
1039
+ executionId: string;
1040
+ }, {
1041
+ result: {
1042
+ is_valid: boolean;
1043
+ reasons: unknown[];
1044
+ };
1045
+ executionId: string;
1046
+ }>;
1047
+ executionId: z.ZodString;
1048
+ scenarioId: z.ZodString;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ name: string;
1051
+ result: {
1052
+ result: {
1053
+ is_valid: boolean;
1054
+ reasons: unknown[];
1055
+ };
1056
+ executionId: string;
1057
+ };
1058
+ executionId: string;
1059
+ scenarioId: string;
1060
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1061
+ objectId: string;
1062
+ address?: string | null | undefined;
1063
+ }, {
1064
+ name: string;
1065
+ result: {
1066
+ result: {
1067
+ is_valid: boolean;
1068
+ reasons: unknown[];
1069
+ };
1070
+ executionId: string;
1071
+ };
1072
+ executionId: string;
1073
+ scenarioId: string;
1074
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1075
+ objectId: string;
1076
+ address?: string | null | undefined;
1077
+ }>, "many">, "many">;
1011
1078
  }, "strip", z.ZodTypeAny, {
1012
- token: string;
1079
+ status: "valid" | "unknown" | "not-valid" | "error";
1080
+ customerId: string;
1081
+ scenarioExecutionId: string;
1082
+ results: {
1083
+ name: string;
1084
+ result: {
1085
+ result: {
1086
+ is_valid: boolean;
1087
+ reasons: unknown[];
1088
+ };
1089
+ executionId: string;
1090
+ };
1091
+ executionId: string;
1092
+ scenarioId: string;
1093
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1094
+ objectId: string;
1095
+ address?: string | null | undefined;
1096
+ }[][];
1013
1097
  }, {
1014
- token: string;
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
+ }[][];
1015
1116
  }>;
1117
+ isVerified: z.ZodBoolean;
1016
1118
  }, "strip", z.ZodTypeAny, {
1017
- auth: {
1018
- token: string;
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
+ error: null;
1141
+ isVerified: boolean;
1142
+ }, {
1143
+ type: "onlineVerification";
1144
+ verification: {
1145
+ status: "valid" | "unknown" | "not-valid" | "error";
1146
+ customerId: string;
1147
+ scenarioExecutionId: string;
1148
+ results: {
1149
+ name: string;
1150
+ result: {
1151
+ result: {
1152
+ is_valid: boolean;
1153
+ reasons: unknown[];
1154
+ };
1155
+ executionId: string;
1156
+ };
1157
+ executionId: string;
1158
+ scenarioId: string;
1159
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1160
+ objectId: string;
1161
+ address?: string | null | undefined;
1162
+ }[][];
1163
+ };
1164
+ error: null;
1165
+ isVerified: boolean;
1166
+ }>, z.ZodObject<{
1167
+ error: z.ZodNull;
1168
+ type: z.ZodLiteral<"zkpVerification">;
1169
+ verification: z.ZodObject<{
1170
+ customerId: z.ZodString;
1171
+ scenarioExecutionId: z.ZodString;
1172
+ status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1173
+ results: z.ZodArray<z.ZodArray<z.ZodObject<{
1174
+ objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1175
+ objectId: z.ZodString;
1176
+ name: z.ZodString;
1177
+ 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>]>>>;
1178
+ result: z.ZodObject<{
1179
+ result: z.ZodObject<{
1180
+ is_valid: z.ZodBoolean;
1181
+ reasons: z.ZodArray<z.ZodUnknown, "many">;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ is_valid: boolean;
1184
+ reasons: unknown[];
1185
+ }, {
1186
+ is_valid: boolean;
1187
+ reasons: unknown[];
1188
+ }>;
1189
+ executionId: z.ZodString;
1190
+ }, "strip", z.ZodTypeAny, {
1191
+ result: {
1192
+ is_valid: boolean;
1193
+ reasons: unknown[];
1194
+ };
1195
+ executionId: string;
1196
+ }, {
1197
+ result: {
1198
+ is_valid: boolean;
1199
+ reasons: unknown[];
1200
+ };
1201
+ executionId: string;
1202
+ }>;
1203
+ executionId: z.ZodString;
1204
+ scenarioId: z.ZodString;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ name: string;
1207
+ result: {
1208
+ result: {
1209
+ is_valid: boolean;
1210
+ reasons: unknown[];
1211
+ };
1212
+ executionId: string;
1213
+ };
1214
+ executionId: string;
1215
+ scenarioId: string;
1216
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1217
+ objectId: string;
1218
+ address?: string | null | undefined;
1219
+ }, {
1220
+ name: string;
1221
+ result: {
1222
+ result: {
1223
+ is_valid: boolean;
1224
+ reasons: unknown[];
1225
+ };
1226
+ executionId: string;
1227
+ };
1228
+ executionId: string;
1229
+ scenarioId: string;
1230
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1231
+ objectId: string;
1232
+ address?: string | null | undefined;
1233
+ }>, "many">, "many">;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ status: "valid" | "unknown" | "not-valid" | "error";
1236
+ customerId: string;
1237
+ scenarioExecutionId: string;
1238
+ results: {
1239
+ name: string;
1240
+ result: {
1241
+ result: {
1242
+ is_valid: boolean;
1243
+ reasons: unknown[];
1244
+ };
1245
+ executionId: string;
1246
+ };
1247
+ executionId: string;
1248
+ scenarioId: string;
1249
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1250
+ objectId: string;
1251
+ address?: string | null | undefined;
1252
+ }[][];
1253
+ }, {
1254
+ status: "valid" | "unknown" | "not-valid" | "error";
1255
+ customerId: string;
1256
+ scenarioExecutionId: string;
1257
+ results: {
1258
+ name: string;
1259
+ result: {
1260
+ result: {
1261
+ is_valid: boolean;
1262
+ reasons: unknown[];
1263
+ };
1264
+ executionId: string;
1265
+ };
1266
+ executionId: string;
1267
+ scenarioId: string;
1268
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1269
+ objectId: string;
1270
+ address?: string | null | undefined;
1271
+ }[][];
1272
+ }>;
1273
+ isVerified: z.ZodBoolean;
1274
+ }, "strip", z.ZodTypeAny, {
1275
+ type: "zkpVerification";
1276
+ verification: {
1277
+ status: "valid" | "unknown" | "not-valid" | "error";
1278
+ customerId: string;
1279
+ scenarioExecutionId: string;
1280
+ results: {
1281
+ name: string;
1282
+ result: {
1283
+ result: {
1284
+ is_valid: boolean;
1285
+ reasons: unknown[];
1286
+ };
1287
+ executionId: string;
1288
+ };
1289
+ executionId: string;
1290
+ scenarioId: string;
1291
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1292
+ objectId: string;
1293
+ address?: string | null | undefined;
1294
+ }[][];
1295
+ };
1296
+ error: null;
1297
+ isVerified: boolean;
1298
+ }, {
1299
+ type: "zkpVerification";
1300
+ verification: {
1301
+ status: "valid" | "unknown" | "not-valid" | "error";
1302
+ customerId: string;
1303
+ scenarioExecutionId: string;
1304
+ results: {
1305
+ name: string;
1306
+ result: {
1307
+ result: {
1308
+ is_valid: boolean;
1309
+ reasons: unknown[];
1310
+ };
1311
+ executionId: string;
1312
+ };
1313
+ executionId: string;
1314
+ scenarioId: string;
1315
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1316
+ objectId: string;
1317
+ address?: string | null | undefined;
1318
+ }[][];
1319
+ };
1320
+ error: null;
1321
+ isVerified: boolean;
1322
+ }>, z.ZodObject<{
1323
+ error: z.ZodNull;
1324
+ type: z.ZodLiteral<"onChainVerification">;
1325
+ verificationHashes: z.ZodArray<z.ZodString, "many">;
1326
+ isVerified: z.ZodBoolean;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ type: "onChainVerification";
1329
+ error: null;
1330
+ isVerified: boolean;
1331
+ verificationHashes: string[];
1332
+ }, {
1333
+ type: "onChainVerification";
1334
+ error: null;
1335
+ isVerified: boolean;
1336
+ verificationHashes: string[];
1337
+ }>, z.ZodObject<{
1338
+ error: z.ZodUnknown;
1339
+ verification: z.ZodNull;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ verification: null;
1342
+ error?: unknown;
1343
+ }, {
1344
+ verification: null;
1345
+ error?: unknown;
1346
+ }>]>;
1347
+ }, "strip", z.ZodTypeAny, {
1348
+ type: "verificationComplete";
1349
+ data: {
1350
+ type: "onlineVerification";
1351
+ verification: {
1352
+ status: "valid" | "unknown" | "not-valid" | "error";
1353
+ customerId: string;
1354
+ scenarioExecutionId: string;
1355
+ results: {
1356
+ name: string;
1357
+ result: {
1358
+ result: {
1359
+ is_valid: boolean;
1360
+ reasons: unknown[];
1361
+ };
1362
+ executionId: string;
1363
+ };
1364
+ executionId: string;
1365
+ scenarioId: string;
1366
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1367
+ objectId: string;
1368
+ address?: string | null | undefined;
1369
+ }[][];
1370
+ };
1371
+ error: null;
1372
+ isVerified: boolean;
1373
+ } | {
1374
+ type: "zkpVerification";
1375
+ verification: {
1376
+ status: "valid" | "unknown" | "not-valid" | "error";
1377
+ customerId: string;
1378
+ scenarioExecutionId: string;
1379
+ results: {
1380
+ name: string;
1381
+ result: {
1382
+ result: {
1383
+ is_valid: boolean;
1384
+ reasons: unknown[];
1385
+ };
1386
+ executionId: string;
1387
+ };
1388
+ executionId: string;
1389
+ scenarioId: string;
1390
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1391
+ objectId: string;
1392
+ address?: string | null | undefined;
1393
+ }[][];
1394
+ };
1395
+ error: null;
1396
+ isVerified: boolean;
1397
+ } | {
1398
+ type: "onChainVerification";
1399
+ error: null;
1400
+ isVerified: boolean;
1401
+ verificationHashes: string[];
1402
+ } | {
1403
+ verification: null;
1404
+ error?: unknown;
1405
+ };
1406
+ }, {
1407
+ type: "verificationComplete";
1408
+ data: {
1409
+ type: "onlineVerification";
1410
+ verification: {
1411
+ status: "valid" | "unknown" | "not-valid" | "error";
1412
+ customerId: string;
1413
+ scenarioExecutionId: string;
1414
+ results: {
1415
+ name: string;
1416
+ result: {
1417
+ result: {
1418
+ is_valid: boolean;
1419
+ reasons: unknown[];
1420
+ };
1421
+ executionId: string;
1422
+ };
1423
+ executionId: string;
1424
+ scenarioId: string;
1425
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1426
+ objectId: string;
1427
+ address?: string | null | undefined;
1428
+ }[][];
1429
+ };
1430
+ error: null;
1431
+ isVerified: boolean;
1432
+ } | {
1433
+ type: "zkpVerification";
1434
+ verification: {
1435
+ status: "valid" | "unknown" | "not-valid" | "error";
1436
+ customerId: string;
1437
+ scenarioExecutionId: string;
1438
+ results: {
1439
+ name: string;
1440
+ result: {
1441
+ result: {
1442
+ is_valid: boolean;
1443
+ reasons: unknown[];
1444
+ };
1445
+ executionId: string;
1446
+ };
1447
+ executionId: string;
1448
+ scenarioId: string;
1449
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1450
+ objectId: string;
1451
+ address?: string | null | undefined;
1452
+ }[][];
1453
+ };
1454
+ error: null;
1455
+ isVerified: boolean;
1456
+ } | {
1457
+ type: "onChainVerification";
1458
+ error: null;
1459
+ isVerified: boolean;
1460
+ verificationHashes: string[];
1461
+ } | {
1462
+ verification: null;
1463
+ error?: unknown;
1464
+ };
1465
+ }>;
1466
+ export type VerificationCompleteNotification = z.infer<typeof VerificationCompleteNotification>;
1467
+ export declare const IdentityAppMessage: z.ZodUnion<[z.ZodObject<{
1468
+ type: z.ZodLiteral<"identityAppLoaded">;
1469
+ }, "strip", z.ZodTypeAny, {
1470
+ type: "identityAppLoaded";
1471
+ }, {
1472
+ type: "identityAppLoaded";
1473
+ }>, z.ZodObject<{
1474
+ type: z.ZodLiteral<"identityAppConfigured">;
1475
+ data: z.ZodObject<{
1476
+ auth: z.ZodObject<{
1477
+ token: z.ZodString;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ token: string;
1480
+ }, {
1481
+ token: string;
1482
+ }>;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ auth: {
1485
+ token: string;
1486
+ };
1487
+ }, {
1488
+ auth: {
1489
+ token: string;
1490
+ };
1491
+ }>;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ type: "identityAppConfigured";
1494
+ data: {
1495
+ auth: {
1496
+ token: string;
1497
+ };
1498
+ };
1499
+ }, {
1500
+ type: "identityAppConfigured";
1501
+ data: {
1502
+ auth: {
1503
+ token: string;
1504
+ };
1505
+ };
1506
+ }>, z.ZodObject<{
1507
+ type: z.ZodLiteral<"walletSignRequest">;
1508
+ data: z.ZodObject<{
1509
+ message: z.ZodString;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ message: string;
1512
+ }, {
1513
+ message: string;
1514
+ }>;
1515
+ }, "strip", z.ZodTypeAny, {
1516
+ type: "walletSignRequest";
1517
+ data: {
1518
+ message: string;
1519
+ };
1520
+ }, {
1521
+ type: "walletSignRequest";
1522
+ data: {
1523
+ message: string;
1524
+ };
1525
+ }>, z.ZodObject<{
1526
+ type: z.ZodLiteral<"txAuthDataSignatureResponse">;
1527
+ data: z.ZodUnion<[z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1528
+ isAuthorized: z.ZodLiteral<true>;
1529
+ signature: z.ZodEffects<z.ZodString, string, string>;
1530
+ payload: z.ZodString;
1531
+ blockExpiration: z.ZodNumber;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ signature: string;
1534
+ blockExpiration: number;
1535
+ isAuthorized: true;
1536
+ payload: string;
1537
+ }, {
1538
+ signature: string;
1539
+ blockExpiration: number;
1540
+ isAuthorized: true;
1541
+ payload: string;
1542
+ }>, z.ZodObject<{
1543
+ isAuthorized: z.ZodLiteral<false>;
1544
+ errorMessage: z.ZodAny;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ isAuthorized: false;
1547
+ errorMessage?: any;
1548
+ }, {
1549
+ isAuthorized: false;
1550
+ errorMessage?: any;
1551
+ }>]>, z.ZodObject<{
1552
+ namespace: z.ZodLiteral<"eip155">;
1553
+ userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ namespace: "eip155";
1556
+ userAddress: `0x${string}`;
1557
+ }, {
1558
+ namespace: "eip155";
1559
+ userAddress: string;
1560
+ }>>, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1561
+ isAuthorized: z.ZodLiteral<true>;
1562
+ signature: z.ZodEffects<z.ZodString, `edsig${string}`, string>;
1563
+ blockExpiration: z.ZodNumber;
1564
+ }, "strip", z.ZodTypeAny, {
1565
+ signature: `edsig${string}`;
1566
+ blockExpiration: number;
1567
+ isAuthorized: true;
1568
+ }, {
1569
+ signature: string;
1570
+ blockExpiration: number;
1571
+ isAuthorized: true;
1572
+ }>, z.ZodObject<{
1573
+ isAuthorized: z.ZodLiteral<false>;
1574
+ errorMessage: z.ZodAny;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ isAuthorized: false;
1577
+ errorMessage?: any;
1578
+ }, {
1579
+ isAuthorized: false;
1580
+ errorMessage?: any;
1581
+ }>]>, z.ZodObject<{
1582
+ namespace: z.ZodLiteral<"tezos">;
1583
+ userAddress: z.ZodEffects<z.ZodString, `tz${string}`, string>;
1584
+ }, "strip", z.ZodTypeAny, {
1585
+ namespace: "tezos";
1586
+ userAddress: `tz${string}`;
1587
+ }, {
1588
+ namespace: "tezos";
1589
+ userAddress: string;
1590
+ }>>]>;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ type: "txAuthDataSignatureResponse";
1593
+ data: (({
1594
+ signature: string;
1595
+ blockExpiration: number;
1596
+ isAuthorized: true;
1597
+ payload: string;
1598
+ } | {
1599
+ isAuthorized: false;
1600
+ errorMessage?: any;
1601
+ }) & {
1602
+ namespace: "eip155";
1603
+ userAddress: `0x${string}`;
1604
+ }) | (({
1605
+ signature: `edsig${string}`;
1606
+ blockExpiration: number;
1607
+ isAuthorized: true;
1608
+ } | {
1609
+ isAuthorized: false;
1610
+ errorMessage?: any;
1611
+ }) & {
1612
+ namespace: "tezos";
1613
+ userAddress: `tz${string}`;
1614
+ });
1615
+ }, {
1616
+ type: "txAuthDataSignatureResponse";
1617
+ data: (({
1618
+ signature: string;
1619
+ blockExpiration: number;
1620
+ isAuthorized: true;
1621
+ payload: string;
1622
+ } | {
1623
+ isAuthorized: false;
1624
+ errorMessage?: any;
1625
+ }) & {
1626
+ namespace: "eip155";
1627
+ userAddress: string;
1628
+ }) | (({
1629
+ signature: string;
1630
+ blockExpiration: number;
1631
+ isAuthorized: true;
1632
+ } | {
1633
+ isAuthorized: false;
1634
+ errorMessage?: any;
1635
+ }) & {
1636
+ namespace: "tezos";
1637
+ userAddress: string;
1638
+ });
1639
+ }>, z.ZodObject<{
1640
+ type: z.ZodLiteral<"getCustomerStatusResponse">;
1641
+ 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]>;
1642
+ }, "strip", z.ZodTypeAny, {
1643
+ type: "getCustomerStatusResponse";
1644
+ data: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | null;
1645
+ }, {
1646
+ type: "getCustomerStatusResponse";
1647
+ data?: unknown;
1648
+ }>, z.ZodObject<{
1649
+ type: z.ZodLiteral<"verificationBegin">;
1650
+ }, "strip", z.ZodTypeAny, {
1651
+ type: "verificationBegin";
1652
+ }, {
1653
+ type: "verificationBegin";
1654
+ }>, z.ZodObject<{
1655
+ type: z.ZodLiteral<"verificationComplete">;
1656
+ data: z.ZodUnion<[z.ZodObject<{
1657
+ error: z.ZodNull;
1658
+ type: z.ZodLiteral<"onlineVerification">;
1659
+ verification: z.ZodObject<{
1660
+ customerId: z.ZodString;
1661
+ scenarioExecutionId: z.ZodString;
1662
+ status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1663
+ results: z.ZodArray<z.ZodArray<z.ZodObject<{
1664
+ objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1665
+ objectId: z.ZodString;
1666
+ name: z.ZodString;
1667
+ 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>]>>>;
1668
+ result: z.ZodObject<{
1669
+ result: z.ZodObject<{
1670
+ is_valid: z.ZodBoolean;
1671
+ reasons: z.ZodArray<z.ZodUnknown, "many">;
1672
+ }, "strip", z.ZodTypeAny, {
1673
+ is_valid: boolean;
1674
+ reasons: unknown[];
1675
+ }, {
1676
+ is_valid: boolean;
1677
+ reasons: unknown[];
1678
+ }>;
1679
+ executionId: z.ZodString;
1680
+ }, "strip", z.ZodTypeAny, {
1681
+ result: {
1682
+ is_valid: boolean;
1683
+ reasons: unknown[];
1684
+ };
1685
+ executionId: string;
1686
+ }, {
1687
+ result: {
1688
+ is_valid: boolean;
1689
+ reasons: unknown[];
1690
+ };
1691
+ executionId: string;
1692
+ }>;
1693
+ executionId: z.ZodString;
1694
+ scenarioId: z.ZodString;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ name: string;
1697
+ result: {
1698
+ result: {
1699
+ is_valid: boolean;
1700
+ reasons: unknown[];
1701
+ };
1702
+ executionId: string;
1703
+ };
1704
+ executionId: string;
1705
+ scenarioId: string;
1706
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1707
+ objectId: string;
1708
+ address?: string | null | undefined;
1709
+ }, {
1710
+ name: string;
1711
+ result: {
1712
+ result: {
1713
+ is_valid: boolean;
1714
+ reasons: unknown[];
1715
+ };
1716
+ executionId: string;
1717
+ };
1718
+ executionId: string;
1719
+ scenarioId: string;
1720
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1721
+ objectId: string;
1722
+ address?: string | null | undefined;
1723
+ }>, "many">, "many">;
1724
+ }, "strip", z.ZodTypeAny, {
1725
+ status: "valid" | "unknown" | "not-valid" | "error";
1726
+ customerId: string;
1727
+ scenarioExecutionId: string;
1728
+ results: {
1729
+ name: string;
1730
+ result: {
1731
+ result: {
1732
+ is_valid: boolean;
1733
+ reasons: unknown[];
1734
+ };
1735
+ executionId: string;
1736
+ };
1737
+ executionId: string;
1738
+ scenarioId: string;
1739
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1740
+ objectId: string;
1741
+ address?: string | null | undefined;
1742
+ }[][];
1743
+ }, {
1744
+ status: "valid" | "unknown" | "not-valid" | "error";
1745
+ customerId: string;
1746
+ scenarioExecutionId: string;
1747
+ results: {
1748
+ name: string;
1749
+ result: {
1750
+ result: {
1751
+ is_valid: boolean;
1752
+ reasons: unknown[];
1753
+ };
1754
+ executionId: string;
1755
+ };
1756
+ executionId: string;
1757
+ scenarioId: string;
1758
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1759
+ objectId: string;
1760
+ address?: string | null | undefined;
1761
+ }[][];
1762
+ }>;
1763
+ isVerified: z.ZodBoolean;
1764
+ }, "strip", z.ZodTypeAny, {
1765
+ type: "onlineVerification";
1766
+ verification: {
1767
+ status: "valid" | "unknown" | "not-valid" | "error";
1768
+ customerId: string;
1769
+ scenarioExecutionId: string;
1770
+ results: {
1771
+ name: string;
1772
+ result: {
1773
+ result: {
1774
+ is_valid: boolean;
1775
+ reasons: unknown[];
1776
+ };
1777
+ executionId: string;
1778
+ };
1779
+ executionId: string;
1780
+ scenarioId: string;
1781
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1782
+ objectId: string;
1783
+ address?: string | null | undefined;
1784
+ }[][];
1785
+ };
1786
+ error: null;
1787
+ isVerified: boolean;
1788
+ }, {
1789
+ type: "onlineVerification";
1790
+ verification: {
1791
+ status: "valid" | "unknown" | "not-valid" | "error";
1792
+ customerId: string;
1793
+ scenarioExecutionId: string;
1794
+ results: {
1795
+ name: string;
1796
+ result: {
1797
+ result: {
1798
+ is_valid: boolean;
1799
+ reasons: unknown[];
1800
+ };
1801
+ executionId: string;
1802
+ };
1803
+ executionId: string;
1804
+ scenarioId: string;
1805
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1806
+ objectId: string;
1807
+ address?: string | null | undefined;
1808
+ }[][];
1809
+ };
1810
+ error: null;
1811
+ isVerified: boolean;
1812
+ }>, z.ZodObject<{
1813
+ error: z.ZodNull;
1814
+ type: z.ZodLiteral<"zkpVerification">;
1815
+ verification: z.ZodObject<{
1816
+ customerId: z.ZodString;
1817
+ scenarioExecutionId: z.ZodString;
1818
+ status: z.ZodEnum<["valid", "not-valid", "error", "unknown"]>;
1819
+ results: z.ZodArray<z.ZodArray<z.ZodObject<{
1820
+ objectType: z.ZodEnum<["ChallengeQuery", "OnChainZKP", "OffChainZKP"]>;
1821
+ objectId: z.ZodString;
1822
+ name: z.ZodString;
1823
+ 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>]>>>;
1824
+ result: z.ZodObject<{
1825
+ result: z.ZodObject<{
1826
+ is_valid: z.ZodBoolean;
1827
+ reasons: z.ZodArray<z.ZodUnknown, "many">;
1828
+ }, "strip", z.ZodTypeAny, {
1829
+ is_valid: boolean;
1830
+ reasons: unknown[];
1831
+ }, {
1832
+ is_valid: boolean;
1833
+ reasons: unknown[];
1834
+ }>;
1835
+ executionId: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ result: {
1838
+ is_valid: boolean;
1839
+ reasons: unknown[];
1840
+ };
1841
+ executionId: string;
1842
+ }, {
1843
+ result: {
1844
+ is_valid: boolean;
1845
+ reasons: unknown[];
1846
+ };
1847
+ executionId: string;
1848
+ }>;
1849
+ executionId: z.ZodString;
1850
+ scenarioId: z.ZodString;
1851
+ }, "strip", z.ZodTypeAny, {
1852
+ name: string;
1853
+ result: {
1854
+ result: {
1855
+ is_valid: boolean;
1856
+ reasons: unknown[];
1857
+ };
1858
+ executionId: string;
1859
+ };
1860
+ executionId: string;
1861
+ scenarioId: string;
1862
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1863
+ objectId: string;
1864
+ address?: string | null | undefined;
1865
+ }, {
1866
+ name: string;
1867
+ result: {
1868
+ result: {
1869
+ is_valid: boolean;
1870
+ reasons: unknown[];
1871
+ };
1872
+ executionId: string;
1873
+ };
1874
+ executionId: string;
1875
+ scenarioId: string;
1876
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1877
+ objectId: string;
1878
+ address?: string | null | undefined;
1879
+ }>, "many">, "many">;
1880
+ }, "strip", z.ZodTypeAny, {
1881
+ status: "valid" | "unknown" | "not-valid" | "error";
1882
+ customerId: string;
1883
+ scenarioExecutionId: string;
1884
+ results: {
1885
+ name: string;
1886
+ result: {
1887
+ result: {
1888
+ is_valid: boolean;
1889
+ reasons: unknown[];
1890
+ };
1891
+ executionId: string;
1892
+ };
1893
+ executionId: string;
1894
+ scenarioId: string;
1895
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1896
+ objectId: string;
1897
+ address?: string | null | undefined;
1898
+ }[][];
1899
+ }, {
1900
+ status: "valid" | "unknown" | "not-valid" | "error";
1901
+ customerId: string;
1902
+ scenarioExecutionId: string;
1903
+ results: {
1904
+ name: string;
1905
+ result: {
1906
+ result: {
1907
+ is_valid: boolean;
1908
+ reasons: unknown[];
1909
+ };
1910
+ executionId: string;
1911
+ };
1912
+ executionId: string;
1913
+ scenarioId: string;
1914
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1915
+ objectId: string;
1916
+ address?: string | null | undefined;
1917
+ }[][];
1918
+ }>;
1919
+ isVerified: z.ZodBoolean;
1920
+ }, "strip", z.ZodTypeAny, {
1921
+ type: "zkpVerification";
1922
+ verification: {
1923
+ status: "valid" | "unknown" | "not-valid" | "error";
1924
+ customerId: string;
1925
+ scenarioExecutionId: string;
1926
+ results: {
1927
+ name: string;
1928
+ result: {
1929
+ result: {
1930
+ is_valid: boolean;
1931
+ reasons: unknown[];
1932
+ };
1933
+ executionId: string;
1934
+ };
1935
+ executionId: string;
1936
+ scenarioId: string;
1937
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1938
+ objectId: string;
1939
+ address?: string | null | undefined;
1940
+ }[][];
1019
1941
  };
1942
+ error: null;
1943
+ isVerified: boolean;
1020
1944
  }, {
1021
- auth: {
1022
- token: string;
1023
- };
1024
- }>;
1025
- }, "strip", z.ZodTypeAny, {
1026
- type: "identityAppConfigured";
1027
- data: {
1028
- auth: {
1029
- token: string;
1030
- };
1031
- };
1032
- }, {
1033
- type: "identityAppConfigured";
1034
- data: {
1035
- auth: {
1036
- token: string;
1945
+ type: "zkpVerification";
1946
+ verification: {
1947
+ status: "valid" | "unknown" | "not-valid" | "error";
1948
+ customerId: string;
1949
+ scenarioExecutionId: string;
1950
+ results: {
1951
+ name: string;
1952
+ result: {
1953
+ result: {
1954
+ is_valid: boolean;
1955
+ reasons: unknown[];
1956
+ };
1957
+ executionId: string;
1958
+ };
1959
+ executionId: string;
1960
+ scenarioId: string;
1961
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
1962
+ objectId: string;
1963
+ address?: string | null | undefined;
1964
+ }[][];
1037
1965
  };
1038
- };
1039
- }>, z.ZodObject<{
1040
- type: z.ZodLiteral<"walletSignRequest">;
1041
- data: z.ZodObject<{
1042
- message: z.ZodString;
1043
- }, "strip", z.ZodTypeAny, {
1044
- message: string;
1045
- }, {
1046
- message: string;
1047
- }>;
1048
- }, "strip", z.ZodTypeAny, {
1049
- type: "walletSignRequest";
1050
- data: {
1051
- message: string;
1052
- };
1053
- }, {
1054
- type: "walletSignRequest";
1055
- data: {
1056
- message: string;
1057
- };
1058
- }>, z.ZodObject<{
1059
- type: z.ZodLiteral<"txAuthDataSignatureResponse">;
1060
- data: z.ZodUnion<[z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1061
- isAuthorized: z.ZodLiteral<true>;
1062
- signature: z.ZodEffects<z.ZodString, string, string>;
1063
- payload: z.ZodString;
1064
- blockExpiration: z.ZodNumber;
1065
- }, "strip", z.ZodTypeAny, {
1066
- signature: string;
1067
- blockExpiration: number;
1068
- isAuthorized: true;
1069
- payload: string;
1070
- }, {
1071
- signature: string;
1072
- blockExpiration: number;
1073
- isAuthorized: true;
1074
- payload: string;
1966
+ error: null;
1967
+ isVerified: boolean;
1075
1968
  }>, z.ZodObject<{
1076
- isAuthorized: z.ZodLiteral<false>;
1077
- errorMessage: z.ZodAny;
1078
- }, "strip", z.ZodTypeAny, {
1079
- isAuthorized: false;
1080
- errorMessage?: any;
1081
- }, {
1082
- isAuthorized: false;
1083
- errorMessage?: any;
1084
- }>]>, z.ZodObject<{
1085
- namespace: z.ZodLiteral<"eip155">;
1086
- userAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
1087
- }, "strip", z.ZodTypeAny, {
1088
- namespace: "eip155";
1089
- userAddress: `0x${string}`;
1090
- }, {
1091
- namespace: "eip155";
1092
- userAddress: string;
1093
- }>>, z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1094
- isAuthorized: z.ZodLiteral<true>;
1095
- signature: z.ZodEffects<z.ZodString, `edsig${string}`, string>;
1096
- blockExpiration: z.ZodNumber;
1969
+ error: z.ZodNull;
1970
+ type: z.ZodLiteral<"onChainVerification">;
1971
+ verificationHashes: z.ZodArray<z.ZodString, "many">;
1972
+ isVerified: z.ZodBoolean;
1097
1973
  }, "strip", z.ZodTypeAny, {
1098
- signature: `edsig${string}`;
1099
- blockExpiration: number;
1100
- isAuthorized: true;
1974
+ type: "onChainVerification";
1975
+ error: null;
1976
+ isVerified: boolean;
1977
+ verificationHashes: string[];
1101
1978
  }, {
1102
- signature: string;
1103
- blockExpiration: number;
1104
- isAuthorized: true;
1979
+ type: "onChainVerification";
1980
+ error: null;
1981
+ isVerified: boolean;
1982
+ verificationHashes: string[];
1105
1983
  }>, z.ZodObject<{
1106
- isAuthorized: z.ZodLiteral<false>;
1107
- errorMessage: z.ZodAny;
1108
- }, "strip", z.ZodTypeAny, {
1109
- isAuthorized: false;
1110
- errorMessage?: any;
1111
- }, {
1112
- isAuthorized: false;
1113
- errorMessage?: any;
1114
- }>]>, z.ZodObject<{
1115
- namespace: z.ZodLiteral<"tezos">;
1116
- userAddress: z.ZodEffects<z.ZodString, `tz${string}`, string>;
1984
+ error: z.ZodUnknown;
1985
+ verification: z.ZodNull;
1117
1986
  }, "strip", z.ZodTypeAny, {
1118
- namespace: "tezos";
1119
- userAddress: `tz${string}`;
1987
+ verification: null;
1988
+ error?: unknown;
1120
1989
  }, {
1121
- namespace: "tezos";
1122
- userAddress: string;
1123
- }>>]>;
1990
+ verification: null;
1991
+ error?: unknown;
1992
+ }>]>;
1124
1993
  }, "strip", z.ZodTypeAny, {
1125
- type: "txAuthDataSignatureResponse";
1126
- data: (({
1127
- signature: string;
1128
- blockExpiration: number;
1129
- isAuthorized: true;
1130
- payload: string;
1994
+ type: "verificationComplete";
1995
+ data: {
1996
+ type: "onlineVerification";
1997
+ verification: {
1998
+ status: "valid" | "unknown" | "not-valid" | "error";
1999
+ customerId: string;
2000
+ scenarioExecutionId: string;
2001
+ results: {
2002
+ name: string;
2003
+ result: {
2004
+ result: {
2005
+ is_valid: boolean;
2006
+ reasons: unknown[];
2007
+ };
2008
+ executionId: string;
2009
+ };
2010
+ executionId: string;
2011
+ scenarioId: string;
2012
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2013
+ objectId: string;
2014
+ address?: string | null | undefined;
2015
+ }[][];
2016
+ };
2017
+ error: null;
2018
+ isVerified: boolean;
1131
2019
  } | {
1132
- isAuthorized: false;
1133
- errorMessage?: any;
1134
- }) & {
1135
- namespace: "eip155";
1136
- userAddress: `0x${string}`;
1137
- }) | (({
1138
- signature: `edsig${string}`;
1139
- blockExpiration: number;
1140
- isAuthorized: true;
2020
+ type: "zkpVerification";
2021
+ verification: {
2022
+ status: "valid" | "unknown" | "not-valid" | "error";
2023
+ customerId: string;
2024
+ scenarioExecutionId: string;
2025
+ results: {
2026
+ name: string;
2027
+ result: {
2028
+ result: {
2029
+ is_valid: boolean;
2030
+ reasons: unknown[];
2031
+ };
2032
+ executionId: string;
2033
+ };
2034
+ executionId: string;
2035
+ scenarioId: string;
2036
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2037
+ objectId: string;
2038
+ address?: string | null | undefined;
2039
+ }[][];
2040
+ };
2041
+ error: null;
2042
+ isVerified: boolean;
1141
2043
  } | {
1142
- isAuthorized: false;
1143
- errorMessage?: any;
1144
- }) & {
1145
- namespace: "tezos";
1146
- userAddress: `tz${string}`;
1147
- });
2044
+ type: "onChainVerification";
2045
+ error: null;
2046
+ isVerified: boolean;
2047
+ verificationHashes: string[];
2048
+ } | {
2049
+ verification: null;
2050
+ error?: unknown;
2051
+ };
1148
2052
  }, {
1149
- type: "txAuthDataSignatureResponse";
1150
- data: (({
1151
- signature: string;
1152
- blockExpiration: number;
1153
- isAuthorized: true;
1154
- payload: string;
2053
+ type: "verificationComplete";
2054
+ data: {
2055
+ type: "onlineVerification";
2056
+ verification: {
2057
+ status: "valid" | "unknown" | "not-valid" | "error";
2058
+ customerId: string;
2059
+ scenarioExecutionId: string;
2060
+ results: {
2061
+ name: string;
2062
+ result: {
2063
+ result: {
2064
+ is_valid: boolean;
2065
+ reasons: unknown[];
2066
+ };
2067
+ executionId: string;
2068
+ };
2069
+ executionId: string;
2070
+ scenarioId: string;
2071
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2072
+ objectId: string;
2073
+ address?: string | null | undefined;
2074
+ }[][];
2075
+ };
2076
+ error: null;
2077
+ isVerified: boolean;
1155
2078
  } | {
1156
- isAuthorized: false;
1157
- errorMessage?: any;
1158
- }) & {
1159
- namespace: "eip155";
1160
- userAddress: string;
1161
- }) | (({
1162
- signature: string;
1163
- blockExpiration: number;
1164
- isAuthorized: true;
2079
+ type: "zkpVerification";
2080
+ verification: {
2081
+ status: "valid" | "unknown" | "not-valid" | "error";
2082
+ customerId: string;
2083
+ scenarioExecutionId: string;
2084
+ results: {
2085
+ name: string;
2086
+ result: {
2087
+ result: {
2088
+ is_valid: boolean;
2089
+ reasons: unknown[];
2090
+ };
2091
+ executionId: string;
2092
+ };
2093
+ executionId: string;
2094
+ scenarioId: string;
2095
+ objectType: "ChallengeQuery" | "OnChainZKP" | "OffChainZKP";
2096
+ objectId: string;
2097
+ address?: string | null | undefined;
2098
+ }[][];
2099
+ };
2100
+ error: null;
2101
+ isVerified: boolean;
1165
2102
  } | {
1166
- isAuthorized: false;
1167
- errorMessage?: any;
1168
- }) & {
1169
- namespace: "tezos";
1170
- userAddress: string;
1171
- });
1172
- }>, z.ZodObject<{
1173
- type: z.ZodLiteral<"getCustomerStatusResponse">;
1174
- 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]>;
1175
- }, "strip", z.ZodTypeAny, {
1176
- type: "getCustomerStatusResponse";
1177
- data: "Active" | "Rejected" | "Dormant" | "To be reviewed" | "Failed" | "Escalated" | "Terminated" | "No status" | null;
1178
- }, {
1179
- type: "getCustomerStatusResponse";
1180
- data?: unknown;
2103
+ type: "onChainVerification";
2104
+ error: null;
2105
+ isVerified: boolean;
2106
+ verificationHashes: string[];
2107
+ } | {
2108
+ verification: null;
2109
+ error?: unknown;
2110
+ };
1181
2111
  }>, z.ZodObject<Omit<{
1182
2112
  type: z.ZodLiteral<"kycCompletion">;
1183
2113
  identifier: z.ZodString;