@camstack/types 1.2.268 → 1.2.269
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/capability-definition.d.ts +8 -1
- package/dist/capabilities/composer.cap.d.ts +6 -0
- package/dist/capabilities/core-blocks.cap.d.ts +54 -3
- package/dist/capabilities/device-manager.cap.d.ts +4 -4
- package/dist/capabilities/doorbell.cap.d.ts +4 -0
- package/dist/capabilities/media-player.cap.d.ts +4 -4
- package/dist/capabilities/recording-archive.cap.d.ts +3 -3
- package/dist/catalogs/sensor-active-state.d.ts +25 -1
- package/dist/composition/composition-events.d.ts +42 -0
- package/dist/composition/composition-report.d.ts +22 -10
- package/dist/composition/composition.d.ts +8 -0
- package/dist/composition/evaluate-field.d.ts +8 -0
- package/dist/composition/expression-kinds.d.ts +1 -0
- package/dist/composition/index.d.ts +1 -0
- package/dist/composition/plan-result.d.ts +2 -0
- package/dist/{composition-QlOB7QTG.js → composition-BAH3n-zq.js} +412 -14
- package/dist/{composition-CPFIlFfw.mjs → composition-D5BQywfe.mjs} +311 -15
- package/dist/expression/ast.d.ts +2 -0
- package/dist/expression/builtins.d.ts +9 -0
- package/dist/expression/evaluator.d.ts +8 -2
- package/dist/expression/expression-source.d.ts +26 -4
- package/dist/expression/index.d.ts +6 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +321 -324
- package/dist/index.mjs +299 -314
- package/dist/interfaces/recording-config.d.ts +3 -3
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-BSzia-xT.js → sleep-Bg0IB7gg.js} +4 -15
- package/dist/{sleep-jkRQgtSc.mjs → sleep-E6eD4yQS.mjs} +4 -15
- package/package.json +1 -1
|
@@ -160,8 +160,8 @@ export type RecordingBandTriggers = z.infer<typeof RecordingBandTriggersSchema>;
|
|
|
160
160
|
* question to answer as a continuous one.
|
|
161
161
|
*/
|
|
162
162
|
export declare const RecordingBandAudioSchema: z.ZodEnum<{
|
|
163
|
-
muted: "muted";
|
|
164
163
|
on: "on";
|
|
164
|
+
muted: "muted";
|
|
165
165
|
}>;
|
|
166
166
|
export type RecordingBandAudio = z.infer<typeof RecordingBandAudioSchema>;
|
|
167
167
|
export declare const RecordingBandSchema: z.ZodObject<{
|
|
@@ -173,8 +173,8 @@ export declare const RecordingBandSchema: z.ZodObject<{
|
|
|
173
173
|
continuous: "continuous";
|
|
174
174
|
}>;
|
|
175
175
|
audio: z.ZodOptional<z.ZodEnum<{
|
|
176
|
-
muted: "muted";
|
|
177
176
|
on: "on";
|
|
177
|
+
muted: "muted";
|
|
178
178
|
}>>;
|
|
179
179
|
triggers: z.ZodOptional<z.ZodObject<{
|
|
180
180
|
motion: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -309,8 +309,8 @@ export declare const RecordingConfigSchema: z.ZodObject<{
|
|
|
309
309
|
continuous: "continuous";
|
|
310
310
|
}>;
|
|
311
311
|
audio: z.ZodOptional<z.ZodEnum<{
|
|
312
|
-
muted: "muted";
|
|
313
312
|
on: "on";
|
|
313
|
+
muted: "muted";
|
|
314
314
|
}>>;
|
|
315
315
|
triggers: z.ZodOptional<z.ZodObject<{
|
|
316
316
|
motion: z.ZodOptional<z.ZodBoolean>;
|
package/dist/node.js
CHANGED
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_composition = require("./composition-
|
|
24
|
+
const require_composition = require("./composition-BAH3n-zq.js");
|
|
25
25
|
const require_err_msg = require("./err-msg-Dx2Kor0g.js");
|
|
26
26
|
let node_crypto = require("node:crypto");
|
|
27
27
|
let node_fs = require("node:fs");
|
package/dist/node.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as Fmp4BoxSplitter, Dt as buildFfmpegArgs, P as compositionSourceKey, St as canonicalHash, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, jt as isSoftwareDecode } from "./composition-D5BQywfe.mjs";
|
|
2
2
|
import { t as errMsg } from "./err-msg-DX6i_MY4.mjs";
|
|
3
3
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -2375,21 +2375,10 @@ function readNodePin(context) {
|
|
|
2375
2375
|
const value = Reflect.get(context, CAP_NODE_PIN_CONTEXT_KEY);
|
|
2376
2376
|
return typeof value === "string" ? value : void 0;
|
|
2377
2377
|
}
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
*
|
|
2383
|
-
* A capability is defined with Zod schemas for methods, events, and settings.
|
|
2384
|
-
* TypeScript types are inferred via z.infer<> — zero duplication.
|
|
2385
|
-
*
|
|
2386
|
-
* Pattern:
|
|
2387
|
-
* 1. Define Zod schemas for data, methods, settings
|
|
2388
|
-
* 2. Export const capabilityDef = { ... } satisfies CapabilityDefinition
|
|
2389
|
-
* 3. Export type IProvider = InferProvider<typeof capabilityDef>
|
|
2390
|
-
* 4. Addon implements IProvider
|
|
2391
|
-
* 5. Registry auto-mounts tRPC router from definition.methods
|
|
2392
|
-
*/
|
|
2378
|
+
zod.z.object({
|
|
2379
|
+
field: zod.z.string().min(1),
|
|
2380
|
+
on: zod.z.literal("advance")
|
|
2381
|
+
});
|
|
2393
2382
|
/** The default applied to a `runtimeState` cap that declares no `durability`. */
|
|
2394
2383
|
var DEFAULT_RUNTIME_STATE_DURABILITY = "session";
|
|
2395
2384
|
/**
|
|
@@ -2375,21 +2375,10 @@ function readNodePin(context) {
|
|
|
2375
2375
|
const value = Reflect.get(context, CAP_NODE_PIN_CONTEXT_KEY);
|
|
2376
2376
|
return typeof value === "string" ? value : void 0;
|
|
2377
2377
|
}
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
*
|
|
2383
|
-
* A capability is defined with Zod schemas for methods, events, and settings.
|
|
2384
|
-
* TypeScript types are inferred via z.infer<> — zero duplication.
|
|
2385
|
-
*
|
|
2386
|
-
* Pattern:
|
|
2387
|
-
* 1. Define Zod schemas for data, methods, settings
|
|
2388
|
-
* 2. Export const capabilityDef = { ... } satisfies CapabilityDefinition
|
|
2389
|
-
* 3. Export type IProvider = InferProvider<typeof capabilityDef>
|
|
2390
|
-
* 4. Addon implements IProvider
|
|
2391
|
-
* 5. Registry auto-mounts tRPC router from definition.methods
|
|
2392
|
-
*/
|
|
2378
|
+
z.object({
|
|
2379
|
+
field: z.string().min(1),
|
|
2380
|
+
on: z.literal("advance")
|
|
2381
|
+
});
|
|
2393
2382
|
/** The default applied to a `runtimeState` cap that declares no `durability`. */
|
|
2394
2383
|
var DEFAULT_RUNTIME_STATE_DURABILITY = "session";
|
|
2395
2384
|
/**
|