@meetkai/mka1 0.54.32 → 0.54.33

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.
Files changed (51) hide show
  1. package/bin/mcp-server.js +96 -13
  2. package/bin/mcp-server.js.map +11 -10
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts +20 -0
  8. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/addcatalogmodelrequest.js +24 -1
  10. package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
  11. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +20 -0
  12. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  13. package/dist/commonjs/models/components/updatecatalogmodelrequest.js +24 -1
  14. package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
  15. package/dist/commonjs/models/operations/getmodel.d.ts +16 -0
  16. package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/getmodel.js +13 -0
  18. package/dist/commonjs/models/operations/getmodel.js.map +1 -1
  19. package/dist/commonjs/models/operations/listmodels.d.ts +16 -0
  20. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/listmodels.js +13 -0
  22. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  23. package/dist/esm/lib/config.d.ts +2 -2
  24. package/dist/esm/lib/config.js +2 -2
  25. package/dist/esm/mcp-server/mcp-server.js +1 -1
  26. package/dist/esm/mcp-server/server.js +1 -1
  27. package/dist/esm/models/components/addcatalogmodelrequest.d.ts +20 -0
  28. package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  29. package/dist/esm/models/components/addcatalogmodelrequest.js +21 -0
  30. package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
  31. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +20 -0
  32. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  33. package/dist/esm/models/components/updatecatalogmodelrequest.js +21 -0
  34. package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
  35. package/dist/esm/models/operations/getmodel.d.ts +16 -0
  36. package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
  37. package/dist/esm/models/operations/getmodel.js +13 -0
  38. package/dist/esm/models/operations/getmodel.js.map +1 -1
  39. package/dist/esm/models/operations/listmodels.d.ts +16 -0
  40. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  41. package/dist/esm/models/operations/listmodels.js +13 -0
  42. package/dist/esm/models/operations/listmodels.js.map +1 -1
  43. package/jsr.json +1 -1
  44. package/package.json +1 -1
  45. package/src/lib/config.ts +2 -2
  46. package/src/mcp-server/mcp-server.ts +1 -1
  47. package/src/mcp-server/server.ts +1 -1
  48. package/src/models/components/addcatalogmodelrequest.ts +52 -0
  49. package/src/models/components/updatecatalogmodelrequest.ts +63 -0
  50. package/src/models/operations/getmodel.ts +28 -0
  51. package/src/models/operations/listmodels.ts +28 -0
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.54.32",
5
+ "version": "0.54.33",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.54.32",
3
+ "version": "0.54.33",
4
4
  "author": "Daniel Wilder <dauncy@gmail.com>",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
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.32",
68
+ sdkVersion: "0.54.33",
69
69
  genVersion: "2.937.18",
70
- userAgent: "speakeasy-sdk/typescript 0.54.32 2.937.18 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.54.33 2.937.18 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.54.32",
22
+ currentVersion: "0.54.33",
23
23
  },
24
24
  });
25
25
 
