@camstack/types 1.2.263 → 1.2.265
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/automation/recipe.d.ts +1 -1
- package/dist/capabilities/composer.cap.d.ts +328 -0
- package/dist/capabilities/control.cap.d.ts +4 -4
- package/dist/capabilities/core-blocks.cap.d.ts +2339 -0
- package/dist/capabilities/custom-model-registry.cap.d.ts +44 -2
- package/dist/capabilities/day-night.cap.d.ts +8 -8
- package/dist/capabilities/device-extension.cap.d.ts +8 -8
- package/dist/capabilities/index.d.ts +4 -2
- package/dist/capabilities/model-convert.cap.d.ts +22 -1
- package/dist/capabilities/model-distributor.cap.d.ts +44 -2
- package/dist/capabilities/notification-rules.cap.d.ts +74 -74
- package/dist/capabilities/osd-manager.cap.d.ts +13 -13
- package/dist/composition/composition-graph.d.ts +36 -0
- package/dist/composition/composition-report.d.ts +264 -0
- package/dist/composition/composition.d.ts +362 -0
- package/dist/composition/evaluate-field.d.ts +63 -0
- package/dist/composition/examples.d.ts +10 -0
- package/dist/composition/expression-kinds.d.ts +36 -0
- package/dist/composition/index.d.ts +12 -0
- package/dist/composition/state-fields.d.ts +19 -0
- package/dist/composition/validate-composition.d.ts +46 -0
- package/dist/device/schema-fields.d.ts +3 -0
- package/dist/expression/builtins.d.ts +30 -2
- package/dist/generated/addon-api.d.ts +57 -0
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1388 -83
- package/dist/index.mjs +1314 -84
- package/dist/notification/rule-kinds.d.ts +3 -2
- package/dist/types/models.d.ts +80 -2
- package/package.json +1 -1
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
* families — or name a legacy kind, or none — derives `mixed`: it keeps firing,
|
|
72
72
|
* it is listed and deletable, and it is never edited.
|
|
73
73
|
*/
|
|
74
|
-
import
|
|
74
|
+
import type { z } from 'zod';
|
|
75
|
+
import { type NcAudioCondition, type NcConditions, type NcDelivery, type NcOccupancyCondition, type NcRuleKindSchema } from '../capabilities/notification-rules.cap.js';
|
|
75
76
|
import { type NcSystemEventFamily } from './system-event-families.js';
|
|
76
77
|
/**
|
|
77
78
|
* The kind of rule an operator is authoring.
|
|
@@ -82,7 +83,7 @@ import { type NcSystemEventFamily } from './system-event-families.js';
|
|
|
82
83
|
* and `immediate` each split in two on their discriminating condition, and
|
|
83
84
|
* `system-event` splits by the FAMILY of the event kinds it names (D637).
|
|
84
85
|
*/
|
|
85
|
-
export type NcRuleKind =
|
|
86
|
+
export type NcRuleKind = z.infer<typeof NcRuleKindSchema>;
|
|
86
87
|
/** Every kind a `system-event` rule can derive — the three families and `mixed`. */
|
|
87
88
|
export declare const NC_SYSTEM_RULE_KINDS: readonly ["device-events", "system", "alarm", "mixed"];
|
|
88
89
|
/** Is this a kind a `system-event` rule derives (any family, or `mixed`)? */
|
package/dist/types/models.d.ts
CHANGED
|
@@ -146,6 +146,42 @@ export interface InferModelProviderInput {
|
|
|
146
146
|
* NOT a Scrypted signal — CamStack ships that family too.
|
|
147
147
|
*/
|
|
148
148
|
export declare function inferModelProvider(entry: InferModelProviderInput): ModelProviderId;
|
|
149
|
+
export declare const MODEL_HOSTING: readonly ["camstack-hf", "third-party", "built-in"];
|
|
150
|
+
export type ModelHosting = (typeof MODEL_HOSTING)[number];
|
|
151
|
+
/**
|
|
152
|
+
* The licence of a model, as a record rather than a bare SPDX string: a
|
|
153
|
+
* permissive CODE licence routinely sits on top of restrictive WEIGHTS or
|
|
154
|
+
* DATA, and the obligations (attribution, modification notices, source offers)
|
|
155
|
+
* are per upstream. A persisted custom-model row written when this field was a
|
|
156
|
+
* string still parses — the string is lifted into `{ weights }`.
|
|
157
|
+
*
|
|
158
|
+
* Every licence surface (the admin "Models and licenses" page,
|
|
159
|
+
* `THIRD_PARTY_MODELS.md`, the Hugging Face model table) is GENERATED from
|
|
160
|
+
* these records by `scripts/gen-model-licenses.ts` (D661).
|
|
161
|
+
*/
|
|
162
|
+
export declare const ModelLicenseSchema: z.ZodPreprocess<z.ZodObject<{
|
|
163
|
+
weights: z.ZodString;
|
|
164
|
+
code: z.ZodOptional<z.ZodString>;
|
|
165
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
terms: z.ZodString;
|
|
168
|
+
url: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
upstream: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
url: z.ZodString;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
url: z.ZodOptional<z.ZodString>;
|
|
175
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
176
|
+
modifications: z.ZodOptional<z.ZodString>;
|
|
177
|
+
hosting: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
"camstack-hf": "camstack-hf";
|
|
179
|
+
"third-party": "third-party";
|
|
180
|
+
"built-in": "built-in";
|
|
181
|
+
}>>;
|
|
182
|
+
nonCommercial: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
export type ModelLicense = z.infer<typeof ModelLicenseSchema>;
|
|
149
185
|
export declare const ModelCatalogEntrySchema: z.ZodObject<{
|
|
150
186
|
id: z.ZodString;
|
|
151
187
|
name: z.ZodString;
|
|
@@ -245,7 +281,28 @@ export declare const ModelCatalogEntrySchema: z.ZodObject<{
|
|
|
245
281
|
map50: z.ZodOptional<z.ZodNumber>;
|
|
246
282
|
p95LatencyMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
247
283
|
}, z.core.$strip>>;
|
|
248
|
-
license: z.ZodOptional<z.
|
|
284
|
+
license: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
285
|
+
weights: z.ZodString;
|
|
286
|
+
code: z.ZodOptional<z.ZodString>;
|
|
287
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
288
|
+
name: z.ZodString;
|
|
289
|
+
terms: z.ZodString;
|
|
290
|
+
url: z.ZodOptional<z.ZodString>;
|
|
291
|
+
}, z.core.$strip>>;
|
|
292
|
+
upstream: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
name: z.ZodString;
|
|
294
|
+
url: z.ZodString;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
url: z.ZodOptional<z.ZodString>;
|
|
297
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
298
|
+
modifications: z.ZodOptional<z.ZodString>;
|
|
299
|
+
hosting: z.ZodOptional<z.ZodEnum<{
|
|
300
|
+
"camstack-hf": "camstack-hf";
|
|
301
|
+
"third-party": "third-party";
|
|
302
|
+
"built-in": "built-in";
|
|
303
|
+
}>>;
|
|
304
|
+
nonCommercial: z.ZodOptional<z.ZodBoolean>;
|
|
305
|
+
}, z.core.$strip>>>;
|
|
249
306
|
group: z.ZodOptional<z.ZodObject<{
|
|
250
307
|
family: z.ZodString;
|
|
251
308
|
tier: z.ZodString;
|
|
@@ -495,7 +552,28 @@ export declare const ConvertResultSchema: z.ZodObject<{
|
|
|
495
552
|
map50: z.ZodOptional<z.ZodNumber>;
|
|
496
553
|
p95LatencyMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
497
554
|
}, z.core.$strip>>;
|
|
498
|
-
license: z.ZodOptional<z.
|
|
555
|
+
license: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
|
|
556
|
+
weights: z.ZodString;
|
|
557
|
+
code: z.ZodOptional<z.ZodString>;
|
|
558
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
name: z.ZodString;
|
|
560
|
+
terms: z.ZodString;
|
|
561
|
+
url: z.ZodOptional<z.ZodString>;
|
|
562
|
+
}, z.core.$strip>>;
|
|
563
|
+
upstream: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
name: z.ZodString;
|
|
565
|
+
url: z.ZodString;
|
|
566
|
+
}, z.core.$strip>>;
|
|
567
|
+
url: z.ZodOptional<z.ZodString>;
|
|
568
|
+
attribution: z.ZodOptional<z.ZodString>;
|
|
569
|
+
modifications: z.ZodOptional<z.ZodString>;
|
|
570
|
+
hosting: z.ZodOptional<z.ZodEnum<{
|
|
571
|
+
"camstack-hf": "camstack-hf";
|
|
572
|
+
"third-party": "third-party";
|
|
573
|
+
"built-in": "built-in";
|
|
574
|
+
}>>;
|
|
575
|
+
nonCommercial: z.ZodOptional<z.ZodBoolean>;
|
|
576
|
+
}, z.core.$strip>>>;
|
|
499
577
|
group: z.ZodOptional<z.ZodObject<{
|
|
500
578
|
family: z.ZodString;
|
|
501
579
|
tier: z.ZodString;
|