@camstack/addon-provider-wyze 0.2.142 → 0.2.144

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
@@ -5446,7 +5446,7 @@ var ZodIssueCode = {
5446
5446
  var ZodFirstPartyTypeKind;
5447
5447
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5448
5448
  //#endregion
5449
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5449
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5450
5450
  /**
5451
5451
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5452
5452
  * window to float samples (D455).
@@ -7829,9 +7829,9 @@ function normalizeAddonInitResult(result) {
7829
7829
  return result;
7830
7830
  }
7831
7831
  /**
7832
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7833
- * and validates them (`share-token.service.ts` builds its enum from this
7834
- * list); a data plane names the kinds it ACCEPTS in `share`.
7832
+ * The share-view scope kinds a share-link token can carry. The hub mints
7833
+ * and validates them (`ShareViewGrantSchema` builds its
7834
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7835
7835
  */
7836
7836
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7837
7837
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12555,7 +12555,7 @@ var ConvertResultSchema = object({
12555
12555
  * `super_admin` — collapsed onto the single boolean because every
12556
12556
  * non-admin caller is governed by the same scope-check rules; the
12557
12557
  * distinction was only ever used to route role-specific procedures
12558
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12558
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12559
12559
  * with `isAdmin: false` + an explicit scope list.
12560
12560
  */
12561
12561
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -12744,10 +12744,12 @@ var AddonRoutesScopeSchema = object({
12744
12744
  type: literal("addon-routes"),
12745
12745
  access: array(MethodAccessSchema).min(1)
12746
12746
  });
12747
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
12747
12748
  var CredentialScopeSchema = union([
12748
12749
  literal("*"),
12749
12750
  ShareViewScopeSchema,
12750
12751
  AddonRoutesScopeSchema,
12752
+ PreferencesSelfScopeSchema,
12751
12753
  TokenScopeSchema
12752
12754
  ]);
12753
12755
  object({
@@ -12756,6 +12758,55 @@ object({
12756
12758
  jti: string().min(16),
12757
12759
  scopes: array(CredentialScopeSchema).min(1)
12758
12760
  });
12761
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
12762
+ /** A namespace's value: a JSON object, opaque to the hub. */
12763
+ var PreferenceValueSchema = record(string(), unknown());
12764
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
12765
+ /** A stored row, as the owner reads it. */
12766
+ var PreferenceRowSchema = object({
12767
+ namespace: PreferenceNamespaceSchema,
12768
+ value: PreferenceValueSchema,
12769
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
12770
+ revision: number().int().positive(),
12771
+ updatedAt: number().int(),
12772
+ /** The client id the last writer sent; `null` when it sent none. */
12773
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
12774
+ });
12775
+ object({
12776
+ /** Absent: every namespace the caller holds. */
12777
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
12778
+ object({ rows: array(PreferenceRowSchema) });
12779
+ object({
12780
+ namespace: PreferenceNamespaceSchema,
12781
+ value: PreferenceValueSchema,
12782
+ /**
12783
+ * The revision the edit was based on. Absent: last write wins. `0`: the
12784
+ * namespace must not exist yet. Any other value that is not the current
12785
+ * revision answers `conflict` and writes nothing.
12786
+ */
12787
+ baseRevision: number().int().nonnegative().optional(),
12788
+ deviceId: PreferenceDeviceIdSchema.optional()
12789
+ });
12790
+ discriminatedUnion("status", [object({
12791
+ status: literal("saved"),
12792
+ row: PreferenceRowSchema
12793
+ }), object({
12794
+ status: literal("conflict"),
12795
+ current: PreferenceRowSchema.nullable()
12796
+ })]);
12797
+ object({ namespace: PreferenceNamespaceSchema });
12798
+ object({
12799
+ /** `false` when the namespace did not exist. */
12800
+ deleted: boolean() });
12801
+ object({
12802
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
12803
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
12804
+ object({
12805
+ /** Every row whose revision differs from the client's, and every row it did not list. */
12806
+ rows: array(PreferenceRowSchema),
12807
+ /** Namespaces the client listed that no longer exist. */
12808
+ deleted: array(PreferenceNamespaceSchema)
12809
+ });
12759
12810
  _enum(["new-session", "step-up"]);
12760
12811
  /** The languages the hub's app landing pages are written in (D858). */
12761
12812
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17009,7 +17060,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17009
17060
  kind: literal("node"),
17010
17061
  nodeId: string().min(1)
17011
17062
  })]);
17063
+ /**
17064
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17065
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17066
+ * meaning); a rollup keeps the time spent in each state (`states`).
17067
+ */
17012
17068
  var DeviceHistoryKindSchema = _enum([
17069
+ "gauge",
17070
+ "counter",
17071
+ "boolean",
17072
+ "enum"
17073
+ ]);
17074
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17075
+ var DeviceHistoryProducerKindSchema = _enum([
17013
17076
  "gauge",
17014
17077
  "counter",
17015
17078
  "boolean"
@@ -17046,7 +17109,13 @@ var SeriesInfoSchema = object({
17046
17109
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17047
17110
  unit: string().nullable(),
17048
17111
  displayName: string(),
17049
- source: _enum(["cap", "addon"]),
17112
+ source: _enum([
17113
+ "cap",
17114
+ "addon",
17115
+ "derived"
17116
+ ]),
17117
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17118
+ values: array(string()).readonly().nullable(),
17050
17119
  firstTs: number(),
17051
17120
  lastTs: number()
17052
17121
  });
@@ -17060,17 +17129,31 @@ var QueryPointSchema = object({
17060
17129
  twMean: number().nullable(),
17061
17130
  min: number(),
17062
17131
  max: number(),
17063
- /** `null` is unknown, never zero (D393). */
17064
- last: number().nullable()
17132
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17133
+ last: number().nullable(),
17134
+ /**
17135
+ * The increase over the point: a `counter`'s growth since the previous point
17136
+ * or bucket (a drop is a reset, counted from zero), and for
17137
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17138
+ * every other kind, and when it cannot be known.
17139
+ */
17140
+ delta: number().nullable(),
17141
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17142
+ state: string().nullable(),
17143
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17144
+ states: record(string(), number()).nullable()
17065
17145
  });
17066
17146
  var QuerySeriesSchema = object({
17067
17147
  scope: string(),
17068
17148
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17069
17149
  before: object({
17070
17150
  t: number(),
17071
- value: number().nullable()
17151
+ value: number().nullable(),
17152
+ state: string().nullable()
17072
17153
  }).nullable(),
17073
- points: array(QueryPointSchema).readonly()
17154
+ points: array(QueryPointSchema).readonly(),
17155
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17156
+ derivedFrom: string().nullable()
17074
17157
  });
17075
17158
  /** The window part of a query, shared by the device and node forms. */
17076
17159
  var QueryWindowShape = {
@@ -17086,6 +17169,23 @@ var QueryResultSchema = object({
17086
17169
  series: array(QuerySeriesSchema).readonly(),
17087
17170
  truncated: boolean()
17088
17171
  });
17172
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17173
+ var QueryManyItemSchema = union([object({
17174
+ deviceId: number().int(),
17175
+ key: string(),
17176
+ scope: string().optional()
17177
+ }), object({
17178
+ forNodeId: string().min(1),
17179
+ key: string(),
17180
+ scope: string().optional()
17181
+ })]);
17182
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17183
+ ok: literal(true),
17184
+ result: QueryResultSchema
17185
+ }), object({
17186
+ ok: literal(false),
17187
+ error: string()
17188
+ })]);
17089
17189
  var TierStatusSchema = object({
17090
17190
  tier: DeviceHistoryResolutionSchema,
17091
17191
  /** `null` until the first background count answered. */
@@ -17141,16 +17241,22 @@ var DeviceHistoryStatusSchema = object({
17141
17241
  lastRefreshAt: number().nullable()
17142
17242
  })
17143
17243
  });
17144
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17244
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17145
17245
  deviceId: number().int(),
17146
17246
  ...QueryWindowShape
17147
17247
  }), QueryResultSchema), method(object({
17148
- nodeId: string().min(1),
17248
+ forNodeId: string().min(1),
17149
17249
  ...QueryWindowShape
17150
17250
  }), QueryResultSchema, { auth: "admin" }), method(object({
17251
+ items: array(QueryManyItemSchema).min(1).max(24),
17252
+ from: QueryWindowShape.from,
17253
+ to: QueryWindowShape.to,
17254
+ resolution: QueryWindowShape.resolution,
17255
+ maxPoints: QueryWindowShape.maxPoints
17256
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17151
17257
  name: string().regex(/^[a-z0-9-]+$/),
17152
17258
  subjectKind: _enum(["device", "node"]),
17153
- kind: DeviceHistoryKindSchema,
17259
+ kind: DeviceHistoryProducerKindSchema,
17154
17260
  unit: string().optional(),
17155
17261
  displayName: string().min(1),
17156
17262
  ingest: _enum(["points", "buckets"])
@@ -39949,38 +40055,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
39949
40055
  auth: "admin",
39950
40056
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
39951
40057
  });
40058
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40059
+ /** What a model (or, by default, every model of a kind) can do. */
40060
+ var LlmModelFeaturesSchema = object({
40061
+ vision: boolean(),
40062
+ tools: boolean(),
40063
+ streaming: boolean()
40064
+ });
40065
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40066
+ var LlmModelInfoSchema = object({
40067
+ id: string(),
40068
+ label: string().optional(),
40069
+ contextLength: number().int().positive().optional(),
40070
+ features: LlmModelFeaturesSchema.partial().optional()
40071
+ });
39952
40072
  /**
39953
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
39954
- * methods concat-fan across providers; single-row methods route to ONE
39955
- * provider by the `addonId` in the call input (the notification-output
39956
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
39957
- * (hub-placed); the cap stays open for future providers.
39958
- *
39959
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
39960
- * `apiKey` is a password field — providers REDACT it on read and merge on
39961
- * write; a stored key NEVER round-trips to a client.
40073
+ * The provider-specific part of a profile, validated by the provider that owns
40074
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40075
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40076
+ * keychain, never in the row, and reads back as the redaction marker.
39962
40077
  */
39963
- var LlmProfileKindSchema = _enum([
39964
- "openai-compatible",
39965
- "openai",
39966
- "anthropic",
39967
- "google",
39968
- "managed-local",
39969
- "apple-foundation"
39970
- ]);
40078
+ var LlmProviderConfigSchema = record(string(), unknown());
39971
40079
  var LlmProfileSchema = object({
39972
40080
  id: string(),
39973
40081
  name: string(),
40082
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
39974
40083
  kind: LlmProfileKindSchema,
39975
40084
  /** Stamped by the provider — keeps the fanned catalog routable. */
39976
40085
  addonId: string(),
39977
40086
  enabled: boolean(),
39978
40087
  /** Vendor model id, or the managed runtime's loaded model. */
39979
40088
  model: string(),
39980
- /** Required for openai-compatible; override for cloud kinds. */
39981
- baseUrl: string().optional(),
39982
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
39983
- apiKey: string().optional(),
39984
40089
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
39985
40090
  * degraded to text — that shipped once and produced a confident answer to a
39986
40091
  * question about a picture nobody sent. */
@@ -39988,15 +40093,11 @@ var LlmProfileSchema = object({
39988
40093
  temperature: number().min(0).max(2).optional(),
39989
40094
  /** Nucleus sampling. Every wire we speak has it. */
39990
40095
  topP: number().min(0).max(1).optional(),
39991
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
39992
- * wire does, and the client drops it there (measured: the request body gets
39993
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
39994
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40096
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40097
+ * field in its editor only when its descriptor lists it in `profileFields`. */
39995
40098
  topK: number().int().positive().optional(),
39996
40099
  maxTokens: number().int().positive().optional(),
39997
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
39998
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
39999
- * the model with, so it is the one field that changes a PROCESS. */
40100
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
40000
40101
  contextLength: number().int().positive().optional(),
40001
40102
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
40002
40103
  * two system prompts fighting is worse than either alone). */
@@ -40022,16 +40123,37 @@ var LlmProfileSchema = object({
40022
40123
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40023
40124
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40024
40125
  toolsEnabled: boolean().default(false),
40025
- extraHeaders: record(string(), string()).optional(),
40026
- /** kind === 'managed-local' only (spec §4). */
40027
- runtime: ManagedRuntimeConfigSchema.optional(),
40028
- /**
40029
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40030
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40031
- * `supportsVision` on such a row is stamped by the provider from the node's
40032
- * reported `imageInput`, never taken from the operator (D62).
40033
- */
40034
- appleFoundation: object({ nodeId: string() }).optional()
40126
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40127
+ providerConfig: LlmProviderConfigSchema.default({})
40128
+ });
40129
+ /**
40130
+ * The common profile fields a kind's editor offers. The editor owns how each
40131
+ * one is drawn; the provider says which of them mean something on its wire.
40132
+ */
40133
+ var LlmProfileFieldSchema = _enum([
40134
+ "temperature",
40135
+ "topP",
40136
+ "topK",
40137
+ "maxTokens",
40138
+ "contextLength",
40139
+ "systemPrompt",
40140
+ "timeoutMs",
40141
+ "connectTimeoutMs",
40142
+ "firstTokenTimeoutMs",
40143
+ "idleTimeoutMs",
40144
+ "retry",
40145
+ "toolsEnabled"
40146
+ ]);
40147
+ /**
40148
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40149
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40150
+ * picker: that widget owns the model choice.
40151
+ */
40152
+ var LlmProviderWidgetSchema = object({
40153
+ id: string(),
40154
+ placement: _enum(["connection", "model"]),
40155
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40156
+ requires: array(string()).optional()
40035
40157
  });
40036
40158
  /** ConfigUISchema tree passed through untyped on the wire (the
40037
40159
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40040,11 +40162,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40040
40162
  var LlmProfileKindDescriptorSchema = object({
40041
40163
  kind: LlmProfileKindSchema,
40042
40164
  label: string(),
40165
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40043
40166
  icon: string(),
40044
40167
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40045
40168
  addonId: string(),
40046
- configSchema: ConfigSchemaPassthrough$3
40169
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40170
+ connectionSchema: ConfigSchemaPassthrough$3,
40171
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40172
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40173
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40174
+ features: LlmModelFeaturesSchema,
40175
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40176
+ visionEditable: boolean(),
40177
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40178
+ modelCatalog: _enum([
40179
+ "fetch",
40180
+ "static",
40181
+ "none"
40182
+ ]),
40183
+ staticModels: array(LlmModelInfoSchema).optional(),
40184
+ /** The common fields that mean something on this kind's wire. */
40185
+ profileFields: array(LlmProfileFieldSchema),
40186
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40047
40187
  });
40188
+ /**
40189
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40190
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40191
+ * untouched (absent or the redaction marker) is resolved server-side from the
40192
+ * stored profile — the browser never receives it.
40193
+ */
40194
+ var LlmListModelsInputSchema = object({
40195
+ addonId: string(),
40196
+ kind: LlmProfileKindSchema,
40197
+ profileId: string().optional(),
40198
+ connection: LlmProviderConfigSchema.optional()
40199
+ });
40200
+ var LlmListModelsErrorCodeSchema = _enum([
40201
+ "auth",
40202
+ "network",
40203
+ "unsupported",
40204
+ "invalid"
40205
+ ]);
40206
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40207
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40208
+ ok: literal(true),
40209
+ models: array(LlmModelInfoSchema)
40210
+ }), object({
40211
+ ok: literal(false),
40212
+ code: LlmListModelsErrorCodeSchema,
40213
+ message: string()
40214
+ })]);
40048
40215
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40049
40216
  var LlmDefaultSchema = object({
40050
40217
  selector: LlmDefaultSelectorSchema,
@@ -40144,7 +40311,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40144
40311
  kind: "mutation",
40145
40312
  auth: "admin",
40146
40313
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40147
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40314
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40315
+ kind: "mutation",
40316
+ auth: "admin"
40317
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40148
40318
  selector: LlmDefaultSelectorSchema,
40149
40319
  profileId: string().nullable()
40150
40320
  }), _void(), {
@@ -40312,14 +40482,106 @@ var LogEntrySchema = object({
40312
40482
  meta: record(string(), unknown()).optional(),
40313
40483
  tags: record(string(), string()).optional()
40314
40484
  });
40315
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40316
- scope: array(string()).optional(),
40485
+ /**
40486
+ * A history READ against one destination (D898).
40487
+ *
40488
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40489
+ * browser applied after the limit is what made a rare device's lines
40490
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40491
+ * minted (opaque to everyone else): a file position for the rotated files, a
40492
+ * nanosecond timestamp for Loki.
40493
+ *
40494
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40495
+ * store answers `done: false` with the cursor it reached and the bytes it
40496
+ * scanned, and the caller decides whether to go on. That is what makes a long
40497
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40498
+ * flight, and not asking for the next slice ends the scan.
40499
+ */
40500
+ var LogReadQuerySchema = object({
40501
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40502
+ requestId: string().min(1).max(64).optional(),
40503
+ /** The device the line is about (`tags.deviceId`, numeric). */
40504
+ deviceId: number().int().optional(),
40505
+ /**
40506
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40507
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40508
+ */
40509
+ fromAddonId: string().min(1).max(200).optional(),
40510
+ /**
40511
+ * The emitting node: matches the agent that emitted the line, the node
40512
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40513
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40514
+ * name as "which node's provider".
40515
+ */
40516
+ fromNodeId: string().min(1).max(200).optional(),
40517
+ /** Any other tag, exact match (AND). */
40518
+ tags: record(string(), union([string(), number()])).optional(),
40519
+ /** Severity FLOOR: this level and above. */
40317
40520
  level: LogLevelSchema.optional(),
40318
- since: date().optional(),
40319
- until: date().optional(),
40320
- limit: number().optional(),
40321
- tags: record(string(), string()).optional()
40322
- }), array(LogEntrySchema).readonly());
40521
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40522
+ text: string().min(1).max(200).optional(),
40523
+ /** Epoch ms, inclusive. */
40524
+ since: number().optional(),
40525
+ /** Epoch ms, inclusive. */
40526
+ until: number().optional(),
40527
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40528
+ before: string().min(1).max(1024).optional(),
40529
+ /** Newer than this cursor (exclusive). */
40530
+ after: string().min(1).max(1024).optional(),
40531
+ limit: number().int().min(1).max(1e3).optional(),
40532
+ /** Wall-clock bound of this slice. The provider caps it. */
40533
+ budgetMs: number().int().min(50).max(1e4).optional()
40534
+ });
40535
+ var LogReadResultSchema = object({
40536
+ /** Newest first. */
40537
+ entries: array(object({
40538
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40539
+ id: string().optional(),
40540
+ /** Epoch ms. */
40541
+ timestamp: number(),
40542
+ level: LogLevelSchema,
40543
+ scope: string().optional(),
40544
+ message: string(),
40545
+ tags: record(string(), union([string(), number()])).optional(),
40546
+ meta: record(string(), unknown()).optional()
40547
+ })),
40548
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40549
+ nextBefore: string().nullable(),
40550
+ /** Pass as `after` to read what arrived since; null when unknown. */
40551
+ nextAfter: string().nullable(),
40552
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40553
+ scannedBytes: number().int().nonnegative(),
40554
+ /**
40555
+ * True when the scan in this direction reached the end of the store.
40556
+ * False with fewer than `limit` entries means the budget ran out first —
40557
+ * call again with `nextBefore` to go on.
40558
+ */
40559
+ done: boolean(),
40560
+ /** True when `cancelRead` ended this slice early. */
40561
+ cancelled: boolean().optional()
40562
+ });
40563
+ var LogReadCapabilitiesSchema = object({
40564
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40565
+ readable: boolean(),
40566
+ /** Why not, when `readable` is false — rendered next to the source. */
40567
+ reason: string().nullable(),
40568
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40569
+ filters: object({
40570
+ deviceId: boolean(),
40571
+ addonId: boolean(),
40572
+ nodeId: boolean(),
40573
+ tags: boolean(),
40574
+ level: boolean(),
40575
+ text: boolean(),
40576
+ timeRange: boolean()
40577
+ }),
40578
+ /** How far back the store reaches, when the provider knows (days). */
40579
+ retentionDays: number().nullable()
40580
+ });
40581
+ 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() }), {
40582
+ kind: "mutation",
40583
+ auth: "admin"
40584
+ });
40323
40585
  /**
40324
40586
  * `login-method` — collection cap through which auth addons contribute
40325
40587
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42037,9 +42299,11 @@ var alarmPanelCapability = {
42037
42299
  */
