@camstack/addon-post-analysis 1.2.609 → 1.2.611

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (15) hide show
  1. package/dist/{clip-model-registry-BItfTZEx.mjs → clip-model-registry-3TQUwS_R.mjs} +391 -295
  2. package/dist/{clip-model-registry-B11yS32V.js → clip-model-registry-D1PS6-db.js} +396 -294
  3. package/dist/embedding-encoder/index.js +1 -1
  4. package/dist/embedding-encoder/index.mjs +1 -1
  5. package/dist/pipeline-analytics/_stub.js +2 -2
  6. package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-LGLlz5Sk.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-D_6mbip_.mjs} +3 -3
  7. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BX7AfZj6.mjs +26 -0
  8. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DZcBAOjR.mjs +26 -0
  9. package/dist/pipeline-analytics/{hostInit-Cko0y33G.mjs → hostInit-Tp2cEslm.mjs} +3 -3
  10. package/dist/pipeline-analytics/index.js +72961 -72978
  11. package/dist/pipeline-analytics/index.mjs +85493 -85509
  12. package/dist/pipeline-analytics/remoteEntry.js +1 -1
  13. package/package.json +1 -1
  14. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-iXmJsQ9Y.mjs +0 -26
  15. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Cm7pZeMH.mjs +0 -26
@@ -5612,7 +5612,7 @@ var ZodIssueCode = {
5612
5612
  var ZodFirstPartyTypeKind;
5613
5613
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5614
5614
  //#endregion
5615
- //#region ../types/dist/sleep-BxjU_fJM.mjs
5615
+ //#region ../types/dist/sleep-yKL5gfrH.mjs
5616
5616
  /**
5617
5617
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5618
5618
  * window to float samples (D455).
@@ -7994,6 +7994,12 @@ function normalizeAddonInitResult(result) {
7994
7994
  if (Array.isArray(result)) return { providers: result };
7995
7995
  return result;
7996
7996
  }
7997
+ /**
7998
+ * The share-view scope kinds a share-link token can carry. The hub mints
7999
+ * and validates them (`ShareViewGrantSchema` builds its
8000
+ * enum from this list); a data plane names the kinds it ACCEPTS in `share`.
8001
+ */
8002
+ var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
7997
8003
  /** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
7998
8004
  var PeerBytesTicketSchema = object({
7999
8005
  /** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
@@ -13947,6 +13953,280 @@ var ConvertResultSchema = object({
13947
13953
  files: array(string()).readonly()
13948
13954
  })).readonly()
13949
13955
  });
13956
+ /**
13957
+ * Zod schemas for persisted record types.
13958
+ *
13959
+ * These schemas serve as the single source of truth for types that are
13960
+ * stored in the settings-store backend and retrieved via tRPC. They
13961
+ * replace the manual TypeScript interfaces with schema-derived types,
13962
+ * enabling runtime validation when reading from the backend.
13963
+ *
13964
+ * Convention: each schema is named `<Type>Schema`, the inferred TS type
13965
+ * keeps the original name for backward compatibility.
13966
+ */
13967
+ /**
13968
+ * Auth model (v2 — 2026-05-12 caps-only):
13969
+ *
13970
+ * Two principals:
13971
+ * - `isAdmin: true` — full bypass. Admin scope set is ignored.
13972
+ * - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
13973
+ *
13974
+ * No role enum. There used to be `viewer / agent / scoped` and earlier
13975
+ * `super_admin` — collapsed onto the single boolean because every
13976
+ * non-admin caller is governed by the same scope-check rules; the
13977
+ * distinction was only ever used to route role-specific procedures
13978
+ * which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
13979
+ * with `isAdmin: false` + an explicit scope list.
13980
+ */
13981
+ /** Per-method access flavour. Materialised on every cap method via codegen. */
13982
+ var MethodAccessSchema = _enum([
13983
+ "view",
13984
+ "create",
13985
+ "delete"
13986
+ ]);
13987
+ /**
13988
+ * A single scope grant. Three forms — checked in matcher with OR
13989
+ * semantics; the first match decides whether the call passes:
13990
+ *
13991
+ * - `category` — broadest. `target: 'device' | 'system'` selects every
13992
+ * cap with the matching `scope` declaration. New caps inherit grants
13993
+ * automatically — adding a device cap to the codebase makes it
13994
+ * reachable to every user with `category:device [...]` without a
13995
+ * re-grant. Use this for "family viewer" / "operator" tiers.
13996
+ *
13997
+ * - `addon` — every cap that ships inside a given addon id. Niche;
13998
+ * useful when an integration needs to interact with one specific
13999
+ * addon's surface regardless of how many caps it exports.
14000
+ *
14001
+ * - `capability` — the most precise form. Single cap name. Use for
14002
+ * integration tokens where you want to grant `addons.installPackage`
14003
+ * and nothing else.
14004
+ *
14005
+ * `access` is REQUIRED with min 1 element. `admin` bypass is the
14006
+ * "give me everything" escape; there is no wildcard scope.
14007
+ */
14008
+ var AllowedProviderSchema = union([literal("*"), array(string())]);
14009
+ var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
14010
+ var CapScopeSchema = _enum(["device", "system"]);
14011
+ /**
14012
+ * DeviceSelector (scope model v3 — 2026-08-12).
14013
+ *
14014
+ * A `device` grant no longer carries a frozen list of deviceIds. It carries
14015
+ * a SELECTOR the matcher resolves against the live fleet, so the grant can be
14016
+ * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
14017
+ * AFTER the grant was minted — no re-grant, no re-login.
14018
+ *
14019
+ * - `all` — every device in the deployment. The broad viewer/operator
14020
+ * lever without a `category` grant (a `category` grant also covers device
14021
+ * caps that carry no deviceId; `all` is specifically the device set).
14022
+ * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
14023
+ * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
14024
+ * is NOT covered until the grant is edited.
14025
+ * - `types` — every device of a `DeviceType` (e.g. every `camera`).
14026
+ * DYNAMIC. A device that changes type, or a new device of the type,
14027
+ * re-resolves on the next request.
14028
+ * - `locations` — every device whose operator-assigned `location` label is
14029
+ * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
14030
+ * null/unset location matches NO `locations` selector.
14031
+ */
14032
+ var DeviceSelectorSchema = discriminatedUnion("kind", [
14033
+ object({ kind: literal("all") }),
14034
+ object({
14035
+ kind: literal("ids"),
14036
+ ids: array(number().int()).min(1)
14037
+ }),
14038
+ object({
14039
+ kind: literal("types"),
14040
+ types: array(_enum(DeviceType)).min(1)
14041
+ }),
14042
+ object({
14043
+ kind: literal("locations"),
14044
+ locations: array(string().min(1)).min(1)
14045
+ })
14046
+ ]);
14047
+ var DeviceTokenScopeSchema = object({
14048
+ type: literal("device"),
14049
+ /** The device SET this grant covers — resolved against the live fleet. */
14050
+ selector: DeviceSelectorSchema,
14051
+ access: array(MethodAccessSchema).min(1),
14052
+ /**
14053
+ * Whether a grant on a PARENT device transparently covers its accessory
14054
+ * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
14055
+ * Direction is parent → children ONLY.
14056
+ *
14057
+ * Absent → the matcher DERIVES it from the access flavour: `view`
14058
+ * inherits (a camera viewer sees the camera's accessories), `create` /
14059
+ * `delete` do NOT (actuating/removing a child is an explicit act the
14060
+ * operator must grant on the child, not inherit from the parent). Set it
14061
+ * explicitly to override that default per grant.
14062
+ */
14063
+ includeLinked: boolean().optional()
14064
+ });
14065
+ /**
14066
+ * v2 → v3 lazy migration. A pre-v3 `device` grant carried
14067
+ * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
14068
+ * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
14069
+ * EVERY parse path — stored records AND the JWT-carried scope arrays
14070
+ * normalised at the request boundary ({@link normalizeTokenScopes} in
14071
+ * `device-selector.ts`). Chosen over a one-time DB migration because a
14072
+ * migration cannot reach a JWT already in a client's hands; parse-time
14073
+ * migration covers both without a flag day. No cast — the raw object is read
14074
+ * through `Reflect.get` (its static type is `unknown`).
14075
+ */
14076
+ function migrateLegacyTokenScope(raw) {
14077
+ if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
14078
+ if (Reflect.get(raw, "type") !== "device") return raw;
14079
+ if (Reflect.get(raw, "selector") !== void 0) return raw;
14080
+ const targets = Reflect.get(raw, "targets");
14081
+ if (!Array.isArray(targets)) return raw;
14082
+ return {
14083
+ type: "device",
14084
+ selector: {
14085
+ kind: "ids",
14086
+ ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
14087
+ },
14088
+ access: Reflect.get(raw, "access")
14089
+ };
14090
+ }
14091
+ var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
14092
+ object({
14093
+ type: literal("category"),
14094
+ target: CapScopeSchema,
14095
+ access: array(MethodAccessSchema).min(1)
14096
+ }),
14097
+ object({
14098
+ type: literal("capability"),
14099
+ target: string(),
14100
+ access: array(MethodAccessSchema).min(1)
14101
+ }),
14102
+ object({
14103
+ type: literal("addon"),
14104
+ target: string(),
14105
+ access: array(MethodAccessSchema).min(1)
14106
+ }),
14107
+ DeviceTokenScopeSchema
14108
+ ]));
14109
+ object({
14110
+ id: string(),
14111
+ username: string(),
14112
+ passwordHash: string(),
14113
+ /**
14114
+ * Admin bypass. When true, the middleware skips the scope-access
14115
+ * check entirely. There is no other axis of privilege; the legacy
14116
+ * role enum collapsed onto this boolean in v2.
14117
+ */
14118
+ isAdmin: boolean().default(false),
14119
+ allowedProviders: AllowedProviderSchema,
14120
+ allowedDevices: AllowedDevicesSchema,
14121
+ /**
14122
+ * Scopes granted to this user. Admins bypass; their `scopes` is
14123
+ * ignored. Non-admins without scopes are locked out of every
14124
+ * protected call.
14125
+ */
14126
+ scopes: array(TokenScopeSchema).default([]),
14127
+ createdAt: number(),
14128
+ updatedAt: number()
14129
+ });
14130
+ object({
14131
+ id: string(),
14132
+ label: string(),
14133
+ isAdmin: boolean().default(false),
14134
+ allowedProviders: AllowedProviderSchema,
14135
+ allowedDevices: AllowedDevicesSchema,
14136
+ tokenHash: string(),
14137
+ tokenPrefix: string(),
14138
+ createdAt: number(),
14139
+ lastUsedAt: number().optional()
14140
+ });
14141
+ object({
14142
+ id: string(),
14143
+ userId: string(),
14144
+ name: string(),
14145
+ tokenHash: string(),
14146
+ tokenPrefix: string(),
14147
+ scopes: array(TokenScopeSchema),
14148
+ expiresAt: number().nullish(),
14149
+ lastUsedAt: number().nullish(),
14150
+ createdAt: number()
14151
+ });
14152
+ /** What a share-view grant lets its holder see. */
14153
+ var ShareViewGrantSchema = object({
14154
+ kind: _enum(SHARE_VIEW_KINDS),
14155
+ deviceIds: array(number().int().nonnegative()).min(1).max(64),
14156
+ /** Talk-back, opt-in at mint time; absent means off. */
14157
+ talk: boolean().optional()
14158
+ });
14159
+ var ShareViewScopeSchema = object({
14160
+ type: literal("share-view"),
14161
+ grant: ShareViewGrantSchema
14162
+ });
14163
+ var AddonRoutesScopeSchema = object({
14164
+ type: literal("addon-routes"),
14165
+ access: array(MethodAccessSchema).min(1)
14166
+ });
14167
+ var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
14168
+ var CredentialScopeSchema = union([
14169
+ literal("*"),
14170
+ ShareViewScopeSchema,
14171
+ AddonRoutesScopeSchema,
14172
+ PreferencesSelfScopeSchema,
14173
+ TokenScopeSchema
14174
+ ]);
14175
+ object({
14176
+ kind: literal("credential"),
14177
+ sub: string().min(1),
14178
+ jti: string().min(16),
14179
+ scopes: array(CredentialScopeSchema).min(1)
14180
+ });
14181
+ var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
14182
+ /** A namespace's value: a JSON object, opaque to the hub. */
14183
+ var PreferenceValueSchema = record(string(), unknown());
14184
+ var PreferenceDeviceIdSchema = string().min(1).max(64);
14185
+ /** A stored row, as the owner reads it. */
14186
+ var PreferenceRowSchema = object({
14187
+ namespace: PreferenceNamespaceSchema,
14188
+ value: PreferenceValueSchema,
14189
+ /** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
14190
+ revision: number().int().positive(),
14191
+ updatedAt: number().int(),
14192
+ /** The client id the last writer sent; `null` when it sent none. */
14193
+ updatedByDevice: PreferenceDeviceIdSchema.nullable()
14194
+ });
14195
+ object({
14196
+ /** Absent: every namespace the caller holds. */
14197
+ namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
14198
+ object({ rows: array(PreferenceRowSchema) });
14199
+ object({
14200
+ namespace: PreferenceNamespaceSchema,
14201
+ value: PreferenceValueSchema,
14202
+ /**
14203
+ * The revision the edit was based on. Absent: last write wins. `0`: the
14204
+ * namespace must not exist yet. Any other value that is not the current
14205
+ * revision answers `conflict` and writes nothing.
14206
+ */
14207
+ baseRevision: number().int().nonnegative().optional(),
14208
+ deviceId: PreferenceDeviceIdSchema.optional()
14209
+ });
14210
+ discriminatedUnion("status", [object({
14211
+ status: literal("saved"),
14212
+ row: PreferenceRowSchema
14213
+ }), object({
14214
+ status: literal("conflict"),
14215
+ current: PreferenceRowSchema.nullable()
14216
+ })]);
14217
+ object({ namespace: PreferenceNamespaceSchema });
14218
+ object({
14219
+ /** `false` when the namespace did not exist. */
14220
+ deleted: boolean() });
14221
+ object({
14222
+ /** The revision the client holds per namespace; a namespace it does not list is new to it. */
14223
+ revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
14224
+ object({
14225
+ /** Every row whose revision differs from the client's, and every row it did not list. */
14226
+ rows: array(PreferenceRowSchema),
14227
+ /** Namespaces the client listed that no longer exist. */
14228
+ deleted: array(PreferenceNamespaceSchema)
14229
+ });
13950
14230
  _enum(["new-session", "step-up"]);
13951
14231
  /** The languages the hub's app landing pages are written in (D858). */
13952
14232
  var AppPageLangSchema = _enum(["en", "it"]);
@@ -41269,38 +41549,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
41269
41549
  auth: "admin",
41270
41550
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
41271
41551
  });
41552
+ var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
41553
+ /** What a model (or, by default, every model of a kind) can do. */
41554
+ var LlmModelFeaturesSchema = object({
41555
+ vision: boolean(),
41556
+ tools: boolean(),
41557
+ streaming: boolean()
41558
+ });
41559
+ /** One model a provider offers. `features` overrides the kind's defaults, per field. */
41560
+ var LlmModelInfoSchema = object({
41561
+ id: string(),
41562
+ label: string().optional(),
41563
+ contextLength: number().int().positive().optional(),
41564
+ features: LlmModelFeaturesSchema.partial().optional()
41565
+ });
41272
41566
  /**
41273
- * `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
41274
- * methods concat-fan across providers; single-row methods route to ONE
41275
- * provider by the `addonId` in the call input (the notification-output
41276
- * posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
41277
- * (hub-placed); the cap stays open for future providers.
41278
- *
41279
- * Profiles are ROWS (data), not addons: one row = one usable model endpoint.
41280
- * `apiKey` is a password field — providers REDACT it on read and merge on
41281
- * write; a stored key NEVER round-trips to a client.
41567
+ * The provider-specific part of a profile, validated by the provider that owns
41568
+ * the kind (`upsertProfile` refuses what it does not accept). A field its
41569
+ * `connectionSchema` declares `type: 'password'` is a secret: it is held in the
41570
+ * keychain, never in the row, and reads back as the redaction marker.
41282
41571
  */
41283
- var LlmProfileKindSchema = _enum([
41284
- "openai-compatible",
41285
- "openai",
41286
- "anthropic",
41287
- "google",
41288
- "managed-local",
41289
- "apple-foundation"
41290
- ]);
41572
+ var LlmProviderConfigSchema = record(string(), unknown());
41291
41573
  var LlmProfileSchema = object({
41292
41574
  id: string(),
41293
41575
  name: string(),
41576
+ /** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
41294
41577
  kind: LlmProfileKindSchema,
41295
41578
  /** Stamped by the provider — keeps the fanned catalog routable. */
41296
41579
  addonId: string(),
41297
41580
  enabled: boolean(),
41298
41581
  /** Vendor model id, or the managed runtime's loaded model. */
41299
41582
  model: string(),
41300
- /** Required for openai-compatible; override for cloud kinds. */
41301
- baseUrl: string().optional(),
41302
- /** ConfigUISchema type:'password' — never round-trips (spec §5). */
41303
- apiKey: string().optional(),
41304
41583
  /** Vision on/off. A vision call against a `false` profile is REFUSED, never
41305
41584
  * degraded to text — that shipped once and produced a confident answer to a
41306
41585
  * question about a picture nobody sent. */
@@ -41308,15 +41587,11 @@ var LlmProfileSchema = object({
41308
41587
  temperature: number().min(0).max(2).optional(),
41309
41588
  /** Nucleus sampling. Every wire we speak has it. */
41310
41589
  topP: number().min(0).max(1).optional(),
41311
- /** Top-k sampling. Carried only by the wires that have it — NEITHER OpenAI
41312
- * wire does, and the client drops it there (measured: the request body gets
41313
- * `top_p` and no `top_k`). The profile editor hides the field wherever it
41314
- * would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
41590
+ /** Top-k sampling. Carried only by the wires that have it — a kind offers the
41591
+ * field in its editor only when its descriptor lists it in `profileFields`. */
41315
41592
  topK: number().int().positive().optional(),
41316
41593
  maxTokens: number().int().positive().optional(),
41317
- /** Prompt context window. Advisory for cloud kinds (they enforce their own);
41318
- * for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
41319
- * the model with, so it is the one field that changes a PROCESS. */
41594
+ /** Prompt context window. Advisory for cloud kinds (they enforce their own). */
41320
41595
  contextLength: number().int().positive().optional(),
41321
41596
  /** Default system prompt. A caller's `system` REPLACES it (never appends —
41322
41597
  * two system prompts fighting is worse than either alone). */
@@ -41342,16 +41617,37 @@ var LlmProfileSchema = object({
41342
41617
  * library; the REGISTRY of callable tools is ours and is empty in v1, so a
41343
41618
  * `true` here buys the wiring, not behaviour, until tools are registered. */
41344
41619
  toolsEnabled: boolean().default(false),
41345
- extraHeaders: record(string(), string()).optional(),
41346
- /** kind === 'managed-local' only (spec §4). */
41347
- runtime: ManagedRuntimeConfigSchema.optional(),
41348
- /**
41349
- * kind === 'apple-foundation' only: WHERE it runs — the only thing there is
41350
- * to configure (no key, no URL, no download; `model` is `apple-system`).
41351
- * `supportsVision` on such a row is stamped by the provider from the node's
41352
- * reported `imageInput`, never taken from the operator (D62).
41353
- */
41354
- appleFoundation: object({ nodeId: string() }).optional()
41620
+ /** Everything the kind's provider owns (endpoint, key, node, runtime…). */
41621
+ providerConfig: LlmProviderConfigSchema.default({})
41622
+ });
41623
+ /**
41624
+ * The common profile fields a kind's editor offers. The editor owns how each
41625
+ * one is drawn; the provider says which of them mean something on its wire.
41626
+ */
41627
+ var LlmProfileFieldSchema = _enum([
41628
+ "temperature",
41629
+ "topP",
41630
+ "topK",
41631
+ "maxTokens",
41632
+ "contextLength",
41633
+ "systemPrompt",
41634
+ "timeoutMs",
41635
+ "connectTimeoutMs",
41636
+ "firstTokenTimeoutMs",
41637
+ "idleTimeoutMs",
41638
+ "retry",
41639
+ "toolsEnabled"
41640
+ ]);
41641
+ /**
41642
+ * A provider-drawn part of the editor, by a generic widget id the admin UI
41643
+ * registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
41644
+ * picker: that widget owns the model choice.
41645
+ */
41646
+ var LlmProviderWidgetSchema = object({
41647
+ id: string(),
41648
+ placement: _enum(["connection", "model"]),
41649
+ /** `providerConfig` keys this widget must fill before the profile can be saved. */
41650
+ requires: array(string()).optional()
41355
41651
  });
41356
41652
  /** ConfigUISchema tree passed through untyped on the wire (the
41357
41653
  * notification-output `ConfigSchemaPassthrough` precedent at
@@ -41360,11 +41656,56 @@ var ConfigSchemaPassthrough$3 = unknown();
41360
41656
  var LlmProfileKindDescriptorSchema = object({
41361
41657
  kind: LlmProfileKindSchema,
41362
41658
  label: string(),
41659
+ /** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
41363
41660
  icon: string(),
41364
41661
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
41365
41662
  addonId: string(),
41366
- configSchema: ConfigSchemaPassthrough$3
41663
+ /** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
41664
+ connectionSchema: ConfigSchemaPassthrough$3,
41665
+ /** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
41666
+ advancedSchema: ConfigSchemaPassthrough$3.optional(),
41667
+ /** The kind's defaults; a model from `listModels` may override any of them. */
41668
+ features: LlmModelFeaturesSchema,
41669
+ /** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
41670
+ visionEditable: boolean(),
41671
+ /** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
41672
+ modelCatalog: _enum([
41673
+ "fetch",
41674
+ "static",
41675
+ "none"
41676
+ ]),
41677
+ staticModels: array(LlmModelInfoSchema).optional(),
41678
+ /** The common fields that mean something on this kind's wire. */
41679
+ profileFields: array(LlmProfileFieldSchema),
41680
+ providerWidgets: array(LlmProviderWidgetSchema).optional()
41681
+ });
41682
+ /**
41683
+ * `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
41684
+ * (the editor's form); with `profileId` too, a secret the draft leaves
41685
+ * untouched (absent or the redaction marker) is resolved server-side from the
41686
+ * stored profile — the browser never receives it.
41687
+ */
41688
+ var LlmListModelsInputSchema = object({
41689
+ addonId: string(),
41690
+ kind: LlmProfileKindSchema,
41691
+ profileId: string().optional(),
41692
+ connection: LlmProviderConfigSchema.optional()
41367
41693
  });
41694
+ var LlmListModelsErrorCodeSchema = _enum([
41695
+ "auth",
41696
+ "network",
41697
+ "unsupported",
41698
+ "invalid"
41699
+ ]);
41700
+ /** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
41701
+ var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
41702
+ ok: literal(true),
41703
+ models: array(LlmModelInfoSchema)
41704
+ }), object({
41705
+ ok: literal(false),
41706
+ code: LlmListModelsErrorCodeSchema,
41707
+ message: string()
41708
+ })]);
41368
41709
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
41369
41710
  var LlmDefaultSchema = object({
41370
41711
  selector: LlmDefaultSelectorSchema,
@@ -41464,7 +41805,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
41464
41805
  kind: "mutation",
41465
41806
  auth: "admin",
41466
41807
  timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
41467
- }), method(ProfileRefInputSchema, array(string())), method(object({}), array(LlmDefaultSchema)), method(object({
41808
+ }), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
41809
+ kind: "mutation",
41810
+ auth: "admin"
41811
+ }), method(object({}), array(LlmDefaultSchema)), method(object({
41468
41812
  selector: LlmDefaultSelectorSchema,
41469
41813
  profileId: string().nullable()
41470
41814
  }), _void(), {
@@ -46493,202 +46837,6 @@ var notificationRulesCapability = {
46493
46837
  }
46494
46838
  };
46495
46839
  /**
46496
- * Zod schemas for persisted record types.
46497
- *
46498
- * These schemas serve as the single source of truth for types that are
46499
- * stored in the settings-store backend and retrieved via tRPC. They
46500
- * replace the manual TypeScript interfaces with schema-derived types,
46501
- * enabling runtime validation when reading from the backend.
46502
- *
46503
- * Convention: each schema is named `<Type>Schema`, the inferred TS type
46504
- * keeps the original name for backward compatibility.
46505
- */
46506
- /**
46507
- * Auth model (v2 — 2026-05-12 caps-only):
46508
- *
46509
- * Two principals:
46510
- * - `isAdmin: true` — full bypass. Admin scope set is ignored.
46511
- * - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
46512
- *
46513
- * No role enum. There used to be `viewer / agent / scoped` and earlier
46514
- * `super_admin` — collapsed onto the single boolean because every
46515
- * non-admin caller is governed by the same scope-check rules; the
46516
- * distinction was only ever used to route role-specific procedures
46517
- * which we no longer have. CLI / webhook integrations are `cst_*` tokens
46518
- * with `isAdmin: false` + an explicit scope list.
46519
- */
46520
- /** Per-method access flavour. Materialised on every cap method via codegen. */
46521
- var MethodAccessSchema = _enum([
46522
- "view",
46523
- "create",
46524
- "delete"
46525
- ]);
46526
- /**
46527
- * A single scope grant. Three forms — checked in matcher with OR
46528
- * semantics; the first match decides whether the call passes:
46529
- *
46530
- * - `category` — broadest. `target: 'device' | 'system'` selects every
46531
- * cap with the matching `scope` declaration. New caps inherit grants
46532
- * automatically — adding a device cap to the codebase makes it
46533
- * reachable to every user with `category:device [...]` without a
46534
- * re-grant. Use this for "family viewer" / "operator" tiers.
46535
- *
46536
- * - `addon` — every cap that ships inside a given addon id. Niche;
46537
- * useful when an integration needs to interact with one specific
46538
- * addon's surface regardless of how many caps it exports.
46539
- *
46540
- * - `capability` — the most precise form. Single cap name. Use for
46541
- * integration tokens where you want to grant `addons.installPackage`
46542
- * and nothing else.
46543
- *
46544
- * `access` is REQUIRED with min 1 element. `admin` bypass is the
46545
- * "give me everything" escape; there is no wildcard scope.
46546
- */
46547
- var AllowedProviderSchema = union([literal("*"), array(string())]);
46548
- var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
46549
- var CapScopeSchema = _enum(["device", "system"]);
46550
- /**
46551
- * DeviceSelector (scope model v3 — 2026-08-12).
46552
- *
46553
- * A `device` grant no longer carries a frozen list of deviceIds. It carries
46554
- * a SELECTOR the matcher resolves against the live fleet, so the grant can be
46555
- * DYNAMIC: a `types:['camera']` selector automatically covers a camera added
46556
- * AFTER the grant was minted — no re-grant, no re-login.
46557
- *
46558
- * - `all` — every device in the deployment. The broad viewer/operator
46559
- * lever without a `category` grant (a `category` grant also covers device
46560
- * caps that carry no deviceId; `all` is specifically the device set).
46561
- * - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
46562
- * grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
46563
- * is NOT covered until the grant is edited.
46564
- * - `types` — every device of a `DeviceType` (e.g. every `camera`).
46565
- * DYNAMIC. A device that changes type, or a new device of the type,
46566
- * re-resolves on the next request.
46567
- * - `locations` — every device whose operator-assigned `location` label is
46568
- * in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
46569
- * null/unset location matches NO `locations` selector.
46570
- */
46571
- var DeviceSelectorSchema = discriminatedUnion("kind", [
46572
- object({ kind: literal("all") }),
46573
- object({
46574
- kind: literal("ids"),
46575
- ids: array(number().int()).min(1)
46576
- }),
46577
- object({
46578
- kind: literal("types"),
46579
- types: array(_enum(DeviceType)).min(1)
46580
- }),
46581
- object({
46582
- kind: literal("locations"),
46583
- locations: array(string().min(1)).min(1)
46584
- })
46585
- ]);
46586
- var DeviceTokenScopeSchema = object({
46587
- type: literal("device"),
46588
- /** The device SET this grant covers — resolved against the live fleet. */
46589
- selector: DeviceSelectorSchema,
46590
- access: array(MethodAccessSchema).min(1),
46591
- /**
46592
- * Whether a grant on a PARENT device transparently covers its accessory
46593
- * CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
46594
- * Direction is parent → children ONLY.
46595
- *
46596
- * Absent → the matcher DERIVES it from the access flavour: `view`
46597
- * inherits (a camera viewer sees the camera's accessories), `create` /
46598
- * `delete` do NOT (actuating/removing a child is an explicit act the
46599
- * operator must grant on the child, not inherit from the parent). Set it
46600
- * explicitly to override that default per grant.
46601
- */
46602
- includeLinked: boolean().optional()
46603
- });
46604
- /**
46605
- * v2 → v3 lazy migration. A pre-v3 `device` grant carried
46606
- * `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
46607
- * `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
46608
- * EVERY parse path — stored records AND the JWT-carried scope arrays
46609
- * normalised at the request boundary ({@link normalizeTokenScopes} in
46610
- * `device-selector.ts`). Chosen over a one-time DB migration because a
46611
- * migration cannot reach a JWT already in a client's hands; parse-time
46612
- * migration covers both without a flag day. No cast — the raw object is read
46613
- * through `Reflect.get` (its static type is `unknown`).
46614
- */
46615
- function migrateLegacyTokenScope(raw) {
46616
- if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
46617
- if (Reflect.get(raw, "type") !== "device") return raw;
46618
- if (Reflect.get(raw, "selector") !== void 0) return raw;
46619
- const targets = Reflect.get(raw, "targets");
46620
- if (!Array.isArray(targets)) return raw;
46621
- return {
46622
- type: "device",
46623
- selector: {
46624
- kind: "ids",
46625
- ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
46626
- },
46627
- access: Reflect.get(raw, "access")
46628
- };
46629
- }
46630
- var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
46631
- object({
46632
- type: literal("category"),
46633
- target: CapScopeSchema,
46634
- access: array(MethodAccessSchema).min(1)
46635
- }),
46636
- object({
46637
- type: literal("capability"),
46638
- target: string(),
46639
- access: array(MethodAccessSchema).min(1)
46640
- }),
46641
- object({
46642
- type: literal("addon"),
46643
- target: string(),
46644
- access: array(MethodAccessSchema).min(1)
46645
- }),
46646
- DeviceTokenScopeSchema
46647
- ]));
46648
- object({
46649
- id: string(),
46650
- username: string(),
46651
- passwordHash: string(),
46652
- /**
46653
- * Admin bypass. When true, the middleware skips the scope-access
46654
- * check entirely. There is no other axis of privilege; the legacy
46655
- * role enum collapsed onto this boolean in v2.
46656
- */
46657
- isAdmin: boolean().default(false),
46658
- allowedProviders: AllowedProviderSchema,
46659
- allowedDevices: AllowedDevicesSchema,
46660
- /**
46661
- * Scopes granted to this user. Admins bypass; their `scopes` is
46662
- * ignored. Non-admins without scopes are locked out of every
46663
- * protected call.
46664
- */
46665
- scopes: array(TokenScopeSchema).default([]),
46666
- createdAt: number(),
46667
- updatedAt: number()
46668
- });
46669
- object({
46670
- id: string(),
46671
- label: string(),
46672
- isAdmin: boolean().default(false),
46673
- allowedProviders: AllowedProviderSchema,
46674
- allowedDevices: AllowedDevicesSchema,
46675
- tokenHash: string(),
46676
- tokenPrefix: string(),
46677
- createdAt: number(),
46678
- lastUsedAt: number().optional()
46679
- });
46680
- object({
46681
- id: string(),
46682
- userId: string(),
46683
- name: string(),
46684
- tokenHash: string(),
46685
- tokenPrefix: string(),
46686
- scopes: array(TokenScopeSchema),
46687
- expiresAt: number().nullish(),
46688
- lastUsedAt: number().nullish(),
46689
- createdAt: number()
46690
- });
46691
- /**
46692
46840
  * `oauth-integration` — a collection cap by which an addon declares
46693
46841
  * itself a linkable OAuth client of the hub's core `/oauth2/*` server.
46694
46842
  * Each provider returns a static descriptor; the core enumerates them
@@ -67635,26 +67783,6 @@ var ApiKeySummarySchema = object({
67635
67783
  createdAt: number(),
67636
67784
  lastUsedAt: number().optional()
67637
67785
  });
67638
- var ScopedTokenSummarySchema = object({
67639
- id: string(),
67640
- userId: string(),
67641
- name: string(),
67642
- tokenPrefix: string(),
67643
- scopes: array(TokenScopeSchema),
67644
- expiresAt: number().nullish(),
67645
- lastUsedAt: number().nullish(),
67646
- createdAt: number()
67647
- });
67648
- var CreateScopedTokenInputSchema = object({
67649
- userId: string(),
67650
- name: string(),
67651
- scopes: array(TokenScopeSchema),
67652
- expiresAt: number().optional()
67653
- });
67654
- var CreateScopedTokenResultSchema = object({
67655
- token: string(),
67656
- record: ScopedTokenSummarySchema
67657
- });
67658
67786
  var OauthSessionSummarySchema = object({
67659
67787
  id: string(),
67660
67788
  userId: string(),
@@ -67676,11 +67804,11 @@ var TotpStatusSchema = object({
67676
67804
  confirmedAt: number().nullable()
67677
67805
  });
67678
67806
  /**
67679
- * user-management — singleton capability for user accounts, API keys,
67680
- * and scoped tokens.
67807
+ * user-management — singleton capability for user accounts and the
67808
+ * legacy API-key rows.
67681
67809
  *
67682
67810
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
67683
- * — the subset check on `setUserScopes` / `createScopedToken` is moot
67811
+ * — the subset check on `setUserScopes` is moot
67684
67812
  * because non-admins never reach these. If/when we open non-admin
67685
67813
  * delegation, structural caller-scope subset check goes inside the
67686
67814
  * provider.
@@ -67737,15 +67865,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
67737
67865
  kind: "mutation",
67738
67866
  auth: "admin",
67739
67867
  access: "delete"
67740
- }), method(CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, {
67741
- kind: "mutation",
67742
- auth: "admin",
67743
- access: "create"
67744
- }), method(object({ id: string() }), object({ success: literal(true) }), {
67745
- kind: "mutation",
67746
- auth: "admin",
67747
- access: "delete"
67748
- }), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
67868
+ }), method(object({ userId: string() }), TotpSetupResultSchema, {
67749
67869
  kind: "mutation",
67750
67870
  auth: "admin",
67751
67871
  access: "create"
@@ -73405,7 +73525,7 @@ Object.freeze({
73405
73525
  capName: "llm",
73406
73526
  capScope: "system",
73407
73527
  addonId: null,
73408
- access: "view"
73528
+ access: "create"
73409
73529
  },
73410
73530
  "llm.listNodeModels": {
73411
73531
  capName: "llm",
@@ -78069,12 +78189,6 @@ Object.freeze({
78069
78189
  addonId: null,
78070
78190
  access: "create"
78071
78191
  },
78072
- "userManagement.createScopedToken": {
78073
- capName: "user-management",
78074
- capScope: "system",
78075
- addonId: null,
78076
- access: "create"
78077
- },
78078
78192
  "userManagement.createUser": {
78079
78193
  capName: "user-management",
78080
78194
  capScope: "system",
@@ -78123,12 +78237,6 @@ Object.freeze({
78123
78237
  addonId: null,
78124
78238
  access: "view"
78125
78239
  },
78126
- "userManagement.listScopedTokens": {
78127
- capName: "user-management",
78128
- capScope: "system",
78129
- addonId: null,
78130
- access: "view"
78131
- },
78132
78240
  "userManagement.listUsers": {
78133
78241
  capName: "user-management",
78134
78242
  capScope: "system",
@@ -78183,12 +78291,6 @@ Object.freeze({
78183
78291
  addonId: null,
78184
78292
  access: "delete"
78185
78293
  },
78186
- "userManagement.revokeScopedToken": {
78187
- capName: "user-management",
78188
- capScope: "system",
78189
- addonId: null,
78190
- access: "delete"
78191
- },
78192
78294
  "userManagement.setupTotp": {
78193
78295
  capName: "user-management",
78194
78296
  capScope: "system",
@@ -78219,12 +78321,6 @@ Object.freeze({
78219
78321
  addonId: null,
78220
78322
  access: "view"
78221
78323
  },
78222
- "userManagement.validateScopedToken": {
78223
- capName: "user-management",
78224
- capScope: "system",
78225
- addonId: null,
78226
- access: "view"
78227
- },
78228
78324
  "userManagement.verifyTotp": {
78229
78325
  capName: "user-management",
78230
78326
  capScope: "system",
@@ -85777,4 +85873,4 @@ function buildClipModelRegistry(entries) {
85777
85873
  /** The built-in catalog's registry. */
85778
85874
  var BUILTIN_CLIP_MODELS = buildClipModelRegistry(CLIP_IMAGE_MODELS);
85779
85875
  //#endregion
85780
- export { MediaFileKindEnum as $, boolean as $i, coreBlockIdFromAddonId as $n, readTimelapseGeneratedAt as $r, NcTemplateVarDescriptorSchema as $t, DeclaredDevices as A, viewerLinkBaseOf as Ai, TrackSideSchema as An, isEventOwnerType as Ar, NcAlarmSensorsInputSchema as At, FULL_IMAGE_BBOX as B, RECORD_MAX_DATA_BYTES as Bi, applyModeDelaysEdits as Bn, kebabToCamel as Br, NcRuleSchema as Bt, ClearTrackRelationResultSchema as C, systemEventFamilyProblems as Ci, TRACK_RELATIONS_DEFAULT_LIMIT as Cn, isAlertEpisodeOpen as Cr, NC_SNOOZE_MAX_MINUTES as Ct, DEFAULT_TIMELAPSE_PREVIEW_TEXT as D, templateCarriesSummary as Di, TrackPuritySchema as Dn, isDefaultAlarmProfileId as Dr, NC_TEMPLATE_VARS as Dt, DEFAULT_EVENT_COLOR as E, systemEventSummarySplitOf as Ei, TimelapseRuleSchema as En, isAudioClassName as Er, NC_TAXONOMY as Et, EVENT_DENSITY_BATCH_MAX as F, isSourceCap as Fi, alarmPanelCapability as Fn, isRootSuppliableStepId as Fr, NcLegacyRuleActionSequenceSchema as Ft, ListTrackRelationsResultSchema as G, hydrateSchema as Gi, audioMetricsCapability as Gn, occupancyScope as Gr, NcSnoozeInputSchema as Gt, LABEL_SUPPLY_MACRO as H, customAction as Hi, applySecureOnArmEdit as Hn, mayWriteToLocation as Hr, NcRuleUpdateInputSchema as Ht, EVENT_KIND_BY_CAP as I, DeviceType as Ii, alertEpisodeId as In, isScheduleActive as Ir, NcRuleActionSchema as It, MAX_BIRTH_DECISION_RECORDS as J, normalizeNodeId as Ji, buildViewerLink as Jn, pickFaceRescoreIntervalMinutes as Jr, NcStateSummarySectionIdSchema as Jt, LockStateSchema as K, isDeviceScopedCap as Ki, audioModeOf as Kn, parseAlertEpisodePayload as Kr, NcSnoozeSchema as Kt, EVENT_OWNER_TYPES as L, errMsg as Li, alertEpisodeKind as Ln, isSystemDelivery as Lr, NcRuleActionsSchema as Lt, EMBEDDING_MODEL_FAILED as M, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as Mi, activateAlarmProfile as Mn, isLabelSupplyStepId as Mr, NcAlarmSettingsPatchSchema as Mt, EMBEDDING_REQUIREMENTS_FAILED as N, canonicalHash as Ni, addonWidgetsSourceCapability as Nn, isMediaOwnerType as Nr, NcConditionDescriptorSchema as Nt, DETECTION_MACRO_CLASSES as O, templateVarsFor as Oi, TrackRelationKindSchema as On, isDetectionMacroClass as Or, NcAlarmConfigSchema as Ot, EMBEDDING_REQUIREMENTS_UNAVAILABLE as P, evaluateSensorEdge as Pi, alarmDeviceSecureOnArm as Pn, isRetiredClearKey as Pr, NcConditionsSchema as Pt, MOTION_CLOSE_AFTER_MS as Q, array as Qi, consumableLowPercentOf as Qn, readMotionTriggeredBy as Qr, NcTemplatePreviewSchema as Qt, EXPORT_DENSE_MAX_RANGES as R, BaseAddon as Ri, alertEpisodePayload as Rn, isSystemEventSummaryRule as Rr, NcRuleInputSchema as Rt, ClearTrackRelationInputSchema as S, systemEventDeliveryProblems as Si, TIMELAPSE_DENSE_FLOOR_SEC as Sn, isAlarmControllableCap as Sr, NC_SENSOR_TRANSITION_KINDS as St, DEFAULT_DETAIL_CROP_CONVENTION as T, systemEventSummaryScheduleOf as Ti, TimelapseRulePatchSchema as Tn, isAppLinkBase as Tr, NC_TANK_SYSTEM_EVENT_KINDS as Tt, LabelAttributionSchema as U, defineCustomActions as Ui, armRemovalReconcile as Un, memoizePinnedFfmpeg as Ur, NcScheduleSchema as Ut, FailureCounters as V, createEvent as Vi, applyNonBlockingEdit as Vn, linkedStepOf as Vr, NcRuleTargetSchema as Vt, ListTrackRelationsInputSchema as W, defineRecordKinds as Wi, assertTimelapseCadences as Wn, notificationRulesCapability as Wr, NcSharedSequenceSchema as Wt, MAX_TRACK_PURITIES as X, ZodObject as Xi, classifyRetrainReview as Xn, plateGalleryCapability as Xr, NcTaxonomySchema as Xt, MAX_BIRTH_LATENCY_PROXY_MS as Y, sleep as Yi, calendarEventLocalSpan as Yn, pipelineAnalyticsCapability as Yr, NcSystemEventKindSchema as Yt, MAX_TRACK_RELATIONS as Z, _enum as Zi, cloneAlarmSettings as Zn, readDeviceStateFrom as Zr, NcTemplatePreviewInputSchema as Zt, BIRTH_DECISION_DEFAULT_LIMIT as _, startMoverUnderClearance as _i, SCENE_RESET_RECAPTURES as _n, evictionPolicyOfLocation as _r, NC_CONSUMABLE_SYSTEM_EVENT_KINDS as _t, CLIP_EMBEDDING_STEP_ID as a, partialRecord as aa, resolvePoolMemoryPolicy as ai, RebuildObjectEmbeddingsRefusalSchema as an, deriveRecordingMode as ar, NC_ALARM_NOTIFY_FIELDS as at, BucketAccumulator as b, summarizeReview as bi, SetTrackPurityResultSchema as bn, gifDeriveSpeed as br, NC_GROUPING_MAX_SEC as bt, readClusterModelPinStrict as c, string as ca, ruleAutoTriggersAlarm as ci, RetrainStatusSchema as cn, deviceRemovalHookCapability as cr, NC_AUDIO_CONFIRM_HITS_DEFAULT as ct, APPEARANCE_BLOCKS as d, union as da, ruleGroupingApplies as di, SCENE_DEFAULT_ANCHOR_THRESHOLD as dn, embeddingRefusalOf as dr, NC_CLIP_PRE_ROLL_DEFAULT_SEC as dt, discriminatedUnion as ea, renameAlarmProfile as ei, OPS_LOG_DEFAULT_LIMIT as en, cosineSimilarity as er, MotionTriggeredBySchema as et, APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT as f, unknown as fa, ruleKindOf as fi, SCENE_DEFAULT_CHECK_INTERVAL_SEC as fn, embeddingRequirementsFailedError as fr, NC_CLIP_RETENTION_MAX_SEC as ft, ArchivedDebugNoteSchema as g, servedTemplateVars as gi, SCENE_DIVERGED as gn, eventKindLabel as gr, NC_CONSUMABLE_LOW_PERCENT_DEFAULT as gt, AlarmArmModeSchema as h, sensorRaisedOf as hi, SCENE_DEFAULT_UNCOVERED_POLICY as hn, ensureAlarmProfiles as hr, NC_CONFIRM_DEFAULT_TIMEOUT_MS as ht, CLIP_TEXT_MODELS as i, object as ia, resolveModeNotifyPolicy as ii, RECORDING_SOURCE_CAMSTACK_ADDON as in, derivePostTriggeredAction as ir, NC_ALARM_DELAY_MAX_SEC as it, DetectionSourceSchema as j, zoneAnalyticsCapability as ji, TrackSourceSchema as jn, isKnownTemplateVar as jr, NcAlarmSensorsSchema as jt, DETECTION_PIPELINE_CAP_NAME as k, vectorDimFromBase64 as ki, TrackRelationSchema as kn, isEventKindLabelKey as kr, NcAlarmPostTriggeredActionSchema as kt, resolveClusterModelPin as l, templateLiteral as la, ruleBelongsToAlarm as li, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX as ln, embeddingEncoderCapability as lr, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT as lt, AUDIO_MACRO_LABELS as m, secureActuationFor as mi, SCENE_DEFAULT_QUIET_SECONDS as mn, encodeVectorBase64 as mr, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX as mt, DEFAULT_CLIP_MODEL as n, looseObject as na, resolveLocationMode as ni, PoolMemoryWatchdog as nn, deleteAlarmProfile as nr, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC as nt, CLUSTER_MODEL_OWNER_ADDON_ID as o, record as oa, retrainRevisionConflictMessage as oi, RetrainDismissedSchema as on, describeSystemEventDeliveryProblem as or, NC_ALARM_SYSTEM_EVENT_KINDS as ot, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT as p, EventCategory as pa, sceneMonitorCapability as pi, SCENE_DEFAULT_OBSERVATION_SPACING_SEC as pn, embeddingRequirementsUnavailableError as pr, NC_CONDITION_CATALOG as pt, MAX_ARCHIVED_DEBUG_NOTES as q, nodePin as qi, buildEventKindDescriptor as qn, parseProcStatus as qr, NcSnoozeSuppressedSchema as qt, CLIP_IMAGE_MODELS as r, number as ra, resolveModeDelays as ri, RECORDING_EXPORT_MAX_READ_BYTES as rn, deriveDetailCropRect as rr, NC_ALARM_DELAY_FIELDS as rt, FACE_EMBEDDING_STEP_ID as s, strictObject as sa, rootSupplyServes as si, RetrainOriginSchema as sn, describeSystemEventFamilyProblem as sr, NC_ALARM_TRIGGERED_MAX_SEC as st, BUILTIN_CLIP_MODELS as t, literal as ta, resolveClipSearchMinScore as ti, OpsLogEntrySchema as tn, createAlarmProfile as tr, NC_ALARM_DEFAULT_PROFILE_ID as tt, APPEARANCE_BIN_COUNT as u, tuple as ua, ruleDeviceCompatCapQueries as ui, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS as un, embeddingModelFailedError as ur, NC_CLIP_POST_ROLL_DEFAULT_SEC as ut, BaseDevice as v, storageOccupancyCapability as vi, SceneMonitorSchema as vn, faceGalleryCapability as vr, NC_DEFAULT_SNOOZE_MINUTES as vt, CoverStateSchema as w, systemEventFilterApplies as wi, TimelapseRuleInputSchema as wn, isAlertEpisodeSeverity as wr, NC_SYSTEM_EVENT_KIND_GROUP_SPECS as wt, COCO_TO_MACRO as x, syncActiveAlarmProfileSettings as xi, SetTrackRelationInputSchema as xn, gifFromMp4Args as xr, NC_GROUPING_MIN_SEC as xt, BirthDecisionRecordSchema as y, subKindsOf as yi, SetTrackPurityInputSchema as yn, failureContributionCapability as yr, NC_GROUPING_DEFAULT_SEC as yt, FIRST_LEVEL_MACRO_CLASSES as z, CamProfileSchema as zi, applyBlockingEdit as zn, isVectorIndexDimConflict as zr, NcRulePatchSchema as zt };
85876
+ export { MediaFileKindEnum as $, array as $i, coreBlockIdFromAddonId as $n, readTimelapseGeneratedAt as $r, NcTemplateVarDescriptorSchema as $t, DeclaredDevices as A, viewerLinkBaseOf as Ai, TrackSideSchema as An, isEventOwnerType as Ar, NcAlarmSensorsInputSchema as At, FULL_IMAGE_BBOX as B, RECORD_MAX_DATA_BYTES as Bi, applyModeDelaysEdits as Bn, kebabToCamel as Br, NcRuleSchema as Bt, ClearTrackRelationResultSchema as C, systemEventFamilyProblems as Ci, TRACK_RELATIONS_DEFAULT_LIMIT as Cn, isAlertEpisodeOpen as Cr, NC_SNOOZE_MAX_MINUTES as Ct, DEFAULT_TIMELAPSE_PREVIEW_TEXT as D, templateCarriesSummary as Di, TrackPuritySchema as Dn, isDefaultAlarmProfileId as Dr, NC_TEMPLATE_VARS as Dt, DEFAULT_EVENT_COLOR as E, systemEventSummarySplitOf as Ei, TimelapseRuleSchema as En, isAudioClassName as Er, NC_TAXONOMY as Et, EVENT_DENSITY_BATCH_MAX as F, isSourceCap as Fi, alarmPanelCapability as Fn, isRootSuppliableStepId as Fr, NcLegacyRuleActionSequenceSchema as Ft, ListTrackRelationsResultSchema as G, defineRecordKinds as Gi, audioMetricsCapability as Gn, occupancyScope as Gr, NcSnoozeInputSchema as Gt, LABEL_SUPPLY_MACRO as H, createEvent as Hi, applySecureOnArmEdit as Hn, mayWriteToLocation as Hr, NcRuleUpdateInputSchema as Ht, EVENT_KIND_BY_CAP as I, DeviceType as Ii, alertEpisodeId as In, isScheduleActive as Ir, NcRuleActionSchema as It, MAX_BIRTH_DECISION_RECORDS as J, nodePin as Ji, buildViewerLink as Jn, pickFaceRescoreIntervalMinutes as Jr, NcStateSummarySectionIdSchema as Jt, LockStateSchema as K, hydrateSchema as Ki, audioModeOf as Kn, parseAlertEpisodePayload as Kr, NcSnoozeSchema as Kt, EVENT_OWNER_TYPES as L, errMsg as Li, alertEpisodeKind as Ln, isSystemDelivery as Lr, NcRuleActionsSchema as Lt, EMBEDDING_MODEL_FAILED as M, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as Mi, activateAlarmProfile as Mn, isLabelSupplyStepId as Mr, NcAlarmSettingsPatchSchema as Mt, EMBEDDING_REQUIREMENTS_FAILED as N, canonicalHash as Ni, addonWidgetsSourceCapability as Nn, isMediaOwnerType as Nr, NcConditionDescriptorSchema as Nt, DETECTION_MACRO_CLASSES as O, templateVarsFor as Oi, TrackRelationKindSchema as On, isDetectionMacroClass as Or, NcAlarmConfigSchema as Ot, EMBEDDING_REQUIREMENTS_UNAVAILABLE as P, evaluateSensorEdge as Pi, alarmDeviceSecureOnArm as Pn, isRetiredClearKey as Pr, NcConditionsSchema as Pt, MOTION_CLOSE_AFTER_MS as Q, _enum as Qi, consumableLowPercentOf as Qn, readMotionTriggeredBy as Qr, NcTemplatePreviewSchema as Qt, EXPORT_DENSE_MAX_RANGES as R, BaseAddon as Ri, alertEpisodePayload as Rn, isSystemEventSummaryRule as Rr, NcRuleInputSchema as Rt, ClearTrackRelationInputSchema as S, systemEventDeliveryProblems as Si, TIMELAPSE_DENSE_FLOOR_SEC as Sn, isAlarmControllableCap as Sr, NC_SENSOR_TRANSITION_KINDS as St, DEFAULT_DETAIL_CROP_CONVENTION as T, systemEventSummaryScheduleOf as Ti, TimelapseRulePatchSchema as Tn, isAppLinkBase as Tr, NC_TANK_SYSTEM_EVENT_KINDS as Tt, LabelAttributionSchema as U, customAction as Ui, armRemovalReconcile as Un, memoizePinnedFfmpeg as Ur, NcScheduleSchema as Ut, FailureCounters as V, RECORD_QUERY_MAX as Vi, applyNonBlockingEdit as Vn, linkedStepOf as Vr, NcRuleTargetSchema as Vt, ListTrackRelationsInputSchema as W, defineCustomActions as Wi, assertTimelapseCadences as Wn, notificationRulesCapability as Wr, NcSharedSequenceSchema as Wt, MAX_TRACK_PURITIES as X, sleep as Xi, classifyRetrainReview as Xn, plateGalleryCapability as Xr, NcTaxonomySchema as Xt, MAX_BIRTH_LATENCY_PROXY_MS as Y, normalizeNodeId as Yi, calendarEventLocalSpan as Yn, pipelineAnalyticsCapability as Yr, NcSystemEventKindSchema as Yt, MAX_TRACK_RELATIONS as Z, ZodObject as Zi, cloneAlarmSettings as Zn, readDeviceStateFrom as Zr, NcTemplatePreviewInputSchema as Zt, BIRTH_DECISION_DEFAULT_LIMIT as _, startMoverUnderClearance as _i, SCENE_RESET_RECAPTURES as _n, evictionPolicyOfLocation as _r, NC_CONSUMABLE_SYSTEM_EVENT_KINDS as _t, CLIP_EMBEDDING_STEP_ID as a, object as aa, resolvePoolMemoryPolicy as ai, RebuildObjectEmbeddingsRefusalSchema as an, deriveRecordingMode as ar, NC_ALARM_NOTIFY_FIELDS as at, BucketAccumulator as b, summarizeReview as bi, SetTrackPurityResultSchema as bn, gifDeriveSpeed as br, NC_GROUPING_MAX_SEC as bt, readClusterModelPinStrict as c, strictObject as ca, ruleAutoTriggersAlarm as ci, RetrainStatusSchema as cn, deviceRemovalHookCapability as cr, NC_AUDIO_CONFIRM_HITS_DEFAULT as ct, APPEARANCE_BLOCKS as d, tuple as da, ruleGroupingApplies as di, SCENE_DEFAULT_ANCHOR_THRESHOLD as dn, embeddingRefusalOf as dr, NC_CLIP_PRE_ROLL_DEFAULT_SEC as dt, boolean as ea, renameAlarmProfile as ei, OPS_LOG_DEFAULT_LIMIT as en, cosineSimilarity as er, MotionTriggeredBySchema as et, APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT as f, union as fa, ruleKindOf as fi, SCENE_DEFAULT_CHECK_INTERVAL_SEC as fn, embeddingRequirementsFailedError as fr, NC_CLIP_RETENTION_MAX_SEC as ft, ArchivedDebugNoteSchema as g, servedTemplateVars as gi, SCENE_DIVERGED as gn, eventKindLabel as gr, NC_CONSUMABLE_LOW_PERCENT_DEFAULT as gt, AlarmArmModeSchema as h, sensorRaisedOf as hi, SCENE_DEFAULT_UNCOVERED_POLICY as hn, ensureAlarmProfiles as hr, NC_CONFIRM_DEFAULT_TIMEOUT_MS as ht, CLIP_TEXT_MODELS as i, number as ia, resolveModeNotifyPolicy as ii, RECORDING_SOURCE_CAMSTACK_ADDON as in, derivePostTriggeredAction as ir, NC_ALARM_DELAY_MAX_SEC as it, DetectionSourceSchema as j, zoneAnalyticsCapability as ji, TrackSourceSchema as jn, isKnownTemplateVar as jr, NcAlarmSensorsSchema as jt, DETECTION_PIPELINE_CAP_NAME as k, vectorDimFromBase64 as ki, TrackRelationSchema as kn, isEventKindLabelKey as kr, NcAlarmPostTriggeredActionSchema as kt, resolveClusterModelPin as l, string as la, ruleBelongsToAlarm as li, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX as ln, embeddingEncoderCapability as lr, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT as lt, AUDIO_MACRO_LABELS as m, EventCategory as ma, secureActuationFor as mi, SCENE_DEFAULT_QUIET_SECONDS as mn, encodeVectorBase64 as mr, NC_CONFIRM_DEFAULT_MAX_IMAGE_PX as mt, DEFAULT_CLIP_MODEL as n, literal as na, resolveLocationMode as ni, PoolMemoryWatchdog as nn, deleteAlarmProfile as nr, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC as nt, CLUSTER_MODEL_OWNER_ADDON_ID as o, partialRecord as oa, retrainRevisionConflictMessage as oi, RetrainDismissedSchema as on, describeSystemEventDeliveryProblem as or, NC_ALARM_SYSTEM_EVENT_KINDS as ot, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT as p, unknown as pa, sceneMonitorCapability as pi, SCENE_DEFAULT_OBSERVATION_SPACING_SEC as pn, embeddingRequirementsUnavailableError as pr, NC_CONDITION_CATALOG as pt, MAX_ARCHIVED_DEBUG_NOTES as q, isDeviceScopedCap as qi, buildEventKindDescriptor as qn, parseProcStatus as qr, NcSnoozeSuppressedSchema as qt, CLIP_IMAGE_MODELS as r, looseObject as ra, resolveModeDelays as ri, RECORDING_EXPORT_MAX_READ_BYTES as rn, deriveDetailCropRect as rr, NC_ALARM_DELAY_FIELDS as rt, FACE_EMBEDDING_STEP_ID as s, record as sa, rootSupplyServes as si, RetrainOriginSchema as sn, describeSystemEventFamilyProblem as sr, NC_ALARM_TRIGGERED_MAX_SEC as st, BUILTIN_CLIP_MODELS as t, discriminatedUnion as ta, resolveClipSearchMinScore as ti, OpsLogEntrySchema as tn, createAlarmProfile as tr, NC_ALARM_DEFAULT_PROFILE_ID as tt, APPEARANCE_BIN_COUNT as u, templateLiteral as ua, ruleDeviceCompatCapQueries as ui, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS as un, embeddingModelFailedError as ur, NC_CLIP_POST_ROLL_DEFAULT_SEC as ut, BaseDevice as v, storageOccupancyCapability as vi, SceneMonitorSchema as vn, faceGalleryCapability as vr, NC_DEFAULT_SNOOZE_MINUTES as vt, CoverStateSchema as w, systemEventFilterApplies as wi, TimelapseRuleInputSchema as wn, isAlertEpisodeSeverity as wr, NC_SYSTEM_EVENT_KIND_GROUP_SPECS as wt, COCO_TO_MACRO as x, syncActiveAlarmProfileSettings as xi, SetTrackRelationInputSchema as xn, gifFromMp4Args as xr, NC_GROUPING_MIN_SEC as xt, BirthDecisionRecordSchema as y, subKindsOf as yi, SetTrackPurityInputSchema as yn, failureContributionCapability as yr, NC_GROUPING_DEFAULT_SEC as yt, FIRST_LEVEL_MACRO_CLASSES as z, CamProfileSchema as zi, applyBlockingEdit as zn, isVectorIndexDimConflict as zr, NcRulePatchSchema as zt };