@camstack/addon-provider-reolink 1.2.191 → 1.2.193

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
@@ -5443,7 +5443,7 @@ var ZodIssueCode = {
5443
5443
  var ZodFirstPartyTypeKind;
5444
5444
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5445
5445
  //#endregion
5446
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5446
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5447
5447
  /**
5448
5448
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5449
5449
  * window to float samples (D455).
@@ -7830,9 +7830,9 @@ function normalizeAddonInitResult(result) {
7830
7830
  return result;
7831
7831
  }
7832
7832
  /**
7833
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7834
- * and validates them (`share-token.service.ts` builds its enum from this
7835
- * list); a data plane names the kinds it ACCEPTS in `share`.
7833
+ * The share-view scope kinds a share-link token can carry. The hub mints
7834
+ * and validates them (`ShareViewGrantSchema` builds its
7835
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7836
7836
  */
7837
7837
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7838
7838
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -13136,7 +13136,7 @@ var ConvertResultSchema = object({
13136
13136
  * `super_admin` — collapsed onto the single boolean because every
13137
13137
  * non-admin caller is governed by the same scope-check rules; the
13138
13138
  * distinction was only ever used to route role-specific procedures
13139
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
13139
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
13140
13140
  * with `isAdmin: false` + an explicit scope list.
13141
13141
  */
13142
13142
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -13325,10 +13325,12 @@ var AddonRoutesScopeSchema = object({
13325
13325
  type: literal("addon-routes"),
13326
13326
  access: array(MethodAccessSchema).min(1)
13327
13327
  });
13328
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
13328
13329
  var CredentialScopeSchema = union([
13329
13330
  literal("*"),
13330
13331
  ShareViewScopeSchema,
13331
13332
  AddonRoutesScopeSchema,
13333
+ PreferencesSelfScopeSchema,
13332
13334
  TokenScopeSchema
13333
13335
  ]);
13334
13336
  object({
@@ -13337,6 +13339,55 @@ object({
13337
13339
  jti: string().min(16),
13338
13340
  scopes: array(CredentialScopeSchema).min(1)
13339
13341
  });
13342
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
13343
+ /** A namespace's value: a JSON object, opaque to the hub. */
13344
+ var PreferenceValueSchema = record(string(), unknown());
13345
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
13346
+ /** A stored row, as the owner reads it. */
13347
+ var PreferenceRowSchema = object({
13348
+ namespace: PreferenceNamespaceSchema,
13349
+ value: PreferenceValueSchema,
13350
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
13351
+ revision: number().int().positive(),
13352
+ updatedAt: number().int(),
13353
+ /** The client id the last writer sent; `null` when it sent none. */
13354
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
13355
+ });
13356
+ object({
13357
+ /** Absent: every namespace the caller holds. */
13358
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
13359
+ object({ rows: array(PreferenceRowSchema) });
13360
+ object({
13361
+ namespace: PreferenceNamespaceSchema,
13362
+ value: PreferenceValueSchema,
13363
+ /**
13364
+ * The revision the edit was based on. Absent: last write wins. `0`: the
13365
+ * namespace must not exist yet. Any other value that is not the current
13366
+ * revision answers `conflict` and writes nothing.
13367
+ */
13368
+ baseRevision: number().int().nonnegative().optional(),
13369
+ deviceId: PreferenceDeviceIdSchema.optional()
13370
+ });
13371
+ discriminatedUnion("status", [object({
13372
+ status: literal("saved"),
13373
+ row: PreferenceRowSchema
13374
+ }), object({
13375
+ status: literal("conflict"),
13376
+ current: PreferenceRowSchema.nullable()
13377
+ })]);
13378
+ object({ namespace: PreferenceNamespaceSchema });
13379
+ object({
13380
+ /** `false` when the namespace did not exist. */
13381
+ deleted: boolean() });
13382
+ object({
13383
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
13384
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
13385
+ object({
13386
+ /** Every row whose revision differs from the client's, and every row it did not list. */
13387
+ rows: array(PreferenceRowSchema),
13388
+ /** Namespaces the client listed that no longer exist. */
13389
+ deleted: array(PreferenceNamespaceSchema)
13390
+ });
13340
13391
  _enum(["new-session", "step-up"]);
13341
13392
  /** The languages the hub's app landing pages are written in (D858). */
13342
13393
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17590,7 +17641,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17590
17641
  kind: literal("node"),
17591
17642
  nodeId: string().min(1)
17592
17643
  })]);
17644
+ /**
17645
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17646
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17647
+ * meaning); a rollup keeps the time spent in each state (`states`).
17648
+ */
17593
17649
  var DeviceHistoryKindSchema = _enum([
17650
+ "gauge",
17651
+ "counter",
17652
+ "boolean",
17653
+ "enum"
17654
+ ]);
17655
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17656
+ var DeviceHistoryProducerKindSchema = _enum([
17594
17657
  "gauge",
17595
17658
  "counter",
17596
17659
  "boolean"
@@ -17627,7 +17690,13 @@ var SeriesInfoSchema = object({
17627
17690
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17628
17691
  unit: string().nullable(),
17629
17692
  displayName: string(),
17630
- source: _enum(["cap", "addon"]),
17693
+ source: _enum([
17694
+ "cap",
17695
+ "addon",
17696
+ "derived"
17697
+ ]),
17698
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17699
+ values: array(string()).readonly().nullable(),
17631
17700
  firstTs: number(),
17632
17701
  lastTs: number()
17633
17702
  });
@@ -17641,17 +17710,31 @@ var QueryPointSchema = object({
17641
17710
  twMean: number().nullable(),
17642
17711
  min: number(),
17643
17712
  max: number(),
17644
- /** `null` is unknown, never zero (D393). */
17645
- last: number().nullable()
17713
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17714
+ last: number().nullable(),
17715
+ /**
17716
+ * The increase over the point: a `counter`'s growth since the previous point
17717
+ * or bucket (a drop is a reset, counted from zero), and for
17718
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17719
+ * every other kind, and when it cannot be known.
17720
+ */
17721
+ delta: number().nullable(),
17722
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17723
+ state: string().nullable(),
17724
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17725
+ states: record(string(), number()).nullable()
17646
17726
  });
17647
17727
  var QuerySeriesSchema = object({
17648
17728
  scope: string(),
17649
17729
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17650
17730
  before: object({
17651
17731
  t: number(),
17652
- value: number().nullable()
17732
+ value: number().nullable(),
17733
+ state: string().nullable()
17653
17734
  }).nullable(),
17654
- points: array(QueryPointSchema).readonly()
17735
+ points: array(QueryPointSchema).readonly(),
17736
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17737
+ derivedFrom: string().nullable()
17655
17738
  });
17656
17739
  /** The window part of a query, shared by the device and node forms. */
17657
17740
  var QueryWindowShape = {
@@ -17667,6 +17750,23 @@ var QueryResultSchema = object({
17667
17750
  series: array(QuerySeriesSchema).readonly(),
17668
17751
  truncated: boolean()
17669
17752
  });
17753
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17754
+ var QueryManyItemSchema = union([object({
17755
+ deviceId: number().int(),
17756
+ key: string(),
17757
+ scope: string().optional()
17758
+ }), object({
17759
+ forNodeId: string().min(1),
17760
+ key: string(),
17761
+ scope: string().optional()
17762
+ })]);
17763
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17764
+ ok: literal(true),
17765
+ result: QueryResultSchema
17766
+ }), object({
17767
+ ok: literal(false),
17768
+ error: string()
17769
+ })]);
17670
17770
  var TierStatusSchema = object({
17671
17771
  tier: DeviceHistoryResolutionSchema,
17672
17772
  /** `null` until the first background count answered. */
@@ -17722,16 +17822,22 @@ var DeviceHistoryStatusSchema = object({
17722
17822
  lastRefreshAt: number().nullable()
17723
17823
  })
17724
17824
  });
17725
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17825
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17726
17826
  deviceId: number().int(),
17727
17827
  ...QueryWindowShape
17728
17828
  }), QueryResultSchema), method(object({
17729
- nodeId: string().min(1),
17829
+ forNodeId: string().min(1),
17730
17830
  ...QueryWindowShape
17731
17831
  }), QueryResultSchema, { auth: "admin" }), method(object({
17832
+ items: array(QueryManyItemSchema).min(1).max(24),
17833
+ from: QueryWindowShape.from,
17834
+ to: QueryWindowShape.to,
17835
+ resolution: QueryWindowShape.resolution,
17836
+ maxPoints: QueryWindowShape.maxPoints
17837
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17732
17838
  name: string().regex(/^[a-z0-9-]+$/),
17733
17839
  subjectKind: _enum(["device", "node"]),
17734
- kind: DeviceHistoryKindSchema,
17840
+ kind: DeviceHistoryProducerKindSchema,
17735
17841
  unit: string().optional(),
17736
17842
  displayName: string().min(1),
17737
17843
  ingest: _enum(["points", "buckets"])
@@ -40645,38 +40751,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40645
40751
  auth: "admin",
40646
40752
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40647
40753
  });
40754
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40755
+ /** What a model (or, by default, every model of a kind) can do. */
40756
+ var LlmModelFeaturesSchema = object({
40757
+ vision: boolean(),
40758
+ tools: boolean(),
40759
+ streaming: boolean()
40760
+ });
40761
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40762
+ var LlmModelInfoSchema = object({
40763
+ id: string(),
40764
+ label: string().optional(),
40765
+ contextLength: number().int().positive().optional(),
40766
+ features: LlmModelFeaturesSchema.partial().optional()
40767
+ });
40648
40768
  /**
40649
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40650
- * methods concat-fan across providers; single-row methods route to ONE
40651
- * provider by the `addonId` in the call input (the notification-output
40652
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40653
- * (hub-placed); the cap stays open for future providers.
40654
- *
40655
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40656
- * `apiKey` is a password field — providers REDACT it on read and merge on
40657
- * write; a stored key NEVER round-trips to a client.
40769
+ * The provider-specific part of a profile, validated by the provider that owns
40770
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40771
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40772
+ * keychain, never in the row, and reads back as the redaction marker.
40658
40773
  */
40659
- var LlmProfileKindSchema = _enum([
40660
- "openai-compatible",
40661
- "openai",
40662
- "anthropic",
40663
- "google",
40664
- "managed-local",
40665
- "apple-foundation"
40666
- ]);
40774
+ var LlmProviderConfigSchema = record(string(), unknown());
40667
40775
  var LlmProfileSchema = object({
40668
40776
  id: string(),
40669
40777
  name: string(),
40778
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
40670
40779
  kind: LlmProfileKindSchema,
40671
40780
  /** Stamped by the provider — keeps the fanned catalog routable. */
40672
40781
  addonId: string(),
40673
40782
  enabled: boolean(),
40674
40783
  /** Vendor model id, or the managed runtime's loaded model. */
40675
40784
  model: string(),
40676
- /** Required for openai-compatible; override for cloud kinds. */
40677
- baseUrl: string().optional(),
40678
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
40679
- apiKey: string().optional(),
40680
40785
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
40681
40786
  * degraded to text — that shipped once and produced a confident answer to a
40682
40787
  * question about a picture nobody sent. */
@@ -40684,15 +40789,11 @@ var LlmProfileSchema = object({
40684
40789
  temperature: number().min(0).max(2).optional(),
40685
40790
  /** Nucleus sampling. Every wire we speak has it. */
40686
40791
  topP: number().min(0).max(1).optional(),
40687
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
40688
- * wire does, and the client drops it there (measured: the request body gets
40689
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
40690
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40792
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40793
+ * field in its editor only when its descriptor lists it in `profileFields`. */
40691
40794
  topK: number().int().positive().optional(),
40692
40795
  maxTokens: number().int().positive().optional(),
40693
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
40694
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
40695
- * the model with, so it is the one field that changes a PROCESS. */
40796
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
40696
40797
  contextLength: number().int().positive().optional(),
40697
40798
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
40698
40799
  * two system prompts fighting is worse than either alone). */
@@ -40718,16 +40819,37 @@ var LlmProfileSchema = object({
40718
40819
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40719
40820
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40720
40821
  toolsEnabled: boolean().default(false),
40721
- extraHeaders: record(string(), string()).optional(),
40722
- /** kind === 'managed-local' only (spec §4). */
40723
- runtime: ManagedRuntimeConfigSchema.optional(),
40724
- /**
40725
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40726
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40727
- * `supportsVision` on such a row is stamped by the provider from the node's
40728
- * reported `imageInput`, never taken from the operator (D62).
40729
- */
40730
- appleFoundation: object({ nodeId: string() }).optional()
40822
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40823
+ providerConfig: LlmProviderConfigSchema.default({})
40824
+ });
40825
+ /**
40826
+ * The common profile fields a kind's editor offers. The editor owns how each
40827
+ * one is drawn; the provider says which of them mean something on its wire.
40828
+ */
40829
+ var LlmProfileFieldSchema = _enum([
40830
+ "temperature",
40831
+ "topP",
40832
+ "topK",
40833
+ "maxTokens",
40834
+ "contextLength",
40835
+ "systemPrompt",
40836
+ "timeoutMs",
40837
+ "connectTimeoutMs",
40838
+ "firstTokenTimeoutMs",
40839
+ "idleTimeoutMs",
40840
+ "retry",
40841
+ "toolsEnabled"
40842
+ ]);
40843
+ /**
40844
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40845
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40846
+ * picker: that widget owns the model choice.
40847
+ */
40848
+ var LlmProviderWidgetSchema = object({
40849
+ id: string(),
40850
+ placement: _enum(["connection", "model"]),
40851
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40852
+ requires: array(string()).optional()
40731
40853
  });
40732
40854
  /** ConfigUISchema tree passed through untyped on the wire (the
40733
40855
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40736,11 +40858,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40736
40858
  var LlmProfileKindDescriptorSchema = object({
40737
40859
  kind: LlmProfileKindSchema,
40738
40860
  label: string(),
40861
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40739
40862
  icon: string(),
40740
40863
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40741
40864
  addonId: string(),
40742
- configSchema: ConfigSchemaPassthrough$3
40865
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40866
+ connectionSchema: ConfigSchemaPassthrough$3,
40867
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40868
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40869
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40870
+ features: LlmModelFeaturesSchema,
40871
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40872
+ visionEditable: boolean(),
40873
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40874
+ modelCatalog: _enum([
40875
+ "fetch",
40876
+ "static",
40877
+ "none"
40878
+ ]),
40879
+ staticModels: array(LlmModelInfoSchema).optional(),
40880
+ /** The common fields that mean something on this kind's wire. */
40881
+ profileFields: array(LlmProfileFieldSchema),
40882
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40883
+ });
40884
+ /**
40885
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40886
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40887
+ * untouched (absent or the redaction marker) is resolved server-side from the
40888
+ * stored profile — the browser never receives it.
40889
+ */
40890
+ var LlmListModelsInputSchema = object({
40891
+ addonId: string(),
40892
+ kind: LlmProfileKindSchema,
40893
+ profileId: string().optional(),
40894
+ connection: LlmProviderConfigSchema.optional()
40743
40895
  });
40896
+ var LlmListModelsErrorCodeSchema = _enum([
40897
+ "auth",
40898
+ "network",
40899
+ "unsupported",
40900
+ "invalid"
40901
+ ]);
40902
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40903
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40904
+ ok: literal(true),
40905
+ models: array(LlmModelInfoSchema)
40906
+ }), object({
40907
+ ok: literal(false),
40908
+ code: LlmListModelsErrorCodeSchema,
40909
+ message: string()
40910
+ })]);
40744
40911
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40745
40912
  var LlmDefaultSchema = object({
40746
40913
  selector: LlmDefaultSelectorSchema,
@@ -40840,7 +41007,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40840
41007
  kind: "mutation",
40841
41008
  auth: "admin",
40842
41009
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40843
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
41010
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
41011
+ kind: "mutation",
41012
+ auth: "admin"
41013
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40844
41014
  selector: LlmDefaultSelectorSchema,
40845
41015
  profileId: string().nullable()
40846
41016
  }), _void(), {
@@ -41029,14 +41199,106 @@ var LogEntrySchema = object({
41029
41199
  meta: record(string(), unknown()).optional(),
41030
41200
  tags: record(string(), string()).optional()
41031
41201
  });
41032
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
41033
- scope: array(string()).optional(),
41202
+ /**
41203
+ * A history READ against one destination (D898).
41204
+ *
41205
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
41206
+ * browser applied after the limit is what made a rare device's lines
41207
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
41208
+ * minted (opaque to everyone else): a file position for the rotated files, a
41209
+ * nanosecond timestamp for Loki.
41210
+ *
41211
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
41212
+ * store answers `done: false` with the cursor it reached and the bytes it
41213
+ * scanned, and the caller decides whether to go on. That is what makes a long
41214
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
41215
+ * flight, and not asking for the next slice ends the scan.
41216
+ */
41217
+ var LogReadQuerySchema = object({
41218
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
41219
+ requestId: string().min(1).max(64).optional(),
41220
+ /** The device the line is about (`tags.deviceId`, numeric). */
41221
+ deviceId: number().int().optional(),
41222
+ /**
41223
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
41224
+ * match. Not `addonId`: a cap router reads that name as "which provider".
41225
+ */
41226
+ fromAddonId: string().min(1).max(200).optional(),
41227
+ /**
41228
+ * The emitting node: matches the agent that emitted the line, the node
41229
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
41230
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
41231
+ * name as "which node's provider".
41232
+ */
41233
+ fromNodeId: string().min(1).max(200).optional(),
41234
+ /** Any other tag, exact match (AND). */
41235
+ tags: record(string(), union([string(), number()])).optional(),
41236
+ /** Severity FLOOR: this level and above. */
41034
41237
  level: LogLevelSchema.optional(),
41035
- since: date().optional(),
41036
- until: date().optional(),
41037
- limit: number().optional(),
41038
- tags: record(string(), string()).optional()
41039
- }), array(LogEntrySchema).readonly());
41238
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
41239
+ text: string().min(1).max(200).optional(),
41240
+ /** Epoch ms, inclusive. */
41241
+ since: number().optional(),
41242
+ /** Epoch ms, inclusive. */
41243
+ until: number().optional(),
41244
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
41245
+ before: string().min(1).max(1024).optional(),
41246
+ /** Newer than this cursor (exclusive). */
41247
+ after: string().min(1).max(1024).optional(),
41248
+ limit: number().int().min(1).max(1e3).optional(),
41249
+ /** Wall-clock bound of this slice. The provider caps it. */
41250
+ budgetMs: number().int().min(50).max(1e4).optional()
41251
+ });
41252
+ var LogReadResultSchema = object({
41253
+ /** Newest first. */
41254
+ entries: array(object({
41255
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
41256
+ id: string().optional(),
41257
+ /** Epoch ms. */
41258
+ timestamp: number(),
41259
+ level: LogLevelSchema,
41260
+ scope: string().optional(),
41261
+ message: string(),
41262
+ tags: record(string(), union([string(), number()])).optional(),
41263
+ meta: record(string(), unknown()).optional()
41264
+ })),
41265
+ /** Pass as `before` for the next older page; null when nothing older exists. */
41266
+ nextBefore: string().nullable(),
41267
+ /** Pass as `after` to read what arrived since; null when unknown. */
41268
+ nextAfter: string().nullable(),
41269
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
41270
+ scannedBytes: number().int().nonnegative(),
41271
+ /**
41272
+ * True when the scan in this direction reached the end of the store.
41273
+ * False with fewer than `limit` entries means the budget ran out first —
41274
+ * call again with `nextBefore` to go on.
41275
+ */
41276
+ done: boolean(),
41277
+ /** True when `cancelRead` ended this slice early. */
41278
+ cancelled: boolean().optional()
41279
+ });
41280
+ var LogReadCapabilitiesSchema = object({
41281
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41282
+ readable: boolean(),
41283
+ /** Why not, when `readable` is false — rendered next to the source. */
41284
+ reason: string().nullable(),
41285
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41286
+ filters: object({
41287
+ deviceId: boolean(),
41288
+ addonId: boolean(),
41289
+ nodeId: boolean(),
41290
+ tags: boolean(),
41291
+ level: boolean(),
41292
+ text: boolean(),
41293
+ timeRange: boolean()
41294
+ }),
41295
+ /** How far back the store reaches, when the provider knows (days). */
41296
+ retentionDays: number().nullable()
41297
+ });
41298
+ 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() }), {
41299
+ kind: "mutation",
41300
+ auth: "admin"
41301
+ });
41040
41302
  /**
41041
41303
  * `login-method` — collection cap through which auth addons contribute
41042
41304
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42754,9 +43016,11 @@ var alarmPanelCapability = {
42754
43016
  */
