@camstack/types 1.2.421 → 1.2.422

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.
Files changed (39) hide show
  1. package/dist/addon.js +1 -1
  2. package/dist/addon.mjs +1 -1
  3. package/dist/capabilities/composer.cap.d.ts +129 -57
  4. package/dist/capabilities/core-blocks.cap.d.ts +936 -410
  5. package/dist/capabilities/index.d.ts +3 -1
  6. package/dist/capabilities/meter.cap.d.ts +53 -0
  7. package/dist/client.js +3 -0
  8. package/dist/client.mjs +3 -0
  9. package/dist/composition/composition-report.d.ts +45 -0
  10. package/dist/composition/composition.d.ts +196 -19
  11. package/dist/composition/helpers/compile-history.d.ts +13 -0
  12. package/dist/composition/helpers/compile.d.ts +2 -1
  13. package/dist/composition/helpers/energy.d.ts +8 -0
  14. package/dist/composition/helpers/history-math.d.ts +39 -0
  15. package/dist/composition/helpers/history-window.d.ts +71 -0
  16. package/dist/composition/helpers/index.d.ts +6 -2
  17. package/dist/composition/helpers/source-pick.d.ts +2 -0
  18. package/dist/composition/helpers/spec.d.ts +23 -10
  19. package/dist/{composition-B3Hkb6v7.js → composition-CPRAP41h.js} +792 -8
  20. package/dist/{composition-B2rw5L29.mjs → composition-CpETZ4HL.mjs} +595 -9
  21. package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
  22. package/dist/generated/addon-api.d.ts +14 -0
  23. package/dist/generated/addon-cap-facts.d.ts +1 -1
  24. package/dist/generated/cap-status-types.d.ts +3 -1
  25. package/dist/generated/capability-router-map.d.ts +5 -2
  26. package/dist/generated/device-local-state.d.ts +3 -0
  27. package/dist/generated/device-proxy.d.ts +3 -0
  28. package/dist/generated/device-scoped-caps.d.ts +1 -1
  29. package/dist/generated/history-catalog.d.ts +1 -1
  30. package/dist/generated/method-access-map.d.ts +1 -1
  31. package/dist/generated/method-device-selectors.d.ts +1 -1
  32. package/dist/generated/runtime-state-durability.d.ts +1 -1
  33. package/dist/index.js +747 -446
  34. package/dist/index.mjs +709 -447
  35. package/dist/node.js +1 -1
  36. package/dist/node.mjs +1 -1
  37. package/dist/{sleep-bykKrTgu.mjs → sleep-0sD_LHLI.mjs} +10 -1
  38. package/dist/{sleep-YJ6FVsUu.js → sleep-CEKGW7A5.js} +10 -1
  39. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-YJ6FVsUu.js");
2
+ const require_sleep = require("./sleep-CEKGW7A5.js");
3
3
  const require_event_category = require("./event-category-Ave2VSxY.js");
4
4
  const require_err_msg = require("./err-msg-U7lLUMNz.js");
5
5
  //#region src/generated/cap-input-defaults.ts
