@camstack/addon-provider-rademacher 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
@@ -6399,7 +6399,7 @@ var ZodIssueCode = {
6399
6399
  var ZodFirstPartyTypeKind;
6400
6400
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6401
6401
  //#endregion
6402
- //#region ../types/dist/sleep-BxjU_fJM.mjs
6402
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
6403
6403
  /**
6404
6404
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6405
6405
  * window to float samples (D455).
@@ -8782,9 +8782,9 @@ function normalizeAddonInitResult(result) {
8782
8782
  return result;
8783
8783
  }
8784
8784
  /**
8785
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
8786
- * and validates them (`share-token.service.ts` builds its enum from this
8787
- * list); a data plane names the kinds it ACCEPTS in `share`.
8785
+ * The share-view scope kinds a share-link token can carry. The hub mints
8786
+ * and validates them (`ShareViewGrantSchema` builds its
8787
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
8788
8788
  */
8789
8789
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
8790
8790
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -13474,7 +13474,7 @@ var ConvertResultSchema = object({
13474
13474
  * `super_admin` — collapsed onto the single boolean because every
13475
13475
  * non-admin caller is governed by the same scope-check rules; the
13476
13476
  * distinction was only ever used to route role-specific procedures
13477
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
13477
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
13478
13478
  * with `isAdmin: false` + an explicit scope list.
13479
13479
  */
13480
13480
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -13663,10 +13663,12 @@ var AddonRoutesScopeSchema = object({
13663
13663
  type: literal("addon-routes"),
13664
13664
  access: array(MethodAccessSchema).min(1)
13665
13665
  });
13666
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
13666
13667
  var CredentialScopeSchema = union([
13667
13668
  literal("*"),
13668
13669
  ShareViewScopeSchema,
13669
13670
  AddonRoutesScopeSchema,
13671
+ PreferencesSelfScopeSchema,
13670
13672
  TokenScopeSchema
13671
13673
  ]);
13672
13674
  object({
@@ -13675,6 +13677,55 @@ object({
13675
13677
  jti: string().min(16),
13676
13678
  scopes: array(CredentialScopeSchema).min(1)
13677
13679
  });
13680
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
13681
+ /** A namespace's value: a JSON object, opaque to the hub. */
13682
+ var PreferenceValueSchema = record(string(), unknown());
13683
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
13684
+ /** A stored row, as the owner reads it. */
13685
+ var PreferenceRowSchema = object({
13686
+ namespace: PreferenceNamespaceSchema,
13687
+ value: PreferenceValueSchema,
13688
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
13689
+ revision: number().int().positive(),
13690
+ updatedAt: number().int(),
13691
+ /** The client id the last writer sent; `null` when it sent none. */
13692
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
13693
+ });
13694
+ object({
13695
+ /** Absent: every namespace the caller holds. */
13696
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
13697
+ object({ rows: array(PreferenceRowSchema) });
13698
+ object({
13699
+ namespace: PreferenceNamespaceSchema,
13700
+ value: PreferenceValueSchema,
13701
+ /**
13702
+ * The revision the edit was based on. Absent: last write wins. `0`: the
13703
+ * namespace must not exist yet. Any other value that is not the current
13704
+ * revision answers `conflict` and writes nothing.
13705
+ */
13706
+ baseRevision: number().int().nonnegative().optional(),
13707
+ deviceId: PreferenceDeviceIdSchema.optional()
13708
+ });
13709
+ discriminatedUnion("status", [object({
13710
+ status: literal("saved"),
13711
+ row: PreferenceRowSchema
13712
+ }), object({
13713
+ status: literal("conflict"),
13714
+ current: PreferenceRowSchema.nullable()
13715
+ })]);
13716
+ object({ namespace: PreferenceNamespaceSchema });
13717
+ object({
13718
+ /** `false` when the namespace did not exist. */
13719
+ deleted: boolean() });
13720
+ object({
13721
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
13722
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
13723
+ object({
13724
+ /** Every row whose revision differs from the client's, and every row it did not list. */
13725
+ rows: array(PreferenceRowSchema),
13726
+ /** Namespaces the client listed that no longer exist. */
13727
+ deleted: array(PreferenceNamespaceSchema)
13728
+ });
13678
13729
  _enum(["new-session", "step-up"]);
13679
13730
  /** The languages the hub's app landing pages are written in (D858). */
13680
13731
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17928,7 +17979,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17928
17979
  kind: literal("node"),
17929
17980
  nodeId: string().min(1)
17930
17981
  })]);
17982
+ /**
17983
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17984
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17985
+ * meaning); a rollup keeps the time spent in each state (`states`).
17986
+ */
17931
17987
  var DeviceHistoryKindSchema = _enum([
17988
+ "gauge",
17989
+ "counter",
17990
+ "boolean",
17991
+ "enum"
17992
+ ]);
17993
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17994
+ var DeviceHistoryProducerKindSchema = _enum([
17932
17995
  "gauge",
17933
17996
  "counter",
17934
17997
  "boolean"
@@ -17965,7 +18028,13 @@ var SeriesInfoSchema = object({
17965
18028
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17966
18029
  unit: string().nullable(),
17967
18030
  displayName: string(),
17968
- source: _enum(["cap", "addon"]),
18031
+ source: _enum([
18032
+ "cap",
18033
+ "addon",
18034
+ "derived"
18035
+ ]),
18036
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
18037
+ values: array(string()).readonly().nullable(),
17969
18038
  firstTs: number(),
17970
18039
  lastTs: number()
17971
18040
  });
@@ -17979,17 +18048,31 @@ var QueryPointSchema = object({
17979
18048
  twMean: number().nullable(),
17980
18049
  min: number(),
17981
18050
  max: number(),
17982
- /** `null` is unknown, never zero (D393). */
17983
- last: number().nullable()
18051
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
18052
+ last: number().nullable(),
18053
+ /**
18054
+ * The increase over the point: a `counter`'s growth since the previous point
18055
+ * or bucket (a drop is a reset, counted from zero), and for
18056
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
18057
+ * every other kind, and when it cannot be known.
18058
+ */
18059
+ delta: number().nullable(),
18060
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
18061
+ state: string().nullable(),
18062
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
18063
+ states: record(string(), number()).nullable()
17984
18064
  });
17985
18065
  var QuerySeriesSchema = object({
17986
18066
  scope: string(),
17987
18067
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17988
18068
  before: object({
17989
18069
  t: number(),
17990
- value: number().nullable()
18070
+ value: number().nullable(),
18071
+ state: string().nullable()
17991
18072
  }).nullable(),
17992
- points: array(QueryPointSchema).readonly()
18073
+ points: array(QueryPointSchema).readonly(),
18074
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
18075
+ derivedFrom: string().nullable()
17993
18076
  });
17994
18077
  /** The window part of a query, shared by the device and node forms. */
17995
18078
  var QueryWindowShape = {
@@ -18005,6 +18088,23 @@ var QueryResultSchema = object({
18005
18088
  series: array(QuerySeriesSchema).readonly(),
18006
18089
  truncated: boolean()
18007
18090
  });
18091
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
18092
+ var QueryManyItemSchema = union([object({
18093
+ deviceId: number().int(),
18094
+ key: string(),
18095
+ scope: string().optional()
18096
+ }), object({
18097
+ forNodeId: string().min(1),
18098
+ key: string(),
18099
+ scope: string().optional()
18100
+ })]);
18101
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
18102
+ ok: literal(true),
18103
+ result: QueryResultSchema
18104
+ }), object({
18105
+ ok: literal(false),
18106
+ error: string()
18107
+ })]);
18008
18108
  var TierStatusSchema = object({
18009
18109
  tier: DeviceHistoryResolutionSchema,
18010
18110
  /** `null` until the first background count answered. */
@@ -18060,16 +18160,22 @@ var DeviceHistoryStatusSchema = object({
18060
18160
  lastRefreshAt: number().nullable()
18061
18161
  })
18062
18162
  });
18063
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
18163
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
18064
18164
  deviceId: number().int(),
18065
18165
  ...QueryWindowShape
18066
18166
  }), QueryResultSchema), method(object({
18067
- nodeId: string().min(1),
18167
+ forNodeId: string().min(1),
18068
18168
  ...QueryWindowShape
18069
18169
  }), QueryResultSchema, { auth: "admin" }), method(object({
18170
+ items: array(QueryManyItemSchema).min(1).max(24),
18171
+ from: QueryWindowShape.from,
18172
+ to: QueryWindowShape.to,
18173
+ resolution: QueryWindowShape.resolution,
18174
+ maxPoints: QueryWindowShape.maxPoints
18175
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
18070
18176
  name: string().regex(/^[a-z0-9-]+$/),
18071
18177
  subjectKind: _enum(["device", "node"]),
18072
- kind: DeviceHistoryKindSchema,
18178
+ kind: DeviceHistoryProducerKindSchema,
18073
18179
  unit: string().optional(),
18074
18180
  displayName: string().min(1),
18075
18181
  ingest: _enum(["points", "buckets"])
@@ -40964,38 +41070,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40964
41070
  auth: "admin",
40965
41071
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40966
41072
  });
41073
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
41074
+ /** What a model (or, by default, every model of a kind) can do. */
41075
+ var LlmModelFeaturesSchema = object({
41076
+ vision: boolean(),
41077
+ tools: boolean(),
41078
+ streaming: boolean()
41079
+ });
41080
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
41081
+ var LlmModelInfoSchema = object({
41082
+ id: string(),
41083
+ label: string().optional(),
41084
+ contextLength: number().int().positive().optional(),
41085
+ features: LlmModelFeaturesSchema.partial().optional()
41086
+ });
40967
41087
  /**
40968
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40969
- * methods concat-fan across providers; single-row methods route to ONE
40970
- * provider by the `addonId` in the call input (the notification-output
40971
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40972
- * (hub-placed); the cap stays open for future providers.
40973
- *
40974
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40975
- * `apiKey` is a password field — providers REDACT it on read and merge on
40976
- * write; a stored key NEVER round-trips to a client.
41088
+ * The provider-specific part of a profile, validated by the provider that owns
41089
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
41090
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
41091
+ * keychain, never in the row, and reads back as the redaction marker.
40977
41092
  */
40978
- var LlmProfileKindSchema = _enum([
40979
- "openai-compatible",
40980
- "openai",
40981
- "anthropic",
40982
- "google",
40983
- "managed-local",
40984
- "apple-foundation"
40985
- ]);
41093
+ var LlmProviderConfigSchema = record(string(), unknown());
40986
41094
  var LlmProfileSchema = object({
40987
41095
  id: string(),
40988
41096
  name: string(),
41097
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
40989
41098
  kind: LlmProfileKindSchema,
40990
41099
  /** Stamped by the provider — keeps the fanned catalog routable. */
40991
41100
  addonId: string(),
40992
41101
  enabled: boolean(),
40993
41102
  /** Vendor model id, or the managed runtime's loaded model. */
40994
41103
  model: string(),
40995
- /** Required for openai-compatible; override for cloud kinds. */
40996
- baseUrl: string().optional(),
40997
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
40998
- apiKey: string().optional(),
40999
41104
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
41000
41105
  * degraded to text — that shipped once and produced a confident answer to a
41001
41106
  * question about a picture nobody sent. */
@@ -41003,15 +41108,11 @@ var LlmProfileSchema = object({
41003
41108
  temperature: number().min(0).max(2).optional(),
41004
41109
  /** Nucleus sampling. Every wire we speak has it. */
41005
41110
  topP: number().min(0).max(1).optional(),
41006
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
41007
- * wire does, and the client drops it there (measured: the request body gets
41008
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
41009
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
41111
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
41112
+ * field in its editor only when its descriptor lists it in `profileFields`. */
41010
41113
  topK: number().int().positive().optional(),
41011
41114
  maxTokens: number().int().positive().optional(),
41012
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
41013
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
41014
- * the model with, so it is the one field that changes a PROCESS. */
41115
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
41015
41116
  contextLength: number().int().positive().optional(),
41016
41117
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
41017
41118
  * two system prompts fighting is worse than either alone). */
@@ -41037,16 +41138,37 @@ var LlmProfileSchema = object({
41037
41138
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
41038
41139
  * `true` here buys the wiring, not behaviour, until tools are registered. */
41039
41140
  toolsEnabled: boolean().default(false),
41040
- extraHeaders: record(string(), string()).optional(),
41041
- /** kind === 'managed-local' only (spec §4). */
41042
- runtime: ManagedRuntimeConfigSchema.optional(),
41043
- /**
41044
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
41045
- * to configure (no key, no URL, no download; `model` is `apple-system`).
41046
- * `supportsVision` on such a row is stamped by the provider from the node's
41047
- * reported `imageInput`, never taken from the operator (D62).
41048
- */
41049
- appleFoundation: object({ nodeId: string() }).optional()
41141
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
41142
+ providerConfig: LlmProviderConfigSchema.default({})
41143
+ });
41144
+ /**
41145
+ * The common profile fields a kind's editor offers. The editor owns how each
41146
+ * one is drawn; the provider says which of them mean something on its wire.
41147
+ */
41148
+ var LlmProfileFieldSchema = _enum([
41149
+ "temperature",
41150
+ "topP",
41151
+ "topK",
41152
+ "maxTokens",
41153
+ "contextLength",
41154
+ "systemPrompt",
41155
+ "timeoutMs",
41156
+ "connectTimeoutMs",
41157
+ "firstTokenTimeoutMs",
41158
+ "idleTimeoutMs",
41159
+ "retry",
41160
+ "toolsEnabled"
41161
+ ]);
41162
+ /**
41163
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
41164
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
41165
+ * picker: that widget owns the model choice.
41166
+ */
41167
+ var LlmProviderWidgetSchema = object({
41168
+ id: string(),
41169
+ placement: _enum(["connection", "model"]),
41170
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
41171
+ requires: array(string()).optional()
41050
41172
  });
41051
41173
  /** ConfigUISchema tree passed through untyped on the wire (the
41052
41174
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -41055,11 +41177,56 @@ var ConfigSchemaPassthrough$3 = unknown();
41055
41177
  var LlmProfileKindDescriptorSchema = object({
41056
41178
  kind: LlmProfileKindSchema,
41057
41179
  label: string(),
41180
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
41058
41181
  icon: string(),
41059
41182
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
41060
41183
  addonId: string(),
41061
- configSchema: ConfigSchemaPassthrough$3
41184
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
41185
+ connectionSchema: ConfigSchemaPassthrough$3,
41186
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
41187
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
41188
+ /** The kind's defaults; a model from `listModels` may override any of them. */
41189
+ features: LlmModelFeaturesSchema,
41190
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
41191
+ visionEditable: boolean(),
41192
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
41193
+ modelCatalog: _enum([
41194
+ "fetch",
41195
+ "static",
41196
+ "none"
41197
+ ]),
41198
+ staticModels: array(LlmModelInfoSchema).optional(),
41199
+ /** The common fields that mean something on this kind's wire. */
41200
+ profileFields: array(LlmProfileFieldSchema),
41201
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
41062
41202
  });
41203
+ /**
41204
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
41205
+ * (the editor's form); with `profileId` too, a secret the draft leaves
41206
+ * untouched (absent or the redaction marker) is resolved server-side from the
41207
+ * stored profile — the browser never receives it.
41208
+ */
41209
+ var LlmListModelsInputSchema = object({
41210
+ addonId: string(),
41211
+ kind: LlmProfileKindSchema,
41212
+ profileId: string().optional(),
41213
+ connection: LlmProviderConfigSchema.optional()
41214
+ });
41215
+ var LlmListModelsErrorCodeSchema = _enum([
41216
+ "auth",
41217
+ "network",
41218
+ "unsupported",
41219
+ "invalid"
41220
+ ]);
41221
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
41222
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
41223
+ ok: literal(true),
41224
+ models: array(LlmModelInfoSchema)
41225
+ }), object({
41226
+ ok: literal(false),
41227
+ code: LlmListModelsErrorCodeSchema,
41228
+ message: string()
41229
+ })]);
41063
41230
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
41064
41231
  var LlmDefaultSchema = object({
41065
41232
  selector: LlmDefaultSelectorSchema,
@@ -41159,7 +41326,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
41159
41326
  kind: "mutation",
41160
41327
  auth: "admin",
41161
41328
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
41162
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
41329
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
41330
+ kind: "mutation",
41331
+ auth: "admin"
41332
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
41163
41333
  selector: LlmDefaultSelectorSchema,
41164
41334
  profileId: string().nullable()
41165
41335
  }), _void(), {
@@ -41327,14 +41497,106 @@ var LogEntrySchema = object({
41327
41497
  meta: record(string(), unknown()).optional(),
41328
41498
  tags: record(string(), string()).optional()
41329
41499
  });
41330
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
41331
- scope: array(string()).optional(),
41500
+ /**
41501
+ * A history READ against one destination (D898).
41502
+ *
41503
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
41504
+ * browser applied after the limit is what made a rare device's lines
41505
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
41506
+ * minted (opaque to everyone else): a file position for the rotated files, a
41507
+ * nanosecond timestamp for Loki.
41508
+ *
41509
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
41510
+ * store answers `done: false` with the cursor it reached and the bytes it
41511
+ * scanned, and the caller decides whether to go on. That is what makes a long
41512
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
41513
+ * flight, and not asking for the next slice ends the scan.
41514
+ */
41515
+ var LogReadQuerySchema = object({
41516
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
41517
+ requestId: string().min(1).max(64).optional(),
41518
+ /** The device the line is about (`tags.deviceId`, numeric). */
41519
+ deviceId: number().int().optional(),
41520
+ /**
41521
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
41522
+ * match. Not `addonId`: a cap router reads that name as "which provider".
41523
+ */
41524
+ fromAddonId: string().min(1).max(200).optional(),
41525
+ /**
41526
+ * The emitting node: matches the agent that emitted the line, the node
41527
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
41528
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
41529
+ * name as "which node's provider".
41530
+ */
41531
+ fromNodeId: string().min(1).max(200).optional(),
41532
+ /** Any other tag, exact match (AND). */
41533
+ tags: record(string(), union([string(), number()])).optional(),
41534
+ /** Severity FLOOR: this level and above. */
41332
41535
  level: LogLevelSchema.optional(),
41333
- since: date().optional(),
41334
- until: date().optional(),
41335
- limit: number().optional(),
41336
- tags: record(string(), string()).optional()
41337
- }), array(LogEntrySchema).readonly());
41536
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
41537
+ text: string().min(1).max(200).optional(),
41538
+ /** Epoch ms, inclusive. */
41539
+ since: number().optional(),
41540
+ /** Epoch ms, inclusive. */
41541
+ until: number().optional(),
41542
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
41543
+ before: string().min(1).max(1024).optional(),
41544
+ /** Newer than this cursor (exclusive). */
41545
+ after: string().min(1).max(1024).optional(),
41546
+ limit: number().int().min(1).max(1e3).optional(),
41547
+ /** Wall-clock bound of this slice. The provider caps it. */
41548
+ budgetMs: number().int().min(50).max(1e4).optional()
41549
+ });
41550
+ var LogReadResultSchema = object({
41551
+ /** Newest first. */
41552
+ entries: array(object({
41553
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
41554
+ id: string().optional(),
41555
+ /** Epoch ms. */
41556
+ timestamp: number(),
41557
+ level: LogLevelSchema,
41558
+ scope: string().optional(),
41559
+ message: string(),
41560
+ tags: record(string(), union([string(), number()])).optional(),
41561
+ meta: record(string(), unknown()).optional()
41562
+ })),
41563
+ /** Pass as `before` for the next older page; null when nothing older exists. */
41564
+ nextBefore: string().nullable(),
41565
+ /** Pass as `after` to read what arrived since; null when unknown. */
41566
+ nextAfter: string().nullable(),
41567
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
41568
+ scannedBytes: number().int().nonnegative(),
41569
+ /**
41570
+ * True when the scan in this direction reached the end of the store.
41571
+ * False with fewer than `limit` entries means the budget ran out first —
41572
+ * call again with `nextBefore` to go on.
41573
+ */
41574
+ done: boolean(),
41575
+ /** True when `cancelRead` ended this slice early. */
41576
+ cancelled: boolean().optional()
41577
+ });
41578
+ var LogReadCapabilitiesSchema = object({
41579
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
41580
+ readable: boolean(),
41581
+ /** Why not, when `readable` is false — rendered next to the source. */
41582
+ reason: string().nullable(),
41583
+ /** Filters the provider applies itself. A false one is applied by nobody. */
41584
+ filters: object({
41585
+ deviceId: boolean(),
41586
+ addonId: boolean(),
41587
+ nodeId: boolean(),
41588
+ tags: boolean(),
41589
+ level: boolean(),
41590
+ text: boolean(),
41591
+ timeRange: boolean()
41592
+ }),
41593
+ /** How far back the store reaches, when the provider knows (days). */
41594
+ retentionDays: number().nullable()
41595
+ });
41596
+ 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() }), {
41597
+ kind: "mutation",
41598
+ auth: "admin"
41599
+ });
41338
41600
  /**
41339
41601
  * `login-method` — collection cap through which auth addons contribute
41340
41602
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -43052,9 +43314,11 @@ var alarmPanelCapability = {
43052
43314
  */
