@tinkerlandai/longplay-sdk 0.10.25 → 0.10.26

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 (96) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/THIRD_PARTY_NOTICES.md +26 -0
  3. package/dist/{ai-usage-B6RepnmH.d.ts → ai-usage-E4c9NSJK.d.ts} +1 -1
  4. package/dist/{api-C9P338XT.d.ts → api-BpeJkr6U.d.ts} +390 -390
  5. package/dist/chunk-2KOQBV3Y.js +1 -0
  6. package/dist/chunk-2MTTK3BT.js +1 -0
  7. package/dist/chunk-3FPYCF7Z.js +1 -0
  8. package/dist/chunk-3VUPVXAV.js +1 -0
  9. package/dist/chunk-5RXU57I5.js +1 -0
  10. package/dist/chunk-6VY4PZZ6.js +1 -0
  11. package/dist/chunk-7CFF6SWH.js +1 -0
  12. package/dist/chunk-B5JHPPR4.js +10 -0
  13. package/dist/chunk-BZSKOOMM.js +1 -0
  14. package/dist/chunk-C6JRUYKW.js +1 -0
  15. package/dist/chunk-CILM5XMH.js +1 -0
  16. package/dist/chunk-CNIBGSVO.js +1 -0
  17. package/dist/chunk-CZ3H2X7D.js +1 -0
  18. package/dist/chunk-DCCM7FYR.js +1 -0
  19. package/dist/chunk-DCIGO3NJ.js +1 -0
  20. package/dist/chunk-DOJE7VUR.js +1 -0
  21. package/dist/{chunk-34I23EKZ.js → chunk-ECMWY3G2.js} +1 -1
  22. package/dist/chunk-G7NSECIG.js +1 -0
  23. package/dist/chunk-GIV4FOOW.js +1 -0
  24. package/dist/chunk-HMRIMJ5W.js +1 -0
  25. package/dist/chunk-JAKOBECD.js +1 -0
  26. package/dist/{chunk-O3LZPMS4.js → chunk-KRTX4QEH.js} +1 -1
  27. package/dist/chunk-LPDUK7HT.js +1 -0
  28. package/dist/chunk-MRFBMFNK.js +1 -0
  29. package/dist/chunk-MWDR5FEU.js +1 -0
  30. package/dist/chunk-MYUYN7ZG.js +1 -0
  31. package/dist/chunk-NMKZ724L.js +1 -0
  32. package/dist/chunk-O4KXODTJ.js +17 -0
  33. package/dist/chunk-ORPOCB2J.js +1 -0
  34. package/dist/chunk-PMCGTXGH.js +1 -0
  35. package/dist/{chunk-RKREEPCT.js → chunk-PWQ5BHBJ.js} +1 -1
  36. package/dist/chunk-SMIO7OG5.js +1 -0
  37. package/dist/chunk-T4GTAH43.js +1 -0
  38. package/dist/chunk-UBKD6VMS.js +1 -0
  39. package/dist/chunk-UHI7SPHK.js +1 -0
  40. package/dist/chunk-WM27UTWT.js +62 -0
  41. package/dist/chunk-WOT6VMZA.js +1 -0
  42. package/dist/{chunk-SJNF6JDJ.js → chunk-X7G7JMZ3.js} +1 -1
  43. package/dist/chunk-YSNMXK4R.js +1 -0
  44. package/dist/{configuration-sync-eEFj_oKG.d.ts → configuration-sync-DdTRUv7A.d.ts} +17 -17
  45. package/dist/content-UDP5VQS4.js +1 -0
  46. package/dist/funnel-host-purchase-5NLPYJRK.js +1 -0
  47. package/dist/{funnel-local-client-CSA9XoC4.d.ts → funnel-local-client-DoYVcZ1z.d.ts} +1696 -1696
  48. package/dist/funnel-node-evaluation-COxXtZEQ.d.ts +1003 -0
  49. package/dist/{funnel-process-client-RXgS2i-R.d.ts → funnel-process-client-DtXNiFQ-.d.ts} +1736 -1736
  50. package/dist/funnel-runtime-host-ZWUAGDBU.js +1 -0
  51. package/dist/index.d.ts +70 -69
  52. package/dist/index.js +1 -1
  53. package/dist/merchant-bridge-contracts-N3Q4W6ZU.js +1 -0
  54. package/dist/native-shell.js +1 -1
  55. package/dist/openrouter.d.ts +3 -3
  56. package/dist/openrouter.js +1 -1
  57. package/dist/operation-contracts-VURXKAFX.js +1 -0
  58. package/dist/page.d.ts +12 -12
  59. package/dist/page.js +1 -1
  60. package/dist/paywall-QQ2MC4KO.js +1 -0
  61. package/dist/paywall-session-WC2WFWBQ.js +1 -0
  62. package/dist/popup.d.ts +4 -4
  63. package/dist/popup.js +1 -1
  64. package/dist/react-native.d.ts +8 -8
  65. package/dist/react-native.js +1 -1
  66. package/dist/screen-renderer-G2EWN3WB.js +1 -0
  67. package/dist/server.d.ts +1752 -23
  68. package/dist/server.js +6 -1
  69. package/dist/visual-dom-5LUN4AHO.js +1 -0
  70. package/dist/visual.js +1 -1
  71. package/package.json +1 -1
  72. package/dist/chunk-2KI63SPJ.js +0 -10
  73. package/dist/chunk-2ZJ5CS5Q.js +0 -1
  74. package/dist/chunk-5HJMAZ7A.js +0 -1
  75. package/dist/chunk-7AXCG6NU.js +0 -1
  76. package/dist/chunk-BB5P5HPS.js +0 -1
  77. package/dist/chunk-C2BODHNY.js +0 -1
  78. package/dist/chunk-EIYWDWXP.js +0 -1
  79. package/dist/chunk-LFFBNGXP.js +0 -1
  80. package/dist/chunk-MHEYMXGZ.js +0 -17
  81. package/dist/chunk-ML3BIPM6.js +0 -1
  82. package/dist/chunk-O4535GJR.js +0 -6
  83. package/dist/chunk-OEH47Y2L.js +0 -1
  84. package/dist/chunk-THGLNE4K.js +0 -1
  85. package/dist/chunk-TUYBXAAK.js +0 -1
  86. package/dist/chunk-ZX2RWS3T.js +0 -1
  87. package/dist/content-FD2Q6XD6.js +0 -1
  88. package/dist/funnel-host-purchase-XW7IF52Y.js +0 -1
  89. package/dist/funnel-node-evaluation-Cg-4tcAs.d.ts +0 -2731
  90. package/dist/funnel-runtime-host-I6PJXVRC.js +0 -1
  91. package/dist/paywall-CGBFHFRU.js +0 -1
  92. package/dist/screen-renderer-WOMWOEYL.js +0 -1
  93. package/dist/visual-dom-7IF7ITAK.js +0 -1
  94. package/dist/{coupon-DyKA-BRG.d.ts → coupon-kfkIVf9n.d.ts} +4 -4
  95. package/dist/{presentation-loading-D0A9G_kT.d.ts → presentation-loading-iSaRiDP2.d.ts} +3 -3
  96. package/dist/{screen-DRP7nsrQ.d.ts → screen-CGCJ46b1.d.ts} +3 -3
