@camstack/types 1.2.383 → 1.2.385
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 +67 -3
- package/dist/addon.mjs +67 -3
- package/dist/capabilities/alerts.cap.d.ts +20 -0
- package/dist/capabilities/device-adoption.cap.d.ts +6 -2
- package/dist/capabilities/device-manager.cap.d.ts +1 -1
- package/dist/capabilities/dishwasher.cap.d.ts +368 -18
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +69 -0
- package/dist/capabilities/osd-manager.cap.d.ts +18 -0
- package/dist/capabilities/storage-migration.cap.d.ts +14 -0
- package/dist/client.js +88 -10
- package/dist/client.mjs +88 -10
- package/dist/enums/event-category.d.ts +10 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-BvOFi6PY.mjs → event-category-DOl51-Ij.mjs} +10 -1
- package/dist/{event-category-Hoe-mqbd.js → event-category-eSqkye-K.js} +10 -1
- package/dist/generated/addon-api.d.ts +49 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +4 -4
- 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.d.ts +2 -0
- package/dist/index.js +598 -39
- package/dist/index.mjs +578 -40
- package/dist/interfaces/event-bus.d.ts +2 -0
- package/dist/interfaces/relocate.d.ts +25 -0
- package/dist/notification/alert-episode.d.ts +62 -0
- package/dist/{sleep--L6qY125.js → sleep-BE7_6UnC.js} +15 -4
- package/dist/{sleep-BOjuyoPC.mjs → sleep-BxjU_fJM.mjs} +15 -4
- package/dist/utils/oauth-landing.d.ts +38 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep
|
|
3
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_sleep = require("./sleep-BE7_6UnC.js");
|
|
3
|
+
const require_event_category = require("./event-category-eSqkye-K.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-BhVbr0NX.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
|
@@ -973,6 +973,15 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
973
973
|
"valueType": "boolean"
|
|
974
974
|
}],
|
|
975
975
|
"dishwasher": [
|
|
976
|
+
{
|
|
977
|
+
"path": "availability",
|
|
978
|
+
"valueType": "enum",
|
|
979
|
+
"enumValues": [
|
|
980
|
+
"available",
|
|
981
|
+
"offline",
|
|
982
|
+
"description-missing"
|
|
983
|
+
]
|
|
984
|
+
},
|
|
976
985
|
{
|
|
977
986
|
"path": "state",
|
|
978
987
|
"valueType": "enum",
|
|
@@ -985,12 +994,35 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
985
994
|
"unavailable"
|
|
986
995
|
]
|
|
987
996
|
},
|
|
997
|
+
{
|
|
998
|
+
"path": "operationState",
|
|
999
|
+
"valueType": "enum",
|
|
1000
|
+
"enumValues": [
|
|
1001
|
+
"Inactive",
|
|
1002
|
+
"Ready",
|
|
1003
|
+
"DelayedStart",
|
|
1004
|
+
"Run",
|
|
1005
|
+
"Pause",
|
|
1006
|
+
"ActionRequired",
|
|
1007
|
+
"Finished",
|
|
1008
|
+
"Error",
|
|
1009
|
+
"Aborting"
|
|
1010
|
+
]
|
|
1011
|
+
},
|
|
988
1012
|
{
|
|
989
1013
|
"path": "program",
|
|
990
1014
|
"valueType": "string"
|
|
991
1015
|
},
|
|
992
1016
|
{
|
|
993
|
-
"path": "
|
|
1017
|
+
"path": "selectedProgram",
|
|
1018
|
+
"valueType": "string"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"path": "remainingSeconds",
|
|
1022
|
+
"valueType": "number"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"path": "delayedStartSeconds",
|
|
994
1026
|
"valueType": "number"
|
|
995
1027
|
},
|
|
996
1028
|
{
|
|
@@ -1001,14 +1033,30 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
1001
1033
|
"path": "doorOpen",
|
|
1002
1034
|
"valueType": "boolean"
|
|
1003
1035
|
},
|
|
1036
|
+
{
|
|
1037
|
+
"path": "doorLocked",
|
|
1038
|
+
"valueType": "boolean"
|
|
1039
|
+
},
|
|
1004
1040
|
{
|
|
1005
1041
|
"path": "remoteStartAllowed",
|
|
1006
1042
|
"valueType": "boolean"
|
|
1007
1043
|
},
|
|
1044
|
+
{
|
|
1045
|
+
"path": "remoteControlActive",
|
|
1046
|
+
"valueType": "boolean"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"path": "localControlActive",
|
|
1050
|
+
"valueType": "boolean"
|
|
1051
|
+
},
|
|
1008
1052
|
{
|
|
1009
1053
|
"path": "powerOn",
|
|
1010
1054
|
"valueType": "boolean"
|
|
1011
1055
|
},
|
|
1056
|
+
{
|
|
1057
|
+
"path": "powerState",
|
|
1058
|
+
"valueType": "string"
|
|
1059
|
+
},
|
|
1012
1060
|
{
|
|
1013
1061
|
"path": "saltLevel",
|
|
1014
1062
|
"valueType": "enum",
|
|
@@ -1035,6 +1083,22 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
1035
1083
|
"path": "hygienePlus",
|
|
1036
1084
|
"valueType": "boolean"
|
|
1037
1085
|
},
|
|
1086
|
+
{
|
|
1087
|
+
"path": "extraDry",
|
|
1088
|
+
"valueType": "boolean"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"path": "intensiveZone",
|
|
1092
|
+
"valueType": "boolean"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"path": "varioSpeedPlus",
|
|
1096
|
+
"valueType": "boolean"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"path": "childLock",
|
|
1100
|
+
"valueType": "boolean"
|
|
1101
|
+
},
|
|
1038
1102
|
{
|
|
1039
1103
|
"path": "errorCode",
|
|
1040
1104
|
"valueType": "number"
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as PEER_BYTES_CHUNK_BYTES, $t as REMOVE_LEAF, A as HF_REPO, An as RECORD_BATCH_MAX_BYTES, Ar as emitReadiness, B as describeCustomActions, Bn as RECORD_SECRET_COLLECTION_PREFIX, Br as SECRET_CLEAR, Bt as settingsBrokersAdoptsFrom, C as addonSliceHandleApi, Cn as RecordsError, Cr as globalSecretScope, Dn as asRecordsError, En as UnknownRecordKindError, Er as parseSecretRef, F as DEVICE_CHILDREN_BATCH_MAX, Fn as RECORD_ID_MAX_LENGTH, Ft as SETTINGS_ARRAY_ADOPTS_PREFIX, Gn as createSecretsAccess, Gr as isSecretMarkerLike, Gt as RecordFieldPathSchema, H as adminUiCapability, Hn as RECORD_SWEEP_INTERVAL_MS, Hr as isSecretClear, Ht as entryBody, I as CALLER_STAMPED_CAPABILITIES, In as RECORD_MAX_DATA_BYTES, It as parseSettingsArrayAdoptsFrom, Jn as forgetKnownSecret, Jt as RecordKindNameSchema, Kn as MIN_SCRUBBED_LENGTH, Kr as makeSecretMarker, Kt as RecordIndexSchema, L as withoutCallerStamp, Ln as RECORD_MAX_INDEXES, Lt as settingsArrayAdoptsFrom, Mn as RECORD_DATABASES, N as deviceOpsCapability, Nn as RECORD_DEFAULT_MAX_DATA_BYTES, On as recordsErrorFromMessage, P as viewerUiCapability, Pn as RECORD_DELETE_BATCH, Pt as makeInMemoryRecords, Qn as shortSecretRefHash, Qt as defineRecordKinds, Rn as RECORD_MAX_INDEX_FIELDS, Rt as SETTINGS_BROKERS_ADOPTS_PREFIX, Sn as RecordUniqueViolationError, Sr as formatSecretScope, Tn as UnindexedFilterError, Tr as normalizeSecretOwner, Un as resolveSecretViewsIn, Ur as isSecretFieldView, Ut as createRecordsAccess, Vn as RECORD_SETTINGS_MAX_ROWS, Vr as classifySecretWrite, Vt as defineEntryKind, Wn as REVALIDATE_AFTER_MS, Wr as isSecretMarker, Wt as EntryDescriptorSchema, X as expandCapMethods, Xn as registerKnownSecret, Xt as assertValidDeclaration, Yn as knownSecretCount, Yt as RecordRetentionSchema, Zn as scrubKnownSecrets, Zt as declarationsOf, _ as readErrorI18n, _n as PlaintextSecretError, an as recordSecretRef, b as isDeviceScopedCap, bn as RecordSecretUnavailableError, br as arrayItemFieldPath, c as asString, cn as collectZodSecretPaths, ct as ReadinessTimeoutError, d as parseJsonUnknown, dn as BatchTooLargeError, dt as scopeKey, en as collectSecretLeaves, er as PEER_BYTES_MAX_OUTSTANDING, f as hfModelUrl, fn as DeclarationRefusedError, g as ErrorI18nPayloadSchema, gn as NoCallerError, hn as InvalidRecordError, in as recordSecretCollection, ir as DATAPLANE_SECRET_HEADER, it as readNodePin, jn as RECORD_CLASSES, kn as RECORD_BATCH_MAX, kr as createEvent, ln as isZodSecret, lr as normalizeAddonInitResult, mn as ForeignSecretMarkerError, nn as parseSecretPath, nr as PEER_BYTES_TICKET_TTL_MS, o as asJsonObject, on as secretArrayPrefixes, or as DisposerChain, ot as MODEL_FORMATS, p as BOOT_RECOVERY_BACKOFF_MS, pn as FilterRequiredError, qn as clearKnownSecrets, qr as toSecretFieldView, qt as RecordKindDeclarationSchema, r as maskUrlCredentials, rn as recordArrayItemPath, rt as nodePin, sr as BaseAddon, st as ReadinessRegistry, t as sleep, tn as mapSecretLeaves, tr as PEER_BYTES_STALL_MS, un as AdoptionPendingError, vn as RECORDS_ERROR_CODES, w as createEventBusSliceSource, wn as RevConflictError, wr as isSecretRef, x as createDeviceProxy, xn as RecordTooLargeError, xr as buildSecretRef, y as DEVICE_SCOPED_CAPS, yn as RecordNotFoundError, yr as SECRET_REF_SCHEME, zn as RECORD_QUERY_MAX, zt as parseSettingsBrokersAdoptsFrom } from "./sleep-
|
|
2
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { $n as PEER_BYTES_CHUNK_BYTES, $t as REMOVE_LEAF, A as HF_REPO, An as RECORD_BATCH_MAX_BYTES, Ar as emitReadiness, B as describeCustomActions, Bn as RECORD_SECRET_COLLECTION_PREFIX, Br as SECRET_CLEAR, Bt as settingsBrokersAdoptsFrom, C as addonSliceHandleApi, Cn as RecordsError, Cr as globalSecretScope, Dn as asRecordsError, En as UnknownRecordKindError, Er as parseSecretRef, F as DEVICE_CHILDREN_BATCH_MAX, Fn as RECORD_ID_MAX_LENGTH, Ft as SETTINGS_ARRAY_ADOPTS_PREFIX, Gn as createSecretsAccess, Gr as isSecretMarkerLike, Gt as RecordFieldPathSchema, H as adminUiCapability, Hn as RECORD_SWEEP_INTERVAL_MS, Hr as isSecretClear, Ht as entryBody, I as CALLER_STAMPED_CAPABILITIES, In as RECORD_MAX_DATA_BYTES, It as parseSettingsArrayAdoptsFrom, Jn as forgetKnownSecret, Jt as RecordKindNameSchema, Kn as MIN_SCRUBBED_LENGTH, Kr as makeSecretMarker, Kt as RecordIndexSchema, L as withoutCallerStamp, Ln as RECORD_MAX_INDEXES, Lt as settingsArrayAdoptsFrom, Mn as RECORD_DATABASES, N as deviceOpsCapability, Nn as RECORD_DEFAULT_MAX_DATA_BYTES, On as recordsErrorFromMessage, P as viewerUiCapability, Pn as RECORD_DELETE_BATCH, Pt as makeInMemoryRecords, Qn as shortSecretRefHash, Qt as defineRecordKinds, Rn as RECORD_MAX_INDEX_FIELDS, Rt as SETTINGS_BROKERS_ADOPTS_PREFIX, Sn as RecordUniqueViolationError, Sr as formatSecretScope, Tn as UnindexedFilterError, Tr as normalizeSecretOwner, Un as resolveSecretViewsIn, Ur as isSecretFieldView, Ut as createRecordsAccess, Vn as RECORD_SETTINGS_MAX_ROWS, Vr as classifySecretWrite, Vt as defineEntryKind, Wn as REVALIDATE_AFTER_MS, Wr as isSecretMarker, Wt as EntryDescriptorSchema, X as expandCapMethods, Xn as registerKnownSecret, Xt as assertValidDeclaration, Yn as knownSecretCount, Yt as RecordRetentionSchema, Zn as scrubKnownSecrets, Zt as declarationsOf, _ as readErrorI18n, _n as PlaintextSecretError, an as recordSecretRef, b as isDeviceScopedCap, bn as RecordSecretUnavailableError, br as arrayItemFieldPath, c as asString, cn as collectZodSecretPaths, ct as ReadinessTimeoutError, d as parseJsonUnknown, dn as BatchTooLargeError, dt as scopeKey, en as collectSecretLeaves, er as PEER_BYTES_MAX_OUTSTANDING, f as hfModelUrl, fn as DeclarationRefusedError, g as ErrorI18nPayloadSchema, gn as NoCallerError, hn as InvalidRecordError, in as recordSecretCollection, ir as DATAPLANE_SECRET_HEADER, it as readNodePin, jn as RECORD_CLASSES, kn as RECORD_BATCH_MAX, kr as createEvent, ln as isZodSecret, lr as normalizeAddonInitResult, mn as ForeignSecretMarkerError, nn as parseSecretPath, nr as PEER_BYTES_TICKET_TTL_MS, o as asJsonObject, on as secretArrayPrefixes, or as DisposerChain, ot as MODEL_FORMATS, p as BOOT_RECOVERY_BACKOFF_MS, pn as FilterRequiredError, qn as clearKnownSecrets, qr as toSecretFieldView, qt as RecordKindDeclarationSchema, r as maskUrlCredentials, rn as recordArrayItemPath, rt as nodePin, sr as BaseAddon, st as ReadinessRegistry, t as sleep, tn as mapSecretLeaves, tr as PEER_BYTES_STALL_MS, un as AdoptionPendingError, vn as RECORDS_ERROR_CODES, w as createEventBusSliceSource, wn as RevConflictError, wr as isSecretRef, x as createDeviceProxy, xn as RecordTooLargeError, xr as buildSecretRef, y as DEVICE_SCOPED_CAPS, yn as RecordNotFoundError, yr as SECRET_REF_SCHEME, zn as RECORD_QUERY_MAX, zt as parseSettingsBrokersAdoptsFrom } from "./sleep-BxjU_fJM.mjs";
|
|
2
|
+
import { t as EventCategory } from "./event-category-DOl51-Ij.mjs";
|
|
3
3
|
import { a as DeviceType, t as errMsg } from "./err-msg-BXKzRBwg.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
@@ -972,6 +972,15 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
972
972
|
"valueType": "boolean"
|
|
973
973
|
}],
|
|
974
974
|
"dishwasher": [
|
|
975
|
+
{
|
|
976
|
+
"path": "availability",
|
|
977
|
+
"valueType": "enum",
|
|
978
|
+
"enumValues": [
|
|
979
|
+
"available",
|
|
980
|
+
"offline",
|
|
981
|
+
"description-missing"
|
|
982
|
+
]
|
|
983
|
+
},
|
|
975
984
|
{
|
|
976
985
|
"path": "state",
|
|
977
986
|
"valueType": "enum",
|
|
@@ -984,12 +993,35 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
984
993
|
"unavailable"
|
|
985
994
|
]
|
|
986
995
|
},
|
|
996
|
+
{
|
|
997
|
+
"path": "operationState",
|
|
998
|
+
"valueType": "enum",
|
|
999
|
+
"enumValues": [
|
|
1000
|
+
"Inactive",
|
|
1001
|
+
"Ready",
|
|
1002
|
+
"DelayedStart",
|
|
1003
|
+
"Run",
|
|
1004
|
+
"Pause",
|
|
1005
|
+
"ActionRequired",
|
|
1006
|
+
"Finished",
|
|
1007
|
+
"Error",
|
|
1008
|
+
"Aborting"
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
987
1011
|
{
|
|
988
1012
|
"path": "program",
|
|
989
1013
|
"valueType": "string"
|
|
990
1014
|
},
|
|
991
1015
|
{
|
|
992
|
-
"path": "
|
|
1016
|
+
"path": "selectedProgram",
|
|
1017
|
+
"valueType": "string"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"path": "remainingSeconds",
|
|
1021
|
+
"valueType": "number"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"path": "delayedStartSeconds",
|
|
993
1025
|
"valueType": "number"
|
|
994
1026
|
},
|
|
995
1027
|
{
|
|
@@ -1000,14 +1032,30 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
1000
1032
|
"path": "doorOpen",
|
|
1001
1033
|
"valueType": "boolean"
|
|
1002
1034
|
},
|
|
1035
|
+
{
|
|
1036
|
+
"path": "doorLocked",
|
|
1037
|
+
"valueType": "boolean"
|
|
1038
|
+
},
|
|
1003
1039
|
{
|
|
1004
1040
|
"path": "remoteStartAllowed",
|
|
1005
1041
|
"valueType": "boolean"
|
|
1006
1042
|
},
|
|
1043
|
+
{
|
|
1044
|
+
"path": "remoteControlActive",
|
|
1045
|
+
"valueType": "boolean"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"path": "localControlActive",
|
|
1049
|
+
"valueType": "boolean"
|
|
1050
|
+
},
|
|
1007
1051
|
{
|
|
1008
1052
|
"path": "powerOn",
|
|
1009
1053
|
"valueType": "boolean"
|
|
1010
1054
|
},
|
|
1055
|
+
{
|
|
1056
|
+
"path": "powerState",
|
|
1057
|
+
"valueType": "string"
|
|
1058
|
+
},
|
|
1011
1059
|
{
|
|
1012
1060
|
"path": "saltLevel",
|
|
1013
1061
|
"valueType": "enum",
|
|
@@ -1034,6 +1082,22 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
1034
1082
|
"path": "hygienePlus",
|
|
1035
1083
|
"valueType": "boolean"
|
|
1036
1084
|
},
|
|
1085
|
+
{
|
|
1086
|
+
"path": "extraDry",
|
|
1087
|
+
"valueType": "boolean"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"path": "intensiveZone",
|
|
1091
|
+
"valueType": "boolean"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"path": "varioSpeedPlus",
|
|
1095
|
+
"valueType": "boolean"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"path": "childLock",
|
|
1099
|
+
"valueType": "boolean"
|
|
1100
|
+
},
|
|
1037
1101
|
{
|
|
1038
1102
|
"path": "errorCode",
|
|
1039
1103
|
"valueType": "number"
|
|
@@ -17,6 +17,10 @@ export declare const AlertSeveritySchema: z.ZodEnum<{
|
|
|
17
17
|
export declare const AlertActionSchema: z.ZodObject<{
|
|
18
18
|
label: z.ZodString;
|
|
19
19
|
href: z.ZodOptional<z.ZodString>;
|
|
20
|
+
navigation: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
app: "app";
|
|
22
|
+
server: "server";
|
|
23
|
+
}>>;
|
|
20
24
|
}, z.core.$strip>;
|
|
21
25
|
export declare const AlertStatusSchema: z.ZodEnum<{
|
|
22
26
|
active: "active";
|
|
@@ -44,6 +48,10 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
44
48
|
action: z.ZodOptional<z.ZodObject<{
|
|
45
49
|
label: z.ZodString;
|
|
46
50
|
href: z.ZodOptional<z.ZodString>;
|
|
51
|
+
navigation: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
app: "app";
|
|
53
|
+
server: "server";
|
|
54
|
+
}>>;
|
|
47
55
|
}, z.core.$strip>>;
|
|
48
56
|
status: z.ZodEnum<{
|
|
49
57
|
active: "active";
|
|
@@ -85,6 +93,10 @@ export declare const alertsCapability: {
|
|
|
85
93
|
action: z.ZodOptional<z.ZodObject<{
|
|
86
94
|
label: z.ZodString;
|
|
87
95
|
href: z.ZodOptional<z.ZodString>;
|
|
96
|
+
navigation: z.ZodOptional<z.ZodEnum<{
|
|
97
|
+
app: "app";
|
|
98
|
+
server: "server";
|
|
99
|
+
}>>;
|
|
88
100
|
}, z.core.$strip>>;
|
|
89
101
|
status: z.ZodEnum<{
|
|
90
102
|
active: "active";
|
|
@@ -120,6 +132,10 @@ export declare const alertsCapability: {
|
|
|
120
132
|
action: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
121
133
|
label: z.ZodString;
|
|
122
134
|
href: z.ZodOptional<z.ZodString>;
|
|
135
|
+
navigation: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
app: "app";
|
|
137
|
+
server: "server";
|
|
138
|
+
}>>;
|
|
123
139
|
}, z.core.$strip>>>;
|
|
124
140
|
status: z.ZodOptional<z.ZodEnum<{
|
|
125
141
|
active: "active";
|
|
@@ -157,6 +173,10 @@ export declare const alertsCapability: {
|
|
|
157
173
|
action: z.ZodOptional<z.ZodObject<{
|
|
158
174
|
label: z.ZodString;
|
|
159
175
|
href: z.ZodOptional<z.ZodString>;
|
|
176
|
+
navigation: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
app: "app";
|
|
178
|
+
server: "server";
|
|
179
|
+
}>>;
|
|
160
180
|
}, z.core.$strip>>;
|
|
161
181
|
status: z.ZodEnum<{
|
|
162
182
|
active: "active";
|
|
@@ -2,7 +2,11 @@ import { z } from 'zod';
|
|
|
2
2
|
import { type InferProvider } from './capability-definition.js';
|
|
3
3
|
/**
|
|
4
4
|
* `device-adoption` — generic discovery + adoption surface,
|
|
5
|
-
* system-scoped
|
|
5
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
6
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
7
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
8
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
9
|
+
* successor to `ha-discovery`:
|
|
6
10
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
7
11
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
8
12
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -122,7 +126,7 @@ export declare const ResyncResultSchema: z.ZodObject<{
|
|
|
122
126
|
export declare const deviceAdoptionCapability: {
|
|
123
127
|
readonly name: 'device-adoption';
|
|
124
128
|
readonly scope: 'system';
|
|
125
|
-
readonly mode: '
|
|
129
|
+
readonly mode: 'collection';
|
|
126
130
|
readonly status: {
|
|
127
131
|
readonly schema: z.ZodObject<{
|
|
128
132
|
lastDiscoveryAt: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1801,7 +1801,7 @@ export declare const deviceManagerCapability: {
|
|
|
1801
1801
|
error: z.ZodOptional<z.ZodString>;
|
|
1802
1802
|
}, z.core.$strip>, "mutation">;
|
|
1803
1803
|
/** List candidate filter chips for an integration via its device-adoption
|
|
1804
|
-
* provider — addonId-routed
|
|
1804
|
+
* provider — addonId-routed via the collection pin. */
|
|
1805
1805
|
readonly adoptionListCandidateFilters: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1806
1806
|
addonId: z.ZodString;
|
|
1807
1807
|
integrationId: z.ZodString;
|