@nexeraid/identity-schemas 2.3.18-dev → 2.3.19-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.
@@ -2,6 +2,7 @@ import { C as CredentialTypes } from './identity-api.schema-c82dba7a.esm.js';
2
2
  export { q as ACTIVE_COSMOS_CHAIN_VALUES, A as ACTIVE_EVM_CHAIN_VALUES, m as ACTIVE_TEZOS_CHAIN_VALUES, al as ALPHA_2_COUNTRIES, c$ as ARRAY_OPERATORS, cK as AUTHORIZATION_REQUEST_MESSAGE_TYPES, bD as AVAILABLE_FLOWS, e5 as AdditionalCustomerInformationParams, z as AddressSchema, cW as AllCredentialAttributes, cX as AllCredentialValues, dM as AllScenarioExecutionAuthorizationData, am as Alpha2Country, dG as AnyTxAuthDataSignatureResponse, dD as AnyTxAuthInput, dy as ApiTezosTxAuthInput, du as ApiTxAuthInput, b4 as AppId, aN as AppPrefix, I as AptosAddress, J as AptosSignature, d0 as ArrayOperator, cS as AuthQrCodeData, cp as AuthSession, cq as AuthSessionData, cN as AuthorizationRequestMessage, cM as AuthorizationRequestMessageType, cL as AuthorizationRequestMessageTypes, cQ as AuthorizationResponseMessage, bE as AvailableFlow, a4 as BLOCKCHAIN_NAMESPACES, a6 as BLOCKCHAIN_NAMESPACES_NAMES, aa as BLOCKCHAIN_NAMESPACE_TO_NAME, a9 as BLOCKCHAIN_NAME_TO_NAMESPACE, d5 as BOOLEAN_OPERATORS, aD as BasicCustomerContactInformation, a2 as BlockchainAddress, B as BlockchainId, a5 as BlockchainNamespace, a3 as BlockchainSignature, d6 as BooleanOperator, cH as CIRCUIT_IDS, n as COSMOS_CHAIN_NAMES, o as COSMOS_CHAIN_NAMES_LIST, p as COSMOS_CHAIN_VALUES, aE as CUSTOMERS_CHARTS, aI as CUSTOMER_AUTOMATION_REASONS, aG as CUSTOMER_TABLE_COLUMNS, a0 as CardanoAddress, a1 as CardanoSignature, b5 as ChallengeId, aO as ChallengePrefix, bL as ChallengeQueryOperator, bN as ChallengeQueryOperatorToOperator, bK as ChallengeQueryOperators, bO as ChallengeQuerySchema, cr as ChallengeResponse, cI as CircuitId, bl as CloseScreenNotification, c7 as ComplianceImplementationStepsInput, Q as CosmosAddress, r as CosmosChainId, R as CosmosSignature, dK as CreateAuthRequestProps, dk as CreateQueryConfigurationInput, dl as CreateQueryConfigurationResponse, dL as CreateZKProofRequestProps, eA as CredentialMediaType, ev as CredentialNames, cR as CredentialQrCodeData, eu as CredentialSchemas, ey as CredentialType, C as CredentialTypes, aA as CustomerOnboardingLevel, az as CustomerOnboardingLevels, b7 as CustomerScreeningId, aQ as CustomerScreeningPrefix, aC as CustomerStatus, aB as CustomerStatuses, aH as CustomerTableColumn, au as CustomerType, at as CustomerTypes, aF as CustomersChartType, d7 as DATE_OPERATORS, a7 as DISPLAYED_LOCKCHAIN_NAMESPACES, bF as DataAvailableOnStart, d8 as DateOperator, dp as DeleteQueryConfigurationInput, dq as DeleteQueryConfigurationResponse, a8 as DisplayedBlockchainNamespace, F as EIP155Signature, ac as ENVS, E as EVM_BLOCK_TIME, g as EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC, Y as EdSignature, b2 as EmailId, aL as EmailPrefix, ad as EnvironmentSchema, h as EvmChainId, bQ as ExecuteChallengeQueryConfig, bP as ExecuteChallengeQueryInput, bS as ExecuteChallengeQueryResponse, dF as ExtendedTezosTxAuthDataSignatureResponse, dC as ExtendedTezosTxAuthInput, dE as ExtendedTxAuthDataSignatureResponse, dB as ExtendedTxAuthInput, ea as ExternalCustomerId, dW as FLOW_TYPES, dX as FlowType, G as FunctionCallData, co as GenerateWalletChallengeRequest, et as GenericVerifiableCredentialSchema, c9 as GetCredentialsRequest, ca as GetCredentialsResponse, cu as GetCustomerStatusRequest, cy as GetCustomerStatusResponse, dA as GetTezosTxAuthDataSignatureResponse, dw as GetTxAuthDataSignatureResponse, ci as GetTxAuthSigRequest, ck as GetTxAuthSigRequestTezos, cj as GetTxAuthSigResponse, cl as GetTxAuthSigResponseTezos, cB as HostMessage, cm as HostRequestMessage, bJ as HostResponseMessage, eg as ID3CredentialSubjectSchema, d_ as IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS, e0 as IDENTITY_DOCUMENT_OPTIONS, eq as IDImageCredentialSubjectSchema, dc as IDInformation, ep as IDInformationCredentialSubjectSchema, eh as IDScanCredentialSubjectSchema, ei as IDScanPassportCredentialSubjectSchema, ej as IDScanSelfieCredentialSubjectSchema, ak as ISO3CountryCode, e4 as Identifier, cz as IdentityAppMessage, ec as IdentityAppV2Web2JWT, eb as IdentityAppV2Web3JWT, d$ as IdentityDocumentCountryListOption, e1 as IdentityDocumentOptionsType, b1 as IdentityId, cC as IdentityMessage, bx as IdentityNotificationMessage, aK as IdentityPrefix, bC as IdentityRequestMessage, cn as IdentityResponseMessage, cv as IdentitySdkMessage, cw as IdentitySdkMessageWithIdentifier, cA as IdentityWallet, e9 as IdentityWidgetAccessToken, ed as IdentityWidgetAccessToken_NEW, ee as IdentityWidgetSessionToken, by as InitialDataRequest, bG as InitialDataResponse, bh as InstitutionExtractedInfosId, a_ as InstitutionExtractedInfosPrefix, bg as InstitutionId, aZ as InstitutionPrefix, aj as IpAddress, bt as IsVerifiedNotification, cg as IsVerifiedRequest, ch as IsVerifiedResponse, ay as KybOnboardingLevel, ax as KybOnboardingLevels, bm as KycCompletionData, bn as KycCompletionNotification, aw as KycOnboardingLevel, av as KycOnboardingLevels, cF as MediaType, cG as MediaTypePID, u as NEXERA_ACTIVE_STARKNET_CHAIN_VALUES, f as NEXERA_CHAIN_VALUES, b as NEXERA_COSMOS_CHAINS, N as NEXERA_EVM_CHAINS, d as NEXERA_EVM_CHAIN_NAMES, e as NEXERA_EVM_CHAIN_NAMES_LIST, c as NEXERA_STARKNET_CHAINS, s as NEXERA_STARKNET_CHAIN_NAMES, t as NEXERA_STARKNET_CHAIN_VALUES, a as NEXERA_TEZOS_CHAINS, j as NEXERA_TEZOS_CHAIN_NAMES, k as NEXERA_TEZOS_CHAIN_NAMES_LIST, l as NEXERA_TEZOS_CHAIN_VALUES, d3 as NUMERIC_OPERATORS, ew as NexeraCredentialType, dj as NonParsedQueryConfiguration, d4 as NumericOperator, eo as OLD_AMLScreeningsResultsCredentialSubjectSchema, ek as OLD_IDImageCredentialSubjectSchema, el as OLD_IDInformationCredentialSubjectSchema, em as OLD_ProofOfResidenceCredentialSubjectSchema, en as OLD_SelfieImageCredentialSubjectSchema, bT as OPAChallengeQuery, bv as OcvSdkInitialized, bp as OffChainScenarioExecutionData, dJ as OffChainZKP, bV as OffChainZKPRuleResult, bU as OnChainRuleResult, bq as OnChainScenarioExecutionData, dO as OnChainZKP, dP as OnChainZKPFromNexeraID, dR as OnChainZKPPayload, dQ as OnChainZKPScenarioFromCms, bR as OpaChallengeQueryResponse, cY as Operator, bM as OperatorToChallengeQueryOperator, e6 as OrganizationId, af as OtpCode, _ as P2Signature, e2 as PERSONAL_INFORMATION_FIELDS, P as POLYGON_NETWORK_NAMES, ai as PUBLIC_SERVICES_SCHEMA_MAP, dg as PartialQueryConfigSimplified, e3 as PersonalInformationFieldsIdentityDocuments, M as PolkadotAddress, O as PolkadotSignature, bu as PolygonIdInitialized, cc as PolygonIdRequest, cb as PolygonIdRequestData, ce as PolygonIdResponse, cd as PolygonIdResponseData, i as PolygonNetworkNames, x as PrivateKey, dN as ProjectAuthorizationData, cO as ProofData, es as ProofOfResidenceCredentialSubjectSchema, y as PublicKey, cT as QrCodeLinkWithSchemaType, dd as QueryConfig, df as QueryConfigSimplified, dh as QueryConfigSimplifiedParsed, di as QueryConfiguration, ds as QueryCredentialType, dr as QueryCredentialTypes, de as QueryType, cD as RequiredDataRowSchema, cE as RequiredVerificationData, as as RiskScoreType, ar as RiskScoreTypes, c2 as RuleEngineResponse, bo as RuleEngineScenarioExecutionData, c5 as RuleResultStatus, c6 as RuleResultStatusLabels, c4 as RuleResultStatuses, dS as SCENARIO_AUTHORIZATION_STATUSES, d1 as STRING_OPERATORS, d9 as SUPPORTED_TYPES, bj as ScenarioAuthorizationData, dT as ScenarioAuthorizationStatus, br as ScenarioExecutionData, bs as ScenarioExecutionNotification, c3 as ScenarioExecutionResponse, c1 as ScenarioStatus, c0 as ScenarioStatuses, b$ as ScenarioType, b_ as ScenarioTypes, bW as SdkVerificationOutput, bk as SdkVerificationResponseSchema, er as SelfieImageCredentialSubjectSchema, bB as SendTransactionRequest, bz as SignatureRequest, bH as SignatureResponse, c8 as SimplifiedCredential, Z as SpSignature, K as StarknetAddress, S as StarknetChainId, L as StarknetSignature, bw as StartCompletedNotification, cf as StartFlowRequest, b0 as StorageId, aJ as StoragePrefix, w as String0x, d2 as StringOperator, da as SupportedType, db as SupportedTypes, b8 as TagId, aR as TagPrefix, b6 as TestId, aP as TestPrefix, W as TezosAddress, T as TezosChainId, V as TezosContractAddress, X as TezosEntrypointName, U as TezosImplicitAddress, $ as TezosSignature, dx as TezosTxAuthInput, dz as TezosTxSignatureResponse, bA as TransactionData, bd as TransactionExtractedInfosId, aW as TransactionExtractedInfosPrefix, b9 as TransactionId, bc as TransactionInfosId, aV as TransactionInfosPrefix, bf as TransactionMethodExtractedInfosId, aY as TransactionMethodExtractedInfosPrefix, be as TransactionMethodsId, aX as TransactionMethodsPrefix, bb as TransactionPartiesId, aU as TransactionPartiesPrefix, aS as TransactionPrefix, bI as TransactionResponse, ba as TransactionReviewId, aT as TransactionReviewPrefix, ct as TxAuthDataSignatureGatingRequest, cx as TxAuthDataSignatureResponse, dt as TxAuthInput, D as TxHash, dv as TxSignatureResponse, dm as UpdateQueryConfigurationInput, dn as UpdateQueryConfigurationResponse, ae as UuidString, ez as VerifiableCredential, dZ as VerificationMode, dY as VerificationModes, bZ as VerificationOutput, bY as VerificationSessionStatus, bX as VerificationSessionStatuses, dV as VerifyWalletChallengeRequest, b3 as WalletId, aM as WalletPrefix, cs as WalletSignResponse, dU as WalletSignatureResponse, ef as Web2CreateSessionParams, e8 as WorkflowId, e7 as WorkspaceId, cZ as ZKPOperator, dH as ZKPRequest, dI as ZKPRequestFromZKVerifier, cJ as ZeroKnowledgeProofRequest, cP as ZeroKnowledgeProofResponse, ag as ZodParse, ab as coerceBoolean, ao as countryISO2toISO3Mapping, an as countryISO3toISO2Mapping, a$ as createBrandedSchemaId, bi as generateId, ex as getCredentialName, v as isValidAddress, ap as isoCountriesNameFromISO2, c_ as operatorDisplayMap, aq as parseISO3CountryCode, cU as parseIden3Message, cV as parseSessionIdFromUrl, H as shortAddress, ah as shortBlockchainAddress } from './identity-api.schema-c82dba7a.esm.js';
