@camstack/addon-provider-petkit 0.2.130 → 0.2.132

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
@@ -6516,7 +6516,7 @@ var ZodIssueCode = {
6516
6516
  var ZodFirstPartyTypeKind;
6517
6517
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6518
6518
  //#endregion
6519
- //#region ../types/dist/sleep-BxjU_fJM.mjs
6519
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
6520
6520
  /**
6521
6521
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6522
6522
  * window to float samples (D455).
@@ -8899,9 +8899,9 @@ function normalizeAddonInitResult(result) {
8899
8899
  return result;
8900
8900
  }
8901
8901
  /**
8902
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
8903
- * and validates them (`share-token.service.ts` builds its enum from this
8904
- * list); a data plane names the kinds it ACCEPTS in `share`.
8902
+ * The share-view scope kinds a share-link token can carry. The hub mints
8903
+ * and validates them (`ShareViewGrantSchema` builds its
8904
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
8905
8905
  */
8906
8906
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
8907
8907
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -13591,7 +13591,7 @@ var ConvertResultSchema = object({
13591
13591
  * `super_admin` — collapsed onto the single boolean because every
13592
13592
  * non-admin caller is governed by the same scope-check rules; the
13593
13593
  * distinction was only ever used to route role-specific procedures
13594
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
13594
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
13595
13595
  * with `isAdmin: false` + an explicit scope list.
13596
13596
  */
13597
13597
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -13780,10 +13780,12 @@ var AddonRoutesScopeSchema = object({
13780
13780
  type: literal("addon-routes"),
13781
13781
  access: array(MethodAccessSchema).min(1)
13782
13782
  });
13783
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
13783
13784
  var CredentialScopeSchema = union([
13784
13785
  literal("*"),
13785
13786
  ShareViewScopeSchema,
13786
13787
  AddonRoutesScopeSchema,
13788
+ PreferencesSelfScopeSchema,
13787
13789
  TokenScopeSchema
13788
13790
  ]);
13789
13791
  object({
@@ -13792,6 +13794,55 @@ object({
13792
13794
  jti: string().min(16),
13793
13795
  scopes: array(CredentialScopeSchema).min(1)
13794
13796
  });
13797
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
13798
+ /** A namespace's value: a JSON object, opaque to the hub. */
13799
+ var PreferenceValueSchema = record(string(), unknown());
13800
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
13801
+ /** A stored row, as the owner reads it. */
13802
+ var PreferenceRowSchema = object({
13803
+ namespace: PreferenceNamespaceSchema,
13804
+ value: PreferenceValueSchema,
13805
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
13806
+ revision: number().int().positive(),
13807
+ updatedAt: number().int(),
13808
+ /** The client id the last writer sent; `null` when it sent none. */
13809
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
13810
+ });
13811
+ object({
13812
+ /** Absent: every namespace the caller holds. */
13813
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
13814
+ object({ rows: array(PreferenceRowSchema) });
13815
+ object({
13816
+ namespace: PreferenceNamespaceSchema,
13817
+ value: PreferenceValueSchema,
13818
+ /**
13819
+ * The revision the edit was based on. Absent: last write wins. `0`: the
13820
+ * namespace must not exist yet. Any other value that is not the current
13821
+ * revision answers `conflict` and writes nothing.
13822
+ */
13823
+ baseRevision: number().int().nonnegative().optional(),
13824
+ deviceId: PreferenceDeviceIdSchema.optional()
13825
+ });
13826
+ discriminatedUnion("status", [object({
13827
+ status: literal("saved"),
13828
+ row: PreferenceRowSchema
13829
+ }), object({
13830
+ status: literal("conflict"),
13831
+ current: PreferenceRowSchema.nullable()
13832
+ })]);
13833
+ object({ namespace: PreferenceNamespaceSchema });
13834
+ object({
13835
+ /** `false` when the namespace did not exist. */
13836
+ deleted: boolean() });
13837
+ object({
13838
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
13839
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
13840
+ object({
13841
+ /** Every row whose revision differs from the client's, and every row it did not list. */
13842
+ rows: array(PreferenceRowSchema),
13843
+ /** Namespaces the client listed that no longer exist. */
13844
+ deleted: array(PreferenceNamespaceSchema)
13845
+ });
13795
13846
  _enum(["new-session", "step-up"]);
13796
13847
  /** The languages the hub's app landing pages are written in (D858). */
13797
13848
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -18045,7 +18096,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
18045
18096
  kind: literal("node"),
18046
18097
  nodeId: string().min(1)
18047
18098
  })]);
18099
+ /**
18100
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
18101
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
18102
+ * meaning); a rollup keeps the time spent in each state (`states`).
18103
+ */
18048
18104
  var DeviceHistoryKindSchema = _enum([
18105
+ "gauge",
18106
+ "counter",
18107
+ "boolean",
18108
+ "enum"
18109
+ ]);
18110
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
18111
+ var DeviceHistoryProducerKindSchema = _enum([
18049
18112
  "gauge",
18050
18113
  "counter",
18051
18114
  "boolean"
@@ -18082,7 +18145,13 @@ var SeriesInfoSchema = object({
18082
18145
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
18083
18146
  unit: string().nullable(),
18084
18147
  displayName: string(),
18085
- source: _enum(["cap", "addon"]),
18148
+ source: _enum([
18149
+ "cap",
18150
+ "addon",
18151
+ "derived"
18152
+ ]),
18153
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
18154
+ values: array(string()).readonly().nullable(),
18086
18155
  firstTs: number(),
18087
18156
  lastTs: number()
18088
18157
  });
@@ -18096,17 +18165,31 @@ var QueryPointSchema = object({
18096
18165
  twMean: number().nullable(),
18097
18166
  min: number(),
18098
18167
  max: number(),
18099
- /** `null` is unknown, never zero (D393). */
18100
- last: number().nullable()
18168
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
18169
+ last: number().nullable(),
18170
+ /**
18171
+ * The increase over the point: a `counter`'s growth since the previous point
18172
+ * or bucket (a drop is a reset, counted from zero), and for
18173
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
18174
+ * every other kind, and when it cannot be known.
18175
+ */
18176
+ delta: number().nullable(),
18177
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
18178
+ state: string().nullable(),
18179
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
18180
+ states: record(string(), number()).nullable()
18101
18181
  });
18102
18182
  var QuerySeriesSchema = object({
18103
18183
  scope: string(),
18104
18184
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
18105
18185
  before: object({
18106
18186
  t: number(),
18107
- value: number().nullable()
18187
+ value: number().nullable(),
18188
+ state: string().nullable()
18108
18189
  }).nullable(),
18109
- points: array(QueryPointSchema).readonly()
18190
+ points: array(QueryPointSchema).readonly(),
18191
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
18192
+ derivedFrom: string().nullable()
18110
18193
  });
18111
18194
  /** The window part of a query, shared by the device and node forms. */
18112
18195
  var QueryWindowShape = {
@@ -18122,6 +18205,23 @@ var QueryResultSchema = object({
18122
18205
  series: array(QuerySeriesSchema).readonly(),
18123
18206
  truncated: boolean()
18124
18207
  });
18208
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
18209
+ var QueryManyItemSchema = union([object({
18210
+ deviceId: number().int(),
18211
+ key: string(),
18212
+ scope: string().optional()
18213
+ }), object({
18214
+ forNodeId: string().min(1),
18215
+ key: string(),
18216
+ scope: string().optional()
18217
+ })]);
18218
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
18219
+ ok: literal(true),
18220
+ result: QueryResultSchema
18221
+ }), object({
18222
+ ok: literal(false),
18223
+ error: string()
18224
+ })]);
18125
18225
  var TierStatusSchema = object({
18126
18226
  tier: DeviceHistoryResolutionSchema,
18127
18227
  /** `null` until the first background count answered. */
@@ -18177,16 +18277,22 @@ var DeviceHistoryStatusSchema = object({
18177
18277
  lastRefreshAt: number().nullable()
18178
18278
  })
18179
18279
  });
18180
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
18280
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
18181
18281
  deviceId: number().int(),
18182
18282
  ...QueryWindowShape
18183
18283
  }), QueryResultSchema), method(object({
18184
- nodeId: string().min(1),
18284
+ forNodeId: string().min(1),
18185
18285
  ...QueryWindowShape
18186
18286
  }), QueryResultSchema, { auth: "admin" }), method(object({
18287
+ items: array(QueryManyItemSchema).min(1).max(24),
18288
+ from: QueryWindowShape.from,
18289
+ to: QueryWindowShape.to,
18290
+ resolution: QueryWindowShape.resolution,
18291
+ maxPoints: QueryWindowShape.maxPoints
18292
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
18187
18293
  name: string().regex(/^[a-z0-9-]+$/),
18188
18294
  subjectKind: _enum(["device", "node"]),
18189
- kind: DeviceHistoryKindSchema,
18295
+ kind: DeviceHistoryProducerKindSchema,
18190
18296
  unit: string().optional(),
18191
18297
  displayName: string().min(1),
18192
18298
  ingest: _enum(["points", "buckets"])
@@ -40985,38 +41091,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40985
41091
  auth: "admin",
40986
41092
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40987
41093
  });
41094
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
41095
+ /** What a model (or, by default, every model of a kind) can do. */
41096
+ var LlmModelFeaturesSchema = object({
41097
+ vision: boolean(),
41098
+ tools: boolean(),
41099
+ streaming: boolean()
41100
+ });
41101
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
41102
+ var LlmModelInfoSchema = object({
41103
+ id: string(),
41104
+ label: string().optional(),
41105
+ contextLength: number().int().positive().optional(),
41106
+ features: LlmModelFeaturesSchema.partial().optional()
41107
+ });
40988
41108
  /**
40989
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40990
- * methods concat-fan across providers; single-row methods route to ONE
40991
- * provider by the `addonId` in the call input (the notification-output
40992
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40993
- * (hub-placed); the cap stays open for future providers.
40994
- *
40995
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40996
- * `apiKey` is a password field — providers REDACT it on read and merge on
40997
- * write; a stored key NEVER round-trips to a client.
41109
+ * The provider-specific part of a profile, validated by the provider that owns
41110
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
41111
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
41112
+ * keychain, never in the row, and reads back as the redaction marker.
40998
41113
  */
40999
- var LlmProfileKindSchema = _enum([
41000
- "openai-compatible",
41001
- "openai",
41002
- "anthropic",
41003
- "google",
41004
- "managed-local",
41005
- "apple-foundation"
41006
- ]);
41114
+ var LlmProviderConfigSchema = record(string(), unknown());
41007
41115
  var LlmProfileSchema = object({
41008
41116
  id: string(),
41009
41117
  name: string(),
41118
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
41010
41119
  kind: LlmProfileKindSchema,
41011
41120
  /** Stamped by the provider — keeps the fanned catalog routable. */
41012
41121
  addonId: string(),
41013
41122
  enabled: boolean(),
41014
41123
  /** Vendor model id, or the managed runtime's loaded model. */
41015
41124
  model: string(),
41016
- /** Required for openai-compatible; override for cloud kinds. */
41017
- baseUrl: string().optional(),
41018
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
41019
- apiKey: string().optional(),
41020
41125
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
41021
41126
  * degraded to text — that shipped once and produced a confident answer to a
41022
41127
  * question about a picture nobody sent. */
@@ -41024,15 +41129,11 @@ var LlmProfileSchema = object({
41024
41129
  temperature: number().min(0).max(2).optional(),
41025
41130
  /** Nucleus sampling. Every wire we speak has it. */
41026
41131
  topP: number().min(0).max(1).optional(),
41027
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
41028
- * wire does, and the client drops it there (measured: the request body gets
41029
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
41030
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
41132
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
41133
+ * field in its editor only when its descriptor lists it in `profileFields`. */
41031
41134
  topK: number().int().positive().optional(),
41032
41135
  maxTokens: number().int().positive().optional(),
41033
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
41034
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
41035
- * the model with, so it is the one field that changes a PROCESS. */
41136
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
41036
41137
  contextLength: number().int().positive().optional(),
41037
41138
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
41038
41139
  * two system prompts fighting is worse than either alone). */
@@ -41058,16 +41159,37 @@ var LlmProfileSchema = object({
41058
41159
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
41059
41160
  * `true` here buys the wiring, not behaviour, until tools are registered. */
41060
41161
  toolsEnabled: boolean().default(false),
41061
- extraHeaders: record(string(), string()).optional(),
41062
- /** kind === 'managed-local' only (spec §4). */
41063
- runtime: ManagedRuntimeConfigSchema.optional(),
41064
- /**
41065
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
41066
- * to configure (no key, no URL, no download; `model` is `apple-system`).
41067
- * `supportsVision` on such a row is stamped by the provider from the node's
41068
- * reported `imageInput`, never taken from the operator (D62).
41069
- */
41070
- appleFoundation: object({ nodeId: string() }).optional()
41162
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
41163
+ providerConfig: LlmProviderConfigSchema.default({})
41164
+ });
41165
+ /**
41166
+ * The common profile fields a kind's editor offers. The editor owns how each
41167
+ * one is drawn; the provider says which of them mean something on its wire.
41168
+ */
41169
+ var LlmProfileFieldSchema = _enum([
41170
+ "temperature",
41171
+ "topP",
41172
+ "topK",
41173
+ "maxTokens",
41174
+ "contextLength",
41175
+ "systemPrompt",
41176
+ "timeoutMs",
41177
+ "connectTimeoutMs",
41178
+ "firstTokenTimeoutMs",
41179
+ "idleTimeoutMs",
41180
+ "retry",
41181
+ "toolsEnabled"
41182
+ ]);
41183
+ /**
41184
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
41185
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
41186
+ * picker: that widget owns the model choice.
41187
+ */
41188
+ var LlmProviderWidgetSchema = object({
41189
+ id: string(),
41190
+ placement: _enum(["connection", "model"]),
41191
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
41192
+ requires: array(string()).optional()
41071
41193
  });
41072
41194
  /** ConfigUISchema tree passed through untyped on the wire (the
41073
41195
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -41076,11 +41198,56 @@ var ConfigSchemaPassthrough$3 = unknown();
41076
41198
  var LlmProfileKindDescriptorSchema = object({
41077
41199
  kind: LlmProfileKindSchema,
41078
41200
  label: string(),
41201
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
41079
41202
  icon: string(),
41080
41203
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
41081
41204
  addonId: string(),
41082
- configSchema: ConfigSchemaPassthrough$3
41205
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
41206
+ connectionSchema: ConfigSchemaPassthrough$3,
41207
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
41208
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
41209
+ /** The kind's defaults; a model from `listModels` may override any of them. */
41210
+ features: LlmModelFeaturesSchema,
41211
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
41212
+ visionEditable: boolean(),
41213
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
41214
+ modelCatalog: _enum([
41215
+ "fetch",
41216
+ "static",
41217
+ "none"
41218
+ ]),
41219
+ staticModels: array(LlmModelInfoSchema).optional(),
41220
+ /** The common fields that mean something on this kind's wire. */
41221
+ profileFields: array(LlmProfileFieldSchema),
41222
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
41083
41223
  });
41224
+ /**
41225
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
41226
+ * (the editor's form); with `profileId` too, a secret the draft leaves
41227
+ * untouched (absent or the redaction marker) is resolved server-side from the
41228
+ * stored profile — the browser never receives it.
41229
+ */
41230
+ var LlmListModelsInputSchema = object({
41231
+ addonId: string(),
41232
+ kind: LlmProfileKindSchema,
41233
+ profileId: string().optional(),
41234
+ connection: LlmProviderConfigSchema.optional()
41235
+ });
41236
+ var LlmListModelsErrorCodeSchema = _enum([
41237
+ "auth",
41238
+ "network",
41239
+ "unsupported",
41240
+ "invalid"
41241
+ ]);
41242
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
41243
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
41244
+ ok: literal(true),
41245
+ models: array(LlmModelInfoSchema)
41246
+ }), object({
41247
+ ok: literal(false),
41248
+ code: LlmListModelsErrorCodeSchema,
41249
+ message: string()
41250
+ })]);
41084
41251
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
41085
41252
  var LlmDefaultSchema = object({
41086
41253
  selector: LlmDefaultSelectorSchema,
@@ -41180,7 +41347,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
41180
41347
  kind: "mutation",
41181
41348
  auth: "admin",
41182
41349
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
41183
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
41350
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
41351
+ kind: "mutation",
41352
+ auth: "admin"
41353
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
41184
41354
  selector: LlmDefaultSelectorSchema,
41185
41355
  profileId: string().nullable()
41186
41356
  }), _void(), {
@@ -41348,14 +41518,106 @@ var LogEntrySchema = object({
41348
41518
  meta: record(string(), unknown()).optional(),
41349
41519
  tags: record(string(), string()).optional()
41350
41520
  });
41351
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
41352
- scope: array(string()).optional(),
41521
+ /**
41522
+ * A history READ against one destination (D898).
41523
+ *
41524
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
41525
+ * browser applied after the limit is what made a rare device's lines
41526
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
41527
+ * minted (opaque to everyone else): a file position for the rotated files, a
41528
+ * nanosecond timestamp for Loki.
41529
+ *
41530
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
41531
+ * store answers `done: false` with the cursor it reached and the bytes it
41532
+ * scanned, and the caller decides whether to go on. That is what makes a long
41533
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
41534
+ * flight, and not asking for the next slice ends the scan.
41535
+ */
41536
+ var LogReadQuerySchema = object({
41537
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
41538
+ requestId: string().min(1).max(64).optional(),
41539
+ /** The device the line is about (`tags.deviceId`, numeric). */
41540
+ deviceId: number().int().optional(),
41541
+ /**
41542
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
41543
+ * match. Not `addonId`: a cap router reads that name as "which provider".
41544
+ */
41545
+ fromAddonId: string().min(1).max(200).optional(),
41546
+ /**
41547
+ * The emitting node: matches the agent that emitted the line, the node
41548
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
41549
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
41550
+ * name as "which node's provider".
41551
+ */
41552
+ fromNodeId: string().min(1).max(200).optional(),
41553
+ /** Any other tag, exact match (AND). */
41554
+ tags: record(string(), union([string(), number()])).optional(),
41555
+ /** Severity FLOOR: this level and above. */
41353
41556
  level: LogLevelSchema.optional(),
41354
- since: date().optional(),
41355
- until: date().optional(),
41356
- limit: number().optional(),
41357
- tags: record(string(), string()).optional()
41358
- }), array(LogEntrySchema).readonly());
41557
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
41558
+ text: string().min(1).max(200).optional(),
41559
+ /** Epoch ms, inclusive. */
41560
+ since: number().optional(),
41561
+ /** Epoch ms, inclusive. */
41562
+ until: number().optional(),
41563
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
41564
+ before: string().min(1).max(1024).optional(),
41565
+ /** Newer than this cursor (exclusive). */
41566
+ after: string().min(1).max(1024).optional(),
41567
+ limit: number().int().min(1).max(1e3).optional(),
41568
+ /** Wall-clock bound of this slice. The provider caps it. */
41569
+ budgetMs: number().int().min(50).max(1e4).optional()
41570
+ });
41571
+ var LogReadResultSchema = object({
41572
+ /** Newest first. */
41573
+ entries: array(object({
41574
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
41575
+ id: string().optional(),
41576
+ /** Epoch ms. */
41577
+ timestamp: number(),
41578
+ level: LogLevelSchema,
41579
+ scope: string().optional(),
41580
+ message: string(),
41581
+ tags: record(string(), union([string(), number()])).optional(),
41582
+ meta: record(string(), unknown()).optional()
41583
+ })),
41584
+ /** Pass as `before` for the next older page; null when nothing older exists. */
41585
+ nextBefore: string().nullable(),
41586
+ /** Pass as `after` to read what arrived since; null when unknown. */
41587
+ nextAfter: string().nullable(),
41588
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
41589
+ scannedBytes: number().int().nonnegative(),
41590
+ /**
41591
+ * True when the scan in this direction reached the end of the store.
41592
+ * False with fewer than `limit` entries means the budget ran out first —
41593
+ * call again with `nextBefore` to go on.
41594
+ */
41595
+ done: boolean(),
41596
+ /** True when `cancelRead` ended this slice early. */
41597
+ cancelled: boolean().optional()
41598
+ });
41599
+ var LogReadCapabilitiesSchema = object({
41600
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41601
+ readable: boolean(),
41602
+ /** Why not, when `readable` is false — rendered next to the source. */
41603
+ reason: string().nullable(),
41604
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41605
+ filters: object({
41606
+ deviceId: boolean(),
41607
+ addonId: boolean(),
41608
+ nodeId: boolean(),
41609
+ tags: boolean(),
41610
+ level: boolean(),
41611
+ text: boolean(),
41612
+ timeRange: boolean()
41613
+ }),
41614
+ /** How far back the store reaches, when the provider knows (days). */
41615
+ retentionDays: number().nullable()
41616
+ });
41617
+ 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() }), {
41618
+ kind: "mutation",
41619
+ auth: "admin"
41620
+ });
41359
41621
  /**
41360
41622
  * `login-method` — collection cap through which auth addons contribute
41361
41623
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -43073,9 +43335,11 @@ var alarmPanelCapability = {
43073
43335
  */
43074
43336
  durability: "restored",
43075
43337
  /**
43076
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
43338
+ * History (D850): the panel's lifecycle state as an `enum` series —
43339
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
43340
+ * few seconds keeps every step. Who armed it stays in the events ledger.
43077
43341
  */
43078
- history: "none",
43342
+ history: { fields: { state: { kind: "enum" } } },
43079
43343
  /** Clock fields: written, but excluded from the compare that decides
43080
43344
  * whether persisting is worth a SQLite commit. */
43081
43345
  volatileStateFields: ["lastChangedAt"]
@@ -43953,6 +44217,33 @@ var NcRuleTargetSchema = object({
43953
44217
  params: record(string(), unknown()).optional()
43954
44218
  });
43955
44219
  /**
44220
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
44221
+ *
44222
+ * Every mode starts from the same CLEAN source frame of the trigger moment
44223
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
44224
+ * to the zone that fired the rule) and renders it once at send time:
44225
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
44226
+ * colour and every OTHER track visible at that instant outlined thin, each
44227
+ * labelled with class and confidence ("dog 87%").
44228
+ * - `crop` — the subject cut out of that frame around its box at that instant.
44229
+ * - `clean` — the whole scene with nothing drawn on it.
44230
+ * - `none` — no picture.
44231
+ *
44232
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
44233
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
44234
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
44235
+ * ship a crop on one event and a boxed scene on the next depending on which
44236
+ * stored kind had landed.
44237
+ */
44238
+ var NcMediaImageSchema = _enum([
44239
+ "scene-boxes",
44240
+ "crop",
44241
+ "clean",
44242
+ "none"
44243
+ ]);
44244
+ /**
44245
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
44246
+ *
43956
44247
  * Media attachment policy (P1 still-image subset).
43957
44248
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43958
44249
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43966,6 +44257,8 @@ var NcRuleTargetSchema = object({
43966
44257
  * - `none` — no attachment.
43967
44258
  */