@@ -412,7 +412,7 @@ export function createMCPServer(deps: {
412
412
  }) {
413
413
  const server = new McpServer({
414
414
  name: "SDK",
415
- version: "0.54.32",
415
+ version: "0.54.33",
416
416
  });
417
417
 
418
418
  const client = new SDKCore({
@@ -6,6 +6,7 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { RFCDate } from "../../types/rfcdate.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
11
12
  AutoEndpoint,
@@ -268,6 +269,12 @@ export type HealthCheck1 = {
268
269
 
269
270
  export type HealthCheck = HealthCheck1 | HealthCheck2 | HealthCheck3;
270
271
 
272
+ export type ModelCard = {
273
+ parameterCount?: number | undefined;
274
+ activeParameterCount?: number | undefined;
275
+ releaseDate?: RFCDate | undefined;
276
+ };
277
+
271
278
  export type AddCatalogModelRequest = {
272
279
  id: string;
273
280
  provider: string;
@@ -290,6 +297,7 @@ export type AddCatalogModelRequest = {
290
297
  hidden?: boolean | undefined;
291
298
  embeddingLimits?: EmbeddingLimits | undefined;
292
299
  healthCheck?: HealthCheck1 | HealthCheck2 | HealthCheck3 | undefined;
300
+ modelCard?: ModelCard | undefined;
293
301
  };
294
302
 
295
303
  /** @internal */
@@ -1882,6 +1890,47 @@ export function healthCheckFromJSON(
1882
1890
  );
1883
1891
  }
1884
1892
 
1893
+ /** @internal */
1894
+ export const ModelCard$inboundSchema: z.ZodType<
1895
+ ModelCard,
1896
+ z.ZodTypeDef,
1897
+ unknown
1898
+ > = z.object({
1899
+ parameterCount: z.number().int().optional(),
1900
+ activeParameterCount: z.number().int().optional(),
1901
+ releaseDate: z.string().transform(v => new RFCDate(v)).optional(),
1902
+ });
1903
+ /** @internal */
1904
+ export type ModelCard$Outbound = {
1905
+ parameterCount?: number | undefined;
1906
+ activeParameterCount?: number | undefined;
1907
+ releaseDate?: string | undefined;
1908
+ };
1909
+
1910
+ /** @internal */
1911
+ export const ModelCard$outboundSchema: z.ZodType<
1912
+ ModelCard$Outbound,
1913
+ z.ZodTypeDef,
1914
+ ModelCard
1915
+ > = z.object({
1916
+ parameterCount: z.number().int().optional(),
1917
+ activeParameterCount: z.number().int().optional(),
1918
+ releaseDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
1919
+ });
1920
+
1921
+ export function modelCardToJSON(modelCard: ModelCard): string {
1922
+ return JSON.stringify(ModelCard$outboundSchema.parse(modelCard));
1923
+ }
1924
+ export function modelCardFromJSON(
1925
+ jsonString: string,
1926
+ ): SafeParseResult<ModelCard, SDKValidationError> {
1927
+ return safeParse(
1928
+ jsonString,
1929
+ (x) => ModelCard$inboundSchema.parse(JSON.parse(x)),
1930
+ `Failed to parse 'ModelCard' from JSON`,
1931
+ );
1932
+ }
1933
+
1885
1934
  /** @internal */
1886
1935
  export const AddCatalogModelRequest$inboundSchema: z.ZodType<
1887
1936
  AddCatalogModelRequest,
@@ -1918,6 +1967,7 @@ export const AddCatalogModelRequest$inboundSchema: z.ZodType<
1918
1967
  z.lazy(() => HealthCheck2$inboundSchema),
1919
1968
  z.lazy(() => HealthCheck3$inboundSchema),
1920
1969
  ]).optional(),
1970
+ modelCard: z.lazy(() => ModelCard$inboundSchema).optional(),
1921
1971
  });
1922
1972
  /** @internal */
1923
1973
  export type AddCatalogModelRequest$Outbound = {
@@ -1946,6 +1996,7 @@ export type AddCatalogModelRequest$Outbound = {
1946
1996
  | HealthCheck2$Outbound
1947
1997
  | HealthCheck3$Outbound
1948
1998
  | undefined;
1999
+ modelCard?: ModelCard$Outbound | undefined;
1949
2000
  };
1950
2001
 
1951
2002
  /** @internal */
@@ -1984,6 +2035,7 @@ export const AddCatalogModelRequest$outboundSchema: z.ZodType<
1984
2035
  z.lazy(() => HealthCheck2$outboundSchema),
1985
2036
  z.lazy(() => HealthCheck3$outboundSchema),
1986
2037
  ]).optional(),
2038
+ modelCard: z.lazy(() => ModelCard$outboundSchema).optional(),
1987
2039
  });
1988
2040
 
