@openmeter/client 1.0.0-beta-c39f92326e5b → 1.0.0-beta-75dd3b9ccc98

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.
@@ -338,6 +338,18 @@ export declare const subscriptionEditTimingEnum: z.ZodEnum<{
338
338
  immediate: "immediate";
339
339
  next_billing_cycle: "next_billing_cycle";
340
340
  }>;
341
+ export declare const subscriptionEditRemoveItem: z.ZodObject<{
342
+ type: z.ZodLiteral<"remove_item">;
343
+ phaseKey: z.ZodString;
344
+ itemKey: z.ZodString;
345
+ }, z.core.$strip>;
346
+ export declare const subscriptionRemovePhaseShifting: z.ZodEnum<{
347
+ next: "next";
348
+ prev: "prev";
349
+ }>;
350
+ export declare const subscriptionEditUnscheduleEdit: z.ZodObject<{
351
+ type: z.ZodLiteral<"unschedule_edit">;
352
+ }, z.core.$strip>;
341
353
  export declare const appType: z.ZodEnum<{
342
354
  external_invoicing: "external_invoicing";
343
355
  sandbox: "sandbox";
@@ -542,6 +554,14 @@ export declare const featureUnitCostType: z.ZodEnum<{
542
554
  llm: "llm";
543
555
  manual: "manual";
544
556
  }>;
557
+ export declare const subscriptionEditOperationType: z.ZodEnum<{
558
+ add_item: "add_item";
559
+ add_phase: "add_phase";
560
+ remove_item: "remove_item";
561
+ remove_phase: "remove_phase";
562
+ stretch_phase: "stretch_phase";
563
+ unschedule_edit: "unschedule_edit";
564
+ }>;
545
565
  export declare const systemAccountAccessToken: z.ZodObject<{
546
566
  type: z.ZodLiteral<"http">;
547
567
  scheme: z.ZodLiteral<"Bearer">;
@@ -1328,6 +1348,18 @@ export declare const rateCardMeteredEntitlement: z.ZodObject<{
1328
1348
  limit: z.ZodOptional<z.ZodNumber>;
1329
1349
  usagePeriod: z.ZodOptional<z.ZodString>;
1330
1350
  }, z.core.$strip>;
1351
+ export declare const subscriptionPhaseCreate: z.ZodObject<{
1352
+ key: z.ZodString;
1353
+ name: z.ZodString;
1354
+ description: z.ZodOptional<z.ZodString>;
1355
+ startAfter: z.ZodNullable<z.ZodString>;
1356
+ duration: z.ZodOptional<z.ZodString>;
1357
+ }, z.core.$strip>;
1358
+ export declare const subscriptionEditStretchPhase: z.ZodObject<{
1359
+ type: z.ZodLiteral<"stretch_phase">;
1360
+ phaseKey: z.ZodString;
1361
+ extendBy: z.ZodString;
1362
+ }, z.core.$strip>;
1331
1363
  export declare const recurringPeriod: z.ZodObject<{
1332
1364
  anchor: z.ZodDate;
1333
1365
  interval: z.ZodString;
@@ -1531,6 +1563,14 @@ export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
1531
1563
  immediate: "immediate";
1532
1564
  next_billing_cycle: "next_billing_cycle";
1533
1565
  }>, z.ZodDate]>;
1566
+ export declare const subscriptionEditRemovePhase: z.ZodObject<{
1567
+ type: z.ZodLiteral<"remove_phase">;
1568
+ phaseKey: z.ZodString;
1569
+ shift: z.ZodEnum<{
1570
+ next: "next";
1571
+ prev: "prev";
1572
+ }>;
1573
+ }, z.core.$strip>;
1534
1574
  export declare const taxCodeAppMapping: z.ZodObject<{
1535
1575
  appType: z.ZodEnum<{
1536
1576
  external_invoicing: "external_invoicing";
@@ -2967,6 +3007,16 @@ export declare const rateCardEntitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
2967
3007
  }, z.core.$strip>, z.ZodObject<{
2968
3008
  type: z.ZodLiteral<"boolean">;
2969
3009
  }, z.core.$strip>], "type">;
3010
+ export declare const subscriptionEditAddPhase: z.ZodObject<{
3011
+ type: z.ZodLiteral<"add_phase">;
3012
+ phase: z.ZodObject<{
3013
+ key: z.ZodString;
3014
+ name: z.ZodString;
3015
+ description: z.ZodOptional<z.ZodString>;
3016
+ startAfter: z.ZodNullable<z.ZodString>;
3017
+ duration: z.ZodOptional<z.ZodString>;
3018
+ }, z.core.$strip>;
3019
+ }, z.core.$strip>;
2970
3020
  export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
2971
3021
  type: z.ZodLiteral<"anchored">;
2972
3022
  recurringPeriod: z.ZodObject<{
@@ -6922,6 +6972,100 @@ export declare const subscriptionItem: z.ZodObject<{
6922
6972
  }, z.core.$strip>], "type">>;
6923
6973
  }, z.core.$strip>;
6924
6974
  }, z.core.$strip>;
6975
+ export declare const subscriptionEditAddItem: z.ZodObject<{
6976
+ type: z.ZodLiteral<"add_item">;
6977
+ phaseKey: z.ZodString;
6978
+ rateCard: z.ZodObject<{
6979
+ name: z.ZodString;
6980
+ description: z.ZodOptional<z.ZodString>;
6981
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6982
+ key: z.ZodString;
6983
+ feature: z.ZodOptional<z.ZodObject<{
6984
+ id: z.ZodString;
6985
+ }, z.core.$strip>>;
6986
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
6987
+ billingCadence: z.ZodOptional<z.ZodString>;
6988
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
6989
+ type: z.ZodLiteral<"free">;
6990
+ }, z.core.$strip>, z.ZodObject<{
6991
+ type: z.ZodLiteral<"flat">;
6992
+ amount: z.ZodString;
6993
+ }, z.core.$strip>, z.ZodObject<{
6994
+ type: z.ZodLiteral<"unit">;
6995
+ amount: z.ZodString;
6996
+ }, z.core.$strip>, z.ZodObject<{
6997
+ type: z.ZodLiteral<"graduated">;
6998
+ tiers: z.ZodArray<z.ZodObject<{
6999
+ upToAmount: z.ZodOptional<z.ZodString>;
7000
+ flatPrice: z.ZodOptional<z.ZodObject<{
7001
+ type: z.ZodLiteral<"flat">;
7002
+ amount: z.ZodString;
7003
+ }, z.core.$strip>>;
7004
+ unitPrice: z.ZodOptional<z.ZodObject<{
7005
+ type: z.ZodLiteral<"unit">;
7006
+ amount: z.ZodString;
7007
+ }, z.core.$strip>>;
7008
+ }, z.core.$strip>>;
7009
+ }, z.core.$strip>, z.ZodObject<{
7010
+ type: z.ZodLiteral<"volume">;
7011
+ tiers: z.ZodArray<z.ZodObject<{
7012
+ upToAmount: z.ZodOptional<z.ZodString>;
7013
+ flatPrice: z.ZodOptional<z.ZodObject<{
7014
+ type: z.ZodLiteral<"flat">;
7015
+ amount: z.ZodString;
7016
+ }, z.core.$strip>>;
7017
+ unitPrice: z.ZodOptional<z.ZodObject<{
7018
+ type: z.ZodLiteral<"unit">;
7019
+ amount: z.ZodString;
7020
+ }, z.core.$strip>>;
7021
+ }, z.core.$strip>>;
7022
+ }, z.core.$strip>], "type">;
7023
+ unitConfig: z.ZodOptional<z.ZodObject<{
7024
+ operation: z.ZodEnum<{
7025
+ divide: "divide";
7026
+ multiply: "multiply";
7027
+ }>;
7028
+ conversionFactor: z.ZodString;
7029
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
7030
+ ceiling: "ceiling";
7031
+ floor: "floor";
7032
+ half_up: "half_up";
7033
+ none: "none";
7034
+ }>>>;
7035
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7036
+ displayUnit: z.ZodOptional<z.ZodString>;
7037
+ }, z.core.$strip>>;
7038
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
7039
+ commitments: z.ZodOptional<z.ZodObject<{
7040
+ minimumAmount: z.ZodOptional<z.ZodString>;
7041
+ maximumAmount: z.ZodOptional<z.ZodString>;
7042
+ }, z.core.$strip>>;
7043
+ discounts: z.ZodOptional<z.ZodObject<{
7044
+ percentage: z.ZodOptional<z.ZodNumber>;
7045
+ usage: z.ZodOptional<z.ZodString>;
7046
+ }, z.core.$strip>>;
7047
+ taxConfig: z.ZodOptional<z.ZodObject<{
7048
+ behavior: z.ZodOptional<z.ZodEnum<{
7049
+ exclusive: "exclusive";
7050
+ inclusive: "inclusive";
7051
+ }>>;
7052
+ code: z.ZodObject<{
7053
+ id: z.ZodString;
7054
+ }, z.core.$strip>;
7055
+ }, z.core.$strip>>;
7056
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
7057
+ type: z.ZodLiteral<"metered">;
7058
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7059
+ limit: z.ZodOptional<z.ZodNumber>;
7060
+ usagePeriod: z.ZodOptional<z.ZodString>;
7061
+ }, z.core.$strip>, z.ZodObject<{
7062
+ type: z.ZodLiteral<"static">;
7063
+ config: z.ZodUnknown;
7064
+ }, z.core.$strip>, z.ZodObject<{
7065
+ type: z.ZodLiteral<"boolean">;
7066
+ }, z.core.$strip>], "type">>;
7067
+ }, z.core.$strip>;
7068
+ }, z.core.$strip>;
6925
7069
  export declare const subscriptionAddonRateCard: z.ZodObject<{
6926
7070
  rateCard: z.ZodObject<{
6927
7071
  name: z.ZodString;
@@ -8471,6 +8615,126 @@ export declare const subscriptionPhase: z.ZodObject<{
8471
8615
  }, z.core.$strip>;
8472
8616
  }, z.core.$strip>>;
8473
8617
  }, z.core.$strip>;
