@camstack/types 1.2.308 → 1.2.309
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/capabilities/custom-model-registry.cap.d.ts +38 -4
- package/dist/capabilities/device-manager.cap.d.ts +8 -8
- package/dist/capabilities/hub-address.d.ts +76 -0
- package/dist/capabilities/index.d.ts +4 -3
- package/dist/capabilities/local-network.cap.d.ts +93 -0
- package/dist/capabilities/model-convert.cap.d.ts +19 -2
- package/dist/capabilities/model-distributor.cap.d.ts +38 -4
- package/dist/capabilities/pipeline-executor.cap.d.ts +124 -10
- package/dist/capabilities/pipeline-runner.cap.d.ts +13 -0
- package/dist/catalogs/frigate-plus-classmap.d.ts +10 -7
- package/dist/catalogs/index.d.ts +1 -1
- package/dist/catalogs/root-model-supply.d.ts +202 -0
- package/dist/client.js +51 -49
- package/dist/client.mjs +51 -49
- package/dist/device/location-icon.d.ts +4 -4
- package/dist/device/site-zone.d.ts +2 -2
- package/dist/ffmpeg/pinned-spawn.d.ts +1 -1
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +961 -512
- package/dist/index.mjs +931 -500
- package/dist/interfaces/event-bus.d.ts +12 -6
- package/dist/interfaces/pipeline-executor-capability.d.ts +6 -1
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/pipeline/root-face-crop.d.ts +31 -0
- package/dist/types/detection.d.ts +9 -0
- package/dist/types/models.d.ts +69 -8
- package/dist/types/pipeline-step.d.ts +6 -0
- package/package.json +1 -1
- package/dist/catalogs/classifier-fill.d.ts +0 -104
package/dist/client.mjs
CHANGED
|
@@ -414,54 +414,6 @@ z.object({
|
|
|
414
414
|
resolution: CamStreamResolutionSchema.optional()
|
|
415
415
|
});
|
|
416
416
|
//#endregion
|
|
417
|
-
//#region src/catalogs/coco-classmap.ts
|
|
418
|
-
var MACRO_LABELS = [
|
|
419
|
-
{
|
|
420
|
-
id: "person",
|
|
421
|
-
name: "Person"
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
id: "vehicle",
|
|
425
|
-
name: "Vehicle"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
id: "animal",
|
|
429
|
-
name: "Animal"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
id: "package",
|
|
433
|
-
name: "Package"
|
|
434
|
-
}
|
|
435
|
-
];
|
|
436
|
-
new Set(MACRO_LABELS.map((l) => l.id));
|
|
437
|
-
var COCO_TO_MACRO = {
|
|
438
|
-
mapping: {
|
|
439
|
-
person: "person",
|
|
440
|
-
bicycle: "vehicle",
|
|
441
|
-
car: "vehicle",
|
|
442
|
-
motorcycle: "vehicle",
|
|
443
|
-
airplane: "vehicle",
|
|
444
|
-
bus: "vehicle",
|
|
445
|
-
train: "vehicle",
|
|
446
|
-
truck: "vehicle",
|
|
447
|
-
boat: "vehicle",
|
|
448
|
-
bird: "animal",
|
|
449
|
-
cat: "animal",
|
|
450
|
-
dog: "animal",
|
|
451
|
-
horse: "animal",
|
|
452
|
-
sheep: "animal",
|
|
453
|
-
cow: "animal",
|
|
454
|
-
elephant: "animal",
|
|
455
|
-
bear: "animal",
|
|
456
|
-
zebra: "animal",
|
|
457
|
-
giraffe: "animal",
|
|
458
|
-
suitcase: "package",
|
|
459
|
-
backpack: "package",
|
|
460
|
-
handbag: "package"
|
|
461
|
-
},
|
|
462
|
-
preserveOriginal: false
|
|
463
|
-
};
|
|
464
|
-
//#endregion
|
|
465
417
|
//#region src/catalogs/sensor-active-state.ts
|
|
466
418
|
/**
|
|
467
419
|
* THE table "which boolean of this device type counts as HIGH", and the
|
|
@@ -1043,6 +995,54 @@ method(z.object({}), z.array(TargetKindSchema)), method(z.object({}), z.array(Ta
|
|
|
1043
995
|
auth: "admin"
|
|
1044
996
|
});
|
|
1045
997
|
//#endregion
|
|
998
|
+
//#region src/catalogs/coco-classmap.ts
|
|
999
|
+
var MACRO_LABELS = [
|
|
1000
|
+
{
|
|
1001
|
+
id: "person",
|
|
1002
|
+
name: "Person"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
id: "vehicle",
|
|
1006
|
+
name: "Vehicle"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
id: "animal",
|
|
1010
|
+
name: "Animal"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
id: "package",
|
|
1014
|
+
name: "Package"
|
|
1015
|
+
}
|
|
1016
|
+
];
|
|
1017
|
+
new Set(MACRO_LABELS.map((l) => l.id));
|
|
1018
|
+
var COCO_TO_MACRO = {
|
|
1019
|
+
mapping: {
|
|
1020
|
+
person: "person",
|
|
1021
|
+
bicycle: "vehicle",
|
|
1022
|
+
car: "vehicle",
|
|
1023
|
+
motorcycle: "vehicle",
|
|
1024
|
+
airplane: "vehicle",
|
|
1025
|
+
bus: "vehicle",
|
|
1026
|
+
train: "vehicle",
|
|
1027
|
+
truck: "vehicle",
|
|
1028
|
+
boat: "vehicle",
|
|
1029
|
+
bird: "animal",
|
|
1030
|
+
cat: "animal",
|
|
1031
|
+
dog: "animal",
|
|
1032
|
+
horse: "animal",
|
|
1033
|
+
sheep: "animal",
|
|
1034
|
+
cow: "animal",
|
|
1035
|
+
elephant: "animal",
|
|
1036
|
+
bear: "animal",
|
|
1037
|
+
zebra: "animal",
|
|
1038
|
+
giraffe: "animal",
|
|
1039
|
+
suitcase: "package",
|
|
1040
|
+
backpack: "package",
|
|
1041
|
+
handbag: "package"
|
|
1042
|
+
},
|
|
1043
|
+
preserveOriginal: false
|
|
1044
|
+
};
|
|
1045
|
+
//#endregion
|
|
1046
1046
|
//#region src/catalogs/audio-classmap.ts
|
|
1047
1047
|
var AUDIO_MACRO_LABELS = [
|
|
1048
1048
|
{
|
|
@@ -7304,6 +7304,8 @@ function createSystemProxy(api) {
|
|
|
7304
7304
|
setNotificationEndpoint: (input) => dispatch("localNetwork", "setNotificationEndpoint", "mutation", input),
|
|
7305
7305
|
getViewerEndpoints: (input) => dispatch("localNetwork", "getViewerEndpoints", "query", input),
|
|
7306
7306
|
setViewerEndpoints: (input) => dispatch("localNetwork", "setViewerEndpoints", "mutation", input),
|
|
7307
|
+
getHubAddresses: (input) => dispatch("localNetwork", "getHubAddresses", "query", input),
|
|
7308
|
+
setHubAddress: (input) => dispatch("localNetwork", "setHubAddress", "mutation", input),
|
|
7307
7309
|
getAllowedAddresses: (input) => dispatch("localNetwork", "getAllowedAddresses", "query", input),
|
|
7308
7310
|
setAllowedAddresses: (input) => dispatch("localNetwork", "setAllowedAddresses", "mutation", input),
|
|
7309
7311
|
resetAllowlistToBestMatch: (input) => dispatch("localNetwork", "resetAllowlistToBestMatch", "mutation", input),
|
|
@@ -9067,7 +9069,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
9067
9069
|
{
|
|
9068
9070
|
name: "summarySection",
|
|
9069
9071
|
label: "Summary: this section",
|
|
9070
|
-
description: "The section a per-section summary row is about
|
|
9072
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
9071
9073
|
example: "Batterie scariche",
|
|
9072
9074
|
group: "system",
|
|
9073
9075
|
families: ["rule"],
|
|
@@ -88,8 +88,6 @@ export declare const LOCATION_ICON_FALLBACK: LocationIconId;
|
|
|
88
88
|
/** Wire/storage schema for one icon id. */
|
|
89
89
|
export declare const LocationIconIdSchema: z.ZodEnum<{
|
|
90
90
|
package: "package";
|
|
91
|
-
car: "car";
|
|
92
|
-
umbrella: "umbrella";
|
|
93
91
|
"map-pin": "map-pin";
|
|
94
92
|
house: "house";
|
|
95
93
|
"door-open": "door-open";
|
|
@@ -98,9 +96,11 @@ export declare const LocationIconIdSchema: z.ZodEnum<{
|
|
|
98
96
|
"bed-double": "bed-double";
|
|
99
97
|
bath: "bath";
|
|
100
98
|
briefcase: "briefcase";
|
|
99
|
+
car: "car";
|
|
101
100
|
"circle-parking": "circle-parking";
|
|
102
101
|
route: "route";
|
|
103
102
|
trees: "trees";
|
|
103
|
+
umbrella: "umbrella";
|
|
104
104
|
"waves-ladder": "waves-ladder";
|
|
105
105
|
fence: "fence";
|
|
106
106
|
warehouse: "warehouse";
|
|
@@ -122,8 +122,6 @@ export declare const LocationIconAssignmentSchema: z.ZodObject<{
|
|
|
122
122
|
locationKey: z.ZodString;
|
|
123
123
|
icon: z.ZodEnum<{
|
|
124
124
|
package: "package";
|
|
125
|
-
car: "car";
|
|
126
|
-
umbrella: "umbrella";
|
|
127
125
|
"map-pin": "map-pin";
|
|
128
126
|
house: "house";
|
|
129
127
|
"door-open": "door-open";
|
|
@@ -132,9 +130,11 @@ export declare const LocationIconAssignmentSchema: z.ZodObject<{
|
|
|
132
130
|
"bed-double": "bed-double";
|
|
133
131
|
bath: "bath";
|
|
134
132
|
briefcase: "briefcase";
|
|
133
|
+
car: "car";
|
|
135
134
|
"circle-parking": "circle-parking";
|
|
136
135
|
route: "route";
|
|
137
136
|
trees: "trees";
|
|
137
|
+
umbrella: "umbrella";
|
|
138
138
|
"waves-ladder": "waves-ladder";
|
|
139
139
|
fence: "fence";
|
|
140
140
|
warehouse: "warehouse";
|
|
@@ -45,8 +45,6 @@ export declare const SiteZoneSchema: z.ZodObject<{
|
|
|
45
45
|
label: z.ZodString;
|
|
46
46
|
icon: z.ZodNullable<z.ZodEnum<{
|
|
47
47
|
package: "package";
|
|
48
|
-
car: "car";
|
|
49
|
-
umbrella: "umbrella";
|
|
50
48
|
"map-pin": "map-pin";
|
|
51
49
|
house: "house";
|
|
52
50
|
"door-open": "door-open";
|
|
@@ -55,9 +53,11 @@ export declare const SiteZoneSchema: z.ZodObject<{
|
|
|
55
53
|
"bed-double": "bed-double";
|
|
56
54
|
bath: "bath";
|
|
57
55
|
briefcase: "briefcase";
|
|
56
|
+
car: "car";
|
|
58
57
|
"circle-parking": "circle-parking";
|
|
59
58
|
route: "route";
|
|
60
59
|
trees: "trees";
|
|
60
|
+
umbrella: "umbrella";
|
|
61
61
|
"waves-ladder": "waves-ladder";
|
|
62
62
|
fence: "fence";
|
|
63
63
|
warehouse: "warehouse";
|
|
@@ -10,7 +10,7 @@ import { type ChildProcess, type SpawnOptions } from 'node:child_process';
|
|
|
10
10
|
/** One ffmpeg child from its argv. */
|
|
11
11
|
export type FfmpegArgvSpawn = (args: readonly string[]) => ChildProcess;
|
|
12
12
|
/** The detail a site refusing for want of a binary puts in its refusal. */
|
|
13
|
-
export declare const NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node
|
|
13
|
+
export declare const NO_PINNED_FFMPEG_DETAIL = "no pinned ffmpeg on this node";
|
|
14
14
|
/** What a site gets when it asks for its spawn: one, or the refusal to name. */
|
|
15
15
|
export type PinnedFfmpegSpawnAnswer = {
|
|
16
16
|
readonly kind: 'ready';
|
|
@@ -4077,6 +4077,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4077
4077
|
output: z.infer<typeof localNetworkCapability.methods.setViewerEndpoints.output>;
|
|
4078
4078
|
meta: object;
|
|
4079
4079
|
}>;
|
|
4080
|
+
getHubAddresses: TRPCQueryProcedure<{
|
|
4081
|
+
input: {
|
|
4082
|
+
nodeId?: string | undefined;
|
|
4083
|
+
} | undefined;
|
|
4084
|
+
output: z.infer<typeof localNetworkCapability.methods.getHubAddresses.output>;
|
|
4085
|
+
meta: object;
|
|
4086
|
+
}>;
|
|
4087
|
+
setHubAddress: TRPCMutationProcedure<{
|
|
4088
|
+
input: {
|
|
4089
|
+
[x: string]: unknown;
|
|
4090
|
+
} & z.input<typeof localNetworkCapability.methods.setHubAddress.input>;
|
|
4091
|
+
output: z.infer<typeof localNetworkCapability.methods.setHubAddress.output>;
|
|
4092
|
+
meta: object;
|
|
4093
|
+
}>;
|
|
4080
4094
|
getAllowedAddresses: TRPCQueryProcedure<{
|
|
4081
4095
|
input: {
|
|
4082
4096
|
nodeId?: string | undefined;
|
|
@@ -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: 1223 method paths across 165 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -77,7 +77,7 @@ export interface SystemProxy {
|
|
|
77
77
|
readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'auditIdentitySamples' | 'removeSample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
|
|
78
78
|
readonly integrations: Pick<InferProvider<typeof integrationsCapability>, 'list' | 'get' | 'getByAddonId' | 'create' | 'update' | 'delete' | 'getSettings' | 'setSettings' | 'getAvailableTypes' | 'testConnection'>;
|
|
79
79
|
readonly llm: Pick<InferProvider<typeof llmCapability>, 'generate' | 'generateVision' | 'cancel' | 'listProfileKinds' | 'listProfiles' | 'upsertProfile' | 'deleteProfile' | 'testProfile' | 'listModels' | 'getDefaults' | 'setDefault' | 'getUsage' | 'listModelCatalog' | 'listRuntimeNodes' | 'listNodeModels' | 'resolveModelRef' | 'installModel' | 'deleteModel' | 'getRuntimeStatus' | 'startRuntime' | 'stopRuntime'>;
|
|
80
|
-
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getViewerEndpoints' | 'setViewerEndpoints' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch' | 'getTlsStatus' | 'regenerateCertificate' | 'uploadCertificate' | 'downloadCa' | 'revertToGeneratedCertificate'>;
|
|
80
|
+
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getViewerEndpoints' | 'setViewerEndpoints' | 'getHubAddresses' | 'setHubAddress' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch' | 'getTlsStatus' | 'regenerateCertificate' | 'uploadCertificate' | 'downloadCa' | 'revertToGeneratedCertificate'>;
|
|
81
81
|
readonly meshNetwork: Pick<InferProvider<typeof meshNetworkCapability>, 'getStatus' | 'join' | 'startLogin' | 'leave' | 'logout' | 'listPeers' | 'testConnection'>;
|
|
82
82
|
readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'getLoadSeries'>;
|
|
83
83
|
readonly mqttBroker: Pick<InferProvider<typeof mqttBrokerCapability>, 'listBrokers' | 'getBrokerConfig' | 'addBroker' | 'removeBroker' | 'testConnection' | 'startEmbeddedBroker' | 'stopEmbeddedBroker' | 'getStatus'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -153,7 +153,7 @@ export * from './composition/index.js';
|
|
|
153
153
|
export { APPLE_SA_TO_MACRO, AUDIO_MACRO_LABELS, getAudioMacroClassIds, mapAudioLabelToMacro, YAMNET_TO_MACRO, } from './catalogs/audio-classmap.js';
|
|
154
154
|
export { COCO_80_LABELS, COCO_TO_MACRO, DETECTION_MACRO_CLASSES, isDetectionMacroClass, MACRO_LABELS, } from './catalogs/coco-classmap.js';
|
|
155
155
|
export { buildFrigateClassMap, type ClassMapMacroTarget, FRIGATE_PLUS_TO_MACRO, FRIGATE_PLUS_UNMAPPED_LABELS, type FrigateLabelFields, frigateLabelFields, } from './catalogs/frigate-plus-classmap.js';
|
|
156
|
-
export { type
|
|
156
|
+
export { allowedSuppliedEffect, containingParentIndex, CROP_SUPPLY_SOURCES, CROP_SUPPLY_STEP_IDS, type CropSupplySource, type CropSupplyStepId, deriveRootSupplies, describeRootSupplies, describeRootSupply, isLabelSupplyStepId, isRootSuppliableStepId, LABEL_SUPPLY_MACRO, LABEL_SUPPLY_STEP_IDS, LABEL_SUPPLY_VOCABULARIES, type LabelSupplyStepId, LINKED_LABEL_STEP_PREFIX, linkedLabelStepId, linkedStepOf, readUseRootModel, resolveRootSupply, ROOT_CHILD_CONTAINMENT_MIN, ROOT_SUPPLIABLE_STEP_IDS, rootSuppliesOf, rootSupplyServes, type RootSuppliableStepId, type RootSupplyInactiveReason, type RootSupplyState, type RootSupplyStepDefaults, type SupplyBox, type SupplyClassMap, supplyFor, USE_ROOT_MODEL_DEFAULTS, USE_ROOT_MODEL_SETTING_KEY, } from './catalogs/root-model-supply.js';
|
|
157
157
|
export { DEVICE_STATE_READERS, readDeviceStateFrom, stateVocabularyFor, } from './catalogs/device-state-vocabulary.js';
|
|
158
158
|
export { colorForKind, DEFAULT_EVENT_COLOR, EVENT_TAXONOMY, type EventTaxonomyCategory, type EventTaxonomyEntry, type EventTaxonomyLevel, getTaxonomyEntry, subKindsOf, TAXONOMY_COLORS, } from './catalogs/event-taxonomy.js';
|
|
159
159
|
export { buildNcTaxonomy, NC_TAXONOMY, type NcTaxonomy, type NcTaxonomyEntry, NcTaxonomyEntrySchema, NcTaxonomySchema, } from './catalogs/nc-taxonomy.js';
|
|
@@ -267,6 +267,7 @@ export { hubMotionNativeProvider, readHubMotionDetected, readHubMotionStatus, }
|
|
|
267
267
|
export { type ProviderMotionData, ProviderMotionDataSchema, providerMotionEvent, } from './pipeline/provider-motion.js';
|
|
268
268
|
export { type FormatRunnableModel, stepModelRunsOnFormat, } from './pipeline/step-format-runnable.js';
|
|
269
269
|
export { isRemovedModelId, REMOVED_MODEL_IDS } from './pipeline/removed-model-ids.js';
|
|
270
|
+
export { deriveRootFaceRefineRect, ROOT_FACE_REFINE_INPUT_PX, ROOT_FACE_REFINE_SCALE, } from './pipeline/root-face-crop.js';
|
|
270
271
|
export { DEFAULT_DETAIL_CROP_CONVENTION, DETAIL_CROP_PADDING_FIELD, DETAIL_CROP_PADDING_KEY, DETAIL_CROP_SECTION_ID, DETAIL_CROP_SQUARE_KEY, type DetailCropConvention, DetailCropConventionSchema, type DetailCropRect, deriveDetailCropRect, FULL_IMAGE_BBOX, type HydratedSettingsSection, type HydratedSettingsView, pickDetailCropConvention, readDetailCropConvention, } from './pipeline/detail-crop.js';
|
|
271
272
|
export { DEFAULT_NATIVE_LEASE_SETTINGS, NATIVE_LEASE_ACTIVITY_FIELD, NATIVE_LEASE_ACTIVITY_KEY, NATIVE_LEASE_ADMISSION_FIELD, NATIVE_LEASE_ADMISSION_KEY, NATIVE_LEASE_BUDGET_FIELD, NATIVE_LEASE_BUDGET_KEY, NATIVE_LEASE_HOLD_FIELD, NATIVE_LEASE_HOLD_KEY, NATIVE_LEASE_SCENE_BUDGET_FIELD, NATIVE_LEASE_SCENE_BUDGET_KEY, NATIVE_LEASE_SECTION_ID, NATIVE_LEASE_TILE_BUDGET_FIELD, NATIVE_LEASE_TILE_BUDGET_KEY, type NativeLeaseAdmission, NativeLeaseAdmissionSchema, type NativeLeaseKnob, type NativeLeaseNumberKnob, type NativeLeaseSettings, type NativeLeaseSettingsOverride, NativeLeaseSettingsSchema, pickNativeLeaseOverride, readNativeLeaseOverride, } from './pipeline/native-lease.js';
|
|
272
273
|
export { ACCESS_ROLES, type AccessRoleAssignment, type AccessRoleId, type AccessRoleSpec, buildRoleScopes, detectAccessRole, roleSpec, } from './schemas/access-roles.js';
|