@norskvideo/ctl-product-template-schema 0.1.20 → 0.1.21

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.
Files changed (3) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +3 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -170,6 +170,7 @@ export declare const ProductTemplateManifestSchema: z.ZodObject<{
170
170
  isStudio: z.ZodOptional<z.ZodBoolean>;
171
171
  supportsCustomAssets: z.ZodOptional<z.ZodBoolean>;
172
172
  requiresWorkingDirectory: z.ZodOptional<z.ZodBoolean>;
173
+ studioAccessModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
173
174
  sideload: z.ZodOptional<z.ZodObject<{
174
175
  gpuInference: z.ZodOptional<z.ZodBoolean>;
175
176
  models: z.ZodOptional<z.ZodBoolean>;
@@ -376,6 +377,7 @@ export declare const ProductTemplateMaterialsSchema: z.ZodObject<{
376
377
  isStudio: z.ZodOptional<z.ZodBoolean>;
377
378
  supportsCustomAssets: z.ZodOptional<z.ZodBoolean>;
378
379
  requiresWorkingDirectory: z.ZodOptional<z.ZodBoolean>;
380
+ studioAccessModes: z.ZodOptional<z.ZodArray<z.ZodString>>;
379
381
  sideload: z.ZodOptional<z.ZodObject<{
380
382
  gpuInference: z.ZodOptional<z.ZodBoolean>;
381
383
  models: z.ZodOptional<z.ZodBoolean>;
package/index.js CHANGED
@@ -306,6 +306,9 @@ export const ProductTemplateManifestSchema = z
306
306
  requiresWorkingDirectory: z.boolean().optional().meta({
307
307
  description: "When true, the operator must choose a working directory at launch (a dev product template they own and keep), rather than getting the auto-assigned per-instance default. The runner's launch UI makes the working-directory field mandatory.",
308
308
  }),
309
+ studioAccessModes: z.array(z.string().min(1)).optional().meta({
310
+ description: "The NORSK_STUDIO_ACCESS values the Studio image THIS product template pins understands. The launcher sets that variable only when the mode it is in appears here; absent, it sets nothing and Studio runs with its gate dormant, as it does today. Declared here rather than on the product manifest because this template's compose.yml is what pins the Studio image, so the declaration and the image it vouches for travel in one tar. A list rather than a boolean: a launcher must never send a word this image predates, and an unrecognised value resolves to refusing everything inside Studio.",
311
+ }),
309
312
  sideload: ProductTemplateSideloadSchema.optional().meta({
310
313
  description: "CUDA sideload bundle needs. Only gpu-inference is declared (gpu-video follows the GPU reservation automatically). The runner mounts the matching bundle when the image is slimmed and the GPU is reserved.",
311
314
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-product-template-schema",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {