@meetkai/mka1 0.54.65 → 0.54.66

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.
Files changed (53) hide show
  1. package/bin/mcp-server.js +23 -8
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/funcs/sandboxSetPricing.d.ts +1 -1
  4. package/dist/commonjs/funcs/sandboxSetPricing.js +1 -1
  5. package/dist/commonjs/lib/config.d.ts +2 -2
  6. package/dist/commonjs/lib/config.js +2 -2
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/server.js +1 -1
  9. package/dist/commonjs/mcp-server/tools/sandboxSetPricing.js +1 -1
  10. package/dist/commonjs/mcp-server/tools/sandboxSetPricing.js.map +1 -1
  11. package/dist/commonjs/models/components/sandboxpricingcard.d.ts +2 -0
  12. package/dist/commonjs/models/components/sandboxpricingcard.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/sandboxpricingcard.js +2 -0
  14. package/dist/commonjs/models/components/sandboxpricingcard.js.map +1 -1
  15. package/dist/commonjs/models/components/sandboxpricingupdate.d.ts +11 -1
  16. package/dist/commonjs/models/components/sandboxpricingupdate.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/sandboxpricingupdate.js +13 -0
  18. package/dist/commonjs/models/components/sandboxpricingupdate.js.map +1 -1
  19. package/dist/commonjs/react-query/sandboxSetPricing.d.ts +1 -1
  20. package/dist/commonjs/react-query/sandboxSetPricing.js +1 -1
  21. package/dist/commonjs/sdk/sandbox.d.ts +1 -1
  22. package/dist/commonjs/sdk/sandbox.js +1 -1
  23. package/dist/esm/funcs/sandboxSetPricing.d.ts +1 -1
  24. package/dist/esm/funcs/sandboxSetPricing.js +1 -1
  25. package/dist/esm/lib/config.d.ts +2 -2
  26. package/dist/esm/lib/config.js +2 -2
  27. package/dist/esm/mcp-server/mcp-server.js +1 -1
  28. package/dist/esm/mcp-server/server.js +1 -1
  29. package/dist/esm/mcp-server/tools/sandboxSetPricing.js +1 -1
  30. package/dist/esm/mcp-server/tools/sandboxSetPricing.js.map +1 -1
  31. package/dist/esm/models/components/sandboxpricingcard.d.ts +2 -0
  32. package/dist/esm/models/components/sandboxpricingcard.d.ts.map +1 -1
  33. package/dist/esm/models/components/sandboxpricingcard.js +2 -0
  34. package/dist/esm/models/components/sandboxpricingcard.js.map +1 -1
  35. package/dist/esm/models/components/sandboxpricingupdate.d.ts +11 -1
  36. package/dist/esm/models/components/sandboxpricingupdate.d.ts.map +1 -1
  37. package/dist/esm/models/components/sandboxpricingupdate.js +13 -0
  38. package/dist/esm/models/components/sandboxpricingupdate.js.map +1 -1
  39. package/dist/esm/react-query/sandboxSetPricing.d.ts +1 -1
  40. package/dist/esm/react-query/sandboxSetPricing.js +1 -1
  41. package/dist/esm/sdk/sandbox.d.ts +1 -1
  42. package/dist/esm/sdk/sandbox.js +1 -1
  43. package/jsr.json +1 -1
  44. package/package.json +1 -1
  45. package/src/funcs/sandboxSetPricing.ts +1 -1
  46. package/src/lib/config.ts +2 -2
  47. package/src/mcp-server/mcp-server.ts +1 -1
  48. package/src/mcp-server/server.ts +1 -1
  49. package/src/mcp-server/tools/sandboxSetPricing.ts +1 -1
  50. package/src/models/components/sandboxpricingcard.ts +4 -0
  51. package/src/models/components/sandboxpricingupdate.ts +24 -1
  52. package/src/react-query/sandboxSetPricing.ts +1 -1
  53. package/src/sdk/sandbox.ts +1 -1
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Set Sandbox Pricing
13
13
  *
14
14
  * @remarks
15
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
15
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
16
16
  *
17
17
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
18
18
  */
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
51
51
  * Set Sandbox Pricing
52
52
  *
53
53
  * @remarks