package/dist/addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as expandCapMethods, $n as REVALIDATE_AFTER_MS, $r as isSecretMarker, $t as RecordFieldPathSchema, A as HF_REPO, An as RecordUniqueViolationError, Ar as buildSecretRef, B as withoutCallerStamp, Bn as RECORD_CLASSES, C as addonSliceHandleApi, Cn as InvalidRecordError, Dn as RecordNotFoundError, En as RECORDS_ERROR_CODES, Fn as UnknownRecordKindError, Fr as parseSecretRef, G as adminUiCapability, Gn as RECORD_MAX_DATA_BYTES, Hn as RECORD_DEFAULT_MAX_DATA_BYTES, I as deviceOpsCapability, In as asRecordsError, Jn as RECORD_QUERY_MAX, Jt as defineEntryKind, Kn as RECORD_MAX_INDEXES, L as viewerUiCapability, Ln as recordsErrorFromMessage, M as CAP_ADVANCE_FIELDS, Mn as RevConflictError, Mr as globalSecretScope, Nn as TransactRefusedError, Nr as isSecretRef, On as RecordSecretUnavailableError, Or as SECRET_REF_SCHEME, P as CAP_STATE_LEAVES, Pn as UnindexedFilterError, Pr as normalizeSecretOwner, Qn as resolveSecretViewsIn, Qr as isSecretFieldView, Qt as EntryDescriptorSchema, R as DEVICE_CHILDREN_BATCH_MAX, Rn as RECORD_BATCH_MAX, Rr as createEvent, Sn as ForeignSecretMarkerError, Tn as PlaintextSecretError, U as describeCustomActions, Un as RECORD_DELETE_BATCH, Vn as RECORD_DATABASES, Wn as RECORD_ID_MAX_LENGTH, Xn as RECORD_SETTINGS_MAX_ROWS, Xr as classifySecretWrite, Xt as createRecordsAccess, Yn as RECORD_SECRET_COLLECTION_PREFIX, Yr as SECRET_CLEAR, Yt as entryBody, Zn as RECORD_SWEEP_INTERVAL_MS, Zr as isSecretClear, Zt as assertTransactScope, _ as readErrorI18n, _n as collectZodSecretPaths, an as assertValidDeclaration, ar as registerKnownSecret, b as isDeviceScopedCap, bn as DeclarationRefusedError, c as asString, cn as REMOVE_LEAF, cr as PEER_BYTES_CHUNK_BYTES, ct as readNodePin, d as parseJsonUnknown, dn as parseSecretPath, dr as PEER_BYTES_TICKET_TTL_MS, dt as ReadinessRegistry, ei as isSecretMarkerLike, en as RecordIndexSchema, er as createSecretsAccess, f as hfModelUrl, fn as recordArrayItemPath, ft as ReadinessTimeoutError, g as ErrorI18nPayloadSchema, gr as BaseAddon, hn as secretArrayPrefixes, hr as DisposerChain, ht as scopeKey, in as StoredRecordKindDeclarationSchema, ir as knownSecretCount, jn as RecordsError, jr as formatSecretScope, kn as RecordTooLargeError, kr as arrayItemFieldPath, ln as collectSecretLeaves, lr as PEER_BYTES_MAX_OUTSTANDING, mn as recordSecretRef, ni as toSecretFieldView, nn as RecordKindNameSchema, nr as clearKnownSecrets, o as asJsonObject, on as declarationsOf, or as scrubKnownSecrets, p as BOOT_RECOVERY_BACKOFF_MS, pn as recordSecretCollection, pr as DATAPLANE_SECRET_HEADER, qn as RECORD_MAX_INDEX_FIELDS, qt as makeInMemoryRecords, r as maskUrlCredentials, rn as RecordRetentionSchema, rr as forgetKnownSecret, sn as defineRecordKinds, sr as shortSecretRefHash, st as nodePin, t as sleep, ti as makeSecretMarker, tn as RecordKindDeclarationSchema, tr as MIN_SCRUBBED_LENGTH, un as mapSecretLeaves, ur as PEER_BYTES_STALL_MS, ut as MODEL_FORMATS, vn as isZodSecret, vr as normalizeAddonInitResult, w as createEventBusSliceSource, wn as NoCallerError, x as createDeviceProxy, xn as FilterRequiredError, y as DEVICE_SCOPED_CAPS, yn as BatchTooLargeError, z as CALLER_STAMPED_CAPABILITIES, zn as RECORD_BATCH_MAX_BYTES, zr as emitReadiness } from "./sleep-bykKrTgu.mjs";
1
+ import { $ as expandCapMethods, $n as REVALIDATE_AFTER_MS, $r as isSecretMarker, $t as RecordFieldPathSchema, A as HF_REPO, An as RecordUniqueViolationError, Ar as buildSecretRef, B as withoutCallerStamp, Bn as RECORD_CLASSES, C as addonSliceHandleApi, Cn as InvalidRecordError, Dn as RecordNotFoundError, En as RECORDS_ERROR_CODES, Fn as UnknownRecordKindError, Fr as parseSecretRef, G as adminUiCapability, Gn as RECORD_MAX_DATA_BYTES, Hn as RECORD_DEFAULT_MAX_DATA_BYTES, I as deviceOpsCapability, In as asRecordsError, Jn as RECORD_QUERY_MAX, Jt as defineEntryKind, Kn as RECORD_MAX_INDEXES, L as viewerUiCapability, Ln as recordsErrorFromMessage, M as CAP_ADVANCE_FIELDS, Mn as RevConflictError, Mr as globalSecretScope, Nn as TransactRefusedError, Nr as isSecretRef, On as RecordSecretUnavailableError, Or as SECRET_REF_SCHEME, P as CAP_STATE_LEAVES, Pn as UnindexedFilterError, Pr as normalizeSecretOwner, Qn as resolveSecretViewsIn, Qr as isSecretFieldView, Qt as EntryDescriptorSchema, R as DEVICE_CHILDREN_BATCH_MAX, Rn as RECORD_BATCH_MAX, Rr as createEvent, Sn as ForeignSecretMarkerError, Tn as PlaintextSecretError, U as describeCustomActions, Un as RECORD_DELETE_BATCH, Vn as RECORD_DATABASES, Wn as RECORD_ID_MAX_LENGTH, Xn as RECORD_SETTINGS_MAX_ROWS, Xr as classifySecretWrite, Xt as createRecordsAccess, Yn as RECORD_SECRET_COLLECTION_PREFIX, Yr as SECRET_CLEAR, Yt as entryBody, Zn as RECORD_SWEEP_INTERVAL_MS, Zr as isSecretClear, Zt as assertTransactScope, _ as readErrorI18n, _n as collectZodSecretPaths, an as assertValidDeclaration, ar as registerKnownSecret, b as isDeviceScopedCap, bn as DeclarationRefusedError, c as asString, cn as REMOVE_LEAF, cr as PEER_BYTES_CHUNK_BYTES, ct as readNodePin, d as parseJsonUnknown, dn as parseSecretPath, dr as PEER_BYTES_TICKET_TTL_MS, dt as ReadinessRegistry, ei as isSecretMarkerLike, en as RecordIndexSchema, er as createSecretsAccess, f as hfModelUrl, fn as recordArrayItemPath, ft as ReadinessTimeoutError, g as ErrorI18nPayloadSchema, gr as BaseAddon, hn as secretArrayPrefixes, hr as DisposerChain, ht as scopeKey, in as StoredRecordKindDeclarationSchema, ir as knownSecretCount, jn as RecordsError, jr as formatSecretScope, kn as RecordTooLargeError, kr as arrayItemFieldPath, ln as collectSecretLeaves, lr as PEER_BYTES_MAX_OUTSTANDING, mn as recordSecretRef, ni as toSecretFieldView, nn as RecordKindNameSchema, nr as clearKnownSecrets, o as asJsonObject, on as declarationsOf, or as scrubKnownSecrets, p as BOOT_RECOVERY_BACKOFF_MS, pn as recordSecretCollection, pr as DATAPLANE_SECRET_HEADER, qn as RECORD_MAX_INDEX_FIELDS, qt as makeInMemoryRecords, r as maskUrlCredentials, rn as RecordRetentionSchema, rr as forgetKnownSecret, sn as defineRecordKinds, sr as shortSecretRefHash, st as nodePin, t as sleep, ti as makeSecretMarker, tn as RecordKindDeclarationSchema, tr as MIN_SCRUBBED_LENGTH, un as mapSecretLeaves, ur as PEER_BYTES_STALL_MS, ut as MODEL_FORMATS, vn as isZodSecret, vr as normalizeAddonInitResult, w as createEventBusSliceSource, wn as NoCallerError, x as createDeviceProxy, xn as FilterRequiredError, y as DEVICE_SCOPED_CAPS, yn as BatchTooLargeError, z as CALLER_STAMPED_CAPABILITIES, zn as RECORD_BATCH_MAX_BYTES, zr as emitReadiness } from "./sleep-0sD_LHLI.mjs";
2
2
  import { t as EventCategory } from "./event-category-CT-hz5Rb.mjs";
