@pellux/goodvibes-contracts 1.6.1 → 1.7.1

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.
Files changed (33) hide show
  1. package/artifacts/operator-contract.json +7590 -1633
  2. package/artifacts/operator-openapi.json +92169 -0
  3. package/artifacts/python/homeassistant_operator_client.py +630 -0
  4. package/dist/core-verbs.d.ts.map +1 -1
  5. package/dist/core-verbs.js +51 -2
  6. package/dist/generated/foundation-client-types.d.ts +943 -2
  7. package/dist/generated/foundation-client-types.d.ts.map +1 -1
  8. package/dist/generated/foundation-metadata.d.ts +3 -3
  9. package/dist/generated/foundation-metadata.js +3 -3
  10. package/dist/generated/mock-daemon-fixtures.d.ts +11 -0
  11. package/dist/generated/mock-daemon-fixtures.d.ts.map +1 -0
  12. package/dist/generated/mock-daemon-fixtures.js +16279 -0
  13. package/dist/generated/operator-contract.d.ts.map +1 -1
  14. package/dist/generated/operator-contract.js +7590 -1633
  15. package/dist/generated/operator-method-ids.d.ts +1 -1
  16. package/dist/generated/operator-method-ids.d.ts.map +1 -1
  17. package/dist/generated/operator-method-ids.js +51 -0
  18. package/dist/generated/runtime-event-domains.d.ts +1 -1
  19. package/dist/generated/runtime-event-domains.d.ts.map +1 -1
  20. package/dist/generated/runtime-event-domains.js +1 -0
  21. package/dist/generated/webui-facade.d.ts +51 -0
  22. package/dist/generated/webui-facade.d.ts.map +1 -0
  23. package/dist/generated/webui-facade.js +18609 -0
  24. package/dist/testing/conformance.d.ts +56 -0
  25. package/dist/testing/conformance.d.ts.map +1 -0
  26. package/dist/testing/conformance.js +50 -0
  27. package/dist/testing/index.d.ts +16 -0
  28. package/dist/testing/index.d.ts.map +1 -0
  29. package/dist/testing/index.js +15 -0
  30. package/dist/testing/mock-daemon.d.ts +58 -0
  31. package/dist/testing/mock-daemon.d.ts.map +1 -0
  32. package/dist/testing/mock-daemon.js +96 -0
  33. package/package.json +14 -1
