@meetkai/mka1 0.54.16 → 0.54.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/bin/mcp-server.js +182 -18
- package/bin/mcp-server.js.map +16 -13
- package/dist/commonjs/funcs/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/commonjs/funcs/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- 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/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmModelsPutOrgAutoModel.js.map +1 -1
- package/dist/commonjs/models/components/balancedorgautomodel.d.ts +2 -2
- package/dist/commonjs/models/components/balancedorgautomodel.d.ts.map +1 -1
- package/dist/commonjs/models/components/balancedorgautomodel.js +2 -2
- package/dist/commonjs/models/components/balancedorgautomodel.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/orgautomodel.d.ts +5 -2
- package/dist/commonjs/models/components/orgautomodel.d.ts.map +1 -1
- package/dist/commonjs/models/components/orgautomodel.js +9 -0
- package/dist/commonjs/models/components/orgautomodel.js.map +1 -1
- package/dist/commonjs/models/components/priceorgautomodel.d.ts +32 -0
- package/dist/commonjs/models/components/priceorgautomodel.d.ts.map +1 -0
- package/dist/commonjs/models/components/priceorgautomodel.js +92 -0
- package/dist/commonjs/models/components/priceorgautomodel.js.map +1 -0
- package/dist/commonjs/models/components/putorgautomodelrequest.d.ts +14 -2
- package/dist/commonjs/models/components/putorgautomodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/putorgautomodelrequest.js +14 -3
- package/dist/commonjs/models/components/putorgautomodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/qualityorgautomodel.d.ts +32 -0
- package/dist/commonjs/models/components/qualityorgautomodel.d.ts.map +1 -0
- package/dist/commonjs/models/components/qualityorgautomodel.js +92 -0
- package/dist/commonjs/models/components/qualityorgautomodel.js.map +1 -0
- package/dist/commonjs/models/components/speedorgautomodel.d.ts +32 -0
- package/dist/commonjs/models/components/speedorgautomodel.d.ts.map +1 -0
- package/dist/commonjs/models/components/speedorgautomodel.js +92 -0
- package/dist/commonjs/models/components/speedorgautomodel.js.map +1 -0
- package/dist/commonjs/models/operations/putorgautomodel.d.ts +2 -2
- package/dist/commonjs/models/operations/putorgautomodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/putorgautomodel.js +6 -0
- package/dist/commonjs/models/operations/putorgautomodel.js.map +1 -1
- package/dist/commonjs/react-query/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/commonjs/react-query/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.js +1 -1
- package/dist/esm/funcs/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/esm/funcs/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- 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/llmModelsPutOrgAutoModel.js +1 -1
- package/dist/esm/mcp-server/tools/llmModelsPutOrgAutoModel.js.map +1 -1
- package/dist/esm/models/components/balancedorgautomodel.d.ts +2 -2
- package/dist/esm/models/components/balancedorgautomodel.d.ts.map +1 -1
- package/dist/esm/models/components/balancedorgautomodel.js +2 -2
- package/dist/esm/models/components/balancedorgautomodel.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/orgautomodel.d.ts +5 -2
- package/dist/esm/models/components/orgautomodel.d.ts.map +1 -1
- package/dist/esm/models/components/orgautomodel.js +9 -0
- package/dist/esm/models/components/orgautomodel.js.map +1 -1
- package/dist/esm/models/components/priceorgautomodel.d.ts +32 -0
- package/dist/esm/models/components/priceorgautomodel.d.ts.map +1 -0
- package/dist/esm/models/components/priceorgautomodel.js +54 -0
- package/dist/esm/models/components/priceorgautomodel.js.map +1 -0
- package/dist/esm/models/components/putorgautomodelrequest.d.ts +14 -2
- package/dist/esm/models/components/putorgautomodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/putorgautomodelrequest.js +13 -2
- package/dist/esm/models/components/putorgautomodelrequest.js.map +1 -1
- package/dist/esm/models/components/qualityorgautomodel.d.ts +32 -0
- package/dist/esm/models/components/qualityorgautomodel.d.ts.map +1 -0
- package/dist/esm/models/components/qualityorgautomodel.js +54 -0
- package/dist/esm/models/components/qualityorgautomodel.js.map +1 -0
- package/dist/esm/models/components/speedorgautomodel.d.ts +32 -0
- package/dist/esm/models/components/speedorgautomodel.d.ts.map +1 -0
- package/dist/esm/models/components/speedorgautomodel.js +54 -0
- package/dist/esm/models/components/speedorgautomodel.js.map +1 -0
- package/dist/esm/models/operations/putorgautomodel.d.ts +2 -2
- package/dist/esm/models/operations/putorgautomodel.d.ts.map +1 -1
- package/dist/esm/models/operations/putorgautomodel.js +6 -0
- package/dist/esm/models/operations/putorgautomodel.js.map +1 -1
- package/dist/esm/react-query/llmModelsPutOrgAutoModel.d.ts +1 -1
- package/dist/esm/react-query/llmModelsPutOrgAutoModel.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/llmModelsPutOrgAutoModel.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/llmModelsPutOrgAutoModel.ts +1 -1
- package/src/models/components/balancedorgautomodel.ts +4 -4
- package/src/models/components/index.ts +3 -0
- package/src/models/components/orgautomodel.ts +31 -1
- package/src/models/components/priceorgautomodel.ts +103 -0
- package/src/models/components/putorgautomodelrequest.ts +20 -4
- package/src/models/components/qualityorgautomodel.ts +103 -0
- package/src/models/components/speedorgautomodel.ts +103 -0
- package/src/models/operations/putorgautomodel.ts +13 -1
- package/src/react-query/llmModelsPutOrgAutoModel.ts +1 -1
- package/src/sdk/models.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speedorgautomodel.js","sourceRoot":"","sources":["../../../../src/models/components/speedorgautomodel.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;AAGjD,OAAO,EAEL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAa3B,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,0BAA0B;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IACzE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;IAC7B,8BAA8B,EAAE,CAAC,CA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AAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,yBAAyB,CACvC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,7 @@ export type PutOrgAutoModelRequest = {
|
|
|
10
10
|
/**
|
|
11
11
|
* OK
|
|
12
12
|
*/
|
|
13
|
-
export type PutOrgAutoModelResponseBody = components.DirectOrgAutoModel | components.BalancedOrgAutoModel | discriminatedUnionTypes.Unknown<"mode">;
|
|
13
|
+
export type PutOrgAutoModelResponseBody = components.DirectOrgAutoModel | components.BalancedOrgAutoModel | components.PriceOrgAutoModel | components.QualityOrgAutoModel | components.SpeedOrgAutoModel | discriminatedUnionTypes.Unknown<"mode">;
|
|
14
14
|
/** @internal */
|
|
15
15
|
export declare const PutOrgAutoModelRequest$inboundSchema: z.ZodType<PutOrgAutoModelRequest, z.ZodTypeDef, unknown>;
|
|
16
16
|
/** @internal */
|
|
@@ -25,7 +25,7 @@ export declare function putOrgAutoModelRequestFromJSON(jsonString: string): Safe
|
|
|
25
25
|
/** @internal */
|
|
26
26
|
export declare const PutOrgAutoModelResponseBody$inboundSchema: z.ZodType<PutOrgAutoModelResponseBody, z.ZodTypeDef, unknown>;
|
|
27
27
|
/** @internal */
|
|
28
|
-
export type PutOrgAutoModelResponseBody$Outbound = components.DirectOrgAutoModel$Outbound | components.BalancedOrgAutoModel$Outbound;
|
|
28
|
+
export type PutOrgAutoModelResponseBody$Outbound = components.DirectOrgAutoModel$Outbound | components.BalancedOrgAutoModel$Outbound | components.PriceOrgAutoModel$Outbound | components.QualityOrgAutoModel$Outbound | components.SpeedOrgAutoModel$Outbound;
|
|
29
29
|
/** @internal */
|
|
30
30
|
export declare const PutOrgAutoModelResponseBody$outboundSchema: z.ZodType<PutOrgAutoModelResponseBody$Outbound, z.ZodTypeDef, PutOrgAutoModelResponseBody>;
|
|
31
31
|
export declare function putOrgAutoModelResponseBodyToJSON(putOrgAutoModelResponseBody: PutOrgAutoModelResponseBody): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putorgautomodel.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/putorgautomodel.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAC;AAE7E,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,sBAAsB,GAAG;IACnC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC,sBAAsB,EAAE,UAAU,CAAC,sBAAsB,CAAC;CAC3D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GACnC,UAAU,CAAC,kBAAkB,GAC7B,UAAU,CAAC,oBAAoB,GAC/B,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB,EAAE,UAAU,CAAC,+BAA+B,CAAC;CACpE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,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B,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB,EAAE,UAAU,CAAC,+BAA+B,CAAC;CACpE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAQtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AACD,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,2BAA2B,GACtC,UAAU,CAAC,6BAA6B,GACxC,UAAU,CAAC,0BAA0B,GACrC,UAAU,CAAC,4BAA4B,GACvC,UAAU,CAAC,0BAA0B,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAO3B,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AACD,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -34,11 +34,17 @@ export function putOrgAutoModelRequestFromJSON(jsonString) {
|
|
|
34
34
|
export const PutOrgAutoModelResponseBody$inboundSchema = discriminatedUnion("mode", {
|
|
35
35
|
direct: components.DirectOrgAutoModel$inboundSchema,
|
|
36
36
|
balanced: components.BalancedOrgAutoModel$inboundSchema,
|
|
37
|
+
price: components.PriceOrgAutoModel$inboundSchema,
|
|
38
|
+
quality: components.QualityOrgAutoModel$inboundSchema,
|
|
39
|
+
speed: components.SpeedOrgAutoModel$inboundSchema,
|
|
37
40
|
});
|
|
38
41
|
/** @internal */
|
|
39
42
|
export const PutOrgAutoModelResponseBody$outboundSchema = z.union([
|
|
40
43
|
components.DirectOrgAutoModel$outboundSchema,
|
|
41
44
|
components.BalancedOrgAutoModel$outboundSchema,
|
|
45
|
+
components.PriceOrgAutoModel$outboundSchema,
|
|
46
|
+
components.QualityOrgAutoModel$outboundSchema,
|
|
47
|
+
components.SpeedOrgAutoModel$outboundSchema,
|
|
42
48
|
]);
|
|
43
49
|
export function putOrgAutoModelResponseBodyToJSON(putOrgAutoModelResponseBody) {
|
|
44
50
|
return JSON.stringify(PutOrgAutoModelResponseBody$outboundSchema.parse(putOrgAutoModelResponseBody));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"putorgautomodel.js","sourceRoot":"","sources":["../../../../src/models/operations/putorgautomodel.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,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"putorgautomodel.js","sourceRoot":"","sources":["../../../../src/models/operations/putorgautomodel.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,E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kC;IACvD,KAAK,EAAE,UAAU,CAAC,+BAA+B;IACjD,OAAO,EAAE,UAAU,CAAC,iCAAiC;IACrD,KAAK,EAAE,UAAU,CAAC,+BAA+B;CAClD,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,iCAAiC;IAC5C,UAAU,CAAC,mCAAmC;IAC9C,UAAU,CAAC,gCAAgC;IAC3C,UAAU,CAAC,kCAAkC;IAC7C,UAAU,CAAC,gCAAgC;CAC5C,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,0CAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,mCAAmC,CACjD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -17,7 +17,7 @@ export type LlmModelsPutOrgAutoModelMutationError = SDKError | ResponseValidatio
|
|
|
17
17
|
* Set this org's auto policy for an endpoint
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Stores either the existing direct `{ endpoint → modelId }` alias or a
|
|
20
|
+
* Stores either the existing direct `{ endpoint → modelId }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
|
|
21
21
|
*/
|
|
22
22
|
export declare function useLlmModelsPutOrgAutoModelMutation(options?: MutationHookOptions<LlmModelsPutOrgAutoModelMutationData, LlmModelsPutOrgAutoModelMutationError, LlmModelsPutOrgAutoModelMutationVariables>): UseMutationResult<LlmModelsPutOrgAutoModelMutationData, LlmModelsPutOrgAutoModelMutationError, LlmModelsPutOrgAutoModelMutationVariables>;
|
|
23
23
|
export declare function mutationKeyLlmModelsPutOrgAutoModel(): MutationKey;
|
|
@@ -10,7 +10,7 @@ import { useSDKContext } from "./_context.js";
|
|
|
10
10
|
* Set this org's auto policy for an endpoint
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Stores either the existing direct `{ endpoint → modelId }` alias or a
|
|
13
|
+
* Stores either the existing direct `{ endpoint → modelId }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
|
|
14
14
|
*/
|
|
15
15
|
export function useLlmModelsPutOrgAutoModelMutation(options) {
|
|
16
16
|
const client = useSDKContext();
|
package/dist/esm/sdk/models.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export declare class Models extends ClientSDK {
|
|
|
111
111
|
* Set this org's auto policy for an endpoint
|
|
112
112
|
*
|
|
113
113
|
* @remarks
|
|
114
|
-
* Stores either the existing direct `{ endpoint → modelId }` alias or a
|
|
114
|
+
* Stores either the existing direct `{ endpoint → modelId }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
|
|
115
115
|
*/
|
|
116
116
|
putOrgAutoModel(request: operations.PutOrgAutoModelRequest, options?: RequestOptions): Promise<operations.PutOrgAutoModelResponseBody>;
|
|
117
117
|
/**
|
package/dist/esm/sdk/models.js
CHANGED
|
@@ -169,7 +169,7 @@ export class Models extends ClientSDK {
|
|
|
169
169
|
* Set this org's auto policy for an endpoint
|
|
170
170
|
*
|
|
171
171
|
* @remarks
|
|
172
|
-
* Stores either the existing direct `{ endpoint → modelId }` alias or a
|
|
172
|
+
* Stores either the existing direct `{ endpoint → modelId }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
|
|
173
173
|
*/
|
|
174
174
|
async putOrgAutoModel(request, options) {
|
|
175
175
|
return unwrapAsync(llmModelsPutOrgAutoModel(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Set this org's auto policy for an endpoint
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Stores either the existing direct `{ endpoint → modelId }` alias or a
|
|
32
|
+
* Stores either the existing direct `{ endpoint → modelId }` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.
|
|
33
33
|
*
|
|
34
34
|
* If set, this operation will use {@link Security.bearerAuth} from the global security.
|
|
35
35
|
*/
|
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.
|
|
69
|
-
genVersion: "2.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
68
|
+
sdkVersion: "0.54.17",
|
|
69
|
+
genVersion: "2.935.1",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.17 2.935.1 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const tool$llmModelsPutOrgAutoModel: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "llm-models-put-org-auto-model",
|
|
15
15
|
description: `Set this org's auto policy for an endpoint
|
|
16
16
|
|
|
17
|
-
Stores either the existing direct \`{ endpoint → modelId }\` alias or a
|
|
17
|
+
Stores either the existing direct \`{ endpoint → modelId }\` alias or a judge policy with candidate models. Judge routing is supported for responses, completions, transcriptions, and TTS. All configured models must be active when written; revoked candidates are filtered at request time, while an unavailable judge is an explicit error.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await llmModelsPutOrgAutoModel(
|
|
@@ -17,11 +17,11 @@ export type BalancedOrgAutoModel = {
|
|
|
17
17
|
endpoint: AutoEndpoint;
|
|
18
18
|
setBy: string;
|
|
19
19
|
setAt: Date;
|
|
20
|
-
mode: "balanced";
|
|
21
20
|
judgeModelId: string;
|
|
22
21
|
candidateModelIds: Array<string>;
|
|
23
22
|
judgeResolvable: boolean;
|
|
24
23
|
resolvableCandidateModelIds: Array<string>;
|
|
24
|
+
mode: "balanced";
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/** @internal */
|
|
@@ -33,11 +33,11 @@ export const BalancedOrgAutoModel$inboundSchema: z.ZodType<
|
|
|
33
33
|
endpoint: AutoEndpoint$inboundSchema,
|
|
34
34
|
set_by: z.string(),
|
|
35
35
|
set_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
36
|
-
mode: z.literal("balanced"),
|
|
37
36
|
judge_model_id: z.string(),
|
|
38
37
|
candidate_model_ids: z.array(z.string()),
|
|
39
38
|
judge_resolvable: z.boolean(),
|
|
40
39
|
resolvable_candidate_model_ids: z.array(z.string()),
|
|
40
|
+
mode: z.literal("balanced"),
|
|
41
41
|
}).transform((v) => {
|
|
42
42
|
return remap$(v, {
|
|
43
43
|
"set_by": "setBy",
|
|
@@ -53,11 +53,11 @@ export type BalancedOrgAutoModel$Outbound = {
|
|
|
53
53
|
endpoint: string;
|
|
54
54
|
set_by: string;
|
|
55
55
|
set_at: string;
|
|
56
|
-
mode: "balanced";
|
|
57
56
|
judge_model_id: string;
|
|
58
57
|
candidate_model_ids: Array<string>;
|
|
59
58
|
judge_resolvable: boolean;
|
|
60
59
|
resolvable_candidate_model_ids: Array<string>;
|
|
60
|
+
mode: "balanced";
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
/** @internal */
|
|
@@ -69,11 +69,11 @@ export const BalancedOrgAutoModel$outboundSchema: z.ZodType<
|
|
|
69
69
|
endpoint: AutoEndpoint$outboundSchema,
|
|
70
70
|
setBy: z.string(),
|
|
71
71
|
setAt: z.date().transform(v => v.toISOString()),
|
|
72
|
-
mode: z.literal("balanced"),
|
|
73
72
|
judgeModelId: z.string(),
|
|
74
73
|
candidateModelIds: z.array(z.string()),
|
|
75
74
|
judgeResolvable: z.boolean(),
|
|
76
75
|
resolvableCandidateModelIds: z.array(z.string()),
|
|
76
|
+
mode: z.literal("balanced"),
|
|
77
77
|
}).transform((v) => {
|
|
78
78
|
return remap$(v, {
|
|
79
79
|
setBy: "set_by",
|
|
@@ -411,6 +411,7 @@ export * from "./pendingsafetycheck.js";
|
|
|
411
411
|
export * from "./preconfiguredskill.js";
|
|
412
412
|
export * from "./preconfiguredskilllist.js";
|
|
413
413
|
export * from "./preconfiguredskillreference.js";
|
|
414
|
+
export * from "./priceorgautomodel.js";
|
|
414
415
|
export * from "./promptinjectionconfig.js";
|
|
415
416
|
export * from "./promptinjectionguardrail.js";
|
|
416
417
|
export * from "./prompttemplate.js";
|
|
@@ -418,6 +419,7 @@ export * from "./putclustercurrencybody.js";
|
|
|
418
419
|
export * from "./putmodelpricebody.js";
|
|
419
420
|
export * from "./putorgautomodelrequest.js";
|
|
420
421
|
export * from "./putsessionrepositoryrequest.js";
|
|
422
|
+
export * from "./qualityorgautomodel.js";
|
|
421
423
|
export * from "./rankingoptions.js";
|
|
422
424
|
export * from "./reasoning.js";
|
|
423
425
|
export * from "./reasoningconfiguration.js";
|
|
@@ -566,6 +568,7 @@ export * from "./speakersegment.js";
|
|
|
566
568
|
export * from "./speechhistorydeletionstatus.js";
|
|
567
569
|
export * from "./speechtotexthistorylist.js";
|
|
568
570
|
export * from "./speechtotexthistoryobject.js";
|
|
571
|
+
export * from "./speedorgautomodel.js";
|
|
569
572
|
export * from "./startexportfeedbackresponse.js";
|
|
570
573
|
export * from "./staticchunkingstrategy.js";
|
|
571
574
|
export * from "./status.js";
|
|
@@ -20,10 +20,31 @@ import {
|
|
|
20
20
|
DirectOrgAutoModel$Outbound,
|
|
21
21
|
DirectOrgAutoModel$outboundSchema,
|
|
22
22
|
} from "./directorgautomodel.js";
|
|
23
|
+
import {
|
|
24
|
+
PriceOrgAutoModel,
|
|
25
|
+
PriceOrgAutoModel$inboundSchema,
|
|
26
|
+
PriceOrgAutoModel$Outbound,
|
|
27
|
+
PriceOrgAutoModel$outboundSchema,
|
|
28
|
+
} from "./priceorgautomodel.js";
|
|
29
|
+
import {
|
|
30
|
+
QualityOrgAutoModel,
|
|
31
|
+
QualityOrgAutoModel$inboundSchema,
|
|
32
|
+
QualityOrgAutoModel$Outbound,
|
|
33
|
+
QualityOrgAutoModel$outboundSchema,
|
|
34
|
+
} from "./qualityorgautomodel.js";
|
|
35
|
+
import {
|
|
36
|
+
SpeedOrgAutoModel,
|
|
37
|
+
SpeedOrgAutoModel$inboundSchema,
|
|
38
|
+
SpeedOrgAutoModel$Outbound,
|
|
39
|
+
SpeedOrgAutoModel$outboundSchema,
|
|
40
|
+
} from "./speedorgautomodel.js";
|
|
23
41
|
|
|
24
42
|
export type OrgAutoModel =
|
|
25
43
|
| DirectOrgAutoModel
|
|
26
44
|
| BalancedOrgAutoModel
|
|
45
|
+
| PriceOrgAutoModel
|
|
46
|
+
| QualityOrgAutoModel
|
|
47
|
+
| SpeedOrgAutoModel
|
|
27
48
|
| discriminatedUnionTypes.Unknown<"mode">;
|
|
28
49
|
|
|
29
50
|
/** @internal */
|
|
@@ -34,11 +55,17 @@ export const OrgAutoModel$inboundSchema: z.ZodType<
|
|
|
34
55
|
> = discriminatedUnion("mode", {
|
|
35
56
|
direct: DirectOrgAutoModel$inboundSchema,
|
|
36
57
|
balanced: BalancedOrgAutoModel$inboundSchema,
|
|
58
|
+
price: PriceOrgAutoModel$inboundSchema,
|
|
59
|
+
quality: QualityOrgAutoModel$inboundSchema,
|
|
60
|
+
speed: SpeedOrgAutoModel$inboundSchema,
|
|
37
61
|
});
|
|
38
62
|
/** @internal */
|
|
39
63
|
export type OrgAutoModel$Outbound =
|
|
40
64
|
| DirectOrgAutoModel$Outbound
|
|
41
|
-
| BalancedOrgAutoModel$Outbound
|
|
65
|
+
| BalancedOrgAutoModel$Outbound
|
|
66
|
+
| PriceOrgAutoModel$Outbound
|
|
67
|
+
| QualityOrgAutoModel$Outbound
|
|
68
|
+
| SpeedOrgAutoModel$Outbound;
|
|
42
69
|
|
|
43
70
|
/** @internal */
|
|
44
71
|
export const OrgAutoModel$outboundSchema: z.ZodType<
|
|
@@ -48,6 +75,9 @@ export const OrgAutoModel$outboundSchema: z.ZodType<
|
|
|
48
75
|
> = z.union([
|
|
49
76
|
DirectOrgAutoModel$outboundSchema,
|
|
50
77
|
BalancedOrgAutoModel$outboundSchema,
|
|
78
|
+
PriceOrgAutoModel$outboundSchema,
|
|
79
|
+
QualityOrgAutoModel$outboundSchema,
|
|
80
|
+
SpeedOrgAutoModel$outboundSchema,
|
|
51
81
|
]);
|
|
52
82
|
|
|
53
83
|
export function orgAutoModelToJSON(orgAutoModel: OrgAutoModel): string {
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
import {
|
|
11
|
+
AutoEndpoint,
|
|
12
|
+
AutoEndpoint$inboundSchema,
|
|
13
|
+
AutoEndpoint$outboundSchema,
|
|
14
|
+
} from "./autoendpoint.js";
|
|
15
|
+
|
|
16
|
+
export type PriceOrgAutoModel = {
|
|
17
|
+
endpoint: AutoEndpoint;
|
|
18
|
+
setBy: string;
|
|
19
|
+
setAt: Date;
|
|
20
|
+
judgeModelId: string;
|
|
21
|
+
candidateModelIds: Array<string>;
|
|
22
|
+
judgeResolvable: boolean;
|
|
23
|
+
resolvableCandidateModelIds: Array<string>;
|
|
24
|
+
mode: "price";
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const PriceOrgAutoModel$inboundSchema: z.ZodType<
|
|
29
|
+
PriceOrgAutoModel,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
endpoint: AutoEndpoint$inboundSchema,
|
|
34
|
+
set_by: z.string(),
|
|
35
|
+
set_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
36
|
+
judge_model_id: z.string(),
|
|
37
|
+
candidate_model_ids: z.array(z.string()),
|
|
38
|
+
judge_resolvable: z.boolean(),
|
|
39
|
+
resolvable_candidate_model_ids: z.array(z.string()),
|
|
40
|
+
mode: z.literal("price"),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"set_by": "setBy",
|
|
44
|
+
"set_at": "setAt",
|
|
45
|
+
"judge_model_id": "judgeModelId",
|
|
46
|
+
"candidate_model_ids": "candidateModelIds",
|
|
47
|
+
"judge_resolvable": "judgeResolvable",
|
|
48
|
+
"resolvable_candidate_model_ids": "resolvableCandidateModelIds",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type PriceOrgAutoModel$Outbound = {
|
|
53
|
+
endpoint: string;
|
|
54
|
+
set_by: string;
|
|
55
|
+
set_at: string;
|
|
56
|
+
judge_model_id: string;
|
|
57
|
+
candidate_model_ids: Array<string>;
|
|
58
|
+
judge_resolvable: boolean;
|
|
59
|
+
resolvable_candidate_model_ids: Array<string>;
|
|
60
|
+
mode: "price";
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const PriceOrgAutoModel$outboundSchema: z.ZodType<
|
|
65
|
+
PriceOrgAutoModel$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
PriceOrgAutoModel
|
|
68
|
+
> = z.object({
|
|
69
|
+
endpoint: AutoEndpoint$outboundSchema,
|
|
70
|
+
setBy: z.string(),
|
|
71
|
+
setAt: z.date().transform(v => v.toISOString()),
|
|
72
|
+
judgeModelId: z.string(),
|
|
73
|
+
candidateModelIds: z.array(z.string()),
|
|
74
|
+
judgeResolvable: z.boolean(),
|
|
75
|
+
resolvableCandidateModelIds: z.array(z.string()),
|
|
76
|
+
mode: z.literal("price"),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
setBy: "set_by",
|
|
80
|
+
setAt: "set_at",
|
|
81
|
+
judgeModelId: "judge_model_id",
|
|
82
|
+
candidateModelIds: "candidate_model_ids",
|
|
83
|
+
judgeResolvable: "judge_resolvable",
|
|
84
|
+
resolvableCandidateModelIds: "resolvable_candidate_model_ids",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function priceOrgAutoModelToJSON(
|
|
89
|
+
priceOrgAutoModel: PriceOrgAutoModel,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
PriceOrgAutoModel$outboundSchema.parse(priceOrgAutoModel),
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
export function priceOrgAutoModelFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<PriceOrgAutoModel, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => PriceOrgAutoModel$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'PriceOrgAutoModel' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -4,11 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
|
|
11
|
+
export const Policy = {
|
|
12
|
+
Balanced: "balanced",
|
|
13
|
+
Price: "price",
|
|
14
|
+
Quality: "quality",
|
|
15
|
+
Speed: "speed",
|
|
16
|
+
} as const;
|
|
17
|
+
export type Policy = ClosedEnum<typeof Policy>;
|
|
18
|
+
|
|
10
19
|
export type PutOrgAutoModelRequest2 = {
|
|
11
|
-
policy?:
|
|
20
|
+
policy?: Policy | undefined;
|
|
12
21
|
/**
|
|
13
22
|
* An active text LLM used only to select among eligible candidates.
|
|
14
23
|
*/
|
|
@@ -30,19 +39,26 @@ export type PutOrgAutoModelRequest =
|
|
|
30
39
|
| PutOrgAutoModelRequest2
|
|
31
40
|
| PutOrgAutoModelRequest1;
|
|
32
41
|
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const Policy$inboundSchema: z.ZodNativeEnum<typeof Policy> = z
|
|
44
|
+
.nativeEnum(Policy);
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const Policy$outboundSchema: z.ZodNativeEnum<typeof Policy> =
|
|
47
|
+
Policy$inboundSchema;
|
|
48
|
+
|
|
33
49
|
/** @internal */
|
|
34
50
|
export const PutOrgAutoModelRequest2$inboundSchema: z.ZodType<
|
|
35
51
|
PutOrgAutoModelRequest2,
|
|
36
52
|
z.ZodTypeDef,
|
|
37
53
|
unknown
|
|
38
54
|
> = z.object({
|
|
39
|
-
policy:
|
|
55
|
+
policy: Policy$inboundSchema.default("balanced"),
|
|
40
56
|
judgeModelId: z.string(),
|
|
41
57
|
candidateModelIds: z.array(z.string()),
|
|
42
58
|
});
|
|
43
59
|
/** @internal */
|
|
44
60
|
export type PutOrgAutoModelRequest2$Outbound = {
|
|
45
|
-
policy:
|
|
61
|
+
policy: string;
|
|
46
62
|
judgeModelId: string;
|
|
47
63
|
candidateModelIds: Array<string>;
|
|
48
64
|
};
|
|
@@ -53,7 +69,7 @@ export const PutOrgAutoModelRequest2$outboundSchema: z.ZodType<
|
|
|
53
69
|
z.ZodTypeDef,
|
|
54
70
|
PutOrgAutoModelRequest2
|
|
55
71
|
> = z.object({
|
|
56
|
-
policy:
|
|
72
|
+
policy: Policy$outboundSchema.default("balanced"),
|
|
57
73
|
judgeModelId: z.string(),
|
|
58
74
|
candidateModelIds: z.array(z.string()),
|
|
59
75
|
});
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
import {
|
|
11
|
+
AutoEndpoint,
|
|
12
|
+
AutoEndpoint$inboundSchema,
|
|
13
|
+
AutoEndpoint$outboundSchema,
|
|
14
|
+
} from "./autoendpoint.js";
|
|
15
|
+
|
|
16
|
+
export type QualityOrgAutoModel = {
|
|
17
|
+
endpoint: AutoEndpoint;
|
|
18
|
+
setBy: string;
|
|
19
|
+
setAt: Date;
|
|
20
|
+
judgeModelId: string;
|
|
21
|
+
candidateModelIds: Array<string>;
|
|
22
|
+
judgeResolvable: boolean;
|
|
23
|
+
resolvableCandidateModelIds: Array<string>;
|
|
24
|
+
mode: "quality";
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const QualityOrgAutoModel$inboundSchema: z.ZodType<
|
|
29
|
+
QualityOrgAutoModel,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
endpoint: AutoEndpoint$inboundSchema,
|
|
34
|
+
set_by: z.string(),
|
|
35
|
+
set_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
36
|
+
judge_model_id: z.string(),
|
|
37
|
+
candidate_model_ids: z.array(z.string()),
|
|
38
|
+
judge_resolvable: z.boolean(),
|
|
39
|
+
resolvable_candidate_model_ids: z.array(z.string()),
|
|
40
|
+
mode: z.literal("quality"),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
"set_by": "setBy",
|
|
44
|
+
"set_at": "setAt",
|
|
45
|
+
"judge_model_id": "judgeModelId",
|
|
46
|
+
"candidate_model_ids": "candidateModelIds",
|
|
47
|
+
"judge_resolvable": "judgeResolvable",
|
|
48
|
+
"resolvable_candidate_model_ids": "resolvableCandidateModelIds",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type QualityOrgAutoModel$Outbound = {
|
|
53
|
+
endpoint: string;
|
|
54
|
+
set_by: string;
|
|
55
|
+
set_at: string;
|
|
56
|
+
judge_model_id: string;
|
|
57
|
+
candidate_model_ids: Array<string>;
|
|
58
|
+
judge_resolvable: boolean;
|
|
59
|
+
resolvable_candidate_model_ids: Array<string>;
|
|
60
|
+
mode: "quality";
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const QualityOrgAutoModel$outboundSchema: z.ZodType<
|
|
65
|
+
QualityOrgAutoModel$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
QualityOrgAutoModel
|
|
68
|
+
> = z.object({
|
|
69
|
+
endpoint: AutoEndpoint$outboundSchema,
|
|
70
|
+
setBy: z.string(),
|
|
71
|
+
setAt: z.date().transform(v => v.toISOString()),
|
|
72
|
+
judgeModelId: z.string(),
|
|
73
|
+
candidateModelIds: z.array(z.string()),
|
|
74
|
+
judgeResolvable: z.boolean(),
|
|
75
|
+
resolvableCandidateModelIds: z.array(z.string()),
|
|
76
|
+
mode: z.literal("quality"),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
setBy: "set_by",
|
|
80
|
+
setAt: "set_at",
|
|
81
|
+
judgeModelId: "judge_model_id",
|
|
82
|
+
candidateModelIds: "candidate_model_ids",
|
|
83
|
+
judgeResolvable: "judge_resolvable",
|
|
84
|
+
resolvableCandidateModelIds: "resolvable_candidate_model_ids",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function qualityOrgAutoModelToJSON(
|
|
89
|
+
qualityOrgAutoModel: QualityOrgAutoModel,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
QualityOrgAutoModel$outboundSchema.parse(qualityOrgAutoModel),
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
export function qualityOrgAutoModelFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<QualityOrgAutoModel, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => QualityOrgAutoModel$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'QualityOrgAutoModel' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|