@strimz/shared-types 0.15.0 → 0.17.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 (62) hide show
  1. package/dist/analytics.cjs +3 -1
  2. package/dist/analytics.cjs.map +1 -1
  3. package/dist/analytics.d.cts +141 -141
  4. package/dist/analytics.d.ts +141 -141
  5. package/dist/analytics.js +3 -1
  6. package/dist/analytics.js.map +1 -1
  7. package/dist/api-keys.d.cts +14 -14
  8. package/dist/api-keys.d.ts +14 -14
  9. package/dist/compliance.d.cts +8 -8
  10. package/dist/compliance.d.ts +8 -8
  11. package/dist/customers.d.cts +7 -7
  12. package/dist/customers.d.ts +7 -7
  13. package/dist/events.cjs +10 -1
  14. package/dist/events.cjs.map +1 -1
  15. package/dist/events.d.cts +1712 -1458
  16. package/dist/events.d.ts +1712 -1458
  17. package/dist/events.js +10 -2
  18. package/dist/events.js.map +1 -1
  19. package/dist/index.cjs +17 -1
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +26 -8
  22. package/dist/index.d.ts +26 -8
  23. package/dist/index.js +16 -2
  24. package/dist/index.js.map +1 -1
  25. package/dist/invoices.d.cts +12 -12
  26. package/dist/invoices.d.ts +12 -12
  27. package/dist/merchants.d.cts +26 -26
  28. package/dist/merchants.d.ts +26 -26
  29. package/dist/payment-sessions.cjs +1 -0
  30. package/dist/payment-sessions.cjs.map +1 -1
  31. package/dist/payment-sessions.d.cts +16 -16
  32. package/dist/payment-sessions.d.ts +16 -16
  33. package/dist/payment-sessions.js +1 -0
  34. package/dist/payment-sessions.js.map +1 -1
  35. package/dist/refunds.d.cts +36 -36
  36. package/dist/refunds.d.ts +36 -36
  37. package/dist/storefronts.cjs +3 -1
  38. package/dist/storefronts.cjs.map +1 -1
  39. package/dist/storefronts.d.cts +13 -13
  40. package/dist/storefronts.d.ts +13 -13
  41. package/dist/storefronts.js +3 -1
  42. package/dist/storefronts.js.map +1 -1
  43. package/dist/subscriptions.cjs +3 -1
  44. package/dist/subscriptions.cjs.map +1 -1
  45. package/dist/subscriptions.d.cts +36 -36
  46. package/dist/subscriptions.d.ts +36 -36
  47. package/dist/subscriptions.js +3 -1
  48. package/dist/subscriptions.js.map +1 -1
  49. package/dist/transactions.d.cts +10 -10
  50. package/dist/transactions.d.ts +10 -10
  51. package/dist/webhooks.cjs +1 -0
  52. package/dist/webhooks.cjs.map +1 -1
  53. package/dist/webhooks.d.cts +46 -46
  54. package/dist/webhooks.d.ts +46 -46
  55. package/dist/webhooks.js +1 -0
  56. package/dist/webhooks.js.map +1 -1
  57. package/package.json +2 -2
  58. package/src/events.ts +7 -0
  59. package/src/notifications.ts +9 -0
  60. package/src/payment-sessions.ts +1 -0
  61. package/src/subscriptions.ts +1 -0
  62. 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, SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema } from './events.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';
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
 
@@ -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
- merchantId: string | null;
212
211
  id: string;
212
+ merchantId: string | null;
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
- merchantId: string | null;
223
222
  id: string;
223
+ merchantId: string | null;
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
- merchantId: string | null;
248
247
  id: string;
248
+ merchantId: string | null;
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
- merchantId: string | null;
259
258
  id: string;
259
+ merchantId: string | null;
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
- merchantId: string | null;
272
271
  id: string;
272
+ merchantId: string | null;
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
- merchantId: string | null;
285
284
  id: string;
285
+ merchantId: string | null;
286
286
  createdAt: string;
287
287
  title: string;
288
288
  body: string;
@@ -294,6 +294,24 @@ declare const broadcastListResponseSchema: z.ZodObject<{
294
294
  }[];
295
295
  }>;
296
296
  type BroadcastListResponse = z.infer<typeof broadcastListResponseSchema>;
297
+ /** One broadcast as a merchant reads it. `html` is already sanitized by the API. */
298
+ declare const notificationBroadcastSchema: z.ZodObject<{
299
+ id: z.ZodString;
300
+ title: z.ZodString;
301
+ html: z.ZodString;
302
+ createdAt: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ createdAt: string;
306
+ title: string;
307
+ html: string;
308
+ }, {
309
+ id: string;
310
+ createdAt: string;
311
+ title: string;
312
+ html: string;
313
+ }>;
314
+ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
297
315
  declare const notificationSchema: z.ZodObject<{
298
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
299
317
  id: z.ZodString;
@@ -401,4 +419,4 @@ declare const markNotificationsReadResponseSchema: z.ZodObject<{
401
419
  }>;
402
420
  type MarkNotificationsReadResponse = z.infer<typeof markNotificationsReadResponseSchema>;
403
421
 
404
- export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
422
+ export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationBroadcast, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationBroadcastSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
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, SubscriptionRecoveryAttemptEvent, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, webhookEventSchema } from './events.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';
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
 
@@ -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
- merchantId: string | null;
212
211
  id: string;
212
+ merchantId: string | null;
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
- merchantId: string | null;
223
222
  id: string;