1989
2041
  export function addCatalogModelRequestToJSON(
@@ -6,6 +6,7 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { RFCDate } from "../../types/rfcdate.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
11
12
  AutoEndpoint,
@@ -298,6 +299,12 @@ export type UpdateCatalogModelRequestHealthCheck =
298
299
  | UpdateCatalogModelRequestHealthCheck2
299
300
  | UpdateCatalogModelRequestHealthCheck3;
300
301
 
302
+ export type UpdateCatalogModelRequestModelCard = {
303
+ parameterCount?: number | undefined;
304
+ activeParameterCount?: number | undefined;
305
+ releaseDate?: RFCDate | undefined;
306
+ };
307
+
301
308
  export type UpdateCatalogModelRequest = {
302
309
  provider?: string | undefined;
303
310
  modelId?: string | undefined;
@@ -332,6 +339,7 @@ export type UpdateCatalogModelRequest = {
332
339
  | UpdateCatalogModelRequestHealthCheck3
333
340
  | null
334
341
  | undefined;
342
+ modelCard?: UpdateCatalogModelRequestModelCard | null | undefined;
335
343
  id: string;
336
344
  };
337
345
 
@@ -2209,6 +2217,54 @@ export function updateCatalogModelRequestHealthCheckFromJSON(
2209
2217
  );
2210
2218
  }
2211
2219
 
2220
+ /** @internal */
2221
+ export const UpdateCatalogModelRequestModelCard$inboundSchema: z.ZodType<
2222
+ UpdateCatalogModelRequestModelCard,
2223
+ z.ZodTypeDef,
2224
+ unknown
2225
+ > = z.object({
2226
+ parameterCount: z.number().int().optional(),
2227
+ activeParameterCount: z.number().int().optional(),
2228
+ releaseDate: z.string().transform(v => new RFCDate(v)).optional(),
2229
+ });
2230
+ /** @internal */
2231
+ export type UpdateCatalogModelRequestModelCard$Outbound = {
2232
+ parameterCount?: number | undefined;
2233
+ activeParameterCount?: number | undefined;
2234
+ releaseDate?: string | undefined;
2235
+ };
2236
+
2237
+ /** @internal */
2238
+ export const UpdateCatalogModelRequestModelCard$outboundSchema: z.ZodType<
2239
+ UpdateCatalogModelRequestModelCard$Outbound,
2240
+ z.ZodTypeDef,
2241
+ UpdateCatalogModelRequestModelCard
2242
+ > = z.object({
2243
+ parameterCount: z.number().int().optional(),
2244
+ activeParameterCount: z.number().int().optional(),
2245
+ releaseDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
2246
+ });
2247
+
2248
+ export function updateCatalogModelRequestModelCardToJSON(
2249
+ updateCatalogModelRequestModelCard: UpdateCatalogModelRequestModelCard,
2250
+ ): string {
2251
+ return JSON.stringify(
2252
+ UpdateCatalogModelRequestModelCard$outboundSchema.parse(
2253
+ updateCatalogModelRequestModelCard,
2254
+ ),
2255
+ );
2256
+ }
2257
+ export function updateCatalogModelRequestModelCardFromJSON(
2258
+ jsonString: string,
2259
+ ): SafeParseResult<UpdateCatalogModelRequestModelCard, SDKValidationError> {
2260
+ return safeParse(
2261
+ jsonString,
2262
+ (x) =>
2263
+ UpdateCatalogModelRequestModelCard$inboundSchema.parse(JSON.parse(x)),
2264
+ `Failed to parse 'UpdateCatalogModelRequestModelCard' from JSON`,
2265
+ );
2266
+ }
2267
+
2212
2268
  /** @internal */
2213
2269
  export const UpdateCatalogModelRequest$inboundSchema: z.ZodType<
2214
2270
  UpdateCatalogModelRequest,
@@ -2259,6 +2315,9 @@ export const UpdateCatalogModelRequest$inboundSchema: z.ZodType<
2259
2315
  z.lazy(() => UpdateCatalogModelRequestHealthCheck3$inboundSchema),
2260
2316
  ]),
2261
2317
  ).optional(),
2318
+ modelCard: z.nullable(
2319
+ z.lazy(() => UpdateCatalogModelRequestModelCard$inboundSchema),
2320
+ ).optional(),
2262
2321
  id: z.string(),
