@nexeraid/identity-schemas 2.6.0-dev → 2.8.0-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/{customers.schema-25c9bc0a.esm.js → customers.schema-0bfe7ed2.esm.js} +1 -1
  2. package/dist/{customers.schema-7ac300ea.cjs.dev.js → customers.schema-1bf4fe64.cjs.dev.js} +1 -1
  3. package/dist/{customers.schema-a484549e.cjs.prod.js → customers.schema-80e163e9.cjs.prod.js} +1 -1
  4. package/dist/declarations/src/identity/app-requests.schema.d.ts +109 -104
  5. package/dist/declarations/src/identity/app-requests.schema.d.ts.map +1 -1
  6. package/dist/declarations/src/identity/identity-v2.schema.d.ts +25 -24
  7. package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
  8. package/dist/declarations/src/identity/index.d.ts +1 -2
  9. package/dist/declarations/src/identity/index.d.ts.map +1 -1
  10. package/dist/declarations/src/identity/kyc.schema.d.ts +31 -194
  11. package/dist/declarations/src/identity/kyc.schema.d.ts.map +1 -1
  12. package/dist/declarations/src/identity/query.schema.d.ts +178 -0
  13. package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
  14. package/dist/declarations/src/identity/scenario.schema.d.ts +1180 -0
  15. package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -0
  16. package/dist/declarations/src/identity/zkps.schema.d.ts +0 -744
  17. package/dist/declarations/src/identity/zkps.schema.d.ts.map +1 -1
  18. package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts +108 -108
  19. package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts +13 -13
  20. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +63 -60
  21. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -1
  22. package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +40 -40
  23. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +88 -88
  24. package/dist/declarations/src/transaction.schema.d.ts +6 -0
  25. package/dist/declarations/src/transaction.schema.d.ts.map +1 -1
  26. package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +407 -407
  27. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +3102 -3102
  28. package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts +2 -2
  29. package/dist/{frontend-utilities.schema-2ad117b9.cjs.prod.js → frontend-utilities.schema-63c0c3ec.cjs.prod.js} +1 -1
  30. package/dist/{frontend-utilities.schema-a0cf242f.cjs.dev.js → frontend-utilities.schema-7ec52bb3.cjs.dev.js} +1 -1
  31. package/dist/{frontend-utilities.schema-3e61e949.esm.js → frontend-utilities.schema-c53dbf36.esm.js} +1 -1
  32. package/dist/{identity-api.schema-08b1e63d.cjs.dev.js → identity-api.schema-725ecd1d.cjs.prod.js} +357 -437
  33. package/dist/{identity-api.schema-a01dae12.esm.js → identity-api.schema-a3f556f3.esm.js} +351 -424
  34. package/dist/{identity-api.schema-1b5f26e1.cjs.prod.js → identity-api.schema-e1fe9b0e.cjs.dev.js} +357 -437
  35. package/dist/nexeraid-identity-schemas.cjs.dev.js +14 -17
  36. package/dist/nexeraid-identity-schemas.cjs.prod.js +14 -17
  37. package/dist/nexeraid-identity-schemas.esm.js +4 -4
  38. package/dist/package.json +1 -1
  39. package/dist/{transaction.schema-90e6af49.cjs.prod.js → transaction.schema-1534b40f.cjs.prod.js} +9 -1
  40. package/dist/{transaction.schema-2107095b.esm.js → transaction.schema-221579a3.esm.js} +6 -2
  41. package/dist/{transaction.schema-92a59117.cjs.dev.js → transaction.schema-4195655f.cjs.dev.js} +9 -1
  42. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +8 -15
  43. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +8 -15
  44. package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
  45. package/package.json +1 -1
  46. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +2 -2
  47. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +2 -2
  48. package/providers/dist/nexeraid-identity-schemas-providers.esm.js +2 -2
  49. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
  50. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
  51. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
  52. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +4 -4
  53. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +4 -4
  54. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +4 -4
  55. package/dist/declarations/src/identity/challenge-query.schema.d.ts +0 -1246
  56. package/dist/declarations/src/identity/challenge-query.schema.d.ts.map +0 -1
  57. package/dist/declarations/src/identity/execute-scenario.schema.d.ts +0 -136
  58. package/dist/declarations/src/identity/execute-scenario.schema.d.ts.map +0 -1
@@ -2076,207 +2076,136 @@ function _toConsumableArray(r) {
2076
2076
  return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
2077
2077
  }
2078
2078
 
2079
- var StoragePrefix = "storage";
2080
- var IdentityPrefix = "identity";
2081
- var EmailPrefix = "email";
2082
- var WalletPrefix = "wallet";
2083
- var AppPrefix = "app";
2084
- var ChallengePrefix = "challenge";
2085
- var TestPrefix = "test";
2086
- var CustomerScreeningPrefix = "cstscr";
2087
- var TagPrefix = "tag";
2088
-
2089
- // TMS
2090
- var TagsToTransactionReviewsPrefix = "ttxr";
2091
- var TransactionAddressesPrefix = "txa";
2092
- var TransactionPrefix = "tx";
2093
- var TransactionFeesPrefix = "txf";
2094
- var TransactionReviewPrefix = "txrev";
2095
- var TransactionPartiesPrefix = "txpar";
2096
- var TransactionInfosPrefix = "txi";
2097
- var TransactionExtractedInfosPrefix = "txei";
2098
- var TransactionMethodsPrefix = "txm";
2099
- var TransactionMethodExtractedInfosPrefix = "txmei";
2100
- var InstitutionPrefix = "ins";
2101
- var InstitutionExtractedInfosPrefix = "insei";
2102
-
2103
- // Add these lines near the top of the file with other prefix definitions
2104
- var ScenarioPrefix = "scenario";
2105
- var ListPrefix = "list";
2106
- var QueryPrefix = "query";
2107
- var ActionPrefix = "action";
2108
-
2109
- // ---
2110
-
2111
- // Add these lines in the type definitions section
2112
-
2113
- // TMS
2114
-
2115
- // ---
2116
-
2117
- // TMS
2118
-
2119
- // Scenarios service
2120
-
2121
- var createBrandedSchemaId = function createBrandedSchemaId(brand) {
2122
- return z.custom(function (val) {
2123
- if (typeof val !== "string") return false;
2124
- return val.startsWith(brand);
2125
- }, {
2126
- message: "Invalid ".concat(brand, " id")
2127
- });
2128
- };
2129
-
2130
- // ---
2131
-
2132
- var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
2133
- var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
2134
- var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
2135
- var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
2136
- var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
2137
- var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
2138
- var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
2139
- var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
2140
- var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
2141
- var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
2142
-
2143
- // TMS
2144
- var TagsToTransactionReviewsId = createBrandedSchemaId("".concat(TagsToTransactionReviewsPrefix, "_"));
2145
- var TransactionAddressesId = createBrandedSchemaId("".concat(TransactionAddressesPrefix, "_"));
2146
- var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
2147
- var TransactionFeesId = createBrandedSchemaId("".concat(TransactionFeesPrefix, "_"));
2148
- var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
2149
- var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
2150
- var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
2151
- var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
2152
- var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
2153
- var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
2154
- var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
2155
- var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
2156
- var ScenarioId = createBrandedSchemaId("".concat(ScenarioPrefix, "_"));
2157
- var ListId = createBrandedSchemaId("".concat(ListPrefix, "_"));
2158
- var QueryId = createBrandedSchemaId("".concat(QueryPrefix, "_"));
2159
- var generateId = function generateId(type // Add this line
2160
- ) {
2161
- return "".concat(type, "_").concat(nanoid(12));
2162
- };
2163
- var MemberId = z.string();
2164
-
2165
- var FLOW_TYPES = ["web2", "web3"];
2166
- var FlowType = z["enum"](FLOW_TYPES).describe("The flow type of the user");
2167
- var VerificationModes = ["full_verification", "sandbox"];
2168
- var VerificationMode = z["enum"](VerificationModes).describe("The verification mode of the project");
2169
- var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
2170
- var IdentityDocumentCountryListOption = z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
2171
- var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
2172
- var IdentityDocumentOptionsType = z["enum"](IDENTITY_DOCUMENT_OPTIONS);
2173
- var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
2174
- var PersonalInformationFieldsIdentityDocuments = z["enum"](PERSONAL_INFORMATION_FIELDS);
2175
- var Identifier = z.union([z.literal("verification"), z.literal("management")]);
2176
-
2177
- /**
2178
- * Represents the additional data that can be attached to a customer
2179
- */
2079
+ // Request
2180
2080
 
