@tinkerlandai/indiana-sdk 0.9.2 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +50 -5
  3. package/README.zh-CN.md +30 -5
  4. package/dist/{ai-usage-DMNKvCiq.d.ts → ai-usage-Cn7dhvFw.d.ts} +5 -5
  5. package/dist/{api--Zf0gxfj.d.ts → api-DC44FaTV.d.ts} +6346 -749
  6. package/dist/chunk-2Y4G5364.js +6 -0
  7. package/dist/chunk-6ZZUNGNE.js +1 -0
  8. package/dist/chunk-ABNSU3ZG.js +4 -0
  9. package/dist/chunk-ACF2FBUB.js +1 -0
  10. package/dist/{chunk-65TBYVCS.js → chunk-AHXYGGAA.js} +1 -1
  11. package/dist/chunk-BOCKPUCM.js +2 -0
  12. package/dist/chunk-CCPNMQHZ.js +1 -0
  13. package/dist/chunk-CLXORAOK.js +1 -0
  14. package/dist/chunk-EDQCH2QS.js +1 -0
  15. package/dist/chunk-IWWKVNEX.js +1 -0
  16. package/dist/chunk-QUWPPZHH.js +1 -0
  17. package/dist/chunk-SBPTOOYB.js +1 -0
  18. package/dist/chunk-WYZI3TNB.js +1 -0
  19. package/dist/chunk-X6BCUINI.js +173 -0
  20. package/dist/chunk-Y46ALAKP.js +1 -0
  21. package/dist/{configuration-sync-E98CqVwh.d.ts → configuration-sync-CXe9Zcng.d.ts} +74 -21
  22. package/dist/content-ZRWZ26PF.js +1 -0
  23. package/dist/coupon-fA1QujHt.d.ts +184 -0
  24. package/dist/{customer-page-9B97Qdt_.d.ts → customer-page-km5f1PJZ.d.ts} +86 -182
  25. package/dist/{funnel-local-client-BjPwXlQb.d.ts → funnel-local-client-BQsdOjQ7.d.ts} +19985 -2451
  26. package/dist/funnel-node-evaluation-P5B4fPfJ.d.ts +2054 -0
  27. package/dist/funnel-resource-client-Zof1WLgA.d.ts +14525 -0
  28. package/dist/funnel-runtime-host-N7TX3LWI.js +1 -0
  29. package/dist/index.d.ts +13905 -13996
  30. package/dist/index.js +1 -1
  31. package/dist/native-shell.js +1 -1
  32. package/dist/openrouter.d.ts +3 -3
  33. package/dist/openrouter.js +1 -1
  34. package/dist/page.d.ts +4 -4
  35. package/dist/page.js +1 -1
  36. package/dist/paywall-DR65VN2G.js +1 -0
  37. package/dist/popup.d.ts +7 -5
  38. package/dist/popup.js +1 -1
  39. package/dist/react-native.d.ts +36432 -174
  40. package/dist/react-native.js +1 -1
  41. package/dist/{screen-BITZ11jn.d.ts → screen-D81zCpfi.d.ts} +159 -6
  42. package/dist/{screen-renderer-A6VYE2QL.js → screen-renderer-ZSAR7LPS.js} +1 -1
  43. package/dist/server.d.ts +2924 -500
  44. package/dist/server.js +1 -1
  45. package/dist/visual-dom-OFB7BFFB.js +1 -0
  46. package/dist/visual.d.ts +2 -2
  47. package/dist/visual.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/chunk-5O667MKA.js +0 -1
  50. package/dist/chunk-67A7I6MB.js +0 -1
  51. package/dist/chunk-CCQHYQ4P.js +0 -1
  52. package/dist/chunk-CPLLMISZ.js +0 -1
  53. package/dist/chunk-G23YNWWI.js +0 -1
  54. package/dist/chunk-L7LKE3MG.js +0 -173
  55. package/dist/chunk-NH2PTTNK.js +0 -2
  56. package/dist/chunk-PK5HYUHD.js +0 -1
  57. package/dist/chunk-SEW4YVR7.js +0 -1
  58. package/dist/chunk-UYSOTMY3.js +0 -1
  59. package/dist/chunk-WSVH6IQA.js +0 -1
  60. package/dist/chunk-YZSQDZXW.js +0 -4
  61. package/dist/content-3LOJVYQO.js +0 -1
  62. package/dist/errors-0TSUIbUi.d.ts +0 -115
  63. package/dist/funnel-runtime-host-NYHKQT6T.js +0 -1
  64. package/dist/paywall-ISCYOGPZ.js +0 -1