43053
43315
  durability: "restored",
43054
43316
  /**
43055
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
43317
+ * History (D850): the panel's lifecycle state as an `enum` series —
43318
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
43319
+ * few seconds keeps every step. Who armed it stays in the events ledger.
43056
43320
  */
43057
- history: "none",
43321
+ history: { fields: { state: { kind: "enum" } } },
43058
43322
  /** Clock fields: written, but excluded from the compare that decides
43059
43323
  * whether persisting is worth a SQLite commit. */
43060
43324
  volatileStateFields: ["lastChangedAt"]
@@ -43932,6 +44196,33 @@ var NcRuleTargetSchema = object({
43932
44196
  params: record(string(), unknown()).optional()
43933
44197
  });
43934
44198
  /**
44199
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
44200
+ *
44201
+ * Every mode starts from the same CLEAN source frame of the trigger moment
44202
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
44203
+ * to the zone that fired the rule) and renders it once at send time:
44204
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
44205
+ * colour and every OTHER track visible at that instant outlined thin, each
44206
+ * labelled with class and confidence ("dog 87%").
44207
+ * - `crop` — the subject cut out of that frame around its box at that instant.
44208
+ * - `clean` — the whole scene with nothing drawn on it.
44209
+ * - `none` — no picture.
44210
+ *
44211
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
44212
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
44213
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
44214
+ * ship a crop on one event and a boxed scene on the next depending on which
44215
+ * stored kind had landed.
44216
+ */
44217
+ var NcMediaImageSchema = _enum([
44218
+ "scene-boxes",
44219
+ "crop",
44220
+ "clean",
44221
+ "none"
44222
+ ]);
44223
+ /**
44224
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
44225
+ *
43935
44226
  * Media attachment policy (P1 still-image subset).
43936
44227
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43937
44228
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43945,6 +44236,8 @@ var NcRuleTargetSchema = object({
43945
44236
  * - `none` — no attachment.
43946
44237
  */
