@tinkerlandai/longplay-sdk 0.10.18 → 0.10.19

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 (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +9 -3
  3. package/README.zh-CN.md +1 -1
  4. package/dist/{ai-usage-D7BUuP1H.d.ts → ai-usage-DPGx5otD.d.ts} +3 -3
  5. package/dist/{api-CIbhe8RY.d.ts → api-G8EA_ueL.d.ts} +3596 -200
  6. package/dist/chunk-2JBNOE2D.js +1 -0
  7. package/dist/chunk-4SWGHICJ.js +17 -0
  8. package/dist/chunk-5OD42XQS.js +1 -0
  9. package/dist/{chunk-OMHZBCS3.js → chunk-A7U4Z6EH.js} +1 -1
  10. package/dist/{chunk-LHBBSD77.js → chunk-CCRBXW4M.js} +1 -1
  11. package/dist/chunk-DVKZLOS7.js +1 -0
  12. package/dist/{chunk-ML6EHT43.js → chunk-EDVR7FPD.js} +1 -1
  13. package/dist/chunk-FISFN5IY.js +1 -0
  14. package/dist/chunk-GSFNAB3W.js +6 -0
  15. package/dist/{chunk-26HU2HXU.js → chunk-KHIQQNTR.js} +1 -1
  16. package/dist/{chunk-6HWNW6FJ.js → chunk-LNSFRQ6G.js} +1 -1
  17. package/dist/chunk-W2Z3UVW3.js +1 -0
  18. package/dist/{chunk-T5COWMDA.js → chunk-XIYNQHN7.js} +1 -1
  19. package/dist/{chunk-P6HCD5OQ.js → chunk-XXBN76NP.js} +1 -1
  20. package/dist/{chunk-E4LUW6KP.js → chunk-YNMSSQQY.js} +1 -1
  21. package/dist/{content-DLYNJIEB.js → content-E2OWWKDG.js} +1 -1
  22. package/dist/{customer-page-km5f1PJZ.d.ts → customer-page-BV5EvCUY.d.ts} +20 -0
  23. package/dist/{funnel-local-client-CAuNpJ-e.d.ts → funnel-local-client-DjvVzCfH.d.ts} +14039 -312
  24. package/dist/{funnel-node-evaluation-BLnJp8vj.d.ts → funnel-node-evaluation-D9FwkMa3.d.ts} +425 -1
  25. package/dist/funnel-process-client-bO9Wfumi.d.ts +62372 -0
  26. package/dist/funnel-runtime-host-FOM4Z7ZK.js +1 -0
  27. package/dist/index.d.ts +322 -23334
  28. package/dist/index.js +1 -1
  29. package/dist/native-shell.js +1 -1
  30. package/dist/openrouter.d.ts +2 -2
  31. package/dist/openrouter.js +1 -1
  32. package/dist/page.js +1 -1
  33. package/dist/paywall-OUIB7SVI.js +1 -0
  34. package/dist/popup.d.ts +2 -2
  35. package/dist/popup.js +1 -1
  36. package/dist/react-native.d.ts +41 -38098
  37. package/dist/react-native.js +1 -1
  38. package/dist/screen-renderer-ZNELQB64.js +1 -0
  39. package/dist/server.d.ts +6860 -298
  40. package/dist/server.js +1 -1
  41. package/dist/visual.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunk-4ZUMMPHV.js +0 -1
  44. package/dist/chunk-EEZLS2YP.js +0 -1
  45. package/dist/chunk-JVQVQHV2.js +0 -6
  46. package/dist/chunk-KYXX676W.js +0 -1
  47. package/dist/chunk-LC2VUKYM.js +0 -1
  48. package/dist/chunk-N4HZ55YU.js +0 -1
  49. package/dist/chunk-PFHS7HK3.js +0 -17
  50. package/dist/chunk-VVW2J2GL.js +0 -1
  51. package/dist/funnel-process-client-C9EIwNTr.d.ts +0 -20575
  52. package/dist/funnel-runtime-host-FVOUCR35.js +0 -1
  53. package/dist/paywall-6Q3VLXXL.js +0 -1
  54. package/dist/screen-renderer-IZ3VJGU6.js +0 -1
  55. package/dist/{coupon-fA1QujHt.d.ts → coupon-Btz_KFKp.d.ts} +1 -1
@@ -2476,6 +2476,173 @@ declare const apiOperations: {
2476
2476
  store_action_required: "store_action_required";
2477
2477
  }>;
2478
2478
  quote: z$1.ZodNullable<z$1.ZodObject<{
2479
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
2480
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2481
+ action: z$1.ZodLiteral<"purchase">;
2482
+ mode: z$1.ZodEnum<{
2483
+ payment: "payment";
2484
+ subscription: "subscription";
2485
+ }>;
2486
+ currency: z$1.ZodString;
2487
+ items: z$1.ZodArray<z$1.ZodObject<{
2488
+ merchantProductId: z$1.ZodString;
2489
+ merchantPriceId: z$1.ZodString;
2490
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
2491
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
2492
+ }, z$1.core.$strict>>;
2493
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
2494
+ subject: z$1.ZodObject<{
2495
+ scope: z$1.ZodObject<{
2496
+ projectId: z$1.ZodUUID;
2497
+ environmentId: z$1.ZodUUID;
2498
+ environment: z$1.ZodEnum<{
2499
+ sandbox: "sandbox";
2500
+ live: "live";
2501
+ }>;
2502
+ }, z$1.core.$strict>;
2503
+ customerId: z$1.ZodUUID;
2504
+ }, z$1.core.$strict>;
2505
+ operationId: z$1.ZodUUID;
2506
+ configurationRevision: z$1.ZodNumber;
2507
+ connectionRevision: z$1.ZodNumber;
2508
+ expiresAt: z$1.ZodISODateTime;
2509
+ }, z$1.core.$strict>, z$1.ZodObject<{
2510
+ action: z$1.ZodLiteral<"subscription_change">;
2511
+ currency: z$1.ZodString;
2512
+ merchantSubscriptionId: z$1.ZodString;
2513
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2514
+ type: z$1.ZodLiteral<"cancel">;
2515
+ }, z$1.core.$strict>, z$1.ZodObject<{
2516
+ type: z$1.ZodLiteral<"uncancel">;
2517
+ }, z$1.core.$strict>, z$1.ZodObject<{
2518
+ type: z$1.ZodLiteral<"plan">;
2519
+ productVersionId: z$1.ZodUUID;
2520
+ }, z$1.core.$strict>, z$1.ZodObject<{
2521
+ type: z$1.ZodLiteral<"seats">;
2522
+ licenseKey: z$1.ZodString;
2523
+ quantity: z$1.ZodNumber;
2524
+ }, z$1.core.$strict>, z$1.ZodObject<{
2525
+ type: z$1.ZodLiteral<"quantity">;
2526
+ internal_feature_id: z$1.ZodUUID;
2527
+ quantity: z$1.ZodNumber;
2528
+ }, z$1.core.$strict>, z$1.ZodObject<{
2529
+ type: z$1.ZodLiteral<"billing_cycle">;
2530
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
2531
+ }, z$1.core.$strict>], "type">;
2532
+ timing: z$1.ZodEnum<{
2533
+ immediate: "immediate";
2534
+ renewal: "renewal";
2535
+ }>;
2536
+ proration: z$1.ZodEnum<{
2537
+ none: "none";
2538
+ create_prorations: "create_prorations";
2539
+ always_invoice: "always_invoice";
2540
+ }>;
2541
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
2542
+ subject: z$1.ZodObject<{
2543
+ scope: z$1.ZodObject<{
2544
+ projectId: z$1.ZodUUID;
2545
+ environmentId: z$1.ZodUUID;
2546
+ environment: z$1.ZodEnum<{
2547
+ sandbox: "sandbox";
2548
+ live: "live";
2549
+ }>;
2550
+ }, z$1.core.$strict>;
2551
+ customerId: z$1.ZodUUID;
2552
+ }, z$1.core.$strict>;
2553
+ operationId: z$1.ZodUUID;
2554
+ configurationRevision: z$1.ZodNumber;
2555
+ connectionRevision: z$1.ZodNumber;
2556
+ expiresAt: z$1.ZodISODateTime;
2557
+ }, z$1.core.$strict>, z$1.ZodObject<{
2558
+ action: z$1.ZodLiteral<"refund">;
2559
+ currency: z$1.ZodString;
2560
+ merchantInvoiceId: z$1.ZodString;
2561
+ mode: z$1.ZodEnum<{
2562
+ full: "full";
2563
+ partial: "partial";
2564
+ }>;
2565
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
2566
+ entitlementAction: z$1.ZodEnum<{
2567
+ retain: "retain";
2568
+ revoke: "revoke";
2569
+ }>;
2570
+ subject: z$1.ZodObject<{
2571
+ scope: z$1.ZodObject<{
2572
+ projectId: z$1.ZodUUID;
2573
+ environmentId: z$1.ZodUUID;
2574
+ environment: z$1.ZodEnum<{
2575
+ sandbox: "sandbox";
2576
+ live: "live";
2577
+ }>;
2578
+ }, z$1.core.$strict>;
2579
+ customerId: z$1.ZodUUID;
2580
+ }, z$1.core.$strict>;
2581
+ operationId: z$1.ZodUUID;
2582
+ configurationRevision: z$1.ZodNumber;
2583
+ connectionRevision: z$1.ZodNumber;
2584
+ expiresAt: z$1.ZodISODateTime;
2585
+ }, z$1.core.$strict>], "action">;
2586
+ requestDigest: z$1.ZodString;
2587
+ merchantQuoteId: z$1.ZodString;
2588
+ quoteTermsDigest: z$1.ZodString;
2589
+ termsVersion: z$1.ZodString;
2590
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
2591
+ reference: z$1.ZodString;
2592
+ revision: z$1.ZodString;
2593
+ }, z$1.core.$strict>>;
2594
+ observedAt: z$1.ZodISODateTime;
2595
+ expiresAt: z$1.ZodISODateTime;
2596
+ currency: z$1.ZodString;
2597
+ automaticTax: z$1.ZodBoolean;
2598
+ lines: z$1.ZodArray<z$1.ZodObject<{
2599
+ merchantLineId: z$1.ZodString;
2600
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
2601
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
2602
+ subtotalMinor: z$1.ZodNumber;
2603
+ discountMinor: z$1.ZodNumber;
2604
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
2605
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
2606
+ }, z$1.core.$strict>>;
2607
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
2608
+ items: z$1.ZodArray<z$1.ZodObject<{
2609
+ merchantPriceId: z$1.ZodString;
2610
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
2611
+ interval: z$1.ZodEnum<{
2612
+ week: "week";
2613
+ month: "month";
2614
+ year: "year";
2615
+ }>;
2616
+ intervalCount: z$1.ZodNumber;
2617
+ amountMinor: z$1.ZodNumber;
2618
+ }, z$1.core.$strict>>;
2619
+ trial: z$1.ZodNullable<z$1.ZodObject<{
2620
+ days: z$1.ZodNumber;
2621
+ cardRequired: z$1.ZodBoolean;
2622
+ }, z$1.core.$strict>>;
2623
+ }, z$1.core.$strict>>;
2624
+ subtotalMinor: z$1.ZodNumber;
2625
+ discountMinor: z$1.ZodNumber;
2626
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
2627
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
2628
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
2629
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
2630
+ reference: z$1.ZodString;
2631
+ kind: z$1.ZodEnum<{
2632
+ change: "change";
2633
+ revoke: "revoke";
2634
+ grant: "grant";
2635
+ }>;
2636
+ description: z$1.ZodString;
2637
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
2638
+ unit: z$1.ZodNullable<z$1.ZodString>;
2639
+ }, z$1.core.$strict>>;
2640
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
2641
+ reference: z$1.ZodString;
2642
+ version: z$1.ZodString;
2643
+ summary: z$1.ZodString;
2644
+ }, z$1.core.$strict>>;
2645
+ }, z$1.core.$strict>>;
2479
2646
  carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
2480
2647
  enabled: z$1.ZodLiteral<true>;
2481
2648
  featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
@@ -2763,6 +2930,173 @@ declare const apiOperations: {
2763
2930
  store_action_required: "store_action_required";
2764
2931
  }>;
2765
2932
  quote: z$1.ZodNullable<z$1.ZodObject<{
2933
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
2934
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2935
+ action: z$1.ZodLiteral<"purchase">;
2936
+ mode: z$1.ZodEnum<{
2937
+ payment: "payment";
2938
+ subscription: "subscription";
2939
+ }>;
2940
+ currency: z$1.ZodString;
2941
+ items: z$1.ZodArray<z$1.ZodObject<{
2942
+ merchantProductId: z$1.ZodString;
2943
+ merchantPriceId: z$1.ZodString;
2944
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
2945
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
2946
+ }, z$1.core.$strict>>;
2947
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
2948
+ subject: z$1.ZodObject<{
2949
+ scope: z$1.ZodObject<{
2950
+ projectId: z$1.ZodUUID;
2951
+ environmentId: z$1.ZodUUID;
2952
+ environment: z$1.ZodEnum<{
2953
+ sandbox: "sandbox";
2954
+ live: "live";
2955
+ }>;
2956
+ }, z$1.core.$strict>;
2957
+ customerId: z$1.ZodUUID;
2958
+ }, z$1.core.$strict>;
2959
+ operationId: z$1.ZodUUID;
2960
+ configurationRevision: z$1.ZodNumber;
2961
+ connectionRevision: z$1.ZodNumber;
2962
+ expiresAt: z$1.ZodISODateTime;
2963
+ }, z$1.core.$strict>, z$1.ZodObject<{
2964
+ action: z$1.ZodLiteral<"subscription_change">;
2965
+ currency: z$1.ZodString;
2966
+ merchantSubscriptionId: z$1.ZodString;
2967
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
2968
+ type: z$1.ZodLiteral<"cancel">;
2969
+ }, z$1.core.$strict>, z$1.ZodObject<{
2970
+ type: z$1.ZodLiteral<"uncancel">;
2971
+ }, z$1.core.$strict>, z$1.ZodObject<{
2972
+ type: z$1.ZodLiteral<"plan">;
2973
+ productVersionId: z$1.ZodUUID;
2974
+ }, z$1.core.$strict>, z$1.ZodObject<{
2975
+ type: z$1.ZodLiteral<"seats">;
2976
+ licenseKey: z$1.ZodString;
2977
+ quantity: z$1.ZodNumber;
2978
+ }, z$1.core.$strict>, z$1.ZodObject<{
2979
+ type: z$1.ZodLiteral<"quantity">;
2980
+ internal_feature_id: z$1.ZodUUID;
2981
+ quantity: z$1.ZodNumber;
2982
+ }, z$1.core.$strict>, z$1.ZodObject<{
2983
+ type: z$1.ZodLiteral<"billing_cycle">;
2984
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
2985
+ }, z$1.core.$strict>], "type">;
2986
+ timing: z$1.ZodEnum<{
2987
+ immediate: "immediate";
2988
+ renewal: "renewal";
2989
+ }>;
2990
+ proration: z$1.ZodEnum<{
2991
+ none: "none";
2992
+ create_prorations: "create_prorations";
2993
+ always_invoice: "always_invoice";
2994
+ }>;
2995
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
2996
+ subject: z$1.ZodObject<{
2997
+ scope: z$1.ZodObject<{
2998
+ projectId: z$1.ZodUUID;
2999
+ environmentId: z$1.ZodUUID;
3000
+ environment: z$1.ZodEnum<{
3001
+ sandbox: "sandbox";
3002
+ live: "live";
3003
+ }>;
3004
+ }, z$1.core.$strict>;
3005
+ customerId: z$1.ZodUUID;
3006
+ }, z$1.core.$strict>;
3007
+ operationId: z$1.ZodUUID;
3008
+ configurationRevision: z$1.ZodNumber;
3009
+ connectionRevision: z$1.ZodNumber;
3010
+ expiresAt: z$1.ZodISODateTime;
3011
+ }, z$1.core.$strict>, z$1.ZodObject<{
3012
+ action: z$1.ZodLiteral<"refund">;
3013
+ currency: z$1.ZodString;
3014
+ merchantInvoiceId: z$1.ZodString;
3015
+ mode: z$1.ZodEnum<{
3016
+ full: "full";
3017
+ partial: "partial";
3018
+ }>;
3019
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
3020
+ entitlementAction: z$1.ZodEnum<{
3021
+ retain: "retain";
3022
+ revoke: "revoke";
3023
+ }>;
3024
+ subject: z$1.ZodObject<{
3025
+ scope: z$1.ZodObject<{
3026
+ projectId: z$1.ZodUUID;
3027
+ environmentId: z$1.ZodUUID;
3028
+ environment: z$1.ZodEnum<{
3029
+ sandbox: "sandbox";
3030
+ live: "live";
3031
+ }>;
3032
+ }, z$1.core.$strict>;
3033
+ customerId: z$1.ZodUUID;
3034
+ }, z$1.core.$strict>;
3035
+ operationId: z$1.ZodUUID;
3036
+ configurationRevision: z$1.ZodNumber;
3037
+ connectionRevision: z$1.ZodNumber;
3038
+ expiresAt: z$1.ZodISODateTime;
3039
+ }, z$1.core.$strict>], "action">;
3040
+ requestDigest: z$1.ZodString;
3041
+ merchantQuoteId: z$1.ZodString;
3042
+ quoteTermsDigest: z$1.ZodString;
3043
+ termsVersion: z$1.ZodString;
3044
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
3045
+ reference: z$1.ZodString;
3046
+ revision: z$1.ZodString;
3047
+ }, z$1.core.$strict>>;
3048
+ observedAt: z$1.ZodISODateTime;
3049
+ expiresAt: z$1.ZodISODateTime;
3050
+ currency: z$1.ZodString;
3051
+ automaticTax: z$1.ZodBoolean;
3052
+ lines: z$1.ZodArray<z$1.ZodObject<{
3053
+ merchantLineId: z$1.ZodString;
3054
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
3055
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3056
+ subtotalMinor: z$1.ZodNumber;
3057
+ discountMinor: z$1.ZodNumber;
3058
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3059
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3060
+ }, z$1.core.$strict>>;
3061
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
3062
+ items: z$1.ZodArray<z$1.ZodObject<{
3063
+ merchantPriceId: z$1.ZodString;
3064
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3065
+ interval: z$1.ZodEnum<{
3066
+ week: "week";
3067
+ month: "month";
3068
+ year: "year";
3069
+ }>;
3070
+ intervalCount: z$1.ZodNumber;
3071
+ amountMinor: z$1.ZodNumber;
3072
+ }, z$1.core.$strict>>;
3073
+ trial: z$1.ZodNullable<z$1.ZodObject<{
3074
+ days: z$1.ZodNumber;
3075
+ cardRequired: z$1.ZodBoolean;
3076
+ }, z$1.core.$strict>>;
3077
+ }, z$1.core.$strict>>;
3078
+ subtotalMinor: z$1.ZodNumber;
3079
+ discountMinor: z$1.ZodNumber;
3080
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3081
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3082
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
3083
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
3084
+ reference: z$1.ZodString;
3085
+ kind: z$1.ZodEnum<{
3086
+ change: "change";
3087
+ revoke: "revoke";
3088
+ grant: "grant";
3089
+ }>;
3090
+ description: z$1.ZodString;
3091
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
3092
+ unit: z$1.ZodNullable<z$1.ZodString>;
3093
+ }, z$1.core.$strict>>;
3094
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
3095
+ reference: z$1.ZodString;
3096
+ version: z$1.ZodString;
3097
+ summary: z$1.ZodString;
3098
+ }, z$1.core.$strict>>;
3099
+ }, z$1.core.$strict>>;
2766
3100
  carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
2767
3101
  enabled: z$1.ZodLiteral<true>;
2768
3102
  featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
@@ -3050,6 +3384,173 @@ declare const apiOperations: {
3050
3384
  store_action_required: "store_action_required";
3051
3385
  }>;
3052
3386
  quote: z$1.ZodNullable<z$1.ZodObject<{
3387
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
3388
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3389
+ action: z$1.ZodLiteral<"purchase">;
3390
+ mode: z$1.ZodEnum<{
3391
+ payment: "payment";
3392
+ subscription: "subscription";
3393
+ }>;
3394
+ currency: z$1.ZodString;
3395
+ items: z$1.ZodArray<z$1.ZodObject<{
3396
+ merchantProductId: z$1.ZodString;
3397
+ merchantPriceId: z$1.ZodString;
3398
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
3399
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3400
+ }, z$1.core.$strict>>;
3401
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
3402
+ subject: z$1.ZodObject<{
3403
+ scope: z$1.ZodObject<{
3404
+ projectId: z$1.ZodUUID;
3405
+ environmentId: z$1.ZodUUID;
3406
+ environment: z$1.ZodEnum<{
3407
+ sandbox: "sandbox";
3408
+ live: "live";
3409
+ }>;
3410
+ }, z$1.core.$strict>;
3411
+ customerId: z$1.ZodUUID;
3412
+ }, z$1.core.$strict>;
3413
+ operationId: z$1.ZodUUID;
3414
+ configurationRevision: z$1.ZodNumber;
3415
+ connectionRevision: z$1.ZodNumber;
3416
+ expiresAt: z$1.ZodISODateTime;
3417
+ }, z$1.core.$strict>, z$1.ZodObject<{
3418
+ action: z$1.ZodLiteral<"subscription_change">;
3419
+ currency: z$1.ZodString;
3420
+ merchantSubscriptionId: z$1.ZodString;
3421
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3422
+ type: z$1.ZodLiteral<"cancel">;
3423
+ }, z$1.core.$strict>, z$1.ZodObject<{
3424
+ type: z$1.ZodLiteral<"uncancel">;
3425
+ }, z$1.core.$strict>, z$1.ZodObject<{
3426
+ type: z$1.ZodLiteral<"plan">;
3427
+ productVersionId: z$1.ZodUUID;
3428
+ }, z$1.core.$strict>, z$1.ZodObject<{
3429
+ type: z$1.ZodLiteral<"seats">;
3430
+ licenseKey: z$1.ZodString;
3431
+ quantity: z$1.ZodNumber;
3432
+ }, z$1.core.$strict>, z$1.ZodObject<{
3433
+ type: z$1.ZodLiteral<"quantity">;
3434
+ internal_feature_id: z$1.ZodUUID;
3435
+ quantity: z$1.ZodNumber;
3436
+ }, z$1.core.$strict>, z$1.ZodObject<{
3437
+ type: z$1.ZodLiteral<"billing_cycle">;
3438
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
3439
+ }, z$1.core.$strict>], "type">;
3440
+ timing: z$1.ZodEnum<{
3441
+ immediate: "immediate";
3442
+ renewal: "renewal";
3443
+ }>;
3444
+ proration: z$1.ZodEnum<{
3445
+ none: "none";
3446
+ create_prorations: "create_prorations";
3447
+ always_invoice: "always_invoice";
3448
+ }>;
3449
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
3450
+ subject: z$1.ZodObject<{
3451
+ scope: z$1.ZodObject<{
3452
+ projectId: z$1.ZodUUID;
3453
+ environmentId: z$1.ZodUUID;
3454
+ environment: z$1.ZodEnum<{
3455
+ sandbox: "sandbox";
3456
+ live: "live";
3457
+ }>;
3458
+ }, z$1.core.$strict>;
3459
+ customerId: z$1.ZodUUID;
3460
+ }, z$1.core.$strict>;
3461
+ operationId: z$1.ZodUUID;
3462
+ configurationRevision: z$1.ZodNumber;
3463
+ connectionRevision: z$1.ZodNumber;
3464
+ expiresAt: z$1.ZodISODateTime;
3465
+ }, z$1.core.$strict>, z$1.ZodObject<{
3466
+ action: z$1.ZodLiteral<"refund">;
3467
+ currency: z$1.ZodString;
3468
+ merchantInvoiceId: z$1.ZodString;
3469
+ mode: z$1.ZodEnum<{
3470
+ full: "full";
3471
+ partial: "partial";
3472
+ }>;
3473
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
3474
+ entitlementAction: z$1.ZodEnum<{
3475
+ retain: "retain";
3476
+ revoke: "revoke";
3477
+ }>;
3478
+ subject: z$1.ZodObject<{
3479
+ scope: z$1.ZodObject<{
3480
+ projectId: z$1.ZodUUID;
3481
+ environmentId: z$1.ZodUUID;
3482
+ environment: z$1.ZodEnum<{
3483
+ sandbox: "sandbox";
3484
+ live: "live";
3485
+ }>;
3486
+ }, z$1.core.$strict>;
3487
+ customerId: z$1.ZodUUID;
3488
+ }, z$1.core.$strict>;
3489
+ operationId: z$1.ZodUUID;
3490
+ configurationRevision: z$1.ZodNumber;
3491
+ connectionRevision: z$1.ZodNumber;
3492
+ expiresAt: z$1.ZodISODateTime;
3493
+ }, z$1.core.$strict>], "action">;
3494
+ requestDigest: z$1.ZodString;
3495
+ merchantQuoteId: z$1.ZodString;
3496
+ quoteTermsDigest: z$1.ZodString;
3497
+ termsVersion: z$1.ZodString;
3498
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
3499
+ reference: z$1.ZodString;
3500
+ revision: z$1.ZodString;
3501
+ }, z$1.core.$strict>>;
3502
+ observedAt: z$1.ZodISODateTime;
3503
+ expiresAt: z$1.ZodISODateTime;
3504
+ currency: z$1.ZodString;
3505
+ automaticTax: z$1.ZodBoolean;
3506
+ lines: z$1.ZodArray<z$1.ZodObject<{
3507
+ merchantLineId: z$1.ZodString;
3508
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
3509
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3510
+ subtotalMinor: z$1.ZodNumber;
3511
+ discountMinor: z$1.ZodNumber;
3512
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3513
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3514
+ }, z$1.core.$strict>>;
3515
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
3516
+ items: z$1.ZodArray<z$1.ZodObject<{
3517
+ merchantPriceId: z$1.ZodString;
3518
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3519
+ interval: z$1.ZodEnum<{
3520
+ week: "week";
3521
+ month: "month";
3522
+ year: "year";
3523
+ }>;
3524
+ intervalCount: z$1.ZodNumber;
3525
+ amountMinor: z$1.ZodNumber;
3526
+ }, z$1.core.$strict>>;
3527
+ trial: z$1.ZodNullable<z$1.ZodObject<{
3528
+ days: z$1.ZodNumber;
3529
+ cardRequired: z$1.ZodBoolean;
3530
+ }, z$1.core.$strict>>;
3531
+ }, z$1.core.$strict>>;
3532
+ subtotalMinor: z$1.ZodNumber;
3533
+ discountMinor: z$1.ZodNumber;
3534
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3535
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3536
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
3537
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
3538
+ reference: z$1.ZodString;
3539
+ kind: z$1.ZodEnum<{
3540
+ change: "change";
3541
+ revoke: "revoke";
3542
+ grant: "grant";
3543
+ }>;
3544
+ description: z$1.ZodString;
3545
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
3546
+ unit: z$1.ZodNullable<z$1.ZodString>;
3547
+ }, z$1.core.$strict>>;
3548
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
3549
+ reference: z$1.ZodString;
3550
+ version: z$1.ZodString;
3551
+ summary: z$1.ZodString;
3552
+ }, z$1.core.$strict>>;
3553
+ }, z$1.core.$strict>>;
3053
3554
  carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
