@camstack/addon-provider-hikvision 1.2.156 → 1.2.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +496 -141
  2. package/dist/addon.mjs +496 -141
  3. package/package.json +1 -1
package/dist/addon.mjs CHANGED
@@ -5428,7 +5428,7 @@ var ZodIssueCode = {
5428
5428
  var ZodFirstPartyTypeKind;
5429
5429
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5430
5430
  //#endregion
5431
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5431
+ //#region ../types/dist/sleep-BSuCCFjf.mjs
5432
5432
  /**
5433
5433
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5434
5434
  * window to float samples (D455).
@@ -7811,9 +7811,9 @@ function normalizeAddonInitResult(result) {
7811
7811
  return result;
7812
7812
  }
7813
7813
  /**
7814
- * The share-view scope kinds a `csv_*` share token can carry. The hub mints
7815
- * and validates them (`share-token.service.ts` builds its enum from this
7816
- * list); a data plane names the kinds it ACCEPTS in `share`.
7814
+ * The share-view scope kinds a share-link token can carry. The hub mints
7815
+ * and validates them (`ShareViewGrantSchema` builds its
7816
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
7817
7817
  */
7818
7818
  var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7819
7819
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
@@ -12820,7 +12820,7 @@ var ConvertResultSchema = object({
12820
12820
  * `super_admin` — collapsed onto the single boolean because every
12821
12821
  * non-admin caller is governed by the same scope-check rules; the
12822
12822
  * distinction was only ever used to route role-specific procedures
12823
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
12823
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
12824
12824
  * with `isAdmin: false` + an explicit scope list.
12825
12825
  */
12826
12826
  /** Per-method access flavour. Materialised on every cap method via codegen. */
@@ -13009,10 +13009,12 @@ var AddonRoutesScopeSchema = object({
13009
13009
  type: literal("addon-routes"),
13010
13010
  access: array(MethodAccessSchema).min(1)
13011
13011
  });
13012
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
13012
13013
  var CredentialScopeSchema = union([
13013
13014
  literal("*"),
13014
13015
  ShareViewScopeSchema,
13015
13016
  AddonRoutesScopeSchema,
13017
+ PreferencesSelfScopeSchema,
13016
13018
  TokenScopeSchema
13017
13019
  ]);
13018
13020
  object({
@@ -13021,6 +13023,55 @@ object({
13021
13023
  jti: string().min(16),
13022
13024
  scopes: array(CredentialScopeSchema).min(1)
13023
13025
  });
13026
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
13027
+ /** A namespace's value: a JSON object, opaque to the hub. */
13028
+ var PreferenceValueSchema = record(string(), unknown());
13029
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
13030
+ /** A stored row, as the owner reads it. */
13031
+ var PreferenceRowSchema = object({
13032
+ namespace: PreferenceNamespaceSchema,
13033
+ value: PreferenceValueSchema,
13034
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
13035
+ revision: number().int().positive(),
13036
+ updatedAt: number().int(),
13037
+ /** The client id the last writer sent; `null` when it sent none. */
13038
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
13039
+ });
13040
+ object({
13041
+ /** Absent: every namespace the caller holds. */
13042
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
13043
+ object({ rows: array(PreferenceRowSchema) });
13044
+ object({
13045
+ namespace: PreferenceNamespaceSchema,
13046
+ value: PreferenceValueSchema,
13047
+ /**
13048
+ * The revision the edit was based on. Absent: last write wins. `0`: the
13049
+ * namespace must not exist yet. Any other value that is not the current
13050
+ * revision answers `conflict` and writes nothing.
13051
+ */
13052
+ baseRevision: number().int().nonnegative().optional(),
13053
+ deviceId: PreferenceDeviceIdSchema.optional()
13054
+ });
13055
+ discriminatedUnion("status", [object({
13056
+ status: literal("saved"),
13057
+ row: PreferenceRowSchema
13058
+ }), object({
13059
+ status: literal("conflict"),
13060
+ current: PreferenceRowSchema.nullable()
13061
+ })]);
13062
+ object({ namespace: PreferenceNamespaceSchema });
13063
+ object({
13064
+ /** `false` when the namespace did not exist. */
13065
+ deleted: boolean() });
13066
+ object({
13067
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
13068
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
13069
+ object({
13070
+ /** Every row whose revision differs from the client's, and every row it did not list. */
13071
+ rows: array(PreferenceRowSchema),
13072
+ /** Namespaces the client listed that no longer exist. */
13073
+ deleted: array(PreferenceNamespaceSchema)
13074
+ });
13024
13075
  _enum(["new-session", "step-up"]);
13025
13076
  /** The languages the hub's app landing pages are written in (D858). */
13026
13077
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -17274,7 +17325,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
17274
17325
  kind: literal("node"),
17275
17326
  nodeId: string().min(1)
17276
17327
  })]);
17328
+ /**
17329
+ * `enum` stores a STATE as the ordinal of its value in the series' value list
17330
+ * (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
17331
+ * meaning); a rollup keeps the time spent in each state (`states`).
17332
+ */
17277
17333
  var DeviceHistoryKindSchema = _enum([
17334
+ "gauge",
17335
+ "counter",
17336
+ "boolean",
17337
+ "enum"
17338
+ ]);
17339
+ /** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
17340
+ var DeviceHistoryProducerKindSchema = _enum([
17278
17341
  "gauge",
17279
17342
  "counter",
17280
17343
  "boolean"
@@ -17311,7 +17374,13 @@ var SeriesInfoSchema = object({
17311
17374
  /** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
17312
17375
  unit: string().nullable(),
17313
17376
  displayName: string(),
17314
- source: _enum(["cap", "addon"]),
17377
+ source: _enum([
17378
+ "cap",
17379
+ "addon",
17380
+ "derived"
17381
+ ]),
17382
+ /** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
17383
+ values: array(string()).readonly().nullable(),
17315
17384
  firstTs: number(),
17316
17385
  lastTs: number()
17317
17386
  });
@@ -17325,17 +17394,31 @@ var QueryPointSchema = object({
17325
17394
  twMean: number().nullable(),
17326
17395
  min: number(),
17327
17396
  max: number(),
17328
- /** `null` is unknown, never zero (D393). */
17329
- last: number().nullable()
17397
+ /** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
17398
+ last: number().nullable(),
17399
+ /**
17400
+ * The increase over the point: a `counter`'s growth since the previous point
17401
+ * or bucket (a drop is a reset, counted from zero), and for
17402
+ * {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
17403
+ * every other kind, and when it cannot be known.
17404
+ */
17405
+ delta: number().nullable(),
17406
+ /** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
17407
+ state: string().nullable(),
17408
+ /** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
17409
+ states: record(string(), number()).nullable()
17330
17410
  });
17331
17411
  var QuerySeriesSchema = object({
17332
17412
  scope: string(),
17333
17413
  /** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
17334
17414
  before: object({
17335
17415
  t: number(),
17336
- value: number().nullable()
17416
+ value: number().nullable(),
17417
+ state: string().nullable()
17337
17418
  }).nullable(),
17338
- points: array(QueryPointSchema).readonly()
17419
+ points: array(QueryPointSchema).readonly(),
17420
+ /** A derived key: the stored key its points were computed from; `null` for a stored series. */
17421
+ derivedFrom: string().nullable()
17339
17422
  });
17340
17423
  /** The window part of a query, shared by the device and node forms. */
17341
17424
  var QueryWindowShape = {
@@ -17351,6 +17434,23 @@ var QueryResultSchema = object({
17351
17434
  series: array(QuerySeriesSchema).readonly(),
17352
17435
  truncated: boolean()
17353
17436
  });
17437
+ /** One read of a batch: a device's key or a node's key (exactly one subject). */
17438
+ var QueryManyItemSchema = union([object({
17439
+ deviceId: number().int(),
17440
+ key: string(),
17441
+ scope: string().optional()
17442
+ }), object({
17443
+ forNodeId: string().min(1),
17444
+ key: string(),
17445
+ scope: string().optional()
17446
+ })]);
17447
+ var QueryManyEntrySchema = discriminatedUnion("ok", [object({
17448
+ ok: literal(true),
17449
+ result: QueryResultSchema
17450
+ }), object({
17451
+ ok: literal(false),
17452
+ error: string()
17453
+ })]);
17354
17454
  var TierStatusSchema = object({
17355
17455
  tier: DeviceHistoryResolutionSchema,
17356
17456
  /** `null` until the first background count answered. */
@@ -17406,16 +17506,22 @@ var DeviceHistoryStatusSchema = object({
17406
17506
  lastRefreshAt: number().nullable()
17407
17507
  })
17408
17508
  });
17409
- method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ nodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17509
+ method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
17410
17510
  deviceId: number().int(),
17411
17511
  ...QueryWindowShape
17412
17512
  }), QueryResultSchema), method(object({
17413
- nodeId: string().min(1),
17513
+ forNodeId: string().min(1),
17414
17514
  ...QueryWindowShape
17415
17515
  }), QueryResultSchema, { auth: "admin" }), method(object({
17516
+ items: array(QueryManyItemSchema).min(1).max(24),
17517
+ from: QueryWindowShape.from,
17518
+ to: QueryWindowShape.to,
17519
+ resolution: QueryWindowShape.resolution,
17520
+ maxPoints: QueryWindowShape.maxPoints
17521
+ }), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
17416
17522
  name: string().regex(/^[a-z0-9-]+$/),
17417
17523
  subjectKind: _enum(["device", "node"]),
17418
- kind: DeviceHistoryKindSchema,
17524
+ kind: DeviceHistoryProducerKindSchema,
17419
17525
  unit: string().optional(),
17420
17526
  displayName: string().min(1),
17421
17527
  ingest: _enum(["points", "buckets"])
@@ -40329,38 +40435,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40329
40435
  auth: "admin",
40330
40436
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40331
40437
  });