8618
+ export declare const subscriptionEditOperation: z.ZodDiscriminatedUnion<[z.ZodObject<{
8619
+ type: z.ZodLiteral<"add_item">;
8620
+ phaseKey: z.ZodString;
8621
+ rateCard: z.ZodObject<{
8622
+ name: z.ZodString;
8623
+ description: z.ZodOptional<z.ZodString>;
8624
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8625
+ key: z.ZodString;
8626
+ feature: z.ZodOptional<z.ZodObject<{
8627
+ id: z.ZodString;
8628
+ }, z.core.$strip>>;
8629
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
8630
+ billingCadence: z.ZodOptional<z.ZodString>;
8631
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
8632
+ type: z.ZodLiteral<"free">;
8633
+ }, z.core.$strip>, z.ZodObject<{
8634
+ type: z.ZodLiteral<"flat">;
8635
+ amount: z.ZodString;
8636
+ }, z.core.$strip>, z.ZodObject<{
8637
+ type: z.ZodLiteral<"unit">;
8638
+ amount: z.ZodString;
8639
+ }, z.core.$strip>, z.ZodObject<{
8640
+ type: z.ZodLiteral<"graduated">;
8641
+ tiers: z.ZodArray<z.ZodObject<{
8642
+ upToAmount: z.ZodOptional<z.ZodString>;
8643
+ flatPrice: z.ZodOptional<z.ZodObject<{
8644
+ type: z.ZodLiteral<"flat">;
8645
+ amount: z.ZodString;
8646
+ }, z.core.$strip>>;
8647
+ unitPrice: z.ZodOptional<z.ZodObject<{
8648
+ type: z.ZodLiteral<"unit">;
8649
+ amount: z.ZodString;
8650
+ }, z.core.$strip>>;
8651
+ }, z.core.$strip>>;
8652
+ }, z.core.$strip>, z.ZodObject<{
8653
+ type: z.ZodLiteral<"volume">;
8654
+ tiers: z.ZodArray<z.ZodObject<{
8655
+ upToAmount: z.ZodOptional<z.ZodString>;
8656
+ flatPrice: z.ZodOptional<z.ZodObject<{
8657
+ type: z.ZodLiteral<"flat">;
8658
+ amount: z.ZodString;
8659
+ }, z.core.$strip>>;
8660
+ unitPrice: z.ZodOptional<z.ZodObject<{
8661
+ type: z.ZodLiteral<"unit">;
8662
+ amount: z.ZodString;
8663
+ }, z.core.$strip>>;
8664
+ }, z.core.$strip>>;
8665
+ }, z.core.$strip>], "type">;
8666
+ unitConfig: z.ZodOptional<z.ZodObject<{
8667
+ operation: z.ZodEnum<{
8668
+ divide: "divide";
8669
+ multiply: "multiply";
8670
+ }>;
8671
+ conversionFactor: z.ZodString;
8672
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
8673
+ ceiling: "ceiling";
8674
+ floor: "floor";
8675
+ half_up: "half_up";
8676
+ none: "none";
8677
+ }>>>;
8678
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8679
+ displayUnit: z.ZodOptional<z.ZodString>;
8680
+ }, z.core.$strip>>;
8681
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
8682
+ commitments: z.ZodOptional<z.ZodObject<{
8683
+ minimumAmount: z.ZodOptional<z.ZodString>;
8684
+ maximumAmount: z.ZodOptional<z.ZodString>;
8685
+ }, z.core.$strip>>;
8686
+ discounts: z.ZodOptional<z.ZodObject<{
8687
+ percentage: z.ZodOptional<z.ZodNumber>;
8688
+ usage: z.ZodOptional<z.ZodString>;
8689
+ }, z.core.$strip>>;
8690
+ taxConfig: z.ZodOptional<z.ZodObject<{
8691
+ behavior: z.ZodOptional<z.ZodEnum<{
8692
+ exclusive: "exclusive";
8693
+ inclusive: "inclusive";
8694
+ }>>;
8695
+ code: z.ZodObject<{
8696
+ id: z.ZodString;
8697
+ }, z.core.$strip>;
8698
+ }, z.core.$strip>>;
8699
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
8700
+ type: z.ZodLiteral<"metered">;
8701
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
8702
+ limit: z.ZodOptional<z.ZodNumber>;
8703
+ usagePeriod: z.ZodOptional<z.ZodString>;
8704
+ }, z.core.$strip>, z.ZodObject<{
8705
+ type: z.ZodLiteral<"static">;
8706
+ config: z.ZodUnknown;
8707
+ }, z.core.$strip>, z.ZodObject<{
8708
+ type: z.ZodLiteral<"boolean">;
8709
+ }, z.core.$strip>], "type">>;
8710
+ }, z.core.$strip>;
8711
+ }, z.core.$strip>, z.ZodObject<{
8712
+ type: z.ZodLiteral<"remove_item">;
8713
+ phaseKey: z.ZodString;
8714
+ itemKey: z.ZodString;
8715
+ }, z.core.$strip>, z.ZodObject<{
8716
+ type: z.ZodLiteral<"add_phase">;
8717
+ phase: z.ZodObject<{
8718
+ key: z.ZodString;
8719
+ name: z.ZodString;
8720
+ description: z.ZodOptional<z.ZodString>;
8721
+ startAfter: z.ZodNullable<z.ZodString>;
8722
+ duration: z.ZodOptional<z.ZodString>;
8723
+ }, z.core.$strip>;
8724
+ }, z.core.$strip>, z.ZodObject<{
8725
+ type: z.ZodLiteral<"remove_phase">;
8726
+ phaseKey: z.ZodString;
8727
+ shift: z.ZodEnum<{
8728
+ next: "next";
8729
+ prev: "prev";
8730
+ }>;
8731
+ }, z.core.$strip>, z.ZodObject<{
8732
+ type: z.ZodLiteral<"stretch_phase">;
8733
+ phaseKey: z.ZodString;
8734
+ extendBy: z.ZodString;
8735
+ }, z.core.$strip>, z.ZodObject<{
8736
+ type: z.ZodLiteral<"unschedule_edit">;
8737
+ }, z.core.$strip>], "type">;
8474
8738
  export declare const subscriptionAddon: z.ZodObject<{
8475
8739
  id: z.ZodString;
8476
8740
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -9580,6 +9844,132 @@ export declare const subscription: z.ZodObject<{
9580
9844
  }, z.core.$strip>>;
9581
9845
  }, z.core.$strip>>;
9582
9846
  }, z.core.$strip>;