2181
- var AdditionalCustomerInformationParams = z.object({
2182
- email: z.string().email().optional(),
2183
- phone: z.string().min(4).optional(),
2184
- wallet: z.object({
2185
- address: BlockchainAddress,
2186
- namespace: BlockchainNamespace
2187
- }).optional()
2081
+ var MediaType = /*#__PURE__*/function (MediaType) {
2082
+ MediaType["ZKPMessage"] = "application/iden3-zkp-json";
2083
+ MediaType["PlainMessage"] = "application/iden3comm-plain-json";
2084
+ MediaType["SignedMessage"] = "application/iden3comm-signed-json";
2085
+ return MediaType;
2086
+ }({});
2087
+ var MediaTypePID = z.nativeEnum(MediaType);
2088
+ var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
2089
+ var CircuitId = z["enum"](CIRCUIT_IDS);
2090
+ var ZeroKnowledgeProofRequest = z.object({
2091
+ id: z.number(),
2092
+ circuitId: z.string(),
2093
+ optional: z["boolean"]().optional(),
2094
+ query: z.record(z.string(), z.any())
2188
2095
  });
2189
- var OrganizationId = z.string();
2190
- var WorkspaceId = z.string();
2191
- var WorkflowId = UuidString;
2192
- var CustomerId = UuidString;
2193
- var IdentityWidgetAccessToken = z.object({
2194
- sub: BlockchainAddress,
2195
- blockchainNamespace: BlockchainNamespace,
2196
- exp: z.number(),
2197
- projectId: z.string(),
2198
- organizationId: OrganizationId,
2199
- customerId: UuidString,
2200
- workspaceId: WorkspaceId,
2201
- // cmsProjectId
2202
- workflowId: WorkflowId.optional(),
2203
- ipAddress: z.string().optional(),
2204
- timestamp: z.number(),
2205
- storeSharedVC: z["boolean"]().nullish(),
2206
- verificationMode: VerificationMode,
2207
- hosts: z.array(z.string())
2096
+ var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
2097
+ AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
2098
+ AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
2099
+ CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
2100
+ CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
2101
+ CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
2102
+ CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
2103
+ CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
2104
+ DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
2105
+ MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
2106
+ PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
2107
+ PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
2108
+ REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
2109
+ REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
2110
+ CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
2111
+ CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
2112
+ CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
2113
+ PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
2114
+ PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
2115
+ PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
2116
+ PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
2117
+ };
2118
+ var AuthorizationRequestMessageTypes = ["https://iden3-communication.io/authorization/1.0/request", "https://iden3-communication.io/authorization/1.0/response", "https://iden3-communication.io/credentials/1.0/issuance-request", "https://iden3-communication.io/credentials/1.0/fetch-request", "https://iden3-communication.io/credentials/1.0/offer", "https://iden3-communication.io/credentials/1.0/issuance-response", "https://iden3-communication.io/credentials/1.0/refresh", "https://iden3-communication.io/devices/1.0/registration", "https://iden3-communication.io/messages/1.0/fetch", "https://iden3-communication.io/proofs/1.0/request", "https://iden3-communication.io/proofs/1.0/response", "https://iden3-communication.io/revocation/1.0/request-status", "https://iden3-communication.io/revocation/1.0/status", "https://iden3-communication.io/proofs/1.0/contract-invoke-request", "https://iden3-communication.io/proofs/1.0/contract-invoke-response", "https://iden3-communication.io/credentials/1.0/onchain-offer", "https://iden3-communication.io/credentials/0.1/proposal-request", "https://iden3-communication.io/credentials/0.1/proposal", "https://iden3-communication.io/credentials/0.1/payment-request", "https://iden3-communication.io/credentials/0.1/payment"];
2119
+ var AuthorizationRequestMessageType = z["enum"](AuthorizationRequestMessageTypes);
2120
+ var AuthorizationRequestMessage = z.object({
2121
+ id: z.string(),
2122
+ typ: MediaTypePID.optional(),
2123
+ type: AuthorizationRequestMessageType,
2124
+ thid: z.string().optional(),
2125
+ body: z.object({
2126
+ callbackUrl: z.string(),
2127
+ reason: z.string().optional(),
2128
+ did_doc: z.any().optional(),
2129
+ message: z.string().optional(),
2130
+ scope: z.array(ZeroKnowledgeProofRequest)
2131
+ }),
2132
+ from: z.string(),
2133
+ to: z.string().optional()
2208
2134
  });
2209
-
2210
- // represents an id of a consumer in the external system of our client
2211
- // as it's an external id, it can be any string
2212
- var ExternalCustomerId = z.string();
2213
- var IdentityAppV2BaseJWT = z.object({
2214
- sub: IdentityId,
2215
- // @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
2216
- flowType: z.union([z.literal(FlowType.Values.web3), z.literal(FlowType.Values.web2)]),
2217
- exp: z.number(),
2218
- customerId: UuidString,
2219
- verificationMode: VerificationMode,
2220
- organizationId: OrganizationId,
2221
- workspaceId: WorkspaceId,
2222
- workflowId: WorkflowId,
2223
- ipAddress: z.string().optional(),
2224
- timestamp: z.number(),
2225
- iat: z.number(),
2226
- hosts: z.array(z.string())
2135
+ // Response
2136
+ var ProofData = z.object({
2137
+ pi_a: z.array(z.string()),
2138
+ pi_b: z.array(z.array(z.string())),
2139
+ pi_c: z.array(z.string()),
2140
+ protocol: z.string(),
2141
+ curve: z.string().optional()
2227
2142
  });
2228
- var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
2229
- flowType: z.literal(FlowType.Values.web3),
2230
- blockchainAddress: BlockchainAddress,
2231
- blockchainNamespace: BlockchainNamespace
2143
+ var ZeroKnowledgeProofResponse = z.object({
2144
+ id: z.number(),
2145
+ circuitId: z.string(),
2146
+ vp: z.any().optional(),
2147
+ proof: ProofData,
2148
+ pub_signals: z.array(z.string())
2232
2149
  });
2233
- var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
2234
- flowType: z.literal(FlowType.Values.web2),
2235
- /**
2236
- * @deprecated Fetch the additional user information from the services instead of relying on this field
2237
- * We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
2238
- */
2239
- deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
2150
+ var AuthorizationResponseMessage = z.object({
2151
+ id: z.string(),
2152
+ typ: MediaTypePID.optional(),
2153
+ type: z.string(),
2154
+ thid: z.string().optional(),
2155
+ body: z.object({
2156
+ did_doc: z.any().optional(),
2157
+ message: z.string().optional(),
2158
+ scope: z.array(ZeroKnowledgeProofResponse)
2159
+ }),
2160
+ from: z.string().optional(),
2161
+ to: z.string().optional()
2240
2162
  });
2241
- var IdentityWidgetAccessToken_NEW = z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
2242
- var IdentityWidgetSessionToken = z.union([IdentityWidgetAccessToken, IdentityWidgetAccessToken_NEW]);
2243
-
2244
- /**
2245
- * The parameters required to create a new configuration in web2 mode.
2246
- */
2247
-
2248
- var Web2CreateSessionParams = z.object({
2249
- workflowId: WorkflowId,
2250
- // required in web2 because we don't have the wallet address
2251
- externalCustomerId: ExternalCustomerId,
2252
- additionalInformation: AdditionalCustomerInformationParams.optional()
2163
+ // Polygon Wallet
2164
+ var CredentialQrCodeData = z.object({
2165
+ id: z.string(),
2166
+ typ: z.string(),
2167
+ type: z.string(),
2168
+ thid: z.string(),
2169
+ body: z.object({
2170
+ url: z.string(),
2171
+ credentials: z.unknown()
2172
+ }),
2173
+ from: z.string(),
2174
+ to: z.string()
2253
2175
  });
2254
-
2255
- var ScenarioTypes = ["ChallengeQuery", "OnChainZKP", "OffChainZKP", "IndividualCustomerMonitoring", "TransactionMonitoring"];
2256
- var ScenarioType = z["enum"](ScenarioTypes);
2257
- var ScenarioStatuses = ["UpToDate", "NoRulesAdded", "HasNotDeployment"];
2258
- var ScenarioStatus = z["enum"](ScenarioStatuses);
2259
- var RuleEngineResponse = z.object({
2260
- objectType: ScenarioType,
2261
- objectId: z.string().describe("Object id in the cms (challengeQueryid, onChainZKPid, offChainZKPid)"),
2262
- // TODO ACTUALLY THIS MIGHT BE JUST THE CHALLENGE_QUERY ID
2263
- name: z.string(),
2264
- address: BlockchainAddress.nullish(),
2265
- result: z.object({
2266
- result: z.object({
2267
- is_valid: z["boolean"](),
2268
- reasons: z.array(z.unknown())
2269
- }),
2270
- // TODO maybe start using OpaChallengeQueryResponse
2271
- executionId: z.string().uuid()
2176
+ var AuthQrCodeData = z.object({
2177
+ id: z.string(),
2178
+ typ: z.string(),
2179
+ type: z.string(),
2180
+ thid: z.string(),
2181
+ body: z.object({
2182
+ callbackUrl: z.string(),
2183
+ reason: z.string(),
2184
+ scope: z.unknown()
2272
2185
  }),
2273
- executionId: z.string(),
2274
- scenarioId: z.string()
2186
+ from: z.string()
2275
2187
  });
2276
- var ScenarioExecutionResponse = z.array(RuleEngineResponse);
2277
- var RuleResultStatuses = ["valid", "not-valid", "error", "unknown"];
2278
- var RuleResultStatus = z["enum"](RuleResultStatuses);
2279
- var RuleResultStatusLabels = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RuleResultStatus.Enum.valid, "Valid"), RuleResultStatus.Enum["not-valid"], "Not Valid"), RuleResultStatus.Enum.error, "Error"), RuleResultStatus.Enum.unknown, "Unknown");
2188
+ var QrCodeLinkWithSchemaType = z.object({
2189
+ qrCodeLink: z.string().nullish(),
2190
+ schemaType: z.string().nullish()
2191
+ }).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
2192
+ function parseIden3Message(input) {
2193
+ var prefix = "request_uri=";
2194
+ var startIndex = input.indexOf(prefix);
2195
+ if (startIndex === -1) {
2196
+ throw new Error("Wrong request - request doesn't start with request_uri=");
2197
+ }
2198
+ return z.string().url().parse(input.substring(startIndex + prefix.length));
2199
+ }
2200
+ function parseSessionIdFromUrl(urlString) {
2201
+ var url = new URL(urlString);
2202
+ var params = new URLSearchParams(url.search);
2203
+ var sessionId = params.get("sessionID");
2204
+ if (!sessionId) {
2205
+ throw new Error("No Session Id found in callback url");
2206
+ }
2207
+ return sessionId;
2208
+ }
2280
2209
 
2281
2210
  function _arrayWithHoles(r) {
2282
2211
  if (Array.isArray(r)) return r;
@@ -2329,7 +2258,6 @@ var IDImage = z.object({
2329
2258
  requestId: z.coerce.number().nullish(),
2330
2259
  attribute: z.union([z.string(), zodEnumFromObjKeys(IDImageCredentialSubjectSchema.shape)]),
2331
2260
  value: AllCredentialValues,
2332
- // TODO play with discriminatedUnion to make it dynamic based on selected attribute (e.g. if attribute age is type number in the schema, then value her shuld be number etc..)
2333
2261
  operator: Operator
2334
2262
  });
2335
2263
  var SelfieImage = z.object({
@@ -2457,92 +2385,231 @@ var DeleteQueryConfigurationInput = z.object({
2457
2385
  queryConfigurationId: z.string(),
2458
2386
  scenarioId: z.string()
2459
2387
  });
2460
- var DeleteQueryConfigurationResponse = z.object({
2461
- queryConfigurationId: z.string()
2388
+ var DeleteQueryConfigurationResponse = z.object({
2389
+ queryConfigurationId: z.string()
2390
+ });
2391
+ var QueryCredentialTypes = ["IDInformation", "IDImage", "SelfieImage", "ProofOfResidence"];
2392
+ var QueryCredentialType = z["enum"](QueryCredentialTypes);
2393
+ var ChallengeQuerySchema = z.object({
2394
+ id: z.string().optional(),
2395
+ query: QueryConfig
2396
+ });
2397
+ var CHALLENGE_QUERY_OPERATORS = ["GREATER_THAN", "LESS_THAN", "EQUAL_TO", "NOT_EQUAL_TO", "LESS_THAN_OR_EQUAL_TO", "GREATER_THAN_OR_EQUAL_TO", "IN", "NOT_IN"];
2398
+ var ChallengeQueryOperator = z["enum"](CHALLENGE_QUERY_OPERATORS);
2399
+ var OperatorMappings = {
2400
+ toChallenge: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$noop, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$eq, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$lt, ChallengeQueryOperator["enum"].LESS_THAN), Operator["enum"].$lte, ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO), Operator["enum"].$gt, ChallengeQueryOperator["enum"].GREATER_THAN), Operator["enum"].$gte, ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO), Operator["enum"].$in, ChallengeQueryOperator["enum"].IN), Operator["enum"].$nin, ChallengeQueryOperator["enum"].NOT_IN), Operator["enum"].$ne, ChallengeQueryOperator["enum"].NOT_EQUAL_TO),
2401
+ fromChallenge: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ChallengeQueryOperator["enum"].EQUAL_TO, Operator["enum"].$eq), ChallengeQueryOperator["enum"].LESS_THAN, Operator["enum"].$lt), ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO, Operator["enum"].$lte), ChallengeQueryOperator["enum"].GREATER_THAN, Operator["enum"].$gt), ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO, Operator["enum"].$gte), ChallengeQueryOperator["enum"].IN, Operator["enum"].$in), ChallengeQueryOperator["enum"].NOT_IN, Operator["enum"].$nin), ChallengeQueryOperator["enum"].NOT_EQUAL_TO, Operator["enum"].$ne)
2402
+ };
2403
+ var OperatorToChallengeQueryOperator = OperatorMappings.toChallenge;
2404
+ var ChallengeQueryOperatorToOperator = OperatorMappings.fromChallenge;
2405
+
2406
+ var StoragePrefix = "storage";
2407
+ var IdentityPrefix = "identity";
2408
+ var EmailPrefix = "email";
2409
+ var WalletPrefix = "wallet";
2410
+ var AppPrefix = "app";
2411
+ var ChallengePrefix = "challenge";
2412
+ var TestPrefix = "test";
2413
+ var CustomerScreeningPrefix = "cstscr";
2414
+ var TagPrefix = "tag";
2415
+
2416
+ // TMS
2417
+ var TagsToTransactionReviewsPrefix = "ttxr";
2418
+ var TransactionAddressesPrefix = "txa";
2419
+ var TransactionPrefix = "tx";
2420
+ var TransactionFeesPrefix = "txf";
2421
+ var TransactionReviewPrefix = "txrev";
2422
+ var TransactionPartiesPrefix = "txpar";
2423
+ var TransactionInfosPrefix = "txi";
2424
+ var TransactionExtractedInfosPrefix = "txei";
2425
+ var TransactionMethodsPrefix = "txm";
2426
+ var TransactionMethodExtractedInfosPrefix = "txmei";
2427
+ var InstitutionPrefix = "ins";
2428
+ var InstitutionExtractedInfosPrefix = "insei";
2429
+
2430
+ // Add these lines near the top of the file with other prefix definitions
2431
+ var ScenarioPrefix = "scenario";
2432
+ var ListPrefix = "list";
2433
+ var QueryPrefix = "query";
2434
+ var ActionPrefix = "action";
2435
+
2436
+ // ---
2437
+
2438
+ // Add these lines in the type definitions section
2439
+
2440
+ // TMS
2441
+
2442
+ // ---
2443
+
2444
+ // TMS
2445
+
2446
+ // Scenarios service
2447
+
2448
+ var createBrandedSchemaId = function createBrandedSchemaId(brand) {
2449
+ return z.custom(function (val) {
2450
+ if (typeof val !== "string") return false;
2451
+ return val.startsWith(brand);
2452
+ }, {
2453
+ message: "Invalid ".concat(brand, " id")
2454
+ });
2455
+ };
2456
+
2457
+ // ---
2458
+
2459
+ var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
2460
+ var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
2461
+ var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
2462
+ var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
2463
+ var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
2464
+ var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
2465
+ var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
2466
+ var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
2467
+ var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
2468
+ var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
2469
+
2470
+ // TMS
2471
+ var TagsToTransactionReviewsId = createBrandedSchemaId("".concat(TagsToTransactionReviewsPrefix, "_"));
2472
+ var TransactionAddressesId = createBrandedSchemaId("".concat(TransactionAddressesPrefix, "_"));
2473
+ var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
2474
+ var TransactionFeesId = createBrandedSchemaId("".concat(TransactionFeesPrefix, "_"));
2475
+ var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
2476
+ var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
2477
+ var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
2478
+ var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
2479
+ var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
2480
+ var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
2481
+ var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
2482
+ var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
2483
+ var ScenarioId = createBrandedSchemaId("".concat(ScenarioPrefix, "_"));
2484
+ var ListId = createBrandedSchemaId("".concat(ListPrefix, "_"));
2485
+ var QueryId = createBrandedSchemaId("".concat(QueryPrefix, "_"));
2486
+ var generateId = function generateId(type // Add this line
2487
+ ) {
2488
+ return "".concat(type, "_").concat(nanoid(12));
2489
+ };
2490
+ var MemberId = z.string();
2491
+
2492
+ var FLOW_TYPES = ["web2", "web3"];
2493
+ var FlowType = z["enum"](FLOW_TYPES).describe("The flow type of the user");
2494
+ var VerificationModes = ["full_verification", "sandbox"];
2495
+ var VerificationMode = z["enum"](VerificationModes).describe("The verification mode of the project");
2496
+ var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
2497
+ var IdentityDocumentCountryListOption = z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
2498
+ var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
2499
+ var IdentityDocumentOptionsType = z["enum"](IDENTITY_DOCUMENT_OPTIONS);
2500
+ var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
2501
+ var PersonalInformationFieldsIdentityDocuments = z["enum"](PERSONAL_INFORMATION_FIELDS);
2502
+ var Identifier = z.union([z.literal("verification"), z.literal("management")]);
2503
+
2504
+ /**
2505
+ * Represents the additional data that can be attached to a customer
2506
+ */
2507
+
2508
+ var AdditionalCustomerInformationParams = z.object({
2509
+ email: z.string().email().optional(),
2510
+ phone: z.string().min(4).optional(),
2511
+ wallet: z.object({
2512
+ address: BlockchainAddress,
2513
+ namespace: BlockchainNamespace
2514
+ }).optional()
2515
+ });
2516
+ var OrganizationId = z.string();
2517
+ var WorkspaceId = z.string();
2518
+ var WorkflowId = UuidString;
2519
+ var CustomerId = UuidString;
2520
+ var IdentityWidgetAccessToken = z.object({
2521
+ sub: BlockchainAddress,
2522
+ blockchainNamespace: BlockchainNamespace,
2523
+ exp: z.number(),
2524
+ projectId: z.string(),
2525
+ organizationId: OrganizationId,
2526
+ customerId: UuidString,
2527
+ workspaceId: WorkspaceId,
2528
+ // cmsProjectId
2529
+ workflowId: WorkflowId.optional(),
2530
+ ipAddress: z.string().optional(),
2531
+ timestamp: z.number(),
2532
+ storeSharedVC: z["boolean"]().nullish(),
2533
+ verificationMode: VerificationMode,
2534
+ hosts: z.array(z.string())
2462
2535
  });
