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