3
3
  import { a as DeviceType, t as errMsg } from "./err-msg-DIorGYeC.mjs";
4
4
  //#region src/generated/cap-input-defaults.ts
@@ -86,6 +86,27 @@ export declare const ComposerBlockSchema: z.ZodObject<{
86
86
  offline: "offline";
87
87
  omit: "omit";
88
88
  }>;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ kind: z.ZodLiteral<"series">;
91
+ read: z.ZodObject<{
92
+ source: z.ZodObject<{
93
+ addonId: z.ZodString;
94
+ stableId: z.ZodString;
95
+ }, z.core.$strip>;
96
+ cap: z.ZodString;
97
+ fieldPath: z.ZodString;
98
+ }, z.core.$strip>;
99
+ publish: z.ZodEnum<{
100
+ excluded: "excluded";
101
+ included: "included";
102
+ total: "total";
103
+ value: "value";
104
+ }>;
105
+ empty: z.ZodEnum<{
106
+ null: "null";
107
+ offline: "offline";
108
+ omit: "omit";
109
+ }>;
89
110
  }, z.core.$strip>], "kind">>;
90
111
  items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
91
112
  label: z.ZodString;
@@ -145,6 +166,27 @@ export declare const ComposerBlockSchema: z.ZodObject<{
145
166
  offline: "offline";
146
167
  omit: "omit";
147
168
  }>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ kind: z.ZodLiteral<"series">;
