@mesh-tech/mesh-cli 0.12.1 → 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 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;
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()
@@ -3417,7 +3422,30 @@ var init_src2 = __esm({
3417
3422
  surfaces: apiSurfaceSchema,
3418
3423
  credentials: z2.object({ keyedBy: z2.string().nullish() }).optional(),
3419
3424
  docs: z2.object({ url: z2.string().min(1), contentHash: z2.string().min(1) }),
3420
- enabledOps: z2.array(z2.string())
3425
+ enabledOps: z2.array(z2.string()),
3426
+ // The consumer schema strips unknown keys, so a producer-side field that is
3427
+ // not mirrored here never reaches a consumer — mirror every addition.
3428
+ status: z2.object({ url: z2.string().min(1) }).optional(),
3429
+ appVersion: z2.string().min(1).optional(),
3430
+ rateLimits: rateLimitDefaultsSchema.optional()
3431
+ });
3432
+ integrationStatusSchema = z2.object({
3433
+ contract: z2.literal("v1"),
3434
+ name: z2.string().min(1),
3435
+ provider: z2.string().optional(),
3436
+ type: z2.string().optional(),
3437
+ title: z2.string().optional(),
3438
+ definitionVersion: z2.string().optional(),
3439
+ packageVersion: z2.string().min(1).optional(),
3440
+ tenant: z2.string().min(1),
3441
+ instanceKey: z2.string().optional(),
3442
+ surfaces: z2.array(z2.enum(["http", "nexus"])),
3443
+ coreMode: z2.enum(["mock", "live"]),
3444
+ coreModeSource: z2.string().optional(),
3445
+ enabledOps: z2.array(z2.string()),
3446
+ credentialsWired: z2.boolean(),
3447
+ rateLimits: rateLimitDefaultsSchema.optional(),
3448
+ startedAt: z2.string().min(1)
3421
3449
  });
3422
3450
  }
3423
3451
  });