@camstack/addon-provider-homematic 1.2.140 → 1.2.142

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 (3) hide show
  1. package/dist/addon.js +496 -141
  2. package/dist/addon.mjs +496 -141
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -5557,7 +5557,7 @@ var ZodIssueCode = {
5557
5557
  var ZodFirstPartyTypeKind;
5558
5558
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5559
5559
  //#endregion
5560
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5560
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5561
5561
  /**
5562
5562
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5563
5563
  * window to float samples (D455).
@@ -7940,9 +7940,9 @@ function normalizeAddonInitResult(result) {
7940
7940
  return result;
7941
7941
  }
7942
7942
  /**
7943
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7944
- * and validates them (`share-token.service.ts` builds its enum from this
7945
- * list); a data plane names the kinds it ACCEPTS in `share`.
7943
+ * The share-view scope kinds a share-link token can carry. The hub mints
7944
+ * and validates them (`ShareViewGrantSchema` builds its
7945
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7946
7946
  */
7947
7947
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7948
7948
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12832,7 +12832,7 @@ var ConvertResultSchema = object({
12832
12832
  * `super_admin` — collapsed onto the single boolean because every
12833
12833
  * non-admin caller is governed by the same scope-check rules; the
12834
12834
  * distinction was only ever used to route role-specific procedures
12835
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12835
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12836
12836
  * with `isAdmin: false` + an explicit scope list.
12837
12837
  */
12838
12838
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -13021,10 +13021,12 @@ var AddonRoutesScopeSchema = object({
13021
13021
  type: literal("addon-routes"),
13022
13022
  access: array(MethodAccessSchema).min(1)
13023
13023
  });
13024
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
13024
13025
  var CredentialScopeSchema = union([
13025
13026
  literal("*"),
13026
13027
  ShareViewScopeSchema,
13027
13028
  AddonRoutesScopeSchema,
13029
+ PreferencesSelfScopeSchema,
13028
13030
  TokenScopeSchema
13029
13031
  ]);
13030
13032
  object({
@@ -13033,6 +13035,55 @@ object({
13033
13035
  jti: string().min(16),
13034
13036
  scopes: array(CredentialScopeSchema).min(1)
13035
13037
  });
13038
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
13039
+ /** A namespace's value: a JSON object, opaque to the hub. */
13040
+ var PreferenceValueSchema = record(string(), unknown());
13041
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
13042
+ /** A stored row, as the owner reads it. */
13043
+ var PreferenceRowSchema = object({
13044
+ namespace: PreferenceNamespaceSchema,
13045
+ value: PreferenceValueSchema,
13046
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
13047
+ revision: number().int().positive(),
13048
+ updatedAt: number().int(),
13049
+ /** The client id the last writer sent; `null` when it sent none. */
13050
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
13051
+ });
13052
+ object({
13053
+ /** Absent: every namespace the caller holds. */
13054
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
13055
+ object({ rows: array(PreferenceRowSchema) });
13056
+ object({
13057
+ namespace: PreferenceNamespaceSchema,
13058
+ value: PreferenceValueSchema,
13059
+ /**
13060
+ * The revision the edit was based on. Absent: last write wins. `0`: the
13061
+ * namespace must not exist yet. Any other value that is not the current
13062
+ * revision answers `conflict` and writes nothing.
13063
+ */
13064
+ baseRevision: number().int().nonnegative().optional(),
13065
+ deviceId: PreferenceDeviceIdSchema.optional()
13066
+ });
13067
+ discriminatedUnion("status", [object({
13068
+ status: literal("saved"),
13069
+ row: PreferenceRowSchema
13070
+ }), object({
13071
+ status: literal("conflict"),
13072
+ current: PreferenceRowSchema.nullable()
13073
+ })]);
13074
+ object({ namespace: PreferenceNamespaceSchema });
13075
+ object({
13076
+ /** `false` when the namespace did not exist. */
13077
+ deleted: boolean() });
13078
+ object({
13079
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
13080
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
13081
+ object({
13082
+ /** Every row whose revision differs from the client's, and every row it did not list. */
13083
+ rows: array(PreferenceRowSchema),
13084
+ /** Namespaces the client listed that no longer exist. */
13085
+ deleted: array(PreferenceNamespaceSchema)
13086
+ });
13036
13087
  _enum(["new-session", "step-up"]);
13037
13088
  /** The languages the hub's app landing pages are written in (D858). */
13038
13089
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17335,7 +17386,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17335
17386
  kind: literal("node"),
17336
17387
  nodeId: string().min(1)
17337
17388
  })]);
17389
+ /**
17390
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17391
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17392
+ * meaning); a rollup keeps the time spent in each state (`states`).
17393
+ */
17338
17394
  var DeviceHistoryKindSchema = _enum([
17395
+ "gauge",
17396
+ "counter",
17397
+ "boolean",
17398
+ "enum"
17399
+ ]);
17400
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17401
+ var DeviceHistoryProducerKindSchema = _enum([
17339
17402
  "gauge",
17340
17403
  "counter",
17341
17404
  "boolean"
@@ -17372,7 +17435,13 @@ var SeriesInfoSchema = object({
17372
17435
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17373
17436
  unit: string().nullable(),
17374
17437
  displayName: string(),
17375
- source: _enum(["cap", "addon"]),
17438
+ source: _enum([
17439
+ "cap",
17440
+ "addon",
17441
+ "derived"
17442
+ ]),
17443
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17444
+ values: array(string()).readonly().nullable(),
17376
17445
  firstTs: number(),
17377
17446
  lastTs: number()
17378
17447
  });
@@ -17386,17 +17455,31 @@ var QueryPointSchema = object({
17386
17455
  twMean: number().nullable(),
17387
17456
  min: number(),
17388
17457
  max: number(),
17389
- /** `null` is unknown, never zero (D393). */
17390
- last: number().nullable()
17458
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17459
+ last: number().nullable(),
17460
+ /**
17461
+ * The increase over the point: a `counter`'s growth since the previous point
17462
+ * or bucket (a drop is a reset, counted from zero), and for
17463
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17464
+ * every other kind, and when it cannot be known.
17465
+ */
17466
+ delta: number().nullable(),
17467
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17468
+ state: string().nullable(),
17469
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17470
+ states: record(string(), number()).nullable()
17391
17471
  });
17392
17472
  var QuerySeriesSchema = object({
17393
17473
  scope: string(),
17394
17474
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17395
17475
  before: object({
17396
17476
  t: number(),
17397
- value: number().nullable()
17477
+ value: number().nullable(),
17478
+ state: string().nullable()
17398
17479
  }).nullable(),
17399
- points: array(QueryPointSchema).readonly()
17480
+ points: array(QueryPointSchema).readonly(),
17481
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17482
+ derivedFrom: string().nullable()
17400
17483
  });
17401
17484
  /** The window part of a query, shared by the device and node forms. */
17402
17485
  var QueryWindowShape = {
@@ -17412,6 +17495,23 @@ var QueryResultSchema = object({
17412
17495
  series: array(QuerySeriesSchema).readonly(),
17413
17496
  truncated: boolean()
17414
17497
  });
17498
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17499
+ var QueryManyItemSchema = union([object({
17500
+ deviceId: number().int(),
17501
+ key: string(),
17502
+ scope: string().optional()
17503
+ }), object({
17504
+ forNodeId: string().min(1),
17505
+ key: string(),
17506
+ scope: string().optional()
17507
+ })]);
17508
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17509
+ ok: literal(true),
17510
+ result: QueryResultSchema
17511
+ }), object({
17512
+ ok: literal(false),
17513
+ error: string()
17514
+ })]);
17415
17515
  var TierStatusSchema = object({
17416
17516
  tier: DeviceHistoryResolutionSchema,
17417
17517
  /** `null` until the first background count answered. */
@@ -17467,16 +17567,22 @@ var DeviceHistoryStatusSchema = object({
17467
17567
  lastRefreshAt: number().nullable()
17468
17568
  })
17469
17569
  });
17470
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17570
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17471
17571
  deviceId: number().int(),
17472
17572
  ...QueryWindowShape
17473
17573
  }), QueryResultSchema), method(object({
17474
- nodeId: string().min(1),
17574
+ forNodeId: string().min(1),
17475
17575
  ...QueryWindowShape
17476
17576
  }), QueryResultSchema, { auth: "admin" }), method(object({
17577
+ items: array(QueryManyItemSchema).min(1).max(24),
17578
+ from: QueryWindowShape.from,
17579
+ to: QueryWindowShape.to,
17580
+ resolution: QueryWindowShape.resolution,
17581
+ maxPoints: QueryWindowShape.maxPoints
17582
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17477
17583
  name: string().regex(/^[a-z0-9-]+$/),
17478
17584
  subjectKind: _enum(["device", "node"]),
17479
- kind: DeviceHistoryKindSchema,
17585
+ kind: DeviceHistoryProducerKindSchema,
17480
17586
  unit: string().optional(),
17481
17587
  displayName: string().min(1),
17482
17588
  ingest: _enum(["points", "buckets"])
@@ -40388,38 +40494,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40388
40494
  auth: "admin",
40389
40495
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40390
40496
  });
40497
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40498
+ /** What a model (or, by default, every model of a kind) can do. */
40499
+ var LlmModelFeaturesSchema = object({
40500
+ vision: boolean(),
40501
+ tools: boolean(),
40502
+ streaming: boolean()
40503
+ });
40504
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40505
+ var LlmModelInfoSchema = object({
40506
+ id: string(),
40507
+ label: string().optional(),
40508
+ contextLength: number().int().positive().optional(),
40509
+ features: LlmModelFeaturesSchema.partial().optional()
40510
+ });
40391
40511
  /**
40392
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40393
- * methods concat-fan across providers; single-row methods route to ONE
40394
- * provider by the `addonId` in the call input (the notification-output
40395
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40396
- * (hub-placed); the cap stays open for future providers.
40397
- *
40398
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40399
- * `apiKey` is a password field — providers REDACT it on read and merge on
40400
- * write; a stored key NEVER round-trips to a client.
40512
+ * The provider-specific part of a profile, validated by the provider that owns
40513
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40514
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40515
+ * keychain, never in the row, and reads back as the redaction marker.
40401
40516
  */
40402
- var LlmProfileKindSchema = _enum([
40403
- "openai-compatible",
40404
- "openai",
40405
- "anthropic",
40406
- "google",
40407
- "managed-local",
40408
- "apple-foundation"
40409
- ]);
40517
+ var LlmProviderConfigSchema = record(string(), unknown());
40410
40518
  var LlmProfileSchema = object({
40411
40519
  id: string(),
40412
40520
  name: string(),
40521
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
40413
40522
  kind: LlmProfileKindSchema,
40414
40523
  /** Stamped by the provider — keeps the fanned catalog routable. */
40415
40524
  addonId: string(),
40416
40525
  enabled: boolean(),
40417
40526
  /** Vendor model id, or the managed runtime's loaded model. */
40418
40527
  model: string(),
40419
- /** Required for openai-compatible; override for cloud kinds. */
40420
- baseUrl: string().optional(),
40421
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
40422
- apiKey: string().optional(),
40423
40528
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
40424
40529
  * degraded to text — that shipped once and produced a confident answer to a
40425
40530
  * question about a picture nobody sent. */
@@ -40427,15 +40532,11 @@ var LlmProfileSchema = object({
40427
40532
  temperature: number().min(0).max(2).optional(),
40428
40533
  /** Nucleus sampling. Every wire we speak has it. */
40429
40534
  topP: number().min(0).max(1).optional(),
40430
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
40431
- * wire does, and the client drops it there (measured: the request body gets
40432
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
40433
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40535
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40536
+ * field in its editor only when its descriptor lists it in `profileFields`. */
40434
40537
  topK: number().int().positive().optional(),
40435
40538
  maxTokens: number().int().positive().optional(),
40436
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
40437
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
40438
- * the model with, so it is the one field that changes a PROCESS. */
40539
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
40439
40540
  contextLength: number().int().positive().optional(),
40440
40541
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
40441
40542
  * two system prompts fighting is worse than either alone). */
@@ -40461,16 +40562,37 @@ var LlmProfileSchema = object({
40461
40562
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40462
40563
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40463
40564
  toolsEnabled: boolean().default(false),
40464
- extraHeaders: record(string(), string()).optional(),
40465
- /** kind === 'managed-local' only (spec §4). */
40466
- runtime: ManagedRuntimeConfigSchema.optional(),
40467
- /**
40468
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40469
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40470
- * `supportsVision` on such a row is stamped by the provider from the node's
40471
- * reported `imageInput`, never taken from the operator (D62).
40472
- */
40473
- appleFoundation: object({ nodeId: string() }).optional()
40565
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40566
+ providerConfig: LlmProviderConfigSchema.default({})
40567
+ });
40568
+ /**
40569
+ * The common profile fields a kind's editor offers. The editor owns how each
40570
+ * one is drawn; the provider says which of them mean something on its wire.
40571
+ */
40572
+ var LlmProfileFieldSchema = _enum([
40573
+ "temperature",
40574
+ "topP",
40575
+ "topK",
40576
+ "maxTokens",
40577
+ "contextLength",
40578
+ "systemPrompt",
40579
+ "timeoutMs",
40580
+ "connectTimeoutMs",
40581
+ "firstTokenTimeoutMs",
40582
+ "idleTimeoutMs",
40583
+ "retry",
40584
+ "toolsEnabled"
40585
+ ]);
40586
+ /**
40587
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40588
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40589
+ * picker: that widget owns the model choice.
40590
+ */
40591
+ var LlmProviderWidgetSchema = object({
40592
+ id: string(),
40593
+ placement: _enum(["connection", "model"]),
40594
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40595
+ requires: array(string()).optional()
40474
40596
  });
40475
40597
  /** ConfigUISchema tree passed through untyped on the wire (the
40476
40598
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40479,11 +40601,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40479
40601
  var LlmProfileKindDescriptorSchema = object({
40480
40602
  kind: LlmProfileKindSchema,
40481
40603
  label: string(),
40604
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40482
40605
  icon: string(),
40483
40606
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40484
40607
  addonId: string(),
40485
- configSchema: ConfigSchemaPassthrough$3
40608
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40609
+ connectionSchema: ConfigSchemaPassthrough$3,
40610
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40611
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40612
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40613
+ features: LlmModelFeaturesSchema,
40614
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40615
+ visionEditable: boolean(),
40616
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40617
+ modelCatalog: _enum([
40618
+ "fetch",
40619
+ "static",
40620
+ "none"
40621
+ ]),
40622
+ staticModels: array(LlmModelInfoSchema).optional(),
40623
+ /** The common fields that mean something on this kind's wire. */
40624
+ profileFields: array(LlmProfileFieldSchema),
40625
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40486
40626
  });
40627
+ /**
40628
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40629
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40630
+ * untouched (absent or the redaction marker) is resolved server-side from the
40631
+ * stored profile — the browser never receives it.
40632
+ */
40633
+ var LlmListModelsInputSchema = object({
40634
+ addonId: string(),
40635
+ kind: LlmProfileKindSchema,
40636
+ profileId: string().optional(),
40637
+ connection: LlmProviderConfigSchema.optional()
40638
+ });
40639
+ var LlmListModelsErrorCodeSchema = _enum([
40640
+ "auth",
40641
+ "network",
40642
+ "unsupported",
40643
+ "invalid"
40644
+ ]);
40645
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40646
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40647
+ ok: literal(true),
40648
+ models: array(LlmModelInfoSchema)
40649
+ }), object({
40650
+ ok: literal(false),
40651
+ code: LlmListModelsErrorCodeSchema,
40652
+ message: string()
40653
+ })]);
40487
40654
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40488
40655
  var LlmDefaultSchema = object({
40489
40656
  selector: LlmDefaultSelectorSchema,
@@ -40583,7 +40750,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40583
40750
  kind: "mutation",
40584
40751
  auth: "admin",
40585
40752
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40586
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40753
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40754
+ kind: "mutation",
40755
+ auth: "admin"
40756
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40587
40757
  selector: LlmDefaultSelectorSchema,
40588
40758
  profileId: string().nullable()
40589
40759
  }), _void(), {
@@ -40751,14 +40921,106 @@ var LogEntrySchema = object({
40751
40921
  meta: record(string(), unknown()).optional(),
40752
40922
  tags: record(string(), string()).optional()
40753
40923
  });
40754
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40755
- scope: array(string()).optional(),
40924
+ /**
40925
+ * A history READ against one destination (D898).
40926
+ *
40927
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40928
+ * browser applied after the limit is what made a rare device's lines
40929
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40930
+ * minted (opaque to everyone else): a file position for the rotated files, a
40931
+ * nanosecond timestamp for Loki.
40932
+ *
40933
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40934
+ * store answers `done: false` with the cursor it reached and the bytes it
40935
+ * scanned, and the caller decides whether to go on. That is what makes a long
40936
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40937
+ * flight, and not asking for the next slice ends the scan.
40938
+ */
40939
+ var LogReadQuerySchema = object({
40940
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40941
+ requestId: string().min(1).max(64).optional(),
40942
+ /** The device the line is about (`tags.deviceId`, numeric). */
40943
+ deviceId: number().int().optional(),
40944
+ /**
40945
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40946
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40947
+ */
40948
+ fromAddonId: string().min(1).max(200).optional(),
40949
+ /**
40950
+ * The emitting node: matches the agent that emitted the line, the node
40951
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40952
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40953
+ * name as "which node's provider".
40954
+ */
40955
+ fromNodeId: string().min(1).max(200).optional(),
40956
+ /** Any other tag, exact match (AND). */
40957
+ tags: record(string(), union([string(), number()])).optional(),
40958
+ /** Severity FLOOR: this level and above. */
40756
40959
  level: LogLevelSchema.optional(),
40757
- since: date().optional(),
40758
- until: date().optional(),
40759
- limit: number().optional(),
40760
- tags: record(string(), string()).optional()
40761
- }), array(LogEntrySchema).readonly());
40960
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40961
+ text: string().min(1).max(200).optional(),
40962
+ /** Epoch ms, inclusive. */
40963
+ since: number().optional(),
40964
+ /** Epoch ms, inclusive. */
40965
+ until: number().optional(),
40966
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40967
+ before: string().min(1).max(1024).optional(),
40968
+ /** Newer than this cursor (exclusive). */
40969
+ after: string().min(1).max(1024).optional(),
40970
+ limit: number().int().min(1).max(1e3).optional(),
40971
+ /** Wall-clock bound of this slice. The provider caps it. */
40972
+ budgetMs: number().int().min(50).max(1e4).optional()
40973
+ });
40974
+ var LogReadResultSchema = object({
40975
+ /** Newest first. */
40976
+ entries: array(object({
40977
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40978
+ id: string().optional(),
40979
+ /** Epoch ms. */
40980
+ timestamp: number(),
40981
+ level: LogLevelSchema,
40982
+ scope: string().optional(),
40983
+ message: string(),
40984
+ tags: record(string(), union([string(), number()])).optional(),
40985
+ meta: record(string(), unknown()).optional()
40986
+ })),
40987
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40988
+ nextBefore: string().nullable(),
40989
+ /** Pass as `after` to read what arrived since; null when unknown. */
40990
+ nextAfter: string().nullable(),
40991
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40992
+ scannedBytes: number().int().nonnegative(),
40993
+ /**
40994
+ * True when the scan in this direction reached the end of the store.
40995
+ * False with fewer than `limit` entries means the budget ran out first —
40996
+ * call again with `nextBefore` to go on.
40997
+ */
40998
+ done: boolean(),
40999
+ /** True when `cancelRead` ended this slice early. */
41000
+ cancelled: boolean().optional()
41001
+ });
41002
+ var LogReadCapabilitiesSchema = object({
41003
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41004
+ readable: boolean(),
41005
+ /** Why not, when `readable` is false — rendered next to the source. */
41006
+ reason: string().nullable(),
41007
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41008
+ filters: object({
41009
+ deviceId: boolean(),
41010
+ addonId: boolean(),
41011
+ nodeId: boolean(),
41012
+ tags: boolean(),
41013
+ level: boolean(),
41014
+ text: boolean(),
41015
+ timeRange: boolean()
41016
+ }),
41017
+ /** How far back the store reaches, when the provider knows (days). */
41018
+ retentionDays: number().nullable()
41019
+ });
41020
+ method(LogEntrySchema, _void(), { kind: "mutation" }), optionalMethod(_void(), LogReadCapabilitiesSchema, { auth: "admin" }), optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }), optionalMethod(object({ requestId: string().min(1).max(64) }), object({ cancelled: boolean() }), {
41021
+ kind: "mutation",
41022
+ auth: "admin"
41023
+ });
40762
41024
  /**
40763
41025
  * `login-method` — collection cap through which auth addons contribute
40764
41026
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42476,9 +42738,11 @@ var alarmPanelCapability = {
42476
42738
  */
