@meetkai/mka1 0.54.18 → 0.54.20
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 +121 -40
- package/bin/mcp-server.js.map +21 -21
- package/dist/commonjs/funcs/llmModelsAddCatalogOrgAccess.js +2 -2
- package/dist/commonjs/funcs/llmModelsAddCatalogOrgAccess.js.map +1 -1
- package/dist/commonjs/funcs/llmModelsClearOrgPrice.js +2 -2
- package/dist/commonjs/funcs/llmModelsClearOrgPrice.js.map +1 -1
- package/dist/commonjs/funcs/llmModelsListCatalogOrgAccess.js +2 -2
- package/dist/commonjs/funcs/llmModelsListCatalogOrgAccess.js.map +1 -1
- package/dist/commonjs/funcs/llmModelsListOrgPrices.js +2 -2
- package/dist/commonjs/funcs/llmModelsListOrgPrices.js.map +1 -1
- package/dist/commonjs/funcs/llmModelsReplaceCatalogOrgAccess.js +2 -2
- package/dist/commonjs/funcs/llmModelsReplaceCatalogOrgAccess.js.map +1 -1
- package/dist/commonjs/funcs/llmModelsSetOrgPrice.js +2 -2
- package/dist/commonjs/funcs/llmModelsSetOrgPrice.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/models/components/extractionresponse.d.ts +5 -5
- package/dist/commonjs/models/components/extractionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/extractionresponse.js +20 -5
- package/dist/commonjs/models/components/extractionresponse.js.map +1 -1
- package/dist/commonjs/models/components/schemacreateresponse.d.ts +4 -4
- package/dist/commonjs/models/components/schemacreateresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/schemacreateresponse.js +15 -4
- package/dist/commonjs/models/components/schemacreateresponse.js.map +1 -1
- package/dist/commonjs/models/components/schemagetresponse.d.ts +4 -4
- package/dist/commonjs/models/components/schemagetresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/schemagetresponse.js +15 -4
- package/dist/commonjs/models/components/schemagetresponse.js.map +1 -1
- package/dist/commonjs/models/components/schemaupdateresponse.d.ts +6 -6
- package/dist/commonjs/models/components/schemaupdateresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/schemaupdateresponse.js +15 -4
- package/dist/commonjs/models/components/schemaupdateresponse.js.map +1 -1
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.d.ts +1 -1
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.js +3 -1
- package/dist/commonjs/models/operations/addmodelcatalogorgaccess.js.map +1 -1
- package/dist/commonjs/models/operations/clearorgprice.d.ts +1 -1
- package/dist/commonjs/models/operations/clearorgprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/clearorgprice.js +10 -1
- package/dist/commonjs/models/operations/clearorgprice.js.map +1 -1
- package/dist/commonjs/models/operations/listmodelcatalogorgaccess.d.ts +1 -1
- package/dist/commonjs/models/operations/listmodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodelcatalogorgaccess.js +10 -1
- package/dist/commonjs/models/operations/listmodelcatalogorgaccess.js.map +1 -1
- package/dist/commonjs/models/operations/listorgprices.d.ts +1 -1
- package/dist/commonjs/models/operations/listorgprices.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorgprices.js +10 -1
- package/dist/commonjs/models/operations/listorgprices.js.map +1 -1
- package/dist/commonjs/models/operations/replacemodelcatalogorgaccess.d.ts +1 -1
- package/dist/commonjs/models/operations/replacemodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/commonjs/models/operations/replacemodelcatalogorgaccess.js +3 -1
- package/dist/commonjs/models/operations/replacemodelcatalogorgaccess.js.map +1 -1
- package/dist/commonjs/models/operations/setorgprice.d.ts +1 -1
- package/dist/commonjs/models/operations/setorgprice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/setorgprice.js +3 -1
- package/dist/commonjs/models/operations/setorgprice.js.map +1 -1
- package/dist/esm/funcs/llmModelsAddCatalogOrgAccess.js +2 -2
- package/dist/esm/funcs/llmModelsAddCatalogOrgAccess.js.map +1 -1
- package/dist/esm/funcs/llmModelsClearOrgPrice.js +2 -2
- package/dist/esm/funcs/llmModelsClearOrgPrice.js.map +1 -1
- package/dist/esm/funcs/llmModelsListCatalogOrgAccess.js +2 -2
- package/dist/esm/funcs/llmModelsListCatalogOrgAccess.js.map +1 -1
- package/dist/esm/funcs/llmModelsListOrgPrices.js +2 -2
- package/dist/esm/funcs/llmModelsListOrgPrices.js.map +1 -1
- package/dist/esm/funcs/llmModelsReplaceCatalogOrgAccess.js +2 -2
- package/dist/esm/funcs/llmModelsReplaceCatalogOrgAccess.js.map +1 -1
- package/dist/esm/funcs/llmModelsSetOrgPrice.js +2 -2
- package/dist/esm/funcs/llmModelsSetOrgPrice.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/models/components/extractionresponse.d.ts +5 -5
- package/dist/esm/models/components/extractionresponse.d.ts.map +1 -1
- package/dist/esm/models/components/extractionresponse.js +20 -5
- package/dist/esm/models/components/extractionresponse.js.map +1 -1
- package/dist/esm/models/components/schemacreateresponse.d.ts +4 -4
- package/dist/esm/models/components/schemacreateresponse.d.ts.map +1 -1
- package/dist/esm/models/components/schemacreateresponse.js +15 -4
- package/dist/esm/models/components/schemacreateresponse.js.map +1 -1
- package/dist/esm/models/components/schemagetresponse.d.ts +4 -4
- package/dist/esm/models/components/schemagetresponse.d.ts.map +1 -1
- package/dist/esm/models/components/schemagetresponse.js +15 -4
- package/dist/esm/models/components/schemagetresponse.js.map +1 -1
- package/dist/esm/models/components/schemaupdateresponse.d.ts +6 -6
- package/dist/esm/models/components/schemaupdateresponse.d.ts.map +1 -1
- package/dist/esm/models/components/schemaupdateresponse.js +15 -4
- package/dist/esm/models/components/schemaupdateresponse.js.map +1 -1
- package/dist/esm/models/operations/addmodelcatalogorgaccess.d.ts +1 -1
- package/dist/esm/models/operations/addmodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/esm/models/operations/addmodelcatalogorgaccess.js +3 -1
- package/dist/esm/models/operations/addmodelcatalogorgaccess.js.map +1 -1
- package/dist/esm/models/operations/clearorgprice.d.ts +1 -1
- package/dist/esm/models/operations/clearorgprice.d.ts.map +1 -1
- package/dist/esm/models/operations/clearorgprice.js +10 -1
- package/dist/esm/models/operations/clearorgprice.js.map +1 -1
- package/dist/esm/models/operations/listmodelcatalogorgaccess.d.ts +1 -1
- package/dist/esm/models/operations/listmodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodelcatalogorgaccess.js +10 -1
- package/dist/esm/models/operations/listmodelcatalogorgaccess.js.map +1 -1
- package/dist/esm/models/operations/listorgprices.d.ts +1 -1
- package/dist/esm/models/operations/listorgprices.d.ts.map +1 -1
- package/dist/esm/models/operations/listorgprices.js +10 -1
- package/dist/esm/models/operations/listorgprices.js.map +1 -1
- package/dist/esm/models/operations/replacemodelcatalogorgaccess.d.ts +1 -1
- package/dist/esm/models/operations/replacemodelcatalogorgaccess.d.ts.map +1 -1
- package/dist/esm/models/operations/replacemodelcatalogorgaccess.js +3 -1
- package/dist/esm/models/operations/replacemodelcatalogorgaccess.js.map +1 -1
- package/dist/esm/models/operations/setorgprice.d.ts +1 -1
- package/dist/esm/models/operations/setorgprice.d.ts.map +1 -1
- package/dist/esm/models/operations/setorgprice.js +3 -1
- package/dist/esm/models/operations/setorgprice.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/llmModelsAddCatalogOrgAccess.ts +2 -2
- package/src/funcs/llmModelsClearOrgPrice.ts +4 -2
- package/src/funcs/llmModelsListCatalogOrgAccess.ts +2 -2
- package/src/funcs/llmModelsListOrgPrices.ts +4 -2
- package/src/funcs/llmModelsReplaceCatalogOrgAccess.ts +2 -2
- package/src/funcs/llmModelsSetOrgPrice.ts +4 -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/models/components/extractionresponse.ts +27 -10
- package/src/models/components/schemacreateresponse.ts +19 -8
- package/src/models/components/schemagetresponse.ts +19 -8
- package/src/models/components/schemaupdateresponse.ts +21 -10
- package/src/models/operations/addmodelcatalogorgaccess.ts +4 -2
- package/src/models/operations/clearorgprice.ts +11 -2
- package/src/models/operations/listmodelcatalogorgaccess.ts +11 -2
- package/src/models/operations/listorgprices.ts +11 -2
- package/src/models/operations/replacemodelcatalogorgaccess.ts +4 -2
- package/src/models/operations/setorgprice.ts +4 -2
|
@@ -2,16 +2,25 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v3";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
5
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export const ListOrgPricesRequest$inboundSchema = z.object({
|
|
8
|
-
|
|
9
|
+
org_id: z.string(),
|
|
9
10
|
model: z.string().optional(),
|
|
11
|
+
}).transform((v) => {
|
|
12
|
+
return remap$(v, {
|
|
13
|
+
"org_id": "orgId",
|
|
14
|
+
});
|
|
10
15
|
});
|
|
11
16
|
/** @internal */
|
|
12
17
|
export const ListOrgPricesRequest$outboundSchema = z.object({
|
|
13
18
|
orgId: z.string(),
|
|
14
19
|
model: z.string().optional(),
|
|
20
|
+
}).transform((v) => {
|
|
21
|
+
return remap$(v, {
|
|
22
|
+
orgId: "org_id",
|
|
23
|
+
});
|
|
15
24
|
});
|
|
16
25
|
export function listOrgPricesRequestToJSON(listOrgPricesRequest) {
|
|
17
26
|
return JSON.stringify(ListOrgPricesRequest$outboundSchema.parse(listOrgPricesRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listorgprices.js","sourceRoot":"","sources":["../../../../src/models/operations/listorgprices.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AASjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"listorgprices.js","sourceRoot":"","sources":["../../../../src/models/operations/listorgprices.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;AASjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,OAAO;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,7 @@ export type ReplaceModelCatalogOrgAccessRequest = {
|
|
|
10
10
|
export declare const ReplaceModelCatalogOrgAccessRequest$inboundSchema: z.ZodType<ReplaceModelCatalogOrgAccessRequest, z.ZodTypeDef, unknown>;
|
|
11
11
|
/** @internal */
|
|
12
12
|
export type ReplaceModelCatalogOrgAccessRequest$Outbound = {
|
|
13
|
-
|
|
13
|
+
org_id: string;
|
|
14
14
|
AccessMutationRequest: components.AccessMutationRequest$Outbound;
|
|
15
15
|
};
|
|
16
16
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replacemodelcatalogorgaccess.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/replacemodelcatalogorgaccess.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,mCAAmC,GAAG;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"replacemodelcatalogorgaccess.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/replacemodelcatalogorgaccess.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,mCAAmC,GAAG;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4CAA4C,GAAG;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,UAAU,CAAC,8BAA8B,CAAC;CAClE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,mCAAmC,CASnC,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AACD,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -7,10 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const ReplaceModelCatalogOrgAccessRequest$inboundSchema = z.object({
|
|
10
|
-
|
|
10
|
+
org_id: z.string(),
|
|
11
11
|
AccessMutationRequest: components.AccessMutationRequest$inboundSchema,
|
|
12
12
|
}).transform((v) => {
|
|
13
13
|
return remap$(v, {
|
|
14
|
+
"org_id": "orgId",
|
|
14
15
|
"AccessMutationRequest": "accessMutationRequest",
|
|
15
16
|
});
|
|
16
17
|
});
|
|
@@ -20,6 +21,7 @@ export const ReplaceModelCatalogOrgAccessRequest$outboundSchema = z.object({
|
|
|
20
21
|
accessMutationRequest: components.AccessMutationRequest$outboundSchema,
|
|
21
22
|
}).transform((v) => {
|
|
22
23
|
return remap$(v, {
|
|
24
|
+
orgId: "org_id",
|
|
23
25
|
accessMutationRequest: "AccessMutationRequest",
|
|
24
26
|
});
|
|
25
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replacemodelcatalogorgaccess.js","sourceRoot":"","sources":["../../../../src/models/operations/replacemodelcatalogorgaccess.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,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"replacemodelcatalogorgaccess.js","sourceRoot":"","sources":["../../../../src/models/operations/replacemodelcatalogorgaccess.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,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,qBAAqB,EAAE,UAAU,CAAC,mCAAmC;CACtE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,OAAO;QACjB,uBAAuB,EAAE,uBAAuB;KACjD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,qBAAqB,EAAE,UAAU,CAAC,oCAAoC;CACvE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,KAAK,EAAE,QAAQ;QACf,qBAAqB,EAAE,uBAAuB;KAC/C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,yCAAyC,CACvD,mCAAwE;IAExE,OAAO,IAAI,CAAC,SAAS,CACnB,kDAAkD,CAAC,KAAK,CACtD,mCAAmC,CACpC,CACF,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,2CAA2C,CACzD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,iDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,CAAC;AACJ,CAAC"}
|
|
@@ -10,7 +10,7 @@ export type SetOrgPriceRequest = {
|
|
|
10
10
|
export declare const SetOrgPriceRequest$inboundSchema: z.ZodType<SetOrgPriceRequest, z.ZodTypeDef, unknown>;
|
|
11
11
|
/** @internal */
|
|
12
12
|
export type SetOrgPriceRequest$Outbound = {
|
|
13
|
-
|
|
13
|
+
org_id: string;
|
|
14
14
|
PutModelPriceBody: components.PutModelPriceBody$Outbound;
|
|
15
15
|
};
|
|
16
16
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setorgprice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/setorgprice.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,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"setorgprice.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/setorgprice.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,kBAAkB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,UAAU,CAAC,0BAA0B,CAAC;CAC1D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CASlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -7,10 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import * as components from "../components/index.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const SetOrgPriceRequest$inboundSchema = z.object({
|
|
10
|
-
|
|
10
|
+
org_id: z.string(),
|
|
11
11
|
PutModelPriceBody: components.PutModelPriceBody$inboundSchema,
|
|
12
12
|
}).transform((v) => {
|
|
13
13
|
return remap$(v, {
|
|
14
|
+
"org_id": "orgId",
|
|
14
15
|
"PutModelPriceBody": "putModelPriceBody",
|
|
15
16
|
});
|
|
16
17
|
});
|
|
@@ -20,6 +21,7 @@ export const SetOrgPriceRequest$outboundSchema = z.object({
|
|
|
20
21
|
putModelPriceBody: components.PutModelPriceBody$outboundSchema,
|
|
21
22
|
}).transform((v) => {
|
|
22
23
|
return remap$(v, {
|
|
24
|
+
orgId: "org_id",
|
|
23
25
|
putModelPriceBody: "PutModelPriceBody",
|
|
24
26
|
});
|
|
25
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setorgprice.js","sourceRoot":"","sources":["../../../../src/models/operations/setorgprice.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,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,
|
|
1
|
+
{"version":3,"file":"setorgprice.js","sourceRoot":"","sources":["../../../../src/models/operations/setorgprice.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,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,iBAAiB,EAAE,UAAU,CAAC,+BAA+B;CAC9D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,QAAQ,EAAE,OAAO;QACjB,mBAAmB,EAAE,mBAAmB;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,iBAAiB,EAAE,UAAU,CAAC,gCAAgC;CAC/D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,KAAK,EAAE,QAAQ;QACf,iBAAiB,EAAE,mBAAmB;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -93,12 +93,12 @@ async function $do(
|
|
|
93
93
|
});
|
|
94
94
|
|
|
95
95
|
const pathParams = {
|
|
96
|
-
|
|
96
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
97
97
|
explode: false,
|
|
98
98
|
charEncoding: "percent",
|
|
99
99
|
}),
|
|
100
100
|
};
|
|
101
|
-
const path = pathToFunc("/api/v1/llm/models/catalog/orgs/{
|
|
101
|
+
const path = pathToFunc("/api/v1/llm/models/catalog/orgs/{org_id}/access")(
|
|
102
102
|
pathParams,
|
|
103
103
|
);
|
|
104
104
|
|
|
@@ -90,12 +90,14 @@ async function $do(
|
|
|
90
90
|
const body = null;
|
|
91
91
|
|
|
92
92
|
const pathParams = {
|
|
93
|
-
|
|
93
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
94
94
|
explode: false,
|
|
95
95
|
charEncoding: "percent",
|
|
96
96
|
}),
|
|
97
97
|
};
|
|
98
|
-
const path = pathToFunc("/api/v1/llm/models/pricing/org/{
|
|
98
|
+
const path = pathToFunc("/api/v1/llm/models/pricing/org/{org_id}")(
|
|
99
|
+
pathParams,
|
|
100
|
+
);
|
|
99
101
|
|
|
100
102
|
const query = encodeFormQuery({
|
|
101
103
|
"model": payload.model,
|
|
@@ -91,12 +91,12 @@ async function $do(
|
|
|
91
91
|
const body = null;
|
|
92
92
|
|
|
93
93
|
const pathParams = {
|
|
94
|
-
|
|
94
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
95
95
|
explode: false,
|
|
96
96
|
charEncoding: "percent",
|
|
97
97
|
}),
|
|
98
98
|
};
|
|
99
|
-
const path = pathToFunc("/api/v1/llm/models/catalog/orgs/{
|
|
99
|
+
const path = pathToFunc("/api/v1/llm/models/catalog/orgs/{org_id}/access")(
|
|
100
100
|
pathParams,
|
|
101
101
|
);
|
|
102
102
|
|
|
@@ -90,12 +90,14 @@ async function $do(
|
|
|
90
90
|
const body = null;
|
|
91
91
|
|
|
92
92
|
const pathParams = {
|
|
93
|
-
|
|
93
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
94
94
|
explode: false,
|
|
95
95
|
charEncoding: "percent",
|
|
96
96
|
}),
|
|
97
97
|
};
|
|
98
|
-
const path = pathToFunc("/api/v1/llm/models/pricing/org/{
|
|
98
|
+
const path = pathToFunc("/api/v1/llm/models/pricing/org/{org_id}")(
|
|
99
|
+
pathParams,
|
|
100
|
+
);
|
|
99
101
|
|
|
100
102
|
const query = encodeFormQuery({
|
|
101
103
|
"model": payload.model,
|
|
@@ -95,12 +95,12 @@ async function $do(
|
|
|
95
95
|
});
|
|
96
96
|
|
|
97
97
|
const pathParams = {
|
|
98
|
-
|
|
98
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
99
99
|
explode: false,
|
|
100
100
|
charEncoding: "percent",
|
|
101
101
|
}),
|
|
102
102
|
};
|
|
103
|
-
const path = pathToFunc("/api/v1/llm/models/catalog/orgs/{
|
|
103
|
+
const path = pathToFunc("/api/v1/llm/models/catalog/orgs/{org_id}/access")(
|
|
104
104
|
pathParams,
|
|
105
105
|
);
|
|
106
106
|
|
|
@@ -90,12 +90,14 @@ async function $do(
|
|
|
90
90
|
const body = encodeJSON("body", payload.PutModelPriceBody, { explode: true });
|
|
91
91
|
|
|
92
92
|
const pathParams = {
|
|
93
|
-
|
|
93
|
+
org_id: encodeSimple("org_id", payload.org_id, {
|
|
94
94
|
explode: false,
|
|
95
95
|
charEncoding: "percent",
|
|
96
96
|
}),
|
|
97
97
|
};
|
|
98
|
-
const path = pathToFunc("/api/v1/llm/models/pricing/org/{
|
|
98
|
+
const path = pathToFunc("/api/v1/llm/models/pricing/org/{org_id}")(
|
|
99
|
+
pathParams,
|
|
100
|
+
);
|
|
99
101
|
|
|
100
102
|
const headers = new Headers(compactMap({
|
|
101
103
|
"Content-Type": "application/json",
|
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.20",
|
|
69
69
|
genVersion: "2.935.1",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.20 2.935.1 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -26,7 +27,7 @@ export type ExtractionResponseMetadata = {
|
|
|
26
27
|
/**
|
|
27
28
|
* ISO 8601 timestamp indicating when the extraction was performed
|
|
28
29
|
*/
|
|
29
|
-
extractedAt:
|
|
30
|
+
extractedAt: Date;
|
|
30
31
|
/**
|
|
31
32
|
* The ID of the extraction schema that was used (only present when using a saved schema)
|
|
32
33
|
*/
|
|
@@ -63,19 +64,28 @@ export const ExtractionResponseMetadata$inboundSchema: z.ZodType<
|
|
|
63
64
|
> = z.object({
|
|
64
65
|
model: z.string(),
|
|
65
66
|
filename: z.string(),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
file_size: z.number(),
|
|
68
|
+
extracted_at: z.string().datetime({ offset: true }).transform(v =>
|
|
69
|
+
new Date(v)
|
|
70
|
+
),
|
|
71
|
+
schema_id: z.string().optional(),
|
|
72
|
+
schema_name: z.string().optional(),
|
|
73
|
+
}).transform((v) => {
|
|
74
|
+
return remap$(v, {
|
|
75
|
+
"file_size": "fileSize",
|
|
76
|
+
"extracted_at": "extractedAt",
|
|
77
|
+
"schema_id": "schemaId",
|
|
78
|
+
"schema_name": "schemaName",
|
|
79
|
+
});
|
|
70
80
|
});
|
|
71
81
|
/** @internal */
|
|
72
82
|
export type ExtractionResponseMetadata$Outbound = {
|
|
73
83
|
model: string;
|
|
74
84
|
filename: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
85
|
+
file_size: number;
|
|
86
|
+
extracted_at: string;
|
|
87
|
+
schema_id?: string | undefined;
|
|
88
|
+
schema_name?: string | undefined;
|
|
79
89
|
};
|
|
80
90
|
|
|
81
91
|
/** @internal */
|
|
@@ -87,9 +97,16 @@ export const ExtractionResponseMetadata$outboundSchema: z.ZodType<
|
|
|
87
97
|
model: z.string(),
|
|
88
98
|
filename: z.string(),
|
|
89
99
|
fileSize: z.number(),
|
|
90
|
-
extractedAt: z.
|
|
100
|
+
extractedAt: z.date().transform(v => v.toISOString()),
|
|
91
101
|
schemaId: z.string().optional(),
|
|
92
102
|
schemaName: z.string().optional(),
|
|
103
|
+
}).transform((v) => {
|
|
104
|
+
return remap$(v, {
|
|
105
|
+
fileSize: "file_size",
|
|
106
|
+
extractedAt: "extracted_at",
|
|
107
|
+
schemaId: "schema_id",
|
|
108
|
+
schemaName: "schema_name",
|
|
109
|
+
});
|
|
93
110
|
});
|
|
94
111
|
|
|
95
112
|
export function extractionResponseMetadataToJSON(
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -34,11 +35,11 @@ export type SchemaCreateResponseData = {
|
|
|
34
35
|
/**
|
|
35
36
|
* ISO 8601 timestamp when the schema was created
|
|
36
37
|
*/
|
|
37
|
-
createdAt:
|
|
38
|
+
createdAt: Date;
|
|
38
39
|
/**
|
|
39
40
|
* ISO 8601 timestamp when the schema was last updated
|
|
40
41
|
*/
|
|
41
|
-
updatedAt:
|
|
42
|
+
updatedAt: Date;
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
/**
|
|
@@ -66,8 +67,13 @@ export const SchemaCreateResponseData$inboundSchema: z.ZodType<
|
|
|
66
67
|
description: z.string().optional(),
|
|
67
68
|
schema: z.record(z.any()),
|
|
68
69
|
metadata: z.record(z.any()).optional(),
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
71
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
"created_at": "createdAt",
|
|
75
|
+
"updated_at": "updatedAt",
|
|
76
|
+
});
|
|
71
77
|
});
|
|
72
78
|
/** @internal */
|
|
73
79
|
export type SchemaCreateResponseData$Outbound = {
|
|
@@ -76,8 +82,8 @@ export type SchemaCreateResponseData$Outbound = {
|
|
|
76
82
|
description?: string | undefined;
|
|
77
83
|
schema: { [k: string]: any };
|
|
78
84
|
metadata?: { [k: string]: any } | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
85
|
+
created_at: string;
|
|
86
|
+
updated_at: string;
|
|
81
87
|
};
|
|
82
88
|
|
|
83
89
|
/** @internal */
|
|
@@ -91,8 +97,13 @@ export const SchemaCreateResponseData$outboundSchema: z.ZodType<
|
|
|
91
97
|
description: z.string().optional(),
|
|
92
98
|
schema: z.record(z.any()),
|
|
93
99
|
metadata: z.record(z.any()).optional(),
|
|
94
|
-
createdAt: z.
|
|
95
|
-
updatedAt: z.
|
|
100
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
101
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
createdAt: "created_at",
|
|
105
|
+
updatedAt: "updated_at",
|
|
106
|
+
});
|
|
96
107
|
});
|
|
97
108
|
|
|
98
109
|
export function schemaCreateResponseDataToJSON(
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -34,11 +35,11 @@ export type SchemaGetResponseData = {
|
|
|
34
35
|
/**
|
|
35
36
|
* ISO 8601 timestamp when the schema was created
|
|
36
37
|
*/
|
|
37
|
-
createdAt:
|
|
38
|
+
createdAt: Date;
|
|
38
39
|
/**
|
|
39
40
|
* ISO 8601 timestamp when the schema was last updated
|
|
40
41
|
*/
|
|
41
|
-
updatedAt:
|
|
42
|
+
updatedAt: Date;
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
/**
|
|
@@ -66,8 +67,13 @@ export const SchemaGetResponseData$inboundSchema: z.ZodType<
|
|
|
66
67
|
description: z.string().optional(),
|
|
67
68
|
schema: z.record(z.any()),
|
|
68
69
|
metadata: z.record(z.any()).optional(),
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
71
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
"created_at": "createdAt",
|
|
75
|
+
"updated_at": "updatedAt",
|
|
76
|
+
});
|
|
71
77
|
});
|
|
72
78
|
/** @internal */
|
|
73
79
|
export type SchemaGetResponseData$Outbound = {
|
|
@@ -76,8 +82,8 @@ export type SchemaGetResponseData$Outbound = {
|
|
|
76
82
|
description?: string | undefined;
|
|
77
83
|
schema: { [k: string]: any };
|
|
78
84
|
metadata?: { [k: string]: any } | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
85
|
+
created_at: string;
|
|
86
|
+
updated_at: string;
|
|
81
87
|
};
|
|
82
88
|
|
|
83
89
|
/** @internal */
|
|
@@ -91,8 +97,13 @@ export const SchemaGetResponseData$outboundSchema: z.ZodType<
|
|
|
91
97
|
description: z.string().optional(),
|
|
92
98
|
schema: z.record(z.any()),
|
|
93
99
|
metadata: z.record(z.any()).optional(),
|
|
94
|
-
createdAt: z.
|
|
95
|
-
updatedAt: z.
|
|
100
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
101
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
createdAt: "created_at",
|
|
105
|
+
updatedAt: "updated_at",
|
|
106
|
+
});
|
|
96
107
|
});
|
|
97
108
|
|
|
98
109
|
export function schemaGetResponseDataToJSON(
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
|
-
* The updated extraction schema with new
|
|
12
|
+
* The updated extraction schema with new updated_at timestamp
|
|
12
13
|
*/
|
|
13
14
|
export type SchemaUpdateResponseData = {
|
|
14
15
|
/**
|
|
@@ -34,11 +35,11 @@ export type SchemaUpdateResponseData = {
|
|
|
34
35
|
/**
|
|
35
36
|
* ISO 8601 timestamp when the schema was created
|
|
36
37
|
*/
|
|
37
|
-
createdAt:
|
|
38
|
+
createdAt: Date;
|
|
38
39
|
/**
|
|
39
40
|
* ISO 8601 timestamp when the schema was last updated
|
|
40
41
|
*/
|
|
41
|
-
updatedAt:
|
|
42
|
+
updatedAt: Date;
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
/**
|
|
@@ -50,7 +51,7 @@ export type SchemaUpdateResponse = {
|
|
|
50
51
|
*/
|
|
51
52
|
success: boolean;
|
|
52
53
|
/**
|
|
53
|
-
* The updated extraction schema with new
|
|
54
|
+
* The updated extraction schema with new updated_at timestamp
|
|
54
55
|
*/
|
|
55
56
|
data: SchemaUpdateResponseData;
|
|
56
57
|
};
|
|
@@ -66,8 +67,13 @@ export const SchemaUpdateResponseData$inboundSchema: z.ZodType<
|
|
|
66
67
|
description: z.string().optional(),
|
|
67
68
|
schema: z.record(z.any()),
|
|
68
69
|
metadata: z.record(z.any()).optional(),
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
71
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
"created_at": "createdAt",
|
|
75
|
+
"updated_at": "updatedAt",
|
|
76
|
+
});
|
|
71
77
|
});
|
|
72
78
|
/** @internal */
|
|
73
79
|
export type SchemaUpdateResponseData$Outbound = {
|
|
@@ -76,8 +82,8 @@ export type SchemaUpdateResponseData$Outbound = {
|
|
|
76
82
|
description?: string | undefined;
|
|
77
83
|
schema: { [k: string]: any };
|
|
78
84
|
metadata?: { [k: string]: any } | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
85
|
+
created_at: string;
|
|
86
|
+
updated_at: string;
|
|
81
87
|
};
|
|
82
88
|
|
|
83
89
|
/** @internal */
|
|
@@ -91,8 +97,13 @@ export const SchemaUpdateResponseData$outboundSchema: z.ZodType<
|
|
|
91
97
|
description: z.string().optional(),
|
|
92
98
|
schema: z.record(z.any()),
|
|
93
99
|
metadata: z.record(z.any()).optional(),
|
|
94
|
-
createdAt: z.
|
|
95
|
-
updatedAt: z.
|
|
100
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
101
|
+
updatedAt: z.date().transform(v => v.toISOString()),
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
createdAt: "created_at",
|
|
105
|
+
updatedAt: "updated_at",
|
|
106
|
+
});
|
|
96
107
|
});
|
|
97
108
|
|
|
98
109
|
export function schemaUpdateResponseDataToJSON(
|
|
@@ -20,16 +20,17 @@ export const AddModelCatalogOrgAccessRequest$inboundSchema: z.ZodType<
|
|
|
20
20
|
z.ZodTypeDef,
|
|
21
21
|
unknown
|
|
22
22
|
> = z.object({
|
|
23
|
-
|
|
23
|
+
org_id: z.string(),
|
|
24
24
|
AccessMutationRequest: components.AccessMutationRequest$inboundSchema,
|
|
25
25
|
}).transform((v) => {
|
|
26
26
|
return remap$(v, {
|
|
27
|
+
"org_id": "orgId",
|
|
27
28
|
"AccessMutationRequest": "accessMutationRequest",
|
|
28
29
|
});
|
|
29
30
|
});
|
|
30
31
|
/** @internal */
|
|
31
32
|
export type AddModelCatalogOrgAccessRequest$Outbound = {
|
|
32
|
-
|
|
33
|
+
org_id: string;
|
|
33
34
|
AccessMutationRequest: components.AccessMutationRequest$Outbound;
|
|
34
35
|
};
|
|
35
36
|
|
|
@@ -43,6 +44,7 @@ export const AddModelCatalogOrgAccessRequest$outboundSchema: z.ZodType<
|
|
|
43
44
|
accessMutationRequest: components.AccessMutationRequest$outboundSchema,
|
|
44
45
|
}).transform((v) => {
|
|
45
46
|
return remap$(v, {
|
|
47
|
+
orgId: "org_id",
|
|
46
48
|
accessMutationRequest: "AccessMutationRequest",
|
|
47
49
|
});
|
|
48
50
|
});
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -18,12 +19,16 @@ export const ClearOrgPriceRequest$inboundSchema: z.ZodType<
|
|
|
18
19
|
z.ZodTypeDef,
|
|
19
20
|
unknown
|
|
20
21
|
> = z.object({
|
|
21
|
-
|
|
22
|
+
org_id: z.string(),
|
|
22
23
|
model: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"org_id": "orgId",
|
|
27
|
+
});
|
|
23
28
|
});
|
|
24
29
|
/** @internal */
|
|
25
30
|
export type ClearOrgPriceRequest$Outbound = {
|
|
26
|
-
|
|
31
|
+
org_id: string;
|
|
27
32
|
model: string;
|
|
28
33
|
};
|
|
29
34
|
|
|
@@ -35,6 +40,10 @@ export const ClearOrgPriceRequest$outboundSchema: z.ZodType<
|
|
|
35
40
|
> = z.object({
|
|
36
41
|
orgId: z.string(),
|
|
37
42
|
model: z.string(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
orgId: "org_id",
|
|
46
|
+
});
|
|
38
47
|
});
|
|
39
48
|
|
|
40
49
|
export function clearOrgPriceRequestToJSON(
|