@camstack/types 1.2.377 → 1.2.379
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/core-blocks.cap.d.ts +26 -4
- package/dist/capabilities/index.d.ts +2 -1
- package/dist/capabilities/llm.cap.d.ts +20 -0
- package/dist/capabilities/raw-secret-migration.d.ts +26 -0
- package/dist/capabilities/server-management.cap.d.ts +89 -1
- package/dist/capabilities/user-management.cap.d.ts +19 -0
- package/dist/client.js +3 -0
- package/dist/client.mjs +3 -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 +21 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +172 -12
- package/dist/index.mjs +167 -13
- 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-D-Q2_Mcd.mjs} +2 -2
- package/dist/{sleep-Dq0Uyeh0.js → sleep-DQYi915G.js} +7 -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-DQYi915G.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
|
|
2
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { $t as normalizeAddonInitResult, An as isSecretClear, Bt as registerKnownSecret, D as collectZodSecretPaths, F as viewerUiCapability, Fn as toSecretFieldView, 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 isSecretMarker, Nn as isSecretMarkerLike, Nt as resolveSecretViewsIn, O as isZodSecret, On as SECRET_CLEAR, P as deviceOpsCapability, Pn as makeSecretMarker, 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, bn as emitReadiness, c as asString, d as parseJsonUnknown, dn as buildSecretRef, f as hfModelUrl, fn as formatSecretScope, g as ErrorI18nPayloadSchema, gn as parseSecretRef, hn as normalizeSecretOwner, j as HF_REPO, jn as isSecretFieldView, kn as classifySecretWrite, ln as SECRET_REF_SCHEME, mn as isSecretRef, nt as nodePin, o as asJsonObject, ot as ReadinessRegistry, p as BOOT_RECOVERY_BACKOFF_MS, pn as globalSecretScope, r as maskUrlCredentials, rt as readNodePin, st as ReadinessTimeoutError, t as sleep, un as arrayItemFieldPath, ut as scopeKey, x as createDeviceProxy, y as DEVICE_SCOPED_CAPS, yn as createEvent, z as describeCustomActions, zt as knownSecretCount } from "./sleep-D-Q2_Mcd.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<{
|
|
@@ -2483,7 +2483,8 @@ export declare const coreBlocksCapability: {
|
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Hydrated settings form for one block, or null until a `settingsSchema`
|
|
2485
2485
|
* is known (extracted from the compiled entry's named export, or set on
|
|
2486
|
-
* the block). Values live in the `
|
|
2486
|
+
* the block). Values live in the block addon's `addon-settings` rows (D880);
|
|
2487
|
+
* a password field answers as a "set" view, never the value.
|
|
2487
2488
|
*/
|
|
2488
2489
|
readonly getBlockSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
2489
2490
|
blockId: z.ZodString;
|
|
@@ -2517,9 +2518,10 @@ export declare const coreBlocksCapability: {
|
|
|
2517
2518
|
}, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
|
|
2518
2519
|
/**
|
|
2519
2520
|
* Patch persisted preference values for one block. The schema is not
|
|
2520
|
-
* rewritten here — only values. Scripts read the same
|
|
2521
|
-
* `ctx.settings.readAddonStore()
|
|
2522
|
-
* `
|
|
2521
|
+
* rewritten here — only values. Scripts read the same rows via
|
|
2522
|
+
* `ctx.settings.readAddonStore()`. A field the schema declares `password` /
|
|
2523
|
+
* `secret: true` is stored in the keychain (owner = the block's addon id)
|
|
2524
|
+
* and the row holds a marker; a REDACTED or view value keeps the stored one.
|
|
2523
2525
|
*/
|
|
2524
2526
|
readonly updateBlockSettings: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
2525
2527
|
blockId: z.ZodString;
|
|
@@ -2527,6 +2529,26 @@ export declare const coreBlocksCapability: {
|
|
|
2527
2529
|
}, z.core.$strip>, z.ZodObject<{
|
|
2528
2530
|
success: z.ZodLiteral<true>;
|
|
2529
2531
|
}, z.core.$strip>, "mutation">;
|
|
2532
|
+
/**
|
|
2533
|
+
* D880: move every plaintext password a block's `settingsSchema` declares
|
|
2534
|
+
* into the keychain and delete the legacy `core-blocks:settings` copy. Dry
|
|
2535
|
+
* run unless `apply`; idempotent; counts only. A secret is read back from
|
|
2536
|
+
* the keychain before its row is rewritten.
|
|
2537
|
+
*/
|
|
2538
|
+
readonly migrateRawSecrets: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
2539
|
+
apply: z.ZodBoolean;
|
|
2540
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2541
|
+
apply: z.ZodBoolean;
|
|
2542
|
+
rows: z.ZodNumber;
|
|
2543
|
+
raw: z.ZodNumber;
|
|
2544
|
+
markers: z.ZodNumber;
|
|
2545
|
+
migrated: z.ZodNumber;
|
|
2546
|
+
failed: z.ZodNumber;
|
|
2547
|
+
remainingRaw: z.ZodNumber;
|
|
2548
|
+
unresolvedMarkers: z.ZodNumber;
|
|
2549
|
+
redundantCopies: z.ZodOptional<z.ZodNumber>;
|
|
2550
|
+
verified: z.ZodBoolean;
|
|
2551
|
+
}, z.core.$strip>, "mutation">;
|
|
2530
2552
|
/**
|
|
2531
2553
|
* The declaration files the editor type-checks against.
|
|
2532
2554
|
*
|
|
@@ -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,26 @@ 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
|
+
redundantCopies: z.ZodOptional<z.ZodNumber>;
|
|
727
|
+
verified: z.ZodBoolean;
|
|
728
|
+
}, z.core.$strip>, "mutation">;
|
|
709
729
|
readonly deleteProfile: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
710
730
|
addonId: z.ZodString;
|
|
711
731
|
profileId: z.ZodString;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
redundantCopies: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
verified: z.ZodBoolean;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
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,25 @@ 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
|
+
redundantCopies: z.ZodOptional<z.ZodNumber>;
|
|
1076
|
+
verified: z.ZodBoolean;
|
|
1077
|
+
}, z.core.$strip>, "mutation">;
|
|
1059
1078
|
readonly verifyTotp: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
1060
1079
|
userId: z.ZodString;
|
|
1061
1080
|
code: z.ZodString;
|
package/dist/client.js
CHANGED
|
@@ -27640,6 +27640,7 @@ function createSystemProxy(api) {
|
|
|
27640
27640
|
compile: (input) => dispatch("coreBlocks", "compile", "mutation", input),
|
|
27641
27641
|
getBlockSettings: (input) => dispatch("coreBlocks", "getBlockSettings", "query", input),
|
|
27642
27642
|
updateBlockSettings: (input) => dispatch("coreBlocks", "updateBlockSettings", "mutation", input),
|
|
27643
|
+
migrateRawSecrets: (input) => dispatch("coreBlocks", "migrateRawSecrets", "mutation", input),
|
|
27643
27644
|
getTypeDefs: (input) => dispatch("coreBlocks", "getTypeDefs", "query", input),
|
|
27644
27645
|
createComposition: (input) => dispatch("coreBlocks", "createComposition", "mutation", input),
|
|
27645
27646
|
updateComposition: (input) => dispatch("coreBlocks", "updateComposition", "mutation", input),
|
|
@@ -27812,6 +27813,7 @@ function createSystemProxy(api) {
|
|
|
27812
27813
|
listProfileKinds: (input) => dispatch("llm", "listProfileKinds", "query", input),
|
|
27813
27814
|
listProfiles: (input) => dispatch("llm", "listProfiles", "query", input),
|
|
27814
27815
|
upsertProfile: (input) => dispatch("llm", "upsertProfile", "mutation", input),
|
|
27816
|
+
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27815
27817
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27816
27818
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27817
27819
|
listModels: (input) => dispatch("llm", "listModels", "query", input),
|
|
@@ -28259,6 +28261,7 @@ function createSystemProxy(api) {
|
|
|
28259
28261
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28260
28262
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|
|
28261
28263
|
getTotpStatus: (input) => dispatch("userManagement", "getTotpStatus", "query", input),
|
|
28264
|
+
migrateRawSecrets: (input) => dispatch("userManagement", "migrateRawSecrets", "mutation", input),
|
|
28262
28265
|
verifyTotp: (input) => dispatch("userManagement", "verifyTotp", "mutation", input),
|
|
28263
28266
|
oauthIssueCode: (input) => dispatch("userManagement", "oauthIssueCode", "mutation", input),
|
|
28264
28267
|
oauthExchangeCode: (input) => dispatch("userManagement", "oauthExchangeCode", "mutation", input),
|
package/dist/client.mjs
CHANGED
|
@@ -27639,6 +27639,7 @@ function createSystemProxy(api) {
|
|
|
27639
27639
|
compile: (input) => dispatch("coreBlocks", "compile", "mutation", input),
|
|
27640
27640
|
getBlockSettings: (input) => dispatch("coreBlocks", "getBlockSettings", "query", input),
|
|
27641
27641
|
updateBlockSettings: (input) => dispatch("coreBlocks", "updateBlockSettings", "mutation", input),
|
|
27642
|
+
migrateRawSecrets: (input) => dispatch("coreBlocks", "migrateRawSecrets", "mutation", input),
|
|
27642
27643
|
getTypeDefs: (input) => dispatch("coreBlocks", "getTypeDefs", "query", input),
|
|
27643
27644
|
createComposition: (input) => dispatch("coreBlocks", "createComposition", "mutation", input),
|
|
27644
27645
|
updateComposition: (input) => dispatch("coreBlocks", "updateComposition", "mutation", input),
|
|
@@ -27811,6 +27812,7 @@ function createSystemProxy(api) {
|
|
|
27811
27812
|
listProfileKinds: (input) => dispatch("llm", "listProfileKinds", "query", input),
|
|
27812
27813
|
listProfiles: (input) => dispatch("llm", "listProfiles", "query", input),
|
|
27813
27814
|
upsertProfile: (input) => dispatch("llm", "upsertProfile", "mutation", input),
|
|
27815
|
+
migrateRawSecrets: (input) => dispatch("llm", "migrateRawSecrets", "mutation", input),
|
|
27814
27816
|
deleteProfile: (input) => dispatch("llm", "deleteProfile", "mutation", input),
|
|
27815
27817
|
testProfile: (input) => dispatch("llm", "testProfile", "mutation", input),
|
|
27816
27818
|
listModels: (input) => dispatch("llm", "listModels", "query", input),
|
|
@@ -28258,6 +28260,7 @@ function createSystemProxy(api) {
|
|
|
28258
28260
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
28259
28261
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|
|
28260
28262
|
getTotpStatus: (input) => dispatch("userManagement", "getTotpStatus", "query", input),
|
|
28263
|
+
migrateRawSecrets: (input) => dispatch("userManagement", "migrateRawSecrets", "mutation", input),
|
|
28261
28264
|
verifyTotp: (input) => dispatch("userManagement", "verifyTotp", "mutation", input),
|
|
28262
28265
|
oauthIssueCode: (input) => dispatch("userManagement", "oauthIssueCode", "mutation", input),
|
|
28263
28266
|
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";
|
|
@@ -1713,6 +1713,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1713
1713
|
output: z.infer<typeof coreBlocksCapability.methods.updateBlockSettings.output>;
|
|
1714
1714
|
meta: object;
|
|
1715
1715
|
}>;
|
|
1716
|
+
migrateRawSecrets: TRPCMutationProcedure<{
|
|
1717
|
+
input: {
|
|
1718
|
+
[x: string]: unknown;
|
|
1719
|
+
} & z.input<typeof coreBlocksCapability.methods.migrateRawSecrets.input>;
|
|
1720
|
+
output: z.infer<typeof coreBlocksCapability.methods.migrateRawSecrets.output>;
|
|
1721
|
+
meta: object;
|
|
1722
|
+
}>;
|
|
1716
1723
|
getTypeDefs: TRPCQueryProcedure<{
|
|
1717
1724
|
input: {
|
|
1718
1725
|
[x: string]: unknown;
|
|
@@ -4127,6 +4134,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
4127
4134
|
output: z.infer<typeof llmCapability.methods.upsertProfile.output>;
|
|
4128
4135
|
meta: object;
|
|
4129
4136
|
}>;
|
|
4137
|
+
migrateRawSecrets: TRPCMutationProcedure<{
|
|
4138
|
+
input: {
|
|
4139
|
+
[x: string]: unknown;
|
|
4140
|
+
} & z.input<typeof llmCapability.methods.migrateRawSecrets.input>;
|
|
4141
|
+
output: z.infer<typeof llmCapability.methods.migrateRawSecrets.output>;
|
|
4142
|
+
meta: object;
|
|
4143
|
+
}>;
|
|
4130
4144
|
deleteProfile: TRPCMutationProcedure<{
|
|
4131
4145
|
input: {
|
|
4132
4146
|
[x: string]: unknown;
|
|
@@ -10068,6 +10082,13 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
10068
10082
|
output: z.infer<typeof userManagementCapability.methods.getTotpStatus.output>;
|
|
10069
10083
|
meta: object;
|
|
10070
10084
|
}>;
|
|
10085
|
+
migrateRawSecrets: TRPCMutationProcedure<{
|
|
10086
|
+
input: {
|
|
10087
|
+
[x: string]: unknown;
|
|
10088
|
+
} & z.input<typeof userManagementCapability.methods.migrateRawSecrets.input>;
|
|
10089
|
+
output: z.infer<typeof userManagementCapability.methods.migrateRawSecrets.output>;
|
|
10090
|
+
meta: object;
|
|
10091
|
+
}>;
|
|
10071
10092
|
verifyTotp: TRPCMutationProcedure<{
|
|
10072
10093
|
input: {
|
|
10073
10094
|
[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: 1344 method paths across 175 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
12
12
|
export interface MethodAccessRecord {
|
|
@@ -72,7 +72,7 @@ export interface SystemProxy {
|
|
|
72
72
|
readonly broker: Pick<InferProvider<typeof brokerCapability>, 'list' | 'get' | 'listProviders' | 'add' | 'remove' | 'testConnection' | 'getSettings' | 'setSettings' | 'getBrokerConfig' | 'getSettingsSchema' | 'testSettings' | 'publish' | 'subscribe' | 'unsubscribe' | 'getState' | 'getStatus'>;
|
|
73
73
|
readonly calendars: Pick<InferProvider<typeof calendarsCapability>, 'listCalendars' | 'listEvents' | 'getPreferences' | 'setCalendarPreference'>;
|
|
74
74
|
readonly connectionTest: Pick<InferProvider<typeof connectionTestCapability>, 'testSettings' | 'describeTest'>;
|
|
75
|
-
readonly coreBlocks: Pick<InferProvider<typeof coreBlocksCapability>, 'list' | 'get' | 'create' | 'update' | 'delete' | 'setEnabled' | 'restart' | 'compile' | 'getBlockSettings' | 'updateBlockSettings' | 'getTypeDefs' | 'createComposition' | 'updateComposition' | 'getComposition' | 'listCompositions' | 'getCustomization' | 'listComposableCaps' | 'validateComposition'>;
|
|
75
|
+
readonly coreBlocks: Pick<InferProvider<typeof coreBlocksCapability>, 'list' | 'get' | 'create' | 'update' | 'delete' | 'setEnabled' | 'restart' | 'compile' | 'getBlockSettings' | 'updateBlockSettings' | 'migrateRawSecrets' | 'getTypeDefs' | 'createComposition' | 'updateComposition' | 'getComposition' | 'listCompositions' | 'getCustomization' | 'listComposableCaps' | 'validateComposition'>;
|
|
76
76
|
readonly decoder: Pick<InferProvider<typeof decoderCapability>, 'getInfo' | 'reprobeHwaccel'>;
|
|
77
77
|
readonly deviceAdoption: Pick<InferProvider<typeof deviceAdoptionCapability>, 'listCandidateFilters' | 'listCandidates' | 'getCandidate' | 'refresh' | 'adopt' | 'release' | 'resync'>;
|
|
78
78
|
readonly deviceCredentials: Pick<InferProvider<typeof deviceCredentialsCapability>, 'listDeviceCredentials' | 'startEnrollment' | 'revokeDeviceCredential' | 'getDeviceCertificateSettings' | 'setDeviceCertificateSettings' | 'deleteDeviceCredential' | 'getDeviceCaStatus' | 'renameDeviceCredential'>;
|
|
@@ -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
|
package/dist/index.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export * from './keychain/index.js';
|
|
|
53
53
|
export * from './training/index.js';
|
|
54
54
|
export * from './retrain-review.js';
|
|
55
55
|
export { mergeSecretStatePaths, parseSecretStatePath, type SecretNode, type SecretTree, secretTreeFromPaths, secretTreeFromSchema, } from './addon/secret-paths.js';
|
|
56
|
-
export { collectSecretMarkerRefs, KeychainWriteRefusedError, type ResolvedSecrets, resolveSecretMarkers, type SecretWriteInput, type SecretWriteResult, transformSecretWrite, type UnresolvedReason, type UnresolvedSecret, } from './addon/secret-settings-view.js';
|
|
56
|
+
export { collectSecretMarkerRefs, isSecretRefOwnedBy, KeychainWriteRefusedError, type ResolvedSecrets, resolveSecretMarkers, type SecretWriteInput, type SecretWriteResult, transformSecretWrite, type UnresolvedReason, type UnresolvedSecret, } from './addon/secret-settings-view.js';
|
|
57
57
|
export type * from './interfaces/context.js';
|
|
58
58
|
export * from './interfaces/birth-decision-ledger.js';
|
|
59
59
|
export * from './interfaces/debug-note-archive.js';
|