@nexeraid/identity-schemas
Advanced tools
Comparing version 2.3.18-dev to 2.3.19-dev
@@ -7,2 +7,3 @@ export * from "./alert.schema.js"; | ||
export * from "./svix.webhooks.schema.js"; | ||
export * from "./tms.webhooks.schema.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,3 @@ import { C as CredentialTypes } from './identity-api.schema-c82dba7a.esm.js'; | ||
export { V as VC_JSON_SCHEMA_MAP, c as cleanObject, a as getAvailableFields, g as getCredentialSchemaLocation } from './frontend-utilities.schema-64272e5a.esm.js'; | ||
export { j as PaymentType, P as PaymentTypes, g as TransactionDirection, f as TransactionDirections, l as TransactionPartiesType, k as TransactionPartiesTypes, i as TransactionProvider, h as TransactionProviders, e as TransactionReviewStatus, d as TransactionReviewStatuses, c as TransactionRiskLevel, b as TransactionRiskLevels, a as TransactionType, T as TransactionTypes } from './transaction.schema-fb699c40.esm.js'; | ||
import 'nanoid'; | ||
@@ -91,24 +92,2 @@ | ||
// Transaction Type | ||
var TransactionTypes = ["crypto", "fiat"]; | ||
var TransactionType = z["enum"](TransactionTypes); | ||
// Transaction Risk level | ||
var TransactionRiskLevels = ["Low", "Medium", "High"]; | ||
var TransactionRiskLevel = z["enum"](TransactionRiskLevels); | ||
// TransactionReview Status | ||
var TransactionReviewStatuses = ["approved", "review", "blocked"]; | ||
var TransactionReviewStatus = z["enum"](TransactionReviewStatuses); | ||
// TransactionInfos Direction | ||
var TransactionDirections = ["IN", "OUT"]; | ||
var TransactionDirection = z["enum"](TransactionDirections); | ||
// TransactionExtractedInfos Providers | ||
var TransactionProviders = ["sumsub"]; | ||
var TransactionProvider = z["enum"](TransactionProviders); | ||
// PaymentMethods Type | ||
var PaymentTypes = ["card", "account", "crypto"]; | ||
var PaymentType = z["enum"](PaymentTypes); | ||
// TransactionParties Type | ||
var TransactionPartiesTypes = ["individual", "company", "smart-contract"]; | ||
var TransactionPartiesType = z["enum"](TransactionPartiesTypes); | ||
export { CryptoCode, CryptoCodes, CurrencyCode, CurrencyCodes, DownloadableKycSchema, EncryptedKycKey, EncryptedVerifiableCredentialDataSchema, EncryptedVerifiableCredentialSchema, ImageUploadResponseSchema, MAX_MEDIA_FILE_SIZE, MediaDataSchema, PaymentType, PaymentTypes, Tag, TransactionDirection, TransactionDirections, TransactionPartiesType, TransactionPartiesTypes, TransactionProvider, TransactionProviders, TransactionReviewStatus, TransactionReviewStatuses, TransactionRiskLevel, TransactionRiskLevels, TransactionType, TransactionTypes, TypeTag, TypeTags }; | ||
export { CryptoCode, CryptoCodes, CurrencyCode, CurrencyCodes, DownloadableKycSchema, EncryptedKycKey, EncryptedVerifiableCredentialDataSchema, EncryptedVerifiableCredentialSchema, ImageUploadResponseSchema, MAX_MEDIA_FILE_SIZE, MediaDataSchema, Tag, TypeTag, TypeTags }; |
{ | ||
"name": "@nexeraid/identity-schemas", | ||
"version": "2.3.18", | ||
"version": "2.3.19", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
{ | ||
"name": "@nexeraid/identity-schemas", | ||
"version": "2.3.18-dev", | ||
"version": "2.3.19-dev", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -9,2 +9,3 @@ 'use strict'; | ||
var zodToJsonSchema = require('zod-to-json-schema'); | ||
var transaction_schema = require('../../dist/transaction.schema-2141e819.cjs.dev.js'); | ||
require('nanoid'); | ||
@@ -195,5 +196,21 @@ | ||
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"]; | ||
var TMSWebhookPayload = zod.z.object({ | ||
id: zod.z.string(), | ||
customerId: identityApi_schema.UuidString, | ||
externalTransactionId: zod.z.string(), | ||
transactionDate: zod.z.coerce.date().nullable(), | ||
transactionType: zod.z["enum"](transaction_schema.TransactionTypes), | ||
transactionSubType: zod.z.string().nullable(), | ||
transactionReview: zod.z.string().nullable(), | ||
transactionInfo: zod.z.string(), | ||
transactionExtractedInfo: zod.z.string().nullable(), | ||
originator: zod.z.string(), | ||
beneficiary: zod.z.string(), | ||
createdAt: zod.z.coerce.date(), | ||
updatedAt: zod.z.coerce.date().nullable() | ||
}); | ||
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"]; | ||
var WebhookEventType = zod.z["enum"](WebhookEventTypes); | ||
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"]; | ||
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"]; | ||
var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm); | ||
@@ -259,2 +276,17 @@ var AttemptsStatus = { | ||
schemas: zod.z.record(zod.z.unknown()) | ||
}), zod.z.object({ | ||
name: zod.z.literal("tms.created"), | ||
description: zod.z.string(), | ||
archived: zod.z["boolean"](), | ||
schemas: zod.z.record(zod.z.unknown()) | ||
}), zod.z.object({ | ||
name: zod.z.literal("tms.updated"), | ||
description: zod.z.string(), | ||
archived: zod.z["boolean"](), | ||
schemas: zod.z.record(zod.z.unknown()) | ||
}), zod.z.object({ | ||
name: zod.z.literal("tms.deleted"), | ||
description: zod.z.string(), | ||
archived: zod.z["boolean"](), | ||
schemas: zod.z.record(zod.z.unknown()) | ||
})]); | ||
@@ -299,2 +331,14 @@ | ||
}); | ||
var TMSCreatedPayload = zod.z.object({ | ||
eventType: zod.z.literal("tms.created"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var TMSUpdatedPayload = zod.z.object({ | ||
eventType: zod.z.literal("tms.updated"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var TMSDeletedPayload = zod.z.object({ | ||
eventType: zod.z.literal("tms.deleted"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var WebhookScenariosEventPayload = SendScenarioPayload; | ||
@@ -304,3 +348,4 @@ var WebhookVerificationEventPayload = SendVerificationFlowPayload; | ||
var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]); | ||
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]); | ||
var WebhookTMSEventPayload = zod.z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]); | ||
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]); | ||
var AllNexeraEventTypes = zod.z.array(NexeraEventTypes); | ||
@@ -327,3 +372,6 @@ var NexeraSvixEnvironmentConfig = zod.z.object({ | ||
alertUpdated: zod.z["boolean"]().optional(), | ||
alertDeleted: zod.z["boolean"]().optional() | ||
alertDeleted: zod.z["boolean"]().optional(), | ||
tmsCreated: zod.z["boolean"]().optional(), | ||
tmsUpdated: zod.z["boolean"]().optional(), | ||
tmsDeleted: zod.z["boolean"]().optional() | ||
}).optional() | ||
@@ -340,3 +388,4 @@ }); | ||
description: zod.z.string(), | ||
webhooks: zod.z.array(WebhookCheckboxInformation) | ||
webhooks: zod.z.array(WebhookCheckboxInformation), | ||
type: zod.z.string().optional() | ||
}); | ||
@@ -466,2 +515,14 @@ var EndpointOut = zod.z.object({ | ||
}); | ||
var SendMessageForTMSCreatedInput = zod.z.object({ | ||
projectId: zod.z.string(), | ||
payload: TMSCreatedPayload | ||
}); | ||
var SendMessageForTMSUpdatedInput = zod.z.object({ | ||
projectId: zod.z.string(), | ||
payload: TMSUpdatedPayload | ||
}); | ||
var SendMessageForTMSDeletedInput = zod.z.object({ | ||
projectId: zod.z.string(), | ||
payload: TMSDeletedPayload | ||
}); | ||
@@ -598,2 +659,23 @@ /** | ||
} | ||
}, { | ||
name: "tms.created", | ||
description: "Transaction Created Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload) | ||
} | ||
}, { | ||
name: "tms.updated", | ||
description: "Transaction Updated Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload) | ||
} | ||
}, { | ||
name: "tms.deleted", | ||
description: "Transaction Deleted Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload) | ||
} | ||
}]; | ||
@@ -668,4 +750,11 @@ | ||
exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput; | ||
exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput; | ||
exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput; | ||
exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput; | ||
exports.SendScenarioPayload = SendScenarioPayload; | ||
exports.SendVerificationFlowPayload = SendVerificationFlowPayload; | ||
exports.TMSCreatedPayload = TMSCreatedPayload; | ||
exports.TMSDeletedPayload = TMSDeletedPayload; | ||
exports.TMSUpdatedPayload = TMSUpdatedPayload; | ||
exports.TMSWebhookPayload = TMSWebhookPayload; | ||
exports.UpdateEndpointInput = UpdateEndpointInput; | ||
@@ -685,2 +774,3 @@ exports.UpdateEndpointOutput = UpdateEndpointOutput; | ||
exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload; | ||
exports.WebhookTMSEventPayload = WebhookTMSEventPayload; | ||
exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload; |
@@ -9,2 +9,3 @@ 'use strict'; | ||
var zodToJsonSchema = require('zod-to-json-schema'); | ||
var transaction_schema = require('../../dist/transaction.schema-7297e823.cjs.prod.js'); | ||
require('nanoid'); | ||
@@ -195,5 +196,21 @@ | ||
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"]; | ||
var TMSWebhookPayload = zod.z.object({ | ||
id: zod.z.string(), | ||
customerId: identityApi_schema.UuidString, | ||
externalTransactionId: zod.z.string(), | ||
transactionDate: zod.z.coerce.date().nullable(), | ||
transactionType: zod.z["enum"](transaction_schema.TransactionTypes), | ||
transactionSubType: zod.z.string().nullable(), | ||
transactionReview: zod.z.string().nullable(), | ||
transactionInfo: zod.z.string(), | ||
transactionExtractedInfo: zod.z.string().nullable(), | ||
originator: zod.z.string(), | ||
beneficiary: zod.z.string(), | ||
createdAt: zod.z.coerce.date(), | ||
updatedAt: zod.z.coerce.date().nullable() | ||
}); | ||
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"]; | ||
var WebhookEventType = zod.z["enum"](WebhookEventTypes); | ||
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"]; | ||
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"]; | ||
var WebhookEventTypeForm = zod.z["enum"](WebhookEventTypesForm); | ||
@@ -259,2 +276,17 @@ var AttemptsStatus = { | ||
schemas: zod.z.record(zod.z.unknown()) | ||
}), zod.z.object({ | ||
name: zod.z.literal("tms.created"), | ||
description: zod.z.string(), | ||
archived: zod.z["boolean"](), | ||
schemas: zod.z.record(zod.z.unknown()) | ||
}), zod.z.object({ | ||
name: zod.z.literal("tms.updated"), | ||
description: zod.z.string(), | ||
archived: zod.z["boolean"](), | ||
schemas: zod.z.record(zod.z.unknown()) | ||
}), zod.z.object({ | ||
name: zod.z.literal("tms.deleted"), | ||
description: zod.z.string(), | ||
archived: zod.z["boolean"](), | ||
schemas: zod.z.record(zod.z.unknown()) | ||
})]); | ||
@@ -299,2 +331,14 @@ | ||
}); | ||
var TMSCreatedPayload = zod.z.object({ | ||
eventType: zod.z.literal("tms.created"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var TMSUpdatedPayload = zod.z.object({ | ||
eventType: zod.z.literal("tms.updated"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var TMSDeletedPayload = zod.z.object({ | ||
eventType: zod.z.literal("tms.deleted"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var WebhookScenariosEventPayload = SendScenarioPayload; | ||
@@ -304,3 +348,4 @@ var WebhookVerificationEventPayload = SendVerificationFlowPayload; | ||
var WebhookAlertEventPayload = zod.z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]); | ||
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]); | ||
var WebhookTMSEventPayload = zod.z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]); | ||
var WebhookEventPayload = zod.z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]); | ||
var AllNexeraEventTypes = zod.z.array(NexeraEventTypes); | ||
@@ -327,3 +372,6 @@ var NexeraSvixEnvironmentConfig = zod.z.object({ | ||
alertUpdated: zod.z["boolean"]().optional(), | ||
alertDeleted: zod.z["boolean"]().optional() | ||
alertDeleted: zod.z["boolean"]().optional(), | ||
tmsCreated: zod.z["boolean"]().optional(), | ||
tmsUpdated: zod.z["boolean"]().optional(), | ||
tmsDeleted: zod.z["boolean"]().optional() | ||
}).optional() | ||
@@ -340,3 +388,4 @@ }); | ||
description: zod.z.string(), | ||
webhooks: zod.z.array(WebhookCheckboxInformation) | ||
webhooks: zod.z.array(WebhookCheckboxInformation), | ||
type: zod.z.string().optional() | ||
}); | ||
@@ -466,2 +515,14 @@ var EndpointOut = zod.z.object({ | ||
}); | ||
var SendMessageForTMSCreatedInput = zod.z.object({ | ||
projectId: zod.z.string(), | ||
payload: TMSCreatedPayload | ||
}); | ||
var SendMessageForTMSUpdatedInput = zod.z.object({ | ||
projectId: zod.z.string(), | ||
payload: TMSUpdatedPayload | ||
}); | ||
var SendMessageForTMSDeletedInput = zod.z.object({ | ||
projectId: zod.z.string(), | ||
payload: TMSDeletedPayload | ||
}); | ||
@@ -598,2 +659,23 @@ /** | ||
} | ||
}, { | ||
name: "tms.created", | ||
description: "Transaction Created Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema.zodToJsonSchema(TMSCreatedPayload) | ||
} | ||
}, { | ||
name: "tms.updated", | ||
description: "Transaction Updated Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema.zodToJsonSchema(TMSUpdatedPayload) | ||
} | ||
}, { | ||
name: "tms.deleted", | ||
description: "Transaction Deleted Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema.zodToJsonSchema(TMSDeletedPayload) | ||
} | ||
}]; | ||
@@ -668,4 +750,11 @@ | ||
exports.SendMessageForSendVerificationFlowInput = SendMessageForSendVerificationFlowInput; | ||
exports.SendMessageForTMSCreatedInput = SendMessageForTMSCreatedInput; | ||
exports.SendMessageForTMSDeletedInput = SendMessageForTMSDeletedInput; | ||
exports.SendMessageForTMSUpdatedInput = SendMessageForTMSUpdatedInput; | ||
exports.SendScenarioPayload = SendScenarioPayload; | ||
exports.SendVerificationFlowPayload = SendVerificationFlowPayload; | ||
exports.TMSCreatedPayload = TMSCreatedPayload; | ||
exports.TMSDeletedPayload = TMSDeletedPayload; | ||
exports.TMSUpdatedPayload = TMSUpdatedPayload; | ||
exports.TMSWebhookPayload = TMSWebhookPayload; | ||
exports.UpdateEndpointInput = UpdateEndpointInput; | ||
@@ -685,2 +774,3 @@ exports.UpdateEndpointOutput = UpdateEndpointOutput; | ||
exports.WebhookScenariosEventPayload = WebhookScenariosEventPayload; | ||
exports.WebhookTMSEventPayload = WebhookTMSEventPayload; | ||
exports.WebhookVerificationEventPayload = WebhookVerificationEventPayload; |
@@ -5,2 +5,3 @@ import { z } from 'zod'; | ||
import { zodToJsonSchema } from 'zod-to-json-schema'; | ||
import { T as TransactionTypes } from '../../dist/transaction.schema-fb699c40.esm.js'; | ||
import 'nanoid'; | ||
@@ -191,5 +192,21 @@ | ||
var WebhookEventTypes = ["send.scenario", "send.verification.flow", "customer.created", "customer.updated", "customer.deleted", "alert.created", "alert.updated", "alert.deleted"]; | ||
var TMSWebhookPayload = z.object({ | ||
id: z.string(), | ||
customerId: UuidString, | ||
externalTransactionId: z.string(), | ||
transactionDate: z.coerce.date().nullable(), | ||
transactionType: z["enum"](TransactionTypes), | ||
transactionSubType: z.string().nullable(), | ||
transactionReview: z.string().nullable(), | ||
transactionInfo: z.string(), | ||
transactionExtractedInfo: z.string().nullable(), | ||
originator: z.string(), | ||
beneficiary: z.string(), | ||
createdAt: z.coerce.date(), | ||
updatedAt: z.coerce.date().nullable() | ||
}); | ||
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"]; | ||
var WebhookEventType = z["enum"](WebhookEventTypes); | ||
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted"]; | ||
var WebhookEventTypesForm = ["webhooks.sendScenario", "webhooks.sendVerificationFlow", "webhooks.customerCreated", "webhooks.customerUpdated", "webhooks.customerDeleted", "webhooks.alertCreated", "webhooks.alertUpdated", "webhooks.alertDeleted", "webhooks.tmsCreated", "webhooks.tmsUpdated", "webhooks.tmsDeleted"]; | ||
var WebhookEventTypeForm = z["enum"](WebhookEventTypesForm); | ||
@@ -255,2 +272,17 @@ var AttemptsStatus = { | ||
schemas: z.record(z.unknown()) | ||
}), z.object({ | ||
name: z.literal("tms.created"), | ||
description: z.string(), | ||
archived: z["boolean"](), | ||
schemas: z.record(z.unknown()) | ||
}), z.object({ | ||
name: z.literal("tms.updated"), | ||
description: z.string(), | ||
archived: z["boolean"](), | ||
schemas: z.record(z.unknown()) | ||
}), z.object({ | ||
name: z.literal("tms.deleted"), | ||
description: z.string(), | ||
archived: z["boolean"](), | ||
schemas: z.record(z.unknown()) | ||
})]); | ||
@@ -295,2 +327,14 @@ | ||
}); | ||
var TMSCreatedPayload = z.object({ | ||
eventType: z.literal("tms.created"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var TMSUpdatedPayload = z.object({ | ||
eventType: z.literal("tms.updated"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var TMSDeletedPayload = z.object({ | ||
eventType: z.literal("tms.deleted"), | ||
payload: TMSWebhookPayload | ||
}); | ||
var WebhookScenariosEventPayload = SendScenarioPayload; | ||
@@ -300,3 +344,4 @@ var WebhookVerificationEventPayload = SendVerificationFlowPayload; | ||
var WebhookAlertEventPayload = z.union([AlertCreatedPayload, AlertUpdatedPayload, AlertDeletedPayload]); | ||
var WebhookEventPayload = z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload]); | ||
var WebhookTMSEventPayload = z.union([TMSCreatedPayload, TMSUpdatedPayload, TMSDeletedPayload]); | ||
var WebhookEventPayload = z.union([WebhookScenariosEventPayload, WebhookVerificationEventPayload, WebhookCustomerEventPayload, WebhookAlertEventPayload, WebhookTMSEventPayload]); | ||
var AllNexeraEventTypes = z.array(NexeraEventTypes); | ||
@@ -323,3 +368,6 @@ var NexeraSvixEnvironmentConfig = z.object({ | ||
alertUpdated: z["boolean"]().optional(), | ||
alertDeleted: z["boolean"]().optional() | ||
alertDeleted: z["boolean"]().optional(), | ||
tmsCreated: z["boolean"]().optional(), | ||
tmsUpdated: z["boolean"]().optional(), | ||
tmsDeleted: z["boolean"]().optional() | ||
}).optional() | ||
@@ -336,3 +384,4 @@ }); | ||
description: z.string(), | ||
webhooks: z.array(WebhookCheckboxInformation) | ||
webhooks: z.array(WebhookCheckboxInformation), | ||
type: z.string().optional() | ||
}); | ||
@@ -462,2 +511,14 @@ var EndpointOut = z.object({ | ||
}); | ||
var SendMessageForTMSCreatedInput = z.object({ | ||
projectId: z.string(), | ||
payload: TMSCreatedPayload | ||
}); | ||
var SendMessageForTMSUpdatedInput = z.object({ | ||
projectId: z.string(), | ||
payload: TMSUpdatedPayload | ||
}); | ||
var SendMessageForTMSDeletedInput = z.object({ | ||
projectId: z.string(), | ||
payload: TMSDeletedPayload | ||
}); | ||
@@ -594,4 +655,25 @@ /** | ||
} | ||
}, { | ||
name: "tms.created", | ||
description: "Transaction Created Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema(TMSCreatedPayload) | ||
} | ||
}, { | ||
name: "tms.updated", | ||
description: "Transaction Updated Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema(TMSUpdatedPayload) | ||
} | ||
}, { | ||
name: "tms.deleted", | ||
description: "Transaction Deleted Webhook", | ||
archived: false, | ||
schemas: { | ||
1: zodToJsonSchema(TMSDeletedPayload) | ||
} | ||
}]; | ||
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 }; | ||
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 }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
14086586
184
124890