@nexeraid/identity-schemas 2.72.0 → 2.74.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.
- package/dist/{CoinMarketCap.schema-be687f87.esm.mjs → CoinMarketCap.schema-55b8c72b.esm.mjs} +2 -2
- package/dist/{CoinMarketCap.schema-7fddd846.cjs.dev.cjs → CoinMarketCap.schema-73597e44.cjs.dev.cjs} +2 -2
- package/dist/{CoinMarketCap.schema-8a4e841b.cjs.prod.cjs → CoinMarketCap.schema-a0e3284a.cjs.prod.cjs} +2 -2
- package/dist/declarations/src/identity/app-requests.schema.d.ts +37 -37
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +9 -9
- package/dist/declarations/src/identity/kyc.schema.d.ts +27 -27
- package/dist/declarations/src/identity/query.schema.d.ts +33 -44
- package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/scenario.schema.d.ts +30 -30
- package/dist/declarations/src/identity/zkps.schema.d.ts +17 -17
- package/dist/declarations/src/identity-ids.schema.d.ts +33 -2
- package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
- package/dist/declarations/src/vault/index.d.ts +1 -0
- package/dist/declarations/src/vault/index.d.ts.map +1 -1
- package/dist/declarations/src/vault/schemas/Customer.zod.d.ts +241 -0
- package/dist/declarations/src/vault/schemas/Customer.zod.d.ts.map +1 -0
- package/dist/declarations/src/vault/schemas/generated/Customer.schema.json.d.ts +16 -9
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts +2 -9
- package/dist/declarations/src/vault/schemas/generated/Customer.type.d.ts.map +1 -1
- package/dist/declarations/src/vault/vault.schema.d.ts +14 -63
- package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
- package/dist/{identity-api.schema-91d02295.esm.mjs → identity-api.schema-698da711.esm.mjs} +10 -8
- package/dist/{identity-api.schema-bf80ff6a.cjs.prod.cjs → identity-api.schema-86cf92dd.cjs.prod.cjs} +10 -8
- package/dist/{identity-api.schema-f7ff4d23.cjs.dev.cjs → identity-api.schema-f273d197.cjs.dev.cjs} +10 -8
- package/dist/nexeraid-identity-schemas.cjs.dev.cjs +18 -3
- package/dist/nexeraid-identity-schemas.cjs.prod.cjs +18 -3
- package/dist/nexeraid-identity-schemas.esm.mjs +4 -4
- package/dist/package.json +4 -5
- package/dist/{tfhe-utilities-4eb5dde5.cjs.prod.cjs → tfhe-utilities-2bc50d3e.cjs.prod.cjs} +2 -2
- package/dist/{tfhe-utilities-949889ba.cjs.dev.cjs → tfhe-utilities-36b44d38.cjs.dev.cjs} +2 -2
- package/dist/{tfhe-utilities-5443554b.esm.mjs → tfhe-utilities-ca582b5e.esm.mjs} +2 -2
- package/dist/{vault.schema-715ccfa0.cjs.dev.cjs → vault.schema-03f54b78.cjs.dev.cjs} +154 -113
- package/dist/{vault.schema-dcb18640.esm.mjs → vault.schema-4c134301.esm.mjs} +140 -114
- package/dist/{vault.schema-fbc2d7e0.cjs.prod.cjs → vault.schema-6c801a7d.cjs.prod.cjs} +154 -113
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
- package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
- package/package.json +5 -6
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +3 -3
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +3 -3
- package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +3 -1
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +3 -1
- package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +1 -1
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { U as ACTIVE_APTOS_CHAIN_IDS, K as ACTIVE_BITCOIN_CHAIN_IDS, a4 as ACTIVE_CARDANO_CHAIN_IDS, k as ACTIVE_COSMOS_CHAIN_IDS, A as ACTIVE_EVM_CHAIN_VALUES, _ as ACTIVE_POLKADOT_CHAIN_IDS, D as ACTIVE_SOLANA_CHAIN_IDS, q as ACTIVE_TEZOS_CHAIN_IDS, a$ as ALPHA_2_COUNTRIES, R as APTOS_CHAIN_IDS, O as APTOS_CHAIN_NAMES, Q as APTOS_CHAIN_NAMES_LIST,
|
|
1
|
+
export { U as ACTIVE_APTOS_CHAIN_IDS, K as ACTIVE_BITCOIN_CHAIN_IDS, a4 as ACTIVE_CARDANO_CHAIN_IDS, k as ACTIVE_COSMOS_CHAIN_IDS, A as ACTIVE_EVM_CHAIN_VALUES, _ as ACTIVE_POLKADOT_CHAIN_IDS, D as ACTIVE_SOLANA_CHAIN_IDS, q as ACTIVE_TEZOS_CHAIN_IDS, a$ as ALPHA_2_COUNTRIES, R as APTOS_CHAIN_IDS, O as APTOS_CHAIN_NAMES, Q as APTOS_CHAIN_NAMES_LIST, bZ as ActionId, bB as ActionPrefix, cF as AdditionalCustomerInformationParams, a9 as AddressSchema, cn as AiAgentId, bI as AiAgentPrefix, cm as AiDocumentId, bH as AiDocumentPrefix, ck as AiExecutionId, bF as AiExecutionPrefix, cl as AiExecutionStepId, bG as AiExecutionStepPrefix, ct as AiMessageId, bM as AiMessagePrefix, co as AiStepId, bJ as AiStepPrefix, b0 as Alpha2Country, dO as AmlResults, bU as AppId, bd as AppPrefix, ac as AptosAddress, V as AptosChainId, aE as AptosSignature, J as BITCOIN_CHAIN_IDS, H as BITCOIN_CHAIN_NAMES, I as BITCOIN_CHAIN_NAMES_LIST, au as BLOCKCHAIN_NAMESPACES, aC as BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL, aB as BLOCKCHAIN_NAMESPACE_TO_NAME, aA as BLOCKCHAIN_NAME_TO_NAMESPACE, aq as BitcoinAddress, am as BitcoinBech32Address, L as BitcoinChainId, ak as BitcoinP2PKHAddress, al as BitcoinP2SHAddress, ap as BitcoinTestnetBech32Address, an as BitcoinTestnetP2PKHAddress, ao as BitcoinTestnetP2SHAddress, ar as BlockchainAddress, B as BlockchainId, av as BlockchainNamespace, aN as BlockchainSignature, a3 as CARDANO_CHAIN_IDS, a1 as CARDANO_CHAIN_NAMES, a2 as CARDANO_CHAIN_NAMES_LIST, j as COSMOS_CHAIN_IDS, C as COSMOS_CHAIN_NAMES, i as COSMOS_CHAIN_NAMES_LIST, aj as CardanoAddress, a5 as CardanoChainId, aM as CardanoSignature, bV as ChallengeId, be as ChallengePrefix, cr as ChatId, bK as ChatPrefix, af as CosmosAddress, l as CosmosChainId, aH as CosmosSignature, b3 as CountryName, aZ as CryptoCode, aY as CryptoCodes, aX as CurrencyCode, aW as CurrencyCodes, cJ as CustomerId, bX as CustomerScreeningId, bg as CustomerScreeningPrefix, dK as DEFAULT_FIAT_CURRENCY, ay as DISPLAYED_BLOCKCHAIN_NAMESPACES, dT as DataLinkTypeZodSchema, dR as DataLinkVersionZodSchema, dP as DetectedDuplicates, az as DisplayedBlockchainNamespace, aD as EIP155Signature, aQ as ENVS, E as EVM_BLOCK_TIME, f as EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC, aI as EdSignature, bS as EmailId, bb as EmailPrefix, aR as EnvironmentSchema, g as EvmChainId, cK as ExternalCustomerId, cu as FLOW_TYPES, cv as FlowType, aO as FunctionCallData, e6 as GenericVaultDataLinkZodSchema, e5 as GenericVaultEmbeddedLinkZodSchema, e3 as GenericVaultPointerLinkZodSchema, e4 as GenericVaultSearchLinkZodSchema, d2 as GenericVerifiableCredentialSchema, at as HexadecimalSchema, dv as HumanReadableTransactionReviewStatus, du as HumanReadableTransactionReviewStatuses, dx as HumanReadableTransactionStatusMapping, d8 as ID3CredentialSchema, cQ as ID3CredentialSubjectSchema, cy as IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS, cA as IDENTITY_DOCUMENT_OPTIONS, d5 as IDImageCredentialSchema, c$ as IDImageCredentialSubjectSchema, d4 as IDInformationCredentialSchema, c_ as IDInformationCredentialSubjectSchema, d3 as IDInformationTfheCredentialSchema, cZ as IDInformationTfheCredentialSubjectSchema, d9 as IDScanCredentialSchema, cR as IDScanCredentialSubjectSchema, da as IDScanPassportCredentialSchema, cS as IDScanPassportCredentialSubjectSchema, db as IDScanSelfieCredentialSchema, cT as IDScanSelfieCredentialSubjectSchema, a_ as ISO3CountryCode, cE as Identifier, cM as IdentityAppV2Web2JWT, cL as IdentityAppV2Web3JWT, cz as IdentityDocumentCountryListOption, cB as IdentityDocumentOptionsType, bR as IdentityId, ba as IdentityPrefix, cN as IdentityWidgetAccessToken_NEW, cO as IdentityWidgetSessionToken, cb as InstitutionExtractedInfosId, bw as InstitutionExtractedInfosPrefix, ca as InstitutionId, bv as InstitutionPrefix, aV as IpAddress, ce as ListId, bz as ListPrefix, cq as MemberId, cs as MessageId, bL as MessagePrefix, b_ as MetaAlertId, bj as MetaAlertPrefix, v as NEXERA_ACTIVE_STARKNET_CHAIN_IDS, M as NEXERA_APTOS_CHAINS, G as NEXERA_BITCOIN_CHAINS, a0 as NEXERA_CARDANO_CHAINS, h as NEXERA_COSMOS_CHAINS, a as NEXERA_EVM_CHAINS, d as NEXERA_EVM_CHAINS_ID, b as NEXERA_EVM_CHAIN_NAMES, c as NEXERA_EVM_CHAIN_NAMES_LIST, W as NEXERA_POLKADOT_CHAINS, w as NEXERA_SOLANA_CHAINS, s as NEXERA_STARKNET_CHAINS, u as NEXERA_STARKNET_CHAIN_IDS, t as NEXERA_STARKNET_CHAIN_NAMES, m as NEXERA_TEZOS_CHAINS, p as NEXERA_TEZOS_CHAIN_IDS, n as NEXERA_TEZOS_CHAIN_NAMES, o as NEXERA_TEZOS_CHAIN_NAMES_LIST, e as NexeraEvmChains, N as NonTestnetBlockchainId, dg as OLD_AMLScreeningsResultsCredentialSchema, cY as OLD_AMLScreeningsResultsCredentialSubjectSchema, dc as OLD_IDImageCredentialSchema, cU as OLD_IDImageCredentialSubjectSchema, dd as OLD_IDInformationCredentialSchema, cV as OLD_IDInformationCredentialSubjectSchema, de as OLD_ProofOfResidenceCredentialSchema, cW as OLD_ProofOfResidenceCredentialSubjectSchema, df as OLD_SelfieImageCredentialSchema, cX as OLD_SelfieImageCredentialSubjectSchema, cG as OrganizationId, aT as OtpCode, aK as P2Signature, cC as PERSONAL_INFORMATION_FIELDS, Z as POLKADOT_CHAIN_IDS, X as POLKADOT_CHAIN_NAMES, Y as POLKADOT_CHAIN_NAMES_LIST, P as POLYGON_NETWORK_NAMES, aU as PUBLIC_SERVICES_SCHEMA_MAP, dF as PaymentType, dE as PaymentTypes, cD as PersonalInformationFieldsIdentityDocuments, ae as PolkadotAddress, $ as PolkadotChainId, aG as PolkadotSignature, r as PolygonNetworkNames, a7 as PrivateKey, d7 as ProofOfResidenceCredentialSchema, d1 as ProofOfResidenceCredentialSubjectSchema, a8 as PublicKey, cf as QueryId, bA as QueryPrefix, z as SOLANA_CHAIN_IDS, x as SOLANA_CHAIN_NAMES, y as SOLANA_CHAIN_NAMES_LIST, aw as SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH, cd as ScenarioId, by as ScenarioPrefix, cg as ScorechainAnalysisId, bi as ScorechainAnalysisPrefix, b7 as ScorechainCountry, e7 as ScorechainEntityRecord, d6 as SelfieImageCredentialSchema, d0 as SelfieImageCredentialSubjectSchema, dU as Separator, F as SolanaChainId, aJ as SpSignature, cj as SsssChunkId, bE as SsssChunkPrefix, ci as SsssShareId, bD as SsssSharePrefix, ad as StarknetAddress, S as StarknetChainId, aF as StarknetSignature, bQ as StorageId, b9 as StoragePrefix, as as String0x, ax as SupportedBlockchainNamespaceForSignatureAuth, dL as TRANSACTIONS_STATS_CURRENCIES, dh as TRANSACTION_CHARTS, dj as TRANSACTION_TABLE_COLUMNS, bY as TagId, bh as TagPrefix, b$ as TagsToTransactionReviewsId, bk as TagsToTransactionReviewsPrefix, bW as TestId, bf as TestPrefix, ai as TezosAddress, T as TezosChainId, ah as TezosContractAddress, aP as TezosEntrypointName, ag as TezosImplicitAddress, aL as TezosSignature, c2 as TransactionActivityId, bn as TransactionActivityPrefix, c0 as TransactionAddressesId, bl as TransactionAddressesPrefix, cc as TransactionAmountId, bx as TransactionAmountPrefix, dJ as TransactionAmountsFieldName, dI as TransactionAmountsFieldNames, dB as TransactionCurrencyCode, dA as TransactionCurrencyCodes, dN as TransactionDataEventObject, dz as TransactionDirection, dy as TransactionDirections, c7 as TransactionExtractedInfosId, bs as TransactionExtractedInfosPrefix, c3 as TransactionFeesId, bo as TransactionFeesPrefix, c1 as TransactionId, c6 as TransactionInfosId, br as TransactionInfosPrefix, c9 as TransactionMethodExtractedInfosId, bu as TransactionMethodExtractedInfosPrefix, c8 as TransactionMethodsId, bt as TransactionMethodsPrefix, c5 as TransactionPartiesId, bq as TransactionPartiesPrefix, dH as TransactionPartiesType, dG as TransactionPartiesTypes, bm as TransactionPrefix, dD as TransactionProvider, dC as TransactionProviders, c4 as TransactionReviewId, bp as TransactionReviewPrefix, dt as TransactionReviewStatus, ds as TransactionReviewStatuses, dr as TransactionRiskLevel, dq as TransactionRiskLevels, dM as TransactionStatsCurrency, dw as TransactionStatusMapping, dk as TransactionTableColumn, dm as TransactionType, dp as TransactionTypeWithAll, dl as TransactionTypes, dn as TransactionTypesWithAll, di as TransactionsChartType, aa as TxHash, aS as UuidString, dY as VaultJsonSchemas, e2 as VaultMetadataLinkZodSchema, e0 as VaultPointerKeyMapZodSchema, e1 as VaultQueryMapZodSchema, d_ as VaultSchemaIdZodSchema, d$ as VaultSchemaPathsZodSchema, dZ as VaultZodSchema, cx as VerificationMode, cw as VerificationModes, bT as WalletId, bc as WalletPrefix, e8 as WalletScreeningData, ea as WalletScreeningProvider, e9 as WalletScreeningProviders, cP as Web2CreateSessionParams, cI as WorkflowId, ch as WorkflowSessionAttributeId, bC as WorkflowSessionAttributePrefix, bN as WorkflowSessionId, cH as WorkspaceId, dS as allDataLinkTypes, dQ as allDataLinkVersions, b2 as countryISO2toISO3Mapping, b1 as countryISO3toISO2Mapping, bO as createBrandedSchemaId, bP as createBrandedSchemaIdWithParams, cp as generateId, dV as generateZodObjectPaths, a6 as isValidAddress, b4 as isoCountriesNameFromISO2, b5 as isoCountriesNameFromISO3, b6 as parseISO3CountryCode, dW as resolvePathOnDataSchema, dX as resolvePathOnMapSchema, b8 as scorechainCountriesNameFromISO2, ab as shortBlockchainAddress } from './vault.schema-4c134301.esm.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as CredentialTypes } from './identity-api.schema-
|
|
4
|
-
export { b9 as ARRAY_OPERATORS, aT as AUTHORIZATION_REQUEST_MESSAGE_TYPES, G as AVAILABLE_FLOWS, ac as AbbreviatedWorkflowScenario, bn as AllCredentialValues, c0 as AllScenarioExecutionAuthorizationData, bU as AnyTxAuthDataSignatureResponse, bX as AnyTxAuthInputJsSdk, bN as ApiTezosTxAuthInput, bJ as ApiTxAuthInput, ba as ArrayOperator, a$ as AuthQrCodeData, ax as AuthSession, ay as AuthSessionData, aW as AuthorizationRequestMessage, aV as AuthorizationRequestMessageType, aU as AuthorizationRequestMessageTypes, aZ as AuthorizationResponseMessage, H as AvailableFlow, bf as BOOLEAN_OPERATORS, _ as BackwardsCompatibleScenarioType, Z as BackwardsCompatibleScenarioTypes, $ as BaseQueryResponse, B as BasicCustomerContactInformation, bg as BooleanOperator, aQ as CIRCUIT_IDS, k as CUSTOMERS_CHARTS, o as CUSTOMER_AUTOMATION_REASONS, m as CUSTOMER_TABLE_COLUMNS, bx as ChallengeQuerySchema, az as ChallengeResponse, aR as CircuitId, q as CloseScreenNotification, af as ComplianceImplementationStepsInput, b$ as CreateAuthRequestProps, ae as CreateTemplateScenario, cb as CredentialMediaType, c6 as CredentialNames, a_ as CredentialQrCodeData, c5 as CredentialSchemas, c9 as CredentialType, C as CredentialTypes, h as CustomerOnboardingLevel, g as CustomerOnboardingLevels, j as CustomerStatus, i as CustomerStatuses, n as CustomerTableColumn, c as CustomerType, b as CustomerTypes, l as CustomersChartType, bh as DATE_OPERATORS, J as DataAvailableOnStart, bi as DateOperator, bV as Eip155TxAuthInputJsSdk, a1 as ExecuteQueryResponse, bT as ExtendedTezosTxAuthDataSignatureResponse, bR as ExtendedTezosTxAuthInput, bS as ExtendedTxAuthDataSignatureResponse, bQ as ExtendedTxAuthInput, aw as GenerateWalletChallengeRequest, ah as GetCredentialsRequest, ai as GetCredentialsResponse, aC as GetCustomerStatusRequest, aH as GetCustomerStatusResponse, bP as GetTezosTxAuthDataSignatureResponse, bL as GetTxAuthDataSignatureResponse, aq as GetTxAuthSigRequest, as as GetTxAuthSigRequestTezos, ar as GetTxAuthSigResponse, at as GetTxAuthSigResponseTezos, aK as HostMessage, au as HostRequestMessage, Q as HostResponseMessage, bm as IDInformationTfhe, aI as IdentityAppMessage, aL as IdentityMessage, z as IdentityNotificationMessage, F as IdentityRequestMessage, av as IdentityResponseMessage, aD as IdentitySdkMessage, aE as IdentitySdkMessageWithIdentifier, aJ as IdentityWallet, A as InitialDataRequest, L as InitialDataResponse, I as IsVerifiedNotification, ao as IsVerifiedRequest, ap as IsVerifiedResponse, f as KybOnboardingLevel, e as KybOnboardingLevels, r as KycCompletionData, s as KycCompletionNotification, d as KycOnboardingLevel, K as KycOnboardingLevels, aO as MediaType, aP as MediaTypePID, bd as NUMERIC_OPERATORS, c7 as NexeraCredentialType, be as NumericOperator, by as OLD_CHALLENGE_QUERY_OPERATORS, bz as OLD_ChallengeQueryOperator, bC as OLD_ChallengeQueryOperatorToOperator, bu as OLD_ChallengeQuerySchema, bE as OLD_QueryCredentialType, bD as OLD_QueryCredentialTypes, b5 as OPERATORS, x as OcvSdkInitialized, O as OffChainScenarioExecutionData, a0 as OffChainZKPRuleResult, u as OnChainScenarioExecutionData, b6 as Operator, bA as OperatorMappings, bB as OperatorToOLD_ChallengeQueryOperator, bt as PartialQueryConfigSimplified, P as PolygonIdInitialized, ak as PolygonIdRequest, aj as PolygonIdRequestData, am as PolygonIdResponse, al as PolygonIdResponseData, b_ as PrivacyPreservingMonitoring, aX as ProofData, b3 as QUERY_LOGIC_OPERATOR, b0 as QrCodeLinkWithSchemaType, bo as QueriesOptions, br as QueryConfigSimplified, bq as QueryConfigTfhe, bw as QueryCredentialType, bv as QueryCredentialTypes, b4 as QueryLogicOperator, bp as QueryType, aM as RequiredDataRowSchema, aN as RequiredVerificationData, a as RiskScoreType, R as RiskScoreTypes, a2 as RuleEngineResponse, t as RuleEngineScenarioExecutionData, bs as RuleResultQueryConfig, a5 as RuleResultStatus, a6 as RuleResultStatusLabels, a4 as RuleResultStatuses, c1 as SCENARIO_AUTHORIZATION_STATUSES, bb as STRING_OPERATORS, bj as SUPPORTED_TYPES, ab as Scenario, S as ScenarioAuthorizationData, c2 as ScenarioAuthorizationStatus, v as ScenarioExecutionData, w as ScenarioExecutionNotification, a3 as ScenarioExecutionResponse, Y as ScenarioSchema, X as ScenarioStatus, W as ScenarioStatuses, V as ScenarioType, U as ScenarioTypes, a7 as SdkVerificationOutput, p as SdkVerificationResponseSchema, E as SendTransactionRequest, D as SignatureRequest, M as SignatureResponse, ag as SimplifiedCredential, y as StartCompletedNotification, an as StartFlowRequest, bc as StringOperator, bk as SupportedType, bl as SupportedTypes, ad as TemplateScenario, bM as TezosTxAuthInput, bW as TezosTxAuthInputJsSdk, bO as TezosTxSignatureResponse, T as TransactionData, N as TransactionResponse, aG as TxAuthDataSignatureGatingError, aB as TxAuthDataSignatureGatingRequest, aF as TxAuthDataSignatureResponse, bI as TxAuthInput, bK as TxSignatureResponse, ca as VerifiableCredential, aa as VerificationOutput, a9 as VerificationSessionStatus, a8 as VerificationSessionStatuses, c4 as VerifyWalletChallengeRequest, aA as WalletSignResponse, c3 as WalletSignatureResponse, b7 as ZKPOperator, bY as ZKPRequest, bZ as ZKPRequestFromZKVerifier, aS as ZeroKnowledgeProofRequest, aY as ZeroKnowledgeProofResponse, c8 as getCredentialName, bG as getOldCredentialPath, bF as getOldCredentialType, bH as oldCredentialPathToDataLink, b8 as operatorDisplayMap, b1 as parseIden3Message, b2 as parseSessionIdFromUrl } from './identity-api.schema-
|
|
5
|
-
export { I as IDInformationTfheCredentialSubjectCONFIG, V as VC_JSON_SCHEMA_MAP, c as cleanObject, a as getAvailableFields, g as getCredentialSchemaLocation, b as getFieldConfig } from './tfhe-utilities-
|
|
3
|
+
import { C as CredentialTypes } from './identity-api.schema-698da711.esm.mjs';
|
|
4
|
+
export { b9 as ARRAY_OPERATORS, aT as AUTHORIZATION_REQUEST_MESSAGE_TYPES, G as AVAILABLE_FLOWS, ac as AbbreviatedWorkflowScenario, bn as AllCredentialValues, c0 as AllScenarioExecutionAuthorizationData, bU as AnyTxAuthDataSignatureResponse, bX as AnyTxAuthInputJsSdk, bN as ApiTezosTxAuthInput, bJ as ApiTxAuthInput, ba as ArrayOperator, a$ as AuthQrCodeData, ax as AuthSession, ay as AuthSessionData, aW as AuthorizationRequestMessage, aV as AuthorizationRequestMessageType, aU as AuthorizationRequestMessageTypes, aZ as AuthorizationResponseMessage, H as AvailableFlow, bf as BOOLEAN_OPERATORS, _ as BackwardsCompatibleScenarioType, Z as BackwardsCompatibleScenarioTypes, $ as BaseQueryResponse, B as BasicCustomerContactInformation, bg as BooleanOperator, aQ as CIRCUIT_IDS, k as CUSTOMERS_CHARTS, o as CUSTOMER_AUTOMATION_REASONS, m as CUSTOMER_TABLE_COLUMNS, bx as ChallengeQuerySchema, az as ChallengeResponse, aR as CircuitId, q as CloseScreenNotification, af as ComplianceImplementationStepsInput, b$ as CreateAuthRequestProps, ae as CreateTemplateScenario, cb as CredentialMediaType, c6 as CredentialNames, a_ as CredentialQrCodeData, c5 as CredentialSchemas, c9 as CredentialType, C as CredentialTypes, h as CustomerOnboardingLevel, g as CustomerOnboardingLevels, j as CustomerStatus, i as CustomerStatuses, n as CustomerTableColumn, c as CustomerType, b as CustomerTypes, l as CustomersChartType, bh as DATE_OPERATORS, J as DataAvailableOnStart, bi as DateOperator, bV as Eip155TxAuthInputJsSdk, a1 as ExecuteQueryResponse, bT as ExtendedTezosTxAuthDataSignatureResponse, bR as ExtendedTezosTxAuthInput, bS as ExtendedTxAuthDataSignatureResponse, bQ as ExtendedTxAuthInput, aw as GenerateWalletChallengeRequest, ah as GetCredentialsRequest, ai as GetCredentialsResponse, aC as GetCustomerStatusRequest, aH as GetCustomerStatusResponse, bP as GetTezosTxAuthDataSignatureResponse, bL as GetTxAuthDataSignatureResponse, aq as GetTxAuthSigRequest, as as GetTxAuthSigRequestTezos, ar as GetTxAuthSigResponse, at as GetTxAuthSigResponseTezos, aK as HostMessage, au as HostRequestMessage, Q as HostResponseMessage, bm as IDInformationTfhe, aI as IdentityAppMessage, aL as IdentityMessage, z as IdentityNotificationMessage, F as IdentityRequestMessage, av as IdentityResponseMessage, aD as IdentitySdkMessage, aE as IdentitySdkMessageWithIdentifier, aJ as IdentityWallet, A as InitialDataRequest, L as InitialDataResponse, I as IsVerifiedNotification, ao as IsVerifiedRequest, ap as IsVerifiedResponse, f as KybOnboardingLevel, e as KybOnboardingLevels, r as KycCompletionData, s as KycCompletionNotification, d as KycOnboardingLevel, K as KycOnboardingLevels, aO as MediaType, aP as MediaTypePID, bd as NUMERIC_OPERATORS, c7 as NexeraCredentialType, be as NumericOperator, by as OLD_CHALLENGE_QUERY_OPERATORS, bz as OLD_ChallengeQueryOperator, bC as OLD_ChallengeQueryOperatorToOperator, bu as OLD_ChallengeQuerySchema, bE as OLD_QueryCredentialType, bD as OLD_QueryCredentialTypes, b5 as OPERATORS, x as OcvSdkInitialized, O as OffChainScenarioExecutionData, a0 as OffChainZKPRuleResult, u as OnChainScenarioExecutionData, b6 as Operator, bA as OperatorMappings, bB as OperatorToOLD_ChallengeQueryOperator, bt as PartialQueryConfigSimplified, P as PolygonIdInitialized, ak as PolygonIdRequest, aj as PolygonIdRequestData, am as PolygonIdResponse, al as PolygonIdResponseData, b_ as PrivacyPreservingMonitoring, aX as ProofData, b3 as QUERY_LOGIC_OPERATOR, b0 as QrCodeLinkWithSchemaType, bo as QueriesOptions, br as QueryConfigSimplified, bq as QueryConfigTfhe, bw as QueryCredentialType, bv as QueryCredentialTypes, b4 as QueryLogicOperator, bp as QueryType, aM as RequiredDataRowSchema, aN as RequiredVerificationData, a as RiskScoreType, R as RiskScoreTypes, a2 as RuleEngineResponse, t as RuleEngineScenarioExecutionData, bs as RuleResultQueryConfig, a5 as RuleResultStatus, a6 as RuleResultStatusLabels, a4 as RuleResultStatuses, c1 as SCENARIO_AUTHORIZATION_STATUSES, bb as STRING_OPERATORS, bj as SUPPORTED_TYPES, ab as Scenario, S as ScenarioAuthorizationData, c2 as ScenarioAuthorizationStatus, v as ScenarioExecutionData, w as ScenarioExecutionNotification, a3 as ScenarioExecutionResponse, Y as ScenarioSchema, X as ScenarioStatus, W as ScenarioStatuses, V as ScenarioType, U as ScenarioTypes, a7 as SdkVerificationOutput, p as SdkVerificationResponseSchema, E as SendTransactionRequest, D as SignatureRequest, M as SignatureResponse, ag as SimplifiedCredential, y as StartCompletedNotification, an as StartFlowRequest, bc as StringOperator, bk as SupportedType, bl as SupportedTypes, ad as TemplateScenario, bM as TezosTxAuthInput, bW as TezosTxAuthInputJsSdk, bO as TezosTxSignatureResponse, T as TransactionData, N as TransactionResponse, aG as TxAuthDataSignatureGatingError, aB as TxAuthDataSignatureGatingRequest, aF as TxAuthDataSignatureResponse, bI as TxAuthInput, bK as TxSignatureResponse, ca as VerifiableCredential, aa as VerificationOutput, a9 as VerificationSessionStatus, a8 as VerificationSessionStatuses, c4 as VerifyWalletChallengeRequest, aA as WalletSignResponse, c3 as WalletSignatureResponse, b7 as ZKPOperator, bY as ZKPRequest, bZ as ZKPRequestFromZKVerifier, aS as ZeroKnowledgeProofRequest, aY as ZeroKnowledgeProofResponse, c8 as getCredentialName, bG as getOldCredentialPath, bF as getOldCredentialType, bH as oldCredentialPathToDataLink, b8 as operatorDisplayMap, b1 as parseIden3Message, b2 as parseSessionIdFromUrl } from './identity-api.schema-698da711.esm.mjs';
|
|
5
|
+
export { I as IDInformationTfheCredentialSubjectCONFIG, V as VC_JSON_SCHEMA_MAP, c as cleanObject, a as getAvailableFields, g as getCredentialSchemaLocation, b as getFieldConfig } from './tfhe-utilities-ca582b5e.esm.mjs';
|
|
6
6
|
import 'nanoid';
|
|
7
7
|
import 'decimal.js';
|
|
8
8
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexeraid/identity-schemas",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.74.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -89,16 +89,15 @@
|
|
|
89
89
|
"@nexeraid/logger": "workspace:*",
|
|
90
90
|
"decimal.js": "^10.5.0",
|
|
91
91
|
"nanoid": "3.3.4",
|
|
92
|
-
"remeda": "^2.20.
|
|
92
|
+
"remeda": "^2.20.1",
|
|
93
93
|
"zod": "^3.24.1",
|
|
94
94
|
"zod-to-json-schema": "^3.24.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@types/bun": "^1.2.
|
|
97
|
+
"@types/bun": "^1.2.2",
|
|
98
98
|
"@types/json-schema": "^7.0.15",
|
|
99
99
|
"@unblokttechnology/eslint-config": "workspace:*",
|
|
100
|
-
"bun": "^1.2.
|
|
101
|
-
"bun-types": "^1.2.0",
|
|
100
|
+
"bun": "^1.2.2",
|
|
102
101
|
"json-schema-to-zod": "^2.6.0",
|
|
103
102
|
"ts-json-as-const": "^1.0.7",
|
|
104
103
|
"typescript": "^5.7.3",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vault_schema = require('./vault.schema-
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
3
|
+
var vault_schema = require('./vault.schema-6c801a7d.cjs.prod.cjs');
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-86cf92dd.cjs.prod.cjs');
|
|
5
5
|
|
|
6
6
|
var VC_JSON_SCHEMA_MAP = {
|
|
7
7
|
ProofOfResidence: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vault_schema = require('./vault.schema-
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
3
|
+
var vault_schema = require('./vault.schema-03f54b78.cjs.dev.cjs');
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-f273d197.cjs.dev.cjs');
|
|
5
5
|
|
|
6
6
|
var VC_JSON_SCHEMA_MAP = {
|
|
7
7
|
ProofOfResidence: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { bk as SupportedType, bd as NUMERIC_OPERATORS, b9 as ARRAY_OPERATORS, bf as BOOLEAN_OPERATORS, bb as STRING_OPERATORS } from './identity-api.schema-
|
|
1
|
+
import { ec as _toConsumableArray } from './vault.schema-4c134301.esm.mjs';
|
|
2
|
+
import { bk as SupportedType, bd as NUMERIC_OPERATORS, b9 as ARRAY_OPERATORS, bf as BOOLEAN_OPERATORS, bb as STRING_OPERATORS } from './identity-api.schema-698da711.esm.mjs';
|
|
3
3
|
|
|
4
4
|
var VC_JSON_SCHEMA_MAP = {
|
|
5
5
|
ProofOfResidence: {
|
|
@@ -2621,11 +2621,28 @@ var WorkflowSessionAttributePrefix = "wsatr";
|
|
|
2621
2621
|
// tfhe-client-api
|
|
2622
2622
|
var SsssSharePrefix = "ssssshare";
|
|
2623
2623
|
var SsssChunkPrefix = "sssschunk";
|
|
2624
|
-
// ai related ids
|
|
2625
|
-
var AiExecutionPrefix = "aiexec";
|
|
2626
|
-
var AiExecutionStepPrefix = "aiexest";
|
|
2627
2624
|
|
|
2628
|
-
|
|
2625
|
+
/**
|
|
2626
|
+
* AI related ids
|
|
2627
|
+
*/
|
|
2628
|
+
var AiExecutionPrefix = "aiexec"; // execution id of speicifc agent execution
|
|
2629
|
+
var AiExecutionStepPrefix = "aiexest"; // execution step id of specific agent execution step
|
|
2630
|
+
var AiDocumentPrefix = "aidoc"; // document id of specific document
|
|
2631
|
+
var AiAgentPrefix = "agent"; // agent id of specific agent
|
|
2632
|
+
var AiStepPrefix = "astep"; // step id of specific step
|
|
2633
|
+
|
|
2634
|
+
// Add these with other prefix definitions
|
|
2635
|
+
var ChatPrefix = "chat";
|
|
2636
|
+
var MessagePrefix = "msg";
|
|
2637
|
+
var AiMessagePrefix = "aimsg";
|
|
2638
|
+
|
|
2639
|
+
// Add with other prefix type definitions
|
|
2640
|
+
|
|
2641
|
+
// Add to ID type definitions section
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* End of AI related ids
|
|
2645
|
+
*/
|
|
2629
2646
|
|
|
2630
2647
|
// Add these lines in the type definitions section
|
|
2631
2648
|
|
|
@@ -2663,7 +2680,16 @@ var createBrandedSchemaId = function createBrandedSchemaId(brand) {
|
|
|
2663
2680
|
message: "Invalid ".concat(brand, " id")
|
|
2664
2681
|
});
|
|
2665
2682
|
};
|
|
2666
|
-
|
|
2683
|
+
var createBrandedSchemaIdWithParams = function createBrandedSchemaIdWithParams(brand, params) {
|
|
2684
|
+
return zod.z.custom(function (val) {
|
|
2685
|
+
if (typeof val !== "string") return false;
|
|
2686
|
+
return val.startsWith(brand) && params.every(function (param) {
|
|
2687
|
+
return val.includes(param);
|
|
2688
|
+
});
|
|
2689
|
+
}, {
|
|
2690
|
+
message: "Invalid ".concat(brand, " id")
|
|
2691
|
+
});
|
|
2692
|
+
};
|
|
2667
2693
|
// ---
|
|
2668
2694
|
|
|
2669
2695
|
var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
|
|
@@ -2707,84 +2733,17 @@ var SsssChunkId = createBrandedSchemaId("".concat(SsssChunkPrefix, "_"));
|
|
|
2707
2733
|
// ai related ids
|
|
2708
2734
|
var AiExecutionId = createBrandedSchemaId("".concat(AiExecutionPrefix, "_"));
|
|
2709
2735
|
var AiExecutionStepId = createBrandedSchemaId("".concat(AiExecutionStepPrefix, "_"));
|
|
2736
|
+
var AiDocumentId = createBrandedSchemaId("".concat(AiDocumentPrefix, "_"));
|
|
2737
|
+
var AiAgentId = createBrandedSchemaId("".concat(AiAgentPrefix, "_"));
|
|
2738
|
+
var AiStepId = createBrandedSchemaId("".concat(AiStepPrefix, "_"));
|
|
2710
2739
|
var generateId = function generateId(type) {
|
|
2711
2740
|
return "".concat(type, "_").concat(nanoid.nanoid(12));
|
|
2712
2741
|
};
|
|
2713
2742
|
var MemberId = zod.z.string();
|
|
2714
|
-
|
|
2715
|
-
var
|
|
2716
|
-
var
|
|
2717
|
-
var
|
|
2718
|
-
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2719
|
-
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2720
|
-
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2721
|
-
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2722
|
-
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2723
|
-
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2724
|
-
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2725
|
-
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
2726
|
-
|
|
2727
|
-
/**
|
|
2728
|
-
* Represents the additional data that can be attached to a customer
|
|
2729
|
-
*/
|
|
2730
|
-
|
|
2731
|
-
var AdditionalCustomerInformationParams = zod.z.object({
|
|
2732
|
-
email: zod.z.string().email().optional(),
|
|
2733
|
-
phone: zod.z.string().min(4).optional(),
|
|
2734
|
-
wallet: zod.z.object({
|
|
2735
|
-
address: BlockchainAddress,
|
|
2736
|
-
namespace: BlockchainNamespace
|
|
2737
|
-
}).optional()
|
|
2738
|
-
});
|
|
2739
|
-
var OrganizationId = zod.z.string();
|
|
2740
|
-
var WorkspaceId = zod.z.string();
|
|
2741
|
-
var WorkflowId = UuidString;
|
|
2742
|
-
var CustomerId = UuidString;
|
|
2743
|
-
|
|
2744
|
-
// represents an id of a consumer in the external system of our client
|
|
2745
|
-
// as it's an external id, it can be any string
|
|
2746
|
-
var ExternalCustomerId = zod.z.string();
|
|
2747
|
-
var IdentityAppV2BaseJWT = zod.z.object({
|
|
2748
|
-
sub: IdentityId,
|
|
2749
|
-
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
2750
|
-
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
2751
|
-
exp: zod.z.number(),
|
|
2752
|
-
customerId: UuidString,
|
|
2753
|
-
verificationMode: VerificationMode,
|
|
2754
|
-
organizationId: OrganizationId,
|
|
2755
|
-
workspaceId: WorkspaceId,
|
|
2756
|
-
workflowId: WorkflowId,
|
|
2757
|
-
ipAddress: zod.z.string().optional(),
|
|
2758
|
-
timestamp: zod.z.number(),
|
|
2759
|
-
iat: zod.z.number(),
|
|
2760
|
-
hosts: zod.z.array(zod.z.string())
|
|
2761
|
-
});
|
|
2762
|
-
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
2763
|
-
flowType: zod.z.literal(FlowType.Values.web3),
|
|
2764
|
-
blockchainAddress: BlockchainAddress,
|
|
2765
|
-
blockchainNamespace: BlockchainNamespace
|
|
2766
|
-
});
|
|
2767
|
-
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
2768
|
-
flowType: zod.z.literal(FlowType.Values.web2),
|
|
2769
|
-
/**
|
|
2770
|
-
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
2771
|
-
* 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
|
|
2772
|
-
*/
|
|
2773
|
-
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
2774
|
-
});
|
|
2775
|
-
var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
2776
|
-
var IdentityWidgetSessionToken = IdentityWidgetAccessToken_NEW;
|
|
2777
|
-
|
|
2778
|
-
/**
|
|
2779
|
-
* The parameters required to create a new configuration in web2 mode.
|
|
2780
|
-
*/
|
|
2781
|
-
|
|
2782
|
-
var Web2CreateSessionParams = zod.z.object({
|
|
2783
|
-
workflowId: WorkflowId,
|
|
2784
|
-
// required in web2 because we don't have the wallet address
|
|
2785
|
-
externalCustomerId: ExternalCustomerId,
|
|
2786
|
-
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
2787
|
-
});
|
|
2743
|
+
// Add these schema definitions near other schema definitions
|
|
2744
|
+
var ChatId = createBrandedSchemaId("".concat(ChatPrefix, "_"));
|
|
2745
|
+
var MessageId = createBrandedSchemaId("".concat(MessagePrefix, "_"));
|
|
2746
|
+
var AiMessageId = createBrandedSchemaId("".concat(AiMessagePrefix, "_"));
|
|
2788
2747
|
|
|
2789
2748
|
zod.z.literal("v1");
|
|
2790
2749
|
|
|
@@ -3039,6 +2998,80 @@ var DataLinkVersionZodSchema = zod.z["enum"](allDataLinkVersions);
|
|
|
3039
2998
|
var allDataLinkTypes = ["pointer", "search", "embedded"];
|
|
3040
2999
|
var DataLinkTypeZodSchema = zod.z["enum"](allDataLinkTypes);
|
|
3041
3000
|
|
|
3001
|
+
var FLOW_TYPES = ["web2", "web3"];
|
|
3002
|
+
var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
3003
|
+
var VerificationModes = ["full_verification", "sandbox"];
|
|
3004
|
+
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
3005
|
+
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
3006
|
+
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
3007
|
+
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
3008
|
+
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
3009
|
+
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
3010
|
+
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
3011
|
+
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
3012
|
+
|
|
3013
|
+
/**
|
|
3014
|
+
* Represents the additional data that can be attached to a customer
|
|
3015
|
+
*/
|
|
3016
|
+
|
|
3017
|
+
var AdditionalCustomerInformationParams = zod.z.object({
|
|
3018
|
+
email: zod.z.string().email().optional(),
|
|
3019
|
+
phone: zod.z.string().min(4).optional(),
|
|
3020
|
+
wallet: zod.z.object({
|
|
3021
|
+
address: BlockchainAddress,
|
|
3022
|
+
namespace: BlockchainNamespace
|
|
3023
|
+
}).optional()
|
|
3024
|
+
});
|
|
3025
|
+
var OrganizationId = zod.z.string();
|
|
3026
|
+
var WorkspaceId = zod.z.string();
|
|
3027
|
+
var WorkflowId = UuidString;
|
|
3028
|
+
var CustomerId = UuidString;
|
|
3029
|
+
|
|
3030
|
+
// represents an id of a consumer in the external system of our client
|
|
3031
|
+
// as it's an external id, it can be any string
|
|
3032
|
+
var ExternalCustomerId = zod.z.string();
|
|
3033
|
+
var IdentityAppV2BaseJWT = zod.z.object({
|
|
3034
|
+
sub: IdentityId,
|
|
3035
|
+
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
3036
|
+
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
3037
|
+
exp: zod.z.number(),
|
|
3038
|
+
customerId: UuidString,
|
|
3039
|
+
verificationMode: VerificationMode,
|
|
3040
|
+
organizationId: OrganizationId,
|
|
3041
|
+
workspaceId: WorkspaceId,
|
|
3042
|
+
workflowId: WorkflowId,
|
|
3043
|
+
ipAddress: zod.z.string().optional(),
|
|
3044
|
+
timestamp: zod.z.number(),
|
|
3045
|
+
iat: zod.z.number(),
|
|
3046
|
+
hosts: zod.z.array(zod.z.string())
|
|
3047
|
+
});
|
|
3048
|
+
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
3049
|
+
flowType: zod.z.literal(FlowType.Values.web3),
|
|
3050
|
+
blockchainAddress: BlockchainAddress,
|
|
3051
|
+
blockchainNamespace: BlockchainNamespace
|
|
3052
|
+
});
|
|
3053
|
+
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
3054
|
+
flowType: zod.z.literal(FlowType.Values.web2),
|
|
3055
|
+
/**
|
|
3056
|
+
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
3057
|
+
* 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
|
|
3058
|
+
*/
|
|
3059
|
+
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
3060
|
+
});
|
|
3061
|
+
var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
3062
|
+
var IdentityWidgetSessionToken = IdentityWidgetAccessToken_NEW;
|
|
3063
|
+
|
|
3064
|
+
/**
|
|
3065
|
+
* The parameters required to create a new configuration in web2 mode.
|
|
3066
|
+
*/
|
|
3067
|
+
|
|
3068
|
+
var Web2CreateSessionParams = zod.z.object({
|
|
3069
|
+
workflowId: WorkflowId,
|
|
3070
|
+
// required in web2 because we don't have the wallet address
|
|
3071
|
+
externalCustomerId: ExternalCustomerId,
|
|
3072
|
+
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
3073
|
+
});
|
|
3074
|
+
|
|
3042
3075
|
var SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "STELLAR", "CARDANO", "ZCASH", "MONERO", "SOLANA", "POLKADOT", "ICON", "DOGECOIN", "FILECOIN", "ARBITRUMONE", "COSMOS", "ALGORAND", "CELO", "POLYGON", "EOS", "ETHEREUMCLASSIC", "FLOW", "FANTOM", "MOONBEAM", "GROESTLCOIN", "INTERNETCOMPUTERPROTOCOL", "INJECTIVEPROTOCOL", "KUSAMA", "LISK", "TERRACLASSIC", "MOONRIVER", "NEARPROTOCOL", "BITCOINGOLD", "THORCHAIN", "SIACOIN", "ECREDITS", "BITCOINSV", "RADIX", "STACKS", "THETANETWORK", "VECHAIN", "VITE", "ZILLIQA", "NEM", "NEO", "VERGE", "AVALANCHE", "GNOSIS", "APTOS", "BNBBEACONCHAIN", "OPTIMISM", "VENIDIUM", "MULTIVERSX", "HARMONY", "TON", "WEMIX", "CRONOS", "AVALANCHEP-XCHAIN", "SUI", "METIS", "AETERNITY", "COTI", "CASPER", "CONSTELLATION", "ELECTRONEUM", "EVERSCALE", "DECENTRALIZEDPICTURES", "HEDERA", "CIRRUS", "HATHOR", "KADENA", "STRATIS", "IOST", "DIGIBYTE", "KOMODO", "RAVENCOIN", "TELOS", "DIGITALBITS", "NERVOS", "DIVI", "HIVE", "NANO", "XDCNETWORK", "FUSE", "ZKSYNC", "BOBA", "HECO", "PULSECHAIN", "BASE", "HELIUM", "DOGECHAIN", "KASPA", "MANTLE", "SEI", "COMDEX", "FIRO", "ECASH", "XDAG", "RONIN", "KLEVER", "BAHAMUT", "FLARE", "CELESTIA", "BNBOPTIMISTIC", "OSMOSIS", "MANTANETWORK", "CONFLUX", "IOTA", "STARKNET", "PARTISIA", "LINEA", "NIBIRUCHAIN", "DYDXCHAIN", "DYMENSION", "OKB", "POLYGONZKEVM", "LUMIA"];
|
|
3043
3076
|
var NON_MINIMAL_SCORECHAIN_BLOCKCHAIN_TYPES = ["BITCOIN", "ETHEREUM", "BITCOINCASH", "LITECOIN", "DASH", "RIPPLE", "TEZOS", "TRON", "BSC", "SOLANA", "POLYGON", "AVALANCHE", "BASE", "TON"];
|
|
3044
3077
|
|
|
@@ -3766,6 +3799,12 @@ var WalletScreeningProvider = zod.z["enum"](WalletScreeningProviders);
|
|
|
3766
3799
|
// FIXME:importing SumSubReviewAnswer causes circular dependency
|
|
3767
3800
|
var SUMSUB_REVIEW_ANSWERS = ["GREEN", "RED", "YELLOW"];
|
|
3768
3801
|
var SumSubReviewAnswer = zod.z["enum"](SUMSUB_REVIEW_ANSWERS);
|
|
3802
|
+
var AML_RESULTS = ["AML Hits", "PEP Hits", "Sanction Hits", "Adverse Media"];
|
|
3803
|
+
var AmlResults = zod.z["enum"](AML_RESULTS);
|
|
3804
|
+
var WALLET_SCREENING_RISK_SCORE = ["No Risk", "Low Risk", "Medium Risk", "High Risk", "Critical Risk"];
|
|
3805
|
+
zod.z["enum"](WALLET_SCREENING_RISK_SCORE);
|
|
3806
|
+
var DETECTED_DUPLICATES = ["Duplicate hit"];
|
|
3807
|
+
var DetectedDuplicates = zod.z["enum"](DETECTED_DUPLICATES);
|
|
3769
3808
|
var CustomerZodSchema = zod.z.object({
|
|
3770
3809
|
identityData: zod.z.object({
|
|
3771
3810
|
age: zod.z.number().optional(),
|
|
@@ -3782,17 +3821,10 @@ var CustomerZodSchema = zod.z.object({
|
|
|
3782
3821
|
proofOfResidenceCheckStatus: SumSubReviewAnswer.optional()
|
|
3783
3822
|
}).optional(),
|
|
3784
3823
|
amlScreening: zod.z.object({
|
|
3785
|
-
|
|
3786
|
-
pepHits: zod.z["boolean"]().optional(),
|
|
3787
|
-
sanctionsHits: zod.z["boolean"]().optional(),
|
|
3788
|
-
adverseMediaHits: zod.z["boolean"]().optional(),
|
|
3789
|
-
pepAttribute: zod.z["boolean"]().optional(),
|
|
3790
|
-
sanctionsStatus: zod.z["boolean"]().optional(),
|
|
3791
|
-
adverseMediaStatus: zod.z["boolean"]().optional()
|
|
3824
|
+
amlResults: AmlResults.array().optional()
|
|
3792
3825
|
}).optional(),
|
|
3793
3826
|
duplicates: zod.z.object({
|
|
3794
|
-
|
|
3795
|
-
hasDuplicates: zod.z["boolean"]().optional()
|
|
3827
|
+
detectedDuplicates: DetectedDuplicates.array().optional()
|
|
3796
3828
|
}).optional(),
|
|
3797
3829
|
walletScreening: WalletScreeningData.optional(),
|
|
3798
3830
|
fraudAnalytics: zod.z.object({
|
|
@@ -4389,26 +4421,17 @@ var CustomerJsonSchema = {
|
|
|
4389
4421
|
amlScreening: {
|
|
4390
4422
|
type: "object",
|
|
4391
4423
|
properties: {
|
|
4392
|
-
|
|
4393
|
-
type: "
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
},
|
|
4404
|
-
pepAttribute: {
|
|
4405
|
-
type: "boolean"
|
|
4406
|
-
},
|
|
4407
|
-
sanctionsStatus: {
|
|
4408
|
-
type: "boolean"
|
|
4409
|
-
},
|
|
4410
|
-
adverseMediaStatus: {
|
|
4411
|
-
type: "boolean"
|
|
4424
|
+
amlResults: {
|
|
4425
|
+
type: "array",
|
|
4426
|
+
items: {
|
|
4427
|
+
type: "string",
|
|
4428
|
+
"enum": [
|
|
4429
|
+
"AML Hits",
|
|
4430
|
+
"PEP Hits",
|
|
4431
|
+
"Sanction Hits",
|
|
4432
|
+
"Adverse Media"
|
|
4433
|
+
]
|
|
4434
|
+
}
|
|
4412
4435
|
}
|
|
4413
4436
|
},
|
|
4414
4437
|
additionalProperties: false
|
|
@@ -4416,11 +4439,14 @@ var CustomerJsonSchema = {
|
|
|
4416
4439
|
duplicates: {
|
|
4417
4440
|
type: "object",
|
|
4418
4441
|
properties: {
|
|
4419
|
-
|
|
4420
|
-
type: "
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4442
|
+
detectedDuplicates: {
|
|
4443
|
+
type: "array",
|
|
4444
|
+
items: {
|
|
4445
|
+
type: "string",
|
|
4446
|
+
"enum": [
|
|
4447
|
+
"Duplicate hit"
|
|
4448
|
+
]
|
|
4449
|
+
}
|
|
4424
4450
|
}
|
|
4425
4451
|
},
|
|
4426
4452
|
additionalProperties: false
|
|
@@ -10126,11 +10152,20 @@ exports.ActionId = ActionId;
|
|
|
10126
10152
|
exports.ActionPrefix = ActionPrefix;
|
|
10127
10153
|
exports.AdditionalCustomerInformationParams = AdditionalCustomerInformationParams;
|
|
10128
10154
|
exports.AddressSchema = AddressSchema;
|
|
10155
|
+
exports.AiAgentId = AiAgentId;
|
|
10156
|
+
exports.AiAgentPrefix = AiAgentPrefix;
|
|
10157
|
+
exports.AiDocumentId = AiDocumentId;
|
|
10158
|
+
exports.AiDocumentPrefix = AiDocumentPrefix;
|
|
10129
10159
|
exports.AiExecutionId = AiExecutionId;
|
|
10130
10160
|
exports.AiExecutionPrefix = AiExecutionPrefix;
|
|
10131
10161
|
exports.AiExecutionStepId = AiExecutionStepId;
|
|
10132
10162
|
exports.AiExecutionStepPrefix = AiExecutionStepPrefix;
|
|
10163
|
+
exports.AiMessageId = AiMessageId;
|
|
10164
|
+
exports.AiMessagePrefix = AiMessagePrefix;
|
|
10165
|
+
exports.AiStepId = AiStepId;
|
|
10166
|
+
exports.AiStepPrefix = AiStepPrefix;
|
|
10133
10167
|
exports.Alpha2Country = Alpha2Country;
|
|
10168
|
+
exports.AmlResults = AmlResults;
|
|
10134
10169
|
exports.AnalysisType = AnalysisType;
|
|
10135
10170
|
exports.AppId = AppId;
|
|
10136
10171
|
exports.AppPrefix = AppPrefix;
|
|
@@ -10167,6 +10202,8 @@ exports.CardanoChainId = CardanoChainId;
|
|
|
10167
10202
|
exports.CardanoSignature = CardanoSignature;
|
|
10168
10203
|
exports.ChallengeId = ChallengeId;
|
|
10169
10204
|
exports.ChallengePrefix = ChallengePrefix;
|
|
10205
|
+
exports.ChatId = ChatId;
|
|
10206
|
+
exports.ChatPrefix = ChatPrefix;
|
|
10170
10207
|
exports.Coin = Coin;
|
|
10171
10208
|
exports.CosmosAddress = CosmosAddress;
|
|
10172
10209
|
exports.CosmosChainId = CosmosChainId;
|
|
@@ -10183,6 +10220,7 @@ exports.DEFAULT_FIAT_CURRENCY = DEFAULT_FIAT_CURRENCY;
|
|
|
10183
10220
|
exports.DISPLAYED_BLOCKCHAIN_NAMESPACES = DISPLAYED_BLOCKCHAIN_NAMESPACES;
|
|
10184
10221
|
exports.DataLinkTypeZodSchema = DataLinkTypeZodSchema;
|
|
10185
10222
|
exports.DataLinkVersionZodSchema = DataLinkVersionZodSchema;
|
|
10223
|
+
exports.DetectedDuplicates = DetectedDuplicates;
|
|
10186
10224
|
exports.DisplayedBlockchainNamespace = DisplayedBlockchainNamespace;
|
|
10187
10225
|
exports.EIP155Signature = EIP155Signature;
|
|
10188
10226
|
exports.ENVS = ENVS;
|
|
@@ -10248,6 +10286,8 @@ exports.IpAddress = IpAddress;
|
|
|
10248
10286
|
exports.ListId = ListId;
|
|
10249
10287
|
exports.ListPrefix = ListPrefix;
|
|
10250
10288
|
exports.MemberId = MemberId;
|
|
10289
|
+
exports.MessageId = MessageId;
|
|
10290
|
+
exports.MessagePrefix = MessagePrefix;
|
|
10251
10291
|
exports.MetaAlertId = MetaAlertId;
|
|
10252
10292
|
exports.MetaAlertPrefix = MetaAlertPrefix;
|
|
10253
10293
|
exports.NEXERA_ACTIVE_STARKNET_CHAIN_IDS = NEXERA_ACTIVE_STARKNET_CHAIN_IDS;
|
|
@@ -10440,6 +10480,7 @@ exports.compareRiskLevels = compareRiskLevels;
|
|
|
10440
10480
|
exports.countryISO2toISO3Mapping = countryISO2toISO3Mapping;
|
|
10441
10481
|
exports.countryISO3toISO2Mapping = countryISO3toISO2Mapping;
|
|
10442
10482
|
exports.createBrandedSchemaId = createBrandedSchemaId;
|
|
10483
|
+
exports.createBrandedSchemaIdWithParams = createBrandedSchemaIdWithParams;
|
|
10443
10484
|
exports.generateId = generateId;
|
|
10444
10485
|
exports.generateZodObjectPaths = generateZodObjectPaths;
|
|
10445
10486
|
exports.getRiskLevelByRiskScore = getRiskLevelByRiskScore;
|