42477
42739
  durability: "restored",
42478
42740
  /**
42479
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42741
+ * History (D850): the panel's lifecycle state as an `enum` series —
42742
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42743
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42480
42744
  */
42481
- history: "none",
42745
+ history: { fields: { state: { kind: "enum" } } },
42482
42746
  /** Clock fields: written, but excluded from the compare that decides
42483
42747
  * whether persisting is worth a SQLite commit. */
42484
42748
  volatileStateFields: ["lastChangedAt"]
@@ -43356,6 +43620,33 @@ var NcRuleTargetSchema = object({
43356
43620
  params: record(string(), unknown()).optional()
43357
43621
  });
43358
43622
  /**
43623
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43624
+ *
43625
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43626
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43627
+ * to the zone that fired the rule) and renders it once at send time:
43628
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43629
+ * colour and every OTHER track visible at that instant outlined thin, each
43630
+ * labelled with class and confidence ("dog 87%").
43631
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43632
+ * - `clean` — the whole scene with nothing drawn on it.
43633
+ * - `none` — no picture.
43634
+ *
43635
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43636
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43637
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43638
+ * ship a crop on one event and a boxed scene on the next depending on which
43639
+ * stored kind had landed.
43640
+ */
43641
+ var NcMediaImageSchema = _enum([
43642
+ "scene-boxes",
43643
+ "crop",
43644
+ "clean",
43645
+ "none"
43646
+ ]);
43647
+ /**
43648
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43649
+ *
43359
43650
  * Media attachment policy (P1 still-image subset).
43360
43651
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43361
43652
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43369,6 +43660,8 @@ var NcRuleTargetSchema = object({
43369
43660
  * - `none` — no attachment.
43370
43661
  */
