@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.mjs CHANGED
@@ -5425,7 +5425,7 @@ var ZodIssueCode = {
5425
5425
  var ZodFirstPartyTypeKind;
5426
5426
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5427
5427
  //#endregion
5428
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5428
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5429
5429
  /**
5430
5430
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5431
5431
  * window to float samples (D455).
@@ -7808,9 +7808,9 @@ function normalizeAddonInitResult(result) {
7808
7808
  return result;
7809
7809
  }
7810
7810
  /**
7811
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7812
- * and validates them (`share-token.service.ts` builds its enum from this
7813
- * list); a data plane names the kinds it ACCEPTS in `share`.
7811
+ * The share-view scope kinds a share-link token can carry. The hub mints
7812
+ * and validates them (`ShareViewGrantSchema` builds its
7813
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7814
7814
  */
7815
7815
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7816
7816
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12534,7 +12534,7 @@ var ConvertResultSchema = object({
12534
12534
  * `super_admin` — collapsed onto the single boolean because every
12535
12535
  * non-admin caller is governed by the same scope-check rules; the
12536
12536
  * distinction was only ever used to route role-specific procedures
12537
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12537
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12538
12538
  * with `isAdmin: false` + an explicit scope list.
12539
12539
  */
12540
12540
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -12723,10 +12723,12 @@ var AddonRoutesScopeSchema = object({
12723
12723
  type: literal("addon-routes"),
12724
12724
  access: array(MethodAccessSchema).min(1)
12725
12725
  });
12726
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
12726
12727
  var CredentialScopeSchema = union([
12727
12728
  literal("*"),
12728
12729
  ShareViewScopeSchema,
12729
12730
  AddonRoutesScopeSchema,
12731
+ PreferencesSelfScopeSchema,
12730
12732
  TokenScopeSchema
12731
12733
  ]);
12732
12734
  object({
@@ -12735,6 +12737,55 @@ object({
12735
12737
  jti: string().min(16),
12736
12738
  scopes: array(CredentialScopeSchema).min(1)
12737
12739
  });
12740
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
12741
+ /** A namespace's value: a JSON object, opaque to the hub. */
12742
+ var PreferenceValueSchema = record(string(), unknown());
12743
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
12744
+ /** A stored row, as the owner reads it. */
12745
+ var PreferenceRowSchema = object({
12746
+ namespace: PreferenceNamespaceSchema,
12747
+ value: PreferenceValueSchema,
12748
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
12749
+ revision: number().int().positive(),
12750
+ updatedAt: number().int(),
12751
+ /** The client id the last writer sent; `null` when it sent none. */
12752
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
12753
+ });
12754
+ object({
12755
+ /** Absent: every namespace the caller holds. */
12756
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
12757
+ object({ rows: array(PreferenceRowSchema) });
12758
+ object({
12759
+ namespace: PreferenceNamespaceSchema,
12760
+ value: PreferenceValueSchema,
12761
+ /**
12762
+ * The revision the edit was based on. Absent: last write wins. `0`: the
12763
+ * namespace must not exist yet. Any other value that is not the current
12764
+ * revision answers `conflict` and writes nothing.
12765
+ */
12766
+ baseRevision: number().int().nonnegative().optional(),
12767
+ deviceId: PreferenceDeviceIdSchema.optional()
12768
+ });
12769
+ discriminatedUnion("status", [object({
12770
+ status: literal("saved"),
12771
+ row: PreferenceRowSchema
12772
+ }), object({
12773
+ status: literal("conflict"),
12774
+ current: PreferenceRowSchema.nullable()
12775
+ })]);
12776
+ object({ namespace: PreferenceNamespaceSchema });
12777
+ object({
12778
+ /** `false` when the namespace did not exist. */
12779
+ deleted: boolean() });
12780
+ object({
12781
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
12782
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
12783
+ object({
12784
+ /** Every row whose revision differs from the client's, and every row it did not list. */
12785
+ rows: array(PreferenceRowSchema),
12786
+ /** Namespaces the client listed that no longer exist. */
12787
+ deleted: array(PreferenceNamespaceSchema)
12788
+ });
12738
12789
  _enum(["new-session", "step-up"]);
12739
12790
  /** The languages the hub's app landing pages are written in (D858). */
12740
12791
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -16988,7 +17039,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
16988
17039
  kind: literal("node"),
16989
17040
  nodeId: string().min(1)
16990
17041
  })]);
17042
+ /**
17043
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17044
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17045
+ * meaning); a rollup keeps the time spent in each state (`states`).
17046
+ */
16991
17047
  var DeviceHistoryKindSchema = _enum([
17048
+ "gauge",
17049
+ "counter",
17050
+ "boolean",
17051
+ "enum"
17052
+ ]);
17053
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17054
+ var DeviceHistoryProducerKindSchema = _enum([
16992
17055
  "gauge",
16993
17056
  "counter",
16994
17057
  "boolean"
@@ -17025,7 +17088,13 @@ var SeriesInfoSchema = object({
17025
17088
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17026
17089
  unit: string().nullable(),
17027
17090
  displayName: string(),
17028
- source: _enum(["cap", "addon"]),
17091
+ source: _enum([
17092
+ "cap",
17093
+ "addon",
17094
+ "derived"
17095
+ ]),
17096
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17097
+ values: array(string()).readonly().nullable(),
17029
17098
  firstTs: number(),
17030
17099
  lastTs: number()
17031
17100
  });
@@ -17039,17 +17108,31 @@ var QueryPointSchema = object({
17039
17108
  twMean: number().nullable(),
17040
17109
  min: number(),
17041
17110
  max: number(),
17042
- /** `null` is unknown, never zero (D393). */
17043
- last: number().nullable()
17111
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17112
+ last: number().nullable(),
17113
+ /**
17114
+ * The increase over the point: a `counter`'s growth since the previous point
17115
+ * or bucket (a drop is a reset, counted from zero), and for
17116
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17117
+ * every other kind, and when it cannot be known.
17118
+ */
17119
+ delta: number().nullable(),
17120
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17121
+ state: string().nullable(),
17122
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17123
+ states: record(string(), number()).nullable()
17044
17124
  });
17045
17125
  var QuerySeriesSchema = object({
17046
17126
  scope: string(),
17047
17127
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17048
17128
  before: object({
17049
17129
  t: number(),
17050
- value: number().nullable()
17130
+ value: number().nullable(),
17131
+ state: string().nullable()
17051
17132
  }).nullable(),
17052
- points: array(QueryPointSchema).readonly()
17133
+ points: array(QueryPointSchema).readonly(),
17134
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17135
+ derivedFrom: string().nullable()
17053
17136
  });
17054
17137
  /** The window part of a query, shared by the device and node forms. */
17055
17138
  var QueryWindowShape = {
@@ -17065,6 +17148,23 @@ var QueryResultSchema = object({
17065
17148
  series: array(QuerySeriesSchema).readonly(),
17066
17149
  truncated: boolean()
17067
17150
  });
17151
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17152
+ var QueryManyItemSchema = union([object({
17153
+ deviceId: number().int(),
17154
+ key: string(),
17155
+ scope: string().optional()
17156
+ }), object({
17157
+ forNodeId: string().min(1),
17158
+ key: string(),
17159
+ scope: string().optional()
17160
+ })]);
17161
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17162
+ ok: literal(true),
17163
+ result: QueryResultSchema
17164
+ }), object({
17165
+ ok: literal(false),
17166
+ error: string()
17167
+ })]);
17068
17168
  var TierStatusSchema = object({
17069
17169
  tier: DeviceHistoryResolutionSchema,
17070
17170
  /** `null` until the first background count answered. */
@@ -17120,16 +17220,22 @@ var DeviceHistoryStatusSchema = object({
17120
17220
  lastRefreshAt: number().nullable()
17121
17221
  })
17122
17222
  });
17123
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17223
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17124
17224
  deviceId: number().int(),
17125
17225
  ...QueryWindowShape
17126
17226
  }), QueryResultSchema), method(object({
17127
- nodeId: string().min(1),
17227
+ forNodeId: string().min(1),
17128
17228
  ...QueryWindowShape
17129
17229
  }), QueryResultSchema, { auth: "admin" }), method(object({
17230
+ items: array(QueryManyItemSchema).min(1).max(24),
17231
+ from: QueryWindowShape.from,
17232
+ to: QueryWindowShape.to,
17233
+ resolution: QueryWindowShape.resolution,
17234
+ maxPoints: QueryWindowShape.maxPoints
17235
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17130
17236
  name: string().regex(/^[a-z0-9-]+$/),
17131
17237
  subjectKind: _enum(["device", "node"]),
17132
- kind: DeviceHistoryKindSchema,
17238
+ kind: DeviceHistoryProducerKindSchema,
17133
17239
  unit: string().optional(),
17134
17240
  displayName: string().min(1),
17135
17241
  ingest: _enum(["points", "buckets"])
@@ -39928,38 +40034,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
39928
40034
  auth: "admin",
39929
40035
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
39930
40036
  });
40037
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40038
+ /** What a model (or, by default, every model of a kind) can do. */
40039
+ var LlmModelFeaturesSchema = object({
40040
+ vision: boolean(),
40041
+ tools: boolean(),
40042
+ streaming: boolean()
40043
+ });
40044
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40045
+ var LlmModelInfoSchema = object({
40046
+ id: string(),
40047
+ label: string().optional(),
40048
+ contextLength: number().int().positive().optional(),
40049
+ features: LlmModelFeaturesSchema.partial().optional()
40050
+ });
39931
40051
  /**
39932
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
39933
- * methods concat-fan across providers; single-row methods route to ONE
39934
- * provider by the `addonId` in the call input (the notification-output
39935
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
39936
- * (hub-placed); the cap stays open for future providers.
39937
- *
39938
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
39939
- * `apiKey` is a password field — providers REDACT it on read and merge on
39940
- * write; a stored key NEVER round-trips to a client.
40052
+ * The provider-specific part of a profile, validated by the provider that owns
40053
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40054
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40055
+ * keychain, never in the row, and reads back as the redaction marker.
39941
40056
  */
39942
- var LlmProfileKindSchema = _enum([
39943
- "openai-compatible",
39944
- "openai",
39945
- "anthropic",
39946
- "google",
39947
- "managed-local",
39948
- "apple-foundation"
39949
- ]);
40057
+ var LlmProviderConfigSchema = record(string(), unknown());
39950
40058
  var LlmProfileSchema = object({
39951
40059
  id: string(),
39952
40060
  name: string(),
40061
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
39953
40062
  kind: LlmProfileKindSchema,
39954
40063
  /** Stamped by the provider — keeps the fanned catalog routable. */
39955
40064
  addonId: string(),
39956
40065
  enabled: boolean(),
39957
40066
  /** Vendor model id, or the managed runtime's loaded model. */
39958
40067
  model: string(),
39959
- /** Required for openai-compatible; override for cloud kinds. */
39960
- baseUrl: string().optional(),
39961
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
39962
- apiKey: string().optional(),
39963
40068
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
39964
40069
  * degraded to text — that shipped once and produced a confident answer to a
39965
40070
  * question about a picture nobody sent. */
@@ -39967,15 +40072,11 @@ var LlmProfileSchema = object({
39967
40072
  temperature: number().min(0).max(2).optional(),
39968
40073
  /** Nucleus sampling. Every wire we speak has it. */
39969
40074
  topP: number().min(0).max(1).optional(),
39970
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
39971
- * wire does, and the client drops it there (measured: the request body gets
39972
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
39973
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40075
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40076
+ * field in its editor only when its descriptor lists it in `profileFields`. */
39974
40077
  topK: number().int().positive().optional(),
39975
40078
  maxTokens: number().int().positive().optional(),
39976
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
39977
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
39978
- * the model with, so it is the one field that changes a PROCESS. */
40079
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
39979
40080
  contextLength: number().int().positive().optional(),
39980
40081
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
39981
40082
  * two system prompts fighting is worse than either alone). */
@@ -40001,16 +40102,37 @@ var LlmProfileSchema = object({
40001
40102
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40002
40103
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40003
40104
  toolsEnabled: boolean().default(false),
40004
- extraHeaders: record(string(), string()).optional(),
40005
- /** kind === 'managed-local' only (spec §4). */
40006
- runtime: ManagedRuntimeConfigSchema.optional(),
40007
- /**
40008
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40009
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40010
- * `supportsVision` on such a row is stamped by the provider from the node's
40011
- * reported `imageInput`, never taken from the operator (D62).
40012
- */
40013
- appleFoundation: object({ nodeId: string() }).optional()
40105
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40106
+ providerConfig: LlmProviderConfigSchema.default({})
40107
+ });
40108
+ /**
40109
+ * The common profile fields a kind's editor offers. The editor owns how each
40110
+ * one is drawn; the provider says which of them mean something on its wire.
40111
+ */
40112
+ var LlmProfileFieldSchema = _enum([
40113
+ "temperature",
40114
+ "topP",
40115
+ "topK",
40116
+ "maxTokens",
40117
+ "contextLength",
40118
+ "systemPrompt",
40119
+ "timeoutMs",
40120
+ "connectTimeoutMs",
40121
+ "firstTokenTimeoutMs",
40122
+ "idleTimeoutMs",
40123
+ "retry",
40124
+ "toolsEnabled"
40125
+ ]);
40126
+ /**
40127
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40128
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40129
+ * picker: that widget owns the model choice.
40130
+ */
40131
+ var LlmProviderWidgetSchema = object({
40132
+ id: string(),
40133
+ placement: _enum(["connection", "model"]),
40134
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40135
+ requires: array(string()).optional()
40014
40136
  });
40015
40137
  /** ConfigUISchema tree passed through untyped on the wire (the
40016
40138
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40019,11 +40141,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40019
40141
  var LlmProfileKindDescriptorSchema = object({
40020
40142
  kind: LlmProfileKindSchema,
40021
40143
  label: string(),
40144
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40022
40145
  icon: string(),
40023
40146
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40024
40147
  addonId: string(),
40025
- configSchema: ConfigSchemaPassthrough$3
40148
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40149
+ connectionSchema: ConfigSchemaPassthrough$3,
40150
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40151
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40152
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40153
+ features: LlmModelFeaturesSchema,
40154
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40155
+ visionEditable: boolean(),
40156
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40157
+ modelCatalog: _enum([
40158
+ "fetch",
40159
+ "static",
40160
+ "none"
40161
+ ]),
40162
+ staticModels: array(LlmModelInfoSchema).optional(),
40163
+ /** The common fields that mean something on this kind's wire. */
40164
+ profileFields: array(LlmProfileFieldSchema),
40165
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40026
40166
  });
40167
+ /**
40168
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40169
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40170
+ * untouched (absent or the redaction marker) is resolved server-side from the
40171
+ * stored profile — the browser never receives it.
40172
+ */
40173
+ var LlmListModelsInputSchema = object({
40174
+ addonId: string(),
40175
+ kind: LlmProfileKindSchema,
40176
+ profileId: string().optional(),
40177
+ connection: LlmProviderConfigSchema.optional()
40178
+ });
40179
+ var LlmListModelsErrorCodeSchema = _enum([
40180
+ "auth",
40181
+ "network",
40182
+ "unsupported",
40183
+ "invalid"
40184
+ ]);
40185
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40186
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40187
+ ok: literal(true),
40188
+ models: array(LlmModelInfoSchema)
40189
+ }), object({
40190
+ ok: literal(false),
40191
+ code: LlmListModelsErrorCodeSchema,
40192
+ message: string()
40193
+ })]);
40027
40194
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40028
40195
  var LlmDefaultSchema = object({
40029
40196
  selector: LlmDefaultSelectorSchema,
@@ -40123,7 +40290,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40123
40290
  kind: "mutation",
40124
40291
  auth: "admin",
40125
40292
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40126
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40293
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40294
+ kind: "mutation",
40295
+ auth: "admin"
40296
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40127
40297
  selector: LlmDefaultSelectorSchema,
40128
40298
  profileId: string().nullable()
40129
40299
  }), _void(), {
@@ -40291,14 +40461,106 @@ var LogEntrySchema = object({
40291
40461
  meta: record(string(), unknown()).optional(),
40292
40462
  tags: record(string(), string()).optional()
40293
40463
  });
40294
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40295
- scope: array(string()).optional(),
40464
+ /**
40465
+ * A history READ against one destination (D898).
40466
+ *
40467
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40468
+ * browser applied after the limit is what made a rare device's lines
40469
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40470
+ * minted (opaque to everyone else): a file position for the rotated files, a
40471
+ * nanosecond timestamp for Loki.
40472
+ *
40473
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40474
+ * store answers `done: false` with the cursor it reached and the bytes it
40475
+ * scanned, and the caller decides whether to go on. That is what makes a long
40476
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40477
+ * flight, and not asking for the next slice ends the scan.
40478
+ */
40479
+ var LogReadQuerySchema = object({
40480
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40481
+ requestId: string().min(1).max(64).optional(),
40482
+ /** The device the line is about (`tags.deviceId`, numeric). */
40483
+ deviceId: number().int().optional(),
40484
+ /**
40485
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40486
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40487
+ */
40488
+ fromAddonId: string().min(1).max(200).optional(),
40489
+ /**
40490
+ * The emitting node: matches the agent that emitted the line, the node
40491
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40492
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40493
+ * name as "which node's provider".
40494
+ */
40495
+ fromNodeId: string().min(1).max(200).optional(),
40496
+ /** Any other tag, exact match (AND). */
40497
+ tags: record(string(), union([string(), number()])).optional(),
40498
+ /** Severity FLOOR: this level and above. */
40296
40499
  level: LogLevelSchema.optional(),
40297
- since: date().optional(),
40298
- until: date().optional(),
40299
- limit: number().optional(),
40300
- tags: record(string(), string()).optional()
40301
- }), array(LogEntrySchema).readonly());
40500
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40501
+ text: string().min(1).max(200).optional(),
40502
+ /** Epoch ms, inclusive. */
40503
+ since: number().optional(),
40504
+ /** Epoch ms, inclusive. */
40505
+ until: number().optional(),
40506
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40507
+ before: string().min(1).max(1024).optional(),
40508
+ /** Newer than this cursor (exclusive). */
40509
+ after: string().min(1).max(1024).optional(),
40510
+ limit: number().int().min(1).max(1e3).optional(),
40511
+ /** Wall-clock bound of this slice. The provider caps it. */
40512
+ budgetMs: number().int().min(50).max(1e4).optional()
40513
+ });
40514
+ var LogReadResultSchema = object({
40515
+ /** Newest first. */
40516
+ entries: array(object({
40517
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40518
+ id: string().optional(),
40519
+ /** Epoch ms. */
40520
+ timestamp: number(),
40521
+ level: LogLevelSchema,
40522
+ scope: string().optional(),
40523
+ message: string(),
40524
+ tags: record(string(), union([string(), number()])).optional(),
40525
+ meta: record(string(), unknown()).optional()
40526
+ })),
40527
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40528
+ nextBefore: string().nullable(),
40529
+ /** Pass as `after` to read what arrived since; null when unknown. */
40530
+ nextAfter: string().nullable(),
40531
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40532
+ scannedBytes: number().int().nonnegative(),
40533
+ /**
40534
+ * True when the scan in this direction reached the end of the store.
40535
+ * False with fewer than `limit` entries means the budget ran out first —
40536
+ * call again with `nextBefore` to go on.
40537
+ */
40538
+ done: boolean(),
40539
+ /** True when `cancelRead` ended this slice early. */
40540
+ cancelled: boolean().optional()
40541
+ });
40542
+ var LogReadCapabilitiesSchema = object({
40543
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40544
+ readable: boolean(),
40545
+ /** Why not, when `readable` is false — rendered next to the source. */
40546
+ reason: string().nullable(),
40547
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40548
+ filters: object({
40549
+ deviceId: boolean(),
40550
+ addonId: boolean(),
40551
+ nodeId: boolean(),
40552
+ tags: boolean(),
40553
+ level: boolean(),
40554
+ text: boolean(),
40555
+ timeRange: boolean()
40556
+ }),
40557
+ /** How far back the store reaches, when the provider knows (days). */
40558
+ retentionDays: number().nullable()
40559
+ });
40560
+ 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() }), {
40561
+ kind: "mutation",
40562
+ auth: "admin"
40563
+ });
40302
40564
  /**
40303
40565
  * `login-method` — collection cap through which auth addons contribute
40304
40566
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42016,9 +42278,11 @@ var alarmPanelCapability = {
42016
42278
  */