3054
3555
  enabled: z$1.ZodLiteral<true>;
3055
3556
  featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
@@ -3337,6 +3838,173 @@ declare const apiOperations: {
3337
3838
  store_action_required: "store_action_required";
3338
3839
  }>;
3339
3840
  quote: z$1.ZodNullable<z$1.ZodObject<{
3841
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
3842
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3843
+ action: z$1.ZodLiteral<"purchase">;
3844
+ mode: z$1.ZodEnum<{
3845
+ payment: "payment";
3846
+ subscription: "subscription";
3847
+ }>;
3848
+ currency: z$1.ZodString;
3849
+ items: z$1.ZodArray<z$1.ZodObject<{
3850
+ merchantProductId: z$1.ZodString;
3851
+ merchantPriceId: z$1.ZodString;
3852
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
3853
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3854
+ }, z$1.core.$strict>>;
3855
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
3856
+ subject: z$1.ZodObject<{
3857
+ scope: z$1.ZodObject<{
3858
+ projectId: z$1.ZodUUID;
3859
+ environmentId: z$1.ZodUUID;
3860
+ environment: z$1.ZodEnum<{
3861
+ sandbox: "sandbox";
3862
+ live: "live";
3863
+ }>;
3864
+ }, z$1.core.$strict>;
3865
+ customerId: z$1.ZodUUID;
3866
+ }, z$1.core.$strict>;
3867
+ operationId: z$1.ZodUUID;
3868
+ configurationRevision: z$1.ZodNumber;
3869
+ connectionRevision: z$1.ZodNumber;
3870
+ expiresAt: z$1.ZodISODateTime;
3871
+ }, z$1.core.$strict>, z$1.ZodObject<{
3872
+ action: z$1.ZodLiteral<"subscription_change">;
3873
+ currency: z$1.ZodString;
3874
+ merchantSubscriptionId: z$1.ZodString;
3875
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3876
+ type: z$1.ZodLiteral<"cancel">;
3877
+ }, z$1.core.$strict>, z$1.ZodObject<{
3878
+ type: z$1.ZodLiteral<"uncancel">;
3879
+ }, z$1.core.$strict>, z$1.ZodObject<{
3880
+ type: z$1.ZodLiteral<"plan">;
3881
+ productVersionId: z$1.ZodUUID;
3882
+ }, z$1.core.$strict>, z$1.ZodObject<{
3883
+ type: z$1.ZodLiteral<"seats">;
3884
+ licenseKey: z$1.ZodString;
3885
+ quantity: z$1.ZodNumber;
3886
+ }, z$1.core.$strict>, z$1.ZodObject<{
3887
+ type: z$1.ZodLiteral<"quantity">;
3888
+ internal_feature_id: z$1.ZodUUID;
3889
+ quantity: z$1.ZodNumber;
3890
+ }, z$1.core.$strict>, z$1.ZodObject<{
3891
+ type: z$1.ZodLiteral<"billing_cycle">;
3892
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
3893
+ }, z$1.core.$strict>], "type">;
3894
+ timing: z$1.ZodEnum<{
3895
+ immediate: "immediate";
3896
+ renewal: "renewal";
3897
+ }>;
3898
+ proration: z$1.ZodEnum<{
3899
+ none: "none";
3900
+ create_prorations: "create_prorations";
3901
+ always_invoice: "always_invoice";
3902
+ }>;
3903
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
3904
+ subject: z$1.ZodObject<{
3905
+ scope: z$1.ZodObject<{
3906
+ projectId: z$1.ZodUUID;
3907
+ environmentId: z$1.ZodUUID;
3908
+ environment: z$1.ZodEnum<{
3909
+ sandbox: "sandbox";
3910
+ live: "live";
3911
+ }>;
3912
+ }, z$1.core.$strict>;
3913
+ customerId: z$1.ZodUUID;
3914
+ }, z$1.core.$strict>;
3915
+ operationId: z$1.ZodUUID;
3916
+ configurationRevision: z$1.ZodNumber;
3917
+ connectionRevision: z$1.ZodNumber;
3918
+ expiresAt: z$1.ZodISODateTime;
3919
+ }, z$1.core.$strict>, z$1.ZodObject<{
3920
+ action: z$1.ZodLiteral<"refund">;
3921
+ currency: z$1.ZodString;
3922
+ merchantInvoiceId: z$1.ZodString;
3923
+ mode: z$1.ZodEnum<{
3924
+ full: "full";
3925
+ partial: "partial";
3926
+ }>;
3927
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
3928
+ entitlementAction: z$1.ZodEnum<{
3929
+ retain: "retain";
3930
+ revoke: "revoke";
3931
+ }>;
3932
+ subject: z$1.ZodObject<{
3933
+ scope: z$1.ZodObject<{
3934
+ projectId: z$1.ZodUUID;
3935
+ environmentId: z$1.ZodUUID;
3936
+ environment: z$1.ZodEnum<{
3937
+ sandbox: "sandbox";
3938
+ live: "live";
3939
+ }>;
3940
+ }, z$1.core.$strict>;
3941
+ customerId: z$1.ZodUUID;
3942
+ }, z$1.core.$strict>;
3943
+ operationId: z$1.ZodUUID;
3944
+ configurationRevision: z$1.ZodNumber;
3945
+ connectionRevision: z$1.ZodNumber;
3946
+ expiresAt: z$1.ZodISODateTime;
3947
+ }, z$1.core.$strict>], "action">;
3948
+ requestDigest: z$1.ZodString;
3949
+ merchantQuoteId: z$1.ZodString;
3950
+ quoteTermsDigest: z$1.ZodString;
3951
+ termsVersion: z$1.ZodString;
3952
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
3953
+ reference: z$1.ZodString;
3954
+ revision: z$1.ZodString;
3955
+ }, z$1.core.$strict>>;
3956
+ observedAt: z$1.ZodISODateTime;
3957
+ expiresAt: z$1.ZodISODateTime;
3958
+ currency: z$1.ZodString;
3959
+ automaticTax: z$1.ZodBoolean;
3960
+ lines: z$1.ZodArray<z$1.ZodObject<{
3961
+ merchantLineId: z$1.ZodString;
3962
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
3963
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3964
+ subtotalMinor: z$1.ZodNumber;
3965
+ discountMinor: z$1.ZodNumber;
3966
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3967
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3968
+ }, z$1.core.$strict>>;
3969
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
3970
+ items: z$1.ZodArray<z$1.ZodObject<{
3971
+ merchantPriceId: z$1.ZodString;
3972
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
3973
+ interval: z$1.ZodEnum<{
3974
+ week: "week";
3975
+ month: "month";
3976
+ year: "year";
3977
+ }>;
3978
+ intervalCount: z$1.ZodNumber;
3979
+ amountMinor: z$1.ZodNumber;
3980
+ }, z$1.core.$strict>>;
3981
+ trial: z$1.ZodNullable<z$1.ZodObject<{
3982
+ days: z$1.ZodNumber;
3983
+ cardRequired: z$1.ZodBoolean;
3984
+ }, z$1.core.$strict>>;
3985
+ }, z$1.core.$strict>>;
3986
+ subtotalMinor: z$1.ZodNumber;
3987
+ discountMinor: z$1.ZodNumber;
3988
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
3989
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
3990
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
3991
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
3992
+ reference: z$1.ZodString;
3993
+ kind: z$1.ZodEnum<{
3994
+ change: "change";
3995
+ revoke: "revoke";
3996
+ grant: "grant";
3997
+ }>;
3998
+ description: z$1.ZodString;
3999
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
4000
+ unit: z$1.ZodNullable<z$1.ZodString>;
4001
+ }, z$1.core.$strict>>;
4002
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
4003
+ reference: z$1.ZodString;
4004
+ version: z$1.ZodString;
4005
+ summary: z$1.ZodString;
4006
+ }, z$1.core.$strict>>;
4007
+ }, z$1.core.$strict>>;
3340
4008
  carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
3341
4009
  enabled: z$1.ZodLiteral<true>;
3342
4010
  featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
@@ -3691,8 +4359,8 @@ declare const apiOperations: {
3691
4359
  entityId: z$1.ZodOptional<z$1.ZodUUID>;
3692
4360
  productId: z$1.ZodOptional<z$1.ZodString>;
3693
4361
  provider: z$1.ZodOptional<z$1.ZodEnum<{
3694
- free: "free";
3695
4362
  merchant: "merchant";
4363
+ free: "free";
3696
4364
  stripe: "stripe";
3697
4365
  apple: "apple";
3698
4366
  google: "google";
@@ -3700,8 +4368,8 @@ declare const apiOperations: {
3700
4368
  status: z$1.ZodOptional<z$1.ZodEnum<{
3701
4369
  active: "active";
3702
4370
  past_due: "past_due";
3703
- ended: "ended";
3704
4371
  trial: "trial";
4372
+ ended: "ended";
3705
4373
  refunded: "refunded";
3706
4374
  }>>;
3707
4375
  cursor: z$1.ZodOptional<z$1.ZodObject<{
@@ -3724,8 +4392,8 @@ declare const apiOperations: {
3724
4392
  status: z$1.ZodEnum<{
3725
4393
  active: "active";
3726
4394
  past_due: "past_due";
3727
- ended: "ended";
3728
4395
  trial: "trial";
4396
+ ended: "ended";
3729
4397
  }>;
3730
4398
  cancelAtPeriodEnd: z$1.ZodBoolean;
3731
4399
  billingSubscriptionId: z$1.ZodNullable<z$1.ZodUUID>;
@@ -3736,8 +4404,8 @@ declare const apiOperations: {
3736
4404
  productVersionId: z$1.ZodUUID;
3737
4405
  name: z$1.ZodString;
3738
4406
  provider: z$1.ZodEnum<{
3739
- free: "free";
3740
4407
  merchant: "merchant";
4408
+ free: "free";
3741
4409
  stripe: "stripe";
3742
4410
  apple: "apple";
3743
4411
  google: "google";
@@ -3761,8 +4429,8 @@ declare const apiOperations: {
3761
4429
  entityId: z$1.ZodOptional<z$1.ZodUUID>;
3762
4430
  productId: z$1.ZodOptional<z$1.ZodString>;
3763
4431
  provider: z$1.ZodOptional<z$1.ZodEnum<{
3764
- free: "free";
3765
4432
  merchant: "merchant";
4433
+ free: "free";
3766
4434
  stripe: "stripe";
3767
4435
  apple: "apple";
3768
4436
  google: "google";
@@ -3770,8 +4438,8 @@ declare const apiOperations: {
3770
4438
  status: z$1.ZodOptional<z$1.ZodEnum<{
3771
4439
  active: "active";
3772
4440
  past_due: "past_due";
3773
- ended: "ended";
3774
4441
  trial: "trial";
4442
+ ended: "ended";
3775
4443
  refunded: "refunded";
3776
4444
  }>>;
3777
4445
  cursor: z$1.ZodOptional<z$1.ZodObject<{
@@ -3841,8 +4509,8 @@ declare const apiOperations: {
3841
4509
  productVersionId: z$1.ZodUUID;
3842
4510
  name: z$1.ZodString;
3843
4511
  provider: z$1.ZodEnum<{
3844
- free: "free";
3845
4512
  merchant: "merchant";
4513
+ free: "free";
3846
4514
  stripe: "stripe";
3847
4515
  apple: "apple";
3848
4516
  google: "google";
@@ -3866,8 +4534,8 @@ declare const apiOperations: {
3866
4534
  entityId: z$1.ZodOptional<z$1.ZodUUID>;
3867
4535
  productId: z$1.ZodOptional<z$1.ZodString>;
3868
4536
  provider: z$1.ZodOptional<z$1.ZodEnum<{
3869
- free: "free";
3870
4537
  merchant: "merchant";
4538
+ free: "free";
3871
4539
  stripe: "stripe";
3872
4540
  apple: "apple";
3873
4541
  google: "google";
@@ -3910,8 +4578,8 @@ declare const apiOperations: {
3910
4578
  productVersionId: z$1.ZodUUID;
3911
4579
  name: z$1.ZodString;
3912
4580
  provider: z$1.ZodEnum<{
3913
- free: "free";
3914
4581
  merchant: "merchant";
4582
+ free: "free";
3915
4583
  stripe: "stripe";
3916
4584
  apple: "apple";
3917
4585
  google: "google";
@@ -4086,64 +4754,231 @@ declare const apiOperations: {
4086
4754
  }, z$1.core.$strict>;
4087
4755
  quote: z$1.ZodObject<{
4088
4756
  operationId: z$1.ZodUUID;
4089
- entityId: z$1.ZodNullable<z$1.ZodUUID>;
4090
- billingSubscriptionId: z$1.ZodNullable<z$1.ZodUUID>;
4091
- discount: z$1.ZodNullable<z$1.ZodObject<{
4092
- offerId: z$1.ZodUUID;
4093
- couponId: z$1.ZodUUID;
4094
- discount: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4095
- type: z$1.ZodLiteral<"percent">;
4096
- percentOff: z$1.ZodNumber;
4097
- }, z$1.core.$strict>, z$1.ZodObject<{
4098
- type: z$1.ZodLiteral<"amount">;
4099
- amountOffCents: z$1.ZodNumber;
4100
- currency: z$1.ZodEnum<{
4101
- USD: "USD";
4102
- EUR: "EUR";
4103
- CNY: "CNY";
4104
- GBP: "GBP";
4105
- JPY: "JPY";
4106
- CAD: "CAD";
4107
- AUD: "AUD";
4108
- NZD: "NZD";
4109
- CHF: "CHF";
4110
- HKD: "HKD";
4111
- SGD: "SGD";
4112
- KRW: "KRW";
4113
- INR: "INR";
4114
- BRL: "BRL";
4115
- MXN: "MXN";
4116
- TWD: "TWD";
4117
- THB: "THB";
4118
- IDR: "IDR";
4119
- MYR: "MYR";
4120
- PHP: "PHP";
4121
- VND: "VND";
4122
- ZAR: "ZAR";
4123
- AED: "AED";
4124
- SAR: "SAR";
4125
- SEK: "SEK";
4126
- NOK: "NOK";
4127
- DKK: "DKK";
4128
- PLN: "PLN";
4129
- CZK: "CZK";
4130
- HUF: "HUF";
4131
- ILS: "ILS";
4132
- TRY: "TRY";
4133
- RON: "RON";
4757
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
4758
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4759
+ action: z$1.ZodLiteral<"purchase">;
4760
+ mode: z$1.ZodEnum<{
4761
+ payment: "payment";
4762
+ subscription: "subscription";
4134
4763
  }>;
4135
- }, z$1.core.$strict>], "type">;
4136
- duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4137
- type: z$1.ZodLiteral<"once">;
4138
- }, z$1.core.$strict>, z$1.ZodObject<{
4139
- type: z$1.ZodLiteral<"repeating">;
4140
- months: z$1.ZodNumber;
4764
+ currency: z$1.ZodString;
4765
+ items: z$1.ZodArray<z$1.ZodObject<{
4766
+ merchantProductId: z$1.ZodString;
4767
+ merchantPriceId: z$1.ZodString;
4768
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
4769
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
4770
+ }, z$1.core.$strict>>;
4771
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
4772
+ subject: z$1.ZodObject<{
4773
+ scope: z$1.ZodObject<{
4774
+ projectId: z$1.ZodUUID;
4775
+ environmentId: z$1.ZodUUID;
4776
+ environment: z$1.ZodEnum<{
4777
+ sandbox: "sandbox";
4778
+ live: "live";
4779
+ }>;
4780
+ }, z$1.core.$strict>;
4781
+ customerId: z$1.ZodUUID;
4782
+ }, z$1.core.$strict>;
4783
+ operationId: z$1.ZodUUID;
4784
+ configurationRevision: z$1.ZodNumber;
4785
+ connectionRevision: z$1.ZodNumber;
4786
+ expiresAt: z$1.ZodISODateTime;
4141
4787
  }, z$1.core.$strict>, z$1.ZodObject<{
4142
- type: z$1.ZodLiteral<"forever">;
4143
- }, z$1.core.$strict>], "type">;
4144
- amountMinor: z$1.ZodNumber;
4145
- allocations: z$1.ZodArray<z$1.ZodObject<{
4146
- productVersionId: z$1.ZodUUID;
4788
+ action: z$1.ZodLiteral<"subscription_change">;
4789
+ currency: z$1.ZodString;
4790
+ merchantSubscriptionId: z$1.ZodString;
4791
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4792
+ type: z$1.ZodLiteral<"cancel">;
4793
+ }, z$1.core.$strict>, z$1.ZodObject<{
4794
+ type: z$1.ZodLiteral<"uncancel">;
4795
+ }, z$1.core.$strict>, z$1.ZodObject<{
4796
+ type: z$1.ZodLiteral<"plan">;
4797
+ productVersionId: z$1.ZodUUID;
4798
+ }, z$1.core.$strict>, z$1.ZodObject<{
4799
+ type: z$1.ZodLiteral<"seats">;
4800
+ licenseKey: z$1.ZodString;
4801
+ quantity: z$1.ZodNumber;
4802
+ }, z$1.core.$strict>, z$1.ZodObject<{
4803
+ type: z$1.ZodLiteral<"quantity">;
4804
+ internal_feature_id: z$1.ZodUUID;
4805
+ quantity: z$1.ZodNumber;
4806
+ }, z$1.core.$strict>, z$1.ZodObject<{
4807
+ type: z$1.ZodLiteral<"billing_cycle">;
4808
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
4809
+ }, z$1.core.$strict>], "type">;
4810
+ timing: z$1.ZodEnum<{
4811
+ immediate: "immediate";
4812
+ renewal: "renewal";
4813
+ }>;
4814
+ proration: z$1.ZodEnum<{
4815
+ none: "none";
4816
+ create_prorations: "create_prorations";
4817
+ always_invoice: "always_invoice";
4818
+ }>;
4819
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
4820
+ subject: z$1.ZodObject<{
4821
+ scope: z$1.ZodObject<{
4822
+ projectId: z$1.ZodUUID;
4823
+ environmentId: z$1.ZodUUID;
4824
+ environment: z$1.ZodEnum<{
4825
+ sandbox: "sandbox";
4826
+ live: "live";
4827
+ }>;
4828
+ }, z$1.core.$strict>;
4829
+ customerId: z$1.ZodUUID;
4830
+ }, z$1.core.$strict>;
4831
+ operationId: z$1.ZodUUID;
4832
+ configurationRevision: z$1.ZodNumber;
4833
+ connectionRevision: z$1.ZodNumber;
4834
+ expiresAt: z$1.ZodISODateTime;
4835
+ }, z$1.core.$strict>, z$1.ZodObject<{
4836
+ action: z$1.ZodLiteral<"refund">;
4837
+ currency: z$1.ZodString;
4838
+ merchantInvoiceId: z$1.ZodString;
4839
+ mode: z$1.ZodEnum<{
4840
+ full: "full";
4841
+ partial: "partial";
4842
+ }>;
4843
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
4844
+ entitlementAction: z$1.ZodEnum<{
4845
+ retain: "retain";
4846
+ revoke: "revoke";
4847
+ }>;
4848
+ subject: z$1.ZodObject<{
4849
+ scope: z$1.ZodObject<{
4850
+ projectId: z$1.ZodUUID;
4851
+ environmentId: z$1.ZodUUID;
4852
+ environment: z$1.ZodEnum<{
4853
+ sandbox: "sandbox";
4854
+ live: "live";
4855
+ }>;
4856
+ }, z$1.core.$strict>;
4857
+ customerId: z$1.ZodUUID;
4858
+ }, z$1.core.$strict>;
4859
+ operationId: z$1.ZodUUID;
4860
+ configurationRevision: z$1.ZodNumber;
4861
+ connectionRevision: z$1.ZodNumber;
4862
+ expiresAt: z$1.ZodISODateTime;
4863
+ }, z$1.core.$strict>], "action">;
4864
+ requestDigest: z$1.ZodString;
4865
+ merchantQuoteId: z$1.ZodString;
4866
+ quoteTermsDigest: z$1.ZodString;
4867
+ termsVersion: z$1.ZodString;
4868
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
4869
+ reference: z$1.ZodString;
4870
+ revision: z$1.ZodString;
4871
+ }, z$1.core.$strict>>;
4872
+ observedAt: z$1.ZodISODateTime;
4873
+ expiresAt: z$1.ZodISODateTime;
4874
+ currency: z$1.ZodString;
4875
+ automaticTax: z$1.ZodBoolean;
4876
+ lines: z$1.ZodArray<z$1.ZodObject<{
4877
+ merchantLineId: z$1.ZodString;
4878
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
4879
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
4880
+ subtotalMinor: z$1.ZodNumber;
4881
+ discountMinor: z$1.ZodNumber;
4882
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
4883
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
4884
+ }, z$1.core.$strict>>;
4885
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
4886
+ items: z$1.ZodArray<z$1.ZodObject<{
4887
+ merchantPriceId: z$1.ZodString;
4888
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
4889
+ interval: z$1.ZodEnum<{
4890
+ week: "week";
4891
+ month: "month";
4892
+ year: "year";
4893
+ }>;
4894
+ intervalCount: z$1.ZodNumber;
4895
+ amountMinor: z$1.ZodNumber;
4896
+ }, z$1.core.$strict>>;
4897
+ trial: z$1.ZodNullable<z$1.ZodObject<{
4898
+ days: z$1.ZodNumber;
4899
+ cardRequired: z$1.ZodBoolean;
4900
+ }, z$1.core.$strict>>;
4901
+ }, z$1.core.$strict>>;
4902
+ subtotalMinor: z$1.ZodNumber;
4903
+ discountMinor: z$1.ZodNumber;
4904
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
4905
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
4906
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
4907
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
4908
+ reference: z$1.ZodString;
4909
+ kind: z$1.ZodEnum<{
4910
+ change: "change";
4911
+ revoke: "revoke";
4912
+ grant: "grant";
4913
+ }>;
4914
+ description: z$1.ZodString;
4915
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
4916
+ unit: z$1.ZodNullable<z$1.ZodString>;
4917
+ }, z$1.core.$strict>>;
4918
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
4919
+ reference: z$1.ZodString;
4920
+ version: z$1.ZodString;
4921
+ summary: z$1.ZodString;
4922
+ }, z$1.core.$strict>>;
4923
+ }, z$1.core.$strict>>;
4924
+ entityId: z$1.ZodNullable<z$1.ZodUUID>;
4925
+ billingSubscriptionId: z$1.ZodNullable<z$1.ZodUUID>;
4926
+ discount: z$1.ZodNullable<z$1.ZodObject<{
4927
+ offerId: z$1.ZodUUID;
4928
+ couponId: z$1.ZodUUID;
4929
+ discount: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4930
+ type: z$1.ZodLiteral<"percent">;
4931
+ percentOff: z$1.ZodNumber;
4932
+ }, z$1.core.$strict>, z$1.ZodObject<{
4933
+ type: z$1.ZodLiteral<"amount">;
4934
+ amountOffCents: z$1.ZodNumber;
4935
+ currency: z$1.ZodEnum<{
4936
+ USD: "USD";
4937
+ EUR: "EUR";
4938
+ CNY: "CNY";
4939
+ GBP: "GBP";
4940
+ JPY: "JPY";
4941
+ CAD: "CAD";
4942
+ AUD: "AUD";
4943
+ NZD: "NZD";
4944
+ CHF: "CHF";
4945
+ HKD: "HKD";
4946
+ SGD: "SGD";
4947
+ KRW: "KRW";
4948
+ INR: "INR";
4949
+ BRL: "BRL";
4950
+ MXN: "MXN";
4951
+ TWD: "TWD";
4952
+ THB: "THB";
4953
+ IDR: "IDR";
4954
+ MYR: "MYR";
4955
+ PHP: "PHP";
4956
+ VND: "VND";
4957
+ ZAR: "ZAR";
4958
+ AED: "AED";
4959
+ SAR: "SAR";
4960
+ SEK: "SEK";
4961
+ NOK: "NOK";
4962
+ DKK: "DKK";
4963
+ PLN: "PLN";
4964
+ CZK: "CZK";
4965
+ HUF: "HUF";
4966
+ ILS: "ILS";
4967
+ TRY: "TRY";
4968
+ RON: "RON";
4969
+ }>;
4970
+ }, z$1.core.$strict>], "type">;
4971
+ duration: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4972
+ type: z$1.ZodLiteral<"once">;
4973
+ }, z$1.core.$strict>, z$1.ZodObject<{
4974
+ type: z$1.ZodLiteral<"repeating">;
4975
+ months: z$1.ZodNumber;
4976
+ }, z$1.core.$strict>, z$1.ZodObject<{
4977
+ type: z$1.ZodLiteral<"forever">;
4978
+ }, z$1.core.$strict>], "type">;
4979
+ amountMinor: z$1.ZodNumber;
4980
+ allocations: z$1.ZodArray<z$1.ZodObject<{
4981
+ productVersionId: z$1.ZodUUID;
4147
4982
  amountMinor: z$1.ZodNumber;
4148
4983
  }, z$1.core.$strict>>;
4149
4984
  expiresAt: z$1.ZodISODateTime;
@@ -4624,6 +5459,19 @@ declare const apiOperations: {
4624
5459
  eventId: z$1.ZodString;
4625
5460
  customerId: z$1.ZodUUID;
4626
5461
  occurredAt: z$1.ZodISODateTime;
5462
+ }, z$1.core.$strict>, z$1.ZodObject<{
5463
+ type: z$1.ZodLiteral<"subscription.change.closed">;
5464
+ operationId: z$1.ZodUUID;
5465
+ merchantSubscriptionId: z$1.ZodString;
5466
+ merchantInvoiceId: z$1.ZodNullable<z$1.ZodString>;
5467
+ status: z$1.ZodEnum<{
5468
+ failed: "failed";
5469
+ expired: "expired";
5470
+ canceled: "canceled";
5471
+ }>;
5472
+ eventId: z$1.ZodString;
5473
+ customerId: z$1.ZodUUID;
5474
+ occurredAt: z$1.ZodISODateTime;
4627
5475
  }, z$1.core.$strict>, z$1.ZodObject<{
4628
5476
  type: z$1.ZodLiteral<"invoice.paid">;
4629
5477
  merchantSubscriptionId: z$1.ZodNullable<z$1.ZodString>;
@@ -4810,6 +5658,13 @@ declare const apiOperations: {
4810
5658
  cancel: "cancel";
4811
5659
  confirm: "confirm";
4812
5660
  }>>;
5661
+ merchantConfirmation: z$1.ZodOptional<z$1.ZodObject<{
5662
+ quoteTermsDigest: z$1.ZodString;
5663
+ consents: z$1.ZodArray<z$1.ZodObject<{
5664
+ reference: z$1.ZodString;
5665
+ version: z$1.ZodString;
5666
+ }, z$1.core.$strict>>;
5667
+ }, z$1.core.$strict>>;
4813
5668
  }, z$1.core.$strict>;
4814
5669
  readonly response: z$1.ZodObject<{
4815
5670
  requestId: z$1.ZodUUID;
@@ -5115,6 +5970,173 @@ declare const apiOperations: {
5115
5970
  confirmedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
5116
5971
  quote: z$1.ZodOptional<z$1.ZodObject<{
5117
5972
  operationId: z$1.ZodUUID;
5973
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
5974
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
5975
+ action: z$1.ZodLiteral<"purchase">;
5976
+ mode: z$1.ZodEnum<{
5977
+ payment: "payment";
5978
+ subscription: "subscription";
5979
+ }>;
5980
+ currency: z$1.ZodString;
5981
+ items: z$1.ZodArray<z$1.ZodObject<{
5982
+ merchantProductId: z$1.ZodString;
5983
+ merchantPriceId: z$1.ZodString;
5984
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
5985
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
5986
+ }, z$1.core.$strict>>;
5987
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
5988
+ subject: z$1.ZodObject<{
5989
+ scope: z$1.ZodObject<{
5990
+ projectId: z$1.ZodUUID;
5991
+ environmentId: z$1.ZodUUID;
5992
+ environment: z$1.ZodEnum<{
5993
+ sandbox: "sandbox";
5994
+ live: "live";
5995
+ }>;
5996
+ }, z$1.core.$strict>;
5997
+ customerId: z$1.ZodUUID;
5998
+ }, z$1.core.$strict>;
5999
+ operationId: z$1.ZodUUID;
6000
+ configurationRevision: z$1.ZodNumber;
6001
+ connectionRevision: z$1.ZodNumber;
6002
+ expiresAt: z$1.ZodISODateTime;
6003
+ }, z$1.core.$strict>, z$1.ZodObject<{
6004
+ action: z$1.ZodLiteral<"subscription_change">;
6005
+ currency: z$1.ZodString;
6006
+ merchantSubscriptionId: z$1.ZodString;
6007
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
6008
+ type: z$1.ZodLiteral<"cancel">;
6009
+ }, z$1.core.$strict>, z$1.ZodObject<{
6010
+ type: z$1.ZodLiteral<"uncancel">;
6011
+ }, z$1.core.$strict>, z$1.ZodObject<{
6012
+ type: z$1.ZodLiteral<"plan">;
6013
+ productVersionId: z$1.ZodUUID;
6014
+ }, z$1.core.$strict>, z$1.ZodObject<{
6015
+ type: z$1.ZodLiteral<"seats">;
6016
+ licenseKey: z$1.ZodString;
6017
+ quantity: z$1.ZodNumber;
6018
+ }, z$1.core.$strict>, z$1.ZodObject<{
6019
+ type: z$1.ZodLiteral<"quantity">;
6020
+ internal_feature_id: z$1.ZodUUID;
6021
+ quantity: z$1.ZodNumber;
6022
+ }, z$1.core.$strict>, z$1.ZodObject<{
6023
+ type: z$1.ZodLiteral<"billing_cycle">;
6024
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
6025
+ }, z$1.core.$strict>], "type">;
6026
+ timing: z$1.ZodEnum<{
6027
+ immediate: "immediate";
6028
+ renewal: "renewal";
6029
+ }>;
6030
+ proration: z$1.ZodEnum<{
6031
+ none: "none";
6032
+ create_prorations: "create_prorations";
6033
+ always_invoice: "always_invoice";
6034
+ }>;
6035
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
6036
+ subject: z$1.ZodObject<{
6037
+ scope: z$1.ZodObject<{
6038
+ projectId: z$1.ZodUUID;
6039
+ environmentId: z$1.ZodUUID;
6040
+ environment: z$1.ZodEnum<{
6041
+ sandbox: "sandbox";
6042
+ live: "live";
6043
+ }>;
6044
+ }, z$1.core.$strict>;
6045
+ customerId: z$1.ZodUUID;
6046
+ }, z$1.core.$strict>;
6047
+ operationId: z$1.ZodUUID;
6048
+ configurationRevision: z$1.ZodNumber;
6049
+ connectionRevision: z$1.ZodNumber;
6050
+ expiresAt: z$1.ZodISODateTime;
6051
+ }, z$1.core.$strict>, z$1.ZodObject<{
6052
+ action: z$1.ZodLiteral<"refund">;
6053
+ currency: z$1.ZodString;
6054
+ merchantInvoiceId: z$1.ZodString;
6055
+ mode: z$1.ZodEnum<{
6056
+ full: "full";
6057
+ partial: "partial";
6058
+ }>;
6059
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
6060
+ entitlementAction: z$1.ZodEnum<{
6061
+ retain: "retain";
6062
+ revoke: "revoke";
6063
+ }>;
6064
+ subject: z$1.ZodObject<{
6065
+ scope: z$1.ZodObject<{
6066
+ projectId: z$1.ZodUUID;
6067
+ environmentId: z$1.ZodUUID;
6068
+ environment: z$1.ZodEnum<{
6069
+ sandbox: "sandbox";
6070
+ live: "live";
6071
+ }>;
6072
+ }, z$1.core.$strict>;
6073
+ customerId: z$1.ZodUUID;
6074
+ }, z$1.core.$strict>;
6075
+ operationId: z$1.ZodUUID;
6076
+ configurationRevision: z$1.ZodNumber;
6077
+ connectionRevision: z$1.ZodNumber;
6078
+ expiresAt: z$1.ZodISODateTime;
6079
+ }, z$1.core.$strict>], "action">;
6080
+ requestDigest: z$1.ZodString;
6081
+ merchantQuoteId: z$1.ZodString;
6082
+ quoteTermsDigest: z$1.ZodString;
6083
+ termsVersion: z$1.ZodString;
6084
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
6085
+ reference: z$1.ZodString;
6086
+ revision: z$1.ZodString;
6087
+ }, z$1.core.$strict>>;
6088
+ observedAt: z$1.ZodISODateTime;
6089
+ expiresAt: z$1.ZodISODateTime;
6090
+ currency: z$1.ZodString;
6091
+ automaticTax: z$1.ZodBoolean;
6092
+ lines: z$1.ZodArray<z$1.ZodObject<{
6093
+ merchantLineId: z$1.ZodString;
6094
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
6095
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
6096
+ subtotalMinor: z$1.ZodNumber;
6097
+ discountMinor: z$1.ZodNumber;
6098
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
6099
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
6100
+ }, z$1.core.$strict>>;
6101
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
6102
+ items: z$1.ZodArray<z$1.ZodObject<{
6103
+ merchantPriceId: z$1.ZodString;
6104
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
6105
+ interval: z$1.ZodEnum<{
6106
+ week: "week";
6107
+ month: "month";
6108
+ year: "year";
6109
+ }>;
6110
+ intervalCount: z$1.ZodNumber;
6111
+ amountMinor: z$1.ZodNumber;
6112
+ }, z$1.core.$strict>>;
6113
+ trial: z$1.ZodNullable<z$1.ZodObject<{
6114
+ days: z$1.ZodNumber;
6115
+ cardRequired: z$1.ZodBoolean;
6116
+ }, z$1.core.$strict>>;
6117
+ }, z$1.core.$strict>>;
6118
+ subtotalMinor: z$1.ZodNumber;
6119
+ discountMinor: z$1.ZodNumber;
6120
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
6121
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
6122
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
6123
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
6124
+ reference: z$1.ZodString;
6125
+ kind: z$1.ZodEnum<{
6126
+ change: "change";
6127
+ revoke: "revoke";
6128
+ grant: "grant";
6129
+ }>;
6130
+ description: z$1.ZodString;
6131
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
6132
+ unit: z$1.ZodNullable<z$1.ZodString>;
6133
+ }, z$1.core.$strict>>;
6134
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
6135
+ reference: z$1.ZodString;
6136
+ version: z$1.ZodString;
6137
+ summary: z$1.ZodString;
6138
+ }, z$1.core.$strict>>;
6139
+ }, z$1.core.$strict>>;
5118
6140
  entityId: z$1.ZodNullable<z$1.ZodUUID>;
