@meetkai/mka1 0.48.37 → 0.48.38
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/README.md +241 -238
- package/bin/mcp-server.js +569 -285
- package/bin/mcp-server.js.map +18 -11
- package/dist/commonjs/funcs/sandboxGetPricing.d.ts +17 -0
- package/dist/commonjs/funcs/sandboxGetPricing.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandboxGetPricing.js +115 -0
- package/dist/commonjs/funcs/sandboxGetPricing.js.map +1 -0
- package/dist/commonjs/funcs/{sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts → sandboxSetPricing.d.ts} +6 -4
- package/dist/commonjs/funcs/sandboxSetPricing.d.ts.map +1 -0
- package/dist/commonjs/funcs/sandboxSetPricing.js +129 -0
- package/dist/commonjs/funcs/sandboxSetPricing.js.map +1 -0
- package/dist/commonjs/funcs/usageSandbox.d.ts +19 -0
- package/dist/commonjs/funcs/usageSandbox.d.ts.map +1 -0
- package/dist/commonjs/funcs/{sandboxUsageGetUsageApiV1SandboxUsageGet.js → usageSandbox.js} +9 -6
- package/dist/commonjs/funcs/usageSandbox.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +8 -4
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/sandboxGetPricing.d.ts +3 -0
- package/dist/commonjs/mcp-server/tools/sandboxGetPricing.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/sandboxGetPricing.js +26 -0
- package/dist/commonjs/mcp-server/tools/sandboxGetPricing.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/sandboxSetPricing.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/sandboxSetPricing.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/{sandboxUsageGetUsageApiV1SandboxUsageGet.js → sandboxSetPricing.js} +11 -9
- package/dist/commonjs/mcp-server/tools/sandboxSetPricing.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/usageSandbox.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/usageSandbox.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/usageSandbox.js +64 -0
- package/dist/commonjs/mcp-server/tools/usageSandbox.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/sandboxpricerate.d.ts +19 -0
- package/dist/commonjs/models/components/sandboxpricerate.d.ts.map +1 -0
- package/dist/commonjs/models/components/sandboxpricerate.js +71 -0
- package/dist/commonjs/models/components/sandboxpricerate.js.map +1 -0
- package/dist/commonjs/models/components/sandboxpricingcard.d.ts +28 -0
- package/dist/commonjs/models/components/sandboxpricingcard.d.ts.map +1 -0
- package/dist/commonjs/models/components/sandboxpricingcard.js +76 -0
- package/dist/commonjs/models/components/sandboxpricingcard.js.map +1 -0
- package/dist/commonjs/models/components/sandboxpricingupdate.d.ts +25 -0
- package/dist/commonjs/models/components/sandboxpricingupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/sandboxpricingupdate.js +59 -0
- package/dist/commonjs/models/components/sandboxpricingupdate.js.map +1 -0
- package/dist/{esm/models/operations/getusageapiv1sandboxusageget.d.ts → commonjs/models/operations/getsandboxusage.d.ts} +7 -7
- package/dist/commonjs/models/operations/getsandboxusage.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{getusageapiv1sandboxusageget.js → getsandboxusage.js} +10 -10
- package/dist/commonjs/models/operations/getsandboxusage.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -1
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -1
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/sandboxGetPricing.core.d.ts +12 -0
- package/dist/commonjs/react-query/sandboxGetPricing.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/sandboxGetPricing.core.js +34 -0
- package/dist/commonjs/react-query/sandboxGetPricing.core.js.map +1 -0
- package/dist/commonjs/react-query/sandboxGetPricing.d.ts +26 -0
- package/dist/commonjs/react-query/sandboxGetPricing.d.ts.map +1 -0
- package/dist/commonjs/react-query/sandboxGetPricing.js +53 -0
- package/dist/commonjs/react-query/sandboxGetPricing.js.map +1 -0
- package/dist/commonjs/react-query/sandboxSetPricing.d.ts +29 -0
- package/dist/commonjs/react-query/sandboxSetPricing.d.ts.map +1 -0
- package/dist/commonjs/react-query/sandboxSetPricing.js +47 -0
- package/dist/commonjs/react-query/sandboxSetPricing.js.map +1 -0
- package/dist/commonjs/react-query/usageSandbox.core.d.ts +21 -0
- package/dist/commonjs/react-query/usageSandbox.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/usageSandbox.core.js +42 -0
- package/dist/commonjs/react-query/usageSandbox.core.js.map +1 -0
- package/dist/commonjs/react-query/usageSandbox.d.ts +50 -0
- package/dist/commonjs/react-query/usageSandbox.d.ts.map +1 -0
- package/dist/commonjs/react-query/usageSandbox.js +60 -0
- package/dist/commonjs/react-query/usageSandbox.js.map +1 -0
- package/dist/commonjs/sdk/sandbox.d.ts +14 -0
- package/dist/commonjs/sdk/sandbox.d.ts.map +1 -1
- package/dist/commonjs/sdk/sandbox.js +20 -0
- package/dist/commonjs/sdk/sandbox.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +2 -5
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +2 -6
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/usage.d.ts +8 -0
- package/dist/commonjs/sdk/usage.d.ts.map +1 -1
- package/dist/commonjs/sdk/usage.js +10 -0
- package/dist/commonjs/sdk/usage.js.map +1 -1
- package/dist/esm/funcs/sandboxGetPricing.d.ts +17 -0
- package/dist/esm/funcs/sandboxGetPricing.d.ts.map +1 -0
- package/dist/esm/funcs/sandboxGetPricing.js +79 -0
- package/dist/esm/funcs/sandboxGetPricing.js.map +1 -0
- package/dist/esm/funcs/{sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts → sandboxSetPricing.d.ts} +6 -4
- package/dist/esm/funcs/sandboxSetPricing.d.ts.map +1 -0
- package/dist/esm/funcs/sandboxSetPricing.js +93 -0
- package/dist/esm/funcs/sandboxSetPricing.js.map +1 -0
- package/dist/esm/funcs/usageSandbox.d.ts +19 -0
- package/dist/esm/funcs/usageSandbox.d.ts.map +1 -0
- package/dist/esm/funcs/{sandboxUsageGetUsageApiV1SandboxUsageGet.js → usageSandbox.js} +8 -5
- package/dist/esm/funcs/usageSandbox.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +8 -4
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/sandboxGetPricing.d.ts +3 -0
- package/dist/esm/mcp-server/tools/sandboxGetPricing.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/sandboxGetPricing.js +23 -0
- package/dist/esm/mcp-server/tools/sandboxGetPricing.js.map +1 -0
- package/dist/esm/mcp-server/tools/sandboxSetPricing.d.ts +8 -0
- package/dist/esm/mcp-server/tools/sandboxSetPricing.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/sandboxSetPricing.js +28 -0
- package/dist/esm/mcp-server/tools/sandboxSetPricing.js.map +1 -0
- package/dist/esm/mcp-server/tools/usageSandbox.d.ts +8 -0
- package/dist/esm/mcp-server/tools/usageSandbox.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/usageSandbox.js +28 -0
- package/dist/esm/mcp-server/tools/usageSandbox.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/sandboxpricerate.d.ts +19 -0
- package/dist/esm/models/components/sandboxpricerate.d.ts.map +1 -0
- package/dist/esm/models/components/sandboxpricerate.js +33 -0
- package/dist/esm/models/components/sandboxpricerate.js.map +1 -0
- package/dist/esm/models/components/sandboxpricingcard.d.ts +28 -0
- package/dist/esm/models/components/sandboxpricingcard.d.ts.map +1 -0
- package/dist/esm/models/components/sandboxpricingcard.js +38 -0
- package/dist/esm/models/components/sandboxpricingcard.js.map +1 -0
- package/dist/esm/models/components/sandboxpricingupdate.d.ts +25 -0
- package/dist/esm/models/components/sandboxpricingupdate.d.ts.map +1 -0
- package/dist/esm/models/components/sandboxpricingupdate.js +21 -0
- package/dist/esm/models/components/sandboxpricingupdate.js.map +1 -0
- package/dist/{commonjs/models/operations/getusageapiv1sandboxusageget.d.ts → esm/models/operations/getsandboxusage.d.ts} +7 -7
- package/dist/esm/models/operations/getsandboxusage.d.ts.map +1 -0
- package/dist/esm/models/operations/{getusageapiv1sandboxusageget.js → getsandboxusage.js} +7 -7
- package/dist/esm/models/operations/getsandboxusage.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -1
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -1
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/sandboxGetPricing.core.d.ts +12 -0
- package/dist/esm/react-query/sandboxGetPricing.core.d.ts.map +1 -0
- package/dist/esm/react-query/sandboxGetPricing.core.js +29 -0
- package/dist/esm/react-query/sandboxGetPricing.core.js.map +1 -0
- package/dist/esm/react-query/sandboxGetPricing.d.ts +26 -0
- package/dist/esm/react-query/sandboxGetPricing.d.ts.map +1 -0
- package/dist/esm/react-query/sandboxGetPricing.js +44 -0
- package/dist/esm/react-query/sandboxGetPricing.js.map +1 -0
- package/dist/esm/react-query/sandboxSetPricing.d.ts +29 -0
- package/dist/esm/react-query/sandboxSetPricing.d.ts.map +1 -0
- package/dist/esm/react-query/sandboxSetPricing.js +42 -0
- package/dist/esm/react-query/sandboxSetPricing.js.map +1 -0
- package/dist/esm/react-query/usageSandbox.core.d.ts +21 -0
- package/dist/esm/react-query/usageSandbox.core.d.ts.map +1 -0
- package/dist/esm/react-query/usageSandbox.core.js +37 -0
- package/dist/esm/react-query/usageSandbox.core.js.map +1 -0
- package/dist/esm/react-query/usageSandbox.d.ts +50 -0
- package/dist/esm/react-query/usageSandbox.d.ts.map +1 -0
- package/dist/esm/react-query/usageSandbox.js +50 -0
- package/dist/esm/react-query/usageSandbox.js.map +1 -0
- package/dist/esm/sdk/sandbox.d.ts +14 -0
- package/dist/esm/sdk/sandbox.d.ts.map +1 -1
- package/dist/esm/sdk/sandbox.js +20 -0
- package/dist/esm/sdk/sandbox.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +2 -5
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +2 -6
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/usage.d.ts +8 -0
- package/dist/esm/sdk/usage.d.ts.map +1 -1
- package/dist/esm/sdk/usage.js +10 -0
- package/dist/esm/sdk/usage.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/sandboxGetPricing.ts +154 -0
- package/src/funcs/sandboxSetPricing.ts +181 -0
- package/src/funcs/{sandboxUsageGetUsageApiV1SandboxUsageGet.ts → usageSandbox.ts} +9 -9
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +8 -4
- package/src/mcp-server/tools/sandboxGetPricing.ts +30 -0
- package/src/mcp-server/tools/sandboxSetPricing.ts +37 -0
- package/src/mcp-server/tools/usageSandbox.ts +37 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/sandboxpricerate.ts +66 -0
- package/src/models/components/sandboxpricingcard.ts +82 -0
- package/src/models/components/sandboxpricingupdate.ts +60 -0
- package/src/models/operations/{getusageapiv1sandboxusageget.ts → getsandboxusage.ts} +14 -17
- package/src/models/operations/index.ts +1 -1
- package/src/react-query/index.ts +3 -1
- package/src/react-query/sandboxGetPricing.core.ts +66 -0
- package/src/react-query/sandboxGetPricing.ts +112 -0
- package/src/react-query/sandboxSetPricing.ts +110 -0
- package/src/react-query/{sandboxUsageGetUsageApiV1SandboxUsageGet.core.ts → usageSandbox.core.ts} +14 -22
- package/src/react-query/{sandboxUsageGetUsageApiV1SandboxUsageGet.ts → usageSandbox.ts} +38 -53
- package/src/sdk/sandbox.ts +34 -0
- package/src/sdk/sdk.ts +3 -9
- package/src/sdk/usage.ts +19 -0
- package/dist/commonjs/funcs/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/sandboxUsageGetUsageApiV1SandboxUsageGet.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.js.map +0 -1
- package/dist/commonjs/models/operations/getusageapiv1sandboxusageget.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getusageapiv1sandboxusageget.js.map +0 -1
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.d.ts +0 -21
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.js +0 -47
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.js.map +0 -1
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts +0 -44
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts.map +0 -1
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.js +0 -63
- package/dist/commonjs/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.js.map +0 -1
- package/dist/commonjs/sdk/sandboxusage.d.ts +0 -10
- package/dist/commonjs/sdk/sandboxusage.d.ts.map +0 -1
- package/dist/commonjs/sdk/sandboxusage.js +0 -19
- package/dist/commonjs/sdk/sandboxusage.js.map +0 -1
- package/dist/esm/funcs/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts.map +0 -1
- package/dist/esm/funcs/sandboxUsageGetUsageApiV1SandboxUsageGet.js.map +0 -1
- package/dist/esm/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts +0 -8
- package/dist/esm/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.js +0 -26
- package/dist/esm/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.js.map +0 -1
- package/dist/esm/models/operations/getusageapiv1sandboxusageget.d.ts.map +0 -1
- package/dist/esm/models/operations/getusageapiv1sandboxusageget.js.map +0 -1
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.d.ts +0 -21
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.d.ts.map +0 -1
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.js +0 -42
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.core.js.map +0 -1
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts +0 -44
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.d.ts.map +0 -1
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.js +0 -53
- package/dist/esm/react-query/sandboxUsageGetUsageApiV1SandboxUsageGet.js.map +0 -1
- package/dist/esm/sdk/sandboxusage.d.ts +0 -10
- package/dist/esm/sdk/sandboxusage.d.ts.map +0 -1
- package/dist/esm/sdk/sandboxusage.js +0 -15
- package/dist/esm/sdk/sandboxusage.js.map +0 -1
- package/src/mcp-server/tools/sandboxUsageGetUsageApiV1SandboxUsageGet.ts +0 -37
- package/src/sdk/sandboxusage.ts +0 -25
package/bin/mcp-server.js
CHANGED
|
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
|
|
|
52876
52876
|
SDK_METADATA = {
|
|
52877
52877
|
language: "typescript",
|
|
52878
52878
|
openapiDocVersion: "1.1.0",
|
|
52879
|
-
sdkVersion: "0.48.
|
|
52879
|
+
sdkVersion: "0.48.38",
|
|
52880
52880
|
genVersion: "2.916.2",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.48.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.48.38 2.916.2 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -74697,6 +74697,74 @@ var init_revokepermissionrequest = __esm(() => {
|
|
|
74697
74697
|
});
|
|
74698
74698
|
});
|
|
74699
74699
|
|
|
74700
|
+
// src/models/components/sandboxpricerate.ts
|
|
74701
|
+
var SandboxPriceRate$inboundSchema, SandboxPriceRate$outboundSchema;
|
|
74702
|
+
var init_sandboxpricerate = __esm(() => {
|
|
74703
|
+
init_esm();
|
|
74704
|
+
init_primitives();
|
|
74705
|
+
SandboxPriceRate$inboundSchema = objectType({
|
|
74706
|
+
per_hour: numberType().default(0),
|
|
74707
|
+
per_gib_hour: numberType().default(0)
|
|
74708
|
+
}).transform((v2) => {
|
|
74709
|
+
return remap(v2, {
|
|
74710
|
+
per_hour: "perHour",
|
|
74711
|
+
per_gib_hour: "perGibHour"
|
|
74712
|
+
});
|
|
74713
|
+
});
|
|
74714
|
+
SandboxPriceRate$outboundSchema = objectType({
|
|
74715
|
+
perHour: numberType().default(0),
|
|
74716
|
+
perGibHour: numberType().default(0)
|
|
74717
|
+
}).transform((v2) => {
|
|
74718
|
+
return remap(v2, {
|
|
74719
|
+
perHour: "per_hour",
|
|
74720
|
+
perGibHour: "per_gib_hour"
|
|
74721
|
+
});
|
|
74722
|
+
});
|
|
74723
|
+
});
|
|
74724
|
+
|
|
74725
|
+
// src/models/components/sandboxpricingcard.ts
|
|
74726
|
+
var SandboxPricingCard$inboundSchema, SandboxPricingCard$outboundSchema;
|
|
74727
|
+
var init_sandboxpricingcard = __esm(() => {
|
|
74728
|
+
init_esm();
|
|
74729
|
+
init_primitives();
|
|
74730
|
+
init_sandboxpricerate();
|
|
74731
|
+
SandboxPricingCard$inboundSchema = objectType({
|
|
74732
|
+
object: literalType("sandbox.pricing").default("sandbox.pricing"),
|
|
74733
|
+
rates: recordType(SandboxPriceRate$inboundSchema).optional(),
|
|
74734
|
+
updated_at: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
|
|
74735
|
+
updated_by: nullableType(stringType()).optional()
|
|
74736
|
+
}).transform((v2) => {
|
|
74737
|
+
return remap(v2, {
|
|
74738
|
+
updated_at: "updatedAt",
|
|
74739
|
+
updated_by: "updatedBy"
|
|
74740
|
+
});
|
|
74741
|
+
});
|
|
74742
|
+
SandboxPricingCard$outboundSchema = objectType({
|
|
74743
|
+
object: literalType("sandbox.pricing").default("sandbox.pricing"),
|
|
74744
|
+
rates: recordType(SandboxPriceRate$outboundSchema).optional(),
|
|
74745
|
+
updatedAt: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
|
|
74746
|
+
updatedBy: nullableType(stringType()).optional()
|
|
74747
|
+
}).transform((v2) => {
|
|
74748
|
+
return remap(v2, {
|
|
74749
|
+
updatedAt: "updated_at",
|
|
74750
|
+
updatedBy: "updated_by"
|
|
74751
|
+
});
|
|
74752
|
+
});
|
|
74753
|
+
});
|
|
74754
|
+
|
|
74755
|
+
// src/models/components/sandboxpricingupdate.ts
|
|
74756
|
+
var SandboxPricingUpdate$inboundSchema, SandboxPricingUpdate$outboundSchema;
|
|
74757
|
+
var init_sandboxpricingupdate = __esm(() => {
|
|
74758
|
+
init_esm();
|
|
74759
|
+
init_sandboxpricerate();
|
|
74760
|
+
SandboxPricingUpdate$inboundSchema = objectType({
|
|
74761
|
+
rates: recordType(SandboxPriceRate$inboundSchema)
|
|
74762
|
+
});
|
|
74763
|
+
SandboxPricingUpdate$outboundSchema = objectType({
|
|
74764
|
+
rates: recordType(SandboxPriceRate$outboundSchema)
|
|
74765
|
+
});
|
|
74766
|
+
});
|
|
74767
|
+
|
|
74700
74768
|
// src/models/components/sandboxusageoperation.ts
|
|
74701
74769
|
var SandboxUsageOperation, SandboxUsageOperation$inboundSchema, SandboxUsageOperation$outboundSchema;
|
|
74702
74770
|
var init_sandboxusageoperation = __esm(() => {
|
|
@@ -77911,6 +77979,9 @@ var init_components = __esm(() => {
|
|
|
77911
77979
|
init_revokepermissionrequest();
|
|
77912
77980
|
init_runtimeresourceusage();
|
|
77913
77981
|
init_sandboxfeature();
|
|
77982
|
+
init_sandboxpricerate();
|
|
77983
|
+
init_sandboxpricingcard();
|
|
77984
|
+
init_sandboxpricingupdate();
|
|
77914
77985
|
init_sandboxprovider();
|
|
77915
77986
|
init_sandboxruntimeprofile();
|
|
77916
77987
|
init_sandboxusagebucket();
|
|
@@ -91468,6 +91539,52 @@ var init_getresponsesusage = __esm(() => {
|
|
|
91468
91539
|
});
|
|
91469
91540
|
});
|
|
91470
91541
|
|
|
91542
|
+
// src/models/operations/getsandboxusage.ts
|
|
91543
|
+
var GetSandboxUsageRequest$inboundSchema, GetSandboxUsageRequest$outboundSchema;
|
|
91544
|
+
var init_getsandboxusage = __esm(() => {
|
|
91545
|
+
init_esm();
|
|
91546
|
+
init_primitives();
|
|
91547
|
+
init_components();
|
|
91548
|
+
GetSandboxUsageRequest$inboundSchema = objectType({
|
|
91549
|
+
start_time: numberType().int(),
|
|
91550
|
+
end_time: nullableType(numberType().int()).optional(),
|
|
91551
|
+
bucket_width: SandboxUsageBucketWidth$inboundSchema.optional(),
|
|
91552
|
+
group_by: nullableType(arrayType(stringType())).optional(),
|
|
91553
|
+
all_orgs: booleanType().default(false),
|
|
91554
|
+
org_ids: nullableType(arrayType(stringType())).optional(),
|
|
91555
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
91556
|
+
}).transform((v2) => {
|
|
91557
|
+
return remap(v2, {
|
|
91558
|
+
start_time: "startTime",
|
|
91559
|
+
end_time: "endTime",
|
|
91560
|
+
bucket_width: "bucketWidth",
|
|
91561
|
+
group_by: "groupBy",
|
|
91562
|
+
all_orgs: "allOrgs",
|
|
91563
|
+
org_ids: "orgIds",
|
|
91564
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
91565
|
+
});
|
|
91566
|
+
});
|
|
91567
|
+
GetSandboxUsageRequest$outboundSchema = objectType({
|
|
91568
|
+
startTime: numberType().int(),
|
|
91569
|
+
endTime: nullableType(numberType().int()).optional(),
|
|
91570
|
+
bucketWidth: SandboxUsageBucketWidth$outboundSchema.optional(),
|
|
91571
|
+
groupBy: nullableType(arrayType(stringType())).optional(),
|
|
91572
|
+
allOrgs: booleanType().default(false),
|
|
91573
|
+
orgIds: nullableType(arrayType(stringType())).optional(),
|
|
91574
|
+
xOnBehalfOf: stringType().optional()
|
|
91575
|
+
}).transform((v2) => {
|
|
91576
|
+
return remap(v2, {
|
|
91577
|
+
startTime: "start_time",
|
|
91578
|
+
endTime: "end_time",
|
|
91579
|
+
bucketWidth: "bucket_width",
|
|
91580
|
+
groupBy: "group_by",
|
|
91581
|
+
allOrgs: "all_orgs",
|
|
91582
|
+
orgIds: "org_ids",
|
|
91583
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
91584
|
+
});
|
|
91585
|
+
});
|
|
91586
|
+
});
|
|
91587
|
+
|
|
91471
91588
|
// src/models/operations/getserviceaccount.ts
|
|
91472
91589
|
var GetServiceAccountRequest$inboundSchema, GetServiceAccountRequest$outboundSchema, GetServiceAccountServiceAccount$inboundSchema, GetServiceAccountServiceAccount$outboundSchema, GetServiceAccountTeams$inboundSchema, GetServiceAccountTeams$outboundSchema, GetServiceAccountResponseBody$inboundSchema2, GetServiceAccountResponseBody$outboundSchema2;
|
|
91473
91590
|
var init_getserviceaccount2 = __esm(() => {
|
|
@@ -91884,52 +92001,6 @@ var init_gettexttospeechhistorycontent = __esm(() => {
|
|
|
91884
92001
|
]);
|
|
91885
92002
|
});
|
|
91886
92003
|
|
|
91887
|
-
// src/models/operations/getusageapiv1sandboxusageget.ts
|
|
91888
|
-
var GetUsageApiV1SandboxUsageGetRequest$inboundSchema, GetUsageApiV1SandboxUsageGetRequest$outboundSchema;
|
|
91889
|
-
var init_getusageapiv1sandboxusageget = __esm(() => {
|
|
91890
|
-
init_esm();
|
|
91891
|
-
init_primitives();
|
|
91892
|
-
init_components();
|
|
91893
|
-
GetUsageApiV1SandboxUsageGetRequest$inboundSchema = objectType({
|
|
91894
|
-
start_time: numberType().int(),
|
|
91895
|
-
end_time: nullableType(numberType().int()).optional(),
|
|
91896
|
-
bucket_width: SandboxUsageBucketWidth$inboundSchema.optional(),
|
|
91897
|
-
group_by: nullableType(arrayType(stringType())).optional(),
|
|
91898
|
-
all_orgs: booleanType().default(false),
|
|
91899
|
-
org_ids: nullableType(arrayType(stringType())).optional(),
|
|
91900
|
-
"X-On-Behalf-Of": stringType().optional()
|
|
91901
|
-
}).transform((v2) => {
|
|
91902
|
-
return remap(v2, {
|
|
91903
|
-
start_time: "startTime",
|
|
91904
|
-
end_time: "endTime",
|
|
91905
|
-
bucket_width: "bucketWidth",
|
|
91906
|
-
group_by: "groupBy",
|
|
91907
|
-
all_orgs: "allOrgs",
|
|
91908
|
-
org_ids: "orgIds",
|
|
91909
|
-
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
91910
|
-
});
|
|
91911
|
-
});
|
|
91912
|
-
GetUsageApiV1SandboxUsageGetRequest$outboundSchema = objectType({
|
|
91913
|
-
startTime: numberType().int(),
|
|
91914
|
-
endTime: nullableType(numberType().int()).optional(),
|
|
91915
|
-
bucketWidth: SandboxUsageBucketWidth$outboundSchema.optional(),
|
|
91916
|
-
groupBy: nullableType(arrayType(stringType())).optional(),
|
|
91917
|
-
allOrgs: booleanType().default(false),
|
|
91918
|
-
orgIds: nullableType(arrayType(stringType())).optional(),
|
|
91919
|
-
xOnBehalfOf: stringType().optional()
|
|
91920
|
-
}).transform((v2) => {
|
|
91921
|
-
return remap(v2, {
|
|
91922
|
-
startTime: "start_time",
|
|
91923
|
-
endTime: "end_time",
|
|
91924
|
-
bucketWidth: "bucket_width",
|
|
91925
|
-
groupBy: "group_by",
|
|
91926
|
-
allOrgs: "all_orgs",
|
|
91927
|
-
orgIds: "org_ids",
|
|
91928
|
-
xOnBehalfOf: "X-On-Behalf-Of"
|
|
91929
|
-
});
|
|
91930
|
-
});
|
|
91931
|
-
});
|
|
91932
|
-
|
|
91933
92004
|
// src/models/operations/getvectorstore.ts
|
|
91934
92005
|
var GetVectorStoreRequest$inboundSchema, GetVectorStoreRequest$outboundSchema;
|
|
91935
92006
|
var init_getvectorstore = __esm(() => {
|
|
@@ -99202,6 +99273,7 @@ var init_operations = __esm(() => {
|
|
|
99202
99273
|
init_getresponse();
|
|
99203
99274
|
init_getresponsefeedback();
|
|
99204
99275
|
init_getresponsesusage();
|
|
99276
|
+
init_getsandboxusage();
|
|
99205
99277
|
init_getserviceaccount2();
|
|
99206
99278
|
init_getservingmodel();
|
|
99207
99279
|
init_getsession();
|
|
@@ -99216,7 +99288,6 @@ var init_operations = __esm(() => {
|
|
|
99216
99288
|
init_getteam2();
|
|
99217
99289
|
init_gettexttospeechhistory();
|
|
99218
99290
|
init_gettexttospeechhistorycontent();
|
|
99219
|
-
init_getusageapiv1sandboxusageget();
|
|
99220
99291
|
init_getvectorstore();
|
|
99221
99292
|
init_getvectorstorefile();
|
|
99222
99293
|
init_getvectorstorefilebatch();
|
|
@@ -130782,11 +130853,105 @@ Return the current state, features, and runner metadata for a sandbox session.`,
|
|
|
130782
130853
|
};
|
|
130783
130854
|
});
|
|
130784
130855
|
|
|
130856
|
+
// src/funcs/sandboxGetPricing.ts
|
|
130857
|
+
function sandboxGetPricing(client, options) {
|
|
130858
|
+
return new APIPromise($do268(client, options));
|
|
130859
|
+
}
|
|
130860
|
+
async function $do268(client, options) {
|
|
130861
|
+
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
130862
|
+
const headers = new Headers(compactMap({
|
|
130863
|
+
Accept: "application/json"
|
|
130864
|
+
}));
|
|
130865
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
130866
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
130867
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
130868
|
+
const context = {
|
|
130869
|
+
options: client._options,
|
|
130870
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
130871
|
+
operationID: "getSandboxPricing",
|
|
130872
|
+
oAuth2Scopes: null,
|
|
130873
|
+
resolvedSecurity: requestSecurity,
|
|
130874
|
+
securitySource: client._options.bearerAuth,
|
|
130875
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
130876
|
+
strategy: "backoff",
|
|
130877
|
+
backoff: {
|
|
130878
|
+
initialInterval: 500,
|
|
130879
|
+
maxInterval: 5000,
|
|
130880
|
+
exponent: 1.5,
|
|
130881
|
+
maxElapsedTime: 15000
|
|
130882
|
+
},
|
|
130883
|
+
retryConnectionErrors: true
|
|
130884
|
+
},
|
|
130885
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
130886
|
+
};
|
|
130887
|
+
const requestRes = client._createRequest(context, {
|
|
130888
|
+
security: requestSecurity,
|
|
130889
|
+
method: "GET",
|
|
130890
|
+
baseURL: options?.serverURL,
|
|
130891
|
+
path,
|
|
130892
|
+
headers,
|
|
130893
|
+
userAgent: client._options.userAgent,
|
|
130894
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
130895
|
+
}, options);
|
|
130896
|
+
if (!requestRes.ok) {
|
|
130897
|
+
return [requestRes, { status: "invalid" }];
|
|
130898
|
+
}
|
|
130899
|
+
const req = requestRes.value;
|
|
130900
|
+
const doResult = await client._do(req, {
|
|
130901
|
+
context,
|
|
130902
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
130903
|
+
retryConfig: context.retryConfig,
|
|
130904
|
+
retryCodes: context.retryCodes
|
|
130905
|
+
});
|
|
130906
|
+
if (!doResult.ok) {
|
|
130907
|
+
return [doResult, { status: "request-error", request: req }];
|
|
130908
|
+
}
|
|
130909
|
+
const response = doResult.value;
|
|
130910
|
+
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
|
|
130911
|
+
if (!result.ok) {
|
|
130912
|
+
return [result, { status: "complete", request: req, response }];
|
|
130913
|
+
}
|
|
130914
|
+
return [result, { status: "complete", request: req, response }];
|
|
130915
|
+
}
|
|
130916
|
+
var init_sandboxGetPricing = __esm(() => {
|
|
130917
|
+
init_http();
|
|
130918
|
+
init_matchers();
|
|
130919
|
+
init_primitives();
|
|
130920
|
+
init_security();
|
|
130921
|
+
init_url();
|
|
130922
|
+
init_components();
|
|
130923
|
+
init_async();
|
|
130924
|
+
});
|
|
130925
|
+
|
|
130926
|
+
// src/mcp-server/tools/sandboxGetPricing.ts
|
|
130927
|
+
var tool$sandboxGetPricing;
|
|
130928
|
+
var init_sandboxGetPricing2 = __esm(() => {
|
|
130929
|
+
init_sandboxGetPricing();
|
|
130930
|
+
init_tools();
|
|
130931
|
+
tool$sandboxGetPricing = {
|
|
130932
|
+
name: "sandbox-get-pricing",
|
|
130933
|
+
description: `Get Sandbox Pricing
|
|
130934
|
+
|
|
130935
|
+
Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`eval-python\`). Metered sandbox usage is billed \`hours × (per_hour + reserved_memory_GiB × per_gib_hour)\`; SKUs without a configured rate accrue no spend. Cluster admins only.`,
|
|
130936
|
+
tool: async (client, ctx) => {
|
|
130937
|
+
const [result, apiCall] = await sandboxGetPricing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
130938
|
+
if (!result.ok) {
|
|
130939
|
+
return {
|
|
130940
|
+
content: [{ type: "text", text: result.error.message }],
|
|
130941
|
+
isError: true
|
|
130942
|
+
};
|
|
130943
|
+
}
|
|
130944
|
+
const value = result.value;
|
|
130945
|
+
return formatResult(value, apiCall);
|
|
130946
|
+
}
|
|
130947
|
+
};
|
|
130948
|
+
});
|
|
130949
|
+
|
|
130785
130950
|
// src/funcs/sandboxGetUrl.ts
|
|
130786
130951
|
function sandboxGetUrl(client, request, options) {
|
|
130787
|
-
return new APIPromise($
|
|
130952
|
+
return new APIPromise($do269(client, request, options));
|
|
130788
130953
|
}
|
|
130789
|
-
async function $
|
|
130954
|
+
async function $do269(client, request, options) {
|
|
130790
130955
|
const parsed = safeParse4(request, (value) => GetSessionUrlRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130791
130956
|
if (!parsed.ok) {
|
|
130792
130957
|
return [parsed, { status: "invalid" }];
|
|
@@ -130909,9 +131074,9 @@ Resolve a gateway URL for a port exposed by the sandbox session. For \`browser\`
|
|
|
130909
131074
|
|
|
130910
131075
|
// src/funcs/sandboxGetWorkspace.ts
|
|
130911
131076
|
function sandboxGetWorkspace(client, request, options) {
|
|
130912
|
-
return new APIPromise($
|
|
131077
|
+
return new APIPromise($do270(client, request, options));
|
|
130913
131078
|
}
|
|
130914
|
-
async function $
|
|
131079
|
+
async function $do270(client, request, options) {
|
|
130915
131080
|
const parsed = safeParse4(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
130916
131081
|
if (!parsed.ok) {
|
|
130917
131082
|
return [parsed, { status: "invalid" }];
|
|
@@ -131033,9 +131198,9 @@ List files currently stored in the session workspace, including paths, sizes, an
|
|
|
131033
131198
|
|
|
131034
131199
|
// src/funcs/sandboxList.ts
|
|
131035
131200
|
function sandboxList(client, request, options) {
|
|
131036
|
-
return new APIPromise($
|
|
131201
|
+
return new APIPromise($do271(client, request, options));
|
|
131037
131202
|
}
|
|
131038
|
-
async function $
|
|
131203
|
+
async function $do271(client, request, options) {
|
|
131039
131204
|
const parsed = safeParse4(request, (value) => ListSessionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131040
131205
|
if (!parsed.ok) {
|
|
131041
131206
|
return [parsed, { status: "invalid" }];
|
|
@@ -131148,9 +131313,9 @@ List sandbox sessions visible to the authenticated caller.`,
|
|
|
131148
131313
|
|
|
131149
131314
|
// src/funcs/sandboxProxyBrowserPortRequest.ts
|
|
131150
131315
|
function sandboxProxyBrowserPortRequest(client, request, options) {
|
|
131151
|
-
return new APIPromise($
|
|
131316
|
+
return new APIPromise($do272(client, request, options));
|
|
131152
131317
|
}
|
|
131153
|
-
async function $
|
|
131318
|
+
async function $do272(client, request, options) {
|
|
131154
131319
|
const parsed = safeParse4(request, (value) => ProxyBrowserPortRequestRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131155
131320
|
if (!parsed.ok) {
|
|
131156
131321
|
return [parsed, { status: "invalid" }];
|
|
@@ -131280,9 +131445,9 @@ Proxy an HTTP request to an exposed browser-session port through the gateway. Us
|
|
|
131280
131445
|
|
|
131281
131446
|
// src/funcs/sandboxRunCode.ts
|
|
131282
131447
|
function sandboxRunCode(client, request, options) {
|
|
131283
|
-
return new APIPromise($
|
|
131448
|
+
return new APIPromise($do273(client, request, options));
|
|
131284
131449
|
}
|
|
131285
|
-
async function $
|
|
131450
|
+
async function $do273(client, request, options) {
|
|
131286
131451
|
const parsed = safeParse4(request, (value) => RunCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131287
131452
|
if (!parsed.ok) {
|
|
131288
131453
|
return [parsed, { status: "invalid" }];
|
|
@@ -131401,9 +131566,9 @@ Execute source code in the session workspace using a supported runtime and retur
|
|
|
131401
131566
|
|
|
131402
131567
|
// src/funcs/sandboxRunCommand.ts
|
|
131403
131568
|
function sandboxRunCommand(client, request, options) {
|
|
131404
|
-
return new APIPromise($
|
|
131569
|
+
return new APIPromise($do274(client, request, options));
|
|
131405
131570
|
}
|
|
131406
|
-
async function $
|
|
131571
|
+
async function $do274(client, request, options) {
|
|
131407
131572
|
const parsed = safeParse4(request, (value) => RunCommandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131408
131573
|
if (!parsed.ok) {
|
|
131409
131574
|
return [parsed, { status: "invalid" }];
|
|
@@ -131520,30 +131685,21 @@ Run a command in the session workspace and return stdout, stderr, exit code, and
|
|
|
131520
131685
|
};
|
|
131521
131686
|
});
|
|
131522
131687
|
|
|
131523
|
-
// src/funcs/
|
|
131524
|
-
function
|
|
131525
|
-
return new APIPromise($
|
|
131688
|
+
// src/funcs/sandboxSetPricing.ts
|
|
131689
|
+
function sandboxSetPricing(client, request, options) {
|
|
131690
|
+
return new APIPromise($do275(client, request, options));
|
|
131526
131691
|
}
|
|
131527
|
-
async function $
|
|
131528
|
-
const parsed = safeParse4(request, (value) =>
|
|
131692
|
+
async function $do275(client, request, options) {
|
|
131693
|
+
const parsed = safeParse4(request, (value) => SandboxPricingUpdate$outboundSchema.parse(value), "Input validation failed");
|
|
131529
131694
|
if (!parsed.ok) {
|
|
131530
131695
|
return [parsed, { status: "invalid" }];
|
|
131531
131696
|
}
|
|
131532
131697
|
const payload = parsed.value;
|
|
131533
|
-
const body = encodeJSON("body", payload
|
|
131534
|
-
|
|
131535
|
-
});
|
|
131536
|
-
const pathParams = {
|
|
131537
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131538
|
-
explode: false,
|
|
131539
|
-
charEncoding: "percent"
|
|
131540
|
-
})
|
|
131541
|
-
};
|
|
131542
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/terminate")(pathParams);
|
|
131698
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
131699
|
+
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
131543
131700
|
const headers = new Headers(compactMap({
|
|
131544
131701
|
"Content-Type": "application/json",
|
|
131545
|
-
Accept: "application/json"
|
|
131546
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131702
|
+
Accept: "application/json"
|
|
131547
131703
|
}));
|
|
131548
131704
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
131549
131705
|
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
@@ -131551,7 +131707,7 @@ async function $do274(client, request, options) {
|
|
|
131551
131707
|
const context = {
|
|
131552
131708
|
options: client._options,
|
|
131553
131709
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131554
|
-
operationID: "
|
|
131710
|
+
operationID: "setSandboxPricing",
|
|
131555
131711
|
oAuth2Scopes: null,
|
|
131556
131712
|
resolvedSecurity: requestSecurity,
|
|
131557
131713
|
securitySource: client._options.bearerAuth,
|
|
@@ -131569,7 +131725,7 @@ async function $do274(client, request, options) {
|
|
|
131569
131725
|
};
|
|
131570
131726
|
const requestRes = client._createRequest(context, {
|
|
131571
131727
|
security: requestSecurity,
|
|
131572
|
-
method: "
|
|
131728
|
+
method: "PUT",
|
|
131573
131729
|
baseURL: options?.serverURL,
|
|
131574
131730
|
path,
|
|
131575
131731
|
headers,
|
|
@@ -131594,13 +131750,13 @@ async function $do274(client, request, options) {
|
|
|
131594
131750
|
const responseFields = {
|
|
131595
131751
|
HttpMeta: { Response: response, Request: req }
|
|
131596
131752
|
};
|
|
131597
|
-
const [result] = await match(json(200,
|
|
131753
|
+
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131598
131754
|
if (!result.ok) {
|
|
131599
131755
|
return [result, { status: "complete", request: req, response }];
|
|
131600
131756
|
}
|
|
131601
131757
|
return [result, { status: "complete", request: req, response }];
|
|
131602
131758
|
}
|
|
131603
|
-
var
|
|
131759
|
+
var init_sandboxSetPricing = __esm(() => {
|
|
131604
131760
|
init_encodings();
|
|
131605
131761
|
init_http();
|
|
131606
131762
|
init_matchers();
|
|
@@ -131610,27 +131766,26 @@ var init_sandboxTerminate = __esm(() => {
|
|
|
131610
131766
|
init_url();
|
|
131611
131767
|
init_components();
|
|
131612
131768
|
init_errors4();
|
|
131613
|
-
init_operations();
|
|
131614
131769
|
init_async();
|
|
131615
131770
|
});
|
|
131616
131771
|
|
|
131617
|
-
// src/mcp-server/tools/
|
|
131618
|
-
var args267, tool$
|
|
131619
|
-
var
|
|
131620
|
-
|
|
131621
|
-
|
|
131772
|
+
// src/mcp-server/tools/sandboxSetPricing.ts
|
|
131773
|
+
var args267, tool$sandboxSetPricing;
|
|
131774
|
+
var init_sandboxSetPricing2 = __esm(() => {
|
|
131775
|
+
init_sandboxSetPricing();
|
|
131776
|
+
init_components();
|
|
131622
131777
|
init_tools();
|
|
131623
131778
|
args267 = {
|
|
131624
|
-
request:
|
|
131779
|
+
request: SandboxPricingUpdate$inboundSchema
|
|
131625
131780
|
};
|
|
131626
|
-
tool$
|
|
131627
|
-
name: "sandbox-
|
|
131628
|
-
description: `
|
|
131781
|
+
tool$sandboxSetPricing = {
|
|
131782
|
+
name: "sandbox-set-pricing",
|
|
131783
|
+
description: `Set Sandbox Pricing
|
|
131629
131784
|
|
|
131630
|
-
|
|
131785
|
+
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.`,
|
|
131631
131786
|
args: args267,
|
|
131632
131787
|
tool: async (client, args268, ctx) => {
|
|
131633
|
-
const [result, apiCall] = await
|
|
131788
|
+
const [result, apiCall] = await sandboxSetPricing(client, args268.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131634
131789
|
if (!result.ok) {
|
|
131635
131790
|
return {
|
|
131636
131791
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131643,29 +131798,28 @@ Stop a sandbox session and release the backing sandbox resources.`,
|
|
|
131643
131798
|
};
|
|
131644
131799
|
});
|
|
131645
131800
|
|
|
131646
|
-
// src/funcs/
|
|
131647
|
-
function
|
|
131648
|
-
return new APIPromise($
|
|
131801
|
+
// src/funcs/sandboxTerminate.ts
|
|
131802
|
+
function sandboxTerminate(client, request, options) {
|
|
131803
|
+
return new APIPromise($do276(client, request, options));
|
|
131649
131804
|
}
|
|
131650
|
-
async function $
|
|
131651
|
-
const parsed = safeParse4(request, (value) =>
|
|
131805
|
+
async function $do276(client, request, options) {
|
|
131806
|
+
const parsed = safeParse4(request, (value) => TerminateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
131652
131807
|
if (!parsed.ok) {
|
|
131653
131808
|
return [parsed, { status: "invalid" }];
|
|
131654
131809
|
}
|
|
131655
131810
|
const payload = parsed.value;
|
|
131656
|
-
const body =
|
|
131811
|
+
const body = encodeJSON("body", payload.TerminateSessionRequest, {
|
|
131812
|
+
explode: true
|
|
131813
|
+
});
|
|
131657
131814
|
const pathParams = {
|
|
131658
131815
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131659
131816
|
explode: false,
|
|
131660
131817
|
charEncoding: "percent"
|
|
131661
131818
|
})
|
|
131662
131819
|
};
|
|
131663
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/
|
|
131664
|
-
const query = encodeFormQuery({
|
|
131665
|
-
session_token: payload.session_token
|
|
131666
|
-
});
|
|
131820
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/terminate")(pathParams);
|
|
131667
131821
|
const headers = new Headers(compactMap({
|
|
131668
|
-
"Content-Type": "application/
|
|
131822
|
+
"Content-Type": "application/json",
|
|
131669
131823
|
Accept: "application/json",
|
|
131670
131824
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131671
131825
|
}));
|
|
@@ -131675,7 +131829,7 @@ async function $do275(client, request, options) {
|
|
|
131675
131829
|
const context = {
|
|
131676
131830
|
options: client._options,
|
|
131677
131831
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131678
|
-
operationID: "
|
|
131832
|
+
operationID: "terminateSession",
|
|
131679
131833
|
oAuth2Scopes: null,
|
|
131680
131834
|
resolvedSecurity: requestSecurity,
|
|
131681
131835
|
securitySource: client._options.bearerAuth,
|
|
@@ -131693,11 +131847,10 @@ async function $do275(client, request, options) {
|
|
|
131693
131847
|
};
|
|
131694
131848
|
const requestRes = client._createRequest(context, {
|
|
131695
131849
|
security: requestSecurity,
|
|
131696
|
-
method: "
|
|
131850
|
+
method: "POST",
|
|
131697
131851
|
baseURL: options?.serverURL,
|
|
131698
131852
|
path,
|
|
131699
131853
|
headers,
|
|
131700
|
-
query,
|
|
131701
131854
|
body,
|
|
131702
131855
|
userAgent: client._options.userAgent,
|
|
131703
131856
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -131719,14 +131872,13 @@ async function $do275(client, request, options) {
|
|
|
131719
131872
|
const responseFields = {
|
|
131720
131873
|
HttpMeta: { Response: response, Request: req }
|
|
131721
131874
|
};
|
|
131722
|
-
const [result] = await match(json(200,
|
|
131875
|
+
const [result] = await match(json(200, TerminateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131723
131876
|
if (!result.ok) {
|
|
131724
131877
|
return [result, { status: "complete", request: req, response }];
|
|
131725
131878
|
}
|
|
131726
131879
|
return [result, { status: "complete", request: req, response }];
|
|
131727
131880
|
}
|
|
131728
|
-
var
|
|
131729
|
-
init_esm();
|
|
131881
|
+
var init_sandboxTerminate = __esm(() => {
|
|
131730
131882
|
init_encodings();
|
|
131731
131883
|
init_http();
|
|
131732
131884
|
init_matchers();
|
|
@@ -131734,28 +131886,29 @@ var init_sandboxUploadArchive = __esm(() => {
|
|
|
131734
131886
|
init_schemas4();
|
|
131735
131887
|
init_security();
|
|
131736
131888
|
init_url();
|
|
131889
|
+
init_components();
|
|
131737
131890
|
init_errors4();
|
|
131738
131891
|
init_operations();
|
|
131739
131892
|
init_async();
|
|
131740
131893
|
});
|
|
131741
131894
|
|
|
131742
|
-
// src/mcp-server/tools/
|
|
131743
|
-
var args268, tool$
|
|
131744
|
-
var
|
|
131745
|
-
|
|
131895
|
+
// src/mcp-server/tools/sandboxTerminate.ts
|
|
131896
|
+
var args268, tool$sandboxTerminate;
|
|
131897
|
+
var init_sandboxTerminate2 = __esm(() => {
|
|
131898
|
+
init_sandboxTerminate();
|
|
131746
131899
|
init_operations();
|
|
131747
131900
|
init_tools();
|
|
131748
131901
|
args268 = {
|
|
131749
|
-
request:
|
|
131902
|
+
request: TerminateSessionRequest$inboundSchema2
|
|
131750
131903
|
};
|
|
131751
|
-
tool$
|
|
131752
|
-
name: "sandbox-
|
|
131753
|
-
description: `
|
|
131904
|
+
tool$sandboxTerminate = {
|
|
131905
|
+
name: "sandbox-terminate",
|
|
131906
|
+
description: `Terminate Session
|
|
131754
131907
|
|
|
131755
|
-
|
|
131908
|
+
Stop a sandbox session and release the backing sandbox resources.`,
|
|
131756
131909
|
args: args268,
|
|
131757
131910
|
tool: async (client, args269, ctx) => {
|
|
131758
|
-
const [result, apiCall] = await
|
|
131911
|
+
const [result, apiCall] = await sandboxTerminate(client, args269.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131759
131912
|
if (!result.ok) {
|
|
131760
131913
|
return {
|
|
131761
131914
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131768,33 +131921,29 @@ Upload a zip archive and extract its files into the session workspace.`,
|
|
|
131768
131921
|
};
|
|
131769
131922
|
});
|
|
131770
131923
|
|
|
131771
|
-
// src/funcs/
|
|
131772
|
-
function
|
|
131773
|
-
return new APIPromise($
|
|
131924
|
+
// src/funcs/sandboxUploadArchive.ts
|
|
131925
|
+
function sandboxUploadArchive(client, request, options) {
|
|
131926
|
+
return new APIPromise($do277(client, request, options));
|
|
131774
131927
|
}
|
|
131775
|
-
async function $
|
|
131776
|
-
const parsed = safeParse4(request, (value) =>
|
|
131928
|
+
async function $do277(client, request, options) {
|
|
131929
|
+
const parsed = safeParse4(request, (value) => UploadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131777
131930
|
if (!parsed.ok) {
|
|
131778
131931
|
return [parsed, { status: "invalid" }];
|
|
131779
131932
|
}
|
|
131780
131933
|
const payload = parsed.value;
|
|
131781
131934
|
const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
|
|
131782
131935
|
const pathParams = {
|
|
131783
|
-
file_path: encodeSimple("file_path", payload.file_path, {
|
|
131784
|
-
explode: false,
|
|
131785
|
-
charEncoding: "percent"
|
|
131786
|
-
}),
|
|
131787
131936
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
131788
131937
|
explode: false,
|
|
131789
131938
|
charEncoding: "percent"
|
|
131790
131939
|
})
|
|
131791
131940
|
};
|
|
131792
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/
|
|
131941
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
|
|
131793
131942
|
const query = encodeFormQuery({
|
|
131794
131943
|
session_token: payload.session_token
|
|
131795
131944
|
});
|
|
131796
131945
|
const headers = new Headers(compactMap({
|
|
131797
|
-
"Content-Type": "application/
|
|
131946
|
+
"Content-Type": "application/zip",
|
|
131798
131947
|
Accept: "application/json",
|
|
131799
131948
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131800
131949
|
}));
|
|
@@ -131804,7 +131953,7 @@ async function $do276(client, request, options) {
|
|
|
131804
131953
|
const context = {
|
|
131805
131954
|
options: client._options,
|
|
131806
131955
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131807
|
-
operationID: "
|
|
131956
|
+
operationID: "uploadWorkspaceArchive",
|
|
131808
131957
|
oAuth2Scopes: null,
|
|
131809
131958
|
resolvedSecurity: requestSecurity,
|
|
131810
131959
|
securitySource: client._options.bearerAuth,
|
|
@@ -131854,7 +132003,7 @@ async function $do276(client, request, options) {
|
|
|
131854
132003
|
}
|
|
131855
132004
|
return [result, { status: "complete", request: req, response }];
|
|
131856
132005
|
}
|
|
131857
|
-
var
|
|
132006
|
+
var init_sandboxUploadArchive = __esm(() => {
|
|
131858
132007
|
init_esm();
|
|
131859
132008
|
init_encodings();
|
|
131860
132009
|
init_http();
|
|
@@ -131868,23 +132017,23 @@ var init_sandboxUploadFile = __esm(() => {
|
|
|
131868
132017
|
init_async();
|
|
131869
132018
|
});
|
|
131870
132019
|
|
|
131871
|
-
// src/mcp-server/tools/
|
|
131872
|
-
var args269, tool$
|
|
131873
|
-
var
|
|
131874
|
-
|
|
132020
|
+
// src/mcp-server/tools/sandboxUploadArchive.ts
|
|
132021
|
+
var args269, tool$sandboxUploadArchive;
|
|
132022
|
+
var init_sandboxUploadArchive2 = __esm(() => {
|
|
132023
|
+
init_sandboxUploadArchive();
|
|
131875
132024
|
init_operations();
|
|
131876
132025
|
init_tools();
|
|
131877
132026
|
args269 = {
|
|
131878
|
-
request:
|
|
132027
|
+
request: UploadWorkspaceArchiveRequest$inboundSchema
|
|
131879
132028
|
};
|
|
131880
|
-
tool$
|
|
131881
|
-
name: "sandbox-upload-
|
|
131882
|
-
description: `Upload Workspace
|
|
132029
|
+
tool$sandboxUploadArchive = {
|
|
132030
|
+
name: "sandbox-upload-archive",
|
|
132031
|
+
description: `Upload Workspace Archive
|
|
131883
132032
|
|
|
131884
|
-
Upload
|
|
132033
|
+
Upload a zip archive and extract its files into the session workspace.`,
|
|
131885
132034
|
args: args269,
|
|
131886
132035
|
tool: async (client, args270, ctx) => {
|
|
131887
|
-
const [result, apiCall] = await
|
|
132036
|
+
const [result, apiCall] = await sandboxUploadArchive(client, args270.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
131888
132037
|
if (!result.ok) {
|
|
131889
132038
|
return {
|
|
131890
132039
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -131897,27 +132046,33 @@ Upload raw bytes into the session workspace at the given path.`,
|
|
|
131897
132046
|
};
|
|
131898
132047
|
});
|
|
131899
132048
|
|
|
131900
|
-
// src/funcs/
|
|
131901
|
-
function
|
|
131902
|
-
return new APIPromise($
|
|
132049
|
+
// src/funcs/sandboxUploadFile.ts
|
|
132050
|
+
function sandboxUploadFile(client, request, options) {
|
|
132051
|
+
return new APIPromise($do278(client, request, options));
|
|
131903
132052
|
}
|
|
131904
|
-
async function $
|
|
131905
|
-
const parsed = safeParse4(request, (value) =>
|
|
132053
|
+
async function $do278(client, request, options) {
|
|
132054
|
+
const parsed = safeParse4(request, (value) => UploadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
131906
132055
|
if (!parsed.ok) {
|
|
131907
132056
|
return [parsed, { status: "invalid" }];
|
|
131908
132057
|
}
|
|
131909
132058
|
const payload = parsed.value;
|
|
131910
|
-
const body =
|
|
131911
|
-
const
|
|
132059
|
+
const body = payload.RequestBody instanceof Uint8Array ? new Uint8Array(payload.RequestBody).buffer : payload.RequestBody;
|
|
132060
|
+
const pathParams = {
|
|
132061
|
+
file_path: encodeSimple("file_path", payload.file_path, {
|
|
132062
|
+
explode: false,
|
|
132063
|
+
charEncoding: "percent"
|
|
132064
|
+
}),
|
|
132065
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
132066
|
+
explode: false,
|
|
132067
|
+
charEncoding: "percent"
|
|
132068
|
+
})
|
|
132069
|
+
};
|
|
132070
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
|
|
131912
132071
|
const query = encodeFormQuery({
|
|
131913
|
-
|
|
131914
|
-
bucket_width: payload.bucket_width,
|
|
131915
|
-
end_time: payload.end_time,
|
|
131916
|
-
group_by: payload.group_by,
|
|
131917
|
-
org_ids: payload.org_ids,
|
|
131918
|
-
start_time: payload.start_time
|
|
132072
|
+
session_token: payload.session_token
|
|
131919
132073
|
});
|
|
131920
132074
|
const headers = new Headers(compactMap({
|
|
132075
|
+
"Content-Type": "application/octet-stream",
|
|
131921
132076
|
Accept: "application/json",
|
|
131922
132077
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
131923
132078
|
}));
|
|
@@ -131927,7 +132082,7 @@ async function $do277(client, request, options) {
|
|
|
131927
132082
|
const context = {
|
|
131928
132083
|
options: client._options,
|
|
131929
132084
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
131930
|
-
operationID: "
|
|
132085
|
+
operationID: "uploadWorkspaceFile",
|
|
131931
132086
|
oAuth2Scopes: null,
|
|
131932
132087
|
resolvedSecurity: requestSecurity,
|
|
131933
132088
|
securitySource: client._options.bearerAuth,
|
|
@@ -131945,7 +132100,7 @@ async function $do277(client, request, options) {
|
|
|
131945
132100
|
};
|
|
131946
132101
|
const requestRes = client._createRequest(context, {
|
|
131947
132102
|
security: requestSecurity,
|
|
131948
|
-
method: "
|
|
132103
|
+
method: "PUT",
|
|
131949
132104
|
baseURL: options?.serverURL,
|
|
131950
132105
|
path,
|
|
131951
132106
|
headers,
|
|
@@ -131971,13 +132126,14 @@ async function $do277(client, request, options) {
|
|
|
131971
132126
|
const responseFields = {
|
|
131972
132127
|
HttpMeta: { Response: response, Request: req }
|
|
131973
132128
|
};
|
|
131974
|
-
const [result] = await match(json(200,
|
|
132129
|
+
const [result] = await match(json(200, recordType(stringType())), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
131975
132130
|
if (!result.ok) {
|
|
131976
132131
|
return [result, { status: "complete", request: req, response }];
|
|
131977
132132
|
}
|
|
131978
132133
|
return [result, { status: "complete", request: req, response }];
|
|
131979
132134
|
}
|
|
131980
|
-
var
|
|
132135
|
+
var init_sandboxUploadFile = __esm(() => {
|
|
132136
|
+
init_esm();
|
|
131981
132137
|
init_encodings();
|
|
131982
132138
|
init_http();
|
|
131983
132139
|
init_matchers();
|
|
@@ -131985,27 +132141,28 @@ var init_sandboxUsageGetUsageApiV1SandboxUsageGet = __esm(() => {
|
|
|
131985
132141
|
init_schemas4();
|
|
131986
132142
|
init_security();
|
|
131987
132143
|
init_url();
|
|
131988
|
-
init_components();
|
|
131989
132144
|
init_errors4();
|
|
131990
132145
|
init_operations();
|
|
131991
132146
|
init_async();
|
|
131992
132147
|
});
|
|
131993
132148
|
|
|
131994
|
-
// src/mcp-server/tools/
|
|
131995
|
-
var args270, tool$
|
|
131996
|
-
var
|
|
131997
|
-
|
|
132149
|
+
// src/mcp-server/tools/sandboxUploadFile.ts
|
|
132150
|
+
var args270, tool$sandboxUploadFile;
|
|
132151
|
+
var init_sandboxUploadFile2 = __esm(() => {
|
|
132152
|
+
init_sandboxUploadFile();
|
|
131998
132153
|
init_operations();
|
|
131999
132154
|
init_tools();
|
|
132000
132155
|
args270 = {
|
|
132001
|
-
request:
|
|
132156
|
+
request: UploadWorkspaceFileRequest$inboundSchema
|
|
132002
132157
|
};
|
|
132003
|
-
tool$
|
|
132004
|
-
name: "sandbox-
|
|
132005
|
-
description: `
|
|
132158
|
+
tool$sandboxUploadFile = {
|
|
132159
|
+
name: "sandbox-upload-file",
|
|
132160
|
+
description: `Upload Workspace File
|
|
132161
|
+
|
|
132162
|
+
Upload raw bytes into the session workspace at the given path.`,
|
|
132006
132163
|
args: args270,
|
|
132007
132164
|
tool: async (client, args271, ctx) => {
|
|
132008
|
-
const [result, apiCall] = await
|
|
132165
|
+
const [result, apiCall] = await sandboxUploadFile(client, args271.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
132009
132166
|
if (!result.ok) {
|
|
132010
132167
|
return {
|
|
132011
132168
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -132020,9 +132177,9 @@ var init_sandboxUsageGetUsageApiV1SandboxUsageGet2 = __esm(() => {
|
|
|
132020
132177
|
|
|
132021
132178
|
// src/funcs/searchGraphragCreateGraphRAGStore.ts
|
|
132022
132179
|
function searchGraphragCreateGraphRAGStore(client, request, options) {
|
|
132023
|
-
return new APIPromise($
|
|
132180
|
+
return new APIPromise($do279(client, request, options));
|
|
132024
132181
|
}
|
|
132025
|
-
async function $
|
|
132182
|
+
async function $do279(client, request, options) {
|
|
132026
132183
|
const parsed = safeParse4(request, (value) => CreateGraphRAGStoreRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
132027
132184
|
if (!parsed.ok) {
|
|
132028
132185
|
return [parsed, { status: "invalid" }];
|
|
@@ -132135,9 +132292,9 @@ var init_searchGraphragCreateGraphRAGStore2 = __esm(() => {
|
|
|
132135
132292
|
|
|
132136
132293
|
// src/funcs/searchGraphragDeleteGraphRAGStore.ts
|
|
132137
132294
|
function searchGraphragDeleteGraphRAGStore(client, request, options) {
|
|
132138
|
-
return new APIPromise($
|
|
132295
|
+
return new APIPromise($do280(client, request, options));
|
|
132139
132296
|
}
|
|
132140
|
-
async function $
|
|
132297
|
+
async function $do280(client, request, options) {
|
|
132141
132298
|
const parsed = safeParse4(request, (value) => DeleteGraphRAGStoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132142
132299
|
if (!parsed.ok) {
|
|
132143
132300
|
return [parsed, { status: "invalid" }];
|
|
@@ -132253,9 +132410,9 @@ var init_searchGraphragDeleteGraphRAGStore2 = __esm(() => {
|
|
|
132253
132410
|
|
|
132254
132411
|
// src/funcs/searchGraphragIngestGraphRAGDocuments.ts
|
|
132255
132412
|
function searchGraphragIngestGraphRAGDocuments(client, request, options) {
|
|
132256
|
-
return new APIPromise($
|
|
132413
|
+
return new APIPromise($do281(client, request, options));
|
|
132257
132414
|
}
|
|
132258
|
-
async function $
|
|
132415
|
+
async function $do281(client, request, options) {
|
|
132259
132416
|
const parsed = safeParse4(request, (value) => IngestGraphRAGDocumentsRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
132260
132417
|
if (!parsed.ok) {
|
|
132261
132418
|
return [parsed, { status: "invalid" }];
|
|
@@ -132374,9 +132531,9 @@ var init_searchGraphragIngestGraphRAGDocuments2 = __esm(() => {
|
|
|
132374
132531
|
|
|
132375
132532
|
// src/funcs/searchGraphragInspectGraphRAGStore.ts
|
|
132376
132533
|
function searchGraphragInspectGraphRAGStore(client, request, options) {
|
|
132377
|
-
return new APIPromise($
|
|
132534
|
+
return new APIPromise($do282(client, request, options));
|
|
132378
132535
|
}
|
|
132379
|
-
async function $
|
|
132536
|
+
async function $do282(client, request, options) {
|
|
132380
132537
|
const parsed = safeParse4(request, (value) => InspectGraphRAGStoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132381
132538
|
if (!parsed.ok) {
|
|
132382
132539
|
return [parsed, { status: "invalid" }];
|
|
@@ -132497,9 +132654,9 @@ var init_searchGraphragInspectGraphRAGStore2 = __esm(() => {
|
|
|
132497
132654
|
|
|
132498
132655
|
// src/funcs/searchGraphragQueryGraphRAGStore.ts
|
|
132499
132656
|
function searchGraphragQueryGraphRAGStore(client, request, options) {
|
|
132500
|
-
return new APIPromise($
|
|
132657
|
+
return new APIPromise($do283(client, request, options));
|
|
132501
132658
|
}
|
|
132502
|
-
async function $
|
|
132659
|
+
async function $do283(client, request, options) {
|
|
132503
132660
|
const parsed = safeParse4(request, (value) => QueryGraphRAGStoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132504
132661
|
if (!parsed.ok) {
|
|
132505
132662
|
return [parsed, { status: "invalid" }];
|
|
@@ -132618,9 +132775,9 @@ var init_searchGraphragQueryGraphRAGStore2 = __esm(() => {
|
|
|
132618
132775
|
|
|
132619
132776
|
// src/funcs/searchTablesCreateIndices.ts
|
|
132620
132777
|
function searchTablesCreateIndices(client, request, options) {
|
|
132621
|
-
return new APIPromise($
|
|
132778
|
+
return new APIPromise($do284(client, request, options));
|
|
132622
132779
|
}
|
|
132623
|
-
async function $
|
|
132780
|
+
async function $do284(client, request, options) {
|
|
132624
132781
|
const parsed = safeParse4(request, (value) => CreateIndicesRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
132625
132782
|
if (!parsed.ok) {
|
|
132626
132783
|
return [parsed, { status: "invalid" }];
|
|
@@ -132741,9 +132898,9 @@ Create indices on the specified table.`,
|
|
|
132741
132898
|
|
|
132742
132899
|
// src/funcs/searchTablesCreateTable.ts
|
|
132743
132900
|
function searchTablesCreateTable(client, request, options) {
|
|
132744
|
-
return new APIPromise($
|
|
132901
|
+
return new APIPromise($do285(client, request, options));
|
|
132745
132902
|
}
|
|
132746
|
-
async function $
|
|
132903
|
+
async function $do285(client, request, options) {
|
|
132747
132904
|
const parsed = safeParse4(request, (value) => CreateTableRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
132748
132905
|
if (!parsed.ok) {
|
|
132749
132906
|
return [parsed, { status: "invalid" }];
|
|
@@ -132858,9 +133015,9 @@ Create a new table with the specified schema.`,
|
|
|
132858
133015
|
|
|
132859
133016
|
// src/funcs/searchTablesDeleteData.ts
|
|
132860
133017
|
function searchTablesDeleteData(client, request, options) {
|
|
132861
|
-
return new APIPromise($
|
|
133018
|
+
return new APIPromise($do286(client, request, options));
|
|
132862
133019
|
}
|
|
132863
|
-
async function $
|
|
133020
|
+
async function $do286(client, request, options) {
|
|
132864
133021
|
const parsed = safeParse4(request, (value) => DeleteDataRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
132865
133022
|
if (!parsed.ok) {
|
|
132866
133023
|
return [parsed, { status: "invalid" }];
|
|
@@ -132979,9 +133136,9 @@ Delete data from a table using a filter expression. https://lancedb.github.io/la
|
|
|
132979
133136
|
|
|
132980
133137
|
// src/funcs/searchTablesDeleteTable.ts
|
|
132981
133138
|
function searchTablesDeleteTable(client, request, options) {
|
|
132982
|
-
return new APIPromise($
|
|
133139
|
+
return new APIPromise($do287(client, request, options));
|
|
132983
133140
|
}
|
|
132984
|
-
async function $
|
|
133141
|
+
async function $do287(client, request, options) {
|
|
132985
133142
|
const parsed = safeParse4(request, (value) => DeleteTableRequest$outboundSchema.parse(value), "Input validation failed");
|
|
132986
133143
|
if (!parsed.ok) {
|
|
132987
133144
|
return [parsed, { status: "invalid" }];
|
|
@@ -133099,9 +133256,9 @@ Delete a table.`,
|
|
|
133099
133256
|
|
|
133100
133257
|
// src/funcs/searchTablesDropIndex.ts
|
|
133101
133258
|
function searchTablesDropIndex(client, request, options) {
|
|
133102
|
-
return new APIPromise($
|
|
133259
|
+
return new APIPromise($do288(client, request, options));
|
|
133103
133260
|
}
|
|
133104
|
-
async function $
|
|
133261
|
+
async function $do288(client, request, options) {
|
|
133105
133262
|
const parsed = safeParse4(request, (value) => DropIndexRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133106
133263
|
if (!parsed.ok) {
|
|
133107
133264
|
return [parsed, { status: "invalid" }];
|
|
@@ -133223,9 +133380,9 @@ Drop an index on the specified field.`,
|
|
|
133223
133380
|
|
|
133224
133381
|
// src/funcs/searchTablesGetTableSchema.ts
|
|
133225
133382
|
function searchTablesGetTableSchema(client, request, options) {
|
|
133226
|
-
return new APIPromise($
|
|
133383
|
+
return new APIPromise($do289(client, request, options));
|
|
133227
133384
|
}
|
|
133228
|
-
async function $
|
|
133385
|
+
async function $do289(client, request, options) {
|
|
133229
133386
|
const parsed = safeParse4(request, (value) => GetTableSchemaRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133230
133387
|
if (!parsed.ok) {
|
|
133231
133388
|
return [parsed, { status: "invalid" }];
|
|
@@ -133343,9 +133500,9 @@ Get table schema and metadata.`,
|
|
|
133343
133500
|
|
|
133344
133501
|
// src/funcs/searchTablesInsertData.ts
|
|
133345
133502
|
function searchTablesInsertData(client, request, options) {
|
|
133346
|
-
return new APIPromise($
|
|
133503
|
+
return new APIPromise($do290(client, request, options));
|
|
133347
133504
|
}
|
|
133348
|
-
async function $
|
|
133505
|
+
async function $do290(client, request, options) {
|
|
133349
133506
|
const parsed = safeParse4(request, (value) => InsertDataRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
133350
133507
|
if (!parsed.ok) {
|
|
133351
133508
|
return [parsed, { status: "invalid" }];
|
|
@@ -133464,9 +133621,9 @@ Insert data into the specified table.`,
|
|
|
133464
133621
|
|
|
133465
133622
|
// src/funcs/searchTablesListIndices.ts
|
|
133466
133623
|
function searchTablesListIndices(client, request, options) {
|
|
133467
|
-
return new APIPromise($
|
|
133624
|
+
return new APIPromise($do291(client, request, options));
|
|
133468
133625
|
}
|
|
133469
|
-
async function $
|
|
133626
|
+
async function $do291(client, request, options) {
|
|
133470
133627
|
const parsed = safeParse4(request, (value) => ListIndicesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133471
133628
|
if (!parsed.ok) {
|
|
133472
133629
|
return [parsed, { status: "invalid" }];
|
|
@@ -133584,9 +133741,9 @@ List all indices on the specified table.`,
|
|
|
133584
133741
|
|
|
133585
133742
|
// src/funcs/searchTablesSearchData.ts
|
|
133586
133743
|
function searchTablesSearchData(client, request, options) {
|
|
133587
|
-
return new APIPromise($
|
|
133744
|
+
return new APIPromise($do292(client, request, options));
|
|
133588
133745
|
}
|
|
133589
|
-
async function $
|
|
133746
|
+
async function $do292(client, request, options) {
|
|
133590
133747
|
const parsed = safeParse4(request, (value) => SearchDataRequest$outboundSchema.parse(value), "Input validation failed");
|
|
133591
133748
|
if (!parsed.ok) {
|
|
133592
133749
|
return [parsed, { status: "invalid" }];
|
|
@@ -133705,9 +133862,9 @@ Perform search operations on a table.`,
|
|
|
133705
133862
|
|
|
133706
133863
|
// src/funcs/searchTextStoreAddTexts.ts
|
|
133707
133864
|
function searchTextStoreAddTexts(client, request, options) {
|
|
133708
|
-
return new APIPromise($
|
|
133865
|
+
return new APIPromise($do293(client, request, options));
|
|
133709
133866
|
}
|
|
133710
|
-
async function $
|
|
133867
|
+
async function $do293(client, request, options) {
|
|
133711
133868
|
const parsed = safeParse4(request, (value) => AddTextsRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
133712
133869
|
if (!parsed.ok) {
|
|
133713
133870
|
return [parsed, { status: "invalid" }];
|
|
@@ -133826,9 +133983,9 @@ Add texts to a store with a group identifier`,
|
|
|
133826
133983
|
|
|
133827
133984
|
// src/funcs/searchTextStoreCreateTextStore.ts
|
|
133828
133985
|
function searchTextStoreCreateTextStore(client, request, options) {
|
|
133829
|
-
return new APIPromise($
|
|
133986
|
+
return new APIPromise($do294(client, request, options));
|
|
133830
133987
|
}
|
|
133831
|
-
async function $
|
|
133988
|
+
async function $do294(client, request, options) {
|
|
133832
133989
|
const parsed = safeParse4(request, (value) => CreateTextStoreRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
133833
133990
|
if (!parsed.ok) {
|
|
133834
133991
|
return [parsed, { status: "invalid" }];
|
|
@@ -133943,9 +134100,9 @@ Create a new text store (idempotent: returns 200 if a store with the same name a
|
|
|
133943
134100
|
|
|
133944
134101
|
// src/funcs/searchTextStoreDeleteTexts.ts
|
|
133945
134102
|
function searchTextStoreDeleteTexts(client, request, options) {
|
|
133946
|
-
return new APIPromise($
|
|
134103
|
+
return new APIPromise($do295(client, request, options));
|
|
133947
134104
|
}
|
|
133948
|
-
async function $
|
|
134105
|
+
async function $do295(client, request, options) {
|
|
133949
134106
|
const parsed = safeParse4(request, (value) => DeleteTextsRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
133950
134107
|
if (!parsed.ok) {
|
|
133951
134108
|
return [parsed, { status: "invalid" }];
|
|
@@ -134066,9 +134223,9 @@ Delete texts from a store by specific texts or group identifiers`,
|
|
|
134066
134223
|
|
|
134067
134224
|
// src/funcs/searchTextStoreDeleteTextStore.ts
|
|
134068
134225
|
function searchTextStoreDeleteTextStore(client, request, options) {
|
|
134069
|
-
return new APIPromise($
|
|
134226
|
+
return new APIPromise($do296(client, request, options));
|
|
134070
134227
|
}
|
|
134071
|
-
async function $
|
|
134228
|
+
async function $do296(client, request, options) {
|
|
134072
134229
|
const parsed = safeParse4(request, (value) => DeleteTextStoreRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134073
134230
|
if (!parsed.ok) {
|
|
134074
134231
|
return [parsed, { status: "invalid" }];
|
|
@@ -134186,9 +134343,9 @@ Delete a text store and all its data`,
|
|
|
134186
134343
|
|
|
134187
134344
|
// src/funcs/searchTextStoreSearchTexts.ts
|
|
134188
134345
|
function searchTextStoreSearchTexts(client, request, options) {
|
|
134189
|
-
return new APIPromise($
|
|
134346
|
+
return new APIPromise($do297(client, request, options));
|
|
134190
134347
|
}
|
|
134191
|
-
async function $
|
|
134348
|
+
async function $do297(client, request, options) {
|
|
134192
134349
|
const parsed = safeParse4(request, (value) => SearchTextsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134193
134350
|
if (!parsed.ok) {
|
|
134194
134351
|
return [parsed, { status: "invalid" }];
|
|
@@ -134307,9 +134464,9 @@ Search for similar texts in a store`,
|
|
|
134307
134464
|
|
|
134308
134465
|
// src/funcs/servingAcceleratorsList.ts
|
|
134309
134466
|
function servingAcceleratorsList(client, request, options) {
|
|
134310
|
-
return new APIPromise($
|
|
134467
|
+
return new APIPromise($do298(client, request, options));
|
|
134311
134468
|
}
|
|
134312
|
-
async function $
|
|
134469
|
+
async function $do298(client, request, options) {
|
|
134313
134470
|
const parsed = safeParse4(request, (value) => ListAcceleratorsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134314
134471
|
if (!parsed.ok) {
|
|
134315
134472
|
return [parsed, { status: "invalid" }];
|
|
@@ -134421,9 +134578,9 @@ List the accelerator types available to your organization (GPU, NPU, TPU).`,
|
|
|
134421
134578
|
|
|
134422
134579
|
// src/funcs/servingDeploymentsCreate.ts
|
|
134423
134580
|
function servingDeploymentsCreate(client, request, options) {
|
|
134424
|
-
return new APIPromise($
|
|
134581
|
+
return new APIPromise($do299(client, request, options));
|
|
134425
134582
|
}
|
|
134426
|
-
async function $
|
|
134583
|
+
async function $do299(client, request, options) {
|
|
134427
134584
|
const parsed = safeParse4(request, (value) => CreateDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134428
134585
|
if (!parsed.ok) {
|
|
134429
134586
|
return [parsed, { status: "invalid" }];
|
|
@@ -134536,9 +134693,9 @@ Create and start an inference deployment for a model, and return its endpoint.`,
|
|
|
134536
134693
|
|
|
134537
134694
|
// src/funcs/servingDeploymentsDelete.ts
|
|
134538
134695
|
function servingDeploymentsDelete(client, request, options) {
|
|
134539
|
-
return new APIPromise($
|
|
134696
|
+
return new APIPromise($do300(client, request, options));
|
|
134540
134697
|
}
|
|
134541
|
-
async function $
|
|
134698
|
+
async function $do300(client, request, options) {
|
|
134542
134699
|
const parsed = safeParse4(request, (value) => DeleteDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134543
134700
|
if (!parsed.ok) {
|
|
134544
134701
|
return [parsed, { status: "invalid" }];
|
|
@@ -134655,9 +134812,9 @@ Tear down a deployment and release its resources.`,
|
|
|
134655
134812
|
|
|
134656
134813
|
// src/funcs/servingDeploymentsGet.ts
|
|
134657
134814
|
function servingDeploymentsGet(client, request, options) {
|
|
134658
|
-
return new APIPromise($
|
|
134815
|
+
return new APIPromise($do301(client, request, options));
|
|
134659
134816
|
}
|
|
134660
|
-
async function $
|
|
134817
|
+
async function $do301(client, request, options) {
|
|
134661
134818
|
const parsed = safeParse4(request, (value) => GetDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134662
134819
|
if (!parsed.ok) {
|
|
134663
134820
|
return [parsed, { status: "invalid" }];
|
|
@@ -134775,9 +134932,9 @@ Retrieve a single deployment, including its status and endpoint URL.`,
|
|
|
134775
134932
|
|
|
134776
134933
|
// src/funcs/servingDeploymentsGetLogs.ts
|
|
134777
134934
|
function servingDeploymentsGetLogs(client, request, options) {
|
|
134778
|
-
return new APIPromise($
|
|
134935
|
+
return new APIPromise($do302(client, request, options));
|
|
134779
134936
|
}
|
|
134780
|
-
async function $
|
|
134937
|
+
async function $do302(client, request, options) {
|
|
134781
134938
|
const parsed = safeParse4(request, (value) => GetDeploymentLogsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134782
134939
|
if (!parsed.ok) {
|
|
134783
134940
|
return [parsed, { status: "invalid" }];
|
|
@@ -134900,9 +135057,9 @@ Fetch recent log lines from a deployment's replicas.`,
|
|
|
134900
135057
|
|
|
134901
135058
|
// src/funcs/servingDeploymentsGetMetrics.ts
|
|
134902
135059
|
function servingDeploymentsGetMetrics(client, request, options) {
|
|
134903
|
-
return new APIPromise($
|
|
135060
|
+
return new APIPromise($do303(client, request, options));
|
|
134904
135061
|
}
|
|
134905
|
-
async function $
|
|
135062
|
+
async function $do303(client, request, options) {
|
|
134906
135063
|
const parsed = safeParse4(request, (value) => GetDeploymentMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134907
135064
|
if (!parsed.ok) {
|
|
134908
135065
|
return [parsed, { status: "invalid" }];
|
|
@@ -135020,9 +135177,9 @@ Return live serving metrics (throughput, queue depth, accelerator usage).`,
|
|
|
135020
135177
|
|
|
135021
135178
|
// src/funcs/servingDeploymentsList.ts
|
|
135022
135179
|
function servingDeploymentsList(client, request, options) {
|
|
135023
|
-
return new APIPromise($
|
|
135180
|
+
return new APIPromise($do304(client, request, options));
|
|
135024
135181
|
}
|
|
135025
|
-
async function $
|
|
135182
|
+
async function $do304(client, request, options) {
|
|
135026
135183
|
const parsed = safeParse4(request, (value) => ListDeploymentsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135027
135184
|
if (!parsed.ok) {
|
|
135028
135185
|
return [parsed, { status: "invalid" }];
|
|
@@ -135139,9 +135296,9 @@ List your inference deployments.`,
|
|
|
135139
135296
|
|
|
135140
135297
|
// src/funcs/servingDeploymentsListReplicas.ts
|
|
135141
135298
|
function servingDeploymentsListReplicas(client, request, options) {
|
|
135142
|
-
return new APIPromise($
|
|
135299
|
+
return new APIPromise($do305(client, request, options));
|
|
135143
135300
|
}
|
|
135144
|
-
async function $
|
|
135301
|
+
async function $do305(client, request, options) {
|
|
135145
135302
|
const parsed = safeParse4(request, (value) => ListReplicasRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135146
135303
|
if (!parsed.ok) {
|
|
135147
135304
|
return [parsed, { status: "invalid" }];
|
|
@@ -135259,9 +135416,9 @@ List the replicas currently backing a deployment.`,
|
|
|
135259
135416
|
|
|
135260
135417
|
// src/funcs/servingDeploymentsListRevisions.ts
|
|
135261
135418
|
function servingDeploymentsListRevisions(client, request, options) {
|
|
135262
|
-
return new APIPromise($
|
|
135419
|
+
return new APIPromise($do306(client, request, options));
|
|
135263
135420
|
}
|
|
135264
|
-
async function $
|
|
135421
|
+
async function $do306(client, request, options) {
|
|
135265
135422
|
const parsed = safeParse4(request, (value) => ListRevisionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135266
135423
|
if (!parsed.ok) {
|
|
135267
135424
|
return [parsed, { status: "invalid" }];
|
|
@@ -135379,9 +135536,9 @@ List a deployment's configuration revisions, most recent first.`,
|
|
|
135379
135536
|
|
|
135380
135537
|
// src/funcs/servingDeploymentsRollback.ts
|
|
135381
135538
|
function servingDeploymentsRollback(client, request, options) {
|
|
135382
|
-
return new APIPromise($
|
|
135539
|
+
return new APIPromise($do307(client, request, options));
|
|
135383
135540
|
}
|
|
135384
|
-
async function $
|
|
135541
|
+
async function $do307(client, request, options) {
|
|
135385
135542
|
const parsed = safeParse4(request, (value) => RollbackDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135386
135543
|
if (!parsed.ok) {
|
|
135387
135544
|
return [parsed, { status: "invalid" }];
|
|
@@ -135502,9 +135659,9 @@ Roll a deployment back to a previous configuration revision.`,
|
|
|
135502
135659
|
|
|
135503
135660
|
// src/funcs/servingDeploymentsUpdate.ts
|
|
135504
135661
|
function servingDeploymentsUpdate(client, request, options) {
|
|
135505
|
-
return new APIPromise($
|
|
135662
|
+
return new APIPromise($do308(client, request, options));
|
|
135506
135663
|
}
|
|
135507
|
-
async function $
|
|
135664
|
+
async function $do308(client, request, options) {
|
|
135508
135665
|
const parsed = safeParse4(request, (value) => UpdateDeploymentRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135509
135666
|
if (!parsed.ok) {
|
|
135510
135667
|
return [parsed, { status: "invalid" }];
|
|
@@ -135623,9 +135780,9 @@ Update a deployment's configuration, rolling out a new revision.`,
|
|
|
135623
135780
|
|
|
135624
135781
|
// src/funcs/servingDeploymentsUpdateScaling.ts
|
|
135625
135782
|
function servingDeploymentsUpdateScaling(client, request, options) {
|
|
135626
|
-
return new APIPromise($
|
|
135783
|
+
return new APIPromise($do309(client, request, options));
|
|
135627
135784
|
}
|
|
135628
|
-
async function $
|
|
135785
|
+
async function $do309(client, request, options) {
|
|
135629
135786
|
const parsed = safeParse4(request, (value) => UpdateScalingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135630
135787
|
if (!parsed.ok) {
|
|
135631
135788
|
return [parsed, { status: "invalid" }];
|
|
@@ -135744,9 +135901,9 @@ Change a deployment's autoscaling limits in place, without redeploying.`,
|
|
|
135744
135901
|
|
|
135745
135902
|
// src/funcs/servingFinetuneJobsCancel.ts
|
|
135746
135903
|
function servingFinetuneJobsCancel(client, request, options) {
|
|
135747
|
-
return new APIPromise($
|
|
135904
|
+
return new APIPromise($do310(client, request, options));
|
|
135748
135905
|
}
|
|
135749
|
-
async function $
|
|
135906
|
+
async function $do310(client, request, options) {
|
|
135750
135907
|
const parsed = safeParse4(request, (value) => CancelFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135751
135908
|
if (!parsed.ok) {
|
|
135752
135909
|
return [parsed, { status: "invalid" }];
|
|
@@ -135863,9 +136020,9 @@ Cancel a running fine-tune job.`,
|
|
|
135863
136020
|
|
|
135864
136021
|
// src/funcs/servingFinetuneJobsCreate.ts
|
|
135865
136022
|
function servingFinetuneJobsCreate(client, request, options) {
|
|
135866
|
-
return new APIPromise($
|
|
136023
|
+
return new APIPromise($do311(client, request, options));
|
|
135867
136024
|
}
|
|
135868
|
-
async function $
|
|
136025
|
+
async function $do311(client, request, options) {
|
|
135869
136026
|
const parsed = safeParse4(request, (value) => CreateFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135870
136027
|
if (!parsed.ok) {
|
|
135871
136028
|
return [parsed, { status: "invalid" }];
|
|
@@ -135978,9 +136135,9 @@ Submit a fine-tune job for a base model and dataset, and return its id.`,
|
|
|
135978
136135
|
|
|
135979
136136
|
// src/funcs/servingFinetuneJobsGet.ts
|
|
135980
136137
|
function servingFinetuneJobsGet(client, request, options) {
|
|
135981
|
-
return new APIPromise($
|
|
136138
|
+
return new APIPromise($do312(client, request, options));
|
|
135982
136139
|
}
|
|
135983
|
-
async function $
|
|
136140
|
+
async function $do312(client, request, options) {
|
|
135984
136141
|
const parsed = safeParse4(request, (value) => GetFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135985
136142
|
if (!parsed.ok) {
|
|
135986
136143
|
return [parsed, { status: "invalid" }];
|
|
@@ -136098,9 +136255,9 @@ Retrieve a fine-tune job, including its status and progress.`,
|
|
|
136098
136255
|
|
|
136099
136256
|
// src/funcs/servingFinetuneJobsGetEvents.ts
|
|
136100
136257
|
function servingFinetuneJobsGetEvents(client, request, options) {
|
|
136101
|
-
return new APIPromise($
|
|
136258
|
+
return new APIPromise($do313(client, request, options));
|
|
136102
136259
|
}
|
|
136103
|
-
async function $
|
|
136260
|
+
async function $do313(client, request, options) {
|
|
136104
136261
|
const parsed = safeParse4(request, (value) => GetFinetuneEventsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136105
136262
|
if (!parsed.ok) {
|
|
136106
136263
|
return [parsed, { status: "invalid" }];
|
|
@@ -136219,9 +136376,9 @@ Return the job's status timeline (queued, running, checkpoints, completion).`,
|
|
|
136219
136376
|
|
|
136220
136377
|
// src/funcs/servingFinetuneJobsGetLogs.ts
|
|
136221
136378
|
function servingFinetuneJobsGetLogs(client, request, options) {
|
|
136222
|
-
return new APIPromise($
|
|
136379
|
+
return new APIPromise($do314(client, request, options));
|
|
136223
136380
|
}
|
|
136224
|
-
async function $
|
|
136381
|
+
async function $do314(client, request, options) {
|
|
136225
136382
|
const parsed = safeParse4(request, (value) => GetFinetuneLogsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136226
136383
|
if (!parsed.ok) {
|
|
136227
136384
|
return [parsed, { status: "invalid" }];
|
|
@@ -136344,9 +136501,9 @@ Fetch recent training log lines for a job.`,
|
|
|
136344
136501
|
|
|
136345
136502
|
// src/funcs/servingFinetuneJobsList.ts
|
|
136346
136503
|
function servingFinetuneJobsList(client, request, options) {
|
|
136347
|
-
return new APIPromise($
|
|
136504
|
+
return new APIPromise($do315(client, request, options));
|
|
136348
136505
|
}
|
|
136349
|
-
async function $
|
|
136506
|
+
async function $do315(client, request, options) {
|
|
136350
136507
|
const parsed = safeParse4(request, (value) => ListFinetuneJobsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136351
136508
|
if (!parsed.ok) {
|
|
136352
136509
|
return [parsed, { status: "invalid" }];
|
|
@@ -136463,9 +136620,9 @@ List your fine-tune jobs.`,
|
|
|
136463
136620
|
|
|
136464
136621
|
// src/funcs/servingFinetuneJobsListCheckpoints.ts
|
|
136465
136622
|
function servingFinetuneJobsListCheckpoints(client, request, options) {
|
|
136466
|
-
return new APIPromise($
|
|
136623
|
+
return new APIPromise($do316(client, request, options));
|
|
136467
136624
|
}
|
|
136468
|
-
async function $
|
|
136625
|
+
async function $do316(client, request, options) {
|
|
136469
136626
|
const parsed = safeParse4(request, (value) => ListFinetuneCheckpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136470
136627
|
if (!parsed.ok) {
|
|
136471
136628
|
return [parsed, { status: "invalid" }];
|
|
@@ -136584,9 +136741,9 @@ List the checkpoints a fine-tune job has produced.`,
|
|
|
136584
136741
|
|
|
136585
136742
|
// src/funcs/servingImagesBuild.ts
|
|
136586
136743
|
function servingImagesBuild(client, request, options) {
|
|
136587
|
-
return new APIPromise($
|
|
136744
|
+
return new APIPromise($do317(client, request, options));
|
|
136588
136745
|
}
|
|
136589
|
-
async function $
|
|
136746
|
+
async function $do317(client, request, options) {
|
|
136590
136747
|
const parsed = safeParse4(request, (value) => BuildImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136591
136748
|
if (!parsed.ok) {
|
|
136592
136749
|
return [parsed, { status: "invalid" }];
|
|
@@ -136699,9 +136856,9 @@ Build a custom container image from a recipe for use by deployments and jobs.`,
|
|
|
136699
136856
|
|
|
136700
136857
|
// src/funcs/servingImagesDelete.ts
|
|
136701
136858
|
function servingImagesDelete(client, request, options) {
|
|
136702
|
-
return new APIPromise($
|
|
136859
|
+
return new APIPromise($do318(client, request, options));
|
|
136703
136860
|
}
|
|
136704
|
-
async function $
|
|
136861
|
+
async function $do318(client, request, options) {
|
|
136705
136862
|
const parsed = safeParse4(request, (value) => DeleteImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136706
136863
|
if (!parsed.ok) {
|
|
136707
136864
|
return [parsed, { status: "invalid" }];
|
|
@@ -136818,9 +136975,9 @@ Delete a container image.`,
|
|
|
136818
136975
|
|
|
136819
136976
|
// src/funcs/servingImagesGet.ts
|
|
136820
136977
|
function servingImagesGet(client, request, options) {
|
|
136821
|
-
return new APIPromise($
|
|
136978
|
+
return new APIPromise($do319(client, request, options));
|
|
136822
136979
|
}
|
|
136823
|
-
async function $
|
|
136980
|
+
async function $do319(client, request, options) {
|
|
136824
136981
|
const parsed = safeParse4(request, (value) => GetImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136825
136982
|
if (!parsed.ok) {
|
|
136826
136983
|
return [parsed, { status: "invalid" }];
|
|
@@ -136938,9 +137095,9 @@ Retrieve an image, including its build status.`,
|
|
|
136938
137095
|
|
|
136939
137096
|
// src/funcs/servingImagesList.ts
|
|
136940
137097
|
function servingImagesList(client, request, options) {
|
|
136941
|
-
return new APIPromise($
|
|
137098
|
+
return new APIPromise($do320(client, request, options));
|
|
136942
137099
|
}
|
|
136943
|
-
async function $
|
|
137100
|
+
async function $do320(client, request, options) {
|
|
136944
137101
|
const parsed = safeParse4(request, (value) => ListImagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136945
137102
|
if (!parsed.ok) {
|
|
136946
137103
|
return [parsed, { status: "invalid" }];
|
|
@@ -137057,9 +137214,9 @@ List your container images.`,
|
|
|
137057
137214
|
|
|
137058
137215
|
// src/funcs/servingModelsDelete.ts
|
|
137059
137216
|
function servingModelsDelete(client, request, options) {
|
|
137060
|
-
return new APIPromise($
|
|
137217
|
+
return new APIPromise($do321(client, request, options));
|
|
137061
137218
|
}
|
|
137062
|
-
async function $
|
|
137219
|
+
async function $do321(client, request, options) {
|
|
137063
137220
|
const parsed = safeParse4(request, (value) => DeleteModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137064
137221
|
if (!parsed.ok) {
|
|
137065
137222
|
return [parsed, { status: "invalid" }];
|
|
@@ -137176,9 +137333,9 @@ Deregister a model from the catalog.`,
|
|
|
137176
137333
|
|
|
137177
137334
|
// src/funcs/servingModelsGet.ts
|
|
137178
137335
|
function servingModelsGet(client, request, options) {
|
|
137179
|
-
return new APIPromise($
|
|
137336
|
+
return new APIPromise($do322(client, request, options));
|
|
137180
137337
|
}
|
|
137181
|
-
async function $
|
|
137338
|
+
async function $do322(client, request, options) {
|
|
137182
137339
|
const parsed = safeParse4(request, (value) => GetServingModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137183
137340
|
if (!parsed.ok) {
|
|
137184
137341
|
return [parsed, { status: "invalid" }];
|
|
@@ -137296,9 +137453,9 @@ Retrieve a registered model.`,
|
|
|
137296
137453
|
|
|
137297
137454
|
// src/funcs/servingModelsList.ts
|
|
137298
137455
|
function servingModelsList(client, request, options) {
|
|
137299
|
-
return new APIPromise($
|
|
137456
|
+
return new APIPromise($do323(client, request, options));
|
|
137300
137457
|
}
|
|
137301
|
-
async function $
|
|
137458
|
+
async function $do323(client, request, options) {
|
|
137302
137459
|
const parsed = safeParse4(request, (value) => ListServingModelsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137303
137460
|
if (!parsed.ok) {
|
|
137304
137461
|
return [parsed, { status: "invalid" }];
|
|
@@ -137415,9 +137572,9 @@ List your registered models.`,
|
|
|
137415
137572
|
|
|
137416
137573
|
// src/funcs/servingModelsRegister.ts
|
|
137417
137574
|
function servingModelsRegister(client, request, options) {
|
|
137418
|
-
return new APIPromise($
|
|
137575
|
+
return new APIPromise($do324(client, request, options));
|
|
137419
137576
|
}
|
|
137420
|
-
async function $
|
|
137577
|
+
async function $do324(client, request, options) {
|
|
137421
137578
|
const parsed = safeParse4(request, (value) => RegisterModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137422
137579
|
if (!parsed.ok) {
|
|
137423
137580
|
return [parsed, { status: "invalid" }];
|
|
@@ -137530,9 +137687,9 @@ Register a model (from a source or volume) so it can be deployed or fine-tuned.`
|
|
|
137530
137687
|
|
|
137531
137688
|
// src/funcs/servingSecretsCreate.ts
|
|
137532
137689
|
function servingSecretsCreate(client, request, options) {
|
|
137533
|
-
return new APIPromise($
|
|
137690
|
+
return new APIPromise($do325(client, request, options));
|
|
137534
137691
|
}
|
|
137535
|
-
async function $
|
|
137692
|
+
async function $do325(client, request, options) {
|
|
137536
137693
|
const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137537
137694
|
if (!parsed.ok) {
|
|
137538
137695
|
return [parsed, { status: "invalid" }];
|
|
@@ -137645,9 +137802,9 @@ Create a secret whose values are injected into your workloads as env vars.`,
|
|
|
137645
137802
|
|
|
137646
137803
|
// src/funcs/servingSecretsDelete.ts
|
|
137647
137804
|
function servingSecretsDelete(client, request, options) {
|
|
137648
|
-
return new APIPromise($
|
|
137805
|
+
return new APIPromise($do326(client, request, options));
|
|
137649
137806
|
}
|
|
137650
|
-
async function $
|
|
137807
|
+
async function $do326(client, request, options) {
|
|
137651
137808
|
const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137652
137809
|
if (!parsed.ok) {
|
|
137653
137810
|
return [parsed, { status: "invalid" }];
|
|
@@ -137764,9 +137921,9 @@ Delete a secret.`,
|
|
|
137764
137921
|
|
|
137765
137922
|
// src/funcs/servingSecretsList.ts
|
|
137766
137923
|
function servingSecretsList(client, request, options) {
|
|
137767
|
-
return new APIPromise($
|
|
137924
|
+
return new APIPromise($do327(client, request, options));
|
|
137768
137925
|
}
|
|
137769
|
-
async function $
|
|
137926
|
+
async function $do327(client, request, options) {
|
|
137770
137927
|
const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137771
137928
|
if (!parsed.ok) {
|
|
137772
137929
|
return [parsed, { status: "invalid" }];
|
|
@@ -137883,9 +138040,9 @@ List your secrets by name (values are never returned).`,
|
|
|
137883
138040
|
|
|
137884
138041
|
// src/funcs/servingVolumesCreate.ts
|
|
137885
138042
|
function servingVolumesCreate(client, request, options) {
|
|
137886
|
-
return new APIPromise($
|
|
138043
|
+
return new APIPromise($do328(client, request, options));
|
|
137887
138044
|
}
|
|
137888
|
-
async function $
|
|
138045
|
+
async function $do328(client, request, options) {
|
|
137889
138046
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137890
138047
|
if (!parsed.ok) {
|
|
137891
138048
|
return [parsed, { status: "invalid" }];
|
|
@@ -137998,9 +138155,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
137998
138155
|
|
|
137999
138156
|
// src/funcs/servingVolumesDelete.ts
|
|
138000
138157
|
function servingVolumesDelete(client, request, options) {
|
|
138001
|
-
return new APIPromise($
|
|
138158
|
+
return new APIPromise($do329(client, request, options));
|
|
138002
138159
|
}
|
|
138003
|
-
async function $
|
|
138160
|
+
async function $do329(client, request, options) {
|
|
138004
138161
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138005
138162
|
if (!parsed.ok) {
|
|
138006
138163
|
return [parsed, { status: "invalid" }];
|
|
@@ -138117,9 +138274,9 @@ Delete a volume and its contents.`,
|
|
|
138117
138274
|
|
|
138118
138275
|
// src/funcs/servingVolumesGet.ts
|
|
138119
138276
|
function servingVolumesGet(client, request, options) {
|
|
138120
|
-
return new APIPromise($
|
|
138277
|
+
return new APIPromise($do330(client, request, options));
|
|
138121
138278
|
}
|
|
138122
|
-
async function $
|
|
138279
|
+
async function $do330(client, request, options) {
|
|
138123
138280
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138124
138281
|
if (!parsed.ok) {
|
|
138125
138282
|
return [parsed, { status: "invalid" }];
|
|
@@ -138237,9 +138394,9 @@ Retrieve a volume.`,
|
|
|
138237
138394
|
|
|
138238
138395
|
// src/funcs/servingVolumesList.ts
|
|
138239
138396
|
function servingVolumesList(client, request, options) {
|
|
138240
|
-
return new APIPromise($
|
|
138397
|
+
return new APIPromise($do331(client, request, options));
|
|
138241
138398
|
}
|
|
138242
|
-
async function $
|
|
138399
|
+
async function $do331(client, request, options) {
|
|
138243
138400
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138244
138401
|
if (!parsed.ok) {
|
|
138245
138402
|
return [parsed, { status: "invalid" }];
|
|
@@ -138356,9 +138513,9 @@ List your volumes.`,
|
|
|
138356
138513
|
|
|
138357
138514
|
// src/funcs/usageCosts.ts
|
|
138358
138515
|
function usageCosts(client, request, options) {
|
|
138359
|
-
return new APIPromise($
|
|
138516
|
+
return new APIPromise($do332(client, request, options));
|
|
138360
138517
|
}
|
|
138361
|
-
async function $
|
|
138518
|
+
async function $do332(client, request, options) {
|
|
138362
138519
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138363
138520
|
if (!parsed.ok) {
|
|
138364
138521
|
return [parsed, { status: "invalid" }];
|
|
@@ -138469,11 +138626,134 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
138469
138626
|
};
|
|
138470
138627
|
});
|
|
138471
138628
|
|
|
138629
|
+
// src/funcs/usageSandbox.ts
|
|
138630
|
+
function usageSandbox(client, request, options) {
|
|
138631
|
+
return new APIPromise($do333(client, request, options));
|
|
138632
|
+
}
|
|
138633
|
+
async function $do333(client, request, options) {
|
|
138634
|
+
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138635
|
+
if (!parsed.ok) {
|
|
138636
|
+
return [parsed, { status: "invalid" }];
|
|
138637
|
+
}
|
|
138638
|
+
const payload = parsed.value;
|
|
138639
|
+
const body = null;
|
|
138640
|
+
const path = pathToFunc("/api/v1/sandbox/usage")();
|
|
138641
|
+
const query = encodeFormQuery({
|
|
138642
|
+
all_orgs: payload.all_orgs,
|
|
138643
|
+
bucket_width: payload.bucket_width,
|
|
138644
|
+
end_time: payload.end_time,
|
|
138645
|
+
group_by: payload.group_by,
|
|
138646
|
+
org_ids: payload.org_ids,
|
|
138647
|
+
start_time: payload.start_time
|
|
138648
|
+
});
|
|
138649
|
+
const headers = new Headers(compactMap({
|
|
138650
|
+
Accept: "application/json",
|
|
138651
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
138652
|
+
}));
|
|
138653
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
138654
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
138655
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
138656
|
+
const context = {
|
|
138657
|
+
options: client._options,
|
|
138658
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
138659
|
+
operationID: "getSandboxUsage",
|
|
138660
|
+
oAuth2Scopes: null,
|
|
138661
|
+
resolvedSecurity: requestSecurity,
|
|
138662
|
+
securitySource: client._options.bearerAuth,
|
|
138663
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
138664
|
+
strategy: "backoff",
|
|
138665
|
+
backoff: {
|
|
138666
|
+
initialInterval: 500,
|
|
138667
|
+
maxInterval: 5000,
|
|
138668
|
+
exponent: 1.5,
|
|
138669
|
+
maxElapsedTime: 15000
|
|
138670
|
+
},
|
|
138671
|
+
retryConnectionErrors: true
|
|
138672
|
+
},
|
|
138673
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
138674
|
+
};
|
|
138675
|
+
const requestRes = client._createRequest(context, {
|
|
138676
|
+
security: requestSecurity,
|
|
138677
|
+
method: "GET",
|
|
138678
|
+
baseURL: options?.serverURL,
|
|
138679
|
+
path,
|
|
138680
|
+
headers,
|
|
138681
|
+
query,
|
|
138682
|
+
body,
|
|
138683
|
+
userAgent: client._options.userAgent,
|
|
138684
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
138685
|
+
}, options);
|
|
138686
|
+
if (!requestRes.ok) {
|
|
138687
|
+
return [requestRes, { status: "invalid" }];
|
|
138688
|
+
}
|
|
138689
|
+
const req = requestRes.value;
|
|
138690
|
+
const doResult = await client._do(req, {
|
|
138691
|
+
context,
|
|
138692
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
138693
|
+
retryConfig: context.retryConfig,
|
|
138694
|
+
retryCodes: context.retryCodes
|
|
138695
|
+
});
|
|
138696
|
+
if (!doResult.ok) {
|
|
138697
|
+
return [doResult, { status: "request-error", request: req }];
|
|
138698
|
+
}
|
|
138699
|
+
const response = doResult.value;
|
|
138700
|
+
const responseFields = {
|
|
138701
|
+
HttpMeta: { Response: response, Request: req }
|
|
138702
|
+
};
|
|
138703
|
+
const [result] = await match(json(200, SandboxUsagePage$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
138704
|
+
if (!result.ok) {
|
|
138705
|
+
return [result, { status: "complete", request: req, response }];
|
|
138706
|
+
}
|
|
138707
|
+
return [result, { status: "complete", request: req, response }];
|
|
138708
|
+
}
|
|
138709
|
+
var init_usageSandbox = __esm(() => {
|
|
138710
|
+
init_encodings();
|
|
138711
|
+
init_http();
|
|
138712
|
+
init_matchers();
|
|
138713
|
+
init_primitives();
|
|
138714
|
+
init_schemas4();
|
|
138715
|
+
init_security();
|
|
138716
|
+
init_url();
|
|
138717
|
+
init_components();
|
|
138718
|
+
init_errors4();
|
|
138719
|
+
init_operations();
|
|
138720
|
+
init_async();
|
|
138721
|
+
});
|
|
138722
|
+
|
|
138723
|
+
// src/mcp-server/tools/usageSandbox.ts
|
|
138724
|
+
var args325, tool$usageSandbox;
|
|
138725
|
+
var init_usageSandbox2 = __esm(() => {
|
|
138726
|
+
init_usageSandbox();
|
|
138727
|
+
init_operations();
|
|
138728
|
+
init_tools();
|
|
138729
|
+
args325 = {
|
|
138730
|
+
request: GetSandboxUsageRequest$inboundSchema
|
|
138731
|
+
};
|
|
138732
|
+
tool$usageSandbox = {
|
|
138733
|
+
name: "usage-sandbox",
|
|
138734
|
+
description: `Get Sandbox Usage
|
|
138735
|
+
|
|
138736
|
+
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\`).`,
|
|
138737
|
+
args: args325,
|
|
138738
|
+
tool: async (client, args326, ctx) => {
|
|
138739
|
+
const [result, apiCall] = await usageSandbox(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138740
|
+
if (!result.ok) {
|
|
138741
|
+
return {
|
|
138742
|
+
content: [{ type: "text", text: result.error.message }],
|
|
138743
|
+
isError: true
|
|
138744
|
+
};
|
|
138745
|
+
}
|
|
138746
|
+
const value = result.value;
|
|
138747
|
+
return formatResult(value, apiCall);
|
|
138748
|
+
}
|
|
138749
|
+
};
|
|
138750
|
+
});
|
|
138751
|
+
|
|
138472
138752
|
// src/mcp-server/server.ts
|
|
138473
138753
|
function createMCPServer(deps) {
|
|
138474
138754
|
const server = new McpServer({
|
|
138475
138755
|
name: "SDK",
|
|
138476
|
-
version: "0.48.
|
|
138756
|
+
version: "0.48.38"
|
|
138477
138757
|
});
|
|
138478
138758
|
const client = new SDKCore({
|
|
138479
138759
|
bearerAuth: deps.bearerAuth,
|
|
@@ -138495,6 +138775,8 @@ function createMCPServer(deps) {
|
|
|
138495
138775
|
tool(tool$sandboxCreate);
|
|
138496
138776
|
tool(tool$sandboxList);
|
|
138497
138777
|
tool(tool$sandboxGet);
|
|
138778
|
+
tool(tool$sandboxGetPricing);
|
|
138779
|
+
tool(tool$sandboxSetPricing);
|
|
138498
138780
|
tool(tool$sandboxGetUrl);
|
|
138499
138781
|
tool(tool$sandboxProxyBrowserPortRequest);
|
|
138500
138782
|
tool(tool$sandboxRunCommand);
|
|
@@ -138505,7 +138787,8 @@ function createMCPServer(deps) {
|
|
|
138505
138787
|
tool(tool$sandboxUploadFile);
|
|
138506
138788
|
tool(tool$sandboxDownloadArchive);
|
|
138507
138789
|
tool(tool$sandboxUploadArchive);
|
|
138508
|
-
tool(tool$
|
|
138790
|
+
tool(tool$usageSandbox);
|
|
138791
|
+
tool(tool$usageCosts);
|
|
138509
138792
|
tool(tool$agentsListAgents);
|
|
138510
138793
|
tool(tool$agentsCreateAgent);
|
|
138511
138794
|
tool(tool$agentsGetAgent);
|
|
@@ -138537,7 +138820,6 @@ function createMCPServer(deps) {
|
|
|
138537
138820
|
tool(tool$budgetsApiKeyEvents);
|
|
138538
138821
|
tool(tool$budgetsGetCurrency);
|
|
138539
138822
|
tool(tool$budgetsSetCurrency);
|
|
138540
|
-
tool(tool$usageCosts);
|
|
138541
138823
|
tool(tool$permissionsLlmGrant);
|
|
138542
138824
|
tool(tool$permissionsLlmRevoke);
|
|
138543
138825
|
tool(tool$permissionsLlmCheck);
|
|
@@ -139092,16 +139374,17 @@ var init_server2 = __esm(() => {
|
|
|
139092
139374
|
init_sandboxDownloadArchive2();
|
|
139093
139375
|
init_sandboxDownloadFile2();
|
|
139094
139376
|
init_sandboxGet2();
|
|
139377
|
+
init_sandboxGetPricing2();
|
|
139095
139378
|
init_sandboxGetUrl2();
|
|
139096
139379
|
init_sandboxGetWorkspace2();
|
|
139097
139380
|
init_sandboxList2();
|
|
139098
139381
|
init_sandboxProxyBrowserPortRequest2();
|
|
139099
139382
|
init_sandboxRunCode2();
|
|
139100
139383
|
init_sandboxRunCommand2();
|
|
139384
|
+
init_sandboxSetPricing2();
|
|
139101
139385
|
init_sandboxTerminate2();
|
|
139102
139386
|
init_sandboxUploadArchive2();
|
|
139103
139387
|
init_sandboxUploadFile2();
|
|
139104
|
-
init_sandboxUsageGetUsageApiV1SandboxUsageGet2();
|
|
139105
139388
|
init_searchGraphragCreateGraphRAGStore2();
|
|
139106
139389
|
init_searchGraphragDeleteGraphRAGStore2();
|
|
139107
139390
|
init_searchGraphragIngestGraphRAGDocuments2();
|
|
@@ -139156,6 +139439,7 @@ var init_server2 = __esm(() => {
|
|
|
139156
139439
|
init_servingVolumesGet2();
|
|
139157
139440
|
init_servingVolumesList2();
|
|
139158
139441
|
init_usageCosts2();
|
|
139442
|
+
init_usageSandbox2();
|
|
139159
139443
|
});
|
|
139160
139444
|
|
|
139161
139445
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -140333,7 +140617,7 @@ var routes = rn({
|
|
|
140333
140617
|
var app = Ve(routes, {
|
|
140334
140618
|
name: "mcp",
|
|
140335
140619
|
versionInfo: {
|
|
140336
|
-
currentVersion: "0.48.
|
|
140620
|
+
currentVersion: "0.48.38"
|
|
140337
140621
|
}
|
|
140338
140622
|
});
|
|
140339
140623
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -140341,5 +140625,5 @@ export {
|
|
|
140341
140625
|
app
|
|
140342
140626
|
};
|
|
140343
140627
|
|
|
140344
|
-
//# debugId=
|
|
140628
|
+
//# debugId=5E322BAEF58E7C8D64756E2164756E21
|
|
140345
140629
|
//# sourceMappingURL=mcp-server.js.map
|