@meetkai/mka1 0.54.102 → 0.54.103

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 (69) hide show
  1. package/bin/mcp-server.js +186 -15
  2. package/bin/mcp-server.js.map +12 -11
  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 +24 -0
  8. package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  9. package/dist/commonjs/models/components/addcatalogmodelrequest.js +26 -2
  10. package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
  11. package/dist/commonjs/models/components/cataloglifecycle.d.ts +35 -0
  12. package/dist/commonjs/models/components/cataloglifecycle.d.ts.map +1 -0
  13. package/dist/commonjs/models/components/cataloglifecycle.js +74 -0
  14. package/dist/commonjs/models/components/cataloglifecycle.js.map +1 -0
  15. package/dist/commonjs/models/components/index.d.ts +1 -0
  16. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  17. package/dist/commonjs/models/components/index.js +1 -0
  18. package/dist/commonjs/models/components/index.js.map +1 -1
  19. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +24 -0
  20. package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  21. package/dist/commonjs/models/components/updatecatalogmodelrequest.js +25 -2
  22. package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
  23. package/dist/commonjs/models/operations/getmodel.d.ts +94 -0
  24. package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
  25. package/dist/commonjs/models/operations/getmodel.js +70 -1
  26. package/dist/commonjs/models/operations/getmodel.js.map +1 -1
  27. package/dist/commonjs/models/operations/listmodels.d.ts +94 -0
  28. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  29. package/dist/commonjs/models/operations/listmodels.js +69 -1
  30. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  31. package/dist/esm/lib/config.d.ts +2 -2
  32. package/dist/esm/lib/config.js +2 -2
  33. package/dist/esm/mcp-server/mcp-server.js +1 -1
  34. package/dist/esm/mcp-server/server.js +1 -1
  35. package/dist/esm/models/components/addcatalogmodelrequest.d.ts +24 -0
  36. package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
  37. package/dist/esm/models/components/addcatalogmodelrequest.js +24 -0
  38. package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
  39. package/dist/esm/models/components/cataloglifecycle.d.ts +35 -0
  40. package/dist/esm/models/components/cataloglifecycle.d.ts.map +1 -0
  41. package/dist/esm/models/components/cataloglifecycle.js +36 -0
  42. package/dist/esm/models/components/cataloglifecycle.js.map +1 -0
  43. package/dist/esm/models/components/index.d.ts +1 -0
  44. package/dist/esm/models/components/index.d.ts.map +1 -1
  45. package/dist/esm/models/components/index.js +1 -0
  46. package/dist/esm/models/components/index.js.map +1 -1
  47. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +24 -0
  48. package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
  49. package/dist/esm/models/components/updatecatalogmodelrequest.js +23 -0
  50. package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
  51. package/dist/esm/models/operations/getmodel.d.ts +94 -0
  52. package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
  53. package/dist/esm/models/operations/getmodel.js +67 -0
  54. package/dist/esm/models/operations/getmodel.js.map +1 -1
  55. package/dist/esm/models/operations/listmodels.d.ts +94 -0
  56. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  57. package/dist/esm/models/operations/listmodels.js +66 -0
  58. package/dist/esm/models/operations/listmodels.js.map +1 -1
  59. package/jsr.json +1 -1
  60. package/package.json +1 -1
  61. package/src/lib/config.ts +2 -2
  62. package/src/mcp-server/mcp-server.ts +1 -1
  63. package/src/mcp-server/server.ts +1 -1
  64. package/src/models/components/addcatalogmodelrequest.ts +47 -0
  65. package/src/models/components/cataloglifecycle.ts +81 -0
  66. package/src/models/components/index.ts +1 -0
  67. package/src/models/components/updatecatalogmodelrequest.ts +49 -0
  68. package/src/models/operations/getmodel.ts +162 -0
  69. package/src/models/operations/listmodels.ts +168 -0