5119
6141
  billingSubscriptionId: z$1.ZodNullable<z$1.ZodUUID>;
5120
6142
  discount: z$1.ZodNullable<z$1.ZodObject<{
@@ -5989,17 +7011,184 @@ declare const apiOperations: {
5989
7011
  currency: z$1.ZodString;
5990
7012
  expiresAt: z$1.ZodISODateTime;
5991
7013
  }, z$1.core.$strict>], "type">;
5992
- }, z$1.core.$strict>>;
5993
- }, z$1.core.$strict>;
5994
- }, z$1.core.$strict>;
5995
- };
5996
- readonly readSubscriptionOperation: {
5997
- readonly method: "POST";
5998
- readonly path: "subscriptions/operations/read";
5999
- readonly permission: "billing:read";
6000
- readonly audience: "mixed";
6001
- readonly request: z$1.ZodObject<{
6002
- operationId: z$1.ZodUUID;
7014
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
7015
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7016
+ action: z$1.ZodLiteral<"purchase">;
7017
+ mode: z$1.ZodEnum<{
7018
+ payment: "payment";
7019
+ subscription: "subscription";
7020
+ }>;
7021
+ currency: z$1.ZodString;
7022
+ items: z$1.ZodArray<z$1.ZodObject<{
7023
+ merchantProductId: z$1.ZodString;
7024
+ merchantPriceId: z$1.ZodString;
7025
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
7026
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
7027
+ }, z$1.core.$strict>>;
7028
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
7029
+ subject: z$1.ZodObject<{
7030
+ scope: z$1.ZodObject<{
7031
+ projectId: z$1.ZodUUID;
7032
+ environmentId: z$1.ZodUUID;
7033
+ environment: z$1.ZodEnum<{
7034
+ sandbox: "sandbox";
7035
+ live: "live";
7036
+ }>;
7037
+ }, z$1.core.$strict>;
7038
+ customerId: z$1.ZodUUID;
7039
+ }, z$1.core.$strict>;
7040
+ operationId: z$1.ZodUUID;
7041
+ configurationRevision: z$1.ZodNumber;
7042
+ connectionRevision: z$1.ZodNumber;
7043
+ expiresAt: z$1.ZodISODateTime;
7044
+ }, z$1.core.$strict>, z$1.ZodObject<{
7045
+ action: z$1.ZodLiteral<"subscription_change">;
7046
+ currency: z$1.ZodString;
7047
+ merchantSubscriptionId: z$1.ZodString;
7048
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7049
+ type: z$1.ZodLiteral<"cancel">;
7050
+ }, z$1.core.$strict>, z$1.ZodObject<{
7051
+ type: z$1.ZodLiteral<"uncancel">;
7052
+ }, z$1.core.$strict>, z$1.ZodObject<{
7053
+ type: z$1.ZodLiteral<"plan">;
7054
+ productVersionId: z$1.ZodUUID;
7055
+ }, z$1.core.$strict>, z$1.ZodObject<{
7056
+ type: z$1.ZodLiteral<"seats">;
7057
+ licenseKey: z$1.ZodString;
7058
+ quantity: z$1.ZodNumber;
7059
+ }, z$1.core.$strict>, z$1.ZodObject<{
7060
+ type: z$1.ZodLiteral<"quantity">;
7061
+ internal_feature_id: z$1.ZodUUID;
7062
+ quantity: z$1.ZodNumber;
7063
+ }, z$1.core.$strict>, z$1.ZodObject<{
7064
+ type: z$1.ZodLiteral<"billing_cycle">;
7065
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
7066
+ }, z$1.core.$strict>], "type">;
7067
+ timing: z$1.ZodEnum<{
7068
+ immediate: "immediate";
7069
+ renewal: "renewal";
7070
+ }>;
7071
+ proration: z$1.ZodEnum<{
7072
+ none: "none";
7073
+ create_prorations: "create_prorations";
7074
+ always_invoice: "always_invoice";
7075
+ }>;
7076
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
7077
+ subject: z$1.ZodObject<{
7078
+ scope: z$1.ZodObject<{
7079
+ projectId: z$1.ZodUUID;
7080
+ environmentId: z$1.ZodUUID;
7081
+ environment: z$1.ZodEnum<{
7082
+ sandbox: "sandbox";
7083
+ live: "live";
7084
+ }>;
7085
+ }, z$1.core.$strict>;
7086
+ customerId: z$1.ZodUUID;
7087
+ }, z$1.core.$strict>;
7088
+ operationId: z$1.ZodUUID;
7089
+ configurationRevision: z$1.ZodNumber;
7090
+ connectionRevision: z$1.ZodNumber;
7091
+ expiresAt: z$1.ZodISODateTime;
7092
+ }, z$1.core.$strict>, z$1.ZodObject<{
7093
+ action: z$1.ZodLiteral<"refund">;
7094
+ currency: z$1.ZodString;
7095
+ merchantInvoiceId: z$1.ZodString;
7096
+ mode: z$1.ZodEnum<{
7097
+ full: "full";
7098
+ partial: "partial";
7099
+ }>;
7100
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
7101
+ entitlementAction: z$1.ZodEnum<{
7102
+ retain: "retain";
7103
+ revoke: "revoke";
7104
+ }>;
7105
+ subject: z$1.ZodObject<{
7106
+ scope: z$1.ZodObject<{
7107
+ projectId: z$1.ZodUUID;
7108
+ environmentId: z$1.ZodUUID;
7109
+ environment: z$1.ZodEnum<{
7110
+ sandbox: "sandbox";
7111
+ live: "live";
7112
+ }>;
7113
+ }, z$1.core.$strict>;
7114
+ customerId: z$1.ZodUUID;
7115
+ }, z$1.core.$strict>;
7116
+ operationId: z$1.ZodUUID;
7117
+ configurationRevision: z$1.ZodNumber;
7118
+ connectionRevision: z$1.ZodNumber;
7119
+ expiresAt: z$1.ZodISODateTime;
7120
+ }, z$1.core.$strict>], "action">;
7121
+ requestDigest: z$1.ZodString;
7122
+ merchantQuoteId: z$1.ZodString;
7123
+ quoteTermsDigest: z$1.ZodString;
7124
+ termsVersion: z$1.ZodString;
7125
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
7126
+ reference: z$1.ZodString;
7127
+ revision: z$1.ZodString;
7128
+ }, z$1.core.$strict>>;
7129
+ observedAt: z$1.ZodISODateTime;
7130
+ expiresAt: z$1.ZodISODateTime;
7131
+ currency: z$1.ZodString;
7132
+ automaticTax: z$1.ZodBoolean;
7133
+ lines: z$1.ZodArray<z$1.ZodObject<{
7134
+ merchantLineId: z$1.ZodString;
7135
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
7136
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
7137
+ subtotalMinor: z$1.ZodNumber;
7138
+ discountMinor: z$1.ZodNumber;
7139
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
7140
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
7141
+ }, z$1.core.$strict>>;
7142
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
7143
+ items: z$1.ZodArray<z$1.ZodObject<{
7144
+ merchantPriceId: z$1.ZodString;
7145
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
7146
+ interval: z$1.ZodEnum<{
7147
+ week: "week";
7148
+ month: "month";
7149
+ year: "year";
7150
+ }>;
7151
+ intervalCount: z$1.ZodNumber;
7152
+ amountMinor: z$1.ZodNumber;
7153
+ }, z$1.core.$strict>>;
7154
+ trial: z$1.ZodNullable<z$1.ZodObject<{
7155
+ days: z$1.ZodNumber;
7156
+ cardRequired: z$1.ZodBoolean;
7157
+ }, z$1.core.$strict>>;
7158
+ }, z$1.core.$strict>>;
7159
+ subtotalMinor: z$1.ZodNumber;
7160
+ discountMinor: z$1.ZodNumber;
7161
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
7162
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
7163
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
7164
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
7165
+ reference: z$1.ZodString;
7166
+ kind: z$1.ZodEnum<{
7167
+ change: "change";
7168
+ revoke: "revoke";
7169
+ grant: "grant";
7170
+ }>;
7171
+ description: z$1.ZodString;
7172
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
7173
+ unit: z$1.ZodNullable<z$1.ZodString>;
7174
+ }, z$1.core.$strict>>;
7175
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
7176
+ reference: z$1.ZodString;
7177
+ version: z$1.ZodString;
7178
+ summary: z$1.ZodString;
7179
+ }, z$1.core.$strict>>;
7180
+ }, z$1.core.$strict>>;
7181
+ }, z$1.core.$strict>>;
7182
+ }, z$1.core.$strict>;
7183
+ }, z$1.core.$strict>;
7184
+ };
7185
+ readonly readSubscriptionOperation: {
7186
+ readonly method: "POST";
7187
+ readonly path: "subscriptions/operations/read";
7188
+ readonly permission: "billing:read";
7189
+ readonly audience: "mixed";
7190
+ readonly request: z$1.ZodObject<{
7191
+ operationId: z$1.ZodUUID;
6003
7192
  customerId: z$1.ZodOptional<z$1.ZodUUID>;
6004
7193
  }, z$1.core.$strict>;
6005
7194
  readonly response: z$1.ZodObject<{
@@ -6306,6 +7495,173 @@ declare const apiOperations: {
6306
7495
  confirmedAt: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodISODateTime>>;
6307
7496
  quote: z$1.ZodOptional<z$1.ZodObject<{
6308
7497
  operationId: z$1.ZodUUID;
7498
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
7499
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7500
+ action: z$1.ZodLiteral<"purchase">;
7501
+ mode: z$1.ZodEnum<{
7502
+ payment: "payment";
7503
+ subscription: "subscription";
7504
+ }>;
7505
+ currency: z$1.ZodString;
7506
+ items: z$1.ZodArray<z$1.ZodObject<{
7507
+ merchantProductId: z$1.ZodString;
7508
+ merchantPriceId: z$1.ZodString;
7509
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
7510
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
7511
+ }, z$1.core.$strict>>;
7512
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
7513
+ subject: z$1.ZodObject<{
7514
+ scope: z$1.ZodObject<{
7515
+ projectId: z$1.ZodUUID;
7516
+ environmentId: z$1.ZodUUID;
7517
+ environment: z$1.ZodEnum<{
7518
+ sandbox: "sandbox";
7519
+ live: "live";
7520
+ }>;
7521
+ }, z$1.core.$strict>;
7522
+ customerId: z$1.ZodUUID;
7523
+ }, z$1.core.$strict>;
7524
+ operationId: z$1.ZodUUID;
7525
+ configurationRevision: z$1.ZodNumber;
7526
+ connectionRevision: z$1.ZodNumber;
7527
+ expiresAt: z$1.ZodISODateTime;
7528
+ }, z$1.core.$strict>, z$1.ZodObject<{
7529
+ action: z$1.ZodLiteral<"subscription_change">;
7530
+ currency: z$1.ZodString;
7531
+ merchantSubscriptionId: z$1.ZodString;
7532
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7533
+ type: z$1.ZodLiteral<"cancel">;
7534
+ }, z$1.core.$strict>, z$1.ZodObject<{
7535
+ type: z$1.ZodLiteral<"uncancel">;
7536
+ }, z$1.core.$strict>, z$1.ZodObject<{
7537
+ type: z$1.ZodLiteral<"plan">;
7538
+ productVersionId: z$1.ZodUUID;
7539
+ }, z$1.core.$strict>, z$1.ZodObject<{
7540
+ type: z$1.ZodLiteral<"seats">;
7541
+ licenseKey: z$1.ZodString;
7542
+ quantity: z$1.ZodNumber;
7543
+ }, z$1.core.$strict>, z$1.ZodObject<{
7544
+ type: z$1.ZodLiteral<"quantity">;
7545
+ internal_feature_id: z$1.ZodUUID;
7546
+ quantity: z$1.ZodNumber;
7547
+ }, z$1.core.$strict>, z$1.ZodObject<{
7548
+ type: z$1.ZodLiteral<"billing_cycle">;
7549
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
7550
+ }, z$1.core.$strict>], "type">;
7551
+ timing: z$1.ZodEnum<{
7552
+ immediate: "immediate";
7553
+ renewal: "renewal";
7554
+ }>;
7555
+ proration: z$1.ZodEnum<{
7556
+ none: "none";
7557
+ create_prorations: "create_prorations";
7558
+ always_invoice: "always_invoice";
7559
+ }>;
7560
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
7561
+ subject: z$1.ZodObject<{
7562
+ scope: z$1.ZodObject<{
7563
+ projectId: z$1.ZodUUID;
7564
+ environmentId: z$1.ZodUUID;
7565
+ environment: z$1.ZodEnum<{
7566
+ sandbox: "sandbox";
7567
+ live: "live";
7568
+ }>;
7569
+ }, z$1.core.$strict>;
7570
+ customerId: z$1.ZodUUID;
7571
+ }, z$1.core.$strict>;
7572
+ operationId: z$1.ZodUUID;
7573
+ configurationRevision: z$1.ZodNumber;
7574
+ connectionRevision: z$1.ZodNumber;
7575
+ expiresAt: z$1.ZodISODateTime;
7576
+ }, z$1.core.$strict>, z$1.ZodObject<{
7577
+ action: z$1.ZodLiteral<"refund">;
7578
+ currency: z$1.ZodString;
7579
+ merchantInvoiceId: z$1.ZodString;
7580
+ mode: z$1.ZodEnum<{
7581
+ full: "full";
7582
+ partial: "partial";
7583
+ }>;
7584
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
7585
+ entitlementAction: z$1.ZodEnum<{
7586
+ retain: "retain";
7587
+ revoke: "revoke";
7588
+ }>;
7589
+ subject: z$1.ZodObject<{
7590
+ scope: z$1.ZodObject<{
7591
+ projectId: z$1.ZodUUID;
7592
+ environmentId: z$1.ZodUUID;
7593
+ environment: z$1.ZodEnum<{
7594
+ sandbox: "sandbox";
7595
+ live: "live";
7596
+ }>;
7597
+ }, z$1.core.$strict>;
7598
+ customerId: z$1.ZodUUID;
7599
+ }, z$1.core.$strict>;
7600
+ operationId: z$1.ZodUUID;
7601
+ configurationRevision: z$1.ZodNumber;
7602
+ connectionRevision: z$1.ZodNumber;
7603
+ expiresAt: z$1.ZodISODateTime;
7604
+ }, z$1.core.$strict>], "action">;
7605
+ requestDigest: z$1.ZodString;
7606
+ merchantQuoteId: z$1.ZodString;
7607
+ quoteTermsDigest: z$1.ZodString;
7608
+ termsVersion: z$1.ZodString;
7609
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
7610
+ reference: z$1.ZodString;
7611
+ revision: z$1.ZodString;
7612
+ }, z$1.core.$strict>>;
7613
+ observedAt: z$1.ZodISODateTime;
7614
+ expiresAt: z$1.ZodISODateTime;
7615
+ currency: z$1.ZodString;
7616
+ automaticTax: z$1.ZodBoolean;
7617
+ lines: z$1.ZodArray<z$1.ZodObject<{
7618
+ merchantLineId: z$1.ZodString;
7619
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
7620
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
7621
+ subtotalMinor: z$1.ZodNumber;
7622
+ discountMinor: z$1.ZodNumber;
7623
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
7624
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
7625
+ }, z$1.core.$strict>>;
7626
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
7627
+ items: z$1.ZodArray<z$1.ZodObject<{
7628
+ merchantPriceId: z$1.ZodString;
7629
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
7630
+ interval: z$1.ZodEnum<{
7631
+ week: "week";
7632
+ month: "month";
7633
+ year: "year";
7634
+ }>;
7635
+ intervalCount: z$1.ZodNumber;
7636
+ amountMinor: z$1.ZodNumber;
7637
+ }, z$1.core.$strict>>;
7638
+ trial: z$1.ZodNullable<z$1.ZodObject<{
7639
+ days: z$1.ZodNumber;
7640
+ cardRequired: z$1.ZodBoolean;
7641
+ }, z$1.core.$strict>>;
7642
+ }, z$1.core.$strict>>;
7643
+ subtotalMinor: z$1.ZodNumber;
7644
+ discountMinor: z$1.ZodNumber;
7645
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
7646
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
7647
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
7648
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
7649
+ reference: z$1.ZodString;
7650
+ kind: z$1.ZodEnum<{
7651
+ change: "change";
7652
+ revoke: "revoke";
7653
+ grant: "grant";
7654
+ }>;
7655
+ description: z$1.ZodString;
7656
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
7657
+ unit: z$1.ZodNullable<z$1.ZodString>;
7658
+ }, z$1.core.$strict>>;
7659
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
7660
+ reference: z$1.ZodString;
7661
+ version: z$1.ZodString;
7662
+ summary: z$1.ZodString;
7663
+ }, z$1.core.$strict>>;
7664
+ }, z$1.core.$strict>>;
6309
7665
  entityId: z$1.ZodNullable<z$1.ZodUUID>;