9847
+ export declare const subscriptionEdit: z.ZodObject<{
9848
+ customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9849
+ type: z.ZodLiteral<"add_item">;
9850
+ phaseKey: z.ZodString;
9851
+ rateCard: z.ZodObject<{
9852
+ name: z.ZodString;
9853
+ description: z.ZodOptional<z.ZodString>;
9854
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9855
+ key: z.ZodString;
9856
+ feature: z.ZodOptional<z.ZodObject<{
9857
+ id: z.ZodString;
9858
+ }, z.core.$strip>>;
9859
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
9860
+ billingCadence: z.ZodOptional<z.ZodString>;
9861
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
9862
+ type: z.ZodLiteral<"free">;
9863
+ }, z.core.$strip>, z.ZodObject<{
9864
+ type: z.ZodLiteral<"flat">;
9865
+ amount: z.ZodString;
9866
+ }, z.core.$strip>, z.ZodObject<{
9867
+ type: z.ZodLiteral<"unit">;
9868
+ amount: z.ZodString;
9869
+ }, z.core.$strip>, z.ZodObject<{
9870
+ type: z.ZodLiteral<"graduated">;
9871
+ tiers: z.ZodArray<z.ZodObject<{
9872
+ upToAmount: z.ZodOptional<z.ZodString>;
9873
+ flatPrice: z.ZodOptional<z.ZodObject<{
9874
+ type: z.ZodLiteral<"flat">;
9875
+ amount: z.ZodString;
9876
+ }, z.core.$strip>>;
9877
+ unitPrice: z.ZodOptional<z.ZodObject<{
9878
+ type: z.ZodLiteral<"unit">;
9879
+ amount: z.ZodString;
9880
+ }, z.core.$strip>>;
9881
+ }, z.core.$strip>>;
9882
+ }, z.core.$strip>, z.ZodObject<{
9883
+ type: z.ZodLiteral<"volume">;
9884
+ tiers: z.ZodArray<z.ZodObject<{
9885
+ upToAmount: z.ZodOptional<z.ZodString>;
9886
+ flatPrice: z.ZodOptional<z.ZodObject<{
9887
+ type: z.ZodLiteral<"flat">;
9888
+ amount: z.ZodString;
9889
+ }, z.core.$strip>>;
9890
+ unitPrice: z.ZodOptional<z.ZodObject<{
9891
+ type: z.ZodLiteral<"unit">;
9892
+ amount: z.ZodString;
9893
+ }, z.core.$strip>>;
9894
+ }, z.core.$strip>>;
9895
+ }, z.core.$strip>], "type">;
9896
+ unitConfig: z.ZodOptional<z.ZodObject<{
9897
+ operation: z.ZodEnum<{
9898
+ divide: "divide";
9899
+ multiply: "multiply";
9900
+ }>;
9901
+ conversionFactor: z.ZodString;
9902
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
9903
+ ceiling: "ceiling";
9904
+ floor: "floor";
9905
+ half_up: "half_up";
9906
+ none: "none";
9907
+ }>>>;
9908
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
9909
+ displayUnit: z.ZodOptional<z.ZodString>;
9910
+ }, z.core.$strip>>;
9911
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
9912
+ commitments: z.ZodOptional<z.ZodObject<{
9913
+ minimumAmount: z.ZodOptional<z.ZodString>;
9914
+ maximumAmount: z.ZodOptional<z.ZodString>;
9915
+ }, z.core.$strip>>;
9916
+ discounts: z.ZodOptional<z.ZodObject<{
9917
+ percentage: z.ZodOptional<z.ZodNumber>;
9918
+ usage: z.ZodOptional<z.ZodString>;
9919
+ }, z.core.$strip>>;
9920
+ taxConfig: z.ZodOptional<z.ZodObject<{
9921
+ behavior: z.ZodOptional<z.ZodEnum<{
9922
+ exclusive: "exclusive";
9923
+ inclusive: "inclusive";
9924
+ }>>;
9925
+ code: z.ZodObject<{
9926
+ id: z.ZodString;
9927
+ }, z.core.$strip>;
9928
+ }, z.core.$strip>>;
9929
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9930
+ type: z.ZodLiteral<"metered">;
9931
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
9932
+ limit: z.ZodOptional<z.ZodNumber>;
9933
+ usagePeriod: z.ZodOptional<z.ZodString>;
9934
+ }, z.core.$strip>, z.ZodObject<{
9935
+ type: z.ZodLiteral<"static">;
9936
+ config: z.ZodUnknown;
9937
+ }, z.core.$strip>, z.ZodObject<{
9938
+ type: z.ZodLiteral<"boolean">;
9939
+ }, z.core.$strip>], "type">>;
9940
+ }, z.core.$strip>;
9941
+ }, z.core.$strip>, z.ZodObject<{
9942
+ type: z.ZodLiteral<"remove_item">;
9943
+ phaseKey: z.ZodString;
9944
+ itemKey: z.ZodString;
9945
+ }, z.core.$strip>, z.ZodObject<{
9946
+ type: z.ZodLiteral<"add_phase">;
9947
+ phase: z.ZodObject<{
9948
+ key: z.ZodString;
9949
+ name: z.ZodString;
9950
+ description: z.ZodOptional<z.ZodString>;
9951
+ startAfter: z.ZodNullable<z.ZodString>;
9952
+ duration: z.ZodOptional<z.ZodString>;
9953
+ }, z.core.$strip>;
9954
+ }, z.core.$strip>, z.ZodObject<{
9955
+ type: z.ZodLiteral<"remove_phase">;
9956
+ phaseKey: z.ZodString;
9957
+ shift: z.ZodEnum<{
9958
+ next: "next";
9959
+ prev: "prev";
9960
+ }>;
9961
+ }, z.core.$strip>, z.ZodObject<{
9962
+ type: z.ZodLiteral<"stretch_phase">;
9963
+ phaseKey: z.ZodString;
9964
+ extendBy: z.ZodString;
9965
+ }, z.core.$strip>, z.ZodObject<{
9966
+ type: z.ZodLiteral<"unschedule_edit">;
9967
+ }, z.core.$strip>], "type">>;
9968
+ timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
9969
+ immediate: "immediate";
9970
+ next_billing_cycle: "next_billing_cycle";
9971
+ }>, z.ZodDate]>>>;
9972
+ }, z.core.$strip>;
9583
9973
  export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
9584
9974
  data: z.ZodArray<z.ZodObject<{
9585
9975
  id: z.ZodString;
@@ -21159,6 +21549,293 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
21159
21549
  }, z.core.$strip>>;
21160
21550
  }, z.core.$strip>;
21161
21551
  }, z.core.$strip>;