@@ -0,0 +1,81 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { RFCDate } from "../../types/rfcdate.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const CatalogLifecycleStatus = {
13
+ Active: "active",
14
+ Deprecated: "deprecated",
15
+ Retired: "retired",
16
+ } as const;
17
+ export type CatalogLifecycleStatus = ClosedEnum<typeof CatalogLifecycleStatus>;
18
+
19
+ export type CatalogLifecycle = {
20
+ status: CatalogLifecycleStatus;
21
+ deprecatedAt?: RFCDate | undefined;
22
+ retiresAt?: RFCDate | undefined;
23
+ successor?: string | undefined;
24
+ };
25
+
26
+ /** @internal */
27
+ export const CatalogLifecycleStatus$inboundSchema: z.ZodNativeEnum<
28
+ typeof CatalogLifecycleStatus
29
+ > = z.nativeEnum(CatalogLifecycleStatus);
30
+ /** @internal */
31
+ export const CatalogLifecycleStatus$outboundSchema: z.ZodNativeEnum<
32
+ typeof CatalogLifecycleStatus
33
+ > = CatalogLifecycleStatus$inboundSchema;
34
+
35
+ /** @internal */
36
+ export const CatalogLifecycle$inboundSchema: z.ZodType<
37
+ CatalogLifecycle,
38
+ z.ZodTypeDef,
39
+ unknown
40
+ > = z.object({
41
+ status: CatalogLifecycleStatus$inboundSchema,
42
+ deprecatedAt: z.string().transform(v => new RFCDate(v)).optional(),
43
+ retiresAt: z.string().transform(v => new RFCDate(v)).optional(),
44
+ successor: z.string().optional(),
45
+ });
46
+ /** @internal */
47
+ export type CatalogLifecycle$Outbound = {
48
+ status: string;
49
+ deprecatedAt?: string | undefined;
50
+ retiresAt?: string | undefined;
51
+ successor?: string | undefined;
52
+ };
53
+
54
+ /** @internal */
55
+ export const CatalogLifecycle$outboundSchema: z.ZodType<
56
+ CatalogLifecycle$Outbound,
57
+ z.ZodTypeDef,
58
+ CatalogLifecycle
59
+ > = z.object({
60
+ status: CatalogLifecycleStatus$outboundSchema,
61
+ deprecatedAt: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
62
+ retiresAt: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
63
+ successor: z.string().optional(),
64
+ });
65
+
66
+ export function catalogLifecycleToJSON(
67
+ catalogLifecycle: CatalogLifecycle,
68
+ ): string {
69
+ return JSON.stringify(
70
+ CatalogLifecycle$outboundSchema.parse(catalogLifecycle),
71
+ );
72
+ }
73
+ export function catalogLifecycleFromJSON(
74
+ jsonString: string,
75
+ ): SafeParseResult<CatalogLifecycle, SDKValidationError> {
76
+ return safeParse(
77
+ jsonString,
78
+ (x) => CatalogLifecycle$inboundSchema.parse(JSON.parse(x)),
79
+ `Failed to parse 'CatalogLifecycle' from JSON`,
80
+ );
81
+ }
@@ -67,6 +67,7 @@ export * from "./catalogactivationstate.js";
67
67
  export * from "./catalogentry.js";
68
68
  export * from "./cataloghealth.js";
69
69
  export * from "./cataloghealthresponse.js";
70
+ export * from "./cataloglifecycle.js";
70
71
  export * from "./cataloglistresponse.js";
71
72
  export * from "./catalogpricepreview.js";
72
73
  export * from "./checkpermissionresponse.js";
@@ -13,6 +13,12 @@ import {
13
13
  AutoEndpoint$inboundSchema,
14
14
  AutoEndpoint$outboundSchema,
15
15
  } from "./autoendpoint.js";
16
+ import {
17
+ CatalogLifecycle,
18
+ CatalogLifecycle$inboundSchema,
19
+ CatalogLifecycle$Outbound,
20
+ CatalogLifecycle$outboundSchema,
21
+ } from "./cataloglifecycle.js";
16
22
 