6310
7666
  billingSubscriptionId: z$1.ZodNullable<z$1.ZodUUID>;
6311
7667
  discount: z$1.ZodNullable<z$1.ZodObject<{
@@ -7180,79 +8536,413 @@ declare const apiOperations: {
7180
8536
  currency: z$1.ZodString;
7181
8537
  expiresAt: z$1.ZodISODateTime;
7182
8538
  }, z$1.core.$strict>], "type">;
7183
- }, z$1.core.$strict>>;
7184
- }, z$1.core.$strict>;
7185
- }, z$1.core.$strict>;
7186
- };
7187
- readonly previewUpdate: {
7188
- readonly method: "POST";
7189
- readonly path: "subscriptions/preview-update";
7190
- readonly permission: "billing:read";
7191
- readonly audience: "mixed";
7192
- readonly request: z$1.ZodObject<{
7193
- requestId: z$1.ZodUUID;
7194
- invoiceMode: z$1.ZodOptional<z$1.ZodType<InvoiceModeParams, InvoiceModeParamsInput, z$1.core.$ZodTypeInternals<InvoiceModeParams, InvoiceModeParamsInput>>>;
7195
- membershipId: z$1.ZodUUID;
7196
- carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
7197
- enabled: z$1.ZodLiteral<true>;
7198
- featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
7199
- }, z$1.core.$strict>>;
7200
- carryOverUsages: z$1.ZodOptional<z$1.ZodObject<{
7201
- enabled: z$1.ZodLiteral<true>;
7202
- featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
7203
- }, z$1.core.$strict>>;
7204
- membershipIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
7205
- prorationBehavior: z$1.ZodOptional<z$1.ZodEnum<{
7206
- none: "none";
7207
- prorate_immediately: "prorate_immediately";
7208
- bill_difference: "bill_difference";
7209
- }>>;
7210
- timing: z$1.ZodEnum<{
7211
- immediate: "immediate";
7212
- renewal: "renewal";
7213
- store: "store";
7214
- }>;
7215
- change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
7216
- type: z$1.ZodLiteral<"plan">;
7217
- productVersionId: z$1.ZodUUID;
7218
- }, z$1.core.$strict>, z$1.ZodObject<{
7219
- type: z$1.ZodLiteral<"seats">;
7220
- licenseKey: z$1.ZodString;
7221
- quantity: z$1.ZodNumber;
7222
- }, z$1.core.$strict>, z$1.ZodObject<{
7223
- type: z$1.ZodLiteral<"quantity">;
7224
- internal_feature_id: z$1.ZodUUID;
7225
- quantity: z$1.ZodNumber;
7226
- }, z$1.core.$strict>, z$1.ZodObject<{
7227
- type: z$1.ZodLiteral<"cancel">;
7228
- }, z$1.core.$strict>, z$1.ZodObject<{
7229
- type: z$1.ZodLiteral<"uncancel">;
7230
- }, z$1.core.$strict>, z$1.ZodObject<{
7231
- type: z$1.ZodLiteral<"billing_cycle">;
7232
- billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
7233
- }, z$1.core.$strict>], "type">;
7234
- customerId: z$1.ZodOptional<z$1.ZodUUID>;
7235
- }, z$1.core.$strict>;
7236
- readonly response: z$1.ZodObject<{
7237
- requestId: z$1.ZodUUID;
7238
- scope: z$1.ZodObject<{
7239
- projectId: z$1.ZodString;
7240
- environment: z$1.ZodEnum<{
7241
- sandbox: "sandbox";
7242
- live: "live";
7243
- }>;
7244
- }, z$1.core.$strict>;
7245
- quote: z$1.ZodUnion<readonly [z$1.ZodObject<{
7246
- carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
7247
- enabled: z$1.ZodLiteral<true>;
7248
- featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
7249
- }, z$1.core.$strict>>;
7250
- carryOverUsages: z$1.ZodOptional<z$1.ZodObject<{
7251
- enabled: z$1.ZodLiteral<true>;
7252
- featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
7253
- }, z$1.core.$strict>>;
7254
- operationId: z$1.ZodUUID;
7255
- membershipId: z$1.ZodUUID;
8539
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
8540
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8541
+ action: z$1.ZodLiteral<"purchase">;
8542
+ mode: z$1.ZodEnum<{
8543
+ payment: "payment";
8544
+ subscription: "subscription";
8545
+ }>;
8546
+ currency: z$1.ZodString;
8547
+ items: z$1.ZodArray<z$1.ZodObject<{
8548
+ merchantProductId: z$1.ZodString;
8549
+ merchantPriceId: z$1.ZodString;
8550
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
8551
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
8552
+ }, z$1.core.$strict>>;
8553
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
8554
+ subject: z$1.ZodObject<{
8555
+ scope: z$1.ZodObject<{
8556
+ projectId: z$1.ZodUUID;
8557
+ environmentId: z$1.ZodUUID;
8558
+ environment: z$1.ZodEnum<{
8559
+ sandbox: "sandbox";
8560
+ live: "live";
8561
+ }>;
8562
+ }, z$1.core.$strict>;
8563
+ customerId: z$1.ZodUUID;
8564
+ }, z$1.core.$strict>;
8565
+ operationId: z$1.ZodUUID;
8566
+ configurationRevision: z$1.ZodNumber;
8567
+ connectionRevision: z$1.ZodNumber;
8568
+ expiresAt: z$1.ZodISODateTime;
8569
+ }, z$1.core.$strict>, z$1.ZodObject<{
8570
+ action: z$1.ZodLiteral<"subscription_change">;
8571
+ currency: z$1.ZodString;
8572
+ merchantSubscriptionId: z$1.ZodString;
8573
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8574
+ type: z$1.ZodLiteral<"cancel">;
8575
+ }, z$1.core.$strict>, z$1.ZodObject<{
8576
+ type: z$1.ZodLiteral<"uncancel">;
8577
+ }, z$1.core.$strict>, z$1.ZodObject<{
8578
+ type: z$1.ZodLiteral<"plan">;
8579
+ productVersionId: z$1.ZodUUID;
8580
+ }, z$1.core.$strict>, z$1.ZodObject<{
8581
+ type: z$1.ZodLiteral<"seats">;
8582
+ licenseKey: z$1.ZodString;
8583
+ quantity: z$1.ZodNumber;
8584
+ }, z$1.core.$strict>, z$1.ZodObject<{
8585
+ type: z$1.ZodLiteral<"quantity">;
8586
+ internal_feature_id: z$1.ZodUUID;
8587
+ quantity: z$1.ZodNumber;
8588
+ }, z$1.core.$strict>, z$1.ZodObject<{
8589
+ type: z$1.ZodLiteral<"billing_cycle">;
8590
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
8591
+ }, z$1.core.$strict>], "type">;
8592
+ timing: z$1.ZodEnum<{
8593
+ immediate: "immediate";
8594
+ renewal: "renewal";
8595
+ }>;
8596
+ proration: z$1.ZodEnum<{
8597
+ none: "none";
8598
+ create_prorations: "create_prorations";
8599
+ always_invoice: "always_invoice";
8600
+ }>;
8601
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
8602
+ subject: z$1.ZodObject<{
8603
+ scope: z$1.ZodObject<{
8604
+ projectId: z$1.ZodUUID;
8605
+ environmentId: z$1.ZodUUID;
8606
+ environment: z$1.ZodEnum<{
8607
+ sandbox: "sandbox";
8608
+ live: "live";
8609
+ }>;
8610
+ }, z$1.core.$strict>;
8611
+ customerId: z$1.ZodUUID;
8612
+ }, z$1.core.$strict>;
8613
+ operationId: z$1.ZodUUID;
8614
+ configurationRevision: z$1.ZodNumber;
8615
+ connectionRevision: z$1.ZodNumber;
8616
+ expiresAt: z$1.ZodISODateTime;
8617
+ }, z$1.core.$strict>, z$1.ZodObject<{
8618
+ action: z$1.ZodLiteral<"refund">;
8619
+ currency: z$1.ZodString;
8620
+ merchantInvoiceId: z$1.ZodString;
8621
+ mode: z$1.ZodEnum<{
8622
+ full: "full";
8623
+ partial: "partial";
8624
+ }>;
8625
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8626
+ entitlementAction: z$1.ZodEnum<{
8627
+ retain: "retain";
8628
+ revoke: "revoke";
8629
+ }>;
8630
+ subject: z$1.ZodObject<{
8631
+ scope: z$1.ZodObject<{
8632
+ projectId: z$1.ZodUUID;
8633
+ environmentId: z$1.ZodUUID;
8634
+ environment: z$1.ZodEnum<{
8635
+ sandbox: "sandbox";
8636
+ live: "live";
8637
+ }>;
8638
+ }, z$1.core.$strict>;
8639
+ customerId: z$1.ZodUUID;
8640
+ }, z$1.core.$strict>;
8641
+ operationId: z$1.ZodUUID;
8642
+ configurationRevision: z$1.ZodNumber;
8643
+ connectionRevision: z$1.ZodNumber;
8644
+ expiresAt: z$1.ZodISODateTime;
8645
+ }, z$1.core.$strict>], "action">;
8646
+ requestDigest: z$1.ZodString;
8647
+ merchantQuoteId: z$1.ZodString;
8648
+ quoteTermsDigest: z$1.ZodString;
8649
+ termsVersion: z$1.ZodString;
8650
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
8651
+ reference: z$1.ZodString;
8652
+ revision: z$1.ZodString;
8653
+ }, z$1.core.$strict>>;
8654
+ observedAt: z$1.ZodISODateTime;
8655
+ expiresAt: z$1.ZodISODateTime;
8656
+ currency: z$1.ZodString;
8657
+ automaticTax: z$1.ZodBoolean;
8658
+ lines: z$1.ZodArray<z$1.ZodObject<{
8659
+ merchantLineId: z$1.ZodString;
8660
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
8661
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
8662
+ subtotalMinor: z$1.ZodNumber;
8663
+ discountMinor: z$1.ZodNumber;
8664
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
8665
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
8666
+ }, z$1.core.$strict>>;
8667
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
8668
+ items: z$1.ZodArray<z$1.ZodObject<{
8669
+ merchantPriceId: z$1.ZodString;
8670
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
8671
+ interval: z$1.ZodEnum<{
8672
+ week: "week";
8673
+ month: "month";
8674
+ year: "year";
8675
+ }>;
8676
+ intervalCount: z$1.ZodNumber;
8677
+ amountMinor: z$1.ZodNumber;
8678
+ }, z$1.core.$strict>>;
8679
+ trial: z$1.ZodNullable<z$1.ZodObject<{
8680
+ days: z$1.ZodNumber;
8681
+ cardRequired: z$1.ZodBoolean;
8682
+ }, z$1.core.$strict>>;
8683
+ }, z$1.core.$strict>>;
8684
+ subtotalMinor: z$1.ZodNumber;
8685
+ discountMinor: z$1.ZodNumber;
8686
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
8687
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
8688
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
8689
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
8690
+ reference: z$1.ZodString;
8691
+ kind: z$1.ZodEnum<{
8692
+ change: "change";
8693
+ revoke: "revoke";
8694
+ grant: "grant";
8695
+ }>;
8696
+ description: z$1.ZodString;
8697
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
8698
+ unit: z$1.ZodNullable<z$1.ZodString>;
8699
+ }, z$1.core.$strict>>;
8700
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
8701
+ reference: z$1.ZodString;
8702
+ version: z$1.ZodString;
8703
+ summary: z$1.ZodString;
8704
+ }, z$1.core.$strict>>;
8705
+ }, z$1.core.$strict>>;
8706
+ }, z$1.core.$strict>>;
8707
+ }, z$1.core.$strict>;
8708
+ }, z$1.core.$strict>;
8709
+ };
8710
+ readonly previewUpdate: {
8711
+ readonly method: "POST";
8712
+ readonly path: "subscriptions/preview-update";
8713
+ readonly permission: "billing:read";
8714
+ readonly audience: "mixed";
8715
+ readonly request: z$1.ZodObject<{
8716
+ requestId: z$1.ZodUUID;
8717
+ invoiceMode: z$1.ZodOptional<z$1.ZodType<InvoiceModeParams, InvoiceModeParamsInput, z$1.core.$ZodTypeInternals<InvoiceModeParams, InvoiceModeParamsInput>>>;
8718
+ membershipId: z$1.ZodUUID;
8719
+ carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
8720
+ enabled: z$1.ZodLiteral<true>;
8721
+ featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
8722
+ }, z$1.core.$strict>>;
8723
+ carryOverUsages: z$1.ZodOptional<z$1.ZodObject<{
8724
+ enabled: z$1.ZodLiteral<true>;
8725
+ featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
8726
+ }, z$1.core.$strict>>;
8727
+ membershipIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
8728
+ prorationBehavior: z$1.ZodOptional<z$1.ZodEnum<{
8729
+ none: "none";
8730
+ prorate_immediately: "prorate_immediately";
8731
+ bill_difference: "bill_difference";
8732
+ }>>;
8733
+ timing: z$1.ZodEnum<{
8734
+ immediate: "immediate";
8735
+ renewal: "renewal";
8736
+ store: "store";
8737
+ }>;
8738
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8739
+ type: z$1.ZodLiteral<"plan">;
8740
+ productVersionId: z$1.ZodUUID;
8741
+ }, z$1.core.$strict>, z$1.ZodObject<{
8742
+ type: z$1.ZodLiteral<"seats">;
8743
+ licenseKey: z$1.ZodString;
8744
+ quantity: z$1.ZodNumber;
8745
+ }, z$1.core.$strict>, z$1.ZodObject<{
8746
+ type: z$1.ZodLiteral<"quantity">;
8747
+ internal_feature_id: z$1.ZodUUID;
8748
+ quantity: z$1.ZodNumber;
8749
+ }, z$1.core.$strict>, z$1.ZodObject<{
8750
+ type: z$1.ZodLiteral<"cancel">;
8751
+ }, z$1.core.$strict>, z$1.ZodObject<{
8752
+ type: z$1.ZodLiteral<"uncancel">;
8753
+ }, z$1.core.$strict>, z$1.ZodObject<{
8754
+ type: z$1.ZodLiteral<"billing_cycle">;
8755
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
8756
+ }, z$1.core.$strict>], "type">;
8757
+ customerId: z$1.ZodOptional<z$1.ZodUUID>;
8758
+ }, z$1.core.$strict>;
8759
+ readonly response: z$1.ZodObject<{
8760
+ requestId: z$1.ZodUUID;
8761
+ scope: z$1.ZodObject<{
8762
+ projectId: z$1.ZodString;
8763
+ environment: z$1.ZodEnum<{
8764
+ sandbox: "sandbox";
8765
+ live: "live";
8766
+ }>;
8767
+ }, z$1.core.$strict>;
8768
+ quote: z$1.ZodUnion<readonly [z$1.ZodObject<{
8769
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
8770
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8771
+ action: z$1.ZodLiteral<"purchase">;
8772
+ mode: z$1.ZodEnum<{
8773
+ payment: "payment";
8774
+ subscription: "subscription";
8775
+ }>;
8776
+ currency: z$1.ZodString;
8777
+ items: z$1.ZodArray<z$1.ZodObject<{
8778
+ merchantProductId: z$1.ZodString;
8779
+ merchantPriceId: z$1.ZodString;
8780
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
8781
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
8782
+ }, z$1.core.$strict>>;
8783
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
8784
+ subject: z$1.ZodObject<{
8785
+ scope: z$1.ZodObject<{
8786
+ projectId: z$1.ZodUUID;
8787
+ environmentId: z$1.ZodUUID;
8788
+ environment: z$1.ZodEnum<{
8789
+ sandbox: "sandbox";
8790
+ live: "live";
8791
+ }>;
8792
+ }, z$1.core.$strict>;
8793
+ customerId: z$1.ZodUUID;
8794
+ }, z$1.core.$strict>;
8795
+ operationId: z$1.ZodUUID;
8796
+ configurationRevision: z$1.ZodNumber;
8797
+ connectionRevision: z$1.ZodNumber;
8798
+ expiresAt: z$1.ZodISODateTime;
8799
+ }, z$1.core.$strict>, z$1.ZodObject<{
8800
+ action: z$1.ZodLiteral<"subscription_change">;
8801
+ currency: z$1.ZodString;
8802
+ merchantSubscriptionId: z$1.ZodString;
8803
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
8804
+ type: z$1.ZodLiteral<"cancel">;
8805
+ }, z$1.core.$strict>, z$1.ZodObject<{
8806
+ type: z$1.ZodLiteral<"uncancel">;
8807
+ }, z$1.core.$strict>, z$1.ZodObject<{
8808
+ type: z$1.ZodLiteral<"plan">;
8809
+ productVersionId: z$1.ZodUUID;
8810
+ }, z$1.core.$strict>, z$1.ZodObject<{
8811
+ type: z$1.ZodLiteral<"seats">;
8812
+ licenseKey: z$1.ZodString;
8813
+ quantity: z$1.ZodNumber;
8814
+ }, z$1.core.$strict>, z$1.ZodObject<{
8815
+ type: z$1.ZodLiteral<"quantity">;
8816
+ internal_feature_id: z$1.ZodUUID;
8817
+ quantity: z$1.ZodNumber;
8818
+ }, z$1.core.$strict>, z$1.ZodObject<{
8819
+ type: z$1.ZodLiteral<"billing_cycle">;
8820
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
8821
+ }, z$1.core.$strict>], "type">;
8822
+ timing: z$1.ZodEnum<{
8823
+ immediate: "immediate";
8824
+ renewal: "renewal";
8825
+ }>;
8826
+ proration: z$1.ZodEnum<{
8827
+ none: "none";
8828
+ create_prorations: "create_prorations";
8829
+ always_invoice: "always_invoice";
8830
+ }>;
8831
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
8832
+ subject: z$1.ZodObject<{
8833
+ scope: z$1.ZodObject<{
8834
+ projectId: z$1.ZodUUID;
8835
+ environmentId: z$1.ZodUUID;
8836
+ environment: z$1.ZodEnum<{
8837
+ sandbox: "sandbox";
8838
+ live: "live";
8839
+ }>;
8840
+ }, z$1.core.$strict>;
8841
+ customerId: z$1.ZodUUID;
8842
+ }, z$1.core.$strict>;
8843
+ operationId: z$1.ZodUUID;
8844
+ configurationRevision: z$1.ZodNumber;
8845
+ connectionRevision: z$1.ZodNumber;
8846
+ expiresAt: z$1.ZodISODateTime;
8847
+ }, z$1.core.$strict>, z$1.ZodObject<{
8848
+ action: z$1.ZodLiteral<"refund">;
8849
+ currency: z$1.ZodString;
8850
+ merchantInvoiceId: z$1.ZodString;
8851
+ mode: z$1.ZodEnum<{
8852
+ full: "full";
8853
+ partial: "partial";
8854
+ }>;
8855
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
8856
+ entitlementAction: z$1.ZodEnum<{
8857
+ retain: "retain";
8858
+ revoke: "revoke";
8859
+ }>;
8860
+ subject: z$1.ZodObject<{
8861
+ scope: z$1.ZodObject<{
8862
+ projectId: z$1.ZodUUID;
8863
+ environmentId: z$1.ZodUUID;
8864
+ environment: z$1.ZodEnum<{
8865
+ sandbox: "sandbox";
8866
+ live: "live";
8867
+ }>;
8868
+ }, z$1.core.$strict>;
8869
+ customerId: z$1.ZodUUID;
8870
+ }, z$1.core.$strict>;
8871
+ operationId: z$1.ZodUUID;
8872
+ configurationRevision: z$1.ZodNumber;
8873
+ connectionRevision: z$1.ZodNumber;
8874
+ expiresAt: z$1.ZodISODateTime;
8875
+ }, z$1.core.$strict>], "action">;
8876
+ requestDigest: z$1.ZodString;
8877
+ merchantQuoteId: z$1.ZodString;
8878
+ quoteTermsDigest: z$1.ZodString;
8879
+ termsVersion: z$1.ZodString;
8880
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
8881
+ reference: z$1.ZodString;
8882
+ revision: z$1.ZodString;
8883
+ }, z$1.core.$strict>>;
8884
+ observedAt: z$1.ZodISODateTime;
8885
+ expiresAt: z$1.ZodISODateTime;
8886
+ currency: z$1.ZodString;
8887
+ automaticTax: z$1.ZodBoolean;
8888
+ lines: z$1.ZodArray<z$1.ZodObject<{
8889
+ merchantLineId: z$1.ZodString;
8890
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
8891
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
8892
+ subtotalMinor: z$1.ZodNumber;
8893
+ discountMinor: z$1.ZodNumber;
8894
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
8895
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
8896
+ }, z$1.core.$strict>>;
8897
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
8898
+ items: z$1.ZodArray<z$1.ZodObject<{
8899
+ merchantPriceId: z$1.ZodString;
8900
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
8901
+ interval: z$1.ZodEnum<{
8902
+ week: "week";
8903
+ month: "month";
8904
+ year: "year";
8905
+ }>;
8906
+ intervalCount: z$1.ZodNumber;
8907
+ amountMinor: z$1.ZodNumber;
8908
+ }, z$1.core.$strict>>;
8909
+ trial: z$1.ZodNullable<z$1.ZodObject<{
8910
+ days: z$1.ZodNumber;
8911
+ cardRequired: z$1.ZodBoolean;
8912
+ }, z$1.core.$strict>>;
8913
+ }, z$1.core.$strict>>;
8914
+ subtotalMinor: z$1.ZodNumber;
8915
+ discountMinor: z$1.ZodNumber;
8916
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
8917
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
8918
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
8919
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
8920
+ reference: z$1.ZodString;
8921
+ kind: z$1.ZodEnum<{
8922
+ change: "change";
8923
+ revoke: "revoke";
8924
+ grant: "grant";
8925
+ }>;
8926
+ description: z$1.ZodString;
8927
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
8928
+ unit: z$1.ZodNullable<z$1.ZodString>;
8929
+ }, z$1.core.$strict>>;
8930
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
8931
+ reference: z$1.ZodString;
8932
+ version: z$1.ZodString;
8933
+ summary: z$1.ZodString;
8934
+ }, z$1.core.$strict>>;
8935
+ }, z$1.core.$strict>>;
8936
+ carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
8937
+ enabled: z$1.ZodLiteral<true>;
8938
+ featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
8939
+ }, z$1.core.$strict>>;
8940
+ carryOverUsages: z$1.ZodOptional<z$1.ZodObject<{
8941
+ enabled: z$1.ZodLiteral<true>;
8942
+ featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
8943
+ }, z$1.core.$strict>>;
8944
+ operationId: z$1.ZodUUID;
8945
+ membershipId: z$1.ZodUUID;
7256
8946
  productVersionId: z$1.ZodUUID;