42038
42300
  durability: "restored",
42039
42301
  /**
42040
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42302
+ * History (D850): the panel's lifecycle state as an `enum` series —
42303
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42304
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42041
42305
  */
42042
- history: "none",
42306
+ history: { fields: { state: { kind: "enum" } } },
42043
42307
  /** Clock fields: written, but excluded from the compare that decides
42044
42308
  * whether persisting is worth a SQLite commit. */
42045
42309
  volatileStateFields: ["lastChangedAt"]
@@ -42917,6 +43181,33 @@ var NcRuleTargetSchema = object({
42917
43181
  params: record(string(), unknown()).optional()
42918
43182
  });
42919
43183
  /**
43184
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43185
+ *
43186
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43187
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43188
+ * to the zone that fired the rule) and renders it once at send time:
43189
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43190
+ * colour and every OTHER track visible at that instant outlined thin, each
43191
+ * labelled with class and confidence ("dog 87%").
43192
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43193
+ * - `clean` — the whole scene with nothing drawn on it.
43194
+ * - `none` — no picture.
43195
+ *
43196
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43197
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43198
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43199
+ * ship a crop on one event and a boxed scene on the next depending on which
43200
+ * stored kind had landed.
43201
+ */
43202
+ var NcMediaImageSchema = _enum([
43203
+ "scene-boxes",
43204
+ "crop",
43205
+ "clean",
43206
+ "none"
43207
+ ]);
43208
+ /**
43209
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43210
+ *
42920
43211
  * Media attachment policy (P1 still-image subset).
42921
43212
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
42922
43213
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -42930,6 +43221,8 @@ var NcRuleTargetSchema = object({
42930
43221
  * - `none` — no attachment.
42931
43222
  */
