@mesh-tech/mesh-cli 0.12.2 → 0.12.3
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/dist/bin/mesh.js +9 -2
- package/dist/bin/mesh.js.map +2 -2
- package/dist/build-info.json +2 -2
- package/package.json +2 -2
package/dist/bin/mesh.js
CHANGED
|
@@ -3398,11 +3398,16 @@ var init_hub_roles = __esm({
|
|
|
3398
3398
|
|
|
3399
3399
|
// libs/api-registry/src/index.ts
|
|
3400
3400
|
import { z as z2 } from "zod";
|
|
3401
|
-
var apiSurfaceSchema, apiRegistryEntrySchema, integrationStatusSchema;
|
|
3401
|
+
var rateLimitSpecSchema, rateLimitDefaultsSchema, apiSurfaceSchema, apiRegistryEntrySchema, integrationStatusSchema;
|
|
3402
3402
|
var init_src2 = __esm({
|
|
3403
3403
|
"libs/api-registry/src/index.ts"() {
|
|
3404
3404
|
"use strict";
|
|
3405
3405
|
init_hub_roles();
|
|
3406
|
+
rateLimitSpecSchema = z2.object({
|
|
3407
|
+
rps: z2.number().int().min(1),
|
|
3408
|
+
burst: z2.number().int().min(1)
|
|
3409
|
+
});
|
|
3410
|
+
rateLimitDefaultsSchema = z2.record(z2.string().min(1), rateLimitSpecSchema);
|
|
3406
3411
|
apiSurfaceSchema = z2.object({
|
|
3407
3412
|
http: z2.object({ url: z2.string().min(1) }).optional(),
|
|
3408
3413
|
nexus: z2.object({ endpoint: z2.string().min(1), taskQueue: z2.string().min(1) }).optional()
|
|
@@ -3421,7 +3426,8 @@ var init_src2 = __esm({
|
|
|
3421
3426
|
// The consumer schema strips unknown keys, so a producer-side field that is
|
|
3422
3427
|
// not mirrored here never reaches a consumer — mirror every addition.
|
|
3423
3428
|
status: z2.object({ url: z2.string().min(1) }).optional(),
|
|
3424
|
-
appVersion: z2.string().min(1).optional()
|
|
3429
|
+
appVersion: z2.string().min(1).optional(),
|
|
3430
|
+
rateLimits: rateLimitDefaultsSchema.optional()
|
|
3425
3431
|
});
|
|
3426
3432
|
integrationStatusSchema = z2.object({
|
|
3427
3433
|
contract: z2.literal("v1"),
|
|
@@ -3438,6 +3444,7 @@ var init_src2 = __esm({
|
|
|
3438
3444
|
coreModeSource: z2.string().optional(),
|
|
3439
3445
|
enabledOps: z2.array(z2.string()),
|
|
3440
3446
|
credentialsWired: z2.boolean(),
|
|
3447
|
+
rateLimits: rateLimitDefaultsSchema.optional(),
|
|
3441
3448
|
startedAt: z2.string().min(1)
|
|
3442
3449
|
});
|
|
3443
3450
|
}
|