7257
8947
  timing: z$1.ZodEnum<{
7258
8948
  immediate: "immediate";
@@ -7535,6 +9225,13 @@ declare const apiOperations: {
7535
9225
  cancel: "cancel";
7536
9226
  confirm: "confirm";
7537
9227
  }>>;
9228
+ merchantConfirmation: z$1.ZodOptional<z$1.ZodObject<{
9229
+ quoteTermsDigest: z$1.ZodString;
9230
+ consents: z$1.ZodArray<z$1.ZodObject<{
9231
+ reference: z$1.ZodString;
9232
+ version: z$1.ZodString;
9233
+ }, z$1.core.$strict>>;
9234
+ }, z$1.core.$strict>>;
7538
9235
  }, z$1.core.$strict>;
7539
9236
  readonly response: z$1.ZodObject<{
7540
9237
  requestId: z$1.ZodUUID;
@@ -8036,6 +9733,173 @@ declare const apiOperations: {
8036
9733
  retryable: z$1.ZodBoolean;
8037
9734
  }, z$1.core.$strict>>>;
8038
9735
  quote: z$1.ZodOptional<z$1.ZodObject<{
9736
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
9737
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9738
+ action: z$1.ZodLiteral<"purchase">;
9739
+ mode: z$1.ZodEnum<{
9740
+ payment: "payment";
9741
+ subscription: "subscription";
9742
+ }>;
9743
+ currency: z$1.ZodString;
9744
+ items: z$1.ZodArray<z$1.ZodObject<{
9745
+ merchantProductId: z$1.ZodString;
9746
+ merchantPriceId: z$1.ZodString;
9747
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
9748
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
9749
+ }, z$1.core.$strict>>;
9750
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
9751
+ subject: z$1.ZodObject<{
9752
+ scope: z$1.ZodObject<{
9753
+ projectId: z$1.ZodUUID;
9754
+ environmentId: z$1.ZodUUID;
9755
+ environment: z$1.ZodEnum<{
9756
+ sandbox: "sandbox";
9757
+ live: "live";
9758
+ }>;
9759
+ }, z$1.core.$strict>;
9760
+ customerId: z$1.ZodUUID;
9761
+ }, z$1.core.$strict>;
9762
+ operationId: z$1.ZodUUID;
9763
+ configurationRevision: z$1.ZodNumber;
9764
+ connectionRevision: z$1.ZodNumber;
9765
+ expiresAt: z$1.ZodISODateTime;
9766
+ }, z$1.core.$strict>, z$1.ZodObject<{
9767
+ action: z$1.ZodLiteral<"subscription_change">;
9768
+ currency: z$1.ZodString;
9769
+ merchantSubscriptionId: z$1.ZodString;
9770
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
9771
+ type: z$1.ZodLiteral<"cancel">;
9772
+ }, z$1.core.$strict>, z$1.ZodObject<{
9773
+ type: z$1.ZodLiteral<"uncancel">;
9774
+ }, z$1.core.$strict>, z$1.ZodObject<{
9775
+ type: z$1.ZodLiteral<"plan">;
9776
+ productVersionId: z$1.ZodUUID;
9777
+ }, z$1.core.$strict>, z$1.ZodObject<{
9778
+ type: z$1.ZodLiteral<"seats">;
9779
+ licenseKey: z$1.ZodString;
9780
+ quantity: z$1.ZodNumber;
9781
+ }, z$1.core.$strict>, z$1.ZodObject<{
9782
+ type: z$1.ZodLiteral<"quantity">;
9783
+ internal_feature_id: z$1.ZodUUID;
9784
+ quantity: z$1.ZodNumber;
9785
+ }, z$1.core.$strict>, z$1.ZodObject<{
9786
+ type: z$1.ZodLiteral<"billing_cycle">;
9787
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
9788
+ }, z$1.core.$strict>], "type">;
9789
+ timing: z$1.ZodEnum<{
9790
+ immediate: "immediate";
9791
+ renewal: "renewal";
9792
+ }>;
9793
+ proration: z$1.ZodEnum<{
9794
+ none: "none";
9795
+ create_prorations: "create_prorations";
9796
+ always_invoice: "always_invoice";
9797
+ }>;
9798
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
9799
+ subject: z$1.ZodObject<{
9800
+ scope: z$1.ZodObject<{
9801
+ projectId: z$1.ZodUUID;
9802
+ environmentId: z$1.ZodUUID;
9803
+ environment: z$1.ZodEnum<{
9804
+ sandbox: "sandbox";
9805
+ live: "live";
9806
+ }>;
9807
+ }, z$1.core.$strict>;
9808
+ customerId: z$1.ZodUUID;
9809
+ }, z$1.core.$strict>;
9810
+ operationId: z$1.ZodUUID;
9811
+ configurationRevision: z$1.ZodNumber;
9812
+ connectionRevision: z$1.ZodNumber;
9813
+ expiresAt: z$1.ZodISODateTime;
9814
+ }, z$1.core.$strict>, z$1.ZodObject<{
9815
+ action: z$1.ZodLiteral<"refund">;
9816
+ currency: z$1.ZodString;
9817
+ merchantInvoiceId: z$1.ZodString;
9818
+ mode: z$1.ZodEnum<{
9819
+ full: "full";
9820
+ partial: "partial";
9821
+ }>;
9822
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
9823
+ entitlementAction: z$1.ZodEnum<{
9824
+ retain: "retain";
9825
+ revoke: "revoke";
9826
+ }>;
9827
+ subject: z$1.ZodObject<{
9828
+ scope: z$1.ZodObject<{
9829
+ projectId: z$1.ZodUUID;
9830
+ environmentId: z$1.ZodUUID;
9831
+ environment: z$1.ZodEnum<{
9832
+ sandbox: "sandbox";
9833
+ live: "live";
9834
+ }>;
9835
+ }, z$1.core.$strict>;
9836
+ customerId: z$1.ZodUUID;
9837
+ }, z$1.core.$strict>;
9838
+ operationId: z$1.ZodUUID;
9839
+ configurationRevision: z$1.ZodNumber;
9840
+ connectionRevision: z$1.ZodNumber;
9841
+ expiresAt: z$1.ZodISODateTime;
9842
+ }, z$1.core.$strict>], "action">;
9843
+ requestDigest: z$1.ZodString;
9844
+ merchantQuoteId: z$1.ZodString;
9845
+ quoteTermsDigest: z$1.ZodString;
9846
+ termsVersion: z$1.ZodString;
9847
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
9848
+ reference: z$1.ZodString;
9849
+ revision: z$1.ZodString;
9850
+ }, z$1.core.$strict>>;
9851
+ observedAt: z$1.ZodISODateTime;
9852
+ expiresAt: z$1.ZodISODateTime;
9853
+ currency: z$1.ZodString;
9854
+ automaticTax: z$1.ZodBoolean;
9855
+ lines: z$1.ZodArray<z$1.ZodObject<{
9856
+ merchantLineId: z$1.ZodString;
9857
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
9858
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
9859
+ subtotalMinor: z$1.ZodNumber;
9860
+ discountMinor: z$1.ZodNumber;
9861
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
9862
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
9863
+ }, z$1.core.$strict>>;
9864
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
9865
+ items: z$1.ZodArray<z$1.ZodObject<{
9866
+ merchantPriceId: z$1.ZodString;
9867
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
9868
+ interval: z$1.ZodEnum<{
9869
+ week: "week";
9870
+ month: "month";
9871
+ year: "year";
9872
+ }>;
9873
+ intervalCount: z$1.ZodNumber;
9874
+ amountMinor: z$1.ZodNumber;
9875
+ }, z$1.core.$strict>>;
9876
+ trial: z$1.ZodNullable<z$1.ZodObject<{
9877
+ days: z$1.ZodNumber;
9878
+ cardRequired: z$1.ZodBoolean;
9879
+ }, z$1.core.$strict>>;
9880
+ }, z$1.core.$strict>>;
9881
+ subtotalMinor: z$1.ZodNumber;
9882
+ discountMinor: z$1.ZodNumber;
9883
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
9884
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
9885
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
9886
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
9887
+ reference: z$1.ZodString;
9888
+ kind: z$1.ZodEnum<{
9889
+ change: "change";
9890
+ revoke: "revoke";
9891
+ grant: "grant";
9892
+ }>;
9893
+ description: z$1.ZodString;
9894
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
9895
+ unit: z$1.ZodNullable<z$1.ZodString>;
9896
+ }, z$1.core.$strict>>;
9897
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
9898
+ reference: z$1.ZodString;
9899
+ version: z$1.ZodString;
9900
+ summary: z$1.ZodString;
9901
+ }, z$1.core.$strict>>;
9902
+ }, z$1.core.$strict>>;
8039
9903
  carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
8040
9904
  enabled: z$1.ZodLiteral<true>;
8041
9905
  featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
@@ -8445,6 +10309,173 @@ declare const apiOperations: {
8445
10309
  currency: z$1.ZodString;
8446
10310
  expiresAt: z$1.ZodISODateTime;
8447
10311
  }, z$1.core.$strict>], "type">;
10312
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
10313
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10314
+ action: z$1.ZodLiteral<"purchase">;
10315
+ mode: z$1.ZodEnum<{
10316
+ payment: "payment";
10317
+ subscription: "subscription";
10318
+ }>;
10319
+ currency: z$1.ZodString;
10320
+ items: z$1.ZodArray<z$1.ZodObject<{
10321
+ merchantProductId: z$1.ZodString;
10322
+ merchantPriceId: z$1.ZodString;
10323
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
10324
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
10325
+ }, z$1.core.$strict>>;
10326
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
10327
+ subject: z$1.ZodObject<{
10328
+ scope: z$1.ZodObject<{
10329
+ projectId: z$1.ZodUUID;
10330
+ environmentId: z$1.ZodUUID;
10331
+ environment: z$1.ZodEnum<{
10332
+ sandbox: "sandbox";
10333
+ live: "live";
10334
+ }>;
10335
+ }, z$1.core.$strict>;
10336
+ customerId: z$1.ZodUUID;
10337
+ }, z$1.core.$strict>;
10338
+ operationId: z$1.ZodUUID;
10339
+ configurationRevision: z$1.ZodNumber;
10340
+ connectionRevision: z$1.ZodNumber;
10341
+ expiresAt: z$1.ZodISODateTime;
10342
+ }, z$1.core.$strict>, z$1.ZodObject<{
10343
+ action: z$1.ZodLiteral<"subscription_change">;
10344
+ currency: z$1.ZodString;
10345
+ merchantSubscriptionId: z$1.ZodString;
10346
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
10347
+ type: z$1.ZodLiteral<"cancel">;
10348
+ }, z$1.core.$strict>, z$1.ZodObject<{
10349
+ type: z$1.ZodLiteral<"uncancel">;
10350
+ }, z$1.core.$strict>, z$1.ZodObject<{
10351
+ type: z$1.ZodLiteral<"plan">;
10352
+ productVersionId: z$1.ZodUUID;
10353
+ }, z$1.core.$strict>, z$1.ZodObject<{
10354
+ type: z$1.ZodLiteral<"seats">;
10355
+ licenseKey: z$1.ZodString;
10356
+ quantity: z$1.ZodNumber;
10357
+ }, z$1.core.$strict>, z$1.ZodObject<{
10358
+ type: z$1.ZodLiteral<"quantity">;
10359
+ internal_feature_id: z$1.ZodUUID;
10360
+ quantity: z$1.ZodNumber;
10361
+ }, z$1.core.$strict>, z$1.ZodObject<{
10362
+ type: z$1.ZodLiteral<"billing_cycle">;
10363
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
10364
+ }, z$1.core.$strict>], "type">;
10365
+ timing: z$1.ZodEnum<{
10366
+ immediate: "immediate";
10367
+ renewal: "renewal";
10368
+ }>;
10369
+ proration: z$1.ZodEnum<{
10370
+ none: "none";
10371
+ create_prorations: "create_prorations";
10372
+ always_invoice: "always_invoice";
10373
+ }>;
10374
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
10375
+ subject: z$1.ZodObject<{
10376
+ scope: z$1.ZodObject<{
10377
+ projectId: z$1.ZodUUID;
10378
+ environmentId: z$1.ZodUUID;
10379
+ environment: z$1.ZodEnum<{
10380
+ sandbox: "sandbox";
10381
+ live: "live";
10382
+ }>;
10383
+ }, z$1.core.$strict>;
10384
+ customerId: z$1.ZodUUID;
10385
+ }, z$1.core.$strict>;
10386
+ operationId: z$1.ZodUUID;
10387
+ configurationRevision: z$1.ZodNumber;
10388
+ connectionRevision: z$1.ZodNumber;
10389
+ expiresAt: z$1.ZodISODateTime;
10390
+ }, z$1.core.$strict>, z$1.ZodObject<{
10391
+ action: z$1.ZodLiteral<"refund">;
10392
+ currency: z$1.ZodString;
10393
+ merchantInvoiceId: z$1.ZodString;
10394
+ mode: z$1.ZodEnum<{
10395
+ full: "full";
10396
+ partial: "partial";
10397
+ }>;
10398
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
10399
+ entitlementAction: z$1.ZodEnum<{
10400
+ retain: "retain";
10401
+ revoke: "revoke";
10402
+ }>;
10403
+ subject: z$1.ZodObject<{
10404
+ scope: z$1.ZodObject<{
10405
+ projectId: z$1.ZodUUID;
10406
+ environmentId: z$1.ZodUUID;
10407
+ environment: z$1.ZodEnum<{
10408
+ sandbox: "sandbox";
10409
+ live: "live";
10410
+ }>;
10411
+ }, z$1.core.$strict>;
10412
+ customerId: z$1.ZodUUID;
10413
+ }, z$1.core.$strict>;
10414
+ operationId: z$1.ZodUUID;
10415
+ configurationRevision: z$1.ZodNumber;
10416
+ connectionRevision: z$1.ZodNumber;
10417
+ expiresAt: z$1.ZodISODateTime;
10418
+ }, z$1.core.$strict>], "action">;
10419
+ requestDigest: z$1.ZodString;
10420
+ merchantQuoteId: z$1.ZodString;
10421
+ quoteTermsDigest: z$1.ZodString;
10422
+ termsVersion: z$1.ZodString;
10423
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
10424
+ reference: z$1.ZodString;
10425
+ revision: z$1.ZodString;
10426
+ }, z$1.core.$strict>>;
10427
+ observedAt: z$1.ZodISODateTime;
10428
+ expiresAt: z$1.ZodISODateTime;
10429
+ currency: z$1.ZodString;
10430
+ automaticTax: z$1.ZodBoolean;
10431
+ lines: z$1.ZodArray<z$1.ZodObject<{
10432
+ merchantLineId: z$1.ZodString;
10433
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
10434
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
10435
+ subtotalMinor: z$1.ZodNumber;
10436
+ discountMinor: z$1.ZodNumber;
10437
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
10438
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
10439
+ }, z$1.core.$strict>>;
10440
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
10441
+ items: z$1.ZodArray<z$1.ZodObject<{
10442
+ merchantPriceId: z$1.ZodString;
10443
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
10444
+ interval: z$1.ZodEnum<{
10445
+ week: "week";
10446
+ month: "month";
10447
+ year: "year";
10448
+ }>;
10449
+ intervalCount: z$1.ZodNumber;
10450
+ amountMinor: z$1.ZodNumber;
10451
+ }, z$1.core.$strict>>;
10452
+ trial: z$1.ZodNullable<z$1.ZodObject<{
10453
+ days: z$1.ZodNumber;
10454
+ cardRequired: z$1.ZodBoolean;
10455
+ }, z$1.core.$strict>>;
10456
+ }, z$1.core.$strict>>;
10457
+ subtotalMinor: z$1.ZodNumber;
10458
+ discountMinor: z$1.ZodNumber;
10459
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
10460
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
10461
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
10462
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
10463
+ reference: z$1.ZodString;
10464
+ kind: z$1.ZodEnum<{
10465
+ change: "change";
10466
+ revoke: "revoke";
10467
+ grant: "grant";
10468
+ }>;
10469
+ description: z$1.ZodString;
10470
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
10471
+ unit: z$1.ZodNullable<z$1.ZodString>;
10472
+ }, z$1.core.$strict>>;
10473
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
10474
+ reference: z$1.ZodString;
10475
+ version: z$1.ZodString;
10476
+ summary: z$1.ZodString;
10477
+ }, z$1.core.$strict>>;
10478
+ }, z$1.core.$strict>>;
8448
10479
  }, z$1.core.$strict>>;
