@nexeraid/identity-schemas 2.3.18-dev → 2.3.19-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/webhooks/index.d.ts +1 -0
- package/dist/declarations/src/webhooks/index.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +2356 -38
- package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -1
- package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts +46 -0
- package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts.map +1 -0
- package/dist/nexeraid-identity-schemas.cjs.dev.js +15 -36
- package/dist/nexeraid-identity-schemas.cjs.prod.js +15 -36
- package/dist/nexeraid-identity-schemas.esm.js +2 -23
- package/dist/package.json +1 -1
- package/dist/transaction.schema-2141e819.cjs.dev.js +40 -0
- package/dist/transaction.schema-7297e823.cjs.prod.js +40 -0
- package/dist/transaction.schema-fb699c40.esm.js +25 -0
- package/package.json +1 -1
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +95 -5
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +95 -5
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +88 -6
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ae as UuidString, ea as ExternalCustomerId, as as RiskScoreType, au as CustomerType, aA as CustomerOnboardingLevel, aC as CustomerStatus, ak as ISO3CountryCode, a2 as BlockchainAddress, c5 as RuleResultStatus, et as GenericVerifiableCredentialSchema, eC as _toArray, eB as _toConsumableArray, ad as EnvironmentSchema } from '../../dist/identity-api.schema-c82dba7a.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-1e51d306.esm.js';
|
|
4
4
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
5
|
+
import { T as TransactionTypes } from '../../dist/transaction.schema-fb699c40.esm.js';
|
|
5
6
|
import 'nanoid';
|
|
6
7
|
|
|
7
8
|
// Alert Statuses
|
|
@@ -187,9 +188,25 @@ var VerificationFlowChecksWebhookPayload = z.object({
|
|
|
187
188
|
result: z.array(VerificationFlowResult)
|
|
188
189
|
});
|
|
189
190
|
|
|
190
|
-
var
|
|
191
|
+
var TMSWebhookPayload = z.object({
|
|
192
|
+
id: z.string(),
|
|
193
|
+
customerId: UuidString,
|
|
194
|
+
externalTransactionId: z.string(),
|
|
195
|
+
transactionDate: z.coerce.date().nullable(),
|
|
196
|
+
transactionType: z["enum"](TransactionTypes),
|
|
197
|
+
transactionSubType: z.string().nullable(),
|
|
198
|
+
transactionReview: z.string().nullable(),
|
|
199
|
+
transactionInfo: z.string(),
|
|
200
|
+
transactionExtractedInfo: z.string().nullable(),
|
|
201
|
+
originator: z.string(),
|
|
202
|
+
beneficiary: z.string(),
|
|
203
|
+
createdAt: z.coerce.date(),
|
|
204
|
+
updatedAt: z.coerce.date().nullable()
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted", "tms.created", "tms.updated", "tms.deleted"];
|
|
191
208
|
var WebhookEventType = z["enum"](WebhookEventTypes);
|
|
192
|
-
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
|
|
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"];
|
|
193
210
|
var WebhookEventTypeForm = z["enum"](WebhookEventTypesForm);
|
|
194
211
|
var AttemptsStatus = {
|
|
195
212
|
Success: 0,
|
|
@@ -250,6 +267,21 @@ var NexeraEventTypes = z.union([z.object({
|
|
|
250
267
|
description: z.string(),
|
|
251
268
|
archived: z["boolean"](),
|
|
252
269
|
schemas: z.record(z.unknown())
|
|
270
|
+
}), z.object({
|
|
271
|
+
name: z.literal("tms.created"),
|
|
272
|
+
description: z.string(),
|
|
273
|
+
archived: z["boolean"](),
|
|
274
|
+
schemas: z.record(z.unknown())
|
|
275
|
+
}), z.object({
|
|
276
|
+
name: z.literal("tms.updated"),
|
|
277
|
+
description: z.string(),
|
|
278
|
+
archived: z["boolean"](),
|
|
279
|
+
schemas: z.record(z.unknown())
|
|
280
|
+
}), z.object({
|
|
281
|
+
name: z.literal("tms.deleted"),
|
|
282
|
+
description: z.string(),
|
|
283
|
+
archived: z["boolean"](),
|
|
284
|
+
schemas: z.record(z.unknown())
|
|
253
285
|
})]);
|
|
254
286
|
|
|
255
287
|
/**
|
|
@@ -289,11 +321,24 @@ var AlertDeletedPayload = z.object({
|
|
|
289
321
|
eventType: z.literal("alert.deleted"),
|
|
290
322
|
payload: AlertWebhookPayload
|
|
291
323
|
});
|
|
324
|
+
var TMSCreatedPayload = z.object({
|
|
325
|
+
eventType: z.literal("tms.created"),
|
|
326
|
+
payload: TMSWebhookPayload
|
|
327
|
+
});
|
|
328
|
+
var TMSUpdatedPayload = z.object({
|
|
329
|
+
eventType: z.literal("tms.updated"),
|
|
330
|
+
payload: TMSWebhookPayload
|
|
331
|
+
});
|
|
332
|
+
var TMSDeletedPayload = z.object({
|
|
333
|
+
eventType: z.literal("tms.deleted"),
|
|
334
|
+
payload: TMSWebhookPayload
|
|
335
|
+
});
|
|
292
336
|
var WebhookScenariosEventPayload = SendScenarioPayload;
|
|
293
337
|
var WebhookVerificationEventPayload = SendVerificationFlowPayload;
|
|
294
338
|
var WebhookCustomerEventPayload = z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
|
|
295
339
|
var WebhookAlertEventPayload = z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
|
|
296
|
-
var
|
|
340
|
+
var WebhookTMSEventPayload = z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]);
|
|
341
|
+
var WebhookEventPayload = z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
|
|
297
342
|
var AllNexeraEventTypes = z.array(NexeraEventTypes);
|
|
298
343
|
var NexeraSvixEnvironmentConfig = z.object({
|
|
299
344
|
env: EnvironmentSchema
|
|
@@ -315,7 +360,10 @@ var EndpointHandlingForm = z.object({
|
|
|
315
360
|
customerDeleted: z["boolean"]().optional(),
|
|
316
361
|
alertCreated: z["boolean"]().optional(),
|
|
317
362
|
alertUpdated: z["boolean"]().optional(),
|
|
318
|
-
alertDeleted: z["boolean"]().optional()
|
|
363
|
+
alertDeleted: z["boolean"]().optional(),
|
|
364
|
+
tmsCreated: z["boolean"]().optional(),
|
|
365
|
+
tmsUpdated: z["boolean"]().optional(),
|
|
366
|
+
tmsDeleted: z["boolean"]().optional()
|
|
319
367
|
}).optional()
|
|
320
368
|
});
|
|
321
369
|
var WebhookCheckboxInformation = z.object({
|
|
@@ -327,7 +375,8 @@ var EndpointCheckboxsCollapsiblesSchema = z.object({
|
|
|
327
375
|
title: z.string(),
|
|
328
376
|
icon: z.any(),
|
|
329
377
|
description: z.string(),
|
|
330
|
-
webhooks: z.array(WebhookCheckboxInformation)
|
|
378
|
+
webhooks: z.array(WebhookCheckboxInformation),
|
|
379
|
+
type: z.string().optional()
|
|
331
380
|
});
|
|
332
381
|
var EndpointOut = z.object({
|
|
333
382
|
disabled: z["boolean"]().optional(),
|
|
@@ -452,6 +501,18 @@ var SendMessageForAlertDeletedInput = z.object({
|
|
|
452
501
|
projectId: z.string(),
|
|
453
502
|
payload: AlertDeletedPayload
|
|
454
503
|
});
|
|
504
|
+
var SendMessageForTMSCreatedInput = z.object({
|
|
505
|
+
projectId: z.string(),
|
|
506
|
+
payload: TMSCreatedPayload
|
|
507
|
+
});
|
|
508
|
+
var SendMessageForTMSUpdatedInput = z.object({
|
|
509
|
+
projectId: z.string(),
|
|
510
|
+
payload: TMSUpdatedPayload
|
|
511
|
+
});
|
|
512
|
+
var SendMessageForTMSDeletedInput = z.object({
|
|
513
|
+
projectId: z.string(),
|
|
514
|
+
payload: TMSDeletedPayload
|
|
515
|
+
});
|
|
455
516
|
|
|
456
517
|
/**
|
|
457
518
|
*
|
|
@@ -583,6 +644,27 @@ var NexeraWebhookEvents = [{
|
|
|
583
644
|
schemas: {
|
|
584
645
|
1: zodToJsonSchema(AlertDeletedPayload)
|
|
585
646
|
}
|
|
647
|
+
}, {
|
|
648
|
+
name: "tms.created",
|
|
649
|
+
description: "Transaction Created Webhook",
|
|
650
|
+
archived: false,
|
|
651
|
+
schemas: {
|
|
652
|
+
1: zodToJsonSchema(TMSCreatedPayload)
|
|
653
|
+
}
|
|
654
|
+
}, {
|
|
655
|
+
name: "tms.updated",
|
|
656
|
+
description: "Transaction Updated Webhook",
|
|
657
|
+
archived: false,
|
|
658
|
+
schemas: {
|
|
659
|
+
1: zodToJsonSchema(TMSUpdatedPayload)
|
|
660
|
+
}
|
|
661
|
+
}, {
|
|
662
|
+
name: "tms.deleted",
|
|
663
|
+
description: "Transaction Deleted Webhook",
|
|
664
|
+
archived: false,
|
|
665
|
+
schemas: {
|
|
666
|
+
1: zodToJsonSchema(TMSDeletedPayload)
|
|
667
|
+
}
|
|
586
668
|
}];
|
|
587
669
|
|
|
588
|
-
export { ALERT_CHART_TYPES, ALERT_TABLE_COLUMNS, AlertCategories, AlertCategory, AlertChartType, AlertCreatedPayload, AlertDeletedPayload, AlertSeverities, AlertSeverity, AlertStatus, AlertStatuses, AlertTableColumn, AlertType, AlertTypes, AlertUpdatedPayload, AlertWebhookPayload, AllNexeraEventTypes, AttemptDataOut, AttemptsStatus, AttemptsStatusCode, AttemptsStatusCodes, AttemptsStatusKey, AttemptsStatusKeys, CUSTOMER_TOPICS, ConnectionHandlingWorkspaceInput, ConnectionHandlingWorkspaceOutput, CreateEndpointInput, CreateEndpointOutput, CustomerCreatedPayload, CustomerDeletedPayload, CustomerEvents, CustomerTopics, CustomerUpdatedPayload, CustomerWebhookPayload, DeleteEndpointInput, DeleteEndpointOutput, DuplicateData, EndpointCheckboxsCollapsiblesSchema, EndpointHandlingForm, EndpointOut, EventType, GetEndpointSecretInput, GetEndpointSecretOutput, GetMessagesInput, ListAttemptsByEndpointInput, ListAttemptsByMessageInput, ListAttemptsByMessageOutput, ListEndpointsInput, ListEventTypeOutput, ListMessagesInput, ListMessagesOutput, ListResponseEndpointOut, MessageDataOut, MessageDataOutExtended, NexeraSvixEnvironmentConfig, NexeraWebhookEvents, ResendWebhookInput, ScenarioWebhookPayloadSchema, SendExampleMessageInput, SendMessageForAlertCreatedInput, SendMessageForAlertDeletedInput, SendMessageForAlertUpdatedInput, SendMessageForCustomerCreatedInput, SendMessageForCustomerDeletedInput, SendMessageForCustomerUpdatedInput, SendMessageForSendScenarioInput, SendMessageForSendVerificationFlowInput, SendScenarioPayload, SendVerificationFlowPayload, UpdateEndpointInput, UpdateEndpointOutput, UserInfoForDuplicate, VerificationFlowChecksWebhookPayload, VerificationFlowResult, WebhookAlertEventPayload, WebhookCheckboxInformation, WebhookCustomerEventPayload, WebhookEventPayload, WebhookEventType, WebhookEventTypeForm, WebhookEventTypes, WebhookEventTypesForm, WebhookScenariosEventPayload, WebhookVerificationEventPayload };
|
|
670
|
+
export { ALERT_CHART_TYPES, ALERT_TABLE_COLUMNS, AlertCategories, AlertCategory, AlertChartType, AlertCreatedPayload, AlertDeletedPayload, AlertSeverities, AlertSeverity, AlertStatus, AlertStatuses, AlertTableColumn, AlertType, AlertTypes, AlertUpdatedPayload, AlertWebhookPayload, AllNexeraEventTypes, AttemptDataOut, AttemptsStatus, AttemptsStatusCode, AttemptsStatusCodes, AttemptsStatusKey, AttemptsStatusKeys, CUSTOMER_TOPICS, ConnectionHandlingWorkspaceInput, ConnectionHandlingWorkspaceOutput, CreateEndpointInput, CreateEndpointOutput, CustomerCreatedPayload, CustomerDeletedPayload, CustomerEvents, CustomerTopics, CustomerUpdatedPayload, CustomerWebhookPayload, DeleteEndpointInput, DeleteEndpointOutput, DuplicateData, EndpointCheckboxsCollapsiblesSchema, EndpointHandlingForm, EndpointOut, EventType, GetEndpointSecretInput, GetEndpointSecretOutput, GetMessagesInput, ListAttemptsByEndpointInput, ListAttemptsByMessageInput, ListAttemptsByMessageOutput, ListEndpointsInput, ListEventTypeOutput, ListMessagesInput, ListMessagesOutput, ListResponseEndpointOut, MessageDataOut, MessageDataOutExtended, NexeraSvixEnvironmentConfig, NexeraWebhookEvents, ResendWebhookInput, ScenarioWebhookPayloadSchema, SendExampleMessageInput, SendMessageForAlertCreatedInput, SendMessageForAlertDeletedInput, SendMessageForAlertUpdatedInput, SendMessageForCustomerCreatedInput, SendMessageForCustomerDeletedInput, SendMessageForCustomerUpdatedInput, SendMessageForSendScenarioInput, SendMessageForSendVerificationFlowInput, SendMessageForTMSCreatedInput, SendMessageForTMSDeletedInput, SendMessageForTMSUpdatedInput, SendScenarioPayload, SendVerificationFlowPayload, TMSCreatedPayload, TMSDeletedPayload, TMSUpdatedPayload, TMSWebhookPayload, UpdateEndpointInput, UpdateEndpointOutput, UserInfoForDuplicate, VerificationFlowChecksWebhookPayload, VerificationFlowResult, WebhookAlertEventPayload, WebhookCheckboxInformation, WebhookCustomerEventPayload, WebhookEventPayload, WebhookEventType, WebhookEventTypeForm, WebhookEventTypes, WebhookEventTypesForm, WebhookScenariosEventPayload, WebhookTMSEventPayload, WebhookVerificationEventPayload };
|