223
+ merchantId: string | null;
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
- merchantId: string | null;
248
247
  id: string;
248
+ merchantId: string | null;
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
- merchantId: string | null;
259
258
  id: string;
259
+ merchantId: string | null;
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
- merchantId: string | null;
272
271
  id: string;
272
+ merchantId: string | null;
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
- merchantId: string | null;
285
284
  id: string;
285
+ merchantId: string | null;
286
286
  createdAt: string;
287
287
  title: string;
288
288
  body: string;
@@ -294,6 +294,24 @@ declare const broadcastListResponseSchema: z.ZodObject<{
294
294
  }[];
295
295
  }>;
296
296
  type BroadcastListResponse = z.infer<typeof broadcastListResponseSchema>;
297
+ /** One broadcast as a merchant reads it. `html` is already sanitized by the API. */
298
+ declare const notificationBroadcastSchema: z.ZodObject<{
299
+ id: z.ZodString;
300
+ title: z.ZodString;
301
+ html: z.ZodString;
302
+ createdAt: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ id: string;
305
+ createdAt: string;
306
+ title: string;
307
+ html: string;
308
+ }, {
309
+ id: string;
310
+ createdAt: string;
311
+ title: string;
312
+ html: string;
313
+ }>;
314
+ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
297
315
  declare const notificationSchema: z.ZodObject<{
298
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
299
317
  id: z.ZodString;
@@ -401,4 +419,4 @@ declare const markNotificationsReadResponseSchema: z.ZodObject<{
401
419
  }>;
402
420
  type MarkNotificationsReadResponse = z.infer<typeof markNotificationsReadResponseSchema>;
403
421
 
404
- export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
422
+ export { type Broadcast, type BroadcastAudience, type BroadcastListResponse, type ContactRequestInput, type ContactRequestOutput, type ContactRequestParsed, type ContactTopic, type CreateBroadcastInput, type CreateBroadcastParsed, type MarkNotificationsReadResponse, type NotificationBroadcast, type NotificationKind, type NotificationListResponse, type NotificationView, type TokenCapabilities, type TokenMetadata, type TokenPermitNonce, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, createBroadcastInputSchema, markNotificationsReadResponseSchema, notificationBroadcastSchema, notificationKindSchema, notificationListResponseSchema, notificationSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema };
package/dist/index.js CHANGED
@@ -314,6 +314,7 @@ var checkoutResultErrorCodes = [
314
314
  "load_failed",
315
315
  "merchant_not_ready",
316
316
  "payment_reverted",
317
+ // No longer sent: smart-contract wallets can pay since the #142 redeploy.
317
318
  "unsupported_wallet"
318
319
  ];
319
320
  var checkoutResultErrorCodeSchema = z.enum(checkoutResultErrorCodes);
@@ -504,7 +505,8 @@ var subscriptionChargeOutcomeSchema = z.enum([
504
505
  "unknown",
505
506
  "merchant_inactive",
506
507
  "transfer_failed",
507
- "skipped"
508
+ "skipped",
509
+ "token_not_allowed"
508
510
  ]);
509
511
  var subscriptionChargeStatusSchema = z.enum([
510
512
  "pending",
@@ -594,6 +596,7 @@ var webhookEventNameSchema = z.enum([
594
596
  "subscription.recovery_attempt",
595
597
  "subscription.cancelled",
596
598
  "subscription.lapsed",
599
+ "subscription.reactivated",
597
600
  "refund.created",
598
601
  "refund.completed",
599
602
  "invoice.created",
@@ -969,6 +972,10 @@ var subscriptionCancelledEventSchema = envelope(
969
972
  subscriptionSchema
970
973
  );
971
974
  var subscriptionLapsedEventSchema = envelope("subscription.lapsed", subscriptionSchema);
975
+ var subscriptionReactivatedEventSchema = envelope(
976
+ "subscription.reactivated",
977
+ subscriptionSchema
978
+ );
972
979
  var refundCreatedEventSchema = envelope("refund.created", refundSchema);
973
980
  var refundCompletedEventSchema = envelope(
974
981
  "refund.completed",
@@ -1001,6 +1008,7 @@ var webhookEventSchema = z.discriminatedUnion("type", [
1001
1008
  subscriptionRecoveryAttemptEventSchema,
1002
1009
  subscriptionCancelledEventSchema,
1003
1010
  subscriptionLapsedEventSchema,
1011
+ subscriptionReactivatedEventSchema,
1004
1012
  refundCreatedEventSchema,
1005
1013
  refundCompletedEventSchema,
1006
1014
  invoiceCreatedEventSchema,
@@ -1081,6 +1089,12 @@ var broadcastSchema = z.object({
1081
1089
  var broadcastListResponseSchema = z.object({
1082
1090
  data: z.array(broadcastSchema)
1083
1091
  });
1092
+ var notificationBroadcastSchema = z.object({
1093
+ id: idSchema,
1094
+ title: z.string(),
1095
+ html: z.string(),
1096
+ createdAt: isoTimestampSchema
1097
+ });
1084
1098
  var notificationSchema = z.object({
1085
1099
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
1086
1100
  id: z.string().min(1),
@@ -1294,6 +1308,6 @@ var adminTopMerchantsSchema = z.object({
1294
1308
  data: z.array(adminTopMerchantSchema)
1295
1309
  });
1296
1310
 
1297
- 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, 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, 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 };
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 };
1298
1312
  //# sourceMappingURL=index.js.map
1299
1313
  //# sourceMappingURL=index.js.map