8449
10480
  }, z$1.core.$strict>, z$1.ZodObject<{
8450
10481
  operationId: z$1.ZodUUID;
@@ -9056,6 +11087,173 @@ declare const apiOperations: {
9056
11087
  retryable: z$1.ZodBoolean;
9057
11088
  }, z$1.core.$strict>>>;
9058
11089
  quote: z$1.ZodOptional<z$1.ZodObject<{
11090
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
11091
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11092
+ action: z$1.ZodLiteral<"purchase">;
11093
+ mode: z$1.ZodEnum<{
11094
+ payment: "payment";
11095
+ subscription: "subscription";
11096
+ }>;
11097
+ currency: z$1.ZodString;
11098
+ items: z$1.ZodArray<z$1.ZodObject<{
11099
+ merchantProductId: z$1.ZodString;
11100
+ merchantPriceId: z$1.ZodString;
11101
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
11102
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
11103
+ }, z$1.core.$strict>>;
11104
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
11105
+ subject: z$1.ZodObject<{
11106
+ scope: z$1.ZodObject<{
11107
+ projectId: z$1.ZodUUID;
11108
+ environmentId: z$1.ZodUUID;
11109
+ environment: z$1.ZodEnum<{
11110
+ sandbox: "sandbox";
11111
+ live: "live";
11112
+ }>;
11113
+ }, z$1.core.$strict>;
11114
+ customerId: z$1.ZodUUID;
11115
+ }, z$1.core.$strict>;
11116
+ operationId: z$1.ZodUUID;
11117
+ configurationRevision: z$1.ZodNumber;
11118
+ connectionRevision: z$1.ZodNumber;
11119
+ expiresAt: z$1.ZodISODateTime;
11120
+ }, z$1.core.$strict>, z$1.ZodObject<{
11121
+ action: z$1.ZodLiteral<"subscription_change">;
11122
+ currency: z$1.ZodString;
11123
+ merchantSubscriptionId: z$1.ZodString;
11124
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11125
+ type: z$1.ZodLiteral<"cancel">;
11126
+ }, z$1.core.$strict>, z$1.ZodObject<{
11127
+ type: z$1.ZodLiteral<"uncancel">;
11128
+ }, z$1.core.$strict>, z$1.ZodObject<{
11129
+ type: z$1.ZodLiteral<"plan">;
11130
+ productVersionId: z$1.ZodUUID;
11131
+ }, z$1.core.$strict>, z$1.ZodObject<{
11132
+ type: z$1.ZodLiteral<"seats">;
11133
+ licenseKey: z$1.ZodString;
11134
+ quantity: z$1.ZodNumber;
11135
+ }, z$1.core.$strict>, z$1.ZodObject<{
11136
+ type: z$1.ZodLiteral<"quantity">;
11137
+ internal_feature_id: z$1.ZodUUID;
11138
+ quantity: z$1.ZodNumber;
11139
+ }, z$1.core.$strict>, z$1.ZodObject<{
11140
+ type: z$1.ZodLiteral<"billing_cycle">;
11141
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
11142
+ }, z$1.core.$strict>], "type">;
11143
+ timing: z$1.ZodEnum<{
11144
+ immediate: "immediate";
11145
+ renewal: "renewal";
11146
+ }>;
11147
+ proration: z$1.ZodEnum<{
11148
+ none: "none";
11149
+ create_prorations: "create_prorations";
11150
+ always_invoice: "always_invoice";
11151
+ }>;
11152
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
11153
+ subject: z$1.ZodObject<{
11154
+ scope: z$1.ZodObject<{
11155
+ projectId: z$1.ZodUUID;
11156
+ environmentId: z$1.ZodUUID;
11157
+ environment: z$1.ZodEnum<{
11158
+ sandbox: "sandbox";
11159
+ live: "live";
11160
+ }>;
11161
+ }, z$1.core.$strict>;
11162
+ customerId: z$1.ZodUUID;
11163
+ }, z$1.core.$strict>;
11164
+ operationId: z$1.ZodUUID;
11165
+ configurationRevision: z$1.ZodNumber;
11166
+ connectionRevision: z$1.ZodNumber;
11167
+ expiresAt: z$1.ZodISODateTime;
11168
+ }, z$1.core.$strict>, z$1.ZodObject<{
11169
+ action: z$1.ZodLiteral<"refund">;
11170
+ currency: z$1.ZodString;
11171
+ merchantInvoiceId: z$1.ZodString;
11172
+ mode: z$1.ZodEnum<{
11173
+ full: "full";
11174
+ partial: "partial";
11175
+ }>;
11176
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
11177
+ entitlementAction: z$1.ZodEnum<{
11178
+ retain: "retain";
11179
+ revoke: "revoke";
11180
+ }>;
11181
+ subject: z$1.ZodObject<{
11182
+ scope: z$1.ZodObject<{
11183
+ projectId: z$1.ZodUUID;
11184
+ environmentId: z$1.ZodUUID;
11185
+ environment: z$1.ZodEnum<{
11186
+ sandbox: "sandbox";
11187
+ live: "live";
11188
+ }>;
11189
+ }, z$1.core.$strict>;
11190
+ customerId: z$1.ZodUUID;
11191
+ }, z$1.core.$strict>;
11192
+ operationId: z$1.ZodUUID;
11193
+ configurationRevision: z$1.ZodNumber;
11194
+ connectionRevision: z$1.ZodNumber;
11195
+ expiresAt: z$1.ZodISODateTime;
11196
+ }, z$1.core.$strict>], "action">;
11197
+ requestDigest: z$1.ZodString;
11198
+ merchantQuoteId: z$1.ZodString;
11199
+ quoteTermsDigest: z$1.ZodString;
11200
+ termsVersion: z$1.ZodString;
11201
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
11202
+ reference: z$1.ZodString;
11203
+ revision: z$1.ZodString;
11204
+ }, z$1.core.$strict>>;
11205
+ observedAt: z$1.ZodISODateTime;
11206
+ expiresAt: z$1.ZodISODateTime;
11207
+ currency: z$1.ZodString;
11208
+ automaticTax: z$1.ZodBoolean;
11209
+ lines: z$1.ZodArray<z$1.ZodObject<{
11210
+ merchantLineId: z$1.ZodString;
11211
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
11212
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
11213
+ subtotalMinor: z$1.ZodNumber;
11214
+ discountMinor: z$1.ZodNumber;
11215
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
11216
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
11217
+ }, z$1.core.$strict>>;
11218
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
11219
+ items: z$1.ZodArray<z$1.ZodObject<{
11220
+ merchantPriceId: z$1.ZodString;
11221
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
11222
+ interval: z$1.ZodEnum<{
11223
+ week: "week";
11224
+ month: "month";
11225
+ year: "year";
11226
+ }>;
11227
+ intervalCount: z$1.ZodNumber;
11228
+ amountMinor: z$1.ZodNumber;
11229
+ }, z$1.core.$strict>>;
11230
+ trial: z$1.ZodNullable<z$1.ZodObject<{
11231
+ days: z$1.ZodNumber;
11232
+ cardRequired: z$1.ZodBoolean;
11233
+ }, z$1.core.$strict>>;
11234
+ }, z$1.core.$strict>>;
11235
+ subtotalMinor: z$1.ZodNumber;
11236
+ discountMinor: z$1.ZodNumber;
11237
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
11238
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
11239
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
11240
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
11241
+ reference: z$1.ZodString;
11242
+ kind: z$1.ZodEnum<{
11243
+ change: "change";
11244
+ revoke: "revoke";
11245
+ grant: "grant";
11246
+ }>;
11247
+ description: z$1.ZodString;
11248
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
11249
+ unit: z$1.ZodNullable<z$1.ZodString>;
11250
+ }, z$1.core.$strict>>;
11251
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
11252
+ reference: z$1.ZodString;
11253
+ version: z$1.ZodString;
11254
+ summary: z$1.ZodString;
11255
+ }, z$1.core.$strict>>;
11256
+ }, z$1.core.$strict>>;
9059
11257
  carryOverBalances: z$1.ZodOptional<z$1.ZodObject<{
9060
11258
  enabled: z$1.ZodLiteral<true>;
9061
11259
  featureIds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodUUID>>;
@@ -9465,6 +11663,173 @@ declare const apiOperations: {
9465
11663
  currency: z$1.ZodString;
9466
11664
  expiresAt: z$1.ZodISODateTime;
9467
11665
  }, z$1.core.$strict>], "type">;
11666
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
11667
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11668
+ action: z$1.ZodLiteral<"purchase">;
11669
+ mode: z$1.ZodEnum<{
11670
+ payment: "payment";
11671
+ subscription: "subscription";
11672
+ }>;
11673
+ currency: z$1.ZodString;
11674
+ items: z$1.ZodArray<z$1.ZodObject<{
11675
+ merchantProductId: z$1.ZodString;
11676
+ merchantPriceId: z$1.ZodString;
11677
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
11678
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
11679
+ }, z$1.core.$strict>>;
11680
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
11681
+ subject: z$1.ZodObject<{
11682
+ scope: z$1.ZodObject<{
11683
+ projectId: z$1.ZodUUID;
11684
+ environmentId: z$1.ZodUUID;
11685
+ environment: z$1.ZodEnum<{
11686
+ sandbox: "sandbox";
11687
+ live: "live";
11688
+ }>;
11689
+ }, z$1.core.$strict>;
11690
+ customerId: z$1.ZodUUID;
11691
+ }, z$1.core.$strict>;
11692
+ operationId: z$1.ZodUUID;
11693
+ configurationRevision: z$1.ZodNumber;
11694
+ connectionRevision: z$1.ZodNumber;
11695
+ expiresAt: z$1.ZodISODateTime;
11696
+ }, z$1.core.$strict>, z$1.ZodObject<{
11697
+ action: z$1.ZodLiteral<"subscription_change">;
11698
+ currency: z$1.ZodString;
11699
+ merchantSubscriptionId: z$1.ZodString;
11700
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11701
+ type: z$1.ZodLiteral<"cancel">;
11702
+ }, z$1.core.$strict>, z$1.ZodObject<{
11703
+ type: z$1.ZodLiteral<"uncancel">;
11704
+ }, z$1.core.$strict>, z$1.ZodObject<{
11705
+ type: z$1.ZodLiteral<"plan">;
11706
+ productVersionId: z$1.ZodUUID;
11707
+ }, z$1.core.$strict>, z$1.ZodObject<{
11708
+ type: z$1.ZodLiteral<"seats">;
11709
+ licenseKey: z$1.ZodString;
11710
+ quantity: z$1.ZodNumber;
11711
+ }, z$1.core.$strict>, z$1.ZodObject<{
11712
+ type: z$1.ZodLiteral<"quantity">;
11713
+ internal_feature_id: z$1.ZodUUID;
11714
+ quantity: z$1.ZodNumber;
11715
+ }, z$1.core.$strict>, z$1.ZodObject<{
11716
+ type: z$1.ZodLiteral<"billing_cycle">;
11717
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
11718
+ }, z$1.core.$strict>], "type">;
11719
+ timing: z$1.ZodEnum<{
11720
+ immediate: "immediate";
11721
+ renewal: "renewal";
11722
+ }>;
11723
+ proration: z$1.ZodEnum<{
11724
+ none: "none";
11725
+ create_prorations: "create_prorations";
11726
+ always_invoice: "always_invoice";
11727
+ }>;
11728
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
11729
+ subject: z$1.ZodObject<{
11730
+ scope: z$1.ZodObject<{
11731
+ projectId: z$1.ZodUUID;
11732
+ environmentId: z$1.ZodUUID;
11733
+ environment: z$1.ZodEnum<{
11734
+ sandbox: "sandbox";
11735
+ live: "live";
11736
+ }>;
11737
+ }, z$1.core.$strict>;
11738
+ customerId: z$1.ZodUUID;
11739
+ }, z$1.core.$strict>;
11740
+ operationId: z$1.ZodUUID;
11741
+ configurationRevision: z$1.ZodNumber;
11742
+ connectionRevision: z$1.ZodNumber;
11743
+ expiresAt: z$1.ZodISODateTime;
11744
+ }, z$1.core.$strict>, z$1.ZodObject<{
11745
+ action: z$1.ZodLiteral<"refund">;
11746
+ currency: z$1.ZodString;
11747
+ merchantInvoiceId: z$1.ZodString;
11748
+ mode: z$1.ZodEnum<{
11749
+ full: "full";
11750
+ partial: "partial";
11751
+ }>;
11752
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
11753
+ entitlementAction: z$1.ZodEnum<{
11754
+ retain: "retain";
11755
+ revoke: "revoke";
11756
+ }>;
11757
+ subject: z$1.ZodObject<{
11758
+ scope: z$1.ZodObject<{
11759
+ projectId: z$1.ZodUUID;
11760
+ environmentId: z$1.ZodUUID;
11761
+ environment: z$1.ZodEnum<{
11762
+ sandbox: "sandbox";
11763
+ live: "live";
11764
+ }>;
11765
+ }, z$1.core.$strict>;
11766
+ customerId: z$1.ZodUUID;
11767
+ }, z$1.core.$strict>;
11768
+ operationId: z$1.ZodUUID;
11769
+ configurationRevision: z$1.ZodNumber;
11770
+ connectionRevision: z$1.ZodNumber;
11771
+ expiresAt: z$1.ZodISODateTime;
11772
+ }, z$1.core.$strict>], "action">;
11773
+ requestDigest: z$1.ZodString;
11774
+ merchantQuoteId: z$1.ZodString;
11775
+ quoteTermsDigest: z$1.ZodString;
11776
+ termsVersion: z$1.ZodString;
11777
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
11778
+ reference: z$1.ZodString;
11779
+ revision: z$1.ZodString;
11780
+ }, z$1.core.$strict>>;
11781
+ observedAt: z$1.ZodISODateTime;
11782
+ expiresAt: z$1.ZodISODateTime;
11783
+ currency: z$1.ZodString;
11784
+ automaticTax: z$1.ZodBoolean;
11785
+ lines: z$1.ZodArray<z$1.ZodObject<{
11786
+ merchantLineId: z$1.ZodString;
11787
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
11788
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
11789
+ subtotalMinor: z$1.ZodNumber;
11790
+ discountMinor: z$1.ZodNumber;
11791
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
11792
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
11793
+ }, z$1.core.$strict>>;
11794
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
11795
+ items: z$1.ZodArray<z$1.ZodObject<{
11796
+ merchantPriceId: z$1.ZodString;
11797
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
11798
+ interval: z$1.ZodEnum<{
11799
+ week: "week";
11800
+ month: "month";
11801
+ year: "year";
11802
+ }>;
11803
+ intervalCount: z$1.ZodNumber;
11804
+ amountMinor: z$1.ZodNumber;
11805
+ }, z$1.core.$strict>>;
11806
+ trial: z$1.ZodNullable<z$1.ZodObject<{
11807
+ days: z$1.ZodNumber;
11808
+ cardRequired: z$1.ZodBoolean;
11809
+ }, z$1.core.$strict>>;
11810
+ }, z$1.core.$strict>>;
11811
+ subtotalMinor: z$1.ZodNumber;
11812
+ discountMinor: z$1.ZodNumber;
11813
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
11814
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
11815
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
11816
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
11817
+ reference: z$1.ZodString;
11818
+ kind: z$1.ZodEnum<{
11819
+ change: "change";
11820
+ revoke: "revoke";
11821
+ grant: "grant";
11822
+ }>;
11823
+ description: z$1.ZodString;
11824
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
11825
+ unit: z$1.ZodNullable<z$1.ZodString>;
11826
+ }, z$1.core.$strict>>;
11827
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
11828
+ reference: z$1.ZodString;
11829
+ version: z$1.ZodString;
11830
+ summary: z$1.ZodString;
11831
+ }, z$1.core.$strict>>;
11832
+ }, z$1.core.$strict>>;
9468
11833
  }, z$1.core.$strict>>;
9469
11834
  }, z$1.core.$strict>, z$1.ZodObject<{
9470
11835
  operationId: z$1.ZodUUID;
@@ -9551,52 +11916,219 @@ declare const apiOperations: {
9551
11916
  }>;
9552
11917
  catalogAmountMinor: z$1.ZodNumber;
9553
11918
  discountMinor: z$1.ZodNumber;
9554
- trialDays: z$1.ZodNullable<z$1.ZodNumber>;
9555
- seatBundle: z$1.ZodArray<z$1.ZodObject<{
9556
- key: z$1.ZodString;
9557
- quantity: z$1.ZodNumber;
11919
+ trialDays: z$1.ZodNullable<z$1.ZodNumber>;
11920
+ seatBundle: z$1.ZodArray<z$1.ZodObject<{
11921
+ key: z$1.ZodString;
11922
+ quantity: z$1.ZodNumber;
11923
+ }, z$1.core.$strict>>;
11924
+ applePromotionalOffer: z$1.ZodNullable<z$1.ZodObject<{
11925
+ offerId: z$1.ZodString;
11926
+ keyId: z$1.ZodString;
11927
+ nonce: z$1.ZodUUID;
11928
+ signature: z$1.ZodString;
11929
+ timestamp: z$1.ZodNumber;
11930
+ }, z$1.core.$strict>>;
11931
+ }, z$1.core.$strict>>;
11932
+ }, z$1.core.$strict>]>;
11933
+ }, z$1.core.$strict>;
11934
+ };
11935
+ readonly previewRefund: {
11936
+ readonly method: "POST";
11937
+ readonly path: "subscriptions/refunds/preview";
11938
+ readonly permission: "billing:read";
11939
+ readonly audience: "server";
11940
+ readonly request: z$1.ZodObject<{
11941
+ mode: z$1.ZodEnum<{
11942
+ full: "full";
11943
+ partial: "partial";
11944
+ }>;
11945
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
11946
+ entitlementAction: z$1.ZodEnum<{
11947
+ retain: "retain";
11948
+ revoke: "revoke";
11949
+ }>;
11950
+ requestId: z$1.ZodUUID;
11951
+ invoiceId: z$1.ZodUUID;
11952
+ customerId: z$1.ZodUUID;
11953
+ }, z$1.core.$strict>;
11954
+ readonly response: z$1.ZodObject<{
11955
+ requestId: z$1.ZodUUID;
11956
+ scope: z$1.ZodObject<{
11957
+ projectId: z$1.ZodString;
11958
+ environment: z$1.ZodEnum<{
11959
+ sandbox: "sandbox";
11960
+ live: "live";
11961
+ }>;
11962
+ }, z$1.core.$strict>;
11963
+ quote: z$1.ZodObject<{
11964
+ operationId: z$1.ZodUUID;
11965
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
11966
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
11967
+ action: z$1.ZodLiteral<"purchase">;
11968
+ mode: z$1.ZodEnum<{
11969
+ payment: "payment";
11970
+ subscription: "subscription";
11971
+ }>;
11972
+ currency: z$1.ZodString;
11973
+ items: z$1.ZodArray<z$1.ZodObject<{
11974
+ merchantProductId: z$1.ZodString;
11975
+ merchantPriceId: z$1.ZodString;
11976
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
11977
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
11978
+ }, z$1.core.$strict>>;
11979
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
11980
+ subject: z$1.ZodObject<{
11981
+ scope: z$1.ZodObject<{
11982
+ projectId: z$1.ZodUUID;
11983
+ environmentId: z$1.ZodUUID;
11984
+ environment: z$1.ZodEnum<{
11985
+ sandbox: "sandbox";
11986
+ live: "live";
11987
+ }>;
11988
+ }, z$1.core.$strict>;
11989
+ customerId: z$1.ZodUUID;
11990
+ }, z$1.core.$strict>;
11991
+ operationId: z$1.ZodUUID;
11992
+ configurationRevision: z$1.ZodNumber;
11993
+ connectionRevision: z$1.ZodNumber;
11994
+ expiresAt: z$1.ZodISODateTime;
11995
+ }, z$1.core.$strict>, z$1.ZodObject<{
11996
+ action: z$1.ZodLiteral<"subscription_change">;
11997
+ currency: z$1.ZodString;
11998
+ merchantSubscriptionId: z$1.ZodString;
11999
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12000
+ type: z$1.ZodLiteral<"cancel">;
12001
+ }, z$1.core.$strict>, z$1.ZodObject<{
12002
+ type: z$1.ZodLiteral<"uncancel">;
12003
+ }, z$1.core.$strict>, z$1.ZodObject<{
12004
+ type: z$1.ZodLiteral<"plan">;
12005
+ productVersionId: z$1.ZodUUID;
12006
+ }, z$1.core.$strict>, z$1.ZodObject<{
12007
+ type: z$1.ZodLiteral<"seats">;
12008
+ licenseKey: z$1.ZodString;
12009
+ quantity: z$1.ZodNumber;
12010
+ }, z$1.core.$strict>, z$1.ZodObject<{
12011
+ type: z$1.ZodLiteral<"quantity">;
12012
+ internal_feature_id: z$1.ZodUUID;
12013
+ quantity: z$1.ZodNumber;
12014
+ }, z$1.core.$strict>, z$1.ZodObject<{
12015
+ type: z$1.ZodLiteral<"billing_cycle">;
12016
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
12017
+ }, z$1.core.$strict>], "type">;
12018
+ timing: z$1.ZodEnum<{
12019
+ immediate: "immediate";
12020
+ renewal: "renewal";
12021
+ }>;
12022
+ proration: z$1.ZodEnum<{
12023
+ none: "none";
12024
+ create_prorations: "create_prorations";
12025
+ always_invoice: "always_invoice";
12026
+ }>;
12027
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
12028
+ subject: z$1.ZodObject<{
12029
+ scope: z$1.ZodObject<{
12030
+ projectId: z$1.ZodUUID;
12031
+ environmentId: z$1.ZodUUID;
12032
+ environment: z$1.ZodEnum<{
12033
+ sandbox: "sandbox";
12034
+ live: "live";
12035
+ }>;
12036
+ }, z$1.core.$strict>;
12037
+ customerId: z$1.ZodUUID;
12038
+ }, z$1.core.$strict>;
12039
+ operationId: z$1.ZodUUID;
12040
+ configurationRevision: z$1.ZodNumber;
12041
+ connectionRevision: z$1.ZodNumber;
12042
+ expiresAt: z$1.ZodISODateTime;
12043
+ }, z$1.core.$strict>, z$1.ZodObject<{
12044
+ action: z$1.ZodLiteral<"refund">;
12045
+ currency: z$1.ZodString;
12046
+ merchantInvoiceId: z$1.ZodString;
12047
+ mode: z$1.ZodEnum<{
12048
+ full: "full";
12049
+ partial: "partial";
12050
+ }>;
12051
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
12052
+ entitlementAction: z$1.ZodEnum<{
12053
+ retain: "retain";
12054
+ revoke: "revoke";
12055
+ }>;
12056
+ subject: z$1.ZodObject<{
12057
+ scope: z$1.ZodObject<{
12058
+ projectId: z$1.ZodUUID;
12059
+ environmentId: z$1.ZodUUID;
12060
+ environment: z$1.ZodEnum<{
12061
+ sandbox: "sandbox";
12062
+ live: "live";
12063
+ }>;
12064
+ }, z$1.core.$strict>;
12065
+ customerId: z$1.ZodUUID;
12066
+ }, z$1.core.$strict>;
12067
+ operationId: z$1.ZodUUID;
12068
+ configurationRevision: z$1.ZodNumber;
12069
+ connectionRevision: z$1.ZodNumber;
12070
+ expiresAt: z$1.ZodISODateTime;
12071
+ }, z$1.core.$strict>], "action">;
12072
+ requestDigest: z$1.ZodString;
12073
+ merchantQuoteId: z$1.ZodString;
12074
+ quoteTermsDigest: z$1.ZodString;
12075
+ termsVersion: z$1.ZodString;
12076
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
12077
+ reference: z$1.ZodString;
12078
+ revision: z$1.ZodString;
12079
+ }, z$1.core.$strict>>;
12080
+ observedAt: z$1.ZodISODateTime;
12081
+ expiresAt: z$1.ZodISODateTime;
12082
+ currency: z$1.ZodString;
12083
+ automaticTax: z$1.ZodBoolean;
12084
+ lines: z$1.ZodArray<z$1.ZodObject<{
12085
+ merchantLineId: z$1.ZodString;
12086
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
12087
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
12088
+ subtotalMinor: z$1.ZodNumber;
12089
+ discountMinor: z$1.ZodNumber;
12090
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
12091
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
12092
+ }, z$1.core.$strict>>;
12093
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
12094
+ items: z$1.ZodArray<z$1.ZodObject<{
12095
+ merchantPriceId: z$1.ZodString;
12096
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
12097
+ interval: z$1.ZodEnum<{
12098
+ week: "week";
12099
+ month: "month";
12100
+ year: "year";
12101
+ }>;
12102
+ intervalCount: z$1.ZodNumber;
12103
+ amountMinor: z$1.ZodNumber;
12104
+ }, z$1.core.$strict>>;
12105
+ trial: z$1.ZodNullable<z$1.ZodObject<{
12106
+ days: z$1.ZodNumber;
12107
+ cardRequired: z$1.ZodBoolean;
12108
+ }, z$1.core.$strict>>;
12109
+ }, z$1.core.$strict>>;
12110
+ subtotalMinor: z$1.ZodNumber;
12111
+ discountMinor: z$1.ZodNumber;
12112
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
12113
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
12114
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
12115
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
12116
+ reference: z$1.ZodString;
12117
+ kind: z$1.ZodEnum<{
12118
+ change: "change";
12119
+ revoke: "revoke";
12120
+ grant: "grant";
12121
+ }>;
12122
+ description: z$1.ZodString;
12123
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
12124
+ unit: z$1.ZodNullable<z$1.ZodString>;
9558
12125
  }, z$1.core.$strict>>;
9559
- applePromotionalOffer: z$1.ZodNullable<z$1.ZodObject<{
9560
- offerId: z$1.ZodString;
9561
- keyId: z$1.ZodString;
9562
- nonce: z$1.ZodUUID;
9563
- signature: z$1.ZodString;
9564
- timestamp: z$1.ZodNumber;
12126
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
12127
+ reference: z$1.ZodString;
12128
+ version: z$1.ZodString;
12129
+ summary: z$1.ZodString;
9565
12130
  }, z$1.core.$strict>>;
9566
12131
  }, z$1.core.$strict>>;
