@openmeter/sdk 1.0.0-beta-ef4f3399d89d → 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.
- package/dist/cjs/src/client/schemas.d.cts +6 -39
- package/dist/cjs/src/zod/index.cjs +4 -8
- package/dist/cjs/src/zod/index.d.cts +5 -15
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.2ec51f32.tsbuildinfo → tsconfig.90d0564e.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.9648b0b8.tsbuildinfo → tsconfig.98c697fe.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +6 -39
- package/dist/src/zod/index.d.ts +5 -15
- package/dist/src/zod/index.js +4 -8
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7800,37 +7800,9 @@ export interface components {
|
|
|
7800
7800
|
metadata?: components['schemas']['Metadata'];
|
|
7801
7801
|
/**
|
|
7802
7802
|
* Addon
|
|
7803
|
-
* @description
|
|
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
|
-
*
|
|
7871
|
-
* @description The add-on
|
|
7842
|
+
* Add-on unique identifier
|
|
7843
|
+
* @description The add-on unique identifier in ULID format.
|
|
7844
|
+
* @example 01G65Z755AFWAKHE12NY0CQ9FH
|
|
7872
7845
|
*/
|
|
7873
|
-
|
|
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.
|
|
@@ -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
|
-
|
|
8190
|
-
.
|
|
8191
|
-
|
|
8192
|
-
|
|
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.'),
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
13429
|
-
id: string;
|
|
13430
|
-
};
|
|
13420
|
+
addonId: string;
|
|
13431
13421
|
fromPlanPhase: string;
|
|
13432
13422
|
metadata?: Record<string, string> | undefined;
|
|
13433
13423
|
maxQuantity?: number | undefined;
|
|
@@ -17794,19 +17784,19 @@ export declare const createSubscriptionAddonBody: zod.ZodObject<{
|
|
|
17794
17784
|
}, "strip", zod.ZodTypeAny, {
|
|
17795
17785
|
name: string;
|
|
17796
17786
|
quantity: number;
|
|
17787
|
+
timing: Date | "immediate" | "next_billing_cycle";
|
|
17797
17788
|
addon: {
|
|
17798
17789
|
id: string;
|
|
17799
17790
|
};
|
|
17800
|
-
timing: Date | "immediate" | "next_billing_cycle";
|
|
17801
17791
|
description?: string | undefined;
|
|
17802
17792
|
metadata?: Record<string, string> | null | undefined;
|
|
17803
17793
|
}, {
|
|
17804
17794
|
name: string;
|
|
17805
17795
|
quantity: number;
|
|
17796
|
+
timing: Date | "immediate" | "next_billing_cycle";
|
|
17806
17797
|
addon: {
|
|
17807
17798
|
id: string;
|
|
17808
17799
|
};
|
|
17809
|
-
timing: Date | "immediate" | "next_billing_cycle";
|
|
17810
17800
|
description?: string | undefined;
|
|
17811
17801
|
metadata?: Record<string, string> | null | undefined;
|
|
17812
17802
|
}>;
|