@meetkai/mka1 0.54.34 → 0.54.36
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 +41 -12
- package/bin/mcp-server.js.map +14 -13
- package/dist/commonjs/funcs/llmModelsAddCatalogOrgAccess.d.ts +1 -1
- package/dist/commonjs/funcs/llmModelsAddCatalogOrgAccess.js +2 -2
- package/dist/commonjs/funcs/llmModelsAddCatalogOrgAccess.js.map +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/llmModelsAddCatalogOrgAccess.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsAddCatalogOrgAccess.js.map +1 -1
- package/dist/commonjs/models/components/addaccessmutationrequest.d.ts +22 -0
- package/dist/commonjs/models/components/addaccessmutationrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/addaccessmutationrequest.js +69 -0
- package/dist/commonjs/models/components/addaccessmutationrequest.js.map +1 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +2 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +2 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- 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/inputimage.d.ts +4 -3
- package/dist/commonjs/models/components/inputimage.d.ts.map +1 -1
- package/dist/commonjs/models/components/inputimage.js +2 -1
- package/dist/commonjs/models/components/inputimage.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +2 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +2 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.d.ts +2 -2
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.js +4 -4
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.js.map +1 -1
- package/dist/commonjs/react-query/llmModelsAddCatalogOrgAccess.d.ts +1 -1
- package/dist/commonjs/react-query/llmModelsAddCatalogOrgAccess.js +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.js +1 -1
- package/dist/esm/funcs/llmModelsAddCatalogOrgAccess.d.ts +1 -1
- package/dist/esm/funcs/llmModelsAddCatalogOrgAccess.js +2 -2
- package/dist/esm/funcs/llmModelsAddCatalogOrgAccess.js.map +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/llmModelsAddCatalogOrgAccess.js +1 -1
- package/dist/esm/mcp-server/tools/llmModelsAddCatalogOrgAccess.js.map +1 -1
- package/dist/esm/models/components/addaccessmutationrequest.d.ts +22 -0
- package/dist/esm/models/components/addaccessmutationrequest.d.ts.map +1 -0
- package/dist/esm/models/components/addaccessmutationrequest.js +31 -0
- package/dist/esm/models/components/addaccessmutationrequest.js.map +1 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts +2 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +2 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- 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/inputimage.d.ts +4 -3
- package/dist/esm/models/components/inputimage.d.ts.map +1 -1
- package/dist/esm/models/components/inputimage.js +2 -1
- package/dist/esm/models/components/inputimage.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +2 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +2 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/operations/addmodelcatalogorgaccess.d.ts +2 -2
- package/dist/esm/models/operations/addmodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/esm/models/operations/addmodelcatalogorgaccess.js +4 -4
- package/dist/esm/models/operations/addmodelcatalogorgaccess.js.map +1 -1
- package/dist/esm/react-query/llmModelsAddCatalogOrgAccess.d.ts +1 -1
- package/dist/esm/react-query/llmModelsAddCatalogOrgAccess.js +1 -1
- package/dist/esm/sdk/models.d.ts +1 -1
- package/dist/esm/sdk/models.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmModelsAddCatalogOrgAccess.ts +2 -2
- 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/llmModelsAddCatalogOrgAccess.ts +1 -1
- package/src/models/components/addaccessmutationrequest.ts +67 -0
- package/src/models/components/addcatalogmodelrequest.ts +4 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/inputimage.ts +4 -3
- package/src/models/components/updatecatalogmodelrequest.ts +4 -0
- package/src/models/operations/addmodelcatalogorgaccess.ts +6 -6
- package/src/react-query/llmModelsAddCatalogOrgAccess.ts +1 -1
- package/src/sdk/models.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addmodelcatalogorgaccess.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/addmodelcatalogorgaccess.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"addmodelcatalogorgaccess.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/addmodelcatalogorgaccess.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,+BAA+B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,EAAE,UAAU,CAAC,wBAAwB,CAAC;CAC/D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB,EAAE,UAAU,CAAC,iCAAiC,CAAC;CACxE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAS/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AACD,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -8,21 +8,21 @@ import * as components from "../components/index.js";
|
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const AddModelCatalogOrgAccessRequest$inboundSchema = z.object({
|
|
10
10
|
org_id: z.string(),
|
|
11
|
-
|
|
11
|
+
AddAccessMutationRequest: components.AddAccessMutationRequest$inboundSchema,
|
|
12
12
|
}).transform((v) => {
|
|
13
13
|
return remap$(v, {
|
|
14
14
|
"org_id": "orgId",
|
|
15
|
-
"
|
|
15
|
+
"AddAccessMutationRequest": "addAccessMutationRequest",
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
18
|
/** @internal */
|
|
19
19
|
export const AddModelCatalogOrgAccessRequest$outboundSchema = z.object({
|
|
20
20
|
orgId: z.string(),
|
|
21
|
-
|
|
21
|
+
addAccessMutationRequest: components.AddAccessMutationRequest$outboundSchema,
|
|
22
22
|
}).transform((v) => {
|
|
23
23
|
return remap$(v, {
|
|
24
24
|
orgId: "org_id",
|
|
25
|
-
|
|
25
|
+
addAccessMutationRequest: "AddAccessMutationRequest",
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
export function addModelCatalogOrgAccessRequestToJSON(addModelCatalogOrgAccessRequest) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addmodelcatalogorgaccess.js","sourceRoot":"","sources":["../../../../src/models/operations/addmodelcatalogorgaccess.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAQrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,
|
|
1
|
+
{"version":3,"file":"addmodelcatalogorgaccess.js","sourceRoot":"","sources":["../../../../src/models/operations/addmodelcatalogorgaccess.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAQrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,wBAAwB,EAAE,UAAU,CAAC,sCAAsC;CAC5E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,OAAO;QACjB,0BAA0B,EAAE,0BAA0B;KACvD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,wBAAwB,EAAE,UAAU,CAAC,uCAAuC;CAC7E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,KAAK,EAAE,QAAQ;QACf,wBAAwB,EAAE,0BAA0B;KACrD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,8CAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,uCAAuC,CACrD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -18,7 +18,7 @@ export type LlmModelsAddCatalogOrgAccessMutationError = SDKError | ResponseValid
|
|
|
18
18
|
* Add cluster model access for an organization
|
|
19
19
|
*
|
|
20
20
|
* @remarks
|
|
21
|
-
* Idempotently adds availability without
|
|
21
|
+
* Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.
|
|
22
22
|
*/
|
|
23
23
|
export declare function useLlmModelsAddCatalogOrgAccessMutation(options?: MutationHookOptions<LlmModelsAddCatalogOrgAccessMutationData, LlmModelsAddCatalogOrgAccessMutationError, LlmModelsAddCatalogOrgAccessMutationVariables>): UseMutationResult<LlmModelsAddCatalogOrgAccessMutationData, LlmModelsAddCatalogOrgAccessMutationError, LlmModelsAddCatalogOrgAccessMutationVariables>;
|
|
24
24
|
export declare function mutationKeyLlmModelsAddCatalogOrgAccess(): MutationKey;
|
|
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Add cluster model access for an organization
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Idempotently adds availability without
|
|
13
|
+
* Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.
|
|
14
14
|
*/
|
|
15
15
|
export function useLlmModelsAddCatalogOrgAccessMutation(options) {
|
|
16
16
|
const client = useSDKContext();
|
package/dist/esm/sdk/models.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare class Models extends ClientSDK {
|
|
|
62
62
|
* Add cluster model access for an organization
|
|
63
63
|
*
|
|
64
64
|
* @remarks
|
|
65
|
-
* Idempotently adds availability without
|
|
65
|
+
* Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.
|
|
66
66
|
*/
|
|
67
67
|
addCatalogOrgAccess(request: operations.AddModelCatalogOrgAccessRequest, options?: RequestOptions): Promise<components.AccessMutationResponse>;
|
|
68
68
|
/**
|
package/dist/esm/sdk/models.js
CHANGED
|
@@ -106,7 +106,7 @@ export class Models extends ClientSDK {
|
|
|
106
106
|
* Add cluster model access for an organization
|
|
107
107
|
*
|
|
108
108
|
* @remarks
|
|
109
|
-
* Idempotently adds availability without
|
|
109
|
+
* Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.
|
|
110
110
|
*/
|
|
111
111
|
async addCatalogOrgAccess(request, options) {
|
|
112
112
|
return unwrapAsync(llmModelsAddCatalogOrgAccess(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Add cluster model access for an organization
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Idempotently adds availability without
|
|
33
|
+
* Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.
|
|
34
34
|
*
|
|
35
35
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
36
36
|
*/
|
|
@@ -88,7 +88,7 @@ async function $do(
|
|
|
88
88
|
return [parsed, { status: "invalid" }];
|
|
89
89
|
}
|
|
90
90
|
const payload = parsed.value;
|
|
91
|
-
const body = encodeJSON("body", payload.
|
|
91
|
+
const body = encodeJSON("body", payload.AddAccessMutationRequest, {
|
|
92
92
|
explode: true,
|
|
93
93
|
});
|
|
94
94
|
|
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.36",
|
|
69
69
|
genVersion: "2.937.18",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.36 2.937.18 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const tool$llmModelsAddCatalogOrgAccess: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "llm-models-add-catalog-org-access",
|
|
15
15
|
description: `Add cluster model access for an organization
|
|
16
16
|
|
|
17
|
-
Idempotently adds availability without
|
|
17
|
+
Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await llmModelsAddCatalogOrgAccess(
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type AddAccessMutationRequest = {
|
|
12
|
+
modelIds: Array<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Explicitly activate the requested cluster models in the target organization. Defaults to false.
|
|
15
|
+
*/
|
|
16
|
+
activate?: boolean | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const AddAccessMutationRequest$inboundSchema: z.ZodType<
|
|
21
|
+
AddAccessMutationRequest,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
model_ids: z.array(z.string()),
|
|
26
|
+
activate: z.boolean().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"model_ids": "modelIds",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type AddAccessMutationRequest$Outbound = {
|
|
34
|
+
model_ids: Array<string>;
|
|
35
|
+
activate?: boolean | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const AddAccessMutationRequest$outboundSchema: z.ZodType<
|
|
40
|
+
AddAccessMutationRequest$Outbound,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
AddAccessMutationRequest
|
|
43
|
+
> = z.object({
|
|
44
|
+
modelIds: z.array(z.string()),
|
|
45
|
+
activate: z.boolean().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
modelIds: "model_ids",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function addAccessMutationRequestToJSON(
|
|
53
|
+
addAccessMutationRequest: AddAccessMutationRequest,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
AddAccessMutationRequest$outboundSchema.parse(addAccessMutationRequest),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export function addAccessMutationRequestFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<AddAccessMutationRequest, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => AddAccessMutationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'AddAccessMutationRequest' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -148,6 +148,7 @@ export type Capabilities = {
|
|
|
148
148
|
supportsStructuredOutputs?: boolean | undefined;
|
|
149
149
|
supportsTemperature?: boolean | undefined;
|
|
150
150
|
supportsTopP?: boolean | undefined;
|
|
151
|
+
supportsImageDetailOriginal?: boolean | undefined;
|
|
151
152
|
maxImageResolution?: MaxImageResolution | undefined;
|
|
152
153
|
minImageResolution?: MinImageResolution | undefined;
|
|
153
154
|
};
|
|
@@ -1119,6 +1120,7 @@ export const Capabilities$inboundSchema: z.ZodType<
|
|
|
1119
1120
|
supportsStructuredOutputs: z.boolean().optional(),
|
|
1120
1121
|
supportsTemperature: z.boolean().optional(),
|
|
1121
1122
|
supportsTopP: z.boolean().optional(),
|
|
1123
|
+
supportsImageDetailOriginal: z.boolean().optional(),
|
|
1122
1124
|
maxImageResolution: z.lazy(() => MaxImageResolution$inboundSchema).optional(),
|
|
1123
1125
|
minImageResolution: z.lazy(() => MinImageResolution$inboundSchema).optional(),
|
|
1124
1126
|
});
|
|
@@ -1131,6 +1133,7 @@ export type Capabilities$Outbound = {
|
|
|
1131
1133
|
supportsStructuredOutputs?: boolean | undefined;
|
|
1132
1134
|
supportsTemperature?: boolean | undefined;
|
|
1133
1135
|
supportsTopP?: boolean | undefined;
|
|
1136
|
+
supportsImageDetailOriginal?: boolean | undefined;
|
|
1134
1137
|
maxImageResolution?: MaxImageResolution$Outbound | undefined;
|
|
1135
1138
|
minImageResolution?: MinImageResolution$Outbound | undefined;
|
|
1136
1139
|
};
|
|
@@ -1148,6 +1151,7 @@ export const Capabilities$outboundSchema: z.ZodType<
|
|
|
1148
1151
|
supportsStructuredOutputs: z.boolean().optional(),
|
|
1149
1152
|
supportsTemperature: z.boolean().optional(),
|
|
1150
1153
|
supportsTopP: z.boolean().optional(),
|
|
1154
|
+
supportsImageDetailOriginal: z.boolean().optional(),
|
|
1151
1155
|
maxImageResolution: z.lazy(() => MaxImageResolution$outboundSchema)
|
|
1152
1156
|
.optional(),
|
|
1153
1157
|
minImageResolution: z.lazy(() => MinImageResolution$outboundSchema)
|
|
@@ -8,6 +8,7 @@ export * from "./accessmutationrequest.js";
|
|
|
8
8
|
export * from "./accessmutationresponse.js";
|
|
9
9
|
export * from "./acknowledgedsafetycheck.js";
|
|
10
10
|
export * from "./activateregistryentryrequest.js";
|
|
11
|
+
export * from "./addaccessmutationrequest.js";
|
|
11
12
|
export * from "./addcatalogmodelrequest.js";
|
|
12
13
|
export * from "./agent.js";
|
|
13
14
|
export * from "./agentcompactioncontextmanagement.js";
|
|
@@ -10,15 +10,16 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* The detail level for image processing. 'high' for detailed analysis (higher cost), 'low' for basic analysis (lower cost), 'auto' lets the model choose based on image size. Defaults to 'auto'.
|
|
13
|
+
* The detail level for image processing. 'high' for detailed analysis (higher cost), 'low' for basic analysis (lower cost), 'auto' lets the model choose based on image size, 'original' asks for the image at its native resolution (treated as 'high' by upstreams without that level). Defaults to 'auto'.
|
|
14
14
|
*/
|
|
15
15
|
export const Detail = {
|
|
16
16
|
High: "high",
|
|
17
17
|
Low: "low",
|
|
18
18
|
Auto: "auto",
|
|
19
|
+
Original: "original",
|
|
19
20
|
} as const;
|
|
20
21
|
/**
|
|
21
|
-
* The detail level for image processing. 'high' for detailed analysis (higher cost), 'low' for basic analysis (lower cost), 'auto' lets the model choose based on image size. Defaults to 'auto'.
|
|
22
|
+
* The detail level for image processing. 'high' for detailed analysis (higher cost), 'low' for basic analysis (lower cost), 'auto' lets the model choose based on image size, 'original' asks for the image at its native resolution (treated as 'high' by upstreams without that level). Defaults to 'auto'.
|
|
22
23
|
*/
|
|
23
24
|
export type Detail = ClosedEnum<typeof Detail>;
|
|
24
25
|
|
|
@@ -31,7 +32,7 @@ export type InputImage = {
|
|
|
31
32
|
*/
|
|
32
33
|
type: "input_image";
|
|
33
34
|
/**
|
|
34
|
-
* The detail level for image processing. 'high' for detailed analysis (higher cost), 'low' for basic analysis (lower cost), 'auto' lets the model choose based on image size. Defaults to 'auto'.
|
|
35
|
+
* The detail level for image processing. 'high' for detailed analysis (higher cost), 'low' for basic analysis (lower cost), 'auto' lets the model choose based on image size, 'original' asks for the image at its native resolution (treated as 'high' by upstreams without that level). Defaults to 'auto'.
|
|
35
36
|
*/
|
|
36
37
|
detail?: Detail | undefined;
|
|
37
38
|
/**
|
|
@@ -163,6 +163,7 @@ export type UpdateCatalogModelRequestCapabilities = {
|
|
|
163
163
|
supportsStructuredOutputs?: boolean | undefined;
|
|
164
164
|
supportsTemperature?: boolean | undefined;
|
|
165
165
|
supportsTopP?: boolean | undefined;
|
|
166
|
+
supportsImageDetailOriginal?: boolean | undefined;
|
|
166
167
|
maxImageResolution?: UpdateCatalogModelRequestMaxImageResolution | undefined;
|
|
167
168
|
minImageResolution?: UpdateCatalogModelRequestMinImageResolution | undefined;
|
|
168
169
|
};
|
|
@@ -1300,6 +1301,7 @@ export const UpdateCatalogModelRequestCapabilities$inboundSchema: z.ZodType<
|
|
|
1300
1301
|
supportsStructuredOutputs: z.boolean().optional(),
|
|
1301
1302
|
supportsTemperature: z.boolean().optional(),
|
|
1302
1303
|
supportsTopP: z.boolean().optional(),
|
|
1304
|
+
supportsImageDetailOriginal: z.boolean().optional(),
|
|
1303
1305
|
maxImageResolution: z.lazy(() =>
|
|
1304
1306
|
UpdateCatalogModelRequestMaxImageResolution$inboundSchema
|
|
1305
1307
|
).optional(),
|
|
@@ -1316,6 +1318,7 @@ export type UpdateCatalogModelRequestCapabilities$Outbound = {
|
|
|
1316
1318
|
supportsStructuredOutputs?: boolean | undefined;
|
|
1317
1319
|
supportsTemperature?: boolean | undefined;
|
|
1318
1320
|
supportsTopP?: boolean | undefined;
|
|
1321
|
+
supportsImageDetailOriginal?: boolean | undefined;
|
|
1319
1322
|
maxImageResolution?:
|
|
1320
1323
|
| UpdateCatalogModelRequestMaxImageResolution$Outbound
|
|
1321
1324
|
| undefined;
|
|
@@ -1337,6 +1340,7 @@ export const UpdateCatalogModelRequestCapabilities$outboundSchema: z.ZodType<
|
|
|
1337
1340
|
supportsStructuredOutputs: z.boolean().optional(),
|
|
1338
1341
|
supportsTemperature: z.boolean().optional(),
|
|
1339
1342
|
supportsTopP: z.boolean().optional(),
|
|
1343
|
+
supportsImageDetailOriginal: z.boolean().optional(),
|
|
1340
1344
|
maxImageResolution: z.lazy(() =>
|
|
1341
1345
|
UpdateCatalogModelRequestMaxImageResolution$outboundSchema
|
|
1342
1346
|
).optional(),
|
|
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
|
|
12
12
|
export type AddModelCatalogOrgAccessRequest = {
|
|
13
13
|
orgId: string;
|
|
14
|
-
|
|
14
|
+
addAccessMutationRequest: components.AddAccessMutationRequest;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
/** @internal */
|
|
@@ -21,17 +21,17 @@ export const AddModelCatalogOrgAccessRequest$inboundSchema: z.ZodType<
|
|
|
21
21
|
unknown
|
|
22
22
|
> = z.object({
|
|
23
23
|
org_id: z.string(),
|
|
24
|
-
|
|
24
|
+
AddAccessMutationRequest: components.AddAccessMutationRequest$inboundSchema,
|
|
25
25
|
}).transform((v) => {
|
|
26
26
|
return remap$(v, {
|
|
27
27
|
"org_id": "orgId",
|
|
28
|
-
"
|
|
28
|
+
"AddAccessMutationRequest": "addAccessMutationRequest",
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
/** @internal */
|
|
32
32
|
export type AddModelCatalogOrgAccessRequest$Outbound = {
|
|
33
33
|
org_id: string;
|
|
34
|
-
|
|
34
|
+
AddAccessMutationRequest: components.AddAccessMutationRequest$Outbound;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
@@ -41,11 +41,11 @@ export const AddModelCatalogOrgAccessRequest$outboundSchema: z.ZodType<
|
|
|
41
41
|
AddModelCatalogOrgAccessRequest
|
|
42
42
|
> = z.object({
|
|
43
43
|
orgId: z.string(),
|
|
44
|
-
|
|
44
|
+
addAccessMutationRequest: components.AddAccessMutationRequest$outboundSchema,
|
|
45
45
|
}).transform((v) => {
|
|
46
46
|
return remap$(v, {
|
|
47
47
|
orgId: "org_id",
|
|
48
|
-
|
|
48
|
+
addAccessMutationRequest: "AddAccessMutationRequest",
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -49,7 +49,7 @@ export type LlmModelsAddCatalogOrgAccessMutationError =
|
|
|
49
49
|
* Add cluster model access for an organization
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
* Idempotently adds availability without
|
|
52
|
+
* Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.
|
|
53
53
|
*/
|
|
54
54
|
export function useLlmModelsAddCatalogOrgAccessMutation(
|
|
55
55
|
options?: MutationHookOptions<
|
package/src/sdk/models.ts
CHANGED
|
@@ -172,7 +172,7 @@ export class Models extends ClientSDK {
|
|
|
172
172
|
* Add cluster model access for an organization
|
|
173
173
|
*
|
|
174
174
|
* @remarks
|
|
175
|
-
* Idempotently adds availability without
|
|
175
|
+
* Idempotently adds availability without revoking any model names. Set activate to true to also activate every requested model from the cluster source in the target organization. Grants and activations are atomic per request; a name active from another source returns 409 without changing access or activation. Existing activation audit details are preserved on retries.
|
|
176
176
|
*/
|
|
177
177
|
async addCatalogOrgAccess(
|
|
178
178
|
request: operations.AddModelCatalogOrgAccessRequest,
|