9567
- }, z$1.core.$strict>]>;
9568
- }, z$1.core.$strict>;
9569
- };
9570
- readonly previewRefund: {
9571
- readonly method: "POST";
9572
- readonly path: "subscriptions/refunds/preview";
9573
- readonly permission: "billing:read";
9574
- readonly audience: "server";
9575
- readonly request: z$1.ZodObject<{
9576
- requestId: z$1.ZodUUID;
9577
- invoiceId: z$1.ZodUUID;
9578
- mode: z$1.ZodEnum<{
9579
- full: "full";
9580
- partial: "partial";
9581
- }>;
9582
- amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
9583
- entitlementAction: z$1.ZodEnum<{
9584
- retain: "retain";
9585
- revoke: "revoke";
9586
- }>;
9587
- customerId: z$1.ZodUUID;
9588
- }, z$1.core.$strict>;
9589
- readonly response: z$1.ZodObject<{
9590
- requestId: z$1.ZodUUID;
9591
- scope: z$1.ZodObject<{
9592
- projectId: z$1.ZodString;
9593
- environment: z$1.ZodEnum<{
9594
- sandbox: "sandbox";
9595
- live: "live";
9596
- }>;
9597
- }, z$1.core.$strict>;
9598
- quote: z$1.ZodObject<{
9599
- operationId: z$1.ZodUUID;
9600
12132
  invoiceId: z$1.ZodUUID;
9601
12133
  providerInvoiceId: z$1.ZodString;
9602
12134
  currency: z$1.ZodEnum<{
@@ -9700,6 +12232,13 @@ declare const apiOperations: {
9700
12232
  readonly request: z$1.ZodObject<{
9701
12233
  operationId: z$1.ZodUUID;
9702
12234
  customerId: z$1.ZodUUID;
12235
+ merchantConfirmation: z$1.ZodOptional<z$1.ZodObject<{
12236
+ quoteTermsDigest: z$1.ZodString;
12237
+ consents: z$1.ZodArray<z$1.ZodObject<{
12238
+ reference: z$1.ZodString;
12239
+ version: z$1.ZodString;
12240
+ }, z$1.core.$strict>>;
12241
+ }, z$1.core.$strict>>;
9703
12242
  }, z$1.core.$strict>;
9704
12243
  readonly response: z$1.ZodObject<{
9705
12244
  requestId: z$1.ZodUUID;
@@ -9772,6 +12311,173 @@ declare const apiOperations: {
9772
12311
  refundId: z$1.ZodNullable<z$1.ZodString>;
9773
12312
  quote: z$1.ZodOptional<z$1.ZodObject<{
9774
12313
  operationId: z$1.ZodUUID;
12314
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
12315
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12316
+ action: z$1.ZodLiteral<"purchase">;
12317
+ mode: z$1.ZodEnum<{
12318
+ payment: "payment";
12319
+ subscription: "subscription";
12320
+ }>;
12321
+ currency: z$1.ZodString;
12322
+ items: z$1.ZodArray<z$1.ZodObject<{
12323
+ merchantProductId: z$1.ZodString;
12324
+ merchantPriceId: z$1.ZodString;
12325
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
12326
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
12327
+ }, z$1.core.$strict>>;
12328
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
12329
+ subject: z$1.ZodObject<{
12330
+ scope: z$1.ZodObject<{
12331
+ projectId: z$1.ZodUUID;
12332
+ environmentId: z$1.ZodUUID;
12333
+ environment: z$1.ZodEnum<{
12334
+ sandbox: "sandbox";
12335
+ live: "live";
12336
+ }>;
12337
+ }, z$1.core.$strict>;
12338
+ customerId: z$1.ZodUUID;
12339
+ }, z$1.core.$strict>;
12340
+ operationId: z$1.ZodUUID;
12341
+ configurationRevision: z$1.ZodNumber;
12342
+ connectionRevision: z$1.ZodNumber;
12343
+ expiresAt: z$1.ZodISODateTime;
12344
+ }, z$1.core.$strict>, z$1.ZodObject<{
12345
+ action: z$1.ZodLiteral<"subscription_change">;
12346
+ currency: z$1.ZodString;
12347
+ merchantSubscriptionId: z$1.ZodString;
12348
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
12349
+ type: z$1.ZodLiteral<"cancel">;
12350
+ }, z$1.core.$strict>, z$1.ZodObject<{
12351
+ type: z$1.ZodLiteral<"uncancel">;
12352
+ }, z$1.core.$strict>, z$1.ZodObject<{
12353
+ type: z$1.ZodLiteral<"plan">;
12354
+ productVersionId: z$1.ZodUUID;
12355
+ }, z$1.core.$strict>, z$1.ZodObject<{
12356
+ type: z$1.ZodLiteral<"seats">;
12357
+ licenseKey: z$1.ZodString;
12358
+ quantity: z$1.ZodNumber;
12359
+ }, z$1.core.$strict>, z$1.ZodObject<{
12360
+ type: z$1.ZodLiteral<"quantity">;
12361
+ internal_feature_id: z$1.ZodUUID;
12362
+ quantity: z$1.ZodNumber;
12363
+ }, z$1.core.$strict>, z$1.ZodObject<{
12364
+ type: z$1.ZodLiteral<"billing_cycle">;
12365
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
12366
+ }, z$1.core.$strict>], "type">;
12367
+ timing: z$1.ZodEnum<{
12368
+ immediate: "immediate";
12369
+ renewal: "renewal";
12370
+ }>;
12371
+ proration: z$1.ZodEnum<{
12372
+ none: "none";
12373
+ create_prorations: "create_prorations";
12374
+ always_invoice: "always_invoice";
12375
+ }>;
12376
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
12377
+ subject: z$1.ZodObject<{
12378
+ scope: z$1.ZodObject<{
12379
+ projectId: z$1.ZodUUID;
12380
+ environmentId: z$1.ZodUUID;
12381
+ environment: z$1.ZodEnum<{
12382
+ sandbox: "sandbox";
12383
+ live: "live";
12384
+ }>;
12385
+ }, z$1.core.$strict>;
12386
+ customerId: z$1.ZodUUID;
12387
+ }, z$1.core.$strict>;
12388
+ operationId: z$1.ZodUUID;
12389
+ configurationRevision: z$1.ZodNumber;
12390
+ connectionRevision: z$1.ZodNumber;
12391
+ expiresAt: z$1.ZodISODateTime;
12392
+ }, z$1.core.$strict>, z$1.ZodObject<{
12393
+ action: z$1.ZodLiteral<"refund">;
12394
+ currency: z$1.ZodString;
12395
+ merchantInvoiceId: z$1.ZodString;
12396
+ mode: z$1.ZodEnum<{
12397
+ full: "full";
12398
+ partial: "partial";
12399
+ }>;
12400
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
12401
+ entitlementAction: z$1.ZodEnum<{
12402
+ retain: "retain";
12403
+ revoke: "revoke";
12404
+ }>;
12405
+ subject: z$1.ZodObject<{
12406
+ scope: z$1.ZodObject<{
12407
+ projectId: z$1.ZodUUID;
12408
+ environmentId: z$1.ZodUUID;
12409
+ environment: z$1.ZodEnum<{
12410
+ sandbox: "sandbox";
12411
+ live: "live";
12412
+ }>;
12413
+ }, z$1.core.$strict>;
12414
+ customerId: z$1.ZodUUID;
12415
+ }, z$1.core.$strict>;
12416
+ operationId: z$1.ZodUUID;
12417
+ configurationRevision: z$1.ZodNumber;
12418
+ connectionRevision: z$1.ZodNumber;
12419
+ expiresAt: z$1.ZodISODateTime;
12420
+ }, z$1.core.$strict>], "action">;
12421
+ requestDigest: z$1.ZodString;
12422
+ merchantQuoteId: z$1.ZodString;
12423
+ quoteTermsDigest: z$1.ZodString;
12424
+ termsVersion: z$1.ZodString;
12425
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
12426
+ reference: z$1.ZodString;
12427
+ revision: z$1.ZodString;
12428
+ }, z$1.core.$strict>>;
12429
+ observedAt: z$1.ZodISODateTime;
12430
+ expiresAt: z$1.ZodISODateTime;
12431
+ currency: z$1.ZodString;
12432
+ automaticTax: z$1.ZodBoolean;
12433
+ lines: z$1.ZodArray<z$1.ZodObject<{
12434
+ merchantLineId: z$1.ZodString;
12435
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
12436
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
12437
+ subtotalMinor: z$1.ZodNumber;
12438
+ discountMinor: z$1.ZodNumber;
12439
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
12440
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
12441
+ }, z$1.core.$strict>>;
12442
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
12443
+ items: z$1.ZodArray<z$1.ZodObject<{
12444
+ merchantPriceId: z$1.ZodString;
12445
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
12446
+ interval: z$1.ZodEnum<{
12447
+ week: "week";
12448
+ month: "month";
12449
+ year: "year";
12450
+ }>;
12451
+ intervalCount: z$1.ZodNumber;
12452
+ amountMinor: z$1.ZodNumber;
12453
+ }, z$1.core.$strict>>;
12454
+ trial: z$1.ZodNullable<z$1.ZodObject<{
12455
+ days: z$1.ZodNumber;
12456
+ cardRequired: z$1.ZodBoolean;
12457
+ }, z$1.core.$strict>>;
12458
+ }, z$1.core.$strict>>;
12459
+ subtotalMinor: z$1.ZodNumber;
12460
+ discountMinor: z$1.ZodNumber;
12461
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
12462
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
12463
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
12464
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
12465
+ reference: z$1.ZodString;
12466
+ kind: z$1.ZodEnum<{
12467
+ change: "change";
12468
+ revoke: "revoke";
12469
+ grant: "grant";
12470
+ }>;
12471
+ description: z$1.ZodString;
12472
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
12473
+ unit: z$1.ZodNullable<z$1.ZodString>;
12474
+ }, z$1.core.$strict>>;
12475
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
12476
+ reference: z$1.ZodString;
12477
+ version: z$1.ZodString;
12478
+ summary: z$1.ZodString;
12479
+ }, z$1.core.$strict>>;
12480
+ }, z$1.core.$strict>>;
9775
12481
  invoiceId: z$1.ZodUUID;
9776
12482
  providerInvoiceId: z$1.ZodString;
9777
12483
  currency: z$1.ZodEnum<{
@@ -10400,6 +13106,173 @@ declare const apiOperations: {
10400
13106
  currency: z$1.ZodString;
10401
13107
  expiresAt: z$1.ZodISODateTime;
10402
13108
  }, z$1.core.$strict>], "type">;
13109
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
13110
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13111
+ action: z$1.ZodLiteral<"purchase">;
13112
+ mode: z$1.ZodEnum<{
13113
+ payment: "payment";
13114
+ subscription: "subscription";
13115
+ }>;
13116
+ currency: z$1.ZodString;
13117
+ items: z$1.ZodArray<z$1.ZodObject<{
13118
+ merchantProductId: z$1.ZodString;
13119
+ merchantPriceId: z$1.ZodString;
13120
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
13121
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13122
+ }, z$1.core.$strict>>;
13123
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
13124
+ subject: z$1.ZodObject<{
13125
+ scope: z$1.ZodObject<{
13126
+ projectId: z$1.ZodUUID;
13127
+ environmentId: z$1.ZodUUID;
13128
+ environment: z$1.ZodEnum<{
13129
+ sandbox: "sandbox";
13130
+ live: "live";
13131
+ }>;
13132
+ }, z$1.core.$strict>;
13133
+ customerId: z$1.ZodUUID;
13134
+ }, z$1.core.$strict>;
13135
+ operationId: z$1.ZodUUID;
13136
+ configurationRevision: z$1.ZodNumber;
13137
+ connectionRevision: z$1.ZodNumber;
13138
+ expiresAt: z$1.ZodISODateTime;
13139
+ }, z$1.core.$strict>, z$1.ZodObject<{
13140
+ action: z$1.ZodLiteral<"subscription_change">;
13141
+ currency: z$1.ZodString;
13142
+ merchantSubscriptionId: z$1.ZodString;
13143
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13144
+ type: z$1.ZodLiteral<"cancel">;
13145
+ }, z$1.core.$strict>, z$1.ZodObject<{
13146
+ type: z$1.ZodLiteral<"uncancel">;
13147
+ }, z$1.core.$strict>, z$1.ZodObject<{
13148
+ type: z$1.ZodLiteral<"plan">;
13149
+ productVersionId: z$1.ZodUUID;
13150
+ }, z$1.core.$strict>, z$1.ZodObject<{
13151
+ type: z$1.ZodLiteral<"seats">;
13152
+ licenseKey: z$1.ZodString;
13153
+ quantity: z$1.ZodNumber;
13154
+ }, z$1.core.$strict>, z$1.ZodObject<{
13155
+ type: z$1.ZodLiteral<"quantity">;
13156
+ internal_feature_id: z$1.ZodUUID;
13157
+ quantity: z$1.ZodNumber;
13158
+ }, z$1.core.$strict>, z$1.ZodObject<{
13159
+ type: z$1.ZodLiteral<"billing_cycle">;
13160
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
13161
+ }, z$1.core.$strict>], "type">;
13162
+ timing: z$1.ZodEnum<{
13163
+ immediate: "immediate";
13164
+ renewal: "renewal";
13165
+ }>;
13166
+ proration: z$1.ZodEnum<{
13167
+ none: "none";
13168
+ create_prorations: "create_prorations";
13169
+ always_invoice: "always_invoice";
13170
+ }>;
13171
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
13172
+ subject: z$1.ZodObject<{
13173
+ scope: z$1.ZodObject<{
13174
+ projectId: z$1.ZodUUID;
13175
+ environmentId: z$1.ZodUUID;
13176
+ environment: z$1.ZodEnum<{
13177
+ sandbox: "sandbox";
13178
+ live: "live";
13179
+ }>;
13180
+ }, z$1.core.$strict>;
13181
+ customerId: z$1.ZodUUID;
13182
+ }, z$1.core.$strict>;
13183
+ operationId: z$1.ZodUUID;
13184
+ configurationRevision: z$1.ZodNumber;
13185
+ connectionRevision: z$1.ZodNumber;
13186
+ expiresAt: z$1.ZodISODateTime;
13187
+ }, z$1.core.$strict>, z$1.ZodObject<{
13188
+ action: z$1.ZodLiteral<"refund">;
13189
+ currency: z$1.ZodString;
13190
+ merchantInvoiceId: z$1.ZodString;
13191
+ mode: z$1.ZodEnum<{
13192
+ full: "full";
13193
+ partial: "partial";
13194
+ }>;
13195
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
13196
+ entitlementAction: z$1.ZodEnum<{
13197
+ retain: "retain";
13198
+ revoke: "revoke";
13199
+ }>;
13200
+ subject: z$1.ZodObject<{
13201
+ scope: z$1.ZodObject<{
13202
+ projectId: z$1.ZodUUID;
13203
+ environmentId: z$1.ZodUUID;
13204
+ environment: z$1.ZodEnum<{
13205
+ sandbox: "sandbox";
13206
+ live: "live";
13207
+ }>;
13208
+ }, z$1.core.$strict>;
13209
+ customerId: z$1.ZodUUID;
13210
+ }, z$1.core.$strict>;
13211
+ operationId: z$1.ZodUUID;
13212
+ configurationRevision: z$1.ZodNumber;
13213
+ connectionRevision: z$1.ZodNumber;
13214
+ expiresAt: z$1.ZodISODateTime;
13215
+ }, z$1.core.$strict>], "action">;
13216
+ requestDigest: z$1.ZodString;
13217
+ merchantQuoteId: z$1.ZodString;
13218
+ quoteTermsDigest: z$1.ZodString;
13219
+ termsVersion: z$1.ZodString;
13220
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
13221
+ reference: z$1.ZodString;
13222
+ revision: z$1.ZodString;
13223
+ }, z$1.core.$strict>>;
13224
+ observedAt: z$1.ZodISODateTime;
13225
+ expiresAt: z$1.ZodISODateTime;
13226
+ currency: z$1.ZodString;
13227
+ automaticTax: z$1.ZodBoolean;
13228
+ lines: z$1.ZodArray<z$1.ZodObject<{
13229
+ merchantLineId: z$1.ZodString;
13230
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
13231
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13232
+ subtotalMinor: z$1.ZodNumber;
13233
+ discountMinor: z$1.ZodNumber;
13234
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
13235
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
13236
+ }, z$1.core.$strict>>;
13237
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
13238
+ items: z$1.ZodArray<z$1.ZodObject<{
13239
+ merchantPriceId: z$1.ZodString;
13240
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13241
+ interval: z$1.ZodEnum<{
13242
+ week: "week";
13243
+ month: "month";
13244
+ year: "year";
13245
+ }>;
13246
+ intervalCount: z$1.ZodNumber;
13247
+ amountMinor: z$1.ZodNumber;
13248
+ }, z$1.core.$strict>>;
13249
+ trial: z$1.ZodNullable<z$1.ZodObject<{
13250
+ days: z$1.ZodNumber;
13251
+ cardRequired: z$1.ZodBoolean;
13252
+ }, z$1.core.$strict>>;
13253
+ }, z$1.core.$strict>>;
13254
+ subtotalMinor: z$1.ZodNumber;
13255
+ discountMinor: z$1.ZodNumber;
13256
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
13257
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
13258
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
13259
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
13260
+ reference: z$1.ZodString;
13261
+ kind: z$1.ZodEnum<{
13262
+ change: "change";
13263
+ revoke: "revoke";
13264
+ grant: "grant";
13265
+ }>;
13266
+ description: z$1.ZodString;
13267
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
13268
+ unit: z$1.ZodNullable<z$1.ZodString>;
13269
+ }, z$1.core.$strict>>;
13270
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
13271
+ reference: z$1.ZodString;
13272
+ version: z$1.ZodString;
13273
+ summary: z$1.ZodString;
13274
+ }, z$1.core.$strict>>;
13275
+ }, z$1.core.$strict>>;
10403
13276
  }, z$1.core.$strict>>;
10404
13277
  failureReason: z$1.ZodNullable<z$1.ZodString>;
10405
13278
  createdAt: z$1.ZodISODateTime;
@@ -10487,6 +13360,173 @@ declare const apiOperations: {
10487
13360
  refundId: z$1.ZodNullable<z$1.ZodString>;
10488
13361
  quote: z$1.ZodOptional<z$1.ZodObject<{
10489
13362
  operationId: z$1.ZodUUID;
13363
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
13364
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13365
+ action: z$1.ZodLiteral<"purchase">;
13366
+ mode: z$1.ZodEnum<{
13367
+ payment: "payment";
13368
+ subscription: "subscription";
13369
+ }>;
13370
+ currency: z$1.ZodString;
13371
+ items: z$1.ZodArray<z$1.ZodObject<{
13372
+ merchantProductId: z$1.ZodString;
13373
+ merchantPriceId: z$1.ZodString;
13374
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
13375
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13376
+ }, z$1.core.$strict>>;
13377
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
13378
+ subject: z$1.ZodObject<{
13379
+ scope: z$1.ZodObject<{
13380
+ projectId: z$1.ZodUUID;
13381
+ environmentId: z$1.ZodUUID;
13382
+ environment: z$1.ZodEnum<{
13383
+ sandbox: "sandbox";
13384
+ live: "live";
13385
+ }>;
13386
+ }, z$1.core.$strict>;
13387
+ customerId: z$1.ZodUUID;
13388
+ }, z$1.core.$strict>;
13389
+ operationId: z$1.ZodUUID;
13390
+ configurationRevision: z$1.ZodNumber;
13391
+ connectionRevision: z$1.ZodNumber;
13392
+ expiresAt: z$1.ZodISODateTime;
13393
+ }, z$1.core.$strict>, z$1.ZodObject<{
13394
+ action: z$1.ZodLiteral<"subscription_change">;
13395
+ currency: z$1.ZodString;
13396
+ merchantSubscriptionId: z$1.ZodString;
13397
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
13398
+ type: z$1.ZodLiteral<"cancel">;
13399
+ }, z$1.core.$strict>, z$1.ZodObject<{
13400
+ type: z$1.ZodLiteral<"uncancel">;
13401
+ }, z$1.core.$strict>, z$1.ZodObject<{
13402
+ type: z$1.ZodLiteral<"plan">;
13403
+ productVersionId: z$1.ZodUUID;
13404
+ }, z$1.core.$strict>, z$1.ZodObject<{
13405
+ type: z$1.ZodLiteral<"seats">;
13406
+ licenseKey: z$1.ZodString;
13407
+ quantity: z$1.ZodNumber;
13408
+ }, z$1.core.$strict>, z$1.ZodObject<{
13409
+ type: z$1.ZodLiteral<"quantity">;
13410
+ internal_feature_id: z$1.ZodUUID;
13411
+ quantity: z$1.ZodNumber;
13412
+ }, z$1.core.$strict>, z$1.ZodObject<{
13413
+ type: z$1.ZodLiteral<"billing_cycle">;
13414
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
13415
+ }, z$1.core.$strict>], "type">;
13416
+ timing: z$1.ZodEnum<{
13417
+ immediate: "immediate";
13418
+ renewal: "renewal";
13419
+ }>;
13420
+ proration: z$1.ZodEnum<{
13421
+ none: "none";
13422
+ create_prorations: "create_prorations";
13423
+ always_invoice: "always_invoice";
13424
+ }>;
13425
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
13426
+ subject: z$1.ZodObject<{
13427
+ scope: z$1.ZodObject<{
13428
+ projectId: z$1.ZodUUID;
13429
+ environmentId: z$1.ZodUUID;
13430
+ environment: z$1.ZodEnum<{
13431
+ sandbox: "sandbox";
13432
+ live: "live";
13433
+ }>;
13434
+ }, z$1.core.$strict>;
13435
+ customerId: z$1.ZodUUID;
13436
+ }, z$1.core.$strict>;
13437
+ operationId: z$1.ZodUUID;
13438
+ configurationRevision: z$1.ZodNumber;
13439
+ connectionRevision: z$1.ZodNumber;
13440
+ expiresAt: z$1.ZodISODateTime;
13441
+ }, z$1.core.$strict>, z$1.ZodObject<{
13442
+ action: z$1.ZodLiteral<"refund">;
13443
+ currency: z$1.ZodString;
13444
+ merchantInvoiceId: z$1.ZodString;
13445
+ mode: z$1.ZodEnum<{
13446
+ full: "full";
13447
+ partial: "partial";
13448
+ }>;
13449
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
13450
+ entitlementAction: z$1.ZodEnum<{
13451
+ retain: "retain";
13452
+ revoke: "revoke";
13453
+ }>;
13454
+ subject: z$1.ZodObject<{
13455
+ scope: z$1.ZodObject<{
13456
+ projectId: z$1.ZodUUID;
13457
+ environmentId: z$1.ZodUUID;
13458
+ environment: z$1.ZodEnum<{
13459
+ sandbox: "sandbox";
13460
+ live: "live";
13461
+ }>;
13462
+ }, z$1.core.$strict>;
13463
+ customerId: z$1.ZodUUID;
13464
+ }, z$1.core.$strict>;
13465
+ operationId: z$1.ZodUUID;
13466
+ configurationRevision: z$1.ZodNumber;
13467
+ connectionRevision: z$1.ZodNumber;
13468
+ expiresAt: z$1.ZodISODateTime;
13469
+ }, z$1.core.$strict>], "action">;
13470
+ requestDigest: z$1.ZodString;
13471
+ merchantQuoteId: z$1.ZodString;
13472
+ quoteTermsDigest: z$1.ZodString;
13473
+ termsVersion: z$1.ZodString;
13474
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
13475
+ reference: z$1.ZodString;
13476
+ revision: z$1.ZodString;
13477
+ }, z$1.core.$strict>>;
13478
+ observedAt: z$1.ZodISODateTime;
13479
+ expiresAt: z$1.ZodISODateTime;
13480
+ currency: z$1.ZodString;
13481
+ automaticTax: z$1.ZodBoolean;
13482
+ lines: z$1.ZodArray<z$1.ZodObject<{
13483
+ merchantLineId: z$1.ZodString;
13484
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
13485
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13486
+ subtotalMinor: z$1.ZodNumber;
13487
+ discountMinor: z$1.ZodNumber;
13488
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
13489
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
13490
+ }, z$1.core.$strict>>;
13491
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
13492
+ items: z$1.ZodArray<z$1.ZodObject<{
13493
+ merchantPriceId: z$1.ZodString;
13494
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13495
+ interval: z$1.ZodEnum<{
13496
+ week: "week";
13497
+ month: "month";
13498
+ year: "year";
13499
+ }>;
13500
+ intervalCount: z$1.ZodNumber;
13501
+ amountMinor: z$1.ZodNumber;
13502
+ }, z$1.core.$strict>>;
13503
+ trial: z$1.ZodNullable<z$1.ZodObject<{
13504
+ days: z$1.ZodNumber;
13505
+ cardRequired: z$1.ZodBoolean;
13506
+ }, z$1.core.$strict>>;
13507
+ }, z$1.core.$strict>>;
13508
+ subtotalMinor: z$1.ZodNumber;
13509
+ discountMinor: z$1.ZodNumber;
13510
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
13511
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
13512
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
13513
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
13514
+ reference: z$1.ZodString;
13515
+ kind: z$1.ZodEnum<{
13516
+ change: "change";
13517
+ revoke: "revoke";
13518
+ grant: "grant";
13519
+ }>;
13520
+ description: z$1.ZodString;
13521
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
13522
+ unit: z$1.ZodNullable<z$1.ZodString>;
13523
+ }, z$1.core.$strict>>;
13524
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
13525
+ reference: z$1.ZodString;
13526
+ version: z$1.ZodString;
13527
+ summary: z$1.ZodString;
13528
+ }, z$1.core.$strict>>;
13529
+ }, z$1.core.$strict>>;
10490
13530
  invoiceId: z$1.ZodUUID;
10491
13531
  providerInvoiceId: z$1.ZodString;
10492
13532
  currency: z$1.ZodEnum<{
@@ -11115,6 +14155,173 @@ declare const apiOperations: {
11115
14155
  currency: z$1.ZodString;
11116
14156
  expiresAt: z$1.ZodISODateTime;
11117
14157
  }, z$1.core.$strict>], "type">;