3
3
  import { z } from 'zod';
4
4
  export { V as VC_JSON_SCHEMA_MAP, c as cleanObject, a as getAvailableFields, g as getCredentialSchemaLocation } from './frontend-utilities.schema-64272e5a.esm.js';
5
+ export { j as PaymentType, P as PaymentTypes, g as TransactionDirection, f as TransactionDirections, l as TransactionPartiesType, k as TransactionPartiesTypes, i as TransactionProvider, h as TransactionProviders, e as TransactionReviewStatus, d as TransactionReviewStatuses, c as TransactionRiskLevel, b as TransactionRiskLevels, a as TransactionType, T as TransactionTypes } from './transaction.schema-fb699c40.esm.js';
5
6
  import 'nanoid';
6
7
 
7
8
  var CurrencyCodes = ["ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARP", "ARS", "ARY", "ATS", "AUD", "AWG", "AYM", "AZM", "AZN", "BAD", "BAM", "BBD", "BDT", "BEC", "BEF", "BEL", "BGJ", "BGK", "BGL", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOP", "BOV", "BRB", "BRC", "BRE", "BRL", "BRN", "BRR", "BSD", "BTN", "BUK", "BWP", "BYB", "BYN", "BYR", "BZD", "CAD", "CDF", "CHC", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CSD", "CSJ", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "EUR", "FIM", "FJD", "FKP", "FRF", "GBP", "GEK", "GEL", "GHC", "GHP", "GHS", "GIP", "GMD", "GNE", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HKD", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "ILS", "INR", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAJ", "LAK", "LBP", "LKR", "LRD", "LSL", "LSM", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MDL", "MGA", "MGF", "MKD", "MLF", "MMK", "MNT", "MOP", "MRO", "MRU", "MTL", "MTP", "MUR", "MVQ", "MVR", "MWK", "MXN", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZD", "OMR", "PAB", "PEH", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROK", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "STN", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "TWD", "TZS", "UAH", "UAK", "UGS", "UGW", "UGX", "USD", "USN", "USS", "UYI", "UYN", "UYP", "UYU", "UYW", "UZS", "VEB", "VEF", "VES", "VNC", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XEU", "XFO", "XFU", "XOF", "XPD", "XPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWC", "ZWD", "ZWL", "ZWN", "ZWR"];
