@openmeter/sdk 1.0.0-beta-8492bc853d1c → 1.0.0-beta-c515b5582c71

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.
@@ -7800,37 +7800,9 @@ export interface components {
7800
7800
  metadata?: components['schemas']['Metadata'];
7801
7801
  /**
7802
7802
  * Addon
7803
- * @description Partially populated add-on properties.
7803
+ * @description Add-on object.
7804
7804
  */
7805
- addon: {
7806
- /**
7807
- * ID
7808
- * @description The ID of the add-on.
7809
- * @example 01G65Z755AFWAKHE12NY0CQ9FH
7810
- */
7811
- id: string;
7812
- /**
7813
- * Key
7814
- * @description User provided unique identifier for add-on.
7815
- */
7816
- readonly key: string;
7817
- /**
7818
- * Display name
7819
- * @description Human-readable name for add-on.
7820
- */
7821
- name: string;
7822
- /**
7823
- * Version
7824
- * @description The version of the add-on which templates this instance.
7825
- * @default 1
7826
- */
7827
- readonly version: number;
7828
- /**
7829
- * InstanceType
7830
- * @description The instance type of the add-on.
7831
- */
7832
- readonly instanceType: components['schemas']['AddonInstanceType'];
7833
- };
7805
+ readonly addon: components['schemas']['Addon'];
7834
7806
  /**
7835
7807
  * The plan phase from the add-on becomes purchasable
7836
7808
  * @description The key of the plan phase from the add-on becomes available for purchase.
@@ -7867,16 +7839,11 @@ export interface components {
7867
7839
  */
7868
7840
  maxQuantity?: number;
7869
7841
  /**
7870
- * Addon
7871
- * @description The add-on to create.
7842
+ * Add-on unique identifier
7843
+ * @description The add-on unique identifier in ULID format.
7844
+ * @example 01G65Z755AFWAKHE12NY0CQ9FH
7872
7845
  */
7873
- addon: {
7874
- /**
7875
- * @description The ID of the add-on.
7876
- * @example 01G65Z755AFWAKHE12NY0CQ9FH
7877
- */
7878
- id: string;
7879
- };
7846
+ addonId: string;
7880
7847
  };
7881
7848
  /**
7882
7849
  * @description Order by options for plan add-on assignments.
@@ -9059,13 +9026,13 @@ export interface components {
9059
9026
  * @description The cadence start of the resource.
9060
9027
  * @example 2023-01-01T01:01:01.001Z
9061
9028
  */
9062
- activeFrom: Date;
9029
+ readonly activeFrom: Date;
9063
9030
  /**
9064
9031
  * Format: date-time
9065
9032
  * @description The cadence end of the resource.
9066
9033
  * @example 2023-01-01T01:01:01.001Z
9067
9034
  */
9068
- activeTo?: Date;
9035
+ readonly activeTo?: Date;
9069
9036
  /**
9070
9037
  * Addon
9071
9038
  * @description Partially populated add-on properties.
@@ -9157,18 +9124,6 @@ export interface components {
9157
9124
  * @description Additional metadata for the resource.
9158
9125
  */
9159
9126
  metadata?: components['schemas']['Metadata'] | null;
9160
- /**
9161
- * Format: date-time
9162
- * @description The cadence start of the resource.
9163
- * @example 2023-01-01T01:01:01.001Z
9164
- */
9165
- activeFrom: Date;
9166
- /**
9167
- * Format: date-time
9168
- * @description The cadence end of the resource.
9169
- * @example 2023-01-01T01:01:01.001Z
9170
- */
9171
- activeTo?: Date;
9172
9127
  /**
9173
9128
  * Quantity
9174
9129
  * @description The quantity of the add-on. Always 1 for single instance add-ons.
@@ -9243,18 +9198,6 @@ export interface components {
9243
9198
  * @description Additional metadata for the resource.
9244
9199
  */
9245
9200
  metadata?: components['schemas']['Metadata'] | null;