@@ -0,0 +1,630 @@
1
+ """GENERATED — do not edit. Regenerate with `bun run refresh:contracts`.
2
+
3
+ Mechanical transport layer for the GoodVibes Home Assistant integration,
4
+ emitted from the operator contract by scripts/generate-homeassistant-client.ts.
5
+ Covers only the REST subset HA consumes; the webhook, conversation stream,
6
+ and surface health probe are not operator methods and stay hand-written.
7
+
8
+ Contract product version: 1.7.1
9
+ Consumed operator methods: 33
10
+ """
11
+ from __future__ import annotations
12
+
13
+ from typing import Any, Literal, Mapping, NamedTuple, NotRequired, TypedDict
14
+
15
+ #: Daemon contract version these types were generated against (the version pin).
16
+ CONTRACT_VERSION: str = "1.7.1"
17
+
18
+
19
+ class OperatorRoute(NamedTuple):
20
+ """An operator method's REST binding: HTTP verb and path template."""
21
+
22
+ method: str
23
+ path: str
24
+
25
+
26
+ #: The operator method ids this client depends on (the capability surface).
27
+ CONSUMED_METHOD_IDS: frozenset[str] = frozenset({
28
+ "channels.actions.invoke",
29
+ "channels.agent_tools.surface.list",
30
+ "channels.tools.invoke",
31
+ "channels.tools.surface.list",
32
+ "control.status",
33
+ "homeassistant.homeGraph.askHomeGraph",
34
+ "homeassistant.homeGraph.browse",
35
+ "homeassistant.homeGraph.export",
36
+ "homeassistant.homeGraph.generateHomeGraphPacket",
37
+ "homeassistant.homeGraph.generateRoomPage",
38
+ "homeassistant.homeGraph.import",
39
+ "homeassistant.homeGraph.ingestHomeGraphArtifact",
40
+ "homeassistant.homeGraph.ingestHomeGraphNote",
41
+ "homeassistant.homeGraph.ingestHomeGraphUrl",
42
+ "homeassistant.homeGraph.linkHomeGraphKnowledge",
43
+ "homeassistant.homeGraph.listHomeGraphIssues",
44
+ "homeassistant.homeGraph.map",
45
+ "homeassistant.homeGraph.pages.list",
46
+ "homeassistant.homeGraph.refinement.run",
47
+ "homeassistant.homeGraph.refinement.task.cancel",
48
+ "homeassistant.homeGraph.refinement.task.get",
49
+ "homeassistant.homeGraph.refinement.tasks.list",
50
+ "homeassistant.homeGraph.refreshDevicePassport",
51
+ "homeassistant.homeGraph.reindex",
52
+ "homeassistant.homeGraph.reset",
53
+ "homeassistant.homeGraph.reviewHomeGraphFact",
54
+ "homeassistant.homeGraph.sources.list",
55
+ "homeassistant.homeGraph.status",
56
+ "homeassistant.homeGraph.syncHomeGraph",
57
+ "homeassistant.homeGraph.unlinkHomeGraphKnowledge",
58
+ "tasks.cancel",
59
+ "tasks.get",
60
+ "tasks.status",
61
+ })
62
+
63
+ #: methodId -> REST route constants for every consumed method.
64
+ OPERATOR_ROUTES: dict[str, OperatorRoute] = {
65
+ "channels.actions.invoke": OperatorRoute("POST", "/api/channels/actions/{surface}/{actionId}"),
66
+ "channels.agent_tools.surface.list": OperatorRoute("GET", "/api/channels/agent-tools/{surface}"),
67
+ "channels.tools.invoke": OperatorRoute("POST", "/api/channels/tools/{surface}/{toolId}"),
68
+ "channels.tools.surface.list": OperatorRoute("GET", "/api/channels/tools/{surface}"),
69
+ "control.status": OperatorRoute("GET", "/status"),
70
+ "homeassistant.homeGraph.askHomeGraph": OperatorRoute("POST", "/api/homeassistant/home-graph/ask"),
71
+ "homeassistant.homeGraph.browse": OperatorRoute("GET", "/api/homeassistant/home-graph/browse"),
72
+ "homeassistant.homeGraph.export": OperatorRoute("POST", "/api/homeassistant/home-graph/export"),
73
+ "homeassistant.homeGraph.generateHomeGraphPacket": OperatorRoute("POST", "/api/homeassistant/home-graph/packet"),
74
+ "homeassistant.homeGraph.generateRoomPage": OperatorRoute("POST", "/api/homeassistant/home-graph/room-page"),
75
+ "homeassistant.homeGraph.import": OperatorRoute("POST", "/api/homeassistant/home-graph/import"),
76
+ "homeassistant.homeGraph.ingestHomeGraphArtifact": OperatorRoute("POST", "/api/homeassistant/home-graph/ingest/artifact"),
77
+ "homeassistant.homeGraph.ingestHomeGraphNote": OperatorRoute("POST", "/api/homeassistant/home-graph/ingest/note"),
78
+ "homeassistant.homeGraph.ingestHomeGraphUrl": OperatorRoute("POST", "/api/homeassistant/home-graph/ingest/url"),
79
+ "homeassistant.homeGraph.linkHomeGraphKnowledge": OperatorRoute("POST", "/api/homeassistant/home-graph/link"),
80
+ "homeassistant.homeGraph.listHomeGraphIssues": OperatorRoute("GET", "/api/homeassistant/home-graph/issues"),
81
+ "homeassistant.homeGraph.map": OperatorRoute("POST", "/api/homeassistant/home-graph/map"),
82
+ "homeassistant.homeGraph.pages.list": OperatorRoute("GET", "/api/homeassistant/home-graph/pages"),
83
+ "homeassistant.homeGraph.refinement.run": OperatorRoute("POST", "/api/homeassistant/home-graph/refinement/run"),
84
+ "homeassistant.homeGraph.refinement.task.cancel": OperatorRoute("POST", "/api/homeassistant/home-graph/refinement/tasks/{id}/cancel"),
85
+ "homeassistant.homeGraph.refinement.task.get": OperatorRoute("GET", "/api/homeassistant/home-graph/refinement/tasks/{id}"),
86
+ "homeassistant.homeGraph.refinement.tasks.list": OperatorRoute("GET", "/api/homeassistant/home-graph/refinement/tasks"),
87
+ "homeassistant.homeGraph.refreshDevicePassport": OperatorRoute("POST", "/api/homeassistant/home-graph/device-passport"),
88
+ "homeassistant.homeGraph.reindex": OperatorRoute("POST", "/api/homeassistant/home-graph/reindex"),
89
+ "homeassistant.homeGraph.reset": OperatorRoute("POST", "/api/homeassistant/home-graph/reset"),
90
+ "homeassistant.homeGraph.reviewHomeGraphFact": OperatorRoute("POST", "/api/homeassistant/home-graph/facts/review"),
91
+ "homeassistant.homeGraph.sources.list": OperatorRoute("GET", "/api/homeassistant/home-graph/sources"),
92
+ "homeassistant.homeGraph.status": OperatorRoute("GET", "/api/homeassistant/home-graph/status"),
93
+ "homeassistant.homeGraph.syncHomeGraph": OperatorRoute("POST", "/api/homeassistant/home-graph/sync"),
94
+ "homeassistant.homeGraph.unlinkHomeGraphKnowledge": OperatorRoute("POST", "/api/homeassistant/home-graph/unlink"),
95
+ "tasks.cancel": OperatorRoute("POST", "/api/tasks/{taskId}/cancel"),
96
+ "tasks.get": OperatorRoute("GET", "/api/tasks/{taskId}"),
97
+ "tasks.status": OperatorRoute("GET", "/task/{agentId}"),
98
+ }
99
+
100
+
101
+ # channels.actions.invoke
102
+ class ChannelsActionsInvokeInput(TypedDict, total=True):
103
+ accountId: NotRequired[str]
104
+ metadata: NotRequired[Mapping[str, Any]]
105
+
106
+ class ChannelsActionsInvokeOutput(TypedDict, total=True):
107
+ actionId: str
108
+ surface: str
109
+ result: Mapping[str, Any]
110
+
111
+ # channels.agent_tools.surface.list
112
+ class ChannelsAgentToolsSurfaceListInput(TypedDict, total=True):
113
+ surface: str
114
+
115
+ class ChannelsAgentToolsSurfaceListOutput(TypedDict, total=True):
116
+ tools: list[Mapping[str, Any]]
117
+
118
+ # channels.tools.invoke
119
+ class ChannelsToolsInvokeInput(TypedDict, total=True):
120
+ accountId: NotRequired[str]
121
+ metadata: NotRequired[Mapping[str, Any]]
122
+
123
+ class ChannelsToolsInvokeOutput(TypedDict, total=True):
124
+ toolId: str
125
+ surface: str
126
+ result: Mapping[str, Any]
127
+
128
+ # channels.tools.surface.list
129
+ class ChannelsToolsSurfaceListInput(TypedDict, total=True):
130
+ surface: str
131
+
132
+ class ChannelsToolsSurfaceListOutput(TypedDict, total=True):
133
+ tools: list[Mapping[str, Any]]
134
+
135
+ # control.status
136
+ ControlStatusInput = Mapping[str, Any]
137
+
138
+ class ControlStatusOutput(TypedDict, total=True):
139
+ status: str
140
+ version: str
141
+
142
+ # homeassistant.homeGraph.askHomeGraph
143
+ class HomeassistantHomeGraphAskHomeGraphInput(TypedDict, total=True):
144
+ installationId: NotRequired[str]
145
+ knowledgeSpaceId: NotRequired[str]
146
+ query: str
147
+ limit: NotRequired[float]
148
+ mode: NotRequired[str]
149
+ includeSources: NotRequired[bool]
150
+ includeConfidence: NotRequired[bool]
151
+ includeLinkedObjects: NotRequired[bool]
152
+ timeoutMs: NotRequired[float]
153
+
154
+ class HomeassistantHomeGraphAskHomeGraphOutput(TypedDict, total=True):
155
+ ok: bool
156
+ spaceId: str
157
+ query: str
158
+ answer: Mapping[str, Any]
159
+ results: list[Any]
160
+
161
+ # homeassistant.homeGraph.browse
162
+ class HomeassistantHomeGraphBrowseInput(TypedDict, total=True):
163
+ installationId: NotRequired[str]
164
+ knowledgeSpaceId: NotRequired[str]
165
+ limit: NotRequired[float]
166
+
167
+ class HomeassistantHomeGraphBrowseOutput(TypedDict, total=True):
168
+ ok: bool
169
+ spaceId: str
170
+ nodes: list[Mapping[str, Any]]
171
+ edges: list[Mapping[str, Any]]
172
+ sources: list[Mapping[str, Any]]
173
+ issues: list[Mapping[str, Any]]
174
+
175
+ # homeassistant.homeGraph.export
176
+ class HomeassistantHomeGraphExportInput(TypedDict, total=True):
177
+ installationId: NotRequired[str]
178
+ knowledgeSpaceId: NotRequired[str]
179
+
180
+ class HomeassistantHomeGraphExportOutput(TypedDict, total=True):
181
+ version: float
182
+ exportedAt: float
183
+ spaceId: str
184
+ installationId: str
185
+ sources: list[Mapping[str, Any]]
186
+ nodes: list[Mapping[str, Any]]
187
+ edges: list[Mapping[str, Any]]
188
+ issues: list[Mapping[str, Any]]
189
+ extractions: list[Mapping[str, Any]]
190
+
191
+ # homeassistant.homeGraph.generateHomeGraphPacket
192
+ class HomeassistantHomeGraphGenerateHomeGraphPacketInput(TypedDict, total=True):
193
+ installationId: NotRequired[str]
194
+ knowledgeSpaceId: NotRequired[str]
195
+ packetKind: NotRequired[str]
196
+ title: NotRequired[str]
197
+ sharingProfile: NotRequired[str]
198
+ includeFields: NotRequired[list[str]]
199
+ excludeFields: NotRequired[list[str]]
200
+ metadata: NotRequired[Mapping[str, Any]]
201
+
202
+ class HomeassistantHomeGraphGenerateHomeGraphPacketOutput(TypedDict, total=True):
203
+ ok: bool
204
+ spaceId: str
205
+ title: str
206
+ markdown: str
207
+ source: NotRequired[Mapping[str, Any]]
208
+ linked: NotRequired[Mapping[str, Any]]
209
+ artifact: Mapping[str, Any]
210
+
211
+ # homeassistant.homeGraph.generateRoomPage
212
+ class HomeassistantHomeGraphGenerateRoomPageInput(TypedDict, total=True):
213
+ installationId: NotRequired[str]
214
+ knowledgeSpaceId: NotRequired[str]
215
+ areaId: NotRequired[str]
216
+ roomId: NotRequired[str]
217
+ title: NotRequired[str]
218
+ metadata: NotRequired[Mapping[str, Any]]
219
+
220
+ class HomeassistantHomeGraphGenerateRoomPageOutput(TypedDict, total=True):
221
+ ok: bool
222
+ spaceId: str
223
+ title: str
224
+ markdown: str
225
+ source: NotRequired[Mapping[str, Any]]
226
+ linked: NotRequired[Mapping[str, Any]]
227
+ artifact: Mapping[str, Any]
228
+
229
+ # homeassistant.homeGraph.import
230
+ class HomeassistantHomeGraphImportInput(TypedDict, total=True):
231
+ installationId: NotRequired[str]
232
+ knowledgeSpaceId: NotRequired[str]
233
+ data: Mapping[str, Any]
234
+
235
+ class HomeassistantHomeGraphImportOutput(TypedDict, total=True):
236
+ ok: bool
237
+ spaceId: str
238
+ imported: Mapping[str, Any]
239
+
240
+ # homeassistant.homeGraph.ingestHomeGraphArtifact
241
+ class HomeassistantHomeGraphIngestHomeGraphArtifactInput(TypedDict, total=True):
242
+ installationId: NotRequired[str]
243
+ knowledgeSpaceId: NotRequired[str]
244
+ artifactId: NotRequired[str]
245
+ path: NotRequired[str]
246
+ uri: NotRequired[str]
247
+ title: NotRequired[str]
248
+ tags: NotRequired[list[str]]
249
+ target: NotRequired[Mapping[str, Any]]
250
+ allowPrivateHosts: NotRequired[bool]
251
+ metadata: NotRequired[Mapping[str, Any]]
252
+
253
+ class HomeassistantHomeGraphIngestHomeGraphArtifactOutput(TypedDict, total=True):
254
+ ok: bool
255
+ spaceId: str
256
+ source: Mapping[str, Any]
257
+ artifactId: NotRequired[str]
258
+ extraction: NotRequired[Mapping[str, Any]]
259
+ linked: NotRequired[Mapping[str, Any]]
260
+
261
+ # homeassistant.homeGraph.ingestHomeGraphNote
262
+ class HomeassistantHomeGraphIngestHomeGraphNoteInput(TypedDict, total=True):
263
+ installationId: NotRequired[str]
264
+ knowledgeSpaceId: NotRequired[str]
265
+ title: NotRequired[str]
266
+ body: str
267
+ category: NotRequired[str]
268
+ tags: NotRequired[list[str]]
269
+ target: NotRequired[Mapping[str, Any]]
270
+ metadata: NotRequired[Mapping[str, Any]]
271
+
272
+ class HomeassistantHomeGraphIngestHomeGraphNoteOutput(TypedDict, total=True):
273
+ ok: bool
274
+ spaceId: str
275
+ source: Mapping[str, Any]
276
+ artifactId: NotRequired[str]
277
+ extraction: NotRequired[Mapping[str, Any]]
278
+ linked: NotRequired[Mapping[str, Any]]
279
+
280
+ # homeassistant.homeGraph.ingestHomeGraphUrl
281
+ class HomeassistantHomeGraphIngestHomeGraphUrlInput(TypedDict, total=True):
282
+ installationId: NotRequired[str]
283
+ knowledgeSpaceId: NotRequired[str]
284
+ url: str
285
+ title: NotRequired[str]
286
+ tags: NotRequired[list[str]]
287
+ target: NotRequired[Mapping[str, Any]]
288
+ allowPrivateHosts: NotRequired[bool]
289
+ metadata: NotRequired[Mapping[str, Any]]
290
+
291
+ class HomeassistantHomeGraphIngestHomeGraphUrlOutput(TypedDict, total=True):
292
+ ok: bool
293
+ spaceId: str
294
+ source: Mapping[str, Any]
295
+ artifactId: NotRequired[str]
296
+ extraction: NotRequired[Mapping[str, Any]]
297
+ linked: NotRequired[Mapping[str, Any]]
298
+
299
+ # homeassistant.homeGraph.linkHomeGraphKnowledge
300
+ class HomeassistantHomeGraphLinkHomeGraphKnowledgeInput(TypedDict, total=True):
301
+ installationId: NotRequired[str]
302
+ knowledgeSpaceId: NotRequired[str]
303
+ sourceId: NotRequired[str]
304
+ nodeId: NotRequired[str]
305
+ target: Mapping[str, Any]
306
+ relation: NotRequired[str]
307
+ metadata: NotRequired[Mapping[str, Any]]
308
+
309
+ class HomeassistantHomeGraphLinkHomeGraphKnowledgeOutput(TypedDict, total=True):
310
+ ok: bool
311
+ spaceId: str
312
+ edge: Mapping[str, Any]
313
+ target: NotRequired[Mapping[str, Any]]
314
+
315
+ # homeassistant.homeGraph.listHomeGraphIssues
316
+ class HomeassistantHomeGraphListHomeGraphIssuesInput(TypedDict, total=True):
317
+ installationId: NotRequired[str]
318
+ knowledgeSpaceId: NotRequired[str]
319
+ limit: NotRequired[float]
320
+ status: NotRequired[str]
321
+ severity: NotRequired[str]
322
+ code: NotRequired[str]
323
+
324
+ class HomeassistantHomeGraphListHomeGraphIssuesOutput(TypedDict, total=True):
325
+ ok: bool
326
+ spaceId: str
327
+ issues: list[Mapping[str, Any]]
328
+
329
+ # homeassistant.homeGraph.map
330
+ class HomeassistantHomeGraphMapInput(TypedDict, total=True):
331
+ installationId: NotRequired[str]
332
+ knowledgeSpaceId: NotRequired[str]
333
+ limit: NotRequired[float]
334
+ includeSources: NotRequired[bool]
335
+ includeIssues: NotRequired[bool]
336
+ includeGenerated: NotRequired[bool]
337
+ query: NotRequired[str]
338
+ recordKinds: NotRequired[list[str]]
339
+ ids: NotRequired[list[str]]
340
+ linkedToIds: NotRequired[list[str]]
341
+ nodeKinds: NotRequired[list[str]]
342
+ sourceTypes: NotRequired[list[str]]
343
+ sourceStatuses: NotRequired[list[str]]
344
+ nodeStatuses: NotRequired[list[str]]
345
+ issueCodes: NotRequired[list[str]]
346
+ issueStatuses: NotRequired[list[str]]
347
+ issueSeverities: NotRequired[list[str]]
348
+ edgeRelations: NotRequired[list[str]]
349
+ tags: NotRequired[list[str]]
350
+ minConfidence: NotRequired[float]
351
+ objectKinds: NotRequired[list[str]]
352
+ entityIds: NotRequired[list[str]]
353
+ deviceIds: NotRequired[list[str]]
354
+ areaIds: NotRequired[list[str]]
355
+ integrationIds: NotRequired[list[str]]
356
+ integrationDomains: NotRequired[list[str]]
357
+ domains: NotRequired[list[str]]
358
+ deviceClasses: NotRequired[list[str]]
359
+ labels: NotRequired[list[str]]
360
+ ha: NotRequired[Mapping[str, Any]]
361
+
362
+ class HomeassistantHomeGraphMapOutput(TypedDict, total=True):
363
+ ok: bool
364
+ spaceId: NotRequired[str]
365
+ title: str
366
+ generatedAt: float
367
+ width: float
368
+ height: float
369
+ nodeCount: float
370
+ edgeCount: float
371
+ totalNodeCount: NotRequired[float]
372
+ totalEdgeCount: NotRequired[float]
373
+ facets: NotRequired[Mapping[str, Any]]
374
+ nodes: list[Mapping[str, Any]]
375
+ edges: list[Mapping[str, Any]]
376
+ svg: str
377
+
378
+ # homeassistant.homeGraph.pages.list
379
+ class HomeassistantHomeGraphPagesListInput(TypedDict, total=True):
380
+ installationId: NotRequired[str]
381
+ knowledgeSpaceId: NotRequired[str]
382
+ limit: NotRequired[float]
383
+ includeMarkdown: NotRequired[bool]
384
+
385
+ class HomeassistantHomeGraphPagesListOutput(TypedDict, total=True):
386
+ ok: bool
387
+ spaceId: str
388
+ pages: list[Any]
389
+
390
+ # homeassistant.homeGraph.refinement.run
391
+ class HomeassistantHomeGraphRefinementRunInput(TypedDict, total=True):
392
+ installationId: NotRequired[str]
393
+ knowledgeSpaceId: NotRequired[str]
394
+ gapIds: NotRequired[list[str]]
395
+ sourceIds: NotRequired[list[str]]
396
+ limit: NotRequired[float]
397
+ maxRunMs: NotRequired[float]
398
+ force: NotRequired[bool]
399
+
400
+ class HomeassistantHomeGraphRefinementRunOutput(TypedDict, total=True):
401
+ ok: bool
402
+ spaceId: str
403
+ result: Mapping[str, Any]
404
+
405
+ # homeassistant.homeGraph.refinement.task.cancel
406
+ class HomeassistantHomeGraphRefinementTaskCancelInput(TypedDict, total=True):
407
+ installationId: NotRequired[str]
408
+ knowledgeSpaceId: NotRequired[str]
409
+ id: str
410
+
411
+ class HomeassistantHomeGraphRefinementTaskCancelOutput(TypedDict, total=True):
412
+ ok: bool
413
+ spaceId: str
414
+ task: Mapping[str, Any] | None
415
+
416
+ # homeassistant.homeGraph.refinement.task.get
417
+ class HomeassistantHomeGraphRefinementTaskGetInput(TypedDict, total=True):
418
+ installationId: NotRequired[str]
419
+ knowledgeSpaceId: NotRequired[str]
420
+ limit: NotRequired[float]
421
+ id: str
422
+
423
+ class HomeassistantHomeGraphRefinementTaskGetOutput(TypedDict, total=True):
424
+ ok: bool
425
+ spaceId: str
426
+ task: Mapping[str, Any] | None
427
+
428
+ # homeassistant.homeGraph.refinement.tasks.list
429
+ class HomeassistantHomeGraphRefinementTasksListInput(TypedDict, total=True):
430
+ installationId: NotRequired[str]
431
+ knowledgeSpaceId: NotRequired[str]
432
+ limit: NotRequired[float]
433
+ state: NotRequired[str]
434
+ subjectId: NotRequired[str]
435
+ gapId: NotRequired[str]
436
+
437
+ class HomeassistantHomeGraphRefinementTasksListOutput(TypedDict, total=True):
438
+ ok: bool
439
+ spaceId: str
440
+ tasks: list[Mapping[str, Any]]
441
+
442
+ # homeassistant.homeGraph.refreshDevicePassport
443
+ class HomeassistantHomeGraphRefreshDevicePassportInput(TypedDict, total=True):
444
+ installationId: NotRequired[str]
445
+ knowledgeSpaceId: NotRequired[str]
446
+ deviceId: str
447
+ metadata: NotRequired[Mapping[str, Any]]
448
+
449
+ class HomeassistantHomeGraphRefreshDevicePassportOutput(TypedDict, total=True):
450
+ ok: bool
451
+ spaceId: str
452
+ title: str
453
+ markdown: str
454
+ source: NotRequired[Mapping[str, Any]]
455
+ linked: NotRequired[Mapping[str, Any]]
456
+ artifact: Mapping[str, Any]
457
+
458
+ # homeassistant.homeGraph.reindex
459
+ class HomeassistantHomeGraphReindexInput(TypedDict, total=True):
460
+ installationId: NotRequired[str]
461
+ knowledgeSpaceId: NotRequired[str]
462
+ limit: NotRequired[float]
463
+ maxRunMs: NotRequired[float]
464
+ semanticLimit: NotRequired[float]
465
+ semanticMaxRunMs: NotRequired[float]
466
+ generatedPageLimit: NotRequired[float]
467
+ force: NotRequired[bool]
468
+ refreshPages: NotRequired[bool]
469
+
470
+ class HomeassistantHomeGraphReindexOutput(TypedDict, total=True):
471
+ ok: bool
472
+ spaceId: str
473
+ scanned: float
474
+ reparsed: float
475
+ skipped: float
476
+ failed: float
477
+ changedSourceCount: NotRequired[float]
478
+ forcedSourceCount: NotRequired[float]
479
+ skippedGeneratedPageArtifactCount: NotRequired[float]
480
+ refreshedGeneratedPageCount: NotRequired[float]
481
+ generatedPagePolicyVersion: NotRequired[str]
482
+ coalesced: NotRequired[bool]
483
+ truncated: NotRequired[bool]
484
+ budgetExhausted: NotRequired[bool]
485
+ sources: list[Mapping[str, Any]]
486
+ failures: list[Any]
487
+ linked: NotRequired[list[Any]]
488
+ semantic: NotRequired[Mapping[str, Any]]
489
+ generated: NotRequired[Mapping[str, Any]]
490
+
491
+ # homeassistant.homeGraph.reset
492
+ class HomeassistantHomeGraphResetInput(TypedDict, total=True):
493
+ installationId: NotRequired[str]
494
+ knowledgeSpaceId: NotRequired[str]
495
+ dryRun: NotRequired[bool]
496
+ preserveArtifacts: NotRequired[bool]
497
+
498
+ class HomeassistantHomeGraphResetOutput(TypedDict, total=True):
499
+ ok: bool
500
+ spaceId: str
501
+ installationId: str
502
+ dryRun: bool
503
+ deleted: Mapping[str, Any]
504
+ artifactDeleteCandidates: float
505
+ deletedArtifacts: float
506
+ preservedArtifacts: float
507
+ artifactsDeleted: bool
508
+
509
+ # homeassistant.homeGraph.reviewHomeGraphFact
510
+ class HomeassistantHomeGraphReviewHomeGraphFactInput(TypedDict, total=True):
511
+ installationId: NotRequired[str]
512
+ knowledgeSpaceId: NotRequired[str]
513
+ issueId: NotRequired[str]
514
+ nodeId: NotRequired[str]
515
+ sourceId: NotRequired[str]
516
+ action: str
517
+ value: NotRequired[Mapping[str, Any]]
518
+ reviewer: NotRequired[str]
519
+
520
+ class HomeassistantHomeGraphReviewHomeGraphFactOutput(TypedDict, total=True):
521
+ ok: bool
522
+ spaceId: str
523
+ issue: NotRequired[Mapping[str, Any]]
524
+ node: NotRequired[Mapping[str, Any]]
525
+ source: NotRequired[Mapping[str, Any]]
526
+
527
+ # homeassistant.homeGraph.sources.list
528
+ class HomeassistantHomeGraphSourcesListInput(TypedDict, total=True):
529
+ installationId: NotRequired[str]
530
+ knowledgeSpaceId: NotRequired[str]
531
+ limit: NotRequired[float]
532
+
533
+ class HomeassistantHomeGraphSourcesListOutput(TypedDict, total=True):
534
+ ok: bool
535
+ spaceId: str
536
+ sources: list[Mapping[str, Any]]
537
+
538
+ # homeassistant.homeGraph.status
539
+ class HomeassistantHomeGraphStatusInput(TypedDict, total=True):
540
+ installationId: NotRequired[str]
541
+ knowledgeSpaceId: NotRequired[str]
542
+
543
+ class HomeassistantHomeGraphStatusOutput(TypedDict, total=True):
544
+ ok: bool
545
+ spaceId: str
546
+ installationId: str
547
+ sourceCount: float
548
+ nodeCount: float
549
+ edgeCount: float
550
+ issueCount: float
551
+ extractionCount: float
552
+ lastSnapshotAt: NotRequired[float]
553
+ readiness: NotRequired[Mapping[str, Any]]
554
+ capabilities: list[str]
555
+
556
+ # homeassistant.homeGraph.syncHomeGraph
557
+ class HomeassistantHomeGraphSyncHomeGraphInput(TypedDict, total=True):
558
+ installationId: NotRequired[str]
559
+ knowledgeSpaceId: NotRequired[str]
560
+ homeId: NotRequired[str]
561
+ title: NotRequired[str]
562
+ capturedAt: NotRequired[float]
563
+ entities: NotRequired[list[Any]]
564
+ devices: NotRequired[list[Any]]
565
+ areas: NotRequired[list[Any]]
566
+ automations: NotRequired[list[Any]]
567
+ scripts: NotRequired[list[Any]]
568
+ scenes: NotRequired[list[Any]]
569
+ labels: NotRequired[list[Any]]
570
+ integrations: NotRequired[list[Any]]
571
+ helpers: NotRequired[list[Any]]
572
+ pageAutomation: NotRequired[Mapping[str, Any]]
573
+ metadata: NotRequired[Mapping[str, Any]]
574
+
575
+ class HomeassistantHomeGraphSyncHomeGraphOutput(TypedDict, total=True):
576
+ ok: bool
577
+ spaceId: str
578
+ installationId: str
579
+ source: Mapping[str, Any]
580
+ home: Mapping[str, Any]
581
+ created: Mapping[str, Any]
582
+ generated: Mapping[str, Any]
583
+ counts: Mapping[str, Any]
584
+
585
+ # homeassistant.homeGraph.unlinkHomeGraphKnowledge
586
+ class HomeassistantHomeGraphUnlinkHomeGraphKnowledgeInput(TypedDict, total=True):
587
+ installationId: NotRequired[str]
588
+ knowledgeSpaceId: NotRequired[str]
589
+ sourceId: NotRequired[str]
590
+ nodeId: NotRequired[str]
591
+ target: Mapping[str, Any]
592
+ relation: NotRequired[str]
593
+ metadata: NotRequired[Mapping[str, Any]]
594
+
595
+ class HomeassistantHomeGraphUnlinkHomeGraphKnowledgeOutput(TypedDict, total=True):
596
+ ok: bool
597
+ spaceId: str
598
+ edge: Mapping[str, Any]
599
+ target: NotRequired[Mapping[str, Any]]
600
+
601
+ # tasks.cancel
602
+ class TasksCancelInput(TypedDict, total=True):
603
+ taskId: str
604
+
605
+ class TasksCancelOutput(TypedDict, total=True):
606
+ retried: NotRequired[bool]
607
+ task: Mapping[str, Any]
608
+ agentId: NotRequired[str]
609
+
610
+ # tasks.get
611
+ class TasksGetInput(TypedDict, total=True):
612
+ taskId: str
613
+
614
+ class TasksGetOutput(TypedDict, total=True):
615
+ task: Mapping[str, Any]
616
+
617
+ # tasks.status
618
+ class TasksStatusInput(TypedDict, total=True):
619
+ agentId: str
620
+
621
+ class TasksStatusOutput(TypedDict, total=True):
622
+ agentId: str
623
+ task: str
624
+ status: str
625
+ model: str | None
626
+ tools: list[str]
627
+ durationMs: float
628
+ toolCallCount: float
629
+ progress: str | None
630
+ error: str | None
@@ -1 +1 @@
1
- {"version":3,"file":"core-verbs.d.ts","sourceRoot":"","sources":["../src/core-verbs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,2MAyBb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAEjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,uCAAwC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAoGrE,CAAC;AAEX,kFAAkF;AAClF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,CAE5C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC7E;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGnD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAcjE"}
1
+ {"version":3,"file":"core-verbs.d.ts","sourceRoot":"","sources":["../src/core-verbs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,2MAyBb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC;AAEjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,uCAAwC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAErD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAqJrE,CAAC;AAEX,kFAAkF;AAClF,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,CAE5C,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAC1B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GAC7E;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7D,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGnD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,CAcjE"}