@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.
- package/bin/mcp-server.js +6 -6
- package/bin/mcp-server.js.map +6 -6
- package/dist/commonjs/funcs/usageSandbox.d.ts +1 -1
- package/dist/commonjs/funcs/usageSandbox.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/usageSandbox.js +1 -1
- package/dist/commonjs/mcp-server/tools/usageSandbox.js.map +1 -1
- package/dist/commonjs/react-query/usageSandbox.d.ts +2 -2
- package/dist/commonjs/react-query/usageSandbox.js +2 -2
- package/dist/commonjs/sdk/usage.d.ts +1 -1
- package/dist/commonjs/sdk/usage.js +1 -1
- package/dist/esm/funcs/usageSandbox.d.ts +1 -1
- package/dist/esm/funcs/usageSandbox.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/usageSandbox.js +1 -1
- package/dist/esm/mcp-server/tools/usageSandbox.js.map +1 -1
- package/dist/esm/react-query/usageSandbox.d.ts +2 -2
- package/dist/esm/react-query/usageSandbox.js +2 -2
- package/dist/esm/sdk/usage.d.ts +1 -1
- package/dist/esm/sdk/usage.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/usageSandbox.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/usageSandbox.ts +1 -1
- package/src/react-query/usageSandbox.ts +2 -2
- 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.
|
|
34
|
+
readonly sdkVersion: "0.53.2";
|
|
35
35
|
readonly genVersion: "2.926.8";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.53.
|
|
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.
|
|
38
|
+
sdkVersion: "0.53.2",
|
|
39
39
|
genVersion: "2.926.8",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.53.
|
|
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.
|
|
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.
|
|
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;;
|
|
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;;yiBAE0hB;IACviB,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,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"}
|
|
@@ -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));
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -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.
|
|
34
|
+
readonly sdkVersion: "0.53.2";
|
|
35
35
|
readonly genVersion: "2.926.8";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.53.
|
|
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
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -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.
|
|
34
|
+
sdkVersion: "0.53.2",
|
|
35
35
|
genVersion: "2.926.8",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.53.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.53.2 2.926.8 1.1.0 @meetkai/mka1",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -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.
|
|
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;;
|
|
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;;yiBAE0hB;IACviB,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,YAAY,CAC1C,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"}
|
|
@@ -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();
|
package/dist/esm/sdk/usage.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/esm/sdk/usage.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -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.
|
|
68
|
+
sdkVersion: "0.53.2",
|
|
69
69
|
genVersion: "2.926.8",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.53.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.53.2 2.926.8 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -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,
|