@camstack/addon-provider-dreo 0.2.130 → 0.2.132

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
@@ -5451,7 +5451,7 @@ var ZodIssueCode = {
5451
5451
  var ZodFirstPartyTypeKind;
5452
5452
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5453
5453
  //#endregion
5454
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5454
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5455
5455
  /**
5456
5456
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5457
5457
  * window to float samples (D455).
@@ -7834,9 +7834,9 @@ function normalizeAddonInitResult(result) {
7834
7834
  return result;
7835
7835
  }
7836
7836
  /**
7837
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7838
- * and validates them (`share-token.service.ts` builds its enum from this
7839
- * list); a data plane names the kinds it ACCEPTS in `share`.
7837
+ * The share-view scope kinds a share-link token can carry. The hub mints
7838
+ * and validates them (`ShareViewGrantSchema` builds its
7839
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7840
7840
  */
7841
7841
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7842
7842
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12526,7 +12526,7 @@ var ConvertResultSchema = object({
12526
12526
  * `super_admin` — collapsed onto the single boolean because every
12527
12527
  * non-admin caller is governed by the same scope-check rules; the
12528
12528
  * distinction was only ever used to route role-specific procedures
12529
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12529
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12530
12530
  * with `isAdmin: false` + an explicit scope list.
12531
12531
  */
12532
12532
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -12715,10 +12715,12 @@ var AddonRoutesScopeSchema = object({
12715
12715
  type: literal("addon-routes"),
12716
12716
  access: array(MethodAccessSchema).min(1)
12717
12717
  });
12718
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
12718
12719
  var CredentialScopeSchema = union([
12719
12720
  literal("*"),
12720
12721
  ShareViewScopeSchema,
12721
12722
  AddonRoutesScopeSchema,
12723
+ PreferencesSelfScopeSchema,
12722
12724
  TokenScopeSchema
12723
12725
  ]);
12724
12726
  object({
@@ -12727,6 +12729,55 @@ object({
12727
12729
  jti: string().min(16),
12728
12730
  scopes: array(CredentialScopeSchema).min(1)
12729
12731
  });
12732
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
12733
+ /** A namespace's value: a JSON object, opaque to the hub. */
12734
+ var PreferenceValueSchema = record(string(), unknown());
12735
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
12736
+ /** A stored row, as the owner reads it. */
12737
+ var PreferenceRowSchema = object({
12738
+ namespace: PreferenceNamespaceSchema,
12739
+ value: PreferenceValueSchema,
12740
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
12741
+ revision: number().int().positive(),
12742
+ updatedAt: number().int(),
12743
+ /** The client id the last writer sent; `null` when it sent none. */
12744
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
12745
+ });
12746
+ object({
12747
+ /** Absent: every namespace the caller holds. */
12748
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
12749
+ object({ rows: array(PreferenceRowSchema) });
12750
+ object({
12751
+ namespace: PreferenceNamespaceSchema,
12752
+ value: PreferenceValueSchema,
12753
+ /**
12754
+ * The revision the edit was based on. Absent: last write wins. `0`: the
12755
+ * namespace must not exist yet. Any other value that is not the current
12756
+ * revision answers `conflict` and writes nothing.
12757
+ */
12758
+ baseRevision: number().int().nonnegative().optional(),
12759
+ deviceId: PreferenceDeviceIdSchema.optional()
12760
+ });
12761
+ discriminatedUnion("status", [object({
12762
+ status: literal("saved"),
12763
+ row: PreferenceRowSchema
12764
+ }), object({
12765
+ status: literal("conflict"),
12766
+ current: PreferenceRowSchema.nullable()
12767
+ })]);
12768
+ object({ namespace: PreferenceNamespaceSchema });
12769
+ object({
12770
+ /** `false` when the namespace did not exist. */
12771
+ deleted: boolean() });
12772
+ object({
12773
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
12774
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
12775
+ object({
12776
+ /** Every row whose revision differs from the client's, and every row it did not list. */
12777
+ rows: array(PreferenceRowSchema),
12778
+ /** Namespaces the client listed that no longer exist. */
12779
+ deleted: array(PreferenceNamespaceSchema)
12780
+ });
12730
12781
  _enum(["new-session", "step-up"]);
12731
12782
  /** The languages the hub's app landing pages are written in (D858). */
12732
12783
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -16980,7 +17031,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
16980
17031
  kind: literal("node"),
16981
17032
  nodeId: string().min(1)
16982
17033
  })]);
17034
+ /**
17035
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17036
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17037
+ * meaning); a rollup keeps the time spent in each state (`states`).
17038
+ */
16983
17039
  var DeviceHistoryKindSchema = _enum([
17040
+ "gauge",
17041
+ "counter",
17042
+ "boolean",
17043
+ "enum"
17044
+ ]);
17045
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17046
+ var DeviceHistoryProducerKindSchema = _enum([
16984
17047
  "gauge",
16985
17048
  "counter",
16986
17049
  "boolean"
@@ -17017,7 +17080,13 @@ var SeriesInfoSchema = object({
17017
17080
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17018
17081
  unit: string().nullable(),
17019
17082
  displayName: string(),
17020
- source: _enum(["cap", "addon"]),
17083
+ source: _enum([
17084
+ "cap",
17085
+ "addon",
17086
+ "derived"
17087
+ ]),
17088
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17089
+ values: array(string()).readonly().nullable(),
17021
17090
  firstTs: number(),
17022
17091
  lastTs: number()
17023
17092
  });
@@ -17031,17 +17100,31 @@ var QueryPointSchema = object({
17031
17100
  twMean: number().nullable(),
17032
17101
  min: number(),
17033
17102
  max: number(),
17034
- /** `null` is unknown, never zero (D393). */
17035
- last: number().nullable()
17103
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17104
+ last: number().nullable(),
17105
+ /**
17106
+ * The increase over the point: a `counter`'s growth since the previous point
17107
+ * or bucket (a drop is a reset, counted from zero), and for
17108
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17109
+ * every other kind, and when it cannot be known.
17110
+ */
17111
+ delta: number().nullable(),
17112
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17113
+ state: string().nullable(),
17114
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17115
+ states: record(string(), number()).nullable()
17036
17116
  });
17037
17117
  var QuerySeriesSchema = object({
17038
17118
  scope: string(),
17039
17119
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17040
17120
  before: object({
17041
17121
  t: number(),
17042
- value: number().nullable()
17122
+ value: number().nullable(),
17123
+ state: string().nullable()
17043
17124
  }).nullable(),
17044
- points: array(QueryPointSchema).readonly()
17125
+ points: array(QueryPointSchema).readonly(),
17126
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17127
+ derivedFrom: string().nullable()
17045
17128
  });
17046
17129
  /** The window part of a query, shared by the device and node forms. */
17047
17130
  var QueryWindowShape = {
@@ -17057,6 +17140,23 @@ var QueryResultSchema = object({
17057
17140
  series: array(QuerySeriesSchema).readonly(),
17058
17141
  truncated: boolean()
17059
17142
  });
17143
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17144
+ var QueryManyItemSchema = union([object({
17145
+ deviceId: number().int(),
17146
+ key: string(),
17147
+ scope: string().optional()
17148
+ }), object({
17149
+ forNodeId: string().min(1),
17150
+ key: string(),
17151
+ scope: string().optional()
17152
+ })]);
17153
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17154
+ ok: literal(true),
17155
+ result: QueryResultSchema
17156
+ }), object({
17157
+ ok: literal(false),
17158
+ error: string()
17159
+ })]);
17060
17160
  var TierStatusSchema = object({
17061
17161
  tier: DeviceHistoryResolutionSchema,
17062
17162
  /** `null` until the first background count answered. */
@@ -17112,16 +17212,22 @@ var DeviceHistoryStatusSchema = object({
17112
17212
  lastRefreshAt: number().nullable()
17113
17213
  })
17114
17214
  });
17115
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17215
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17116
17216
  deviceId: number().int(),
17117
17217
  ...QueryWindowShape
17118
17218
  }), QueryResultSchema), method(object({
17119
- nodeId: string().min(1),
17219
+ forNodeId: string().min(1),
17120
17220
  ...QueryWindowShape
17121
17221
  }), QueryResultSchema, { auth: "admin" }), method(object({
17222
+ items: array(QueryManyItemSchema).min(1).max(24),
17223
+ from: QueryWindowShape.from,
17224
+ to: QueryWindowShape.to,
17225
+ resolution: QueryWindowShape.resolution,
17226
+ maxPoints: QueryWindowShape.maxPoints
17227
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17122
17228
  name: string().regex(/^[a-z0-9-]+$/),
17123
17229
  subjectKind: _enum(["device", "node"]),
17124
- kind: DeviceHistoryKindSchema,
17230
+ kind: DeviceHistoryProducerKindSchema,
17125
17231
  unit: string().optional(),
17126
17232
  displayName: string().min(1),
17127
17233
  ingest: _enum(["points", "buckets"])
@@ -39920,38 +40026,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
39920
40026
  auth: "admin",
39921
40027
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
39922
40028
  });
40029
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40030
+ /** What a model (or, by default, every model of a kind) can do. */
40031
+ var LlmModelFeaturesSchema = object({
40032
+ vision: boolean(),
40033
+ tools: boolean(),
40034
+ streaming: boolean()
40035
+ });
40036
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40037
+ var LlmModelInfoSchema = object({
40038
+ id: string(),
40039
+ label: string().optional(),
40040
+ contextLength: number().int().positive().optional(),
40041
+ features: LlmModelFeaturesSchema.partial().optional()
40042
+ });
39923
40043
  /**
39924
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
39925
- * methods concat-fan across providers; single-row methods route to ONE
39926
- * provider by the `addonId` in the call input (the notification-output
39927
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
39928
- * (hub-placed); the cap stays open for future providers.
39929
- *
39930
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
39931
- * `apiKey` is a password field — providers REDACT it on read and merge on
39932
- * write; a stored key NEVER round-trips to a client.
40044
+ * The provider-specific part of a profile, validated by the provider that owns
40045
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40046
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40047
+ * keychain, never in the row, and reads back as the redaction marker.
39933
40048
  */
39934
- var LlmProfileKindSchema = _enum([
39935
- "openai-compatible",
39936
- "openai",
39937
- "anthropic",
39938
- "google",
39939
- "managed-local",
39940
- "apple-foundation"
39941
- ]);
40049
+ var LlmProviderConfigSchema = record(string(), unknown());
39942
40050
  var LlmProfileSchema = object({
39943
40051
  id: string(),
39944
40052
  name: string(),
40053
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
39945
40054
  kind: LlmProfileKindSchema,
39946
40055
  /** Stamped by the provider — keeps the fanned catalog routable. */
39947
40056
  addonId: string(),
39948
40057
  enabled: boolean(),
39949
40058
  /** Vendor model id, or the managed runtime's loaded model. */
39950
40059
  model: string(),
39951
- /** Required for openai-compatible; override for cloud kinds. */
39952
- baseUrl: string().optional(),
39953
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
39954
- apiKey: string().optional(),
39955
40060
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
39956
40061
  * degraded to text — that shipped once and produced a confident answer to a
39957
40062
  * question about a picture nobody sent. */
@@ -39959,15 +40064,11 @@ var LlmProfileSchema = object({
39959
40064
  temperature: number().min(0).max(2).optional(),
39960
40065
  /** Nucleus sampling. Every wire we speak has it. */
39961
40066
  topP: number().min(0).max(1).optional(),
39962
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
39963
- * wire does, and the client drops it there (measured: the request body gets
39964
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
39965
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40067
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40068
+ * field in its editor only when its descriptor lists it in `profileFields`. */
39966
40069
  topK: number().int().positive().optional(),
39967
40070
  maxTokens: number().int().positive().optional(),
39968
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
39969
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
39970
- * the model with, so it is the one field that changes a PROCESS. */
40071
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
39971
40072
  contextLength: number().int().positive().optional(),
39972
40073
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
39973
40074
  * two system prompts fighting is worse than either alone). */
@@ -39993,16 +40094,37 @@ var LlmProfileSchema = object({
39993
40094
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
39994
40095
  * `true` here buys the wiring, not behaviour, until tools are registered. */
39995
40096
  toolsEnabled: boolean().default(false),
39996
- extraHeaders: record(string(), string()).optional(),
39997
- /** kind === 'managed-local' only (spec §4). */
39998
- runtime: ManagedRuntimeConfigSchema.optional(),
39999
- /**
40000
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40001
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40002
- * `supportsVision` on such a row is stamped by the provider from the node's
40003
- * reported `imageInput`, never taken from the operator (D62).
40004
- */
40005
- appleFoundation: object({ nodeId: string() }).optional()
40097
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40098
+ providerConfig: LlmProviderConfigSchema.default({})
40099
+ });
40100
+ /**
40101
+ * The common profile fields a kind's editor offers. The editor owns how each
40102
+ * one is drawn; the provider says which of them mean something on its wire.
40103
+ */
40104
+ var LlmProfileFieldSchema = _enum([
40105
+ "temperature",
40106
+ "topP",
40107
+ "topK",
40108
+ "maxTokens",
40109
+ "contextLength",
40110
+ "systemPrompt",
40111
+ "timeoutMs",
40112
+ "connectTimeoutMs",
40113
+ "firstTokenTimeoutMs",
40114
+ "idleTimeoutMs",
40115
+ "retry",
40116
+ "toolsEnabled"
40117
+ ]);
40118
+ /**
40119
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40120
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40121
+ * picker: that widget owns the model choice.
40122
+ */
40123
+ var LlmProviderWidgetSchema = object({
40124
+ id: string(),
40125
+ placement: _enum(["connection", "model"]),
40126
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40127
+ requires: array(string()).optional()
40006
40128
  });
40007
40129
  /** ConfigUISchema tree passed through untyped on the wire (the
40008
40130
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40011,11 +40133,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40011
40133
  var LlmProfileKindDescriptorSchema = object({
40012
40134
  kind: LlmProfileKindSchema,
40013
40135
  label: string(),
40136
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40014
40137
  icon: string(),
40015
40138
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40016
40139
  addonId: string(),
40017
- configSchema: ConfigSchemaPassthrough$3
40140
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40141
+ connectionSchema: ConfigSchemaPassthrough$3,
40142
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40143
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40144
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40145
+ features: LlmModelFeaturesSchema,
40146
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40147
+ visionEditable: boolean(),
40148
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40149
+ modelCatalog: _enum([
40150
+ "fetch",
40151
+ "static",
40152
+ "none"
40153
+ ]),
40154
+ staticModels: array(LlmModelInfoSchema).optional(),
40155
+ /** The common fields that mean something on this kind's wire. */
40156
+ profileFields: array(LlmProfileFieldSchema),
40157
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40018
40158
  });
40159
+ /**
40160
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40161
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40162
+ * untouched (absent or the redaction marker) is resolved server-side from the
40163
+ * stored profile — the browser never receives it.
40164
+ */
40165
+ var LlmListModelsInputSchema = object({
40166
+ addonId: string(),
40167
+ kind: LlmProfileKindSchema,
40168
+ profileId: string().optional(),
40169
+ connection: LlmProviderConfigSchema.optional()
40170
+ });
40171
+ var LlmListModelsErrorCodeSchema = _enum([
40172
+ "auth",
40173
+ "network",
40174
+ "unsupported",
40175
+ "invalid"
40176
+ ]);
40177
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40178
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40179
+ ok: literal(true),
40180
+ models: array(LlmModelInfoSchema)
40181
+ }), object({
40182
+ ok: literal(false),
40183
+ code: LlmListModelsErrorCodeSchema,
40184
+ message: string()
40185
+ })]);
40019
40186
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40020
40187
  var LlmDefaultSchema = object({
40021
40188
  selector: LlmDefaultSelectorSchema,
@@ -40115,7 +40282,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40115
40282
  kind: "mutation",
40116
40283
  auth: "admin",
40117
40284
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40118
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40285
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40286
+ kind: "mutation",
40287
+ auth: "admin"
40288
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40119
40289
  selector: LlmDefaultSelectorSchema,
40120
40290
  profileId: string().nullable()
40121
40291
  }), _void(), {
@@ -40283,14 +40453,106 @@ var LogEntrySchema = object({
40283
40453
  meta: record(string(), unknown()).optional(),
40284
40454
  tags: record(string(), string()).optional()
40285
40455
  });
40286
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40287
- scope: array(string()).optional(),
40456
+ /**
40457
+ * A history READ against one destination (D898).
40458
+ *
40459
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40460
+ * browser applied after the limit is what made a rare device's lines
40461
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40462
+ * minted (opaque to everyone else): a file position for the rotated files, a
40463
+ * nanosecond timestamp for Loki.
40464
+ *
40465
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40466
+ * store answers `done: false` with the cursor it reached and the bytes it
40467
+ * scanned, and the caller decides whether to go on. That is what makes a long
40468
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40469
+ * flight, and not asking for the next slice ends the scan.
40470
+ */
40471
+ var LogReadQuerySchema = object({
40472
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40473
+ requestId: string().min(1).max(64).optional(),
40474
+ /** The device the line is about (`tags.deviceId`, numeric). */
40475
+ deviceId: number().int().optional(),
40476
+ /**
40477
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40478
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40479
+ */
40480
+ fromAddonId: string().min(1).max(200).optional(),
40481
+ /**
40482
+ * The emitting node: matches the agent that emitted the line, the node
40483
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40484
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40485
+ * name as "which node's provider".
40486
+ */
40487
+ fromNodeId: string().min(1).max(200).optional(),
40488
+ /** Any other tag, exact match (AND). */
40489
+ tags: record(string(), union([string(), number()])).optional(),
40490
+ /** Severity FLOOR: this level and above. */
40288
40491
  level: LogLevelSchema.optional(),
40289
- since: date().optional(),
40290
- until: date().optional(),
40291
- limit: number().optional(),
40292
- tags: record(string(), string()).optional()
40293
- }), array(LogEntrySchema).readonly());
40492
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40493
+ text: string().min(1).max(200).optional(),
40494
+ /** Epoch ms, inclusive. */
40495
+ since: number().optional(),
40496
+ /** Epoch ms, inclusive. */
40497
+ until: number().optional(),
40498
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40499
+ before: string().min(1).max(1024).optional(),
40500
+ /** Newer than this cursor (exclusive). */
40501
+ after: string().min(1).max(1024).optional(),
40502
+ limit: number().int().min(1).max(1e3).optional(),
40503
+ /** Wall-clock bound of this slice. The provider caps it. */
40504
+ budgetMs: number().int().min(50).max(1e4).optional()
40505
+ });
40506
+ var LogReadResultSchema = object({
40507
+ /** Newest first. */
40508
+ entries: array(object({
40509
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40510
+ id: string().optional(),
40511
+ /** Epoch ms. */
40512
+ timestamp: number(),
40513
+ level: LogLevelSchema,
40514
+ scope: string().optional(),
40515
+ message: string(),
40516
+ tags: record(string(), union([string(), number()])).optional(),
40517
+ meta: record(string(), unknown()).optional()
40518
+ })),
40519
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40520
+ nextBefore: string().nullable(),
40521
+ /** Pass as `after` to read what arrived since; null when unknown. */
40522
+ nextAfter: string().nullable(),
40523
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40524
+ scannedBytes: number().int().nonnegative(),
40525
+ /**
40526
+ * True when the scan in this direction reached the end of the store.
40527
+ * False with fewer than `limit` entries means the budget ran out first —
40528
+ * call again with `nextBefore` to go on.
40529
+ */
40530
+ done: boolean(),
40531
+ /** True when `cancelRead` ended this slice early. */
40532
+ cancelled: boolean().optional()
40533
+ });
40534
+ var LogReadCapabilitiesSchema = object({
40535
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40536
+ readable: boolean(),
40537
+ /** Why not, when `readable` is false — rendered next to the source. */
40538
+ reason: string().nullable(),
40539
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40540
+ filters: object({
40541
+ deviceId: boolean(),
40542
+ addonId: boolean(),
40543
+ nodeId: boolean(),
40544
+ tags: boolean(),
40545
+ level: boolean(),
40546
+ text: boolean(),
40547
+ timeRange: boolean()
40548
+ }),
40549
+ /** How far back the store reaches, when the provider knows (days). */
40550
+ retentionDays: number().nullable()
40551
+ });
40552
+ 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() }), {
40553
+ kind: "mutation",
40554
+ auth: "admin"
40555
+ });
40294
40556
  /**
40295
40557
  * `login-method` — collection cap through which auth addons contribute
40296
40558
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42008,9 +42270,11 @@ var alarmPanelCapability = {
42008
42270
  */