17
23
  export const UpdateCatalogModelRequestApiProviderType = {
18
24
  Groq: "groq",
@@ -287,7 +293,19 @@ export type UpdateCatalogModelRequestHealthCheck =
287
293
  | UpdateCatalogModelRequestHealthCheck2
288
294
  | UpdateCatalogModelRequestHealthCheck3;
289
295
 
296
+ export const ModelCardWeights = {
297
+ Open: "open",
298
+ Closed: "closed",
299
+ } as const;
300
+ export type ModelCardWeights = ClosedEnum<typeof ModelCardWeights>;
301
+
290
302
  export type UpdateCatalogModelRequestModelCard = {
303
+ developer?: string | undefined;
304
+ baseModel?: string | undefined;
305
+ weights?: ModelCardWeights | undefined;
306
+ license?: string | undefined;
307
+ languages?: Array<string> | undefined;
308
+ limitations?: string | undefined;
291
309
  parameterCount?: number | undefined;
292
310
  activeParameterCount?: number | undefined;
293
311
  releaseDate?: RFCDate | undefined;
@@ -329,6 +347,7 @@ export type UpdateCatalogModelRequest = {
329
347
  | null
330
348
  | undefined;
331
349
  modelCard?: UpdateCatalogModelRequestModelCard | null | undefined;
350
+ lifecycle?: CatalogLifecycle | null | undefined;
332
351
  id: string;
333
352
  };
334
353
 
@@ -2118,12 +2137,27 @@ export function updateCatalogModelRequestHealthCheckFromJSON(
2118
2137
  );
2119
2138
  }
2120
2139
 
2140
+ /** @internal */
2141
+ export const ModelCardWeights$inboundSchema: z.ZodNativeEnum<
2142
+ typeof ModelCardWeights
2143
+ > = z.nativeEnum(ModelCardWeights);
2144
+ /** @internal */
2145
+ export const ModelCardWeights$outboundSchema: z.ZodNativeEnum<
2146
+ typeof ModelCardWeights
2147
+ > = ModelCardWeights$inboundSchema;
2148
+
2121
2149
  /** @internal */
2122
2150
  export const UpdateCatalogModelRequestModelCard$inboundSchema: z.ZodType<
2123
2151
  UpdateCatalogModelRequestModelCard,
2124
2152
  z.ZodTypeDef,
2125
2153
  unknown
2126
2154
  > = z.object({
2155
+ developer: z.string().optional(),
2156
+ baseModel: z.string().optional(),
2157
+ weights: ModelCardWeights$inboundSchema.optional(),
2158
+ license: z.string().optional(),
2159
+ languages: z.array(z.string()).optional(),
2160
+ limitations: z.string().optional(),
2127
2161
  parameterCount: z.number().int().optional(),
2128
2162
  activeParameterCount: z.number().int().optional(),
2129
2163
  releaseDate: z.string().transform(v => new RFCDate(v)).optional(),
@@ -2131,6 +2165,12 @@ export const UpdateCatalogModelRequestModelCard$inboundSchema: z.ZodType<
2131
2165
  });
2132
2166
  /** @internal */
2133
2167
  export type UpdateCatalogModelRequestModelCard$Outbound = {
2168
+ developer?: string | undefined;
2169
+ baseModel?: string | undefined;
2170
+ weights?: string | undefined;
2171
+ license?: string | undefined;
2172
+ languages?: Array<string> | undefined;
2173
+ limitations?: string | undefined;
2134
2174
  parameterCount?: number | undefined;
2135
2175
  activeParameterCount?: number | undefined;
2136
2176
  releaseDate?: string | undefined;
@@ -2143,6 +2183,12 @@ export const UpdateCatalogModelRequestModelCard$outboundSchema: z.ZodType<
2143
2183
  z.ZodTypeDef,
2144
2184
  UpdateCatalogModelRequestModelCard
2145
2185
  > = z.object({
2186
+ developer: z.string().optional(),
2187
+ baseModel: z.string().optional(),
2188
+ weights: ModelCardWeights$outboundSchema.optional(),
2189
+ license: z.string().optional(),
2190
+ languages: z.array(z.string()).optional(),
2191
+ limitations: z.string().optional(),
2146
2192
  parameterCount: z.number().int().optional(),
2147
2193
  activeParameterCount: z.number().int().optional(),
2148
2194
  releaseDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
@@ -2222,6 +2268,7 @@ export const UpdateCatalogModelRequest$inboundSchema: z.ZodType<
2222
2268
  modelCard: z.nullable(
2223
2269
  z.lazy(() => UpdateCatalogModelRequestModelCard$inboundSchema),
2224
2270
  ).optional(),
2271
+ lifecycle: z.nullable(CatalogLifecycle$inboundSchema).optional(),
2225
2272
  id: z.string(),
2226
2273
  });
2227
2274
  /** @internal */
@@ -2272,6 +2319,7 @@ export type UpdateCatalogModelRequest$Outbound = {
2272
2319
  | null
2273
2320
  | undefined;
2274
2321
  modelCard?: UpdateCatalogModelRequestModelCard$Outbound | null | undefined;
2322
+ lifecycle?: CatalogLifecycle$Outbound | null | undefined;
2275
2323
  id: string;
2276
2324
  };
2277
2325
 
@@ -2328,6 +2376,7 @@ export const UpdateCatalogModelRequest$outboundSchema: z.ZodType<
2328
2376
  modelCard: z.nullable(
2329
2377
  z.lazy(() => UpdateCatalogModelRequestModelCard$outboundSchema),
2330
2378
  ).optional(),
2379
+ lifecycle: z.nullable(CatalogLifecycle$outboundSchema).optional(),
2331
2380
  id: z.string(),
2332
2381
  });
