@camstack/addon-provider-tuya 0.2.129 → 0.2.131

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
@@ -6233,7 +6233,7 @@ var ZodIssueCode = {
6233
6233
  var ZodFirstPartyTypeKind;
6234
6234
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6235
6235
  //#endregion
6236
- //#region ../types/dist/sleep-BxjU_fJM.mjs
6236
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
6237
6237
  /**
6238
6238
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6239
6239
  * window to float samples (D455).
@@ -8616,9 +8616,9 @@ function normalizeAddonInitResult(result) {
8616
8616
  return result;
8617
8617
  }
8618
8618
  /**
8619
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
8620
- * and validates them (`share-token.service.ts` builds its enum from this
8621
- * list); a data plane names the kinds it ACCEPTS in `share`.
8619
+ * The share-view scope kinds a share-link token can carry. The hub mints
8620
+ * and validates them (`ShareViewGrantSchema` builds its
8621
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
8622
8622
  */
8623
8623
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
8624
8624
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -13308,7 +13308,7 @@ var ConvertResultSchema = object({
13308
13308
  * `super_admin` — collapsed onto the single boolean because every
13309
13309
  * non-admin caller is governed by the same scope-check rules; the
13310
13310
  * distinction was only ever used to route role-specific procedures
13311
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
13311
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
13312
13312
  * with `isAdmin: false` + an explicit scope list.
13313
13313
  */
13314
13314
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -13497,10 +13497,12 @@ var AddonRoutesScopeSchema = object({
13497
13497
  type: literal("addon-routes"),
13498
13498
  access: array(MethodAccessSchema).min(1)
13499
13499
  });
13500
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
13500
13501
  var CredentialScopeSchema = union([
13501
13502
  literal("*"),
13502
13503
  ShareViewScopeSchema,
13503
13504
  AddonRoutesScopeSchema,
13505
+ PreferencesSelfScopeSchema,
13504
13506
  TokenScopeSchema
13505
13507
  ]);
13506
13508
  object({
@@ -13509,6 +13511,55 @@ object({
13509
13511
  jti: string().min(16),
13510
13512
  scopes: array(CredentialScopeSchema).min(1)
13511
13513
  });
13514
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
13515
+ /** A namespace's value: a JSON object, opaque to the hub. */
13516
+ var PreferenceValueSchema = record(string(), unknown());
13517
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
13518
+ /** A stored row, as the owner reads it. */
13519
+ var PreferenceRowSchema = object({
13520
+ namespace: PreferenceNamespaceSchema,
13521
+ value: PreferenceValueSchema,
13522
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
13523
+ revision: number().int().positive(),
13524
+ updatedAt: number().int(),
13525
+ /** The client id the last writer sent; `null` when it sent none. */
13526
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
13527
+ });
13528
+ object({
13529
+ /** Absent: every namespace the caller holds. */
13530
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
13531
+ object({ rows: array(PreferenceRowSchema) });
13532
+ object({
13533
+ namespace: PreferenceNamespaceSchema,
13534
+ value: PreferenceValueSchema,
13535
+ /**
13536
+ * The revision the edit was based on. Absent: last write wins. `0`: the
13537
+ * namespace must not exist yet. Any other value that is not the current
13538
+ * revision answers `conflict` and writes nothing.
13539
+ */
13540
+ baseRevision: number().int().nonnegative().optional(),
13541
+ deviceId: PreferenceDeviceIdSchema.optional()
13542
+ });
13543
+ discriminatedUnion("status", [object({
13544
+ status: literal("saved"),
13545
+ row: PreferenceRowSchema
13546
+ }), object({
13547
+ status: literal("conflict"),
13548
+ current: PreferenceRowSchema.nullable()
13549
+ })]);
13550
+ object({ namespace: PreferenceNamespaceSchema });
13551
+ object({
13552
+ /** `false` when the namespace did not exist. */
13553
+ deleted: boolean() });
13554
+ object({
13555
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
13556
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
13557
+ object({
13558
+ /** Every row whose revision differs from the client's, and every row it did not list. */
13559
+ rows: array(PreferenceRowSchema),
13560
+ /** Namespaces the client listed that no longer exist. */
13561
+ deleted: array(PreferenceNamespaceSchema)
13562
+ });
13512
13563
  _enum(["new-session", "step-up"]);
13513
13564
  /** The languages the hub's app landing pages are written in (D858). */
13514
13565
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17762,7 +17813,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17762
17813
  kind: literal("node"),
17763
17814
  nodeId: string().min(1)
17764
17815
  })]);
17816
+ /**
17817
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17818
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17819
+ * meaning); a rollup keeps the time spent in each state (`states`).
17820
+ */
17765
17821
  var DeviceHistoryKindSchema = _enum([
17822
+ "gauge",
17823
+ "counter",
17824
+ "boolean",
17825
+ "enum"
17826
+ ]);
17827
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17828
+ var DeviceHistoryProducerKindSchema = _enum([
17766
17829
  "gauge",
17767
17830
  "counter",
17768
17831
  "boolean"
@@ -17799,7 +17862,13 @@ var SeriesInfoSchema = object({
17799
17862
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17800
17863
  unit: string().nullable(),
17801
17864
  displayName: string(),
17802
- source: _enum(["cap", "addon"]),
17865
+ source: _enum([
17866
+ "cap",
17867
+ "addon",
17868
+ "derived"
17869
+ ]),
17870
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17871
+ values: array(string()).readonly().nullable(),
17803
17872
  firstTs: number(),
17804
17873
  lastTs: number()
17805
17874
  });
@@ -17813,17 +17882,31 @@ var QueryPointSchema = object({
17813
17882
  twMean: number().nullable(),
17814
17883
  min: number(),
17815
17884
  max: number(),
17816
- /** `null` is unknown, never zero (D393). */
17817
- last: number().nullable()
17885
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17886
+ last: number().nullable(),
17887
+ /**
17888
+ * The increase over the point: a `counter`'s growth since the previous point
17889
+ * or bucket (a drop is a reset, counted from zero), and for
17890
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17891
+ * every other kind, and when it cannot be known.
17892
+ */
17893
+ delta: number().nullable(),
17894
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17895
+ state: string().nullable(),
17896
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17897
+ states: record(string(), number()).nullable()
17818
17898
  });
17819
17899
  var QuerySeriesSchema = object({
17820
17900
  scope: string(),
17821
17901
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17822
17902
  before: object({
17823
17903
  t: number(),
17824
- value: number().nullable()
17904
+ value: number().nullable(),
17905
+ state: string().nullable()
17825
17906
  }).nullable(),
17826
- points: array(QueryPointSchema).readonly()
17907
+ points: array(QueryPointSchema).readonly(),
17908
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17909
+ derivedFrom: string().nullable()
17827
17910
  });
17828
17911
  /** The window part of a query, shared by the device and node forms. */
17829
17912
  var QueryWindowShape = {
@@ -17839,6 +17922,23 @@ var QueryResultSchema = object({
17839
17922
  series: array(QuerySeriesSchema).readonly(),
17840
17923
  truncated: boolean()
17841
17924
  });
17925
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17926
+ var QueryManyItemSchema = union([object({
17927
+ deviceId: number().int(),
17928
+ key: string(),
17929
+ scope: string().optional()
17930
+ }), object({
17931
+ forNodeId: string().min(1),
17932
+ key: string(),
17933
+ scope: string().optional()
17934
+ })]);
17935
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17936
+ ok: literal(true),
17937
+ result: QueryResultSchema
17938
+ }), object({
17939
+ ok: literal(false),
17940
+ error: string()
17941
+ })]);
17842
17942
  var TierStatusSchema = object({
17843
17943
  tier: DeviceHistoryResolutionSchema,
17844
17944
  /** `null` until the first background count answered. */
@@ -17894,16 +17994,22 @@ var DeviceHistoryStatusSchema = object({
17894
17994
  lastRefreshAt: number().nullable()
17895
17995
  })
17896
17996
  });
17897
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17997
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17898
17998
  deviceId: number().int(),
17899
17999
  ...QueryWindowShape
17900
18000
  }), QueryResultSchema), method(object({
17901
- nodeId: string().min(1),
18001
+ forNodeId: string().min(1),
17902
18002
  ...QueryWindowShape
17903
18003
  }), QueryResultSchema, { auth: "admin" }), method(object({
18004
+ items: array(QueryManyItemSchema).min(1).max(24),
18005
+ from: QueryWindowShape.from,
18006
+ to: QueryWindowShape.to,
18007
+ resolution: QueryWindowShape.resolution,
18008
+ maxPoints: QueryWindowShape.maxPoints
18009
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17904
18010
  name: string().regex(/^[a-z0-9-]+$/),
17905
18011
  subjectKind: _enum(["device", "node"]),
17906
- kind: DeviceHistoryKindSchema,
18012
+ kind: DeviceHistoryProducerKindSchema,
17907
18013
  unit: string().optional(),
17908
18014
  displayName: string().min(1),
17909
18015
  ingest: _enum(["points", "buckets"])
@@ -40702,38 +40808,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40702
40808
  auth: "admin",
40703
40809
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40704
40810
  });
40811
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40812
+ /** What a model (or, by default, every model of a kind) can do. */
40813
+ var LlmModelFeaturesSchema = object({
40814
+ vision: boolean(),
40815
+ tools: boolean(),
40816
+ streaming: boolean()
40817
+ });
40818
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40819
+ var LlmModelInfoSchema = object({
40820
+ id: string(),
40821
+ label: string().optional(),
40822
+ contextLength: number().int().positive().optional(),
40823
+ features: LlmModelFeaturesSchema.partial().optional()
40824
+ });
40705
40825
  /**
40706
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40707
- * methods concat-fan across providers; single-row methods route to ONE
40708
- * provider by the `addonId` in the call input (the notification-output
40709
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40710
- * (hub-placed); the cap stays open for future providers.
40711
- *
40712
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40713
- * `apiKey` is a password field — providers REDACT it on read and merge on
40714
- * write; a stored key NEVER round-trips to a client.
40826
+ * The provider-specific part of a profile, validated by the provider that owns
40827
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40828
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40829
+ * keychain, never in the row, and reads back as the redaction marker.
40715
40830
  */
40716
- var LlmProfileKindSchema = _enum([
40717
- "openai-compatible",
40718
- "openai",
40719
- "anthropic",
40720
- "google",
40721
- "managed-local",
40722
- "apple-foundation"
40723
- ]);
40831
+ var LlmProviderConfigSchema = record(string(), unknown());
40724
40832
  var LlmProfileSchema = object({
40725
40833
  id: string(),
40726
40834
  name: string(),
40835
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
40727
40836
  kind: LlmProfileKindSchema,
40728
40837
  /** Stamped by the provider — keeps the fanned catalog routable. */
40729
40838
  addonId: string(),
40730
40839
  enabled: boolean(),
40731
40840
  /** Vendor model id, or the managed runtime's loaded model. */
40732
40841
  model: string(),
40733
- /** Required for openai-compatible; override for cloud kinds. */
40734
- baseUrl: string().optional(),
40735
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
40736
- apiKey: string().optional(),
40737
40842
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
40738
40843
  * degraded to text — that shipped once and produced a confident answer to a
40739
40844
  * question about a picture nobody sent. */
@@ -40741,15 +40846,11 @@ var LlmProfileSchema = object({
40741
40846
  temperature: number().min(0).max(2).optional(),
40742
40847
  /** Nucleus sampling. Every wire we speak has it. */
40743
40848
  topP: number().min(0).max(1).optional(),
40744
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
40745
- * wire does, and the client drops it there (measured: the request body gets
40746
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
40747
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40849
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40850
+ * field in its editor only when its descriptor lists it in `profileFields`. */
40748
40851
  topK: number().int().positive().optional(),
40749
40852
  maxTokens: number().int().positive().optional(),
40750
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
40751
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
40752
- * the model with, so it is the one field that changes a PROCESS. */
40853
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
40753
40854
  contextLength: number().int().positive().optional(),
40754
40855
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
40755
40856
  * two system prompts fighting is worse than either alone). */
@@ -40775,16 +40876,37 @@ var LlmProfileSchema = object({
40775
40876
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40776
40877
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40777
40878
  toolsEnabled: boolean().default(false),
40778
- extraHeaders: record(string(), string()).optional(),
40779
- /** kind === 'managed-local' only (spec §4). */
40780
- runtime: ManagedRuntimeConfigSchema.optional(),
40781
- /**
40782
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40783
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40784
- * `supportsVision` on such a row is stamped by the provider from the node's
40785
- * reported `imageInput`, never taken from the operator (D62).
40786
- */
40787
- appleFoundation: object({ nodeId: string() }).optional()
40879
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40880
+ providerConfig: LlmProviderConfigSchema.default({})
40881
+ });
40882
+ /**
40883
+ * The common profile fields a kind's editor offers. The editor owns how each
40884
+ * one is drawn; the provider says which of them mean something on its wire.
40885
+ */
40886
+ var LlmProfileFieldSchema = _enum([
40887
+ "temperature",
40888
+ "topP",
40889
+ "topK",
40890
+ "maxTokens",
40891
+ "contextLength",
40892
+ "systemPrompt",
40893
+ "timeoutMs",
40894
+ "connectTimeoutMs",
40895
+ "firstTokenTimeoutMs",
40896
+ "idleTimeoutMs",
40897
+ "retry",
40898
+ "toolsEnabled"
40899
+ ]);
40900
+ /**
40901
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40902
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40903
+ * picker: that widget owns the model choice.
40904
+ */
40905
+ var LlmProviderWidgetSchema = object({
40906
+ id: string(),
40907
+ placement: _enum(["connection", "model"]),
40908
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40909
+ requires: array(string()).optional()
40788
40910
  });
40789
40911
  /** ConfigUISchema tree passed through untyped on the wire (the
40790
40912
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40793,11 +40915,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40793
40915
  var LlmProfileKindDescriptorSchema = object({
40794
40916
  kind: LlmProfileKindSchema,
40795
40917
  label: string(),
40918
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40796
40919
  icon: string(),
40797
40920
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40798
40921
  addonId: string(),
40799
- configSchema: ConfigSchemaPassthrough$3
40922
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40923
+ connectionSchema: ConfigSchemaPassthrough$3,
40924
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40925
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40926
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40927
+ features: LlmModelFeaturesSchema,
40928
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40929
+ visionEditable: boolean(),
40930
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40931
+ modelCatalog: _enum([
40932
+ "fetch",
40933
+ "static",
40934
+ "none"
40935
+ ]),
40936
+ staticModels: array(LlmModelInfoSchema).optional(),
40937
+ /** The common fields that mean something on this kind's wire. */
40938
+ profileFields: array(LlmProfileFieldSchema),
40939
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40800
40940
  });
40941
+ /**
40942
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40943
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40944
+ * untouched (absent or the redaction marker) is resolved server-side from the
40945
+ * stored profile — the browser never receives it.
40946
+ */
40947
+ var LlmListModelsInputSchema = object({
40948
+ addonId: string(),
40949
+ kind: LlmProfileKindSchema,
40950
+ profileId: string().optional(),
40951
+ connection: LlmProviderConfigSchema.optional()
40952
+ });
40953
+ var LlmListModelsErrorCodeSchema = _enum([
40954
+ "auth",
40955
+ "network",
40956
+ "unsupported",
40957
+ "invalid"
40958
+ ]);
40959
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40960
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40961
+ ok: literal(true),
40962
+ models: array(LlmModelInfoSchema)
40963
+ }), object({
40964
+ ok: literal(false),
40965
+ code: LlmListModelsErrorCodeSchema,
40966
+ message: string()
40967
+ })]);
40801
40968
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40802
40969
  var LlmDefaultSchema = object({
40803
40970
  selector: LlmDefaultSelectorSchema,
@@ -40897,7 +41064,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40897
41064
  kind: "mutation",
40898
41065
  auth: "admin",
40899
41066
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40900
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
41067
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
41068
+ kind: "mutation",
41069
+ auth: "admin"
41070
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40901
41071
  selector: LlmDefaultSelectorSchema,
40902
41072
  profileId: string().nullable()
40903
41073
  }), _void(), {
@@ -41065,14 +41235,106 @@ var LogEntrySchema = object({
41065
41235
  meta: record(string(), unknown()).optional(),
41066
41236
  tags: record(string(), string()).optional()
41067
41237
  });
41068
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
41069
- scope: array(string()).optional(),
41238
+ /**
41239
+ * A history READ against one destination (D898).
41240
+ *
41241
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
41242
+ * browser applied after the limit is what made a rare device's lines
41243
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
41244
+ * minted (opaque to everyone else): a file position for the rotated files, a
41245
+ * nanosecond timestamp for Loki.
41246
+ *
41247
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
41248
+ * store answers `done: false` with the cursor it reached and the bytes it
41249
+ * scanned, and the caller decides whether to go on. That is what makes a long
41250
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
41251
+ * flight, and not asking for the next slice ends the scan.
41252
+ */
41253
+ var LogReadQuerySchema = object({
41254
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
41255
+ requestId: string().min(1).max(64).optional(),
41256
+ /** The device the line is about (`tags.deviceId`, numeric). */
41257
+ deviceId: number().int().optional(),
41258
+ /**
41259
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
41260
+ * match. Not `addonId`: a cap router reads that name as "which provider".
41261
+ */
41262
+ fromAddonId: string().min(1).max(200).optional(),
41263
+ /**
41264
+ * The emitting node: matches the agent that emitted the line, the node
41265
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
41266
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
41267
+ * name as "which node's provider".
41268
+ */
41269
+ fromNodeId: string().min(1).max(200).optional(),
41270
+ /** Any other tag, exact match (AND). */
41271
+ tags: record(string(), union([string(), number()])).optional(),
41272
+ /** Severity FLOOR: this level and above. */
41070
41273
  level: LogLevelSchema.optional(),
41071
- since: date().optional(),
41072
- until: date().optional(),
41073
- limit: number().optional(),
41074
- tags: record(string(), string()).optional()
41075
- }), array(LogEntrySchema).readonly());
41274
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
41275
+ text: string().min(1).max(200).optional(),
41276
+ /** Epoch ms, inclusive. */
41277
+ since: number().optional(),
41278
+ /** Epoch ms, inclusive. */
41279
+ until: number().optional(),
41280
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
41281
+ before: string().min(1).max(1024).optional(),
41282
+ /** Newer than this cursor (exclusive). */
41283
+ after: string().min(1).max(1024).optional(),
41284
+ limit: number().int().min(1).max(1e3).optional(),
41285
+ /** Wall-clock bound of this slice. The provider caps it. */
41286
+ budgetMs: number().int().min(50).max(1e4).optional()
41287
+ });
41288
+ var LogReadResultSchema = object({
41289
+ /** Newest first. */
41290
+ entries: array(object({
41291
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
41292
+ id: string().optional(),
41293
+ /** Epoch ms. */
41294
+ timestamp: number(),
41295
+ level: LogLevelSchema,
41296
+ scope: string().optional(),
41297
+ message: string(),
41298
+ tags: record(string(), union([string(), number()])).optional(),
41299
+ meta: record(string(), unknown()).optional()
41300
+ })),
41301
+ /** Pass as `before` for the next older page; null when nothing older exists. */
41302
+ nextBefore: string().nullable(),
41303
+ /** Pass as `after` to read what arrived since; null when unknown. */
41304
+ nextAfter: string().nullable(),
41305
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
41306
+ scannedBytes: number().int().nonnegative(),
41307
+ /**
41308
+ * True when the scan in this direction reached the end of the store.
41309
+ * False with fewer than `limit` entries means the budget ran out first —
41310
+ * call again with `nextBefore` to go on.
41311
+ */
41312
+ done: boolean(),
41313
+ /** True when `cancelRead` ended this slice early. */
41314
+ cancelled: boolean().optional()
41315
+ });
41316
+ var LogReadCapabilitiesSchema = object({
41317
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41318
+ readable: boolean(),
41319
+ /** Why not, when `readable` is false — rendered next to the source. */
41320
+ reason: string().nullable(),
41321
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41322
+ filters: object({
41323
+ deviceId: boolean(),
41324
+ addonId: boolean(),
41325
+ nodeId: boolean(),
41326
+ tags: boolean(),
41327
+ level: boolean(),
41328
+ text: boolean(),
41329
+ timeRange: boolean()
41330
+ }),
41331
+ /** How far back the store reaches, when the provider knows (days). */
41332
+ retentionDays: number().nullable()
41333
+ });
41334
+ 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() }), {
41335
+ kind: "mutation",
41336
+ auth: "admin"
41337
+ });
41076
41338
  /**
41077
41339
  * `login-method` — collection cap through which auth addons contribute
41078
41340
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42790,9 +43052,11 @@ var alarmPanelCapability = {
42790
43052
  */