2463
- var QueryCredentialTypes = ["IDInformation", "IDImage", "SelfieImage", "ProofOfResidence"];
2464
- var QueryCredentialType = z["enum"](QueryCredentialTypes);
2465
2536
 
2466
- // these are attributes are marked optional to be better presented by openapi.
2467
- // this is hopefully fixed in the refined version of the schema
2468
- var ChallengeQueryOperators = z.object({
2469
- GREATER_THAN: z.optional(z.number()),
2470
- LESS_THAN: z.optional(z.number()),
2471
- EQUAL_TO: z.optional(z.union([z.string(), z.number(), z.array(z.never()), z.array(z.number()), z.array(z.string())])),
2472
- NOT_EQUAL_TO: z.optional(z.union([z.string(), z.number(), z.array(z.never()), z.array(z.number()), z.array(z.string())])),
2473
- LESS_THAN_OR_EQUAL_TO: z.optional(z.number()),
2474
- GREATER_THAN_OR_EQUAL_TO: z.optional(z.number()),
2475
- IN: z.optional(z.union([z.string(), z.array(z.number()), z.array(z.string())])),
2476
- NOT_IN: z.optional(z.union([z.string(), z.array(z.number()), z.array(z.string())]))
2477
- }).refine(function (data) {
2478
- // make sure tht if an operator is defined, the value is also defined
2479
- for (var operator in data) {
2480
- var value = data[operator];
2481
- if (value === undefined) {
2482
- return false;
2483
- }
2484
- }
2485
- // make sure that only one operator is defined at a time
2486
- var operators = Object.keys(data);
2487
- if (operators.length > 1) {
2488
- return false;
2489
- }
2490
- return true;
2537
+ // represents an id of a consumer in the external system of our client
2538
+ // as it's an external id, it can be any string
2539
+ var ExternalCustomerId = z.string();
2540
+ var IdentityAppV2BaseJWT = z.object({
2541
+ sub: IdentityId,
2542
+ // @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
2543
+ flowType: z.union([z.literal(FlowType.Values.web3), z.literal(FlowType.Values.web2)]),
2544
+ exp: z.number(),
2545
+ customerId: UuidString,
2546
+ verificationMode: VerificationMode,
2547
+ organizationId: OrganizationId,
2548
+ workspaceId: WorkspaceId,
2549
+ workflowId: WorkflowId,
2550
+ ipAddress: z.string().optional(),
2551
+ timestamp: z.number(),
2552
+ iat: z.number(),
2553
+ hosts: z.array(z.string())
2491
2554
  });
2492
- var CHALLENGE_QUERY_OPERATORS = ["GREATER_THAN", "LESS_THAN", "EQUAL_TO", "NOT_EQUAL_TO", "LESS_THAN_OR_EQUAL_TO", "GREATER_THAN_OR_EQUAL_TO", "IN", "NOT_IN"];
2493
- var ChallengeQueryOperator = z["enum"](CHALLENGE_QUERY_OPERATORS);
2494
- var OperatorToChallengeQueryOperator = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$noop, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$eq, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$lt, ChallengeQueryOperator["enum"].LESS_THAN), Operator["enum"].$lte, ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO), Operator["enum"].$gt, ChallengeQueryOperator["enum"].GREATER_THAN), Operator["enum"].$gte, ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO), Operator["enum"].$in, ChallengeQueryOperator["enum"].IN), Operator["enum"].$nin, ChallengeQueryOperator["enum"].NOT_IN), Operator["enum"].$ne, ChallengeQueryOperator["enum"].NOT_EQUAL_TO);
2495
- var ChallengeQueryOperatorToOperator = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ChallengeQueryOperator["enum"].EQUAL_TO, Operator["enum"].$eq), ChallengeQueryOperator["enum"].LESS_THAN, Operator["enum"].$lt), ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO, Operator["enum"].$lte), ChallengeQueryOperator["enum"].GREATER_THAN, Operator["enum"].$gt), ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO, Operator["enum"].$gte), ChallengeQueryOperator["enum"].IN, Operator["enum"].$in), ChallengeQueryOperator["enum"].NOT_IN, Operator["enum"].$nin), ChallengeQueryOperator["enum"].NOT_EQUAL_TO, Operator["enum"].$ne);
2496
- var ChallengeQuerySchema = z.object({
2497
- id: z.string().optional(),
2498
- query: QueryConfig
2555
+ var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
2556
+ flowType: z.literal(FlowType.Values.web3),
2557
+ blockchainAddress: BlockchainAddress,
2558
+ blockchainNamespace: BlockchainNamespace
2499
2559
  });