2333
2382
 
@@ -64,6 +64,47 @@ export type EmbeddingDimensionRange = {
64
64
  default: number;
65
65
  };
66
66
 
67
+ export const Weights = {
68
+ Open: "open",
69
+ Closed: "closed",
70
+ } as const;
71
+ export type Weights = ClosedEnum<typeof Weights>;
72
+
73
+ /**
74
+ * `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
75
+ */
76
+ export const GetModelStatus = {
77
+ Active: "active",
78
+ Deprecated: "deprecated",
79
+ Retired: "retired",
80
+ } as const;
81
+ /**
82
+ * `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
83
+ */
84
+ export type GetModelStatus = ClosedEnum<typeof GetModelStatus>;
85
+
86
+ /**
87
+ * Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
88
+ */
89
+ export type Lifecycle = {
90
+ /**
91
+ * `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
92
+ */
93
+ status: GetModelStatus;
94
+ /**
95
+ * The day the deprecation took effect (YYYY-MM-DD). Null while active or unrecorded.
96
+ */
97
+ deprecatedAt: RFCDate | null;
98
+ /**
99
+ * The day the model stops being served (YYYY-MM-DD). Null while active or not yet announced.
100
+ */
101
+ retiresAt: RFCDate | null;
102
+ /**
103
+ * Registry id of the model callers should move to. Null when none is named. A cluster catalog id: an organisation uses it the way it uses any catalog model, activating it in its registry if it has not already.
104
+ */
105
+ successor: string | null;
106
+ };
107
+
67
108
  /**
68
109
  * Curated public generation capabilities for this model.
69
110
  */
@@ -139,6 +180,34 @@ export type GetModelResponseBody = {
139
180
  * Where the model may be served from, as the registry declares it (e.g. ["aws:us-west-2"]): short opaque labels, not a guarantee for any one request. A request's own location, when the serving upstream reports it, is on the response object as resolved_serving_location. Null when the registry declares none, which is the case for externally hosted models.
140
181
  */
141
182
  servingLocations: Array<string> | null;
183
+ /**
184
+ * Who trained the model, mirroring the registry's `modelCard.developer` (e.g. "MeetKai", "Z.AI"). Null when unrecorded.
185
+ */
186
+ developer: string | null;
187
+ /**
188
+ * The model these weights were derived from, as its publisher names it, mirroring `modelCard.baseModel`. Null for a foundation model and when unrecorded.
189
+ */
190
+ baseModel: string | null;
191
+ /**
192
+ * Whether the weights can be obtained, mirroring `modelCard.weights`; the licence applies to them. Null when unrecorded.
193
+ */
194
+ weights: Weights | null;
195
+ /**
196
+ * Licence of the weights as the developer publishes it, mirroring `modelCard.license`: an SPDX identifier where one exists (e.g. "apache-2.0"), or "proprietary" for closed weights. An identifier, not validated against the SPDX list. Null when unrecorded.
197
+ */
198
+ license: string | null;
199
+ /**
200
+ * Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
201
+ */
202
+ languages: Array<string> | null;
203
+ /**
204
+ * Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
205
+ */
206
+ limitations: string | null;
207
+ /**
208
+ * Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
209
+ */
210
+ lifecycle: Lifecycle;
142
211
  /**
143
212
  * Curated public generation capabilities for this model.
144
213
  */
@@ -331,6 +400,76 @@ export function embeddingDimensionRangeFromJSON(
331
400
  );
332
401
  }
