@strimz/shared-types 0.12.3 → 0.13.1

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 (47) hide show
  1. package/README.md +10 -8
  2. package/dist/analytics.cjs +26 -2
  3. package/dist/analytics.cjs.map +1 -1
  4. package/dist/analytics.d.cts +136 -136
  5. package/dist/analytics.d.ts +136 -136
  6. package/dist/analytics.js +26 -2
  7. package/dist/analytics.js.map +1 -1
  8. package/dist/api-keys.d.cts +20 -20
  9. package/dist/api-keys.d.ts +20 -20
  10. package/dist/compliance.d.cts +4 -4
  11. package/dist/compliance.d.ts +4 -4
  12. package/dist/customers.d.cts +6 -6
  13. package/dist/customers.d.ts +6 -6
  14. package/dist/events.cjs +26 -2
  15. package/dist/events.cjs.map +1 -1
  16. package/dist/events.d.cts +1435 -1435
  17. package/dist/events.d.ts +1435 -1435
  18. package/dist/events.js +26 -2
  19. package/dist/events.js.map +1 -1
  20. package/dist/index.cjs +29 -2
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +15 -15
  23. package/dist/index.d.ts +15 -15
  24. package/dist/index.js +27 -3
  25. package/dist/index.js.map +1 -1
  26. package/dist/invoices.d.cts +10 -10
  27. package/dist/invoices.d.ts +10 -10
  28. package/dist/merchants.d.cts +20 -20
  29. package/dist/merchants.d.ts +20 -20
  30. package/dist/payment-sessions.cjs +29 -2
  31. package/dist/payment-sessions.cjs.map +1 -1
  32. package/dist/payment-sessions.d.cts +60 -19
  33. package/dist/payment-sessions.d.ts +60 -19
  34. package/dist/payment-sessions.js +27 -3
  35. package/dist/payment-sessions.js.map +1 -1
  36. package/dist/refunds.d.cts +36 -36
  37. package/dist/refunds.d.ts +36 -36
  38. package/dist/storefronts.d.cts +27 -27
  39. package/dist/storefronts.d.ts +27 -27
  40. package/dist/subscriptions.d.cts +30 -30
  41. package/dist/subscriptions.d.ts +30 -30
  42. package/dist/transactions.d.cts +12 -12
  43. package/dist/transactions.d.ts +12 -12
  44. package/dist/webhooks.d.cts +22 -22
  45. package/dist/webhooks.d.ts +22 -22
  46. package/package.json +2 -2
  47. package/src/payment-sessions.ts +30 -2
