@mesh-tech/mesh-cli 0.12.2 → 0.12.4

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, 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
  }
@@ -3602,7 +3609,9 @@ async function reconcileHubRedirectUris(pat, projectId, app) {
3602
3609
  .../* @__PURE__ */ new Set([
3603
3610
  ...cfg.postLogoutRedirectUris ?? [],
3604
3611
  `http://localhost:${hubPort()}`,
3605
- `http://localhost:${DEFAULT_HUB_PORT}`
3612
+ `http://localhost:${hubPort()}/`,
3613
+ `http://localhost:${DEFAULT_HUB_PORT}`,
3614
+ `http://localhost:${DEFAULT_HUB_PORT}/`
3606
3615
  ])
3607
3616
  ];
3608
3617
  if (redirectUris.length === (cfg.redirectUris ?? []).length && postLogoutRedirectUris.length === (cfg.postLogoutRedirectUris ?? []).length) {
@@ -3643,7 +3652,14 @@ async function ensureHubApp(pat, projectId) {
3643
3652
  name: HUB_APP_NAME,
3644
3653
  redirectUris: [.../* @__PURE__ */ new Set([hubRedirectUri(), HUB_DEFAULT_REDIRECT_URI])],
3645
3654
  postLogoutRedirectUris: [
3646
- .../* @__PURE__ */ new Set([`http://localhost:${hubPort()}`, `http://localhost:${DEFAULT_HUB_PORT}`])
3655
+ // Both slash forms see reconcileHubRedirectUris; Zitadel exact-matches
3656
+ // and the Hub's /logout sends the trailing-slash form.
3657
+ .../* @__PURE__ */ new Set([
3658
+ `http://localhost:${hubPort()}`,
3659
+ `http://localhost:${hubPort()}/`,
3660
+ `http://localhost:${DEFAULT_HUB_PORT}`,
3661
+ `http://localhost:${DEFAULT_HUB_PORT}/`
3662
+ ])
3647
3663
  ],
3648
3664
  responseTypes: ["OIDC_RESPONSE_TYPE_CODE"],
3649
3665
  grantTypes: ["OIDC_GRANT_TYPE_AUTHORIZATION_CODE", "OIDC_GRANT_TYPE_REFRESH_TOKEN"],