42755
43017
  durability: "restored",
42756
43018
  /**
42757
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
43019
+ * History (D850): the panel's lifecycle state as an `enum` series —
43020
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
43021
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42758
43022
  */
42759
- history: "none",
43023
+ history: { fields: { state: { kind: "enum" } } },
42760
43024
  /** Clock fields: written, but excluded from the compare that decides
42761
43025
  * whether persisting is worth a SQLite commit. */
42762
43026
  volatileStateFields: ["lastChangedAt"]
@@ -43634,6 +43898,33 @@ var NcRuleTargetSchema = object({
43634
43898
  params: record(string(), unknown()).optional()
43635
43899
  });
43636
43900
  /**
43901
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43902
+ *
43903
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43904
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43905
+ * to the zone that fired the rule) and renders it once at send time:
43906
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43907
+ * colour and every OTHER track visible at that instant outlined thin, each
43908
+ * labelled with class and confidence ("dog 87%").
43909
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43910
+ * - `clean` — the whole scene with nothing drawn on it.
43911
+ * - `none` — no picture.
43912
+ *
43913
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43914
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43915
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43916
+ * ship a crop on one event and a boxed scene on the next depending on which
43917
+ * stored kind had landed.
43918
+ */
43919
+ var NcMediaImageSchema = _enum([
43920
+ "scene-boxes",
43921
+ "crop",
43922
+ "clean",
43923
+ "none"
43924
+ ]);
43925
+ /**
43926
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43927
+ *
43637
43928
  * Media attachment policy (P1 still-image subset).
43638
43929
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43639
43930
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43647,6 +43938,8 @@ var NcRuleTargetSchema = object({
43647
43938
  * - `none` — no attachment.
43648
43939
  */