@@ -87,26 +88,4 @@ var Tag = z.object({
87
88
  updatedAt: z.coerce.date()
88
89
  });
89
90
 
90
- // Transaction Type
91
- var TransactionTypes = ["crypto", "fiat"];
92
- var TransactionType = z["enum"](TransactionTypes);
93
- // Transaction Risk level
94
- var TransactionRiskLevels = ["Low", "Medium", "High"];
95
- var TransactionRiskLevel = z["enum"](TransactionRiskLevels);
96
- // TransactionReview Status
97
- var TransactionReviewStatuses = ["approved", "review", "blocked"];
98
- var TransactionReviewStatus = z["enum"](TransactionReviewStatuses);
99
- // TransactionInfos Direction
100
- var TransactionDirections = ["IN", "OUT"];
101
- var TransactionDirection = z["enum"](TransactionDirections);
102
- // TransactionExtractedInfos Providers
103
- var TransactionProviders = ["sumsub"];
104
- var TransactionProvider = z["enum"](TransactionProviders);
105
- // PaymentMethods Type
106
- var PaymentTypes = ["card", "account", "crypto"];
107
- var PaymentType = z["enum"](PaymentTypes);
108
- // TransactionParties Type
109
- var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
110
- var TransactionPartiesType = z["enum"](TransactionPartiesTypes);
111
-
112
- export { CryptoCode, CryptoCodes, CurrencyCode, CurrencyCodes, DownloadableKycSchema, EncryptedKycKey, EncryptedVerifiableCredentialDataSchema, EncryptedVerifiableCredentialSchema, ImageUploadResponseSchema, MAX_MEDIA_FILE_SIZE, MediaDataSchema, PaymentType, PaymentTypes, Tag, TransactionDirection, TransactionDirections, TransactionPartiesType, TransactionPartiesTypes, TransactionProvider, TransactionProviders, TransactionReviewStatus, TransactionReviewStatuses, TransactionRiskLevel, TransactionRiskLevels, TransactionType, TransactionTypes, TypeTag, TypeTags };
91
+ export { CryptoCode, CryptoCodes, CurrencyCode, CurrencyCodes, DownloadableKycSchema, EncryptedKycKey, EncryptedVerifiableCredentialDataSchema, EncryptedVerifiableCredentialSchema, ImageUploadResponseSchema, MAX_MEDIA_FILE_SIZE, MediaDataSchema, Tag, TypeTag, TypeTags };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexeraid/identity-schemas",
3
- "version": "2.3.18",
3
+ "version": "2.3.19",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ var zod = require('zod');
4
+
5
+ // Transaction Type
6
+ var TransactionTypes = ["crypto", "fiat"];
7
+ var TransactionType = zod.z["enum"](TransactionTypes);
8
+ // Transaction Risk level
9
+ var TransactionRiskLevels = ["Low", "Medium", "High"];
10
+ var TransactionRiskLevel = zod.z["enum"](TransactionRiskLevels);
11
+ // TransactionReview Status
12
+ var TransactionReviewStatuses = ["approved", "review", "blocked"];
13
+ var TransactionReviewStatus = zod.z["enum"](TransactionReviewStatuses);
14
+ // TransactionInfos Direction
15
+ var TransactionDirections = ["IN", "OUT"];
16
+ var TransactionDirection = zod.z["enum"](TransactionDirections);
17
+ // TransactionExtractedInfos Providers
18
+ var TransactionProviders = ["sumsub"];
19
+ var TransactionProvider = zod.z["enum"](TransactionProviders);
20
+ // PaymentMethods Type
21
+ var PaymentTypes = ["card", "account", "crypto"];
22
+ var PaymentType = zod.z["enum"](PaymentTypes);
23
+ // TransactionParties Type
24
+ var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
25
+ var TransactionPartiesType = zod.z["enum"](TransactionPartiesTypes);
26
+
27
+ exports.PaymentType = PaymentType;
28
+ exports.PaymentTypes = PaymentTypes;
29
+ exports.TransactionDirection = TransactionDirection;
30
+ exports.TransactionDirections = TransactionDirections;
31
+ exports.TransactionPartiesType = TransactionPartiesType;
32
+ exports.TransactionPartiesTypes = TransactionPartiesTypes;
33
+ exports.TransactionProvider = TransactionProvider;
34
+ exports.TransactionProviders = TransactionProviders;
35
+ exports.TransactionReviewStatus = TransactionReviewStatus;
36
+ exports.TransactionReviewStatuses = TransactionReviewStatuses;
37
+ exports.TransactionRiskLevel = TransactionRiskLevel;
38
+ exports.TransactionRiskLevels = TransactionRiskLevels;
39
+ exports.TransactionType = TransactionType;
40
+ exports.TransactionTypes = TransactionTypes;
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ var zod = require('zod');
4
+
5
+ // Transaction Type
6
+ var TransactionTypes = ["crypto", "fiat"];
7
+ var TransactionType = zod.z["enum"](TransactionTypes);
8
+ // Transaction Risk level
9
+ var TransactionRiskLevels = ["Low", "Medium", "High"];
10
+ var TransactionRiskLevel = zod.z["enum"](TransactionRiskLevels);
11
+ // TransactionReview Status
12
+ var TransactionReviewStatuses = ["approved", "review", "blocked"];
13
+ var TransactionReviewStatus = zod.z["enum"](TransactionReviewStatuses);
14
+ // TransactionInfos Direction
15
+ var TransactionDirections = ["IN", "OUT"];
16
+ var TransactionDirection = zod.z["enum"](TransactionDirections);
17
+ // TransactionExtractedInfos Providers
18
+ var TransactionProviders = ["sumsub"];
19
+ var TransactionProvider = zod.z["enum"](TransactionProviders);
20
+ // PaymentMethods Type
21
+ var PaymentTypes = ["card", "account", "crypto"];
22
+ var PaymentType = zod.z["enum"](PaymentTypes);
23
+ // TransactionParties Type
24
+ var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
25
+ var TransactionPartiesType = zod.z["enum"](TransactionPartiesTypes);
26
+
27
+ exports.PaymentType = PaymentType;
28
+ exports.PaymentTypes = PaymentTypes;
29
+ exports.TransactionDirection = TransactionDirection;
30
+ exports.TransactionDirections = TransactionDirections;
31
+ exports.TransactionPartiesType = TransactionPartiesType;
32
+ exports.TransactionPartiesTypes = TransactionPartiesTypes;
33
+ exports.TransactionProvider = TransactionProvider;
34
+ exports.TransactionProviders = TransactionProviders;
35
+ exports.TransactionReviewStatus = TransactionReviewStatus;
36
+ exports.TransactionReviewStatuses = TransactionReviewStatuses;
37
+ exports.TransactionRiskLevel = TransactionRiskLevel;
38
+ exports.TransactionRiskLevels = TransactionRiskLevels;
39
+ exports.TransactionType = TransactionType;
40
+ exports.TransactionTypes = TransactionTypes;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+
3
+ // Transaction Type
4
+ var TransactionTypes = ["crypto", "fiat"];
5
+ var TransactionType = z["enum"](TransactionTypes);
6
+ // Transaction Risk level
7
+ var TransactionRiskLevels = ["Low", "Medium", "High"];
8
+ var TransactionRiskLevel = z["enum"](TransactionRiskLevels);
9
+ // TransactionReview Status
10
+ var TransactionReviewStatuses = ["approved", "review", "blocked"];
11
+ var TransactionReviewStatus = z["enum"](TransactionReviewStatuses);
12
+ // TransactionInfos Direction
13
+ var TransactionDirections = ["IN", "OUT"];
14
+ var TransactionDirection = z["enum"](TransactionDirections);
15
+ // TransactionExtractedInfos Providers
16
+ var TransactionProviders = ["sumsub"];
17
+ var TransactionProvider = z["enum"](TransactionProviders);
18
+ // PaymentMethods Type
19
+ var PaymentTypes = ["card", "account", "crypto"];
20
+ var PaymentType = z["enum"](PaymentTypes);
21
+ // TransactionParties Type
22
+ var TransactionPartiesTypes = ["individual", "company", "smart-contract"];
23
+ var TransactionPartiesType = z["enum"](TransactionPartiesTypes);
24
+
25
+ export { PaymentTypes as P, TransactionTypes as T, TransactionType as a, TransactionRiskLevels as b, TransactionRiskLevel as c, TransactionReviewStatuses as d, TransactionReviewStatus as e, TransactionDirections as f, TransactionDirection as g, TransactionProviders as h, TransactionProvider as i, PaymentType as j, TransactionPartiesTypes as k, TransactionPartiesType as l };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexeraid/identity-schemas",
3
- "version": "2.3.18-dev",
3
+ "version": "2.3.19-dev",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -6,6 +6,7 @@ var zod = require('zod');
6
6
  var identityApi_schema = require('../../dist/identity-api.schema-9eaf0710.cjs.dev.js');
