@stardeck-customer-apps/compose 0.15.0 → 0.16.0

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/cli.js CHANGED
@@ -2278,7 +2278,18 @@ var modulePermissionClaimSchema = import_zod.z.object({
2278
2278
  * External Viewer never holds one. An organization that wants different access duplicates the
2279
2279
  * standard role and edits the copy.
2280
2280
  */
2281
- roles: import_zod.z.array(import_zod.z.enum(MODULE_PERMISSION_DEFAULT_ROLES)).optional()
2281
+ roles: import_zod.z.array(import_zod.z.enum(MODULE_PERMISSION_DEFAULT_ROLES)).optional(),
2282
+ /**
2283
+ * Keys this one takes over (a retired or renamed key). On the update that stops declaring
2284
+ * them, every custom role still holding one is granted this key before the old one goes,
2285
+ * so nobody loses access in the change. Standard roles follow `roles` as always.
2286
+ */
2287
+ replaces: import_zod.z.array(
2288
+ import_zod.z.string().regex(
2289
+ /^[a-z0-9][a-z0-9-]*:[a-z0-9][a-z0-9-]*$/,
2290
+ "must be a lowercase resource:action key"
2291
+ )
2292
+ ).max(20).optional()
2282
2293
  }).strict();
2283
2294
  var seedBundleSchema = import_zod.z.object({
2284
2295
  table: tableNameSchema,
package/dist/index.js CHANGED
@@ -2396,7 +2396,18 @@ var modulePermissionClaimSchema = import_zod2.z.object({
2396
2396
  * External Viewer never holds one. An organization that wants different access duplicates the
2397
2397
  * standard role and edits the copy.
2398
2398
  */
2399
- roles: import_zod2.z.array(import_zod2.z.enum(MODULE_PERMISSION_DEFAULT_ROLES)).optional()
2399
+ roles: import_zod2.z.array(import_zod2.z.enum(MODULE_PERMISSION_DEFAULT_ROLES)).optional(),
2400
+ /**
2401
+ * Keys this one takes over (a retired or renamed key). On the update that stops declaring
2402
+ * them, every custom role still holding one is granted this key before the old one goes,
2403
+ * so nobody loses access in the change. Standard roles follow `roles` as always.
2404
+ */
2405
+ replaces: import_zod2.z.array(
2406
+ import_zod2.z.string().regex(
2407
+ /^[a-z0-9][a-z0-9-]*:[a-z0-9][a-z0-9-]*$/,
2408
+ "must be a lowercase resource:action key"
2409
+ )
2410
+ ).max(20).optional()
2400
2411
  }).strict();
2401
2412
  var seedBundleSchema = import_zod2.z.object({
2402
2413
  table: tableNameSchema,
package/dist/index.mjs CHANGED
@@ -2377,7 +2377,18 @@ var modulePermissionClaimSchema = z2.object({
2377
2377
  * External Viewer never holds one. An organization that wants different access duplicates the
2378
2378
  * standard role and edits the copy.
2379
2379
  */
2380
- roles: z2.array(z2.enum(MODULE_PERMISSION_DEFAULT_ROLES)).optional()
2380
+ roles: z2.array(z2.enum(MODULE_PERMISSION_DEFAULT_ROLES)).optional(),
2381
+ /**
2382
+ * Keys this one takes over (a retired or renamed key). On the update that stops declaring
2383
+ * them, every custom role still holding one is granted this key before the old one goes,
2384
+ * so nobody loses access in the change. Standard roles follow `roles` as always.
2385
+ */
2386
+ replaces: z2.array(
2387
+ z2.string().regex(
2388
+ /^[a-z0-9][a-z0-9-]*:[a-z0-9][a-z0-9-]*$/,
2389
+ "must be a lowercase resource:action key"
2390
+ )
2391
+ ).max(20).optional()
2381
2392
  }).strict();
2382
2393
  var seedBundleSchema = z2.object({
2383
2394
  table: tableNameSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stardeck-customer-apps/compose",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Regenerates a Stardeck app's Module-rail artifacts — the six src/*.gen.ts registries and every route/endpoint stub — from src/modules/*/module.json",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",