@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.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/capability-definition.d.ts +41 -1
- package/dist/capabilities/index.d.ts +4 -4
- package/dist/capabilities/recording-export.cap.d.ts +437 -20
- package/dist/capabilities/recording.cap.d.ts +12 -0
- package/dist/capabilities/videoclips.cap.d.ts +122 -0
- package/dist/generated/addon-api.d.ts +7 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/index.js +1144 -12
- package/dist/index.mjs +1148 -22
- package/dist/{sleep-CaB_hL5g.mjs → sleep-BVhJDJka.mjs} +15 -2
- package/dist/{sleep-Cqxm5OIN.js → sleep-C0n7gucP.js} +20 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
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() {
|