@camstack/types 1.2.378 → 1.2.380

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 (36) hide show
  1. package/dist/addon.d.ts +1 -0
  2. package/dist/addon.js +57 -2
  3. package/dist/addon.mjs +5 -3
  4. package/dist/capabilities/caller-stamp.d.ts +12 -0
  5. package/dist/capabilities/core-blocks.cap.d.ts +26 -4
  6. package/dist/capabilities/index.d.ts +7 -2
  7. package/dist/capabilities/llm.cap.d.ts +1 -0
  8. package/dist/capabilities/raw-secret-migration.d.ts +1 -0
  9. package/dist/capabilities/record-entries.cap.d.ts +84 -0
  10. package/dist/capabilities/records.cap.d.ts +399 -0
  11. package/dist/capabilities/storage-admin.cap.d.ts +246 -0
  12. package/dist/capabilities/user-management.cap.d.ts +1 -0
  13. package/dist/client.js +7 -0
  14. package/dist/client.mjs +7 -0
  15. package/dist/generated/addon-api.d.ts +184 -0
  16. package/dist/generated/cap-input-defaults.d.ts +1 -1
  17. package/dist/generated/capability-router-map.d.ts +8 -2
  18. package/dist/generated/method-access-map.d.ts +1 -1
  19. package/dist/generated/method-device-selectors.d.ts +2 -2
  20. package/dist/generated/system-proxy.d.ts +3 -1
  21. package/dist/index.d.ts +2 -1
  22. package/dist/index.js +746 -38
  23. package/dist/index.mjs +677 -39
  24. package/dist/interfaces/addon.d.ts +13 -0
  25. package/dist/interfaces/event-bus.d.ts +32 -3
  26. package/dist/interfaces/storage.d.ts +1 -1
  27. package/dist/records/constants.d.ts +23 -0
  28. package/dist/records/entry-kind.d.ts +31 -0
  29. package/dist/records/errors.d.ts +81 -0
  30. package/dist/records/index.d.ts +6 -0
  31. package/dist/records/record-kind.d.ts +144 -0
  32. package/dist/records/records-access.d.ts +153 -0
  33. package/dist/records/secret-paths.d.ts +52 -0
  34. package/dist/{sleep-gxUz0C9M.js → sleep-CIGOw58l.js} +1520 -309
  35. package/dist/{sleep-bgZLodYc.mjs → sleep-WsrozGDL.mjs} +999 -112
  36. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-gxUz0C9M.js");
2
+ const require_sleep = require("./sleep-CIGOw58l.js");
3
3
  const require_event_category = require("./event-category-Hoe-mqbd.js");
4
4
  const require_composition = require("./composition-CUAOHZ38.js");
5
5
  const require_node_color = require("./node-color.js");
@@ -13088,6 +13088,43 @@ function describeComposableCaps(defs, deviceType) {
13088
13088
  }).toSorted((a, b) => a.cap.localeCompare(b.cap));
13089
13089
  }
13090
13090
  //#endregion
13091
+ //#region src/capabilities/raw-secret-migration.ts
13092
+ /**
13093
+ * The report of a one-shot "move this owner's plaintext secrets into the
13094
+ * keychain" run (D878). COUNTS only - never a value, never a ref.
13095
+ *
13096
+ * The owner runs it on its own rows, through its own write path; an operator
13097
+ * script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
13098
+ * Dry run (`apply: false`) reports what WOULD move and changes nothing.
13099
+ */
13100
+ var RawSecretMigrationInputSchema = zod.z.object({
13101
+ /** `false` (the default of the script) = report only. */
13102
+ apply: zod.z.boolean() });
13103
+ var RawSecretMigrationReportSchema = zod.z.object({
13104
+ apply: zod.z.boolean(),
13105
+ /** Rows that can carry a secret (a profile, an enrolment). */
13106
+ rows: zod.z.number().int(),
13107
+ /** Rows whose secret was plaintext when the run started. */
13108
+ raw: zod.z.number().int(),
13109
+ /** Rows that already held a keychain marker when the run started. */
13110
+ markers: zod.z.number().int(),
13111
+ /** Plaintext rows moved by THIS run (always 0 on a dry run). */
13112
+ migrated: zod.z.number().int(),
13113
+ /** Plaintext rows left in place because the move or its read-back failed. */
13114
+ failed: zod.z.number().int(),
13115
+ /** After the run: rows still holding plaintext. */
13116
+ remainingRaw: zod.z.number().int(),
13117
+ /** After the run: markers the keychain could not resolve right now. */
13118
+ unresolvedMarkers: zod.z.number().int(),
13119
+ /**
13120
+ * A second, redundant copy of the secrets' rows that the run found (and, on
13121
+ * `apply`, deleted after verifying the first). Owners with a single copy omit it.
13122
+ */
13123
+ redundantCopies: zod.z.number().int().optional(),
13124
+ /** True when nothing is raw and every marker resolves. */
13125
+ verified: zod.z.boolean()
13126
+ });
13127
+ //#endregion
13091
13128
  //#region src/capabilities/core-blocks.cap.ts
13092
13129
  /**
13093
13130
  * core-blocks — user-authored TypeScript, stored in the kernel and executed in
@@ -13453,14 +13490,16 @@ var coreBlocksCapability = {
13453
13490
  /**
13454
13491
  * Hydrated settings form for one block, or null until a `settingsSchema`
13455
13492
  * is known (extracted from the compiled entry's named export, or set on
13456
- * the block). Values live in the `core-blocks:settings` collection.
13493
+ * the block). Values live in the block addon's `addon-settings` rows (D880);
13494
+ * a password field answers as a "set" view, never the value.
13457
13495
  */
13458
13496
  getBlockSettings: require_sleep.method(zod.z.object({ blockId: zod.z.string() }), SettingsSchemaWithValuesSchema.nullable(), { auth: "admin" }),
13459
13497
  /**
13460
13498
  * Patch persisted preference values for one block. The schema is not
13461
- * rewritten here — only values. Scripts read the same blob via
13462
- * `ctx.settings.readAddonStore()` (mirrored into the block addon's
13463
- * `addon-settings` namespace on every patch).
13499
+ * rewritten here — only values. Scripts read the same rows via
13500
+ * `ctx.settings.readAddonStore()`. A field the schema declares `password` /
13501
+ * `secret: true` is stored in the keychain (owner = the block's addon id)
13502
+ * and the row holds a marker; a REDACTED or view value keeps the stored one.
13464
13503
  */
