@nexeraid/identity-schemas 2.3.26-dev → 2.3.27-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/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +108 -108
- package/dist/declarations/src/transaction.schema.d.ts +2 -2
- package/dist/declarations/src/transaction.schema.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +1219 -1219
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts +24 -24
- package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts.map +1 -1
- package/dist/nexeraid-identity-schemas.cjs.dev.js +1 -1
- package/dist/nexeraid-identity-schemas.cjs.prod.js +1 -1
- package/dist/nexeraid-identity-schemas.esm.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{transaction.schema-2141e819.cjs.dev.js → transaction.schema-009d03d6.cjs.dev.js} +1 -1
- package/dist/{transaction.schema-7297e823.cjs.prod.js → transaction.schema-309817d0.cjs.prod.js} +1 -1
- package/dist/{transaction.schema-fb699c40.esm.js → transaction.schema-86683e90.esm.js} +1 -1
- package/package.json +1 -1
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +20 -20
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +20 -20
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +20 -20
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ var zod = require('zod');
|
|
|
6
6
|
var identityApi_schema = require('../../dist/identity-api.schema-a16ec830.cjs.dev.js');
|
|
7
7
|
var customers_schema = require('../../dist/customers.schema-4a2cc1a8.cjs.dev.js');
|
|
8
8
|
var zodToJsonSchema = require('zod-to-json-schema');
|
|
9
|
-
var transaction_schema = require('../../dist/transaction.schema-
|
|
9
|
+
var transaction_schema = require('../../dist/transaction.schema-009d03d6.cjs.dev.js');
|
|
10
10
|
require('nanoid');
|
|
11
11
|
|
|
12
12
|
// Alert Statuses
|
|
@@ -193,22 +193,22 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
|
|
|
193
193
|
});
|
|
194
194
|
|
|
195
195
|
var TMSWebhookPayload = zod.z.object({
|
|
196
|
+
workspaceId: zod.z.coerce.string(),
|
|
196
197
|
id: zod.z.string(),
|
|
197
|
-
|
|
198
|
-
externalTransactionId: zod.z.string(),
|
|
199
|
-
transactionDate: zod.z.coerce.date().nullable(),
|
|
198
|
+
transactionId: zod.z.coerce.string(),
|
|
200
199
|
transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
200
|
+
status: zod.z["enum"](transaction_schema.TransactionReviewStatuses),
|
|
201
|
+
riskScore: zod.z.string().nullable(),
|
|
202
|
+
riskLevel: zod.z.string().nullable(),
|
|
203
|
+
customerId: identityApi_schema.UuidString,
|
|
204
|
+
reason: zod.z.string().nullable(),
|
|
205
|
+
externalTransactionId: zod.z.coerce.string(),
|
|
206
|
+
transactionDate: zod.z.coerce.date(),
|
|
207
207
|
createdAt: zod.z.coerce.date(),
|
|
208
208
|
updatedAt: zod.z.coerce.date().nullable()
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
-
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "
|
|
211
|
+
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "transaction.created", "transaction.updated", "transaction.deleted"];
|
|
212
212
|
var WebhookEventType = zod.z["enum"](WebhookEventTypes);
|
|
213
213
|
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"];
|
|
214
214
|
var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
|
|
@@ -272,17 +272,17 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
|
|
|
272
272
|
archived: zod.z["boolean"](),
|
|
273
273
|
schemas: zod.z.record(zod.z.unknown())
|
|
274
274
|
}), zod.z.object({
|
|
275
|
-
name: zod.z.literal("
|
|
275
|
+
name: zod.z.literal("transaction.created"),
|
|
276
276
|
description: zod.z.string(),
|
|
277
277
|
archived: zod.z["boolean"](),
|
|
278
278
|
schemas: zod.z.record(zod.z.unknown())
|
|
279
279
|
}), zod.z.object({
|
|
280
|
-
name: zod.z.literal("
|
|
280
|
+
name: zod.z.literal("transaction.updated"),
|
|
281
281
|
description: zod.z.string(),
|
|
282
282
|
archived: zod.z["boolean"](),
|
|
283
283
|
schemas: zod.z.record(zod.z.unknown())
|
|
284
284
|
}), zod.z.object({
|
|
285
|
-
name: zod.z.literal("
|
|
285
|
+
name: zod.z.literal("transaction.deleted"),
|
|
286
286
|
description: zod.z.string(),
|
|
287
287
|
archived: zod.z["boolean"](),
|
|
288
288
|
schemas: zod.z.record(zod.z.unknown())
|
|
@@ -326,15 +326,15 @@ var AlertDeletedPayload = zod.z.object({
|
|
|
326
326
|
payload: AlertWebhookPayload
|
|
327
327
|
});
|
|
328
328
|
var TMSCreatedPayload = zod.z.object({
|
|
329
|
-
eventType: zod.z.literal("
|
|
329
|
+
eventType: zod.z.literal("transaction.created"),
|
|
330
330
|
payload: TMSWebhookPayload
|
|
331
331
|
});
|
|
332
332
|
var TMSUpdatedPayload = zod.z.object({
|
|
333
|
-
eventType: zod.z.literal("
|
|
333
|
+
eventType: zod.z.literal("transaction.updated"),
|
|
334
334
|
payload: TMSWebhookPayload
|
|
335
335
|
});
|
|
336
336
|
var TMSDeletedPayload = zod.z.object({
|
|
337
|
-
eventType: zod.z.literal("
|
|
337
|
+
eventType: zod.z.literal("transaction.deleted"),
|
|
338
338
|
payload: TMSWebhookPayload
|
|
339
339
|
});
|
|
340
340
|
var WebhookScenariosEventPayload = SendScenarioPayload;
|
|
@@ -649,21 +649,21 @@ var NexeraWebhookEvents = [{
|
|
|
649
649
|
1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
|
|
650
650
|
}
|
|
651
651
|
}, {
|
|
652
|
-
name: "
|
|
652
|
+
name: "transaction.created",
|
|
653
653
|
description: "Transaction Created Webhook",
|
|
654
654
|
archived: false,
|
|
655
655
|
schemas: {
|
|
656
656
|
1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
|
|
657
657
|
}
|
|
658
658
|
}, {
|
|
659
|
-
name: "
|
|
659
|
+
name: "transaction.updated",
|
|
660
660
|
description: "Transaction Updated Webhook",
|
|
661
661
|
archived: false,
|
|
662
662
|
schemas: {
|
|
663
663
|
1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
|
|
664
664
|
}
|
|
665
665
|
}, {
|
|
666
|
-
name: "
|
|
666
|
+
name: "transaction.deleted",
|
|
667
667
|
description: "Transaction Deleted Webhook",
|
|
668
668
|
archived: false,
|
|
669
669
|
schemas: {
|
|
@@ -6,7 +6,7 @@ var zod = require('zod');
|
|
|
6
6
|
var identityApi_schema = require('../../dist/identity-api.schema-f103ebd9.cjs.prod.js');
|
|
7
7
|
var customers_schema = require('../../dist/customers.schema-82dfa9fd.cjs.prod.js');
|
|
8
8
|
var zodToJsonSchema = require('zod-to-json-schema');
|
|
9
|
-
var transaction_schema = require('../../dist/transaction.schema-
|
|
9
|
+
var transaction_schema = require('../../dist/transaction.schema-309817d0.cjs.prod.js');
|
|
10
10
|
require('nanoid');
|
|
11
11
|
|
|
12
12
|
// Alert Statuses
|
|
@@ -193,22 +193,22 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
|
|
|
193
193
|
});
|
|
194
194
|
|
|
195
195
|
var TMSWebhookPayload = zod.z.object({
|
|
196
|
+
workspaceId: zod.z.coerce.string(),
|
|
196
197
|
id: zod.z.string(),
|
|
197
|
-
|
|
198
|
-
externalTransactionId: zod.z.string(),
|
|
199
|
-
transactionDate: zod.z.coerce.date().nullable(),
|
|
198
|
+
transactionId: zod.z.coerce.string(),
|
|
200
199
|
transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
200
|
+
status: zod.z["enum"](transaction_schema.TransactionReviewStatuses),
|
|
201
|
+
riskScore: zod.z.string().nullable(),
|
|
202
|
+
riskLevel: zod.z.string().nullable(),
|
|
203
|
+
customerId: identityApi_schema.UuidString,
|
|
204
|
+
reason: zod.z.string().nullable(),
|
|
205
|
+
externalTransactionId: zod.z.coerce.string(),
|
|
206
|
+
transactionDate: zod.z.coerce.date(),
|
|
207
207
|
createdAt: zod.z.coerce.date(),
|
|
208
208
|
updatedAt: zod.z.coerce.date().nullable()
|
|
209
209
|
});
|
|
210
210
|
|
|
211
|
-
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "
|
|
211
|
+
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "transaction.created", "transaction.updated", "transaction.deleted"];
|
|
212
212
|
var WebhookEventType = zod.z["enum"](WebhookEventTypes);
|
|
213
213
|
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"];
|
|
214
214
|
var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
|
|
@@ -272,17 +272,17 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
|
|
|
272
272
|
archived: zod.z["boolean"](),
|
|
273
273
|
schemas: zod.z.record(zod.z.unknown())
|
|
274
274
|
}), zod.z.object({
|
|
275
|
-
name: zod.z.literal("
|
|
275
|
+
name: zod.z.literal("transaction.created"),
|
|
276
276
|
description: zod.z.string(),
|
|
277
277
|
archived: zod.z["boolean"](),
|
|
278
278
|
schemas: zod.z.record(zod.z.unknown())
|
|
279
279
|
}), zod.z.object({
|
|
280
|
-
name: zod.z.literal("
|
|
280
|
+
name: zod.z.literal("transaction.updated"),
|
|
281
281
|
description: zod.z.string(),
|
|
282
282
|
archived: zod.z["boolean"](),
|
|
283
283
|
schemas: zod.z.record(zod.z.unknown())
|
|
284
284
|
}), zod.z.object({
|
|
285
|
-
name: zod.z.literal("
|
|
285
|
+
name: zod.z.literal("transaction.deleted"),
|
|
286
286
|
description: zod.z.string(),
|
|
287
287
|
archived: zod.z["boolean"](),
|
|
288
288
|
schemas: zod.z.record(zod.z.unknown())
|
|
@@ -326,15 +326,15 @@ var AlertDeletedPayload = zod.z.object({
|
|
|
326
326
|
payload: AlertWebhookPayload
|
|
327
327
|
});
|
|
328
328
|
var TMSCreatedPayload = zod.z.object({
|
|
329
|
-
eventType: zod.z.literal("
|
|
329
|
+
eventType: zod.z.literal("transaction.created"),
|
|
330
330
|
payload: TMSWebhookPayload
|
|
331
331
|
});
|
|
332
332
|
var TMSUpdatedPayload = zod.z.object({
|
|
333
|
-
eventType: zod.z.literal("
|
|
333
|
+
eventType: zod.z.literal("transaction.updated"),
|
|
334
334
|
payload: TMSWebhookPayload
|
|
335
335
|
});
|
|
336
336
|
var TMSDeletedPayload = zod.z.object({
|
|
337
|
-
eventType: zod.z.literal("
|
|
337
|
+
eventType: zod.z.literal("transaction.deleted"),
|
|
338
338
|
payload: TMSWebhookPayload
|
|
339
339
|
});
|
|
340
340
|
var WebhookScenariosEventPayload = SendScenarioPayload;
|
|
@@ -649,21 +649,21 @@ var NexeraWebhookEvents = [{
|
|
|
649
649
|
1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
|
|
650
650
|
}
|
|
651
651
|
}, {
|
|
652
|
-
name: "
|
|
652
|
+
name: "transaction.created",
|
|
653
653
|
description: "Transaction Created Webhook",
|
|
654
654
|
archived: false,
|
|
655
655
|
schemas: {
|
|
656
656
|
1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
|
|
657
657
|
}
|
|
658
658
|
}, {
|
|
659
|
-
name: "
|
|
659
|
+
name: "transaction.updated",
|
|
660
660
|
description: "Transaction Updated Webhook",
|
|
661
661
|
archived: false,
|
|
662
662
|
schemas: {
|
|
663
663
|
1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
|
|
664
664
|
}
|
|
665
665
|
}, {
|
|
666
|
-
name: "
|
|
666
|
+
name: "transaction.deleted",
|
|
667
667
|
description: "Transaction Deleted Webhook",
|
|
668
668
|
archived: false,
|
|
669
669
|
schemas: {
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ae as UuidString, el as ExternalCustomerId, as as RiskScoreType, au as CustomerType, aA as CustomerOnboardingLevel, aC as CustomerStatus, ak as ISO3CountryCode, a2 as BlockchainAddress, ce as RuleResultStatus, eE as GenericVerifiableCredentialSchema, eN as _toArray, eM as _toConsumableArray, ad as EnvironmentSchema } from '../../dist/identity-api.schema-d1954107.esm.js';
|
|
3
3
|
import { M as MergedProviders, S as ScoringAnalysisResponse, B as BitRankVerifiedResponse, a as MerkleAddressResponse, C as ChainalysisRiskAssessmentResponse, I as IpQualityServiceAnalysisResponse, b as ComplyAdvantageSearchResponse } from '../../dist/customers.schema-2a6a70d5.esm.js';
|
|
4
4
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
5
|
-
import { T as TransactionTypes } from '../../dist/transaction.schema-
|
|
5
|
+
import { T as TransactionTypes, d as TransactionReviewStatuses } from '../../dist/transaction.schema-86683e90.esm.js';
|
|
6
6
|
import 'nanoid';
|
|
7
7
|
|
|
8
8
|
// Alert Statuses
|
|
@@ -189,22 +189,22 @@ var VerificationFlowChecksWebhookPayload = z.object({
|
|
|
189
189
|
});
|
|
190
190
|
|
|
191
191
|
var TMSWebhookPayload = z.object({
|
|
192
|
+
workspaceId: z.coerce.string(),
|
|
192
193
|
id: z.string(),
|
|
193
|
-
|
|
194
|
-
externalTransactionId: z.string(),
|
|
195
|
-
transactionDate: z.coerce.date().nullable(),
|
|
194
|
+
transactionId: z.coerce.string(),
|
|
196
195
|
transactionType: z["enum"](TransactionTypes),
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
196
|
+
status: z["enum"](TransactionReviewStatuses),
|
|
197
|
+
riskScore: z.string().nullable(),
|
|
198
|
+
riskLevel: z.string().nullable(),
|
|
199
|
+
customerId: UuidString,
|
|
200
|
+
reason: z.string().nullable(),
|
|
201
|
+
externalTransactionId: z.coerce.string(),
|
|
202
|
+
transactionDate: z.coerce.date(),
|
|
203
203
|
createdAt: z.coerce.date(),
|
|
204
204
|
updatedAt: z.coerce.date().nullable()
|
|
205
205
|
});
|
|
206
206
|
|
|
207
|
-
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "
|
|
207
|
+
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "transaction.created", "transaction.updated", "transaction.deleted"];
|
|
208
208
|
var WebhookEventType = z["enum"](WebhookEventTypes);
|
|
209
209
|
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"];
|
|
210
210
|
var WebhookEventTypeForm = z["enum"](WebhookEventTypesForm);
|
|
@@ -268,17 +268,17 @@ var NexeraEventTypes = z.union([z.object({
|
|
|
268
268
|
archived: z["boolean"](),
|
|
269
269
|
schemas: z.record(z.unknown())
|
|
270
270
|
}), z.object({
|
|
271
|
-
name: z.literal("
|
|
271
|
+
name: z.literal("transaction.created"),
|
|
272
272
|
description: z.string(),
|
|
273
273
|
archived: z["boolean"](),
|
|
274
274
|
schemas: z.record(z.unknown())
|
|
275
275
|
}), z.object({
|
|
276
|
-
name: z.literal("
|
|
276
|
+
name: z.literal("transaction.updated"),
|
|
277
277
|
description: z.string(),
|
|
278
278
|
archived: z["boolean"](),
|
|
279
279
|
schemas: z.record(z.unknown())
|
|
280
280
|
}), z.object({
|
|
281
|
-
name: z.literal("
|
|
281
|
+
name: z.literal("transaction.deleted"),
|
|
282
282
|
description: z.string(),
|
|
283
283
|
archived: z["boolean"](),
|
|
284
284
|
schemas: z.record(z.unknown())
|
|
@@ -322,15 +322,15 @@ var AlertDeletedPayload = z.object({
|
|
|
322
322
|
payload: AlertWebhookPayload
|
|
323
323
|
});
|
|
324
324
|
var TMSCreatedPayload = z.object({
|
|
325
|
-
eventType: z.literal("
|
|
325
|
+
eventType: z.literal("transaction.created"),
|
|
326
326
|
payload: TMSWebhookPayload
|
|
327
327
|
});
|
|
328
328
|
var TMSUpdatedPayload = z.object({
|
|
329
|
-
eventType: z.literal("
|
|
329
|
+
eventType: z.literal("transaction.updated"),
|
|
330
330
|
payload: TMSWebhookPayload
|
|
331
331
|
});
|
|
332
332
|
var TMSDeletedPayload = z.object({
|
|
333
|
-
eventType: z.literal("
|
|
333
|
+
eventType: z.literal("transaction.deleted"),
|
|
334
334
|
payload: TMSWebhookPayload
|
|
335
335
|
});
|
|
336
336
|
var WebhookScenariosEventPayload = SendScenarioPayload;
|
|
@@ -645,21 +645,21 @@ var NexeraWebhookEvents = [{
|
|
|
645
645
|
1: zodToJsonSchema(AlertDeletedPayload)
|
|
646
646
|
}
|
|
647
647
|
}, {
|
|
648
|
-
name: "
|
|
648
|
+
name: "transaction.created",
|
|
649
649
|
description: "Transaction Created Webhook",
|
|
650
650
|
archived: false,
|
|
651
651
|
schemas: {
|
|
652
652
|
1: zodToJsonSchema(TMSCreatedPayload)
|
|
653
653
|
}
|
|
654
654
|
}, {
|
|
655
|
-
name: "
|
|
655
|
+
name: "transaction.updated",
|
|
656
656
|
description: "Transaction Updated Webhook",
|
|
657
657
|
archived: false,
|
|
658
658
|
schemas: {
|
|
659
659
|
1: zodToJsonSchema(TMSUpdatedPayload)
|
|
660
660
|
}
|
|
661
661
|
}, {
|
|
662
|
-
name: "
|
|
662
|
+
name: "transaction.deleted",
|
|
663
663
|
description: "Transaction Deleted Webhook",
|
|
664
664
|
archived: false,
|
|
665
665
|
schemas: {
|