2263
2322
  });
2264
2323
  /** @internal */
@@ -2308,6 +2367,7 @@ export type UpdateCatalogModelRequest$Outbound = {
2308
2367
  | UpdateCatalogModelRequestHealthCheck3$Outbound
2309
2368
  | null
2310
2369
  | undefined;
2370
+ modelCard?: UpdateCatalogModelRequestModelCard$Outbound | null | undefined;
2311
2371
  id: string;
2312
2372
  };
2313
2373
 
@@ -2361,6 +2421,9 @@ export const UpdateCatalogModelRequest$outboundSchema: z.ZodType<
2361
2421
  z.lazy(() => UpdateCatalogModelRequestHealthCheck3$outboundSchema),
2362
2422
  ]),
2363
2423
  ).optional(),
2424
+ modelCard: z.nullable(
2425
+ z.lazy(() => UpdateCatalogModelRequestModelCard$outboundSchema),
2426
+ ).optional(),
2364
2427
  id: z.string(),
2365
2428
  });
2366
2429
 
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { RFCDate } from "../../types/rfcdate.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  export type GetModelRequest = {
@@ -57,6 +58,18 @@ export type GetModelResponseBody = {
57
58
  * Modalities this model can produce, mirroring the registry's `capabilities.modalities.output`. Unconstrained strings rather than a closed enum so a new registry modality reaches clients without a breaking schema change.
58
59
  */
59
60
  outputModalities: Array<string>;
61
+ /**
62
+ * Total parameter count of the weights behind this model, mirroring the registry's `modelCard.parameterCount`. Null when the registry does not record one (closed-weight API models, or entries nobody has filled in yet).
63
+ */
64
+ parameterCount: number | null;
65
+ /**
66
+ * Parameters active per token for mixture-of-experts models, mirroring the registry's `modelCard.activeParameterCount`. Null for dense models and whenever unrecorded.
67
+ */
68
+ activeParameterCount: number | null;
69
+ /**
70
+ * Public release date of the model as an ISO calendar date (YYYY-MM-DD), mirroring the registry's `modelCard.releaseDate`. Null when unrecorded.
71
+ */
72
+ releaseDate: RFCDate | null;
60
73
  /**
61
74
  * Curated public sampling capabilities for this model.
62
75
  */
@@ -181,6 +194,9 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
181
194
  model_type: ModelType$inboundSchema,
182
195
  input_modalities: z.array(z.string()),
183
196
  output_modalities: z.array(z.string()),
197
+ parameter_count: z.nullable(z.number().int()),
198
+ active_parameter_count: z.nullable(z.number().int()),
199
+ release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
184
200
  capabilities: z.lazy(() => Capabilities$inboundSchema),
185
201
  }).transform((v) => {
186
202
  return remap$(v, {
@@ -188,6 +204,9 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
188
204
  "model_type": "modelType",
189
205
  "input_modalities": "inputModalities",
190
206
  "output_modalities": "outputModalities",
207
+ "parameter_count": "parameterCount",
208
+ "active_parameter_count": "activeParameterCount",
209
+ "release_date": "releaseDate",
191
210
  });
192
211
  });
193
212
  /** @internal */
@@ -199,6 +218,9 @@ export type GetModelResponseBody$Outbound = {
199
218
  model_type: string;
200
219
  input_modalities: Array<string>;
201
220
  output_modalities: Array<string>;
221
+ parameter_count: number | null;
222
+ active_parameter_count: number | null;
223
+ release_date: string | null;
202
224
  capabilities: Capabilities$Outbound;
203
225
  };
204
226
 
@@ -215,6 +237,9 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
215
237
  modelType: ModelType$outboundSchema,
216
238
  inputModalities: z.array(z.string()),
217
239
  outputModalities: z.array(z.string()),
240
+ parameterCount: z.nullable(z.number().int()),
241
+ activeParameterCount: z.nullable(z.number().int()),
242
+ releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
218
243
  capabilities: z.lazy(() => Capabilities$outboundSchema),
