@meetkai/mka1 0.54.102 → 0.54.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +188 -17
- package/bin/mcp-server.js.map +17 -16
- package/dist/commonjs/funcs/guardrailsGetClusterDefaultGuardrails.d.ts +1 -1
- package/dist/commonjs/funcs/guardrailsGetClusterDefaultGuardrails.js +1 -1
- package/dist/commonjs/funcs/guardrailsResetClusterDefaultGuardrails.d.ts +1 -1
- package/dist/commonjs/funcs/guardrailsResetClusterDefaultGuardrails.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/guardrailsGetClusterDefaultGuardrails.js +1 -1
- package/dist/commonjs/mcp-server/tools/guardrailsGetClusterDefaultGuardrails.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/guardrailsResetClusterDefaultGuardrails.js +1 -1
- package/dist/commonjs/mcp-server/tools/guardrailsResetClusterDefaultGuardrails.js.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +24 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +26 -2
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/cataloglifecycle.d.ts +35 -0
- package/dist/commonjs/models/components/cataloglifecycle.d.ts.map +1 -0
- package/dist/commonjs/models/components/cataloglifecycle.js +74 -0
- package/dist/commonjs/models/components/cataloglifecycle.js.map +1 -0
- package/dist/commonjs/models/components/clusterdefaultguardrailsresponse.d.ts +2 -2
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +24 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +25 -2
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +94 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +70 -1
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +94 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +69 -1
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/react-query/guardrailsGetClusterDefaultGuardrails.d.ts +2 -2
- package/dist/commonjs/react-query/guardrailsGetClusterDefaultGuardrails.js +2 -2
- package/dist/commonjs/react-query/guardrailsResetClusterDefaultGuardrails.d.ts +1 -1
- package/dist/commonjs/react-query/guardrailsResetClusterDefaultGuardrails.js +1 -1
- package/dist/commonjs/sdk/guardrails.d.ts +2 -2
- package/dist/commonjs/sdk/guardrails.js +2 -2
- package/dist/esm/funcs/guardrailsGetClusterDefaultGuardrails.d.ts +1 -1
- package/dist/esm/funcs/guardrailsGetClusterDefaultGuardrails.js +1 -1
- package/dist/esm/funcs/guardrailsResetClusterDefaultGuardrails.d.ts +1 -1
- package/dist/esm/funcs/guardrailsResetClusterDefaultGuardrails.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/guardrailsGetClusterDefaultGuardrails.js +1 -1
- package/dist/esm/mcp-server/tools/guardrailsGetClusterDefaultGuardrails.js.map +1 -1
- package/dist/esm/mcp-server/tools/guardrailsResetClusterDefaultGuardrails.js +1 -1
- package/dist/esm/mcp-server/tools/guardrailsResetClusterDefaultGuardrails.js.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts +24 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +24 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/cataloglifecycle.d.ts +35 -0
- package/dist/esm/models/components/cataloglifecycle.d.ts.map +1 -0
- package/dist/esm/models/components/cataloglifecycle.js +36 -0
- package/dist/esm/models/components/cataloglifecycle.js.map +1 -0
- package/dist/esm/models/components/clusterdefaultguardrailsresponse.d.ts +2 -2
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +24 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +23 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +94 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +67 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +94 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +66 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/react-query/guardrailsGetClusterDefaultGuardrails.d.ts +2 -2
- package/dist/esm/react-query/guardrailsGetClusterDefaultGuardrails.js +2 -2
- package/dist/esm/react-query/guardrailsResetClusterDefaultGuardrails.d.ts +1 -1
- package/dist/esm/react-query/guardrailsResetClusterDefaultGuardrails.js +1 -1
- package/dist/esm/sdk/guardrails.d.ts +2 -2
- package/dist/esm/sdk/guardrails.js +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/guardrailsGetClusterDefaultGuardrails.ts +1 -1
- package/src/funcs/guardrailsResetClusterDefaultGuardrails.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/guardrailsGetClusterDefaultGuardrails.ts +1 -1
- package/src/mcp-server/tools/guardrailsResetClusterDefaultGuardrails.ts +1 -1
- package/src/models/components/addcatalogmodelrequest.ts +47 -0
- package/src/models/components/cataloglifecycle.ts +81 -0
- package/src/models/components/clusterdefaultguardrailsresponse.ts +2 -2
- package/src/models/components/index.ts +1 -0
- package/src/models/components/updatecatalogmodelrequest.ts +49 -0
- package/src/models/operations/getmodel.ts +162 -0
- package/src/models/operations/listmodels.ts +168 -0
- package/src/react-query/guardrailsGetClusterDefaultGuardrails.ts +2 -2
- package/src/react-query/guardrailsResetClusterDefaultGuardrails.ts +1 -1
- package/src/sdk/guardrails.ts +2 -2
|
@@ -9,7 +9,7 @@ export { buildGuardrailsGetClusterDefaultGuardrailsQuery, prefetchGuardrailsGetC
|
|
|
9
9
|
* Get the cluster default guardrails
|
|
10
10
|
*
|
|
11
11
|
* @remarks
|
|
12
|
-
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with
|
|
12
|
+
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with no rules, so nothing is enforced.
|
|
13
13
|
*/
|
|
14
14
|
export function useGuardrailsGetClusterDefaultGuardrails(options) {
|
|
15
15
|
const client = useSDKContext();
|
|
@@ -22,7 +22,7 @@ export function useGuardrailsGetClusterDefaultGuardrails(options) {
|
|
|
22
22
|
* Get the cluster default guardrails
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
|
-
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with
|
|
25
|
+
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with no rules, so nothing is enforced.
|
|
26
26
|
*/
|
|
27
27
|
export function useGuardrailsGetClusterDefaultGuardrailsSuspense(options) {
|
|
28
28
|
const client = useSDKContext();
|
|
@@ -16,7 +16,7 @@ export type GuardrailsResetClusterDefaultGuardrailsMutationError = SDKError | Re
|
|
|
16
16
|
* Reset the cluster default guardrails
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Delete the saved cluster default so the built-in default applies again: switched on, with
|
|
19
|
+
* Delete the saved cluster default so the built-in default applies again: switched on, with no rules, so nothing is enforced. To stop enforcing a cluster default, update it with enabled set to false instead.
|
|
20
20
|
*/
|
|
21
21
|
export declare function useGuardrailsResetClusterDefaultGuardrailsMutation(options?: MutationHookOptions<GuardrailsResetClusterDefaultGuardrailsMutationData, GuardrailsResetClusterDefaultGuardrailsMutationError, GuardrailsResetClusterDefaultGuardrailsMutationVariables>): UseMutationResult<GuardrailsResetClusterDefaultGuardrailsMutationData, GuardrailsResetClusterDefaultGuardrailsMutationError, GuardrailsResetClusterDefaultGuardrailsMutationVariables>;
|
|
22
22
|
export declare function mutationKeyGuardrailsResetClusterDefaultGuardrails(): MutationKey;
|
|
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Reset the cluster default guardrails
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Delete the saved cluster default so the built-in default applies again: switched on, with
|
|
13
|
+
* Delete the saved cluster default so the built-in default applies again: switched on, with no rules, so nothing is enforced. To stop enforcing a cluster default, update it with enabled set to false instead.
|
|
14
14
|
*/
|
|
15
15
|
export function useGuardrailsResetClusterDefaultGuardrailsMutation(options) {
|
|
16
16
|
const client = useSDKContext();
|
|
@@ -41,7 +41,7 @@ export declare class Guardrails extends ClientSDK {
|
|
|
41
41
|
* Get the cluster default guardrails
|
|
42
42
|
*
|
|
43
43
|
* @remarks
|
|
44
|
-
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with
|
|
44
|
+
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with no rules, so nothing is enforced.
|
|
45
45
|
*/
|
|
46
46
|
getClusterDefaultGuardrails(options?: RequestOptions): Promise<components.ClusterDefaultGuardrailsResponse>;
|
|
47
47
|
/**
|
|
@@ -55,7 +55,7 @@ export declare class Guardrails extends ClientSDK {
|
|
|
55
55
|
* Reset the cluster default guardrails
|
|
56
56
|
*
|
|
57
57
|
* @remarks
|
|
58
|
-
* Delete the saved cluster default so the built-in default applies again: switched on, with
|
|
58
|
+
* Delete the saved cluster default so the built-in default applies again: switched on, with no rules, so nothing is enforced. To stop enforcing a cluster default, update it with enabled set to false instead.
|
|
59
59
|
*/
|
|
60
60
|
resetClusterDefaultGuardrails(options?: RequestOptions): Promise<components.ClusterDefaultGuardrailsResponse>;
|
|
61
61
|
/**
|
|
@@ -63,7 +63,7 @@ export class Guardrails extends ClientSDK {
|
|
|
63
63
|
* Get the cluster default guardrails
|
|
64
64
|
*
|
|
65
65
|
* @remarks
|
|
66
|
-
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with
|
|
66
|
+
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with no rules, so nothing is enforced.
|
|
67
67
|
*/
|
|
68
68
|
async getClusterDefaultGuardrails(options) {
|
|
69
69
|
return unwrapAsync(guardrailsGetClusterDefaultGuardrails(this, options));
|
|
@@ -81,7 +81,7 @@ export class Guardrails extends ClientSDK {
|
|
|
81
81
|
* Reset the cluster default guardrails
|
|
82
82
|
*
|
|
83
83
|
* @remarks
|
|
84
|
-
* Delete the saved cluster default so the built-in default applies again: switched on, with
|
|
84
|
+
* Delete the saved cluster default so the built-in default applies again: switched on, with no rules, so nothing is enforced. To stop enforcing a cluster default, update it with enabled set to false instead.
|
|
85
85
|
*/
|
|
86
86
|
async resetClusterDefaultGuardrails(options) {
|
|
87
87
|
return unwrapAsync(guardrailsResetClusterDefaultGuardrails(this, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* Get the cluster default guardrails
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with
|
|
30
|
+
* Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with no rules, so nothing is enforced.
|
|
31
31
|
*
|
|
32
32
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
33
33
|
*/
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* Reset the cluster default guardrails
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Delete the saved cluster default so the built-in default applies again: switched on, with
|
|
30
|
+
* Delete the saved cluster default so the built-in default applies again: switched on, with no rules, so nothing is enforced. To stop enforcing a cluster default, update it with enabled set to false instead.
|
|
31
31
|
*
|
|
32
32
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
33
33
|
*/
|
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.54.
|
|
68
|
+
sdkVersion: "0.54.104",
|
|
69
69
|
genVersion: "2.948.4",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.104 2.948.4 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -9,7 +9,7 @@ export const tool$guardrailsGetClusterDefaultGuardrails: ToolDefinition = {
|
|
|
9
9
|
name: "guardrails-get-cluster-default-guardrails",
|
|
10
10
|
description: `Get the cluster default guardrails
|
|
11
11
|
|
|
12
|
-
Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with
|
|
12
|
+
Cluster operator view of the default guardrails enforced beneath the org-wide and team policies of every enrolled organization. Until an operator saves one, the built-in default applies: switched on, with no rules, so nothing is enforced.`,
|
|
13
13
|
tool: async (client, ctx) => {
|
|
14
14
|
const [result, apiCall] = await guardrailsGetClusterDefaultGuardrails(
|
|
15
15
|
client,
|
|
@@ -9,7 +9,7 @@ export const tool$guardrailsResetClusterDefaultGuardrails: ToolDefinition = {
|
|
|
9
9
|
name: "guardrails-reset-cluster-default-guardrails",
|
|
10
10
|
description: `Reset the cluster default guardrails
|
|
11
11
|
|
|
12
|
-
Delete the saved cluster default so the built-in default applies again: switched on, with
|
|
12
|
+
Delete the saved cluster default so the built-in default applies again: switched on, with no rules, so nothing is enforced. To stop enforcing a cluster default, update it with enabled set to false instead.`,
|
|
13
13
|
tool: async (client, ctx) => {
|
|
14
14
|
const [result, apiCall] = await guardrailsResetClusterDefaultGuardrails(
|
|
15
15
|
client,
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
AutoEndpoint$inboundSchema,
|
|
14
14
|
AutoEndpoint$outboundSchema,
|
|
15
15
|
} from "./autoendpoint.js";
|
|
16
|
+
import {
|
|
17
|
+
CatalogLifecycle,
|
|
18
|
+
CatalogLifecycle$inboundSchema,
|
|
19
|
+
CatalogLifecycle$Outbound,
|
|
20
|
+
CatalogLifecycle$outboundSchema,
|
|
21
|
+
} from "./cataloglifecycle.js";
|
|
16
22
|
|
|
17
23
|
export const ApiProviderType = {
|
|
18
24
|
Groq: "groq",
|
|
@@ -261,7 +267,19 @@ export type HealthCheck1 = {
|
|
|
261
267
|
|
|
262
268
|
export type HealthCheck = HealthCheck1 | HealthCheck2 | HealthCheck3;
|
|
263
269
|
|
|
270
|
+
export const Weights = {
|
|
271
|
+
Open: "open",
|
|
272
|
+
Closed: "closed",
|
|
273
|
+
} as const;
|
|
274
|
+
export type Weights = ClosedEnum<typeof Weights>;
|
|
275
|
+
|
|
264
276
|
export type ModelCard = {
|
|
277
|
+
developer?: string | undefined;
|
|
278
|
+
baseModel?: string | undefined;
|
|
279
|
+
weights?: Weights | undefined;
|
|
280
|
+
license?: string | undefined;
|
|
281
|
+
languages?: Array<string> | undefined;
|
|
282
|
+
limitations?: string | undefined;
|
|
265
283
|
parameterCount?: number | undefined;
|
|
266
284
|
activeParameterCount?: number | undefined;
|
|
267
285
|
releaseDate?: RFCDate | undefined;
|
|
@@ -291,6 +309,7 @@ export type AddCatalogModelRequest = {
|
|
|
291
309
|
embeddingLimits?: EmbeddingLimits | undefined;
|
|
292
310
|
healthCheck?: HealthCheck1 | HealthCheck2 | HealthCheck3 | undefined;
|
|
293
311
|
modelCard?: ModelCard | undefined;
|
|
312
|
+
lifecycle?: CatalogLifecycle | undefined;
|
|
294
313
|
};
|
|
295
314
|
|
|
296
315
|
/** @internal */
|
|
@@ -1803,12 +1822,25 @@ export function healthCheckFromJSON(
|
|
|
1803
1822
|
);
|
|
1804
1823
|
}
|
|
1805
1824
|
|
|
1825
|
+
/** @internal */
|
|
1826
|
+
export const Weights$inboundSchema: z.ZodNativeEnum<typeof Weights> = z
|
|
1827
|
+
.nativeEnum(Weights);
|
|
1828
|
+
/** @internal */
|
|
1829
|
+
export const Weights$outboundSchema: z.ZodNativeEnum<typeof Weights> =
|
|
1830
|
+
Weights$inboundSchema;
|
|
1831
|
+
|
|
1806
1832
|
/** @internal */
|
|
1807
1833
|
export const ModelCard$inboundSchema: z.ZodType<
|
|
1808
1834
|
ModelCard,
|
|
1809
1835
|
z.ZodTypeDef,
|
|
1810
1836
|
unknown
|
|
1811
1837
|
> = z.object({
|
|
1838
|
+
developer: z.string().optional(),
|
|
1839
|
+
baseModel: z.string().optional(),
|
|
1840
|
+
weights: Weights$inboundSchema.optional(),
|
|
1841
|
+
license: z.string().optional(),
|
|
1842
|
+
languages: z.array(z.string()).optional(),
|
|
1843
|
+
limitations: z.string().optional(),
|
|
1812
1844
|
parameterCount: z.number().int().optional(),
|
|
1813
1845
|
activeParameterCount: z.number().int().optional(),
|
|
1814
1846
|
releaseDate: z.string().transform(v => new RFCDate(v)).optional(),
|
|
@@ -1816,6 +1848,12 @@ export const ModelCard$inboundSchema: z.ZodType<
|
|
|
1816
1848
|
});
|
|
1817
1849
|
/** @internal */
|
|
1818
1850
|
export type ModelCard$Outbound = {
|
|
1851
|
+
developer?: string | undefined;
|
|
1852
|
+
baseModel?: string | undefined;
|
|
1853
|
+
weights?: string | undefined;
|
|
1854
|
+
license?: string | undefined;
|
|
1855
|
+
languages?: Array<string> | undefined;
|
|
1856
|
+
limitations?: string | undefined;
|
|
1819
1857
|
parameterCount?: number | undefined;
|
|
1820
1858
|
activeParameterCount?: number | undefined;
|
|
1821
1859
|
releaseDate?: string | undefined;
|
|
@@ -1828,6 +1866,12 @@ export const ModelCard$outboundSchema: z.ZodType<
|
|
|
1828
1866
|
z.ZodTypeDef,
|
|
1829
1867
|
ModelCard
|
|
1830
1868
|
> = z.object({
|
|
1869
|
+
developer: z.string().optional(),
|
|
1870
|
+
baseModel: z.string().optional(),
|
|
1871
|
+
weights: Weights$outboundSchema.optional(),
|
|
1872
|
+
license: z.string().optional(),
|
|
1873
|
+
languages: z.array(z.string()).optional(),
|
|
1874
|
+
limitations: z.string().optional(),
|
|
1831
1875
|
parameterCount: z.number().int().optional(),
|
|
1832
1876
|
activeParameterCount: z.number().int().optional(),
|
|
1833
1877
|
releaseDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
@@ -1884,6 +1928,7 @@ export const AddCatalogModelRequest$inboundSchema: z.ZodType<
|
|
|
1884
1928
|
z.lazy(() => HealthCheck3$inboundSchema),
|
|
1885
1929
|
]).optional(),
|
|
1886
1930
|
modelCard: z.lazy(() => ModelCard$inboundSchema).optional(),
|
|
1931
|
+
lifecycle: CatalogLifecycle$inboundSchema.optional(),
|
|
1887
1932
|
});
|
|
1888
1933
|
/** @internal */
|
|
1889
1934
|
export type AddCatalogModelRequest$Outbound = {
|
|
@@ -1913,6 +1958,7 @@ export type AddCatalogModelRequest$Outbound = {
|
|
|
1913
1958
|
| HealthCheck3$Outbound
|
|
1914
1959
|
| undefined;
|
|
1915
1960
|
modelCard?: ModelCard$Outbound | undefined;
|
|
1961
|
+
lifecycle?: CatalogLifecycle$Outbound | undefined;
|
|
1916
1962
|
};
|
|
1917
1963
|
|
|
1918
1964
|
/** @internal */
|
|
@@ -1952,6 +1998,7 @@ export const AddCatalogModelRequest$outboundSchema: z.ZodType<
|
|
|
1952
1998
|
z.lazy(() => HealthCheck3$outboundSchema),
|
|
1953
1999
|
]).optional(),
|
|
1954
2000
|
modelCard: z.lazy(() => ModelCard$outboundSchema).optional(),
|
|
2001
|
+
lifecycle: CatalogLifecycle$outboundSchema.optional(),
|
|
1955
2002
|
});
|
|
1956
2003
|
|
|
1957
2004
|
export function addCatalogModelRequestToJSON(
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { RFCDate } from "../../types/rfcdate.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const CatalogLifecycleStatus = {
|
|
13
|
+
Active: "active",
|
|
14
|
+
Deprecated: "deprecated",
|
|
15
|
+
Retired: "retired",
|
|
16
|
+
} as const;
|
|
17
|
+
export type CatalogLifecycleStatus = ClosedEnum<typeof CatalogLifecycleStatus>;
|
|
18
|
+
|
|
19
|
+
export type CatalogLifecycle = {
|
|
20
|
+
status: CatalogLifecycleStatus;
|
|
21
|
+
deprecatedAt?: RFCDate | undefined;
|
|
22
|
+
retiresAt?: RFCDate | undefined;
|
|
23
|
+
successor?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CatalogLifecycleStatus$inboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof CatalogLifecycleStatus
|
|
29
|
+
> = z.nativeEnum(CatalogLifecycleStatus);
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CatalogLifecycleStatus$outboundSchema: z.ZodNativeEnum<
|
|
32
|
+
typeof CatalogLifecycleStatus
|
|
33
|
+
> = CatalogLifecycleStatus$inboundSchema;
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const CatalogLifecycle$inboundSchema: z.ZodType<
|
|
37
|
+
CatalogLifecycle,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
status: CatalogLifecycleStatus$inboundSchema,
|
|
42
|
+
deprecatedAt: z.string().transform(v => new RFCDate(v)).optional(),
|
|
43
|
+
retiresAt: z.string().transform(v => new RFCDate(v)).optional(),
|
|
44
|
+
successor: z.string().optional(),
|
|
45
|
+
});
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CatalogLifecycle$Outbound = {
|
|
48
|
+
status: string;
|
|
49
|
+
deprecatedAt?: string | undefined;
|
|
50
|
+
retiresAt?: string | undefined;
|
|
51
|
+
successor?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const CatalogLifecycle$outboundSchema: z.ZodType<
|
|
56
|
+
CatalogLifecycle$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
CatalogLifecycle
|
|
59
|
+
> = z.object({
|
|
60
|
+
status: CatalogLifecycleStatus$outboundSchema,
|
|
61
|
+
deprecatedAt: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
62
|
+
retiresAt: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
63
|
+
successor: z.string().optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export function catalogLifecycleToJSON(
|
|
67
|
+
catalogLifecycle: CatalogLifecycle,
|
|
68
|
+
): string {
|
|
69
|
+
return JSON.stringify(
|
|
70
|
+
CatalogLifecycle$outboundSchema.parse(catalogLifecycle),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
export function catalogLifecycleFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<CatalogLifecycle, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => CatalogLifecycle$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'CatalogLifecycle' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -25,11 +25,11 @@ export type ClusterDefaultGuardrailsResponse = {
|
|
|
25
25
|
*/
|
|
26
26
|
guardrails: Array<GuardrailConfig>;
|
|
27
27
|
/**
|
|
28
|
-
* True while the cluster runs the built-in default (
|
|
28
|
+
* True while the cluster runs the built-in default (switched on, with no rules) because no operator has saved one
|
|
29
29
|
*/
|
|
30
30
|
builtIn: boolean;
|
|
31
31
|
/**
|
|
32
|
-
* True when
|
|
32
|
+
* True when some saved cluster default rules cannot be read: only the rules shown here are enforced. Saving this state back drops the unreadable rules, so do not unless that is intended
|
|
33
33
|
*/
|
|
34
34
|
settingsUnreadable: boolean;
|
|
35
35
|
/**
|
|
@@ -67,6 +67,7 @@ export * from "./catalogactivationstate.js";
|
|
|
67
67
|
export * from "./catalogentry.js";
|
|
68
68
|
export * from "./cataloghealth.js";
|
|
69
69
|
export * from "./cataloghealthresponse.js";
|
|
70
|
+
export * from "./cataloglifecycle.js";
|
|
70
71
|
export * from "./cataloglistresponse.js";
|
|
71
72
|
export * from "./catalogpricepreview.js";
|
|
72
73
|
export * from "./checkpermissionresponse.js";
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
AutoEndpoint$inboundSchema,
|
|
14
14
|
AutoEndpoint$outboundSchema,
|
|
15
15
|
} from "./autoendpoint.js";
|
|
16
|
+
import {
|
|
17
|
+
CatalogLifecycle,
|
|
18
|
+
CatalogLifecycle$inboundSchema,
|
|
19
|
+
CatalogLifecycle$Outbound,
|
|
20
|
+
CatalogLifecycle$outboundSchema,
|
|
21
|
+
} from "./cataloglifecycle.js";
|
|
16
22
|
|
|
17
23
|
export const UpdateCatalogModelRequestApiProviderType = {
|
|
18
24
|
Groq: "groq",
|
|
@@ -287,7 +293,19 @@ export type UpdateCatalogModelRequestHealthCheck =
|
|
|
287
293
|
| UpdateCatalogModelRequestHealthCheck2
|
|
288
294
|
| UpdateCatalogModelRequestHealthCheck3;
|
|
289
295
|
|
|
296
|
+
export const ModelCardWeights = {
|
|
297
|
+
Open: "open",
|
|
298
|
+
Closed: "closed",
|
|
299
|
+
} as const;
|
|
300
|
+
export type ModelCardWeights = ClosedEnum<typeof ModelCardWeights>;
|
|
301
|
+
|
|
290
302
|
export type UpdateCatalogModelRequestModelCard = {
|
|
303
|
+
developer?: string | undefined;
|
|
304
|
+
baseModel?: string | undefined;
|
|
305
|
+
weights?: ModelCardWeights | undefined;
|
|
306
|
+
license?: string | undefined;
|
|
307
|
+
languages?: Array<string> | undefined;
|
|
308
|
+
limitations?: string | undefined;
|
|
291
309
|
parameterCount?: number | undefined;
|
|
292
310
|
activeParameterCount?: number | undefined;
|
|
293
311
|
releaseDate?: RFCDate | undefined;
|
|
@@ -329,6 +347,7 @@ export type UpdateCatalogModelRequest = {
|
|
|
329
347
|
| null
|
|
330
348
|
| undefined;
|
|
331
349
|
modelCard?: UpdateCatalogModelRequestModelCard | null | undefined;
|
|
350
|
+
lifecycle?: CatalogLifecycle | null | undefined;
|
|
332
351
|
id: string;
|
|
333
352
|
};
|
|
334
353
|
|
|
@@ -2118,12 +2137,27 @@ export function updateCatalogModelRequestHealthCheckFromJSON(
|
|
|
2118
2137
|
);
|
|
2119
2138
|
}
|
|
2120
2139
|
|
|
2140
|
+
/** @internal */
|
|
2141
|
+
export const ModelCardWeights$inboundSchema: z.ZodNativeEnum<
|
|
2142
|
+
typeof ModelCardWeights
|
|
2143
|
+
> = z.nativeEnum(ModelCardWeights);
|
|
2144
|
+
/** @internal */
|
|
2145
|
+
export const ModelCardWeights$outboundSchema: z.ZodNativeEnum<
|
|
2146
|
+
typeof ModelCardWeights
|
|
2147
|
+
> = ModelCardWeights$inboundSchema;
|
|
2148
|
+
|
|
2121
2149
|
/** @internal */
|
|
2122
2150
|
export const UpdateCatalogModelRequestModelCard$inboundSchema: z.ZodType<
|
|
2123
2151
|
UpdateCatalogModelRequestModelCard,
|
|
2124
2152
|
z.ZodTypeDef,
|
|
2125
2153
|
unknown
|
|
2126
2154
|
> = z.object({
|
|
2155
|
+
developer: z.string().optional(),
|
|
2156
|
+
baseModel: z.string().optional(),
|
|
2157
|
+
weights: ModelCardWeights$inboundSchema.optional(),
|
|
2158
|
+
license: z.string().optional(),
|
|
2159
|
+
languages: z.array(z.string()).optional(),
|
|
2160
|
+
limitations: z.string().optional(),
|
|
2127
2161
|
parameterCount: z.number().int().optional(),
|
|
2128
2162
|
activeParameterCount: z.number().int().optional(),
|
|
2129
2163
|
releaseDate: z.string().transform(v => new RFCDate(v)).optional(),
|
|
@@ -2131,6 +2165,12 @@ export const UpdateCatalogModelRequestModelCard$inboundSchema: z.ZodType<
|
|
|
2131
2165
|
});
|
|
2132
2166
|
/** @internal */
|
|
2133
2167
|
export type UpdateCatalogModelRequestModelCard$Outbound = {
|
|
2168
|
+
developer?: string | undefined;
|
|
2169
|
+
baseModel?: string | undefined;
|
|
2170
|
+
weights?: string | undefined;
|
|
2171
|
+
license?: string | undefined;
|
|
2172
|
+
languages?: Array<string> | undefined;
|
|
2173
|
+
limitations?: string | undefined;
|
|
2134
2174
|
parameterCount?: number | undefined;
|
|
2135
2175
|
activeParameterCount?: number | undefined;
|
|
2136
2176
|
releaseDate?: string | undefined;
|
|
@@ -2143,6 +2183,12 @@ export const UpdateCatalogModelRequestModelCard$outboundSchema: z.ZodType<
|
|
|
2143
2183
|
z.ZodTypeDef,
|
|
2144
2184
|
UpdateCatalogModelRequestModelCard
|
|
2145
2185
|
> = z.object({
|
|
2186
|
+
developer: z.string().optional(),
|
|
2187
|
+
baseModel: z.string().optional(),
|
|
2188
|
+
weights: ModelCardWeights$outboundSchema.optional(),
|
|
2189
|
+
license: z.string().optional(),
|
|
2190
|
+
languages: z.array(z.string()).optional(),
|
|
2191
|
+
limitations: z.string().optional(),
|
|
2146
2192
|
parameterCount: z.number().int().optional(),
|
|
2147
2193
|
activeParameterCount: z.number().int().optional(),
|
|
2148
2194
|
releaseDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
@@ -2222,6 +2268,7 @@ export const UpdateCatalogModelRequest$inboundSchema: z.ZodType<
|
|
|
2222
2268
|
modelCard: z.nullable(
|
|
2223
2269
|
z.lazy(() => UpdateCatalogModelRequestModelCard$inboundSchema),
|
|
2224
2270
|
).optional(),
|
|
2271
|
+
lifecycle: z.nullable(CatalogLifecycle$inboundSchema).optional(),
|
|
2225
2272
|
id: z.string(),
|
|
2226
2273
|
});
|
|
2227
2274
|
/** @internal */
|
|
@@ -2272,6 +2319,7 @@ export type UpdateCatalogModelRequest$Outbound = {
|
|
|
2272
2319
|
| null
|
|
2273
2320
|
| undefined;
|
|
2274
2321
|
modelCard?: UpdateCatalogModelRequestModelCard$Outbound | null | undefined;
|
|
2322
|
+
lifecycle?: CatalogLifecycle$Outbound | null | undefined;
|
|
2275
2323
|
id: string;
|
|
2276
2324
|
};
|
|
2277
2325
|
|
|
@@ -2328,6 +2376,7 @@ export const UpdateCatalogModelRequest$outboundSchema: z.ZodType<
|
|
|
2328
2376
|
modelCard: z.nullable(
|
|
2329
2377
|
z.lazy(() => UpdateCatalogModelRequestModelCard$outboundSchema),
|
|
2330
2378
|
).optional(),
|
|
2379
|
+
lifecycle: z.nullable(CatalogLifecycle$outboundSchema).optional(),
|
|
2331
2380
|
id: z.string(),
|
|
2332
2381
|
});
|
|
2333
2382
|
|