@camstack/addon-provider-mqtt-ha 0.1.8 → 0.1.10

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
@@ -5449,7 +5449,7 @@ var ZodIssueCode = {
5449
5449
  var ZodFirstPartyTypeKind;
5450
5450
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5451
5451
  //#endregion
5452
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5452
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5453
5453
  /**
5454
5454
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5455
5455
  * window to float samples (D455).
@@ -7832,9 +7832,9 @@ function normalizeAddonInitResult(result) {
7832
7832
  return result;
7833
7833
  }
7834
7834
  /**
7835
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7836
- * and validates them (`share-token.service.ts` builds its enum from this
7837
- * list); a data plane names the kinds it ACCEPTS in `share`.
7835
+ * The share-view scope kinds a share-link token can carry. The hub mints
7836
+ * and validates them (`ShareViewGrantSchema` builds its
7837
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7838
7838
  */
7839
7839
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7840
7840
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12524,7 +12524,7 @@ var ConvertResultSchema = object({
12524
12524
  * `super_admin` — collapsed onto the single boolean because every
12525
12525
  * non-admin caller is governed by the same scope-check rules; the
12526
12526
  * distinction was only ever used to route role-specific procedures
12527
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12527
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12528
12528
  * with `isAdmin: false` + an explicit scope list.
12529
12529
  */
12530
12530
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -12713,10 +12713,12 @@ var AddonRoutesScopeSchema = object({
12713
12713
  type: literal("addon-routes"),
12714
12714
  access: array(MethodAccessSchema).min(1)
12715
12715
  });
12716
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
12716
12717
  var CredentialScopeSchema = union([
12717
12718
  literal("*"),
12718
12719
  ShareViewScopeSchema,
12719
12720
  AddonRoutesScopeSchema,
12721
+ PreferencesSelfScopeSchema,
12720
12722
  TokenScopeSchema
12721
12723
  ]);
12722
12724
  object({
@@ -12725,6 +12727,55 @@ object({
12725
12727
  jti: string().min(16),
12726
12728
  scopes: array(CredentialScopeSchema).min(1)
12727
12729
  });
12730
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
12731
+ /** A namespace's value: a JSON object, opaque to the hub. */
12732
+ var PreferenceValueSchema = record(string(), unknown());
12733
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
12734
+ /** A stored row, as the owner reads it. */
12735
+ var PreferenceRowSchema = object({
12736
+ namespace: PreferenceNamespaceSchema,
12737
+ value: PreferenceValueSchema,
12738
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
12739
+ revision: number().int().positive(),
12740
+ updatedAt: number().int(),
12741
+ /** The client id the last writer sent; `null` when it sent none. */
12742
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
12743
+ });
12744
+ object({
12745
+ /** Absent: every namespace the caller holds. */
12746
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
12747
+ object({ rows: array(PreferenceRowSchema) });
12748
+ object({
12749
+ namespace: PreferenceNamespaceSchema,
12750
+ value: PreferenceValueSchema,
12751
+ /**
12752
+ * The revision the edit was based on. Absent: last write wins. `0`: the
12753
+ * namespace must not exist yet. Any other value that is not the current
12754
+ * revision answers `conflict` and writes nothing.
12755
+ */
12756
+ baseRevision: number().int().nonnegative().optional(),
12757
+ deviceId: PreferenceDeviceIdSchema.optional()
12758
+ });
12759
+ discriminatedUnion("status", [object({
12760
+ status: literal("saved"),
12761
+ row: PreferenceRowSchema
12762
+ }), object({
12763
+ status: literal("conflict"),
12764
+ current: PreferenceRowSchema.nullable()
12765
+ })]);
12766
+ object({ namespace: PreferenceNamespaceSchema });
12767
+ object({
12768
+ /** `false` when the namespace did not exist. */
12769
+ deleted: boolean() });
12770
+ object({
12771
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
12772
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
12773
+ object({
12774
+ /** Every row whose revision differs from the client's, and every row it did not list. */
12775
+ rows: array(PreferenceRowSchema),
12776
+ /** Namespaces the client listed that no longer exist. */
12777
+ deleted: array(PreferenceNamespaceSchema)
12778
+ });
12728
12779
  _enum(["new-session", "step-up"]);
12729
12780
  /** The languages the hub's app landing pages are written in (D858). */
12730
12781
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -16978,7 +17029,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
16978
17029
  kind: literal("node"),
16979
17030
  nodeId: string().min(1)
16980
17031
  })]);
17032
+ /**
17033
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17034
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17035
+ * meaning); a rollup keeps the time spent in each state (`states`).
17036
+ */
16981
17037
  var DeviceHistoryKindSchema = _enum([
17038
+ "gauge",
17039
+ "counter",
17040
+ "boolean",
17041
+ "enum"
17042
+ ]);
17043
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17044
+ var DeviceHistoryProducerKindSchema = _enum([
16982
17045
  "gauge",
16983
17046
  "counter",
16984
17047
  "boolean"
@@ -17015,7 +17078,13 @@ var SeriesInfoSchema = object({
17015
17078
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17016
17079
  unit: string().nullable(),
17017
17080
  displayName: string(),
17018
- source: _enum(["cap", "addon"]),
17081
+ source: _enum([
17082
+ "cap",
17083
+ "addon",
17084
+ "derived"
17085
+ ]),
17086
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17087
+ values: array(string()).readonly().nullable(),
17019
17088
  firstTs: number(),
17020
17089
  lastTs: number()
17021
17090
  });
@@ -17029,17 +17098,31 @@ var QueryPointSchema = object({
17029
17098
  twMean: number().nullable(),
17030
17099
  min: number(),
17031
17100
  max: number(),
17032
- /** `null` is unknown, never zero (D393). */
17033
- last: number().nullable()
17101
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17102
+ last: number().nullable(),
17103
+ /**
17104
+ * The increase over the point: a `counter`'s growth since the previous point
17105
+ * or bucket (a drop is a reset, counted from zero), and for
17106
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17107
+ * every other kind, and when it cannot be known.
17108
+ */
17109
+ delta: number().nullable(),
17110
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17111
+ state: string().nullable(),
17112
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17113
+ states: record(string(), number()).nullable()
17034
17114
  });
17035
17115
  var QuerySeriesSchema = object({
17036
17116
  scope: string(),
17037
17117
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17038
17118
  before: object({
17039
17119
  t: number(),
17040
- value: number().nullable()
17120
+ value: number().nullable(),
17121
+ state: string().nullable()
17041
17122
  }).nullable(),
17042
- points: array(QueryPointSchema).readonly()
17123
+ points: array(QueryPointSchema).readonly(),
17124
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17125
+ derivedFrom: string().nullable()
17043
17126
  });
17044
17127
  /** The window part of a query, shared by the device and node forms. */
17045
17128
  var QueryWindowShape = {
@@ -17055,6 +17138,23 @@ var QueryResultSchema = object({
17055
17138
  series: array(QuerySeriesSchema).readonly(),
17056
17139
  truncated: boolean()
17057
17140
  });
17141
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17142
+ var QueryManyItemSchema = union([object({
17143
+ deviceId: number().int(),
17144
+ key: string(),
17145
+ scope: string().optional()
17146
+ }), object({
17147
+ forNodeId: string().min(1),
17148
+ key: string(),
17149
+ scope: string().optional()
17150
+ })]);
17151
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17152
+ ok: literal(true),
17153
+ result: QueryResultSchema
17154
+ }), object({
17155
+ ok: literal(false),
17156
+ error: string()
17157
+ })]);
17058
17158
  var TierStatusSchema = object({
17059
17159
  tier: DeviceHistoryResolutionSchema,
17060
17160
  /** `null` until the first background count answered. */
@@ -17110,16 +17210,22 @@ var DeviceHistoryStatusSchema = object({
17110
17210
  lastRefreshAt: number().nullable()
17111
17211
  })
17112
17212
  });
17113
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17213
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17114
17214
  deviceId: number().int(),
17115
17215
  ...QueryWindowShape
17116
17216
  }), QueryResultSchema), method(object({
17117
- nodeId: string().min(1),
17217
+ forNodeId: string().min(1),
17118
17218
  ...QueryWindowShape
17119
17219
  }), QueryResultSchema, { auth: "admin" }), method(object({
17220
+ items: array(QueryManyItemSchema).min(1).max(24),
17221
+ from: QueryWindowShape.from,
17222
+ to: QueryWindowShape.to,
17223
+ resolution: QueryWindowShape.resolution,
17224
+ maxPoints: QueryWindowShape.maxPoints
17225
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17120
17226
  name: string().regex(/^[a-z0-9-]+$/),
17121
17227
  subjectKind: _enum(["device", "node"]),
17122
- kind: DeviceHistoryKindSchema,
17228
+ kind: DeviceHistoryProducerKindSchema,
17123
17229
  unit: string().optional(),
17124
17230
  displayName: string().min(1),
17125
17231
  ingest: _enum(["points", "buckets"])
@@ -39918,38 +40024,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
39918
40024
  auth: "admin",
39919
40025
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
39920
40026
  });
40027
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40028
+ /** What a model (or, by default, every model of a kind) can do. */
40029
+ var LlmModelFeaturesSchema = object({
40030
+ vision: boolean(),
40031
+ tools: boolean(),
40032
+ streaming: boolean()
40033
+ });
40034
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40035
+ var LlmModelInfoSchema = object({
40036
+ id: string(),
40037
+ label: string().optional(),
40038
+ contextLength: number().int().positive().optional(),
40039
+ features: LlmModelFeaturesSchema.partial().optional()
40040
+ });
39921
40041
  /**
39922
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
39923
- * methods concat-fan across providers; single-row methods route to ONE
39924
- * provider by the `addonId` in the call input (the notification-output
39925
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
39926
- * (hub-placed); the cap stays open for future providers.
39927
- *
39928
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
39929
- * `apiKey` is a password field — providers REDACT it on read and merge on
39930
- * write; a stored key NEVER round-trips to a client.
40042
+ * The provider-specific part of a profile, validated by the provider that owns
40043
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40044
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40045
+ * keychain, never in the row, and reads back as the redaction marker.
39931
40046
  */
39932
- var LlmProfileKindSchema = _enum([
39933
- "openai-compatible",
39934
- "openai",
39935
- "anthropic",
39936
- "google",
39937
- "managed-local",
39938
- "apple-foundation"
39939
- ]);
40047
+ var LlmProviderConfigSchema = record(string(), unknown());
39940
40048
  var LlmProfileSchema = object({
39941
40049
  id: string(),
39942
40050
  name: string(),
40051
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
39943
40052
  kind: LlmProfileKindSchema,
39944
40053
  /** Stamped by the provider — keeps the fanned catalog routable. */
39945
40054
  addonId: string(),
39946
40055
  enabled: boolean(),
39947
40056
  /** Vendor model id, or the managed runtime's loaded model. */
39948
40057
  model: string(),
39949
- /** Required for openai-compatible; override for cloud kinds. */
39950
- baseUrl: string().optional(),
39951
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
39952
- apiKey: string().optional(),
39953
40058
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
39954
40059
  * degraded to text — that shipped once and produced a confident answer to a
39955
40060
  * question about a picture nobody sent. */
@@ -39957,15 +40062,11 @@ var LlmProfileSchema = object({
39957
40062
  temperature: number().min(0).max(2).optional(),
39958
40063
  /** Nucleus sampling. Every wire we speak has it. */
39959
40064
  topP: number().min(0).max(1).optional(),
39960
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
39961
- * wire does, and the client drops it there (measured: the request body gets
39962
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
39963
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40065
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40066
+ * field in its editor only when its descriptor lists it in `profileFields`. */
39964
40067
  topK: number().int().positive().optional(),
39965
40068
  maxTokens: number().int().positive().optional(),
39966
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
39967
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
39968
- * the model with, so it is the one field that changes a PROCESS. */
40069
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
39969
40070
  contextLength: number().int().positive().optional(),
39970
40071
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
39971
40072
  * two system prompts fighting is worse than either alone). */
@@ -39991,16 +40092,37 @@ var LlmProfileSchema = object({
39991
40092
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
39992
40093
  * `true` here buys the wiring, not behaviour, until tools are registered. */
39993
40094
  toolsEnabled: boolean().default(false),
39994
- extraHeaders: record(string(), string()).optional(),
39995
- /** kind === 'managed-local' only (spec §4). */
39996
- runtime: ManagedRuntimeConfigSchema.optional(),
39997
- /**
39998
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
39999
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40000
- * `supportsVision` on such a row is stamped by the provider from the node's
40001
- * reported `imageInput`, never taken from the operator (D62).
40002
- */
40003
- appleFoundation: object({ nodeId: string() }).optional()
40095
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40096
+ providerConfig: LlmProviderConfigSchema.default({})
40097
+ });
40098
+ /**
40099
+ * The common profile fields a kind's editor offers. The editor owns how each
40100
+ * one is drawn; the provider says which of them mean something on its wire.
40101
+ */
40102
+ var LlmProfileFieldSchema = _enum([
40103
+ "temperature",
40104
+ "topP",
40105
+ "topK",
40106
+ "maxTokens",
40107
+ "contextLength",
40108
+ "systemPrompt",
40109
+ "timeoutMs",
40110
+ "connectTimeoutMs",
40111
+ "firstTokenTimeoutMs",
40112
+ "idleTimeoutMs",
40113
+ "retry",
40114
+ "toolsEnabled"
40115
+ ]);
40116
+ /**
40117
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40118
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40119
+ * picker: that widget owns the model choice.
40120
+ */
40121
+ var LlmProviderWidgetSchema = object({
40122
+ id: string(),
40123
+ placement: _enum(["connection", "model"]),
40124
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40125
+ requires: array(string()).optional()
40004
40126
  });
40005
40127
  /** ConfigUISchema tree passed through untyped on the wire (the
40006
40128
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40009,11 +40131,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40009
40131
  var LlmProfileKindDescriptorSchema = object({
40010
40132
  kind: LlmProfileKindSchema,
40011
40133
  label: string(),
40134
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40012
40135
  icon: string(),
40013
40136
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40014
40137
  addonId: string(),
40015
- configSchema: ConfigSchemaPassthrough$3
40138
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40139
+ connectionSchema: ConfigSchemaPassthrough$3,
40140
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40141
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40142
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40143
+ features: LlmModelFeaturesSchema,
40144
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40145
+ visionEditable: boolean(),
40146
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40147
+ modelCatalog: _enum([
40148
+ "fetch",
40149
+ "static",
40150
+ "none"
40151
+ ]),
40152
+ staticModels: array(LlmModelInfoSchema).optional(),
40153
+ /** The common fields that mean something on this kind's wire. */
40154
+ profileFields: array(LlmProfileFieldSchema),
40155
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40016
40156
  });
40157
+ /**
40158
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40159
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40160
+ * untouched (absent or the redaction marker) is resolved server-side from the
40161
+ * stored profile — the browser never receives it.
40162
+ */
40163
+ var LlmListModelsInputSchema = object({
40164
+ addonId: string(),
40165
+ kind: LlmProfileKindSchema,
40166
+ profileId: string().optional(),
40167
+ connection: LlmProviderConfigSchema.optional()
40168
+ });
40169
+ var LlmListModelsErrorCodeSchema = _enum([
40170
+ "auth",
40171
+ "network",
40172
+ "unsupported",
40173
+ "invalid"
40174
+ ]);
40175
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40176
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40177
+ ok: literal(true),
40178
+ models: array(LlmModelInfoSchema)
40179
+ }), object({
40180
+ ok: literal(false),
40181
+ code: LlmListModelsErrorCodeSchema,
40182
+ message: string()
40183
+ })]);
40017
40184
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40018
40185
  var LlmDefaultSchema = object({
40019
40186
  selector: LlmDefaultSelectorSchema,
@@ -40113,7 +40280,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40113
40280
  kind: "mutation",
40114
40281
  auth: "admin",
40115
40282
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40116
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40283
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40284
+ kind: "mutation",
40285
+ auth: "admin"
40286
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40117
40287
  selector: LlmDefaultSelectorSchema,
40118
40288
  profileId: string().nullable()
40119
40289
  }), _void(), {
@@ -40281,14 +40451,106 @@ var LogEntrySchema = object({
40281
40451
  meta: record(string(), unknown()).optional(),
40282
40452
  tags: record(string(), string()).optional()
40283
40453
  });
40284
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40285
- scope: array(string()).optional(),
40454
+ /**
40455
+ * A history READ against one destination (D898).
40456
+ *
40457
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40458
+ * browser applied after the limit is what made a rare device's lines
40459
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40460
+ * minted (opaque to everyone else): a file position for the rotated files, a
40461
+ * nanosecond timestamp for Loki.
40462
+ *
40463
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40464
+ * store answers `done: false` with the cursor it reached and the bytes it
40465
+ * scanned, and the caller decides whether to go on. That is what makes a long
40466
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40467
+ * flight, and not asking for the next slice ends the scan.
40468
+ */
40469
+ var LogReadQuerySchema = object({
40470
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40471
+ requestId: string().min(1).max(64).optional(),
40472
+ /** The device the line is about (`tags.deviceId`, numeric). */
40473
+ deviceId: number().int().optional(),
40474
+ /**
40475
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40476
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40477
+ */
40478
+ fromAddonId: string().min(1).max(200).optional(),
40479
+ /**
40480
+ * The emitting node: matches the agent that emitted the line, the node
40481
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40482
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40483
+ * name as "which node's provider".
40484
+ */
40485
+ fromNodeId: string().min(1).max(200).optional(),
40486
+ /** Any other tag, exact match (AND). */
40487
+ tags: record(string(), union([string(), number()])).optional(),
40488
+ /** Severity FLOOR: this level and above. */
40286
40489
  level: LogLevelSchema.optional(),
40287
- since: date().optional(),
40288
- until: date().optional(),
40289
- limit: number().optional(),
40290
- tags: record(string(), string()).optional()
40291
- }), array(LogEntrySchema).readonly());
40490
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40491
+ text: string().min(1).max(200).optional(),
40492
+ /** Epoch ms, inclusive. */
40493
+ since: number().optional(),
40494
+ /** Epoch ms, inclusive. */
40495
+ until: number().optional(),
40496
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40497
+ before: string().min(1).max(1024).optional(),
40498
+ /** Newer than this cursor (exclusive). */
40499
+ after: string().min(1).max(1024).optional(),
40500
+ limit: number().int().min(1).max(1e3).optional(),
40501
+ /** Wall-clock bound of this slice. The provider caps it. */
40502
+ budgetMs: number().int().min(50).max(1e4).optional()
40503
+ });
40504
+ var LogReadResultSchema = object({
40505
+ /** Newest first. */
40506
+ entries: array(object({
40507
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40508
+ id: string().optional(),
40509
+ /** Epoch ms. */
40510
+ timestamp: number(),
40511
+ level: LogLevelSchema,
40512
+ scope: string().optional(),
40513
+ message: string(),
40514
+ tags: record(string(), union([string(), number()])).optional(),
40515
+ meta: record(string(), unknown()).optional()
40516
+ })),
40517
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40518
+ nextBefore: string().nullable(),
40519
+ /** Pass as `after` to read what arrived since; null when unknown. */
40520
+ nextAfter: string().nullable(),
40521
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40522
+ scannedBytes: number().int().nonnegative(),
40523
+ /**
40524
+ * True when the scan in this direction reached the end of the store.
40525
+ * False with fewer than `limit` entries means the budget ran out first —
40526
+ * call again with `nextBefore` to go on.
40527
+ */
40528
+ done: boolean(),
40529
+ /** True when `cancelRead` ended this slice early. */
40530
+ cancelled: boolean().optional()
40531
+ });
40532
+ var LogReadCapabilitiesSchema = object({
40533
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40534
+ readable: boolean(),
40535
+ /** Why not, when `readable` is false — rendered next to the source. */
40536
+ reason: string().nullable(),
40537
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40538
+ filters: object({
40539
+ deviceId: boolean(),
40540
+ addonId: boolean(),
40541
+ nodeId: boolean(),
40542
+ tags: boolean(),
40543
+ level: boolean(),
40544
+ text: boolean(),
40545
+ timeRange: boolean()
40546
+ }),
40547
+ /** How far back the store reaches, when the provider knows (days). */
40548
+ retentionDays: number().nullable()
40549
+ });
40550
+ 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() }), {
40551
+ kind: "mutation",
40552
+ auth: "admin"
40553
+ });
40292
40554
  /**
40293
40555
  * `login-method` — collection cap through which auth addons contribute
40294
40556
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42006,9 +42268,11 @@ var alarmPanelCapability = {
42006
42268
  */
42007
42269
  durability: "restored",
42008
42270
  /**
42009
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42271
+ * History (D850): the panel's lifecycle state as an `enum` series —
42272
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42273
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42010
42274
  */
42011
- history: "none",
42275
+ history: { fields: { state: { kind: "enum" } } },
42012
42276
  /** Clock fields: written, but excluded from the compare that decides
42013
42277
  * whether persisting is worth a SQLite commit. */
42014
42278
  volatileStateFields: ["lastChangedAt"]
@@ -42886,6 +43150,33 @@ var NcRuleTargetSchema = object({
42886
43150
  params: record(string(), unknown()).optional()
42887
43151
  });
42888
43152
  /**
43153
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43154
+ *
43155
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43156
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43157
+ * to the zone that fired the rule) and renders it once at send time:
43158
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43159
+ * colour and every OTHER track visible at that instant outlined thin, each
43160
+ * labelled with class and confidence ("dog 87%").
43161
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43162
+ * - `clean` — the whole scene with nothing drawn on it.
43163
+ * - `none` — no picture.
43164
+ *
43165
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43166
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43167
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43168
+ * ship a crop on one event and a boxed scene on the next depending on which
43169
+ * stored kind had landed.
43170
+ */
43171
+ var NcMediaImageSchema = _enum([
43172
+ "scene-boxes",
43173
+ "crop",
43174
+ "clean",
43175
+ "none"
43176
+ ]);
43177
+ /**
43178
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43179
+ *
42889
43180
  * Media attachment policy (P1 still-image subset).
42890
43181
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
42891
43182
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -42899,6 +43190,8 @@ var NcRuleTargetSchema = object({
42899
43190
  * - `none` — no attachment.
42900
43191
  */