7
7
  var customers_schema = require('../../dist/customers.schema-53d8aa84.cjs.dev.js');
8
8
  var zodToJsonSchema = require('zod-to-json-schema');
9
+ var transaction_schema = require('../../dist/transaction.schema-2141e819.cjs.dev.js');
9
10
  require('nanoid');
10
11
 
11
12
  // Alert Statuses
@@ -191,9 +192,25 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
191
192
  result: zod.z.array(VerificationFlowResult)
192
193
  });
193
194
 
194
- var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
195
+ var TMSWebhookPayload = zod.z.object({
196
+ id: zod.z.string(),
197
+ customerId: identityApi_schema.UuidString,
198
+ externalTransactionId: zod.z.string(),
199
+ transactionDate: zod.z.coerce.date().nullable(),
200
+ transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
201
+ transactionSubType: zod.z.string().nullable(),
202
+ transactionReview: zod.z.string().nullable(),
203
+ transactionInfo: zod.z.string(),
204
+ transactionExtractedInfo: zod.z.string().nullable(),
205
+ originator: zod.z.string(),
206
+ beneficiary: zod.z.string(),
207
+ createdAt: zod.z.coerce.date(),
208
+ updatedAt: zod.z.coerce.date().nullable()
209
+ });
210
+
211
+ var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "tms.created", "tms.updated", "tms.deleted"];
195
212
  var WebhookEventType = zod.z["enum"](WebhookEventTypes);