14158
+ merchantTerms: z$1.ZodOptional<z$1.ZodObject<{
14159
+ request: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14160
+ action: z$1.ZodLiteral<"purchase">;
14161
+ mode: z$1.ZodEnum<{
14162
+ payment: "payment";
14163
+ subscription: "subscription";
14164
+ }>;
14165
+ currency: z$1.ZodString;
14166
+ items: z$1.ZodArray<z$1.ZodObject<{
14167
+ merchantProductId: z$1.ZodString;
14168
+ merchantPriceId: z$1.ZodString;
14169
+ productVersionId: z$1.ZodOptional<z$1.ZodUUID>;
14170
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
14171
+ }, z$1.core.$strict>>;
14172
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
14173
+ subject: z$1.ZodObject<{
14174
+ scope: z$1.ZodObject<{
14175
+ projectId: z$1.ZodUUID;
14176
+ environmentId: z$1.ZodUUID;
14177
+ environment: z$1.ZodEnum<{
14178
+ sandbox: "sandbox";
14179
+ live: "live";
14180
+ }>;
14181
+ }, z$1.core.$strict>;
14182
+ customerId: z$1.ZodUUID;
14183
+ }, z$1.core.$strict>;
14184
+ operationId: z$1.ZodUUID;
14185
+ configurationRevision: z$1.ZodNumber;
14186
+ connectionRevision: z$1.ZodNumber;
14187
+ expiresAt: z$1.ZodISODateTime;
14188
+ }, z$1.core.$strict>, z$1.ZodObject<{
14189
+ action: z$1.ZodLiteral<"subscription_change">;
14190
+ currency: z$1.ZodString;
14191
+ merchantSubscriptionId: z$1.ZodString;
14192
+ change: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
14193
+ type: z$1.ZodLiteral<"cancel">;
14194
+ }, z$1.core.$strict>, z$1.ZodObject<{
14195
+ type: z$1.ZodLiteral<"uncancel">;
14196
+ }, z$1.core.$strict>, z$1.ZodObject<{
14197
+ type: z$1.ZodLiteral<"plan">;
14198
+ productVersionId: z$1.ZodUUID;
14199
+ }, z$1.core.$strict>, z$1.ZodObject<{
14200
+ type: z$1.ZodLiteral<"seats">;
14201
+ licenseKey: z$1.ZodString;
14202
+ quantity: z$1.ZodNumber;
14203
+ }, z$1.core.$strict>, z$1.ZodObject<{
14204
+ type: z$1.ZodLiteral<"quantity">;
14205
+ internal_feature_id: z$1.ZodUUID;
14206
+ quantity: z$1.ZodNumber;
14207
+ }, z$1.core.$strict>, z$1.ZodObject<{
14208
+ type: z$1.ZodLiteral<"billing_cycle">;
14209
+ billingCycleAnchor: z$1.ZodUnion<readonly [z$1.ZodLiteral<"now">, z$1.ZodNumber]>;
14210
+ }, z$1.core.$strict>], "type">;
14211
+ timing: z$1.ZodEnum<{
14212
+ immediate: "immediate";
14213
+ renewal: "renewal";
14214
+ }>;
14215
+ proration: z$1.ZodEnum<{
14216
+ none: "none";
14217
+ create_prorations: "create_prorations";
14218
+ always_invoice: "always_invoice";
14219
+ }>;
14220
+ offerRefs: z$1.ZodArray<z$1.ZodString>;
14221
+ subject: z$1.ZodObject<{
14222
+ scope: z$1.ZodObject<{
14223
+ projectId: z$1.ZodUUID;
14224
+ environmentId: z$1.ZodUUID;
14225
+ environment: z$1.ZodEnum<{
14226
+ sandbox: "sandbox";
14227
+ live: "live";
14228
+ }>;
14229
+ }, z$1.core.$strict>;
14230
+ customerId: z$1.ZodUUID;
14231
+ }, z$1.core.$strict>;
14232
+ operationId: z$1.ZodUUID;
14233
+ configurationRevision: z$1.ZodNumber;
14234
+ connectionRevision: z$1.ZodNumber;
14235
+ expiresAt: z$1.ZodISODateTime;
14236
+ }, z$1.core.$strict>, z$1.ZodObject<{
14237
+ action: z$1.ZodLiteral<"refund">;
14238
+ currency: z$1.ZodString;
14239
+ merchantInvoiceId: z$1.ZodString;
14240
+ mode: z$1.ZodEnum<{
14241
+ full: "full";
14242
+ partial: "partial";
14243
+ }>;
14244
+ amountMinor: z$1.ZodOptional<z$1.ZodNumber>;
14245
+ entitlementAction: z$1.ZodEnum<{
14246
+ retain: "retain";
14247
+ revoke: "revoke";
14248
+ }>;
14249
+ subject: z$1.ZodObject<{
14250
+ scope: z$1.ZodObject<{
14251
+ projectId: z$1.ZodUUID;
14252
+ environmentId: z$1.ZodUUID;
14253
+ environment: z$1.ZodEnum<{
14254
+ sandbox: "sandbox";
14255
+ live: "live";
14256
+ }>;
14257
+ }, z$1.core.$strict>;
14258
+ customerId: z$1.ZodUUID;
14259
+ }, z$1.core.$strict>;
14260
+ operationId: z$1.ZodUUID;
14261
+ configurationRevision: z$1.ZodNumber;
14262
+ connectionRevision: z$1.ZodNumber;
14263
+ expiresAt: z$1.ZodISODateTime;
14264
+ }, z$1.core.$strict>], "action">;
14265
+ requestDigest: z$1.ZodString;
14266
+ merchantQuoteId: z$1.ZodString;
14267
+ quoteTermsDigest: z$1.ZodString;
14268
+ termsVersion: z$1.ZodString;
14269
+ sourceRevisions: z$1.ZodArray<z$1.ZodObject<{
14270
+ reference: z$1.ZodString;
14271
+ revision: z$1.ZodString;
14272
+ }, z$1.core.$strict>>;
14273
+ observedAt: z$1.ZodISODateTime;
14274
+ expiresAt: z$1.ZodISODateTime;
14275
+ currency: z$1.ZodString;
14276
+ automaticTax: z$1.ZodBoolean;
14277
+ lines: z$1.ZodArray<z$1.ZodObject<{
14278
+ merchantLineId: z$1.ZodString;
14279
+ merchantPriceId: z$1.ZodNullable<z$1.ZodString>;
14280
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
14281
+ subtotalMinor: z$1.ZodNumber;
14282
+ discountMinor: z$1.ZodNumber;
14283
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
14284
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
14285
+ }, z$1.core.$strict>>;
14286
+ subscriptionTerms: z$1.ZodNullable<z$1.ZodObject<{
14287
+ items: z$1.ZodArray<z$1.ZodObject<{
14288
+ merchantPriceId: z$1.ZodString;
14289
+ quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
14290
+ interval: z$1.ZodEnum<{
14291
+ week: "week";
14292
+ month: "month";
14293
+ year: "year";
14294
+ }>;
14295
+ intervalCount: z$1.ZodNumber;
14296
+ amountMinor: z$1.ZodNumber;
14297
+ }, z$1.core.$strict>>;
14298
+ trial: z$1.ZodNullable<z$1.ZodObject<{
14299
+ days: z$1.ZodNumber;
14300
+ cardRequired: z$1.ZodBoolean;
14301
+ }, z$1.core.$strict>>;
14302
+ }, z$1.core.$strict>>;
14303
+ subtotalMinor: z$1.ZodNumber;
14304
+ discountMinor: z$1.ZodNumber;
14305
+ taxMinor: z$1.ZodNullable<z$1.ZodNumber>;
14306
+ totalMinor: z$1.ZodNullable<z$1.ZodNumber>;
14307
+ effectiveAt: z$1.ZodNullable<z$1.ZodISODateTime>;
14308
+ expectedEffects: z$1.ZodArray<z$1.ZodObject<{
14309
+ reference: z$1.ZodString;
14310
+ kind: z$1.ZodEnum<{
14311
+ change: "change";
14312
+ revoke: "revoke";
14313
+ grant: "grant";
14314
+ }>;
14315
+ description: z$1.ZodString;
14316
+ quantity: z$1.ZodNullable<z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>>;
14317
+ unit: z$1.ZodNullable<z$1.ZodString>;
14318
+ }, z$1.core.$strict>>;
14319
+ requiredConsents: z$1.ZodArray<z$1.ZodObject<{
14320
+ reference: z$1.ZodString;
14321
+ version: z$1.ZodString;
14322
+ summary: z$1.ZodString;
14323
+ }, z$1.core.$strict>>;
14324
+ }, z$1.core.$strict>>;
11118
14325
  }, z$1.core.$strict>>;
11119
14326
  failureReason: z$1.ZodNullable<z$1.ZodString>;
11120
14327
  createdAt: z$1.ZodISODateTime;
@@ -13209,8 +16416,8 @@ declare const apiOperations: {
13209
16416
  status: z$1.ZodEnum<{
13210
16417
  failed: "failed";
13211
16418
  accepted: "accepted";
13212
- queued: "queued";
13213
16419
  rejected: "rejected";
16420
+ queued: "queued";
13214
16421
  }>;
13215
16422
  receipt: z$1.ZodNullable<z$1.ZodObject<{
13216
16423
  id: z$1.ZodUUID;
@@ -13371,6 +16578,26 @@ declare const apiOperations: {
13371
16578
  }>;
13372
16579
  quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13373
16580
  allowed: z$1.ZodBoolean;
16581
+ observation: z$1.ZodOptional<z$1.ZodObject<{
16582
+ subject: z$1.ZodObject<{
16583
+ scope: z$1.ZodObject<{
16584
+ projectId: z$1.ZodUUID;
16585
+ environmentId: z$1.ZodUUID;
16586
+ environment: z$1.ZodEnum<{
16587
+ sandbox: "sandbox";
16588
+ live: "live";
16589
+ }>;
16590
+ }, z$1.core.$strict>;
16591
+ customerId: z$1.ZodUUID;
16592
+ }, z$1.core.$strict>;
16593
+ authority: z$1.ZodEnum<{
16594
+ longplay: "longplay";
16595
+ merchant: "merchant";
16596
+ }>;
16597
+ observedAt: z$1.ZodISODateTime;
16598
+ sourceRevision: z$1.ZodString;
16599
+ requirementDigest: z$1.ZodString;
16600
+ }, z$1.core.$strict>>;
13374
16601
  reason: z$1.ZodNullable<z$1.ZodEnum<{
13375
16602
  not_entitled: "not_entitled";
13376
16603
  insufficient_balance: "insufficient_balance";
@@ -13782,6 +17009,26 @@ declare const apiOperations: {
13782
17009
  }>;
13783
17010
  quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13784
17011
  allowed: z$1.ZodBoolean;
17012
+ observation: z$1.ZodOptional<z$1.ZodObject<{
17013
+ subject: z$1.ZodObject<{
17014
+ scope: z$1.ZodObject<{
17015
+ projectId: z$1.ZodUUID;
17016
+ environmentId: z$1.ZodUUID;
17017
+ environment: z$1.ZodEnum<{
17018
+ sandbox: "sandbox";
17019
+ live: "live";
17020
+ }>;
17021
+ }, z$1.core.$strict>;
17022
+ customerId: z$1.ZodUUID;
17023
+ }, z$1.core.$strict>;
17024
+ authority: z$1.ZodEnum<{
17025
+ longplay: "longplay";
17026
+ merchant: "merchant";
17027
+ }>;
17028
+ observedAt: z$1.ZodISODateTime;
17029
+ sourceRevision: z$1.ZodString;
17030
+ requirementDigest: z$1.ZodString;
17031
+ }, z$1.core.$strict>>;
13785
17032
  reason: z$1.ZodNullable<z$1.ZodEnum<{
13786
17033
  not_entitled: "not_entitled";
13787
17034
  insufficient_balance: "insufficient_balance";
@@ -13858,6 +17105,7 @@ declare const apiOperations: {
13858
17105
  }, z$1.core.$strict>>;
13859
17106
  }, z$1.core.$strict>>;
13860
17107
  id: z$1.ZodUUID;
17108
+ version: z$1.ZodNumber;
13861
17109
  capabilities: z$1.ZodObject<{
13862
17110
  paywall: z$1.ZodOptional<z$1.ZodObject<{
13863
17111
  internal_feature_id: z$1.ZodString;
@@ -13869,6 +17117,26 @@ declare const apiOperations: {
13869
17117
  }>;
13870
17118
  quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
13871
17119
  allowed: z$1.ZodBoolean;
17120
+ observation: z$1.ZodOptional<z$1.ZodObject<{
17121
+ subject: z$1.ZodObject<{
17122
+ scope: z$1.ZodObject<{
17123
+ projectId: z$1.ZodUUID;
17124
+ environmentId: z$1.ZodUUID;
17125
+ environment: z$1.ZodEnum<{
17126
+ sandbox: "sandbox";
17127
+ live: "live";
17128
+ }>;
17129
+ }, z$1.core.$strict>;
17130
+ customerId: z$1.ZodUUID;
17131
+ }, z$1.core.$strict>;
17132
+ authority: z$1.ZodEnum<{
17133
+ longplay: "longplay";
17134
+ merchant: "merchant";
17135
+ }>;
17136
+ observedAt: z$1.ZodISODateTime;
17137
+ sourceRevision: z$1.ZodString;
17138
+ requirementDigest: z$1.ZodString;
17139
+ }, z$1.core.$strict>>;
13872
17140
  reason: z$1.ZodNullable<z$1.ZodEnum<{
13873
17141
  not_entitled: "not_entitled";
13874
17142
  insufficient_balance: "insufficient_balance";
@@ -14194,7 +17462,6 @@ declare const apiOperations: {
14194
17462
  message: z$1.ZodString;
14195
17463
  }, z$1.core.$strict>>;
14196
17464
  }, z$1.core.$strict>;
14197
- version: z$1.ZodNumber;
14198
17465
  paywallId: z$1.ZodUUID;
14199
17466
  content: z$1.ZodObject<{
14200
17467
  environmentId: z$1.ZodUUID;
@@ -14396,6 +17663,26 @@ declare const apiOperations: {
14396
17663
  }>;
14397
17664
  quantity: z$1.ZodPipe<z$1.ZodString, z$1.ZodTransform<string, string>>;
14398
17665
  allowed: z$1.ZodBoolean;
17666
+ observation: z$1.ZodOptional<z$1.ZodObject<{
17667
+ subject: z$1.ZodObject<{
17668
+ scope: z$1.ZodObject<{
17669
+ projectId: z$1.ZodUUID;
17670
+ environmentId: z$1.ZodUUID;
17671
+ environment: z$1.ZodEnum<{
17672
+ sandbox: "sandbox";
17673
+ live: "live";
17674
+ }>;
17675
+ }, z$1.core.$strict>;
17676
+ customerId: z$1.ZodUUID;
17677
+ }, z$1.core.$strict>;
17678
+ authority: z$1.ZodEnum<{
17679
+ longplay: "longplay";
17680
+ merchant: "merchant";
17681
+ }>;
17682
+ observedAt: z$1.ZodISODateTime;
17683
+ sourceRevision: z$1.ZodString;
17684
+ requirementDigest: z$1.ZodString;
17685
+ }, z$1.core.$strict>>;
14399
17686
  reason: z$1.ZodNullable<z$1.ZodEnum<{
14400
17687
  not_entitled: "not_entitled";
14401
17688
  insufficient_balance: "insufficient_balance";
@@ -14516,8 +17803,8 @@ declare const apiOperations: {
14516
17803
  trialing: "trialing";
14517
17804
  past_due: "past_due";
14518
17805
  paused: "paused";
14519
- ended: "ended";
14520
17806
  trial: "trial";
17807
+ ended: "ended";
14521
17808
  }>;
14522
17809
  cancelAtPeriodEnd: z$1.ZodBoolean;
14523
17810
  accessEnabled: z$1.ZodBoolean;
@@ -14698,10 +17985,10 @@ declare const apiOperations: {
14698
17985
  reason: z$1.ZodEnum<{
14699
17986
  topup: "topup";
14700
17987
  seat: "seat";
17988
+ trial: "trial";
14701
17989
  membership: "membership";
14702
17990
  manual: "manual";
14703
17991
  rollover: "rollover";
14704
- trial: "trial";
14705
17992
  upgrade_carry: "upgrade_carry";
14706
17993
  }>;
14707
17994
  quantity: z$1.ZodString;
@@ -16337,8 +19624,8 @@ declare const apiOperations: {
16337
19624
  "": "";
16338
19625
  active: "active";
16339
19626
  past_due: "past_due";
16340
- ended: "ended";
16341
19627
  trial: "trial";
19628
+ ended: "ended";
16342
19629
  }>>;
16343
19630
  createdFrom: z$1.ZodDefault<z$1.ZodUnion<readonly [z$1.ZodISODateTime, z$1.ZodLiteral<"">]>>;
16344
19631
  createdUntil: z$1.ZodDefault<z$1.ZodUnion<readonly [z$1.ZodISODateTime, z$1.ZodLiteral<"">]>>;
@@ -16596,10 +19883,10 @@ declare const apiOperations: {
16596
19883
  couponId: z$1.ZodUUID;
16597
19884
  status: z$1.ZodEnum<{
16598
19885
  expired: "expired";
19886
+ revoked: "revoked";
16599
19887
  issued: "issued";
16600
19888
  reserved: "reserved";
16601
19889
  redeemed: "redeemed";
16602
- revoked: "revoked";
16603
19890
  }>;
16604
19891
  issuedAt: z$1.ZodISODateTime;
16605
19892
  expiresAt: z$1.ZodISODateTime;
@@ -16705,10 +19992,10 @@ declare const apiOperations: {
16705
19992
  couponId: z$1.ZodUUID;
16706
19993
  status: z$1.ZodEnum<{
16707
19994
  expired: "expired";
19995
+ revoked: "revoked";
16708
19996
  issued: "issued";
16709
19997
  reserved: "reserved";
16710
19998
  redeemed: "redeemed";
16711
- revoked: "revoked";
16712
19999
  }>;
16713
20000
  issuedAt: z$1.ZodISODateTime;
16714
20001
  expiresAt: z$1.ZodISODateTime;
@@ -16783,6 +20070,113 @@ declare const apiOperations: {
16783
20070
  }, z$1.core.$strict>>;
16784
20071
  }, z$1.core.$strict>;
16785
20072
  };
20073
+ readonly grantModelBenefit: {
20074
+ readonly method: "POST";
20075
+ readonly path: "benefits/model-usage/grant";
20076
+ readonly permission: "offers:grant";
20077
+ readonly audience: "server";
20078
+ readonly request: z$1.ZodObject<{
20079
+ customerId: z$1.ZodString;
20080
+ modelId: z$1.ZodString;
20081
+ quantity: z$1.ZodNumber;
20082
+ validForDays: z$1.ZodNumber;
20083
+ requestId: z$1.ZodUUID;
20084
+ }, z$1.core.$strict>;
20085
+ readonly response: z$1.ZodObject<{
20086
+ requestId: z$1.ZodUUID;
20087
+ scope: z$1.ZodObject<{
20088
+ projectId: z$1.ZodString;
20089
+ environment: z$1.ZodEnum<{
20090
+ sandbox: "sandbox";
20091
+ live: "live";
20092
+ }>;
20093
+ }, z$1.core.$strict>;
20094
+ operation: z$1.ZodObject<{
20095
+ operationId: z$1.ZodUUID;
20096
+ customerId: z$1.ZodUUID;
20097
+ taskId: z$1.ZodUUID;
20098
+ status: z$1.ZodEnum<{
20099
+ pending: "pending";
20100
+ applied: "applied";
20101
+ rejected: "rejected";
20102
+ }>;
20103
+ terms: z$1.ZodObject<{
20104
+ operationId: z$1.ZodUUID;
20105
+ customerId: z$1.ZodUUID;
20106
+ externalUserId: z$1.ZodString;
20107
+ modelId: z$1.ZodString;
20108
+ quantity: z$1.ZodNumber;
20109
+ validForDays: z$1.ZodNumber;
20110
+ }, z$1.core.$strict>;
20111
+ receipt: z$1.ZodNullable<z$1.ZodObject<{
20112
+ operationId: z$1.ZodUUID;
20113
+ customerId: z$1.ZodUUID;
20114
+ status: z$1.ZodLiteral<"applied">;
20115
+ voucherId: z$1.ZodUUID;
20116
+ modelId: z$1.ZodString;
20117
+ quantity: z$1.ZodNumber;
20118
+ issuedAt: z$1.ZodISODateTime;
20119
+ expiresAt: z$1.ZodISODateTime;
20120
+ }, z$1.core.$strict>>;
20121
+ failureCode: z$1.ZodNullable<z$1.ZodEnum<{
20122
+ INVALID_REQUEST: "INVALID_REQUEST";
20123
+ CONNECTION_CHANGED: "CONNECTION_CHANGED";
20124
+ }>>;
20125
+ }, z$1.core.$strict>;
20126
+ }, z$1.core.$strict>;
20127
+ };
20128
+ readonly readModelBenefit: {
20129
+ readonly method: "POST";
20130
+ readonly path: "benefits/model-usage/read";
20131
+ readonly permission: "offers:grant";
20132
+ readonly audience: "server";
20133
+ readonly request: z$1.ZodObject<{
20134
+ customerId: z$1.ZodString;
20135
+ operationId: z$1.ZodUUID;
20136
+ }, z$1.core.$strict>;
20137
+ readonly response: z$1.ZodObject<{
20138
+ requestId: z$1.ZodUUID;
20139
+ scope: z$1.ZodObject<{
20140
+ projectId: z$1.ZodString;
20141
+ environment: z$1.ZodEnum<{
20142
+ sandbox: "sandbox";
20143
+ live: "live";
20144
+ }>;
20145
+ }, z$1.core.$strict>;
20146
+ operation: z$1.ZodObject<{
20147
+ operationId: z$1.ZodUUID;
20148
+ customerId: z$1.ZodUUID;
20149
+ taskId: z$1.ZodUUID;
20150
+ status: z$1.ZodEnum<{
20151
+ pending: "pending";
20152
+ applied: "applied";
20153
+ rejected: "rejected";
20154
+ }>;
20155
+ terms: z$1.ZodObject<{
20156
+ operationId: z$1.ZodUUID;
20157
+ customerId: z$1.ZodUUID;
20158
+ externalUserId: z$1.ZodString;
20159
+ modelId: z$1.ZodString;
20160
+ quantity: z$1.ZodNumber;
20161
+ validForDays: z$1.ZodNumber;
20162
+ }, z$1.core.$strict>;
20163
+ receipt: z$1.ZodNullable<z$1.ZodObject<{
20164
+ operationId: z$1.ZodUUID;
20165
+ customerId: z$1.ZodUUID;
20166
+ status: z$1.ZodLiteral<"applied">;
20167
+ voucherId: z$1.ZodUUID;
20168
+ modelId: z$1.ZodString;
20169
+ quantity: z$1.ZodNumber;
20170
+ issuedAt: z$1.ZodISODateTime;
20171
+ expiresAt: z$1.ZodISODateTime;
20172
+ }, z$1.core.$strict>>;
20173
+ failureCode: z$1.ZodNullable<z$1.ZodEnum<{
20174
+ INVALID_REQUEST: "INVALID_REQUEST";
20175
+ CONNECTION_CHANGED: "CONNECTION_CHANGED";
20176
+ }>>;
20177
+ }, z$1.core.$strict>;
20178
+ }, z$1.core.$strict>;
20179
+ };
16786
20180
  readonly grantOffer: {
16787
20181
  readonly method: "POST";
16788
20182
  readonly path: "offers/grant";
@@ -16812,10 +20206,10 @@ declare const apiOperations: {
16812
20206
  couponId: z$1.ZodUUID;
16813
20207
  status: z$1.ZodEnum<{
16814
20208
  expired: "expired";
20209
+ revoked: "revoked";
16815
20210
  issued: "issued";
16816
20211
  reserved: "reserved";
16817
20212
  redeemed: "redeemed";
16818
- revoked: "revoked";
16819
20213
  }>;
16820
20214
  issuedAt: z$1.ZodISODateTime;
16821
20215
  expiresAt: z$1.ZodISODateTime;
@@ -17040,6 +20434,8 @@ interface FoundationApi {
17040
20434
  requestId?: string;
17041
20435
  couponContentDigest?: string;
17042
20436
  }): Promise<ApiOutput<"grantOffer">>;
20437
+ grantModelBenefit(input: ApiInput<"grantModelBenefit">): Promise<ApiOutput<"grantModelBenefit">>;
20438
+ readModelBenefit(input: ApiInput<"readModelBenefit">): Promise<ApiOutput<"readModelBenefit">>;
17043
20439
  }
17044
20440
 
17045
20441
  export type { ApiInput as A, FoundationApi as F, InvoiceModeParams as I, OfferingItem as O, InvoiceModeParamsInput as a };