/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import * as openEnums from "../../types/enums.js"; import { OpenEnum } from "../../types/enums.js"; export const WebhookEventName = { SubscriptionCreated: "subscription.created", SubscriptionDraftCreated: "subscription.draft.created", SubscriptionActivated: "subscription.activated", SubscriptionUpdated: "subscription.updated", SubscriptionPaused: "subscription.paused", SubscriptionCancelled: "subscription.cancelled", SubscriptionResumed: "subscription.resumed", SubscriptionPlanChanged: "subscription.plan_changed", SubscriptionPhaseCreated: "subscription.phase.created", SubscriptionPhaseUpdated: "subscription.phase.updated", SubscriptionPhaseDeleted: "subscription.phase.deleted", FeatureCreated: "feature.created", FeatureUpdated: "feature.updated", FeatureDeleted: "feature.deleted", FeatureWalletBalanceAlert: "feature.wallet_balance.alert", EntitlementCreated: "entitlement.created", EntitlementUpdated: "entitlement.updated", EntitlementDeleted: "entitlement.deleted", WalletCreated: "wallet.created", WalletUpdated: "wallet.updated", WalletTerminated: "wallet.terminated", WalletTransactionCreated: "wallet.transaction.created", WalletTransactionUpdated: "wallet.transaction.updated", PaymentCreated: "payment.created", PaymentUpdated: "payment.updated", PaymentFailed: "payment.failed", PaymentSuccess: "payment.success", PaymentPending: "payment.pending", CustomerCreated: "customer.created", CustomerUpdated: "customer.updated", CustomerDeleted: "customer.deleted", InvoiceUpdateFinalized: "invoice.update.finalized", InvoiceUpdatePayment: "invoice.update.payment", InvoiceUpdateVoided: "invoice.update.voided", InvoiceUpdate: "invoice.update", InvoicePaymentOverdue: "invoice.payment.overdue", WalletCreditBalanceDropped: "wallet.credit_balance.dropped", WalletCreditBalanceRecovered: "wallet.credit_balance.recovered", WalletOngoingBalanceDropped: "wallet.ongoing_balance.dropped", WalletOngoingBalanceRecovered: "wallet.ongoing_balance.recovered", WalletOngoingBalanceUpdated: "wallet.ongoing_balance.updated", SubscriptionSpendThresholdReached: "subscription.spend.threshold_reached", SubscriptionSpendThresholdRecovered: "subscription.spend.threshold_recovered", SubscriptionLineItemSpendThresholdReached: "subscription.line_item_spend.threshold_reached", SubscriptionLineItemSpendThresholdRecovered: "subscription.line_item_spend.threshold_recovered", SubscriptionGroupSpendThresholdReached: "subscription.group_spend.threshold_reached", SubscriptionGroupSpendThresholdRecovered: "subscription.group_spend.threshold_recovered", EntitlementGrantExhausted: "entitlement.grant.exhausted", SubscriptionRenewalDue: "subscription.renewal.due", InvoiceCommunicationTriggered: "invoice.communication.triggered", CreditNoteCreated: "credit_note.created", CreditNoteUpdated: "credit_note.updated", CheckoutSessionInitiated: "checkout.session.initiated", CheckoutSessionCompleted: "checkout.session.completed", CheckoutSessionFailed: "checkout.session.failed", CheckoutSessionExpired: "checkout.session.expired", EventRejected: "event.rejected", } as const; export type WebhookEventName = OpenEnum; /** @internal */ export const WebhookEventName$inboundSchema: z.ZodMiniType< WebhookEventName, unknown > = openEnums.inboundSchema(WebhookEventName);