21552
+ export declare const editSubscriptionPathParams: z.ZodObject<{
21553
+ subscriptionId: z.ZodString;
21554
+ }, z.core.$strip>;
21555
+ export declare const editSubscriptionBody: z.ZodObject<{
21556
+ customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
21557
+ type: z.ZodLiteral<"add_item">;
21558
+ phaseKey: z.ZodString;
21559
+ rateCard: z.ZodObject<{
21560
+ name: z.ZodString;
21561
+ description: z.ZodOptional<z.ZodString>;
21562
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21563
+ key: z.ZodString;
21564
+ feature: z.ZodOptional<z.ZodObject<{
21565
+ id: z.ZodString;
21566
+ }, z.core.$strip>>;
21567
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
21568
+ billingCadence: z.ZodOptional<z.ZodString>;
21569
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
21570
+ type: z.ZodLiteral<"free">;
21571
+ }, z.core.$strip>, z.ZodObject<{
21572
+ type: z.ZodLiteral<"flat">;
21573
+ amount: z.ZodString;
21574
+ }, z.core.$strip>, z.ZodObject<{
21575
+ type: z.ZodLiteral<"unit">;
21576
+ amount: z.ZodString;
21577
+ }, z.core.$strip>, z.ZodObject<{
21578
+ type: z.ZodLiteral<"graduated">;
21579
+ tiers: z.ZodArray<z.ZodObject<{
21580
+ upToAmount: z.ZodOptional<z.ZodString>;
21581
+ flatPrice: z.ZodOptional<z.ZodObject<{
21582
+ type: z.ZodLiteral<"flat">;
21583
+ amount: z.ZodString;
21584
+ }, z.core.$strip>>;
21585
+ unitPrice: z.ZodOptional<z.ZodObject<{
21586
+ type: z.ZodLiteral<"unit">;
21587
+ amount: z.ZodString;
21588
+ }, z.core.$strip>>;
21589
+ }, z.core.$strip>>;
21590
+ }, z.core.$strip>, z.ZodObject<{
21591
+ type: z.ZodLiteral<"volume">;
21592
+ tiers: z.ZodArray<z.ZodObject<{
21593
+ upToAmount: z.ZodOptional<z.ZodString>;
21594
+ flatPrice: z.ZodOptional<z.ZodObject<{
21595
+ type: z.ZodLiteral<"flat">;
21596
+ amount: z.ZodString;
21597
+ }, z.core.$strip>>;
21598
+ unitPrice: z.ZodOptional<z.ZodObject<{
21599
+ type: z.ZodLiteral<"unit">;
21600
+ amount: z.ZodString;
21601
+ }, z.core.$strip>>;
21602
+ }, z.core.$strip>>;
21603
+ }, z.core.$strip>], "type">;
21604
+ unitConfig: z.ZodOptional<z.ZodObject<{
21605
+ operation: z.ZodEnum<{
21606
+ divide: "divide";
21607
+ multiply: "multiply";
21608
+ }>;
21609
+ conversionFactor: z.ZodString;
21610
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
21611
+ ceiling: "ceiling";
21612
+ floor: "floor";
21613
+ half_up: "half_up";
21614
+ none: "none";
21615
+ }>>>;
21616
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
21617
+ displayUnit: z.ZodOptional<z.ZodString>;
21618
+ }, z.core.$strip>>;
21619
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
21620
+ commitments: z.ZodOptional<z.ZodObject<{
21621
+ minimumAmount: z.ZodOptional<z.ZodString>;
21622
+ maximumAmount: z.ZodOptional<z.ZodString>;
21623
+ }, z.core.$strip>>;
21624
+ discounts: z.ZodOptional<z.ZodObject<{
21625
+ percentage: z.ZodOptional<z.ZodNumber>;
21626
+ usage: z.ZodOptional<z.ZodString>;
21627
+ }, z.core.$strip>>;
21628
+ taxConfig: z.ZodOptional<z.ZodObject<{
21629
+ behavior: z.ZodOptional<z.ZodEnum<{
21630
+ exclusive: "exclusive";
21631
+ inclusive: "inclusive";
21632
+ }>>;
21633
+ code: z.ZodObject<{
21634
+ id: z.ZodString;
21635
+ }, z.core.$strip>;
21636
+ }, z.core.$strip>>;
21637
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
21638
+ type: z.ZodLiteral<"metered">;
21639
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21640
+ limit: z.ZodOptional<z.ZodNumber>;
21641
+ usagePeriod: z.ZodOptional<z.ZodString>;
21642
+ }, z.core.$strip>, z.ZodObject<{
21643
+ type: z.ZodLiteral<"static">;
21644
+ config: z.ZodUnknown;
21645
+ }, z.core.$strip>, z.ZodObject<{
21646
+ type: z.ZodLiteral<"boolean">;
21647
+ }, z.core.$strip>], "type">>;
21648
+ }, z.core.$strip>;
21649
+ }, z.core.$strip>, z.ZodObject<{
21650
+ type: z.ZodLiteral<"remove_item">;
21651
+ phaseKey: z.ZodString;
21652
+ itemKey: z.ZodString;
21653
+ }, z.core.$strip>, z.ZodObject<{
21654
+ type: z.ZodLiteral<"add_phase">;
21655
+ phase: z.ZodObject<{
21656
+ key: z.ZodString;
21657
+ name: z.ZodString;
21658
+ description: z.ZodOptional<z.ZodString>;
21659
+ startAfter: z.ZodNullable<z.ZodString>;
21660
+ duration: z.ZodOptional<z.ZodString>;
21661
+ }, z.core.$strip>;
21662
+ }, z.core.$strip>, z.ZodObject<{
21663
+ type: z.ZodLiteral<"remove_phase">;
21664
+ phaseKey: z.ZodString;
21665
+ shift: z.ZodEnum<{
21666
+ next: "next";
21667
+ prev: "prev";
21668
+ }>;
21669
+ }, z.core.$strip>, z.ZodObject<{
21670
+ type: z.ZodLiteral<"stretch_phase">;
21671
+ phaseKey: z.ZodString;
21672
+ extendBy: z.ZodString;
21673
+ }, z.core.$strip>, z.ZodObject<{
21674
+ type: z.ZodLiteral<"unschedule_edit">;
21675
+ }, z.core.$strip>], "type">>;
21676
+ timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
21677
+ immediate: "immediate";
21678
+ next_billing_cycle: "next_billing_cycle";
21679
+ }>, z.ZodDate]>>>;
21680
+ }, z.core.$strip>;
21681
+ export declare const editSubscriptionResponse: z.ZodObject<{
21682
+ id: z.ZodString;
21683
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21684
+ createdAt: z.ZodDate;
21685
+ updatedAt: z.ZodDate;
21686
+ deletedAt: z.ZodOptional<z.ZodDate>;
21687
+ name: z.ZodString;
21688
+ description: z.ZodOptional<z.ZodString>;
21689
+ activeFrom: z.ZodDate;
21690
+ activeTo: z.ZodOptional<z.ZodDate>;
21691
+ customerId: z.ZodString;
21692
+ planId: z.ZodOptional<z.ZodString>;
21693
+ plan: z.ZodOptional<z.ZodObject<{
21694
+ id: z.ZodString;
21695
+ key: z.ZodString;
21696
+ version: z.ZodNumber;
21697
+ }, z.core.$strip>>;
21698
+ invoiceCurrency: z.ZodString;
21699
+ costBasisMode: z.ZodDefault<z.ZodEnum<{
21700
+ dynamic: "dynamic";
21701
+ pinned: "pinned";
21702
+ }>>;
21703
+ costBasisPins: z.ZodArray<z.ZodObject<{
21704
+ customCurrencyId: z.ZodString;
21705
+ invoiceCurrency: z.ZodString;
21706
+ costBasisId: z.ZodString;
21707
+ }, z.core.$strip>>;
21708
+ billingCadence: z.ZodString;
21709
+ proRatingConfig: z.ZodOptional<z.ZodObject<{
21710
+ enabled: z.ZodBoolean;
21711
+ mode: z.ZodEnum<{
21712
+ no_proration: "no_proration";
21713
+ prorate_prices: "prorate_prices";
21714
+ }>;
21715
+ }, z.core.$strip>>;
21716
+ billingAnchor: z.ZodDate;
21717
+ status: z.ZodEnum<{
21718
+ active: "active";
21719
+ canceled: "canceled";
21720
+ inactive: "inactive";
21721
+ scheduled: "scheduled";
21722
+ }>;
21723
+ settlementMode: z.ZodOptional<z.ZodEnum<{
21724
+ credit_only: "credit_only";
21725
+ credit_then_invoice: "credit_then_invoice";
21726
+ }>>;
21727
+ currentPeriod: z.ZodOptional<z.ZodObject<{
21728
+ from: z.ZodDate;
21729
+ to: z.ZodDate;
21730
+ }, z.core.$strip>>;
21731
+ phases: z.ZodArray<z.ZodObject<{
21732
+ id: z.ZodString;
21733
+ name: z.ZodString;
21734
+ description: z.ZodOptional<z.ZodString>;
21735
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21736
+ createdAt: z.ZodDate;
21737
+ updatedAt: z.ZodDate;
21738
+ deletedAt: z.ZodOptional<z.ZodDate>;
21739
+ key: z.ZodString;
21740
+ activeFrom: z.ZodDate;
21741
+ activeTo: z.ZodOptional<z.ZodDate>;
21742
+ items: z.ZodArray<z.ZodObject<{
21743
+ id: z.ZodString;
21744
+ activeFrom: z.ZodDate;
21745
+ activeTo: z.ZodOptional<z.ZodDate>;
21746
+ rateCard: z.ZodObject<{
21747
+ name: z.ZodString;
21748
+ description: z.ZodOptional<z.ZodString>;
21749
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21750
+ key: z.ZodString;
21751
+ feature: z.ZodOptional<z.ZodObject<{
21752
+ id: z.ZodString;
21753
+ }, z.core.$strip>>;
21754
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
21755
+ billingCadence: z.ZodOptional<z.ZodString>;
21756
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
21757
+ type: z.ZodLiteral<"free">;
21758
+ }, z.core.$strip>, z.ZodObject<{
21759
+ type: z.ZodLiteral<"flat">;
21760
+ amount: z.ZodString;
21761
+ }, z.core.$strip>, z.ZodObject<{
21762
+ type: z.ZodLiteral<"unit">;
21763
+ amount: z.ZodString;
21764
+ }, z.core.$strip>, z.ZodObject<{
21765
+ type: z.ZodLiteral<"graduated">;
21766
+ tiers: z.ZodArray<z.ZodObject<{
21767
+ upToAmount: z.ZodOptional<z.ZodString>;
21768
+ flatPrice: z.ZodOptional<z.ZodObject<{
21769
+ type: z.ZodLiteral<"flat">;
21770
+ amount: z.ZodString;
21771
+ }, z.core.$strip>>;
21772
+ unitPrice: z.ZodOptional<z.ZodObject<{
21773
+ type: z.ZodLiteral<"unit">;
21774
+ amount: z.ZodString;
21775
+ }, z.core.$strip>>;
21776
+ }, z.core.$strip>>;
21777
+ }, z.core.$strip>, z.ZodObject<{
21778
+ type: z.ZodLiteral<"volume">;
21779
+ tiers: z.ZodArray<z.ZodObject<{
21780
+ upToAmount: z.ZodOptional<z.ZodString>;
21781
+ flatPrice: z.ZodOptional<z.ZodObject<{
21782
+ type: z.ZodLiteral<"flat">;
21783
+ amount: z.ZodString;
21784
+ }, z.core.$strip>>;
21785
+ unitPrice: z.ZodOptional<z.ZodObject<{
21786
+ type: z.ZodLiteral<"unit">;
21787
+ amount: z.ZodString;
21788
+ }, z.core.$strip>>;
21789
+ }, z.core.$strip>>;
21790
+ }, z.core.$strip>], "type">;
21791
+ unitConfig: z.ZodOptional<z.ZodObject<{
21792
+ operation: z.ZodEnum<{
21793
+ divide: "divide";
21794
+ multiply: "multiply";
21795
+ }>;
21796
+ conversionFactor: z.ZodString;
21797
+ rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
21798
+ ceiling: "ceiling";
21799
+ floor: "floor";
21800
+ half_up: "half_up";
21801
+ none: "none";
21802
+ }>>>;
21803
+ precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
21804
+ displayUnit: z.ZodOptional<z.ZodString>;
21805
+ }, z.core.$strip>>;
21806
+ paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
21807
+ commitments: z.ZodOptional<z.ZodObject<{
21808
+ minimumAmount: z.ZodOptional<z.ZodString>;
21809
+ maximumAmount: z.ZodOptional<z.ZodString>;
21810
+ }, z.core.$strip>>;
21811
+ discounts: z.ZodOptional<z.ZodObject<{
21812
+ percentage: z.ZodOptional<z.ZodNumber>;
21813
+ usage: z.ZodOptional<z.ZodString>;
21814
+ }, z.core.$strip>>;
21815
+ taxConfig: z.ZodOptional<z.ZodObject<{
21816
+ behavior: z.ZodOptional<z.ZodEnum<{
21817
+ exclusive: "exclusive";
21818
+ inclusive: "inclusive";
21819
+ }>>;
21820
+ code: z.ZodObject<{
21821
+ id: z.ZodString;
21822
+ }, z.core.$strip>;
21823
+ }, z.core.$strip>>;
21824
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
21825
+ type: z.ZodLiteral<"metered">;
21826
+ isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
21827
+ limit: z.ZodOptional<z.ZodNumber>;
21828
+ usagePeriod: z.ZodOptional<z.ZodString>;
21829
+ }, z.core.$strip>, z.ZodObject<{
21830
+ type: z.ZodLiteral<"static">;
21831
+ config: z.ZodUnknown;
21832
+ }, z.core.$strip>, z.ZodObject<{
21833
+ type: z.ZodLiteral<"boolean">;
21834
+ }, z.core.$strip>], "type">>;
21835
+ }, z.core.$strip>;
21836
+ }, z.core.$strip>>;
21837
+ }, z.core.$strip>>;
21838
+ }, z.core.$strip>;
21162
21839
  export declare const createSubscriptionAddonPathParams: z.ZodObject<{
21163
21840
  subscriptionId: z.ZodString;
21164
21841
  }, z.core.$strip>;
@@ -29114,6 +29791,18 @@ export declare const subscriptionEditTimingEnumWire: z.ZodEnum<{
29114
29791
  immediate: "immediate";
29115
29792
  next_billing_cycle: "next_billing_cycle";
29116
29793
  }>;
