@camstack/types 0.1.34 → 0.1.36
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/capabilities/addon-widgets-source.cap.d.ts +73 -5
- package/dist/capabilities/addon-widgets-source.cap.d.ts.map +1 -1
- package/dist/capabilities/addon-widgets.cap.d.ts +22 -4
- package/dist/capabilities/addon-widgets.cap.d.ts.map +1 -1
- package/dist/capabilities/addons.cap.d.ts +21 -0
- package/dist/capabilities/addons.cap.d.ts.map +1 -1
- package/dist/capabilities/audio-analysis.cap.d.ts +7 -4
- package/dist/capabilities/audio-analysis.cap.d.ts.map +1 -1
- package/dist/capabilities/camera-streams.cap.d.ts +7 -5
- package/dist/capabilities/camera-streams.cap.d.ts.map +1 -1
- package/dist/capabilities/capability-definition.d.ts +114 -0
- package/dist/capabilities/capability-definition.d.ts.map +1 -1
- package/dist/capabilities/decoder.cap.d.ts +90 -0
- package/dist/capabilities/decoder.cap.d.ts.map +1 -1
- package/dist/capabilities/detection-pipeline.cap.d.ts +6 -4
- package/dist/capabilities/detection-pipeline.cap.d.ts.map +1 -1
- package/dist/capabilities/device-manager.cap.d.ts +3 -3
- package/dist/capabilities/device-ops.cap.d.ts +1 -1
- package/dist/capabilities/index.d.ts +20 -20
- package/dist/capabilities/index.d.ts.map +1 -1
- package/dist/capabilities/local-network.cap.d.ts +5 -5
- package/dist/capabilities/mesh-network.cap.d.ts +4 -2
- package/dist/capabilities/mesh-network.cap.d.ts.map +1 -1
- package/dist/capabilities/motion-detection.cap.d.ts +2 -0
- package/dist/capabilities/motion-detection.cap.d.ts.map +1 -1
- package/dist/capabilities/motion-zones.cap.d.ts +83 -0
- package/dist/capabilities/motion-zones.cap.d.ts.map +1 -0
- package/dist/capabilities/network-access.cap.d.ts +5 -4
- package/dist/capabilities/network-access.cap.d.ts.map +1 -1
- package/dist/capabilities/nodes.cap.d.ts +9 -0
- package/dist/capabilities/nodes.cap.d.ts.map +1 -1
- package/dist/capabilities/oauth-integration.cap.d.ts +103 -0
- package/dist/capabilities/oauth-integration.cap.d.ts.map +1 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts +2 -0
- package/dist/capabilities/pipeline-analytics.cap.d.ts.map +1 -1
- package/dist/capabilities/ptz-autotrack.cap.d.ts +10 -0
- package/dist/capabilities/ptz-autotrack.cap.d.ts.map +1 -1
- package/dist/capabilities/ptz.cap.d.ts +57 -1
- package/dist/capabilities/ptz.cap.d.ts.map +1 -1
- package/dist/capabilities/schemas/streaming-shared.d.ts +110 -3
- package/dist/capabilities/schemas/streaming-shared.d.ts.map +1 -1
- package/dist/capabilities/snapshot.cap.d.ts +2 -0
- package/dist/capabilities/snapshot.cap.d.ts.map +1 -1
- package/dist/capabilities/sso-bridge.cap.d.ts +120 -0
- package/dist/capabilities/sso-bridge.cap.d.ts.map +1 -1
- package/dist/capabilities/stream-broker.cap.d.ts +97 -4
- package/dist/capabilities/stream-broker.cap.d.ts.map +1 -1
- package/dist/capabilities/stream-params-config-schema.d.ts +56 -0
- package/dist/capabilities/stream-params-config-schema.d.ts.map +1 -0
- package/dist/capabilities/stream-params.cap.d.ts +482 -0
- package/dist/capabilities/stream-params.cap.d.ts.map +1 -0
- package/dist/capabilities/user-management.cap.d.ts +198 -1
- package/dist/capabilities/user-management.cap.d.ts.map +1 -1
- package/dist/capabilities/webrtc-session.cap.d.ts +2 -0
- package/dist/capabilities/webrtc-session.cap.d.ts.map +1 -1
- package/dist/generated/addon-api.d.ts +1396 -544
- package/dist/generated/addon-api.d.ts.map +1 -1
- package/dist/generated/cap-status-types.d.ts +7 -3
- package/dist/generated/cap-status-types.d.ts.map +1 -1
- package/dist/generated/capability-router-map.d.ts +13 -16
- package/dist/generated/capability-router-map.d.ts.map +1 -1
- package/dist/generated/device-local-state.d.ts +6 -0
- package/dist/generated/device-local-state.d.ts.map +1 -1
- package/dist/generated/device-proxy.d.ts +6 -0
- package/dist/generated/device-proxy.d.ts.map +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts.map +1 -1
- package/dist/generated/system-proxy.d.ts +7 -13
- package/dist/generated/system-proxy.d.ts.map +1 -1
- package/dist/{index-DS7418lf.js → index-BblD92Si.js} +630 -349
- package/dist/index-BblD92Si.js.map +1 -0
- package/dist/{index-Ce7RZWP4.mjs → index-CgPd35k5.mjs} +957 -676
- package/dist/index-CgPd35k5.mjs.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +325 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +597 -347
- package/dist/index.mjs.map +1 -1
- package/dist/interfaces/addon.d.ts +123 -29
- package/dist/interfaces/addon.d.ts.map +1 -1
- package/dist/interfaces/capability.d.ts +7 -29
- package/dist/interfaces/capability.d.ts.map +1 -1
- package/dist/interfaces/config-ui.d.ts +4 -101
- package/dist/interfaces/config-ui.d.ts.map +1 -1
- package/dist/interfaces/decoder.d.ts +12 -0
- package/dist/interfaces/decoder.d.ts.map +1 -1
- package/dist/interfaces/device-provider.d.ts +0 -4
- package/dist/interfaces/device-provider.d.ts.map +1 -1
- package/dist/interfaces/event-bus.d.ts +15 -0
- package/dist/interfaces/event-bus.d.ts.map +1 -1
- package/dist/interfaces/frame-handle.d.ts +40 -0
- package/dist/interfaces/frame-handle.d.ts.map +1 -0
- package/dist/interfaces/kernel-abstractions.d.ts +6 -0
- package/dist/interfaces/kernel-abstractions.d.ts.map +1 -1
- package/dist/interfaces/server-network.d.ts +8 -33
- package/dist/interfaces/server-network.d.ts.map +1 -1
- package/dist/interfaces/stream-broker.d.ts +40 -21
- package/dist/interfaces/stream-broker.d.ts.map +1 -1
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/package.json +1 -1
- package/dist/capabilities/authentication.cap.d.ts +0 -73
- package/dist/capabilities/authentication.cap.d.ts.map +0 -1
- package/dist/capabilities/mesh-orchestrator.cap.d.ts +0 -151
- package/dist/capabilities/mesh-orchestrator.cap.d.ts.map +0 -1
- package/dist/capabilities/remote-access.cap.d.ts +0 -91
- package/dist/capabilities/remote-access.cap.d.ts.map +0 -1
- package/dist/capabilities/turn-orchestrator.cap.d.ts +0 -64
- package/dist/capabilities/turn-orchestrator.cap.d.ts.map +0 -1
- package/dist/index-Ce7RZWP4.mjs.map +0 -1
- package/dist/index-DS7418lf.js.map +0 -1
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* mesh-orchestrator — singleton facade over the `mesh-network`
|
|
3
|
-
* collection. Mirrors the `remote-access` / `turn-orchestrator`
|
|
4
|
-
* pattern: the admin UI talks to ONE cap, the cap walks the
|
|
5
|
-
* collection and aggregates per-provider status.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from 'zod';
|
|
8
|
-
import { type InferProvider } from './capability-definition.js';
|
|
9
|
-
declare const MeshProviderInfoSchema: z.ZodObject<{
|
|
10
|
-
addonId: z.ZodString;
|
|
11
|
-
displayName: z.ZodString;
|
|
12
|
-
joined: z.ZodBoolean;
|
|
13
|
-
meshIp: z.ZodString;
|
|
14
|
-
magicDnsHostname: z.ZodString;
|
|
15
|
-
peerCount: z.ZodNumber;
|
|
16
|
-
endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
label: z.ZodString;
|
|
19
|
-
scope: z.ZodEnum<{
|
|
20
|
-
public: "public";
|
|
21
|
-
mesh: "mesh";
|
|
22
|
-
}>;
|
|
23
|
-
url: z.ZodString;
|
|
24
|
-
hostname: z.ZodString;
|
|
25
|
-
port: z.ZodNumber;
|
|
26
|
-
protocol: z.ZodEnum<{
|
|
27
|
-
http: "http";
|
|
28
|
-
https: "https";
|
|
29
|
-
}>;
|
|
30
|
-
}, z.core.$strip>>>;
|
|
31
|
-
error: z.ZodOptional<z.ZodString>;
|
|
32
|
-
tenantName: z.ZodString;
|
|
33
|
-
magicDnsSuffix: z.ZodString;
|
|
34
|
-
userLogin: z.ZodNullable<z.ZodString>;
|
|
35
|
-
controlPlaneUrl: z.ZodString;
|
|
36
|
-
keyExpiry: z.ZodNullable<z.ZodNumber>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export type MeshProviderInfo = z.infer<typeof MeshProviderInfoSchema>;
|
|
39
|
-
export declare const meshOrchestratorCapability: {
|
|
40
|
-
readonly name: "mesh-orchestrator";
|
|
41
|
-
readonly scope: "system";
|
|
42
|
-
readonly mode: "singleton";
|
|
43
|
-
readonly methods: {
|
|
44
|
-
/** All registered mesh-network providers + live status. */
|
|
45
|
-
readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
46
|
-
addonId: z.ZodString;
|
|
47
|
-
displayName: z.ZodString;
|
|
48
|
-
joined: z.ZodBoolean;
|
|
49
|
-
meshIp: z.ZodString;
|
|
50
|
-
magicDnsHostname: z.ZodString;
|
|
51
|
-
peerCount: z.ZodNumber;
|
|
52
|
-
endpoints: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
53
|
-
id: z.ZodString;
|
|
54
|
-
label: z.ZodString;
|
|
55
|
-
scope: z.ZodEnum<{
|
|
56
|
-
public: "public";
|
|
57
|
-
mesh: "mesh";
|
|
58
|
-
}>;
|
|
59
|
-
url: z.ZodString;
|
|
60
|
-
hostname: z.ZodString;
|
|
61
|
-
port: z.ZodNumber;
|
|
62
|
-
protocol: z.ZodEnum<{
|
|
63
|
-
http: "http";
|
|
64
|
-
https: "https";
|
|
65
|
-
}>;
|
|
66
|
-
}, z.core.$strip>>>;
|
|
67
|
-
error: z.ZodOptional<z.ZodString>;
|
|
68
|
-
tenantName: z.ZodString;
|
|
69
|
-
magicDnsSuffix: z.ZodString;
|
|
70
|
-
userLogin: z.ZodNullable<z.ZodString>;
|
|
71
|
-
controlPlaneUrl: z.ZodString;
|
|
72
|
-
keyExpiry: z.ZodNullable<z.ZodNumber>;
|
|
73
|
-
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
74
|
-
/**
|
|
75
|
-
* Join the mesh of a specific provider. Per-provider config still
|
|
76
|
-
* lives on its settings panel; the orchestrator forwards.
|
|
77
|
-
*/
|
|
78
|
-
readonly joinProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
79
|
-
addonId: z.ZodString;
|
|
80
|
-
authKey: z.ZodString;
|
|
81
|
-
hostname: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
joined: z.ZodLiteral<true>;
|
|
84
|
-
}, z.core.$strip>, "mutation">;
|
|
85
|
-
readonly leaveProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
86
|
-
addonId: z.ZodString;
|
|
87
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
-
success: z.ZodLiteral<true>;
|
|
89
|
-
}, z.core.$strip>, "mutation">;
|
|
90
|
-
/**
|
|
91
|
-
* Browser-redirect login flow. Forwards to the named provider's
|
|
92
|
-
* `mesh-network.startLogin` and returns the URL the daemon
|
|
93
|
-
* prints. UI opens it in a new tab, then polls `listProviders`
|
|
94
|
-
* for `joined: true`.
|
|
95
|
-
*/
|
|
96
|
-
readonly startLoginProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
97
|
-
addonId: z.ZodString;
|
|
98
|
-
hostname: z.ZodOptional<z.ZodString>;
|
|
99
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
-
loginUrl: z.ZodString;
|
|
101
|
-
}, z.core.$strip>, "mutation">;
|
|
102
|
-
/**
|
|
103
|
-
* Sign out of the provider's account entirely (`mesh-network.logout`).
|
|
104
|
-
* Distinct from `leaveProvider` which only takes the host off-mesh;
|
|
105
|
-
* `logoutProvider` wipes credentials so the next start requires a
|
|
106
|
-
* fresh login.
|
|
107
|
-
*/
|
|
108
|
-
readonly logoutProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
109
|
-
addonId: z.ZodString;
|
|
110
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
111
|
-
loggedOut: z.ZodLiteral<true>;
|
|
112
|
-
}, z.core.$strip>, "mutation">;
|
|
113
|
-
/**
|
|
114
|
-
* Per-provider peer list. Forwards to `mesh-network.listPeers` on
|
|
115
|
-
* the addressed provider. Separate from `listProviders` because
|
|
116
|
-
* peer payloads can be large on a heavily-populated tailnet —
|
|
117
|
-
* fetch only when the operator opens the Peers tab.
|
|
118
|
-
*/
|
|
119
|
-
readonly listProviderPeers: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
120
|
-
addonId: z.ZodString;
|
|
121
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
122
|
-
peers: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
123
|
-
id: z.ZodString;
|
|
124
|
-
hostname: z.ZodString;
|
|
125
|
-
magicDns: z.ZodString;
|
|
126
|
-
addresses: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
127
|
-
os: z.ZodOptional<z.ZodString>;
|
|
128
|
-
online: z.ZodBoolean;
|
|
129
|
-
lastSeenMs: z.ZodNumber;
|
|
130
|
-
isSelf: z.ZodBoolean;
|
|
131
|
-
connection: z.ZodEnum<{
|
|
132
|
-
idle: "idle";
|
|
133
|
-
direct: "direct";
|
|
134
|
-
relay: "relay";
|
|
135
|
-
}>;
|
|
136
|
-
relay: z.ZodNullable<z.ZodString>;
|
|
137
|
-
lastHandshakeMs: z.ZodNumber;
|
|
138
|
-
rxBytes: z.ZodNumber;
|
|
139
|
-
txBytes: z.ZodNumber;
|
|
140
|
-
tags: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
141
|
-
exitNodeOption: z.ZodBoolean;
|
|
142
|
-
advertisedRoutes: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
143
|
-
userLogin: z.ZodNullable<z.ZodString>;
|
|
144
|
-
keyExpiry: z.ZodNullable<z.ZodNumber>;
|
|
145
|
-
}, z.core.$strip>>>;
|
|
146
|
-
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
export type IMeshOrchestrator = InferProvider<typeof meshOrchestratorCapability>;
|
|
150
|
-
export {};
|
|
151
|
-
//# sourceMappingURL=mesh-orchestrator.cap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mesh-orchestrator.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/mesh-orchestrator.cap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAalG,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6B1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE,eAAO,MAAM,0BAA0B;;;;;QAKnC,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAE3D;;;WAGG;;;;;;;;;;;;;QAgBH;;;;;WAKG;;;;;;;QAUH;;;;;WAKG;;;;;;QAOH;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQkC,CAAA;AAEzC,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type InferProvider } from './capability-definition.js';
|
|
3
|
-
declare const RemoteAccessEndpointSchema: z.ZodObject<{
|
|
4
|
-
url: z.ZodString;
|
|
5
|
-
hostname: z.ZodString;
|
|
6
|
-
port: z.ZodNumber;
|
|
7
|
-
protocol: z.ZodEnum<{
|
|
8
|
-
http: "http";
|
|
9
|
-
https: "https";
|
|
10
|
-
}>;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
/**
|
|
13
|
-
* Remote-access provider summary, surfaced to the admin UI's
|
|
14
|
-
* "Remote Access" page. One row per registered `network-access`
|
|
15
|
-
* provider (Cloudflare Tunnel, ngrok, Tailscale, etc.).
|
|
16
|
-
*/
|
|
17
|
-
declare const RemoteAccessProviderInfoSchema: z.ZodObject<{
|
|
18
|
-
addonId: z.ZodString;
|
|
19
|
-
displayName: z.ZodString;
|
|
20
|
-
enabled: z.ZodBoolean;
|
|
21
|
-
connected: z.ZodBoolean;
|
|
22
|
-
endpoint: z.ZodNullable<z.ZodObject<{
|
|
23
|
-
url: z.ZodString;
|
|
24
|
-
hostname: z.ZodString;
|
|
25
|
-
port: z.ZodNumber;
|
|
26
|
-
protocol: z.ZodEnum<{
|
|
27
|
-
http: "http";
|
|
28
|
-
https: "https";
|
|
29
|
-
}>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
error: z.ZodOptional<z.ZodString>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type RemoteAccessProviderInfo = z.infer<typeof RemoteAccessProviderInfoSchema>;
|
|
34
|
-
/**
|
|
35
|
-
* `remote-access` — singleton facade over the `network-access`
|
|
36
|
-
* collection. Consumed by the admin UI's Remote Access page so an
|
|
37
|
-
* operator can see at a glance which providers are configured, which
|
|
38
|
-
* are connected, and which public endpoint each exposes.
|
|
39
|
-
*
|
|
40
|
-
* Mirrors the `authentication` / `turn-orchestrator` patterns: the
|
|
41
|
-
* UI talks to the singleton, the singleton walks the collection.
|
|
42
|
-
*/
|
|
43
|
-
export declare const remoteAccessCapability: {
|
|
44
|
-
readonly name: "remote-access";
|
|
45
|
-
readonly scope: "system";
|
|
46
|
-
readonly mode: "singleton";
|
|
47
|
-
readonly methods: {
|
|
48
|
-
/** All registered remote-access providers + their live status. */
|
|
49
|
-
readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
50
|
-
addonId: z.ZodString;
|
|
51
|
-
displayName: z.ZodString;
|
|
52
|
-
enabled: z.ZodBoolean;
|
|
53
|
-
connected: z.ZodBoolean;
|
|
54
|
-
endpoint: z.ZodNullable<z.ZodObject<{
|
|
55
|
-
url: z.ZodString;
|
|
56
|
-
hostname: z.ZodString;
|
|
57
|
-
port: z.ZodNumber;
|
|
58
|
-
protocol: z.ZodEnum<{
|
|
59
|
-
http: "http";
|
|
60
|
-
https: "https";
|
|
61
|
-
}>;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
|
-
error: z.ZodOptional<z.ZodString>;
|
|
64
|
-
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
65
|
-
/**
|
|
66
|
-
* Start a specific provider's tunnel. Per-provider config still
|
|
67
|
-
* lives on the addon's settings panel; this is just the on/off
|
|
68
|
-
* trigger so the admin UI can manage the lifecycle from one place.
|
|
69
|
-
*/
|
|
70
|
-
readonly startProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
71
|
-
addonId: z.ZodString;
|
|
72
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
73
|
-
url: z.ZodString;
|
|
74
|
-
hostname: z.ZodString;
|
|
75
|
-
port: z.ZodNumber;
|
|
76
|
-
protocol: z.ZodEnum<{
|
|
77
|
-
http: "http";
|
|
78
|
-
https: "https";
|
|
79
|
-
}>;
|
|
80
|
-
}, z.core.$strip>, "mutation">;
|
|
81
|
-
/** Stop a specific provider's tunnel (idempotent on already-stopped). */
|
|
82
|
-
readonly stopProvider: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
83
|
-
addonId: z.ZodString;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
success: z.ZodLiteral<true>;
|
|
86
|
-
}, z.core.$strip>, "mutation">;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
export type IRemoteAccessOrchestrator = InferProvider<typeof remoteAccessCapability>;
|
|
90
|
-
export { RemoteAccessEndpointSchema, RemoteAccessProviderInfoSchema };
|
|
91
|
-
//# sourceMappingURL=remote-access.cap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-access.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/remote-access.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAElG,QAAA,MAAM,0BAA0B;;;;;;;;iBAK9B,CAAA;AAEF;;;;GAIG;AACH,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;iBAalC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;;;;QAK/B,kEAAkE;;;;;;;;;;;;;;;;;QAElE;;;;WAIG;;;;;;;;;;;;QAMH,yEAAyE;;;;;;;CAOpC,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpF,OAAO,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,CAAA"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type InferProvider } from './capability-definition.js';
|
|
3
|
-
declare const TurnProviderInfoSchema: z.ZodObject<{
|
|
4
|
-
addonId: z.ZodString;
|
|
5
|
-
displayName: z.ZodString;
|
|
6
|
-
enabled: z.ZodBoolean;
|
|
7
|
-
serverCount: z.ZodNumber;
|
|
8
|
-
urls: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
9
|
-
error: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export type TurnProviderInfo = z.infer<typeof TurnProviderInfoSchema>;
|
|
12
|
-
/**
|
|
13
|
-
* `turn-orchestrator` — singleton facade over the `turn-provider`
|
|
14
|
-
* collection. Provides:
|
|
15
|
-
* - listProviders() — admin UI inventory
|
|
16
|
-
* - getAllServers() — combined list of TURN/STUN URLs across all
|
|
17
|
-
* enabled providers (what the WebRTC layer actually consumes)
|
|
18
|
-
*
|
|
19
|
-
* Mirrors `authentication` / `remote-access` — UI consumers go
|
|
20
|
-
* through the singleton, the singleton walks the collection.
|
|
21
|
-
*
|
|
22
|
-
* The WebRTC layer (broker / addon-go2rtc) historically called
|
|
23
|
-
* `turn-provider` collection methods directly to build the ICE
|
|
24
|
-
* server list per session. Going through this orchestrator instead
|
|
25
|
-
* gives a single throughput point + lets the admin disable a
|
|
26
|
-
* provider without uninstalling it.
|
|
27
|
-
*/
|
|
28
|
-
export declare const turnOrchestratorCapability: {
|
|
29
|
-
readonly name: "turn-orchestrator";
|
|
30
|
-
readonly scope: "system";
|
|
31
|
-
readonly mode: "singleton";
|
|
32
|
-
readonly methods: {
|
|
33
|
-
/** All registered TURN providers + per-provider stats. */
|
|
34
|
-
readonly listProviders: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
35
|
-
addonId: z.ZodString;
|
|
36
|
-
displayName: z.ZodString;
|
|
37
|
-
enabled: z.ZodBoolean;
|
|
38
|
-
serverCount: z.ZodNumber;
|
|
39
|
-
urls: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
40
|
-
error: z.ZodOptional<z.ZodString>;
|
|
41
|
-
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
42
|
-
/**
|
|
43
|
-
* Combined list of TURN/STUN servers from all ENABLED providers.
|
|
44
|
-
* Consumed by the WebRTC layer at session-creation time —
|
|
45
|
-
* implementations may fetch fresh short-lived credentials each
|
|
46
|
-
* call (e.g. Cloudflare API), so consumers SHOULD call per-session.
|
|
47
|
-
*/
|
|
48
|
-
readonly getAllServers: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
49
|
-
urls: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
50
|
-
username: z.ZodOptional<z.ZodString>;
|
|
51
|
-
credential: z.ZodOptional<z.ZodString>;
|
|
52
|
-
}, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
53
|
-
/** Toggle a provider's enabled flag. */
|
|
54
|
-
readonly setProviderEnabled: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
55
|
-
addonId: z.ZodString;
|
|
56
|
-
enabled: z.ZodBoolean;
|
|
57
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
-
success: z.ZodLiteral<true>;
|
|
59
|
-
}, z.core.$strip>, "mutation">;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export type ITurnOrchestratorProvider = InferProvider<typeof turnOrchestratorCapability>;
|
|
63
|
-
export { TurnProviderInfoSchema };
|
|
64
|
-
//# sourceMappingURL=turn-orchestrator.cap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"turn-orchestrator.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/turn-orchestrator.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAGlG,QAAA,MAAM,sBAAsB;;;;;;;iBAmB1B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B;;;;;QAKnC,0DAA0D;;;;;;;;;QAE1D;;;;;WAKG;;;;;;QAEH,wCAAwC;;;;;;;;CAOH,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAExF,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
|