@camstack/addon-provider-amcrest 0.2.141 → 0.2.143

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
@@ -5450,7 +5450,7 @@ var ZodIssueCode = {
5450
5450
  var ZodFirstPartyTypeKind;
5451
5451
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5452
5452
  //#endregion
5453
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5453
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5454
5454
  /**
5455
5455
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5456
5456
  * window to float samples (D455).
@@ -7833,9 +7833,9 @@ function normalizeAddonInitResult(result) {
7833
7833
  return result;
7834
7834
  }
7835
7835
  /**
7836
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7837
- * and validates them (`share-token.service.ts` builds its enum from this
7838
- * list); a data plane names the kinds it ACCEPTS in `share`.
7836
+ * The share-view scope kinds a share-link token can carry. The hub mints
7837
+ * and validates them (`ShareViewGrantSchema` builds its
7838
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7839
7839
  */
7840
7840
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7841
7841
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12549,7 +12549,7 @@ var ConvertResultSchema = object({
12549
12549
  * `super_admin` — collapsed onto the single boolean because every
12550
12550
  * non-admin caller is governed by the same scope-check rules; the
12551
12551
  * distinction was only ever used to route role-specific procedures
12552
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12552
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12553
12553
  * with `isAdmin: false` + an explicit scope list.
12554
12554
  */
12555
12555
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -12738,10 +12738,12 @@ var AddonRoutesScopeSchema = object({
12738
12738
  type: literal("addon-routes"),
12739
12739
  access: array(MethodAccessSchema).min(1)
12740
12740
  });
12741
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
12741
12742
  var CredentialScopeSchema = union([
12742
12743
  literal("*"),
12743
12744
  ShareViewScopeSchema,
12744
12745
  AddonRoutesScopeSchema,
12746
+ PreferencesSelfScopeSchema,
12745
12747
  TokenScopeSchema
12746
12748
  ]);
12747
12749
  object({
@@ -12750,6 +12752,55 @@ object({
12750
12752
  jti: string().min(16),
12751
12753
  scopes: array(CredentialScopeSchema).min(1)
12752
12754
  });
12755
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
12756
+ /** A namespace's value: a JSON object, opaque to the hub. */
12757
+ var PreferenceValueSchema = record(string(), unknown());
12758
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
12759
+ /** A stored row, as the owner reads it. */
12760
+ var PreferenceRowSchema = object({
12761
+ namespace: PreferenceNamespaceSchema,
12762
+ value: PreferenceValueSchema,
12763
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
12764
+ revision: number().int().positive(),
12765
+ updatedAt: number().int(),
12766
+ /** The client id the last writer sent; `null` when it sent none. */
12767
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
12768
+ });
12769
+ object({
12770
+ /** Absent: every namespace the caller holds. */
12771
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
12772
+ object({ rows: array(PreferenceRowSchema) });
12773
+ object({
12774
+ namespace: PreferenceNamespaceSchema,
12775
+ value: PreferenceValueSchema,
12776
+ /**
12777
+ * The revision the edit was based on. Absent: last write wins. `0`: the
12778
+ * namespace must not exist yet. Any other value that is not the current
12779
+ * revision answers `conflict` and writes nothing.
12780
+ */
12781
+ baseRevision: number().int().nonnegative().optional(),
12782
+ deviceId: PreferenceDeviceIdSchema.optional()
12783
+ });
12784
+ discriminatedUnion("status", [object({
12785
+ status: literal("saved"),
12786
+ row: PreferenceRowSchema
12787
+ }), object({
12788
+ status: literal("conflict"),
12789
+ current: PreferenceRowSchema.nullable()
12790
+ })]);
12791
+ object({ namespace: PreferenceNamespaceSchema });
12792
+ object({
12793
+ /** `false` when the namespace did not exist. */
12794
+ deleted: boolean() });
12795
+ object({
12796
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
12797
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
12798
+ object({
12799
+ /** Every row whose revision differs from the client's, and every row it did not list. */
12800
+ rows: array(PreferenceRowSchema),
12801
+ /** Namespaces the client listed that no longer exist. */
12802
+ deleted: array(PreferenceNamespaceSchema)
12803
+ });
12753
12804
  _enum(["new-session", "step-up"]);
12754
12805
  /** The languages the hub's app landing pages are written in (D858). */
12755
12806
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17003,7 +17054,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17003
17054
  kind: literal("node"),
17004
17055
  nodeId: string().min(1)
17005
17056
  })]);
17057
+ /**
17058
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17059
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17060
+ * meaning); a rollup keeps the time spent in each state (`states`).
17061
+ */
17006
17062
  var DeviceHistoryKindSchema = _enum([
17063
+ "gauge",
17064
+ "counter",
17065
+ "boolean",
17066
+ "enum"
17067
+ ]);
17068
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17069
+ var DeviceHistoryProducerKindSchema = _enum([
17007
17070
  "gauge",
17008
17071
  "counter",
17009
17072
  "boolean"
@@ -17040,7 +17103,13 @@ var SeriesInfoSchema = object({
17040
17103
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17041
17104
  unit: string().nullable(),
17042
17105
  displayName: string(),
17043
- source: _enum(["cap", "addon"]),
17106
+ source: _enum([
17107
+ "cap",
17108
+ "addon",
17109
+ "derived"
17110
+ ]),
17111
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17112
+ values: array(string()).readonly().nullable(),
17044
17113
  firstTs: number(),
17045
17114
  lastTs: number()
17046
17115
  });
@@ -17054,17 +17123,31 @@ var QueryPointSchema = object({
17054
17123
  twMean: number().nullable(),
17055
17124
  min: number(),
17056
17125
  max: number(),
17057
- /** `null` is unknown, never zero (D393). */
17058
- last: number().nullable()
17126
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17127
+ last: number().nullable(),
17128
+ /**
17129
+ * The increase over the point: a `counter`'s growth since the previous point
17130
+ * or bucket (a drop is a reset, counted from zero), and for
17131
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17132
+ * every other kind, and when it cannot be known.
17133
+ */
17134
+ delta: number().nullable(),
17135
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17136
+ state: string().nullable(),
17137
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17138
+ states: record(string(), number()).nullable()
17059
17139
  });
17060
17140
  var QuerySeriesSchema = object({
17061
17141
  scope: string(),
17062
17142
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17063
17143
  before: object({
17064
17144
  t: number(),
17065
- value: number().nullable()
17145
+ value: number().nullable(),
17146
+ state: string().nullable()
17066
17147
  }).nullable(),
17067
- points: array(QueryPointSchema).readonly()
17148
+ points: array(QueryPointSchema).readonly(),
17149
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17150
+ derivedFrom: string().nullable()
17068
17151
  });
17069
17152
  /** The window part of a query, shared by the device and node forms. */
17070
17153
  var QueryWindowShape = {
@@ -17080,6 +17163,23 @@ var QueryResultSchema = object({
17080
17163
  series: array(QuerySeriesSchema).readonly(),
17081
17164
  truncated: boolean()
17082
17165
  });
17166
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17167
+ var QueryManyItemSchema = union([object({
17168
+ deviceId: number().int(),
17169
+ key: string(),
17170
+ scope: string().optional()
17171
+ }), object({
17172
+ forNodeId: string().min(1),
17173
+ key: string(),
17174
+ scope: string().optional()
17175
+ })]);
17176
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17177
+ ok: literal(true),
17178
+ result: QueryResultSchema
17179
+ }), object({
17180
+ ok: literal(false),
17181
+ error: string()
17182
+ })]);
17083
17183
  var TierStatusSchema = object({
17084
17184
  tier: DeviceHistoryResolutionSchema,
17085
17185
  /** `null` until the first background count answered. */
@@ -17135,16 +17235,22 @@ var DeviceHistoryStatusSchema = object({
17135
17235
  lastRefreshAt: number().nullable()
17136
17236
  })
17137
17237
  });
17138
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17238
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17139
17239
  deviceId: number().int(),
17140
17240
  ...QueryWindowShape
17141
17241
  }), QueryResultSchema), method(object({
17142
- nodeId: string().min(1),
17242
+ forNodeId: string().min(1),
17143
17243
  ...QueryWindowShape
17144
17244
  }), QueryResultSchema, { auth: "admin" }), method(object({
17245
+ items: array(QueryManyItemSchema).min(1).max(24),
17246
+ from: QueryWindowShape.from,
17247
+ to: QueryWindowShape.to,
17248
+ resolution: QueryWindowShape.resolution,
17249
+ maxPoints: QueryWindowShape.maxPoints
17250
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17145
17251
  name: string().regex(/^[a-z0-9-]+$/),
17146
17252
  subjectKind: _enum(["device", "node"]),
17147
- kind: DeviceHistoryKindSchema,
17253
+ kind: DeviceHistoryProducerKindSchema,
17148
17254
  unit: string().optional(),
17149
17255
  displayName: string().min(1),
17150
17256
  ingest: _enum(["points", "buckets"])
@@ -40039,38 +40145,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40039
40145
  auth: "admin",
40040
40146
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40041
40147
  });
40148
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40149
+ /** What a model (or, by default, every model of a kind) can do. */
40150
+ var LlmModelFeaturesSchema = object({
40151
+ vision: boolean(),
40152
+ tools: boolean(),
40153
+ streaming: boolean()
40154
+ });
40155
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40156
+ var LlmModelInfoSchema = object({
40157
+ id: string(),
40158
+ label: string().optional(),
40159
+ contextLength: number().int().positive().optional(),
40160
+ features: LlmModelFeaturesSchema.partial().optional()
40161
+ });
40042
40162
  /**
40043
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40044
- * methods concat-fan across providers; single-row methods route to ONE
40045
- * provider by the `addonId` in the call input (the notification-output
40046
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40047
- * (hub-placed); the cap stays open for future providers.
40048
- *
40049
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40050
- * `apiKey` is a password field — providers REDACT it on read and merge on
40051
- * write; a stored key NEVER round-trips to a client.
40163
+ * The provider-specific part of a profile, validated by the provider that owns
40164
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40165
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40166
+ * keychain, never in the row, and reads back as the redaction marker.
40052
40167
  */
40053
- var LlmProfileKindSchema = _enum([
40054
- "openai-compatible",
40055
- "openai",
40056
- "anthropic",
40057
- "google",
40058
- "managed-local",
40059
- "apple-foundation"
40060
- ]);
40168
+ var LlmProviderConfigSchema = record(string(), unknown());
40061
40169
  var LlmProfileSchema = object({
40062
40170
  id: string(),
40063
40171
  name: string(),
40172
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
40064
40173
  kind: LlmProfileKindSchema,
40065
40174
  /** Stamped by the provider — keeps the fanned catalog routable. */
40066
40175
  addonId: string(),
40067
40176
  enabled: boolean(),
40068
40177
  /** Vendor model id, or the managed runtime's loaded model. */
40069
40178
  model: string(),
40070
- /** Required for openai-compatible; override for cloud kinds. */
40071
- baseUrl: string().optional(),
40072
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
40073
- apiKey: string().optional(),
40074
40179
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
40075
40180
  * degraded to text — that shipped once and produced a confident answer to a
40076
40181
  * question about a picture nobody sent. */
@@ -40078,15 +40183,11 @@ var LlmProfileSchema = object({
40078
40183
  temperature: number().min(0).max(2).optional(),
40079
40184
  /** Nucleus sampling. Every wire we speak has it. */
40080
40185
  topP: number().min(0).max(1).optional(),
40081
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
40082
- * wire does, and the client drops it there (measured: the request body gets
40083
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
40084
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40186
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40187
+ * field in its editor only when its descriptor lists it in `profileFields`. */
40085
40188
  topK: number().int().positive().optional(),
40086
40189
  maxTokens: number().int().positive().optional(),
40087
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
40088
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
40089
- * the model with, so it is the one field that changes a PROCESS. */
40190
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
40090
40191
  contextLength: number().int().positive().optional(),
40091
40192
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
40092
40193
  * two system prompts fighting is worse than either alone). */
@@ -40112,16 +40213,37 @@ var LlmProfileSchema = object({
40112
40213
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40113
40214
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40114
40215
  toolsEnabled: boolean().default(false),
40115
- extraHeaders: record(string(), string()).optional(),
40116
- /** kind === 'managed-local' only (spec §4). */
40117
- runtime: ManagedRuntimeConfigSchema.optional(),
40118
- /**
40119
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40120
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40121
- * `supportsVision` on such a row is stamped by the provider from the node's
40122
- * reported `imageInput`, never taken from the operator (D62).
40123
- */
40124
- appleFoundation: object({ nodeId: string() }).optional()
40216
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40217
+ providerConfig: LlmProviderConfigSchema.default({})
40218
+ });
40219
+ /**
40220
+ * The common profile fields a kind's editor offers. The editor owns how each
40221
+ * one is drawn; the provider says which of them mean something on its wire.
40222
+ */
40223
+ var LlmProfileFieldSchema = _enum([
40224
+ "temperature",
40225
+ "topP",
40226
+ "topK",
40227
+ "maxTokens",
40228
+ "contextLength",
40229
+ "systemPrompt",
40230
+ "timeoutMs",
40231
+ "connectTimeoutMs",
40232
+ "firstTokenTimeoutMs",
40233
+ "idleTimeoutMs",
40234
+ "retry",
40235
+ "toolsEnabled"
40236
+ ]);
40237
+ /**
40238
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40239
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40240
+ * picker: that widget owns the model choice.
40241
+ */
40242
+ var LlmProviderWidgetSchema = object({
40243
+ id: string(),
40244
+ placement: _enum(["connection", "model"]),
40245
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40246
+ requires: array(string()).optional()
40125
40247
  });
40126
40248
  /** ConfigUISchema tree passed through untyped on the wire (the
40127
40249
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40130,11 +40252,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40130
40252
  var LlmProfileKindDescriptorSchema = object({
40131
40253
  kind: LlmProfileKindSchema,
40132
40254
  label: string(),
40255
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40133
40256
  icon: string(),
40134
40257
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40135
40258
  addonId: string(),
40136
- configSchema: ConfigSchemaPassthrough$3
40259
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40260
+ connectionSchema: ConfigSchemaPassthrough$3,
40261
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40262
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40263
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40264
+ features: LlmModelFeaturesSchema,
40265
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40266
+ visionEditable: boolean(),
40267
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40268
+ modelCatalog: _enum([
40269
+ "fetch",
40270
+ "static",
40271
+ "none"
40272
+ ]),
40273
+ staticModels: array(LlmModelInfoSchema).optional(),
40274
+ /** The common fields that mean something on this kind's wire. */
40275
+ profileFields: array(LlmProfileFieldSchema),
40276
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40277
+ });
40278
+ /**
40279
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40280
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40281
+ * untouched (absent or the redaction marker) is resolved server-side from the
40282
+ * stored profile — the browser never receives it.
40283
+ */
40284
+ var LlmListModelsInputSchema = object({
40285
+ addonId: string(),
40286
+ kind: LlmProfileKindSchema,
40287
+ profileId: string().optional(),
40288
+ connection: LlmProviderConfigSchema.optional()
40137
40289
  });
40290
+ var LlmListModelsErrorCodeSchema = _enum([
40291
+ "auth",
40292
+ "network",
40293
+ "unsupported",
40294
+ "invalid"
40295
+ ]);
40296
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40297
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40298
+ ok: literal(true),
40299
+ models: array(LlmModelInfoSchema)
40300
+ }), object({
40301
+ ok: literal(false),
40302
+ code: LlmListModelsErrorCodeSchema,
40303
+ message: string()
40304
+ })]);
40138
40305
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40139
40306
  var LlmDefaultSchema = object({
40140
40307
  selector: LlmDefaultSelectorSchema,
@@ -40234,7 +40401,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40234
40401
  kind: "mutation",
40235
40402
  auth: "admin",
40236
40403
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40237
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40404
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40405
+ kind: "mutation",
40406
+ auth: "admin"
40407
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40238
40408
  selector: LlmDefaultSelectorSchema,
40239
40409
  profileId: string().nullable()
40240
40410
  }), _void(), {
@@ -40402,14 +40572,106 @@ var LogEntrySchema = object({
40402
40572
  meta: record(string(), unknown()).optional(),
40403
40573
  tags: record(string(), string()).optional()
40404
40574
  });
40405
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40406
- scope: array(string()).optional(),
40575
+ /**
40576
+ * A history READ against one destination (D898).
40577
+ *
40578
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40579
+ * browser applied after the limit is what made a rare device's lines
40580
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40581
+ * minted (opaque to everyone else): a file position for the rotated files, a
40582
+ * nanosecond timestamp for Loki.
40583
+ *
40584
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40585
+ * store answers `done: false` with the cursor it reached and the bytes it
40586
+ * scanned, and the caller decides whether to go on. That is what makes a long
40587
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40588
+ * flight, and not asking for the next slice ends the scan.
40589
+ */
40590
+ var LogReadQuerySchema = object({
40591
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40592
+ requestId: string().min(1).max(64).optional(),
40593
+ /** The device the line is about (`tags.deviceId`, numeric). */
40594
+ deviceId: number().int().optional(),
40595
+ /**
40596
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40597
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40598
+ */
40599
+ fromAddonId: string().min(1).max(200).optional(),
40600
+ /**
40601
+ * The emitting node: matches the agent that emitted the line, the node
40602
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40603
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40604
+ * name as "which node's provider".
40605
+ */
40606
+ fromNodeId: string().min(1).max(200).optional(),
40607
+ /** Any other tag, exact match (AND). */
40608
+ tags: record(string(), union([string(), number()])).optional(),
40609
+ /** Severity FLOOR: this level and above. */
40407
40610
  level: LogLevelSchema.optional(),
40408
- since: date().optional(),
40409
- until: date().optional(),
40410
- limit: number().optional(),
40411
- tags: record(string(), string()).optional()
40412
- }), array(LogEntrySchema).readonly());
40611
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40612
+ text: string().min(1).max(200).optional(),
40613
+ /** Epoch ms, inclusive. */
40614
+ since: number().optional(),
40615
+ /** Epoch ms, inclusive. */
40616
+ until: number().optional(),
40617
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40618
+ before: string().min(1).max(1024).optional(),
40619
+ /** Newer than this cursor (exclusive). */
40620
+ after: string().min(1).max(1024).optional(),
40621
+ limit: number().int().min(1).max(1e3).optional(),
40622
+ /** Wall-clock bound of this slice. The provider caps it. */
40623
+ budgetMs: number().int().min(50).max(1e4).optional()
40624
+ });
40625
+ var LogReadResultSchema = object({
40626
+ /** Newest first. */
40627
+ entries: array(object({
40628
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40629
+ id: string().optional(),
40630
+ /** Epoch ms. */
40631
+ timestamp: number(),
40632
+ level: LogLevelSchema,
40633
+ scope: string().optional(),
40634
+ message: string(),
40635
+ tags: record(string(), union([string(), number()])).optional(),
40636
+ meta: record(string(), unknown()).optional()
40637
+ })),
40638
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40639
+ nextBefore: string().nullable(),
40640
+ /** Pass as `after` to read what arrived since; null when unknown. */
40641
+ nextAfter: string().nullable(),
40642
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40643
+ scannedBytes: number().int().nonnegative(),
40644
+ /**
40645
+ * True when the scan in this direction reached the end of the store.
40646
+ * False with fewer than `limit` entries means the budget ran out first —
40647
+ * call again with `nextBefore` to go on.
40648
+ */
40649
+ done: boolean(),
40650
+ /** True when `cancelRead` ended this slice early. */
40651
+ cancelled: boolean().optional()
40652
+ });
40653
+ var LogReadCapabilitiesSchema = object({
40654
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40655
+ readable: boolean(),
40656
+ /** Why not, when `readable` is false — rendered next to the source. */
40657
+ reason: string().nullable(),
40658
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40659
+ filters: object({
40660
+ deviceId: boolean(),
40661
+ addonId: boolean(),
40662
+ nodeId: boolean(),
40663
+ tags: boolean(),
40664
+ level: boolean(),
40665
+ text: boolean(),
40666
+ timeRange: boolean()
40667
+ }),
40668
+ /** How far back the store reaches, when the provider knows (days). */
40669
+ retentionDays: number().nullable()
40670
+ });
40671
+ 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() }), {
40672
+ kind: "mutation",
40673
+ auth: "admin"
40674
+ });
40413
40675
  /**
40414
40676
  * `login-method` — collection cap through which auth addons contribute
40415
40677
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42127,9 +42389,11 @@ var alarmPanelCapability = {
42127
42389
  */