@@ -1,2731 +0,0 @@
1
- import { z } from 'zod';
2
- import { E as EvaluationContext, J as JsonValue } from './growth-rules-B4YYy64R.js';
3
-
4
- declare const commerceSubjectSchema: z.ZodObject<{
5
- scope: z.ZodObject<{
6
- projectId: z.ZodUUID;
7
- environmentId: z.ZodUUID;
8
- environment: z.ZodEnum<{
9
- sandbox: "sandbox";
10
- live: "live";
11
- }>;
12
- }, z.core.$strict>;
13
- customerId: z.ZodUUID;
14
- }, z.core.$strict>;
15
-
16
- declare const merchantBridgeCommandSchema: z.ZodEnum<{
17
- "session.create": "session.create";
18
- "catalog.read": "catalog.read";
19
- "customer.commerce.read": "customer.commerce.read";
20
- "presentation.resolve": "presentation.resolve";
21
- "presentation.report": "presentation.report";
22
- "purchase.execute": "purchase.execute";
23
- "operation.read": "operation.read";
24
- "subscription.change": "subscription.change";
25
- "refund.execute": "refund.execute";
26
- "bridge.ping": "bridge.ping";
27
- "bridge.describe": "bridge.describe";
28
- }>;
29
- type MerchantBridgeCommand = z.infer<typeof merchantBridgeCommandSchema>;
30
- declare const merchantBridgeManifestSchema: z.ZodObject<{
31
- bridgeVersion: z.ZodLiteral<3>;
32
- projectId: z.ZodUUID;
33
- environmentId: z.ZodUUID;
34
- environment: z.ZodEnum<{
35
- sandbox: "sandbox";
36
- live: "live";
37
- }>;
38
- capabilities: z.ZodArray<z.ZodEnum<{
39
- presentation: "presentation";
40
- session: "session";
41
- catalog: "catalog";
42
- customer_commerce: "customer_commerce";
43
- presentation_events: "presentation_events";
44
- purchases: "purchases";
45
- operation_status: "operation_status";
46
- billing_records: "billing_records";
47
- subscription_changes: "subscription_changes";
48
- refunds: "refunds";
49
- }>>;
50
- catalog: z.ZodEnum<{
51
- none: "none";
52
- endpoint: "endpoint";
53
- static: "static";
54
- }>;
55
- billingEvents: z.ZodArray<z.ZodEnum<{
56
- "purchase.completed": "purchase.completed";
57
- "purchase.closed": "purchase.closed";
58
- "subscription.observed": "subscription.observed";
59
- "invoice.paid": "invoice.paid";
60
- "subscription.change.completed": "subscription.change.completed";
61
- "subscription.change.closed": "subscription.change.closed";
62
- "refund.updated": "refund.updated";
63
- }>>;
64
- profiles: z.ZodArray<z.ZodEnum<{
65
- "purchase.subscription": "purchase.subscription";
66
- "purchase.one_time": "purchase.one_time";
67
- "purchase.prepaid": "purchase.prepaid";
68
- "purchase.trial": "purchase.trial";
69
- "purchase.seats": "purchase.seats";
70
- "purchase.tiered": "purchase.tiered";
71
- "tax.automatic": "tax.automatic";
72
- "discount.percent.once": "discount.percent.once";
73
- "discount.percent.repeating": "discount.percent.repeating";
74
- "discount.percent.forever": "discount.percent.forever";
75
- "discount.amount.once": "discount.amount.once";
76
- "discount.amount.repeating": "discount.amount.repeating";
77
- "discount.amount.forever": "discount.amount.forever";
78
- "subscription.cancel.immediate": "subscription.cancel.immediate";
79
- "subscription.cancel.renewal": "subscription.cancel.renewal";
80
- "subscription.resume": "subscription.resume";
81
- "subscription.plan.immediate": "subscription.plan.immediate";
82
- "subscription.plan.renewal": "subscription.plan.renewal";
83
- "subscription.seats": "subscription.seats";
84
- "subscription.quantity": "subscription.quantity";
85
- "subscription.billing_cycle": "subscription.billing_cycle";
86
- "subscription.proration": "subscription.proration";
87
- "refund.full": "refund.full";
88
- "refund.partial": "refund.partial";
89
- "refund.revoke": "refund.revoke";
90
- }>>;
91
- }, z.core.$strict>;
92
- type MerchantBridgeManifest = z.infer<typeof merchantBridgeManifestSchema>;
93
- declare const merchantBridgeOperationInputSchema: z.ZodObject<{
94
- operationId: z.ZodUUID;
95
- customerId: z.ZodUUID;
96
- }, z.core.$strict>;
97
- declare const merchantBridgeOperationAuthoritySchema: z.ZodObject<{
98
- scope: z.ZodObject<{
99
- projectId: z.ZodUUID;
100
- environmentId: z.ZodUUID;
101
- environment: z.ZodEnum<{
102
- sandbox: "sandbox";
103
- live: "live";
104
- }>;
105
- }, z.core.$strict>;
106
- operationId: z.ZodUUID;
107
- customerId: z.ZodUUID;
108
- confirmedAt: z.ZodNullable<z.ZodISODateTime>;
109
- initialExecutionAllowed: z.ZodBoolean;
110
- instruction: z.ZodDiscriminatedUnion<[z.ZodObject<{
111
- type: z.ZodLiteral<"purchase">;
112
- mode: z.ZodEnum<{
113
- payment: "payment";
114
- subscription: "subscription";
115
- }>;
116
- lineItems: z.ZodArray<z.ZodObject<{
117
- priceId: z.ZodUUID;
118
- productVersionId: z.ZodUUID;
119
- productId: z.ZodString;
120
- quantity: z.ZodNumber;
121
- unitAmountMinor: z.ZodNumber;
122
- totalMinor: z.ZodNumber;
123
- interval: z.ZodEnum<{
124
- week: "week";
125
- month: "month";
126
- year: "year";
127
- one_off: "one_off";
128
- }>;
129
- intervalCount: z.ZodNumber;
130
- kind: z.ZodEnum<{
131
- prepaid: "prepaid";
132
- fixed: "fixed";
133
- seat: "seat";
134
- }>;
135
- tiers: z.ZodNullable<z.ZodObject<{
136
- mode: z.ZodEnum<{
137
- graduated: "graduated";
138
- volume: "volume";
139
- }>;
140
- tiers: z.ZodArray<z.ZodObject<{
141
- upTo: z.ZodNullable<z.ZodNumber>;
142
- unitAmountMinor: z.ZodNumber;
143
- flatAmountMinor: z.ZodOptional<z.ZodNumber>;
144
- }, z.core.$strict>>;
145
- }, z.core.$strict>>;
146
- }, z.core.$strict>>;
147
- catalogAmountMinor: z.ZodNumber;
148
- nativeDiscountMinor: z.ZodOptional<z.ZodNumber>;
149
- discount: z.ZodNullable<z.ZodObject<{
150
- grantId: z.ZodUUID;
151
- couponId: z.ZodUUID;
152
- amountMinor: z.ZodNumber;
153
- applicationPolicy: z.ZodOptional<z.ZodEnum<{
154
- replace: "replace";
155
- stack_native: "stack_native";
156
- }>>;
157
- applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
158
- terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
159
- type: z.ZodLiteral<"percent">;
160
- percentOff: z.ZodNumber;
161
- }, z.core.$strict>, z.ZodObject<{
162
- type: z.ZodLiteral<"amount">;
163
- amountOffMinor: z.ZodNumber;
164
- currency: z.ZodString;
165
- }, z.core.$strict>], "type">;
166
- duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
167
- type: z.ZodLiteral<"once">;
168
- }, z.core.$strict>, z.ZodObject<{
169
- type: z.ZodLiteral<"forever">;
170
- }, z.core.$strict>, z.ZodObject<{
171
- type: z.ZodLiteral<"repeating">;
172
- months: z.ZodNumber;
173
- }, z.core.$strict>], "type">;
174
- }, z.core.$strict>>;
175
- trialPeriodDays: z.ZodNullable<z.ZodNumber>;
176
- automaticTax: z.ZodBoolean;
177
- provider: z.ZodLiteral<"merchant">;
178
- executor: z.ZodLiteral<"merchant">;
179
- operationId: z.ZodUUID;
180
- customerId: z.ZodUUID;
181
- configurationRevision: z.ZodNumber;
182
- connectionRevision: z.ZodNumber;
183
- currency: z.ZodString;
184
- expiresAt: z.ZodISODateTime;
185
- }, z.core.$strict>, z.ZodObject<{
186
- type: z.ZodLiteral<"subscription_change">;
187
- subscriptionId: z.ZodUUID;
188
- merchantSubscriptionId: z.ZodString;
189
- membershipId: z.ZodUUID;
190
- subscriptionAction: z.ZodEnum<{
191
- update: "update";
192
- cancel: "cancel";
193
- schedule: "schedule";
194
- release: "release";
195
- }>;
196
- supersedesOperationId: z.ZodNullable<z.ZodUUID>;
197
- change: z.ZodDiscriminatedUnion<[z.ZodObject<{
198
- type: z.ZodLiteral<"cancel">;
199
- }, z.core.$strict>, z.ZodObject<{
200
- type: z.ZodLiteral<"uncancel">;
201
- }, z.core.$strict>, z.ZodObject<{
202
- type: z.ZodLiteral<"plan">;
203
- productVersionId: z.ZodUUID;
204
- }, z.core.$strict>, z.ZodObject<{
205
- type: z.ZodLiteral<"seats">;
206
- licenseKey: z.ZodString;
207
- quantity: z.ZodNumber;
208
- }, z.core.$strict>, z.ZodObject<{
209
- type: z.ZodLiteral<"quantity">;
210
- internal_feature_id: z.ZodUUID;
211
- quantity: z.ZodNumber;
212
- }, z.core.$strict>, z.ZodObject<{
213
- type: z.ZodLiteral<"billing_cycle">;
214
- billingCycleAnchor: z.ZodUnion<readonly [z.ZodLiteral<"now">, z.ZodNumber]>;
215
- }, z.core.$strict>], "type">;
216
- timing: z.ZodEnum<{
217
- immediate: "immediate";
218
- renewal: "renewal";
219
- }>;
220
- effectiveAt: z.ZodISODateTime;
221
- creditMinor: z.ZodNumber;
222
- debitMinor: z.ZodNumber;
223
- totalMinor: z.ZodNumber;
224
- discountMinor: z.ZodNumber;
225
- discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
226
- grantId: z.ZodUUID;
227
- couponId: z.ZodUUID;
228
- amountMinor: z.ZodNumber;
229
- applicationPolicy: z.ZodOptional<z.ZodEnum<{
230
- replace: "replace";
231
- stack_native: "stack_native";
232
- }>>;
233
- applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
234
- terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
235
- type: z.ZodLiteral<"percent">;
236
- percentOff: z.ZodNumber;
237
- }, z.core.$strict>, z.ZodObject<{
238
- type: z.ZodLiteral<"amount">;
239
- amountOffMinor: z.ZodNumber;
240
- currency: z.ZodString;
241
- }, z.core.$strict>], "type">;
242
- duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
243
- type: z.ZodLiteral<"once">;
244
- }, z.core.$strict>, z.ZodObject<{
245
- type: z.ZodLiteral<"forever">;
246
- }, z.core.$strict>, z.ZodObject<{
247
- type: z.ZodLiteral<"repeating">;
248
- months: z.ZodNumber;
249
- }, z.core.$strict>], "type">;
250
- }, z.core.$strict>>>;
251
- taxMinor: z.ZodNumber;
252
- proration: z.ZodEnum<{
253
- none: "none";
254
- create_prorations: "create_prorations";
255
- always_invoice: "always_invoice";
256
- }>;
257
- lineItems: z.ZodArray<z.ZodObject<{
258
- priceId: z.ZodUUID;
259
- productVersionId: z.ZodUUID;
260
- productId: z.ZodString;
261
- unitAmountMinor: z.ZodNumber;
262
- totalMinor: z.ZodNumber;
263
- interval: z.ZodEnum<{
264
- week: "week";
265
- month: "month";
266
- year: "year";
267
- one_off: "one_off";
268
- }>;
269
- intervalCount: z.ZodNumber;
270
- kind: z.ZodEnum<{
271
- prepaid: "prepaid";
272
- fixed: "fixed";
273
- seat: "seat";
274
- }>;
275
- tiers: z.ZodNullable<z.ZodObject<{
276
- mode: z.ZodEnum<{
277
- graduated: "graduated";
278
- volume: "volume";
279
- }>;
280
- tiers: z.ZodArray<z.ZodObject<{
281
- upTo: z.ZodNullable<z.ZodNumber>;
282
- unitAmountMinor: z.ZodNumber;
283
- flatAmountMinor: z.ZodOptional<z.ZodNumber>;
284
- }, z.core.$strict>>;
285
- }, z.core.$strict>>;
286
- quantity: z.ZodNumber;
287
- }, z.core.$strict>>;
288
- removePriceIds: z.ZodArray<z.ZodUUID>;
289
- sourceLineItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
290
- priceId: z.ZodUUID;
291
- productVersionId: z.ZodUUID;
292
- productId: z.ZodString;
293
- quantity: z.ZodNumber;
294
- unitAmountMinor: z.ZodNumber;
295
- totalMinor: z.ZodNumber;
296
- interval: z.ZodEnum<{
297
- week: "week";
298
- month: "month";
299
- year: "year";
300
- one_off: "one_off";
301
- }>;
302
- intervalCount: z.ZodNumber;
303
- kind: z.ZodEnum<{
304
- prepaid: "prepaid";
305
- fixed: "fixed";
306
- seat: "seat";
307
- }>;
308
- tiers: z.ZodNullable<z.ZodObject<{
309
- mode: z.ZodEnum<{
310
- graduated: "graduated";
311
- volume: "volume";
312
- }>;
313
- tiers: z.ZodArray<z.ZodObject<{
314
- upTo: z.ZodNullable<z.ZodNumber>;
315
- unitAmountMinor: z.ZodNumber;
316
- flatAmountMinor: z.ZodOptional<z.ZodNumber>;
317
- }, z.core.$strict>>;
318
- }, z.core.$strict>>;
319
- }, z.core.$strict>>>;
320
- provider: z.ZodLiteral<"merchant">;
321
- executor: z.ZodLiteral<"merchant">;
322
- operationId: z.ZodUUID;
323
- customerId: z.ZodUUID;
324
- configurationRevision: z.ZodNumber;
325
- connectionRevision: z.ZodNumber;
326
- currency: z.ZodString;
327
- expiresAt: z.ZodISODateTime;
328
- }, z.core.$strict>, z.ZodObject<{
329
- type: z.ZodLiteral<"refund">;
330
- invoiceId: z.ZodUUID;
331
- merchantInvoiceId: z.ZodString;
332
- amountMinor: z.ZodNumber;
333
- mode: z.ZodEnum<{
334
- full: "full";
335
- partial: "partial";
336
- }>;
337
- entitlementAction: z.ZodEnum<{
338
- retain: "retain";
339
- revoke: "revoke";
340
- }>;
341
- cancelSubscriptions: z.ZodArray<z.ZodString>;
342
- provider: z.ZodLiteral<"merchant">;
343
- executor: z.ZodLiteral<"merchant">;
344
- operationId: z.ZodUUID;
345
- customerId: z.ZodUUID;
346
- configurationRevision: z.ZodNumber;
347
- connectionRevision: z.ZodNumber;
348
- currency: z.ZodString;
349
- expiresAt: z.ZodISODateTime;
350
- }, z.core.$strict>], "type">;
351
- merchantTerms: z.ZodOptional<z.ZodObject<{
352
- request: z.ZodDiscriminatedUnion<[z.ZodObject<{
353
- action: z.ZodLiteral<"purchase">;
354
- mode: z.ZodEnum<{
355
- payment: "payment";
356
- subscription: "subscription";
357
- }>;
358
- currency: z.ZodString;
359
- items: z.ZodArray<z.ZodObject<{
360
- merchantProductId: z.ZodString;
361
- merchantPriceId: z.ZodString;
362
- productVersionId: z.ZodOptional<z.ZodUUID>;
363
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
364
- }, z.core.$strict>>;
365
- offerRefs: z.ZodArray<z.ZodString>;
366
- subject: z.ZodObject<{
367
- scope: z.ZodObject<{
368
- projectId: z.ZodUUID;
369
- environmentId: z.ZodUUID;
370
- environment: z.ZodEnum<{
371
- sandbox: "sandbox";
372
- live: "live";
373
- }>;
374
- }, z.core.$strict>;
375
- customerId: z.ZodUUID;
376
- }, z.core.$strict>;
377
- operationId: z.ZodUUID;
378
- configurationRevision: z.ZodNumber;
379
- connectionRevision: z.ZodNumber;
380
- expiresAt: z.ZodISODateTime;
381
- }, z.core.$strict>, z.ZodObject<{
382
- action: z.ZodLiteral<"subscription_change">;
383
- currency: z.ZodString;
384
- merchantSubscriptionId: z.ZodString;
385
- change: z.ZodDiscriminatedUnion<[z.ZodObject<{
386
- type: z.ZodLiteral<"cancel">;
387
- }, z.core.$strict>, z.ZodObject<{
388
- type: z.ZodLiteral<"uncancel">;
389
- }, z.core.$strict>, z.ZodObject<{
390
- type: z.ZodLiteral<"plan">;
391
- productVersionId: z.ZodUUID;
392
- }, z.core.$strict>, z.ZodObject<{
393
- type: z.ZodLiteral<"seats">;
394
- licenseKey: z.ZodString;
395
- quantity: z.ZodNumber;
396
- }, z.core.$strict>, z.ZodObject<{
397
- type: z.ZodLiteral<"quantity">;
398
- internal_feature_id: z.ZodUUID;
399
- quantity: z.ZodNumber;
400
- }, z.core.$strict>, z.ZodObject<{
401
- type: z.ZodLiteral<"billing_cycle">;
402
- billingCycleAnchor: z.ZodUnion<readonly [z.ZodLiteral<"now">, z.ZodNumber]>;
403
- }, z.core.$strict>], "type">;
404
- timing: z.ZodEnum<{
405
- immediate: "immediate";
406
- renewal: "renewal";
407
- }>;
408
- proration: z.ZodEnum<{
409
- none: "none";
410
- create_prorations: "create_prorations";
411
- always_invoice: "always_invoice";
412
- }>;
413
- offerRefs: z.ZodArray<z.ZodString>;
414
- subject: z.ZodObject<{
415
- scope: z.ZodObject<{
416
- projectId: z.ZodUUID;
417
- environmentId: z.ZodUUID;
418
- environment: z.ZodEnum<{
419
- sandbox: "sandbox";
420
- live: "live";
421
- }>;
422
- }, z.core.$strict>;
423
- customerId: z.ZodUUID;
424
- }, z.core.$strict>;
425
- operationId: z.ZodUUID;
426
- configurationRevision: z.ZodNumber;
427
- connectionRevision: z.ZodNumber;
428
- expiresAt: z.ZodISODateTime;
429
- }, z.core.$strict>, z.ZodObject<{
430
- action: z.ZodLiteral<"refund">;
431
- currency: z.ZodString;
432
- merchantInvoiceId: z.ZodString;
433
- mode: z.ZodEnum<{
434
- full: "full";
435
- partial: "partial";
436
- }>;
437
- amountMinor: z.ZodOptional<z.ZodNumber>;
438
- entitlementAction: z.ZodEnum<{
439
- retain: "retain";
440
- revoke: "revoke";
441
- }>;
442
- subject: z.ZodObject<{
443
- scope: z.ZodObject<{
444
- projectId: z.ZodUUID;
445
- environmentId: z.ZodUUID;
446
- environment: z.ZodEnum<{
447
- sandbox: "sandbox";
448
- live: "live";
449
- }>;
450
- }, z.core.$strict>;
451
- customerId: z.ZodUUID;
452
- }, z.core.$strict>;
453
- operationId: z.ZodUUID;
454
- configurationRevision: z.ZodNumber;
455
- connectionRevision: z.ZodNumber;
456
- expiresAt: z.ZodISODateTime;
457
- }, z.core.$strict>], "action">;
458
- requestDigest: z.ZodString;
459
- merchantQuoteId: z.ZodString;
460
- quoteTermsDigest: z.ZodString;
461
- termsVersion: z.ZodString;
462
- sourceRevisions: z.ZodArray<z.ZodObject<{
463
- reference: z.ZodString;
464
- revision: z.ZodString;
465
- }, z.core.$strict>>;
466
- observedAt: z.ZodISODateTime;
467
- expiresAt: z.ZodISODateTime;
468
- currency: z.ZodString;
469
- automaticTax: z.ZodBoolean;
470
- lines: z.ZodArray<z.ZodObject<{
471
- merchantLineId: z.ZodString;
472
- merchantPriceId: z.ZodNullable<z.ZodString>;
473
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
474
- subtotalMinor: z.ZodNumber;
475
- discountMinor: z.ZodNumber;
476
- taxMinor: z.ZodNullable<z.ZodNumber>;
477
- totalMinor: z.ZodNullable<z.ZodNumber>;
478
- }, z.core.$strict>>;
479
- subscriptionTerms: z.ZodNullable<z.ZodObject<{
480
- items: z.ZodArray<z.ZodObject<{
481
- merchantPriceId: z.ZodString;
482
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
483
- interval: z.ZodEnum<{
484
- week: "week";
485
- month: "month";
486
- year: "year";
487
- }>;
488
- intervalCount: z.ZodNumber;
489
- amountMinor: z.ZodNumber;
490
- amountAfterOfferMinor: z.ZodOptional<z.ZodNumber>;
491
- }, z.core.$strict>>;
492
- trial: z.ZodNullable<z.ZodObject<{
493
- days: z.ZodNumber;
494
- cardRequired: z.ZodBoolean;
495
- }, z.core.$strict>>;
496
- discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
497
- grantId: z.ZodUUID;
498
- couponId: z.ZodUUID;
499
- amountMinor: z.ZodNumber;
500
- applicationPolicy: z.ZodOptional<z.ZodEnum<{
501
- replace: "replace";
502
- stack_native: "stack_native";
503
- }>>;
504
- applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
505
- terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
506
- type: z.ZodLiteral<"percent">;
507
- percentOff: z.ZodNumber;
508
- }, z.core.$strict>, z.ZodObject<{
509
- type: z.ZodLiteral<"amount">;
510
- amountOffMinor: z.ZodNumber;
511
- currency: z.ZodString;
512
- }, z.core.$strict>], "type">;
513
- duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
514
- type: z.ZodLiteral<"once">;
515
- }, z.core.$strict>, z.ZodObject<{
516
- type: z.ZodLiteral<"forever">;
517
- }, z.core.$strict>, z.ZodObject<{
518
- type: z.ZodLiteral<"repeating">;
519
- months: z.ZodNumber;
520
- }, z.core.$strict>], "type">;
521
- }, z.core.$strict>>>;
522
- discountExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
523
- initialAmountMinor: z.ZodOptional<z.ZodNumber>;
524
- }, z.core.$strict>>;
525
- subtotalMinor: z.ZodNumber;
526
- discountMinor: z.ZodNumber;
527
- nativeDiscountMinor: z.ZodOptional<z.ZodNumber>;
528
- discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
529
- grantId: z.ZodUUID;
530
- couponId: z.ZodUUID;
531
- amountMinor: z.ZodNumber;
532
- applicationPolicy: z.ZodOptional<z.ZodEnum<{
533
- replace: "replace";
534
- stack_native: "stack_native";
535
- }>>;
536
- applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
537
- terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
538
- type: z.ZodLiteral<"percent">;
539
- percentOff: z.ZodNumber;
540
- }, z.core.$strict>, z.ZodObject<{
541
- type: z.ZodLiteral<"amount">;
542
- amountOffMinor: z.ZodNumber;
543
- currency: z.ZodString;
544
- }, z.core.$strict>], "type">;
545
- duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
546
- type: z.ZodLiteral<"once">;
547
- }, z.core.$strict>, z.ZodObject<{
548
- type: z.ZodLiteral<"forever">;
549
- }, z.core.$strict>, z.ZodObject<{
550
- type: z.ZodLiteral<"repeating">;
551
- months: z.ZodNumber;
552
- }, z.core.$strict>], "type">;
553
- }, z.core.$strict>>>;
554
- taxMinor: z.ZodNullable<z.ZodNumber>;
555
- totalMinor: z.ZodNullable<z.ZodNumber>;
556
- effectiveAt: z.ZodNullable<z.ZodISODateTime>;
557
- expectedEffects: z.ZodArray<z.ZodObject<{
558
- reference: z.ZodString;
559
- kind: z.ZodEnum<{
560
- change: "change";
561
- revoke: "revoke";
562
- grant: "grant";
563
- }>;
564
- description: z.ZodString;
565
- quantity: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
566
- unit: z.ZodNullable<z.ZodString>;
567
- }, z.core.$strict>>;
568
- requiredConsents: z.ZodArray<z.ZodObject<{
569
- reference: z.ZodString;
570
- version: z.ZodString;
571
- summary: z.ZodString;
572
- }, z.core.$strict>>;
573
- }, z.core.$strict>>;
574
- }, z.core.$strict>;
575
- declare const merchantBridgeCommandInputs: {
576
- readonly "bridge.ping": z.ZodObject<{
577
- challenge: z.ZodUUID;
578
- }, z.core.$strict>;
579
- readonly "bridge.describe": z.ZodObject<{}, z.core.$strict>;
580
- readonly "session.create": z.ZodObject<{}, z.core.$strict>;
581
- readonly "catalog.read": z.ZodObject<{}, z.core.$strict>;
582
- readonly "customer.commerce.read": z.ZodObject<{}, z.core.$strict>;
583
- readonly "presentation.resolve": z.ZodObject<{}, z.core.$strict>;
584
- readonly "presentation.report": z.ZodObject<{
585
- decisionId: z.ZodUUID;
586
- eventId: z.ZodUUID;
587
- }, z.core.$strict>;
588
- readonly "purchase.execute": z.ZodObject<{
589
- operationId: z.ZodUUID;
590
- customerId: z.ZodUUID;
591
- }, z.core.$strict>;
592
- readonly "operation.read": z.ZodObject<{
593
- operationId: z.ZodUUID;
594
- customerId: z.ZodUUID;
595
- }, z.core.$strict>;
596
- readonly "subscription.change": z.ZodObject<{
597
- operationId: z.ZodUUID;
598
- customerId: z.ZodUUID;
599
- }, z.core.$strict>;
600
- readonly "refund.execute": z.ZodObject<{
601
- operationId: z.ZodUUID;
602
- customerId: z.ZodUUID;
603
- }, z.core.$strict>;
604
- };
605
- declare const merchantBridgeCommandOutputs: {
606
- readonly "bridge.ping": z.ZodObject<{
607
- challenge: z.ZodUUID;
608
- }, z.core.$strict>;
609
- readonly "bridge.describe": z.ZodObject<{
610
- bridgeVersion: z.ZodLiteral<3>;
611
- projectId: z.ZodUUID;
612
- environmentId: z.ZodUUID;
613
- environment: z.ZodEnum<{
614
- sandbox: "sandbox";
615
- live: "live";
616
- }>;
617
- capabilities: z.ZodArray<z.ZodEnum<{
618
- presentation: "presentation";
619
- session: "session";
620
- catalog: "catalog";
621
- customer_commerce: "customer_commerce";
622
- presentation_events: "presentation_events";
623
- purchases: "purchases";
624
- operation_status: "operation_status";
625
- billing_records: "billing_records";
626
- subscription_changes: "subscription_changes";
627
- refunds: "refunds";
628
- }>>;
629
- catalog: z.ZodEnum<{
630
- none: "none";
631
- endpoint: "endpoint";
632
- static: "static";
633
- }>;
634
- billingEvents: z.ZodArray<z.ZodEnum<{
635
- "purchase.completed": "purchase.completed";
636
- "purchase.closed": "purchase.closed";
637
- "subscription.observed": "subscription.observed";
638
- "invoice.paid": "invoice.paid";
639
- "subscription.change.completed": "subscription.change.completed";
640
- "subscription.change.closed": "subscription.change.closed";
641
- "refund.updated": "refund.updated";
642
- }>>;
643
- profiles: z.ZodArray<z.ZodEnum<{
644
- "purchase.subscription": "purchase.subscription";
645
- "purchase.one_time": "purchase.one_time";
646
- "purchase.prepaid": "purchase.prepaid";
647
- "purchase.trial": "purchase.trial";
648
- "purchase.seats": "purchase.seats";
649
- "purchase.tiered": "purchase.tiered";
650
- "tax.automatic": "tax.automatic";
651
- "discount.percent.once": "discount.percent.once";
652
- "discount.percent.repeating": "discount.percent.repeating";
653
- "discount.percent.forever": "discount.percent.forever";
654
- "discount.amount.once": "discount.amount.once";
655
- "discount.amount.repeating": "discount.amount.repeating";
656
- "discount.amount.forever": "discount.amount.forever";
657
- "subscription.cancel.immediate": "subscription.cancel.immediate";
658
- "subscription.cancel.renewal": "subscription.cancel.renewal";
659
- "subscription.resume": "subscription.resume";
660
- "subscription.plan.immediate": "subscription.plan.immediate";
661
- "subscription.plan.renewal": "subscription.plan.renewal";
662
- "subscription.seats": "subscription.seats";
663
- "subscription.quantity": "subscription.quantity";
664
- "subscription.billing_cycle": "subscription.billing_cycle";
665
- "subscription.proration": "subscription.proration";
666
- "refund.full": "refund.full";
667
- "refund.partial": "refund.partial";
668
- "refund.revoke": "refund.revoke";
669
- }>>;
670
- }, z.core.$strict>;
671
- readonly "session.create": z.ZodObject<{
672
- nativeUserId: z.ZodString;
673
- session: z.ZodObject<{
674
- customerId: z.ZodUUID;
675
- sessionId: z.ZodUUID;
676
- accessToken: z.ZodString;
677
- refreshToken: z.ZodString;
678
- expiresAt: z.ZodISODateTime;
679
- refreshExpiresAt: z.ZodISODateTime;
680
- }, z.core.$strict>;
681
- }, z.core.$strict>;
682
- readonly "catalog.read": z.ZodObject<{
683
- revision: z.ZodString;
684
- updatedAt: z.ZodISODateTime;
685
- provider: z.ZodLiteral<"merchant">;
686
- items: z.ZodArray<z.ZodObject<{
687
- merchantProductId: z.ZodString;
688
- productVersionId: z.ZodUUID;
689
- name: z.ZodString;
690
- kind: z.ZodEnum<{
691
- subscription: "subscription";
692
- credit_pack: "credit_pack";
693
- }>;
694
- merchantPriceId: z.ZodString;
695
- currency: z.ZodString;
696
- amountMinor: z.ZodNumber;
697
- interval: z.ZodEnum<{
698
- month: "month";
699
- year: "year";
700
- one_time: "one_time";
701
- }>;
702
- intervalCount: z.ZodLiteral<1>;
703
- includedCredits: z.ZodString;
704
- creditReset: z.ZodEnum<{
705
- month: "month";
706
- none: "none";
707
- }>;
708
- creditPolicyId: z.ZodString;
709
- available: z.ZodBoolean;
710
- }, z.core.$strict>>;
711
- }, z.core.$strict>;
712
- readonly "customer.commerce.read": z.ZodObject<{
713
- customerId: z.ZodUUID;
714
- revision: z.ZodString;
715
- observedAt: z.ZodISODateTime;
716
- subscriptions: z.ZodArray<z.ZodObject<{
717
- merchantSubscriptionId: z.ZodString;
718
- merchantProductId: z.ZodString;
719
- productVersionId: z.ZodNullable<z.ZodUUID>;
720
- status: z.ZodEnum<{
721
- active: "active";
722
- expired: "expired";
723
- trialing: "trialing";
724
- past_due: "past_due";
725
- cancelled: "cancelled";
726
- }>;
727
- currentPeriodStartsAt: z.ZodNullable<z.ZodISODateTime>;
728
- currentPeriodEndsAt: z.ZodNullable<z.ZodISODateTime>;
729
- cancelAtPeriodEnd: z.ZodBoolean;
730
- scheduledChange: z.ZodNullable<z.ZodObject<{
731
- effectiveAt: z.ZodISODateTime;
732
- merchantProductId: z.ZodString;
733
- }, z.core.$strict>>;
734
- }, z.core.$strict>>;
735
- purchaseHistory: z.ZodObject<{
736
- complete: z.ZodBoolean;
737
- hasPaidPurchase: z.ZodBoolean;
738
- lastPaidAt: z.ZodNullable<z.ZodISODateTime>;
739
- }, z.core.$strict>;
740
- balances: z.ZodArray<z.ZodObject<{
741
- bucketId: z.ZodString;
742
- key: z.ZodString;
743
- available: z.ZodString;
744
- expiresAt: z.ZodNullable<z.ZodISODateTime>;
745
- nextResetAt: z.ZodNullable<z.ZodISODateTime>;
746
- }, z.core.$strict>>;
747
- }, z.core.$strict>;
748
- readonly "presentation.resolve": z.ZodObject<{
749
- nativeUserId: z.ZodString;
750
- presentation: z.ZodNullable<z.ZodObject<{
751
- customerId: z.ZodUUID;
752
- decisionId: z.ZodUUID;
753
- offeringVersionId: z.ZodUUID;
754
- paywallVersionId: z.ZodUUID;
755
- variant: z.ZodString;
756
- }, z.core.$strict>>;
757
- }, z.core.$strict>;
758
- readonly "presentation.report": z.ZodObject<{
759
- queued: z.ZodLiteral<true>;
760
- }, z.core.$strict>;
761
- readonly "purchase.execute": z.ZodDiscriminatedUnion<[z.ZodObject<{
762
- type: z.ZodLiteral<"purchase">;
763
- merchantOrderId: z.ZodNullable<z.ZodString>;
764
- paymentStatus: z.ZodEnum<{
765
- unknown: "unknown";
766
- not_started: "not_started";
767
- pending: "pending";
768
- failed: "failed";
769
- succeeded: "succeeded";
770
- not_required: "not_required";
771
- expired: "expired";
772
- }>;
773
- checkoutUrl: z.ZodNullable<z.ZodURL>;
774
- checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
775
- operationId: z.ZodUUID;
776
- customerId: z.ZodUUID;
777
- merchantExecutionId: z.ZodString;
778
- fulfillmentStatus: z.ZodEnum<{
779
- not_started: "not_started";
780
- pending: "pending";
781
- applied: "applied";
782
- failed: "failed";
783
- not_applicable: "not_applicable";
784
- }>;
785
- recordingStatus: z.ZodEnum<{
786
- pending: "pending";
787
- failed: "failed";
788
- not_ready: "not_ready";
789
- accepted: "accepted";
790
- }>;
791
- updatedAt: z.ZodISODateTime;
792
- problem: z.ZodNullable<z.ZodObject<{
793
- phase: z.ZodEnum<{
794
- payment: "payment";
795
- execution: "execution";
796
- fulfillment: "fulfillment";
797
- recording: "recording";
798
- }>;
799
- code: z.ZodEnum<{
800
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
801
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
802
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
803
- UNAUTHENTICATED: "UNAUTHENTICATED";
804
- FORBIDDEN: "FORBIDDEN";
805
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
806
- INVALID_REQUEST: "INVALID_REQUEST";
807
- NOT_FOUND: "NOT_FOUND";
808
- CONFLICT: "CONFLICT";
809
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
810
- RATE_LIMITED: "RATE_LIMITED";
811
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
812
- NOT_CONFIGURED: "NOT_CONFIGURED";
813
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
814
- INTERNAL_ERROR: "INTERNAL_ERROR";
815
- }>;
816
- reason: z.ZodOptional<z.ZodEnum<{
817
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
818
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
819
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
820
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
821
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
822
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
823
- STATE_CHANGED: "STATE_CHANGED";
824
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
825
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
826
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
827
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
828
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
829
- }>>;
830
- recovery: z.ZodEnum<{
831
- fix_request: "fix_request";
832
- authenticate: "authenticate";
833
- check_permissions: "check_permissions";
834
- check_scope: "check_scope";
835
- resolve_conflict: "resolve_conflict";
836
- reload_state: "reload_state";
837
- retry_same_request: "retry_same_request";
838
- configure_integration: "configure_integration";
839
- check_availability: "check_availability";
840
- upgrade_sdk: "upgrade_sdk";
841
- recover_operation: "recover_operation";
842
- contact_support: "contact_support";
843
- }>;
844
- retryable: z.ZodBoolean;
845
- }, z.core.$strict>>;
846
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
847
- }, z.core.$strict>, z.ZodObject<{
848
- type: z.ZodLiteral<"subscription_change">;
849
- status: z.ZodEnum<{
850
- unknown: "unknown";
851
- pending: "pending";
852
- applied: "applied";
853
- failed: "failed";
854
- scheduled: "scheduled";
855
- }>;
856
- merchantSubscriptionId: z.ZodString;
857
- scheduledFor: z.ZodNullable<z.ZodISODateTime>;
858
- nextAction: z.ZodOptional<z.ZodObject<{
859
- type: z.ZodLiteral<"redirect">;
860
- url: z.ZodURL;
861
- expiresAt: z.ZodISODateTime;
862
- }, z.core.$strict>>;
863
- operationId: z.ZodUUID;
864
- customerId: z.ZodUUID;
865
- merchantExecutionId: z.ZodString;
866
- fulfillmentStatus: z.ZodEnum<{
867
- not_started: "not_started";
868
- pending: "pending";
869
- applied: "applied";
870
- failed: "failed";
871
- not_applicable: "not_applicable";
872
- }>;
873
- recordingStatus: z.ZodEnum<{
874
- pending: "pending";
875
- failed: "failed";
876
- not_ready: "not_ready";
877
- accepted: "accepted";
878
- }>;
879
- updatedAt: z.ZodISODateTime;
880
- problem: z.ZodNullable<z.ZodObject<{
881
- phase: z.ZodEnum<{
882
- payment: "payment";
883
- execution: "execution";
884
- fulfillment: "fulfillment";
885
- recording: "recording";
886
- }>;
887
- code: z.ZodEnum<{
888
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
889
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
890
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
891
- UNAUTHENTICATED: "UNAUTHENTICATED";
892
- FORBIDDEN: "FORBIDDEN";
893
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
894
- INVALID_REQUEST: "INVALID_REQUEST";
895
- NOT_FOUND: "NOT_FOUND";
896
- CONFLICT: "CONFLICT";
897
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
898
- RATE_LIMITED: "RATE_LIMITED";
899
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
900
- NOT_CONFIGURED: "NOT_CONFIGURED";
901
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
902
- INTERNAL_ERROR: "INTERNAL_ERROR";
903
- }>;
904
- reason: z.ZodOptional<z.ZodEnum<{
905
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
906
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
907
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
908
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
909
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
910
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
911
- STATE_CHANGED: "STATE_CHANGED";
912
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
913
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
914
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
915
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
916
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
917
- }>>;
918
- recovery: z.ZodEnum<{
919
- fix_request: "fix_request";
920
- authenticate: "authenticate";
921
- check_permissions: "check_permissions";
922
- check_scope: "check_scope";
923
- resolve_conflict: "resolve_conflict";
924
- reload_state: "reload_state";
925
- retry_same_request: "retry_same_request";
926
- configure_integration: "configure_integration";
927
- check_availability: "check_availability";
928
- upgrade_sdk: "upgrade_sdk";
929
- recover_operation: "recover_operation";
930
- contact_support: "contact_support";
931
- }>;
932
- retryable: z.ZodBoolean;
933
- }, z.core.$strict>>;
934
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
935
- }, z.core.$strict>, z.ZodObject<{
936
- type: z.ZodLiteral<"refund">;
937
- status: z.ZodEnum<{
938
- unknown: "unknown";
939
- pending: "pending";
940
- failed: "failed";
941
- succeeded: "succeeded";
942
- }>;
943
- merchantRefundId: z.ZodNullable<z.ZodString>;
944
- operationId: z.ZodUUID;
945
- customerId: z.ZodUUID;
946
- merchantExecutionId: z.ZodString;
947
- fulfillmentStatus: z.ZodEnum<{
948
- not_started: "not_started";
949
- pending: "pending";
950
- applied: "applied";
951
- failed: "failed";
952
- not_applicable: "not_applicable";
953
- }>;
954
- recordingStatus: z.ZodEnum<{
955
- pending: "pending";
956
- failed: "failed";
957
- not_ready: "not_ready";
958
- accepted: "accepted";
959
- }>;
960
- updatedAt: z.ZodISODateTime;
961
- problem: z.ZodNullable<z.ZodObject<{
962
- phase: z.ZodEnum<{
963
- payment: "payment";
964
- execution: "execution";
965
- fulfillment: "fulfillment";
966
- recording: "recording";
967
- }>;
968
- code: z.ZodEnum<{
969
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
970
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
971
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
972
- UNAUTHENTICATED: "UNAUTHENTICATED";
973
- FORBIDDEN: "FORBIDDEN";
974
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
975
- INVALID_REQUEST: "INVALID_REQUEST";
976
- NOT_FOUND: "NOT_FOUND";
977
- CONFLICT: "CONFLICT";
978
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
979
- RATE_LIMITED: "RATE_LIMITED";
980
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
981
- NOT_CONFIGURED: "NOT_CONFIGURED";
982
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
983
- INTERNAL_ERROR: "INTERNAL_ERROR";
984
- }>;
985
- reason: z.ZodOptional<z.ZodEnum<{
986
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
987
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
988
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
989
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
990
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
991
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
992
- STATE_CHANGED: "STATE_CHANGED";
993
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
994
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
995
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
996
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
997
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
998
- }>>;
999
- recovery: z.ZodEnum<{
1000
- fix_request: "fix_request";
1001
- authenticate: "authenticate";
1002
- check_permissions: "check_permissions";
1003
- check_scope: "check_scope";
1004
- resolve_conflict: "resolve_conflict";
1005
- reload_state: "reload_state";
1006
- retry_same_request: "retry_same_request";
1007
- configure_integration: "configure_integration";
1008
- check_availability: "check_availability";
1009
- upgrade_sdk: "upgrade_sdk";
1010
- recover_operation: "recover_operation";
1011
- contact_support: "contact_support";
1012
- }>;
1013
- retryable: z.ZodBoolean;
1014
- }, z.core.$strict>>;
1015
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1016
- }, z.core.$strict>], "type">;
1017
- readonly "operation.read": z.ZodDiscriminatedUnion<[z.ZodObject<{
1018
- lookup: z.ZodLiteral<"found">;
1019
- operationId: z.ZodUUID;
1020
- customerId: z.ZodUUID;
1021
- execution: z.ZodDiscriminatedUnion<[z.ZodObject<{
1022
- type: z.ZodLiteral<"purchase">;
1023
- merchantOrderId: z.ZodNullable<z.ZodString>;
1024
- paymentStatus: z.ZodEnum<{
1025
- unknown: "unknown";
1026
- not_started: "not_started";
1027
- pending: "pending";
1028
- failed: "failed";
1029
- succeeded: "succeeded";
1030
- not_required: "not_required";
1031
- expired: "expired";
1032
- }>;
1033
- checkoutUrl: z.ZodNullable<z.ZodURL>;
1034
- checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
1035
- operationId: z.ZodUUID;
1036
- customerId: z.ZodUUID;
1037
- merchantExecutionId: z.ZodString;
1038
- fulfillmentStatus: z.ZodEnum<{
1039
- not_started: "not_started";
1040
- pending: "pending";
1041
- applied: "applied";
1042
- failed: "failed";
1043
- not_applicable: "not_applicable";
1044
- }>;
1045
- recordingStatus: z.ZodEnum<{
1046
- pending: "pending";
1047
- failed: "failed";
1048
- not_ready: "not_ready";
1049
- accepted: "accepted";
1050
- }>;
1051
- updatedAt: z.ZodISODateTime;
1052
- problem: z.ZodNullable<z.ZodObject<{
1053
- phase: z.ZodEnum<{
1054
- payment: "payment";
1055
- execution: "execution";
1056
- fulfillment: "fulfillment";
1057
- recording: "recording";
1058
- }>;
1059
- code: z.ZodEnum<{
1060
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1061
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1062
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1063
- UNAUTHENTICATED: "UNAUTHENTICATED";
1064
- FORBIDDEN: "FORBIDDEN";
1065
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1066
- INVALID_REQUEST: "INVALID_REQUEST";
1067
- NOT_FOUND: "NOT_FOUND";
1068
- CONFLICT: "CONFLICT";
1069
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1070
- RATE_LIMITED: "RATE_LIMITED";
1071
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1072
- NOT_CONFIGURED: "NOT_CONFIGURED";
1073
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1074
- INTERNAL_ERROR: "INTERNAL_ERROR";
1075
- }>;
1076
- reason: z.ZodOptional<z.ZodEnum<{
1077
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1078
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1079
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1080
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1081
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1082
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1083
- STATE_CHANGED: "STATE_CHANGED";
1084
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1085
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1086
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1087
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1088
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1089
- }>>;
1090
- recovery: z.ZodEnum<{
1091
- fix_request: "fix_request";
1092
- authenticate: "authenticate";
1093
- check_permissions: "check_permissions";
1094
- check_scope: "check_scope";
1095
- resolve_conflict: "resolve_conflict";
1096
- reload_state: "reload_state";
1097
- retry_same_request: "retry_same_request";
1098
- configure_integration: "configure_integration";
1099
- check_availability: "check_availability";
1100
- upgrade_sdk: "upgrade_sdk";
1101
- recover_operation: "recover_operation";
1102
- contact_support: "contact_support";
1103
- }>;
1104
- retryable: z.ZodBoolean;
1105
- }, z.core.$strict>>;
1106
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1107
- }, z.core.$strict>, z.ZodObject<{
1108
- type: z.ZodLiteral<"subscription_change">;
1109
- status: z.ZodEnum<{
1110
- unknown: "unknown";
1111
- pending: "pending";
1112
- applied: "applied";
1113
- failed: "failed";
1114
- scheduled: "scheduled";
1115
- }>;
1116
- merchantSubscriptionId: z.ZodString;
1117
- scheduledFor: z.ZodNullable<z.ZodISODateTime>;
1118
- nextAction: z.ZodOptional<z.ZodObject<{
1119
- type: z.ZodLiteral<"redirect">;
1120
- url: z.ZodURL;
1121
- expiresAt: z.ZodISODateTime;
1122
- }, z.core.$strict>>;
1123
- operationId: z.ZodUUID;
1124
- customerId: z.ZodUUID;
1125
- merchantExecutionId: z.ZodString;
1126
- fulfillmentStatus: z.ZodEnum<{
1127
- not_started: "not_started";
1128
- pending: "pending";
1129
- applied: "applied";
1130
- failed: "failed";
1131
- not_applicable: "not_applicable";
1132
- }>;
1133
- recordingStatus: z.ZodEnum<{
1134
- pending: "pending";
1135
- failed: "failed";
1136
- not_ready: "not_ready";
1137
- accepted: "accepted";
1138
- }>;
1139
- updatedAt: z.ZodISODateTime;
1140
- problem: z.ZodNullable<z.ZodObject<{
1141
- phase: z.ZodEnum<{
1142
- payment: "payment";
1143
- execution: "execution";
1144
- fulfillment: "fulfillment";
1145
- recording: "recording";
1146
- }>;
1147
- code: z.ZodEnum<{
1148
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1149
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1150
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1151
- UNAUTHENTICATED: "UNAUTHENTICATED";
1152
- FORBIDDEN: "FORBIDDEN";
1153
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1154
- INVALID_REQUEST: "INVALID_REQUEST";
1155
- NOT_FOUND: "NOT_FOUND";
1156
- CONFLICT: "CONFLICT";
1157
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1158
- RATE_LIMITED: "RATE_LIMITED";
1159
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1160
- NOT_CONFIGURED: "NOT_CONFIGURED";
1161
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1162
- INTERNAL_ERROR: "INTERNAL_ERROR";
1163
- }>;
1164
- reason: z.ZodOptional<z.ZodEnum<{
1165
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1166
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1167
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1168
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1169
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1170
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1171
- STATE_CHANGED: "STATE_CHANGED";
1172
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1173
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1174
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1175
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1176
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1177
- }>>;
1178
- recovery: z.ZodEnum<{
1179
- fix_request: "fix_request";
1180
- authenticate: "authenticate";
1181
- check_permissions: "check_permissions";
1182
- check_scope: "check_scope";
1183
- resolve_conflict: "resolve_conflict";
1184
- reload_state: "reload_state";
1185
- retry_same_request: "retry_same_request";
1186
- configure_integration: "configure_integration";
1187
- check_availability: "check_availability";
1188
- upgrade_sdk: "upgrade_sdk";
1189
- recover_operation: "recover_operation";
1190
- contact_support: "contact_support";
1191
- }>;
1192
- retryable: z.ZodBoolean;
1193
- }, z.core.$strict>>;
1194
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1195
- }, z.core.$strict>, z.ZodObject<{
1196
- type: z.ZodLiteral<"refund">;
1197
- status: z.ZodEnum<{
1198
- unknown: "unknown";
1199
- pending: "pending";
1200
- failed: "failed";
1201
- succeeded: "succeeded";
1202
- }>;
1203
- merchantRefundId: z.ZodNullable<z.ZodString>;
1204
- operationId: z.ZodUUID;
1205
- customerId: z.ZodUUID;
1206
- merchantExecutionId: z.ZodString;
1207
- fulfillmentStatus: z.ZodEnum<{
1208
- not_started: "not_started";
1209
- pending: "pending";
1210
- applied: "applied";
1211
- failed: "failed";
1212
- not_applicable: "not_applicable";
1213
- }>;
1214
- recordingStatus: z.ZodEnum<{
1215
- pending: "pending";
1216
- failed: "failed";
1217
- not_ready: "not_ready";
1218
- accepted: "accepted";
1219
- }>;
1220
- updatedAt: z.ZodISODateTime;
1221
- problem: z.ZodNullable<z.ZodObject<{
1222
- phase: z.ZodEnum<{
1223
- payment: "payment";
1224
- execution: "execution";
1225
- fulfillment: "fulfillment";
1226
- recording: "recording";
1227
- }>;
1228
- code: z.ZodEnum<{
1229
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1230
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1231
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1232
- UNAUTHENTICATED: "UNAUTHENTICATED";
1233
- FORBIDDEN: "FORBIDDEN";
1234
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1235
- INVALID_REQUEST: "INVALID_REQUEST";
1236
- NOT_FOUND: "NOT_FOUND";
1237
- CONFLICT: "CONFLICT";
1238
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1239
- RATE_LIMITED: "RATE_LIMITED";
1240
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1241
- NOT_CONFIGURED: "NOT_CONFIGURED";
1242
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1243
- INTERNAL_ERROR: "INTERNAL_ERROR";
1244
- }>;
1245
- reason: z.ZodOptional<z.ZodEnum<{
1246
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1247
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1248
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1249
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1250
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1251
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1252
- STATE_CHANGED: "STATE_CHANGED";
1253
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1254
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1255
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1256
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1257
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1258
- }>>;
1259
- recovery: z.ZodEnum<{
1260
- fix_request: "fix_request";
1261
- authenticate: "authenticate";
1262
- check_permissions: "check_permissions";
1263
- check_scope: "check_scope";
1264
- resolve_conflict: "resolve_conflict";
1265
- reload_state: "reload_state";
1266
- retry_same_request: "retry_same_request";
1267
- configure_integration: "configure_integration";
1268
- check_availability: "check_availability";
1269
- upgrade_sdk: "upgrade_sdk";
1270
- recover_operation: "recover_operation";
1271
- contact_support: "contact_support";
1272
- }>;
1273
- retryable: z.ZodBoolean;
1274
- }, z.core.$strict>>;
1275
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1276
- }, z.core.$strict>], "type">;
1277
- readAt: z.ZodISODateTime;
1278
- }, z.core.$strict>, z.ZodObject<{
1279
- lookup: z.ZodLiteral<"not_received">;
1280
- operationId: z.ZodUUID;
1281
- customerId: z.ZodUUID;
1282
- execution: z.ZodNull;
1283
- readAt: z.ZodISODateTime;
1284
- }, z.core.$strict>], "lookup">;
1285
- readonly "subscription.change": z.ZodDiscriminatedUnion<[z.ZodObject<{
1286
- type: z.ZodLiteral<"purchase">;
1287
- merchantOrderId: z.ZodNullable<z.ZodString>;
1288
- paymentStatus: z.ZodEnum<{
1289
- unknown: "unknown";
1290
- not_started: "not_started";
1291
- pending: "pending";
1292
- failed: "failed";
1293
- succeeded: "succeeded";
1294
- not_required: "not_required";
1295
- expired: "expired";
1296
- }>;
1297
- checkoutUrl: z.ZodNullable<z.ZodURL>;
1298
- checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
1299
- operationId: z.ZodUUID;
1300
- customerId: z.ZodUUID;
1301
- merchantExecutionId: z.ZodString;
1302
- fulfillmentStatus: z.ZodEnum<{
1303
- not_started: "not_started";
1304
- pending: "pending";
1305
- applied: "applied";
1306
- failed: "failed";
1307
- not_applicable: "not_applicable";
1308
- }>;
1309
- recordingStatus: z.ZodEnum<{
1310
- pending: "pending";
1311
- failed: "failed";
1312
- not_ready: "not_ready";
1313
- accepted: "accepted";
1314
- }>;
1315
- updatedAt: z.ZodISODateTime;
1316
- problem: z.ZodNullable<z.ZodObject<{
1317
- phase: z.ZodEnum<{
1318
- payment: "payment";
1319
- execution: "execution";
1320
- fulfillment: "fulfillment";
1321
- recording: "recording";
1322
- }>;
1323
- code: z.ZodEnum<{
1324
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1325
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1326
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1327
- UNAUTHENTICATED: "UNAUTHENTICATED";
1328
- FORBIDDEN: "FORBIDDEN";
1329
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1330
- INVALID_REQUEST: "INVALID_REQUEST";
1331
- NOT_FOUND: "NOT_FOUND";
1332
- CONFLICT: "CONFLICT";
1333
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1334
- RATE_LIMITED: "RATE_LIMITED";
1335
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1336
- NOT_CONFIGURED: "NOT_CONFIGURED";
1337
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1338
- INTERNAL_ERROR: "INTERNAL_ERROR";
1339
- }>;
1340
- reason: z.ZodOptional<z.ZodEnum<{
1341
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1342
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1343
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1344
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1345
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1346
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1347
- STATE_CHANGED: "STATE_CHANGED";
1348
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1349
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1350
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1351
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1352
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1353
- }>>;
1354
- recovery: z.ZodEnum<{
1355
- fix_request: "fix_request";
1356
- authenticate: "authenticate";
1357
- check_permissions: "check_permissions";
1358
- check_scope: "check_scope";
1359
- resolve_conflict: "resolve_conflict";
1360
- reload_state: "reload_state";
1361
- retry_same_request: "retry_same_request";
1362
- configure_integration: "configure_integration";
1363
- check_availability: "check_availability";
1364
- upgrade_sdk: "upgrade_sdk";
1365
- recover_operation: "recover_operation";
1366
- contact_support: "contact_support";
1367
- }>;
1368
- retryable: z.ZodBoolean;
1369
- }, z.core.$strict>>;
1370
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1371
- }, z.core.$strict>, z.ZodObject<{
1372
- type: z.ZodLiteral<"subscription_change">;
1373
- status: z.ZodEnum<{
1374
- unknown: "unknown";
1375
- pending: "pending";
1376
- applied: "applied";
1377
- failed: "failed";
1378
- scheduled: "scheduled";
1379
- }>;
1380
- merchantSubscriptionId: z.ZodString;
1381
- scheduledFor: z.ZodNullable<z.ZodISODateTime>;
1382
- nextAction: z.ZodOptional<z.ZodObject<{
1383
- type: z.ZodLiteral<"redirect">;
1384
- url: z.ZodURL;
1385
- expiresAt: z.ZodISODateTime;
1386
- }, z.core.$strict>>;
1387
- operationId: z.ZodUUID;
1388
- customerId: z.ZodUUID;
1389
- merchantExecutionId: z.ZodString;
1390
- fulfillmentStatus: z.ZodEnum<{
1391
- not_started: "not_started";
1392
- pending: "pending";
1393
- applied: "applied";
1394
- failed: "failed";
1395
- not_applicable: "not_applicable";
1396
- }>;
1397
- recordingStatus: z.ZodEnum<{
1398
- pending: "pending";
1399
- failed: "failed";
1400
- not_ready: "not_ready";
1401
- accepted: "accepted";
1402
- }>;
1403
- updatedAt: z.ZodISODateTime;
1404
- problem: z.ZodNullable<z.ZodObject<{
1405
- phase: z.ZodEnum<{
1406
- payment: "payment";
1407
- execution: "execution";
1408
- fulfillment: "fulfillment";
1409
- recording: "recording";
1410
- }>;
1411
- code: z.ZodEnum<{
1412
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1413
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1414
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1415
- UNAUTHENTICATED: "UNAUTHENTICATED";
1416
- FORBIDDEN: "FORBIDDEN";
1417
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1418
- INVALID_REQUEST: "INVALID_REQUEST";
1419
- NOT_FOUND: "NOT_FOUND";
1420
- CONFLICT: "CONFLICT";
1421
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1422
- RATE_LIMITED: "RATE_LIMITED";
1423
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1424
- NOT_CONFIGURED: "NOT_CONFIGURED";
1425
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1426
- INTERNAL_ERROR: "INTERNAL_ERROR";
1427
- }>;
1428
- reason: z.ZodOptional<z.ZodEnum<{
1429
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1430
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1431
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1432
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1433
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1434
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1435
- STATE_CHANGED: "STATE_CHANGED";
1436
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1437
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1438
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1439
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1440
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1441
- }>>;
1442
- recovery: z.ZodEnum<{
1443
- fix_request: "fix_request";
1444
- authenticate: "authenticate";
1445
- check_permissions: "check_permissions";
1446
- check_scope: "check_scope";
1447
- resolve_conflict: "resolve_conflict";
1448
- reload_state: "reload_state";
1449
- retry_same_request: "retry_same_request";
1450
- configure_integration: "configure_integration";
1451
- check_availability: "check_availability";
1452
- upgrade_sdk: "upgrade_sdk";
1453
- recover_operation: "recover_operation";
1454
- contact_support: "contact_support";
1455
- }>;
1456
- retryable: z.ZodBoolean;
1457
- }, z.core.$strict>>;
1458
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1459
- }, z.core.$strict>, z.ZodObject<{
1460
- type: z.ZodLiteral<"refund">;
1461
- status: z.ZodEnum<{
1462
- unknown: "unknown";
1463
- pending: "pending";
1464
- failed: "failed";
1465
- succeeded: "succeeded";
1466
- }>;
1467
- merchantRefundId: z.ZodNullable<z.ZodString>;
1468
- operationId: z.ZodUUID;
1469
- customerId: z.ZodUUID;
1470
- merchantExecutionId: z.ZodString;
1471
- fulfillmentStatus: z.ZodEnum<{
1472
- not_started: "not_started";
1473
- pending: "pending";
1474
- applied: "applied";
1475
- failed: "failed";
1476
- not_applicable: "not_applicable";
1477
- }>;
1478
- recordingStatus: z.ZodEnum<{
1479
- pending: "pending";
1480
- failed: "failed";
1481
- not_ready: "not_ready";
1482
- accepted: "accepted";
1483
- }>;
1484
- updatedAt: z.ZodISODateTime;
1485
- problem: z.ZodNullable<z.ZodObject<{
1486
- phase: z.ZodEnum<{
1487
- payment: "payment";
1488
- execution: "execution";
1489
- fulfillment: "fulfillment";
1490
- recording: "recording";
1491
- }>;
1492
- code: z.ZodEnum<{
1493
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1494
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1495
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1496
- UNAUTHENTICATED: "UNAUTHENTICATED";
1497
- FORBIDDEN: "FORBIDDEN";
1498
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1499
- INVALID_REQUEST: "INVALID_REQUEST";
1500
- NOT_FOUND: "NOT_FOUND";
1501
- CONFLICT: "CONFLICT";
1502
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1503
- RATE_LIMITED: "RATE_LIMITED";
1504
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1505
- NOT_CONFIGURED: "NOT_CONFIGURED";
1506
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1507
- INTERNAL_ERROR: "INTERNAL_ERROR";
1508
- }>;
1509
- reason: z.ZodOptional<z.ZodEnum<{
1510
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1511
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1512
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1513
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1514
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1515
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1516
- STATE_CHANGED: "STATE_CHANGED";
1517
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1518
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1519
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1520
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1521
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1522
- }>>;
1523
- recovery: z.ZodEnum<{
1524
- fix_request: "fix_request";
1525
- authenticate: "authenticate";
1526
- check_permissions: "check_permissions";
1527
- check_scope: "check_scope";
1528
- resolve_conflict: "resolve_conflict";
1529
- reload_state: "reload_state";
1530
- retry_same_request: "retry_same_request";
1531
- configure_integration: "configure_integration";
1532
- check_availability: "check_availability";
1533
- upgrade_sdk: "upgrade_sdk";
1534
- recover_operation: "recover_operation";
1535
- contact_support: "contact_support";
1536
- }>;
1537
- retryable: z.ZodBoolean;
1538
- }, z.core.$strict>>;
1539
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1540
- }, z.core.$strict>], "type">;
1541
- readonly "refund.execute": z.ZodDiscriminatedUnion<[z.ZodObject<{
1542
- type: z.ZodLiteral<"purchase">;
1543
- merchantOrderId: z.ZodNullable<z.ZodString>;
1544
- paymentStatus: z.ZodEnum<{
1545
- unknown: "unknown";
1546
- not_started: "not_started";
1547
- pending: "pending";
1548
- failed: "failed";
1549
- succeeded: "succeeded";
1550
- not_required: "not_required";
1551
- expired: "expired";
1552
- }>;
1553
- checkoutUrl: z.ZodNullable<z.ZodURL>;
1554
- checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
1555
- operationId: z.ZodUUID;
1556
- customerId: z.ZodUUID;
1557
- merchantExecutionId: z.ZodString;
1558
- fulfillmentStatus: z.ZodEnum<{
1559
- not_started: "not_started";
1560
- pending: "pending";
1561
- applied: "applied";
1562
- failed: "failed";
1563
- not_applicable: "not_applicable";
1564
- }>;
1565
- recordingStatus: z.ZodEnum<{
1566
- pending: "pending";
1567
- failed: "failed";
1568
- not_ready: "not_ready";
1569
- accepted: "accepted";
1570
- }>;
1571
- updatedAt: z.ZodISODateTime;
1572
- problem: z.ZodNullable<z.ZodObject<{
1573
- phase: z.ZodEnum<{
1574
- payment: "payment";
1575
- execution: "execution";
1576
- fulfillment: "fulfillment";
1577
- recording: "recording";
1578
- }>;
1579
- code: z.ZodEnum<{
1580
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1581
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1582
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1583
- UNAUTHENTICATED: "UNAUTHENTICATED";
1584
- FORBIDDEN: "FORBIDDEN";
1585
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1586
- INVALID_REQUEST: "INVALID_REQUEST";
1587
- NOT_FOUND: "NOT_FOUND";
1588
- CONFLICT: "CONFLICT";
1589
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1590
- RATE_LIMITED: "RATE_LIMITED";
1591
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1592
- NOT_CONFIGURED: "NOT_CONFIGURED";
1593
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1594
- INTERNAL_ERROR: "INTERNAL_ERROR";
1595
- }>;
1596
- reason: z.ZodOptional<z.ZodEnum<{
1597
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1598
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1599
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1600
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1601
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1602
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1603
- STATE_CHANGED: "STATE_CHANGED";
1604
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1605
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1606
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1607
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1608
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1609
- }>>;
1610
- recovery: z.ZodEnum<{
1611
- fix_request: "fix_request";
1612
- authenticate: "authenticate";
1613
- check_permissions: "check_permissions";
1614
- check_scope: "check_scope";
1615
- resolve_conflict: "resolve_conflict";
1616
- reload_state: "reload_state";
1617
- retry_same_request: "retry_same_request";
1618
- configure_integration: "configure_integration";
1619
- check_availability: "check_availability";
1620
- upgrade_sdk: "upgrade_sdk";
1621
- recover_operation: "recover_operation";
1622
- contact_support: "contact_support";
1623
- }>;
1624
- retryable: z.ZodBoolean;
1625
- }, z.core.$strict>>;
1626
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1627
- }, z.core.$strict>, z.ZodObject<{
1628
- type: z.ZodLiteral<"subscription_change">;
1629
- status: z.ZodEnum<{
1630
- unknown: "unknown";
1631
- pending: "pending";
1632
- applied: "applied";
1633
- failed: "failed";
1634
- scheduled: "scheduled";
1635
- }>;
1636
- merchantSubscriptionId: z.ZodString;
1637
- scheduledFor: z.ZodNullable<z.ZodISODateTime>;
1638
- nextAction: z.ZodOptional<z.ZodObject<{
1639
- type: z.ZodLiteral<"redirect">;
1640
- url: z.ZodURL;
1641
- expiresAt: z.ZodISODateTime;
1642
- }, z.core.$strict>>;
1643
- operationId: z.ZodUUID;
1644
- customerId: z.ZodUUID;
1645
- merchantExecutionId: z.ZodString;
1646
- fulfillmentStatus: z.ZodEnum<{
1647
- not_started: "not_started";
1648
- pending: "pending";
1649
- applied: "applied";
1650
- failed: "failed";
1651
- not_applicable: "not_applicable";
1652
- }>;
1653
- recordingStatus: z.ZodEnum<{
1654
- pending: "pending";
1655
- failed: "failed";
1656
- not_ready: "not_ready";
1657
- accepted: "accepted";
1658
- }>;
1659
- updatedAt: z.ZodISODateTime;
1660
- problem: z.ZodNullable<z.ZodObject<{
1661
- phase: z.ZodEnum<{
1662
- payment: "payment";
1663
- execution: "execution";
1664
- fulfillment: "fulfillment";
1665
- recording: "recording";
1666
- }>;
1667
- code: z.ZodEnum<{
1668
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1669
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1670
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1671
- UNAUTHENTICATED: "UNAUTHENTICATED";
1672
- FORBIDDEN: "FORBIDDEN";
1673
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1674
- INVALID_REQUEST: "INVALID_REQUEST";
1675
- NOT_FOUND: "NOT_FOUND";
1676
- CONFLICT: "CONFLICT";
1677
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1678
- RATE_LIMITED: "RATE_LIMITED";
1679
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1680
- NOT_CONFIGURED: "NOT_CONFIGURED";
1681
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1682
- INTERNAL_ERROR: "INTERNAL_ERROR";
1683
- }>;
1684
- reason: z.ZodOptional<z.ZodEnum<{
1685
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1686
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1687
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1688
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1689
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1690
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1691
- STATE_CHANGED: "STATE_CHANGED";
1692
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1693
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1694
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1695
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1696
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1697
- }>>;
1698
- recovery: z.ZodEnum<{
1699
- fix_request: "fix_request";
1700
- authenticate: "authenticate";
1701
- check_permissions: "check_permissions";
1702
- check_scope: "check_scope";
1703
- resolve_conflict: "resolve_conflict";
1704
- reload_state: "reload_state";
1705
- retry_same_request: "retry_same_request";
1706
- configure_integration: "configure_integration";
1707
- check_availability: "check_availability";
1708
- upgrade_sdk: "upgrade_sdk";
1709
- recover_operation: "recover_operation";
1710
- contact_support: "contact_support";
1711
- }>;
1712
- retryable: z.ZodBoolean;
1713
- }, z.core.$strict>>;
1714
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1715
- }, z.core.$strict>, z.ZodObject<{
1716
- type: z.ZodLiteral<"refund">;
1717
- status: z.ZodEnum<{
1718
- unknown: "unknown";
1719
- pending: "pending";
1720
- failed: "failed";
1721
- succeeded: "succeeded";
1722
- }>;
1723
- merchantRefundId: z.ZodNullable<z.ZodString>;
1724
- operationId: z.ZodUUID;
1725
- customerId: z.ZodUUID;
1726
- merchantExecutionId: z.ZodString;
1727
- fulfillmentStatus: z.ZodEnum<{
1728
- not_started: "not_started";
1729
- pending: "pending";
1730
- applied: "applied";
1731
- failed: "failed";
1732
- not_applicable: "not_applicable";
1733
- }>;
1734
- recordingStatus: z.ZodEnum<{
1735
- pending: "pending";
1736
- failed: "failed";
1737
- not_ready: "not_ready";
1738
- accepted: "accepted";
1739
- }>;
1740
- updatedAt: z.ZodISODateTime;
1741
- problem: z.ZodNullable<z.ZodObject<{
1742
- phase: z.ZodEnum<{
1743
- payment: "payment";
1744
- execution: "execution";
1745
- fulfillment: "fulfillment";
1746
- recording: "recording";
1747
- }>;
1748
- code: z.ZodEnum<{
1749
- INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1750
- UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1751
- PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1752
- UNAUTHENTICATED: "UNAUTHENTICATED";
1753
- FORBIDDEN: "FORBIDDEN";
1754
- SCOPE_MISMATCH: "SCOPE_MISMATCH";
1755
- INVALID_REQUEST: "INVALID_REQUEST";
1756
- NOT_FOUND: "NOT_FOUND";
1757
- CONFLICT: "CONFLICT";
1758
- PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1759
- RATE_LIMITED: "RATE_LIMITED";
1760
- SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1761
- NOT_CONFIGURED: "NOT_CONFIGURED";
1762
- CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1763
- INTERNAL_ERROR: "INTERNAL_ERROR";
1764
- }>;
1765
- reason: z.ZodOptional<z.ZodEnum<{
1766
- CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1767
- INTEGRATION_MISSING: "INTEGRATION_MISSING";
1768
- PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1769
- PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1770
- IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1771
- RESULT_UNKNOWN: "RESULT_UNKNOWN";
1772
- STATE_CHANGED: "STATE_CHANGED";
1773
- IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
1774
- CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
1775
- RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
1776
- OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1777
- FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1778
- }>>;
1779
- recovery: z.ZodEnum<{
1780
- fix_request: "fix_request";
1781
- authenticate: "authenticate";
1782
- check_permissions: "check_permissions";
1783
- check_scope: "check_scope";
1784
- resolve_conflict: "resolve_conflict";
1785
- reload_state: "reload_state";
1786
- retry_same_request: "retry_same_request";
1787
- configure_integration: "configure_integration";
1788
- check_availability: "check_availability";
1789
- upgrade_sdk: "upgrade_sdk";
1790
- recover_operation: "recover_operation";
1791
- contact_support: "contact_support";
1792
- }>;
1793
- retryable: z.ZodBoolean;
1794
- }, z.core.$strict>>;
1795
- pollAfterMs: z.ZodNullable<z.ZodNumber>;
1796
- }, z.core.$strict>], "type">;
1797
- };
1798
- declare const merchantBridgeRequestSchema: z.ZodObject<{
1799
- bridgeVersion: z.ZodLiteral<3>;
1800
- requestId: z.ZodUUID;
1801
- scope: z.ZodObject<{
1802
- projectId: z.ZodUUID;
1803
- environmentId: z.ZodUUID;
1804
- environment: z.ZodEnum<{
1805
- sandbox: "sandbox";
1806
- live: "live";
1807
- }>;
1808
- }, z.core.$strict>;
1809
- command: z.ZodEnum<{
1810
- "session.create": "session.create";
1811
- "catalog.read": "catalog.read";
1812
- "customer.commerce.read": "customer.commerce.read";
1813
- "presentation.resolve": "presentation.resolve";
1814
- "presentation.report": "presentation.report";
1815
- "purchase.execute": "purchase.execute";
1816
- "operation.read": "operation.read";
1817
- "subscription.change": "subscription.change";
1818
- "refund.execute": "refund.execute";
1819
- "bridge.ping": "bridge.ping";
1820
- "bridge.describe": "bridge.describe";
1821
- }>;
1822
- data: z.ZodUnknown;
1823
- }, z.core.$strict>;
1824
- type MerchantBridgeRequest = z.infer<typeof merchantBridgeRequestSchema>;
1825
-
1826
- declare const funnelConfigurationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1827
- evaluationMode: z.ZodLiteral<"local">;
1828
- growth: z.ZodObject<{
1829
- scope: z.ZodObject<{
1830
- projectId: z.ZodString;
1831
- environment: z.ZodEnum<{
1832
- sandbox: "sandbox";
1833
- live: "live";
1834
- }>;
1835
- }, z.core.$strict>;
1836
- generation: z.ZodString;
1837
- evaluatedAt: z.ZodISODateTime;
1838
- expiresAt: z.ZodNullable<z.ZodISODateTime>;
1839
- features: z.ZodRecord<z.ZodString, z.ZodObject<{
1840
- defaultValue: z.ZodOptional<z.ZodJSONSchema>;
1841
- rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1842
- id: z.ZodOptional<z.ZodString>;
1843
- force: z.ZodOptional<z.ZodJSONSchema>;
1844
- variations: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
1845
- key: z.ZodOptional<z.ZodString>;
1846
- range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1847
- tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1848
- experiment: z.ZodObject<{
1849
- key: z.ZodString;
1850
- variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
1851
- urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1852
- include: z.ZodBoolean;
1853
- type: z.ZodEnum<{
1854
- regex: "regex";
1855
- simple: "simple";
1856
- }>;
1857
- pattern: z.ZodString;
1858
- }, z.core.$strict>>>;
1859
- force: z.ZodOptional<z.ZodNumber>;
1860
- active: z.ZodOptional<z.ZodBoolean>;
1861
- persistQueryString: z.ZodOptional<z.ZodBoolean>;
1862
- condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1863
- parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1864
- id: z.ZodString;
1865
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1866
- gate: z.ZodOptional<z.ZodBoolean>;
1867
- }, z.core.$strict>>>;
1868
- weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1869
- coverage: z.ZodOptional<z.ZodNumber>;
1870
- hashAttribute: z.ZodOptional<z.ZodString>;
1871
- fallbackAttribute: z.ZodOptional<z.ZodString>;
1872
- hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1873
- disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1874
- bucketVersion: z.ZodOptional<z.ZodNumber>;
1875
- minBucketVersion: z.ZodOptional<z.ZodNumber>;
1876
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1877
- attribute: z.ZodOptional<z.ZodString>;
1878
- seed: z.ZodString;
1879
- hashVersion: z.ZodLiteral<2>;
1880
- ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1881
- }, z.core.$strict>>>;
1882
- ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1883
- meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1884
- key: z.ZodOptional<z.ZodString>;
1885
- name: z.ZodOptional<z.ZodString>;
1886
- passthrough: z.ZodOptional<z.ZodBoolean>;
1887
- }, z.core.$strict>>>;
1888
- seed: z.ZodOptional<z.ZodString>;
1889
- name: z.ZodOptional<z.ZodString>;
1890
- phase: z.ZodOptional<z.ZodString>;
1891
- }, z.core.$strict>;
1892
- result: z.ZodObject<{
1893
- value: z.ZodJSONSchema;
1894
- variationId: z.ZodNumber;
1895
- key: z.ZodString;
1896
- name: z.ZodOptional<z.ZodString>;
1897
- bucket: z.ZodOptional<z.ZodNumber>;
1898
- passthrough: z.ZodOptional<z.ZodBoolean>;
1899
- inExperiment: z.ZodBoolean;
1900
- hashUsed: z.ZodOptional<z.ZodBoolean>;
1901
- hashAttribute: z.ZodString;
1902
- hashValue: z.ZodString;
1903
- featureId: z.ZodNullable<z.ZodString>;
1904
- stickyBucketUsed: z.ZodOptional<z.ZodBoolean>;
1905
- }, z.core.$strict>;
1906
- }, z.core.$strict>>>;
1907
- condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1908
- parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1909
- id: z.ZodString;
1910
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1911
- gate: z.ZodOptional<z.ZodBoolean>;
1912
- }, z.core.$strict>>>;
1913
- weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1914
- coverage: z.ZodOptional<z.ZodNumber>;
1915
- hashAttribute: z.ZodOptional<z.ZodString>;
1916
- fallbackAttribute: z.ZodOptional<z.ZodString>;
1917
- hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1918
- disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1919
- bucketVersion: z.ZodOptional<z.ZodNumber>;
1920
- minBucketVersion: z.ZodOptional<z.ZodNumber>;
1921
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1922
- attribute: z.ZodOptional<z.ZodString>;
1923
- seed: z.ZodString;
1924
- hashVersion: z.ZodLiteral<2>;
1925
- ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1926
- }, z.core.$strict>>>;
1927
- ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1928
- meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1929
- key: z.ZodOptional<z.ZodString>;
1930
- name: z.ZodOptional<z.ZodString>;
1931
- passthrough: z.ZodOptional<z.ZodBoolean>;
1932
- }, z.core.$strict>>>;
1933
- seed: z.ZodOptional<z.ZodString>;
1934
- name: z.ZodOptional<z.ZodString>;
1935
- phase: z.ZodOptional<z.ZodString>;
1936
- }, z.core.$strict>>>;
1937
- }, z.core.$strict>>;
1938
- savedGroups: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1939
- type: z.ZodLiteral<"hashed">;
1940
- attributeKey: z.ZodString;
1941
- values: z.ZodArray<z.ZodString>;
1942
- }, z.core.$strict>, z.ZodObject<{
1943
- type: z.ZodLiteral<"list">;
1944
- attributeKey: z.ZodString;
1945
- values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1946
- }, z.core.$strict>, z.ZodObject<{
1947
- type: z.ZodLiteral<"condition">;
1948
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1949
- }, z.core.$strict>]>>;
1950
- experiments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
1951
- key: z.ZodString;
1952
- variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
1953
- urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1954
- include: z.ZodBoolean;
1955
- type: z.ZodEnum<{
1956
- regex: "regex";
1957
- simple: "simple";
1958
- }>;
1959
- pattern: z.ZodString;
1960
- }, z.core.$strict>>>;
1961
- force: z.ZodOptional<z.ZodNumber>;
1962
- active: z.ZodOptional<z.ZodBoolean>;
1963
- persistQueryString: z.ZodOptional<z.ZodBoolean>;
1964
- condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1965
- parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1966
- id: z.ZodString;
1967
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1968
- gate: z.ZodOptional<z.ZodBoolean>;
1969
- }, z.core.$strict>>>;
1970
- weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1971
- coverage: z.ZodOptional<z.ZodNumber>;
1972
- hashAttribute: z.ZodOptional<z.ZodString>;
1973
- fallbackAttribute: z.ZodOptional<z.ZodString>;
1974
- hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1975
- disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1976
- bucketVersion: z.ZodOptional<z.ZodNumber>;
1977
- minBucketVersion: z.ZodOptional<z.ZodNumber>;
1978
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1979
- attribute: z.ZodOptional<z.ZodString>;
1980
- seed: z.ZodString;
1981
- hashVersion: z.ZodLiteral<2>;
1982
- ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1983
- }, z.core.$strict>>>;
1984
- ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1985
- meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1986
- key: z.ZodOptional<z.ZodString>;
1987
- name: z.ZodOptional<z.ZodString>;
1988
- passthrough: z.ZodOptional<z.ZodBoolean>;
1989
- }, z.core.$strict>>>;
1990
- seed: z.ZodOptional<z.ZodString>;
1991
- name: z.ZodOptional<z.ZodString>;
1992
- phase: z.ZodOptional<z.ZodString>;
1993
- }, z.core.$strict>>;
1994
- }, z.core.$strict>;
1995
- conditions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1996
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1997
- port: z.ZodString;
1998
- }, z.core.$strict>>>;
1999
- scope: z.ZodObject<{
2000
- projectId: z.ZodString;
2001
- environment: z.ZodEnum<{
2002
- sandbox: "sandbox";
2003
- live: "live";
2004
- }>;
2005
- }, z.core.$strict>;
2006
- funnelId: z.ZodUUID;
2007
- versionId: z.ZodUUID;
2008
- evaluationRevision: z.ZodNumber;
2009
- expiresAt: z.ZodNullable<z.ZodISODateTime>;
2010
- topology: z.ZodObject<{
2011
- entry: z.ZodString;
2012
- nodes: z.ZodArray<z.ZodObject<{
2013
- id: z.ZodString;
2014
- type: z.ZodEnum<{
2015
- output: "output";
2016
- action: "action";
2017
- screen: "screen";
2018
- end: "end";
2019
- coupon: "coupon";
2020
- split: "split";
2021
- feature: "feature";
2022
- condition: "condition";
2023
- entry: "entry";
2024
- offering: "offering";
2025
- coupons: "coupons";
2026
- external_page: "external_page";
2027
- wait: "wait";
2028
- }>;
2029
- outputs: z.ZodRecord<z.ZodString, z.ZodString>;
2030
- writes: z.ZodRecord<z.ZodString, z.ZodString>;
2031
- resources: z.ZodObject<{
2032
- screenId: z.ZodOptional<z.ZodString>;
2033
- paywallVersionId: z.ZodOptional<z.ZodUUID>;
2034
- couponId: z.ZodOptional<z.ZodUUID>;
2035
- couponIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2036
- experimentId: z.ZodOptional<z.ZodUUID>;
2037
- featureKey: z.ZodOptional<z.ZodString>;
2038
- offeringVersionId: z.ZodOptional<z.ZodUUID>;
2039
- }, z.core.$strict>;
2040
- }, z.core.$strict>>;
2041
- }, z.core.$strict>;
2042
- }, z.core.$strict>, z.ZodObject<{
2043
- evaluationMode: z.ZodLiteral<"remote">;
2044
- scope: z.ZodObject<{
2045
- projectId: z.ZodString;
2046
- environment: z.ZodEnum<{
2047
- sandbox: "sandbox";
2048
- live: "live";
2049
- }>;
2050
- }, z.core.$strict>;
2051
- funnelId: z.ZodUUID;
2052
- versionId: z.ZodUUID;
2053
- evaluationRevision: z.ZodNumber;
2054
- expiresAt: z.ZodNullable<z.ZodISODateTime>;
2055
- topology: z.ZodObject<{
2056
- entry: z.ZodString;
2057
- nodes: z.ZodArray<z.ZodObject<{
2058
- id: z.ZodString;
2059
- type: z.ZodEnum<{
2060
- output: "output";
2061
- action: "action";
2062
- screen: "screen";
2063
- end: "end";
2064
- coupon: "coupon";
2065
- split: "split";
2066
- feature: "feature";
2067
- condition: "condition";
2068
- entry: "entry";
2069
- offering: "offering";
2070
- coupons: "coupons";
2071
- external_page: "external_page";
2072
- wait: "wait";
2073
- }>;
2074
- outputs: z.ZodRecord<z.ZodString, z.ZodString>;
2075
- writes: z.ZodRecord<z.ZodString, z.ZodString>;
2076
- resources: z.ZodObject<{
2077
- screenId: z.ZodOptional<z.ZodString>;
2078
- paywallVersionId: z.ZodOptional<z.ZodUUID>;
2079
- couponId: z.ZodOptional<z.ZodUUID>;
2080
- couponIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2081
- experimentId: z.ZodOptional<z.ZodUUID>;
2082
- featureKey: z.ZodOptional<z.ZodString>;
2083
- offeringVersionId: z.ZodOptional<z.ZodUUID>;
2084
- }, z.core.$strict>;
2085
- }, z.core.$strict>>;
2086
- }, z.core.$strict>;
2087
- }, z.core.$strict>], "evaluationMode">;
2088
- type FunnelConfiguration = z.infer<typeof funnelConfigurationSchema>;
2089
- /** Dedicated pure-evaluation delivery; existing configuration responses retain their exact contract. */
2090
- declare const funnelLocalConfigurationSchema: z.ZodObject<{
2091
- evaluationMode: z.ZodLiteral<"local">;
2092
- growth: z.ZodObject<{
2093
- scope: z.ZodObject<{
2094
- projectId: z.ZodString;
2095
- environment: z.ZodEnum<{
2096
- sandbox: "sandbox";
2097
- live: "live";
2098
- }>;
2099
- }, z.core.$strict>;
2100
- generation: z.ZodString;
2101
- evaluatedAt: z.ZodISODateTime;
2102
- expiresAt: z.ZodNullable<z.ZodISODateTime>;
2103
- features: z.ZodRecord<z.ZodString, z.ZodObject<{
2104
- defaultValue: z.ZodOptional<z.ZodJSONSchema>;
2105
- rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2106
- id: z.ZodOptional<z.ZodString>;
2107
- force: z.ZodOptional<z.ZodJSONSchema>;
2108
- variations: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
2109
- key: z.ZodOptional<z.ZodString>;
2110
- range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
2111
- tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2112
- experiment: z.ZodObject<{
2113
- key: z.ZodString;
2114
- variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
2115
- urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
2116
- include: z.ZodBoolean;
2117
- type: z.ZodEnum<{
2118
- regex: "regex";
2119
- simple: "simple";
2120
- }>;
2121
- pattern: z.ZodString;
2122
- }, z.core.$strict>>>;
2123
- force: z.ZodOptional<z.ZodNumber>;
2124
- active: z.ZodOptional<z.ZodBoolean>;
2125
- persistQueryString: z.ZodOptional<z.ZodBoolean>;
2126
- condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2127
- parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2128
- id: z.ZodString;
2129
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2130
- gate: z.ZodOptional<z.ZodBoolean>;
2131
- }, z.core.$strict>>>;
2132
- weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2133
- coverage: z.ZodOptional<z.ZodNumber>;
2134
- hashAttribute: z.ZodOptional<z.ZodString>;
2135
- fallbackAttribute: z.ZodOptional<z.ZodString>;
2136
- hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
2137
- disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
2138
- bucketVersion: z.ZodOptional<z.ZodNumber>;
2139
- minBucketVersion: z.ZodOptional<z.ZodNumber>;
2140
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2141
- attribute: z.ZodOptional<z.ZodString>;
2142
- seed: z.ZodString;
2143
- hashVersion: z.ZodLiteral<2>;
2144
- ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
2145
- }, z.core.$strict>>>;
2146
- ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
2147
- meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
2148
- key: z.ZodOptional<z.ZodString>;
2149
- name: z.ZodOptional<z.ZodString>;
2150
- passthrough: z.ZodOptional<z.ZodBoolean>;
2151
- }, z.core.$strict>>>;
2152
- seed: z.ZodOptional<z.ZodString>;
2153
- name: z.ZodOptional<z.ZodString>;
2154
- phase: z.ZodOptional<z.ZodString>;
2155
- }, z.core.$strict>;
2156
- result: z.ZodObject<{
2157
- value: z.ZodJSONSchema;
2158
- variationId: z.ZodNumber;
2159
- key: z.ZodString;
2160
- name: z.ZodOptional<z.ZodString>;
2161
- bucket: z.ZodOptional<z.ZodNumber>;
2162
- passthrough: z.ZodOptional<z.ZodBoolean>;
2163
- inExperiment: z.ZodBoolean;
2164
- hashUsed: z.ZodOptional<z.ZodBoolean>;
2165
- hashAttribute: z.ZodString;
2166
- hashValue: z.ZodString;
2167
- featureId: z.ZodNullable<z.ZodString>;
2168
- stickyBucketUsed: z.ZodOptional<z.ZodBoolean>;
2169
- }, z.core.$strict>;
2170
- }, z.core.$strict>>>;
2171
- condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2172
- parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2173
- id: z.ZodString;
2174
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2175
- gate: z.ZodOptional<z.ZodBoolean>;
2176
- }, z.core.$strict>>>;
2177
- weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2178
- coverage: z.ZodOptional<z.ZodNumber>;
2179
- hashAttribute: z.ZodOptional<z.ZodString>;
2180
- fallbackAttribute: z.ZodOptional<z.ZodString>;
2181
- hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
2182
- disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
2183
- bucketVersion: z.ZodOptional<z.ZodNumber>;
2184
- minBucketVersion: z.ZodOptional<z.ZodNumber>;
2185
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2186
- attribute: z.ZodOptional<z.ZodString>;
2187
- seed: z.ZodString;
2188
- hashVersion: z.ZodLiteral<2>;
2189
- ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
2190
- }, z.core.$strict>>>;
2191
- ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
2192
- meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
2193
- key: z.ZodOptional<z.ZodString>;
2194
- name: z.ZodOptional<z.ZodString>;
2195
- passthrough: z.ZodOptional<z.ZodBoolean>;
2196
- }, z.core.$strict>>>;
2197
- seed: z.ZodOptional<z.ZodString>;
2198
- name: z.ZodOptional<z.ZodString>;
2199
- phase: z.ZodOptional<z.ZodString>;
2200
- }, z.core.$strict>>>;
2201
- }, z.core.$strict>>;
2202
- savedGroups: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
2203
- type: z.ZodLiteral<"hashed">;
2204
- attributeKey: z.ZodString;
2205
- values: z.ZodArray<z.ZodString>;
2206
- }, z.core.$strict>, z.ZodObject<{
2207
- type: z.ZodLiteral<"list">;
2208
- attributeKey: z.ZodString;
2209
- values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2210
- }, z.core.$strict>, z.ZodObject<{
2211
- type: z.ZodLiteral<"condition">;
2212
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2213
- }, z.core.$strict>]>>;
2214
- experiments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
2215
- key: z.ZodString;
2216
- variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
2217
- urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
2218
- include: z.ZodBoolean;
2219
- type: z.ZodEnum<{
2220
- regex: "regex";
2221
- simple: "simple";
2222
- }>;
2223
- pattern: z.ZodString;
2224
- }, z.core.$strict>>>;
2225
- force: z.ZodOptional<z.ZodNumber>;
2226
- active: z.ZodOptional<z.ZodBoolean>;
2227
- persistQueryString: z.ZodOptional<z.ZodBoolean>;
2228
- condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
2229
- parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2230
- id: z.ZodString;
2231
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2232
- gate: z.ZodOptional<z.ZodBoolean>;
2233
- }, z.core.$strict>>>;
2234
- weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
2235
- coverage: z.ZodOptional<z.ZodNumber>;
2236
- hashAttribute: z.ZodOptional<z.ZodString>;
2237
- fallbackAttribute: z.ZodOptional<z.ZodString>;
2238
- hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
2239
- disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
2240
- bucketVersion: z.ZodOptional<z.ZodNumber>;
2241
- minBucketVersion: z.ZodOptional<z.ZodNumber>;
2242
- filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2243
- attribute: z.ZodOptional<z.ZodString>;
2244
- seed: z.ZodString;
2245
- hashVersion: z.ZodLiteral<2>;
2246
- ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
2247
- }, z.core.$strict>>>;
2248
- ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
2249
- meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
2250
- key: z.ZodOptional<z.ZodString>;
2251
- name: z.ZodOptional<z.ZodString>;
2252
- passthrough: z.ZodOptional<z.ZodBoolean>;
2253
- }, z.core.$strict>>>;
2254
- seed: z.ZodOptional<z.ZodString>;
2255
- name: z.ZodOptional<z.ZodString>;
2256
- phase: z.ZodOptional<z.ZodString>;
2257
- }, z.core.$strict>>;
2258
- }, z.core.$strict>;
2259
- conditions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2260
- condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
2261
- port: z.ZodString;
2262
- }, z.core.$strict>>>;
2263
- scope: z.ZodObject<{
2264
- projectId: z.ZodString;
2265
- environment: z.ZodEnum<{
2266
- sandbox: "sandbox";
2267
- live: "live";
2268
- }>;
2269
- }, z.core.$strict>;
2270
- funnelId: z.ZodUUID;
2271
- versionId: z.ZodUUID;
2272
- evaluationRevision: z.ZodNumber;
2273
- expiresAt: z.ZodNullable<z.ZodISODateTime>;
2274
- topology: z.ZodObject<{
2275
- entry: z.ZodString;
2276
- nodes: z.ZodArray<z.ZodObject<{
2277
- id: z.ZodString;
2278
- type: z.ZodEnum<{
2279
- output: "output";
2280
- action: "action";
2281
- screen: "screen";
2282
- end: "end";
2283
- coupon: "coupon";
2284
- split: "split";
2285
- feature: "feature";
2286
- condition: "condition";
2287
- entry: "entry";
2288
- offering: "offering";
2289
- coupons: "coupons";
2290
- external_page: "external_page";
2291
- wait: "wait";
2292
- }>;
2293
- outputs: z.ZodRecord<z.ZodString, z.ZodString>;
2294
- writes: z.ZodRecord<z.ZodString, z.ZodString>;
2295
- resources: z.ZodObject<{
2296
- screenId: z.ZodOptional<z.ZodString>;
2297
- paywallVersionId: z.ZodOptional<z.ZodUUID>;
2298
- couponId: z.ZodOptional<z.ZodUUID>;
2299
- couponIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2300
- experimentId: z.ZodOptional<z.ZodUUID>;
2301
- featureKey: z.ZodOptional<z.ZodString>;
2302
- offeringVersionId: z.ZodOptional<z.ZodUUID>;
2303
- }, z.core.$strict>;
2304
- }, z.core.$strict>>;
2305
- }, z.core.$strict>;
2306
- evaluation: z.ZodObject<{
2307
- maxTransitions: z.ZodNumber;
2308
- variables: z.ZodRecord<z.ZodString, z.ZodObject<{
2309
- nullable: z.ZodBoolean;
2310
- enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2311
- type: z.ZodEnum<{
2312
- string: "string";
2313
- number: "number";
2314
- boolean: "boolean";
2315
- array: "array";
2316
- strings: "strings";
2317
- json: "json";
2318
- offering_version: "offering_version";
2319
- reward: "reward";
2320
- paywall_version: "paywall_version";
2321
- }>;
2322
- items: z.ZodOptional<z.ZodObject<{
2323
- type: z.ZodEnum<{
2324
- string: "string";
2325
- number: "number";
2326
- boolean: "boolean";
2327
- strings: "strings";
2328
- json: "json";
2329
- offering_version: "offering_version";
2330
- reward: "reward";
2331
- paywall_version: "paywall_version";
2332
- }>;
2333
- nullable: z.ZodBoolean;
2334
- enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2335
- }, z.core.$strict>>;
2336
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2337
- type: z.ZodLiteral<"input">;
2338
- }, z.core.$strict>, z.ZodObject<{
2339
- type: z.ZodLiteral<"node">;
2340
- }, z.core.$strict>, z.ZodObject<{
2341
- type: z.ZodEnum<{
2342
- attribute: "attribute";
2343
- parameter: "parameter";
2344
- }>;
2345
- key: z.ZodString;
2346
- }, z.core.$strict>], "type">;
2347
- }, z.core.$strict>>;
2348
- outputSchema: z.ZodObject<{
2349
- nullable: z.ZodBoolean;
2350
- enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2351
- type: z.ZodEnum<{
2352
- string: "string";
2353
- number: "number";
2354
- boolean: "boolean";
2355
- array: "array";
2356
- strings: "strings";
2357
- json: "json";
2358
- offering_version: "offering_version";
2359
- reward: "reward";
2360
- paywall_version: "paywall_version";
2361
- }>;
2362
- items: z.ZodOptional<z.ZodObject<{
2363
- type: z.ZodEnum<{
2364
- string: "string";
2365
- number: "number";
2366
- boolean: "boolean";
2367
- strings: "strings";
2368
- json: "json";
2369
- offering_version: "offering_version";
2370
- reward: "reward";
2371
- paywall_version: "paywall_version";
2372
- }>;
2373
- nullable: z.ZodBoolean;
2374
- enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2375
- }, z.core.$strict>>;
2376
- }, z.core.$strict>;
2377
- terminals: z.ZodRecord<z.ZodString, z.ZodObject<{
2378
- outcome: z.ZodEnum<{
2379
- failed: "failed";
2380
- completed: "completed";
2381
- closed: "closed";
2382
- ineligible: "ineligible";
2383
- }>;
2384
- output: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2385
- type: z.ZodLiteral<"literal">;
2386
- value: z.ZodJSONSchema;
2387
- }, z.core.$strict>, z.ZodObject<{
2388
- type: z.ZodLiteral<"variable">;
2389
- key: z.ZodString;
2390
- path: z.ZodOptional<z.ZodString>;
2391
- }, z.core.$strict>, z.ZodObject<{
2392
- type: z.ZodLiteral<"feature">;
2393
- featureKey: z.ZodString;
2394
- }, z.core.$strict>], "type">>;
2395
- }, z.core.$strict>>;
2396
- }, z.core.$strict>;
2397
- }, z.core.$strict>;
2398
- type FunnelLocalConfiguration = z.infer<typeof funnelLocalConfigurationSchema>;
2399
-
2400
- /** A check observes access. Consumption and reservations remain explicit server operations. */
2401
- declare const entitlementRequirementSchema: z.ZodObject<{
2402
- internal_feature_id: z.ZodUUID;
2403
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2404
- properties: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodTransform<{
2405
- [k: string]: string;
2406
- }, Record<string, string | number | boolean>>>;
2407
- entityId: z.ZodOptional<z.ZodUUID>;
2408
- }, z.core.$strict>;
2409
- declare const entitlementCheckInputSchema: z.ZodObject<{
2410
- requirement: z.ZodObject<{
2411
- internal_feature_id: z.ZodUUID;
2412
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2413
- properties: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodTransform<{
2414
- [k: string]: string;
2415
- }, Record<string, string | number | boolean>>>;
2416
- entityId: z.ZodOptional<z.ZodUUID>;
2417
- }, z.core.$strict>;
2418
- commerce: z.ZodOptional<z.ZodObject<{
2419
- provider: z.ZodEnum<{
2420
- merchant: "merchant";
2421
- stripe: "stripe";
2422
- apple: "apple";
2423
- google: "google";
2424
- }>;
2425
- currency: z.ZodEnum<{
2426
- USD: "USD";
2427
- EUR: "EUR";
2428
- CNY: "CNY";
2429
- GBP: "GBP";
2430
- JPY: "JPY";
2431
- CAD: "CAD";
2432
- AUD: "AUD";
2433
- NZD: "NZD";
2434
- CHF: "CHF";
2435
- HKD: "HKD";
2436
- SGD: "SGD";
2437
- KRW: "KRW";
2438
- INR: "INR";
2439
- BRL: "BRL";
2440
- MXN: "MXN";
2441
- TWD: "TWD";
2442
- THB: "THB";
2443
- IDR: "IDR";
2444
- MYR: "MYR";
2445
- PHP: "PHP";
2446
- VND: "VND";
2447
- ZAR: "ZAR";
2448
- AED: "AED";
2449
- SAR: "SAR";
2450
- SEK: "SEK";
2451
- NOK: "NOK";
2452
- DKK: "DKK";
2453
- PLN: "PLN";
2454
- CZK: "CZK";
2455
- HUF: "HUF";
2456
- ILS: "ILS";
2457
- TRY: "TRY";
2458
- RON: "RON";
2459
- }>;
2460
- }, z.core.$strict>>;
2461
- paywallId: z.ZodOptional<z.ZodUUID>;
2462
- }, z.core.$strict>;
2463
- /** Shared by all payment providers; ownership comes from trusted business bindings. */
2464
- declare const entitlementCheckObservationSchema: z.ZodObject<{
2465
- subject: z.ZodObject<{
2466
- scope: z.ZodObject<{
2467
- projectId: z.ZodUUID;
2468
- environmentId: z.ZodUUID;
2469
- environment: z.ZodEnum<{
2470
- sandbox: "sandbox";
2471
- live: "live";
2472
- }>;
2473
- }, z.core.$strict>;
2474
- customerId: z.ZodUUID;
2475
- }, z.core.$strict>;
2476
- authority: z.ZodEnum<{
2477
- longplay: "longplay";
2478
- merchant: "merchant";
2479
- }>;
2480
- observedAt: z.ZodISODateTime;
2481
- sourceRevision: z.ZodString;
2482
- requirementDigest: z.ZodString;
2483
- }, z.core.$strict>;
2484
- declare function entitlementRequirementDigest(subject: z.input<typeof commerceSubjectSchema>, requirement: z.input<typeof entitlementRequirementSchema>): string;
2485
- declare const entitlementCheckResultSchema: z.ZodObject<{
2486
- internal_feature_id: z.ZodString;
2487
- name: z.ZodString;
2488
- kind: z.ZodEnum<{
2489
- access: "access";
2490
- metered: "metered";
2491
- credit: "credit";
2492
- }>;
2493
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2494
- allowed: z.ZodBoolean;
2495
- observation: z.ZodOptional<z.ZodObject<{
2496
- subject: z.ZodObject<{
2497
- scope: z.ZodObject<{
2498
- projectId: z.ZodUUID;
2499
- environmentId: z.ZodUUID;
2500
- environment: z.ZodEnum<{
2501
- sandbox: "sandbox";
2502
- live: "live";
2503
- }>;
2504
- }, z.core.$strict>;
2505
- customerId: z.ZodUUID;
2506
- }, z.core.$strict>;
2507
- authority: z.ZodEnum<{
2508
- longplay: "longplay";
2509
- merchant: "merchant";
2510
- }>;
2511
- observedAt: z.ZodISODateTime;
2512
- sourceRevision: z.ZodString;
2513
- requirementDigest: z.ZodString;
2514
- }, z.core.$strict>>;
2515
- reason: z.ZodNullable<z.ZodEnum<{
2516
- not_entitled: "not_entitled";
2517
- insufficient_balance: "insufficient_balance";
2518
- capacity_exceeded: "capacity_exceeded";
2519
- limit_exceeded: "limit_exceeded";
2520
- awaiting_topup: "awaiting_topup";
2521
- authorization_required: "authorization_required";
2522
- payment_blocked: "payment_blocked";
2523
- cash_budget_exceeded: "cash_budget_exceeded";
2524
- unavailable: "unavailable";
2525
- authentication_required: "authentication_required";
2526
- }>>;
2527
- preview: z.ZodNullable<z.ZodObject<{
2528
- scenario: z.ZodEnum<{
2529
- feature_flag: "feature_flag";
2530
- usage_limit: "usage_limit";
2531
- }>;
2532
- candidates: z.ZodArray<z.ZodObject<{
2533
- productId: z.ZodString;
2534
- productVersionId: z.ZodString;
2535
- name: z.ZodString;
2536
- action: z.ZodEnum<{
2537
- purchase: "purchase";
2538
- upgrade: "upgrade";
2539
- addon: "addon";
2540
- topup: "topup";
2541
- }>;
2542
- membershipId: z.ZodNullable<z.ZodString>;
2543
- currency: z.ZodEnum<{
2544
- USD: "USD";
2545
- EUR: "EUR";
2546
- CNY: "CNY";
2547
- GBP: "GBP";
2548
- JPY: "JPY";
2549
- CAD: "CAD";
2550
- AUD: "AUD";
2551
- NZD: "NZD";
2552
- CHF: "CHF";
2553
- HKD: "HKD";
2554
- SGD: "SGD";
2555
- KRW: "KRW";
2556
- INR: "INR";
2557
- BRL: "BRL";
2558
- MXN: "MXN";
2559
- TWD: "TWD";
2560
- THB: "THB";
2561
- IDR: "IDR";
2562
- MYR: "MYR";
2563
- PHP: "PHP";
2564
- VND: "VND";
2565
- ZAR: "ZAR";
2566
- AED: "AED";
2567
- SAR: "SAR";
2568
- SEK: "SEK";
2569
- NOK: "NOK";
2570
- DKK: "DKK";
2571
- PLN: "PLN";
2572
- CZK: "CZK";
2573
- HUF: "HUF";
2574
- ILS: "ILS";
2575
- TRY: "TRY";
2576
- RON: "RON";
2577
- }>;
2578
- amountMinor: z.ZodString;
2579
- interval: z.ZodEnum<{
2580
- free: "free";
2581
- week: "week";
2582
- month: "month";
2583
- year: "year";
2584
- one_time: "one_time";
2585
- }>;
2586
- intervalCount: z.ZodNumber;
2587
- }, z.core.$strict>>;
2588
- }, z.core.$strict>>;
2589
- }, z.core.$strict>;
2590
- type EntitlementRequirement = z.input<typeof entitlementRequirementSchema>;
2591
- type EntitlementCheckInput = z.input<typeof entitlementCheckInputSchema>;
2592
- type EntitlementCheckResult = z.infer<typeof entitlementCheckResultSchema>;
2593
- /** Admission for a merchant observation reuses the common Check result. */
2594
- declare const merchantRequirementCheckInputSchema: z.ZodObject<{
2595
- subject: z.ZodObject<{
2596
- scope: z.ZodObject<{
2597
- projectId: z.ZodUUID;
2598
- environmentId: z.ZodUUID;
2599
- environment: z.ZodEnum<{
2600
- sandbox: "sandbox";
2601
- live: "live";
2602
- }>;
2603
- }, z.core.$strict>;
2604
- customerId: z.ZodUUID;
2605
- }, z.core.$strict>;
2606
- requirement: z.ZodObject<{
2607
- internal_feature_id: z.ZodUUID;
2608
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2609
- properties: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodTransform<{
2610
- [k: string]: string;
2611
- }, Record<string, string | number | boolean>>>;
2612
- entityId: z.ZodOptional<z.ZodUUID>;
2613
- }, z.core.$strict>;
2614
- }, z.core.$strict>;
2615
- declare const merchantRequirementCheckResultSchema: z.ZodObject<{
2616
- internal_feature_id: z.ZodString;
2617
- name: z.ZodString;
2618
- kind: z.ZodEnum<{
2619
- access: "access";
2620
- metered: "metered";
2621
- credit: "credit";
2622
- }>;
2623
- quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
2624
- allowed: z.ZodBoolean;
2625
- reason: z.ZodNullable<z.ZodEnum<{
2626
- not_entitled: "not_entitled";
2627
- insufficient_balance: "insufficient_balance";
2628
- capacity_exceeded: "capacity_exceeded";
2629
- limit_exceeded: "limit_exceeded";
2630
- awaiting_topup: "awaiting_topup";
2631
- authorization_required: "authorization_required";
2632
- payment_blocked: "payment_blocked";
2633
- cash_budget_exceeded: "cash_budget_exceeded";
2634
- unavailable: "unavailable";
2635
- authentication_required: "authentication_required";
2636
- }>>;
2637
- preview: z.ZodNullable<z.ZodObject<{
2638
- scenario: z.ZodEnum<{
2639
- feature_flag: "feature_flag";
2640
- usage_limit: "usage_limit";
2641
- }>;
2642
- candidates: z.ZodArray<z.ZodObject<{
2643
- productId: z.ZodString;
2644
- productVersionId: z.ZodString;
2645
- name: z.ZodString;
2646
- action: z.ZodEnum<{
2647
- purchase: "purchase";
2648
- upgrade: "upgrade";
2649
- addon: "addon";
2650
- topup: "topup";
2651
- }>;
2652
- membershipId: z.ZodNullable<z.ZodString>;
2653
- currency: z.ZodEnum<{
2654
- USD: "USD";
2655
- EUR: "EUR";
2656
- CNY: "CNY";
2657
- GBP: "GBP";
2658
- JPY: "JPY";
2659
- CAD: "CAD";
2660
- AUD: "AUD";
2661
- NZD: "NZD";
2662
- CHF: "CHF";
2663
- HKD: "HKD";
2664
- SGD: "SGD";
2665
- KRW: "KRW";
2666
- INR: "INR";
2667
- BRL: "BRL";
2668
- MXN: "MXN";
2669
- TWD: "TWD";
2670
- THB: "THB";
2671
- IDR: "IDR";
2672
- MYR: "MYR";
2673
- PHP: "PHP";
2674
- VND: "VND";
2675
- ZAR: "ZAR";
2676
- AED: "AED";
2677
- SAR: "SAR";
2678
- SEK: "SEK";
2679
- NOK: "NOK";
2680
- DKK: "DKK";
2681
- PLN: "PLN";
2682
- CZK: "CZK";
2683
- HUF: "HUF";
2684
- ILS: "ILS";
2685
- TRY: "TRY";
2686
- RON: "RON";
2687
- }>;
2688
- amountMinor: z.ZodString;
2689
- interval: z.ZodEnum<{
2690
- free: "free";
2691
- week: "week";
2692
- month: "month";
2693
- year: "year";
2694
- one_time: "one_time";
2695
- }>;
2696
- intervalCount: z.ZodNumber;
2697
- }, z.core.$strict>>;
2698
- }, z.core.$strict>>;
2699
- observation: z.ZodObject<{
2700
- subject: z.ZodObject<{
2701
- scope: z.ZodObject<{
2702
- projectId: z.ZodUUID;
2703
- environmentId: z.ZodUUID;
2704
- environment: z.ZodEnum<{
2705
- sandbox: "sandbox";
2706
- live: "live";
2707
- }>;
2708
- }, z.core.$strict>;
2709
- customerId: z.ZodUUID;
2710
- }, z.core.$strict>;
2711
- observedAt: z.ZodISODateTime;
2712
- sourceRevision: z.ZodString;
2713
- requirementDigest: z.ZodString;
2714
- authority: z.ZodLiteral<"merchant">;
2715
- }, z.core.$strict>;
2716
- }, z.core.$strict>;
2717
- type EntitlementCheckObservation = z.infer<typeof entitlementCheckObservationSchema>;
2718
- type MerchantRequirementCheckInput = z.input<typeof merchantRequirementCheckInputSchema>;
2719
- type MerchantRequirementCheckResult = z.infer<typeof merchantRequirementCheckResultSchema>;
2720
-
2721
- type FunnelNodeEvaluationContext = Pick<EvaluationContext, "attributes" | "stickyBucketAssignmentDocs" | "saveStickyBucketAssignmentDoc" | "onFeatureUsage" | "onExperimentViewed">;
2722
-
2723
- /** Pure rule evaluation, never a command or permission to perform a commercial action. No network I/O. */
2724
- declare function evaluateFunnelNode(configuration: FunnelConfiguration, nodeId: string, input: FunnelNodeEvaluationContext): {
2725
- nodeId: string;
2726
- port: string;
2727
- target: string;
2728
- value?: JsonValue;
2729
- };
2730
-
2731
- export { type EntitlementCheckResult as E, type FunnelNodeEvaluationContext as F, type MerchantBridgeManifest as M, type EntitlementCheckInput as a, type EntitlementCheckObservation as b, type EntitlementRequirement as c, type FunnelLocalConfiguration as d, evaluateFunnelNode as e, type MerchantBridgeCommand as f, type MerchantBridgeRequest as g, merchantBridgeCommandInputs as h, merchantBridgeCommandOutputs as i, merchantBridgeOperationInputSchema as j, type MerchantRequirementCheckInput as k, type MerchantRequirementCheckResult as l, merchantBridgeOperationAuthoritySchema as m, entitlementRequirementDigest as n };