@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
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* `oauth-integration` — a collection cap by which an addon declares
|
|
5
|
+
* itself a linkable OAuth client of the hub's core `/oauth2/*` server.
|
|
6
|
+
* Each provider returns a static descriptor; the core enumerates them
|
|
7
|
+
* to validate the `integration=` query param and resolve the consent
|
|
8
|
+
* label + the scopes baked into the issued token.
|
|
9
|
+
*/
|
|
10
|
+
declare const OauthIntegrationDescriptorSchema: z.ZodObject<{
|
|
11
|
+
integrationId: z.ZodString;
|
|
12
|
+
displayName: z.ZodString;
|
|
13
|
+
requestedScopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"category">;
|
|
15
|
+
target: z.ZodEnum<{
|
|
16
|
+
system: "system";
|
|
17
|
+
device: "device";
|
|
18
|
+
}>;
|
|
19
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
20
|
+
view: "view";
|
|
21
|
+
create: "create";
|
|
22
|
+
delete: "delete";
|
|
23
|
+
}>>;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
type: z.ZodLiteral<"capability">;
|
|
26
|
+
target: z.ZodString;
|
|
27
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
28
|
+
view: "view";
|
|
29
|
+
create: "create";
|
|
30
|
+
delete: "delete";
|
|
31
|
+
}>>;
|
|
32
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
+
type: z.ZodLiteral<"addon">;
|
|
34
|
+
target: z.ZodString;
|
|
35
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
36
|
+
view: "view";
|
|
37
|
+
create: "create";
|
|
38
|
+
delete: "delete";
|
|
39
|
+
}>>;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"device">;
|
|
42
|
+
targets: z.ZodArray<z.ZodString>;
|
|
43
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
44
|
+
view: "view";
|
|
45
|
+
create: "create";
|
|
46
|
+
delete: "delete";
|
|
47
|
+
}>>;
|
|
48
|
+
}, z.core.$strip>], "type">>;
|
|
49
|
+
allowedRedirectPrefixes: z.ZodArray<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export declare const oauthIntegrationCapability: {
|
|
52
|
+
readonly name: "oauth-integration";
|
|
53
|
+
readonly scope: "system";
|
|
54
|
+
readonly mode: "collection";
|
|
55
|
+
readonly internal: true;
|
|
56
|
+
readonly methods: {
|
|
57
|
+
readonly getDescriptor: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
58
|
+
integrationId: z.ZodString;
|
|
59
|
+
displayName: z.ZodString;
|
|
60
|
+
requestedScopes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
type: z.ZodLiteral<"category">;
|
|
62
|
+
target: z.ZodEnum<{
|
|
63
|
+
system: "system";
|
|
64
|
+
device: "device";
|
|
65
|
+
}>;
|
|
66
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
67
|
+
view: "view";
|
|
68
|
+
create: "create";
|
|
69
|
+
delete: "delete";
|
|
70
|
+
}>>;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"capability">;
|
|
73
|
+
target: z.ZodString;
|
|
74
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
75
|
+
view: "view";
|
|
76
|
+
create: "create";
|
|
77
|
+
delete: "delete";
|
|
78
|
+
}>>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
type: z.ZodLiteral<"addon">;
|
|
81
|
+
target: z.ZodString;
|
|
82
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
83
|
+
view: "view";
|
|
84
|
+
create: "create";
|
|
85
|
+
delete: "delete";
|
|
86
|
+
}>>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<"device">;
|
|
89
|
+
targets: z.ZodArray<z.ZodString>;
|
|
90
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
91
|
+
view: "view";
|
|
92
|
+
create: "create";
|
|
93
|
+
delete: "delete";
|
|
94
|
+
}>>;
|
|
95
|
+
}, z.core.$strip>], "type">>;
|
|
96
|
+
allowedRedirectPrefixes: z.ZodArray<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export type IOauthIntegrationProvider = InferProvider<typeof oauthIntegrationCapability>;
|
|
101
|
+
export type OauthIntegrationDescriptor = z.infer<typeof OauthIntegrationDescriptorSchema>;
|
|
102
|
+
export { OauthIntegrationDescriptorSchema };
|
|
103
|
+
//# sourceMappingURL=oauth-integration.cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-integration.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/oauth-integration.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAGlG;;;;;;GAMG;AACH,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQE,CAAA;AAEzC,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,OAAO,0BAA0B,CAAC,CAAA;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,OAAO,EAAE,gCAAgC,EAAE,CAAA"}
|
|
@@ -179,6 +179,8 @@ export declare const pipelineAnalyticsCapability: {
|
|
|
179
179
|
readonly name: "pipeline-analytics";
|
|
180
180
|
readonly scope: "device";
|
|
181
181
|
readonly mode: "singleton";
|
|
182
|
+
readonly kind: "wrapper";
|
|
183
|
+
readonly defaultActive: true;
|
|
182
184
|
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
183
185
|
readonly exposesDeviceSettings: true;
|
|
184
186
|
readonly methods: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-analytics.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/pipeline-analytics.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAGrD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,QAAA,MAAM,gBAAgB;;;;;;EAAuD,CAAA;AAC7E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,QAAA,MAAM,eAAe;;;;EAAwC,CAAA;AAC7D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AAkBvD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBf,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CA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CAU7B,CAAA;AAEzC,MAAM,MAAM,0BAA0B,GAAG,aAAa,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE1F,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,GACvB,CAAA"}
|
|
@@ -66,6 +66,16 @@ export declare const ptzAutotrackCapability: {
|
|
|
66
66
|
readonly scope: "device";
|
|
67
67
|
readonly mode: "singleton";
|
|
68
68
|
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
69
|
+
readonly deviceConfig: {
|
|
70
|
+
readonly ui: {
|
|
71
|
+
readonly kind: "widget";
|
|
72
|
+
readonly widgetId: "host/ptz-autotrack";
|
|
73
|
+
readonly tab: "ptz";
|
|
74
|
+
readonly topTab: true;
|
|
75
|
+
readonly label: "Auto-Tracking";
|
|
76
|
+
readonly order: 5;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
69
79
|
readonly methods: {
|
|
70
80
|
/**
|
|
71
81
|
* Read the current on/off state + last-applied settings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ptz-autotrack.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/ptz-autotrack.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAwCrD,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAA;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAE7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAA;AAEF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA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;;;;;;;QAKH;;;;WAIG;;;;;QAMH;;;;;;WAMG;;;;;;;;QAKH;;;;;WAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoBL;;;;;;;OAOG;;;;;;;;;;;;;;;CAEoC,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
|
|
@@ -16,11 +16,39 @@ declare const PtzMoveCommandSchema: z.ZodObject<{
|
|
|
16
16
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
17
17
|
speed: z.ZodOptional<z.ZodNumber>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
+
/** PTZ status — current position plus the camera's autofocus state.
|
|
20
|
+
* `getPosition` / `move` still operate on the bare position; the
|
|
21
|
+
* auto-injected `getStatus` returns this richer block. */
|
|
22
|
+
declare const PtzStatusSchema: z.ZodObject<{
|
|
23
|
+
pan: z.ZodNumber;
|
|
24
|
+
tilt: z.ZodNumber;
|
|
25
|
+
zoom: z.ZodNumber;
|
|
26
|
+
autofocus: z.ZodBoolean;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
/** Per-camera PTZ availability descriptor — drives the UI. */
|
|
29
|
+
declare const PtzOptionsSchema: z.ZodObject<{
|
|
30
|
+
hasPan: z.ZodBoolean;
|
|
31
|
+
hasTilt: z.ZodBoolean;
|
|
32
|
+
hasZoom: z.ZodBoolean;
|
|
33
|
+
supportsPresets: z.ZodBoolean;
|
|
34
|
+
maxPresets: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
hasAutofocus: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>;
|
|
19
37
|
export declare const ptzCapability: {
|
|
20
38
|
readonly name: "ptz";
|
|
21
39
|
readonly scope: "device";
|
|
22
40
|
readonly mode: "singleton";
|
|
23
41
|
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
42
|
+
readonly deviceConfig: {
|
|
43
|
+
readonly ui: {
|
|
44
|
+
readonly kind: "widget";
|
|
45
|
+
readonly widgetId: "host/ptz-panel";
|
|
46
|
+
readonly tab: "ptz";
|
|
47
|
+
readonly topTab: true;
|
|
48
|
+
readonly label: "PTZ";
|
|
49
|
+
readonly order: 0;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
24
52
|
readonly methods: {
|
|
25
53
|
readonly move: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
26
54
|
pan: z.ZodOptional<z.ZodNumber>;
|
|
@@ -49,6 +77,25 @@ export declare const ptzCapability: {
|
|
|
49
77
|
deviceId: z.ZodNumber;
|
|
50
78
|
presetId: z.ZodString;
|
|
51
79
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
80
|
+
readonly savePreset: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
81
|
+
deviceId: z.ZodNumber;
|
|
82
|
+
presetId: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
85
|
+
readonly deletePreset: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
86
|
+
deviceId: z.ZodNumber;
|
|
87
|
+
presetId: z.ZodString;
|
|
88
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
89
|
+
readonly getOptions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
90
|
+
deviceId: z.ZodNumber;
|
|
91
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
+
hasPan: z.ZodBoolean;
|
|
93
|
+
hasTilt: z.ZodBoolean;
|
|
94
|
+
hasZoom: z.ZodBoolean;
|
|
95
|
+
supportsPresets: z.ZodBoolean;
|
|
96
|
+
maxPresets: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
hasAutofocus: z.ZodBoolean;
|
|
98
|
+
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
52
99
|
readonly goHome: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
53
100
|
deviceId: z.ZodNumber;
|
|
54
101
|
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
@@ -65,16 +112,25 @@ export declare const ptzCapability: {
|
|
|
65
112
|
tilt: z.ZodNumber;
|
|
66
113
|
zoom: z.ZodNumber;
|
|
67
114
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
115
|
+
/** Toggle the camera's autofocus. Only meaningful when
|
|
116
|
+
* `getOptions().hasAutofocus` is true. */
|
|
117
|
+
readonly setAutofocus: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
118
|
+
deviceId: z.ZodNumber;
|
|
119
|
+
enabled: z.ZodBoolean;
|
|
120
|
+
}, z.core.$strip>, z.ZodVoid, "mutation">;
|
|
68
121
|
};
|
|
69
122
|
readonly status: {
|
|
70
123
|
readonly schema: z.ZodObject<{
|
|
71
124
|
pan: z.ZodNumber;
|
|
72
125
|
tilt: z.ZodNumber;
|
|
73
126
|
zoom: z.ZodNumber;
|
|
127
|
+
autofocus: z.ZodBoolean;
|
|
74
128
|
}, z.core.$strip>;
|
|
75
129
|
readonly kind: "command-driven";
|
|
76
130
|
};
|
|
77
131
|
};
|
|
78
132
|
export type IPtzProvider = InferProvider<typeof ptzCapability>;
|
|
79
|
-
export
|
|
133
|
+
export type PtzOptions = z.infer<typeof PtzOptionsSchema>;
|
|
134
|
+
export type PtzStatus = z.infer<typeof PtzStatusSchema>;
|
|
135
|
+
export { PtzPresetSchema, PtzPositionSchema, PtzStatusSchema, PtzMoveCommandSchema, PtzOptionsSchema };
|
|
80
136
|
//# sourceMappingURL=ptz.cap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ptz.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/ptz.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,M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 -46,9 +46,9 @@ export type CameraStream = z.infer<typeof CameraStreamSchema>;
|
|
|
46
46
|
export declare const ProfileSlotStatusSchema: z.ZodEnum<{
|
|
47
47
|
error: "error";
|
|
48
48
|
streaming: "streaming";
|
|
49
|
+
unassigned: "unassigned";
|
|
49
50
|
idle: "idle";
|
|
50
51
|
connecting: "connecting";
|
|
51
|
-
unassigned: "unassigned";
|
|
52
52
|
}>;
|
|
53
53
|
export type ProfileSlotStatus = z.infer<typeof ProfileSlotStatusSchema>;
|
|
54
54
|
export declare const ProfileSlotSchema: z.ZodObject<{
|
|
@@ -63,9 +63,9 @@ export declare const ProfileSlotSchema: z.ZodObject<{
|
|
|
63
63
|
status: z.ZodEnum<{
|
|
64
64
|
error: "error";
|
|
65
65
|
streaming: "streaming";
|
|
66
|
+
unassigned: "unassigned";
|
|
66
67
|
idle: "idle";
|
|
67
68
|
connecting: "connecting";
|
|
68
|
-
unassigned: "unassigned";
|
|
69
69
|
}>;
|
|
70
70
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
71
71
|
width: z.ZodNumber;
|
|
@@ -87,9 +87,9 @@ export declare const StreamSourceEntrySchema: z.ZodObject<{
|
|
|
87
87
|
custom: "custom";
|
|
88
88
|
rtsp: "rtsp";
|
|
89
89
|
rtmp: "rtmp";
|
|
90
|
-
webrtc: "webrtc";
|
|
91
90
|
annexb: "annexb";
|
|
92
91
|
"http-mjpeg": "http-mjpeg";
|
|
92
|
+
webrtc: "webrtc";
|
|
93
93
|
}>;
|
|
94
94
|
url: z.ZodOptional<z.ZodString>;
|
|
95
95
|
resolution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
@@ -136,6 +136,113 @@ export declare const DecodedFrameSchema: z.ZodObject<{
|
|
|
136
136
|
}>;
|
|
137
137
|
timestamp: z.ZodNumber;
|
|
138
138
|
}, z.core.$strip>;
|
|
139
|
+
/**
|
|
140
|
+
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
141
|
+
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
142
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
|
|
143
|
+
* method (`pullHandles`) can carry handles over tRPC / Moleculer.
|
|
144
|
+
*
|
|
145
|
+
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
146
|
+
* field is added to / removed from `FrameHandle` without a matching schema
|
|
147
|
+
* edit, `z.infer<typeof FrameHandleSchema>` stops being assignable to
|
|
148
|
+
* `FrameHandle` and the build fails — no silent drift.
|
|
149
|
+
*/
|
|
150
|
+
export declare const FrameHandleSchema: z.ZodObject<{
|
|
151
|
+
shmId: z.ZodString;
|
|
152
|
+
slot: z.ZodNumber;
|
|
153
|
+
seq: z.ZodNumber;
|
|
154
|
+
width: z.ZodNumber;
|
|
155
|
+
height: z.ZodNumber;
|
|
156
|
+
format: z.ZodEnum<{
|
|
157
|
+
jpeg: "jpeg";
|
|
158
|
+
rgb: "rgb";
|
|
159
|
+
bgr: "bgr";
|
|
160
|
+
yuv420: "yuv420";
|
|
161
|
+
gray: "gray";
|
|
162
|
+
}>;
|
|
163
|
+
pts: z.ZodNumber;
|
|
164
|
+
byteLength: z.ZodNumber;
|
|
165
|
+
nodeId: z.ZodString;
|
|
166
|
+
slotCount: z.ZodNumber;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
/**
|
|
169
|
+
* Pixel format a frame-handle subscriber can request from the broker
|
|
170
|
+
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
171
|
+
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
172
|
+
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
173
|
+
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
174
|
+
*/
|
|
175
|
+
export declare const FrameHandleFormatSchema: z.ZodEnum<{
|
|
176
|
+
rgb: "rgb";
|
|
177
|
+
bgr: "bgr";
|
|
178
|
+
yuv420: "yuv420";
|
|
179
|
+
gray: "gray";
|
|
180
|
+
}>;
|
|
181
|
+
export type FrameHandleFormat = z.infer<typeof FrameHandleFormatSchema>;
|
|
182
|
+
/**
|
|
183
|
+
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
184
|
+
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
185
|
+
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
186
|
+
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
187
|
+
* they asked for with no broker-side conversion.
|
|
188
|
+
*/
|
|
189
|
+
export declare const SubscribeFramesInputSchema: z.ZodObject<{
|
|
190
|
+
brokerId: z.ZodString;
|
|
191
|
+
format: z.ZodEnum<{
|
|
192
|
+
rgb: "rgb";
|
|
193
|
+
bgr: "bgr";
|
|
194
|
+
yuv420: "yuv420";
|
|
195
|
+
gray: "gray";
|
|
196
|
+
}>;
|
|
197
|
+
maxFps: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
export type SubscribeFramesInput = z.infer<typeof SubscribeFramesInputSchema>;
|
|
201
|
+
/**
|
|
202
|
+
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
203
|
+
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
204
|
+
* `FrameHandle` to a `FrameRingReader`.
|
|
205
|
+
*/
|
|
206
|
+
export declare const SubscribeFramesResultSchema: z.ZodObject<{
|
|
207
|
+
subscriptionId: z.ZodString;
|
|
208
|
+
maxFps: z.ZodNumber;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type SubscribeFramesResult = z.infer<typeof SubscribeFramesResultSchema>;
|
|
211
|
+
/**
|
|
212
|
+
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
213
|
+
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
214
|
+
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
215
|
+
*
|
|
216
|
+
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
217
|
+
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
218
|
+
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
219
|
+
* (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
|
|
220
|
+
* / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
|
|
221
|
+
*/
|
|
222
|
+
export declare const DecodedAudioChunkSchema: z.ZodObject<{
|
|
223
|
+
data: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
|
|
224
|
+
sampleRate: z.ZodNumber;
|
|
225
|
+
channels: z.ZodNumber;
|
|
226
|
+
timestamp: z.ZodNumber;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
export type DecodedAudioChunkWire = z.infer<typeof DecodedAudioChunkSchema>;
|
|
229
|
+
/**
|
|
230
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
|
|
231
|
+
* handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
|
|
232
|
+
* asks the broker for the decoded audio-chunk stream of one broker; the
|
|
233
|
+
* broker keeps a per-subscription bounded FIFO queue the consumer drains via
|
|
234
|
+
* `pullAudioChunks`.
|
|
235
|
+
*/
|
|
236
|
+
export declare const SubscribeAudioChunksInputSchema: z.ZodObject<{
|
|
237
|
+
brokerId: z.ZodString;
|
|
238
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
239
|
+
}, z.core.$strip>;
|
|
240
|
+
export type SubscribeAudioChunksInput = z.infer<typeof SubscribeAudioChunksInputSchema>;
|
|
241
|
+
/** Result of `stream-broker.subscribeAudioChunks`. */
|
|
242
|
+
export declare const SubscribeAudioChunksResultSchema: z.ZodObject<{
|
|
243
|
+
subscriptionId: z.ZodString;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
export type SubscribeAudioChunksResult = z.infer<typeof SubscribeAudioChunksResultSchema>;
|
|
139
246
|
export declare const BrokerStatusSchema: z.ZodEnum<{
|
|
140
247
|
error: "error";
|
|
141
248
|
streaming: "streaming";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming-shared.d.ts","sourceRoot":"","sources":["../../../src/capabilities/schemas/streaming-shared.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"streaming-shared.d.ts","sourceRoot":"","sources":["../../../src/capabilities/schemas/streaming-shared.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAWvB,eAAO,MAAM,gBAAgB;;;;EAAiC,CAAA;AAC9D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,oDAAoD;AACpD,eAAO,MAAM,iBAAiB,iCAAkC,CAAA;AAiBhE,eAAO,MAAM,mBAAmB;;;;;;EAM9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;iBA2C7B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAS7D,eAAO,MAAM,uBAAuB;;;;;;EAMlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;iBAY5B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,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;;EAAkE,CAAA;AAEjG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuC5B,CAAA"}
|
|
@@ -48,6 +48,8 @@ export declare const snapshotCapability: {
|
|
|
48
48
|
readonly name: "snapshot";
|
|
49
49
|
readonly scope: "device";
|
|
50
50
|
readonly mode: "singleton";
|
|
51
|
+
readonly kind: "wrapper";
|
|
52
|
+
readonly defaultActive: true;
|
|
51
53
|
readonly deviceTypes: readonly [DeviceType.Camera];
|
|
52
54
|
readonly exposesDeviceSettings: true;
|
|
53
55
|
readonly methods: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/snapshot.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB;;;iBAGvB,CAAA;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB;;;;;iBASxB,CAAA;AAEF,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"snapshot.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/snapshot.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAClG,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD;;;;;;GAMG;AACH,QAAA,MAAM,mBAAmB;;;iBAGvB,CAAA;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH;;;;;GAKG;AACH,QAAA,MAAM,oBAAoB;;;;;iBASxB,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCU,CAAA;AAEzC,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE5E,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -22,6 +22,46 @@ declare const SsoBridgeClaimsSchema: z.ZodObject<{
|
|
|
22
22
|
email: z.ZodOptional<z.ZodString>;
|
|
23
23
|
displayName: z.ZodOptional<z.ZodString>;
|
|
24
24
|
hubUrl: z.ZodOptional<z.ZodString>;
|
|
25
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"category">;
|
|
27
|
+
target: z.ZodEnum<{
|
|
28
|
+
system: "system";
|
|
29
|
+
device: "device";
|
|
30
|
+
}>;
|
|
31
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
32
|
+
view: "view";
|
|
33
|
+
create: "create";
|
|
34
|
+
delete: "delete";
|
|
35
|
+
}>>;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"capability">;
|
|
38
|
+
target: z.ZodString;
|
|
39
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
40
|
+
view: "view";
|
|
41
|
+
create: "create";
|
|
42
|
+
delete: "delete";
|
|
43
|
+
}>>;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
type: z.ZodLiteral<"addon">;
|
|
46
|
+
target: z.ZodString;
|
|
47
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
48
|
+
view: "view";
|
|
49
|
+
create: "create";
|
|
50
|
+
delete: "delete";
|
|
51
|
+
}>>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
type: z.ZodLiteral<"device">;
|
|
54
|
+
targets: z.ZodArray<z.ZodString>;
|
|
55
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
56
|
+
view: "view";
|
|
57
|
+
create: "create";
|
|
58
|
+
delete: "delete";
|
|
59
|
+
}>>;
|
|
60
|
+
}, z.core.$strip>], "type">>>;
|
|
61
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
62
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
64
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
25
65
|
}, z.core.$strip>;
|
|
26
66
|
export declare const ssoBridgeCapability: {
|
|
27
67
|
readonly name: "sso-bridge";
|
|
@@ -38,6 +78,46 @@ export declare const ssoBridgeCapability: {
|
|
|
38
78
|
email: z.ZodOptional<z.ZodString>;
|
|
39
79
|
displayName: z.ZodOptional<z.ZodString>;
|
|
40
80
|
hubUrl: z.ZodOptional<z.ZodString>;
|
|
81
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
82
|
+
type: z.ZodLiteral<"category">;
|
|
83
|
+
target: z.ZodEnum<{
|
|
84
|
+
system: "system";
|
|
85
|
+
device: "device";
|
|
86
|
+
}>;
|
|
87
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
88
|
+
view: "view";
|
|
89
|
+
create: "create";
|
|
90
|
+
delete: "delete";
|
|
91
|
+
}>>;
|
|
92
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
93
|
+
type: z.ZodLiteral<"capability">;
|
|
94
|
+
target: z.ZodString;
|
|
95
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
96
|
+
view: "view";
|
|
97
|
+
create: "create";
|
|
98
|
+
delete: "delete";
|
|
99
|
+
}>>;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
type: z.ZodLiteral<"addon">;
|
|
102
|
+
target: z.ZodString;
|
|
103
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
104
|
+
view: "view";
|
|
105
|
+
create: "create";
|
|
106
|
+
delete: "delete";
|
|
107
|
+
}>>;
|
|
108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
109
|
+
type: z.ZodLiteral<"device">;
|
|
110
|
+
targets: z.ZodArray<z.ZodString>;
|
|
111
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
112
|
+
view: "view";
|
|
113
|
+
create: "create";
|
|
114
|
+
delete: "delete";
|
|
115
|
+
}>>;
|
|
116
|
+
}, z.core.$strip>], "type">>>;
|
|
117
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
118
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
120
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
41
121
|
}, z.core.$strip>;
|
|
42
122
|
ttlSec: z.ZodOptional<z.ZodNumber>;
|
|
43
123
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -53,6 +133,46 @@ export declare const ssoBridgeCapability: {
|
|
|
53
133
|
email: z.ZodOptional<z.ZodString>;
|
|
54
134
|
displayName: z.ZodOptional<z.ZodString>;
|
|
55
135
|
hubUrl: z.ZodOptional<z.ZodString>;
|
|
136
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
137
|
+
type: z.ZodLiteral<"category">;
|
|
138
|
+
target: z.ZodEnum<{
|
|
139
|
+
system: "system";
|
|
140
|
+
device: "device";
|
|
141
|
+
}>;
|
|
142
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
143
|
+
view: "view";
|
|
144
|
+
create: "create";
|
|
145
|
+
delete: "delete";
|
|
146
|
+
}>>;
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
+
type: z.ZodLiteral<"capability">;
|
|
149
|
+
target: z.ZodString;
|
|
150
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
151
|
+
view: "view";
|
|
152
|
+
create: "create";
|
|
153
|
+
delete: "delete";
|
|
154
|
+
}>>;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
type: z.ZodLiteral<"addon">;
|
|
157
|
+
target: z.ZodString;
|
|
158
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
159
|
+
view: "view";
|
|
160
|
+
create: "create";
|
|
161
|
+
delete: "delete";
|
|
162
|
+
}>>;
|
|
163
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
164
|
+
type: z.ZodLiteral<"device">;
|
|
165
|
+
targets: z.ZodArray<z.ZodString>;
|
|
166
|
+
access: z.ZodArray<z.ZodEnum<{
|
|
167
|
+
view: "view";
|
|
168
|
+
create: "create";
|
|
169
|
+
delete: "delete";
|
|
170
|
+
}>>;
|
|
171
|
+
}, z.core.$strip>], "type">>>;
|
|
172
|
+
redirectUri: z.ZodOptional<z.ZodString>;
|
|
173
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
jti: z.ZodOptional<z.ZodString>;
|
|
175
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
56
176
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
57
177
|
};
|
|
58
178
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso-bridge.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/sso-bridge.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"sso-bridge.cap.d.ts","sourceRoot":"","sources":["../../src/capabilities/sso-bridge.cap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAqC,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAGlG;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BzB,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBS,CAAA;AAEzC,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC1E,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|