@camstack/types 1.2.328 → 1.2.330
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 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/alarm-panel.cap.d.ts +8 -8
- package/dist/capabilities/day-night.cap.d.ts +16 -16
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/keychain-admin.cap.d.ts +28 -0
- package/dist/capabilities/notification-rules.cap.d.ts +88 -88
- package/dist/capabilities/pipeline-analytics.cap.d.ts +295 -0
- package/dist/client.js +6 -0
- package/dist/client.mjs +6 -0
- package/dist/generated/addon-api.d.ts +42 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.js +179 -1
- package/dist/index.mjs +175 -2
- package/dist/{sleep-i3kl-0Na.js → sleep-ClNXPpWR.js} +5 -0
- package/dist/{sleep-Cr5YOk3m.mjs → sleep-DujUvOcb.mjs} +5 -0
- 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-
|
|
2
|
+
const require_sleep = require("./sleep-ClNXPpWR.js");
|
|
3
3
|
const require_event_category = require("./event-category-CHduMGvg.js");
|
|
4
4
|
const require_composition = require("./composition-BLWAivB2.js");
|
|
5
5
|
const require_err_msg = require("./err-msg-Dx2Kor0g.js");
|
|
@@ -12716,6 +12716,13 @@ var KeychainAuditEntrySchema = zod.z.object({
|
|
|
12716
12716
|
detail: zod.z.string().nullable()
|
|
12717
12717
|
});
|
|
12718
12718
|
var KEYCHAIN_RESET_CONFIRMATION = "RESET KEYCHAIN";
|
|
12719
|
+
/**
|
|
12720
|
+
* Secrets the HUB itself holds (owner `system`) that no settings form shows:
|
|
12721
|
+
* `jwt-signing-key` — the session signing key (D797). It is always "in use",
|
|
12722
|
+
* never an orphan; it is generated on a fresh hub and replaced only through
|
|
12723
|
+
* {@link keychainAdminCapability.methods.setSystemSecret}.
|
|
12724
|
+
*/
|
|
12725
|
+
var SystemHeldSecretNameSchema = zod.z.enum(["jwt-signing-key"]);
|
|
12719
12726
|
var keychainAdminCapability = {
|
|
12720
12727
|
name: "keychain-admin",
|
|
12721
12728
|
scope: "system",
|
|
@@ -12736,6 +12743,24 @@ var keychainAdminCapability = {
|
|
|
12736
12743
|
auth: "admin",
|
|
12737
12744
|
caller: "required"
|
|
12738
12745
|
}),
|
|
12746
|
+
/**
|
|
12747
|
+
* Replace a system-held secret (no form edits it) with an operator-supplied
|
|
12748
|
+
* value — e.g. importing the session signing key a pre-keychain hub kept in
|
|
12749
|
+
* config.yaml, so the tokens it signed stay valid. Audited as the operator.
|
|
12750
|
+
* Replacing the session signing key invalidates every token signed with the
|
|
12751
|
+
* previous one.
|
|
12752
|
+
*/
|
|
12753
|
+
setSystemSecret: require_sleep.method(zod.z.object({
|
|
12754
|
+
name: SystemHeldSecretNameSchema,
|
|
12755
|
+
value: zod.z.string().min(16)
|
|
12756
|
+
}), zod.z.object({
|
|
12757
|
+
ref: zod.z.string(),
|
|
12758
|
+
version: zod.z.number().int()
|
|
12759
|
+
}), {
|
|
12760
|
+
kind: "mutation",
|
|
12761
|
+
auth: "admin",
|
|
12762
|
+
caller: "required"
|
|
12763
|
+
}),
|
|
12739
12764
|
/** Delete refs no owner points at any more. Re-checked here; `unknown` is kept. */
|
|
12740
12765
|
deleteOrphans: require_sleep.method(zod.z.object({ refs: zod.z.array(zod.z.string().min(1)).max(1e3) }), zod.z.object({
|
|
12741
12766
|
deleted: zod.z.array(zod.z.string()).readonly(),
|
|
@@ -25091,6 +25116,9 @@ var RetrainExportFilterSchema = zod.z.object({
|
|
|
25091
25116
|
frameIds: zod.z.array(zod.z.string()).max(2e4).optional(),
|
|
25092
25117
|
/** Only frames in at least one of these named collections. */
|
|
25093
25118
|
collectionIds: zod.z.array(zod.z.string()).max(200).optional(),
|
|
25119
|
+
/** Exactly the frames of this dataset version (and its completeOnly). An
|
|
25120
|
+
* unknown id selects nothing. */
|
|
25121
|
+
datasetVersionId: zod.z.string().optional(),
|
|
25094
25122
|
batchId: zod.z.string().optional(),
|
|
25095
25123
|
/** Only frames the operator marked complete (all subjects boxed). */
|
|
25096
25124
|
completeOnly: zod.z.boolean().optional()
|
|
@@ -25258,6 +25286,67 @@ var RetrainLlmAssistResultSchema = zod.z.discriminatedUnion("kind", [zod.z.objec
|
|
|
25258
25286
|
]),
|
|
25259
25287
|
detail: zod.z.string().optional()
|
|
25260
25288
|
})]);
|
|
25289
|
+
/** What a dataset version is cut from. Every field narrows. */
|
|
25290
|
+
var RetrainDatasetSelectionSchema = zod.z.object({
|
|
25291
|
+
deviceIds: zod.z.array(zod.z.number()).readonly().optional(),
|
|
25292
|
+
collectionIds: zod.z.array(zod.z.string()).max(200).readonly().optional(),
|
|
25293
|
+
frameIds: zod.z.array(zod.z.string()).max(2e4).readonly().optional()
|
|
25294
|
+
});
|
|
25295
|
+
/** The counts a dataset is judged by. */
|
|
25296
|
+
var RetrainDatasetStatsSchema = zod.z.object({
|
|
25297
|
+
frames: zod.z.number().int(),
|
|
25298
|
+
completeFrames: zod.z.number().int(),
|
|
25299
|
+
/** `completeFrames / frames`, 0..1. */
|
|
25300
|
+
completeness: zod.z.number(),
|
|
25301
|
+
/** Boxes to learn (model errors excluded). */
|
|
25302
|
+
subjects: zod.z.number().int(),
|
|
25303
|
+
modelErrors: zod.z.number().int(),
|
|
25304
|
+
/** Complete frames with no subject. */
|
|
25305
|
+
hardNegatives: zod.z.number().int(),
|
|
25306
|
+
/** Subjects per class × camera × day/night. */
|
|
25307
|
+
cells: zod.z.array(zod.z.object({
|
|
25308
|
+
macroClass: zod.z.string(),
|
|
25309
|
+
deviceId: zod.z.number(),
|
|
25310
|
+
lighting: zod.z.enum([
|
|
25311
|
+
"day",
|
|
25312
|
+
"night",
|
|
25313
|
+
"unknown"
|
|
25314
|
+
]),
|
|
25315
|
+
subjects: zod.z.number().int(),
|
|
25316
|
+
frames: zod.z.number().int()
|
|
25317
|
+
})).readonly(),
|
|
25318
|
+
cameras: zod.z.array(zod.z.object({
|
|
25319
|
+
deviceId: zod.z.number(),
|
|
25320
|
+
frames: zod.z.number().int(),
|
|
25321
|
+
completeFrames: zod.z.number().int()
|
|
25322
|
+
})).readonly()
|
|
25323
|
+
});
|
|
25324
|
+
/** An immutable dataset version, without its frame list. */
|
|
25325
|
+
var RetrainDatasetVersionSchema = zod.z.object({
|
|
25326
|
+
id: zod.z.string(),
|
|
25327
|
+
name: zod.z.string(),
|
|
25328
|
+
createdAt: zod.z.number(),
|
|
25329
|
+
selection: RetrainDatasetSelectionSchema,
|
|
25330
|
+
layout: RetrainExportLayoutSchema,
|
|
25331
|
+
completeOnly: zod.z.boolean(),
|
|
25332
|
+
frameCount: zod.z.number().int(),
|
|
25333
|
+
/** sha256 of what the frames taught when the version was frozen. */
|
|
25334
|
+
annotationHash: zod.z.string(),
|
|
25335
|
+
/** The export manifest schema the version was cut under. */
|
|
25336
|
+
manifestSchema: zod.z.string(),
|
|
25337
|
+
stats: RetrainDatasetStatsSchema
|
|
25338
|
+
});
|
|
25339
|
+
var CreateRetrainDatasetVersionResultSchema = zod.z.discriminatedUnion("kind", [zod.z.object({
|
|
25340
|
+
kind: zod.z.literal("created"),
|
|
25341
|
+
version: RetrainDatasetVersionSchema
|
|
25342
|
+
}), zod.z.object({
|
|
25343
|
+
kind: zod.z.literal("refused"),
|
|
25344
|
+
reason: zod.z.enum([
|
|
25345
|
+
"empty-name",
|
|
25346
|
+
"duplicate-name",
|
|
25347
|
+
"no-frames"
|
|
25348
|
+
])
|
|
25349
|
+
})]);
|
|
25261
25350
|
/** The outcome of a lifecycle move owned by the retrain page. */
|
|
25262
25351
|
var RetrainTransitionResultSchema = zod.z.object({
|
|
25263
25352
|
trackId: zod.z.string(),
|
|
@@ -26657,6 +26746,53 @@ var pipelineAnalyticsCapability = {
|
|
|
26657
26746
|
auth: "admin",
|
|
26658
26747
|
timeoutMs: 60 * 6e4
|
|
26659
26748
|
}),
|
|
26749
|
+
/** The counts a selection would freeze — class × camera × day/night,
|
|
26750
|
+
* completeness — without freezing anything. Index reads only. */
|
|
26751
|
+
previewRetrainDataset: require_sleep.method(zod.z.object({
|
|
26752
|
+
selection: RetrainDatasetSelectionSchema,
|
|
26753
|
+
completeOnly: zod.z.boolean().optional()
|
|
26754
|
+
}), RetrainDatasetStatsSchema, {
|
|
26755
|
+
kind: "query",
|
|
26756
|
+
auth: "admin"
|
|
26757
|
+
}),
|
|
26758
|
+
/**
|
|
26759
|
+
* Freeze a dataset version: the frames the selection yields (the same plan
|
|
26760
|
+
* the annotated export builds), the hash of what they teach, the export
|
|
26761
|
+
* parameters and the counts. Immutable — a different selection is a new
|
|
26762
|
+
* version. Export it with `getRetrainExportUrl({ datasetVersionId })`.
|
|
26763
|
+
*/
|
|
26764
|
+
createRetrainDatasetVersion: require_sleep.method(zod.z.object({
|
|
26765
|
+
name: zod.z.string().max(120),
|
|
26766
|
+
selection: RetrainDatasetSelectionSchema,
|
|
26767
|
+
layout: RetrainExportLayoutSchema,
|
|
26768
|
+
completeOnly: zod.z.boolean()
|
|
26769
|
+
}), CreateRetrainDatasetVersionResultSchema, {
|
|
26770
|
+
kind: "mutation",
|
|
26771
|
+
auth: "admin",
|
|
26772
|
+
timeoutMs: 12e4
|
|
26773
|
+
}),
|
|
26774
|
+
/** Every dataset version, newest first. */
|
|
26775
|
+
listRetrainDatasetVersions: require_sleep.method(zod.z.object({}), zod.z.array(RetrainDatasetVersionSchema).readonly(), {
|
|
26776
|
+
kind: "query",
|
|
26777
|
+
auth: "admin"
|
|
26778
|
+
}),
|
|
26779
|
+
/** Delete a version. Its frames stay in the dataset. */
|
|
26780
|
+
deleteRetrainDatasetVersion: require_sleep.method(zod.z.object({ id: zod.z.string() }), zod.z.object({ deleted: zod.z.boolean() }), {
|
|
26781
|
+
kind: "mutation",
|
|
26782
|
+
auth: "admin"
|
|
26783
|
+
}),
|
|
26784
|
+
/** Does the corpus still teach what the version froze? `missingFrames`
|
|
26785
|
+
* counts frames that left the dataset (or lost every box and tick). */
|
|
26786
|
+
verifyRetrainDatasetVersion: require_sleep.method(zod.z.object({ id: zod.z.string() }), zod.z.object({
|
|
26787
|
+
found: zod.z.boolean(),
|
|
26788
|
+
annotationHash: zod.z.string(),
|
|
26789
|
+
matches: zod.z.boolean(),
|
|
26790
|
+
missingFrames: zod.z.number().int()
|
|
26791
|
+
}), {
|
|
26792
|
+
kind: "query",
|
|
26793
|
+
auth: "admin",
|
|
26794
|
+
timeoutMs: 12e4
|
|
26795
|
+
}),
|
|
26660
26796
|
/** The enabled, vision-capable LLM profiles, each saying whether a frame
|
|
26661
26797
|
* sent to it leaves the house. */
|
|
26662
26798
|
listRetrainAssistProfiles: require_sleep.method(zod.z.object({}), zod.z.array(RetrainAssistProfileSchema).readonly(), {
|
|
@@ -55432,6 +55568,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
55432
55568
|
addonId: null,
|
|
55433
55569
|
access: "create"
|
|
55434
55570
|
},
|
|
55571
|
+
"keychainAdmin.setSystemSecret": {
|
|
55572
|
+
capName: "keychain-admin",
|
|
55573
|
+
capScope: "system",
|
|
55574
|
+
addonId: null,
|
|
55575
|
+
access: "create"
|
|
55576
|
+
},
|
|
55435
55577
|
"keychainAdmin.status": {
|
|
55436
55578
|
capName: "keychain-admin",
|
|
55437
55579
|
capScope: "system",
|
|
@@ -56878,6 +57020,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
56878
57020
|
addonId: null,
|
|
56879
57021
|
access: "create"
|
|
56880
57022
|
},
|
|
57023
|
+
"pipelineAnalytics.createRetrainDatasetVersion": {
|
|
57024
|
+
capName: "pipeline-analytics",
|
|
57025
|
+
capScope: "device",
|
|
57026
|
+
addonId: null,
|
|
57027
|
+
access: "create"
|
|
57028
|
+
},
|
|
56881
57029
|
"pipelineAnalytics.deleteDeviceEvents": {
|
|
56882
57030
|
capName: "pipeline-analytics",
|
|
56883
57031
|
capScope: "device",
|
|
@@ -56890,6 +57038,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
56890
57038
|
addonId: null,
|
|
56891
57039
|
access: "delete"
|
|
56892
57040
|
},
|
|
57041
|
+
"pipelineAnalytics.deleteRetrainDatasetVersion": {
|
|
57042
|
+
capName: "pipeline-analytics",
|
|
57043
|
+
capScope: "device",
|
|
57044
|
+
addonId: null,
|
|
57045
|
+
access: "delete"
|
|
57046
|
+
},
|
|
56893
57047
|
"pipelineAnalytics.deleteTracks": {
|
|
56894
57048
|
capName: "pipeline-analytics",
|
|
56895
57049
|
capScope: "device",
|
|
@@ -57112,6 +57266,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
57112
57266
|
addonId: null,
|
|
57113
57267
|
access: "view"
|
|
57114
57268
|
},
|
|
57269
|
+
"pipelineAnalytics.listRetrainDatasetVersions": {
|
|
57270
|
+
capName: "pipeline-analytics",
|
|
57271
|
+
capScope: "device",
|
|
57272
|
+
addonId: null,
|
|
57273
|
+
access: "view"
|
|
57274
|
+
},
|
|
57115
57275
|
"pipelineAnalytics.listRetrainFrames": {
|
|
57116
57276
|
capName: "pipeline-analytics",
|
|
57117
57277
|
capScope: "device",
|
|
@@ -57154,6 +57314,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
57154
57314
|
addonId: null,
|
|
57155
57315
|
access: "create"
|
|
57156
57316
|
},
|
|
57317
|
+
"pipelineAnalytics.previewRetrainDataset": {
|
|
57318
|
+
capName: "pipeline-analytics",
|
|
57319
|
+
capScope: "device",
|
|
57320
|
+
addonId: null,
|
|
57321
|
+
access: "view"
|
|
57322
|
+
},
|
|
57157
57323
|
"pipelineAnalytics.proposeRetrainAnnotations": {
|
|
57158
57324
|
capName: "pipeline-analytics",
|
|
57159
57325
|
capScope: "device",
|
|
@@ -57292,6 +57458,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
57292
57458
|
addonId: null,
|
|
57293
57459
|
access: "create"
|
|
57294
57460
|
},
|
|
57461
|
+
"pipelineAnalytics.verifyRetrainDatasetVersion": {
|
|
57462
|
+
capName: "pipeline-analytics",
|
|
57463
|
+
capScope: "device",
|
|
57464
|
+
addonId: null,
|
|
57465
|
+
access: "view"
|
|
57466
|
+
},
|
|
57295
57467
|
"pipelineAnalytics.wipeAllAnalytics": {
|
|
57296
57468
|
capName: "pipeline-analytics",
|
|
57297
57469
|
capScope: "device",
|
|
@@ -68491,6 +68663,7 @@ function createSystemProxy(api) {
|
|
|
68491
68663
|
listSecrets: (input) => dispatch("keychainAdmin", "listSecrets", "query", input),
|
|
68492
68664
|
listAudit: (input) => dispatch("keychainAdmin", "listAudit", "query", input),
|
|
68493
68665
|
reveal: (input) => dispatch("keychainAdmin", "reveal", "mutation", input),
|
|
68666
|
+
setSystemSecret: (input) => dispatch("keychainAdmin", "setSystemSecret", "mutation", input),
|
|
68494
68667
|
deleteOrphans: (input) => dispatch("keychainAdmin", "deleteOrphans", "mutation", input),
|
|
68495
68668
|
rotateMasterKey: (input) => dispatch("keychainAdmin", "rotateMasterKey", "mutation", input),
|
|
68496
68669
|
purgeRetiredKeys: (input) => dispatch("keychainAdmin", "purgeRetiredKeys", "mutation", input),
|
|
@@ -77588,6 +77761,7 @@ exports.CoverStatusSchema = CoverStatusSchema;
|
|
|
77588
77761
|
exports.CreateApiKeyInputSchema = CreateApiKeyInputSchema;
|
|
77589
77762
|
exports.CreateApiKeyResultSchema = CreateApiKeyResultSchema;
|
|
77590
77763
|
exports.CreateIntegrationInputSchema = CreateIntegrationInputSchema;
|
|
77764
|
+
exports.CreateRetrainDatasetVersionResultSchema = CreateRetrainDatasetVersionResultSchema;
|
|
77591
77765
|
exports.CreateScopedTokenInputSchema = CreateScopedTokenInputSchema;
|
|
77592
77766
|
exports.CreateScopedTokenResultSchema = CreateScopedTokenResultSchema;
|
|
77593
77767
|
exports.CreateUserInputSchema = CreateUserInputSchema;
|
|
@@ -78546,6 +78720,9 @@ exports.RetrainCollectionCreateResultSchema = RetrainCollectionCreateResultSchem
|
|
|
78546
78720
|
exports.RetrainCollectionRenameResultSchema = RetrainCollectionRenameResultSchema;
|
|
78547
78721
|
exports.RetrainCollectionSchema = RetrainCollectionSchema;
|
|
78548
78722
|
exports.RetrainCopyRefusalSchema = RetrainCopyRefusalSchema;
|
|
78723
|
+
exports.RetrainDatasetSelectionSchema = RetrainDatasetSelectionSchema;
|
|
78724
|
+
exports.RetrainDatasetStatsSchema = RetrainDatasetStatsSchema;
|
|
78725
|
+
exports.RetrainDatasetVersionSchema = RetrainDatasetVersionSchema;
|
|
78549
78726
|
exports.RetrainExportFilterSchema = RetrainExportFilterSchema;
|
|
78550
78727
|
exports.RetrainExportLayoutSchema = RetrainExportLayoutSchema;
|
|
78551
78728
|
exports.RetrainFrameCandidateSchema = RetrainFrameCandidateSchema;
|
|
@@ -78728,6 +78905,7 @@ exports.SuggestedDeviceShareSchema = SuggestedDeviceShareSchema;
|
|
|
78728
78905
|
exports.SuggestedNodeShareSchema = SuggestedNodeShareSchema;
|
|
78729
78906
|
exports.SuppliedRootOutputSchema = SuppliedRootOutputSchema;
|
|
78730
78907
|
exports.SwitchStatusSchema = SwitchStatusSchema;
|
|
78908
|
+
exports.SystemHeldSecretNameSchema = SystemHeldSecretNameSchema;
|
|
78731
78909
|
exports.SystemMetricsSchema = SystemMetricsSchema;
|
|
78732
78910
|
exports.SystemMirror = SystemMirror;
|
|
78733
78911
|
exports.TAXONOMY_COLORS = TAXONOMY_COLORS;
|