2500
- var ExecuteChallengeQueryInput = z.object({
2501
- externalCustomerId: ExternalCustomerId.nullish(),
2502
- address: BlockchainAddress.nullish(),
2503
- credentials: z.array(GenericVerifiableCredentialSchema).min(1),
2504
- challengeQuery: QueryConfig
2560
+ var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
2561
+ flowType: z.literal(FlowType.Values.web2),
2562
+ /**
2563
+ * @deprecated Fetch the additional user information from the services instead of relying on this field
2564
+ * We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
2565
+ */
2566
+ deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
2505
2567
  });
2506
- var ExecuteChallengeQueryConfig = z.object({
2507
- input: ExecuteChallengeQueryInput,
2508
- executionId: z.string(),
2509
- sessionId: z.string().nullish(),
2510
- cmsObjectId: z.string(),
2511
- cmsScenarioId: z.string().optional()
2568
+ var IdentityWidgetAccessToken_NEW = z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
2569
+ var IdentityWidgetSessionToken = z.union([IdentityWidgetAccessToken, IdentityWidgetAccessToken_NEW]);
2570
+
2571
+ /**
2572
+ * The parameters required to create a new configuration in web2 mode.
2573
+ */
2574
+
2575
+ var Web2CreateSessionParams = z.object({
2576
+ workflowId: WorkflowId,
2577
+ // required in web2 because we don't have the wallet address
2578
+ externalCustomerId: ExternalCustomerId,
2579
+ additionalInformation: AdditionalCustomerInformationParams.optional()
2512
2580
  });
2513
- var OpaChallengeQueryResponse = z.object({
2581
+
2582
+ var ScenarioTypes = ["ChallengeQuery", "OffChainZKP", "IndividualCustomerMonitoring", "TransactionMonitoring"];
2583
+ var ScenarioType = z["enum"](ScenarioTypes);
2584
+ var BaseQueryResponse = z.object({
2514
2585
  result: z.object({
2515
2586
  is_valid: z["boolean"](),
2516
2587
  reasons: z.array(z.string())
2517
2588
  })
2518
2589
  });
2519
- var ExecuteChallengeQueryResponse = OpaChallengeQueryResponse.extend({
2520
- executionId: z.string()
2521
- });
2522
- var OPAChallengeQuery = z.record(ChallengeQueryOperators).refine(function (data) {
2523
- // we are not validating the dotPath, only the operators
2524
- for (var dotPath in data) {
2525
- var operatorsData = data[dotPath];
2526
- if (operatorsData === undefined) {
2527
- return false;
2528
- }
2529
- // if the operator is not a valid operator, operatorsData will be {}
2530
- var operators = Object.keys(operatorsData);
2531
- if (operators.length === 0) {
2532
- return false;
2533
- }
2534
- }
2535
- return true;
2536
- }, {
2537
- message: "Invalid operator found."
2538
- });
2539
- var OffChainZKPRuleResult = z.object({
2590
+ var OffChainZKPRuleResult = BaseQueryResponse.extend({
2540
2591
  result: z.object({
2541
2592
  is_valid: z["boolean"](),
2542
2593
  query: QueryConfigSimplified,
2543
2594
  reasons: z.array(z.string())
2544
2595
  })
2545
2596
  });
2597
+ var ExecuteQueryResponse = BaseQueryResponse.extend({
2598
+ executionId: UuidString
2599
+ });
2600
+ var RuleEngineResponse = z.object({
2601
+ objectType: ScenarioType,
2602
+ objectId: z.string().describe("Object id in the cms (challengeQueryid, offChainZKPid)"),
2603
+ name: z.string(),
2604
+ address: BlockchainAddress.nullish(),
2605
+ result: ExecuteQueryResponse,
2606
+ executionId: UuidString,
2607
+ scenarioId: z.string()
2608
+ });
2609
+ var ScenarioExecutionResponse = z.array(RuleEngineResponse);
2610
+ var RuleResultStatuses = ["valid", "not-valid", "error", "unknown"];
2611
+ var RuleResultStatus = z["enum"](RuleResultStatuses);
2612
+ var RuleResultStatusLabels = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RuleResultStatus.Enum.valid, "Valid"), RuleResultStatus.Enum["not-valid"], "Not Valid"), RuleResultStatus.Enum.error, "Error"), RuleResultStatus.Enum.unknown, "Unknown");
2546
2613
  var SdkVerificationOutput = z.object({
2547
2614
  customerId: z.string().optional(),
2548
2615
  // for v1
@@ -2559,137 +2626,31 @@ var VerificationOutput = z.object({
2559
2626
  verificationResult: SdkVerificationOutput.nullable(),
2560
2627
  status: VerificationSessionStatus
2561
2628
  });
2562
-
2563
- // Request
2564
-
2565
- var MediaType = /*#__PURE__*/function (MediaType) {
2566
- MediaType["ZKPMessage"] = "application/iden3-zkp-json";
2567
- MediaType["PlainMessage"] = "application/iden3comm-plain-json";
2568
- MediaType["SignedMessage"] = "application/iden3comm-signed-json";
2569
- return MediaType;
2570
- }({});
2571
- var MediaTypePID = z.nativeEnum(MediaType);
2572
- var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
2573
- var CircuitId = z["enum"](CIRCUIT_IDS);
2574
- var ZeroKnowledgeProofRequest = z.object({
2575
- id: z.number(),
2576
- circuitId: z.string(),
2577
- optional: z["boolean"]().optional(),
2578
- query: z.record(z.string(), z.any())
2579
- });
2580
- var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
2581
- AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
2582
- AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
2583
- CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
2584
- CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
2585
- CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
2586
- CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
2587
- CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
2588
- DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
2589
- MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
2590
- PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
2591
- PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
2592
- REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
2593
- REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
2594
- CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
2595
- CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
2596
- CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
2597
- PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
2598
- PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
2599
- PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
2600
- PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
2601
- };
2602
- var AuthorizationRequestMessageTypes = ["https://iden3-communication.io/authorization/1.0/request", "https://iden3-communication.io/authorization/1.0/response", "https://iden3-communication.io/credentials/1.0/issuance-request", "https://iden3-communication.io/credentials/1.0/fetch-request", "https://iden3-communication.io/credentials/1.0/offer", "https://iden3-communication.io/credentials/1.0/issuance-response", "https://iden3-communication.io/credentials/1.0/refresh", "https://iden3-communication.io/devices/1.0/registration", "https://iden3-communication.io/messages/1.0/fetch", "https://iden3-communication.io/proofs/1.0/request", "https://iden3-communication.io/proofs/1.0/response", "https://iden3-communication.io/revocation/1.0/request-status", "https://iden3-communication.io/revocation/1.0/status", "https://iden3-communication.io/proofs/1.0/contract-invoke-request", "https://iden3-communication.io/proofs/1.0/contract-invoke-response", "https://iden3-communication.io/credentials/1.0/onchain-offer", "https://iden3-communication.io/credentials/0.1/proposal-request", "https://iden3-communication.io/credentials/0.1/proposal", "https://iden3-communication.io/credentials/0.1/payment-request", "https://iden3-communication.io/credentials/0.1/payment"];
2603
- var AuthorizationRequestMessageType = z["enum"](AuthorizationRequestMessageTypes);
2604
- var AuthorizationRequestMessage = z.object({
2605
- id: z.string(),
2606
- typ: MediaTypePID.optional(),
2607
- type: AuthorizationRequestMessageType,
2608
- thid: z.string().optional(),
2609
- body: z.object({
2610
- callbackUrl: z.string(),
2611
- reason: z.string().optional(),
2612
- did_doc: z.any().optional(),
2613
- message: z.string().optional(),
2614
- scope: z.array(ZeroKnowledgeProofRequest)
2615
- }),
2616
- from: z.string(),
2617
- to: z.string().optional()
2618
- });
2619
- // Response
2620
- var ProofData = z.object({
2621
- pi_a: z.array(z.string()),
2622
- pi_b: z.array(z.array(z.string())),
2623
- pi_c: z.array(z.string()),
2624
- protocol: z.string(),
2625
- curve: z.string().optional()
2626
- });
2627
- var ZeroKnowledgeProofResponse = z.object({
2628
- id: z.number(),
2629
- circuitId: z.string(),
2630
- vp: z.any().optional(),
2631
- proof: ProofData,
2632
- pub_signals: z.array(z.string())
2629
+ var Scenario = z.object({
2630
+ id: ScenarioId,
2631
+ name: z.string(),
2632
+ description: z.string().nullish(),
2633
+ queries: z.array(QueryConfig),
2634
+ type: ScenarioType,
2635
+ workspaceId: WorkspaceId,
2636
+ vcsIncluded: z.array(CredentialType).nullish()
2633
2637
  });
2634
- var AuthorizationResponseMessage = z.object({
2635
- id: z.string(),
2636
- typ: MediaTypePID.optional(),
2637
- type: z.string(),
2638
- thid: z.string().optional(),
2639
- body: z.object({
2640
- did_doc: z.any().optional(),
2641
- message: z.string().optional(),
2642
- scope: z.array(ZeroKnowledgeProofResponse)
2643
- }),
2644
- from: z.string().optional(),
2645
- to: z.string().optional()
2638
+
2639
+ // creating this because SmartContractDeployment has an issue with AddressSchema
2640
+ // during rpcPublisher.send
2641
+ // also the parsing of the queryconfiguration fields changes type slightly as well.
2642
+ var AbbreviatedWorkflowScenario = Scenario.omit({
2643
+ vcsIncluded: true,
2644
+ queries: true
2645
+ }).extend({
2646
+ queries: z.array(QueryConfig)
2646
2647
  });
2647
- // Polygon Wallet
2648
- var CredentialQrCodeData = z.object({
2649
- id: z.string(),
2650
- typ: z.string(),
2651
- type: z.string(),
2652
- thid: z.string(),
2653
- body: z.object({
2654
- url: z.string(),
2655
- credentials: z.unknown()
2656
- }),
2657
- from: z.string(),
2658
- to: z.string()
2648
+ var TemplateScenario = Scenario.omit({
2649
+ workspaceId: true
2659
2650
  });
2660
- var AuthQrCodeData = z.object({
2661
- id: z.string(),
2662
- typ: z.string(),
2663
- type: z.string(),
2664
- thid: z.string(),
2665
- body: z.object({
2666
- callbackUrl: z.string(),
2667
- reason: z.string(),
2668
- scope: z.unknown()
2669
- }),
2670
- from: z.string()
2651
+ var CreateTemplateScenario = TemplateScenario.omit({
2652
+ id: true
2671
2653
  });
2672
- var QrCodeLinkWithSchemaType = z.object({
2673
- qrCodeLink: z.string().nullish(),
2674
- schemaType: z.string().nullish()
2675
- }).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
2676
- function parseIden3Message(input) {
2677
- var prefix = "request_uri=";
2678
- var startIndex = input.indexOf(prefix);
2679
- if (startIndex === -1) {
2680
- throw new Error("Wrong request - request doesn't start with request_uri=");
2681
- }
2682
- return z.string().url().parse(input.substring(startIndex + prefix.length));
2683
- }
2684
- function parseSessionIdFromUrl(urlString) {
2685
- var url = new URL(urlString);
2686
- var params = new URLSearchParams(url.search);
2687
- var sessionId = params.get("sessionID");
2688
- if (!sessionId) {
2689
- throw new Error("No Session Id found in callback url");
2690
- }
2691
- return sessionId;
2692
- }
2693
2654
 
2694
2655
  var ScenarioAuthorizationData = z.object({
2695
2656
  executionId: UuidString,
@@ -3273,41 +3234,11 @@ var CreateAuthRequestProps = z.object({
3273
3234
  thid: z.string().uuid(),
3274
3235
  message: z.string().describe("Message shown to the user")
3275
3236
  });
3276
- var CreateZKProofRequestProps = z.object({
3277
- requestId: z.number(),
3278
- query: QueryConfigSimplified,
3279
- onChainVerification: z["boolean"]().optional()
3280
- });
3281
3237
  var AllScenarioExecutionAuthorizationData = z.object({
3282
3238
  executionId: UuidString,
3283
3239
  projectId: z.string(),
3284
3240
  scenarioExecutionIds: z.array(UuidString)
3285
3241
  });
3286
- var ProjectAuthorizationData = z.object({
3287
- sessionId: z.string(),
3288
- projectId: z.string(),
3289
- address: z.string(),
3290
- authorizations: z.map(z.string(), ScenarioAuthorizationData)
3291
- });
3292
- var OnChainZKP = z.object({
3293
- scenarioVerifierAddress: AddressSchema,
3294
- zkpRequests: z.array(ZKPRequest)
3295
- });
3296
- var OnChainZKPFromNexeraID = z.object({
3297
- scenarioVerifierAddress: AddressSchema,
3298
- zkpRequests: z.array(ZKPRequestFromZKVerifier)
3299
- });
3300
- var OnChainZKPScenarioFromCms = z.object({
3301
- scenarioVerifierAddress: AddressSchema,
3302
- zkpRequests: z.array(QueryConfigSimplified)
3303
- });
3304
- var OnChainZKPPayload = z.object({
3305
- requestId: z.bigint(),
3306
- inputs: z.array(z.bigint()),
3307
- a: z.tuple([z.bigint(), z.bigint()]),
3308
- b: z.tuple([z.tuple([z.bigint(), z.bigint()]), z.tuple([z.bigint(), z.bigint()])]),
3309
- c: z.tuple([z.bigint(), z.bigint()])
3310
- });
3311
3242
  var SCENARIO_AUTHORIZATION_STATUSES = ["pending", "authorised", "unauthorised"];
3312
3243
  var ScenarioAuthorizationStatus = z["enum"](SCENARIO_AUTHORIZATION_STATUSES);
3313
3244
 
@@ -3325,10 +3256,6 @@ var RequiredVerificationData = z.object({
3325
3256
  ruleEngine: z.object({
3326
3257
  requiredData: z.array(RequiredDataRowSchema)
3327
3258
  }),
3328
- onchainZKP: z.object({
3329
- requiredData: z.array(RequiredDataRowSchema),
3330
- conditions: z.array(ZKPRequest)
3331
- }),
3332
3259
  offchainZKP: z.object({
3333
3260
  requiredData: z.array(RequiredDataRowSchema),
3334
3261
  verifications: z.array(z.object({
@@ -3360,4 +3287,4 @@ var VerifyWalletChallengeRequest = WalletSignatureResponse.and(z.object({
3360
3287
  blockchainId: BlockchainId.optional()
3361
3288
  }));
3362
3289
 
3363
- export { SpSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, PublicKey as D, EVM_BLOCK_TIME as E, AddressSchema as F, TxHash as G, EIP155Signature as H, FunctionCallData as I, shortAddress as J, AptosAddress as K, AptosSignature as L, StarknetAddress as M, NEXERA_EVM_CHAINS as N, StarknetSignature as O, POLYGON_NETWORK_NAMES as P, PolkadotAddress as Q, PolkadotSignature as R, StarknetChainId as S, TezosChainId as T, CosmosAddress as U, CosmosSignature as V, TezosImplicitAddress as W, TezosContractAddress as X, TezosAddress as Y, TezosEntrypointName as Z, EdSignature as _, NEXERA_EVM_CHAINS_ID as a, TransactionMethodsPrefix as a$, P2Signature as a0, TezosSignature as a1, CardanoAddress as a2, CardanoSignature as a3, BlockchainAddress as a4, BlockchainSignature as a5, BLOCKCHAIN_NAMESPACES as a6, BlockchainNamespace as a7, BLOCKCHAIN_NAMESPACES_NAMES as a8, DISPLAYED_LOCKCHAIN_NAMESPACES as a9, CustomerOnboardingLevels as aA, CustomerOnboardingLevel as aB, CustomerStatuses as aC, CustomerStatus as aD, BasicCustomerContactInformation as aE, CUSTOMERS_CHARTS as aF, CustomersChartType as aG, CUSTOMER_TABLE_COLUMNS as aH, CustomerTableColumn as aI, CUSTOMER_AUTOMATION_REASONS as aJ, StoragePrefix as aK, IdentityPrefix as aL, EmailPrefix as aM, WalletPrefix as aN, AppPrefix as aO, ChallengePrefix as aP, TestPrefix as aQ, CustomerScreeningPrefix as aR, TagPrefix as aS, TagsToTransactionReviewsPrefix as aT, TransactionAddressesPrefix as aU, TransactionPrefix as aV, TransactionFeesPrefix as aW, TransactionReviewPrefix as aX, TransactionPartiesPrefix as aY, TransactionInfosPrefix as aZ, TransactionExtractedInfosPrefix as a_, DisplayedBlockchainNamespace as aa, BLOCKCHAIN_NAME_TO_NAMESPACE as ab, BLOCKCHAIN_NAMESPACE_TO_NAME as ac, ENVS as ad, EnvironmentSchema as ae, UuidString as af, OtpCode as ag, ZodParse as ah, shortBlockchainAddress as ai, PUBLIC_SERVICES_SCHEMA_MAP as aj, IpAddress as ak, ISO3CountryCode as al, ALPHA_2_COUNTRIES as am, Alpha2Country as an, countryISO3toISO2Mapping as ao, countryISO2toISO3Mapping as ap, isoCountriesNameFromISO2 as aq, parseISO3CountryCode as ar, RiskScoreTypes as as, RiskScoreType as at, CustomerTypes as au, CustomerType as av, KycOnboardingLevels as aw, KycOnboardingLevel as ax, KybOnboardingLevels as ay, KybOnboardingLevel as az, NexeraEvmChains as b, CHALLENGE_QUERY_OPERATORS as b$, TransactionMethodExtractedInfosPrefix as b0, InstitutionPrefix as b1, InstitutionExtractedInfosPrefix as b2, ScenarioPrefix as b3, ListPrefix as b4, QueryPrefix as b5, ActionPrefix as b6, createBrandedSchemaId as b7, StorageId as b8, IdentityId as b9, SdkVerificationResponseSchema as bA, CloseScreenNotification as bB, KycCompletionData as bC, KycCompletionNotification as bD, RuleEngineScenarioExecutionData as bE, OffChainScenarioExecutionData as bF, OnChainScenarioExecutionData as bG, ScenarioExecutionData as bH, ScenarioExecutionNotification as bI, IsVerifiedNotification as bJ, PolygonIdInitialized as bK, OcvSdkInitialized as bL, StartCompletedNotification as bM, IdentityNotificationMessage as bN, InitialDataRequest as bO, SignatureRequest as bP, TransactionData as bQ, SendTransactionRequest as bR, IdentityRequestMessage as bS, AVAILABLE_FLOWS as bT, AvailableFlow as bU, DataAvailableOnStart as bV, InitialDataResponse as bW, SignatureResponse as bX, TransactionResponse as bY, HostResponseMessage as bZ, ChallengeQueryOperators as b_, EmailId as ba, WalletId as bb, AppId as bc, ChallengeId as bd, TestId as be, CustomerScreeningId as bf, TagId as bg, ActionId as bh, TagsToTransactionReviewsId as bi, TransactionAddressesId as bj, TransactionId as bk, TransactionFeesId as bl, TransactionReviewId as bm, TransactionPartiesId as bn, TransactionInfosId as bo, TransactionExtractedInfosId as bp, TransactionMethodsId as bq, TransactionMethodExtractedInfosId as br, InstitutionId as bs, InstitutionExtractedInfosId as bt, ScenarioId as bu, ListId as bv, QueryId as bw, generateId as bx, MemberId as by, ScenarioAuthorizationData as bz, NEXERA_TEZOS_CHAINS as c, AuthorizationRequestMessageTypes as c$, ChallengeQueryOperator as c0, OperatorToChallengeQueryOperator as c1, ChallengeQueryOperatorToOperator as c2, ChallengeQuerySchema as c3, ExecuteChallengeQueryInput as c4, ExecuteChallengeQueryConfig as c5, OpaChallengeQueryResponse as c6, ExecuteChallengeQueryResponse as c7, OPAChallengeQuery as c8, OffChainZKPRuleResult as c9, GetTxAuthSigRequestTezos as cA, GetTxAuthSigResponseTezos as cB, HostRequestMessage as cC, IdentityResponseMessage as cD, GenerateWalletChallengeRequest as cE, AuthSession as cF, AuthSessionData as cG, ChallengeResponse as cH, WalletSignResponse as cI, TxAuthDataSignatureGatingRequest as cJ, GetCustomerStatusRequest as cK, IdentitySdkMessage as cL, IdentitySdkMessageWithIdentifier as cM, TxAuthDataSignatureResponse as cN, GetCustomerStatusResponse as cO, IdentityAppMessage as cP, IdentityWallet as cQ, HostMessage as cR, IdentityMessage as cS, RequiredDataRowSchema as cT, RequiredVerificationData as cU, MediaType as cV, MediaTypePID as cW, CIRCUIT_IDS as cX, CircuitId as cY, ZeroKnowledgeProofRequest as cZ, AUTHORIZATION_REQUEST_MESSAGE_TYPES as c_, SdkVerificationOutput as ca, VerificationSessionStatuses as cb, VerificationSessionStatus as cc, VerificationOutput as cd, ScenarioTypes as ce, ScenarioType as cf, ScenarioStatuses as cg, ScenarioStatus as ch, RuleEngineResponse as ci, ScenarioExecutionResponse as cj, RuleResultStatuses as ck, RuleResultStatus as cl, RuleResultStatusLabels as cm, ComplianceImplementationStepsInput as cn, SimplifiedCredential as co, GetCredentialsRequest as cp, GetCredentialsResponse as cq, PolygonIdRequestData as cr, PolygonIdRequest as cs, PolygonIdResponseData as ct, PolygonIdResponse as cu, StartFlowRequest as cv, IsVerifiedRequest as cw, IsVerifiedResponse as cx, GetTxAuthSigRequest as cy, GetTxAuthSigResponse as cz, NEXERA_COSMOS_CHAINS as d, CreateAuthRequestProps as d$, AuthorizationRequestMessageType as d0, AuthorizationRequestMessage as d1, ProofData as d2, ZeroKnowledgeProofResponse as d3, AuthorizationResponseMessage as d4, CredentialQrCodeData as d5, AuthQrCodeData as d6, QrCodeLinkWithSchemaType as d7, parseIden3Message as d8, parseSessionIdFromUrl as d9, QueryConfiguration as dA, NonParsedQueryConfiguration as dB, CreateQueryConfigurationInput as dC, CreateQueryConfigurationResponse as dD, UpdateQueryConfigurationInput as dE, UpdateQueryConfigurationResponse as dF, DeleteQueryConfigurationInput as dG, DeleteQueryConfigurationResponse as dH, QueryCredentialTypes as dI, QueryCredentialType as dJ, TxAuthInput as dK, ApiTxAuthInput as dL, TxSignatureResponse as dM, GetTxAuthDataSignatureResponse as dN, TezosTxAuthInput as dO, ApiTezosTxAuthInput as dP, TezosTxSignatureResponse as dQ, GetTezosTxAuthDataSignatureResponse as dR, ExtendedTxAuthInput as dS, ExtendedTezosTxAuthInput as dT, AnyTxAuthInput as dU, ExtendedTxAuthDataSignatureResponse as dV, ExtendedTezosTxAuthDataSignatureResponse as dW, AnyTxAuthDataSignatureResponse as dX, ZKPRequest as dY, ZKPRequestFromZKVerifier as dZ, OffChainZKP as d_, AllCredentialAttributes as da, AllCredentialValues as db, OPERATORS as dc, Operator as dd, ZKPOperator as de, operatorDisplayMap as df, ARRAY_OPERATORS as dg, ArrayOperator as dh, STRING_OPERATORS as di, StringOperator as dj, NUMERIC_OPERATORS as dk, NumericOperator as dl, BOOLEAN_OPERATORS as dm, BooleanOperator as dn, DATE_OPERATORS as dp, DateOperator as dq, SUPPORTED_TYPES as dr, SupportedType as ds, SupportedTypes as dt, IDInformation as du, QueryConfig as dv, QueryType as dw, QueryConfigSimplified as dx, PartialQueryConfigSimplified as dy, QueryConfigSimplifiedParsed as dz, NEXERA_STARKNET_CHAINS as e, CreateZKProofRequestProps as e0, AllScenarioExecutionAuthorizationData as e1, ProjectAuthorizationData as e2, OnChainZKP as e3, OnChainZKPFromNexeraID as e4, OnChainZKPScenarioFromCms as e5, OnChainZKPPayload as e6, SCENARIO_AUTHORIZATION_STATUSES as e7, ScenarioAuthorizationStatus as e8, WalletSignatureResponse as e9, IDScanPassportCredentialSubjectSchema as eA, IDScanSelfieCredentialSubjectSchema as eB, OLD_IDImageCredentialSubjectSchema as eC, OLD_IDInformationCredentialSubjectSchema as eD, OLD_ProofOfResidenceCredentialSubjectSchema as eE, OLD_SelfieImageCredentialSubjectSchema as eF, OLD_AMLScreeningsResultsCredentialSubjectSchema as eG, IDInformationCredentialSubjectSchema as eH, IDImageCredentialSubjectSchema as eI, SelfieImageCredentialSubjectSchema as eJ, ProofOfResidenceCredentialSubjectSchema as eK, GenericVerifiableCredentialSchema as eL, CredentialSchemas as eM, CredentialNames as eN, NexeraCredentialType as eO, getCredentialName as eP, CredentialType as eQ, VerifiableCredential as eR, CredentialMediaType as eS, _toConsumableArray as eT, _toArray as eU, _arrayWithHoles as eV, _unsupportedIterableToArray as eW, _nonIterableRest as eX, _defineProperty as eY, VerifyWalletChallengeRequest as ea, FLOW_TYPES as eb, FlowType as ec, VerificationModes as ed, VerificationMode as ee, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as ef, IdentityDocumentCountryListOption as eg, IDENTITY_DOCUMENT_OPTIONS as eh, IdentityDocumentOptionsType as ei, PERSONAL_INFORMATION_FIELDS as ej, PersonalInformationFieldsIdentityDocuments as ek, Identifier as el, AdditionalCustomerInformationParams as em, OrganizationId as en, WorkspaceId as eo, WorkflowId as ep, CustomerId as eq, IdentityWidgetAccessToken as er, ExternalCustomerId as es, IdentityAppV2Web3JWT as et, IdentityAppV2Web2JWT as eu, IdentityWidgetAccessToken_NEW as ev, IdentityWidgetSessionToken as ew, Web2CreateSessionParams as ex, ID3CredentialSubjectSchema as ey, IDScanCredentialSubjectSchema as ez, NEXERA_EVM_CHAIN_NAMES as f, NEXERA_EVM_CHAIN_NAMES_LIST as g, NEXERA_CHAIN_VALUES as h, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as i, EvmChainId as j, PolygonNetworkNames as k, NEXERA_TEZOS_CHAIN_NAMES as l, NEXERA_TEZOS_CHAIN_NAMES_LIST as m, NEXERA_TEZOS_CHAIN_VALUES as n, ACTIVE_TEZOS_CHAIN_VALUES as o, COSMOS_CHAIN_NAMES as p, COSMOS_CHAIN_NAMES_LIST as q, COSMOS_CHAIN_VALUES as r, ACTIVE_COSMOS_CHAIN_VALUES as s, CosmosChainId as t, NEXERA_STARKNET_CHAIN_NAMES as u, NEXERA_STARKNET_CHAIN_VALUES as v, NEXERA_ACTIVE_STARKNET_CHAIN_VALUES as w, isValidAddress as x, String0x as y, PrivateKey as z };
3290
+ export { SpSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, PublicKey as D, EVM_BLOCK_TIME as E, AddressSchema as F, TxHash as G, EIP155Signature as H, FunctionCallData as I, shortAddress as J, AptosAddress as K, AptosSignature as L, StarknetAddress as M, NEXERA_EVM_CHAINS as N, StarknetSignature as O, POLYGON_NETWORK_NAMES as P, PolkadotAddress as Q, PolkadotSignature as R, StarknetChainId as S, TezosChainId as T, CosmosAddress as U, CosmosSignature as V, TezosImplicitAddress as W, TezosContractAddress as X, TezosAddress as Y, TezosEntrypointName as Z, EdSignature as _, NEXERA_EVM_CHAINS_ID as a, TransactionMethodsPrefix as a$, P2Signature as a0, TezosSignature as a1, CardanoAddress as a2, CardanoSignature as a3, BlockchainAddress as a4, BlockchainSignature as a5, BLOCKCHAIN_NAMESPACES as a6, BlockchainNamespace as a7, BLOCKCHAIN_NAMESPACES_NAMES as a8, DISPLAYED_LOCKCHAIN_NAMESPACES as a9, CustomerOnboardingLevels as aA, CustomerOnboardingLevel as aB, CustomerStatuses as aC, CustomerStatus as aD, BasicCustomerContactInformation as aE, CUSTOMERS_CHARTS as aF, CustomersChartType as aG, CUSTOMER_TABLE_COLUMNS as aH, CustomerTableColumn as aI, CUSTOMER_AUTOMATION_REASONS as aJ, StoragePrefix as aK, IdentityPrefix as aL, EmailPrefix as aM, WalletPrefix as aN, AppPrefix as aO, ChallengePrefix as aP, TestPrefix as aQ, CustomerScreeningPrefix as aR, TagPrefix as aS, TagsToTransactionReviewsPrefix as aT, TransactionAddressesPrefix as aU, TransactionPrefix as aV, TransactionFeesPrefix as aW, TransactionReviewPrefix as aX, TransactionPartiesPrefix as aY, TransactionInfosPrefix as aZ, TransactionExtractedInfosPrefix as a_, DisplayedBlockchainNamespace as aa, BLOCKCHAIN_NAME_TO_NAMESPACE as ab, BLOCKCHAIN_NAMESPACE_TO_NAME as ac, ENVS as ad, EnvironmentSchema as ae, UuidString as af, OtpCode as ag, ZodParse as ah, shortBlockchainAddress as ai, PUBLIC_SERVICES_SCHEMA_MAP as aj, IpAddress as ak, ISO3CountryCode as al, ALPHA_2_COUNTRIES as am, Alpha2Country as an, countryISO3toISO2Mapping as ao, countryISO2toISO3Mapping as ap, isoCountriesNameFromISO2 as aq, parseISO3CountryCode as ar, RiskScoreTypes as as, RiskScoreType as at, CustomerTypes as au, CustomerType as av, KycOnboardingLevels as aw, KycOnboardingLevel as ax, KybOnboardingLevels as ay, KybOnboardingLevel as az, NexeraEvmChains as b, ScenarioType as b$, TransactionMethodExtractedInfosPrefix as b0, InstitutionPrefix as b1, InstitutionExtractedInfosPrefix as b2, ScenarioPrefix as b3, ListPrefix as b4, QueryPrefix as b5, ActionPrefix as b6, createBrandedSchemaId as b7, StorageId as b8, IdentityId as b9, SdkVerificationResponseSchema as bA, CloseScreenNotification as bB, KycCompletionData as bC, KycCompletionNotification as bD, RuleEngineScenarioExecutionData as bE, OffChainScenarioExecutionData as bF, OnChainScenarioExecutionData as bG, ScenarioExecutionData as bH, ScenarioExecutionNotification as bI, IsVerifiedNotification as bJ, PolygonIdInitialized as bK, OcvSdkInitialized as bL, StartCompletedNotification as bM, IdentityNotificationMessage as bN, InitialDataRequest as bO, SignatureRequest as bP, TransactionData as bQ, SendTransactionRequest as bR, IdentityRequestMessage as bS, AVAILABLE_FLOWS as bT, AvailableFlow as bU, DataAvailableOnStart as bV, InitialDataResponse as bW, SignatureResponse as bX, TransactionResponse as bY, HostResponseMessage as bZ, ScenarioTypes as b_, EmailId as ba, WalletId as bb, AppId as bc, ChallengeId as bd, TestId as be, CustomerScreeningId as bf, TagId as bg, ActionId as bh, TagsToTransactionReviewsId as bi, TransactionAddressesId as bj, TransactionId as bk, TransactionFeesId as bl, TransactionReviewId as bm, TransactionPartiesId as bn, TransactionInfosId as bo, TransactionExtractedInfosId as bp, TransactionMethodsId as bq, TransactionMethodExtractedInfosId as br, InstitutionId as bs, InstitutionExtractedInfosId as bt, ScenarioId as bu, ListId as bv, QueryId as bw, generateId as bx, MemberId as by, ScenarioAuthorizationData as bz, NEXERA_TEZOS_CHAINS as c, AuthQrCodeData as c$, BaseQueryResponse as c0, OffChainZKPRuleResult as c1, ExecuteQueryResponse as c2, RuleEngineResponse as c3, ScenarioExecutionResponse as c4, RuleResultStatuses as c5, RuleResultStatus as c6, RuleResultStatusLabels as c7, SdkVerificationOutput as c8, VerificationSessionStatuses as c9, ChallengeResponse as cA, WalletSignResponse as cB, TxAuthDataSignatureGatingRequest as cC, GetCustomerStatusRequest as cD, IdentitySdkMessage as cE, IdentitySdkMessageWithIdentifier as cF, TxAuthDataSignatureResponse as cG, GetCustomerStatusResponse as cH, IdentityAppMessage as cI, IdentityWallet as cJ, HostMessage as cK, IdentityMessage as cL, RequiredDataRowSchema as cM, RequiredVerificationData as cN, MediaType as cO, MediaTypePID as cP, CIRCUIT_IDS as cQ, CircuitId as cR, ZeroKnowledgeProofRequest as cS, AUTHORIZATION_REQUEST_MESSAGE_TYPES as cT, AuthorizationRequestMessageTypes as cU, AuthorizationRequestMessageType as cV, AuthorizationRequestMessage as cW, ProofData as cX, ZeroKnowledgeProofResponse as cY, AuthorizationResponseMessage as cZ, CredentialQrCodeData as c_, VerificationSessionStatus as ca, VerificationOutput as cb, Scenario as cc, AbbreviatedWorkflowScenario as cd, TemplateScenario as ce, CreateTemplateScenario as cf, ComplianceImplementationStepsInput as cg, SimplifiedCredential as ch, GetCredentialsRequest as ci, GetCredentialsResponse as cj, PolygonIdRequestData as ck, PolygonIdRequest as cl, PolygonIdResponseData as cm, PolygonIdResponse as cn, StartFlowRequest as co, IsVerifiedRequest as cp, IsVerifiedResponse as cq, GetTxAuthSigRequest as cr, GetTxAuthSigResponse as cs, GetTxAuthSigRequestTezos as ct, GetTxAuthSigResponseTezos as cu, HostRequestMessage as cv, IdentityResponseMessage as cw, GenerateWalletChallengeRequest as cx, AuthSession as cy, AuthSessionData as cz, NEXERA_COSMOS_CHAINS as d, AllScenarioExecutionAuthorizationData as d$, QrCodeLinkWithSchemaType as d0, parseIden3Message as d1, parseSessionIdFromUrl as d2, AllCredentialAttributes as d3, AllCredentialValues as d4, OPERATORS as d5, Operator as d6, ZKPOperator as d7, operatorDisplayMap as d8, ARRAY_OPERATORS as d9, DeleteQueryConfigurationResponse as dA, QueryCredentialTypes as dB, QueryCredentialType as dC, ChallengeQuerySchema as dD, CHALLENGE_QUERY_OPERATORS as dE, ChallengeQueryOperator as dF, OperatorMappings as dG, OperatorToChallengeQueryOperator as dH, ChallengeQueryOperatorToOperator as dI, TxAuthInput as dJ, ApiTxAuthInput as dK, TxSignatureResponse as dL, GetTxAuthDataSignatureResponse as dM, TezosTxAuthInput as dN, ApiTezosTxAuthInput as dO, TezosTxSignatureResponse as dP, GetTezosTxAuthDataSignatureResponse as dQ, ExtendedTxAuthInput as dR, ExtendedTezosTxAuthInput as dS, AnyTxAuthInput as dT, ExtendedTxAuthDataSignatureResponse as dU, ExtendedTezosTxAuthDataSignatureResponse as dV, AnyTxAuthDataSignatureResponse as dW, ZKPRequest as dX, ZKPRequestFromZKVerifier as dY, OffChainZKP as dZ, CreateAuthRequestProps as d_, ArrayOperator as da, STRING_OPERATORS as db, StringOperator as dc, NUMERIC_OPERATORS as dd, NumericOperator as de, BOOLEAN_OPERATORS as df, BooleanOperator as dg, DATE_OPERATORS as dh, DateOperator as di, SUPPORTED_TYPES as dj, SupportedType as dk, SupportedTypes as dl, IDInformation as dm, QueryConfig as dn, QueryType as dp, QueryConfigSimplified as dq, PartialQueryConfigSimplified as dr, QueryConfigSimplifiedParsed as ds, QueryConfiguration as dt, NonParsedQueryConfiguration as du, CreateQueryConfigurationInput as dv, CreateQueryConfigurationResponse as dw, UpdateQueryConfigurationInput as dx, UpdateQueryConfigurationResponse as dy, DeleteQueryConfigurationInput as dz, NEXERA_STARKNET_CHAINS as e, SCENARIO_AUTHORIZATION_STATUSES as e0, ScenarioAuthorizationStatus as e1, WalletSignatureResponse as e2, VerifyWalletChallengeRequest as e3, FLOW_TYPES as e4, FlowType as e5, VerificationModes as e6, VerificationMode as e7, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as e8, IdentityDocumentCountryListOption as e9, IDInformationCredentialSubjectSchema as eA, IDImageCredentialSubjectSchema as eB, SelfieImageCredentialSubjectSchema as eC, ProofOfResidenceCredentialSubjectSchema as eD, GenericVerifiableCredentialSchema as eE, CredentialSchemas as eF, CredentialNames as eG, NexeraCredentialType as eH, getCredentialName as eI, CredentialType as eJ, VerifiableCredential as eK, CredentialMediaType as eL, _toConsumableArray as eM, _toArray as eN, _arrayWithHoles as eO, _unsupportedIterableToArray as eP, _nonIterableRest as eQ, _defineProperty as eR, IDENTITY_DOCUMENT_OPTIONS as ea, IdentityDocumentOptionsType as eb, PERSONAL_INFORMATION_FIELDS as ec, PersonalInformationFieldsIdentityDocuments as ed, Identifier as ee, AdditionalCustomerInformationParams as ef, OrganizationId as eg, WorkspaceId as eh, WorkflowId as ei, CustomerId as ej, IdentityWidgetAccessToken as ek, ExternalCustomerId as el, IdentityAppV2Web3JWT as em, IdentityAppV2Web2JWT as en, IdentityWidgetAccessToken_NEW as eo, IdentityWidgetSessionToken as ep, Web2CreateSessionParams as eq, ID3CredentialSubjectSchema as er, IDScanCredentialSubjectSchema as es, IDScanPassportCredentialSubjectSchema as et, IDScanSelfieCredentialSubjectSchema as eu, OLD_IDImageCredentialSubjectSchema as ev, OLD_IDInformationCredentialSubjectSchema as ew, OLD_ProofOfResidenceCredentialSubjectSchema as ex, OLD_SelfieImageCredentialSubjectSchema as ey, OLD_AMLScreeningsResultsCredentialSubjectSchema as ez, NEXERA_EVM_CHAIN_NAMES as f, NEXERA_EVM_CHAIN_NAMES_LIST as g, NEXERA_CHAIN_VALUES as h, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as i, EvmChainId as j, PolygonNetworkNames as k, NEXERA_TEZOS_CHAIN_NAMES as l, NEXERA_TEZOS_CHAIN_NAMES_LIST as m, NEXERA_TEZOS_CHAIN_VALUES as n, ACTIVE_TEZOS_CHAIN_VALUES as o, COSMOS_CHAIN_NAMES as p, COSMOS_CHAIN_NAMES_LIST as q, COSMOS_CHAIN_VALUES as r, ACTIVE_COSMOS_CHAIN_VALUES as s, CosmosChainId as t, NEXERA_STARKNET_CHAIN_NAMES as u, NEXERA_STARKNET_CHAIN_VALUES as v, NEXERA_ACTIVE_STARKNET_CHAIN_VALUES as w, isValidAddress as x, String0x as y, PrivateKey as z };