219
244
  }).transform((v) => {
220
245
  return remap$(v, {
@@ -222,6 +247,9 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
222
247
  modelType: "model_type",
223
248
  inputModalities: "input_modalities",
224
249
  outputModalities: "output_modalities",
250
+ parameterCount: "parameter_count",
251
+ activeParameterCount: "active_parameter_count",
252
+ releaseDate: "release_date",
225
253
  });
226
254
  });
227
255
 
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { RFCDate } from "../../types/rfcdate.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
12
13
  export type ListModelsRequest = {
@@ -53,6 +54,18 @@ export type ListModelsData = {
53
54
  * Modalities this model can produce, mirroring the registry's `capabilities.modalities.output`. Unconstrained strings rather than a closed enum so a new registry modality reaches clients without a breaking schema change.
54
55
  */
55
56
  outputModalities: Array<string>;
57
+ /**
58
+ * Total parameter count of the weights behind this model, mirroring the registry's `modelCard.parameterCount`. Null when the registry does not record one (closed-weight API models, or entries nobody has filled in yet).
59
+ */
60
+ parameterCount: number | null;
61
+ /**
62
+ * Parameters active per token for mixture-of-experts models, mirroring the registry's `modelCard.activeParameterCount`. Null for dense models and whenever unrecorded.
63
+ */
64
+ activeParameterCount: number | null;
65
+ /**
66
+ * Public release date of the model as an ISO calendar date (YYYY-MM-DD), mirroring the registry's `modelCard.releaseDate`. Null when unrecorded.
67
+ */
68
+ releaseDate: RFCDate | null;
56
69
  /**
57
70
  * Curated public sampling capabilities for this model.
58
71
  */
@@ -188,6 +201,9 @@ export const ListModelsData$inboundSchema: z.ZodType<
188
201
  model_type: ListModelsModelType$inboundSchema,
189
202
  input_modalities: z.array(z.string()),
190
203
  output_modalities: z.array(z.string()),
204
+ parameter_count: z.nullable(z.number().int()),
205
+ active_parameter_count: z.nullable(z.number().int()),
206
+ release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
191
207
  capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
192
208
  }).transform((v) => {
193
209
  return remap$(v, {
@@ -195,6 +211,9 @@ export const ListModelsData$inboundSchema: z.ZodType<
195
211
  "model_type": "modelType",
196
212
  "input_modalities": "inputModalities",
197
213
  "output_modalities": "outputModalities",
214
+ "parameter_count": "parameterCount",
215
+ "active_parameter_count": "activeParameterCount",
216
+ "release_date": "releaseDate",
198
217
  });
199
218
  });
200
219
  /** @internal */
@@ -206,6 +225,9 @@ export type ListModelsData$Outbound = {
206
225
  model_type: string;
207
226
  input_modalities: Array<string>;
208
227
  output_modalities: Array<string>;
228
+ parameter_count: number | null;
229
+ active_parameter_count: number | null;
230
+ release_date: string | null;
209
231
  capabilities: ListModelsCapabilities$Outbound;
210
232
  };
211
233
 
@@ -222,6 +244,9 @@ export const ListModelsData$outboundSchema: z.ZodType<
222
244
  modelType: ListModelsModelType$outboundSchema,
223
245
  inputModalities: z.array(z.string()),
224
246
  outputModalities: z.array(z.string()),
247
+ parameterCount: z.nullable(z.number().int()),
248
+ activeParameterCount: z.nullable(z.number().int()),
249
+ releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
225
250
  capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
226
251
  }).transform((v) => {
227
252
  return remap$(v, {
@@ -229,6 +254,9 @@ export const ListModelsData$outboundSchema: z.ZodType<
229
254
  modelType: "model_type",
230
255
  inputModalities: "input_modalities",
231
256
  outputModalities: "output_modalities",
257
+ parameterCount: "parameter_count",
258
+ activeParameterCount: "active_parameter_count",
259
+ releaseDate: "release_date",
232
260
  });
233
261
  });
234
262