42128
42390
  durability: "restored",
42129
42391
  /**
42130
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42392
+ * History (D850): the panel's lifecycle state as an `enum` series —
42393
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42394
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42131
42395
  */
42132
- history: "none",
42396
+ history: { fields: { state: { kind: "enum" } } },
42133
42397
  /** Clock fields: written, but excluded from the compare that decides
42134
42398
  * whether persisting is worth a SQLite commit. */
42135
42399
  volatileStateFields: ["lastChangedAt"]
@@ -43007,6 +43271,33 @@ var NcRuleTargetSchema = object({
43007
43271
  params: record(string(), unknown()).optional()
43008
43272
  });
43009
43273
  /**
43274
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43275
+ *
43276
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43277
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43278
+ * to the zone that fired the rule) and renders it once at send time:
43279
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43280
+ * colour and every OTHER track visible at that instant outlined thin, each
43281
+ * labelled with class and confidence ("dog 87%").
43282
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43283
+ * - `clean` — the whole scene with nothing drawn on it.
43284
+ * - `none` — no picture.
43285
+ *
43286
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43287
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43288
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43289
+ * ship a crop on one event and a boxed scene on the next depending on which
43290
+ * stored kind had landed.
43291
+ */
43292
+ var NcMediaImageSchema = _enum([
43293
+ "scene-boxes",
43294
+ "crop",
43295
+ "clean",
43296
+ "none"
43297
+ ]);
43298
+ /**
43299
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43300
+ *
43010
43301
  * Media attachment policy (P1 still-image subset).
43011
43302
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43012
43303
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43020,6 +43311,8 @@ var NcRuleTargetSchema = object({
43020
43311
  * - `none` — no attachment.
43021
43312
  */
