@camstack/addon-import-alexa 0.2.131 → 0.2.133

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.js CHANGED
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
5586
5586
  var ZodFirstPartyTypeKind;
5587
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5588
5588
  //#endregion
5589
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5589
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5590
5590
  /**
5591
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5592
5592
  * window to float samples (D455).
@@ -7969,9 +7969,9 @@ function normalizeAddonInitResult(result) {
7969
7969
  return result;
7970
7970
  }
7971
7971
  /**
7972
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7973
- * and validates them (`share-token.service.ts` builds its enum from this
7974
- * list); a data plane names the kinds it ACCEPTS in `share`.
7972
+ * The share-view scope kinds a share-link token can carry. The hub mints
7973
+ * and validates them (`ShareViewGrantSchema` builds its
7974
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7975
7975
  */
7976
7976
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7977
7977
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12978,7 +12978,7 @@ var ConvertResultSchema = object({
12978
12978
  * `super_admin` — collapsed onto the single boolean because every
12979
12979
  * non-admin caller is governed by the same scope-check rules; the
12980
12980
  * distinction was only ever used to route role-specific procedures
12981
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12981
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12982
12982
  * with `isAdmin: false` + an explicit scope list.
12983
12983
  */
12984
12984
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -13167,10 +13167,12 @@ var AddonRoutesScopeSchema = object({
13167
13167
  type: literal("addon-routes"),
13168
13168
  access: array(MethodAccessSchema).min(1)
13169
13169
  });
13170
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
13170
13171
  var CredentialScopeSchema = union([
13171
13172
  literal("*"),
13172
13173
  ShareViewScopeSchema,
13173
13174
  AddonRoutesScopeSchema,
13175
+ PreferencesSelfScopeSchema,
13174
13176
  TokenScopeSchema
13175
13177
  ]);
13176
13178
  object({
@@ -13179,6 +13181,55 @@ object({
13179
13181
  jti: string().min(16),
13180
13182
  scopes: array(CredentialScopeSchema).min(1)
13181
13183
  });
13184
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
13185
+ /** A namespace's value: a JSON object, opaque to the hub. */
13186
+ var PreferenceValueSchema = record(string(), unknown());
13187
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
13188
+ /** A stored row, as the owner reads it. */
13189
+ var PreferenceRowSchema = object({
13190
+ namespace: PreferenceNamespaceSchema,
13191
+ value: PreferenceValueSchema,
13192
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
13193
+ revision: number().int().positive(),
13194
+ updatedAt: number().int(),
13195
+ /** The client id the last writer sent; `null` when it sent none. */
13196
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
13197
+ });
13198
+ object({
13199
+ /** Absent: every namespace the caller holds. */
13200
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
13201
+ object({ rows: array(PreferenceRowSchema) });
13202
+ object({
13203
+ namespace: PreferenceNamespaceSchema,
13204
+ value: PreferenceValueSchema,
13205
+ /**
13206
+ * The revision the edit was based on. Absent: last write wins. `0`: the
13207
+ * namespace must not exist yet. Any other value that is not the current
13208
+ * revision answers `conflict` and writes nothing.
13209
+ */
13210
+ baseRevision: number().int().nonnegative().optional(),
13211
+ deviceId: PreferenceDeviceIdSchema.optional()
13212
+ });
13213
+ discriminatedUnion("status", [object({
13214
+ status: literal("saved"),
13215
+ row: PreferenceRowSchema
13216
+ }), object({
13217
+ status: literal("conflict"),
13218
+ current: PreferenceRowSchema.nullable()
13219
+ })]);
13220
+ object({ namespace: PreferenceNamespaceSchema });
13221
+ object({
13222
+ /** `false` when the namespace did not exist. */
13223
+ deleted: boolean() });
13224
+ object({
13225
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
13226
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
13227
+ object({
13228
+ /** Every row whose revision differs from the client's, and every row it did not list. */
13229
+ rows: array(PreferenceRowSchema),
13230
+ /** Namespaces the client listed that no longer exist. */
13231
+ deleted: array(PreferenceNamespaceSchema)
13232
+ });
13182
13233
  _enum(["new-session", "step-up"]);
13183
13234
  /** The languages the hub's app landing pages are written in (D858). */
13184
13235
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17500,7 +17551,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17500
17551
  kind: literal("node"),
17501
17552
  nodeId: string().min(1)
17502
17553
  })]);
17554
+ /**
17555
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17556
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17557
+ * meaning); a rollup keeps the time spent in each state (`states`).
17558
+ */
17503
17559
  var DeviceHistoryKindSchema = _enum([
17560
+ "gauge",
17561
+ "counter",
17562
+ "boolean",
17563
+ "enum"
17564
+ ]);
17565
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17566
+ var DeviceHistoryProducerKindSchema = _enum([
17504
17567
  "gauge",
17505
17568
  "counter",
17506
17569
  "boolean"
@@ -17537,7 +17600,13 @@ var SeriesInfoSchema = object({
17537
17600
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17538
17601
  unit: string().nullable(),
17539
17602
  displayName: string(),
17540
- source: _enum(["cap", "addon"]),
17603
+ source: _enum([
17604
+ "cap",
17605
+ "addon",
17606
+ "derived"
17607
+ ]),
17608
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17609
+ values: array(string()).readonly().nullable(),
17541
17610
  firstTs: number(),
17542
17611
  lastTs: number()
17543
17612
  });
@@ -17551,17 +17620,31 @@ var QueryPointSchema = object({
17551
17620
  twMean: number().nullable(),
17552
17621
  min: number(),
17553
17622
  max: number(),
17554
- /** `null` is unknown, never zero (D393). */
17555
- last: number().nullable()
17623
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17624
+ last: number().nullable(),
17625
+ /**
17626
+ * The increase over the point: a `counter`'s growth since the previous point
17627
+ * or bucket (a drop is a reset, counted from zero), and for
17628
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17629
+ * every other kind, and when it cannot be known.
17630
+ */
17631
+ delta: number().nullable(),
17632
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17633
+ state: string().nullable(),
17634
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17635
+ states: record(string(), number()).nullable()
17556
17636
  });
17557
17637
  var QuerySeriesSchema = object({
17558
17638
  scope: string(),
17559
17639
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17560
17640
  before: object({
17561
17641
  t: number(),
17562
- value: number().nullable()
17642
+ value: number().nullable(),
17643
+ state: string().nullable()
17563
17644
  }).nullable(),
17564
- points: array(QueryPointSchema).readonly()
17645
+ points: array(QueryPointSchema).readonly(),
17646
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17647
+ derivedFrom: string().nullable()
17565
17648
  });
17566
17649
  /** The window part of a query, shared by the device and node forms. */
17567
17650
  var QueryWindowShape = {
@@ -17577,6 +17660,23 @@ var QueryResultSchema = object({
17577
17660
  series: array(QuerySeriesSchema).readonly(),
17578
17661
  truncated: boolean()
17579
17662
  });
17663
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17664
+ var QueryManyItemSchema = union([object({
17665
+ deviceId: number().int(),
17666
+ key: string(),
17667
+ scope: string().optional()
17668
+ }), object({
17669
+ forNodeId: string().min(1),
17670
+ key: string(),
17671
+ scope: string().optional()
17672
+ })]);
17673
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17674
+ ok: literal(true),
17675
+ result: QueryResultSchema
17676
+ }), object({
17677
+ ok: literal(false),
17678
+ error: string()
17679
+ })]);
17580
17680
  var TierStatusSchema = object({
17581
17681
  tier: DeviceHistoryResolutionSchema,
17582
17682
  /** `null` until the first background count answered. */
@@ -17632,16 +17732,22 @@ var DeviceHistoryStatusSchema = object({
17632
17732
  lastRefreshAt: number().nullable()
17633
17733
  })
17634
17734
  });
17635
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17735
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17636
17736
  deviceId: number().int(),
17637
17737
  ...QueryWindowShape
17638
17738
  }), QueryResultSchema), method(object({
17639
- nodeId: string().min(1),
17739
+ forNodeId: string().min(1),
17640
17740
  ...QueryWindowShape
17641
17741
  }), QueryResultSchema, { auth: "admin" }), method(object({
17742
+ items: array(QueryManyItemSchema).min(1).max(24),
17743
+ from: QueryWindowShape.from,
17744
+ to: QueryWindowShape.to,
17745
+ resolution: QueryWindowShape.resolution,
17746
+ maxPoints: QueryWindowShape.maxPoints
17747
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17642
17748
  name: string().regex(/^[a-z0-9-]+$/),
17643
17749
  subjectKind: _enum(["device", "node"]),
17644
- kind: DeviceHistoryKindSchema,
17750
+ kind: DeviceHistoryProducerKindSchema,
17645
17751
  unit: string().optional(),
17646
17752
  displayName: string().min(1),
17647
17753
  ingest: _enum(["points", "buckets"])
@@ -40440,38 +40546,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40440
40546
  auth: "admin",
40441
40547
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40442
40548
  });
40549
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40550
+ /** What a model (or, by default, every model of a kind) can do. */
40551
+ var LlmModelFeaturesSchema = object({
40552
+ vision: boolean(),
40553
+ tools: boolean(),
40554
+ streaming: boolean()
40555
+ });
40556
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40557
+ var LlmModelInfoSchema = object({
40558
+ id: string(),
40559
+ label: string().optional(),
40560
+ contextLength: number().int().positive().optional(),
40561
+ features: LlmModelFeaturesSchema.partial().optional()
40562
+ });
40443
40563
  /**
40444
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40445
- * methods concat-fan across providers; single-row methods route to ONE
40446
- * provider by the `addonId` in the call input (the notification-output
40447
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40448
- * (hub-placed); the cap stays open for future providers.
40449
- *
40450
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40451
- * `apiKey` is a password field — providers REDACT it on read and merge on
40452
- * write; a stored key NEVER round-trips to a client.
40564
+ * The provider-specific part of a profile, validated by the provider that owns
40565
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40566
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40567
+ * keychain, never in the row, and reads back as the redaction marker.
40453
40568
  */
40454
- var LlmProfileKindSchema = _enum([
40455
- "openai-compatible",
40456
- "openai",
40457
- "anthropic",
40458
- "google",
40459
- "managed-local",
40460
- "apple-foundation"
40461
- ]);
40569
+ var LlmProviderConfigSchema = record(string(), unknown());
40462
40570
  var LlmProfileSchema = object({
40463
40571
  id: string(),
40464
40572
  name: string(),
40573
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
40465
40574
  kind: LlmProfileKindSchema,
40466
40575
  /** Stamped by the provider — keeps the fanned catalog routable. */
40467
40576
  addonId: string(),
40468
40577
  enabled: boolean(),
40469
40578
  /** Vendor model id, or the managed runtime's loaded model. */
40470
40579
  model: string(),
40471
- /** Required for openai-compatible; override for cloud kinds. */
40472
- baseUrl: string().optional(),
40473
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
40474
- apiKey: string().optional(),
40475
40580
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
40476
40581
  * degraded to text — that shipped once and produced a confident answer to a
40477
40582
  * question about a picture nobody sent. */
@@ -40479,15 +40584,11 @@ var LlmProfileSchema = object({
40479
40584
  temperature: number().min(0).max(2).optional(),
40480
40585
  /** Nucleus sampling. Every wire we speak has it. */
40481
40586
  topP: number().min(0).max(1).optional(),
40482
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
40483
- * wire does, and the client drops it there (measured: the request body gets
40484
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
40485
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40587
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40588
+ * field in its editor only when its descriptor lists it in `profileFields`. */
40486
40589
  topK: number().int().positive().optional(),
40487
40590
  maxTokens: number().int().positive().optional(),
40488
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
40489
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
40490
- * the model with, so it is the one field that changes a PROCESS. */
40591
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
40491
40592
  contextLength: number().int().positive().optional(),
40492
40593
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
40493
40594
  * two system prompts fighting is worse than either alone). */
@@ -40513,16 +40614,37 @@ var LlmProfileSchema = object({
40513
40614
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40514
40615
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40515
40616
  toolsEnabled: boolean().default(false),
40516
- extraHeaders: record(string(), string()).optional(),
40517
- /** kind === 'managed-local' only (spec §4). */
40518
- runtime: ManagedRuntimeConfigSchema.optional(),
40519
- /**
40520
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40521
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40522
- * `supportsVision` on such a row is stamped by the provider from the node's
40523
- * reported `imageInput`, never taken from the operator (D62).
40524
- */
40525
- appleFoundation: object({ nodeId: string() }).optional()
40617
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40618
+ providerConfig: LlmProviderConfigSchema.default({})
40619
+ });
40620
+ /**
40621
+ * The common profile fields a kind's editor offers. The editor owns how each
40622
+ * one is drawn; the provider says which of them mean something on its wire.
40623
+ */
40624
+ var LlmProfileFieldSchema = _enum([
40625
+ "temperature",
40626
+ "topP",
40627
+ "topK",
40628
+ "maxTokens",
40629
+ "contextLength",
40630
+ "systemPrompt",
40631
+ "timeoutMs",
40632
+ "connectTimeoutMs",
40633
+ "firstTokenTimeoutMs",
40634
+ "idleTimeoutMs",
40635
+ "retry",
40636
+ "toolsEnabled"
40637
+ ]);
40638
+ /**
40639
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40640
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40641
+ * picker: that widget owns the model choice.
40642
+ */
40643
+ var LlmProviderWidgetSchema = object({
40644
+ id: string(),
40645
+ placement: _enum(["connection", "model"]),
40646
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40647
+ requires: array(string()).optional()
40526
40648
  });
40527
40649
  /** ConfigUISchema tree passed through untyped on the wire (the
40528
40650
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40531,11 +40653,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40531
40653
  var LlmProfileKindDescriptorSchema = object({
40532
40654
  kind: LlmProfileKindSchema,
40533
40655
  label: string(),
40656
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40534
40657
  icon: string(),
40535
40658
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40536
40659
  addonId: string(),
40537
- configSchema: ConfigSchemaPassthrough$3
40660
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40661
+ connectionSchema: ConfigSchemaPassthrough$3,
40662
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40663
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40664
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40665
+ features: LlmModelFeaturesSchema,
40666
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40667
+ visionEditable: boolean(),
40668
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40669
+ modelCatalog: _enum([
40670
+ "fetch",
40671
+ "static",
40672
+ "none"
40673
+ ]),
40674
+ staticModels: array(LlmModelInfoSchema).optional(),
40675
+ /** The common fields that mean something on this kind's wire. */
40676
+ profileFields: array(LlmProfileFieldSchema),
40677
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40538
40678
  });
40679
+ /**
40680
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40681
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40682
+ * untouched (absent or the redaction marker) is resolved server-side from the
40683
+ * stored profile — the browser never receives it.
40684
+ */
40685
+ var LlmListModelsInputSchema = object({
40686
+ addonId: string(),
40687
+ kind: LlmProfileKindSchema,
40688
+ profileId: string().optional(),
40689
+ connection: LlmProviderConfigSchema.optional()
40690
+ });
40691
+ var LlmListModelsErrorCodeSchema = _enum([
40692
+ "auth",
40693
+ "network",
40694
+ "unsupported",
40695
+ "invalid"
40696
+ ]);
40697
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40698
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40699
+ ok: literal(true),
40700
+ models: array(LlmModelInfoSchema)
40701
+ }), object({
40702
+ ok: literal(false),
40703
+ code: LlmListModelsErrorCodeSchema,
40704
+ message: string()
40705
+ })]);
40539
40706
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40540
40707
  var LlmDefaultSchema = object({
40541
40708
  selector: LlmDefaultSelectorSchema,
@@ -40635,7 +40802,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40635
40802
  kind: "mutation",
40636
40803
  auth: "admin",
40637
40804
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40638
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40805
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40806
+ kind: "mutation",
40807
+ auth: "admin"
40808
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40639
40809
  selector: LlmDefaultSelectorSchema,
40640
40810
  profileId: string().nullable()
40641
40811
  }), _void(), {
@@ -40803,14 +40973,106 @@ var LogEntrySchema = object({
40803
40973
  meta: record(string(), unknown()).optional(),
40804
40974
  tags: record(string(), string()).optional()
40805
40975
  });
40806
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40807
- scope: array(string()).optional(),
40976
+ /**
40977
+ * A history READ against one destination (D898).
40978
+ *
40979
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40980
+ * browser applied after the limit is what made a rare device's lines
40981
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40982
+ * minted (opaque to everyone else): a file position for the rotated files, a
40983
+ * nanosecond timestamp for Loki.
40984
+ *
40985
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40986
+ * store answers `done: false` with the cursor it reached and the bytes it
40987
+ * scanned, and the caller decides whether to go on. That is what makes a long
40988
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40989
+ * flight, and not asking for the next slice ends the scan.
40990
+ */
40991
+ var LogReadQuerySchema = object({
40992
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40993
+ requestId: string().min(1).max(64).optional(),
40994
+ /** The device the line is about (`tags.deviceId`, numeric). */
40995
+ deviceId: number().int().optional(),
40996
+ /**
40997
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40998
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40999
+ */
41000
+ fromAddonId: string().min(1).max(200).optional(),
41001
+ /**
41002
+ * The emitting node: matches the agent that emitted the line, the node
41003
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
41004
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
41005
+ * name as "which node's provider".
41006
+ */
41007
+ fromNodeId: string().min(1).max(200).optional(),
41008
+ /** Any other tag, exact match (AND). */
41009
+ tags: record(string(), union([string(), number()])).optional(),
41010
+ /** Severity FLOOR: this level and above. */
40808
41011
  level: LogLevelSchema.optional(),
40809
- since: date().optional(),
40810
- until: date().optional(),
40811
- limit: number().optional(),
40812
- tags: record(string(), string()).optional()
40813
- }), array(LogEntrySchema).readonly());
41012
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
41013
+ text: string().min(1).max(200).optional(),
41014
+ /** Epoch ms, inclusive. */
41015
+ since: number().optional(),
41016
+ /** Epoch ms, inclusive. */
41017
+ until: number().optional(),
41018
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
41019
+ before: string().min(1).max(1024).optional(),
41020
+ /** Newer than this cursor (exclusive). */
41021
+ after: string().min(1).max(1024).optional(),
41022
+ limit: number().int().min(1).max(1e3).optional(),
41023
+ /** Wall-clock bound of this slice. The provider caps it. */
41024
+ budgetMs: number().int().min(50).max(1e4).optional()
41025
+ });
41026
+ var LogReadResultSchema = object({
41027
+ /** Newest first. */
41028
+ entries: array(object({
41029
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
41030
+ id: string().optional(),
41031
+ /** Epoch ms. */
41032
+ timestamp: number(),
41033
+ level: LogLevelSchema,
41034
+ scope: string().optional(),
41035
+ message: string(),
41036
+ tags: record(string(), union([string(), number()])).optional(),
41037
+ meta: record(string(), unknown()).optional()
41038
+ })),
41039
+ /** Pass as `before` for the next older page; null when nothing older exists. */
41040
+ nextBefore: string().nullable(),
41041
+ /** Pass as `after` to read what arrived since; null when unknown. */
41042
+ nextAfter: string().nullable(),
41043
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
41044
+ scannedBytes: number().int().nonnegative(),
41045
+ /**
41046
+ * True when the scan in this direction reached the end of the store.
41047
+ * False with fewer than `limit` entries means the budget ran out first —
41048
+ * call again with `nextBefore` to go on.
41049
+ */
41050
+ done: boolean(),
41051
+ /** True when `cancelRead` ended this slice early. */
41052
+ cancelled: boolean().optional()
41053
+ });
41054
+ var LogReadCapabilitiesSchema = object({
41055
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41056
+ readable: boolean(),
41057
+ /** Why not, when `readable` is false — rendered next to the source. */
41058
+ reason: string().nullable(),
41059
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41060
+ filters: object({
41061
+ deviceId: boolean(),
41062
+ addonId: boolean(),
41063
+ nodeId: boolean(),
41064
+ tags: boolean(),
41065
+ level: boolean(),
41066
+ text: boolean(),
41067
+ timeRange: boolean()
41068
+ }),
41069
+ /** How far back the store reaches, when the provider knows (days). */
41070
+ retentionDays: number().nullable()
41071
+ });
41072
+ 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() }), {
41073
+ kind: "mutation",
41074
+ auth: "admin"
41075
+ });
40814
41076
  /**
40815
41077
  * `login-method` — collection cap through which auth addons contribute
40816
41078
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42528,9 +42790,11 @@ var alarmPanelCapability = {
42528
42790
  */
