@camstack/addon-post-analysis 1.2.373 → 1.2.374

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 (15) hide show
  1. package/dist/{clip-model-registry-jeFu3pma.mjs → clip-model-registry-BIJ0ZD7t.mjs} +696 -110
  2. package/dist/{clip-model-registry-Cy2RokDO.js → clip-model-registry-BRzN2GzR.js} +696 -110
  3. package/dist/embedding-encoder/index.js +1 -1
  4. package/dist/embedding-encoder/index.mjs +1 -1
  5. package/dist/pipeline-analytics/_stub.js +2 -2
  6. package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-ujfvEENv.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BYu-s1rf.mjs} +2 -2
  7. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Ds_wGoAi.mjs +26 -0
  8. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BjCURGur.mjs +26 -0
  9. package/dist/pipeline-analytics/{hostInit-Ddz0CyLk.mjs → hostInit-DEl2xA0o.mjs} +2 -2
  10. package/dist/pipeline-analytics/index.js +39 -206
  11. package/dist/pipeline-analytics/index.mjs +39 -206
  12. package/dist/pipeline-analytics/remoteEntry.js +1 -1
  13. package/package.json +1 -1
  14. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CyYkqCmx.mjs +0 -26
  15. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Kh1uHJki.mjs +0 -26
@@ -5508,7 +5508,7 @@ var ZodIssueCode = {
5508
5508
  var ZodFirstPartyTypeKind;
5509
5509
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5510
5510
  //#endregion
5511
- //#region ../types/dist/sleep-bgZLodYc.mjs
5511
+ //#region ../types/dist/sleep-WsrozGDL.mjs
5512
5512
  /**
5513
5513
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5514
5514
  * window to float samples (D455).
@@ -5625,7 +5625,7 @@ function isKeychainStoredField(field) {
5625
5625
  var SECRET_CLEAR = { $secretClear: true };
5626
5626
  /** The `'***'` token D634 redaction writes for non-admins. */
5627
5627
  var LEGACY_DEVICE_REDACTION = "***";
5628
- function isRecord$2(value) {
5628
+ function isRecord$4(value) {
5629
5629
  return typeof value === "object" && value !== null && !Array.isArray(value);
5630
5630
  }
5631
5631
  function makeSecretMarker(ref) {
@@ -5636,12 +5636,12 @@ function makeSecretMarker(ref) {
5636
5636
  }
5637
5637
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5638
5638
  function isSecretMarker(value) {
5639
- if (!isRecord$2(value)) return false;
5639
+ if (!isRecord$4(value)) return false;
5640
5640
  const ref = value["$secret"];
5641
5641
  return typeof ref === "string" && ref.length > 0;
5642
5642
  }
5643
5643
  function isSecretClear(value) {
5644
- return isRecord$2(value) && value["$secretClear"] === true;
5644
+ return isRecord$4(value) && value["$secretClear"] === true;
5645
5645
  }
5646
5646
  /**
5647
5647
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6251,7 +6251,7 @@ var KeychainWriteRefusedError = class extends Error {
6251
6251
  }
6252
6252
  };
6253
6253
  var KEEP = { kind: "keep" };
6254
- function isRecord$1(value) {
6254
+ function isRecord$3(value) {
6255
6255
  return typeof value === "object" && value !== null && !Array.isArray(value);
6256
6256
  }
6257
6257
  function defaultMintId() {
@@ -6264,7 +6264,7 @@ function collectSecretMarkerRefs(value, out = []) {
6264
6264
  return out;
6265
6265
  }
6266
6266
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6267
- else if (isRecord$1(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6267
+ else if (isRecord$3(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6268
6268
  return out;
6269
6269
  }
6270
6270
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6319,7 +6319,7 @@ function rowId(row, idKey) {
6319
6319
  return null;
6320
6320
  }
6321
6321
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6322
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$1) : [];
6322
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$3) : [];
6323
6323
  if (!Array.isArray(incoming)) {
6324
6324
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6325
6325
  return {
@@ -6335,7 +6335,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6335
6335
  const kept = /* @__PURE__ */ new Set();
6336
6336
  const rows = [];
6337
6337
  for (const row of incoming) {
6338
- if (!isRecord$1(row)) {
6338
+ if (!isRecord$3(row)) {
6339
6339
  rows.push(row);
6340
6340
  continue;
6341
6341
  }
@@ -6360,7 +6360,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6360
6360
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6361
6361
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6362
6362
  case "object": {
6363
- if (!isRecord$1(incoming)) {
6363
+ if (!isRecord$3(incoming)) {
6364
6364
  if (incoming === void 0) return KEEP;
6365
6365
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6366
6366
  return {
@@ -6368,7 +6368,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6368
6368
  value: incoming
6369
6369
  };
6370
6370
  }
6371
- const storedObj = isRecord$1(stored) ? stored : {};
6371
+ const storedObj = isRecord$3(stored) ? stored : {};
6372
6372
  return {
6373
6373
  kind: "value",
6374
6374
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6491,7 +6491,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6491
6491
  value: items
6492
6492
  };
6493
6493
  }
6494
- if (isRecord$1(v)) {
6494
+ if (isRecord$3(v)) {
6495
6495
  const out = {};
6496
6496
  for (const [k, child] of Object.entries(v)) {
6497
6497
  const s = substitute(child);
@@ -6523,7 +6523,7 @@ var SecretOverwriteRefusedError = class extends Error {
6523
6523
  this.name = "SecretOverwriteRefusedError";
6524
6524
  }
6525
6525
  };
6526
- function isRecord(value) {
6526
+ function isRecord$2(value) {
6527
6527
  return typeof value === "object" && value !== null && !Array.isArray(value);
6528
6528
  }
6529
6529
  function resolvedValue(pass, marker) {
@@ -6552,7 +6552,7 @@ function inArray(pass, incoming, stored) {
6552
6552
  return incoming.map((item, index) => {
6553
6553
  const twin = stored[index];
6554
6554
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6555
- if (isRecord(item) && isRecord(twin)) return inArrayRow(pass, item, twin);
6555
+ if (isRecord$2(item) && isRecord$2(twin)) return inArrayRow(pass, item, twin);
6556
6556
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6557
6557
  return item;
6558
6558
  });
@@ -6563,7 +6563,7 @@ function inArrayRow(pass, incoming, stored) {
6563
6563
  const twin = stored[key];
6564
6564
  if (isSecretMarker(twin)) {
6565
6565
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6566
- } else if (isRecord(value) && isRecord(twin)) out[key] = inArrayRow(pass, value, twin);
6566
+ } else if (isRecord$2(value) && isRecord$2(twin)) out[key] = inArrayRow(pass, value, twin);
6567
6567
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6568
6568
  }
6569
6569
  return out;
@@ -6571,7 +6571,7 @@ function inArrayRow(pass, incoming, stored) {
6571
6571
  async function walk(pass, incoming, stored) {
6572
6572
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6573
6573
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6574
- if (!isRecord(incoming) || !isRecord(stored)) return incoming;
6574
+ if (!isRecord$2(incoming) || !isRecord$2(stored)) return incoming;
6575
6575
  const out = { ...incoming };
6576
6576
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6577
6577
  return out;
@@ -6602,7 +6602,7 @@ async function restoreUnchangedSecrets(input) {
6602
6602
  function isJsonEqual(a, b) {
6603
6603
  if (Object.is(a, b)) return true;
6604
6604
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6605
- if (isRecord(a) && isRecord(b)) {
6605
+ if (isRecord$2(a) && isRecord$2(b)) {
6606
6606
  const keys = Object.keys(a);
6607
6607
  if (keys.length !== Object.keys(b).length) return false;
6608
6608
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6626,7 +6626,7 @@ function markerKeysOf(blob, owner) {
6626
6626
  }
6627
6627
  function nodeFromStored(value, owner) {
6628
6628
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6629
- if (!isRecord(value)) return null;
6629
+ if (!isRecord$2(value)) return null;
6630
6630
  const children = /* @__PURE__ */ new Map();
6631
6631
  for (const [key, child] of Object.entries(value)) {
6632
6632
  const node = nodeFromStored(child, owner);
@@ -7908,6 +7908,152 @@ var PeerBytesTicketSchema = object({
7908
7908
  */
7909
7909
  declaredBytes: number().int().nonnegative().nullable()
7910
7910
  });
7911
+ /** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
7912
+ /** The files a kind may live in. `history` is device-history's (D850), never records. */
7913
+ var RECORD_DATABASES = ["settings", "events"];
7914
+ /** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
7915
+ var RECORD_CLASSES = [
7916
+ "config",
7917
+ "ledger",
7918
+ "audit",
7919
+ "mirror",
7920
+ "ephemeral"
7921
+ ];
7922
+ var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
7923
+ var RECORD_MAX_DATA_BYTES = 1024 * 1024;
7924
+ var RECORD_BATCH_MAX = 1e3;
7925
+ var RECORD_QUERY_MAX = 1e3;
7926
+ function defOf(schema) {
7927
+ return schema._zod?.def ?? {};
7928
+ }
7929
+ function declaredHere(schema) {
7930
+ return globalRegistry.get(schema)?.secret === true;
7931
+ }
7932
+ /** Wrapper kinds whose `innerType` is the field itself. */
7933
+ var WRAPPERS = new Set([
7934
+ "optional",
7935
+ "nullable",
7936
+ "default",
7937
+ "prefault",
7938
+ "catch",
7939
+ "readonly",
7940
+ "nonoptional"
7941
+ ]);
7942
+ /**
7943
+ * The schema layers that make up ONE field: the schema itself and every
7944
+ * wrapper below it (optional / default / nullable / readonly / catch), plus
7945
+ * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
7946
+ * `.transform` on `in`).
7947
+ */
7948
+ function layersOf(schema) {
7949
+ const out = [];
7950
+ const queue = [schema];
7951
+ while (queue.length > 0) {
7952
+ const s = queue.shift();
7953
+ if (!s || out.includes(s)) continue;
7954
+ out.push(s);
7955
+ const def = defOf(s);
7956
+ if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
7957
+ if (def.type === "pipe") {
7958
+ if (def.in) queue.push(def.in);
7959
+ if (def.out) queue.push(def.out);
7960
+ }
7961
+ }
7962
+ return out;
7963
+ }
7964
+ /** True when any layer of this field declares `.meta({ secret: true })`. */
7965
+ function isZodSecret(schema) {
7966
+ return layersOf(schema).some(declaredHere);
7967
+ }
7968
+ /**
7969
+ * Every declared secret path in a config schema: dotted keys, `[]` for "each
7970
+ * element of this array" (`connection.password`, `rows[].token`). A declared
7971
+ * object or array is reported as one path and not descended into — everything
7972
+ * under it is secret.
7973
+ */
7974
+ function collectZodSecretPaths(schema, prefix = "") {
7975
+ if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
7976
+ const paths = [];
7977
+ for (const layer of layersOf(schema)) {
7978
+ const def = defOf(layer);
7979
+ if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
7980
+ else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
7981
+ else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
7982
+ else if (def.type === "intersection") {
7983
+ if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
7984
+ if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
7985
+ }
7986
+ }
7987
+ return [...new Set(paths)];
7988
+ }
7989
+ /**
7990
+ * Record kinds (D881): the declaration an addon makes of one kind of fact, the
7991
+ * Zod row schema that describes it, and the helper that turns the two into the
7992
+ * JSON the engine stores.
7993
+ *
7994
+ * A kind is declared ONCE, next to the code that owns it, and the engine's
7995
+ * reconciler creates its indexes - nothing creates DDL at runtime from a write.
7996
+ * Everything the generic machinery needs (secret fields, the entry descriptor)
7997
+ * is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
7998
+ * never a field name (D879).
7999
+ */
8000
+ /** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
8001
+ var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
8002
+ var RecordIndexSchema = object({
8003
+ name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
8004
+ fields: array(RecordFieldPathSchema).min(1).max(4),
8005
+ unique: boolean().optional()
8006
+ }).strict();
8007
+ var RecordRetentionSchema = union([
8008
+ object({
8009
+ ttlMs: number().int().positive(),
8010
+ from: _enum(["at", "write"])
8011
+ }).strict(),
8012
+ object({
8013
+ maxRows: number().int().positive().optional(),
8014
+ maxRowsPerDevice: number().int().positive().optional()
8015
+ }).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
8016
+ object({
8017
+ owner: string().min(1),
8018
+ reason: string().min(1)
8019
+ }).strict(),
8020
+ object({ none: string().min(1) }).strict()
8021
+ ]);
8022
+ /** The descriptor a generic entries UI reads (D881 "generic entries"). */
8023
+ var EntryDescriptorSchema = object({
8024
+ title: string().min(1),
8025
+ /** The record body field shown as the entry's name. */
8026
+ nameField: string().min(1),
8027
+ /** JSON Schema of the entry body; `secret: true` marks a password field. */
8028
+ fields: record(string(), unknown())
8029
+ }).strict();
8030
+ /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
8031
+ var RecordKindDeclarationSchema = object({
8032
+ database: _enum(RECORD_DATABASES).default("settings"),
8033
+ class: _enum(RECORD_CLASSES),
8034
+ writeTrigger: string().min(1),
8035
+ device: _enum([
8036
+ "required",
8037
+ "optional",
8038
+ "none"
8039
+ ]).default("none"),
8040
+ at: _enum(["required", "none"]).default("none"),
8041
+ indexes: array(RecordIndexSchema).max(8).default([]),
8042
+ retention: RecordRetentionSchema,
8043
+ deviceRemoval: _enum(["delete", "none"]).default("none"),
8044
+ maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
8045
+ /** Derived from the Zod schema; never written by hand. */
8046
+ secretPaths: array(string().min(1)).default([]),
8047
+ /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8048
+ secretArrayKeys: record(string(), string()).default({}),
8049
+ /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
8050
+ adoptsFrom: string().min(1).optional(),
8051
+ /** Kinds that must agree through `transact` sit in one file under one family name. */
8052
+ transactFamily: string().min(1).optional(),
8053
+ entry: EntryDescriptorSchema.optional()
8054
+ }).strict();
8055
+ /** The kind names: lower-case, dash separated, short enough for an index name. */
8056
+ var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
7911
8057
  /** Shared Zod schemas used across streaming capabilities. */
7912
8058
  var CamProfileSchema = _enum([
7913
8059
  "high",
@@ -8453,69 +8599,6 @@ method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(o
8453
8599
  kind: "mutation",
8454
8600
  auth: "admin"
8455
8601
  }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
8456
- function defOf(schema) {
8457
- return schema._zod?.def ?? {};
8458
- }
8459
- function declaredHere(schema) {
8460
- return globalRegistry.get(schema)?.secret === true;
8461
- }
8462
- /** Wrapper kinds whose `innerType` is the field itself. */
8463
- var WRAPPERS = new Set([
8464
- "optional",
8465
- "nullable",
8466
- "default",
8467
- "prefault",
8468
- "catch",
8469
- "readonly",
8470
- "nonoptional"
8471
- ]);
8472
- /**
8473
- * The schema layers that make up ONE field: the schema itself and every
8474
- * wrapper below it (optional / default / nullable / readonly / catch), plus
8475
- * both sides of a pipe (`z.preprocess` puts the real schema on `out`,
8476
- * `.transform` on `in`).
8477
- */
8478
- function layersOf(schema) {
8479
- const out = [];
8480
- const queue = [schema];
8481
- while (queue.length > 0) {
8482
- const s = queue.shift();
8483
- if (!s || out.includes(s)) continue;
8484
- out.push(s);
8485
- const def = defOf(s);
8486
- if (def.type !== void 0 && WRAPPERS.has(def.type) && def.innerType) queue.push(def.innerType);
8487
- if (def.type === "pipe") {
8488
- if (def.in) queue.push(def.in);
8489
- if (def.out) queue.push(def.out);
8490
- }
8491
- }
8492
- return out;
8493
- }
8494
- /** True when any layer of this field declares `.meta({ secret: true })`. */
8495
- function isZodSecret(schema) {
8496
- return layersOf(schema).some(declaredHere);
8497
- }
8498
- /**
8499
- * Every declared secret path in a config schema: dotted keys, `[]` for "each
8500
- * element of this array" (`connection.password`, `rows[].token`). A declared
8501
- * object or array is reported as one path and not descended into — everything
8502
- * under it is secret.
8503
- */
8504
- function collectZodSecretPaths(schema, prefix = "") {
8505
- if (isZodSecret(schema)) return prefix.length > 0 ? [prefix] : [];
8506
- const paths = [];
8507
- for (const layer of layersOf(schema)) {
8508
- const def = defOf(layer);
8509
- if (def.type === "object" && def.shape) for (const [key, child] of Object.entries(def.shape)) paths.push(...collectZodSecretPaths(child, prefix ? `${prefix}.${key}` : key));
8510
- else if (def.type === "array" && def.element) paths.push(...collectZodSecretPaths(def.element, `${prefix}[]`));
8511
- else if (def.type === "union" && def.options) for (const option of def.options) paths.push(...collectZodSecretPaths(option, prefix));
8512
- else if (def.type === "intersection") {
8513
- if (def.left) paths.push(...collectZodSecretPaths(def.left, prefix));
8514
- if (def.right) paths.push(...collectZodSecretPaths(def.right, prefix));
8515
- }
8516
- }
8517
- return [...new Set(paths)];
8518
- }
8519
8602
  /**
8520
8603
  * AUTO-GENERATED by scripts/generate-device-scoped-caps.ts — DO NOT EDIT.
8521
8604
  *
@@ -16856,6 +16939,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
16856
16939
  keyField: string()
16857
16940
  }).optional()
16858
16941
  })) });
16942
+ /**
16943
+ * The report of a one-shot "move this owner's plaintext secrets into the
16944
+ * keychain" run (D878). COUNTS only - never a value, never a ref.
16945
+ *
16946
+ * The owner runs it on its own rows, through its own write path; an operator
16947
+ * script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
16948
+ * Dry run (`apply: false`) reports what WOULD move and changes nothing.
16949
+ */
16950
+ var RawSecretMigrationInputSchema = object({
16951
+ /** `false` (the default of the script) = report only. */
16952
+ apply: boolean() });
16953
+ var RawSecretMigrationReportSchema = object({
16954
+ apply: boolean(),
16955
+ /** Rows that can carry a secret (a profile, an enrolment). */
16956
+ rows: number().int(),
16957
+ /** Rows whose secret was plaintext when the run started. */
16958
+ raw: number().int(),
16959
+ /** Rows that already held a keychain marker when the run started. */
16960
+ markers: number().int(),
16961
+ /** Plaintext rows moved by THIS run (always 0 on a dry run). */
16962
+ migrated: number().int(),
16963
+ /** Plaintext rows left in place because the move or its read-back failed. */
16964
+ failed: number().int(),
16965
+ /** After the run: rows still holding plaintext. */
16966
+ remainingRaw: number().int(),
16967
+ /** After the run: markers the keychain could not resolve right now. */
16968
+ unresolvedMarkers: number().int(),
16969
+ /**
16970
+ * A second, redundant copy of the secrets' rows that the run found (and, on
16971
+ * `apply`, deleted after verifying the first). Owners with a single copy omit it.
16972
+ */
16973
+ redundantCopies: number().int().optional(),
16974
+ /** True when nothing is raw and every marker resolves. */
16975
+ verified: boolean()
16976
+ });
16859
16977
  /** The block id behind a generated addon/runner id, or null when the id belongs
16860
16978
  * to something else. The inverse of {@link coreBlockAddonId}. */
16861
16979
  function coreBlockIdFromAddonId(addonId) {
@@ -17089,6 +17207,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
17089
17207
  }), SettingsUpdateResultSchema, {
17090
17208
  kind: "mutation",
17091
17209
  auth: "admin"
17210
+ }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
17211
+ kind: "mutation",
17212
+ auth: "admin"
17092
17213
  }), method(object({}), object({ libs: array(object({
17093
17214
  filePath: string(),
17094
17215
  content: string()
@@ -17351,6 +17472,222 @@ id: union([string(), number()]) }), {
17351
17472
  kind: "mutation",
17352
17473
  auth: "admin"
17353
17474
  });
17475
+ /**
17476
+ * records - an addon's own facts and documents (D881): ledgers, audit rows,
17477
+ * config documents, mirrors. The third storage API next to `ctx.settings`
17478
+ * (operator intent, D870) and device-history (numbers over time, D850).
17479
+ *
17480
+ * Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
17481
+ * crossed a process and stated by a hub in-process caller (`ctx.records` does
17482
+ * that with the addon id closed over). It is deliberately NOT in any input
17483
+ * schema, so a session can never supply it, and a call with no stamp is refused
17484
+ * `records/no-caller`. A kind is readable and writable only by its owner; other
17485
+ * addons go through the owner's capability.
17486
+ *
17487
+ * Every read is three-way: a row, `null`, or the call THROWS. A failed read is
17488
+ * never `[]`. Secret fields are never on the wire: a read shows the
17489
+ * redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
17490
+ * resolves itself, and a write may carry only a keychain marker bound to the
17491
+ * row's own ref.
17492
+ *
17493
+ * Internal: addons reach it through `ctx.records`, never directly.
17494
+ */
17495
+ var RecordIdSchema = string().min(1).max(256);
17496
+ /** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
17497
+ var RecordBodySchema = record(string(), unknown());
17498
+ var RecordInputSchema = object({
17499
+ id: RecordIdSchema,
17500
+ /** The device this row belongs to (D865 removal, per-device reads). */
17501
+ deviceId: number().int().optional(),
17502
+ /** The domain clock, ms: observed / created / opened. */
17503
+ at: number().int().optional(),
17504
+ /** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
17505
+ expiresAt: number().int().optional(),
17506
+ data: RecordBodySchema
17507
+ });
17508
+ var RecordViewSchema = object({
17509
+ id: string(),
17510
+ deviceId: number().int().nullable(),
17511
+ at: number().nullable(),
17512
+ expiresAt: number().nullable(),
17513
+ rev: number().int(),
17514
+ updatedAt: number(),
17515
+ data: RecordBodySchema
17516
+ });
17517
+ /** Declared index fields only. Anything else does not compile, by design. */
17518
+ var RecordWhereSchema = record(RecordFieldPathSchema, union([
17519
+ string(),
17520
+ number(),
17521
+ boolean(),
17522
+ object({ in: array(union([
17523
+ string(),
17524
+ number(),
17525
+ boolean()
17526
+ ])).min(1).max(RECORD_BATCH_MAX) }),
17527
+ object({
17528
+ gt: union([string(), number()]).optional(),
17529
+ gte: union([string(), number()]).optional(),
17530
+ lt: union([string(), number()]).optional(),
17531
+ lte: union([string(), number()]).optional()
17532
+ }).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
17533
+ ]));
17534
+ var KindShape = { kind: RecordKindNameSchema };
17535
+ var TimeWindowShape = {
17536
+ deviceId: number().int().optional(),
17537
+ atFrom: number().optional(),
17538
+ atTo: number().optional()
17539
+ };
17540
+ var RecordQueryInputSchema = object({
17541
+ ...KindShape,
17542
+ ...TimeWindowShape,
17543
+ where: RecordWhereSchema.optional(),
17544
+ /** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
17545
+ order: _enum(["at", "id"]).optional(),
17546
+ desc: boolean().optional(),
17547
+ limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
17548
+ /** Opaque keyset cursor from a previous answer. There is no offset. */
17549
+ cursor: string().min(1).optional()
17550
+ });
17551
+ var RecordQueryResultSchema = object({
17552
+ records: array(RecordViewSchema),
17553
+ nextCursor: string().nullable()
17554
+ });
17555
+ var RecordKindStateSchema = _enum([
17556
+ "created",
17557
+ "unchanged",
17558
+ "updated"
17559
+ ]);
17560
+ var DeclareKindResultSchema = object({
17561
+ kindId: number().int(),
17562
+ state: RecordKindStateSchema,
17563
+ createdIndexes: array(string()),
17564
+ /** The boot guard: the kind is empty while its legacy table still holds rows. */
17565
+ adoptionPending: object({
17566
+ legacyTable: string(),
17567
+ legacyRows: number().int()
17568
+ }).nullable()
17569
+ });
17570
+ /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17571
+ var SecretRefsList = array(string());
17572
+ var RecordSecretRefsSchema = record(string(), record(string(), string()));
17573
+ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
17574
+ kind: "mutation",
17575
+ auth: "admin"
17576
+ }), method(object({
17577
+ ...KindShape,
17578
+ id: RecordIdSchema
17579
+ }), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
17580
+ ...KindShape,
17581
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17582
+ }), array(RecordViewSchema), { auth: "admin" }), method(object({
17583
+ ...KindShape,
17584
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17585
+ }), RecordSecretRefsSchema, { auth: "admin" }), method(object({
17586
+ ...KindShape,
17587
+ record: RecordInputSchema,
17588
+ /** Compare-and-set. `0` means "the row must not exist". */
17589
+ ifRev: number().int().min(0).optional()
17590
+ }), object({
17591
+ rev: number().int(),
17592
+ releasedRefs: SecretRefsList
17593
+ }), {
17594
+ kind: "mutation",
17595
+ auth: "admin"
17596
+ }), method(object({
17597
+ ...KindShape,
17598
+ records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
17599
+ }), object({
17600
+ count: number().int(),
17601
+ releasedRefs: SecretRefsList
17602
+ }), {
17603
+ kind: "mutation",
17604
+ auth: "admin"
17605
+ }), method(object({
17606
+ ...KindShape,
17607
+ id: RecordIdSchema,
17608
+ data: RecordBodySchema,
17609
+ at: number().int().nullable().optional(),
17610
+ expiresAt: number().int().nullable().optional(),
17611
+ ifRev: number().int().min(1).optional()
17612
+ }), object({
17613
+ rev: number().int(),
17614
+ releasedRefs: SecretRefsList
17615
+ }), {
17616
+ kind: "mutation",
17617
+ auth: "admin"
17618
+ }), method(object({
17619
+ ...KindShape,
17620
+ id: RecordIdSchema
17621
+ }), object({
17622
+ deleted: boolean(),
17623
+ secretRefs: SecretRefsList
17624
+ }), {
17625
+ kind: "mutation",
17626
+ auth: "admin"
17627
+ }), method(object({
17628
+ ...KindShape,
17629
+ ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
17630
+ }), object({
17631
+ deleted: number().int(),
17632
+ secretRefs: SecretRefsList
17633
+ }), {
17634
+ kind: "mutation",
17635
+ auth: "admin"
17636
+ }), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
17637
+ ...KindShape,
17638
+ ...TimeWindowShape,
17639
+ where: RecordWhereSchema.optional()
17640
+ }), object({ count: number().int() }), { auth: "admin" }), method(object({
17641
+ ...KindShape,
17642
+ deviceId: number().int().optional(),
17643
+ from: number(),
17644
+ to: number(),
17645
+ bucketMs: number().int().positive()
17646
+ }), object({ buckets: array(object({
17647
+ bucketStart: number(),
17648
+ count: number().int()
17649
+ })) }), { auth: "admin" }), method(object({
17650
+ ...KindShape,
17651
+ op: _enum([
17652
+ "sum",
17653
+ "min",
17654
+ "max",
17655
+ "count"
17656
+ ]),
17657
+ field: RecordFieldPathSchema.optional(),
17658
+ groupBy: RecordFieldPathSchema.optional(),
17659
+ where: RecordWhereSchema.optional()
17660
+ }), object({ rows: array(object({
17661
+ group: union([
17662
+ string(),
17663
+ number(),
17664
+ _null()
17665
+ ]),
17666
+ value: number().nullable()
17667
+ })) }), { auth: "admin" }), method(object({
17668
+ ...KindShape,
17669
+ deviceId: number().int().optional(),
17670
+ atBefore: number().optional(),
17671
+ where: RecordWhereSchema.optional()
17672
+ }), object({
17673
+ deleted: number().int(),
17674
+ secretRefs: SecretRefsList
17675
+ }), {
17676
+ kind: "mutation",
17677
+ auth: "admin"
17678
+ }), method(object({
17679
+ deviceId: number().int(),
17680
+ kinds: array(RecordKindNameSchema).optional()
17681
+ }), object({
17682
+ deleted: record(string(), number().int()),
17683
+ secretRefs: SecretRefsList
17684
+ }), {
17685
+ kind: "mutation",
17686
+ auth: "admin"
17687
+ }), method(object(KindShape), object({ id: number().int() }), {
17688
+ kind: "mutation",
17689
+ auth: "admin"
17690
+ });
17354
17691
  /** One table of the settings database. */
17355
17692
  var StorageTableSchema = object({
17356
17693
  /** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
@@ -17363,6 +17700,28 @@ var StorageTableSchema = object({
17363
17700
  /** Declared by an addon since this engine process started (a running addon claims it). */
17364
17701
  declaredThisBoot: boolean()
17365
17702
  });
17703
+ /** One declared record kind (D881) as System -> Data shows it. */
17704
+ var StorageKindSchema = object({
17705
+ owner: string(),
17706
+ kind: string(),
17707
+ database: _enum(["settings", "events"]),
17708
+ class: string(),
17709
+ state: _enum([
17710
+ "declared",
17711
+ "orphaned",
17712
+ "dropped"
17713
+ ]),
17714
+ /** `null` when the caller asked for no counts (`counts: false`). */
17715
+ rows: number().int().nonnegative().nullable(),
17716
+ /** Rows x the average size of a sample; null for an empty kind. */
17717
+ bytesEstimate: number().int().nonnegative().nullable(),
17718
+ writeTrigger: string(),
17719
+ retention: RecordRetentionSchema,
17720
+ /** `true` when the kind is an entry kind (the generic entries UI lists it). */
17721
+ entry: boolean(),
17722
+ /** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
17723
+ declaration: RecordKindDeclarationSchema
17724
+ });
17366
17725
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
17367
17726
  collection: string().min(1),
17368
17727
  expectRows: number().int().nonnegative()
@@ -17372,6 +17731,77 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
17372
17731
  }), {
17373
17732
  kind: "mutation",
17374
17733
  auth: "admin"
17734
+ }), method(object({
17735
+ owner: string().min(1).optional(),
17736
+ /** `false` skips the per-kind row count (a catalog read only). Default true. */
17737
+ counts: boolean().optional()
17738
+ }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
17739
+ owner: string().min(1),
17740
+ kind: RecordKindNameSchema
17741
+ }), RecordQueryResultSchema, { auth: "admin" }), method(object({
17742
+ owner: string().min(1),
17743
+ kind: RecordKindNameSchema,
17744
+ records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX),
17745
+ /** The LAST batch: the copy is complete, the boot guard stops asking. */
17746
+ complete: boolean().optional()
17747
+ }), object({ adopted: number().int() }), {
17748
+ kind: "mutation",
17749
+ auth: "admin"
17750
+ });
17751
+ /**
17752
+ * record-entries - the ONE admin surface for every list of user-created entries
17753
+ * (D881): notification targets, brokers, LLM profiles, anything an addon
17754
+ * declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
17755
+ *
17756
+ * The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
17757
+ * the entry body with `secret: true` on every credential field, so a password
17758
+ * field is derived from the schema and never from a name. `putEntry` takes the
17759
+ * redaction token for an untouched secret (the stored value is kept), a string
17760
+ * for a new one, and the clear instruction to remove one. A read never carries
17761
+ * a secret value, and a locked keychain refuses the write with
17762
+ * `records/secret-unavailable` instead of storing plaintext.
17763
+ *
17764
+ * Hub-only, served in-process (it acts for each entry's owner on the keychain).
17765
+ */
17766
+ var EntryKindInfoSchema = object({
17767
+ owner: string(),
17768
+ kind: RecordKindNameSchema,
17769
+ title: string(),
17770
+ nameField: string(),
17771
+ /** JSON Schema of the body; `secret: true` marks a password field. */
17772
+ fields: record(string(), unknown()),
17773
+ secretPaths: array(string()),
17774
+ rows: number().int().nonnegative()
17775
+ });
17776
+ var EntryViewSchema = object({
17777
+ id: RecordIdSchema,
17778
+ name: string(),
17779
+ rev: number().int(),
17780
+ updatedAt: number(),
17781
+ /** Secret fields hold the redaction token. */
17782
+ data: RecordBodySchema
17783
+ });
17784
+ var EntryAddress = {
17785
+ owner: string().min(1),
17786
+ kind: RecordKindNameSchema
17787
+ };
17788
+ method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
17789
+ ...EntryAddress,
17790
+ id: RecordIdSchema.optional(),
17791
+ data: RecordBodySchema,
17792
+ ifRev: number().int().min(1).optional()
17793
+ }), object({
17794
+ id: string(),
17795
+ rev: number().int()
17796
+ }), {
17797
+ kind: "mutation",
17798
+ auth: "admin"
17799
+ }), method(object({
17800
+ ...EntryAddress,
17801
+ id: RecordIdSchema
17802
+ }), object({ deleted: boolean() }), {
17803
+ kind: "mutation",
17804
+ auth: "admin"
17375
17805
  });
17376
17806
  /**
17377
17807
  * `keychain` — the hub's encrypted store of secret values (D787).
@@ -40517,36 +40947,6 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
40517
40947
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
40518
40948
  });
40519
40949
  /**
40520
- * The report of a one-shot "move this owner's plaintext secrets into the
40521
- * keychain" run (D878). COUNTS only - never a value, never a ref.
40522
- *
40523
- * The owner runs it on its own rows, through its own write path; an operator
40524
- * script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
40525
- * Dry run (`apply: false`) reports what WOULD move and changes nothing.
40526
- */
40527
- var RawSecretMigrationInputSchema = object({
40528
- /** `false` (the default of the script) = report only. */
40529
- apply: boolean() });
40530
- var RawSecretMigrationReportSchema = object({
40531
- apply: boolean(),
40532
- /** Rows that can carry a secret (a profile, an enrolment). */
40533
- rows: number().int(),
40534
- /** Rows whose secret was plaintext when the run started. */
40535
- raw: number().int(),
40536
- /** Rows that already held a keychain marker when the run started. */
40537
- markers: number().int(),
40538
- /** Plaintext rows moved by THIS run (always 0 on a dry run). */
40539
- migrated: number().int(),
40540
- /** Plaintext rows left in place because the move or its read-back failed. */
40541
- failed: number().int(),
40542
- /** After the run: rows still holding plaintext. */
40543
- remainingRaw: number().int(),
40544
- /** After the run: markers the keychain could not resolve right now. */
40545
- unresolvedMarkers: number().int(),
40546
- /** True when nothing is raw and every marker resolves. */
40547
- verified: boolean()
40548
- });
40549
- /**
40550
40950
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
40551
40951
  * methods concat-fan across providers; single-row methods route to ONE
40552
40952
  * provider by the `addonId` in the call input (the notification-output
@@ -70409,6 +70809,12 @@ Object.freeze({
70409
70809
  addonId: null,
70410
70810
  access: "view"
70411
70811
  },
70812
+ "coreBlocks.migrateRawSecrets": {
70813
+ capName: "core-blocks",
70814
+ capScope: "system",
70815
+ addonId: null,
70816
+ access: "create"
70817
+ },
70412
70818
  "coreBlocks.restart": {
70413
70819
  capName: "core-blocks",
70414
70820
  capScope: "system",
@@ -75161,6 +75567,30 @@ Object.freeze({
75161
75567
  addonId: null,
75162
75568
  access: "create"
75163
75569
  },
75570
+ "recordEntries.deleteEntry": {
75571
+ capName: "record-entries",
75572
+ capScope: "system",
75573
+ addonId: null,
75574
+ access: "delete"
75575
+ },
75576
+ "recordEntries.listEntries": {
75577
+ capName: "record-entries",
75578
+ capScope: "system",
75579
+ addonId: null,
75580
+ access: "view"
75581
+ },
75582
+ "recordEntries.listEntryKinds": {
75583
+ capName: "record-entries",
75584
+ capScope: "system",
75585
+ addonId: null,
75586
+ access: "view"
75587
+ },
75588
+ "recordEntries.putEntry": {
75589
+ capName: "record-entries",
75590
+ capScope: "system",
75591
+ addonId: null,
75592
+ access: "create"
75593
+ },
75164
75594
  "recording.getAvailability": {
75165
75595
  capName: "recording",
75166
75596
  capScope: "device",
@@ -75461,6 +75891,102 @@ Object.freeze({
75461
75891
  addonId: null,
75462
75892
  access: "view"
75463
75893
  },
75894
+ "records.aggregate": {
75895
+ capName: "records",
75896
+ capScope: "system",
75897
+ addonId: null,
75898
+ access: "view"
75899
+ },
75900
+ "records.allocateId": {
75901
+ capName: "records",
75902
+ capScope: "system",
75903
+ addonId: null,
75904
+ access: "create"
75905
+ },
75906
+ "records.count": {
75907
+ capName: "records",
75908
+ capScope: "system",
75909
+ addonId: null,
75910
+ access: "view"
75911
+ },
75912
+ "records.declareKinds": {
75913
+ capName: "records",
75914
+ capScope: "system",
75915
+ addonId: null,
75916
+ access: "create"
75917
+ },
75918
+ "records.delete": {
75919
+ capName: "records",
75920
+ capScope: "system",
75921
+ addonId: null,
75922
+ access: "delete"
75923
+ },
75924
+ "records.deleteDevice": {
75925
+ capName: "records",
75926
+ capScope: "system",
75927
+ addonId: null,
75928
+ access: "delete"
75929
+ },
75930
+ "records.deleteMany": {
75931
+ capName: "records",
75932
+ capScope: "system",
75933
+ addonId: null,
75934
+ access: "delete"
75935
+ },
75936
+ "records.deleteWhere": {
75937
+ capName: "records",
75938
+ capScope: "system",
75939
+ addonId: null,
75940
+ access: "delete"
75941
+ },
75942
+ "records.get": {
75943
+ capName: "records",
75944
+ capScope: "system",
75945
+ addonId: null,
75946
+ access: "view"
75947
+ },
75948
+ "records.getMany": {
75949
+ capName: "records",
75950
+ capScope: "system",
75951
+ addonId: null,
75952
+ access: "view"
75953
+ },
75954
+ "records.histogram": {
75955
+ capName: "records",
75956
+ capScope: "system",
75957
+ addonId: null,
75958
+ access: "view"
75959
+ },
75960
+ "records.patch": {
75961
+ capName: "records",
75962
+ capScope: "system",
75963
+ addonId: null,
75964
+ access: "create"
75965
+ },
75966
+ "records.put": {
75967
+ capName: "records",
75968
+ capScope: "system",
75969
+ addonId: null,
75970
+ access: "create"
75971
+ },
75972
+ "records.putMany": {
75973
+ capName: "records",
75974
+ capScope: "system",
75975
+ addonId: null,
75976
+ access: "create"
75977
+ },
75978
+ "records.query": {
75979
+ capName: "records",
75980
+ capScope: "system",
75981
+ addonId: null,
75982
+ access: "view"
75983
+ },
75984
+ "records.secretRefs": {
75985
+ capName: "records",
75986
+ capScope: "system",
75987
+ addonId: null,
75988
+ access: "view"
75989
+ },
75464
75990
  "sceneMonitor.captureReference": {
75465
75991
  capName: "scene-monitor",
75466
75992
  capScope: "device",
@@ -75893,18 +76419,36 @@ Object.freeze({
75893
76419
  addonId: null,
75894
76420
  access: "create"
75895
76421
  },
76422
+ "storageAdmin.adoptRecords": {
76423
+ capName: "storage-admin",
76424
+ capScope: "system",
76425
+ addonId: null,
76426
+ access: "create"
76427
+ },
75896
76428
  "storageAdmin.dropCollection": {
75897
76429
  capName: "storage-admin",
75898
76430
  capScope: "system",
75899
76431
  addonId: null,
75900
76432
  access: "delete"
75901
76433
  },
76434
+ "storageAdmin.listKinds": {
76435
+ capName: "storage-admin",
76436
+ capScope: "system",
76437
+ addonId: null,
76438
+ access: "view"
76439
+ },
75902
76440
  "storageAdmin.listTables": {
75903
76441
  capName: "storage-admin",
75904
76442
  capScope: "system",
75905
76443
  addonId: null,
75906
76444
  access: "view"
75907
76445
  },
76446
+ "storageAdmin.readRecords": {
76447
+ capName: "storage-admin",
76448
+ capScope: "system",
76449
+ addonId: null,
76450
+ access: "view"
76451
+ },
75908
76452
  "storageEvictable.evict": {
75909
76453
  capName: "storage-evictable",
75910
76454
  capScope: "system",
@@ -79499,6 +80043,37 @@ Object.freeze({
79499
80043
  form: "single",
79500
80044
  optional: false
79501
80045
  }],
80046
+ "records.count": [{
80047
+ name: "deviceId",
80048
+ form: "single",
80049
+ optional: true
80050
+ }],
80051
+ "records.deleteDevice": [{
80052
+ name: "deviceId",
80053
+ form: "single",
80054
+ optional: false
80055
+ }],
80056
+ "records.deleteWhere": [{
80057
+ name: "deviceId",
80058
+ form: "single",
80059
+ optional: true
80060
+ }],
80061
+ "records.histogram": [{
80062
+ name: "deviceId",
80063
+ form: "single",
80064
+ optional: true
80065
+ }],
80066
+ "records.putMany": [{
80067
+ name: "records",
80068
+ form: "object-array",
80069
+ optional: false,
80070
+ itemField: "deviceId"
80071
+ }],
80072
+ "records.query": [{
80073
+ name: "deviceId",
80074
+ form: "single",
80075
+ optional: true
80076
+ }],
79502
80077
  "sceneMonitor.captureReference": [{
79503
80078
  name: "deviceId",
79504
80079
  form: "single",
@@ -79615,6 +80190,17 @@ Object.freeze({
79615
80190
  form: "single",
79616
80191
  optional: false
79617
80192
  }],
80193
+ "storageAdmin.adoptRecords": [{
80194
+ name: "records",
80195
+ form: "object-array",
80196
+ optional: false,
80197
+ itemField: "deviceId"
80198
+ }],
80199
+ "storageAdmin.readRecords": [{
80200
+ name: "deviceId",
80201
+ form: "single",
80202
+ optional: true
80203
+ }],
79618
80204
  "streamBroker.acquireEgressTranscode": [{
79619
80205
  name: "deviceId",
79620
80206
  form: "single",