9246
- /**
9247
- * Format: date-time
9248
- * @description The cadence start of the resource.
9249
- * @example 2023-01-01T01:01:01.001Z
9250
- */
9251
- activeFrom?: Date;
9252
- /**
9253
- * Format: date-time
9254
- * @description The cadence end of the resource.
9255
- * @example 2023-01-01T01:01:01.001Z
9256
- */
9257
- activeTo?: Date;
9258
9201
  /**
9259
9202
  * Quantity
9260
9203
  * @description The quantity of the add-on. Always 1 for single instance add-ons.
@@ -8186,14 +8186,10 @@ exports.createPlanAddonParams = zod_1.z.object({
8186
8186
  exports.createPlanAddonBodyAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
8187
8187
  exports.createPlanAddonBody = zod_1.z
8188
8188
  .object({
8189
- addon: zod_1.z
8190
- .object({
8191
- id: zod_1.z
8192
- .string()
8193
- .regex(exports.createPlanAddonBodyAddonIdRegExp)
8194
- .describe('The ID of the add-on.'),
8195
- })
8196
- .describe('The add-on to create.'),
8189
+ addonId: zod_1.z
8190
+ .string()
8191
+ .regex(exports.createPlanAddonBodyAddonIdRegExp)
8192
+ .describe('The add-on unique identifier in ULID format.'),
8197
8193
  fromPlanPhase: zod_1.z
8198
8194
  .string()
8199
8195
  .describe('The key of the plan phase from the add-on becomes available for purchase.'),
@@ -10650,11 +10646,6 @@ exports.createSubscriptionAddonBodyQuantityMin = 0;
10650
10646
  exports.createSubscriptionAddonBodyAddonIdRegExp = new RegExp('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$');
10651
10647
  exports.createSubscriptionAddonBody = zod_1.z
10652
10648
  .object({
10653
- activeFrom: zod_1.z.date().describe('The cadence start of the resource.'),
10654
- activeTo: zod_1.z
10655
- .date()
10656
- .optional()
10657
- .describe('The cadence end of the resource.'),
10658
10649
  addon: zod_1.z
10659
10650
  .object({
10660
10651
  id: zod_1.z
@@ -10735,14 +10726,6 @@ exports.updateSubscriptionAddonBodyDescriptionMax = 1024;
10735
10726
  exports.updateSubscriptionAddonBodyQuantityMin = 0;
10736
10727
  exports.updateSubscriptionAddonBody = zod_1.z
10737
10728
  .object({
10738
- activeFrom: zod_1.z
10739
- .date()
10740
- .optional()
10741
- .describe('The cadence start of the resource.'),
10742
- activeTo: zod_1.z
10743
- .date()
10744
- .optional()
10745
- .describe('The cadence end of the resource.'),
10746
10729
  description: zod_1.z
10747
10730
  .string()
10748
10731
  .max(exports.updateSubscriptionAddonBodyDescriptionMax)
@@ -13407,27 +13407,17 @@ export declare const createPlanAddonParams: zod.ZodObject<{
13407
13407
  }>;
13408
13408
  export declare const createPlanAddonBodyAddonIdRegExp: RegExp;
13409
13409
  export declare const createPlanAddonBody: zod.ZodObject<{
13410
- addon: zod.ZodObject<{
13411
- id: zod.ZodString;
13412
- }, "strip", zod.ZodTypeAny, {
13413
- id: string;
13414
- }, {
13415
- id: string;
13416
- }>;
13410
+ addonId: zod.ZodString;
13417
13411
  fromPlanPhase: zod.ZodString;
13418
13412
  maxQuantity: zod.ZodOptional<zod.ZodNumber>;
13419
13413
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
13420
13414
  }, "strip", zod.ZodTypeAny, {
13421
- addon: {
13422
- id: string;
13423
- };
13415
+ addonId: string;
13424
13416
  fromPlanPhase: string;
13425
13417
  metadata?: Record<string, string> | undefined;
13426
13418
  maxQuantity?: number | undefined;
13427
13419
  }, {
13428
- addon: {
13429
- id: string;
13430
- };
13420
+ addonId: string;
13431
13421
  fromPlanPhase: string;
13432
13422
  metadata?: Record<string, string> | undefined;
13433
13423
  maxQuantity?: number | undefined;
@@ -17779,8 +17769,6 @@ export declare const createSubscriptionAddonBodyDescriptionMax = 1024;
17779
17769
  export declare const createSubscriptionAddonBodyQuantityMin = 0;
17780
17770
  export declare const createSubscriptionAddonBodyAddonIdRegExp: RegExp;
17781
17771
  export declare const createSubscriptionAddonBody: zod.ZodObject<{
17782
- activeFrom: zod.ZodDate;
17783
- activeTo: zod.ZodOptional<zod.ZodDate>;
17784
17772
  addon: zod.ZodObject<{
17785
17773
  id: zod.ZodString;
17786
17774
  }, "strip", zod.ZodTypeAny, {
@@ -17795,26 +17783,22 @@ export declare const createSubscriptionAddonBody: zod.ZodObject<{
17795
17783
  timing: zod.ZodUnion<[zod.ZodEnum<["immediate", "next_billing_cycle"]>, zod.ZodDate]>;
17796
17784
  }, "strip", zod.ZodTypeAny, {
17797
17785
  name: string;
17798
- activeFrom: Date;
17799
17786
  quantity: number;
17787
+ timing: Date | "immediate" | "next_billing_cycle";
17800
17788
  addon: {
17801
17789
  id: string;
17802
17790
  };
17803
- timing: Date | "immediate" | "next_billing_cycle";
17804
17791
  description?: string | undefined;
17805
17792
  metadata?: Record<string, string> | null | undefined;
17806
- activeTo?: Date | undefined;
17807
17793
  }, {
17808
17794
  name: string;
17809
- activeFrom: Date;
17810
17795
  quantity: number;
17796
+ timing: Date | "immediate" | "next_billing_cycle";
17811
17797
  addon: {
17812
17798
  id: string;
17813
17799
  };
17814
- timing: Date | "immediate" | "next_billing_cycle";
17815
17800
  description?: string | undefined;
17816
17801
  metadata?: Record<string, string> | null | undefined;
17817
- activeTo?: Date | undefined;
17818
17802
  }>;
17819
17803
  /**
17820
17804
  * List all addons of a subscription. In the returned list will match to a set unique by addonId.
@@ -17864,8 +17848,6 @@ export declare const updateSubscriptionAddonBodyNameMax = 256;
17864
17848
  export declare const updateSubscriptionAddonBodyDescriptionMax = 1024;
17865
17849
  export declare const updateSubscriptionAddonBodyQuantityMin = 0;
17866
17850
  export declare const updateSubscriptionAddonBody: zod.ZodObject<{
17867
- activeFrom: zod.ZodOptional<zod.ZodDate>;
17868
- activeTo: zod.ZodOptional<zod.ZodDate>;
17869
17851
  description: zod.ZodOptional<zod.ZodString>;
17870
17852
  metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
17871
17853
  name: zod.ZodOptional<zod.ZodString>;
@@ -17874,17 +17856,13 @@ export declare const updateSubscriptionAddonBody: zod.ZodObject<{
17874
17856
  }, "strip", zod.ZodTypeAny, {
17875
17857
  name?: string | undefined;
17876
17858
  description?: string | undefined;
17877
- activeFrom?: Date | undefined;
17878
17859
  metadata?: Record<string, string> | null | undefined;
17879
- activeTo?: Date | undefined;
17880
17860
  quantity?: number | undefined;
17881
17861
  timing?: Date | "immediate" | "next_billing_cycle" | undefined;
17882
17862
  }, {
17883
17863
  name?: string | undefined;
17884
17864
  description?: string | undefined;
17885
- activeFrom?: Date | undefined;
17886
17865
  metadata?: Record<string, string> | null | undefined;
17887
- activeTo?: Date | undefined;
17888
17866
  quantity?: number | undefined;
17889
17867
  timing?: Date | "immediate" | "next_billing_cycle" | undefined;
17890
17868
  }>;