42017
42279
  durability: "restored",
42018
42280
  /**
42019
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42281
+ * History (D850): the panel's lifecycle state as an `enum` series —
42282
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42283
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42020
42284
  */
42021
- history: "none",
42285
+ history: { fields: { state: { kind: "enum" } } },
42022
42286
  /** Clock fields: written, but excluded from the compare that decides
42023
42287
  * whether persisting is worth a SQLite commit. */
42024
42288
  volatileStateFields: ["lastChangedAt"]
@@ -42896,6 +43160,33 @@ var NcRuleTargetSchema = object({
42896
43160
  params: record(string(), unknown()).optional()
42897
43161
  });
42898
43162
  /**
43163
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43164
+ *
43165
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43166
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43167
+ * to the zone that fired the rule) and renders it once at send time:
43168
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43169
+ * colour and every OTHER track visible at that instant outlined thin, each
43170
+ * labelled with class and confidence ("dog 87%").
43171
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43172
+ * - `clean` — the whole scene with nothing drawn on it.
43173
+ * - `none` — no picture.
43174
+ *
43175
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43176
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43177
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43178
+ * ship a crop on one event and a boxed scene on the next depending on which
43179
+ * stored kind had landed.
43180
+ */
43181
+ var NcMediaImageSchema = _enum([
43182
+ "scene-boxes",
43183
+ "crop",
43184
+ "clean",
43185
+ "none"
43186
+ ]);
43187
+ /**
43188
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43189
+ *
42899
43190
  * Media attachment policy (P1 still-image subset).
42900
43191
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
42901
43192
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -42909,6 +43200,8 @@ var NcRuleTargetSchema = object({
42909
43200
  * - `none` — no attachment.
42910
43201
  */
