@camstack/types 1.2.389 → 1.2.391
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.
- package/dist/addon.js +1 -8
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/records.cap.d.ts +2 -8
- package/dist/capabilities/storage-admin.cap.d.ts +7 -50
- package/dist/generated/addon-api.d.ts +0 -21
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +2 -2
- package/dist/index.js +22 -94
- package/dist/index.mjs +23 -88
- package/dist/records/entry-kind.d.ts +0 -1
- package/dist/records/errors.d.ts +1 -5
- package/dist/records/index.d.ts +0 -2
- package/dist/records/record-kind.d.ts +0 -1
- package/dist/records/records-access.d.ts +1 -6
- package/dist/{sleep-BSuCCFjf.mjs → sleep-CSuN0thG.mjs} +9 -60
- package/dist/{sleep-DKtoyk6X.js → sleep-gRQc2IoX.js} +8 -101
- package/package.json +1 -1
- package/dist/records/settings-array-adopts-from.d.ts +0 -12
- package/dist/records/settings-brokers-adopts-from.d.ts +0 -10
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-gRQc2IoX.js");
|
|
3
3
|
const require_event_category = require("./event-category-eSqkye-K.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-BhVbr0NX.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -2285,7 +2285,6 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
2285
2285
|
]
|
|
2286
2286
|
});
|
|
2287
2287
|
//#endregion
|
|
2288
|
-
exports.AdoptionPendingError = require_sleep.AdoptionPendingError;
|
|
2289
2288
|
exports.BOOT_RECOVERY_BACKOFF_MS = require_sleep.BOOT_RECOVERY_BACKOFF_MS;
|
|
2290
2289
|
exports.BaseAddon = require_sleep.BaseAddon;
|
|
2291
2290
|
exports.BatchTooLargeError = require_sleep.BatchTooLargeError;
|
|
@@ -2348,8 +2347,6 @@ exports.RecordsError = require_sleep.RecordsError;
|
|
|
2348
2347
|
exports.RevConflictError = require_sleep.RevConflictError;
|
|
2349
2348
|
exports.SECRET_CLEAR = require_sleep.SECRET_CLEAR;
|
|
2350
2349
|
exports.SECRET_REF_SCHEME = require_sleep.SECRET_REF_SCHEME;
|
|
2351
|
-
exports.SETTINGS_ARRAY_ADOPTS_PREFIX = require_sleep.SETTINGS_ARRAY_ADOPTS_PREFIX;
|
|
2352
|
-
exports.SETTINGS_BROKERS_ADOPTS_PREFIX = require_sleep.SETTINGS_BROKERS_ADOPTS_PREFIX;
|
|
2353
2350
|
exports.UnindexedFilterError = require_sleep.UnindexedFilterError;
|
|
2354
2351
|
exports.UnknownRecordKindError = require_sleep.UnknownRecordKindError;
|
|
2355
2352
|
exports.addonSliceHandleApi = require_sleep.addonSliceHandleApi;
|
|
@@ -2402,8 +2399,6 @@ exports.normalizeSecretOwner = require_sleep.normalizeSecretOwner;
|
|
|
2402
2399
|
exports.parseJsonUnknown = require_sleep.parseJsonUnknown;
|
|
2403
2400
|
exports.parseSecretPath = require_sleep.parseSecretPath;
|
|
2404
2401
|
exports.parseSecretRef = require_sleep.parseSecretRef;
|
|
2405
|
-
exports.parseSettingsArrayAdoptsFrom = require_sleep.parseSettingsArrayAdoptsFrom;
|
|
2406
|
-
exports.parseSettingsBrokersAdoptsFrom = require_sleep.parseSettingsBrokersAdoptsFrom;
|
|
2407
2402
|
exports.readErrorI18n = require_sleep.readErrorI18n;
|
|
2408
2403
|
exports.readNodePin = require_sleep.readNodePin;
|
|
2409
2404
|
exports.recordArrayItemPath = require_sleep.recordArrayItemPath;
|
|
@@ -2415,8 +2410,6 @@ exports.resolveSecretViewsIn = require_sleep.resolveSecretViewsIn;
|
|
|
2415
2410
|
exports.scopeKey = require_sleep.scopeKey;
|
|
2416
2411
|
exports.scrubKnownSecrets = require_sleep.scrubKnownSecrets;
|
|
2417
2412
|
exports.secretArrayPrefixes = require_sleep.secretArrayPrefixes;
|
|
2418
|
-
exports.settingsArrayAdoptsFrom = require_sleep.settingsArrayAdoptsFrom;
|
|
2419
|
-
exports.settingsBrokersAdoptsFrom = require_sleep.settingsBrokersAdoptsFrom;
|
|
2420
2413
|
exports.shortSecretRefHash = require_sleep.shortSecretRefHash;
|
|
2421
2414
|
exports.sleep = require_sleep.sleep;
|
|
2422
2415
|
exports.toSecretFieldView = require_sleep.toSecretFieldView;
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as DisposerChain, $t as recordSecretRef, A as HF_REPO, An as RECORD_MAX_INDEXES, B as describeCustomActions, Bn as clearKnownSecrets, Br as toSecretFieldView, Bt as RecordIndexSchema, C as addonSliceHandleApi, Cn as RECORD_BATCH_MAX_BYTES, Cr as emitReadiness, Dn as RECORD_DELETE_BATCH, En as RECORD_DEFAULT_MAX_DATA_BYTES, F as DEVICE_CHILDREN_BATCH_MAX, Fn as RECORD_SWEEP_INTERVAL_MS, Fr as isSecretClear, Ft as defineEntryKind, Gn as shortSecretRefHash, Gt as declarationsOf, H as adminUiCapability, Hn as knownSecretCount, Ht as RecordKindNameSchema, I as CALLER_STAMPED_CAPABILITIES, In as resolveSecretViewsIn, Ir as isSecretFieldView, It as entryBody, Jn as PEER_BYTES_STALL_MS, Jt as collectSecretLeaves, Kn as PEER_BYTES_CHUNK_BYTES, Kt as defineRecordKinds, L as withoutCallerStamp, Ln as REVALIDATE_AFTER_MS, Lr as isSecretMarker, Lt as createRecordsAccess, Mn as RECORD_QUERY_MAX, N as deviceOpsCapability, Nn as RECORD_SECRET_COLLECTION_PREFIX, Nr as SECRET_CLEAR, On as RECORD_ID_MAX_LENGTH, P as viewerUiCapability, Pn as RECORD_SETTINGS_MAX_ROWS, Pr as classifySecretWrite, Pt as makeInMemoryRecords, Qt as recordSecretCollection, Rn as createSecretsAccess, Rr as isSecretMarkerLike, Rt as EntryDescriptorSchema, Sn as RECORD_BATCH_MAX, Sr as createEvent, Tn as RECORD_DATABASES, Un as registerKnownSecret, Ut as RecordRetentionSchema, Vn as forgetKnownSecret, Vt as RecordKindDeclarationSchema, Wn as scrubKnownSecrets, Wt as assertValidDeclaration, X as expandCapMethods, Xt as parseSecretPath, Yn as PEER_BYTES_TICKET_TTL_MS, Yt as mapSecretLeaves, Zn as DATAPLANE_SECRET_HEADER, Zt as recordArrayItemPath, _ as readErrorI18n, _n as RevConflictError, _r as isSecretRef, an as DeclarationRefusedError, b as isDeviceScopedCap, bn as asRecordsError, c as asString, cn as InvalidRecordError, ct as ReadinessTimeoutError, d as parseJsonUnknown, dn as RECORDS_ERROR_CODES, dt as scopeKey, en as secretArrayPrefixes, er as BaseAddon, f as hfModelUrl, fn as RecordNotFoundError, fr as SECRET_REF_SCHEME, g as ErrorI18nPayloadSchema, gn as RecordsError, gr as globalSecretScope, hn as RecordUniqueViolationError, hr as formatSecretScope, in as BatchTooLargeError, it as readNodePin, jn as RECORD_MAX_INDEX_FIELDS, kn as RECORD_MAX_DATA_BYTES, ln as NoCallerError, mn as RecordTooLargeError, mr as buildSecretRef, nn as collectZodSecretPaths, nr as normalizeAddonInitResult, o as asJsonObject, on as FilterRequiredError, ot as MODEL_FORMATS, p as BOOT_RECOVERY_BACKOFF_MS, pn as RecordSecretUnavailableError, pr as arrayItemFieldPath, qn as PEER_BYTES_MAX_OUTSTANDING, qt as REMOVE_LEAF, r as maskUrlCredentials, rn as isZodSecret, rt as nodePin, sn as ForeignSecretMarkerError, st as ReadinessRegistry, t as sleep, un as PlaintextSecretError, vn as UnindexedFilterError, vr as normalizeSecretOwner, w as createEventBusSliceSource, wn as RECORD_CLASSES, x as createDeviceProxy, xn as recordsErrorFromMessage, y as DEVICE_SCOPED_CAPS, yn as UnknownRecordKindError, yr as parseSecretRef, zn as MIN_SCRUBBED_LENGTH, zr as makeSecretMarker, zt as RecordFieldPathSchema } from "./sleep-CSuN0thG.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-DOl51-Ij.mjs";
|
|
3
3
|
import { a as DeviceType, t as errMsg } from "./err-msg-BXKzRBwg.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
@@ -2284,4 +2284,4 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
2284
2284
|
]
|
|
2285
2285
|
});
|
|
2286
2286
|
//#endregion
|
|
2287
|
-
export {
|
|
2287
|
+
export { BOOT_RECOVERY_BACKOFF_MS, BaseAddon, BatchTooLargeError, CALLER_STAMPED_CAPABILITIES, CAP_ADVANCE_FIELDS, CAP_INPUT_DEFAULTS, CAP_STATE_LEAVES, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DEVICE_SCOPED_CAPS, DeclarationRefusedError, DeviceType, DisposerChain, EntryDescriptorSchema, ErrorI18nPayloadSchema, EventCategory, FilterRequiredError, ForeignSecretMarkerError, HF_REPO, InvalidRecordError, MIN_SCRUBBED_LENGTH, MODEL_FORMATS, NoCallerError, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, PROVIDER_OPTIONAL_METHODS, PlaintextSecretError, RECORDS_ERROR_CODES, RECORD_BATCH_MAX, RECORD_BATCH_MAX_BYTES, RECORD_CLASSES, RECORD_DATABASES, RECORD_DEFAULT_MAX_DATA_BYTES, RECORD_DELETE_BATCH, RECORD_ID_MAX_LENGTH, RECORD_MAX_DATA_BYTES, RECORD_MAX_INDEXES, RECORD_MAX_INDEX_FIELDS, RECORD_QUERY_MAX, RECORD_SECRET_COLLECTION_PREFIX, RECORD_SETTINGS_MAX_ROWS, RECORD_SWEEP_INTERVAL_MS, REMOVE_LEAF, REVALIDATE_AFTER_MS, ReadinessRegistry, ReadinessTimeoutError, RecordFieldPathSchema, RecordIndexSchema, RecordKindDeclarationSchema, RecordKindNameSchema, RecordNotFoundError, RecordRetentionSchema, RecordSecretUnavailableError, RecordTooLargeError, RecordUniqueViolationError, RecordsError, RevConflictError, SECRET_CLEAR, SECRET_REF_SCHEME, UnindexedFilterError, UnknownRecordKindError, addonSliceHandleApi, adminUiCapability, arrayItemFieldPath, asJsonObject, asRecordsError, asString, assertValidDeclaration, buildSecretRef, classifySecretWrite, clearKnownSecrets, collectSecretLeaves, collectZodSecretPaths, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, declarationsOf, defineEntryKind, defineRecordKinds, describeCustomActions, deviceOpsCapability, emitReadiness, entryBody, errMsg, expandCapMethods, forgetKnownSecret, formatSecretScope, globalSecretScope, hfModelUrl, isCollectionArrayMethodName, isDeviceScopedCap, isProviderOptionalMethodName, isSecretClear, isSecretFieldView, isSecretMarker, isSecretMarkerLike, isSecretRef, isZodSecret, knownSecretCount, makeInMemoryRecords, makeSecretMarker, mapSecretLeaves, maskUrlCredentials, nodePin, normalizeAddonInitResult, normalizeSecretOwner, parseJsonUnknown, parseSecretPath, parseSecretRef, readErrorI18n, readNodePin, recordArrayItemPath, recordSecretCollection, recordSecretRef, recordsErrorFromMessage, registerKnownSecret, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, secretArrayPrefixes, shortSecretRefHash, sleep, toSecretFieldView, viewerUiCapability, withCapInputDefaults, withoutCallerStamp };
|
|
@@ -109,10 +109,7 @@ export declare const DeclareKindResultSchema: z.ZodObject<{
|
|
|
109
109
|
updated: "updated";
|
|
110
110
|
}>;
|
|
111
111
|
createdIndexes: z.ZodArray<z.ZodString>;
|
|
112
|
-
adoptionPending: z.
|
|
113
|
-
legacyTable: z.ZodString;
|
|
114
|
-
legacyRows: z.ZodNumber;
|
|
115
|
-
}, z.core.$strip>>;
|
|
112
|
+
adoptionPending: z.ZodNull;
|
|
116
113
|
}, z.core.$strip>;
|
|
117
114
|
export type DeclareKindResult = z.infer<typeof DeclareKindResultSchema>;
|
|
118
115
|
export declare const RecordSecretRefsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -190,10 +187,7 @@ export declare const recordsCapability: {
|
|
|
190
187
|
updated: "updated";
|
|
191
188
|
}>;
|
|
192
189
|
createdIndexes: z.ZodArray<z.ZodString>;
|
|
193
|
-
adoptionPending: z.
|
|
194
|
-
legacyTable: z.ZodString;
|
|
195
|
-
legacyRows: z.ZodNumber;
|
|
196
|
-
}, z.core.$strip>>;
|
|
190
|
+
adoptionPending: z.ZodNull;
|
|
197
191
|
}, z.core.$strip>>;
|
|
198
192
|
}, z.core.$strip>, "mutation">;
|
|
199
193
|
readonly get: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
@@ -102,13 +102,13 @@ export declare const StorageKindSchema: z.ZodObject<{
|
|
|
102
102
|
}, z.core.$strip>;
|
|
103
103
|
export type StorageKind = z.infer<typeof StorageKindSchema>;
|
|
104
104
|
/**
|
|
105
|
-
* The collections retired by exact name
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
105
|
+
* The collections retired by exact name by D870 (their data became keys of the
|
|
106
|
+
* camera's settings). No addon declares any of them any more; the engine still
|
|
107
|
+
* refuses one a running addon declared this boot. `dropCollection` may remove
|
|
108
|
+
* these, the per-addon scoped `addon-settings` / `addon-devices` / `sections`
|
|
109
|
+
* tables, and the tables of owners that are no longer installed - nothing else.
|
|
110
|
+
* The records-migration leftovers (D871 `stats-5m`, the phase-0 tables) were
|
|
111
|
+
* dropped by hand on the operator hubs and left this list with D900.
|
|
112
112
|
*/
|
|
113
113
|
export declare const STORAGE_ADMIN_MOVED_COLLECTIONS: readonly string[];
|
|
114
114
|
/** The per-addon blob tables a scoped name may carry. */
|
|
@@ -296,49 +296,6 @@ export declare const storageAdminCapability: {
|
|
|
296
296
|
}, z.core.$strip>>;
|
|
297
297
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
298
298
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
299
|
-
/**
|
|
300
|
-
* The migration copy path (D881): write rows into a kind AS ITS DECLARED
|
|
301
|
-
* OWNER. Refused when that owner's manifest does not declare the kind.
|
|
302
|
-
* Idempotent (a put by id, so a re-run resumes). A secret field carries a
|
|
303
|
-
* keychain marker bound to the row's own ref - the operator script imports
|
|
304
|
-
* the value first - and a plain string there is refused.
|
|
305
|
-
*/
|
|
306
|
-
readonly adoptRecords: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
307
|
-
owner: z.ZodString;
|
|
308
|
-
kind: z.ZodString;
|
|
309
|
-
records: z.ZodArray<z.ZodObject<{
|
|
310
|
-
id: z.ZodString;
|
|
311
|
-
deviceId: z.ZodOptional<z.ZodNumber>;
|
|
312
|
-
at: z.ZodOptional<z.ZodNumber>;
|
|
313
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
314
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
315
|
-
}, z.core.$strip>>;
|
|
316
|
-
complete: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
318
|
-
adopted: z.ZodNumber;
|
|
319
|
-
}, z.core.$strip>, "mutation">;
|
|
320
|
-
/**
|
|
321
|
-
* Read rows from a legacy KV table by physical name, without a running
|
|
322
|
-
* `declareCollection`. Used by `records-adopt.ts` when the owner already
|
|
323
|
-
* moved to records and the collection door refuses the name.
|
|
324
|
-
*/
|
|
325
|
-
readonly readLegacyCollection: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
326
|
-
collection: z.ZodString;
|
|
327
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
328
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
329
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
331
|
-
id: z.ZodString;
|
|
332
|
-
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
333
|
-
}, z.core.$strip>>;
|
|
334
|
-
nextCursor: z.ZodNullable<z.ZodString>;
|
|
335
|
-
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
336
|
-
/** True when a declared kind lists `collection` as `adoptsFrom` and adoption finished. */
|
|
337
|
-
readonly isAdoptedLegacyTable: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
338
|
-
collection: z.ZodString;
|
|
339
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
-
adopted: z.ZodBoolean;
|
|
341
|
-
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
342
299
|
};
|
|
343
300
|
};
|
|
344
301
|
export type IStorageAdminProvider = InferProvider<typeof storageAdminCapability>;
|
|
@@ -9158,27 +9158,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9158
9158
|
output: z.infer<typeof storageAdminCapability.methods.readRecords.output>;
|
|
9159
9159
|
meta: object;
|
|
9160
9160
|
}>;
|
|
9161
|
-
adoptRecords: TRPCMutationProcedure<{
|
|
9162
|
-
input: {
|
|
9163
|
-
[x: string]: unknown;
|
|
9164
|
-
} & z.input<typeof storageAdminCapability.methods.adoptRecords.input>;
|
|
9165
|
-
output: z.infer<typeof storageAdminCapability.methods.adoptRecords.output>;
|
|
9166
|
-
meta: object;
|
|
9167
|
-
}>;
|
|
9168
|
-
readLegacyCollection: TRPCQueryProcedure<{
|
|
9169
|
-
input: {
|
|
9170
|
-
[x: string]: unknown;
|
|
9171
|
-
} & z.input<typeof storageAdminCapability.methods.readLegacyCollection.input>;
|
|
9172
|
-
output: z.infer<typeof storageAdminCapability.methods.readLegacyCollection.output>;
|
|
9173
|
-
meta: object;
|
|
9174
|
-
}>;
|
|
9175
|
-
isAdoptedLegacyTable: TRPCQueryProcedure<{
|
|
9176
|
-
input: {
|
|
9177
|
-
[x: string]: unknown;
|
|
9178
|
-
} & z.input<typeof storageAdminCapability.methods.isAdoptedLegacyTable.input>;
|
|
9179
|
-
output: z.infer<typeof storageAdminCapability.methods.isAdoptedLegacyTable.output>;
|
|
9180
|
-
meta: object;
|
|
9181
|
-
}>;
|
|
9182
9161
|
}>>;
|
|
9183
9162
|
storageEvictable: TRPCBuiltRouter<{
|
|
9184
9163
|
ctx: TrpcContext;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1382 method paths across 179 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
10
|
-
*
|
|
9
|
+
* Coverage: 550 methods carry a device reference, of which
|
|
10
|
+
* 179 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
13
13
|
* a numeric device field (targets[].deviceId) are all mapped; the matcher
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-gRQc2IoX.js");
|
|
3
3
|
const require_event_category = require("./event-category-eSqkye-K.js");
|
|
4
4
|
const require_composition = require("./composition-eoYYVfOp.js");
|
|
5
5
|
const require_node_color = require("./node-color.js");
|
|
@@ -14503,11 +14503,12 @@ var DeclareKindResultSchema = zod.z.object({
|
|
|
14503
14503
|
kindId: zod.z.number().int(),
|
|
14504
14504
|
state: RecordKindStateSchema,
|
|
14505
14505
|
createdIndexes: zod.z.array(zod.z.string()),
|
|
14506
|
-
/**
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14506
|
+
/**
|
|
14507
|
+
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
14508
|
+
* it stays on the wire, null, because an addon built before the removal reads
|
|
14509
|
+
* an ABSENT field as "adoption pending" and refuses to start.
|
|
14510
|
+
*/
|
|
14511
|
+
adoptionPending: zod.z.null()
|
|
14511
14512
|
});
|
|
14512
14513
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
14513
14514
|
var SecretRefsList = zod.z.array(zod.z.string());
|
|
@@ -14697,13 +14698,13 @@ var StorageKindSchema = zod.z.object({
|
|
|
14697
14698
|
declaration: require_sleep.RecordKindDeclarationSchema
|
|
14698
14699
|
});
|
|
14699
14700
|
/**
|
|
14700
|
-
* The collections retired by exact name
|
|
14701
|
-
*
|
|
14702
|
-
*
|
|
14703
|
-
*
|
|
14704
|
-
*
|
|
14705
|
-
*
|
|
14706
|
-
*
|
|
14701
|
+
* The collections retired by exact name by D870 (their data became keys of the
|
|
14702
|
+
* camera's settings). No addon declares any of them any more; the engine still
|
|
14703
|
+
* refuses one a running addon declared this boot. `dropCollection` may remove
|
|
14704
|
+
* these, the per-addon scoped `addon-settings` / `addon-devices` / `sections`
|
|
14705
|
+
* tables, and the tables of owners that are no longer installed - nothing else.
|
|
14706
|
+
* The records-migration leftovers (D871 `stats-5m`, the phase-0 tables) were
|
|
14707
|
+
* dropped by hand on the operator hubs and left this list with D900.
|
|
14707
14708
|
*/
|
|
14708
14709
|
var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
14709
14710
|
"stream-broker:probe-snapshots",
|
|
@@ -14711,19 +14712,7 @@ var STORAGE_ADMIN_MOVED_COLLECTIONS = [
|
|
|
14711
14712
|
"stream-broker:rtsp-tokens",
|
|
14712
14713
|
"notification-center:device-mutes",
|
|
14713
14714
|
"recorder:recording-configs",
|
|
14714
|
-
"pipeline-orchestrator:device-features"
|
|
14715
|
-
"pipeline-analytics:stats-5m",
|
|
14716
|
-
"pipeline-orchestrator:stats-5m",
|
|
14717
|
-
"vec_object_clip",
|
|
14718
|
-
"addon-devices",
|
|
14719
|
-
"sections",
|
|
14720
|
-
"provider-settings",
|
|
14721
|
-
"device-settings",
|
|
14722
|
-
"ai:budgets",
|
|
14723
|
-
"pipeline-analytics:retrain-dataset-versions",
|
|
14724
|
-
"training:dataset-versions",
|
|
14725
|
-
"benchmark:replay-runs",
|
|
14726
|
-
"viewer-settings-snapshots"
|
|
14715
|
+
"pipeline-orchestrator:device-features"
|
|
14727
14716
|
];
|
|
14728
14717
|
/** The per-addon blob tables a scoped name may carry. */
|
|
14729
14718
|
var STORAGE_ADMIN_SCOPED_BASES = [
|
|
@@ -14787,42 +14776,7 @@ var storageAdminCapability = {
|
|
|
14787
14776
|
readRecords: require_sleep.method(RecordQueryInputSchema.extend({
|
|
14788
14777
|
owner: zod.z.string().min(1),
|
|
14789
14778
|
kind: require_sleep.RecordKindNameSchema
|
|
14790
|
-
}), RecordQueryResultSchema, { auth: "admin" })
|
|
14791
|
-
/**
|
|
14792
|
-
* The migration copy path (D881): write rows into a kind AS ITS DECLARED
|
|
14793
|
-
* OWNER. Refused when that owner's manifest does not declare the kind.
|
|
14794
|
-
* Idempotent (a put by id, so a re-run resumes). A secret field carries a
|
|
14795
|
-
* keychain marker bound to the row's own ref - the operator script imports
|
|
14796
|
-
* the value first - and a plain string there is refused.
|
|
14797
|
-
*/
|
|
14798
|
-
adoptRecords: require_sleep.method(zod.z.object({
|
|
14799
|
-
owner: zod.z.string().min(1),
|
|
14800
|
-
kind: require_sleep.RecordKindNameSchema,
|
|
14801
|
-
records: zod.z.array(RecordInputSchema).max(require_sleep.RECORD_BATCH_MAX),
|
|
14802
|
-
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
14803
|
-
complete: zod.z.boolean().optional()
|
|
14804
|
-
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), zod.z.object({ adopted: zod.z.number().int() }), {
|
|
14805
|
-
kind: "mutation",
|
|
14806
|
-
auth: "admin"
|
|
14807
|
-
}),
|
|
14808
|
-
/**
|
|
14809
|
-
* Read rows from a legacy KV table by physical name, without a running
|
|
14810
|
-
* `declareCollection`. Used by `records-adopt.ts` when the owner already
|
|
14811
|
-
* moved to records and the collection door refuses the name.
|
|
14812
|
-
*/
|
|
14813
|
-
readLegacyCollection: require_sleep.method(zod.z.object({
|
|
14814
|
-
collection: zod.z.string().min(1),
|
|
14815
|
-
cursor: zod.z.string().optional(),
|
|
14816
|
-
limit: zod.z.number().int().min(1).max(1e3).optional()
|
|
14817
|
-
}), zod.z.object({
|
|
14818
|
-
rows: zod.z.array(zod.z.object({
|
|
14819
|
-
id: zod.z.string(),
|
|
14820
|
-
data: zod.z.record(zod.z.string(), zod.z.unknown())
|
|
14821
|
-
})),
|
|
14822
|
-
nextCursor: zod.z.string().nullable()
|
|
14823
|
-
}), { auth: "admin" }),
|
|
14824
|
-
/** True when a declared kind lists `collection` as `adoptsFrom` and adoption finished. */
|
|
14825
|
-
isAdoptedLegacyTable: require_sleep.method(zod.z.object({ collection: zod.z.string().min(1) }), zod.z.object({ adopted: zod.z.boolean() }), { auth: "admin" })
|
|
14779
|
+
}), RecordQueryResultSchema, { auth: "admin" })
|
|
14826
14780
|
}
|
|
14827
14781
|
};
|
|
14828
14782
|
//#endregion
|
|
@@ -79873,6 +79827,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
79873
79827
|
addonId: null,
|
|
79874
79828
|
access: "view"
|
|
79875
79829
|
},
|
|
79830
|
+
"deviceHistory.queryMany": {
|
|
79831
|
+
capName: "device-history",
|
|
79832
|
+
capScope: "system",
|
|
79833
|
+
addonId: null,
|
|
79834
|
+
access: "view"
|
|
79835
|
+
},
|
|
79876
79836
|
"deviceHistory.queryNode": {
|
|
79877
79837
|
capName: "device-history",
|
|
79878
79838
|
capScope: "system",
|
|
@@ -85093,24 +85053,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
85093
85053
|
addonId: null,
|
|
85094
85054
|
access: "create"
|
|
85095
85055
|
},
|
|
85096
|
-
"storageAdmin.adoptRecords": {
|
|
85097
|
-
capName: "storage-admin",
|
|
85098
|
-
capScope: "system",
|
|
85099
|
-
addonId: null,
|
|
85100
|
-
access: "create"
|
|
85101
|
-
},
|
|
85102
85056
|
"storageAdmin.dropCollection": {
|
|
85103
85057
|
capName: "storage-admin",
|
|
85104
85058
|
capScope: "system",
|
|
85105
85059
|
addonId: null,
|
|
85106
85060
|
access: "delete"
|
|
85107
85061
|
},
|
|
85108
|
-
"storageAdmin.isAdoptedLegacyTable": {
|
|
85109
|
-
capName: "storage-admin",
|
|
85110
|
-
capScope: "system",
|
|
85111
|
-
addonId: null,
|
|
85112
|
-
access: "view"
|
|
85113
|
-
},
|
|
85114
85062
|
"storageAdmin.listKinds": {
|
|
85115
85063
|
capName: "storage-admin",
|
|
85116
85064
|
capScope: "system",
|
|
@@ -85123,12 +85071,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
85123
85071
|
addonId: null,
|
|
85124
85072
|
access: "view"
|
|
85125
85073
|
},
|
|
85126
|
-
"storageAdmin.readLegacyCollection": {
|
|
85127
|
-
capName: "storage-admin",
|
|
85128
|
-
capScope: "system",
|
|
85129
|
-
addonId: null,
|
|
85130
|
-
access: "view"
|
|
85131
|
-
},
|
|
85132
85074
|
"storageAdmin.readRecords": {
|
|
85133
85075
|
capName: "storage-admin",
|
|
85134
85076
|
capScope: "system",
|
|
@@ -92355,12 +92297,6 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
|
|
|
92355
92297
|
form: "single",
|
|
92356
92298
|
optional: false
|
|
92357
92299
|
}],
|
|
92358
|
-
"storageAdmin.adoptRecords": [{
|
|
92359
|
-
name: "records",
|
|
92360
|
-
form: "object-array",
|
|
92361
|
-
optional: false,
|
|
92362
|
-
itemField: "deviceId"
|
|
92363
|
-
}],
|
|
92364
92300
|
"storageAdmin.readRecords": [{
|
|
92365
92301
|
name: "deviceId",
|
|
92366
92302
|
form: "single",
|
|
@@ -92901,7 +92837,6 @@ var SYSTEM_SCOPE_DEVICE_METHODS = [
|
|
|
92901
92837
|
"records.histogram",
|
|
92902
92838
|
"records.putMany",
|
|
92903
92839
|
"records.query",
|
|
92904
|
-
"storageAdmin.adoptRecords",
|
|
92905
92840
|
"storageAdmin.readRecords",
|
|
92906
92841
|
"streamBroker.acquireEgressTranscode",
|
|
92907
92842
|
"streamBroker.applyDeviceSettingsPatch",
|
|
@@ -103750,7 +103685,6 @@ exports.AdoptionJobStateSchema = AdoptionJobStateSchema;
|
|
|
103750
103685
|
exports.AdoptionListCandidatesInputSchema = ListCandidatesInputSchema;
|
|
103751
103686
|
exports.AdoptionListCandidatesOutputSchema = ListCandidatesOutputSchema;
|
|
103752
103687
|
exports.AdoptionOutcomeSchema = AdoptionOutcomeSchema;
|
|
103753
|
-
exports.AdoptionPendingError = require_sleep.AdoptionPendingError;
|
|
103754
103688
|
exports.AdoptionReleaseInputSchema = ReleaseInputSchema;
|
|
103755
103689
|
exports.AdoptionStatusSchema = AdoptionStatusSchema;
|
|
103756
103690
|
exports.AgentLoadSummarySchema = AgentLoadSummarySchema;
|
|
@@ -105291,8 +105225,6 @@ exports.SENSOR_MAP = SENSOR_MAP;
|
|
|
105291
105225
|
exports.SERVER_NAME_MAX_LENGTH = SERVER_NAME_MAX_LENGTH;
|
|
105292
105226
|
exports.SERVER_NAME_SETTING_KEY = SERVER_NAME_SETTING_KEY;
|
|
105293
105227
|
exports.SESSION_PLACEMENT_SETTING_KEY = SESSION_PLACEMENT_SETTING_KEY;
|
|
105294
|
-
exports.SETTINGS_ARRAY_ADOPTS_PREFIX = require_sleep.SETTINGS_ARRAY_ADOPTS_PREFIX;
|
|
105295
|
-
exports.SETTINGS_BROKERS_ADOPTS_PREFIX = require_sleep.SETTINGS_BROKERS_ADOPTS_PREFIX;
|
|
105296
105228
|
exports.SHARE_SOURCE_SETTING_KEY = SHARE_SOURCE_SETTING_KEY;
|
|
105297
105229
|
exports.SHARE_VIEW_KINDS = require_sleep.SHARE_VIEW_KINDS;
|
|
105298
105230
|
exports.SHARE_VIEW_MAX_DEVICES = SHARE_VIEW_MAX_DEVICES;
|
|
@@ -106202,8 +106134,6 @@ exports.parseSecretPath = require_sleep.parseSecretPath;
|
|
|
106202
106134
|
exports.parseSecretRef = require_sleep.parseSecretRef;
|
|
106203
106135
|
exports.parseSecretStatePath = require_sleep.parseSecretStatePath;
|
|
106204
106136
|
exports.parseSessionPlacementPolicy = parseSessionPlacementPolicy;
|
|
106205
|
-
exports.parseSettingsArrayAdoptsFrom = require_sleep.parseSettingsArrayAdoptsFrom;
|
|
106206
|
-
exports.parseSettingsBrokersAdoptsFrom = require_sleep.parseSettingsBrokersAdoptsFrom;
|
|
106207
106137
|
exports.parseShareSource = parseShareSource;
|
|
106208
106138
|
exports.parseStreamParamsFormPatch = parseStreamParamsFormPatch;
|
|
106209
106139
|
exports.parseTrainingEventLine = parseTrainingEventLine;
|
|
@@ -106382,9 +106312,7 @@ exports.servedTemplateVars = servedTemplateVars;
|
|
|
106382
106312
|
exports.serverManagementCapability = serverManagementCapability;
|
|
106383
106313
|
exports.setByPath = setByPath;
|
|
106384
106314
|
exports.settingValuesEqual = settingValuesEqual;
|
|
106385
|
-
exports.settingsArrayAdoptsFrom = require_sleep.settingsArrayAdoptsFrom;
|
|
106386
106315
|
exports.settingsBelow = settingsBelow;
|
|
106387
|
-
exports.settingsBrokersAdoptsFrom = require_sleep.settingsBrokersAdoptsFrom;
|
|
106388
106316
|
exports.settingsStoreCapability = settingsStoreCapability;
|
|
106389
106317
|
exports.shareViewGrantOf = shareViewGrantOf;
|
|
106390
106318
|
exports.shortHostname = shortHostname;
|