42529
42791
  durability: "restored",
42530
42792
  /**
42531
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42793
+ * History (D850): the panel's lifecycle state as an `enum` series —
42794
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42795
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42532
42796
  */
42533
- history: "none",
42797
+ history: { fields: { state: { kind: "enum" } } },
42534
42798
  /** Clock fields: written, but excluded from the compare that decides
42535
42799
  * whether persisting is worth a SQLite commit. */
42536
42800
  volatileStateFields: ["lastChangedAt"]
@@ -43408,6 +43672,33 @@ var NcRuleTargetSchema = object({
43408
43672
  params: record(string(), unknown()).optional()
43409
43673
  });
43410
43674
  /**
43675
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43676
+ *
43677
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43678
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43679
+ * to the zone that fired the rule) and renders it once at send time:
43680
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43681
+ * colour and every OTHER track visible at that instant outlined thin, each
43682
+ * labelled with class and confidence ("dog 87%").
43683
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43684
+ * - `clean` — the whole scene with nothing drawn on it.
43685
+ * - `none` — no picture.
43686
+ *
43687
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43688
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43689
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43690
+ * ship a crop on one event and a boxed scene on the next depending on which
43691
+ * stored kind had landed.
43692
+ */
43693
+ var NcMediaImageSchema = _enum([
43694
+ "scene-boxes",
43695
+ "crop",
43696
+ "clean",
43697
+ "none"
43698
+ ]);
43699
+ /**
43700
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43701
+ *
43411
43702
  * Media attachment policy (P1 still-image subset).
43412
43703
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43413
43704
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43421,6 +43712,8 @@ var NcRuleTargetSchema = object({
43421
43712
  * - `none` — no attachment.
43422
43713
  */