196
- var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
213
+ var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"];
197
214
  var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
198
215
  var AttemptsStatus = {
199
216
  Success: 0,
@@ -254,6 +271,21 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
254
271
  description: zod.z.string(),
255
272
  archived: zod.z["boolean"](),
256
273
  schemas: zod.z.record(zod.z.unknown())
274
+ }), zod.z.object({
275
+ name: zod.z.literal("tms.created"),
276
+ description: zod.z.string(),
277
+ archived: zod.z["boolean"](),
278
+ schemas: zod.z.record(zod.z.unknown())
279
+ }), zod.z.object({
280
+ name: zod.z.literal("tms.updated"),
281
+ description: zod.z.string(),
282
+ archived: zod.z["boolean"](),
283
+ schemas: zod.z.record(zod.z.unknown())
284
+ }), zod.z.object({
285
+ name: zod.z.literal("tms.deleted"),
286
+ description: zod.z.string(),
287
+ archived: zod.z["boolean"](),
288
+ schemas: zod.z.record(zod.z.unknown())
257
289
  })]);
258
290
 
259
291
  /**
@@ -293,11 +325,24 @@ var AlertDeletedPayload = zod.z.object({
293
325
  eventType: zod.z.literal("alert.deleted"),
294
326
  payload: AlertWebhookPayload
295
327
  });
328
+ var TMSCreatedPayload = zod.z.object({
329
+ eventType: zod.z.literal("tms.created"),
330
+ payload: TMSWebhookPayload
331
+ });
332
+ var TMSUpdatedPayload = zod.z.object({
333
+ eventType: zod.z.literal("tms.updated"),
334
+ payload: TMSWebhookPayload
335
+ });
336
+ var TMSDeletedPayload = zod.z.object({
337
+ eventType: zod.z.literal("tms.deleted"),
338
+ payload: TMSWebhookPayload
339
+ });
296
340
  var WebhookScenariosEventPayload = SendScenarioPayload;
297
341
  var WebhookVerificationEventPayload = SendVerificationFlowPayload;
298
342
  var WebhookCustomerEventPayload = zod.z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
299
343
  var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
300
- var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
344
+ var WebhookTMSEventPayload = zod.z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]);
345
+ var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
301
346
  var AllNexeraEventTypes = zod.z.array(NexeraEventTypes);
302
347
  var NexeraSvixEnvironmentConfig = zod.z.object({
303
348
  env: identityApi_schema.EnvironmentSchema
@@ -319,7 +364,10 @@ var EndpointHandlingForm = zod.z.object({
319
364
  customerDeleted: zod.z["boolean"]().optional(),
320
365
  alertCreated: zod.z["boolean"]().optional(),
321
366
  alertUpdated: zod.z["boolean"]().optional(),
322
- alertDeleted: zod.z["boolean"]().optional()
367
+ alertDeleted: zod.z["boolean"]().optional(),
368
+ tmsCreated: zod.z["boolean"]().optional(),
369
+ tmsUpdated: zod.z["boolean"]().optional(),
370
+ tmsDeleted: zod.z["boolean"]().optional()
323
371
  }).optional()
324
372
  });
325
373
  var WebhookCheckboxInformation = zod.z.object({
@@ -331,7 +379,8 @@ var EndpointCheckboxsCollapsiblesSchema = zod.z.object({
331
379
  title: zod.z.string(),
332
380
  icon: zod.z.any(),
333
381
  description: zod.z.string(),
334
- webhooks: zod.z.array(WebhookCheckboxInformation)
382
+ webhooks: zod.z.array(WebhookCheckboxInformation),
383
+ type: zod.z.string().optional()
335
384
  });
336
385
  var EndpointOut = zod.z.object({
337
386
  disabled: zod.z["boolean"]().optional(),
@@ -456,6 +505,18 @@ var SendMessageForAlertDeletedInput = zod.z.object({
456
505
  projectId: zod.z.string(),
457
506
  payload: AlertDeletedPayload
458
507
  });
508
+ var SendMessageForTMSCreatedInput = zod.z.object({
509
+ projectId: zod.z.string(),
510
+ payload: TMSCreatedPayload
511
+ });
512
+ var SendMessageForTMSUpdatedInput = zod.z.object({
513
+ projectId: zod.z.string(),
514
+ payload: TMSUpdatedPayload
515
+ });
516
+ var SendMessageForTMSDeletedInput = zod.z.object({
517
+ projectId: zod.z.string(),
518
+ payload: TMSDeletedPayload
519
+ });
459
520
 
460
521
  /**
461
522
  *
@@ -587,6 +648,27 @@ var NexeraWebhookEvents = [{
587
648
  schemas: {
588
649
  1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
589
650
  }
651
+ }, {
652
+ name: "tms.created",
653
+ description: "Transaction Created Webhook",
654
+ archived: false,
655
+ schemas: {
656
+ 1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
657
+ }
658
+ }, {
659
+ name: "tms.updated",
660
+ description: "Transaction Updated Webhook",
661
+ archived: false,
662
+ schemas: {
663
+ 1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
664
+ }
665
+ }, {
666
+ name: "tms.deleted",
667
+ description: "Transaction Deleted Webhook",
668
+ archived: false,
669
+ schemas: {
670
+ 1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload)
671
+ }
590
672
  }];
591
673
 
592
674
  exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
@@ -656,8 +738,15 @@ exports.SendMessageForCustomerDeletedInput = SendMessageForCustomerDeletedInput;
656
738
  exports.SendMessageForCustomerUpdatedInput = SendMessageForCustomerUpdatedInput;
657
739
  exports.SendMessageForSendScenarioInput = SendMessageForSendScenarioInput;
658
740
  exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput;
741
+ exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput;
742
+ exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput;
743
+ exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput;
659
744
  exports.SendScenarioPayload = SendScenarioPayload;
660
745
  exports.SendVerificationFlowPayload = SendVerificationFlowPayload;
746
+ exports.TMSCreatedPayload = TMSCreatedPayload;
747
+ exports.TMSDeletedPayload = TMSDeletedPayload;
748
+ exports.TMSUpdatedPayload = TMSUpdatedPayload;
749
+ exports.TMSWebhookPayload = TMSWebhookPayload;
661
750
  exports.UpdateEndpointInput = UpdateEndpointInput;
662
751
  exports.UpdateEndpointOutput = UpdateEndpointOutput;
663
752
  exports.UserInfoForDuplicate = UserInfoForDuplicate;
@@ -672,4 +761,5 @@ exports.WebhookEventTypeForm = WebhookEventTypeForm;
672
761
  exports.WebhookEventTypes = WebhookEventTypes;
673
762
  exports.WebhookEventTypesForm = WebhookEventTypesForm;
674
763
  exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload;
764
+ exports.WebhookTMSEventPayload = WebhookTMSEventPayload;
675
765
  exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload;
@@ -6,6 +6,7 @@ var zod = require('zod');
6
6
  var identityApi_schema = require('../../dist/identity-api.schema-1ac61550.cjs.prod.js');
7
7
  var customers_schema = require('../../dist/customers.schema-93908d1f.cjs.prod.js');
8
8
  var zodToJsonSchema = require('zod-to-json-schema');
9
+ var transaction_schema = require('../../dist/transaction.schema-7297e823.cjs.prod.js');
9
10
  require('nanoid');
10
11
 
11
12
  // Alert Statuses
@@ -191,9 +192,25 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
191
192
  result: zod.z.array(VerificationFlowResult)
192
193
  });
193
194
 
194
- var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
195
+ var TMSWebhookPayload = zod.z.object({
196
+ id: zod.z.string(),
197
+ customerId: identityApi_schema.UuidString,
198
+ externalTransactionId: zod.z.string(),
199
+ transactionDate: zod.z.coerce.date().nullable(),
200
+ transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
201
+ transactionSubType: zod.z.string().nullable(),
202
+ transactionReview: zod.z.string().nullable(),
203
+ transactionInfo: zod.z.string(),
204
+ transactionExtractedInfo: zod.z.string().nullable(),
205
+ originator: zod.z.string(),
206
+ beneficiary: zod.z.string(),
207
+ createdAt: zod.z.coerce.date(),
208
+ updatedAt: zod.z.coerce.date().nullable()
209
+ });
210
+
211
+ var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "tms.created", "tms.updated", "tms.deleted"];
195
212
  var WebhookEventType = zod.z["enum"](WebhookEventTypes);
196
- var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
213
+ var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"];
197
214
  var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
198
215
  var AttemptsStatus = {
199
216
  Success: 0,
@@ -254,6 +271,21 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
254
271
  description: zod.z.string(),
255
272
  archived: zod.z["boolean"](),
256
273
  schemas: zod.z.record(zod.z.unknown())
274
+ }), zod.z.object({
275
+ name: zod.z.literal("tms.created"),
276
+ description: zod.z.string(),
277
+ archived: zod.z["boolean"](),
278
+ schemas: zod.z.record(zod.z.unknown())
279
+ }), zod.z.object({
280
+ name: zod.z.literal("tms.updated"),
281
+ description: zod.z.string(),
282
+ archived: zod.z["boolean"](),
283
+ schemas: zod.z.record(zod.z.unknown())
284
+ }), zod.z.object({
285
+ name: zod.z.literal("tms.deleted"),
286
+ description: zod.z.string(),
287
+ archived: zod.z["boolean"](),
288
+ schemas: zod.z.record(zod.z.unknown())
257
289
  })]);
258
290
 
259
291
  /**
@@ -293,11 +325,24 @@ var AlertDeletedPayload = zod.z.object({
293
325
  eventType: zod.z.literal("alert.deleted"),
294
326
  payload: AlertWebhookPayload
295
327
  });
328
+ var TMSCreatedPayload = zod.z.object({
329
+ eventType: zod.z.literal("tms.created"),
330
+ payload: TMSWebhookPayload
331
+ });
332
+ var TMSUpdatedPayload = zod.z.object({
333
+ eventType: zod.z.literal("tms.updated"),
334
+ payload: TMSWebhookPayload
335
+ });
336
+ var TMSDeletedPayload = zod.z.object({
337
+ eventType: zod.z.literal("tms.deleted"),
338
+ payload: TMSWebhookPayload
339
+ });
296
340
  var WebhookScenariosEventPayload = SendScenarioPayload;
297
341
  var WebhookVerificationEventPayload = SendVerificationFlowPayload;
298
342
  var WebhookCustomerEventPayload = zod.z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
299
343
  var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
300
- var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
344
+ var WebhookTMSEventPayload = zod.z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]);
345
+ var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
301
346
  var AllNexeraEventTypes = zod.z.array(NexeraEventTypes);
302
347
  var NexeraSvixEnvironmentConfig = zod.z.object({
303
348
  env: identityApi_schema.EnvironmentSchema
@@ -319,7 +364,10 @@ var EndpointHandlingForm = zod.z.object({
319
364
  customerDeleted: zod.z["boolean"]().optional(),
320
365
  alertCreated: zod.z["boolean"]().optional(),
321
366
  alertUpdated: zod.z["boolean"]().optional(),
322
- alertDeleted: zod.z["boolean"]().optional()
367
+ alertDeleted: zod.z["boolean"]().optional(),
368
+ tmsCreated: zod.z["boolean"]().optional(),
369
+ tmsUpdated: zod.z["boolean"]().optional(),
370
+ tmsDeleted: zod.z["boolean"]().optional()
323
371
  }).optional()
324
372
  });
325
373
  var WebhookCheckboxInformation = zod.z.object({
@@ -331,7 +379,8 @@ var EndpointCheckboxsCollapsiblesSchema = zod.z.object({
331
379
  title: zod.z.string(),
332
380
  icon: zod.z.any(),
333
381
  description: zod.z.string(),
334
- webhooks: zod.z.array(WebhookCheckboxInformation)
382
+ webhooks: zod.z.array(WebhookCheckboxInformation),
383
+ type: zod.z.string().optional()
335
384
  });
336
385
  var EndpointOut = zod.z.object({
337
386
  disabled: zod.z["boolean"]().optional(),
@@ -456,6 +505,18 @@ var SendMessageForAlertDeletedInput = zod.z.object({
456
505
  projectId: zod.z.string(),
457
506
  payload: AlertDeletedPayload
458
507
  });
508
+ var SendMessageForTMSCreatedInput = zod.z.object({
509
+ projectId: zod.z.string(),
510
+ payload: TMSCreatedPayload
511
+ });
512
+ var SendMessageForTMSUpdatedInput = zod.z.object({
513
+ projectId: zod.z.string(),
514
+ payload: TMSUpdatedPayload
515
+ });
516
+ var SendMessageForTMSDeletedInput = zod.z.object({
517
+ projectId: zod.z.string(),
518
+ payload: TMSDeletedPayload
519
+ });
459
520
 
460
521
  /**
461
522
  *
@@ -587,6 +648,27 @@ var NexeraWebhookEvents = [{
587
648
  schemas: {
588
649
  1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
589
650
  }
651
+ }, {
652
+ name: "tms.created",
653
+ description: "Transaction Created Webhook",
654
+ archived: false,
655
+ schemas: {
656
+ 1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
657
+ }
658
+ }, {
659
+ name: "tms.updated",
660
+ description: "Transaction Updated Webhook",
661
+ archived: false,
662
+ schemas: {
663
+ 1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
664
+ }
665
+ }, {
666
+ name: "tms.deleted",
667
+ description: "Transaction Deleted Webhook",
668
+ archived: false,
669
+ schemas: {
670
+ 1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload)
671
+ }
590
672
  }];
591
673
 
592
674
  exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
@@ -656,8 +738,15 @@ exports.SendMessageForCustomerDeletedInput = SendMessageForCustomerDeletedInput;
656
738
  exports.SendMessageForCustomerUpdatedInput = SendMessageForCustomerUpdatedInput;
657
739
  exports.SendMessageForSendScenarioInput = SendMessageForSendScenarioInput;
658
740
  exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput;
741
+ exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput;
742
+ exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput;
743
+ exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput;
659
744
  exports.SendScenarioPayload = SendScenarioPayload;
660
745
  exports.SendVerificationFlowPayload = SendVerificationFlowPayload;
746
+ exports.TMSCreatedPayload = TMSCreatedPayload;
747
+ exports.TMSDeletedPayload = TMSDeletedPayload;
748
+ exports.TMSUpdatedPayload = TMSUpdatedPayload;
749
+ exports.TMSWebhookPayload = TMSWebhookPayload;
661
750
  exports.UpdateEndpointInput = UpdateEndpointInput;
662
751
  exports.UpdateEndpointOutput = UpdateEndpointOutput;
663
752
  exports.UserInfoForDuplicate = UserInfoForDuplicate;
@@ -672,4 +761,5 @@ exports.WebhookEventTypeForm = WebhookEventTypeForm;
672
761
  exports.WebhookEventTypes = WebhookEventTypes;
673
762
  exports.WebhookEventTypesForm = WebhookEventTypesForm;
674
763
  exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload;
764
+ exports.WebhookTMSEventPayload = WebhookTMSEventPayload;
675
765
  exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload;