camstack 1.2.4 → 1.2.6
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.
|
@@ -14522,7 +14522,7 @@ function date4(params) {
|
|
|
14522
14522
|
// ../../node_modules/zod/v4/classic/external.js
|
|
14523
14523
|
config(en_default());
|
|
14524
14524
|
|
|
14525
|
-
// ../types/dist/sleep-
|
|
14525
|
+
// ../types/dist/sleep-C3ceNSsf.mjs
|
|
14526
14526
|
var WELL_KNOWN_TABS = [
|
|
14527
14527
|
{
|
|
14528
14528
|
id: "overview",
|
|
@@ -15129,6 +15129,7 @@ function method(input, output, options) {
|
|
|
15129
15129
|
kind: options?.kind ?? "query",
|
|
15130
15130
|
auth: options?.auth ?? "protected",
|
|
15131
15131
|
...options?.access !== void 0 ? { access: options.access } : {},
|
|
15132
|
+
...options?.caller !== void 0 ? { caller: options.caller } : {},
|
|
15132
15133
|
timeoutMs: options?.timeoutMs
|
|
15133
15134
|
};
|
|
15134
15135
|
}
|
|
@@ -16344,6 +16345,35 @@ for (const l of AUDIO_MACRO_LABELS) {
|
|
|
16344
16345
|
sub(kind, "audio", "audio", TAXONOMY_COLORS.audio, kind, l.name);
|
|
16345
16346
|
}
|
|
16346
16347
|
var EVENT_TAXONOMY = Object.freeze(Object.fromEntries(entries));
|
|
16348
|
+
var NcTaxonomyEntrySchema = external_exports.object({
|
|
16349
|
+
/** Stable kind id (e.g. 'person', 'car', 'audio-scream', 'doorbell'). */
|
|
16350
|
+
kind: external_exports.string(),
|
|
16351
|
+
/** English fallback label (the UI translates via the event-kind i18n key). */
|
|
16352
|
+
label: external_exports.string(),
|
|
16353
|
+
/** Macro/category parent for grouping ('car' → 'vehicle'); null for a top. */
|
|
16354
|
+
parentKind: external_exports.string().nullable()
|
|
16355
|
+
});
|
|
16356
|
+
var NcTaxonomySchema = external_exports.object({
|
|
16357
|
+
videoClasses: external_exports.array(NcTaxonomyEntrySchema),
|
|
16358
|
+
audioKinds: external_exports.array(NcTaxonomyEntrySchema),
|
|
16359
|
+
labels: external_exports.array(NcTaxonomyEntrySchema)
|
|
16360
|
+
});
|
|
16361
|
+
function toEntry(kind, label, parentKind) {
|
|
16362
|
+
return {
|
|
16363
|
+
kind,
|
|
16364
|
+
label,
|
|
16365
|
+
parentKind
|
|
16366
|
+
};
|
|
16367
|
+
}
|
|
16368
|
+
function buildNcTaxonomy() {
|
|
16369
|
+
const all = Object.values(EVENT_TAXONOMY);
|
|
16370
|
+
return {
|
|
16371
|
+
videoClasses: all.filter((e) => e.category === "detection").map((e) => toEntry(e.kind, e.label, e.parentKind)),
|
|
16372
|
+
audioKinds: all.filter((e) => e.category === "audio" && e.level === "sub").map((e) => toEntry(e.kind, e.label, e.parentKind)),
|
|
16373
|
+
labels: all.filter((e) => e.category === "sensor" || e.category === "control").map((e) => toEntry(e.kind, e.label, e.parentKind))
|
|
16374
|
+
};
|
|
16375
|
+
}
|
|
16376
|
+
var NC_TAXONOMY = Object.freeze(buildNcTaxonomy());
|
|
16347
16377
|
var ExpressionParseError = class extends Error {
|
|
16348
16378
|
position;
|
|
16349
16379
|
constructor(message, position) {
|
|
@@ -16884,6 +16914,507 @@ var BATTERY_DEVICE_PROFILE = {
|
|
|
16884
16914
|
"streamBroker.preBufferEnabled": false
|
|
16885
16915
|
}
|
|
16886
16916
|
};
|
|
16917
|
+
var MaskPointSchema = external_exports.object({
|
|
16918
|
+
x: external_exports.number(),
|
|
16919
|
+
y: external_exports.number()
|
|
16920
|
+
});
|
|
16921
|
+
var MaskRectShapeSchema = external_exports.object({
|
|
16922
|
+
kind: external_exports.literal("rect"),
|
|
16923
|
+
x: external_exports.number(),
|
|
16924
|
+
y: external_exports.number(),
|
|
16925
|
+
width: external_exports.number(),
|
|
16926
|
+
height: external_exports.number()
|
|
16927
|
+
});
|
|
16928
|
+
var MaskPolygonShapeSchema = external_exports.object({
|
|
16929
|
+
kind: external_exports.literal("polygon"),
|
|
16930
|
+
points: external_exports.array(MaskPointSchema)
|
|
16931
|
+
});
|
|
16932
|
+
var MaskGridShapeSchema = external_exports.object({
|
|
16933
|
+
kind: external_exports.literal("grid"),
|
|
16934
|
+
gridWidth: external_exports.number(),
|
|
16935
|
+
gridHeight: external_exports.number(),
|
|
16936
|
+
cells: external_exports.array(external_exports.boolean())
|
|
16937
|
+
});
|
|
16938
|
+
var MaskLineShapeSchema = external_exports.object({
|
|
16939
|
+
kind: external_exports.literal("line"),
|
|
16940
|
+
points: external_exports.array(MaskPointSchema)
|
|
16941
|
+
});
|
|
16942
|
+
var MaskShapeSchema = external_exports.discriminatedUnion("kind", [
|
|
16943
|
+
MaskRectShapeSchema,
|
|
16944
|
+
MaskPolygonShapeSchema,
|
|
16945
|
+
MaskGridShapeSchema,
|
|
16946
|
+
MaskLineShapeSchema
|
|
16947
|
+
]);
|
|
16948
|
+
var MaskShapeKindSchema = external_exports.enum([
|
|
16949
|
+
"rect",
|
|
16950
|
+
"polygon",
|
|
16951
|
+
"grid",
|
|
16952
|
+
"line"
|
|
16953
|
+
]);
|
|
16954
|
+
var MaskPolygonVerticesSchema = external_exports.object({
|
|
16955
|
+
min: external_exports.number(),
|
|
16956
|
+
max: external_exports.number()
|
|
16957
|
+
});
|
|
16958
|
+
var MaskGridDimsSchema = external_exports.object({
|
|
16959
|
+
width: external_exports.number(),
|
|
16960
|
+
height: external_exports.number()
|
|
16961
|
+
});
|
|
16962
|
+
var NcDeliverySchema = external_exports.enum([
|
|
16963
|
+
"immediate",
|
|
16964
|
+
"track-end",
|
|
16965
|
+
"device-event",
|
|
16966
|
+
"package-event"
|
|
16967
|
+
]);
|
|
16968
|
+
var NcScheduleWindowSchema = external_exports.object({
|
|
16969
|
+
/** Days of week the window STARTS on (0 = Sunday … 6 = Saturday). */
|
|
16970
|
+
days: external_exports.array(external_exports.number().int().min(0).max(6)).min(1),
|
|
16971
|
+
startMinute: external_exports.number().int().min(0).max(1439),
|
|
16972
|
+
endMinute: external_exports.number().int().min(0).max(1439)
|
|
16973
|
+
});
|
|
16974
|
+
var NcScheduleSchema = external_exports.object({
|
|
16975
|
+
windows: external_exports.array(NcScheduleWindowSchema).min(1),
|
|
16976
|
+
/** IANA timezone; default = hub host timezone. */
|
|
16977
|
+
timezone: external_exports.string().optional(),
|
|
16978
|
+
/** Active OUTSIDE the windows (e.g. "only outside business hours"). */
|
|
16979
|
+
invert: external_exports.boolean().optional()
|
|
16980
|
+
});
|
|
16981
|
+
var NcPlateMatcherSchema = external_exports.object({
|
|
16982
|
+
values: external_exports.array(external_exports.string().min(1)).min(1),
|
|
16983
|
+
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
16984
|
+
maxDistance: external_exports.number().int().min(0).max(3).default(1)
|
|
16985
|
+
});
|
|
16986
|
+
var NcOccupancyConditionSchema = external_exports.object({
|
|
16987
|
+
/** Admin zone id to scope the count to; absent = whole-frame occupancy. */
|
|
16988
|
+
zoneId: external_exports.string().optional(),
|
|
16989
|
+
/** Object class to count; absent = any class. */
|
|
16990
|
+
className: external_exports.string().optional(),
|
|
16991
|
+
op: external_exports.enum([
|
|
16992
|
+
"became-occupied",
|
|
16993
|
+
"became-free",
|
|
16994
|
+
">=",
|
|
16995
|
+
"<="
|
|
16996
|
+
]).default("became-occupied"),
|
|
16997
|
+
count: external_exports.number().int().min(0).default(1),
|
|
16998
|
+
sustainSeconds: external_exports.number().int().min(0).max(3600).default(15)
|
|
16999
|
+
});
|
|
17000
|
+
var NcZoneConditionSchema = external_exports.object({
|
|
17001
|
+
ids: external_exports.array(external_exports.string().min(1)).min(1),
|
|
17002
|
+
/** Quantifier over `ids` — at least one / every one visited. */
|
|
17003
|
+
match: external_exports.enum(["any", "all"]).default("any")
|
|
17004
|
+
});
|
|
17005
|
+
var NcConditionsSchema = external_exports.object({
|
|
17006
|
+
/** Device scope — absent = all devices. */
|
|
17007
|
+
devices: external_exports.array(external_exports.number()).optional(),
|
|
17008
|
+
/** Detector class names (any overlap with the record's class set). */
|
|
17009
|
+
classes: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17010
|
+
/** Veto classes — any overlap fails the rule. */
|
|
17011
|
+
classesExclude: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17012
|
+
/** Minimum detection confidence 0–1 (fails when the record has none). */
|
|
17013
|
+
minConfidence: external_exports.number().min(0).max(1).optional(),
|
|
17014
|
+
/** Admin zone membership over event `zones` / track `zonesVisited`. */
|
|
17015
|
+
zones: NcZoneConditionSchema.optional(),
|
|
17016
|
+
/** Veto zones — any hit fails the rule. */
|
|
17017
|
+
zonesExclude: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17018
|
+
/**
|
|
17019
|
+
* Exact (case-insensitive) match on the record's collapsed `label`
|
|
17020
|
+
* (identity name / plate text / subclass).
|
|
17021
|
+
*/
|
|
17022
|
+
labelEquals: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17023
|
+
/**
|
|
17024
|
+
* Identity matcher. P1 boundary: matched against the record's collapsed
|
|
17025
|
+
* `label` (the identity display name propagated by the face pipeline) —
|
|
17026
|
+
* identity-ID matching rides in P2 when identity ids reach the record.
|
|
17027
|
+
*/
|
|
17028
|
+
identities: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17029
|
+
/** Fuzzy plate matcher against the record's `label` (plate text). */
|
|
17030
|
+
plates: NcPlateMatcherSchema.optional(),
|
|
17031
|
+
/**
|
|
17032
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
|
|
17033
|
+
* Same P1 boundary: matched against the record's collapsed `label` (the
|
|
17034
|
+
* identity display name). A record with NO label passes (nothing to
|
|
17035
|
+
* exclude), unlike the include variant which fails on an absent label.
|
|
17036
|
+
*/
|
|
17037
|
+
identitiesExclude: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17038
|
+
/**
|
|
17039
|
+
* Minimum server-computed key-event importance in [0,1] (`Track.importance`).
|
|
17040
|
+
* TRACK-END only: importance is scored at track close, so it does not exist
|
|
17041
|
+
* at immediate / object-event evaluation time (see catalog `appliesTo`). At
|
|
17042
|
+
* close the value is threaded via the close-time info (the `Track` clone is
|
|
17043
|
+
* captured before the DB row is updated, so it would otherwise read stale).
|
|
17044
|
+
* Fails when the record carries no importance (never guess quality — the
|
|
17045
|
+
* `minConfidence` precedent). MVP cut: a single scalar threshold.
|
|
17046
|
+
*/
|
|
17047
|
+
minImportance: external_exports.number().min(0).max(1).optional(),
|
|
17048
|
+
/**
|
|
17049
|
+
* Minimum track dwell in SECONDS — `(lastSeen − firstSeen) / 1000`.
|
|
17050
|
+
* TRACK-END only: an `immediate` / object-event subject has no closed
|
|
17051
|
+
* lifespan, so a dwell condition never matches immediate delivery
|
|
17052
|
+
* (documented choice — the object-event record carries no `firstSeen`,
|
|
17053
|
+
* so dwell cannot be computed from what the subject actually carries).
|
|
17054
|
+
*/
|
|
17055
|
+
minDwellSeconds: external_exports.number().min(0).optional(),
|
|
17056
|
+
/**
|
|
17057
|
+
* Detection provenance filter. `any` (default / absent) matches every
|
|
17058
|
+
* source; otherwise the subject's source must equal it. Legacy records
|
|
17059
|
+
* with no stamped source are treated as `pipeline`. The union spans both
|
|
17060
|
+
* record kinds — object events carry `pipeline` | `onboard`, synthetic
|
|
17061
|
+
* tracks carry `sensor`.
|
|
17062
|
+
*/
|
|
17063
|
+
source: external_exports.enum([
|
|
17064
|
+
"pipeline",
|
|
17065
|
+
"onboard",
|
|
17066
|
+
"sensor",
|
|
17067
|
+
"any"
|
|
17068
|
+
]).optional(),
|
|
17069
|
+
/**
|
|
17070
|
+
* Minimum identity / plate MATCH confidence in [0,1] — DISTINCT from the
|
|
17071
|
+
* detector `minConfidence` (that gates the object-detection score; this
|
|
17072
|
+
* gates the recognition/OCR match score). Fails when the subject carries
|
|
17073
|
+
* no label-match confidence (never guess). TRACK-END only: the confidence
|
|
17074
|
+
* lives on the recognition result and reaches the subject at track close.
|
|
17075
|
+
*
|
|
17076
|
+
* What it measures precisely (plumbed at track close — the closer threads
|
|
17077
|
+
* the value into `NcTrackClosedInfo.labelConfidence`, the same seam as
|
|
17078
|
+
* `importance`): the BEST recognition match confidence observed for the
|
|
17079
|
+
* label the track carries at close — for a face, the peak cosine similarity
|
|
17080
|
+
* of the ASSIGNED identity (`FaceMatch.score`, reset on an identity switch);
|
|
17081
|
+
* for a plate, the peak OCR read score of the best-held plate
|
|
17082
|
+
* (`plateText.confidence`). When BOTH a face and a plate were recognized on
|
|
17083
|
+
* one track the higher of the two is used. A track that ended with no
|
|
17084
|
+
* confident identity/plate match carries no value, so the condition fails
|
|
17085
|
+
* closed for it (an un-recognized subject).
|
|
17086
|
+
*/
|
|
17087
|
+
minLabelConfidence: external_exports.number().min(0).max(1).optional(),
|
|
17088
|
+
/**
|
|
17089
|
+
* DEVICE-EVENT only. Raw device event-type tokens (`EventFire.eventType`,
|
|
17090
|
+
* e.g. a doorbell `press` / `press_long`) — matched case-insensitively
|
|
17091
|
+
* against the token carried on the device-event subject (extracted from the
|
|
17092
|
+
* event-emitter runtime slice's `lastEvent.eventType`). Fails when the
|
|
17093
|
+
* subject carries no token. Doorbell-pulse / passive-sensor kinds emit no
|
|
17094
|
+
* eventType, so gate those with {@link sensorKinds} instead.
|
|
17095
|
+
*/
|
|
17096
|
+
eventTypeTokens: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17097
|
+
/**
|
|
17098
|
+
* DEVICE-EVENT only. Sensor/control taxonomy kinds (e.g. `doorbell`,
|
|
17099
|
+
* `contact`, `button`, `device-event`) — matched against the persisted
|
|
17100
|
+
* `SensorEvent.kind` (see `sensor-event-kinds.ts`). Membership is OR.
|
|
17101
|
+
*/
|
|
17102
|
+
sensorKinds: external_exports.array(external_exports.string().min(1)).optional(),
|
|
17103
|
+
/**
|
|
17104
|
+
* PACKAGE-EVENT only. Which package phase fires the rule — `delivered`
|
|
17105
|
+
* (a parked parcel appeared), `picked-up` (it departed), or `both`. Fails
|
|
17106
|
+
* when the subject's phase does not match (a subject always carries a phase
|
|
17107
|
+
* on the package-event trigger).
|
|
17108
|
+
*/
|
|
17109
|
+
packagePhase: external_exports.enum([
|
|
17110
|
+
"delivered",
|
|
17111
|
+
"picked-up",
|
|
17112
|
+
"both"
|
|
17113
|
+
]).optional(),
|
|
17114
|
+
/**
|
|
17115
|
+
* PERSONAL-RULE custom zones (viewer-drawn). Inline normalized polygons
|
|
17116
|
+
* (MaskShape vocabulary). A record passes when its bbox overlaps ANY
|
|
17117
|
+
* listed polygon (ZoneEngine membership semantics). Evaluated only when
|
|
17118
|
+
* the subject carries a bbox; absent bbox ⇒ the condition FAILS.
|
|
17119
|
+
*/
|
|
17120
|
+
customZones: external_exports.array(MaskPolygonShapeSchema).optional(),
|
|
17121
|
+
/**
|
|
17122
|
+
* DEVICE-EVENT only. ZoneAnalytics occupancy edge — fires when a device's
|
|
17123
|
+
* (optionally zone/class-scoped) occupancy count crosses the configured
|
|
17124
|
+
* threshold and holds for `sustainSeconds`. Fail-closed on missing
|
|
17125
|
+
* substrate (no snapshot / missing zone). See {@link NcOccupancyCondition}.
|
|
17126
|
+
*/
|
|
17127
|
+
occupancy: NcOccupancyConditionSchema.optional()
|
|
17128
|
+
});
|
|
17129
|
+
var NcRuleTargetSchema = external_exports.object({
|
|
17130
|
+
/** `notification-output` Target id. */
|
|
17131
|
+
targetId: external_exports.string().min(1),
|
|
17132
|
+
/**
|
|
17133
|
+
* Per-backend passthrough. Recognized keys are mapped onto the canonical
|
|
17134
|
+
* Notification (`priority`, `level`, `sound`, `clickUrl`, `ttl`); the
|
|
17135
|
+
* degrade engine drops what the backend can't render.
|
|
17136
|
+
*/
|
|
17137
|
+
params: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
17138
|
+
});
|
|
17139
|
+
var NcMediaPolicySchema = external_exports.object({ attach: external_exports.enum([
|
|
17140
|
+
"best",
|
|
17141
|
+
"best-matching",
|
|
17142
|
+
"keyFrame",
|
|
17143
|
+
"none"
|
|
17144
|
+
]).default("best") });
|
|
17145
|
+
var NcThrottleSchema = external_exports.object({
|
|
17146
|
+
cooldownSec: external_exports.number().int().min(0).max(86400).default(60),
|
|
17147
|
+
/** `rule` = one shared cooldown; `rule-device` = per-camera cooldown. */
|
|
17148
|
+
scope: external_exports.enum(["rule", "rule-device"]).default("rule-device")
|
|
17149
|
+
});
|
|
17150
|
+
var NcRuleInputSchema = external_exports.object({
|
|
17151
|
+
name: external_exports.string().min(1).max(200),
|
|
17152
|
+
enabled: external_exports.boolean().default(true),
|
|
17153
|
+
delivery: NcDeliverySchema,
|
|
17154
|
+
conditions: NcConditionsSchema.default({}),
|
|
17155
|
+
schedule: NcScheduleSchema.optional(),
|
|
17156
|
+
targets: external_exports.array(NcRuleTargetSchema).min(1),
|
|
17157
|
+
media: NcMediaPolicySchema.default({ attach: "best" }),
|
|
17158
|
+
throttle: NcThrottleSchema.default({
|
|
17159
|
+
cooldownSec: 60,
|
|
17160
|
+
scope: "rule-device"
|
|
17161
|
+
}),
|
|
17162
|
+
/** `{{var}}` templating over camera/class/label/zones/confidence/time. */
|
|
17163
|
+
template: external_exports.object({
|
|
17164
|
+
title: external_exports.string().max(500).optional(),
|
|
17165
|
+
body: external_exports.string().max(2e3).optional()
|
|
17166
|
+
}).optional(),
|
|
17167
|
+
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
17168
|
+
priority: external_exports.number().int().min(1).max(5).default(3),
|
|
17169
|
+
/**
|
|
17170
|
+
* Ownership/visibility key. Absent = admin/global rule (unchanged legacy
|
|
17171
|
+
* behaviour, visible to all, read-only in the viewer). Present = personal
|
|
17172
|
+
* rule owned by this userId. Server-stamped; never trusted from a client.
|
|
17173
|
+
*/
|
|
17174
|
+
ownerUserId: external_exports.string().optional()
|
|
17175
|
+
});
|
|
17176
|
+
var NcRulePatchSchema = NcRuleInputSchema.partial().extend({ disabledTargetIds: external_exports.array(external_exports.string()).optional() });
|
|
17177
|
+
var NcRuleSchema = NcRuleInputSchema.extend({
|
|
17178
|
+
id: external_exports.string(),
|
|
17179
|
+
/** userId of the admin who created the rule (server-stamped caller). */
|
|
17180
|
+
createdBy: external_exports.string(),
|
|
17181
|
+
createdAt: external_exports.number(),
|
|
17182
|
+
updatedAt: external_exports.number(),
|
|
17183
|
+
/**
|
|
17184
|
+
* Per-target opt-out set. A targetId here is suppressed for THIS rule at
|
|
17185
|
+
* send time. Only a target's OWNER may add/remove its id (server-checked
|
|
17186
|
+
* in `nc.setRuleTargetEnabled`). Defaults to empty.
|
|
17187
|
+
*/
|
|
17188
|
+
disabledTargetIds: external_exports.array(external_exports.string()).default([])
|
|
17189
|
+
});
|
|
17190
|
+
var NcTestResultSchema = external_exports.object({
|
|
17191
|
+
recordId: external_exports.string(),
|
|
17192
|
+
recordKind: external_exports.enum([
|
|
17193
|
+
"object-event",
|
|
17194
|
+
"track",
|
|
17195
|
+
"device-event",
|
|
17196
|
+
"package-event"
|
|
17197
|
+
]),
|
|
17198
|
+
deviceId: external_exports.number(),
|
|
17199
|
+
timestamp: external_exports.number(),
|
|
17200
|
+
wouldFire: external_exports.boolean(),
|
|
17201
|
+
/** Condition id that failed (first failing group), when `wouldFire` is false. */
|
|
17202
|
+
failedCondition: external_exports.string().optional(),
|
|
17203
|
+
className: external_exports.string().optional(),
|
|
17204
|
+
label: external_exports.string().optional()
|
|
17205
|
+
});
|
|
17206
|
+
var NcConditionDescriptorSchema = external_exports.object({
|
|
17207
|
+
/** Field id inside `NcConditions` (or `'schedule'` for the rule-level group). */
|
|
17208
|
+
id: external_exports.string(),
|
|
17209
|
+
group: external_exports.enum([
|
|
17210
|
+
"scope",
|
|
17211
|
+
"class",
|
|
17212
|
+
"zones",
|
|
17213
|
+
"quality",
|
|
17214
|
+
"label",
|
|
17215
|
+
"schedule",
|
|
17216
|
+
"device",
|
|
17217
|
+
"package",
|
|
17218
|
+
"occupancy"
|
|
17219
|
+
]),
|
|
17220
|
+
label: external_exports.string(),
|
|
17221
|
+
/** Editor widget the UI renders — never hardcode per-condition forms. */
|
|
17222
|
+
valueType: external_exports.enum([
|
|
17223
|
+
"deviceIdList",
|
|
17224
|
+
"stringList",
|
|
17225
|
+
"number01",
|
|
17226
|
+
"number",
|
|
17227
|
+
"sourceSelect",
|
|
17228
|
+
"zoneSelection",
|
|
17229
|
+
"zoneIdList",
|
|
17230
|
+
"schedule",
|
|
17231
|
+
"plateMatcher",
|
|
17232
|
+
"packagePhase",
|
|
17233
|
+
"polygonDraw",
|
|
17234
|
+
"occupancy"
|
|
17235
|
+
]),
|
|
17236
|
+
operator: external_exports.enum([
|
|
17237
|
+
"in",
|
|
17238
|
+
"notIn",
|
|
17239
|
+
"anyOf",
|
|
17240
|
+
"allOf",
|
|
17241
|
+
"gte",
|
|
17242
|
+
"fuzzyIn",
|
|
17243
|
+
"withinSchedule"
|
|
17244
|
+
]),
|
|
17245
|
+
/** Which delivery kinds the condition applies to. */
|
|
17246
|
+
appliesTo: external_exports.array(NcDeliverySchema),
|
|
17247
|
+
phase: external_exports.string(),
|
|
17248
|
+
description: external_exports.string().optional()
|
|
17249
|
+
});
|
|
17250
|
+
var NcHistoryStatusSchema = external_exports.enum([
|
|
17251
|
+
"pending",
|
|
17252
|
+
"sent",
|
|
17253
|
+
"dead"
|
|
17254
|
+
]);
|
|
17255
|
+
var NcHistoryRecordKindSchema = external_exports.enum([
|
|
17256
|
+
"object-event",
|
|
17257
|
+
"track-end",
|
|
17258
|
+
"device-event",
|
|
17259
|
+
"package-event"
|
|
17260
|
+
]);
|
|
17261
|
+
var NcHistorySubjectSchema = external_exports.object({
|
|
17262
|
+
className: external_exports.string(),
|
|
17263
|
+
label: external_exports.string().optional(),
|
|
17264
|
+
confidence: external_exports.number().optional(),
|
|
17265
|
+
zones: external_exports.array(external_exports.string()),
|
|
17266
|
+
timestamp: external_exports.number()
|
|
17267
|
+
});
|
|
17268
|
+
var NcHistoryEntrySchema = external_exports.object({
|
|
17269
|
+
/** Outbox row id — the stable dedup id `ruleId:dedupRef:targetId`. */
|
|
17270
|
+
id: external_exports.string(),
|
|
17271
|
+
ruleId: external_exports.string(),
|
|
17272
|
+
/** Rule name frozen at fire time (outlives a later rename / delete). */
|
|
17273
|
+
ruleName: external_exports.string(),
|
|
17274
|
+
/** The rule urgency/trigger that produced this delivery. */
|
|
17275
|
+
delivery: NcDeliverySchema,
|
|
17276
|
+
targetId: external_exports.string(),
|
|
17277
|
+
deviceId: external_exports.number(),
|
|
17278
|
+
recordKind: NcHistoryRecordKindSchema,
|
|
17279
|
+
/** Event / track ref of the evaluated record (§3.2 `eventRef`). */
|
|
17280
|
+
recordId: external_exports.string(),
|
|
17281
|
+
/** Present for track-scoped deliveries (object-event / track-end). */
|
|
17282
|
+
trackId: external_exports.string().optional(),
|
|
17283
|
+
status: NcHistoryStatusSchema,
|
|
17284
|
+
/** Delivery attempts made so far. */
|
|
17285
|
+
attempts: external_exports.number().int(),
|
|
17286
|
+
/** Fire time (outbox enqueue). */
|
|
17287
|
+
createdAt: external_exports.number(),
|
|
17288
|
+
/** Last transition time (terminal for sent / dead). */
|
|
17289
|
+
updatedAt: external_exports.number(),
|
|
17290
|
+
/** Failure detail — present on a `dead` row. */
|
|
17291
|
+
error: external_exports.string().optional(),
|
|
17292
|
+
subject: NcHistorySubjectSchema
|
|
17293
|
+
});
|
|
17294
|
+
var NcHistoryFilterSchema = external_exports.object({
|
|
17295
|
+
ruleId: external_exports.string().optional(),
|
|
17296
|
+
deviceId: external_exports.number().optional(),
|
|
17297
|
+
status: NcHistoryStatusSchema.optional(),
|
|
17298
|
+
since: external_exports.number().optional(),
|
|
17299
|
+
until: external_exports.number().optional(),
|
|
17300
|
+
limit: external_exports.number().int().min(1).max(500).default(100)
|
|
17301
|
+
});
|
|
17302
|
+
var notificationRulesCapability = {
|
|
17303
|
+
name: "notification-rules",
|
|
17304
|
+
scope: "system",
|
|
17305
|
+
mode: "singleton",
|
|
17306
|
+
methods: {
|
|
17307
|
+
listRules: method(external_exports.object({}), external_exports.object({ rules: external_exports.array(NcRuleSchema) }), { auth: "admin" }),
|
|
17308
|
+
getRule: method(external_exports.object({ ruleId: external_exports.string() }), external_exports.object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }),
|
|
17309
|
+
createRule: method(external_exports.object({ rule: NcRuleInputSchema }), external_exports.object({ rule: NcRuleSchema }), {
|
|
17310
|
+
kind: "mutation",
|
|
17311
|
+
auth: "admin",
|
|
17312
|
+
caller: "required"
|
|
17313
|
+
}),
|
|
17314
|
+
updateRule: method(external_exports.object({
|
|
17315
|
+
ruleId: external_exports.string(),
|
|
17316
|
+
patch: NcRulePatchSchema
|
|
17317
|
+
}), external_exports.object({ rule: NcRuleSchema }), {
|
|
17318
|
+
kind: "mutation",
|
|
17319
|
+
auth: "admin",
|
|
17320
|
+
caller: "required"
|
|
17321
|
+
}),
|
|
17322
|
+
deleteRule: method(external_exports.object({ ruleId: external_exports.string() }), external_exports.object({ success: external_exports.literal(true) }), {
|
|
17323
|
+
kind: "mutation",
|
|
17324
|
+
auth: "admin"
|
|
17325
|
+
}),
|
|
17326
|
+
setRuleEnabled: method(external_exports.object({
|
|
17327
|
+
ruleId: external_exports.string(),
|
|
17328
|
+
enabled: external_exports.boolean()
|
|
17329
|
+
}), external_exports.object({ success: external_exports.literal(true) }), {
|
|
17330
|
+
kind: "mutation",
|
|
17331
|
+
auth: "admin"
|
|
17332
|
+
}),
|
|
17333
|
+
/**
|
|
17334
|
+
* Dry-run a rule against recently persisted records (object events for
|
|
17335
|
+
* `immediate`, closed tracks for `track-end`). Mutation kind only to
|
|
17336
|
+
* carry the full rule object safely; no side effects.
|
|
17337
|
+
*/
|
|
17338
|
+
testRule: method(external_exports.object({
|
|
17339
|
+
rule: NcRuleInputSchema,
|
|
17340
|
+
lookbackMinutes: external_exports.number().int().min(1).max(1440).default(60)
|
|
17341
|
+
}), external_exports.object({ results: external_exports.array(NcTestResultSchema) }), {
|
|
17342
|
+
kind: "mutation",
|
|
17343
|
+
auth: "admin"
|
|
17344
|
+
}),
|
|
17345
|
+
getConditionCatalog: method(external_exports.object({}), external_exports.object({ catalog: external_exports.array(NcConditionDescriptorSchema) })),
|
|
17346
|
+
/**
|
|
17347
|
+
* Queryable delivery history — a read-only view over the durable outbox
|
|
17348
|
+
* (fired rule, subject summary, target, status, timestamps, error on a
|
|
17349
|
+
* dead row). Newest-first, bounded by `filter.limit`. Retention follows
|
|
17350
|
+
* the outbox's own terminal-row prune horizon (no separate history
|
|
17351
|
+
* horizon — single collection, single source of truth). Admin-only in
|
|
17352
|
+
* P1 (no user dimension); the P2 viewer History screen adds per-caller
|
|
17353
|
+
* scoping on the same method.
|
|
17354
|
+
*/
|
|
17355
|
+
getHistory: method(external_exports.object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), external_exports.object({ entries: external_exports.array(NcHistoryEntrySchema) }), { auth: "admin" })
|
|
17356
|
+
}
|
|
17357
|
+
};
|
|
17358
|
+
var TimelapseTemplateSchema = external_exports.object({
|
|
17359
|
+
title: external_exports.string().max(500).optional(),
|
|
17360
|
+
body: external_exports.string().max(2e3).optional()
|
|
17361
|
+
});
|
|
17362
|
+
var NameField = external_exports.string().min(1).max(200);
|
|
17363
|
+
var DeviceIdsField = external_exports.array(external_exports.number()).min(1);
|
|
17364
|
+
var CadenceSecField = external_exports.number().int().min(2).max(3600);
|
|
17365
|
+
var FramerateField = external_exports.number().int().min(1).max(60);
|
|
17366
|
+
var TargetsField = external_exports.array(NcRuleTargetSchema).min(1);
|
|
17367
|
+
var PriorityField = external_exports.number().int().min(1).max(5);
|
|
17368
|
+
var TimelapseRuleInputSchema = external_exports.object({
|
|
17369
|
+
name: NameField,
|
|
17370
|
+
enabled: external_exports.boolean().default(true),
|
|
17371
|
+
/** Cameras sampled by this rule — one scratch dir + one artifact per device. */
|
|
17372
|
+
deviceIds: DeviceIdsField,
|
|
17373
|
+
/**
|
|
17374
|
+
* Activation window(s). REQUIRED (unlike `NcRule`, where an absent schedule
|
|
17375
|
+
* means "always active"): a timelapse is defined by its window boundaries —
|
|
17376
|
+
* open clears the scratch, close assembles and delivers.
|
|
17377
|
+
*/
|
|
17378
|
+
schedule: NcScheduleSchema,
|
|
17379
|
+
/** Force-snapshot cadence inside the window, seconds (predecessor parity). */
|
|
17380
|
+
cadenceSec: CadenceSecField.default(15),
|
|
17381
|
+
/** Output frames per second of the assembled mp4 (predecessor parity). */
|
|
17382
|
+
framerate: FramerateField.default(10),
|
|
17383
|
+
/** `notification-output` targets the finished video/thumbnail is sent to. */
|
|
17384
|
+
targets: TargetsField,
|
|
17385
|
+
template: TimelapseTemplateSchema.optional(),
|
|
17386
|
+
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
17387
|
+
priority: PriorityField.default(3)
|
|
17388
|
+
});
|
|
17389
|
+
var TimelapseRulePatchSchema = external_exports.object({
|
|
17390
|
+
name: NameField.optional(),
|
|
17391
|
+
enabled: external_exports.boolean().optional(),
|
|
17392
|
+
deviceIds: DeviceIdsField.optional(),
|
|
17393
|
+
schedule: NcScheduleSchema.optional(),
|
|
17394
|
+
cadenceSec: CadenceSecField.optional(),
|
|
17395
|
+
framerate: FramerateField.optional(),
|
|
17396
|
+
targets: TargetsField.optional(),
|
|
17397
|
+
template: TimelapseTemplateSchema.nullable().optional(),
|
|
17398
|
+
priority: PriorityField.optional()
|
|
17399
|
+
});
|
|
17400
|
+
var TimelapseRuleSchema = TimelapseRuleInputSchema.extend({
|
|
17401
|
+
id: external_exports.string(),
|
|
17402
|
+
/**
|
|
17403
|
+
* Ownership/visibility key. Absent = admin/global rule (visible to all).
|
|
17404
|
+
* Present = personal rule owned by this userId. Server-stamped from the
|
|
17405
|
+
* resolved caller; never trusted from a client payload.
|
|
17406
|
+
*/
|
|
17407
|
+
ownerUserId: external_exports.string().optional(),
|
|
17408
|
+
/**
|
|
17409
|
+
* Epoch-ms of the last successful generation — the 1-hour re-generation
|
|
17410
|
+
* guard's durable state (predecessor parity). Absent = never generated.
|
|
17411
|
+
*/
|
|
17412
|
+
lastGeneratedAt: external_exports.number().optional(),
|
|
17413
|
+
/** userId of the caller who created the rule (server-stamped). */
|
|
17414
|
+
createdBy: external_exports.string(),
|
|
17415
|
+
createdAt: external_exports.number(),
|
|
17416
|
+
updatedAt: external_exports.number()
|
|
17417
|
+
});
|
|
16887
17418
|
var DeviceStatusSchema = external_exports.object({
|
|
16888
17419
|
/**
|
|
16889
17420
|
* Device-level liveness. Drivers flip via `markOnline(boolean)` on
|
|
@@ -19498,6 +20029,17 @@ var CameraMetricsSchema = external_exports.object({
|
|
|
19498
20029
|
])
|
|
19499
20030
|
});
|
|
19500
20031
|
var CameraMetricsWithDeviceIdSchema = CameraMetricsSchema.extend({ deviceId: external_exports.number() });
|
|
20032
|
+
var NativeCropRefSchema = external_exports.object({
|
|
20033
|
+
/** Handle keying the retained native surface (node-pinned to its owner). */
|
|
20034
|
+
handle: FrameHandleSchema,
|
|
20035
|
+
/** The parent crop's padded/clamped rectangle in FRAME-space pixels. */
|
|
20036
|
+
cropFrameSpace: external_exports.object({
|
|
20037
|
+
x: external_exports.number(),
|
|
20038
|
+
y: external_exports.number(),
|
|
20039
|
+
w: external_exports.number(),
|
|
20040
|
+
h: external_exports.number()
|
|
20041
|
+
})
|
|
20042
|
+
});
|
|
19501
20043
|
var ModelFormatSchema$1 = external_exports.enum([
|
|
19502
20044
|
"onnx",
|
|
19503
20045
|
"coreml",
|
|
@@ -19850,7 +20392,22 @@ var pipelineExecutorCapability = {
|
|
|
19850
20392
|
* Omitted ⇒ the runner's default device (current single-engine
|
|
19851
20393
|
* behaviour). Selects WHICH device pool of the node runs the call.
|
|
19852
20394
|
*/
|
|
19853
|
-
deviceKey: external_exports.string().optional()
|
|
20395
|
+
deviceKey: external_exports.string().optional(),
|
|
20396
|
+
/**
|
|
20397
|
+
* Two-plane NATIVE child-crop reference. Set by `runDetailSubtree` ONLY
|
|
20398
|
+
* when the parent crop was resolved from the frame's retained NATIVE
|
|
20399
|
+
* surface (a frameHandle HIT). Lets the executor re-cut a LEAF crop
|
|
20400
|
+
* child's ROI (plate-ocr, face-embedding, leaf classifiers) at native
|
|
20401
|
+
* resolution from that surface — the SAME quality path faces already
|
|
20402
|
+
* had — instead of the downscaled parent tile. `handle` keys the native
|
|
20403
|
+
* surface (node-pinned to its owner); `cropFrameSpace` is the parent
|
|
20404
|
+
* crop's padded/clamped rectangle in FRAME-space pixels, used to compose
|
|
20405
|
+
* the executor's crop-normalized child ROI back into frame-normalized
|
|
20406
|
+
* coordinates. Auxiliary to the image source (`image`/`frame`/…), NOT one
|
|
20407
|
+
* of the mutually-exclusive image inputs. Absent ⇒ tile-crop children
|
|
20408
|
+
* (today's behaviour on the fallback path).
|
|
20409
|
+
*/
|
|
20410
|
+
nativeCropRef: NativeCropRefSchema.optional()
|
|
19854
20411
|
}), PipelineRunResultBridge, { kind: "mutation" }),
|
|
19855
20412
|
/**
|
|
19856
20413
|
* Batched run — N raw frames packed into one cap call. The provider
|
|
@@ -20098,7 +20655,11 @@ var DetailResultSchema = external_exports.object({
|
|
|
20098
20655
|
bbox: NativeCropBboxSchema.optional(),
|
|
20099
20656
|
embedding: external_exports.string().optional(),
|
|
20100
20657
|
label: external_exports.string().optional(),
|
|
20101
|
-
alignedCropJpeg: external_exports.string().optional()
|
|
20658
|
+
alignedCropJpeg: external_exports.string().optional(),
|
|
20659
|
+
/** Face short side (px) measured on the NATIVE crop surface. The `bbox`
|
|
20660
|
+
* above is detection-frame px (≈6× smaller on a 4K camera) — min-face-size
|
|
20661
|
+
* consumers MUST prefer this when present (2026-07-22 native-gate fix). */
|
|
20662
|
+
nativeFaceShortSidePx: external_exports.number().optional()
|
|
20102
20663
|
});
|
|
20103
20664
|
var motionCooldownMsField = {
|
|
20104
20665
|
min: 0,
|
|
@@ -20106,6 +20667,12 @@ var motionCooldownMsField = {
|
|
|
20106
20667
|
default: 3e4,
|
|
20107
20668
|
step: 500
|
|
20108
20669
|
};
|
|
20670
|
+
var maxSessionHoldMsField = {
|
|
20671
|
+
min: 0,
|
|
20672
|
+
max: 6e5,
|
|
20673
|
+
default: 12e4,
|
|
20674
|
+
step: 5e3
|
|
20675
|
+
};
|
|
20109
20676
|
var motionFpsField = {
|
|
20110
20677
|
min: 1,
|
|
20111
20678
|
max: 30,
|
|
@@ -20186,6 +20753,19 @@ var RunnerCameraConfigSchema = external_exports.object({
|
|
|
20186
20753
|
"on-motion"
|
|
20187
20754
|
]).default("always-on"),
|
|
20188
20755
|
motionCooldownMs: external_exports.number().min(motionCooldownMsField.min).default(motionCooldownMsField.default),
|
|
20756
|
+
/**
|
|
20757
|
+
* Orchestrator-side on-motion session-hold cap (ms). While an on-motion
|
|
20758
|
+
* detection session is active and ≥1 confirmed non-stationary track is
|
|
20759
|
+
* still live, the orchestrator keeps the session open past
|
|
20760
|
+
* `motionCooldownMs` (a slowly-moving subject can stop re-triggering the
|
|
20761
|
+
* camera's VMD yet is still being tracked frame-to-frame) — up to this many
|
|
20762
|
+
* ms since the session opened, after which it closes regardless. `0`
|
|
20763
|
+
* disables the hold (legacy cooldown-only teardown). Not consumed by the
|
|
20764
|
+
* runner itself — carried here so it shares the per-camera device-settings
|
|
20765
|
+
* surface with `motionCooldownMs`; the orchestrator reads it off the
|
|
20766
|
+
* resolved `CameraDetectionConfig`.
|
|
20767
|
+
*/
|
|
20768
|
+
maxSessionHoldMs: external_exports.number().min(maxSessionHoldMsField.min).max(maxSessionHoldMsField.max).optional(),
|
|
20189
20769
|
motionFps: external_exports.number().min(motionFpsField.min).max(motionFpsField.max).default(motionFpsField.default),
|
|
20190
20770
|
detectionFps: external_exports.number().min(detectionFpsField.min).max(detectionFpsField.max).default(detectionFpsField.default),
|
|
20191
20771
|
motionStreamId: external_exports.string(),
|
|
@@ -20334,6 +20914,21 @@ var RunnerCameraDeviceUIFields = [
|
|
|
20334
20914
|
nullable: true,
|
|
20335
20915
|
nullLabel: "Default"
|
|
20336
20916
|
},
|
|
20917
|
+
{
|
|
20918
|
+
key: "maxSessionHoldMs",
|
|
20919
|
+
type: "slider",
|
|
20920
|
+
label: "Max session hold",
|
|
20921
|
+
description: "Upper bound on how long detection keeps running past the motion cooldown while a subject is still moving in-frame but no longer triggering motion. Prevents the detection box from stopping on a slow-moving subject. Set to 0 to disable.",
|
|
20922
|
+
min: maxSessionHoldMsField.min,
|
|
20923
|
+
max: maxSessionHoldMsField.max,
|
|
20924
|
+
step: maxSessionHoldMsField.step,
|
|
20925
|
+
default: maxSessionHoldMsField.default,
|
|
20926
|
+
showValue: true,
|
|
20927
|
+
unit: "s",
|
|
20928
|
+
displayScale: 1e3,
|
|
20929
|
+
nullable: true,
|
|
20930
|
+
nullLabel: "Default"
|
|
20931
|
+
},
|
|
20337
20932
|
{
|
|
20338
20933
|
key: "onboardMotionDrivesAnalyzer",
|
|
20339
20934
|
type: "boolean",
|
|
@@ -20611,51 +21206,6 @@ var motionTriggerCapability = {
|
|
|
20611
21206
|
},
|
|
20612
21207
|
runtimeState: MotionTriggerRuntimeStateSchema
|
|
20613
21208
|
};
|
|
20614
|
-
var MaskPointSchema = external_exports.object({
|
|
20615
|
-
x: external_exports.number(),
|
|
20616
|
-
y: external_exports.number()
|
|
20617
|
-
});
|
|
20618
|
-
var MaskRectShapeSchema = external_exports.object({
|
|
20619
|
-
kind: external_exports.literal("rect"),
|
|
20620
|
-
x: external_exports.number(),
|
|
20621
|
-
y: external_exports.number(),
|
|
20622
|
-
width: external_exports.number(),
|
|
20623
|
-
height: external_exports.number()
|
|
20624
|
-
});
|
|
20625
|
-
var MaskPolygonShapeSchema = external_exports.object({
|
|
20626
|
-
kind: external_exports.literal("polygon"),
|
|
20627
|
-
points: external_exports.array(MaskPointSchema)
|
|
20628
|
-
});
|
|
20629
|
-
var MaskGridShapeSchema = external_exports.object({
|
|
20630
|
-
kind: external_exports.literal("grid"),
|
|
20631
|
-
gridWidth: external_exports.number(),
|
|
20632
|
-
gridHeight: external_exports.number(),
|
|
20633
|
-
cells: external_exports.array(external_exports.boolean())
|
|
20634
|
-
});
|
|
20635
|
-
var MaskLineShapeSchema = external_exports.object({
|
|
20636
|
-
kind: external_exports.literal("line"),
|
|
20637
|
-
points: external_exports.array(MaskPointSchema)
|
|
20638
|
-
});
|
|
20639
|
-
var MaskShapeSchema = external_exports.discriminatedUnion("kind", [
|
|
20640
|
-
MaskRectShapeSchema,
|
|
20641
|
-
MaskPolygonShapeSchema,
|
|
20642
|
-
MaskGridShapeSchema,
|
|
20643
|
-
MaskLineShapeSchema
|
|
20644
|
-
]);
|
|
20645
|
-
var MaskShapeKindSchema = external_exports.enum([
|
|
20646
|
-
"rect",
|
|
20647
|
-
"polygon",
|
|
20648
|
-
"grid",
|
|
20649
|
-
"line"
|
|
20650
|
-
]);
|
|
20651
|
-
var MaskPolygonVerticesSchema = external_exports.object({
|
|
20652
|
-
min: external_exports.number(),
|
|
20653
|
-
max: external_exports.number()
|
|
20654
|
-
});
|
|
20655
|
-
var MaskGridDimsSchema = external_exports.object({
|
|
20656
|
-
width: external_exports.number(),
|
|
20657
|
-
height: external_exports.number()
|
|
20658
|
-
});
|
|
20659
21209
|
var MotionZoneRegionSchema = external_exports.object({
|
|
20660
21210
|
id: external_exports.number(),
|
|
20661
21211
|
enabled: external_exports.boolean(),
|
|
@@ -22918,106 +23468,6 @@ var addonWidgetsCapability = {
|
|
|
22918
23468
|
mode: "singleton",
|
|
22919
23469
|
methods: { listWidgets: method(external_exports.void(), external_exports.array(EnrichedWidgetMetadataSchema).readonly()) }
|
|
22920
23470
|
};
|
|
22921
|
-
var NotificationRuleConditionsSchema = external_exports.object({
|
|
22922
|
-
deviceIds: external_exports.array(external_exports.number()).readonly().optional(),
|
|
22923
|
-
classNames: external_exports.array(external_exports.string()).readonly().optional(),
|
|
22924
|
-
zoneIds: external_exports.array(external_exports.string()).readonly().optional(),
|
|
22925
|
-
minConfidence: external_exports.number().optional(),
|
|
22926
|
-
source: external_exports.enum([
|
|
22927
|
-
"pipeline",
|
|
22928
|
-
"onboard",
|
|
22929
|
-
"any"
|
|
22930
|
-
]).optional(),
|
|
22931
|
-
schedule: external_exports.object({
|
|
22932
|
-
days: external_exports.array(external_exports.number()).readonly(),
|
|
22933
|
-
startHour: external_exports.number(),
|
|
22934
|
-
endHour: external_exports.number()
|
|
22935
|
-
}).optional(),
|
|
22936
|
-
cooldownSeconds: external_exports.number().optional(),
|
|
22937
|
-
minDwellSeconds: external_exports.number().optional(),
|
|
22938
|
-
/** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
|
|
22939
|
-
* carrying a matching `data.eventType` string pass this condition. Rules without this field are
|
|
22940
|
-
* unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
|
|
22941
|
-
eventTypeTokens: external_exports.array(external_exports.string()).readonly().optional(),
|
|
22942
|
-
/** Match detections whose CLIP image embedding is semantically similar to this free-text
|
|
22943
|
-
* description. Requires the embedding-encoder cap to have pre-warmed the text vector.
|
|
22944
|
-
* `minSimilarity` is the cosine similarity threshold in [0, 1]. */
|
|
22945
|
-
clipDescription: external_exports.object({
|
|
22946
|
-
text: external_exports.string().min(1),
|
|
22947
|
-
minSimilarity: external_exports.number().min(0).max(1)
|
|
22948
|
-
}).optional(),
|
|
22949
|
-
/** Match events whose recognized-entity label (face identity name or plate
|
|
22950
|
-
* vehicle name, propagated onto `event.data.label`) is one of these values.
|
|
22951
|
-
* Empty/absent → unaffected (back-compat). Enables "notify me when <named
|
|
22952
|
-
* vehicle/person> is seen". */
|
|
22953
|
-
labels: external_exports.array(external_exports.string()).readonly().optional()
|
|
22954
|
-
});
|
|
22955
|
-
var NotificationRuleTemplateSchema = external_exports.object({
|
|
22956
|
-
title: external_exports.string(),
|
|
22957
|
-
body: external_exports.string(),
|
|
22958
|
-
imageMode: external_exports.enum([
|
|
22959
|
-
"crop",
|
|
22960
|
-
"annotated",
|
|
22961
|
-
"full",
|
|
22962
|
-
"none"
|
|
22963
|
-
])
|
|
22964
|
-
});
|
|
22965
|
-
var NotificationRuleSchema = external_exports.object({
|
|
22966
|
-
id: external_exports.string(),
|
|
22967
|
-
name: external_exports.string(),
|
|
22968
|
-
enabled: external_exports.boolean(),
|
|
22969
|
-
eventTypes: external_exports.array(external_exports.string()).readonly(),
|
|
22970
|
-
conditions: NotificationRuleConditionsSchema,
|
|
22971
|
-
outputs: external_exports.array(external_exports.string()).readonly(),
|
|
22972
|
-
template: NotificationRuleTemplateSchema.optional(),
|
|
22973
|
-
priority: external_exports.enum([
|
|
22974
|
-
"low",
|
|
22975
|
-
"normal",
|
|
22976
|
-
"high",
|
|
22977
|
-
"critical"
|
|
22978
|
-
])
|
|
22979
|
-
});
|
|
22980
|
-
var NotificationTestResultSchema = external_exports.object({
|
|
22981
|
-
ruleId: external_exports.string(),
|
|
22982
|
-
eventId: external_exports.string(),
|
|
22983
|
-
timestamp: external_exports.number(),
|
|
22984
|
-
wouldFire: external_exports.boolean(),
|
|
22985
|
-
reason: external_exports.string().optional()
|
|
22986
|
-
});
|
|
22987
|
-
var NotificationHistoryEntrySchema = external_exports.object({
|
|
22988
|
-
id: external_exports.string(),
|
|
22989
|
-
ruleId: external_exports.string(),
|
|
22990
|
-
ruleName: external_exports.string(),
|
|
22991
|
-
eventId: external_exports.string(),
|
|
22992
|
-
timestamp: external_exports.number(),
|
|
22993
|
-
outputs: external_exports.array(external_exports.string()).readonly(),
|
|
22994
|
-
success: external_exports.boolean(),
|
|
22995
|
-
error: external_exports.string().optional(),
|
|
22996
|
-
deviceId: external_exports.number().optional()
|
|
22997
|
-
});
|
|
22998
|
-
var NotificationHistoryFilterSchema = external_exports.object({
|
|
22999
|
-
ruleId: external_exports.string().optional(),
|
|
23000
|
-
deviceId: external_exports.number().optional(),
|
|
23001
|
-
from: external_exports.number().optional(),
|
|
23002
|
-
to: external_exports.number().optional(),
|
|
23003
|
-
limit: external_exports.number().optional()
|
|
23004
|
-
});
|
|
23005
|
-
var advancedNotifierCapability = {
|
|
23006
|
-
name: "advanced-notifier",
|
|
23007
|
-
scope: "system",
|
|
23008
|
-
mode: "singleton",
|
|
23009
|
-
internal: true,
|
|
23010
|
-
methods: {
|
|
23011
|
-
getRules: method(external_exports.void(), external_exports.object({ rules: external_exports.array(NotificationRuleSchema).readonly() })),
|
|
23012
|
-
upsertRule: method(external_exports.object({ rule: NotificationRuleSchema }), external_exports.object({ success: external_exports.literal(true) }), { kind: "mutation" }),
|
|
23013
|
-
deleteRule: method(external_exports.object({ ruleId: external_exports.string() }), external_exports.object({ success: external_exports.literal(true) }), { kind: "mutation" }),
|
|
23014
|
-
testRule: method(external_exports.object({
|
|
23015
|
-
ruleId: external_exports.string(),
|
|
23016
|
-
lookbackMinutes: external_exports.number()
|
|
23017
|
-
}), external_exports.object({ results: external_exports.array(NotificationTestResultSchema).readonly() }), { kind: "mutation" }),
|
|
23018
|
-
getHistory: method(external_exports.object({ filter: NotificationHistoryFilterSchema.optional() }), external_exports.object({ entries: external_exports.array(NotificationHistoryEntrySchema).readonly() }))
|
|
23019
|
-
}
|
|
23020
|
-
};
|
|
23021
23471
|
var AlertSeveritySchema = external_exports.enum([
|
|
23022
23472
|
"info",
|
|
23023
23473
|
"success",
|
|
@@ -23283,56 +23733,59 @@ var authProviderCapability = {
|
|
|
23283
23733
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
23284
23734
|
mount: { kind: "skip" }
|
|
23285
23735
|
};
|
|
23286
|
-
var
|
|
23287
|
-
|
|
23288
|
-
|
|
23289
|
-
/**
|
|
23290
|
-
|
|
23291
|
-
/**
|
|
23736
|
+
var TerminalSessionInfoSchema = external_exports.object({
|
|
23737
|
+
/** Opaque session id minted by the provider on `openSession`. */
|
|
23738
|
+
sessionId: external_exports.string(),
|
|
23739
|
+
/** The pre-declared profile this session runs (never a free-form command). */
|
|
23740
|
+
profileId: external_exports.string(),
|
|
23741
|
+
/** Human-readable profile label for the UI session list. */
|
|
23292
23742
|
label: external_exports.string(),
|
|
23293
|
-
|
|
23294
|
-
|
|
23295
|
-
/**
|
|
23296
|
-
|
|
23297
|
-
stage: LoginStageEnum
|
|
23298
|
-
});
|
|
23299
|
-
var WidgetLoginMethodSchema = external_exports.object({
|
|
23300
|
-
kind: external_exports.literal("widget"),
|
|
23301
|
-
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
23302
|
-
id: external_exports.string(),
|
|
23303
|
-
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
23304
|
-
addonId: external_exports.string(),
|
|
23305
|
-
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
23306
|
-
bundle: external_exports.string(),
|
|
23307
|
-
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
23308
|
-
remote: WidgetRemoteSchema,
|
|
23309
|
-
stage: LoginStageEnum
|
|
23743
|
+
cols: external_exports.number().int().positive(),
|
|
23744
|
+
rows: external_exports.number().int().positive(),
|
|
23745
|
+
/** ms-epoch the session's pty was spawned. */
|
|
23746
|
+
startedAt: external_exports.number()
|
|
23310
23747
|
});
|
|
23311
|
-
var
|
|
23312
|
-
|
|
23313
|
-
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-direct-login`). */
|
|
23314
|
-
id: external_exports.string(),
|
|
23315
|
-
/** Operator-facing button label. */
|
|
23748
|
+
var TerminalProfileInfoSchema = external_exports.object({
|
|
23749
|
+
profileId: external_exports.string(),
|
|
23316
23750
|
label: external_exports.string(),
|
|
23317
|
-
|
|
23318
|
-
/** Effective WebAuthn RP ID (`resolveRpID()`) — the shell gates visibility on it. */
|
|
23319
|
-
rpId: external_exports.string(),
|
|
23320
|
-
/** Effective expected origin (`resolveOrigin()`), null when unconfigured. */
|
|
23321
|
-
origin: external_exports.string().nullable()
|
|
23751
|
+
description: external_exports.string().optional()
|
|
23322
23752
|
});
|
|
23323
|
-
var
|
|
23324
|
-
|
|
23325
|
-
WidgetLoginMethodSchema,
|
|
23326
|
-
PasskeyLoginMethodSchema
|
|
23327
|
-
]);
|
|
23328
|
-
var loginMethodCapability = {
|
|
23329
|
-
name: "login-method",
|
|
23753
|
+
var terminalSessionCapability = {
|
|
23754
|
+
name: "terminal-session",
|
|
23330
23755
|
scope: "system",
|
|
23331
|
-
mode: "
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
|
|
23335
|
-
|
|
23756
|
+
mode: "singleton",
|
|
23757
|
+
methods: {
|
|
23758
|
+
/** Pre-declared profiles the operator may open. */
|
|
23759
|
+
listProfiles: method(external_exports.void(), external_exports.array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
23760
|
+
/** Live sessions currently hosted by the provider. */
|
|
23761
|
+
listSessions: method(external_exports.void(), external_exports.array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }),
|
|
23762
|
+
/**
|
|
23763
|
+
* Spawn a pty for an allowlisted profile at the given grid size and return
|
|
23764
|
+
* its session id. Output/input then flow over the data plane by that id.
|
|
23765
|
+
*/
|
|
23766
|
+
openSession: method(external_exports.object({
|
|
23767
|
+
profileId: external_exports.string(),
|
|
23768
|
+
cols: external_exports.number().int().positive(),
|
|
23769
|
+
rows: external_exports.number().int().positive()
|
|
23770
|
+
}), TerminalSessionInfoSchema, {
|
|
23771
|
+
kind: "mutation",
|
|
23772
|
+
auth: "admin"
|
|
23773
|
+
}),
|
|
23774
|
+
/** Resize a live session's pty (reflows the running program). */
|
|
23775
|
+
resize: method(external_exports.object({
|
|
23776
|
+
sessionId: external_exports.string(),
|
|
23777
|
+
cols: external_exports.number().int().positive(),
|
|
23778
|
+
rows: external_exports.number().int().positive()
|
|
23779
|
+
}), external_exports.void(), {
|
|
23780
|
+
kind: "mutation",
|
|
23781
|
+
auth: "admin"
|
|
23782
|
+
}),
|
|
23783
|
+
/** Terminate a live session and release its pty. */
|
|
23784
|
+
close: method(external_exports.object({ sessionId: external_exports.string() }), external_exports.void(), {
|
|
23785
|
+
kind: "mutation",
|
|
23786
|
+
auth: "admin"
|
|
23787
|
+
})
|
|
23788
|
+
}
|
|
23336
23789
|
};
|
|
23337
23790
|
var BackupDestinationInfoSchema = external_exports.object({
|
|
23338
23791
|
/**
|
|
@@ -25038,877 +25491,928 @@ var filesystemBrowseCapability = {
|
|
|
25038
25491
|
})
|
|
25039
25492
|
}
|
|
25040
25493
|
};
|
|
25041
|
-
var
|
|
25042
|
-
|
|
25043
|
-
|
|
25044
|
-
"warn",
|
|
25045
|
-
"error"
|
|
25046
|
-
]);
|
|
25047
|
-
var LogEntrySchema = external_exports.object({
|
|
25048
|
-
timestamp: external_exports.date(),
|
|
25049
|
-
level: LogLevelSchema,
|
|
25050
|
-
scope: external_exports.array(external_exports.string()),
|
|
25051
|
-
message: external_exports.string(),
|
|
25052
|
-
meta: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
25053
|
-
tags: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
25054
|
-
});
|
|
25055
|
-
var logDestinationCapability = {
|
|
25056
|
-
name: "log-destination",
|
|
25057
|
-
scope: "system",
|
|
25058
|
-
mode: "collection",
|
|
25059
|
-
internal: true,
|
|
25060
|
-
methods: {
|
|
25061
|
-
write: method(LogEntrySchema, external_exports.void(), { kind: "mutation" }),
|
|
25062
|
-
query: method(external_exports.object({
|
|
25063
|
-
scope: external_exports.array(external_exports.string()).optional(),
|
|
25064
|
-
level: LogLevelSchema.optional(),
|
|
25065
|
-
since: external_exports.date().optional(),
|
|
25066
|
-
until: external_exports.date().optional(),
|
|
25067
|
-
limit: external_exports.number().optional(),
|
|
25068
|
-
tags: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
25069
|
-
}), external_exports.array(LogEntrySchema).readonly())
|
|
25070
|
-
},
|
|
25071
|
-
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
25072
|
-
mount: { kind: "skip" }
|
|
25073
|
-
};
|
|
25074
|
-
var CpuBreakdownSchema = external_exports.object({
|
|
25075
|
-
total: external_exports.number(),
|
|
25076
|
-
user: external_exports.number(),
|
|
25077
|
-
system: external_exports.number(),
|
|
25078
|
-
irq: external_exports.number(),
|
|
25079
|
-
nice: external_exports.number(),
|
|
25080
|
-
loadAvg: external_exports.tuple([
|
|
25081
|
-
external_exports.number(),
|
|
25082
|
-
external_exports.number(),
|
|
25083
|
-
external_exports.number()
|
|
25084
|
-
]),
|
|
25085
|
-
cores: external_exports.number()
|
|
25086
|
-
});
|
|
25087
|
-
var MemoryInfoSchema = external_exports.object({
|
|
25088
|
-
percent: external_exports.number(),
|
|
25089
|
-
totalBytes: external_exports.number(),
|
|
25090
|
-
usedBytes: external_exports.number(),
|
|
25091
|
-
availableBytes: external_exports.number(),
|
|
25092
|
-
swapUsedBytes: external_exports.number(),
|
|
25093
|
-
swapTotalBytes: external_exports.number()
|
|
25094
|
-
});
|
|
25095
|
-
var DiskIoSnapshotSchema = external_exports.object({
|
|
25096
|
-
readBytes: external_exports.number(),
|
|
25097
|
-
writeBytes: external_exports.number(),
|
|
25098
|
-
readOps: external_exports.number(),
|
|
25099
|
-
writeOps: external_exports.number(),
|
|
25100
|
-
timestampMs: external_exports.number()
|
|
25101
|
-
});
|
|
25102
|
-
var NetworkIoSnapshotSchema = external_exports.object({
|
|
25103
|
-
rxBytes: external_exports.number(),
|
|
25104
|
-
txBytes: external_exports.number(),
|
|
25105
|
-
rxPackets: external_exports.number(),
|
|
25106
|
-
txPackets: external_exports.number(),
|
|
25107
|
-
rxErrors: external_exports.number(),
|
|
25108
|
-
txErrors: external_exports.number(),
|
|
25109
|
-
timestampMs: external_exports.number()
|
|
25494
|
+
var LlmUsageSchema = external_exports.object({
|
|
25495
|
+
inputTokens: external_exports.number(),
|
|
25496
|
+
outputTokens: external_exports.number()
|
|
25110
25497
|
});
|
|
25111
|
-
var
|
|
25112
|
-
|
|
25498
|
+
var LlmErrorCodeSchema = external_exports.enum([
|
|
25499
|
+
"timeout",
|
|
25500
|
+
"rate-limited",
|
|
25501
|
+
"auth",
|
|
25502
|
+
"refusal",
|
|
25503
|
+
"bad-request",
|
|
25504
|
+
"unavailable",
|
|
25505
|
+
"no-profile",
|
|
25506
|
+
"budget-exceeded",
|
|
25507
|
+
"adapter-error"
|
|
25508
|
+
]);
|
|
25509
|
+
var LlmGenerateOkSchema = external_exports.object({
|
|
25510
|
+
ok: external_exports.literal(true),
|
|
25511
|
+
text: external_exports.string(),
|
|
25113
25512
|
model: external_exports.string(),
|
|
25114
|
-
|
|
25115
|
-
|
|
25116
|
-
|
|
25513
|
+
usage: LlmUsageSchema,
|
|
25514
|
+
truncated: external_exports.boolean(),
|
|
25515
|
+
latencyMs: external_exports.number()
|
|
25117
25516
|
});
|
|
25118
|
-
var
|
|
25119
|
-
|
|
25120
|
-
|
|
25121
|
-
|
|
25122
|
-
|
|
25517
|
+
var LlmGenerateErrSchema = external_exports.object({
|
|
25518
|
+
ok: external_exports.literal(false),
|
|
25519
|
+
code: LlmErrorCodeSchema,
|
|
25520
|
+
message: external_exports.string(),
|
|
25521
|
+
retryAfterMs: external_exports.number().optional()
|
|
25123
25522
|
});
|
|
25124
|
-
var
|
|
25125
|
-
|
|
25126
|
-
|
|
25127
|
-
|
|
25523
|
+
var LlmGenerateResultSchema = external_exports.discriminatedUnion("ok", [LlmGenerateOkSchema, LlmGenerateErrSchema]);
|
|
25524
|
+
var LlmImageSchema = external_exports.object({
|
|
25525
|
+
bytes: external_exports.instanceof(Uint8Array),
|
|
25526
|
+
mimeType: external_exports.string()
|
|
25128
25527
|
});
|
|
25129
|
-
var
|
|
25130
|
-
|
|
25131
|
-
|
|
25528
|
+
var LlmGenerateBaseInputSchema = external_exports.object({
|
|
25529
|
+
/** Collection routing (the notification-output posture). */
|
|
25530
|
+
addonId: external_exports.string().optional(),
|
|
25531
|
+
/** Explicit profile; else the resolution chain (spec §3). */
|
|
25532
|
+
profileId: external_exports.string().optional(),
|
|
25533
|
+
/** MANDATORY usage tag: 'ai-summary', 'notifier-rules', 'adhoc-ui', … */
|
|
25534
|
+
consumer: external_exports.string(),
|
|
25535
|
+
system: external_exports.string().optional(),
|
|
25536
|
+
/** v1: single-turn. `messages[]` is a v2 additive field. */
|
|
25537
|
+
prompt: external_exports.string(),
|
|
25538
|
+
/** Structured output — adapter-mapped (response_format / forced tool / responseSchema). */
|
|
25539
|
+
jsonSchema: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
25540
|
+
/** Per-call override of the profile default. */
|
|
25541
|
+
maxTokens: external_exports.number().int().positive().optional(),
|
|
25542
|
+
temperature: external_exports.number().optional()
|
|
25132
25543
|
});
|
|
25133
|
-
var
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
|
|
25137
|
-
network: NetworkIoSnapshotSchema,
|
|
25138
|
-
disk: DiskIoSnapshotSchema,
|
|
25139
|
-
pressure: external_exports.object({
|
|
25140
|
-
cpu: PressureInfoSchema.nullable(),
|
|
25141
|
-
memory: PressureInfoSchema.nullable(),
|
|
25142
|
-
io: PressureInfoSchema.nullable()
|
|
25544
|
+
var ManagedModelRefSchema = external_exports.discriminatedUnion("kind", [
|
|
25545
|
+
external_exports.object({
|
|
25546
|
+
kind: external_exports.literal("catalog"),
|
|
25547
|
+
catalogId: external_exports.string()
|
|
25143
25548
|
}),
|
|
25144
|
-
|
|
25145
|
-
|
|
25146
|
-
|
|
25147
|
-
|
|
25148
|
-
|
|
25149
|
-
|
|
25150
|
-
|
|
25151
|
-
|
|
25152
|
-
|
|
25153
|
-
|
|
25154
|
-
|
|
25155
|
-
|
|
25156
|
-
|
|
25157
|
-
|
|
25158
|
-
|
|
25159
|
-
|
|
25160
|
-
|
|
25161
|
-
|
|
25162
|
-
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
*/
|
|
25166
|
-
|
|
25167
|
-
/**
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
sharedBytes: external_exports.number().optional()
|
|
25549
|
+
external_exports.object({
|
|
25550
|
+
kind: external_exports.literal("url"),
|
|
25551
|
+
url: external_exports.string(),
|
|
25552
|
+
sha256: external_exports.string().optional()
|
|
25553
|
+
}),
|
|
25554
|
+
external_exports.object({
|
|
25555
|
+
kind: external_exports.literal("path"),
|
|
25556
|
+
path: external_exports.string()
|
|
25557
|
+
})
|
|
25558
|
+
]);
|
|
25559
|
+
var ManagedRuntimeConfigSchema = external_exports.object({
|
|
25560
|
+
/** WHERE the runtime lives — hub or any agent. */
|
|
25561
|
+
nodeId: external_exports.string(),
|
|
25562
|
+
/** Closed for v1; 'ollama' is a v2 candidate. */
|
|
25563
|
+
engine: external_exports.enum(["llama-cpp"]),
|
|
25564
|
+
model: ManagedModelRefSchema,
|
|
25565
|
+
contextSize: external_exports.number().int().default(4096),
|
|
25566
|
+
/** 0 = CPU-only. */
|
|
25567
|
+
gpuLayers: external_exports.number().int().default(0),
|
|
25568
|
+
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
25569
|
+
threads: external_exports.number().int().optional(),
|
|
25570
|
+
/** Concurrent slots. */
|
|
25571
|
+
parallel: external_exports.number().int().default(1),
|
|
25572
|
+
/** Else lazy: first generate boots it. */
|
|
25573
|
+
autoStart: external_exports.boolean().default(false),
|
|
25574
|
+
/** 0 = never; frees RAM after quiet periods. */
|
|
25575
|
+
idleStopMinutes: external_exports.number().int().default(30)
|
|
25172
25576
|
});
|
|
25173
|
-
var
|
|
25174
|
-
|
|
25577
|
+
var LlmRuntimeStatusSchema = external_exports.object({
|
|
25578
|
+
/** Status is ALWAYS node-qualified. */
|
|
25175
25579
|
nodeId: external_exports.string(),
|
|
25176
|
-
role: external_exports.enum(["hub", "worker"]),
|
|
25177
|
-
pid: external_exports.number(),
|
|
25178
25580
|
state: external_exports.enum([
|
|
25179
|
-
"starting",
|
|
25180
|
-
"running",
|
|
25181
|
-
"stopping",
|
|
25182
25581
|
"stopped",
|
|
25183
|
-
"
|
|
25184
|
-
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
pid: external_exports.number(),
|
|
25189
|
-
ppid: external_exports.number(),
|
|
25190
|
-
pgid: external_exports.number(),
|
|
25191
|
-
classification: external_exports.enum([
|
|
25192
|
-
"root",
|
|
25193
|
-
"managed",
|
|
25194
|
-
"system",
|
|
25195
|
-
"ghost"
|
|
25582
|
+
"downloading",
|
|
25583
|
+
"starting",
|
|
25584
|
+
"ready",
|
|
25585
|
+
"crashed",
|
|
25586
|
+
"failed"
|
|
25196
25587
|
]),
|
|
25197
|
-
|
|
25198
|
-
|
|
25199
|
-
|
|
25200
|
-
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25205
|
-
|
|
25206
|
-
|
|
25207
|
-
/** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
|
|
25208
|
-
orphaned: external_exports.boolean()
|
|
25209
|
-
});
|
|
25210
|
-
var KillProcessInputSchema = external_exports.object({
|
|
25211
|
-
pid: external_exports.number(),
|
|
25212
|
-
/** Force = SIGKILL. Default is SIGTERM. */
|
|
25213
|
-
force: external_exports.boolean().optional()
|
|
25214
|
-
});
|
|
25215
|
-
var KillProcessResultSchema = external_exports.object({
|
|
25216
|
-
success: external_exports.boolean(),
|
|
25217
|
-
reason: external_exports.string().optional(),
|
|
25218
|
-
signal: external_exports.enum(["SIGTERM", "SIGKILL"]).optional()
|
|
25588
|
+
pid: external_exports.number().optional(),
|
|
25589
|
+
port: external_exports.number().optional(),
|
|
25590
|
+
modelPath: external_exports.string().optional(),
|
|
25591
|
+
modelId: external_exports.string().optional(),
|
|
25592
|
+
downloadProgress: external_exports.number().min(0).max(1).optional(),
|
|
25593
|
+
lastError: external_exports.string().optional(),
|
|
25594
|
+
crashesInWindow: external_exports.number(),
|
|
25595
|
+
/** Child RSS (sampled best-effort). */
|
|
25596
|
+
memoryBytes: external_exports.number().optional(),
|
|
25597
|
+
vramBytes: external_exports.number().optional()
|
|
25219
25598
|
});
|
|
25220
|
-
var
|
|
25221
|
-
|
|
25222
|
-
|
|
25599
|
+
var LlmNodeModelSchema = external_exports.object({
|
|
25600
|
+
file: external_exports.string(),
|
|
25601
|
+
sizeBytes: external_exports.number(),
|
|
25602
|
+
catalogId: external_exports.string().optional(),
|
|
25603
|
+
installedAt: external_exports.number().optional()
|
|
25223
25604
|
});
|
|
25224
|
-
var
|
|
25225
|
-
|
|
25226
|
-
|
|
25227
|
-
|
|
25228
|
-
/** Process pid that was signalled. */
|
|
25229
|
-
pid: external_exports.number().optional(),
|
|
25230
|
-
reason: external_exports.string().optional()
|
|
25605
|
+
var LlmRuntimeDiskUsageSchema = external_exports.object({
|
|
25606
|
+
nodeId: external_exports.string(),
|
|
25607
|
+
modelsBytes: external_exports.number(),
|
|
25608
|
+
freeBytes: external_exports.number().optional()
|
|
25231
25609
|
});
|
|
25232
|
-
var
|
|
25233
|
-
|
|
25234
|
-
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
diskPercent: external_exports.number().optional(),
|
|
25238
|
-
temperature: external_exports.number().optional(),
|
|
25239
|
-
gpuPercent: external_exports.number().optional(),
|
|
25240
|
-
gpuMemoryPercent: external_exports.number().optional()
|
|
25610
|
+
var LlmRuntimeCompleteInputSchema = LlmGenerateBaseInputSchema.extend({
|
|
25611
|
+
images: external_exports.array(LlmImageSchema).optional(),
|
|
25612
|
+
runtime: ManagedRuntimeConfigSchema,
|
|
25613
|
+
/** The managed profile's timeout, threaded by the hub provider. */
|
|
25614
|
+
timeoutMs: external_exports.number().int().positive().optional()
|
|
25241
25615
|
});
|
|
25242
|
-
var
|
|
25243
|
-
name: "
|
|
25616
|
+
var llmRuntimeCapability = {
|
|
25617
|
+
name: "llm-runtime",
|
|
25244
25618
|
scope: "system",
|
|
25245
25619
|
mode: "singleton",
|
|
25620
|
+
internal: true,
|
|
25246
25621
|
methods: {
|
|
25247
|
-
|
|
25248
|
-
|
|
25249
|
-
/** Most recent cached snapshot from the background sampler, or null pre-first-sample. */
|
|
25250
|
-
getCached: method(external_exports.void(), SystemResourceSnapshotSchema.nullable()),
|
|
25251
|
-
/** Light-weight cached summary for heartbeats and list views. */
|
|
25252
|
-
getCurrent: method(external_exports.void(), SystemMetricsSchema),
|
|
25253
|
-
/** Disk space for the given mount/path. */
|
|
25254
|
-
getDiskSpace: method(external_exports.object({ dirPath: external_exports.string() }), DiskSpaceInfoSchema),
|
|
25255
|
-
/** GPU info (null if unavailable). */
|
|
25256
|
-
getGpuInfo: method(external_exports.void(), MetricsGpuInfoSchema.nullable()),
|
|
25257
|
-
/** CPU temperature in °C (null if unavailable). */
|
|
25258
|
-
getCpuTemperature: method(external_exports.void(), external_exports.number().nullable()),
|
|
25259
|
-
/** Per-PID resource stats. Missing/dead PIDs are omitted from the result. */
|
|
25260
|
-
getProcessStats: method(external_exports.object({ pids: external_exports.array(external_exports.number()) }), external_exports.array(PidResourceStatsSchema)),
|
|
25261
|
-
/**
|
|
25262
|
-
* List addon instances known to this node — one entry per forked worker
|
|
25263
|
-
* plus a synthetic 'hub' entry representing the local hub process.
|
|
25264
|
-
* Used by benchmarks/observability to detect whether a given addon runs
|
|
25265
|
-
* in its own process (measurable independently) or inline with the hub.
|
|
25266
|
-
*/
|
|
25267
|
-
listAddonInstances: method(external_exports.void(), external_exports.array(AddonInstanceSchema).readonly()),
|
|
25268
|
-
/**
|
|
25269
|
-
* Resource stats for the process hosting the given addon.
|
|
25270
|
-
* Returns null when the addon runs in-process on the hub (can't measure
|
|
25271
|
-
* independently — caller should detect via listAddonInstances). Returns
|
|
25272
|
-
* hub process stats for addonId '$hub'.
|
|
25273
|
-
*/
|
|
25274
|
-
getAddonStats: method(external_exports.object({ addonId: external_exports.string() }), PidResourceStatsSchema.nullable()),
|
|
25275
|
-
/**
|
|
25276
|
-
* Snapshot of every camstack-related process on this node with a
|
|
25277
|
-
* ghost/managed/root classification. Powers the Cluster → Agent →
|
|
25278
|
-
* Processes tab: cross-references `$process.list` against a `ps` scan
|
|
25279
|
-
* so orphaned trees (PPID=1) or unknown children show up as `ghost`
|
|
25280
|
-
* and can be killed from the UI.
|
|
25281
|
-
*/
|
|
25282
|
-
listNodeProcesses: method(external_exports.void(), external_exports.array(NodeProcessSchema).readonly()),
|
|
25283
|
-
/**
|
|
25284
|
-
* Send SIGTERM (or SIGKILL when `force`) to a pid inside this node's
|
|
25285
|
-
* process tree. The provider refuses pids that aren't in the live
|
|
25286
|
-
* `listNodeProcesses()` snapshot — callers can't use this endpoint
|
|
25287
|
-
* to kill arbitrary system processes.
|
|
25288
|
-
*/
|
|
25289
|
-
killProcess: method(KillProcessInputSchema, KillProcessResultSchema, {
|
|
25622
|
+
complete: method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
|
|
25623
|
+
ensureStarted: method(external_exports.object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
25290
25624
|
kind: "mutation",
|
|
25291
25625
|
auth: "admin"
|
|
25292
25626
|
}),
|
|
25293
|
-
|
|
25294
|
-
* Tell the addon's forked runner to write a V8 heap snapshot to disk (via
|
|
25295
|
-
* SIGUSR2 — the runner's diagnostic handler). Also logs its
|
|
25296
|
-
* `process.memoryUsage()` + heap-space breakdown. Refuses pids not in the
|
|
25297
|
-
* live `listNodeProcesses()` snapshot. Use for deep per-addon memory
|
|
25298
|
-
* attribution; copy the returned path off the node to analyze.
|
|
25299
|
-
*/
|
|
25300
|
-
dumpHeapSnapshot: method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
25627
|
+
stop: method(external_exports.object({}), external_exports.void(), {
|
|
25301
25628
|
kind: "mutation",
|
|
25302
25629
|
auth: "admin"
|
|
25303
|
-
})
|
|
25630
|
+
}),
|
|
25631
|
+
status: method(external_exports.object({}), LlmRuntimeStatusSchema),
|
|
25632
|
+
installModel: method(external_exports.object({ model: ManagedModelRefSchema }), external_exports.void(), {
|
|
25633
|
+
kind: "mutation",
|
|
25634
|
+
auth: "admin"
|
|
25635
|
+
}),
|
|
25636
|
+
deleteModel: method(external_exports.object({ file: external_exports.string() }), external_exports.void(), {
|
|
25637
|
+
kind: "mutation",
|
|
25638
|
+
auth: "admin"
|
|
25639
|
+
}),
|
|
25640
|
+
listLocalModels: method(external_exports.object({}), external_exports.array(LlmNodeModelSchema)),
|
|
25641
|
+
getDiskUsage: method(external_exports.object({}), LlmRuntimeDiskUsageSchema)
|
|
25304
25642
|
}
|
|
25305
25643
|
};
|
|
25306
|
-
var
|
|
25307
|
-
|
|
25308
|
-
|
|
25309
|
-
|
|
25310
|
-
|
|
25311
|
-
|
|
25644
|
+
var LlmProfileKindSchema = external_exports.enum([
|
|
25645
|
+
"openai-compatible",
|
|
25646
|
+
"openai",
|
|
25647
|
+
"anthropic",
|
|
25648
|
+
"google",
|
|
25649
|
+
"managed-local"
|
|
25650
|
+
]);
|
|
25651
|
+
var LlmProfileSchema = external_exports.object({
|
|
25652
|
+
id: external_exports.string(),
|
|
25653
|
+
name: external_exports.string(),
|
|
25654
|
+
kind: LlmProfileKindSchema,
|
|
25655
|
+
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
25656
|
+
addonId: external_exports.string(),
|
|
25657
|
+
enabled: external_exports.boolean(),
|
|
25658
|
+
/** Vendor model id, or the managed runtime's loaded model. */
|
|
25659
|
+
model: external_exports.string(),
|
|
25660
|
+
/** Required for openai-compatible; override for cloud kinds. */
|
|
25661
|
+
baseUrl: external_exports.string().optional(),
|
|
25662
|
+
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
25663
|
+
apiKey: external_exports.string().optional(),
|
|
25664
|
+
supportsVision: external_exports.boolean(),
|
|
25665
|
+
temperature: external_exports.number().min(0).max(2).optional(),
|
|
25666
|
+
maxTokens: external_exports.number().int().positive().optional(),
|
|
25667
|
+
timeoutMs: external_exports.number().int().positive().default(6e4),
|
|
25668
|
+
extraHeaders: external_exports.record(external_exports.string(), external_exports.string()).optional(),
|
|
25669
|
+
/** kind === 'managed-local' only (spec §4). */
|
|
25670
|
+
runtime: ManagedRuntimeConfigSchema.optional()
|
|
25312
25671
|
});
|
|
25313
|
-
var
|
|
25314
|
-
|
|
25315
|
-
|
|
25316
|
-
|
|
25317
|
-
|
|
25318
|
-
|
|
25319
|
-
|
|
25320
|
-
|
|
25321
|
-
timeoutMs: 6e5
|
|
25322
|
-
}) }
|
|
25323
|
-
};
|
|
25324
|
-
var ModelDistributeInputSchema = external_exports.object({
|
|
25325
|
-
nodeId: external_exports.string(),
|
|
25326
|
-
modelId: external_exports.string(),
|
|
25327
|
-
format: external_exports.enum(MODEL_FORMATS),
|
|
25328
|
-
entry: ModelCatalogEntrySchema
|
|
25672
|
+
var ConfigSchemaPassthrough$1 = external_exports.unknown();
|
|
25673
|
+
var LlmProfileKindDescriptorSchema = external_exports.object({
|
|
25674
|
+
kind: LlmProfileKindSchema,
|
|
25675
|
+
label: external_exports.string(),
|
|
25676
|
+
icon: external_exports.string(),
|
|
25677
|
+
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
25678
|
+
addonId: external_exports.string(),
|
|
25679
|
+
configSchema: ConfigSchemaPassthrough$1
|
|
25329
25680
|
});
|
|
25330
|
-
var
|
|
25331
|
-
|
|
25332
|
-
|
|
25333
|
-
|
|
25334
|
-
bytes: external_exports.number(),
|
|
25335
|
-
/** The target node's modelsDir the artifact landed in. */
|
|
25336
|
-
path: external_exports.string()
|
|
25681
|
+
var LlmDefaultSelectorSchema = external_exports.union([external_exports.object({ consumer: external_exports.string() }), external_exports.object({ purpose: external_exports.enum(["text", "vision"]) })]);
|
|
25682
|
+
var LlmDefaultSchema = external_exports.object({
|
|
25683
|
+
selector: LlmDefaultSelectorSchema,
|
|
25684
|
+
profileId: external_exports.string()
|
|
25337
25685
|
});
|
|
25338
|
-
var
|
|
25339
|
-
|
|
25340
|
-
|
|
25341
|
-
|
|
25342
|
-
|
|
25343
|
-
|
|
25344
|
-
|
|
25345
|
-
|
|
25346
|
-
|
|
25347
|
-
|
|
25348
|
-
var BrokerKindSchema = external_exports.enum(["external", "embedded"]);
|
|
25349
|
-
var BrokerStatusSchema$1 = external_exports.enum([
|
|
25350
|
-
"connected",
|
|
25351
|
-
"disconnected",
|
|
25352
|
-
"auth-failed",
|
|
25353
|
-
"unreachable",
|
|
25354
|
-
"tls-error"
|
|
25355
|
-
]);
|
|
25356
|
-
var BrokerInfoSchema = external_exports.object({
|
|
25357
|
-
id: external_exports.string(),
|
|
25358
|
-
name: external_exports.string(),
|
|
25359
|
-
url: external_exports.string(),
|
|
25360
|
-
kind: BrokerKindSchema,
|
|
25361
|
-
status: BrokerStatusSchema$1,
|
|
25362
|
-
latencyMs: external_exports.number().nullable(),
|
|
25363
|
-
error: external_exports.string().optional(),
|
|
25364
|
-
/** Embedded brokers only: number of MQTT clients currently connected. */
|
|
25365
|
-
connectedClients: external_exports.number().int().nonnegative().optional(),
|
|
25366
|
-
/** Epoch ms of the last live probe (external) or aedes snapshot (embedded). */
|
|
25367
|
-
lastCheckedAt: external_exports.number().optional()
|
|
25686
|
+
var LlmUsageRollupSchema = external_exports.object({
|
|
25687
|
+
day: external_exports.string(),
|
|
25688
|
+
consumer: external_exports.string(),
|
|
25689
|
+
profileId: external_exports.string(),
|
|
25690
|
+
calls: external_exports.number(),
|
|
25691
|
+
okCalls: external_exports.number(),
|
|
25692
|
+
errorCalls: external_exports.number(),
|
|
25693
|
+
inputTokens: external_exports.number(),
|
|
25694
|
+
outputTokens: external_exports.number(),
|
|
25695
|
+
avgLatencyMs: external_exports.number()
|
|
25368
25696
|
});
|
|
25369
|
-
var
|
|
25697
|
+
var ManagedModelCatalogEntrySchema = external_exports.object({
|
|
25698
|
+
id: external_exports.string(),
|
|
25699
|
+
label: external_exports.string(),
|
|
25700
|
+
family: external_exports.string(),
|
|
25701
|
+
purpose: external_exports.enum(["text", "vision"]),
|
|
25370
25702
|
url: external_exports.string(),
|
|
25371
|
-
|
|
25372
|
-
|
|
25373
|
-
|
|
25374
|
-
|
|
25375
|
-
|
|
25376
|
-
|
|
25377
|
-
|
|
25378
|
-
|
|
25379
|
-
clientIdPrefix: external_exports.string().optional()
|
|
25380
|
-
});
|
|
25381
|
-
var AddBrokerInputSchema = external_exports.object({
|
|
25382
|
-
name: external_exports.string().min(1),
|
|
25383
|
-
url: external_exports.string().regex(/^(mqtt|mqtts|ws|wss):\/\//, "URL must start with mqtt(s):// or ws(s)://"),
|
|
25384
|
-
username: external_exports.string().optional(),
|
|
25385
|
-
password: external_exports.string().optional(),
|
|
25386
|
-
clientIdPrefix: external_exports.string().optional()
|
|
25387
|
-
});
|
|
25388
|
-
var AddBrokerResultSchema = external_exports.object({ id: external_exports.string() });
|
|
25389
|
-
var IdInputSchema = external_exports.object({ id: external_exports.string() });
|
|
25390
|
-
var TestResultSchema$1 = external_exports.discriminatedUnion("ok", [external_exports.object({
|
|
25391
|
-
ok: external_exports.literal(true),
|
|
25392
|
-
latencyMs: external_exports.number()
|
|
25393
|
-
}), external_exports.object({
|
|
25394
|
-
ok: external_exports.literal(false),
|
|
25395
|
-
error: external_exports.string()
|
|
25396
|
-
})]);
|
|
25397
|
-
var StartEmbeddedInputSchema = external_exports.object({
|
|
25398
|
-
port: external_exports.number().int().min(1).max(65535).default(1883),
|
|
25399
|
-
/** Allow anonymous connect (no username/password). Default: false. */
|
|
25400
|
-
allowAnonymous: external_exports.boolean().default(false),
|
|
25401
|
-
/** Optional shared username/password for clients. */
|
|
25402
|
-
username: external_exports.string().optional(),
|
|
25403
|
-
password: external_exports.string().optional()
|
|
25703
|
+
sha256: external_exports.string(),
|
|
25704
|
+
sizeBytes: external_exports.number(),
|
|
25705
|
+
quantization: external_exports.string(),
|
|
25706
|
+
/** Load-time guidance shown in the picker. */
|
|
25707
|
+
minRamBytes: external_exports.number(),
|
|
25708
|
+
contextSizeDefault: external_exports.number().int(),
|
|
25709
|
+
/** Vision models: companion projector file. */
|
|
25710
|
+
mmprojUrl: external_exports.string().optional()
|
|
25404
25711
|
});
|
|
25405
|
-
var
|
|
25406
|
-
|
|
25407
|
-
|
|
25712
|
+
var LlmRuntimeNodeSchema = external_exports.object({
|
|
25713
|
+
nodeId: external_exports.string(),
|
|
25714
|
+
reachable: external_exports.boolean(),
|
|
25715
|
+
status: LlmRuntimeStatusSchema.optional(),
|
|
25716
|
+
disk: LlmRuntimeDiskUsageSchema.optional(),
|
|
25717
|
+
error: external_exports.string().optional()
|
|
25408
25718
|
});
|
|
25409
|
-
var
|
|
25410
|
-
|
|
25411
|
-
|
|
25719
|
+
var GenerateVisionInputSchema = LlmGenerateBaseInputSchema.extend({ images: external_exports.array(LlmImageSchema).min(1) });
|
|
25720
|
+
var ProfileRefInputSchema = external_exports.object({
|
|
25721
|
+
addonId: external_exports.string(),
|
|
25722
|
+
profileId: external_exports.string()
|
|
25412
25723
|
});
|
|
25413
|
-
var
|
|
25414
|
-
name: "
|
|
25724
|
+
var llmCapability = {
|
|
25725
|
+
name: "llm",
|
|
25415
25726
|
scope: "system",
|
|
25416
25727
|
mode: "collection",
|
|
25417
|
-
|
|
25418
|
-
|
|
25419
|
-
|
|
25420
|
-
|
|
25421
|
-
},
|
|
25728
|
+
internal: false,
|
|
25729
|
+
providerKind: "ai",
|
|
25730
|
+
/** `nodeId` inputs below are DATA (the hub provider pins itself), never routing. */
|
|
25731
|
+
nodeIdMode: "data",
|
|
25422
25732
|
methods: {
|
|
25423
|
-
|
|
25424
|
-
|
|
25425
|
-
|
|
25426
|
-
|
|
25427
|
-
|
|
25428
|
-
|
|
25429
|
-
|
|
25430
|
-
|
|
25733
|
+
generate: method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
|
|
25734
|
+
generateVision: method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
|
|
25735
|
+
listProfileKinds: method(external_exports.object({}), external_exports.array(LlmProfileKindDescriptorSchema)),
|
|
25736
|
+
listProfiles: method(external_exports.object({}), external_exports.array(LlmProfileSchema)),
|
|
25737
|
+
upsertProfile: method(external_exports.object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
25738
|
+
kind: "mutation",
|
|
25739
|
+
auth: "admin"
|
|
25740
|
+
}),
|
|
25741
|
+
deleteProfile: method(ProfileRefInputSchema, external_exports.void(), {
|
|
25742
|
+
kind: "mutation",
|
|
25743
|
+
auth: "admin"
|
|
25744
|
+
}),
|
|
25745
|
+
testProfile: method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
25746
|
+
kind: "mutation",
|
|
25747
|
+
auth: "admin"
|
|
25748
|
+
}),
|
|
25749
|
+
/** Live vendor enumeration (GET /models etc.). */
|
|
25750
|
+
listModels: method(ProfileRefInputSchema, external_exports.array(external_exports.string())),
|
|
25751
|
+
getDefaults: method(external_exports.object({}), external_exports.array(LlmDefaultSchema)),
|
|
25752
|
+
setDefault: method(external_exports.object({
|
|
25753
|
+
selector: LlmDefaultSelectorSchema,
|
|
25754
|
+
profileId: external_exports.string().nullable()
|
|
25755
|
+
}), external_exports.void(), {
|
|
25756
|
+
kind: "mutation",
|
|
25757
|
+
auth: "admin"
|
|
25758
|
+
}),
|
|
25759
|
+
getUsage: method(external_exports.object({
|
|
25760
|
+
since: external_exports.number().optional(),
|
|
25761
|
+
until: external_exports.number().optional(),
|
|
25762
|
+
consumer: external_exports.string().optional(),
|
|
25763
|
+
profileId: external_exports.string().optional()
|
|
25764
|
+
}), external_exports.array(LlmUsageRollupSchema)),
|
|
25765
|
+
listModelCatalog: method(external_exports.object({}), external_exports.array(ManagedModelCatalogEntrySchema)),
|
|
25766
|
+
listRuntimeNodes: method(external_exports.object({}), external_exports.array(LlmRuntimeNodeSchema)),
|
|
25767
|
+
listNodeModels: method(external_exports.object({ nodeId: external_exports.string() }), external_exports.array(LlmNodeModelSchema)),
|
|
25768
|
+
installModel: method(external_exports.object({
|
|
25769
|
+
nodeId: external_exports.string(),
|
|
25770
|
+
model: ManagedModelRefSchema
|
|
25771
|
+
}), external_exports.void(), {
|
|
25772
|
+
kind: "mutation",
|
|
25773
|
+
auth: "admin"
|
|
25774
|
+
}),
|
|
25775
|
+
deleteModel: method(external_exports.object({
|
|
25776
|
+
nodeId: external_exports.string(),
|
|
25777
|
+
file: external_exports.string()
|
|
25778
|
+
}), external_exports.void(), {
|
|
25779
|
+
kind: "mutation",
|
|
25780
|
+
auth: "admin"
|
|
25781
|
+
}),
|
|
25782
|
+
getRuntimeStatus: method(ProfileRefInputSchema, LlmRuntimeStatusSchema),
|
|
25783
|
+
startRuntime: method(ProfileRefInputSchema, LlmRuntimeStatusSchema, {
|
|
25784
|
+
kind: "mutation",
|
|
25785
|
+
auth: "admin"
|
|
25786
|
+
}),
|
|
25787
|
+
stopRuntime: method(ProfileRefInputSchema, external_exports.void(), {
|
|
25788
|
+
kind: "mutation",
|
|
25789
|
+
auth: "admin"
|
|
25790
|
+
})
|
|
25431
25791
|
}
|
|
25432
25792
|
};
|
|
25433
|
-
var
|
|
25434
|
-
|
|
25435
|
-
|
|
25436
|
-
|
|
25437
|
-
|
|
25438
|
-
|
|
25439
|
-
var
|
|
25440
|
-
|
|
25441
|
-
|
|
25442
|
-
|
|
25443
|
-
|
|
25444
|
-
|
|
25445
|
-
|
|
25446
|
-
* Stable id within the provider — typically `<mode>-<sourcePort>` so
|
|
25447
|
-
* the orchestrator can dedupe across `listEndpoints` polls.
|
|
25448
|
-
*/
|
|
25449
|
-
id: external_exports.string(),
|
|
25450
|
-
/** Operator-facing label (mirrors `MeshEndpoint.label`). */
|
|
25451
|
-
label: external_exports.string(),
|
|
25452
|
-
/** Optional provider-specific mode tag, used for icon/colour in admin UI. */
|
|
25453
|
-
mode: external_exports.string().optional(),
|
|
25454
|
-
/** Originating local port the ingress fronts (informational). */
|
|
25455
|
-
sourcePort: external_exports.number().optional()
|
|
25793
|
+
var LogLevelSchema = external_exports.enum([
|
|
25794
|
+
"debug",
|
|
25795
|
+
"info",
|
|
25796
|
+
"warn",
|
|
25797
|
+
"error"
|
|
25798
|
+
]);
|
|
25799
|
+
var LogEntrySchema = external_exports.object({
|
|
25800
|
+
timestamp: external_exports.date(),
|
|
25801
|
+
level: LogLevelSchema,
|
|
25802
|
+
scope: external_exports.array(external_exports.string()),
|
|
25803
|
+
message: external_exports.string(),
|
|
25804
|
+
meta: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
25805
|
+
tags: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
25456
25806
|
});
|
|
25457
|
-
var
|
|
25458
|
-
name: "
|
|
25807
|
+
var logDestinationCapability = {
|
|
25808
|
+
name: "log-destination",
|
|
25459
25809
|
scope: "system",
|
|
25460
25810
|
mode: "collection",
|
|
25461
|
-
|
|
25811
|
+
internal: true,
|
|
25462
25812
|
methods: {
|
|
25463
|
-
|
|
25464
|
-
|
|
25465
|
-
|
|
25466
|
-
|
|
25467
|
-
|
|
25468
|
-
|
|
25469
|
-
|
|
25470
|
-
|
|
25471
|
-
|
|
25472
|
-
|
|
25473
|
-
|
|
25813
|
+
write: method(LogEntrySchema, external_exports.void(), { kind: "mutation" }),
|
|
25814
|
+
query: method(external_exports.object({
|
|
25815
|
+
scope: external_exports.array(external_exports.string()).optional(),
|
|
25816
|
+
level: LogLevelSchema.optional(),
|
|
25817
|
+
since: external_exports.date().optional(),
|
|
25818
|
+
until: external_exports.date().optional(),
|
|
25819
|
+
limit: external_exports.number().optional(),
|
|
25820
|
+
tags: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
25821
|
+
}), external_exports.array(LogEntrySchema).readonly())
|
|
25822
|
+
},
|
|
25823
|
+
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
25824
|
+
mount: { kind: "skip" }
|
|
25474
25825
|
};
|
|
25475
|
-
var
|
|
25476
|
-
|
|
25477
|
-
"
|
|
25478
|
-
|
|
25479
|
-
"audio",
|
|
25480
|
-
"icon"
|
|
25481
|
-
]);
|
|
25482
|
-
var AttachmentSchema = external_exports.object({
|
|
25483
|
-
mediaType: AttachmentMediaTypeSchema,
|
|
25484
|
-
url: external_exports.string().optional(),
|
|
25485
|
-
bytes: external_exports.instanceof(Uint8Array).optional(),
|
|
25486
|
-
mime: external_exports.string().optional(),
|
|
25487
|
-
name: external_exports.string().optional()
|
|
25488
|
-
}).refine((a) => a.url !== void 0 || a.bytes !== void 0, { message: "Attachment requires either `url` or `bytes`" });
|
|
25489
|
-
var NotificationFormatSchema = external_exports.enum([
|
|
25490
|
-
"text",
|
|
25491
|
-
"markdown",
|
|
25492
|
-
"html"
|
|
25493
|
-
]);
|
|
25494
|
-
var NotificationActionSchema = external_exports.object({
|
|
25826
|
+
var LoginStageEnum = external_exports.enum(["primary", "second-factor"]);
|
|
25827
|
+
var RedirectLoginMethodSchema = external_exports.object({
|
|
25828
|
+
kind: external_exports.literal("redirect"),
|
|
25829
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
25495
25830
|
id: external_exports.string(),
|
|
25831
|
+
/** Operator-facing button label. */
|
|
25496
25832
|
label: external_exports.string(),
|
|
25497
|
-
|
|
25833
|
+
/** lucide-react icon name. */
|
|
25834
|
+
icon: external_exports.string().optional(),
|
|
25835
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
25836
|
+
startUrl: external_exports.string(),
|
|
25837
|
+
stage: LoginStageEnum
|
|
25498
25838
|
});
|
|
25499
|
-
var
|
|
25500
|
-
|
|
25501
|
-
|
|
25502
|
-
|
|
25503
|
-
|
|
25504
|
-
|
|
25505
|
-
|
|
25506
|
-
|
|
25507
|
-
|
|
25508
|
-
|
|
25509
|
-
|
|
25510
|
-
tag: external_exports.string().optional(),
|
|
25511
|
-
deviceId: external_exports.number().optional(),
|
|
25512
|
-
eventId: external_exports.string().optional(),
|
|
25513
|
-
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
25839
|
+
var WidgetLoginMethodSchema = external_exports.object({
|
|
25840
|
+
kind: external_exports.literal("widget"),
|
|
25841
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
25842
|
+
id: external_exports.string(),
|
|
25843
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
25844
|
+
addonId: external_exports.string(),
|
|
25845
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
25846
|
+
bundle: external_exports.string(),
|
|
25847
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
25848
|
+
remote: WidgetRemoteSchema,
|
|
25849
|
+
stage: LoginStageEnum
|
|
25514
25850
|
});
|
|
25515
|
-
var
|
|
25851
|
+
var PasskeyLoginMethodSchema = external_exports.object({
|
|
25852
|
+
kind: external_exports.literal("passkey"),
|
|
25853
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-direct-login`). */
|
|
25516
25854
|
id: external_exports.string(),
|
|
25855
|
+
/** Operator-facing button label. */
|
|
25517
25856
|
label: external_exports.string(),
|
|
25518
|
-
|
|
25519
|
-
|
|
25520
|
-
|
|
25521
|
-
|
|
25522
|
-
|
|
25523
|
-
noPush: external_exports.boolean().optional()
|
|
25524
|
-
}).optional(),
|
|
25525
|
-
/** e.g. Pushover `emergency` requires `retry` / `expire`. */
|
|
25526
|
-
requires: external_exports.array(external_exports.string()).optional(),
|
|
25527
|
-
description: external_exports.string().optional()
|
|
25857
|
+
stage: LoginStageEnum,
|
|
25858
|
+
/** Effective WebAuthn RP ID (`resolveRpID()`) — the shell gates visibility on it. */
|
|
25859
|
+
rpId: external_exports.string(),
|
|
25860
|
+
/** Effective expected origin (`resolveOrigin()`), null when unconfigured. */
|
|
25861
|
+
origin: external_exports.string().nullable()
|
|
25528
25862
|
});
|
|
25529
|
-
var
|
|
25530
|
-
|
|
25531
|
-
|
|
25532
|
-
|
|
25533
|
-
|
|
25534
|
-
|
|
25863
|
+
var LoginMethodContributionSchema = external_exports.discriminatedUnion("kind", [
|
|
25864
|
+
RedirectLoginMethodSchema,
|
|
25865
|
+
WidgetLoginMethodSchema,
|
|
25866
|
+
PasskeyLoginMethodSchema
|
|
25867
|
+
]);
|
|
25868
|
+
var loginMethodCapability = {
|
|
25869
|
+
name: "login-method",
|
|
25870
|
+
scope: "system",
|
|
25871
|
+
mode: "collection",
|
|
25872
|
+
internal: true,
|
|
25873
|
+
methods: { getLoginMethods: method(external_exports.void(), external_exports.array(LoginMethodContributionSchema).readonly()) },
|
|
25874
|
+
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
25875
|
+
mount: { kind: "skip" }
|
|
25876
|
+
};
|
|
25877
|
+
var CpuBreakdownSchema = external_exports.object({
|
|
25878
|
+
total: external_exports.number(),
|
|
25879
|
+
user: external_exports.number(),
|
|
25880
|
+
system: external_exports.number(),
|
|
25881
|
+
irq: external_exports.number(),
|
|
25882
|
+
nice: external_exports.number(),
|
|
25883
|
+
loadAvg: external_exports.tuple([
|
|
25884
|
+
external_exports.number(),
|
|
25885
|
+
external_exports.number(),
|
|
25886
|
+
external_exports.number()
|
|
25535
25887
|
]),
|
|
25536
|
-
|
|
25537
|
-
maxBytes: external_exports.number().int().positive().optional()
|
|
25538
|
-
});
|
|
25539
|
-
var TargetKindCapsSchema = external_exports.object({
|
|
25540
|
-
attachments: TargetKindAttachmentsCapsSchema,
|
|
25541
|
-
/** Max action buttons (0 = none). */
|
|
25542
|
-
actions: external_exports.number().int().nonnegative(),
|
|
25543
|
-
levels: external_exports.array(TargetKindLevelSchema),
|
|
25544
|
-
format: external_exports.array(NotificationFormatSchema),
|
|
25545
|
-
clickUrl: external_exports.boolean(),
|
|
25546
|
-
sound: external_exports.boolean(),
|
|
25547
|
-
ttl: external_exports.boolean(),
|
|
25548
|
-
bodyMaxLen: external_exports.number().int().positive()
|
|
25888
|
+
cores: external_exports.number()
|
|
25549
25889
|
});
|
|
25550
|
-
var
|
|
25551
|
-
|
|
25552
|
-
|
|
25553
|
-
|
|
25554
|
-
|
|
25555
|
-
|
|
25556
|
-
|
|
25557
|
-
configSchema: ConfigSchemaPassthrough$1,
|
|
25558
|
-
supportsDiscovery: external_exports.boolean(),
|
|
25559
|
-
caps: TargetKindCapsSchema
|
|
25890
|
+
var MemoryInfoSchema = external_exports.object({
|
|
25891
|
+
percent: external_exports.number(),
|
|
25892
|
+
totalBytes: external_exports.number(),
|
|
25893
|
+
usedBytes: external_exports.number(),
|
|
25894
|
+
availableBytes: external_exports.number(),
|
|
25895
|
+
swapUsedBytes: external_exports.number(),
|
|
25896
|
+
swapTotalBytes: external_exports.number()
|
|
25560
25897
|
});
|
|
25561
|
-
var
|
|
25562
|
-
|
|
25563
|
-
|
|
25564
|
-
|
|
25565
|
-
|
|
25566
|
-
|
|
25567
|
-
config: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
25898
|
+
var DiskIoSnapshotSchema = external_exports.object({
|
|
25899
|
+
readBytes: external_exports.number(),
|
|
25900
|
+
writeBytes: external_exports.number(),
|
|
25901
|
+
readOps: external_exports.number(),
|
|
25902
|
+
writeOps: external_exports.number(),
|
|
25903
|
+
timestampMs: external_exports.number()
|
|
25568
25904
|
});
|
|
25569
|
-
var
|
|
25570
|
-
|
|
25571
|
-
|
|
25572
|
-
|
|
25905
|
+
var NetworkIoSnapshotSchema = external_exports.object({
|
|
25906
|
+
rxBytes: external_exports.number(),
|
|
25907
|
+
txBytes: external_exports.number(),
|
|
25908
|
+
rxPackets: external_exports.number(),
|
|
25909
|
+
txPackets: external_exports.number(),
|
|
25910
|
+
rxErrors: external_exports.number(),
|
|
25911
|
+
txErrors: external_exports.number(),
|
|
25912
|
+
timestampMs: external_exports.number()
|
|
25573
25913
|
});
|
|
25574
|
-
var
|
|
25575
|
-
|
|
25576
|
-
|
|
25577
|
-
|
|
25578
|
-
|
|
25579
|
-
|
|
25580
|
-
dropped: external_exports.array(external_exports.string())
|
|
25914
|
+
var MetricsGpuInfoSchema = external_exports.object({
|
|
25915
|
+
utilization: external_exports.number(),
|
|
25916
|
+
model: external_exports.string(),
|
|
25917
|
+
memoryUsedBytes: external_exports.number(),
|
|
25918
|
+
memoryTotalBytes: external_exports.number(),
|
|
25919
|
+
temperature: external_exports.number().nullable()
|
|
25581
25920
|
});
|
|
25582
|
-
var
|
|
25583
|
-
|
|
25584
|
-
|
|
25585
|
-
|
|
25921
|
+
var ProcessResourceInfoSchema = external_exports.object({
|
|
25922
|
+
openFds: external_exports.number(),
|
|
25923
|
+
threadCount: external_exports.number(),
|
|
25924
|
+
activeHandles: external_exports.number(),
|
|
25925
|
+
activeRequests: external_exports.number()
|
|
25586
25926
|
});
|
|
25587
|
-
var
|
|
25588
|
-
|
|
25589
|
-
|
|
25590
|
-
|
|
25591
|
-
mode: "collection",
|
|
25592
|
-
methods: {
|
|
25593
|
-
listTargetKinds: method(external_exports.object({}), external_exports.array(TargetKindSchema)),
|
|
25594
|
-
listTargets: method(external_exports.object({}), external_exports.array(TargetSchema)),
|
|
25595
|
-
discoverTargets: method(external_exports.object({
|
|
25596
|
-
kind: external_exports.string(),
|
|
25597
|
-
config: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
25598
|
-
}), external_exports.array(DiscoveredTargetSchema)),
|
|
25599
|
-
send: method(external_exports.object({
|
|
25600
|
-
targetId: external_exports.string(),
|
|
25601
|
-
notification: NotificationSchema
|
|
25602
|
-
}), SendResultSchema, { kind: "mutation" }),
|
|
25603
|
-
testTarget: method(external_exports.object({
|
|
25604
|
-
targetId: external_exports.string(),
|
|
25605
|
-
sample: NotificationSchema.optional()
|
|
25606
|
-
}), TestResultSchema, { kind: "mutation" }),
|
|
25607
|
-
upsertTarget: method(external_exports.object({ target: TargetSchema }), TargetSchema, { kind: "mutation" }),
|
|
25608
|
-
deleteTarget: method(external_exports.object({ targetId: external_exports.string() }), external_exports.void(), { kind: "mutation" }),
|
|
25609
|
-
setTargetEnabled: method(external_exports.object({
|
|
25610
|
-
targetId: external_exports.string(),
|
|
25611
|
-
enabled: external_exports.boolean()
|
|
25612
|
-
}), external_exports.void(), { kind: "mutation" })
|
|
25613
|
-
}
|
|
25614
|
-
};
|
|
25615
|
-
var LlmUsageSchema = external_exports.object({
|
|
25616
|
-
inputTokens: external_exports.number(),
|
|
25617
|
-
outputTokens: external_exports.number()
|
|
25927
|
+
var PressureAvgsSchema = external_exports.object({
|
|
25928
|
+
avg10: external_exports.number(),
|
|
25929
|
+
avg60: external_exports.number(),
|
|
25930
|
+
avg300: external_exports.number()
|
|
25618
25931
|
});
|
|
25619
|
-
var
|
|
25620
|
-
|
|
25621
|
-
|
|
25622
|
-
"auth",
|
|
25623
|
-
"refusal",
|
|
25624
|
-
"bad-request",
|
|
25625
|
-
"unavailable",
|
|
25626
|
-
"no-profile",
|
|
25627
|
-
"budget-exceeded",
|
|
25628
|
-
"adapter-error"
|
|
25629
|
-
]);
|
|
25630
|
-
var LlmGenerateOkSchema = external_exports.object({
|
|
25631
|
-
ok: external_exports.literal(true),
|
|
25632
|
-
text: external_exports.string(),
|
|
25633
|
-
model: external_exports.string(),
|
|
25634
|
-
usage: LlmUsageSchema,
|
|
25635
|
-
truncated: external_exports.boolean(),
|
|
25636
|
-
latencyMs: external_exports.number()
|
|
25932
|
+
var PressureInfoSchema = external_exports.object({
|
|
25933
|
+
some: PressureAvgsSchema,
|
|
25934
|
+
full: PressureAvgsSchema.nullable()
|
|
25637
25935
|
});
|
|
25638
|
-
var
|
|
25639
|
-
|
|
25640
|
-
|
|
25641
|
-
|
|
25642
|
-
|
|
25643
|
-
|
|
25644
|
-
|
|
25645
|
-
|
|
25646
|
-
|
|
25647
|
-
|
|
25936
|
+
var SystemResourceSnapshotSchema = external_exports.object({
|
|
25937
|
+
cpu: CpuBreakdownSchema,
|
|
25938
|
+
memory: MemoryInfoSchema,
|
|
25939
|
+
gpu: MetricsGpuInfoSchema.nullable(),
|
|
25940
|
+
network: NetworkIoSnapshotSchema,
|
|
25941
|
+
disk: DiskIoSnapshotSchema,
|
|
25942
|
+
pressure: external_exports.object({
|
|
25943
|
+
cpu: PressureInfoSchema.nullable(),
|
|
25944
|
+
memory: PressureInfoSchema.nullable(),
|
|
25945
|
+
io: PressureInfoSchema.nullable()
|
|
25946
|
+
}),
|
|
25947
|
+
process: ProcessResourceInfoSchema,
|
|
25948
|
+
cpuTemperature: external_exports.number().nullable(),
|
|
25949
|
+
timestampMs: external_exports.number()
|
|
25648
25950
|
});
|
|
25649
|
-
var
|
|
25650
|
-
|
|
25651
|
-
|
|
25652
|
-
|
|
25653
|
-
|
|
25654
|
-
|
|
25655
|
-
consumer: external_exports.string(),
|
|
25656
|
-
system: external_exports.string().optional(),
|
|
25657
|
-
/** v1: single-turn. `messages[]` is a v2 additive field. */
|
|
25658
|
-
prompt: external_exports.string(),
|
|
25659
|
-
/** Structured output — adapter-mapped (response_format / forced tool / responseSchema). */
|
|
25660
|
-
jsonSchema: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
25661
|
-
/** Per-call override of the profile default. */
|
|
25662
|
-
maxTokens: external_exports.number().int().positive().optional(),
|
|
25663
|
-
temperature: external_exports.number().optional()
|
|
25951
|
+
var DiskSpaceInfoSchema = external_exports.object({
|
|
25952
|
+
path: external_exports.string(),
|
|
25953
|
+
totalBytes: external_exports.number(),
|
|
25954
|
+
usedBytes: external_exports.number(),
|
|
25955
|
+
availableBytes: external_exports.number(),
|
|
25956
|
+
percent: external_exports.number()
|
|
25664
25957
|
});
|
|
25665
|
-
var
|
|
25666
|
-
external_exports.
|
|
25667
|
-
|
|
25668
|
-
|
|
25669
|
-
|
|
25670
|
-
|
|
25671
|
-
|
|
25672
|
-
|
|
25673
|
-
|
|
25674
|
-
|
|
25675
|
-
|
|
25676
|
-
|
|
25677
|
-
|
|
25678
|
-
|
|
25679
|
-
|
|
25680
|
-
|
|
25681
|
-
|
|
25682
|
-
nodeId: external_exports.string(),
|
|
25683
|
-
/** Closed for v1; 'ollama' is a v2 candidate. */
|
|
25684
|
-
engine: external_exports.enum(["llama-cpp"]),
|
|
25685
|
-
model: ManagedModelRefSchema,
|
|
25686
|
-
contextSize: external_exports.number().int().default(4096),
|
|
25687
|
-
/** 0 = CPU-only. */
|
|
25688
|
-
gpuLayers: external_exports.number().int().default(0),
|
|
25689
|
-
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
25690
|
-
threads: external_exports.number().int().optional(),
|
|
25691
|
-
/** Concurrent slots. */
|
|
25692
|
-
parallel: external_exports.number().int().default(1),
|
|
25693
|
-
/** Else lazy: first generate boots it. */
|
|
25694
|
-
autoStart: external_exports.boolean().default(false),
|
|
25695
|
-
/** 0 = never; frees RAM after quiet periods. */
|
|
25696
|
-
idleStopMinutes: external_exports.number().int().default(30)
|
|
25958
|
+
var PidResourceStatsSchema = external_exports.object({
|
|
25959
|
+
pid: external_exports.number(),
|
|
25960
|
+
cpu: external_exports.number(),
|
|
25961
|
+
memory: external_exports.number(),
|
|
25962
|
+
/**
|
|
25963
|
+
* Private (anonymous) resident bytes — the per-process V8 heap + native
|
|
25964
|
+
* allocations NOT shared with other processes (Linux RssAnon). This is the
|
|
25965
|
+
* "real" per-runner cost; summing it across runners is meaningful, unlike
|
|
25966
|
+
* `memory` (RSS), which double-counts the shared mmap'd framework code.
|
|
25967
|
+
* Undefined where /proc is unavailable (e.g. macOS).
|
|
25968
|
+
*/
|
|
25969
|
+
privateBytes: external_exports.number().optional(),
|
|
25970
|
+
/**
|
|
25971
|
+
* Shared file-backed resident bytes (Linux RssFile) — mmap'd framework/lib
|
|
25972
|
+
* code shared copy-on-write across runners. Undefined on macOS.
|
|
25973
|
+
*/
|
|
25974
|
+
sharedBytes: external_exports.number().optional()
|
|
25697
25975
|
});
|
|
25698
|
-
var
|
|
25699
|
-
|
|
25976
|
+
var AddonInstanceSchema = external_exports.object({
|
|
25977
|
+
addonId: external_exports.string(),
|
|
25700
25978
|
nodeId: external_exports.string(),
|
|
25979
|
+
role: external_exports.enum(["hub", "worker"]),
|
|
25980
|
+
pid: external_exports.number(),
|
|
25701
25981
|
state: external_exports.enum([
|
|
25702
|
-
"stopped",
|
|
25703
|
-
"downloading",
|
|
25704
25982
|
"starting",
|
|
25705
|
-
"
|
|
25706
|
-
"
|
|
25707
|
-
"
|
|
25983
|
+
"running",
|
|
25984
|
+
"stopping",
|
|
25985
|
+
"stopped",
|
|
25986
|
+
"crashed"
|
|
25708
25987
|
]),
|
|
25988
|
+
uptimeSec: external_exports.number()
|
|
25989
|
+
});
|
|
25990
|
+
var NodeProcessSchema = external_exports.object({
|
|
25991
|
+
pid: external_exports.number(),
|
|
25992
|
+
ppid: external_exports.number(),
|
|
25993
|
+
pgid: external_exports.number(),
|
|
25994
|
+
classification: external_exports.enum([
|
|
25995
|
+
"root",
|
|
25996
|
+
"managed",
|
|
25997
|
+
"system",
|
|
25998
|
+
"ghost"
|
|
25999
|
+
]),
|
|
26000
|
+
/** `$process` addon binding when `managed`, else null. */
|
|
26001
|
+
addonId: external_exports.string().nullable(),
|
|
26002
|
+
/** Kernel-reported nodeId when the process is a known agent/worker. */
|
|
26003
|
+
nodeId: external_exports.string().nullable(),
|
|
26004
|
+
/** Truncated command line. */
|
|
26005
|
+
command: external_exports.string(),
|
|
26006
|
+
cpuPercent: external_exports.number(),
|
|
26007
|
+
memoryRssBytes: external_exports.number(),
|
|
26008
|
+
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
26009
|
+
uptimeSec: external_exports.number(),
|
|
26010
|
+
/** True when ancestor walk reaches `ppid=1` (reparented to init/launchd). */
|
|
26011
|
+
orphaned: external_exports.boolean()
|
|
26012
|
+
});
|
|
26013
|
+
var KillProcessInputSchema = external_exports.object({
|
|
26014
|
+
pid: external_exports.number(),
|
|
26015
|
+
/** Force = SIGKILL. Default is SIGTERM. */
|
|
26016
|
+
force: external_exports.boolean().optional()
|
|
26017
|
+
});
|
|
26018
|
+
var KillProcessResultSchema = external_exports.object({
|
|
26019
|
+
success: external_exports.boolean(),
|
|
26020
|
+
reason: external_exports.string().optional(),
|
|
26021
|
+
signal: external_exports.enum(["SIGTERM", "SIGKILL"]).optional()
|
|
26022
|
+
});
|
|
26023
|
+
var DumpHeapSnapshotInputSchema = external_exports.object({
|
|
26024
|
+
/** The addon whose runner should dump a heap snapshot. */
|
|
26025
|
+
addonId: external_exports.string()
|
|
26026
|
+
});
|
|
26027
|
+
var DumpHeapSnapshotResultSchema = external_exports.object({
|
|
26028
|
+
success: external_exports.boolean(),
|
|
26029
|
+
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
26030
|
+
path: external_exports.string().optional(),
|
|
26031
|
+
/** Process pid that was signalled. */
|
|
25709
26032
|
pid: external_exports.number().optional(),
|
|
25710
|
-
|
|
25711
|
-
modelPath: external_exports.string().optional(),
|
|
25712
|
-
modelId: external_exports.string().optional(),
|
|
25713
|
-
downloadProgress: external_exports.number().min(0).max(1).optional(),
|
|
25714
|
-
lastError: external_exports.string().optional(),
|
|
25715
|
-
crashesInWindow: external_exports.number(),
|
|
25716
|
-
/** Child RSS (sampled best-effort). */
|
|
25717
|
-
memoryBytes: external_exports.number().optional(),
|
|
25718
|
-
vramBytes: external_exports.number().optional()
|
|
26033
|
+
reason: external_exports.string().optional()
|
|
25719
26034
|
});
|
|
25720
|
-
var
|
|
25721
|
-
|
|
25722
|
-
|
|
25723
|
-
|
|
25724
|
-
|
|
26035
|
+
var SystemMetricsSchema = external_exports.object({
|
|
26036
|
+
cpuPercent: external_exports.number(),
|
|
26037
|
+
memoryPercent: external_exports.number(),
|
|
26038
|
+
memoryUsedMB: external_exports.number(),
|
|
26039
|
+
memoryTotalMB: external_exports.number(),
|
|
26040
|
+
diskPercent: external_exports.number().optional(),
|
|
26041
|
+
temperature: external_exports.number().optional(),
|
|
26042
|
+
gpuPercent: external_exports.number().optional(),
|
|
26043
|
+
gpuMemoryPercent: external_exports.number().optional()
|
|
26044
|
+
});
|
|
26045
|
+
var metricsProviderCapability = {
|
|
26046
|
+
name: "metrics-provider",
|
|
26047
|
+
scope: "system",
|
|
26048
|
+
mode: "singleton",
|
|
26049
|
+
methods: {
|
|
26050
|
+
/** Fresh, full system snapshot (triggers OS-level collection). */
|
|
26051
|
+
collectSnapshot: method(external_exports.void(), SystemResourceSnapshotSchema),
|
|
26052
|
+
/** Most recent cached snapshot from the background sampler, or null pre-first-sample. */
|
|
26053
|
+
getCached: method(external_exports.void(), SystemResourceSnapshotSchema.nullable()),
|
|
26054
|
+
/** Light-weight cached summary for heartbeats and list views. */
|
|
26055
|
+
getCurrent: method(external_exports.void(), SystemMetricsSchema),
|
|
26056
|
+
/** Disk space for the given mount/path. */
|
|
26057
|
+
getDiskSpace: method(external_exports.object({ dirPath: external_exports.string() }), DiskSpaceInfoSchema),
|
|
26058
|
+
/** GPU info (null if unavailable). */
|
|
26059
|
+
getGpuInfo: method(external_exports.void(), MetricsGpuInfoSchema.nullable()),
|
|
26060
|
+
/** CPU temperature in °C (null if unavailable). */
|
|
26061
|
+
getCpuTemperature: method(external_exports.void(), external_exports.number().nullable()),
|
|
26062
|
+
/** Per-PID resource stats. Missing/dead PIDs are omitted from the result. */
|
|
26063
|
+
getProcessStats: method(external_exports.object({ pids: external_exports.array(external_exports.number()) }), external_exports.array(PidResourceStatsSchema)),
|
|
26064
|
+
/**
|
|
26065
|
+
* List addon instances known to this node — one entry per forked worker
|
|
26066
|
+
* plus a synthetic 'hub' entry representing the local hub process.
|
|
26067
|
+
* Used by benchmarks/observability to detect whether a given addon runs
|
|
26068
|
+
* in its own process (measurable independently) or inline with the hub.
|
|
26069
|
+
*/
|
|
26070
|
+
listAddonInstances: method(external_exports.void(), external_exports.array(AddonInstanceSchema).readonly()),
|
|
26071
|
+
/**
|
|
26072
|
+
* Resource stats for the process hosting the given addon.
|
|
26073
|
+
* Returns null when the addon runs in-process on the hub (can't measure
|
|
26074
|
+
* independently — caller should detect via listAddonInstances). Returns
|
|
26075
|
+
* hub process stats for addonId '$hub'.
|
|
26076
|
+
*/
|
|
26077
|
+
getAddonStats: method(external_exports.object({ addonId: external_exports.string() }), PidResourceStatsSchema.nullable()),
|
|
26078
|
+
/**
|
|
26079
|
+
* Snapshot of every camstack-related process on this node with a
|
|
26080
|
+
* ghost/managed/root classification. Powers the Cluster → Agent →
|
|
26081
|
+
* Processes tab: cross-references `$process.list` against a `ps` scan
|
|
26082
|
+
* so orphaned trees (PPID=1) or unknown children show up as `ghost`
|
|
26083
|
+
* and can be killed from the UI.
|
|
26084
|
+
*/
|
|
26085
|
+
listNodeProcesses: method(external_exports.void(), external_exports.array(NodeProcessSchema).readonly()),
|
|
26086
|
+
/**
|
|
26087
|
+
* Send SIGTERM (or SIGKILL when `force`) to a pid inside this node's
|
|
26088
|
+
* process tree. The provider refuses pids that aren't in the live
|
|
26089
|
+
* `listNodeProcesses()` snapshot — callers can't use this endpoint
|
|
26090
|
+
* to kill arbitrary system processes.
|
|
26091
|
+
*/
|
|
26092
|
+
killProcess: method(KillProcessInputSchema, KillProcessResultSchema, {
|
|
26093
|
+
kind: "mutation",
|
|
26094
|
+
auth: "admin"
|
|
26095
|
+
}),
|
|
26096
|
+
/**
|
|
26097
|
+
* Tell the addon's forked runner to write a V8 heap snapshot to disk (via
|
|
26098
|
+
* SIGUSR2 — the runner's diagnostic handler). Also logs its
|
|
26099
|
+
* `process.memoryUsage()` + heap-space breakdown. Refuses pids not in the
|
|
26100
|
+
* live `listNodeProcesses()` snapshot. Use for deep per-addon memory
|
|
26101
|
+
* attribution; copy the returned path off the node to analyze.
|
|
26102
|
+
*/
|
|
26103
|
+
dumpHeapSnapshot: method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
26104
|
+
kind: "mutation",
|
|
26105
|
+
auth: "admin"
|
|
26106
|
+
})
|
|
26107
|
+
}
|
|
26108
|
+
};
|
|
26109
|
+
var ModelConvertInputSchema = external_exports.object({
|
|
26110
|
+
sourceUrl: external_exports.string(),
|
|
26111
|
+
metadata: ModelConvertMetadataSchema,
|
|
26112
|
+
targets: external_exports.array(ConvertTargetSchema).min(1).readonly(),
|
|
26113
|
+
calibrationRef: external_exports.string().optional(),
|
|
26114
|
+
sessionId: external_exports.string().optional()
|
|
26115
|
+
});
|
|
26116
|
+
var modelConvertCapability = {
|
|
26117
|
+
name: "model-convert",
|
|
26118
|
+
scope: "system",
|
|
26119
|
+
mode: "singleton",
|
|
26120
|
+
internal: true,
|
|
26121
|
+
methods: { convert: method(ModelConvertInputSchema, ConvertResultSchema, {
|
|
26122
|
+
kind: "mutation",
|
|
26123
|
+
auth: "admin",
|
|
26124
|
+
timeoutMs: 6e5
|
|
26125
|
+
}) }
|
|
26126
|
+
};
|
|
26127
|
+
var ModelDistributeInputSchema = external_exports.object({
|
|
26128
|
+
nodeId: external_exports.string(),
|
|
26129
|
+
modelId: external_exports.string(),
|
|
26130
|
+
format: external_exports.enum(MODEL_FORMATS),
|
|
26131
|
+
entry: ModelCatalogEntrySchema
|
|
26132
|
+
});
|
|
26133
|
+
var ModelDistributeResultSchema = external_exports.object({
|
|
26134
|
+
ok: external_exports.boolean(),
|
|
26135
|
+
/** sha256 of the staged tarball (empty for a hub-local no-op). */
|
|
26136
|
+
sha256: external_exports.string(),
|
|
26137
|
+
bytes: external_exports.number(),
|
|
26138
|
+
/** The target node's modelsDir the artifact landed in. */
|
|
26139
|
+
path: external_exports.string()
|
|
26140
|
+
});
|
|
26141
|
+
var modelDistributorCapability = {
|
|
26142
|
+
name: "model-distributor",
|
|
26143
|
+
scope: "system",
|
|
26144
|
+
mode: "singleton",
|
|
26145
|
+
internal: true,
|
|
26146
|
+
methods: { distributeModel: method(ModelDistributeInputSchema, ModelDistributeResultSchema, {
|
|
26147
|
+
kind: "mutation",
|
|
26148
|
+
auth: "admin"
|
|
26149
|
+
}) }
|
|
26150
|
+
};
|
|
26151
|
+
var BrokerKindSchema = external_exports.enum(["external", "embedded"]);
|
|
26152
|
+
var BrokerStatusSchema$1 = external_exports.enum([
|
|
26153
|
+
"connected",
|
|
26154
|
+
"disconnected",
|
|
26155
|
+
"auth-failed",
|
|
26156
|
+
"unreachable",
|
|
26157
|
+
"tls-error"
|
|
26158
|
+
]);
|
|
26159
|
+
var BrokerInfoSchema = external_exports.object({
|
|
26160
|
+
id: external_exports.string(),
|
|
26161
|
+
name: external_exports.string(),
|
|
26162
|
+
url: external_exports.string(),
|
|
26163
|
+
kind: BrokerKindSchema,
|
|
26164
|
+
status: BrokerStatusSchema$1,
|
|
26165
|
+
latencyMs: external_exports.number().nullable(),
|
|
26166
|
+
error: external_exports.string().optional(),
|
|
26167
|
+
/** Embedded brokers only: number of MQTT clients currently connected. */
|
|
26168
|
+
connectedClients: external_exports.number().int().nonnegative().optional(),
|
|
26169
|
+
/** Epoch ms of the last live probe (external) or aedes snapshot (embedded). */
|
|
26170
|
+
lastCheckedAt: external_exports.number().optional()
|
|
26171
|
+
});
|
|
26172
|
+
var BrokerConnectionDetailsSchema = external_exports.object({
|
|
26173
|
+
url: external_exports.string(),
|
|
26174
|
+
username: external_exports.string().optional(),
|
|
26175
|
+
password: external_exports.string().optional(),
|
|
26176
|
+
/**
|
|
26177
|
+
* Suggested prefix for `clientId`. Each consumer should suffix this
|
|
26178
|
+
* with its own discriminator (addon id, instance id) so reconnects
|
|
26179
|
+
* don't kick each other off (MQTT spec: clientId must be unique per
|
|
26180
|
+
* broker).
|
|
26181
|
+
*/
|
|
26182
|
+
clientIdPrefix: external_exports.string().optional()
|
|
26183
|
+
});
|
|
26184
|
+
var AddBrokerInputSchema = external_exports.object({
|
|
26185
|
+
name: external_exports.string().min(1),
|
|
26186
|
+
url: external_exports.string().regex(/^(mqtt|mqtts|ws|wss):\/\//, "URL must start with mqtt(s):// or ws(s)://"),
|
|
26187
|
+
username: external_exports.string().optional(),
|
|
26188
|
+
password: external_exports.string().optional(),
|
|
26189
|
+
clientIdPrefix: external_exports.string().optional()
|
|
26190
|
+
});
|
|
26191
|
+
var AddBrokerResultSchema = external_exports.object({ id: external_exports.string() });
|
|
26192
|
+
var IdInputSchema = external_exports.object({ id: external_exports.string() });
|
|
26193
|
+
var TestResultSchema$1 = external_exports.discriminatedUnion("ok", [external_exports.object({
|
|
26194
|
+
ok: external_exports.literal(true),
|
|
26195
|
+
latencyMs: external_exports.number()
|
|
26196
|
+
}), external_exports.object({
|
|
26197
|
+
ok: external_exports.literal(false),
|
|
26198
|
+
error: external_exports.string()
|
|
26199
|
+
})]);
|
|
26200
|
+
var StartEmbeddedInputSchema = external_exports.object({
|
|
26201
|
+
port: external_exports.number().int().min(1).max(65535).default(1883),
|
|
26202
|
+
/** Allow anonymous connect (no username/password). Default: false. */
|
|
26203
|
+
allowAnonymous: external_exports.boolean().default(false),
|
|
26204
|
+
/** Optional shared username/password for clients. */
|
|
26205
|
+
username: external_exports.string().optional(),
|
|
26206
|
+
password: external_exports.string().optional()
|
|
26207
|
+
});
|
|
26208
|
+
var StartEmbeddedResultSchema = external_exports.object({
|
|
26209
|
+
id: external_exports.string(),
|
|
26210
|
+
url: external_exports.string()
|
|
26211
|
+
});
|
|
26212
|
+
var StatusSchema = external_exports.object({
|
|
26213
|
+
brokerCount: external_exports.number(),
|
|
26214
|
+
embeddedRunning: external_exports.boolean()
|
|
26215
|
+
});
|
|
26216
|
+
var mqttBrokerCapability = {
|
|
26217
|
+
name: "mqtt-broker",
|
|
26218
|
+
scope: "system",
|
|
26219
|
+
mode: "collection",
|
|
26220
|
+
providerKind: "broker",
|
|
26221
|
+
status: {
|
|
26222
|
+
schema: StatusSchema,
|
|
26223
|
+
kind: "poll"
|
|
26224
|
+
},
|
|
26225
|
+
methods: {
|
|
26226
|
+
listBrokers: method(external_exports.void(), external_exports.array(BrokerInfoSchema)),
|
|
26227
|
+
getBrokerConfig: method(IdInputSchema, BrokerConnectionDetailsSchema),
|
|
26228
|
+
addBroker: method(AddBrokerInputSchema, AddBrokerResultSchema, { kind: "mutation" }),
|
|
26229
|
+
removeBroker: method(IdInputSchema, external_exports.void(), { kind: "mutation" }),
|
|
26230
|
+
testConnection: method(IdInputSchema, TestResultSchema$1, { kind: "mutation" }),
|
|
26231
|
+
startEmbeddedBroker: method(StartEmbeddedInputSchema, StartEmbeddedResultSchema, { kind: "mutation" }),
|
|
26232
|
+
stopEmbeddedBroker: method(IdInputSchema, external_exports.void(), { kind: "mutation" }),
|
|
26233
|
+
getStatus: method(external_exports.void(), StatusSchema)
|
|
26234
|
+
}
|
|
26235
|
+
};
|
|
26236
|
+
var NetworkEndpointSchema = external_exports.object({
|
|
26237
|
+
url: external_exports.string(),
|
|
26238
|
+
hostname: external_exports.string(),
|
|
26239
|
+
port: external_exports.number(),
|
|
26240
|
+
protocol: external_exports.enum(["http", "https"])
|
|
25725
26241
|
});
|
|
25726
|
-
var
|
|
25727
|
-
|
|
25728
|
-
|
|
25729
|
-
|
|
26242
|
+
var NetworkAccessStatusSchema = external_exports.object({
|
|
26243
|
+
connected: external_exports.boolean(),
|
|
26244
|
+
endpoint: NetworkEndpointSchema.nullable(),
|
|
26245
|
+
error: external_exports.string().optional()
|
|
25730
26246
|
});
|
|
25731
|
-
var
|
|
25732
|
-
|
|
25733
|
-
|
|
25734
|
-
|
|
25735
|
-
|
|
26247
|
+
var NetworkEndpointEntrySchema = NetworkEndpointSchema.extend({
|
|
26248
|
+
/**
|
|
26249
|
+
* Stable id within the provider — typically `<mode>-<sourcePort>` so
|
|
26250
|
+
* the orchestrator can dedupe across `listEndpoints` polls.
|
|
26251
|
+
*/
|
|
26252
|
+
id: external_exports.string(),
|
|
26253
|
+
/** Operator-facing label (mirrors `MeshEndpoint.label`). */
|
|
26254
|
+
label: external_exports.string(),
|
|
26255
|
+
/** Optional provider-specific mode tag, used for icon/colour in admin UI. */
|
|
26256
|
+
mode: external_exports.string().optional(),
|
|
26257
|
+
/** Originating local port the ingress fronts (informational). */
|
|
26258
|
+
sourcePort: external_exports.number().optional()
|
|
25736
26259
|
});
|
|
25737
|
-
var
|
|
25738
|
-
name: "
|
|
26260
|
+
var networkAccessCapability = {
|
|
26261
|
+
name: "network-access",
|
|
25739
26262
|
scope: "system",
|
|
25740
|
-
mode: "
|
|
25741
|
-
|
|
26263
|
+
mode: "collection",
|
|
26264
|
+
providerKind: "ingress",
|
|
25742
26265
|
methods: {
|
|
25743
|
-
|
|
25744
|
-
|
|
25745
|
-
|
|
25746
|
-
|
|
25747
|
-
|
|
25748
|
-
|
|
25749
|
-
|
|
25750
|
-
|
|
25751
|
-
|
|
25752
|
-
|
|
25753
|
-
installModel: method(external_exports.object({ model: ManagedModelRefSchema }), external_exports.void(), {
|
|
25754
|
-
kind: "mutation",
|
|
25755
|
-
auth: "admin"
|
|
25756
|
-
}),
|
|
25757
|
-
deleteModel: method(external_exports.object({ file: external_exports.string() }), external_exports.void(), {
|
|
25758
|
-
kind: "mutation",
|
|
25759
|
-
auth: "admin"
|
|
25760
|
-
}),
|
|
25761
|
-
listLocalModels: method(external_exports.object({}), external_exports.array(LlmNodeModelSchema)),
|
|
25762
|
-
getDiskUsage: method(external_exports.object({}), LlmRuntimeDiskUsageSchema)
|
|
26266
|
+
start: method(external_exports.void(), NetworkEndpointSchema, { kind: "mutation" }),
|
|
26267
|
+
stop: method(external_exports.void(), external_exports.void(), { kind: "mutation" }),
|
|
26268
|
+
getEndpoint: method(external_exports.void(), NetworkEndpointSchema.nullable()),
|
|
26269
|
+
getStatus: method(external_exports.void(), NetworkAccessStatusSchema),
|
|
26270
|
+
/**
|
|
26271
|
+
* Enumerate every active ingress entry. Providers that expose only a
|
|
26272
|
+
* single endpoint may omit this method; callers fall back to
|
|
26273
|
+
* `getEndpoint()` in that case.
|
|
26274
|
+
*/
|
|
26275
|
+
listEndpoints: method(external_exports.void(), external_exports.array(NetworkEndpointEntrySchema).readonly())
|
|
25763
26276
|
}
|
|
25764
26277
|
};
|
|
25765
|
-
var
|
|
25766
|
-
"
|
|
25767
|
-
"
|
|
25768
|
-
"
|
|
25769
|
-
"
|
|
25770
|
-
"
|
|
26278
|
+
var AttachmentMediaTypeSchema = external_exports.enum([
|
|
26279
|
+
"image",
|
|
26280
|
+
"video",
|
|
26281
|
+
"gif",
|
|
26282
|
+
"audio",
|
|
26283
|
+
"icon"
|
|
25771
26284
|
]);
|
|
25772
|
-
var
|
|
26285
|
+
var AttachmentSchema = external_exports.object({
|
|
26286
|
+
mediaType: AttachmentMediaTypeSchema,
|
|
26287
|
+
url: external_exports.string().optional(),
|
|
26288
|
+
bytes: external_exports.instanceof(Uint8Array).optional(),
|
|
26289
|
+
mime: external_exports.string().optional(),
|
|
26290
|
+
name: external_exports.string().optional()
|
|
26291
|
+
}).refine((a) => a.url !== void 0 || a.bytes !== void 0, { message: "Attachment requires either `url` or `bytes`" });
|
|
26292
|
+
var NotificationFormatSchema = external_exports.enum([
|
|
26293
|
+
"text",
|
|
26294
|
+
"markdown",
|
|
26295
|
+
"html"
|
|
26296
|
+
]);
|
|
26297
|
+
var NotificationActionSchema = external_exports.object({
|
|
25773
26298
|
id: external_exports.string(),
|
|
25774
|
-
name: external_exports.string(),
|
|
25775
|
-
kind: LlmProfileKindSchema,
|
|
25776
|
-
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
25777
|
-
addonId: external_exports.string(),
|
|
25778
|
-
enabled: external_exports.boolean(),
|
|
25779
|
-
/** Vendor model id, or the managed runtime's loaded model. */
|
|
25780
|
-
model: external_exports.string(),
|
|
25781
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
25782
|
-
baseUrl: external_exports.string().optional(),
|
|
25783
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
25784
|
-
apiKey: external_exports.string().optional(),
|
|
25785
|
-
supportsVision: external_exports.boolean(),
|
|
25786
|
-
temperature: external_exports.number().min(0).max(2).optional(),
|
|
25787
|
-
maxTokens: external_exports.number().int().positive().optional(),
|
|
25788
|
-
timeoutMs: external_exports.number().int().positive().default(6e4),
|
|
25789
|
-
extraHeaders: external_exports.record(external_exports.string(), external_exports.string()).optional(),
|
|
25790
|
-
/** kind === 'managed-local' only (spec §4). */
|
|
25791
|
-
runtime: ManagedRuntimeConfigSchema.optional()
|
|
25792
|
-
});
|
|
25793
|
-
var ConfigSchemaPassthrough = external_exports.unknown();
|
|
25794
|
-
var LlmProfileKindDescriptorSchema = external_exports.object({
|
|
25795
|
-
kind: LlmProfileKindSchema,
|
|
25796
26299
|
label: external_exports.string(),
|
|
25797
|
-
|
|
25798
|
-
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
25799
|
-
addonId: external_exports.string(),
|
|
25800
|
-
configSchema: ConfigSchemaPassthrough
|
|
25801
|
-
});
|
|
25802
|
-
var LlmDefaultSelectorSchema = external_exports.union([external_exports.object({ consumer: external_exports.string() }), external_exports.object({ purpose: external_exports.enum(["text", "vision"]) })]);
|
|
25803
|
-
var LlmDefaultSchema = external_exports.object({
|
|
25804
|
-
selector: LlmDefaultSelectorSchema,
|
|
25805
|
-
profileId: external_exports.string()
|
|
26300
|
+
url: external_exports.string().optional()
|
|
25806
26301
|
});
|
|
25807
|
-
var
|
|
25808
|
-
|
|
25809
|
-
|
|
25810
|
-
|
|
25811
|
-
|
|
25812
|
-
|
|
25813
|
-
|
|
25814
|
-
|
|
25815
|
-
|
|
25816
|
-
|
|
26302
|
+
var NotificationSchema = external_exports.object({
|
|
26303
|
+
body: external_exports.string(),
|
|
26304
|
+
title: external_exports.string().optional(),
|
|
26305
|
+
format: NotificationFormatSchema.default("text"),
|
|
26306
|
+
priority: external_exports.number().int().min(1).max(5).default(3),
|
|
26307
|
+
level: external_exports.string().optional(),
|
|
26308
|
+
attachments: external_exports.array(AttachmentSchema).optional(),
|
|
26309
|
+
clickUrl: external_exports.string().optional(),
|
|
26310
|
+
actions: external_exports.array(NotificationActionSchema).optional(),
|
|
26311
|
+
sound: external_exports.string().optional(),
|
|
26312
|
+
ttl: external_exports.number().optional(),
|
|
26313
|
+
tag: external_exports.string().optional(),
|
|
26314
|
+
deviceId: external_exports.number().optional(),
|
|
26315
|
+
eventId: external_exports.string().optional(),
|
|
26316
|
+
metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
25817
26317
|
});
|
|
25818
|
-
var
|
|
26318
|
+
var TargetKindLevelSchema = external_exports.object({
|
|
25819
26319
|
id: external_exports.string(),
|
|
25820
26320
|
label: external_exports.string(),
|
|
25821
|
-
|
|
25822
|
-
|
|
25823
|
-
|
|
25824
|
-
|
|
25825
|
-
|
|
25826
|
-
|
|
25827
|
-
|
|
25828
|
-
|
|
25829
|
-
|
|
25830
|
-
|
|
25831
|
-
mmprojUrl: external_exports.string().optional()
|
|
25832
|
-
});
|
|
25833
|
-
var LlmRuntimeNodeSchema = external_exports.object({
|
|
25834
|
-
nodeId: external_exports.string(),
|
|
25835
|
-
reachable: external_exports.boolean(),
|
|
25836
|
-
status: LlmRuntimeStatusSchema.optional(),
|
|
25837
|
-
disk: LlmRuntimeDiskUsageSchema.optional(),
|
|
25838
|
-
error: external_exports.string().optional()
|
|
26321
|
+
/** Which canonical priority (1..5) this level maps to. `null` = qualitative-only. */
|
|
26322
|
+
ordinal: external_exports.number().int().min(1).max(5).nullable(),
|
|
26323
|
+
flags: external_exports.object({
|
|
26324
|
+
critical: external_exports.boolean().optional(),
|
|
26325
|
+
silent: external_exports.boolean().optional(),
|
|
26326
|
+
noPush: external_exports.boolean().optional()
|
|
26327
|
+
}).optional(),
|
|
26328
|
+
/** e.g. Pushover `emergency` requires `retry` / `expire`. */
|
|
26329
|
+
requires: external_exports.array(external_exports.string()).optional(),
|
|
26330
|
+
description: external_exports.string().optional()
|
|
25839
26331
|
});
|
|
25840
|
-
var
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
26332
|
+
var TargetKindAttachmentsCapsSchema = external_exports.object({
|
|
26333
|
+
mediaTypes: external_exports.array(AttachmentMediaTypeSchema),
|
|
26334
|
+
mode: external_exports.enum([
|
|
26335
|
+
"url",
|
|
26336
|
+
"bytes",
|
|
26337
|
+
"both"
|
|
26338
|
+
]),
|
|
26339
|
+
max: external_exports.number().int().nonnegative(),
|
|
26340
|
+
maxBytes: external_exports.number().int().positive().optional()
|
|
25844
26341
|
});
|
|
25845
|
-
var
|
|
25846
|
-
|
|
25847
|
-
|
|
25848
|
-
|
|
25849
|
-
|
|
25850
|
-
|
|
25851
|
-
|
|
25852
|
-
|
|
25853
|
-
|
|
25854
|
-
|
|
25855
|
-
|
|
25856
|
-
|
|
25857
|
-
|
|
25858
|
-
|
|
25859
|
-
|
|
25860
|
-
|
|
25861
|
-
|
|
25862
|
-
|
|
25863
|
-
|
|
25864
|
-
|
|
25865
|
-
|
|
25866
|
-
|
|
25867
|
-
|
|
25868
|
-
|
|
25869
|
-
|
|
25870
|
-
|
|
25871
|
-
|
|
25872
|
-
|
|
25873
|
-
|
|
25874
|
-
|
|
25875
|
-
|
|
25876
|
-
|
|
25877
|
-
|
|
25878
|
-
|
|
25879
|
-
|
|
25880
|
-
|
|
25881
|
-
|
|
25882
|
-
|
|
25883
|
-
|
|
25884
|
-
|
|
25885
|
-
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25889
|
-
|
|
25890
|
-
|
|
25891
|
-
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
}), external_exports.
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25908
|
-
|
|
25909
|
-
|
|
25910
|
-
|
|
25911
|
-
|
|
26342
|
+
var TargetKindCapsSchema = external_exports.object({
|
|
26343
|
+
attachments: TargetKindAttachmentsCapsSchema,
|
|
26344
|
+
/** Max action buttons (0 = none). */
|
|
26345
|
+
actions: external_exports.number().int().nonnegative(),
|
|
26346
|
+
levels: external_exports.array(TargetKindLevelSchema),
|
|
26347
|
+
format: external_exports.array(NotificationFormatSchema),
|
|
26348
|
+
clickUrl: external_exports.boolean(),
|
|
26349
|
+
sound: external_exports.boolean(),
|
|
26350
|
+
ttl: external_exports.boolean(),
|
|
26351
|
+
bodyMaxLen: external_exports.number().int().positive()
|
|
26352
|
+
});
|
|
26353
|
+
var ConfigSchemaPassthrough = external_exports.unknown();
|
|
26354
|
+
var TargetKindSchema = external_exports.object({
|
|
26355
|
+
kind: external_exports.string(),
|
|
26356
|
+
label: external_exports.string(),
|
|
26357
|
+
icon: external_exports.string(),
|
|
26358
|
+
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
26359
|
+
addonId: external_exports.string(),
|
|
26360
|
+
configSchema: ConfigSchemaPassthrough,
|
|
26361
|
+
supportsDiscovery: external_exports.boolean(),
|
|
26362
|
+
caps: TargetKindCapsSchema
|
|
26363
|
+
});
|
|
26364
|
+
var TargetSchema = external_exports.object({
|
|
26365
|
+
id: external_exports.string(),
|
|
26366
|
+
name: external_exports.string(),
|
|
26367
|
+
kind: external_exports.string(),
|
|
26368
|
+
addonId: external_exports.string(),
|
|
26369
|
+
enabled: external_exports.boolean(),
|
|
26370
|
+
config: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
26371
|
+
});
|
|
26372
|
+
var DiscoveredTargetSchema = external_exports.object({
|
|
26373
|
+
kind: external_exports.string(),
|
|
26374
|
+
suggestedName: external_exports.string(),
|
|
26375
|
+
config: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
26376
|
+
});
|
|
26377
|
+
var RenderedAsSchema = external_exports.object({
|
|
26378
|
+
level: external_exports.string(),
|
|
26379
|
+
format: NotificationFormatSchema,
|
|
26380
|
+
attachmentsSent: external_exports.number().int().nonnegative(),
|
|
26381
|
+
actionsSent: external_exports.number().int().nonnegative(),
|
|
26382
|
+
truncated: external_exports.boolean(),
|
|
26383
|
+
dropped: external_exports.array(external_exports.string())
|
|
26384
|
+
});
|
|
26385
|
+
var SendResultSchema = external_exports.object({
|
|
26386
|
+
success: external_exports.boolean(),
|
|
26387
|
+
error: external_exports.string().optional(),
|
|
26388
|
+
renderedAs: RenderedAsSchema.optional()
|
|
26389
|
+
});
|
|
26390
|
+
var TestResultSchema = SendResultSchema;
|
|
26391
|
+
var notificationOutputCapability = {
|
|
26392
|
+
name: "notification-output",
|
|
26393
|
+
scope: "system",
|
|
26394
|
+
mode: "collection",
|
|
26395
|
+
methods: {
|
|
26396
|
+
listTargetKinds: method(external_exports.object({}), external_exports.array(TargetKindSchema)),
|
|
26397
|
+
listTargets: method(external_exports.object({}), external_exports.array(TargetSchema)),
|
|
26398
|
+
discoverTargets: method(external_exports.object({
|
|
26399
|
+
kind: external_exports.string(),
|
|
26400
|
+
config: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
|
|
26401
|
+
}), external_exports.array(DiscoveredTargetSchema)),
|
|
26402
|
+
send: method(external_exports.object({
|
|
26403
|
+
targetId: external_exports.string(),
|
|
26404
|
+
notification: NotificationSchema
|
|
26405
|
+
}), SendResultSchema, { kind: "mutation" }),
|
|
26406
|
+
testTarget: method(external_exports.object({
|
|
26407
|
+
targetId: external_exports.string(),
|
|
26408
|
+
sample: NotificationSchema.optional()
|
|
26409
|
+
}), TestResultSchema, { kind: "mutation" }),
|
|
26410
|
+
upsertTarget: method(external_exports.object({ target: TargetSchema }), TargetSchema, { kind: "mutation" }),
|
|
26411
|
+
deleteTarget: method(external_exports.object({ targetId: external_exports.string() }), external_exports.void(), { kind: "mutation" }),
|
|
26412
|
+
setTargetEnabled: method(external_exports.object({
|
|
26413
|
+
targetId: external_exports.string(),
|
|
26414
|
+
enabled: external_exports.boolean()
|
|
26415
|
+
}), external_exports.void(), { kind: "mutation" })
|
|
25912
26416
|
}
|
|
25913
26417
|
};
|
|
25914
26418
|
var MethodAccessSchema = external_exports.enum([
|
|
@@ -26597,7 +27101,14 @@ var pipelineAnalyticsCapability = {
|
|
|
26597
27101
|
eventId: external_exports.string(),
|
|
26598
27102
|
kind: MediaFileKindEnum.optional()
|
|
26599
27103
|
}), external_exports.array(MediaFileSchema).readonly()),
|
|
26600
|
-
|
|
27104
|
+
/** All media rows owned by a track. `kinds` narrows to a kind subset so a
|
|
27105
|
+
* client can fetch the SMALL display variants on open and pull the
|
|
27106
|
+
* multi-MB native variants only on demand (mirrors `getEventMedia.kind`).
|
|
27107
|
+
* Absent ⇒ every kind (back-compat). */
|
|
27108
|
+
getTrackMedia: method(external_exports.object({
|
|
27109
|
+
trackId: external_exports.string(),
|
|
27110
|
+
kinds: external_exports.array(MediaFileKindEnum).optional()
|
|
27111
|
+
}), external_exports.array(MediaFileSchema).readonly()),
|
|
26601
27112
|
/**
|
|
26602
27113
|
* Search object events by text query using CLIP cosine similarity.
|
|
26603
27114
|
* Encodes `text` via the `embedding-encoder` cap, queries the
|
|
@@ -26646,58 +27157,6 @@ var pipelineAnalyticsCapability = {
|
|
|
26646
27157
|
}) }
|
|
26647
27158
|
}
|
|
26648
27159
|
};
|
|
26649
|
-
var LEGACY_ICON = {
|
|
26650
|
-
motion: "motion",
|
|
26651
|
-
audio: "audio",
|
|
26652
|
-
person: "person",
|
|
26653
|
-
vehicle: "vehicle",
|
|
26654
|
-
animal: "animal",
|
|
26655
|
-
package: "package",
|
|
26656
|
-
door: "door",
|
|
26657
|
-
pir: "pir",
|
|
26658
|
-
smoke: "smoke",
|
|
26659
|
-
water: "water",
|
|
26660
|
-
button: "button",
|
|
26661
|
-
generic: "generic",
|
|
26662
|
-
gas: "smoke",
|
|
26663
|
-
vibration: "generic",
|
|
26664
|
-
tamper: "generic",
|
|
26665
|
-
presence: "person",
|
|
26666
|
-
lock: "generic",
|
|
26667
|
-
siren: "generic",
|
|
26668
|
-
switch: "generic",
|
|
26669
|
-
doorbell: "button"
|
|
26670
|
-
};
|
|
26671
|
-
function legacyIcon(iconId) {
|
|
26672
|
-
return LEGACY_ICON[iconId] ?? "generic";
|
|
26673
|
-
}
|
|
26674
|
-
var CAP_TO_KIND = {
|
|
26675
|
-
contact: "contact",
|
|
26676
|
-
motion: "motion-sensor",
|
|
26677
|
-
smoke: "smoke",
|
|
26678
|
-
flood: "flood",
|
|
26679
|
-
gas: "gas",
|
|
26680
|
-
"carbon-monoxide": "carbon-monoxide",
|
|
26681
|
-
vibration: "vibration",
|
|
26682
|
-
tamper: "tamper",
|
|
26683
|
-
presence: "presence",
|
|
26684
|
-
"enum-sensor": "enum-sensor",
|
|
26685
|
-
"event-emitter": "device-event",
|
|
26686
|
-
"lock-control": "lock",
|
|
26687
|
-
switch: "switch",
|
|
26688
|
-
button: "button",
|
|
26689
|
-
doorbell: "doorbell"
|
|
26690
|
-
};
|
|
26691
|
-
function buildDescriptor(capName, kind) {
|
|
26692
|
-
const t = EVENT_TAXONOMY[kind];
|
|
26693
|
-
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
26694
|
-
return {
|
|
26695
|
-
...t,
|
|
26696
|
-
icon: legacyIcon(t.iconId)
|
|
26697
|
-
};
|
|
26698
|
-
}
|
|
26699
|
-
var EVENT_KIND_BY_CAP = Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
26700
|
-
var EVENTFUL_CAP_NAMES = Object.keys(CAP_TO_KIND);
|
|
26701
27160
|
var CameraPipelineConfigSchema = external_exports.object({
|
|
26702
27161
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
26703
27162
|
steps: external_exports.array(PipelineStepInputSchema).readonly(),
|
|
@@ -27384,6 +27843,58 @@ var pipelineOrchestratorCapability = {
|
|
|
27384
27843
|
})
|
|
27385
27844
|
}
|
|
27386
27845
|
};
|
|
27846
|
+
var LEGACY_ICON = {
|
|
27847
|
+
motion: "motion",
|
|
27848
|
+
audio: "audio",
|
|
27849
|
+
person: "person",
|
|
27850
|
+
vehicle: "vehicle",
|
|
27851
|
+
animal: "animal",
|
|
27852
|
+
package: "package",
|
|
27853
|
+
door: "door",
|
|
27854
|
+
pir: "pir",
|
|
27855
|
+
smoke: "smoke",
|
|
27856
|
+
water: "water",
|
|
27857
|
+
button: "button",
|
|
27858
|
+
generic: "generic",
|
|
27859
|
+
gas: "smoke",
|
|
27860
|
+
vibration: "generic",
|
|
27861
|
+
tamper: "generic",
|
|
27862
|
+
presence: "person",
|
|
27863
|
+
lock: "generic",
|
|
27864
|
+
siren: "generic",
|
|
27865
|
+
switch: "generic",
|
|
27866
|
+
doorbell: "button"
|
|
27867
|
+
};
|
|
27868
|
+
function legacyIcon(iconId) {
|
|
27869
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
27870
|
+
}
|
|
27871
|
+
var CAP_TO_KIND = {
|
|
27872
|
+
contact: "contact",
|
|
27873
|
+
motion: "motion-sensor",
|
|
27874
|
+
smoke: "smoke",
|
|
27875
|
+
flood: "flood",
|
|
27876
|
+
gas: "gas",
|
|
27877
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
27878
|
+
vibration: "vibration",
|
|
27879
|
+
tamper: "tamper",
|
|
27880
|
+
presence: "presence",
|
|
27881
|
+
"enum-sensor": "enum-sensor",
|
|
27882
|
+
"event-emitter": "device-event",
|
|
27883
|
+
"lock-control": "lock",
|
|
27884
|
+
switch: "switch",
|
|
27885
|
+
button: "button",
|
|
27886
|
+
doorbell: "doorbell"
|
|
27887
|
+
};
|
|
27888
|
+
function buildDescriptor(capName, kind) {
|
|
27889
|
+
const t = EVENT_TAXONOMY[kind];
|
|
27890
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
27891
|
+
return {
|
|
27892
|
+
...t,
|
|
27893
|
+
icon: legacyIcon(t.iconId)
|
|
27894
|
+
};
|
|
27895
|
+
}
|
|
27896
|
+
var EVENT_KIND_BY_CAP = Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
27897
|
+
var EVENTFUL_CAP_NAMES = Object.keys(CAP_TO_KIND);
|
|
27387
27898
|
var ServerBootModeSchema = external_exports.enum([
|
|
27388
27899
|
"workspace",
|
|
27389
27900
|
"baked",
|
|
@@ -29104,7 +29615,28 @@ var FaceInfoSchema = external_exports.object({
|
|
|
29104
29615
|
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
29105
29616
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
29106
29617
|
* back to the inline `base64` face crop. */
|
|
29107
|
-
keyFrameMediaKey: external_exports.string().optional()
|
|
29618
|
+
keyFrameMediaKey: external_exports.string().optional(),
|
|
29619
|
+
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
29620
|
+
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
29621
|
+
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
29622
|
+
* faces that were never auto-recognized. */
|
|
29623
|
+
bestMatchScore: external_exports.number().optional(),
|
|
29624
|
+
/** Native-scale face short side (px) at recognition time, when the runner
|
|
29625
|
+
* measured it. Lets the UI flag low-resolution auto-assignments. Absent on
|
|
29626
|
+
* legacy rows / runners that reported no native measure. */
|
|
29627
|
+
nativeFaceShortSidePx: external_exports.number().optional(),
|
|
29628
|
+
/** SUGGESTED identity for this face — a plausible-but-not-confident match that
|
|
29629
|
+
* MISSED auto-assignment (cosine in the suggestion band, or above threshold
|
|
29630
|
+
* but blocked only by the recognition size floor). Mutually exclusive with
|
|
29631
|
+
* `recognizedIdentityId` (a suggestion is NEVER an assignment): the face stays
|
|
29632
|
+
* UNASSIGNED and everything else keeps treating it as unrecognized — the UI
|
|
29633
|
+
* merely offers a one-tap "is this <name>?" confirm. Absent on legacy rows and
|
|
29634
|
+
* on faces that were auto-assigned or below the suggestion band. (2026-07-24) */
|
|
29635
|
+
suggestedIdentityId: external_exports.string().optional(),
|
|
29636
|
+
/** Peak identity-match cosine (0..1) for `suggestedIdentityId`, captured at the
|
|
29637
|
+
* same moment as `bestMatchScore` (track peak, at close). Lets the UI rank /
|
|
29638
|
+
* badge suggestion confidence. Present iff `suggestedIdentityId` is. (2026-07-24) */
|
|
29639
|
+
suggestedMatchScore: external_exports.number().optional()
|
|
29108
29640
|
});
|
|
29109
29641
|
var FaceFilterEnum = external_exports.enum([
|
|
29110
29642
|
"unassigned",
|
|
@@ -31427,36 +31959,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
31427
31959
|
addonId: null,
|
|
31428
31960
|
access: "view"
|
|
31429
31961
|
},
|
|
31430
|
-
"advancedNotifier.deleteRule": {
|
|
31431
|
-
capName: "advanced-notifier",
|
|
31432
|
-
capScope: "system",
|
|
31433
|
-
addonId: null,
|
|
31434
|
-
access: "delete"
|
|
31435
|
-
},
|
|
31436
|
-
"advancedNotifier.getHistory": {
|
|
31437
|
-
capName: "advanced-notifier",
|
|
31438
|
-
capScope: "system",
|
|
31439
|
-
addonId: null,
|
|
31440
|
-
access: "view"
|
|
31441
|
-
},
|
|
31442
|
-
"advancedNotifier.getRules": {
|
|
31443
|
-
capName: "advanced-notifier",
|
|
31444
|
-
capScope: "system",
|
|
31445
|
-
addonId: null,
|
|
31446
|
-
access: "view"
|
|
31447
|
-
},
|
|
31448
|
-
"advancedNotifier.testRule": {
|
|
31449
|
-
capName: "advanced-notifier",
|
|
31450
|
-
capScope: "system",
|
|
31451
|
-
addonId: null,
|
|
31452
|
-
access: "create"
|
|
31453
|
-
},
|
|
31454
|
-
"advancedNotifier.upsertRule": {
|
|
31455
|
-
capName: "advanced-notifier",
|
|
31456
|
-
capScope: "system",
|
|
31457
|
-
addonId: null,
|
|
31458
|
-
access: "create"
|
|
31459
|
-
},
|
|
31460
31962
|
"alarmPanel.arm": {
|
|
31461
31963
|
capName: "alarm-panel",
|
|
31462
31964
|
capScope: "device",
|
|
@@ -33761,6 +34263,60 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
33761
34263
|
addonId: null,
|
|
33762
34264
|
access: "create"
|
|
33763
34265
|
},
|
|
34266
|
+
"notificationRules.createRule": {
|
|
34267
|
+
capName: "notification-rules",
|
|
34268
|
+
capScope: "system",
|
|
34269
|
+
addonId: null,
|
|
34270
|
+
access: "create"
|
|
34271
|
+
},
|
|
34272
|
+
"notificationRules.deleteRule": {
|
|
34273
|
+
capName: "notification-rules",
|
|
34274
|
+
capScope: "system",
|
|
34275
|
+
addonId: null,
|
|
34276
|
+
access: "delete"
|
|
34277
|
+
},
|
|
34278
|
+
"notificationRules.getConditionCatalog": {
|
|
34279
|
+
capName: "notification-rules",
|
|
34280
|
+
capScope: "system",
|
|
34281
|
+
addonId: null,
|
|
34282
|
+
access: "view"
|
|
34283
|
+
},
|
|
34284
|
+
"notificationRules.getHistory": {
|
|
34285
|
+
capName: "notification-rules",
|
|
34286
|
+
capScope: "system",
|
|
34287
|
+
addonId: null,
|
|
34288
|
+
access: "view"
|
|
34289
|
+
},
|
|
34290
|
+
"notificationRules.getRule": {
|
|
34291
|
+
capName: "notification-rules",
|
|
34292
|
+
capScope: "system",
|
|
34293
|
+
addonId: null,
|
|
34294
|
+
access: "view"
|
|
34295
|
+
},
|
|
34296
|
+
"notificationRules.listRules": {
|
|
34297
|
+
capName: "notification-rules",
|
|
34298
|
+
capScope: "system",
|
|
34299
|
+
addonId: null,
|
|
34300
|
+
access: "view"
|
|
34301
|
+
},
|
|
34302
|
+
"notificationRules.setRuleEnabled": {
|
|
34303
|
+
capName: "notification-rules",
|
|
34304
|
+
capScope: "system",
|
|
34305
|
+
addonId: null,
|
|
34306
|
+
access: "create"
|
|
34307
|
+
},
|
|
34308
|
+
"notificationRules.testRule": {
|
|
34309
|
+
capName: "notification-rules",
|
|
34310
|
+
capScope: "system",
|
|
34311
|
+
addonId: null,
|
|
34312
|
+
access: "create"
|
|
34313
|
+
},
|
|
34314
|
+
"notificationRules.updateRule": {
|
|
34315
|
+
capName: "notification-rules",
|
|
34316
|
+
capScope: "system",
|
|
34317
|
+
addonId: null,
|
|
34318
|
+
access: "create"
|
|
34319
|
+
},
|
|
33764
34320
|
"notifier.cancel": {
|
|
33765
34321
|
capName: "notifier",
|
|
33766
34322
|
capScope: "device",
|
|
@@ -35513,6 +36069,36 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
35513
36069
|
addonId: null,
|
|
35514
36070
|
access: "create"
|
|
35515
36071
|
},
|
|
36072
|
+
"terminalSession.close": {
|
|
36073
|
+
capName: "terminal-session",
|
|
36074
|
+
capScope: "system",
|
|
36075
|
+
addonId: null,
|
|
36076
|
+
access: "create"
|
|
36077
|
+
},
|
|
36078
|
+
"terminalSession.listProfiles": {
|
|
36079
|
+
capName: "terminal-session",
|
|
36080
|
+
capScope: "system",
|
|
36081
|
+
addonId: null,
|
|
36082
|
+
access: "view"
|
|
36083
|
+
},
|
|
36084
|
+
"terminalSession.listSessions": {
|
|
36085
|
+
capName: "terminal-session",
|
|
36086
|
+
capScope: "system",
|
|
36087
|
+
addonId: null,
|
|
36088
|
+
access: "view"
|
|
36089
|
+
},
|
|
36090
|
+
"terminalSession.openSession": {
|
|
36091
|
+
capName: "terminal-session",
|
|
36092
|
+
capScope: "system",
|
|
36093
|
+
addonId: null,
|
|
36094
|
+
access: "create"
|
|
36095
|
+
},
|
|
36096
|
+
"terminalSession.resize": {
|
|
36097
|
+
capName: "terminal-session",
|
|
36098
|
+
capScope: "system",
|
|
36099
|
+
addonId: null,
|
|
36100
|
+
access: "create"
|
|
36101
|
+
},
|
|
35516
36102
|
"toast.onToast": {
|
|
35517
36103
|
capName: "toast",
|
|
35518
36104
|
capScope: "system",
|