@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
package/dist/server.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- import { F as FoundationApi, I as InvoiceModeParams } from './api-C9P338XT.js';
2
- import { O as IndianaServerOptions, r as IndianaError, Q as FunnelProcessSuppression, T as FunnelProcessCommand, J as FunnelProcessResponse, C as CustomerSession, H as FunnelProcessOpenInput, M as FunnelProcessMutation, u as PaywallStartInput, P as PaywallSession, k as FeatureClientOptions, R as RemoteFeatureResult } from './funnel-local-client-CSA9XoC4.js';
3
- export { j as FeatureClient, g as FunnelStartInput, L as LocalFunnelClient, q as LocalFunnelClientOptions, x as createFeatureClient, U as createFunnelStartClient, z as createLocalFunnelClient } from './funnel-local-client-CSA9XoC4.js';
1
+ import { F as FoundationApi, I as InvoiceModeParams } from './api-BpeJkr6U.js';
2
+ import { O as IndianaServerOptions, t as IndianaError, Q as FunnelProcessSuppression, T as FunnelProcessCommand, J as FunnelProcessResponse, C as CustomerSession, H as FunnelProcessOpenInput, M as FunnelProcessMutation, v as PaywallStartInput, P as PaywallSession, l as FeatureClientOptions, R as RemoteFeatureResult } from './funnel-local-client-DoYVcZ1z.js';
3
+ export { k as FeatureClient, g as FunnelStartInput, L as LocalFunnelClient, r as LocalFunnelClientOptions, y as createFeatureClient, U as createFunnelStartClient, A as createLocalFunnelClient } from './funnel-local-client-DoYVcZ1z.js';
4
4
  import * as zod from 'zod';
5
5
  import { z } from 'zod';
6
- import { S as StackNode } from './screen-DRP7nsrQ.js';
7
- import { a as ConfigurationSync } from './configuration-sync-eEFj_oKG.js';
8
- export { c as createConfigurationSync } from './configuration-sync-eEFj_oKG.js';
6
+ import { S as StackNode } from './screen-CGCJ46b1.js';
7
+ import { a as ConfigurationSync } from './configuration-sync-DdTRUv7A.js';
8
+ export { c as createConfigurationSync } from './configuration-sync-DdTRUv7A.js';
9
9
  import { J as JsonValue, E as EvaluationContext, s as stickyAssignmentDocumentSchema, F as FeatureResult } from './growth-rules-B4YYy64R.js';
10
- import { d as FunnelLocalConfiguration, f as MerchantBridgeCommand, g as MerchantBridgeRequest, m as merchantBridgeOperationAuthoritySchema, M as MerchantBridgeManifest, h as merchantBridgeCommandInputs, i as merchantBridgeCommandOutputs, j as merchantBridgeOperationInputSchema } from './funnel-node-evaluation-Cg-4tcAs.js';
11
- export { F as FunnelNodeEvaluationContext, k as MerchantRequirementCheckInput, l as MerchantRequirementCheckResult, n as entitlementRequirementDigest, e as evaluateFunnelNode } from './funnel-node-evaluation-Cg-4tcAs.js';
12
- export { d as AiPricingOptions, b as AiTokenQuote, a as AiTokenUsage, A as AiUsageContext, e as AiUsageMiddlewareOptions, f as AiUsageRecord, g as aiPriceSnapshotSchema, h as aiTokenQuoteSchema, c as createAiPricing, i as createAiUsageMiddleware, j as createConfiguredAiPricing } from './ai-usage-B6RepnmH.js';
10
+ import { d as FunnelLocalConfiguration, f as MerchantBridgeCommand, M as MerchantBridgeManifest, m as merchantBridgeOperationInputSchema } from './funnel-node-evaluation-COxXtZEQ.js';
11
+ export { F as FunnelNodeEvaluationContext, g as MerchantRequirementCheckInput, h as MerchantRequirementCheckResult, i as entitlementRequirementDigest, e as evaluateFunnelNode } from './funnel-node-evaluation-COxXtZEQ.js';
12
+ export { d as AiPricingOptions, b as AiTokenQuote, a as AiTokenUsage, A as AiUsageContext, e as AiUsageMiddlewareOptions, f as AiUsageRecord, g as aiPriceSnapshotSchema, h as aiTokenQuoteSchema, c as createAiPricing, i as createAiUsageMiddleware, j as createConfiguredAiPricing } from './ai-usage-E4c9NSJK.js';
13
13
  import 'zod/v4';
14
14
  import '@ai-sdk/provider';
15
15
 
@@ -101,8 +101,8 @@ declare const merchantPreparationIntentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
101
101
  }>;
102
102
  amountMinor: z.ZodOptional<z.ZodNumber>;
103
103
  entitlementAction: z.ZodEnum<{
104
- retain: "retain";
105
104
  revoke: "revoke";
105
+ retain: "retain";
106
106
  }>;