43022
43313
  /**
43314
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43315
+ *
43023
43316
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43024
43317
  * conflate it with the selection strategy and betray the request: asking for
43025
43318
  * the clean scene frame on an object-event owner used to start at
@@ -43048,16 +43341,29 @@ var NcMediaFrameSchema = _enum([
43048
43341
  */
43049
43342
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43050
43343
  var NcMediaPolicySchema = object({
43344
+ /**
43345
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43346
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43347
+ * triple below, at load and at every write, and the store keeps only this.
43348
+ */
43349
+ image: NcMediaImageSchema.optional(),
43350
+ /**
43351
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43352
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43353
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43354
+ * Replaces `zoneCrop`.
43355
+ */
43356
+ showTriggerZone: boolean().optional(),
43357
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43051
43358
  attach: _enum([
43052
43359
  "best",
43053
43360
  "best-matching",
43054
43361
  "keyFrame",
43055
43362
  "none"
43056
- ]).default("best"),
43057
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43363
+ ]).optional(),
43364
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43058
43365
  frame: NcMediaFrameSchema.optional(),
43059
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43060
- * "show me the ZONE", not the whole scene or the subject crop. */
43366
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43061
43367
  zoneCrop: boolean().optional(),
43062
43368
  /**
43063
43369
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43229,7 +43535,9 @@ var NcRuleInputSchema = object({
43229
43535
  * targets.
43230
43536
  */