42009
42271
  durability: "restored",
42010
42272
  /**
42011
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42273
+ * History (D850): the panel's lifecycle state as an `enum` series —
42274
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42275
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42012
42276
  */
42013
- history: "none",
42277
+ history: { fields: { state: { kind: "enum" } } },
42014
42278
  /** Clock fields: written, but excluded from the compare that decides
42015
42279
  * whether persisting is worth a SQLite commit. */
42016
42280
  volatileStateFields: ["lastChangedAt"]
@@ -42888,6 +43152,33 @@ var NcRuleTargetSchema = object({
42888
43152
  params: record(string(), unknown()).optional()
42889
43153
  });
42890
43154
  /**
43155
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43156
+ *
43157
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43158
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43159
+ * to the zone that fired the rule) and renders it once at send time:
43160
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43161
+ * colour and every OTHER track visible at that instant outlined thin, each
43162
+ * labelled with class and confidence ("dog 87%").
43163
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43164
+ * - `clean` — the whole scene with nothing drawn on it.
43165
+ * - `none` — no picture.
43166
+ *
43167
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43168
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43169
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43170
+ * ship a crop on one event and a boxed scene on the next depending on which
43171
+ * stored kind had landed.
43172
+ */
43173
+ var NcMediaImageSchema = _enum([
43174
+ "scene-boxes",
43175
+ "crop",
43176
+ "clean",
43177
+ "none"
43178
+ ]);
43179
+ /**
43180
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43181
+ *
42891
43182
  * Media attachment policy (P1 still-image subset).
42892
43183
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
42893
43184
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -42901,6 +43192,8 @@ var NcRuleTargetSchema = object({
42901
43192
  * - `none` — no attachment.
42902
43193
  */