43947
44238
  /**
44239
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
44240
+ *
43948
44241
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43949
44242
  * conflate it with the selection strategy and betray the request: asking for
43950
44243
  * the clean scene frame on an object-event owner used to start at
@@ -43973,16 +44266,29 @@ var NcMediaFrameSchema = _enum([
43973
44266
  */
43974
44267
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43975
44268
  var NcMediaPolicySchema = object({
44269
+ /**
44270
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
44271
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
44272
+ * triple below, at load and at every write, and the store keeps only this.
44273
+ */
44274
+ image: NcMediaImageSchema.optional(),
44275
+ /**
44276
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
44277
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
44278
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
44279
+ * Replaces `zoneCrop`.
44280
+ */
44281
+ showTriggerZone: boolean().optional(),
44282
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43976
44283
  attach: _enum([
43977
44284
  "best",
43978
44285
  "best-matching",
43979
44286
  "keyFrame",
43980
44287
  "none"
43981
- ]).default("best"),
43982
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
44288
+ ]).optional(),
44289
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43983
44290
  frame: NcMediaFrameSchema.optional(),
43984
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43985
- * "show me the ZONE", not the whole scene or the subject crop. */
44291
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43986
44292
  zoneCrop: boolean().optional(),
43987
44293
  /**
43988
44294
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -44154,7 +44460,9 @@ var NcRuleInputSchema = object({
44154
44460
  * targets.
44155
44461
  */