13465
13504
  updateBlockSettings: require_sleep.method(zod.z.object({
13466
13505
  blockId: zod.z.string(),
@@ -13470,6 +13509,16 @@ var coreBlocksCapability = {
13470
13509
  auth: "admin"
13471
13510
  }),
13472
13511
  /**
13512
+ * D880: move every plaintext password a block's `settingsSchema` declares
13513
+ * into the keychain and delete the legacy `core-blocks:settings` copy. Dry
13514
+ * run unless `apply`; idempotent; counts only. A secret is read back from
13515
+ * the keychain before its row is rewritten.
13516
+ */
13517
+ migrateRawSecrets: require_sleep.method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
13518
+ kind: "mutation",
13519
+ auth: "admin"
13520
+ }),
13521
+ /**
13473
13522
  * The declaration files the editor type-checks against.
13474
13523
  *
13475
13524
  * Served rather than bundled: the graph is 3.4 MB across 344 files, and
@@ -13900,6 +13949,280 @@ id: zod.z.union([zod.z.string(), zod.z.number()]) }), {
13900
13949
  }
13901
13950
  };
13902
13951
  //#endregion
13952
+ //#region src/capabilities/caller-stamp.ts
13953
+ /**
13954
+ * Every cap whose provider reads a `callerAddonId` in its input (the keychain's
13955
+ * owner check, device-history's `not-owner`, records' owner).
13956
+ *
13957
+ * The stamp is set ONLY by the transport (`stampCallerAddonId`, or stated by a
13958
+ * hub in-process caller). The generated HTTP/tRPC mount parses input with
13959
+ * `.loose()`, so without this a session could add the key itself and act as
13960
+ * another addon. The mount strips it for these caps.
13961
+ */
13962
+ var CALLER_STAMPED_CAPABILITIES = [
13963
+ "keychain",
13964
+ "device-history",
13965
+ "records",
13966
+ "integrations",
13967
+ "device-manager"
13968
+ ];
13969
+ /** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
13970
+ function withoutCallerStamp(input) {
13971
+ if (input === null || typeof input !== "object" || Array.isArray(input)) return input;
13972
+ if (!Object.prototype.hasOwnProperty.call(input, "callerAddonId")) return input;
13973
+ return Object.fromEntries(Object.entries(input).filter(([key]) => key !== "callerAddonId"));
13974
+ }
13975
+ //#endregion
13976
+ //#region src/capabilities/records.cap.ts
13977
+ /**
13978
+ * records - an addon's own facts and documents (D881): ledgers, audit rows,
13979
+ * config documents, mirrors. The third storage API next to `ctx.settings`
13980
+ * (operator intent, D870) and device-history (numbers over time, D850).
13981
+ *
13982
+ * Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
13983
+ * crossed a process and stated by a hub in-process caller (`ctx.records` does
13984
+ * that with the addon id closed over). It is deliberately NOT in any input
13985
+ * schema, so a session can never supply it, and a call with no stamp is refused
13986
+ * `records/no-caller`. A kind is readable and writable only by its owner; other
13987
+ * addons go through the owner's capability.
13988
+ *
13989
+ * Every read is three-way: a row, `null`, or the call THROWS. A failed read is
13990
+ * never `[]`. Secret fields are never on the wire: a read shows the
13991
+ * redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
13992
+ * resolves itself, and a write may carry only a keychain marker bound to the
13993
+ * row's own ref.
13994
+ *
13995
+ * Internal: addons reach it through `ctx.records`, never directly.
13996
+ */
13997
+ var RecordIdSchema = zod.z.string().min(1).max(256);
13998
+ /** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
13999
+ var RecordBodySchema = zod.z.record(zod.z.string(), zod.z.unknown());
14000
+ var RecordInputSchema = zod.z.object({
14001
+ id: RecordIdSchema,
14002
+ /** The device this row belongs to (D865 removal, per-device reads). */
14003
+ deviceId: zod.z.number().int().optional(),
14004
+ /** The domain clock, ms: observed / created / opened. */
14005
+ at: zod.z.number().int().optional(),
14006
+ /** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
14007
+ expiresAt: zod.z.number().int().optional(),
14008
+ data: RecordBodySchema
14009
+ });
14010
+ var RecordViewSchema = zod.z.object({
14011
+ id: zod.z.string(),
14012
+ deviceId: zod.z.number().int().nullable(),
14013
+ at: zod.z.number().nullable(),
14014
+ expiresAt: zod.z.number().nullable(),
14015
+ rev: zod.z.number().int(),
14016
+ updatedAt: zod.z.number(),
14017
+ data: RecordBodySchema
14018
+ });
14019
+ /** One predicate on a declared index field: equality, a set, or a range. */
14020
+ var RecordWhereValueSchema = zod.z.union([
14021
+ zod.z.string(),
14022
+ zod.z.number(),
14023
+ zod.z.boolean(),
14024
+ zod.z.object({ in: zod.z.array(zod.z.union([
14025
+ zod.z.string(),
14026
+ zod.z.number(),
14027
+ zod.z.boolean()
14028
+ ])).min(1).max(require_sleep.RECORD_BATCH_MAX) }),
14029
+ zod.z.object({
14030
+ gt: zod.z.union([zod.z.string(), zod.z.number()]).optional(),
14031
+ gte: zod.z.union([zod.z.string(), zod.z.number()]).optional(),
14032
+ lt: zod.z.union([zod.z.string(), zod.z.number()]).optional(),
14033
+ lte: zod.z.union([zod.z.string(), zod.z.number()]).optional()
14034
+ }).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
14035
+ ]);
14036
+ /** Declared index fields only. Anything else does not compile, by design. */
14037
+ var RecordWhereSchema = zod.z.record(require_sleep.RecordFieldPathSchema, RecordWhereValueSchema);
14038
+ var KindShape = { kind: require_sleep.RecordKindNameSchema };
14039
+ var TimeWindowShape = {
14040
+ deviceId: zod.z.number().int().optional(),
14041
+ atFrom: zod.z.number().optional(),
14042
+ atTo: zod.z.number().optional()
14043
+ };
14044
+ var RecordQueryInputSchema = zod.z.object({
14045
+ ...KindShape,
14046
+ ...TimeWindowShape,
14047
+ where: RecordWhereSchema.optional(),
14048
+ /** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
14049
+ order: zod.z.enum(["at", "id"]).optional(),
14050
+ desc: zod.z.boolean().optional(),
14051
+ limit: zod.z.number().int().min(1).max(require_sleep.RECORD_QUERY_MAX).default(100),
14052
+ /** Opaque keyset cursor from a previous answer. There is no offset. */
14053
+ cursor: zod.z.string().min(1).optional()
14054
+ });
14055
+ var RecordQueryResultSchema = zod.z.object({
14056
+ records: zod.z.array(RecordViewSchema),
14057
+ nextCursor: zod.z.string().nullable()
14058
+ });
14059
+ var RecordKindStateSchema = zod.z.enum([
14060
+ "created",
14061
+ "unchanged",
14062
+ "updated"
14063
+ ]);
14064
+ var DeclareKindResultSchema = zod.z.object({
14065
+ kindId: zod.z.number().int(),
14066
+ state: RecordKindStateSchema,
14067
+ createdIndexes: zod.z.array(zod.z.string()),
14068
+ /** The boot guard: the kind is empty while its legacy table still holds rows. */
14069
+ adoptionPending: zod.z.object({
14070
+ legacyTable: zod.z.string(),
14071
+ legacyRows: zod.z.number().int()
14072
+ }).nullable()
14073
+ });
14074
+ /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
14075
+ var SecretRefsList = zod.z.array(zod.z.string());
14076
+ var RecordSecretRefsSchema = zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.string()));
14077
+ var recordsCapability = {
14078
+ name: "records",
14079
+ scope: "system",
14080
+ mode: "singleton",
14081
+ internal: true,
14082
+ methods: {
14083
+ /** Reconcile this addon's kinds: create the catalog rows and the declared indexes. Additive only. */
14084
+ declareKinds: require_sleep.method(zod.z.object({ kinds: zod.z.record(require_sleep.RecordKindNameSchema, require_sleep.RecordKindDeclarationSchema) }), zod.z.object({ kinds: zod.z.record(zod.z.string(), DeclareKindResultSchema) }), {
14085
+ kind: "mutation",
14086
+ auth: "admin"
14087
+ }),
14088
+ get: require_sleep.method(zod.z.object({
14089
+ ...KindShape,
14090
+ id: RecordIdSchema
14091
+ }), RecordViewSchema.nullable(), { auth: "admin" }),
14092
+ getMany: require_sleep.method(zod.z.object({
14093
+ ...KindShape,
14094
+ ids: zod.z.array(RecordIdSchema).min(1).max(require_sleep.RECORD_BATCH_MAX)
14095
+ }), zod.z.array(RecordViewSchema), { auth: "admin" }),
14096
+ /** The keychain refs of the rows' secret fields, by id and concrete path. For the owner's `ctx.secrets`. */
14097
+ secretRefs: require_sleep.method(zod.z.object({
14098
+ ...KindShape,
14099
+ ids: zod.z.array(RecordIdSchema).min(1).max(require_sleep.RECORD_BATCH_MAX)
14100
+ }), RecordSecretRefsSchema, { auth: "admin" }),
14101
+ put: require_sleep.method(zod.z.object({
14102
+ ...KindShape,
14103
+ record: RecordInputSchema,
14104
+ /** Compare-and-set. `0` means "the row must not exist". */
14105
+ ifRev: zod.z.number().int().min(0).optional()
14106
+ }), zod.z.object({
14107
+ rev: zod.z.number().int(),
14108
+ releasedRefs: SecretRefsList
14109
+ }), {
14110
+ kind: "mutation",
14111
+ auth: "admin"
14112
+ }),
14113
+ putMany: require_sleep.method(zod.z.object({
14114
+ ...KindShape,
14115
+ records: zod.z.array(RecordInputSchema).min(1).max(require_sleep.RECORD_BATCH_MAX)
14116
+ }), zod.z.object({
14117
+ count: zod.z.number().int(),
14118
+ releasedRefs: SecretRefsList
14119
+ }), {
14120
+ kind: "mutation",
14121
+ auth: "admin"
14122
+ }),
14123
+ /** One-statement RFC 7396 merge: `null` removes a field; a merge never reads. */
14124
+ patch: require_sleep.method(zod.z.object({
14125
+ ...KindShape,
14126
+ id: RecordIdSchema,
14127
+ data: RecordBodySchema,
14128
+ at: zod.z.number().int().nullable().optional(),
14129
+ expiresAt: zod.z.number().int().nullable().optional(),
14130
+ ifRev: zod.z.number().int().min(1).optional()
14131
+ }), zod.z.object({
14132
+ rev: zod.z.number().int(),
14133
+ releasedRefs: SecretRefsList
14134
+ }), {
14135
+ kind: "mutation",
14136
+ auth: "admin"
14137
+ }),
14138
+ delete: require_sleep.method(zod.z.object({
14139
+ ...KindShape,
14140
+ id: RecordIdSchema
14141
+ }), zod.z.object({
14142
+ deleted: zod.z.boolean(),
14143
+ secretRefs: SecretRefsList
14144
+ }), {
14145
+ kind: "mutation",
14146
+ auth: "admin"
14147
+ }),
14148
+ deleteMany: require_sleep.method(zod.z.object({
14149
+ ...KindShape,
14150
+ ids: zod.z.array(RecordIdSchema).min(1).max(require_sleep.RECORD_BATCH_MAX)
14151
+ }), zod.z.object({
14152
+ deleted: zod.z.number().int(),
14153
+ secretRefs: SecretRefsList
14154
+ }), {
14155
+ kind: "mutation",
14156
+ auth: "admin"
14157
+ }),
14158
+ query: require_sleep.method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }),
14159
+ count: require_sleep.method(zod.z.object({
14160
+ ...KindShape,
14161
+ ...TimeWindowShape,
14162
+ where: RecordWhereSchema.optional()
14163
+ }), zod.z.object({ count: zod.z.number().int() }), { auth: "admin" }),
14164
+ histogram: require_sleep.method(zod.z.object({
14165
+ ...KindShape,
14166
+ deviceId: zod.z.number().int().optional(),
14167
+ from: zod.z.number(),
14168
+ to: zod.z.number(),
14169
+ bucketMs: zod.z.number().int().positive()
14170
+ }), zod.z.object({ buckets: zod.z.array(zod.z.object({
14171
+ bucketStart: zod.z.number(),
14172
+ count: zod.z.number().int()
14173
+ })) }), { auth: "admin" }),
14174
+ /** Index-served only: every field must belong to ONE declared index. */
14175
+ aggregate: require_sleep.method(zod.z.object({
14176
+ ...KindShape,
14177
+ op: zod.z.enum([
14178
+ "sum",
14179
+ "min",
14180
+ "max",
14181
+ "count"
14182
+ ]),
14183
+ field: require_sleep.RecordFieldPathSchema.optional(),
14184
+ groupBy: require_sleep.RecordFieldPathSchema.optional(),
14185
+ where: RecordWhereSchema.optional()
14186
+ }), zod.z.object({ rows: zod.z.array(zod.z.object({
14187
+ group: zod.z.union([
14188
+ zod.z.string(),
14189
+ zod.z.number(),
14190
+ zod.z.null()
14191
+ ]),
14192
+ value: zod.z.number().nullable()
14193
+ })) }), { auth: "admin" }),
14194
+ /** Batched (5 000 rows per statement, yielding between). Needs a predicate: there is no "delete all". */
14195
+ deleteWhere: require_sleep.method(zod.z.object({
14196
+ ...KindShape,
14197
+ deviceId: zod.z.number().int().optional(),
14198
+ atBefore: zod.z.number().optional(),
14199
+ where: RecordWhereSchema.optional()
14200
+ }), zod.z.object({
14201
+ deleted: zod.z.number().int(),
14202
+ secretRefs: SecretRefsList
14203
+ }), {
14204
+ kind: "mutation",
14205
+ auth: "admin"
14206
+ }),
14207
+ /** The D865 hook body: every kind of this addon declared `deviceRemoval: 'delete'`. */
14208
+ deleteDevice: require_sleep.method(zod.z.object({
14209
+ deviceId: zod.z.number().int(),
14210
+ kinds: zod.z.array(require_sleep.RecordKindNameSchema).optional()
14211
+ }), zod.z.object({
14212
+ deleted: zod.z.record(zod.z.string(), zod.z.number().int()),
14213
+ secretRefs: SecretRefsList
14214
+ }), {
14215
+ kind: "mutation",
14216
+ auth: "admin"
14217
+ }),
14218
+ /** A monotonically increasing integer per kind (replaces "resume from the highest"). */
14219
+ allocateId: require_sleep.method(zod.z.object(KindShape), zod.z.object({ id: zod.z.number().int() }), {
14220
+ kind: "mutation",
14221
+ auth: "admin"
14222
+ })
14223
+ }
14224
+ };
14225
+ //#endregion
13903
14226
  //#region src/capabilities/storage-admin.cap.ts
13904
14227
  /** One table of the settings database. */
13905
14228
  var StorageTableSchema = zod.z.object({
@@ -13913,6 +14236,28 @@ var StorageTableSchema = zod.z.object({
13913
14236
  /** Declared by an addon since this engine process started (a running addon claims it). */
13914
14237
  declaredThisBoot: zod.z.boolean()
13915
14238
  });
14239
+ /** One declared record kind (D881) as System -> Data shows it. */
14240
+ var StorageKindSchema = zod.z.object({
14241
+ owner: zod.z.string(),
14242
+ kind: zod.z.string(),
14243
+ database: zod.z.enum(["settings", "events"]),
14244
+ class: zod.z.string(),
14245
+ state: zod.z.enum([
14246
+ "declared",
14247
+ "orphaned",
14248
+ "dropped"
14249
+ ]),
14250
+ /** `null` when the caller asked for no counts (`counts: false`). */
14251
+ rows: zod.z.number().int().nonnegative().nullable(),
14252
+ /** Rows x the average size of a sample; null for an empty kind. */
14253
+ bytesEstimate: zod.z.number().int().nonnegative().nullable(),
14254
+ writeTrigger: zod.z.string(),
14255
+ retention: require_sleep.RecordRetentionSchema,
14256
+ /** `true` when the kind is an entry kind (the generic entries UI lists it). */
14257
+ entry: zod.z.boolean(),
14258
+ /** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
14259
+ declaration: require_sleep.RecordKindDeclarationSchema
14260
+ });
13916
14261
  /**
13917
14262
  * The collections retired by exact name: the D870 ones (their data became keys
13918
14263
  * of the camera's settings) and the three D871 leftovers (the `stats-5m` tables
@@ -13931,7 +14276,16 @@ var STORAGE_ADMIN_MOVED_COLLECTIONS = [
13931
14276
  "pipeline-orchestrator:device-features",
13932
14277
  "pipeline-analytics:stats-5m",
13933
14278
  "pipeline-orchestrator:stats-5m",
13934
- "vec_object_clip"
14279
+ "vec_object_clip",
14280
+ "addon-devices",
14281
+ "sections",
14282
+ "provider-settings",
14283
+ "device-settings",
14284
+ "ai:budgets",
14285
+ "pipeline-analytics:retrain-dataset-versions",
14286
+ "training:dataset-versions",
14287
+ "benchmark:replay-runs",
14288
+ "viewer-settings-snapshots"
13935
14289
  ];
13936
14290
  /** The per-addon blob tables a scoped name may carry. */
13937
14291
  var STORAGE_ADMIN_SCOPED_BASES = [
@@ -13981,6 +14335,105 @@ var storageAdminCapability = {
13981
14335
  }), {
13982
14336
  kind: "mutation",
13983
14337
  auth: "admin"
14338
+ }),
14339
+ /** Every record kind of both files with rows, a size estimate, class and retention (D881). */
14340
+ listKinds: require_sleep.method(zod.z.object({
14341
+ owner: zod.z.string().min(1).optional(),
14342
+ /** `false` skips the per-kind row count (a catalog read only). Default true. */
14343
+ counts: zod.z.boolean().optional()
14344
+ }), zod.z.object({ kinds: zod.z.array(StorageKindSchema) }), { auth: "admin" }),
14345
+ /**
14346
+ * Read-only diagnosis of ANY owner's kind: the same indexed query as the
14347
+ * owner's, secret fields redacted, audited in the engine log.
14348
+ */
14349
+ readRecords: require_sleep.method(RecordQueryInputSchema.extend({
14350
+ owner: zod.z.string().min(1),
14351
+ kind: require_sleep.RecordKindNameSchema
14352
+ }), RecordQueryResultSchema, { auth: "admin" }),
14353
+ /**
14354
+ * The migration copy path (D881): write rows into a kind AS ITS DECLARED
14355
+ * OWNER. Refused when that owner's manifest does not declare the kind.
14356
+ * Idempotent (a put by id, so a re-run resumes). A secret field carries a
14357
+ * keychain marker bound to the row's own ref - the operator script imports
14358
+ * the value first - and a plain string there is refused.
14359
+ */
14360
+ adoptRecords: require_sleep.method(zod.z.object({
14361
+ owner: zod.z.string().min(1),
14362
+ kind: require_sleep.RecordKindNameSchema,
14363
+ records: zod.z.array(RecordInputSchema).min(1).max(require_sleep.RECORD_BATCH_MAX),
14364
+ /** The LAST batch: the copy is complete, the boot guard stops asking. */
14365
+ complete: zod.z.boolean().optional()
14366
+ }), zod.z.object({ adopted: zod.z.number().int() }), {
14367
+ kind: "mutation",
14368
+ auth: "admin"
14369
+ })
14370
+ }
14371
+ };
14372
+ //#endregion
14373
+ //#region src/capabilities/record-entries.cap.ts
14374
+ /**
14375
+ * record-entries - the ONE admin surface for every list of user-created entries
14376
+ * (D881): notification targets, brokers, LLM profiles, anything an addon
14377
+ * declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
14378
+ *
14379
+ * The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
14380
+ * the entry body with `secret: true` on every credential field, so a password
14381
+ * field is derived from the schema and never from a name. `putEntry` takes the
14382
+ * redaction token for an untouched secret (the stored value is kept), a string
14383
+ * for a new one, and the clear instruction to remove one. A read never carries
14384
+ * a secret value, and a locked keychain refuses the write with
14385
+ * `records/secret-unavailable` instead of storing plaintext.
14386
+ *
14387
+ * Hub-only, served in-process (it acts for each entry's owner on the keychain).
14388
+ */
14389
+ var EntryKindInfoSchema = zod.z.object({
14390
+ owner: zod.z.string(),
14391
+ kind: require_sleep.RecordKindNameSchema,
14392
+ title: zod.z.string(),
14393
+ nameField: zod.z.string(),
14394
+ /** JSON Schema of the body; `secret: true` marks a password field. */
14395
+ fields: zod.z.record(zod.z.string(), zod.z.unknown()),
14396
+ secretPaths: zod.z.array(zod.z.string()),
14397
+ rows: zod.z.number().int().nonnegative()
14398
+ });
14399
+ var EntryViewSchema = zod.z.object({
14400
+ id: RecordIdSchema,
14401
+ name: zod.z.string(),
14402
+ rev: zod.z.number().int(),
14403
+ updatedAt: zod.z.number(),
14404
+ /** Secret fields hold the redaction token. */
14405
+ data: RecordBodySchema
14406
+ });
14407
+ var EntryAddress = {
14408
+ owner: zod.z.string().min(1),
14409
+ kind: require_sleep.RecordKindNameSchema
14410
+ };
14411
+ var recordEntriesCapability = {
14412
+ name: "record-entries",
14413
+ scope: "system",
14414
+ mode: "singleton",
14415
+ methods: {
14416
+ listEntryKinds: require_sleep.method(zod.z.object({}), zod.z.object({ kinds: zod.z.array(EntryKindInfoSchema) }), { auth: "admin" }),
14417
+ listEntries: require_sleep.method(zod.z.object({ ...EntryAddress }), zod.z.object({ entries: zod.z.array(EntryViewSchema) }), { auth: "admin" }),
14418
+ /** Create (no `id`: one is generated) or edit. `ifRev` guards an edit against a concurrent one. */
14419
+ putEntry: require_sleep.method(zod.z.object({
14420
+ ...EntryAddress,
14421
+ id: RecordIdSchema.optional(),
14422
+ data: RecordBodySchema,
14423
+ ifRev: zod.z.number().int().min(1).optional()
14424
+ }), zod.z.object({
14425
+ id: zod.z.string(),
14426
+ rev: zod.z.number().int()
14427
+ }), {
14428
+ kind: "mutation",
14429
+ auth: "admin"
14430
+ }),
14431
+ deleteEntry: require_sleep.method(zod.z.object({
14432
+ ...EntryAddress,
14433
+ id: RecordIdSchema
14434
+ }), zod.z.object({ deleted: zod.z.boolean() }), {
14435
+ kind: "mutation",
14436
+ auth: "admin"
13984
14437
  })
13985
14438
  }
13986
14439
  };
@@ -39304,38 +39757,6 @@ var llmRuntimeCapability = {
39304
39757
  }
39305
39758
  };