43649
43940
  /**
43941
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43942
+ *
43650
43943
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43651
43944
  * conflate it with the selection strategy and betray the request: asking for
43652
43945
  * the clean scene frame on an object-event owner used to start at
@@ -43675,16 +43968,29 @@ var NcMediaFrameSchema = _enum([
43675
43968
  */
43676
43969
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43677
43970
  var NcMediaPolicySchema = object({
43971
+ /**
43972
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43973
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43974
+ * triple below, at load and at every write, and the store keeps only this.
43975
+ */
43976
+ image: NcMediaImageSchema.optional(),
43977
+ /**
43978
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43979
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43980
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43981
+ * Replaces `zoneCrop`.
43982
+ */
43983
+ showTriggerZone: boolean().optional(),
43984
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43678
43985
  attach: _enum([
43679
43986
  "best",
43680
43987
  "best-matching",
43681
43988
  "keyFrame",
43682
43989
  "none"
43683
- ]).default("best"),
43684
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43990
+ ]).optional(),
43991
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43685
43992
  frame: NcMediaFrameSchema.optional(),
43686
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43687
- * "show me the ZONE", not the whole scene or the subject crop. */
43993
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43688
43994
  zoneCrop: boolean().optional(),
43689
43995
  /**
43690
43996
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43856,7 +44162,9 @@ var NcRuleInputSchema = object({
43856
44162
  * targets.
43857
44163
  */