40438
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
40439
+ /** What a model (or, by default, every model of a kind) can do. */
40440
+ var LlmModelFeaturesSchema = object({
40441
+ vision: boolean(),
40442
+ tools: boolean(),
40443
+ streaming: boolean()
40444
+ });
40445
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
40446
+ var LlmModelInfoSchema = object({
40447
+ id: string(),
40448
+ label: string().optional(),
40449
+ contextLength: number().int().positive().optional(),
40450
+ features: LlmModelFeaturesSchema.partial().optional()
40451
+ });
40332
40452
  /**
40333
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40334
- * methods concat-fan across providers; single-row methods route to ONE
40335
- * provider by the `addonId` in the call input (the notification-output
40336
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
40337
- * (hub-placed); the cap stays open for future providers.
40338
- *
40339
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
40340
- * `apiKey` is a password field — providers REDACT it on read and merge on
40341
- * write; a stored key NEVER round-trips to a client.
40453
+ * The provider-specific part of a profile, validated by the provider that owns
40454
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
40455
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
40456
+ * keychain, never in the row, and reads back as the redaction marker.
40342
40457
  */
40343
- var LlmProfileKindSchema = _enum([
40344
- "openai-compatible",
40345
- "openai",
40346
- "anthropic",
40347
- "google",
40348
- "managed-local",
40349
- "apple-foundation"
40350
- ]);
40458
+ var LlmProviderConfigSchema = record(string(), unknown());
40351
40459
  var LlmProfileSchema = object({
40352
40460
  id: string(),
40353
40461
  name: string(),
40462
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
40354
40463
  kind: LlmProfileKindSchema,
40355
40464
  /** Stamped by the provider — keeps the fanned catalog routable. */
40356
40465
  addonId: string(),
40357
40466
  enabled: boolean(),
40358
40467
  /** Vendor model id, or the managed runtime's loaded model. */
40359
40468
  model: string(),
40360
- /** Required for openai-compatible; override for cloud kinds. */
40361
- baseUrl: string().optional(),
40362
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
40363
- apiKey: string().optional(),
40364
40469
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
40365
40470
  * degraded to text — that shipped once and produced a confident answer to a
40366
40471
  * question about a picture nobody sent. */
@@ -40368,15 +40473,11 @@ var LlmProfileSchema = object({
40368
40473
  temperature: number().min(0).max(2).optional(),
40369
40474
  /** Nucleus sampling. Every wire we speak has it. */
40370
40475
  topP: number().min(0).max(1).optional(),
40371
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
40372
- * wire does, and the client drops it there (measured: the request body gets
40373
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
40374
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
40476
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
40477
+ * field in its editor only when its descriptor lists it in `profileFields`. */
40375
40478
  topK: number().int().positive().optional(),
40376
40479
  maxTokens: number().int().positive().optional(),
40377
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
40378
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
40379
- * the model with, so it is the one field that changes a PROCESS. */
40480
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
40380
40481
  contextLength: number().int().positive().optional(),
40381
40482
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
40382
40483
  * two system prompts fighting is worse than either alone). */
@@ -40402,16 +40503,37 @@ var LlmProfileSchema = object({
40402
40503
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
40403
40504
  * `true` here buys the wiring, not behaviour, until tools are registered. */
40404
40505
  toolsEnabled: boolean().default(false),
40405
- extraHeaders: record(string(), string()).optional(),
40406
- /** kind === 'managed-local' only (spec §4). */
40407
- runtime: ManagedRuntimeConfigSchema.optional(),
40408
- /**
40409
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
40410
- * to configure (no key, no URL, no download; `model` is `apple-system`).
40411
- * `supportsVision` on such a row is stamped by the provider from the node's
40412
- * reported `imageInput`, never taken from the operator (D62).
40413
- */
40414
- appleFoundation: object({ nodeId: string() }).optional()
40506
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
40507
+ providerConfig: LlmProviderConfigSchema.default({})
40508
+ });
40509
+ /**
40510
+ * The common profile fields a kind's editor offers. The editor owns how each
40511
+ * one is drawn; the provider says which of them mean something on its wire.
40512
+ */
40513
+ var LlmProfileFieldSchema = _enum([
40514
+ "temperature",
40515
+ "topP",
40516
+ "topK",
40517
+ "maxTokens",
40518
+ "contextLength",
40519
+ "systemPrompt",
40520
+ "timeoutMs",
40521
+ "connectTimeoutMs",
40522
+ "firstTokenTimeoutMs",
40523
+ "idleTimeoutMs",
40524
+ "retry",
40525
+ "toolsEnabled"
40526
+ ]);
40527
+ /**
40528
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
40529
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
40530
+ * picker: that widget owns the model choice.
40531
+ */
40532
+ var LlmProviderWidgetSchema = object({
40533
+ id: string(),
40534
+ placement: _enum(["connection", "model"]),
40535
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
40536
+ requires: array(string()).optional()
40415
40537
  });
40416
40538
  /** ConfigUISchema tree passed through untyped on the wire (the
40417
40539
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -40420,11 +40542,56 @@ var ConfigSchemaPassthrough$3 = unknown();
40420
40542
  var LlmProfileKindDescriptorSchema = object({
40421
40543
  kind: LlmProfileKindSchema,
40422
40544
  label: string(),
40545
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
40423
40546
  icon: string(),
40424
40547
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
40425
40548
  addonId: string(),
40426
- configSchema: ConfigSchemaPassthrough$3
40549
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
40550
+ connectionSchema: ConfigSchemaPassthrough$3,
40551
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
40552
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
40553
+ /** The kind's defaults; a model from `listModels` may override any of them. */
40554
+ features: LlmModelFeaturesSchema,
40555
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
40556
+ visionEditable: boolean(),
40557
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
40558
+ modelCatalog: _enum([
40559
+ "fetch",
40560
+ "static",
40561
+ "none"
40562
+ ]),
40563
+ staticModels: array(LlmModelInfoSchema).optional(),
40564
+ /** The common fields that mean something on this kind's wire. */
40565
+ profileFields: array(LlmProfileFieldSchema),
40566
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
40567
+ });
40568
+ /**
40569
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
40570
+ * (the editor's form); with `profileId` too, a secret the draft leaves
40571
+ * untouched (absent or the redaction marker) is resolved server-side from the
40572
+ * stored profile — the browser never receives it.
40573
+ */
40574
+ var LlmListModelsInputSchema = object({
40575
+ addonId: string(),
40576
+ kind: LlmProfileKindSchema,
40577
+ profileId: string().optional(),
40578
+ connection: LlmProviderConfigSchema.optional()
40427
40579
  });
40580
+ var LlmListModelsErrorCodeSchema = _enum([
40581
+ "auth",
40582
+ "network",
40583
+ "unsupported",
40584
+ "invalid"
40585
+ ]);
40586
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
40587
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
40588
+ ok: literal(true),
40589
+ models: array(LlmModelInfoSchema)
40590
+ }), object({
40591
+ ok: literal(false),
40592
+ code: LlmListModelsErrorCodeSchema,
40593
+ message: string()
40594
+ })]);
40428
40595
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
40429
40596
  var LlmDefaultSchema = object({
40430
40597
  selector: LlmDefaultSelectorSchema,
@@ -40524,7 +40691,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
40524
40691
  kind: "mutation",
40525
40692
  auth: "admin",
40526
40693
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40527
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
40694
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
40695
+ kind: "mutation",
40696
+ auth: "admin"
40697
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
40528
40698
  selector: LlmDefaultSelectorSchema,
40529
40699
  profileId: string().nullable()
40530
40700
  }), _void(), {
@@ -40692,14 +40862,106 @@ var LogEntrySchema = object({
40692
40862
  meta: record(string(), unknown()).optional(),
40693
40863
  tags: record(string(), string()).optional()
40694
40864
  });
40695
- method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
40696
- scope: array(string()).optional(),
40865
+ /**
40866
+ * A history READ against one destination (D898).
40867
+ *
40868
+ * Every filter is applied by the PROVIDER, before the limit — a filter the
40869
+ * browser applied after the limit is what made a rare device's lines
40870
+ * unreachable behind a busy one's. `before` / `after` are cursors the provider
40871
+ * minted (opaque to everyone else): a file position for the rotated files, a
40872
+ * nanosecond timestamp for Loki.
40873
+ *
40874
+ * A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
40875
+ * store answers `done: false` with the cursor it reached and the bytes it
40876
+ * scanned, and the caller decides whether to go on. That is what makes a long
40877
+ * scan show progress and stop when asked — `cancelRead` ends the slice in
40878
+ * flight, and not asking for the next slice ends the scan.
40879
+ */
40880
+ var LogReadQuerySchema = object({
40881
+ /** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
40882
+ requestId: string().min(1).max(64).optional(),
40883
+ /** The device the line is about (`tags.deviceId`, numeric). */
40884
+ deviceId: number().int().optional(),
40885
+ /**
40886
+ * The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
40887
+ * match. Not `addonId`: a cap router reads that name as "which provider".
40888
+ */
40889
+ fromAddonId: string().min(1).max(200).optional(),
40890
+ /**
40891
+ * The emitting node: matches the agent that emitted the line, the node
40892
+ * itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
40893
+ * semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
40894
+ * name as "which node's provider".
40895
+ */
40896
+ fromNodeId: string().min(1).max(200).optional(),
40897
+ /** Any other tag, exact match (AND). */
40898
+ tags: record(string(), union([string(), number()])).optional(),
40899
+ /** Severity FLOOR: this level and above. */
40697
40900
  level: LogLevelSchema.optional(),
40698
- since: date().optional(),
40699
- until: date().optional(),
40700
- limit: number().optional(),
40701
- tags: record(string(), string()).optional()
40702
- }), array(LogEntrySchema).readonly());
40901
+ /** Case-insensitive substring over message, scope, tag values and meta values. */
40902
+ text: string().min(1).max(200).optional(),
40903
+ /** Epoch ms, inclusive. */
40904
+ since: number().optional(),
40905
+ /** Epoch ms, inclusive. */
40906
+ until: number().optional(),
40907
+ /** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
40908
+ before: string().min(1).max(1024).optional(),
40909
+ /** Newer than this cursor (exclusive). */
40910
+ after: string().min(1).max(1024).optional(),
40911
+ limit: number().int().min(1).max(1e3).optional(),
40912
+ /** Wall-clock bound of this slice. The provider caps it. */
40913
+ budgetMs: number().int().min(50).max(1e4).optional()
40914
+ });
40915
+ var LogReadResultSchema = object({
40916
+ /** Newest first. */
40917
+ entries: array(object({
40918
+ /** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
40919
+ id: string().optional(),
40920
+ /** Epoch ms. */
40921
+ timestamp: number(),
40922
+ level: LogLevelSchema,
40923
+ scope: string().optional(),
40924
+ message: string(),
40925
+ tags: record(string(), union([string(), number()])).optional(),
40926
+ meta: record(string(), unknown()).optional()
40927
+ })),
40928
+ /** Pass as `before` for the next older page; null when nothing older exists. */
40929
+ nextBefore: string().nullable(),
40930
+ /** Pass as `after` to read what arrived since; null when unknown. */
40931
+ nextAfter: string().nullable(),
40932
+ /** Bytes this slice read (files) or received (remote). Progress, not a promise. */
40933
+ scannedBytes: number().int().nonnegative(),
40934
+ /**
40935
+ * True when the scan in this direction reached the end of the store.
40936
+ * False with fewer than `limit` entries means the budget ran out first —
40937
+ * call again with `nextBefore` to go on.
40938
+ */
40939
+ done: boolean(),
40940
+ /** True when `cancelRead` ended this slice early. */
40941
+ cancelled: boolean().optional()
40942
+ });
40943
+ var LogReadCapabilitiesSchema = object({
40944
+ /** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
40945
+ readable: boolean(),
40946
+ /** Why not, when `readable` is false — rendered next to the source. */
40947
+ reason: string().nullable(),
40948
+ /** Filters the provider applies itself. A false one is applied by nobody. */
40949
+ filters: object({
40950
+ deviceId: boolean(),
40951
+ addonId: boolean(),
40952
+ nodeId: boolean(),
40953
+ tags: boolean(),
40954
+ level: boolean(),
40955
+ text: boolean(),
40956
+ timeRange: boolean()
40957
+ }),
40958
+ /** How far back the store reaches, when the provider knows (days). */
40959
+ retentionDays: number().nullable()
40960
+ });
40961
+ 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() }), {
40962
+ kind: "mutation",
40963
+ auth: "admin"
40964
+ });
40703
40965
  /**
40704
40966
  * `login-method` — collection cap through which auth addons contribute
40705
40967
  * their pre-auth login surfaces to the login page. This is the SINGLE,
@@ -42417,9 +42679,11 @@ var alarmPanelCapability = {
42417
42679
  */
42418
42680
  durability: "restored",
42419
42681
  /**
42420
- * History (D850): none — enum state; arm/disarm history belongs in the events ledger.
42682
+ * History (D850): the panel's lifecycle state as an `enum` series —
42683
+ * change-only, no floor, so an `arming -> pending -> triggered` sequence of a
42684
+ * few seconds keeps every step. Who armed it stays in the events ledger.
42421
42685
  */
42422
- history: "none",
42686
+ history: { fields: { state: { kind: "enum" } } },
42423
42687
  /** Clock fields: written, but excluded from the compare that decides
42424
42688
  * whether persisting is worth a SQLite commit. */
42425
42689
  volatileStateFields: ["lastChangedAt"]
@@ -43297,6 +43561,33 @@ var NcRuleTargetSchema = object({
43297
43561
  params: record(string(), unknown()).optional()
43298
43562
  });
43299
43563
  /**
43564
+ * WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
43565
+ *
43566
+ * Every mode starts from the same CLEAN source frame of the trigger moment
43567
+ * (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
43568
+ * to the zone that fired the rule) and renders it once at send time:
43569
+ * - `scene-boxes` — the whole scene, the subject outlined thick in the accent
43570
+ * colour and every OTHER track visible at that instant outlined thin, each
43571
+ * labelled with class and confidence ("dog 87%").
43572
+ * - `crop` — the subject cut out of that frame around its box at that instant.
43573
+ * - `clean` — the whole scene with nothing drawn on it.
43574
+ * - `none` — no picture.
43575
+ *
43576
+ * A mode that cannot be honoured (no box at that instant, a photograph with no
43577
+ * tracked subject) ships `clean` and names the reason in the log, per camera.
43578
+ * It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
43579
+ * ship a crop on one event and a boxed scene on the next depending on which
43580
+ * stored kind had landed.
43581
+ */
43582
+ var NcMediaImageSchema = _enum([
43583
+ "scene-boxes",
43584
+ "crop",
43585
+ "clean",
43586
+ "none"
43587
+ ]);
43588
+ /**
43589
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43590
+ *
43300
43591
  * Media attachment policy (P1 still-image subset).
43301
43592
  * - `best` — the best AVAILABLE subject image at dispatch time (D-3).
43302
43593
  * - `best-matching` — the media that explains WHY the rule fired: a rule
@@ -43310,6 +43601,8 @@ var NcRuleTargetSchema = object({
43310
43601
  * - `none` — no attachment.
43311
43602
  */
