@flexprice/mcp-server 2.1.31 → 2.1.32
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/bin/mcp-server.js +96 -20
- package/bin/mcp-server.js.map +25 -19
- package/bun.lock +13 -13
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.d.ts +1 -1
- package/esm/funcs/subscriptionsExecuteSubscriptionModify.js +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.d.ts +1 -1
- package/esm/funcs/subscriptionsPreviewSubscriptionModify.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.js +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js +1 -1
- package/esm/mcp-server/tools/subscriptionsExecuteSubscriptionModify.js.map +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js +1 -1
- package/esm/mcp-server/tools/subscriptionsPreviewSubscriptionModify.js.map +1 -1
- package/esm/models/addaddonrequest.d.ts +2 -0
- package/esm/models/addaddonrequest.d.ts.map +1 -1
- package/esm/models/addaddonrequest.js +2 -0
- package/esm/models/addaddonrequest.js.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.d.ts +2 -0
- package/esm/models/addaddontosubscriptionrequest.d.ts.map +1 -1
- package/esm/models/addaddontosubscriptionrequest.js +2 -0
- package/esm/models/addaddontosubscriptionrequest.js.map +1 -1
- package/esm/models/checkoutparams.d.ts +2 -0
- package/esm/models/checkoutparams.d.ts.map +1 -1
- package/esm/models/checkoutparams.js +2 -0
- package/esm/models/checkoutparams.js.map +1 -1
- package/esm/models/checkoutsessionresponse.d.ts +2 -0
- package/esm/models/checkoutsessionresponse.d.ts.map +1 -1
- package/esm/models/checkoutsessionresponse.js +2 -0
- package/esm/models/checkoutsessionresponse.js.map +1 -1
- package/esm/models/entitycreationconflictpolicies.d.ts +7 -0
- package/esm/models/entitycreationconflictpolicies.d.ts.map +1 -0
- package/esm/models/entitycreationconflictpolicies.js +9 -0
- package/esm/models/entitycreationconflictpolicies.js.map +1 -0
- package/esm/models/entitycreationoptions.d.ts +7 -0
- package/esm/models/entitycreationoptions.d.ts.map +1 -0
- package/esm/models/entitycreationoptions.js +10 -0
- package/esm/models/entitycreationoptions.js.map +1 -0
- package/esm/models/entitycreationresult.d.ts +8 -0
- package/esm/models/entitycreationresult.d.ts.map +1 -0
- package/esm/models/entitycreationresult.js +11 -0
- package/esm/models/entitycreationresult.js.map +1 -0
- package/esm/models/entitycreationstatus.d.ts +14 -0
- package/esm/models/entitycreationstatus.d.ts.map +1 -0
- package/esm/models/entitycreationstatus.js +15 -0
- package/esm/models/entitycreationstatus.js.map +1 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts +2 -0
- package/esm/models/executesubscriptionmodifyrequest.d.ts.map +1 -1
- package/esm/models/executesubscriptionmodifyrequest.js +2 -0
- package/esm/models/executesubscriptionmodifyrequest.js.map +1 -1
- package/esm/models/onexistingentitypolicy.d.ts +12 -0
- package/esm/models/onexistingentitypolicy.d.ts.map +1 -0
- package/esm/models/onexistingentitypolicy.js +13 -0
- package/esm/models/onexistingentitypolicy.js.map +1 -0
- package/esm/models/removeaddonrequest.d.ts +2 -0
- package/esm/models/removeaddonrequest.d.ts.map +1 -1
- package/esm/models/removeaddonrequest.js +2 -0
- package/esm/models/removeaddonrequest.js.map +1 -1
- package/esm/models/submodifybulkaddonparams.d.ts +9 -0
- package/esm/models/submodifybulkaddonparams.d.ts.map +1 -0
- package/esm/models/submodifybulkaddonparams.js +11 -0
- package/esm/models/submodifybulkaddonparams.js.map +1 -0
- package/esm/models/subscriptionchangeentitytype.d.ts +2 -2
- package/esm/models/subscriptionchangeentitytype.js +2 -2
- package/esm/models/subscriptionchangeentitytype.js.map +1 -1
- package/esm/models/usageanalyticitem.d.ts +1 -0
- package/esm/models/usageanalyticitem.d.ts.map +1 -1
- package/esm/models/usageanalyticitem.js +1 -0
- package/esm/models/usageanalyticitem.js.map +1 -1
- package/esm/tool-names.js +2 -2
- package/esm/tool-names.js.map +1 -1
- package/esm/tsconfig.tsbuildinfo +1 -1
- package/manifest.json +3 -3
- package/package.json +1 -1
- package/src/funcs/subscriptionsExecuteSubscriptionModify.ts +1 -1
- package/src/funcs/subscriptionsPreviewSubscriptionModify.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/subscriptionsExecuteSubscriptionModify.ts +1 -1
- package/src/mcp-server/tools/subscriptionsPreviewSubscriptionModify.ts +1 -1
- package/src/models/addaddonrequest.ts +3 -0
- package/src/models/addaddontosubscriptionrequest.ts +3 -0
- package/src/models/checkoutparams.ts +6 -0
- package/src/models/checkoutsessionresponse.ts +6 -0
- package/src/models/entitycreationconflictpolicies.ts +19 -0
- package/src/models/entitycreationoptions.ts +21 -0
- package/src/models/entitycreationresult.ts +20 -0
- package/src/models/entitycreationstatus.ts +19 -0
- package/src/models/executesubscriptionmodifyrequest.ts +6 -0
- package/src/models/onexistingentitypolicy.ts +17 -0
- package/src/models/removeaddonrequest.ts +3 -0
- package/src/models/submodifybulkaddonparams.ts +25 -0
- package/src/models/subscriptionchangeentitytype.ts +2 -2
- package/src/models/usageanalyticitem.ts +4 -0
- package/src/tool-names.ts +2 -2
package/manifest.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"sensitive": true
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"version": "2.1.
|
|
51
|
+
"version": "2.1.32",
|
|
52
52
|
"tools": [
|
|
53
53
|
{
|
|
54
54
|
"name": "update-customer",
|
|
@@ -336,11 +336,11 @@
|
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"name": "execute-subscription-modify",
|
|
339
|
-
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
339
|
+
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes settled as one netted document)."
|
|
340
340
|
},
|
|
341
341
|
{
|
|
342
342
|
"name": "preview-subscription-modify",
|
|
343
|
-
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
343
|
+
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes) without committing changes."
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
346
|
"name": "list-subscription-schedules",
|
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Execute subscription modification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
32
|
+
* Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes settled as one netted document).
|
|
33
33
|
*/
|
|
34
34
|
export function subscriptionsExecuteSubscriptionModify(
|
|
35
35
|
client$: FlexpriceCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Preview subscription modification
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
32
|
+
* Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes) without committing changes.
|
|
33
33
|
*/
|
|
34
34
|
export function subscriptionsPreviewSubscriptionModify(
|
|
35
35
|
client$: FlexpriceCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "1.0",
|
|
72
|
-
sdkVersion: "2.1.
|
|
72
|
+
sdkVersion: "2.1.32",
|
|
73
73
|
genVersion: "2.938.0",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/mcp-typescript 2.1.
|
|
75
|
+
"speakeasy-sdk/mcp-typescript 2.1.32 2.938.0 1.0 @flexprice/mcp-server",
|
|
76
76
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -16,7 +16,7 @@ export const tool$subscriptionsExecuteSubscriptionModify: ToolDefinition<
|
|
|
16
16
|
name: "execute-subscription-modify",
|
|
17
17
|
description: `Execute subscription modification
|
|
18
18
|
|
|
19
|
-
Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
19
|
+
Execute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes settled as one netted document).`,
|
|
20
20
|
scopes: ["write"],
|
|
21
21
|
annotations: {
|
|
22
22
|
"title": "",
|
|
@@ -16,7 +16,7 @@ export const tool$subscriptionsPreviewSubscriptionModify: ToolDefinition<
|
|
|
16
16
|
name: "preview-subscription-modify",
|
|
17
17
|
description: `Preview subscription modification
|
|
18
18
|
|
|
19
|
-
Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
19
|
+
Preview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes) without committing changes.`,
|
|
20
20
|
scopes: ["read"],
|
|
21
21
|
annotations: {
|
|
22
22
|
"title": "",
|
|
@@ -17,10 +17,12 @@ import {
|
|
|
17
17
|
ProrationBehavior,
|
|
18
18
|
ProrationBehavior$zodSchema,
|
|
19
19
|
} from "./prorationbehavior.js";
|
|
20
|
+
import { ScheduleType, ScheduleType$zodSchema } from "./scheduletype.js";
|
|
20
21
|
|
|
21
22
|
export type AddAddonRequest = {
|
|
22
23
|
addon_id: string;
|
|
23
24
|
cadence?: AddonCadence | undefined;
|
|
25
|
+
change_at?: ScheduleType | undefined;
|
|
24
26
|
checkout?: CheckoutParams | undefined;
|
|
25
27
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
26
28
|
metadata?: { [k: string]: any } | undefined;
|
|
@@ -33,6 +35,7 @@ export type AddAddonRequest = {
|
|
|
33
35
|
export const AddAddonRequest$zodSchema: z.ZodType<AddAddonRequest> = z.object({
|
|
34
36
|
addon_id: z.string(),
|
|
35
37
|
cadence: AddonCadence$zodSchema.optional(),
|
|
38
|
+
change_at: ScheduleType$zodSchema.optional(),
|
|
36
39
|
checkout: CheckoutParams$zodSchema.optional(),
|
|
37
40
|
line_item_commitments: z.record(
|
|
38
41
|
z.string(),
|
|
@@ -16,10 +16,12 @@ import {
|
|
|
16
16
|
ProrationBehavior,
|
|
17
17
|
ProrationBehavior$zodSchema,
|
|
18
18
|
} from "./prorationbehavior.js";
|
|
19
|
+
import { ScheduleType, ScheduleType$zodSchema } from "./scheduletype.js";
|
|
19
20
|
|
|
20
21
|
export type AddAddonToSubscriptionRequest = {
|
|
21
22
|
addon_id: string;
|
|
22
23
|
cadence?: AddonCadence | undefined;
|
|
24
|
+
change_at?: ScheduleType | undefined;
|
|
23
25
|
line_item_commitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
24
26
|
metadata?: { [k: string]: any } | undefined;
|
|
25
27
|
override_line_items?: Array<OverrideLineItemRequest> | undefined;
|
|
@@ -32,6 +34,7 @@ export const AddAddonToSubscriptionRequest$zodSchema: z.ZodType<
|
|
|
32
34
|
> = z.object({
|
|
33
35
|
addon_id: z.string(),
|
|
34
36
|
cadence: AddonCadence$zodSchema.optional(),
|
|
37
|
+
change_at: ScheduleType$zodSchema.optional(),
|
|
35
38
|
line_item_commitments: z.record(
|
|
36
39
|
z.string(),
|
|
37
40
|
LineItemCommitmentConfig$zodSchema,
|
|
@@ -11,9 +11,14 @@ import {
|
|
|
11
11
|
CheckoutPaymentProviderConfig,
|
|
12
12
|
CheckoutPaymentProviderConfig$zodSchema,
|
|
13
13
|
} from "./checkoutpaymentproviderconfig.js";
|
|
14
|
+
import {
|
|
15
|
+
EntityCreationOptions,
|
|
16
|
+
EntityCreationOptions$zodSchema,
|
|
17
|
+
} from "./entitycreationoptions.js";
|
|
14
18
|
|
|
15
19
|
export type CheckoutParams = {
|
|
16
20
|
cancel_url?: string | undefined;
|
|
21
|
+
entity_creation_options?: EntityCreationOptions | undefined;
|
|
17
22
|
failure_url?: string | undefined;
|
|
18
23
|
idempotency_key?: string | undefined;
|
|
19
24
|
metadata?: { [k: string]: string } | undefined;
|
|
@@ -24,6 +29,7 @@ export type CheckoutParams = {
|
|
|
24
29
|
|
|
25
30
|
export const CheckoutParams$zodSchema: z.ZodType<CheckoutParams> = z.object({
|
|
26
31
|
cancel_url: z.string().optional(),
|
|
32
|
+
entity_creation_options: EntityCreationOptions$zodSchema.optional(),
|
|
27
33
|
failure_url: z.string().optional(),
|
|
28
34
|
idempotency_key: z.string().optional(),
|
|
29
35
|
metadata: z.record(z.string(), z.string()).optional(),
|
|
@@ -13,6 +13,10 @@ import {
|
|
|
13
13
|
CheckoutPaymentProvider$zodSchema,
|
|
14
14
|
} from "./checkoutpaymentprovider.js";
|
|
15
15
|
import { CheckoutStatus, CheckoutStatus$zodSchema } from "./checkoutstatus.js";
|
|
16
|
+
import {
|
|
17
|
+
EntityCreationResult,
|
|
18
|
+
EntityCreationResult$zodSchema,
|
|
19
|
+
} from "./entitycreationresult.js";
|
|
16
20
|
import { PaymentAction, PaymentAction$zodSchema } from "./paymentaction.js";
|
|
17
21
|
|
|
18
22
|
export type CheckoutSessionResponse = {
|
|
@@ -25,6 +29,7 @@ export type CheckoutSessionResponse = {
|
|
|
25
29
|
completed_at?: string | undefined;
|
|
26
30
|
created_at?: string | undefined;
|
|
27
31
|
customer_id?: string | undefined;
|
|
32
|
+
entity_creation_result?: EntityCreationResult | undefined;
|
|
28
33
|
expires_at?: string | undefined;
|
|
29
34
|
failure_reason?: string | undefined;
|
|
30
35
|
failure_url?: string | undefined;
|
|
@@ -53,6 +58,7 @@ export const CheckoutSessionResponse$zodSchema: z.ZodType<
|
|
|
53
58
|
completed_at: z.iso.datetime({ offset: true }).optional(),
|
|
54
59
|
created_at: z.iso.datetime({ offset: true }).optional(),
|
|
55
60
|
customer_id: z.string().optional(),
|
|
61
|
+
entity_creation_result: EntityCreationResult$zodSchema.optional(),
|
|
56
62
|
expires_at: z.iso.datetime({ offset: true }).optional(),
|
|
57
63
|
failure_reason: z.string().optional(),
|
|
58
64
|
failure_url: z.string().optional(),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
OnExistingEntityPolicy,
|
|
8
|
+
OnExistingEntityPolicy$zodSchema,
|
|
9
|
+
} from "./onexistingentitypolicy.js";
|
|
10
|
+
|
|
11
|
+
export type EntityCreationConflictPolicies = {
|
|
12
|
+
on_existing_entity?: OnExistingEntityPolicy | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const EntityCreationConflictPolicies$zodSchema: z.ZodType<
|
|
16
|
+
EntityCreationConflictPolicies
|
|
17
|
+
> = z.object({
|
|
18
|
+
on_existing_entity: OnExistingEntityPolicy$zodSchema.optional(),
|
|
19
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
EntityCreationConflictPolicies,
|
|
8
|
+
EntityCreationConflictPolicies$zodSchema,
|
|
9
|
+
} from "./entitycreationconflictpolicies.js";
|
|
10
|
+
|
|
11
|
+
export type EntityCreationOptions = {
|
|
12
|
+
entity_creation_conflict_policies?:
|
|
13
|
+
| EntityCreationConflictPolicies
|
|
14
|
+
| undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const EntityCreationOptions$zodSchema: z.ZodType<EntityCreationOptions> =
|
|
18
|
+
z.object({
|
|
19
|
+
entity_creation_conflict_policies: EntityCreationConflictPolicies$zodSchema
|
|
20
|
+
.optional(),
|
|
21
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
EntityCreationStatus,
|
|
8
|
+
EntityCreationStatus$zodSchema,
|
|
9
|
+
} from "./entitycreationstatus.js";
|
|
10
|
+
|
|
11
|
+
export type EntityCreationResult = {
|
|
12
|
+
entity_id?: string | undefined;
|
|
13
|
+
status?: EntityCreationStatus | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const EntityCreationResult$zodSchema: z.ZodType<EntityCreationResult> = z
|
|
17
|
+
.object({
|
|
18
|
+
entity_id: z.string().optional(),
|
|
19
|
+
status: EntityCreationStatus$zodSchema.optional(),
|
|
20
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const EntityCreationStatus = {
|
|
9
|
+
Created: "created",
|
|
10
|
+
Superseded: "superseded",
|
|
11
|
+
FailedAlreadyExists: "failed_already_exists",
|
|
12
|
+
} as const;
|
|
13
|
+
export type EntityCreationStatus = ClosedEnum<typeof EntityCreationStatus>;
|
|
14
|
+
|
|
15
|
+
export const EntityCreationStatus$zodSchema = z.enum([
|
|
16
|
+
"created",
|
|
17
|
+
"superseded",
|
|
18
|
+
"failed_already_exists",
|
|
19
|
+
]);
|
|
@@ -8,6 +8,10 @@ import {
|
|
|
8
8
|
SubModifyAddonParams,
|
|
9
9
|
SubModifyAddonParams$zodSchema,
|
|
10
10
|
} from "./submodifyaddonparams.js";
|
|
11
|
+
import {
|
|
12
|
+
SubModifyBulkAddonParams,
|
|
13
|
+
SubModifyBulkAddonParams$zodSchema,
|
|
14
|
+
} from "./submodifybulkaddonparams.js";
|
|
11
15
|
import {
|
|
12
16
|
SubModifyCouponParams,
|
|
13
17
|
SubModifyCouponParams$zodSchema,
|
|
@@ -38,6 +42,7 @@ import {
|
|
|
38
42
|
} from "./subscriptionmodifytype.js";
|
|
39
43
|
|
|
40
44
|
export type ExecuteSubscriptionModifyRequest = {
|
|
45
|
+
addon_bulk_params?: SubModifyBulkAddonParams | undefined;
|
|
41
46
|
addon_params?: SubModifyAddonParams | undefined;
|
|
42
47
|
checkout?: CheckoutParams | undefined;
|
|
43
48
|
coupon_params?: SubModifyCouponParams | undefined;
|
|
@@ -52,6 +57,7 @@ export type ExecuteSubscriptionModifyRequest = {
|
|
|
52
57
|
export const ExecuteSubscriptionModifyRequest$zodSchema: z.ZodType<
|
|
53
58
|
ExecuteSubscriptionModifyRequest
|
|
54
59
|
> = z.object({
|
|
60
|
+
addon_bulk_params: SubModifyBulkAddonParams$zodSchema.optional(),
|
|
55
61
|
addon_params: SubModifyAddonParams$zodSchema.optional(),
|
|
56
62
|
checkout: CheckoutParams$zodSchema.optional(),
|
|
57
63
|
coupon_params: SubModifyCouponParams$zodSchema.optional(),
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const OnExistingEntityPolicy = {
|
|
9
|
+
Reject: "reject",
|
|
10
|
+
Supersede: "supersede",
|
|
11
|
+
} as const;
|
|
12
|
+
export type OnExistingEntityPolicy = ClosedEnum<typeof OnExistingEntityPolicy>;
|
|
13
|
+
|
|
14
|
+
export const OnExistingEntityPolicy$zodSchema = z.enum([
|
|
15
|
+
"reject",
|
|
16
|
+
"supersede",
|
|
17
|
+
]);
|
|
@@ -7,9 +7,11 @@ import {
|
|
|
7
7
|
ProrationBehavior,
|
|
8
8
|
ProrationBehavior$zodSchema,
|
|
9
9
|
} from "./prorationbehavior.js";
|
|
10
|
+
import { ScheduleType, ScheduleType$zodSchema } from "./scheduletype.js";
|
|
10
11
|
|
|
11
12
|
export type RemoveAddonRequest = {
|
|
12
13
|
addon_association_id: string;
|
|
14
|
+
change_at?: ScheduleType | undefined;
|
|
13
15
|
effective_date?: string | undefined;
|
|
14
16
|
proration_behavior?: ProrationBehavior | undefined;
|
|
15
17
|
reason?: string | undefined;
|
|
@@ -18,6 +20,7 @@ export type RemoveAddonRequest = {
|
|
|
18
20
|
export const RemoveAddonRequest$zodSchema: z.ZodType<RemoveAddonRequest> = z
|
|
19
21
|
.object({
|
|
20
22
|
addon_association_id: z.string(),
|
|
23
|
+
change_at: ScheduleType$zodSchema.optional(),
|
|
21
24
|
effective_date: z.iso.datetime({ offset: true }).optional().describe(
|
|
22
25
|
"EffectiveDate defaults to period end when nil; mid-period with create_prorations issues a wallet credit.",
|
|
23
26
|
),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import {
|
|
7
|
+
AddAddonToSubscriptionRequest,
|
|
8
|
+
AddAddonToSubscriptionRequest$zodSchema,
|
|
9
|
+
} from "./addaddontosubscriptionrequest.js";
|
|
10
|
+
import {
|
|
11
|
+
RemoveAddonRequest,
|
|
12
|
+
RemoveAddonRequest$zodSchema,
|
|
13
|
+
} from "./removeaddonrequest.js";
|
|
14
|
+
|
|
15
|
+
export type SubModifyBulkAddonParams = {
|
|
16
|
+
adds?: Array<AddAddonToSubscriptionRequest> | undefined;
|
|
17
|
+
removes?: Array<RemoveAddonRequest> | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const SubModifyBulkAddonParams$zodSchema: z.ZodType<
|
|
21
|
+
SubModifyBulkAddonParams
|
|
22
|
+
> = z.object({
|
|
23
|
+
adds: z.array(AddAddonToSubscriptionRequest$zodSchema).optional(),
|
|
24
|
+
removes: z.array(RemoveAddonRequest$zodSchema).optional(),
|
|
25
|
+
});
|
|
@@ -7,7 +7,7 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
7
7
|
|
|
8
8
|
export const SubscriptionChangeEntityType = {
|
|
9
9
|
Plan: "plan",
|
|
10
|
-
|
|
10
|
+
AddonAssociation: "addon_association",
|
|
11
11
|
CreditGrant: "credit_grant",
|
|
12
12
|
Entitlement: "entitlement",
|
|
13
13
|
EntitlementGrant: "entitlement_grant",
|
|
@@ -18,7 +18,7 @@ export type SubscriptionChangeEntityType = ClosedEnum<
|
|
|
18
18
|
|
|
19
19
|
export const SubscriptionChangeEntityType$zodSchema = z.enum([
|
|
20
20
|
"plan",
|
|
21
|
-
"
|
|
21
|
+
"addon_association",
|
|
22
22
|
"credit_grant",
|
|
23
23
|
"entitlement",
|
|
24
24
|
"entitlement_grant",
|
|
@@ -35,6 +35,7 @@ export type UsageAnalyticItem = {
|
|
|
35
35
|
currency?: string | undefined;
|
|
36
36
|
event_count?: number | undefined;
|
|
37
37
|
event_name?: string | undefined;
|
|
38
|
+
external_customer_id?: string | undefined;
|
|
38
39
|
feature?: Feature | undefined;
|
|
39
40
|
feature_id?: string | undefined;
|
|
40
41
|
group?: GroupGroup | undefined;
|
|
@@ -77,6 +78,9 @@ export const UsageAnalyticItem$zodSchema: z.ZodType<UsageAnalyticItem> = z
|
|
|
77
78
|
"Number of events that contributed to this aggregation",
|
|
78
79
|
),
|
|
79
80
|
event_name: z.string().optional(),
|
|
81
|
+
external_customer_id: z.string().optional().describe(
|
|
82
|
+
"Populated only when \"external_customer_id\" is a group_by dimension",
|
|
83
|
+
),
|
|
80
84
|
feature: Feature$zodSchema.optional(),
|
|
81
85
|
feature_id: z.string().optional(),
|
|
82
86
|
group: GroupGroup$zodSchema.optional(),
|
package/src/tool-names.ts
CHANGED
|
@@ -286,11 +286,11 @@ export const toolNames: Array<{ name: string; description: string }>= [
|
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
"name": "execute-subscription-modify",
|
|
289
|
-
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
289
|
+
"description": "Execute subscription modification\n\nExecute a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes settled as one netted document)."
|
|
290
290
|
},
|
|
291
291
|
{
|
|
292
292
|
"name": "preview-subscription-modify",
|
|
293
|
-
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax,
|
|
293
|
+
"description": "Preview subscription modification\n\nPreview the impact of a mid-cycle subscription modification (inheritance, quantity change, grouped invoicing, trial end, coupon, tax, a single addon add/remove, or a batch of addon adds and removes) without committing changes."
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
296
|
"name": "list-subscription-schedules",
|