43423
43714
  /**
43715
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43716
+ *
43424
43717
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43425
43718
  * conflate it with the selection strategy and betray the request: asking for
43426
43719
  * the clean scene frame on an object-event owner used to start at
@@ -43449,16 +43742,29 @@ var NcMediaFrameSchema = _enum([
43449
43742
  */
43450
43743
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43451
43744
  var NcMediaPolicySchema = object({
43745
+ /**
43746
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43747
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43748
+ * triple below, at load and at every write, and the store keeps only this.
43749
+ */
43750
+ image: NcMediaImageSchema.optional(),
43751
+ /**
43752
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43753
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43754
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43755
+ * Replaces `zoneCrop`.
43756
+ */
43757
+ showTriggerZone: boolean().optional(),
43758
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43452
43759
  attach: _enum([
43453
43760
  "best",
43454
43761
  "best-matching",
43455
43762
  "keyFrame",
43456
43763
  "none"
43457
- ]).default("best"),
43458
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43764
+ ]).optional(),
43765
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43459
43766
  frame: NcMediaFrameSchema.optional(),
43460
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43461
- * "show me the ZONE", not the whole scene or the subject crop. */
43767
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43462
43768
  zoneCrop: boolean().optional(),
43463
43769
  /**
43464
43770
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43630,7 +43936,9 @@ var NcRuleInputSchema = object({
43630
43936
  * targets.
43631
43937
  */