42791
43053
  durability: "restored",
42792
43054
  /**
42793
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
43055
+ * History (D850): the panel's lifecycle state as an `enum` series —
43056
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
43057
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42794
43058
  */
42795
- history: "none",
43059
+ history: { fields: { state: { kind: "enum" } } },
42796
43060
  /** Clock fields: written, but excluded from the compare that decides
42797
43061
  * whether persisting is worth a SQLite commit. */
42798
43062
  volatileStateFields: ["lastChangedAt"]
@@ -43670,6 +43934,33 @@ var NcRuleTargetSchema = object({
43670
43934
  params: record(string(), unknown()).optional()
43671
43935
  });
43672
43936
  /**
43937
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43938
+ *
43939
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43940
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43941
+ * to the zone that fired the rule) and renders it once at send time:
43942
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43943
+ * colour and every OTHER track visible at that instant outlined thin, each
43944
+ * labelled with class and confidence ("dog 87%").
43945
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43946
+ * - `clean` — the whole scene with nothing drawn on it.
43947
+ * - `none` — no picture.
43948
+ *
43949
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43950
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43951
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43952
+ * ship a crop on one event and a boxed scene on the next depending on which
43953
+ * stored kind had landed.
43954
+ */
43955
+ var NcMediaImageSchema = _enum([
43956
+ "scene-boxes",
43957
+ "crop",
43958
+ "clean",
43959
+ "none"
43960
+ ]);
43961
+ /**
43962
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43963
+ *
43673
43964
  * Media attachment policy (P1 still-image subset).
43674
43965
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43675
43966
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43683,6 +43974,8 @@ var NcRuleTargetSchema = object({
43683
43974
  * - `none` — no attachment.
43684
43975
  */
