@meetkai/mka1 0.51.11 → 0.51.13
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 +233 -227
- package/bin/mcp-server.js +350 -91
- package/bin/mcp-server.js.map +19 -11
- package/dist/commonjs/funcs/servingSpendGet.d.ts +19 -0
- package/dist/commonjs/funcs/servingSpendGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingSpendGet.js +135 -0
- package/dist/commonjs/funcs/servingSpendGet.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 +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingSpendGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingSpendGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingSpendGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingSpendGet.js.map +1 -0
- package/dist/commonjs/models/components/deployment.d.ts +5 -5
- package/dist/commonjs/models/components/deployment.d.ts.map +1 -1
- package/dist/commonjs/models/components/deployment.js +3 -3
- package/dist/commonjs/models/components/deployment.js.map +1 -1
- package/dist/commonjs/models/components/deploymentacceleratorspec.d.ts +55 -0
- package/dist/commonjs/models/components/deploymentacceleratorspec.d.ts.map +1 -0
- package/dist/commonjs/models/components/deploymentacceleratorspec.js +75 -0
- package/dist/commonjs/models/components/deploymentacceleratorspec.js.map +1 -0
- package/dist/commonjs/models/components/deploymentcreate.d.ts +5 -5
- package/dist/commonjs/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentcreate.js +3 -3
- package/dist/commonjs/models/components/deploymentcreate.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/replica.d.ts +5 -5
- package/dist/commonjs/models/components/replica.d.ts.map +1 -1
- package/dist/commonjs/models/components/replica.js +3 -3
- package/dist/commonjs/models/components/replica.js.map +1 -1
- package/dist/commonjs/models/components/spendgroup.d.ts +29 -0
- package/dist/commonjs/models/components/spendgroup.d.ts.map +1 -0
- package/dist/commonjs/models/components/spendgroup.js +70 -0
- package/dist/commonjs/models/components/spendgroup.js.map +1 -0
- package/dist/commonjs/models/components/spenditem.d.ts +27 -0
- package/dist/commonjs/models/components/spenditem.d.ts.map +1 -0
- package/dist/commonjs/models/components/spenditem.js +62 -0
- package/dist/commonjs/models/components/spenditem.js.map +1 -0
- package/dist/commonjs/models/components/spendsummary.d.ts +40 -0
- package/dist/commonjs/models/components/spendsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/spendsummary.js +75 -0
- package/dist/commonjs/models/components/spendsummary.js.map +1 -0
- package/dist/commonjs/models/components/spendwindow.d.ts +25 -0
- package/dist/commonjs/models/components/spendwindow.d.ts.map +1 -0
- package/dist/commonjs/models/components/spendwindow.js +60 -0
- package/dist/commonjs/models/components/spendwindow.js.map +1 -0
- package/dist/commonjs/models/operations/getspend.d.ts +24 -0
- package/dist/commonjs/models/operations/getspend.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getspend.js +71 -0
- package/dist/commonjs/models/operations/getspend.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/servingSpendGet.core.d.ts +17 -0
- package/dist/commonjs/react-query/servingSpendGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingSpendGet.core.js +38 -0
- package/dist/commonjs/react-query/servingSpendGet.core.js.map +1 -0
- package/dist/commonjs/react-query/servingSpendGet.d.ts +41 -0
- package/dist/commonjs/react-query/servingSpendGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingSpendGet.js +60 -0
- package/dist/commonjs/react-query/servingSpendGet.js.map +1 -0
- package/dist/commonjs/sdk/serving.d.ts +3 -0
- package/dist/commonjs/sdk/serving.d.ts.map +1 -1
- package/dist/commonjs/sdk/serving.js +4 -0
- package/dist/commonjs/sdk/serving.js.map +1 -1
- package/dist/commonjs/sdk/spend.d.ts +13 -0
- package/dist/commonjs/sdk/spend.d.ts.map +1 -0
- package/dist/commonjs/sdk/spend.js +22 -0
- package/dist/commonjs/sdk/spend.js.map +1 -0
- package/dist/esm/funcs/servingSpendGet.d.ts +19 -0
- package/dist/esm/funcs/servingSpendGet.d.ts.map +1 -0
- package/dist/esm/funcs/servingSpendGet.js +99 -0
- package/dist/esm/funcs/servingSpendGet.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 +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingSpendGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingSpendGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingSpendGet.js +28 -0
- package/dist/esm/mcp-server/tools/servingSpendGet.js.map +1 -0
- package/dist/esm/models/components/deployment.d.ts +5 -5
- package/dist/esm/models/components/deployment.d.ts.map +1 -1
- package/dist/esm/models/components/deployment.js +3 -3
- package/dist/esm/models/components/deployment.js.map +1 -1
- package/dist/esm/models/components/deploymentacceleratorspec.d.ts +55 -0
- package/dist/esm/models/components/deploymentacceleratorspec.d.ts.map +1 -0
- package/dist/esm/models/components/deploymentacceleratorspec.js +37 -0
- package/dist/esm/models/components/deploymentacceleratorspec.js.map +1 -0
- package/dist/esm/models/components/deploymentcreate.d.ts +5 -5
- package/dist/esm/models/components/deploymentcreate.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentcreate.js +3 -3
- package/dist/esm/models/components/deploymentcreate.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/replica.d.ts +5 -5
- package/dist/esm/models/components/replica.d.ts.map +1 -1
- package/dist/esm/models/components/replica.js +3 -3
- package/dist/esm/models/components/replica.js.map +1 -1
- package/dist/esm/models/components/spendgroup.d.ts +29 -0
- package/dist/esm/models/components/spendgroup.d.ts.map +1 -0
- package/dist/esm/models/components/spendgroup.js +32 -0
- package/dist/esm/models/components/spendgroup.js.map +1 -0
- package/dist/esm/models/components/spenditem.d.ts +27 -0
- package/dist/esm/models/components/spenditem.d.ts.map +1 -0
- package/dist/esm/models/components/spenditem.js +24 -0
- package/dist/esm/models/components/spenditem.js.map +1 -0
- package/dist/esm/models/components/spendsummary.d.ts +40 -0
- package/dist/esm/models/components/spendsummary.d.ts.map +1 -0
- package/dist/esm/models/components/spendsummary.js +37 -0
- package/dist/esm/models/components/spendsummary.js.map +1 -0
- package/dist/esm/models/components/spendwindow.d.ts +25 -0
- package/dist/esm/models/components/spendwindow.d.ts.map +1 -0
- package/dist/esm/models/components/spendwindow.js +22 -0
- package/dist/esm/models/components/spendwindow.js.map +1 -0
- package/dist/esm/models/operations/getspend.d.ts +24 -0
- package/dist/esm/models/operations/getspend.d.ts.map +1 -0
- package/dist/esm/models/operations/getspend.js +33 -0
- package/dist/esm/models/operations/getspend.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/servingSpendGet.core.d.ts +17 -0
- package/dist/esm/react-query/servingSpendGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingSpendGet.core.js +33 -0
- package/dist/esm/react-query/servingSpendGet.core.js.map +1 -0
- package/dist/esm/react-query/servingSpendGet.d.ts +41 -0
- package/dist/esm/react-query/servingSpendGet.d.ts.map +1 -0
- package/dist/esm/react-query/servingSpendGet.js +50 -0
- package/dist/esm/react-query/servingSpendGet.js.map +1 -0
- package/dist/esm/sdk/serving.d.ts +3 -0
- package/dist/esm/sdk/serving.d.ts.map +1 -1
- package/dist/esm/sdk/serving.js +4 -0
- package/dist/esm/sdk/serving.js.map +1 -1
- package/dist/esm/sdk/spend.d.ts +13 -0
- package/dist/esm/sdk/spend.d.ts.map +1 -0
- package/dist/esm/sdk/spend.js +18 -0
- package/dist/esm/sdk/spend.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingSpendGet.ts +197 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/servingSpendGet.ts +37 -0
- package/src/models/components/deployment.ts +11 -11
- package/src/models/components/deploymentacceleratorspec.ts +100 -0
- package/src/models/components/deploymentcreate.ts +11 -11
- package/src/models/components/index.ts +5 -0
- package/src/models/components/replica.ts +11 -11
- package/src/models/components/spendgroup.ts +75 -0
- package/src/models/components/spenditem.ts +61 -0
- package/src/models/components/spendsummary.ts +95 -0
- package/src/models/components/spendwindow.ts +59 -0
- package/src/models/operations/getspend.ts +73 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/servingSpendGet.core.ts +79 -0
- package/src/react-query/servingSpendGet.ts +145 -0
- package/src/sdk/serving.ts +6 -0
- package/src/sdk/spend.ts +28 -0
|
@@ -6,6 +6,7 @@ import { Recipes } from "./recipes.js";
|
|
|
6
6
|
import { SDKImages } from "./sdkimages.js";
|
|
7
7
|
import { SDKModels } from "./sdkmodels.js";
|
|
8
8
|
import { Secrets } from "./secrets.js";
|
|
9
|
+
import { Spend } from "./spend.js";
|
|
9
10
|
import { Tenants } from "./tenants.js";
|
|
10
11
|
import { Volumes } from "./volumes.js";
|
|
11
12
|
export declare class Serving extends ClientSDK {
|
|
@@ -23,6 +24,8 @@ export declare class Serving extends ClientSDK {
|
|
|
23
24
|
get recipes(): Recipes;
|
|
24
25
|
private _secrets?;
|
|
25
26
|
get secrets(): Secrets;
|
|
27
|
+
private _spend?;
|
|
28
|
+
get spend(): Spend;
|
|
26
29
|
private _tenants?;
|
|
27
30
|
get tenants(): Tenants;
|
|
28
31
|
private _volumes?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serving.d.ts","sourceRoot":"","sources":["../../../src/sdk/serving.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa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,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,SAAS;IACpC,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED,OAAO,CAAC,YAAY,CAAC,CAAc;IACnC,IAAI,WAAW,IAAI,WAAW,CAE7B;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;IAED,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,IAAI,MAAM,IAAI,SAAS,CAEtB;IAED,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,IAAI,MAAM,IAAI,SAAS,CAEtB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,MAAM,CAAC,CAAQ;IACvB,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;CACF"}
|
package/dist/esm/sdk/serving.js
CHANGED
|
@@ -9,6 +9,7 @@ import { Recipes } from "./recipes.js";
|
|
|
9
9
|
import { SDKImages } from "./sdkimages.js";
|
|
10
10
|
import { SDKModels } from "./sdkmodels.js";
|
|
11
11
|
import { Secrets } from "./secrets.js";
|
|
12
|
+
import { Spend } from "./spend.js";
|
|
12
13
|
import { Tenants } from "./tenants.js";
|
|
13
14
|
import { Volumes } from "./volumes.js";
|
|
14
15
|
export class Serving extends ClientSDK {
|
|
@@ -33,6 +34,9 @@ export class Serving extends ClientSDK {
|
|
|
33
34
|
get secrets() {
|
|
34
35
|
return (this._secrets ?? (this._secrets = new Secrets(this._options)));
|
|
35
36
|
}
|
|
37
|
+
get spend() {
|
|
38
|
+
return (this._spend ?? (this._spend = new Spend(this._options)));
|
|
39
|
+
}
|
|
36
40
|
get tenants() {
|
|
37
41
|
return (this._tenants ?? (this._tenants = new Tenants(this._options)));
|
|
38
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serving.js","sourceRoot":"","sources":["../../../src/sdk/serving.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,OAAQ,SAAQ,SAAS;IAEpC,IAAI,YAAY;QACd,OAAO,CAAC,IAAI,CAAC,aAAa,KAAlB,IAAI,CAAC,aAAa,GAAK,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClE,CAAC;IAGD,IAAI,WAAW;QACb,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAGD,IAAI,YAAY;QACd,OAAO,CAAC,IAAI,CAAC,aAAa,KAA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AI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,KAAK;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpD,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
4
|
+
export declare class Spend extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* Cost and spend summary
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.
|
|
10
|
+
*/
|
|
11
|
+
get(request: operations.GetSpendRequest, options?: RequestOptions): Promise<components.SpendSummary>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=spend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spend.d.ts","sourceRoot":"","sources":["../../../src/sdk/spend.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC;CAOpC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { servingSpendGet } from "../funcs/servingSpendGet.js";
|
|
5
|
+
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
7
|
+
export class Spend extends ClientSDK {
|
|
8
|
+
/**
|
|
9
|
+
* Cost and spend summary
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.
|
|
13
|
+
*/
|
|
14
|
+
async get(request, options) {
|
|
15
|
+
return unwrapAsync(servingSpendGet(this, request, options));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=spend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spend.js","sourceRoot":"","sources":["../../../src/sdk/spend.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,KAAM,SAAQ,SAAS;IAClC;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAmC,EACnC,OAAwB;QAExB,OAAO,WAAW,CAAC,eAAe,CAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Cost and spend summary
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.
|
|
35
|
+
*/
|
|
36
|
+
export function servingSpendGet(
|
|
37
|
+
client: SDKCore,
|
|
38
|
+
request: operations.GetSpendRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
components.SpendSummary,
|
|
43
|
+
| errors.ServingError
|
|
44
|
+
| errors.ServingHTTPValidationError
|
|
45
|
+
| SDKError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
request,
|
|
58
|
+
options,
|
|
59
|
+
));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function $do(
|
|
63
|
+
client: SDKCore,
|
|
64
|
+
request: operations.GetSpendRequest,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<
|
|
67
|
+
[
|
|
68
|
+
Result<
|
|
69
|
+
components.SpendSummary,
|
|
70
|
+
| errors.ServingError
|
|
71
|
+
| errors.ServingHTTPValidationError
|
|
72
|
+
| SDKError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
APICall,
|
|
82
|
+
]
|
|
83
|
+
> {
|
|
84
|
+
const parsed = safeParse(
|
|
85
|
+
request,
|
|
86
|
+
(value) => operations.GetSpendRequest$outboundSchema.parse(value),
|
|
87
|
+
"Input validation failed",
|
|
88
|
+
);
|
|
89
|
+
if (!parsed.ok) {
|
|
90
|
+
return [parsed, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const payload = parsed.value;
|
|
93
|
+
const body = null;
|
|
94
|
+
|
|
95
|
+
const path = pathToFunc("/api/v1/serving/spend")();
|
|
96
|
+
|
|
97
|
+
const query = encodeFormQuery({
|
|
98
|
+
"end": payload.end,
|
|
99
|
+
"start": payload.start,
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
const headers = new Headers(compactMap({
|
|
103
|
+
Accept: "application/json",
|
|
104
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
105
|
+
"X-On-Behalf-Of",
|
|
106
|
+
payload["X-On-Behalf-Of"],
|
|
107
|
+
{ explode: false, charEncoding: "none" },
|
|
108
|
+
),
|
|
109
|
+
}));
|
|
110
|
+
|
|
111
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
112
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
113
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
|
+
|
|
115
|
+
const context = {
|
|
116
|
+
options: client._options,
|
|
117
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
118
|
+
operationID: "getSpend",
|
|
119
|
+
oAuth2Scopes: null,
|
|
120
|
+
|
|
121
|
+
resolvedSecurity: requestSecurity,
|
|
122
|
+
|
|
123
|
+
securitySource: client._options.bearerAuth,
|
|
124
|
+
retryConfig: options?.retries
|
|
125
|
+
|| client._options.retryConfig
|
|
126
|
+
|| {
|
|
127
|
+
strategy: "backoff",
|
|
128
|
+
backoff: {
|
|
129
|
+
initialInterval: 500,
|
|
130
|
+
maxInterval: 5000,
|
|
131
|
+
exponent: 1.5,
|
|
132
|
+
maxElapsedTime: 15000,
|
|
133
|
+
},
|
|
134
|
+
retryConnectionErrors: true,
|
|
135
|
+
}
|
|
136
|
+
|| { strategy: "none" },
|
|
137
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
const requestRes = client._createRequest(context, {
|
|
141
|
+
security: requestSecurity,
|
|
142
|
+
method: "GET",
|
|
143
|
+
baseURL: options?.serverURL,
|
|
144
|
+
path: path,
|
|
145
|
+
headers: headers,
|
|
146
|
+
query: query,
|
|
147
|
+
body: body,
|
|
148
|
+
userAgent: client._options.userAgent,
|
|
149
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
150
|
+
}, options);
|
|
151
|
+
if (!requestRes.ok) {
|
|
152
|
+
return [requestRes, { status: "invalid" }];
|
|
153
|
+
}
|
|
154
|
+
const req = requestRes.value;
|
|
155
|
+
|
|
156
|
+
const doResult = await client._do(req, {
|
|
157
|
+
context,
|
|
158
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
159
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
160
|
+
retryConfig: context.retryConfig,
|
|
161
|
+
retryCodes: context.retryCodes,
|
|
162
|
+
});
|
|
163
|
+
if (!doResult.ok) {
|
|
164
|
+
return [doResult, { status: "request-error", request: req }];
|
|
165
|
+
}
|
|
166
|
+
const response = doResult.value;
|
|
167
|
+
|
|
168
|
+
const responseFields = {
|
|
169
|
+
HttpMeta: { Response: response, Request: req },
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
const [result] = await M.match<
|
|
173
|
+
components.SpendSummary,
|
|
174
|
+
| errors.ServingError
|
|
175
|
+
| errors.ServingHTTPValidationError
|
|
176
|
+
| SDKError
|
|
177
|
+
| ResponseValidationError
|
|
178
|
+
| ConnectionError
|
|
179
|
+
| RequestAbortedError
|
|
180
|
+
| RequestTimeoutError
|
|
181
|
+
| InvalidRequestError
|
|
182
|
+
| UnexpectedClientError
|
|
183
|
+
| SDKValidationError
|
|
184
|
+
>(
|
|
185
|
+
M.json(200, components.SpendSummary$inboundSchema),
|
|
186
|
+
M.jsonErr([401, 403], errors.ServingError$inboundSchema),
|
|
187
|
+
M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
|
|
188
|
+
M.jsonErr([500, 503], errors.ServingError$inboundSchema),
|
|
189
|
+
M.fail("4XX"),
|
|
190
|
+
M.fail("5XX"),
|
|
191
|
+
)(response, req, { extraFields: responseFields });
|
|
192
|
+
if (!result.ok) {
|
|
193
|
+
return [result, { status: "complete", request: req, response }];
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return [result, { status: "complete", request: req, response }];
|
|
197
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.51.
|
|
68
|
+
sdkVersion: "0.51.13",
|
|
69
69
|
genVersion: "2.918.4",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.51.13 2.918.4 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -338,6 +338,7 @@ import { tool$servingRecipesSetEnabled } from "./tools/servingRecipesSetEnabled.
|
|
|
338
338
|
import { tool$servingSecretsCreate } from "./tools/servingSecretsCreate.js";
|
|
339
339
|
import { tool$servingSecretsDelete } from "./tools/servingSecretsDelete.js";
|
|
340
340
|
import { tool$servingSecretsList } from "./tools/servingSecretsList.js";
|
|
341
|
+
import { tool$servingSpendGet } from "./tools/servingSpendGet.js";
|
|
341
342
|
import { tool$servingTenantsDeleteOrganization } from "./tools/servingTenantsDeleteOrganization.js";
|
|
342
343
|
import { tool$servingTenantsGet } from "./tools/servingTenantsGet.js";
|
|
343
344
|
import { tool$servingTenantsGetOrganizationDeletion } from "./tools/servingTenantsGetOrganizationDeletion.js";
|
|
@@ -360,7 +361,7 @@ export function createMCPServer(deps: {
|
|
|
360
361
|
}) {
|
|
361
362
|
const server = new McpServer({
|
|
362
363
|
name: "SDK",
|
|
363
|
-
version: "0.51.
|
|
364
|
+
version: "0.51.13",
|
|
364
365
|
});
|
|
365
366
|
|
|
366
367
|
const client = new SDKCore({
|
|
@@ -717,6 +718,7 @@ export function createMCPServer(deps: {
|
|
|
717
718
|
tool(tool$servingSecretsList);
|
|
718
719
|
tool(tool$servingSecretsCreate);
|
|
719
720
|
tool(tool$servingSecretsDelete);
|
|
721
|
+
tool(tool$servingSpendGet);
|
|
720
722
|
tool(tool$servingTenantsList);
|
|
721
723
|
tool(tool$servingTenantsGet);
|
|
722
724
|
tool(tool$servingTenantsSet);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { servingSpendGet } from "../../funcs/servingSpendGet.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetSpendRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$servingSpendGet: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "serving-spend-get",
|
|
15
|
+
description: `Cost and spend summary
|
|
16
|
+
|
|
17
|
+
Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await servingSpendGet(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -9,11 +9,11 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
12
|
+
DeploymentAcceleratorSpec,
|
|
13
|
+
DeploymentAcceleratorSpec$inboundSchema,
|
|
14
|
+
DeploymentAcceleratorSpec$Outbound,
|
|
15
|
+
DeploymentAcceleratorSpec$outboundSchema,
|
|
16
|
+
} from "./deploymentacceleratorspec.js";
|
|
17
17
|
import {
|
|
18
18
|
DeploymentEndpoint,
|
|
19
19
|
DeploymentEndpoint$inboundSchema,
|
|
@@ -50,13 +50,13 @@ export type DeploymentStatus = ClosedEnum<typeof DeploymentStatus>;
|
|
|
50
50
|
*/
|
|
51
51
|
export type Deployment = {
|
|
52
52
|
/**
|
|
53
|
-
* A hardware accelerator request — GPU, NPU, TPU, or
|
|
53
|
+
* A hardware accelerator request for a deployment — GPU, NPU, TPU, or cpu-class serving.
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
56
|
*
|
|
57
|
-
* Request an accelerator by type and count, with optional fallback types.
|
|
57
|
+
* Request an accelerator by type and count, with optional fallback types. Set class to cpu to deploy a cpu-capable managed recipe on CPU instances (type is then not required; the CPU resource floor comes from the recipe).
|
|
58
58
|
*/
|
|
59
|
-
accelerator:
|
|
59
|
+
accelerator: DeploymentAcceleratorSpec;
|
|
60
60
|
createdAt: Date;
|
|
61
61
|
/**
|
|
62
62
|
* Where and how to call the model; set while registered with the gateway
|
|
@@ -101,7 +101,7 @@ export const Deployment$inboundSchema: z.ZodType<
|
|
|
101
101
|
z.ZodTypeDef,
|
|
102
102
|
unknown
|
|
103
103
|
> = z.object({
|
|
104
|
-
accelerator:
|
|
104
|
+
accelerator: DeploymentAcceleratorSpec$inboundSchema,
|
|
105
105
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
106
106
|
endpoint: z.nullable(DeploymentEndpoint$inboundSchema).optional(),
|
|
107
107
|
engine: Engine$inboundSchema,
|
|
@@ -123,7 +123,7 @@ export const Deployment$inboundSchema: z.ZodType<
|
|
|
123
123
|
});
|
|
124
124
|
/** @internal */
|
|
125
125
|
export type Deployment$Outbound = {
|
|
126
|
-
accelerator:
|
|
126
|
+
accelerator: DeploymentAcceleratorSpec$Outbound;
|
|
127
127
|
created_at: string;
|
|
128
128
|
endpoint?: DeploymentEndpoint$Outbound | null | undefined;
|
|
129
129
|
engine: string;
|
|
@@ -144,7 +144,7 @@ export const Deployment$outboundSchema: z.ZodType<
|
|
|
144
144
|
z.ZodTypeDef,
|
|
145
145
|
Deployment
|
|
146
146
|
> = z.object({
|
|
147
|
-
accelerator:
|
|
147
|
+
accelerator: DeploymentAcceleratorSpec$outboundSchema,
|
|
148
148
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
149
149
|
endpoint: z.nullable(DeploymentEndpoint$outboundSchema).optional(),
|
|
150
150
|
engine: Engine$outboundSchema,
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Accelerator class: gpu (default) or cpu. For cpu-only recipes this is inferred; type is not required for cpu.
|
|
13
|
+
*/
|
|
14
|
+
export const Class = {
|
|
15
|
+
Gpu: "gpu",
|
|
16
|
+
Cpu: "cpu",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Accelerator class: gpu (default) or cpu. For cpu-only recipes this is inferred; type is not required for cpu.
|
|
20
|
+
*/
|
|
21
|
+
export type Class = ClosedEnum<typeof Class>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A hardware accelerator request for a deployment — GPU, NPU, TPU, or cpu-class serving.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
*
|
|
28
|
+
* Request an accelerator by type and count, with optional fallback types. Set class to cpu to deploy a cpu-capable managed recipe on CPU instances (type is then not required; the CPU resource floor comes from the recipe).
|
|
29
|
+
*/
|
|
30
|
+
export type DeploymentAcceleratorSpec = {
|
|
31
|
+
/**
|
|
32
|
+
* Accelerator class: gpu (default) or cpu. For cpu-only recipes this is inferred; type is not required for cpu.
|
|
33
|
+
*/
|
|
34
|
+
class?: Class | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Accelerators per replica
|
|
37
|
+
*/
|
|
38
|
+
count?: number | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Ordered fallback types if the primary is unavailable
|
|
41
|
+
*/
|
|
42
|
+
fallback?: Array<string> | undefined;
|
|
43
|
+
type?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const Class$inboundSchema: z.ZodNativeEnum<typeof Class> = z.nativeEnum(
|
|
48
|
+
Class,
|
|
49
|
+
);
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const Class$outboundSchema: z.ZodNativeEnum<typeof Class> =
|
|
52
|
+
Class$inboundSchema;
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const DeploymentAcceleratorSpec$inboundSchema: z.ZodType<
|
|
56
|
+
DeploymentAcceleratorSpec,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
class: Class$inboundSchema.default("gpu"),
|
|
61
|
+
count: z.number().int().default(1),
|
|
62
|
+
fallback: z.array(z.string()).optional(),
|
|
63
|
+
type: z.string().optional(),
|
|
64
|
+
});
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type DeploymentAcceleratorSpec$Outbound = {
|
|
67
|
+
class: string;
|
|
68
|
+
count: number;
|
|
69
|
+
fallback?: Array<string> | undefined;
|
|
70
|
+
type?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const DeploymentAcceleratorSpec$outboundSchema: z.ZodType<
|
|
75
|
+
DeploymentAcceleratorSpec$Outbound,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
DeploymentAcceleratorSpec
|
|
78
|
+
> = z.object({
|
|
79
|
+
class: Class$outboundSchema.default("gpu"),
|
|
80
|
+
count: z.number().int().default(1),
|
|
81
|
+
fallback: z.array(z.string()).optional(),
|
|
82
|
+
type: z.string().optional(),
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export function deploymentAcceleratorSpecToJSON(
|
|
86
|
+
deploymentAcceleratorSpec: DeploymentAcceleratorSpec,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
DeploymentAcceleratorSpec$outboundSchema.parse(deploymentAcceleratorSpec),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
export function deploymentAcceleratorSpecFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<DeploymentAcceleratorSpec, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => DeploymentAcceleratorSpec$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'DeploymentAcceleratorSpec' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
@@ -8,11 +8,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
DeploymentAcceleratorSpec,
|
|
12
|
+
DeploymentAcceleratorSpec$inboundSchema,
|
|
13
|
+
DeploymentAcceleratorSpec$Outbound,
|
|
14
|
+
DeploymentAcceleratorSpec$outboundSchema,
|
|
15
|
+
} from "./deploymentacceleratorspec.js";
|
|
16
16
|
import {
|
|
17
17
|
DeploymentAPIFormat,
|
|
18
18
|
DeploymentAPIFormat$inboundSchema,
|
|
@@ -40,13 +40,13 @@ import {
|
|
|
40
40
|
*/
|
|
41
41
|
export type DeploymentCreate = {
|
|
42
42
|
/**
|
|
43
|
-
* A hardware accelerator request — GPU, NPU, TPU, or
|
|
43
|
+
* A hardware accelerator request for a deployment — GPU, NPU, TPU, or cpu-class serving.
|
|
44
44
|
*
|
|
45
45
|
* @remarks
|
|
46
46
|
*
|
|
47
|
-
* Request an accelerator by type and count, with optional fallback types.
|
|
47
|
+
* Request an accelerator by type and count, with optional fallback types. Set class to cpu to deploy a cpu-capable managed recipe on CPU instances (type is then not required; the CPU resource floor comes from the recipe).
|
|
48
48
|
*/
|
|
49
|
-
accelerator:
|
|
49
|
+
accelerator: DeploymentAcceleratorSpec;
|
|
50
50
|
/**
|
|
51
51
|
* Gateway inference surface exposed by the deployment runtime.
|
|
52
52
|
*/
|
|
@@ -112,7 +112,7 @@ export const DeploymentCreate$inboundSchema: z.ZodType<
|
|
|
112
112
|
z.ZodTypeDef,
|
|
113
113
|
unknown
|
|
114
114
|
> = z.object({
|
|
115
|
-
accelerator:
|
|
115
|
+
accelerator: DeploymentAcceleratorSpec$inboundSchema,
|
|
116
116
|
api_format: DeploymentAPIFormat$inboundSchema.optional(),
|
|
117
117
|
endpoint_auth: z.boolean().default(true),
|
|
118
118
|
engine: Engine$inboundSchema.optional(),
|
|
@@ -139,7 +139,7 @@ export const DeploymentCreate$inboundSchema: z.ZodType<
|
|
|
139
139
|
});
|
|
140
140
|
/** @internal */
|
|
141
141
|
export type DeploymentCreate$Outbound = {
|
|
142
|
-
accelerator:
|
|
142
|
+
accelerator: DeploymentAcceleratorSpec$Outbound;
|
|
143
143
|
api_format?: string | undefined;
|
|
144
144
|
endpoint_auth: boolean;
|
|
145
145
|
engine?: string | undefined;
|
|
@@ -163,7 +163,7 @@ export const DeploymentCreate$outboundSchema: z.ZodType<
|
|
|
163
163
|
z.ZodTypeDef,
|
|
164
164
|
DeploymentCreate
|
|
165
165
|
> = z.object({
|
|
166
|
-
accelerator:
|
|
166
|
+
accelerator: DeploymentAcceleratorSpec$outboundSchema,
|
|
167
167
|
apiFormat: DeploymentAPIFormat$outboundSchema.optional(),
|
|
168
168
|
endpointAuth: z.boolean().default(true),
|
|
169
169
|
engine: Engine$outboundSchema.optional(),
|
|
@@ -135,6 +135,7 @@ export * from "./deleteorgautomodelresponse.js";
|
|
|
135
135
|
export * from "./deletepromptresponse.js";
|
|
136
136
|
export * from "./deleteresponseobject.js";
|
|
137
137
|
export * from "./deployment.js";
|
|
138
|
+
export * from "./deploymentacceleratorspec.js";
|
|
138
139
|
export * from "./deploymentapiformat.js";
|
|
139
140
|
export * from "./deploymentcreate.js";
|
|
140
141
|
export * from "./deploymentendpoint.js";
|
|
@@ -511,6 +512,10 @@ export * from "./speakersegment.js";
|
|
|
511
512
|
export * from "./speechhistorydeletionstatus.js";
|
|
512
513
|
export * from "./speechtotexthistorylist.js";
|
|
513
514
|
export * from "./speechtotexthistoryobject.js";
|
|
515
|
+
export * from "./spendgroup.js";
|
|
516
|
+
export * from "./spenditem.js";
|
|
517
|
+
export * from "./spendsummary.js";
|
|
518
|
+
export * from "./spendwindow.js";
|
|
514
519
|
export * from "./startexportfeedbackresponse.js";
|
|
515
520
|
export * from "./staticchunkingstrategy.js";
|
|
516
521
|
export * from "./status.js";
|