@openmeter/sdk 1.0.0-beta-c515b5582c71 → 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 +11 -0
- package/dist/cjs/src/zod/index.cjs +20 -1
- package/dist/cjs/src/zod/index.d.cts +9 -0
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.90d0564e.tsbuildinfo → tsconfig.b371f9d1.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.98c697fe.tsbuildinfo → tsconfig.f42b3c3f.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +11 -0
- package/dist/src/zod/index.d.ts +9 -0
- package/dist/src/zod/index.js +20 -1
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -8047,6 +8047,9 @@ export interface components {
|
|
|
8047
8047
|
metadata?: components['schemas']['Metadata'];
|
|
8048
8048
|
/** @description The plan reference to change to. */
|
|
8049
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;
|
|
8050
8053
|
/** @description The name of the Subscription. If not provided the plan name is used. */
|
|
8051
8054
|
name?: string;
|
|
8052
8055
|
/** @description Description for the Subscription. */
|
|
@@ -8060,6 +8063,9 @@ export interface components {
|
|
|
8060
8063
|
metadata?: components['schemas']['Metadata'];
|
|
8061
8064
|
/** @description The plan reference to change to. */
|
|
8062
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;
|
|
8063
8069
|
/** @description The name of the Subscription. If not provided the plan name is used. */
|
|
8064
8070
|
name?: string;
|
|
8065
8071
|
/** @description Description for the Subscription. */
|
|
@@ -23078,7 +23084,12 @@ export interface operations {
|
|
|
23078
23084
|
requestBody: {
|
|
23079
23085
|
content: {
|
|
23080
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. */
|
|
23081
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;
|
|
23082
23093
|
};
|
|
23083
23094
|
};
|
|
23084
23095
|
};
|
|
@@ -9357,6 +9357,11 @@ exports.createSubscriptionBody = zod_1.z
|
|
|
9357
9357
|
})
|
|
9358
9358
|
.describe('References an exact plan defaulting to the current active version.')
|
|
9359
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.'),
|
|
9360
9365
|
timing: zod_1.z
|
|
9361
9366
|
.enum(['immediate', 'next_billing_cycle'])
|
|
9362
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.')
|
|
@@ -10886,6 +10891,11 @@ exports.changeSubscriptionBody = zod_1.z
|
|
|
10886
10891
|
})
|
|
10887
10892
|
.describe('References an exact plan defaulting to the current active version.')
|
|
10888
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.'),
|
|
10889
10899
|
timing: zod_1.z
|
|
10890
10900
|
.enum(['immediate', 'next_billing_cycle'])
|
|
10891
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.')
|
|
@@ -11481,7 +11491,16 @@ exports.migrateSubscriptionParams = zod_1.z.object({
|
|
|
11481
11491
|
.regex(exports.migrateSubscriptionPathSubscriptionIdRegExp),
|
|
11482
11492
|
});
|
|
11483
11493
|
exports.migrateSubscriptionBody = zod_1.z.object({
|
|
11484
|
-
|
|
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.'),
|
|
11485
11504
|
});
|
|
11486
11505
|
/**
|
|
11487
11506
|
* Restores a canceled subscription.
|
|
@@ -14769,6 +14769,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
14769
14769
|
key: string;
|
|
14770
14770
|
version?: number | undefined;
|
|
14771
14771
|
}>;
|
|
14772
|
+
startingPhase: zod.ZodOptional<zod.ZodString>;
|
|
14772
14773
|
timing: zod.ZodDefault<zod.ZodUnion<[zod.ZodEnum<["immediate", "next_billing_cycle"]>, zod.ZodDate]>>;
|
|
14773
14774
|
}, "strip", zod.ZodTypeAny, {
|
|
14774
14775
|
plan: {
|
|
@@ -14784,6 +14785,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
14784
14785
|
alignment?: {
|
|
14785
14786
|
billablesMustAlign?: boolean | undefined;
|
|
14786
14787
|
} | undefined;
|
|
14788
|
+
startingPhase?: string | undefined;
|
|
14787
14789
|
}, {
|
|
14788
14790
|
plan: {
|
|
14789
14791
|
key: string;
|
|
@@ -14797,6 +14799,7 @@ export declare const createSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
14797
14799
|
alignment?: {
|
|
14798
14800
|
billablesMustAlign?: boolean | undefined;
|
|
14799
14801
|
} | undefined;
|
|
14802
|
+
startingPhase?: string | undefined;
|
|
14800
14803
|
timing?: Date | "immediate" | "next_billing_cycle" | undefined;
|
|
14801
14804
|
}>, zod.ZodObject<{
|
|
14802
14805
|
customerId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -17978,6 +17981,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
17978
17981
|
key: string;
|
|
17979
17982
|
version?: number | undefined;
|
|
17980
17983
|
}>;
|
|
17984
|
+
startingPhase: zod.ZodOptional<zod.ZodString>;
|
|
17981
17985
|
timing: zod.ZodUnion<[zod.ZodEnum<["immediate", "next_billing_cycle"]>, zod.ZodDate]>;
|
|
17982
17986
|
}, "strip", zod.ZodTypeAny, {
|
|
17983
17987
|
plan: {
|
|
@@ -17991,6 +17995,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
17991
17995
|
alignment?: {
|
|
17992
17996
|
billablesMustAlign?: boolean | undefined;
|
|
17993
17997
|
} | undefined;
|
|
17998
|
+
startingPhase?: string | undefined;
|
|
17994
17999
|
}, {
|
|
17995
18000
|
plan: {
|
|
17996
18001
|
key: string;
|
|
@@ -18003,6 +18008,7 @@ export declare const changeSubscriptionBody: zod.ZodUnion<[zod.ZodObject<{
|
|
|
18003
18008
|
alignment?: {
|
|
18004
18009
|
billablesMustAlign?: boolean | undefined;
|
|
18005
18010
|
} | undefined;
|
|
18011
|
+
startingPhase?: string | undefined;
|
|
18006
18012
|
}>, zod.ZodObject<{
|
|
18007
18013
|
customPlan: zod.ZodObject<{
|
|
18008
18014
|
alignment: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -19506,10 +19512,13 @@ export declare const migrateSubscriptionParams: zod.ZodObject<{
|
|
|
19506
19512
|
subscriptionId: string;
|
|
19507
19513
|
}>;
|
|
19508
19514
|
export declare const migrateSubscriptionBody: zod.ZodObject<{
|
|
19515
|
+
startingPhase: zod.ZodOptional<zod.ZodString>;
|
|
19509
19516
|
targetVersion: zod.ZodOptional<zod.ZodNumber>;
|
|
19510
19517
|
}, "strip", zod.ZodTypeAny, {
|
|
19518
|
+
startingPhase?: string | undefined;
|
|
19511
19519
|
targetVersion?: number | undefined;
|
|
19512
19520
|
}, {
|
|
19521
|
+
startingPhase?: string | undefined;
|
|
19513
19522
|
targetVersion?: number | undefined;
|
|
19514
19523
|
}>;
|
|
19515
19524
|
/**
|