54
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
54
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
55
55
  *
56
56
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
57
57
  */
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "1.1.0";
34
- readonly sdkVersion: "0.54.65";
34
+ readonly sdkVersion: "0.54.66";
35
35
  readonly genVersion: "2.943.0";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.54.65 2.943.0 1.1.0 @meetkai/mka1";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.54.66 2.943.0 1.1.0 @meetkai/mka1";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
35
35
  exports.SDK_METADATA = {
36
36
  language: "typescript",
37
37
  openapiDocVersion: "1.1.0",
38
- sdkVersion: "0.54.65",
38
+ sdkVersion: "0.54.66",
39
39
  genVersion: "2.943.0",
40
- userAgent: "speakeasy-sdk/typescript 0.54.65 2.943.0 1.1.0 @meetkai/mka1",
40
+ userAgent: "speakeasy-sdk/typescript 0.54.66 2.943.0 1.1.0 @meetkai/mka1",
41
41
  };
42
42
  //# sourceMappingURL=config.js.map
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
22
22
  exports.app = (0, core_1.buildApplication)(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "0.54.65",
25
+ currentVersion: "0.54.66",
26
26
  },
27
27
  });
28
28
  (0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
@@ -461,7 +461,7 @@ const usageSandbox_js_1 = require("./tools/usageSandbox.js");
461
461
  function createMCPServer(deps) {
462
462
  const server = new mcp_js_1.McpServer({
463
463
  name: "SDK",
464
- version: "0.54.65",
464
+ version: "0.54.66",
465
465
  });
466
466
  const client = new core_js_1.SDKCore({
467
467
  bearerAuth: deps.bearerAuth,
@@ -47,7 +47,7 @@ exports.tool$sandboxSetPricing = {
47
47
  name: "sandbox-set-pricing",
48
48
  description: `Set Sandbox Pricing
49
49
 
50
- Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.`,
50
+ Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless \`allow_unpriced\` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A \`currency\` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.`,
51
51
  args,
52
52
  tool: async (client, args, ctx) => {
53
53
  const [result, apiCall] = await (0, sandboxSetPricing_js_1.sandboxSetPricing)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxSetPricing.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/sandboxSetPricing.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2EAAqE;AACrE,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI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CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,wCAAiB,EAC/C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -4,6 +4,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { SandboxPriceRate, SandboxPriceRate$Outbound } from "./sandboxpricerate.js";
5
5
  export type SandboxPricingCard = {
6
6
  object?: "sandbox.pricing" | undefined;
7
+ currency?: string | null | undefined;
7
8
  rates?: {
8
9
  [k: string]: SandboxPriceRate;
9
10
  } | undefined;
@@ -15,6 +16,7 @@ export declare const SandboxPricingCard$inboundSchema: z.ZodType<SandboxPricingC
15
16
  /** @internal */
16
17
  export type SandboxPricingCard$Outbound = {
17
18
  object: "sandbox.pricing";
19
+ currency?: string | null | undefined;
18
20
  rates?: {
19
21
  [k: string]: SandboxPriceRate$Outbound;
20
22
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingcard.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingcard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB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Z,kBAAkB,CAYlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -46,6 +46,7 @@ const sandboxpricerate_js_1 = require("./sandboxpricerate.js");
46
46
  /** @internal */
47
47
  exports.SandboxPricingCard$inboundSchema = z.object({
48
48
  object: z.literal("sandbox.pricing").default("sandbox.pricing"),
49
+ currency: z.nullable(z.string()).optional(),
49
50
  rates: z.record(sandboxpricerate_js_1.SandboxPriceRate$inboundSchema).optional(),
50
51
  updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
51
52
  updated_by: z.nullable(z.string()).optional(),
@@ -58,6 +59,7 @@ exports.SandboxPricingCard$inboundSchema = z.object({
58
59
  /** @internal */
59
60
  exports.SandboxPricingCard$outboundSchema = z.object({
60
61
  object: z.literal("sandbox.pricing").default("sandbox.pricing"),
62
+ currency: z.nullable(z.string()).optional(),
61
63
  rates: z.record(sandboxpricerate_js_1.SandboxPriceRate$outboundSchema).optional(),
62
64
  updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
63
65
  updatedBy: z.nullable(z.string()).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingcard.js","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingcard.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,4DAMC;AACD,gEAQC;AA7ED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,+DAK+B;AAS/B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IAC/D,KA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AC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -3,12 +3,20 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { SandboxPriceRate, SandboxPriceRate$Outbound } from "./sandboxpricerate.js";
5
5
  /**
6
- * Full-replace rate card update; omitted SKUs become unpriced.
6
+ * Full-replace rate card update.
7
+ *
8
+ * @remarks
9
+ *
10
+ * A SKU that has a price and is omitted here would become unpriced, and its
11
+ * usage would then be recorded with no cost, which can never be billed. That
12
+ * is refused unless ``allow_unpriced`` says it is intended.
7
13
  */
8
14
  export type SandboxPricingUpdate = {
9
15
  rates: {
10
16
  [k: string]: SandboxPriceRate;
11
17
  };
18
+ currency?: string | null | undefined;
19
+ allowUnpriced?: boolean | undefined;
12
20
  };
13
21
  /** @internal */
14
22
  export declare const SandboxPricingUpdate$inboundSchema: z.ZodType<SandboxPricingUpdate, z.ZodTypeDef, unknown>;
@@ -17,6 +25,8 @@ export type SandboxPricingUpdate$Outbound = {
17
25
  rates: {
18
26
  [k: string]: SandboxPriceRate$Outbound;
19
27
  };
28
+ currency?: string | null | undefined;
29
+ allow_unpriced: boolean;
20
30
  };
21
31
  /** @internal */
22
32
  export declare const SandboxPricingUpdate$outboundSchema: z.ZodType<SandboxPricingUpdate$Outbound, z.ZodTypeDef, SandboxPricingUpdate>;
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingupdate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE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IAAI,GAAG,SAAS,CAAC;IACrC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CASpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -40,15 +40,28 @@ exports.SandboxPricingUpdate$outboundSchema = exports.SandboxPricingUpdate$inbou
40
40
  exports.sandboxPricingUpdateToJSON = sandboxPricingUpdateToJSON;
41
41
  exports.sandboxPricingUpdateFromJSON = sandboxPricingUpdateFromJSON;
42
42
  const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
43
44
  const schemas_js_1 = require("../../lib/schemas.js");
44
45
  const sandboxpricerate_js_1 = require("./sandboxpricerate.js");
45
46
  /** @internal */
46
47
  exports.SandboxPricingUpdate$inboundSchema = z.object({
47
48
  rates: z.record(sandboxpricerate_js_1.SandboxPriceRate$inboundSchema),
49
+ currency: z.nullable(z.string()).optional(),
50
+ allow_unpriced: z.boolean().default(false),
51
+ }).transform((v) => {
52
+ return (0, primitives_js_1.remap)(v, {
53
+ "allow_unpriced": "allowUnpriced",
54
+ });
48
55
  });
49
56
  /** @internal */
50
57
  exports.SandboxPricingUpdate$outboundSchema = z.object({
51
58
  rates: z.record(sandboxpricerate_js_1.SandboxPriceRate$outboundSchema),
59
+ currency: z.nullable(z.string()).optional(),
60
+ allowUnpriced: z.boolean().default(false),
61
+ }).transform((v) => {
62
+ return (0, primitives_js_1.remap)(v, {
63
+ allowUnpriced: "allow_unpriced",
64
+ });
52
65
  });
53
66
  function sandboxPricingUpdateToJSON(sandboxPricingUpdate) {
54
67
  return JSON.stringify(exports.SandboxPricingUpdate$outboundSchema.parse(sandboxPricingUpdate));
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingupdate.js","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CH,gEAMC;AACD,oEAQC;AAvDD,0CAA4B;AAC5B,qDAAiD;AAGjD,+DAK+B;AAS/B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,oDAA8B,CAAC;CAChD,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,qDAA+B,CAAC;CACjD,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AACD,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,C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BAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AACD,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -18,7 +18,7 @@ export type SandboxSetPricingMutationError = errors.HTTPValidationError | SDKErr
18
18
  * Set Sandbox Pricing
19
19
  *
20
20
  * @remarks
21
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
21
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
22
22
  */
23
23
  export declare function useSandboxSetPricingMutation(options?: MutationHookOptions<SandboxSetPricingMutationData, SandboxSetPricingMutationError, SandboxSetPricingMutationVariables>): UseMutationResult<SandboxSetPricingMutationData, SandboxSetPricingMutationError, SandboxSetPricingMutationVariables>;
24
24
  export declare function mutationKeySandboxSetPricing(): MutationKey;
@@ -15,7 +15,7 @@ const _context_js_1 = require("./_context.js");
15
15
  * Set Sandbox Pricing
16
16
  *
17
17
  * @remarks
18
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
18
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
19
19
  */
20
20
  function useSandboxSetPricingMutation(options) {
21
21
  const client = (0, _context_js_1.useSDKContext)();
@@ -40,7 +40,7 @@ export declare class Sandbox extends ClientSDK {
40
40
  * Set Sandbox Pricing
41
41
  *
42
42
  * @remarks
43
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
43
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
44
44
  */
45
45
  setPricing(request: components.SandboxPricingUpdate, options?: RequestOptions): Promise<components.SandboxPricingCard>;
46
46
  /**
@@ -71,7 +71,7 @@ class Sandbox extends sdks_js_1.ClientSDK {
71
71
  * Set Sandbox Pricing
72
72
  *
73
73
  * @remarks
74
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
74
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
75
75
  */
76
76
  async setPricing(request, options) {
77
77
  return (0, fp_js_1.unwrapAsync)((0, sandboxSetPricing_js_1.sandboxSetPricing)(this, request, options));
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
12
12
  * Set Sandbox Pricing
13
13
  *
14
14
  * @remarks
15
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
15
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
16
16
  *
17
17
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
18
18
  */
@@ -15,7 +15,7 @@ import { APIPromise } from "../types/async.js";
15
15
  * Set Sandbox Pricing
16
16
  *
17
17
  * @remarks
18
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
18
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
19
19
  *
20
20
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
21
21
  */
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "1.1.0";
34
- readonly sdkVersion: "0.54.65";
34
+ readonly sdkVersion: "0.54.66";
35
35
  readonly genVersion: "2.943.0";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.54.65 2.943.0 1.1.0 @meetkai/mka1";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.54.66 2.943.0 1.1.0 @meetkai/mka1";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -31,8 +31,8 @@ export function serverURLFromOptions(options) {
31
31
  export const SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "1.1.0",
34
- sdkVersion: "0.54.65",
34
+ sdkVersion: "0.54.66",
35
35
  genVersion: "2.943.0",
36
- userAgent: "speakeasy-sdk/typescript 0.54.65 2.943.0 1.1.0 @meetkai/mka1",
36
+ userAgent: "speakeasy-sdk/typescript 0.54.66 2.943.0 1.1.0 @meetkai/mka1",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -16,7 +16,7 @@ const routes = buildRouteMap({
16
16
  export const app = buildApplication(routes, {
17
17
  name: "mcp",
18
18
  versionInfo: {
19
- currentVersion: "0.54.65",
19
+ currentVersion: "0.54.66",
20
20
  },
21
21
  });
22
22
  run(app, process.argv.slice(2), buildContext(process));
@@ -458,7 +458,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
458
458
  export function createMCPServer(deps) {
459
459
  const server = new McpServer({
460
460
  name: "SDK",
461
- version: "0.54.65",
461
+ version: "0.54.66",
462
462
  });
463
463
  const client = new SDKCore({
464
464
  bearerAuth: deps.bearerAuth,
@@ -11,7 +11,7 @@ export const tool$sandboxSetPricing = {
11
11
  name: "sandbox-set-pricing",
12
12
  description: `Set Sandbox Pricing
13
13
 
14
- Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.`,
14
+ Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless \`allow_unpriced\` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A \`currency\` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await sandboxSetPricing(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxSetPricing.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/sandboxSetPricing.ts"],"names":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D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,kCAAkC;CACvD,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAgC;IACjE,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE;;+eAEge;IAC7e,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,iBAAiB,CAC/C,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAE3B,OAAO,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
@@ -4,6 +4,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { SandboxPriceRate, SandboxPriceRate$Outbound } from "./sandboxpricerate.js";
5
5
  export type SandboxPricingCard = {
6
6
  object?: "sandbox.pricing" | undefined;
7
+ currency?: string | null | undefined;
7
8
  rates?: {
8
9
  [k: string]: SandboxPriceRate;
9
10
  } | undefined;
@@ -15,6 +16,7 @@ export declare const SandboxPricingCard$inboundSchema: z.ZodType<SandboxPricingC
15
16
  /** @internal */
16
17
  export type SandboxPricingCard$Outbound = {
17
18
  object: "sandbox.pricing";
19
+ currency?: string | null | undefined;
18
20
  rates?: {
19
21
  [k: string]: SandboxPriceRate$Outbound;
20
22
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingcard.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingcard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACvC,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,GAAG,SAAS,CAAC;IACtD,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAWlB,CAAC;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,CAAC;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAYlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -8,6 +8,7 @@ import { SandboxPriceRate$inboundSchema, SandboxPriceRate$outboundSchema, } from
8
8
  /** @internal */
9
9
  export const SandboxPricingCard$inboundSchema = z.object({
10
10
  object: z.literal("sandbox.pricing").default("sandbox.pricing"),
11
+ currency: z.nullable(z.string()).optional(),
11
12
  rates: z.record(SandboxPriceRate$inboundSchema).optional(),
12
13
  updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
13
14
  updated_by: z.nullable(z.string()).optional(),
@@ -20,6 +21,7 @@ export const SandboxPricingCard$inboundSchema = z.object({
20
21
  /** @internal */
21
22
  export const SandboxPricingCard$outboundSchema = z.object({
22
23
  object: z.literal("sandbox.pricing").default("sandbox.pricing"),
24
+ currency: z.nullable(z.string()).optional(),
23
25
  rates: z.record(SandboxPriceRate$outboundSchema).optional(),
24
26
  updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
25
27
  updatedBy: z.nullable(z.string()).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingcard.js","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingcard.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IA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AQ,EAAE;CAC7C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -3,12 +3,20 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { SandboxPriceRate, SandboxPriceRate$Outbound } from "./sandboxpricerate.js";
5
5
  /**
6
- * Full-replace rate card update; omitted SKUs become unpriced.
6
+ * Full-replace rate card update.
7
+ *
8
+ * @remarks
9
+ *
10
+ * A SKU that has a price and is omitted here would become unpriced, and its
11
+ * usage would then be recorded with no cost, which can never be billed. That
12
+ * is refused unless ``allow_unpriced`` says it is intended.
7
13
  */
8
14
  export type SandboxPricingUpdate = {
9
15
  rates: {
10
16
  [k: string]: SandboxPriceRate;
11
17
  };
18
+ currency?: string | null | undefined;
19
+ allowUnpriced?: boolean | undefined;
12
20
  };
13
21
  /** @internal */
14
22
  export declare const SandboxPricingUpdate$inboundSchema: z.ZodType<SandboxPricingUpdate, z.ZodTypeDef, unknown>;
@@ -17,6 +25,8 @@ export type SandboxPricingUpdate$Outbound = {
17
25
  rates: {
18
26
  [k: string]: SandboxPriceRate$Outbound;
19
27
  };
28
+ currency?: string | null | undefined;
29
+ allow_unpriced: boolean;
20
30
  };
21
31
  /** @internal */
22
32
  export declare const SandboxPricingUpdate$outboundSchema: z.ZodType<SandboxPricingUpdate$Outbound, z.ZodTypeDef, SandboxPricingUpdate>;
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingupdate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,yBAAyB,CAAA;KAAE,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAGpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
1
+ {"version":3,"file":"sandboxpricingupdate.d.ts","sourceRoot":"","s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y (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import * as z from "zod/v3";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
5
6
  import { safeParse } from "../../lib/schemas.js";
6
7
  import { SandboxPriceRate$inboundSchema, SandboxPriceRate$outboundSchema, } from "./sandboxpricerate.js";
7
8
  /** @internal */
8
9
  export const SandboxPricingUpdate$inboundSchema = z.object({
9
10
  rates: z.record(SandboxPriceRate$inboundSchema),
11
+ currency: z.nullable(z.string()).optional(),
12
+ allow_unpriced: z.boolean().default(false),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ "allow_unpriced": "allowUnpriced",
16
+ });
10
17
  });
11
18
  /** @internal */
12
19
  export const SandboxPricingUpdate$outboundSchema = z.object({
13
20
  rates: z.record(SandboxPriceRate$outboundSchema),
21
+ currency: z.nullable(z.string()).optional(),
22
+ allowUnpriced: z.boolean().default(false),
23
+ }).transform((v) => {
24
+ return remap$(v, {
25
+ allowUnpriced: "allow_unpriced",
26
+ });
14
27
  });
15
28
  export function sandboxPricingUpdateToJSON(sandboxPricingUpdate) {
16
29
  return JSON.stringify(SandboxPricingUpdate$outboundSchema.parse(sandboxPricingUpdate));
@@ -1 +1 @@
1
- {"version":3,"file":"sandboxpricingupdate.js","sourceRoot":"","sources":["../../../../src/models/components/sandboxpricingupdate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAS/B,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,8BAA8B,CAAC;CAChD,CAAC,CAAC;AAMH,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC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,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,+BAA+B,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
@@ -18,7 +18,7 @@ export type SandboxSetPricingMutationError = errors.HTTPValidationError | SDKErr
18
18
  * Set Sandbox Pricing
19
19
  *
20
20
  * @remarks
21
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
21
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
22
22
  */
23
23
  export declare function useSandboxSetPricingMutation(options?: MutationHookOptions<SandboxSetPricingMutationData, SandboxSetPricingMutationError, SandboxSetPricingMutationVariables>): UseMutationResult<SandboxSetPricingMutationData, SandboxSetPricingMutationError, SandboxSetPricingMutationVariables>;
24
24
  export declare function mutationKeySandboxSetPricing(): MutationKey;
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
10
10
  * Set Sandbox Pricing
11
11
  *
12
12
  * @remarks
13
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
13
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
14
14
  */
15
15
  export function useSandboxSetPricingMutation(options) {
16
16
  const client = useSDKContext();
@@ -40,7 +40,7 @@ export declare class Sandbox extends ClientSDK {
40
40
  * Set Sandbox Pricing
41
41
  *
42
42
  * @remarks
43
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
43
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
44
44
  */
45
45
  setPricing(request: components.SandboxPricingUpdate, options?: RequestOptions): Promise<components.SandboxPricingCard>;
46
46
  /**
@@ -68,7 +68,7 @@ export class Sandbox extends ClientSDK {
68
68
  * Set Sandbox Pricing
69
69
  *
70
70
  * @remarks
71
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
71
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
72
72
  */
73
73
  async setPricing(request, options) {
74
74
  return unwrapAsync(sandboxSetPricing(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.54.65",
5
+ "version": "0.54.66",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.54.65",
3
+ "version": "0.54.66",
4
4
  "author": "Daniel Wilder <dauncy@gmail.com>",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Set Sandbox Pricing
31
31
  *
32
32
  * @remarks
33
- * Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.
33
+ * Replace the sandbox pricing rate card. Full-replace semantics. Omitting a SKU that currently has a price is refused with 422 unless `allow_unpriced` is true: an unpriced SKU accrues no spend and its usage cannot be billed. A `currency` that differs from the stored one is saved only after the budgeting service accepts it as the cluster's billing currency (409 when it conflicts, 503 when it cannot be verified). Takes effect on the next meter window without a restart. Cluster admins only.
34
34
  *
35
35
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
36
36
  */
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.54.65",
68
+ sdkVersion: "0.54.66",
69
69
  genVersion: "2.943.0",
70
- userAgent: "speakeasy-sdk/typescript 0.54.65 2.943.0 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.54.66 2.943.0 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.54.65",
22
+ currentVersion: "0.54.66",
23
23
  },
24
24
  });
25
25
 
@@ -473,7 +473,7 @@ export function createMCPServer(deps: {
473
473
  }) {
474
474
  const server = new McpServer({
475
475
  name: "SDK",
476
- version: "0.54.65",
476
+ version: "0.54.66",
477
477
  });
478
478
 
479
479
  const client = new SDKCore({