42901
43192
  /**
43193
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43194
+ *
42902
43195
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
42903
43196
  * conflate it with the selection strategy and betray the request: asking for
42904
43197
  * the clean scene frame on an object-event owner used to start at
@@ -42927,16 +43220,29 @@ var NcMediaFrameSchema = _enum([
42927
43220
  */
42928
43221
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
42929
43222
  var NcMediaPolicySchema = object({
43223
+ /**
43224
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43225
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43226
+ * triple below, at load and at every write, and the store keeps only this.
43227
+ */
43228
+ image: NcMediaImageSchema.optional(),
43229
+ /**
43230
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43231
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43232
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43233
+ * Replaces `zoneCrop`.
43234
+ */
43235
+ showTriggerZone: boolean().optional(),
43236
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42930
43237
  attach: _enum([
42931
43238
  "best",
42932
43239
  "best-matching",
42933
43240
  "keyFrame",
42934
43241
  "none"
42935
- ]).default("best"),
42936
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43242
+ ]).optional(),
43243
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42937
43244
  frame: NcMediaFrameSchema.optional(),
42938
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
42939
- * "show me the ZONE", not the whole scene or the subject crop. */
43245
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
42940
43246
  zoneCrop: boolean().optional(),
42941
43247
  /**
42942
43248
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43108,7 +43414,9 @@ var NcRuleInputSchema = object({
43108
43414
  * targets.
43109
43415
  */