333
402
 
403
+ /** @internal */
404
+ export const Weights$inboundSchema: z.ZodNativeEnum<typeof Weights> = z
405
+ .nativeEnum(Weights);
406
+ /** @internal */
407
+ export const Weights$outboundSchema: z.ZodNativeEnum<typeof Weights> =
408
+ Weights$inboundSchema;
409
+
410
+ /** @internal */
411
+ export const GetModelStatus$inboundSchema: z.ZodNativeEnum<
412
+ typeof GetModelStatus
413
+ > = z.nativeEnum(GetModelStatus);
414
+ /** @internal */
415
+ export const GetModelStatus$outboundSchema: z.ZodNativeEnum<
416
+ typeof GetModelStatus
417
+ > = GetModelStatus$inboundSchema;
418
+
419
+ /** @internal */
420
+ export const Lifecycle$inboundSchema: z.ZodType<
421
+ Lifecycle,
422
+ z.ZodTypeDef,
423
+ unknown
424
+ > = z.object({
425
+ status: GetModelStatus$inboundSchema,
426
+ deprecated_at: z.nullable(z.string().transform(v => new RFCDate(v))),
427
+ retires_at: z.nullable(z.string().transform(v => new RFCDate(v))),
428
+ successor: z.nullable(z.string()),
429
+ }).transform((v) => {
430
+ return remap$(v, {
431
+ "deprecated_at": "deprecatedAt",
432
+ "retires_at": "retiresAt",
433
+ });
434
+ });
435
+ /** @internal */
436
+ export type Lifecycle$Outbound = {
437
+ status: string;
438
+ deprecated_at: string | null;
439
+ retires_at: string | null;
440
+ successor: string | null;
441
+ };
442
+
443
+ /** @internal */
444
+ export const Lifecycle$outboundSchema: z.ZodType<
445
+ Lifecycle$Outbound,
446
+ z.ZodTypeDef,
447
+ Lifecycle
448
+ > = z.object({
449
+ status: GetModelStatus$outboundSchema,
450
+ deprecatedAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
451
+ retiresAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
452
+ successor: z.nullable(z.string()),
453
+ }).transform((v) => {
454
+ return remap$(v, {
455
+ deprecatedAt: "deprecated_at",
456
+ retiresAt: "retires_at",
457
+ });
458
+ });
459
+
460
+ export function lifecycleToJSON(lifecycle: Lifecycle): string {
461
+ return JSON.stringify(Lifecycle$outboundSchema.parse(lifecycle));
462
+ }
463
+ export function lifecycleFromJSON(
464
+ jsonString: string,
465
+ ): SafeParseResult<Lifecycle, SDKValidationError> {
466
+ return safeParse(
467
+ jsonString,
468
+ (x) => Lifecycle$inboundSchema.parse(JSON.parse(x)),
469
+ `Failed to parse 'Lifecycle' from JSON`,
470
+ );
471
+ }
472
+
334
473
  /** @internal */
335
474
  export const Capabilities$inboundSchema: z.ZodType<
336
475
  Capabilities,
@@ -421,6 +560,13 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
421
560
  active_parameter_count: z.nullable(z.number().int()),
422
561
  release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
423
562
  serving_locations: z.nullable(z.array(z.string())),
563
+ developer: z.nullable(z.string()),
564
+ base_model: z.nullable(z.string()),
565
+ weights: z.nullable(Weights$inboundSchema),
566
+ license: z.nullable(z.string()),
567
+ languages: z.nullable(z.array(z.string())),
568
+ limitations: z.nullable(z.string()),
569
+ lifecycle: z.lazy(() => Lifecycle$inboundSchema),
424
570
  capabilities: z.lazy(() => Capabilities$inboundSchema),
