@camstack/types 1.2.237 → 1.2.239

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.
@@ -2446,6 +2446,18 @@ function systemMethod(input, output, options) {
2446
2446
  systemOnly: true
2447
2447
  };
2448
2448
  }
2449
+ /**
2450
+ * A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
2451
+ * on `InferProvider`. The `providerOptional: true` literal is what
2452
+ * `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
2453
+ * for when this is the honest answer and when it is a soft stub.
2454
+ */
2455
+ function optionalMethod(input, output, options) {
2456
+ return {
2457
+ ...method(input, output, options),
2458
+ providerOptional: true
2459
+ };
2460
+ }
2449
2461
  /** Shorthand to define an event schema */
2450
2462
  function event(data) {
2451
2463
  return { data };
@@ -3876,7 +3888,8 @@ function createDeviceProxy(api, binding, opts) {
3876
3888
  videoclips: {
3877
3889
  listClips: (input) => dispatch("videoclips", "videoclips", "listClips", "query", input),
3878
3890
  listSources: (input) => dispatch("videoclips", "videoclips", "listSources", "query", input),
3879
- getClipPlayback: (input) => dispatch("videoclips", "videoclips", "getClipPlayback", "query", input)
3891
+ getClipPlayback: (input) => dispatch("videoclips", "videoclips", "getClipPlayback", "query", input),
3892
+ readClipBytes: (input) => dispatch("videoclips", "videoclips", "readClipBytes", "query", input)
3880
3893
  },
3881
3894
  waterHeater: {
3882
3895
  setTargetTemp: (input) => dispatch("water-heater", "waterHeater", "setTargetTemp", "mutation", input),
@@ -4335,4 +4348,4 @@ function sleepCancellable(ms, signal) {
4335
4348
  });
4336
4349
  }
4337
4350
  //#endregion
4338
- export { BrokerStatusSchema as $, DeviceType as A, emitReadiness as At, systemMethod as B, expandAudioChunkToF32le as Bt, customAction as C, DATAPLANE_SECRET_HEADER as Ct, ChargingStatus as D, normalizeAddonInitResult as Dt, deviceCustomAction as E, BaseAddon as Et, event as F, collectHydratedFieldValues as Ft, ReadinessRegistry as G, nodePin as H, expandCapMethods as I, hydrateSchema as It, readinessKey as J, ReadinessTimeoutError as K, isDeviceConfigCap as L, resolveHydratedFieldValue as Lt, DEFAULT_RUNTIME_STATE_DURABILITY as M, WELL_KNOWN_TABS as Mt, DEVICE_SETTINGS_CONTRIBUTION_METHODS as N, WELL_KNOWN_TAB_MAP as Nt, DeviceFeature as O, createDurableState as Ot, DEVICE_STATUS_METHOD as P, collectHydratedFieldEntries as Pt, BrokerStatsSchema as Q, method as R, AUDIO_CHUNK_FORMATS as Rt, DEVICE_CHILDREN_BATCH_MAX as S, selectAssignedProfileSlots as St, describeCustomActions as T, DisposerChain as Tt, readNodePin as U, CAP_NODE_PIN_CONTEXT_KEY as V, isAudioChunkFormat as Vt, toNodeId as W, AudioChunkFormatSchema as X, scopeKey as Y, AudioStreamPickSchema as Z, createMirrorSource as _, SubscribeFramesInputSchema as _t, asJsonObject as a, DecodedAudioChunkSchema as at, deviceOpsCapability as b, makeSourceBrokerId as bt, parseJsonArray as c, FrameHandleFormatSchema as ct, BOOT_RECOVERY_BACKOFF_MS as d, ProfileSlotSchema as dt, CAM_PROFILE_ORDER as et, DEVICE_SCOPED_CAPS as f, ProfileSlotStatusSchema as ft, createLazyTrpcSource as g, SubscribeAudioChunksResultSchema as gt, createEventBusSliceSource as h, SubscribeAudioChunksInputSchema as ht, asJsonArray as i, CameraStreamSchema as it, adminUiCapability as j, isEvent as jt, DeviceRole as k, createEvent as kt, parseJsonObject as l, FrameHandleSchema as lt, createDeviceProxy as m, StreamSourceSchema as mt, sleepCancellable as n, CamStreamKindSchema as nt, asNumber as o, DecodedFrameSchema as ot, isDeviceScopedCap as p, StreamSourceEntrySchema$1 as pt, emitDownForOwnedCaps as q, asBoolean as r, CamStreamResolutionSchema as rt, asString as s, EncodedPacketSchema as st, sleep as t, CamProfileSchema as tt, parseJsonUnknown as u, ProfileRtspEntrySchema as ut, createSliceHandle as v, SubscribeFramesResultSchema as vt, defineCustomActions as w, SHARE_VIEW_KINDS as wt, viewerUiCapability as x, parseProfileBrokerId as xt, RawStateResultSchema as y, makeProfileBrokerId as yt, resolveCapMount as z, audioChunkBytesPerSample as zt };
4351
+ export { BrokerStatsSchema as $, DeviceType as A, createEvent as At, resolveCapMount as B, audioChunkBytesPerSample as Bt, customAction as C, selectAssignedProfileSlots as Ct, ChargingStatus as D, BaseAddon as Dt, deviceCustomAction as E, DisposerChain as Et, event as F, collectHydratedFieldEntries as Ft, toNodeId as G, CAP_NODE_PIN_CONTEXT_KEY as H, isAudioChunkFormat as Ht, expandCapMethods as I, collectHydratedFieldValues as It, emitDownForOwnedCaps as J, ReadinessRegistry as K, isDeviceConfigCap as L, hydrateSchema as Lt, DEFAULT_RUNTIME_STATE_DURABILITY as M, isEvent as Mt, DEVICE_SETTINGS_CONTRIBUTION_METHODS as N, WELL_KNOWN_TABS as Nt, DeviceFeature as O, normalizeAddonInitResult as Ot, DEVICE_STATUS_METHOD as P, WELL_KNOWN_TAB_MAP as Pt, AudioStreamPickSchema as Q, method as R, resolveHydratedFieldValue as Rt, DEVICE_CHILDREN_BATCH_MAX as S, parseProfileBrokerId as St, describeCustomActions as T, SHARE_VIEW_KINDS as Tt, nodePin as U, systemMethod as V, expandAudioChunkToF32le as Vt, readNodePin as W, scopeKey as X, readinessKey as Y, AudioChunkFormatSchema as Z, createMirrorSource as _, SubscribeAudioChunksResultSchema as _t, asJsonObject as a, CameraStreamSchema as at, deviceOpsCapability as b, makeProfileBrokerId as bt, parseJsonArray as c, EncodedPacketSchema as ct, BOOT_RECOVERY_BACKOFF_MS as d, ProfileRtspEntrySchema as dt, BrokerStatusSchema as et, DEVICE_SCOPED_CAPS as f, ProfileSlotSchema as ft, createLazyTrpcSource as g, SubscribeAudioChunksInputSchema as gt, createEventBusSliceSource as h, StreamSourceSchema as ht, asJsonArray as i, CamStreamResolutionSchema as it, adminUiCapability as j, emitReadiness as jt, DeviceRole as k, createDurableState as kt, parseJsonObject as l, FrameHandleFormatSchema as lt, createDeviceProxy as m, StreamSourceEntrySchema$1 as mt, sleepCancellable as n, CamProfileSchema as nt, asNumber as o, DecodedAudioChunkSchema as ot, isDeviceScopedCap as p, ProfileSlotStatusSchema as pt, ReadinessTimeoutError as q, asBoolean as r, CamStreamKindSchema as rt, asString as s, DecodedFrameSchema as st, sleep as t, CAM_PROFILE_ORDER as tt, parseJsonUnknown as u, FrameHandleSchema as ut, createSliceHandle as v, SubscribeFramesInputSchema as vt, defineCustomActions as w, DATAPLANE_SECRET_HEADER as wt, viewerUiCapability as x, makeSourceBrokerId as xt, RawStateResultSchema as y, SubscribeFramesResultSchema as yt, optionalMethod as z, AUDIO_CHUNK_FORMATS as zt };
@@ -2446,6 +2446,18 @@ function systemMethod(input, output, options) {
2446
2446
  systemOnly: true
2447
2447
  };
2448
2448
  }
