@camstack/types 1.2.564 → 1.2.566
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/CHANGELOG.md +15 -0
- package/dist/addon/base-addon.d.ts +6 -0
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/automation/recipe.d.ts +156 -3
- package/dist/automation/template-link.d.ts +871 -9
- package/dist/automation/when.d.ts +98 -6
- package/dist/capabilities/migrations.cap.d.ts +1 -0
- package/dist/client.js +0 -3
- package/dist/client.mjs +0 -3
- package/dist/{composed-stable-id-Bp33yrYi.js → composed-stable-id-BzXh1Swk.js} +0 -2
- package/dist/{composed-stable-id-B3wcvtvW.mjs → composed-stable-id-COP6zOXx.mjs} +0 -2
- package/dist/device/device-control-resolution.d.ts +1 -1
- package/dist/device/device-icon.d.ts +0 -1
- package/dist/device/device-type.d.ts +0 -2
- package/dist/device/hero/hero-layout.d.ts +0 -1
- package/dist/device/hero/hero-look.d.ts +0 -6
- package/dist/device/hero/hero-scene.d.ts +0 -1
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/{implemented-methods-CgUBu6uM.mjs → implemented-methods-0xxMOekw.mjs} +1 -1
- package/dist/{implemented-methods-CDYOCn9a.js → implemented-methods-D4F6RWkO.js} +1 -1
- package/dist/index.js +859 -557
- package/dist/index.mjs +848 -558
- package/dist/migrations/addon-migration.d.ts +5 -0
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-D7hCDd7y.mjs → sleep-B5XPl2YP.mjs} +16 -3
- package/dist/{sleep-B1IED7ED.js → sleep-mEzgbYFJ.js} +16 -3
- package/dist/template/automation-template.d.ts +1230 -189
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.566] - 2026-11-14
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Automation templates: a group row can hold groups, so the Buttons → devices template takes several events and several actions per button (automations made from the old shape must be recreated)
|
|
15
|
+
- Automation templates: an optional time-window input and a gate binding wrap an automation's condition as all[time-is, original] only when filled
|
|
16
|
+
- The Buttons template's When and Actions are the automation's own triggers and steps, copied verbatim; a button's action can target every device of a type or room
|
|
17
|
+
|
|
18
|
+
## [1.2.565] - 2026-11-14
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- The hub device type is gone. A stored hub value is unknown and is not read as a gateway.
|
|
23
|
+
- An addon can declare migration ids it removed on purpose, so their applied ledger rows are not read as a newer database
|
|
24
|
+
|
|
10
25
|
## [1.2.564] - 2026-11-14
|
|
11
26
|
|
|
12
27
|
### Changed
|
|
@@ -226,6 +226,12 @@ export declare abstract class BaseAddon<TConfig extends object = Record<string,
|
|
|
226
226
|
readonly kind: DefinedRecordKind;
|
|
227
227
|
readonly initialBody: (name: string) => Readonly<Record<string, unknown>>;
|
|
228
228
|
}): void;
|
|
229
|
+
/**
|
|
230
|
+
* Ids this addon removed from its catalogue on purpose (`declareRetiredMigrations`): sent with
|
|
231
|
+
* every declaration so the engine does not read their applied rows as a newer database.
|
|
232
|
+
*/
|
|
233
|
+
private retiredMigrationIds;
|
|
234
|
+
protected declareRetiredMigrations(ids: readonly string[]): void;
|
|
229
235
|
private registrySwitchSpec;
|
|
230
236
|
private registrySwitchBound;
|
|
231
237
|
private runBound;
|
package/dist/addon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-mEzgbYFJ.js");
|
|
3
3
|
const require_event_category = require("./event-category-Ps2LC8dN.js");
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-BzXh1Swk.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
|
7
7
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
package/dist/addon.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $n as isZodSecret, $r as recordSecretRef, A as CAP_ADVANCE_FIELDS, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Bi as TransactRefusedError, Bn as entryBody, Cn as MIN_SCRUBBED_LENGTH, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, G as readNodePin, Gn as RecordKindNameSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, J as PipelineRunResultBridge, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Kn as RecordRetentionSchema, Kr as secretViewsOf, L as defineCustomActions, Li as RecordUniqueViolationError, Lr as resolvedValues, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, N as CAP_STATE_LEAVES, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, O as HF_REPO, Oi as FilterRequiredError, On as scrubKnownSecrets, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pr as SCOPED_SETTINGS_SCOPES, Q as deviceOpsCapability, Qn as collectZodSecretPaths, Qr as recordSecretCollection, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Si as parseSecretRef, Sn as createSecretsAccess, T as isCommand, Tn as forgetKnownSecret, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, X as MIGRATION_API_VERSION, Xn as defineRecordKinds, Xr as parseSecretPath, Y as PipelineStepInputSchema, Yn as declarationsOf, Yr as mapSecretLeaves, Zr as recordArrayItemPath, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, ai as RECORD_DEFAULT_MAX_DATA_BYTES, bi as isSecretRef, bn as resolveSecretViewsIn, c as asString, ci as RECORD_MAX_DATA_BYTES, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, ea as createEvent, ei as secretArrayPrefixes, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, ht as ReadinessTimeoutError, ii as RECORD_DATABASES, j as CAP_METHOD_TIMEOUTS_MS, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, li as RECORD_MAX_INDEXES, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mt as ReadinessRegistry, ni as RECORD_BATCH_MAX_BYTES, nt as addonPagesSourceCapability, o as asJsonObject, oi as RECORD_DELETE_BATCH, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pt as MODEL_FORMATS, q as viewerUiCapability, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, r as maskUrlCredentials, ri as RECORD_CLASSES, si as RECORD_ID_MAX_LENGTH, sr as expandCapMethods, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, ui as RECORD_MAX_INDEX_FIELDS, v as addonSliceHandleApi, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vt as scopeKey, wn as clearKnownSecrets, wr as normalizeAddonInitResult, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, y as createEventBusSliceSource, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, zi as RevConflictError, zn as defineEntryKind } from "./sleep-B5XPl2YP.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-Dv-Gcv1f.mjs";
|
|
3
|
-
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
3
|
+
import { a as DeviceType, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-COP6zOXx.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
6
6
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -236,7 +236,7 @@ export declare const STEP_NEST_MAX = 2;
|
|
|
236
236
|
* A plain step: a flow step with no condition of its own and no step inside
|
|
237
237
|
* it. The second (last) level of nesting holds these only.
|
|
238
238
|
*/
|
|
239
|
-
declare const AutomationBranchStepSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
239
|
+
export declare const AutomationBranchStepSchema: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
240
240
|
kind: z.ZodLiteral<"wait">;
|
|
241
241
|
seconds: z.ZodNumber;
|
|
242
242
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -8448,7 +8448,114 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
|
|
|
8448
8448
|
}, z.core.$strip>, z.ZodObject<{
|
|
8449
8449
|
actionId: z.ZodString;
|
|
8450
8450
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8451
|
-
}, z.core.$strip
|
|
8451
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8452
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
8453
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8454
|
+
kind: z.ZodLiteral<"clock">;
|
|
8455
|
+
hh: z.ZodNumber;
|
|
8456
|
+
mm: z.ZodNumber;
|
|
8457
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8458
|
+
kind: z.ZodLiteral<"sun">;
|
|
8459
|
+
event: z.ZodEnum<{
|
|
8460
|
+
dawn: "dawn";
|
|
8461
|
+
dusk: "dusk";
|
|
8462
|
+
sunrise: "sunrise";
|
|
8463
|
+
sunset: "sunset";
|
|
8464
|
+
}>;
|
|
8465
|
+
offsetMin: z.ZodNumber;
|
|
8466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8467
|
+
kind: z.ZodLiteral<"date">;
|
|
8468
|
+
local: z.ZodString;
|
|
8469
|
+
}, z.core.$strip>], "kind">;
|
|
8470
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8471
|
+
kind: z.ZodLiteral<"clock">;
|
|
8472
|
+
hh: z.ZodNumber;
|
|
8473
|
+
mm: z.ZodNumber;
|
|
8474
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8475
|
+
kind: z.ZodLiteral<"sun">;
|
|
8476
|
+
event: z.ZodEnum<{
|
|
8477
|
+
dawn: "dawn";
|
|
8478
|
+
dusk: "dusk";
|
|
8479
|
+
sunrise: "sunrise";
|
|
8480
|
+
sunset: "sunset";
|
|
8481
|
+
}>;
|
|
8482
|
+
offsetMin: z.ZodNumber;
|
|
8483
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8484
|
+
kind: z.ZodLiteral<"date">;
|
|
8485
|
+
local: z.ZodString;
|
|
8486
|
+
}, z.core.$strip>], "kind">;
|
|
8487
|
+
}, z.core.$strip>>;
|
|
8488
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8489
|
+
fri: "fri";
|
|
8490
|
+
mon: "mon";
|
|
8491
|
+
sat: "sat";
|
|
8492
|
+
sun: "sun";
|
|
8493
|
+
thu: "thu";
|
|
8494
|
+
tue: "tue";
|
|
8495
|
+
wed: "wed";
|
|
8496
|
+
}>>>;
|
|
8497
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
8498
|
+
eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8499
|
+
sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8500
|
+
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8501
|
+
"double-press": "double-press";
|
|
8502
|
+
"long-press": "long-press";
|
|
8503
|
+
"long-press-start": "long-press-start";
|
|
8504
|
+
other: "other";
|
|
8505
|
+
press: "press";
|
|
8506
|
+
release: "release";
|
|
8507
|
+
repeat: "repeat";
|
|
8508
|
+
}>>>;
|
|
8509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8510
|
+
actionId: z.ZodString;
|
|
8511
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8512
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8513
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
8514
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8515
|
+
kind: z.ZodLiteral<"clock">;
|
|
8516
|
+
hh: z.ZodNumber;
|
|
8517
|
+
mm: z.ZodNumber;
|
|
8518
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8519
|
+
kind: z.ZodLiteral<"sun">;
|
|
8520
|
+
event: z.ZodEnum<{
|
|
8521
|
+
dawn: "dawn";
|
|
8522
|
+
dusk: "dusk";
|
|
8523
|
+
sunrise: "sunrise";
|
|
8524
|
+
sunset: "sunset";
|
|
8525
|
+
}>;
|
|
8526
|
+
offsetMin: z.ZodNumber;
|
|
8527
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8528
|
+
kind: z.ZodLiteral<"date">;
|
|
8529
|
+
local: z.ZodString;
|
|
8530
|
+
}, z.core.$strip>], "kind">;
|
|
8531
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8532
|
+
kind: z.ZodLiteral<"clock">;
|
|
8533
|
+
hh: z.ZodNumber;
|
|
8534
|
+
mm: z.ZodNumber;
|
|
8535
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8536
|
+
kind: z.ZodLiteral<"sun">;
|
|
8537
|
+
event: z.ZodEnum<{
|
|
8538
|
+
dawn: "dawn";
|
|
8539
|
+
dusk: "dusk";
|
|
8540
|
+
sunrise: "sunrise";
|
|
8541
|
+
sunset: "sunset";
|
|
8542
|
+
}>;
|
|
8543
|
+
offsetMin: z.ZodNumber;
|
|
8544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8545
|
+
kind: z.ZodLiteral<"date">;
|
|
8546
|
+
local: z.ZodString;
|
|
8547
|
+
}, z.core.$strip>], "kind">;
|
|
8548
|
+
}, z.core.$strip>>;
|
|
8549
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8550
|
+
fri: "fri";
|
|
8551
|
+
mon: "mon";
|
|
8552
|
+
sat: "sat";
|
|
8553
|
+
sun: "sun";
|
|
8554
|
+
thu: "thu";
|
|
8555
|
+
tue: "tue";
|
|
8556
|
+
wed: "wed";
|
|
8557
|
+
}>>>;
|
|
8558
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodNumber>, z.ZodObject<{
|
|
8452
8559
|
eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8453
8560
|
sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8454
8561
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -8463,7 +8570,53 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
|
|
|
8463
8570
|
}, z.core.$strip>, z.ZodObject<{
|
|
8464
8571
|
actionId: z.ZodString;
|
|
8465
8572
|
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8466
|
-
}, z.core.$strip
|
|
8573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8574
|
+
between: z.ZodOptional<z.ZodObject<{
|
|
8575
|
+
from: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8576
|
+
kind: z.ZodLiteral<"clock">;
|
|
8577
|
+
hh: z.ZodNumber;
|
|
8578
|
+
mm: z.ZodNumber;
|
|
8579
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8580
|
+
kind: z.ZodLiteral<"sun">;
|
|
8581
|
+
event: z.ZodEnum<{
|
|
8582
|
+
dawn: "dawn";
|
|
8583
|
+
dusk: "dusk";
|
|
8584
|
+
sunrise: "sunrise";
|
|
8585
|
+
sunset: "sunset";
|
|
8586
|
+
}>;
|
|
8587
|
+
offsetMin: z.ZodNumber;
|
|
8588
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8589
|
+
kind: z.ZodLiteral<"date">;
|
|
8590
|
+
local: z.ZodString;
|
|
8591
|
+
}, z.core.$strip>], "kind">;
|
|
8592
|
+
to: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8593
|
+
kind: z.ZodLiteral<"clock">;
|
|
8594
|
+
hh: z.ZodNumber;
|
|
8595
|
+
mm: z.ZodNumber;
|
|
8596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8597
|
+
kind: z.ZodLiteral<"sun">;
|
|
8598
|
+
event: z.ZodEnum<{
|
|
8599
|
+
dawn: "dawn";
|
|
8600
|
+
dusk: "dusk";
|
|
8601
|
+
sunrise: "sunrise";
|
|
8602
|
+
sunset: "sunset";
|
|
8603
|
+
}>;
|
|
8604
|
+
offsetMin: z.ZodNumber;
|
|
8605
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8606
|
+
kind: z.ZodLiteral<"date">;
|
|
8607
|
+
local: z.ZodString;
|
|
8608
|
+
}, z.core.$strip>], "kind">;
|
|
8609
|
+
}, z.core.$strip>>;
|
|
8610
|
+
days: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
8611
|
+
fri: "fri";
|
|
8612
|
+
mon: "mon";
|
|
8613
|
+
sat: "sat";
|
|
8614
|
+
sun: "sun";
|
|
8615
|
+
thu: "thu";
|
|
8616
|
+
tue: "tue";
|
|
8617
|
+
wed: "wed";
|
|
8618
|
+
}>>>;
|
|
8619
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>]>>>]>>>]>>;
|
|
8467
8620
|
codeHash: z.ZodOptional<z.ZodString>;
|
|
8468
8621
|
problems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8469
8622
|
code: z.ZodEnum<{
|