425
571
  }).transform((v) => {
426
572
  return remap$(v, {
@@ -436,6 +582,7 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
436
582
  "active_parameter_count": "activeParameterCount",
437
583
  "release_date": "releaseDate",
438
584
  "serving_locations": "servingLocations",
585
+ "base_model": "baseModel",
439
586
  });
440
587
  });
441
588
  /** @internal */
@@ -455,6 +602,13 @@ export type GetModelResponseBody$Outbound = {
455
602
  active_parameter_count: number | null;
456
603
  release_date: string | null;
457
604
  serving_locations: Array<string> | null;
605
+ developer: string | null;
606
+ base_model: string | null;
607
+ weights: string | null;
608
+ license: string | null;
609
+ languages: Array<string> | null;
610
+ limitations: string | null;
611
+ lifecycle: Lifecycle$Outbound;
458
612
  capabilities: Capabilities$Outbound;
459
613
  };
460
614
 
@@ -485,6 +639,13 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
485
639
  activeParameterCount: z.nullable(z.number().int()),
486
640
  releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
487
641
  servingLocations: z.nullable(z.array(z.string())),
642
+ developer: z.nullable(z.string()),
643
+ baseModel: z.nullable(z.string()),
644
+ weights: z.nullable(Weights$outboundSchema),
645
+ license: z.nullable(z.string()),
646
+ languages: z.nullable(z.array(z.string())),
647
+ limitations: z.nullable(z.string()),
648
+ lifecycle: z.lazy(() => Lifecycle$outboundSchema),
488
649
  capabilities: z.lazy(() => Capabilities$outboundSchema),
489
650
  }).transform((v) => {
490
651
  return remap$(v, {
@@ -500,6 +661,7 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
500
661
  activeParameterCount: "active_parameter_count",
501
662
  releaseDate: "release_date",
502
663
  servingLocations: "serving_locations",
664
+ baseModel: "base_model",
503
665
  });
504
666
  });
505
667
 
@@ -63,6 +63,47 @@ export type ListModelsEmbeddingDimensionRange = {
63
63
  default: number;
64
64
  };
65
65
 
66
+ export const ListModelsWeights = {
67
+ Open: "open",
68
+ Closed: "closed",
69
+ } as const;
70
+ export type ListModelsWeights = ClosedEnum<typeof ListModelsWeights>;
71
+
72
+ /**
73
+ * `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
74
+ */
75
+ export const ListModelsStatus = {
76
+ Active: "active",
77
+ Deprecated: "deprecated",
78
+ Retired: "retired",
79
+ } as const;
80
+ /**
81
+ * `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
82
+ */
83
+ export type ListModelsStatus = ClosedEnum<typeof ListModelsStatus>;
84
+
85
+ /**
86
+ * Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
87
+ */
88
+ export type ListModelsLifecycle = {
89
+ /**
90
+ * `active`, `deprecated` (still served, retirement announced or pending) or `retired` (the retirement date has passed). Informational in this version: the gateway does not yet refuse a retired model.
91
+ */
92
+ status: ListModelsStatus;
93
+ /**
94
+ * The day the deprecation took effect (YYYY-MM-DD). Null while active or unrecorded.
95
+ */
96
+ deprecatedAt: RFCDate | null;
97
+ /**
98
+ * The day the model stops being served (YYYY-MM-DD). Null while active or not yet announced.
99
+ */
100
+ retiresAt: RFCDate | null;
101
+ /**
102
+ * Registry id of the model callers should move to. Null when none is named. A cluster catalog id: an organisation uses it the way it uses any catalog model, activating it in its registry if it has not already.
103
+ */
104
+ successor: string | null;
105
+ };
106
+
66
107
  /**
67
108
  * Curated public generation capabilities for this model.
68
109
  */
