@camstack/addon-export-hap 1.2.18 → 1.2.19
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/export-hap.addon.js +42 -0
- package/dist/export-hap.addon.mjs +42 -0
- package/package.json +1 -1
package/dist/export-hap.addon.js
CHANGED
|
@@ -19042,6 +19042,22 @@ var TerminalProfileInfoSchema = object({
|
|
|
19042
19042
|
label: string(),
|
|
19043
19043
|
description: string().optional()
|
|
19044
19044
|
});
|
|
19045
|
+
var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
|
|
19046
|
+
seq: number().int().positive(),
|
|
19047
|
+
kind: literal("data"),
|
|
19048
|
+
data: string()
|
|
19049
|
+
}), object({
|
|
19050
|
+
seq: number().int().positive(),
|
|
19051
|
+
kind: literal("exit"),
|
|
19052
|
+
exitCode: number().int(),
|
|
19053
|
+
signal: number().int().optional()
|
|
19054
|
+
})]);
|
|
19055
|
+
var TerminalOutputBatchSchema = object({
|
|
19056
|
+
cursor: number().int().nonnegative(),
|
|
19057
|
+
reset: boolean(),
|
|
19058
|
+
snapshot: string().optional(),
|
|
19059
|
+
events: array(TerminalOutputEventSchema).readonly()
|
|
19060
|
+
});
|
|
19045
19061
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19046
19062
|
profileId: string(),
|
|
19047
19063
|
cols: number().int().positive(),
|
|
@@ -19056,6 +19072,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
19056
19072
|
}), _void(), {
|
|
19057
19073
|
kind: "mutation",
|
|
19058
19074
|
auth: "admin"
|
|
19075
|
+
}), method(object({
|
|
19076
|
+
sessionId: string(),
|
|
19077
|
+
afterSeq: number().int().nonnegative(),
|
|
19078
|
+
waitMs: number().int().min(0).max(2e3).default(0)
|
|
19079
|
+
}), TerminalOutputBatchSchema, {
|
|
19080
|
+
kind: "mutation",
|
|
19081
|
+
auth: "admin",
|
|
19082
|
+
timeoutMs: 15e3
|
|
19083
|
+
}), method(object({
|
|
19084
|
+
sessionId: string(),
|
|
19085
|
+
data: string().max(64 * 1024)
|
|
19086
|
+
}), _void(), {
|
|
19087
|
+
kind: "mutation",
|
|
19088
|
+
auth: "admin"
|
|
19059
19089
|
}), method(object({ sessionId: string() }), _void(), {
|
|
19060
19090
|
kind: "mutation",
|
|
19061
19091
|
auth: "admin"
|
|
@@ -29937,12 +29967,24 @@ Object.freeze({
|
|
|
29937
29967
|
addonId: null,
|
|
29938
29968
|
access: "create"
|
|
29939
29969
|
},
|
|
29970
|
+
"terminalSession.pullOutput": {
|
|
29971
|
+
capName: "terminal-session",
|
|
29972
|
+
capScope: "system",
|
|
29973
|
+
addonId: null,
|
|
29974
|
+
access: "create"
|
|
29975
|
+
},
|
|
29940
29976
|
"terminalSession.resize": {
|
|
29941
29977
|
capName: "terminal-session",
|
|
29942
29978
|
capScope: "system",
|
|
29943
29979
|
addonId: null,
|
|
29944
29980
|
access: "create"
|
|
29945
29981
|
},
|
|
29982
|
+
"terminalSession.writeInput": {
|
|
29983
|
+
capName: "terminal-session",
|
|
29984
|
+
capScope: "system",
|
|
29985
|
+
addonId: null,
|
|
29986
|
+
access: "create"
|
|
29987
|
+
},
|
|
29946
29988
|
"toast.onToast": {
|
|
29947
29989
|
capName: "toast",
|
|
29948
29990
|
capScope: "system",
|
|
@@ -19016,6 +19016,22 @@ var TerminalProfileInfoSchema = object({
|
|
|
19016
19016
|
label: string(),
|
|
19017
19017
|
description: string().optional()
|
|
19018
19018
|
});
|
|
19019
|
+
var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
|
|
19020
|
+
seq: number().int().positive(),
|
|
19021
|
+
kind: literal("data"),
|
|
19022
|
+
data: string()
|
|
19023
|
+
}), object({
|
|
19024
|
+
seq: number().int().positive(),
|
|
19025
|
+
kind: literal("exit"),
|
|
19026
|
+
exitCode: number().int(),
|
|
19027
|
+
signal: number().int().optional()
|
|
19028
|
+
})]);
|
|
19029
|
+
var TerminalOutputBatchSchema = object({
|
|
19030
|
+
cursor: number().int().nonnegative(),
|
|
19031
|
+
reset: boolean(),
|
|
19032
|
+
snapshot: string().optional(),
|
|
19033
|
+
events: array(TerminalOutputEventSchema).readonly()
|
|
19034
|
+
});
|
|
19019
19035
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19020
19036
|
profileId: string(),
|
|
19021
19037
|
cols: number().int().positive(),
|
|
@@ -19030,6 +19046,20 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
19030
19046
|
}), _void(), {
|
|
19031
19047
|
kind: "mutation",
|
|
19032
19048
|
auth: "admin"
|
|
19049
|
+
}), method(object({
|
|
19050
|
+
sessionId: string(),
|
|
19051
|
+
afterSeq: number().int().nonnegative(),
|
|
19052
|
+
waitMs: number().int().min(0).max(2e3).default(0)
|
|
19053
|
+
}), TerminalOutputBatchSchema, {
|
|
19054
|
+
kind: "mutation",
|
|
19055
|
+
auth: "admin",
|
|
19056
|
+
timeoutMs: 15e3
|
|
19057
|
+
}), method(object({
|
|
19058
|
+
sessionId: string(),
|
|
19059
|
+
data: string().max(64 * 1024)
|
|
19060
|
+
}), _void(), {
|
|
19061
|
+
kind: "mutation",
|
|
19062
|
+
auth: "admin"
|
|
19033
19063
|
}), method(object({ sessionId: string() }), _void(), {
|
|
19034
19064
|
kind: "mutation",
|
|
19035
19065
|
auth: "admin"
|
|
@@ -29911,12 +29941,24 @@ Object.freeze({
|
|
|
29911
29941
|
addonId: null,
|
|
29912
29942
|
access: "create"
|
|
29913
29943
|
},
|
|
29944
|
+
"terminalSession.pullOutput": {
|
|
29945
|
+
capName: "terminal-session",
|
|
29946
|
+
capScope: "system",
|
|
29947
|
+
addonId: null,
|
|
29948
|
+
access: "create"
|
|
29949
|
+
},
|
|
29914
29950
|
"terminalSession.resize": {
|
|
29915
29951
|
capName: "terminal-session",
|
|
29916
29952
|
capScope: "system",
|
|
29917
29953
|
addonId: null,
|
|
29918
29954
|
access: "create"
|
|
29919
29955
|
},
|
|
29956
|
+
"terminalSession.writeInput": {
|
|
29957
|
+
capName: "terminal-session",
|
|
29958
|
+
capScope: "system",
|
|
29959
|
+
addonId: null,
|
|
29960
|
+
access: "create"
|
|
29961
|
+
},
|
|
29920
29962
|
"toast.onToast": {
|
|
29921
29963
|
capName: "toast",
|
|
29922
29964
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
4
4
|
"description": "HomeKit (HAP) bridge exporter for CamStack devices. Publishes a bridged accessory per exposed device — MotionSensor in this MVP; Camera/Doorbell/Switch/Light follow.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|