@strimz/shared-types 0.17.0 → 0.19.0

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 (44) hide show
  1. package/dist/analytics.d.cts +141 -141
  2. package/dist/analytics.d.ts +141 -141
  3. package/dist/api-keys.d.cts +14 -14
  4. package/dist/api-keys.d.ts +14 -14
  5. package/dist/compliance.d.cts +8 -8
  6. package/dist/compliance.d.ts +8 -8
  7. package/dist/customers.d.cts +7 -7
  8. package/dist/customers.d.ts +7 -7
  9. package/dist/events.cjs +4 -0
  10. package/dist/events.cjs.map +1 -1
  11. package/dist/events.d.cts +1681 -1486
  12. package/dist/events.d.ts +1681 -1486
  13. package/dist/events.js +4 -1
  14. package/dist/events.js.map +1 -1
  15. package/dist/index.cjs +7 -1
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +16 -16
  18. package/dist/index.d.ts +16 -16
  19. package/dist/index.js +7 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/invoices.d.cts +12 -12
  22. package/dist/invoices.d.ts +12 -12
  23. package/dist/merchants.d.cts +26 -26
  24. package/dist/merchants.d.ts +26 -26
  25. package/dist/payment-sessions.d.cts +16 -16
  26. package/dist/payment-sessions.d.ts +16 -16
  27. package/dist/refunds.d.cts +36 -36
  28. package/dist/refunds.d.ts +36 -36
  29. package/dist/storefronts.d.cts +13 -13
  30. package/dist/storefronts.d.ts +13 -13
  31. package/dist/subscriptions.d.cts +32 -32
  32. package/dist/subscriptions.d.ts +32 -32
  33. package/dist/transactions.d.cts +10 -10
  34. package/dist/transactions.d.ts +10 -10
  35. package/dist/webhooks.cjs +1 -0
  36. package/dist/webhooks.cjs.map +1 -1
  37. package/dist/webhooks.d.cts +46 -46
  38. package/dist/webhooks.d.ts +46 -46
  39. package/dist/webhooks.js +1 -0
  40. package/dist/webhooks.js.map +1 -1
  41. package/package.json +2 -2
  42. package/src/events.ts +4 -0
  43. package/src/notifications.ts +2 -0
  44. package/src/webhooks.ts +1 -0
