@tinkerlandai/indiana-sdk 0.1.0 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  import { LanguageModelV4Usage, LanguageModelV4Middleware } from '@ai-sdk/provider';
2
- import { S as StackNode } from './screen-DfuSw6Tz.js';
2
+ import { S as StackNode } from './screen-Keau_Qa2.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  type OfferingProductItem = {
@@ -16,6 +16,274 @@ type OfferingGroupItem = {
16
16
  type OfferingItem = OfferingProductItem | OfferingGroupItem;
17
17
 
18
18
  declare const apiOperations: {
19
+ readonly getFeatures: {
20
+ readonly method: "GET";
21
+ readonly path: "features";
22
+ readonly permission: "features:read";
23
+ readonly audience: "mixed";
24
+ readonly request: z.ZodObject<{}, z.core.$strict>;
25
+ readonly response: z.ZodObject<{
26
+ requestId: z.ZodUUID;
27
+ scope: z.ZodObject<{
28
+ projectId: z.ZodString;
29
+ environment: z.ZodEnum<{
30
+ sandbox: "sandbox";
31
+ live: "live";
32
+ }>;
33
+ }, z.core.$strict>;
34
+ payload: z.ZodObject<{
35
+ scope: z.ZodObject<{
36
+ projectId: z.ZodString;
37
+ environment: z.ZodEnum<{
38
+ sandbox: "sandbox";
39
+ live: "live";
40
+ }>;
41
+ }, z.core.$strict>;
42
+ generation: z.ZodString;
43
+ evaluatedAt: z.ZodISODateTime;
44
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
45
+ features: z.ZodRecord<z.ZodString, z.ZodObject<{
46
+ defaultValue: z.ZodOptional<z.ZodJSONSchema>;
47
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
48
+ id: z.ZodOptional<z.ZodString>;
49
+ force: z.ZodOptional<z.ZodJSONSchema>;
50
+ variations: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
51
+ key: z.ZodOptional<z.ZodString>;
52
+ range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
53
+ tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ experiment: z.ZodObject<{
55
+ key: z.ZodString;
56
+ variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
57
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ include: z.ZodBoolean;
59
+ type: z.ZodEnum<{
60
+ regex: "regex";
61
+ simple: "simple";
62
+ }>;
63
+ pattern: z.ZodString;
64
+ }, z.core.$strict>>>;
65
+ force: z.ZodOptional<z.ZodNumber>;
66
+ active: z.ZodOptional<z.ZodBoolean>;
67
+ persistQueryString: z.ZodOptional<z.ZodBoolean>;
68
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
69
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
70
+ id: z.ZodString;
71
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
72
+ gate: z.ZodOptional<z.ZodBoolean>;
73
+ }, z.core.$strict>>>;
74
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
75
+ coverage: z.ZodOptional<z.ZodNumber>;
76
+ hashAttribute: z.ZodOptional<z.ZodString>;
77
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
78
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
79
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
80
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
81
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
82
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
+ attribute: z.ZodOptional<z.ZodString>;
84
+ seed: z.ZodString;
85
+ hashVersion: z.ZodLiteral<2>;
86
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
87
+ }, z.core.$strict>>>;
88
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
89
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ key: z.ZodOptional<z.ZodString>;
91
+ name: z.ZodOptional<z.ZodString>;
92
+ passthrough: z.ZodOptional<z.ZodBoolean>;
93
+ }, z.core.$strict>>>;
94
+ seed: z.ZodOptional<z.ZodString>;
95
+ name: z.ZodOptional<z.ZodString>;
96
+ phase: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strict>;
98
+ result: z.ZodObject<{
99
+ value: z.ZodJSONSchema;
100
+ variationId: z.ZodNumber;
101
+ key: z.ZodString;
102
+ name: z.ZodOptional<z.ZodString>;
103
+ bucket: z.ZodOptional<z.ZodNumber>;
104
+ passthrough: z.ZodOptional<z.ZodBoolean>;
105
+ inExperiment: z.ZodBoolean;
106
+ hashUsed: z.ZodOptional<z.ZodBoolean>;
107
+ hashAttribute: z.ZodString;
108
+ hashValue: z.ZodString;
109
+ featureId: z.ZodNullable<z.ZodString>;
110
+ stickyBucketUsed: z.ZodOptional<z.ZodBoolean>;
111
+ }, z.core.$strict>;
112
+ }, z.core.$strict>>>;
113
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
114
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
+ id: z.ZodString;
116
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
117
+ gate: z.ZodOptional<z.ZodBoolean>;
118
+ }, z.core.$strict>>>;
119
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
120
+ coverage: z.ZodOptional<z.ZodNumber>;
121
+ hashAttribute: z.ZodOptional<z.ZodString>;
122
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
123
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
124
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
125
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
126
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
127
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ attribute: z.ZodOptional<z.ZodString>;
129
+ seed: z.ZodString;
130
+ hashVersion: z.ZodLiteral<2>;
131
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
132
+ }, z.core.$strict>>>;
133
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
134
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
135
+ key: z.ZodOptional<z.ZodString>;
136
+ name: z.ZodOptional<z.ZodString>;
137
+ passthrough: z.ZodOptional<z.ZodBoolean>;
138
+ }, z.core.$strict>>>;
139
+ seed: z.ZodOptional<z.ZodString>;
140
+ name: z.ZodOptional<z.ZodString>;
141
+ phase: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strict>>>;
143
+ }, z.core.$strict>>;
144
+ savedGroups: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
145
+ type: z.ZodLiteral<"hashed">;
146
+ attributeKey: z.ZodString;
147
+ values: z.ZodArray<z.ZodString>;
148
+ }, z.core.$strict>, z.ZodObject<{
149
+ type: z.ZodLiteral<"list">;
150
+ attributeKey: z.ZodString;
151
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ type: z.ZodLiteral<"condition">;
154
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
155
+ }, z.core.$strict>]>>;
156
+ experiments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
157
+ key: z.ZodString;
158
+ variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
159
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
160
+ include: z.ZodBoolean;
161
+ type: z.ZodEnum<{
162
+ regex: "regex";
163
+ simple: "simple";
164
+ }>;
165
+ pattern: z.ZodString;
166
+ }, z.core.$strict>>>;
167
+ force: z.ZodOptional<z.ZodNumber>;
168
+ active: z.ZodOptional<z.ZodBoolean>;
169
+ persistQueryString: z.ZodOptional<z.ZodBoolean>;
170
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
171
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
+ id: z.ZodString;
173
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
174
+ gate: z.ZodOptional<z.ZodBoolean>;
175
+ }, z.core.$strict>>>;
176
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
177
+ coverage: z.ZodOptional<z.ZodNumber>;
178
+ hashAttribute: z.ZodOptional<z.ZodString>;
179
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
180
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
181
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
182
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
183
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
184
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
185
+ attribute: z.ZodOptional<z.ZodString>;
186
+ seed: z.ZodString;
187
+ hashVersion: z.ZodLiteral<2>;
188
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
189
+ }, z.core.$strict>>>;
190
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
191
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
+ key: z.ZodOptional<z.ZodString>;
193
+ name: z.ZodOptional<z.ZodString>;
194
+ passthrough: z.ZodOptional<z.ZodBoolean>;
195
+ }, z.core.$strict>>>;
196
+ seed: z.ZodOptional<z.ZodString>;
197
+ name: z.ZodOptional<z.ZodString>;
198
+ phase: z.ZodOptional<z.ZodString>;
199
+ }, z.core.$strict>>;
200
+ remoteFeatures: z.ZodArray<z.ZodString>;
201
+ }, z.core.$strict>;
202
+ }, z.core.$strict>;
203
+ };
204
+ readonly evaluateFeatures: {
205
+ readonly method: "POST";
206
+ readonly path: "features/evaluate";
207
+ readonly permission: "features:read";
208
+ readonly audience: "mixed";
209
+ readonly request: z.ZodObject<{
210
+ attributes: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
211
+ features: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ customerId: z.ZodOptional<z.ZodUUID>;
213
+ }, z.core.$strict>;
214
+ readonly response: z.ZodObject<{
215
+ requestId: z.ZodUUID;
216
+ scope: z.ZodObject<{
217
+ projectId: z.ZodString;
218
+ environment: z.ZodEnum<{
219
+ sandbox: "sandbox";
220
+ live: "live";
221
+ }>;
222
+ }, z.core.$strict>;
223
+ generation: z.ZodString;
224
+ evaluatedAt: z.ZodISODateTime;
225
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
226
+ features: z.ZodRecord<z.ZodString, z.ZodObject<{
227
+ value: z.ZodJSONSchema;
228
+ source: z.ZodEnum<{
229
+ defaultValue: "defaultValue";
230
+ force: "force";
231
+ experiment: "experiment";
232
+ unknownFeature: "unknownFeature";
233
+ override: "override";
234
+ prerequisite: "prerequisite";
235
+ cyclicPrerequisite: "cyclicPrerequisite";
236
+ }>;
237
+ on: z.ZodBoolean;
238
+ off: z.ZodBoolean;
239
+ ruleId: z.ZodString;
240
+ experimentResult: z.ZodOptional<z.ZodObject<{
241
+ value: z.ZodJSONSchema;
242
+ variationId: z.ZodNumber;
243
+ key: z.ZodString;
244
+ name: z.ZodOptional<z.ZodString>;
245
+ bucket: z.ZodOptional<z.ZodNumber>;
246
+ passthrough: z.ZodOptional<z.ZodBoolean>;
247
+ inExperiment: z.ZodBoolean;
248
+ hashUsed: z.ZodOptional<z.ZodBoolean>;
249
+ hashAttribute: z.ZodString;
250
+ hashValue: z.ZodString;
251
+ featureId: z.ZodNullable<z.ZodString>;
252
+ stickyBucketUsed: z.ZodOptional<z.ZodBoolean>;
253
+ }, z.core.$strict>>;
254
+ }, z.core.$strict>>;
255
+ }, z.core.$strict>;
256
+ };
257
+ readonly trackEvents: {
258
+ readonly method: "POST";
259
+ readonly path: "events";
260
+ readonly permission: "events:write";
261
+ readonly audience: "mixed";
262
+ readonly request: z.ZodObject<{
263
+ customerId: z.ZodOptional<z.ZodUUID>;
264
+ events: z.ZodArray<z.ZodObject<{
265
+ eventUuid: z.ZodUUID;
266
+ timestamp: z.ZodISODateTime;
267
+ name: z.ZodString;
268
+ properties: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
269
+ deviceId: z.ZodOptional<z.ZodString>;
270
+ sessionId: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strict>>;
272
+ }, z.core.$strict>;
273
+ readonly response: z.ZodObject<{
274
+ requestId: z.ZodUUID;
275
+ scope: z.ZodObject<{
276
+ projectId: z.ZodString;
277
+ environment: z.ZodEnum<{
278
+ sandbox: "sandbox";
279
+ live: "live";
280
+ }>;
281
+ }, z.core.$strict>;
282
+ inserted: z.ZodNumber;
283
+ duplicates: z.ZodNumber;
284
+ rejected: z.ZodNumber;
285
+ }, z.core.$strict>;
286
+ };
19
287
  readonly readBalanceSource: {
20
288
  readonly method: "POST";
21
289
  readonly path: "balances/source/read";
@@ -432,18 +700,26 @@ declare const apiOperations: {
432
700
  readonly audience: "mixed";
433
701
  readonly request: z.ZodUnion<(z.ZodObject<{
434
702
  requestId: z.ZodUUID;
435
- provider: z.ZodLiteral<"google">;
703
+ provider: z.ZodLiteral<"apple">;
436
704
  purchaseIntentId: z.ZodUUID;
437
- productId: z.ZodString;
438
- purchaseToken: z.ZodString;
705
+ productId: z.ZodOptional<z.ZodString>;
706
+ signedTransaction: z.ZodString;
439
707
  customerId: z.ZodOptional<z.ZodUUID>;
708
+ customerToken: z.ZodOptional<z.ZodString>;
440
709
  }, z.core.$strict> | z.ZodObject<{
710
+ intent: z.ZodLiteral<"read">;
441
711
  requestId: z.ZodUUID;
442
- provider: z.ZodLiteral<"apple">;
443
712
  purchaseIntentId: z.ZodUUID;
444
- productId: z.ZodString;
445
- signedTransaction: z.ZodString;
446
713
  customerId: z.ZodOptional<z.ZodUUID>;
714
+ customerToken: z.ZodOptional<z.ZodString>;
715
+ }, z.core.$strict> | z.ZodObject<{
716
+ requestId: z.ZodUUID;
717
+ provider: z.ZodLiteral<"google">;
718
+ purchaseIntentId: z.ZodUUID;
719
+ productId: z.ZodOptional<z.ZodString>;
720
+ purchaseToken: z.ZodString;
721
+ customerId: z.ZodOptional<z.ZodUUID>;
722
+ customerToken: z.ZodOptional<z.ZodString>;
447
723
  }, z.core.$strict>)[]>;
448
724
  readonly response: z.ZodObject<{
449
725
  requestId: z.ZodUUID;
@@ -866,9 +1142,14 @@ declare const apiOperations: {
866
1142
  quantity: z.ZodNumber;
867
1143
  }, z.core.$strict>>;
868
1144
  remove: z.ZodArray<z.ZodString>;
1145
+ restoreItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1146
+ price: z.ZodString;
1147
+ quantity: z.ZodNumber;
1148
+ }, z.core.$strict>>>;
869
1149
  prorationBehavior: z.ZodOptional<z.ZodEnum<{
870
1150
  always_invoice: "always_invoice";
871
1151
  create_prorations: "create_prorations";
1152
+ none: "none";
872
1153
  }>>;
873
1154
  prorationDate: z.ZodOptional<z.ZodNumber>;
874
1155
  paymentBehavior: z.ZodOptional<z.ZodLiteral<"error_if_incomplete">>;
@@ -1059,9 +1340,14 @@ declare const apiOperations: {
1059
1340
  quantity: z.ZodNumber;
1060
1341
  }, z.core.$strict>>;
1061
1342
  remove: z.ZodArray<z.ZodString>;
1343
+ restoreItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1344
+ price: z.ZodString;
1345
+ quantity: z.ZodNumber;
1346
+ }, z.core.$strict>>>;
1062
1347
  prorationBehavior: z.ZodOptional<z.ZodEnum<{
1063
1348
  always_invoice: "always_invoice";
1064
1349
  create_prorations: "create_prorations";
1350
+ none: "none";
1065
1351
  }>>;
1066
1352
  prorationDate: z.ZodOptional<z.ZodNumber>;
1067
1353
  paymentBehavior: z.ZodOptional<z.ZodLiteral<"error_if_incomplete">>;
@@ -1252,9 +1538,14 @@ declare const apiOperations: {
1252
1538
  quantity: z.ZodNumber;
1253
1539
  }, z.core.$strict>>;
1254
1540
  remove: z.ZodArray<z.ZodString>;
1541
+ restoreItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1542
+ price: z.ZodString;
1543
+ quantity: z.ZodNumber;
1544
+ }, z.core.$strict>>>;
1255
1545
  prorationBehavior: z.ZodOptional<z.ZodEnum<{
1256
1546
  always_invoice: "always_invoice";
1257
1547
  create_prorations: "create_prorations";
1548
+ none: "none";
1258
1549
  }>>;
1259
1550
  prorationDate: z.ZodOptional<z.ZodNumber>;
1260
1551
  paymentBehavior: z.ZodOptional<z.ZodLiteral<"error_if_incomplete">>;
@@ -1445,9 +1736,14 @@ declare const apiOperations: {
1445
1736
  quantity: z.ZodNumber;
1446
1737
  }, z.core.$strict>>;
1447
1738
  remove: z.ZodArray<z.ZodString>;
1739
+ restoreItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1740
+ price: z.ZodString;
1741
+ quantity: z.ZodNumber;
1742
+ }, z.core.$strict>>>;
1448
1743
  prorationBehavior: z.ZodOptional<z.ZodEnum<{
1449
1744
  always_invoice: "always_invoice";
1450
1745
  create_prorations: "create_prorations";
1746
+ none: "none";
1451
1747
  }>>;
