@mesh-tech/mesh-cli 0.22.0 → 0.22.2

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
@@ -6303,7 +6303,8 @@ var init_src = __esm({
6303
6303
  docs: z.object({
6304
6304
  url: z.string().min(1),
6305
6305
  contentHash: z.string().min(1),
6306
- siteUrl: z.string().min(1).optional()
6306
+ siteUrl: z.string().min(1).optional(),
6307
+ siteInternalUrl: z.string().min(1).optional()
6307
6308
  }),
6308
6309
  enabledOps: z.array(z.string()),
6309
6310
  // The consumer schema strips unknown keys, so a producer-side field that is
@@ -11083,7 +11084,7 @@ function scanApp(root, appRel) {
11083
11084
  hit(
11084
11085
  "METADATA_UNPUBLISHED",
11085
11086
  rel(root, pointer.file),
11086
- "AppAuthzPointer present but no compiled ops-hub metadata (compileOpsHubMetadata export or SpiceDBSchema) \u2014 the Hub's create-key and role catalog 409 METADATA_UNPUBLISHED"
11087
+ "AppAuthzPointer present but no compiled ops-hub metadata (opsHubMetadata: compileOpsHubMetadata(schemaDef) on the pointer, or a SpiceDBSchema) \u2014 the Hub's create-key and role catalog 409 METADATA_UNPUBLISHED"
11087
11088
  );
11088
11089
  }
11089
11090
  const anti = (code, re, why) => {
@@ -11260,7 +11261,7 @@ var init_app_check = __esm({
11260
11261
  gate: "H",
11261
11262
  title: "Access surfaced through the Hub",
11262
11263
  severity: "block",
11263
- remediation: 'publish ops-hub metadata and end index.ts with new mesh.auth.AppAuthzPointer("authz", { env, mode, opsHubMetadataRef })',
11264
+ remediation: 'end index.ts with new mesh.auth.AppAuthzPointer("authz", { env, mode, opsHubMetadata: compileOpsHubMetadata(schemaDef) }) (role-gating) or { env, mode, opsHubMetadataRef: schema.opsHubMetadataRef } (policy-engine)',
11264
11265
  scope: "app"
11265
11266
  },
11266
11267
  METADATA_UNPUBLISHED: {