42903
43194
  /**
43195
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43196
+ *
42904
43197
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
42905
43198
  * conflate it with the selection strategy and betray the request: asking for
42906
43199
  * the clean scene frame on an object-event owner used to start at
@@ -42929,16 +43222,29 @@ var NcMediaFrameSchema = _enum([
42929
43222
  */
42930
43223
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
42931
43224
  var NcMediaPolicySchema = object({
43225
+ /**
43226
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43227
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43228
+ * triple below, at load and at every write, and the store keeps only this.
43229
+ */
43230
+ image: NcMediaImageSchema.optional(),
43231
+ /**
43232
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43233
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43234
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43235
+ * Replaces `zoneCrop`.
43236
+ */
43237
+ showTriggerZone: boolean().optional(),
43238
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42932
43239
  attach: _enum([
42933
43240
  "best",
42934
43241
  "best-matching",
42935
43242
  "keyFrame",
42936
43243
  "none"
42937
- ]).default("best"),
42938
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43244
+ ]).optional(),
43245
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42939
43246
  frame: NcMediaFrameSchema.optional(),
42940
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
42941
- * "show me the ZONE", not the whole scene or the subject crop. */
43247
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
42942
43248
  zoneCrop: boolean().optional(),
42943
43249
  /**
42944
43250
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43110,7 +43416,9 @@ var NcRuleInputSchema = object({
43110
43416
  * targets.
43111
43417
  */