171
+ read: z.ZodObject<{
172
+ source: z.ZodObject<{
173
+ addonId: z.ZodString;
174
+ stableId: z.ZodString;
175
+ }, z.core.$strip>;
176
+ cap: z.ZodString;
177
+ fieldPath: z.ZodString;
178
+ }, z.core.$strip>;
179
+ publish: z.ZodEnum<{
180
+ excluded: "excluded";
181
+ included: "included";
182
+ total: "total";
183
+ value: "value";
184
+ }>;
185
+ empty: z.ZodEnum<{
186
+ null: "null";
187
+ offline: "offline";
188
+ omit: "omit";
189
+ }>;
148
190
  }, z.core.$strip>], "kind">>;
149
191
  }, z.core.$strip>>>;
150
192
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -168,25 +210,7 @@ export declare const ComposerBlockSchema: z.ZodObject<{
168
210
  stableId: z.ZodString;
169
211
  }, z.core.$strip>;
170
212
  }, z.core.$strip>], "kind">>;
171
- helper: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
172
- kind: z.ZodLiteral<'group'>;
173
- templateId: typeof import("../index.js").GroupTemplateIdSchema;
174
- aggregate: typeof import("../index.js").AggregateReducerSchema;
175
- members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
176
- active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
177
- }, z.core.$strip>, z.ZodObject<{
178
- kind: z.ZodLiteral<'appliance'>;
179
- templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
180
- appliance: z.ZodEnum<{
181
- washer: 'washer';
182
- dryer: 'dryer';
183
- dishwasher: 'dishwasher';
184
- }>;
185
- thresholdWatts: z.ZodNumber;
186
- startDwellMs: z.ZodNumber;
187
- stopDwellMs: z.ZodNumber;
188
- member: typeof import("../index.js").HelperMemberSchema;
189
- }, z.core.$strip>], "kind">>;
213
+ helper: z.ZodOptional<z.ZodType<import("../index.js").HelperSpec, unknown, z.core.$ZodTypeInternals<import("../index.js").HelperSpec, unknown>>>;
190
214
  }, z.core.$strip>;
191
215
  }, z.core.$strip>;
192
216
  export type ComposerBlock = z.infer<typeof ComposerBlockSchema>;
@@ -290,6 +314,27 @@ export declare const ComposerApplyInputSchema: z.ZodObject<{
290
314
  offline: "offline";
291
315
  omit: "omit";
292
316
  }>;
317
+ }, z.core.$strip>, z.ZodObject<{
318
+ kind: z.ZodLiteral<"series">;
319
+ read: z.ZodObject<{
320
+ source: z.ZodObject<{
321
+ addonId: z.ZodString;
322
+ stableId: z.ZodString;
323
+ }, z.core.$strip>;
324
+ cap: z.ZodString;
325
+ fieldPath: z.ZodString;
326
+ }, z.core.$strip>;
327
+ publish: z.ZodEnum<{
328
+ excluded: "excluded";
329
+ included: "included";
330
+ total: "total";
331
+ value: "value";
332
+ }>;
333
+ empty: z.ZodEnum<{
334
+ null: "null";
335
+ offline: "offline";
336
+ omit: "omit";
337
+ }>;
293
338
  }, z.core.$strip>], "kind">>;
294
339
  items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
295
340
  label: z.ZodString;
@@ -349,6 +394,27 @@ export declare const ComposerApplyInputSchema: z.ZodObject<{
349
394
  offline: "offline";
350
395
  omit: "omit";
351
396
  }>;
397
+ }, z.core.$strip>, z.ZodObject<{
398
+ kind: z.ZodLiteral<"series">;
399
+ read: z.ZodObject<{
400
+ source: z.ZodObject<{
401
+ addonId: z.ZodString;
402
+ stableId: z.ZodString;
403
+ }, z.core.$strip>;
404
+ cap: z.ZodString;
405
+ fieldPath: z.ZodString;
406
+ }, z.core.$strip>;
407
+ publish: z.ZodEnum<{
408
+ excluded: "excluded";
409
+ included: "included";
410
+ total: "total";
411
+ value: "value";
412
+ }>;
413
+ empty: z.ZodEnum<{
414
+ null: "null";
415
+ offline: "offline";
416
+ omit: "omit";
417
+ }>;
352
418
  }, z.core.$strip>], "kind">>;
353
419
  }, z.core.$strip>>>;
354
420
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -372,25 +438,7 @@ export declare const ComposerApplyInputSchema: z.ZodObject<{
372
438
  stableId: z.ZodString;
373
439
  }, z.core.$strip>;
374
440
  }, z.core.$strip>], "kind">>;