@@ -0,0 +1,2054 @@
1
+ import { z } from 'zod';
2
+ import { E as EvaluationContext, J as JsonValue } from './growth-rules-B4YYy64R.js';
3
+
4
+ declare const merchantBridgeCommandSchema: z.ZodEnum<{
5
+ "session.create": "session.create";
6
+ "catalog.read": "catalog.read";
7
+ "customer.commerce.read": "customer.commerce.read";
8
+ "presentation.resolve": "presentation.resolve";
9
+ "presentation.report": "presentation.report";
10
+ "purchase.execute": "purchase.execute";
11
+ "operation.read": "operation.read";
12
+ "subscription.change": "subscription.change";
13
+ "refund.execute": "refund.execute";
14
+ "bridge.ping": "bridge.ping";
15
+ "bridge.describe": "bridge.describe";
16
+ }>;
17
+ type MerchantBridgeCommand = z.infer<typeof merchantBridgeCommandSchema>;
18
+ declare const merchantBridgeManifestSchema: z.ZodObject<{
19
+ bridgeVersion: z.ZodLiteral<3>;
20
+ projectId: z.ZodUUID;
21
+ environmentId: z.ZodUUID;
22
+ environment: z.ZodEnum<{
23
+ sandbox: "sandbox";
24
+ live: "live";
25
+ }>;
26
+ capabilities: z.ZodArray<z.ZodEnum<{
27
+ session: "session";
28
+ catalog: "catalog";
29
+ customer_commerce: "customer_commerce";
30
+ presentation: "presentation";
31
+ presentation_events: "presentation_events";
32
+ purchases: "purchases";
33
+ operation_status: "operation_status";
34
+ billing_records: "billing_records";
35
+ subscription_changes: "subscription_changes";
36
+ refunds: "refunds";
37
+ }>>;
38
+ catalog: z.ZodEnum<{
39
+ none: "none";
40
+ endpoint: "endpoint";
41
+ static: "static";
42
+ }>;
43
+ billingEvents: z.ZodArray<z.ZodEnum<{
44
+ "purchase.completed": "purchase.completed";
45
+ "purchase.closed": "purchase.closed";
46
+ "subscription.observed": "subscription.observed";
47
+ "invoice.paid": "invoice.paid";
48
+ "subscription.change.completed": "subscription.change.completed";
49
+ "refund.updated": "refund.updated";
50
+ }>>;
51
+ profiles: z.ZodArray<z.ZodEnum<{
52
+ "purchase.subscription": "purchase.subscription";
53
+ "purchase.one_time": "purchase.one_time";
54
+ "purchase.prepaid": "purchase.prepaid";
55
+ "purchase.trial": "purchase.trial";
56
+ "purchase.seats": "purchase.seats";
57
+ "purchase.tiered": "purchase.tiered";
58
+ "tax.automatic": "tax.automatic";
59
+ "discount.percent.once": "discount.percent.once";
60
+ "discount.percent.repeating": "discount.percent.repeating";
61
+ "discount.percent.forever": "discount.percent.forever";
62
+ "discount.amount.once": "discount.amount.once";
63
+ "discount.amount.repeating": "discount.amount.repeating";
64
+ "discount.amount.forever": "discount.amount.forever";
65
+ "subscription.cancel.immediate": "subscription.cancel.immediate";
66
+ "subscription.cancel.renewal": "subscription.cancel.renewal";
67
+ "subscription.resume": "subscription.resume";
68
+ "subscription.plan.immediate": "subscription.plan.immediate";
69
+ "subscription.plan.renewal": "subscription.plan.renewal";
70
+ "subscription.seats": "subscription.seats";
71
+ "subscription.quantity": "subscription.quantity";
72
+ "subscription.billing_cycle": "subscription.billing_cycle";
73
+ "subscription.proration": "subscription.proration";
74
+ "refund.full": "refund.full";
75
+ "refund.partial": "refund.partial";
76
+ "refund.revoke": "refund.revoke";
77
+ }>>;
78
+ }, z.core.$strict>;
79
+ type MerchantBridgeManifest = z.infer<typeof merchantBridgeManifestSchema>;
80
+ declare const merchantBridgeOperationInputSchema: z.ZodObject<{
81
+ operationId: z.ZodUUID;
82
+ customerId: z.ZodUUID;
83
+ }, z.core.$strict>;
84
+ declare const merchantBridgeOperationAuthoritySchema: z.ZodObject<{
85
+ scope: z.ZodObject<{
86
+ projectId: z.ZodUUID;
87
+ environmentId: z.ZodUUID;
88
+ environment: z.ZodEnum<{
89
+ sandbox: "sandbox";
90
+ live: "live";
91
+ }>;
92
+ }, z.core.$strict>;
93
+ operationId: z.ZodUUID;
94
+ customerId: z.ZodUUID;
95
+ confirmedAt: z.ZodNullable<z.ZodISODateTime>;
96
+ initialExecutionAllowed: z.ZodBoolean;
97
+ instruction: z.ZodDiscriminatedUnion<[z.ZodObject<{
98
+ type: z.ZodLiteral<"purchase">;
99
+ mode: z.ZodEnum<{
100
+ payment: "payment";
101
+ subscription: "subscription";
102
+ }>;
103
+ lineItems: z.ZodArray<z.ZodObject<{
104
+ priceId: z.ZodUUID;
105
+ productVersionId: z.ZodUUID;
106
+ productId: z.ZodString;
107
+ quantity: z.ZodNumber;
108
+ unitAmountMinor: z.ZodNumber;
109
+ totalMinor: z.ZodNumber;
110
+ interval: z.ZodEnum<{
111
+ week: "week";
112
+ month: "month";
113
+ year: "year";
114
+ one_off: "one_off";
115
+ }>;
116
+ intervalCount: z.ZodNumber;
117
+ kind: z.ZodEnum<{
118
+ prepaid: "prepaid";
119
+ fixed: "fixed";
120
+ seat: "seat";
121
+ }>;
122
+ tiers: z.ZodNullable<z.ZodObject<{
123
+ mode: z.ZodEnum<{
124
+ graduated: "graduated";
125
+ volume: "volume";
126
+ }>;
127
+ tiers: z.ZodArray<z.ZodObject<{
128
+ upTo: z.ZodNullable<z.ZodNumber>;
129
+ unitAmountMinor: z.ZodNumber;
130
+ flatAmountMinor: z.ZodOptional<z.ZodNumber>;
131
+ }, z.core.$strict>>;
132
+ }, z.core.$strict>>;
133
+ }, z.core.$strict>>;
134
+ catalogAmountMinor: z.ZodNumber;
135
+ discount: z.ZodNullable<z.ZodObject<{
136
+ grantId: z.ZodUUID;
137
+ couponId: z.ZodUUID;
138
+ amountMinor: z.ZodNumber;
139
+ terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
+ type: z.ZodLiteral<"percent">;
141
+ percentOff: z.ZodNumber;
142
+ }, z.core.$strict>, z.ZodObject<{
143
+ type: z.ZodLiteral<"amount">;
144
+ amountOffMinor: z.ZodNumber;
145
+ currency: z.ZodString;
146
+ }, z.core.$strict>], "type">;
147
+ duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
148
+ type: z.ZodLiteral<"once">;
149
+ }, z.core.$strict>, z.ZodObject<{
150
+ type: z.ZodLiteral<"forever">;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ type: z.ZodLiteral<"repeating">;
153
+ months: z.ZodNumber;
154
+ }, z.core.$strict>], "type">;
155
+ }, z.core.$strict>>;
156
+ trialPeriodDays: z.ZodNullable<z.ZodNumber>;
157
+ automaticTax: z.ZodBoolean;
158
+ provider: z.ZodLiteral<"merchant">;
159
+ executor: z.ZodLiteral<"merchant">;
160
+ operationId: z.ZodUUID;
161
+ customerId: z.ZodUUID;
162
+ configurationRevision: z.ZodNumber;
163
+ connectionRevision: z.ZodNumber;
164
+ currency: z.ZodString;
165
+ expiresAt: z.ZodISODateTime;
166
+ }, z.core.$strict>, z.ZodObject<{
167
+ type: z.ZodLiteral<"subscription_change">;
168
+ subscriptionId: z.ZodUUID;
169
+ merchantSubscriptionId: z.ZodString;
170
+ membershipId: z.ZodUUID;
171
+ subscriptionAction: z.ZodEnum<{
172
+ update: "update";
173
+ cancel: "cancel";
174
+ schedule: "schedule";
175
+ release: "release";
176
+ }>;
177
+ supersedesOperationId: z.ZodNullable<z.ZodUUID>;
178
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
179
+ type: z.ZodLiteral<"cancel">;
180
+ }, z.core.$strict>, z.ZodObject<{
181
+ type: z.ZodLiteral<"uncancel">;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ type: z.ZodLiteral<"plan">;
184
+ productVersionId: z.ZodUUID;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ type: z.ZodLiteral<"seats">;
187
+ licenseKey: z.ZodString;
188
+ quantity: z.ZodNumber;
189
+ }, z.core.$strict>, z.ZodObject<{
190
+ type: z.ZodLiteral<"quantity">;
191
+ internal_feature_id: z.ZodUUID;
192
+ quantity: z.ZodNumber;
193
+ }, z.core.$strict>, z.ZodObject<{
194
+ type: z.ZodLiteral<"billing_cycle">;
195
+ billingCycleAnchor: z.ZodUnion<readonly [z.ZodLiteral<"now">, z.ZodNumber]>;
196
+ }, z.core.$strict>], "type">;
197
+ timing: z.ZodEnum<{
198
+ immediate: "immediate";
199
+ renewal: "renewal";
200
+ }>;
201
+ effectiveAt: z.ZodISODateTime;
202
+ creditMinor: z.ZodNumber;
203
+ debitMinor: z.ZodNumber;
204
+ totalMinor: z.ZodNumber;
205
+ discountMinor: z.ZodNumber;
206
+ taxMinor: z.ZodNumber;
207
+ proration: z.ZodEnum<{
208
+ none: "none";
209
+ create_prorations: "create_prorations";
210
+ always_invoice: "always_invoice";
211
+ }>;
212
+ lineItems: z.ZodArray<z.ZodObject<{
213
+ priceId: z.ZodUUID;
214
+ productVersionId: z.ZodUUID;
215
+ productId: z.ZodString;
216
+ unitAmountMinor: z.ZodNumber;
217
+ totalMinor: z.ZodNumber;
218
+ interval: z.ZodEnum<{
219
+ week: "week";
220
+ month: "month";
221
+ year: "year";
222
+ one_off: "one_off";
223
+ }>;
224
+ intervalCount: z.ZodNumber;
225
+ kind: z.ZodEnum<{
226
+ prepaid: "prepaid";
227
+ fixed: "fixed";
228
+ seat: "seat";
229
+ }>;
230
+ tiers: z.ZodNullable<z.ZodObject<{
231
+ mode: z.ZodEnum<{
232
+ graduated: "graduated";
233
+ volume: "volume";
234
+ }>;
235
+ tiers: z.ZodArray<z.ZodObject<{
236
+ upTo: z.ZodNullable<z.ZodNumber>;
237
+ unitAmountMinor: z.ZodNumber;
238
+ flatAmountMinor: z.ZodOptional<z.ZodNumber>;
239
+ }, z.core.$strict>>;
240
+ }, z.core.$strict>>;
241
+ quantity: z.ZodNumber;
242
+ }, z.core.$strict>>;
243
+ removePriceIds: z.ZodArray<z.ZodUUID>;
244
+ provider: z.ZodLiteral<"merchant">;
245
+ executor: z.ZodLiteral<"merchant">;
246
+ operationId: z.ZodUUID;
247
+ customerId: z.ZodUUID;
248
+ configurationRevision: z.ZodNumber;
249
+ connectionRevision: z.ZodNumber;
250
+ currency: z.ZodString;
251
+ expiresAt: z.ZodISODateTime;
252
+ }, z.core.$strict>, z.ZodObject<{
253
+ type: z.ZodLiteral<"refund">;
254
+ invoiceId: z.ZodUUID;
255
+ merchantInvoiceId: z.ZodString;
256
+ amountMinor: z.ZodNumber;
257
+ mode: z.ZodEnum<{
258
+ full: "full";
259
+ partial: "partial";
260
+ }>;
261
+ entitlementAction: z.ZodEnum<{
262
+ retain: "retain";
263
+ revoke: "revoke";
264
+ }>;
265
+ cancelSubscriptions: z.ZodArray<z.ZodString>;
266
+ provider: z.ZodLiteral<"merchant">;
267
+ executor: z.ZodLiteral<"merchant">;
268
+ operationId: z.ZodUUID;
269
+ customerId: z.ZodUUID;
270
+ configurationRevision: z.ZodNumber;
271
+ connectionRevision: z.ZodNumber;
272
+ currency: z.ZodString;
273
+ expiresAt: z.ZodISODateTime;
274
+ }, z.core.$strict>], "type">;
275
+ }, z.core.$strict>;
276
+ declare const merchantBridgeCommandInputs: {
277
+ readonly "bridge.ping": z.ZodObject<{
278
+ challenge: z.ZodUUID;
279
+ }, z.core.$strict>;
280
+ readonly "bridge.describe": z.ZodObject<{}, z.core.$strict>;
281
+ readonly "session.create": z.ZodObject<{}, z.core.$strict>;
282
+ readonly "catalog.read": z.ZodObject<{}, z.core.$strict>;
283
+ readonly "customer.commerce.read": z.ZodObject<{}, z.core.$strict>;
284
+ readonly "presentation.resolve": z.ZodObject<{}, z.core.$strict>;
285
+ readonly "presentation.report": z.ZodObject<{
286
+ decisionId: z.ZodUUID;
287
+ eventId: z.ZodUUID;
288
+ }, z.core.$strict>;
289
+ readonly "purchase.execute": z.ZodObject<{
290
+ operationId: z.ZodUUID;
291
+ customerId: z.ZodUUID;
292
+ }, z.core.$strict>;
293
+ readonly "operation.read": z.ZodObject<{
294
+ operationId: z.ZodUUID;
295
+ customerId: z.ZodUUID;
296
+ }, z.core.$strict>;
297
+ readonly "subscription.change": z.ZodObject<{
298
+ operationId: z.ZodUUID;
299
+ customerId: z.ZodUUID;
300
+ }, z.core.$strict>;
301
+ readonly "refund.execute": z.ZodObject<{
302
+ operationId: z.ZodUUID;
303
+ customerId: z.ZodUUID;
304
+ }, z.core.$strict>;
305
+ };
306
+ declare const merchantBridgeCommandOutputs: {
307
+ readonly "bridge.ping": z.ZodObject<{
308
+ challenge: z.ZodUUID;
309
+ }, z.core.$strict>;
310
+ readonly "bridge.describe": z.ZodObject<{
311
+ bridgeVersion: z.ZodLiteral<3>;
312
+ projectId: z.ZodUUID;
313
+ environmentId: z.ZodUUID;
314
+ environment: z.ZodEnum<{
315
+ sandbox: "sandbox";
316
+ live: "live";
317
+ }>;
318
+ capabilities: z.ZodArray<z.ZodEnum<{
319
+ session: "session";
320
+ catalog: "catalog";
321
+ customer_commerce: "customer_commerce";
322
+ presentation: "presentation";
323
+ presentation_events: "presentation_events";
324
+ purchases: "purchases";
325
+ operation_status: "operation_status";
326
+ billing_records: "billing_records";
327
+ subscription_changes: "subscription_changes";
328
+ refunds: "refunds";
329
+ }>>;
330
+ catalog: z.ZodEnum<{
331
+ none: "none";
332
+ endpoint: "endpoint";
333
+ static: "static";
334
+ }>;
335
+ billingEvents: z.ZodArray<z.ZodEnum<{
336
+ "purchase.completed": "purchase.completed";
337
+ "purchase.closed": "purchase.closed";
338
+ "subscription.observed": "subscription.observed";
339
+ "invoice.paid": "invoice.paid";
340
+ "subscription.change.completed": "subscription.change.completed";
341
+ "refund.updated": "refund.updated";
342
+ }>>;
343
+ profiles: z.ZodArray<z.ZodEnum<{
344
+ "purchase.subscription": "purchase.subscription";
345
+ "purchase.one_time": "purchase.one_time";
346
+ "purchase.prepaid": "purchase.prepaid";
347
+ "purchase.trial": "purchase.trial";
348
+ "purchase.seats": "purchase.seats";
349
+ "purchase.tiered": "purchase.tiered";
350
+ "tax.automatic": "tax.automatic";
351
+ "discount.percent.once": "discount.percent.once";
352
+ "discount.percent.repeating": "discount.percent.repeating";
353
+ "discount.percent.forever": "discount.percent.forever";
354
+ "discount.amount.once": "discount.amount.once";
355
+ "discount.amount.repeating": "discount.amount.repeating";
356
+ "discount.amount.forever": "discount.amount.forever";
357
+ "subscription.cancel.immediate": "subscription.cancel.immediate";
358
+ "subscription.cancel.renewal": "subscription.cancel.renewal";
359
+ "subscription.resume": "subscription.resume";
360
+ "subscription.plan.immediate": "subscription.plan.immediate";
361
+ "subscription.plan.renewal": "subscription.plan.renewal";
362
+ "subscription.seats": "subscription.seats";
363
+ "subscription.quantity": "subscription.quantity";
364
+ "subscription.billing_cycle": "subscription.billing_cycle";
365
+ "subscription.proration": "subscription.proration";
366
+ "refund.full": "refund.full";
367
+ "refund.partial": "refund.partial";
368
+ "refund.revoke": "refund.revoke";
369
+ }>>;
370
+ }, z.core.$strict>;
371
+ readonly "session.create": z.ZodObject<{
372
+ nativeUserId: z.ZodString;
373
+ session: z.ZodObject<{
374
+ customerId: z.ZodUUID;
375
+ sessionId: z.ZodUUID;
376
+ accessToken: z.ZodString;
377
+ refreshToken: z.ZodString;
378
+ expiresAt: z.ZodISODateTime;
379
+ refreshExpiresAt: z.ZodISODateTime;
380
+ }, z.core.$strict>;
381
+ }, z.core.$strict>;
382
+ readonly "catalog.read": z.ZodObject<{
383
+ revision: z.ZodString;
384
+ updatedAt: z.ZodISODateTime;
385
+ provider: z.ZodLiteral<"merchant">;
386
+ items: z.ZodArray<z.ZodObject<{
387
+ merchantProductId: z.ZodString;
388
+ productVersionId: z.ZodUUID;
389
+ name: z.ZodString;
390
+ kind: z.ZodEnum<{
391
+ subscription: "subscription";
392
+ credit_pack: "credit_pack";
393
+ }>;
394
+ merchantPriceId: z.ZodString;
395
+ currency: z.ZodString;
396
+ amountMinor: z.ZodNumber;
397
+ interval: z.ZodEnum<{
398
+ month: "month";
399
+ year: "year";
400
+ one_time: "one_time";
401
+ }>;
402
+ intervalCount: z.ZodLiteral<1>;
403
+ includedCredits: z.ZodString;
404
+ creditReset: z.ZodEnum<{
405
+ month: "month";
406
+ none: "none";
407
+ }>;
408
+ creditPolicyId: z.ZodString;
409
+ available: z.ZodBoolean;
410
+ }, z.core.$strict>>;
411
+ }, z.core.$strict>;
412
+ readonly "customer.commerce.read": z.ZodObject<{
413
+ customerId: z.ZodUUID;
414
+ revision: z.ZodString;
415
+ observedAt: z.ZodISODateTime;
416
+ subscriptions: z.ZodArray<z.ZodObject<{
417
+ merchantSubscriptionId: z.ZodString;
418
+ merchantProductId: z.ZodString;
419
+ productVersionId: z.ZodNullable<z.ZodUUID>;
420
+ status: z.ZodEnum<{
421
+ active: "active";
422
+ expired: "expired";
423
+ trialing: "trialing";
424
+ past_due: "past_due";
425
+ cancelled: "cancelled";
426
+ }>;
427
+ currentPeriodStartsAt: z.ZodNullable<z.ZodISODateTime>;
428
+ currentPeriodEndsAt: z.ZodNullable<z.ZodISODateTime>;
429
+ cancelAtPeriodEnd: z.ZodBoolean;
430
+ scheduledChange: z.ZodNullable<z.ZodObject<{
431
+ effectiveAt: z.ZodISODateTime;
432
+ merchantProductId: z.ZodString;
433
+ }, z.core.$strict>>;
434
+ }, z.core.$strict>>;
435
+ purchaseHistory: z.ZodObject<{
436
+ complete: z.ZodBoolean;
437
+ hasPaidPurchase: z.ZodBoolean;
438
+ lastPaidAt: z.ZodNullable<z.ZodISODateTime>;
439
+ }, z.core.$strict>;
440
+ balances: z.ZodArray<z.ZodObject<{
441
+ bucketId: z.ZodString;
442
+ key: z.ZodString;
443
+ available: z.ZodString;
444
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
445
+ nextResetAt: z.ZodNullable<z.ZodISODateTime>;
446
+ }, z.core.$strict>>;
447
+ }, z.core.$strict>;
448
+ readonly "presentation.resolve": z.ZodObject<{
449
+ nativeUserId: z.ZodString;
450
+ presentation: z.ZodNullable<z.ZodObject<{
451
+ customerId: z.ZodUUID;
452
+ decisionId: z.ZodUUID;
453
+ offeringVersionId: z.ZodUUID;
454
+ paywallVersionId: z.ZodUUID;
455
+ variant: z.ZodString;
456
+ }, z.core.$strict>>;
457
+ }, z.core.$strict>;
458
+ readonly "presentation.report": z.ZodObject<{
459
+ queued: z.ZodLiteral<true>;
460
+ }, z.core.$strict>;
461
+ readonly "purchase.execute": z.ZodDiscriminatedUnion<[z.ZodObject<{
462
+ type: z.ZodLiteral<"purchase">;
463
+ merchantOrderId: z.ZodNullable<z.ZodString>;
464
+ paymentStatus: z.ZodEnum<{
465
+ unknown: "unknown";
466
+ not_started: "not_started";
467
+ pending: "pending";
468
+ failed: "failed";
469
+ succeeded: "succeeded";
470
+ not_required: "not_required";
471
+ expired: "expired";
472
+ }>;
473
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
474
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
475
+ operationId: z.ZodUUID;
476
+ customerId: z.ZodUUID;
477
+ merchantExecutionId: z.ZodString;
478
+ fulfillmentStatus: z.ZodEnum<{
479
+ not_started: "not_started";
480
+ pending: "pending";
481
+ applied: "applied";
482
+ failed: "failed";
483
+ not_applicable: "not_applicable";
484
+ }>;
485
+ recordingStatus: z.ZodEnum<{
486
+ pending: "pending";
487
+ failed: "failed";
488
+ not_ready: "not_ready";
489
+ accepted: "accepted";
490
+ }>;
491
+ updatedAt: z.ZodISODateTime;
492
+ problem: z.ZodNullable<z.ZodObject<{
493
+ phase: z.ZodEnum<{
494
+ payment: "payment";
495
+ execution: "execution";
496
+ fulfillment: "fulfillment";
497
+ recording: "recording";
498
+ }>;
499
+ code: z.ZodEnum<{
500
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
501
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
502
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
503
+ UNAUTHENTICATED: "UNAUTHENTICATED";
504
+ FORBIDDEN: "FORBIDDEN";
505
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
506
+ INVALID_REQUEST: "INVALID_REQUEST";
507
+ NOT_FOUND: "NOT_FOUND";
508
+ CONFLICT: "CONFLICT";
509
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
510
+ RATE_LIMITED: "RATE_LIMITED";
511
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
512
+ NOT_CONFIGURED: "NOT_CONFIGURED";
513
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
514
+ INTERNAL_ERROR: "INTERNAL_ERROR";
515
+ }>;
516
+ reason: z.ZodOptional<z.ZodEnum<{
517
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
518
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
519
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
520
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
521
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
522
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
523
+ STATE_CHANGED: "STATE_CHANGED";
524
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
525
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
526
+ }>>;
527
+ recovery: z.ZodEnum<{
528
+ fix_request: "fix_request";
529
+ authenticate: "authenticate";
530
+ check_permissions: "check_permissions";
531
+ check_scope: "check_scope";
532
+ resolve_conflict: "resolve_conflict";
533
+ reload_state: "reload_state";
534
+ retry_same_request: "retry_same_request";
535
+ configure_integration: "configure_integration";
536
+ check_availability: "check_availability";
537
+ upgrade_sdk: "upgrade_sdk";
538
+ recover_operation: "recover_operation";
539
+ contact_support: "contact_support";
540
+ }>;
541
+ retryable: z.ZodBoolean;
542
+ }, z.core.$strict>>;
543
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
544
+ }, z.core.$strict>, z.ZodObject<{
545
+ type: z.ZodLiteral<"subscription_change">;
546
+ status: z.ZodEnum<{
547
+ unknown: "unknown";
548
+ pending: "pending";
549
+ applied: "applied";
550
+ failed: "failed";
551
+ scheduled: "scheduled";
552
+ }>;
553
+ merchantSubscriptionId: z.ZodString;
554
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
555
+ operationId: z.ZodUUID;
556
+ customerId: z.ZodUUID;
557
+ merchantExecutionId: z.ZodString;
558
+ fulfillmentStatus: z.ZodEnum<{
559
+ not_started: "not_started";
560
+ pending: "pending";
561
+ applied: "applied";
562
+ failed: "failed";
563
+ not_applicable: "not_applicable";
564
+ }>;
565
+ recordingStatus: z.ZodEnum<{
566
+ pending: "pending";
567
+ failed: "failed";
568
+ not_ready: "not_ready";
569
+ accepted: "accepted";
570
+ }>;
571
+ updatedAt: z.ZodISODateTime;
572
+ problem: z.ZodNullable<z.ZodObject<{
573
+ phase: z.ZodEnum<{
574
+ payment: "payment";
575
+ execution: "execution";
576
+ fulfillment: "fulfillment";
577
+ recording: "recording";
578
+ }>;
579
+ code: z.ZodEnum<{
580
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
581
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
582
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
583
+ UNAUTHENTICATED: "UNAUTHENTICATED";
584
+ FORBIDDEN: "FORBIDDEN";
585
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
586
+ INVALID_REQUEST: "INVALID_REQUEST";
587
+ NOT_FOUND: "NOT_FOUND";
588
+ CONFLICT: "CONFLICT";
589
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
590
+ RATE_LIMITED: "RATE_LIMITED";
591
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
592
+ NOT_CONFIGURED: "NOT_CONFIGURED";
593
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
594
+ INTERNAL_ERROR: "INTERNAL_ERROR";
595
+ }>;
596
+ reason: z.ZodOptional<z.ZodEnum<{
597
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
598
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
599
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
600
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
601
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
602
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
603
+ STATE_CHANGED: "STATE_CHANGED";
604
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
605
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
606
+ }>>;
607
+ recovery: z.ZodEnum<{
608
+ fix_request: "fix_request";
609
+ authenticate: "authenticate";
610
+ check_permissions: "check_permissions";
611
+ check_scope: "check_scope";
612
+ resolve_conflict: "resolve_conflict";
613
+ reload_state: "reload_state";
614
+ retry_same_request: "retry_same_request";
615
+ configure_integration: "configure_integration";
616
+ check_availability: "check_availability";
617
+ upgrade_sdk: "upgrade_sdk";
618
+ recover_operation: "recover_operation";
619
+ contact_support: "contact_support";
620
+ }>;
621
+ retryable: z.ZodBoolean;
622
+ }, z.core.$strict>>;
623
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ type: z.ZodLiteral<"refund">;
626
+ status: z.ZodEnum<{
627
+ unknown: "unknown";
628
+ pending: "pending";
629
+ failed: "failed";
630
+ succeeded: "succeeded";
631
+ }>;
632
+ merchantRefundId: z.ZodNullable<z.ZodString>;
633
+ operationId: z.ZodUUID;
634
+ customerId: z.ZodUUID;
635
+ merchantExecutionId: z.ZodString;
636
+ fulfillmentStatus: z.ZodEnum<{
637
+ not_started: "not_started";
638
+ pending: "pending";
639
+ applied: "applied";
640
+ failed: "failed";
641
+ not_applicable: "not_applicable";
642
+ }>;
643
+ recordingStatus: z.ZodEnum<{
644
+ pending: "pending";
645
+ failed: "failed";
646
+ not_ready: "not_ready";
647
+ accepted: "accepted";
648
+ }>;
649
+ updatedAt: z.ZodISODateTime;
650
+ problem: z.ZodNullable<z.ZodObject<{
651
+ phase: z.ZodEnum<{
652
+ payment: "payment";
653
+ execution: "execution";
654
+ fulfillment: "fulfillment";
655
+ recording: "recording";
656
+ }>;
657
+ code: z.ZodEnum<{
658
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
659
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
660
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
661
+ UNAUTHENTICATED: "UNAUTHENTICATED";
662
+ FORBIDDEN: "FORBIDDEN";
663
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
664
+ INVALID_REQUEST: "INVALID_REQUEST";
665
+ NOT_FOUND: "NOT_FOUND";
666
+ CONFLICT: "CONFLICT";
667
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
668
+ RATE_LIMITED: "RATE_LIMITED";
669
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
670
+ NOT_CONFIGURED: "NOT_CONFIGURED";
671
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
672
+ INTERNAL_ERROR: "INTERNAL_ERROR";
673
+ }>;
674
+ reason: z.ZodOptional<z.ZodEnum<{
675
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
676
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
677
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
678
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
679
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
680
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
681
+ STATE_CHANGED: "STATE_CHANGED";
682
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
683
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
684
+ }>>;
685
+ recovery: z.ZodEnum<{
686
+ fix_request: "fix_request";
687
+ authenticate: "authenticate";
688
+ check_permissions: "check_permissions";
689
+ check_scope: "check_scope";
690
+ resolve_conflict: "resolve_conflict";
691
+ reload_state: "reload_state";
692
+ retry_same_request: "retry_same_request";
693
+ configure_integration: "configure_integration";
694
+ check_availability: "check_availability";
695
+ upgrade_sdk: "upgrade_sdk";
696
+ recover_operation: "recover_operation";
697
+ contact_support: "contact_support";
698
+ }>;
699
+ retryable: z.ZodBoolean;
700
+ }, z.core.$strict>>;
701
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
702
+ }, z.core.$strict>], "type">;
703
+ readonly "operation.read": z.ZodDiscriminatedUnion<[z.ZodObject<{
704
+ lookup: z.ZodLiteral<"found">;
705
+ operationId: z.ZodUUID;
706
+ customerId: z.ZodUUID;
707
+ execution: z.ZodDiscriminatedUnion<[z.ZodObject<{
708
+ type: z.ZodLiteral<"purchase">;
709
+ merchantOrderId: z.ZodNullable<z.ZodString>;
710
+ paymentStatus: z.ZodEnum<{
711
+ unknown: "unknown";
712
+ not_started: "not_started";
713
+ pending: "pending";
714
+ failed: "failed";
715
+ succeeded: "succeeded";
716
+ not_required: "not_required";
717
+ expired: "expired";
718
+ }>;
719
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
720
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
721
+ operationId: z.ZodUUID;
722
+ customerId: z.ZodUUID;
723
+ merchantExecutionId: z.ZodString;
724
+ fulfillmentStatus: z.ZodEnum<{
725
+ not_started: "not_started";
726
+ pending: "pending";
727
+ applied: "applied";
728
+ failed: "failed";
729
+ not_applicable: "not_applicable";
730
+ }>;
731
+ recordingStatus: z.ZodEnum<{
732
+ pending: "pending";
733
+ failed: "failed";
734
+ not_ready: "not_ready";
735
+ accepted: "accepted";
736
+ }>;
737
+ updatedAt: z.ZodISODateTime;
738
+ problem: z.ZodNullable<z.ZodObject<{
739
+ phase: z.ZodEnum<{
740
+ payment: "payment";
741
+ execution: "execution";
742
+ fulfillment: "fulfillment";
743
+ recording: "recording";
744
+ }>;
745
+ code: z.ZodEnum<{
746
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
747
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
748
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
749
+ UNAUTHENTICATED: "UNAUTHENTICATED";
750
+ FORBIDDEN: "FORBIDDEN";
751
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
752
+ INVALID_REQUEST: "INVALID_REQUEST";
753
+ NOT_FOUND: "NOT_FOUND";
754
+ CONFLICT: "CONFLICT";
755
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
756
+ RATE_LIMITED: "RATE_LIMITED";
757
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
758
+ NOT_CONFIGURED: "NOT_CONFIGURED";
759
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
760
+ INTERNAL_ERROR: "INTERNAL_ERROR";
761
+ }>;
762
+ reason: z.ZodOptional<z.ZodEnum<{
763
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
764
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
765
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
766
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
767
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
768
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
769
+ STATE_CHANGED: "STATE_CHANGED";
770
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
771
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
772
+ }>>;
773
+ recovery: z.ZodEnum<{
774
+ fix_request: "fix_request";
775
+ authenticate: "authenticate";
776
+ check_permissions: "check_permissions";
777
+ check_scope: "check_scope";
778
+ resolve_conflict: "resolve_conflict";
779
+ reload_state: "reload_state";
780
+ retry_same_request: "retry_same_request";
781
+ configure_integration: "configure_integration";
782
+ check_availability: "check_availability";
783
+ upgrade_sdk: "upgrade_sdk";
784
+ recover_operation: "recover_operation";
785
+ contact_support: "contact_support";
786
+ }>;
787
+ retryable: z.ZodBoolean;
788
+ }, z.core.$strict>>;
789
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
790
+ }, z.core.$strict>, z.ZodObject<{
791
+ type: z.ZodLiteral<"subscription_change">;
792
+ status: z.ZodEnum<{
793
+ unknown: "unknown";
794
+ pending: "pending";
795
+ applied: "applied";
796
+ failed: "failed";
797
+ scheduled: "scheduled";
798
+ }>;
799
+ merchantSubscriptionId: z.ZodString;
800
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
801
+ operationId: z.ZodUUID;
802
+ customerId: z.ZodUUID;
803
+ merchantExecutionId: z.ZodString;
804
+ fulfillmentStatus: z.ZodEnum<{
805
+ not_started: "not_started";
806
+ pending: "pending";
807
+ applied: "applied";
808
+ failed: "failed";
809
+ not_applicable: "not_applicable";
810
+ }>;
811
+ recordingStatus: z.ZodEnum<{
812
+ pending: "pending";
813
+ failed: "failed";
814
+ not_ready: "not_ready";
815
+ accepted: "accepted";
816
+ }>;
817
+ updatedAt: z.ZodISODateTime;
818
+ problem: z.ZodNullable<z.ZodObject<{
819
+ phase: z.ZodEnum<{
820
+ payment: "payment";
821
+ execution: "execution";
822
+ fulfillment: "fulfillment";
823
+ recording: "recording";
824
+ }>;
825
+ code: z.ZodEnum<{
826
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
827
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
828
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
829
+ UNAUTHENTICATED: "UNAUTHENTICATED";
830
+ FORBIDDEN: "FORBIDDEN";
831
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
832
+ INVALID_REQUEST: "INVALID_REQUEST";
833
+ NOT_FOUND: "NOT_FOUND";
834
+ CONFLICT: "CONFLICT";
835
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
836
+ RATE_LIMITED: "RATE_LIMITED";
837
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
838
+ NOT_CONFIGURED: "NOT_CONFIGURED";
839
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
840
+ INTERNAL_ERROR: "INTERNAL_ERROR";
841
+ }>;
842
+ reason: z.ZodOptional<z.ZodEnum<{
843
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
844
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
845
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
846
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
847
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
848
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
849
+ STATE_CHANGED: "STATE_CHANGED";
850
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
851
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
852
+ }>>;
853
+ recovery: z.ZodEnum<{
854
+ fix_request: "fix_request";
855
+ authenticate: "authenticate";
856
+ check_permissions: "check_permissions";
857
+ check_scope: "check_scope";
858
+ resolve_conflict: "resolve_conflict";
859
+ reload_state: "reload_state";
860
+ retry_same_request: "retry_same_request";
861
+ configure_integration: "configure_integration";
862
+ check_availability: "check_availability";
863
+ upgrade_sdk: "upgrade_sdk";
864
+ recover_operation: "recover_operation";
865
+ contact_support: "contact_support";
866
+ }>;
867
+ retryable: z.ZodBoolean;
868
+ }, z.core.$strict>>;
869
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
870
+ }, z.core.$strict>, z.ZodObject<{
871
+ type: z.ZodLiteral<"refund">;
872
+ status: z.ZodEnum<{
873
+ unknown: "unknown";
874
+ pending: "pending";
875
+ failed: "failed";
876
+ succeeded: "succeeded";
877
+ }>;
878
+ merchantRefundId: z.ZodNullable<z.ZodString>;
879
+ operationId: z.ZodUUID;
880
+ customerId: z.ZodUUID;
881
+ merchantExecutionId: z.ZodString;
882
+ fulfillmentStatus: z.ZodEnum<{
883
+ not_started: "not_started";
884
+ pending: "pending";
885
+ applied: "applied";
886
+ failed: "failed";
887
+ not_applicable: "not_applicable";
888
+ }>;
889
+ recordingStatus: z.ZodEnum<{
890
+ pending: "pending";
891
+ failed: "failed";
892
+ not_ready: "not_ready";
893
+ accepted: "accepted";
894
+ }>;
895
+ updatedAt: z.ZodISODateTime;
896
+ problem: z.ZodNullable<z.ZodObject<{
897
+ phase: z.ZodEnum<{
898
+ payment: "payment";
899
+ execution: "execution";
900
+ fulfillment: "fulfillment";
901
+ recording: "recording";
902
+ }>;
903
+ code: z.ZodEnum<{
904
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
905
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
906
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
907
+ UNAUTHENTICATED: "UNAUTHENTICATED";
908
+ FORBIDDEN: "FORBIDDEN";
909
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
910
+ INVALID_REQUEST: "INVALID_REQUEST";
911
+ NOT_FOUND: "NOT_FOUND";
912
+ CONFLICT: "CONFLICT";
913
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
914
+ RATE_LIMITED: "RATE_LIMITED";
915
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
916
+ NOT_CONFIGURED: "NOT_CONFIGURED";
917
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
918
+ INTERNAL_ERROR: "INTERNAL_ERROR";
919
+ }>;
920
+ reason: z.ZodOptional<z.ZodEnum<{
921
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
922
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
923
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
924
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
925
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
926
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
927
+ STATE_CHANGED: "STATE_CHANGED";
928
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
929
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
930
+ }>>;
931
+ recovery: z.ZodEnum<{
932
+ fix_request: "fix_request";
933
+ authenticate: "authenticate";
934
+ check_permissions: "check_permissions";
935
+ check_scope: "check_scope";
936
+ resolve_conflict: "resolve_conflict";
937
+ reload_state: "reload_state";
938
+ retry_same_request: "retry_same_request";
939
+ configure_integration: "configure_integration";
940
+ check_availability: "check_availability";
941
+ upgrade_sdk: "upgrade_sdk";
942
+ recover_operation: "recover_operation";
943
+ contact_support: "contact_support";
944
+ }>;
945
+ retryable: z.ZodBoolean;
946
+ }, z.core.$strict>>;
947
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
948
+ }, z.core.$strict>], "type">;
949
+ readAt: z.ZodISODateTime;
950
+ }, z.core.$strict>, z.ZodObject<{
951
+ lookup: z.ZodLiteral<"not_received">;
952
+ operationId: z.ZodUUID;
953
+ customerId: z.ZodUUID;
954
+ execution: z.ZodNull;
955
+ readAt: z.ZodISODateTime;
956
+ }, z.core.$strict>], "lookup">;
957
+ readonly "subscription.change": z.ZodDiscriminatedUnion<[z.ZodObject<{
958
+ type: z.ZodLiteral<"purchase">;
959
+ merchantOrderId: z.ZodNullable<z.ZodString>;
960
+ paymentStatus: z.ZodEnum<{
961
+ unknown: "unknown";
962
+ not_started: "not_started";
963
+ pending: "pending";
964
+ failed: "failed";
965
+ succeeded: "succeeded";
966
+ not_required: "not_required";
967
+ expired: "expired";
968
+ }>;
969
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
970
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
971
+ operationId: z.ZodUUID;
972
+ customerId: z.ZodUUID;
973
+ merchantExecutionId: z.ZodString;
974
+ fulfillmentStatus: z.ZodEnum<{
975
+ not_started: "not_started";
976
+ pending: "pending";
977
+ applied: "applied";
978
+ failed: "failed";
979
+ not_applicable: "not_applicable";
980
+ }>;
981
+ recordingStatus: z.ZodEnum<{
982
+ pending: "pending";
983
+ failed: "failed";
984
+ not_ready: "not_ready";
985
+ accepted: "accepted";
986
+ }>;
987
+ updatedAt: z.ZodISODateTime;
988
+ problem: z.ZodNullable<z.ZodObject<{
989
+ phase: z.ZodEnum<{
990
+ payment: "payment";
991
+ execution: "execution";
992
+ fulfillment: "fulfillment";
993
+ recording: "recording";
994
+ }>;
995
+ code: z.ZodEnum<{
996
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
997
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
998
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
999
+ UNAUTHENTICATED: "UNAUTHENTICATED";
1000
+ FORBIDDEN: "FORBIDDEN";
1001
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
1002
+ INVALID_REQUEST: "INVALID_REQUEST";
1003
+ NOT_FOUND: "NOT_FOUND";
1004
+ CONFLICT: "CONFLICT";
1005
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1006
+ RATE_LIMITED: "RATE_LIMITED";
1007
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1008
+ NOT_CONFIGURED: "NOT_CONFIGURED";
1009
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1010
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1011
+ }>;
1012
+ reason: z.ZodOptional<z.ZodEnum<{
1013
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1014
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
1015
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1016
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1017
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1018
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
1019
+ STATE_CHANGED: "STATE_CHANGED";
1020
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1021
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1022
+ }>>;
1023
+ recovery: z.ZodEnum<{
1024
+ fix_request: "fix_request";
1025
+ authenticate: "authenticate";
1026
+ check_permissions: "check_permissions";
1027
+ check_scope: "check_scope";
1028
+ resolve_conflict: "resolve_conflict";
1029
+ reload_state: "reload_state";
1030
+ retry_same_request: "retry_same_request";
1031
+ configure_integration: "configure_integration";
1032
+ check_availability: "check_availability";
1033
+ upgrade_sdk: "upgrade_sdk";
1034
+ recover_operation: "recover_operation";
1035
+ contact_support: "contact_support";
1036
+ }>;
1037
+ retryable: z.ZodBoolean;
1038
+ }, z.core.$strict>>;
1039
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
1040
+ }, z.core.$strict>, z.ZodObject<{
1041
+ type: z.ZodLiteral<"subscription_change">;
1042
+ status: z.ZodEnum<{
1043
+ unknown: "unknown";
1044
+ pending: "pending";
1045
+ applied: "applied";
1046
+ failed: "failed";
1047
+ scheduled: "scheduled";
1048
+ }>;
1049
+ merchantSubscriptionId: z.ZodString;
1050
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
1051
+ operationId: z.ZodUUID;
1052
+ customerId: z.ZodUUID;
1053
+ merchantExecutionId: z.ZodString;
1054
+ fulfillmentStatus: z.ZodEnum<{
1055
+ not_started: "not_started";
1056
+ pending: "pending";
1057
+ applied: "applied";
1058
+ failed: "failed";
1059
+ not_applicable: "not_applicable";
1060
+ }>;
1061
+ recordingStatus: z.ZodEnum<{
1062
+ pending: "pending";
1063
+ failed: "failed";
1064
+ not_ready: "not_ready";
1065
+ accepted: "accepted";
1066
+ }>;
1067
+ updatedAt: z.ZodISODateTime;
1068
+ problem: z.ZodNullable<z.ZodObject<{
1069
+ phase: z.ZodEnum<{
1070
+ payment: "payment";
1071
+ execution: "execution";
1072
+ fulfillment: "fulfillment";
1073
+ recording: "recording";
1074
+ }>;
1075
+ code: z.ZodEnum<{
1076
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1077
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1078
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1079
+ UNAUTHENTICATED: "UNAUTHENTICATED";
1080
+ FORBIDDEN: "FORBIDDEN";
1081
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
1082
+ INVALID_REQUEST: "INVALID_REQUEST";
1083
+ NOT_FOUND: "NOT_FOUND";
1084
+ CONFLICT: "CONFLICT";
1085
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1086
+ RATE_LIMITED: "RATE_LIMITED";
1087
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1088
+ NOT_CONFIGURED: "NOT_CONFIGURED";
1089
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1090
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1091
+ }>;
1092
+ reason: z.ZodOptional<z.ZodEnum<{
1093
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1094
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
1095
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1096
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1097
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1098
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
1099
+ STATE_CHANGED: "STATE_CHANGED";
1100
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1101
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1102
+ }>>;
1103
+ recovery: z.ZodEnum<{
1104
+ fix_request: "fix_request";
1105
+ authenticate: "authenticate";
1106
+ check_permissions: "check_permissions";
1107
+ check_scope: "check_scope";
1108
+ resolve_conflict: "resolve_conflict";
1109
+ reload_state: "reload_state";
1110
+ retry_same_request: "retry_same_request";
1111
+ configure_integration: "configure_integration";
1112
+ check_availability: "check_availability";
1113
+ upgrade_sdk: "upgrade_sdk";
1114
+ recover_operation: "recover_operation";
1115
+ contact_support: "contact_support";
1116
+ }>;
1117
+ retryable: z.ZodBoolean;
1118
+ }, z.core.$strict>>;
1119
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
1120
+ }, z.core.$strict>, z.ZodObject<{
1121
+ type: z.ZodLiteral<"refund">;
1122
+ status: z.ZodEnum<{
1123
+ unknown: "unknown";
1124
+ pending: "pending";
1125
+ failed: "failed";
1126
+ succeeded: "succeeded";
1127
+ }>;
1128
+ merchantRefundId: z.ZodNullable<z.ZodString>;
1129
+ operationId: z.ZodUUID;
1130
+ customerId: z.ZodUUID;
1131
+ merchantExecutionId: z.ZodString;
1132
+ fulfillmentStatus: z.ZodEnum<{
1133
+ not_started: "not_started";
1134
+ pending: "pending";
1135
+ applied: "applied";
1136
+ failed: "failed";
1137
+ not_applicable: "not_applicable";
1138
+ }>;
1139
+ recordingStatus: z.ZodEnum<{
1140
+ pending: "pending";
1141
+ failed: "failed";
1142
+ not_ready: "not_ready";
1143
+ accepted: "accepted";
1144
+ }>;
1145
+ updatedAt: z.ZodISODateTime;
1146
+ problem: z.ZodNullable<z.ZodObject<{
1147
+ phase: z.ZodEnum<{
1148
+ payment: "payment";
1149
+ execution: "execution";
1150
+ fulfillment: "fulfillment";
1151
+ recording: "recording";
1152
+ }>;
1153
+ code: z.ZodEnum<{
1154
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1155
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1156
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1157
+ UNAUTHENTICATED: "UNAUTHENTICATED";
1158
+ FORBIDDEN: "FORBIDDEN";
1159
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
1160
+ INVALID_REQUEST: "INVALID_REQUEST";
1161
+ NOT_FOUND: "NOT_FOUND";
1162
+ CONFLICT: "CONFLICT";
1163
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1164
+ RATE_LIMITED: "RATE_LIMITED";
1165
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1166
+ NOT_CONFIGURED: "NOT_CONFIGURED";
1167
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1168
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1169
+ }>;
1170
+ reason: z.ZodOptional<z.ZodEnum<{
1171
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1172
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
1173
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1174
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1175
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1176
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
1177
+ STATE_CHANGED: "STATE_CHANGED";
1178
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1179
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1180
+ }>>;
1181
+ recovery: z.ZodEnum<{
1182
+ fix_request: "fix_request";
1183
+ authenticate: "authenticate";
1184
+ check_permissions: "check_permissions";
1185
+ check_scope: "check_scope";
1186
+ resolve_conflict: "resolve_conflict";
1187
+ reload_state: "reload_state";
1188
+ retry_same_request: "retry_same_request";
1189
+ configure_integration: "configure_integration";
1190
+ check_availability: "check_availability";
1191
+ upgrade_sdk: "upgrade_sdk";
1192
+ recover_operation: "recover_operation";
1193
+ contact_support: "contact_support";
1194
+ }>;
1195
+ retryable: z.ZodBoolean;
1196
+ }, z.core.$strict>>;
1197
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
1198
+ }, z.core.$strict>], "type">;
1199
+ readonly "refund.execute": z.ZodDiscriminatedUnion<[z.ZodObject<{
1200
+ type: z.ZodLiteral<"purchase">;
1201
+ merchantOrderId: z.ZodNullable<z.ZodString>;
1202
+ paymentStatus: z.ZodEnum<{
1203
+ unknown: "unknown";
1204
+ not_started: "not_started";
1205
+ pending: "pending";
1206
+ failed: "failed";
1207
+ succeeded: "succeeded";
1208
+ not_required: "not_required";
1209
+ expired: "expired";
1210
+ }>;
1211
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
1212
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
1213
+ operationId: z.ZodUUID;
1214
+ customerId: z.ZodUUID;
1215
+ merchantExecutionId: z.ZodString;
1216
+ fulfillmentStatus: z.ZodEnum<{
1217
+ not_started: "not_started";
1218
+ pending: "pending";
1219
+ applied: "applied";
1220
+ failed: "failed";
1221
+ not_applicable: "not_applicable";
1222
+ }>;
1223
+ recordingStatus: z.ZodEnum<{
1224
+ pending: "pending";
1225
+ failed: "failed";
1226
+ not_ready: "not_ready";
1227
+ accepted: "accepted";
1228
+ }>;
1229
+ updatedAt: z.ZodISODateTime;
1230
+ problem: z.ZodNullable<z.ZodObject<{
1231
+ phase: z.ZodEnum<{
1232
+ payment: "payment";
1233
+ execution: "execution";
1234
+ fulfillment: "fulfillment";
1235
+ recording: "recording";
1236
+ }>;
1237
+ code: z.ZodEnum<{
1238
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1239
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1240
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1241
+ UNAUTHENTICATED: "UNAUTHENTICATED";
1242
+ FORBIDDEN: "FORBIDDEN";
1243
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
1244
+ INVALID_REQUEST: "INVALID_REQUEST";
1245
+ NOT_FOUND: "NOT_FOUND";
1246
+ CONFLICT: "CONFLICT";
1247
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1248
+ RATE_LIMITED: "RATE_LIMITED";
1249
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1250
+ NOT_CONFIGURED: "NOT_CONFIGURED";
1251
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1252
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1253
+ }>;
1254
+ reason: z.ZodOptional<z.ZodEnum<{
1255
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1256
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
1257
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1258
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1259
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1260
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
1261
+ STATE_CHANGED: "STATE_CHANGED";
1262
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1263
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1264
+ }>>;
1265
+ recovery: z.ZodEnum<{
1266
+ fix_request: "fix_request";
1267
+ authenticate: "authenticate";
1268
+ check_permissions: "check_permissions";
1269
+ check_scope: "check_scope";
1270
+ resolve_conflict: "resolve_conflict";
1271
+ reload_state: "reload_state";
1272
+ retry_same_request: "retry_same_request";
1273
+ configure_integration: "configure_integration";
1274
+ check_availability: "check_availability";
1275
+ upgrade_sdk: "upgrade_sdk";
1276
+ recover_operation: "recover_operation";
1277
+ contact_support: "contact_support";
1278
+ }>;
1279
+ retryable: z.ZodBoolean;
1280
+ }, z.core.$strict>>;
1281
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
1282
+ }, z.core.$strict>, z.ZodObject<{
1283
+ type: z.ZodLiteral<"subscription_change">;
1284
+ status: z.ZodEnum<{
1285
+ unknown: "unknown";
1286
+ pending: "pending";
1287
+ applied: "applied";
1288
+ failed: "failed";
1289
+ scheduled: "scheduled";
1290
+ }>;
1291
+ merchantSubscriptionId: z.ZodString;
1292
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
1293
+ operationId: z.ZodUUID;
1294
+ customerId: z.ZodUUID;
1295
+ merchantExecutionId: z.ZodString;
1296
+ fulfillmentStatus: z.ZodEnum<{
1297
+ not_started: "not_started";
1298
+ pending: "pending";
1299
+ applied: "applied";
1300
+ failed: "failed";
1301
+ not_applicable: "not_applicable";
1302
+ }>;
1303
+ recordingStatus: z.ZodEnum<{
1304
+ pending: "pending";
1305
+ failed: "failed";
1306
+ not_ready: "not_ready";
1307
+ accepted: "accepted";
1308
+ }>;
1309
+ updatedAt: z.ZodISODateTime;
1310
+ problem: z.ZodNullable<z.ZodObject<{
1311
+ phase: z.ZodEnum<{
1312
+ payment: "payment";
1313
+ execution: "execution";
1314
+ fulfillment: "fulfillment";
1315
+ recording: "recording";
1316
+ }>;
1317
+ code: z.ZodEnum<{
1318
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1319
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1320
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1321
+ UNAUTHENTICATED: "UNAUTHENTICATED";
1322
+ FORBIDDEN: "FORBIDDEN";
1323
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
1324
+ INVALID_REQUEST: "INVALID_REQUEST";
1325
+ NOT_FOUND: "NOT_FOUND";
1326
+ CONFLICT: "CONFLICT";
1327
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1328
+ RATE_LIMITED: "RATE_LIMITED";
1329
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1330
+ NOT_CONFIGURED: "NOT_CONFIGURED";
1331
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1332
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1333
+ }>;
1334
+ reason: z.ZodOptional<z.ZodEnum<{
1335
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1336
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
1337
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1338
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1339
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1340
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
1341
+ STATE_CHANGED: "STATE_CHANGED";
1342
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1343
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1344
+ }>>;
1345
+ recovery: z.ZodEnum<{
1346
+ fix_request: "fix_request";
1347
+ authenticate: "authenticate";
1348
+ check_permissions: "check_permissions";
1349
+ check_scope: "check_scope";
1350
+ resolve_conflict: "resolve_conflict";
1351
+ reload_state: "reload_state";
1352
+ retry_same_request: "retry_same_request";
1353
+ configure_integration: "configure_integration";
1354
+ check_availability: "check_availability";
1355
+ upgrade_sdk: "upgrade_sdk";
1356
+ recover_operation: "recover_operation";
1357
+ contact_support: "contact_support";
1358
+ }>;
1359
+ retryable: z.ZodBoolean;
1360
+ }, z.core.$strict>>;
1361
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
1362
+ }, z.core.$strict>, z.ZodObject<{
1363
+ type: z.ZodLiteral<"refund">;
1364
+ status: z.ZodEnum<{
1365
+ unknown: "unknown";
1366
+ pending: "pending";
1367
+ failed: "failed";
1368
+ succeeded: "succeeded";
1369
+ }>;
1370
+ merchantRefundId: z.ZodNullable<z.ZodString>;
1371
+ operationId: z.ZodUUID;
1372
+ customerId: z.ZodUUID;
1373
+ merchantExecutionId: z.ZodString;
1374
+ fulfillmentStatus: z.ZodEnum<{
1375
+ not_started: "not_started";
1376
+ pending: "pending";
1377
+ applied: "applied";
1378
+ failed: "failed";
1379
+ not_applicable: "not_applicable";
1380
+ }>;
1381
+ recordingStatus: z.ZodEnum<{
1382
+ pending: "pending";
1383
+ failed: "failed";
1384
+ not_ready: "not_ready";
1385
+ accepted: "accepted";
1386
+ }>;
1387
+ updatedAt: z.ZodISODateTime;
1388
+ problem: z.ZodNullable<z.ZodObject<{
1389
+ phase: z.ZodEnum<{
1390
+ payment: "payment";
1391
+ execution: "execution";
1392
+ fulfillment: "fulfillment";
1393
+ recording: "recording";
1394
+ }>;
1395
+ code: z.ZodEnum<{
1396
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
1397
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
1398
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
1399
+ UNAUTHENTICATED: "UNAUTHENTICATED";
1400
+ FORBIDDEN: "FORBIDDEN";
1401
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
1402
+ INVALID_REQUEST: "INVALID_REQUEST";
1403
+ NOT_FOUND: "NOT_FOUND";
1404
+ CONFLICT: "CONFLICT";
1405
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
1406
+ RATE_LIMITED: "RATE_LIMITED";
1407
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
1408
+ NOT_CONFIGURED: "NOT_CONFIGURED";
1409
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
1410
+ INTERNAL_ERROR: "INTERNAL_ERROR";
1411
+ }>;
1412
+ reason: z.ZodOptional<z.ZodEnum<{
1413
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
1414
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
1415
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
1416
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
1417
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
1418
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
1419
+ STATE_CHANGED: "STATE_CHANGED";
1420
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
1421
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
1422
+ }>>;
1423
+ recovery: z.ZodEnum<{
1424
+ fix_request: "fix_request";
1425
+ authenticate: "authenticate";
1426
+ check_permissions: "check_permissions";
1427
+ check_scope: "check_scope";
1428
+ resolve_conflict: "resolve_conflict";
1429
+ reload_state: "reload_state";
1430
+ retry_same_request: "retry_same_request";
1431
+ configure_integration: "configure_integration";
1432
+ check_availability: "check_availability";
1433
+ upgrade_sdk: "upgrade_sdk";
1434
+ recover_operation: "recover_operation";
1435
+ contact_support: "contact_support";
1436
+ }>;
1437
+ retryable: z.ZodBoolean;
1438
+ }, z.core.$strict>>;
1439
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
1440
+ }, z.core.$strict>], "type">;
1441
+ };
1442
+ declare const merchantBridgeRequestSchema: z.ZodObject<{
1443
+ bridgeVersion: z.ZodLiteral<3>;
1444
+ requestId: z.ZodUUID;
1445
+ scope: z.ZodObject<{
1446
+ projectId: z.ZodUUID;
1447
+ environmentId: z.ZodUUID;
1448
+ environment: z.ZodEnum<{
1449
+ sandbox: "sandbox";
1450
+ live: "live";
1451
+ }>;
1452
+ }, z.core.$strict>;
1453
+ command: z.ZodEnum<{
1454
+ "session.create": "session.create";
1455
+ "catalog.read": "catalog.read";
1456
+ "customer.commerce.read": "customer.commerce.read";
1457
+ "presentation.resolve": "presentation.resolve";
1458
+ "presentation.report": "presentation.report";
1459
+ "purchase.execute": "purchase.execute";
1460
+ "operation.read": "operation.read";
1461
+ "subscription.change": "subscription.change";
1462
+ "refund.execute": "refund.execute";
1463
+ "bridge.ping": "bridge.ping";
1464
+ "bridge.describe": "bridge.describe";
1465
+ }>;
1466
+ data: z.ZodUnknown;
1467
+ }, z.core.$strict>;
1468
+ type MerchantBridgeRequest = z.infer<typeof merchantBridgeRequestSchema>;
1469
+
1470
+ declare const funnelConfigurationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1471
+ evaluationMode: z.ZodLiteral<"local">;
1472
+ growth: z.ZodObject<{
1473
+ scope: z.ZodObject<{
1474
+ projectId: z.ZodString;
1475
+ environment: z.ZodEnum<{
1476
+ sandbox: "sandbox";
1477
+ live: "live";
1478
+ }>;
1479
+ }, z.core.$strict>;
1480
+ generation: z.ZodString;
1481
+ evaluatedAt: z.ZodISODateTime;
1482
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1483
+ features: z.ZodRecord<z.ZodString, z.ZodObject<{
1484
+ defaultValue: z.ZodOptional<z.ZodJSONSchema>;
1485
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1486
+ id: z.ZodOptional<z.ZodString>;
1487
+ force: z.ZodOptional<z.ZodJSONSchema>;
1488
+ variations: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
1489
+ key: z.ZodOptional<z.ZodString>;
1490
+ range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1491
+ tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1492
+ experiment: z.ZodObject<{
1493
+ key: z.ZodString;
1494
+ variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
1495
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1496
+ include: z.ZodBoolean;
1497
+ type: z.ZodEnum<{
1498
+ regex: "regex";
1499
+ simple: "simple";
1500
+ }>;
1501
+ pattern: z.ZodString;
1502
+ }, z.core.$strict>>>;
1503
+ force: z.ZodOptional<z.ZodNumber>;
1504
+ active: z.ZodOptional<z.ZodBoolean>;
1505
+ persistQueryString: z.ZodOptional<z.ZodBoolean>;
1506
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1507
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1508
+ id: z.ZodString;
1509
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1510
+ gate: z.ZodOptional<z.ZodBoolean>;
1511
+ }, z.core.$strict>>>;
1512
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1513
+ coverage: z.ZodOptional<z.ZodNumber>;
1514
+ hashAttribute: z.ZodOptional<z.ZodString>;
1515
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
1516
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1517
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1518
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
1519
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
1520
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1521
+ attribute: z.ZodOptional<z.ZodString>;
1522
+ seed: z.ZodString;
1523
+ hashVersion: z.ZodLiteral<2>;
1524
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1525
+ }, z.core.$strict>>>;
1526
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1527
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1528
+ key: z.ZodOptional<z.ZodString>;
1529
+ name: z.ZodOptional<z.ZodString>;
1530
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1531
+ }, z.core.$strict>>>;
1532
+ seed: z.ZodOptional<z.ZodString>;
1533
+ name: z.ZodOptional<z.ZodString>;
1534
+ phase: z.ZodOptional<z.ZodString>;
1535
+ }, z.core.$strict>;
1536
+ result: z.ZodObject<{
1537
+ value: z.ZodJSONSchema;
1538
+ variationId: z.ZodNumber;
1539
+ key: z.ZodString;
1540
+ name: z.ZodOptional<z.ZodString>;
1541
+ bucket: z.ZodOptional<z.ZodNumber>;
1542
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1543
+ inExperiment: z.ZodBoolean;
1544
+ hashUsed: z.ZodOptional<z.ZodBoolean>;
1545
+ hashAttribute: z.ZodString;
1546
+ hashValue: z.ZodString;
1547
+ featureId: z.ZodNullable<z.ZodString>;
1548
+ stickyBucketUsed: z.ZodOptional<z.ZodBoolean>;
1549
+ }, z.core.$strict>;
1550
+ }, z.core.$strict>>>;
1551
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1552
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1553
+ id: z.ZodString;
1554
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1555
+ gate: z.ZodOptional<z.ZodBoolean>;
1556
+ }, z.core.$strict>>>;
1557
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1558
+ coverage: z.ZodOptional<z.ZodNumber>;
1559
+ hashAttribute: z.ZodOptional<z.ZodString>;
1560
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
1561
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1562
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1563
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
1564
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
1565
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1566
+ attribute: z.ZodOptional<z.ZodString>;
1567
+ seed: z.ZodString;
1568
+ hashVersion: z.ZodLiteral<2>;
1569
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1570
+ }, z.core.$strict>>>;
1571
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1572
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1573
+ key: z.ZodOptional<z.ZodString>;
1574
+ name: z.ZodOptional<z.ZodString>;
1575
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1576
+ }, z.core.$strict>>>;
1577
+ seed: z.ZodOptional<z.ZodString>;
1578
+ name: z.ZodOptional<z.ZodString>;
1579
+ phase: z.ZodOptional<z.ZodString>;
1580
+ }, z.core.$strict>>>;
1581
+ }, z.core.$strict>>;
1582
+ savedGroups: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1583
+ type: z.ZodLiteral<"hashed">;
1584
+ attributeKey: z.ZodString;
1585
+ values: z.ZodArray<z.ZodString>;
1586
+ }, z.core.$strict>, z.ZodObject<{
1587
+ type: z.ZodLiteral<"list">;
1588
+ attributeKey: z.ZodString;
1589
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1590
+ }, z.core.$strict>, z.ZodObject<{
1591
+ type: z.ZodLiteral<"condition">;
1592
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1593
+ }, z.core.$strict>]>>;
1594
+ experiments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
1595
+ key: z.ZodString;
1596
+ variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
1597
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1598
+ include: z.ZodBoolean;
1599
+ type: z.ZodEnum<{
1600
+ regex: "regex";
1601
+ simple: "simple";
1602
+ }>;
1603
+ pattern: z.ZodString;
1604
+ }, z.core.$strict>>>;
1605
+ force: z.ZodOptional<z.ZodNumber>;
1606
+ active: z.ZodOptional<z.ZodBoolean>;
1607
+ persistQueryString: z.ZodOptional<z.ZodBoolean>;
1608
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1609
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1610
+ id: z.ZodString;
1611
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1612
+ gate: z.ZodOptional<z.ZodBoolean>;
1613
+ }, z.core.$strict>>>;
1614
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1615
+ coverage: z.ZodOptional<z.ZodNumber>;
1616
+ hashAttribute: z.ZodOptional<z.ZodString>;
1617
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
1618
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1619
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1620
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
1621
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
1622
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1623
+ attribute: z.ZodOptional<z.ZodString>;
1624
+ seed: z.ZodString;
1625
+ hashVersion: z.ZodLiteral<2>;
1626
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1627
+ }, z.core.$strict>>>;
1628
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1629
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1630
+ key: z.ZodOptional<z.ZodString>;
1631
+ name: z.ZodOptional<z.ZodString>;
1632
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1633
+ }, z.core.$strict>>>;
1634
+ seed: z.ZodOptional<z.ZodString>;
1635
+ name: z.ZodOptional<z.ZodString>;
1636
+ phase: z.ZodOptional<z.ZodString>;
1637
+ }, z.core.$strict>>;
1638
+ }, z.core.$strict>;
1639
+ conditions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1640
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1641
+ port: z.ZodString;
1642
+ }, z.core.$strict>>>;
1643
+ scope: z.ZodObject<{
1644
+ projectId: z.ZodString;
1645
+ environment: z.ZodEnum<{
1646
+ sandbox: "sandbox";
1647
+ live: "live";
1648
+ }>;
1649
+ }, z.core.$strict>;
1650
+ funnelId: z.ZodUUID;
1651
+ versionId: z.ZodUUID;
1652
+ evaluationRevision: z.ZodNumber;
1653
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1654
+ topology: z.ZodObject<{
1655
+ entry: z.ZodString;
1656
+ nodes: z.ZodArray<z.ZodObject<{
1657
+ id: z.ZodString;
1658
+ type: z.ZodEnum<{
1659
+ output: "output";
1660
+ action: "action";
1661
+ split: "split";
1662
+ feature: "feature";
1663
+ condition: "condition";
1664
+ entry: "entry";
1665
+ coupon: "coupon";
1666
+ end: "end";
1667
+ screen: "screen";
1668
+ offering: "offering";
1669
+ coupons: "coupons";
1670
+ external_page: "external_page";
1671
+ wait: "wait";
1672
+ }>;
1673
+ outputs: z.ZodRecord<z.ZodString, z.ZodString>;
1674
+ writes: z.ZodRecord<z.ZodString, z.ZodString>;
1675
+ resources: z.ZodObject<{
1676
+ screenId: z.ZodOptional<z.ZodString>;
1677
+ paywallVersionId: z.ZodOptional<z.ZodUUID>;
1678
+ couponId: z.ZodOptional<z.ZodUUID>;
1679
+ couponIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1680
+ experimentId: z.ZodOptional<z.ZodUUID>;
1681
+ featureKey: z.ZodOptional<z.ZodString>;
1682
+ offeringVersionId: z.ZodOptional<z.ZodUUID>;
1683
+ }, z.core.$strict>;
1684
+ }, z.core.$strict>>;
1685
+ }, z.core.$strict>;
1686
+ }, z.core.$strict>, z.ZodObject<{
1687
+ evaluationMode: z.ZodLiteral<"remote">;
1688
+ scope: z.ZodObject<{
1689
+ projectId: z.ZodString;
1690
+ environment: z.ZodEnum<{
1691
+ sandbox: "sandbox";
1692
+ live: "live";
1693
+ }>;
1694
+ }, z.core.$strict>;
1695
+ funnelId: z.ZodUUID;
1696
+ versionId: z.ZodUUID;
1697
+ evaluationRevision: z.ZodNumber;
1698
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1699
+ topology: z.ZodObject<{
1700
+ entry: z.ZodString;
1701
+ nodes: z.ZodArray<z.ZodObject<{
1702
+ id: z.ZodString;
1703
+ type: z.ZodEnum<{
1704
+ output: "output";
1705
+ action: "action";
1706
+ split: "split";
1707
+ feature: "feature";
1708
+ condition: "condition";
1709
+ entry: "entry";
1710
+ coupon: "coupon";
1711
+ end: "end";
1712
+ screen: "screen";
1713
+ offering: "offering";
1714
+ coupons: "coupons";
1715
+ external_page: "external_page";
1716
+ wait: "wait";
1717
+ }>;
1718
+ outputs: z.ZodRecord<z.ZodString, z.ZodString>;
1719
+ writes: z.ZodRecord<z.ZodString, z.ZodString>;
1720
+ resources: z.ZodObject<{
1721
+ screenId: z.ZodOptional<z.ZodString>;
1722
+ paywallVersionId: z.ZodOptional<z.ZodUUID>;
1723
+ couponId: z.ZodOptional<z.ZodUUID>;
1724
+ couponIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1725
+ experimentId: z.ZodOptional<z.ZodUUID>;
1726
+ featureKey: z.ZodOptional<z.ZodString>;
1727
+ offeringVersionId: z.ZodOptional<z.ZodUUID>;
1728
+ }, z.core.$strict>;
1729
+ }, z.core.$strict>>;
1730
+ }, z.core.$strict>;
1731
+ }, z.core.$strict>], "evaluationMode">;
1732
+ type FunnelConfiguration = z.infer<typeof funnelConfigurationSchema>;
1733
+ /** Dedicated pure-evaluation delivery; existing configuration responses retain their exact contract. */
1734
+ declare const funnelLocalConfigurationSchema: z.ZodObject<{
1735
+ evaluationMode: z.ZodLiteral<"local">;
1736
+ growth: z.ZodObject<{
1737
+ scope: z.ZodObject<{
1738
+ projectId: z.ZodString;
1739
+ environment: z.ZodEnum<{
1740
+ sandbox: "sandbox";
1741
+ live: "live";
1742
+ }>;
1743
+ }, z.core.$strict>;
1744
+ generation: z.ZodString;
1745
+ evaluatedAt: z.ZodISODateTime;
1746
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1747
+ features: z.ZodRecord<z.ZodString, z.ZodObject<{
1748
+ defaultValue: z.ZodOptional<z.ZodJSONSchema>;
1749
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
1750
+ id: z.ZodOptional<z.ZodString>;
1751
+ force: z.ZodOptional<z.ZodJSONSchema>;
1752
+ variations: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
1753
+ key: z.ZodOptional<z.ZodString>;
1754
+ range: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1755
+ tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1756
+ experiment: z.ZodObject<{
1757
+ key: z.ZodString;
1758
+ variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
1759
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1760
+ include: z.ZodBoolean;
1761
+ type: z.ZodEnum<{
1762
+ regex: "regex";
1763
+ simple: "simple";
1764
+ }>;
1765
+ pattern: z.ZodString;
1766
+ }, z.core.$strict>>>;
1767
+ force: z.ZodOptional<z.ZodNumber>;
1768
+ active: z.ZodOptional<z.ZodBoolean>;
1769
+ persistQueryString: z.ZodOptional<z.ZodBoolean>;
1770
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1771
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1772
+ id: z.ZodString;
1773
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1774
+ gate: z.ZodOptional<z.ZodBoolean>;
1775
+ }, z.core.$strict>>>;
1776
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1777
+ coverage: z.ZodOptional<z.ZodNumber>;
1778
+ hashAttribute: z.ZodOptional<z.ZodString>;
1779
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
1780
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1781
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1782
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
1783
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
1784
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1785
+ attribute: z.ZodOptional<z.ZodString>;
1786
+ seed: z.ZodString;
1787
+ hashVersion: z.ZodLiteral<2>;
1788
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1789
+ }, z.core.$strict>>>;
1790
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1791
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1792
+ key: z.ZodOptional<z.ZodString>;
1793
+ name: z.ZodOptional<z.ZodString>;
1794
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1795
+ }, z.core.$strict>>>;
1796
+ seed: z.ZodOptional<z.ZodString>;
1797
+ name: z.ZodOptional<z.ZodString>;
1798
+ phase: z.ZodOptional<z.ZodString>;
1799
+ }, z.core.$strict>;
1800
+ result: z.ZodObject<{
1801
+ value: z.ZodJSONSchema;
1802
+ variationId: z.ZodNumber;
1803
+ key: z.ZodString;
1804
+ name: z.ZodOptional<z.ZodString>;
1805
+ bucket: z.ZodOptional<z.ZodNumber>;
1806
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1807
+ inExperiment: z.ZodBoolean;
1808
+ hashUsed: z.ZodOptional<z.ZodBoolean>;
1809
+ hashAttribute: z.ZodString;
1810
+ hashValue: z.ZodString;
1811
+ featureId: z.ZodNullable<z.ZodString>;
1812
+ stickyBucketUsed: z.ZodOptional<z.ZodBoolean>;
1813
+ }, z.core.$strict>;
1814
+ }, z.core.$strict>>>;
1815
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1816
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1817
+ id: z.ZodString;
1818
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1819
+ gate: z.ZodOptional<z.ZodBoolean>;
1820
+ }, z.core.$strict>>>;
1821
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1822
+ coverage: z.ZodOptional<z.ZodNumber>;
1823
+ hashAttribute: z.ZodOptional<z.ZodString>;
1824
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
1825
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1826
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1827
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
1828
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
1829
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1830
+ attribute: z.ZodOptional<z.ZodString>;
1831
+ seed: z.ZodString;
1832
+ hashVersion: z.ZodLiteral<2>;
1833
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1834
+ }, z.core.$strict>>>;
1835
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1836
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1837
+ key: z.ZodOptional<z.ZodString>;
1838
+ name: z.ZodOptional<z.ZodString>;
1839
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1840
+ }, z.core.$strict>>>;
1841
+ seed: z.ZodOptional<z.ZodString>;
1842
+ name: z.ZodOptional<z.ZodString>;
1843
+ phase: z.ZodOptional<z.ZodString>;
1844
+ }, z.core.$strict>>>;
1845
+ }, z.core.$strict>>;
1846
+ savedGroups: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
1847
+ type: z.ZodLiteral<"hashed">;
1848
+ attributeKey: z.ZodString;
1849
+ values: z.ZodArray<z.ZodString>;
1850
+ }, z.core.$strict>, z.ZodObject<{
1851
+ type: z.ZodLiteral<"list">;
1852
+ attributeKey: z.ZodString;
1853
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1854
+ }, z.core.$strict>, z.ZodObject<{
1855
+ type: z.ZodLiteral<"condition">;
1856
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1857
+ }, z.core.$strict>]>>;
1858
+ experiments: z.ZodRecord<z.ZodUUID, z.ZodObject<{
1859
+ key: z.ZodString;
1860
+ variations: z.ZodTuple<[z.ZodJSONSchema, z.ZodJSONSchema], z.ZodJSONSchema>;
1861
+ urlPatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1862
+ include: z.ZodBoolean;
1863
+ type: z.ZodEnum<{
1864
+ regex: "regex";
1865
+ simple: "simple";
1866
+ }>;
1867
+ pattern: z.ZodString;
1868
+ }, z.core.$strict>>>;
1869
+ force: z.ZodOptional<z.ZodNumber>;
1870
+ active: z.ZodOptional<z.ZodBoolean>;
1871
+ persistQueryString: z.ZodOptional<z.ZodBoolean>;
1872
+ condition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
1873
+ parentConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1874
+ id: z.ZodString;
1875
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1876
+ gate: z.ZodOptional<z.ZodBoolean>;
1877
+ }, z.core.$strict>>>;
1878
+ weights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
1879
+ coverage: z.ZodOptional<z.ZodNumber>;
1880
+ hashAttribute: z.ZodOptional<z.ZodString>;
1881
+ fallbackAttribute: z.ZodOptional<z.ZodString>;
1882
+ hashVersion: z.ZodOptional<z.ZodLiteral<2>>;
1883
+ disableStickyBucketing: z.ZodOptional<z.ZodBoolean>;
1884
+ bucketVersion: z.ZodOptional<z.ZodNumber>;
1885
+ minBucketVersion: z.ZodOptional<z.ZodNumber>;
1886
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
1887
+ attribute: z.ZodOptional<z.ZodString>;
1888
+ seed: z.ZodString;
1889
+ hashVersion: z.ZodLiteral<2>;
1890
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1891
+ }, z.core.$strict>>>;
1892
+ ranges: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
1893
+ meta: z.ZodOptional<z.ZodArray<z.ZodObject<{
1894
+ key: z.ZodOptional<z.ZodString>;
1895
+ name: z.ZodOptional<z.ZodString>;
1896
+ passthrough: z.ZodOptional<z.ZodBoolean>;
1897
+ }, z.core.$strict>>>;
1898
+ seed: z.ZodOptional<z.ZodString>;
1899
+ name: z.ZodOptional<z.ZodString>;
1900
+ phase: z.ZodOptional<z.ZodString>;
1901
+ }, z.core.$strict>>;
1902
+ }, z.core.$strict>;
1903
+ conditions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1904
+ condition: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1905
+ port: z.ZodString;
1906
+ }, z.core.$strict>>>;
1907
+ scope: z.ZodObject<{
1908
+ projectId: z.ZodString;
1909
+ environment: z.ZodEnum<{
1910
+ sandbox: "sandbox";
1911
+ live: "live";
1912
+ }>;
1913
+ }, z.core.$strict>;
1914
+ funnelId: z.ZodUUID;
1915
+ versionId: z.ZodUUID;
1916
+ evaluationRevision: z.ZodNumber;
1917
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
1918
+ topology: z.ZodObject<{
1919
+ entry: z.ZodString;
1920
+ nodes: z.ZodArray<z.ZodObject<{
1921
+ id: z.ZodString;
1922
+ type: z.ZodEnum<{
1923
+ output: "output";
1924
+ action: "action";
1925
+ split: "split";
1926
+ feature: "feature";
1927
+ condition: "condition";
1928
+ entry: "entry";
1929
+ coupon: "coupon";
1930
+ end: "end";
1931
+ screen: "screen";
1932
+ offering: "offering";
1933
+ coupons: "coupons";
1934
+ external_page: "external_page";
1935
+ wait: "wait";
1936
+ }>;
1937
+ outputs: z.ZodRecord<z.ZodString, z.ZodString>;
1938
+ writes: z.ZodRecord<z.ZodString, z.ZodString>;
1939
+ resources: z.ZodObject<{
1940
+ screenId: z.ZodOptional<z.ZodString>;
1941
+ paywallVersionId: z.ZodOptional<z.ZodUUID>;
1942
+ couponId: z.ZodOptional<z.ZodUUID>;
1943
+ couponIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1944
+ experimentId: z.ZodOptional<z.ZodUUID>;
1945
+ featureKey: z.ZodOptional<z.ZodString>;
1946
+ offeringVersionId: z.ZodOptional<z.ZodUUID>;
1947
+ }, z.core.$strict>;
1948
+ }, z.core.$strict>>;
1949
+ }, z.core.$strict>;
1950
+ evaluation: z.ZodObject<{
1951
+ maxTransitions: z.ZodNumber;
1952
+ variables: z.ZodRecord<z.ZodString, z.ZodObject<{
1953
+ nullable: z.ZodBoolean;
1954
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1955
+ type: z.ZodEnum<{
1956
+ string: "string";
1957
+ number: "number";
1958
+ boolean: "boolean";
1959
+ array: "array";
1960
+ strings: "strings";
1961
+ json: "json";
1962
+ offering_version: "offering_version";
1963
+ reward: "reward";
1964
+ paywall_version: "paywall_version";
1965
+ }>;
1966
+ items: z.ZodOptional<z.ZodObject<{
1967
+ type: z.ZodEnum<{
1968
+ string: "string";
1969
+ number: "number";
1970
+ boolean: "boolean";
1971
+ strings: "strings";
1972
+ json: "json";
1973
+ offering_version: "offering_version";
1974
+ reward: "reward";
1975
+ paywall_version: "paywall_version";
1976
+ }>;
1977
+ nullable: z.ZodBoolean;
1978
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1979
+ }, z.core.$strict>>;
1980
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1981
+ type: z.ZodLiteral<"input">;
1982
+ }, z.core.$strict>, z.ZodObject<{
1983
+ type: z.ZodLiteral<"node">;
1984
+ }, z.core.$strict>, z.ZodObject<{
1985
+ type: z.ZodEnum<{
1986
+ attribute: "attribute";
1987
+ parameter: "parameter";
1988
+ }>;
1989
+ key: z.ZodString;
1990
+ }, z.core.$strict>], "type">;
1991
+ }, z.core.$strict>>;
1992
+ outputSchema: z.ZodObject<{
1993
+ nullable: z.ZodBoolean;
1994
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
1995
+ type: z.ZodEnum<{
1996
+ string: "string";
1997
+ number: "number";
1998
+ boolean: "boolean";
1999
+ array: "array";
2000
+ strings: "strings";
2001
+ json: "json";
2002
+ offering_version: "offering_version";
2003
+ reward: "reward";
2004
+ paywall_version: "paywall_version";
2005
+ }>;
2006
+ items: z.ZodOptional<z.ZodObject<{
2007
+ type: z.ZodEnum<{
2008
+ string: "string";
2009
+ number: "number";
2010
+ boolean: "boolean";
2011
+ strings: "strings";
2012
+ json: "json";
2013
+ offering_version: "offering_version";
2014
+ reward: "reward";
2015
+ paywall_version: "paywall_version";
2016
+ }>;
2017
+ nullable: z.ZodBoolean;
2018
+ enum: z.ZodOptional<z.ZodArray<z.ZodString>>;
2019
+ }, z.core.$strict>>;
2020
+ }, z.core.$strict>;
2021
+ terminals: z.ZodRecord<z.ZodString, z.ZodObject<{
2022
+ outcome: z.ZodEnum<{
2023
+ failed: "failed";
2024
+ completed: "completed";
2025
+ closed: "closed";
2026
+ ineligible: "ineligible";
2027
+ }>;
2028
+ output: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
2029
+ type: z.ZodLiteral<"literal">;
2030
+ value: z.ZodJSONSchema;
2031
+ }, z.core.$strict>, z.ZodObject<{
2032
+ type: z.ZodLiteral<"variable">;
2033
+ key: z.ZodString;
2034
+ path: z.ZodOptional<z.ZodString>;
2035
+ }, z.core.$strict>, z.ZodObject<{
2036
+ type: z.ZodLiteral<"feature">;
2037
+ featureKey: z.ZodString;
2038
+ }, z.core.$strict>], "type">>;
2039
+ }, z.core.$strict>>;
2040
+ }, z.core.$strict>;
2041
+ }, z.core.$strict>;
2042
+ type FunnelLocalConfiguration = z.infer<typeof funnelLocalConfigurationSchema>;
2043
+
2044
+ type FunnelNodeEvaluationContext = Pick<EvaluationContext, "attributes" | "stickyBucketAssignmentDocs" | "saveStickyBucketAssignmentDoc" | "onFeatureUsage" | "onExperimentViewed">;
2045
+
2046
+ /** Pure rule evaluation, never a command or permission to perform a commercial action. No network I/O. */
2047
+ declare function evaluateFunnelNode(configuration: FunnelConfiguration, nodeId: string, input: FunnelNodeEvaluationContext): {
2048
+ nodeId: string;
2049
+ port: string;
2050
+ target: string;
2051
+ value?: JsonValue;
2052
+ };
2053
+
2054
+ export { type FunnelNodeEvaluationContext as F, type MerchantBridgeManifest as M, type FunnelLocalConfiguration as a, type MerchantBridgeCommand as b, type MerchantBridgeRequest as c, merchantBridgeCommandInputs as d, evaluateFunnelNode as e, merchantBridgeCommandOutputs as f, merchantBridgeOperationInputSchema as g, merchantBridgeOperationAuthoritySchema as m };