43371
43662
  /**
43663
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43664
+ *
43372
43665
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43373
43666
  * conflate it with the selection strategy and betray the request: asking for
43374
43667
  * the clean scene frame on an object-event owner used to start at
@@ -43397,16 +43690,29 @@ var NcMediaFrameSchema = _enum([
43397
43690
  */
43398
43691
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43399
43692
  var NcMediaPolicySchema = object({
43693
+ /**
43694
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43695
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43696
+ * triple below, at load and at every write, and the store keeps only this.
43697
+ */
43698
+ image: NcMediaImageSchema.optional(),
43699
+ /**
43700
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43701
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43702
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43703
+ * Replaces `zoneCrop`.
43704
+ */
43705
+ showTriggerZone: boolean().optional(),
43706
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43400
43707
  attach: _enum([
43401
43708
  "best",
43402
43709
  "best-matching",
43403
43710
  "keyFrame",
43404
43711
  "none"
43405
- ]).default("best"),
43406
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43712
+ ]).optional(),
43713
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43407
43714
  frame: NcMediaFrameSchema.optional(),
43408
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43409
- * "show me the ZONE", not the whole scene or the subject crop. */
43715
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43410
43716
  zoneCrop: boolean().optional(),
43411
43717
  /**
43412
43718
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43578,7 +43884,9 @@ var NcRuleInputSchema = object({
43578
43884
  * targets.
43579
43885
  */
