@nexeraid/identity-schemas 1.12.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/README.md +26 -0
- package/dist/declarations/src/blockchain.schema.d.ts +93 -0
- package/dist/declarations/src/blockchain.schema.d.ts.map +1 -0
- package/dist/declarations/src/config.schema.d.ts +128 -0
- package/dist/declarations/src/config.schema.d.ts.map +1 -0
- package/dist/declarations/src/countries.schema.d.ts +11 -0
- package/dist/declarations/src/countries.schema.d.ts.map +1 -0
- package/dist/declarations/src/credential-storage.schema.d.ts +138 -0
- package/dist/declarations/src/credential-storage.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/app-requests.schema.d.ts +4092 -0
- package/dist/declarations/src/identity/app-requests.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/challenge-query.schema.d.ts +1109 -0
- package/dist/declarations/src/identity/challenge-query.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts +135 -0
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/get-started.schema.d.ts +19 -0
- package/dist/declarations/src/identity/get-started.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/host-requests.schema.d.ts +2721 -0
- package/dist/declarations/src/identity/host-requests.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/index.d.ts +12 -0
- package/dist/declarations/src/identity/index.d.ts.map +1 -0
- package/dist/declarations/src/identity/kyc.schema.d.ts +2593 -0
- package/dist/declarations/src/identity/kyc.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/polygon-id.schema.d.ts +425 -0
- package/dist/declarations/src/identity/polygon-id.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/query.schema.d.ts +526 -0
- package/dist/declarations/src/identity/query.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/txAuthData.schema.d.ts +62 -0
- package/dist/declarations/src/identity/txAuthData.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/txAuthDataTezos.schema.d.ts +56 -0
- package/dist/declarations/src/identity/txAuthDataTezos.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/zkps.schema.d.ts +962 -0
- package/dist/declarations/src/identity/zkps.schema.d.ts.map +1 -0
- package/dist/declarations/src/index.d.ts +5 -0
- package/dist/declarations/src/index.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/GenericVerifiableCredentialSchema.d.ts +95 -0
- package/dist/declarations/src/verifiable-credentials/GenericVerifiableCredentialSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/ID3CredentialSubjectSchema.d.ts +2839 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/ID3CredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanCredentialSubjectSchema.d.ts +163 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanPassportCredentialSubjectSchema.d.ts +21 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanPassportCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanSelfieCredentialSubjectSchema.d.ts +21 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/IDScanSelfieCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_AMLScreeningsResultsCredentialSubjectSchema.d.ts +2692 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_AMLScreeningsResultsCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDImageCredentialSubjectSchema.d.ts +24 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDInformationCredentialSubjectSchema.d.ts +258 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_IDInformationCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_ProofOfResidenceCredentialSubjectSchema.d.ts +39 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_ProofOfResidenceCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_SelfieImageCredentialSubjectSchema.d.ts +21 -0
- package/dist/declarations/src/verifiable-credentials/OLD_generated/generated/OLD_SelfieImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/cleanObject.d.ts +12 -0
- package/dist/declarations/src/verifiable-credentials/cleanObject.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/frontend-utilities.schema.d.ts +16 -0
- package/dist/declarations/src/verifiable-credentials/frontend-utilities.schema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/general-vc-typing.schema.d.ts +5978 -0
- package/dist/declarations/src/verifiable-credentials/general-vc-typing.schema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDImageCredentialSubjectSchema.d.ts +48 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDInformationCredentialSubjectSchema.d.ts +96 -0
- package/dist/declarations/src/verifiable-credentials/generated/IDInformationCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/ProofOfResidenceCredentialSubjectSchema.d.ts +48 -0
- package/dist/declarations/src/verifiable-credentials/generated/ProofOfResidenceCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/generated/SelfieImageCredentialSubjectSchema.d.ts +39 -0
- package/dist/declarations/src/verifiable-credentials/generated/SelfieImageCredentialSubjectSchema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/index.d.ts +56 -0
- package/dist/declarations/src/verifiable-credentials/index.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/vc-utils.schema.d.ts +8 -0
- package/dist/declarations/src/verifiable-credentials/vc-utils.schema.d.ts.map +1 -0
- package/dist/declarations/src/verifiable-credentials/vc_json_schema_map.d.ts +127 -0
- package/dist/declarations/src/verifiable-credentials/vc_json_schema_map.d.ts.map +1 -0
- package/dist/nexeraid-identity-schemas.cjs.d.ts +2 -0
- package/dist/nexeraid-identity-schemas.cjs.dev.js +110 -0
- package/dist/nexeraid-identity-schemas.cjs.js +7 -0
- package/dist/nexeraid-identity-schemas.cjs.prod.js +110 -0
- package/dist/nexeraid-identity-schemas.esm.js +40 -0
- package/dist/package.json +72 -0
- package/dist/txAuthDataTezos.schema-92a60696.cjs.prod.js +2995 -0
- package/dist/txAuthDataTezos.schema-a6ddf460.esm.js +2775 -0
- package/dist/txAuthDataTezos.schema-ad3b7592.cjs.dev.js +2995 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.d.ts +2 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +141 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.js +7 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +141 -0
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +2 -0
- package/identity/package.json +4 -0
- package/package.json +71 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.d.ts +2 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2158 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.js +7 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2158 -0
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2126 -0
- package/verifiable-credentials/package.json +4 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Overview
|
|
2
|
+
|
|
3
|
+
This is where we store Zod Schemas for our code base.
|
|
4
|
+
|
|
5
|
+
## Update Vc Schemas from vc-schemas repo
|
|
6
|
+
|
|
7
|
+
- Check and configure according to [readme.md](scripts%2Freadme.md)
|
|
8
|
+
- run `pnpm run update-schemas`
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## OPA Client
|
|
12
|
+
|
|
13
|
+
Opa client is automatically generated client for interacting with open-policy-agent API.
|
|
14
|
+
OPA api is very stable and not subject to many changes, so don't expect this to change often
|
|
15
|
+
|
|
16
|
+
## Generate new API client
|
|
17
|
+
|
|
18
|
+
In case of changes, run `pnpm run generate-typescript-client`. It uses publicly stored latest version of OPA API schema
|
|
19
|
+
|
|
20
|
+
From mono-repo, run `pnpm run generate-api-client`.
|
|
21
|
+
|
|
22
|
+
## Adding Entrypoints
|
|
23
|
+
|
|
24
|
+
If you need to add entrypoints to expose additional schemas in new files, use:
|
|
25
|
+
|
|
26
|
+
`pnpm preconstruct dev`
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum NEXERA_EVM_CHAINS {
|
|
3
|
+
ETHEREUM = "1",
|
|
4
|
+
GOERLI = "5",
|
|
5
|
+
ARBITRUM = "42161",
|
|
6
|
+
ARBITRUM_GOERLI = "421613",
|
|
7
|
+
ARBITRUM_SEPOLIA = "421614",
|
|
8
|
+
OPTIMISM = "10",
|
|
9
|
+
OPTIMISM_GOERLI = "420",
|
|
10
|
+
OPTIMISM_SEPOLIA = "11155420",
|
|
11
|
+
AVALANCHE = "43114",
|
|
12
|
+
AVALANCHE_FUJI = "43113",
|
|
13
|
+
POLYGON = "137",
|
|
14
|
+
POLYGON_AMOY = "80002",
|
|
15
|
+
SEPOLIA = "11155111",
|
|
16
|
+
BASE = "8453",
|
|
17
|
+
BASE_GOERLI = "84531",
|
|
18
|
+
BASE_SEPOLIA = "84532",
|
|
19
|
+
MOONBEAM = "1284",
|
|
20
|
+
MOONRIVER = "1285",
|
|
21
|
+
BNB = "56",
|
|
22
|
+
BNB_TESTNET = "97"
|
|
23
|
+
}
|
|
24
|
+
export declare const EVM_BLOCK_TIME: Record<NEXERA_EVM_CHAINS, number>;
|
|
25
|
+
export declare enum NEXERA_TEZOS_CHAINS {
|
|
26
|
+
TEZOS = "NetXdQprcVkpaWU",
|
|
27
|
+
TEZOS_GHOSTNET = "NetXnHfVqm9iesp"
|
|
28
|
+
}
|
|
29
|
+
export declare const NEXERA_EVM_CHAIN_NAMES: {
|
|
30
|
+
readonly "1": "Ethereum Mainnet";
|
|
31
|
+
readonly "5": "Goerli";
|
|
32
|
+
readonly "11155111": "Sepolia";
|
|
33
|
+
readonly "137": "Polygon";
|
|
34
|
+
readonly "80002": "Polygon Amoy";
|
|
35
|
+
readonly "43114": "Avalanche";
|
|
36
|
+
readonly "43113": "Avalanche Fuji";
|
|
37
|
+
readonly "42161": "Arbitrum";
|
|
38
|
+
readonly "421614": "Arbitrum Sepolia";
|
|
39
|
+
readonly "8453": "Base";
|
|
40
|
+
readonly "84532": "Base Sepolia";
|
|
41
|
+
readonly "56": "BSC";
|
|
42
|
+
readonly "97": "BSC Testnet";
|
|
43
|
+
readonly "10": "Optimism";
|
|
44
|
+
readonly "11155420": "Optimism Sepolia";
|
|
45
|
+
readonly "1284": "Moonbeam";
|
|
46
|
+
readonly "1285": "Moonriver";
|
|
47
|
+
readonly NetXdQprcVkpaWU: "tezos-mainnet";
|
|
48
|
+
readonly NetXnHfVqm9iesp: "tezos-ghostnet";
|
|
49
|
+
};
|
|
50
|
+
export declare const NEXERA_EVM_CHAIN_NAMES_LIST: ("Ethereum Mainnet" | "Goerli" | "Sepolia" | "Polygon" | "Polygon Amoy" | "Avalanche" | "Avalanche Fuji" | "Arbitrum" | "Arbitrum Sepolia" | "Base" | "Base Sepolia" | "BSC" | "BSC Testnet" | "Optimism" | "Optimism Sepolia" | "Moonbeam" | "Moonriver" | "tezos-mainnet" | "tezos-ghostnet")[];
|
|
51
|
+
export declare const NEXERA_CHAIN_VALUES: {
|
|
52
|
+
readonly "1": 1;
|
|
53
|
+
readonly "5": 5;
|
|
54
|
+
readonly "137": 137;
|
|
55
|
+
readonly "80002": 80002;
|
|
56
|
+
readonly "43114": 43114;
|
|
57
|
+
readonly "43113": 43113;
|
|
58
|
+
readonly "42161": 42161;
|
|
59
|
+
readonly "421613": 421613;
|
|
60
|
+
readonly "421614": 421614;
|
|
61
|
+
readonly "11155111": 11155111;
|
|
62
|
+
readonly "8453": 8453;
|
|
63
|
+
readonly "84531": 84531;
|
|
64
|
+
readonly "84532": 84532;
|
|
65
|
+
readonly "1284": 1284;
|
|
66
|
+
readonly "1285": 1285;
|
|
67
|
+
readonly "10": 10;
|
|
68
|
+
readonly "420": 69;
|
|
69
|
+
readonly NetXdQprcVkpaWU: "NetXdQprcVkpaWU";
|
|
70
|
+
readonly NetXnHfVqm9iesp: "NetXnHfVqm9iesp";
|
|
71
|
+
};
|
|
72
|
+
export declare const CHAINS_WITHOUT_DEDICATED_NODE_RPC: NEXERA_EVM_CHAINS[];
|
|
73
|
+
export declare const ACTIVE_EVM_CHAIN_VALUES: readonly [NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA];
|
|
74
|
+
export declare const EvmChainId: z.ZodEffects<z.ZodEnum<[NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA]>, NEXERA_EVM_CHAINS.ETHEREUM | NEXERA_EVM_CHAINS.ARBITRUM | NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | NEXERA_EVM_CHAINS.OPTIMISM | NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | NEXERA_EVM_CHAINS.AVALANCHE | NEXERA_EVM_CHAINS.AVALANCHE_FUJI | NEXERA_EVM_CHAINS.POLYGON | NEXERA_EVM_CHAINS.POLYGON_AMOY | NEXERA_EVM_CHAINS.SEPOLIA | NEXERA_EVM_CHAINS.BASE | NEXERA_EVM_CHAINS.BASE_SEPOLIA | NEXERA_EVM_CHAINS.MOONBEAM | NEXERA_EVM_CHAINS.MOONRIVER | NEXERA_EVM_CHAINS.BNB | NEXERA_EVM_CHAINS.BNB_TESTNET, unknown>;
|
|
75
|
+
export type EvmChainId = z.infer<typeof EvmChainId>;
|
|
76
|
+
export declare const POLYGON_NETWORK_NAMES: readonly ["main", "amoy"];
|
|
77
|
+
export declare const PolygonNetworkNames: z.ZodEnum<["main", "amoy"]>;
|
|
78
|
+
export type PolygonNetworkNames = z.infer<typeof PolygonNetworkNames>;
|
|
79
|
+
export declare const NEXERA_TEZOS_CHAIN_NAMES: {
|
|
80
|
+
readonly NetXdQprcVkpaWU: "Tezos Mainnet";
|
|
81
|
+
readonly NetXnHfVqm9iesp: "Tezos Ghostnet";
|
|
82
|
+
};
|
|
83
|
+
export declare const NEXERA_TEZOS_CHAIN_NAMES_LIST: ("Tezos Mainnet" | "Tezos Ghostnet")[];
|
|
84
|
+
export declare const NEXERA_TEZOS_CHAIN_VALUES: {
|
|
85
|
+
readonly NetXdQprcVkpaWU: "NetXdQprcVkpaWU";
|
|
86
|
+
readonly NetXnHfVqm9iesp: "NetXnHfVqm9iesp";
|
|
87
|
+
};
|
|
88
|
+
export declare const ACTIVE_TEZOS_CHAIN_VALUES: readonly [NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET];
|
|
89
|
+
export declare const TezosChainId: z.ZodEffects<z.ZodEnum<[NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET]>, NEXERA_TEZOS_CHAINS, unknown>;
|
|
90
|
+
export type TezosChainId = z.infer<typeof TezosChainId>;
|
|
91
|
+
export declare const BlockchainId: z.ZodUnion<[z.ZodEffects<z.ZodEnum<[NEXERA_EVM_CHAINS.ETHEREUM, NEXERA_EVM_CHAINS.POLYGON, NEXERA_EVM_CHAINS.POLYGON_AMOY, NEXERA_EVM_CHAINS.AVALANCHE, NEXERA_EVM_CHAINS.AVALANCHE_FUJI, NEXERA_EVM_CHAINS.ARBITRUM, NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA, NEXERA_EVM_CHAINS.SEPOLIA, NEXERA_EVM_CHAINS.BASE, NEXERA_EVM_CHAINS.BASE_SEPOLIA, NEXERA_EVM_CHAINS.BNB, NEXERA_EVM_CHAINS.BNB_TESTNET, NEXERA_EVM_CHAINS.MOONBEAM, NEXERA_EVM_CHAINS.MOONRIVER, NEXERA_EVM_CHAINS.OPTIMISM, NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA]>, NEXERA_EVM_CHAINS.ETHEREUM | NEXERA_EVM_CHAINS.ARBITRUM | NEXERA_EVM_CHAINS.ARBITRUM_SEPOLIA | NEXERA_EVM_CHAINS.OPTIMISM | NEXERA_EVM_CHAINS.OPTIMISM_SEPOLIA | NEXERA_EVM_CHAINS.AVALANCHE | NEXERA_EVM_CHAINS.AVALANCHE_FUJI | NEXERA_EVM_CHAINS.POLYGON | NEXERA_EVM_CHAINS.POLYGON_AMOY | NEXERA_EVM_CHAINS.SEPOLIA | NEXERA_EVM_CHAINS.BASE | NEXERA_EVM_CHAINS.BASE_SEPOLIA | NEXERA_EVM_CHAINS.MOONBEAM | NEXERA_EVM_CHAINS.MOONRIVER | NEXERA_EVM_CHAINS.BNB | NEXERA_EVM_CHAINS.BNB_TESTNET, unknown>, z.ZodEffects<z.ZodEnum<[NEXERA_TEZOS_CHAINS.TEZOS, NEXERA_TEZOS_CHAINS.TEZOS_GHOSTNET]>, NEXERA_TEZOS_CHAINS, unknown>]>;
|
|
92
|
+
export type BlockchainId = z.infer<typeof BlockchainId>;
|
|
93
|
+
//# sourceMappingURL=blockchain.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockchain.schema.d.ts","sourceRoot":"../../../src","sources":["blockchain.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,iBAAiB;IAC3B,QAAQ,MAAM;IACd,MAAM,MAAM;IACZ,QAAQ,UAAU;IAClB,eAAe,WAAW;IAC1B,gBAAgB,WAAW;IAC3B,QAAQ,OAAO;IACf,eAAe,QAAQ;IACvB,gBAAgB,aAAa;IAC7B,SAAS,UAAU;IACnB,cAAc,UAAU;IACxB,OAAO,QAAQ;IACf,YAAY,UAAU;IACtB,OAAO,aAAa;IACpB,IAAI,SAAS;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
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* EIP155
|
|
4
|
+
*/
|
|
5
|
+
export declare const isValidAddress: (address: string) => boolean;
|
|
6
|
+
declare const String0x: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
type String0x = z.infer<typeof String0x>;
|
|
8
|
+
export type TxData = PrivateKey;
|
|
9
|
+
export declare const PrivateKey: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
export type PrivateKey = String0x;
|
|
11
|
+
/**
|
|
12
|
+
* Note: it might be nice to use String0x as the base object instead of z.string(),
|
|
13
|
+
* but this causes update-api to fail with the following error:
|
|
14
|
+
* TRPCError: [query.kyc.sumsub.getJourneyData] -
|
|
15
|
+
* Input parser key: "userAddress" must be ZodString, ZodNumber, ZodBoolean, ZodBigInt or ZodDate
|
|
16
|
+
*/
|
|
17
|
+
export declare const AddressSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
18
|
+
export type Address = z.infer<typeof AddressSchema>;
|
|
19
|
+
export declare const TxHash: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>;
|
|
20
|
+
export type TxHash = z.infer<typeof TxHash>;
|
|
21
|
+
export declare const EIP155Signature: z.ZodEffects<z.ZodString, string, string>;
|
|
22
|
+
export type EIP155Signature = String0x;
|
|
23
|
+
export declare const FunctionCallData: z.ZodEffects<z.ZodString, string, string>;
|
|
24
|
+
export type FunctionCallData = String0x;
|
|
25
|
+
export declare const shortAddress: (address: BlockchainAddress) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Aptos
|
|
28
|
+
*/
|
|
29
|
+
export declare const AptosAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
30
|
+
export type AptosAddress = z.infer<typeof AptosAddress>;
|
|
31
|
+
export declare const AptosSignature: z.ZodString;
|
|
32
|
+
export type AptosSignature = z.infer<typeof AptosSignature>;
|
|
33
|
+
/**
|
|
34
|
+
* Starknet
|
|
35
|
+
*/
|
|
36
|
+
export declare const StarknetAddress: z.ZodEffects<z.ZodString, string, string>;
|
|
37
|
+
export type StarknetAddress = z.infer<typeof StarknetAddress>;
|
|
38
|
+
export declare const StarknetSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
39
|
+
export type StarknetSignature = z.infer<typeof StarknetSignature>;
|
|
40
|
+
/**
|
|
41
|
+
* Polkadot
|
|
42
|
+
*/
|
|
43
|
+
export declare const PolkadotAddress: z.ZodString;
|
|
44
|
+
export type PolkadotAddress = z.infer<typeof PolkadotAddress>;
|
|
45
|
+
export declare const PolkadotSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
46
|
+
export type PolkadotSignature = z.infer<typeof PolkadotSignature>;
|
|
47
|
+
/**
|
|
48
|
+
* Cosmos
|
|
49
|
+
*/
|
|
50
|
+
export declare const CosmosAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>;
|
|
51
|
+
export type CosmosAddress = z.infer<typeof CosmosAddress>;
|
|
52
|
+
export declare const CosmosSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
53
|
+
export type CosmosSignature = z.infer<typeof CosmosSignature>;
|
|
54
|
+
/**
|
|
55
|
+
* Tezos
|
|
56
|
+
*/
|
|
57
|
+
export declare const TezosImplicitAddress: z.ZodEffects<z.ZodString, `tz${string}`, string>;
|
|
58
|
+
export type TezosImplicitAddress = z.infer<typeof TezosImplicitAddress>;
|
|
59
|
+
export declare const TezosContractAddress: z.ZodEffects<z.ZodString, `KT1${string}`, string>;
|
|
60
|
+
export type TezosContractAddress = z.infer<typeof TezosContractAddress>;
|
|
61
|
+
export declare const TezosAddress: z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>;
|
|
62
|
+
export type TezosAddress = z.infer<typeof TezosAddress>;
|
|
63
|
+
export declare const TezosEntrypointName: z.ZodEffects<z.ZodString, `%${string}`, string>;
|
|
64
|
+
export type TezosEntrypointName = z.infer<typeof TezosEntrypointName>;
|
|
65
|
+
export declare const EdSignature: z.ZodEffects<z.ZodString, `edsig${string}`, string>;
|
|
66
|
+
export type EdSignature = z.infer<typeof EdSignature>;
|
|
67
|
+
export declare const SpSignature: z.ZodEffects<z.ZodString, `spsig${string}`, string>;
|
|
68
|
+
export type SpSignature = z.infer<typeof SpSignature>;
|
|
69
|
+
export declare const P2Signature: z.ZodEffects<z.ZodString, `p2sig${string}`, string>;
|
|
70
|
+
export type P2Signature = z.infer<typeof P2Signature>;
|
|
71
|
+
export declare const TezosSignature: z.ZodUnion<[z.ZodEffects<z.ZodString, `edsig${string}`, string>, z.ZodEffects<z.ZodString, `spsig${string}`, string>, z.ZodEffects<z.ZodString, `p2sig${string}`, string>]>;
|
|
72
|
+
export type TezosSignature = z.infer<typeof TezosSignature>;
|
|
73
|
+
/**
|
|
74
|
+
* Cardano
|
|
75
|
+
*/
|
|
76
|
+
export declare const CardanoAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>;
|
|
77
|
+
export type CardanoAddress = z.infer<typeof CardanoAddress>;
|
|
78
|
+
export declare const CardanoSignature: z.ZodEffects<z.ZodString, string, string>;
|
|
79
|
+
export type CardanoSignature = z.infer<typeof CardanoSignature>;
|
|
80
|
+
/**
|
|
81
|
+
* Chain agnostic schemas
|
|
82
|
+
*/
|
|
83
|
+
export declare const BlockchainAddress: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `0x${string}`, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `tz${string}`, string>, z.ZodEffects<z.ZodString, `KT1${string}`, string>]>, z.ZodEffects<z.ZodString, string, string>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `cosmos${string}`, string>, z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, `addr${string}`, string>]>;
|
|
84
|
+
export type BlockchainAddress = z.infer<typeof BlockchainAddress>;
|
|
85
|
+
export declare const BlockchainSignature: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, `edsig${string}`, string>, z.ZodEffects<z.ZodString, `spsig${string}`, string>, z.ZodEffects<z.ZodString, `p2sig${string}`, string>]>, z.ZodString, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>;
|
|
86
|
+
export type BlockchainSignature = z.infer<typeof BlockchainSignature>;
|
|
87
|
+
export declare const BLOCKCHAIN_NAMESPACES: readonly ["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"];
|
|
88
|
+
export declare const BlockchainNamespace: z.ZodEnum<["tezos", "eip155", "aptos", "polkadot", "starknet", "cosmos", "solana", "cardano"]>;
|
|
89
|
+
export type BlockchainNamespace = z.infer<typeof BlockchainNamespace>;
|
|
90
|
+
export declare const BLOCKCHAIN_NAMESPACES_NAMES: {
|
|
91
|
+
readonly tezos: "Tezos";
|
|
92
|
+
readonly eip155: "EVM";
|
|
93
|
+
readonly aptos: "Aptos";
|
|
94
|
+
readonly polkadot: "Polkadot";
|
|
95
|
+
readonly starknet: "Starknet";
|
|
96
|
+
readonly cosmos: "Cosmos";
|
|
97
|
+
readonly solana: "Solana";
|
|
98
|
+
readonly cardano: "Cardano";
|
|
99
|
+
};
|
|
100
|
+
export declare const DISPLAYED_LOCKCHAIN_NAMESPACES: readonly ["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano"];
|
|
101
|
+
export declare const DisplayedBlockchainNamespace: z.ZodEnum<["Tezos", "EVM", "Aptos", "Polkadot", "Starknet", "Cosmos", "Solana", "Cardano"]>;
|
|
102
|
+
export type DisplayedBlockchainNamespace = z.infer<typeof DisplayedBlockchainNamespace>;
|
|
103
|
+
export declare const BLOCKCHAIN_NAME_TO_NAMESPACE: Record<DisplayedBlockchainNamespace, BlockchainNamespace>;
|
|
104
|
+
export declare const BLOCKCHAIN_NAMESPACE_TO_NAME: Record<BlockchainNamespace, DisplayedBlockchainNamespace>;
|
|
105
|
+
export declare const coerceBoolean: z.ZodEffects<z.ZodCatch<z.ZodEnum<["0", "1", "true", "false"]>>, boolean, unknown>;
|
|
106
|
+
export declare const ENVS: readonly ["cicd", "local", "test-dev-1", "test-dev-2", "dev", "stage", "prod"];
|
|
107
|
+
export declare const EnvironmentSchema: z.ZodEnum<["cicd", "local", "test-dev-1", "test-dev-2", "dev", "stage", "prod"]>;
|
|
108
|
+
export type Environment = z.infer<typeof EnvironmentSchema>;
|
|
109
|
+
export declare const UuidString: z.ZodString;
|
|
110
|
+
export type UuidString = z.infer<typeof UuidString>;
|
|
111
|
+
/**
|
|
112
|
+
* Zod parse without throwing an error if the value is invalid
|
|
113
|
+
* Rather, it returns a object with optional error and data fields
|
|
114
|
+
*
|
|
115
|
+
* @param schema
|
|
116
|
+
* @param value
|
|
117
|
+
* @constructor
|
|
118
|
+
*/
|
|
119
|
+
export declare function ZodParse<T>(schema: z.ZodSchema<T>, value: unknown): {
|
|
120
|
+
data: z.infer<typeof schema>;
|
|
121
|
+
error: undefined;
|
|
122
|
+
} | {
|
|
123
|
+
error: z.ZodError<unknown>;
|
|
124
|
+
data: undefined;
|
|
125
|
+
};
|
|
126
|
+
export declare const shortBlockchainAddress: (address: BlockchainAddress) => string;
|
|
127
|
+
export {};
|
|
128
|
+
//# sourceMappingURL=config.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.schema.d.ts","sourceRoot":"../../../src","sources":["config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,cAAc,YAAa,MAAM,YAG7C,CAAC;AAEF,QAAA,MAAM,QAAQ,2CAKU,CAAC;AACzB,KAAK,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CA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ACX,eAAO,MAAM,iBAAiB,kFAAe,CAAC;AAC9C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,UAAU,aAAoB,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EACxB,MAAM,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACtB,KAAK,EAAE,OAAO,GAEZ;IAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GAClD;IAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAOlD;AAED,eAAO,MAAM,sBAAsB,YAAa,iBAAiB,WAEhE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ISO3CountryCode: z.ZodEnum<["AFG", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "CPV", "KHM", "CMR", "CAN", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COD", "COG", "COK", "CRI", "HRV", "CUB", "CUW", "CYP", "CZE", "CIV", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "SWZ", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "MKD", "ROU", "RUS", "RWA", "REU", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "UMI", "USA", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE", "ALA", "ANT", "XKX"]>;
|
|
3
|
+
export type ISO3CountryCode = z.infer<typeof ISO3CountryCode>;
|
|
4
|
+
export declare const ALPHA_2_COUNTRIES: readonly ["AN", "XK", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "VG", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "HK", "MO", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VI", "WF", "EH", "YE", "ZM", "ZW"];
|
|
5
|
+
export declare const Alpha2Country: z.ZodEnum<["AN", "XK", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "VG", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "HK", "MO", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VI", "WF", "EH", "YE", "ZM", "ZW"]>;
|
|
6
|
+
export type Alpha2Country = z.infer<typeof Alpha2Country>;
|
|
7
|
+
export declare const countryISO3toISO2Mapping: Record<ISO3CountryCode, Alpha2Country>;
|
|
8
|
+
export declare const countryISO2toISO3Mapping: Record<Alpha2Country, ISO3CountryCode>;
|
|
9
|
+
export declare const isoCountriesNameFromISO2: Record<Alpha2Country, string>;
|
|
10
|
+
export declare function parseISO3CountryCode(code: string | undefined | null): ISO3CountryCode | undefined;
|
|
11
|
+
//# sourceMappingURL=countries.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countries.schema.d.ts","sourceRoot":"../../../src","sources":["countries.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe,0uDACwD,CAAC;AAErF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,iBAAiB,6+CA4PpB,CAAC;AAEX,eAAO,MAAM,aAAa,++CAA4B,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,eAAe,EAAE,aAAa,CA6PhE,CAAC;AAEb,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,aAAa,EAAE,eAAe,CA6PhE,CAAC;AAEb,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CA4PzD,CAAC;AAEX,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAC9B,eAAe,GAAG,SAAS,CAI7B"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const EncryptedKycKey: z.ZodObject<{
|
|
3
|
+
address: z.ZodString;
|
|
4
|
+
encryptedPrivateKey: z.ZodString;
|
|
5
|
+
signingMessage: z.ZodString;
|
|
6
|
+
salt: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
7
|
+
iv: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
8
|
+
did: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
address: string;
|
|
11
|
+
encryptedPrivateKey: string;
|
|
12
|
+
signingMessage: string;
|
|
13
|
+
salt?: unknown;
|
|
14
|
+
iv?: unknown;
|
|
15
|
+
did?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
address: string;
|
|
18
|
+
encryptedPrivateKey: string;
|
|
19
|
+
signingMessage: string;
|
|
20
|
+
salt?: unknown;
|
|
21
|
+
iv?: unknown;
|
|
22
|
+
did?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const EncryptedVerifiableCredentialDataSchema: z.ZodObject<{
|
|
25
|
+
iv: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
26
|
+
ephemPublicKey: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
27
|
+
ciphertext: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
28
|
+
mac: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
iv?: unknown;
|
|
31
|
+
ephemPublicKey?: unknown;
|
|
32
|
+
ciphertext?: unknown;
|
|
33
|
+
mac?: unknown;
|
|
34
|
+
}, {
|
|
35
|
+
iv?: unknown;
|
|
36
|
+
ephemPublicKey?: unknown;
|
|
37
|
+
ciphertext?: unknown;
|
|
38
|
+
mac?: unknown;
|
|
39
|
+
}>;
|
|
40
|
+
export declare const EncryptedVerifiableCredentialSchema: z.ZodObject<{
|
|
41
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
did: z.ZodString;
|
|
43
|
+
journeyId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
type: z.ZodEnum<["AMLScreeningsResults", "ProofOfResidence", "SelfieImage", "IDImage", "IDInformation", "ID3", "IDScan", "IDScanSelfie", "IDScanPassport"]>;
|
|
45
|
+
datetime: z.ZodDate;
|
|
46
|
+
credential: z.ZodObject<{
|
|
47
|
+
iv: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
48
|
+
ephemPublicKey: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
49
|
+
ciphertext: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
50
|
+
mac: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
iv?: unknown;
|
|
53
|
+
ephemPublicKey?: unknown;
|
|
54
|
+
ciphertext?: unknown;
|
|
55
|
+
mac?: unknown;
|
|
56
|
+
}, {
|
|
57
|
+
iv?: unknown;
|
|
58
|
+
ephemPublicKey?: unknown;
|
|
59
|
+
ciphertext?: unknown;
|
|
60
|
+
mac?: unknown;
|
|
61
|
+
}>;
|
|
62
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
type: "AMLScreeningsResults" | "ProofOfResidence" | "SelfieImage" | "IDImage" | "IDInformation" | "ID3" | "IDScan" | "IDScanSelfie" | "IDScanPassport";
|
|
65
|
+
did: string;
|
|
66
|
+
datetime: Date;
|
|
67
|
+
credential: {
|
|
68
|
+
iv?: unknown;
|
|
69
|
+
ephemPublicKey?: unknown;
|
|
70
|
+
ciphertext?: unknown;
|
|
71
|
+
mac?: unknown;
|
|
72
|
+
};
|
|
73
|
+
id?: number | undefined;
|
|
74
|
+
journeyId?: string | undefined;
|
|
75
|
+
identifier?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
type: "AMLScreeningsResults" | "ProofOfResidence" | "SelfieImage" | "IDImage" | "IDInformation" | "ID3" | "IDScan" | "IDScanSelfie" | "IDScanPassport";
|
|
78
|
+
did: string;
|
|
79
|
+
datetime: Date;
|
|
80
|
+
credential: {
|
|
81
|
+
iv?: unknown;
|
|
82
|
+
ephemPublicKey?: unknown;
|
|
83
|
+
ciphertext?: unknown;
|
|
84
|
+
mac?: unknown;
|
|
85
|
+
};
|
|
86
|
+
id?: number | undefined;
|
|
87
|
+
journeyId?: string | undefined;
|
|
88
|
+
identifier?: string | undefined;
|
|
89
|
+
}>;
|
|
90
|
+
export type EncryptedVerifiableCredential = z.infer<typeof EncryptedVerifiableCredentialSchema>;
|
|
91
|
+
export declare const DownloadableKycSchema: z.ZodObject<{
|
|
92
|
+
vcs: z.ZodArray<z.ZodAny, "many">;
|
|
93
|
+
key: z.ZodObject<{
|
|
94
|
+
address: z.ZodString;
|
|
95
|
+
encryptedPrivateKey: z.ZodString;
|
|
96
|
+
signingMessage: z.ZodString;
|
|
97
|
+
salt: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
98
|
+
iv: z.ZodEffects<z.ZodUnknown, unknown, unknown>;
|
|
99
|
+
did: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
address: string;
|
|
102
|
+
encryptedPrivateKey: string;
|
|
103
|
+
signingMessage: string;
|
|
104
|
+
salt?: unknown;
|
|
105
|
+
iv?: unknown;
|
|
106
|
+
did?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
address: string;
|
|
109
|
+
encryptedPrivateKey: string;
|
|
110
|
+
signingMessage: string;
|
|
111
|
+
salt?: unknown;
|
|
112
|
+
iv?: unknown;
|
|
113
|
+
did?: string | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
vcs: any[];
|
|
117
|
+
key: {
|
|
118
|
+
address: string;
|
|
119
|
+
encryptedPrivateKey: string;
|
|
120
|
+
signingMessage: string;
|
|
121
|
+
salt?: unknown;
|
|
122
|
+
iv?: unknown;
|
|
123
|
+
did?: string | undefined;
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
vcs: any[];
|
|
127
|
+
key: {
|
|
128
|
+
address: string;
|
|
129
|
+
encryptedPrivateKey: string;
|
|
130
|
+
signingMessage: string;
|
|
131
|
+
salt?: unknown;
|
|
132
|
+
iv?: unknown;
|
|
133
|
+
did?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
}>;
|
|
136
|
+
export type DownloadableKyc = z.infer<typeof DownloadableKycSchema>;
|
|
137
|
+
export type EncryptedKycKey = z.infer<typeof EncryptedKycKey>;
|
|
138
|
+
//# sourceMappingURL=credential-storage.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-storage.schema.d.ts","sourceRoot":"../../../src","sources":["credential-storage.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAQ1B,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;EAKlD,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ9C,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,mCAAmC,CAC3C,CAAC;AACF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|