@meetkai/mka1 0.48.40 → 0.48.41
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 +44 -12
- package/bin/mcp-server.js.map +9 -9
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/http.d.ts +1 -1
- package/dist/commonjs/lib/http.d.ts.map +1 -1
- package/dist/commonjs/lib/http.js +1 -1
- package/dist/commonjs/lib/http.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts +5 -4
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +6 -7
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/addregistrymodelrequest.d.ts +21 -0
- package/dist/commonjs/models/components/addregistrymodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addregistrymodelrequest.js +25 -1
- package/dist/commonjs/models/components/addregistrymodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/updateregistrymodelrequest.d.ts +21 -0
- package/dist/commonjs/models/components/updateregistrymodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updateregistrymodelrequest.js +25 -1
- package/dist/commonjs/models/components/updateregistrymodelrequest.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/http.d.ts +1 -1
- package/dist/esm/lib/http.d.ts.map +1 -1
- package/dist/esm/lib/http.js +1 -1
- package/dist/esm/lib/http.js.map +1 -1
- package/dist/esm/lib/security.d.ts +5 -4
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +4 -5
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/addregistrymodelrequest.d.ts +21 -0
- package/dist/esm/models/components/addregistrymodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addregistrymodelrequest.js +22 -0
- package/dist/esm/models/components/addregistrymodelrequest.js.map +1 -1
- package/dist/esm/models/components/updateregistrymodelrequest.d.ts +21 -0
- package/dist/esm/models/components/updateregistrymodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updateregistrymodelrequest.js +22 -0
- package/dist/esm/models/components/updateregistrymodelrequest.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/addregistrymodelrequest.ts +55 -0
- package/src/models/components/updateregistrymodelrequest.ts +69 -0
|
@@ -186,6 +186,11 @@ export type UpdateRegistryModelRequestRateLimits = {
|
|
|
186
186
|
queue?: RateLimitsQueue | undefined;
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
+
export type UpdateRegistryModelRequestConcurrency = {
|
|
190
|
+
max: number;
|
|
191
|
+
maxWaitMs?: number | undefined;
|
|
192
|
+
};
|
|
193
|
+
|
|
189
194
|
export type UpdateRegistryModelRequestDefaultParams = {
|
|
190
195
|
temperature?: number | undefined;
|
|
191
196
|
topP?: number | undefined;
|
|
@@ -310,6 +315,9 @@ export type UpdateRegistryModelRequest = {
|
|
|
310
315
|
contextWindow?: number | null | undefined;
|
|
311
316
|
rpm?: number | null | undefined;
|
|
312
317
|
rateLimits?: Array<UpdateRegistryModelRequestRateLimits> | null | undefined;
|
|
318
|
+
concurrency?: UpdateRegistryModelRequestConcurrency | null | undefined;
|
|
319
|
+
requestTimeoutMs?: number | null | undefined;
|
|
320
|
+
maxRetries?: number | null | undefined;
|
|
313
321
|
defaultParams?: UpdateRegistryModelRequestDefaultParams | null | undefined;
|
|
314
322
|
rerouteRules?:
|
|
315
323
|
| Array<UpdateRegistryModelRequestRerouteRules>
|
|
@@ -1452,6 +1460,51 @@ export function updateRegistryModelRequestRateLimitsFromJSON(
|
|
|
1452
1460
|
);
|
|
1453
1461
|
}
|
|
1454
1462
|
|
|
1463
|
+
/** @internal */
|
|
1464
|
+
export const UpdateRegistryModelRequestConcurrency$inboundSchema: z.ZodType<
|
|
1465
|
+
UpdateRegistryModelRequestConcurrency,
|
|
1466
|
+
z.ZodTypeDef,
|
|
1467
|
+
unknown
|
|
1468
|
+
> = z.object({
|
|
1469
|
+
max: z.number().int(),
|
|
1470
|
+
maxWaitMs: z.number().int().optional(),
|
|
1471
|
+
});
|
|
1472
|
+
/** @internal */
|
|
1473
|
+
export type UpdateRegistryModelRequestConcurrency$Outbound = {
|
|
1474
|
+
max: number;
|
|
1475
|
+
maxWaitMs?: number | undefined;
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
/** @internal */
|
|
1479
|
+
export const UpdateRegistryModelRequestConcurrency$outboundSchema: z.ZodType<
|
|
1480
|
+
UpdateRegistryModelRequestConcurrency$Outbound,
|
|
1481
|
+
z.ZodTypeDef,
|
|
1482
|
+
UpdateRegistryModelRequestConcurrency
|
|
1483
|
+
> = z.object({
|
|
1484
|
+
max: z.number().int(),
|
|
1485
|
+
maxWaitMs: z.number().int().optional(),
|
|
1486
|
+
});
|
|
1487
|
+
|
|
1488
|
+
export function updateRegistryModelRequestConcurrencyToJSON(
|
|
1489
|
+
updateRegistryModelRequestConcurrency: UpdateRegistryModelRequestConcurrency,
|
|
1490
|
+
): string {
|
|
1491
|
+
return JSON.stringify(
|
|
1492
|
+
UpdateRegistryModelRequestConcurrency$outboundSchema.parse(
|
|
1493
|
+
updateRegistryModelRequestConcurrency,
|
|
1494
|
+
),
|
|
1495
|
+
);
|
|
1496
|
+
}
|
|
1497
|
+
export function updateRegistryModelRequestConcurrencyFromJSON(
|
|
1498
|
+
jsonString: string,
|
|
1499
|
+
): SafeParseResult<UpdateRegistryModelRequestConcurrency, SDKValidationError> {
|
|
1500
|
+
return safeParse(
|
|
1501
|
+
jsonString,
|
|
1502
|
+
(x) =>
|
|
1503
|
+
UpdateRegistryModelRequestConcurrency$inboundSchema.parse(JSON.parse(x)),
|
|
1504
|
+
`Failed to parse 'UpdateRegistryModelRequestConcurrency' from JSON`,
|
|
1505
|
+
);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1455
1508
|
/** @internal */
|
|
1456
1509
|
export const UpdateRegistryModelRequestDefaultParams$inboundSchema: z.ZodType<
|
|
1457
1510
|
UpdateRegistryModelRequestDefaultParams,
|
|
@@ -2202,6 +2255,11 @@ export const UpdateRegistryModelRequest$inboundSchema: z.ZodType<
|
|
|
2202
2255
|
rateLimits: z.nullable(
|
|
2203
2256
|
z.array(z.lazy(() => UpdateRegistryModelRequestRateLimits$inboundSchema)),
|
|
2204
2257
|
).optional(),
|
|
2258
|
+
concurrency: z.nullable(
|
|
2259
|
+
z.lazy(() => UpdateRegistryModelRequestConcurrency$inboundSchema),
|
|
2260
|
+
).optional(),
|
|
2261
|
+
requestTimeoutMs: z.nullable(z.number().int()).optional(),
|
|
2262
|
+
maxRetries: z.nullable(z.number().int()).optional(),
|
|
2205
2263
|
defaultParams: z.nullable(
|
|
2206
2264
|
z.lazy(() => UpdateRegistryModelRequestDefaultParams$inboundSchema),
|
|
2207
2265
|
).optional(),
|
|
@@ -2242,6 +2300,12 @@ export type UpdateRegistryModelRequest$Outbound = {
|
|
|
2242
2300
|
| Array<UpdateRegistryModelRequestRateLimits$Outbound>
|
|
2243
2301
|
| null
|
|
2244
2302
|
| undefined;
|
|
2303
|
+
concurrency?:
|
|
2304
|
+
| UpdateRegistryModelRequestConcurrency$Outbound
|
|
2305
|
+
| null
|
|
2306
|
+
| undefined;
|
|
2307
|
+
requestTimeoutMs?: number | null | undefined;
|
|
2308
|
+
maxRetries?: number | null | undefined;
|
|
2245
2309
|
defaultParams?:
|
|
2246
2310
|
| UpdateRegistryModelRequestDefaultParams$Outbound
|
|
2247
2311
|
| null
|
|
@@ -2291,6 +2355,11 @@ export const UpdateRegistryModelRequest$outboundSchema: z.ZodType<
|
|
|
2291
2355
|
rateLimits: z.nullable(
|
|
2292
2356
|
z.array(z.lazy(() => UpdateRegistryModelRequestRateLimits$outboundSchema)),
|
|
2293
2357
|
).optional(),
|
|
2358
|
+
concurrency: z.nullable(
|
|
2359
|
+
z.lazy(() => UpdateRegistryModelRequestConcurrency$outboundSchema),
|
|
2360
|
+
).optional(),
|
|
2361
|
+
requestTimeoutMs: z.nullable(z.number().int()).optional(),
|
|
2362
|
+
maxRetries: z.nullable(z.number().int()).optional(),
|
|
2294
2363
|
defaultParams: z.nullable(
|
|
2295
2364
|
z.lazy(() => UpdateRegistryModelRequestDefaultParams$outboundSchema),
|
|
2296
2365
|
).optional(),
|