@camstack/types 1.2.309 → 1.2.310
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/hub-address.d.ts +97 -50
- package/dist/capabilities/index.d.ts +4 -4
- package/dist/capabilities/local-network.cap.d.ts +543 -42
- package/dist/capabilities/webrtc-session.cap.d.ts +36 -0
- package/dist/client.js +5 -1
- package/dist/client.mjs +5 -1
- package/dist/generated/addon-api.d.ts +33 -7
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.js +451 -190
- package/dist/index.mjs +437 -187
- package/dist/{sleep-DXKLNFvA.mjs → sleep-C16NCZR2.mjs} +1 -0
- package/dist/{sleep-C3gDpn7G.js → sleep-DyF95STh.js} +1 -0
- package/package.json +1 -1
|
@@ -559,6 +559,42 @@ export declare const webrtcSessionCapability: {
|
|
|
559
559
|
}, z.core.$strip>>;
|
|
560
560
|
alive: z.ZodBoolean;
|
|
561
561
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
562
|
+
/**
|
|
563
|
+
* The viewer's downlink probe, for ONE live session (D733).
|
|
564
|
+
*
|
|
565
|
+
* The player measures `/adaptive-probe` after the session's first decoded
|
|
566
|
+
* frame (D635). It used to act on the reading itself, by opening a SECOND
|
|
567
|
+
* session with `hints.downlinkMbps` — every adaptive live open became two
|
|
568
|
+
* sessions, two ICE + DTLS handshakes and two server pipelines. It now
|
|
569
|
+
* hands the measurement to the session it already has; the provider picks
|
|
570
|
+
* the rung exactly as it would from an offer's hints (same viewport
|
|
571
|
+
* ceiling) and moves the session there — in place when the negotiated
|
|
572
|
+
* codec carries the new rendition, by the existing re-offer
|
|
573
|
+
* (`getSessionState.pendingRenegotiation`) when it cannot.
|
|
574
|
+
*
|
|
575
|
+
* A MEASUREMENT, never a tier: the client does not choose. A probe only
|
|
576
|
+
* raises the rung; lowering it stays the ladder's call on delivery.
|
|
577
|
+
* `held` answers why nothing moved (`not-adaptive`, `pinned`,
|
|
578
|
+
* `already-there`, `recorded`, …) — a client that gets ANY answer must not
|
|
579
|
+
* fall back to a reconnect; only a provider that does not know the method
|
|
580
|
+
* (an older hub) leaves the client its legacy second session.
|
|
581
|
+
*/
|
|
582
|
+
readonly applyDownlinkProbe: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
583
|
+
deviceId: z.ZodNumber;
|
|
584
|
+
sessionId: z.ZodString;
|
|
585
|
+
downlinkMbps: z.ZodNumber;
|
|
586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
587
|
+
outcome: z.ZodEnum<{
|
|
588
|
+
switching: "switching";
|
|
589
|
+
held: "held";
|
|
590
|
+
}>;
|
|
591
|
+
tier: z.ZodNullable<z.ZodEnum<{
|
|
592
|
+
high: "high";
|
|
593
|
+
mid: "mid";
|
|
594
|
+
low: "low";
|
|
595
|
+
}>>;
|
|
596
|
+
reason: z.ZodString;
|
|
597
|
+
}, z.core.$strip>, "mutation">;
|
|
562
598
|
/**
|
|
563
599
|
* The SERVER's half of the stream-debug overlay, for one live session.
|
|
564
600
|
*
|
package/dist/client.js
CHANGED
|
@@ -5958,6 +5958,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
5958
5958
|
closeSession: (input) => dispatch("webrtc-session", "webrtcSession", "closeSession", "mutation", input),
|
|
5959
5959
|
hasAdaptiveBitrate: (input) => dispatch("webrtc-session", "webrtcSession", "hasAdaptiveBitrate", "query", input),
|
|
5960
5960
|
getSessionState: (input) => dispatch("webrtc-session", "webrtcSession", "getSessionState", "query", input),
|
|
5961
|
+
applyDownlinkProbe: (input) => dispatch("webrtc-session", "webrtcSession", "applyDownlinkProbe", "mutation", input),
|
|
5961
5962
|
getSessionDebug: (input) => dispatch("webrtc-session", "webrtcSession", "getSessionDebug", "query", input)
|
|
5962
5963
|
};
|
|
5963
5964
|
const zoneAnalyticsInterface = {
|
|
@@ -7305,8 +7306,11 @@ function createSystemProxy(api) {
|
|
|
7305
7306
|
setNotificationEndpoint: (input) => dispatch("localNetwork", "setNotificationEndpoint", "mutation", input),
|
|
7306
7307
|
getViewerEndpoints: (input) => dispatch("localNetwork", "getViewerEndpoints", "query", input),
|
|
7307
7308
|
setViewerEndpoints: (input) => dispatch("localNetwork", "setViewerEndpoints", "mutation", input),
|
|
7309
|
+
getAddresses: (input) => dispatch("localNetwork", "getAddresses", "query", input),
|
|
7310
|
+
addCustomAddress: (input) => dispatch("localNetwork", "addCustomAddress", "mutation", input),
|
|
7311
|
+
removeCustomAddress: (input) => dispatch("localNetwork", "removeCustomAddress", "mutation", input),
|
|
7312
|
+
setAddressRole: (input) => dispatch("localNetwork", "setAddressRole", "mutation", input),
|
|
7308
7313
|
getHubAddresses: (input) => dispatch("localNetwork", "getHubAddresses", "query", input),
|
|
7309
|
-
setHubAddress: (input) => dispatch("localNetwork", "setHubAddress", "mutation", input),
|
|
7310
7314
|
getAllowedAddresses: (input) => dispatch("localNetwork", "getAllowedAddresses", "query", input),
|
|
7311
7315
|
setAllowedAddresses: (input) => dispatch("localNetwork", "setAllowedAddresses", "mutation", input),
|
|
7312
7316
|
resetAllowlistToBestMatch: (input) => dispatch("localNetwork", "resetAllowlistToBestMatch", "mutation", input),
|
package/dist/client.mjs
CHANGED
|
@@ -5957,6 +5957,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
5957
5957
|
closeSession: (input) => dispatch("webrtc-session", "webrtcSession", "closeSession", "mutation", input),
|
|
5958
5958
|
hasAdaptiveBitrate: (input) => dispatch("webrtc-session", "webrtcSession", "hasAdaptiveBitrate", "query", input),
|
|
5959
5959
|
getSessionState: (input) => dispatch("webrtc-session", "webrtcSession", "getSessionState", "query", input),
|
|
5960
|
+
applyDownlinkProbe: (input) => dispatch("webrtc-session", "webrtcSession", "applyDownlinkProbe", "mutation", input),
|
|
5960
5961
|
getSessionDebug: (input) => dispatch("webrtc-session", "webrtcSession", "getSessionDebug", "query", input)
|
|
5961
5962
|
};
|
|
5962
5963
|
const zoneAnalyticsInterface = {
|
|
@@ -7304,8 +7305,11 @@ function createSystemProxy(api) {
|
|
|
7304
7305
|
setNotificationEndpoint: (input) => dispatch("localNetwork", "setNotificationEndpoint", "mutation", input),
|
|
7305
7306
|
getViewerEndpoints: (input) => dispatch("localNetwork", "getViewerEndpoints", "query", input),
|
|
7306
7307
|
setViewerEndpoints: (input) => dispatch("localNetwork", "setViewerEndpoints", "mutation", input),
|
|
7308
|
+
getAddresses: (input) => dispatch("localNetwork", "getAddresses", "query", input),
|
|
7309
|
+
addCustomAddress: (input) => dispatch("localNetwork", "addCustomAddress", "mutation", input),
|
|
7310
|
+
removeCustomAddress: (input) => dispatch("localNetwork", "removeCustomAddress", "mutation", input),
|
|
7311
|
+
setAddressRole: (input) => dispatch("localNetwork", "setAddressRole", "mutation", input),
|
|
7307
7312
|
getHubAddresses: (input) => dispatch("localNetwork", "getHubAddresses", "query", input),
|
|
7308
|
-
setHubAddress: (input) => dispatch("localNetwork", "setHubAddress", "mutation", input),
|
|
7309
7313
|
getAllowedAddresses: (input) => dispatch("localNetwork", "getAllowedAddresses", "query", input),
|
|
7310
7314
|
setAllowedAddresses: (input) => dispatch("localNetwork", "setAllowedAddresses", "mutation", input),
|
|
7311
7315
|
resetAllowlistToBestMatch: (input) => dispatch("localNetwork", "resetAllowlistToBestMatch", "mutation", input),
|
|
@@ -4077,18 +4077,37 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4077
4077
|
output: z.infer<typeof localNetworkCapability.methods.setViewerEndpoints.output>;
|
|
4078
4078
|
meta: object;
|
|
4079
4079
|
}>;
|
|
4080
|
-
|
|
4080
|
+
getAddresses: TRPCQueryProcedure<{
|
|
4081
|
+
input: z.input<typeof localNetworkCapability.methods.getAddresses.input>;
|
|
4082
|
+
output: z.infer<typeof localNetworkCapability.methods.getAddresses.output>;
|
|
4083
|
+
meta: object;
|
|
4084
|
+
}>;
|
|
4085
|
+
addCustomAddress: TRPCMutationProcedure<{
|
|
4081
4086
|
input: {
|
|
4082
|
-
|
|
4083
|
-
}
|
|
4084
|
-
output: z.infer<typeof localNetworkCapability.methods.
|
|
4087
|
+
[x: string]: unknown;
|
|
4088
|
+
} & z.input<typeof localNetworkCapability.methods.addCustomAddress.input>;
|
|
4089
|
+
output: z.infer<typeof localNetworkCapability.methods.addCustomAddress.output>;
|
|
4090
|
+
meta: object;
|
|
4091
|
+
}>;
|
|
4092
|
+
removeCustomAddress: TRPCMutationProcedure<{
|
|
4093
|
+
input: {
|
|
4094
|
+
[x: string]: unknown;
|
|
4095
|
+
} & z.input<typeof localNetworkCapability.methods.removeCustomAddress.input>;
|
|
4096
|
+
output: z.infer<typeof localNetworkCapability.methods.removeCustomAddress.output>;
|
|
4085
4097
|
meta: object;
|
|
4086
4098
|
}>;
|
|
4087
|
-
|
|
4099
|
+
setAddressRole: TRPCMutationProcedure<{
|
|
4088
4100
|
input: {
|
|
4089
4101
|
[x: string]: unknown;
|
|
4090
|
-
} & z.input<typeof localNetworkCapability.methods.
|
|
4091
|
-
output: z.infer<typeof localNetworkCapability.methods.
|
|
4102
|
+
} & z.input<typeof localNetworkCapability.methods.setAddressRole.input>;
|
|
4103
|
+
output: z.infer<typeof localNetworkCapability.methods.setAddressRole.output>;
|
|
4104
|
+
meta: object;
|
|
4105
|
+
}>;
|
|
4106
|
+
getHubAddresses: TRPCQueryProcedure<{
|
|
4107
|
+
input: {
|
|
4108
|
+
nodeId?: string | undefined;
|
|
4109
|
+
} | undefined;
|
|
4110
|
+
output: z.infer<typeof localNetworkCapability.methods.getHubAddresses.output>;
|
|
4092
4111
|
meta: object;
|
|
4093
4112
|
}>;
|
|
4094
4113
|
getAllowedAddresses: TRPCQueryProcedure<{
|
|
@@ -9697,6 +9716,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9697
9716
|
output: z.infer<typeof webrtcSessionCapability.methods.getSessionState.output>;
|
|
9698
9717
|
meta: object;
|
|
9699
9718
|
}>;
|
|
9719
|
+
applyDownlinkProbe: TRPCMutationProcedure<{
|
|
9720
|
+
input: {
|
|
9721
|
+
[x: string]: unknown;
|
|
9722
|
+
} & z.input<typeof webrtcSessionCapability.methods.applyDownlinkProbe.input>;
|
|
9723
|
+
output: z.infer<typeof webrtcSessionCapability.methods.applyDownlinkProbe.output>;
|
|
9724
|
+
meta: object;
|
|
9725
|
+
}>;
|
|
9700
9726
|
getSessionDebug: TRPCQueryProcedure<{
|
|
9701
9727
|
input: {
|
|
9702
9728
|
[x: string]: unknown;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1227 method paths across 165 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 510 methods carry a device reference, of which
|
|
10
10
|
* 160 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
@@ -77,7 +77,7 @@ export interface SystemProxy {
|
|
|
77
77
|
readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'auditIdentitySamples' | 'removeSample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
|
|
78
78
|
readonly integrations: Pick<InferProvider<typeof integrationsCapability>, 'list' | 'get' | 'getByAddonId' | 'create' | 'update' | 'delete' | 'getSettings' | 'setSettings' | 'getAvailableTypes' | 'testConnection'>;
|
|
79
79
|
readonly llm: Pick<InferProvider<typeof llmCapability>, 'generate' | 'generateVision' | 'cancel' | 'listProfileKinds' | 'listProfiles' | 'upsertProfile' | 'deleteProfile' | 'testProfile' | 'listModels' | 'getDefaults' | 'setDefault' | 'getUsage' | 'listModelCatalog' | 'listRuntimeNodes' | 'listNodeModels' | 'resolveModelRef' | 'installModel' | 'deleteModel' | 'getRuntimeStatus' | 'startRuntime' | 'stopRuntime'>;
|
|
80
|
-
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getViewerEndpoints' | 'setViewerEndpoints' | '
|
|
80
|
+
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getViewerEndpoints' | 'setViewerEndpoints' | 'getAddresses' | 'addCustomAddress' | 'removeCustomAddress' | 'setAddressRole' | 'getHubAddresses' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch' | 'getTlsStatus' | 'regenerateCertificate' | 'uploadCertificate' | 'downloadCa' | 'revertToGeneratedCertificate'>;
|
|
81
81
|
readonly meshNetwork: Pick<InferProvider<typeof meshNetworkCapability>, 'getStatus' | 'join' | 'startLogin' | 'leave' | 'logout' | 'listPeers' | 'testConnection'>;
|
|
82
82
|
readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'getLoadSeries'>;
|
|
83
83
|
readonly mqttBroker: Pick<InferProvider<typeof mqttBrokerCapability>, 'listBrokers' | 'getBrokerConfig' | 'addBroker' | 'removeBroker' | 'testConnection' | 'startEmbeddedBroker' | 'stopEmbeddedBroker' | 'getStatus'>;
|