43685
43976
  /**
43977
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43978
+ *
43686
43979
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43687
43980
  * conflate it with the selection strategy and betray the request: asking for
43688
43981
  * the clean scene frame on an object-event owner used to start at
@@ -43711,16 +44004,29 @@ var NcMediaFrameSchema = _enum([
43711
44004
  */
43712
44005
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43713
44006
  var NcMediaPolicySchema = object({
44007
+ /**
44008
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
44009
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
44010
+ * triple below, at load and at every write, and the store keeps only this.
44011
+ */
44012
+ image: NcMediaImageSchema.optional(),
44013
+ /**
44014
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
44015
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
44016
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
44017
+ * Replaces `zoneCrop`.
44018
+ */
44019
+ showTriggerZone: boolean().optional(),
44020
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43714
44021
  attach: _enum([
43715
44022
  "best",
43716
44023
  "best-matching",
43717
44024
  "keyFrame",
43718
44025
  "none"
43719
- ]).default("best"),
43720
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
44026
+ ]).optional(),
44027
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43721
44028
  frame: NcMediaFrameSchema.optional(),
43722
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43723
- * "show me the ZONE", not the whole scene or the subject crop. */
44029
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43724
44030
  zoneCrop: boolean().optional(),
43725
44031
  /**
43726
44032
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43892,7 +44198,9 @@ var NcRuleInputSchema = object({
43892
44198
  * targets.
43893
44199
  */
