@camstack/addon-export-hap 1.2.161 → 1.2.163
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hap-export.addon.js +390 -294
- package/dist/hap-export.addon.mjs +390 -294
- package/package.json +1 -1
|
@@ -5454,7 +5454,7 @@ var ZodIssueCode = {
|
|
|
5454
5454
|
var ZodFirstPartyTypeKind;
|
|
5455
5455
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5456
5456
|
//#endregion
|
|
5457
|
-
//#region ../types/dist/sleep-
|
|
5457
|
+
//#region ../types/dist/sleep-yKL5gfrH.mjs
|
|
5458
5458
|
/**
|
|
5459
5459
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5460
5460
|
* window to float samples (D455).
|
|
@@ -7836,6 +7836,12 @@ function normalizeAddonInitResult(result) {
|
|
|
7836
7836
|
if (Array.isArray(result)) return { providers: result };
|
|
7837
7837
|
return result;
|
|
7838
7838
|
}
|
|
7839
|
+
/**
|
|
7840
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7841
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7842
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7843
|
+
*/
|
|
7844
|
+
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7839
7845
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
7840
7846
|
var PeerBytesTicketSchema = object({
|
|
7841
7847
|
/** `http://127.0.0.1:<port>/<token>`. One `GET` takes it. */
|
|
@@ -13308,6 +13314,280 @@ var ConvertResultSchema = object({
|
|
|
13308
13314
|
files: array(string()).readonly()
|
|
13309
13315
|
})).readonly()
|
|
13310
13316
|
});
|
|
13317
|
+
/**
|
|
13318
|
+
* Zod schemas for persisted record types.
|
|
13319
|
+
*
|
|
13320
|
+
* These schemas serve as the single source of truth for types that are
|
|
13321
|
+
* stored in the settings-store backend and retrieved via tRPC. They
|
|
13322
|
+
* replace the manual TypeScript interfaces with schema-derived types,
|
|
13323
|
+
* enabling runtime validation when reading from the backend.
|
|
13324
|
+
*
|
|
13325
|
+
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
13326
|
+
* keeps the original name for backward compatibility.
|
|
13327
|
+
*/
|
|
13328
|
+
/**
|
|
13329
|
+
* Auth model (v2 — 2026-05-12 caps-only):
|
|
13330
|
+
*
|
|
13331
|
+
* Two principals:
|
|
13332
|
+
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
13333
|
+
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
13334
|
+
*
|
|
13335
|
+
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
13336
|
+
* `super_admin` — collapsed onto the single boolean because every
|
|
13337
|
+
* non-admin caller is governed by the same scope-check rules; the
|
|
13338
|
+
* distinction was only ever used to route role-specific procedures
|
|
13339
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
13340
|
+
* with `isAdmin: false` + an explicit scope list.
|
|
13341
|
+
*/
|
|
13342
|
+
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
13343
|
+
var MethodAccessSchema = _enum([
|
|
13344
|
+
"view",
|
|
13345
|
+
"create",
|
|
13346
|
+
"delete"
|
|
13347
|
+
]);
|
|
13348
|
+
/**
|
|
13349
|
+
* A single scope grant. Three forms — checked in matcher with OR
|
|
13350
|
+
* semantics; the first match decides whether the call passes:
|
|
13351
|
+
*
|
|
13352
|
+
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
13353
|
+
* cap with the matching `scope` declaration. New caps inherit grants
|
|
13354
|
+
* automatically — adding a device cap to the codebase makes it
|
|
13355
|
+
* reachable to every user with `category:device [...]` without a
|
|
13356
|
+
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
13357
|
+
*
|
|
13358
|
+
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
13359
|
+
* useful when an integration needs to interact with one specific
|
|
13360
|
+
* addon's surface regardless of how many caps it exports.
|
|
13361
|
+
*
|
|
13362
|
+
* - `capability` — the most precise form. Single cap name. Use for
|
|
13363
|
+
* integration tokens where you want to grant `addons.installPackage`
|
|
13364
|
+
* and nothing else.
|
|
13365
|
+
*
|
|
13366
|
+
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
13367
|
+
* "give me everything" escape; there is no wildcard scope.
|
|
13368
|
+
*/
|
|
13369
|
+
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
13370
|
+
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
13371
|
+
var CapScopeSchema = _enum(["device", "system"]);
|
|
13372
|
+
/**
|
|
13373
|
+
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
13374
|
+
*
|
|
13375
|
+
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
13376
|
+
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
13377
|
+
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
13378
|
+
* AFTER the grant was minted — no re-grant, no re-login.
|
|
13379
|
+
*
|
|
13380
|
+
* - `all` — every device in the deployment. The broad viewer/operator
|
|
13381
|
+
* lever without a `category` grant (a `category` grant also covers device
|
|
13382
|
+
* caps that carry no deviceId; `all` is specifically the device set).
|
|
13383
|
+
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
13384
|
+
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
13385
|
+
* is NOT covered until the grant is edited.
|
|
13386
|
+
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
13387
|
+
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
13388
|
+
* re-resolves on the next request.
|
|
13389
|
+
* - `locations` — every device whose operator-assigned `location` label is
|
|
13390
|
+
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
13391
|
+
* null/unset location matches NO `locations` selector.
|
|
13392
|
+
*/
|
|
13393
|
+
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
13394
|
+
object({ kind: literal("all") }),
|
|
13395
|
+
object({
|
|
13396
|
+
kind: literal("ids"),
|
|
13397
|
+
ids: array(number().int()).min(1)
|
|
13398
|
+
}),
|
|
13399
|
+
object({
|
|
13400
|
+
kind: literal("types"),
|
|
13401
|
+
types: array(_enum(DeviceType)).min(1)
|
|
13402
|
+
}),
|
|
13403
|
+
object({
|
|
13404
|
+
kind: literal("locations"),
|
|
13405
|
+
locations: array(string().min(1)).min(1)
|
|
13406
|
+
})
|
|
13407
|
+
]);
|
|
13408
|
+
var DeviceTokenScopeSchema = object({
|
|
13409
|
+
type: literal("device"),
|
|
13410
|
+
/** The device SET this grant covers — resolved against the live fleet. */
|
|
13411
|
+
selector: DeviceSelectorSchema,
|
|
13412
|
+
access: array(MethodAccessSchema).min(1),
|
|
13413
|
+
/**
|
|
13414
|
+
* Whether a grant on a PARENT device transparently covers its accessory
|
|
13415
|
+
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
13416
|
+
* Direction is parent → children ONLY.
|
|
13417
|
+
*
|
|
13418
|
+
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
13419
|
+
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
13420
|
+
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
13421
|
+
* operator must grant on the child, not inherit from the parent). Set it
|
|
13422
|
+
* explicitly to override that default per grant.
|
|
13423
|
+
*/
|
|
13424
|
+
includeLinked: boolean().optional()
|
|
13425
|
+
});
|
|
13426
|
+
/**
|
|
13427
|
+
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
13428
|
+
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
13429
|
+
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
13430
|
+
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
13431
|
+
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
13432
|
+
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
13433
|
+
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
13434
|
+
* migration covers both without a flag day. No cast — the raw object is read
|
|
13435
|
+
* through `Reflect.get` (its static type is `unknown`).
|
|
13436
|
+
*/
|
|
13437
|
+
function migrateLegacyTokenScope(raw) {
|
|
13438
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
13439
|
+
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
13440
|
+
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
13441
|
+
const targets = Reflect.get(raw, "targets");
|
|
13442
|
+
if (!Array.isArray(targets)) return raw;
|
|
13443
|
+
return {
|
|
13444
|
+
type: "device",
|
|
13445
|
+
selector: {
|
|
13446
|
+
kind: "ids",
|
|
13447
|
+
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
13448
|
+
},
|
|
13449
|
+
access: Reflect.get(raw, "access")
|
|
13450
|
+
};
|
|
13451
|
+
}
|
|
13452
|
+
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
13453
|
+
object({
|
|
13454
|
+
type: literal("category"),
|
|
13455
|
+
target: CapScopeSchema,
|
|
13456
|
+
access: array(MethodAccessSchema).min(1)
|
|
13457
|
+
}),
|
|
13458
|
+
object({
|
|
13459
|
+
type: literal("capability"),
|
|
13460
|
+
target: string(),
|
|
13461
|
+
access: array(MethodAccessSchema).min(1)
|
|
13462
|
+
}),
|
|
13463
|
+
object({
|
|
13464
|
+
type: literal("addon"),
|
|
13465
|
+
target: string(),
|
|
13466
|
+
access: array(MethodAccessSchema).min(1)
|
|
13467
|
+
}),
|
|
13468
|
+
DeviceTokenScopeSchema
|
|
13469
|
+
]));
|
|
13470
|
+
object({
|
|
13471
|
+
id: string(),
|
|
13472
|
+
username: string(),
|
|
13473
|
+
passwordHash: string(),
|
|
13474
|
+
/**
|
|
13475
|
+
* Admin bypass. When true, the middleware skips the scope-access
|
|
13476
|
+
* check entirely. There is no other axis of privilege; the legacy
|
|
13477
|
+
* role enum collapsed onto this boolean in v2.
|
|
13478
|
+
*/
|
|
13479
|
+
isAdmin: boolean().default(false),
|
|
13480
|
+
allowedProviders: AllowedProviderSchema,
|
|
13481
|
+
allowedDevices: AllowedDevicesSchema,
|
|
13482
|
+
/**
|
|
13483
|
+
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
13484
|
+
* ignored. Non-admins without scopes are locked out of every
|
|
13485
|
+
* protected call.
|
|
13486
|
+
*/
|
|
13487
|
+
scopes: array(TokenScopeSchema).default([]),
|
|
13488
|
+
createdAt: number(),
|
|
13489
|
+
updatedAt: number()
|
|
13490
|
+
});
|
|
13491
|
+
object({
|
|
13492
|
+
id: string(),
|
|
13493
|
+
label: string(),
|
|
13494
|
+
isAdmin: boolean().default(false),
|
|
13495
|
+
allowedProviders: AllowedProviderSchema,
|
|
13496
|
+
allowedDevices: AllowedDevicesSchema,
|
|
13497
|
+
tokenHash: string(),
|
|
13498
|
+
tokenPrefix: string(),
|
|
13499
|
+
createdAt: number(),
|
|
13500
|
+
lastUsedAt: number().optional()
|
|
13501
|
+
});
|
|
13502
|
+
object({
|
|
13503
|
+
id: string(),
|
|
13504
|
+
userId: string(),
|
|
13505
|
+
name: string(),
|
|
13506
|
+
tokenHash: string(),
|
|
13507
|
+
tokenPrefix: string(),
|
|
13508
|
+
scopes: array(TokenScopeSchema),
|
|
13509
|
+
expiresAt: number().nullish(),
|
|
13510
|
+
lastUsedAt: number().nullish(),
|
|
13511
|
+
createdAt: number()
|
|
13512
|
+
});
|
|
13513
|
+
/** What a share-view grant lets its holder see. */
|
|
13514
|
+
var ShareViewGrantSchema = object({
|
|
13515
|
+
kind: _enum(SHARE_VIEW_KINDS),
|
|
13516
|
+
deviceIds: array(number().int().nonnegative()).min(1).max(64),
|
|
13517
|
+
/** Talk-back, opt-in at mint time; absent means off. */
|
|
13518
|
+
talk: boolean().optional()
|
|
13519
|
+
});
|
|
13520
|
+
var ShareViewScopeSchema = object({
|
|
13521
|
+
type: literal("share-view"),
|
|
13522
|
+
grant: ShareViewGrantSchema
|
|
13523
|
+
});
|
|
13524
|
+
var AddonRoutesScopeSchema = object({
|
|
13525
|
+
type: literal("addon-routes"),
|
|
13526
|
+
access: array(MethodAccessSchema).min(1)
|
|
13527
|
+
});
|
|
13528
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
13529
|
+
var CredentialScopeSchema = union([
|
|
13530
|
+
literal("*"),
|
|
13531
|
+
ShareViewScopeSchema,
|
|
13532
|
+
AddonRoutesScopeSchema,
|
|
13533
|
+
PreferencesSelfScopeSchema,
|
|
13534
|
+
TokenScopeSchema
|
|
13535
|
+
]);
|
|
13536
|
+
object({
|
|
13537
|
+
kind: literal("credential"),
|
|
13538
|
+
sub: string().min(1),
|
|
13539
|
+
jti: string().min(16),
|
|
13540
|
+
scopes: array(CredentialScopeSchema).min(1)
|
|
13541
|
+
});
|
|
13542
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
13543
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
13544
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
13545
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
13546
|
+
/** A stored row, as the owner reads it. */
|
|
13547
|
+
var PreferenceRowSchema = object({
|
|
13548
|
+
namespace: PreferenceNamespaceSchema,
|
|
13549
|
+
value: PreferenceValueSchema,
|
|
13550
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
13551
|
+
revision: number().int().positive(),
|
|
13552
|
+
updatedAt: number().int(),
|
|
13553
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
13554
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
13555
|
+
});
|
|
13556
|
+
object({
|
|
13557
|
+
/** Absent: every namespace the caller holds. */
|
|
13558
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
13559
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
13560
|
+
object({
|
|
13561
|
+
namespace: PreferenceNamespaceSchema,
|
|
13562
|
+
value: PreferenceValueSchema,
|
|
13563
|
+
/**
|
|
13564
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
13565
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
13566
|
+
* revision answers `conflict` and writes nothing.
|
|
13567
|
+
*/
|
|
13568
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
13569
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
13570
|
+
});
|
|
13571
|
+
discriminatedUnion("status", [object({
|
|
13572
|
+
status: literal("saved"),
|
|
13573
|
+
row: PreferenceRowSchema
|
|
13574
|
+
}), object({
|
|
13575
|
+
status: literal("conflict"),
|
|
13576
|
+
current: PreferenceRowSchema.nullable()
|
|
13577
|
+
})]);
|
|
13578
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
13579
|
+
object({
|
|
13580
|
+
/** `false` when the namespace did not exist. */
|
|
13581
|
+
deleted: boolean() });
|
|
13582
|
+
object({
|
|
13583
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
13584
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
13585
|
+
object({
|
|
13586
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
13587
|
+
rows: array(PreferenceRowSchema),
|
|
13588
|
+
/** Namespaces the client listed that no longer exist. */
|
|
13589
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
13590
|
+
});
|
|
13311
13591
|
_enum(["new-session", "step-up"]);
|
|
13312
13592
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
13313
13593
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -40267,38 +40547,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
40267
40547
|
auth: "admin",
|
|
40268
40548
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40269
40549
|
});
|
|
40550
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
40551
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
40552
|
+
var LlmModelFeaturesSchema = object({
|
|
40553
|
+
vision: boolean(),
|
|
40554
|
+
tools: boolean(),
|
|
40555
|
+
streaming: boolean()
|
|
40556
|
+
});
|
|
40557
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
40558
|
+
var LlmModelInfoSchema = object({
|
|
40559
|
+
id: string(),
|
|
40560
|
+
label: string().optional(),
|
|
40561
|
+
contextLength: number().int().positive().optional(),
|
|
40562
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
40563
|
+
});
|
|
40270
40564
|
/**
|
|
40271
|
-
*
|
|
40272
|
-
*
|
|
40273
|
-
*
|
|
40274
|
-
*
|
|
40275
|
-
* (hub-placed); the cap stays open for future providers.
|
|
40276
|
-
*
|
|
40277
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
40278
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
40279
|
-
* write; a stored key NEVER round-trips to a client.
|
|
40565
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
40566
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
40567
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
40568
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
40280
40569
|
*/
|
|
40281
|
-
var
|
|
40282
|
-
"openai-compatible",
|
|
40283
|
-
"openai",
|
|
40284
|
-
"anthropic",
|
|
40285
|
-
"google",
|
|
40286
|
-
"managed-local",
|
|
40287
|
-
"apple-foundation"
|
|
40288
|
-
]);
|
|
40570
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
40289
40571
|
var LlmProfileSchema = object({
|
|
40290
40572
|
id: string(),
|
|
40291
40573
|
name: string(),
|
|
40574
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
40292
40575
|
kind: LlmProfileKindSchema,
|
|
40293
40576
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
40294
40577
|
addonId: string(),
|
|
40295
40578
|
enabled: boolean(),
|
|
40296
40579
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
40297
40580
|
model: string(),
|
|
40298
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
40299
|
-
baseUrl: string().optional(),
|
|
40300
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
40301
|
-
apiKey: string().optional(),
|
|
40302
40581
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
40303
40582
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
40304
40583
|
* question about a picture nobody sent. */
|
|
@@ -40306,15 +40585,11 @@ var LlmProfileSchema = object({
|
|
|
40306
40585
|
temperature: number().min(0).max(2).optional(),
|
|
40307
40586
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
40308
40587
|
topP: number().min(0).max(1).optional(),
|
|
40309
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
40310
|
-
*
|
|
40311
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
40312
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
40588
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
40589
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
40313
40590
|
topK: number().int().positive().optional(),
|
|
40314
40591
|
maxTokens: number().int().positive().optional(),
|
|
40315
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
40316
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
40317
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
40592
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
40318
40593
|
contextLength: number().int().positive().optional(),
|
|
40319
40594
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
40320
40595
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -40340,16 +40615,37 @@ var LlmProfileSchema = object({
|
|
|
40340
40615
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
40341
40616
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
40342
40617
|
toolsEnabled: boolean().default(false),
|
|
40343
|
-
|
|
40344
|
-
|
|
40345
|
-
|
|
40346
|
-
|
|
40347
|
-
|
|
40348
|
-
|
|
40349
|
-
|
|
40350
|
-
|
|
40351
|
-
|
|
40352
|
-
|
|
40618
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
40619
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
40620
|
+
});
|
|
40621
|
+
/**
|
|
40622
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
40623
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
40624
|
+
*/
|
|
40625
|
+
var LlmProfileFieldSchema = _enum([
|
|
40626
|
+
"temperature",
|
|
40627
|
+
"topP",
|
|
40628
|
+
"topK",
|
|
40629
|
+
"maxTokens",
|
|
40630
|
+
"contextLength",
|
|
40631
|
+
"systemPrompt",
|
|
40632
|
+
"timeoutMs",
|
|
40633
|
+
"connectTimeoutMs",
|
|
40634
|
+
"firstTokenTimeoutMs",
|
|
40635
|
+
"idleTimeoutMs",
|
|
40636
|
+
"retry",
|
|
40637
|
+
"toolsEnabled"
|
|
40638
|
+
]);
|
|
40639
|
+
/**
|
|
40640
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
40641
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
40642
|
+
* picker: that widget owns the model choice.
|
|
40643
|
+
*/
|
|
40644
|
+
var LlmProviderWidgetSchema = object({
|
|
40645
|
+
id: string(),
|
|
40646
|
+
placement: _enum(["connection", "model"]),
|
|
40647
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
40648
|
+
requires: array(string()).optional()
|
|
40353
40649
|
});
|
|
40354
40650
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
40355
40651
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -40358,11 +40654,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
40358
40654
|
var LlmProfileKindDescriptorSchema = object({
|
|
40359
40655
|
kind: LlmProfileKindSchema,
|
|
40360
40656
|
label: string(),
|
|
40657
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
40361
40658
|
icon: string(),
|
|
40362
40659
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
40363
40660
|
addonId: string(),
|
|
40364
|
-
|
|
40661
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
40662
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
40663
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
40664
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
40665
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
40666
|
+
features: LlmModelFeaturesSchema,
|
|
40667
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
40668
|
+
visionEditable: boolean(),
|
|
40669
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
40670
|
+
modelCatalog: _enum([
|
|
40671
|
+
"fetch",
|
|
40672
|
+
"static",
|
|
40673
|
+
"none"
|
|
40674
|
+
]),
|
|
40675
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
40676
|
+
/** The common fields that mean something on this kind's wire. */
|
|
40677
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
40678
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
40679
|
+
});
|
|
40680
|
+
/**
|
|
40681
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
40682
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
40683
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
40684
|
+
* stored profile — the browser never receives it.
|
|
40685
|
+
*/
|
|
40686
|
+
var LlmListModelsInputSchema = object({
|
|
40687
|
+
addonId: string(),
|
|
40688
|
+
kind: LlmProfileKindSchema,
|
|
40689
|
+
profileId: string().optional(),
|
|
40690
|
+
connection: LlmProviderConfigSchema.optional()
|
|
40365
40691
|
});
|
|
40692
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
40693
|
+
"auth",
|
|
40694
|
+
"network",
|
|
40695
|
+
"unsupported",
|
|
40696
|
+
"invalid"
|
|
40697
|
+
]);
|
|
40698
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
40699
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
40700
|
+
ok: literal(true),
|
|
40701
|
+
models: array(LlmModelInfoSchema)
|
|
40702
|
+
}), object({
|
|
40703
|
+
ok: literal(false),
|
|
40704
|
+
code: LlmListModelsErrorCodeSchema,
|
|
40705
|
+
message: string()
|
|
40706
|
+
})]);
|
|
40366
40707
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
40367
40708
|
var LlmDefaultSchema = object({
|
|
40368
40709
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -40462,7 +40803,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
40462
40803
|
kind: "mutation",
|
|
40463
40804
|
auth: "admin",
|
|
40464
40805
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
40465
|
-
}), method(
|
|
40806
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
40807
|
+
kind: "mutation",
|
|
40808
|
+
auth: "admin"
|
|
40809
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
40466
40810
|
selector: LlmDefaultSelectorSchema,
|
|
40467
40811
|
profileId: string().nullable()
|
|
40468
40812
|
}), _void(), {
|
|
@@ -44526,202 +44870,6 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
44526
44870
|
auth: "admin"
|
|
44527
44871
|
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
44528
44872
|
/**
|
|
44529
|
-
* Zod schemas for persisted record types.
|
|
44530
|
-
*
|
|
44531
|
-
* These schemas serve as the single source of truth for types that are
|
|
44532
|
-
* stored in the settings-store backend and retrieved via tRPC. They
|
|
44533
|
-
* replace the manual TypeScript interfaces with schema-derived types,
|
|
44534
|
-
* enabling runtime validation when reading from the backend.
|
|
44535
|
-
*
|
|
44536
|
-
* Convention: each schema is named `<Type>Schema`, the inferred TS type
|
|
44537
|
-
* keeps the original name for backward compatibility.
|
|
44538
|
-
*/
|
|
44539
|
-
/**
|
|
44540
|
-
* Auth model (v2 — 2026-05-12 caps-only):
|
|
44541
|
-
*
|
|
44542
|
-
* Two principals:
|
|
44543
|
-
* - `isAdmin: true` — full bypass. Admin scope set is ignored.
|
|
44544
|
-
* - `isAdmin: false` — every call gated by `scopes` (see TokenScope).
|
|
44545
|
-
*
|
|
44546
|
-
* No role enum. There used to be `viewer / agent / scoped` and earlier
|
|
44547
|
-
* `super_admin` — collapsed onto the single boolean because every
|
|
44548
|
-
* non-admin caller is governed by the same scope-check rules; the
|
|
44549
|
-
* distinction was only ever used to route role-specific procedures
|
|
44550
|
-
* which we no longer have. CLI / webhook integrations are `cst_*` tokens
|
|
44551
|
-
* with `isAdmin: false` + an explicit scope list.
|
|
44552
|
-
*/
|
|
44553
|
-
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
44554
|
-
var MethodAccessSchema = _enum([
|
|
44555
|
-
"view",
|
|
44556
|
-
"create",
|
|
44557
|
-
"delete"
|
|
44558
|
-
]);
|
|
44559
|
-
/**
|
|
44560
|
-
* A single scope grant. Three forms — checked in matcher with OR
|
|
44561
|
-
* semantics; the first match decides whether the call passes:
|
|
44562
|
-
*
|
|
44563
|
-
* - `category` — broadest. `target: 'device' | 'system'` selects every
|
|
44564
|
-
* cap with the matching `scope` declaration. New caps inherit grants
|
|
44565
|
-
* automatically — adding a device cap to the codebase makes it
|
|
44566
|
-
* reachable to every user with `category:device [...]` without a
|
|
44567
|
-
* re-grant. Use this for "family viewer" / "operator" tiers.
|
|
44568
|
-
*
|
|
44569
|
-
* - `addon` — every cap that ships inside a given addon id. Niche;
|
|
44570
|
-
* useful when an integration needs to interact with one specific
|
|
44571
|
-
* addon's surface regardless of how many caps it exports.
|
|
44572
|
-
*
|
|
44573
|
-
* - `capability` — the most precise form. Single cap name. Use for
|
|
44574
|
-
* integration tokens where you want to grant `addons.installPackage`
|
|
44575
|
-
* and nothing else.
|
|
44576
|
-
*
|
|
44577
|
-
* `access` is REQUIRED with min 1 element. `admin` bypass is the
|
|
44578
|
-
* "give me everything" escape; there is no wildcard scope.
|
|
44579
|
-
*/
|
|
44580
|
-
var AllowedProviderSchema = union([literal("*"), array(string())]);
|
|
44581
|
-
var AllowedDevicesSchema = record(string(), union([literal("*"), array(string())]));
|
|
44582
|
-
var CapScopeSchema = _enum(["device", "system"]);
|
|
44583
|
-
/**
|
|
44584
|
-
* DeviceSelector (scope model v3 — 2026-08-12).
|
|
44585
|
-
*
|
|
44586
|
-
* A `device` grant no longer carries a frozen list of deviceIds. It carries
|
|
44587
|
-
* a SELECTOR the matcher resolves against the live fleet, so the grant can be
|
|
44588
|
-
* DYNAMIC: a `types:['camera']` selector automatically covers a camera added
|
|
44589
|
-
* AFTER the grant was minted — no re-grant, no re-login.
|
|
44590
|
-
*
|
|
44591
|
-
* - `all` — every device in the deployment. The broad viewer/operator
|
|
44592
|
-
* lever without a `category` grant (a `category` grant also covers device
|
|
44593
|
-
* caps that carry no deviceId; `all` is specifically the device set).
|
|
44594
|
-
* - `ids` — an explicit deviceId list. This is what a v2 `device:[…]`
|
|
44595
|
-
* grant migrates to (see {@link TokenScopeSchema}); STATIC — a new camera
|
|
44596
|
-
* is NOT covered until the grant is edited.
|
|
44597
|
-
* - `types` — every device of a `DeviceType` (e.g. every `camera`).
|
|
44598
|
-
* DYNAMIC. A device that changes type, or a new device of the type,
|
|
44599
|
-
* re-resolves on the next request.
|
|
44600
|
-
* - `locations` — every device whose operator-assigned `location` label is
|
|
44601
|
-
* in the set (e.g. "Garden", "Front door"). DYNAMIC. A device with a
|
|
44602
|
-
* null/unset location matches NO `locations` selector.
|
|
44603
|
-
*/
|
|
44604
|
-
var DeviceSelectorSchema = discriminatedUnion("kind", [
|
|
44605
|
-
object({ kind: literal("all") }),
|
|
44606
|
-
object({
|
|
44607
|
-
kind: literal("ids"),
|
|
44608
|
-
ids: array(number().int()).min(1)
|
|
44609
|
-
}),
|
|
44610
|
-
object({
|
|
44611
|
-
kind: literal("types"),
|
|
44612
|
-
types: array(_enum(DeviceType)).min(1)
|
|
44613
|
-
}),
|
|
44614
|
-
object({
|
|
44615
|
-
kind: literal("locations"),
|
|
44616
|
-
locations: array(string().min(1)).min(1)
|
|
44617
|
-
})
|
|
44618
|
-
]);
|
|
44619
|
-
var DeviceTokenScopeSchema = object({
|
|
44620
|
-
type: literal("device"),
|
|
44621
|
-
/** The device SET this grant covers — resolved against the live fleet. */
|
|
44622
|
-
selector: DeviceSelectorSchema,
|
|
44623
|
-
access: array(MethodAccessSchema).min(1),
|
|
44624
|
-
/**
|
|
44625
|
-
* Whether a grant on a PARENT device transparently covers its accessory
|
|
44626
|
-
* CHILDREN (siren / floodlight / PIR) via the persisted-parentage walk.
|
|
44627
|
-
* Direction is parent → children ONLY.
|
|
44628
|
-
*
|
|
44629
|
-
* Absent → the matcher DERIVES it from the access flavour: `view`
|
|
44630
|
-
* inherits (a camera viewer sees the camera's accessories), `create` /
|
|
44631
|
-
* `delete` do NOT (actuating/removing a child is an explicit act the
|
|
44632
|
-
* operator must grant on the child, not inherit from the parent). Set it
|
|
44633
|
-
* explicitly to override that default per grant.
|
|
44634
|
-
*/
|
|
44635
|
-
includeLinked: boolean().optional()
|
|
44636
|
-
});
|
|
44637
|
-
/**
|
|
44638
|
-
* v2 → v3 lazy migration. A pre-v3 `device` grant carried
|
|
44639
|
-
* `targets: string[]` (stringified deviceIds); it rewrites to the equivalent
|
|
44640
|
-
* `selector: {kind:'ids', ids}`. Applied as a `preprocess` so it runs on
|
|
44641
|
-
* EVERY parse path — stored records AND the JWT-carried scope arrays
|
|
44642
|
-
* normalised at the request boundary ({@link normalizeTokenScopes} in
|
|
44643
|
-
* `device-selector.ts`). Chosen over a one-time DB migration because a
|
|
44644
|
-
* migration cannot reach a JWT already in a client's hands; parse-time
|
|
44645
|
-
* migration covers both without a flag day. No cast — the raw object is read
|
|
44646
|
-
* through `Reflect.get` (its static type is `unknown`).
|
|
44647
|
-
*/
|
|
44648
|
-
function migrateLegacyTokenScope(raw) {
|
|
44649
|
-
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return raw;
|
|
44650
|
-
if (Reflect.get(raw, "type") !== "device") return raw;
|
|
44651
|
-
if (Reflect.get(raw, "selector") !== void 0) return raw;
|
|
44652
|
-
const targets = Reflect.get(raw, "targets");
|
|
44653
|
-
if (!Array.isArray(targets)) return raw;
|
|
44654
|
-
return {
|
|
44655
|
-
type: "device",
|
|
44656
|
-
selector: {
|
|
44657
|
-
kind: "ids",
|
|
44658
|
-
ids: targets.map((t) => typeof t === "string" ? Number(t) : t).filter((n) => typeof n === "number" && Number.isInteger(n))
|
|
44659
|
-
},
|
|
44660
|
-
access: Reflect.get(raw, "access")
|
|
44661
|
-
};
|
|
44662
|
-
}
|
|
44663
|
-
var TokenScopeSchema = preprocess(migrateLegacyTokenScope, discriminatedUnion("type", [
|
|
44664
|
-
object({
|
|
44665
|
-
type: literal("category"),
|
|
44666
|
-
target: CapScopeSchema,
|
|
44667
|
-
access: array(MethodAccessSchema).min(1)
|
|
44668
|
-
}),
|
|
44669
|
-
object({
|
|
44670
|
-
type: literal("capability"),
|
|
44671
|
-
target: string(),
|
|
44672
|
-
access: array(MethodAccessSchema).min(1)
|
|
44673
|
-
}),
|
|
44674
|
-
object({
|
|
44675
|
-
type: literal("addon"),
|
|
44676
|
-
target: string(),
|
|
44677
|
-
access: array(MethodAccessSchema).min(1)
|
|
44678
|
-
}),
|
|
44679
|
-
DeviceTokenScopeSchema
|
|
44680
|
-
]));
|
|
44681
|
-
object({
|
|
44682
|
-
id: string(),
|
|
44683
|
-
username: string(),
|
|
44684
|
-
passwordHash: string(),
|
|
44685
|
-
/**
|
|
44686
|
-
* Admin bypass. When true, the middleware skips the scope-access
|
|
44687
|
-
* check entirely. There is no other axis of privilege; the legacy
|
|
44688
|
-
* role enum collapsed onto this boolean in v2.
|
|
44689
|
-
*/
|
|
44690
|
-
isAdmin: boolean().default(false),
|
|
44691
|
-
allowedProviders: AllowedProviderSchema,
|
|
44692
|
-
allowedDevices: AllowedDevicesSchema,
|
|
44693
|
-
/**
|
|
44694
|
-
* Scopes granted to this user. Admins bypass; their `scopes` is
|
|
44695
|
-
* ignored. Non-admins without scopes are locked out of every
|
|
44696
|
-
* protected call.
|
|
44697
|
-
*/
|
|
44698
|
-
scopes: array(TokenScopeSchema).default([]),
|
|
44699
|
-
createdAt: number(),
|
|
44700
|
-
updatedAt: number()
|
|
44701
|
-
});
|
|
44702
|
-
object({
|
|
44703
|
-
id: string(),
|
|
44704
|
-
label: string(),
|
|
44705
|
-
isAdmin: boolean().default(false),
|
|
44706
|
-
allowedProviders: AllowedProviderSchema,
|
|
44707
|
-
allowedDevices: AllowedDevicesSchema,
|
|
44708
|
-
tokenHash: string(),
|
|
44709
|
-
tokenPrefix: string(),
|
|
44710
|
-
createdAt: number(),
|
|
44711
|
-
lastUsedAt: number().optional()
|
|
44712
|
-
});
|
|
44713
|
-
object({
|
|
44714
|
-
id: string(),
|
|
44715
|
-
userId: string(),
|
|
44716
|
-
name: string(),
|
|
44717
|
-
tokenHash: string(),
|
|
44718
|
-
tokenPrefix: string(),
|
|
44719
|
-
scopes: array(TokenScopeSchema),
|
|
44720
|
-
expiresAt: number().nullish(),
|
|
44721
|
-
lastUsedAt: number().nullish(),
|
|
44722
|
-
createdAt: number()
|
|
44723
|
-
});
|
|
44724
|
-
/**
|
|
44725
44873
|
* `oauth-integration` — a collection cap by which an addon declares
|
|
44726
44874
|
* itself a linkable OAuth client of the hub's core `/oauth2/*` server.
|
|
44727
44875
|
* Each provider returns a static descriptor; the core enumerates them
|
|
@@ -61907,26 +62055,6 @@ var ApiKeySummarySchema = object({
|
|
|
61907
62055
|
createdAt: number(),
|
|
61908
62056
|
lastUsedAt: number().optional()
|
|
61909
62057
|
});
|
|
61910
|
-
var ScopedTokenSummarySchema = object({
|
|
61911
|
-
id: string(),
|
|
61912
|
-
userId: string(),
|
|
61913
|
-
name: string(),
|
|
61914
|
-
tokenPrefix: string(),
|
|
61915
|
-
scopes: array(TokenScopeSchema),
|
|
61916
|
-
expiresAt: number().nullish(),
|
|
61917
|
-
lastUsedAt: number().nullish(),
|
|
61918
|
-
createdAt: number()
|
|
61919
|
-
});
|
|
61920
|
-
var CreateScopedTokenInputSchema = object({
|
|
61921
|
-
userId: string(),
|
|
61922
|
-
name: string(),
|
|
61923
|
-
scopes: array(TokenScopeSchema),
|
|
61924
|
-
expiresAt: number().optional()
|
|
61925
|
-
});
|
|
61926
|
-
var CreateScopedTokenResultSchema = object({
|
|
61927
|
-
token: string(),
|
|
61928
|
-
record: ScopedTokenSummarySchema
|
|
61929
|
-
});
|
|
61930
62058
|
var OauthSessionSummarySchema = object({
|
|
61931
62059
|
id: string(),
|
|
61932
62060
|
userId: string(),
|
|
@@ -61948,11 +62076,11 @@ var TotpStatusSchema = object({
|
|
|
61948
62076
|
confirmedAt: number().nullable()
|
|
61949
62077
|
});
|
|
61950
62078
|
/**
|
|
61951
|
-
* user-management — singleton capability for user accounts
|
|
61952
|
-
*
|
|
62079
|
+
* user-management — singleton capability for user accounts and the
|
|
62080
|
+
* legacy API-key rows.
|
|
61953
62081
|
*
|
|
61954
62082
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
61955
|
-
* — the subset check on `setUserScopes`
|
|
62083
|
+
* — the subset check on `setUserScopes` is moot
|
|
61956
62084
|
* because non-admins never reach these. If/when we open non-admin
|
|
61957
62085
|
* delegation, structural caller-scope subset check goes inside the
|
|
61958
62086
|
* provider.
|
|
@@ -62009,15 +62137,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
62009
62137
|
kind: "mutation",
|
|
62010
62138
|
auth: "admin",
|
|
62011
62139
|
access: "delete"
|
|
62012
|
-
}), method(
|
|
62013
|
-
kind: "mutation",
|
|
62014
|
-
auth: "admin",
|
|
62015
|
-
access: "create"
|
|
62016
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
62017
|
-
kind: "mutation",
|
|
62018
|
-
auth: "admin",
|
|
62019
|
-
access: "delete"
|
|
62020
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
62140
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
62021
62141
|
kind: "mutation",
|
|
62022
62142
|
auth: "admin",
|
|
62023
62143
|
access: "create"
|
|
@@ -66173,7 +66293,7 @@ Object.freeze({
|
|
|
66173
66293
|
capName: "llm",
|
|
66174
66294
|
capScope: "system",
|
|
66175
66295
|
addonId: null,
|
|
66176
|
-
access: "
|
|
66296
|
+
access: "create"
|
|
66177
66297
|
},
|
|
66178
66298
|
"llm.listNodeModels": {
|
|
66179
66299
|
capName: "llm",
|
|
@@ -70837,12 +70957,6 @@ Object.freeze({
|
|
|
70837
70957
|
addonId: null,
|
|
70838
70958
|
access: "create"
|
|
70839
70959
|
},
|
|
70840
|
-
"userManagement.createScopedToken": {
|
|
70841
|
-
capName: "user-management",
|
|
70842
|
-
capScope: "system",
|
|
70843
|
-
addonId: null,
|
|
70844
|
-
access: "create"
|
|
70845
|
-
},
|
|
70846
70960
|
"userManagement.createUser": {
|
|
70847
70961
|
capName: "user-management",
|
|
70848
70962
|
capScope: "system",
|
|
@@ -70891,12 +71005,6 @@ Object.freeze({
|
|
|
70891
71005
|
addonId: null,
|
|
70892
71006
|
access: "view"
|
|
70893
71007
|
},
|
|
70894
|
-
"userManagement.listScopedTokens": {
|
|
70895
|
-
capName: "user-management",
|
|
70896
|
-
capScope: "system",
|
|
70897
|
-
addonId: null,
|
|
70898
|
-
access: "view"
|
|
70899
|
-
},
|
|
70900
71008
|
"userManagement.listUsers": {
|
|
70901
71009
|
capName: "user-management",
|
|
70902
71010
|
capScope: "system",
|
|
@@ -70951,12 +71059,6 @@ Object.freeze({
|
|
|
70951
71059
|
addonId: null,
|
|
70952
71060
|
access: "delete"
|
|
70953
71061
|
},
|
|
70954
|
-
"userManagement.revokeScopedToken": {
|
|
70955
|
-
capName: "user-management",
|
|
70956
|
-
capScope: "system",
|
|
70957
|
-
addonId: null,
|
|
70958
|
-
access: "delete"
|
|
70959
|
-
},
|
|
70960
71062
|
"userManagement.setupTotp": {
|
|
70961
71063
|
capName: "user-management",
|
|
70962
71064
|
capScope: "system",
|
|
@@ -70987,12 +71089,6 @@ Object.freeze({
|
|
|
70987
71089
|
addonId: null,
|
|
70988
71090
|
access: "view"
|
|
70989
71091
|
},
|
|
70990
|
-
"userManagement.validateScopedToken": {
|
|
70991
|
-
capName: "user-management",
|
|
70992
|
-
capScope: "system",
|
|
70993
|
-
addonId: null,
|
|
70994
|
-
access: "view"
|
|
70995
|
-
},
|
|
70996
71092
|
"userManagement.verifyTotp": {
|
|
70997
71093
|
capName: "user-management",
|
|
70998
71094
|
capScope: "system",
|