@keetanetwork/anchor 0.0.95 → 0.0.97
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/lib/chaining.d.ts +33 -13
- package/lib/chaining.d.ts.map +1 -1
- package/lib/chaining.js +379 -304
- package/lib/chaining.js.map +1 -1
- package/lib/queue/drivers/queue_file.d.ts +1 -0
- package/lib/queue/drivers/queue_file.d.ts.map +1 -1
- package/lib/queue/drivers/queue_file.js +4 -0
- package/lib/queue/drivers/queue_file.js.map +1 -1
- package/lib/queue/drivers/queue_firestore.d.ts +2 -1
- package/lib/queue/drivers/queue_firestore.d.ts.map +1 -1
- package/lib/queue/drivers/queue_firestore.js +34 -0
- package/lib/queue/drivers/queue_firestore.js.map +1 -1
- package/lib/queue/drivers/queue_postgres.d.ts +2 -1
- package/lib/queue/drivers/queue_postgres.d.ts.map +1 -1
- package/lib/queue/drivers/queue_postgres.js +40 -6
- package/lib/queue/drivers/queue_postgres.js.map +1 -1
- package/lib/queue/drivers/queue_redis.d.ts +2 -1
- package/lib/queue/drivers/queue_redis.d.ts.map +1 -1
- package/lib/queue/drivers/queue_redis.js +35 -0
- package/lib/queue/drivers/queue_redis.js.map +1 -1
- package/lib/queue/drivers/queue_sqlite3.d.ts +2 -1
- package/lib/queue/drivers/queue_sqlite3.d.ts.map +1 -1
- package/lib/queue/drivers/queue_sqlite3.js +36 -6
- package/lib/queue/drivers/queue_sqlite3.js.map +1 -1
- package/lib/queue/index.d.ts +36 -0
- package/lib/queue/index.d.ts.map +1 -1
- package/lib/queue/index.js +86 -1
- package/lib/queue/index.js.map +1 -1
- package/lib/utils/retry.d.ts +66 -0
- package/lib/utils/retry.d.ts.map +1 -0
- package/lib/utils/retry.js +155 -0
- package/lib/utils/retry.js.map +1 -0
- package/npm-shrinkwrap.json +5 -28
- package/package.json +2 -2
- package/services/fx/client.d.ts.map +1 -1
- package/services/fx/client.js +19 -9
- package/services/fx/client.js.map +1 -1
- package/services/fx/server.d.ts.map +1 -1
- package/services/fx/server.js +26 -1
- package/services/fx/server.js.map +1 -1
- package/services/fx/util.d.ts.map +1 -1
- package/services/fx/util.js +0 -3
- package/services/fx/util.js.map +1 -1
- package/services/kyc/iso20022.generated.d.ts +39 -3
- package/services/kyc/iso20022.generated.d.ts.map +1 -1
- package/services/kyc/iso20022.generated.js +40 -5
- package/services/kyc/iso20022.generated.js.map +1 -1
- package/services/kyc/oids.generated.d.ts +18 -0
- package/services/kyc/oids.generated.d.ts.map +1 -1
- package/services/kyc/oids.generated.js +32 -2
- package/services/kyc/oids.generated.js.map +1 -1
package/services/fx/util.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/services/fx/util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAI1D,MAAM,UAAU,qCAAqC,CAAC,KAGrD;IAUA,IAAI,kBAA0B,CAAC;IAC/B,IAAI,qBAA6B,CAAC;IAElC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;QACrC,kBAAkB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClD,qBAAqB,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC;IACrD,CAAC;SAAM,CAAC;QACP,kBAAkB,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC;QACjD,qBAAqB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,OAAM,CAAC;QACN,OAAO,EAAE;YACR,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;YACzD,MAAM,EAAE,qBAAqB;SAC7B;QACD,IA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AED,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,CAAC;YAC1C,IAAI,YAAY,IAAI,YAAY,GAAG,EAAE,EAAE,CAAC;gBACvC,OAAO,CAAC,IAAI,CAAC;oBACZ,KAAK,EAAE,WAAW;oBAClB,MAAM,EAAE,YAAY;iBACpB,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;IACF,CAAC;IAED,KAAK,MAAM,CAAE,QAAQ,EAAE,MAAM,CAAE,IAAI,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC;QAC3E,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QAE5D,IAAI,gBAAgB,GAAG,MAAM,EAAE,CAAC;YAC/B,MAAK,CAAC,IAAI,oBAAoB,CAAC,kCAAkC,MAAM,oBAAoB,gBAAgB,cAAc,QAAQ,EAAE,CAAC,CAAC,CAAC;QACvI,CAAC;IACF,CAAC;IAED,OAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AACrB,CAAC","sourcesContent":["import type { TokenAddress } from \"@keetanetwork/keetanet-client/lib/account.js\";\nimport * as KeetaNet from \"@keetanetwork/keetanet-client\";\nimport { KeetaAnchorUserError } from \"../../lib/error.js\";\nimport type { ConversionInputCanonical, ConversionInputCanonicalJSON, KeetaNetToken } from \"./common.js\";\nimport type { ValidateQuoteArguments } from \"./server.js\";\n\nexport function convertQuoteToExpectedSwapWithoutCost(input: {\n\tquote: Omit<ValidateQuoteArguments, 'account'>,\n\trequest: ConversionInputCanonical | ConversionInputCanonicalJSON,\n}): NonNullable<{\n\t\treceive: {\n\t\t\ttoken: KeetaNetToken;\n\t\t\tamount: bigint;\n\t\t};\n\t\tsend: {\n\t\t\ttoken: KeetaNetToken;\n\t\t\tamount: bigint;\n\t\t};\n\t}> {\n\tlet expectedSendAmount: bigint;\n\tlet expectedReceiveAmount: bigint;\n\n\tif (input.request.affinity === 'to') {\n\t\texpectedSendAmount = BigInt(input.request.amount);\n\t\texpectedReceiveAmount = input.quote.convertedAmount;\n\t} else {\n\t\texpectedSendAmount = input.quote.convertedAmount;\n\t\texpectedReceiveAmount = BigInt(input.request.amount);\n\t}\n\n\treturn({\n\t\treceive: {\n\t\t\ttoken: KeetaNet.lib.Account.toAccount(input.request.from),\n\t\t\tamount: expectedReceiveAmount\n\t\t},\n\t\tsend: {\n\t\t\ttoken: KeetaNet.lib.Account.toAccount(input.request.to),\n\t\t\tamount: expectedSendAmount\n\t\t}\n\t})\n}\n\nexport type RefundValue = { token: TokenAddress; amount: bigint; };\nexport function assertExchangeBlockParametersAndComputeRefund(args: {\n\tblock: InstanceType<typeof KeetaNet['lib']['Block']>;\n\tliquidityAccount: InstanceType<typeof KeetaNet['lib']['Account']>;\n\n\tallowedLiquidityAccounts: null | InstanceType<typeof KeetaNet['lib']['Account']['Set']>;\n\n\tchecks: Parameters<typeof convertQuoteToExpectedSwapWithoutCost>[0];\n\n\tisQuoteBasedExchange: boolean;\n}): {\n\t\trefunds: RefundValue[];\n\t} {\n\tif (args.allowedLiquidityAccounts !== null && !(args.allowedLiquidityAccounts.has(args.liquidityAccount))) {\n\t\tthrow(new KeetaAnchorUserError(`Invalid liquidity account provided ${args.liquidityAccount.publicKeyString.get()}`));\n\t}\n\n\tconst userSent: { [tokenPublicKey: string]: bigint; } = {};\n\tconst userExpectsReceive: { [tokenPublicKey: string]: bigint; } = {};\n\tfor (const operation of args.block.operations) {\n\t\tlet validToken;\n\t\tif (operation.type === KeetaNet.lib.Block.OperationType.SEND) {\n\t\t\tif (!(operation.to.comparePublicKey(args.liquidityAccount))) {\n\t\t\t\tthrow(new KeetaAnchorUserError('Send operations in exchange block must be made sending to liquidity account'));\n\t\t\t}\n\n\t\t\tif (operation.token.comparePublicKey(args.checks.request.from)) {\n\t\t\t\tvalidToken = true;\n\t\t\t} else if (operation.token.comparePublicKey(args.checks.quote.cost.token) && args.checks.quote.cost.amount > 0n) {\n\t\t\t\tvalidToken = true;\n\t\t\t} else {\n\t\t\t\tvalidToken = false;\n\t\t\t}\n\n\t\t\tconst tokenPub = operation.token.publicKeyString.get();\n\n\t\t\tif (!(userSent[tokenPub])) {\n\t\t\t\tuserSent[tokenPub] = 0n;\n\t\t\t} else {\n\t\t\t\tthrow(new KeetaAnchorUserError(`Multiple send operations for token ${tokenPub} in exchange block are not allowed`));\n\t\t\t}\n\n\t\t\tuserSent[tokenPub] += operation.amount;\n\t\t} else if (operation.type === KeetaNet.lib.Block.OperationType.RECEIVE) {\n\t\t\tif (!(operation.from.comparePublicKey(args.liquidityAccount))) {\n\t\t\t\tthrow(new KeetaAnchorUserError('Receive operations in exchange block must be made requesting from liquidity account'));\n\t\t\t}\n\n\t\t\tvalidToken = operation.token.comparePublicKey(args.checks.request.to);\n\n\t\t\tconst tokenPub = operation.token.publicKeyString.get();\n\n\t\t\tif (!(userExpectsReceive[tokenPub])) {\n\t\t\t\tuserExpectsReceive[tokenPub] = 0n;\n\t\t\t} else {\n\t\t\t\tthrow(new KeetaAnchorUserError(`Multiple receive operations for token ${tokenPub} in exchange block are not allowed`));\n\t\t\t}\n\n\t\t\tuserExpectsReceive[tokenPub] += operation.amount;\n\t\t} else {\n\t\t\tthrow(new KeetaAnchorUserError(`Invalid operation type in exchange block: ${operation.type}`));\n\t\t}\n\n\t\tif (!(validToken)) {\n\t\t\tthrow(new KeetaAnchorUserError(`Invalid token sent/received in exchange block: ${operation.token.publicKeyString.get()}`));\n\t\t}\n\t}\n\n\tconst expected = convertQuoteToExpectedSwapWithoutCost(args.checks);\n\n\tconst userSendsMinimum = {\n\t\t[expected.receive.token.publicKeyString.get()]: expected.receive.amount\n\t};\n\n\tconst userWillReceiveMaximum = {\n\t\t[expected.send.token.publicKeyString.get()]: expected.send.amount\n\t};\n\n\tconst costValue = args.checks.quote.cost;\n\tif (costValue.amount > 0n) {\n\t\tconst feeTokenPub = costValue.token.publicKeyString.get();\n\n\t\tif (!userSendsMinimum[feeTokenPub]) {\n\t\t\tuserSendsMinimum[feeTokenPub] = 0n;\n\t\t}\n\n\t\tuserSendsMinimum[feeTokenPub] += costValue.amount;\n\t}\n\n\tconst refunds: RefundValue[] = [];\n\n\tfor (const [ tokenPub, amount ] of Object.entries(userSendsMinimum)) {\n\t\tconst userDidSend = userSent[tokenPub] ?? 0n;\n\n\t\tif (userDidSend !== amount && args.isQuoteBasedExchange) {\n\t\t\tthrow(new KeetaAnchorUserError(`For quote based exchanges, user must send exactly the expected amount of ${amount} for token ${tokenPub}, user sent ${userDidSend}`));\n\t\t}\n\n\t\tif (userDidSend < amount) {\n\t\t\tthrow(new KeetaAnchorUserError(`Expected send of ${amount}, only saw ${userDidSend} for token ${tokenPub}`));\n\t\t}\n\n\t\t// If the user sent more than the minimum and the excess is in the expected receive token or the cost token, consider it a refund.\n\t\t// This allows users to send more than the minimum if they want to receive more than the expected amount,\n\t\t// but still ensures that if they do so by mistake they will get a refund of the excess.\n\t\tif (userDidSend > amount) {\n\t\t\tlet isRefundable = false;\n\n\t\t\tconst excessToken = KeetaNet.lib.Account.toAccount(tokenPub).assertKeyType(KeetaNet.lib.Account.AccountKeyAlgorithm.TOKEN);\n\n\t\t\tif (excessToken.comparePublicKey(expected.receive.token)) {\n\t\t\t\t// If the affinity is from, and the user choose to send excess they should not be refunded\n\t\t\t\tif (args.checks.request.affinity === 'to') {\n\t\t\t\t\tisRefundable = true;\n\t\t\t\t}\n\t\t\t} else if (costValue.amount > 0n && excessToken.comparePublicKey(costValue.token)) {\n\t\t\t\tisRefundable = true;\n\t\t\t}\n\n\t\t\tconst excessAmount = userDidSend - amount;\n\t\t\tif (isRefundable && excessAmount > 0n) {\n\t\t\t\trefunds.push({\n\t\t\t\t\ttoken: excessToken,\n\t\t\t\t\tamount: excessAmount\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (const [ tokenPub, amount ] of Object.entries(userWillReceiveMaximum)) {\n\t\tconst userAskedReceive = userExpectsReceive[tokenPub] ?? 0n;\n\n\t\tif (userAskedReceive > amount) {\n\t\t\tthrow(new KeetaAnchorUserError(`Expected to receive maximum of ${amount}, user asked for ${userAskedReceive} for token ${tokenPub}`));\n\t\t}\n\t}\n\n\treturn({ refunds });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../../src/services/fx/util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAI1D,MAAM,UAAU,qCAAqC,CAAC,KAGrD;IAUA,IAAI,kBAA0B,CAAC;IAC/B,IAAI,qBAA6B,CAAC;IAElC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;QACrC,kBAAkB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClD,qBAAqB,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC;IACrD,CAAC;SAAM,CAAC;QACP,kBAAkB,GAAG,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC;QACjD,qBAAqB,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,OAAM,CAAC;QACN,OAAO,EAAE;YACR,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;YACzD,MAAM,EAAE,qBAAqB;SAC7B;QACD,IAAI,EAAE;YACL,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;YACvD,MAAM,EAAE,kBAAkB;SAC1B;KACD,CAAC,CAAA;AACH,CAAC;AAGD,MAAM,UAAU,6CAA6C,CAAC,IAS7D;IAGA,IAAI,IAAI,CAAC,wBAAwB,KAAK,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,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C,IAAI,EAAE,CAAC;QAE5D,IAAI,gBAAgB,GAAG,MAAM,EAAE,CAAC;YAC/B,MAAK,CAAC,IAAI,oBAAoB,CAAC,kCAAkC,MAAM,oBAAoB,gBAAgB,cAAc,QAAQ,EAAE,CAAC,CAAC,CAAC;QACvI,CAAC;IACF,CAAC;IAED,OAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AACrB,CAAC","sourcesContent":["import type { TokenAddress } from \"@keetanetwork/keetanet-client/lib/account.js\";\nimport * as KeetaNet from \"@keetanetwork/keetanet-client\";\nimport { KeetaAnchorUserError } from \"../../lib/error.js\";\nimport type { ConversionInputCanonical, ConversionInputCanonicalJSON, KeetaNetToken } from \"./common.js\";\nimport type { ValidateQuoteArguments } from \"./server.js\";\n\nexport function convertQuoteToExpectedSwapWithoutCost(input: {\n\tquote: Omit<ValidateQuoteArguments, 'account'>,\n\trequest: ConversionInputCanonical | ConversionInputCanonicalJSON,\n}): NonNullable<{\n\t\treceive: {\n\t\t\ttoken: KeetaNetToken;\n\t\t\tamount: bigint;\n\t\t};\n\t\tsend: {\n\t\t\ttoken: KeetaNetToken;\n\t\t\tamount: bigint;\n\t\t};\n\t}> {\n\tlet expectedSendAmount: bigint;\n\tlet expectedReceiveAmount: bigint;\n\n\tif (input.request.affinity === 'to') {\n\t\texpectedSendAmount = BigInt(input.request.amount);\n\t\texpectedReceiveAmount = input.quote.convertedAmount;\n\t} else {\n\t\texpectedSendAmount = input.quote.convertedAmount;\n\t\texpectedReceiveAmount = BigInt(input.request.amount);\n\t}\n\n\treturn({\n\t\treceive: {\n\t\t\ttoken: KeetaNet.lib.Account.toAccount(input.request.from),\n\t\t\tamount: expectedReceiveAmount\n\t\t},\n\t\tsend: {\n\t\t\ttoken: KeetaNet.lib.Account.toAccount(input.request.to),\n\t\t\tamount: expectedSendAmount\n\t\t}\n\t})\n}\n\nexport type RefundValue = { token: TokenAddress; amount: bigint; };\nexport function assertExchangeBlockParametersAndComputeRefund(args: {\n\tblock: InstanceType<typeof KeetaNet['lib']['Block']>;\n\tliquidityAccount: InstanceType<typeof KeetaNet['lib']['Account']>;\n\n\tallowedLiquidityAccounts: null | InstanceType<typeof KeetaNet['lib']['Account']['Set']>;\n\n\tchecks: Parameters<typeof convertQuoteToExpectedSwapWithoutCost>[0];\n\n\tisQuoteBasedExchange: boolean;\n}): {\n\t\trefunds: RefundValue[];\n\t} {\n\tif (args.allowedLiquidityAccounts !== null && !(args.allowedLiquidityAccounts.has(args.liquidityAccount))) {\n\t\tthrow(new KeetaAnchorUserError(`Invalid liquidity account provided ${args.liquidityAccount.publicKeyString.get()}`));\n\t}\n\n\tconst userSent: { [tokenPublicKey: string]: bigint; } = {};\n\tconst userExpectsReceive: { [tokenPublicKey: string]: bigint; } = {};\n\tfor (const operation of args.block.operations) {\n\t\tlet validToken;\n\t\tif (operation.type === KeetaNet.lib.Block.OperationType.SEND) {\n\t\t\tif (!(operation.to.comparePublicKey(args.liquidityAccount))) {\n\t\t\t\tthrow(new KeetaAnchorUserError('Send operations in exchange block must be made sending to liquidity account'));\n\t\t\t}\n\n\t\t\tif (operation.token.comparePublicKey(args.checks.request.from)) {\n\t\t\t\tvalidToken = true;\n\t\t\t} else if (operation.token.comparePublicKey(args.checks.quote.cost.token) && args.checks.quote.cost.amount > 0n) {\n\t\t\t\tvalidToken = true;\n\t\t\t} else {\n\t\t\t\tvalidToken = false;\n\t\t\t}\n\n\t\t\tconst tokenPub = operation.token.publicKeyString.get();\n\n\t\t\tif (!(userSent[tokenPub])) {\n\t\t\t\tuserSent[tokenPub] = 0n;\n\t\t\t}\n\n\t\t\tuserSent[tokenPub] += operation.amount;\n\t\t} else if (operation.type === KeetaNet.lib.Block.OperationType.RECEIVE) {\n\t\t\tif (!(operation.from.comparePublicKey(args.liquidityAccount))) {\n\t\t\t\tthrow(new KeetaAnchorUserError('Receive operations in exchange block must be made requesting from liquidity account'));\n\t\t\t}\n\n\t\t\tvalidToken = operation.token.comparePublicKey(args.checks.request.to);\n\n\t\t\tconst tokenPub = operation.token.publicKeyString.get();\n\n\t\t\tif (!(userExpectsReceive[tokenPub])) {\n\t\t\t\tuserExpectsReceive[tokenPub] = 0n;\n\t\t\t} else {\n\t\t\t\tthrow(new KeetaAnchorUserError(`Multiple receive operations for token ${tokenPub} in exchange block are not allowed`));\n\t\t\t}\n\n\t\t\tuserExpectsReceive[tokenPub] += operation.amount;\n\t\t} else {\n\t\t\tthrow(new KeetaAnchorUserError(`Invalid operation type in exchange block: ${operation.type}`));\n\t\t}\n\n\t\tif (!(validToken)) {\n\t\t\tthrow(new KeetaAnchorUserError(`Invalid token sent/received in exchange block: ${operation.token.publicKeyString.get()}`));\n\t\t}\n\t}\n\n\tconst expected = convertQuoteToExpectedSwapWithoutCost(args.checks);\n\n\tconst userSendsMinimum = {\n\t\t[expected.receive.token.publicKeyString.get()]: expected.receive.amount\n\t};\n\n\tconst userWillReceiveMaximum = {\n\t\t[expected.send.token.publicKeyString.get()]: expected.send.amount\n\t};\n\n\tconst costValue = args.checks.quote.cost;\n\tif (costValue.amount > 0n) {\n\t\tconst feeTokenPub = costValue.token.publicKeyString.get();\n\n\t\tif (!userSendsMinimum[feeTokenPub]) {\n\t\t\tuserSendsMinimum[feeTokenPub] = 0n;\n\t\t}\n\n\t\tuserSendsMinimum[feeTokenPub] += costValue.amount;\n\t}\n\n\tconst refunds: RefundValue[] = [];\n\n\tfor (const [ tokenPub, amount ] of Object.entries(userSendsMinimum)) {\n\t\tconst userDidSend = userSent[tokenPub] ?? 0n;\n\n\t\tif (userDidSend !== amount && args.isQuoteBasedExchange) {\n\t\t\tthrow(new KeetaAnchorUserError(`For quote based exchanges, user must send exactly the expected amount of ${amount} for token ${tokenPub}, user sent ${userDidSend}`));\n\t\t}\n\n\t\tif (userDidSend < amount) {\n\t\t\tthrow(new KeetaAnchorUserError(`Expected send of ${amount}, only saw ${userDidSend} for token ${tokenPub}`));\n\t\t}\n\n\t\t// If the user sent more than the minimum and the excess is in the expected receive token or the cost token, consider it a refund.\n\t\t// This allows users to send more than the minimum if they want to receive more than the expected amount,\n\t\t// but still ensures that if they do so by mistake they will get a refund of the excess.\n\t\tif (userDidSend > amount) {\n\t\t\tlet isRefundable = false;\n\n\t\t\tconst excessToken = KeetaNet.lib.Account.toAccount(tokenPub).assertKeyType(KeetaNet.lib.Account.AccountKeyAlgorithm.TOKEN);\n\n\t\t\tif (excessToken.comparePublicKey(expected.receive.token)) {\n\t\t\t\t// If the affinity is from, and the user choose to send excess they should not be refunded\n\t\t\t\tif (args.checks.request.affinity === 'to') {\n\t\t\t\t\tisRefundable = true;\n\t\t\t\t}\n\t\t\t} else if (costValue.amount > 0n && excessToken.comparePublicKey(costValue.token)) {\n\t\t\t\tisRefundable = true;\n\t\t\t}\n\n\t\t\tconst excessAmount = userDidSend - amount;\n\t\t\tif (isRefundable && excessAmount > 0n) {\n\t\t\t\trefunds.push({\n\t\t\t\t\ttoken: excessToken,\n\t\t\t\t\tamount: excessAmount\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (const [ tokenPub, amount ] of Object.entries(userWillReceiveMaximum)) {\n\t\tconst userAskedReceive = userExpectsReceive[tokenPub] ?? 0n;\n\n\t\tif (userAskedReceive > amount) {\n\t\t\tthrow(new KeetaAnchorUserError(`Expected to receive maximum of ${amount}, user asked for ${userAskedReceive} for token ${tokenPub}`));\n\t\t}\n\t}\n\n\treturn({ refunds });\n}\n"]}
|
|
@@ -246,6 +246,28 @@ export type DocumentVisa = Document;
|
|
|
246
246
|
/** Residence document */
|
|
247
247
|
/** OID: 1.3.6.1.4.1.62675.1.11.6 */
|
|
248
248
|
export type DocumentResidenceDocument = Document;
|
|
249
|
+
/** Business registration document */
|
|
250
|
+
/** OID: 1.3.6.1.4.1.62675.1.11.7 */
|
|
251
|
+
export type DocumentBusinessRegistration = Document;
|
|
252
|
+
/** Organization's legal name */
|
|
253
|
+
/** OID: 1.3.6.1.4.1.62675.1.12 */
|
|
254
|
+
export type OrganizationName = string;
|
|
255
|
+
/** Organization's trade name (doing-business-as name) */
|
|
256
|
+
/** OID: 1.3.6.1.4.1.62675.1.12.1 */
|
|
257
|
+
export type TradeName = string;
|
|
258
|
+
/** Organization's legal form */
|
|
259
|
+
/** OID: 1.3.6.1.4.1.62675.1.13 */
|
|
260
|
+
export type LegalForm = string;
|
|
261
|
+
/** Organization incorporation details */
|
|
262
|
+
/** OID: 1.3.6.1.4.1.62675.1.14 */
|
|
263
|
+
export interface Incorporation {
|
|
264
|
+
country: Country;
|
|
265
|
+
countrySubDivision?: CountrySubDivision;
|
|
266
|
+
incorporationDate?: Date;
|
|
267
|
+
}
|
|
268
|
+
/** Organization's website */
|
|
269
|
+
/** OID: 1.3.6.1.4.1.62675.1.15 */
|
|
270
|
+
export type Website = string;
|
|
249
271
|
/** DigestInfo from RFC 3447 */
|
|
250
272
|
export interface DigestInfo {
|
|
251
273
|
digestAlgorithm: ASN1.ASN1OID;
|
|
@@ -274,7 +296,7 @@ export type BirthDate = DateOfBirth;
|
|
|
274
296
|
/** Alias for Email */
|
|
275
297
|
export type EmailAddress = Email;
|
|
276
298
|
/** Union type of all sensitive attribute types */
|
|
277
|
-
export type SensitiveAttributeType = FullName | FirstName | LastName | MiddleName | DateOfBirth | Address | Email | PhoneNumber | DateAndPlaceOfBirth | JobTitle | JobResponsibility | Id | Issuer | EntityType | ContactDetails | Nationality | Document | DocumentDriversLicense | DocumentIdCard | DocumentPassport | DocumentPassportCard | DocumentPermit | DocumentVisa | DocumentResidenceDocument;
|
|
299
|
+
export type SensitiveAttributeType = FullName | FirstName | LastName | MiddleName | DateOfBirth | Address | Email | PhoneNumber | DateAndPlaceOfBirth | JobTitle | JobResponsibility | Id | Issuer | EntityType | ContactDetails | Nationality | Document | DocumentDriversLicense | DocumentIdCard | DocumentPassport | DocumentPassportCard | DocumentPermit | DocumentVisa | DocumentResidenceDocument | DocumentBusinessRegistration | OrganizationName | TradeName | LegalForm | Incorporation | Website;
|
|
278
300
|
/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */
|
|
279
301
|
export interface CertificateAttributeValueMap {
|
|
280
302
|
'fullName': FullName;
|
|
@@ -301,6 +323,12 @@ export interface CertificateAttributeValueMap {
|
|
|
301
323
|
'documentPermit': DocumentPermit;
|
|
302
324
|
'documentVisa': DocumentVisa;
|
|
303
325
|
'documentResidenceDocument': DocumentResidenceDocument;
|
|
326
|
+
'documentBusinessRegistration': DocumentBusinessRegistration;
|
|
327
|
+
'organizationName': OrganizationName;
|
|
328
|
+
'tradeName': TradeName;
|
|
329
|
+
'legalForm': LegalForm;
|
|
330
|
+
'incorporation': Incorporation;
|
|
331
|
+
'website': Website;
|
|
304
332
|
}
|
|
305
333
|
/** Helper generic to get attribute value type by name */
|
|
306
334
|
export type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];
|
|
@@ -314,6 +342,8 @@ export declare const ContactDetailsFields: readonly ["department", "emailAddress
|
|
|
314
342
|
export declare const ContactDetailsSchema: ASN1.Schema;
|
|
315
343
|
export declare const DocumentFields: readonly ["documentNumber", "front", "back", "selfie", "fullName", "firstName", "lastName", "dob", "gender", "address", "expiresAt", "issuedAt", "issuingState", "issuingCountry", "refNumber", "nationality", "curp", "claveDeElector", "classifiedDocumentType", "curpValidationResponse", "sambaActivityHistoryResponse"];
|
|
316
344
|
export declare const DocumentSchema: ASN1.Schema;
|
|
345
|
+
export declare const IncorporationFields: readonly ["country", "countrySubDivision", "incorporationDate"];
|
|
346
|
+
export declare const IncorporationSchema: ASN1.Schema;
|
|
317
347
|
export declare const CertificateAttributeOIDDB: {
|
|
318
348
|
readonly fullName: "1.3.6.1.4.1.62675.1.0";
|
|
319
349
|
readonly firstName: "1.3.6.1.4.1.62675.1.0.1";
|
|
@@ -339,10 +369,16 @@ export declare const CertificateAttributeOIDDB: {
|
|
|
339
369
|
readonly documentPermit: "1.3.6.1.4.1.62675.1.11.4";
|
|
340
370
|
readonly documentVisa: "1.3.6.1.4.1.62675.1.11.5";
|
|
341
371
|
readonly documentResidenceDocument: "1.3.6.1.4.1.62675.1.11.6";
|
|
372
|
+
readonly documentBusinessRegistration: "1.3.6.1.4.1.62675.1.11.7";
|
|
373
|
+
readonly organizationName: "1.3.6.1.4.1.62675.1.12";
|
|
374
|
+
readonly tradeName: "1.3.6.1.4.1.62675.1.12.1";
|
|
375
|
+
readonly legalForm: "1.3.6.1.4.1.62675.1.13";
|
|
376
|
+
readonly incorporation: "1.3.6.1.4.1.62675.1.14";
|
|
377
|
+
readonly website: "1.3.6.1.4.1.62675.1.15";
|
|
342
378
|
};
|
|
343
|
-
export declare const SENSITIVE_CERTIFICATE_ATTRIBUTES: readonly ["fullName", "firstName", "lastName", "middleName", "dateOfBirth", "address", "email", "phoneNumber", "dateAndPlaceOfBirth", "jobTitle", "jobResponsibility", "id", "issuer", "entityType", "contactDetails", "nationality", "document", "documentDriversLicense", "documentIdCard", "documentPassport", "documentPassportCard", "documentPermit", "documentVisa", "documentResidenceDocument"];
|
|
379
|
+
export declare const SENSITIVE_CERTIFICATE_ATTRIBUTES: readonly ["fullName", "firstName", "lastName", "middleName", "dateOfBirth", "address", "email", "phoneNumber", "dateAndPlaceOfBirth", "jobTitle", "jobResponsibility", "id", "issuer", "entityType", "contactDetails", "nationality", "document", "documentDriversLicense", "documentIdCard", "documentPassport", "documentPassportCard", "documentPermit", "documentVisa", "documentResidenceDocument", "documentBusinessRegistration", "organizationName", "tradeName", "legalForm", "incorporation", "website"];
|
|
344
380
|
export type SensitiveCertificateAttributeNames = typeof SENSITIVE_CERTIFICATE_ATTRIBUTES[number];
|
|
345
|
-
export declare const SensitiveCertificateAttributeNames: readonly ["FullName", "FirstName", "LastName", "MiddleName", "DateOfBirth", "Address", "Email", "PhoneNumber", "DateAndPlaceOfBirth", "JobTitle", "JobResponsibility", "Id", "Issuer", "EntityType", "ContactDetails", "Nationality", "Document", "DocumentDriversLicense", "DocumentIdCard", "DocumentPassport", "DocumentPassportCard", "DocumentPermit", "DocumentVisa", "DocumentResidenceDocument"];
|
|
381
|
+
export declare const SensitiveCertificateAttributeNames: readonly ["FullName", "FirstName", "LastName", "MiddleName", "DateOfBirth", "Address", "Email", "PhoneNumber", "DateAndPlaceOfBirth", "JobTitle", "JobResponsibility", "Id", "Issuer", "EntityType", "ContactDetails", "Nationality", "Document", "DocumentDriversLicense", "DocumentIdCard", "DocumentPassport", "DocumentPassportCard", "DocumentPermit", "DocumentVisa", "DocumentResidenceDocument", "DocumentBusinessRegistration", "OrganizationName", "TradeName", "LegalForm", "Incorporation", "Website"];
|
|
346
382
|
export declare const CertificateAttributeFieldNames: {
|
|
347
383
|
readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[];
|
|
348
384
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iso20022.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACnE,KAAK,eAAe,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;AAGhE,2BAA2B;AAC3B,mCAAmC;AACnC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B,2CAA2C;AAC3C,mCAAmC;AACnC,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC,kBAAkB;AAClB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,wBAAwB;AACxB,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,sBAAsB;AACtB,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,kBAAkB;AAClB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,8BAA8B;AAC9B,mCA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,GACX,QAAQ,GACR,sBAAsB,GACtB,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,cAAc,GACd,YAAY,GACZ,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"iso20022.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,GAAG,IAAI,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACnE,KAAK,eAAe,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,OAAO,CAAC,CAAC;AAGhE,2BAA2B;AAC3B,mCAAmC;AACnC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B,2CAA2C;AAC3C,mCAAmC;AACnC,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC;AAExC,kBAAkB;AAClB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,wBAAwB;AACxB,mCAAmC;AACnC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,sBAAsB;AACtB,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AAEpC,kBAAkB;AAClB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,8BAA8B;AAC9B,mCAAmC;AACnC,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC,qBAAqB;AACrB,mCAAmC;AACnC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,iBAAiB;AACjB,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC,+BAA+B;AAC/B,mCAAmC;AACnC,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AAGzC,uBAAuB;AACvB,mCAAmC;AACnC,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG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,EAAE,CAAC,IAAI,MAAM,OAAO,yBAAyB,GAAG,IAAI,CAAC,MAAM;CA+BpG,CAAC"}
|
|
@@ -194,6 +194,16 @@ export const DocumentSchema = {
|
|
|
194
194
|
sambaActivityHistoryResponse: { optional: { type: 'context', kind: 'explicit', value: 20, contains: { type: 'string', kind: 'utf8' } } }
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
+
export const IncorporationFields = ['country', 'countrySubDivision', 'incorporationDate'];
|
|
198
|
+
export const IncorporationSchema = {
|
|
199
|
+
type: 'struct',
|
|
200
|
+
fieldNames: ['country', 'countrySubDivision', 'incorporationDate'],
|
|
201
|
+
contains: {
|
|
202
|
+
country: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },
|
|
203
|
+
countrySubDivision: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },
|
|
204
|
+
incorporationDate: { optional: { type: 'context', kind: 'explicit', value: 2, contains: ASN1.ValidateASN1.IsAnyDate } }
|
|
205
|
+
}
|
|
206
|
+
};
|
|
197
207
|
export const CertificateAttributeOIDDB = {
|
|
198
208
|
'fullName': '1.3.6.1.4.1.62675.1.0',
|
|
199
209
|
'firstName': '1.3.6.1.4.1.62675.1.0.1',
|
|
@@ -218,7 +228,13 @@ export const CertificateAttributeOIDDB = {
|
|
|
218
228
|
'documentPassportCard': '1.3.6.1.4.1.62675.1.11.3',
|
|
219
229
|
'documentPermit': '1.3.6.1.4.1.62675.1.11.4',
|
|
220
230
|
'documentVisa': '1.3.6.1.4.1.62675.1.11.5',
|
|
221
|
-
'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6'
|
|
231
|
+
'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6',
|
|
232
|
+
'documentBusinessRegistration': '1.3.6.1.4.1.62675.1.11.7',
|
|
233
|
+
'organizationName': '1.3.6.1.4.1.62675.1.12',
|
|
234
|
+
'tradeName': '1.3.6.1.4.1.62675.1.12.1',
|
|
235
|
+
'legalForm': '1.3.6.1.4.1.62675.1.13',
|
|
236
|
+
'incorporation': '1.3.6.1.4.1.62675.1.14',
|
|
237
|
+
'website': '1.3.6.1.4.1.62675.1.15'
|
|
222
238
|
};
|
|
223
239
|
export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
224
240
|
'fullName',
|
|
@@ -244,7 +260,13 @@ export const SENSITIVE_CERTIFICATE_ATTRIBUTES = [
|
|
|
244
260
|
'documentPassportCard',
|
|
245
261
|
'documentPermit',
|
|
246
262
|
'documentVisa',
|
|
247
|
-
'documentResidenceDocument'
|
|
263
|
+
'documentResidenceDocument',
|
|
264
|
+
'documentBusinessRegistration',
|
|
265
|
+
'organizationName',
|
|
266
|
+
'tradeName',
|
|
267
|
+
'legalForm',
|
|
268
|
+
'incorporation',
|
|
269
|
+
'website'
|
|
248
270
|
];
|
|
249
271
|
export const SensitiveCertificateAttributeNames = [
|
|
250
272
|
'FullName',
|
|
@@ -270,14 +292,21 @@ export const SensitiveCertificateAttributeNames = [
|
|
|
270
292
|
'DocumentPassportCard',
|
|
271
293
|
'DocumentPermit',
|
|
272
294
|
'DocumentVisa',
|
|
273
|
-
'DocumentResidenceDocument'
|
|
295
|
+
'DocumentResidenceDocument',
|
|
296
|
+
'DocumentBusinessRegistration',
|
|
297
|
+
'OrganizationName',
|
|
298
|
+
'TradeName',
|
|
299
|
+
'LegalForm',
|
|
300
|
+
'Incorporation',
|
|
301
|
+
'Website'
|
|
274
302
|
];
|
|
275
303
|
export const CertificateAttributeFieldNames = {
|
|
276
304
|
'address': AddressFields,
|
|
277
305
|
'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,
|
|
278
306
|
'entityType': EntityTypeFields,
|
|
279
307
|
'contactDetails': ContactDetailsFields,
|
|
280
|
-
'document': DocumentFields
|
|
308
|
+
'document': DocumentFields,
|
|
309
|
+
'incorporation': IncorporationFields
|
|
281
310
|
};
|
|
282
311
|
export const CertificateAttributeSchema = {
|
|
283
312
|
'fullName': { type: 'string', kind: 'utf8' },
|
|
@@ -303,6 +332,12 @@ export const CertificateAttributeSchema = {
|
|
|
303
332
|
'documentPassportCard': DocumentSchema,
|
|
304
333
|
'documentPermit': DocumentSchema,
|
|
305
334
|
'documentVisa': DocumentSchema,
|
|
306
|
-
'documentResidenceDocument': DocumentSchema
|
|
335
|
+
'documentResidenceDocument': DocumentSchema,
|
|
336
|
+
'documentBusinessRegistration': DocumentSchema,
|
|
337
|
+
'organizationName': { type: 'string', kind: 'utf8' },
|
|
338
|
+
'tradeName': { type: 'string', kind: 'utf8' },
|
|
339
|
+
'legalForm': { type: 'string', kind: 'utf8' },
|
|
340
|
+
'incorporation': IncorporationSchema,
|
|
341
|
+
'website': { type: 'string', kind: 'utf8' }
|
|
307
342
|
};
|
|
308
343
|
//# sourceMappingURL=iso20022.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iso20022.generated.js","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AA2IhD,qDAAqD;AACrD,mCAAmC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAgB;IAC7C,MAAM,EAAE;QACP,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAC3F,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;KAC3F;CACD,CAAC;AAEF,kEAAkE;AAClE,MAAM,CAAC,MAAM,gDAAgD,GAAgB;IAC5E,MAAM,EAAE;QACP,EAAE,IAAI,EA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n1.js';\nimport { lib as KeetaNetLib } from '@keetanetwork/keetanet-client';\ntype KeetaNetAccount = InstanceType<typeof KeetaNetLib.Account>;\n\n// ISO20022 Primitive Types\n/** Country code or name */\n/** OID: 1.3.6.1.4.1.62675.1.2.0 */\nexport type Country = string;\n\n/** Country subdivision (state/province) */\n/** OID: 1.3.6.1.4.1.62675.1.2.1 */\nexport type CountrySubDivision = string;\n\n/** Postal code */\n/** OID: 1.3.6.1.4.1.62675.1.2.3 */\nexport type PostalCode = string;\n\n/** Town or city name */\n/** OID: 1.3.6.1.4.1.62675.1.2.4 */\nexport type TownName = string;\n\n/** Building number */\n/** OID: 1.3.6.1.4.1.62675.1.2.5 */\nexport type BuildingNumber = string;\n\n/** Street name */\n/** OID: 1.3.6.1.4.1.62675.1.2.6 */\nexport type StreetName = string;\n\n/** Free-form address lines */\n/** OID: 1.3.6.1.4.1.62675.1.2.7 */\nexport type AddressLines = string[];\n\n/** Sub-department */\n/** OID: 1.3.6.1.4.1.62675.1.2.8 */\nexport type SubDepartment = string;\n\n/** Department */\n/** OID: 1.3.6.1.4.1.62675.1.2.9 */\nexport type Department = string;\n\n/** Purpose of email address */\n/** OID: 1.3.6.1.4.1.62675.1.3.0 */\nexport type EmailAddressPurpose = string;\n\n// ISO20022 Enumeration Types\n/** Name prefix code */\n/** OID: 1.3.6.1.4.1.62675.1.0.0 */\nexport type NamePrefixCode = 'DOCT' | 'MIST' | 'MISS' | 'MIKS' | 'MME';\n\n/** Preferred contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.0 */\nexport type PreferredContactMethodCode = 'LETT' | 'MAIL' | 'PHON' | 'FAXX' | 'CELL';\n\n/** Person identification scheme name proprietary values */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1.0 */\nexport type PersonIdentificationSchemeNameProprietary = 'DRLC' | 'CPPT' | 'ARNU' | 'SSN' | 'TXID' | 'VISA' | 'WPPT';\n\n// ISO20022 Choice Types\n/** Address type classification */\n/** OID: 1.3.6.1.4.1.62675.1.2.10 */\nexport type AddressType = string;\n\n/** Organization identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.2 */\nexport type OrganizationIdentificationSchemeNameChoice = string;\n\n/** Person identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1 */\nexport type PersonIdentificationSchemeNameChoice = string | PersonIdentificationSchemeNameProprietary;\n\n// ISO20022 Sequence Types\n/** Generic organization identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.1 */\nexport interface GenericOrganizationIdentification {\n\tid: Id;\n\tschemeName?: OrganizationIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface OrganizationIdentificationBicChoice {\n\ttag: 0;\n\tname: 'bic';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationLeiChoice {\n\ttag: 1;\n\tname: 'lei';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationOtherChoice {\n\ttag: 2;\n\tname: 'other';\n\tvalue: GenericOrganizationIdentification[];\n}\nexport type OrganizationIdentificationChoice =\n\t| OrganizationIdentificationBicChoice\n\t| OrganizationIdentificationLeiChoice\n\t| OrganizationIdentificationOtherChoice;\n\nexport type OrganizationIdentification = OrganizationIdentificationChoice[];\n\n\n/** Generic person identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.0 */\nexport interface GenericPersonIdentification {\n\tid: Id;\n\tschemeName?: PersonIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface PersonIdentificationDateAndPlaceOfBirthChoice {\n\ttag: 0;\n\tname: 'dateAndPlaceOfBirth';\n\tvalue: DateAndPlaceOfBirth;\n}\n\nexport interface PersonIdentificationOtherChoice {\n\ttag: 1;\n\tname: 'other';\n\tvalue: GenericPersonIdentification[];\n}\nexport type PersonIdentificationChoice =\n\t| PersonIdentificationDateAndPlaceOfBirthChoice\n\t| PersonIdentificationOtherChoice;\n\nexport type PersonIdentification = PersonIdentificationChoice[];\n\n\n/** Other contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.1 */\nexport interface OtherContact {\n\tid?: Id;\n\tchannelType: string;\n}\n\n\n// Generated ASN.1 schemas for ISO 20022 choice types\n/** ASN.1 schema for AddressType */\nexport const AddressTypeSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for OrganizationIdentificationSchemeNameChoice */\nexport const OrganizationIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for PersonIdentificationSchemeNameChoice */\nexport const PersonIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n// Generated ASN.1 schemas for ISO 20022 regular sequence types\n/** ASN.1 schema for GenericOrganizationIdentification */\nexport const GenericOrganizationIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tissuer: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },\n\t\tschemeName: { optional: OrganizationIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for GenericPersonIdentification */\nexport const GenericPersonIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tissuer: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },\n\t\tschemeName: { optional: PersonIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for OtherContact */\nexport const OtherContactSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['channelType', 'id'],\n\tcontains: {\n\t\tchannelType: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tid: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\n\n// Generated ASN.1 schemas for ISO 20022 sequence-of-choice types\n/** ASN.1 schema for OrganizationIdentification */\nexport const OrganizationIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 2, contains: GenericOrganizationIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const OrganizationIdentificationFields = [\n\t'bic',\n\t'lei',\n\t'other'\n] as const;\n\n\n/** ASN.1 schema for PersonIdentification */\nexport const PersonIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: GenericPersonIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const PersonIdentificationFields = [\n\t'dateAndPlaceOfBirth',\n\t'other'\n] as const;\n\n\n// Generated ASN.1 schemas for choice-type sensitive attributes\n/** Person's full name */\n/** OID: 1.3.6.1.4.1.62675.1.0 */\nexport type FullName = string;\n\n/** Person's first name */\n/** OID: 1.3.6.1.4.1.62675.1.0.1 */\nexport type FirstName = string;\n\n/** Person's last name */\n/** OID: 1.3.6.1.4.1.62675.1.0.2 */\nexport type LastName = string;\n\n/** Person's middle name */\n/** OID: 1.3.6.1.4.1.62675.1.0.3 */\nexport type MiddleName = string;\n\n/** Date of birth */\n/** OID: 1.3.6.1.4.1.62675.1.1 */\nexport type DateOfBirth = Date;\n\n/** Physical address */\n/** OID: 1.3.6.1.4.1.62675.1.2 */\nexport interface Address {\n\taddressType?: AddressType;\n\tdepartment?: Department;\n\tsubDepartment?: SubDepartment;\n\tstreetName?: StreetName;\n\tbuildingNumber?: BuildingNumber;\n\tpostalCode?: PostalCode;\n\ttownName?: TownName;\n\tcountrySubDivision?: CountrySubDivision;\n\tcountry?: Country;\n\taddressLines?: AddressLines;\n}\n\n/** Email address */\n/** OID: 1.3.6.1.4.1.62675.1.3 */\nexport type Email = string;\n\n/** Phone number */\n/** OID: 1.3.6.1.4.1.62675.1.4 */\nexport type PhoneNumber = string;\n\n/** Date and place of birth information */\n/** OID: 1.3.6.1.4.1.62675.1.5 */\nexport interface DateAndPlaceOfBirth {\n\tbirthDate: BirthDate;\n\tprovinceOfBirth?: CountrySubDivision;\n\tcityOfBirth: TownName;\n\tcountryOfBirth: Country;\n}\n\n/** Job title */\n/** OID: 1.3.6.1.4.1.62675.1.6 */\nexport type JobTitle = string;\n\n/** Job responsibility */\n/** OID: 1.3.6.1.4.1.62675.1.6.1 */\nexport type JobResponsibility = string;\n\n/** Identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7 */\nexport type Id = string;\n\n/** Issuer identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7.1 */\nexport type Issuer = string;\n\n/** Entity type (organization or person) */\n/** OID: 1.3.6.1.4.1.62675.1.8 */\nexport interface EntityType {\n\torganization?: GenericOrganizationIdentification[];\n\tperson?: GenericPersonIdentification[];\n}\n\n/** Contact details */\n/** OID: 1.3.6.1.4.1.62675.1.9 */\nexport interface ContactDetails {\n\tnamePrefix?: NamePrefixCode;\n\tfullName?: FullName;\n\tphoneNumber?: PhoneNumber;\n\tmobileNumber?: PhoneNumber;\n\tfaxNumber?: PhoneNumber;\n\temailAddress?: EmailAddress;\n\temailPurpose?: EmailAddressPurpose;\n\tjobTitle?: JobTitle;\n\tjobResponsibility?: JobResponsibility;\n\tdepartment?: Department;\n\tother?: OtherContact[];\n\tpreferredMethod?: PreferredContactMethodCode;\n}\n\n/** Nationality */\n/** OID: 1.3.6.1.4.1.62675.1.10 */\nexport type Nationality = string;\n\n/** Generic document structure with metadata */\n/** OID: 1.3.6.1.4.1.62675.1.11 */\nexport interface Document {\n\tdocumentNumber: string;\n\tfront?: Reference;\n\tback?: Reference;\n\tselfie?: Reference;\n\tfullName?: string;\n\tfirstName?: string;\n\tlastName?: string;\n\tdob?: Date;\n\tgender?: string;\n\taddress?: Address;\n\texpiresAt?: Date;\n\tissuedAt?: Date;\n\tissuingState?: string;\n\tissuingCountry?: string;\n\trefNumber?: string;\n\tnationality?: string;\n\tcurp?: string;\n\tclaveDeElector?: string;\n\tclassifiedDocumentType?: string;\n\tcurpValidationResponse?: string;\n\tsambaActivityHistoryResponse?: string;\n}\n\n/** Driver's license document */\n/** OID: 1.3.6.1.4.1.62675.1.11.0 */\nexport type DocumentDriversLicense = Document;\n\n/** ID card document */\n/** OID: 1.3.6.1.4.1.62675.1.11.1 */\nexport type DocumentIdCard = Document;\n\n/** Passport document */\n/** OID: 1.3.6.1.4.1.62675.1.11.2 */\nexport type DocumentPassport = Document;\n\n/** Passport card document */\n/** OID: 1.3.6.1.4.1.62675.1.11.3 */\nexport type DocumentPassportCard = Document;\n\n/** Permit document */\n/** OID: 1.3.6.1.4.1.62675.1.11.4 */\nexport type DocumentPermit = Document;\n\n/** Visa document */\n/** OID: 1.3.6.1.4.1.62675.1.11.5 */\nexport type DocumentVisa = Document;\n\n/** Residence document */\n/** OID: 1.3.6.1.4.1.62675.1.11.6 */\nexport type DocumentResidenceDocument = Document;\n\n/** DigestInfo from RFC 3447 */\nexport interface DigestInfo {\n\tdigestAlgorithm: ASN1.ASN1OID;\n\tdigest: Buffer;\n}\n\nexport const DigestInfoSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['digestAlgorithm', 'digest'],\n\tcontains: {\n\t\tdigestAlgorithm: ASN1.ValidateASN1.IsOID,\n\t\tdigest: ASN1.ValidateASN1.IsOctetString\n\t}\n};\n\n/** External reference pointer */\nexport interface ExternalReference {\n\turl: string;\n\tcontentType: string;\n}\n\nexport const ExternalReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['url', 'contentType'],\n\tcontains: {\n\t\turl: { type: 'string', kind: 'utf8' },\n\t\tcontentType: { type: 'string', kind: 'utf8' }\n\t}\n};\n\n/** Reference */\nexport interface Reference {\n\texternal: ExternalReference;\n\tdigest: DigestInfo;\n\tencryptionAlgorithm: ASN1.ASN1OID;\n\t/**\n\t * TODOC\n\t */\n\t$blob: (principals?: KeetaNetAccount[]) => Promise<Blob>;\n}\n\nexport const ReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['external', 'digest', 'encryptionAlgorithm'],\n\tcontains: {\n\t\texternal: ExternalReferenceSchema,\n\t\tdigest: DigestInfoSchema,\n\t\tencryptionAlgorithm: ASN1.ValidateASN1.IsOID\n\t}\n};\n\n// Token aliases for sensitive attributes\n/** Alias for DateOfBirth */\nexport type BirthDate = DateOfBirth;\n\n/** Alias for Email */\nexport type EmailAddress = Email;\n\n/** Union type of all sensitive attribute types */\nexport type SensitiveAttributeType =\n\t| FullName\n\t| FirstName\n\t| LastName\n\t| MiddleName\n\t| DateOfBirth\n\t| Address\n\t| Email\n\t| PhoneNumber\n\t| DateAndPlaceOfBirth\n\t| JobTitle\n\t| JobResponsibility\n\t| Id\n\t| Issuer\n\t| EntityType\n\t| ContactDetails\n\t| Nationality\n\t| Document\n\t| DocumentDriversLicense\n\t| DocumentIdCard\n\t| DocumentPassport\n\t| DocumentPassportCard\n\t| DocumentPermit\n\t| DocumentVisa\n\t| DocumentResidenceDocument;\n\n/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */\nexport interface CertificateAttributeValueMap {\n\t'fullName': FullName;\n\t'firstName': FirstName;\n\t'lastName': LastName;\n\t'middleName': MiddleName;\n\t'dateOfBirth': DateOfBirth;\n\t'address': Address;\n\t'email': Email;\n\t'phoneNumber': PhoneNumber;\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirth;\n\t'jobTitle': JobTitle;\n\t'jobResponsibility': JobResponsibility;\n\t'id': Id;\n\t'issuer': Issuer;\n\t'entityType': EntityType;\n\t'contactDetails': ContactDetails;\n\t'nationality': Nationality;\n\t'document': Document;\n\t'documentDriversLicense': DocumentDriversLicense;\n\t'documentIdCard': DocumentIdCard;\n\t'documentPassport': DocumentPassport;\n\t'documentPassportCard': DocumentPassportCard;\n\t'documentPermit': DocumentPermit;\n\t'documentVisa': DocumentVisa;\n\t'documentResidenceDocument': DocumentResidenceDocument;\n}\n\n/** Helper generic to get attribute value type by name */\nexport type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];\n\nexport const AddressFields = ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'] as const;\nexport const AddressSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'],\n\tcontains: {\n\t\taddressLines: { optional: { type: 'context', kind: 'explicit', value: 0, contains: { sequenceOf: { type: 'string', kind: 'utf8' } } } },\n\t\taddressType: { optional: AddressTypeSchema },\n\t\tbuildingNumber: { optional: { type: 'context', kind: 'explicit', value: 2, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcountry: { optional: { type: 'context', kind: 'explicit', value: 3, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcountrySubDivision: { optional: { type: 'context', kind: 'explicit', value: 4, contains: { type: 'string', kind: 'utf8' } } },\n\t\tdepartment: { optional: { type: 'context', kind: 'explicit', value: 5, contains: { type: 'string', kind: 'utf8' } } },\n\t\tpostalCode: { optional: { type: 'context', kind: 'explicit', value: 6, contains: { type: 'string', kind: 'utf8' } } },\n\t\tstreetName: { optional: { type: 'context', kind: 'explicit', value: 7, contains: { type: 'string', kind: 'utf8' } } },\n\t\tsubDepartment: { optional: { type: 'context', kind: 'explicit', value: 8, contains: { type: 'string', kind: 'utf8' } } },\n\t\ttownName: { optional: { type: 'context', kind: 'explicit', value: 9, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const DateAndPlaceOfBirthFields = ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'] as const;\nexport const DateAndPlaceOfBirthSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'],\n\tcontains: {\n\t\tbirthDate: { type: 'context', kind: 'explicit', value: 0, contains: ASN1.ValidateASN1.IsAnyDate },\n\t\tcityOfBirth: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } },\n\t\tcountryOfBirth: { type: 'context', kind: 'explicit', value: 2, contains: { type: 'string', kind: 'utf8' } },\n\t\tprovinceOfBirth: { optional: { type: 'context', kind: 'explicit', value: 3, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const EntityTypeFields = ['organization', 'person'] as const;\nexport const EntityTypeSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['organization', 'person'],\n\tcontains: {\n\t\torganization: { optional: { type: 'context', kind: 'explicit', value: 0, contains: { sequenceOf: GenericOrganizationIdentificationSchema } } },\n\t\tperson: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { sequenceOf: GenericPersonIdentificationSchema } } }\n\t}\n};\nexport const ContactDetailsFields = ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'] as const;\nexport const ContactDetailsSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'],\n\tcontains: {\n\t\tdepartment: { optional: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } } },\n\t\temailAddress: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },\n\t\temailPurpose: { optional: { type: 'context', kind: 'explicit', value: 2, contains: { type: 'string', kind: 'utf8' } } },\n\t\tfaxNumber: { optional: { type: 'context', kind: 'explicit', value: 3, contains: { type: 'string', kind: 'utf8' } } },\n\t\tfullName: { optional: { type: 'context', kind: 'explicit', value: 4, contains: { type: 'string', kind: 'utf8' } } },\n\t\tjobResponsibility: { optional: { type: 'context', kind: 'explicit', value: 5, contains: { type: 'string', kind: 'utf8' } } },\n\t\tjobTitle: { optional: { type: 'context', kind: 'explicit', value: 6, contains: { type: 'string', kind: 'utf8' } } },\n\t\tmobileNumber: { optional: { type: 'context', kind: 'explicit', value: 7, contains: { type: 'string', kind: 'utf8' } } },\n\t\tnamePrefix: { optional: { type: 'context', kind: 'explicit', value: 8, contains: { type: 'string', kind: 'utf8' } } },\n\t\tother: { optional: { type: 'context', kind: 'explicit', value: 9, contains: { sequenceOf: OtherContactSchema } } },\n\t\tphoneNumber: { optional: { type: 'context', kind: 'explicit', value: 10, contains: { type: 'string', kind: 'utf8' } } },\n\t\tpreferredMethod: { optional: { type: 'context', kind: 'explicit', value: 11, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const DocumentFields = ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'] as const;\nexport const DocumentSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'],\n\tcontains: {\n\t\tdocumentNumber: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tfront: { optional: { type: 'context', kind: 'explicit', value: 1, contains: ReferenceSchema } },\n\t\tback: { optional: { type: 'context', kind: 'explicit', value: 2, contains: ReferenceSchema } },\n\t\tselfie: { optional: { type: 'context', kind: 'explicit', value: 3, contains: ReferenceSchema } },\n\t\tfullName: { optional: { type: 'context', kind: 'explicit', value: 4, contains: { type: 'string', kind: 'utf8' } } },\n\t\tfirstName: { optional: { type: 'context', kind: 'explicit', value: 5, contains: { type: 'string', kind: 'utf8' } } },\n\t\tlastName: { optional: { type: 'context', kind: 'explicit', value: 6, contains: { type: 'string', kind: 'utf8' } } },\n\t\tdob: { optional: { type: 'context', kind: 'explicit', value: 7, contains: ASN1.ValidateASN1.IsAnyDate } },\n\t\tgender: { optional: { type: 'context', kind: 'explicit', value: 8, contains: { type: 'string', kind: 'utf8' } } },\n\t\taddress: { optional: { type: 'context', kind: 'explicit', value: 9, contains: AddressSchema } },\n\t\texpiresAt: { optional: { type: 'context', kind: 'explicit', value: 10, contains: ASN1.ValidateASN1.IsAnyDate } },\n\t\tissuedAt: { optional: { type: 'context', kind: 'explicit', value: 11, contains: ASN1.ValidateASN1.IsAnyDate } },\n\t\tissuingState: { optional: { type: 'context', kind: 'explicit', value: 12, contains: { type: 'string', kind: 'utf8' } } },\n\t\tissuingCountry: { optional: { type: 'context', kind: 'explicit', value: 13, contains: { type: 'string', kind: 'utf8' } } },\n\t\trefNumber: { optional: { type: 'context', kind: 'explicit', value: 14, contains: { type: 'string', kind: 'utf8' } } },\n\t\tnationality: { optional: { type: 'context', kind: 'explicit', value: 15, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcurp: { optional: { type: 'context', kind: 'explicit', value: 16, contains: { type: 'string', kind: 'utf8' } } },\n\t\tclaveDeElector: { optional: { type: 'context', kind: 'explicit', value: 17, contains: { type: 'string', kind: 'utf8' } } },\n\t\tclassifiedDocumentType: { optional: { type: 'context', kind: 'explicit', value: 18, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcurpValidationResponse: { optional: { type: 'context', kind: 'explicit', value: 19, contains: { type: 'string', kind: 'utf8' } } },\n\t\tsambaActivityHistoryResponse: { optional: { type: 'context', kind: 'explicit', value: 20, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const CertificateAttributeOIDDB = {\n\t'fullName': '1.3.6.1.4.1.62675.1.0',\n\t'firstName': '1.3.6.1.4.1.62675.1.0.1',\n\t'lastName': '1.3.6.1.4.1.62675.1.0.2',\n\t'middleName': '1.3.6.1.4.1.62675.1.0.3',\n\t'dateOfBirth': '1.3.6.1.4.1.62675.1.1',\n\t'address': '1.3.6.1.4.1.62675.1.2',\n\t'email': '1.3.6.1.4.1.62675.1.3',\n\t'phoneNumber': '1.3.6.1.4.1.62675.1.4',\n\t'dateAndPlaceOfBirth': '1.3.6.1.4.1.62675.1.5',\n\t'jobTitle': '1.3.6.1.4.1.62675.1.6',\n\t'jobResponsibility': '1.3.6.1.4.1.62675.1.6.1',\n\t'id': '1.3.6.1.4.1.62675.1.7',\n\t'issuer': '1.3.6.1.4.1.62675.1.7.1',\n\t'entityType': '1.3.6.1.4.1.62675.1.8',\n\t'contactDetails': '1.3.6.1.4.1.62675.1.9',\n\t'nationality': '1.3.6.1.4.1.62675.1.10',\n\t'document': '1.3.6.1.4.1.62675.1.11',\n\t'documentDriversLicense': '1.3.6.1.4.1.62675.1.11.0',\n\t'documentIdCard': '1.3.6.1.4.1.62675.1.11.1',\n\t'documentPassport': '1.3.6.1.4.1.62675.1.11.2',\n\t'documentPassportCard': '1.3.6.1.4.1.62675.1.11.3',\n\t'documentPermit': '1.3.6.1.4.1.62675.1.11.4',\n\t'documentVisa': '1.3.6.1.4.1.62675.1.11.5',\n\t'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6'\n} as const;\n\nexport const SENSITIVE_CERTIFICATE_ATTRIBUTES = [\n\t'fullName',\n\t'firstName',\n\t'lastName',\n\t'middleName',\n\t'dateOfBirth',\n\t'address',\n\t'email',\n\t'phoneNumber',\n\t'dateAndPlaceOfBirth',\n\t'jobTitle',\n\t'jobResponsibility',\n\t'id',\n\t'issuer',\n\t'entityType',\n\t'contactDetails',\n\t'nationality',\n\t'document',\n\t'documentDriversLicense',\n\t'documentIdCard',\n\t'documentPassport',\n\t'documentPassportCard',\n\t'documentPermit',\n\t'documentVisa',\n\t'documentResidenceDocument'\n] as const;\n\nexport type SensitiveCertificateAttributeNames = typeof SENSITIVE_CERTIFICATE_ATTRIBUTES[number];\n\nexport const SensitiveCertificateAttributeNames = [\n\t'FullName',\n\t'FirstName',\n\t'LastName',\n\t'MiddleName',\n\t'DateOfBirth',\n\t'Address',\n\t'Email',\n\t'PhoneNumber',\n\t'DateAndPlaceOfBirth',\n\t'JobTitle',\n\t'JobResponsibility',\n\t'Id',\n\t'Issuer',\n\t'EntityType',\n\t'ContactDetails',\n\t'Nationality',\n\t'Document',\n\t'DocumentDriversLicense',\n\t'DocumentIdCard',\n\t'DocumentPassport',\n\t'DocumentPassportCard',\n\t'DocumentPermit',\n\t'DocumentVisa',\n\t'DocumentResidenceDocument'\n] as const;\n\nexport const CertificateAttributeFieldNames: { readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[] } = {\n\t'address': AddressFields,\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,\n\t'entityType': EntityTypeFields,\n\t'contactDetails': ContactDetailsFields,\n\t'document': DocumentFields\n} as const;\n\nexport const CertificateAttributeSchema: { readonly [K in keyof typeof CertificateAttributeOIDDB]: ASN1.Schema } = {\n\t'fullName': { type: 'string', kind: 'utf8' },\n\t'firstName': { type: 'string', kind: 'utf8' },\n\t'lastName': { type: 'string', kind: 'utf8' },\n\t'middleName': { type: 'string', kind: 'utf8' },\n\t'dateOfBirth': ASN1.ValidateASN1.IsAnyDate,\n\t'address': AddressSchema,\n\t'email': { type: 'string', kind: 'utf8' },\n\t'phoneNumber': { type: 'string', kind: 'utf8' },\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthSchema,\n\t'jobTitle': { type: 'string', kind: 'utf8' },\n\t'jobResponsibility': { type: 'string', kind: 'utf8' },\n\t'id': { type: 'string', kind: 'utf8' },\n\t'issuer': { type: 'string', kind: 'utf8' },\n\t'entityType': EntityTypeSchema,\n\t'contactDetails': ContactDetailsSchema,\n\t'nationality': { type: 'string', kind: 'utf8' },\n\t'document': DocumentSchema,\n\t'documentDriversLicense': DocumentSchema,\n\t'documentIdCard': DocumentSchema,\n\t'documentPassport': DocumentSchema,\n\t'documentPassportCard': DocumentSchema,\n\t'documentPermit': DocumentSchema,\n\t'documentVisa': DocumentSchema,\n\t'documentResidenceDocument': DocumentSchema\n} as const;\n"]}
|
|
1
|
+
{"version":3,"file":"iso20022.generated.js","sourceRoot":"","sources":["../../../src/services/kyc/iso20022.generated.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;GAGG;AAEH,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAC;AA2IhD,qDAAqD;AACrD,mCAAmC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAgB;IAC7C,MAAM,EAAE;QACP,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAC3F,EAAE,IAAI,EA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C,cAAc,EAAE,cAAc;IAC9B,2BAA2B,EAAE,cAAc;IAC3C,8BAA8B,EAAE,cAAc;IAC9C,kBAAkB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IACpD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;IAC7C,eAAe,EAAE,mBAAmB;IACpC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;CAClC,CAAC","sourcesContent":["/* eslint-disable */\n/**\n * Generated ISO20022 Type Definitions\n * This file is auto-generated from oids.json.\n */\n\nimport * as ASN1 from '../../lib/utils/asn1.js';\nimport { lib as KeetaNetLib } from '@keetanetwork/keetanet-client';\ntype KeetaNetAccount = InstanceType<typeof KeetaNetLib.Account>;\n\n// ISO20022 Primitive Types\n/** Country code or name */\n/** OID: 1.3.6.1.4.1.62675.1.2.0 */\nexport type Country = string;\n\n/** Country subdivision (state/province) */\n/** OID: 1.3.6.1.4.1.62675.1.2.1 */\nexport type CountrySubDivision = string;\n\n/** Postal code */\n/** OID: 1.3.6.1.4.1.62675.1.2.3 */\nexport type PostalCode = string;\n\n/** Town or city name */\n/** OID: 1.3.6.1.4.1.62675.1.2.4 */\nexport type TownName = string;\n\n/** Building number */\n/** OID: 1.3.6.1.4.1.62675.1.2.5 */\nexport type BuildingNumber = string;\n\n/** Street name */\n/** OID: 1.3.6.1.4.1.62675.1.2.6 */\nexport type StreetName = string;\n\n/** Free-form address lines */\n/** OID: 1.3.6.1.4.1.62675.1.2.7 */\nexport type AddressLines = string[];\n\n/** Sub-department */\n/** OID: 1.3.6.1.4.1.62675.1.2.8 */\nexport type SubDepartment = string;\n\n/** Department */\n/** OID: 1.3.6.1.4.1.62675.1.2.9 */\nexport type Department = string;\n\n/** Purpose of email address */\n/** OID: 1.3.6.1.4.1.62675.1.3.0 */\nexport type EmailAddressPurpose = string;\n\n// ISO20022 Enumeration Types\n/** Name prefix code */\n/** OID: 1.3.6.1.4.1.62675.1.0.0 */\nexport type NamePrefixCode = 'DOCT' | 'MIST' | 'MISS' | 'MIKS' | 'MME';\n\n/** Preferred contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.0 */\nexport type PreferredContactMethodCode = 'LETT' | 'MAIL' | 'PHON' | 'FAXX' | 'CELL';\n\n/** Person identification scheme name proprietary values */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1.0 */\nexport type PersonIdentificationSchemeNameProprietary = 'DRLC' | 'CPPT' | 'ARNU' | 'SSN' | 'TXID' | 'VISA' | 'WPPT';\n\n// ISO20022 Choice Types\n/** Address type classification */\n/** OID: 1.3.6.1.4.1.62675.1.2.10 */\nexport type AddressType = string;\n\n/** Organization identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.2 */\nexport type OrganizationIdentificationSchemeNameChoice = string;\n\n/** Person identification scheme name */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.1 */\nexport type PersonIdentificationSchemeNameChoice = string | PersonIdentificationSchemeNameProprietary;\n\n// ISO20022 Sequence Types\n/** Generic organization identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.0.1 */\nexport interface GenericOrganizationIdentification {\n\tid: Id;\n\tschemeName?: OrganizationIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface OrganizationIdentificationBicChoice {\n\ttag: 0;\n\tname: 'bic';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationLeiChoice {\n\ttag: 1;\n\tname: 'lei';\n\tvalue: string;\n}\n\nexport interface OrganizationIdentificationOtherChoice {\n\ttag: 2;\n\tname: 'other';\n\tvalue: GenericOrganizationIdentification[];\n}\nexport type OrganizationIdentificationChoice =\n\t| OrganizationIdentificationBicChoice\n\t| OrganizationIdentificationLeiChoice\n\t| OrganizationIdentificationOtherChoice;\n\nexport type OrganizationIdentification = OrganizationIdentificationChoice[];\n\n\n/** Generic person identification */\n/** OID: 1.3.6.1.4.1.62675.1.8.1.0 */\nexport interface GenericPersonIdentification {\n\tid: Id;\n\tschemeName?: PersonIdentificationSchemeNameChoice;\n\tissuer?: Issuer;\n}\n\nexport interface PersonIdentificationDateAndPlaceOfBirthChoice {\n\ttag: 0;\n\tname: 'dateAndPlaceOfBirth';\n\tvalue: DateAndPlaceOfBirth;\n}\n\nexport interface PersonIdentificationOtherChoice {\n\ttag: 1;\n\tname: 'other';\n\tvalue: GenericPersonIdentification[];\n}\nexport type PersonIdentificationChoice =\n\t| PersonIdentificationDateAndPlaceOfBirthChoice\n\t| PersonIdentificationOtherChoice;\n\nexport type PersonIdentification = PersonIdentificationChoice[];\n\n\n/** Other contact method */\n/** OID: 1.3.6.1.4.1.62675.1.9.1 */\nexport interface OtherContact {\n\tid?: Id;\n\tchannelType: string;\n}\n\n\n// Generated ASN.1 schemas for ISO 20022 choice types\n/** ASN.1 schema for AddressType */\nexport const AddressTypeSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for OrganizationIdentificationSchemeNameChoice */\nexport const OrganizationIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n/** ASN.1 schema for PersonIdentificationSchemeNameChoice */\nexport const PersonIdentificationSchemeNameChoiceSchema: ASN1.Schema = {\n\tchoice: [\n\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } }\n\t]\n};\n\n// Generated ASN.1 schemas for ISO 20022 regular sequence types\n/** ASN.1 schema for GenericOrganizationIdentification */\nexport const GenericOrganizationIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tissuer: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },\n\t\tschemeName: { optional: OrganizationIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for GenericPersonIdentification */\nexport const GenericPersonIdentificationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['id', 'issuer', 'schemeName'],\n\tcontains: {\n\t\tid: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tissuer: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },\n\t\tschemeName: { optional: PersonIdentificationSchemeNameChoiceSchema }\n\t}\n};\n\n/** ASN.1 schema for OtherContact */\nexport const OtherContactSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['channelType', 'id'],\n\tcontains: {\n\t\tchannelType: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tid: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\n\n// Generated ASN.1 schemas for ISO 20022 sequence-of-choice types\n/** ASN.1 schema for OrganizationIdentification */\nexport const OrganizationIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 2, contains: GenericOrganizationIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const OrganizationIdentificationFields = [\n\t'bic',\n\t'lei',\n\t'other'\n] as const;\n\n\n/** ASN.1 schema for PersonIdentification */\nexport const PersonIdentificationSchema: ASN1.Schema = {\n\tsequenceOf: {\n\t\tchoice: [\n\t\t\t{ type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\t\t{ type: 'context', kind: 'explicit', value: 1, contains: GenericPersonIdentificationSchema }\n\t\t]\n\t}\n};\n\nexport const PersonIdentificationFields = [\n\t'dateAndPlaceOfBirth',\n\t'other'\n] as const;\n\n\n// Generated ASN.1 schemas for choice-type sensitive attributes\n/** Person's full name */\n/** OID: 1.3.6.1.4.1.62675.1.0 */\nexport type FullName = string;\n\n/** Person's first name */\n/** OID: 1.3.6.1.4.1.62675.1.0.1 */\nexport type FirstName = string;\n\n/** Person's last name */\n/** OID: 1.3.6.1.4.1.62675.1.0.2 */\nexport type LastName = string;\n\n/** Person's middle name */\n/** OID: 1.3.6.1.4.1.62675.1.0.3 */\nexport type MiddleName = string;\n\n/** Date of birth */\n/** OID: 1.3.6.1.4.1.62675.1.1 */\nexport type DateOfBirth = Date;\n\n/** Physical address */\n/** OID: 1.3.6.1.4.1.62675.1.2 */\nexport interface Address {\n\taddressType?: AddressType;\n\tdepartment?: Department;\n\tsubDepartment?: SubDepartment;\n\tstreetName?: StreetName;\n\tbuildingNumber?: BuildingNumber;\n\tpostalCode?: PostalCode;\n\ttownName?: TownName;\n\tcountrySubDivision?: CountrySubDivision;\n\tcountry?: Country;\n\taddressLines?: AddressLines;\n}\n\n/** Email address */\n/** OID: 1.3.6.1.4.1.62675.1.3 */\nexport type Email = string;\n\n/** Phone number */\n/** OID: 1.3.6.1.4.1.62675.1.4 */\nexport type PhoneNumber = string;\n\n/** Date and place of birth information */\n/** OID: 1.3.6.1.4.1.62675.1.5 */\nexport interface DateAndPlaceOfBirth {\n\tbirthDate: BirthDate;\n\tprovinceOfBirth?: CountrySubDivision;\n\tcityOfBirth: TownName;\n\tcountryOfBirth: Country;\n}\n\n/** Job title */\n/** OID: 1.3.6.1.4.1.62675.1.6 */\nexport type JobTitle = string;\n\n/** Job responsibility */\n/** OID: 1.3.6.1.4.1.62675.1.6.1 */\nexport type JobResponsibility = string;\n\n/** Identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7 */\nexport type Id = string;\n\n/** Issuer identifier */\n/** OID: 1.3.6.1.4.1.62675.1.7.1 */\nexport type Issuer = string;\n\n/** Entity type (organization or person) */\n/** OID: 1.3.6.1.4.1.62675.1.8 */\nexport interface EntityType {\n\torganization?: GenericOrganizationIdentification[];\n\tperson?: GenericPersonIdentification[];\n}\n\n/** Contact details */\n/** OID: 1.3.6.1.4.1.62675.1.9 */\nexport interface ContactDetails {\n\tnamePrefix?: NamePrefixCode;\n\tfullName?: FullName;\n\tphoneNumber?: PhoneNumber;\n\tmobileNumber?: PhoneNumber;\n\tfaxNumber?: PhoneNumber;\n\temailAddress?: EmailAddress;\n\temailPurpose?: EmailAddressPurpose;\n\tjobTitle?: JobTitle;\n\tjobResponsibility?: JobResponsibility;\n\tdepartment?: Department;\n\tother?: OtherContact[];\n\tpreferredMethod?: PreferredContactMethodCode;\n}\n\n/** Nationality */\n/** OID: 1.3.6.1.4.1.62675.1.10 */\nexport type Nationality = string;\n\n/** Generic document structure with metadata */\n/** OID: 1.3.6.1.4.1.62675.1.11 */\nexport interface Document {\n\tdocumentNumber: string;\n\tfront?: Reference;\n\tback?: Reference;\n\tselfie?: Reference;\n\tfullName?: string;\n\tfirstName?: string;\n\tlastName?: string;\n\tdob?: Date;\n\tgender?: string;\n\taddress?: Address;\n\texpiresAt?: Date;\n\tissuedAt?: Date;\n\tissuingState?: string;\n\tissuingCountry?: string;\n\trefNumber?: string;\n\tnationality?: string;\n\tcurp?: string;\n\tclaveDeElector?: string;\n\tclassifiedDocumentType?: string;\n\tcurpValidationResponse?: string;\n\tsambaActivityHistoryResponse?: string;\n}\n\n/** Driver's license document */\n/** OID: 1.3.6.1.4.1.62675.1.11.0 */\nexport type DocumentDriversLicense = Document;\n\n/** ID card document */\n/** OID: 1.3.6.1.4.1.62675.1.11.1 */\nexport type DocumentIdCard = Document;\n\n/** Passport document */\n/** OID: 1.3.6.1.4.1.62675.1.11.2 */\nexport type DocumentPassport = Document;\n\n/** Passport card document */\n/** OID: 1.3.6.1.4.1.62675.1.11.3 */\nexport type DocumentPassportCard = Document;\n\n/** Permit document */\n/** OID: 1.3.6.1.4.1.62675.1.11.4 */\nexport type DocumentPermit = Document;\n\n/** Visa document */\n/** OID: 1.3.6.1.4.1.62675.1.11.5 */\nexport type DocumentVisa = Document;\n\n/** Residence document */\n/** OID: 1.3.6.1.4.1.62675.1.11.6 */\nexport type DocumentResidenceDocument = Document;\n\n/** Business registration document */\n/** OID: 1.3.6.1.4.1.62675.1.11.7 */\nexport type DocumentBusinessRegistration = Document;\n\n/** Organization's legal name */\n/** OID: 1.3.6.1.4.1.62675.1.12 */\nexport type OrganizationName = string;\n\n/** Organization's trade name (doing-business-as name) */\n/** OID: 1.3.6.1.4.1.62675.1.12.1 */\nexport type TradeName = string;\n\n/** Organization's legal form */\n/** OID: 1.3.6.1.4.1.62675.1.13 */\nexport type LegalForm = string;\n\n/** Organization incorporation details */\n/** OID: 1.3.6.1.4.1.62675.1.14 */\nexport interface Incorporation {\n\tcountry: Country;\n\tcountrySubDivision?: CountrySubDivision;\n\tincorporationDate?: Date;\n}\n\n/** Organization's website */\n/** OID: 1.3.6.1.4.1.62675.1.15 */\nexport type Website = string;\n\n/** DigestInfo from RFC 3447 */\nexport interface DigestInfo {\n\tdigestAlgorithm: ASN1.ASN1OID;\n\tdigest: Buffer;\n}\n\nexport const DigestInfoSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['digestAlgorithm', 'digest'],\n\tcontains: {\n\t\tdigestAlgorithm: ASN1.ValidateASN1.IsOID,\n\t\tdigest: ASN1.ValidateASN1.IsOctetString\n\t}\n};\n\n/** External reference pointer */\nexport interface ExternalReference {\n\turl: string;\n\tcontentType: string;\n}\n\nexport const ExternalReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['url', 'contentType'],\n\tcontains: {\n\t\turl: { type: 'string', kind: 'utf8' },\n\t\tcontentType: { type: 'string', kind: 'utf8' }\n\t}\n};\n\n/** Reference */\nexport interface Reference {\n\texternal: ExternalReference;\n\tdigest: DigestInfo;\n\tencryptionAlgorithm: ASN1.ASN1OID;\n\t/**\n\t * TODOC\n\t */\n\t$blob: (principals?: KeetaNetAccount[]) => Promise<Blob>;\n}\n\nexport const ReferenceSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['external', 'digest', 'encryptionAlgorithm'],\n\tcontains: {\n\t\texternal: ExternalReferenceSchema,\n\t\tdigest: DigestInfoSchema,\n\t\tencryptionAlgorithm: ASN1.ValidateASN1.IsOID\n\t}\n};\n\n// Token aliases for sensitive attributes\n/** Alias for DateOfBirth */\nexport type BirthDate = DateOfBirth;\n\n/** Alias for Email */\nexport type EmailAddress = Email;\n\n/** Union type of all sensitive attribute types */\nexport type SensitiveAttributeType =\n\t| FullName\n\t| FirstName\n\t| LastName\n\t| MiddleName\n\t| DateOfBirth\n\t| Address\n\t| Email\n\t| PhoneNumber\n\t| DateAndPlaceOfBirth\n\t| JobTitle\n\t| JobResponsibility\n\t| Id\n\t| Issuer\n\t| EntityType\n\t| ContactDetails\n\t| Nationality\n\t| Document\n\t| DocumentDriversLicense\n\t| DocumentIdCard\n\t| DocumentPassport\n\t| DocumentPassportCard\n\t| DocumentPermit\n\t| DocumentVisa\n\t| DocumentResidenceDocument\n\t| DocumentBusinessRegistration\n\t| OrganizationName\n\t| TradeName\n\t| LegalForm\n\t| Incorporation\n\t| Website;\n\n/** Map of attribute name to acceptable input type for CertificateBuilder.setAttribute */\nexport interface CertificateAttributeValueMap {\n\t'fullName': FullName;\n\t'firstName': FirstName;\n\t'lastName': LastName;\n\t'middleName': MiddleName;\n\t'dateOfBirth': DateOfBirth;\n\t'address': Address;\n\t'email': Email;\n\t'phoneNumber': PhoneNumber;\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirth;\n\t'jobTitle': JobTitle;\n\t'jobResponsibility': JobResponsibility;\n\t'id': Id;\n\t'issuer': Issuer;\n\t'entityType': EntityType;\n\t'contactDetails': ContactDetails;\n\t'nationality': Nationality;\n\t'document': Document;\n\t'documentDriversLicense': DocumentDriversLicense;\n\t'documentIdCard': DocumentIdCard;\n\t'documentPassport': DocumentPassport;\n\t'documentPassportCard': DocumentPassportCard;\n\t'documentPermit': DocumentPermit;\n\t'documentVisa': DocumentVisa;\n\t'documentResidenceDocument': DocumentResidenceDocument;\n\t'documentBusinessRegistration': DocumentBusinessRegistration;\n\t'organizationName': OrganizationName;\n\t'tradeName': TradeName;\n\t'legalForm': LegalForm;\n\t'incorporation': Incorporation;\n\t'website': Website;\n}\n\n/** Helper generic to get attribute value type by name */\nexport type CertificateAttributeValue<Name extends keyof CertificateAttributeValueMap> = CertificateAttributeValueMap[Name];\n\nexport const AddressFields = ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'] as const;\nexport const AddressSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['addressLines', 'addressType', 'buildingNumber', 'country', 'countrySubDivision', 'department', 'postalCode', 'streetName', 'subDepartment', 'townName'],\n\tcontains: {\n\t\taddressLines: { optional: { type: 'context', kind: 'explicit', value: 0, contains: { sequenceOf: { type: 'string', kind: 'utf8' } } } },\n\t\taddressType: { optional: AddressTypeSchema },\n\t\tbuildingNumber: { optional: { type: 'context', kind: 'explicit', value: 2, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcountry: { optional: { type: 'context', kind: 'explicit', value: 3, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcountrySubDivision: { optional: { type: 'context', kind: 'explicit', value: 4, contains: { type: 'string', kind: 'utf8' } } },\n\t\tdepartment: { optional: { type: 'context', kind: 'explicit', value: 5, contains: { type: 'string', kind: 'utf8' } } },\n\t\tpostalCode: { optional: { type: 'context', kind: 'explicit', value: 6, contains: { type: 'string', kind: 'utf8' } } },\n\t\tstreetName: { optional: { type: 'context', kind: 'explicit', value: 7, contains: { type: 'string', kind: 'utf8' } } },\n\t\tsubDepartment: { optional: { type: 'context', kind: 'explicit', value: 8, contains: { type: 'string', kind: 'utf8' } } },\n\t\ttownName: { optional: { type: 'context', kind: 'explicit', value: 9, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const DateAndPlaceOfBirthFields = ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'] as const;\nexport const DateAndPlaceOfBirthSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['birthDate', 'cityOfBirth', 'countryOfBirth', 'provinceOfBirth'],\n\tcontains: {\n\t\tbirthDate: { type: 'context', kind: 'explicit', value: 0, contains: ASN1.ValidateASN1.IsAnyDate },\n\t\tcityOfBirth: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } },\n\t\tcountryOfBirth: { type: 'context', kind: 'explicit', value: 2, contains: { type: 'string', kind: 'utf8' } },\n\t\tprovinceOfBirth: { optional: { type: 'context', kind: 'explicit', value: 3, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const EntityTypeFields = ['organization', 'person'] as const;\nexport const EntityTypeSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['organization', 'person'],\n\tcontains: {\n\t\torganization: { optional: { type: 'context', kind: 'explicit', value: 0, contains: { sequenceOf: GenericOrganizationIdentificationSchema } } },\n\t\tperson: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { sequenceOf: GenericPersonIdentificationSchema } } }\n\t}\n};\nexport const ContactDetailsFields = ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'] as const;\nexport const ContactDetailsSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['department', 'emailAddress', 'emailPurpose', 'faxNumber', 'fullName', 'jobResponsibility', 'jobTitle', 'mobileNumber', 'namePrefix', 'other', 'phoneNumber', 'preferredMethod'],\n\tcontains: {\n\t\tdepartment: { optional: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } } },\n\t\temailAddress: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },\n\t\temailPurpose: { optional: { type: 'context', kind: 'explicit', value: 2, contains: { type: 'string', kind: 'utf8' } } },\n\t\tfaxNumber: { optional: { type: 'context', kind: 'explicit', value: 3, contains: { type: 'string', kind: 'utf8' } } },\n\t\tfullName: { optional: { type: 'context', kind: 'explicit', value: 4, contains: { type: 'string', kind: 'utf8' } } },\n\t\tjobResponsibility: { optional: { type: 'context', kind: 'explicit', value: 5, contains: { type: 'string', kind: 'utf8' } } },\n\t\tjobTitle: { optional: { type: 'context', kind: 'explicit', value: 6, contains: { type: 'string', kind: 'utf8' } } },\n\t\tmobileNumber: { optional: { type: 'context', kind: 'explicit', value: 7, contains: { type: 'string', kind: 'utf8' } } },\n\t\tnamePrefix: { optional: { type: 'context', kind: 'explicit', value: 8, contains: { type: 'string', kind: 'utf8' } } },\n\t\tother: { optional: { type: 'context', kind: 'explicit', value: 9, contains: { sequenceOf: OtherContactSchema } } },\n\t\tphoneNumber: { optional: { type: 'context', kind: 'explicit', value: 10, contains: { type: 'string', kind: 'utf8' } } },\n\t\tpreferredMethod: { optional: { type: 'context', kind: 'explicit', value: 11, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const DocumentFields = ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'] as const;\nexport const DocumentSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['documentNumber', 'front', 'back', 'selfie', 'fullName', 'firstName', 'lastName', 'dob', 'gender', 'address', 'expiresAt', 'issuedAt', 'issuingState', 'issuingCountry', 'refNumber', 'nationality', 'curp', 'claveDeElector', 'classifiedDocumentType', 'curpValidationResponse', 'sambaActivityHistoryResponse'],\n\tcontains: {\n\t\tdocumentNumber: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tfront: { optional: { type: 'context', kind: 'explicit', value: 1, contains: ReferenceSchema } },\n\t\tback: { optional: { type: 'context', kind: 'explicit', value: 2, contains: ReferenceSchema } },\n\t\tselfie: { optional: { type: 'context', kind: 'explicit', value: 3, contains: ReferenceSchema } },\n\t\tfullName: { optional: { type: 'context', kind: 'explicit', value: 4, contains: { type: 'string', kind: 'utf8' } } },\n\t\tfirstName: { optional: { type: 'context', kind: 'explicit', value: 5, contains: { type: 'string', kind: 'utf8' } } },\n\t\tlastName: { optional: { type: 'context', kind: 'explicit', value: 6, contains: { type: 'string', kind: 'utf8' } } },\n\t\tdob: { optional: { type: 'context', kind: 'explicit', value: 7, contains: ASN1.ValidateASN1.IsAnyDate } },\n\t\tgender: { optional: { type: 'context', kind: 'explicit', value: 8, contains: { type: 'string', kind: 'utf8' } } },\n\t\taddress: { optional: { type: 'context', kind: 'explicit', value: 9, contains: AddressSchema } },\n\t\texpiresAt: { optional: { type: 'context', kind: 'explicit', value: 10, contains: ASN1.ValidateASN1.IsAnyDate } },\n\t\tissuedAt: { optional: { type: 'context', kind: 'explicit', value: 11, contains: ASN1.ValidateASN1.IsAnyDate } },\n\t\tissuingState: { optional: { type: 'context', kind: 'explicit', value: 12, contains: { type: 'string', kind: 'utf8' } } },\n\t\tissuingCountry: { optional: { type: 'context', kind: 'explicit', value: 13, contains: { type: 'string', kind: 'utf8' } } },\n\t\trefNumber: { optional: { type: 'context', kind: 'explicit', value: 14, contains: { type: 'string', kind: 'utf8' } } },\n\t\tnationality: { optional: { type: 'context', kind: 'explicit', value: 15, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcurp: { optional: { type: 'context', kind: 'explicit', value: 16, contains: { type: 'string', kind: 'utf8' } } },\n\t\tclaveDeElector: { optional: { type: 'context', kind: 'explicit', value: 17, contains: { type: 'string', kind: 'utf8' } } },\n\t\tclassifiedDocumentType: { optional: { type: 'context', kind: 'explicit', value: 18, contains: { type: 'string', kind: 'utf8' } } },\n\t\tcurpValidationResponse: { optional: { type: 'context', kind: 'explicit', value: 19, contains: { type: 'string', kind: 'utf8' } } },\n\t\tsambaActivityHistoryResponse: { optional: { type: 'context', kind: 'explicit', value: 20, contains: { type: 'string', kind: 'utf8' } } }\n\t}\n};\nexport const IncorporationFields = ['country', 'countrySubDivision', 'incorporationDate'] as const;\nexport const IncorporationSchema: ASN1.Schema = {\n\ttype: 'struct',\n\tfieldNames: ['country', 'countrySubDivision', 'incorporationDate'],\n\tcontains: {\n\t\tcountry: { type: 'context', kind: 'explicit', value: 0, contains: { type: 'string', kind: 'utf8' } },\n\t\tcountrySubDivision: { optional: { type: 'context', kind: 'explicit', value: 1, contains: { type: 'string', kind: 'utf8' } } },\n\t\tincorporationDate: { optional: { type: 'context', kind: 'explicit', value: 2, contains: ASN1.ValidateASN1.IsAnyDate } }\n\t}\n};\nexport const CertificateAttributeOIDDB = {\n\t'fullName': '1.3.6.1.4.1.62675.1.0',\n\t'firstName': '1.3.6.1.4.1.62675.1.0.1',\n\t'lastName': '1.3.6.1.4.1.62675.1.0.2',\n\t'middleName': '1.3.6.1.4.1.62675.1.0.3',\n\t'dateOfBirth': '1.3.6.1.4.1.62675.1.1',\n\t'address': '1.3.6.1.4.1.62675.1.2',\n\t'email': '1.3.6.1.4.1.62675.1.3',\n\t'phoneNumber': '1.3.6.1.4.1.62675.1.4',\n\t'dateAndPlaceOfBirth': '1.3.6.1.4.1.62675.1.5',\n\t'jobTitle': '1.3.6.1.4.1.62675.1.6',\n\t'jobResponsibility': '1.3.6.1.4.1.62675.1.6.1',\n\t'id': '1.3.6.1.4.1.62675.1.7',\n\t'issuer': '1.3.6.1.4.1.62675.1.7.1',\n\t'entityType': '1.3.6.1.4.1.62675.1.8',\n\t'contactDetails': '1.3.6.1.4.1.62675.1.9',\n\t'nationality': '1.3.6.1.4.1.62675.1.10',\n\t'document': '1.3.6.1.4.1.62675.1.11',\n\t'documentDriversLicense': '1.3.6.1.4.1.62675.1.11.0',\n\t'documentIdCard': '1.3.6.1.4.1.62675.1.11.1',\n\t'documentPassport': '1.3.6.1.4.1.62675.1.11.2',\n\t'documentPassportCard': '1.3.6.1.4.1.62675.1.11.3',\n\t'documentPermit': '1.3.6.1.4.1.62675.1.11.4',\n\t'documentVisa': '1.3.6.1.4.1.62675.1.11.5',\n\t'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6',\n\t'documentBusinessRegistration': '1.3.6.1.4.1.62675.1.11.7',\n\t'organizationName': '1.3.6.1.4.1.62675.1.12',\n\t'tradeName': '1.3.6.1.4.1.62675.1.12.1',\n\t'legalForm': '1.3.6.1.4.1.62675.1.13',\n\t'incorporation': '1.3.6.1.4.1.62675.1.14',\n\t'website': '1.3.6.1.4.1.62675.1.15'\n} as const;\n\nexport const SENSITIVE_CERTIFICATE_ATTRIBUTES = [\n\t'fullName',\n\t'firstName',\n\t'lastName',\n\t'middleName',\n\t'dateOfBirth',\n\t'address',\n\t'email',\n\t'phoneNumber',\n\t'dateAndPlaceOfBirth',\n\t'jobTitle',\n\t'jobResponsibility',\n\t'id',\n\t'issuer',\n\t'entityType',\n\t'contactDetails',\n\t'nationality',\n\t'document',\n\t'documentDriversLicense',\n\t'documentIdCard',\n\t'documentPassport',\n\t'documentPassportCard',\n\t'documentPermit',\n\t'documentVisa',\n\t'documentResidenceDocument',\n\t'documentBusinessRegistration',\n\t'organizationName',\n\t'tradeName',\n\t'legalForm',\n\t'incorporation',\n\t'website'\n] as const;\n\nexport type SensitiveCertificateAttributeNames = typeof SENSITIVE_CERTIFICATE_ATTRIBUTES[number];\n\nexport const SensitiveCertificateAttributeNames = [\n\t'FullName',\n\t'FirstName',\n\t'LastName',\n\t'MiddleName',\n\t'DateOfBirth',\n\t'Address',\n\t'Email',\n\t'PhoneNumber',\n\t'DateAndPlaceOfBirth',\n\t'JobTitle',\n\t'JobResponsibility',\n\t'Id',\n\t'Issuer',\n\t'EntityType',\n\t'ContactDetails',\n\t'Nationality',\n\t'Document',\n\t'DocumentDriversLicense',\n\t'DocumentIdCard',\n\t'DocumentPassport',\n\t'DocumentPassportCard',\n\t'DocumentPermit',\n\t'DocumentVisa',\n\t'DocumentResidenceDocument',\n\t'DocumentBusinessRegistration',\n\t'OrganizationName',\n\t'TradeName',\n\t'LegalForm',\n\t'Incorporation',\n\t'Website'\n] as const;\n\nexport const CertificateAttributeFieldNames: { readonly [K in keyof typeof CertificateAttributeOIDDB]?: readonly string[] } = {\n\t'address': AddressFields,\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthFields,\n\t'entityType': EntityTypeFields,\n\t'contactDetails': ContactDetailsFields,\n\t'document': DocumentFields,\n\t'incorporation': IncorporationFields\n} as const;\n\nexport const CertificateAttributeSchema: { readonly [K in keyof typeof CertificateAttributeOIDDB]: ASN1.Schema } = {\n\t'fullName': { type: 'string', kind: 'utf8' },\n\t'firstName': { type: 'string', kind: 'utf8' },\n\t'lastName': { type: 'string', kind: 'utf8' },\n\t'middleName': { type: 'string', kind: 'utf8' },\n\t'dateOfBirth': ASN1.ValidateASN1.IsAnyDate,\n\t'address': AddressSchema,\n\t'email': { type: 'string', kind: 'utf8' },\n\t'phoneNumber': { type: 'string', kind: 'utf8' },\n\t'dateAndPlaceOfBirth': DateAndPlaceOfBirthSchema,\n\t'jobTitle': { type: 'string', kind: 'utf8' },\n\t'jobResponsibility': { type: 'string', kind: 'utf8' },\n\t'id': { type: 'string', kind: 'utf8' },\n\t'issuer': { type: 'string', kind: 'utf8' },\n\t'entityType': EntityTypeSchema,\n\t'contactDetails': ContactDetailsSchema,\n\t'nationality': { type: 'string', kind: 'utf8' },\n\t'document': DocumentSchema,\n\t'documentDriversLicense': DocumentSchema,\n\t'documentIdCard': DocumentSchema,\n\t'documentPassport': DocumentSchema,\n\t'documentPassportCard': DocumentSchema,\n\t'documentPermit': DocumentSchema,\n\t'documentVisa': DocumentSchema,\n\t'documentResidenceDocument': DocumentSchema,\n\t'documentBusinessRegistration': DocumentSchema,\n\t'organizationName': { type: 'string', kind: 'utf8' },\n\t'tradeName': { type: 'string', kind: 'utf8' },\n\t'legalForm': { type: 'string', kind: 'utf8' },\n\t'incorporation': IncorporationSchema,\n\t'website': { type: 'string', kind: 'utf8' }\n} as const;\n"]}
|
|
@@ -88,6 +88,24 @@ export declare namespace keeta {
|
|
|
88
88
|
/** Residence document */
|
|
89
89
|
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.6 */
|
|
90
90
|
const DOCUMENT_RESIDENCE_DOCUMENT = "1.3.6.1.4.1.62675.1.11.6";
|
|
91
|
+
/** Business registration document */
|
|
92
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.7 */
|
|
93
|
+
const DOCUMENT_BUSINESS_REGISTRATION = "1.3.6.1.4.1.62675.1.11.7";
|
|
94
|
+
/** Organization's legal name */
|
|
95
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.12 */
|
|
96
|
+
const ORGANIZATION_NAME = "1.3.6.1.4.1.62675.1.12";
|
|
97
|
+
/** Organization's trade name (doing-business-as name) */
|
|
98
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.12.1 */
|
|
99
|
+
const TRADE_NAME = "1.3.6.1.4.1.62675.1.12.1";
|
|
100
|
+
/** Organization's legal form */
|
|
101
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.13 */
|
|
102
|
+
const LEGAL_FORM = "1.3.6.1.4.1.62675.1.13";
|
|
103
|
+
/** Organization incorporation details */
|
|
104
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.14 */
|
|
105
|
+
const INCORPORATION = "1.3.6.1.4.1.62675.1.14";
|
|
106
|
+
/** Organization's website */
|
|
107
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.15 */
|
|
108
|
+
const WEBSITE = "1.3.6.1.4.1.62675.1.15";
|
|
91
109
|
}
|
|
92
110
|
export declare const OID_TO_NAME: {
|
|
93
111
|
[key: string]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oids.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/oids.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AACjD,eAAO,MAAM,QAAQ,2BAA2B,CAAC;AAGjD,sBAAsB;AACtB,uCAAuC;AACvC,eAAO,MAAM,WAAW,aAAa,CAAC;AAItC,yBAAiB,KAAK,CAAC;IACtB,sDAAsD;IACtD,0DAA0D;IACnD,MAAM,cAAc,0BAA0B,CAAC;IACtD,+BAA+B;IAC/B,iCAAiC;IACjC,gBAAgB;IAChB,yBAAyB;IACzB,0DAA0D;IACnD,MAAM,SAAS,0BAA0B,CAAC;IACjD,0BAA0B;IAC1B,4DAA4D;IACrD,MAAM,UAAU,4BAA4B,CAAC;IACpD,yBAAyB;IACzB,4DAA4D;IACrD,MAAM,SAAS,4BAA4B,CAAC;IACnD,2BAA2B;IAC3B,4DAA4D;IACrD,MAAM,WAAW,4BAA4B,CAAC;IACrD,oBAAoB;IACpB,0DAA0D;IACnD,MAAM,aAAa,0BAA0B,CAAC;IACrD,uBAAuB;IACvB,0DAA0D;IACnD,MAAM,OAAO,0BAA0B,CAAC;IAC/C,oBAAoB;IACpB,0DAA0D;IACnD,MAAM,KAAK,0BAA0B,CAAC;IAC7C,mBAAmB;IACnB,0DAA0D;IACnD,MAAM,YAAY,0BAA0B,CAAC;IACpD,0CAA0C;IAC1C,0DAA0D;IACnD,MAAM,uBAAuB,0BAA0B,CAAC;IAC/D,gBAAgB;IAChB,0DAA0D;IACnD,MAAM,SAAS,0BAA0B,CAAC;IACjD,yBAAyB;IACzB,4DAA4D;IACrD,MAAM,kBAAkB,4BAA4B,CAAC;IAC5D,iBAAiB;IACjB,0DAA0D;IACnD,MAAM,EAAE,0BAA0B,CAAC;IAC1C,wBAAwB;IACxB,4DAA4D;IACrD,MAAM,MAAM,4BAA4B,CAAC;IAChD,2CAA2C;IAC3C,0DAA0D;IACnD,MAAM,WAAW,0BAA0B,CAAC;IACnD,sBAAsB;IACtB,0DAA0D;IACnD,MAAM,eAAe,0BAA0B,CAAC;IACvD,kBAAkB;IAClB,2DAA2D;IACpD,MAAM,WAAW,2BAA2B,CAAC;IACpD,+CAA+C;IAC/C,2DAA2D;IACpD,MAAM,QAAQ,2BAA2B,CAAC;IACjD,gCAAgC;IAChC,6DAA6D;IACtD,MAAM,wBAAwB,6BAA6B,CAAC;IACnE,uBAAuB;IACvB,6DAA6D;IACtD,MAAM,gBAAgB,6BAA6B,CAAC;IAC3D,wBAAwB;IACxB,6DAA6D;IACtD,MAAM,iBAAiB,6BAA6B,CAAC;IAC5D,6BAA6B;IAC7B,6DAA6D;IACtD,MAAM,sBAAsB,6BAA6B,CAAC;IACjE,sBAAsB;IACtB,6DAA6D;IACtD,MAAM,eAAe,6BAA6B,CAAC;IAC1D,oBAAoB;IACpB,6DAA6D;IACtD,MAAM,aAAa,6BAA6B,CAAC;IACxD,yBAAyB;IACzB,6DAA6D;IACtD,MAAM,2BAA2B,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"oids.generated.d.ts","sourceRoot":"","sources":["../../../src/services/kyc/oids.generated.ts"],"names":[],"mappings":"AACA;;;GAGG;AAGH,eAAO,MAAM,WAAW,4BAA4B,CAAC;AACrD,eAAO,MA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.3.6.1.4.1.62675.1.11.6 */
|
|
96
96
|
keeta.DOCUMENT_RESIDENCE_DOCUMENT = '1.3.6.1.4.1.62675.1.11.6';
|
|
97
|
+
/** Business registration document */
|
|
98
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.11.7 */
|
|
99
|
+
keeta.DOCUMENT_BUSINESS_REGISTRATION = '1.3.6.1.4.1.62675.1.11.7';
|
|
100
|
+
/** Organization's legal name */
|
|
101
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.12 */
|
|
102
|
+
keeta.ORGANIZATION_NAME = '1.3.6.1.4.1.62675.1.12';
|
|
103
|
+
/** Organization's trade name (doing-business-as name) */
|
|
104
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.12.1 */
|
|
105
|
+
keeta.TRADE_NAME = '1.3.6.1.4.1.62675.1.12.1';
|
|
106
|
+
/** Organization's legal form */
|
|
107
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.13 */
|
|
108
|
+
keeta.LEGAL_FORM = '1.3.6.1.4.1.62675.1.13';
|
|
109
|
+
/** Organization incorporation details */
|
|
110
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.14 */
|
|
111
|
+
keeta.INCORPORATION = '1.3.6.1.4.1.62675.1.14';
|
|
112
|
+
/** Organization's website */
|
|
113
|
+
/** @see https://oid-base.com/get/1.3.6.1.4.1.62675.1.15 */
|
|
114
|
+
keeta.WEBSITE = '1.3.6.1.4.1.62675.1.15';
|
|
97
115
|
})(keeta || (keeta = {}));
|
|
98
116
|
// OID to name lookup maps
|
|
99
117
|
export const OID_TO_NAME = {
|
|
@@ -121,7 +139,13 @@ export const OID_TO_NAME = {
|
|
|
121
139
|
'1.3.6.1.4.1.62675.1.11.3': 'documentPassportCard',
|
|
122
140
|
'1.3.6.1.4.1.62675.1.11.4': 'documentPermit',
|
|
123
141
|
'1.3.6.1.4.1.62675.1.11.5': 'documentVisa',
|
|
124
|
-
'1.3.6.1.4.1.62675.1.11.6': 'documentResidenceDocument'
|
|
142
|
+
'1.3.6.1.4.1.62675.1.11.6': 'documentResidenceDocument',
|
|
143
|
+
'1.3.6.1.4.1.62675.1.11.7': 'documentBusinessRegistration',
|
|
144
|
+
'1.3.6.1.4.1.62675.1.12': 'organizationName',
|
|
145
|
+
'1.3.6.1.4.1.62675.1.12.1': 'tradeName',
|
|
146
|
+
'1.3.6.1.4.1.62675.1.13': 'legalForm',
|
|
147
|
+
'1.3.6.1.4.1.62675.1.14': 'incorporation',
|
|
148
|
+
'1.3.6.1.4.1.62675.1.15': 'website'
|
|
125
149
|
};
|
|
126
150
|
export const NAME_TO_OID = {
|
|
127
151
|
'postalCode': '2.5.5.17',
|
|
@@ -148,6 +172,12 @@ export const NAME_TO_OID = {
|
|
|
148
172
|
'documentPassportCard': '1.3.6.1.4.1.62675.1.11.3',
|
|
149
173
|
'documentPermit': '1.3.6.1.4.1.62675.1.11.4',
|
|
150
174
|
'documentVisa': '1.3.6.1.4.1.62675.1.11.5',
|
|
151
|
-
'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6'
|
|
175
|
+
'documentResidenceDocument': '1.3.6.1.4.1.62675.1.11.6',
|
|
176
|
+
'documentBusinessRegistration': '1.3.6.1.4.1.62675.1.11.7',
|
|
177
|
+
'organizationName': '1.3.6.1.4.1.62675.1.12',
|
|
178
|
+
'tradeName': '1.3.6.1.4.1.62675.1.12.1',
|
|
179
|
+
'legalForm': '1.3.6.1.4.1.62675.1.13',
|
|
180
|
+
'incorporation': '1.3.6.1.4.1.62675.1.14',
|
|
181
|
+
'website': '1.3.6.1.4.1.62675.1.15'
|
|
152
182
|
};
|
|
153
183
|
//# sourceMappingURL=oids.generated.js.map
|