@meetkai/mka1 0.51.16 → 0.51.17
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 +1056 -544
- package/bin/mcp-server.js.map +25 -12
- package/dist/commonjs/funcs/servingAcceleratorsAvailability.d.ts +19 -0
- package/dist/commonjs/funcs/servingAcceleratorsAvailability.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingAcceleratorsAvailability.js +140 -0
- package/dist/commonjs/funcs/servingAcceleratorsAvailability.js.map +1 -0
- package/dist/commonjs/funcs/servingAcceleratorsGet.d.ts +19 -0
- package/dist/commonjs/funcs/servingAcceleratorsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingAcceleratorsGet.js +136 -0
- package/dist/commonjs/funcs/servingAcceleratorsGet.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 +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsAvailability.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsAvailability.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsAvailability.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsAvailability.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsGet.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingAcceleratorsGet.js.map +1 -0
- package/dist/commonjs/models/components/acceleratoravailability.d.ts +62 -0
- package/dist/commonjs/models/components/acceleratoravailability.d.ts.map +1 -0
- package/dist/commonjs/models/components/acceleratoravailability.js +102 -0
- package/dist/commonjs/models/components/acceleratoravailability.js.map +1 -0
- package/dist/commonjs/models/components/acceleratoravailabilitybucket.d.ts +39 -0
- package/dist/commonjs/models/components/acceleratoravailabilitybucket.d.ts.map +1 -0
- package/dist/commonjs/models/components/acceleratoravailabilitybucket.js +80 -0
- package/dist/commonjs/models/components/acceleratoravailabilitybucket.js.map +1 -0
- package/dist/commonjs/models/components/acceleratorhourofdayslot.d.ts +33 -0
- package/dist/commonjs/models/components/acceleratorhourofdayslot.d.ts.map +1 -0
- package/dist/commonjs/models/components/acceleratorhourofdayslot.js +71 -0
- package/dist/commonjs/models/components/acceleratorhourofdayslot.js.map +1 -0
- package/dist/commonjs/models/components/acceleratorprovideravailability.d.ts +23 -0
- package/dist/commonjs/models/components/acceleratorprovideravailability.d.ts.map +1 -0
- package/dist/commonjs/models/components/acceleratorprovideravailability.js +61 -0
- package/dist/commonjs/models/components/acceleratorprovideravailability.js.map +1 -0
- package/dist/commonjs/models/components/acceleratortype.d.ts +61 -3
- package/dist/commonjs/models/components/acceleratortype.d.ts.map +1 -1
- package/dist/commonjs/models/components/acceleratortype.js +37 -3
- package/dist/commonjs/models/components/acceleratortype.js.map +1 -1
- package/dist/commonjs/models/components/acceleratorworkloadaffinity.d.ts +29 -0
- package/dist/commonjs/models/components/acceleratorworkloadaffinity.d.ts.map +1 -0
- package/dist/commonjs/models/components/acceleratorworkloadaffinity.js +61 -0
- package/dist/commonjs/models/components/acceleratorworkloadaffinity.js.map +1 -0
- package/dist/commonjs/models/components/affinityrating.d.ts +19 -0
- package/dist/commonjs/models/components/affinityrating.d.ts.map +1 -0
- package/dist/commonjs/models/components/affinityrating.js +53 -0
- package/dist/commonjs/models/components/affinityrating.js.map +1 -0
- package/dist/commonjs/models/components/availabilitypriceband.d.ts +24 -0
- package/dist/commonjs/models/components/availabilitypriceband.d.ts.map +1 -0
- package/dist/commonjs/models/components/availabilitypriceband.js +62 -0
- package/dist/commonjs/models/components/availabilitypriceband.js.map +1 -0
- package/dist/commonjs/models/components/deployment.d.ts +10 -0
- package/dist/commonjs/models/components/deployment.d.ts.map +1 -1
- package/dist/commonjs/models/components/deployment.js +6 -0
- package/dist/commonjs/models/components/deployment.js.map +1 -1
- package/dist/commonjs/models/components/deploymentacceleratorspec.d.ts +5 -5
- package/dist/commonjs/models/components/deploymentacceleratorspec.d.ts.map +1 -1
- package/dist/commonjs/models/components/deploymentacceleratorspec.js +6 -6
- package/dist/commonjs/models/components/deploymentacceleratorspec.js.map +1 -1
- package/dist/commonjs/models/components/finetunejob.d.ts +10 -0
- package/dist/commonjs/models/components/finetunejob.d.ts.map +1 -1
- package/dist/commonjs/models/components/finetunejob.js +6 -0
- package/dist/commonjs/models/components/finetunejob.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +7 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +7 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/getaccelerator.d.ts +22 -0
- package/dist/commonjs/models/operations/getaccelerator.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getaccelerator.js +69 -0
- package/dist/commonjs/models/operations/getaccelerator.js.map +1 -0
- package/dist/commonjs/models/operations/getacceleratoravailability.d.ts +44 -0
- package/dist/commonjs/models/operations/getacceleratoravailability.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getacceleratoravailability.js +84 -0
- package/dist/commonjs/models/operations/getacceleratoravailability.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.core.d.ts +16 -0
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.core.js +37 -0
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.core.js.map +1 -0
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.d.ts +41 -0
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.js +65 -0
- package/dist/commonjs/react-query/servingAcceleratorsAvailability.js.map +1 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.core.d.ts +15 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.core.js +36 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.core.js.map +1 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.d.ts +39 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.js +60 -0
- package/dist/commonjs/react-query/servingAcceleratorsGet.js.map +1 -0
- package/dist/commonjs/sdk/accelerators.d.ts +14 -0
- package/dist/commonjs/sdk/accelerators.d.ts.map +1 -1
- package/dist/commonjs/sdk/accelerators.js +20 -0
- package/dist/commonjs/sdk/accelerators.js.map +1 -1
- package/dist/esm/funcs/servingAcceleratorsAvailability.d.ts +19 -0
- package/dist/esm/funcs/servingAcceleratorsAvailability.d.ts.map +1 -0
- package/dist/esm/funcs/servingAcceleratorsAvailability.js +104 -0
- package/dist/esm/funcs/servingAcceleratorsAvailability.js.map +1 -0
- package/dist/esm/funcs/servingAcceleratorsGet.d.ts +19 -0
- package/dist/esm/funcs/servingAcceleratorsGet.d.ts.map +1 -0
- package/dist/esm/funcs/servingAcceleratorsGet.js +100 -0
- package/dist/esm/funcs/servingAcceleratorsGet.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 +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingAcceleratorsAvailability.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingAcceleratorsAvailability.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingAcceleratorsAvailability.js +28 -0
- package/dist/esm/mcp-server/tools/servingAcceleratorsAvailability.js.map +1 -0
- package/dist/esm/mcp-server/tools/servingAcceleratorsGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingAcceleratorsGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingAcceleratorsGet.js +28 -0
- package/dist/esm/mcp-server/tools/servingAcceleratorsGet.js.map +1 -0
- package/dist/esm/models/components/acceleratoravailability.d.ts +62 -0
- package/dist/esm/models/components/acceleratoravailability.d.ts.map +1 -0
- package/dist/esm/models/components/acceleratoravailability.js +64 -0
- package/dist/esm/models/components/acceleratoravailability.js.map +1 -0
- package/dist/esm/models/components/acceleratoravailabilitybucket.d.ts +39 -0
- package/dist/esm/models/components/acceleratoravailabilitybucket.d.ts.map +1 -0
- package/dist/esm/models/components/acceleratoravailabilitybucket.js +42 -0
- package/dist/esm/models/components/acceleratoravailabilitybucket.js.map +1 -0
- package/dist/esm/models/components/acceleratorhourofdayslot.d.ts +33 -0
- package/dist/esm/models/components/acceleratorhourofdayslot.d.ts.map +1 -0
- package/dist/esm/models/components/acceleratorhourofdayslot.js +33 -0
- package/dist/esm/models/components/acceleratorhourofdayslot.js.map +1 -0
- package/dist/esm/models/components/acceleratorprovideravailability.d.ts +23 -0
- package/dist/esm/models/components/acceleratorprovideravailability.d.ts.map +1 -0
- package/dist/esm/models/components/acceleratorprovideravailability.js +23 -0
- package/dist/esm/models/components/acceleratorprovideravailability.js.map +1 -0
- package/dist/esm/models/components/acceleratortype.d.ts +61 -3
- package/dist/esm/models/components/acceleratortype.d.ts.map +1 -1
- package/dist/esm/models/components/acceleratortype.js +36 -2
- package/dist/esm/models/components/acceleratortype.js.map +1 -1
- package/dist/esm/models/components/acceleratorworkloadaffinity.d.ts +29 -0
- package/dist/esm/models/components/acceleratorworkloadaffinity.d.ts.map +1 -0
- package/dist/esm/models/components/acceleratorworkloadaffinity.js +23 -0
- package/dist/esm/models/components/acceleratorworkloadaffinity.js.map +1 -0
- package/dist/esm/models/components/affinityrating.d.ts +19 -0
- package/dist/esm/models/components/affinityrating.d.ts.map +1 -0
- package/dist/esm/models/components/affinityrating.js +17 -0
- package/dist/esm/models/components/affinityrating.js.map +1 -0
- package/dist/esm/models/components/availabilitypriceband.d.ts +24 -0
- package/dist/esm/models/components/availabilitypriceband.d.ts.map +1 -0
- package/dist/esm/models/components/availabilitypriceband.js +24 -0
- package/dist/esm/models/components/availabilitypriceband.js.map +1 -0
- package/dist/esm/models/components/deployment.d.ts +10 -0
- package/dist/esm/models/components/deployment.d.ts.map +1 -1
- package/dist/esm/models/components/deployment.js +6 -0
- package/dist/esm/models/components/deployment.js.map +1 -1
- package/dist/esm/models/components/deploymentacceleratorspec.d.ts +5 -5
- package/dist/esm/models/components/deploymentacceleratorspec.d.ts.map +1 -1
- package/dist/esm/models/components/deploymentacceleratorspec.js +5 -5
- package/dist/esm/models/components/deploymentacceleratorspec.js.map +1 -1
- package/dist/esm/models/components/finetunejob.d.ts +10 -0
- package/dist/esm/models/components/finetunejob.d.ts.map +1 -1
- package/dist/esm/models/components/finetunejob.js +6 -0
- package/dist/esm/models/components/finetunejob.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +7 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +7 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/getaccelerator.d.ts +22 -0
- package/dist/esm/models/operations/getaccelerator.d.ts.map +1 -0
- package/dist/esm/models/operations/getaccelerator.js +31 -0
- package/dist/esm/models/operations/getaccelerator.js.map +1 -0
- package/dist/esm/models/operations/getacceleratoravailability.d.ts +44 -0
- package/dist/esm/models/operations/getacceleratoravailability.d.ts.map +1 -0
- package/dist/esm/models/operations/getacceleratoravailability.js +46 -0
- package/dist/esm/models/operations/getacceleratoravailability.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/servingAcceleratorsAvailability.core.d.ts +16 -0
- package/dist/esm/react-query/servingAcceleratorsAvailability.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingAcceleratorsAvailability.core.js +32 -0
- package/dist/esm/react-query/servingAcceleratorsAvailability.core.js.map +1 -0
- package/dist/esm/react-query/servingAcceleratorsAvailability.d.ts +41 -0
- package/dist/esm/react-query/servingAcceleratorsAvailability.d.ts.map +1 -0
- package/dist/esm/react-query/servingAcceleratorsAvailability.js +55 -0
- package/dist/esm/react-query/servingAcceleratorsAvailability.js.map +1 -0
- package/dist/esm/react-query/servingAcceleratorsGet.core.d.ts +15 -0
- package/dist/esm/react-query/servingAcceleratorsGet.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingAcceleratorsGet.core.js +31 -0
- package/dist/esm/react-query/servingAcceleratorsGet.core.js.map +1 -0
- package/dist/esm/react-query/servingAcceleratorsGet.d.ts +39 -0
- package/dist/esm/react-query/servingAcceleratorsGet.d.ts.map +1 -0
- package/dist/esm/react-query/servingAcceleratorsGet.js +50 -0
- package/dist/esm/react-query/servingAcceleratorsGet.js.map +1 -0
- package/dist/esm/sdk/accelerators.d.ts +14 -0
- package/dist/esm/sdk/accelerators.d.ts.map +1 -1
- package/dist/esm/sdk/accelerators.js +20 -0
- package/dist/esm/sdk/accelerators.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingAcceleratorsAvailability.ts +205 -0
- package/src/funcs/servingAcceleratorsGet.ts +192 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/servingAcceleratorsAvailability.ts +38 -0
- package/src/mcp-server/tools/servingAcceleratorsGet.ts +37 -0
- package/src/models/components/acceleratoravailability.ts +146 -0
- package/src/models/components/acceleratoravailabilitybucket.ts +103 -0
- package/src/models/components/acceleratorhourofdayslot.ts +80 -0
- package/src/models/components/acceleratorprovideravailability.ts +66 -0
- package/src/models/components/acceleratortype.ts +85 -5
- package/src/models/components/acceleratorworkloadaffinity.ts +71 -0
- package/src/models/components/affinityrating.ts +28 -0
- package/src/models/components/availabilitypriceband.ts +62 -0
- package/src/models/components/deployment.ts +16 -0
- package/src/models/components/deploymentacceleratorspec.ts +13 -10
- package/src/models/components/finetunejob.ts +16 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/operations/getaccelerator.ts +67 -0
- package/src/models/operations/getacceleratoravailability.ts +97 -0
- package/src/models/operations/index.ts +2 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/servingAcceleratorsAvailability.core.ts +81 -0
- package/src/react-query/servingAcceleratorsAvailability.ts +161 -0
- package/src/react-query/servingAcceleratorsGet.core.ts +76 -0
- package/src/react-query/servingAcceleratorsGet.ts +143 -0
- package/src/sdk/accelerators.ts +36 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
2
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
3
|
+
import * as errors from "../models/errors/index.js";
|
|
4
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
5
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
|
|
9
|
+
import { buildServingAcceleratorsGetQuery, prefetchServingAcceleratorsGet, queryKeyServingAcceleratorsGet, ServingAcceleratorsGetQueryData } from "./servingAcceleratorsGet.core.js";
|
|
10
|
+
export { buildServingAcceleratorsGetQuery, prefetchServingAcceleratorsGet, queryKeyServingAcceleratorsGet, type ServingAcceleratorsGetQueryData, };
|
|
11
|
+
export type ServingAcceleratorsGetQueryError = errors.ServingError | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
12
|
+
/**
|
|
13
|
+
* Get an accelerator type
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useServingAcceleratorsGet(request: operations.GetAcceleratorRequest, options?: QueryHookOptions<ServingAcceleratorsGetQueryData, ServingAcceleratorsGetQueryError>): UseQueryResult<ServingAcceleratorsGetQueryData, ServingAcceleratorsGetQueryError>;
|
|
19
|
+
/**
|
|
20
|
+
* Get an accelerator type
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useServingAcceleratorsGetSuspense(request: operations.GetAcceleratorRequest, options?: SuspenseQueryHookOptions<ServingAcceleratorsGetQueryData, ServingAcceleratorsGetQueryError>): UseSuspenseQueryResult<ServingAcceleratorsGetQueryData, ServingAcceleratorsGetQueryError>;
|
|
26
|
+
export declare function setServingAcceleratorsGetData(client: QueryClient, queryKeyBase: [
|
|
27
|
+
name: string,
|
|
28
|
+
parameters: {
|
|
29
|
+
xOnBehalfOf?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
], data: ServingAcceleratorsGetQueryData): ServingAcceleratorsGetQueryData | undefined;
|
|
32
|
+
export declare function invalidateServingAcceleratorsGet(client: QueryClient, queryKeyBase: TupleToPrefixes<[
|
|
33
|
+
name: string,
|
|
34
|
+
parameters: {
|
|
35
|
+
xOnBehalfOf?: string | undefined;
|
|
36
|
+
}
|
|
37
|
+
]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
38
|
+
export declare function invalidateAllServingAcceleratorsGet(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
39
|
+
//# sourceMappingURL=servingAcceleratorsGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servingAcceleratorsGet.d.ts","sourceRoot":"","sources":["../../../src/react-query/servingAcceleratorsGet.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EAEX,cAAc,EAEd,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,EAC9B,KAAK,+BAA+B,GACrC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GACxC,MAAM,CAAC,YAAY,GACnB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,gBAAgB,CACxB,+BAA+B,EAC/B,gCAAgC,CACjC,GACA,cAAc,CACf,+BAA+B,EAC/B,gCAAgC,CACjC,CAUA;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,wBAAwB,CAChC,+BAA+B,EAC/B,gCAAgC,CACjC,GACA,sBAAsB,CACvB,+BAA+B,EAC/B,gCAAgC,CACjC,CAUA;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE;IACZ,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE;CACjD,EACD,IAAI,EAAE,+BAA+B,GACpC,+BAA+B,GAAG,SAAS,CAI7C;AAED,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,eAAe,CAC3B;IAAC,IAAI,EAAE,MAAM;IAAE,UAAU,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE;CAAC,CACjE,EACD,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { useQuery, useSuspenseQuery, } from "@tanstack/react-query";
|
|
5
|
+
import { useSDKContext } from "./_context.js";
|
|
6
|
+
import { buildServingAcceleratorsGetQuery, prefetchServingAcceleratorsGet, queryKeyServingAcceleratorsGet, } from "./servingAcceleratorsGet.core.js";
|
|
7
|
+
export { buildServingAcceleratorsGetQuery, prefetchServingAcceleratorsGet, queryKeyServingAcceleratorsGet, };
|
|
8
|
+
/**
|
|
9
|
+
* Get an accelerator type
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.
|
|
13
|
+
*/
|
|
14
|
+
export function useServingAcceleratorsGet(request, options) {
|
|
15
|
+
const client = useSDKContext();
|
|
16
|
+
return useQuery({
|
|
17
|
+
...buildServingAcceleratorsGetQuery(client, request, options),
|
|
18
|
+
...options,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get an accelerator type
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.
|
|
26
|
+
*/
|
|
27
|
+
export function useServingAcceleratorsGetSuspense(request, options) {
|
|
28
|
+
const client = useSDKContext();
|
|
29
|
+
return useSuspenseQuery({
|
|
30
|
+
...buildServingAcceleratorsGetQuery(client, request, options),
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export function setServingAcceleratorsGetData(client, queryKeyBase, data) {
|
|
35
|
+
const key = queryKeyServingAcceleratorsGet(...queryKeyBase);
|
|
36
|
+
return client.setQueryData(key, data);
|
|
37
|
+
}
|
|
38
|
+
export function invalidateServingAcceleratorsGet(client, queryKeyBase, filters) {
|
|
39
|
+
return client.invalidateQueries({
|
|
40
|
+
...filters,
|
|
41
|
+
queryKey: ["@meetkai/mka1", "accelerators", "get", ...queryKeyBase],
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export function invalidateAllServingAcceleratorsGet(client, filters) {
|
|
45
|
+
return client.invalidateQueries({
|
|
46
|
+
...filters,
|
|
47
|
+
queryKey: ["@meetkai/mka1", "accelerators", "get"],
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=servingAcceleratorsGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"servingAcceleratorsGet.js","sourceRoot":"","sources":["../../../src/react-query/servingAcceleratorsGet.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAGL,QAAQ,EAER,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAa/B,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAM9C,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,GAE/B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,gCAAgC,EAChC,8BAA8B,EAC9B,8BAA8B,GAE/B,CAAC;AAaF;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyC,EACzC,OAGC;IAKD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,QAAQ,CAAC;QACd,GAAG,gCAAgC,CACjC,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,iCAAiC,CAC/C,OAAyC,EACzC,OAGC;IAKD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,gBAAgB,CAAC;QACtB,GAAG,gCAAgC,CACjC,MAAM,EACN,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,MAAmB,EACnB,YAGC,EACD,IAAqC;IAErC,MAAM,GAAG,GAAG,8BAA8B,CAAC,GAAG,YAAY,CAAC,CAAC;IAE5D,OAAO,MAAM,CAAC,YAAY,CAAkC,GAAG,EAAE,IAAI,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,MAAmB,EACnB,YAEC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,YAAY,CAAC;KACpE,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,KAAK,CAAC;KACnD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -9,5 +9,19 @@ export declare class Accelerators extends ClientSDK {
|
|
|
9
9
|
* List the accelerator types available to your organization (GPU, NPU, TPU).
|
|
10
10
|
*/
|
|
11
11
|
list(request: operations.ListAcceleratorsRequest, options?: RequestOptions): Promise<components.PageAcceleratorType>;
|
|
12
|
+
/**
|
|
13
|
+
* Get an accelerator type
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.
|
|
17
|
+
*/
|
|
18
|
+
get(request: operations.GetAcceleratorRequest, options?: RequestOptions): Promise<components.AcceleratorType>;
|
|
19
|
+
/**
|
|
20
|
+
* Get accelerator availability history
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Bucketed availability time series for one accelerator type over a window, aggregated across anonymous providers and served from hourly rollups. Includes a 24-slot hour-of-day profile. Hours the platform polled without observing the accelerator read as availability 0; a window with no observations at all returns an empty series.
|
|
24
|
+
*/
|
|
25
|
+
availability(request: operations.GetAcceleratorAvailabilityRequest, options?: RequestOptions): Promise<components.AcceleratorAvailability>;
|
|
12
26
|
}
|
|
13
27
|
//# sourceMappingURL=accelerators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accelerators.d.ts","sourceRoot":"","sources":["../../../src/sdk/accelerators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accelerators.d.ts","sourceRoot":"","sources":["../../../src/sdk/accelerators.ts"],"names":[],"mappings":"AAOA,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,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC;IAQtC;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;CAO/C"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
+
import { servingAcceleratorsAvailability } from "../funcs/servingAcceleratorsAvailability.js";
|
|
5
|
+
import { servingAcceleratorsGet } from "../funcs/servingAcceleratorsGet.js";
|
|
4
6
|
import { servingAcceleratorsList } from "../funcs/servingAcceleratorsList.js";
|
|
5
7
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -14,5 +16,23 @@ export class Accelerators extends ClientSDK {
|
|
|
14
16
|
async list(request, options) {
|
|
15
17
|
return unwrapAsync(servingAcceleratorsList(this, request, options));
|
|
16
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Get an accelerator type
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.
|
|
24
|
+
*/
|
|
25
|
+
async get(request, options) {
|
|
26
|
+
return unwrapAsync(servingAcceleratorsGet(this, request, options));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get accelerator availability history
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Bucketed availability time series for one accelerator type over a window, aggregated across anonymous providers and served from hourly rollups. Includes a 24-slot hour-of-day profile. Hours the platform polled without observing the accelerator read as availability 0; a window with no observations at all returns an empty series.
|
|
33
|
+
*/
|
|
34
|
+
async availability(request, options) {
|
|
35
|
+
return unwrapAsync(servingAcceleratorsAvailability(this, request, options));
|
|
36
|
+
}
|
|
17
37
|
}
|
|
18
38
|
//# sourceMappingURL=accelerators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accelerators.js","sourceRoot":"","sources":["../../../src/sdk/accelerators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"accelerators.js","sourceRoot":"","sources":["../../../src/sdk/accelerators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,uBAAuB,CACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAqD,EACrD,OAAwB;QAExB,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,205 @@
|
|
|
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
|
+
* Get accelerator availability history
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Bucketed availability time series for one accelerator type over a window, aggregated across anonymous providers and served from hourly rollups. Includes a 24-slot hour-of-day profile. Hours the platform polled without observing the accelerator read as availability 0; a window with no observations at all returns an empty series.
|
|
35
|
+
*/
|
|
36
|
+
export function servingAcceleratorsAvailability(
|
|
37
|
+
client: SDKCore,
|
|
38
|
+
request: operations.GetAcceleratorAvailabilityRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
components.AcceleratorAvailability,
|
|
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.GetAcceleratorAvailabilityRequest,
|
|
65
|
+
options?: RequestOptions,
|
|
66
|
+
): Promise<
|
|
67
|
+
[
|
|
68
|
+
Result<
|
|
69
|
+
components.AcceleratorAvailability,
|
|
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) =>
|
|
87
|
+
operations.GetAcceleratorAvailabilityRequest$outboundSchema.parse(value),
|
|
88
|
+
"Input validation failed",
|
|
89
|
+
);
|
|
90
|
+
if (!parsed.ok) {
|
|
91
|
+
return [parsed, { status: "invalid" }];
|
|
92
|
+
}
|
|
93
|
+
const payload = parsed.value;
|
|
94
|
+
const body = null;
|
|
95
|
+
|
|
96
|
+
const pathParams = {
|
|
97
|
+
name: encodeSimple("name", payload.name, {
|
|
98
|
+
explode: false,
|
|
99
|
+
charEncoding: "percent",
|
|
100
|
+
}),
|
|
101
|
+
};
|
|
102
|
+
const path = pathToFunc("/api/v1/serving/accelerators/{name}/availability")(
|
|
103
|
+
pathParams,
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
const query = encodeFormQuery({
|
|
107
|
+
"window": payload.window,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
const headers = new Headers(compactMap({
|
|
111
|
+
Accept: "application/json",
|
|
112
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
113
|
+
"X-On-Behalf-Of",
|
|
114
|
+
payload["X-On-Behalf-Of"],
|
|
115
|
+
{ explode: false, charEncoding: "none" },
|
|
116
|
+
),
|
|
117
|
+
}));
|
|
118
|
+
|
|
119
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
120
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
121
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
122
|
+
|
|
123
|
+
const context = {
|
|
124
|
+
options: client._options,
|
|
125
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
126
|
+
operationID: "getAcceleratorAvailability",
|
|
127
|
+
oAuth2Scopes: null,
|
|
128
|
+
|
|
129
|
+
resolvedSecurity: requestSecurity,
|
|
130
|
+
|
|
131
|
+
securitySource: client._options.bearerAuth,
|
|
132
|
+
retryConfig: options?.retries
|
|
133
|
+
|| client._options.retryConfig
|
|
134
|
+
|| {
|
|
135
|
+
strategy: "backoff",
|
|
136
|
+
backoff: {
|
|
137
|
+
initialInterval: 500,
|
|
138
|
+
maxInterval: 5000,
|
|
139
|
+
exponent: 1.5,
|
|
140
|
+
maxElapsedTime: 15000,
|
|
141
|
+
},
|
|
142
|
+
retryConnectionErrors: true,
|
|
143
|
+
}
|
|
144
|
+
|| { strategy: "none" },
|
|
145
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const requestRes = client._createRequest(context, {
|
|
149
|
+
security: requestSecurity,
|
|
150
|
+
method: "GET",
|
|
151
|
+
baseURL: options?.serverURL,
|
|
152
|
+
path: path,
|
|
153
|
+
headers: headers,
|
|
154
|
+
query: query,
|
|
155
|
+
body: body,
|
|
156
|
+
userAgent: client._options.userAgent,
|
|
157
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
158
|
+
}, options);
|
|
159
|
+
if (!requestRes.ok) {
|
|
160
|
+
return [requestRes, { status: "invalid" }];
|
|
161
|
+
}
|
|
162
|
+
const req = requestRes.value;
|
|
163
|
+
|
|
164
|
+
const doResult = await client._do(req, {
|
|
165
|
+
context,
|
|
166
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
167
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
168
|
+
retryConfig: context.retryConfig,
|
|
169
|
+
retryCodes: context.retryCodes,
|
|
170
|
+
});
|
|
171
|
+
if (!doResult.ok) {
|
|
172
|
+
return [doResult, { status: "request-error", request: req }];
|
|
173
|
+
}
|
|
174
|
+
const response = doResult.value;
|
|
175
|
+
|
|
176
|
+
const responseFields = {
|
|
177
|
+
HttpMeta: { Response: response, Request: req },
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
const [result] = await M.match<
|
|
181
|
+
components.AcceleratorAvailability,
|
|
182
|
+
| errors.ServingError
|
|
183
|
+
| errors.ServingHTTPValidationError
|
|
184
|
+
| SDKError
|
|
185
|
+
| ResponseValidationError
|
|
186
|
+
| ConnectionError
|
|
187
|
+
| RequestAbortedError
|
|
188
|
+
| RequestTimeoutError
|
|
189
|
+
| InvalidRequestError
|
|
190
|
+
| UnexpectedClientError
|
|
191
|
+
| SDKValidationError
|
|
192
|
+
>(
|
|
193
|
+
M.json(200, components.AcceleratorAvailability$inboundSchema),
|
|
194
|
+
M.jsonErr([403, 404], errors.ServingError$inboundSchema),
|
|
195
|
+
M.jsonErr(422, errors.ServingHTTPValidationError$inboundSchema),
|
|
196
|
+
M.jsonErr(501, errors.ServingError$inboundSchema),
|
|
197
|
+
M.fail([401, "4XX"]),
|
|
198
|
+
M.fail("5XX"),
|
|
199
|
+
)(response, req, { extraFields: responseFields });
|
|
200
|
+
if (!result.ok) {
|
|
201
|
+
return [result, { status: "complete", request: req, response }];
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return [result, { status: "complete", request: req, response }];
|
|
205
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { 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
|
+
* Get an accelerator type
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Retrieve one accelerator type from the curated catalog, including its workload affinity, placements, and live market fields when available.
|
|
35
|
+
*/
|
|
36
|
+
export function servingAcceleratorsGet(
|
|
37
|
+
client: SDKCore,
|
|
38
|
+
request: operations.GetAcceleratorRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
components.AcceleratorType,
|
|
43
|
+
| errors.ServingError
|
|
44
|
+
| SDKError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
request,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function $do(
|
|
62
|
+
client: SDKCore,
|
|
63
|
+
request: operations.GetAcceleratorRequest,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<
|
|
66
|
+
[
|
|
67
|
+
Result<
|
|
68
|
+
components.AcceleratorType,
|
|
69
|
+
| errors.ServingError
|
|
70
|
+
| SDKError
|
|
71
|
+
| ResponseValidationError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
| RequestAbortedError
|
|
74
|
+
| RequestTimeoutError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| UnexpectedClientError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
>,
|
|
79
|
+
APICall,
|
|
80
|
+
]
|
|
81
|
+
> {
|
|
82
|
+
const parsed = safeParse(
|
|
83
|
+
request,
|
|
84
|
+
(value) => operations.GetAcceleratorRequest$outboundSchema.parse(value),
|
|
85
|
+
"Input validation failed",
|
|
86
|
+
);
|
|
87
|
+
if (!parsed.ok) {
|
|
88
|
+
return [parsed, { status: "invalid" }];
|
|
89
|
+
}
|
|
90
|
+
const payload = parsed.value;
|
|
91
|
+
const body = null;
|
|
92
|
+
|
|
93
|
+
const pathParams = {
|
|
94
|
+
name: encodeSimple("name", payload.name, {
|
|
95
|
+
explode: false,
|
|
96
|
+
charEncoding: "percent",
|
|
97
|
+
}),
|
|
98
|
+
};
|
|
99
|
+
const path = pathToFunc("/api/v1/serving/accelerators/{name}")(pathParams);
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
104
|
+
"X-On-Behalf-Of",
|
|
105
|
+
payload["X-On-Behalf-Of"],
|
|
106
|
+
{ explode: false, charEncoding: "none" },
|
|
107
|
+
),
|
|
108
|
+
}));
|
|
109
|
+
|
|
110
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
111
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
112
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
113
|
+
|
|
114
|
+
const context = {
|
|
115
|
+
options: client._options,
|
|
116
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
117
|
+
operationID: "getAccelerator",
|
|
118
|
+
oAuth2Scopes: null,
|
|
119
|
+
|
|
120
|
+
resolvedSecurity: requestSecurity,
|
|
121
|
+
|
|
122
|
+
securitySource: client._options.bearerAuth,
|
|
123
|
+
retryConfig: options?.retries
|
|
124
|
+
|| client._options.retryConfig
|
|
125
|
+
|| {
|
|
126
|
+
strategy: "backoff",
|
|
127
|
+
backoff: {
|
|
128
|
+
initialInterval: 500,
|
|
129
|
+
maxInterval: 5000,
|
|
130
|
+
exponent: 1.5,
|
|
131
|
+
maxElapsedTime: 15000,
|
|
132
|
+
},
|
|
133
|
+
retryConnectionErrors: true,
|
|
134
|
+
}
|
|
135
|
+
|| { strategy: "none" },
|
|
136
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const requestRes = client._createRequest(context, {
|
|
140
|
+
security: requestSecurity,
|
|
141
|
+
method: "GET",
|
|
142
|
+
baseURL: options?.serverURL,
|
|
143
|
+
path: path,
|
|
144
|
+
headers: headers,
|
|
145
|
+
body: body,
|
|
146
|
+
userAgent: client._options.userAgent,
|
|
147
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
148
|
+
}, options);
|
|
149
|
+
if (!requestRes.ok) {
|
|
150
|
+
return [requestRes, { status: "invalid" }];
|
|
151
|
+
}
|
|
152
|
+
const req = requestRes.value;
|
|
153
|
+
|
|
154
|
+
const doResult = await client._do(req, {
|
|
155
|
+
context,
|
|
156
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
157
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
158
|
+
retryConfig: context.retryConfig,
|
|
159
|
+
retryCodes: context.retryCodes,
|
|
160
|
+
});
|
|
161
|
+
if (!doResult.ok) {
|
|
162
|
+
return [doResult, { status: "request-error", request: req }];
|
|
163
|
+
}
|
|
164
|
+
const response = doResult.value;
|
|
165
|
+
|
|
166
|
+
const responseFields = {
|
|
167
|
+
HttpMeta: { Response: response, Request: req },
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const [result] = await M.match<
|
|
171
|
+
components.AcceleratorType,
|
|
172
|
+
| errors.ServingError
|
|
173
|
+
| SDKError
|
|
174
|
+
| ResponseValidationError
|
|
175
|
+
| ConnectionError
|
|
176
|
+
| RequestAbortedError
|
|
177
|
+
| RequestTimeoutError
|
|
178
|
+
| InvalidRequestError
|
|
179
|
+
| UnexpectedClientError
|
|
180
|
+
| SDKValidationError
|
|
181
|
+
>(
|
|
182
|
+
M.json(200, components.AcceleratorType$inboundSchema),
|
|
183
|
+
M.jsonErr([403, 404], errors.ServingError$inboundSchema),
|
|
184
|
+
M.fail([401, "4XX"]),
|
|
185
|
+
M.fail("5XX"),
|
|
186
|
+
)(response, req, { extraFields: responseFields });
|
|
187
|
+
if (!result.ok) {
|
|
188
|
+
return [result, { status: "complete", request: req, response }];
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return [result, { status: "complete", request: req, response }];
|
|
192
|
+
}
|
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.17",
|
|
69
69
|
genVersion: "2.918.4",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.51.17 2.918.4 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -300,6 +300,8 @@ import { tool$sandboxSetPricing } from "./tools/sandboxSetPricing.js";
|
|
|
300
300
|
import { tool$sandboxTerminate } from "./tools/sandboxTerminate.js";
|
|
301
301
|
import { tool$sandboxUploadArchive } from "./tools/sandboxUploadArchive.js";
|
|
302
302
|
import { tool$sandboxUploadFile } from "./tools/sandboxUploadFile.js";
|
|
303
|
+
import { tool$servingAcceleratorsAvailability } from "./tools/servingAcceleratorsAvailability.js";
|
|
304
|
+
import { tool$servingAcceleratorsGet } from "./tools/servingAcceleratorsGet.js";
|
|
303
305
|
import { tool$servingAcceleratorsList } from "./tools/servingAcceleratorsList.js";
|
|
304
306
|
import { tool$servingDeploymentsCreate } from "./tools/servingDeploymentsCreate.js";
|
|
305
307
|
import { tool$servingDeploymentsDelete } from "./tools/servingDeploymentsDelete.js";
|
|
@@ -363,7 +365,7 @@ export function createMCPServer(deps: {
|
|
|
363
365
|
}) {
|
|
364
366
|
const server = new McpServer({
|
|
365
367
|
name: "SDK",
|
|
366
|
-
version: "0.51.
|
|
368
|
+
version: "0.51.17",
|
|
367
369
|
});
|
|
368
370
|
|
|
369
371
|
const client = new SDKCore({
|
|
@@ -683,6 +685,8 @@ export function createMCPServer(deps: {
|
|
|
683
685
|
tool(tool$authClusterAcceptInvite);
|
|
684
686
|
tool(tool$authApiKeyGetJwtFromKey);
|
|
685
687
|
tool(tool$servingAcceleratorsList);
|
|
688
|
+
tool(tool$servingAcceleratorsGet);
|
|
689
|
+
tool(tool$servingAcceleratorsAvailability);
|
|
686
690
|
tool(tool$servingDeploymentsList);
|
|
687
691
|
tool(tool$servingDeploymentsCreate);
|
|
688
692
|
tool(tool$servingDeploymentsDelete);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { servingAcceleratorsAvailability } from "../../funcs/servingAcceleratorsAvailability.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetAcceleratorAvailabilityRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$servingAcceleratorsAvailability: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "serving-accelerators-availability",
|
|
16
|
+
description: `Get accelerator availability history
|
|
17
|
+
|
|
18
|
+
Bucketed availability time series for one accelerator type over a window, aggregated across anonymous providers and served from hourly rollups. Includes a 24-slot hour-of-day profile. Hours the platform polled without observing the accelerator read as availability 0; a window with no observations at all returns an empty series.`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] = await servingAcceleratorsAvailability(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = result.value;
|
|
35
|
+
|
|
36
|
+
return formatResult(value, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|