@nexeraid/identity-schemas 2.6.0-dev → 2.8.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{customers.schema-25c9bc0a.esm.js → customers.schema-0bfe7ed2.esm.js} +1 -1
- package/dist/{customers.schema-7ac300ea.cjs.dev.js → customers.schema-1bf4fe64.cjs.dev.js} +1 -1
- package/dist/{customers.schema-a484549e.cjs.prod.js → customers.schema-80e163e9.cjs.prod.js} +1 -1
- package/dist/declarations/src/identity/app-requests.schema.d.ts +109 -104
- package/dist/declarations/src/identity/app-requests.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +25 -24
- package/dist/declarations/src/identity/identity-v2.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/index.d.ts +1 -2
- package/dist/declarations/src/identity/index.d.ts.map +1 -1
- package/dist/declarations/src/identity/kyc.schema.d.ts +31 -194
- package/dist/declarations/src/identity/kyc.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/query.schema.d.ts +178 -0
- package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/scenario.schema.d.ts +1180 -0
- package/dist/declarations/src/identity/scenario.schema.d.ts.map +1 -0
- package/dist/declarations/src/identity/zkps.schema.d.ts +0 -744
- package/dist/declarations/src/identity/zkps.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts +108 -108
- package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts +13 -13
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +63 -60
- package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -1
- package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +40 -40
- package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +88 -88
- package/dist/declarations/src/transaction.schema.d.ts +6 -0
- package/dist/declarations/src/transaction.schema.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +407 -407
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +3102 -3102
- package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts +2 -2
- package/dist/{frontend-utilities.schema-2ad117b9.cjs.prod.js → frontend-utilities.schema-63c0c3ec.cjs.prod.js} +1 -1
- package/dist/{frontend-utilities.schema-a0cf242f.cjs.dev.js → frontend-utilities.schema-7ec52bb3.cjs.dev.js} +1 -1
- package/dist/{frontend-utilities.schema-3e61e949.esm.js → frontend-utilities.schema-c53dbf36.esm.js} +1 -1
- package/dist/{identity-api.schema-08b1e63d.cjs.dev.js → identity-api.schema-725ecd1d.cjs.prod.js} +357 -437
- package/dist/{identity-api.schema-a01dae12.esm.js → identity-api.schema-a3f556f3.esm.js} +351 -424
- package/dist/{identity-api.schema-1b5f26e1.cjs.prod.js → identity-api.schema-e1fe9b0e.cjs.dev.js} +357 -437
- package/dist/nexeraid-identity-schemas.cjs.dev.js +14 -17
- package/dist/nexeraid-identity-schemas.cjs.prod.js +14 -17
- package/dist/nexeraid-identity-schemas.esm.js +4 -4
- package/dist/package.json +1 -1
- package/dist/{transaction.schema-90e6af49.cjs.prod.js → transaction.schema-1534b40f.cjs.prod.js} +9 -1
- package/dist/{transaction.schema-2107095b.esm.js → transaction.schema-221579a3.esm.js} +6 -2
- package/dist/{transaction.schema-92a59117.cjs.dev.js → transaction.schema-4195655f.cjs.dev.js} +9 -1
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +8 -15
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +8 -15
- 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 +4 -4
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +4 -4
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +4 -4
- package/dist/declarations/src/identity/challenge-query.schema.d.ts +0 -1246
- package/dist/declarations/src/identity/challenge-query.schema.d.ts.map +0 -1
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts +0 -136
- package/dist/declarations/src/identity/execute-scenario.schema.d.ts.map +0 -1
package/dist/{identity-api.schema-1b5f26e1.cjs.prod.js → identity-api.schema-e1fe9b0e.cjs.dev.js}
RENAMED
|
@@ -2078,207 +2078,136 @@ function _toConsumableArray(r) {
|
|
|
2078
2078
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
2079
2079
|
}
|
|
2080
2080
|
|
|
2081
|
-
|
|
2082
|
-
var IdentityPrefix = "identity";
|
|
2083
|
-
var EmailPrefix = "email";
|
|
2084
|
-
var WalletPrefix = "wallet";
|
|
2085
|
-
var AppPrefix = "app";
|
|
2086
|
-
var ChallengePrefix = "challenge";
|
|
2087
|
-
var TestPrefix = "test";
|
|
2088
|
-
var CustomerScreeningPrefix = "cstscr";
|
|
2089
|
-
var TagPrefix = "tag";
|
|
2090
|
-
|
|
2091
|
-
// TMS
|
|
2092
|
-
var TagsToTransactionReviewsPrefix = "ttxr";
|
|
2093
|
-
var TransactionAddressesPrefix = "txa";
|
|
2094
|
-
var TransactionPrefix = "tx";
|
|
2095
|
-
var TransactionFeesPrefix = "txf";
|
|
2096
|
-
var TransactionReviewPrefix = "txrev";
|
|
2097
|
-
var TransactionPartiesPrefix = "txpar";
|
|
2098
|
-
var TransactionInfosPrefix = "txi";
|
|
2099
|
-
var TransactionExtractedInfosPrefix = "txei";
|
|
2100
|
-
var TransactionMethodsPrefix = "txm";
|
|
2101
|
-
var TransactionMethodExtractedInfosPrefix = "txmei";
|
|
2102
|
-
var InstitutionPrefix = "ins";
|
|
2103
|
-
var InstitutionExtractedInfosPrefix = "insei";
|
|
2104
|
-
|
|
2105
|
-
// Add these lines near the top of the file with other prefix definitions
|
|
2106
|
-
var ScenarioPrefix = "scenario";
|
|
2107
|
-
var ListPrefix = "list";
|
|
2108
|
-
var QueryPrefix = "query";
|
|
2109
|
-
var ActionPrefix = "action";
|
|
2110
|
-
|
|
2111
|
-
// ---
|
|
2112
|
-
|
|
2113
|
-
// Add these lines in the type definitions section
|
|
2114
|
-
|
|
2115
|
-
// TMS
|
|
2116
|
-
|
|
2117
|
-
// ---
|
|
2118
|
-
|
|
2119
|
-
// TMS
|
|
2120
|
-
|
|
2121
|
-
// Scenarios service
|
|
2122
|
-
|
|
2123
|
-
var createBrandedSchemaId = function createBrandedSchemaId(brand) {
|
|
2124
|
-
return zod.z.custom(function (val) {
|
|
2125
|
-
if (typeof val !== "string") return false;
|
|
2126
|
-
return val.startsWith(brand);
|
|
2127
|
-
}, {
|
|
2128
|
-
message: "Invalid ".concat(brand, " id")
|
|
2129
|
-
});
|
|
2130
|
-
};
|
|
2131
|
-
|
|
2132
|
-
// ---
|
|
2133
|
-
|
|
2134
|
-
var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
|
|
2135
|
-
var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
|
|
2136
|
-
var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
|
|
2137
|
-
var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
|
|
2138
|
-
var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
|
|
2139
|
-
var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
|
|
2140
|
-
var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
|
|
2141
|
-
var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
|
|
2142
|
-
var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
|
|
2143
|
-
var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
|
|
2144
|
-
|
|
2145
|
-
// TMS
|
|
2146
|
-
var TagsToTransactionReviewsId = createBrandedSchemaId("".concat(TagsToTransactionReviewsPrefix, "_"));
|
|
2147
|
-
var TransactionAddressesId = createBrandedSchemaId("".concat(TransactionAddressesPrefix, "_"));
|
|
2148
|
-
var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
|
|
2149
|
-
var TransactionFeesId = createBrandedSchemaId("".concat(TransactionFeesPrefix, "_"));
|
|
2150
|
-
var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
|
|
2151
|
-
var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
|
|
2152
|
-
var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
|
|
2153
|
-
var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
|
|
2154
|
-
var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
|
|
2155
|
-
var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
|
|
2156
|
-
var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
|
|
2157
|
-
var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
|
|
2158
|
-
var ScenarioId = createBrandedSchemaId("".concat(ScenarioPrefix, "_"));
|
|
2159
|
-
var ListId = createBrandedSchemaId("".concat(ListPrefix, "_"));
|
|
2160
|
-
var QueryId = createBrandedSchemaId("".concat(QueryPrefix, "_"));
|
|
2161
|
-
var generateId = function generateId(type // Add this line
|
|
2162
|
-
) {
|
|
2163
|
-
return "".concat(type, "_").concat(nanoid.nanoid(12));
|
|
2164
|
-
};
|
|
2165
|
-
var MemberId = zod.z.string();
|
|
2166
|
-
|
|
2167
|
-
var FLOW_TYPES = ["web2", "web3"];
|
|
2168
|
-
var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2169
|
-
var VerificationModes = ["full_verification", "sandbox"];
|
|
2170
|
-
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2171
|
-
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2172
|
-
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2173
|
-
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2174
|
-
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2175
|
-
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2176
|
-
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2177
|
-
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
2178
|
-
|
|
2179
|
-
/**
|
|
2180
|
-
* Represents the additional data that can be attached to a customer
|
|
2181
|
-
*/
|
|
2081
|
+
// Request
|
|
2182
2082
|
|
|
2183
|
-
var
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2083
|
+
var MediaType = /*#__PURE__*/function (MediaType) {
|
|
2084
|
+
MediaType["ZKPMessage"] = "application/iden3-zkp-json";
|
|
2085
|
+
MediaType["PlainMessage"] = "application/iden3comm-plain-json";
|
|
2086
|
+
MediaType["SignedMessage"] = "application/iden3comm-signed-json";
|
|
2087
|
+
return MediaType;
|
|
2088
|
+
}({});
|
|
2089
|
+
var MediaTypePID = zod.z.nativeEnum(MediaType);
|
|
2090
|
+
var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
|
|
2091
|
+
var CircuitId = zod.z["enum"](CIRCUIT_IDS);
|
|
2092
|
+
var ZeroKnowledgeProofRequest = zod.z.object({
|
|
2093
|
+
id: zod.z.number(),
|
|
2094
|
+
circuitId: zod.z.string(),
|
|
2095
|
+
optional: zod.z["boolean"]().optional(),
|
|
2096
|
+
query: zod.z.record(zod.z.string(), zod.z.any())
|
|
2190
2097
|
});
|
|
2191
|
-
var
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2098
|
+
var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
|
|
2099
|
+
AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
|
|
2100
|
+
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
|
|
2101
|
+
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
|
|
2102
|
+
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
|
|
2103
|
+
CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
|
|
2104
|
+
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
|
|
2105
|
+
CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
|
|
2106
|
+
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
|
|
2107
|
+
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
|
|
2108
|
+
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
|
|
2109
|
+
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
|
|
2110
|
+
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
|
|
2111
|
+
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
|
|
2112
|
+
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
|
|
2113
|
+
CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
|
|
2114
|
+
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
|
|
2115
|
+
PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
|
|
2116
|
+
PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
|
|
2117
|
+
PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
|
|
2118
|
+
PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
|
|
2119
|
+
};
|
|
2120
|
+
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"];
|
|
2121
|
+
var AuthorizationRequestMessageType = zod.z["enum"](AuthorizationRequestMessageTypes);
|
|
2122
|
+
var AuthorizationRequestMessage = zod.z.object({
|
|
2123
|
+
id: zod.z.string(),
|
|
2124
|
+
typ: MediaTypePID.optional(),
|
|
2125
|
+
type: AuthorizationRequestMessageType,
|
|
2126
|
+
thid: zod.z.string().optional(),
|
|
2127
|
+
body: zod.z.object({
|
|
2128
|
+
callbackUrl: zod.z.string(),
|
|
2129
|
+
reason: zod.z.string().optional(),
|
|
2130
|
+
did_doc: zod.z.any().optional(),
|
|
2131
|
+
message: zod.z.string().optional(),
|
|
2132
|
+
scope: zod.z.array(ZeroKnowledgeProofRequest)
|
|
2133
|
+
}),
|
|
2134
|
+
from: zod.z.string(),
|
|
2135
|
+
to: zod.z.string().optional()
|
|
2210
2136
|
});
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
2219
|
-
exp: zod.z.number(),
|
|
2220
|
-
customerId: UuidString,
|
|
2221
|
-
verificationMode: VerificationMode,
|
|
2222
|
-
organizationId: OrganizationId,
|
|
2223
|
-
workspaceId: WorkspaceId,
|
|
2224
|
-
workflowId: WorkflowId,
|
|
2225
|
-
ipAddress: zod.z.string().optional(),
|
|
2226
|
-
timestamp: zod.z.number(),
|
|
2227
|
-
iat: zod.z.number(),
|
|
2228
|
-
hosts: zod.z.array(zod.z.string())
|
|
2137
|
+
// Response
|
|
2138
|
+
var ProofData = zod.z.object({
|
|
2139
|
+
pi_a: zod.z.array(zod.z.string()),
|
|
2140
|
+
pi_b: zod.z.array(zod.z.array(zod.z.string())),
|
|
2141
|
+
pi_c: zod.z.array(zod.z.string()),
|
|
2142
|
+
protocol: zod.z.string(),
|
|
2143
|
+
curve: zod.z.string().optional()
|
|
2229
2144
|
});
|
|
2230
|
-
var
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2145
|
+
var ZeroKnowledgeProofResponse = zod.z.object({
|
|
2146
|
+
id: zod.z.number(),
|
|
2147
|
+
circuitId: zod.z.string(),
|
|
2148
|
+
vp: zod.z.any().optional(),
|
|
2149
|
+
proof: ProofData,
|
|
2150
|
+
pub_signals: zod.z.array(zod.z.string())
|
|
2234
2151
|
});
|
|
2235
|
-
var
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2152
|
+
var AuthorizationResponseMessage = zod.z.object({
|
|
2153
|
+
id: zod.z.string(),
|
|
2154
|
+
typ: MediaTypePID.optional(),
|
|
2155
|
+
type: zod.z.string(),
|
|
2156
|
+
thid: zod.z.string().optional(),
|
|
2157
|
+
body: zod.z.object({
|
|
2158
|
+
did_doc: zod.z.any().optional(),
|
|
2159
|
+
message: zod.z.string().optional(),
|
|
2160
|
+
scope: zod.z.array(ZeroKnowledgeProofResponse)
|
|
2161
|
+
}),
|
|
2162
|
+
from: zod.z.string().optional(),
|
|
2163
|
+
to: zod.z.string().optional()
|
|
2242
2164
|
});
|
|
2243
|
-
|
|
2244
|
-
var
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2165
|
+
// Polygon Wallet
|
|
2166
|
+
var CredentialQrCodeData = zod.z.object({
|
|
2167
|
+
id: zod.z.string(),
|
|
2168
|
+
typ: zod.z.string(),
|
|
2169
|
+
type: zod.z.string(),
|
|
2170
|
+
thid: zod.z.string(),
|
|
2171
|
+
body: zod.z.object({
|
|
2172
|
+
url: zod.z.string(),
|
|
2173
|
+
credentials: zod.z.unknown()
|
|
2174
|
+
}),
|
|
2175
|
+
from: zod.z.string(),
|
|
2176
|
+
to: zod.z.string()
|
|
2255
2177
|
});
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
name: zod.z.string(),
|
|
2266
|
-
address: BlockchainAddress.nullish(),
|
|
2267
|
-
result: zod.z.object({
|
|
2268
|
-
result: zod.z.object({
|
|
2269
|
-
is_valid: zod.z["boolean"](),
|
|
2270
|
-
reasons: zod.z.array(zod.z.unknown())
|
|
2271
|
-
}),
|
|
2272
|
-
// TODO maybe start using OpaChallengeQueryResponse
|
|
2273
|
-
executionId: zod.z.string().uuid()
|
|
2178
|
+
var AuthQrCodeData = zod.z.object({
|
|
2179
|
+
id: zod.z.string(),
|
|
2180
|
+
typ: zod.z.string(),
|
|
2181
|
+
type: zod.z.string(),
|
|
2182
|
+
thid: zod.z.string(),
|
|
2183
|
+
body: zod.z.object({
|
|
2184
|
+
callbackUrl: zod.z.string(),
|
|
2185
|
+
reason: zod.z.string(),
|
|
2186
|
+
scope: zod.z.unknown()
|
|
2274
2187
|
}),
|
|
2275
|
-
|
|
2276
|
-
scenarioId: zod.z.string()
|
|
2188
|
+
from: zod.z.string()
|
|
2277
2189
|
});
|
|
2278
|
-
var
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2190
|
+
var QrCodeLinkWithSchemaType = zod.z.object({
|
|
2191
|
+
qrCodeLink: zod.z.string().nullish(),
|
|
2192
|
+
schemaType: zod.z.string().nullish()
|
|
2193
|
+
}).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
|
|
2194
|
+
function parseIden3Message(input) {
|
|
2195
|
+
var prefix = "request_uri=";
|
|
2196
|
+
var startIndex = input.indexOf(prefix);
|
|
2197
|
+
if (startIndex === -1) {
|
|
2198
|
+
throw new Error("Wrong request - request doesn't start with request_uri=");
|
|
2199
|
+
}
|
|
2200
|
+
return zod.z.string().url().parse(input.substring(startIndex + prefix.length));
|
|
2201
|
+
}
|
|
2202
|
+
function parseSessionIdFromUrl(urlString) {
|
|
2203
|
+
var url = new URL(urlString);
|
|
2204
|
+
var params = new URLSearchParams(url.search);
|
|
2205
|
+
var sessionId = params.get("sessionID");
|
|
2206
|
+
if (!sessionId) {
|
|
2207
|
+
throw new Error("No Session Id found in callback url");
|
|
2208
|
+
}
|
|
2209
|
+
return sessionId;
|
|
2210
|
+
}
|
|
2282
2211
|
|
|
2283
2212
|
function _arrayWithHoles(r) {
|
|
2284
2213
|
if (Array.isArray(r)) return r;
|
|
@@ -2331,7 +2260,6 @@ var IDImage = zod.z.object({
|
|
|
2331
2260
|
requestId: zod.z.coerce.number().nullish(),
|
|
2332
2261
|
attribute: zod.z.union([zod.z.string(), zodEnumFromObjKeys(IDImageCredentialSubjectSchema.shape)]),
|
|
2333
2262
|
value: AllCredentialValues,
|
|
2334
|
-
// TODO play with discriminatedUnion to make it dynamic based on selected attribute (e.g. if attribute age is type number in the schema, then value her shuld be number etc..)
|
|
2335
2263
|
operator: Operator
|
|
2336
2264
|
});
|
|
2337
2265
|
var SelfieImage = zod.z.object({
|
|
@@ -2459,92 +2387,231 @@ var DeleteQueryConfigurationInput = zod.z.object({
|
|
|
2459
2387
|
queryConfigurationId: zod.z.string(),
|
|
2460
2388
|
scenarioId: zod.z.string()
|
|
2461
2389
|
});
|
|
2462
|
-
var DeleteQueryConfigurationResponse = zod.z.object({
|
|
2463
|
-
queryConfigurationId: zod.z.string()
|
|
2390
|
+
var DeleteQueryConfigurationResponse = zod.z.object({
|
|
2391
|
+
queryConfigurationId: zod.z.string()
|
|
2392
|
+
});
|
|
2393
|
+
var QueryCredentialTypes = ["IDInformation", "IDImage", "SelfieImage", "ProofOfResidence"];
|
|
2394
|
+
var QueryCredentialType = zod.z["enum"](QueryCredentialTypes);
|
|
2395
|
+
var ChallengeQuerySchema = zod.z.object({
|
|
2396
|
+
id: zod.z.string().optional(),
|
|
2397
|
+
query: QueryConfig
|
|
2398
|
+
});
|
|
2399
|
+
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"];
|
|
2400
|
+
var ChallengeQueryOperator = zod.z["enum"](CHALLENGE_QUERY_OPERATORS);
|
|
2401
|
+
var OperatorMappings = {
|
|
2402
|
+
toChallenge: _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),
|
|
2403
|
+
fromChallenge: _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)
|
|
2404
|
+
};
|
|
2405
|
+
var OperatorToChallengeQueryOperator = OperatorMappings.toChallenge;
|
|
2406
|
+
var ChallengeQueryOperatorToOperator = OperatorMappings.fromChallenge;
|
|
2407
|
+
|
|
2408
|
+
var StoragePrefix = "storage";
|
|
2409
|
+
var IdentityPrefix = "identity";
|
|
2410
|
+
var EmailPrefix = "email";
|
|
2411
|
+
var WalletPrefix = "wallet";
|
|
2412
|
+
var AppPrefix = "app";
|
|
2413
|
+
var ChallengePrefix = "challenge";
|
|
2414
|
+
var TestPrefix = "test";
|
|
2415
|
+
var CustomerScreeningPrefix = "cstscr";
|
|
2416
|
+
var TagPrefix = "tag";
|
|
2417
|
+
|
|
2418
|
+
// TMS
|
|
2419
|
+
var TagsToTransactionReviewsPrefix = "ttxr";
|
|
2420
|
+
var TransactionAddressesPrefix = "txa";
|
|
2421
|
+
var TransactionPrefix = "tx";
|
|
2422
|
+
var TransactionFeesPrefix = "txf";
|
|
2423
|
+
var TransactionReviewPrefix = "txrev";
|
|
2424
|
+
var TransactionPartiesPrefix = "txpar";
|
|
2425
|
+
var TransactionInfosPrefix = "txi";
|
|
2426
|
+
var TransactionExtractedInfosPrefix = "txei";
|
|
2427
|
+
var TransactionMethodsPrefix = "txm";
|
|
2428
|
+
var TransactionMethodExtractedInfosPrefix = "txmei";
|
|
2429
|
+
var InstitutionPrefix = "ins";
|
|
2430
|
+
var InstitutionExtractedInfosPrefix = "insei";
|
|
2431
|
+
|
|
2432
|
+
// Add these lines near the top of the file with other prefix definitions
|
|
2433
|
+
var ScenarioPrefix = "scenario";
|
|
2434
|
+
var ListPrefix = "list";
|
|
2435
|
+
var QueryPrefix = "query";
|
|
2436
|
+
var ActionPrefix = "action";
|
|
2437
|
+
|
|
2438
|
+
// ---
|
|
2439
|
+
|
|
2440
|
+
// Add these lines in the type definitions section
|
|
2441
|
+
|
|
2442
|
+
// TMS
|
|
2443
|
+
|
|
2444
|
+
// ---
|
|
2445
|
+
|
|
2446
|
+
// TMS
|
|
2447
|
+
|
|
2448
|
+
// Scenarios service
|
|
2449
|
+
|
|
2450
|
+
var createBrandedSchemaId = function createBrandedSchemaId(brand) {
|
|
2451
|
+
return zod.z.custom(function (val) {
|
|
2452
|
+
if (typeof val !== "string") return false;
|
|
2453
|
+
return val.startsWith(brand);
|
|
2454
|
+
}, {
|
|
2455
|
+
message: "Invalid ".concat(brand, " id")
|
|
2456
|
+
});
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2459
|
+
// ---
|
|
2460
|
+
|
|
2461
|
+
var StorageId = createBrandedSchemaId("".concat(StoragePrefix, "_"));
|
|
2462
|
+
var IdentityId = createBrandedSchemaId("".concat(IdentityPrefix, "_"));
|
|
2463
|
+
var EmailId = createBrandedSchemaId("".concat(EmailPrefix, "_"));
|
|
2464
|
+
var WalletId = createBrandedSchemaId("".concat(WalletPrefix, "_"));
|
|
2465
|
+
var AppId = createBrandedSchemaId("".concat(AppPrefix, "_"));
|
|
2466
|
+
var ChallengeId = createBrandedSchemaId("".concat(ChallengePrefix, "_"));
|
|
2467
|
+
var TestId = createBrandedSchemaId("".concat(TestPrefix, "_"));
|
|
2468
|
+
var CustomerScreeningId = createBrandedSchemaId("".concat(CustomerScreeningPrefix, "_"));
|
|
2469
|
+
var TagId = createBrandedSchemaId("".concat(TagPrefix, "_"));
|
|
2470
|
+
var ActionId = createBrandedSchemaId("".concat(ActionPrefix, "_"));
|
|
2471
|
+
|
|
2472
|
+
// TMS
|
|
2473
|
+
var TagsToTransactionReviewsId = createBrandedSchemaId("".concat(TagsToTransactionReviewsPrefix, "_"));
|
|
2474
|
+
var TransactionAddressesId = createBrandedSchemaId("".concat(TransactionAddressesPrefix, "_"));
|
|
2475
|
+
var TransactionId = createBrandedSchemaId("".concat(TransactionPrefix, "_"));
|
|
2476
|
+
var TransactionFeesId = createBrandedSchemaId("".concat(TransactionFeesPrefix, "_"));
|
|
2477
|
+
var TransactionReviewId = createBrandedSchemaId("".concat(TransactionReviewPrefix, "_"));
|
|
2478
|
+
var TransactionPartiesId = createBrandedSchemaId("".concat(TransactionPartiesPrefix, "_"));
|
|
2479
|
+
var TransactionInfosId = createBrandedSchemaId("".concat(TransactionInfosPrefix, "_"));
|
|
2480
|
+
var TransactionExtractedInfosId = createBrandedSchemaId("".concat(TransactionExtractedInfosPrefix, "_"));
|
|
2481
|
+
var TransactionMethodsId = createBrandedSchemaId("".concat(TransactionMethodsPrefix, "_"));
|
|
2482
|
+
var TransactionMethodExtractedInfosId = createBrandedSchemaId("".concat(TransactionMethodExtractedInfosPrefix, "_"));
|
|
2483
|
+
var InstitutionId = createBrandedSchemaId("".concat(InstitutionPrefix, "_"));
|
|
2484
|
+
var InstitutionExtractedInfosId = createBrandedSchemaId("".concat(InstitutionExtractedInfosPrefix, "_"));
|
|
2485
|
+
var ScenarioId = createBrandedSchemaId("".concat(ScenarioPrefix, "_"));
|
|
2486
|
+
var ListId = createBrandedSchemaId("".concat(ListPrefix, "_"));
|
|
2487
|
+
var QueryId = createBrandedSchemaId("".concat(QueryPrefix, "_"));
|
|
2488
|
+
var generateId = function generateId(type // Add this line
|
|
2489
|
+
) {
|
|
2490
|
+
return "".concat(type, "_").concat(nanoid.nanoid(12));
|
|
2491
|
+
};
|
|
2492
|
+
var MemberId = zod.z.string();
|
|
2493
|
+
|
|
2494
|
+
var FLOW_TYPES = ["web2", "web3"];
|
|
2495
|
+
var FlowType = zod.z["enum"](FLOW_TYPES).describe("The flow type of the user");
|
|
2496
|
+
var VerificationModes = ["full_verification", "sandbox"];
|
|
2497
|
+
var VerificationMode = zod.z["enum"](VerificationModes).describe("The verification mode of the project");
|
|
2498
|
+
var IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS = ["allowedCountryIdentityDocuments", "excludedCountryIdentityDocuments"];
|
|
2499
|
+
var IdentityDocumentCountryListOption = zod.z["enum"](IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS);
|
|
2500
|
+
var IDENTITY_DOCUMENT_OPTIONS = ["PASSPORT", "ID_CARD", "DRIVING_LICENSE"];
|
|
2501
|
+
var IdentityDocumentOptionsType = zod.z["enum"](IDENTITY_DOCUMENT_OPTIONS);
|
|
2502
|
+
var PERSONAL_INFORMATION_FIELDS = ["EMAIL", "PHONE", "TWITTER", "DISCORD", "TELEGRAM"];
|
|
2503
|
+
var PersonalInformationFieldsIdentityDocuments = zod.z["enum"](PERSONAL_INFORMATION_FIELDS);
|
|
2504
|
+
var Identifier = zod.z.union([zod.z.literal("verification"), zod.z.literal("management")]);
|
|
2505
|
+
|
|
2506
|
+
/**
|
|
2507
|
+
* Represents the additional data that can be attached to a customer
|
|
2508
|
+
*/
|
|
2509
|
+
|
|
2510
|
+
var AdditionalCustomerInformationParams = zod.z.object({
|
|
2511
|
+
email: zod.z.string().email().optional(),
|
|
2512
|
+
phone: zod.z.string().min(4).optional(),
|
|
2513
|
+
wallet: zod.z.object({
|
|
2514
|
+
address: BlockchainAddress,
|
|
2515
|
+
namespace: BlockchainNamespace
|
|
2516
|
+
}).optional()
|
|
2517
|
+
});
|
|
2518
|
+
var OrganizationId = zod.z.string();
|
|
2519
|
+
var WorkspaceId = zod.z.string();
|
|
2520
|
+
var WorkflowId = UuidString;
|
|
2521
|
+
var CustomerId = UuidString;
|
|
2522
|
+
var IdentityWidgetAccessToken = zod.z.object({
|
|
2523
|
+
sub: BlockchainAddress,
|
|
2524
|
+
blockchainNamespace: BlockchainNamespace,
|
|
2525
|
+
exp: zod.z.number(),
|
|
2526
|
+
projectId: zod.z.string(),
|
|
2527
|
+
organizationId: OrganizationId,
|
|
2528
|
+
customerId: UuidString,
|
|
2529
|
+
workspaceId: WorkspaceId,
|
|
2530
|
+
// cmsProjectId
|
|
2531
|
+
workflowId: WorkflowId.optional(),
|
|
2532
|
+
ipAddress: zod.z.string().optional(),
|
|
2533
|
+
timestamp: zod.z.number(),
|
|
2534
|
+
storeSharedVC: zod.z["boolean"]().nullish(),
|
|
2535
|
+
verificationMode: VerificationMode,
|
|
2536
|
+
hosts: zod.z.array(zod.z.string())
|
|
2464
2537
|
});
|
|
2465
|
-
var QueryCredentialTypes = ["IDInformation", "IDImage", "SelfieImage", "ProofOfResidence"];
|
|
2466
|
-
var QueryCredentialType = zod.z["enum"](QueryCredentialTypes);
|
|
2467
2538
|
|
|
2468
|
-
//
|
|
2469
|
-
//
|
|
2470
|
-
var
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
// make sure that only one operator is defined at a time
|
|
2488
|
-
var operators = Object.keys(data);
|
|
2489
|
-
if (operators.length > 1) {
|
|
2490
|
-
return false;
|
|
2491
|
-
}
|
|
2492
|
-
return true;
|
|
2539
|
+
// represents an id of a consumer in the external system of our client
|
|
2540
|
+
// as it's an external id, it can be any string
|
|
2541
|
+
var ExternalCustomerId = zod.z.string();
|
|
2542
|
+
var IdentityAppV2BaseJWT = zod.z.object({
|
|
2543
|
+
sub: IdentityId,
|
|
2544
|
+
// @todo: this is named "flow type" here, but it's named "protocol" in the dashboard selection
|
|
2545
|
+
flowType: zod.z.union([zod.z.literal(FlowType.Values.web3), zod.z.literal(FlowType.Values.web2)]),
|
|
2546
|
+
exp: zod.z.number(),
|
|
2547
|
+
customerId: UuidString,
|
|
2548
|
+
verificationMode: VerificationMode,
|
|
2549
|
+
organizationId: OrganizationId,
|
|
2550
|
+
workspaceId: WorkspaceId,
|
|
2551
|
+
workflowId: WorkflowId,
|
|
2552
|
+
ipAddress: zod.z.string().optional(),
|
|
2553
|
+
timestamp: zod.z.number(),
|
|
2554
|
+
iat: zod.z.number(),
|
|
2555
|
+
hosts: zod.z.array(zod.z.string())
|
|
2493
2556
|
});
|
|
2494
|
-
var
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
var ChallengeQuerySchema = zod.z.object({
|
|
2499
|
-
id: zod.z.string().optional(),
|
|
2500
|
-
query: QueryConfig
|
|
2557
|
+
var IdentityAppV2Web3JWT = IdentityAppV2BaseJWT.extend({
|
|
2558
|
+
flowType: zod.z.literal(FlowType.Values.web3),
|
|
2559
|
+
blockchainAddress: BlockchainAddress,
|
|
2560
|
+
blockchainNamespace: BlockchainNamespace
|
|
2501
2561
|
});
|
|
2502
|
-
var
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2562
|
+
var IdentityAppV2Web2JWT = IdentityAppV2BaseJWT.extend({
|
|
2563
|
+
flowType: zod.z.literal(FlowType.Values.web2),
|
|
2564
|
+
/**
|
|
2565
|
+
* @deprecated Fetch the additional user information from the services instead of relying on this field
|
|
2566
|
+
* 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
|
|
2567
|
+
*/
|
|
2568
|
+
deprecated_additionalUserInformation: AdditionalCustomerInformationParams.optional()
|
|
2507
2569
|
});
|
|
2508
|
-
var
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2570
|
+
var IdentityWidgetAccessToken_NEW = zod.z.union([IdentityAppV2Web3JWT, IdentityAppV2Web2JWT]);
|
|
2571
|
+
var IdentityWidgetSessionToken = zod.z.union([IdentityWidgetAccessToken, IdentityWidgetAccessToken_NEW]);
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* The parameters required to create a new configuration in web2 mode.
|
|
2575
|
+
*/
|
|
2576
|
+
|
|
2577
|
+
var Web2CreateSessionParams = zod.z.object({
|
|
2578
|
+
workflowId: WorkflowId,
|
|
2579
|
+
// required in web2 because we don't have the wallet address
|
|
2580
|
+
externalCustomerId: ExternalCustomerId,
|
|
2581
|
+
additionalInformation: AdditionalCustomerInformationParams.optional()
|
|
2514
2582
|
});
|
|
2515
|
-
|
|
2583
|
+
|
|
2584
|
+
var ScenarioTypes = ["ChallengeQuery", "OffChainZKP", "IndividualCustomerMonitoring", "TransactionMonitoring"];
|
|
2585
|
+
var ScenarioType = zod.z["enum"](ScenarioTypes);
|
|
2586
|
+
var BaseQueryResponse = zod.z.object({
|
|
2516
2587
|
result: zod.z.object({
|
|
2517
2588
|
is_valid: zod.z["boolean"](),
|
|
2518
2589
|
reasons: zod.z.array(zod.z.string())
|
|
2519
2590
|
})
|
|
2520
2591
|
});
|
|
2521
|
-
var
|
|
2522
|
-
executionId: zod.z.string()
|
|
2523
|
-
});
|
|
2524
|
-
var OPAChallengeQuery = zod.z.record(ChallengeQueryOperators).refine(function (data) {
|
|
2525
|
-
// we are not validating the dotPath, only the operators
|
|
2526
|
-
for (var dotPath in data) {
|
|
2527
|
-
var operatorsData = data[dotPath];
|
|
2528
|
-
if (operatorsData === undefined) {
|
|
2529
|
-
return false;
|
|
2530
|
-
}
|
|
2531
|
-
// if the operator is not a valid operator, operatorsData will be {}
|
|
2532
|
-
var operators = Object.keys(operatorsData);
|
|
2533
|
-
if (operators.length === 0) {
|
|
2534
|
-
return false;
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
return true;
|
|
2538
|
-
}, {
|
|
2539
|
-
message: "Invalid operator found."
|
|
2540
|
-
});
|
|
2541
|
-
var OffChainZKPRuleResult = zod.z.object({
|
|
2592
|
+
var OffChainZKPRuleResult = BaseQueryResponse.extend({
|
|
2542
2593
|
result: zod.z.object({
|
|
2543
2594
|
is_valid: zod.z["boolean"](),
|
|
2544
2595
|
query: QueryConfigSimplified,
|
|
2545
2596
|
reasons: zod.z.array(zod.z.string())
|
|
2546
2597
|
})
|
|
2547
2598
|
});
|
|
2599
|
+
var ExecuteQueryResponse = BaseQueryResponse.extend({
|
|
2600
|
+
executionId: UuidString
|
|
2601
|
+
});
|
|
2602
|
+
var RuleEngineResponse = zod.z.object({
|
|
2603
|
+
objectType: ScenarioType,
|
|
2604
|
+
objectId: zod.z.string().describe("Object id in the cms (challengeQueryid, offChainZKPid)"),
|
|
2605
|
+
name: zod.z.string(),
|
|
2606
|
+
address: BlockchainAddress.nullish(),
|
|
2607
|
+
result: ExecuteQueryResponse,
|
|
2608
|
+
executionId: UuidString,
|
|
2609
|
+
scenarioId: zod.z.string()
|
|
2610
|
+
});
|
|
2611
|
+
var ScenarioExecutionResponse = zod.z.array(RuleEngineResponse);
|
|
2612
|
+
var RuleResultStatuses = ["valid", "not-valid", "error", "unknown"];
|
|
2613
|
+
var RuleResultStatus = zod.z["enum"](RuleResultStatuses);
|
|
2614
|
+
var RuleResultStatusLabels = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RuleResultStatus.Enum.valid, "Valid"), RuleResultStatus.Enum["not-valid"], "Not Valid"), RuleResultStatus.Enum.error, "Error"), RuleResultStatus.Enum.unknown, "Unknown");
|
|
2548
2615
|
var SdkVerificationOutput = zod.z.object({
|
|
2549
2616
|
customerId: zod.z.string().optional(),
|
|
2550
2617
|
// for v1
|
|
@@ -2561,137 +2628,31 @@ var VerificationOutput = zod.z.object({
|
|
|
2561
2628
|
verificationResult: SdkVerificationOutput.nullable(),
|
|
2562
2629
|
status: VerificationSessionStatus
|
|
2563
2630
|
});
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
}({});
|
|
2573
|
-
var MediaTypePID = zod.z.nativeEnum(MediaType);
|
|
2574
|
-
var CIRCUIT_IDS = ["authV2", "stateTransition", "credentialAtomicQueryMTPV2", "credentialAtomicQueryMTPV2OnChain", "credentialAtomicQuerySigV2", "credentialAtomicQuerySigV2OnChain", "credentialAtomicQueryV3-beta.1", "credentialAtomicQueryV3OnChain-beta.1", "linkedMultiQuery10-beta.1"];
|
|
2575
|
-
var CircuitId = zod.z["enum"](CIRCUIT_IDS);
|
|
2576
|
-
var ZeroKnowledgeProofRequest = zod.z.object({
|
|
2577
|
-
id: zod.z.number(),
|
|
2578
|
-
circuitId: zod.z.string(),
|
|
2579
|
-
optional: zod.z["boolean"]().optional(),
|
|
2580
|
-
query: zod.z.record(zod.z.string(), zod.z.any())
|
|
2581
|
-
});
|
|
2582
|
-
var AUTHORIZATION_REQUEST_MESSAGE_TYPES = {
|
|
2583
|
-
AUTHORIZATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/request",
|
|
2584
|
-
AUTHORIZATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/authorization/1.0/response",
|
|
2585
|
-
CREDENTIAL_ISSUANCE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-request",
|
|
2586
|
-
CREDENTIAL_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/fetch-request",
|
|
2587
|
-
CREDENTIAL_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/offer",
|
|
2588
|
-
CREDENTIAL_ISSUANCE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/issuance-response",
|
|
2589
|
-
CREDENTIAL_REFRESH_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/refresh",
|
|
2590
|
-
DEVICE_REGISTRATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/devices/1.0/registration",
|
|
2591
|
-
MESSAGE_FETCH_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/messages/1.0/fetch",
|
|
2592
|
-
PROOF_GENERATION_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/request",
|
|
2593
|
-
PROOF_GENERATION_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/response",
|
|
2594
|
-
REVOCATION_STATUS_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/request-status",
|
|
2595
|
-
REVOCATION_STATUS_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/revocation/1.0/status",
|
|
2596
|
-
CONTRACT_INVOKE_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-request",
|
|
2597
|
-
CONTRACT_INVOKE_RESPONSE_MESSAGE_TYPE: "https://iden3-communication.io/proofs/1.0/contract-invoke-response",
|
|
2598
|
-
CREDENTIAL_ONCHAIN_OFFER_MESSAGE_TYPE: "https://iden3-communication.io/credentials/1.0/onchain-offer",
|
|
2599
|
-
PROPOSAL_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal-request",
|
|
2600
|
-
PROPOSAL_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/proposal",
|
|
2601
|
-
PAYMENT_REQUEST_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment-request",
|
|
2602
|
-
PAYMENT_MESSAGE_TYPE: "https://iden3-communication.io/credentials/0.1/payment"
|
|
2603
|
-
};
|
|
2604
|
-
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"];
|
|
2605
|
-
var AuthorizationRequestMessageType = zod.z["enum"](AuthorizationRequestMessageTypes);
|
|
2606
|
-
var AuthorizationRequestMessage = zod.z.object({
|
|
2607
|
-
id: zod.z.string(),
|
|
2608
|
-
typ: MediaTypePID.optional(),
|
|
2609
|
-
type: AuthorizationRequestMessageType,
|
|
2610
|
-
thid: zod.z.string().optional(),
|
|
2611
|
-
body: zod.z.object({
|
|
2612
|
-
callbackUrl: zod.z.string(),
|
|
2613
|
-
reason: zod.z.string().optional(),
|
|
2614
|
-
did_doc: zod.z.any().optional(),
|
|
2615
|
-
message: zod.z.string().optional(),
|
|
2616
|
-
scope: zod.z.array(ZeroKnowledgeProofRequest)
|
|
2617
|
-
}),
|
|
2618
|
-
from: zod.z.string(),
|
|
2619
|
-
to: zod.z.string().optional()
|
|
2620
|
-
});
|
|
2621
|
-
// Response
|
|
2622
|
-
var ProofData = zod.z.object({
|
|
2623
|
-
pi_a: zod.z.array(zod.z.string()),
|
|
2624
|
-
pi_b: zod.z.array(zod.z.array(zod.z.string())),
|
|
2625
|
-
pi_c: zod.z.array(zod.z.string()),
|
|
2626
|
-
protocol: zod.z.string(),
|
|
2627
|
-
curve: zod.z.string().optional()
|
|
2628
|
-
});
|
|
2629
|
-
var ZeroKnowledgeProofResponse = zod.z.object({
|
|
2630
|
-
id: zod.z.number(),
|
|
2631
|
-
circuitId: zod.z.string(),
|
|
2632
|
-
vp: zod.z.any().optional(),
|
|
2633
|
-
proof: ProofData,
|
|
2634
|
-
pub_signals: zod.z.array(zod.z.string())
|
|
2631
|
+
var Scenario = zod.z.object({
|
|
2632
|
+
id: ScenarioId,
|
|
2633
|
+
name: zod.z.string(),
|
|
2634
|
+
description: zod.z.string().nullish(),
|
|
2635
|
+
queries: zod.z.array(QueryConfig),
|
|
2636
|
+
type: ScenarioType,
|
|
2637
|
+
workspaceId: WorkspaceId,
|
|
2638
|
+
vcsIncluded: zod.z.array(CredentialType).nullish()
|
|
2635
2639
|
});
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
}),
|
|
2646
|
-
from: zod.z.string().optional(),
|
|
2647
|
-
to: zod.z.string().optional()
|
|
2640
|
+
|
|
2641
|
+
// creating this because SmartContractDeployment has an issue with AddressSchema
|
|
2642
|
+
// during rpcPublisher.send
|
|
2643
|
+
// also the parsing of the queryconfiguration fields changes type slightly as well.
|
|
2644
|
+
var AbbreviatedWorkflowScenario = Scenario.omit({
|
|
2645
|
+
vcsIncluded: true,
|
|
2646
|
+
queries: true
|
|
2647
|
+
}).extend({
|
|
2648
|
+
queries: zod.z.array(QueryConfig)
|
|
2648
2649
|
});
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
id: zod.z.string(),
|
|
2652
|
-
typ: zod.z.string(),
|
|
2653
|
-
type: zod.z.string(),
|
|
2654
|
-
thid: zod.z.string(),
|
|
2655
|
-
body: zod.z.object({
|
|
2656
|
-
url: zod.z.string(),
|
|
2657
|
-
credentials: zod.z.unknown()
|
|
2658
|
-
}),
|
|
2659
|
-
from: zod.z.string(),
|
|
2660
|
-
to: zod.z.string()
|
|
2650
|
+
var TemplateScenario = Scenario.omit({
|
|
2651
|
+
workspaceId: true
|
|
2661
2652
|
});
|
|
2662
|
-
var
|
|
2663
|
-
id:
|
|
2664
|
-
typ: zod.z.string(),
|
|
2665
|
-
type: zod.z.string(),
|
|
2666
|
-
thid: zod.z.string(),
|
|
2667
|
-
body: zod.z.object({
|
|
2668
|
-
callbackUrl: zod.z.string(),
|
|
2669
|
-
reason: zod.z.string(),
|
|
2670
|
-
scope: zod.z.unknown()
|
|
2671
|
-
}),
|
|
2672
|
-
from: zod.z.string()
|
|
2653
|
+
var CreateTemplateScenario = TemplateScenario.omit({
|
|
2654
|
+
id: true
|
|
2673
2655
|
});
|
|
2674
|
-
var QrCodeLinkWithSchemaType = zod.z.object({
|
|
2675
|
-
qrCodeLink: zod.z.string().nullish(),
|
|
2676
|
-
schemaType: zod.z.string().nullish()
|
|
2677
|
-
}).describe("Polygon ID Verifiable Credential Offer, to be consumed by the Polygon ID Wallet");
|
|
2678
|
-
function parseIden3Message(input) {
|
|
2679
|
-
var prefix = "request_uri=";
|
|
2680
|
-
var startIndex = input.indexOf(prefix);
|
|
2681
|
-
if (startIndex === -1) {
|
|
2682
|
-
throw new Error("Wrong request - request doesn't start with request_uri=");
|
|
2683
|
-
}
|
|
2684
|
-
return zod.z.string().url().parse(input.substring(startIndex + prefix.length));
|
|
2685
|
-
}
|
|
2686
|
-
function parseSessionIdFromUrl(urlString) {
|
|
2687
|
-
var url = new URL(urlString);
|
|
2688
|
-
var params = new URLSearchParams(url.search);
|
|
2689
|
-
var sessionId = params.get("sessionID");
|
|
2690
|
-
if (!sessionId) {
|
|
2691
|
-
throw new Error("No Session Id found in callback url");
|
|
2692
|
-
}
|
|
2693
|
-
return sessionId;
|
|
2694
|
-
}
|
|
2695
2656
|
|
|
2696
2657
|
var ScenarioAuthorizationData = zod.z.object({
|
|
2697
2658
|
executionId: UuidString,
|
|
@@ -3275,41 +3236,11 @@ var CreateAuthRequestProps = zod.z.object({
|
|
|
3275
3236
|
thid: zod.z.string().uuid(),
|
|
3276
3237
|
message: zod.z.string().describe("Message shown to the user")
|
|
3277
3238
|
});
|
|
3278
|
-
var CreateZKProofRequestProps = zod.z.object({
|
|
3279
|
-
requestId: zod.z.number(),
|
|
3280
|
-
query: QueryConfigSimplified,
|
|
3281
|
-
onChainVerification: zod.z["boolean"]().optional()
|
|
3282
|
-
});
|
|
3283
3239
|
var AllScenarioExecutionAuthorizationData = zod.z.object({
|
|
3284
3240
|
executionId: UuidString,
|
|
3285
3241
|
projectId: zod.z.string(),
|
|
3286
3242
|
scenarioExecutionIds: zod.z.array(UuidString)
|
|
3287
3243
|
});
|
|
3288
|
-
var ProjectAuthorizationData = zod.z.object({
|
|
3289
|
-
sessionId: zod.z.string(),
|
|
3290
|
-
projectId: zod.z.string(),
|
|
3291
|
-
address: zod.z.string(),
|
|
3292
|
-
authorizations: zod.z.map(zod.z.string(), ScenarioAuthorizationData)
|
|
3293
|
-
});
|
|
3294
|
-
var OnChainZKP = zod.z.object({
|
|
3295
|
-
scenarioVerifierAddress: AddressSchema,
|
|
3296
|
-
zkpRequests: zod.z.array(ZKPRequest)
|
|
3297
|
-
});
|
|
3298
|
-
var OnChainZKPFromNexeraID = zod.z.object({
|
|
3299
|
-
scenarioVerifierAddress: AddressSchema,
|
|
3300
|
-
zkpRequests: zod.z.array(ZKPRequestFromZKVerifier)
|
|
3301
|
-
});
|
|
3302
|
-
var OnChainZKPScenarioFromCms = zod.z.object({
|
|
3303
|
-
scenarioVerifierAddress: AddressSchema,
|
|
3304
|
-
zkpRequests: zod.z.array(QueryConfigSimplified)
|
|
3305
|
-
});
|
|
3306
|
-
var OnChainZKPPayload = zod.z.object({
|
|
3307
|
-
requestId: zod.z.bigint(),
|
|
3308
|
-
inputs: zod.z.array(zod.z.bigint()),
|
|
3309
|
-
a: zod.z.tuple([zod.z.bigint(), zod.z.bigint()]),
|
|
3310
|
-
b: zod.z.tuple([zod.z.tuple([zod.z.bigint(), zod.z.bigint()]), zod.z.tuple([zod.z.bigint(), zod.z.bigint()])]),
|
|
3311
|
-
c: zod.z.tuple([zod.z.bigint(), zod.z.bigint()])
|
|
3312
|
-
});
|
|
3313
3244
|
var SCENARIO_AUTHORIZATION_STATUSES = ["pending", "authorised", "unauthorised"];
|
|
3314
3245
|
var ScenarioAuthorizationStatus = zod.z["enum"](SCENARIO_AUTHORIZATION_STATUSES);
|
|
3315
3246
|
|
|
@@ -3327,10 +3258,6 @@ var RequiredVerificationData = zod.z.object({
|
|
|
3327
3258
|
ruleEngine: zod.z.object({
|
|
3328
3259
|
requiredData: zod.z.array(RequiredDataRowSchema)
|
|
3329
3260
|
}),
|
|
3330
|
-
onchainZKP: zod.z.object({
|
|
3331
|
-
requiredData: zod.z.array(RequiredDataRowSchema),
|
|
3332
|
-
conditions: zod.z.array(ZKPRequest)
|
|
3333
|
-
}),
|
|
3334
3261
|
offchainZKP: zod.z.object({
|
|
3335
3262
|
requiredData: zod.z.array(RequiredDataRowSchema),
|
|
3336
3263
|
verifications: zod.z.array(zod.z.object({
|
|
@@ -3369,6 +3296,7 @@ exports.ALPHA_2_COUNTRIES = ALPHA_2_COUNTRIES;
|
|
|
3369
3296
|
exports.ARRAY_OPERATORS = ARRAY_OPERATORS;
|
|
3370
3297
|
exports.AUTHORIZATION_REQUEST_MESSAGE_TYPES = AUTHORIZATION_REQUEST_MESSAGE_TYPES;
|
|
3371
3298
|
exports.AVAILABLE_FLOWS = AVAILABLE_FLOWS;
|
|
3299
|
+
exports.AbbreviatedWorkflowScenario = AbbreviatedWorkflowScenario;
|
|
3372
3300
|
exports.ActionId = ActionId;
|
|
3373
3301
|
exports.ActionPrefix = ActionPrefix;
|
|
3374
3302
|
exports.AdditionalCustomerInformationParams = AdditionalCustomerInformationParams;
|
|
@@ -3399,6 +3327,7 @@ exports.BLOCKCHAIN_NAMESPACES_NAMES = BLOCKCHAIN_NAMESPACES_NAMES;
|
|
|
3399
3327
|
exports.BLOCKCHAIN_NAMESPACE_TO_NAME = BLOCKCHAIN_NAMESPACE_TO_NAME;
|
|
3400
3328
|
exports.BLOCKCHAIN_NAME_TO_NAMESPACE = BLOCKCHAIN_NAME_TO_NAMESPACE;
|
|
3401
3329
|
exports.BOOLEAN_OPERATORS = BOOLEAN_OPERATORS;
|
|
3330
|
+
exports.BaseQueryResponse = BaseQueryResponse;
|
|
3402
3331
|
exports.BasicCustomerContactInformation = BasicCustomerContactInformation;
|
|
3403
3332
|
exports.BlockchainAddress = BlockchainAddress;
|
|
3404
3333
|
exports.BlockchainId = BlockchainId;
|
|
@@ -3419,7 +3348,6 @@ exports.ChallengeId = ChallengeId;
|
|
|
3419
3348
|
exports.ChallengePrefix = ChallengePrefix;
|
|
3420
3349
|
exports.ChallengeQueryOperator = ChallengeQueryOperator;
|
|
3421
3350
|
exports.ChallengeQueryOperatorToOperator = ChallengeQueryOperatorToOperator;
|
|
3422
|
-
exports.ChallengeQueryOperators = ChallengeQueryOperators;
|
|
3423
3351
|
exports.ChallengeQuerySchema = ChallengeQuerySchema;
|
|
3424
3352
|
exports.ChallengeResponse = ChallengeResponse;
|
|
3425
3353
|
exports.CircuitId = CircuitId;
|
|
@@ -3431,7 +3359,7 @@ exports.CosmosSignature = CosmosSignature;
|
|
|
3431
3359
|
exports.CreateAuthRequestProps = CreateAuthRequestProps;
|
|
3432
3360
|
exports.CreateQueryConfigurationInput = CreateQueryConfigurationInput;
|
|
3433
3361
|
exports.CreateQueryConfigurationResponse = CreateQueryConfigurationResponse;
|
|
3434
|
-
exports.
|
|
3362
|
+
exports.CreateTemplateScenario = CreateTemplateScenario;
|
|
3435
3363
|
exports.CredentialMediaType = CredentialMediaType;
|
|
3436
3364
|
exports.CredentialNames = CredentialNames;
|
|
3437
3365
|
exports.CredentialQrCodeData = CredentialQrCodeData;
|
|
@@ -3465,9 +3393,7 @@ exports.EmailId = EmailId;
|
|
|
3465
3393
|
exports.EmailPrefix = EmailPrefix;
|
|
3466
3394
|
exports.EnvironmentSchema = EnvironmentSchema;
|
|
3467
3395
|
exports.EvmChainId = EvmChainId;
|
|
3468
|
-
exports.
|
|
3469
|
-
exports.ExecuteChallengeQueryInput = ExecuteChallengeQueryInput;
|
|
3470
|
-
exports.ExecuteChallengeQueryResponse = ExecuteChallengeQueryResponse;
|
|
3396
|
+
exports.ExecuteQueryResponse = ExecuteQueryResponse;
|
|
3471
3397
|
exports.ExtendedTezosTxAuthDataSignatureResponse = ExtendedTezosTxAuthDataSignatureResponse;
|
|
3472
3398
|
exports.ExtendedTezosTxAuthInput = ExtendedTezosTxAuthInput;
|
|
3473
3399
|
exports.ExtendedTxAuthDataSignatureResponse = ExtendedTxAuthDataSignatureResponse;
|
|
@@ -3564,19 +3490,14 @@ exports.OLD_IDImageCredentialSubjectSchema = OLD_IDImageCredentialSubjectSchema;
|
|
|
3564
3490
|
exports.OLD_IDInformationCredentialSubjectSchema = OLD_IDInformationCredentialSubjectSchema;
|
|
3565
3491
|
exports.OLD_ProofOfResidenceCredentialSubjectSchema = OLD_ProofOfResidenceCredentialSubjectSchema;
|
|
3566
3492
|
exports.OLD_SelfieImageCredentialSubjectSchema = OLD_SelfieImageCredentialSubjectSchema;
|
|
3567
|
-
exports.OPAChallengeQuery = OPAChallengeQuery;
|
|
3568
3493
|
exports.OPERATORS = OPERATORS;
|
|
3569
3494
|
exports.OcvSdkInitialized = OcvSdkInitialized;
|
|
3570
3495
|
exports.OffChainScenarioExecutionData = OffChainScenarioExecutionData;
|
|
3571
3496
|
exports.OffChainZKP = OffChainZKP;
|
|
3572
3497
|
exports.OffChainZKPRuleResult = OffChainZKPRuleResult;
|
|
3573
3498
|
exports.OnChainScenarioExecutionData = OnChainScenarioExecutionData;
|
|
3574
|
-
exports.OnChainZKP = OnChainZKP;
|
|
3575
|
-
exports.OnChainZKPFromNexeraID = OnChainZKPFromNexeraID;
|
|
3576
|
-
exports.OnChainZKPPayload = OnChainZKPPayload;
|
|
3577
|
-
exports.OnChainZKPScenarioFromCms = OnChainZKPScenarioFromCms;
|
|
3578
|
-
exports.OpaChallengeQueryResponse = OpaChallengeQueryResponse;
|
|
3579
3499
|
exports.Operator = Operator;
|
|
3500
|
+
exports.OperatorMappings = OperatorMappings;
|
|
3580
3501
|
exports.OperatorToChallengeQueryOperator = OperatorToChallengeQueryOperator;
|
|
3581
3502
|
exports.OrganizationId = OrganizationId;
|
|
3582
3503
|
exports.OtpCode = OtpCode;
|
|
@@ -3595,7 +3516,6 @@ exports.PolygonIdResponse = PolygonIdResponse;
|
|
|
3595
3516
|
exports.PolygonIdResponseData = PolygonIdResponseData;
|
|
3596
3517
|
exports.PolygonNetworkNames = PolygonNetworkNames;
|
|
3597
3518
|
exports.PrivateKey = PrivateKey;
|
|
3598
|
-
exports.ProjectAuthorizationData = ProjectAuthorizationData;
|
|
3599
3519
|
exports.ProofData = ProofData;
|
|
3600
3520
|
exports.ProofOfResidenceCredentialSubjectSchema = ProofOfResidenceCredentialSubjectSchema;
|
|
3601
3521
|
exports.PublicKey = PublicKey;
|
|
@@ -3621,6 +3541,7 @@ exports.RuleResultStatuses = RuleResultStatuses;
|
|
|
3621
3541
|
exports.SCENARIO_AUTHORIZATION_STATUSES = SCENARIO_AUTHORIZATION_STATUSES;
|
|
3622
3542
|
exports.STRING_OPERATORS = STRING_OPERATORS;
|
|
3623
3543
|
exports.SUPPORTED_TYPES = SUPPORTED_TYPES;
|
|
3544
|
+
exports.Scenario = Scenario;
|
|
3624
3545
|
exports.ScenarioAuthorizationData = ScenarioAuthorizationData;
|
|
3625
3546
|
exports.ScenarioAuthorizationStatus = ScenarioAuthorizationStatus;
|
|
3626
3547
|
exports.ScenarioExecutionData = ScenarioExecutionData;
|
|
@@ -3628,8 +3549,6 @@ exports.ScenarioExecutionNotification = ScenarioExecutionNotification;
|
|
|
3628
3549
|
exports.ScenarioExecutionResponse = ScenarioExecutionResponse;
|
|
3629
3550
|
exports.ScenarioId = ScenarioId;
|
|
3630
3551
|
exports.ScenarioPrefix = ScenarioPrefix;
|
|
3631
|
-
exports.ScenarioStatus = ScenarioStatus;
|
|
3632
|
-
exports.ScenarioStatuses = ScenarioStatuses;
|
|
3633
3552
|
exports.ScenarioType = ScenarioType;
|
|
3634
3553
|
exports.ScenarioTypes = ScenarioTypes;
|
|
3635
3554
|
exports.SdkVerificationOutput = SdkVerificationOutput;
|
|
@@ -3655,6 +3574,7 @@ exports.TagId = TagId;
|
|
|
3655
3574
|
exports.TagPrefix = TagPrefix;
|
|
3656
3575
|
exports.TagsToTransactionReviewsId = TagsToTransactionReviewsId;
|
|
3657
3576
|
exports.TagsToTransactionReviewsPrefix = TagsToTransactionReviewsPrefix;
|
|
3577
|
+
exports.TemplateScenario = TemplateScenario;
|
|
3658
3578
|
exports.TestId = TestId;
|
|
3659
3579
|
exports.TestPrefix = TestPrefix;
|
|
3660
3580
|
exports.TezosAddress = TezosAddress;
|