@norskvideo/ctl-sdk 0.1.17 → 0.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -49,6 +49,10 @@ export function parseProductTemplatesFile(raw, path) {
49
49
  rec.sha256 = entry.sha256;
50
50
  if (isRecord(entry.launchDefaults))
51
51
  rec.launchDefaults = entry.launchDefaults;
52
+ if (isRecord(entry.parameterDefaults) &&
53
+ Object.values(entry.parameterDefaults).every((v) => typeof v === "string")) {
54
+ rec.parameterDefaults = entry.parameterDefaults;
55
+ }
52
56
  if (Array.isArray(entry.suggestedSecurityGroups) &&
53
57
  entry.suggestedSecurityGroups.every((l) => typeof l === "string")) {
54
58
  rec.suggestedSecurityGroups = entry.suggestedSecurityGroups;
@@ -49,6 +49,14 @@ export interface ProductTemplateRecord {
49
49
  * authoritatively by the worker at launch. Rides launches as
50
50
  * template_launch_defaults_json. */
51
51
  launchDefaults?: Record<string, unknown>;
52
+ /** Template-author parameter tier (env-var authoring): name → default
53
+ * value. A name the product declared overrides the manifest default;
54
+ * an undeclared name ADDS a template-defined variable. Fused into every
55
+ * launch's parameter map beneath the operator's instance values —
56
+ * instance wins, template default wins over manifest default. Names
57
+ * must be env-var shaped and never `NORSK_`-prefixed (that namespace is
58
+ * infra-injected: NORSK_RUNTIME_ROLE, NORSK_MATCHED_CAPABILITIES, …). */
59
+ parameterDefaults?: Record<string, string>;
52
60
  /** Template-author security-group suggestions, by discovery-tag LABEL
53
61
  * (portable across deployments; ids are not). The launch UI pre-ticks
54
62
  * discovered groups whose label matches — a suggestion the operator