@strimz/shared-types 0.7.0 → 0.8.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.
package/dist/index.d.cts CHANGED
@@ -13,6 +13,7 @@ export { CreateStorefrontInput, CreateStorefrontParsed, CreateStorefrontProductI
13
13
  export { CreateInvoiceInput, CreateInvoiceParsed, Invoice, InvoiceLineItem, InvoiceStatus, createInvoiceInputSchema, invoiceLineItemSchema, invoiceSchema, invoiceStatusSchema } from './invoices.cjs';
14
14
  export { AgentActionExecutedEvent, AgentJobCompletedEvent, AgentJobDisputedEvent, AgentJobProposedEvent, ComplianceWalletBlockedEvent, ComplianceWalletFlaggedEvent, InvoiceCreatedEvent, InvoiceOverdueEvent, InvoicePaidEvent, PaymentCompletedEvent, PaymentCreatedEvent, PaymentFailedEvent, RefundCompletedEvent, RefundCreatedEvent, RefundFailedEvent, StrimzWebhookEvent, SubscriptionCancelledEvent, SubscriptionChargeFailedEvent, SubscriptionChargedEvent, SubscriptionCreatedEvent, SubscriptionLapsedEvent, SubscriptionRecoveryAttemptEvent, SubscriptionRecoveryOutcomeEvent, agentActionExecutedEventSchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, refundFailedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, subscriptionRecoveryOutcomeEventSchema, webhookEventSchema } from './events.cjs';
15
15
  import { z } from 'zod';
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';
16
17
 
17
18
  /**
18
19
  * Token metadata + capability descriptor.
@@ -127,14 +128,14 @@ declare const contactRequestInputSchema: z.ZodObject<{
127
128
  message: z.ZodString;
128
129
  }, "strip", z.ZodTypeAny, {
129
130
  message: string;
130
- name: string;
131
131
  email: string;
132
+ name: string;
132
133
  topic: "other" | "sales" | "support" | "partnership" | "security";
133
134
  company?: string | undefined;
134
135
  }, {
135
136
  message: string;
136
- name: string;
137
137
  email: string;
138
+ name: string;
138
139
  topic: "other" | "sales" | "support" | "partnership" | "security";
139
140
  company?: string | undefined;
140
141
  }>;
@@ -204,8 +205,8 @@ declare const broadcastSchema: z.ZodObject<{
204
205
  emailedAt: z.ZodNullable<z.ZodString>;
205
206
  createdAt: z.ZodString;
206
207
  }, "strip", z.ZodTypeAny, {
207
- id: string;
208
208
  merchantId: string | null;
209
+ id: string;
209
210
  createdAt: string;
210
211
  title: string;
211
212
  body: string;
@@ -215,8 +216,8 @@ declare const broadcastSchema: z.ZodObject<{
215
216
  senderEmail: string;
216
217
  emailedAt: string | null;
217
218
  }, {
218
- id: string;
219
219
  merchantId: string | null;
220
+ id: string;
220
221
  createdAt: string;
221
222
  title: string;
222
223
  body: string;
@@ -240,8 +241,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
240
241
  emailedAt: z.ZodNullable<z.ZodString>;
241
242
  createdAt: z.ZodString;
242
243
  }, "strip", z.ZodTypeAny, {
243
- id: string;
244
244
  merchantId: string | null;
245
+ id: string;
245
246
  createdAt: string;
246
247
  title: string;
247
248
  body: string;
@@ -251,8 +252,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
251
252
  senderEmail: string;
252
253
  emailedAt: string | null;
253
254
  }, {
254
- id: string;
255
255
  merchantId: string | null;
256
+ id: string;
256
257
  createdAt: string;
257
258
  title: string;
258
259
  body: string;
@@ -264,8 +265,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
264
265
  }>, "many">;
265
266
  }, "strip", z.ZodTypeAny, {
266
267
  data: {
267
- id: string;
268
268
  merchantId: string | null;
269
+ id: string;
269
270
  createdAt: string;
270
271
  title: string;
271
272
  body: string;
@@ -277,8 +278,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
277
278
  }[];
278
279
  }, {
279
280
  data: {
280
- id: string;
281
281
  merchantId: string | null;
282
+ id: string;
282
283
  createdAt: string;
283
284
  title: string;
284
285
  body: string;
@@ -306,8 +307,8 @@ declare const notificationSchema: z.ZodObject<{
306
307
  sourceId: z.ZodOptional<z.ZodString>;
307
308
  }, "strip", z.ZodTypeAny, {
308
309
  id: string;
309
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
310
310
  createdAt: string;
311
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
311
312
  title: string;
312
313
  detail: string;
313
314
  href: string;
@@ -315,8 +316,8 @@ declare const notificationSchema: z.ZodObject<{
315
316
  sourceId?: string | undefined;
316
317
  }, {
317
318
  id: string;
318
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
319
319
  createdAt: string;
320
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
320
321
  title: string;
321
322
  detail: string;
322
323
  href: string;
@@ -341,8 +342,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
341
342
  sourceId: z.ZodOptional<z.ZodString>;
342
343
  }, "strip", z.ZodTypeAny, {
343
344
  id: string;
344
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
345
345
  createdAt: string;
346
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
346
347
  title: string;
347
348
  detail: string;
348
349
  href: string;
@@ -350,8 +351,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
350
351
  sourceId?: string | undefined;
351
352
  }, {
352
353
  id: string;
353
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
354
354
  createdAt: string;
355
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
355
356
  title: string;
356
357
  detail: string;
357
358
  href: string;
@@ -363,8 +364,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
363
364
  }, "strip", z.ZodTypeAny, {
364
365
  data: {
365
366
  id: string;
366
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
367
367
  createdAt: string;
368
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
368
369
  title: string;
369
370
  detail: string;
370
371
  href: string;
@@ -376,8 +377,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
376
377
  }, {
377
378
  data: {
378
379
  id: string;
379
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
380
380
  createdAt: string;
381
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
381
382
  title: string;
382
383
  detail: string;
383
384
  href: string;
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export { CreateStorefrontInput, CreateStorefrontParsed, CreateStorefrontProductI
13
13
  export { CreateInvoiceInput, CreateInvoiceParsed, Invoice, InvoiceLineItem, InvoiceStatus, createInvoiceInputSchema, invoiceLineItemSchema, invoiceSchema, invoiceStatusSchema } from './invoices.js';
14
14
  export { AgentActionExecutedEvent, AgentJobCompletedEvent, AgentJobDisputedEvent, AgentJobProposedEvent, ComplianceWalletBlockedEvent, ComplianceWalletFlaggedEvent, InvoiceCreatedEvent, InvoiceOverdueEvent, InvoicePaidEvent, PaymentCompletedEvent, PaymentCreatedEvent, PaymentFailedEvent, RefundCompletedEvent, RefundCreatedEvent, RefundFailedEvent, StrimzWebhookEvent, SubscriptionCancelledEvent, SubscriptionChargeFailedEvent, SubscriptionChargedEvent, SubscriptionCreatedEvent, SubscriptionLapsedEvent, SubscriptionRecoveryAttemptEvent, SubscriptionRecoveryOutcomeEvent, agentActionExecutedEventSchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, invoiceCreatedEventSchema, invoiceOverdueEventSchema, invoicePaidEventSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentFailedEventSchema, refundCompletedEventSchema, refundCreatedEventSchema, refundFailedEventSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionLapsedEventSchema, subscriptionRecoveryAttemptEventSchema, subscriptionRecoveryOutcomeEventSchema, webhookEventSchema } from './events.js';
15
15
  import { z } from 'zod';
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';
16
17
 
17
18
  /**
18
19
  * Token metadata + capability descriptor.
@@ -127,14 +128,14 @@ declare const contactRequestInputSchema: z.ZodObject<{
127
128
  message: z.ZodString;
128
129
  }, "strip", z.ZodTypeAny, {
129
130
  message: string;
130
- name: string;
131
131
  email: string;
132
+ name: string;
132
133
  topic: "other" | "sales" | "support" | "partnership" | "security";
133
134
  company?: string | undefined;
134
135
  }, {
135
136
  message: string;
136
- name: string;
137
137
  email: string;
138
+ name: string;
138
139
  topic: "other" | "sales" | "support" | "partnership" | "security";
139
140
  company?: string | undefined;
140
141
  }>;
@@ -204,8 +205,8 @@ declare const broadcastSchema: z.ZodObject<{
204
205
  emailedAt: z.ZodNullable<z.ZodString>;
205
206
  createdAt: z.ZodString;
206
207
  }, "strip", z.ZodTypeAny, {
207
- id: string;
208
208
  merchantId: string | null;
209
+ id: string;
209
210
  createdAt: string;
210
211
  title: string;
211
212
  body: string;
@@ -215,8 +216,8 @@ declare const broadcastSchema: z.ZodObject<{
215
216
  senderEmail: string;
216
217
  emailedAt: string | null;
217
218
  }, {
218
- id: string;
219
219
  merchantId: string | null;
220
+ id: string;
220
221
  createdAt: string;
221
222
  title: string;
222
223
  body: string;
@@ -240,8 +241,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
240
241
  emailedAt: z.ZodNullable<z.ZodString>;
241
242
  createdAt: z.ZodString;
242
243
  }, "strip", z.ZodTypeAny, {
243
- id: string;
244
244
  merchantId: string | null;
245
+ id: string;
245
246
  createdAt: string;
246
247
  title: string;
247
248
  body: string;
@@ -251,8 +252,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
251
252
  senderEmail: string;
252
253
  emailedAt: string | null;
253
254
  }, {
254
- id: string;
255
255
  merchantId: string | null;
256
+ id: string;
256
257
  createdAt: string;
257
258
  title: string;
258
259
  body: string;
@@ -264,8 +265,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
264
265
  }>, "many">;
265
266
  }, "strip", z.ZodTypeAny, {
266
267
  data: {
267
- id: string;
268
268
  merchantId: string | null;
269
+ id: string;
269
270
  createdAt: string;
270
271
  title: string;
271
272
  body: string;
@@ -277,8 +278,8 @@ declare const broadcastListResponseSchema: z.ZodObject<{
277
278
  }[];
278
279
  }, {
279
280
  data: {
280
- id: string;
281
281
  merchantId: string | null;
282
+ id: string;
282
283
  createdAt: string;
283
284
  title: string;
284
285
  body: string;
@@ -306,8 +307,8 @@ declare const notificationSchema: z.ZodObject<{
306
307
  sourceId: z.ZodOptional<z.ZodString>;
307
308
  }, "strip", z.ZodTypeAny, {
308
309
  id: string;
309
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
310
310
  createdAt: string;
311
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
311
312
  title: string;
312
313
  detail: string;
313
314
  href: string;
@@ -315,8 +316,8 @@ declare const notificationSchema: z.ZodObject<{
315
316
  sourceId?: string | undefined;
316
317
  }, {
317
318
  id: string;
318
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
319
319
  createdAt: string;
320
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
320
321
  title: string;
321
322
  detail: string;
322
323
  href: string;
@@ -341,8 +342,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
341
342
  sourceId: z.ZodOptional<z.ZodString>;
342
343
  }, "strip", z.ZodTypeAny, {
343
344
  id: string;
344
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
345
345
  createdAt: string;
346
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
346
347
  title: string;
347
348
  detail: string;
348
349
  href: string;
@@ -350,8 +351,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
350
351
  sourceId?: string | undefined;
351
352
  }, {
352
353
  id: string;
353
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
354
354
  createdAt: string;
355
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
355
356
  title: string;
356
357
  detail: string;
357
358
  href: string;
@@ -363,8 +364,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
363
364
  }, "strip", z.ZodTypeAny, {
364
365
  data: {
365
366
  id: string;
366
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
367
367
  createdAt: string;
368
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
368
369
  title: string;
369
370
  detail: string;
370
371
  href: string;
@@ -376,8 +377,8 @@ declare const notificationListResponseSchema: z.ZodObject<{
376
377
  }, {
377
378
  data: {
378
379
  id: string;
379
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
380
380
  createdAt: string;
381
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
381
382
  title: string;
382
383
  detail: string;
383
384
  href: string;
package/dist/index.js CHANGED
@@ -1045,7 +1045,196 @@ var notificationListResponseSchema = z.object({
1045
1045
  var markNotificationsReadResponseSchema = z.object({
1046
1046
  lastReadAt: isoTimestampSchema
1047
1047
  });
1048
+ var paymentCurrencies = paymentCurrencySchema.options;
1049
+ var currencyAmountsShape = {
1050
+ USDC: tokenAmountSchema,
1051
+ EURC: tokenAmountSchema
1052
+ };
1053
+ var currencyAmountsSchema = z.object(currencyAmountsShape).strict();
1054
+ function countsByStatusSchema(statuses) {
1055
+ const shape = Object.fromEntries(statuses.options.map((s) => [s, uintSchema]));
1056
+ return z.object(shape).strict();
1057
+ }
1058
+ var moneySchema = z.object({
1059
+ count: uintSchema,
1060
+ amount: currencyAmountsSchema
1061
+ });
1062
+ var volumeWindowSchema = z.object({
1063
+ count: uintSchema,
1064
+ gross: currencyAmountsSchema,
1065
+ fees: currencyAmountsSchema,
1066
+ net: currencyAmountsSchema
1067
+ });
1068
+ var statsSummarySchema = z.object({
1069
+ mode: modeSchema,
1070
+ generatedAt: isoTimestampSchema,
1071
+ volume: z.object({
1072
+ last7d: volumeWindowSchema,
1073
+ last30d: volumeWindowSchema,
1074
+ allTime: volumeWindowSchema
1075
+ }),
1076
+ paymentSessions: z.object({
1077
+ total: uintSchema,
1078
+ byStatus: countsByStatusSchema(paymentSessionStatusSchema),
1079
+ confirmed: moneySchema
1080
+ }),
1081
+ invoices: z.object({
1082
+ byStatus: countsByStatusSchema(invoiceStatusSchema),
1083
+ outstanding: moneySchema,
1084
+ overdue: moneySchema,
1085
+ paidLast30d: moneySchema
1086
+ }),
1087
+ refunds: z.object({
1088
+ byStatus: countsByStatusSchema(refundStatusSchema),
1089
+ completed: moneySchema
1090
+ }),
1091
+ subscriptions: z.object({
1092
+ total: uintSchema,
1093
+ byStatus: countsByStatusSchema(subscriptionStatusSchema)
1094
+ }),
1095
+ customers: z.object({
1096
+ total: uintSchema
1097
+ })
1098
+ });
1099
+ var STATS_VOLUME_MAX_DAYS = 366;
1100
+ var STATS_VOLUME_DEFAULT_DAYS = 30;
1101
+ function resolveStatsVolumeRange(query, now = Date.now()) {
1102
+ const to = query.to ? new Date(query.to) : new Date(now);
1103
+ const from = query.from ? new Date(query.from) : new Date(to.getTime() - STATS_VOLUME_DEFAULT_DAYS * 864e5);
1104
+ return { from, to };
1105
+ }
1106
+ var statsVolumeQuerySchema = z.object({
1107
+ from: isoTimestampSchema.optional(),
1108
+ to: isoTimestampSchema.optional()
1109
+ }).strict().superRefine((q, ctx) => {
1110
+ const { from, to } = resolveStatsVolumeRange(q);
1111
+ if (from.getTime() > to.getTime()) {
1112
+ ctx.addIssue({
1113
+ code: z.ZodIssueCode.custom,
1114
+ message: "from must not be after to",
1115
+ path: ["from"]
1116
+ });
1117
+ } else if (to.getTime() - from.getTime() > STATS_VOLUME_MAX_DAYS * 864e5) {
1118
+ ctx.addIssue({
1119
+ code: z.ZodIssueCode.custom,
1120
+ message: `from and to must be at most ${STATS_VOLUME_MAX_DAYS} days apart`,
1121
+ path: ["to"]
1122
+ });
1123
+ }
1124
+ });
1125
+ var dayKeySchema = z.string().regex(/^\d{4}-\d{2}-\d{2}$/, "must be a YYYY-MM-DD day");
1126
+ var statsVolumeDaySchema = z.object({
1127
+ day: dayKeySchema,
1128
+ currency: paymentCurrencySchema,
1129
+ count: uintSchema,
1130
+ gross: tokenAmountSchema,
1131
+ fees: tokenAmountSchema,
1132
+ net: tokenAmountSchema
1133
+ });
1134
+ var statsVolumeSchema = z.object({
1135
+ from: isoTimestampSchema,
1136
+ to: isoTimestampSchema,
1137
+ data: z.array(statsVolumeDaySchema)
1138
+ });
1139
+ var statsMrrSchema = z.object({
1140
+ mrr: currencyAmountsSchema,
1141
+ activeSubscribers: uintSchema
1142
+ });
1143
+ var statsLtvQuerySchema = z.object({
1144
+ currency: paymentCurrencySchema,
1145
+ limit: z.coerce.number().int().min(1).max(100).default(25),
1146
+ cursor: z.string().min(1).max(200).optional()
1147
+ }).strict();
1148
+ var statsLtvRowSchema = z.object({
1149
+ customerId: idSchema,
1150
+ totalSpend: tokenAmountSchema,
1151
+ transactionCount: uintSchema
1152
+ });
1153
+ var statsLtvSchema = z.object({
1154
+ currency: paymentCurrencySchema,
1155
+ data: z.array(statsLtvRowSchema),
1156
+ nextCursor: z.string().nullable(),
1157
+ hasMore: z.boolean()
1158
+ });
1159
+ var forecastConfidenceSchema = z.enum(["low", "medium", "high"]);
1160
+ var forecastSchema = z.object({
1161
+ confidence: forecastConfidenceSchema,
1162
+ last90DayRevenue: tokenAmountSchema,
1163
+ next30: tokenAmountSchema,
1164
+ next60: tokenAmountSchema,
1165
+ next90: tokenAmountSchema
1166
+ });
1167
+ var forecastByCurrencyShape = {
1168
+ USDC: forecastSchema,
1169
+ EURC: forecastSchema
1170
+ };
1171
+ var statsForecastSchema = z.object({
1172
+ byCurrency: z.object(forecastByCurrencyShape).strict()
1173
+ });
1174
+ var adminStatsModeQuerySchema = z.object({
1175
+ mode: modeSchema.default("live")
1176
+ }).strict();
1177
+ var adminOverviewSchema = z.object({
1178
+ mode: modeSchema,
1179
+ merchants: z.object({
1180
+ total: uintSchema,
1181
+ byStatus: z.record(z.string(), uintSchema),
1182
+ last30dSignups: uintSchema
1183
+ }),
1184
+ volume: z.object({
1185
+ lifetime: currencyAmountsSchema,
1186
+ lifetimeFees: currencyAmountsSchema,
1187
+ last30d: currencyAmountsSchema,
1188
+ confirmedSessions: uintSchema
1189
+ }),
1190
+ subscriptions: z.object({
1191
+ active: uintSchema,
1192
+ mrr: currencyAmountsSchema
1193
+ })
1194
+ });
1195
+ var adminMerchantStatsSchema = z.object({
1196
+ mode: modeSchema,
1197
+ confirmedPayments: uintSchema,
1198
+ activeSubscriptions: uintSchema,
1199
+ lifetimeVolume: currencyAmountsSchema,
1200
+ last30dVolume: currencyAmountsSchema
1201
+ });
1202
+ var adminVolumeQuerySchema = z.object({
1203
+ from: isoTimestampSchema.optional(),
1204
+ to: isoTimestampSchema.optional(),
1205
+ mode: modeSchema.default("live")
1206
+ }).strict();
1207
+ var adminVolumeDaySchema = z.object({
1208
+ day: dayKeySchema,
1209
+ currency: paymentCurrencySchema,
1210
+ volume: tokenAmountSchema,
1211
+ fees: tokenAmountSchema,
1212
+ count: uintSchema
1213
+ });
1214
+ var adminVolumeSeriesSchema = z.object({
1215
+ mode: modeSchema,
1216
+ from: isoTimestampSchema,
1217
+ to: isoTimestampSchema,
1218
+ data: z.array(adminVolumeDaySchema)
1219
+ });
1220
+ var adminTopMerchantsQuerySchema = z.object({
1221
+ currency: paymentCurrencySchema,
1222
+ mode: modeSchema.default("live"),
1223
+ limit: z.coerce.number().int().min(1).max(50).default(10)
1224
+ }).strict();
1225
+ var adminTopMerchantSchema = z.object({
1226
+ merchantId: idSchema,
1227
+ businessName: z.string().nullable(),
1228
+ email: z.string(),
1229
+ volume: tokenAmountSchema,
1230
+ transactionCount: uintSchema
1231
+ });
1232
+ var adminTopMerchantsSchema = z.object({
1233
+ mode: modeSchema,
1234
+ currency: paymentCurrencySchema,
1235
+ data: z.array(adminTopMerchantSchema)
1236
+ });
1048
1237
 
1049
- export { DEFAULT_MERCHANT_EMAIL_PREFS, agentActionExecutedEventSchema, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, apiKeyKindSchema, apiKeySchema, apiKeyScopeSchema, arcEnvironmentSchema, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, callbackUrlSchema, cancelSubscriptionInputSchema, changeTierInputSchema, complianceLogSchema, complianceProviderSchema, complianceScreeningContextSchema, complianceStatusSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, countryCodeSchema, createAgentJobInputSchema, createApiKeyInputSchema, createApiKeyOutputSchema, createBroadcastInputSchema, createInvoiceInputSchema, createMerchantInputSchema, createPaymentSessionInputSchema, createRefundInputSchema, createStorefrontInputSchema, createStorefrontProductInputSchema, createSubscriptionInputSchema, createSubscriptionPlanInputSchema, createWebhookEndpointInputSchema, createWebhookEndpointOutputSchema, customerSchema, emailSchema, evmAddressSchema, evmTxHashSchema, 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, notificationKindSchema, notificationListResponseSchema, notificationSchema, onboardMerchantInputSchema, paginationInputSchema, paymentCompletedEventSchema, paymentCreatedEventSchema, paymentCurrencySchema, paymentFailedEventSchema, paymentSessionSchema, paymentSessionStatusSchema, refundCompletedEventSchema, refundCreateOutputSchema, refundCreatedEventSchema, refundFailedEventSchema, refundReasonSchema, refundSchema, refundSigningInstructionsSchema, refundStatusSchema, replayDeliveryInputSchema, rotateApiKeyInputSchema, storefrontCheckoutInputSchema, storefrontCheckoutResponseSchema, storefrontProductSchema, storefrontProductTypeSchema, storefrontSchema, storefrontStatusSchema, submitPaymentSessionInputSchema, submitRefundSignatureInputSchema, subscriptionCancelledEventSchema, subscriptionChargeFailedEventSchema, subscriptionChargeOutcomeSchema, subscriptionChargeSchema, subscriptionChargeStatusSchema, subscriptionChargedEventSchema, subscriptionCreatedEventSchema, subscriptionEnrolmentTermsSchema, subscriptionIntervalSchema, subscriptionLapsedEventSchema, subscriptionPlanSchema, subscriptionPlanStatusSchema, subscriptionRecoveryAttemptEventSchema, subscriptionRecoveryOutcomeEventSchema, subscriptionSchema, subscriptionStatusResultSchema, subscriptionStatusSchema, tokenAmountSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema, tokenSymbolSchema, transactionKindSchema, transactionSchema, transactionStatusSchema, uintSchema, updateAgentConfigInputSchema, updateMerchantInputSchema, upsertCustomerInputSchema, webhookDeliveryDetailSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEndpointSchema, webhookEndpointStatusSchema, webhookEventNameSchema, webhookEventSchema };
1238
+ export { DEFAULT_MERCHANT_EMAIL_PREFS, STATS_VOLUME_DEFAULT_DAYS, STATS_VOLUME_MAX_DAYS, adminMerchantStatsSchema, adminOverviewSchema, adminStatsModeQuerySchema, adminTopMerchantSchema, adminTopMerchantsQuerySchema, adminTopMerchantsSchema, adminVolumeDaySchema, adminVolumeQuerySchema, adminVolumeSeriesSchema, agentActionExecutedEventSchema, agentActionOutcomeSchema, agentActionTypeSchema, agentActivityLogSchema, agentCapabilitySchema, agentIdentitySchema, agentJobCompletedEventSchema, agentJobDisputedEventSchema, agentJobProposedEventSchema, agentJobSchema, agentJobStatusSchema, agentMerchantConfigSchema, apiKeyKindSchema, apiKeySchema, apiKeyScopeSchema, arcEnvironmentSchema, broadcastAudienceSchema, broadcastListResponseSchema, broadcastSchema, callbackUrlSchema, cancelSubscriptionInputSchema, changeTierInputSchema, complianceLogSchema, complianceProviderSchema, complianceScreeningContextSchema, complianceStatusSchema, complianceWalletBlockedEventSchema, complianceWalletFlaggedEventSchema, contactRequestInputSchema, contactRequestOutputSchema, contactTopicSchema, countryCodeSchema, createAgentJobInputSchema, createApiKeyInputSchema, createApiKeyOutputSchema, createBroadcastInputSchema, createInvoiceInputSchema, createMerchantInputSchema, createPaymentSessionInputSchema, createRefundInputSchema, createStorefrontInputSchema, createStorefrontProductInputSchema, createSubscriptionInputSchema, 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, 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, subscriptionRecoveryAttemptEventSchema, subscriptionRecoveryOutcomeEventSchema, subscriptionSchema, subscriptionStatusResultSchema, subscriptionStatusSchema, tokenAmountSchema, tokenCapabilitiesSchema, tokenMetadataSchema, tokenPermitNonceSchema, tokenSymbolSchema, transactionKindSchema, transactionSchema, transactionStatusSchema, uintSchema, updateAgentConfigInputSchema, updateMerchantInputSchema, upsertCustomerInputSchema, volumeWindowSchema, webhookDeliveryDetailSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEndpointSchema, webhookEndpointStatusSchema, webhookEventNameSchema, webhookEventSchema };
1050
1239
  //# sourceMappingURL=index.js.map
1051
1240
  //# sourceMappingURL=index.js.map