@nexeraid/identity-schemas 2.3.24-dev → 2.3.25-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{customers.schema-cc3df18f.cjs.dev.js → customers.schema-0ce8464a.cjs.dev.js} +1 -1
- package/dist/{customers.schema-f0d472b1.cjs.prod.js → customers.schema-459fdc4d.cjs.prod.js} +1 -1
- package/dist/{customers.schema-0306abb6.esm.js → customers.schema-8f6c7924.esm.js} +1 -1
- package/dist/declarations/src/identity/app-requests.schema.d.ts +366 -366
- package/dist/declarations/src/identity/app-requests.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/challenge-query.schema.d.ts +117 -149
- package/dist/declarations/src/identity/challenge-query.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/host-requests.schema.d.ts +44 -44
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +94 -94
- package/dist/declarations/src/identity/kyc.schema.d.ts +150 -150
- package/dist/declarations/src/identity/polygon-id.schema.d.ts +8 -8
- package/dist/declarations/src/identity/query.schema.d.ts +69 -67
- package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/zkps.schema.d.ts +97 -97
- package/dist/declarations/src/identity-ids.schema.d.ts +20 -2
- package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
- package/dist/declarations/src/nexeraSSID.schema.d.ts +2 -0
- package/dist/declarations/src/nexeraSSID.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +75 -75
- package/dist/{frontend-utilities.schema-02fc8336.esm.js → frontend-utilities.schema-8b213997.esm.js} +1 -1
- package/dist/{frontend-utilities.schema-0be040b7.cjs.dev.js → frontend-utilities.schema-9ce4190b.cjs.dev.js} +1 -1
- package/dist/{frontend-utilities.schema-cd88e673.cjs.prod.js → frontend-utilities.schema-d4d6374c.cjs.prod.js} +1 -1
- package/dist/{identity-api.schema-2de31155.cjs.prod.js → identity-api.schema-a16ec830.cjs.dev.js} +417 -396
- package/dist/{identity-api.schema-68a83f54.esm.js → identity-api.schema-d1954107.esm.js} +406 -396
- package/dist/{identity-api.schema-bbb2c243.cjs.dev.js → identity-api.schema-f103ebd9.cjs.prod.js} +417 -396
- package/dist/nexeraid-identity-schemas.cjs.dev.js +14 -3
- package/dist/nexeraid-identity-schemas.cjs.prod.js +14 -3
- package/dist/nexeraid-identity-schemas.esm.js +3 -3
- package/dist/package.json +1 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +3 -2
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +3 -2
- package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
- package/package.json +1 -1
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.esm.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +2 -2
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +2 -2
|
@@ -2074,6 +2074,176 @@ function _toConsumableArray(r) {
|
|
|
2074
2074
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
2075
2075
|
}
|
|
2076
2076
|
|
|
2077
|
+
var StoragePrefix = "storage";
|
|
2078
|
+
var IdentityPrefix = "identity";
|
|
2079
|
+
var EmailPrefix = "email";
|
|
2080
|
+
var WalletPrefix = "wallet";
|
|
2081
|
+
var AppPrefix = "app";
|
|
2082
|
+
var ChallengePrefix = "challenge";
|
|
2083
|
+
var TestPrefix = "test";
|
|
2084
|
+
var CustomerScreeningPrefix = "cstscr";
|
|
2085
|
+
var TagPrefix = "tag";
|
|
2086
|
+
|
|
2087
|
+
// TMS
|
|
2088
|
+
var TransactionPrefix = "tx";
|
|
2089
|
+
var TransactionReviewPrefix = "txrev";
|
|
2090
|
+
var TransactionPartiesPrefix = "txpar";
|
|
2091
|
+
var TransactionInfosPrefix = "txi";
|
|
2092
|
+
var TransactionExtractedInfosPrefix = "txei";
|
|
2093
|
+
var TransactionMethodsPrefix = "txm";
|
|
2094
|
+
var TransactionMethodExtractedInfosPrefix = "txmei";
|
|
2095
|
+
var InstitutionPrefix = "ins";
|
|
2096
|
+
var InstitutionExtractedInfosPrefix = "insei";
|
|
2097
|
+
|
|
2098
|
+
// Add these lines near the top of the file with other prefix definitions
|
|
2099
|
+
var ScenarioPrefix = "scenario";
|
|
2100
|
+
var ListPrefix = "list";
|
|
2101
|
+
var QueryPrefix = "query";
|
|
2102
|
+
var ActionPrefix = "action";
|
|
2103
|
+
|
|
2104
|
+
// ---
|
|
2105
|
+
|
|
2106
|
+
// Add these lines in the type definitions section
|
|
2107
|
+
|
|
2108
|
+
// TMS
|
|
2109
|
+
|
|
2110
|
+
// ---
|
|
2111
|
+
|
|
2112
|
+
// TMS
|
|
2113
|
+
|
|
2114
|
+
// Scenarios service
|
|
2115
|
+
|
|
2116
|
+
var createBrandedSchemaId = function createBrandedSchemaId(brand) {
|
|
2117
|
+
return z.custom(function (val) {
|
|
2118
|
+
if (typeof val !== "string") return false;
|
|
2119
|
+
return val.startsWith(brand);
|
|
2120
|
+
}, {
|
|
2121
|
+
message: "Invalid ".concat(brand, " id")
|
|
2122
|
+
});
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2125
|
+
// ---
|
|
2126
|
+
|
|
2127
|
+
var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
|
|
2128
|
+
var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
|
|
2129
|
+
var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
|
|
2130
|
+
var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
|
|
2131
|
+
var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
|
|
2132
|
+
var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
|
|
2133
|
+
var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
|
|
2134
|
+
var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
|
|
2135
|
+
var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
|
|
2136
|
+
var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
|
|
2137
|
+
|
|
2138
|
+
// TMS
|
|
2139
|
+
var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
|
|
2140
|
+
var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
|
|
2141
|
+
var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
|
|
2142
|
+
var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
|
|
2143
|
+
var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
|
|
2144
|
+
var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
|
|
2145
|
+
var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
|
|
2146
|
+
var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
|
|
2147
|
+
var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
|
|
2148
|
+
var ScenarioId = createBrandedSchemaId("".concat(ScenarioPrefix, "_"));
|
|
2149
|
+
var ListId = createBrandedSchemaId("".concat(ListPrefix, "_"));
|
|
2150
|
+
var QueryId = createBrandedSchemaId("".concat(QueryPrefix, "_"));
|
|
2151
|
+
var generateId = function generateId(type // Add this line
|
|
2152
|
+
) {
|
|
2153
|
+
return "".concat(type, "_").concat(nanoid(12));
|
|
2154
|
+
};
|
|
2155
|
+
var MemberId = z.string();
|
|
2156
|
+
|
|
2157
|
+
var FLOW_TYPES = ["web2", "web3"];
|
|
2158
|
+
var FlowType = z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2159
|
+
var VerificationModes = ["full_verification", "sandbox"];
|
|
2160
|
+
var VerificationMode = z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2161
|
+
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2162
|
+
var IdentityDocumentCountryListOption = z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2163
|
+
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2164
|
+
var IdentityDocumentOptionsType = z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2165
|
+
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2166
|
+
var PersonalInformationFieldsIdentityDocuments = z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2167
|
+
var Identifier = z.union([z.literal("verification"), z.literal("management")]);
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Represents the additional data that can be attached to a customer
|
|
2171
|
+
*/
|
|
2172
|
+
|
|
2173
|
+
var AdditionalCustomerInformationParams = z.object({
|
|
2174
|
+
email: z.string().email().optional(),
|
|
2175
|
+
phone: z.string().min(4).optional(),
|
|
2176
|
+
wallet: z.object({
|
|
2177
|
+
address: BlockchainAddress,
|
|
2178
|
+
namespace: BlockchainNamespace
|
|
2179
|
+
}).optional()
|
|
2180
|
+
});
|
|
2181
|
+
var OrganizationId = z.string();
|
|
2182
|
+
var WorkspaceId = z.string();
|
|
2183
|
+
var WorkflowId = UuidString;
|
|
2184
|
+
var CustomerId = UuidString;
|
|
2185
|
+
var IdentityWidgetAccessToken = z.object({
|
|
2186
|
+
sub: BlockchainAddress,
|
|
2187
|
+
blockchainNamespace: BlockchainNamespace,
|
|
2188
|
+
exp: z.number(),
|
|
2189
|
+
projectId: z.string(),
|
|
2190
|
+
organizationId: OrganizationId,
|
|
2191
|
+
customerId: UuidString,
|
|
2192
|
+
workspaceId: WorkspaceId,
|
|
2193
|
+
// cmsProjectId
|
|
2194
|
+
workflowId: WorkflowId.optional(),
|
|
2195
|
+
ipAddress: z.string().optional(),
|
|
2196
|
+
timestamp: z.number(),
|
|
2197
|
+
storeSharedVC: z["boolean"]().nullish(),
|
|
2198
|
+
verificationMode: VerificationMode,
|
|
2199
|
+
hosts: z.array(z.string())
|
|
2200
|
+
});
|
|
2201
|
+
|
|
2202
|
+
// represents an id of a consumer in the external system of our client
|
|
2203
|
+
// as it's an external id, it can be any string
|
|
2204
|
+
var ExternalCustomerId = z.string();
|
|
2205
|
+
var IdentityAppV2BaseJWT = z.object({
|
|
2206
|
+
sub: IdentityId,
|
|
2207
|
+
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
2208
|
+
flowType: z.union([z.literal(FlowType.Values.web3), z.literal(FlowType.Values.web2)]),
|
|
2209
|
+
exp: z.number(),
|
|
2210
|
+
customerId: UuidString,
|
|
2211
|
+
verificationMode: VerificationMode,
|
|
2212
|
+
organizationId: OrganizationId,
|
|
2213
|
+
workspaceId: WorkspaceId,
|
|
2214
|
+
workflowId: WorkflowId,
|
|
2215
|
+
ipAddress: z.string().optional(),
|
|
2216
|
+
timestamp: z.number(),
|
|
2217
|
+
iat: z.number(),
|
|
2218
|
+
hosts: z.array(z.string())
|
|
2219
|
+
});
|
|
2220
|
+
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
2221
|
+
flowType: z.literal(FlowType.Values.web3),
|
|
2222
|
+
blockchainAddress: BlockchainAddress,
|
|
2223
|
+
blockchainNamespace: BlockchainNamespace
|
|
2224
|
+
});
|
|
2225
|
+
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
2226
|
+
flowType: z.literal(FlowType.Values.web2),
|
|
2227
|
+
/**
|
|
2228
|
+
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
2229
|
+
* We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
|
|
2230
|
+
*/
|
|
2231
|
+
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
2232
|
+
});
|
|
2233
|
+
var IdentityWidgetAccessToken_NEW = z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
2234
|
+
var IdentityWidgetSessionToken = z.union([IdentityWidgetAccessToken, IdentityWidgetAccessToken_NEW]);
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* The parameters required to create a new configuration in web2 mode.
|
|
2238
|
+
*/
|
|
2239
|
+
|
|
2240
|
+
var Web2CreateSessionParams = z.object({
|
|
2241
|
+
workflowId: WorkflowId,
|
|
2242
|
+
// required in web2 because we don't have the wallet address
|
|
2243
|
+
externalCustomerId: ExternalCustomerId,
|
|
2244
|
+
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
2245
|
+
});
|
|
2246
|
+
|
|
2077
2247
|
var ScenarioTypes = ["ChallengeQuery", "OnChainZKP", "OffChainZKP"];
|
|
2078
2248
|
var ScenarioType = z["enum"](ScenarioTypes);
|
|
2079
2249
|
var ScenarioStatuses = ["UpToDate", "NoRulesAdded", "HasNotDeployment"];
|
|
@@ -2100,137 +2270,6 @@ var RuleResultStatuses = ["valid", "not-valid", "error", "unknown"];
|
|
|
2100
2270
|
var RuleResultStatus = z["enum"](RuleResultStatuses);
|
|
2101
2271
|
var RuleResultStatusLabels = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RuleResultStatus.Enum.valid, "Valid"), RuleResultStatus.Enum["not-valid"], "Not Valid"), RuleResultStatus.Enum.error, "Error"), RuleResultStatus.Enum.unknown, "Unknown");
|
|
2102
2272
|
|
|
2103
|
-
// Request
|
|
2104
|
-
|
|
2105
|
-
var MediaType = /*#__PURE__*/function (MediaType) {
|
|
2106
|
-
MediaType["ZKPMessage"] = "application/iden3-zkp-json";
|
|
2107
|
-
MediaType["PlainMessage"] = "application/iden3comm-plain-json";
|
|
2108
|
-
MediaType["SignedMessage"] = "application/iden3comm-signed-json";
|
|
2109
|
-
return MediaType;
|
|
2110
|
-
}({});
|
|
2111
|
-
var MediaTypePID = z.nativeEnum(MediaType);
|
|
2112
|
-
var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
|
|
2113
|
-
var CircuitId = z["enum"](CIRCUIT_IDS);
|
|
2114
|
-
var ZeroKnowledgeProofRequest = z.object({
|
|
2115
|
-
id: z.number(),
|
|
2116
|
-
circuitId: z.string(),
|
|
2117
|
-
optional: z["boolean"]().optional(),
|
|
2118
|
-
query: z.record(z.string(), z.any())
|
|
2119
|
-
});
|
|
2120
|
-
var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
|
|
2121
|
-
AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
|
|
2122
|
-
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
|
|
2123
|
-
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
|
|
2124
|
-
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
|
|
2125
|
-
CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
|
|
2126
|
-
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
|
|
2127
|
-
CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
|
|
2128
|
-
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
|
|
2129
|
-
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
|
|
2130
|
-
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
|
|
2131
|
-
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
|
|
2132
|
-
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
|
|
2133
|
-
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
|
|
2134
|
-
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
|
|
2135
|
-
CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
|
|
2136
|
-
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
|
|
2137
|
-
PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
|
|
2138
|
-
PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
|
|
2139
|
-
PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
|
|
2140
|
-
PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
|
|
2141
|
-
};
|
|
2142
|
-
var AuthorizationRequestMessageTypes = ["https://iden3-communication.io/authorization/1.0/request", "https://iden3-communication.io/authorization/1.0/response", "https://iden3-communication.io/credentials/1.0/issuance-request", "https://iden3-communication.io/credentials/1.0/fetch-request", "https://iden3-communication.io/credentials/1.0/offer", "https://iden3-communication.io/credentials/1.0/issuance-response", "https://iden3-communication.io/credentials/1.0/refresh", "https://iden3-communication.io/devices/1.0/registration", "https://iden3-communication.io/messages/1.0/fetch", "https://iden3-communication.io/proofs/1.0/request", "https://iden3-communication.io/proofs/1.0/response", "https://iden3-communication.io/revocation/1.0/request-status", "https://iden3-communication.io/revocation/1.0/status", "https://iden3-communication.io/proofs/1.0/contract-invoke-request", "https://iden3-communication.io/proofs/1.0/contract-invoke-response", "https://iden3-communication.io/credentials/1.0/onchain-offer", "https://iden3-communication.io/credentials/0.1/proposal-request", "https://iden3-communication.io/credentials/0.1/proposal", "https://iden3-communication.io/credentials/0.1/payment-request", "https://iden3-communication.io/credentials/0.1/payment"];
|
|
2143
|
-
var AuthorizationRequestMessageType = z["enum"](AuthorizationRequestMessageTypes);
|
|
2144
|
-
var AuthorizationRequestMessage = z.object({
|
|
2145
|
-
id: z.string(),
|
|
2146
|
-
typ: MediaTypePID.optional(),
|
|
2147
|
-
type: AuthorizationRequestMessageType,
|
|
2148
|
-
thid: z.string().optional(),
|
|
2149
|
-
body: z.object({
|
|
2150
|
-
callbackUrl: z.string(),
|
|
2151
|
-
reason: z.string().optional(),
|
|
2152
|
-
did_doc: z.any().optional(),
|
|
2153
|
-
message: z.string().optional(),
|
|
2154
|
-
scope: z.array(ZeroKnowledgeProofRequest)
|
|
2155
|
-
}),
|
|
2156
|
-
from: z.string(),
|
|
2157
|
-
to: z.string().optional()
|
|
2158
|
-
});
|
|
2159
|
-
// Response
|
|
2160
|
-
var ProofData = z.object({
|
|
2161
|
-
pi_a: z.array(z.string()),
|
|
2162
|
-
pi_b: z.array(z.array(z.string())),
|
|
2163
|
-
pi_c: z.array(z.string()),
|
|
2164
|
-
protocol: z.string(),
|
|
2165
|
-
curve: z.string().optional()
|
|
2166
|
-
});
|
|
2167
|
-
var ZeroKnowledgeProofResponse = z.object({
|
|
2168
|
-
id: z.number(),
|
|
2169
|
-
circuitId: z.string(),
|
|
2170
|
-
vp: z.any().optional(),
|
|
2171
|
-
proof: ProofData,
|
|
2172
|
-
pub_signals: z.array(z.string())
|
|
2173
|
-
});
|
|
2174
|
-
var AuthorizationResponseMessage = z.object({
|
|
2175
|
-
id: z.string(),
|
|
2176
|
-
typ: MediaTypePID.optional(),
|
|
2177
|
-
type: z.string(),
|
|
2178
|
-
thid: z.string().optional(),
|
|
2179
|
-
body: z.object({
|
|
2180
|
-
did_doc: z.any().optional(),
|
|
2181
|
-
message: z.string().optional(),
|
|
2182
|
-
scope: z.array(ZeroKnowledgeProofResponse)
|
|
2183
|
-
}),
|
|
2184
|
-
from: z.string().optional(),
|
|
2185
|
-
to: z.string().optional()
|
|
2186
|
-
});
|
|
2187
|
-
// Polygon Wallet
|
|
2188
|
-
var CredentialQrCodeData = z.object({
|
|
2189
|
-
id: z.string(),
|
|
2190
|
-
typ: z.string(),
|
|
2191
|
-
type: z.string(),
|
|
2192
|
-
thid: z.string(),
|
|
2193
|
-
body: z.object({
|
|
2194
|
-
url: z.string(),
|
|
2195
|
-
credentials: z.unknown()
|
|
2196
|
-
}),
|
|
2197
|
-
from: z.string(),
|
|
2198
|
-
to: z.string()
|
|
2199
|
-
});
|
|
2200
|
-
var AuthQrCodeData = z.object({
|
|
2201
|
-
id: z.string(),
|
|
2202
|
-
typ: z.string(),
|
|
2203
|
-
type: z.string(),
|
|
2204
|
-
thid: z.string(),
|
|
2205
|
-
body: z.object({
|
|
2206
|
-
callbackUrl: z.string(),
|
|
2207
|
-
reason: z.string(),
|
|
2208
|
-
scope: z.unknown()
|
|
2209
|
-
}),
|
|
2210
|
-
from: z.string()
|
|
2211
|
-
});
|
|
2212
|
-
var QrCodeLinkWithSchemaType = z.object({
|
|
2213
|
-
qrCodeLink: z.string().nullish(),
|
|
2214
|
-
schemaType: z.string().nullish()
|
|
2215
|
-
}).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
|
|
2216
|
-
function parseIden3Message(input) {
|
|
2217
|
-
var prefix = "request_uri=";
|
|
2218
|
-
var startIndex = input.indexOf(prefix);
|
|
2219
|
-
if (startIndex === -1) {
|
|
2220
|
-
throw new Error("Wrong request - request doesn't start with request_uri=");
|
|
2221
|
-
}
|
|
2222
|
-
return z.string().url().parse(input.substring(startIndex + prefix.length));
|
|
2223
|
-
}
|
|
2224
|
-
function parseSessionIdFromUrl(urlString) {
|
|
2225
|
-
var url = new URL(urlString);
|
|
2226
|
-
var params = new URLSearchParams(url.search);
|
|
2227
|
-
var sessionId = params.get("sessionID");
|
|
2228
|
-
if (!sessionId) {
|
|
2229
|
-
throw new Error("No Session Id found in callback url");
|
|
2230
|
-
}
|
|
2231
|
-
return sessionId;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
2273
|
function _arrayWithHoles(r) {
|
|
2235
2274
|
if (Array.isArray(r)) return r;
|
|
2236
2275
|
}
|
|
@@ -2251,9 +2290,10 @@ function zodEnumFromObjKeys(obj) {
|
|
|
2251
2290
|
return z["enum"]([firstKey].concat(_toConsumableArray(otherKeys)));
|
|
2252
2291
|
}
|
|
2253
2292
|
var AllCredentialAttributes = z.union([zodEnumFromObjKeys(IDInformationCredentialSubjectSchema.shape), zodEnumFromObjKeys(IDImageCredentialSubjectSchema.shape), zodEnumFromObjKeys(SelfieImageCredentialSubjectSchema.shape), zodEnumFromObjKeys(ProofOfResidenceCredentialSubjectSchema.shape)]);
|
|
2254
|
-
var AllCredentialValues = z.union([z["boolean"](), z.string(), z.number(), z.array(z.
|
|
2255
|
-
var
|
|
2256
|
-
var
|
|
2293
|
+
var AllCredentialValues = z.union([z["boolean"](), z.string(), z.number(), z.array(z.string()), z.array(z.number())]);
|
|
2294
|
+
var OPERATORS = ["$noop", "$eq", "$lt", "$lte", "$gt", "$gte", "$in", "$nin", "$ne"];
|
|
2295
|
+
var Operator = z["enum"](OPERATORS);
|
|
2296
|
+
var ZKPOperator = z["enum"](OPERATORS).exclude(["$lte", "$gte"]);
|
|
2257
2297
|
var operatorDisplayMap = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$eq, "="), Operator["enum"].$gt, ">"), Operator["enum"].$lt, "<"), Operator["enum"].$gte, ">="), Operator["enum"].$lte, "<="), Operator["enum"].$ne, "!="), Operator["enum"].$in, "in"), Operator["enum"].$nin, "not in"), Operator["enum"].$noop, "noop");
|
|
2258
2298
|
var ARRAY_OPERATORS = [Operator["enum"].$in, Operator["enum"].$nin, Operator["enum"].$eq, Operator["enum"].$ne];
|
|
2259
2299
|
var ArrayOperator = z["enum"](ARRAY_OPERATORS);
|
|
@@ -2415,6 +2455,234 @@ var DeleteQueryConfigurationResponse = z.object({
|
|
|
2415
2455
|
var QueryCredentialTypes = ["IDInformation", "IDImage", "SelfieImage", "ProofOfResidence"];
|
|
2416
2456
|
var QueryCredentialType = z["enum"](QueryCredentialTypes);
|
|
2417
2457
|
|
|
2458
|
+
// these are attributes are marked optional to be better presented by openapi.
|
|
2459
|
+
// this is hopefully fixed in the refined version of the schema
|
|
2460
|
+
var ChallengeQueryOperators = z.object({
|
|
2461
|
+
GREATER_THAN: z.optional(z.number()),
|
|
2462
|
+
LESS_THAN: z.optional(z.number()),
|
|
2463
|
+
EQUAL_TO: z.optional(z.union([z.string(), z.number(), z.array(z.never()), z.array(z.number()), z.array(z.string())])),
|
|
2464
|
+
NOT_EQUAL_TO: z.optional(z.union([z.string(), z.number(), z.array(z.never()), z.array(z.number()), z.array(z.string())])),
|
|
2465
|
+
LESS_THAN_OR_EQUAL_TO: z.optional(z.number()),
|
|
2466
|
+
GREATER_THAN_OR_EQUAL_TO: z.optional(z.number()),
|
|
2467
|
+
IN: z.optional(z.union([z.string(), z.array(z.number()), z.array(z.string())])),
|
|
2468
|
+
NOT_IN: z.optional(z.union([z.string(), z.array(z.number()), z.array(z.string())]))
|
|
2469
|
+
}).refine(function (data) {
|
|
2470
|
+
// make sure tht if an operator is defined, the value is also defined
|
|
2471
|
+
for (var operator in data) {
|
|
2472
|
+
var value = data[operator];
|
|
2473
|
+
if (value === undefined) {
|
|
2474
|
+
return false;
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
// make sure that only one operator is defined at a time
|
|
2478
|
+
var operators = Object.keys(data);
|
|
2479
|
+
if (operators.length > 1) {
|
|
2480
|
+
return false;
|
|
2481
|
+
}
|
|
2482
|
+
return true;
|
|
2483
|
+
});
|
|
2484
|
+
var CHALLENGE_QUERY_OPERATORS = ["GREATER_THAN", "LESS_THAN", "EQUAL_TO", "NOT_EQUAL_TO", "LESS_THAN_OR_EQUAL_TO", "GREATER_THAN_OR_EQUAL_TO", "IN", "NOT_IN"];
|
|
2485
|
+
var ChallengeQueryOperator = z["enum"](CHALLENGE_QUERY_OPERATORS);
|
|
2486
|
+
var OperatorToChallengeQueryOperator = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$noop, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$eq, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$lt, ChallengeQueryOperator["enum"].LESS_THAN), Operator["enum"].$lte, ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO), Operator["enum"].$gt, ChallengeQueryOperator["enum"].GREATER_THAN), Operator["enum"].$gte, ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO), Operator["enum"].$in, ChallengeQueryOperator["enum"].IN), Operator["enum"].$nin, ChallengeQueryOperator["enum"].NOT_IN), Operator["enum"].$ne, ChallengeQueryOperator["enum"].NOT_EQUAL_TO);
|
|
2487
|
+
var ChallengeQueryOperatorToOperator = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ChallengeQueryOperator["enum"].EQUAL_TO, Operator["enum"].$eq), ChallengeQueryOperator["enum"].LESS_THAN, Operator["enum"].$lt), ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO, Operator["enum"].$lte), ChallengeQueryOperator["enum"].GREATER_THAN, Operator["enum"].$gt), ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO, Operator["enum"].$gte), ChallengeQueryOperator["enum"].IN, Operator["enum"].$in), ChallengeQueryOperator["enum"].NOT_IN, Operator["enum"].$nin), ChallengeQueryOperator["enum"].NOT_EQUAL_TO, Operator["enum"].$ne);
|
|
2488
|
+
var ChallengeQuerySchema = z.object({
|
|
2489
|
+
id: z.string().optional(),
|
|
2490
|
+
query: QueryConfig
|
|
2491
|
+
});
|
|
2492
|
+
var ExecuteChallengeQueryInput = z.object({
|
|
2493
|
+
externalCustomerId: ExternalCustomerId.nullish(),
|
|
2494
|
+
address: BlockchainAddress.nullish(),
|
|
2495
|
+
credentials: z.array(GenericVerifiableCredentialSchema).min(1),
|
|
2496
|
+
challengeQuery: QueryConfig
|
|
2497
|
+
});
|
|
2498
|
+
var ExecuteChallengeQueryConfig = z.object({
|
|
2499
|
+
input: ExecuteChallengeQueryInput,
|
|
2500
|
+
executionId: z.string(),
|
|
2501
|
+
sessionId: z.string().nullish(),
|
|
2502
|
+
cmsObjectId: z.string(),
|
|
2503
|
+
cmsScenarioId: z.string().optional()
|
|
2504
|
+
});
|
|
2505
|
+
var OpaChallengeQueryResponse = z.object({
|
|
2506
|
+
result: z.object({
|
|
2507
|
+
is_valid: z["boolean"](),
|
|
2508
|
+
reasons: z.array(z.string())
|
|
2509
|
+
})
|
|
2510
|
+
});
|
|
2511
|
+
var ExecuteChallengeQueryResponse = OpaChallengeQueryResponse.extend({
|
|
2512
|
+
executionId: z.string()
|
|
2513
|
+
});
|
|
2514
|
+
var OPAChallengeQuery = z.record(ChallengeQueryOperators).refine(function (data) {
|
|
2515
|
+
// we are not validating the dotPath, only the operators
|
|
2516
|
+
for (var dotPath in data) {
|
|
2517
|
+
var operatorsData = data[dotPath];
|
|
2518
|
+
if (operatorsData === undefined) {
|
|
2519
|
+
return false;
|
|
2520
|
+
}
|
|
2521
|
+
// if the operator is not a valid operator, operatorsData will be {}
|
|
2522
|
+
var operators = Object.keys(operatorsData);
|
|
2523
|
+
if (operators.length === 0) {
|
|
2524
|
+
return false;
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
return true;
|
|
2528
|
+
}, {
|
|
2529
|
+
message: "Invalid operator found."
|
|
2530
|
+
});
|
|
2531
|
+
var OffChainZKPRuleResult = z.object({
|
|
2532
|
+
result: z.object({
|
|
2533
|
+
is_valid: z["boolean"](),
|
|
2534
|
+
query: QueryConfigSimplified,
|
|
2535
|
+
reasons: z.array(z.string())
|
|
2536
|
+
})
|
|
2537
|
+
});
|
|
2538
|
+
var SdkVerificationOutput = z.object({
|
|
2539
|
+
customerId: z.string().optional(),
|
|
2540
|
+
// for v1
|
|
2541
|
+
scenarioExecutionId: z.string().optional(),
|
|
2542
|
+
// for v1
|
|
2543
|
+
status: RuleResultStatus.optional(),
|
|
2544
|
+
// for v1
|
|
2545
|
+
results: z.array(ScenarioExecutionResponse).optional() // for v1,
|
|
2546
|
+
});
|
|
2547
|
+
var VerificationSessionStatuses = ["IN_PROGRESS", "COMPLETED", "NOT_STARTED"];
|
|
2548
|
+
var VerificationSessionStatus = z["enum"](VerificationSessionStatuses);
|
|
2549
|
+
var VerificationOutput = z.object({
|
|
2550
|
+
id: UuidString.nullable(),
|
|
2551
|
+
verificationResult: SdkVerificationOutput.nullable(),
|
|
2552
|
+
status: VerificationSessionStatus
|
|
2553
|
+
});
|
|
2554
|
+
|
|
2555
|
+
// Request
|
|
2556
|
+
|
|
2557
|
+
var MediaType = /*#__PURE__*/function (MediaType) {
|
|
2558
|
+
MediaType["ZKPMessage"] = "application/iden3-zkp-json";
|
|
2559
|
+
MediaType["PlainMessage"] = "application/iden3comm-plain-json";
|
|
2560
|
+
MediaType["SignedMessage"] = "application/iden3comm-signed-json";
|
|
2561
|
+
return MediaType;
|
|
2562
|
+
}({});
|
|
2563
|
+
var MediaTypePID = z.nativeEnum(MediaType);
|
|
2564
|
+
var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
|
|
2565
|
+
var CircuitId = z["enum"](CIRCUIT_IDS);
|
|
2566
|
+
var ZeroKnowledgeProofRequest = z.object({
|
|
2567
|
+
id: z.number(),
|
|
2568
|
+
circuitId: z.string(),
|
|
2569
|
+
optional: z["boolean"]().optional(),
|
|
2570
|
+
query: z.record(z.string(), z.any())
|
|
2571
|
+
});
|
|
2572
|
+
var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
|
|
2573
|
+
AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
|
|
2574
|
+
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
|
|
2575
|
+
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
|
|
2576
|
+
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
|
|
2577
|
+
CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
|
|
2578
|
+
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
|
|
2579
|
+
CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
|
|
2580
|
+
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
|
|
2581
|
+
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
|
|
2582
|
+
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
|
|
2583
|
+
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
|
|
2584
|
+
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
|
|
2585
|
+
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
|
|
2586
|
+
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
|
|
2587
|
+
CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
|
|
2588
|
+
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
|
|
2589
|
+
PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
|
|
2590
|
+
PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
|
|
2591
|
+
PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
|
|
2592
|
+
PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
|
|
2593
|
+
};
|
|
2594
|
+
var AuthorizationRequestMessageTypes = ["https://iden3-communication.io/authorization/1.0/request", "https://iden3-communication.io/authorization/1.0/response", "https://iden3-communication.io/credentials/1.0/issuance-request", "https://iden3-communication.io/credentials/1.0/fetch-request", "https://iden3-communication.io/credentials/1.0/offer", "https://iden3-communication.io/credentials/1.0/issuance-response", "https://iden3-communication.io/credentials/1.0/refresh", "https://iden3-communication.io/devices/1.0/registration", "https://iden3-communication.io/messages/1.0/fetch", "https://iden3-communication.io/proofs/1.0/request", "https://iden3-communication.io/proofs/1.0/response", "https://iden3-communication.io/revocation/1.0/request-status", "https://iden3-communication.io/revocation/1.0/status", "https://iden3-communication.io/proofs/1.0/contract-invoke-request", "https://iden3-communication.io/proofs/1.0/contract-invoke-response", "https://iden3-communication.io/credentials/1.0/onchain-offer", "https://iden3-communication.io/credentials/0.1/proposal-request", "https://iden3-communication.io/credentials/0.1/proposal", "https://iden3-communication.io/credentials/0.1/payment-request", "https://iden3-communication.io/credentials/0.1/payment"];
|
|
2595
|
+
var AuthorizationRequestMessageType = z["enum"](AuthorizationRequestMessageTypes);
|
|
2596
|
+
var AuthorizationRequestMessage = z.object({
|
|
2597
|
+
id: z.string(),
|
|
2598
|
+
typ: MediaTypePID.optional(),
|
|
2599
|
+
type: AuthorizationRequestMessageType,
|
|
2600
|
+
thid: z.string().optional(),
|
|
2601
|
+
body: z.object({
|
|
2602
|
+
callbackUrl: z.string(),
|
|
2603
|
+
reason: z.string().optional(),
|
|
2604
|
+
did_doc: z.any().optional(),
|
|
2605
|
+
message: z.string().optional(),
|
|
2606
|
+
scope: z.array(ZeroKnowledgeProofRequest)
|
|
2607
|
+
}),
|
|
2608
|
+
from: z.string(),
|
|
2609
|
+
to: z.string().optional()
|
|
2610
|
+
});
|
|
2611
|
+
// Response
|
|
2612
|
+
var ProofData = z.object({
|
|
2613
|
+
pi_a: z.array(z.string()),
|
|
2614
|
+
pi_b: z.array(z.array(z.string())),
|
|
2615
|
+
pi_c: z.array(z.string()),
|
|
2616
|
+
protocol: z.string(),
|
|
2617
|
+
curve: z.string().optional()
|
|
2618
|
+
});
|
|
2619
|
+
var ZeroKnowledgeProofResponse = z.object({
|
|
2620
|
+
id: z.number(),
|
|
2621
|
+
circuitId: z.string(),
|
|
2622
|
+
vp: z.any().optional(),
|
|
2623
|
+
proof: ProofData,
|
|
2624
|
+
pub_signals: z.array(z.string())
|
|
2625
|
+
});
|
|
2626
|
+
var AuthorizationResponseMessage = z.object({
|
|
2627
|
+
id: z.string(),
|
|
2628
|
+
typ: MediaTypePID.optional(),
|
|
2629
|
+
type: z.string(),
|
|
2630
|
+
thid: z.string().optional(),
|
|
2631
|
+
body: z.object({
|
|
2632
|
+
did_doc: z.any().optional(),
|
|
2633
|
+
message: z.string().optional(),
|
|
2634
|
+
scope: z.array(ZeroKnowledgeProofResponse)
|
|
2635
|
+
}),
|
|
2636
|
+
from: z.string().optional(),
|
|
2637
|
+
to: z.string().optional()
|
|
2638
|
+
});
|
|
2639
|
+
// Polygon Wallet
|
|
2640
|
+
var CredentialQrCodeData = z.object({
|
|
2641
|
+
id: z.string(),
|
|
2642
|
+
typ: z.string(),
|
|
2643
|
+
type: z.string(),
|
|
2644
|
+
thid: z.string(),
|
|
2645
|
+
body: z.object({
|
|
2646
|
+
url: z.string(),
|
|
2647
|
+
credentials: z.unknown()
|
|
2648
|
+
}),
|
|
2649
|
+
from: z.string(),
|
|
2650
|
+
to: z.string()
|
|
2651
|
+
});
|
|
2652
|
+
var AuthQrCodeData = z.object({
|
|
2653
|
+
id: z.string(),
|
|
2654
|
+
typ: z.string(),
|
|
2655
|
+
type: z.string(),
|
|
2656
|
+
thid: z.string(),
|
|
2657
|
+
body: z.object({
|
|
2658
|
+
callbackUrl: z.string(),
|
|
2659
|
+
reason: z.string(),
|
|
2660
|
+
scope: z.unknown()
|
|
2661
|
+
}),
|
|
2662
|
+
from: z.string()
|
|
2663
|
+
});
|
|
2664
|
+
var QrCodeLinkWithSchemaType = z.object({
|
|
2665
|
+
qrCodeLink: z.string().nullish(),
|
|
2666
|
+
schemaType: z.string().nullish()
|
|
2667
|
+
}).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
|
|
2668
|
+
function parseIden3Message(input) {
|
|
2669
|
+
var prefix = "request_uri=";
|
|
2670
|
+
var startIndex = input.indexOf(prefix);
|
|
2671
|
+
if (startIndex === -1) {
|
|
2672
|
+
throw new Error("Wrong request - request doesn't start with request_uri=");
|
|
2673
|
+
}
|
|
2674
|
+
return z.string().url().parse(input.substring(startIndex + prefix.length));
|
|
2675
|
+
}
|
|
2676
|
+
function parseSessionIdFromUrl(urlString) {
|
|
2677
|
+
var url = new URL(urlString);
|
|
2678
|
+
var params = new URLSearchParams(url.search);
|
|
2679
|
+
var sessionId = params.get("sessionID");
|
|
2680
|
+
if (!sessionId) {
|
|
2681
|
+
throw new Error("No Session Id found in callback url");
|
|
2682
|
+
}
|
|
2683
|
+
return sessionId;
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2418
2686
|
var ScenarioAuthorizationData = z.object({
|
|
2419
2687
|
executionId: UuidString,
|
|
2420
2688
|
sessionId: UuidString,
|
|
@@ -2426,15 +2694,11 @@ var ScenarioAuthorizationData = z.object({
|
|
|
2426
2694
|
requestMessage: AuthorizationRequestMessage,
|
|
2427
2695
|
responseMessage: AuthorizationResponseMessage.nullish(),
|
|
2428
2696
|
verificationError: z.string().nullish(),
|
|
2429
|
-
query: QueryConfigSimplified,
|
|
2697
|
+
query: QueryConfigSimplified.array(),
|
|
2430
2698
|
workflowSessionId: UuidString.optional()
|
|
2431
2699
|
});
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
scenarioExecutionId: z.string(),
|
|
2435
|
-
status: RuleResultStatus,
|
|
2436
|
-
results: z.array(ScenarioExecutionResponse)
|
|
2437
|
-
});
|
|
2700
|
+
// v1 sdk
|
|
2701
|
+
var SdkVerificationResponseSchema = SdkVerificationOutput;
|
|
2438
2702
|
var CloseScreenNotification = z.object({
|
|
2439
2703
|
type: z.literal("closeScreen"),
|
|
2440
2704
|
identifier: z.string(),
|
|
@@ -2535,260 +2799,6 @@ var HostResponseMessage = z.union([InitialDataResponse, SignatureResponse, Trans
|
|
|
2535
2799
|
* Exported types
|
|
2536
2800
|
*/
|
|
2537
2801
|
|
|
2538
|
-
var StoragePrefix = "storage";
|
|
2539
|
-
var IdentityPrefix = "identity";
|
|
2540
|
-
var EmailPrefix = "email";
|
|
2541
|
-
var WalletPrefix = "wallet";
|
|
2542
|
-
var AppPrefix = "app";
|
|
2543
|
-
var ChallengePrefix = "challenge";
|
|
2544
|
-
var TestPrefix = "test";
|
|
2545
|
-
var CustomerScreeningPrefix = "cstscr";
|
|
2546
|
-
var TagPrefix = "tag";
|
|
2547
|
-
|
|
2548
|
-
// TMS
|
|
2549
|
-
var TransactionPrefix = "tx";
|
|
2550
|
-
var TransactionReviewPrefix = "txrev";
|
|
2551
|
-
var TransactionPartiesPrefix = "txpar";
|
|
2552
|
-
var TransactionInfosPrefix = "txi";
|
|
2553
|
-
var TransactionExtractedInfosPrefix = "txei";
|
|
2554
|
-
var TransactionMethodsPrefix = "txm";
|
|
2555
|
-
var TransactionMethodExtractedInfosPrefix = "txmei";
|
|
2556
|
-
var InstitutionPrefix = "ins";
|
|
2557
|
-
var InstitutionExtractedInfosPrefix = "insei";
|
|
2558
|
-
|
|
2559
|
-
// ---
|
|
2560
|
-
|
|
2561
|
-
// TMS
|
|
2562
|
-
|
|
2563
|
-
// ---
|
|
2564
|
-
|
|
2565
|
-
// TMS
|
|
2566
|
-
|
|
2567
|
-
var createBrandedSchemaId = function createBrandedSchemaId(brand) {
|
|
2568
|
-
return z.custom(function (val) {
|
|
2569
|
-
if (typeof val !== "string") return false;
|
|
2570
|
-
return val.startsWith(brand);
|
|
2571
|
-
}, {
|
|
2572
|
-
message: "Invalid ".concat(brand, " id")
|
|
2573
|
-
});
|
|
2574
|
-
};
|
|
2575
|
-
|
|
2576
|
-
// ---
|
|
2577
|
-
|
|
2578
|
-
var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
|
|
2579
|
-
var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
|
|
2580
|
-
var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
|
|
2581
|
-
var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
|
|
2582
|
-
var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
|
|
2583
|
-
var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
|
|
2584
|
-
var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
|
|
2585
|
-
var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
|
|
2586
|
-
var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
|
|
2587
|
-
|
|
2588
|
-
// TMS
|
|
2589
|
-
var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
|
|
2590
|
-
var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
|
|
2591
|
-
var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
|
|
2592
|
-
var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
|
|
2593
|
-
var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
|
|
2594
|
-
var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
|
|
2595
|
-
var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
|
|
2596
|
-
var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
|
|
2597
|
-
var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
|
|
2598
|
-
var generateId = function generateId(type) {
|
|
2599
|
-
return "".concat(type, "_").concat(nanoid(12));
|
|
2600
|
-
};
|
|
2601
|
-
|
|
2602
|
-
var FLOW_TYPES = ["web2", "web3"];
|
|
2603
|
-
var FlowType = z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2604
|
-
var VerificationModes = ["full_verification", "sandbox"];
|
|
2605
|
-
var VerificationMode = z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2606
|
-
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2607
|
-
var IdentityDocumentCountryListOption = z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2608
|
-
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2609
|
-
var IdentityDocumentOptionsType = z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2610
|
-
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2611
|
-
var PersonalInformationFieldsIdentityDocuments = z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2612
|
-
var Identifier = z.union([z.literal("verification"), z.literal("management")]);
|
|
2613
|
-
|
|
2614
|
-
/**
|
|
2615
|
-
* Represents the additional data that can be attached to a customer
|
|
2616
|
-
*/
|
|
2617
|
-
|
|
2618
|
-
var AdditionalCustomerInformationParams = z.object({
|
|
2619
|
-
email: z.string().email().optional(),
|
|
2620
|
-
phone: z.string().min(4).optional(),
|
|
2621
|
-
wallet: z.object({
|
|
2622
|
-
address: BlockchainAddress,
|
|
2623
|
-
namespace: BlockchainNamespace
|
|
2624
|
-
}).optional()
|
|
2625
|
-
});
|
|
2626
|
-
var OrganizationId = z.string();
|
|
2627
|
-
var WorkspaceId = z.string();
|
|
2628
|
-
var WorkflowId = UuidString;
|
|
2629
|
-
var IdentityWidgetAccessToken = z.object({
|
|
2630
|
-
sub: BlockchainAddress,
|
|
2631
|
-
blockchainNamespace: BlockchainNamespace,
|
|
2632
|
-
exp: z.number(),
|
|
2633
|
-
projectId: z.string(),
|
|
2634
|
-
organizationId: OrganizationId,
|
|
2635
|
-
customerId: UuidString,
|
|
2636
|
-
workspaceId: WorkspaceId,
|
|
2637
|
-
// cmsProjectId
|
|
2638
|
-
workflowId: WorkflowId.optional(),
|
|
2639
|
-
ipAddress: z.string().optional(),
|
|
2640
|
-
timestamp: z.number(),
|
|
2641
|
-
storeSharedVC: z["boolean"]().nullish(),
|
|
2642
|
-
verificationMode: VerificationMode,
|
|
2643
|
-
hosts: z.array(z.string())
|
|
2644
|
-
});
|
|
2645
|
-
|
|
2646
|
-
// represents an id of a consumer in the external system of our client
|
|
2647
|
-
// as it's an external id, it can be any string
|
|
2648
|
-
var ExternalCustomerId = z.string();
|
|
2649
|
-
var IdentityAppV2BaseJWT = z.object({
|
|
2650
|
-
sub: IdentityId,
|
|
2651
|
-
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
2652
|
-
flowType: z.union([z.literal(FlowType.Values.web3), z.literal(FlowType.Values.web2)]),
|
|
2653
|
-
exp: z.number(),
|
|
2654
|
-
customerId: UuidString,
|
|
2655
|
-
verificationMode: VerificationMode,
|
|
2656
|
-
organizationId: OrganizationId,
|
|
2657
|
-
workspaceId: WorkspaceId,
|
|
2658
|
-
workflowId: WorkflowId,
|
|
2659
|
-
ipAddress: z.string().optional(),
|
|
2660
|
-
timestamp: z.number(),
|
|
2661
|
-
iat: z.number(),
|
|
2662
|
-
hosts: z.array(z.string())
|
|
2663
|
-
});
|
|
2664
|
-
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
2665
|
-
flowType: z.literal(FlowType.Values.web3),
|
|
2666
|
-
blockchainAddress: BlockchainAddress,
|
|
2667
|
-
blockchainNamespace: BlockchainNamespace
|
|
2668
|
-
});
|
|
2669
|
-
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
2670
|
-
flowType: z.literal(FlowType.Values.web2),
|
|
2671
|
-
/**
|
|
2672
|
-
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
2673
|
-
* We only have this field in web2 mode because most of the services are relying on the blockchain address to be present in the JWT
|
|
2674
|
-
*/
|
|
2675
|
-
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
2676
|
-
});
|
|
2677
|
-
var IdentityWidgetAccessToken_NEW = z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
2678
|
-
var IdentityWidgetSessionToken = z.union([IdentityWidgetAccessToken, IdentityWidgetAccessToken_NEW]);
|
|
2679
|
-
|
|
2680
|
-
/**
|
|
2681
|
-
* The parameters required to create a new configuration in web2 mode.
|
|
2682
|
-
*/
|
|
2683
|
-
|
|
2684
|
-
var Web2CreateSessionParams = z.object({
|
|
2685
|
-
workflowId: WorkflowId,
|
|
2686
|
-
// required in web2 because we don't have the wallet address
|
|
2687
|
-
externalCustomerId: ExternalCustomerId,
|
|
2688
|
-
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
2689
|
-
});
|
|
2690
|
-
|
|
2691
|
-
// these are attributes are marked optional to be better presented by openapi.
|
|
2692
|
-
// this is hopefully fixed in the refined version of the schema
|
|
2693
|
-
var ChallengeQueryOperators = z.object({
|
|
2694
|
-
GREATER_THAN: z.optional(z.number()),
|
|
2695
|
-
LESS_THAN: z.optional(z.number()),
|
|
2696
|
-
EQUAL_TO: z.optional(z.union([z.string(), z.number(), z.array(z.never()), z.array(z.number()), z.array(z.string())])),
|
|
2697
|
-
NOT_EQUAL_TO: z.optional(z.union([z.string(), z.number(), z.array(z.never()), z.array(z.number()), z.array(z.string())])),
|
|
2698
|
-
LESS_THAN_OR_EQUAL_TO: z.optional(z.number()),
|
|
2699
|
-
GREATER_THAN_OR_EQUAL_TO: z.optional(z.number()),
|
|
2700
|
-
IN: z.optional(z.union([z.string(), z.array(z.number()), z.array(z.string())])),
|
|
2701
|
-
NOT_IN: z.optional(z.union([z.string(), z.array(z.number()), z.array(z.string())]))
|
|
2702
|
-
}).refine(function (data) {
|
|
2703
|
-
// make sure tht if an operator is defined, the value is also defined
|
|
2704
|
-
for (var operator in data) {
|
|
2705
|
-
var value = data[operator];
|
|
2706
|
-
if (value === undefined) {
|
|
2707
|
-
return false;
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
// make sure that only one operator is defined at a time
|
|
2711
|
-
var operators = Object.keys(data);
|
|
2712
|
-
if (operators.length > 1) {
|
|
2713
|
-
return false;
|
|
2714
|
-
}
|
|
2715
|
-
return true;
|
|
2716
|
-
});
|
|
2717
|
-
var ChallengeQueryOperator = z["enum"](["GREATER_THAN", "LESS_THAN", "EQUAL_TO", "NOT_EQUAL_TO", "LESS_THAN_OR_EQUAL_TO", "GREATER_THAN_OR_EQUAL_TO", "IN", "NOT_IN"]);
|
|
2718
|
-
var OperatorToChallengeQueryOperator = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, Operator["enum"].$noop, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$eq, ChallengeQueryOperator["enum"].EQUAL_TO), Operator["enum"].$lt, ChallengeQueryOperator["enum"].LESS_THAN), Operator["enum"].$lte, ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO), Operator["enum"].$gt, ChallengeQueryOperator["enum"].GREATER_THAN), Operator["enum"].$gte, ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO), Operator["enum"].$in, ChallengeQueryOperator["enum"].IN), Operator["enum"].$nin, ChallengeQueryOperator["enum"].NOT_IN), Operator["enum"].$ne, ChallengeQueryOperator["enum"].NOT_EQUAL_TO);
|
|
2719
|
-
var ChallengeQueryOperatorToOperator = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ChallengeQueryOperator["enum"].EQUAL_TO, Operator["enum"].$eq), ChallengeQueryOperator["enum"].LESS_THAN, Operator["enum"].$lt), ChallengeQueryOperator["enum"].LESS_THAN_OR_EQUAL_TO, Operator["enum"].$lte), ChallengeQueryOperator["enum"].GREATER_THAN, Operator["enum"].$gt), ChallengeQueryOperator["enum"].GREATER_THAN_OR_EQUAL_TO, Operator["enum"].$gte), ChallengeQueryOperator["enum"].IN, Operator["enum"].$in), ChallengeQueryOperator["enum"].NOT_IN, Operator["enum"].$nin), ChallengeQueryOperator["enum"].NOT_EQUAL_TO, Operator["enum"].$ne);
|
|
2720
|
-
var ChallengeQuerySchema = z.object({
|
|
2721
|
-
id: z.string().optional(),
|
|
2722
|
-
query: QueryConfig
|
|
2723
|
-
});
|
|
2724
|
-
var ExecuteChallengeQueryInput = z.object({
|
|
2725
|
-
externalCustomerId: ExternalCustomerId.nullish(),
|
|
2726
|
-
address: BlockchainAddress.nullish(),
|
|
2727
|
-
credentials: z.array(GenericVerifiableCredentialSchema).min(1),
|
|
2728
|
-
challengeQuery: QueryConfig
|
|
2729
|
-
});
|
|
2730
|
-
var ExecuteChallengeQueryConfig = z.object({
|
|
2731
|
-
input: ExecuteChallengeQueryInput,
|
|
2732
|
-
executionId: z.string(),
|
|
2733
|
-
sessionId: z.string().nullish(),
|
|
2734
|
-
cmsObjectId: z.string(),
|
|
2735
|
-
cmsScenarioId: z.string().optional()
|
|
2736
|
-
});
|
|
2737
|
-
var OpaChallengeQueryResponse = z.object({
|
|
2738
|
-
result: z.object({
|
|
2739
|
-
is_valid: z["boolean"](),
|
|
2740
|
-
reasons: z.array(z.string())
|
|
2741
|
-
})
|
|
2742
|
-
});
|
|
2743
|
-
var ExecuteChallengeQueryResponse = OpaChallengeQueryResponse.extend({
|
|
2744
|
-
executionId: z.string()
|
|
2745
|
-
});
|
|
2746
|
-
var OPAChallengeQuery = z.record(ChallengeQueryOperators).refine(function (data) {
|
|
2747
|
-
// we are not validating the dotPath, only the operators
|
|
2748
|
-
for (var dotPath in data) {
|
|
2749
|
-
var operatorsData = data[dotPath];
|
|
2750
|
-
if (operatorsData === undefined) {
|
|
2751
|
-
return false;
|
|
2752
|
-
}
|
|
2753
|
-
// if the operator is not a valid operator, operatorsData will be {}
|
|
2754
|
-
var operators = Object.keys(operatorsData);
|
|
2755
|
-
if (operators.length === 0) {
|
|
2756
|
-
return false;
|
|
2757
|
-
}
|
|
2758
|
-
}
|
|
2759
|
-
return true;
|
|
2760
|
-
}, {
|
|
2761
|
-
message: "Invalid operator found."
|
|
2762
|
-
});
|
|
2763
|
-
var OnChainRuleResult = z.object({
|
|
2764
|
-
result: z.object({
|
|
2765
|
-
is_valid: z["boolean"](),
|
|
2766
|
-
txHash: TxHash,
|
|
2767
|
-
scenarioVerifierAddress: AddressSchema,
|
|
2768
|
-
reasons: z.array(z.string())
|
|
2769
|
-
})
|
|
2770
|
-
});
|
|
2771
|
-
var OffChainZKPRuleResult = z.object({
|
|
2772
|
-
result: z.object({
|
|
2773
|
-
is_valid: z["boolean"](),
|
|
2774
|
-
query: QueryConfigSimplified,
|
|
2775
|
-
reasons: z.array(z.string())
|
|
2776
|
-
})
|
|
2777
|
-
});
|
|
2778
|
-
var SdkVerificationOutput = z.object({
|
|
2779
|
-
customerId: z.string(),
|
|
2780
|
-
scenarioExecutionId: z.string(),
|
|
2781
|
-
status: RuleResultStatus,
|
|
2782
|
-
results: z.array(ScenarioExecutionResponse)
|
|
2783
|
-
});
|
|
2784
|
-
var VerificationSessionStatuses = ["IN_PROGRESS", "COMPLETED", "NOT_STARTED"];
|
|
2785
|
-
var VerificationSessionStatus = z["enum"](VerificationSessionStatuses);
|
|
2786
|
-
var VerificationOutput = z.object({
|
|
2787
|
-
id: UuidString.nullable(),
|
|
2788
|
-
verificationResult: SdkVerificationOutput.nullable(),
|
|
2789
|
-
status: VerificationSessionStatus
|
|
2790
|
-
});
|
|
2791
|
-
|
|
2792
2802
|
var ComplianceImplementationStepsInput = z.object({
|
|
2793
2803
|
identityChecks: z["boolean"]().nullish(),
|
|
2794
2804
|
configureIdentity: z["boolean"]().nullish(),
|
|
@@ -3329,4 +3339,4 @@ var VerifyWalletChallengeRequest = WalletSignatureResponse.and(z.object({
|
|
|
3329
3339
|
blockchainId: BlockchainId.optional()
|
|
3330
3340
|
}));
|
|
3331
3341
|
|
|
3332
|
-
export { TezosSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, TxHash as D, EVM_BLOCK_TIME as E, EIP155Signature as F, FunctionCallData as G, shortAddress as H, AptosAddress as I, AptosSignature as J, StarknetAddress as K, StarknetSignature as L, PolkadotAddress as M, NEXERA_EVM_CHAINS as N, PolkadotSignature as O, POLYGON_NETWORK_NAMES as P, CosmosAddress as Q, CosmosSignature as R, StarknetChainId as S, TezosChainId as T, TezosImplicitAddress as U, TezosContractAddress as V, TezosAddress as W, TezosEntrypointName as X, EdSignature as Y, SpSignature as Z, P2Signature as _, NEXERA_TEZOS_CHAINS as a, createBrandedSchemaId as a$, CardanoAddress as a0, CardanoSignature as a1, BlockchainAddress as a2, BlockchainSignature as a3, BLOCKCHAIN_NAMESPACES as a4, BlockchainNamespace as a5, BLOCKCHAIN_NAMESPACES_NAMES as a6, DISPLAYED_LOCKCHAIN_NAMESPACES as a7, DisplayedBlockchainNamespace as a8, BLOCKCHAIN_NAME_TO_NAMESPACE as a9, CustomerOnboardingLevel as aA, CustomerStatuses as aB, CustomerStatus as aC, BasicCustomerContactInformation as aD, CUSTOMERS_CHARTS as aE, CustomersChartType as aF, CUSTOMER_TABLE_COLUMNS as aG, CustomerTableColumn as aH, CUSTOMER_AUTOMATION_REASONS as aI, StoragePrefix as aJ, IdentityPrefix as aK, EmailPrefix as aL, WalletPrefix as aM, AppPrefix as aN, ChallengePrefix as aO, TestPrefix as aP, CustomerScreeningPrefix as aQ, TagPrefix as aR, TransactionPrefix as aS, TransactionReviewPrefix as aT, TransactionPartiesPrefix as aU, TransactionInfosPrefix as aV, TransactionExtractedInfosPrefix as aW, TransactionMethodsPrefix as aX, TransactionMethodExtractedInfosPrefix as aY, InstitutionPrefix as aZ, InstitutionExtractedInfosPrefix as a_, BLOCKCHAIN_NAMESPACE_TO_NAME as aa, coerceBoolean as ab, ENVS as ac, EnvironmentSchema as ad, UuidString as ae, OtpCode as af, ZodParse as ag, shortBlockchainAddress as ah, PUBLIC_SERVICES_SCHEMA_MAP as ai, IpAddress as aj, ISO3CountryCode as ak, ALPHA_2_COUNTRIES as al, Alpha2Country as am, countryISO3toISO2Mapping as an, countryISO2toISO3Mapping as ao, isoCountriesNameFromISO2 as ap, parseISO3CountryCode as aq, RiskScoreTypes as ar, RiskScoreType as as, CustomerTypes as at, CustomerType as au, KycOnboardingLevels as av, KycOnboardingLevel as aw, KybOnboardingLevels as ax, KybOnboardingLevel as ay, CustomerOnboardingLevels as az, NEXERA_COSMOS_CHAINS as b, ScenarioType as b$, StorageId as b0, IdentityId as b1, EmailId as b2, WalletId as b3, AppId as b4, ChallengeId as b5, TestId as b6, CustomerScreeningId as b7, TagId as b8, TransactionId as b9, TransactionData as bA, SendTransactionRequest as bB, IdentityRequestMessage as bC, AVAILABLE_FLOWS as bD, AvailableFlow as bE, DataAvailableOnStart as bF, InitialDataResponse as bG, SignatureResponse as bH, TransactionResponse as bI, HostResponseMessage as bJ, ChallengeQueryOperators as bK, ChallengeQueryOperator as bL, OperatorToChallengeQueryOperator as bM, ChallengeQueryOperatorToOperator as bN, ChallengeQuerySchema as bO, ExecuteChallengeQueryInput as bP, ExecuteChallengeQueryConfig as bQ, OpaChallengeQueryResponse as bR, ExecuteChallengeQueryResponse as bS, OPAChallengeQuery as bT, OnChainRuleResult as bU, OffChainZKPRuleResult as bV, SdkVerificationOutput as bW, VerificationSessionStatuses as bX, VerificationSessionStatus as bY, VerificationOutput as bZ, ScenarioTypes as b_, TransactionReviewId as ba, TransactionPartiesId as bb, TransactionInfosId as bc, TransactionExtractedInfosId as bd, TransactionMethodsId as be, TransactionMethodExtractedInfosId as bf, InstitutionId as bg, InstitutionExtractedInfosId as bh, generateId as bi, ScenarioAuthorizationData as bj, SdkVerificationResponseSchema as bk, CloseScreenNotification as bl, KycCompletionData as bm, KycCompletionNotification as bn, RuleEngineScenarioExecutionData as bo, OffChainScenarioExecutionData as bp, OnChainScenarioExecutionData as bq, ScenarioExecutionData as br, ScenarioExecutionNotification as bs, IsVerifiedNotification as bt, PolygonIdInitialized as bu, OcvSdkInitialized as bv, StartCompletedNotification as bw, IdentityNotificationMessage as bx, InitialDataRequest as by, SignatureRequest as bz, NEXERA_STARKNET_CHAINS as c, ARRAY_OPERATORS as c$, ScenarioStatuses as c0, ScenarioStatus as c1, RuleEngineResponse as c2, ScenarioExecutionResponse as c3, RuleResultStatuses as c4, RuleResultStatus as c5, RuleResultStatusLabels as c6, ComplianceImplementationStepsInput as c7, SimplifiedCredential as c8, GetCredentialsRequest as c9, IdentityWallet as cA, HostMessage as cB, IdentityMessage as cC, RequiredDataRowSchema as cD, RequiredVerificationData as cE, MediaType as cF, MediaTypePID as cG, CIRCUIT_IDS as cH, CircuitId as cI, ZeroKnowledgeProofRequest as cJ, AUTHORIZATION_REQUEST_MESSAGE_TYPES as cK, AuthorizationRequestMessageTypes as cL, AuthorizationRequestMessageType as cM, AuthorizationRequestMessage as cN, ProofData as cO, ZeroKnowledgeProofResponse as cP, AuthorizationResponseMessage as cQ, CredentialQrCodeData as cR, AuthQrCodeData as cS, QrCodeLinkWithSchemaType as cT, parseIden3Message as cU, parseSessionIdFromUrl as cV, AllCredentialAttributes as cW, AllCredentialValues as cX, Operator as cY, ZKPOperator as cZ, operatorDisplayMap as c_, GetCredentialsResponse as ca, PolygonIdRequestData as cb, PolygonIdRequest as cc, PolygonIdResponseData as cd, PolygonIdResponse as ce, StartFlowRequest as cf, IsVerifiedRequest as cg, IsVerifiedResponse as ch, GetTxAuthSigRequest as ci, GetTxAuthSigResponse as cj, GetTxAuthSigRequestTezos as ck, GetTxAuthSigResponseTezos as cl, HostRequestMessage as cm, IdentityResponseMessage as cn, GenerateWalletChallengeRequest as co, AuthSession as cp, AuthSessionData as cq, ChallengeResponse as cr, WalletSignResponse as cs, TxAuthDataSignatureGatingRequest as ct, GetCustomerStatusRequest as cu, IdentitySdkMessage as cv, IdentitySdkMessageWithIdentifier as cw, TxAuthDataSignatureResponse as cx, GetCustomerStatusResponse as cy, IdentityAppMessage as cz, NEXERA_EVM_CHAIN_NAMES as d, IdentityDocumentCountryListOption as d$, ArrayOperator as d0, STRING_OPERATORS as d1, StringOperator as d2, NUMERIC_OPERATORS as d3, NumericOperator as d4, BOOLEAN_OPERATORS as d5, BooleanOperator as d6, DATE_OPERATORS as d7, DateOperator as d8, SUPPORTED_TYPES as d9, GetTezosTxAuthDataSignatureResponse as dA, ExtendedTxAuthInput as dB, ExtendedTezosTxAuthInput as dC, AnyTxAuthInput as dD, ExtendedTxAuthDataSignatureResponse as dE, ExtendedTezosTxAuthDataSignatureResponse as dF, AnyTxAuthDataSignatureResponse as dG, ZKPRequest as dH, ZKPRequestFromZKVerifier as dI, OffChainZKP as dJ, CreateAuthRequestProps as dK, CreateZKProofRequestProps as dL, AllScenarioExecutionAuthorizationData as dM, ProjectAuthorizationData as dN, OnChainZKP as dO, OnChainZKPFromNexeraID as dP, OnChainZKPScenarioFromCms as dQ, OnChainZKPPayload as dR, SCENARIO_AUTHORIZATION_STATUSES as dS, ScenarioAuthorizationStatus as dT, WalletSignatureResponse as dU, VerifyWalletChallengeRequest as dV, FLOW_TYPES as dW, FlowType as dX, VerificationModes as dY, VerificationMode as dZ, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as d_, SupportedType as da, SupportedTypes as db, IDInformation as dc, QueryConfig as dd, QueryType as de, QueryConfigSimplified as df, PartialQueryConfigSimplified as dg, QueryConfigSimplifiedParsed as dh, QueryConfiguration as di, NonParsedQueryConfiguration as dj, CreateQueryConfigurationInput as dk, CreateQueryConfigurationResponse as dl, UpdateQueryConfigurationInput as dm, UpdateQueryConfigurationResponse as dn, DeleteQueryConfigurationInput as dp, DeleteQueryConfigurationResponse as dq, QueryCredentialTypes as dr, QueryCredentialType as ds, TxAuthInput as dt, ApiTxAuthInput as du, TxSignatureResponse as dv, GetTxAuthDataSignatureResponse as dw, TezosTxAuthInput as dx, ApiTezosTxAuthInput as dy, TezosTxSignatureResponse as dz, NEXERA_EVM_CHAIN_NAMES_LIST as e, IDENTITY_DOCUMENT_OPTIONS as e0, IdentityDocumentOptionsType as e1, PERSONAL_INFORMATION_FIELDS as e2, PersonalInformationFieldsIdentityDocuments as e3, Identifier as e4, AdditionalCustomerInformationParams as e5, OrganizationId as e6, WorkspaceId as e7, WorkflowId as e8, IdentityWidgetAccessToken as e9, CredentialMediaType as eA, _toConsumableArray as eB, _toArray as eC, _arrayWithHoles as eD, _unsupportedIterableToArray as eE, _nonIterableRest as eF, _defineProperty as eG, ExternalCustomerId as ea, IdentityAppV2Web3JWT as eb, IdentityAppV2Web2JWT as ec, IdentityWidgetAccessToken_NEW as ed, IdentityWidgetSessionToken as ee, Web2CreateSessionParams as ef, ID3CredentialSubjectSchema as eg, IDScanCredentialSubjectSchema as eh, IDScanPassportCredentialSubjectSchema as ei, IDScanSelfieCredentialSubjectSchema as ej, OLD_IDImageCredentialSubjectSchema as ek, OLD_IDInformationCredentialSubjectSchema as el, OLD_ProofOfResidenceCredentialSubjectSchema as em, OLD_SelfieImageCredentialSubjectSchema as en, OLD_AMLScreeningsResultsCredentialSubjectSchema as eo, IDInformationCredentialSubjectSchema as ep, IDImageCredentialSubjectSchema as eq, SelfieImageCredentialSubjectSchema as er, ProofOfResidenceCredentialSubjectSchema as es, GenericVerifiableCredentialSchema as et, CredentialSchemas as eu, CredentialNames as ev, NexeraCredentialType as ew, getCredentialName as ex, CredentialType as ey, VerifiableCredential as ez, NEXERA_CHAIN_VALUES as f, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as g, EvmChainId as h, PolygonNetworkNames as i, NEXERA_TEZOS_CHAIN_NAMES as j, NEXERA_TEZOS_CHAIN_NAMES_LIST as k, NEXERA_TEZOS_CHAIN_VALUES as l, ACTIVE_TEZOS_CHAIN_VALUES as m, COSMOS_CHAIN_NAMES as n, COSMOS_CHAIN_NAMES_LIST as o, COSMOS_CHAIN_VALUES as p, ACTIVE_COSMOS_CHAIN_VALUES as q, CosmosChainId as r, NEXERA_STARKNET_CHAIN_NAMES as s, NEXERA_STARKNET_CHAIN_VALUES as t, NEXERA_ACTIVE_STARKNET_CHAIN_VALUES as u, isValidAddress as v, String0x as w, PrivateKey as x, PublicKey as y, AddressSchema as z };
|
|
3342
|
+
export { TezosSignature as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, CredentialTypes as C, TxHash as D, EVM_BLOCK_TIME as E, EIP155Signature as F, FunctionCallData as G, shortAddress as H, AptosAddress as I, AptosSignature as J, StarknetAddress as K, StarknetSignature as L, PolkadotAddress as M, NEXERA_EVM_CHAINS as N, PolkadotSignature as O, POLYGON_NETWORK_NAMES as P, CosmosAddress as Q, CosmosSignature as R, StarknetChainId as S, TezosChainId as T, TezosImplicitAddress as U, TezosContractAddress as V, TezosAddress as W, TezosEntrypointName as X, EdSignature as Y, SpSignature as Z, P2Signature as _, NEXERA_TEZOS_CHAINS as a, ScenarioPrefix as a$, CardanoAddress as a0, CardanoSignature as a1, BlockchainAddress as a2, BlockchainSignature as a3, BLOCKCHAIN_NAMESPACES as a4, BlockchainNamespace as a5, BLOCKCHAIN_NAMESPACES_NAMES as a6, DISPLAYED_LOCKCHAIN_NAMESPACES as a7, DisplayedBlockchainNamespace as a8, BLOCKCHAIN_NAME_TO_NAMESPACE as a9, CustomerOnboardingLevel as aA, CustomerStatuses as aB, CustomerStatus as aC, BasicCustomerContactInformation as aD, CUSTOMERS_CHARTS as aE, CustomersChartType as aF, CUSTOMER_TABLE_COLUMNS as aG, CustomerTableColumn as aH, CUSTOMER_AUTOMATION_REASONS as aI, StoragePrefix as aJ, IdentityPrefix as aK, EmailPrefix as aL, WalletPrefix as aM, AppPrefix as aN, ChallengePrefix as aO, TestPrefix as aP, CustomerScreeningPrefix as aQ, TagPrefix as aR, TransactionPrefix as aS, TransactionReviewPrefix as aT, TransactionPartiesPrefix as aU, TransactionInfosPrefix as aV, TransactionExtractedInfosPrefix as aW, TransactionMethodsPrefix as aX, TransactionMethodExtractedInfosPrefix as aY, InstitutionPrefix as aZ, InstitutionExtractedInfosPrefix as a_, BLOCKCHAIN_NAMESPACE_TO_NAME as aa, coerceBoolean as ab, ENVS as ac, EnvironmentSchema as ad, UuidString as ae, OtpCode as af, ZodParse as ag, shortBlockchainAddress as ah, PUBLIC_SERVICES_SCHEMA_MAP as ai, IpAddress as aj, ISO3CountryCode as ak, ALPHA_2_COUNTRIES as al, Alpha2Country as am, countryISO3toISO2Mapping as an, countryISO2toISO3Mapping as ao, isoCountriesNameFromISO2 as ap, parseISO3CountryCode as aq, RiskScoreTypes as ar, RiskScoreType as as, CustomerTypes as at, CustomerType as au, KycOnboardingLevels as av, KycOnboardingLevel as aw, KybOnboardingLevels as ax, KybOnboardingLevel as ay, CustomerOnboardingLevels as az, NEXERA_COSMOS_CHAINS as b, OpaChallengeQueryResponse as b$, ListPrefix as b0, QueryPrefix as b1, ActionPrefix as b2, createBrandedSchemaId as b3, StorageId as b4, IdentityId as b5, EmailId as b6, WalletId as b7, AppId as b8, ChallengeId as b9, ScenarioExecutionData as bA, ScenarioExecutionNotification as bB, IsVerifiedNotification as bC, PolygonIdInitialized as bD, OcvSdkInitialized as bE, StartCompletedNotification as bF, IdentityNotificationMessage as bG, InitialDataRequest as bH, SignatureRequest as bI, TransactionData as bJ, SendTransactionRequest as bK, IdentityRequestMessage as bL, AVAILABLE_FLOWS as bM, AvailableFlow as bN, DataAvailableOnStart as bO, InitialDataResponse as bP, SignatureResponse as bQ, TransactionResponse as bR, HostResponseMessage as bS, ChallengeQueryOperators as bT, CHALLENGE_QUERY_OPERATORS as bU, ChallengeQueryOperator as bV, OperatorToChallengeQueryOperator as bW, ChallengeQueryOperatorToOperator as bX, ChallengeQuerySchema as bY, ExecuteChallengeQueryInput as bZ, ExecuteChallengeQueryConfig as b_, TestId as ba, CustomerScreeningId as bb, TagId as bc, ActionId as bd, TransactionId as be, TransactionReviewId as bf, TransactionPartiesId as bg, TransactionInfosId as bh, TransactionExtractedInfosId as bi, TransactionMethodsId as bj, TransactionMethodExtractedInfosId as bk, InstitutionId as bl, InstitutionExtractedInfosId as bm, ScenarioId as bn, ListId as bo, QueryId as bp, generateId as bq, MemberId as br, ScenarioAuthorizationData as bs, SdkVerificationResponseSchema as bt, CloseScreenNotification as bu, KycCompletionData as bv, KycCompletionNotification as bw, RuleEngineScenarioExecutionData as bx, OffChainScenarioExecutionData as by, OnChainScenarioExecutionData as bz, NEXERA_STARKNET_CHAINS as c, AuthQrCodeData as c$, ExecuteChallengeQueryResponse as c0, OPAChallengeQuery as c1, OffChainZKPRuleResult as c2, SdkVerificationOutput as c3, VerificationSessionStatuses as c4, VerificationSessionStatus as c5, VerificationOutput as c6, ScenarioTypes as c7, ScenarioType as c8, ScenarioStatuses as c9, ChallengeResponse as cA, WalletSignResponse as cB, TxAuthDataSignatureGatingRequest as cC, GetCustomerStatusRequest as cD, IdentitySdkMessage as cE, IdentitySdkMessageWithIdentifier as cF, TxAuthDataSignatureResponse as cG, GetCustomerStatusResponse as cH, IdentityAppMessage as cI, IdentityWallet as cJ, HostMessage as cK, IdentityMessage as cL, RequiredDataRowSchema as cM, RequiredVerificationData as cN, MediaType as cO, MediaTypePID as cP, CIRCUIT_IDS as cQ, CircuitId as cR, ZeroKnowledgeProofRequest as cS, AUTHORIZATION_REQUEST_MESSAGE_TYPES as cT, AuthorizationRequestMessageTypes as cU, AuthorizationRequestMessageType as cV, AuthorizationRequestMessage as cW, ProofData as cX, ZeroKnowledgeProofResponse as cY, AuthorizationResponseMessage as cZ, CredentialQrCodeData as c_, ScenarioStatus as ca, RuleEngineResponse as cb, ScenarioExecutionResponse as cc, RuleResultStatuses as cd, RuleResultStatus as ce, RuleResultStatusLabels as cf, ComplianceImplementationStepsInput as cg, SimplifiedCredential as ch, GetCredentialsRequest as ci, GetCredentialsResponse as cj, PolygonIdRequestData as ck, PolygonIdRequest as cl, PolygonIdResponseData as cm, PolygonIdResponse as cn, StartFlowRequest as co, IsVerifiedRequest as cp, IsVerifiedResponse as cq, GetTxAuthSigRequest as cr, GetTxAuthSigResponse as cs, GetTxAuthSigRequestTezos as ct, GetTxAuthSigResponseTezos as cu, HostRequestMessage as cv, IdentityResponseMessage as cw, GenerateWalletChallengeRequest as cx, AuthSession as cy, AuthSessionData as cz, NEXERA_EVM_CHAIN_NAMES as d, OnChainZKPPayload as d$, QrCodeLinkWithSchemaType as d0, parseIden3Message as d1, parseSessionIdFromUrl as d2, AllCredentialAttributes as d3, AllCredentialValues as d4, OPERATORS as d5, Operator as d6, ZKPOperator as d7, operatorDisplayMap as d8, ARRAY_OPERATORS as d9, DeleteQueryConfigurationResponse as dA, QueryCredentialTypes as dB, QueryCredentialType as dC, TxAuthInput as dD, ApiTxAuthInput as dE, TxSignatureResponse as dF, GetTxAuthDataSignatureResponse as dG, TezosTxAuthInput as dH, ApiTezosTxAuthInput as dI, TezosTxSignatureResponse as dJ, GetTezosTxAuthDataSignatureResponse as dK, ExtendedTxAuthInput as dL, ExtendedTezosTxAuthInput as dM, AnyTxAuthInput as dN, ExtendedTxAuthDataSignatureResponse as dO, ExtendedTezosTxAuthDataSignatureResponse as dP, AnyTxAuthDataSignatureResponse as dQ, ZKPRequest as dR, ZKPRequestFromZKVerifier as dS, OffChainZKP as dT, CreateAuthRequestProps as dU, CreateZKProofRequestProps as dV, AllScenarioExecutionAuthorizationData as dW, ProjectAuthorizationData as dX, OnChainZKP as dY, OnChainZKPFromNexeraID as dZ, OnChainZKPScenarioFromCms as d_, ArrayOperator as da, STRING_OPERATORS as db, StringOperator as dc, NUMERIC_OPERATORS as dd, NumericOperator as de, BOOLEAN_OPERATORS as df, BooleanOperator as dg, DATE_OPERATORS as dh, DateOperator as di, SUPPORTED_TYPES as dj, SupportedType as dk, SupportedTypes as dl, IDInformation as dm, QueryConfig as dn, QueryType as dp, QueryConfigSimplified as dq, PartialQueryConfigSimplified as dr, QueryConfigSimplifiedParsed as ds, QueryConfiguration as dt, NonParsedQueryConfiguration as du, CreateQueryConfigurationInput as dv, CreateQueryConfigurationResponse as dw, UpdateQueryConfigurationInput as dx, UpdateQueryConfigurationResponse as dy, DeleteQueryConfigurationInput as dz, NEXERA_EVM_CHAIN_NAMES_LIST as e, SCENARIO_AUTHORIZATION_STATUSES as e0, ScenarioAuthorizationStatus as e1, WalletSignatureResponse as e2, VerifyWalletChallengeRequest as e3, FLOW_TYPES as e4, FlowType as e5, VerificationModes as e6, VerificationMode as e7, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as e8, IdentityDocumentCountryListOption as e9, IDInformationCredentialSubjectSchema as eA, IDImageCredentialSubjectSchema as eB, SelfieImageCredentialSubjectSchema as eC, ProofOfResidenceCredentialSubjectSchema as eD, GenericVerifiableCredentialSchema as eE, CredentialSchemas as eF, CredentialNames as eG, NexeraCredentialType as eH, getCredentialName as eI, CredentialType as eJ, VerifiableCredential as eK, CredentialMediaType as eL, _toConsumableArray as eM, _toArray as eN, _arrayWithHoles as eO, _unsupportedIterableToArray as eP, _nonIterableRest as eQ, _defineProperty as eR, IDENTITY_DOCUMENT_OPTIONS as ea, IdentityDocumentOptionsType as eb, PERSONAL_INFORMATION_FIELDS as ec, PersonalInformationFieldsIdentityDocuments as ed, Identifier as ee, AdditionalCustomerInformationParams as ef, OrganizationId as eg, WorkspaceId as eh, WorkflowId as ei, CustomerId as ej, IdentityWidgetAccessToken as ek, ExternalCustomerId as el, IdentityAppV2Web3JWT as em, IdentityAppV2Web2JWT as en, IdentityWidgetAccessToken_NEW as eo, IdentityWidgetSessionToken as ep, Web2CreateSessionParams as eq, ID3CredentialSubjectSchema as er, IDScanCredentialSubjectSchema as es, IDScanPassportCredentialSubjectSchema as et, IDScanSelfieCredentialSubjectSchema as eu, OLD_IDImageCredentialSubjectSchema as ev, OLD_IDInformationCredentialSubjectSchema as ew, OLD_ProofOfResidenceCredentialSubjectSchema as ex, OLD_SelfieImageCredentialSubjectSchema as ey, OLD_AMLScreeningsResultsCredentialSubjectSchema as ez, NEXERA_CHAIN_VALUES as f, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as g, EvmChainId as h, PolygonNetworkNames as i, NEXERA_TEZOS_CHAIN_NAMES as j, NEXERA_TEZOS_CHAIN_NAMES_LIST as k, NEXERA_TEZOS_CHAIN_VALUES as l, ACTIVE_TEZOS_CHAIN_VALUES as m, COSMOS_CHAIN_NAMES as n, COSMOS_CHAIN_NAMES_LIST as o, COSMOS_CHAIN_VALUES as p, ACTIVE_COSMOS_CHAIN_VALUES as q, CosmosChainId as r, NEXERA_STARKNET_CHAIN_NAMES as s, NEXERA_STARKNET_CHAIN_VALUES as t, NEXERA_ACTIVE_STARKNET_CHAIN_VALUES as u, isValidAddress as v, String0x as w, PrivateKey as x, PublicKey as y, AddressSchema as z };
|