29794
+ export declare const subscriptionEditRemoveItemWire: z.ZodObject<{
29795
+ type: z.ZodLiteral<"remove_item">;
29796
+ phase_key: z.ZodString;
29797
+ item_key: z.ZodString;
29798
+ }, z.core.$strict>;
29799
+ export declare const subscriptionRemovePhaseShiftingWire: z.ZodEnum<{
29800
+ next: "next";
29801
+ prev: "prev";
29802
+ }>;
29803
+ export declare const subscriptionEditUnscheduleEditWire: z.ZodObject<{
29804
+ type: z.ZodLiteral<"unschedule_edit">;
29805
+ }, z.core.$strict>;
29117
29806
  export declare const appTypeWire: z.ZodEnum<{
29118
29807
  external_invoicing: "external_invoicing";
29119
29808
  sandbox: "sandbox";
@@ -29318,6 +30007,14 @@ export declare const featureUnitCostTypeWire: z.ZodEnum<{
29318
30007
  llm: "llm";
29319
30008
  manual: "manual";
29320
30009
  }>;
30010
+ export declare const subscriptionEditOperationTypeWire: z.ZodEnum<{
30011
+ add_item: "add_item";
30012
+ add_phase: "add_phase";
30013
+ remove_item: "remove_item";
30014
+ remove_phase: "remove_phase";
30015
+ stretch_phase: "stretch_phase";
30016
+ unschedule_edit: "unschedule_edit";
30017
+ }>;
29321
30018
  export declare const systemAccountAccessTokenWire: z.ZodObject<{
29322
30019
  type: z.ZodLiteral<"http">;
29323
30020
  scheme: z.ZodLiteral<"Bearer">;
@@ -30104,6 +30801,18 @@ export declare const rateCardMeteredEntitlementWire: z.ZodObject<{
30104
30801
  limit: z.ZodOptional<z.ZodNumber>;
30105
30802
  usage_period: z.ZodOptional<z.ZodString>;
30106
30803
  }, z.core.$strict>;
30804
+ export declare const subscriptionPhaseCreateWire: z.ZodObject<{
30805
+ key: z.ZodString;
30806
+ name: z.ZodString;
30807
+ description: z.ZodOptional<z.ZodString>;
30808
+ start_after: z.ZodNullable<z.ZodString>;
30809
+ duration: z.ZodOptional<z.ZodString>;
30810
+ }, z.core.$strict>;
30811
+ export declare const subscriptionEditStretchPhaseWire: z.ZodObject<{
30812
+ type: z.ZodLiteral<"stretch_phase">;
30813
+ phase_key: z.ZodString;
30814
+ extend_by: z.ZodString;
30815
+ }, z.core.$strict>;
30107
30816
  export declare const recurringPeriodWire: z.ZodObject<{
30108
30817
  anchor: z.ZodString;
30109
30818
  interval: z.ZodString;
@@ -30307,6 +31016,14 @@ export declare const subscriptionEditTimingWire: z.ZodUnion<readonly [z.ZodEnum<
30307
31016
  immediate: "immediate";
30308
31017
  next_billing_cycle: "next_billing_cycle";
30309
31018
  }>, z.ZodString]>;
31019
+ export declare const subscriptionEditRemovePhaseWire: z.ZodObject<{
31020
+ type: z.ZodLiteral<"remove_phase">;
31021
+ phase_key: z.ZodString;
31022
+ shift: z.ZodEnum<{
31023
+ next: "next";
31024
+ prev: "prev";
31025
+ }>;
31026
+ }, z.core.$strict>;
30310
31027
  export declare const taxCodeAppMappingWire: z.ZodObject<{
30311
31028
  app_type: z.ZodEnum<{
30312
31029
  external_invoicing: "external_invoicing";
@@ -31743,6 +32460,16 @@ export declare const rateCardEntitlementWire: z.ZodDiscriminatedUnion<[z.ZodObje
31743
32460
  }, z.core.$strict>, z.ZodObject<{
31744
32461
  type: z.ZodLiteral<"boolean">;
31745
32462
  }, z.core.$strict>], "type">;
32463
+ export declare const subscriptionEditAddPhaseWire: z.ZodObject<{
32464
+ type: z.ZodLiteral<"add_phase">;
32465
+ phase: z.ZodObject<{
32466
+ key: z.ZodString;
32467
+ name: z.ZodString;
32468
+ description: z.ZodOptional<z.ZodString>;
32469
+ start_after: z.ZodNullable<z.ZodString>;
32470
+ duration: z.ZodOptional<z.ZodString>;
32471
+ }, z.core.$strict>;
32472
+ }, z.core.$strict>;
31746
32473
  export declare const workflowCollectionAlignmentAnchoredWire: z.ZodObject<{
31747
32474
  type: z.ZodLiteral<"anchored">;
31748
32475
  recurring_period: z.ZodObject<{
@@ -35698,6 +36425,100 @@ export declare const subscriptionItemWire: z.ZodObject<{
35698
36425
  }, z.core.$strict>], "type">>;
35699
36426
  }, z.core.$strict>;
35700
36427
  }, z.core.$strict>;
36428
+ export declare const subscriptionEditAddItemWire: z.ZodObject<{
36429
+ type: z.ZodLiteral<"add_item">;
36430
+ phase_key: z.ZodString;
36431
+ rate_card: z.ZodObject<{
36432
+ name: z.ZodString;
36433
+ description: z.ZodOptional<z.ZodString>;
36434
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36435
+ key: z.ZodString;
36436
+ feature: z.ZodOptional<z.ZodObject<{
36437
+ id: z.ZodString;
36438
+ }, z.core.$strict>>;
36439
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
36440
+ billing_cadence: z.ZodOptional<z.ZodString>;
36441
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
36442
+ type: z.ZodLiteral<"free">;
36443
+ }, z.core.$strict>, z.ZodObject<{
36444
+ type: z.ZodLiteral<"flat">;
36445
+ amount: z.ZodString;
36446
+ }, z.core.$strict>, z.ZodObject<{
36447
+ type: z.ZodLiteral<"unit">;
36448
+ amount: z.ZodString;
36449
+ }, z.core.$strict>, z.ZodObject<{
36450
+ type: z.ZodLiteral<"graduated">;
36451
+ tiers: z.ZodArray<z.ZodObject<{
36452
+ up_to_amount: z.ZodOptional<z.ZodString>;
36453
+ flat_price: z.ZodOptional<z.ZodObject<{
36454
+ type: z.ZodLiteral<"flat">;
36455
+ amount: z.ZodString;
36456
+ }, z.core.$strict>>;
36457
+ unit_price: z.ZodOptional<z.ZodObject<{
36458
+ type: z.ZodLiteral<"unit">;
36459
+ amount: z.ZodString;
36460
+ }, z.core.$strict>>;
36461
+ }, z.core.$strict>>;
36462
+ }, z.core.$strict>, z.ZodObject<{
36463
+ type: z.ZodLiteral<"volume">;
36464
+ tiers: z.ZodArray<z.ZodObject<{
36465
+ up_to_amount: z.ZodOptional<z.ZodString>;
36466
+ flat_price: z.ZodOptional<z.ZodObject<{
36467
+ type: z.ZodLiteral<"flat">;
36468
+ amount: z.ZodString;
36469
+ }, z.core.$strict>>;
36470
+ unit_price: z.ZodOptional<z.ZodObject<{
36471
+ type: z.ZodLiteral<"unit">;
36472
+ amount: z.ZodString;
36473
+ }, z.core.$strict>>;
36474
+ }, z.core.$strict>>;
36475
+ }, z.core.$strict>], "type">;
36476
+ unit_config: z.ZodOptional<z.ZodObject<{
36477
+ operation: z.ZodEnum<{
36478
+ divide: "divide";
36479
+ multiply: "multiply";
36480
+ }>;
36481
+ conversion_factor: z.ZodString;
36482
+ rounding: z.ZodOptional<z.ZodEnum<{
36483
+ ceiling: "ceiling";
36484
+ floor: "floor";
36485
+ half_up: "half_up";
36486
+ none: "none";
36487
+ }>>;
36488
+ precision: z.ZodOptional<z.ZodNumber>;
36489
+ display_unit: z.ZodOptional<z.ZodString>;
36490
+ }, z.core.$strict>>;
36491
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
36492
+ commitments: z.ZodOptional<z.ZodObject<{
36493
+ minimum_amount: z.ZodOptional<z.ZodString>;
36494
+ maximum_amount: z.ZodOptional<z.ZodString>;
36495
+ }, z.core.$strict>>;
36496
+ discounts: z.ZodOptional<z.ZodObject<{
36497
+ percentage: z.ZodOptional<z.ZodNumber>;
36498
+ usage: z.ZodOptional<z.ZodString>;
36499
+ }, z.core.$strict>>;
36500
+ tax_config: z.ZodOptional<z.ZodObject<{
36501
+ behavior: z.ZodOptional<z.ZodEnum<{
36502
+ exclusive: "exclusive";
36503
+ inclusive: "inclusive";
36504
+ }>>;
36505
+ code: z.ZodObject<{
36506
+ id: z.ZodString;
36507
+ }, z.core.$strict>;
36508
+ }, z.core.$strict>>;
36509
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
36510
+ type: z.ZodLiteral<"metered">;
36511
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
36512
+ limit: z.ZodOptional<z.ZodNumber>;
36513
+ usage_period: z.ZodOptional<z.ZodString>;
36514
+ }, z.core.$strict>, z.ZodObject<{
36515
+ type: z.ZodLiteral<"static">;
36516
+ config: z.ZodUnknown;
36517
+ }, z.core.$strict>, z.ZodObject<{
36518
+ type: z.ZodLiteral<"boolean">;
36519
+ }, z.core.$strict>], "type">>;
36520
+ }, z.core.$strict>;
36521
+ }, z.core.$strict>;
35701
36522
  export declare const subscriptionAddonRateCardWire: z.ZodObject<{
35702
36523
  rate_card: z.ZodObject<{
35703
36524
  name: z.ZodString;
@@ -37247,6 +38068,126 @@ export declare const subscriptionPhaseWire: z.ZodObject<{
37247
38068
  }, z.core.$strict>;
37248
38069
  }, z.core.$strict>>;
37249
38070
  }, z.core.$strict>;