39306
39759
  //#endregion
39307
- //#region src/capabilities/raw-secret-migration.ts
39308
- /**
39309
- * The report of a one-shot "move this owner's plaintext secrets into the
39310
- * keychain" run (D878). COUNTS only - never a value, never a ref.
39311
- *
39312
- * The owner runs it on its own rows, through its own write path; an operator
39313
- * script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
39314
- * Dry run (`apply: false`) reports what WOULD move and changes nothing.
39315
- */
39316
- var RawSecretMigrationInputSchema = zod.z.object({
39317
- /** `false` (the default of the script) = report only. */
39318
- apply: zod.z.boolean() });
39319
- var RawSecretMigrationReportSchema = zod.z.object({
39320
- apply: zod.z.boolean(),
39321
- /** Rows that can carry a secret (a profile, an enrolment). */
39322
- rows: zod.z.number().int(),
39323
- /** Rows whose secret was plaintext when the run started. */
39324
- raw: zod.z.number().int(),
39325
- /** Rows that already held a keychain marker when the run started. */
39326
- markers: zod.z.number().int(),
39327
- /** Plaintext rows moved by THIS run (always 0 on a dry run). */
39328
- migrated: zod.z.number().int(),
39329
- /** Plaintext rows left in place because the move or its read-back failed. */
39330
- failed: zod.z.number().int(),
39331
- /** After the run: rows still holding plaintext. */
39332
- remainingRaw: zod.z.number().int(),
39333
- /** After the run: markers the keychain could not resolve right now. */
39334
- unresolvedMarkers: zod.z.number().int(),
39335
- /** True when nothing is raw and every marker resolves. */
39336
- verified: zod.z.boolean()
39337
- });
39338
- //#endregion
39339
39760
  //#region src/capabilities/llm.cap.ts