42932
43223
  /**
43224
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43225
+ *
42933
43226
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
42934
43227
  * conflate it with the selection strategy and betray the request: asking for
42935
43228
  * the clean scene frame on an object-event owner used to start at
@@ -42958,16 +43251,29 @@ var NcMediaFrameSchema = _enum([
42958
43251
  */
42959
43252
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
42960
43253
  var NcMediaPolicySchema = object({
43254
+ /**
43255
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43256
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43257
+ * triple below, at load and at every write, and the store keeps only this.
43258
+ */
43259
+ image: NcMediaImageSchema.optional(),
43260
+ /**
43261
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43262
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43263
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43264
+ * Replaces `zoneCrop`.
43265
+ */
43266
+ showTriggerZone: boolean().optional(),
43267
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42961
43268
  attach: _enum([
42962
43269
  "best",
42963
43270
  "best-matching",
42964
43271
  "keyFrame",
42965
43272
  "none"
42966
- ]).default("best"),
42967
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43273
+ ]).optional(),
43274
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42968
43275
  frame: NcMediaFrameSchema.optional(),
42969
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
42970
- * "show me the ZONE", not the whole scene or the subject crop. */
43276
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
42971
43277
  zoneCrop: boolean().optional(),
42972
43278
  /**
42973
43279
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43139,7 +43445,9 @@ var NcRuleInputSchema = object({
43139
43445
  * targets.
43140
43446
  */