38071
+ export declare const subscriptionEditOperationWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
38072
+ type: z.ZodLiteral<"add_item">;
38073
+ phase_key: z.ZodString;
38074
+ rate_card: z.ZodObject<{
38075
+ name: z.ZodString;
38076
+ description: z.ZodOptional<z.ZodString>;
38077
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
38078
+ key: z.ZodString;
38079
+ feature: z.ZodOptional<z.ZodObject<{
38080
+ id: z.ZodString;
38081
+ }, z.core.$strict>>;
38082
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
38083
+ billing_cadence: z.ZodOptional<z.ZodString>;
38084
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
38085
+ type: z.ZodLiteral<"free">;
38086
+ }, z.core.$strict>, z.ZodObject<{
38087
+ type: z.ZodLiteral<"flat">;
38088
+ amount: z.ZodString;
38089
+ }, z.core.$strict>, z.ZodObject<{
38090
+ type: z.ZodLiteral<"unit">;
38091
+ amount: z.ZodString;
38092
+ }, z.core.$strict>, z.ZodObject<{
38093
+ type: z.ZodLiteral<"graduated">;
38094
+ tiers: z.ZodArray<z.ZodObject<{
38095
+ up_to_amount: z.ZodOptional<z.ZodString>;
38096
+ flat_price: z.ZodOptional<z.ZodObject<{
38097
+ type: z.ZodLiteral<"flat">;
38098
+ amount: z.ZodString;
38099
+ }, z.core.$strict>>;
38100
+ unit_price: z.ZodOptional<z.ZodObject<{
38101
+ type: z.ZodLiteral<"unit">;
38102
+ amount: z.ZodString;
38103
+ }, z.core.$strict>>;
38104
+ }, z.core.$strict>>;
38105
+ }, z.core.$strict>, z.ZodObject<{
38106
+ type: z.ZodLiteral<"volume">;
38107
+ tiers: z.ZodArray<z.ZodObject<{
38108
+ up_to_amount: z.ZodOptional<z.ZodString>;
38109
+ flat_price: z.ZodOptional<z.ZodObject<{
38110
+ type: z.ZodLiteral<"flat">;
38111
+ amount: z.ZodString;
38112
+ }, z.core.$strict>>;
38113
+ unit_price: z.ZodOptional<z.ZodObject<{
38114
+ type: z.ZodLiteral<"unit">;
38115
+ amount: z.ZodString;
38116
+ }, z.core.$strict>>;
38117
+ }, z.core.$strict>>;
38118
+ }, z.core.$strict>], "type">;
38119
+ unit_config: z.ZodOptional<z.ZodObject<{
38120
+ operation: z.ZodEnum<{
38121
+ divide: "divide";
38122
+ multiply: "multiply";
38123
+ }>;
38124
+ conversion_factor: z.ZodString;
38125
+ rounding: z.ZodOptional<z.ZodEnum<{
38126
+ ceiling: "ceiling";
38127
+ floor: "floor";
38128
+ half_up: "half_up";
38129
+ none: "none";
38130
+ }>>;
38131
+ precision: z.ZodOptional<z.ZodNumber>;
38132
+ display_unit: z.ZodOptional<z.ZodString>;
38133
+ }, z.core.$strict>>;
38134
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
38135
+ commitments: z.ZodOptional<z.ZodObject<{
38136
+ minimum_amount: z.ZodOptional<z.ZodString>;
38137
+ maximum_amount: z.ZodOptional<z.ZodString>;
38138
+ }, z.core.$strict>>;
38139
+ discounts: z.ZodOptional<z.ZodObject<{
38140
+ percentage: z.ZodOptional<z.ZodNumber>;
38141
+ usage: z.ZodOptional<z.ZodString>;
38142
+ }, z.core.$strict>>;
38143
+ tax_config: z.ZodOptional<z.ZodObject<{
38144
+ behavior: z.ZodOptional<z.ZodEnum<{
38145
+ exclusive: "exclusive";
38146
+ inclusive: "inclusive";
38147
+ }>>;
38148
+ code: z.ZodObject<{
38149
+ id: z.ZodString;
38150
+ }, z.core.$strict>;
38151
+ }, z.core.$strict>>;
38152
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
38153
+ type: z.ZodLiteral<"metered">;
38154
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
38155
+ limit: z.ZodOptional<z.ZodNumber>;
38156
+ usage_period: z.ZodOptional<z.ZodString>;
38157
+ }, z.core.$strict>, z.ZodObject<{
38158
+ type: z.ZodLiteral<"static">;
38159
+ config: z.ZodUnknown;
38160
+ }, z.core.$strict>, z.ZodObject<{
38161
+ type: z.ZodLiteral<"boolean">;
38162
+ }, z.core.$strict>], "type">>;
38163
+ }, z.core.$strict>;
38164
+ }, z.core.$strict>, z.ZodObject<{
38165
+ type: z.ZodLiteral<"remove_item">;
38166
+ phase_key: z.ZodString;
38167
+ item_key: z.ZodString;
38168
+ }, z.core.$strict>, z.ZodObject<{
38169
+ type: z.ZodLiteral<"add_phase">;
38170
+ phase: z.ZodObject<{
38171
+ key: z.ZodString;
38172
+ name: z.ZodString;
38173
+ description: z.ZodOptional<z.ZodString>;
38174
+ start_after: z.ZodNullable<z.ZodString>;
38175
+ duration: z.ZodOptional<z.ZodString>;
38176
+ }, z.core.$strict>;
38177
+ }, z.core.$strict>, z.ZodObject<{
38178
+ type: z.ZodLiteral<"remove_phase">;
38179
+ phase_key: z.ZodString;
38180
+ shift: z.ZodEnum<{
38181
+ next: "next";
38182
+ prev: "prev";
38183
+ }>;
38184
+ }, z.core.$strict>, z.ZodObject<{
38185
+ type: z.ZodLiteral<"stretch_phase">;
38186
+ phase_key: z.ZodString;
38187
+ extend_by: z.ZodString;
38188
+ }, z.core.$strict>, z.ZodObject<{
38189
+ type: z.ZodLiteral<"unschedule_edit">;
38190
+ }, z.core.$strict>], "type">;
37250
38191
  export declare const subscriptionAddonWire: z.ZodObject<{
37251
38192
  id: z.ZodString;
37252
38193
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -38356,6 +39297,132 @@ export declare const subscriptionWire: z.ZodObject<{
38356
39297
  }, z.core.$strict>>;
38357
39298
  }, z.core.$strict>>;
38358
39299
  }, z.core.$strict>;