42911
43202
  /**
43203
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43204
+ *
42912
43205
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
42913
43206
  * conflate it with the selection strategy and betray the request: asking for
42914
43207
  * the clean scene frame on an object-event owner used to start at
@@ -42937,16 +43230,29 @@ var NcMediaFrameSchema = _enum([
42937
43230
  */
42938
43231
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
42939
43232
  var NcMediaPolicySchema = object({
43233
+ /**
43234
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43235
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43236
+ * triple below, at load and at every write, and the store keeps only this.
43237
+ */
43238
+ image: NcMediaImageSchema.optional(),
43239
+ /**
43240
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43241
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43242
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43243
+ * Replaces `zoneCrop`.
43244
+ */
43245
+ showTriggerZone: boolean().optional(),
43246
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42940
43247
  attach: _enum([
42941
43248
  "best",
42942
43249
  "best-matching",
42943
43250
  "keyFrame",
42944
43251
  "none"
42945
- ]).default("best"),
42946
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43252
+ ]).optional(),
43253
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42947
43254
  frame: NcMediaFrameSchema.optional(),
42948
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
42949
- * "show me the ZONE", not the whole scene or the subject crop. */
43255
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
42950
43256
  zoneCrop: boolean().optional(),
42951
43257
  /**
42952
43258
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43118,7 +43424,9 @@ var NcRuleInputSchema = object({
43118
43424
  * targets.
43119
43425
  */