43312
43603
  /**
43604
+ * @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
43605
+ *
43313
43606
  * WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
43314
43607
  * conflate it with the selection strategy and betray the request: asking for
43315
43608
  * the clean scene frame on an object-event owner used to start at
@@ -43338,16 +43631,29 @@ var NcMediaFrameSchema = _enum([
43338
43631
  */
43339
43632
  var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
43340
43633
  var NcMediaPolicySchema = object({
43634
+ /**
43635
+ * The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
43636
+ * saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
43637
+ * triple below, at load and at every write, and the store keeps only this.
43638
+ */
43639
+ image: NcMediaImageSchema.optional(),
43640
+ /**
43641
+ * Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
43642
+ * a `crop` never shows it). Valid only on a rule whose trigger is a zone —
43643
+ * `conditions.zones` or an occupancy zone — and refused on save otherwise.
43644
+ * Replaces `zoneCrop`.
43645
+ */
43646
+ showTriggerZone: boolean().optional(),
43647
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43341
43648
  attach: _enum([
43342
43649
  "best",
43343
43650
  "best-matching",
43344
43651
  "keyFrame",
43345
43652
  "none"
43346
- ]).default("best"),
43347
- /** What the still shows. Absent = `cropped` (the historical `best` shape). */
43653
+ ]).optional(),
43654
+ /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43348
43655
  frame: NcMediaFrameSchema.optional(),
