@meetkai/mka1 0.53.1 → 0.53.2

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 (35) hide show
  1. package/bin/mcp-server.js +6 -6
  2. package/bin/mcp-server.js.map +6 -6
  3. package/dist/commonjs/funcs/usageSandbox.d.ts +1 -1
  4. package/dist/commonjs/funcs/usageSandbox.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/usageSandbox.js +1 -1
  10. package/dist/commonjs/mcp-server/tools/usageSandbox.js.map +1 -1
  11. package/dist/commonjs/react-query/usageSandbox.d.ts +2 -2
  12. package/dist/commonjs/react-query/usageSandbox.js +2 -2
  13. package/dist/commonjs/sdk/usage.d.ts +1 -1
  14. package/dist/commonjs/sdk/usage.js +1 -1
  15. package/dist/esm/funcs/usageSandbox.d.ts +1 -1
  16. package/dist/esm/funcs/usageSandbox.js +1 -1
  17. package/dist/esm/lib/config.d.ts +2 -2
  18. package/dist/esm/lib/config.js +2 -2
  19. package/dist/esm/mcp-server/mcp-server.js +1 -1
  20. package/dist/esm/mcp-server/server.js +1 -1
  21. package/dist/esm/mcp-server/tools/usageSandbox.js +1 -1
  22. package/dist/esm/mcp-server/tools/usageSandbox.js.map +1 -1
  23. package/dist/esm/react-query/usageSandbox.d.ts +2 -2
  24. package/dist/esm/react-query/usageSandbox.js +2 -2
  25. package/dist/esm/sdk/usage.d.ts +1 -1
  26. package/dist/esm/sdk/usage.js +1 -1
  27. package/jsr.json +1 -1
  28. package/package.json +1 -1
  29. package/src/funcs/usageSandbox.ts +1 -1
  30. package/src/lib/config.ts +2 -2
  31. package/src/mcp-server/mcp-server.ts +1 -1
  32. package/src/mcp-server/server.ts +1 -1
  33. package/src/mcp-server/tools/usageSandbox.ts +1 -1
  34. package/src/react-query/usageSandbox.ts +2 -2
  35. package/src/sdk/usage.ts +1 -1
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Get Sandbox Usage
14
14
  *
15
15
  * @remarks
16
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
16
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
17
17
  */
18
18
  export declare function usageSandbox(client: SDKCore, request: operations.GetSandboxUsageRequest, options?: RequestOptions): APIPromise<Result<components.SandboxUsagePage, errors.HTTPValidationError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=usageSandbox.d.ts.map
@@ -52,7 +52,7 @@ const async_js_1 = require("../types/async.js");
52
52
  * Get Sandbox Usage
53
53
  *
54
54
  * @remarks
55
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
55
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
56
56
  */