43120
43426
  targetUsers: array(string()).optional(),
43121
- media: NcMediaPolicySchema.default({ attach: "best" }),
43427
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43428
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43429
+ media: NcMediaPolicySchema.default({}),
43122
43430
  throttle: NcThrottleSchema.default({
43123
43431
  cooldownSec: 60,
43124
43432
  scope: "rule-device"
@@ -44055,13 +44363,37 @@ var NcAlarmModeOpeningsSchema = object({
44055
44363
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44056
44364
  unknown: array(number().int())
44057
44365
  });
44366
+ /**
44367
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44368
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44369
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44370
+ * never looks fully armed (D62: off must never look like broken).
44371
+ */
44372
+ var NcAlarmInputBypassViewSchema = object({
44373
+ ruleId: string(),
44374
+ /** The rule's current name (its frozen name when the rule is gone). */
44375
+ ruleName: string(),
44376
+ /** The input: the sensor of the match, else its camera. */
44377
+ deviceId: number().int(),
44378
+ /** The input's current name. */
44379
+ name: string(),
44380
+ /** When it was bypassed (ms epoch). */
44381
+ since: number(),
44382
+ /** Triggers from this input dropped since. */
44383
+ dropped: number().int().min(0)
44384
+ });
44058
44385
  var NcAlarmLiveSchema = object({
44059
44386
  state: AlarmStateSchema,
44060
44387
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44061
44388
  targetMode: AlarmArmModeSchema.nullable(),
44062
44389
  availableModes: array(AlarmArmModeSchema),
44063
44390
  openings: array(NcAlarmModeOpeningsSchema),
44064
- exclusions: array(NcAlarmExclusionViewSchema)
44391
+ exclusions: array(NcAlarmExclusionViewSchema),
44392
+ /**
44393
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44394
+ * Defaulted so an older hub answer still parses (as "none known").
44395
+ */
44396
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44065
44397
  });
44066
44398
  var NcAlarmConfigSchema = object({
44067
44399
  /**
@@ -54892,9 +55224,11 @@ var connectivityCapability = {
54892
55224
  */
54893
55225
  durability: "restored",
54894
55226
  /**
54895
- * History (D850): none — duplicates device-status.online (one authority for availability).
55227
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55228
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55229
+ * device's reachability, which stays `device-status.online`.
54896
55230
  */
54897
- history: "none",
55231
+ history: { fields: { connected: { kind: "boolean" } } },
54898
55232
  /** Clock fields: written, but excluded from the compare that decides
54899
55233
  * whether persisting is worth a SQLite commit. */
54900
55234
  volatileStateFields: ["lastChangedAt"]
@@ -55718,11 +56052,22 @@ var dishwasherCapability = {
55718
56052
  },
55719
56053
  runtimeState: DishwasherStatusSchema,
55720
56054
  durability: "session",
55721
- history: { fields: { progressPercent: {
55722
- kind: "gauge",
55723
- unit: "%",
55724
- deadband: 2
55725
- } } }
56055
+ history: { fields: {
56056
+ progressPercent: {
56057
+ kind: "gauge",
56058
+ unit: "%",
56059
+ deadband: 2
56060
+ },
56061
+ state: { kind: "enum" },
56062
+ operationState: { kind: "enum" },
56063
+ remainingSeconds: {
56064
+ kind: "gauge",
56065
+ unit: "s",
56066
+ minIntervalMs: 6e4
56067
+ },
56068
+ doorOpen: { kind: "boolean" },
56069
+ powerOn: { kind: "boolean" }
56070
+ } }
55726
56071
  };
55727
56072
  var DoorbellStatusSchema = object({
55728
56073
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55839,9 +56184,15 @@ var enumSensorCapability = {
55839
56184
  */
55840
56185
  durability: "restored",
55841
56186
  /**
55842
- * History (D850): none — text/enum state has no history (non-goal).
56187
+ * History (D850): the value as an `enum` series (an appliance's program or
56188
+ * operation state, an HVAC action). The option set is per device, so the
56189
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56190
+ * `format` carries a timestamp, not a state, and is not recorded.
55843
56191
  */
55844
- history: "none",
56192
+ history: { fields: { value: {
56193
+ kind: "enum",
56194
+ skipWhenSet: "format"
56195
+ } } },
55845
56196
  /** Clock fields: written, but excluded from the compare that decides
55846
56197
  * whether persisting is worth a SQLite commit. */
55847
56198
  volatileStateFields: ["lastFetchedAt"]
@@ -57815,9 +58166,10 @@ var lockControlCapability = {
57815
58166
  */
57816
58167
  durability: "restored",
57817
58168
  /**
57818
- * History (D850): none — enum state; lock events belong in the events ledger.
58169
+ * History (D850): the lock's state as an `enum` series — change-only, no
58170
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57819
58171
  */
57820
- history: "none",
58172
+ history: { fields: { state: { kind: "enum" } } },
57821
58173
  /** Clock fields: written, but excluded from the compare that decides
57822
58174
  * whether persisting is worth a SQLite commit. */
57823
58175
  volatileStateFields: ["lastChangedAt"]
@@ -57991,9 +58343,18 @@ var mediaPlayerCapability = {
57991
58343
  */
57992
58344
  durability: "session",
57993
58345
  /**
57994
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58346
+ * History (D850): volume (a level an operator or an automation sets; the
58347
+ * default 10 s floor folds a slider drag into its end value) and mute.
58348
+ * `positionMs` is not recorded: it moves continuously while playing.
57995
58349
  */
57996
- history: "none"
58350
+ history: { fields: {
58351
+ volumeLevel: {
58352
+ kind: "gauge",
58353
+ unit: "%",
58354
+ deadband: 1
58355
+ },
58356
+ isMuted: { kind: "boolean" }
58357
+ } }
57997
58358
  };
57998
58359
  /**
57999
58360
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63286,9 +63647,29 @@ var streamParamsCapability = {
63286
63647
  */
63287
63648
  durability: "restored",
63288
63649
  /**
63289
- * History (D850): none — encoder configuration.
63650
+ * History (D850): the configured bitrate and frame rate of the main and sub
63651
+ * profiles. Configuration, so change-only on the default floor: a point is an
63652
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63653
+ * quality over time must show.
63290
63654
  */
63291
- history: "none",
63655
+ history: { fields: {
63656
+ "main.bitrate": {
63657
+ kind: "gauge",
63658
+ unit: "kbps"
63659
+ },
63660
+ "main.framerate": {
63661
+ kind: "gauge",
63662
+ unit: "fps"
63663
+ },
63664
+ "sub.bitrate": {
63665
+ kind: "gauge",
63666
+ unit: "kbps"
63667
+ },
63668
+ "sub.framerate": {
63669
+ kind: "gauge",
63670
+ unit: "fps"
63671
+ }
63672
+ } },
63292
63673
  /** Clock fields: written, but excluded from the compare that decides
63293
63674
  * whether persisting is worth a SQLite commit. */
63294
63675
  volatileStateFields: ["lastFetchedAt"]
@@ -64123,26 +64504,6 @@ var ApiKeySummarySchema = object({
64123
64504
  createdAt: number(),
64124
64505
  lastUsedAt: number().optional()
64125
64506
  });
64126
- var ScopedTokenSummarySchema = object({
64127
- id: string(),
64128
- userId: string(),
64129
- name: string(),
64130
- tokenPrefix: string(),
64131
- scopes: array(TokenScopeSchema),
64132
- expiresAt: number().nullish(),
64133
- lastUsedAt: number().nullish(),
64134
- createdAt: number()
64135
- });
64136
- var CreateScopedTokenInputSchema = object({
64137
- userId: string(),
64138
- name: string(),
64139
- scopes: array(TokenScopeSchema),
64140
- expiresAt: number().optional()
64141
- });
64142
- var CreateScopedTokenResultSchema = object({
64143
- token: string(),
64144
- record: ScopedTokenSummarySchema
64145
- });
64146
64507
  var OauthSessionSummarySchema = object({
64147
64508
  id: string(),
64148
64509
  userId: string(),
@@ -64164,11 +64525,11 @@ var TotpStatusSchema = object({
64164
64525
  confirmedAt: number().nullable()
64165
64526
  });
64166
64527
  /**
64167
- * user-management — singleton capability for user accounts, API keys,
64168
- * and scoped tokens.
64528
+ * user-management — singleton capability for user accounts and the
64529
+ * legacy API-key rows.
64169
64530
  *
64170
64531
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64171
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
64532
+ * — the subset check on `setUserScopes` is moot
64172
64533
  * because non-admins never reach these. If/when we open non-admin
64173
64534
  * delegation, structural caller-scope subset check goes inside the
64174
64535
  * provider.
@@ -64225,15 +64586,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64225
64586
  kind: "mutation",
64226
64587
  auth: "admin",
64227
64588
  access: "delete"
64228
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64229
- kind: "mutation",
64230
- auth: "admin",
64231
- access: "create"
64232
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64233
- kind: "mutation",
64234
- auth: "admin",
64235
- access: "delete"
64236
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
64589
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64237
64590
  kind: "mutation",
64238
64591
  auth: "admin",
64239
64592
  access: "create"
@@ -66494,6 +66847,15 @@ var BaseDevice = class {
66494
66847
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66495
66848
  * with a typed cast.
66496
66849
  *
66850
+ * Answer what you KNOW. A plain array is read as the complete list only
66851
+ * while this device is `online` and probed; return
66852
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66853
+ * now (no credentials, parent not connected, a failed or partial read) —
66854
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66855
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66856
+ * deleted only after a second agreeing complete read on a later probe (D49;
66857
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66858
+ *
66497
66859
  * Default: no children.
66498
66860
  */
66499
66861
  getAccessoryChildren() {
@@ -70323,7 +70685,7 @@ Object.freeze({
70323
70685
  capName: "llm",
70324
70686
  capScope: "system",
70325
70687
  addonId: null,
70326
- access: "view"
70688
+ access: "create"
70327
70689
  },
70328
70690
  "llm.listNodeModels": {
70329
70691
  capName: "llm",
@@ -70625,7 +70987,19 @@ Object.freeze({
70625
70987
  addonId: null,
70626
70988
  access: "view"
70627
70989
  },
70628
- "logDestination.query": {
70990
+ "logDestination.cancelRead": {
70991
+ capName: "log-destination",
70992
+ capScope: "system",
70993
+ addonId: null,
70994
+ access: "create"
70995
+ },
70996
+ "logDestination.describeRead": {
70997
+ capName: "log-destination",
70998
+ capScope: "system",
70999
+ addonId: null,
71000
+ access: "view"
71001
+ },
71002
+ "logDestination.read": {
70629
71003
  capName: "log-destination",
70630
71004
  capScope: "system",
70631
71005
  addonId: null,
@@ -74987,12 +75361,6 @@ Object.freeze({
74987
75361
  addonId: null,
74988
75362
  access: "create"
74989
75363
  },
74990
- "userManagement.createScopedToken": {
74991
- capName: "user-management",
74992
- capScope: "system",
74993
- addonId: null,
74994
- access: "create"
74995
- },
74996
75364
  "userManagement.createUser": {
74997
75365
  capName: "user-management",
74998
75366
  capScope: "system",
@@ -75041,12 +75409,6 @@ Object.freeze({
75041
75409
  addonId: null,
75042
75410
  access: "view"
75043
75411
  },
75044
- "userManagement.listScopedTokens": {
75045
- capName: "user-management",
75046
- capScope: "system",
75047
- addonId: null,
75048
- access: "view"
75049
- },
75050
75412
  "userManagement.listUsers": {
75051
75413
  capName: "user-management",
75052
75414
  capScope: "system",
@@ -75101,12 +75463,6 @@ Object.freeze({
75101
75463
  addonId: null,
75102
75464
  access: "delete"
75103
75465
  },
75104
- "userManagement.revokeScopedToken": {
75105
- capName: "user-management",
75106
- capScope: "system",
75107
- addonId: null,
75108
- access: "delete"
75109
- },
75110
75466
  "userManagement.setupTotp": {
75111
75467
  capName: "user-management",
75112
75468
  capScope: "system",
@@ -75137,12 +75493,6 @@ Object.freeze({
75137
75493
  addonId: null,
75138
75494
  access: "view"
75139
75495
  },
75140
- "userManagement.validateScopedToken": {
75141
- capName: "user-management",
75142
- capScope: "system",
75143
- addonId: null,
75144
- access: "view"
75145
- },
75146
75496
  "userManagement.verifyTotp": {
75147
75497
  capName: "user-management",
75148
75498
  capScope: "system",
@@ -76656,6 +77006,11 @@ Object.freeze({
76656
77006
  form: "single",
76657
77007
  optional: false
76658
77008
  }],
77009
+ "logDestination.read": [{
77010
+ name: "deviceId",
77011
+ form: "single",
77012
+ optional: true
77013
+ }],
76659
77014
  "mediaPlayer.getStatus": [{
76660
77015
  name: "deviceId",
76661
77016
  form: "single",