44156
44462
  targetUsers: array(string()).optional(),
44157
- media: NcMediaPolicySchema.default({ attach: "best" }),
44463
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
44464
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
44465
+ media: NcMediaPolicySchema.default({}),
44158
44466
  throttle: NcThrottleSchema.default({
44159
44467
  cooldownSec: 60,
44160
44468
  scope: "rule-device"
@@ -45091,13 +45399,37 @@ var NcAlarmModeOpeningsSchema = object({
45091
45399
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
45092
45400
  unknown: array(number().int())
45093
45401
  });
45402
+ /**
45403
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
45404
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
45405
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
45406
+ * never looks fully armed (D62: off must never look like broken).
45407
+ */
45408
+ var NcAlarmInputBypassViewSchema = object({
45409
+ ruleId: string(),
45410
+ /** The rule's current name (its frozen name when the rule is gone). */
45411
+ ruleName: string(),
45412
+ /** The input: the sensor of the match, else its camera. */
45413
+ deviceId: number().int(),
45414
+ /** The input's current name. */
45415
+ name: string(),
45416
+ /** When it was bypassed (ms epoch). */
45417
+ since: number(),
45418
+ /** Triggers from this input dropped since. */
45419
+ dropped: number().int().min(0)
45420
+ });
45094
45421
  var NcAlarmLiveSchema = object({
45095
45422
  state: AlarmStateSchema,
45096
45423
  /** The mode being armed into (exit delay) or held; null when disarmed. */
45097
45424
  targetMode: AlarmArmModeSchema.nullable(),
45098
45425
  availableModes: array(AlarmArmModeSchema),
45099
45426
  openings: array(NcAlarmModeOpeningsSchema),
45100
- exclusions: array(NcAlarmExclusionViewSchema)
45427
+ exclusions: array(NcAlarmExclusionViewSchema),
45428
+ /**
45429
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
45430
+ * Defaulted so an older hub answer still parses (as "none known").
45431
+ */
45432
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
45101
45433
  });
45102
45434
  var NcAlarmConfigSchema = object({
45103
45435
  /**
@@ -55816,9 +56148,11 @@ var connectivityCapability = {
55816
56148
  */
55817
56149
  durability: "restored",
55818
56150
  /**
55819
- * History (D850): none — duplicates device-status.online (one authority for availability).
56151
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
56152
+ * is the upstream entity's own link (a HA connectivity sensor), not the
56153
+ * device's reachability, which stays `device-status.online`.
55820
56154
  */
55821
- history: "none",
56155
+ history: { fields: { connected: { kind: "boolean" } } },
55822
56156
  /** Clock fields: written, but excluded from the compare that decides
55823
56157
  * whether persisting is worth a SQLite commit. */
55824
56158
  volatileStateFields: ["lastChangedAt"]
@@ -56642,11 +56976,22 @@ var dishwasherCapability = {
56642
56976
  },
56643
56977
  runtimeState: DishwasherStatusSchema,
56644
56978
  durability: "session",
56645
- history: { fields: { progressPercent: {
56646
- kind: "gauge",
56647
- unit: "%",
56648
- deadband: 2
56649
- } } }
56979
+ history: { fields: {
56980
+ progressPercent: {
56981
+ kind: "gauge",
56982
+ unit: "%",
56983
+ deadband: 2
56984
+ },
56985
+ state: { kind: "enum" },
56986
+ operationState: { kind: "enum" },
56987
+ remainingSeconds: {
56988
+ kind: "gauge",
56989
+ unit: "s",
56990
+ minIntervalMs: 6e4
56991
+ },
56992
+ doorOpen: { kind: "boolean" },
56993
+ powerOn: { kind: "boolean" }
56994
+ } }
56650
56995
  };
56651
56996
  var DoorbellStatusSchema = object({
56652
56997
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56763,9 +57108,15 @@ var enumSensorCapability = {
56763
57108
  */
56764
57109
  durability: "restored",
56765
57110
  /**
56766
- * History (D850): none — text/enum state has no history (non-goal).
57111
+ * History (D850): the value as an `enum` series (an appliance's program or
57112
+ * operation state, an HVAC action). The option set is per device, so the
57113
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
57114
+ * `format` carries a timestamp, not a state, and is not recorded.
56767
57115
  */
56768
- history: "none",
57116
+ history: { fields: { value: {
57117
+ kind: "enum",
57118
+ skipWhenSet: "format"
57119
+ } } },
56769
57120
  /** Clock fields: written, but excluded from the compare that decides
56770
57121
  * whether persisting is worth a SQLite commit. */
56771
57122
  volatileStateFields: ["lastFetchedAt"]
@@ -58739,9 +59090,10 @@ var lockControlCapability = {
58739
59090
  */
58740
59091
  durability: "restored",
58741
59092
  /**
58742
- * History (D850): none — enum state; lock events belong in the events ledger.
59093
+ * History (D850): the lock's state as an `enum` series — change-only, no
59094
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58743
59095
  */
58744
- history: "none",
59096
+ history: { fields: { state: { kind: "enum" } } },
58745
59097
  /** Clock fields: written, but excluded from the compare that decides
58746
59098
  * whether persisting is worth a SQLite commit. */
58747
59099
  volatileStateFields: ["lastChangedAt"]
@@ -58915,9 +59267,18 @@ var mediaPlayerCapability = {
58915
59267
  */
58916
59268
  durability: "session",
58917
59269
  /**
58918
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
59270
+ * History (D850): volume (a level an operator or an automation sets; the
59271
+ * default 10 s floor folds a slider drag into its end value) and mute.
59272
+ * `positionMs` is not recorded: it moves continuously while playing.
58919
59273
  */
58920
- history: "none"
59274
+ history: { fields: {
59275
+ volumeLevel: {
59276
+ kind: "gauge",
59277
+ unit: "%",
59278
+ deadband: 1
59279
+ },
59280
+ isMuted: { kind: "boolean" }
59281
+ } }
58921
59282
  };
58922
59283
  /**
58923
59284
  * mesh-network — collection cap for mesh-VPN providers.
@@ -64210,9 +64571,29 @@ var streamParamsCapability = {
64210
64571
  */
64211
64572
  durability: "restored",
64212
64573
  /**
64213
- * History (D850): none — encoder configuration.
64574
+ * History (D850): the configured bitrate and frame rate of the main and sub
64575
+ * profiles. Configuration, so change-only on the default floor: a point is an
64576
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64577
+ * quality over time must show.
64214
64578
  */
64215
- history: "none",
64579
+ history: { fields: {
64580
+ "main.bitrate": {
64581
+ kind: "gauge",
64582
+ unit: "kbps"
64583
+ },
64584
+ "main.framerate": {
64585
+ kind: "gauge",
64586
+ unit: "fps"
64587
+ },
64588
+ "sub.bitrate": {
64589
+ kind: "gauge",
64590
+ unit: "kbps"
64591
+ },
64592
+ "sub.framerate": {
64593
+ kind: "gauge",
64594
+ unit: "fps"
64595
+ }
64596
+ } },
64216
64597
  /** Clock fields: written, but excluded from the compare that decides
64217
64598
  * whether persisting is worth a SQLite commit. */
64218
64599
  volatileStateFields: ["lastFetchedAt"]
@@ -65047,26 +65428,6 @@ var ApiKeySummarySchema = object({
65047
65428
  createdAt: number(),
65048
65429
  lastUsedAt: number().optional()
65049
65430
  });
65050
- var ScopedTokenSummarySchema = object({
65051
- id: string(),
65052
- userId: string(),
65053
- name: string(),
65054
- tokenPrefix: string(),
65055
- scopes: array(TokenScopeSchema),
65056
- expiresAt: number().nullish(),
65057
- lastUsedAt: number().nullish(),
65058
- createdAt: number()
65059
- });
65060
- var CreateScopedTokenInputSchema = object({
65061
- userId: string(),
65062
- name: string(),
65063
- scopes: array(TokenScopeSchema),
65064
- expiresAt: number().optional()
65065
- });
65066
- var CreateScopedTokenResultSchema = object({
65067
- token: string(),
65068
- record: ScopedTokenSummarySchema
65069
- });
65070
65431
  var OauthSessionSummarySchema = object({
65071
65432
  id: string(),
65072
65433
  userId: string(),
@@ -65088,11 +65449,11 @@ var TotpStatusSchema = object({
65088
65449
  confirmedAt: number().nullable()
65089
65450
  });
65090
65451
  /**
65091
- * user-management — singleton capability for user accounts, API keys,
65092
- * and scoped tokens.
65452
+ * user-management — singleton capability for user accounts and the
65453
+ * legacy API-key rows.
65093
65454
  *
65094
65455
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
65095
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
65456
+ * — the subset check on `setUserScopes` is moot
65096
65457
  * because non-admins never reach these. If/when we open non-admin
65097
65458
  * delegation, structural caller-scope subset check goes inside the
65098
65459
  * provider.
@@ -65149,15 +65510,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
65149
65510
  kind: "mutation",
65150
65511
  auth: "admin",
65151
65512
  access: "delete"
65152
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
65153
- kind: "mutation",
65154
- auth: "admin",
65155
- access: "create"
65156
- }), method(object({ id: string() }), object({ success: literal(true) }), {
65157
- kind: "mutation",
65158
- auth: "admin",
65159
- access: "delete"
65160
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
65513
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
65161
65514
  kind: "mutation",
65162
65515
  auth: "admin",
65163
65516
  access: "create"
@@ -67418,6 +67771,15 @@ var BaseDevice = class {
67418
67771
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
67419
67772
  * with a typed cast.
67420
67773
  *
67774
+ * Answer what you KNOW. A plain array is read as the complete list only
67775
+ * while this device is `online` and probed; return
67776
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67777
+ * now (no credentials, parent not connected, a failed or partial read) —
67778
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67779
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67780
+ * deleted only after a second agreeing complete read on a later probe (D49;
67781
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67782
+ *
67421
67783
  * Default: no children.
67422
67784
  */
67423
67785
  getAccessoryChildren() {
@@ -71247,7 +71609,7 @@ Object.freeze({
71247
71609
  capName: "llm",
71248
71610
  capScope: "system",
71249
71611
  addonId: null,
71250
- access: "view"
71612
+ access: "create"
71251
71613
  },
71252
71614
  "llm.listNodeModels": {
71253
71615
  capName: "llm",
@@ -71549,7 +71911,19 @@ Object.freeze({
71549
71911
  addonId: null,
71550
71912
  access: "view"
71551
71913
  },
71552
- "logDestination.query": {
71914
+ "logDestination.cancelRead": {
71915
+ capName: "log-destination",
71916
+ capScope: "system",
71917
+ addonId: null,
71918
+ access: "create"
71919
+ },
71920
+ "logDestination.describeRead": {
71921
+ capName: "log-destination",
71922
+ capScope: "system",
71923
+ addonId: null,
71924
+ access: "view"
71925
+ },
71926
+ "logDestination.read": {
71553
71927
  capName: "log-destination",
71554
71928
  capScope: "system",
71555
71929
  addonId: null,
@@ -75911,12 +76285,6 @@ Object.freeze({
75911
76285
  addonId: null,
75912
76286
  access: "create"
75913
76287
  },
75914
- "userManagement.createScopedToken": {
75915
- capName: "user-management",
75916
- capScope: "system",
75917
- addonId: null,
75918
- access: "create"
75919
- },
75920
76288
  "userManagement.createUser": {
75921
76289
  capName: "user-management",
75922
76290
  capScope: "system",
@@ -75965,12 +76333,6 @@ Object.freeze({
75965
76333
  addonId: null,
75966
76334
  access: "view"
75967
76335
  },
75968
- "userManagement.listScopedTokens": {
75969
- capName: "user-management",
75970
- capScope: "system",
75971
- addonId: null,
75972
- access: "view"
75973
- },
75974
76336
  "userManagement.listUsers": {
75975
76337
  capName: "user-management",
75976
76338
  capScope: "system",
@@ -76025,12 +76387,6 @@ Object.freeze({
76025
76387
  addonId: null,
76026
76388
  access: "delete"
76027
76389
  },
76028
- "userManagement.revokeScopedToken": {
76029
- capName: "user-management",
76030
- capScope: "system",
76031
- addonId: null,
76032
- access: "delete"
76033
- },
76034
76390
  "userManagement.setupTotp": {
76035
76391
  capName: "user-management",
76036
76392
  capScope: "system",
@@ -76061,12 +76417,6 @@ Object.freeze({
76061
76417
  addonId: null,
76062
76418
  access: "view"
76063
76419
  },
76064
- "userManagement.validateScopedToken": {
76065
- capName: "user-management",
76066
- capScope: "system",
76067
- addonId: null,
76068
- access: "view"
76069
- },
76070
76420
  "userManagement.verifyTotp": {
76071
76421
  capName: "user-management",
76072
76422
  capScope: "system",
@@ -77580,6 +77930,11 @@ Object.freeze({
77580
77930
  form: "single",
77581
77931
  optional: false
77582
77932
  }],
77933
+ "logDestination.read": [{
77934
+ name: "deviceId",
77935
+ form: "single",
77936
+ optional: true
77937
+ }],
77583
77938
  "mediaPlayer.getStatus": [{
77584
77939
  name: "deviceId",
77585
77940
  form: "single",