@camstack/types 1.2.417 → 1.2.419
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/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/addons.cap.d.ts +67 -1
- package/dist/capabilities/capability-definition.d.ts +5 -0
- package/dist/capabilities/color.cap.d.ts +1 -0
- package/dist/capabilities/composer.cap.d.ts +201 -0
- package/dist/capabilities/core-blocks.cap.d.ts +1441 -0
- package/dist/capabilities/group-commands.cap.d.ts +49 -0
- package/dist/capabilities/group-status.cap.d.ts +46 -0
- package/dist/capabilities/index.d.ts +6 -2
- package/dist/capabilities/motion.cap.d.ts +12 -4
- package/dist/capabilities/notification-rules.cap.d.ts +46 -0
- package/dist/capabilities/osd-manager.cap.d.ts +12 -0
- package/dist/client.js +37 -5
- package/dist/client.mjs +37 -5
- package/dist/composition/composition-report.d.ts +72 -0
- package/dist/composition/composition.d.ts +286 -5
- package/dist/composition/helpers/actuator.d.ts +58 -0
- package/dist/composition/helpers/aggregate.d.ts +41 -0
- package/dist/composition/helpers/catalog.d.ts +47 -0
- package/dist/composition/helpers/compile.d.ts +22 -0
- package/dist/composition/helpers/index.d.ts +7 -0
- package/dist/composition/helpers/save.d.ts +18 -0
- package/dist/composition/helpers/source-pick.d.ts +40 -0
- package/dist/composition/helpers/spec.d.ts +43 -0
- package/dist/composition/index.d.ts +1 -0
- package/dist/composition/source-ref.d.ts +11 -0
- package/dist/composition/validate-composition.d.ts +5 -0
- package/dist/{composition-kEl9mevu.mjs → composition-OhpuespA.mjs} +121 -8
- package/dist/{composition-DsmkwP9-.js → composition-re1aezX9.js} +198 -7
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
- package/dist/enums/event-category.d.ts +8 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-DXZ3f9Q5.js → event-category-Ave2VSxY.js} +8 -0
- package/dist/{event-category-DHXxB8t9.mjs → event-category-CT-hz5Rb.mjs} +8 -0
- package/dist/generated/addon-api.d.ts +35 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +5 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/device-local-state.d.ts +6 -0
- package/dist/generated/device-proxy.d.ts +6 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.js +1040 -24
- package/dist/index.mjs +1006 -25
- package/dist/interfaces/event-bus.d.ts +15 -0
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-gtskVoMw.js → sleep-YJ6FVsUu.js} +26 -2
- package/dist/{sleep-CARd6wZF.mjs → sleep-bykKrTgu.mjs} +26 -2
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -22677,6 +22677,8 @@ var NcSystemEventKindSchema = z.enum([
|
|
|
22677
22677
|
"detection-blind",
|
|
22678
22678
|
"motion-noisy",
|
|
22679
22679
|
"motion-calm",
|
|
22680
|
+
"package-llm-silent",
|
|
22681
|
+
"package-llm-answered",
|
|
22680
22682
|
"recording-stalled",
|
|
22681
22683
|
"recording-healthy",
|
|
22682
22684
|
"recording-degraded",
|
|
@@ -26667,6 +26669,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
26667
26669
|
const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
|
|
26668
26670
|
const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
|
|
26669
26671
|
const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
|
|
26672
|
+
const groupCommandsInterface = { getStatus: (input) => dispatch("group-commands", "groupCommands", "getStatus", "query", input) };
|
|
26673
|
+
const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
|
|
26670
26674
|
const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
|
|
26671
26675
|
const humidifierInterface = {
|
|
26672
26676
|
setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
|
|
@@ -27221,6 +27225,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27221
27225
|
featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
|
|
27222
27226
|
flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
|
|
27223
27227
|
gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
|
|
27228
|
+
groupCommands: createSliceHandle(stateSource, binding.deviceId, "group-commands"),
|
|
27229
|
+
groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
|
|
27224
27230
|
heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
|
|
27225
27231
|
humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
|
|
27226
27232
|
humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
|
|
@@ -27304,6 +27310,8 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27304
27310
|
...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
|
|
27305
27311
|
...bound("flood") ? { flood: floodInterface } : {},
|
|
27306
27312
|
...bound("gas") ? { gas: gasInterface } : {},
|
|
27313
|
+
...bound("group-commands") ? { groupCommands: groupCommandsInterface } : {},
|
|
27314
|
+
...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
|
|
27307
27315
|
...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
|
|
27308
27316
|
...bound("humidifier") ? { humidifier: humidifierInterface } : {},
|
|
27309
27317
|
...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
|
|
@@ -28082,6 +28090,7 @@ function createSystemProxy(api) {
|
|
|
28082
28090
|
listCapabilityProviders: (input) => dispatch("addons", "listCapabilityProviders", "query", input),
|
|
28083
28091
|
setCapabilityProviderEnabled: (input) => dispatch("addons", "setCapabilityProviderEnabled", "mutation", input),
|
|
28084
28092
|
getVersions: (input) => dispatch("addons", "getVersions", "query", input),
|
|
28093
|
+
getPackageDocs: (input) => dispatch("addons", "getPackageDocs", "query", input),
|
|
28085
28094
|
restartAddon: (input) => dispatch("addons", "restartAddon", "mutation", input),
|
|
28086
28095
|
retryLoad: (input) => dispatch("addons", "retryLoad", "mutation", input),
|
|
28087
28096
|
getAutoUpdateSettings: (input) => dispatch("addons", "getAutoUpdateSettings", "query", input),
|
|
@@ -29169,8 +29178,8 @@ var NC_SYSTEM_EVENT_FILTER_KEYS = [
|
|
|
29169
29178
|
function systemEventFilterApplies(kind, filter) {
|
|
29170
29179
|
if (LEGACY_KINDS_WITHOUT_FILTERS.has(kind)) return false;
|
|
29171
29180
|
switch (filter) {
|
|
29172
|
-
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("recording-") || kind === "alarm-triggered";
|
|
29173
|
-
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind" || kind.startsWith("motion-");
|
|
29181
|
+
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-") || kind.startsWith("recording-") || kind === "alarm-triggered";
|
|
29182
|
+
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-");
|
|
29174
29183
|
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("alert-");
|
|
29175
29184
|
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
29176
29185
|
case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
|
|
@@ -29227,6 +29236,8 @@ var NC_SYSTEM_EVENT_FAMILY = {
|
|
|
29227
29236
|
"detection-blind": "device-events",
|
|
29228
29237
|
"motion-noisy": "device-events",
|
|
29229
29238
|
"motion-calm": "device-events",
|
|
29239
|
+
"package-llm-silent": "device-events",
|
|
29240
|
+
"package-llm-answered": "device-events",
|
|
29230
29241
|
"recording-stalled": "device-events",
|
|
29231
29242
|
"recording-healthy": "device-events",
|
|
29232
29243
|
"recording-degraded": "device-events",
|
|
@@ -29328,6 +29339,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
29328
29339
|
label: "Motion without a subject",
|
|
29329
29340
|
kinds: ["motion-noisy", "motion-calm"]
|
|
29330
29341
|
},
|
|
29342
|
+
{
|
|
29343
|
+
id: "package-llm",
|
|
29344
|
+
family: "device-events",
|
|
29345
|
+
label: "Package confirm",
|
|
29346
|
+
kinds: ["package-llm-silent", "package-llm-answered"]
|
|
29347
|
+
},
|
|
29331
29348
|
{
|
|
29332
29349
|
id: "recording",
|
|
29333
29350
|
family: "device-events",
|
|
@@ -30325,6 +30342,8 @@ var DEVICE_EVENTS = [
|
|
|
30325
30342
|
"detection-blind",
|
|
30326
30343
|
"motion-noisy",
|
|
30327
30344
|
"motion-calm",
|
|
30345
|
+
"package-llm-silent",
|
|
30346
|
+
"package-llm-answered",
|
|
30328
30347
|
"recording-stalled",
|
|
30329
30348
|
"recording-healthy",
|
|
30330
30349
|
"recording-degraded",
|
|
@@ -30928,7 +30947,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
30928
30947
|
systemEventKinds: [
|
|
30929
30948
|
"recording-degraded",
|
|
30930
30949
|
...DEVICE_ATTENTION,
|
|
30931
|
-
...ALERT_EPISODE
|
|
30950
|
+
...ALERT_EPISODE,
|
|
30951
|
+
"package-llm-silent"
|
|
30932
30952
|
]
|
|
30933
30953
|
},
|
|
30934
30954
|
{
|
|
@@ -31021,7 +31041,8 @@ var NC_TEMPLATE_VARS = [
|
|
|
31021
31041
|
systemEventKinds: [
|
|
31022
31042
|
"storage-location-low",
|
|
31023
31043
|
"storage-location-critical",
|
|
31024
|
-
"storage-location-ok"
|
|
31044
|
+
"storage-location-ok",
|
|
31045
|
+
"package-llm-silent"
|
|
31025
31046
|
]
|
|
31026
31047
|
},
|
|
31027
31048
|
{
|
|
@@ -31432,7 +31453,9 @@ var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
|
|
|
31432
31453
|
"device-attention-required",
|
|
31433
31454
|
"device-attention-resolved",
|
|
31434
31455
|
"rule-broken",
|
|
31435
|
-
"rule-repaired"
|
|
31456
|
+
"rule-repaired",
|
|
31457
|
+
"package-llm-silent",
|
|
31458
|
+
"package-llm-answered"
|
|
31436
31459
|
];
|
|
31437
31460
|
/**
|
|
31438
31461
|
* Is this descriptor held back from the SERVED catalog as a whole (D647)?
|
|
@@ -31545,6 +31568,15 @@ var NC_SYSTEM_EVENT_CLASS_SPECS = [
|
|
|
31545
31568
|
snapshotLabel: "Cameras with constant motion now",
|
|
31546
31569
|
snapshotSection: null
|
|
31547
31570
|
},
|
|
31571
|
+
{
|
|
31572
|
+
id: "package-llm-confirm",
|
|
31573
|
+
family: "device-events",
|
|
31574
|
+
label: "Package confirm (not answering / answering again)",
|
|
31575
|
+
bad: ["package-llm-silent"],
|
|
31576
|
+
recovery: ["package-llm-answered"],
|
|
31577
|
+
snapshotLabel: "Cameras whose package confirm is not answering",
|
|
31578
|
+
snapshotSection: null
|
|
31579
|
+
},
|
|
31548
31580
|
{
|
|
31549
31581
|
id: "recording-health",
|
|
31550
31582
|
family: "device-events",
|
|
@@ -8,10 +8,13 @@ export declare const CompositionProblemCodeSchema: z.ZodEnum<{
|
|
|
8
8
|
"duplicate-target": "duplicate-target";
|
|
9
9
|
"expression-invalid": "expression-invalid";
|
|
10
10
|
"has-commands": "has-commands";
|
|
11
|
+
"helper-mismatch": "helper-mismatch";
|
|
11
12
|
"item-field-reserved": "item-field-reserved";
|
|
12
13
|
"kind-mismatch": "kind-mismatch";
|
|
13
14
|
"may-be-null": "may-be-null";
|
|
15
|
+
"member-constraint": "member-constraint";
|
|
14
16
|
"missing-field": "missing-field";
|
|
17
|
+
"mixed-quantity": "mixed-quantity";
|
|
15
18
|
"native-capability-replace": "native-capability-replace";
|
|
16
19
|
"nested-field": "nested-field";
|
|
17
20
|
"not-composable": "not-composable";
|
|
@@ -36,10 +39,13 @@ export declare const CompositionProblemSchema: z.ZodObject<{
|
|
|
36
39
|
"duplicate-target": "duplicate-target";
|
|
37
40
|
"expression-invalid": "expression-invalid";
|
|
38
41
|
"has-commands": "has-commands";
|
|
42
|
+
"helper-mismatch": "helper-mismatch";
|
|
39
43
|
"item-field-reserved": "item-field-reserved";
|
|
40
44
|
"kind-mismatch": "kind-mismatch";
|
|
41
45
|
"may-be-null": "may-be-null";
|
|
46
|
+
"member-constraint": "member-constraint";
|
|
42
47
|
"missing-field": "missing-field";
|
|
48
|
+
"mixed-quantity": "mixed-quantity";
|
|
43
49
|
"native-capability-replace": "native-capability-replace";
|
|
44
50
|
"nested-field": "nested-field";
|
|
45
51
|
"not-composable": "not-composable";
|
|
@@ -76,6 +82,7 @@ export type CompositionFieldKind = z.infer<typeof CompositionFieldKindSchema>;
|
|
|
76
82
|
export declare const CompositionUnavailableModeSchema: z.ZodEnum<{
|
|
77
83
|
null: "null";
|
|
78
84
|
offline: "offline";
|
|
85
|
+
omit: "omit";
|
|
79
86
|
release: "release";
|
|
80
87
|
unknown: "unknown";
|
|
81
88
|
}>;
|
|
@@ -119,6 +126,7 @@ export declare const CompositionFieldPlanSchema: z.ZodObject<{
|
|
|
119
126
|
unavailable: z.ZodEnum<{
|
|
120
127
|
null: "null";
|
|
121
128
|
offline: "offline";
|
|
129
|
+
omit: "omit";
|
|
122
130
|
release: "release";
|
|
123
131
|
unknown: "unknown";
|
|
124
132
|
}>;
|
|
@@ -154,6 +162,36 @@ export declare const CompositionFieldPlanSchema: z.ZodObject<{
|
|
|
154
162
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
163
|
kind: z.ZodLiteral<"code">;
|
|
156
164
|
code: z.ZodString;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
167
|
+
reducer: z.ZodEnum<{
|
|
168
|
+
all: "all";
|
|
169
|
+
any: "any";
|
|
170
|
+
max: "max";
|
|
171
|
+
mean: "mean";
|
|
172
|
+
median: "median";
|
|
173
|
+
min: "min";
|
|
174
|
+
sum: "sum";
|
|
175
|
+
}>;
|
|
176
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
177
|
+
source: z.ZodObject<{
|
|
178
|
+
addonId: z.ZodString;
|
|
179
|
+
stableId: z.ZodString;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
cap: z.ZodString;
|
|
182
|
+
fieldPath: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
publish: z.ZodEnum<{
|
|
185
|
+
excluded: "excluded";
|
|
186
|
+
included: "included";
|
|
187
|
+
total: "total";
|
|
188
|
+
value: "value";
|
|
189
|
+
}>;
|
|
190
|
+
empty: z.ZodEnum<{
|
|
191
|
+
null: "null";
|
|
192
|
+
offline: "offline";
|
|
193
|
+
omit: "omit";
|
|
194
|
+
}>;
|
|
157
195
|
}, z.core.$strip>], "kind">;
|
|
158
196
|
reads: z.ZodArray<z.ZodObject<{
|
|
159
197
|
source: z.ZodObject<{
|
|
@@ -198,10 +236,13 @@ export declare const CompositionValidationSchema: z.ZodObject<{
|
|
|
198
236
|
"duplicate-target": "duplicate-target";
|
|
199
237
|
"expression-invalid": "expression-invalid";
|
|
200
238
|
"has-commands": "has-commands";
|
|
239
|
+
"helper-mismatch": "helper-mismatch";
|
|
201
240
|
"item-field-reserved": "item-field-reserved";
|
|
202
241
|
"kind-mismatch": "kind-mismatch";
|
|
203
242
|
"may-be-null": "may-be-null";
|
|
243
|
+
"member-constraint": "member-constraint";
|
|
204
244
|
"missing-field": "missing-field";
|
|
245
|
+
"mixed-quantity": "mixed-quantity";
|
|
205
246
|
"native-capability-replace": "native-capability-replace";
|
|
206
247
|
"nested-field": "nested-field";
|
|
207
248
|
"not-composable": "not-composable";
|
|
@@ -241,6 +282,7 @@ export declare const CompositionValidationSchema: z.ZodObject<{
|
|
|
241
282
|
unavailable: z.ZodEnum<{
|
|
242
283
|
null: "null";
|
|
243
284
|
offline: "offline";
|
|
285
|
+
omit: "omit";
|
|
244
286
|
release: "release";
|
|
245
287
|
unknown: "unknown";
|
|
246
288
|
}>;
|
|
@@ -276,6 +318,36 @@ export declare const CompositionValidationSchema: z.ZodObject<{
|
|
|
276
318
|
}, z.core.$strip>, z.ZodObject<{
|
|
277
319
|
kind: z.ZodLiteral<"code">;
|
|
278
320
|
code: z.ZodString;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
323
|
+
reducer: z.ZodEnum<{
|
|
324
|
+
all: "all";
|
|
325
|
+
any: "any";
|
|
326
|
+
max: "max";
|
|
327
|
+
mean: "mean";
|
|
328
|
+
median: "median";
|
|
329
|
+
min: "min";
|
|
330
|
+
sum: "sum";
|
|
331
|
+
}>;
|
|
332
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
333
|
+
source: z.ZodObject<{
|
|
334
|
+
addonId: z.ZodString;
|
|
335
|
+
stableId: z.ZodString;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
cap: z.ZodString;
|
|
338
|
+
fieldPath: z.ZodString;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
publish: z.ZodEnum<{
|
|
341
|
+
excluded: "excluded";
|
|
342
|
+
included: "included";
|
|
343
|
+
total: "total";
|
|
344
|
+
value: "value";
|
|
345
|
+
}>;
|
|
346
|
+
empty: z.ZodEnum<{
|
|
347
|
+
null: "null";
|
|
348
|
+
offline: "offline";
|
|
349
|
+
omit: "omit";
|
|
350
|
+
}>;
|
|
279
351
|
}, z.core.$strip>], "kind">;
|
|
280
352
|
reads: z.ZodArray<z.ZodObject<{
|
|
281
353
|
source: z.ZodObject<{
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { z } from 'zod';
|
|
21
21
|
import { DeviceRole, DeviceType } from '../device/device-type.js';
|
|
22
|
+
import { type CompositionSourceRef } from './source-ref.js';
|
|
22
23
|
/** The owner of every composed device: the `composer` builtin. */
|
|
23
24
|
export declare const COMPOSER_ADDON_ID = "composer";
|
|
24
25
|
/**
|
|
@@ -34,11 +35,7 @@ export declare const MAX_COMPOSITION_FEATURES = 16;
|
|
|
34
35
|
export declare const MAX_COMPOSITION_FIELDS_PER_FEATURE = 32;
|
|
35
36
|
/** Longest snippet a `code` source may carry (slice 4). */
|
|
36
37
|
export declare const MAX_COMPOSITION_CODE_LENGTH = 20000;
|
|
37
|
-
export
|
|
38
|
-
addonId: z.ZodString;
|
|
39
|
-
stableId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export type CompositionSourceRef = z.infer<typeof CompositionSourceRefSchema>;
|
|
38
|
+
export { CompositionSourceRefSchema, type CompositionSourceRef } from './source-ref.js';
|
|
42
39
|
/** One field of one capability of one source device. */
|
|
43
40
|
export declare const CompositionFieldReadSchema: z.ZodObject<{
|
|
44
41
|
source: z.ZodObject<{
|
|
@@ -107,6 +104,43 @@ export declare const CompositionCodeSourceSchema: z.ZodObject<{
|
|
|
107
104
|
code: z.ZodString;
|
|
108
105
|
}, z.core.$strip>;
|
|
109
106
|
export type CompositionCodeSource = z.infer<typeof CompositionCodeSourceSchema>;
|
|
107
|
+
/**
|
|
108
|
+
* `aggregate`: a group reducer. Offline and unknown reads are excluded, not
|
|
109
|
+
* folded in as 0 or false (D944). Free expressions stay `expression` so a
|
|
110
|
+
* stale member is still included there.
|
|
111
|
+
*/
|
|
112
|
+
export declare const CompositionAggregateSourceSchema: z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
114
|
+
reducer: z.ZodEnum<{
|
|
115
|
+
all: "all";
|
|
116
|
+
any: "any";
|
|
117
|
+
max: "max";
|
|
118
|
+
mean: "mean";
|
|
119
|
+
median: "median";
|
|
120
|
+
min: "min";
|
|
121
|
+
sum: "sum";
|
|
122
|
+
}>;
|
|
123
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
124
|
+
source: z.ZodObject<{
|
|
125
|
+
addonId: z.ZodString;
|
|
126
|
+
stableId: z.ZodString;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
cap: z.ZodString;
|
|
129
|
+
fieldPath: z.ZodString;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
publish: z.ZodEnum<{
|
|
132
|
+
excluded: "excluded";
|
|
133
|
+
included: "included";
|
|
134
|
+
total: "total";
|
|
135
|
+
value: "value";
|
|
136
|
+
}>;
|
|
137
|
+
empty: z.ZodEnum<{
|
|
138
|
+
null: "null";
|
|
139
|
+
offline: "offline";
|
|
140
|
+
omit: "omit";
|
|
141
|
+
}>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export type CompositionAggregateSource = z.infer<typeof CompositionAggregateSourceSchema>;
|
|
110
144
|
export declare const CompositionFieldSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
111
145
|
source: z.ZodObject<{
|
|
112
146
|
addonId: z.ZodString;
|
|
@@ -133,6 +167,36 @@ export declare const CompositionFieldSourceSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
133
167
|
}, z.core.$strip>, z.ZodObject<{
|
|
134
168
|
kind: z.ZodLiteral<"code">;
|
|
135
169
|
code: z.ZodString;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
172
|
+
reducer: z.ZodEnum<{
|
|
173
|
+
all: "all";
|
|
174
|
+
any: "any";
|
|
175
|
+
max: "max";
|
|
176
|
+
mean: "mean";
|
|
177
|
+
median: "median";
|
|
178
|
+
min: "min";
|
|
179
|
+
sum: "sum";
|
|
180
|
+
}>;
|
|
181
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
182
|
+
source: z.ZodObject<{
|
|
183
|
+
addonId: z.ZodString;
|
|
184
|
+
stableId: z.ZodString;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
cap: z.ZodString;
|
|
187
|
+
fieldPath: z.ZodString;
|
|
188
|
+
}, z.core.$strip>>;
|
|
189
|
+
publish: z.ZodEnum<{
|
|
190
|
+
excluded: "excluded";
|
|
191
|
+
included: "included";
|
|
192
|
+
total: "total";
|
|
193
|
+
value: "value";
|
|
194
|
+
}>;
|
|
195
|
+
empty: z.ZodEnum<{
|
|
196
|
+
null: "null";
|
|
197
|
+
offline: "offline";
|
|
198
|
+
omit: "omit";
|
|
199
|
+
}>;
|
|
136
200
|
}, z.core.$strip>], "kind">;
|
|
137
201
|
export type CompositionFieldSource = z.infer<typeof CompositionFieldSourceSchema>;
|
|
138
202
|
/** `forward`: RESERVED for slice 3. Argument mapping arrives there as an additive optional `args`. */
|
|
@@ -197,6 +261,36 @@ export declare const CompositionItemEntrySchema: z.ZodObject<{
|
|
|
197
261
|
}, z.core.$strip>, z.ZodObject<{
|
|
198
262
|
kind: z.ZodLiteral<"code">;
|
|
199
263
|
code: z.ZodString;
|
|
264
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
266
|
+
reducer: z.ZodEnum<{
|
|
267
|
+
all: "all";
|
|
268
|
+
any: "any";
|
|
269
|
+
max: "max";
|
|
270
|
+
mean: "mean";
|
|
271
|
+
median: "median";
|
|
272
|
+
min: "min";
|
|
273
|
+
sum: "sum";
|
|
274
|
+
}>;
|
|
275
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
276
|
+
source: z.ZodObject<{
|
|
277
|
+
addonId: z.ZodString;
|
|
278
|
+
stableId: z.ZodString;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
cap: z.ZodString;
|
|
281
|
+
fieldPath: z.ZodString;
|
|
282
|
+
}, z.core.$strip>>;
|
|
283
|
+
publish: z.ZodEnum<{
|
|
284
|
+
excluded: "excluded";
|
|
285
|
+
included: "included";
|
|
286
|
+
total: "total";
|
|
287
|
+
value: "value";
|
|
288
|
+
}>;
|
|
289
|
+
empty: z.ZodEnum<{
|
|
290
|
+
null: "null";
|
|
291
|
+
offline: "offline";
|
|
292
|
+
omit: "omit";
|
|
293
|
+
}>;
|
|
200
294
|
}, z.core.$strip>], "kind">>;
|
|
201
295
|
}, z.core.$strip>;
|
|
202
296
|
export type CompositionItemEntry = z.infer<typeof CompositionItemEntrySchema>;
|
|
@@ -230,6 +324,36 @@ export declare const CompositionFieldsFeatureSchema: z.ZodObject<{
|
|
|
230
324
|
}, z.core.$strip>, z.ZodObject<{
|
|
231
325
|
kind: z.ZodLiteral<"code">;
|
|
232
326
|
code: z.ZodString;
|
|
327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
328
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
329
|
+
reducer: z.ZodEnum<{
|
|
330
|
+
all: "all";
|
|
331
|
+
any: "any";
|
|
332
|
+
max: "max";
|
|
333
|
+
mean: "mean";
|
|
334
|
+
median: "median";
|
|
335
|
+
min: "min";
|
|
336
|
+
sum: "sum";
|
|
337
|
+
}>;
|
|
338
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
339
|
+
source: z.ZodObject<{
|
|
340
|
+
addonId: z.ZodString;
|
|
341
|
+
stableId: z.ZodString;
|
|
342
|
+
}, z.core.$strip>;
|
|
343
|
+
cap: z.ZodString;
|
|
344
|
+
fieldPath: z.ZodString;
|
|
345
|
+
}, z.core.$strip>>;
|
|
346
|
+
publish: z.ZodEnum<{
|
|
347
|
+
excluded: "excluded";
|
|
348
|
+
included: "included";
|
|
349
|
+
total: "total";
|
|
350
|
+
value: "value";
|
|
351
|
+
}>;
|
|
352
|
+
empty: z.ZodEnum<{
|
|
353
|
+
null: "null";
|
|
354
|
+
offline: "offline";
|
|
355
|
+
omit: "omit";
|
|
356
|
+
}>;
|
|
233
357
|
}, z.core.$strip>], "kind">>;
|
|
234
358
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
235
359
|
label: z.ZodString;
|
|
@@ -259,6 +383,36 @@ export declare const CompositionFieldsFeatureSchema: z.ZodObject<{
|
|
|
259
383
|
}, z.core.$strip>, z.ZodObject<{
|
|
260
384
|
kind: z.ZodLiteral<"code">;
|
|
261
385
|
code: z.ZodString;
|
|
386
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
387
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
388
|
+
reducer: z.ZodEnum<{
|
|
389
|
+
all: "all";
|
|
390
|
+
any: "any";
|
|
391
|
+
max: "max";
|
|
392
|
+
mean: "mean";
|
|
393
|
+
median: "median";
|
|
394
|
+
min: "min";
|
|
395
|
+
sum: "sum";
|
|
396
|
+
}>;
|
|
397
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
398
|
+
source: z.ZodObject<{
|
|
399
|
+
addonId: z.ZodString;
|
|
400
|
+
stableId: z.ZodString;
|
|
401
|
+
}, z.core.$strip>;
|
|
402
|
+
cap: z.ZodString;
|
|
403
|
+
fieldPath: z.ZodString;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
publish: z.ZodEnum<{
|
|
406
|
+
excluded: "excluded";
|
|
407
|
+
included: "included";
|
|
408
|
+
total: "total";
|
|
409
|
+
value: "value";
|
|
410
|
+
}>;
|
|
411
|
+
empty: z.ZodEnum<{
|
|
412
|
+
null: "null";
|
|
413
|
+
offline: "offline";
|
|
414
|
+
omit: "omit";
|
|
415
|
+
}>;
|
|
262
416
|
}, z.core.$strip>], "kind">>;
|
|
263
417
|
}, z.core.$strip>>>;
|
|
264
418
|
commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -316,6 +470,36 @@ export declare const CompositionFeatureSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
316
470
|
}, z.core.$strip>, z.ZodObject<{
|
|
317
471
|
kind: z.ZodLiteral<"code">;
|
|
318
472
|
code: z.ZodString;
|
|
473
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
474
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
475
|
+
reducer: z.ZodEnum<{
|
|
476
|
+
all: "all";
|
|
477
|
+
any: "any";
|
|
478
|
+
max: "max";
|
|
479
|
+
mean: "mean";
|
|
480
|
+
median: "median";
|
|
481
|
+
min: "min";
|
|
482
|
+
sum: "sum";
|
|
483
|
+
}>;
|
|
484
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
485
|
+
source: z.ZodObject<{
|
|
486
|
+
addonId: z.ZodString;
|
|
487
|
+
stableId: z.ZodString;
|
|
488
|
+
}, z.core.$strip>;
|
|
489
|
+
cap: z.ZodString;
|
|
490
|
+
fieldPath: z.ZodString;
|
|
491
|
+
}, z.core.$strip>>;
|
|
492
|
+
publish: z.ZodEnum<{
|
|
493
|
+
excluded: "excluded";
|
|
494
|
+
included: "included";
|
|
495
|
+
total: "total";
|
|
496
|
+
value: "value";
|
|
497
|
+
}>;
|
|
498
|
+
empty: z.ZodEnum<{
|
|
499
|
+
null: "null";
|
|
500
|
+
offline: "offline";
|
|
501
|
+
omit: "omit";
|
|
502
|
+
}>;
|
|
319
503
|
}, z.core.$strip>], "kind">>;
|
|
320
504
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
321
505
|
label: z.ZodString;
|
|
@@ -345,6 +529,36 @@ export declare const CompositionFeatureSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
345
529
|
}, z.core.$strip>, z.ZodObject<{
|
|
346
530
|
kind: z.ZodLiteral<"code">;
|
|
347
531
|
code: z.ZodString;
|
|
532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
533
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
534
|
+
reducer: z.ZodEnum<{
|
|
535
|
+
all: "all";
|
|
536
|
+
any: "any";
|
|
537
|
+
max: "max";
|
|
538
|
+
mean: "mean";
|
|
539
|
+
median: "median";
|
|
540
|
+
min: "min";
|
|
541
|
+
sum: "sum";
|
|
542
|
+
}>;
|
|
543
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
544
|
+
source: z.ZodObject<{
|
|
545
|
+
addonId: z.ZodString;
|
|
546
|
+
stableId: z.ZodString;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
cap: z.ZodString;
|
|
549
|
+
fieldPath: z.ZodString;
|
|
550
|
+
}, z.core.$strip>>;
|
|
551
|
+
publish: z.ZodEnum<{
|
|
552
|
+
excluded: "excluded";
|
|
553
|
+
included: "included";
|
|
554
|
+
total: "total";
|
|
555
|
+
value: "value";
|
|
556
|
+
}>;
|
|
557
|
+
empty: z.ZodEnum<{
|
|
558
|
+
null: "null";
|
|
559
|
+
offline: "offline";
|
|
560
|
+
omit: "omit";
|
|
561
|
+
}>;
|
|
348
562
|
}, z.core.$strip>], "kind">>;
|
|
349
563
|
}, z.core.$strip>>>;
|
|
350
564
|
commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -444,6 +658,36 @@ export declare const CompositionSchema: z.ZodObject<{
|
|
|
444
658
|
}, z.core.$strip>, z.ZodObject<{
|
|
445
659
|
kind: z.ZodLiteral<"code">;
|
|
446
660
|
code: z.ZodString;
|
|
661
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
662
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
663
|
+
reducer: z.ZodEnum<{
|
|
664
|
+
all: "all";
|
|
665
|
+
any: "any";
|
|
666
|
+
max: "max";
|
|
667
|
+
mean: "mean";
|
|
668
|
+
median: "median";
|
|
669
|
+
min: "min";
|
|
670
|
+
sum: "sum";
|
|
671
|
+
}>;
|
|
672
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
673
|
+
source: z.ZodObject<{
|
|
674
|
+
addonId: z.ZodString;
|
|
675
|
+
stableId: z.ZodString;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
cap: z.ZodString;
|
|
678
|
+
fieldPath: z.ZodString;
|
|
679
|
+
}, z.core.$strip>>;
|
|
680
|
+
publish: z.ZodEnum<{
|
|
681
|
+
excluded: "excluded";
|
|
682
|
+
included: "included";
|
|
683
|
+
total: "total";
|
|
684
|
+
value: "value";
|
|
685
|
+
}>;
|
|
686
|
+
empty: z.ZodEnum<{
|
|
687
|
+
null: "null";
|
|
688
|
+
offline: "offline";
|
|
689
|
+
omit: "omit";
|
|
690
|
+
}>;
|
|
447
691
|
}, z.core.$strip>], "kind">>;
|
|
448
692
|
items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
449
693
|
label: z.ZodString;
|
|
@@ -473,6 +717,36 @@ export declare const CompositionSchema: z.ZodObject<{
|
|
|
473
717
|
}, z.core.$strip>, z.ZodObject<{
|
|
474
718
|
kind: z.ZodLiteral<"code">;
|
|
475
719
|
code: z.ZodString;
|
|
720
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
721
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
722
|
+
reducer: z.ZodEnum<{
|
|
723
|
+
all: "all";
|
|
724
|
+
any: "any";
|
|
725
|
+
max: "max";
|
|
726
|
+
mean: "mean";
|
|
727
|
+
median: "median";
|
|
728
|
+
min: "min";
|
|
729
|
+
sum: "sum";
|
|
730
|
+
}>;
|
|
731
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
732
|
+
source: z.ZodObject<{
|
|
733
|
+
addonId: z.ZodString;
|
|
734
|
+
stableId: z.ZodString;
|
|
735
|
+
}, z.core.$strip>;
|
|
736
|
+
cap: z.ZodString;
|
|
737
|
+
fieldPath: z.ZodString;
|
|
738
|
+
}, z.core.$strip>>;
|
|
739
|
+
publish: z.ZodEnum<{
|
|
740
|
+
excluded: "excluded";
|
|
741
|
+
included: "included";
|
|
742
|
+
total: "total";
|
|
743
|
+
value: "value";
|
|
744
|
+
}>;
|
|
745
|
+
empty: z.ZodEnum<{
|
|
746
|
+
null: "null";
|
|
747
|
+
offline: "offline";
|
|
748
|
+
omit: "omit";
|
|
749
|
+
}>;
|
|
476
750
|
}, z.core.$strip>], "kind">>;
|
|
477
751
|
}, z.core.$strip>>>;
|
|
478
752
|
commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -496,6 +770,13 @@ export declare const CompositionSchema: z.ZodObject<{
|
|
|
496
770
|
stableId: z.ZodString;
|
|
497
771
|
}, z.core.$strip>;
|
|
498
772
|
}, z.core.$strip>], "kind">>;
|
|
773
|
+
helper: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
774
|
+
kind: z.ZodLiteral<'group'>;
|
|
775
|
+
templateId: typeof import("./index.js").GroupTemplateIdSchema;
|
|
776
|
+
aggregate: typeof import("./index.js").AggregateReducerSchema;
|
|
777
|
+
members: z.ZodArray<typeof import("./index.js").HelperMemberSchema>;
|
|
778
|
+
active: z.ZodOptional<typeof import("./index.js").ActiveCriterionSchema>;
|
|
779
|
+
}, z.core.$strip>], "kind">>;
|
|
499
780
|
}, z.core.$strip>;
|
|
500
781
|
export type Composition = z.infer<typeof CompositionSchema>;
|
|
501
782
|
export declare function compositionSourceKey(ref: CompositionSourceRef): string;
|