@nodaro/shared 3.67.0 → 3.68.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/{chunk-JTYCJ5OL.cjs → chunk-4XR66IWF.cjs} +51 -13
- package/dist/chunk-4XR66IWF.cjs.map +1 -0
- package/dist/{chunk-6FQBKI2A.cjs → chunk-6JSYNKFL.cjs} +4 -4
- package/dist/{chunk-6FQBKI2A.cjs.map → chunk-6JSYNKFL.cjs.map} +1 -1
- package/dist/{chunk-23IKLMRL.cjs → chunk-BCY3A62O.cjs} +4 -4
- package/dist/{chunk-23IKLMRL.cjs.map → chunk-BCY3A62O.cjs.map} +1 -1
- package/dist/{chunk-RVQW623D.js → chunk-BHL7TAQO.js} +43 -12
- package/dist/chunk-BHL7TAQO.js.map +1 -0
- package/dist/{chunk-CLAKSLXF.js → chunk-E3PU7YC6.js} +3 -3
- package/dist/{chunk-CLAKSLXF.js.map → chunk-E3PU7YC6.js.map} +1 -1
- package/dist/{chunk-ALRXY4QH.cjs → chunk-N7ZJD4CK.cjs} +6 -2
- package/dist/chunk-N7ZJD4CK.cjs.map +1 -0
- package/dist/{chunk-O2QOBA6Q.js → chunk-NPGP6FMU.js} +43 -3
- package/dist/chunk-NPGP6FMU.js.map +1 -0
- package/dist/chunk-NWNRATS3.js +13 -0
- package/dist/chunk-NWNRATS3.js.map +1 -0
- package/dist/{chunk-ZQ2BHOFH.cjs → chunk-Q2LEJXLZ.cjs} +6 -6
- package/dist/{chunk-ZQ2BHOFH.cjs.map → chunk-Q2LEJXLZ.cjs.map} +1 -1
- package/dist/{chunk-O6TBB4IF.cjs → chunk-TZWXZDSX.cjs} +48 -2
- package/dist/chunk-TZWXZDSX.cjs.map +1 -0
- package/dist/{chunk-CFTXW3ZL.js → chunk-UVUHVY7F.js} +3 -3
- package/dist/{chunk-CFTXW3ZL.js.map → chunk-UVUHVY7F.js.map} +1 -1
- package/dist/{chunk-GTBW2KAY.js → chunk-XNJDAW3M.js} +3 -3
- package/dist/{chunk-GTBW2KAY.js.map → chunk-XNJDAW3M.js.map} +1 -1
- package/dist/entries/credits.cjs +192 -164
- package/dist/entries/credits.d.cts +82 -5
- package/dist/entries/credits.d.ts +82 -5
- package/dist/entries/credits.js +2 -2
- package/dist/entries/media.cjs +111 -107
- package/dist/entries/media.d.cts +17 -2
- package/dist/entries/media.d.ts +17 -2
- package/dist/entries/media.js +3 -3
- package/dist/entries/models.cjs +82 -82
- package/dist/entries/models.js +3 -3
- package/dist/entries/runtime-config.cjs +53 -29
- package/dist/entries/runtime-config.d.cts +53 -1
- package/dist/entries/runtime-config.d.ts +53 -1
- package/dist/entries/runtime-config.js +1 -1
- package/dist/entries/types.d.cts +12 -5
- package/dist/entries/types.d.ts +12 -5
- package/dist/index.cjs +435 -379
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/__tests__/add-captions-nemotron-pricing.test.ts +13 -1
- package/src/__tests__/fixtures/measured-input-quote-parity.json +1816 -1
- package/src/__tests__/fixtures/planned-length-quote-parity.json +55 -10
- package/src/__tests__/fixtures/video-utility-quote-parity.json +834 -38
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +32 -0
- package/src/__tests__/runtime-config-lists.test.ts +92 -0
- package/src/catalog-projection.ts +12 -5
- package/src/credit-estimators/add-captions-nemotron.ts +11 -1
- package/src/credit-estimators/index.ts +6 -1
- package/src/credit-estimators/nemotron-transcribe.ts +35 -3
- package/src/credit-estimators/pitch-tempo.ts +14 -0
- package/src/credit-estimators/video-sfx.ts +15 -0
- package/src/credit-estimators/video-utils.ts +48 -12
- package/src/entries/credits.ts +1 -0
- package/src/entries/runtime-config.ts +10 -1
- package/src/lip-sync-pricing.ts +15 -0
- package/src/priced-clip-seconds.ts +19 -1
- package/src/runtime-config/lists.ts +87 -0
- package/src/runtime-config/worlds.ts +10 -0
- package/dist/chunk-ALRXY4QH.cjs.map +0 -1
- package/dist/chunk-JTYCJ5OL.cjs.map +0 -1
- package/dist/chunk-O2QOBA6Q.js.map +0 -1
- package/dist/chunk-O6TBB4IF.cjs.map +0 -1
- package/dist/chunk-RVQW623D.js.map +0 -1
- package/dist/chunk-SMOO5FAH.js +0 -10
- package/dist/chunk-SMOO5FAH.js.map +0 -1
|
@@ -45,9 +45,61 @@ interface SurfaceWorlds {
|
|
|
45
45
|
}
|
|
46
46
|
/** Does the profile's allowlist let this world through? (Node availability is checked separately.) */
|
|
47
47
|
declare function worldAllowed(worlds: SurfaceWorlds | undefined, id: string): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether a world is offered: the profile's allowlist lets it through and none
|
|
50
|
+
* of the node types it runs (`WORLD_REQUIRED_NODE_TYPES`) is withheld, as
|
|
51
|
+
* `nodeWithheld` judges them: the platform per viewer, or a client by the
|
|
52
|
+
* deployment's own lists (`nodeListsWithhold`) before the platform's answer.
|
|
53
|
+
*/
|
|
54
|
+
declare function worldOffered(worlds: SurfaceWorlds | undefined, id: WorldId, nodeWithheld: (type: string) => boolean): boolean;
|
|
48
55
|
/** Every world, `order`'s known ids first (each once), then the rest in canonical order. */
|
|
49
56
|
declare function orderWorlds(order?: readonly string[]): WorldId[];
|
|
50
57
|
|
|
58
|
+
/**
|
|
59
|
+
* How a deployment's own lists withhold what it offers: `surface.nodes` and
|
|
60
|
+
* `surface.models` in its runtime configuration, each an `allow` / `deny`
|
|
61
|
+
* pair. This is the platform's rule before any admin setting (Admin →
|
|
62
|
+
* Availability can replace the lists, and switches models off); a client
|
|
63
|
+
* applies it the same way before the platform's per-viewer answer
|
|
64
|
+
* (`GET /v1/surface/availability`) has arrived, or after it could not be read,
|
|
65
|
+
* so a restricted deployment is judged by its own lists from the first paint.
|
|
66
|
+
* The worlds' half is `worldOffered` (worlds.ts).
|
|
67
|
+
*
|
|
68
|
+
* Structural vocabulary only (ids and node-type names), no content.
|
|
69
|
+
*/
|
|
70
|
+
/** One kind's lists (`surface.nodes`, `surface.models`). */
|
|
71
|
+
interface SurfaceAllowDeny {
|
|
72
|
+
readonly allow: readonly string[];
|
|
73
|
+
readonly deny: readonly string[];
|
|
74
|
+
}
|
|
75
|
+
/** Whether a kind's lists say anything: either one names an id. */
|
|
76
|
+
declare function listsSet(lists: SurfaceAllowDeny | undefined): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether `lists` withhold `id`. A non-empty `allow` is a whitelist: it
|
|
79
|
+
* withholds every id outside it that it governs (`gated`: a whitelist only
|
|
80
|
+
* inverts over the ids an operator can see and set). `deny` withholds every
|
|
81
|
+
* id it names, governed or not, and wins over `allow`.
|
|
82
|
+
*/
|
|
83
|
+
declare function listsWithhold(lists: SurfaceAllowDeny, id: string, gated: (id: string) => boolean): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Node types an `allow` list never withholds by leaving them out, so only
|
|
86
|
+
* `deny` withholds them: the canvas's utility nodes (they cost nothing and run
|
|
87
|
+
* nothing, and a whitelist that forgot the sticky note must not take away the
|
|
88
|
+
* canvas's notes) and Site Capture (an install switch governs it). The
|
|
89
|
+
* platform's own registry is held to this list.
|
|
90
|
+
*/
|
|
91
|
+
declare const ALLOW_LIST_EXEMPT_NODE_TYPES: readonly string[];
|
|
92
|
+
/** Whether a node whitelist governs `type`: every node type but {@link ALLOW_LIST_EXEMPT_NODE_TYPES}. */
|
|
93
|
+
declare function isAllowListGatedNodeType(type: string): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether a deployment's node lists withhold `type`: {@link listsWithhold}
|
|
96
|
+
* over the node types a whitelist governs, and a capability that follows a
|
|
97
|
+
* denied node. `gated` is the caller's universe; by default
|
|
98
|
+
* {@link isAllowListGatedNodeType}, which governs a type it has never heard of
|
|
99
|
+
* (a client then withholds it rather than offering it).
|
|
100
|
+
*/
|
|
101
|
+
declare function nodeListsWithhold(nodes: SurfaceAllowDeny, type: string, gated?: (type: string) => boolean): boolean;
|
|
102
|
+
|
|
51
103
|
/**
|
|
52
104
|
* The deployment runtime config — the object a Nodaro platform container
|
|
53
105
|
* writes to `/config.js` at boot as `window.__NODARO_RUNTIME__`, and that every
|
|
@@ -330,4 +382,4 @@ declare function parseRuntimeConfig(raw: unknown): NodaroRuntimeConfig;
|
|
|
330
382
|
/** Read and parse the runtime config `/config.js` set on `scope` (default: the global object). */
|
|
331
383
|
declare function readRuntimeConfig(scope?: unknown): NodaroRuntimeConfig;
|
|
332
384
|
|
|
333
|
-
export { type NodaroRuntimeConfig, RUNTIME_CONFIG_GLOBAL, RUNTIME_CONFIG_KEYS, RUNTIME_SURFACE_DEFAULT, type RuntimeConfigKey, type RuntimeSurface, type RuntimeSurfaceBilling, type RuntimeSurfaceBrand, type RuntimeSurfaceSibling, type RuntimeSurfaceStrings, SURFACE_CATALOG_IMAGES, SURFACE_HEADER_MODES, type SurfaceCatalogImages, type SurfaceHeaderMode, type SurfaceWorlds, UI_STRING_PRODUCTS, type UiStringManifest, type UiStringProduct, WORLD_IDS, WORLD_REQUIRED_NODE_TYPES, type WorldId, buildUiStringManifest, isBrandLogoRef, isHttpsOrigin, isLegacyUiHost, isSameSitePath, isSsoOnly, isWorldId, orderWorlds, parseRuntimeConfig, parseRuntimeStrings, parseRuntimeSurface, readRuntimeConfig, resolveRuntimeApiBase, resolveRuntimeSupabaseUrl, surfaceRequiresSignIn, surfaceStringOverride, surfaceUnitLabel, uiStringManifestFile, uiStringPlaceholders, worldAllowed };
|
|
385
|
+
export { ALLOW_LIST_EXEMPT_NODE_TYPES, type NodaroRuntimeConfig, RUNTIME_CONFIG_GLOBAL, RUNTIME_CONFIG_KEYS, RUNTIME_SURFACE_DEFAULT, type RuntimeConfigKey, type RuntimeSurface, type RuntimeSurfaceBilling, type RuntimeSurfaceBrand, type RuntimeSurfaceSibling, type RuntimeSurfaceStrings, SURFACE_CATALOG_IMAGES, SURFACE_HEADER_MODES, type SurfaceAllowDeny, type SurfaceCatalogImages, type SurfaceHeaderMode, type SurfaceWorlds, UI_STRING_PRODUCTS, type UiStringManifest, type UiStringProduct, WORLD_IDS, WORLD_REQUIRED_NODE_TYPES, type WorldId, buildUiStringManifest, isAllowListGatedNodeType, isBrandLogoRef, isHttpsOrigin, isLegacyUiHost, isSameSitePath, isSsoOnly, isWorldId, listsSet, listsWithhold, nodeListsWithhold, orderWorlds, parseRuntimeConfig, parseRuntimeStrings, parseRuntimeSurface, readRuntimeConfig, resolveRuntimeApiBase, resolveRuntimeSupabaseUrl, surfaceRequiresSignIn, surfaceStringOverride, surfaceUnitLabel, uiStringManifestFile, uiStringPlaceholders, worldAllowed, worldOffered };
|
|
@@ -45,9 +45,61 @@ interface SurfaceWorlds {
|
|
|
45
45
|
}
|
|
46
46
|
/** Does the profile's allowlist let this world through? (Node availability is checked separately.) */
|
|
47
47
|
declare function worldAllowed(worlds: SurfaceWorlds | undefined, id: string): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether a world is offered: the profile's allowlist lets it through and none
|
|
50
|
+
* of the node types it runs (`WORLD_REQUIRED_NODE_TYPES`) is withheld, as
|
|
51
|
+
* `nodeWithheld` judges them: the platform per viewer, or a client by the
|
|
52
|
+
* deployment's own lists (`nodeListsWithhold`) before the platform's answer.
|
|
53
|
+
*/
|
|
54
|
+
declare function worldOffered(worlds: SurfaceWorlds | undefined, id: WorldId, nodeWithheld: (type: string) => boolean): boolean;
|
|
48
55
|
/** Every world, `order`'s known ids first (each once), then the rest in canonical order. */
|
|
49
56
|
declare function orderWorlds(order?: readonly string[]): WorldId[];
|
|
50
57
|
|
|
58
|
+
/**
|
|
59
|
+
* How a deployment's own lists withhold what it offers: `surface.nodes` and
|
|
60
|
+
* `surface.models` in its runtime configuration, each an `allow` / `deny`
|
|
61
|
+
* pair. This is the platform's rule before any admin setting (Admin →
|
|
62
|
+
* Availability can replace the lists, and switches models off); a client
|
|
63
|
+
* applies it the same way before the platform's per-viewer answer
|
|
64
|
+
* (`GET /v1/surface/availability`) has arrived, or after it could not be read,
|
|
65
|
+
* so a restricted deployment is judged by its own lists from the first paint.
|
|
66
|
+
* The worlds' half is `worldOffered` (worlds.ts).
|
|
67
|
+
*
|
|
68
|
+
* Structural vocabulary only (ids and node-type names), no content.
|
|
69
|
+
*/
|
|
70
|
+
/** One kind's lists (`surface.nodes`, `surface.models`). */
|
|
71
|
+
interface SurfaceAllowDeny {
|
|
72
|
+
readonly allow: readonly string[];
|
|
73
|
+
readonly deny: readonly string[];
|
|
74
|
+
}
|
|
75
|
+
/** Whether a kind's lists say anything: either one names an id. */
|
|
76
|
+
declare function listsSet(lists: SurfaceAllowDeny | undefined): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether `lists` withhold `id`. A non-empty `allow` is a whitelist: it
|
|
79
|
+
* withholds every id outside it that it governs (`gated`: a whitelist only
|
|
80
|
+
* inverts over the ids an operator can see and set). `deny` withholds every
|
|
81
|
+
* id it names, governed or not, and wins over `allow`.
|
|
82
|
+
*/
|
|
83
|
+
declare function listsWithhold(lists: SurfaceAllowDeny, id: string, gated: (id: string) => boolean): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Node types an `allow` list never withholds by leaving them out, so only
|
|
86
|
+
* `deny` withholds them: the canvas's utility nodes (they cost nothing and run
|
|
87
|
+
* nothing, and a whitelist that forgot the sticky note must not take away the
|
|
88
|
+
* canvas's notes) and Site Capture (an install switch governs it). The
|
|
89
|
+
* platform's own registry is held to this list.
|
|
90
|
+
*/
|
|
91
|
+
declare const ALLOW_LIST_EXEMPT_NODE_TYPES: readonly string[];
|
|
92
|
+
/** Whether a node whitelist governs `type`: every node type but {@link ALLOW_LIST_EXEMPT_NODE_TYPES}. */
|
|
93
|
+
declare function isAllowListGatedNodeType(type: string): boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether a deployment's node lists withhold `type`: {@link listsWithhold}
|
|
96
|
+
* over the node types a whitelist governs, and a capability that follows a
|
|
97
|
+
* denied node. `gated` is the caller's universe; by default
|
|
98
|
+
* {@link isAllowListGatedNodeType}, which governs a type it has never heard of
|
|
99
|
+
* (a client then withholds it rather than offering it).
|
|
100
|
+
*/
|
|
101
|
+
declare function nodeListsWithhold(nodes: SurfaceAllowDeny, type: string, gated?: (type: string) => boolean): boolean;
|
|
102
|
+
|
|
51
103
|
/**
|
|
52
104
|
* The deployment runtime config — the object a Nodaro platform container
|
|
53
105
|
* writes to `/config.js` at boot as `window.__NODARO_RUNTIME__`, and that every
|
|
@@ -330,4 +382,4 @@ declare function parseRuntimeConfig(raw: unknown): NodaroRuntimeConfig;
|
|
|
330
382
|
/** Read and parse the runtime config `/config.js` set on `scope` (default: the global object). */
|
|
331
383
|
declare function readRuntimeConfig(scope?: unknown): NodaroRuntimeConfig;
|
|
332
384
|
|
|
333
|
-
export { type NodaroRuntimeConfig, RUNTIME_CONFIG_GLOBAL, RUNTIME_CONFIG_KEYS, RUNTIME_SURFACE_DEFAULT, type RuntimeConfigKey, type RuntimeSurface, type RuntimeSurfaceBilling, type RuntimeSurfaceBrand, type RuntimeSurfaceSibling, type RuntimeSurfaceStrings, SURFACE_CATALOG_IMAGES, SURFACE_HEADER_MODES, type SurfaceCatalogImages, type SurfaceHeaderMode, type SurfaceWorlds, UI_STRING_PRODUCTS, type UiStringManifest, type UiStringProduct, WORLD_IDS, WORLD_REQUIRED_NODE_TYPES, type WorldId, buildUiStringManifest, isBrandLogoRef, isHttpsOrigin, isLegacyUiHost, isSameSitePath, isSsoOnly, isWorldId, orderWorlds, parseRuntimeConfig, parseRuntimeStrings, parseRuntimeSurface, readRuntimeConfig, resolveRuntimeApiBase, resolveRuntimeSupabaseUrl, surfaceRequiresSignIn, surfaceStringOverride, surfaceUnitLabel, uiStringManifestFile, uiStringPlaceholders, worldAllowed };
|
|
385
|
+
export { ALLOW_LIST_EXEMPT_NODE_TYPES, type NodaroRuntimeConfig, RUNTIME_CONFIG_GLOBAL, RUNTIME_CONFIG_KEYS, RUNTIME_SURFACE_DEFAULT, type RuntimeConfigKey, type RuntimeSurface, type RuntimeSurfaceBilling, type RuntimeSurfaceBrand, type RuntimeSurfaceSibling, type RuntimeSurfaceStrings, SURFACE_CATALOG_IMAGES, SURFACE_HEADER_MODES, type SurfaceAllowDeny, type SurfaceCatalogImages, type SurfaceHeaderMode, type SurfaceWorlds, UI_STRING_PRODUCTS, type UiStringManifest, type UiStringProduct, WORLD_IDS, WORLD_REQUIRED_NODE_TYPES, type WorldId, buildUiStringManifest, isAllowListGatedNodeType, isBrandLogoRef, isHttpsOrigin, isLegacyUiHost, isSameSitePath, isSsoOnly, isWorldId, listsSet, listsWithhold, nodeListsWithhold, orderWorlds, parseRuntimeConfig, parseRuntimeStrings, parseRuntimeSurface, readRuntimeConfig, resolveRuntimeApiBase, resolveRuntimeSupabaseUrl, surfaceRequiresSignIn, surfaceStringOverride, surfaceUnitLabel, uiStringManifestFile, uiStringPlaceholders, worldAllowed, worldOffered };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { RUNTIME_CONFIG_GLOBAL, RUNTIME_CONFIG_KEYS, RUNTIME_SURFACE_DEFAULT, SURFACE_CATALOG_IMAGES, SURFACE_HEADER_MODES, UI_STRING_PRODUCTS, WORLD_IDS, WORLD_REQUIRED_NODE_TYPES, buildUiStringManifest, isBrandLogoRef, isHttpsOrigin, isLegacyUiHost, isSameSitePath, isSsoOnly, isWorldId, orderWorlds, parseRuntimeConfig, parseRuntimeStrings, parseRuntimeSurface, readRuntimeConfig, resolveRuntimeApiBase, resolveRuntimeSupabaseUrl, surfaceRequiresSignIn, surfaceStringOverride, surfaceUnitLabel, uiStringManifestFile, uiStringPlaceholders, worldAllowed } from '../chunk-
|
|
1
|
+
export { ALLOW_LIST_EXEMPT_NODE_TYPES, RUNTIME_CONFIG_GLOBAL, RUNTIME_CONFIG_KEYS, RUNTIME_SURFACE_DEFAULT, SURFACE_CATALOG_IMAGES, SURFACE_HEADER_MODES, UI_STRING_PRODUCTS, WORLD_IDS, WORLD_REQUIRED_NODE_TYPES, buildUiStringManifest, isAllowListGatedNodeType, isBrandLogoRef, isHttpsOrigin, isLegacyUiHost, isSameSitePath, isSsoOnly, isWorldId, listsSet, listsWithhold, nodeListsWithhold, orderWorlds, parseRuntimeConfig, parseRuntimeStrings, parseRuntimeSurface, readRuntimeConfig, resolveRuntimeApiBase, resolveRuntimeSupabaseUrl, surfaceRequiresSignIn, surfaceStringOverride, surfaceUnitLabel, uiStringManifestFile, uiStringPlaceholders, worldAllowed, worldOffered } from '../chunk-NPGP6FMU.js';
|
|
2
2
|
//# sourceMappingURL=runtime-config.js.map
|
|
3
3
|
//# sourceMappingURL=runtime-config.js.map
|
package/dist/entries/types.d.cts
CHANGED
|
@@ -132,6 +132,13 @@ interface ProjectedCatalogOption {
|
|
|
132
132
|
* look previews, which only Nodaro Cloud serves. Absent when the option has
|
|
133
133
|
* no picture. Content-hashed where self-hosted: a changed picture gets a new
|
|
134
134
|
* URL, so it can be cached indefinitely.
|
|
135
|
+
*
|
|
136
|
+
* On a deployment that shows its own pictures (`catalogs.images: "own"`) it
|
|
137
|
+
* is the deployment's picture: an absolute URL on its media host, or — on
|
|
138
|
+
* the REST replies — a path on the deployment's own site (`/brand/…`), which
|
|
139
|
+
* resolves against the address the API was called at (a page on that site
|
|
140
|
+
* uses it as it is; a client elsewhere resolves it against its API base).
|
|
141
|
+
* The MCP tools give that path absolute.
|
|
135
142
|
*/
|
|
136
143
|
imageUrl?: string;
|
|
137
144
|
/**
|
|
@@ -143,11 +150,11 @@ interface ProjectedCatalogOption {
|
|
|
143
150
|
*/
|
|
144
151
|
imageSrcSet?: string;
|
|
145
152
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
153
|
+
* The option's enlarged picture: the larger version to show where a picker
|
|
154
|
+
* shows the option big (hover, zoom, a detail view). Present only on a
|
|
155
|
+
* deployment that shows its own pictures (`catalogs.images: "own"`) and gave
|
|
156
|
+
* one for this option, on the REST replies; on its media host or a path on
|
|
157
|
+
* its site, like `imageUrl`. Absent otherwise — draw `imageUrl` there instead.
|
|
151
158
|
*/
|
|
152
159
|
imageLargeUrl?: string;
|
|
153
160
|
}
|
package/dist/entries/types.d.ts
CHANGED
|
@@ -132,6 +132,13 @@ interface ProjectedCatalogOption {
|
|
|
132
132
|
* look previews, which only Nodaro Cloud serves. Absent when the option has
|
|
133
133
|
* no picture. Content-hashed where self-hosted: a changed picture gets a new
|
|
134
134
|
* URL, so it can be cached indefinitely.
|
|
135
|
+
*
|
|
136
|
+
* On a deployment that shows its own pictures (`catalogs.images: "own"`) it
|
|
137
|
+
* is the deployment's picture: an absolute URL on its media host, or — on
|
|
138
|
+
* the REST replies — a path on the deployment's own site (`/brand/…`), which
|
|
139
|
+
* resolves against the address the API was called at (a page on that site
|
|
140
|
+
* uses it as it is; a client elsewhere resolves it against its API base).
|
|
141
|
+
* The MCP tools give that path absolute.
|
|
135
142
|
*/
|
|
136
143
|
imageUrl?: string;
|
|
137
144
|
/**
|
|
@@ -143,11 +150,11 @@ interface ProjectedCatalogOption {
|
|
|
143
150
|
*/
|
|
144
151
|
imageSrcSet?: string;
|
|
145
152
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
153
|
+
* The option's enlarged picture: the larger version to show where a picker
|
|
154
|
+
* shows the option big (hover, zoom, a detail view). Present only on a
|
|
155
|
+
* deployment that shows its own pictures (`catalogs.images: "own"`) and gave
|
|
156
|
+
* one for this option, on the REST replies; on its media host or a path on
|
|
157
|
+
* its site, like `imageUrl`. Absent otherwise — draw `imageUrl` there instead.
|
|
151
158
|
*/
|
|
152
159
|
imageLargeUrl?: string;
|
|
153
160
|
}
|