@pellux/goodvibes-contracts 1.13.1 → 1.15.0
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/artifacts/operator-contract.json +548 -11
- package/artifacts/operator-openapi.json +639 -7
- package/artifacts/peer-contract.json +8 -4
- package/artifacts/python/homeassistant_operator_client.py +2 -2
- package/dist/generated/foundation-client-types.d.ts +101 -0
- package/dist/generated/foundation-client-types.d.ts.map +1 -1
- package/dist/generated/foundation-metadata.d.ts +2 -2
- package/dist/generated/foundation-metadata.js +2 -2
- package/dist/generated/mock-daemon-fixtures.d.ts.map +1 -1
- package/dist/generated/mock-daemon-fixtures.js +147 -1
- package/dist/generated/operator-contract.d.ts.map +1 -1
- package/dist/generated/operator-contract.js +548 -11
- package/dist/generated/operator-method-ids.d.ts +1 -1
- package/dist/generated/operator-method-ids.d.ts.map +1 -1
- package/dist/generated/operator-method-ids.js +4 -0
- package/dist/generated/peer-contract.d.ts.map +1 -1
- package/dist/generated/peer-contract.js +8 -4
- package/dist/generated/webui-facade.d.ts +2 -2
- package/dist/generated/webui-facade.d.ts.map +1 -1
- package/dist/generated/webui-facade.js +155 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/package.json +1 -1
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"status.request",
|
|
12
12
|
"location.request",
|
|
13
13
|
"session.message",
|
|
14
|
-
"automation.run"
|
|
14
|
+
"automation.run",
|
|
15
|
+
"device.capability"
|
|
15
16
|
],
|
|
16
17
|
"scopes": [
|
|
17
18
|
"remote:heartbeat",
|
|
@@ -823,7 +824,8 @@
|
|
|
823
824
|
"status.request",
|
|
824
825
|
"location.request",
|
|
825
826
|
"session.message",
|
|
826
|
-
"automation.run"
|
|
827
|
+
"automation.run",
|
|
828
|
+
"device.capability"
|
|
827
829
|
]
|
|
828
830
|
},
|
|
829
831
|
"command": {
|
|
@@ -1179,7 +1181,8 @@
|
|
|
1179
1181
|
"status.request",
|
|
1180
1182
|
"location.request",
|
|
1181
1183
|
"session.message",
|
|
1182
|
-
"automation.run"
|
|
1184
|
+
"automation.run",
|
|
1185
|
+
"device.capability"
|
|
1183
1186
|
]
|
|
1184
1187
|
},
|
|
1185
1188
|
"command": {
|
|
@@ -2030,7 +2033,8 @@
|
|
|
2030
2033
|
"status.request",
|
|
2031
2034
|
"location.request",
|
|
2032
2035
|
"session.message",
|
|
2033
|
-
"automation.run"
|
|
2036
|
+
"automation.run",
|
|
2037
|
+
"device.capability"
|
|
2034
2038
|
]
|
|
2035
2039
|
},
|
|
2036
2040
|
"command": {
|
|
@@ -5,7 +5,7 @@ emitted from the operator contract by scripts/generate-homeassistant-client.ts.
|
|
|
5
5
|
Covers only the REST subset HA consumes; the webhook, conversation stream,
|
|
6
6
|
and surface health probe are not operator methods and stay hand-written.
|
|
7
7
|
|
|
8
|
-
Contract product version: 1.
|
|
8
|
+
Contract product version: 1.15.0
|
|
9
9
|
Consumed operator methods: 33
|
|
10
10
|
"""
|
|
11
11
|
from __future__ import annotations
|
|
@@ -13,7 +13,7 @@ from __future__ import annotations
|
|
|
13
13
|
from typing import Any, Literal, Mapping, NamedTuple, NotRequired, TypedDict
|
|
14
14
|
|
|
15
15
|
#: Daemon contract version these types were generated against (the version pin).
|
|
16
|
-
CONTRACT_VERSION: str = "1.
|
|
16
|
+
CONTRACT_VERSION: str = "1.15.0"
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class OperatorRoute(NamedTuple):
|
|
@@ -1276,6 +1276,18 @@ export interface OperatorMethodInputMap {
|
|
|
1276
1276
|
enabled: boolean;
|
|
1277
1277
|
};
|
|
1278
1278
|
"power.status.get": {};
|
|
1279
|
+
"devices.nodes.list": {};
|
|
1280
|
+
"devices.grants.list": {
|
|
1281
|
+
nodeId?: string;
|
|
1282
|
+
limit?: number;
|
|
1283
|
+
};
|
|
1284
|
+
"devices.grants.revoke": {
|
|
1285
|
+
grantId?: string;
|
|
1286
|
+
nodeId?: string;
|
|
1287
|
+
capabilityId?: string;
|
|
1288
|
+
note?: string;
|
|
1289
|
+
};
|
|
1290
|
+
"devices.housekeeping.run": {};
|
|
1279
1291
|
"voice.local.install": {};
|
|
1280
1292
|
"voice.local.status": {};
|
|
1281
1293
|
"principals.create": {
|
|
@@ -8232,6 +8244,95 @@ export interface OperatorMethodOutputMap {
|
|
|
8232
8244
|
note: null | string;
|
|
8233
8245
|
};
|
|
8234
8246
|
};
|
|
8247
|
+
"devices.nodes.list": {
|
|
8248
|
+
nodes: readonly ({
|
|
8249
|
+
nodeId: string;
|
|
8250
|
+
nodeKind: string;
|
|
8251
|
+
nodeKindLabel: string;
|
|
8252
|
+
label: string;
|
|
8253
|
+
platform: string;
|
|
8254
|
+
appVersion: string;
|
|
8255
|
+
contractVersion: number;
|
|
8256
|
+
contractCompatible: boolean;
|
|
8257
|
+
supported: readonly string[];
|
|
8258
|
+
undeclared: readonly string[];
|
|
8259
|
+
gatedBySecureContext: readonly string[];
|
|
8260
|
+
unknownDeclared: readonly string[];
|
|
8261
|
+
})[];
|
|
8262
|
+
capabilities: readonly ({
|
|
8263
|
+
id: string;
|
|
8264
|
+
family: string;
|
|
8265
|
+
title: string;
|
|
8266
|
+
purpose: string;
|
|
8267
|
+
effect: string;
|
|
8268
|
+
sensitivity: string;
|
|
8269
|
+
producesArtifact: boolean;
|
|
8270
|
+
allowAlwaysOffered: boolean;
|
|
8271
|
+
})[];
|
|
8272
|
+
mode: string;
|
|
8273
|
+
allowAlwaysOffer: string;
|
|
8274
|
+
captureRetentionHours: number;
|
|
8275
|
+
};
|
|
8276
|
+
"devices.grants.list": {
|
|
8277
|
+
grants: readonly ({
|
|
8278
|
+
grantId: string;
|
|
8279
|
+
nodeId: string;
|
|
8280
|
+
nodeKind: string;
|
|
8281
|
+
capabilityId: string;
|
|
8282
|
+
capabilityTitle: string;
|
|
8283
|
+
scope: string;
|
|
8284
|
+
grantedAt: number;
|
|
8285
|
+
expiresAt: number;
|
|
8286
|
+
lastUsedAt: null | number;
|
|
8287
|
+
useCount: number;
|
|
8288
|
+
grantedBy: string;
|
|
8289
|
+
})[];
|
|
8290
|
+
audit: readonly ({
|
|
8291
|
+
id: string;
|
|
8292
|
+
action: string;
|
|
8293
|
+
grantId: string;
|
|
8294
|
+
nodeId: string;
|
|
8295
|
+
capabilityId: string;
|
|
8296
|
+
at: number;
|
|
8297
|
+
actor: string;
|
|
8298
|
+
reason: string;
|
|
8299
|
+
})[];
|
|
8300
|
+
};
|
|
8301
|
+
"devices.grants.revoke": {
|
|
8302
|
+
revoked: number;
|
|
8303
|
+
removals: readonly ({
|
|
8304
|
+
grantId: string;
|
|
8305
|
+
nodeId: string;
|
|
8306
|
+
capabilityId: string;
|
|
8307
|
+
scope: string;
|
|
8308
|
+
reason: string;
|
|
8309
|
+
removedAt: number;
|
|
8310
|
+
})[];
|
|
8311
|
+
};
|
|
8312
|
+
"devices.housekeeping.run": {
|
|
8313
|
+
summary: string;
|
|
8314
|
+
sweptAt: number;
|
|
8315
|
+
grantsRemoved: readonly ({
|
|
8316
|
+
grantId: string;
|
|
8317
|
+
nodeId: string;
|
|
8318
|
+
capabilityId: string;
|
|
8319
|
+
scope: string;
|
|
8320
|
+
reason: string;
|
|
8321
|
+
removedAt: number;
|
|
8322
|
+
})[];
|
|
8323
|
+
grantsRetained: number;
|
|
8324
|
+
capturesRemoved: readonly ({
|
|
8325
|
+
artifactId: string;
|
|
8326
|
+
nodeId: string;
|
|
8327
|
+
capabilityId: string;
|
|
8328
|
+
fileName: string;
|
|
8329
|
+
reason: string;
|
|
8330
|
+
removedAt: number;
|
|
8331
|
+
byteLength: number;
|
|
8332
|
+
})[];
|
|
8333
|
+
capturesRetained: number;
|
|
8334
|
+
bytesReclaimed: number;
|
|
8335
|
+
};
|
|
8235
8336
|
"principals.create": {
|
|
8236
8337
|
principal: {
|
|
8237
8338
|
id: string;
|