@camstack/addon-terminal 0.1.136 → 0.1.138

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +496 -141
  2. package/dist/addon.mjs +496 -141
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -5446,7 +5446,7 @@ var ZodIssueCode = {
5446
5446
  var ZodFirstPartyTypeKind;
5447
5447
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5448
5448
  //#endregion
5449
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5449
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5450
5450
  /**
5451
5451
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5452
5452
  * window to float samples (D455).
@@ -7829,9 +7829,9 @@ function normalizeAddonInitResult(result) {
7829
7829
  return result;
7830
7830
  }
7831
7831
  /**
7832
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7833
- * and validates them (`share-token.service.ts` builds its enum from this
7834
- * list); a data plane names the kinds it ACCEPTS in `share`.
7832
+ * The share-view scope kinds a share-link token can carry. The hub mints
7833
+ * and validates them (`ShareViewGrantSchema` builds its
7834
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7835
7835
  */
7836
7836
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7837
7837
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12612,7 +12612,7 @@ var ConvertResultSchema = object({
12612
12612
  * `super_admin` — collapsed onto the single boolean because every
12613
12613
  * non-admin caller is governed by the same scope-check rules; the
12614
12614
  * distinction was only ever used to route role-specific procedures
12615
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12615
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12616
12616
  * with `isAdmin: false` + an explicit scope list.
12617
12617
  */
12618
12618
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -12801,10 +12801,12 @@ var AddonRoutesScopeSchema = object({
12801
12801
  type: literal("addon-routes"),
12802
12802
  access: array(MethodAccessSchema).min(1)
12803
12803
  });
12804
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
12804
12805
  var CredentialScopeSchema = union([
12805
12806
  literal("*"),
12806
12807
  ShareViewScopeSchema,
12807
12808
  AddonRoutesScopeSchema,
12809
+ PreferencesSelfScopeSchema,
12808
12810
  TokenScopeSchema
12809
12811
  ]);
12810
12812
  object({
@@ -12813,6 +12815,55 @@ object({
12813
12815
  jti: string().min(16),
12814
12816
  scopes: array(CredentialScopeSchema).min(1)
12815
12817
  });
12818
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
12819
+ /** A namespace's value: a JSON object, opaque to the hub. */
12820
+ var PreferenceValueSchema = record(string(), unknown());
12821
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
12822
+ /** A stored row, as the owner reads it. */
12823
+ var PreferenceRowSchema = object({
12824
+ namespace: PreferenceNamespaceSchema,
12825
+ value: PreferenceValueSchema,
12826
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
12827
+ revision: number().int().positive(),
12828
+ updatedAt: number().int(),
12829
+ /** The client id the last writer sent; `null` when it sent none. */
12830
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
12831
+ });
12832
+ object({
12833
+ /** Absent: every namespace the caller holds. */
12834
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
12835
+ object({ rows: array(PreferenceRowSchema) });
12836
+ object({
12837
+ namespace: PreferenceNamespaceSchema,
12838
+ value: PreferenceValueSchema,
12839
+ /**
12840
+ * The revision the edit was based on. Absent: last write wins. `0`: the
12841
+ * namespace must not exist yet. Any other value that is not the current
12842
+ * revision answers `conflict` and writes nothing.
12843
+ */
12844
+ baseRevision: number().int().nonnegative().optional(),
12845
+ deviceId: PreferenceDeviceIdSchema.optional()
12846
+ });
12847
+ discriminatedUnion("status", [object({
12848
+ status: literal("saved"),
12849
+ row: PreferenceRowSchema
12850
+ }), object({
12851
+ status: literal("conflict"),
12852
+ current: PreferenceRowSchema.nullable()
12853
+ })]);
12854
+ object({ namespace: PreferenceNamespaceSchema });
12855
+ object({
12856
+ /** `false` when the namespace did not exist. */
12857
+ deleted: boolean() });
12858
+ object({
12859
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
12860
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
12861
+ object({
12862
+ /** Every row whose revision differs from the client's, and every row it did not list. */
12863
+ rows: array(PreferenceRowSchema),
12864
+ /** Namespaces the client listed that no longer exist. */
12865
+ deleted: array(PreferenceNamespaceSchema)
12866
+ });
12816
12867
  _enum(["new-session", "step-up"]);
12817
12868
  /** The languages the hub's app landing pages are written in (D858). */
12818
12869
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17066,7 +17117,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17066
17117
  kind: literal("node"),
17067
17118
  nodeId: string().min(1)
17068
17119
  })]);
17120
+ /**
17121
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17122
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17123
+ * meaning); a rollup keeps the time spent in each state (`states`).
17124
+ */
17069
17125
  var DeviceHistoryKindSchema = _enum([
17126
+ "gauge",
17127
+ "counter",
17128
+ "boolean",
17129
+ "enum"
17130
+ ]);
17131
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17132
+ var DeviceHistoryProducerKindSchema = _enum([
17070
17133
  "gauge",
17071
17134
  "counter",
17072
17135
  "boolean"
@@ -17103,7 +17166,13 @@ var SeriesInfoSchema = object({
17103
17166
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17104
17167
  unit: string().nullable(),
17105
17168
  displayName: string(),
17106
- source: _enum(["cap", "addon"]),
17169
+ source: _enum([
17170
+ "cap",
17171
+ "addon",
17172
+ "derived"
17173
+ ]),
17174
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17175
+ values: array(string()).readonly().nullable(),
17107
17176
  firstTs: number(),
17108
17177
  lastTs: number()
17109
17178
  });
@@ -17117,17 +17186,31 @@ var QueryPointSchema = object({
17117
17186
  twMean: number().nullable(),
17118
17187
  min: number(),
17119
17188
  max: number(),
17120
- /** `null` is unknown, never zero (D393). */
17121
- last: number().nullable()
17189
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17190
+ last: number().nullable(),
17191
+ /**
17192
+ * The increase over the point: a `counter`'s growth since the previous point
17193
+ * or bucket (a drop is a reset, counted from zero), and for
17194
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17195
+ * every other kind, and when it cannot be known.
17196
+ */
17197
+ delta: number().nullable(),
17198
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17199
+ state: string().nullable(),
17200
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17201
+ states: record(string(), number()).nullable()
17122
17202
  });
17123
17203
  var QuerySeriesSchema = object({
17124
17204
  scope: string(),
17125
17205
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17126
17206
  before: object({
17127
17207
  t: number(),
17128
- value: number().nullable()
17208
+ value: number().nullable(),
17209
+ state: string().nullable()
17129
17210
  }).nullable(),
17130
- points: array(QueryPointSchema).readonly()
17211
+ points: array(QueryPointSchema).readonly(),
17212
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17213
+ derivedFrom: string().nullable()
17131
17214
  });
17132
17215
  /** The window part of a query, shared by the device and node forms. */
17133
17216
  var QueryWindowShape = {
@@ -17143,6 +17226,23 @@ var QueryResultSchema = object({
17143
17226
  series: array(QuerySeriesSchema).readonly(),
17144
17227
  truncated: boolean()
17145
17228
  });
17229
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17230
+ var QueryManyItemSchema = union([object({
17231
+ deviceId: number().int(),
17232
+ key: string(),
17233
+ scope: string().optional()
17234
+ }), object({
17235
+ forNodeId: string().min(1),
17236
+ key: string(),
17237
+ scope: string().optional()
17238
+ })]);
17239
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17240
+ ok: literal(true),
17241
+ result: QueryResultSchema
17242
+ }), object({
17243
+ ok: literal(false),
17244
+ error: string()
17245
+ })]);
17146
17246
  var TierStatusSchema = object({
17147
17247
  tier: DeviceHistoryResolutionSchema,
17148
17248
  /** `null` until the first background count answered. */
@@ -17198,16 +17298,22 @@ var DeviceHistoryStatusSchema = object({
17198
17298
  lastRefreshAt: number().nullable()
17199
17299
  })
17200
17300
  });
17201
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17301
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17202
17302
  deviceId: number().int(),
17203
17303
  ...QueryWindowShape
17204
17304
  }), QueryResultSchema), method(object({
17205
- nodeId: string().min(1),
17305
+ forNodeId: string().min(1),
17206
17306
  ...QueryWindowShape
17207
17307
  }), QueryResultSchema, { auth: "admin" }), method(object({
17308
+ items: array(QueryManyItemSchema).min(1).max(24),
17309
+ from: QueryWindowShape.from,
17310
+ to: QueryWindowShape.to,
17311
+ resolution: QueryWindowShape.resolution,
17312
+ maxPoints: QueryWindowShape.maxPoints
17313
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17208
17314
  name: string().regex(/^[a-z0-9-]+$/),
17209
17315
  subjectKind: _enum(["device", "node"]),
17210
- kind: DeviceHistoryKindSchema,
17316
+ kind: DeviceHistoryProducerKindSchema,
17211
17317
  unit: string().optional(),
17212
17318
  displayName: string().min(1),
17213
17319
  ingest: _enum(["points", "buckets"])
@@ -39908,38 +40014,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
39908
40014
  auth: "admin",
39909
40015
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
39910
40016
  });
40017
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40018
+ /** What a model (or, by default, every model of a kind) can do. */
40019
+ var LlmModelFeaturesSchema = object({
40020
+ vision: boolean(),
40021
+ tools: boolean(),
40022
+ streaming: boolean()
40023
+ });
40024
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40025
+ var LlmModelInfoSchema = object({
40026
+ id: string(),
40027
+ label: string().optional(),
40028
+ contextLength: number().int().positive().optional(),
40029
+ features: LlmModelFeaturesSchema.partial().optional()
40030
+ });
39911
40031
  /**
39912
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
39913
- * methods concat-fan across providers; single-row methods route to ONE
39914
- * provider by the `addonId` in the call input (the notification-output
39915
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
39916
- * (hub-placed); the cap stays open for future providers.
39917
- *
39918
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
39919
- * `apiKey` is a password field — providers REDACT it on read and merge on
39920
- * write; a stored key NEVER round-trips to a client.
40032
+ * The provider-specific part of a profile, validated by the provider that owns
40033
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40034
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40035
+ * keychain, never in the row, and reads back as the redaction marker.
39921
40036
  */
39922
- var LlmProfileKindSchema = _enum([
39923
- "openai-compatible",
39924
- "openai",
39925
- "anthropic",
39926
- "google",
39927
- "managed-local",
39928
- "apple-foundation"
39929
- ]);
40037
+ var LlmProviderConfigSchema = record(string(), unknown());
39930
40038
  var LlmProfileSchema = object({
39931
40039
  id: string(),
39932
40040
  name: string(),
40041
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
39933
40042
  kind: LlmProfileKindSchema,
39934
40043
  /** Stamped by the provider — keeps the fanned catalog routable. */
39935
40044
  addonId: string(),
39936
40045
  enabled: boolean(),
39937
40046
  /** Vendor model id, or the managed runtime's loaded model. */
39938
40047
  model: string(),
39939
- /** Required for openai-compatible; override for cloud kinds. */
39940
- baseUrl: string().optional(),
39941
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
39942
- apiKey: string().optional(),
39943
40048
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
39944
40049
  * degraded to text — that shipped once and produced a confident answer to a
39945
40050
  * question about a picture nobody sent. */
@@ -39947,15 +40052,11 @@ var LlmProfileSchema = object({
39947
40052
  temperature: number().min(0).max(2).optional(),
39948
40053
  /** Nucleus sampling. Every wire we speak has it. */
39949
40054
  topP: number().min(0).max(1).optional(),
39950
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
39951
- * wire does, and the client drops it there (measured: the request body gets
39952
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
39953
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40055
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40056
+ * field in its editor only when its descriptor lists it in `profileFields`. */
39954
40057
  topK: number().int().positive().optional(),
39955
40058
  maxTokens: number().int().positive().optional(),
39956
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
39957
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
39958
- * the model with, so it is the one field that changes a PROCESS. */
40059
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
39959
40060
  contextLength: number().int().positive().optional(),
39960
40061
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
39961
40062
  * two system prompts fighting is worse than either alone). */
@@ -39981,16 +40082,37 @@ var LlmProfileSchema = object({
39981
40082
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
39982
40083
  * `true` here buys the wiring, not behaviour, until tools are registered. */
39983
40084
  toolsEnabled: boolean().default(false),
39984
- extraHeaders: record(string(), string()).optional(),
39985
- /** kind === 'managed-local' only (spec §4). */
39986
- runtime: ManagedRuntimeConfigSchema.optional(),
39987
- /**
39988
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
39989
- * to configure (no key, no URL, no download; `model` is `apple-system`).
39990
- * `supportsVision` on such a row is stamped by the provider from the node's
39991
- * reported `imageInput`, never taken from the operator (D62).
39992
- */
39993
- appleFoundation: object({ nodeId: string() }).optional()
40085
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40086
+ providerConfig: LlmProviderConfigSchema.default({})
40087
+ });
40088
+ /**
40089
+ * The common profile fields a kind's editor offers. The editor owns how each
40090
+ * one is drawn; the provider says which of them mean something on its wire.
40091
+ */
40092
+ var LlmProfileFieldSchema = _enum([
40093
+ "temperature",
40094
+ "topP",
40095
+ "topK",
40096
+ "maxTokens",
40097
+ "contextLength",
40098
+ "systemPrompt",
40099
+ "timeoutMs",
40100
+ "connectTimeoutMs",
40101
+ "firstTokenTimeoutMs",
40102
+ "idleTimeoutMs",
40103
+ "retry",
40104
+ "toolsEnabled"
40105
+ ]);
40106
+ /**
40107
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40108
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40109
+ * picker: that widget owns the model choice.
40110
+ */
40111
+ var LlmProviderWidgetSchema = object({
40112
+ id: string(),
40113
+ placement: _enum(["connection", "model"]),
40114
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40115
+ requires: array(string()).optional()
39994
40116
  });
39995
40117
  /** ConfigUISchema tree passed through untyped on the wire (the
39996
40118
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -39999,11 +40121,56 @@ var ConfigSchemaPassthrough$3 = unknown();
39999
40121
  var LlmProfileKindDescriptorSchema = object({
40000
40122
  kind: LlmProfileKindSchema,
40001
40123
  label: string(),
40124
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40002
40125
  icon: string(),
40003
40126
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40004
40127
  addonId: string(),
40005
- configSchema: ConfigSchemaPassthrough$3
40128
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40129
+ connectionSchema: ConfigSchemaPassthrough$3,
40130
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40131
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40132
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40133
+ features: LlmModelFeaturesSchema,
40134
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40135
+ visionEditable: boolean(),
40136
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40137
+ modelCatalog: _enum([
40138
+ "fetch",
40139
+ "static",
40140
+ "none"
40141
+ ]),
40142
+ staticModels: array(LlmModelInfoSchema).optional(),
40143
+ /** The common fields that mean something on this kind's wire. */
40144
+ profileFields: array(LlmProfileFieldSchema),
40145
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40006
40146
  });
40147
+ /**
40148
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40149
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40150
+ * untouched (absent or the redaction marker) is resolved server-side from the
40151
+ * stored profile — the browser never receives it.
40152
+ */
40153
+ var LlmListModelsInputSchema = object({
40154
+ addonId: string(),
40155
+ kind: LlmProfileKindSchema,
40156
+ profileId: string().optional(),
40157
+ connection: LlmProviderConfigSchema.optional()
40158
+ });
40159
+ var LlmListModelsErrorCodeSchema = _enum([
40160
+ "auth",
40161
+ "network",
40162
+ "unsupported",
40163
+ "invalid"
40164
+ ]);
40165
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40166
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40167
+ ok: literal(true),
40168
+ models: array(LlmModelInfoSchema)
40169
+ }), object({
40170
+ ok: literal(false),
40171
+ code: LlmListModelsErrorCodeSchema,
40172
+ message: string()
40173
+ })]);
40007
40174
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40008
40175
  var LlmDefaultSchema = object({
40009
40176
  selector: LlmDefaultSelectorSchema,
@@ -40103,7 +40270,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40103
40270
  kind: "mutation",
40104
40271
  auth: "admin",
40105
40272
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40106
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40273
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40274
+ kind: "mutation",
40275
+ auth: "admin"
40276
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40107
40277
  selector: LlmDefaultSelectorSchema,
40108
40278
  profileId: string().nullable()
40109
40279
  }), _void(), {
@@ -40271,14 +40441,106 @@ var LogEntrySchema = object({
40271
40441
  meta: record(string(), unknown()).optional(),
40272
40442
  tags: record(string(), string()).optional()
40273
40443
  });
40274
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40275
- scope: array(string()).optional(),
40444
+ /**
40445
+ * A history READ against one destination (D898).
40446
+ *
40447
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40448
+ * browser applied after the limit is what made a rare device's lines
40449
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40450
+ * minted (opaque to everyone else): a file position for the rotated files, a
40451
+ * nanosecond timestamp for Loki.
40452
+ *
40453
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40454
+ * store answers `done: false` with the cursor it reached and the bytes it
40455
+ * scanned, and the caller decides whether to go on. That is what makes a long
40456
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40457
+ * flight, and not asking for the next slice ends the scan.
40458
+ */
40459
+ var LogReadQuerySchema = object({
40460
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40461
+ requestId: string().min(1).max(64).optional(),
40462
+ /** The device the line is about (`tags.deviceId`, numeric). */
40463
+ deviceId: number().int().optional(),
40464
+ /**
40465
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40466
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40467
+ */
40468
+ fromAddonId: string().min(1).max(200).optional(),
40469
+ /**
40470
+ * The emitting node: matches the agent that emitted the line, the node
40471
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40472
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40473
+ * name as "which node's provider".
40474
+ */
40475
+ fromNodeId: string().min(1).max(200).optional(),
40476
+ /** Any other tag, exact match (AND). */
40477
+ tags: record(string(), union([string(), number()])).optional(),
40478
+ /** Severity FLOOR: this level and above. */
40276
40479
  level: LogLevelSchema.optional(),
40277
- since: date().optional(),
40278
- until: date().optional(),
40279
- limit: number().optional(),
40280
- tags: record(string(), string()).optional()
40281
- }), array(LogEntrySchema).readonly());
40480
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40481
+ text: string().min(1).max(200).optional(),
40482
+ /** Epoch ms, inclusive. */
40483
+ since: number().optional(),
40484
+ /** Epoch ms, inclusive. */
40485
+ until: number().optional(),
40486
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40487
+ before: string().min(1).max(1024).optional(),
40488
+ /** Newer than this cursor (exclusive). */
40489
+ after: string().min(1).max(1024).optional(),
40490
+ limit: number().int().min(1).max(1e3).optional(),
40491
+ /** Wall-clock bound of this slice. The provider caps it. */
40492
+ budgetMs: number().int().min(50).max(1e4).optional()
40493
+ });
40494
+ var LogReadResultSchema = object({
40495
+ /** Newest first. */
40496
+ entries: array(object({
40497
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40498
+ id: string().optional(),
40499
+ /** Epoch ms. */
40500
+ timestamp: number(),
40501
+ level: LogLevelSchema,
40502
+ scope: string().optional(),
40503
+ message: string(),
40504
+ tags: record(string(), union([string(), number()])).optional(),
40505
+ meta: record(string(), unknown()).optional()
40506
+ })),
40507
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40508
+ nextBefore: string().nullable(),
40509
+ /** Pass as `after` to read what arrived since; null when unknown. */
40510
+ nextAfter: string().nullable(),
40511
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40512
+ scannedBytes: number().int().nonnegative(),
40513
+ /**
40514
+ * True when the scan in this direction reached the end of the store.
40515
+ * False with fewer than `limit` entries means the budget ran out first —
40516
+ * call again with `nextBefore` to go on.
40517
+ */
40518
+ done: boolean(),
40519
+ /** True when `cancelRead` ended this slice early. */
40520
+ cancelled: boolean().optional()
40521
+ });
40522
+ var LogReadCapabilitiesSchema = object({
40523
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40524
+ readable: boolean(),
40525
+ /** Why not, when `readable` is false — rendered next to the source. */
40526
+ reason: string().nullable(),
40527
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40528
+ filters: object({
40529
+ deviceId: boolean(),
40530
+ addonId: boolean(),
40531
+ nodeId: boolean(),
40532
+ tags: boolean(),
40533
+ level: boolean(),
40534
+ text: boolean(),
40535
+ timeRange: boolean()
40536
+ }),
40537
+ /** How far back the store reaches, when the provider knows (days). */
40538
+ retentionDays: number().nullable()
40539
+ });
40540
+ 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() }), {
40541
+ kind: "mutation",
40542
+ auth: "admin"
40543
+ });
40282
40544
  /**
40283
40545
  * `login-method` — collection cap through which auth addons contribute
40284
40546
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -41996,9 +42258,11 @@ var alarmPanelCapability = {
41996
42258
  */