1452
1748
  prorationDate: z.ZodOptional<z.ZodNumber>;
1453
1749
  paymentBehavior: z.ZodOptional<z.ZodLiteral<"error_if_incomplete">>;
@@ -1632,9 +1928,9 @@ declare const apiOperations: {
1632
1928
  free: "free";
1633
1929
  }>>;
1634
1930
  status: z.ZodOptional<z.ZodEnum<{
1931
+ active: "active";
1635
1932
  refunded: "refunded";
1636
1933
  trial: "trial";
1637
- active: "active";
1638
1934
  past_due: "past_due";
1639
1935
  ended: "ended";
1640
1936
  }>>;
@@ -1656,8 +1952,8 @@ declare const apiOperations: {
1656
1952
  subscriptions: z.ZodObject<{
1657
1953
  items: z.ZodArray<z.ZodObject<{
1658
1954
  status: z.ZodEnum<{
1659
- trial: "trial";
1660
1955
  active: "active";
1956
+ trial: "trial";
1661
1957
  past_due: "past_due";
1662
1958
  ended: "ended";
1663
1959
  }>;
@@ -1700,9 +1996,9 @@ declare const apiOperations: {
1700
1996
  free: "free";
1701
1997
  }>>;
1702
1998
  status: z.ZodOptional<z.ZodEnum<{
1999
+ active: "active";
1703
2000
  refunded: "refunded";
1704
2001
  trial: "trial";
1705
- active: "active";
1706
2002
  past_due: "past_due";
1707
2003
  ended: "ended";
1708
2004
  }>>;
@@ -1724,8 +2020,8 @@ declare const apiOperations: {
1724
2020
  purchases: z.ZodObject<{
1725
2021
  items: z.ZodArray<z.ZodObject<{
1726
2022
  status: z.ZodEnum<{
1727
- refunded: "refunded";
1728
2023
  active: "active";
2024
+ refunded: "refunded";
1729
2025
  ended: "ended";
1730
2026
  }>;
1731
2027
  orderId: z.ZodNullable<z.ZodUUID>;
@@ -2234,6 +2530,25 @@ declare const apiOperations: {
2234
2530
  catalogAmountMinor: z.ZodNumber;
2235
2531
  automaticTax: z.ZodBoolean;
2236
2532
  execution: z.ZodNullable<z.ZodObject<{
2533
+ append: z.ZodOptional<z.ZodObject<{
2534
+ subscriptionId: z.ZodString;
2535
+ customerId: z.ZodString;
2536
+ sourceItems: z.ZodArray<z.ZodObject<{
2537
+ id: z.ZodString;
2538
+ price_id: z.ZodString;
2539
+ quantity: z.ZodNumber;
2540
+ discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2541
+ id: z.ZodString;
2542
+ coupon: z.ZodString;
2543
+ start: z.ZodNumber;
2544
+ end: z.ZodNullable<z.ZodNumber>;
2545
+ }, z.core.$strict>>>;
2546
+ }, z.core.$strict>>;
2547
+ prorationDate: z.ZodNumber;
2548
+ amountMinor: z.ZodNumber;
2549
+ periodStartMs: z.ZodNumber;
2550
+ periodEndMs: z.ZodNumber;
2551
+ }, z.core.$strict>>;
2237
2552
  provider: z.ZodLiteral<"stripe">;
2238
2553
  executor: z.ZodEnum<{
2239
2554
  merchant: "merchant";
@@ -2275,9 +2590,9 @@ declare const apiOperations: {
2275
2590
  }, z.core.$strict>>;
2276
2591
  }, z.core.$strict>>;
2277
2592
  discounts: z.ZodArray<z.ZodObject<{
2278
- coupon: z.ZodUUID;
2593
+ coupon: z.ZodString;
2279
2594
  terms: z.ZodObject<{
2280
- id: z.ZodUUID;
2595
+ id: z.ZodString;
2281
2596
  name: z.ZodString;
2282
2597
  percent_off: z.ZodOptional<z.ZodNumber>;
2283
2598
  amount_off: z.ZodOptional<z.ZodNumber>;
@@ -2325,6 +2640,7 @@ declare const apiOperations: {
2325
2640
  operation: z.ZodObject<{
2326
2641
  operationId: z.ZodUUID;
2327
2642
  orderId: z.ZodUUID;
2643
+ append: z.ZodOptional<z.ZodBoolean>;
2328
2644
  status: z.ZodEnum<{
2329
2645
  pending: "pending";
2330
2646
  cancelled: "cancelled";
@@ -2337,6 +2653,25 @@ declare const apiOperations: {
2337
2653
  }>;
2338
2654
  checkoutUrl: z.ZodNullable<z.ZodURL>;
2339
2655
  execution: z.ZodNullable<z.ZodObject<{
2656
+ append: z.ZodOptional<z.ZodObject<{
2657
+ subscriptionId: z.ZodString;
2658
+ customerId: z.ZodString;
2659
+ sourceItems: z.ZodArray<z.ZodObject<{
2660
+ id: z.ZodString;
2661
+ price_id: z.ZodString;
2662
+ quantity: z.ZodNumber;
2663
+ discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2664
+ id: z.ZodString;
2665
+ coupon: z.ZodString;
2666
+ start: z.ZodNumber;
2667
+ end: z.ZodNullable<z.ZodNumber>;
2668
+ }, z.core.$strict>>>;
2669
+ }, z.core.$strict>>;
2670
+ prorationDate: z.ZodNumber;
2671
+ amountMinor: z.ZodNumber;
2672
+ periodStartMs: z.ZodNumber;
2673
+ periodEndMs: z.ZodNumber;
2674
+ }, z.core.$strict>>;
2340
2675
  provider: z.ZodLiteral<"stripe">;
2341
2676
  executor: z.ZodEnum<{
2342
2677
  merchant: "merchant";
@@ -2378,9 +2713,9 @@ declare const apiOperations: {
2378
2713
  }, z.core.$strict>>;
2379
2714
  }, z.core.$strict>>;
2380
2715
  discounts: z.ZodArray<z.ZodObject<{
2381
- coupon: z.ZodUUID;
2716
+ coupon: z.ZodString;
2382
2717
  terms: z.ZodObject<{
2383
- id: z.ZodUUID;
2718
+ id: z.ZodString;
2384
2719
  name: z.ZodString;
2385
2720
  percent_off: z.ZodOptional<z.ZodNumber>;
2386
2721
  amount_off: z.ZodOptional<z.ZodNumber>;
@@ -2547,6 +2882,7 @@ declare const apiOperations: {
2547
2882
  operation: z.ZodObject<{
2548
2883
  operationId: z.ZodUUID;
2549
2884
  orderId: z.ZodUUID;
2885
+ append: z.ZodOptional<z.ZodBoolean>;
2550
2886
  status: z.ZodEnum<{
2551
2887
  pending: "pending";
2552
2888
  cancelled: "cancelled";
@@ -2559,6 +2895,25 @@ declare const apiOperations: {
2559
2895
  }>;
2560
2896
  checkoutUrl: z.ZodNullable<z.ZodURL>;
2561
2897
  execution: z.ZodNullable<z.ZodObject<{
2898
+ append: z.ZodOptional<z.ZodObject<{
2899
+ subscriptionId: z.ZodString;
2900
+ customerId: z.ZodString;
2901
+ sourceItems: z.ZodArray<z.ZodObject<{
2902
+ id: z.ZodString;
2903
+ price_id: z.ZodString;
2904
+ quantity: z.ZodNumber;
2905
+ discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2906
+ id: z.ZodString;
2907
+ coupon: z.ZodString;
2908
+ start: z.ZodNumber;
2909
+ end: z.ZodNullable<z.ZodNumber>;
2910
+ }, z.core.$strict>>>;
2911
+ }, z.core.$strict>>;
2912
+ prorationDate: z.ZodNumber;
2913
+ amountMinor: z.ZodNumber;
2914
+ periodStartMs: z.ZodNumber;
2915
+ periodEndMs: z.ZodNumber;
2916
+ }, z.core.$strict>>;
2562
2917
  provider: z.ZodLiteral<"stripe">;
2563
2918
  executor: z.ZodEnum<{
2564
2919
  merchant: "merchant";
@@ -2600,9 +2955,9 @@ declare const apiOperations: {
2600
2955
  }, z.core.$strict>>;
2601
2956
  }, z.core.$strict>>;
2602
2957
  discounts: z.ZodArray<z.ZodObject<{
2603
- coupon: z.ZodUUID;
2958
+ coupon: z.ZodString;
2604
2959
  terms: z.ZodObject<{
2605
- id: z.ZodUUID;
2960
+ id: z.ZodString;
2606
2961
  name: z.ZodString;
2607
2962
  percent_off: z.ZodOptional<z.ZodNumber>;
2608
2963
  amount_off: z.ZodOptional<z.ZodNumber>;
@@ -2765,6 +3120,11 @@ declare const apiOperations: {
2765
3120
  featureIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2766
3121
  }, z.core.$strict>>;
2767
3122
  membershipIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
3123
+ prorationBehavior: z.ZodOptional<z.ZodEnum<{
3124
+ none: "none";
3125
+ prorate_immediately: "prorate_immediately";
3126
+ bill_difference: "bill_difference";
3127
+ }>>;
2768
3128
  timing: z.ZodEnum<{
2769
3129
  immediate: "immediate";
2770
3130
  renewal: "renewal";
@@ -2877,9 +3237,14 @@ declare const apiOperations: {
2877
3237
  quantity: z.ZodNumber;
2878
3238
  }, z.core.$strict>>;
2879
3239
  remove: z.ZodArray<z.ZodString>;
3240
+ restoreItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
3241
+ price: z.ZodString;
3242
+ quantity: z.ZodNumber;
3243
+ }, z.core.$strict>>>;
2880
3244
  prorationBehavior: z.ZodOptional<z.ZodEnum<{
2881
3245
  always_invoice: "always_invoice";
2882
3246
  create_prorations: "create_prorations";
3247
+ none: "none";
2883
3248
  }>>;
2884
3249
  prorationDate: z.ZodOptional<z.ZodNumber>;
2885
3250
  paymentBehavior: z.ZodOptional<z.ZodLiteral<"error_if_incomplete">>;
@@ -3051,9 +3416,14 @@ declare const apiOperations: {
3051
3416
  quantity: z.ZodNumber;
3052
3417
  }, z.core.$strict>>;
3053
3418
  remove: z.ZodArray<z.ZodString>;
3419
+ restoreItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
3420
+ price: z.ZodString;
3421
+ quantity: z.ZodNumber;
3422
+ }, z.core.$strict>>>;
3054
3423
  prorationBehavior: z.ZodOptional<z.ZodEnum<{
3055
3424
  always_invoice: "always_invoice";
3056
3425
  create_prorations: "create_prorations";
3426
+ none: "none";
3057
3427
  }>>;
3058
3428
  prorationDate: z.ZodOptional<z.ZodNumber>;
3059
3429
  paymentBehavior: z.ZodOptional<z.ZodLiteral<"error_if_incomplete">>;
@@ -3259,9 +3629,14 @@ declare const apiOperations: {
3259
3629
  quantity: z.ZodNumber;
3260
3630
  }, z.core.$strict>>;
3261
3631
  remove: z.ZodArray<z.ZodString>;
3632
+ restoreItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
3633
+ price: z.ZodString;
3634
+ quantity: z.ZodNumber;
3635
+ }, z.core.$strict>>>;
3262
3636
  prorationBehavior: z.ZodOptional<z.ZodEnum<{
3263
3637
  always_invoice: "always_invoice";
3264
3638
  create_prorations: "create_prorations";
3639
+ none: "none";
3265
3640
  }>>;
3266
3641
  prorationDate: z.ZodOptional<z.ZodNumber>;
3267
3642
  paymentBehavior: z.ZodOptional<z.ZodLiteral<"error_if_incomplete">>;
@@ -3731,11 +4106,16 @@ declare const apiOperations: {
3731
4106
  terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
3732
4107
  kind: z.ZodLiteral<"auto_topup">;
3733
4108
  threshold: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3734
- maxPurchasesPerDay: z.ZodNumber;
3735
- purchaseLimits: z.ZodOptional<z.ZodObject<{
3736
- hour: z.ZodOptional<z.ZodNumber>;
3737
- week: z.ZodOptional<z.ZodNumber>;
3738
- month: z.ZodOptional<z.ZodNumber>;
4109
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4110
+ purchaseLimit: z.ZodOptional<z.ZodObject<{
4111
+ interval: z.ZodEnum<{
4112
+ hour: "hour";
4113
+ day: "day";
4114
+ week: "week";
4115
+ month: "month";
4116
+ }>;
4117
+ intervalCount: z.ZodNumber;
4118
+ limit: z.ZodNumber;
3739
4119
  }, z.core.$strict>>;
3740
4120
  purchaseAmountMinor: z.ZodString;
3741
4121
  purchaseUnits: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -3776,9 +4156,9 @@ declare const apiOperations: {
3776
4156
  TRY: "TRY";
3777
4157
  RON: "RON";
3778
4158
  }>;
3779
- maxAmountMinorPerPeriod: z.ZodString;
3780
4159
  }, z.core.$strict>, z.ZodObject<{
3781
4160
  kind: z.ZodLiteral<"postpaid">;
4161
+ maxAmountMinorPerPeriod: z.ZodString;
3782
4162
  maxOutstandingMinor: z.ZodString;
3783
4163
  cashPrice: z.ZodObject<{
3784
4164
  currency: z.ZodEnum<{
@@ -3881,12 +4261,11 @@ declare const apiOperations: {
3881
4261
  TRY: "TRY";
3882
4262
  RON: "RON";
3883
4263
  }>;
3884
- maxAmountMinorPerPeriod: z.ZodString;
3885
4264
  }, z.core.$strict>], "kind">;
3886
4265
  status: z.ZodEnum<{
4266
+ active: "active";
3887
4267
  revoked: "revoked";
3888
4268
  prepared: "prepared";
3889
- active: "active";
3890
4269
  blocked: "blocked";
3891
4270
  }>;
3892
4271
  createdAt: z.ZodISODateTime;
@@ -3969,10 +4348,14 @@ declare const apiOperations: {
3969
4348
  blocked: "blocked";
3970
4349
  idle: "idle";
3971
4350
  }>;
3972
- orderId: z.ZodNullable<z.ZodUUID>;
4351
+ taskId: z.ZodNullable<z.ZodUUID>;
4352
+ invoiceId: z.ZodNullable<z.ZodUUID>;
3973
4353
  hostedInvoiceUrl: z.ZodNullable<z.ZodURL>;
3974
- purchasesToday: z.ZodNumber;
3975
- amountMinorThisMonth: z.ZodString;
4354
+ purchaseCount: z.ZodNumber;
4355
+ purchaseWindowEndsAt: z.ZodNullable<z.ZodISODateTime>;
4356
+ attemptCount: z.ZodNumber;
4357
+ failedAttemptCount: z.ZodNumber;
4358
+ suspendedAt: z.ZodNullable<z.ZodISODateTime>;
3976
4359
  nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
3977
4360
  failureReason: z.ZodNullable<z.ZodString>;
3978
4361
  }, z.core.$strict>>;
@@ -3988,11 +4371,16 @@ declare const apiOperations: {
3988
4371
  readonly request: z.ZodDiscriminatedUnion<[z.ZodObject<{
3989
4372
  kind: z.ZodLiteral<"auto_topup">;
3990
4373
  threshold: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
3991
- maxPurchasesPerDay: z.ZodNumber;
3992
- purchaseLimits: z.ZodOptional<z.ZodObject<{
3993
- hour: z.ZodOptional<z.ZodNumber>;
3994
- week: z.ZodOptional<z.ZodNumber>;
3995
- month: z.ZodOptional<z.ZodNumber>;
4374
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4375
+ purchaseLimit: z.ZodOptional<z.ZodObject<{
4376
+ interval: z.ZodEnum<{
4377
+ hour: "hour";
4378
+ day: "day";
4379
+ week: "week";
4380
+ month: "month";
4381
+ }>;
4382
+ intervalCount: z.ZodNumber;
4383
+ limit: z.ZodNumber;
3996
4384
  }, z.core.$strict>>;
3997
4385
  requestId: z.ZodUUID;
3998
4386
  productVersionId: z.ZodUUID;
@@ -4032,9 +4420,9 @@ declare const apiOperations: {
4032
4420
  TRY: "TRY";
4033
4421
  RON: "RON";
4034
4422
  }>;
4035
- maxAmountMinorPerPeriod: z.ZodString;
4036
4423
  }, z.core.$strict>, z.ZodObject<{
4037
4424
  kind: z.ZodLiteral<"postpaid">;
4425
+ maxAmountMinorPerPeriod: z.ZodString;
4038
4426
  maxOutstandingMinor: z.ZodString;
4039
4427
  requestId: z.ZodUUID;
4040
4428
  productVersionId: z.ZodUUID;
@@ -4074,7 +4462,6 @@ declare const apiOperations: {
4074
4462
  TRY: "TRY";
4075
4463
  RON: "RON";
4076
4464
  }>;
4077
- maxAmountMinorPerPeriod: z.ZodString;
4078
4465
  }, z.core.$strict>], "kind">;
4079
4466
  readonly response: z.ZodObject<{
4080
4467
  requestId: z.ZodUUID;
@@ -4090,11 +4477,16 @@ declare const apiOperations: {
4090
4477
  terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
4091
4478
  kind: z.ZodLiteral<"auto_topup">;
4092
4479
  threshold: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4093
- maxPurchasesPerDay: z.ZodNumber;
4094
- purchaseLimits: z.ZodOptional<z.ZodObject<{
4095
- hour: z.ZodOptional<z.ZodNumber>;
4096
- week: z.ZodOptional<z.ZodNumber>;
4097
- month: z.ZodOptional<z.ZodNumber>;
4480
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4481
+ purchaseLimit: z.ZodOptional<z.ZodObject<{
4482
+ interval: z.ZodEnum<{
4483
+ hour: "hour";
4484
+ day: "day";
4485
+ week: "week";
4486
+ month: "month";
4487
+ }>;
4488
+ intervalCount: z.ZodNumber;
4489
+ limit: z.ZodNumber;
4098
4490
  }, z.core.$strict>>;
4099
4491
  purchaseAmountMinor: z.ZodString;
4100
4492
  purchaseUnits: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -4135,9 +4527,9 @@ declare const apiOperations: {
4135
4527
  TRY: "TRY";
4136
4528
  RON: "RON";
4137
4529
  }>;
4138
- maxAmountMinorPerPeriod: z.ZodString;
4139
4530
  }, z.core.$strict>, z.ZodObject<{
4140
4531
  kind: z.ZodLiteral<"postpaid">;
4532
+ maxAmountMinorPerPeriod: z.ZodString;
4141
4533
  maxOutstandingMinor: z.ZodString;
4142
4534
  cashPrice: z.ZodObject<{
4143
4535
  currency: z.ZodEnum<{
@@ -4240,7 +4632,6 @@ declare const apiOperations: {
4240
4632
  TRY: "TRY";
4241
4633
  RON: "RON";
4242
4634
  }>;
4243
- maxAmountMinorPerPeriod: z.ZodString;
4244
4635
  }, z.core.$strict>], "kind">;
4245
4636
  setupUrl: z.ZodNullable<z.ZodURL>;
4246
4637
  }, z.core.$strict>;
@@ -4269,11 +4660,16 @@ declare const apiOperations: {
4269
4660
  terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
4270
4661
  kind: z.ZodLiteral<"auto_topup">;
4271
4662
  threshold: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4272
- maxPurchasesPerDay: z.ZodNumber;
4273
- purchaseLimits: z.ZodOptional<z.ZodObject<{
4274
- hour: z.ZodOptional<z.ZodNumber>;
4275
- week: z.ZodOptional<z.ZodNumber>;
4276
- month: z.ZodOptional<z.ZodNumber>;
4663
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4664
+ purchaseLimit: z.ZodOptional<z.ZodObject<{
4665
+ interval: z.ZodEnum<{
4666
+ hour: "hour";
4667
+ day: "day";
4668
+ week: "week";
4669
+ month: "month";
4670
+ }>;
4671
+ intervalCount: z.ZodNumber;
4672
+ limit: z.ZodNumber;
4277
4673
  }, z.core.$strict>>;
4278
4674
  purchaseAmountMinor: z.ZodString;
4279
4675
  purchaseUnits: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -4314,9 +4710,9 @@ declare const apiOperations: {
4314
4710
  TRY: "TRY";
4315
4711
  RON: "RON";
4316
4712
  }>;
4317
- maxAmountMinorPerPeriod: z.ZodString;
4318
4713
  }, z.core.$strict>, z.ZodObject<{
4319
4714
  kind: z.ZodLiteral<"postpaid">;
4715
+ maxAmountMinorPerPeriod: z.ZodString;
4320
4716
  maxOutstandingMinor: z.ZodString;
4321
4717
  cashPrice: z.ZodObject<{
4322
4718
  currency: z.ZodEnum<{
@@ -4419,12 +4815,11 @@ declare const apiOperations: {
4419
4815
  TRY: "TRY";
4420
4816
  RON: "RON";
4421
4817
  }>;
4422
- maxAmountMinorPerPeriod: z.ZodString;
4423
4818
  }, z.core.$strict>], "kind">;
4424
4819
  status: z.ZodEnum<{
4820
+ active: "active";
4425
4821
  revoked: "revoked";
4426
4822
  prepared: "prepared";
4427
- active: "active";
4428
4823
  blocked: "blocked";
4429
4824
  }>;
4430
4825
  createdAt: z.ZodISODateTime;
@@ -4440,7 +4835,7 @@ declare const apiOperations: {
4440
4835
  readonly permission: "billing:write";
4441
4836
  readonly audience: "customer";
4442
4837
  readonly request: z.ZodObject<{
4443
- authorizationId: z.ZodUUID;
4838
+ membershipId: z.ZodUUID;
4444
4839
  requestId: z.ZodUUID;
4445
4840
  grantIds: z.ZodArray<z.ZodUUID>;
4446
4841
  }, z.core.$strict>;
@@ -4454,7 +4849,56 @@ declare const apiOperations: {
4454
4849
  }>;
4455
4850
  }, z.core.$strict>;
4456
4851
  coupons: z.ZodObject<{
4457
- authorizationId: z.ZodUUID;
4852
+ membershipId: z.ZodUUID;
4853
+ operationId: z.ZodUUID;
4854
+ status: z.ZodEnum<{
4855
+ pending: "pending";
4856
+ effective: "effective";
4857
+ }>;
4858
+ execution: z.ZodNullable<z.ZodObject<{
4859
+ subscriptionId: z.ZodString;
4860
+ customerId: z.ZodString;
4861
+ accountId: z.ZodString;
4862
+ sourceItems: z.ZodArray<z.ZodObject<{
4863
+ id: z.ZodString;
4864
+ price_id: z.ZodString;
4865
+ quantity: z.ZodNumber;
4866
+ discounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
4867
+ id: z.ZodString;
4868
+ coupon: z.ZodString;
4869
+ start: z.ZodNumber;
4870
+ end: z.ZodNullable<z.ZodNumber>;
4871
+ }, z.core.$strict>>>;
4872
+ }, z.core.$strict>>;
4873
+ items: z.ZodArray<z.ZodObject<{
4874
+ id: z.ZodString;
4875
+ price: z.ZodString;
4876
+ quantity: z.ZodNumber;
4877
+ discounts: z.ZodArray<z.ZodObject<{
4878
+ coupon: z.ZodOptional<z.ZodString>;
4879
+ terms: z.ZodOptional<z.ZodObject<{
4880
+ id: z.ZodString;
4881
+ name: z.ZodOptional<z.ZodString>;
4882
+ percent_off: z.ZodOptional<z.ZodNumber>;
4883
+ amount_off: z.ZodOptional<z.ZodNumber>;
4884
+ currency: z.ZodOptional<z.ZodString>;
4885
+ duration: z.ZodEnum<{
4886
+ once: "once";
4887
+ repeating: "repeating";
4888
+ forever: "forever";
4889
+ }>;
4890
+ duration_in_months: z.ZodOptional<z.ZodNumber>;
4891
+ }, z.core.$strict>>;
4892
+ discount: z.ZodOptional<z.ZodString>;
4893
+ receipt: z.ZodOptional<z.ZodObject<{
4894
+ id: z.ZodString;
4895
+ coupon: z.ZodString;
4896
+ start: z.ZodNumber;
4897
+ end: z.ZodNullable<z.ZodNumber>;
4898
+ }, z.core.$strict>>;
4899
+ }, z.core.$strict>>;
4900
+ }, z.core.$strict>>;
4901
+ }, z.core.$strict>>;
4458
4902
  grants: z.ZodArray<z.ZodObject<{
4459
4903
  id: z.ZodUUID;
4460
4904
  couponId: z.ZodUUID;
@@ -4537,11 +4981,16 @@ declare const apiOperations: {
4537
4981
  terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
4538
4982
  kind: z.ZodLiteral<"auto_topup">;
4539
4983
  threshold: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4540
- maxPurchasesPerDay: z.ZodNumber;
4541
- purchaseLimits: z.ZodOptional<z.ZodObject<{
4542
- hour: z.ZodOptional<z.ZodNumber>;
4543
- week: z.ZodOptional<z.ZodNumber>;
4544
- month: z.ZodOptional<z.ZodNumber>;
4984
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4985
+ purchaseLimit: z.ZodOptional<z.ZodObject<{
4986
+ interval: z.ZodEnum<{
4987
+ hour: "hour";
4988
+ day: "day";
4989
+ week: "week";
4990
+ month: "month";
4991
+ }>;
4992
+ intervalCount: z.ZodNumber;
4993
+ limit: z.ZodNumber;
4545
4994
  }, z.core.$strict>>;
4546
4995
  purchaseAmountMinor: z.ZodString;
4547
4996
  purchaseUnits: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -4582,9 +5031,9 @@ declare const apiOperations: {
4582
5031
  TRY: "TRY";
4583
5032
  RON: "RON";
4584
5033
  }>;
4585
- maxAmountMinorPerPeriod: z.ZodString;
4586
5034
  }, z.core.$strict>, z.ZodObject<{
4587
5035
  kind: z.ZodLiteral<"postpaid">;
5036
+ maxAmountMinorPerPeriod: z.ZodString;
4588
5037
  maxOutstandingMinor: z.ZodString;
4589
5038
  cashPrice: z.ZodObject<{
4590
5039
  currency: z.ZodEnum<{
@@ -4687,12 +5136,11 @@ declare const apiOperations: {
4687
5136
  TRY: "TRY";
4688
5137
  RON: "RON";
4689
5138
  }>;
4690
- maxAmountMinorPerPeriod: z.ZodString;
4691
5139
  }, z.core.$strict>], "kind">;
4692
5140
  status: z.ZodEnum<{
5141
+ active: "active";
4693
5142
  revoked: "revoked";
4694
5143
  prepared: "prepared";
4695
- active: "active";
4696
5144
  blocked: "blocked";
4697
5145
  }>;
4698
5146
  createdAt: z.ZodISODateTime;
@@ -5083,11 +5531,16 @@ declare const apiOperations: {
5083
5531
  terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
5084
5532
  kind: z.ZodLiteral<"auto_topup">;
5085
5533
  threshold: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
5086
- maxPurchasesPerDay: z.ZodNumber;
5087
- purchaseLimits: z.ZodOptional<z.ZodObject<{
5088
- hour: z.ZodOptional<z.ZodNumber>;
5089
- week: z.ZodOptional<z.ZodNumber>;
5090
- month: z.ZodOptional<z.ZodNumber>;
5534
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
5535
+ purchaseLimit: z.ZodOptional<z.ZodObject<{
5536
+ interval: z.ZodEnum<{
5537
+ hour: "hour";
5538
+ day: "day";
5539
+ week: "week";
5540
+ month: "month";
5541
+ }>;
5542
+ intervalCount: z.ZodNumber;
5543
+ limit: z.ZodNumber;
5091
5544
  }, z.core.$strict>>;
5092
5545
  purchaseAmountMinor: z.ZodString;
5093
5546
  purchaseUnits: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -5128,9 +5581,9 @@ declare const apiOperations: {
5128
5581
  TRY: "TRY";
5129
5582
  RON: "RON";
5130
5583
  }>;
5131
- maxAmountMinorPerPeriod: z.ZodString;
5132
5584
  }, z.core.$strict>, z.ZodObject<{
5133
5585
  kind: z.ZodLiteral<"postpaid">;
5586
+ maxAmountMinorPerPeriod: z.ZodString;
5134
5587
  maxOutstandingMinor: z.ZodString;
5135
5588
  cashPrice: z.ZodObject<{
5136
5589
  currency: z.ZodEnum<{
@@ -5233,12 +5686,11 @@ declare const apiOperations: {
5233
5686
  TRY: "TRY";
5234
5687
  RON: "RON";
5235
5688
  }>;
5236
- maxAmountMinorPerPeriod: z.ZodString;
5237
5689
  }, z.core.$strict>], "kind">;
5238
5690
  status: z.ZodEnum<{
5691
+ active: "active";
5239
5692
  revoked: "revoked";
5240
5693
  prepared: "prepared";
5241
- active: "active";
5242
5694
  blocked: "blocked";
5243
5695
  }>;
5244
5696
  createdAt: z.ZodISODateTime;
@@ -5321,10 +5773,14 @@ declare const apiOperations: {
5321
5773
  blocked: "blocked";
5322
5774
  idle: "idle";
5323
5775
  }>;
5324
- orderId: z.ZodNullable<z.ZodUUID>;
5776
+ taskId: z.ZodNullable<z.ZodUUID>;
5777
+ invoiceId: z.ZodNullable<z.ZodUUID>;
5325
5778
  hostedInvoiceUrl: z.ZodNullable<z.ZodURL>;
5326
- purchasesToday: z.ZodNumber;
5327
- amountMinorThisMonth: z.ZodString;
5779
+ purchaseCount: z.ZodNumber;
5780
+ purchaseWindowEndsAt: z.ZodNullable<z.ZodISODateTime>;
5781
+ attemptCount: z.ZodNumber;
5782
+ failedAttemptCount: z.ZodNumber;
5783
+ suspendedAt: z.ZodNullable<z.ZodISODateTime>;
5328
5784
  nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
5329
5785
  failureReason: z.ZodNullable<z.ZodString>;
5330
5786
  }, z.core.$strict>>;
@@ -5500,11 +5956,11 @@ declare const apiOperations: {
5500
5956
  entityId: z.ZodNullable<z.ZodUUID>;
5501
5957
  topN: z.ZodNullable<z.ZodNumber>;
5502
5958
  groupBy: z.ZodUnion<readonly [z.ZodEnum<{
5959
+ source: "source";
5503
5960
  customer: "customer";
5504
5961
  plan: "plan";
5505
5962
  entity: "entity";
5506
5963
  entitlement: "entitlement";
5507
- source: "source";
5508
5964
  resource: "resource";
5509
5965
  dimension: "dimension";
5510
5966
  }>, z.ZodString]>;
@@ -5632,10 +6088,10 @@ declare const apiOperations: {
5632
6088
  customerId: z.ZodUUID;
5633
6089
  idempotencyKey: z.ZodString;
5634
6090
  status: z.ZodEnum<{
6091
+ rejected: "rejected";
5635
6092
  failed: "failed";
5636
6093
  accepted: "accepted";
5637
6094
  queued: "queued";
5638
- rejected: "rejected";
5639
6095
  }>;
5640
6096
  receipt: z.ZodNullable<z.ZodObject<{
5641
6097
  id: z.ZodUUID;
@@ -6775,12 +7231,12 @@ declare const apiOperations: {
6775
7231
  }>;
6776
7232
  status: z.ZodEnum<{
6777
7233
  unknown: "unknown";
7234
+ active: "active";
6778
7235
  pending: "pending";
6779
7236
  trialing: "trialing";
6780
7237
  expired: "expired";
6781
7238
  scheduled: "scheduled";
6782
7239
  trial: "trial";
6783
- active: "active";
6784
7240
  past_due: "past_due";
6785
7241
  ended: "ended";
6786
7242
  paused: "paused";
@@ -6875,9 +7331,9 @@ declare const apiOperations: {
6875
7331
  customerId: z.ZodOptional<z.ZodUUID>;
6876
7332
  query: z.ZodObject<{
6877
7333
  type: z.ZodNullable<z.ZodEnum<{
7334
+ source: "source";
6878
7335
  usage: "usage";
6879
7336
  invoice: "invoice";
6880
- source: "source";
6881
7337
  debt: "debt";
6882
7338
  transaction: "transaction";
6883
7339
  settlement: "settlement";
@@ -6894,9 +7350,9 @@ declare const apiOperations: {
6894
7350
  at: z.ZodISODateTime;
6895
7351
  id: z.ZodUUID;
6896
7352
  type: z.ZodEnum<{
7353
+ source: "source";
6897
7354
  usage: "usage";
6898
7355
  invoice: "invoice";
6899
- source: "source";
6900
7356
  debt: "debt";
6901
7357
  transaction: "transaction";
6902
7358
  settlement: "settlement";
@@ -6973,10 +7429,10 @@ declare const apiOperations: {
6973
7429
  quantity: z.ZodString;
6974
7430
  unlimited: z.ZodBoolean;
6975
7431
  status: z.ZodEnum<{
7432
+ active: "active";
6976
7433
  revoked: "revoked";
6977
7434
  expired: "expired";
6978
7435
  scheduled: "scheduled";
6979
- active: "active";
6980
7436
  unavailable: "unavailable";
6981
7437
  }>;
6982
7438
  startsAt: z.ZodISODateTime;
@@ -7182,9 +7638,9 @@ declare const apiOperations: {
7182
7638
  at: z.ZodISODateTime;
7183
7639
  id: z.ZodUUID;
7184
7640
  type: z.ZodEnum<{
7641
+ source: "source";
7185
7642
  usage: "usage";
7186
7643
  invoice: "invoice";
7187
- source: "source";
7188
7644
  debt: "debt";
7189
7645
  transaction: "transaction";
7190
7646
  settlement: "settlement";
@@ -8587,16 +9043,16 @@ declare const apiOperations: {
8587
9043
  versionId: z.ZodDefault<z.ZodString>;
8588
9044
  holdingStatus: z.ZodDefault<z.ZodEnum<{
8589
9045
  "": "";
9046
+ active: "active";
8590
9047
  expired: "expired";
8591
9048
  scheduled: "scheduled";
8592
9049
  none: "none";
8593
- active: "active";
8594
9050
  unavailable: "unavailable";
8595
9051
  }>>;
8596
9052
  membershipStatus: z.ZodDefault<z.ZodEnum<{
8597
9053
  "": "";
8598
- trial: "trial";
8599
9054
  active: "active";
9055
+ trial: "trial";
8600
9056
  past_due: "past_due";
8601
9057
  ended: "ended";
8602
9058
  }>>;
@@ -9121,6 +9577,9 @@ type ApiOperation = keyof typeof apiOperations;
9121
9577
  type ApiInput<K extends ApiOperation> = z.input<(typeof apiOperations)[K]["request"]>;
9122
9578
  type ApiOutput<K extends ApiOperation> = z.output<(typeof apiOperations)[K]["response"]>;
9123
9579
  interface FoundationApi {
9580
+ getFeatures(): Promise<ApiOutput<"getFeatures">>;
9581
+ evaluateFeatures(input: ApiInput<"evaluateFeatures">): Promise<ApiOutput<"evaluateFeatures">>;
9582
+ trackEvents(input: ApiInput<"trackEvents">): Promise<ApiOutput<"trackEvents">>;
9124
9583
  resolvePaywall(input: ApiInput<"resolvePaywall">): Promise<ApiOutput<"resolvePaywall">>;
9125
9584
  resolveOffering(input: ApiInput<"resolveOffering">): Promise<ApiOutput<"resolveOffering">>;
9126
9585
  setupPayment(input: ApiInput<"setupPayment"> & {