@meetkai/mka1 0.53.31 → 0.53.32

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 (33) hide show
  1. package/bin/mcp-server.js +51 -11
  2. package/bin/mcp-server.js.map +7 -7
  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/operations/getmodel.d.ts +29 -0
  8. package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
  9. package/dist/commonjs/models/operations/getmodel.js +31 -1
  10. package/dist/commonjs/models/operations/getmodel.js.map +1 -1
  11. package/dist/commonjs/models/operations/listmodels.d.ts +29 -0
  12. package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
  13. package/dist/commonjs/models/operations/listmodels.js +31 -1
  14. package/dist/commonjs/models/operations/listmodels.js.map +1 -1
  15. package/dist/esm/lib/config.d.ts +2 -2
  16. package/dist/esm/lib/config.js +2 -2
  17. package/dist/esm/mcp-server/mcp-server.js +1 -1
  18. package/dist/esm/mcp-server/server.js +1 -1
  19. package/dist/esm/models/operations/getmodel.d.ts +29 -0
  20. package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
  21. package/dist/esm/models/operations/getmodel.js +28 -0
  22. package/dist/esm/models/operations/getmodel.js.map +1 -1
  23. package/dist/esm/models/operations/listmodels.d.ts +29 -0
  24. package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
  25. package/dist/esm/models/operations/listmodels.js +28 -0
  26. package/dist/esm/models/operations/listmodels.js.map +1 -1
  27. package/jsr.json +1 -1
  28. package/package.json +1 -1
  29. package/src/lib/config.ts +2 -2
  30. package/src/mcp-server/mcp-server.ts +1 -1
  31. package/src/mcp-server/server.ts +1 -1
  32. package/src/models/operations/getmodel.ts +69 -0
  33. package/src/models/operations/listmodels.ts +73 -0
