@nexeraid/identity-schemas 2.3.18-dev → 2.3.20-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.
Files changed (37) hide show
  1. package/dist/{customers.schema-1e51d306.esm.js → customers.schema-0306abb6.esm.js} +1 -1
  2. package/dist/{customers.schema-53d8aa84.cjs.dev.js → customers.schema-cc3df18f.cjs.dev.js} +1 -1
  3. package/dist/{customers.schema-93908d1f.cjs.prod.js → customers.schema-f0d472b1.cjs.prod.js} +1 -1
  4. package/dist/declarations/src/identity-ids.schema.d.ts +16 -16
  5. package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
  6. package/dist/declarations/src/webhooks/index.d.ts +1 -0
  7. package/dist/declarations/src/webhooks/index.d.ts.map +1 -1
  8. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +2356 -38
  9. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -1
  10. package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts +46 -0
  11. package/dist/declarations/src/webhooks/tms.webhooks.schema.d.ts.map +1 -0
  12. package/dist/{frontend-utilities.schema-64272e5a.esm.js → frontend-utilities.schema-02fc8336.esm.js} +1 -1
  13. package/dist/{frontend-utilities.schema-06549eb4.cjs.dev.js → frontend-utilities.schema-0be040b7.cjs.dev.js} +1 -1
  14. package/dist/{frontend-utilities.schema-c3ee7e20.cjs.prod.js → frontend-utilities.schema-cd88e673.cjs.prod.js} +1 -1
  15. package/dist/{identity-api.schema-1ac61550.cjs.prod.js → identity-api.schema-2de31155.cjs.prod.js} +8 -8
  16. package/dist/{identity-api.schema-c82dba7a.esm.js → identity-api.schema-68a83f54.esm.js} +8 -8
  17. package/dist/{identity-api.schema-9eaf0710.cjs.dev.js → identity-api.schema-bbb2c243.cjs.dev.js} +8 -8
  18. package/dist/nexeraid-identity-schemas.cjs.dev.js +17 -38
  19. package/dist/nexeraid-identity-schemas.cjs.prod.js +17 -38
  20. package/dist/nexeraid-identity-schemas.esm.js +5 -26
  21. package/dist/package.json +1 -1
  22. package/dist/transaction.schema-2141e819.cjs.dev.js +40 -0
  23. package/dist/transaction.schema-7297e823.cjs.prod.js +40 -0
  24. package/dist/transaction.schema-fb699c40.esm.js +25 -0
  25. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -1
  26. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -1
  27. package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
  28. package/package.json +1 -1
  29. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +2 -2
  30. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +2 -2
  31. package/providers/dist/nexeraid-identity-schemas-providers.esm.js +2 -2
  32. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
  33. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
  34. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
  35. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +97 -7
  36. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +97 -7
  37. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +90 -8
@@ -3,9 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var zod = require('zod');
6
- var identityApi_schema = require('../../dist/identity-api.schema-9eaf0710.cjs.dev.js');
7
- var customers_schema = require('../../dist/customers.schema-53d8aa84.cjs.dev.js');
6
+ var identityApi_schema = require('../../dist/identity-api.schema-bbb2c243.cjs.dev.js');
7
+ var customers_schema = require('../../dist/customers.schema-cc3df18f.cjs.dev.js');
8
8
  var zodToJsonSchema = require('zod-to-json-schema');
9
+ var transaction_schema = require('../../dist/transaction.schema-2141e819.cjs.dev.js');
9
10
  require('nanoid');
10
11
 
11
12
  // Alert Statuses
@@ -191,9 +192,25 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
191
192
  result: zod.z.array(VerificationFlowResult)
192
193
  });
193
194
 
194
- var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
195
+ var TMSWebhookPayload = zod.z.object({
196
+ id: zod.z.string(),
197
+ customerId: identityApi_schema.UuidString,
198
+ externalTransactionId: zod.z.string(),
199
+ transactionDate: zod.z.coerce.date().nullable(),
200
+ transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
201
+ transactionSubType: zod.z.string().nullable(),
202
+ transactionReview: zod.z.string().nullable(),
203
+ transactionInfo: zod.z.string(),
204
+ transactionExtractedInfo: zod.z.string().nullable(),
205
+ originator: zod.z.string(),
206
+ beneficiary: zod.z.string(),
207
+ createdAt: zod.z.coerce.date(),
208
+ updatedAt: zod.z.coerce.date().nullable()
209
+ });
210
+
211
+ 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"];
195
212
  var WebhookEventType = zod.z["enum"](WebhookEventTypes);