43968
44259
  /**
44260
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
44261
+ *
43969
44262
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43970
44263
  * conflate it with the selection strategy and betray the request: asking for
43971
44264
  * the clean scene frame on an object-event owner used to start at
@@ -43994,16 +44287,29 @@ var NcMediaFrameSchema = _enum([
43994
44287
  */
43995
44288
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43996
44289
  var NcMediaPolicySchema = object({
44290
+ /**
44291
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
44292
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
44293
+ * triple below, at load and at every write, and the store keeps only this.
44294
+ */
44295
+ image: NcMediaImageSchema.optional(),
44296
+ /**
44297
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
44298
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
44299
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
44300
+ * Replaces `zoneCrop`.
44301
+ */
44302
+ showTriggerZone: boolean().optional(),
44303
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43997
44304
  attach: _enum([
43998
44305
  "best",
43999
44306
  "best-matching",
44000
44307
  "keyFrame",
44001
44308
  "none"
44002
- ]).default("best"),
44003
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
44309
+ ]).optional(),
44310
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
44004
44311
  frame: NcMediaFrameSchema.optional(),
44005
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
44006
- * "show me the ZONE", not the whole scene or the subject crop. */
44312
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
44007
44313
  zoneCrop: boolean().optional(),
44008
44314
  /**
44009
44315
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -44175,7 +44481,9 @@ var NcRuleInputSchema = object({
44175
44481
  * targets.
44176
44482
  */