43632
43938
  targetUsers: array(string()).optional(),
43633
- media: NcMediaPolicySchema.default({ attach: "best" }),
43939
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43940
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43941
+ media: NcMediaPolicySchema.default({}),
43634
43942
  throttle: NcThrottleSchema.default({
43635
43943
  cooldownSec: 60,
43636
43944
  scope: "rule-device"
@@ -44567,13 +44875,37 @@ var NcAlarmModeOpeningsSchema = object({
44567
44875
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44568
44876
  unknown: array(number().int())
44569
44877
  });
44878
+ /**
44879
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44880
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44881
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44882
+ * never looks fully armed (D62: off must never look like broken).
44883
+ */
44884
+ var NcAlarmInputBypassViewSchema = object({
44885
+ ruleId: string(),
44886
+ /** The rule's current name (its frozen name when the rule is gone). */
44887
+ ruleName: string(),
44888
+ /** The input: the sensor of the match, else its camera. */
44889
+ deviceId: number().int(),
44890
+ /** The input's current name. */
44891
+ name: string(),
44892
+ /** When it was bypassed (ms epoch). */
44893
+ since: number(),
44894
+ /** Triggers from this input dropped since. */
44895
+ dropped: number().int().min(0)
44896
+ });
44570
44897
  var NcAlarmLiveSchema = object({
44571
44898
  state: AlarmStateSchema,
44572
44899
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44573
44900
  targetMode: AlarmArmModeSchema.nullable(),
44574
44901
  availableModes: array(AlarmArmModeSchema),
44575
44902
  openings: array(NcAlarmModeOpeningsSchema),
44576
- exclusions: array(NcAlarmExclusionViewSchema)
44903
+ exclusions: array(NcAlarmExclusionViewSchema),
44904
+ /**
44905
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44906
+ * Defaulted so an older hub answer still parses (as "none known").
44907
+ */
44908
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44577
44909
  });
44578
44910
  var NcAlarmConfigSchema = object({
44579
44911
  /**
@@ -55309,9 +55641,11 @@ var connectivityCapability = {
55309
55641
  */
55310
55642
  durability: "restored",
55311
55643
  /**
55312
- * History (D850): none — duplicates device-status.online (one authority for availability).
55644
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55645
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55646
+ * device's reachability, which stays `device-status.online`.
55313
55647
  */
55314
- history: "none",
55648
+ history: { fields: { connected: { kind: "boolean" } } },
55315
55649
  /** Clock fields: written, but excluded from the compare that decides
55316
55650
  * whether persisting is worth a SQLite commit. */
55317
55651
  volatileStateFields: ["lastChangedAt"]
@@ -56135,11 +56469,22 @@ var dishwasherCapability = {
56135
56469
  },
56136
56470
  runtimeState: DishwasherStatusSchema,
56137
56471
  durability: "session",
56138
- history: { fields: { progressPercent: {
56139
- kind: "gauge",
56140
- unit: "%",
56141
- deadband: 2
56142
- } } }
56472
+ history: { fields: {
56473
+ progressPercent: {
56474
+ kind: "gauge",
56475
+ unit: "%",
56476
+ deadband: 2
56477
+ },
56478
+ state: { kind: "enum" },
56479
+ operationState: { kind: "enum" },
56480
+ remainingSeconds: {
56481
+ kind: "gauge",
56482
+ unit: "s",
56483
+ minIntervalMs: 6e4
56484
+ },
56485
+ doorOpen: { kind: "boolean" },
56486
+ powerOn: { kind: "boolean" }
56487
+ } }
56143
56488
  };
56144
56489
  var DoorbellStatusSchema = object({
56145
56490
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56256,9 +56601,15 @@ var enumSensorCapability = {
56256
56601
  */
56257
56602
  durability: "restored",
56258
56603
  /**
56259
- * History (D850): none — text/enum state has no history (non-goal).
56604
+ * History (D850): the value as an `enum` series (an appliance's program or
56605
+ * operation state, an HVAC action). The option set is per device, so the
56606
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56607
+ * `format` carries a timestamp, not a state, and is not recorded.
56260
56608
  */
56261
- history: "none",
56609
+ history: { fields: { value: {
56610
+ kind: "enum",
56611
+ skipWhenSet: "format"
56612
+ } } },
56262
56613
  /** Clock fields: written, but excluded from the compare that decides
56263
56614
  * whether persisting is worth a SQLite commit. */
56264
56615
  volatileStateFields: ["lastFetchedAt"]
@@ -58232,9 +58583,10 @@ var lockControlCapability = {
58232
58583
  */
58233
58584
  durability: "restored",
58234
58585
  /**
58235
- * History (D850): none — enum state; lock events belong in the events ledger.
58586
+ * History (D850): the lock's state as an `enum` series — change-only, no
58587
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58236
58588
  */
58237
- history: "none",
58589
+ history: { fields: { state: { kind: "enum" } } },
58238
58590
  /** Clock fields: written, but excluded from the compare that decides
58239
58591
  * whether persisting is worth a SQLite commit. */
58240
58592
  volatileStateFields: ["lastChangedAt"]
@@ -58408,9 +58760,18 @@ var mediaPlayerCapability = {
58408
58760
  */
58409
58761
  durability: "session",
58410
58762
  /**
58411
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58763
+ * History (D850): volume (a level an operator or an automation sets; the
58764
+ * default 10 s floor folds a slider drag into its end value) and mute.
58765
+ * `positionMs` is not recorded: it moves continuously while playing.
58412
58766
  */
58413
- history: "none"
58767
+ history: { fields: {
58768
+ volumeLevel: {
58769
+ kind: "gauge",
58770
+ unit: "%",
58771
+ deadband: 1
58772
+ },
58773
+ isMuted: { kind: "boolean" }
58774
+ } }
58414
58775
  };
58415
58776
  /**
58416
58777
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63703,9 +64064,29 @@ var streamParamsCapability = {
63703
64064
  */
63704
64065
  durability: "restored",
63705
64066
  /**
63706
- * History (D850): none — encoder configuration.
64067
+ * History (D850): the configured bitrate and frame rate of the main and sub
64068
+ * profiles. Configuration, so change-only on the default floor: a point is an
64069
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64070
+ * quality over time must show.
63707
64071
  */
63708
- history: "none",
64072
+ history: { fields: {
64073
+ "main.bitrate": {
64074
+ kind: "gauge",
64075
+ unit: "kbps"
64076
+ },
64077
+ "main.framerate": {
64078
+ kind: "gauge",
64079
+ unit: "fps"
64080
+ },
64081
+ "sub.bitrate": {
64082
+ kind: "gauge",
64083
+ unit: "kbps"
64084
+ },
64085
+ "sub.framerate": {
64086
+ kind: "gauge",
64087
+ unit: "fps"
64088
+ }
64089
+ } },
63709
64090
  /** Clock fields: written, but excluded from the compare that decides
63710
64091
  * whether persisting is worth a SQLite commit. */
63711
64092
  volatileStateFields: ["lastFetchedAt"]
@@ -64540,26 +64921,6 @@ var ApiKeySummarySchema = object({
64540
64921
  createdAt: number(),
64541
64922
  lastUsedAt: number().optional()
64542
64923
  });
64543
- var ScopedTokenSummarySchema = object({
64544
- id: string(),
64545
- userId: string(),
64546
- name: string(),
64547
- tokenPrefix: string(),
64548
- scopes: array(TokenScopeSchema),
64549
- expiresAt: number().nullish(),
64550
- lastUsedAt: number().nullish(),
64551
- createdAt: number()
64552
- });
64553
- var CreateScopedTokenInputSchema = object({
64554
- userId: string(),
64555
- name: string(),
64556
- scopes: array(TokenScopeSchema),
64557
- expiresAt: number().optional()
64558
- });
64559
- var CreateScopedTokenResultSchema = object({
64560
- token: string(),
64561
- record: ScopedTokenSummarySchema
64562
- });
64563
64924
  var OauthSessionSummarySchema = object({
64564
64925
  id: string(),
64565
64926
  userId: string(),
@@ -64581,11 +64942,11 @@ var TotpStatusSchema = object({
64581
64942
  confirmedAt: number().nullable()
64582
64943
  });
64583
64944
  /**
64584
- * user-management — singleton capability for user accounts, API keys,
64585
- * and scoped tokens.
64945
+ * user-management — singleton capability for user accounts and the
64946
+ * legacy API-key rows.
64586
64947
  *
64587
64948
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64588
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
64949
+ * — the subset check on `setUserScopes` is moot
64589
64950
  * because non-admins never reach these. If/when we open non-admin
64590
64951
  * delegation, structural caller-scope subset check goes inside the
64591
64952
  * provider.
@@ -64642,15 +65003,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64642
65003
  kind: "mutation",
64643
65004
  auth: "admin",
64644
65005
  access: "delete"
64645
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64646
- kind: "mutation",
64647
- auth: "admin",
64648
- access: "create"
64649
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64650
- kind: "mutation",
64651
- auth: "admin",
64652
- access: "delete"
64653
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
65006
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64654
65007
  kind: "mutation",
64655
65008
  auth: "admin",
64656
65009
  access: "create"
@@ -66911,6 +67264,15 @@ var BaseDevice = class {
66911
67264
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66912
67265
  * with a typed cast.
66913
67266
  *
67267
+ * Answer what you KNOW. A plain array is read as the complete list only
67268
+ * while this device is `online` and probed; return
67269
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67270
+ * now (no credentials, parent not connected, a failed or partial read) —
67271
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67272
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67273
+ * deleted only after a second agreeing complete read on a later probe (D49;
67274
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67275
+ *
66914
67276
  * Default: no children.
66915
67277
  */
66916
67278
  getAccessoryChildren() {
@@ -70740,7 +71102,7 @@ Object.freeze({
70740
71102
  capName: "llm",
70741
71103
  capScope: "system",
70742
71104
  addonId: null,
70743
- access: "view"
71105
+ access: "create"
70744
71106
  },
70745
71107
  "llm.listNodeModels": {
70746
71108
  capName: "llm",
@@ -71042,7 +71404,19 @@ Object.freeze({
71042
71404
  addonId: null,
71043
71405
  access: "view"
71044
71406
  },
71045
- "logDestination.query": {
71407
+ "logDestination.cancelRead": {
71408
+ capName: "log-destination",
71409
+ capScope: "system",
71410
+ addonId: null,
71411
+ access: "create"
71412
+ },
71413
+ "logDestination.describeRead": {
71414
+ capName: "log-destination",
71415
+ capScope: "system",
71416
+ addonId: null,
71417
+ access: "view"
71418
+ },
71419
+ "logDestination.read": {
71046
71420
  capName: "log-destination",
71047
71421
  capScope: "system",
71048
71422
  addonId: null,
@@ -75404,12 +75778,6 @@ Object.freeze({
75404
75778
  addonId: null,
75405
75779
  access: "create"
75406
75780
  },
75407
- "userManagement.createScopedToken": {
75408
- capName: "user-management",
75409
- capScope: "system",
75410
- addonId: null,
75411
- access: "create"
75412
- },
75413
75781
  "userManagement.createUser": {
75414
75782
  capName: "user-management",
75415
75783
  capScope: "system",
@@ -75458,12 +75826,6 @@ Object.freeze({
75458
75826
  addonId: null,
75459
75827
  access: "view"
75460
75828
  },
75461
- "userManagement.listScopedTokens": {
75462
- capName: "user-management",
75463
- capScope: "system",
75464
- addonId: null,
75465
- access: "view"
75466
- },
75467
75829
  "userManagement.listUsers": {
75468
75830
  capName: "user-management",
75469
75831
  capScope: "system",
@@ -75518,12 +75880,6 @@ Object.freeze({
75518
75880
  addonId: null,
75519
75881
  access: "delete"
75520
75882
  },
75521
- "userManagement.revokeScopedToken": {
75522
- capName: "user-management",
75523
- capScope: "system",
75524
- addonId: null,
75525
- access: "delete"
75526
- },
75527
75883
  "userManagement.setupTotp": {
75528
75884
  capName: "user-management",
75529
75885
  capScope: "system",
@@ -75554,12 +75910,6 @@ Object.freeze({
75554
75910
  addonId: null,
75555
75911
  access: "view"
75556
75912
  },
75557
- "userManagement.validateScopedToken": {
75558
- capName: "user-management",
75559
- capScope: "system",
75560
- addonId: null,
75561
- access: "view"
75562
- },
75563
75913
  "userManagement.verifyTotp": {
75564
75914
  capName: "user-management",
75565
75915
  capScope: "system",
@@ -77073,6 +77423,11 @@ Object.freeze({
77073
77423
  form: "single",
77074
77424
  optional: false
77075
77425
  }],
77426
+ "logDestination.read": [{
77427
+ name: "deviceId",
77428
+ form: "single",
77429
+ optional: true
77430
+ }],
77076
77431
  "mediaPlayer.getStatus": [{
77077
77432
  name: "deviceId",
77078
77433
  form: "single",