39300
+ export declare const subscriptionEditWire: z.ZodObject<{
39301
+ customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
39302
+ type: z.ZodLiteral<"add_item">;
39303
+ phase_key: z.ZodString;
39304
+ rate_card: z.ZodObject<{
39305
+ name: z.ZodString;
39306
+ description: z.ZodOptional<z.ZodString>;
39307
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
39308
+ key: z.ZodString;
39309
+ feature: z.ZodOptional<z.ZodObject<{
39310
+ id: z.ZodString;
39311
+ }, z.core.$strict>>;
39312
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
39313
+ billing_cadence: z.ZodOptional<z.ZodString>;
39314
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
39315
+ type: z.ZodLiteral<"free">;
39316
+ }, z.core.$strict>, z.ZodObject<{
39317
+ type: z.ZodLiteral<"flat">;
39318
+ amount: z.ZodString;
39319
+ }, z.core.$strict>, z.ZodObject<{
39320
+ type: z.ZodLiteral<"unit">;
39321
+ amount: z.ZodString;
39322
+ }, z.core.$strict>, z.ZodObject<{
39323
+ type: z.ZodLiteral<"graduated">;
39324
+ tiers: z.ZodArray<z.ZodObject<{
39325
+ up_to_amount: z.ZodOptional<z.ZodString>;
39326
+ flat_price: z.ZodOptional<z.ZodObject<{
39327
+ type: z.ZodLiteral<"flat">;
39328
+ amount: z.ZodString;
39329
+ }, z.core.$strict>>;
39330
+ unit_price: z.ZodOptional<z.ZodObject<{
39331
+ type: z.ZodLiteral<"unit">;
39332
+ amount: z.ZodString;
39333
+ }, z.core.$strict>>;
39334
+ }, z.core.$strict>>;
39335
+ }, z.core.$strict>, z.ZodObject<{
39336
+ type: z.ZodLiteral<"volume">;
39337
+ tiers: z.ZodArray<z.ZodObject<{
39338
+ up_to_amount: z.ZodOptional<z.ZodString>;
39339
+ flat_price: z.ZodOptional<z.ZodObject<{
39340
+ type: z.ZodLiteral<"flat">;
39341
+ amount: z.ZodString;
39342
+ }, z.core.$strict>>;
39343
+ unit_price: z.ZodOptional<z.ZodObject<{
39344
+ type: z.ZodLiteral<"unit">;
39345
+ amount: z.ZodString;
39346
+ }, z.core.$strict>>;
39347
+ }, z.core.$strict>>;
39348
+ }, z.core.$strict>], "type">;
39349
+ unit_config: z.ZodOptional<z.ZodObject<{
39350
+ operation: z.ZodEnum<{
39351
+ divide: "divide";
39352
+ multiply: "multiply";
39353
+ }>;
39354
+ conversion_factor: z.ZodString;
39355
+ rounding: z.ZodOptional<z.ZodEnum<{
39356
+ ceiling: "ceiling";
39357
+ floor: "floor";
39358
+ half_up: "half_up";
39359
+ none: "none";
39360
+ }>>;
39361
+ precision: z.ZodOptional<z.ZodNumber>;
39362
+ display_unit: z.ZodOptional<z.ZodString>;
39363
+ }, z.core.$strict>>;
39364
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
39365
+ commitments: z.ZodOptional<z.ZodObject<{
39366
+ minimum_amount: z.ZodOptional<z.ZodString>;
39367
+ maximum_amount: z.ZodOptional<z.ZodString>;
39368
+ }, z.core.$strict>>;
39369
+ discounts: z.ZodOptional<z.ZodObject<{
39370
+ percentage: z.ZodOptional<z.ZodNumber>;
39371
+ usage: z.ZodOptional<z.ZodString>;
39372
+ }, z.core.$strict>>;
39373
+ tax_config: z.ZodOptional<z.ZodObject<{
39374
+ behavior: z.ZodOptional<z.ZodEnum<{
39375
+ exclusive: "exclusive";
39376
+ inclusive: "inclusive";
39377
+ }>>;
39378
+ code: z.ZodObject<{
39379
+ id: z.ZodString;
39380
+ }, z.core.$strict>;
39381
+ }, z.core.$strict>>;
39382
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
39383
+ type: z.ZodLiteral<"metered">;
39384
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
39385
+ limit: z.ZodOptional<z.ZodNumber>;
39386
+ usage_period: z.ZodOptional<z.ZodString>;
39387
+ }, z.core.$strict>, z.ZodObject<{
39388
+ type: z.ZodLiteral<"static">;
39389
+ config: z.ZodUnknown;
39390
+ }, z.core.$strict>, z.ZodObject<{
39391
+ type: z.ZodLiteral<"boolean">;
39392
+ }, z.core.$strict>], "type">>;
39393
+ }, z.core.$strict>;
39394
+ }, z.core.$strict>, z.ZodObject<{
39395
+ type: z.ZodLiteral<"remove_item">;
39396
+ phase_key: z.ZodString;
39397
+ item_key: z.ZodString;
39398
+ }, z.core.$strict>, z.ZodObject<{
39399
+ type: z.ZodLiteral<"add_phase">;
39400
+ phase: z.ZodObject<{
39401
+ key: z.ZodString;
39402
+ name: z.ZodString;
39403
+ description: z.ZodOptional<z.ZodString>;
39404
+ start_after: z.ZodNullable<z.ZodString>;
39405
+ duration: z.ZodOptional<z.ZodString>;
39406
+ }, z.core.$strict>;
39407
+ }, z.core.$strict>, z.ZodObject<{
39408
+ type: z.ZodLiteral<"remove_phase">;
39409
+ phase_key: z.ZodString;
39410
+ shift: z.ZodEnum<{
39411
+ next: "next";
39412
+ prev: "prev";
39413
+ }>;
39414
+ }, z.core.$strict>, z.ZodObject<{
39415
+ type: z.ZodLiteral<"stretch_phase">;
39416
+ phase_key: z.ZodString;
39417
+ extend_by: z.ZodString;
39418
+ }, z.core.$strict>, z.ZodObject<{
39419
+ type: z.ZodLiteral<"unschedule_edit">;
39420
+ }, z.core.$strict>], "type">>;
39421
+ timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
39422
+ immediate: "immediate";
39423
+ next_billing_cycle: "next_billing_cycle";
39424
+ }>, z.ZodString]>>;
39425
+ }, z.core.$strict>;
38359
39426
  export declare const subscriptionAddonPagePaginatedResponseWire: z.ZodObject<{
38360
39427
  data: z.ZodArray<z.ZodObject<{
38361
39428
  id: z.ZodString;
@@ -49920,6 +50987,293 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
49920
50987
  }, z.core.$strict>>;
49921
50988
  }, z.core.$strict>;
49922
50989
  }, z.core.$strict>;