196
- var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
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"];
197
214
  var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
198
215
  var AttemptsStatus = {
199
216
  Success: 0,
@@ -254,6 +271,21 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
254
271
  description: zod.z.string(),
255
272
  archived: zod.z["boolean"](),
256
273
  schemas: zod.z.record(zod.z.unknown())
274
+ }), zod.z.object({
275
+ name: zod.z.literal("tms.created"),
276
+ description: zod.z.string(),
277
+ archived: zod.z["boolean"](),
278
+ schemas: zod.z.record(zod.z.unknown())
279
+ }), zod.z.object({
280
+ name: zod.z.literal("tms.updated"),
281
+ description: zod.z.string(),
282
+ archived: zod.z["boolean"](),
283
+ schemas: zod.z.record(zod.z.unknown())
284
+ }), zod.z.object({
285
+ name: zod.z.literal("tms.deleted"),
286
+ description: zod.z.string(),
287
+ archived: zod.z["boolean"](),
288
+ schemas: zod.z.record(zod.z.unknown())
257
289
  })]);
258
290
 
259
291
  /**
@@ -293,11 +325,24 @@ var AlertDeletedPayload = zod.z.object({
293
325
  eventType: zod.z.literal("alert.deleted"),
294
326
  payload: AlertWebhookPayload
295
327
  });
328
+ var TMSCreatedPayload = zod.z.object({
329
+ eventType: zod.z.literal("tms.created"),
330
+ payload: TMSWebhookPayload
331
+ });
332
+ var TMSUpdatedPayload = zod.z.object({
333
+ eventType: zod.z.literal("tms.updated"),
334
+ payload: TMSWebhookPayload
335
+ });
336
+ var TMSDeletedPayload = zod.z.object({
337
+ eventType: zod.z.literal("tms.deleted"),
338
+ payload: TMSWebhookPayload
339
+ });
296
340
  var WebhookScenariosEventPayload = SendScenarioPayload;
297
341
  var WebhookVerificationEventPayload = SendVerificationFlowPayload;
298
342
  var WebhookCustomerEventPayload = zod.z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
299
343
  var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
300
- var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
344
+ var WebhookTMSEventPayload = zod.z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]);
345
+ var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
301
346
  var AllNexeraEventTypes = zod.z.array(NexeraEventTypes);
302
347
  var NexeraSvixEnvironmentConfig = zod.z.object({
303
348
  env: identityApi_schema.EnvironmentSchema
@@ -319,7 +364,10 @@ var EndpointHandlingForm = zod.z.object({
319
364
  customerDeleted: zod.z["boolean"]().optional(),
320
365
  alertCreated: zod.z["boolean"]().optional(),
321
366
  alertUpdated: zod.z["boolean"]().optional(),
322
- alertDeleted: zod.z["boolean"]().optional()
367
+ alertDeleted: zod.z["boolean"]().optional(),
368
+ tmsCreated: zod.z["boolean"]().optional(),
369
+ tmsUpdated: zod.z["boolean"]().optional(),
370
+ tmsDeleted: zod.z["boolean"]().optional()
323
371
  }).optional()
324
372
  });
325
373
  var WebhookCheckboxInformation = zod.z.object({
@@ -331,7 +379,8 @@ var EndpointCheckboxsCollapsiblesSchema = zod.z.object({
331
379
  title: zod.z.string(),
332
380
  icon: zod.z.any(),
333
381
  description: zod.z.string(),
334
- webhooks: zod.z.array(WebhookCheckboxInformation)
382
+ webhooks: zod.z.array(WebhookCheckboxInformation),
383
+ type: zod.z.string().optional()
335
384
  });
336
385
  var EndpointOut = zod.z.object({
337
386
  disabled: zod.z["boolean"]().optional(),
@@ -456,6 +505,18 @@ var SendMessageForAlertDeletedInput = zod.z.object({
456
505
  projectId: zod.z.string(),
457
506
  payload: AlertDeletedPayload
458
507
  });
508
+ var SendMessageForTMSCreatedInput = zod.z.object({
509
+ projectId: zod.z.string(),
510
+ payload: TMSCreatedPayload
511
+ });
512
+ var SendMessageForTMSUpdatedInput = zod.z.object({
513
+ projectId: zod.z.string(),
514
+ payload: TMSUpdatedPayload
515
+ });
516
+ var SendMessageForTMSDeletedInput = zod.z.object({
517
+ projectId: zod.z.string(),
518
+ payload: TMSDeletedPayload
519
+ });
459
520
 
460
521
  /**
461
522
  *
@@ -587,6 +648,27 @@ var NexeraWebhookEvents = [{
587
648
  schemas: {
588
649
  1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
589
650
  }
651
+ }, {
652
+ name: "tms.created",
653
+ description: "Transaction Created Webhook",
654
+ archived: false,
655
+ schemas: {
656
+ 1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
657
+ }
658
+ }, {
659
+ name: "tms.updated",
660
+ description: "Transaction Updated Webhook",
661
+ archived: false,
662
+ schemas: {
663
+ 1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
664
+ }
665
+ }, {
666
+ name: "tms.deleted",
667
+ description: "Transaction Deleted Webhook",
668
+ archived: false,
669
+ schemas: {
670
+ 1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload)
671
+ }
590
672
  }];
591
673
 
592
674
  exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
@@ -656,8 +738,15 @@ exports.SendMessageForCustomerDeletedInput = SendMessageForCustomerDeletedInput;
656
738
  exports.SendMessageForCustomerUpdatedInput = SendMessageForCustomerUpdatedInput;
657
739
  exports.SendMessageForSendScenarioInput = SendMessageForSendScenarioInput;
658
740
  exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput;
741
+ exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput;
742
+ exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput;
743
+ exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput;
659
744
  exports.SendScenarioPayload = SendScenarioPayload;
660
745
  exports.SendVerificationFlowPayload = SendVerificationFlowPayload;
746
+ exports.TMSCreatedPayload = TMSCreatedPayload;
747
+ exports.TMSDeletedPayload = TMSDeletedPayload;
748
+ exports.TMSUpdatedPayload = TMSUpdatedPayload;
749
+ exports.TMSWebhookPayload = TMSWebhookPayload;
661
750
  exports.UpdateEndpointInput = UpdateEndpointInput;
662
751
  exports.UpdateEndpointOutput = UpdateEndpointOutput;
663
752
  exports.UserInfoForDuplicate = UserInfoForDuplicate;
@@ -672,4 +761,5 @@ exports.WebhookEventTypeForm = WebhookEventTypeForm;
672
761
  exports.WebhookEventTypes = WebhookEventTypes;
673
762
  exports.WebhookEventTypesForm = WebhookEventTypesForm;
674
763
  exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload;
764
+ exports.WebhookTMSEventPayload = WebhookTMSEventPayload;
675
765
  exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload;
@@ -3,9 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var zod = require('zod');
6
- var identityApi_schema = require('../../dist/identity-api.schema-1ac61550.cjs.prod.js');
7
- var customers_schema = require('../../dist/customers.schema-93908d1f.cjs.prod.js');
6
+ var identityApi_schema = require('../../dist/identity-api.schema-2de31155.cjs.prod.js');
7
+ var customers_schema = require('../../dist/customers.schema-f0d472b1.cjs.prod.js');
8
8
  var zodToJsonSchema = require('zod-to-json-schema');
9
+ var transaction_schema = require('../../dist/transaction.schema-7297e823.cjs.prod.js');
9
10
  require('nanoid');
10
11
 
11
12
  // Alert Statuses
@@ -191,9 +192,25 @@ var VerificationFlowChecksWebhookPayload = zod.z.object({
191
192
  result: zod.z.array(VerificationFlowResult)
192
193
  });
193
194
 
194
- var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
195
+ var TMSWebhookPayload = zod.z.object({
196
+ id: zod.z.string(),
197
+ customerId: identityApi_schema.UuidString,
198
+ externalTransactionId: zod.z.string(),
199
+ transactionDate: zod.z.coerce.date().nullable(),
200
+ transactionType: zod.z["enum"](transaction_schema.TransactionTypes),
201
+ transactionSubType: zod.z.string().nullable(),
202
+ transactionReview: zod.z.string().nullable(),
203
+ transactionInfo: zod.z.string(),
204
+ transactionExtractedInfo: zod.z.string().nullable(),
205
+ originator: zod.z.string(),
206
+ beneficiary: zod.z.string(),
207
+ createdAt: zod.z.coerce.date(),
208
+ updatedAt: zod.z.coerce.date().nullable()
209
+ });
210
+
211
+ 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"];
195
212
  var WebhookEventType = zod.z["enum"](WebhookEventTypes);
196
- var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"];
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"];
197
214
  var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm);
198
215
  var AttemptsStatus = {
199
216
  Success: 0,
@@ -254,6 +271,21 @@ var NexeraEventTypes = zod.z.union([zod.z.object({
254
271
  description: zod.z.string(),
255
272
  archived: zod.z["boolean"](),
256
273
  schemas: zod.z.record(zod.z.unknown())
274
+ }), zod.z.object({
275
+ name: zod.z.literal("tms.created"),
276
+ description: zod.z.string(),
277
+ archived: zod.z["boolean"](),
278
+ schemas: zod.z.record(zod.z.unknown())
279
+ }), zod.z.object({
280
+ name: zod.z.literal("tms.updated"),
281
+ description: zod.z.string(),
282
+ archived: zod.z["boolean"](),
283
+ schemas: zod.z.record(zod.z.unknown())
284
+ }), zod.z.object({
285
+ name: zod.z.literal("tms.deleted"),
286
+ description: zod.z.string(),
287
+ archived: zod.z["boolean"](),
288
+ schemas: zod.z.record(zod.z.unknown())
257
289
  })]);
258
290
 
259
291
  /**
@@ -293,11 +325,24 @@ var AlertDeletedPayload = zod.z.object({
293
325
  eventType: zod.z.literal("alert.deleted"),
294
326
  payload: AlertWebhookPayload
295
327
  });
328
+ var TMSCreatedPayload = zod.z.object({
329
+ eventType: zod.z.literal("tms.created"),
330
+ payload: TMSWebhookPayload
331
+ });
332
+ var TMSUpdatedPayload = zod.z.object({
333
+ eventType: zod.z.literal("tms.updated"),
334
+ payload: TMSWebhookPayload
335
+ });
336
+ var TMSDeletedPayload = zod.z.object({
337
+ eventType: zod.z.literal("tms.deleted"),
338
+ payload: TMSWebhookPayload
339
+ });
296
340
  var WebhookScenariosEventPayload = SendScenarioPayload;
297
341
  var WebhookVerificationEventPayload = SendVerificationFlowPayload;
298
342
  var WebhookCustomerEventPayload = zod.z.union([CustomerCreatedPayload, CustomerUpdatedPayload, CustomerDeletedPayload]);
299
343
  var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]);
300
- var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
344
+ var WebhookTMSEventPayload = zod.z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]);
345
+ var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]);
301
346
  var AllNexeraEventTypes = zod.z.array(NexeraEventTypes);
302
347
  var NexeraSvixEnvironmentConfig = zod.z.object({
303
348
  env: identityApi_schema.EnvironmentSchema
@@ -319,7 +364,10 @@ var EndpointHandlingForm = zod.z.object({
319
364
  customerDeleted: zod.z["boolean"]().optional(),
320
365
  alertCreated: zod.z["boolean"]().optional(),
321
366
  alertUpdated: zod.z["boolean"]().optional(),
322
- alertDeleted: zod.z["boolean"]().optional()
367
+ alertDeleted: zod.z["boolean"]().optional(),
368
+ tmsCreated: zod.z["boolean"]().optional(),
369
+ tmsUpdated: zod.z["boolean"]().optional(),
370
+ tmsDeleted: zod.z["boolean"]().optional()
323
371
  }).optional()
324
372
  });
325
373
  var WebhookCheckboxInformation = zod.z.object({
@@ -331,7 +379,8 @@ var EndpointCheckboxsCollapsiblesSchema = zod.z.object({
331
379
  title: zod.z.string(),
332
380
  icon: zod.z.any(),
333
381
  description: zod.z.string(),
334
- webhooks: zod.z.array(WebhookCheckboxInformation)
382
+ webhooks: zod.z.array(WebhookCheckboxInformation),
383
+ type: zod.z.string().optional()
335
384
  });
336
385
  var EndpointOut = zod.z.object({
337
386
  disabled: zod.z["boolean"]().optional(),
@@ -456,6 +505,18 @@ var SendMessageForAlertDeletedInput = zod.z.object({
456
505
  projectId: zod.z.string(),
457
506
  payload: AlertDeletedPayload
458
507
  });
508
+ var SendMessageForTMSCreatedInput = zod.z.object({
509
+ projectId: zod.z.string(),
510
+ payload: TMSCreatedPayload
511
+ });
512
+ var SendMessageForTMSUpdatedInput = zod.z.object({
513
+ projectId: zod.z.string(),
514
+ payload: TMSUpdatedPayload
515
+ });
516
+ var SendMessageForTMSDeletedInput = zod.z.object({
517
+ projectId: zod.z.string(),
518
+ payload: TMSDeletedPayload
519
+ });
459
520
 
460
521
  /**
461
522
  *
@@ -587,6 +648,27 @@ var NexeraWebhookEvents = [{
587
648
  schemas: {
588
649
  1: zodToJsonSchema.zodToJsonSchema(AlertDeletedPayload)
589
650
  }
651
+ }, {
652
+ name: "tms.created",
653
+ description: "Transaction Created Webhook",
654
+ archived: false,
655
+ schemas: {
656
+ 1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload)
657
+ }
658
+ }, {
659
+ name: "tms.updated",
660
+ description: "Transaction Updated Webhook",
661
+ archived: false,
662
+ schemas: {
663
+ 1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload)
664
+ }
665
+ }, {
666
+ name: "tms.deleted",
667
+ description: "Transaction Deleted Webhook",
668
+ archived: false,
669
+ schemas: {
670
+ 1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload)
671
+ }
590
672
  }];
591
673
 
592
674
  exports.ALERT_CHART_TYPES = ALERT_CHART_TYPES;
@@ -656,8 +738,15 @@ exports.SendMessageForCustomerDeletedInput = SendMessageForCustomerDeletedInput;
656
738
  exports.SendMessageForCustomerUpdatedInput = SendMessageForCustomerUpdatedInput;
657
739
  exports.SendMessageForSendScenarioInput = SendMessageForSendScenarioInput;
658
740
  exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput;
741
+ exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput;
742
+ exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput;
743
+ exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput;
659
744
  exports.SendScenarioPayload = SendScenarioPayload;
660
745
  exports.SendVerificationFlowPayload = SendVerificationFlowPayload;
746
+ exports.TMSCreatedPayload = TMSCreatedPayload;
747
+ exports.TMSDeletedPayload = TMSDeletedPayload;
748
+ exports.TMSUpdatedPayload = TMSUpdatedPayload;
749
+ exports.TMSWebhookPayload = TMSWebhookPayload;
661
750
  exports.UpdateEndpointInput = UpdateEndpointInput;
662
751
  exports.UpdateEndpointOutput = UpdateEndpointOutput;
663
752
  exports.UserInfoForDuplicate = UserInfoForDuplicate;
@@ -672,4 +761,5 @@ exports.WebhookEventTypeForm = WebhookEventTypeForm;
672
761
  exports.WebhookEventTypes = WebhookEventTypes;
673
762
  exports.WebhookEventTypesForm = WebhookEventTypesForm;
674
763
  exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload;
764
+ exports.WebhookTMSEventPayload = WebhookTMSEventPayload;
675
765
  exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload;
@@ -1,7 +1,8 @@
1
1
  import { z } from 'zod';
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
- 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';
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-68a83f54.esm.js';
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-0306abb6.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 WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"];
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 WebhookEventPayload = z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]);
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 };