@openmeter/sdk 1.0.0-beta-ef4f3399d89d → 1.0.0-beta-201274f79c65
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 +17 -39
- package/dist/cjs/src/zod/index.cjs +24 -9
- package/dist/cjs/src/zod/index.d.cts +14 -15
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.2ec51f32.tsbuildinfo → tsconfig.b371f9d1.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.9648b0b8.tsbuildinfo → tsconfig.f42b3c3f.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +17 -39
- package/dist/src/zod/index.d.ts +14 -15
- package/dist/src/zod/index.js +24 -9
- 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.
|
|
@@ -8080,6 +8047,9 @@ export interface components {
|
|
|
8080
8047
|
metadata?: components['schemas']['Metadata'];
|
|
8081
8048
|
/** @description The plan reference to change to. */
|
|
8082
8049
|
plan: components['schemas']['PlanReferenceInput'];
|
|
8050
|
+
/** @description The key of the phase to start the subscription in.
|
|
8051
|
+
* If not provided, the subscription will start in the first phase of the plan. */
|
|
8052
|
+
startingPhase?: string;
|
|
8083
8053
|
/** @description The name of the Subscription. If not provided the plan name is used. */
|
|
8084
8054
|
name?: string;
|
|
8085
8055
|
/** @description Description for the Subscription. */
|
|
@@ -8093,6 +8063,9 @@ export interface components {
|
|
|
8093
8063
|
metadata?: components['schemas']['Metadata'];
|
|
8094
8064
|
/** @description The plan reference to change to. */
|
|
8095
8065
|
plan: components['schemas']['PlanReferenceInput'];
|
|
8066
|
+
/** @description The key of the phase to start the subscription in.
|
|
8067
|
+
* If not provided, the subscription will start in the first phase of the plan. */
|
|
8068
|
+
startingPhase?: string;
|
|
8096
8069
|
/** @description The name of the Subscription. If not provided the plan name is used. */
|
|
8097
8070
|
name?: string;
|
|
8098
8071
|
/** @description Description for the Subscription. */
|
|
@@ -23111,7 +23084,12 @@ export interface operations {
|
|
|
23111
23084
|
requestBody: {
|
|
23112
23085
|
content: {
|
|
23113
23086
|
'application/json': {
|
|
23087
|
+
/** @description The version of the plan to migrate to.
|
|
23088
|
+
* If not provided, the subscription will migrate to the latest version of the current plan. */
|
|
23114
23089
|
targetVersion?: number;
|
|
23090
|
+
/** @description The key of the phase to start the subscription in.
|
|
23091
|
+
* If not provided, the subscription will start in the first phase of the plan. */
|
|
23092
|
+
startingPhase?: string;
|
|
23115
23093
|
};
|
|
23116
23094
|
};
|
|
23117
23095
|
};
|
|
@@ -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.'),
|
|
@@ -9361,6 +9357,11 @@ exports.createSubscriptionBody = zod_1.z
|
|
|
9361
9357
|
})
|
|
9362
9358
|
.describe('References an exact plan defaulting to the current active version.')
|
|
9363
9359
|
.describe('The plan reference to change to.'),
|
|
9360
|
+
startingPhase: zod_1.z
|
|
9361
|
+
.string()
|
|
9362
|
+
.min(1)
|
|
9363
|
+
.optional()
|
|
9364
|
+
.describe('The key of the phase to start the subscription in.\nIf not provided, the subscription will start in the first phase of the plan.'),
|
|
9364
9365
|
timing: zod_1.z
|
|
9365
9366
|
.enum(['immediate', 'next_billing_cycle'])
|
|
9366
9367
|
.describe('Subscription edit timing.\nWhen immediate, the requested changes take effect immediately.\nWhen nextBillingCycle, the requested changes take effect at the next billing cycle.')
|
|
@@ -10890,6 +10891,11 @@ exports.changeSubscriptionBody = zod_1.z
|
|
|
10890
10891
|
})
|
|
10891
10892
|
.describe('References an exact plan defaulting to the current active version.')
|
|
10892
10893
|
.describe('The plan reference to change to.'),
|
|
10894
|
+
startingPhase: zod_1.z
|
|
10895
|
+
.string()
|
|
10896
|
+
.min(1)
|
|
10897
|
+
.optional()
|
|
10898
|
+
.describe('The key of the phase to start the subscription in.\nIf not provided, the subscription will start in the first phase of the plan.'),
|
|
10893
10899
|
timing: zod_1.z
|
|
10894
10900
|
.enum(['immediate', 'next_billing_cycle'])
|
|
10895
10901
|
.describe('Subscription edit timing.\nWhen immediate, the requested changes take effect immediately.\nWhen nextBillingCycle, the requested changes take effect at the next billing cycle.')
|
|
@@ -11485,7 +11491,16 @@ exports.migrateSubscriptionParams = zod_1.z.object({
|
|
|
11485
11491
|
.regex(exports.migrateSubscriptionPathSubscriptionIdRegExp),
|
|
11486
11492
|
});
|
|
11487
11493
|
exports.migrateSubscriptionBody = zod_1.z.object({
|
|
11488
|
-
|
|
11494
|
+
startingPhase: zod_1.z
|
|
11495
|
+
.string()
|
|
11496
|
+
.min(1)
|
|
11497
|
+
.optional()
|
|
11498
|
+
.describe('The key of the phase to start the subscription in.\nIf not provided, the subscription will start in the first phase of the plan.'),
|
|
11499
|
+
targetVersion: zod_1.z
|
|
11500
|
+
.number()
|
|
11501
|
+
.min(1)
|
|
11502
|
+
.optional()
|
|
11503
|
+
.describe('The version of the plan to migrate to.\nIf not provided, the subscription will migrate to the latest version of the current plan.'),
|
|
11489
11504
|
});
|
|
11490
11505
|
/**
|
|
11491
11506
|
* Restores a canceled subscription.
|
|
@@ -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;
|
|
@@ -14779,6 +14769,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
14779
14769
|
key: string;
|
|
14780
14770
|
version?: number | undefined;
|
|
14781
14771
|
}>;
|
|
14772
|
+
startingPhase: zod.ZodOptional<zod.ZodString>;
|
|
14782
14773
|
timing: zod.ZodDefault<zod.ZodUnion<[zod.ZodEnum<["immediate", "next_billing_cycle"]>, zod.ZodDate]>>;
|
|
14783
14774
|
}, "strip", zod.ZodTypeAny, {
|
|
14784
14775
|
plan: {
|
|
@@ -14794,6 +14785,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
14794
14785
|
alignment?: {
|
|
14795
14786
|
billablesMustAlign?: boolean | undefined;
|
|
14796
14787
|
} | undefined;
|
|
14788
|
+
startingPhase?: string | undefined;
|
|
14797
14789
|
}, {
|
|
14798
14790
|
plan: {
|
|
14799
14791
|
key: string;
|
|
@@ -14807,6 +14799,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
14807
14799
|
alignment?: {
|
|
14808
14800
|
billablesMustAlign?: boolean | undefined;
|
|
14809
14801
|
} | undefined;
|
|
14802
|
+
startingPhase?: string | undefined;
|
|
14810
14803
|
timing?: Date | "immediate" | "next_billing_cycle" | undefined;
|
|
14811
14804
|
}>, zod.ZodObject<{
|
|
14812
14805
|
customerId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -17794,19 +17787,19 @@ export declare const createSubscriptionAddonBody: zod.ZodObject<{
|
|
|
17794
17787
|
}, "strip", zod.ZodTypeAny, {
|
|
17795
17788
|
name: string;
|
|
17796
17789
|
quantity: number;
|
|
17790
|
+
timing: Date | "immediate" | "next_billing_cycle";
|
|
17797
17791
|
addon: {
|
|
17798
17792
|
id: string;
|
|
17799
17793
|
};
|
|
17800
|
-
timing: Date | "immediate" | "next_billing_cycle";
|
|
17801
17794
|
description?: string | undefined;
|
|
17802
17795
|
metadata?: Record<string, string> | null | undefined;
|
|
17803
17796
|
}, {
|
|
17804
17797
|
name: string;
|
|
17805
17798
|
quantity: number;
|
|
17799
|
+
timing: Date | "immediate" | "next_billing_cycle";
|
|
17806
17800
|
addon: {
|
|
17807
17801
|
id: string;
|
|
17808
17802
|
};
|
|
17809
|
-
timing: Date | "immediate" | "next_billing_cycle";
|
|
17810
17803
|
description?: string | undefined;
|
|
17811
17804
|
metadata?: Record<string, string> | null | undefined;
|
|
17812
17805
|
}>;
|
|
@@ -17988,6 +17981,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
17988
17981
|
key: string;
|
|
17989
17982
|
version?: number | undefined;
|
|
17990
17983
|
}>;
|
|
17984
|
+
startingPhase: zod.ZodOptional<zod.ZodString>;
|
|
17991
17985
|
timing: zod.ZodUnion<[zod.ZodEnum<["immediate", "next_billing_cycle"]>, zod.ZodDate]>;
|
|
17992
17986
|
}, "strip", zod.ZodTypeAny, {
|
|
17993
17987
|
plan: {
|
|
@@ -18001,6 +17995,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
18001
17995
|
alignment?: {
|
|
18002
17996
|
billablesMustAlign?: boolean | undefined;
|
|
18003
17997
|
} | undefined;
|
|
17998
|
+
startingPhase?: string | undefined;
|
|
18004
17999
|
}, {
|
|
18005
18000
|
plan: {
|
|
18006
18001
|
key: string;
|
|
@@ -18013,6 +18008,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
18013
18008
|
alignment?: {
|
|
18014
18009
|
billablesMustAlign?: boolean | undefined;
|
|
18015
18010
|
} | undefined;
|
|
18011
|
+
startingPhase?: string | undefined;
|
|
18016
18012
|
}>, zod.ZodObject<{
|
|
18017
18013
|
customPlan: zod.ZodObject<{
|
|
18018
18014
|
alignment: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -19516,10 +19512,13 @@ export declare const migrateSubscriptionParams: zod.ZodObject<{
|
|
|
19516
19512
|
subscriptionId: string;
|
|
19517
19513
|
}>;
|
|
19518
19514
|
export declare const migrateSubscriptionBody: zod.ZodObject<{
|
|
19515
|
+
startingPhase: zod.ZodOptional<zod.ZodString>;
|
|
19519
19516
|
targetVersion: zod.ZodOptional<zod.ZodNumber>;
|
|
19520
19517
|
}, "strip", zod.ZodTypeAny, {
|
|
19518
|
+
startingPhase?: string | undefined;
|
|
19521
19519
|
targetVersion?: number | undefined;
|
|
19522
19520
|
}, {
|
|
19521
|
+
startingPhase?: string | undefined;
|
|
19523
19522
|
targetVersion?: number | undefined;
|
|
19524
19523
|
}>;
|
|
19525
19524
|
/**
|