package/dist/refunds.d.ts CHANGED
@@ -29,12 +29,12 @@ declare const refundSchema: z.ZodObject<{
29
29
  completedAt: z.ZodNullable<z.ZodString>;
30
30
  }, "strip", z.ZodTypeAny, {
31
31
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
32
- amount: string;
33
- currency: "USDC" | "EURC";
34
- merchantId: string;
35
32
  id: string;
36
- note: string | null;
33
+ merchantId: string;
37
34
  createdAt: string;
35
+ currency: "USDC" | "EURC";
36
+ note: string | null;
37
+ amount: string;
38
38
  transactionId: string;
39
39
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
40
40
  payerAddress: string;
@@ -44,12 +44,12 @@ declare const refundSchema: z.ZodObject<{
44
44
  completedAt: string | null;
45
45
  }, {
46
46
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
47
- amount: string;
48
- currency: "USDC" | "EURC";
49
- merchantId: string;
50
47
  id: string;
51
- note: string | null;
48
+ merchantId: string;
52
49
  createdAt: string;
50
+ currency: "USDC" | "EURC";
51
+ note: string | null;
52
+ amount: string;
53
53
  transactionId: string;
54
54
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
55
55
  payerAddress: string;
@@ -100,15 +100,15 @@ declare const refundSigningInstructionsSchema: z.ZodObject<{
100
100
  amount: z.ZodString;
101
101
  note: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
- amount: string;
104
- to: string;
105
103
  note: string;
106
- token: string;
107
- }, {
108
104
  amount: string;
105
+ token: string;
109
106
  to: string;
107
+ }, {
110
108
  note: string;
109
+ amount: string;
111
110
  token: string;
111
+ to: string;
112
112
  }>;
113
113
  type RefundSigningInstructions = z.infer<typeof refundSigningInstructionsSchema>;
114
114
  declare const refundCreateOutputSchema: z.ZodObject<{
@@ -129,12 +129,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
129
129
  completedAt: z.ZodNullable<z.ZodString>;
130
130
  }, "strip", z.ZodTypeAny, {
131
131
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
132
- amount: string;
133
- currency: "USDC" | "EURC";
134
- merchantId: string;
135
132
  id: string;
136
- note: string | null;
133
+ merchantId: string;
137
134
  createdAt: string;
135
+ currency: "USDC" | "EURC";
136
+ note: string | null;
137
+ amount: string;
138
138
  transactionId: string;
139
139
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
140
140
  payerAddress: string;
@@ -144,12 +144,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
144
144
  completedAt: string | null;
145
145
  }, {
146
146
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
147
- amount: string;
148
- currency: "USDC" | "EURC";
149
- merchantId: string;
150
147
  id: string;
151
- note: string | null;
148
+ merchantId: string;
152
149
  createdAt: string;
150
+ currency: "USDC" | "EURC";
151
+ note: string | null;
152
+ amount: string;
153
153
  transactionId: string;
154
154
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
155
155
  payerAddress: string;
@@ -164,25 +164,25 @@ declare const refundCreateOutputSchema: z.ZodObject<{
164
164
  amount: z.ZodString;
165
165
  note: z.ZodString;
166
166
  }, "strip", z.ZodTypeAny, {
167
- amount: string;
168
- to: string;
169
167
  note: string;
170
- token: string;
171
- }, {
172
168
  amount: string;
169
+ token: string;
173
170
  to: string;
171
+ }, {
174
172
  note: string;
173
+ amount: string;
175
174
  token: string;
175
+ to: string;
176
176
  }>;
177
177
  }, "strip", z.ZodTypeAny, {
178
178
  refund: {
179
179
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
180
- amount: string;
181
- currency: "USDC" | "EURC";
182
- merchantId: string;
183
180
  id: string;
184
- note: string | null;
181
+ merchantId: string;
185
182
  createdAt: string;
183
+ currency: "USDC" | "EURC";
184
+ note: string | null;
185
+ amount: string;
186
186
  transactionId: string;
187
187
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
188
188
  payerAddress: string;
@@ -192,20 +192,20 @@ declare const refundCreateOutputSchema: z.ZodObject<{
192
192
  completedAt: string | null;
193
193
  };
194
194
  signingInstructions: {
195
- amount: string;
196
- to: string;
197
195
  note: string;
196
+ amount: string;
198
197
  token: string;
198
+ to: string;
199
199
  };
200
200
  }, {
201
201
  refund: {
202
202
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
203
- amount: string;
204
- currency: "USDC" | "EURC";
205
- merchantId: string;
206
203
  id: string;
207
- note: string | null;
204
+ merchantId: string;
208
205
  createdAt: string;
206
+ currency: "USDC" | "EURC";
207
+ note: string | null;
208
+ amount: string;
209
209
  transactionId: string;
210
210
  reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
211
211
  payerAddress: string;
@@ -215,10 +215,10 @@ declare const refundCreateOutputSchema: z.ZodObject<{
215
215
  completedAt: string | null;
216
216
  };
217
217
  signingInstructions: {
218
- amount: string;
219
- to: string;
220
218
  note: string;
219
+ amount: string;
221
220
  token: string;
221
+ to: string;
222
222
  };
223
223
  }>;
224
224
  type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
@@ -21,12 +21,12 @@ declare const storefrontSchema: z.ZodObject<{
21
21
  updatedAt: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  status: "draft" | "archived" | "published";
24
- merchantId: string;
25
- description: string | null;
26
24
  id: string;
25
+ merchantId: string;
26
+ name: string;
27
27
  createdAt: string;
28
+ description: string | null;
28
29
  updatedAt: string;
29
- name: string;
30
30
  logoUrl: string | null;
31
31
  slug: string;
32
32
  coverImageUrl: string | null;
@@ -34,12 +34,12 @@ declare const storefrontSchema: z.ZodObject<{
34
34
  socialLinks: string[];
35
35
  }, {
36
36
  status: "draft" | "archived" | "published";
37
- merchantId: string;
38
- description: string | null;
39
37
  id: string;
38
+ merchantId: string;
39
+ name: string;
40
40
  createdAt: string;
41
+ description: string | null;
41
42
  updatedAt: string;
42
- name: string;
43
43
  logoUrl: string | null;
44
44
  slug: string;
45
45
  coverImageUrl: string | null;
@@ -60,17 +60,17 @@ declare const createStorefrontInputSchema: z.ZodObject<Pick<{
60
60
  status: z.ZodEnum<["draft", "published", "archived"]>;
61
61
  createdAt: z.ZodString;
62
62
  updatedAt: z.ZodString;
63
- }, "description" | "name" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
64
- description: string | null;
63
+ }, "name" | "description" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
65
64
  name: string;
65
+ description: string | null;
66
66
  logoUrl: string | null;
67
67
  slug: string;
68
68
  coverImageUrl: string | null;
69
69
  accentColor: string | null;
70
70
  socialLinks: string[];
71
71
  }, {
72
- description: string | null;
73
72
  name: string;
73
+ description: string | null;
74
74
  logoUrl: string | null;
75
75
  slug: string;
76
76
  coverImageUrl: string | null;
@@ -101,12 +101,12 @@ declare const storefrontProductSchema: z.ZodObject<{
101
101
  updatedAt: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  type: "subscription" | "one_time";
104
- currency: "USDC" | "EURC";
105
- description: string | null;
106
104
  id: string;
105
+ name: string;
107
106
  createdAt: string;
107
+ description: string | null;
108
+ currency: "USDC" | "EURC";
108
109
  updatedAt: string;
109
- name: string;
110
110
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
111
111
  intervalCount: number | null;
112
112
  planId: string | null;
@@ -118,12 +118,12 @@ declare const storefrontProductSchema: z.ZodObject<{
118
118
  sortOrder: number;
119
119
  }, {
120
120
  type: "subscription" | "one_time";
121
- currency: "USDC" | "EURC";
122
- description: string | null;
123
121
  id: string;
122
+ name: string;
124
123
  createdAt: string;
124
+ description: string | null;
125
+ currency: "USDC" | "EURC";
125
126
  updatedAt: string;
126
- name: string;
127
127
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
128
128
  intervalCount: number | null;
129
129
  planId: string | null;
@@ -137,9 +137,9 @@ declare const storefrontProductSchema: z.ZodObject<{
137
137
  type StorefrontProduct = z.infer<typeof storefrontProductSchema>;
138
138
  declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
139
139
  type: z.ZodEnum<["one_time", "subscription"]>;
140
- currency: z.ZodEnum<["USDC", "EURC"]>;
141
- description: z.ZodNullable<z.ZodString>;
142
140
  name: z.ZodString;
141
+ description: z.ZodNullable<z.ZodString>;
142
+ currency: z.ZodEnum<["USDC", "EURC"]>;
143
143
  interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
144
144
  intervalCount: z.ZodNullable<z.ZodNumber>;
145
145
  price: z.ZodString;
@@ -151,9 +151,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
151
151
  planId: z.ZodOptional<z.ZodString>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  type: "subscription" | "one_time";
154
- currency: "USDC" | "EURC";
155
- description: string | null;
156
154
  name: string;
155
+ description: string | null;
156
+ currency: "USDC" | "EURC";
157
157
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
158
158
  intervalCount: number | null;
159
159
  price: string;
@@ -164,9 +164,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
164
164
  imageUrl?: string | undefined;
165
165
  }, {
166
166
  type: "subscription" | "one_time";
167
- currency: "USDC" | "EURC";
168
- description: string | null;
169
167
  name: string;
168
+ description: string | null;
169
+ currency: "USDC" | "EURC";
170
170
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
171
171
  intervalCount: number | null;
172
172
  price: string;
@@ -177,9 +177,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
177
177
  sortOrder?: number | undefined;
178
178
  }>, {
179
179
  type: "subscription" | "one_time";
180
- currency: "USDC" | "EURC";
181
- description: string | null;
182
180
  name: string;
181
+ description: string | null;
182
+ currency: "USDC" | "EURC";
183
183
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
184
184
  intervalCount: number | null;
185
185
  price: string;
@@ -190,9 +190,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
190
190
  imageUrl?: string | undefined;
191
191
  }, {
192
192
  type: "subscription" | "one_time";
193
- currency: "USDC" | "EURC";
194
- description: string | null;
195
193
  name: string;
194
+ description: string | null;
195
+ currency: "USDC" | "EURC";
196
196
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
197
197
  intervalCount: number | null;
198
198
  price: string;
@@ -232,12 +232,12 @@ declare const storefrontCheckoutResponseSchema: z.ZodObject<{
232
232
  /** Which downstream checkout the URL points at. */
233
233
  kind: z.ZodEnum<["payment_session", "subscription_plan"]>;
234
234
  }, "strip", z.ZodTypeAny, {
235
- checkoutUrl: string;
236
235
  kind: "payment_session" | "subscription_plan";
236
+ checkoutUrl: string;
237
237
  ref: string;
238
238
  }, {
239
- checkoutUrl: string;
240
239
  kind: "payment_session" | "subscription_plan";
240
+ checkoutUrl: string;
241
241
  ref: string;
242
242
  }>;
243
243
  type StorefrontCheckoutResponse = z.infer<typeof storefrontCheckoutResponseSchema>;
@@ -21,12 +21,12 @@ declare const storefrontSchema: z.ZodObject<{
21
21
  updatedAt: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  status: "draft" | "archived" | "published";
24
- merchantId: string;
25
- description: string | null;
26
24
  id: string;
25
+ merchantId: string;
26
+ name: string;
27
27
  createdAt: string;
28
+ description: string | null;
28
29
  updatedAt: string;
29
- name: string;
30
30
  logoUrl: string | null;
31
31
  slug: string;
32
32
  coverImageUrl: string | null;
@@ -34,12 +34,12 @@ declare const storefrontSchema: z.ZodObject<{
34
34
  socialLinks: string[];
35
35
  }, {
36
36
  status: "draft" | "archived" | "published";
37
- merchantId: string;
38
- description: string | null;
39
37
  id: string;
38
+ merchantId: string;
39
+ name: string;
40
40
  createdAt: string;
41
+ description: string | null;
41
42
  updatedAt: string;
42
- name: string;
43
43
  logoUrl: string | null;
44
44
  slug: string;
45
45
  coverImageUrl: string | null;
@@ -60,17 +60,17 @@ declare const createStorefrontInputSchema: z.ZodObject<Pick<{
60
60
  status: z.ZodEnum<["draft", "published", "archived"]>;
61
61
  createdAt: z.ZodString;
62
62
  updatedAt: z.ZodString;
63
- }, "description" | "name" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
64
- description: string | null;
63
+ }, "name" | "description" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
65
64
  name: string;
65
+ description: string | null;
66
66
  logoUrl: string | null;
67
67
  slug: string;
68
68
  coverImageUrl: string | null;
69
69
  accentColor: string | null;
70
70
  socialLinks: string[];
71
71
  }, {
72
- description: string | null;
73
72
  name: string;
73
+ description: string | null;
74
74
  logoUrl: string | null;
75
75
  slug: string;
76
76
  coverImageUrl: string | null;
@@ -101,12 +101,12 @@ declare const storefrontProductSchema: z.ZodObject<{
101
101
  updatedAt: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  type: "subscription" | "one_time";
104
- currency: "USDC" | "EURC";
105
- description: string | null;
106
104
  id: string;
105
+ name: string;
107
106
  createdAt: string;
107
+ description: string | null;
108
+ currency: "USDC" | "EURC";
108
109
  updatedAt: string;
109
- name: string;
110
110
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
111
111
  intervalCount: number | null;
112
112
  planId: string | null;
@@ -118,12 +118,12 @@ declare const storefrontProductSchema: z.ZodObject<{
118
118
  sortOrder: number;
119
119
  }, {
120
120
  type: "subscription" | "one_time";
121
- currency: "USDC" | "EURC";
122
- description: string | null;
123
121
  id: string;
122
+ name: string;
124
123
  createdAt: string;
124
+ description: string | null;
125
+ currency: "USDC" | "EURC";
125
126
  updatedAt: string;
126
- name: string;
127
127
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
128
128
  intervalCount: number | null;
129
129
  planId: string | null;
@@ -137,9 +137,9 @@ declare const storefrontProductSchema: z.ZodObject<{
137
137
  type StorefrontProduct = z.infer<typeof storefrontProductSchema>;
138
138
  declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
139
139
  type: z.ZodEnum<["one_time", "subscription"]>;
140
- currency: z.ZodEnum<["USDC", "EURC"]>;
141
- description: z.ZodNullable<z.ZodString>;
142
140
  name: z.ZodString;
141
+ description: z.ZodNullable<z.ZodString>;
142
+ currency: z.ZodEnum<["USDC", "EURC"]>;
143
143
  interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
144
144
  intervalCount: z.ZodNullable<z.ZodNumber>;
145
145
  price: z.ZodString;
@@ -151,9 +151,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
151
151
  planId: z.ZodOptional<z.ZodString>;
152
152
  }, "strip", z.ZodTypeAny, {
153
153
  type: "subscription" | "one_time";
154
- currency: "USDC" | "EURC";
155
- description: string | null;
156
154
  name: string;
155
+ description: string | null;
156
+ currency: "USDC" | "EURC";
157
157
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
158
158
  intervalCount: number | null;
159
159
  price: string;
@@ -164,9 +164,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
164
164
  imageUrl?: string | undefined;
165
165
  }, {
166
166
  type: "subscription" | "one_time";
167
- currency: "USDC" | "EURC";
168
- description: string | null;
169
167
  name: string;
168
+ description: string | null;
169
+ currency: "USDC" | "EURC";
170
170
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
171
171
  intervalCount: number | null;
172
172
  price: string;
@@ -177,9 +177,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
177
177
  sortOrder?: number | undefined;
178
178
  }>, {
179
179
  type: "subscription" | "one_time";
180
- currency: "USDC" | "EURC";
181
- description: string | null;
182
180
  name: string;
181
+ description: string | null;
182
+ currency: "USDC" | "EURC";
183
183
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
184
184
  intervalCount: number | null;
185
185
  price: string;
@@ -190,9 +190,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
190
190
  imageUrl?: string | undefined;
191
191
  }, {
192
192
  type: "subscription" | "one_time";
193
- currency: "USDC" | "EURC";
194
- description: string | null;
195
193
  name: string;
194
+ description: string | null;
195
+ currency: "USDC" | "EURC";
196
196
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
197
197
  intervalCount: number | null;
198
198
  price: string;
@@ -232,12 +232,12 @@ declare const storefrontCheckoutResponseSchema: z.ZodObject<{
232
232
  /** Which downstream checkout the URL points at. */
233
233
  kind: z.ZodEnum<["payment_session", "subscription_plan"]>;
234
234
  }, "strip", z.ZodTypeAny, {
235
- checkoutUrl: string;
236
235
  kind: "payment_session" | "subscription_plan";
236
+ checkoutUrl: string;
237
237
  ref: string;
238
238
  }, {
239
- checkoutUrl: string;
240
239
  kind: "payment_session" | "subscription_plan";
240
+ checkoutUrl: string;
241
241
  ref: string;
242
242
  }>;
243
243
  type StorefrontCheckoutResponse = z.infer<typeof storefrontCheckoutResponseSchema>;
@@ -48,34 +48,34 @@ declare const subscriptionPlanSchema: z.ZodObject<{
48
48
  updatedAt: z.ZodString;
49
49
  }, "strip", z.ZodTypeAny, {
50
50
  status: "active" | "archived";
51
- amount: string;
52
- currency: "USDC" | "EURC";
53
- merchantId: string;
54
- description: string | null;
55
51
  id: string;
52
+ merchantId: string;
53
+ name: string;
56
54
  createdAt: string;
55
+ description: string | null;
56
+ currency: "USDC" | "EURC";
57
57
  updatedAt: string;
58
58
  chainMerchantId: string | null;
59
59
  tokenAddress: string | null;
60
+ amount: string;
60
61
  metadata: Record<string, string | number | boolean | null>;
61
62
  intervalSeconds: number;
62
- name: string;
63
63
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
64
64
  intervalCount: number;
65
65
  trialPeriodDays: number | null;
66
66
  }, {
67
67
  status: "active" | "archived";
68
- amount: string;
69
- currency: "USDC" | "EURC";
70
- merchantId: string;
71
- description: string | null;
72
68
  id: string;
69
+ merchantId: string;
70
+ name: string;
73
71
  createdAt: string;
72
+ description: string | null;
73
+ currency: "USDC" | "EURC";
74
74
  updatedAt: string;
75
75
  chainMerchantId: string | null;
76
76
  tokenAddress: string | null;
77
+ amount: string;
77
78
  intervalSeconds: number;
78
- name: string;
79
79
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
80
80
  intervalCount: number;
81
81
  trialPeriodDays: number | null;
@@ -92,18 +92,18 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
92
92
  trialPeriodDays: z.ZodOptional<z.ZodNumber>;
93
93
  metadata: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>>;
94
94
  }, "strip", z.ZodTypeAny, {
95
- amount: string;
96
- currency: "USDC" | "EURC";
97
95
  name: string;
96
+ currency: "USDC" | "EURC";
97
+ amount: string;
98
98
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
99
99
  intervalCount: number;
100
100
  description?: string | undefined;
101
101
  metadata?: Record<string, string | number | boolean | null> | undefined;
102
102
  trialPeriodDays?: number | undefined;
103
103
  }, {
104
- amount: string;
105
- currency: "USDC" | "EURC";
106
104
  name: string;
105
+ currency: "USDC" | "EURC";
106
+ amount: string;
107
107
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
108
108
  description?: string | undefined;
109
109
  metadata?: Record<string, string | number | boolean | null> | undefined;
@@ -136,14 +136,14 @@ declare const subscriptionSchema: z.ZodObject<{
136
136
  createdAt: z.ZodString;
137
137
  updatedAt: z.ZodString;
138
138
  }, "strip", z.ZodTypeAny, {
139
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
140
- amount: string;
141
- currency: "USDC" | "EURC";
142
- customerId: string;
143
- merchantId: string;
139
+ status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
144
140
  id: string;
141
+ merchantId: string;
145
142
  createdAt: string;
143
+ currency: "USDC" | "EURC";
146
144
  updatedAt: string;
145
+ customerId: string;
146
+ amount: string;
147
147
  metadata: Record<string, string | number | boolean | null>;
148
148
  payerAddress: string;
149
149
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
@@ -157,14 +157,14 @@ declare const subscriptionSchema: z.ZodObject<{
157
157
  gracePeriodHours: number;
158
158
  cancelledAt: string | null;
159
159
  }, {
160
- status: "cancelled" | "trialing" | "active" | "at_risk" | "paused" | "lapsed";
161
- amount: string;
162
- currency: "USDC" | "EURC";
163
- customerId: string;
164
- merchantId: string;
160
+ status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
165
161
  id: string;
162
+ merchantId: string;
166
163
  createdAt: string;
164
+ currency: "USDC" | "EURC";
167
165
  updatedAt: string;
166
+ customerId: string;
167
+ amount: string;
168
168
  payerAddress: string;
169
169
  interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
170
170
  intervalCount: number;
@@ -241,12 +241,12 @@ declare const subscriptionChargeSchema: z.ZodObject<{
241
241
  updatedAt: z.ZodString;
242
242
  }, "strip", z.ZodTypeAny, {
243
243
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
244
- amount: string;
245
- currency: "USDC" | "EURC";
246
- merchantId: string;
247
244
  id: string;
245
+ merchantId: string;
248
246
  createdAt: string;
247
+ currency: "USDC" | "EURC";
249
248
  updatedAt: string;
249
+ amount: string;
250
250
  onchainTxHash: string | null;
251
251
  failureReason: string | null;
252
252
  subscriptionId: string;
@@ -259,12 +259,12 @@ declare const subscriptionChargeSchema: z.ZodObject<{
259
259
  executedAt: string | null;
260
260
  }, {
261
261
  status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
262
- amount: string;
263
- currency: "USDC" | "EURC";
264
- merchantId: string;
265
262
  id: string;
263
+ merchantId: string;
266
264
  createdAt: string;
265
+ currency: "USDC" | "EURC";
267
266
  updatedAt: string;
267
+ amount: string;
268
268
  onchainTxHash: string | null;
269
269
  failureReason: string | null;
270
270
  subscriptionId: string;