@norskvideo/ctl-product-template-schema 0.1.2 → 0.1.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/index.d.ts +10 -0
- package/index.js +3 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ export declare const ProductTemplateManifestSchema: z.ZodObject<{
|
|
|
50
50
|
runtimeScreenUrl: z.ZodString;
|
|
51
51
|
runtimeScreenLabel: z.ZodOptional<z.ZodString>;
|
|
52
52
|
runtimeScreenService: z.ZodOptional<z.ZodString>;
|
|
53
|
+
runtimeScreenReadyWhen: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
running: "running";
|
|
55
|
+
healthy: "healthy";
|
|
56
|
+
never: "never";
|
|
57
|
+
}>>;
|
|
53
58
|
}, z.core.$strip>>;
|
|
54
59
|
debug: z.ZodOptional<z.ZodObject<{
|
|
55
60
|
studio: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -154,6 +159,11 @@ export declare const ProductTemplateMaterialsSchema: z.ZodObject<{
|
|
|
154
159
|
runtimeScreenUrl: z.ZodString;
|
|
155
160
|
runtimeScreenLabel: z.ZodOptional<z.ZodString>;
|
|
156
161
|
runtimeScreenService: z.ZodOptional<z.ZodString>;
|
|
162
|
+
runtimeScreenReadyWhen: z.ZodOptional<z.ZodEnum<{
|
|
163
|
+
running: "running";
|
|
164
|
+
healthy: "healthy";
|
|
165
|
+
never: "never";
|
|
166
|
+
}>>;
|
|
157
167
|
}, z.core.$strip>>;
|
|
158
168
|
debug: z.ZodOptional<z.ZodObject<{
|
|
159
169
|
studio: z.ZodOptional<z.ZodBoolean>;
|
package/index.js
CHANGED
|
@@ -31,6 +31,9 @@ const ProductTemplateUiSchema = z.object({
|
|
|
31
31
|
runtimeScreenService: z.string().optional().meta({
|
|
32
32
|
description: "Compose service that hosts the runtime screen. Omit for the conventional `studio`; a product that serves its dashboard from a different service names it here so the runner routes the catch-all there.",
|
|
33
33
|
}),
|
|
34
|
+
runtimeScreenReadyWhen: z.enum(["running", "healthy", "never"]).optional().meta({
|
|
35
|
+
description: "When the runner may offer the runtime-screen link, judged on `runtimeScreenService`'s own container state. Omit for the default `running` — the link goes live as soon as the service is up, which is the only state a service without a healthcheck ever reaches. `healthy` holds it back until the service's healthcheck passes, for a product whose screen 404s or misbehaves before it is fully warm. `never` suppresses the link entirely.",
|
|
36
|
+
}),
|
|
34
37
|
});
|
|
35
38
|
// Per-instance Debug menu toggles. The runner always offers raw Studio +
|
|
36
39
|
// Visualiser debug surfaces for an instance; a product opts a link out when
|