@@ -38,12 +38,39 @@ export const ListModelsModelType$inboundSchema = z.nativeEnum(ListModelsModelTyp
38
38
  /** @internal */
39
39
  export const ListModelsModelType$outboundSchema = ListModelsModelType$inboundSchema;
40
40
  /** @internal */
41
+ export const ListModelsCapabilities$inboundSchema = z.object({
42
+ supports_temperature: z.boolean(),
43
+ supports_top_p: z.boolean(),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ "supports_temperature": "supportsTemperature",
47
+ "supports_top_p": "supportsTopP",
48
+ });
49
+ });
50
+ /** @internal */
51
+ export const ListModelsCapabilities$outboundSchema = z.object({
52
+ supportsTemperature: z.boolean(),
53
+ supportsTopP: z.boolean(),
54
+ }).transform((v) => {
55
+ return remap$(v, {
56
+ supportsTemperature: "supports_temperature",
57
+ supportsTopP: "supports_top_p",
58
+ });
59
+ });
60
+ export function listModelsCapabilitiesToJSON(listModelsCapabilities) {
61
+ return JSON.stringify(ListModelsCapabilities$outboundSchema.parse(listModelsCapabilities));
62
+ }
63
+ export function listModelsCapabilitiesFromJSON(jsonString) {
64
+ return safeParse(jsonString, (x) => ListModelsCapabilities$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListModelsCapabilities' from JSON`);
65
+ }
66
+ /** @internal */
41
67
  export const ListModelsData$inboundSchema = z.object({
42
68
  id: z.string(),
43
69
  object: z.literal("model"),
44
70
  created: z.number().int(),
45
71
  owned_by: z.string(),
46
72
  model_type: ListModelsModelType$inboundSchema,
73
+ capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
47
74
  }).transform((v) => {
48
75
  return remap$(v, {
49
76
  "owned_by": "ownedBy",
@@ -57,6 +84,7 @@ export const ListModelsData$outboundSchema = z.object({
57
84
  created: z.number().int(),
58
85
  ownedBy: z.string(),
59
86
  modelType: ListModelsModelType$outboundSchema,
87
+ capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
60
88
  }).transform((v) => {
61
89
  return remap$(v, {
62
90
  ownedBy: "owned_by",
@@ -1 +1 @@
1
- {"version":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D,CAAC;AACJ,CAAC"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.53.31",
5
+ "version": "0.53.32",
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.53.31",
3
+ "version": "0.53.32",
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.53.31",
68
+ sdkVersion: "0.53.32",
69
69
  genVersion: "2.932.9",
70
- userAgent: "speakeasy-sdk/typescript 0.53.31 2.932.9 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.53.32 2.932.9 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.53.31",
22
+ currentVersion: "0.53.32",
23
23
  },
24
24
  });
25
25
 
@@ -379,7 +379,7 @@ export function createMCPServer(deps: {
379
379
  }) {
380
380
  const server = new McpServer({
381
381
  name: "SDK",
382
- version: "0.53.31",
382
+ version: "0.53.32",
383
383
  });
384
384
 
385
385
  const client = new SDKCore({
@@ -26,6 +26,20 @@ export const ModelType = {
26
26
  } as const;
27
27
  export type ModelType = ClosedEnum<typeof ModelType>;
28
28
 
29
+ /**
30
+ * Curated public sampling capabilities for this model.
31
+ */
32
+ export type Capabilities = {
33
+ /**
34
+ * Whether an LLM accepts the temperature parameter on chat-shaped generation routes; false for non-LLM models.
35
+ */
36
+ supportsTemperature: boolean;
37
+ /**
38
+ * Whether an LLM accepts the top_p parameter on chat-shaped generation routes; false for non-LLM models.
39
+ */
40
+ supportsTopP: boolean;
41
+ };
42
+
29
43
  /**
30
44
  * OK
31
45
  */
@@ -35,6 +49,10 @@ export type GetModelResponseBody = {
35
49
  created: number;
36
50
  ownedBy: string;
37
51
  modelType: ModelType;
52
+ /**
53
+ * Curated public sampling capabilities for this model.
54
+ */
55
+ capabilities: Capabilities;
38
56
  };
39
57
 
40
58
  /** @internal */
@@ -94,6 +112,54 @@ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
94
112
  export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
95
113
  ModelType$inboundSchema;
96
114
 
115
+ /** @internal */
116
+ export const Capabilities$inboundSchema: z.ZodType<
117
+ Capabilities,
118
+ z.ZodTypeDef,
119
+ unknown
120
+ > = z.object({
121
+ supports_temperature: z.boolean(),
122
+ supports_top_p: z.boolean(),
123
+ }).transform((v) => {
124
+ return remap$(v, {
125
+ "supports_temperature": "supportsTemperature",
126
+ "supports_top_p": "supportsTopP",
127
+ });
128
+ });
129
+ /** @internal */
130
+ export type Capabilities$Outbound = {
131
+ supports_temperature: boolean;
132
+ supports_top_p: boolean;
133
+ };
134
+
135
+ /** @internal */
136
+ export const Capabilities$outboundSchema: z.ZodType<
137
+ Capabilities$Outbound,
138
+ z.ZodTypeDef,
139
+ Capabilities
140
+ > = z.object({
141
+ supportsTemperature: z.boolean(),
142
+ supportsTopP: z.boolean(),
143
+ }).transform((v) => {
144
+ return remap$(v, {
145
+ supportsTemperature: "supports_temperature",
146
+ supportsTopP: "supports_top_p",
147
+ });
148
+ });
149
+
150
+ export function capabilitiesToJSON(capabilities: Capabilities): string {
151
+ return JSON.stringify(Capabilities$outboundSchema.parse(capabilities));
152
+ }
153
+ export function capabilitiesFromJSON(
154
+ jsonString: string,
155
+ ): SafeParseResult<Capabilities, SDKValidationError> {
156
+ return safeParse(
157
+ jsonString,
158
+ (x) => Capabilities$inboundSchema.parse(JSON.parse(x)),
159
+ `Failed to parse 'Capabilities' from JSON`,
160
+ );
161
+ }
162
+
97
163
  /** @internal */
98
164
  export const GetModelResponseBody$inboundSchema: z.ZodType<
99
165
  GetModelResponseBody,
@@ -105,6 +171,7 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
105
171
  created: z.number().int(),
106
172
  owned_by: z.string(),
107
173
  model_type: ModelType$inboundSchema,
174
+ capabilities: z.lazy(() => Capabilities$inboundSchema),
108
175
  }).transform((v) => {
109
176
  return remap$(v, {
110
177
  "owned_by": "ownedBy",
@@ -118,6 +185,7 @@ export type GetModelResponseBody$Outbound = {
118
185
  created: number;
119
186
  owned_by: string;
120
187
  model_type: string;
188
+ capabilities: Capabilities$Outbound;
121
189
  };
122
190
 
123
191
  /** @internal */
@@ -131,6 +199,7 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
131
199
  created: z.number().int(),
132
200
  ownedBy: z.string(),
133
201
  modelType: ModelType$outboundSchema,
202
+ capabilities: z.lazy(() => Capabilities$outboundSchema),
134
203
  }).transform((v) => {
135
204
  return remap$(v, {
136
205
  ownedBy: "owned_by",
@@ -25,12 +25,30 @@ export const ListModelsModelType = {
25
25
  } as const;
26
26
  export type ListModelsModelType = ClosedEnum<typeof ListModelsModelType>;
27
27
 
28
+ /**
29
+ * Curated public sampling capabilities for this model.
30
+ */
31
+ export type ListModelsCapabilities = {
32
+ /**
33
+ * Whether an LLM accepts the temperature parameter on chat-shaped generation routes; false for non-LLM models.
34
+ */
35
+ supportsTemperature: boolean;
36
+ /**
37
+ * Whether an LLM accepts the top_p parameter on chat-shaped generation routes; false for non-LLM models.
38
+ */
39
+ supportsTopP: boolean;
40
+ };
41
+
28
42
  export type ListModelsData = {
29
43
  id: string;
30
44
  object: "model";
31
45
  created: number;
32
46
  ownedBy: string;
33
47
  modelType: ListModelsModelType;
48
+ /**
49
+ * Curated public sampling capabilities for this model.
50
+ */
51
+ capabilities: ListModelsCapabilities;
34
52
  };
35
53
 
36
54
  /**
@@ -97,6 +115,58 @@ export const ListModelsModelType$outboundSchema: z.ZodNativeEnum<
97
115
  typeof ListModelsModelType
98
116
  > = ListModelsModelType$inboundSchema;
99
117
 
118
+ /** @internal */
119
+ export const ListModelsCapabilities$inboundSchema: z.ZodType<
120
+ ListModelsCapabilities,
121
+ z.ZodTypeDef,
122
+ unknown
123
+ > = z.object({
124
+ supports_temperature: z.boolean(),
125
+ supports_top_p: z.boolean(),
126
+ }).transform((v) => {
127
+ return remap$(v, {
128
+ "supports_temperature": "supportsTemperature",
129
+ "supports_top_p": "supportsTopP",
130
+ });
131
+ });
132
+ /** @internal */
133
+ export type ListModelsCapabilities$Outbound = {
134
+ supports_temperature: boolean;
135
+ supports_top_p: boolean;
136
+ };
137
+
138
+ /** @internal */
139
+ export const ListModelsCapabilities$outboundSchema: z.ZodType<
140
+ ListModelsCapabilities$Outbound,
141
+ z.ZodTypeDef,
142
+ ListModelsCapabilities
143
+ > = z.object({
144
+ supportsTemperature: z.boolean(),
145
+ supportsTopP: z.boolean(),
146
+ }).transform((v) => {
147
+ return remap$(v, {
148
+ supportsTemperature: "supports_temperature",
149
+ supportsTopP: "supports_top_p",
150
+ });
151
+ });
152
+
153
+ export function listModelsCapabilitiesToJSON(
154
+ listModelsCapabilities: ListModelsCapabilities,
155
+ ): string {
156
+ return JSON.stringify(
157
+ ListModelsCapabilities$outboundSchema.parse(listModelsCapabilities),
158
+ );
159
+ }
160
+ export function listModelsCapabilitiesFromJSON(
161
+ jsonString: string,
162
+ ): SafeParseResult<ListModelsCapabilities, SDKValidationError> {
163
+ return safeParse(
164
+ jsonString,
165
+ (x) => ListModelsCapabilities$inboundSchema.parse(JSON.parse(x)),
166
+ `Failed to parse 'ListModelsCapabilities' from JSON`,
167
+ );
168
+ }
169
+
100
170
  /** @internal */
101
171
  export const ListModelsData$inboundSchema: z.ZodType<
102
172
  ListModelsData,
@@ -108,6 +178,7 @@ export const ListModelsData$inboundSchema: z.ZodType<
108
178
  created: z.number().int(),
109
179
  owned_by: z.string(),
110
180
  model_type: ListModelsModelType$inboundSchema,
181
+ capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
111
182
  }).transform((v) => {
112
183
  return remap$(v, {
113
184
  "owned_by": "ownedBy",
@@ -121,6 +192,7 @@ export type ListModelsData$Outbound = {
121
192
  created: number;
122
193
  owned_by: string;
123
194
  model_type: string;
195
+ capabilities: ListModelsCapabilities$Outbound;
124
196
  };
125
197
 
126
198
  /** @internal */
@@ -134,6 +206,7 @@ export const ListModelsData$outboundSchema: z.ZodType<
134
206
  created: z.number().int(),
135
207
  ownedBy: z.string(),
136
208
  modelType: ListModelsModelType$outboundSchema,
209
+ capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
137
210
  }).transform((v) => {
138
211
  return remap$(v, {
139
212
  ownedBy: "owned_by",