43141
43447
  targetUsers: array(string()).optional(),
43142
- media: NcMediaPolicySchema.default({ attach: "best" }),
43448
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43449
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43450
+ media: NcMediaPolicySchema.default({}),
43143
43451
  throttle: NcThrottleSchema.default({
43144
43452
  cooldownSec: 60,
43145
43453
  scope: "rule-device"
@@ -44076,13 +44384,37 @@ var NcAlarmModeOpeningsSchema = object({
44076
44384
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44077
44385
  unknown: array(number().int())
44078
44386
  });
44387
+ /**
44388
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44389
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44390
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44391
+ * never looks fully armed (D62: off must never look like broken).
44392
+ */
44393
+ var NcAlarmInputBypassViewSchema = object({
44394
+ ruleId: string(),
44395
+ /** The rule's current name (its frozen name when the rule is gone). */
44396
+ ruleName: string(),
44397
+ /** The input: the sensor of the match, else its camera. */
44398
+ deviceId: number().int(),
44399
+ /** The input's current name. */
44400
+ name: string(),
44401
+ /** When it was bypassed (ms epoch). */
44402
+ since: number(),
44403
+ /** Triggers from this input dropped since. */
44404
+ dropped: number().int().min(0)
44405
+ });
44079
44406
  var NcAlarmLiveSchema = object({
44080
44407
  state: AlarmStateSchema,
44081
44408
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44082
44409
  targetMode: AlarmArmModeSchema.nullable(),
44083
44410
  availableModes: array(AlarmArmModeSchema),
44084
44411
  openings: array(NcAlarmModeOpeningsSchema),
44085
- exclusions: array(NcAlarmExclusionViewSchema)
44412
+ exclusions: array(NcAlarmExclusionViewSchema),
44413
+ /**
44414
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44415
+ * Defaulted so an older hub answer still parses (as "none known").
44416
+ */
44417
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44086
44418
  });
44087
44419
  var NcAlarmConfigSchema = object({
44088
44420
  /**
@@ -54913,9 +55245,11 @@ var connectivityCapability = {
54913
55245
  */
54914
55246
  durability: "restored",
54915
55247
  /**
54916
- * History (D850): none — duplicates device-status.online (one authority for availability).
55248
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55249
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55250
+ * device's reachability, which stays `device-status.online`.
54917
55251
  */
54918
- history: "none",
55252
+ history: { fields: { connected: { kind: "boolean" } } },
54919
55253
  /** Clock fields: written, but excluded from the compare that decides
54920
55254
  * whether persisting is worth a SQLite commit. */
54921
55255
  volatileStateFields: ["lastChangedAt"]
@@ -55739,11 +56073,22 @@ var dishwasherCapability = {
55739
56073
  },
55740
56074
  runtimeState: DishwasherStatusSchema,
55741
56075
  durability: "session",
55742
- history: { fields: { progressPercent: {
55743
- kind: "gauge",
55744
- unit: "%",
55745
- deadband: 2
55746
- } } }
56076
+ history: { fields: {
56077
+ progressPercent: {
56078
+ kind: "gauge",
56079
+ unit: "%",
56080
+ deadband: 2
56081
+ },
56082
+ state: { kind: "enum" },
56083
+ operationState: { kind: "enum" },
56084
+ remainingSeconds: {
56085
+ kind: "gauge",
56086
+ unit: "s",
56087
+ minIntervalMs: 6e4
56088
+ },
56089
+ doorOpen: { kind: "boolean" },
56090
+ powerOn: { kind: "boolean" }
56091
+ } }
55747
56092
  };
55748
56093
  var DoorbellStatusSchema = object({
55749
56094
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55860,9 +56205,15 @@ var enumSensorCapability = {
55860
56205
  */
55861
56206
  durability: "restored",
55862
56207
  /**
55863
- * History (D850): none — text/enum state has no history (non-goal).
56208
+ * History (D850): the value as an `enum` series (an appliance's program or
56209
+ * operation state, an HVAC action). The option set is per device, so the
56210
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56211
+ * `format` carries a timestamp, not a state, and is not recorded.
55864
56212
  */
55865
- history: "none",
56213
+ history: { fields: { value: {
56214
+ kind: "enum",
56215
+ skipWhenSet: "format"
56216
+ } } },
55866
56217
  /** Clock fields: written, but excluded from the compare that decides
55867
56218
  * whether persisting is worth a SQLite commit. */
55868
56219
  volatileStateFields: ["lastFetchedAt"]
@@ -57836,9 +58187,10 @@ var lockControlCapability = {
57836
58187
  */
57837
58188
  durability: "restored",
57838
58189
  /**
57839
- * History (D850): none — enum state; lock events belong in the events ledger.
58190
+ * History (D850): the lock's state as an `enum` series — change-only, no
58191
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57840
58192
  */
57841
- history: "none",
58193
+ history: { fields: { state: { kind: "enum" } } },
57842
58194
  /** Clock fields: written, but excluded from the compare that decides
57843
58195
  * whether persisting is worth a SQLite commit. */
57844
58196
  volatileStateFields: ["lastChangedAt"]
@@ -58012,9 +58364,18 @@ var mediaPlayerCapability = {
58012
58364
  */
58013
58365
  durability: "session",
58014
58366
  /**
58015
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58367
+ * History (D850): volume (a level an operator or an automation sets; the
58368
+ * default 10 s floor folds a slider drag into its end value) and mute.
58369
+ * `positionMs` is not recorded: it moves continuously while playing.
58016
58370
  */
58017
- history: "none"
58371
+ history: { fields: {
58372
+ volumeLevel: {
58373
+ kind: "gauge",
58374
+ unit: "%",
58375
+ deadband: 1
58376
+ },
58377
+ isMuted: { kind: "boolean" }
58378
+ } }
58018
58379
  };
58019
58380
  /**
58020
58381
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63307,9 +63668,29 @@ var streamParamsCapability = {
63307
63668
  */
63308
63669
  durability: "restored",
63309
63670
  /**
63310
- * History (D850): none — encoder configuration.
63671
+ * History (D850): the configured bitrate and frame rate of the main and sub
63672
+ * profiles. Configuration, so change-only on the default floor: a point is an
63673
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63674
+ * quality over time must show.
63311
63675
  */
63312
- history: "none",
63676
+ history: { fields: {
63677
+ "main.bitrate": {
63678
+ kind: "gauge",
63679
+ unit: "kbps"
63680
+ },
63681
+ "main.framerate": {
63682
+ kind: "gauge",
63683
+ unit: "fps"
63684
+ },
63685
+ "sub.bitrate": {
63686
+ kind: "gauge",
63687
+ unit: "kbps"
63688
+ },
63689
+ "sub.framerate": {
63690
+ kind: "gauge",
63691
+ unit: "fps"
63692
+ }
63693
+ } },
63313
63694
  /** Clock fields: written, but excluded from the compare that decides
63314
63695
  * whether persisting is worth a SQLite commit. */
63315
63696
  volatileStateFields: ["lastFetchedAt"]
@@ -64144,26 +64525,6 @@ var ApiKeySummarySchema = object({
64144
64525
  createdAt: number(),
64145
64526
  lastUsedAt: number().optional()
64146
64527
  });
64147
- var ScopedTokenSummarySchema = object({
64148
- id: string(),
64149
- userId: string(),
64150
- name: string(),
64151
- tokenPrefix: string(),
64152
- scopes: array(TokenScopeSchema),
64153
- expiresAt: number().nullish(),
64154
- lastUsedAt: number().nullish(),
64155
- createdAt: number()
64156
- });
64157
- var CreateScopedTokenInputSchema = object({
64158
- userId: string(),
64159
- name: string(),
64160
- scopes: array(TokenScopeSchema),
64161
- expiresAt: number().optional()
64162
- });
64163
- var CreateScopedTokenResultSchema = object({
64164
- token: string(),
64165
- record: ScopedTokenSummarySchema
64166
- });
64167
64528
  var OauthSessionSummarySchema = object({
64168
64529
  id: string(),
64169
64530
  userId: string(),
@@ -64185,11 +64546,11 @@ var TotpStatusSchema = object({
64185
64546
  confirmedAt: number().nullable()
64186
64547
  });
64187
64548
  /**
64188
- * user-management — singleton capability for user accounts, API keys,
64189
- * and scoped tokens.
64549
+ * user-management — singleton capability for user accounts and the
64550
+ * legacy API-key rows.
64190
64551
  *
64191
64552
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64192
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
64553
+ * — the subset check on `setUserScopes` is moot
64193
64554
  * because non-admins never reach these. If/when we open non-admin
64194
64555
  * delegation, structural caller-scope subset check goes inside the
64195
64556
  * provider.
@@ -64246,15 +64607,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64246
64607
  kind: "mutation",
64247
64608
  auth: "admin",
64248
64609
  access: "delete"
64249
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64250
- kind: "mutation",
64251
- auth: "admin",
64252
- access: "create"
64253
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64254
- kind: "mutation",
64255
- auth: "admin",
64256
- access: "delete"
64257
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
64610
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64258
64611
  kind: "mutation",
64259
64612
  auth: "admin",
64260
64613
  access: "create"
@@ -66515,6 +66868,15 @@ var BaseDevice = class {
66515
66868
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66516
66869
  * with a typed cast.
66517
66870
  *
66871
+ * Answer what you KNOW. A plain array is read as the complete list only
66872
+ * while this device is `online` and probed; return
66873
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66874
+ * now (no credentials, parent not connected, a failed or partial read) —
66875
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66876
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66877
+ * deleted only after a second agreeing complete read on a later probe (D49;
66878
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66879
+ *
66518
66880
  * Default: no children.
66519
66881
  */
66520
66882
  getAccessoryChildren() {
@@ -70344,7 +70706,7 @@ Object.freeze({
70344
70706
  capName: "llm",
70345
70707
  capScope: "system",
70346
70708
  addonId: null,
70347
- access: "view"
70709
+ access: "create"
70348
70710
  },
70349
70711
  "llm.listNodeModels": {
70350
70712
  capName: "llm",
@@ -70646,7 +71008,19 @@ Object.freeze({
70646
71008
  addonId: null,
70647
71009
  access: "view"
70648
71010
  },
70649
- "logDestination.query": {
71011
+ "logDestination.cancelRead": {
71012
+ capName: "log-destination",
71013
+ capScope: "system",
71014
+ addonId: null,
71015
+ access: "create"
71016
+ },
71017
+ "logDestination.describeRead": {
71018
+ capName: "log-destination",
71019
+ capScope: "system",
71020
+ addonId: null,
71021
+ access: "view"
71022
+ },
71023
+ "logDestination.read": {
70650
71024
  capName: "log-destination",
70651
71025
  capScope: "system",
70652
71026
  addonId: null,
@@ -75008,12 +75382,6 @@ Object.freeze({
75008
75382
  addonId: null,
75009
75383
  access: "create"
75010
75384
  },
75011
- "userManagement.createScopedToken": {
75012
- capName: "user-management",
75013
- capScope: "system",
75014
- addonId: null,
75015
- access: "create"
75016
- },
75017
75385
  "userManagement.createUser": {
75018
75386
  capName: "user-management",
75019
75387
  capScope: "system",
@@ -75062,12 +75430,6 @@ Object.freeze({
75062
75430
  addonId: null,
75063
75431
  access: "view"
75064
75432
  },
75065
- "userManagement.listScopedTokens": {
75066
- capName: "user-management",
75067
- capScope: "system",
75068
- addonId: null,
75069
- access: "view"
75070
- },
75071
75433
  "userManagement.listUsers": {
75072
75434
  capName: "user-management",
75073
75435
  capScope: "system",
@@ -75122,12 +75484,6 @@ Object.freeze({
75122
75484
  addonId: null,
75123
75485
  access: "delete"
75124
75486
  },
75125
- "userManagement.revokeScopedToken": {
75126
- capName: "user-management",
75127
- capScope: "system",
75128
- addonId: null,
75129
- access: "delete"
75130
- },
75131
75487
  "userManagement.setupTotp": {
75132
75488
  capName: "user-management",
75133
75489
  capScope: "system",
@@ -75158,12 +75514,6 @@ Object.freeze({
75158
75514
  addonId: null,
75159
75515
  access: "view"
75160
75516
  },
75161
- "userManagement.validateScopedToken": {
75162
- capName: "user-management",
75163
- capScope: "system",
75164
- addonId: null,
75165
- access: "view"
75166
- },
75167
75517
  "userManagement.verifyTotp": {
75168
75518
  capName: "user-management",
75169
75519
  capScope: "system",
@@ -76677,6 +77027,11 @@ Object.freeze({
76677
77027
  form: "single",
76678
77028
  optional: false
76679
77029
  }],
77030
+ "logDestination.read": [{
77031
+ name: "deviceId",
77032
+ form: "single",
77033
+ optional: true
77034
+ }],
76680
77035
  "mediaPlayer.getStatus": [{
76681
77036
  name: "deviceId",
76682
77037
  form: "single",