43349
- /** Crop the attached still to the rule's condition-zone bbox (padded) —
43350
- * "show me the ZONE", not the whole scene or the subject crop. */
43656
+ /** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
43351
43657
  zoneCrop: boolean().optional(),
43352
43658
  /**
43353
43659
  * Also attach a short GIF cut from the stream broker's clip ring around the
@@ -43519,7 +43825,9 @@ var NcRuleInputSchema = object({
43519
43825
  * targets.
43520
43826
  */
43521
43827
  targetUsers: array(string()).optional(),
43522
- media: NcMediaPolicySchema.default({ attach: "best" }),
43828
+ /** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
43829
+ * detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
43830
+ media: NcMediaPolicySchema.default({}),
43523
43831
  throttle: NcThrottleSchema.default({
43524
43832
  cooldownSec: 60,
43525
43833
  scope: "rule-device"
@@ -44456,13 +44764,37 @@ var NcAlarmModeOpeningsSchema = object({
44456
44764
  /** Covered devices whose state could not be read (D49): neither open nor closed. */
44457
44765
  unknown: array(number().int())
44458
44766
  });
44767
+ /**
44768
+ * One alarm INPUT — a (rule, device) pair — the operator bypassed until the
44769
+ * next disarm ("Bypass this input until disarm" on a trigger notification, or
44770
+ * `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
44771
+ * never looks fully armed (D62: off must never look like broken).
44772
+ */
44773
+ var NcAlarmInputBypassViewSchema = object({
44774
+ ruleId: string(),
44775
+ /** The rule's current name (its frozen name when the rule is gone). */
44776
+ ruleName: string(),
44777
+ /** The input: the sensor of the match, else its camera. */
44778
+ deviceId: number().int(),
44779
+ /** The input's current name. */
44780
+ name: string(),
44781
+ /** When it was bypassed (ms epoch). */
44782
+ since: number(),
44783
+ /** Triggers from this input dropped since. */
44784
+ dropped: number().int().min(0)
44785
+ });
44459
44786
  var NcAlarmLiveSchema = object({
44460
44787
  state: AlarmStateSchema,
44461
44788
  /** The mode being armed into (exit delay) or held; null when disarmed. */
44462
44789
  targetMode: AlarmArmModeSchema.nullable(),
44463
44790
  availableModes: array(AlarmArmModeSchema),
44464
44791
  openings: array(NcAlarmModeOpeningsSchema),
44465
- exclusions: array(NcAlarmExclusionViewSchema)
44792
+ exclusions: array(NcAlarmExclusionViewSchema),
44793
+ /**
44794
+ * Inputs bypassed for the rest of this arm session; cleared on disarm.
44795
+ * Defaulted so an older hub answer still parses (as "none known").
44796
+ */
44797
+ bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
44466
44798
  });