44177
44483
  targetUsers: array(string()).optional(),
44178
- media: NcMediaPolicySchema.default({ attach: "best" }),
44484
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
44485
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
44486
+ media: NcMediaPolicySchema.default({}),
44179
44487
  throttle: NcThrottleSchema.default({
44180
44488
  cooldownSec: 60,
44181
44489
  scope: "rule-device"
@@ -45112,13 +45420,37 @@ var NcAlarmModeOpeningsSchema = object({
45112
45420
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
45113
45421
  unknown: array(number().int())
45114
45422
  });
45423
+ /**
45424
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
45425
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
45426
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
45427
+ * never looks fully armed (D62: off must never look like broken).
45428
+ */
45429
+ var NcAlarmInputBypassViewSchema = object({
45430
+ ruleId: string(),
45431
+ /** The rule's current name (its frozen name when the rule is gone). */
45432
+ ruleName: string(),
45433
+ /** The input: the sensor of the match, else its camera. */
45434
+ deviceId: number().int(),
45435
+ /** The input's current name. */
45436
+ name: string(),
45437
+ /** When it was bypassed (ms epoch). */
45438
+ since: number(),
45439
+ /** Triggers from this input dropped since. */
45440
+ dropped: number().int().min(0)
45441
+ });
45115
45442
  var NcAlarmLiveSchema = object({
45116
45443
  state: AlarmStateSchema,
45117
45444
  /** The mode being armed into (exit delay) or held; null when disarmed. */
45118
45445
  targetMode: AlarmArmModeSchema.nullable(),
45119
45446
  availableModes: array(AlarmArmModeSchema),
45120
45447
  openings: array(NcAlarmModeOpeningsSchema),
45121
- exclusions: array(NcAlarmExclusionViewSchema)
45448
+ exclusions: array(NcAlarmExclusionViewSchema),
45449
+ /**
45450
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
45451
+ * Defaulted so an older hub answer still parses (as "none known").
45452
+ */
45453
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
45122
45454
  });
45123
45455
  var NcAlarmConfigSchema = object({
45124
45456
  /**
@@ -55845,9 +56177,11 @@ var connectivityCapability = {
55845
56177
  */
55846
56178
  durability: "restored",
55847
56179
  /**
55848
- * History (D850): none — duplicates device-status.online (one authority for availability).
56180
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
56181
+ * is the upstream entity's own link (a HA connectivity sensor), not the
56182
+ * device's reachability, which stays `device-status.online`.
55849
56183
  */
55850
- history: "none",
56184
+ history: { fields: { connected: { kind: "boolean" } } },
55851
56185
  /** Clock fields: written, but excluded from the compare that decides
55852
56186
  * whether persisting is worth a SQLite commit. */
55853
56187
  volatileStateFields: ["lastChangedAt"]
@@ -56671,11 +57005,22 @@ var dishwasherCapability = {
56671
57005
  },
56672
57006
  runtimeState: DishwasherStatusSchema,
56673
57007
  durability: "session",
56674
- history: { fields: { progressPercent: {
56675
- kind: "gauge",
56676
- unit: "%",
56677
- deadband: 2
56678
- } } }
57008
+ history: { fields: {
57009
+ progressPercent: {
57010
+ kind: "gauge",
57011
+ unit: "%",
57012
+ deadband: 2
57013
+ },
57014
+ state: { kind: "enum" },
57015
+ operationState: { kind: "enum" },
57016
+ remainingSeconds: {
57017
+ kind: "gauge",
57018
+ unit: "s",
57019
+ minIntervalMs: 6e4
57020
+ },
57021
+ doorOpen: { kind: "boolean" },
57022
+ powerOn: { kind: "boolean" }
57023
+ } }
56679
57024
  };
56680
57025
  var DoorbellStatusSchema = object({
56681
57026
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56792,9 +57137,15 @@ var enumSensorCapability = {
56792
57137
  */
56793
57138
  durability: "restored",
56794
57139
  /**
56795
- * History (D850): none — text/enum state has no history (non-goal).
57140
+ * History (D850): the value as an `enum` series (an appliance's program or
57141
+ * operation state, an HVAC action). The option set is per device, so the
57142
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
57143
+ * `format` carries a timestamp, not a state, and is not recorded.
56796
57144
  */
56797
- history: "none",
57145
+ history: { fields: { value: {
57146
+ kind: "enum",
57147
+ skipWhenSet: "format"
57148
+ } } },
56798
57149
  /** Clock fields: written, but excluded from the compare that decides
56799
57150
  * whether persisting is worth a SQLite commit. */
56800
57151
  volatileStateFields: ["lastFetchedAt"]
@@ -58768,9 +59119,10 @@ var lockControlCapability = {
58768
59119
  */
58769
59120
  durability: "restored",
58770
59121
  /**
58771
- * History (D850): none — enum state; lock events belong in the events ledger.
59122
+ * History (D850): the lock's state as an `enum` series — change-only, no
59123
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58772
59124
  */
58773
- history: "none",
59125
+ history: { fields: { state: { kind: "enum" } } },
58774
59126
  /** Clock fields: written, but excluded from the compare that decides
58775
59127
  * whether persisting is worth a SQLite commit. */
58776
59128
  volatileStateFields: ["lastChangedAt"]
@@ -58944,9 +59296,18 @@ var mediaPlayerCapability = {
58944
59296
  */
58945
59297
  durability: "session",
58946
59298
  /**
58947
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
59299
+ * History (D850): volume (a level an operator or an automation sets; the
59300
+ * default 10 s floor folds a slider drag into its end value) and mute.
59301
+ * `positionMs` is not recorded: it moves continuously while playing.
58948
59302
  */
58949
- history: "none"
59303
+ history: { fields: {
59304
+ volumeLevel: {
59305
+ kind: "gauge",
59306
+ unit: "%",
59307
+ deadband: 1
59308
+ },
59309
+ isMuted: { kind: "boolean" }
59310
+ } }
58950
59311
  };
58951
59312
  /**
58952
59313
  * mesh-network — collection cap for mesh-VPN providers.
@@ -64239,9 +64600,29 @@ var streamParamsCapability = {
64239
64600
  */
64240
64601
  durability: "restored",
64241
64602
  /**
64242
- * History (D850): none — encoder configuration.
64603
+ * History (D850): the configured bitrate and frame rate of the main and sub
64604
+ * profiles. Configuration, so change-only on the default floor: a point is an
64605
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64606
+ * quality over time must show.
64243
64607
  */
64244
- history: "none",
64608
+ history: { fields: {
64609
+ "main.bitrate": {
64610
+ kind: "gauge",
64611
+ unit: "kbps"
64612
+ },
64613
+ "main.framerate": {
64614
+ kind: "gauge",
64615
+ unit: "fps"
64616
+ },
64617
+ "sub.bitrate": {
64618
+ kind: "gauge",
64619
+ unit: "kbps"
64620
+ },
64621
+ "sub.framerate": {
64622
+ kind: "gauge",
64623
+ unit: "fps"
64624
+ }
64625
+ } },
64245
64626
  /** Clock fields: written, but excluded from the compare that decides
64246
64627
  * whether persisting is worth a SQLite commit. */
64247
64628
  volatileStateFields: ["lastFetchedAt"]
@@ -65076,26 +65457,6 @@ var ApiKeySummarySchema = object({
65076
65457
  createdAt: number(),
65077
65458
  lastUsedAt: number().optional()
65078
65459
  });
65079
- var ScopedTokenSummarySchema = object({
65080
- id: string(),
65081
- userId: string(),
65082
- name: string(),
65083
- tokenPrefix: string(),
65084
- scopes: array(TokenScopeSchema),
65085
- expiresAt: number().nullish(),
65086
- lastUsedAt: number().nullish(),
65087
- createdAt: number()
65088
- });
65089
- var CreateScopedTokenInputSchema = object({
65090
- userId: string(),
65091
- name: string(),
65092
- scopes: array(TokenScopeSchema),
65093
- expiresAt: number().optional()
65094
- });
65095
- var CreateScopedTokenResultSchema = object({
65096
- token: string(),
65097
- record: ScopedTokenSummarySchema
65098
- });
65099
65460
  var OauthSessionSummarySchema = object({
65100
65461
  id: string(),
65101
65462
  userId: string(),
@@ -65117,11 +65478,11 @@ var TotpStatusSchema = object({
65117
65478
  confirmedAt: number().nullable()
65118
65479
  });
65119
65480
  /**
65120
- * user-management — singleton capability for user accounts, API keys,
65121
- * and scoped tokens.
65481
+ * user-management — singleton capability for user accounts and the
65482
+ * legacy API-key rows.
65122
65483
  *
65123
65484
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
65124
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
65485
+ * — the subset check on `setUserScopes` is moot
65125
65486
  * because non-admins never reach these. If/when we open non-admin
65126
65487
  * delegation, structural caller-scope subset check goes inside the
65127
65488
  * provider.
@@ -65178,15 +65539,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
65178
65539
  kind: "mutation",
65179
65540
  auth: "admin",
65180
65541
  access: "delete"
65181
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
65182
- kind: "mutation",
65183
- auth: "admin",
65184
- access: "create"
65185
- }), method(object({ id: string() }), object({ success: literal(true) }), {
65186
- kind: "mutation",
65187
- auth: "admin",
65188
- access: "delete"
65189
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
65542
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
65190
65543
  kind: "mutation",
65191
65544
  auth: "admin",
65192
65545
  access: "create"
@@ -67447,6 +67800,15 @@ var BaseDevice = class {
67447
67800
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
67448
67801
  * with a typed cast.
67449
67802
  *
67803
+ * Answer what you KNOW. A plain array is read as the complete list only
67804
+ * while this device is `online` and probed; return
67805
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67806
+ * now (no credentials, parent not connected, a failed or partial read) —
67807
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67808
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67809
+ * deleted only after a second agreeing complete read on a later probe (D49;
67810
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67811
+ *
67450
67812
  * Default: no children.
67451
67813
  */
67452
67814
  getAccessoryChildren() {
@@ -71276,7 +71638,7 @@ Object.freeze({
71276
71638
  capName: "llm",
71277
71639
  capScope: "system",
71278
71640
  addonId: null,
71279
- access: "view"
71641
+ access: "create"
71280
71642
  },
71281
71643
  "llm.listNodeModels": {
71282
71644
  capName: "llm",
@@ -71578,7 +71940,19 @@ Object.freeze({
71578
71940
  addonId: null,
71579
71941
  access: "view"
71580
71942
  },
71581
- "logDestination.query": {
71943
+ "logDestination.cancelRead": {
71944
+ capName: "log-destination",
71945
+ capScope: "system",
71946
+ addonId: null,
71947
+ access: "create"
71948
+ },
71949
+ "logDestination.describeRead": {
71950
+ capName: "log-destination",
71951
+ capScope: "system",
71952
+ addonId: null,
71953
+ access: "view"
71954
+ },
71955
+ "logDestination.read": {
71582
71956
  capName: "log-destination",
71583
71957
  capScope: "system",
71584
71958
  addonId: null,
@@ -75940,12 +76314,6 @@ Object.freeze({
75940
76314
  addonId: null,
75941
76315
  access: "create"
75942
76316
  },
75943
- "userManagement.createScopedToken": {
75944
- capName: "user-management",
75945
- capScope: "system",
75946
- addonId: null,
75947
- access: "create"
75948
- },
75949
76317
  "userManagement.createUser": {
75950
76318
  capName: "user-management",
75951
76319
  capScope: "system",
@@ -75994,12 +76362,6 @@ Object.freeze({
75994
76362
  addonId: null,
75995
76363
  access: "view"
75996
76364
  },
75997
- "userManagement.listScopedTokens": {
75998
- capName: "user-management",
75999
- capScope: "system",
76000
- addonId: null,
76001
- access: "view"
76002
- },
76003
76365
  "userManagement.listUsers": {
76004
76366
  capName: "user-management",
76005
76367
  capScope: "system",
@@ -76054,12 +76416,6 @@ Object.freeze({
76054
76416
  addonId: null,
76055
76417
  access: "delete"
76056
76418
  },
76057
- "userManagement.revokeScopedToken": {
76058
- capName: "user-management",
76059
- capScope: "system",
76060
- addonId: null,
76061
- access: "delete"
76062
- },
76063
76419
  "userManagement.setupTotp": {
76064
76420
  capName: "user-management",
76065
76421
  capScope: "system",
@@ -76090,12 +76446,6 @@ Object.freeze({
76090
76446
  addonId: null,
76091
76447
  access: "view"
76092
76448
  },
76093
- "userManagement.validateScopedToken": {
76094
- capName: "user-management",
76095
- capScope: "system",
76096
- addonId: null,
76097
- access: "view"
76098
- },
76099
76449
  "userManagement.verifyTotp": {
76100
76450
  capName: "user-management",
76101
76451
  capScope: "system",
@@ -77609,6 +77959,11 @@ Object.freeze({
77609
77959
  form: "single",
77610
77960
  optional: false
77611
77961
  }],
77962
+ "logDestination.read": [{
77963
+ name: "deviceId",
77964
+ form: "single",
77965
+ optional: true
77966
+ }],
77612
77967
  "mediaPlayer.getStatus": [{
77613
77968
  name: "deviceId",
77614
77969
  form: "single",