107
107
  subject: z.ZodObject<{
108
108
  scope: z.ZodObject<{
@@ -209,8 +209,8 @@ declare const merchantPreparationAuthoritySchema: z.ZodObject<{
209
209
  }>;
210
210
  amountMinor: z.ZodOptional<z.ZodNumber>;
211
211
  entitlementAction: z.ZodEnum<{
212
- retain: "retain";
213
212
  revoke: "revoke";
213
+ retain: "retain";
214
214
  }>;
215
215
  subject: z.ZodObject<{
216
216
  scope: z.ZodObject<{
@@ -367,8 +367,8 @@ declare const merchantPreparedTermsSchema: z.ZodObject<{
367
367
  }>;
368
368
  amountMinor: z.ZodOptional<z.ZodNumber>;
369
369
  entitlementAction: z.ZodEnum<{
370
- retain: "retain";
371
370
  revoke: "revoke";
371
+ retain: "retain";
372
372
  }>;
373
373
  subject: z.ZodObject<{
374
374
  scope: z.ZodObject<{
@@ -488,9 +488,9 @@ declare const merchantPreparedTermsSchema: z.ZodObject<{
488
488
  expectedEffects: z.ZodArray<z.ZodObject<{
489
489
  reference: z.ZodString;
490
490
  kind: z.ZodEnum<{
491
- change: "change";
492
491
  revoke: "revoke";
493
492
  grant: "grant";
493
+ change: "change";
494
494
  }>;
495
495
  description: z.ZodString;
496
496
  quantity: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -522,11 +522,12 @@ declare const merchantBridgeV4ManifestSchema: z.ZodObject<{
522
522
  bridgeVersion: z.ZodLiteral<4>;
523
523
  capabilities: z.ZodArray<z.ZodEnum<{
524
524
  presentation: "presentation";
525
+ purchases: "purchases";
526
+ authorizations: "authorizations";
525
527
  session: "session";
526
528
  catalog: "catalog";
527
529
  customer_commerce: "customer_commerce";
528
530
  presentation_events: "presentation_events";
529
- purchases: "purchases";
530
531
  operation_status: "operation_status";
531
532
  billing_records: "billing_records";
532
533
  subscription_changes: "subscription_changes";
@@ -535,7 +536,6 @@ declare const merchantBridgeV4ManifestSchema: z.ZodObject<{
535
536
  native_offers: "native_offers";
536
537
  preparations: "preparations";
537
538
  benefit_claims: "benefit_claims";
538
- authorizations: "authorizations";
539
539
  business_results: "business_results";
540
540
  }>>;
541
541
  checkKinds: z.ZodArray<z.ZodEnum<{
@@ -574,9 +574,9 @@ declare const merchantBridgeV4ManifestSchema: z.ZodObject<{
574
574
  "purchase.completed": "purchase.completed";
575
575
  "purchase.closed": "purchase.closed";
576
576
  "subscription.observed": "subscription.observed";
577
- "invoice.paid": "invoice.paid";
578
577
  "subscription.change.completed": "subscription.change.completed";
579
578
  "subscription.change.closed": "subscription.change.closed";
579
+ "invoice.paid": "invoice.paid";
580
580
  "refund.updated": "refund.updated";
581
581
  }>>;
582
582
  profiles: z.ZodArray<z.ZodEnum<{
@@ -723,8 +723,8 @@ declare const merchantBridgeV4CommandInputs: {
723
723
  }>;
724
724
  amountMinor: z.ZodOptional<z.ZodNumber>;
725
725
  entitlementAction: z.ZodEnum<{
726
- retain: "retain";
727
726
  revoke: "revoke";
727
+ retain: "retain";
728
728
  }>;
729
729
  subject: z.ZodObject<{
730
730
  scope: z.ZodObject<{
@@ -766,11 +766,12 @@ declare const merchantBridgeV4CommandOutputs: {
766
766
  bridgeVersion: z.ZodLiteral<4>;
767
767
  capabilities: z.ZodArray<z.ZodEnum<{
768
768
  presentation: "presentation";
769
+ purchases: "purchases";
770
+ authorizations: "authorizations";
769
771
  session: "session";
770
772
  catalog: "catalog";
771
773
  customer_commerce: "customer_commerce";
772
774
  presentation_events: "presentation_events";
773
- purchases: "purchases";
774
775
  operation_status: "operation_status";
775
776
  billing_records: "billing_records";
776
777
  subscription_changes: "subscription_changes";
@@ -779,7 +780,6 @@ declare const merchantBridgeV4CommandOutputs: {
779
780
  native_offers: "native_offers";
780
781
  preparations: "preparations";
781
782
  benefit_claims: "benefit_claims";
782
- authorizations: "authorizations";
783
783
  business_results: "business_results";
784
784
  }>>;
785
785
  checkKinds: z.ZodArray<z.ZodEnum<{
@@ -818,9 +818,9 @@ declare const merchantBridgeV4CommandOutputs: {
818
818
  "purchase.completed": "purchase.completed";
819
819
  "purchase.closed": "purchase.closed";
820
820
  "subscription.observed": "subscription.observed";
821
- "invoice.paid": "invoice.paid";
822
821
  "subscription.change.completed": "subscription.change.completed";
823
822
  "subscription.change.closed": "subscription.change.closed";
823
+ "invoice.paid": "invoice.paid";
824
824
  "refund.updated": "refund.updated";
825
825
  }>>;
826
826
  profiles: z.ZodArray<z.ZodEnum<{
@@ -1041,8 +1041,8 @@ declare const merchantBridgeV4CommandOutputs: {
1041
1041
  }>;
1042
1042
  amountMinor: z.ZodOptional<z.ZodNumber>;
1043
1043
  entitlementAction: z.ZodEnum<{
1044
- retain: "retain";
1045
1044
  revoke: "revoke";
1045
+ retain: "retain";
1046
1046
  }>;
1047
1047
  subject: z.ZodObject<{
1048
1048
  scope: z.ZodObject<{
@@ -1162,9 +1162,9 @@ declare const merchantBridgeV4CommandOutputs: {
1162
1162
  expectedEffects: z.ZodArray<z.ZodObject<{
1163
1163
  reference: z.ZodString;
1164
1164
  kind: z.ZodEnum<{
1165
- change: "change";
1166
1165
  revoke: "revoke";
1167
1166
  grant: "grant";
1167
+ change: "change";
1168
1168
  }>;
1169
1169
  description: z.ZodString;
1170
1170
  quantity: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
@@ -1368,8 +1368,8 @@ declare const merchantBridgeV4RequestSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
1368
1368
  }>;
1369
1369
  amountMinor: z.ZodOptional<z.ZodNumber>;
1370
1370
  entitlementAction: z.ZodEnum<{
1371
- retain: "retain";
1372
1371
  revoke: "revoke";
1372
+ retain: "retain";
1373
1373
  }>;
1374
1374
  subject: z.ZodObject<{
1375
1375
  scope: z.ZodObject<{
@@ -1441,6 +1441,1735 @@ declare const merchantBridgeV4ProblemSchema: z.ZodObject<{
1441
1441
  }>;
1442
1442
  }, z.core.$strict>;
1443
1443
 
1444
+ declare const merchantBridgeOperationAuthoritySchema: z.ZodObject<{
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
+ operationId: z.ZodUUID;
1454
+ customerId: z.ZodUUID;
1455
+ confirmedAt: z.ZodNullable<z.ZodISODateTime>;
1456
+ initialExecutionAllowed: z.ZodBoolean;
1457
+ instruction: z.ZodDiscriminatedUnion<[z.ZodObject<{
1458
+ type: z.ZodLiteral<"purchase">;
1459
+ mode: z.ZodEnum<{
1460
+ payment: "payment";
1461
+ subscription: "subscription";
1462
+ }>;
1463
+ lineItems: z.ZodArray<z.ZodObject<{
1464
+ priceId: z.ZodUUID;
1465
+ productVersionId: z.ZodUUID;
1466
+ productId: z.ZodString;
1467
+ quantity: z.ZodNumber;
1468
+ unitAmountMinor: z.ZodNumber;
1469
+ totalMinor: z.ZodNumber;
1470
+ interval: z.ZodEnum<{
1471
+ week: "week";
1472
+ month: "month";
1473
+ year: "year";
1474
+ one_off: "one_off";
1475
+ }>;
1476
+ intervalCount: z.ZodNumber;
1477
+ kind: z.ZodEnum<{
1478
+ fixed: "fixed";
1479
+ prepaid: "prepaid";
1480
+ seat: "seat";
1481
+ }>;
1482
+ tiers: z.ZodNullable<z.ZodObject<{
1483
+ mode: z.ZodEnum<{
1484
+ graduated: "graduated";
1485
+ volume: "volume";
1486
+ }>;
1487
+ tiers: z.ZodArray<z.ZodObject<{
1488
+ upTo: z.ZodNullable<z.ZodNumber>;
1489
+ unitAmountMinor: z.ZodNumber;
1490
+ flatAmountMinor: z.ZodOptional<z.ZodNumber>;
1491
+ }, z.core.$strict>>;
1492
+ }, z.core.$strict>>;
1493
+ }, z.core.$strict>>;
1494
+ catalogAmountMinor: z.ZodNumber;
1495
+ nativeDiscountMinor: z.ZodOptional<z.ZodNumber>;
1496
+ discount: z.ZodNullable<z.ZodObject<{
1497
+ grantId: z.ZodUUID;
1498
+ couponId: z.ZodUUID;
1499
+ amountMinor: z.ZodNumber;
1500
+ applicationPolicy: z.ZodOptional<z.ZodEnum<{
1501
+ replace: "replace";
1502
+ stack_native: "stack_native";
1503
+ }>>;
1504
+ applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1505
+ terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
1506
+ type: z.ZodLiteral<"percent">;
1507
+ percentOff: z.ZodNumber;
1508
+ }, z.core.$strict>, z.ZodObject<{
1509
+ type: z.ZodLiteral<"amount">;
1510
+ amountOffMinor: z.ZodNumber;
1511
+ currency: z.ZodString;
1512
+ }, z.core.$strict>], "type">;
1513
+ duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1514
+ type: z.ZodLiteral<"once">;
1515
+ }, z.core.$strict>, z.ZodObject<{
1516
+ type: z.ZodLiteral<"forever">;
1517
+ }, z.core.$strict>, z.ZodObject<{
1518
+ type: z.ZodLiteral<"repeating">;
1519
+ months: z.ZodNumber;
1520
+ }, z.core.$strict>], "type">;
1521
+ }, z.core.$strict>>;
1522
+ trialPeriodDays: z.ZodNullable<z.ZodNumber>;
1523
+ automaticTax: z.ZodBoolean;
1524
+ provider: z.ZodLiteral<"merchant">;
1525
+ executor: z.ZodLiteral<"merchant">;
1526
+ operationId: z.ZodUUID;
1527
+ customerId: z.ZodUUID;
1528
+ configurationRevision: z.ZodNumber;
1529
+ connectionRevision: z.ZodNumber;
1530
+ currency: z.ZodString;
1531
+ expiresAt: z.ZodISODateTime;
1532
+ }, z.core.$strict>, z.ZodObject<{
1533
+ type: z.ZodLiteral<"subscription_change">;
1534
+ subscriptionId: z.ZodUUID;
1535
+ merchantSubscriptionId: z.ZodString;
1536
+ membershipId: z.ZodUUID;
1537
+ subscriptionAction: z.ZodEnum<{
1538
+ update: "update";
1539
+ cancel: "cancel";
1540
+ schedule: "schedule";
1541
+ release: "release";
1542
+ }>;
1543
+ supersedesOperationId: z.ZodNullable<z.ZodUUID>;
1544
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
1545
+ type: z.ZodLiteral<"cancel">;
1546
+ }, z.core.$strict>, z.ZodObject<{
1547
+ type: z.ZodLiteral<"uncancel">;
1548
+ }, z.core.$strict>, z.ZodObject<{
1549
+ type: z.ZodLiteral<"plan">;
1550
+ productVersionId: z.ZodUUID;
1551
+ }, z.core.$strict>, z.ZodObject<{
1552
+ type: z.ZodLiteral<"seats">;
1553
+ licenseKey: z.ZodString;
1554
+ quantity: z.ZodNumber;
1555
+ }, z.core.$strict>, z.ZodObject<{
1556
+ type: z.ZodLiteral<"quantity">;
1557
+ internal_feature_id: z.ZodUUID;
1558
+ quantity: z.ZodNumber;
1559
+ }, z.core.$strict>, z.ZodObject<{
1560
+ type: z.ZodLiteral<"billing_cycle">;
1561
+ billingCycleAnchor: z.ZodUnion<readonly [z.ZodLiteral<"now">, z.ZodNumber]>;
1562
+ }, z.core.$strict>], "type">;
1563
+ timing: z.ZodEnum<{
1564
+ immediate: "immediate";
1565
+ renewal: "renewal";
1566
+ }>;
1567
+ effectiveAt: z.ZodISODateTime;
1568
+ creditMinor: z.ZodNumber;
1569
+ debitMinor: z.ZodNumber;
1570
+ totalMinor: z.ZodNumber;
1571
+ discountMinor: z.ZodNumber;
1572
+ discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1573
+ grantId: z.ZodUUID;
1574
+ couponId: z.ZodUUID;
1575
+ amountMinor: z.ZodNumber;
1576
+ applicationPolicy: z.ZodOptional<z.ZodEnum<{
1577
+ replace: "replace";
1578
+ stack_native: "stack_native";
1579
+ }>>;
1580
+ applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1581
+ terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
1582
+ type: z.ZodLiteral<"percent">;
1583
+ percentOff: z.ZodNumber;
1584
+ }, z.core.$strict>, z.ZodObject<{
1585
+ type: z.ZodLiteral<"amount">;
1586
+ amountOffMinor: z.ZodNumber;
1587
+ currency: z.ZodString;
1588
+ }, z.core.$strict>], "type">;
1589
+ duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1590
+ type: z.ZodLiteral<"once">;
1591
+ }, z.core.$strict>, z.ZodObject<{
1592
+ type: z.ZodLiteral<"forever">;
1593
+ }, z.core.$strict>, z.ZodObject<{
1594
+ type: z.ZodLiteral<"repeating">;
1595
+ months: z.ZodNumber;
1596
+ }, z.core.$strict>], "type">;
1597
+ }, z.core.$strict>>>;
1598
+ taxMinor: z.ZodNumber;
1599
+ proration: z.ZodEnum<{
1600
+ none: "none";
1601
+ create_prorations: "create_prorations";
1602
+ always_invoice: "always_invoice";
1603
+ }>;
1604
+ lineItems: z.ZodArray<z.ZodObject<{
1605
+ priceId: z.ZodUUID;
1606
+ productVersionId: z.ZodUUID;
1607
+ productId: z.ZodString;
1608
+ unitAmountMinor: z.ZodNumber;
1609
+ totalMinor: z.ZodNumber;
1610
+ interval: z.ZodEnum<{
1611
+ week: "week";
1612
+ month: "month";
1613
+ year: "year";
1614
+ one_off: "one_off";
1615
+ }>;
1616
+ intervalCount: z.ZodNumber;
1617
+ kind: z.ZodEnum<{
1618
+ fixed: "fixed";
1619
+ prepaid: "prepaid";
1620
+ seat: "seat";
1621
+ }>;
1622
+ tiers: z.ZodNullable<z.ZodObject<{
1623
+ mode: z.ZodEnum<{
1624
+ graduated: "graduated";
1625
+ volume: "volume";
1626
+ }>;
1627
+ tiers: z.ZodArray<z.ZodObject<{
1628
+ upTo: z.ZodNullable<z.ZodNumber>;
1629
+ unitAmountMinor: z.ZodNumber;
1630
+ flatAmountMinor: z.ZodOptional<z.ZodNumber>;
1631
+ }, z.core.$strict>>;
1632
+ }, z.core.$strict>>;
1633
+ quantity: z.ZodNumber;
1634
+ }, z.core.$strict>>;
1635
+ removePriceIds: z.ZodArray<z.ZodUUID>;
1636
+ sourceLineItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
1637
+ priceId: z.ZodUUID;
1638
+ productVersionId: z.ZodUUID;
1639
+ productId: z.ZodString;
1640
+ quantity: z.ZodNumber;
1641
+ unitAmountMinor: z.ZodNumber;
1642
+ totalMinor: z.ZodNumber;
1643
+ interval: z.ZodEnum<{
1644
+ week: "week";
1645
+ month: "month";
1646
+ year: "year";
1647
+ one_off: "one_off";
1648
+ }>;
1649
+ intervalCount: z.ZodNumber;
1650
+ kind: z.ZodEnum<{
1651
+ fixed: "fixed";
1652
+ prepaid: "prepaid";
1653
+ seat: "seat";
1654
+ }>;
1655
+ tiers: z.ZodNullable<z.ZodObject<{
1656
+ mode: z.ZodEnum<{
1657
+ graduated: "graduated";
1658
+ volume: "volume";
1659
+ }>;
1660
+ tiers: z.ZodArray<z.ZodObject<{
1661
+ upTo: z.ZodNullable<z.ZodNumber>;
1662
+ unitAmountMinor: z.ZodNumber;
1663
+ flatAmountMinor: z.ZodOptional<z.ZodNumber>;
1664
+ }, z.core.$strict>>;
1665
+ }, z.core.$strict>>;
1666
+ }, z.core.$strict>>>;
1667
+ provider: z.ZodLiteral<"merchant">;
1668
+ executor: z.ZodLiteral<"merchant">;
1669
+ operationId: z.ZodUUID;
1670
+ customerId: z.ZodUUID;
1671
+ configurationRevision: z.ZodNumber;
1672
+ connectionRevision: z.ZodNumber;
1673
+ currency: z.ZodString;
1674
+ expiresAt: z.ZodISODateTime;
1675
+ }, z.core.$strict>, z.ZodObject<{
1676
+ type: z.ZodLiteral<"refund">;
1677
+ invoiceId: z.ZodUUID;
1678
+ merchantInvoiceId: z.ZodString;
1679
+ amountMinor: z.ZodNumber;
1680
+ mode: z.ZodEnum<{
1681
+ full: "full";
1682
+ partial: "partial";
1683
+ }>;
1684
+ entitlementAction: z.ZodEnum<{
1685
+ revoke: "revoke";
1686
+ retain: "retain";
1687
+ }>;
1688
+ cancelSubscriptions: z.ZodArray<z.ZodString>;
1689
+ provider: z.ZodLiteral<"merchant">;
1690
+ executor: z.ZodLiteral<"merchant">;
1691
+ operationId: z.ZodUUID;
1692
+ customerId: z.ZodUUID;
1693
+ configurationRevision: z.ZodNumber;
1694
+ connectionRevision: z.ZodNumber;
1695
+ currency: z.ZodString;
1696
+ expiresAt: z.ZodISODateTime;
1697
+ }, z.core.$strict>], "type">;
1698
+ merchantTerms: z.ZodOptional<z.ZodObject<{
1699
+ request: z.ZodDiscriminatedUnion<[z.ZodObject<{
1700
+ action: z.ZodLiteral<"purchase">;
1701
+ mode: z.ZodEnum<{
1702
+ payment: "payment";
1703
+ subscription: "subscription";
1704
+ }>;
1705
+ currency: z.ZodString;
1706
+ items: z.ZodArray<z.ZodObject<{
1707
+ merchantProductId: z.ZodString;
1708
+ merchantPriceId: z.ZodString;
1709
+ productVersionId: z.ZodOptional<z.ZodUUID>;
1710
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1711
+ }, z.core.$strict>>;
1712
+ offerRefs: z.ZodArray<z.ZodString>;
1713
+ subject: z.ZodObject<{
1714
+ scope: z.ZodObject<{
1715
+ projectId: z.ZodUUID;
1716
+ environmentId: z.ZodUUID;
1717
+ environment: z.ZodEnum<{
1718
+ sandbox: "sandbox";
1719
+ live: "live";
1720
+ }>;
1721
+ }, z.core.$strict>;
1722
+ customerId: z.ZodUUID;
1723
+ }, z.core.$strict>;
1724
+ operationId: z.ZodUUID;
1725
+ configurationRevision: z.ZodNumber;
1726
+ connectionRevision: z.ZodNumber;
1727
+ expiresAt: z.ZodISODateTime;
1728
+ }, z.core.$strict>, z.ZodObject<{
1729
+ action: z.ZodLiteral<"subscription_change">;
1730
+ currency: z.ZodString;
1731
+ merchantSubscriptionId: z.ZodString;
1732
+ change: z.ZodDiscriminatedUnion<[z.ZodObject<{
1733
+ type: z.ZodLiteral<"cancel">;
1734
+ }, z.core.$strict>, z.ZodObject<{
1735
+ type: z.ZodLiteral<"uncancel">;
1736
+ }, z.core.$strict>, z.ZodObject<{
1737
+ type: z.ZodLiteral<"plan">;
1738
+ productVersionId: z.ZodUUID;
1739
+ }, z.core.$strict>, z.ZodObject<{
1740
+ type: z.ZodLiteral<"seats">;
1741
+ licenseKey: z.ZodString;
1742
+ quantity: z.ZodNumber;
1743
+ }, z.core.$strict>, z.ZodObject<{
1744
+ type: z.ZodLiteral<"quantity">;
1745
+ internal_feature_id: z.ZodUUID;
1746
+ quantity: z.ZodNumber;
1747
+ }, z.core.$strict>, z.ZodObject<{
1748
+ type: z.ZodLiteral<"billing_cycle">;
1749
+ billingCycleAnchor: z.ZodUnion<readonly [z.ZodLiteral<"now">, z.ZodNumber]>;
1750
+ }, z.core.$strict>], "type">;
1751
+ timing: z.ZodEnum<{
1752
+ immediate: "immediate";
1753
+ renewal: "renewal";
1754
+ }>;
1755
+ proration: z.ZodEnum<{
1756
+ none: "none";
1757
+ create_prorations: "create_prorations";
1758
+ always_invoice: "always_invoice";
1759
+ }>;
1760
+ offerRefs: z.ZodArray<z.ZodString>;
1761
+ subject: z.ZodObject<{
1762
+ scope: z.ZodObject<{
1763
+ projectId: z.ZodUUID;
1764
+ environmentId: z.ZodUUID;
1765
+ environment: z.ZodEnum<{
1766
+ sandbox: "sandbox";
1767
+ live: "live";
1768
+ }>;
1769
+ }, z.core.$strict>;
1770
+ customerId: z.ZodUUID;
1771
+ }, z.core.$strict>;
1772
+ operationId: z.ZodUUID;
1773
+ configurationRevision: z.ZodNumber;
1774
+ connectionRevision: z.ZodNumber;
1775
+ expiresAt: z.ZodISODateTime;
1776
+ }, z.core.$strict>, z.ZodObject<{
1777
+ action: z.ZodLiteral<"refund">;
1778
+ currency: z.ZodString;
1779
+ merchantInvoiceId: z.ZodString;
1780
+ mode: z.ZodEnum<{
1781
+ full: "full";
1782
+ partial: "partial";
1783
+ }>;
1784
+ amountMinor: z.ZodOptional<z.ZodNumber>;
1785
+ entitlementAction: z.ZodEnum<{
1786
+ revoke: "revoke";
1787
+ retain: "retain";
1788
+ }>;
1789
+ subject: z.ZodObject<{
1790
+ scope: z.ZodObject<{
1791
+ projectId: z.ZodUUID;
1792
+ environmentId: z.ZodUUID;
1793
+ environment: z.ZodEnum<{
1794
+ sandbox: "sandbox";
1795
+ live: "live";
1796
+ }>;
1797
+ }, z.core.$strict>;
1798
+ customerId: z.ZodUUID;
1799
+ }, z.core.$strict>;
1800
+ operationId: z.ZodUUID;
1801
+ configurationRevision: z.ZodNumber;
1802
+ connectionRevision: z.ZodNumber;
1803
+ expiresAt: z.ZodISODateTime;
1804
+ }, z.core.$strict>], "action">;
1805
+ requestDigest: z.ZodString;
1806
+ merchantQuoteId: z.ZodString;
1807
+ quoteTermsDigest: z.ZodString;
1808
+ termsVersion: z.ZodString;
1809
+ sourceRevisions: z.ZodArray<z.ZodObject<{
1810
+ reference: z.ZodString;
1811
+ revision: z.ZodString;
1812
+ }, z.core.$strict>>;
1813
+ observedAt: z.ZodISODateTime;
1814
+ expiresAt: z.ZodISODateTime;
1815
+ currency: z.ZodString;
1816
+ automaticTax: z.ZodBoolean;
1817
+ lines: z.ZodArray<z.ZodObject<{
1818
+ merchantLineId: z.ZodString;
1819
+ merchantPriceId: z.ZodNullable<z.ZodString>;
1820
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1821
+ subtotalMinor: z.ZodNumber;
1822
+ discountMinor: z.ZodNumber;
1823
+ taxMinor: z.ZodNullable<z.ZodNumber>;
1824
+ totalMinor: z.ZodNullable<z.ZodNumber>;
1825
+ }, z.core.$strict>>;
1826
+ subscriptionTerms: z.ZodNullable<z.ZodObject<{
1827
+ items: z.ZodArray<z.ZodObject<{
1828
+ merchantPriceId: z.ZodString;
1829
+ quantity: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1830
+ interval: z.ZodEnum<{
1831
+ week: "week";
1832
+ month: "month";
1833
+ year: "year";
1834
+ }>;
1835
+ intervalCount: z.ZodNumber;
1836
+ amountMinor: z.ZodNumber;
1837
+ amountAfterOfferMinor: z.ZodOptional<z.ZodNumber>;
1838
+ }, z.core.$strict>>;
1839
+ trial: z.ZodNullable<z.ZodObject<{
1840
+ days: z.ZodNumber;
1841
+ cardRequired: z.ZodBoolean;
1842
+ }, z.core.$strict>>;
1843
+ discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1844
+ grantId: z.ZodUUID;
1845
+ couponId: z.ZodUUID;
1846
+ amountMinor: z.ZodNumber;
1847
+ applicationPolicy: z.ZodOptional<z.ZodEnum<{
1848
+ replace: "replace";
1849
+ stack_native: "stack_native";
1850
+ }>>;
1851
+ applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1852
+ terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
1853
+ type: z.ZodLiteral<"percent">;
1854
+ percentOff: z.ZodNumber;
1855
+ }, z.core.$strict>, z.ZodObject<{
1856
+ type: z.ZodLiteral<"amount">;
1857
+ amountOffMinor: z.ZodNumber;
1858
+ currency: z.ZodString;
1859
+ }, z.core.$strict>], "type">;
1860
+ duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1861
+ type: z.ZodLiteral<"once">;
1862
+ }, z.core.$strict>, z.ZodObject<{
1863
+ type: z.ZodLiteral<"forever">;
1864
+ }, z.core.$strict>, z.ZodObject<{
1865
+ type: z.ZodLiteral<"repeating">;
1866
+ months: z.ZodNumber;
1867
+ }, z.core.$strict>], "type">;
1868
+ }, z.core.$strict>>>;
1869
+ discountExpiresAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1870
+ initialAmountMinor: z.ZodOptional<z.ZodNumber>;
1871
+ }, z.core.$strict>>;
1872
+ subtotalMinor: z.ZodNumber;
1873
+ discountMinor: z.ZodNumber;
1874
+ nativeDiscountMinor: z.ZodOptional<z.ZodNumber>;
1875
+ discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1876
+ grantId: z.ZodUUID;
1877
+ couponId: z.ZodUUID;
1878
+ amountMinor: z.ZodNumber;
1879
+ applicationPolicy: z.ZodOptional<z.ZodEnum<{
1880
+ replace: "replace";
1881
+ stack_native: "stack_native";
1882
+ }>>;
1883
+ applicableProductIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1884
+ terms: z.ZodDiscriminatedUnion<[z.ZodObject<{
1885
+ type: z.ZodLiteral<"percent">;
1886
+ percentOff: z.ZodNumber;
1887
+ }, z.core.$strict>, z.ZodObject<{
1888
+ type: z.ZodLiteral<"amount">;
1889
+ amountOffMinor: z.ZodNumber;
1890
+ currency: z.ZodString;
1891
+ }, z.core.$strict>], "type">;
1892
+ duration: z.ZodDiscriminatedUnion<[z.ZodObject<{
1893
+ type: z.ZodLiteral<"once">;
1894
+ }, z.core.$strict>, z.ZodObject<{
1895
+ type: z.ZodLiteral<"forever">;
1896
+ }, z.core.$strict>, z.ZodObject<{
1897
+ type: z.ZodLiteral<"repeating">;
1898
+ months: z.ZodNumber;
1899
+ }, z.core.$strict>], "type">;
1900
+ }, z.core.$strict>>>;
1901
+ taxMinor: z.ZodNullable<z.ZodNumber>;
1902
+ totalMinor: z.ZodNullable<z.ZodNumber>;
1903
+ effectiveAt: z.ZodNullable<z.ZodISODateTime>;
1904
+ expectedEffects: z.ZodArray<z.ZodObject<{
1905
+ reference: z.ZodString;
1906
+ kind: z.ZodEnum<{
1907
+ revoke: "revoke";
1908
+ grant: "grant";
1909
+ change: "change";
1910
+ }>;
1911
+ description: z.ZodString;
1912
+ quantity: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1913
+ unit: z.ZodNullable<z.ZodString>;
1914
+ }, z.core.$strict>>;
1915
+ requiredConsents: z.ZodArray<z.ZodObject<{
1916
+ reference: z.ZodString;
1917
+ version: z.ZodString;
1918
+ summary: z.ZodString;
1919
+ }, z.core.$strict>>;
1920
+ }, z.core.$strict>>;
1921
+ }, z.core.$strict>;
1922
+ declare const merchantBridgeCommandInputs: {
1923
+ readonly "bridge.ping": z.ZodObject<{
1924
+ challenge: z.ZodUUID;
1925
+ }, z.core.$strict>;
1926
+ readonly "bridge.describe": z.ZodObject<{}, z.core.$strict>;
1927
+ readonly "session.create": z.ZodObject<{}, z.core.$strict>;
1928
+ readonly "catalog.read": z.ZodObject<{}, z.core.$strict>;
1929
+ readonly "customer.commerce.read": z.ZodObject<{}, z.core.$strict>;
1930
+ readonly "presentation.resolve": z.ZodObject<{}, z.core.$strict>;
1931
+ readonly "presentation.report": z.ZodObject<{
1932
+ decisionId: z.ZodUUID;
1933
+ eventId: z.ZodUUID;
1934
+ }, z.core.$strict>;
1935
+ readonly "purchase.execute": z.ZodObject<{
1936
+ operationId: z.ZodUUID;
1937
+ customerId: z.ZodUUID;
1938
+ }, z.core.$strict>;
1939
+ readonly "operation.read": z.ZodObject<{
1940
+ operationId: z.ZodUUID;
1941
+ customerId: z.ZodUUID;
1942
+ }, z.core.$strict>;
1943
+ readonly "subscription.change": z.ZodObject<{
1944
+ operationId: z.ZodUUID;
1945
+ customerId: z.ZodUUID;
1946
+ }, z.core.$strict>;
1947
+ readonly "refund.execute": z.ZodObject<{
1948
+ operationId: z.ZodUUID;
1949
+ customerId: z.ZodUUID;
1950
+ }, z.core.$strict>;
1951
+ };
1952
+ declare const merchantBridgeCommandOutputs: {
1953
+ readonly "bridge.ping": z.ZodObject<{
1954
+ challenge: z.ZodUUID;
1955
+ }, z.core.$strict>;
1956
+ readonly "bridge.describe": z.ZodObject<{
1957
+ bridgeVersion: z.ZodLiteral<3>;
1958
+ projectId: z.ZodUUID;
1959
+ environmentId: z.ZodUUID;
1960
+ environment: z.ZodEnum<{
1961
+ sandbox: "sandbox";
1962
+ live: "live";
1963
+ }>;
1964
+ capabilities: z.ZodArray<z.ZodEnum<{
1965
+ presentation: "presentation";
1966
+ purchases: "purchases";
1967
+ session: "session";
1968
+ catalog: "catalog";
1969
+ customer_commerce: "customer_commerce";
1970
+ presentation_events: "presentation_events";
1971
+ operation_status: "operation_status";
1972
+ billing_records: "billing_records";
1973
+ subscription_changes: "subscription_changes";
1974
+ refunds: "refunds";
1975
+ }>>;
1976
+ catalog: z.ZodEnum<{
1977
+ none: "none";
1978
+ endpoint: "endpoint";
1979
+ static: "static";
1980
+ }>;
1981
+ billingEvents: z.ZodArray<z.ZodEnum<{
1982
+ "purchase.completed": "purchase.completed";
1983
+ "purchase.closed": "purchase.closed";
1984
+ "subscription.observed": "subscription.observed";
1985
+ "subscription.change.completed": "subscription.change.completed";
1986
+ "subscription.change.closed": "subscription.change.closed";
1987
+ "invoice.paid": "invoice.paid";
1988
+ "refund.updated": "refund.updated";
1989
+ }>>;
1990
+ profiles: z.ZodArray<z.ZodEnum<{
1991
+ "purchase.subscription": "purchase.subscription";
1992
+ "purchase.one_time": "purchase.one_time";
1993
+ "purchase.prepaid": "purchase.prepaid";
1994
+ "purchase.trial": "purchase.trial";
1995
+ "purchase.seats": "purchase.seats";
1996
+ "purchase.tiered": "purchase.tiered";
1997
+ "tax.automatic": "tax.automatic";
1998
+ "discount.percent.once": "discount.percent.once";
1999
+ "discount.percent.repeating": "discount.percent.repeating";
2000
+ "discount.percent.forever": "discount.percent.forever";
2001
+ "discount.amount.once": "discount.amount.once";
2002
+ "discount.amount.repeating": "discount.amount.repeating";
2003
+ "discount.amount.forever": "discount.amount.forever";
2004
+ "subscription.cancel.immediate": "subscription.cancel.immediate";
2005
+ "subscription.cancel.renewal": "subscription.cancel.renewal";
2006
+ "subscription.resume": "subscription.resume";
2007
+ "subscription.plan.immediate": "subscription.plan.immediate";
2008
+ "subscription.plan.renewal": "subscription.plan.renewal";
2009
+ "subscription.seats": "subscription.seats";
2010
+ "subscription.quantity": "subscription.quantity";
2011
+ "subscription.billing_cycle": "subscription.billing_cycle";
2012
+ "subscription.proration": "subscription.proration";
2013
+ "refund.full": "refund.full";
2014
+ "refund.partial": "refund.partial";
2015
+ "refund.revoke": "refund.revoke";
2016
+ }>>;
2017
+ }, z.core.$strict>;
2018
+ readonly "session.create": z.ZodObject<{
2019
+ nativeUserId: z.ZodString;
2020
+ session: z.ZodObject<{
2021
+ customerId: z.ZodUUID;
2022
+ sessionId: z.ZodUUID;
2023
+ accessToken: z.ZodString;
2024
+ refreshToken: z.ZodString;
2025
+ expiresAt: z.ZodISODateTime;
2026
+ refreshExpiresAt: z.ZodISODateTime;
2027
+ }, z.core.$strict>;
2028
+ }, z.core.$strict>;
2029
+ readonly "catalog.read": z.ZodObject<{
2030
+ revision: z.ZodString;
2031
+ updatedAt: z.ZodISODateTime;
2032
+ provider: z.ZodLiteral<"merchant">;
2033
+ items: z.ZodArray<z.ZodObject<{
2034
+ merchantProductId: z.ZodString;
2035
+ productVersionId: z.ZodUUID;
2036
+ name: z.ZodString;
2037
+ kind: z.ZodEnum<{
2038
+ subscription: "subscription";
2039
+ credit_pack: "credit_pack";
2040
+ }>;
2041
+ merchantPriceId: z.ZodString;
2042
+ currency: z.ZodString;
2043
+ amountMinor: z.ZodNumber;
2044
+ interval: z.ZodEnum<{
2045
+ month: "month";
2046
+ year: "year";
2047
+ one_time: "one_time";
2048
+ }>;
2049
+ intervalCount: z.ZodLiteral<1>;
2050
+ includedCredits: z.ZodString;
2051
+ creditReset: z.ZodEnum<{
2052
+ month: "month";
2053
+ none: "none";
2054
+ }>;
2055
+ creditPolicyId: z.ZodString;
2056
+ available: z.ZodBoolean;
2057
+ }, z.core.$strict>>;
2058
+ }, z.core.$strict>;
2059
+ readonly "customer.commerce.read": z.ZodObject<{
2060
+ customerId: z.ZodUUID;
2061
+ revision: z.ZodString;
2062
+ observedAt: z.ZodISODateTime;
2063
+ subscriptions: z.ZodArray<z.ZodObject<{
2064
+ merchantSubscriptionId: z.ZodString;
2065
+ merchantProductId: z.ZodString;
2066
+ productVersionId: z.ZodNullable<z.ZodUUID>;
2067
+ status: z.ZodEnum<{
2068
+ active: "active";
2069
+ trialing: "trialing";
2070
+ cancelled: "cancelled";
2071
+ expired: "expired";
2072
+ past_due: "past_due";
2073
+ }>;
2074
+ currentPeriodStartsAt: z.ZodNullable<z.ZodISODateTime>;
2075
+ currentPeriodEndsAt: z.ZodNullable<z.ZodISODateTime>;
2076
+ cancelAtPeriodEnd: z.ZodBoolean;
2077
+ scheduledChange: z.ZodNullable<z.ZodObject<{
2078
+ effectiveAt: z.ZodISODateTime;
2079
+ merchantProductId: z.ZodString;
2080
+ }, z.core.$strict>>;
2081
+ }, z.core.$strict>>;
2082
+ purchaseHistory: z.ZodObject<{
2083
+ complete: z.ZodBoolean;
2084
+ hasPaidPurchase: z.ZodBoolean;
2085
+ lastPaidAt: z.ZodNullable<z.ZodISODateTime>;
2086
+ }, z.core.$strict>;
2087
+ balances: z.ZodArray<z.ZodObject<{
2088
+ bucketId: z.ZodString;
2089
+ key: z.ZodString;
2090
+ available: z.ZodString;
2091
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2092
+ nextResetAt: z.ZodNullable<z.ZodISODateTime>;
2093
+ }, z.core.$strict>>;
2094
+ }, z.core.$strict>;
2095
+ readonly "presentation.resolve": z.ZodObject<{
2096
+ nativeUserId: z.ZodString;
2097
+ presentation: z.ZodNullable<z.ZodObject<{
2098
+ customerId: z.ZodUUID;
2099
+ decisionId: z.ZodUUID;
2100
+ offeringVersionId: z.ZodUUID;
2101
+ paywallVersionId: z.ZodUUID;
2102
+ variant: z.ZodString;
2103
+ }, z.core.$strict>>;
2104
+ }, z.core.$strict>;
2105
+ readonly "presentation.report": z.ZodObject<{
2106
+ queued: z.ZodLiteral<true>;
2107
+ }, z.core.$strict>;
2108
+ readonly "purchase.execute": z.ZodDiscriminatedUnion<[z.ZodObject<{
2109
+ type: z.ZodLiteral<"purchase">;
2110
+ merchantOrderId: z.ZodNullable<z.ZodString>;
2111
+ paymentStatus: z.ZodEnum<{
2112
+ unknown: "unknown";
2113
+ failed: "failed";
2114
+ pending: "pending";
2115
+ expired: "expired";
2116
+ succeeded: "succeeded";
2117
+ not_started: "not_started";
2118
+ not_required: "not_required";
2119
+ }>;
2120
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
2121
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2122
+ operationId: z.ZodUUID;
2123
+ customerId: z.ZodUUID;
2124
+ merchantExecutionId: z.ZodString;
2125
+ fulfillmentStatus: z.ZodEnum<{
2126
+ failed: "failed";
2127
+ pending: "pending";
2128
+ applied: "applied";
2129
+ not_started: "not_started";
2130
+ not_applicable: "not_applicable";
2131
+ }>;
2132
+ recordingStatus: z.ZodEnum<{
2133
+ accepted: "accepted";
2134
+ failed: "failed";
2135
+ pending: "pending";
2136
+ not_ready: "not_ready";
2137
+ }>;
2138
+ updatedAt: z.ZodISODateTime;
2139
+ problem: z.ZodNullable<z.ZodObject<{
2140
+ phase: z.ZodEnum<{
2141
+ execution: "execution";
2142
+ payment: "payment";
2143
+ fulfillment: "fulfillment";
2144
+ recording: "recording";
2145
+ }>;
2146
+ code: z.ZodEnum<{
2147
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2148
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2149
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2150
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2151
+ FORBIDDEN: "FORBIDDEN";
2152
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2153
+ INVALID_REQUEST: "INVALID_REQUEST";
2154
+ NOT_FOUND: "NOT_FOUND";
2155
+ CONFLICT: "CONFLICT";
2156
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2157
+ RATE_LIMITED: "RATE_LIMITED";
2158
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2159
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2160
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2161
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2162
+ }>;
2163
+ reason: z.ZodOptional<z.ZodEnum<{
2164
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2165
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2166
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2167
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2168
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2169
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2170
+ STATE_CHANGED: "STATE_CHANGED";
2171
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2172
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2173
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2174
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2175
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2176
+ }>>;
2177
+ recovery: z.ZodEnum<{
2178
+ fix_request: "fix_request";
2179
+ authenticate: "authenticate";
2180
+ check_permissions: "check_permissions";
2181
+ check_scope: "check_scope";
2182
+ resolve_conflict: "resolve_conflict";
2183
+ reload_state: "reload_state";
2184
+ retry_same_request: "retry_same_request";
2185
+ configure_integration: "configure_integration";
2186
+ check_availability: "check_availability";
2187
+ upgrade_sdk: "upgrade_sdk";
2188
+ recover_operation: "recover_operation";
2189
+ contact_support: "contact_support";
2190
+ }>;
2191
+ retryable: z.ZodBoolean;
2192
+ }, z.core.$strict>>;
2193
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2194
+ }, z.core.$strict>, z.ZodObject<{
2195
+ type: z.ZodLiteral<"subscription_change">;
2196
+ status: z.ZodEnum<{
2197
+ unknown: "unknown";
2198
+ failed: "failed";
2199
+ pending: "pending";
2200
+ scheduled: "scheduled";
2201
+ applied: "applied";
2202
+ }>;
2203
+ merchantSubscriptionId: z.ZodString;
2204
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
2205
+ nextAction: z.ZodOptional<z.ZodObject<{
2206
+ type: z.ZodLiteral<"redirect">;
2207
+ url: z.ZodURL;
2208
+ expiresAt: z.ZodISODateTime;
2209
+ }, z.core.$strict>>;
2210
+ operationId: z.ZodUUID;
2211
+ customerId: z.ZodUUID;
2212
+ merchantExecutionId: z.ZodString;
2213
+ fulfillmentStatus: z.ZodEnum<{
2214
+ failed: "failed";
2215
+ pending: "pending";
2216
+ applied: "applied";
2217
+ not_started: "not_started";
2218
+ not_applicable: "not_applicable";
2219
+ }>;
2220
+ recordingStatus: z.ZodEnum<{
2221
+ accepted: "accepted";
2222
+ failed: "failed";
2223
+ pending: "pending";
2224
+ not_ready: "not_ready";
2225
+ }>;
2226
+ updatedAt: z.ZodISODateTime;
2227
+ problem: z.ZodNullable<z.ZodObject<{
2228
+ phase: z.ZodEnum<{
2229
+ execution: "execution";
2230
+ payment: "payment";
2231
+ fulfillment: "fulfillment";
2232
+ recording: "recording";
2233
+ }>;
2234
+ code: z.ZodEnum<{
2235
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2236
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2237
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2238
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2239
+ FORBIDDEN: "FORBIDDEN";
2240
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2241
+ INVALID_REQUEST: "INVALID_REQUEST";
2242
+ NOT_FOUND: "NOT_FOUND";
2243
+ CONFLICT: "CONFLICT";
2244
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2245
+ RATE_LIMITED: "RATE_LIMITED";
2246
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2247
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2248
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2249
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2250
+ }>;
2251
+ reason: z.ZodOptional<z.ZodEnum<{
2252
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2253
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2254
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2255
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2256
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2257
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2258
+ STATE_CHANGED: "STATE_CHANGED";
2259
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2260
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2261
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2262
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2263
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2264
+ }>>;
2265
+ recovery: z.ZodEnum<{
2266
+ fix_request: "fix_request";
2267
+ authenticate: "authenticate";
2268
+ check_permissions: "check_permissions";
2269
+ check_scope: "check_scope";
2270
+ resolve_conflict: "resolve_conflict";
2271
+ reload_state: "reload_state";
2272
+ retry_same_request: "retry_same_request";
2273
+ configure_integration: "configure_integration";
2274
+ check_availability: "check_availability";
2275
+ upgrade_sdk: "upgrade_sdk";
2276
+ recover_operation: "recover_operation";
2277
+ contact_support: "contact_support";
2278
+ }>;
2279
+ retryable: z.ZodBoolean;
2280
+ }, z.core.$strict>>;
2281
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2282
+ }, z.core.$strict>, z.ZodObject<{
2283
+ type: z.ZodLiteral<"refund">;
2284
+ status: z.ZodEnum<{
2285
+ unknown: "unknown";
2286
+ failed: "failed";
2287
+ pending: "pending";
2288
+ succeeded: "succeeded";
2289
+ }>;
2290
+ merchantRefundId: z.ZodNullable<z.ZodString>;
2291
+ operationId: z.ZodUUID;
2292
+ customerId: z.ZodUUID;
2293
+ merchantExecutionId: z.ZodString;
2294
+ fulfillmentStatus: z.ZodEnum<{
2295
+ failed: "failed";
2296
+ pending: "pending";
2297
+ applied: "applied";
2298
+ not_started: "not_started";
2299
+ not_applicable: "not_applicable";
2300
+ }>;
2301
+ recordingStatus: z.ZodEnum<{
2302
+ accepted: "accepted";
2303
+ failed: "failed";
2304
+ pending: "pending";
2305
+ not_ready: "not_ready";
2306
+ }>;
2307
+ updatedAt: z.ZodISODateTime;
2308
+ problem: z.ZodNullable<z.ZodObject<{
2309
+ phase: z.ZodEnum<{
2310
+ execution: "execution";
2311
+ payment: "payment";
2312
+ fulfillment: "fulfillment";
2313
+ recording: "recording";
2314
+ }>;
2315
+ code: z.ZodEnum<{
2316
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2317
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2318
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2319
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2320
+ FORBIDDEN: "FORBIDDEN";
2321
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2322
+ INVALID_REQUEST: "INVALID_REQUEST";
2323
+ NOT_FOUND: "NOT_FOUND";
2324
+ CONFLICT: "CONFLICT";
2325
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2326
+ RATE_LIMITED: "RATE_LIMITED";
2327
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2328
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2329
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2330
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2331
+ }>;
2332
+ reason: z.ZodOptional<z.ZodEnum<{
2333
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2334
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2335
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2336
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2337
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2338
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2339
+ STATE_CHANGED: "STATE_CHANGED";
2340
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2341
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2342
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2343
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2344
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2345
+ }>>;
2346
+ recovery: z.ZodEnum<{
2347
+ fix_request: "fix_request";
2348
+ authenticate: "authenticate";
2349
+ check_permissions: "check_permissions";
2350
+ check_scope: "check_scope";
2351
+ resolve_conflict: "resolve_conflict";
2352
+ reload_state: "reload_state";
2353
+ retry_same_request: "retry_same_request";
2354
+ configure_integration: "configure_integration";
2355
+ check_availability: "check_availability";
2356
+ upgrade_sdk: "upgrade_sdk";
2357
+ recover_operation: "recover_operation";
2358
+ contact_support: "contact_support";
2359
+ }>;
2360
+ retryable: z.ZodBoolean;
2361
+ }, z.core.$strict>>;
2362
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2363
+ }, z.core.$strict>], "type">;
2364
+ readonly "operation.read": z.ZodDiscriminatedUnion<[z.ZodObject<{
2365
+ lookup: z.ZodLiteral<"found">;
2366
+ operationId: z.ZodUUID;
2367
+ customerId: z.ZodUUID;
2368
+ execution: z.ZodDiscriminatedUnion<[z.ZodObject<{
2369
+ type: z.ZodLiteral<"purchase">;
2370
+ merchantOrderId: z.ZodNullable<z.ZodString>;
2371
+ paymentStatus: z.ZodEnum<{
2372
+ unknown: "unknown";
2373
+ failed: "failed";
2374
+ pending: "pending";
2375
+ expired: "expired";
2376
+ succeeded: "succeeded";
2377
+ not_started: "not_started";
2378
+ not_required: "not_required";
2379
+ }>;
2380
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
2381
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2382
+ operationId: z.ZodUUID;
2383
+ customerId: z.ZodUUID;
2384
+ merchantExecutionId: z.ZodString;
2385
+ fulfillmentStatus: z.ZodEnum<{
2386
+ failed: "failed";
2387
+ pending: "pending";
2388
+ applied: "applied";
2389
+ not_started: "not_started";
2390
+ not_applicable: "not_applicable";
2391
+ }>;
2392
+ recordingStatus: z.ZodEnum<{
2393
+ accepted: "accepted";
2394
+ failed: "failed";
2395
+ pending: "pending";
2396
+ not_ready: "not_ready";
2397
+ }>;
2398
+ updatedAt: z.ZodISODateTime;
2399
+ problem: z.ZodNullable<z.ZodObject<{
2400
+ phase: z.ZodEnum<{
2401
+ execution: "execution";
2402
+ payment: "payment";
2403
+ fulfillment: "fulfillment";
2404
+ recording: "recording";
2405
+ }>;
2406
+ code: z.ZodEnum<{
2407
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2408
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2409
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2410
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2411
+ FORBIDDEN: "FORBIDDEN";
2412
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2413
+ INVALID_REQUEST: "INVALID_REQUEST";
2414
+ NOT_FOUND: "NOT_FOUND";
2415
+ CONFLICT: "CONFLICT";
2416
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2417
+ RATE_LIMITED: "RATE_LIMITED";
2418
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2419
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2420
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2421
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2422
+ }>;
2423
+ reason: z.ZodOptional<z.ZodEnum<{
2424
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2425
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2426
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2427
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2428
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2429
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2430
+ STATE_CHANGED: "STATE_CHANGED";
2431
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2432
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2433
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2434
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2435
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2436
+ }>>;
2437
+ recovery: z.ZodEnum<{
2438
+ fix_request: "fix_request";
2439
+ authenticate: "authenticate";
2440
+ check_permissions: "check_permissions";
2441
+ check_scope: "check_scope";
2442
+ resolve_conflict: "resolve_conflict";
2443
+ reload_state: "reload_state";
2444
+ retry_same_request: "retry_same_request";
2445
+ configure_integration: "configure_integration";
2446
+ check_availability: "check_availability";
2447
+ upgrade_sdk: "upgrade_sdk";
2448
+ recover_operation: "recover_operation";
2449
+ contact_support: "contact_support";
2450
+ }>;
2451
+ retryable: z.ZodBoolean;
2452
+ }, z.core.$strict>>;
2453
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2454
+ }, z.core.$strict>, z.ZodObject<{
2455
+ type: z.ZodLiteral<"subscription_change">;
2456
+ status: z.ZodEnum<{
2457
+ unknown: "unknown";
2458
+ failed: "failed";
2459
+ pending: "pending";
2460
+ scheduled: "scheduled";
2461
+ applied: "applied";
2462
+ }>;
2463
+ merchantSubscriptionId: z.ZodString;
2464
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
2465
+ nextAction: z.ZodOptional<z.ZodObject<{
2466
+ type: z.ZodLiteral<"redirect">;
2467
+ url: z.ZodURL;
2468
+ expiresAt: z.ZodISODateTime;
2469
+ }, z.core.$strict>>;
2470
+ operationId: z.ZodUUID;
2471
+ customerId: z.ZodUUID;
2472
+ merchantExecutionId: z.ZodString;
2473
+ fulfillmentStatus: z.ZodEnum<{
2474
+ failed: "failed";
2475
+ pending: "pending";
2476
+ applied: "applied";
2477
+ not_started: "not_started";
2478
+ not_applicable: "not_applicable";
2479
+ }>;
2480
+ recordingStatus: z.ZodEnum<{
2481
+ accepted: "accepted";
2482
+ failed: "failed";
2483
+ pending: "pending";
2484
+ not_ready: "not_ready";
2485
+ }>;
2486
+ updatedAt: z.ZodISODateTime;
2487
+ problem: z.ZodNullable<z.ZodObject<{
2488
+ phase: z.ZodEnum<{
2489
+ execution: "execution";
2490
+ payment: "payment";
2491
+ fulfillment: "fulfillment";
2492
+ recording: "recording";
2493
+ }>;
2494
+ code: z.ZodEnum<{
2495
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2496
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2497
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2498
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2499
+ FORBIDDEN: "FORBIDDEN";
2500
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2501
+ INVALID_REQUEST: "INVALID_REQUEST";
2502
+ NOT_FOUND: "NOT_FOUND";
2503
+ CONFLICT: "CONFLICT";
2504
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2505
+ RATE_LIMITED: "RATE_LIMITED";
2506
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2507
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2508
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2509
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2510
+ }>;
2511
+ reason: z.ZodOptional<z.ZodEnum<{
2512
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2513
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2514
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2515
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2516
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2517
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2518
+ STATE_CHANGED: "STATE_CHANGED";
2519
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2520
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2521
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2522
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2523
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2524
+ }>>;
2525
+ recovery: z.ZodEnum<{
2526
+ fix_request: "fix_request";
2527
+ authenticate: "authenticate";
2528
+ check_permissions: "check_permissions";
2529
+ check_scope: "check_scope";
2530
+ resolve_conflict: "resolve_conflict";
2531
+ reload_state: "reload_state";
2532
+ retry_same_request: "retry_same_request";
2533
+ configure_integration: "configure_integration";
2534
+ check_availability: "check_availability";
2535
+ upgrade_sdk: "upgrade_sdk";
2536
+ recover_operation: "recover_operation";
2537
+ contact_support: "contact_support";
2538
+ }>;
2539
+ retryable: z.ZodBoolean;
2540
+ }, z.core.$strict>>;
2541
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2542
+ }, z.core.$strict>, z.ZodObject<{
2543
+ type: z.ZodLiteral<"refund">;
2544
+ status: z.ZodEnum<{
2545
+ unknown: "unknown";
2546
+ failed: "failed";
2547
+ pending: "pending";
2548
+ succeeded: "succeeded";
2549
+ }>;
2550
+ merchantRefundId: z.ZodNullable<z.ZodString>;
2551
+ operationId: z.ZodUUID;
2552
+ customerId: z.ZodUUID;
2553
+ merchantExecutionId: z.ZodString;
2554
+ fulfillmentStatus: z.ZodEnum<{
2555
+ failed: "failed";
2556
+ pending: "pending";
2557
+ applied: "applied";
2558
+ not_started: "not_started";
2559
+ not_applicable: "not_applicable";
2560
+ }>;
2561
+ recordingStatus: z.ZodEnum<{
2562
+ accepted: "accepted";
2563
+ failed: "failed";
2564
+ pending: "pending";
2565
+ not_ready: "not_ready";
2566
+ }>;
2567
+ updatedAt: z.ZodISODateTime;
2568
+ problem: z.ZodNullable<z.ZodObject<{
2569
+ phase: z.ZodEnum<{
2570
+ execution: "execution";
2571
+ payment: "payment";
2572
+ fulfillment: "fulfillment";
2573
+ recording: "recording";
2574
+ }>;
2575
+ code: z.ZodEnum<{
2576
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2577
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2578
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2579
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2580
+ FORBIDDEN: "FORBIDDEN";
2581
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2582
+ INVALID_REQUEST: "INVALID_REQUEST";
2583
+ NOT_FOUND: "NOT_FOUND";
2584
+ CONFLICT: "CONFLICT";
2585
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2586
+ RATE_LIMITED: "RATE_LIMITED";
2587
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2588
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2589
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2590
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2591
+ }>;
2592
+ reason: z.ZodOptional<z.ZodEnum<{
2593
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2594
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2595
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2596
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2597
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2598
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2599
+ STATE_CHANGED: "STATE_CHANGED";
2600
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2601
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2602
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2603
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2604
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2605
+ }>>;
2606
+ recovery: z.ZodEnum<{
2607
+ fix_request: "fix_request";
2608
+ authenticate: "authenticate";
2609
+ check_permissions: "check_permissions";
2610
+ check_scope: "check_scope";
2611
+ resolve_conflict: "resolve_conflict";
2612
+ reload_state: "reload_state";
2613
+ retry_same_request: "retry_same_request";
2614
+ configure_integration: "configure_integration";
2615
+ check_availability: "check_availability";
2616
+ upgrade_sdk: "upgrade_sdk";
2617
+ recover_operation: "recover_operation";
2618
+ contact_support: "contact_support";
2619
+ }>;
2620
+ retryable: z.ZodBoolean;
2621
+ }, z.core.$strict>>;
2622
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2623
+ }, z.core.$strict>], "type">;
2624
+ readAt: z.ZodISODateTime;
2625
+ }, z.core.$strict>, z.ZodObject<{
2626
+ lookup: z.ZodLiteral<"not_received">;
2627
+ operationId: z.ZodUUID;
2628
+ customerId: z.ZodUUID;
2629
+ execution: z.ZodNull;
2630
+ readAt: z.ZodISODateTime;
2631
+ }, z.core.$strict>], "lookup">;
2632
+ readonly "subscription.change": z.ZodDiscriminatedUnion<[z.ZodObject<{
2633
+ type: z.ZodLiteral<"purchase">;
2634
+ merchantOrderId: z.ZodNullable<z.ZodString>;
2635
+ paymentStatus: z.ZodEnum<{
2636
+ unknown: "unknown";
2637
+ failed: "failed";
2638
+ pending: "pending";
2639
+ expired: "expired";
2640
+ succeeded: "succeeded";
2641
+ not_started: "not_started";
2642
+ not_required: "not_required";
2643
+ }>;
2644
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
2645
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2646
+ operationId: z.ZodUUID;
2647
+ customerId: z.ZodUUID;
2648
+ merchantExecutionId: z.ZodString;
2649
+ fulfillmentStatus: z.ZodEnum<{
2650
+ failed: "failed";
2651
+ pending: "pending";
2652
+ applied: "applied";
2653
+ not_started: "not_started";
2654
+ not_applicable: "not_applicable";
2655
+ }>;
2656
+ recordingStatus: z.ZodEnum<{
2657
+ accepted: "accepted";
2658
+ failed: "failed";
2659
+ pending: "pending";
2660
+ not_ready: "not_ready";
2661
+ }>;
2662
+ updatedAt: z.ZodISODateTime;
2663
+ problem: z.ZodNullable<z.ZodObject<{
2664
+ phase: z.ZodEnum<{
2665
+ execution: "execution";
2666
+ payment: "payment";
2667
+ fulfillment: "fulfillment";
2668
+ recording: "recording";
2669
+ }>;
2670
+ code: z.ZodEnum<{
2671
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2672
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2673
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2674
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2675
+ FORBIDDEN: "FORBIDDEN";
2676
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2677
+ INVALID_REQUEST: "INVALID_REQUEST";
2678
+ NOT_FOUND: "NOT_FOUND";
2679
+ CONFLICT: "CONFLICT";
2680
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2681
+ RATE_LIMITED: "RATE_LIMITED";
2682
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2683
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2684
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2685
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2686
+ }>;
2687
+ reason: z.ZodOptional<z.ZodEnum<{
2688
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2689
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2690
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2691
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2692
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2693
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2694
+ STATE_CHANGED: "STATE_CHANGED";
2695
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2696
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2697
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2698
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2699
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2700
+ }>>;
2701
+ recovery: z.ZodEnum<{
2702
+ fix_request: "fix_request";
2703
+ authenticate: "authenticate";
2704
+ check_permissions: "check_permissions";
2705
+ check_scope: "check_scope";
2706
+ resolve_conflict: "resolve_conflict";
2707
+ reload_state: "reload_state";
2708
+ retry_same_request: "retry_same_request";
2709
+ configure_integration: "configure_integration";
2710
+ check_availability: "check_availability";
2711
+ upgrade_sdk: "upgrade_sdk";
2712
+ recover_operation: "recover_operation";
2713
+ contact_support: "contact_support";
2714
+ }>;
2715
+ retryable: z.ZodBoolean;
2716
+ }, z.core.$strict>>;
2717
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2718
+ }, z.core.$strict>, z.ZodObject<{
2719
+ type: z.ZodLiteral<"subscription_change">;
2720
+ status: z.ZodEnum<{
2721
+ unknown: "unknown";
2722
+ failed: "failed";
2723
+ pending: "pending";
2724
+ scheduled: "scheduled";
2725
+ applied: "applied";
2726
+ }>;
2727
+ merchantSubscriptionId: z.ZodString;
2728
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
2729
+ nextAction: z.ZodOptional<z.ZodObject<{
2730
+ type: z.ZodLiteral<"redirect">;
2731
+ url: z.ZodURL;
2732
+ expiresAt: z.ZodISODateTime;
2733
+ }, z.core.$strict>>;
2734
+ operationId: z.ZodUUID;
2735
+ customerId: z.ZodUUID;
2736
+ merchantExecutionId: z.ZodString;
2737
+ fulfillmentStatus: z.ZodEnum<{
2738
+ failed: "failed";
2739
+ pending: "pending";
2740
+ applied: "applied";
2741
+ not_started: "not_started";
2742
+ not_applicable: "not_applicable";
2743
+ }>;
2744
+ recordingStatus: z.ZodEnum<{
2745
+ accepted: "accepted";
2746
+ failed: "failed";
2747
+ pending: "pending";
2748
+ not_ready: "not_ready";
2749
+ }>;
2750
+ updatedAt: z.ZodISODateTime;
2751
+ problem: z.ZodNullable<z.ZodObject<{
2752
+ phase: z.ZodEnum<{
2753
+ execution: "execution";
2754
+ payment: "payment";
2755
+ fulfillment: "fulfillment";
2756
+ recording: "recording";
2757
+ }>;
2758
+ code: z.ZodEnum<{
2759
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2760
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2761
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2762
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2763
+ FORBIDDEN: "FORBIDDEN";
2764
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2765
+ INVALID_REQUEST: "INVALID_REQUEST";
2766
+ NOT_FOUND: "NOT_FOUND";
2767
+ CONFLICT: "CONFLICT";
2768
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2769
+ RATE_LIMITED: "RATE_LIMITED";
2770
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2771
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2772
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2773
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2774
+ }>;
2775
+ reason: z.ZodOptional<z.ZodEnum<{
2776
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2777
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2778
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2779
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2780
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2781
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2782
+ STATE_CHANGED: "STATE_CHANGED";
2783
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2784
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2785
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2786
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2787
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2788
+ }>>;
2789
+ recovery: z.ZodEnum<{
2790
+ fix_request: "fix_request";
2791
+ authenticate: "authenticate";
2792
+ check_permissions: "check_permissions";
2793
+ check_scope: "check_scope";
2794
+ resolve_conflict: "resolve_conflict";
2795
+ reload_state: "reload_state";
2796
+ retry_same_request: "retry_same_request";
2797
+ configure_integration: "configure_integration";
2798
+ check_availability: "check_availability";
2799
+ upgrade_sdk: "upgrade_sdk";
2800
+ recover_operation: "recover_operation";
2801
+ contact_support: "contact_support";
2802
+ }>;
2803
+ retryable: z.ZodBoolean;
2804
+ }, z.core.$strict>>;
2805
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2806
+ }, z.core.$strict>, z.ZodObject<{
2807
+ type: z.ZodLiteral<"refund">;
2808
+ status: z.ZodEnum<{
2809
+ unknown: "unknown";
2810
+ failed: "failed";
2811
+ pending: "pending";
2812
+ succeeded: "succeeded";
2813
+ }>;
2814
+ merchantRefundId: z.ZodNullable<z.ZodString>;
2815
+ operationId: z.ZodUUID;
2816
+ customerId: z.ZodUUID;
2817
+ merchantExecutionId: z.ZodString;
2818
+ fulfillmentStatus: z.ZodEnum<{
2819
+ failed: "failed";
2820
+ pending: "pending";
2821
+ applied: "applied";
2822
+ not_started: "not_started";
2823
+ not_applicable: "not_applicable";
2824
+ }>;
2825
+ recordingStatus: z.ZodEnum<{
2826
+ accepted: "accepted";
2827
+ failed: "failed";
2828
+ pending: "pending";
2829
+ not_ready: "not_ready";
2830
+ }>;
2831
+ updatedAt: z.ZodISODateTime;
2832
+ problem: z.ZodNullable<z.ZodObject<{
2833
+ phase: z.ZodEnum<{
2834
+ execution: "execution";
2835
+ payment: "payment";
2836
+ fulfillment: "fulfillment";
2837
+ recording: "recording";
2838
+ }>;
2839
+ code: z.ZodEnum<{
2840
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2841
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2842
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2843
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2844
+ FORBIDDEN: "FORBIDDEN";
2845
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2846
+ INVALID_REQUEST: "INVALID_REQUEST";
2847
+ NOT_FOUND: "NOT_FOUND";
2848
+ CONFLICT: "CONFLICT";
2849
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2850
+ RATE_LIMITED: "RATE_LIMITED";
2851
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2852
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2853
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2854
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2855
+ }>;
2856
+ reason: z.ZodOptional<z.ZodEnum<{
2857
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2858
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2859
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2860
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2861
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2862
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2863
+ STATE_CHANGED: "STATE_CHANGED";
2864
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2865
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2866
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2867
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2868
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2869
+ }>>;
2870
+ recovery: z.ZodEnum<{
2871
+ fix_request: "fix_request";
2872
+ authenticate: "authenticate";
2873
+ check_permissions: "check_permissions";
2874
+ check_scope: "check_scope";
2875
+ resolve_conflict: "resolve_conflict";
2876
+ reload_state: "reload_state";
2877
+ retry_same_request: "retry_same_request";
2878
+ configure_integration: "configure_integration";
2879
+ check_availability: "check_availability";
2880
+ upgrade_sdk: "upgrade_sdk";
2881
+ recover_operation: "recover_operation";
2882
+ contact_support: "contact_support";
2883
+ }>;
2884
+ retryable: z.ZodBoolean;
2885
+ }, z.core.$strict>>;
2886
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2887
+ }, z.core.$strict>], "type">;
2888
+ readonly "refund.execute": z.ZodDiscriminatedUnion<[z.ZodObject<{
2889
+ type: z.ZodLiteral<"purchase">;
2890
+ merchantOrderId: z.ZodNullable<z.ZodString>;
2891
+ paymentStatus: z.ZodEnum<{
2892
+ unknown: "unknown";
2893
+ failed: "failed";
2894
+ pending: "pending";
2895
+ expired: "expired";
2896
+ succeeded: "succeeded";
2897
+ not_started: "not_started";
2898
+ not_required: "not_required";
2899
+ }>;
2900
+ checkoutUrl: z.ZodNullable<z.ZodURL>;
2901
+ checkoutExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2902
+ operationId: z.ZodUUID;
2903
+ customerId: z.ZodUUID;
2904
+ merchantExecutionId: z.ZodString;
2905
+ fulfillmentStatus: z.ZodEnum<{
2906
+ failed: "failed";
2907
+ pending: "pending";
2908
+ applied: "applied";
2909
+ not_started: "not_started";
2910
+ not_applicable: "not_applicable";
2911
+ }>;
2912
+ recordingStatus: z.ZodEnum<{
2913
+ accepted: "accepted";
2914
+ failed: "failed";
2915
+ pending: "pending";
2916
+ not_ready: "not_ready";
2917
+ }>;
2918
+ updatedAt: z.ZodISODateTime;
2919
+ problem: z.ZodNullable<z.ZodObject<{
2920
+ phase: z.ZodEnum<{
2921
+ execution: "execution";
2922
+ payment: "payment";
2923
+ fulfillment: "fulfillment";
2924
+ recording: "recording";
2925
+ }>;
2926
+ code: z.ZodEnum<{
2927
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
2928
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
2929
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
2930
+ UNAUTHENTICATED: "UNAUTHENTICATED";
2931
+ FORBIDDEN: "FORBIDDEN";
2932
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
2933
+ INVALID_REQUEST: "INVALID_REQUEST";
2934
+ NOT_FOUND: "NOT_FOUND";
2935
+ CONFLICT: "CONFLICT";
2936
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
2937
+ RATE_LIMITED: "RATE_LIMITED";
2938
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
2939
+ NOT_CONFIGURED: "NOT_CONFIGURED";
2940
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
2941
+ INTERNAL_ERROR: "INTERNAL_ERROR";
2942
+ }>;
2943
+ reason: z.ZodOptional<z.ZodEnum<{
2944
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
2945
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
2946
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
2947
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
2948
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
2949
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
2950
+ STATE_CHANGED: "STATE_CHANGED";
2951
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
2952
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
2953
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
2954
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
2955
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
2956
+ }>>;
2957
+ recovery: z.ZodEnum<{
2958
+ fix_request: "fix_request";
2959
+ authenticate: "authenticate";
2960
+ check_permissions: "check_permissions";
2961
+ check_scope: "check_scope";
2962
+ resolve_conflict: "resolve_conflict";
2963
+ reload_state: "reload_state";
2964
+ retry_same_request: "retry_same_request";
2965
+ configure_integration: "configure_integration";
2966
+ check_availability: "check_availability";
2967
+ upgrade_sdk: "upgrade_sdk";
2968
+ recover_operation: "recover_operation";
2969
+ contact_support: "contact_support";
2970
+ }>;
2971
+ retryable: z.ZodBoolean;
2972
+ }, z.core.$strict>>;
2973
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
2974
+ }, z.core.$strict>, z.ZodObject<{
2975
+ type: z.ZodLiteral<"subscription_change">;
2976
+ status: z.ZodEnum<{
2977
+ unknown: "unknown";
2978
+ failed: "failed";
2979
+ pending: "pending";
2980
+ scheduled: "scheduled";
2981
+ applied: "applied";
2982
+ }>;
2983
+ merchantSubscriptionId: z.ZodString;
2984
+ scheduledFor: z.ZodNullable<z.ZodISODateTime>;
2985
+ nextAction: z.ZodOptional<z.ZodObject<{
2986
+ type: z.ZodLiteral<"redirect">;
2987
+ url: z.ZodURL;
2988
+ expiresAt: z.ZodISODateTime;
2989
+ }, z.core.$strict>>;
2990
+ operationId: z.ZodUUID;
2991
+ customerId: z.ZodUUID;
2992
+ merchantExecutionId: z.ZodString;
2993
+ fulfillmentStatus: z.ZodEnum<{
2994
+ failed: "failed";
2995
+ pending: "pending";
2996
+ applied: "applied";
2997
+ not_started: "not_started";
2998
+ not_applicable: "not_applicable";
2999
+ }>;
3000
+ recordingStatus: z.ZodEnum<{
3001
+ accepted: "accepted";
3002
+ failed: "failed";
3003
+ pending: "pending";
3004
+ not_ready: "not_ready";
3005
+ }>;
3006
+ updatedAt: z.ZodISODateTime;
3007
+ problem: z.ZodNullable<z.ZodObject<{
3008
+ phase: z.ZodEnum<{
3009
+ execution: "execution";
3010
+ payment: "payment";
3011
+ fulfillment: "fulfillment";
3012
+ recording: "recording";
3013
+ }>;
3014
+ code: z.ZodEnum<{
3015
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
3016
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
3017
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
3018
+ UNAUTHENTICATED: "UNAUTHENTICATED";
3019
+ FORBIDDEN: "FORBIDDEN";
3020
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
3021
+ INVALID_REQUEST: "INVALID_REQUEST";
3022
+ NOT_FOUND: "NOT_FOUND";
3023
+ CONFLICT: "CONFLICT";
3024
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
3025
+ RATE_LIMITED: "RATE_LIMITED";
3026
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
3027
+ NOT_CONFIGURED: "NOT_CONFIGURED";
3028
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
3029
+ INTERNAL_ERROR: "INTERNAL_ERROR";
3030
+ }>;
3031
+ reason: z.ZodOptional<z.ZodEnum<{
3032
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
3033
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
3034
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
3035
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
3036
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
3037
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
3038
+ STATE_CHANGED: "STATE_CHANGED";
3039
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
3040
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
3041
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
3042
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
3043
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
3044
+ }>>;
3045
+ recovery: z.ZodEnum<{
3046
+ fix_request: "fix_request";
3047
+ authenticate: "authenticate";
3048
+ check_permissions: "check_permissions";
3049
+ check_scope: "check_scope";
3050
+ resolve_conflict: "resolve_conflict";
3051
+ reload_state: "reload_state";
3052
+ retry_same_request: "retry_same_request";
3053
+ configure_integration: "configure_integration";
3054
+ check_availability: "check_availability";
3055
+ upgrade_sdk: "upgrade_sdk";
3056
+ recover_operation: "recover_operation";
3057
+ contact_support: "contact_support";
3058
+ }>;
3059
+ retryable: z.ZodBoolean;
3060
+ }, z.core.$strict>>;
3061
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
3062
+ }, z.core.$strict>, z.ZodObject<{
3063
+ type: z.ZodLiteral<"refund">;
3064
+ status: z.ZodEnum<{
3065
+ unknown: "unknown";
3066
+ failed: "failed";
3067
+ pending: "pending";
3068
+ succeeded: "succeeded";
3069
+ }>;
3070
+ merchantRefundId: z.ZodNullable<z.ZodString>;
3071
+ operationId: z.ZodUUID;
3072
+ customerId: z.ZodUUID;
3073
+ merchantExecutionId: z.ZodString;
3074
+ fulfillmentStatus: z.ZodEnum<{
3075
+ failed: "failed";
3076
+ pending: "pending";
3077
+ applied: "applied";
3078
+ not_started: "not_started";
3079
+ not_applicable: "not_applicable";
3080
+ }>;
3081
+ recordingStatus: z.ZodEnum<{
3082
+ accepted: "accepted";
3083
+ failed: "failed";
3084
+ pending: "pending";
3085
+ not_ready: "not_ready";
3086
+ }>;
3087
+ updatedAt: z.ZodISODateTime;
3088
+ problem: z.ZodNullable<z.ZodObject<{
3089
+ phase: z.ZodEnum<{
3090
+ execution: "execution";
3091
+ payment: "payment";
3092
+ fulfillment: "fulfillment";
3093
+ recording: "recording";
3094
+ }>;
3095
+ code: z.ZodEnum<{
3096
+ INVALID_PROTOCOL_VERSION: "INVALID_PROTOCOL_VERSION";
3097
+ UNSUPPORTED_PROTOCOL_VERSION: "UNSUPPORTED_PROTOCOL_VERSION";
3098
+ PROTOCOL_RETIRED: "PROTOCOL_RETIRED";
3099
+ UNAUTHENTICATED: "UNAUTHENTICATED";
3100
+ FORBIDDEN: "FORBIDDEN";
3101
+ SCOPE_MISMATCH: "SCOPE_MISMATCH";
3102
+ INVALID_REQUEST: "INVALID_REQUEST";
3103
+ NOT_FOUND: "NOT_FOUND";
3104
+ CONFLICT: "CONFLICT";
3105
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
3106
+ RATE_LIMITED: "RATE_LIMITED";
3107
+ SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
3108
+ NOT_CONFIGURED: "NOT_CONFIGURED";
3109
+ CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
3110
+ INTERNAL_ERROR: "INTERNAL_ERROR";
3111
+ }>;
3112
+ reason: z.ZodOptional<z.ZodEnum<{
3113
+ CAPABILITY_NOT_ENABLED: "CAPABILITY_NOT_ENABLED";
3114
+ INTEGRATION_MISSING: "INTEGRATION_MISSING";
3115
+ PROVIDER_CREDENTIAL_REJECTED: "PROVIDER_CREDENTIAL_REJECTED";
3116
+ PRICE_BINDING_REQUIRED: "PRICE_BINDING_REQUIRED";
3117
+ IDEMPOTENCY_CONFLICT: "IDEMPOTENCY_CONFLICT";
3118
+ RESULT_UNKNOWN: "RESULT_UNKNOWN";
3119
+ STATE_CHANGED: "STATE_CHANGED";
3120
+ IDENTITY_CONTEXT_CHANGED: "IDENTITY_CONTEXT_CHANGED";
3121
+ CUSTOMER_BINDING_CONFLICT: "CUSTOMER_BINDING_CONFLICT";
3122
+ RUN_CONTRACT_MISMATCH: "RUN_CONTRACT_MISMATCH";
3123
+ OPERATION_IN_PROGRESS: "OPERATION_IN_PROGRESS";
3124
+ FUNNEL_VERSION_RETIRED: "FUNNEL_VERSION_RETIRED";
3125
+ }>>;
3126
+ recovery: z.ZodEnum<{
3127
+ fix_request: "fix_request";
3128
+ authenticate: "authenticate";
3129
+ check_permissions: "check_permissions";
3130
+ check_scope: "check_scope";
3131
+ resolve_conflict: "resolve_conflict";
3132
+ reload_state: "reload_state";
3133
+ retry_same_request: "retry_same_request";
3134
+ configure_integration: "configure_integration";
3135
+ check_availability: "check_availability";
3136
+ upgrade_sdk: "upgrade_sdk";
3137
+ recover_operation: "recover_operation";
3138
+ contact_support: "contact_support";
3139
+ }>;
3140
+ retryable: z.ZodBoolean;
3141
+ }, z.core.$strict>>;
3142
+ pollAfterMs: z.ZodNullable<z.ZodNumber>;
3143
+ }, z.core.$strict>], "type">;
3144
+ };
3145
+ declare const merchantBridgeRequestSchema: z.ZodObject<{
3146
+ bridgeVersion: z.ZodLiteral<3>;
3147
+ requestId: z.ZodUUID;
3148
+ scope: z.ZodObject<{
3149
+ projectId: z.ZodUUID;
3150
+ environmentId: z.ZodUUID;
3151
+ environment: z.ZodEnum<{
3152
+ sandbox: "sandbox";
3153
+ live: "live";
3154
+ }>;
3155
+ }, z.core.$strict>;
3156
+ command: z.ZodEnum<{
3157
+ "session.create": "session.create";
3158
+ "catalog.read": "catalog.read";
3159
+ "customer.commerce.read": "customer.commerce.read";
3160
+ "presentation.resolve": "presentation.resolve";
3161
+ "presentation.report": "presentation.report";
3162
+ "purchase.execute": "purchase.execute";
3163
+ "operation.read": "operation.read";
3164
+ "subscription.change": "subscription.change";
3165
+ "refund.execute": "refund.execute";
3166
+ "bridge.ping": "bridge.ping";
3167
+ "bridge.describe": "bridge.describe";
3168
+ }>;
3169
+ data: z.ZodUnknown;
3170
+ }, z.core.$strict>;
3171
+ type MerchantBridgeRequest = z.infer<typeof merchantBridgeRequestSchema>;
3172
+
1444
3173
  type MerchantBridgeAuthentication = {
1445
3174
  keyId: string;
1446
3175
  signingSecret: string;