@camstack/types 1.2.377 → 1.2.378
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/addons.cap.d.ts +2 -0
- package/dist/capabilities/index.d.ts +2 -1
- package/dist/capabilities/llm.cap.d.ts +19 -0
- package/dist/capabilities/raw-secret-migration.d.ts +25 -0
- package/dist/capabilities/server-management.cap.d.ts +89 -1
- package/dist/capabilities/user-management.cap.d.ts +18 -0
- package/dist/client.js +2 -0
- package/dist/client.mjs +2 -0
- package/dist/enums/event-category.d.ts +18 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-C4hVnRo8.mjs → event-category-BvOFi6PY.mjs} +18 -0
- package/dist/{event-category-T43rdQWR.js → event-category-Hoe-mqbd.js} +18 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.js +143 -8
- package/dist/index.mjs +139 -9
- package/dist/interfaces/addon.d.ts +4 -1
- package/dist/interfaces/agent.d.ts +15 -0
- package/dist/interfaces/event-bus.d.ts +35 -0
- package/dist/{sleep-bwsTj221.mjs → sleep-bgZLodYc.mjs} +1 -1
- package/dist/{sleep-Dq0Uyeh0.js → sleep-gxUz0C9M.js} +1 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
3
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_sleep = require("./sleep-gxUz0C9M.js");
|
|
3
|
+
const require_event_category = require("./event-category-Hoe-mqbd.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-Bb-s4Xuj.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $t as normalizeAddonInitResult, An as isSecretFieldView, Bt as registerKnownSecret, D as collectZodSecretPaths, Dn as SECRET_CLEAR, F as viewerUiCapability, Ft as createSecretsAccess, Gt as PEER_BYTES_STALL_MS, Ht as shortSecretRefHash, I as DEVICE_CHILDREN_BATCH_MAX, It as MIN_SCRUBBED_LENGTH, Jt as DATAPLANE_SECRET_HEADER, Kt as PEER_BYTES_TICKET_TTL_MS, Lt as clearKnownSecrets, Mn as isSecretMarkerLike, Nn as makeSecretMarker, Nt as resolveSecretViewsIn, O as isZodSecret, On as classifySecretWrite, P as deviceOpsCapability, Pn as toSecretFieldView, Pt as REVALIDATE_AFTER_MS, Rt as forgetKnownSecret, S as createEventBusSliceSource, Ut as PEER_BYTES_CHUNK_BYTES, V as adminUiCapability, Vt as scrubKnownSecrets, Wt as PEER_BYTES_MAX_OUTSTANDING, Xt as DisposerChain, Y as expandCapMethods, Zt as BaseAddon, _ as readErrorI18n, at as MODEL_FORMATS, b as isDeviceScopedCap, c as asString, cn as SECRET_REF_SCHEME, d as parseJsonUnknown, dn as formatSecretScope, f as hfModelUrl, fn as globalSecretScope, g as ErrorI18nPayloadSchema, hn as parseSecretRef, j as HF_REPO, jn as isSecretMarker, kn as isSecretClear, ln as arrayItemFieldPath, mn as normalizeSecretOwner, nt as nodePin, o as asJsonObject, ot as ReadinessRegistry, p as BOOT_RECOVERY_BACKOFF_MS, pn as isSecretRef, r as maskUrlCredentials, rt as readNodePin, st as ReadinessTimeoutError, t as sleep, un as buildSecretRef, ut as scopeKey, vn as createEvent, x as createDeviceProxy, y as DEVICE_SCOPED_CAPS, yn as emitReadiness, z as describeCustomActions, zt as knownSecretCount } from "./sleep-
|
|
2
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { $t as normalizeAddonInitResult, An as isSecretFieldView, Bt as registerKnownSecret, D as collectZodSecretPaths, Dn as SECRET_CLEAR, F as viewerUiCapability, Ft as createSecretsAccess, Gt as PEER_BYTES_STALL_MS, Ht as shortSecretRefHash, I as DEVICE_CHILDREN_BATCH_MAX, It as MIN_SCRUBBED_LENGTH, Jt as DATAPLANE_SECRET_HEADER, Kt as PEER_BYTES_TICKET_TTL_MS, Lt as clearKnownSecrets, Mn as isSecretMarkerLike, Nn as makeSecretMarker, Nt as resolveSecretViewsIn, O as isZodSecret, On as classifySecretWrite, P as deviceOpsCapability, Pn as toSecretFieldView, Pt as REVALIDATE_AFTER_MS, Rt as forgetKnownSecret, S as createEventBusSliceSource, Ut as PEER_BYTES_CHUNK_BYTES, V as adminUiCapability, Vt as scrubKnownSecrets, Wt as PEER_BYTES_MAX_OUTSTANDING, Xt as DisposerChain, Y as expandCapMethods, Zt as BaseAddon, _ as readErrorI18n, at as MODEL_FORMATS, b as isDeviceScopedCap, c as asString, cn as SECRET_REF_SCHEME, d as parseJsonUnknown, dn as formatSecretScope, f as hfModelUrl, fn as globalSecretScope, g as ErrorI18nPayloadSchema, hn as parseSecretRef, j as HF_REPO, jn as isSecretMarker, kn as isSecretClear, ln as arrayItemFieldPath, mn as normalizeSecretOwner, nt as nodePin, o as asJsonObject, ot as ReadinessRegistry, p as BOOT_RECOVERY_BACKOFF_MS, pn as isSecretRef, r as maskUrlCredentials, rt as readNodePin, st as ReadinessTimeoutError, t as sleep, un as buildSecretRef, ut as scopeKey, vn as createEvent, x as createDeviceProxy, y as DEVICE_SCOPED_CAPS, yn as emitReadiness, z as describeCustomActions, zt as knownSecretCount } from "./sleep-bgZLodYc.mjs";
|
|
2
|
+
import { t as EventCategory } from "./event-category-BvOFi6PY.mjs";
|
|
3
3
|
import { a as DeviceType, t as errMsg } from "./err-msg--2RrYiLO.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
@@ -59,6 +59,7 @@ declare const AddonListItemSchema: z.ZodObject<{
|
|
|
59
59
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
60
60
|
mode: z.ZodString;
|
|
61
61
|
state: z.ZodString;
|
|
62
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
62
63
|
}, z.core.$strip>>;
|
|
63
64
|
hasBackup: z.ZodOptional<z.ZodBoolean>;
|
|
64
65
|
health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -371,6 +372,7 @@ export declare const addonsCapability: {
|
|
|
371
372
|
pid: z.ZodOptional<z.ZodNumber>;
|
|
372
373
|
mode: z.ZodString;
|
|
373
374
|
state: z.ZodString;
|
|
375
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
374
376
|
}, z.core.$strip>>;
|
|
375
377
|
hasBackup: z.ZodOptional<z.ZodBoolean>;
|
|
376
378
|
health: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -75,6 +75,7 @@ export { filesystemBrowseCapability, type IFilesystemBrowseProvider, } from './f
|
|
|
75
75
|
export { AUTOMATIC_HUB_ADDRESS_FLAGS, checkRoleAddress, HUB_ADDRESS_ROLES, type HubAddressCheck, type HubAddressFlags, type HubAddressRole, type HubAddressRoleResolution, type HubAddressRoles, type HubAddressSource, type HubAppConnectionsResolution, HUB_MDNS_QUERY_NAME, HUB_MDNS_ROLE, HUB_MDNS_SERVICE_TYPE, HUB_MDNS_TXT_KEYS, AGENT_MDNS_QUERY_NAME, AGENT_MDNS_SERVICE_TYPE, AGENT_MDNS_TXT_KEYS, hubAddressHostname, isDefaultAppConnectionEndpoint, isSingleHubAddressRole, PUBLIC_ENDPOINT_HTTP_REASON, resolveAppConnections, resolveHubAddressRoles, resolveInternalAddress, resolveNotificationTapAddress, resolvePublicEndpoint, SINGLE_HUB_ADDRESS_ROLES, type SingleHubAddressRole, selectAppConnectionEndpoints, validateCustomAddress, } from './hub-address.js';
|
|
76
76
|
export { addonCatalogHref } from './addon-catalog-href.js';
|
|
77
77
|
export { type HfModelResolution, HfModelResolutionSchema, type ILlmProvider, type LlmDefault, LlmDefaultSchema, type LlmDefaultSelector, LlmDefaultSelectorSchema, type LlmProfile, type LlmProfileKind, type LlmProfileKindDescriptor, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, type LlmRuntimeNode, LlmRuntimeNodeSchema, type LlmUsageRollup, LlmUsageRollupSchema, llmCapability, type ManagedModelCatalogEntry, ManagedModelCatalogEntrySchema, } from './llm.cap.js';
|
|
78
|
+
export { type RawSecretMigrationInput, RawSecretMigrationInputSchema, type RawSecretMigrationReport, RawSecretMigrationReportSchema, } from './raw-secret-migration.js';
|
|
78
79
|
export { type AppleFmAvailability, AppleFmAvailabilitySchema, type AppleFmUnavailableReason, AppleFmUnavailableReasonSchema, type ILlmRuntimeProvider, type LlmDownloadProgress, LlmDownloadProgressSchema, type LlmNodeModel, LlmNodeModelSchema, type LlmRuntimeAppleCompleteInput, LlmRuntimeAppleCompleteInputSchema, type LlmRuntimeCancelInput, LlmRuntimeCancelInputSchema, type LlmRuntimeCompleteInput, LlmRuntimeCompleteInputSchema, type LlmRuntimeDiskUsage, LlmRuntimeDiskUsageSchema, type LlmRuntimeStatus, LlmRuntimeStatusSchema, llmRuntimeCapability, type ManagedModelExtraFile, ManagedModelExtraFileSchema, type ManagedModelRef, ManagedModelRefSchema, type ManagedRuntimeConfig, ManagedRuntimeConfigSchema, } from './llm-runtime.cap.js';
|
|
79
80
|
export { type LlmErrorCode, LlmErrorCodeSchema, type LlmGenerateBaseInput, LlmGenerateBaseInputSchema, type LlmGenerateErr, LlmGenerateErrSchema, type LlmGenerateOk, LlmGenerateOkSchema, type LlmGenerateResult, LlmGenerateResultSchema, type LlmImage, LlmImageSchema, type LlmRefusalSource, LlmRefusalSourceSchema, type LlmRetryPolicy, LlmRetryPolicySchema, LlmTimeoutDefaults, type LlmUsage, LlmUsageSchema, } from './llm-shared.js';
|
|
80
81
|
export type { ILoadContributionProvider, LoadContribution, LoadContributionAttribution, LoadContributionRole, } from './load-contribution.cap.js';
|
|
@@ -112,7 +113,7 @@ export { CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, OrchestratorMetri
|
|
|
112
113
|
export type { AudioStreamPick, CameraStream, CamProfile, CamStreamKind, DecodedAudioChunkWire, ProfileRtspEntry, ProfileSlot, ProfileSlotStatus, SubscribeAudioChunksInput, SubscribeAudioChunksResult, } from './schemas/streaming-shared.js';
|
|
113
114
|
export { AudioChunkFormatSchema, AudioStreamPickSchema, BrokerStatsSchema, BrokerStatusSchema, CAM_PROFILE_ORDER, CameraStreamSchema, CamProfileSchema, CamStreamKindSchema, CamStreamResolutionSchema, DecodedAudioChunkSchema, FrameHandleSchema, makeProfileBrokerId, makeSourceBrokerId, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, parseProfileBrokerId, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, selectAssignedProfileSlots, } from './schemas/streaming-shared.js';
|
|
114
115
|
export { buildEventKindDescriptor, EVENT_KIND_BY_CAP, EVENTFUL_CAP_NAMES, type SensorEventKindDescriptor, } from './sensor-event-kinds.js';
|
|
115
|
-
export { type ImageContract, ImageContractSchema, type ImageContractState, ImageContractStateSchema, type IServerManagementProvider, type ServerBootMode, ServerBootModeSchema, type ServerPackageStatus, ServerPackageStatusSchema, type ServerRollbackInfo, ServerRollbackInfoSchema, type ServerUpdateActionResult, ServerUpdateActionResultSchema, type ServerUpdateCheckResult, ServerUpdateCheckResultSchema, type ServerUpdateOutcome, ServerUpdateOutcomeSchema, type ServerUpdateState, ServerUpdateStateSchema, serverManagementCapability, type WrapperEvidence, WrapperEvidenceSchema, type WrapperIdentity, WrapperIdentitySchema, type WrapperKind, WrapperKindSchema, } from './server-management.cap.js';
|
|
116
|
+
export { type ImageContract, ImageContractSchema, type ImageContractState, ImageContractStateSchema, type IServerManagementProvider, type RunnerBootCheck, RunnerBootCheckSchema, type RunnerRefusal, RunnerRefusalSchema, type ServerBootMode, ServerBootModeSchema, type ServerPackageStatus, ServerPackageStatusSchema, type ServerRollbackInfo, ServerRollbackInfoSchema, type ServerUpdateActionResult, ServerUpdateActionResultSchema, type ServerUpdateCheckResult, ServerUpdateCheckResultSchema, type ServerUpdateOutcome, ServerUpdateOutcomeSchema, type ServerUpdateState, ServerUpdateStateSchema, serverManagementCapability, type UpdateBlocker, UpdateBlockerSchema, type WrapperEvidence, WrapperEvidenceSchema, type WrapperIdentity, WrapperIdentitySchema, type WrapperKind, WrapperKindSchema, } from './server-management.cap.js';
|
|
116
117
|
export { type BulkRecord, BulkRecordSchema, type CollectionColumn, CollectionColumnSchema, type CollectionIndex, CollectionIndexSchema, DATA_STORE_DATABASES, type DataStoreDatabase, DataStoreDatabaseSchema, type DeclareCollectionInput, DeclareCollectionInputSchema, type ISettingsStoreProvider, type MutationFilter, MutationFilterSchema, QueryFilterSchema, SettingsRecordSchema, type SettingsStoreClient, settingsStoreCapability, } from './settings-store.cap.js';
|
|
117
118
|
export type { ISmtpProvider } from './smtp-provider.cap.js';
|
|
118
119
|
export { SendEmailInputSchema, SendEmailResultSchema, SmtpStatusSchema, smtpProviderCapability, } from './smtp-provider.cap.js';
|
|
@@ -706,6 +706,25 @@ export declare const llmCapability: {
|
|
|
706
706
|
nodeId: z.ZodString;
|
|
707
707
|
}, z.core.$strip>>;
|
|
708
708
|
}, z.core.$strip>, "mutation">;
|
|
709
|
+
/**
|
|
710
|
+
* D878: move every profile's plaintext `apiKey` into the keychain (owner
|
|
711
|
+
* `ai`), leaving a marker in the row. Dry run unless `apply`; idempotent;
|
|
712
|
+
* counts only. The plaintext is cleared only after the keychain read-back
|
|
713
|
+
* matched.
|
|
714
|
+
*/
|
|
715
|
+
readonly migrateRawSecrets: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
716
|
+
apply: z.ZodBoolean;
|
|
717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
718
|
+
apply: z.ZodBoolean;
|
|
719
|
+
rows: z.ZodNumber;
|
|
720
|
+
raw: z.ZodNumber;
|
|
721
|
+
markers: z.ZodNumber;
|
|
722
|
+
migrated: z.ZodNumber;
|
|
723
|
+
failed: z.ZodNumber;
|
|
724
|
+
remainingRaw: z.ZodNumber;
|
|
725
|
+
unresolvedMarkers: z.ZodNumber;
|
|
726
|
+
verified: z.ZodBoolean;
|
|
727
|
+
}, z.core.$strip>, "mutation">;
|
|
709
728
|
readonly deleteProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
710
729
|
addonId: z.ZodString;
|
|
711
730
|
profileId: z.ZodString;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The report of a one-shot "move this owner's plaintext secrets into the
|
|
3
|
+
* keychain" run (D878). COUNTS only - never a value, never a ref.
|
|
4
|
+
*
|
|
5
|
+
* The owner runs it on its own rows, through its own write path; an operator
|
|
6
|
+
* script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
|
|
7
|
+
* Dry run (`apply: false`) reports what WOULD move and changes nothing.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from 'zod';
|
|
10
|
+
export declare const RawSecretMigrationInputSchema: z.ZodObject<{
|
|
11
|
+
apply: z.ZodBoolean;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type RawSecretMigrationInput = z.infer<typeof RawSecretMigrationInputSchema>;
|
|
14
|
+
export declare const RawSecretMigrationReportSchema: z.ZodObject<{
|
|
15
|
+
apply: z.ZodBoolean;
|
|
16
|
+
rows: z.ZodNumber;
|
|
17
|
+
raw: z.ZodNumber;
|
|
18
|
+
markers: z.ZodNumber;
|
|
19
|
+
migrated: z.ZodNumber;
|
|
20
|
+
failed: z.ZodNumber;
|
|
21
|
+
remainingRaw: z.ZodNumber;
|
|
22
|
+
unresolvedMarkers: z.ZodNumber;
|
|
23
|
+
verified: z.ZodBoolean;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type RawSecretMigrationReport = z.infer<typeof RawSecretMigrationReportSchema>;
|
|
@@ -203,6 +203,36 @@ declare const ServerRollbackInfoSchema: z.ZodObject<{
|
|
|
203
203
|
atMs: z.ZodNumber;
|
|
204
204
|
reason: z.ZodString;
|
|
205
205
|
}, z.core.$strip>;
|
|
206
|
+
/**
|
|
207
|
+
* The runner boot check (D877): the runners this node PLANNED (hub: one per
|
|
208
|
+
* `resolveRunnerId` over its forked addons; agent: the runners its process
|
|
209
|
+
* service holds, because only the hub plans) against the states the process
|
|
210
|
+
* service reports. Kept in memory, recomputed by the same one-shot check after
|
|
211
|
+
* every boot, served on `getServerPackageStatus`.
|
|
212
|
+
*
|
|
213
|
+
* `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
|
|
214
|
+
* refusal (an addon that said "I will not start, and here is why"), `missing` a
|
|
215
|
+
* planned runner the process service has no entry for.
|
|
216
|
+
*/
|
|
217
|
+
declare const RunnerRefusalSchema: z.ZodObject<{
|
|
218
|
+
runnerId: z.ZodString;
|
|
219
|
+
addonIds: z.ZodArray<z.ZodString>;
|
|
220
|
+
reason: z.ZodString;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
declare const RunnerBootCheckSchema: z.ZodObject<{
|
|
223
|
+
checkedAtMs: z.ZodNumber;
|
|
224
|
+
expected: z.ZodNumber;
|
|
225
|
+
running: z.ZodNumber;
|
|
226
|
+
failed: z.ZodArray<z.ZodString>;
|
|
227
|
+
refused: z.ZodArray<z.ZodObject<{
|
|
228
|
+
runnerId: z.ZodString;
|
|
229
|
+
addonIds: z.ZodArray<z.ZodString>;
|
|
230
|
+
reason: z.ZodString;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
missing: z.ZodArray<z.ZodString>;
|
|
233
|
+
pending: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
234
|
+
planKnown: z.ZodBoolean;
|
|
235
|
+
}, z.core.$strip>;
|
|
206
236
|
declare const ServerPackageStatusSchema: z.ZodObject<{
|
|
207
237
|
packageName: z.ZodString;
|
|
208
238
|
runningVersion: z.ZodNullable<z.ZodString>;
|
|
@@ -275,6 +305,20 @@ declare const ServerPackageStatusSchema: z.ZodObject<{
|
|
|
275
305
|
}, z.core.$strip>>;
|
|
276
306
|
currentVersion: z.ZodNullable<z.ZodString>;
|
|
277
307
|
}, z.core.$strip>>;
|
|
308
|
+
runners: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
checkedAtMs: z.ZodNumber;
|
|
310
|
+
expected: z.ZodNumber;
|
|
311
|
+
running: z.ZodNumber;
|
|
312
|
+
failed: z.ZodArray<z.ZodString>;
|
|
313
|
+
refused: z.ZodArray<z.ZodObject<{
|
|
314
|
+
runnerId: z.ZodString;
|
|
315
|
+
addonIds: z.ZodArray<z.ZodString>;
|
|
316
|
+
reason: z.ZodString;
|
|
317
|
+
}, z.core.$strip>>;
|
|
318
|
+
missing: z.ZodArray<z.ZodString>;
|
|
319
|
+
pending: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
|
+
planKnown: z.ZodBoolean;
|
|
321
|
+
}, z.core.$strip>>;
|
|
278
322
|
}, z.core.$strip>;
|
|
279
323
|
declare const ServerUpdateCheckResultSchema: z.ZodObject<{
|
|
280
324
|
packageName: z.ZodString;
|
|
@@ -309,6 +353,12 @@ declare const ServerUpdateOutcomeSchema: z.ZodEnum<{
|
|
|
309
353
|
"restart-scheduled": "restart-scheduled";
|
|
310
354
|
staged: "staged";
|
|
311
355
|
}>;
|
|
356
|
+
/** One addon the pre-flight found the target version would refuse (D877). */
|
|
357
|
+
declare const UpdateBlockerSchema: z.ZodObject<{
|
|
358
|
+
addonId: z.ZodString;
|
|
359
|
+
reason: z.ZodString;
|
|
360
|
+
remedy: z.ZodString;
|
|
361
|
+
}, z.core.$strip>;
|
|
312
362
|
declare const ServerUpdateActionResultSchema: z.ZodObject<{
|
|
313
363
|
accepted: z.ZodBoolean;
|
|
314
364
|
targetVersion: z.ZodNullable<z.ZodString>;
|
|
@@ -323,6 +373,11 @@ declare const ServerUpdateActionResultSchema: z.ZodObject<{
|
|
|
323
373
|
}>>;
|
|
324
374
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
325
375
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
376
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
377
|
+
addonId: z.ZodString;
|
|
378
|
+
reason: z.ZodString;
|
|
379
|
+
remedy: z.ZodString;
|
|
380
|
+
}, z.core.$strip>>>;
|
|
326
381
|
}, z.core.$strip>;
|
|
327
382
|
export declare const serverManagementCapability: {
|
|
328
383
|
readonly name: 'server-management';
|
|
@@ -401,6 +456,20 @@ export declare const serverManagementCapability: {
|
|
|
401
456
|
}, z.core.$strip>>;
|
|
402
457
|
currentVersion: z.ZodNullable<z.ZodString>;
|
|
403
458
|
}, z.core.$strip>>;
|
|
459
|
+
runners: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
checkedAtMs: z.ZodNumber;
|
|
461
|
+
expected: z.ZodNumber;
|
|
462
|
+
running: z.ZodNumber;
|
|
463
|
+
failed: z.ZodArray<z.ZodString>;
|
|
464
|
+
refused: z.ZodArray<z.ZodObject<{
|
|
465
|
+
runnerId: z.ZodString;
|
|
466
|
+
addonIds: z.ZodArray<z.ZodString>;
|
|
467
|
+
reason: z.ZodString;
|
|
468
|
+
}, z.core.$strip>>;
|
|
469
|
+
missing: z.ZodArray<z.ZodString>;
|
|
470
|
+
pending: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
471
|
+
planKnown: z.ZodBoolean;
|
|
472
|
+
}, z.core.$strip>>;
|
|
404
473
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
405
474
|
readonly checkServerUpdate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
406
475
|
packageName: z.ZodString;
|
|
@@ -414,6 +483,7 @@ export declare const serverManagementCapability: {
|
|
|
414
483
|
}, z.core.$strip>, "mutation">;
|
|
415
484
|
readonly applyServerUpdate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
416
485
|
version: z.ZodOptional<z.ZodString>;
|
|
486
|
+
acknowledgeRefusals: z.ZodOptional<z.ZodBoolean>;
|
|
417
487
|
}, z.core.$strip>, z.ZodObject<{
|
|
418
488
|
accepted: z.ZodBoolean;
|
|
419
489
|
targetVersion: z.ZodNullable<z.ZodString>;
|
|
@@ -428,6 +498,11 @@ export declare const serverManagementCapability: {
|
|
|
428
498
|
}>>;
|
|
429
499
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
430
500
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
501
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
502
|
+
addonId: z.ZodString;
|
|
503
|
+
reason: z.ZodString;
|
|
504
|
+
remedy: z.ZodString;
|
|
505
|
+
}, z.core.$strip>>>;
|
|
431
506
|
}, z.core.$strip>, "mutation">;
|
|
432
507
|
readonly rollbackServerUpdate: import("./capability-definition.js").CapabilityMethodSchema<z.ZodVoid, z.ZodObject<{
|
|
433
508
|
accepted: z.ZodBoolean;
|
|
@@ -443,6 +518,11 @@ export declare const serverManagementCapability: {
|
|
|
443
518
|
}>>;
|
|
444
519
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
445
520
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
521
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
522
|
+
addonId: z.ZodString;
|
|
523
|
+
reason: z.ZodString;
|
|
524
|
+
remedy: z.ZodString;
|
|
525
|
+
}, z.core.$strip>>>;
|
|
446
526
|
}, z.core.$strip>, "mutation">;
|
|
447
527
|
/**
|
|
448
528
|
* Plain process restart of the node's root process — no version change.
|
|
@@ -465,6 +545,11 @@ export declare const serverManagementCapability: {
|
|
|
465
545
|
}>>;
|
|
466
546
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
467
547
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
548
|
+
blockers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
549
|
+
addonId: z.ZodString;
|
|
550
|
+
reason: z.ZodString;
|
|
551
|
+
remedy: z.ZodString;
|
|
552
|
+
}, z.core.$strip>>>;
|
|
468
553
|
}, z.core.$strip>, "mutation">;
|
|
469
554
|
};
|
|
470
555
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
@@ -485,4 +570,7 @@ export type ServerPackageStatus = z.infer<typeof ServerPackageStatusSchema>;
|
|
|
485
570
|
export type ServerUpdateCheckResult = z.infer<typeof ServerUpdateCheckResultSchema>;
|
|
486
571
|
export type ServerUpdateOutcome = z.infer<typeof ServerUpdateOutcomeSchema>;
|
|
487
572
|
export type ServerUpdateActionResult = z.infer<typeof ServerUpdateActionResultSchema>;
|
|
488
|
-
export
|
|
573
|
+
export type RunnerBootCheck = z.infer<typeof RunnerBootCheckSchema>;
|
|
574
|
+
export type RunnerRefusal = z.infer<typeof RunnerRefusalSchema>;
|
|
575
|
+
export type UpdateBlocker = z.infer<typeof UpdateBlockerSchema>;
|
|
576
|
+
export { RunnerBootCheckSchema, RunnerRefusalSchema, UpdateBlockerSchema, ServerBootModeSchema, ServerUpdateStateSchema, ImageContractStateSchema, ImageContractSchema, WrapperKindSchema, WrapperEvidenceSchema, WrapperIdentitySchema, ServerRollbackInfoSchema, ServerPackageStatusSchema, ServerUpdateCheckResultSchema, ServerUpdateOutcomeSchema, ServerUpdateActionResultSchema, };
|
|
@@ -1056,6 +1056,24 @@ export declare const userManagementCapability: {
|
|
|
1056
1056
|
enabled: z.ZodBoolean;
|
|
1057
1057
|
confirmedAt: z.ZodNullable<z.ZodNumber>;
|
|
1058
1058
|
}, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
1059
|
+
/**
|
|
1060
|
+
* D878: move every TOTP seed stored in plaintext into the keychain (owner
|
|
1061
|
+
* `system`), leaving a marker in the row. Dry run unless `apply`;
|
|
1062
|
+
* idempotent; counts only.
|
|
1063
|
+
*/
|
|
1064
|
+
readonly migrateRawSecrets: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1065
|
+
apply: z.ZodBoolean;
|
|
1066
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1067
|
+
apply: z.ZodBoolean;
|
|
1068
|
+
rows: z.ZodNumber;
|
|
1069
|
+
raw: z.ZodNumber;
|
|
1070
|
+
markers: z.ZodNumber;
|
|
1071
|
+
migrated: z.ZodNumber;
|
|
1072
|
+
failed: z.ZodNumber;
|
|
1073
|
+
remainingRaw: z.ZodNumber;
|
|
1074
|
+
unresolvedMarkers: z.ZodNumber;
|
|
1075
|
+
verified: z.ZodBoolean;
|
|
1076
|
+
}, z.core.$strip>, "mutation">;
|
|
1059
1077
|
readonly verifyTotp: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1060
1078
|
userId: z.ZodString;
|
|
1061
1079
|
code: z.ZodString;
|
package/dist/client.js
CHANGED
|
@@ -27812,6 +27812,7 @@ function createSystemProxy(api) {
|
|
|
27812
27812
|
listProfileKinds: (input) => dispatch("llm", "listProfileKinds", "query", input),
|
|
27813
27813
|
listProfiles: (input) => dispatch("llm", "listProfiles", "query", input),
|
|
27814
27814
|
upsertProfile: (input) => dispatch("llm", "upsertProfile", "mutation", input),
|
|
27815
|
+
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27815
27816
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27816
27817
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27817
27818
|
listModels: (input) => dispatch("llm", "listModels", "query", input),
|
|
@@ -28259,6 +28260,7 @@ function createSystemProxy(api) {
|
|
|
28259
28260
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28260
28261
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|
|
28261
28262
|
getTotpStatus: (input) => dispatch("userManagement", "getTotpStatus", "query", input),
|
|
28263
|
+
migrateRawSecrets: (input) => dispatch("userManagement", "migrateRawSecrets", "mutation", input),
|
|
28262
28264
|
verifyTotp: (input) => dispatch("userManagement", "verifyTotp", "mutation", input),
|
|
28263
28265
|
oauthIssueCode: (input) => dispatch("userManagement", "oauthIssueCode", "mutation", input),
|
|
28264
28266
|
oauthExchangeCode: (input) => dispatch("userManagement", "oauthExchangeCode", "mutation", input),
|
package/dist/client.mjs
CHANGED
|
@@ -27811,6 +27811,7 @@ function createSystemProxy(api) {
|
|
|
27811
27811
|
listProfileKinds: (input) => dispatch("llm", "listProfileKinds", "query", input),
|
|
27812
27812
|
listProfiles: (input) => dispatch("llm", "listProfiles", "query", input),
|
|
27813
27813
|
upsertProfile: (input) => dispatch("llm", "upsertProfile", "mutation", input),
|
|
27814
|
+
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27814
27815
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27815
27816
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27816
27817
|
listModels: (input) => dispatch("llm", "listModels", "query", input),
|
|
@@ -28258,6 +28259,7 @@ function createSystemProxy(api) {
|
|
|
28258
28259
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28259
28260
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|
|
28260
28261
|
getTotpStatus: (input) => dispatch("userManagement", "getTotpStatus", "query", input),
|
|
28262
|
+
migrateRawSecrets: (input) => dispatch("userManagement", "migrateRawSecrets", "mutation", input),
|
|
28261
28263
|
verifyTotp: (input) => dispatch("userManagement", "verifyTotp", "mutation", input),
|
|
28262
28264
|
oauthIssueCode: (input) => dispatch("userManagement", "oauthIssueCode", "mutation", input),
|
|
28263
28265
|
oauthExchangeCode: (input) => dispatch("userManagement", "oauthExchangeCode", "mutation", input),
|
|
@@ -61,6 +61,24 @@ export declare enum EventCategory {
|
|
|
61
61
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
62
62
|
*/
|
|
63
63
|
AddonRunnerFailed = "addon.runner-failed",
|
|
64
|
+
/**
|
|
65
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
66
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
67
|
+
* action. One event per refusal.
|
|
68
|
+
*/
|
|
69
|
+
AddonRunnerRefused = "addon.runner-refused",
|
|
70
|
+
/**
|
|
71
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
72
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
73
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
74
|
+
*/
|
|
75
|
+
ProcessStateChanged = "process.state-changed",
|
|
76
|
+
/**
|
|
77
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
78
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
79
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
80
|
+
*/
|
|
81
|
+
SystemRunnerCheck = "system.runner-check",
|
|
64
82
|
AddonError = "addon.error",
|
|
65
83
|
AddonPageReady = "addon.page-ready",
|
|
66
84
|
AddonWidgetReady = "addon.widget-ready",
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-Hoe-mqbd.js");
|
|
3
3
|
//#region src/enums/event-source-type.ts
|
|
4
4
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
5
5
|
EventSourceType["Addon"] = "addon";
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-BvOFi6PY.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|
|
@@ -62,6 +62,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
62
62
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
63
63
|
*/
|
|
64
64
|
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
65
|
+
/**
|
|
66
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
67
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
68
|
+
* action. One event per refusal.
|
|
69
|
+
*/
|
|
70
|
+
EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
|
|
71
|
+
/**
|
|
72
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
73
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
74
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
75
|
+
*/
|
|
76
|
+
EventCategory["ProcessStateChanged"] = "process.state-changed";
|
|
77
|
+
/**
|
|
78
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
79
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
80
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
81
|
+
*/
|
|
82
|
+
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
65
83
|
EventCategory["AddonError"] = "addon.error";
|
|
66
84
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
67
85
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -62,6 +62,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
62
62
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
63
63
|
*/
|
|
64
64
|
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
65
|
+
/**
|
|
66
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
67
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
68
|
+
* action. One event per refusal.
|
|
69
|
+
*/
|
|
70
|
+
EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
|
|
71
|
+
/**
|
|
72
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
73
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
74
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
75
|
+
*/
|
|
76
|
+
EventCategory["ProcessStateChanged"] = "process.state-changed";
|
|
77
|
+
/**
|
|
78
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
79
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
80
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
81
|
+
*/
|
|
82
|
+
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
65
83
|
EventCategory["AddonError"] = "addon.error";
|
|
66
84
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
67
85
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -4127,6 +4127,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4127
4127
|
output: z.infer<typeof llmCapability.methods.upsertProfile.output>;
|
|
4128
4128
|
meta: object;
|
|
4129
4129
|
}>;
|
|
4130
|
+
migrateRawSecrets: TRPCMutationProcedure<{
|
|
4131
|
+
input: {
|
|
4132
|
+
[x: string]: unknown;
|
|
4133
|
+
} & z.input<typeof llmCapability.methods.migrateRawSecrets.input>;
|
|
4134
|
+
output: z.infer<typeof llmCapability.methods.migrateRawSecrets.output>;
|
|
4135
|
+
meta: object;
|
|
4136
|
+
}>;
|
|
4130
4137
|
deleteProfile: TRPCMutationProcedure<{
|
|
4131
4138
|
input: {
|
|
4132
4139
|
[x: string]: unknown;
|
|
@@ -10068,6 +10075,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
10068
10075
|
output: z.infer<typeof userManagementCapability.methods.getTotpStatus.output>;
|
|
10069
10076
|
meta: object;
|
|
10070
10077
|
}>;
|
|
10078
|
+
migrateRawSecrets: TRPCMutationProcedure<{
|
|
10079
|
+
input: {
|
|
10080
|
+
[x: string]: unknown;
|
|
10081
|
+
} & z.input<typeof userManagementCapability.methods.migrateRawSecrets.input>;
|
|
10082
|
+
output: z.infer<typeof userManagementCapability.methods.migrateRawSecrets.output>;
|
|
10083
|
+
meta: object;
|
|
10084
|
+
}>;
|
|
10071
10085
|
verifyTotp: TRPCMutationProcedure<{
|
|
10072
10086
|
input: {
|
|
10073
10087
|
[x: string]: unknown;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1343 method paths across 175 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -84,7 +84,7 @@ export interface SystemProxy {
|
|
|
84
84
|
readonly faceGallery: Pick<InferProvider<typeof faceGalleryCapability>, 'listIdentities' | 'createIdentity' | 'renameIdentity' | 'deleteIdentity' | 'listIdentitySamples' | 'auditIdentitySamples' | 'removeSample' | 'getFaceMedia' | 'assignFace' | 'unassignFace' | 'deleteFace' | 'assignFaces' | 'unassignFaces' | 'suggestFaceClusters'>;
|
|
85
85
|
readonly integrations: Pick<InferProvider<typeof integrationsCapability>, 'list' | 'get' | 'getByAddonId' | 'create' | 'update' | 'delete' | 'getSettings' | 'setSettings' | 'getAvailableTypes' | 'testConnection'>;
|
|
86
86
|
readonly keychainAdmin: Pick<InferProvider<typeof keychainAdminCapability>, 'status' | 'listSecrets' | 'listAudit' | 'reveal' | 'setSystemSecret' | 'importSecret' | 'deleteOrphans' | 'rotateMasterKey' | 'purgeRetiredKeys' | 'downloadRecoveryKey' | 'resetKeychain' | 'resetReport' | 'acknowledgeReset'>;
|
|
87
|
-
readonly llm: Pick<InferProvider<typeof llmCapability>, 'generate' | 'generateVision' | 'cancel' | 'listProfileKinds' | 'listProfiles' | 'upsertProfile' | 'deleteProfile' | 'testProfile' | 'listModels' | 'getDefaults' | 'setDefault' | 'getUsage' | 'listModelCatalog' | 'listRuntimeNodes' | 'listNodeModels' | 'resolveModelRef' | 'installModel' | 'deleteModel' | 'getRuntimeStatus' | 'startRuntime' | 'stopRuntime'>;
|
|
87
|
+
readonly llm: Pick<InferProvider<typeof llmCapability>, 'generate' | 'generateVision' | 'cancel' | 'listProfileKinds' | 'listProfiles' | 'upsertProfile' | 'migrateRawSecrets' | 'deleteProfile' | 'testProfile' | 'listModels' | 'getDefaults' | 'setDefault' | 'getUsage' | 'listModelCatalog' | 'listRuntimeNodes' | 'listNodeModels' | 'resolveModelRef' | 'installModel' | 'deleteModel' | 'getRuntimeStatus' | 'startRuntime' | 'stopRuntime'>;
|
|
88
88
|
readonly localNetwork: Pick<InferProvider<typeof localNetworkCapability>, 'list' | 'getPreferred' | 'getConnectionEndpoints' | 'getNotificationEndpoint' | 'setNotificationEndpoint' | 'getViewerEndpoints' | 'setViewerEndpoints' | 'getAddresses' | 'addCustomAddress' | 'removeCustomAddress' | 'setAddressRole' | 'getHubAddresses' | 'getAllowedAddresses' | 'setAllowedAddresses' | 'resetAllowlistToBestMatch' | 'getTlsStatus' | 'regenerateCertificate' | 'uploadCertificate' | 'downloadCa' | 'useStoredUploadedCertificate' | 'revertToGeneratedCertificate'>;
|
|
89
89
|
readonly meshNetwork: Pick<InferProvider<typeof meshNetworkCapability>, 'getStatus' | 'join' | 'startLogin' | 'leave' | 'logout' | 'listPeers' | 'testConnection'>;
|
|
90
90
|
readonly metricsProvider: Pick<InferProvider<typeof metricsProviderCapability>, 'collectSnapshot' | 'getCached' | 'getCurrent' | 'getDiskSpace' | 'getGpuInfo' | 'getCpuTemperature' | 'getProcessStats' | 'listAddonInstances' | 'getAddonStats' | 'listNodeProcesses' | 'getLoadSeries'>;
|
|
@@ -112,7 +112,7 @@ export interface SystemProxy {
|
|
|
112
112
|
readonly toast: Pick<InferProvider<typeof toastCapability>, 'onToast'>;
|
|
113
113
|
readonly training: Pick<InferProvider<typeof trainingCapability>, 'listBaseModels' | 'planJob' | 'startJob' | 'startJobBatch' | 'listJobs' | 'getJob' | 'cancelJob' | 'getJobResult' | 'registerResult' | 'canaryResult' | 'rollbackCanary' | 'discardResult'>;
|
|
114
114
|
readonly turnProvider: Pick<InferProvider<typeof turnProviderCapability>, 'getTurnServers'>;
|
|
115
|
-
readonly userManagement: Pick<InferProvider<typeof userManagementCapability>, 'listUsers' | 'createUser' | 'updateUser' | 'deleteUser' | 'resetPassword' | 'setUserScopes' | 'validateCredentials' | 'listApiKeys' | 'revokeApiKey' | 'createScopedToken' | 'revokeScopedToken' | 'validateScopedToken' | 'listScopedTokens' | 'setupTotp' | 'confirmTotp' | 'disableTotp' | 'getTotpStatus' | 'verifyTotp' | 'oauthIssueCode' | 'oauthExchangeCode' | 'oauthRefresh' | 'oauthVerifyAccessToken' | 'listExternalIdentities' | 'findUserByExternalIdentity' | 'unlinkExternalIdentity' | 'listOauthSessions' | 'revokeOauthSession'>;
|
|
115
|
+
readonly userManagement: Pick<InferProvider<typeof userManagementCapability>, 'listUsers' | 'createUser' | 'updateUser' | 'deleteUser' | 'resetPassword' | 'setUserScopes' | 'validateCredentials' | 'listApiKeys' | 'revokeApiKey' | 'createScopedToken' | 'revokeScopedToken' | 'validateScopedToken' | 'listScopedTokens' | 'setupTotp' | 'confirmTotp' | 'disableTotp' | 'getTotpStatus' | 'migrateRawSecrets' | 'verifyTotp' | 'oauthIssueCode' | 'oauthExchangeCode' | 'oauthRefresh' | 'oauthVerifyAccessToken' | 'listExternalIdentities' | 'findUserByExternalIdentity' | 'unlinkExternalIdentity' | 'listOauthSessions' | 'revokeOauthSession'>;
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* Build a `SystemProxy` that dispatches every namespace method through
|