43858
44164
  targetUsers: array(string()).optional(),
43859
- media: NcMediaPolicySchema.default({ attach: "best" }),
44165
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
44166
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
44167
+ media: NcMediaPolicySchema.default({}),
43860
44168
  throttle: NcThrottleSchema.default({
43861
44169
  cooldownSec: 60,
43862
44170
  scope: "rule-device"
@@ -44793,13 +45101,37 @@ var NcAlarmModeOpeningsSchema = object({
44793
45101
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44794
45102
  unknown: array(number().int())
44795
45103
  });
45104
+ /**
45105
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
45106
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
45107
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
45108
+ * never looks fully armed (D62: off must never look like broken).
45109
+ */
45110
+ var NcAlarmInputBypassViewSchema = object({
45111
+ ruleId: string(),
45112
+ /** The rule's current name (its frozen name when the rule is gone). */
45113
+ ruleName: string(),
45114
+ /** The input: the sensor of the match, else its camera. */
45115
+ deviceId: number().int(),
45116
+ /** The input's current name. */
45117
+ name: string(),
45118
+ /** When it was bypassed (ms epoch). */
45119
+ since: number(),
45120
+ /** Triggers from this input dropped since. */
45121
+ dropped: number().int().min(0)
45122
+ });
44796
45123
  var NcAlarmLiveSchema = object({
44797
45124
  state: AlarmStateSchema,
44798
45125
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44799
45126
  targetMode: AlarmArmModeSchema.nullable(),
44800
45127
  availableModes: array(AlarmArmModeSchema),
44801
45128
  openings: array(NcAlarmModeOpeningsSchema),
44802
- exclusions: array(NcAlarmExclusionViewSchema)
45129
+ exclusions: array(NcAlarmExclusionViewSchema),
45130
+ /**
45131
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
45132
+ * Defaulted so an older hub answer still parses (as "none known").
45133
+ */
45134
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44803
45135
  });
44804
45136
  var NcAlarmConfigSchema = object({
44805
45137
  /**
@@ -56040,9 +56372,11 @@ var connectivityCapability = {
56040
56372
  */
56041
56373
  durability: "restored",
56042
56374
  /**
56043
- * History (D850): none — duplicates device-status.online (one authority for availability).
56375
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
56376
+ * is the upstream entity's own link (a HA connectivity sensor), not the
56377
+ * device's reachability, which stays `device-status.online`.
56044
56378
  */
56045
- history: "none",
56379
+ history: { fields: { connected: { kind: "boolean" } } },
56046
56380
  /** Clock fields: written, but excluded from the compare that decides
56047
56381
  * whether persisting is worth a SQLite commit. */
56048
56382
  volatileStateFields: ["lastChangedAt"]
@@ -56866,11 +57200,22 @@ var dishwasherCapability = {
56866
57200
  },
56867
57201
  runtimeState: DishwasherStatusSchema,
56868
57202
  durability: "session",
56869
- history: { fields: { progressPercent: {
56870
- kind: "gauge",
56871
- unit: "%",
56872
- deadband: 2
56873
- } } }
57203
+ history: { fields: {
57204
+ progressPercent: {
57205
+ kind: "gauge",
57206
+ unit: "%",
57207
+ deadband: 2
57208
+ },
57209
+ state: { kind: "enum" },
57210
+ operationState: { kind: "enum" },
57211
+ remainingSeconds: {
57212
+ kind: "gauge",
57213
+ unit: "s",
57214
+ minIntervalMs: 6e4
57215
+ },
57216
+ doorOpen: { kind: "boolean" },
57217
+ powerOn: { kind: "boolean" }
57218
+ } }
56874
57219
  };
56875
57220
  var DoorbellStatusSchema = object({
56876
57221
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56987,9 +57332,15 @@ var enumSensorCapability = {
56987
57332
  */
56988
57333
  durability: "restored",
56989
57334
  /**
56990
- * History (D850): none — text/enum state has no history (non-goal).
57335
+ * History (D850): the value as an `enum` series (an appliance's program or
57336
+ * operation state, an HVAC action). The option set is per device, so the
57337
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
57338
+ * `format` carries a timestamp, not a state, and is not recorded.
56991
57339
  */
56992
- history: "none",
57340
+ history: { fields: { value: {
57341
+ kind: "enum",
57342
+ skipWhenSet: "format"
57343
+ } } },
56993
57344
  /** Clock fields: written, but excluded from the compare that decides
56994
57345
  * whether persisting is worth a SQLite commit. */
56995
57346
  volatileStateFields: ["lastFetchedAt"]
@@ -58963,9 +59314,10 @@ var lockControlCapability = {
58963
59314
  */
58964
59315
  durability: "restored",
58965
59316
  /**
58966
- * History (D850): none — enum state; lock events belong in the events ledger.
59317
+ * History (D850): the lock's state as an `enum` series — change-only, no
59318
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58967
59319
  */
58968
- history: "none",
59320
+ history: { fields: { state: { kind: "enum" } } },
58969
59321
  /** Clock fields: written, but excluded from the compare that decides
58970
59322
  * whether persisting is worth a SQLite commit. */
58971
59323
  volatileStateFields: ["lastChangedAt"]
@@ -59139,9 +59491,18 @@ var mediaPlayerCapability = {
59139
59491
  */
59140
59492
  durability: "session",
59141
59493
  /**
59142
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
59494
+ * History (D850): volume (a level an operator or an automation sets; the
59495
+ * default 10 s floor folds a slider drag into its end value) and mute.
59496
+ * `positionMs` is not recorded: it moves continuously while playing.
59143
59497
  */
59144
- history: "none"
59498
+ history: { fields: {
59499
+ volumeLevel: {
59500
+ kind: "gauge",
59501
+ unit: "%",
59502
+ deadband: 1
59503
+ },
59504
+ isMuted: { kind: "boolean" }
59505
+ } }
59145
59506
  };
59146
59507
  /**
59147
59508
  * mesh-network — collection cap for mesh-VPN providers.
@@ -64806,9 +65167,29 @@ var streamParamsCapability = {
64806
65167
  */
64807
65168
  durability: "restored",
64808
65169
  /**
64809
- * History (D850): none — encoder configuration.
65170
+ * History (D850): the configured bitrate and frame rate of the main and sub
65171
+ * profiles. Configuration, so change-only on the default floor: a point is an
65172
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
65173
+ * quality over time must show.
64810
65174
  */
64811
- history: "none",
65175
+ history: { fields: {
65176
+ "main.bitrate": {
65177
+ kind: "gauge",
65178
+ unit: "kbps"
65179
+ },
65180
+ "main.framerate": {
65181
+ kind: "gauge",
65182
+ unit: "fps"
65183
+ },
65184
+ "sub.bitrate": {
65185
+ kind: "gauge",
65186
+ unit: "kbps"
65187
+ },
65188
+ "sub.framerate": {
65189
+ kind: "gauge",
65190
+ unit: "fps"
65191
+ }
65192
+ } },
64812
65193
  /** Clock fields: written, but excluded from the compare that decides
64813
65194
  * whether persisting is worth a SQLite commit. */
64814
65195
  volatileStateFields: ["lastFetchedAt"]
@@ -65841,26 +66222,6 @@ var ApiKeySummarySchema = object({
65841
66222
  createdAt: number(),
65842
66223
  lastUsedAt: number().optional()
65843
66224
  });
65844
- var ScopedTokenSummarySchema = object({
65845
- id: string(),
65846
- userId: string(),
65847
- name: string(),
65848
- tokenPrefix: string(),
65849
- scopes: array(TokenScopeSchema),
65850
- expiresAt: number().nullish(),
65851
- lastUsedAt: number().nullish(),
65852
- createdAt: number()
65853
- });
65854
- var CreateScopedTokenInputSchema = object({
65855
- userId: string(),
65856
- name: string(),
65857
- scopes: array(TokenScopeSchema),
65858
- expiresAt: number().optional()
65859
- });
65860
- var CreateScopedTokenResultSchema = object({
65861
- token: string(),
65862
- record: ScopedTokenSummarySchema
65863
- });
65864
66225
  var OauthSessionSummarySchema = object({
65865
66226
  id: string(),
65866
66227
  userId: string(),
@@ -65882,11 +66243,11 @@ var TotpStatusSchema = object({
65882
66243
  confirmedAt: number().nullable()
65883
66244
  });
65884
66245
  /**
65885
- * user-management — singleton capability for user accounts, API keys,
65886
- * and scoped tokens.
66246
+ * user-management — singleton capability for user accounts and the
66247
+ * legacy API-key rows.
65887
66248
  *
65888
66249
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
65889
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
66250
+ * — the subset check on `setUserScopes` is moot
65890
66251
  * because non-admins never reach these. If/when we open non-admin
65891
66252
  * delegation, structural caller-scope subset check goes inside the
65892
66253
  * provider.
@@ -65943,15 +66304,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
65943
66304
  kind: "mutation",
65944
66305
  auth: "admin",
65945
66306
  access: "delete"
65946
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
65947
- kind: "mutation",
65948
- auth: "admin",
65949
- access: "create"
65950
- }), method(object({ id: string() }), object({ success: literal(true) }), {
65951
- kind: "mutation",
65952
- auth: "admin",
65953
- access: "delete"
65954
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
66307
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
65955
66308
  kind: "mutation",
65956
66309
  auth: "admin",
65957
66310
  access: "create"
@@ -68227,6 +68580,15 @@ var BaseDevice = class {
68227
68580
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
68228
68581
  * with a typed cast.
68229
68582
  *
68583
+ * Answer what you KNOW. A plain array is read as the complete list only
68584
+ * while this device is `online` and probed; return
68585
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
68586
+ * now (no credentials, parent not connected, a failed or partial read) —
68587
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
68588
+ * to say "connected, and this is the complete list" explicitly. A shrink is
68589
+ * deleted only after a second agreeing complete read on a later probe (D49;
68590
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
68591
+ *
68230
68592
  * Default: no children.
68231
68593
  */
68232
68594
  getAccessoryChildren() {
@@ -72056,7 +72418,7 @@ Object.freeze({
72056
72418
  capName: "llm",
72057
72419
  capScope: "system",
72058
72420
  addonId: null,
72059
- access: "view"
72421
+ access: "create"
72060
72422
  },
72061
72423
  "llm.listNodeModels": {
72062
72424
  capName: "llm",
@@ -72358,7 +72720,19 @@ Object.freeze({
72358
72720
  addonId: null,
72359
72721
  access: "view"
72360
72722
  },
72361
- "logDestination.query": {
72723
+ "logDestination.cancelRead": {
72724
+ capName: "log-destination",
72725
+ capScope: "system",
72726
+ addonId: null,
72727
+ access: "create"
72728
+ },
72729
+ "logDestination.describeRead": {
72730
+ capName: "log-destination",
72731
+ capScope: "system",
72732
+ addonId: null,
72733
+ access: "view"
72734
+ },
72735
+ "logDestination.read": {
72362
72736
  capName: "log-destination",
72363
72737
  capScope: "system",
72364
72738
  addonId: null,
@@ -76720,12 +77094,6 @@ Object.freeze({
76720
77094
  addonId: null,
76721
77095
  access: "create"
76722
77096
  },
76723
- "userManagement.createScopedToken": {
76724
- capName: "user-management",
76725
- capScope: "system",
76726
- addonId: null,
76727
- access: "create"
76728
- },
76729
77097
  "userManagement.createUser": {
76730
77098
  capName: "user-management",
76731
77099
  capScope: "system",
@@ -76774,12 +77142,6 @@ Object.freeze({
76774
77142
  addonId: null,
76775
77143
  access: "view"
76776
77144
  },
76777
- "userManagement.listScopedTokens": {
76778
- capName: "user-management",
76779
- capScope: "system",
76780
- addonId: null,
76781
- access: "view"
76782
- },
76783
77145
  "userManagement.listUsers": {
76784
77146
  capName: "user-management",
76785
77147
  capScope: "system",
@@ -76834,12 +77196,6 @@ Object.freeze({
76834
77196
  addonId: null,
76835
77197
  access: "delete"
76836
77198
  },
76837
- "userManagement.revokeScopedToken": {
76838
- capName: "user-management",
76839
- capScope: "system",
76840
- addonId: null,
76841
- access: "delete"
76842
- },
76843
77199
  "userManagement.setupTotp": {
76844
77200
  capName: "user-management",
76845
77201
  capScope: "system",
@@ -76870,12 +77226,6 @@ Object.freeze({
76870
77226
  addonId: null,
76871
77227
  access: "view"
76872
77228
  },
76873
- "userManagement.validateScopedToken": {
76874
- capName: "user-management",
76875
- capScope: "system",
76876
- addonId: null,
76877
- access: "view"
76878
- },
76879
77229
  "userManagement.verifyTotp": {
76880
77230
  capName: "user-management",
76881
77231
  capScope: "system",
@@ -78541,6 +78891,11 @@ Object.freeze({
78541
78891
  form: "single",
78542
78892
  optional: false
78543
78893
  }],
78894
+ "logDestination.read": [{
78895
+ name: "deviceId",
78896
+ form: "single",
78897
+ optional: true
78898
+ }],
78544
78899
  "mediaPlayer.getStatus": [{
78545
78900
  name: "deviceId",
78546
78901
  form: "single",