375
- helper: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
376
- kind: z.ZodLiteral<'group'>;
377
- templateId: typeof import("../index.js").GroupTemplateIdSchema;
378
- aggregate: typeof import("../index.js").AggregateReducerSchema;
379
- members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
380
- active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
381
- }, z.core.$strip>, z.ZodObject<{
382
- kind: z.ZodLiteral<'appliance'>;
383
- templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
384
- appliance: z.ZodEnum<{
385
- washer: 'washer';
386
- dryer: 'dryer';
387
- dishwasher: 'dishwasher';
388
- }>;
389
- thresholdWatts: z.ZodNumber;
390
- startDwellMs: z.ZodNumber;
391
- stopDwellMs: z.ZodNumber;
392
- member: typeof import("../index.js").HelperMemberSchema;
393
- }, z.core.$strip>], "kind">>;
441
+ helper: z.ZodOptional<z.ZodType<import("../index.js").HelperSpec, unknown, z.core.$ZodTypeInternals<import("../index.js").HelperSpec, unknown>>>;
394
442
  }, z.core.$strip>;
395
443
  }, z.core.$strip>>;
396
444
  restartBlockIds: z.ZodArray<z.ZodString>;
@@ -527,6 +575,27 @@ export declare const composerCapability: {
527
575
  offline: "offline";
528
576
  omit: "omit";
529
577
  }>;
578
+ }, z.core.$strip>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"series">;
580
+ read: z.ZodObject<{
581
+ source: z.ZodObject<{
582
+ addonId: z.ZodString;
583
+ stableId: z.ZodString;
584
+ }, z.core.$strip>;
585
+ cap: z.ZodString;
586
+ fieldPath: z.ZodString;
587
+ }, z.core.$strip>;
588
+ publish: z.ZodEnum<{
589
+ excluded: "excluded";
590
+ included: "included";
591
+ total: "total";
592
+ value: "value";
593
+ }>;
594
+ empty: z.ZodEnum<{
595
+ null: "null";
596
+ offline: "offline";
597
+ omit: "omit";
598
+ }>;
530
599
  }, z.core.$strip>], "kind">>;
531
600
  items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
532
601
  label: z.ZodString;
@@ -586,6 +655,27 @@ export declare const composerCapability: {
586
655
  offline: "offline";
587
656
  omit: "omit";
588
657
  }>;
658
+ }, z.core.$strip>, z.ZodObject<{
659
+ kind: z.ZodLiteral<"series">;
660
+ read: z.ZodObject<{
661
+ source: z.ZodObject<{
662
+ addonId: z.ZodString;
663
+ stableId: z.ZodString;
664
+ }, z.core.$strip>;
665
+ cap: z.ZodString;
666
+ fieldPath: z.ZodString;
667
+ }, z.core.$strip>;
668
+ publish: z.ZodEnum<{
669
+ excluded: "excluded";
670
+ included: "included";
671
+ total: "total";
672
+ value: "value";
673
+ }>;
674
+ empty: z.ZodEnum<{
675
+ null: "null";
676
+ offline: "offline";
677
+ omit: "omit";
678
+ }>;
589
679
  }, z.core.$strip>], "kind">>;
590
680
  }, z.core.$strip>>>;
591
681
  commands: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -609,25 +699,7 @@ export declare const composerCapability: {
609
699
  stableId: z.ZodString;
610
700
  }, z.core.$strip>;
611
701
  }, z.core.$strip>], "kind">>;
612
- helper: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
613
- kind: z.ZodLiteral<'group'>;
614
- templateId: typeof import("../index.js").GroupTemplateIdSchema;
615
- aggregate: typeof import("../index.js").AggregateReducerSchema;
616
- members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
617
- active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
618
- }, z.core.$strip>, z.ZodObject<{
619
- kind: z.ZodLiteral<'appliance'>;
620
- templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
621
- appliance: z.ZodEnum<{
622
- washer: 'washer';
623
- dryer: 'dryer';
624
- dishwasher: 'dishwasher';
625
- }>;
626
- thresholdWatts: z.ZodNumber;
627
- startDwellMs: z.ZodNumber;
628
- stopDwellMs: z.ZodNumber;
629
- member: typeof import("../index.js").HelperMemberSchema;
630
- }, z.core.$strip>], "kind">>;
702
+ helper: z.ZodOptional<z.ZodType<import("../index.js").HelperSpec, unknown, z.core.$ZodTypeInternals<import("../index.js").HelperSpec, unknown>>>;
631
703
  }, z.core.$strip>;
632
704
  }, z.core.$strip>>;
633
705
  restartBlockIds: z.ZodArray<z.ZodString>;