43580
43886
  targetUsers: array(string()).optional(),
43581
- media: NcMediaPolicySchema.default({ attach: "best" }),
43887
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43888
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43889
+ media: NcMediaPolicySchema.default({}),
43582
43890
  throttle: NcThrottleSchema.default({
43583
43891
  cooldownSec: 60,
43584
43892
  scope: "rule-device"
@@ -44515,13 +44823,37 @@ var NcAlarmModeOpeningsSchema = object({
44515
44823
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44516
44824
  unknown: array(number().int())
44517
44825
  });
44826
+ /**
44827
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44828
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44829
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44830
+ * never looks fully armed (D62: off must never look like broken).
44831
+ */
44832
+ var NcAlarmInputBypassViewSchema = object({
44833
+ ruleId: string(),
44834
+ /** The rule's current name (its frozen name when the rule is gone). */
44835
+ ruleName: string(),
44836
+ /** The input: the sensor of the match, else its camera. */
44837
+ deviceId: number().int(),
44838
+ /** The input's current name. */
44839
+ name: string(),
44840
+ /** When it was bypassed (ms epoch). */
44841
+ since: number(),
44842
+ /** Triggers from this input dropped since. */
44843
+ dropped: number().int().min(0)
44844
+ });
44518
44845
  var NcAlarmLiveSchema = object({
44519
44846
  state: AlarmStateSchema,
44520
44847
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44521
44848
  targetMode: AlarmArmModeSchema.nullable(),
44522
44849
  availableModes: array(AlarmArmModeSchema),
44523
44850
  openings: array(NcAlarmModeOpeningsSchema),
44524
- exclusions: array(NcAlarmExclusionViewSchema)
44851
+ exclusions: array(NcAlarmExclusionViewSchema),
44852
+ /**
44853
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44854
+ * Defaulted so an older hub answer still parses (as "none known").
44855
+ */
44856
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44525
44857
  });
44526
44858
  var NcAlarmConfigSchema = object({
44527
44859
  /**
@@ -55240,9 +55572,11 @@ var connectivityCapability = {
55240
55572
  */
55241
55573
  durability: "restored",
55242
55574
  /**
55243
- * History (D850): none — duplicates device-status.online (one authority for availability).
55575
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55576
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55577
+ * device's reachability, which stays `device-status.online`.
55244
55578
  */
55245
- history: "none",
55579
+ history: { fields: { connected: { kind: "boolean" } } },
55246
55580
  /** Clock fields: written, but excluded from the compare that decides
55247
55581
  * whether persisting is worth a SQLite commit. */
55248
55582
  volatileStateFields: ["lastChangedAt"]
@@ -56066,11 +56400,22 @@ var dishwasherCapability = {
56066
56400
  },
56067
56401
  runtimeState: DishwasherStatusSchema,
56068
56402
  durability: "session",
56069
- history: { fields: { progressPercent: {
56070
- kind: "gauge",
56071
- unit: "%",
56072
- deadband: 2
56073
- } } }
56403
+ history: { fields: {
56404
+ progressPercent: {
56405
+ kind: "gauge",
56406
+ unit: "%",
56407
+ deadband: 2
56408
+ },
56409
+ state: { kind: "enum" },
56410
+ operationState: { kind: "enum" },
56411
+ remainingSeconds: {
56412
+ kind: "gauge",
56413
+ unit: "s",
56414
+ minIntervalMs: 6e4
56415
+ },
56416
+ doorOpen: { kind: "boolean" },
56417
+ powerOn: { kind: "boolean" }
56418
+ } }
56074
56419
  };
56075
56420
  var DoorbellStatusSchema = object({
56076
56421
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56187,9 +56532,15 @@ var enumSensorCapability = {
56187
56532
  */
56188
56533
  durability: "restored",
56189
56534
  /**
56190
- * History (D850): none — text/enum state has no history (non-goal).
56535
+ * History (D850): the value as an `enum` series (an appliance's program or
56536
+ * operation state, an HVAC action). The option set is per device, so the
56537
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56538
+ * `format` carries a timestamp, not a state, and is not recorded.
56191
56539
  */
56192
- history: "none",
56540
+ history: { fields: { value: {
56541
+ kind: "enum",
56542
+ skipWhenSet: "format"
56543
+ } } },
56193
56544
  /** Clock fields: written, but excluded from the compare that decides
56194
56545
  * whether persisting is worth a SQLite commit. */
56195
56546
  volatileStateFields: ["lastFetchedAt"]
@@ -58163,9 +58514,10 @@ var lockControlCapability = {
58163
58514
  */
58164
58515
  durability: "restored",
58165
58516
  /**
58166
- * History (D850): none — enum state; lock events belong in the events ledger.
58517
+ * History (D850): the lock's state as an `enum` series — change-only, no
58518
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58167
58519
  */
58168
- history: "none",
58520
+ history: { fields: { state: { kind: "enum" } } },
58169
58521
  /** Clock fields: written, but excluded from the compare that decides
58170
58522
  * whether persisting is worth a SQLite commit. */
58171
58523
  volatileStateFields: ["lastChangedAt"]
@@ -58339,9 +58691,18 @@ var mediaPlayerCapability = {
58339
58691
  */
58340
58692
  durability: "session",
58341
58693
  /**
58342
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58694
+ * History (D850): volume (a level an operator or an automation sets; the
58695
+ * default 10 s floor folds a slider drag into its end value) and mute.
58696
+ * `positionMs` is not recorded: it moves continuously while playing.
58343
58697
  */
58344
- history: "none"
58698
+ history: { fields: {
58699
+ volumeLevel: {
58700
+ kind: "gauge",
58701
+ unit: "%",
58702
+ deadband: 1
58703
+ },
58704
+ isMuted: { kind: "boolean" }
58705
+ } }
58345
58706
  };
58346
58707
  /**
58347
58708
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63634,9 +63995,29 @@ var streamParamsCapability = {
63634
63995
  */
63635
63996
  durability: "restored",
63636
63997
  /**
63637
- * History (D850): none — encoder configuration.
63998
+ * History (D850): the configured bitrate and frame rate of the main and sub
63999
+ * profiles. Configuration, so change-only on the default floor: a point is an
64000
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64001
+ * quality over time must show.
63638
64002
  */
63639
- history: "none",
64003
+ history: { fields: {
64004
+ "main.bitrate": {
64005
+ kind: "gauge",
64006
+ unit: "kbps"
64007
+ },
64008
+ "main.framerate": {
64009
+ kind: "gauge",
64010
+ unit: "fps"
64011
+ },
64012
+ "sub.bitrate": {
64013
+ kind: "gauge",
64014
+ unit: "kbps"
64015
+ },
64016
+ "sub.framerate": {
64017
+ kind: "gauge",
64018
+ unit: "fps"
64019
+ }
64020
+ } },
63640
64021
  /** Clock fields: written, but excluded from the compare that decides
63641
64022
  * whether persisting is worth a SQLite commit. */
63642
64023
  volatileStateFields: ["lastFetchedAt"]
@@ -64471,26 +64852,6 @@ var ApiKeySummarySchema = object({
64471
64852
  createdAt: number(),
64472
64853
  lastUsedAt: number().optional()
64473
64854
  });
64474
- var ScopedTokenSummarySchema = object({
64475
- id: string(),
64476
- userId: string(),
64477
- name: string(),
64478
- tokenPrefix: string(),
64479
- scopes: array(TokenScopeSchema),
64480
- expiresAt: number().nullish(),
64481
- lastUsedAt: number().nullish(),
64482
- createdAt: number()
64483
- });
64484
- var CreateScopedTokenInputSchema = object({
64485
- userId: string(),
64486
- name: string(),
64487
- scopes: array(TokenScopeSchema),
64488
- expiresAt: number().optional()
64489
- });
64490
- var CreateScopedTokenResultSchema = object({
64491
- token: string(),
64492
- record: ScopedTokenSummarySchema
64493
- });
64494
64855
  var OauthSessionSummarySchema = object({
64495
64856
  id: string(),
64496
64857
  userId: string(),
@@ -64512,11 +64873,11 @@ var TotpStatusSchema = object({
64512
64873
  confirmedAt: number().nullable()
64513
64874
  });
64514
64875
  /**
64515
- * user-management — singleton capability for user accounts, API keys,
64516
- * and scoped tokens.
64876
+ * user-management — singleton capability for user accounts and the
64877
+ * legacy API-key rows.
64517
64878
  *
64518
64879
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64519
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
64880
+ * — the subset check on `setUserScopes` is moot
64520
64881
  * because non-admins never reach these. If/when we open non-admin
64521
64882
  * delegation, structural caller-scope subset check goes inside the
64522
64883
  * provider.
@@ -64573,15 +64934,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64573
64934
  kind: "mutation",
64574
64935
  auth: "admin",
64575
64936
  access: "delete"
64576
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64577
- kind: "mutation",
64578
- auth: "admin",
64579
- access: "create"
64580
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64581
- kind: "mutation",
64582
- auth: "admin",
64583
- access: "delete"
64584
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
64937
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64585
64938
  kind: "mutation",
64586
64939
  auth: "admin",
64587
64940
  access: "create"
@@ -66842,6 +67195,15 @@ var BaseDevice = class {
66842
67195
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66843
67196
  * with a typed cast.
66844
67197
  *
67198
+ * Answer what you KNOW. A plain array is read as the complete list only
67199
+ * while this device is `online` and probed; return
67200
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67201
+ * now (no credentials, parent not connected, a failed or partial read) —
67202
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67203
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67204
+ * deleted only after a second agreeing complete read on a later probe (D49;
67205
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67206
+ *
66845
67207
  * Default: no children.
66846
67208
  */
66847
67209
  getAccessoryChildren() {
@@ -70671,7 +71033,7 @@ Object.freeze({
70671
71033
  capName: "llm",
70672
71034
  capScope: "system",
70673
71035
  addonId: null,
70674
- access: "view"
71036
+ access: "create"
70675
71037
  },
70676
71038
  "llm.listNodeModels": {
70677
71039
  capName: "llm",
@@ -70973,7 +71335,19 @@ Object.freeze({
70973
71335
  addonId: null,
70974
71336
  access: "view"
70975
71337
  },
70976
- "logDestination.query": {
71338
+ "logDestination.cancelRead": {
71339
+ capName: "log-destination",
71340
+ capScope: "system",
71341
+ addonId: null,
71342
+ access: "create"
71343
+ },
71344
+ "logDestination.describeRead": {
71345
+ capName: "log-destination",
71346
+ capScope: "system",
71347
+ addonId: null,
71348
+ access: "view"
71349
+ },
71350
+ "logDestination.read": {
70977
71351
  capName: "log-destination",
70978
71352
  capScope: "system",
70979
71353
  addonId: null,
@@ -75335,12 +75709,6 @@ Object.freeze({
75335
75709
  addonId: null,
75336
75710
  access: "create"
75337
75711
  },
75338
- "userManagement.createScopedToken": {
75339
- capName: "user-management",
75340
- capScope: "system",
75341
- addonId: null,
75342
- access: "create"
75343
- },
75344
75712
  "userManagement.createUser": {
75345
75713
  capName: "user-management",
75346
75714
  capScope: "system",
@@ -75389,12 +75757,6 @@ Object.freeze({
75389
75757
  addonId: null,
75390
75758
  access: "view"
75391
75759
  },
75392
- "userManagement.listScopedTokens": {
75393
- capName: "user-management",
75394
- capScope: "system",
75395
- addonId: null,
75396
- access: "view"
75397
- },
75398
75760
  "userManagement.listUsers": {
75399
75761
  capName: "user-management",
75400
75762
  capScope: "system",
@@ -75449,12 +75811,6 @@ Object.freeze({
75449
75811
  addonId: null,
75450
75812
  access: "delete"
75451
75813
  },
75452
- "userManagement.revokeScopedToken": {
75453
- capName: "user-management",
75454
- capScope: "system",
75455
- addonId: null,
75456
- access: "delete"
75457
- },
75458
75814
  "userManagement.setupTotp": {
75459
75815
  capName: "user-management",
75460
75816
  capScope: "system",
@@ -75485,12 +75841,6 @@ Object.freeze({
75485
75841
  addonId: null,
75486
75842
  access: "view"
75487
75843
  },
75488
- "userManagement.validateScopedToken": {
75489
- capName: "user-management",
75490
- capScope: "system",
75491
- addonId: null,
75492
- access: "view"
75493
- },
75494
75844
  "userManagement.verifyTotp": {
75495
75845
  capName: "user-management",
75496
75846
  capScope: "system",
@@ -77004,6 +77354,11 @@ Object.freeze({
77004
77354
  form: "single",
77005
77355
  optional: false
77006
77356
  }],
77357
+ "logDestination.read": [{
77358
+ name: "deviceId",
77359
+ form: "single",
77360
+ optional: true
77361
+ }],
77007
77362
  "mediaPlayer.getStatus": [{
77008
77363
  name: "deviceId",
77009
77364
  form: "single",