package/dist/index.d.cts CHANGED
@@ -11,7 +11,7 @@ export { ComplianceLog, ComplianceProvider, ComplianceScreeningContext, Complian
11
11
  export { AgentActionOutcome, AgentActionType, AgentActivityLog, AgentCapability, AgentIdentity, AgentJob, AgentJobStatus, AgentMerchantConfig, CreateAgentJobInput, CreateAgentJobParsed, UpdateAgentConfigInput, UpdateAgentConfigParsed, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, createAgentJobInputSchema, updateAgentConfigInputSchema } from './agents.cjs';
12
12
  export { CreateStorefrontInput, CreateStorefrontParsed, CreateStorefrontProductInput, CreateStorefrontProductParsed, Storefront, StorefrontCheckoutInput, StorefrontCheckoutParsed, StorefrontCheckoutResponse, StorefrontProduct, StorefrontProductType, StorefrontStatus, createStorefrontInputSchema, createStorefrontProductInputSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema } from './storefronts.cjs';
13
13
  export { CreateInvoiceInput, CreateInvoiceParsed, Invoice, InvoiceLineItem, InvoiceStatus, createInvoiceInputSchema, invoiceLineItemSchema, invoiceSchema, invoiceStatusSchema } from './invoices.cjs';
14
- export { AgentJobCompletedEvent, AgentJobDisputedEvent, AgentJobProposedEvent, ComplianceWalletBlockedEvent, ComplianceWalletFlaggedEvent, InvoiceCreatedEvent, InvoiceOverdueEvent, InvoicePaidEvent, PaymentCompletedEvent, PaymentCreatedEvent, PaymentFailedEvent, RefundCompletedEvent, RefundCreatedEvent, StrimzWebhookEvent, SubscriptionCancelledEvent, SubscriptionChargeFailedEvent, SubscriptionChargedEvent, SubscriptionCreatedEvent, SubscriptionLapsedEvent, SubscriptionReactivatedEvent, SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema } from './events.cjs';
14
+ export { AgentJobCompletedEvent, AgentJobDisputedEvent, AgentJobProposedEvent, ComplianceWalletBlockedEvent, ComplianceWalletFlaggedEvent, InvoiceCreatedEvent, InvoiceOverdueEvent, InvoicePaidEvent, PaymentCompletedEvent, PaymentCreatedEvent, PaymentFailedEvent, RefundCompletedEvent, RefundCreatedEvent, RefundFailedEvent, StrimzWebhookEvent, SubscriptionCancelledEvent, SubscriptionChargeFailedEvent, SubscriptionChargedEvent, SubscriptionCreatedEvent, SubscriptionLapsedEvent, SubscriptionReactivatedEvent, SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, refundFailedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema } from './events.cjs';
15
15
  import { z } from 'zod';
16
16
  export { AdminMerchantStats, AdminOverview, AdminStatsModeQuery, AdminTopMerchant, AdminTopMerchants, AdminTopMerchantsQuery, AdminVolumeDay, AdminVolumeQuery, AdminVolumeSeries, CurrencyAmounts, Forecast, ForecastConfidence, Money, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, StatsForecast, StatsLtv, StatsLtvQuery, StatsLtvQueryParsed, StatsLtvRow, StatsMrr, StatsSummary, StatsVolume, StatsVolumeDay, StatsVolumeQuery, VolumeWindow, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, currencyAmountsSchema, forecastConfidenceSchema, forecastSchema, moneySchema, paymentCurrencies, resolveStatsVolumeRange, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, volumeWindowSchema } from './analytics.cjs';
17
17
 
@@ -163,7 +163,7 @@ type ContactRequestOutput = z.infer<typeof contactRequestOutputSchema>;
163
163
  * just be a denormalised copy.
164
164
  */
165
165
 
166
- declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
166
+ declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
167
167
  type NotificationKind = z.infer<typeof notificationKindSchema>;
168
168
  declare const broadcastAudienceSchema: z.ZodEnum<["all", "merchant"]>;
169
169
  type BroadcastAudience = z.infer<typeof broadcastAudienceSchema>;
@@ -208,8 +208,8 @@ declare const broadcastSchema: z.ZodObject<{
208
208
  emailedAt: z.ZodNullable<z.ZodString>;
209
209
  createdAt: z.ZodString;
210
210
  }, "strip", z.ZodTypeAny, {
211
- id: string;
212
211
  merchantId: string | null;
212
+ id: string;
213
213
  createdAt: string;
214
214
  title: string;
215
215
  body: string;
@@ -219,8 +219,8 @@ declare const broadcastSchema: z.ZodObject<{
219
219
  senderEmail: string;
220
220
  emailedAt: string | null;
221
221
  }, {
222
- id: string;
223
222
  merchantId: string | null;
223
+ id: string;
224
224
  createdAt: string;
225
225
  title: string;
226
226
  body: string;
@@ -244,8 +244,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
244
244
  emailedAt: z.ZodNullable<z.ZodString>;
245
245
  createdAt: z.ZodString;
246
246
  }, "strip", z.ZodTypeAny, {
247
- id: string;
248
247
  merchantId: string | null;
248
+ id: string;
249
249
  createdAt: string;
250
250
  title: string;
251
251
  body: string;
@@ -255,8 +255,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
255
255
  senderEmail: string;
256
256
  emailedAt: string | null;
257
257
  }, {
258
- id: string;
259
258
  merchantId: string | null;
259
+ id: string;
260
260
  createdAt: string;
261
261
  title: string;
262
262
  body: string;
@@ -268,8 +268,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
268
268
  }>, "many">;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  data: {
271
- id: string;
272
271
  merchantId: string | null;
272
+ id: string;
273
273
  createdAt: string;
274
274
  title: string;
275
275
  body: string;
@@ -281,8 +281,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
281
281
  }[];
282
282
  }, {
283
283
  data: {
284
- id: string;
285
284
  merchantId: string | null;
285
+ id: string;
286
286
  createdAt: string;
287
287
  title: string;
288
288
  body: string;
@@ -315,7 +315,7 @@ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
315
315
  declare const notificationSchema: z.ZodObject<{
316
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
317
317
  id: z.ZodString;
318
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
318
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
319
319
  title: z.ZodString;
320
320
  detail: z.ZodString;
321
321
  /** Dashboard route the tray links to. */
@@ -329,7 +329,7 @@ declare const notificationSchema: z.ZodObject<{
329
329
  }, "strip", z.ZodTypeAny, {
330
330
  id: string;
331
331
  createdAt: string;
332
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
332
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
333
333
  title: string;
334
334
  detail: string;
335
335
  href: string;
@@ -338,7 +338,7 @@ declare const notificationSchema: z.ZodObject<{
338
338
  }, {
339
339
  id: string;
340
340
  createdAt: string;
341
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
341
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
342
342
  title: string;
343
343
  detail: string;
344
344
  href: string;
@@ -350,7 +350,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
350
350
  data: z.ZodArray<z.ZodObject<{
351
351
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
352
352
  id: z.ZodString;
353
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
353
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
354
354
  title: z.ZodString;
355
355
  detail: z.ZodString;
356
356
  /** Dashboard route the tray links to. */
@@ -364,7 +364,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
364
364
  }, "strip", z.ZodTypeAny, {
365
365
  id: string;
366
366
  createdAt: string;
367
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
367
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
368
368
  title: string;
369
369
  detail: string;
370
370
  href: string;
@@ -373,7 +373,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
373
373
  }, {
374
374
  id: string;
375
375
  createdAt: string;
376
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
376
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
377
377
  title: string;
378
378
  detail: string;
379
379
  href: string;
@@ -386,7 +386,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
386
386
  data: {
387
387
  id: string;
388
388
  createdAt: string;
389
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
389
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
390
390
  title: string;
391
391
  detail: string;
392
392
  href: string;
@@ -399,7 +399,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
399
399
  data: {
400
400
  id: string;
401
401
  createdAt: string;
402
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
402
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
403
403
  title: string;
404
404
  detail: string;
405
405
  href: string;
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { ComplianceLog, ComplianceProvider, ComplianceScreeningContext, Complian
11
11
  export { AgentActionOutcome, AgentActionType, AgentActivityLog, AgentCapability, AgentIdentity, AgentJob, AgentJobStatus, AgentMerchantConfig, CreateAgentJobInput, CreateAgentJobParsed, UpdateAgentConfigInput, UpdateAgentConfigParsed, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, createAgentJobInputSchema, updateAgentConfigInputSchema } from './agents.js';
12
12
  export { CreateStorefrontInput, CreateStorefrontParsed, CreateStorefrontProductInput, CreateStorefrontProductParsed, Storefront, StorefrontCheckoutInput, StorefrontCheckoutParsed, StorefrontCheckoutResponse, StorefrontProduct, StorefrontProductType, StorefrontStatus, createStorefrontInputSchema, createStorefrontProductInputSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema } from './storefronts.js';
13
13
  export { CreateInvoiceInput, CreateInvoiceParsed, Invoice, InvoiceLineItem, InvoiceStatus, createInvoiceInputSchema, invoiceLineItemSchema, invoiceSchema, invoiceStatusSchema } from './invoices.js';
14
- export { AgentJobCompletedEvent, AgentJobDisputedEvent, AgentJobProposedEvent, ComplianceWalletBlockedEvent, ComplianceWalletFlaggedEvent, InvoiceCreatedEvent, InvoiceOverdueEvent, InvoicePaidEvent, PaymentCompletedEvent, PaymentCreatedEvent, PaymentFailedEvent, RefundCompletedEvent, RefundCreatedEvent, StrimzWebhookEvent, SubscriptionCancelledEvent, SubscriptionChargeFailedEvent, SubscriptionChargedEvent, SubscriptionCreatedEvent, SubscriptionLapsedEvent, SubscriptionReactivatedEvent, SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema } from './events.js';
14
+ export { AgentJobCompletedEvent, AgentJobDisputedEvent, AgentJobProposedEvent, ComplianceWalletBlockedEvent, ComplianceWalletFlaggedEvent, InvoiceCreatedEvent, InvoiceOverdueEvent, InvoicePaidEvent, PaymentCompletedEvent, PaymentCreatedEvent, PaymentFailedEvent, RefundCompletedEvent, RefundCreatedEvent, RefundFailedEvent, StrimzWebhookEvent, SubscriptionCancelledEvent, SubscriptionChargeFailedEvent, SubscriptionChargedEvent, SubscriptionCreatedEvent, SubscriptionLapsedEvent, SubscriptionReactivatedEvent, SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, refundFailedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema } from './events.js';
15
15
  import { z } from 'zod';
16
16
  export { AdminMerchantStats, AdminOverview, AdminStatsModeQuery, AdminTopMerchant, AdminTopMerchants, AdminTopMerchantsQuery, AdminVolumeDay, AdminVolumeQuery, AdminVolumeSeries, CurrencyAmounts, Forecast, ForecastConfidence, Money, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, StatsForecast, StatsLtv, StatsLtvQuery, StatsLtvQueryParsed, StatsLtvRow, StatsMrr, StatsSummary, StatsVolume, StatsVolumeDay, StatsVolumeQuery, VolumeWindow, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, currencyAmountsSchema, forecastConfidenceSchema, forecastSchema, moneySchema, paymentCurrencies, resolveStatsVolumeRange, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, volumeWindowSchema } from './analytics.js';
17
17
 
@@ -163,7 +163,7 @@ type ContactRequestOutput = z.infer<typeof contactRequestOutputSchema>;
163
163
  * just be a denormalised copy.
164
164
  */
165
165
 
166
- declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
166
+ declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
167
167
  type NotificationKind = z.infer<typeof notificationKindSchema>;
168
168
  declare const broadcastAudienceSchema: z.ZodEnum<["all", "merchant"]>;
169
169
  type BroadcastAudience = z.infer<typeof broadcastAudienceSchema>;
@@ -208,8 +208,8 @@ declare const broadcastSchema: z.ZodObject<{
208
208
  emailedAt: z.ZodNullable<z.ZodString>;
209
209
  createdAt: z.ZodString;
210
210
  }, "strip", z.ZodTypeAny, {
211
- id: string;
212
211
  merchantId: string | null;
212
+ id: string;
213
213
  createdAt: string;
214
214
  title: string;
215
215
  body: string;
@@ -219,8 +219,8 @@ declare const broadcastSchema: z.ZodObject<{
219
219
  senderEmail: string;
220
220
  emailedAt: string | null;
221
221
  }, {
222
- id: string;
223
222
  merchantId: string | null;
223
+ id: string;
224
224
  createdAt: string;
225
225
  title: string;
226
226
  body: string;
@@ -244,8 +244,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
244
244
  emailedAt: z.ZodNullable<z.ZodString>;
245
245
  createdAt: z.ZodString;
246
246
  }, "strip", z.ZodTypeAny, {
247
- id: string;
248
247
  merchantId: string | null;
248
+ id: string;
249
249
  createdAt: string;
250
250
  title: string;
251
251
  body: string;
@@ -255,8 +255,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
255
255
  senderEmail: string;
256
256
  emailedAt: string | null;
257
257
  }, {
258
- id: string;
259
258
  merchantId: string | null;
259
+ id: string;
260
260
  createdAt: string;
261
261
  title: string;
262
262
  body: string;
@@ -268,8 +268,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
268
268
  }>, "many">;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  data: {
271
- id: string;
272
271
  merchantId: string | null;
272
+ id: string;
273
273
  createdAt: string;
274
274
  title: string;
275
275
  body: string;
@@ -281,8 +281,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
281
281
  }[];
282
282
  }, {
283
283
  data: {
284
- id: string;
285
284
  merchantId: string | null;
285
+ id: string;
286
286
  createdAt: string;
287
287
  title: string;
288
288
  body: string;
@@ -315,7 +315,7 @@ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
315
315
  declare const notificationSchema: z.ZodObject<{
316
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
317
317
  id: z.ZodString;
318
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
318
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
319
319
  title: z.ZodString;
320
320
  detail: z.ZodString;
321
321
  /** Dashboard route the tray links to. */
@@ -329,7 +329,7 @@ declare const notificationSchema: z.ZodObject<{
329
329
  }, "strip", z.ZodTypeAny, {
330
330
  id: string;
331
331
  createdAt: string;
332
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
332
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
333
333
  title: string;
334
334
  detail: string;
335
335
  href: string;
@@ -338,7 +338,7 @@ declare const notificationSchema: z.ZodObject<{
338
338
  }, {
339
339
  id: string;
340
340
  createdAt: string;
341
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
341
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
342
342
  title: string;
343
343
  detail: string;
344
344
  href: string;
@@ -350,7 +350,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
350
350
  data: z.ZodArray<z.ZodObject<{
351
351
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
352
352
  id: z.ZodString;
353
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
353
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
354
354
  title: z.ZodString;
355
355
  detail: z.ZodString;
356
356
  /** Dashboard route the tray links to. */
@@ -364,7 +364,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
364
364
  }, "strip", z.ZodTypeAny, {
365
365
  id: string;
366
366
  createdAt: string;
367
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
367
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
368
368
  title: string;
369
369
  detail: string;
370
370
  href: string;
@@ -373,7 +373,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
373
373
  }, {
374
374
  id: string;
375
375
  createdAt: string;
376
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
376
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
377
377
  title: string;
378
378
  detail: string;
379
379
  href: string;
@@ -386,7 +386,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
386
386
  data: {
387
387
  id: string;
388
388
  createdAt: string;
389
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
389
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
390
390
  title: string;
391
391
  detail: string;
392
392
  href: string;
@@ -399,7 +399,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
399
399
  data: {
400
400
  id: string;
401
401
  createdAt: string;
402
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
402
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
403
403
  title: string;
404
404
  detail: string;
405
405
  href: string;
package/dist/index.js CHANGED
@@ -599,6 +599,7 @@ var webhookEventNameSchema = z.enum([
599
599
  "subscription.reactivated",
600
600
  "refund.created",
601
601
  "refund.completed",
602
+ "refund.failed",
602
603
  "invoice.created",
603
604
  "invoice.paid",
604
605
  "invoice.overdue",
@@ -981,6 +982,7 @@ var refundCompletedEventSchema = envelope(
981
982
  "refund.completed",
982
983
  z.object({ refund: refundSchema, transaction: transactionSchema })
983
984
  );
985
+ var refundFailedEventSchema = envelope("refund.failed", refundSchema);
984
986
  var invoiceCreatedEventSchema = envelope("invoice.created", invoiceSchema);
985
987
  var invoicePaidEventSchema = envelope(
986
988
  "invoice.paid",
@@ -1011,6 +1013,7 @@ var webhookEventSchema = z.discriminatedUnion("type", [
1011
1013
  subscriptionReactivatedEventSchema,
1012
1014
  refundCreatedEventSchema,
1013
1015
  refundCompletedEventSchema,
1016
+ refundFailedEventSchema,
1014
1017
  invoiceCreatedEventSchema,
1015
1018
  invoicePaidEventSchema,
1016
1019
  invoiceOverdueEventSchema,
@@ -1061,7 +1064,9 @@ var notificationKindSchema = z.enum([
1061
1064
  "subscription_started",
1062
1065
  "refund_processed",
1063
1066
  /** Message an admin broadcast to this merchant (or all merchants). */
1064
- "admin_broadcast"
1067
+ "admin_broadcast",
1068
+ /** A subscriber's token approval covers fewer than two more charges. */
1069
+ "allowance_low"
1065
1070
  ]);
1066
1071
  var broadcastAudienceSchema = z.enum(["all", "merchant"]);
1067
1072
  var createBroadcastInputSchema = z.object({
@@ -1308,6 +1313,6 @@ var adminTopMerchantsSchema = z.object({
1308
1313
  data: z.array(adminTopMerchantSchema)
1309
1314
  });
1310
1315
 
1311
- export { DEFAULT_MERCHANT_EMAIL_PREFS, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, apiKeyKindSchema, apiKeySchema, apiKeyScopeSchema, arcEnvironmentSchema, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, callbackUrlSchema, cancelSubscriptionInputSchema, changeTierInputSchema, checkoutResultErrorCodeSchema, checkoutResultErrorCodes, checkoutResultMessageSchema, complianceLogSchema, complianceProviderSchema, complianceScreeningContextSchema, complianceStatusSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, countryCodeSchema, createAgentJobInputSchema, createApiKeyInputSchema, createApiKeyOutputSchema, createBroadcastInputSchema, createInvoiceInputSchema, createMerchantInputSchema, createPaymentSessionInputSchema, createRefundInputSchema, createStorefrontInputSchema, createStorefrontProductInputSchema, createSubscriptionPlanInputSchema, createWebhookEndpointInputSchema, createWebhookEndpointOutputSchema, currencyAmountsSchema, customerSchema, emailSchema, evmAddressSchema, evmTxHashSchema, forecastConfidenceSchema, forecastSchema, httpUrlSchema, httpsUrlSchema, idSchema, inviteMemberInputSchema, invoiceCreatedEventSchema, invoiceLineItemSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, invoiceSchema, invoiceStatusSchema, isoTimestampSchema, loginInputSchema, loginOutputSchema, makePaginatedSchema, markNotificationsReadResponseSchema, merchantBalanceSchema, merchantEmailPrefsSchema, merchantMemberSchema, merchantPublicBrandSchema, merchantRoleSchema, merchantSchema, merchantStatusSchema, merchantTierSchema, metadataSchema, modeSchema, moneySchema, notificationBroadcastSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, onboardMerchantInputSchema, paginationInputSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentCurrencies, paymentCurrencySchema, paymentFailedEventSchema, paymentSessionSchema, paymentSessionStatusSchema, refundCompletedEventSchema, refundCreateOutputSchema, refundCreatedEventSchema, refundReasonSchema, refundSchema, refundSigningInstructionsSchema, refundStatusSchema, replayDeliveryInputSchema, resolveStatsVolumeRange, rotateApiKeyInputSchema, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema, submitPaymentSessionInputSchema, submitRefundSignatureInputSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargeOutcomeSchema, subscriptionChargeSchema, subscriptionChargeStatusSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionEnrolmentTermsSchema, subscriptionIntervalSchema, subscriptionLapsedEventSchema, subscriptionPlanSchema, subscriptionPlanStatusSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, subscriptionResultErrorCodeSchema, subscriptionResultErrorCodes, subscriptionResultMessageSchema, subscriptionSchema, subscriptionStatusResultSchema, subscriptionStatusSchema, tokenAmountSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema, tokenSymbolSchema, transactionKindSchema, transactionSchema, transactionStatusSchema, uintSchema, updateAgentConfigInputSchema, updateMerchantInputSchema, updateSubscriptionPlanInputSchema, upsertCustomerInputSchema, volumeWindowSchema, webhookDeliveryDetailSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEndpointSchema, webhookEndpointStatusSchema, webhookEventNameSchema, webhookEventSchema };
1316
+ export { DEFAULT_MERCHANT_EMAIL_PREFS, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, apiKeyKindSchema, apiKeySchema, apiKeyScopeSchema, arcEnvironmentSchema, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, callbackUrlSchema, cancelSubscriptionInputSchema, changeTierInputSchema, checkoutResultErrorCodeSchema, checkoutResultErrorCodes, checkoutResultMessageSchema, complianceLogSchema, complianceProviderSchema, complianceScreeningContextSchema, complianceStatusSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, countryCodeSchema, createAgentJobInputSchema, createApiKeyInputSchema, createApiKeyOutputSchema, createBroadcastInputSchema, createInvoiceInputSchema, createMerchantInputSchema, createPaymentSessionInputSchema, createRefundInputSchema, createStorefrontInputSchema, createStorefrontProductInputSchema, createSubscriptionPlanInputSchema, createWebhookEndpointInputSchema, createWebhookEndpointOutputSchema, currencyAmountsSchema, customerSchema, emailSchema, evmAddressSchema, evmTxHashSchema, forecastConfidenceSchema, forecastSchema, httpUrlSchema, httpsUrlSchema, idSchema, inviteMemberInputSchema, invoiceCreatedEventSchema, invoiceLineItemSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, invoiceSchema, invoiceStatusSchema, isoTimestampSchema, loginInputSchema, loginOutputSchema, makePaginatedSchema, markNotificationsReadResponseSchema, merchantBalanceSchema, merchantEmailPrefsSchema, merchantMemberSchema, merchantPublicBrandSchema, merchantRoleSchema, merchantSchema, merchantStatusSchema, merchantTierSchema, metadataSchema, modeSchema, moneySchema, notificationBroadcastSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, onboardMerchantInputSchema, paginationInputSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentCurrencies, paymentCurrencySchema, paymentFailedEventSchema, paymentSessionSchema, paymentSessionStatusSchema, refundCompletedEventSchema, refundCreateOutputSchema, refundCreatedEventSchema, refundFailedEventSchema, refundReasonSchema, refundSchema, refundSigningInstructionsSchema, refundStatusSchema, replayDeliveryInputSchema, resolveStatsVolumeRange, rotateApiKeyInputSchema, statsForecastSchema, statsLtvQuerySchema, statsLtvRowSchema, statsLtvSchema, statsMrrSchema, statsSummarySchema, statsVolumeDaySchema, statsVolumeQuerySchema, statsVolumeSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema, submitPaymentSessionInputSchema, submitRefundSignatureInputSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargeOutcomeSchema, subscriptionChargeSchema, subscriptionChargeStatusSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionEnrolmentTermsSchema, subscriptionIntervalSchema, subscriptionLapsedEventSchema, subscriptionPlanSchema, subscriptionPlanStatusSchema, subscriptionReactivatedEventSchema, subscriptionRecoveryAttemptEventSchema, subscriptionResultErrorCodeSchema, subscriptionResultErrorCodes, subscriptionResultMessageSchema, subscriptionSchema, subscriptionStatusResultSchema, subscriptionStatusSchema, tokenAmountSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema, tokenSymbolSchema, transactionKindSchema, transactionSchema, transactionStatusSchema, uintSchema, updateAgentConfigInputSchema, updateMerchantInputSchema, updateSubscriptionPlanInputSchema, upsertCustomerInputSchema, volumeWindowSchema, webhookDeliveryDetailSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEndpointSchema, webhookEndpointStatusSchema, webhookEventNameSchema, webhookEventSchema };
1312
1317
  //# sourceMappingURL=index.js.map
1313
1318
  //# sourceMappingURL=index.js.map