43112
43418
  targetUsers: array(string()).optional(),
43113
- media: NcMediaPolicySchema.default({ attach: "best" }),
43419
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43420
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43421
+ media: NcMediaPolicySchema.default({}),
43114
43422
  throttle: NcThrottleSchema.default({
43115
43423
  cooldownSec: 60,
43116
43424
  scope: "rule-device"
@@ -44047,13 +44355,37 @@ var NcAlarmModeOpeningsSchema = object({
44047
44355
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44048
44356
  unknown: array(number().int())
44049
44357
  });
44358
+ /**
44359
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44360
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44361
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44362
+ * never looks fully armed (D62: off must never look like broken).
44363
+ */
44364
+ var NcAlarmInputBypassViewSchema = object({
44365
+ ruleId: string(),
44366
+ /** The rule's current name (its frozen name when the rule is gone). */
44367
+ ruleName: string(),
44368
+ /** The input: the sensor of the match, else its camera. */
44369
+ deviceId: number().int(),
44370
+ /** The input's current name. */
44371
+ name: string(),
44372
+ /** When it was bypassed (ms epoch). */
44373
+ since: number(),
44374
+ /** Triggers from this input dropped since. */
44375
+ dropped: number().int().min(0)
44376
+ });
44050
44377
  var NcAlarmLiveSchema = object({
44051
44378
  state: AlarmStateSchema,
44052
44379
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44053
44380
  targetMode: AlarmArmModeSchema.nullable(),
44054
44381
  availableModes: array(AlarmArmModeSchema),
44055
44382
  openings: array(NcAlarmModeOpeningsSchema),
44056
- exclusions: array(NcAlarmExclusionViewSchema)
44383
+ exclusions: array(NcAlarmExclusionViewSchema),
44384
+ /**
44385
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44386
+ * Defaulted so an older hub answer still parses (as "none known").
44387
+ */
44388
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44057
44389
  });
44058
44390
  var NcAlarmConfigSchema = object({
44059
44391
  /**
@@ -54780,9 +55112,11 @@ var connectivityCapability = {
54780
55112
  */
54781
55113
  durability: "restored",
54782
55114
  /**
54783
- * History (D850): none — duplicates device-status.online (one authority for availability).
55115
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55116
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55117
+ * device's reachability, which stays `device-status.online`.
54784
55118
  */
54785
- history: "none",
55119
+ history: { fields: { connected: { kind: "boolean" } } },
54786
55120
  /** Clock fields: written, but excluded from the compare that decides
54787
55121
  * whether persisting is worth a SQLite commit. */
54788
55122
  volatileStateFields: ["lastChangedAt"]
@@ -55606,11 +55940,22 @@ var dishwasherCapability = {
55606
55940
  },
55607
55941
  runtimeState: DishwasherStatusSchema,
55608
55942
  durability: "session",
55609
- history: { fields: { progressPercent: {
55610
- kind: "gauge",
55611
- unit: "%",
55612
- deadband: 2
55613
- } } }
55943
+ history: { fields: {
55944
+ progressPercent: {
55945
+ kind: "gauge",
55946
+ unit: "%",
55947
+ deadband: 2
55948
+ },
55949
+ state: { kind: "enum" },
55950
+ operationState: { kind: "enum" },
55951
+ remainingSeconds: {
55952
+ kind: "gauge",
55953
+ unit: "s",
55954
+ minIntervalMs: 6e4
55955
+ },
55956
+ doorOpen: { kind: "boolean" },
55957
+ powerOn: { kind: "boolean" }
55958
+ } }
55614
55959
  };
55615
55960
  var DoorbellStatusSchema = object({
55616
55961
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55727,9 +56072,15 @@ var enumSensorCapability = {
55727
56072
  */
55728
56073
  durability: "restored",
55729
56074
  /**
55730
- * History (D850): none — text/enum state has no history (non-goal).
56075
+ * History (D850): the value as an `enum` series (an appliance's program or
56076
+ * operation state, an HVAC action). The option set is per device, so the
56077
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56078
+ * `format` carries a timestamp, not a state, and is not recorded.
55731
56079
  */
55732
- history: "none",
56080
+ history: { fields: { value: {
56081
+ kind: "enum",
56082
+ skipWhenSet: "format"
56083
+ } } },
55733
56084
  /** Clock fields: written, but excluded from the compare that decides
55734
56085
  * whether persisting is worth a SQLite commit. */
55735
56086
  volatileStateFields: ["lastFetchedAt"]
@@ -57703,9 +58054,10 @@ var lockControlCapability = {
57703
58054
  */
57704
58055
  durability: "restored",
57705
58056
  /**
57706
- * History (D850): none — enum state; lock events belong in the events ledger.
58057
+ * History (D850): the lock's state as an `enum` series — change-only, no
58058
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57707
58059
  */
57708
- history: "none",
58060
+ history: { fields: { state: { kind: "enum" } } },
57709
58061
  /** Clock fields: written, but excluded from the compare that decides
57710
58062
  * whether persisting is worth a SQLite commit. */
57711
58063
  volatileStateFields: ["lastChangedAt"]
@@ -57879,9 +58231,18 @@ var mediaPlayerCapability = {
57879
58231
  */
57880
58232
  durability: "session",
57881
58233
  /**
57882
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58234
+ * History (D850): volume (a level an operator or an automation sets; the
58235
+ * default 10 s floor folds a slider drag into its end value) and mute.
58236
+ * `positionMs` is not recorded: it moves continuously while playing.
57883
58237
  */
57884
- history: "none"
58238
+ history: { fields: {
58239
+ volumeLevel: {
58240
+ kind: "gauge",
58241
+ unit: "%",
58242
+ deadband: 1
58243
+ },
58244
+ isMuted: { kind: "boolean" }
58245
+ } }
57885
58246
  };
57886
58247
  /**
57887
58248
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63174,9 +63535,29 @@ var streamParamsCapability = {
63174
63535
  */
63175
63536
  durability: "restored",
63176
63537
  /**
63177
- * History (D850): none — encoder configuration.
63538
+ * History (D850): the configured bitrate and frame rate of the main and sub
63539
+ * profiles. Configuration, so change-only on the default floor: a point is an
63540
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63541
+ * quality over time must show.
63178
63542
  */
63179
- history: "none",
63543
+ history: { fields: {
63544
+ "main.bitrate": {
63545
+ kind: "gauge",
63546
+ unit: "kbps"
63547
+ },
63548
+ "main.framerate": {
63549
+ kind: "gauge",
63550
+ unit: "fps"
63551
+ },
63552
+ "sub.bitrate": {
63553
+ kind: "gauge",
63554
+ unit: "kbps"
63555
+ },
63556
+ "sub.framerate": {
63557
+ kind: "gauge",
63558
+ unit: "fps"
63559
+ }
63560
+ } },
63180
63561
  /** Clock fields: written, but excluded from the compare that decides
63181
63562
  * whether persisting is worth a SQLite commit. */
63182
63563
  volatileStateFields: ["lastFetchedAt"]
@@ -64011,26 +64392,6 @@ var ApiKeySummarySchema = object({
64011
64392
  createdAt: number(),
64012
64393
  lastUsedAt: number().optional()
64013
64394
  });
64014
- var ScopedTokenSummarySchema = object({
64015
- id: string(),
64016
- userId: string(),
64017
- name: string(),
64018
- tokenPrefix: string(),
64019
- scopes: array(TokenScopeSchema),
64020
- expiresAt: number().nullish(),
64021
- lastUsedAt: number().nullish(),
64022
- createdAt: number()
64023
- });
64024
- var CreateScopedTokenInputSchema = object({
64025
- userId: string(),
64026
- name: string(),
64027
- scopes: array(TokenScopeSchema),
64028
- expiresAt: number().optional()
64029
- });
64030
- var CreateScopedTokenResultSchema = object({
64031
- token: string(),
64032
- record: ScopedTokenSummarySchema
64033
- });
64034
64395
  var OauthSessionSummarySchema = object({
64035
64396
  id: string(),
64036
64397
  userId: string(),
@@ -64052,11 +64413,11 @@ var TotpStatusSchema = object({
64052
64413
  confirmedAt: number().nullable()
64053
64414
  });
64054
64415
  /**
64055
- * user-management — singleton capability for user accounts, API keys,
64056
- * and scoped tokens.
64416
+ * user-management — singleton capability for user accounts and the
64417
+ * legacy API-key rows.
64057
64418
  *
64058
64419
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64059
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
64420
+ * — the subset check on `setUserScopes` is moot
64060
64421
  * because non-admins never reach these. If/when we open non-admin
64061
64422
  * delegation, structural caller-scope subset check goes inside the
64062
64423
  * provider.
@@ -64113,15 +64474,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64113
64474
  kind: "mutation",
64114
64475
  auth: "admin",
64115
64476
  access: "delete"
64116
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64117
- kind: "mutation",
64118
- auth: "admin",
64119
- access: "create"
64120
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64121
- kind: "mutation",
64122
- auth: "admin",
64123
- access: "delete"
64124
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
64477
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64125
64478
  kind: "mutation",
64126
64479
  auth: "admin",
64127
64480
  access: "create"
@@ -66382,6 +66735,15 @@ var BaseDevice$1 = class {
66382
66735
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66383
66736
  * with a typed cast.
66384
66737
  *
66738
+ * Answer what you KNOW. A plain array is read as the complete list only
66739
+ * while this device is `online` and probed; return
66740
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66741
+ * now (no credentials, parent not connected, a failed or partial read) —
66742
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66743
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66744
+ * deleted only after a second agreeing complete read on a later probe (D49;
66745
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66746
+ *
66385
66747
  * Default: no children.
66386
66748
  */
66387
66749
  getAccessoryChildren() {
@@ -70211,7 +70573,7 @@ Object.freeze({
70211
70573
  capName: "llm",
70212
70574
  capScope: "system",
70213
70575
  addonId: null,
70214
- access: "view"
70576
+ access: "create"
70215
70577
  },
70216
70578
  "llm.listNodeModels": {
70217
70579
  capName: "llm",
@@ -70513,7 +70875,19 @@ Object.freeze({
70513
70875
  addonId: null,
70514
70876
  access: "view"
70515
70877
  },
70516
- "logDestination.query": {
70878
+ "logDestination.cancelRead": {
70879
+ capName: "log-destination",
70880
+ capScope: "system",
70881
+ addonId: null,
70882
+ access: "create"
70883
+ },
70884
+ "logDestination.describeRead": {
70885
+ capName: "log-destination",
70886
+ capScope: "system",
70887
+ addonId: null,
70888
+ access: "view"
70889
+ },
70890
+ "logDestination.read": {
70517
70891
  capName: "log-destination",
70518
70892
  capScope: "system",
70519
70893
  addonId: null,
@@ -74875,12 +75249,6 @@ Object.freeze({
74875
75249
  addonId: null,
74876
75250
  access: "create"
74877
75251
  },
74878
- "userManagement.createScopedToken": {
74879
- capName: "user-management",
74880
- capScope: "system",
74881
- addonId: null,
74882
- access: "create"
74883
- },
74884
75252
  "userManagement.createUser": {
74885
75253
  capName: "user-management",
74886
75254
  capScope: "system",
@@ -74929,12 +75297,6 @@ Object.freeze({
74929
75297
  addonId: null,
74930
75298
  access: "view"
74931
75299
  },
74932
- "userManagement.listScopedTokens": {
74933
- capName: "user-management",
74934
- capScope: "system",
74935
- addonId: null,
74936
- access: "view"
74937
- },
74938
75300
  "userManagement.listUsers": {
74939
75301
  capName: "user-management",
74940
75302
  capScope: "system",
@@ -74989,12 +75351,6 @@ Object.freeze({
74989
75351
  addonId: null,
74990
75352
  access: "delete"
74991
75353
  },
74992
- "userManagement.revokeScopedToken": {
74993
- capName: "user-management",
74994
- capScope: "system",
74995
- addonId: null,
74996
- access: "delete"
74997
- },
74998
75354
  "userManagement.setupTotp": {
74999
75355
  capName: "user-management",
75000
75356
  capScope: "system",
@@ -75025,12 +75381,6 @@ Object.freeze({
75025
75381
  addonId: null,
75026
75382
  access: "view"
75027
75383
  },
75028
- "userManagement.validateScopedToken": {
75029
- capName: "user-management",
75030
- capScope: "system",
75031
- addonId: null,
75032
- access: "view"
75033
- },
75034
75384
  "userManagement.verifyTotp": {
75035
75385
  capName: "user-management",
75036
75386
  capScope: "system",
@@ -76544,6 +76894,11 @@ Object.freeze({
76544
76894
  form: "single",
76545
76895
  optional: false
76546
76896
  }],
76897
+ "logDestination.read": [{
76898
+ name: "deviceId",
76899
+ form: "single",
76900
+ optional: true
76901
+ }],
76547
76902
  "mediaPlayer.getStatus": [{
76548
76903
  name: "deviceId",
76549
76904
  form: "single",