43894
44200
  targetUsers: array(string()).optional(),
43895
- media: NcMediaPolicySchema.default({ attach: "best" }),
44201
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
44202
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
44203
+ media: NcMediaPolicySchema.default({}),
43896
44204
  throttle: NcThrottleSchema.default({
43897
44205
  cooldownSec: 60,
43898
44206
  scope: "rule-device"
@@ -44829,13 +45137,37 @@ var NcAlarmModeOpeningsSchema = object({
44829
45137
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44830
45138
  unknown: array(number().int())
44831
45139
  });
45140
+ /**
45141
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
45142
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
45143
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
45144
+ * never looks fully armed (D62: off must never look like broken).
45145
+ */
45146
+ var NcAlarmInputBypassViewSchema = object({
45147
+ ruleId: string(),
45148
+ /** The rule's current name (its frozen name when the rule is gone). */
45149
+ ruleName: string(),
45150
+ /** The input: the sensor of the match, else its camera. */
45151
+ deviceId: number().int(),
45152
+ /** The input's current name. */
45153
+ name: string(),
45154
+ /** When it was bypassed (ms epoch). */
45155
+ since: number(),
45156
+ /** Triggers from this input dropped since. */
45157
+ dropped: number().int().min(0)
45158
+ });
44832
45159
  var NcAlarmLiveSchema = object({
44833
45160
  state: AlarmStateSchema,
44834
45161
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44835
45162
  targetMode: AlarmArmModeSchema.nullable(),
44836
45163
  availableModes: array(AlarmArmModeSchema),
44837
45164
  openings: array(NcAlarmModeOpeningsSchema),
44838
- exclusions: array(NcAlarmExclusionViewSchema)
45165
+ exclusions: array(NcAlarmExclusionViewSchema),
45166
+ /**
45167
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
45168
+ * Defaulted so an older hub answer still parses (as "none known").
45169
+ */
45170
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44839
45171
  });
44840
45172
  var NcAlarmConfigSchema = object({
44841
45173
  /**
@@ -55562,9 +55894,11 @@ var connectivityCapability = {
55562
55894
  */
55563
55895
  durability: "restored",
55564
55896
  /**
55565
- * History (D850): none — duplicates device-status.online (one authority for availability).
55897
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55898
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55899
+ * device's reachability, which stays `device-status.online`.
55566
55900
  */
55567
- history: "none",
55901
+ history: { fields: { connected: { kind: "boolean" } } },
55568
55902
  /** Clock fields: written, but excluded from the compare that decides
55569
55903
  * whether persisting is worth a SQLite commit. */
55570
55904
  volatileStateFields: ["lastChangedAt"]
@@ -56388,11 +56722,22 @@ var dishwasherCapability = {
56388
56722
  },
56389
56723
  runtimeState: DishwasherStatusSchema,
56390
56724
  durability: "session",
56391
- history: { fields: { progressPercent: {
56392
- kind: "gauge",
56393
- unit: "%",
56394
- deadband: 2
56395
- } } }
56725
+ history: { fields: {
56726
+ progressPercent: {
56727
+ kind: "gauge",
56728
+ unit: "%",
56729
+ deadband: 2
56730
+ },
56731
+ state: { kind: "enum" },
56732
+ operationState: { kind: "enum" },
56733
+ remainingSeconds: {
56734
+ kind: "gauge",
56735
+ unit: "s",
56736
+ minIntervalMs: 6e4
56737
+ },
56738
+ doorOpen: { kind: "boolean" },
56739
+ powerOn: { kind: "boolean" }
56740
+ } }
56396
56741
  };
56397
56742
  var DoorbellStatusSchema = object({
56398
56743
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56509,9 +56854,15 @@ var enumSensorCapability = {
56509
56854
  */
56510
56855
  durability: "restored",
56511
56856
  /**
56512
- * History (D850): none — text/enum state has no history (non-goal).
56857
+ * History (D850): the value as an `enum` series (an appliance's program or
56858
+ * operation state, an HVAC action). The option set is per device, so the
56859
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56860
+ * `format` carries a timestamp, not a state, and is not recorded.
56513
56861
  */
56514
- history: "none",
56862
+ history: { fields: { value: {
56863
+ kind: "enum",
56864
+ skipWhenSet: "format"
56865
+ } } },
56515
56866
  /** Clock fields: written, but excluded from the compare that decides
56516
56867
  * whether persisting is worth a SQLite commit. */
56517
56868
  volatileStateFields: ["lastFetchedAt"]
@@ -58485,9 +58836,10 @@ var lockControlCapability = {
58485
58836
  */
58486
58837
  durability: "restored",
58487
58838
  /**
58488
- * History (D850): none — enum state; lock events belong in the events ledger.
58839
+ * History (D850): the lock's state as an `enum` series — change-only, no
58840
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58489
58841
  */
58490
- history: "none",
58842
+ history: { fields: { state: { kind: "enum" } } },
58491
58843
  /** Clock fields: written, but excluded from the compare that decides
58492
58844
  * whether persisting is worth a SQLite commit. */
58493
58845
  volatileStateFields: ["lastChangedAt"]
@@ -58661,9 +59013,18 @@ var mediaPlayerCapability = {
58661
59013
  */
58662
59014
  durability: "session",
58663
59015
  /**
58664
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
59016
+ * History (D850): volume (a level an operator or an automation sets; the
59017
+ * default 10 s floor folds a slider drag into its end value) and mute.
59018
+ * `positionMs` is not recorded: it moves continuously while playing.
58665
59019
  */
58666
- history: "none"
59020
+ history: { fields: {
59021
+ volumeLevel: {
59022
+ kind: "gauge",
59023
+ unit: "%",
59024
+ deadband: 1
59025
+ },
59026
+ isMuted: { kind: "boolean" }
59027
+ } }
58667
59028
  };
58668
59029
  /**
58669
59030
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63956,9 +64317,29 @@ var streamParamsCapability = {
63956
64317
  */
63957
64318
  durability: "restored",
63958
64319
  /**
63959
- * History (D850): none — encoder configuration.
64320
+ * History (D850): the configured bitrate and frame rate of the main and sub
64321
+ * profiles. Configuration, so change-only on the default floor: a point is an
64322
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64323
+ * quality over time must show.
63960
64324
  */
63961
- history: "none",
64325
+ history: { fields: {
64326
+ "main.bitrate": {
64327
+ kind: "gauge",
64328
+ unit: "kbps"
64329
+ },
64330
+ "main.framerate": {
64331
+ kind: "gauge",
64332
+ unit: "fps"
64333
+ },
64334
+ "sub.bitrate": {
64335
+ kind: "gauge",
64336
+ unit: "kbps"
64337
+ },
64338
+ "sub.framerate": {
64339
+ kind: "gauge",
64340
+ unit: "fps"
64341
+ }
64342
+ } },
63962
64343
  /** Clock fields: written, but excluded from the compare that decides
63963
64344
  * whether persisting is worth a SQLite commit. */
63964
64345
  volatileStateFields: ["lastFetchedAt"]
@@ -64793,26 +65174,6 @@ var ApiKeySummarySchema = object({
64793
65174
  createdAt: number(),
64794
65175
  lastUsedAt: number().optional()
64795
65176
  });
64796
- var ScopedTokenSummarySchema = object({
64797
- id: string(),
64798
- userId: string(),
64799
- name: string(),
64800
- tokenPrefix: string(),
64801
- scopes: array(TokenScopeSchema),
64802
- expiresAt: number().nullish(),
64803
- lastUsedAt: number().nullish(),
64804
- createdAt: number()
64805
- });
64806
- var CreateScopedTokenInputSchema = object({
64807
- userId: string(),
64808
- name: string(),
64809
- scopes: array(TokenScopeSchema),
64810
- expiresAt: number().optional()
64811
- });
64812
- var CreateScopedTokenResultSchema = object({
64813
- token: string(),
64814
- record: ScopedTokenSummarySchema
64815
- });
64816
65177
  var OauthSessionSummarySchema = object({
64817
65178
  id: string(),
64818
65179
  userId: string(),
@@ -64834,11 +65195,11 @@ var TotpStatusSchema = object({
64834
65195
  confirmedAt: number().nullable()
64835
65196
  });
64836
65197
  /**
64837
- * user-management — singleton capability for user accounts, API keys,
64838
- * and scoped tokens.
65198
+ * user-management — singleton capability for user accounts and the
65199
+ * legacy API-key rows.
64839
65200
  *
64840
65201
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64841
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
65202
+ * — the subset check on `setUserScopes` is moot
64842
65203
  * because non-admins never reach these. If/when we open non-admin
64843
65204
  * delegation, structural caller-scope subset check goes inside the
64844
65205
  * provider.
@@ -64895,15 +65256,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64895
65256
  kind: "mutation",
64896
65257
  auth: "admin",
64897
65258
  access: "delete"
64898
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64899
- kind: "mutation",
64900
- auth: "admin",
64901
- access: "create"
64902
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64903
- kind: "mutation",
64904
- auth: "admin",
64905
- access: "delete"
64906
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
65259
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64907
65260
  kind: "mutation",
64908
65261
  auth: "admin",
64909
65262
  access: "create"
@@ -67164,6 +67517,15 @@ var BaseDevice = class {
67164
67517
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
67165
67518
  * with a typed cast.
67166
67519
  *
67520
+ * Answer what you KNOW. A plain array is read as the complete list only
67521
+ * while this device is `online` and probed; return
67522
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67523
+ * now (no credentials, parent not connected, a failed or partial read) —
67524
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67525
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67526
+ * deleted only after a second agreeing complete read on a later probe (D49;
67527
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67528
+ *
67167
67529
  * Default: no children.
67168
67530
  */
67169
67531
  getAccessoryChildren() {
@@ -70993,7 +71355,7 @@ Object.freeze({
70993
71355
  capName: "llm",
70994
71356
  capScope: "system",
70995
71357
  addonId: null,
70996
- access: "view"
71358
+ access: "create"
70997
71359
  },
70998
71360
  "llm.listNodeModels": {
70999
71361
  capName: "llm",
@@ -71295,7 +71657,19 @@ Object.freeze({
71295
71657
  addonId: null,
71296
71658
  access: "view"
71297
71659
  },
71298
- "logDestination.query": {
71660
+ "logDestination.cancelRead": {
71661
+ capName: "log-destination",
71662
+ capScope: "system",
71663
+ addonId: null,
71664
+ access: "create"
71665
+ },
71666
+ "logDestination.describeRead": {
71667
+ capName: "log-destination",
71668
+ capScope: "system",
71669
+ addonId: null,
71670
+ access: "view"
71671
+ },
71672
+ "logDestination.read": {
71299
71673
  capName: "log-destination",
71300
71674
  capScope: "system",
71301
71675
  addonId: null,
@@ -75657,12 +76031,6 @@ Object.freeze({
75657
76031
  addonId: null,
75658
76032
  access: "create"
75659
76033
  },
75660
- "userManagement.createScopedToken": {
75661
- capName: "user-management",
75662
- capScope: "system",
75663
- addonId: null,
75664
- access: "create"
75665
- },
75666
76034
  "userManagement.createUser": {
75667
76035
  capName: "user-management",
75668
76036
  capScope: "system",
@@ -75711,12 +76079,6 @@ Object.freeze({
75711
76079
  addonId: null,
75712
76080
  access: "view"
75713
76081
  },
75714
- "userManagement.listScopedTokens": {
75715
- capName: "user-management",
75716
- capScope: "system",
75717
- addonId: null,
75718
- access: "view"
75719
- },
75720
76082
  "userManagement.listUsers": {
75721
76083
  capName: "user-management",
75722
76084
  capScope: "system",
@@ -75771,12 +76133,6 @@ Object.freeze({
75771
76133
  addonId: null,
75772
76134
  access: "delete"
75773
76135
  },
75774
- "userManagement.revokeScopedToken": {
75775
- capName: "user-management",
75776
- capScope: "system",
75777
- addonId: null,
75778
- access: "delete"
75779
- },
75780
76136
  "userManagement.setupTotp": {
75781
76137
  capName: "user-management",
75782
76138
  capScope: "system",
@@ -75807,12 +76163,6 @@ Object.freeze({
75807
76163
  addonId: null,
75808
76164
  access: "view"
75809
76165
  },
75810
- "userManagement.validateScopedToken": {
75811
- capName: "user-management",
75812
- capScope: "system",
75813
- addonId: null,
75814
- access: "view"
75815
- },
75816
76166
  "userManagement.verifyTotp": {
75817
76167
  capName: "user-management",
75818
76168
  capScope: "system",
@@ -77326,6 +77676,11 @@ Object.freeze({
77326
77676
  form: "single",
77327
77677
  optional: false
77328
77678
  }],
77679
+ "logDestination.read": [{
77680
+ name: "deviceId",
77681
+ form: "single",
77682
+ optional: true
77683
+ }],
77329
77684
  "mediaPlayer.getStatus": [{
77330
77685
  name: "deviceId",
77331
77686
  form: "single",