41997
42259
  durability: "restored",
41998
42260
  /**
41999
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42261
+ * History (D850): the panel's lifecycle state as an `enum` series —
42262
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42263
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42000
42264
  */
42001
- history: "none",
42265
+ history: { fields: { state: { kind: "enum" } } },
42002
42266
  /** Clock fields: written, but excluded from the compare that decides
42003
42267
  * whether persisting is worth a SQLite commit. */
42004
42268
  volatileStateFields: ["lastChangedAt"]
@@ -42876,6 +43140,33 @@ var NcRuleTargetSchema = object({
42876
43140
  params: record(string(), unknown()).optional()
42877
43141
  });
42878
43142
  /**
43143
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43144
+ *
43145
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43146
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43147
+ * to the zone that fired the rule) and renders it once at send time:
43148
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43149
+ * colour and every OTHER track visible at that instant outlined thin, each
43150
+ * labelled with class and confidence ("dog 87%").
43151
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43152
+ * - `clean` — the whole scene with nothing drawn on it.
43153
+ * - `none` — no picture.
43154
+ *
43155
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43156
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43157
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43158
+ * ship a crop on one event and a boxed scene on the next depending on which
43159
+ * stored kind had landed.
43160
+ */
43161
+ var NcMediaImageSchema = _enum([
43162
+ "scene-boxes",
43163
+ "crop",
43164
+ "clean",
43165
+ "none"
43166
+ ]);
43167
+ /**
43168
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43169
+ *
42879
43170
  * Media attachment policy (P1 still-image subset).
42880
43171
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
42881
43172
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -42889,6 +43180,8 @@ var NcRuleTargetSchema = object({
42889
43180
  * - `none` — no attachment.
42890
43181
  */
42891
43182
  /**
43183
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43184
+ *
42892
43185
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
42893
43186
  * conflate it with the selection strategy and betray the request: asking for
42894
43187
  * the clean scene frame on an object-event owner used to start at
@@ -42917,16 +43210,29 @@ var NcMediaFrameSchema = _enum([
42917
43210
  */
42918
43211
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
42919
43212
  var NcMediaPolicySchema = object({
43213
+ /**
43214
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43215
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43216
+ * triple below, at load and at every write, and the store keeps only this.
43217
+ */
43218
+ image: NcMediaImageSchema.optional(),
43219
+ /**
43220
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43221
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43222
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43223
+ * Replaces `zoneCrop`.
43224
+ */
43225
+ showTriggerZone: boolean().optional(),
43226
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42920
43227
  attach: _enum([
42921
43228
  "best",
42922
43229
  "best-matching",
42923
43230
  "keyFrame",
42924
43231
  "none"
42925
- ]).default("best"),
42926
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43232
+ ]).optional(),
43233
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
42927
43234
  frame: NcMediaFrameSchema.optional(),
42928
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
42929
- * "show me the ZONE", not the whole scene or the subject crop. */
43235
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
42930
43236
  zoneCrop: boolean().optional(),
42931
43237
  /**
42932
43238
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43098,7 +43404,9 @@ var NcRuleInputSchema = object({
43098
43404
  * targets.
43099
43405
  */
43100
43406
  targetUsers: array(string()).optional(),
43101
- media: NcMediaPolicySchema.default({ attach: "best" }),
43407
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43408
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43409
+ media: NcMediaPolicySchema.default({}),
43102
43410
  throttle: NcThrottleSchema.default({
43103
43411
  cooldownSec: 60,
43104
43412
  scope: "rule-device"
@@ -44035,13 +44343,37 @@ var NcAlarmModeOpeningsSchema = object({
44035
44343
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44036
44344
  unknown: array(number().int())
44037
44345
  });
44346
+ /**
44347
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44348
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44349
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44350
+ * never looks fully armed (D62: off must never look like broken).
44351
+ */
44352
+ var NcAlarmInputBypassViewSchema = object({
44353
+ ruleId: string(),
44354
+ /** The rule's current name (its frozen name when the rule is gone). */
44355
+ ruleName: string(),
44356
+ /** The input: the sensor of the match, else its camera. */
44357
+ deviceId: number().int(),
44358
+ /** The input's current name. */
44359
+ name: string(),
44360
+ /** When it was bypassed (ms epoch). */
44361
+ since: number(),
44362
+ /** Triggers from this input dropped since. */
44363
+ dropped: number().int().min(0)
44364
+ });
44038
44365
  var NcAlarmLiveSchema = object({
44039
44366
  state: AlarmStateSchema,
44040
44367
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44041
44368
  targetMode: AlarmArmModeSchema.nullable(),
44042
44369
  availableModes: array(AlarmArmModeSchema),
44043
44370
  openings: array(NcAlarmModeOpeningsSchema),
44044
- exclusions: array(NcAlarmExclusionViewSchema)
44371
+ exclusions: array(NcAlarmExclusionViewSchema),
44372
+ /**
44373
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44374
+ * Defaulted so an older hub answer still parses (as "none known").
44375
+ */
44376
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44045
44377
  });
44046
44378
  var NcAlarmConfigSchema = object({
44047
44379
  /**
@@ -54908,9 +55240,11 @@ var connectivityCapability = {
54908
55240
  */
54909
55241
  durability: "restored",
54910
55242
  /**
54911
- * History (D850): none — duplicates device-status.online (one authority for availability).
55243
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55244
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55245
+ * device's reachability, which stays `device-status.online`.
54912
55246
  */
54913
- history: "none",
55247
+ history: { fields: { connected: { kind: "boolean" } } },
54914
55248
  /** Clock fields: written, but excluded from the compare that decides
54915
55249
  * whether persisting is worth a SQLite commit. */
54916
55250
  volatileStateFields: ["lastChangedAt"]
@@ -55734,11 +56068,22 @@ var dishwasherCapability = {
55734
56068
  },
55735
56069
  runtimeState: DishwasherStatusSchema,
55736
56070
  durability: "session",
55737
- history: { fields: { progressPercent: {
55738
- kind: "gauge",
55739
- unit: "%",
55740
- deadband: 2
55741
- } } }
56071
+ history: { fields: {
56072
+ progressPercent: {
56073
+ kind: "gauge",
56074
+ unit: "%",
56075
+ deadband: 2
56076
+ },
56077
+ state: { kind: "enum" },
56078
+ operationState: { kind: "enum" },
56079
+ remainingSeconds: {
56080
+ kind: "gauge",
56081
+ unit: "s",
56082
+ minIntervalMs: 6e4
56083
+ },
56084
+ doorOpen: { kind: "boolean" },
56085
+ powerOn: { kind: "boolean" }
56086
+ } }
55742
56087
  };
55743
56088
  var DoorbellStatusSchema = object({
55744
56089
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -55855,9 +56200,15 @@ var enumSensorCapability = {
55855
56200
  */
55856
56201
  durability: "restored",
55857
56202
  /**
55858
- * History (D850): none — text/enum state has no history (non-goal).
56203
+ * History (D850): the value as an `enum` series (an appliance's program or
56204
+ * operation state, an HVAC action). The option set is per device, so the
56205
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56206
+ * `format` carries a timestamp, not a state, and is not recorded.
55859
56207
  */
55860
- history: "none",
56208
+ history: { fields: { value: {
56209
+ kind: "enum",
56210
+ skipWhenSet: "format"
56211
+ } } },
55861
56212
  /** Clock fields: written, but excluded from the compare that decides
55862
56213
  * whether persisting is worth a SQLite commit. */
55863
56214
  volatileStateFields: ["lastFetchedAt"]
@@ -57831,9 +58182,10 @@ var lockControlCapability = {
57831
58182
  */
57832
58183
  durability: "restored",
57833
58184
  /**
57834
- * History (D850): none — enum state; lock events belong in the events ledger.
58185
+ * History (D850): the lock's state as an `enum` series — change-only, no
58186
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
57835
58187
  */
57836
- history: "none",
58188
+ history: { fields: { state: { kind: "enum" } } },
57837
58189
  /** Clock fields: written, but excluded from the compare that decides
57838
58190
  * whether persisting is worth a SQLite commit. */
57839
58191
  volatileStateFields: ["lastChangedAt"]
@@ -58007,9 +58359,18 @@ var mediaPlayerCapability = {
58007
58359
  */
58008
58360
  durability: "session",
58009
58361
  /**
58010
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58362
+ * History (D850): volume (a level an operator or an automation sets; the
58363
+ * default 10 s floor folds a slider drag into its end value) and mute.
58364
+ * `positionMs` is not recorded: it moves continuously while playing.
58011
58365
  */
58012
- history: "none"
58366
+ history: { fields: {
58367
+ volumeLevel: {
58368
+ kind: "gauge",
58369
+ unit: "%",
58370
+ deadband: 1
58371
+ },
58372
+ isMuted: { kind: "boolean" }
58373
+ } }
58013
58374
  };
58014
58375
  /**
58015
58376
  * mesh-network — collection cap for mesh-VPN providers.
@@ -63302,9 +63663,29 @@ var streamParamsCapability = {
63302
63663
  */
63303
63664
  durability: "restored",
63304
63665
  /**
63305
- * History (D850): none — encoder configuration.
63666
+ * History (D850): the configured bitrate and frame rate of the main and sub
63667
+ * profiles. Configuration, so change-only on the default floor: a point is an
63668
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
63669
+ * quality over time must show.
63306
63670
  */
63307
- history: "none",
63671
+ history: { fields: {
63672
+ "main.bitrate": {
63673
+ kind: "gauge",
63674
+ unit: "kbps"
63675
+ },
63676
+ "main.framerate": {
63677
+ kind: "gauge",
63678
+ unit: "fps"
63679
+ },
63680
+ "sub.bitrate": {
63681
+ kind: "gauge",
63682
+ unit: "kbps"
63683
+ },
63684
+ "sub.framerate": {
63685
+ kind: "gauge",
63686
+ unit: "fps"
63687
+ }
63688
+ } },
63308
63689
  /** Clock fields: written, but excluded from the compare that decides
63309
63690
  * whether persisting is worth a SQLite commit. */
63310
63691
  volatileStateFields: ["lastFetchedAt"]
@@ -64139,26 +64520,6 @@ var ApiKeySummarySchema = object({
64139
64520
  createdAt: number(),
64140
64521
  lastUsedAt: number().optional()
64141
64522
  });
64142
- var ScopedTokenSummarySchema = object({
64143
- id: string(),
64144
- userId: string(),
64145
- name: string(),
64146
- tokenPrefix: string(),
64147
- scopes: array(TokenScopeSchema),
64148
- expiresAt: number().nullish(),
64149
- lastUsedAt: number().nullish(),
64150
- createdAt: number()
64151
- });
64152
- var CreateScopedTokenInputSchema = object({
64153
- userId: string(),
64154
- name: string(),
64155
- scopes: array(TokenScopeSchema),
64156
- expiresAt: number().optional()
64157
- });
64158
- var CreateScopedTokenResultSchema = object({
64159
- token: string(),
64160
- record: ScopedTokenSummarySchema
64161
- });
64162
64523
  var OauthSessionSummarySchema = object({
64163
64524
  id: string(),
64164
64525
  userId: string(),
@@ -64180,11 +64541,11 @@ var TotpStatusSchema = object({
64180
64541
  confirmedAt: number().nullable()
64181
64542
  });
64182
64543
  /**
64183
- * user-management — singleton capability for user accounts, API keys,
64184
- * and scoped tokens.
64544
+ * user-management — singleton capability for user accounts and the
64545
+ * legacy API-key rows.
64185
64546
  *
64186
64547
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
64187
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
64548
+ * — the subset check on `setUserScopes` is moot
64188
64549
  * because non-admins never reach these. If/when we open non-admin
64189
64550
  * delegation, structural caller-scope subset check goes inside the
64190
64551
  * provider.
@@ -64241,15 +64602,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
64241
64602
  kind: "mutation",
64242
64603
  auth: "admin",
64243
64604
  access: "delete"
64244
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
64245
- kind: "mutation",
64246
- auth: "admin",
64247
- access: "create"
64248
- }), method(object({ id: string() }), object({ success: literal(true) }), {
64249
- kind: "mutation",
64250
- auth: "admin",
64251
- access: "delete"
64252
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
64605
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
64253
64606
  kind: "mutation",
64254
64607
  auth: "admin",
64255
64608
  access: "create"
@@ -66510,6 +66863,15 @@ var BaseDevice = class {
66510
66863
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
66511
66864
  * with a typed cast.
66512
66865
  *
66866
+ * Answer what you KNOW. A plain array is read as the complete list only
66867
+ * while this device is `online` and probed; return
66868
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
66869
+ * now (no credentials, parent not connected, a failed or partial read) —
66870
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
66871
+ * to say "connected, and this is the complete list" explicitly. A shrink is
66872
+ * deleted only after a second agreeing complete read on a later probe (D49;
66873
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
66874
+ *
66513
66875
  * Default: no children.
66514
66876
  */
66515
66877
  getAccessoryChildren() {
@@ -69856,7 +70218,7 @@ Object.freeze({
69856
70218
  capName: "llm",
69857
70219
  capScope: "system",
69858
70220
  addonId: null,
69859
- access: "view"
70221
+ access: "create"
69860
70222
  },
69861
70223
  "llm.listNodeModels": {
69862
70224
  capName: "llm",
@@ -70158,7 +70520,19 @@ Object.freeze({
70158
70520
  addonId: null,
70159
70521
  access: "view"
70160
70522
  },
70161
- "logDestination.query": {
70523
+ "logDestination.cancelRead": {
70524
+ capName: "log-destination",
70525
+ capScope: "system",
70526
+ addonId: null,
70527
+ access: "create"
70528
+ },
70529
+ "logDestination.describeRead": {
70530
+ capName: "log-destination",
70531
+ capScope: "system",
70532
+ addonId: null,
70533
+ access: "view"
70534
+ },
70535
+ "logDestination.read": {
70162
70536
  capName: "log-destination",
70163
70537
  capScope: "system",
70164
70538
  addonId: null,
@@ -74520,12 +74894,6 @@ Object.freeze({
74520
74894
  addonId: null,
74521
74895
  access: "create"
74522
74896
  },
74523
- "userManagement.createScopedToken": {
74524
- capName: "user-management",
74525
- capScope: "system",
74526
- addonId: null,
74527
- access: "create"
74528
- },
74529
74897
  "userManagement.createUser": {
74530
74898
  capName: "user-management",
74531
74899
  capScope: "system",
@@ -74574,12 +74942,6 @@ Object.freeze({
74574
74942
  addonId: null,
74575
74943
  access: "view"
74576
74944
  },
74577
- "userManagement.listScopedTokens": {
74578
- capName: "user-management",
74579
- capScope: "system",
74580
- addonId: null,
74581
- access: "view"
74582
- },
74583
74945
  "userManagement.listUsers": {
74584
74946
  capName: "user-management",
74585
74947
  capScope: "system",
@@ -74634,12 +74996,6 @@ Object.freeze({
74634
74996
  addonId: null,
74635
74997
  access: "delete"
74636
74998
  },
74637
- "userManagement.revokeScopedToken": {
74638
- capName: "user-management",
74639
- capScope: "system",
74640
- addonId: null,
74641
- access: "delete"
74642
- },
74643
74999
  "userManagement.setupTotp": {
74644
75000
  capName: "user-management",
74645
75001
  capScope: "system",
@@ -74670,12 +75026,6 @@ Object.freeze({
74670
75026
  addonId: null,
74671
75027
  access: "view"
74672
75028
  },
74673
- "userManagement.validateScopedToken": {
74674
- capName: "user-management",
74675
- capScope: "system",
74676
- addonId: null,
74677
- access: "view"
74678
- },
74679
75029
  "userManagement.verifyTotp": {
74680
75030
  capName: "user-management",
74681
75031
  capScope: "system",
@@ -76189,6 +76539,11 @@ Object.freeze({
76189
76539
  form: "single",
76190
76540
  optional: false
76191
76541
  }],
76542
+ "logDestination.read": [{
76543
+ name: "deviceId",
76544
+ form: "single",
76545
+ optional: true
76546
+ }],
76192
76547
  "mediaPlayer.getStatus": [{
76193
76548
  name: "deviceId",
76194
76549
  form: "single",