@@ -135,6 +176,34 @@ export type ListModelsData = {
135
176
  * Where the model may be served from, as the registry declares it (e.g. ["aws:us-west-2"]): short opaque labels, not a guarantee for any one request. A request's own location, when the serving upstream reports it, is on the response object as resolved_serving_location. Null when the registry declares none, which is the case for externally hosted models.
136
177
  */
137
178
  servingLocations: Array<string> | null;
179
+ /**
180
+ * Who trained the model, mirroring the registry's `modelCard.developer` (e.g. "MeetKai", "Z.AI"). Null when unrecorded.
181
+ */
182
+ developer: string | null;
183
+ /**
184
+ * The model these weights were derived from, as its publisher names it, mirroring `modelCard.baseModel`. Null for a foundation model and when unrecorded.
185
+ */
186
+ baseModel: string | null;
187
+ /**
188
+ * Whether the weights can be obtained, mirroring `modelCard.weights`; the licence applies to them. Null when unrecorded.
189
+ */
190
+ weights: ListModelsWeights | null;
191
+ /**
192
+ * Licence of the weights as the developer publishes it, mirroring `modelCard.license`: an SPDX identifier where one exists (e.g. "apache-2.0"), or "proprietary" for closed weights. An identifier, not validated against the SPDX list. Null when unrecorded.
193
+ */
194
+ license: string | null;
195
+ /**
196
+ * Languages the model is intended for, as ISO 639-1 codes, mirroring `modelCard.languages`. Null when unrecorded.
197
+ */
198
+ languages: Array<string> | null;
199
+ /**
200
+ * Known limitations in one short paragraph, mirroring `modelCard.limitations`. Null when unrecorded.
201
+ */
202
+ limitations: string | null;
203
+ /**
204
+ * Where the model is in its life. `status` is `active` unless the registry says otherwise; a deprecated or retired model carries the dates and, when one is named, the registry id of its `successor`. MKA1 announces a retirement at least 90 days before `retires_at`. Informational: a retired model is not yet refused by the gateway.
205
+ */
206
+ lifecycle: ListModelsLifecycle;
138
207
  /**
139
208
  * Curated public generation capabilities for this model.
140
209
  */
@@ -340,6 +409,82 @@ export function listModelsEmbeddingDimensionRangeFromJSON(
340
409
  );
341
410
  }
342
411
 
412
+ /** @internal */
413
+ export const ListModelsWeights$inboundSchema: z.ZodNativeEnum<
414
+ typeof ListModelsWeights
415
+ > = z.nativeEnum(ListModelsWeights);
416
+ /** @internal */
417
+ export const ListModelsWeights$outboundSchema: z.ZodNativeEnum<
418
+ typeof ListModelsWeights
419
+ > = ListModelsWeights$inboundSchema;
420
+
421
+ /** @internal */
422
+ export const ListModelsStatus$inboundSchema: z.ZodNativeEnum<
423
+ typeof ListModelsStatus
424
+ > = z.nativeEnum(ListModelsStatus);
425
+ /** @internal */
426
+ export const ListModelsStatus$outboundSchema: z.ZodNativeEnum<
427
+ typeof ListModelsStatus
428
+ > = ListModelsStatus$inboundSchema;
429
+
430
+ /** @internal */
431
+ export const ListModelsLifecycle$inboundSchema: z.ZodType<
432
+ ListModelsLifecycle,
433
+ z.ZodTypeDef,
434
+ unknown
435
+ > = z.object({
436
+ status: ListModelsStatus$inboundSchema,
437
+ deprecated_at: z.nullable(z.string().transform(v => new RFCDate(v))),
438
+ retires_at: z.nullable(z.string().transform(v => new RFCDate(v))),
439
+ successor: z.nullable(z.string()),
440
+ }).transform((v) => {
441
+ return remap$(v, {
442
+ "deprecated_at": "deprecatedAt",
443
+ "retires_at": "retiresAt",
444
+ });
445
+ });
446
+ /** @internal */
447
+ export type ListModelsLifecycle$Outbound = {
448
+ status: string;
449
+ deprecated_at: string | null;
450
+ retires_at: string | null;
451
+ successor: string | null;
452
+ };
453
+
454
+ /** @internal */
455
+ export const ListModelsLifecycle$outboundSchema: z.ZodType<
456
+ ListModelsLifecycle$Outbound,
457
+ z.ZodTypeDef,
458
+ ListModelsLifecycle
459
+ > = z.object({
460
+ status: ListModelsStatus$outboundSchema,
461
+ deprecatedAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
462
+ retiresAt: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
463
+ successor: z.nullable(z.string()),
464
+ }).transform((v) => {
465
+ return remap$(v, {
466
+ deprecatedAt: "deprecated_at",
467
+ retiresAt: "retires_at",
468
+ });
469
+ });
470
+
471
+ export function listModelsLifecycleToJSON(
472
+ listModelsLifecycle: ListModelsLifecycle,
473
+ ): string {
474
+ return JSON.stringify(
475
+ ListModelsLifecycle$outboundSchema.parse(listModelsLifecycle),
476
+ );
477
+ }
478
+ export function listModelsLifecycleFromJSON(
479
+ jsonString: string,
480
+ ): SafeParseResult<ListModelsLifecycle, SDKValidationError> {
481
+ return safeParse(
482
+ jsonString,
483
+ (x) => ListModelsLifecycle$inboundSchema.parse(JSON.parse(x)),
484
+ `Failed to parse 'ListModelsLifecycle' from JSON`,
485
+ );
486
+ }
487
+
343
488
  /** @internal */