43110
43416
  targetUsers: array(string()).optional(),
43111
- media: NcMediaPolicySchema.default({ attach: "best" }),
43417
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43418
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43419
+ media: NcMediaPolicySchema.default({}),
43112
43420
  throttle: NcThrottleSchema.default({
43113
43421
  cooldownSec: 60,
43114
43422
  scope: "rule-device"
@@ -44045,13 +44353,37 @@ var NcAlarmModeOpeningsSchema = object({
44045
44353
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44046
44354
  unknown: array(number().int())
44047
44355
  });
44356
+ /**
44357
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44358
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44359
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44360
+ * never looks fully armed (D62: off must never look like broken).
44361
+ */
44362
+ var NcAlarmInputBypassViewSchema = object({
44363
+ ruleId: string(),
44364
+ /** The rule's current name (its frozen name when the rule is gone). */
44365
+ ruleName: string(),
44366
+ /** The input: the sensor of the match, else its camera. */
44367
+ deviceId: number().int(),
44368
+ /** The input's current name. */
44369
+ name: string(),
44370
+ /** When it was bypassed (ms epoch). */
44371
+ since: number(),
44372
+ /** Triggers from this input dropped since. */
44373
+ dropped: number().int().min(0)
44374
+ });
44048
44375
  var NcAlarmLiveSchema = object({
44049
44376
  state: AlarmStateSchema,
44050
44377
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44051
44378
  targetMode: AlarmArmModeSchema.nullable(),
44052
44379
  availableModes: array(AlarmArmModeSchema),
44053
44380
  openings: array(NcAlarmModeOpeningsSchema),
44054
- exclusions: array(NcAlarmExclusionViewSchema)
44381
+ exclusions: array(NcAlarmExclusionViewSchema),
44382
+ /**
44383
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44384
+ * Defaulted so an older hub answer still parses (as "none known").
44385
+ */
44386
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44055
44387
  });
44056
44388
  var NcAlarmConfigSchema = object({
44057
44389
  /**
@@ -54770,9 +55102,11 @@ var connectivityCapability = {
54770
55102
  */
54771
55103
  durability: "restored",
54772
55104
  /**
54773
- * History (D850): none — duplicates device-status.online (one authority for availability).
55105
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55106
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55107
+ * device's reachability, which stays `device-status.online`.
54774
55108
  */
54775
- history: "none",
55109
+ history: { fields: { connected: { kind: "boolean" } } },
54776
55110
  /** Clock fields: written, but excluded from the compare that decides
54777
55111
  * whether persisting is worth a SQLite commit. */
54778
55112
  volatileStateFields: ["lastChangedAt"]
@@ -55596,11 +55930,22 @@ var dishwasherCapability = {
55596
55930
  },
55597
55931
  runtimeState: DishwasherStatusSchema,
55598
55932
  durability: "session",
55599
- history: { fields: { progressPercent: {
55600
- kind: "gauge",
55601
- unit: "%",
55602
- deadband: 2
55603
- } } }
55933
+ history: { fields: {
55934
+ progressPercent: {
55935
+ kind: "gauge",
55936
+ unit: "%",
55937
+ deadband: 2
55938
+ },
55939
+ state: { kind: "enum" },
55940
+ operationState: { kind: "enum" },
55941
+ remainingSeconds: {
55942
+ kind: "gauge",
55943
+ unit: "s",
55944
+ minIntervalMs: 6e4
55945
+ },
55946
+ doorOpen: { kind: "boolean" },
55947
+ powerOn: { kind: "boolean" }
55948
+ } }
55604
55949
  };
55605
55950
  var DoorbellStatusSchema = object({
55606
55951
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55717,9 +56062,15 @@ var enumSensorCapability = {
55717
56062
  */
55718
56063
  durability: "restored",
55719
56064
  /**
55720
- * History (D850): none — text/enum state has no history (non-goal).
56065
+ * History (D850): the value as an `enum` series (an appliance's program or
56066
+ * operation state, an HVAC action). The option set is per device, so the
56067
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56068
+ * `format` carries a timestamp, not a state, and is not recorded.
55721
56069
  */
55722
- history: "none",
56070
+ history: { fields: { value: {
56071
+ kind: "enum",
56072
+ skipWhenSet: "format"
56073
+ } } },
55723
56074
  /** Clock fields: written, but excluded from the compare that decides
55724
56075
  * whether persisting is worth a SQLite commit. */
55725
56076
  volatileStateFields: ["lastFetchedAt"]
@@ -57693,9 +58044,10 @@ var lockControlCapability = {
57693
58044
  */
57694
58045
  durability: "restored",
57695
58046
  /**
57696
- * History (D850): none — enum state; lock events belong in the events ledger.
58047
+ * History (D850): the lock's state as an `enum` series — change-only, no
58048
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57697
58049
  */
57698
- history: "none",
58050
+ history: { fields: { state: { kind: "enum" } } },
57699
58051
  /** Clock fields: written, but excluded from the compare that decides
57700
58052
  * whether persisting is worth a SQLite commit. */
57701
58053
  volatileStateFields: ["lastChangedAt"]
@@ -57869,9 +58221,18 @@ var mediaPlayerCapability = {
57869
58221
  */
57870
58222
  durability: "session",
57871
58223
  /**
57872
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58224
+ * History (D850): volume (a level an operator or an automation sets; the
58225
+ * default 10 s floor folds a slider drag into its end value) and mute.
58226
+ * `positionMs` is not recorded: it moves continuously while playing.
57873
58227
  */
57874
- history: "none"
58228
+ history: { fields: {
58229
+ volumeLevel: {
58230
+ kind: "gauge",
58231
+ unit: "%",
58232
+ deadband: 1
58233
+ },
58234
+ isMuted: { kind: "boolean" }
58235
+ } }
57875
58236
  };
57876
58237
  /**
57877
58238
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63164,9 +63525,29 @@ var streamParamsCapability = {
63164
63525
  */
63165
63526
  durability: "restored",
63166
63527
  /**
63167
- * History (D850): none — encoder configuration.
63528
+ * History (D850): the configured bitrate and frame rate of the main and sub
63529
+ * profiles. Configuration, so change-only on the default floor: a point is an
63530
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63531
+ * quality over time must show.
63168
63532
  */
63169
- history: "none",
63533
+ history: { fields: {
63534
+ "main.bitrate": {
63535
+ kind: "gauge",
63536
+ unit: "kbps"
63537
+ },
63538
+ "main.framerate": {
63539
+ kind: "gauge",
63540
+ unit: "fps"
63541
+ },
63542
+ "sub.bitrate": {
63543
+ kind: "gauge",
63544
+ unit: "kbps"
63545
+ },
63546
+ "sub.framerate": {
63547
+ kind: "gauge",
63548
+ unit: "fps"
63549
+ }
63550
+ } },
63170
63551
  /** Clock fields: written, but excluded from the compare that decides
63171
63552
  * whether persisting is worth a SQLite commit. */
63172
63553
  volatileStateFields: ["lastFetchedAt"]
@@ -64001,26 +64382,6 @@ var ApiKeySummarySchema = object({
64001
64382
  createdAt: number(),
64002
64383
  lastUsedAt: number().optional()
64003
64384
  });
64004
- var ScopedTokenSummarySchema = object({
64005
- id: string(),
64006
- userId: string(),
64007
- name: string(),
64008
- tokenPrefix: string(),
64009
- scopes: array(TokenScopeSchema),
64010
- expiresAt: number().nullish(),
64011
- lastUsedAt: number().nullish(),
64012
- createdAt: number()
64013
- });
64014
- var CreateScopedTokenInputSchema = object({
64015
- userId: string(),
64016
- name: string(),
64017
- scopes: array(TokenScopeSchema),
64018
- expiresAt: number().optional()
64019
- });
64020
- var CreateScopedTokenResultSchema = object({
64021
- token: string(),
64022
- record: ScopedTokenSummarySchema
64023
- });
64024
64385
  var OauthSessionSummarySchema = object({
64025
64386
  id: string(),
64026
64387
  userId: string(),
@@ -64042,11 +64403,11 @@ var TotpStatusSchema = object({
64042
64403
  confirmedAt: number().nullable()
64043
64404
  });
64044
64405
  /**
64045
- * user-management — singleton capability for user accounts, API keys,
64046
- * and scoped tokens.
64406
+ * user-management — singleton capability for user accounts and the
64407
+ * legacy API-key rows.
64047
64408
  *
64048
64409
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64049
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
64410
+ * — the subset check on `setUserScopes` is moot
64050
64411
  * because non-admins never reach these. If/when we open non-admin
64051
64412
  * delegation, structural caller-scope subset check goes inside the
64052
64413
  * provider.
@@ -64103,15 +64464,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64103
64464
  kind: "mutation",
64104
64465
  auth: "admin",
64105
64466
  access: "delete"
64106
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64107
- kind: "mutation",
64108
- auth: "admin",
64109
- access: "create"
64110
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64111
- kind: "mutation",
64112
- auth: "admin",
64113
- access: "delete"
64114
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
64467
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64115
64468
  kind: "mutation",
64116
64469
  auth: "admin",
64117
64470
  access: "create"
@@ -66372,6 +66725,15 @@ var BaseDevice = class {
66372
66725
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66373
66726
  * with a typed cast.
66374
66727
  *
66728
+ * Answer what you KNOW. A plain array is read as the complete list only
66729
+ * while this device is `online` and probed; return
66730
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66731
+ * now (no credentials, parent not connected, a failed or partial read) —
66732
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66733
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66734
+ * deleted only after a second agreeing complete read on a later probe (D49;
66735
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66736
+ *
66375
66737
  * Default: no children.
66376
66738
  */
66377
66739
  getAccessoryChildren() {
@@ -70201,7 +70563,7 @@ Object.freeze({
70201
70563
  capName: "llm",
70202
70564
  capScope: "system",
70203
70565
  addonId: null,
70204
- access: "view"
70566
+ access: "create"
70205
70567
  },
70206
70568
  "llm.listNodeModels": {
70207
70569
  capName: "llm",
@@ -70503,7 +70865,19 @@ Object.freeze({
70503
70865
  addonId: null,
70504
70866
  access: "view"
70505
70867
  },
70506
- "logDestination.query": {
70868
+ "logDestination.cancelRead": {
70869
+ capName: "log-destination",
70870
+ capScope: "system",
70871
+ addonId: null,
70872
+ access: "create"
70873
+ },
70874
+ "logDestination.describeRead": {
70875
+ capName: "log-destination",
70876
+ capScope: "system",
70877
+ addonId: null,
70878
+ access: "view"
70879
+ },
70880
+ "logDestination.read": {
70507
70881
  capName: "log-destination",
70508
70882
  capScope: "system",
70509
70883
  addonId: null,
@@ -74865,12 +75239,6 @@ Object.freeze({
74865
75239
  addonId: null,
74866
75240
  access: "create"
74867
75241
  },
74868
- "userManagement.createScopedToken": {
74869
- capName: "user-management",
74870
- capScope: "system",
74871
- addonId: null,
74872
- access: "create"
74873
- },
74874
75242
  "userManagement.createUser": {
74875
75243
  capName: "user-management",
74876
75244
  capScope: "system",
@@ -74919,12 +75287,6 @@ Object.freeze({
74919
75287
  addonId: null,
74920
75288
  access: "view"
74921
75289
  },
74922
- "userManagement.listScopedTokens": {
74923
- capName: "user-management",
74924
- capScope: "system",
74925
- addonId: null,
74926
- access: "view"
74927
- },
74928
75290
  "userManagement.listUsers": {
74929
75291
  capName: "user-management",
74930
75292
  capScope: "system",
@@ -74979,12 +75341,6 @@ Object.freeze({
74979
75341
  addonId: null,
74980
75342
  access: "delete"
74981
75343
  },
74982
- "userManagement.revokeScopedToken": {
74983
- capName: "user-management",
74984
- capScope: "system",
74985
- addonId: null,
74986
- access: "delete"
74987
- },
74988
75344
  "userManagement.setupTotp": {
74989
75345
  capName: "user-management",
74990
75346
  capScope: "system",
@@ -75015,12 +75371,6 @@ Object.freeze({
75015
75371
  addonId: null,
75016
75372
  access: "view"
75017
75373
  },
75018
- "userManagement.validateScopedToken": {
75019
- capName: "user-management",
75020
- capScope: "system",
75021
- addonId: null,
75022
- access: "view"
75023
- },
75024
75374
  "userManagement.verifyTotp": {
75025
75375
  capName: "user-management",
75026
75376
  capScope: "system",
@@ -76534,6 +76884,11 @@ Object.freeze({
76534
76884
  form: "single",
76535
76885
  optional: false
76536
76886
  }],
76887
+ "logDestination.read": [{
76888
+ name: "deviceId",
76889
+ form: "single",
76890
+ optional: true
76891
+ }],
76537
76892
  "mediaPlayer.getStatus": [{
76538
76893
  name: "deviceId",
76539
76894
  form: "single",