50990
+ export declare const editSubscriptionPathParamsWire: z.ZodObject<{
50991
+ subscriptionId: z.ZodString;
50992
+ }, z.core.$strip>;
50993
+ export declare const editSubscriptionBodyWire: z.ZodObject<{
50994
+ customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
50995
+ type: z.ZodLiteral<"add_item">;
50996
+ phase_key: z.ZodString;
50997
+ rate_card: z.ZodObject<{
50998
+ name: z.ZodString;
50999
+ description: z.ZodOptional<z.ZodString>;
51000
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51001
+ key: z.ZodString;
51002
+ feature: z.ZodOptional<z.ZodObject<{
51003
+ id: z.ZodString;
51004
+ }, z.core.$strict>>;
51005
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
51006
+ billing_cadence: z.ZodOptional<z.ZodString>;
51007
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
51008
+ type: z.ZodLiteral<"free">;
51009
+ }, z.core.$strict>, z.ZodObject<{
51010
+ type: z.ZodLiteral<"flat">;
51011
+ amount: z.ZodString;
51012
+ }, z.core.$strict>, z.ZodObject<{
51013
+ type: z.ZodLiteral<"unit">;
51014
+ amount: z.ZodString;
51015
+ }, z.core.$strict>, z.ZodObject<{
51016
+ type: z.ZodLiteral<"graduated">;
51017
+ tiers: z.ZodArray<z.ZodObject<{
51018
+ up_to_amount: z.ZodOptional<z.ZodString>;
51019
+ flat_price: z.ZodOptional<z.ZodObject<{
51020
+ type: z.ZodLiteral<"flat">;
51021
+ amount: z.ZodString;
51022
+ }, z.core.$strict>>;
51023
+ unit_price: z.ZodOptional<z.ZodObject<{
51024
+ type: z.ZodLiteral<"unit">;
51025
+ amount: z.ZodString;
51026
+ }, z.core.$strict>>;
51027
+ }, z.core.$strict>>;
51028
+ }, z.core.$strict>, z.ZodObject<{
51029
+ type: z.ZodLiteral<"volume">;
51030
+ tiers: z.ZodArray<z.ZodObject<{
51031
+ up_to_amount: z.ZodOptional<z.ZodString>;
51032
+ flat_price: z.ZodOptional<z.ZodObject<{
51033
+ type: z.ZodLiteral<"flat">;
51034
+ amount: z.ZodString;
51035
+ }, z.core.$strict>>;
51036
+ unit_price: z.ZodOptional<z.ZodObject<{
51037
+ type: z.ZodLiteral<"unit">;
51038
+ amount: z.ZodString;
51039
+ }, z.core.$strict>>;
51040
+ }, z.core.$strict>>;
51041
+ }, z.core.$strict>], "type">;
51042
+ unit_config: z.ZodOptional<z.ZodObject<{
51043
+ operation: z.ZodEnum<{
51044
+ divide: "divide";
51045
+ multiply: "multiply";
51046
+ }>;
51047
+ conversion_factor: z.ZodString;
51048
+ rounding: z.ZodOptional<z.ZodEnum<{
51049
+ ceiling: "ceiling";
51050
+ floor: "floor";
51051
+ half_up: "half_up";
51052
+ none: "none";
51053
+ }>>;
51054
+ precision: z.ZodOptional<z.ZodNumber>;
51055
+ display_unit: z.ZodOptional<z.ZodString>;
51056
+ }, z.core.$strict>>;
51057
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
51058
+ commitments: z.ZodOptional<z.ZodObject<{
51059
+ minimum_amount: z.ZodOptional<z.ZodString>;
51060
+ maximum_amount: z.ZodOptional<z.ZodString>;
51061
+ }, z.core.$strict>>;
51062
+ discounts: z.ZodOptional<z.ZodObject<{
51063
+ percentage: z.ZodOptional<z.ZodNumber>;
51064
+ usage: z.ZodOptional<z.ZodString>;
51065
+ }, z.core.$strict>>;
51066
+ tax_config: z.ZodOptional<z.ZodObject<{
51067
+ behavior: z.ZodOptional<z.ZodEnum<{
51068
+ exclusive: "exclusive";
51069
+ inclusive: "inclusive";
51070
+ }>>;
51071
+ code: z.ZodObject<{
51072
+ id: z.ZodString;
51073
+ }, z.core.$strict>;
51074
+ }, z.core.$strict>>;
51075
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51076
+ type: z.ZodLiteral<"metered">;
51077
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
51078
+ limit: z.ZodOptional<z.ZodNumber>;
51079
+ usage_period: z.ZodOptional<z.ZodString>;
51080
+ }, z.core.$strict>, z.ZodObject<{
51081
+ type: z.ZodLiteral<"static">;
51082
+ config: z.ZodUnknown;
51083
+ }, z.core.$strict>, z.ZodObject<{
51084
+ type: z.ZodLiteral<"boolean">;
51085
+ }, z.core.$strict>], "type">>;
51086
+ }, z.core.$strict>;
51087
+ }, z.core.$strict>, z.ZodObject<{
51088
+ type: z.ZodLiteral<"remove_item">;
51089
+ phase_key: z.ZodString;
51090
+ item_key: z.ZodString;
51091
+ }, z.core.$strict>, z.ZodObject<{
51092
+ type: z.ZodLiteral<"add_phase">;
51093
+ phase: z.ZodObject<{
51094
+ key: z.ZodString;
51095
+ name: z.ZodString;
51096
+ description: z.ZodOptional<z.ZodString>;
51097
+ start_after: z.ZodNullable<z.ZodString>;
51098
+ duration: z.ZodOptional<z.ZodString>;
51099
+ }, z.core.$strict>;
51100
+ }, z.core.$strict>, z.ZodObject<{
51101
+ type: z.ZodLiteral<"remove_phase">;
51102
+ phase_key: z.ZodString;
51103
+ shift: z.ZodEnum<{
51104
+ next: "next";
51105
+ prev: "prev";
51106
+ }>;
51107
+ }, z.core.$strict>, z.ZodObject<{
51108
+ type: z.ZodLiteral<"stretch_phase">;
51109
+ phase_key: z.ZodString;
51110
+ extend_by: z.ZodString;
51111
+ }, z.core.$strict>, z.ZodObject<{
51112
+ type: z.ZodLiteral<"unschedule_edit">;
51113
+ }, z.core.$strict>], "type">>;
51114
+ timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
51115
+ immediate: "immediate";
51116
+ next_billing_cycle: "next_billing_cycle";
51117
+ }>, z.ZodString]>>;
51118
+ }, z.core.$strict>;
51119
+ export declare const editSubscriptionResponseWire: z.ZodObject<{
51120
+ id: z.ZodString;
51121
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51122
+ created_at: z.ZodString;
51123
+ updated_at: z.ZodString;
51124
+ deleted_at: z.ZodOptional<z.ZodString>;
51125
+ name: z.ZodString;
51126
+ description: z.ZodOptional<z.ZodString>;
51127
+ active_from: z.ZodString;
51128
+ active_to: z.ZodOptional<z.ZodString>;
51129
+ customer_id: z.ZodString;
51130
+ plan_id: z.ZodOptional<z.ZodString>;
51131
+ plan: z.ZodOptional<z.ZodObject<{
51132
+ id: z.ZodString;
51133
+ key: z.ZodString;
51134
+ version: z.ZodNumber;
51135
+ }, z.core.$strict>>;
51136
+ invoice_currency: z.ZodString;
51137
+ cost_basis_mode: z.ZodEnum<{
51138
+ dynamic: "dynamic";
51139
+ pinned: "pinned";
51140
+ }>;
51141
+ cost_basis_pins: z.ZodArray<z.ZodObject<{
51142
+ custom_currency_id: z.ZodString;
51143
+ invoice_currency: z.ZodString;
51144
+ cost_basis_id: z.ZodString;
51145
+ }, z.core.$strict>>;
51146
+ billing_cadence: z.ZodString;
51147
+ pro_rating_config: z.ZodOptional<z.ZodObject<{
51148
+ enabled: z.ZodBoolean;
51149
+ mode: z.ZodEnum<{
51150
+ no_proration: "no_proration";
51151
+ prorate_prices: "prorate_prices";
51152
+ }>;
51153
+ }, z.core.$strict>>;
51154
+ billing_anchor: z.ZodString;
51155
+ status: z.ZodEnum<{
51156
+ active: "active";
51157
+ canceled: "canceled";
51158
+ inactive: "inactive";
51159
+ scheduled: "scheduled";
51160
+ }>;
51161
+ settlement_mode: z.ZodOptional<z.ZodEnum<{
51162
+ credit_only: "credit_only";
51163
+ credit_then_invoice: "credit_then_invoice";
51164
+ }>>;
51165
+ current_period: z.ZodOptional<z.ZodObject<{
51166
+ from: z.ZodString;
51167
+ to: z.ZodString;
51168
+ }, z.core.$strict>>;
51169
+ phases: z.ZodArray<z.ZodObject<{
51170
+ id: z.ZodString;
51171
+ name: z.ZodString;
51172
+ description: z.ZodOptional<z.ZodString>;
51173
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51174
+ created_at: z.ZodString;
51175
+ updated_at: z.ZodString;
51176
+ deleted_at: z.ZodOptional<z.ZodString>;
51177
+ key: z.ZodString;
51178
+ active_from: z.ZodString;
51179
+ active_to: z.ZodOptional<z.ZodString>;
51180
+ items: z.ZodArray<z.ZodObject<{
51181
+ id: z.ZodString;
51182
+ active_from: z.ZodString;
51183
+ active_to: z.ZodOptional<z.ZodString>;
51184
+ rate_card: z.ZodObject<{
51185
+ name: z.ZodString;
51186
+ description: z.ZodOptional<z.ZodString>;
51187
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
51188
+ key: z.ZodString;
51189
+ feature: z.ZodOptional<z.ZodObject<{
51190
+ id: z.ZodString;
51191
+ }, z.core.$strict>>;
51192
+ currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
51193
+ billing_cadence: z.ZodOptional<z.ZodString>;
51194
+ price: z.ZodDiscriminatedUnion<[z.ZodObject<{
51195
+ type: z.ZodLiteral<"free">;
51196
+ }, z.core.$strict>, z.ZodObject<{
51197
+ type: z.ZodLiteral<"flat">;
51198
+ amount: z.ZodString;
51199
+ }, z.core.$strict>, z.ZodObject<{
51200
+ type: z.ZodLiteral<"unit">;
51201
+ amount: z.ZodString;
51202
+ }, z.core.$strict>, z.ZodObject<{
51203
+ type: z.ZodLiteral<"graduated">;
51204
+ tiers: z.ZodArray<z.ZodObject<{
51205
+ up_to_amount: z.ZodOptional<z.ZodString>;
51206
+ flat_price: z.ZodOptional<z.ZodObject<{
51207
+ type: z.ZodLiteral<"flat">;
51208
+ amount: z.ZodString;
51209
+ }, z.core.$strict>>;
51210
+ unit_price: z.ZodOptional<z.ZodObject<{
51211
+ type: z.ZodLiteral<"unit">;
51212
+ amount: z.ZodString;
51213
+ }, z.core.$strict>>;
51214
+ }, z.core.$strict>>;
51215
+ }, z.core.$strict>, z.ZodObject<{
51216
+ type: z.ZodLiteral<"volume">;
51217
+ tiers: z.ZodArray<z.ZodObject<{
51218
+ up_to_amount: z.ZodOptional<z.ZodString>;
51219
+ flat_price: z.ZodOptional<z.ZodObject<{
51220
+ type: z.ZodLiteral<"flat">;
51221
+ amount: z.ZodString;
51222
+ }, z.core.$strict>>;
51223
+ unit_price: z.ZodOptional<z.ZodObject<{
51224
+ type: z.ZodLiteral<"unit">;
51225
+ amount: z.ZodString;
51226
+ }, z.core.$strict>>;
51227
+ }, z.core.$strict>>;
51228
+ }, z.core.$strict>], "type">;
51229
+ unit_config: z.ZodOptional<z.ZodObject<{
51230
+ operation: z.ZodEnum<{
51231
+ divide: "divide";
51232
+ multiply: "multiply";
51233
+ }>;
51234
+ conversion_factor: z.ZodString;
51235
+ rounding: z.ZodOptional<z.ZodEnum<{
51236
+ ceiling: "ceiling";
51237
+ floor: "floor";
51238
+ half_up: "half_up";
51239
+ none: "none";
51240
+ }>>;
51241
+ precision: z.ZodOptional<z.ZodNumber>;
51242
+ display_unit: z.ZodOptional<z.ZodString>;
51243
+ }, z.core.$strict>>;
51244
+ payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
51245
+ commitments: z.ZodOptional<z.ZodObject<{
51246
+ minimum_amount: z.ZodOptional<z.ZodString>;
51247
+ maximum_amount: z.ZodOptional<z.ZodString>;
51248
+ }, z.core.$strict>>;
51249
+ discounts: z.ZodOptional<z.ZodObject<{
51250
+ percentage: z.ZodOptional<z.ZodNumber>;
51251
+ usage: z.ZodOptional<z.ZodString>;
51252
+ }, z.core.$strict>>;
51253
+ tax_config: z.ZodOptional<z.ZodObject<{
51254
+ behavior: z.ZodOptional<z.ZodEnum<{
51255
+ exclusive: "exclusive";
51256
+ inclusive: "inclusive";
51257
+ }>>;
51258
+ code: z.ZodObject<{
51259
+ id: z.ZodString;
51260
+ }, z.core.$strict>;
51261
+ }, z.core.$strict>>;
51262
+ entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
51263
+ type: z.ZodLiteral<"metered">;
51264
+ is_soft_limit: z.ZodOptional<z.ZodBoolean>;
51265
+ limit: z.ZodOptional<z.ZodNumber>;
51266
+ usage_period: z.ZodOptional<z.ZodString>;
51267
+ }, z.core.$strict>, z.ZodObject<{
51268
+ type: z.ZodLiteral<"static">;
51269
+ config: z.ZodUnknown;
51270
+ }, z.core.$strict>, z.ZodObject<{
51271
+ type: z.ZodLiteral<"boolean">;
51272
+ }, z.core.$strict>], "type">>;
51273
+ }, z.core.$strict>;
51274
+ }, z.core.$strict>>;
51275
+ }, z.core.$strict>>;
51276
+ }, z.core.$strict>;
49923
51277
  export declare const createSubscriptionAddonPathParamsWire: z.ZodObject<{
49924
51278
  subscriptionId: z.ZodString;
49925
51279
  }, z.core.$strip>;