44467
44799
  var NcAlarmConfigSchema = object({
44468
44800
  /**
@@ -55703,9 +56035,11 @@ var connectivityCapability = {
55703
56035
  */
55704
56036
  durability: "restored",
55705
56037
  /**
55706
- * History (D850): none — duplicates device-status.online (one authority for availability).
56038
+ * History (D850): `connected` as a boolean series — change-only, no floor. It
56039
+ * is the upstream entity's own link (a HA connectivity sensor), not the
56040
+ * device's reachability, which stays `device-status.online`.
55707
56041
  */
55708
- history: "none",
56042
+ history: { fields: { connected: { kind: "boolean" } } },
55709
56043
  /** Clock fields: written, but excluded from the compare that decides
55710
56044
  * whether persisting is worth a SQLite commit. */
55711
56045
  volatileStateFields: ["lastChangedAt"]
@@ -56529,11 +56863,22 @@ var dishwasherCapability = {
56529
56863
  },
56530
56864
  runtimeState: DishwasherStatusSchema,
56531
56865
  durability: "session",
56532
- history: { fields: { progressPercent: {
56533
- kind: "gauge",
56534
- unit: "%",
56535
- deadband: 2
56536
- } } }
56866
+ history: { fields: {
56867
+ progressPercent: {
56868
+ kind: "gauge",
56869
+ unit: "%",
56870
+ deadband: 2
56871
+ },
56872
+ state: { kind: "enum" },
56873
+ operationState: { kind: "enum" },
56874
+ remainingSeconds: {
56875
+ kind: "gauge",
56876
+ unit: "s",
56877
+ minIntervalMs: 6e4
56878
+ },
56879
+ doorOpen: { kind: "boolean" },
56880
+ powerOn: { kind: "boolean" }
56881
+ } }
56537
56882
  };
56538
56883
  var DoorbellStatusSchema = object({
56539
56884
  /** Ms epoch of the last press. null = never observed since this provider started. */
@@ -56650,9 +56995,15 @@ var enumSensorCapability = {
56650
56995
  */
56651
56996
  durability: "restored",
56652
56997
  /**
56653
- * History (D850): none — text/enum state has no history (non-goal).
56998
+ * History (D850): the value as an `enum` series (an appliance's program or
56999
+ * operation state, an HVAC action). The option set is per device, so the
57000
+ * value list is LEARNED as values are first seen (bounded). A sensor with a
57001
+ * `format` carries a timestamp, not a state, and is not recorded.
56654
57002
  */
56655
- history: "none",
57003
+ history: { fields: { value: {
57004
+ kind: "enum",
57005
+ skipWhenSet: "format"
57006
+ } } },
56656
57007
  /** Clock fields: written, but excluded from the compare that decides
56657
57008
  * whether persisting is worth a SQLite commit. */
56658
57009
  volatileStateFields: ["lastFetchedAt"]
@@ -58626,9 +58977,10 @@ var lockControlCapability = {
58626
58977
  */
58627
58978
  durability: "restored",
58628
58979
  /**
58629
- * History (D850): none — enum state; lock events belong in the events ledger.
58980
+ * History (D850): the lock's state as an `enum` series — change-only, no
58981
+ * floor: a jam or an unlock lasting seconds is the edge an operator looks for.
58630
58982
  */
58631
- history: "none",
58983
+ history: { fields: { state: { kind: "enum" } } },
58632
58984
  /** Clock fields: written, but excluded from the compare that decides
58633
58985
  * whether persisting is worth a SQLite commit. */
58634
58986
  volatileStateFields: ["lastChangedAt"]
@@ -58802,9 +59154,18 @@ var mediaPlayerCapability = {
58802
59154
  */
58803
59155
  durability: "session",
58804
59156
  /**
58805
- * History (D850): none — `positionMs` moves continuously while playing; volume is transient.
59157
+ * History (D850): volume (a level an operator or an automation sets; the
59158
+ * default 10 s floor folds a slider drag into its end value) and mute.
59159
+ * `positionMs` is not recorded: it moves continuously while playing.
58806
59160
  */
58807
- history: "none"
59161
+ history: { fields: {
59162
+ volumeLevel: {
59163
+ kind: "gauge",
59164
+ unit: "%",
59165
+ deadband: 1
59166
+ },
59167
+ isMuted: { kind: "boolean" }
59168
+ } }
58808
59169
  };
58809
59170
  /**
58810
59171
  * mesh-network — collection cap for mesh-VPN providers.
@@ -64460,9 +64821,29 @@ var streamParamsCapability = {
64460
64821
  */
64461
64822
  durability: "restored",
64462
64823
  /**
64463
- * History (D850): none — encoder configuration.
64824
+ * History (D850): the configured bitrate and frame rate of the main and sub
64825
+ * profiles. Configuration, so change-only on the default floor: a point is an
64826
+ * operator's (or a tuner's) edit, which is exactly what a chart of a stream's
64827
+ * quality over time must show.
64464
64828
  */
64465
- history: "none",
64829
+ history: { fields: {
64830
+ "main.bitrate": {
64831
+ kind: "gauge",
64832
+ unit: "kbps"
64833
+ },
64834
+ "main.framerate": {
64835
+ kind: "gauge",
64836
+ unit: "fps"
64837
+ },
64838
+ "sub.bitrate": {
64839
+ kind: "gauge",
64840
+ unit: "kbps"
64841
+ },
64842
+ "sub.framerate": {
64843
+ kind: "gauge",
64844
+ unit: "fps"
64845
+ }
64846
+ } },
64466
64847
  /** Clock fields: written, but excluded from the compare that decides
64467
64848
  * whether persisting is worth a SQLite commit. */
64468
64849
  volatileStateFields: ["lastFetchedAt"]
@@ -65495,26 +65876,6 @@ var ApiKeySummarySchema = object({
65495
65876
  createdAt: number(),
65496
65877
  lastUsedAt: number().optional()
65497
65878
  });
65498
- var ScopedTokenSummarySchema = object({
65499
- id: string(),
65500
- userId: string(),
65501
- name: string(),
65502
- tokenPrefix: string(),
65503
- scopes: array(TokenScopeSchema),
65504
- expiresAt: number().nullish(),
65505
- lastUsedAt: number().nullish(),
65506
- createdAt: number()
65507
- });
65508
- var CreateScopedTokenInputSchema = object({
65509
- userId: string(),
65510
- name: string(),
65511
- scopes: array(TokenScopeSchema),
65512
- expiresAt: number().optional()
65513
- });
65514
- var CreateScopedTokenResultSchema = object({
65515
- token: string(),
65516
- record: ScopedTokenSummarySchema
65517
- });
65518
65879
  var OauthSessionSummarySchema = object({
65519
65880
  id: string(),
65520
65881
  userId: string(),
@@ -65536,11 +65897,11 @@ var TotpStatusSchema = object({
65536
65897
  confirmedAt: number().nullable()
65537
65898
  });
65538
65899
  /**
65539
- * user-management — singleton capability for user accounts, API keys,
65540
- * and scoped tokens.
65900
+ * user-management — singleton capability for user accounts and the
65901
+ * legacy API-key rows.
65541
65902
  *
65542
65903
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
65543
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
65904
+ * — the subset check on `setUserScopes` is moot
65544
65905
  * because non-admins never reach these. If/when we open non-admin
65545
65906
  * delegation, structural caller-scope subset check goes inside the
65546
65907
  * provider.
@@ -65597,15 +65958,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
65597
65958
  kind: "mutation",
65598
65959
  auth: "admin",
65599
65960
  access: "delete"
65600
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
65601
- kind: "mutation",
65602
- auth: "admin",
65603
- access: "create"
65604
- }), method(object({ id: string() }), object({ success: literal(true) }), {
65605
- kind: "mutation",
65606
- auth: "admin",
65607
- access: "delete"
65608
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
65961
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
65609
65962
  kind: "mutation",
65610
65963
  auth: "admin",
65611
65964
  access: "create"
@@ -67881,6 +68234,15 @@ var BaseDevice = class {
67881
68234
  * Drivers can use the `getProbeFlags()` helper to read the flag bag
67882
68235
  * with a typed cast.
67883
68236
  *
68237
+ * Answer what you KNOW. A plain array is read as the complete list only
68238
+ * while this device is `online` and probed; return
68239
+ * `accessoryChildrenUnknown(reason)` whenever you cannot know the list right
68240
+ * now (no credentials, parent not connected, a failed or partial read) —
68241
+ * the kernel then deletes nothing. Return `accessoryChildrenComplete(list)`
68242
+ * to say "connected, and this is the complete list" explicitly. A shrink is
68243
+ * deleted only after a second agreeing complete read on a later probe (D49;
68244
+ * `packages/system/src/kernel/moleculer/accessory-prune-gate.ts`).
68245
+ *
67884
68246
  * Default: no children.
67885
68247
  */
67886
68248
  getAccessoryChildren() {
@@ -71714,7 +72076,7 @@ Object.freeze({
71714
72076
  capName: "llm",
71715
72077
  capScope: "system",
71716
72078
  addonId: null,
71717
- access: "view"
72079
+ access: "create"
71718
72080
  },
71719
72081
  "llm.listNodeModels": {
71720
72082
  capName: "llm",
@@ -72016,7 +72378,19 @@ Object.freeze({
72016
72378
  addonId: null,
72017
72379
  access: "view"
72018
72380
  },
72019
- "logDestination.query": {
72381
+ "logDestination.cancelRead": {
72382
+ capName: "log-destination",
72383
+ capScope: "system",
72384
+ addonId: null,
72385
+ access: "create"
72386
+ },
72387
+ "logDestination.describeRead": {
72388
+ capName: "log-destination",
72389
+ capScope: "system",
72390
+ addonId: null,
72391
+ access: "view"
72392
+ },
72393
+ "logDestination.read": {
72020
72394
  capName: "log-destination",
72021
72395
  capScope: "system",
72022
72396
  addonId: null,
@@ -76378,12 +76752,6 @@ Object.freeze({
76378
76752
  addonId: null,
76379
76753
  access: "create"
76380
76754
  },
76381
- "userManagement.createScopedToken": {
76382
- capName: "user-management",
76383
- capScope: "system",
76384
- addonId: null,
76385
- access: "create"
76386
- },
76387
76755
  "userManagement.createUser": {
76388
76756
  capName: "user-management",
76389
76757
  capScope: "system",
@@ -76432,12 +76800,6 @@ Object.freeze({
76432
76800
  addonId: null,
76433
76801
  access: "view"
76434
76802
  },
76435
- "userManagement.listScopedTokens": {
76436
- capName: "user-management",
76437
- capScope: "system",
76438
- addonId: null,
76439
- access: "view"
76440
- },
76441
76803
  "userManagement.listUsers": {
76442
76804
  capName: "user-management",
76443
76805
  capScope: "system",
@@ -76492,12 +76854,6 @@ Object.freeze({
76492
76854
  addonId: null,
76493
76855
  access: "delete"
76494
76856
  },
76495
- "userManagement.revokeScopedToken": {
76496
- capName: "user-management",
76497
- capScope: "system",
76498
- addonId: null,
76499
- access: "delete"
76500
- },
76501
76857
  "userManagement.setupTotp": {
76502
76858
  capName: "user-management",
76503
76859
  capScope: "system",
@@ -76528,12 +76884,6 @@ Object.freeze({
76528
76884
  addonId: null,
76529
76885
  access: "view"
76530
76886
  },
76531
- "userManagement.validateScopedToken": {
76532
- capName: "user-management",
76533
- capScope: "system",
76534
- addonId: null,
76535
- access: "view"
76536
- },
76537
76887
  "userManagement.verifyTotp": {
76538
76888
  capName: "user-management",
76539
76889
  capScope: "system",
@@ -78265,6 +78615,11 @@ Object.freeze({
78265
78615
  form: "single",
78266
78616
  optional: false
78267
78617
  }],
78618
+ "logDestination.read": [{
78619
+ name: "deviceId",
78620
+ form: "single",
78621
+ optional: true
78622
+ }],
78268
78623
  "mediaPlayer.getStatus": [{
78269
78624
  name: "deviceId",
78270
78625
  form: "single",