57
57
  function usageSandbox(client, request, options) {
58
58
  return new async_js_1.APIPromise($do(client, request, options));
@@ -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.53.1";
34
+ readonly sdkVersion: "0.53.2";
35
35
  readonly genVersion: "2.926.8";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.53.1 2.926.8 1.1.0 @meetkai/mka1";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.53.2 2.926.8 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.53.1",
38
+ sdkVersion: "0.53.2",
39
39
  genVersion: "2.926.8",
40
- userAgent: "speakeasy-sdk/typescript 0.53.1 2.926.8 1.1.0 @meetkai/mka1",
40
+ userAgent: "speakeasy-sdk/typescript 0.53.2 2.926.8 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.53.1",
25
+ currentVersion: "0.53.2",
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));
@@ -333,7 +333,7 @@ const usageSandbox_js_1 = require("./tools/usageSandbox.js");
333
333
  function createMCPServer(deps) {
334
334
  const server = new mcp_js_1.McpServer({
335
335
  name: "SDK",
336
- version: "0.53.1",
336
+ version: "0.53.2",
337
337
  });
338
338
  const client = new core_js_1.SDKCore({
339
339
  bearerAuth: deps.bearerAuth,
@@ -47,7 +47,7 @@ exports.tool$usageSandbox = {
47
47
  name: "usage-sandbox",
48
48
  description: `Get Sandbox Usage
49
49
 
50
- Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
50
+ Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: \`start_time\` is snapped down and \`end_time\` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
51
51
  args,
52
52
  tool: async (client, args, ctx) => {
53
53
  const [result, apiCall] = await (0, usageSandbox_js_1.usageSandbox)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"usageSandbox.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/usageSandbox.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,iEAA2D;AAC3D,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oCAAoC;CACzD,CAAC;AAEW,QAAA,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;qVAEsU;IACnV,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,8BAAY,EAC1C,MAAM,EACN,IAAI,CAAC,OAA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AAK,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"}
@@ -14,14 +14,14 @@ export type UsageSandboxQueryError = errors.HTTPValidationError | SDKError | Res
14
14
  * Get Sandbox Usage
15
15
  *
16
16
  * @remarks
17
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
17
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
18
18
  */
19
19
  export declare function useUsageSandbox(request: operations.GetSandboxUsageRequest, options?: QueryHookOptions<UsageSandboxQueryData, UsageSandboxQueryError>): UseQueryResult<UsageSandboxQueryData, UsageSandboxQueryError>;
20
20
  /**
21
21
  * Get Sandbox Usage
22
22
  *
23
23
  * @remarks
24
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
24
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
25
25
  */
26
26
  export declare function useUsageSandboxSuspense(request: operations.GetSandboxUsageRequest, options?: SuspenseQueryHookOptions<UsageSandboxQueryData, UsageSandboxQueryError>): UseSuspenseQueryResult<UsageSandboxQueryData, UsageSandboxQueryError>;
27
27
  export declare function setUsageSandboxData(client: QueryClient, queryKeyBase: [
@@ -19,7 +19,7 @@ Object.defineProperty(exports, "queryKeyUsageSandbox", { enumerable: true, get:
19
19
  * Get Sandbox Usage
20
20
  *
21
21
  * @remarks
22
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
22
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
23
23
  */
24
24
  function useUsageSandbox(request, options) {
25
25
  const client = (0, _context_js_1.useSDKContext)();
@@ -32,7 +32,7 @@ function useUsageSandbox(request, options) {
32
32
  * Get Sandbox Usage
33
33
  *
34
34
  * @remarks
35
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
35
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
36
36
  */
37
37
  function useUsageSandboxSuspense(request, options) {
38
38
  const client = (0, _context_js_1.useSDKContext)();
@@ -6,7 +6,7 @@ export declare class Usage extends ClientSDK {
6
6
  * Get Sandbox Usage
7
7
  *
8
8
  * @remarks
9
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
9
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
10
10
  */
11
11
  sandbox(request: operations.GetSandboxUsageRequest, options?: RequestOptions): Promise<components.SandboxUsagePage>;
12
12
  /**
@@ -13,7 +13,7 @@ class Usage extends sdks_js_1.ClientSDK {
13
13
  * Get Sandbox Usage
14
14
  *
15
15
  * @remarks
16
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
16
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
17
17
  */
18
18
  async sandbox(request, options) {
19
19
  return (0, fp_js_1.unwrapAsync)((0, usageSandbox_js_1.usageSandbox)(this, request, options));
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
13
13
  * Get Sandbox Usage
14
14
  *
15
15
  * @remarks
16
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
16
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
17
17
  */
18
18
  export declare function usageSandbox(client: SDKCore, request: operations.GetSandboxUsageRequest, options?: RequestOptions): APIPromise<Result<components.SandboxUsagePage, errors.HTTPValidationError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
19
  //# sourceMappingURL=usageSandbox.d.ts.map
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
16
16
  * Get Sandbox Usage
17
17
  *
18
18
  * @remarks
19
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
19
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
20
20
  */
21
21
  export function usageSandbox(client, request, options) {
22
22
  return new APIPromise($do(client, request, options));
@@ -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.53.1";
34
+ readonly sdkVersion: "0.53.2";
35
35
  readonly genVersion: "2.926.8";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.53.1 2.926.8 1.1.0 @meetkai/mka1";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.53.2 2.926.8 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.53.1",
34
+ sdkVersion: "0.53.2",
35
35
  genVersion: "2.926.8",
36
- userAgent: "speakeasy-sdk/typescript 0.53.1 2.926.8 1.1.0 @meetkai/mka1",
36
+ userAgent: "speakeasy-sdk/typescript 0.53.2 2.926.8 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.53.1",
19
+ currentVersion: "0.53.2",
20
20
  },
21
21
  });
22
22
  run(app, process.argv.slice(2), buildContext(process));
@@ -330,7 +330,7 @@ import { tool$usageSandbox } from "./tools/usageSandbox.js";
330
330
  export function createMCPServer(deps) {
331
331
  const server = new McpServer({
332
332
  name: "SDK",
333
- version: "0.53.1",
333
+ version: "0.53.2",
334
334
  });
335
335
  const client = new SDKCore({
336
336
  bearerAuth: deps.bearerAuth,
@@ -11,7 +11,7 @@ export const tool$usageSandbox = {
11
11
  name: "usage-sandbox",
12
12
  description: `Get Sandbox Usage
13
13
 
14
- Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
14
+ Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: \`start_time\` is snapped down and \`end_time\` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
15
15
  args,
16
16
  tool: async (client, args, ctx) => {
17
17
  const [result, apiCall] = await usageSandbox(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
@@ -1 +1 @@
1
- {"version":3,"file":"usageSandbox.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/usageSandbox.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oCAAoC;CACzD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAgC;IAC5D,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE;;qVAEsU;IACnV,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAA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E,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"}
@@ -14,14 +14,14 @@ export type UsageSandboxQueryError = errors.HTTPValidationError | SDKError | Res
14
14
  * Get Sandbox Usage
15
15
  *
16
16
  * @remarks
17
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
17
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
18
18
  */
19
19
  export declare function useUsageSandbox(request: operations.GetSandboxUsageRequest, options?: QueryHookOptions<UsageSandboxQueryData, UsageSandboxQueryError>): UseQueryResult<UsageSandboxQueryData, UsageSandboxQueryError>;
20
20
  /**
21
21
  * Get Sandbox Usage
22
22
  *
23
23
  * @remarks
24
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
24
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
25
25
  */
26
26
  export declare function useUsageSandboxSuspense(request: operations.GetSandboxUsageRequest, options?: SuspenseQueryHookOptions<UsageSandboxQueryData, UsageSandboxQueryError>): UseSuspenseQueryResult<UsageSandboxQueryData, UsageSandboxQueryError>;
27
27
  export declare function setUsageSandboxData(client: QueryClient, queryKeyBase: [
@@ -9,7 +9,7 @@ export { buildUsageSandboxQuery, prefetchUsageSandbox, queryKeyUsageSandbox, };
9
9
  * Get Sandbox Usage
10
10
  *
11
11
  * @remarks
12
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
12
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
13
13
  */
14
14
  export function useUsageSandbox(request, options) {
15
15
  const client = useSDKContext();
@@ -22,7 +22,7 @@ export function useUsageSandbox(request, options) {
22
22
  * Get Sandbox Usage
23
23
  *
24
24
  * @remarks
25
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
25
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
26
26
  */
27
27
  export function useUsageSandboxSuspense(request, options) {
28
28
  const client = useSDKContext();
@@ -6,7 +6,7 @@ export declare class Usage extends ClientSDK {
6
6
  * Get Sandbox Usage
7
7
  *
8
8
  * @remarks
9
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
9
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
10
10
  */
11
11
  sandbox(request: operations.GetSandboxUsageRequest, options?: RequestOptions): Promise<components.SandboxUsagePage>;
12
12
  /**
@@ -10,7 +10,7 @@ export class Usage extends ClientSDK {
10
10
  * Get Sandbox Usage
11
11
  *
12
12
  * @remarks
13
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
13
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
14
14
  */
15
15
  async sandbox(request, options) {
16
16
  return unwrapAsync(usageSandbox(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.53.1",
5
+ "version": "0.53.2",
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.53.1",
3
+ "version": "0.53.2",
4
4
  "author": "Daniel Wilder <dauncy@gmail.com>",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Get Sandbox Usage
32
32
  *
33
33
  * @remarks
34
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
34
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
35
35
  */
36
36
  export function usageSandbox(
37
37
  client: SDKCore,
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.53.1",
68
+ sdkVersion: "0.53.2",
69
69
  genVersion: "2.926.8",
70
- userAgent: "speakeasy-sdk/typescript 0.53.1 2.926.8 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.53.2 2.926.8 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.53.1",
22
+ currentVersion: "0.53.2",
23
23
  },
24
24
  });
25
25
 
@@ -345,7 +345,7 @@ export function createMCPServer(deps: {
345
345
  }) {
346
346
  const server = new McpServer({
347
347
  name: "SDK",
348
- version: "0.53.1",
348
+ version: "0.53.2",
349
349
  });
350
350
 
351
351
  const client = new SDKCore({
@@ -14,7 +14,7 @@ export const tool$usageSandbox: ToolDefinition<typeof args> = {
14
14
  name: "usage-sandbox",
15
15
  description: `Get Sandbox Usage
16
16
 
17
- Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
17
+ Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: \`start_time\` is snapped down and \`end_time\` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
18
18
  args,
19
19
  tool: async (client, args, ctx) => {
20
20
  const [result, apiCall] = await usageSandbox(
@@ -57,7 +57,7 @@ export type UsageSandboxQueryError =
57
57
  * Get Sandbox Usage
58
58
  *
59
59
  * @remarks
60
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
60
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
61
61
  */
62
62
  export function useUsageSandbox(
63
63
  request: operations.GetSandboxUsageRequest,
@@ -78,7 +78,7 @@ export function useUsageSandbox(
78
78
  * Get Sandbox Usage
79
79
  *
80
80
  * @remarks
81
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
81
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
82
82
  */
83
83
  export function useUsageSandboxSuspense(
84
84
  request: operations.GetSandboxUsageRequest,
package/src/sdk/usage.ts CHANGED
@@ -14,7 +14,7 @@ export class Usage extends ClientSDK {
14
14
  * Get Sandbox Usage
15
15
  *
16
16
  * @remarks
17
- * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
17
+ * Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Buckets are calendar-aligned in UTC: `start_time` is snapped down and `end_time` snapped up to the nearest bucket-width boundary, so the first and last buckets may extend slightly beyond the requested range. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass `all_orgs` or `org_ids`. Cost and spend reporting lives in the budgeting API (`/api/v1/budgeting/usage/costs`).
18
18
  */
19
19
  async sandbox(
20
20
  request: operations.GetSandboxUsageRequest,