39340
39761
  /**
39341
39762
  * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
@@ -77938,6 +78359,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
77938
78359
  addonId: null,
77939
78360
  access: "view"
77940
78361
  },
78362
+ "coreBlocks.migrateRawSecrets": {
78363
+ capName: "core-blocks",
78364
+ capScope: "system",
78365
+ addonId: null,
78366
+ access: "create"
78367
+ },
77941
78368
  "coreBlocks.restart": {
77942
78369
  capName: "core-blocks",
77943
78370
  capScope: "system",
@@ -82690,6 +83117,30 @@ var METHOD_ACCESS_MAP = Object.freeze({
82690
83117
  addonId: null,
82691
83118
  access: "create"
82692
83119
  },
83120
+ "recordEntries.deleteEntry": {
83121
+ capName: "record-entries",
83122
+ capScope: "system",
83123
+ addonId: null,
83124
+ access: "delete"
83125
+ },
83126
+ "recordEntries.listEntries": {
83127
+ capName: "record-entries",
83128
+ capScope: "system",
83129
+ addonId: null,
83130
+ access: "view"
83131
+ },
83132
+ "recordEntries.listEntryKinds": {
83133
+ capName: "record-entries",
83134
+ capScope: "system",
83135
+ addonId: null,
83136
+ access: "view"
83137
+ },
83138
+ "recordEntries.putEntry": {
83139
+ capName: "record-entries",
83140
+ capScope: "system",
83141
+ addonId: null,
83142
+ access: "create"
83143
+ },
82693
83144
  "recording.getAvailability": {
82694
83145
  capName: "recording",
82695
83146
  capScope: "device",
@@ -82990,6 +83441,102 @@ var METHOD_ACCESS_MAP = Object.freeze({
82990
83441
  addonId: null,
82991
83442
  access: "view"
82992
83443
  },
83444
+ "records.aggregate": {
83445
+ capName: "records",
83446
+ capScope: "system",
83447
+ addonId: null,
83448
+ access: "view"
83449
+ },
83450
+ "records.allocateId": {
83451
+ capName: "records",
83452
+ capScope: "system",
83453
+ addonId: null,
83454
+ access: "create"
83455
+ },
83456
+ "records.count": {
83457
+ capName: "records",
83458
+ capScope: "system",
83459
+ addonId: null,
83460
+ access: "view"
83461
+ },
83462
+ "records.declareKinds": {
83463
+ capName: "records",
83464
+ capScope: "system",
83465
+ addonId: null,
83466
+ access: "create"
83467
+ },
83468
+ "records.delete": {
83469
+ capName: "records",
83470
+ capScope: "system",
83471
+ addonId: null,
83472
+ access: "delete"
83473
+ },
83474
+ "records.deleteDevice": {
83475
+ capName: "records",
83476
+ capScope: "system",
83477
+ addonId: null,
83478
+ access: "delete"
83479
+ },
83480
+ "records.deleteMany": {
83481
+ capName: "records",
83482
+ capScope: "system",
83483
+ addonId: null,
83484
+ access: "delete"
83485
+ },
83486
+ "records.deleteWhere": {
83487
+ capName: "records",
83488
+ capScope: "system",
83489
+ addonId: null,
83490
+ access: "delete"
83491
+ },
83492
+ "records.get": {
83493
+ capName: "records",
83494
+ capScope: "system",
83495
+ addonId: null,
83496
+ access: "view"
83497
+ },
83498
+ "records.getMany": {
83499
+ capName: "records",
83500
+ capScope: "system",
83501
+ addonId: null,
83502
+ access: "view"
83503
+ },
83504
+ "records.histogram": {
83505
+ capName: "records",
83506
+ capScope: "system",
83507
+ addonId: null,
83508
+ access: "view"
83509
+ },
83510
+ "records.patch": {
83511
+ capName: "records",
83512
+ capScope: "system",
83513
+ addonId: null,
83514
+ access: "create"
83515
+ },
83516
+ "records.put": {
83517
+ capName: "records",
83518
+ capScope: "system",
83519
+ addonId: null,
83520
+ access: "create"
83521
+ },
83522
+ "records.putMany": {
83523
+ capName: "records",
83524
+ capScope: "system",
83525
+ addonId: null,
83526
+ access: "create"
83527
+ },
83528
+ "records.query": {
83529
+ capName: "records",
83530
+ capScope: "system",
83531
+ addonId: null,
83532
+ access: "view"
83533
+ },
83534
+ "records.secretRefs": {
83535
+ capName: "records",
83536
+ capScope: "system",
83537
+ addonId: null,
83538
+ access: "view"
83539
+ },
82993
83540
  "sceneMonitor.captureReference": {
82994
83541
  capName: "scene-monitor",
82995
83542
  capScope: "device",
@@ -83422,18 +83969,36 @@ var METHOD_ACCESS_MAP = Object.freeze({
83422
83969
  addonId: null,
83423
83970
  access: "create"
83424
83971
  },
83972
+ "storageAdmin.adoptRecords": {
83973
+ capName: "storage-admin",
83974
+ capScope: "system",
83975
+ addonId: null,
83976
+ access: "create"
83977
+ },
83425
83978
  "storageAdmin.dropCollection": {
83426
83979
  capName: "storage-admin",
83427
83980
  capScope: "system",
83428
83981
  addonId: null,
83429
83982
  access: "delete"
83430
83983
  },
83984
+ "storageAdmin.listKinds": {
83985
+ capName: "storage-admin",
83986
+ capScope: "system",
83987
+ addonId: null,
83988
+ access: "view"
83989
+ },
83431
83990
  "storageAdmin.listTables": {
83432
83991
  capName: "storage-admin",
83433
83992
  capScope: "system",
83434
83993
  addonId: null,
83435
83994
  access: "view"
83436
83995
  },
83996
+ "storageAdmin.readRecords": {
83997
+ capName: "storage-admin",
83998
+ capScope: "system",
83999
+ addonId: null,
84000
+ access: "view"
84001
+ },
83437
84002
  "storageEvictable.evict": {
83438
84003
  capName: "storage-evictable",
83439
84004
  capScope: "system",
@@ -84981,11 +85546,13 @@ var KNOWN_CAP_NAMES = [
84981
85546
  "ptz",
84982
85547
  "ptz-autotrack",
84983
85548
  "reboot",
85549
+ "record-entries",
84984
85550
  "recording",
84985
85551
  "recording-archive",
84986
85552
  "recording-export",
84987
85553
  "recording-onboard",
84988
85554
  "recording-signal",
85555
+ "records",
84989
85556
  "scene-monitor",
84990
85557
  "script-runner",
84991
85558
  "server-management",
@@ -85186,8 +85753,10 @@ var SYSTEM_CAP_NAMES = [
85186
85753
  "pipeline-runner",
85187
85754
  "plate-gallery",
85188
85755
  "platform-probe",
85756
+ "record-entries",
85189
85757
  "recording-archive",
85190
85758
  "recording-export",
85759
+ "records",
85191
85760
  "server-management",
85192
85761
  "settings-store",
85193
85762
  "smtp-provider",
@@ -87255,11 +87824,13 @@ var CAPABILITY_NAMES = {
87255
87824
  ptz: "ptz",
87256
87825
  ptzAutotrack: "ptz-autotrack",
87257
87826
  reboot: "reboot",
87827
+ recordEntries: "record-entries",
87258
87828
  recording: "recording",
87259
87829
  recordingArchive: "recording-archive",
87260
87830
  recordingExport: "recording-export",
87261
87831
  recordingOnboard: "recording-onboard",
87262
87832
  recordingSignal: "recording-signal",
87833
+ records: "records",
87263
87834
  sceneMonitor: "scene-monitor",
87264
87835
  scriptRunner: "script-runner",
87265
87836
  serverManagement: "server-management",
@@ -87817,6 +88388,10 @@ var CAPABILITY_ROUTER_KEYS = [
87817
88388
  key: "reboot",
87818
88389
  name: "reboot"
87819
88390
  },
88391
+ {
88392
+ key: "recordEntries",
88393
+ name: "record-entries"
88394
+ },
87820
88395
  {
87821
88396
  key: "recording",
87822
88397
  name: "recording"
@@ -87837,6 +88412,10 @@ var CAPABILITY_ROUTER_KEYS = [
87837
88412
  key: "recordingSignal",
87838
88413
  name: "recording-signal"
87839
88414
  },
88415
+ {
88416
+ key: "records",
88417
+ name: "records"
88418
+ },
87840
88419
  {
87841
88420
  key: "sceneMonitor",
87842
88421
  name: "scene-monitor"
@@ -88144,11 +88723,13 @@ var ALL_CAPABILITY_DEFINITIONS = [
88144
88723
  ptzCapability,
88145
88724
  ptzAutotrackCapability,
88146
88725
  rebootCapability,
88726
+ recordEntriesCapability,
88147
88727
  recordingCapability,
88148
88728
  recordingArchiveCapability,
88149
88729
  recordingExportCapability,
88150
88730
  recordingOnboardCapability,
88151
88731
  recordingSignalCapability,
88732
+ recordsCapability,
88152
88733
  sceneMonitorCapability,
88153
88734
  scriptRunnerCapability,
88154
88735
  serverManagementCapability,
@@ -90369,6 +90950,37 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
90369
90950
  form: "single",
90370
90951
  optional: false
90371
90952
  }],
90953
+ "records.count": [{
90954
+ name: "deviceId",
90955
+ form: "single",
90956
+ optional: true
90957
+ }],
90958
+ "records.deleteDevice": [{
90959
+ name: "deviceId",
90960
+ form: "single",
90961
+ optional: false
90962
+ }],
90963
+ "records.deleteWhere": [{
90964
+ name: "deviceId",
90965
+ form: "single",
90966
+ optional: true
90967
+ }],
90968
+ "records.histogram": [{
90969
+ name: "deviceId",
90970
+ form: "single",
90971
+ optional: true
90972
+ }],
90973
+ "records.putMany": [{
90974
+ name: "records",
90975
+ form: "object-array",
90976
+ optional: false,
90977
+ itemField: "deviceId"
90978
+ }],
90979
+ "records.query": [{
90980
+ name: "deviceId",
90981
+ form: "single",
90982
+ optional: true
90983
+ }],
90372
90984
  "sceneMonitor.captureReference": [{
90373
90985
  name: "deviceId",
90374
90986
  form: "single",
@@ -90485,6 +91097,17 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
90485
91097
  form: "single",
90486
91098
  optional: false
90487
91099
  }],
91100
+ "storageAdmin.adoptRecords": [{
91101
+ name: "records",
91102
+ form: "object-array",
91103
+ optional: false,
91104
+ itemField: "deviceId"
91105
+ }],
91106
+ "storageAdmin.readRecords": [{
91107
+ name: "deviceId",
91108
+ form: "single",
91109
+ optional: true
91110
+ }],
90488
91111
  "streamBroker.acquireEgressTranscode": [{
90489
91112
  name: "deviceId",
90490
91113
  form: "single",
@@ -91013,6 +91636,14 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
91013
91636
  "recordingArchive.startStorageMigrationMove",
91014
91637
  "recordingExport.createExport",
91015
91638
  "recordingExport.listExports",
91639
+ "records.count",
91640
+ "records.deleteDevice",
91641
+ "records.deleteWhere",
91642
+ "records.histogram",
91643
+ "records.putMany",
91644
+ "records.query",
91645
+ "storageAdmin.adoptRecords",
91646
+ "storageAdmin.readRecords",
91016
91647
  "streamBroker.acquireEgressTranscode",
91017
91648
  "streamBroker.applyDeviceSettingsPatch",
91018
91649
  "streamBroker.assignProfile",
@@ -92061,6 +92692,7 @@ function createSystemProxy(api) {
92061
92692
  compile: (input) => dispatch("coreBlocks", "compile", "mutation", input),
92062
92693
  getBlockSettings: (input) => dispatch("coreBlocks", "getBlockSettings", "query", input),
92063
92694
  updateBlockSettings: (input) => dispatch("coreBlocks", "updateBlockSettings", "mutation", input),
92695
+ migrateRawSecrets: (input) => dispatch("coreBlocks", "migrateRawSecrets", "mutation", input),
92064
92696
  getTypeDefs: (input) => dispatch("coreBlocks", "getTypeDefs", "query", input),
92065
92697
  createComposition: (input) => dispatch("coreBlocks", "createComposition", "mutation", input),
92066
92698
  updateComposition: (input) => dispatch("coreBlocks", "updateComposition", "mutation", input),
@@ -92496,6 +93128,12 @@ function createSystemProxy(api) {
92496
93128
  assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
92497
93129
  unassignPlates: (input) => dispatch("plateGallery", "unassignPlates", "mutation", input)
92498
93130
  },
93131
+ recordEntries: {
93132
+ listEntryKinds: (input) => dispatch("recordEntries", "listEntryKinds", "query", input),
93133
+ listEntries: (input) => dispatch("recordEntries", "listEntries", "query", input),
93134
+ putEntry: (input) => dispatch("recordEntries", "putEntry", "mutation", input),
93135
+ deleteEntry: (input) => dispatch("recordEntries", "deleteEntry", "mutation", input)
93136
+ },
92499
93137
  recordingArchive: {
92500
93138
  getAvailabilityBatch: (input) => dispatch("recordingArchive", "getAvailabilityBatch", "query", input),
92501
93139
  getDaysWithRecordingsBatch: (input) => dispatch("recordingArchive", "getDaysWithRecordingsBatch", "query", input),
@@ -101405,6 +102043,7 @@ exports.AdoptionJobStateSchema = AdoptionJobStateSchema;
101405
102043
  exports.AdoptionListCandidatesInputSchema = ListCandidatesInputSchema;
101406
102044
  exports.AdoptionListCandidatesOutputSchema = ListCandidatesOutputSchema;
101407
102045
  exports.AdoptionOutcomeSchema = AdoptionOutcomeSchema;
102046
+ exports.AdoptionPendingError = require_sleep.AdoptionPendingError;
101408
102047
  exports.AdoptionReleaseInputSchema = ReleaseInputSchema;
101409
102048
  exports.AdoptionStatusSchema = AdoptionStatusSchema;
101410
102049
  exports.AgentLoadSummarySchema = AgentLoadSummarySchema;
@@ -101491,6 +102130,7 @@ exports.BackupTriggerResultSchema = BackupTriggerResultSchema;
101491
102130
  exports.BaseAddon = require_sleep.BaseAddon;
101492
102131
  exports.BaseDevice = BaseDevice;
101493
102132
  exports.BaseDeviceProvider = BaseDeviceProvider;
102133
+ exports.BatchTooLargeError = require_sleep.BatchTooLargeError;
101494
102134
  exports.BatteryStatusSchema = BatteryStatusSchema;
101495
102135
  exports.BinaryStatusSchema = BinaryStatusSchema;
101496
102136
  exports.BirthDecisionQueryInputSchema = BirthDecisionQueryInputSchema;
@@ -101520,6 +102160,7 @@ exports.BrokerTestConnectionResultSchema = TestConnectionResultSchema;
101520
102160
  exports.BrokerUnsubscribeInputSchema = UnsubscribeInputSchema;
101521
102161
  exports.BucketAccumulator = BucketAccumulator;
101522
102162
  exports.BulkRecordSchema = BulkRecordSchema;
102163
+ exports.CALLER_STAMPED_CAPABILITIES = CALLER_STAMPED_CAPABILITIES;
101523
102164
  exports.CAMERA_SENSORS_NOT_LOADED = CAMERA_SENSORS_NOT_LOADED;
101524
102165
  exports.CAMERA_SENSORS_SETTINGS_KEY = CAMERA_SENSORS_SETTINGS_KEY;
101525
102166
  exports.CAMERA_SWITCH_CATALOG = CAMERA_SWITCH_CATALOG;
@@ -101830,7 +102471,9 @@ exports.DayNightModeSchema = DayNightModeSchema;
101830
102471
  exports.DayNightOptionsSchema = DayNightOptionsSchema;
101831
102472
  exports.DayNightSettingsPatchSchema = DayNightSettingsPatchSchema;
101832
102473
  exports.DayNightStatusSchema = DayNightStatusSchema;
102474
+ exports.DeclarationRefusedError = require_sleep.DeclarationRefusedError;
101833
102475
  exports.DeclareCollectionInputSchema = DeclareCollectionInputSchema;
102476
+ exports.DeclareKindResultSchema = DeclareKindResultSchema;
101834
102477
  exports.DeclaredDevices = DeclaredDevices;
101835
102478
  exports.DecodedAudioChunkSchema = require_sleep.DecodedAudioChunkSchema;
101836
102479
  exports.DeleteIntegrationResultSchema = DeleteIntegrationResultSchema;
@@ -101930,6 +102573,9 @@ exports.EmbeddingTowerSchema = EmbeddingTowerSchema;
101930
102573
  exports.EncodeProfileSchema = EncodeProfileSchema;
101931
102574
  exports.EnrichedWidgetMetadataSchema = EnrichedWidgetMetadataSchema;
101932
102575
  exports.EnrollSelfInputSchema = EnrollSelfInputSchema;
102576
+ exports.EntryDescriptorSchema = require_sleep.EntryDescriptorSchema;
102577
+ exports.EntryKindInfoSchema = EntryKindInfoSchema;
102578
+ exports.EntryViewSchema = EntryViewSchema;
101933
102579
  exports.EnumSensorDateTimeFormatSchema = EnumSensorDateTimeFormatSchema;
101934
102580
  exports.EnumSensorStatusSchema = EnumSensorStatusSchema;
101935
102581
  exports.ErrorCodeSchema = require_sleep.ErrorCodeSchema;
@@ -102012,8 +102658,10 @@ exports.FeatureManifestSchema = FeatureManifestSchema;
102012
102658
  exports.FeatureProbeStatusSchema = FeatureProbeStatusSchema;
102013
102659
  exports.FieldClaimModeSchema = FieldClaimModeSchema;
102014
102660
  exports.FieldClaimSchema = FieldClaimSchema;
102661
+ exports.FilterRequiredError = require_sleep.FilterRequiredError;
102015
102662
  exports.FloodStatusSchema = FloodStatusSchema;
102016
102663
  exports.Fmp4BoxSplitter = require_composition.Fmp4BoxSplitter;
102664
+ exports.ForeignSecretMarkerError = require_sleep.ForeignSecretMarkerError;
102017
102665
  exports.FrameHandleSchema = require_sleep.FrameHandleSchema;
102018
102666
  exports.FrameInputSchema = FrameInputSchema;
102019
102667
  exports.FrameLazyCountersSchema = FrameLazyCountersSchema;
@@ -102078,6 +102726,7 @@ exports.IntegrationLiteSchema = IntegrationLiteSchema;
102078
102726
  exports.IntegrationWithStateSchema = IntegrationWithStateSchema;
102079
102727
  exports.IntercomAbilitySchema = IntercomAbilitySchema;
102080
102728
  exports.IntercomStatusSchema = IntercomStatusSchema;
102729
+ exports.InvalidRecordError = require_sleep.InvalidRecordError;
102081
102730
  exports.KEYCHAIN_MAX_REFS_PER_CALL = KEYCHAIN_MAX_REFS_PER_CALL;
102082
102731
  exports.KEYCHAIN_RESET_CONFIRMATION = KEYCHAIN_RESET_CONFIRMATION;
102083
102732
  exports.KEYCHAIN_RESET_TRIGGER_ACTOR = KEYCHAIN_RESET_TRIGGER_ACTOR;
@@ -102506,6 +103155,7 @@ exports.NetworkAddressSchema = NetworkAddressSchema;
102506
103155
  exports.NetworkEndpointSchema = NetworkEndpointSchema;
102507
103156
  exports.NetworkLinkStatusSchema = NetworkLinkStatusSchema;
102508
103157
  exports.NetworkTunnelStartedDataSchema = NetworkTunnelStartedDataSchema;
103158
+ exports.NoCallerError = require_sleep.NoCallerError;
102509
103159
  exports.NodeBenchCellSchema = NodeBenchCellSchema;
102510
103160
  exports.NodeBenchClipSchema = NodeBenchClipSchema;
102511
103161
  exports.NodeBenchDeviceCellSchema = NodeBenchDeviceCellSchema;
@@ -102634,6 +103284,7 @@ exports.PlacementDeviceStatsSchema = PlacementDeviceStatsSchema;
102634
103284
  exports.PlacementNodeStatsSchema = PlacementNodeStatsSchema;
102635
103285
  exports.PlacementStatsInputSchema = PlacementStatsInputSchema;
102636
103286
  exports.PlacementStatsSchema = PlacementStatsSchema;
103287
+ exports.PlaintextSecretError = require_sleep.PlaintextSecretError;
102637
103288
  exports.PolygonPointSchema = PolygonPointSchema;
102638
103289
  exports.PoolMemoryWatchdog = PoolMemoryWatchdog;
102639
103290
  exports.PowerMeterStatusSchema = PowerMeterStatusSchema;
@@ -102677,9 +103328,25 @@ exports.RECORDING_EXPORT_MAX_READ_BYTES = RECORDING_EXPORT_MAX_READ_BYTES;
102677
103328
  exports.RECORDING_SOURCE_CAMSTACK = RECORDING_SOURCE_CAMSTACK;
102678
103329
  exports.RECORDING_SOURCE_CAMSTACK_ADDON = RECORDING_SOURCE_CAMSTACK_ADDON;
102679
103330
  exports.RECORDING_TIMELINE_BATCH_MAX = RECORDING_TIMELINE_BATCH_MAX;
103331
+ exports.RECORDS_ERROR_CODES = require_sleep.RECORDS_ERROR_CODES;
103332
+ exports.RECORD_BATCH_MAX = require_sleep.RECORD_BATCH_MAX;
103333
+ exports.RECORD_BATCH_MAX_BYTES = require_sleep.RECORD_BATCH_MAX_BYTES;
103334
+ exports.RECORD_CLASSES = require_sleep.RECORD_CLASSES;
103335
+ exports.RECORD_DATABASES = require_sleep.RECORD_DATABASES;
103336
+ exports.RECORD_DEFAULT_MAX_DATA_BYTES = require_sleep.RECORD_DEFAULT_MAX_DATA_BYTES;
103337
+ exports.RECORD_DELETE_BATCH = require_sleep.RECORD_DELETE_BATCH;
103338
+ exports.RECORD_ID_MAX_LENGTH = require_sleep.RECORD_ID_MAX_LENGTH;
103339
+ exports.RECORD_MAX_DATA_BYTES = require_sleep.RECORD_MAX_DATA_BYTES;
103340
+ exports.RECORD_MAX_INDEXES = require_sleep.RECORD_MAX_INDEXES;
103341
+ exports.RECORD_MAX_INDEX_FIELDS = require_sleep.RECORD_MAX_INDEX_FIELDS;
103342
+ exports.RECORD_QUERY_MAX = require_sleep.RECORD_QUERY_MAX;
103343
+ exports.RECORD_SECRET_COLLECTION_PREFIX = require_sleep.RECORD_SECRET_COLLECTION_PREFIX;
103344
+ exports.RECORD_SETTINGS_MAX_ROWS = require_sleep.RECORD_SETTINGS_MAX_ROWS;
103345
+ exports.RECORD_SWEEP_INTERVAL_MS = require_sleep.RECORD_SWEEP_INTERVAL_MS;
102680
103346
  exports.REDACTED_SECRET = require_sleep.REDACTED_SECRET;
102681
103347
  exports.REMOVAL_RECONCILE_INTERVAL_MS = REMOVAL_RECONCILE_INTERVAL_MS;
102682
103348
  exports.REMOVED_MODEL_IDS = REMOVED_MODEL_IDS;
103349
+ exports.REMOVE_LEAF = require_sleep.REMOVE_LEAF;
102683
103350
  exports.RESERVED_BINDING_NAMES = require_composition.RESERVED_BINDING_NAMES;
102684
103351
  exports.RESERVED_COLLECTION_SOURCES = RESERVED_COLLECTION_SOURCES;
102685
103352
  exports.RESTORED_CAP_NAMES = RESTORED_CAP_NAMES;
@@ -102712,7 +103379,24 @@ exports.RebuildObjectEmbeddingsRefusalSchema = RebuildObjectEmbeddingsRefusalSch
102712
103379
  exports.RecentTracksPageSchema = RecentTracksPageSchema;
102713
103380
  exports.RecentTracksQueryInput = RecentTracksQueryInput;
102714
103381
  exports.RecommendationReasonSchema = RecommendationReasonSchema;
103382
+ exports.RecordBodySchema = RecordBodySchema;
103383
+ exports.RecordFieldPathSchema = require_sleep.RecordFieldPathSchema;
103384
+ exports.RecordIdSchema = RecordIdSchema;
103385
+ exports.RecordIndexSchema = require_sleep.RecordIndexSchema;
103386
+ exports.RecordInputSchema = RecordInputSchema;
103387
+ exports.RecordKindDeclarationSchema = require_sleep.RecordKindDeclarationSchema;
103388
+ exports.RecordKindNameSchema = require_sleep.RecordKindNameSchema;
103389
+ exports.RecordNotFoundError = require_sleep.RecordNotFoundError;
103390
+ exports.RecordQueryInputSchema = RecordQueryInputSchema;
103391
+ exports.RecordQueryResultSchema = RecordQueryResultSchema;
103392
+ exports.RecordRetentionSchema = require_sleep.RecordRetentionSchema;
103393
+ exports.RecordSecretRefsSchema = RecordSecretRefsSchema;
103394
+ exports.RecordSecretUnavailableError = require_sleep.RecordSecretUnavailableError;
103395
+ exports.RecordTooLargeError = require_sleep.RecordTooLargeError;
102715
103396
  exports.RecordTriggerSchema = RecordTriggerSchema;
103397
+ exports.RecordUniqueViolationError = require_sleep.RecordUniqueViolationError;
103398
+ exports.RecordViewSchema = RecordViewSchema;
103399
+ exports.RecordWhereSchema = RecordWhereSchema;
102716
103400
  exports.RecordWindowSchema = RecordWindowSchema;
102717
103401
  exports.RecordingAvailabilityForDeviceSchema = RecordingAvailabilityForDeviceSchema;
102718
103402
  exports.RecordingAvailabilitySchema = RecordingAvailabilitySchema;
@@ -102749,6 +103433,7 @@ exports.RecordingStorageModeSchema = RecordingStorageModeSchema;
102749
103433
  exports.RecordingStorageUsageSchema = RecordingStorageUsageSchema;
102750
103434
  exports.RecordingTriggersSchema = RecordingTriggersSchema;
102751
103435
  exports.RecordingWeekdaySchema = RecordingWeekdaySchema;
103436
+ exports.RecordsError = require_sleep.RecordsError;
102752
103437
  exports.RedirectLoginMethodSchema = RedirectLoginMethodSchema;
102753
103438
  exports.RelocatableMediaCountInputSchema = RelocatableMediaCountInputSchema;
102754
103439
  exports.RelocatableMediaCountSchema = RelocatableMediaCountSchema;
@@ -102813,6 +103498,7 @@ exports.RetrainTrackSchema = RetrainTrackSchema;
102813
103498
  exports.RetrainTrainingCorpusResolveResultSchema = RetrainTrainingCorpusResolveResultSchema;
102814
103499
  exports.RetrainTrainingCorpusSelectionSchema = RetrainTrainingCorpusSelectionSchema;
102815
103500
  exports.RetrainTransitionResultSchema = RetrainTransitionResultSchema;
103501
+ exports.RevConflictError = require_sleep.RevConflictError;
102816
103502
  exports.RevokeOwnDeviceCertificateResultSchema = RevokeOwnDeviceCertificateResultSchema;
102817
103503
  exports.RingBuffer = RingBuffer;
102818
103504
  exports.RootStepSupplySchema = RootStepSupplySchema;
@@ -102941,6 +103627,7 @@ exports.StorageDrainProgressSchema = StorageDrainProgressSchema;
102941
103627
  exports.StorageEndDownloadInputSchema = EndDownloadInputSchema;
102942
103628
  exports.StorageEvictionPolicySchema = StorageEvictionPolicySchema;
102943
103629
  exports.StorageFinalizeUploadInputSchema = FinalizeUploadInputSchema;
103630
+ exports.StorageKindSchema = StorageKindSchema;
102944
103631
  exports.StorageLocationDeclarationSchema = StorageLocationDeclarationSchema;
102945
103632
  exports.StorageLocationModeSchema = StorageLocationModeSchema;
102946
103633
  exports.StorageLocationRefSchema = StorageLocationRefSchema;
@@ -103086,10 +103773,12 @@ exports.UNIT_TABLE = UNIT_TABLE;
103086
103773
  exports.USE_ROOT_MODEL_DEFAULTS = USE_ROOT_MODEL_DEFAULTS;
103087
103774
  exports.USE_ROOT_MODEL_SETTING_KEY = USE_ROOT_MODEL_SETTING_KEY;
103088
103775
  exports.UnifiedBrokerInfoSchema = BrokerInfoSchema;
103776
+ exports.UnindexedFilterError = require_sleep.UnindexedFilterError;
103089
103777
  exports.UninstallNodeOutcomeSchema = UninstallNodeOutcomeSchema;
103090
103778
  exports.UninstallNodeResultSchema = UninstallNodeResultSchema;
103091
103779
  exports.UninstallPackageResultSchema = UninstallPackageResultSchema;
103092
103780
  exports.UnitConversionError = UnitConversionError;
103781
+ exports.UnknownRecordKindError = require_sleep.UnknownRecordKindError;
103093
103782
  exports.UnstampedEventMediaCountSchema = UnstampedEventMediaCountSchema;
103094
103783
  exports.UnstampedRowsSchema = UnstampedRowsSchema;
103095
103784
  exports.UpdateBlockerSchema = UpdateBlockerSchema;
@@ -103201,8 +103890,10 @@ exports.asBoolean = require_sleep.asBoolean;
103201
103890
  exports.asJsonArray = require_sleep.asJsonArray;
103202
103891
  exports.asJsonObject = require_sleep.asJsonObject;
103203
103892
  exports.asNumber = require_sleep.asNumber;
103893
+ exports.asRecordsError = require_sleep.asRecordsError;
103204
103894
  exports.asString = require_sleep.asString;
103205
103895
  exports.assertTimelapseCadences = assertTimelapseCadences;
103896
+ exports.assertValidDeclaration = require_sleep.assertValidDeclaration;
103206
103897
  exports.assignNodeColorId = require_node_color.assignNodeColorId;
103207
103898
  exports.audioAnalysisCapability = audioAnalysisCapability;
103208
103899
  exports.audioAnalyzerCapability = audioAnalyzerCapability;
@@ -103294,6 +103985,7 @@ exports.collectHydratedFieldValues = require_sleep.collectHydratedFieldValues;
103294
103985
  exports.collectKeychainStoredKeys = require_sleep.collectKeychainStoredKeys;
103295
103986
  exports.collectModelBoundKeys = collectModelBoundKeys;
103296
103987
  exports.collectSecretConfigKeys = require_sleep.collectSecretConfigKeys;
103988
+ exports.collectSecretLeaves = require_sleep.collectSecretLeaves;
103297
103989
  exports.collectSecretMarkerRefs = require_sleep.collectSecretMarkerRefs;
103298
103990
  exports.collectZodSecretPaths = require_sleep.collectZodSecretPaths;
103299
103991
  exports.colorCapability = colorCapability;
@@ -103346,6 +104038,7 @@ exports.createHwAccelCache = createHwAccelCache;
103346
104038
  exports.createLazyTrpcSource = require_sleep.createLazyTrpcSource;
103347
104039
  exports.createLogChannelsProvider = createLogChannelsProvider;
103348
104040
  exports.createMirrorSource = require_sleep.createMirrorSource;
104041
+ exports.createRecordsAccess = require_sleep.createRecordsAccess;
103349
104042
  exports.createRuntimeStateBridge = createRuntimeStateBridge;
103350
104043
  exports.createSecretsAccess = require_sleep.createSecretsAccess;
103351
104044
  exports.createSliceHandle = require_sleep.createSliceHandle;
@@ -103358,13 +104051,16 @@ exports.databaseSnapshotCapability = databaseSnapshotCapability;
103358
104051
  exports.dayNightCapability = dayNightCapability;
103359
104052
  exports.dayOfWeekToIndex = dayOfWeekToIndex;
103360
104053
  exports.declarationOwnerNodeId = declarationOwnerNodeId;
104054
+ exports.declarationsOf = require_sleep.declarationsOf;
103361
104055
  exports.declareLogChannel = declareLogChannel;
103362
104056
  exports.decodeVectorBase64 = decodeVectorBase64;
103363
104057
  exports.decoderCapability = decoderCapability;
103364
104058
  exports.defaultDeliveryForSection = defaultDeliveryForSection;
103365
104059
  exports.defaultDeviceFor = defaultDeviceFor;
103366
104060
  exports.defineCustomActions = require_sleep.defineCustomActions;
104061
+ exports.defineEntryKind = require_sleep.defineEntryKind;
103367
104062
  exports.defineExtensionSlotProvider = defineExtensionSlotProvider;
104063
+ exports.defineRecordKinds = require_sleep.defineRecordKinds;
103368
104064
  exports.deleteAlarmProfile = deleteAlarmProfile;
103369
104065
  exports.deriveBatteryPresence = deriveBatteryPresence;
103370
104066
  exports.deriveCameraSwitches = deriveCameraSwitches;
@@ -103429,6 +104125,7 @@ exports.emitsCollectionSelector = emitsCollectionSelector;
103429
104125
  exports.encodeProfileFromStreamShape = encodeProfileFromStreamShape;
103430
104126
  exports.encodeVectorBase64 = encodeVectorBase64;
103431
104127
  exports.ensureAlarmProfiles = ensureAlarmProfiles;
104128
+ exports.entryBody = require_sleep.entryBody;
103432
104129
  exports.enumSensorCapability = enumSensorCapability;
103433
104130
  exports.enumerateInferenceDevices = enumerateInferenceDevices;
103434
104131
  exports.enumerateItemArrayFields = enumerateItemArrayFields;
@@ -103578,6 +104275,7 @@ exports.isSecretFieldView = require_sleep.isSecretFieldView;
103578
104275
  exports.isSecretMarker = require_sleep.isSecretMarker;
103579
104276
  exports.isSecretMarkerLike = require_sleep.isSecretMarkerLike;
103580
104277
  exports.isSecretRef = require_sleep.isSecretRef;
104278
+ exports.isSecretRefOwnedBy = require_sleep.isSecretRefOwnedBy;
103581
104279
  exports.isSingleHubAddressRole = isSingleHubAddressRole;
103582
104280
  exports.isSoftwareDecode = require_composition.isSoftwareDecode;
103583
104281
  exports.isSourceCap = require_composition.isSourceCap;
@@ -103628,6 +104326,7 @@ exports.makeProfileBrokerId = require_sleep.makeProfileBrokerId;
103628
104326
  exports.makeSecretMarker = require_sleep.makeSecretMarker;
103629
104327
  exports.makeSourceBrokerId = require_sleep.makeSourceBrokerId;
103630
104328
  exports.mapAudioLabelToMacro = mapAudioLabelToMacro;
104329
+ exports.mapSecretLeaves = require_sleep.mapSecretLeaves;
103631
104330
  exports.markdownToHtmlLite = markdownToHtmlLite;
103632
104331
  exports.markdownToText = markdownToText;
103633
104332
  exports.maskUrlCredentials = require_sleep.maskUrlCredentials;
@@ -103709,6 +104408,7 @@ exports.parseProcStatus = parseProcStatus;
103709
104408
  exports.parseProfileBrokerId = require_sleep.parseProfileBrokerId;
103710
104409
  exports.parseRetrainRevisionConflict = parseRetrainRevisionConflict;
103711
104410
  exports.parseRuleSection = parseRuleSection;
104411
+ exports.parseSecretPath = require_sleep.parseSecretPath;
103712
104412
  exports.parseSecretRef = require_sleep.parseSecretRef;
103713
104413
  exports.parseSecretStatePath = require_sleep.parseSecretStatePath;
103714
104414
  exports.parseSessionPlacementPolicy = parseSessionPlacementPolicy;
@@ -103773,11 +104473,17 @@ exports.rebootCapability = rebootCapability;
103773
104473
  exports.recommendNode = recommendNode;
103774
104474
  exports.reconcileBlockDevices = reconcileBlockDevices;
103775
104475
  exports.reconcileRemovedDevices = reconcileRemovedDevices;
104476
+ exports.recordArrayItemPath = require_sleep.recordArrayItemPath;
104477
+ exports.recordEntriesCapability = recordEntriesCapability;
104478
+ exports.recordSecretCollection = require_sleep.recordSecretCollection;
104479
+ exports.recordSecretRef = require_sleep.recordSecretRef;
103776
104480
  exports.recordingArchiveCapability = recordingArchiveCapability;
103777
104481
  exports.recordingCapability = recordingCapability;
103778
104482
  exports.recordingExportCapability = recordingExportCapability;
103779
104483
  exports.recordingOnboardCapability = recordingOnboardCapability;
103780
104484
  exports.recordingSignalCapability = recordingSignalCapability;
104485
+ exports.recordsCapability = recordsCapability;
104486
+ exports.recordsErrorFromMessage = require_sleep.recordsErrorFromMessage;
103781
104487
  exports.rectsToCells = rectsToCells;
103782
104488
  exports.reducePoints = reducePoints;
103783
104489
  exports.registerKnownSecret = require_sleep.registerKnownSecret;
@@ -103864,6 +104570,7 @@ exports.scoreRuntimes = scoreRuntimes;
103864
104570
  exports.scriptRunnerCapability = scriptRunnerCapability;
103865
104571
  exports.scrubKnownSecrets = require_sleep.scrubKnownSecrets;
103866
104572
  exports.searchIcons = searchIcons;
104573
+ exports.secretArrayPrefixes = require_sleep.secretArrayPrefixes;
103867
104574
  exports.secretTreeFromPaths = require_sleep.secretTreeFromPaths;
103868
104575
  exports.secretTreeFromSchema = require_sleep.secretTreeFromSchema;
103869
104576
  exports.secureActuationFor = secureActuationFor;
@@ -104000,6 +104707,7 @@ exports.wiringProbeKindSchema = wiringProbeKindSchema;
104000
104707
  exports.wiringProbeResultSchema = wiringProbeResultSchema;
104001
104708
  exports.withFieldFrom = withFieldFrom;
104002
104709
  exports.withLocationMode = withLocationMode;
104710
+ exports.withoutCallerStamp = withoutCallerStamp;
104003
104711
  exports.withoutField = withoutField;
104004
104712
  exports.writeModelBoundSetting = writeModelBoundSetting;
104005
104713
  exports.zodEntriesToConfigUI = zodEntriesToConfigUI;