344
489
  export const ListModelsCapabilities$inboundSchema: z.ZodType<
345
490
  ListModelsCapabilities,
@@ -434,6 +579,13 @@ export const ListModelsData$inboundSchema: z.ZodType<
434
579
  active_parameter_count: z.nullable(z.number().int()),
435
580
  release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
436
581
  serving_locations: z.nullable(z.array(z.string())),
582
+ developer: z.nullable(z.string()),
583
+ base_model: z.nullable(z.string()),
584
+ weights: z.nullable(ListModelsWeights$inboundSchema),
585
+ license: z.nullable(z.string()),
586
+ languages: z.nullable(z.array(z.string())),
587
+ limitations: z.nullable(z.string()),
588
+ lifecycle: z.lazy(() => ListModelsLifecycle$inboundSchema),
437
589
  capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
438
590
  }).transform((v) => {
439
591
  return remap$(v, {
@@ -449,6 +601,7 @@ export const ListModelsData$inboundSchema: z.ZodType<
449
601
  "active_parameter_count": "activeParameterCount",
450
602
  "release_date": "releaseDate",
451
603
  "serving_locations": "servingLocations",
604
+ "base_model": "baseModel",
452
605
  });
453
606
  });
454
607
  /** @internal */
@@ -468,6 +621,13 @@ export type ListModelsData$Outbound = {
468
621
  active_parameter_count: number | null;
469
622
  release_date: string | null;
470
623
  serving_locations: Array<string> | null;
624
+ developer: string | null;
625
+ base_model: string | null;
626
+ weights: string | null;
627
+ license: string | null;
628
+ languages: Array<string> | null;
629
+ limitations: string | null;
630
+ lifecycle: ListModelsLifecycle$Outbound;
471
631
  capabilities: ListModelsCapabilities$Outbound;
472
632
  };
473
633
 
@@ -498,6 +658,13 @@ export const ListModelsData$outboundSchema: z.ZodType<
498
658
  activeParameterCount: z.nullable(z.number().int()),
499
659
  releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
500
660
  servingLocations: z.nullable(z.array(z.string())),
661
+ developer: z.nullable(z.string()),
662
+ baseModel: z.nullable(z.string()),
663
+ weights: z.nullable(ListModelsWeights$outboundSchema),
664
+ license: z.nullable(z.string()),
665
+ languages: z.nullable(z.array(z.string())),
666
+ limitations: z.nullable(z.string()),
667
+ lifecycle: z.lazy(() => ListModelsLifecycle$outboundSchema),
501
668
  capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
502
669
  }).transform((v) => {
503
670
  return remap$(v, {
@@ -513,6 +680,7 @@ export const ListModelsData$outboundSchema: z.ZodType<
513
680
  activeParameterCount: "active_parameter_count",
514
681
  releaseDate: "release_date",
515
682
  servingLocations: "serving_locations",
683
+ baseModel: "base_model",
516
684
  });
517
685
  });
518
686