2449
+ /**
2450
+ * A method a SOURCE of a collection cap may legitimately not serve — OPTIONAL
2451
+ * on `InferProvider`. The `providerOptional: true` literal is what
2452
+ * `InferProvider` keys on; see {@link CapabilityMethodSchema.providerOptional}
2453
+ * for when this is the honest answer and when it is a soft stub.
2454
+ */
2455
+ function optionalMethod(input, output, options) {
2456
+ return {
2457
+ ...method(input, output, options),
2458
+ providerOptional: true
2459
+ };
2460
+ }
2449
2461
  /** Shorthand to define an event schema */
2450
2462
  function event(data) {
2451
2463
  return { data };
@@ -3876,7 +3888,8 @@ function createDeviceProxy(api, binding, opts) {
3876
3888
  videoclips: {
3877
3889
  listClips: (input) => dispatch("videoclips", "videoclips", "listClips", "query", input),
3878
3890
  listSources: (input) => dispatch("videoclips", "videoclips", "listSources", "query", input),
3879
- getClipPlayback: (input) => dispatch("videoclips", "videoclips", "getClipPlayback", "query", input)
3891
+ getClipPlayback: (input) => dispatch("videoclips", "videoclips", "getClipPlayback", "query", input),
3892
+ readClipBytes: (input) => dispatch("videoclips", "videoclips", "readClipBytes", "query", input)
3880
3893
  },
3881
3894
  waterHeater: {
3882
3895
  setTargetTemp: (input) => dispatch("water-heater", "waterHeater", "setTargetTemp", "mutation", input),
@@ -4815,6 +4828,12 @@ Object.defineProperty(exports, "normalizeAddonInitResult", {
4815
4828
  return normalizeAddonInitResult;
4816
4829
  }
4817
4830
  });
4831
+ Object.defineProperty(exports, "optionalMethod", {
4832
+ enumerable: true,
4833
+ get: function() {
4834
+ return optionalMethod;
4835
+ }
4836
+ });
4818
4837
  Object.defineProperty(exports, "parseJsonArray", {
4819
4838
  enumerable: true,
4820
4839
  get: function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.237",
3
+ "version": "1.2.239",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",