43231
43537
  targetUsers: array(string()).optional(),
43232
- media: NcMediaPolicySchema.default({ attach: "best" }),
43538
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43539
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43540
+ media: NcMediaPolicySchema.default({}),
43233
43541
  throttle: NcThrottleSchema.default({
43234
43542
  cooldownSec: 60,
43235
43543
  scope: "rule-device"
@@ -44166,13 +44474,37 @@ var NcAlarmModeOpeningsSchema = object({
44166
44474
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44167
44475
  unknown: array(number().int())
44168
44476
  });
44477
+ /**
44478
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44479
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44480
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44481
+ * never looks fully armed (D62: off must never look like broken).
44482
+ */
44483
+ var NcAlarmInputBypassViewSchema = object({
44484
+ ruleId: string(),
44485
+ /** The rule's current name (its frozen name when the rule is gone). */
44486
+ ruleName: string(),
44487
+ /** The input: the sensor of the match, else its camera. */
44488
+ deviceId: number().int(),
44489
+ /** The input's current name. */
44490
+ name: string(),
44491
+ /** When it was bypassed (ms epoch). */
44492
+ since: number(),
44493
+ /** Triggers from this input dropped since. */
44494
+ dropped: number().int().min(0)
44495
+ });
44169
44496
  var NcAlarmLiveSchema = object({
44170
44497
  state: AlarmStateSchema,
44171
44498
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44172
44499
  targetMode: AlarmArmModeSchema.nullable(),
44173
44500
  availableModes: array(AlarmArmModeSchema),
44174
44501
  openings: array(NcAlarmModeOpeningsSchema),
44175
- exclusions: array(NcAlarmExclusionViewSchema)
44502
+ exclusions: array(NcAlarmExclusionViewSchema),
44503
+ /**
44504
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44505
+ * Defaulted so an older hub answer still parses (as "none known").
44506
+ */
44507
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44176
44508
  });
44177
44509
  var NcAlarmConfigSchema = object({
44178
44510
  /**
@@ -55404,9 +55736,11 @@ var connectivityCapability = {
55404
55736
  */
55405
55737
  durability: "restored",
55406
55738
  /**
55407
- * History (D850): none — duplicates device-status.online (one authority for availability).
55739
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
55740
+ * is the upstream entity's own link (a HA connectivity sensor), not the
55741
+ * device's reachability, which stays `device-status.online`.
55408
55742
  */
55409
- history: "none",
55743
+ history: { fields: { connected: { kind: "boolean" } } },
55410
55744
  /** Clock fields: written, but excluded from the compare that decides
55411
55745
  * whether persisting is worth a SQLite commit. */
55412
55746
  volatileStateFields: ["lastChangedAt"]
@@ -56230,11 +56564,22 @@ var dishwasherCapability = {
56230
56564
  },
56231
56565
  runtimeState: DishwasherStatusSchema,
56232
56566
  durability: "session",
56233
- history: { fields: { progressPercent: {
56234
- kind: "gauge",
56235
- unit: "%",
56236
- deadband: 2
56237
- } } }
56567
+ history: { fields: {
56568
+ progressPercent: {
56569
+ kind: "gauge",
56570
+ unit: "%",
56571
+ deadband: 2
56572
+ },
56573
+ state: { kind: "enum" },
56574
+ operationState: { kind: "enum" },
56575
+ remainingSeconds: {
56576
+ kind: "gauge",
56577
+ unit: "s",
56578
+ minIntervalMs: 6e4
56579
+ },
56580
+ doorOpen: { kind: "boolean" },
56581
+ powerOn: { kind: "boolean" }
56582
+ } }
56238
56583
  };
56239
56584
  var DoorbellStatusSchema = object({
56240
56585
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56351,9 +56696,15 @@ var enumSensorCapability = {
56351
56696
  */
56352
56697
  durability: "restored",
56353
56698
  /**
56354
- * History (D850): none — text/enum state has no history (non-goal).
56699
+ * History (D850): the value as an `enum` series (an appliance's program or
56700
+ * operation state, an HVAC action). The option set is per device, so the
56701
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
56702
+ * `format` carries a timestamp, not a state, and is not recorded.
56355
56703
  */
56356
- history: "none",
56704
+ history: { fields: { value: {
56705
+ kind: "enum",
56706
+ skipWhenSet: "format"
56707
+ } } },
56357
56708
  /** Clock fields: written, but excluded from the compare that decides
56358
56709
  * whether persisting is worth a SQLite commit. */
56359
56710
  volatileStateFields: ["lastFetchedAt"]
@@ -58327,9 +58678,10 @@ var lockControlCapability = {
58327
58678
  */
58328
58679
  durability: "restored",
58329
58680
  /**
58330
- * History (D850): none — enum state; lock events belong in the events ledger.
58681
+ * History (D850): the lock's state as an `enum` series — change-only, no
58682
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58331
58683
  */
58332
- history: "none",
58684
+ history: { fields: { state: { kind: "enum" } } },
58333
58685
  /** Clock fields: written, but excluded from the compare that decides
58334
58686
  * whether persisting is worth a SQLite commit. */
58335
58687
  volatileStateFields: ["lastChangedAt"]
@@ -58503,9 +58855,18 @@ var mediaPlayerCapability = {
58503
58855
  */
58504
58856
  durability: "session",
58505
58857
  /**
58506
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
58858
+ * History (D850): volume (a level an operator or an automation sets; the
58859
+ * default 10 s floor folds a slider drag into its end value) and mute.
58860
+ * `positionMs` is not recorded: it moves continuously while playing.
58507
58861
  */
58508
- history: "none"
58862
+ history: { fields: {
58863
+ volumeLevel: {
58864
+ kind: "gauge",
58865
+ unit: "%",
58866
+ deadband: 1
58867
+ },
58868
+ isMuted: { kind: "boolean" }
58869
+ } }
58509
58870
  };
58510
58871
  /**
58511
58872
  * mesh-network — collection cap for mesh-VPN providers.
@@ -64062,9 +64423,29 @@ var streamParamsCapability = {
64062
64423
  */
64063
64424
  durability: "restored",
64064
64425
  /**
64065
- * History (D850): none — encoder configuration.
64426
+ * History (D850): the configured bitrate and frame rate of the main and sub
64427
+ * profiles. Configuration, so change-only on the default floor: a point is an
64428
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64429
+ * quality over time must show.
64066
64430
  */
64067
- history: "none",
64431
+ history: { fields: {
64432
+ "main.bitrate": {
64433
+ kind: "gauge",
64434
+ unit: "kbps"
64435
+ },
64436
+ "main.framerate": {
64437
+ kind: "gauge",
64438
+ unit: "fps"
64439
+ },
64440
+ "sub.bitrate": {
64441
+ kind: "gauge",
64442
+ unit: "kbps"
64443
+ },
64444
+ "sub.framerate": {
64445
+ kind: "gauge",
64446
+ unit: "fps"
64447
+ }
64448
+ } },
64068
64449
  /** Clock fields: written, but excluded from the compare that decides
64069
64450
  * whether persisting is worth a SQLite commit. */
64070
64451
  volatileStateFields: ["lastFetchedAt"]
@@ -65097,26 +65478,6 @@ var ApiKeySummarySchema = object({
65097
65478
  createdAt: number(),
65098
65479
  lastUsedAt: number().optional()
65099
65480
  });
65100
- var ScopedTokenSummarySchema = object({
65101
- id: string(),
65102
- userId: string(),
65103
- name: string(),
65104
- tokenPrefix: string(),
65105
- scopes: array(TokenScopeSchema),
65106
- expiresAt: number().nullish(),
65107
- lastUsedAt: number().nullish(),
65108
- createdAt: number()
65109
- });
65110
- var CreateScopedTokenInputSchema = object({
65111
- userId: string(),
65112
- name: string(),
65113
- scopes: array(TokenScopeSchema),
65114
- expiresAt: number().optional()
65115
- });
65116
- var CreateScopedTokenResultSchema = object({
65117
- token: string(),
65118
- record: ScopedTokenSummarySchema
65119
- });
65120
65481
  var OauthSessionSummarySchema = object({
65121
65482
  id: string(),
65122
65483
  userId: string(),
@@ -65138,11 +65499,11 @@ var TotpStatusSchema = object({
65138
65499
  confirmedAt: number().nullable()
65139
65500
  });
65140
65501
  /**
65141
- * user-management — singleton capability for user accounts, API keys,
65142
- * and scoped tokens.
65502
+ * user-management — singleton capability for user accounts and the
65503
+ * legacy API-key rows.
65143
65504
  *
65144
65505
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
65145
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
65506
+ * — the subset check on `setUserScopes` is moot
65146
65507
  * because non-admins never reach these. If/when we open non-admin
65147
65508
  * delegation, structural caller-scope subset check goes inside the
65148
65509
  * provider.
@@ -65199,15 +65560,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
65199
65560
  kind: "mutation",
65200
65561
  auth: "admin",
65201
65562
  access: "delete"
65202
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
65203
- kind: "mutation",
65204
- auth: "admin",
65205
- access: "create"
65206
- }), method(object({ id: string() }), object({ success: literal(true) }), {
65207
- kind: "mutation",
65208
- auth: "admin",
65209
- access: "delete"
65210
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
65563
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
65211
65564
  kind: "mutation",
65212
65565
  auth: "admin",
65213
65566
  access: "create"
@@ -67468,6 +67821,15 @@ var BaseDevice = class {
67468
67821
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
67469
67822
  * with a typed cast.
67470
67823
  *
67824
+ * Answer what you KNOW. A plain array is read as the complete list only
67825
+ * while this device is `online` and probed; return
67826
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
67827
+ * now (no credentials, parent not connected, a failed or partial read) —
67828
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
67829
+ * to say "connected, and this is the complete list" explicitly. A shrink is
67830
+ * deleted only after a second agreeing complete read on a later probe (D49;
67831
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
67832
+ *
67471
67833
  * Default: no children.
67472
67834
  */
67473
67835
  getAccessoryChildren() {
@@ -71301,7 +71663,7 @@ Object.freeze({
71301
71663
  capName: "llm",
71302
71664
  capScope: "system",
71303
71665
  addonId: null,
71304
- access: "view"
71666
+ access: "create"
71305
71667
  },
71306
71668
  "llm.listNodeModels": {
71307
71669
  capName: "llm",
@@ -71603,7 +71965,19 @@ Object.freeze({
71603
71965
  addonId: null,
71604
71966
  access: "view"
71605
71967
  },
71606
- "logDestination.query": {
71968
+ "logDestination.cancelRead": {
71969
+ capName: "log-destination",
71970
+ capScope: "system",
71971
+ addonId: null,
71972
+ access: "create"
71973
+ },
71974
+ "logDestination.describeRead": {
71975
+ capName: "log-destination",
71976
+ capScope: "system",
71977
+ addonId: null,
71978
+ access: "view"
71979
+ },
71980
+ "logDestination.read": {
71607
71981
  capName: "log-destination",
71608
71982
  capScope: "system",
71609
71983
  addonId: null,
@@ -75965,12 +76339,6 @@ Object.freeze({
75965
76339
  addonId: null,
75966
76340
  access: "create"
75967
76341
  },
75968
- "userManagement.createScopedToken": {
75969
- capName: "user-management",
75970
- capScope: "system",
75971
- addonId: null,
75972
- access: "create"
75973
- },
75974
76342
  "userManagement.createUser": {
75975
76343
  capName: "user-management",
75976
76344
  capScope: "system",
@@ -76019,12 +76387,6 @@ Object.freeze({
76019
76387
  addonId: null,
76020
76388
  access: "view"
76021
76389
  },
76022
- "userManagement.listScopedTokens": {
76023
- capName: "user-management",
76024
- capScope: "system",
76025
- addonId: null,
76026
- access: "view"
76027
- },
76028
76390
  "userManagement.listUsers": {
76029
76391
  capName: "user-management",
76030
76392
  capScope: "system",
@@ -76079,12 +76441,6 @@ Object.freeze({
76079
76441
  addonId: null,
76080
76442
  access: "delete"
76081
76443
  },
76082
- "userManagement.revokeScopedToken": {
76083
- capName: "user-management",
76084
- capScope: "system",
76085
- addonId: null,
76086
- access: "delete"
76087
- },
76088
76444
  "userManagement.setupTotp": {
76089
76445
  capName: "user-management",
76090
76446
  capScope: "system",
@@ -76115,12 +76471,6 @@ Object.freeze({
76115
76471
  addonId: null,
76116
76472
  access: "view"
76117
76473
  },
76118
- "userManagement.validateScopedToken": {
76119
- capName: "user-management",
76120
- capScope: "system",
76121
- addonId: null,
76122
- access: "view"
76123
- },
76124
76474
  "userManagement.verifyTotp": {
76125
76475
  capName: "user-management",
76126
76476
  capScope: "system",
@@ -77840,6 +78190,11 @@ Object.freeze({
77840
78190
  form: "single",
77841
78191
  optional: false
77842
78192
  }],
78193
+ "logDestination.read": [{
78194
+ name: "deviceId",
78195
+ form: "single",
78196
+ optional: true
78197
+ }],
77843
78198
  "mediaPlayer.getStatus": [{
77844
78199
  name: "deviceId",
77845
78200
  form: "single",