Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(spaces): relay usage row and allowance notice on the Mac app (CUA-1410) (#5034)
Francesco Bonaccia329fcf43519
diff --git a/apps/cua-spaces-desktop/src/bridge/methods.ts b/apps/cua-spaces-desktop/src/bridge/methods.tsindex e4e1ab2b71..cb0bee2ca2 100644--- a/apps/cua-spaces-desktop/src/bridge/methods.ts+++ b/apps/cua-spaces-desktop/src/bridge/methods.ts@@ -42,12 +42,12 @@ export const METHODS = ["keyvault.showItems", "keyvault.delete", "keyvault.run", "keyvault.dismiss","window.setBackgroundColor", "window.setDragRegions","startup.get", "startup.act",+ "relay.usage",] as const;/** A live desktop's media ticket for the page's WebCodecs player, the- * first run's state (the SwiftUI app draws its first run natively), the- * account's relay allowance, and presence over the page's video (the- * SwiftUI app draws it natively). */-export const ELECTRON_METHODS = ["onboarding.get", "onboarding.complete", "spaces.openStream", "relay.usage", "presence.join", "presence.publish", "presence.leave"] as const;+ * first run's state (the SwiftUI app draws its first run natively), and+ * presence over the page's video (the SwiftUI app draws it natively). */+export const ELECTRON_METHODS = ["onboarding.get", "onboarding.complete", "spaces.openStream", "presence.join", "presence.publish", "presence.leave"] as const;export type Method = (typeof METHODS)[number] | (typeof ELECTRON_METHODS)[number];diff --git a/apps/cua-spaces-desktop/src/bridge/relay-usage.ts b/apps/cua-spaces-desktop/src/bridge/relay-usage.tsindex 10aa0acc59..7b9b0b9199 100644--- a/apps/cua-spaces-desktop/src/bridge/relay-usage.ts+++ b/apps/cua-spaces-desktop/src/bridge/relay-usage.ts@@ -2,74 +2,24 @@// Copyright (c) 2026 Cua AI, Inc.// The account's relay allowance this month (`relay.usage`; `cua usage`):-// the relay's `GET /v1/usage` with the account's token, as the page's-// camelCase `RelayUsage` (the web bridge's ops/relay-usage.ts). Null when-// signed out, or from a relay that meters nothing (404). Only this host-// reads it; the SwiftUI app does not yet.+// the Spaces app export's `appRelayUsage` (the relay's `GET /v1/usage` on+// the session's relay, with the account's token), the same read as the+// SwiftUI host's. Null when signed out, or from a relay that meters nothing.import type { BridgeContext } from "./context";-import { Failure, type Handlers } from "./host";+import type { Handlers } from "./host";+import { encode } from "./value";-export const DEFAULT_RELAY_URL = "https://relay.cua.ai";--/** The relay the session's devices use, else `CUA_RELAY_URL`, else relay.cua.ai. Null: not one the token may go to (plain http off this machine). */-export function relayUrl(ctx: BridgeContext): string | null {- let fromSession: string | undefined;- try {- fromSession = ctx.model.devices?.devices()?.relayUrl();- } catch {- fromSession = undefined;- }- const raw = (fromSession?.trim() || ctx.env.CUA_RELAY_URL?.trim() || DEFAULT_RELAY_URL).replace(/\/+$/, "");- try {- const url = new URL(raw.replace(/^wss:/, "https:").replace(/^ws:/, "http:"));- const loopback = ["localhost", "127.0.0.1", "[::1]"].includes(url.hostname);- if (url.protocol !== "https:" && !(url.protocol === "http:" && loopback)) return null;- return url.toString().replace(/\/+$/, "");- } catch {- return null;- }-}--const num = (v: unknown, fallback = 0) => (typeof v === "number" && Number.isFinite(v) ? v : fallback);-const maybeNum = (v: unknown) => (typeof v === "number" && Number.isFinite(v) ? v : null);-const str = (v: unknown) => (typeof v === "string" ? v : "");--/** The relay's snake_case answer as the page's `RelayUsage`; missing fields take their defaults. */-export function relayUsage(raw: unknown) {- const r = (raw && typeof raw === "object" ? raw : {}) as Record<string, unknown>;- const team = r.team && typeof r.team === "object" ? (r.team as Record<string, unknown>) : null;- return {- metered: r.metered === true,- period: str(r.period),- plan: str(r.plan),- team: team ? { id: str(team.id), seats: num(team.seats) } : null,- liveSessions: num(r.live_sessions),- liveSessionsLimit: maybeNum(r.live_sessions_limit),- hoursUsed: num(r.hours_used),- hoursLimit: maybeNum(r.hours_limit),- myHoursUsed: num(r.my_hours_used),- softLimitReached: r.soft_limit_reached === true,- reasons: Array.isArray(r.reasons) ? r.reasons.filter((x): x is string => typeof x === "string") : [],- upgradeUrl: typeof r.upgrade_url === "string" && /^https:\/\//.test(r.upgrade_url) ? r.upgrade_url : null,- };-}--export function relayUsageMethods(ctx: BridgeContext, fetchImpl: typeof fetch = (...a) => fetch(...a)): Handlers {+export function relayUsageMethods(ctx: BridgeContext): Handlers {return {"relay.usage": async () => {const { model } = ctx;// Before the session is up, or signed out: nothing to read.if (!model.servicesIn || !model.identity || !model.account) return null;+ const devices = model.devices.devices();const token = await model.account.accessToken(false);- const base = relayUrl(ctx);- if (!token || !base) return null;- const resp = await fetchImpl(`${base}/v1/usage`, {- headers: { authorization: `Bearer ${token}` },- signal: AbortSignal.timeout(15_000),- });- if (resp.status === 404) return null;- if (!resp.ok) throw Failure.failed(`The relay could not say your usage (HTTP ${resp.status})`);- return relayUsage(await resp.json());+ if (!devices || !token) return null;+ const usage = await model.native.appRelayUsage(devices, token);+ return usage?.metered ? encode(usage) : null;},};}diff --git a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.ts b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.tsindex fba2f1a976..f73f101a5d 100644--- a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.ts+++ b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi-ffi.ts@@ -557,6 +557,16 @@ const DEFINITIONS = {ret: FfiType.RustBuffer,hasRustCallStatus: true,},+ "uniffi_cua_spaces_ffi_fn_func_app_checklist_reduce": {+ args: [FfiType.RustBuffer, FfiType.RustBuffer],+ ret: FfiType.RustBuffer,+ hasRustCallStatus: true,+ },+ "uniffi_cua_spaces_ffi_fn_func_app_checklist_view": {+ args: [FfiType.RustBuffer],+ ret: FfiType.RustBuffer,+ hasRustCallStatus: true,+ },"uniffi_cua_spaces_ffi_fn_func_app_chrome_input_from_json": {args: [FfiType.RustBuffer],ret: FfiType.RustBuffer,@@ -932,6 +942,11 @@ const DEFINITIONS = {ret: FfiType.Int8,hasRustCallStatus: true,},+ "uniffi_cua_spaces_ffi_fn_func_app_keybindings": {+ args: [],+ ret: FfiType.RustBuffer,+ hasRustCallStatus: true,+ },"uniffi_cua_spaces_ffi_fn_func_app_launch_input_from_json": {args: [FfiType.RustBuffer],ret: FfiType.RustBuffer,@@ -1087,6 +1102,11 @@ const DEFINITIONS = {ret: FfiType.RustBuffer,hasRustCallStatus: true,},+ "uniffi_cua_spaces_ffi_fn_func_app_palette_rank": {+ args: [FfiType.RustBuffer, FfiType.RustBuffer],+ ret: FfiType.RustBuffer,+ hasRustCallStatus: true,+ },"uniffi_cua_spaces_ffi_fn_func_app_picker_app_grid": {args: [FfiType.RustBuffer, FfiType.RustBuffer],ret: FfiType.RustBuffer,@@ -1207,6 +1227,16 @@ const DEFINITIONS = {ret: FfiType.RustBuffer,hasRustCallStatus: true,},+ "uniffi_cua_spaces_ffi_fn_func_app_relay_usage": {+ args: [FfiType.Handle, FfiType.RustBuffer],+ ret: FfiType.Handle,+ hasRustCallStatus: false,+ },+ "uniffi_cua_spaces_ffi_fn_func_app_relay_usage_view": {+ args: [FfiType.RustBuffer],+ ret: FfiType.RustBuffer,+ hasRustCallStatus: true,+ },"uniffi_cua_spaces_ffi_fn_func_app_review_remember": {args: [FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],ret: FfiType.RustBuffer,@@ -2172,6 +2202,16 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cua_spaces_ffi_checksum_func_app_checklist_reduce": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },+ "uniffi_cua_spaces_ffi_checksum_func_app_checklist_view": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cua_spaces_ffi_checksum_func_app_chrome_input_from_json": {args: [],ret: FfiType.UInt16,@@ -2547,6 +2587,11 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cua_spaces_ffi_checksum_func_app_keybindings": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cua_spaces_ffi_checksum_func_app_launch_input_from_json": {args: [],ret: FfiType.UInt16,@@ -2702,6 +2747,11 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cua_spaces_ffi_checksum_func_app_palette_rank": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cua_spaces_ffi_checksum_func_app_picker_app_grid": {args: [],ret: FfiType.UInt16,@@ -2822,6 +2872,16 @@ const DEFINITIONS = {ret: FfiType.UInt16,hasRustCallStatus: false,},+ "uniffi_cua_spaces_ffi_checksum_func_app_relay_usage": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },+ "uniffi_cua_spaces_ffi_checksum_func_app_relay_usage_view": {+ args: [],+ ret: FfiType.UInt16,+ hasRustCallStatus: false,+ },"uniffi_cua_spaces_ffi_checksum_func_app_review_remember": {args: [],ret: FfiType.UInt16,@@ -3847,6 +3907,8 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_fn_func_app_billing_status(status: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_catalog_entries_from_json(json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_catalog_entry(entry: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;+ uniffi_cua_spaces_ffi_fn_func_app_checklist_reduce(state: Uint8Array, action: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;+ uniffi_cua_spaces_ffi_fn_func_app_checklist_view(state: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_chrome_input_from_json(json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_cloud_connect_action_from_json(json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_cloud_connect_initial(uniffi_out_err: UniffiRustCallStatus): Uint8Array;@@ -3922,6 +3984,7 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_fn_func_app_host_validate_setup(request: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_hosted_rows(spaces: Uint8Array, machineSpaceId: Uint8Array, selectedId: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_is_cloud_word(on: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;+ uniffi_cua_spaces_ffi_fn_func_app_keybindings(uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_launch_input_from_json(json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_login_item_launch_plan(choice: Uint8Array, onboarded: number, serves: number, status: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_machine_access_notice(kind: Uint8Array, pendingCode: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;@@ -3953,6 +4016,7 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_fn_func_app_openable_count(spaces: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;uniffi_cua_spaces_ffi_fn_func_app_os_icon_svg(id: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_os_icon_system_symbol(id: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;+ uniffi_cua_spaces_ffi_fn_func_app_palette_rank(entries: Uint8Array, query: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_picker_app_grid(state: Uint8Array, windows: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_picker_can_plan(state: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;uniffi_cua_spaces_ffi_fn_func_app_picker_consent(state: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;@@ -3977,6 +4041,8 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_fn_func_app_presentation_preview_frame(menuBar: number, tMs: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_presentation_preview_still(menuBar: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_refresh_report_from_json(json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;+ uniffi_cua_spaces_ffi_fn_func_app_relay_usage(devices: bigint, accountToken: Uint8Array): bigint;+ uniffi_cua_spaces_ffi_fn_func_app_relay_usage_view(usage: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_review_remember(choices: Uint8Array, key: Uint8Array, domains: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_review_remember_key(app: Uint8Array, space: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;uniffi_cua_spaces_ffi_fn_func_app_review_remembered(choices: Uint8Array, key: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;@@ -4170,6 +4236,8 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_checksum_func_app_billing_status(): number;uniffi_cua_spaces_ffi_checksum_func_app_catalog_entries_from_json(): number;uniffi_cua_spaces_ffi_checksum_func_app_catalog_entry(): number;+ uniffi_cua_spaces_ffi_checksum_func_app_checklist_reduce(): number;+ uniffi_cua_spaces_ffi_checksum_func_app_checklist_view(): number;uniffi_cua_spaces_ffi_checksum_func_app_chrome_input_from_json(): number;uniffi_cua_spaces_ffi_checksum_func_app_cloud_connect_action_from_json(): number;uniffi_cua_spaces_ffi_checksum_func_app_cloud_connect_initial(): number;@@ -4245,6 +4313,7 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_checksum_func_app_host_validate_setup(): number;uniffi_cua_spaces_ffi_checksum_func_app_hosted_rows(): number;uniffi_cua_spaces_ffi_checksum_func_app_is_cloud_word(): number;+ uniffi_cua_spaces_ffi_checksum_func_app_keybindings(): number;uniffi_cua_spaces_ffi_checksum_func_app_launch_input_from_json(): number;uniffi_cua_spaces_ffi_checksum_func_app_login_item_launch_plan(): number;uniffi_cua_spaces_ffi_checksum_func_app_machine_access_notice(): number;@@ -4276,6 +4345,7 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_checksum_func_app_openable_count(): number;uniffi_cua_spaces_ffi_checksum_func_app_os_icon_svg(): number;uniffi_cua_spaces_ffi_checksum_func_app_os_icon_system_symbol(): number;+ uniffi_cua_spaces_ffi_checksum_func_app_palette_rank(): number;uniffi_cua_spaces_ffi_checksum_func_app_picker_app_grid(): number;uniffi_cua_spaces_ffi_checksum_func_app_picker_can_plan(): number;uniffi_cua_spaces_ffi_checksum_func_app_picker_consent(): number;@@ -4300,6 +4370,8 @@ interface NativeModuleInterface {uniffi_cua_spaces_ffi_checksum_func_app_presentation_preview_frame(): number;uniffi_cua_spaces_ffi_checksum_func_app_presentation_preview_still(): number;uniffi_cua_spaces_ffi_checksum_func_app_refresh_report_from_json(): number;+ uniffi_cua_spaces_ffi_checksum_func_app_relay_usage(): number;+ uniffi_cua_spaces_ffi_checksum_func_app_relay_usage_view(): number;uniffi_cua_spaces_ffi_checksum_func_app_review_remember(): number;uniffi_cua_spaces_ffi_checksum_func_app_review_remember_key(): number;uniffi_cua_spaces_ffi_checksum_func_app_review_remembered(): number;diff --git a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.ts b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.tsindex 1e396eda8e..7ce47ce129 100644--- a/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.ts+++ b/apps/cua-spaces-desktop/src/native/generated/cua_spaces_ffi.ts@@ -10,12 +10,12 @@import nativeModule from "./cua_spaces_ffi-ffi";import { type UniffiRustFutureContinuationCallback, type UniffiForeignFutureDroppedCallback, type UniffiForeignFutureDroppedCallbackStruct, type UniffiVTableCallbackInterfaceCuaSpacesFfiDecodedFrameSink, type UniffiVTableCallbackInterfaceCuaSpacesFfiPcmSink, type UniffiVTableCallbackInterfaceCuaSpacesFfiTeleportApproval, type UniffiVTableCallbackInterfaceCuaSpacesFfiTeleportRunListener, type UniffiVTableCallbackInterfaceCuaSpacesFfiTeleportWindowDragListener,} from "./cua_spaces_ffi-ffi";-import { type AgentInfo, type AgentSetupOutcome, type CuaLike, type DevicesSnapshot, type FleetBillingStatus, type HostLike, type HostStatus, type MediaEvent, type MediaOpenOptions, type MediaSessionLike, type SandboxLike, type SpaceLike, type SpaceSendFileReport, type SpacesHost, type SpacesdClientLike, type TeleportItem, type TeleportManifest, CuaError,+import { type AgentInfo, type AgentSetupOutcome, type CuaLike, type DevicesLike, type DevicesSnapshot, type FleetBillingStatus, type HostLike, type HostStatus, type MediaEvent, type MediaOpenOptions, type MediaSessionLike, type SandboxLike, type SpaceLike, type SpaceSendFileReport, type SpacesHost, type SpacesdClientLike, type TeleportItem, type TeleportManifest, CuaError,} from "./cua_sdk";import { type FfiConverter, type UniffiByteArray, type UniffiGcObject, type UniffiHandle, type UniffiObjectFactory, type UniffiReferenceHolder, type UniffiRustCallStatus, AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterArrayBuffer, FfiConverterBool, FfiConverterFloat64, FfiConverterInt16, FfiConverterInt32, FfiConverterInt64, FfiConverterMap, FfiConverterObject, FfiConverterObjectWithCallbacks, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, FfiConverterUInt64, FfiConverterUInt8, RustBuffer, UniffiAbstractObject, UniffiEnum, UniffiInternalError, UniffiResult, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiRustCallAsync, uniffiTraitInterfaceCall, uniffiTypeNameSymbol,} from "@ubjs/core";import uniffiCuaSdkModule from "./cua_sdk";-const { FfiConverterTypeAgentInfo, FfiConverterTypeAgentSetupOutcome, FfiConverterTypeCua, FfiConverterTypeCuaError, FfiConverterTypeDevicesSnapshot, FfiConverterTypeFleetBillingStatus, FfiConverterTypeHost, FfiConverterTypeHostStatus, FfiConverterTypeMediaEvent, FfiConverterTypeMediaOpenOptions, FfiConverterTypeMediaSession, FfiConverterTypeSandbox, FfiConverterTypeSpace, FfiConverterTypeSpaceSendFileReport, FfiConverterTypeSpacesHost, FfiConverterTypeSpacesdClient, FfiConverterTypeTeleportItem, FfiConverterTypeTeleportManifest } = uniffiCuaSdkModule.converters;+const { FfiConverterTypeAgentInfo, FfiConverterTypeAgentSetupOutcome, FfiConverterTypeCua, FfiConverterTypeCuaError, FfiConverterTypeDevices, FfiConverterTypeDevicesSnapshot, FfiConverterTypeFleetBillingStatus, FfiConverterTypeHost, FfiConverterTypeHostStatus, FfiConverterTypeMediaEvent, FfiConverterTypeMediaOpenOptions, FfiConverterTypeMediaSession, FfiConverterTypeSandbox, FfiConverterTypeSpace, FfiConverterTypeSpaceSendFileReport, FfiConverterTypeSpacesHost, FfiConverterTypeSpacesdClient, FfiConverterTypeTeleportItem, FfiConverterTypeTeleportManifest } = uniffiCuaSdkModule.converters;const uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));const uniffiIsDebug =@@ -747,6 +747,47 @@ export function appCatalogEntry(entry: TeleportCatalogEntry): AppCatalogEntry {));}+/**+ * The getting-started checklist after `action`, and its usage events.+ */+export function appChecklistReduce(state: AppChecklistState, action: AppChecklistAction): AppChecklistTransition {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterTypeAppChecklistTransition.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().uniffi_cua_spaces_ffi_fn_func_app_checklist_reduce(+ FfiConverterTypeAppChecklistState.lower(state, nativeModule().rustbuffer_alloc),+ FfiConverterTypeAppChecklistAction.lower(action, nativeModule().rustbuffer_alloc),+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }++/**+ * The getting-started checklist as drawn.+ */+export function appChecklistView(state: AppChecklistState): AppChecklistView {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterTypeAppChecklistView.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().uniffi_cua_spaces_ffi_fn_func_app_checklist_view(+ FfiConverterTypeAppChecklistState.lower(state, nativeModule().rustbuffer_alloc),+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+/*** The chrome's input from JSON (parity flows).*/@@ -2294,6 +2335,25 @@ export function appIsCloudWord(on: string): boolean {));}+/**+ * The default keyboard shortcuts (the shared UI's `keybindings.json`).+ */+export function appKeybindings(): Array<AppKeybinding> {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterSequenceTypeAppKeybinding.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().uniffi_cua_spaces_ffi_fn_func_app_keybindings(+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+/*** A launch from JSON (parity flows).*/@@ -2929,6 +2989,28 @@ export function appOsIconSystemSymbol(id: string): string | undefined {));}+/**+ * The command palette's matches for `query`, best first, as indices into+ * `entries`.+ */+export function appPaletteRank(entries: Array<AppPaletteEntry>, query: string): Array<number> {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterSequenceUInt32.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().uniffi_cua_spaces_ffi_fn_func_app_palette_rank(+ FfiConverterSequenceTypeAppPaletteEntry.lower(entries, nativeModule().rustbuffer_alloc),+ FfiConverterString.lower(query, nativeModule().rustbuffer_alloc),+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+/*** The picker's Apps tab as tiles (`windows`: this machine's, front to back,* for each app's frontmost-window preview).@@ -3424,6 +3506,63 @@ export function appRefreshReportFromJson(json: string): AppRefreshReport /*throw));}+/**+ * The account's relay allowance this month (`GET /v1/usage` on the relay+ * `devices` uses, as `cua usage` reads it) with `account_token`; none+ * from a relay that meters nothing. Both Spaces apps read it here.+ */+export async function appRelayUsage(devices: DevicesLike, accountToken: string, asyncOpts_?: { signal: AbortSignal }): Promise<AppRelayUsage | undefined> /*throws*/ {+ const __stack = uniffiIsDebug ? new Error().stack : undefined;+ try {+ return await uniffiRustCallAsync(+ /*rustCaller:*/ uniffiCaller,+ /*rustFutureFunc:*/ () => {+ return nativeModule().uniffi_cua_spaces_ffi_fn_func_app_relay_usage(FfiConverterTypeDevices.lower(devices, nativeModule().rustbuffer_alloc),FfiConverterString.lower(accountToken, nativeModule().rustbuffer_alloc)+ );+ },+ /*pollFunc:*/ nativeModule().ffi_cua_spaces_ffi_rust_future_poll_rust_buffer,+ /*cancelFunc:*/ nativeModule().ffi_cua_spaces_ffi_rust_future_cancel_rust_buffer,+ /*completeFunc:*/ nativeModule().ffi_cua_spaces_ffi_rust_future_complete_rust_buffer,+ /*freeFunc:*/ nativeModule().ffi_cua_spaces_ffi_rust_future_free_rust_buffer,+ // Async returns always go through the JS-side converter: the+ // FFI symbol returns the future handle (u64), and the user-level+ // RustBuffer comes back via the shared `rust_future_complete_*`+ // export. The bytes the runtime hands back must be deserialized+ // here using the per-callable return-type converter.+ /*liftFunc:*/ FfiConverterOptionalTypeAppRelayUsage.lift.bind(FfiConverterOptionalTypeAppRelayUsage),+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ /*asyncOpts:*/ asyncOpts_,+ /*errorHandler:*/ FfiConverterTypeCuaError.lift.bind(FfiConverterTypeCuaError)+ );+ } catch (__error: any) {+ if (uniffiIsDebug && __error instanceof Error) {+ __error.stack = __stack;+ }+ throw __error;+ }+ }++/**+ * Settings' "Relay usage" row and the notice past the allowance; none+ * when the relay meters nothing.+ */+export function appRelayUsageView(usage: AppRelayUsage): AppRelayUsageView | undefined {+ return ((__rb: Uint8Array) => {+ try {+ return FfiConverterOptionalTypeAppRelayUsageView.lift(__rb);+ } finally {+ nativeModule().rustbuffer_free(__rb);+ }+ })(uniffiCaller.rustCall(+ /*caller:*/ (callStatus) => {+ return nativeModule().uniffi_cua_spaces_ffi_fn_func_app_relay_usage_view(+ FfiConverterTypeAppRelayUsage.lower(usage, nativeModule().rustbuffer_alloc),+ callStatus);+ },+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),+ ));+ }+/*** `choices` with the sites just sent remembered for `key`.*/@@ -10002,159 +10141,50 @@ const FfiConverterTypeAppCatalogEntry = (() => {return new FFIConverter();})();-export type AppExperiments = {- /**- * Cua Volume in the first run and Settings, Storage.- */- cuaVolume: boolean,- /**- * Your own clouds in the New Space wizard.- */- yourCloud: boolean,- /**- * Sharing a Space with other accounts.- */- sharing: boolean,- /**- * The shared web UI, previewed in its own window.- */- webUi: boolean-}--/**- * Generated factory for {@link AppExperiments} record objects.- */-export const AppExperiments = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppExperiments, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppExperiments>,- });-})();--const FfiConverterTypeAppExperiments = (() => {- type TypeName = AppExperiments;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- cuaVolume: FfiConverterBool.read(from),- yourCloud: FfiConverterBool.read(from),- sharing: FfiConverterBool.read(from),- webUi: FfiConverterBool.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.cuaVolume, into);- FfiConverterBool.write(value.yourCloud, into);- FfiConverterBool.write(value.sharing, into);- FfiConverterBool.write(value.webUi, into);- }- allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.cuaVolume) +- FfiConverterBool.allocationSize(value.yourCloud) +- FfiConverterBool.allocationSize(value.sharing) +- FfiConverterBool.allocationSize(value.webUi);-- }- };- return new FFIConverter();-})();--export type AppChromeInput = {- /**- * The signed-in account.- */- identity?: string,+export enum AppChecklistStep {/**- * Cua Cloud works (signed in, or client credentials).+ * Connect another computer you own.*/- cloudConfigured: boolean,+ AddMachine = "addMachine",/**- * Signing in is possible here (the native shell).+ * Create a Space.*/- canSignIn: boolean,+ CreateSpace = "createSpace",/**- * Settings, Experiments: the Volume page only with Cua Volume on- * (none: every page, for callers that predate experiments).+ * Teleport an app into a Space.*/- experiments?: AppExperiments-}--/**- * Generated factory for {@link AppChromeInput} record objects.- */-export const AppChromeInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppChromeInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppChromeInput>,- });-})();--const FfiConverterTypeAppChromeInput = (() => {- type TypeName = AppChromeInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- identity: FfiConverterOptionalString.read(from),- cloudConfigured: FfiConverterBool.read(from),- canSignIn: FfiConverterBool.read(from),- experiments: FfiConverterOptionalTypeAppExperiments.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.identity, into);- FfiConverterBool.write(value.cloudConfigured, into);- FfiConverterBool.write(value.canSignIn, into);- FfiConverterOptionalTypeAppExperiments.write(value.experiments, into);- }- allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.identity) +- FfiConverterBool.allocationSize(value.cloudConfigured) +- FfiConverterBool.allocationSize(value.canSignIn) +- FfiConverterOptionalTypeAppExperiments.allocationSize(value.experiments);-- }- };- return new FFIConverter();-})();--export enum AppInstallMethod {+ Teleport = "teleport",/**- * A symlink into the app bundle: app updates update the CLI too.+ * Share a Space with someone.*/- Symlink = "symlink",+ Share = "share",/**- * A copy of the bundled binary.+ * Run an agent.*/- Copy = "copy"+ RunAgent = "runAgent"}-const FfiConverterTypeAppInstallMethod = (() => {+const FfiConverterTypeAppChecklistStep = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppInstallMethod;+ type TypeName = AppChecklistStep;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppInstallMethod.Symlink;- case 2: return AppInstallMethod.Copy;+ case 1: return AppChecklistStep.AddMachine;+ case 2: return AppChecklistStep.CreateSpace;+ case 3: return AppChecklistStep.Teleport;+ case 4: return AppChecklistStep.Share;+ case 5: return AppChecklistStep.RunAgent;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppInstallMethod.Symlink: return ordinalConverter.write(1, into);- case AppInstallMethod.Copy: return ordinalConverter.write(2, into);+ case AppChecklistStep.AddMachine: return ordinalConverter.write(1, into);+ case AppChecklistStep.CreateSpace: return ordinalConverter.write(2, into);+ case AppChecklistStep.Teleport: return ordinalConverter.write(3, into);+ case AppChecklistStep.Share: return ordinalConverter.write(4, into);+ case AppChecklistStep.RunAgent: return ordinalConverter.write(5, into);}}allocationSize(value: TypeName): number {@@ -10164,717 +10194,907 @@ const FfiConverterTypeAppInstallMethod = (() => {return new FFIConverter();})();-export type AppCliInstallPlan = {- /**- * The bundled CLI, when this build carries one.- */- source?: string,- /**- * Exact file the CLI is written to.- */- target: string,- /**- * Directory of `target`.- */- binDir: string,- /**- * `symlink` or `copy`.- */- method?: AppInstallMethod,- /**- * Something already exists at `target`.- */- installed: boolean,- /**- * `target` resolves to this app's bundled CLI (nothing to do).- */- upToDate: boolean,- /**- * `cua --version` of what is at `target`.- */- installedVersion?: string,+export type AppChecklistRow = {/**- * `cua --version` of the bundled CLI.+ * The step.*/- bundledVersion?: string,+ step: AppChecklistStep,/**- * Another `cua` found earlier on PATH (it would shadow `target`).+ * "Add a machine".*/- shadowedBy?: string,+ title: string,/**- * `bin_dir` is already on PATH.+ * One line under the title.*/- onPath: boolean,+ detail: string,/**- * Shell profile (or "user PATH" on Windows) the PATH change would edit.+ * The button that does it; hidden once done.*/- pathProfile?: string,+ action: string,/**- * The line that would be added to `path_profile`.+ * Done (ticked, struck through).*/- pathLine?: string+ done: boolean}/**- * Generated factory for {@link AppCliInstallPlan} record objects.+ * Generated factory for {@link AppChecklistRow} record objects.*/-export const AppCliInstallPlan = (() => {+export const AppChecklistRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCliInstallPlan, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppChecklistRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCliInstallPlan>,+ defaults: () => Object.freeze(defaults()) as Partial<AppChecklistRow>,});})();-const FfiConverterTypeAppCliInstallPlan = (() => {- type TypeName = AppCliInstallPlan;+const FfiConverterTypeAppChecklistRow = (() => {+ type TypeName = AppChecklistRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- source: FfiConverterOptionalString.read(from),- target: FfiConverterString.read(from),- binDir: FfiConverterString.read(from),- method: FfiConverterOptionalTypeAppInstallMethod.read(from),- installed: FfiConverterBool.read(from),- upToDate: FfiConverterBool.read(from),- installedVersion: FfiConverterOptionalString.read(from),- bundledVersion: FfiConverterOptionalString.read(from),- shadowedBy: FfiConverterOptionalString.read(from),- onPath: FfiConverterBool.read(from),- pathProfile: FfiConverterOptionalString.read(from),- pathLine: FfiConverterOptionalString.read(from)+ step: FfiConverterTypeAppChecklistStep.read(from),+ title: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ action: FfiConverterString.read(from),+ done: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.source, into);- FfiConverterString.write(value.target, into);- FfiConverterString.write(value.binDir, into);- FfiConverterOptionalTypeAppInstallMethod.write(value.method, into);- FfiConverterBool.write(value.installed, into);- FfiConverterBool.write(value.upToDate, into);- FfiConverterOptionalString.write(value.installedVersion, into);- FfiConverterOptionalString.write(value.bundledVersion, into);- FfiConverterOptionalString.write(value.shadowedBy, into);- FfiConverterBool.write(value.onPath, into);- FfiConverterOptionalString.write(value.pathProfile, into);- FfiConverterOptionalString.write(value.pathLine, into);+ FfiConverterTypeAppChecklistStep.write(value.step, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterString.write(value.action, into);+ FfiConverterBool.write(value.done, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.source) +- FfiConverterString.allocationSize(value.target) +- FfiConverterString.allocationSize(value.binDir) +- FfiConverterOptionalTypeAppInstallMethod.allocationSize(value.method) +- FfiConverterBool.allocationSize(value.installed) +- FfiConverterBool.allocationSize(value.upToDate) +- FfiConverterOptionalString.allocationSize(value.installedVersion) +- FfiConverterOptionalString.allocationSize(value.bundledVersion) +- FfiConverterOptionalString.allocationSize(value.shadowedBy) +- FfiConverterBool.allocationSize(value.onPath) +- FfiConverterOptionalString.allocationSize(value.pathProfile) +- FfiConverterOptionalString.allocationSize(value.pathLine);+ return FfiConverterTypeAppChecklistStep.allocationSize(value.step) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterString.allocationSize(value.action) ++ FfiConverterBool.allocationSize(value.done);}};return new FFIConverter();})();-export type AppCliInstallRequest = {+export type AppChecklistState = {/**- * Also add the bin dir to PATH (edits `path_profile`).+ * Steps done, each once, in checklist order.*/- modifyPath: boolean+ done: Array<AppChecklistStep>,+ /**+ * Closed with ×; Getting Started opens it again.+ */+ dismissed: boolean,+ /**+ * It was on screen once (`checklist_shown` was recorded).+ */+ shown: boolean}/**- * Generated factory for {@link AppCliInstallRequest} record objects.+ * Generated factory for {@link AppChecklistState} record objects.*/-export const AppCliInstallRequest = (() => {+export const AppChecklistState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCliInstallRequest, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppChecklistState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCliInstallRequest>,+ defaults: () => Object.freeze(defaults()) as Partial<AppChecklistState>,});})();-const FfiConverterTypeAppCliInstallRequest = (() => {- type TypeName = AppCliInstallRequest;+const FfiConverterTypeAppChecklistState = (() => {+ type TypeName = AppChecklistState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- modifyPath: FfiConverterBool.read(from)+ done: FfiConverterSequenceTypeAppChecklistStep.read(from),+ dismissed: FfiConverterBool.read(from),+ shown: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.modifyPath, into);+ FfiConverterSequenceTypeAppChecklistStep.write(value.done, into);+ FfiConverterBool.write(value.dismissed, into);+ FfiConverterBool.write(value.shown, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.modifyPath);+ return FfiConverterSequenceTypeAppChecklistStep.allocationSize(value.done) ++ FfiConverterBool.allocationSize(value.dismissed) ++ FfiConverterBool.allocationSize(value.shown);}};return new FFIConverter();})();-export type AppCloudCheckInput = {- /**- * `credentials`, `permissions`, `quota`, ...- */- name: string,- /**- * Passed.- */- ok: boolean,- /**- * What was found, or what to fix.- */- detail: string++// Enum: AppTelemetrySignal+export enum AppTelemetrySignal_Tags {+ Feature = "Feature",+ Step = "Step",+ Launched = "Launched",+ SignInFailed = "SignInFailed",+ OnboardingPage = "OnboardingPage",+ SpaceWizard = "SpaceWizard",+ SpaceCreate = "SpaceCreate",+ SpaceCreateStarted = "SpaceCreateStarted",+ VolumeSetup = "VolumeSetup",+ Share = "Share",+ AppUpdate = "AppUpdate",+ DeviceEnroll = "DeviceEnroll",+ Experiment = "Experiment",+ ExperimentsOn = "ExperimentsOn"}+export const AppTelemetrySignal = (() => {-/**- * Generated factory for {@link AppCloudCheckInput} record objects.- */-export const AppCloudCheckInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppCloudCheckInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudCheckInput>,- });-})();+ type Feature__interface = {+ tag: AppTelemetrySignal_Tags.Feature;+ inner:+Readonly<{feature: string}>+ };+ /**+ * A Spaces app feature was used (`cua_spaces_feature_used`).+ */+ class Feature_ extends UniffiEnum implements Feature__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.Feature;+ readonly inner:+Readonly<{feature: string}>;+ constructor(+inner: {feature: string }) {+ super("AppTelemetrySignal", "Feature");-const FfiConverterTypeAppCloudCheckInput = (() => {- type TypeName = AppCloudCheckInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- name: FfiConverterString.read(from),- ok: FfiConverterBool.read(from),- detail: FfiConverterString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.name, into);- FfiConverterBool.write(value.ok, into);- FfiConverterString.write(value.detail, into);+ static new(+inner: {feature: string }): Feature_ {+ return new Feature_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.name) +- FfiConverterBool.allocationSize(value.ok) +- FfiConverterString.allocationSize(value.detail);+ static instanceOf(obj: any): obj is Feature_ {+ return obj.tag === AppTelemetrySignal_Tags.Feature;}- };- return new FFIConverter();-})();-export type AppCloudCheckRow = {- /**- * Passed.- */- ok: boolean,+ }++ type Step__interface = {+ tag: AppTelemetrySignal_Tags.Step;+ inner:+Readonly<{step: string; ok: boolean}>+ };/**- * "credentials: account 418638388952".+ * An install or activation funnel step (`cua_onboarding_step`;+ * `first_*` steps count once per install).*/- text: string-}--/**- * Generated factory for {@link AppCloudCheckRow} record objects.- */-export const AppCloudCheckRow = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppCloudCheckRow, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudCheckRow>,- });-})();+ class Step_ extends UniffiEnum implements Step__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.Step;+ readonly inner:+Readonly<{step: string; ok: boolean}>;+ constructor(+inner: {step: string; ok: boolean }) {+ super("AppTelemetrySignal", "Step");-const FfiConverterTypeAppCloudCheckRow = (() => {- type TypeName = AppCloudCheckRow;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- ok: FfiConverterBool.read(from),- text: FfiConverterString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.ok, into);- FfiConverterString.write(value.text, into);+ static new(+inner: {step: string; ok: boolean }): Step_ {+ return new Step_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.ok) +- FfiConverterString.allocationSize(value.text);+ static instanceOf(obj: any): obj is Step_ {+ return obj.tag === AppTelemetrySignal_Tags.Step;}- };- return new FFIConverter();-})();-export type AppCloudProviderInput = {- /**- * `aws`, `gcp`, `modal`.- */- name: string,- /**- * `AWS`, `Google Cloud`, `Modal`.- */- title: string,- /**- * Connected already.- */- connected: boolean,- /**- * This machine has its CLI sign-in (or config).- */- found: boolean,- /**- * Where ("~/.aws profile default"), never a secret.- */- source: string,- /**- * AWS or Modal profile (the connected or detected one).- */- profile: string,+ }++ type Launched__interface = {+ tag: AppTelemetrySignal_Tags.Launched;+ inner:+Readonly<{onboardingEligible?: boolean}>+ };/**- * Region.+ * The app started (`cua_onboarding_step`, step `app_launched`).*/- region: string,+ class Launched_ extends UniffiEnum implements Launched__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.Launched;+ readonly inner:+Readonly<{onboardingEligible?: boolean}>;+ constructor(+inner: {onboardingEligible?: boolean }) {+ super("AppTelemetrySignal", "Launched");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {onboardingEligible?: boolean }): Launched_ {+ return new Launched_(inner);+ }++ static instanceOf(obj: any): obj is Launched_ {+ return obj.tag === AppTelemetrySignal_Tags.Launched;+ }++ }++ type SignInFailed__interface = {+ tag: AppTelemetrySignal_Tags.SignInFailed;+ inner:+Readonly<{errorKind: string}>+ };/**- * GCP project.+ * A sign-in failed, timed out or was cancelled (`cua_onboarding_step`,+ * step `signed_in`, outcome `error`).*/- project: string,+ class SignInFailed_ extends UniffiEnum implements SignInFailed__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.SignInFailed;+ readonly inner:+Readonly<{errorKind: string}>;+ constructor(+inner: {errorKind: string }) {+ super("AppTelemetrySignal", "SignInFailed");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {errorKind: string }): SignInFailed_ {+ return new SignInFailed_(inner);+ }++ static instanceOf(obj: any): obj is SignInFailed_ {+ return obj.tag === AppTelemetrySignal_Tags.SignInFailed;+ }++ }++ type OnboardingPage__interface = {+ tag: AppTelemetrySignal_Tags.OnboardingPage;+ inner:+Readonly<{page: string; action: string; choice: string}>+ };/**- * Modal environment.+ * A first-run page was shown or left (`cua_onboarding_page`).*/- environment: string,+ class OnboardingPage_ extends UniffiEnum implements OnboardingPage__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.OnboardingPage;+ readonly inner:+Readonly<{page: string; action: string; choice: string}>;+ constructor(+inner: {page: string; action: string; choice: string }) {+ super("AppTelemetrySignal", "OnboardingPage");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {page: string; action: string; choice: string }): OnboardingPage_ {+ return new OnboardingPage_(inner);+ }++ static instanceOf(obj: any): obj is OnboardingPage_ {+ return obj.tag === AppTelemetrySignal_Tags.OnboardingPage;+ }++ }++ type SpaceWizard__interface = {+ tag: AppTelemetrySignal_Tags.SpaceWizard;+ inner:+Readonly<{action: string}>+ };/**- * "AWS \u{b7} us-west-2".+ * The New Space panel (`cua_space_wizard`).*/- label: string-}--/**- * Generated factory for {@link AppCloudProviderInput} record objects.- */-export const AppCloudProviderInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppCloudProviderInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudProviderInput>,- });-})();+ class SpaceWizard_ extends UniffiEnum implements SpaceWizard__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.SpaceWizard;+ readonly inner:+Readonly<{action: string}>;+ constructor(+inner: {action: string }) {+ super("AppTelemetrySignal", "SpaceWizard");-const FfiConverterTypeAppCloudProviderInput = (() => {- type TypeName = AppCloudProviderInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- name: FfiConverterString.read(from),- title: FfiConverterString.read(from),- connected: FfiConverterBool.read(from),- found: FfiConverterBool.read(from),- source: FfiConverterString.read(from),- profile: FfiConverterString.read(from),- region: FfiConverterString.read(from),- project: FfiConverterString.read(from),- environment: FfiConverterString.read(from),- label: FfiConverterString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.title, into);- FfiConverterBool.write(value.connected, into);- FfiConverterBool.write(value.found, into);- FfiConverterString.write(value.source, into);- FfiConverterString.write(value.profile, into);- FfiConverterString.write(value.region, into);- FfiConverterString.write(value.project, into);- FfiConverterString.write(value.environment, into);- FfiConverterString.write(value.label, into);+ static new(+inner: {action: string }): SpaceWizard_ {+ return new SpaceWizard_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.title) +- FfiConverterBool.allocationSize(value.connected) +- FfiConverterBool.allocationSize(value.found) +- FfiConverterString.allocationSize(value.source) +- FfiConverterString.allocationSize(value.profile) +- FfiConverterString.allocationSize(value.region) +- FfiConverterString.allocationSize(value.project) +- FfiConverterString.allocationSize(value.environment) +- FfiConverterString.allocationSize(value.label);+ static instanceOf(obj: any): obj is SpaceWizard_ {+ return obj.tag === AppTelemetrySignal_Tags.SpaceWizard;}- };- return new FFIConverter();-})();-export type AppCloudConnectInput = {+ }++ type SpaceCreate__interface = {+ tag: AppTelemetrySignal_Tags.SpaceCreate;+ inner:+Readonly<{location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string}>+ };/**- * The providers this build supports.+ * A Space create reached ready or failed (`cua_space_create`).*/- providers: Array<AppCloudProviderInput>-}--/**- * Generated factory for {@link AppCloudConnectInput} record objects.- */-export const AppCloudConnectInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppCloudConnectInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudConnectInput>,- });-})();+ class SpaceCreate_ extends UniffiEnum implements SpaceCreate__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.SpaceCreate;+ readonly inner:+Readonly<{location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string}>;+ constructor(+inner: {location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string }) {+ super("AppTelemetrySignal", "SpaceCreate");-const FfiConverterTypeAppCloudConnectInput = (() => {- type TypeName = AppCloudConnectInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- providers: FfiConverterSequenceTypeAppCloudProviderInput.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppCloudProviderInput.write(value.providers, into);+ static new(+inner: {location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string }): SpaceCreate_ {+ return new SpaceCreate_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppCloudProviderInput.allocationSize(value.providers);+ static instanceOf(obj: any): obj is SpaceCreate_ {+ return obj.tag === AppTelemetrySignal_Tags.SpaceCreate;}++ }++ type SpaceCreateStarted__interface = {+ tag: AppTelemetrySignal_Tags.SpaceCreateStarted;+ inner:+Readonly<{location: string; guestOs: string; kind: string; gpu: boolean}>};- return new FFIConverter();-})();+ /**+ * A Space create started (`cua_space_create_started`).+ */+ class SpaceCreateStarted_ extends UniffiEnum implements SpaceCreateStarted__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.SpaceCreateStarted;+ readonly inner:+Readonly<{location: string; guestOs: string; kind: string; gpu: boolean}>;+ constructor(+inner: {location: string; guestOs: string; kind: string; gpu: boolean }) {+ super("AppTelemetrySignal", "SpaceCreateStarted");+ this.inner = Object.freeze(inner);+ }+ static new(+inner: {location: string; guestOs: string; kind: string; gpu: boolean }): SpaceCreateStarted_ {+ return new SpaceCreateStarted_(inner);+ }-// Enum: AppCloudConnectPhase-export enum AppCloudConnectPhase_Tags {- Idle = "Idle",- Testing = "Testing",- Tested = "Tested",- Connecting = "Connecting",- Connected = "Connected",- Failed = "Failed"-}-export const AppCloudConnectPhase = (() => {+ static instanceOf(obj: any): obj is SpaceCreateStarted_ {+ return obj.tag === AppTelemetrySignal_Tags.SpaceCreateStarted;+ }- type Idle__interface = {- tag: AppCloudConnectPhase_Tags.Idle+ }++ type VolumeSetup__interface = {+ tag: AppTelemetrySignal_Tags.VolumeSetup;+ inner:+Readonly<{surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string}>};/**- * Nothing running.+ * A Cua Volume setting was saved (`cua_volume_setup`).*/- class Idle_ extends UniffiEnum implements Idle__interface {+ class VolumeSetup_ extends UniffiEnum implements VolumeSetup__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";- readonly tag = AppCloudConnectPhase_Tags.Idle;- constructor() {- super("AppCloudConnectPhase", "Idle");- }+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.VolumeSetup;+ readonly inner:+Readonly<{surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string}>;+ constructor(+inner: {surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string }) {+ super("AppTelemetrySignal", "VolumeSetup");- static new(): Idle_ {- return new Idle_();+ this.inner = Object.freeze(inner);+ }+ static new(+inner: {surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string }): VolumeSetup_ {+ return new VolumeSetup_(inner);}- static instanceOf(obj: any): obj is Idle_ {- return obj.tag === AppCloudConnectPhase_Tags.Idle;+ static instanceOf(obj: any): obj is VolumeSetup_ {+ return obj.tag === AppTelemetrySignal_Tags.VolumeSetup;}}- type Testing__interface = {- tag: AppCloudConnectPhase_Tags.Testing+ type Share__interface = {+ tag: AppTelemetrySignal_Tags.Share;+ inner:+Readonly<{action: string; role: string; outcome: string}>};/**- * `cloud_test` is running.+ * A Space was shared, unshared or its role changed (`cua_share`).*/- class Testing_ extends UniffiEnum implements Testing__interface {+ class Share_ extends UniffiEnum implements Share__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";- readonly tag = AppCloudConnectPhase_Tags.Testing;- constructor() {- super("AppCloudConnectPhase", "Testing");- }+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.Share;+ readonly inner:+Readonly<{action: string; role: string; outcome: string}>;+ constructor(+inner: {action: string; role: string; outcome: string }) {+ super("AppTelemetrySignal", "Share");- static new(): Testing_ {- return new Testing_();+ this.inner = Object.freeze(inner);+ }+ static new(+inner: {action: string; role: string; outcome: string }): Share_ {+ return new Share_(inner);}- static instanceOf(obj: any): obj is Testing_ {- return obj.tag === AppCloudConnectPhase_Tags.Testing;+ static instanceOf(obj: any): obj is Share_ {+ return obj.tag === AppTelemetrySignal_Tags.Share;}}- type Tested__interface = {- tag: AppCloudConnectPhase_Tags.Tested;+ type AppUpdate__interface = {+ tag: AppTelemetrySignal_Tags.AppUpdate;inner:-Readonly<{ok: boolean; account: string; checks: Array<AppCloudCheckInput>}>+Readonly<{action: string; channel: string; trigger: string}>};/**- * A test finished.+ * An updater step (`cua_app_update`).*/- class Tested_ extends UniffiEnum implements Tested__interface {+ class AppUpdate_ extends UniffiEnum implements AppUpdate__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";- readonly tag = AppCloudConnectPhase_Tags.Tested;+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.AppUpdate;readonly inner:-Readonly<{ok: boolean; account: string; checks: Array<AppCloudCheckInput>}>;+Readonly<{action: string; channel: string; trigger: string}>;constructor(-inner: {ok: boolean; account: string; checks: Array<AppCloudCheckInput> }) {- super("AppCloudConnectPhase", "Tested");+inner: {action: string; channel: string; trigger: string }) {+ super("AppTelemetrySignal", "AppUpdate");this.inner = Object.freeze(inner);}static new(-inner: {ok: boolean; account: string; checks: Array<AppCloudCheckInput> }): Tested_ {- return new Tested_(inner);+inner: {action: string; channel: string; trigger: string }): AppUpdate_ {+ return new AppUpdate_(inner);}- static instanceOf(obj: any): obj is Tested_ {- return obj.tag === AppCloudConnectPhase_Tags.Tested;+ static instanceOf(obj: any): obj is AppUpdate_ {+ return obj.tag === AppTelemetrySignal_Tags.AppUpdate;}}- type Connecting__interface = {- tag: AppCloudConnectPhase_Tags.Connecting+ type DeviceEnroll__interface = {+ tag: AppTelemetrySignal_Tags.DeviceEnroll;+ inner:+Readonly<{method: string; outcome: string}>};/**- * `cloud_connect` is running.+ * This device enrolled with the relay, or failed to+ * (`cua_device_enroll`).*/- class Connecting_ extends UniffiEnum implements Connecting__interface {+ class DeviceEnroll_ extends UniffiEnum implements DeviceEnroll__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";- readonly tag = AppCloudConnectPhase_Tags.Connecting;- constructor() {- super("AppCloudConnectPhase", "Connecting");- }+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.DeviceEnroll;+ readonly inner:+Readonly<{method: string; outcome: string}>;+ constructor(+inner: {method: string; outcome: string }) {+ super("AppTelemetrySignal", "DeviceEnroll");- static new(): Connecting_ {- return new Connecting_();+ this.inner = Object.freeze(inner);+ }+ static new(+inner: {method: string; outcome: string }): DeviceEnroll_ {+ return new DeviceEnroll_(inner);}- static instanceOf(obj: any): obj is Connecting_ {- return obj.tag === AppCloudConnectPhase_Tags.Connecting;+ static instanceOf(obj: any): obj is DeviceEnroll_ {+ return obj.tag === AppTelemetrySignal_Tags.DeviceEnroll;}}- type Connected__interface = {- tag: AppCloudConnectPhase_Tags.Connected;+ type Experiment__interface = {+ tag: AppTelemetrySignal_Tags.Experiment;inner:-Readonly<{label: string}>+Readonly<{action: string; experiment: string}>};/**- * Connected (the shell closes the sheet and refreshes).+ * An experiment was turned on or off in Settings, Experiments+ * (`cua_experiment`).*/- class Connected_ extends UniffiEnum implements Connected__interface {+ class Experiment_ extends UniffiEnum implements Experiment__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";- readonly tag = AppCloudConnectPhase_Tags.Connected;+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.Experiment;readonly inner:-Readonly<{label: string}>;+Readonly<{action: string; experiment: string}>;constructor(-inner: {label: string }) {- super("AppCloudConnectPhase", "Connected");+inner: {action: string; experiment: string }) {+ super("AppTelemetrySignal", "Experiment");this.inner = Object.freeze(inner);}static new(-inner: {label: string }): Connected_ {- return new Connected_(inner);+inner: {action: string; experiment: string }): Experiment_ {+ return new Experiment_(inner);}- static instanceOf(obj: any): obj is Connected_ {- return obj.tag === AppCloudConnectPhase_Tags.Connected;+ static instanceOf(obj: any): obj is Experiment_ {+ return obj.tag === AppTelemetrySignal_Tags.Experiment;}}- type Failed__interface = {- tag: AppCloudConnectPhase_Tags.Failed;+ type ExperimentsOn__interface = {+ tag: AppTelemetrySignal_Tags.ExperimentsOn;inner:-Readonly<{error: string}>+Readonly<{experiments: Array<string>}>};/**- * A call failed.+ * Which experiments are on now (no event of its own: the daily+ * `cua_app_active` carries them as `experiments_on`).*/- class Failed_ extends UniffiEnum implements Failed__interface {+ class ExperimentsOn_ extends UniffiEnum implements ExperimentsOn__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";- readonly tag = AppCloudConnectPhase_Tags.Failed;+ readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";+ readonly tag = AppTelemetrySignal_Tags.ExperimentsOn;readonly inner:-Readonly<{error: string}>;+Readonly<{experiments: Array<string>}>;constructor(-inner: {error: string }) {- super("AppCloudConnectPhase", "Failed");+inner: {experiments: Array<string> }) {+ super("AppTelemetrySignal", "ExperimentsOn");this.inner = Object.freeze(inner);}static new(-inner: {error: string }): Failed_ {- return new Failed_(inner);+inner: {experiments: Array<string> }): ExperimentsOn_ {+ return new ExperimentsOn_(inner);}- static instanceOf(obj: any): obj is Failed_ {- return obj.tag === AppCloudConnectPhase_Tags.Failed;+ static instanceOf(obj: any): obj is ExperimentsOn_ {+ return obj.tag === AppTelemetrySignal_Tags.ExperimentsOn;}}- function instanceOf(obj: any): obj is AppCloudConnectPhase {- return obj[uniffiTypeNameSymbol] === "AppCloudConnectPhase";+ function instanceOf(obj: any): obj is AppTelemetrySignal {+ return obj[uniffiTypeNameSymbol] === "AppTelemetrySignal";}return Object.freeze({instanceOf,- Idle: Idle_,- Testing: Testing_,- Tested: Tested_,- Connecting: Connecting_,- Connected: Connected_,- Failed: Failed_+ Feature: Feature_,+ Step: Step_,+ Launched: Launched_,+ SignInFailed: SignInFailed_,+ OnboardingPage: OnboardingPage_,+ SpaceWizard: SpaceWizard_,+ SpaceCreate: SpaceCreate_,+ SpaceCreateStarted: SpaceCreateStarted_,+ VolumeSetup: VolumeSetup_,+ Share: Share_,+ AppUpdate: AppUpdate_,+ DeviceEnroll: DeviceEnroll_,+ Experiment: Experiment_,+ ExperimentsOn: ExperimentsOn_});})();-export type AppCloudConnectPhase = InstanceType<- typeof AppCloudConnectPhase['Idle' | 'Testing' | 'Tested' | 'Connecting' | 'Connected' | 'Failed']+export type AppTelemetrySignal = InstanceType<+ typeof AppTelemetrySignal['Feature' | 'Step' | 'Launched' | 'SignInFailed' | 'OnboardingPage' | 'SpaceWizard' | 'SpaceCreate' | 'SpaceCreateStarted' | 'VolumeSetup' | 'Share' | 'AppUpdate' | 'DeviceEnroll' | 'Experiment' | 'ExperimentsOn']>;-// FfiConverter for enum AppCloudConnectPhase-const FfiConverterTypeAppCloudConnectPhase = (() => {+// FfiConverter for enum AppTelemetrySignal+const FfiConverterTypeAppTelemetrySignal = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppCloudConnectPhase;+ type TypeName = AppTelemetrySignal;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return new AppCloudConnectPhase.Idle();- case 2: return new AppCloudConnectPhase.Testing();- case 3: return new AppCloudConnectPhase.Tested({ok: FfiConverterBool.read(from), account: FfiConverterString.read(from), checks: FfiConverterSequenceTypeAppCloudCheckInput.read(from) });- case 4: return new AppCloudConnectPhase.Connecting();- case 5: return new AppCloudConnectPhase.Connected({label: FfiConverterString.read(from) });- case 6: return new AppCloudConnectPhase.Failed({error: FfiConverterString.read(from) });+ case 1: return new AppTelemetrySignal.Feature({feature: FfiConverterString.read(from) });+ case 2: return new AppTelemetrySignal.Step({step: FfiConverterString.read(from), ok: FfiConverterBool.read(from) });+ case 3: return new AppTelemetrySignal.Launched({onboardingEligible: FfiConverterOptionalBoolean.read(from) });+ case 4: return new AppTelemetrySignal.SignInFailed({errorKind: FfiConverterString.read(from) });+ case 5: return new AppTelemetrySignal.OnboardingPage({page: FfiConverterString.read(from), action: FfiConverterString.read(from), choice: FfiConverterString.read(from) });+ case 6: return new AppTelemetrySignal.SpaceWizard({action: FfiConverterString.read(from) });+ case 7: return new AppTelemetrySignal.SpaceCreate({location: FfiConverterString.read(from), guestOs: FfiConverterString.read(from), kind: FfiConverterString.read(from), outcome: FfiConverterString.read(from), failedPhase: FfiConverterString.read(from), stalled: FfiConverterBool.read(from), elapsedMs: FfiConverterUInt64.read(from), gpu: FfiConverterBool.read(from), errorVariant: FfiConverterString.read(from) });+ case 8: return new AppTelemetrySignal.SpaceCreateStarted({location: FfiConverterString.read(from), guestOs: FfiConverterString.read(from), kind: FfiConverterString.read(from), gpu: FfiConverterBool.read(from) });+ case 9: return new AppTelemetrySignal.VolumeSetup({surface: FfiConverterString.read(from), storage: FfiConverterString.read(from), addToFinder: FfiConverterBool.read(from), mountMethod: FfiConverterString.read(from), outcome: FfiConverterString.read(from) });+ case 10: return new AppTelemetrySignal.Share({action: FfiConverterString.read(from), role: FfiConverterString.read(from), outcome: FfiConverterString.read(from) });+ case 11: return new AppTelemetrySignal.AppUpdate({action: FfiConverterString.read(from), channel: FfiConverterString.read(from), trigger: FfiConverterString.read(from) });+ case 12: return new AppTelemetrySignal.DeviceEnroll({method: FfiConverterString.read(from), outcome: FfiConverterString.read(from) });+ case 13: return new AppTelemetrySignal.Experiment({action: FfiConverterString.read(from), experiment: FfiConverterString.read(from) });+ case 14: return new AppTelemetrySignal.ExperimentsOn({experiments: FfiConverterSequenceString.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value.tag) {- case AppCloudConnectPhase_Tags.Idle: {+ case AppTelemetrySignal_Tags.Feature: {ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterString.write(inner.feature, into);return;}- case AppCloudConnectPhase_Tags.Testing: {+ case AppTelemetrySignal_Tags.Step: {ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.step, into);+ FfiConverterBool.write(inner.ok, into);return;}- case AppCloudConnectPhase_Tags.Tested: {+ case AppTelemetrySignal_Tags.Launched: {ordinalConverter.write(3, into);const inner = value.inner;- FfiConverterBool.write(inner.ok, into);- FfiConverterString.write(inner.account, into);- FfiConverterSequenceTypeAppCloudCheckInput.write(inner.checks, into);+ FfiConverterOptionalBoolean.write(inner.onboardingEligible, into);return;}- case AppCloudConnectPhase_Tags.Connecting: {+ case AppTelemetrySignal_Tags.SignInFailed: {ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterString.write(inner.errorKind, into);return;}- case AppCloudConnectPhase_Tags.Connected: {+ case AppTelemetrySignal_Tags.OnboardingPage: {ordinalConverter.write(5, into);const inner = value.inner;- FfiConverterString.write(inner.label, into);+ FfiConverterString.write(inner.page, into);+ FfiConverterString.write(inner.action, into);+ FfiConverterString.write(inner.choice, into);return;}- case AppCloudConnectPhase_Tags.Failed: {+ case AppTelemetrySignal_Tags.SpaceWizard: {ordinalConverter.write(6, into);const inner = value.inner;- FfiConverterString.write(inner.error, into);+ FfiConverterString.write(inner.action, into);+ return;+ }+ case AppTelemetrySignal_Tags.SpaceCreate: {+ ordinalConverter.write(7, into);+ const inner = value.inner;+ FfiConverterString.write(inner.location, into);+ FfiConverterString.write(inner.guestOs, into);+ FfiConverterString.write(inner.kind, into);+ FfiConverterString.write(inner.outcome, into);+ FfiConverterString.write(inner.failedPhase, into);+ FfiConverterBool.write(inner.stalled, into);+ FfiConverterUInt64.write(inner.elapsedMs, into);+ FfiConverterBool.write(inner.gpu, into);+ FfiConverterString.write(inner.errorVariant, into);+ return;+ }+ case AppTelemetrySignal_Tags.SpaceCreateStarted: {+ ordinalConverter.write(8, into);+ const inner = value.inner;+ FfiConverterString.write(inner.location, into);+ FfiConverterString.write(inner.guestOs, into);+ FfiConverterString.write(inner.kind, into);+ FfiConverterBool.write(inner.gpu, into);+ return;+ }+ case AppTelemetrySignal_Tags.VolumeSetup: {+ ordinalConverter.write(9, into);+ const inner = value.inner;+ FfiConverterString.write(inner.surface, into);+ FfiConverterString.write(inner.storage, into);+ FfiConverterBool.write(inner.addToFinder, into);+ FfiConverterString.write(inner.mountMethod, into);+ FfiConverterString.write(inner.outcome, into);+ return;+ }+ case AppTelemetrySignal_Tags.Share: {+ ordinalConverter.write(10, into);+ const inner = value.inner;+ FfiConverterString.write(inner.action, into);+ FfiConverterString.write(inner.role, into);+ FfiConverterString.write(inner.outcome, into);+ return;+ }+ case AppTelemetrySignal_Tags.AppUpdate: {+ ordinalConverter.write(11, into);+ const inner = value.inner;+ FfiConverterString.write(inner.action, into);+ FfiConverterString.write(inner.channel, into);+ FfiConverterString.write(inner.trigger, into);+ return;+ }+ case AppTelemetrySignal_Tags.DeviceEnroll: {+ ordinalConverter.write(12, into);+ const inner = value.inner;+ FfiConverterString.write(inner.method, into);+ FfiConverterString.write(inner.outcome, into);+ return;+ }+ case AppTelemetrySignal_Tags.Experiment: {+ ordinalConverter.write(13, into);+ const inner = value.inner;+ FfiConverterString.write(inner.action, into);+ FfiConverterString.write(inner.experiment, into);+ return;+ }+ case AppTelemetrySignal_Tags.ExperimentsOn: {+ ordinalConverter.write(14, into);+ const inner = value.inner;+ FfiConverterSequenceString.write(inner.experiments, into);return;}default:- // Throwing from here means that AppCloudConnectPhase_Tags hasn't matched an ordinal.+ // Throwing from here means that AppTelemetrySignal_Tags hasn't matched an ordinal.throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {switch (value.tag) {- case AppCloudConnectPhase_Tags.Idle: {- return ordinalConverter.allocationSize(1);+ case AppTelemetrySignal_Tags.Feature: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterString.allocationSize(inner.feature);+ return size;}- case AppCloudConnectPhase_Tags.Testing: {- return ordinalConverter.allocationSize(2);+ case AppTelemetrySignal_Tags.Step: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterString.allocationSize(inner.step);+ size += FfiConverterBool.allocationSize(inner.ok);+ return size;}- case AppCloudConnectPhase_Tags.Tested: {+ case AppTelemetrySignal_Tags.Launched: {const inner = value.inner;let size = ordinalConverter.allocationSize(3);- size += FfiConverterBool.allocationSize(inner.ok);- size += FfiConverterString.allocationSize(inner.account);- size += FfiConverterSequenceTypeAppCloudCheckInput.allocationSize(inner.checks);+ size += FfiConverterOptionalBoolean.allocationSize(inner.onboardingEligible);return size;}- case AppCloudConnectPhase_Tags.Connecting: {- return ordinalConverter.allocationSize(4);+ case AppTelemetrySignal_Tags.SignInFailed: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterString.allocationSize(inner.errorKind);+ return size;}- case AppCloudConnectPhase_Tags.Connected: {+ case AppTelemetrySignal_Tags.OnboardingPage: {const inner = value.inner;let size = ordinalConverter.allocationSize(5);- size += FfiConverterString.allocationSize(inner.label);+ size += FfiConverterString.allocationSize(inner.page);+ size += FfiConverterString.allocationSize(inner.action);+ size += FfiConverterString.allocationSize(inner.choice);return size;}- case AppCloudConnectPhase_Tags.Failed: {+ case AppTelemetrySignal_Tags.SpaceWizard: {const inner = value.inner;let size = ordinalConverter.allocationSize(6);- size += FfiConverterString.allocationSize(inner.error);+ size += FfiConverterString.allocationSize(inner.action);+ return size;+ }+ case AppTelemetrySignal_Tags.SpaceCreate: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(7);+ size += FfiConverterString.allocationSize(inner.location);+ size += FfiConverterString.allocationSize(inner.guestOs);+ size += FfiConverterString.allocationSize(inner.kind);+ size += FfiConverterString.allocationSize(inner.outcome);+ size += FfiConverterString.allocationSize(inner.failedPhase);+ size += FfiConverterBool.allocationSize(inner.stalled);+ size += FfiConverterUInt64.allocationSize(inner.elapsedMs);+ size += FfiConverterBool.allocationSize(inner.gpu);+ size += FfiConverterString.allocationSize(inner.errorVariant);+ return size;+ }+ case AppTelemetrySignal_Tags.SpaceCreateStarted: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(8);+ size += FfiConverterString.allocationSize(inner.location);+ size += FfiConverterString.allocationSize(inner.guestOs);+ size += FfiConverterString.allocationSize(inner.kind);+ size += FfiConverterBool.allocationSize(inner.gpu);+ return size;+ }+ case AppTelemetrySignal_Tags.VolumeSetup: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(9);+ size += FfiConverterString.allocationSize(inner.surface);+ size += FfiConverterString.allocationSize(inner.storage);+ size += FfiConverterBool.allocationSize(inner.addToFinder);+ size += FfiConverterString.allocationSize(inner.mountMethod);+ size += FfiConverterString.allocationSize(inner.outcome);+ return size;+ }+ case AppTelemetrySignal_Tags.Share: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(10);+ size += FfiConverterString.allocationSize(inner.action);+ size += FfiConverterString.allocationSize(inner.role);+ size += FfiConverterString.allocationSize(inner.outcome);+ return size;+ }+ case AppTelemetrySignal_Tags.AppUpdate: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(11);+ size += FfiConverterString.allocationSize(inner.action);+ size += FfiConverterString.allocationSize(inner.channel);+ size += FfiConverterString.allocationSize(inner.trigger);+ return size;+ }+ case AppTelemetrySignal_Tags.DeviceEnroll: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(12);+ size += FfiConverterString.allocationSize(inner.method);+ size += FfiConverterString.allocationSize(inner.outcome);+ return size;+ }+ case AppTelemetrySignal_Tags.Experiment: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(13);+ size += FfiConverterString.allocationSize(inner.action);+ size += FfiConverterString.allocationSize(inner.experiment);+ return size;+ }+ case AppTelemetrySignal_Tags.ExperimentsOn: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(14);+ size += FfiConverterSequenceString.allocationSize(inner.experiments);return size;}default: throw new UniffiInternalError.UnexpectedEnumCase();@@ -10884,790 +11104,570 @@ const FfiConverterTypeAppCloudConnectPhase = (() => {return new FFIConverter();})();-export type AppCloudConnectState = {- /**- * The chosen provider (`aws`); `None`: the first with credentials.- */- selected?: string,- /**- * The region, project or environment as typed (empty: the default).- */- value: string,- /**- * The profile as typed (empty: the default).- */- profile: string,+export type AppChecklistTransition = {/**- * Also make it the default location.+ * The new state (save it when it changed).*/- makeDefault: boolean,+ state: AppChecklistState,/**- * Where it is.+ * `cua_onboarding_step` events to record (`checklist_<event>`).*/- phase: AppCloudConnectPhase+ signals: Array<AppTelemetrySignal>}/**- * Generated factory for {@link AppCloudConnectState} record objects.+ * Generated factory for {@link AppChecklistTransition} record objects.*/-export const AppCloudConnectState = (() => {+export const AppChecklistTransition = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCloudConnectState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppChecklistTransition, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudConnectState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppChecklistTransition>,});})();-const FfiConverterTypeAppCloudConnectState = (() => {- type TypeName = AppCloudConnectState;+const FfiConverterTypeAppChecklistTransition = (() => {+ type TypeName = AppChecklistTransition;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- selected: FfiConverterOptionalString.read(from),- value: FfiConverterString.read(from),- profile: FfiConverterString.read(from),- makeDefault: FfiConverterBool.read(from),- phase: FfiConverterTypeAppCloudConnectPhase.read(from)+ state: FfiConverterTypeAppChecklistState.read(from),+ signals: FfiConverterSequenceTypeAppTelemetrySignal.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.selected, into);- FfiConverterString.write(value.value, into);- FfiConverterString.write(value.profile, into);- FfiConverterBool.write(value.makeDefault, into);- FfiConverterTypeAppCloudConnectPhase.write(value.phase, into);+ FfiConverterTypeAppChecklistState.write(value.state, into);+ FfiConverterSequenceTypeAppTelemetrySignal.write(value.signals, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.selected) +- FfiConverterString.allocationSize(value.value) +- FfiConverterString.allocationSize(value.profile) +- FfiConverterBool.allocationSize(value.makeDefault) +- FfiConverterTypeAppCloudConnectPhase.allocationSize(value.phase);+ return FfiConverterTypeAppChecklistState.allocationSize(value.state) ++ FfiConverterSequenceTypeAppTelemetrySignal.allocationSize(value.signals);}};return new FFIConverter();})();-export type AppCloudProviderRow = {+export type AppChecklistView = {/**- * `aws`.+ * On screen (not closed).*/- id: string,+ visible: boolean,/**- * `AWS`.+ * Every step done.+ */+ complete: boolean,+ /**+ * "Get started", or "You're set up" when complete.*/title: string,/**- * The one line after the title ("Connected, AWS \u{b7} us-west-2",- * "~/.aws profile default", "No sign-in found").+ * The line under the title.*/detail: string,/**- * This machine has its sign-in (the found mark).+ * "2 of 5".*/- found: boolean,+ progress: string,/**- * Chosen.+ * The close button's accessibility label.*/- selected: boolean+ closeLabel: string,+ /**+ * The steps in order.+ */+ rows: Array<AppChecklistRow>}/**- * Generated factory for {@link AppCloudProviderRow} record objects.+ * Generated factory for {@link AppChecklistView} record objects.*/-export const AppCloudProviderRow = (() => {+export const AppChecklistView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCloudProviderRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppChecklistView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudProviderRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppChecklistView>,});})();-const FfiConverterTypeAppCloudProviderRow = (() => {- type TypeName = AppCloudProviderRow;+const FfiConverterTypeAppChecklistView = (() => {+ type TypeName = AppChecklistView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),+ visible: FfiConverterBool.read(from),+ complete: FfiConverterBool.read(from),title: FfiConverterString.read(from),detail: FfiConverterString.read(from),- found: FfiConverterBool.read(from),- selected: FfiConverterBool.read(from)+ progress: FfiConverterString.read(from),+ closeLabel: FfiConverterString.read(from),+ rows: FfiConverterSequenceTypeAppChecklistRow.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);+ FfiConverterBool.write(value.visible, into);+ FfiConverterBool.write(value.complete, into);FfiConverterString.write(value.title, into);FfiConverterString.write(value.detail, into);- FfiConverterBool.write(value.found, into);- FfiConverterBool.write(value.selected, into);+ FfiConverterString.write(value.progress, into);+ FfiConverterString.write(value.closeLabel, into);+ FfiConverterSequenceTypeAppChecklistRow.write(value.rows, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) ++ return FfiConverterBool.allocationSize(value.visible) ++ FfiConverterBool.allocationSize(value.complete) +FfiConverterString.allocationSize(value.title) +FfiConverterString.allocationSize(value.detail) +- FfiConverterBool.allocationSize(value.found) +- FfiConverterBool.allocationSize(value.selected);+ FfiConverterString.allocationSize(value.progress) ++ FfiConverterString.allocationSize(value.closeLabel) ++ FfiConverterSequenceTypeAppChecklistRow.allocationSize(value.rows);}};return new FFIConverter();})();-export type AppCloudField = {+export type AppExperiments = {/**- * `region`, `project`, `environment`, `profile`.+ * Cua Volume in the first run and Settings, Storage.*/- id: string,+ cuaVolume: boolean,/**- * "Region".+ * Your own clouds in the New Space wizard.*/- label: string,+ yourCloud: boolean,/**- * The default the provider uses when it is empty.+ * Sharing a Space with other accounts.*/- placeholder: string,+ sharing: boolean,/**- * As typed.+ * The shared web UI, previewed in its own window.*/- value: string+ webUi: boolean}/**- * Generated factory for {@link AppCloudField} record objects.+ * Generated factory for {@link AppExperiments} record objects.*/-export const AppCloudField = (() => {+export const AppExperiments = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCloudField, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppExperiments, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudField>,+ defaults: () => Object.freeze(defaults()) as Partial<AppExperiments>,});})();-const FfiConverterTypeAppCloudField = (() => {- type TypeName = AppCloudField;+const FfiConverterTypeAppExperiments = (() => {+ type TypeName = AppExperiments;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- placeholder: FfiConverterString.read(from),- value: FfiConverterString.read(from)+ cuaVolume: FfiConverterBool.read(from),+ yourCloud: FfiConverterBool.read(from),+ sharing: FfiConverterBool.read(from),+ webUi: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.placeholder, into);- FfiConverterString.write(value.value, into);+ FfiConverterBool.write(value.cuaVolume, into);+ FfiConverterBool.write(value.yourCloud, into);+ FfiConverterBool.write(value.sharing, into);+ FfiConverterBool.write(value.webUi, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.placeholder) +- FfiConverterString.allocationSize(value.value);+ return FfiConverterBool.allocationSize(value.cuaVolume) ++ FfiConverterBool.allocationSize(value.yourCloud) ++ FfiConverterBool.allocationSize(value.sharing) ++ FfiConverterBool.allocationSize(value.webUi);}};return new FFIConverter();})();-export type AppCloudTargetArgs = {- /**- * `aws`, `gcp`, `modal`.- */- provider: string,+export type AppChromeInput = {/**- * AWS or Modal profile.+ * The signed-in account.*/- profile?: string,+ identity?: string,/**- * AWS region.+ * Cua Cloud works (signed in, or client credentials).*/- region?: string,+ cloudConfigured: boolean,/**- * GCP project.+ * Signing in is possible here (the native shell).*/- project?: string,+ canSignIn: boolean,/**- * Modal environment.+ * Settings, Experiments: the Volume page only with Cua Volume on+ * (none: every page, for callers that predate experiments).*/- environment?: string+ experiments?: AppExperiments}/**- * Generated factory for {@link AppCloudTargetArgs} record objects.+ * Generated factory for {@link AppChromeInput} record objects.*/-export const AppCloudTargetArgs = (() => {+export const AppChromeInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCloudTargetArgs, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppChromeInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudTargetArgs>,+ defaults: () => Object.freeze(defaults()) as Partial<AppChromeInput>,});})();-const FfiConverterTypeAppCloudTargetArgs = (() => {- type TypeName = AppCloudTargetArgs;+const FfiConverterTypeAppChromeInput = (() => {+ type TypeName = AppChromeInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- provider: FfiConverterString.read(from),- profile: FfiConverterOptionalString.read(from),- region: FfiConverterOptionalString.read(from),- project: FfiConverterOptionalString.read(from),- environment: FfiConverterOptionalString.read(from)+ identity: FfiConverterOptionalString.read(from),+ cloudConfigured: FfiConverterBool.read(from),+ canSignIn: FfiConverterBool.read(from),+ experiments: FfiConverterOptionalTypeAppExperiments.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.provider, into);- FfiConverterOptionalString.write(value.profile, into);- FfiConverterOptionalString.write(value.region, into);- FfiConverterOptionalString.write(value.project, into);- FfiConverterOptionalString.write(value.environment, into);+ FfiConverterOptionalString.write(value.identity, into);+ FfiConverterBool.write(value.cloudConfigured, into);+ FfiConverterBool.write(value.canSignIn, into);+ FfiConverterOptionalTypeAppExperiments.write(value.experiments, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.provider) +- FfiConverterOptionalString.allocationSize(value.profile) +- FfiConverterOptionalString.allocationSize(value.region) +- FfiConverterOptionalString.allocationSize(value.project) +- FfiConverterOptionalString.allocationSize(value.environment);+ return FfiConverterOptionalString.allocationSize(value.identity) ++ FfiConverterBool.allocationSize(value.cloudConfigured) ++ FfiConverterBool.allocationSize(value.canSignIn) ++ FfiConverterOptionalTypeAppExperiments.allocationSize(value.experiments);}};return new FFIConverter();})();--// Enum: AppCloudConnectRequest-export enum AppCloudConnectRequest_Tags {- Test = "Test",- Connect = "Connect"-}-export const AppCloudConnectRequest = (() => {-- type Test__interface = {- tag: AppCloudConnectRequest_Tags.Test;- inner:-Readonly<{target: AppCloudTargetArgs}>- };+export enum AppInstallMethod {/**- * `cloud_test`.+ * A symlink into the app bundle: app updates update the CLI too.*/- class Test_ extends UniffiEnum implements Test__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppCloudConnectRequest";- readonly tag = AppCloudConnectRequest_Tags.Test;- readonly inner:-Readonly<{target: AppCloudTargetArgs}>;- constructor(-inner: {target: AppCloudTargetArgs }) {- super("AppCloudConnectRequest", "Test");+ Symlink = "symlink",+ /**+ * A copy of the bundled binary.+ */+ Copy = "copy"+}- this.inner = Object.freeze(inner);+const FfiConverterTypeAppInstallMethod = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppInstallMethod;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppInstallMethod.Symlink;+ case 2: return AppInstallMethod.Copy;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- static new(-inner: {target: AppCloudTargetArgs }): Test_ {- return new Test_(inner);+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppInstallMethod.Symlink: return ordinalConverter.write(1, into);+ case AppInstallMethod.Copy: return ordinalConverter.write(2, into);+ }}-- static instanceOf(obj: any): obj is Test_ {- return obj.tag === AppCloudConnectRequest_Tags.Test;+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);}-}+ return new FFIConverter();+})();- type Connect__interface = {- tag: AppCloudConnectRequest_Tags.Connect;- inner:-Readonly<{target: AppCloudTargetArgs; makeDefault: boolean}>- };+export type AppCliInstallPlan = {/**- * `cloud_connect`.+ * The bundled CLI, when this build carries one.*/- class Connect_ extends UniffiEnum implements Connect__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppCloudConnectRequest";- readonly tag = AppCloudConnectRequest_Tags.Connect;- readonly inner:-Readonly<{target: AppCloudTargetArgs; makeDefault: boolean}>;- constructor(-inner: {target: AppCloudTargetArgs; makeDefault: boolean }) {- super("AppCloudConnectRequest", "Connect");-- this.inner = Object.freeze(inner);- }- static new(-inner: {target: AppCloudTargetArgs; makeDefault: boolean }): Connect_ {- return new Connect_(inner);- }-- static instanceOf(obj: any): obj is Connect_ {- return obj.tag === AppCloudConnectRequest_Tags.Connect;- }-- }-- function instanceOf(obj: any): obj is AppCloudConnectRequest {- return obj[uniffiTypeNameSymbol] === "AppCloudConnectRequest";- }-- return Object.freeze({- instanceOf,- Test: Test_,- Connect: Connect_- });--})();-export type AppCloudConnectRequest = InstanceType<- typeof AppCloudConnectRequest['Test' | 'Connect']->;--// FfiConverter for enum AppCloudConnectRequest-const FfiConverterTypeAppCloudConnectRequest = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppCloudConnectRequest;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppCloudConnectRequest.Test({target: FfiConverterTypeAppCloudTargetArgs.read(from) });- case 2: return new AppCloudConnectRequest.Connect({target: FfiConverterTypeAppCloudTargetArgs.read(from), makeDefault: FfiConverterBool.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppCloudConnectRequest_Tags.Test: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterTypeAppCloudTargetArgs.write(inner.target, into);- return;- }- case AppCloudConnectRequest_Tags.Connect: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterTypeAppCloudTargetArgs.write(inner.target, into);- FfiConverterBool.write(inner.makeDefault, into);- return;- }- default:- // Throwing from here means that AppCloudConnectRequest_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case AppCloudConnectRequest_Tags.Test: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterTypeAppCloudTargetArgs.allocationSize(inner.target);- return size;- }- case AppCloudConnectRequest_Tags.Connect: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterTypeAppCloudTargetArgs.allocationSize(inner.target);- size += FfiConverterBool.allocationSize(inner.makeDefault);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- }- return new FFIConverter();-})();--export type AppCloudConnectView = {- /**- * "Connect a cloud".- */- title: string,- /**- * The providers.- */- rows: Array<AppCloudProviderRow>,- /**- * The region, project or environment field.- */- field?: AppCloudField,- /**- * The profile field (AWS, Modal).- */- profileField?: AppCloudField,- /**- * The checks the last test ran.- */- checks: Array<AppCloudCheckRow>,- /**- * One line under the checks ("Ready. Nothing was created.").- */- result?: string,- /**- * "What Cua will touch": what the selected provider creates, that- * only Cua's own tagged resources are ever touched, how cost and- * auto-stop work, and the command to remove everything. Empty when- * no real provider is chosen (including "No cloud").- */- touches: Array<string>,+ source?: string,/**- * "Make default".+ * Exact file the CLI is written to.*/- makeDefaultLabel: string,+ target: string,/**- * Its value.+ * Directory of `target`.*/- makeDefault: boolean,+ binDir: string,/**- * "Test" / "Testing\u{2026}".+ * `symlink` or `copy`.*/- testLabel: string,+ method?: AppInstallMethod,/**- * Test can be pressed.+ * Something already exists at `target`.*/- canTest: boolean,+ installed: boolean,/**- * Test's tooltip.+ * `target` resolves to this app's bundled CLI (nothing to do).*/- testHelp: string,+ upToDate: boolean,/**- * "Connect" / "Connecting\u{2026}".+ * `cua --version` of what is at `target`.*/- connectLabel: string,+ installedVersion?: string,/**- * Connect can be pressed.+ * `cua --version` of the bundled CLI.*/- canConnect: boolean,+ bundledVersion?: string,/**- * "Cancel".+ * Another `cua` found earlier on PATH (it would shadow `target`).*/- cancelLabel: string,+ shadowedBy?: string,/**- * The last error.+ * `bin_dir` is already on PATH.*/- error?: string,+ onPath: boolean,/**- * Connected: close the sheet and refresh.+ * Shell profile (or "user PATH" on Windows) the PATH change would edit.*/- done: boolean,+ pathProfile?: string,/**- * The call to run now (while testing or connecting).+ * The line that would be added to `path_profile`.*/- request?: AppCloudConnectRequest+ pathLine?: string}/**- * Generated factory for {@link AppCloudConnectView} record objects.+ * Generated factory for {@link AppCliInstallPlan} record objects.*/-export const AppCloudConnectView = (() => {+export const AppCliInstallPlan = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCloudConnectView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCliInstallPlan, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudConnectView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCliInstallPlan>,});})();-const FfiConverterTypeAppCloudConnectView = (() => {- type TypeName = AppCloudConnectView;+const FfiConverterTypeAppCliInstallPlan = (() => {+ type TypeName = AppCliInstallPlan;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- rows: FfiConverterSequenceTypeAppCloudProviderRow.read(from),- field: FfiConverterOptionalTypeAppCloudField.read(from),- profileField: FfiConverterOptionalTypeAppCloudField.read(from),- checks: FfiConverterSequenceTypeAppCloudCheckRow.read(from),- result: FfiConverterOptionalString.read(from),- touches: FfiConverterSequenceString.read(from),- makeDefaultLabel: FfiConverterString.read(from),- makeDefault: FfiConverterBool.read(from),- testLabel: FfiConverterString.read(from),- canTest: FfiConverterBool.read(from),- testHelp: FfiConverterString.read(from),- connectLabel: FfiConverterString.read(from),- canConnect: FfiConverterBool.read(from),- cancelLabel: FfiConverterString.read(from),- error: FfiConverterOptionalString.read(from),- done: FfiConverterBool.read(from),- request: FfiConverterOptionalTypeAppCloudConnectRequest.read(from)+ source: FfiConverterOptionalString.read(from),+ target: FfiConverterString.read(from),+ binDir: FfiConverterString.read(from),+ method: FfiConverterOptionalTypeAppInstallMethod.read(from),+ installed: FfiConverterBool.read(from),+ upToDate: FfiConverterBool.read(from),+ installedVersion: FfiConverterOptionalString.read(from),+ bundledVersion: FfiConverterOptionalString.read(from),+ shadowedBy: FfiConverterOptionalString.read(from),+ onPath: FfiConverterBool.read(from),+ pathProfile: FfiConverterOptionalString.read(from),+ pathLine: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppCloudProviderRow.write(value.rows, into);- FfiConverterOptionalTypeAppCloudField.write(value.field, into);- FfiConverterOptionalTypeAppCloudField.write(value.profileField, into);- FfiConverterSequenceTypeAppCloudCheckRow.write(value.checks, into);- FfiConverterOptionalString.write(value.result, into);- FfiConverterSequenceString.write(value.touches, into);- FfiConverterString.write(value.makeDefaultLabel, into);- FfiConverterBool.write(value.makeDefault, into);- FfiConverterString.write(value.testLabel, into);- FfiConverterBool.write(value.canTest, into);- FfiConverterString.write(value.testHelp, into);- FfiConverterString.write(value.connectLabel, into);- FfiConverterBool.write(value.canConnect, into);- FfiConverterString.write(value.cancelLabel, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.done, into);- FfiConverterOptionalTypeAppCloudConnectRequest.write(value.request, into);+ FfiConverterOptionalString.write(value.source, into);+ FfiConverterString.write(value.target, into);+ FfiConverterString.write(value.binDir, into);+ FfiConverterOptionalTypeAppInstallMethod.write(value.method, into);+ FfiConverterBool.write(value.installed, into);+ FfiConverterBool.write(value.upToDate, into);+ FfiConverterOptionalString.write(value.installedVersion, into);+ FfiConverterOptionalString.write(value.bundledVersion, into);+ FfiConverterOptionalString.write(value.shadowedBy, into);+ FfiConverterBool.write(value.onPath, into);+ FfiConverterOptionalString.write(value.pathProfile, into);+ FfiConverterOptionalString.write(value.pathLine, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppCloudProviderRow.allocationSize(value.rows) +- FfiConverterOptionalTypeAppCloudField.allocationSize(value.field) +- FfiConverterOptionalTypeAppCloudField.allocationSize(value.profileField) +- FfiConverterSequenceTypeAppCloudCheckRow.allocationSize(value.checks) +- FfiConverterOptionalString.allocationSize(value.result) +- FfiConverterSequenceString.allocationSize(value.touches) +- FfiConverterString.allocationSize(value.makeDefaultLabel) +- FfiConverterBool.allocationSize(value.makeDefault) +- FfiConverterString.allocationSize(value.testLabel) +- FfiConverterBool.allocationSize(value.canTest) +- FfiConverterString.allocationSize(value.testHelp) +- FfiConverterString.allocationSize(value.connectLabel) +- FfiConverterBool.allocationSize(value.canConnect) +- FfiConverterString.allocationSize(value.cancelLabel) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.done) +- FfiConverterOptionalTypeAppCloudConnectRequest.allocationSize(value.request);+ return FfiConverterOptionalString.allocationSize(value.source) ++ FfiConverterString.allocationSize(value.target) ++ FfiConverterString.allocationSize(value.binDir) ++ FfiConverterOptionalTypeAppInstallMethod.allocationSize(value.method) ++ FfiConverterBool.allocationSize(value.installed) ++ FfiConverterBool.allocationSize(value.upToDate) ++ FfiConverterOptionalString.allocationSize(value.installedVersion) ++ FfiConverterOptionalString.allocationSize(value.bundledVersion) ++ FfiConverterOptionalString.allocationSize(value.shadowedBy) ++ FfiConverterBool.allocationSize(value.onPath) ++ FfiConverterOptionalString.allocationSize(value.pathProfile) ++ FfiConverterOptionalString.allocationSize(value.pathLine);}};return new FFIConverter();})();-export type AppCloudOffer = {- /**- * The image family: `linux`, `linux-slim`, `linux-vm`, `windows`,- * `omarchy`, `macos`.- */- image: string,- /**- * `container` or `vm`.- */- kind: string,- /**- * Whether it can run there.- */- supported: boolean,- /**- * Why not (one line), or a note.- */- reason: string,- /**- * The machine type the cloud picks (`t4g.medium`).- */- machineType: string,+export type AppCliInstallRequest = {/**- * Estimated US dollars per hour while it runs.+ * Also add the bin dir to PATH (edits `path_profile`).*/- usdPerHour: number+ modifyPath: boolean}/**- * Generated factory for {@link AppCloudOffer} record objects.+ * Generated factory for {@link AppCliInstallRequest} record objects.*/-export const AppCloudOffer = (() => {+export const AppCliInstallRequest = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCloudOffer, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCliInstallRequest, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudOffer>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCliInstallRequest>,});})();-const FfiConverterTypeAppCloudOffer = (() => {- type TypeName = AppCloudOffer;+const FfiConverterTypeAppCliInstallRequest = (() => {+ type TypeName = AppCliInstallRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- image: FfiConverterString.read(from),- kind: FfiConverterString.read(from),- supported: FfiConverterBool.read(from),- reason: FfiConverterString.read(from),- machineType: FfiConverterString.read(from),- usdPerHour: FfiConverterFloat64.read(from)+ modifyPath: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.image, into);- FfiConverterString.write(value.kind, into);- FfiConverterBool.write(value.supported, into);- FfiConverterString.write(value.reason, into);- FfiConverterString.write(value.machineType, into);- FfiConverterFloat64.write(value.usdPerHour, into);+ FfiConverterBool.write(value.modifyPath, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.image) +- FfiConverterString.allocationSize(value.kind) +- FfiConverterBool.allocationSize(value.supported) +- FfiConverterString.allocationSize(value.reason) +- FfiConverterString.allocationSize(value.machineType) +- FfiConverterFloat64.allocationSize(value.usdPerHour);+ return FfiConverterBool.allocationSize(value.modifyPath);}};return new FFIConverter();})();-export type AppCloudPricing = {+export type AppCloudCheckInput = {/**- * USD per reserved vCPU per hour.+ * `credentials`, `permissions`, `quota`, ...*/- vcpuHourUsd: number,+ name: string,/**- * USD per reserved GB (GiB) of memory per hour.+ * Passed.*/- memoryGibHourUsd: number+ ok: boolean,+ /**+ * What was found, or what to fix.+ */+ detail: string}/**- * Generated factory for {@link AppCloudPricing} record objects.+ * Generated factory for {@link AppCloudCheckInput} record objects.*/-export const AppCloudPricing = (() => {+export const AppCloudCheckInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCloudPricing, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudCheckInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCloudPricing>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudCheckInput>,});})();-const FfiConverterTypeAppCloudPricing = (() => {- type TypeName = AppCloudPricing;+const FfiConverterTypeAppCloudCheckInput = (() => {+ type TypeName = AppCloudCheckInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- vcpuHourUsd: FfiConverterFloat64.read(from),- memoryGibHourUsd: FfiConverterFloat64.read(from)+ name: FfiConverterString.read(from),+ ok: FfiConverterBool.read(from),+ detail: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.vcpuHourUsd, into);- FfiConverterFloat64.write(value.memoryGibHourUsd, into);+ FfiConverterString.write(value.name, into);+ FfiConverterBool.write(value.ok, into);+ FfiConverterString.write(value.detail, into);}allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.vcpuHourUsd) +- FfiConverterFloat64.allocationSize(value.memoryGibHourUsd);+ return FfiConverterString.allocationSize(value.name) ++ FfiConverterBool.allocationSize(value.ok) ++ FfiConverterString.allocationSize(value.detail);}};return new FFIConverter();})();-export type AppConflictView = {- /**- * The file (what Resolve sends).- */- path: string,- text: string,- trailing: string,- /**- * The copy to show in the file manager (mounted only).- */- reveal?: string,+export type AppCloudCheckRow = {/**- * "Open" when `reveal` is set.+ * Passed.*/- openLabel?: string,+ ok: boolean,/**- * "Resolve".+ * "credentials: account 418638388952".*/- resolveLabel: string+ text: string}/**- * Generated factory for {@link AppConflictView} record objects.+ * Generated factory for {@link AppCloudCheckRow} record objects.*/-export const AppConflictView = (() => {+export const AppCloudCheckRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppConflictView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudCheckRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppConflictView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudCheckRow>,});})();-const FfiConverterTypeAppConflictView = (() => {- type TypeName = AppConflictView;+const FfiConverterTypeAppCloudCheckRow = (() => {+ type TypeName = AppCloudCheckRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- path: FfiConverterString.read(from),- text: FfiConverterString.read(from),- trailing: FfiConverterString.read(from),- reveal: FfiConverterOptionalString.read(from),- openLabel: FfiConverterOptionalString.read(from),- resolveLabel: FfiConverterString.read(from)+ ok: FfiConverterBool.read(from),+ text: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.path, into);+ FfiConverterBool.write(value.ok, into);FfiConverterString.write(value.text, into);- FfiConverterString.write(value.trailing, into);- FfiConverterOptionalString.write(value.reveal, into);- FfiConverterOptionalString.write(value.openLabel, into);- FfiConverterString.write(value.resolveLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.path) +- FfiConverterString.allocationSize(value.text) +- FfiConverterString.allocationSize(value.trailing) +- FfiConverterOptionalString.allocationSize(value.reveal) +- FfiConverterOptionalString.allocationSize(value.openLabel) +- FfiConverterString.allocationSize(value.resolveLabel);+ return FfiConverterBool.allocationSize(value.ok) ++ FfiConverterString.allocationSize(value.text);}};return new FFIConverter();})();-export type AppConnectedCloud = {+export type AppCloudProviderInput = {/**- * The SDK's `on` word: `aws`, `gcp`, `modal`.+ * `aws`, `gcp`, `modal`.*/name: string,/**@@ -11675,1087 +11675,1352 @@ export type AppConnectedCloud = {*/title: string,/**- * "AWS \u{b7} us-west-2".+ * Connected already.*/- label: string,+ connected: boolean,/**- * It is the default location (`default.on`).+ * This machine has its CLI sign-in (or config).*/- isDefault: boolean,+ found: boolean,/**- * Hours after which a Space there deletes itself (0: never).+ * Where ("~/.aws profile default"), never a secret.*/- ttlHours: number,+ source: string,/**- * What it runs.+ * AWS or Modal profile (the connected or detected one).*/- offers: Array<AppCloudOffer>+ profile: string,+ /**+ * Region.+ */+ region: string,+ /**+ * GCP project.+ */+ project: string,+ /**+ * Modal environment.+ */+ environment: string,+ /**+ * "AWS \u{b7} us-west-2".+ */+ label: string}/**- * Generated factory for {@link AppConnectedCloud} record objects.+ * Generated factory for {@link AppCloudProviderInput} record objects.*/-export const AppConnectedCloud = (() => {+export const AppCloudProviderInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppConnectedCloud, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudProviderInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppConnectedCloud>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudProviderInput>,});})();-const FfiConverterTypeAppConnectedCloud = (() => {- type TypeName = AppConnectedCloud;+const FfiConverterTypeAppCloudProviderInput = (() => {+ type TypeName = AppCloudProviderInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {name: FfiConverterString.read(from),title: FfiConverterString.read(from),- label: FfiConverterString.read(from),- isDefault: FfiConverterBool.read(from),- ttlHours: FfiConverterUInt32.read(from),- offers: FfiConverterSequenceTypeAppCloudOffer.read(from)+ connected: FfiConverterBool.read(from),+ found: FfiConverterBool.read(from),+ source: FfiConverterString.read(from),+ profile: FfiConverterString.read(from),+ region: FfiConverterString.read(from),+ project: FfiConverterString.read(from),+ environment: FfiConverterString.read(from),+ label: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.name, into);FfiConverterString.write(value.title, into);+ FfiConverterBool.write(value.connected, into);+ FfiConverterBool.write(value.found, into);+ FfiConverterString.write(value.source, into);+ FfiConverterString.write(value.profile, into);+ FfiConverterString.write(value.region, into);+ FfiConverterString.write(value.project, into);+ FfiConverterString.write(value.environment, into);FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.isDefault, into);- FfiConverterUInt32.write(value.ttlHours, into);- FfiConverterSequenceTypeAppCloudOffer.write(value.offers, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.name) +FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.isDefault) +- FfiConverterUInt32.allocationSize(value.ttlHours) +- FfiConverterSequenceTypeAppCloudOffer.allocationSize(value.offers);+ FfiConverterBool.allocationSize(value.connected) ++ FfiConverterBool.allocationSize(value.found) ++ FfiConverterString.allocationSize(value.source) ++ FfiConverterString.allocationSize(value.profile) ++ FfiConverterString.allocationSize(value.region) ++ FfiConverterString.allocationSize(value.project) ++ FfiConverterString.allocationSize(value.environment) ++ FfiConverterString.allocationSize(value.label);}};return new FFIConverter();})();-export enum AppConsentKind {+export type AppCloudConnectInput = {/**- * An install into the Space.+ * The providers this build supports.*/- Install = "install",+ providers: Array<AppCloudProviderInput>+}++/**+ * Generated factory for {@link AppCloudConnectInput} record objects.+ */+export const AppCloudConnectInput = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppCloudConnectInput, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudConnectInput>,+ });+})();++const FfiConverterTypeAppCloudConnectInput = (() => {+ type TypeName = AppCloudConnectInput;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ providers: FfiConverterSequenceTypeAppCloudProviderInput.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterSequenceTypeAppCloudProviderInput.write(value.providers, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterSequenceTypeAppCloudProviderInput.allocationSize(value.providers);++ }+ };+ return new FFIConverter();+})();+++// Enum: AppCloudConnectPhase+export enum AppCloudConnectPhase_Tags {+ Idle = "Idle",+ Testing = "Testing",+ Tested = "Tested",+ Connecting = "Connecting",+ Connected = "Connected",+ Failed = "Failed"+}+export const AppCloudConnectPhase = (() => {++ type Idle__interface = {+ tag: AppCloudConnectPhase_Tags.Idle+ };/**- * A file that leaves this machine.+ * Nothing running.*/- File = "file",+ class Idle_ extends UniffiEnum implements Idle__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";+ readonly tag = AppCloudConnectPhase_Tags.Idle;+ constructor() {+ super("AppCloudConnectPhase", "Idle");+ }++ static new(): Idle_ {+ return new Idle_();+ }++ static instanceOf(obj: any): obj is Idle_ {+ return obj.tag === AppCloudConnectPhase_Tags.Idle;+ }++ }++ type Testing__interface = {+ tag: AppCloudConnectPhase_Tags.Testing+ };/**- * A folder that leaves this machine.+ * `cloud_test` is running.*/- Folder = "folder",+ class Testing_ extends UniffiEnum implements Testing__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";+ readonly tag = AppCloudConnectPhase_Tags.Testing;+ constructor() {+ super("AppCloudConnectPhase", "Testing");+ }++ static new(): Testing_ {+ return new Testing_();+ }++ static instanceOf(obj: any): obj is Testing_ {+ return obj.tag === AppCloudConnectPhase_Tags.Testing;+ }++ }++ type Tested__interface = {+ tag: AppCloudConnectPhase_Tags.Tested;+ inner:+Readonly<{ok: boolean; account: string; checks: Array<AppCloudCheckInput>}>+ };/**- * App state that leaves this machine.+ * A test finished.*/- State = "state",+ class Tested_ extends UniffiEnum implements Tested__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";+ readonly tag = AppCloudConnectPhase_Tags.Tested;+ readonly inner:+Readonly<{ok: boolean; account: string; checks: Array<AppCloudCheckInput>}>;+ constructor(+inner: {ok: boolean; account: string; checks: Array<AppCloudCheckInput> }) {+ super("AppCloudConnectPhase", "Tested");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {ok: boolean; account: string; checks: Array<AppCloudCheckInput> }): Tested_ {+ return new Tested_(inner);+ }++ static instanceOf(obj: any): obj is Tested_ {+ return obj.tag === AppCloudConnectPhase_Tags.Tested;+ }++ }++ type Connecting__interface = {+ tag: AppCloudConnectPhase_Tags.Connecting+ };/**- * A secret that leaves this machine.+ * `cloud_connect` is running.*/- Secret = "secret"-}+ class Connecting_ extends UniffiEnum implements Connecting__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";+ readonly tag = AppCloudConnectPhase_Tags.Connecting;+ constructor() {+ super("AppCloudConnectPhase", "Connecting");+ }-const FfiConverterTypeAppConsentKind = (() => {+ static new(): Connecting_ {+ return new Connecting_();+ }++ static instanceOf(obj: any): obj is Connecting_ {+ return obj.tag === AppCloudConnectPhase_Tags.Connecting;+ }++ }++ type Connected__interface = {+ tag: AppCloudConnectPhase_Tags.Connected;+ inner:+Readonly<{label: string}>+ };+ /**+ * Connected (the shell closes the sheet and refreshes).+ */+ class Connected_ extends UniffiEnum implements Connected__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";+ readonly tag = AppCloudConnectPhase_Tags.Connected;+ readonly inner:+Readonly<{label: string}>;+ constructor(+inner: {label: string }) {+ super("AppCloudConnectPhase", "Connected");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {label: string }): Connected_ {+ return new Connected_(inner);+ }++ static instanceOf(obj: any): obj is Connected_ {+ return obj.tag === AppCloudConnectPhase_Tags.Connected;+ }++ }++ type Failed__interface = {+ tag: AppCloudConnectPhase_Tags.Failed;+ inner:+Readonly<{error: string}>+ };+ /**+ * A call failed.+ */+ class Failed_ extends UniffiEnum implements Failed__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectPhase";+ readonly tag = AppCloudConnectPhase_Tags.Failed;+ readonly inner:+Readonly<{error: string}>;+ constructor(+inner: {error: string }) {+ super("AppCloudConnectPhase", "Failed");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {error: string }): Failed_ {+ return new Failed_(inner);+ }++ static instanceOf(obj: any): obj is Failed_ {+ return obj.tag === AppCloudConnectPhase_Tags.Failed;+ }++ }++ function instanceOf(obj: any): obj is AppCloudConnectPhase {+ return obj[uniffiTypeNameSymbol] === "AppCloudConnectPhase";+ }++ return Object.freeze({+ instanceOf,+ Idle: Idle_,+ Testing: Testing_,+ Tested: Tested_,+ Connecting: Connecting_,+ Connected: Connected_,+ Failed: Failed_+ });++})();+export type AppCloudConnectPhase = InstanceType<+ typeof AppCloudConnectPhase['Idle' | 'Testing' | 'Tested' | 'Connecting' | 'Connected' | 'Failed']+>;++// FfiConverter for enum AppCloudConnectPhase+const FfiConverterTypeAppCloudConnectPhase = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppConsentKind;+ type TypeName = AppCloudConnectPhase;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppConsentKind.Install;- case 2: return AppConsentKind.File;- case 3: return AppConsentKind.Folder;- case 4: return AppConsentKind.State;- case 5: return AppConsentKind.Secret;+ case 1: return new AppCloudConnectPhase.Idle();+ case 2: return new AppCloudConnectPhase.Testing();+ case 3: return new AppCloudConnectPhase.Tested({ok: FfiConverterBool.read(from), account: FfiConverterString.read(from), checks: FfiConverterSequenceTypeAppCloudCheckInput.read(from) });+ case 4: return new AppCloudConnectPhase.Connecting();+ case 5: return new AppCloudConnectPhase.Connected({label: FfiConverterString.read(from) });+ case 6: return new AppCloudConnectPhase.Failed({error: FfiConverterString.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppConsentKind.Install: return ordinalConverter.write(1, into);- case AppConsentKind.File: return ordinalConverter.write(2, into);- case AppConsentKind.Folder: return ordinalConverter.write(3, into);- case AppConsentKind.State: return ordinalConverter.write(4, into);- case AppConsentKind.Secret: return ordinalConverter.write(5, into);+ switch (value.tag) {+ case AppCloudConnectPhase_Tags.Idle: {+ ordinalConverter.write(1, into);+ return;+ }+ case AppCloudConnectPhase_Tags.Testing: {+ ordinalConverter.write(2, into);+ return;+ }+ case AppCloudConnectPhase_Tags.Tested: {+ ordinalConverter.write(3, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.ok, into);+ FfiConverterString.write(inner.account, into);+ FfiConverterSequenceTypeAppCloudCheckInput.write(inner.checks, into);+ return;+ }+ case AppCloudConnectPhase_Tags.Connecting: {+ ordinalConverter.write(4, into);+ return;+ }+ case AppCloudConnectPhase_Tags.Connected: {+ ordinalConverter.write(5, into);+ const inner = value.inner;+ FfiConverterString.write(inner.label, into);+ return;+ }+ case AppCloudConnectPhase_Tags.Failed: {+ ordinalConverter.write(6, into);+ const inner = value.inner;+ FfiConverterString.write(inner.error, into);+ return;+ }+ default:+ // Throwing from here means that AppCloudConnectPhase_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ switch (value.tag) {+ case AppCloudConnectPhase_Tags.Idle: {+ return ordinalConverter.allocationSize(1);+ }+ case AppCloudConnectPhase_Tags.Testing: {+ return ordinalConverter.allocationSize(2);+ }+ case AppCloudConnectPhase_Tags.Tested: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(3);+ size += FfiConverterBool.allocationSize(inner.ok);+ size += FfiConverterString.allocationSize(inner.account);+ size += FfiConverterSequenceTypeAppCloudCheckInput.allocationSize(inner.checks);+ return size;+ }+ case AppCloudConnectPhase_Tags.Connecting: {+ return ordinalConverter.allocationSize(4);+ }+ case AppCloudConnectPhase_Tags.Connected: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(5);+ size += FfiConverterString.allocationSize(inner.label);+ return size;+ }+ case AppCloudConnectPhase_Tags.Failed: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(6);+ size += FfiConverterString.allocationSize(inner.error);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}}return new FFIConverter();})();-export type AppConsentItem = {- /**- * Kind.- */- kind: AppConsentKind,+export type AppCloudConnectState = {/**- * Stable key.+ * The chosen provider (`aws`); `None`: the first with credentials.*/- key: string,+ selected?: string,/**- * Label.+ * The region, project or environment as typed (empty: the default).*/- label: string,+ value: string,/**- * Detail.+ * The profile as typed (empty: the default).*/- detail: string,+ profile: string,/**- * Bytes that leave.+ * Also make it the default location.*/- bytes: bigint,+ makeDefault: boolean,/**- * Credentials, cookies, tokens.+ * Where it is.*/- sensitive: boolean+ phase: AppCloudConnectPhase}/**- * Generated factory for {@link AppConsentItem} record objects.+ * Generated factory for {@link AppCloudConnectState} record objects.*/-export const AppConsentItem = (() => {+export const AppCloudConnectState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppConsentItem, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudConnectState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppConsentItem>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudConnectState>,});})();-const FfiConverterTypeAppConsentItem = (() => {- type TypeName = AppConsentItem;+const FfiConverterTypeAppCloudConnectState = (() => {+ type TypeName = AppCloudConnectState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeAppConsentKind.read(from),- key: FfiConverterString.read(from),- label: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- bytes: FfiConverterUInt64.read(from),- sensitive: FfiConverterBool.read(from)+ selected: FfiConverterOptionalString.read(from),+ value: FfiConverterString.read(from),+ profile: FfiConverterString.read(from),+ makeDefault: FfiConverterBool.read(from),+ phase: FfiConverterTypeAppCloudConnectPhase.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppConsentKind.write(value.kind, into);- FfiConverterString.write(value.key, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.detail, into);- FfiConverterUInt64.write(value.bytes, into);- FfiConverterBool.write(value.sensitive, into);+ FfiConverterOptionalString.write(value.selected, into);+ FfiConverterString.write(value.value, into);+ FfiConverterString.write(value.profile, into);+ FfiConverterBool.write(value.makeDefault, into);+ FfiConverterTypeAppCloudConnectPhase.write(value.phase, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppConsentKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterUInt64.allocationSize(value.bytes) +- FfiConverterBool.allocationSize(value.sensitive);+ return FfiConverterOptionalString.allocationSize(value.selected) ++ FfiConverterString.allocationSize(value.value) ++ FfiConverterString.allocationSize(value.profile) ++ FfiConverterBool.allocationSize(value.makeDefault) ++ FfiConverterTypeAppCloudConnectPhase.allocationSize(value.phase);}};return new FFIConverter();})();-export enum AppLocation {+export type AppCloudProviderRow = {/**- * Cua Cloud (the SDK's `on="cloud"`). The apps do not offer it for new- * Spaces ([`CLOUD_SPACES_OFFERED`]); existing cloud Spaces still list.+ * `aws`.*/- Cloud = "cloud",+ id: string,/**- * This Mac.+ * `AWS`.*/- Local = "local",+ title: string,/**- * The user's own cloud account (AWS, Google Cloud, Modal), connected- * with `cua cloud connect`: the SDK's `on` is the provider's word- * (`aws`), which the wizard carries beside it.+ * The one line after the title ("Connected, AWS \u{b7} us-west-2",+ * "~/.aws profile default", "No sign-in found").*/- Yours = "yours",+ detail: string,/**- * One of the user's machines that provides Spaces (a relay host, or- * one added by its Tailscale or LAN address): the SDK's `on` is- * `host:<machine>`, which the wizard carries beside it.+ * This machine has its sign-in (the found mark).*/- Host = "host"+ found: boolean,+ /**+ * Chosen.+ */+ selected: boolean}-const FfiConverterTypeAppLocation = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppLocation;+/**+ * Generated factory for {@link AppCloudProviderRow} record objects.+ */+export const AppCloudProviderRow = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppCloudProviderRow, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudProviderRow>,+ });+})();++const FfiConverterTypeAppCloudProviderRow = (() => {+ type TypeName = AppCloudProviderRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppLocation.Cloud;- case 2: return AppLocation.Local;- case 3: return AppLocation.Yours;- case 4: return AppLocation.Host;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ id: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ found: FfiConverterBool.read(from),+ selected: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppLocation.Cloud: return ordinalConverter.write(1, into);- case AppLocation.Local: return ordinalConverter.write(2, into);- case AppLocation.Yours: return ordinalConverter.write(3, into);- case AppLocation.Host: return ordinalConverter.write(4, into);- }+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterBool.write(value.found, into);+ FfiConverterBool.write(value.selected, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterBool.allocationSize(value.found) ++ FfiConverterBool.allocationSize(value.selected);+}- }+ };return new FFIConverter();})();-export enum AppSpaceOs {+export type AppCloudField = {/**- * macOS.+ * `region`, `project`, `environment`, `profile`.*/- Macos = "macos",+ id: string,/**- * Windows.+ * "Region".*/- Windows = "windows",+ label: string,/**- * Linux.+ * The default the provider uses when it is empty.*/- Linux = "linux",+ placeholder: string,/**- * The host has not reported a recognized operating system.- */- Unknown = "unknown"-}--const FfiConverterTypeAppSpaceOs = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppSpaceOs;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppSpaceOs.Macos;- case 2: return AppSpaceOs.Windows;- case 3: return AppSpaceOs.Linux;- case 4: return AppSpaceOs.Unknown;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppSpaceOs.Macos: return ordinalConverter.write(1, into);- case AppSpaceOs.Windows: return ordinalConverter.write(2, into);- case AppSpaceOs.Linux: return ordinalConverter.write(3, into);- case AppSpaceOs.Unknown: return ordinalConverter.write(4, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum AppSpaceKind {- /**- * A container.- */- Container = "container",- /**- * A virtual machine.- */- Vm = "vm"-}--const FfiConverterTypeAppSpaceKind = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppSpaceKind;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppSpaceKind.Container;- case 2: return AppSpaceKind.Vm;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppSpaceKind.Container: return ordinalConverter.write(1, into);- case AppSpaceKind.Vm: return ordinalConverter.write(2, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum AppLocalEngine {- /**- * A container (gVisor when installed, else runc).- */- Container = "container",- /**- * A QEMU VM.- */- Qemu = "qemu",- /**- * A Lume VM.- */- Lume = "lume"-}--const FfiConverterTypeAppLocalEngine = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppLocalEngine;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppLocalEngine.Container;- case 2: return AppLocalEngine.Qemu;- case 3: return AppLocalEngine.Lume;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppLocalEngine.Container: return ordinalConverter.write(1, into);- case AppLocalEngine.Qemu: return ordinalConverter.write(2, into);- case AppLocalEngine.Lume: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum AppCloudEngine {- /**- * gVisor containers.- */- Gvisor = "gvisor",- /**- * KubeVirt VMs.- */- Kubevirt = "kubevirt"-}--const FfiConverterTypeAppCloudEngine = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppCloudEngine;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppCloudEngine.Gvisor;- case 2: return AppCloudEngine.Kubevirt;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppCloudEngine.Gvisor: return ordinalConverter.write(1, into);- case AppCloudEngine.Kubevirt: return ordinalConverter.write(2, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum AppImageTier {- /**- * The minimum that passes `cua-spacesd doctor --strict` (what CI runs).- */- Slim = "slim",- /**- * The default: slim plus dev tooling.- */- Full = "full",- /**- * macOS: full plus one pinned Xcode.- */- Xcode = "xcode"-}--const FfiConverterTypeAppImageTier = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppImageTier;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppImageTier.Slim;- case 2: return AppImageTier.Full;- case 3: return AppImageTier.Xcode;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppImageTier.Slim: return ordinalConverter.write(1, into);- case AppImageTier.Full: return ordinalConverter.write(2, into);- case AppImageTier.Xcode: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppImageDistro = {- /**- * `ubuntu`, `omarchy`, `macos`, `windows`.- */- id: string,- /**- * Pretty name ("Ubuntu 24.04", "Omarchy").+ * As typed.*/- name: string+ value: string}/**- * Generated factory for {@link AppImageDistro} record objects.+ * Generated factory for {@link AppCloudField} record objects.*/-export const AppImageDistro = (() => {+export const AppCloudField = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppImageDistro, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudField, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppImageDistro>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudField>,});})();-const FfiConverterTypeAppImageDistro = (() => {- type TypeName = AppImageDistro;+const FfiConverterTypeAppCloudField = (() => {+ type TypeName = AppCloudField;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- name: FfiConverterString.read(from)+ label: FfiConverterString.read(from),+ placeholder: FfiConverterString.read(from),+ value: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.placeholder, into);+ FfiConverterString.write(value.value, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name);+ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.placeholder) ++ FfiConverterString.allocationSize(value.value);}};return new FFIConverter();})();-export type AppPlatformSize = {+export type AppCloudTargetArgs = {/**- * `amd64` or `arm64`.+ * `aws`, `gcp`, `modal`.*/- arch: string,+ provider: string,/**- * The platform manifest's digest.+ * AWS or Modal profile.*/- manifest: string,+ profile?: string,/**- * What a pull downloads.+ * AWS region.*/- download: bigint,+ region?: string,/**- * What the pulled image takes on the host.+ * GCP project.*/- unpacked: bigint,+ project?: string,/**- * The disk the Space sees (a VM's virtual disk; a container's root- * filesystem).+ * Modal environment.*/- disk: bigint+ environment?: string}/**- * Generated factory for {@link AppPlatformSize} record objects.+ * Generated factory for {@link AppCloudTargetArgs} record objects.*/-export const AppPlatformSize = (() => {+export const AppCloudTargetArgs = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPlatformSize, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudTargetArgs, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPlatformSize>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudTargetArgs>,});})();-const FfiConverterTypeAppPlatformSize = (() => {- type TypeName = AppPlatformSize;+const FfiConverterTypeAppCloudTargetArgs = (() => {+ type TypeName = AppCloudTargetArgs;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- arch: FfiConverterString.read(from),- manifest: FfiConverterString.read(from),- download: FfiConverterUInt64.read(from),- unpacked: FfiConverterUInt64.read(from),- disk: FfiConverterUInt64.read(from)+ provider: FfiConverterString.read(from),+ profile: FfiConverterOptionalString.read(from),+ region: FfiConverterOptionalString.read(from),+ project: FfiConverterOptionalString.read(from),+ environment: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.arch, into);- FfiConverterString.write(value.manifest, into);- FfiConverterUInt64.write(value.download, into);- FfiConverterUInt64.write(value.unpacked, into);- FfiConverterUInt64.write(value.disk, into);+ FfiConverterString.write(value.provider, into);+ FfiConverterOptionalString.write(value.profile, into);+ FfiConverterOptionalString.write(value.region, into);+ FfiConverterOptionalString.write(value.project, into);+ FfiConverterOptionalString.write(value.environment, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.arch) +- FfiConverterString.allocationSize(value.manifest) +- FfiConverterUInt64.allocationSize(value.download) +- FfiConverterUInt64.allocationSize(value.unpacked) +- FfiConverterUInt64.allocationSize(value.disk);+ return FfiConverterString.allocationSize(value.provider) ++ FfiConverterOptionalString.allocationSize(value.profile) ++ FfiConverterOptionalString.allocationSize(value.region) ++ FfiConverterOptionalString.allocationSize(value.project) ++ FfiConverterOptionalString.allocationSize(value.environment);}};return new FFIConverter();})();-export type AppImageSizes = {++// Enum: AppCloudConnectRequest+export enum AppCloudConnectRequest_Tags {+ Test = "Test",+ Connect = "Connect"+}+export const AppCloudConnectRequest = (() => {++ type Test__interface = {+ tag: AppCloudConnectRequest_Tags.Test;+ inner:+Readonly<{target: AppCloudTargetArgs}>+ };/**- * The digest they were measured at.+ * `cloud_test`.*/- digest: string,+ class Test_ extends UniffiEnum implements Test__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectRequest";+ readonly tag = AppCloudConnectRequest_Tags.Test;+ readonly inner:+Readonly<{target: AppCloudTargetArgs}>;+ constructor(+inner: {target: AppCloudTargetArgs }) {+ super("AppCloudConnectRequest", "Test");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {target: AppCloudTargetArgs }): Test_ {+ return new Test_(inner);+ }++ static instanceOf(obj: any): obj is Test_ {+ return obj.tag === AppCloudConnectRequest_Tags.Test;+ }++ }++ type Connect__interface = {+ tag: AppCloudConnectRequest_Tags.Connect;+ inner:+Readonly<{target: AppCloudTargetArgs; makeDefault: boolean}>+ };/**- * One row per platform.+ * `cloud_connect`.*/- platforms: Array<AppPlatformSize>-}+ class Connect_ extends UniffiEnum implements Connect__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppCloudConnectRequest";+ readonly tag = AppCloudConnectRequest_Tags.Connect;+ readonly inner:+Readonly<{target: AppCloudTargetArgs; makeDefault: boolean}>;+ constructor(+inner: {target: AppCloudTargetArgs; makeDefault: boolean }) {+ super("AppCloudConnectRequest", "Connect");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {target: AppCloudTargetArgs; makeDefault: boolean }): Connect_ {+ return new Connect_(inner);+ }++ static instanceOf(obj: any): obj is Connect_ {+ return obj.tag === AppCloudConnectRequest_Tags.Connect;+ }++ }++ function instanceOf(obj: any): obj is AppCloudConnectRequest {+ return obj[uniffiTypeNameSymbol] === "AppCloudConnectRequest";+ }-/**- * Generated factory for {@link AppImageSizes} record objects.- */-export const AppImageSizes = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppImageSizes, ReturnType<typeof defaults>>(defaults);- })();return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppImageSizes>,+ instanceOf,+ Test: Test_,+ Connect: Connect_});+})();+export type AppCloudConnectRequest = InstanceType<+ typeof AppCloudConnectRequest['Test' | 'Connect']+>;-const FfiConverterTypeAppImageSizes = (() => {- type TypeName = AppImageSizes;+// FfiConverter for enum AppCloudConnectRequest+const FfiConverterTypeAppCloudConnectRequest = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppCloudConnectRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- digest: FfiConverterString.read(from),- platforms: FfiConverterSequenceTypeAppPlatformSize.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return new AppCloudConnectRequest.Test({target: FfiConverterTypeAppCloudTargetArgs.read(from) });+ case 2: return new AppCloudConnectRequest.Connect({target: FfiConverterTypeAppCloudTargetArgs.read(from), makeDefault: FfiConverterBool.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.digest, into);- FfiConverterSequenceTypeAppPlatformSize.write(value.platforms, into);+ switch (value.tag) {+ case AppCloudConnectRequest_Tags.Test: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterTypeAppCloudTargetArgs.write(inner.target, into);+ return;+ }+ case AppCloudConnectRequest_Tags.Connect: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterTypeAppCloudTargetArgs.write(inner.target, into);+ FfiConverterBool.write(inner.makeDefault, into);+ return;+ }+ default:+ // Throwing from here means that AppCloudConnectRequest_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.digest) +- FfiConverterSequenceTypeAppPlatformSize.allocationSize(value.platforms);-+ switch (value.tag) {+ case AppCloudConnectRequest_Tags.Test: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterTypeAppCloudTargetArgs.allocationSize(inner.target);+ return size;+ }+ case AppCloudConnectRequest_Tags.Connect: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterTypeAppCloudTargetArgs.allocationSize(inner.target);+ size += FfiConverterBool.allocationSize(inner.makeDefault);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- };+ }return new FFIConverter();})();-export type AppSandboxImage = {+export type AppCloudConnectView = {/**- * OCI ref.+ * "Connect a cloud".*/- imageRef: string,+ title: string,/**- * Group id.+ * The providers.*/- group: string,+ rows: Array<AppCloudProviderRow>,/**- * OS.+ * The region, project or environment field.*/- os: AppSpaceOs,+ field?: AppCloudField,/**- * Display name.+ * The profile field (AWS, Modal).*/- name: string,+ profileField?: AppCloudField,/**- * Container or VM.+ * The checks the last test ran.*/- variant: AppSpaceKind,+ checks: Array<AppCloudCheckRow>,/**- * One line.+ * One line under the checks ("Ready. Nothing was created.").*/- summary: string,+ result?: string,/**- * Runs cua-spacesd (streams).+ * "What Cua will touch": what the selected provider creates, that+ * only Cua's own tagged resources are ever touched, how cost and+ * auto-stop work, and the command to remove everything. Empty when+ * no real provider is chosen (including "No cloud").*/- spacesd: boolean,+ touches: Array<string>,/**- * Local engine.+ * "Make default".*/- local?: AppLocalEngine,+ makeDefaultLabel: string,/**- * Cloud engine.+ * Its value.*/- cloud?: AppCloudEngine,+ makeDefault: boolean,/**- * `slim`, `full` or `xcode` (canonical images only).+ * "Test" / "Testing\u{2026}".*/- tier?: AppImageTier,+ testLabel: string,/**- * Offered in pickers.+ * Test can be pressed.*/- published: boolean,+ canTest: boolean,/**- * The guest's distribution.+ * Test's tooltip.*/- distro?: AppImageDistro,+ testHelp: string,/**- * Platforms it is built for (`amd64`, `arm64`); empty when unknown.+ * "Connect" / "Connecting\u{2026}".*/- arch: Array<string>,+ connectLabel: string,/**- * How big it is per platform, when measured.+ * Connect can be pressed.*/- sizes?: AppImageSizes,+ canConnect: boolean,/**- * `false`: its guest cannot use GPU acceleration.+ * "Cancel".*/- gpu: boolean-}--/**- * Generated factory for {@link AppSandboxImage} record objects.- */-export const AppSandboxImage = (() => {- const defaults = () => ({- });+ cancelLabel: string,+ /**+ * The last error.+ */+ error?: string,+ /**+ * Connected: close the sheet and refresh.+ */+ done: boolean,+ /**+ * The call to run now (while testing or connecting).+ */+ request?: AppCloudConnectRequest+}++/**+ * Generated factory for {@link AppCloudConnectView} record objects.+ */+export const AppCloudConnectView = (() => {+ const defaults = () => ({+ });const create = (() => {- return uniffiCreateRecord<AppSandboxImage, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudConnectView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSandboxImage>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudConnectView>,});})();-const FfiConverterTypeAppSandboxImage = (() => {- type TypeName = AppSandboxImage;+const FfiConverterTypeAppCloudConnectView = (() => {+ type TypeName = AppCloudConnectView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- imageRef: FfiConverterString.read(from),- group: FfiConverterString.read(from),- os: FfiConverterTypeAppSpaceOs.read(from),- name: FfiConverterString.read(from),- variant: FfiConverterTypeAppSpaceKind.read(from),- summary: FfiConverterString.read(from),- spacesd: FfiConverterBool.read(from),- local: FfiConverterOptionalTypeAppLocalEngine.read(from),- cloud: FfiConverterOptionalTypeAppCloudEngine.read(from),- tier: FfiConverterOptionalTypeAppImageTier.read(from),- published: FfiConverterBool.read(from),- distro: FfiConverterOptionalTypeAppImageDistro.read(from),- arch: FfiConverterSequenceString.read(from),- sizes: FfiConverterOptionalTypeAppImageSizes.read(from),- gpu: FfiConverterBool.read(from)+ title: FfiConverterString.read(from),+ rows: FfiConverterSequenceTypeAppCloudProviderRow.read(from),+ field: FfiConverterOptionalTypeAppCloudField.read(from),+ profileField: FfiConverterOptionalTypeAppCloudField.read(from),+ checks: FfiConverterSequenceTypeAppCloudCheckRow.read(from),+ result: FfiConverterOptionalString.read(from),+ touches: FfiConverterSequenceString.read(from),+ makeDefaultLabel: FfiConverterString.read(from),+ makeDefault: FfiConverterBool.read(from),+ testLabel: FfiConverterString.read(from),+ canTest: FfiConverterBool.read(from),+ testHelp: FfiConverterString.read(from),+ connectLabel: FfiConverterString.read(from),+ canConnect: FfiConverterBool.read(from),+ cancelLabel: FfiConverterString.read(from),+ error: FfiConverterOptionalString.read(from),+ done: FfiConverterBool.read(from),+ request: FfiConverterOptionalTypeAppCloudConnectRequest.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.imageRef, into);- FfiConverterString.write(value.group, into);- FfiConverterTypeAppSpaceOs.write(value.os, into);- FfiConverterString.write(value.name, into);- FfiConverterTypeAppSpaceKind.write(value.variant, into);- FfiConverterString.write(value.summary, into);- FfiConverterBool.write(value.spacesd, into);- FfiConverterOptionalTypeAppLocalEngine.write(value.local, into);- FfiConverterOptionalTypeAppCloudEngine.write(value.cloud, into);- FfiConverterOptionalTypeAppImageTier.write(value.tier, into);- FfiConverterBool.write(value.published, into);- FfiConverterOptionalTypeAppImageDistro.write(value.distro, into);- FfiConverterSequenceString.write(value.arch, into);- FfiConverterOptionalTypeAppImageSizes.write(value.sizes, into);- FfiConverterBool.write(value.gpu, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppCloudProviderRow.write(value.rows, into);+ FfiConverterOptionalTypeAppCloudField.write(value.field, into);+ FfiConverterOptionalTypeAppCloudField.write(value.profileField, into);+ FfiConverterSequenceTypeAppCloudCheckRow.write(value.checks, into);+ FfiConverterOptionalString.write(value.result, into);+ FfiConverterSequenceString.write(value.touches, into);+ FfiConverterString.write(value.makeDefaultLabel, into);+ FfiConverterBool.write(value.makeDefault, into);+ FfiConverterString.write(value.testLabel, into);+ FfiConverterBool.write(value.canTest, into);+ FfiConverterString.write(value.testHelp, into);+ FfiConverterString.write(value.connectLabel, into);+ FfiConverterBool.write(value.canConnect, into);+ FfiConverterString.write(value.cancelLabel, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterBool.write(value.done, into);+ FfiConverterOptionalTypeAppCloudConnectRequest.write(value.request, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.imageRef) +- FfiConverterString.allocationSize(value.group) +- FfiConverterTypeAppSpaceOs.allocationSize(value.os) +- FfiConverterString.allocationSize(value.name) +- FfiConverterTypeAppSpaceKind.allocationSize(value.variant) +- FfiConverterString.allocationSize(value.summary) +- FfiConverterBool.allocationSize(value.spacesd) +- FfiConverterOptionalTypeAppLocalEngine.allocationSize(value.local) +- FfiConverterOptionalTypeAppCloudEngine.allocationSize(value.cloud) +- FfiConverterOptionalTypeAppImageTier.allocationSize(value.tier) +- FfiConverterBool.allocationSize(value.published) +- FfiConverterOptionalTypeAppImageDistro.allocationSize(value.distro) +- FfiConverterSequenceString.allocationSize(value.arch) +- FfiConverterOptionalTypeAppImageSizes.allocationSize(value.sizes) +- FfiConverterBool.allocationSize(value.gpu);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppCloudProviderRow.allocationSize(value.rows) ++ FfiConverterOptionalTypeAppCloudField.allocationSize(value.field) ++ FfiConverterOptionalTypeAppCloudField.allocationSize(value.profileField) ++ FfiConverterSequenceTypeAppCloudCheckRow.allocationSize(value.checks) ++ FfiConverterOptionalString.allocationSize(value.result) ++ FfiConverterSequenceString.allocationSize(value.touches) ++ FfiConverterString.allocationSize(value.makeDefaultLabel) ++ FfiConverterBool.allocationSize(value.makeDefault) ++ FfiConverterString.allocationSize(value.testLabel) ++ FfiConverterBool.allocationSize(value.canTest) ++ FfiConverterString.allocationSize(value.testHelp) ++ FfiConverterString.allocationSize(value.connectLabel) ++ FfiConverterBool.allocationSize(value.canConnect) ++ FfiConverterString.allocationSize(value.cancelLabel) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterBool.allocationSize(value.done) ++ FfiConverterOptionalTypeAppCloudConnectRequest.allocationSize(value.request);}};return new FFIConverter();})();-export enum AppRuntime {+export type AppCloudOffer = {/**- * Let the SDK pick.+ * The image family: `linux`, `linux-slim`, `linux-vm`, `windows`,+ * `omarchy`, `macos`.*/- Auto = "auto",+ image: string,/**- * gVisor.+ * `container` or `vm`.*/- Gvisor = "gvisor",+ kind: string,/**- * runc.+ * Whether it can run there.*/- Runc = "runc",+ supported: boolean,/**- * QEMU.+ * Why not (one line), or a note.*/- Qemu = "qemu",+ reason: string,/**- * Lume.+ * The machine type the cloud picks (`t4g.medium`).*/- Lume = "lume",+ machineType: string,/**- * KubeVirt.+ * Estimated US dollars per hour while it runs.*/- Kubevirt = "kubevirt"+ usdPerHour: number}-const FfiConverterTypeAppRuntime = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppRuntime;+/**+ * Generated factory for {@link AppCloudOffer} record objects.+ */+export const AppCloudOffer = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppCloudOffer, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudOffer>,+ });+})();++const FfiConverterTypeAppCloudOffer = (() => {+ type TypeName = AppCloudOffer;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppRuntime.Auto;- case 2: return AppRuntime.Gvisor;- case 3: return AppRuntime.Runc;- case 4: return AppRuntime.Qemu;- case 5: return AppRuntime.Lume;- case 6: return AppRuntime.Kubevirt;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ image: FfiConverterString.read(from),+ kind: FfiConverterString.read(from),+ supported: FfiConverterBool.read(from),+ reason: FfiConverterString.read(from),+ machineType: FfiConverterString.read(from),+ usdPerHour: FfiConverterFloat64.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppRuntime.Auto: return ordinalConverter.write(1, into);- case AppRuntime.Gvisor: return ordinalConverter.write(2, into);- case AppRuntime.Runc: return ordinalConverter.write(3, into);- case AppRuntime.Qemu: return ordinalConverter.write(4, into);- case AppRuntime.Lume: return ordinalConverter.write(5, into);- case AppRuntime.Kubevirt: return ordinalConverter.write(6, into);- }+ FfiConverterString.write(value.image, into);+ FfiConverterString.write(value.kind, into);+ FfiConverterBool.write(value.supported, into);+ FfiConverterString.write(value.reason, into);+ FfiConverterString.write(value.machineType, into);+ FfiConverterFloat64.write(value.usdPerHour, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.image) ++ FfiConverterString.allocationSize(value.kind) ++ FfiConverterBool.allocationSize(value.supported) ++ FfiConverterString.allocationSize(value.reason) ++ FfiConverterString.allocationSize(value.machineType) ++ FfiConverterFloat64.allocationSize(value.usdPerHour);+}- }+ };return new FFIConverter();})();-export type AppCreatePlan = {- /**- * Where.- */- placement: AppLocation,- /**- * For "Your cloud": the connected cloud's word (`aws`).- */- cloud?: string,- /**- * For one of your machines: its id (`on="host:<id>"`).- */- host?: string,- /**- * The image (its variant is the kind).- */- image: AppSandboxImage,- /**- * Engine (`auto` unless chosen).- */- runtime: AppRuntime,- /**- * Name, when given.- */- name?: string,- /**- * vCPUs (local and Cua Cloud).- */- cpus?: number,- /**- * Memory MB (local and Cua Cloud).- */- memoryMb?: number,- /**- * Local VMs only: grow the disk to this many GB (larger than the- * image's).- */- diskGb?: number,- /**- * Open the desktop when ready.- */- openWhenReady: boolean,+export type AppCloudPricing = {/**- * Open the desktop once created: asked for and the image streams.+ * USD per reserved vCPU per hour.*/- openDesktop: boolean,+ vcpuHourUsd: number,/**- * A GPU option of the runtime (`paravirtual`), when checked and- * offered.+ * USD per reserved GB (GiB) of memory per hour.*/- gpu?: string+ memoryGibHourUsd: number}/**- * Generated factory for {@link AppCreatePlan} record objects.+ * Generated factory for {@link AppCloudPricing} record objects.*/-export const AppCreatePlan = (() => {+export const AppCloudPricing = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCreatePlan, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCloudPricing, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCreatePlan>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCloudPricing>,});})();-const FfiConverterTypeAppCreatePlan = (() => {- type TypeName = AppCreatePlan;+const FfiConverterTypeAppCloudPricing = (() => {+ type TypeName = AppCloudPricing;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- placement: FfiConverterTypeAppLocation.read(from),- cloud: FfiConverterOptionalString.read(from),- host: FfiConverterOptionalString.read(from),- image: FfiConverterTypeAppSandboxImage.read(from),- runtime: FfiConverterTypeAppRuntime.read(from),- name: FfiConverterOptionalString.read(from),- cpus: FfiConverterOptionalUInt32.read(from),- memoryMb: FfiConverterOptionalUInt32.read(from),- diskGb: FfiConverterOptionalUInt32.read(from),- openWhenReady: FfiConverterBool.read(from),- openDesktop: FfiConverterBool.read(from),- gpu: FfiConverterOptionalString.read(from)+ vcpuHourUsd: FfiConverterFloat64.read(from),+ memoryGibHourUsd: FfiConverterFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLocation.write(value.placement, into);- FfiConverterOptionalString.write(value.cloud, into);- FfiConverterOptionalString.write(value.host, into);- FfiConverterTypeAppSandboxImage.write(value.image, into);- FfiConverterTypeAppRuntime.write(value.runtime, into);- FfiConverterOptionalString.write(value.name, into);- FfiConverterOptionalUInt32.write(value.cpus, into);- FfiConverterOptionalUInt32.write(value.memoryMb, into);- FfiConverterOptionalUInt32.write(value.diskGb, into);- FfiConverterBool.write(value.openWhenReady, into);- FfiConverterBool.write(value.openDesktop, into);- FfiConverterOptionalString.write(value.gpu, into);+ FfiConverterFloat64.write(value.vcpuHourUsd, into);+ FfiConverterFloat64.write(value.memoryGibHourUsd, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLocation.allocationSize(value.placement) +- FfiConverterOptionalString.allocationSize(value.cloud) +- FfiConverterOptionalString.allocationSize(value.host) +- FfiConverterTypeAppSandboxImage.allocationSize(value.image) +- FfiConverterTypeAppRuntime.allocationSize(value.runtime) +- FfiConverterOptionalString.allocationSize(value.name) +- FfiConverterOptionalUInt32.allocationSize(value.cpus) +- FfiConverterOptionalUInt32.allocationSize(value.memoryMb) +- FfiConverterOptionalUInt32.allocationSize(value.diskGb) +- FfiConverterBool.allocationSize(value.openWhenReady) +- FfiConverterBool.allocationSize(value.openDesktop) +- FfiConverterOptionalString.allocationSize(value.gpu);+ return FfiConverterFloat64.allocationSize(value.vcpuHourUsd) ++ FfiConverterFloat64.allocationSize(value.memoryGibHourUsd);}};return new FFIConverter();})();-export type AppCreateSpaceArgs = {+export type AppConflictView = {/**- * Image ref.+ * The file (what Resolve sends).*/- image: string,+ path: string,+ text: string,+ trailing: string,/**- * The SDK's `on`: `local`, `cloud`, `host:<machine>`, or a connected- * cloud's word (`aws`, `gcp`, `modal`).+ * The copy to show in the file manager (mounted only).*/- on: string,+ reveal?: string,/**- * `container` / `vm`.+ * "Open" when `reveal` is set.*/- kind: AppSpaceKind,+ openLabel?: string,/**- * Engine.+ * "Resolve".*/- runtime: AppRuntime,+ resolveLabel: string+}++/**+ * Generated factory for {@link AppConflictView} record objects.+ */+export const AppConflictView = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppConflictView, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppConflictView>,+ });+})();++const FfiConverterTypeAppConflictView = (() => {+ type TypeName = AppConflictView;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ path: FfiConverterString.read(from),+ text: FfiConverterString.read(from),+ trailing: FfiConverterString.read(from),+ reveal: FfiConverterOptionalString.read(from),+ openLabel: FfiConverterOptionalString.read(from),+ resolveLabel: FfiConverterString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.path, into);+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.trailing, into);+ FfiConverterOptionalString.write(value.reveal, into);+ FfiConverterOptionalString.write(value.openLabel, into);+ FfiConverterString.write(value.resolveLabel, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.path) ++ FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.trailing) ++ FfiConverterOptionalString.allocationSize(value.reveal) ++ FfiConverterOptionalString.allocationSize(value.openLabel) ++ FfiConverterString.allocationSize(value.resolveLabel);++ }+ };+ return new FFIConverter();+})();++export type AppConnectedCloud = {/**- * Name.+ * The SDK's `on` word: `aws`, `gcp`, `modal`.*/- name?: string,+ name: string,/**- * vCPUs.+ * `AWS`, `Google Cloud`, `Modal`.*/- cpus?: number,+ title: string,/**- * Memory MB.+ * "AWS \u{b7} us-west-2".*/- memoryMb?: number,+ label: string,/**- * Disk GB (local VMs; the image's size when unset).+ * It is the default location (`default.on`).*/- diskGb?: number,+ isDefault: boolean,/**- * Runs cua-spacesd.+ * Hours after which a Space there deletes itself (0: never).*/- spacesd: boolean,+ ttlHours: number,/**- * A GPU option of the runtime (`paravirtual`).+ * What it runs.*/- gpu?: string+ offers: Array<AppCloudOffer>}/**- * Generated factory for {@link AppCreateSpaceArgs} record objects.+ * Generated factory for {@link AppConnectedCloud} record objects.*/-export const AppCreateSpaceArgs = (() => {+export const AppConnectedCloud = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCreateSpaceArgs, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppConnectedCloud, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCreateSpaceArgs>,+ defaults: () => Object.freeze(defaults()) as Partial<AppConnectedCloud>,});})();-const FfiConverterTypeAppCreateSpaceArgs = (() => {- type TypeName = AppCreateSpaceArgs;+const FfiConverterTypeAppConnectedCloud = (() => {+ type TypeName = AppConnectedCloud;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- image: FfiConverterString.read(from),- on: FfiConverterString.read(from),- kind: FfiConverterTypeAppSpaceKind.read(from),- runtime: FfiConverterTypeAppRuntime.read(from),- name: FfiConverterOptionalString.read(from),- cpus: FfiConverterOptionalUInt32.read(from),- memoryMb: FfiConverterOptionalUInt32.read(from),- diskGb: FfiConverterOptionalUInt32.read(from),- spacesd: FfiConverterBool.read(from),- gpu: FfiConverterOptionalString.read(from)+ name: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ isDefault: FfiConverterBool.read(from),+ ttlHours: FfiConverterUInt32.read(from),+ offers: FfiConverterSequenceTypeAppCloudOffer.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.image, into);- FfiConverterString.write(value.on, into);- FfiConverterTypeAppSpaceKind.write(value.kind, into);- FfiConverterTypeAppRuntime.write(value.runtime, into);- FfiConverterOptionalString.write(value.name, into);- FfiConverterOptionalUInt32.write(value.cpus, into);- FfiConverterOptionalUInt32.write(value.memoryMb, into);- FfiConverterOptionalUInt32.write(value.diskGb, into);- FfiConverterBool.write(value.spacesd, into);- FfiConverterOptionalString.write(value.gpu, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.isDefault, into);+ FfiConverterUInt32.write(value.ttlHours, into);+ FfiConverterSequenceTypeAppCloudOffer.write(value.offers, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.image) +- FfiConverterString.allocationSize(value.on) +- FfiConverterTypeAppSpaceKind.allocationSize(value.kind) +- FfiConverterTypeAppRuntime.allocationSize(value.runtime) +- FfiConverterOptionalString.allocationSize(value.name) +- FfiConverterOptionalUInt32.allocationSize(value.cpus) +- FfiConverterOptionalUInt32.allocationSize(value.memoryMb) +- FfiConverterOptionalUInt32.allocationSize(value.diskGb) +- FfiConverterBool.allocationSize(value.spacesd) +- FfiConverterOptionalString.allocationSize(value.gpu);+ return FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.isDefault) ++ FfiConverterUInt32.allocationSize(value.ttlHours) ++ FfiConverterSequenceTypeAppCloudOffer.allocationSize(value.offers);}};return new FFIConverter();})();-export enum AppSpaceProvider {+export enum AppConsentKind {/**- * Cua Cloud.+ * An install into the Space.*/- Cloud = "cloud",+ Install = "install",/**- * This Mac.+ * A file that leaves this machine.*/- Local = "local",+ File = "file",/**- * A machine added by address.+ * A folder that leaves this machine.*/- Direct = "direct",+ Folder = "folder",/**- * A machine of the signed-in account through the relay.+ * App state that leaves this machine.*/- Relay = "relay"+ State = "state",+ /**+ * A secret that leaves this machine.+ */+ Secret = "secret"}-const FfiConverterTypeAppSpaceProvider = (() => {+const FfiConverterTypeAppConsentKind = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppSpaceProvider;+ type TypeName = AppConsentKind;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppSpaceProvider.Cloud;- case 2: return AppSpaceProvider.Local;- case 3: return AppSpaceProvider.Direct;- case 4: return AppSpaceProvider.Relay;- default: throw new UniffiInternalError.UnexpectedEnumCase();+ case 1: return AppConsentKind.Install;+ case 2: return AppConsentKind.File;+ case 3: return AppConsentKind.Folder;+ case 4: return AppConsentKind.State;+ case 5: return AppConsentKind.Secret;+ default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppSpaceProvider.Cloud: return ordinalConverter.write(1, into);- case AppSpaceProvider.Local: return ordinalConverter.write(2, into);- case AppSpaceProvider.Direct: return ordinalConverter.write(3, into);- case AppSpaceProvider.Relay: return ordinalConverter.write(4, into);+ case AppConsentKind.Install: return ordinalConverter.write(1, into);+ case AppConsentKind.File: return ordinalConverter.write(2, into);+ case AppConsentKind.Folder: return ordinalConverter.write(3, into);+ case AppConsentKind.State: return ordinalConverter.write(4, into);+ case AppConsentKind.Secret: return ordinalConverter.write(5, into);}}allocationSize(value: TypeName): number {@@ -12765,631 +13030,693 @@ const FfiConverterTypeAppSpaceProvider = (() => {return new FFIConverter();})();-export type AppPendingCreate = {+export type AppConsentItem = {/**- * `pending:<token>`.+ * Kind.*/- id: string,+ kind: AppConsentKind,/**- * Display name.+ * Stable key.*/- name: string,+ key: string,/**- * Operating system.+ * Label.*/- os: AppSpaceOs,+ label: string,/**- * Where it runs.+ * Detail.*/- provider: AppSpaceProvider,+ detail: string,/**- * Epoch ms it started.+ * Bytes that leave.*/- startedAt: bigint,+ bytes: bigint,/**- * The SDK's last phase word (`preparing`, `pulling`, ...).+ * Credentials, cookies, tokens.*/- phase: string,+ sensitive: boolean+}++/**+ * Generated factory for {@link AppConsentItem} record objects.+ */+export const AppConsentItem = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppConsentItem, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppConsentItem>,+ });+})();++const FfiConverterTypeAppConsentItem = (() => {+ type TypeName = AppConsentItem;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ kind: FfiConverterTypeAppConsentKind.read(from),+ key: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ bytes: FfiConverterUInt64.read(from),+ sensitive: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeAppConsentKind.write(value.kind, into);+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterUInt64.write(value.bytes, into);+ FfiConverterBool.write(value.sensitive, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterTypeAppConsentKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterUInt64.allocationSize(value.bytes) ++ FfiConverterBool.allocationSize(value.sensitive);++ }+ };+ return new FFIConverter();+})();++export enum AppLocation {/**- * The phase's fraction, when the SDK knows it.+ * Cua Cloud (the SDK's `on="cloud"`). The apps do not offer it for new+ * Spaces ([`CLOUD_SPACES_OFFERED`]); existing cloud Spaces still list.*/- fraction?: number,+ Cloud = "cloud",/**- * The image was pulled (the pull takes most of the bar).+ * This Mac.*/- pulled: boolean,+ Local = "local",/**- * Overall progress in thousandths; never goes backwards.+ * The user's own cloud account (AWS, Google Cloud, Modal), connected+ * with `cua cloud connect`: the SDK's `on` is the provider's word+ * (`aws`), which the wizard carries beside it.*/- permille: number,+ Yours = "yours",/**- * Why it failed.+ * One of the user's machines that provides Spaces (a relay host, or+ * one added by its Tailscale or LAN address): the SDK's `on` is+ * `host:<machine>`, which the wizard carries beside it.*/- error?: string,+ Host = "host"+}++const FfiConverterTypeAppLocation = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppLocation;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppLocation.Cloud;+ case 2: return AppLocation.Local;+ case 3: return AppLocation.Yours;+ case 4: return AppLocation.Host;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppLocation.Cloud: return ordinalConverter.write(1, into);+ case AppLocation.Local: return ordinalConverter.write(2, into);+ case AppLocation.Yours: return ordinalConverter.write(3, into);+ case AppLocation.Host: return ordinalConverter.write(4, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum AppSpaceOs {/**- * It failed for want of Cua Cloud credit: the billing page.+ * macOS.*/- creditUrl?: string,+ Macos = "macos",/**- * The registered Space's id once it finished; the row goes when the- * registry lists it.+ * Windows.*/- spaceId?: string,+ Windows = "windows",/**- * The image asked for.+ * Linux.*/- image?: string,+ Linux = "linux",/**- * Container or VM.+ * The host has not reported a recognized operating system.*/- kind?: AppSpaceKind,+ Unknown = "unknown"+}++const FfiConverterTypeAppSpaceOs = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppSpaceOs;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppSpaceOs.Macos;+ case 2: return AppSpaceOs.Windows;+ case 3: return AppSpaceOs.Linux;+ case 4: return AppSpaceOs.Unknown;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppSpaceOs.Macos: return ordinalConverter.write(1, into);+ case AppSpaceOs.Windows: return ordinalConverter.write(2, into);+ case AppSpaceOs.Linux: return ordinalConverter.write(3, into);+ case AppSpaceOs.Unknown: return ordinalConverter.write(4, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum AppSpaceKind {/**- * The platform that will run (`arm64`, `amd64`).+ * A container.*/- arch?: string,+ Container = "container",/**- * It runs emulated: a local Space whose platform is not the host's.+ * A virtual machine.*/- emulated: boolean,+ Vm = "vm"+}++const FfiConverterTypeAppSpaceKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppSpaceKind;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppSpaceKind.Container;+ case 2: return AppSpaceKind.Vm;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppSpaceKind.Container: return ordinalConverter.write(1, into);+ case AppSpaceKind.Vm: return ordinalConverter.write(2, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum AppLocalEngine {/**- * Epoch ms the current phase began (the time-based progress within a- * phase that reports no fraction), or last moved (a new fraction):- * a phase that stays put longer than [`stall_limit_secs`] fails the- * row with [`stall_error`].+ * A container (gVisor when installed, else runc).*/- phaseAt?: bigint,+ Container = "container",/**- * Bytes of the download so far, when the SDK counts them.+ * A QEMU VM.*/- bytesDone?: bigint,+ Qemu = "qemu",/**- * Bytes the download has in all.+ * A Lume VM.*/- bytesTotal?: bigint,+ Lume = "lume"+}++const FfiConverterTypeAppLocalEngine = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppLocalEngine;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppLocalEngine.Container;+ case 2: return AppLocalEngine.Qemu;+ case 3: return AppLocalEngine.Lume;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppLocalEngine.Container: return ordinalConverter.write(1, into);+ case AppLocalEngine.Qemu: return ordinalConverter.write(2, into);+ case AppLocalEngine.Lume: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum AppCloudEngine {/**- * The download's smoothed rate, bytes per second.+ * gVisor containers.*/- bytesPerSecond?: number,+ Gvisor = "gvisor",/**- * Cancel was pressed: the SDK is stopping the create and removing- * what it made; the row goes when that ends.+ * KubeVirt VMs.*/- cancelling: boolean,+ Kubevirt = "kubevirt"+}++const FfiConverterTypeAppCloudEngine = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppCloudEngine;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppCloudEngine.Gvisor;+ case 2: return AppCloudEngine.Kubevirt;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppCloudEngine.Gvisor: return ordinalConverter.write(1, into);+ case AppCloudEngine.Kubevirt: return ordinalConverter.write(2, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum AppImageTier {/**- * GPU acceleration was asked for.+ * The minimum that passes `cua-spacesd doctor --strict` (what CI runs).*/- gpu: boolean,+ Slim = "slim",/**- * A create on one of your machines: that machine's relay id (the- * `host:<machine>` of the create's `on`). The machine lists the Space- * it is creating as a record of its own, which [`compose`] folds into- * this row.+ * The default: slim plus dev tooling.*/- host?: string,+ Full = "full",/**- * That machine's name, for the row and for a failure that names it.+ * macOS: full plus one pinned Xcode.*/- hostName?: string+ Xcode = "xcode"}-/**- * Generated factory for {@link AppPendingCreate} record objects.- */-export const AppPendingCreate = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPendingCreate, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPendingCreate>,- });-})();--const FfiConverterTypeAppPendingCreate = (() => {- type TypeName = AppPendingCreate;+const FfiConverterTypeAppImageTier = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppImageTier;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- os: FfiConverterTypeAppSpaceOs.read(from),- provider: FfiConverterTypeAppSpaceProvider.read(from),- startedAt: FfiConverterInt64.read(from),- phase: FfiConverterString.read(from),- fraction: FfiConverterOptionalFloat64.read(from),- pulled: FfiConverterBool.read(from),- permille: FfiConverterUInt32.read(from),- error: FfiConverterOptionalString.read(from),- creditUrl: FfiConverterOptionalString.read(from),- spaceId: FfiConverterOptionalString.read(from),- image: FfiConverterOptionalString.read(from),- kind: FfiConverterOptionalTypeAppSpaceKind.read(from),- arch: FfiConverterOptionalString.read(from),- emulated: FfiConverterBool.read(from),- phaseAt: FfiConverterOptionalInt64.read(from),- bytesDone: FfiConverterOptionalUInt64.read(from),- bytesTotal: FfiConverterOptionalUInt64.read(from),- bytesPerSecond: FfiConverterOptionalFloat64.read(from),- cancelling: FfiConverterBool.read(from),- gpu: FfiConverterBool.read(from),- host: FfiConverterOptionalString.read(from),- hostName: FfiConverterOptionalString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppImageTier.Slim;+ case 2: return AppImageTier.Full;+ case 3: return AppImageTier.Xcode;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterTypeAppSpaceOs.write(value.os, into);- FfiConverterTypeAppSpaceProvider.write(value.provider, into);- FfiConverterInt64.write(value.startedAt, into);- FfiConverterString.write(value.phase, into);- FfiConverterOptionalFloat64.write(value.fraction, into);- FfiConverterBool.write(value.pulled, into);- FfiConverterUInt32.write(value.permille, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalString.write(value.creditUrl, into);- FfiConverterOptionalString.write(value.spaceId, into);- FfiConverterOptionalString.write(value.image, into);- FfiConverterOptionalTypeAppSpaceKind.write(value.kind, into);- FfiConverterOptionalString.write(value.arch, into);- FfiConverterBool.write(value.emulated, into);- FfiConverterOptionalInt64.write(value.phaseAt, into);- FfiConverterOptionalUInt64.write(value.bytesDone, into);- FfiConverterOptionalUInt64.write(value.bytesTotal, into);- FfiConverterOptionalFloat64.write(value.bytesPerSecond, into);- FfiConverterBool.write(value.cancelling, into);- FfiConverterBool.write(value.gpu, into);- FfiConverterOptionalString.write(value.host, into);- FfiConverterOptionalString.write(value.hostName, into);+ switch (value) {+ case AppImageTier.Slim: return ordinalConverter.write(1, into);+ case AppImageTier.Full: return ordinalConverter.write(2, into);+ case AppImageTier.Xcode: return ordinalConverter.write(3, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterTypeAppSpaceOs.allocationSize(value.os) +- FfiConverterTypeAppSpaceProvider.allocationSize(value.provider) +- FfiConverterInt64.allocationSize(value.startedAt) +- FfiConverterString.allocationSize(value.phase) +- FfiConverterOptionalFloat64.allocationSize(value.fraction) +- FfiConverterBool.allocationSize(value.pulled) +- FfiConverterUInt32.allocationSize(value.permille) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalString.allocationSize(value.creditUrl) +- FfiConverterOptionalString.allocationSize(value.spaceId) +- FfiConverterOptionalString.allocationSize(value.image) +- FfiConverterOptionalTypeAppSpaceKind.allocationSize(value.kind) +- FfiConverterOptionalString.allocationSize(value.arch) +- FfiConverterBool.allocationSize(value.emulated) +- FfiConverterOptionalInt64.allocationSize(value.phaseAt) +- FfiConverterOptionalUInt64.allocationSize(value.bytesDone) +- FfiConverterOptionalUInt64.allocationSize(value.bytesTotal) +- FfiConverterOptionalFloat64.allocationSize(value.bytesPerSecond) +- FfiConverterBool.allocationSize(value.cancelling) +- FfiConverterBool.allocationSize(value.gpu) +- FfiConverterOptionalString.allocationSize(value.host) +- FfiConverterOptionalString.allocationSize(value.hostName);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppPendingDelete = {+export type AppImageDistro = {/**- * The Space's id.+ * `ubuntu`, `omarchy`, `macos`, `windows`.*/id: string,/**- * Epoch ms the delete started.- */- startedAt: bigint,- /**- * The delete returned: the row stays hidden until the registry stops- * listing the Space.+ * Pretty name ("Ubuntu 24.04", "Omarchy").*/- done: boolean+ name: string}/**- * Generated factory for {@link AppPendingDelete} record objects.+ * Generated factory for {@link AppImageDistro} record objects.*/-export const AppPendingDelete = (() => {+export const AppImageDistro = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPendingDelete, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppImageDistro, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPendingDelete>,+ defaults: () => Object.freeze(defaults()) as Partial<AppImageDistro>,});})();-const FfiConverterTypeAppPendingDelete = (() => {- type TypeName = AppPendingDelete;+const FfiConverterTypeAppImageDistro = (() => {+ type TypeName = AppImageDistro;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- startedAt: FfiConverterInt64.read(from),- done: FfiConverterBool.read(from)+ name: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterInt64.write(value.startedAt, into);- FfiConverterBool.write(value.done, into);+ FfiConverterString.write(value.name, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterInt64.allocationSize(value.startedAt) +- FfiConverterBool.allocationSize(value.done);+ FfiConverterString.allocationSize(value.name);}};return new FFIConverter();})();-export type AppPendingPower = {+export type AppPlatformSize = {/**- * The Space's id.+ * `amd64` or `arm64`.*/- id: string,+ arch: string,/**- * Turning it on (else off).+ * The platform manifest's digest.*/- on: boolean,+ manifest: string,/**- * Epoch ms it started.+ * What a pull downloads.*/- startedAt: bigint,+ download: bigint,/**- * The SDK returned: the row keeps saying so until the registry shows- * the Space on (or off).+ * What the pulled image takes on the host.*/- done: boolean,+ unpacked: bigint,/**- * Why it failed: shown inline until the next power action.+ * The disk the Space sees (a VM's virtual disk; a container's root+ * filesystem).*/- error?: string+ disk: bigint}/**- * Generated factory for {@link AppPendingPower} record objects.+ * Generated factory for {@link AppPlatformSize} record objects.*/-export const AppPendingPower = (() => {+export const AppPlatformSize = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPendingPower, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPlatformSize, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPendingPower>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPlatformSize>,});})();-const FfiConverterTypeAppPendingPower = (() => {- type TypeName = AppPendingPower;+const FfiConverterTypeAppPlatformSize = (() => {+ type TypeName = AppPlatformSize;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- on: FfiConverterBool.read(from),- startedAt: FfiConverterInt64.read(from),- done: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterBool.write(value.on, into);- FfiConverterInt64.write(value.startedAt, into);- FfiConverterBool.write(value.done, into);- FfiConverterOptionalString.write(value.error, into);+ arch: FfiConverterString.read(from),+ manifest: FfiConverterString.read(from),+ download: FfiConverterUInt64.read(from),+ unpacked: FfiConverterUInt64.read(from),+ disk: FfiConverterUInt64.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.arch, into);+ FfiConverterString.write(value.manifest, into);+ FfiConverterUInt64.write(value.download, into);+ FfiConverterUInt64.write(value.unpacked, into);+ FfiConverterUInt64.write(value.disk, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterBool.allocationSize(value.on) +- FfiConverterInt64.allocationSize(value.startedAt) +- FfiConverterBool.allocationSize(value.done) +- FfiConverterOptionalString.allocationSize(value.error);+ return FfiConverterString.allocationSize(value.arch) ++ FfiConverterString.allocationSize(value.manifest) ++ FfiConverterUInt64.allocationSize(value.download) ++ FfiConverterUInt64.allocationSize(value.unpacked) ++ FfiConverterUInt64.allocationSize(value.disk);}};return new FFIConverter();})();-export type AppCreatesState = {- /**- * Oldest first.- */- pending: Array<AppPendingCreate>,+export type AppImageSizes = {/**- * Spaces being deleted, oldest first.+ * The digest they were measured at.*/- deleting: Array<AppPendingDelete>,+ digest: string,/**- * Spaces being turned off or on (or whose last try failed).+ * One row per platform.*/- powering: Array<AppPendingPower>+ platforms: Array<AppPlatformSize>}/**- * Generated factory for {@link AppCreatesState} record objects.+ * Generated factory for {@link AppImageSizes} record objects.*/-export const AppCreatesState = (() => {+export const AppImageSizes = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppCreatesState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppImageSizes, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCreatesState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppImageSizes>,});})();-const FfiConverterTypeAppCreatesState = (() => {- type TypeName = AppCreatesState;+const FfiConverterTypeAppImageSizes = (() => {+ type TypeName = AppImageSizes;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- pending: FfiConverterSequenceTypeAppPendingCreate.read(from),- deleting: FfiConverterSequenceTypeAppPendingDelete.read(from),- powering: FfiConverterSequenceTypeAppPendingPower.read(from)+ digest: FfiConverterString.read(from),+ platforms: FfiConverterSequenceTypeAppPlatformSize.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppPendingCreate.write(value.pending, into);- FfiConverterSequenceTypeAppPendingDelete.write(value.deleting, into);- FfiConverterSequenceTypeAppPendingPower.write(value.powering, into);+ FfiConverterString.write(value.digest, into);+ FfiConverterSequenceTypeAppPlatformSize.write(value.platforms, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppPendingCreate.allocationSize(value.pending) +- FfiConverterSequenceTypeAppPendingDelete.allocationSize(value.deleting) +- FfiConverterSequenceTypeAppPendingPower.allocationSize(value.powering);+ return FfiConverterString.allocationSize(value.digest) ++ FfiConverterSequenceTypeAppPlatformSize.allocationSize(value.platforms);}};return new FFIConverter();})();-export type AppCreditNotice = {+export type AppSandboxImage = {/**- * [`OUT_OF_CREDIT`].+ * OCI ref.*/- text: string,+ imageRef: string,/**- * [`ADD_CREDIT`].+ * Group id.*/- button: string,+ group: string,/**- * The website billing page.+ * OS.*/- url: string-}--/**- * Generated factory for {@link AppCreditNotice} record objects.- */-export const AppCreditNotice = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppCreditNotice, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppCreditNotice>,- });-})();--const FfiConverterTypeAppCreditNotice = (() => {- type TypeName = AppCreditNotice;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- text: FfiConverterString.read(from),- button: FfiConverterString.read(from),- url: FfiConverterString.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.text, into);- FfiConverterString.write(value.button, into);- FfiConverterString.write(value.url, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.text) +- FfiConverterString.allocationSize(value.button) +- FfiConverterString.allocationSize(value.url);-- }- };- return new FFIConverter();-})();--export type AppDaemonCheck = {+ os: AppSpaceOs,/**- * The running daemon's executable (`None`: no daemon, or unknown).+ * Display name.*/- daemonExe?: string,+ name: string,/**- * This app's bundle (`/Applications/Cua Spaces.app`).+ * Container or VM.*/- bundle: string-}--/**- * Generated factory for {@link AppDaemonCheck} record objects.- */-export const AppDaemonCheck = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDaemonCheck, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDaemonCheck>,- });-})();--const FfiConverterTypeAppDaemonCheck = (() => {- type TypeName = AppDaemonCheck;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- daemonExe: FfiConverterOptionalString.read(from),- bundle: FfiConverterString.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.daemonExe, into);- FfiConverterString.write(value.bundle, into);- }- allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.daemonExe) +- FfiConverterString.allocationSize(value.bundle);-- }- };- return new FFIConverter();-})();--export type AppDeleteConfirm = {+ variant: AppSpaceKind,/**- * "Delete Brave Otter?"+ * One line.*/- title: string,+ summary: string,/**- * What it means, one line.+ * Runs cua-spacesd (streams).*/- message: string,+ spacesd: boolean,/**- * The destructive button.+ * Local engine.*/- confirmLabel: string,+ local?: AppLocalEngine,/**- * The destructive button can be pressed (a Space in your cloud that- * another device created cannot be deleted from here).+ * Cloud engine.*/- confirmEnabled: boolean,+ cloud?: AppCloudEngine,/**- * Why not, beside the disabled button.+ * `slim`, `full` or `xcode` (canonical images only).*/- disabledReason?: string,+ tier?: AppImageTier,/**- * For a Space in your cloud: "Remove from List", which forgets it- * and keeps it running there (`remove_space`).+ * Offered in pickers.*/- removeLabel?: string,+ published: boolean,/**- * "Keep" (or "Cancel" beside Remove from List).+ * The guest's distribution.*/- cancelLabel: string+ distro?: AppImageDistro,+ /**+ * Platforms it is built for (`amd64`, `arm64`); empty when unknown.+ */+ arch: Array<string>,+ /**+ * How big it is per platform, when measured.+ */+ sizes?: AppImageSizes,+ /**+ * `false`: its guest cannot use GPU acceleration.+ */+ gpu: boolean}/**- * Generated factory for {@link AppDeleteConfirm} record objects.+ * Generated factory for {@link AppSandboxImage} record objects.*/-export const AppDeleteConfirm = (() => {+export const AppSandboxImage = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDeleteConfirm, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSandboxImage, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDeleteConfirm>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSandboxImage>,});})();-const FfiConverterTypeAppDeleteConfirm = (() => {- type TypeName = AppDeleteConfirm;+const FfiConverterTypeAppSandboxImage = (() => {+ type TypeName = AppSandboxImage;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- message: FfiConverterString.read(from),- confirmLabel: FfiConverterString.read(from),- confirmEnabled: FfiConverterBool.read(from),- disabledReason: FfiConverterOptionalString.read(from),- removeLabel: FfiConverterOptionalString.read(from),- cancelLabel: FfiConverterString.read(from)+ imageRef: FfiConverterString.read(from),+ group: FfiConverterString.read(from),+ os: FfiConverterTypeAppSpaceOs.read(from),+ name: FfiConverterString.read(from),+ variant: FfiConverterTypeAppSpaceKind.read(from),+ summary: FfiConverterString.read(from),+ spacesd: FfiConverterBool.read(from),+ local: FfiConverterOptionalTypeAppLocalEngine.read(from),+ cloud: FfiConverterOptionalTypeAppCloudEngine.read(from),+ tier: FfiConverterOptionalTypeAppImageTier.read(from),+ published: FfiConverterBool.read(from),+ distro: FfiConverterOptionalTypeAppImageDistro.read(from),+ arch: FfiConverterSequenceString.read(from),+ sizes: FfiConverterOptionalTypeAppImageSizes.read(from),+ gpu: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.message, into);- FfiConverterString.write(value.confirmLabel, into);- FfiConverterBool.write(value.confirmEnabled, into);- FfiConverterOptionalString.write(value.disabledReason, into);- FfiConverterOptionalString.write(value.removeLabel, into);- FfiConverterString.write(value.cancelLabel, into);+ FfiConverterString.write(value.imageRef, into);+ FfiConverterString.write(value.group, into);+ FfiConverterTypeAppSpaceOs.write(value.os, into);+ FfiConverterString.write(value.name, into);+ FfiConverterTypeAppSpaceKind.write(value.variant, into);+ FfiConverterString.write(value.summary, into);+ FfiConverterBool.write(value.spacesd, into);+ FfiConverterOptionalTypeAppLocalEngine.write(value.local, into);+ FfiConverterOptionalTypeAppCloudEngine.write(value.cloud, into);+ FfiConverterOptionalTypeAppImageTier.write(value.tier, into);+ FfiConverterBool.write(value.published, into);+ FfiConverterOptionalTypeAppImageDistro.write(value.distro, into);+ FfiConverterSequenceString.write(value.arch, into);+ FfiConverterOptionalTypeAppImageSizes.write(value.sizes, into);+ FfiConverterBool.write(value.gpu, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.message) +- FfiConverterString.allocationSize(value.confirmLabel) +- FfiConverterBool.allocationSize(value.confirmEnabled) +- FfiConverterOptionalString.allocationSize(value.disabledReason) +- FfiConverterOptionalString.allocationSize(value.removeLabel) +- FfiConverterString.allocationSize(value.cancelLabel);+ return FfiConverterString.allocationSize(value.imageRef) ++ FfiConverterString.allocationSize(value.group) ++ FfiConverterTypeAppSpaceOs.allocationSize(value.os) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterTypeAppSpaceKind.allocationSize(value.variant) ++ FfiConverterString.allocationSize(value.summary) ++ FfiConverterBool.allocationSize(value.spacesd) ++ FfiConverterOptionalTypeAppLocalEngine.allocationSize(value.local) ++ FfiConverterOptionalTypeAppCloudEngine.allocationSize(value.cloud) ++ FfiConverterOptionalTypeAppImageTier.allocationSize(value.tier) ++ FfiConverterBool.allocationSize(value.published) ++ FfiConverterOptionalTypeAppImageDistro.allocationSize(value.distro) ++ FfiConverterSequenceString.allocationSize(value.arch) ++ FfiConverterOptionalTypeAppImageSizes.allocationSize(value.sizes) ++ FfiConverterBool.allocationSize(value.gpu);}};return new FFIConverter();})();-export enum AppDesktopCoverKind {+export enum AppRuntime {/**- * No cover: the live desktop (or the stream view's own badge).+ * Let the SDK pick.*/- Stream = "stream",+ Auto = "auto",/**- * The preview with "Connecting…".+ * gVisor.*/- Connecting = "connecting",+ Gvisor = "gvisor",/**- * The preview with a Connect button.+ * runc.*/- Connect = "connect",+ Runc = "runc",/**- * The preview with a line (and maybe a button): the Space cannot- * stream, or the stream failed.+ * QEMU.*/- Status = "status"+ Qemu = "qemu",+ /**+ * Lume.+ */+ Lume = "lume",+ /**+ * KubeVirt.+ */+ Kubevirt = "kubevirt"}-const FfiConverterTypeAppDesktopCoverKind = (() => {+const FfiConverterTypeAppRuntime = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppDesktopCoverKind;+ type TypeName = AppRuntime;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppDesktopCoverKind.Stream;- case 2: return AppDesktopCoverKind.Connecting;- case 3: return AppDesktopCoverKind.Connect;- case 4: return AppDesktopCoverKind.Status;+ case 1: return AppRuntime.Auto;+ case 2: return AppRuntime.Gvisor;+ case 3: return AppRuntime.Runc;+ case 4: return AppRuntime.Qemu;+ case 5: return AppRuntime.Lume;+ case 6: return AppRuntime.Kubevirt;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppDesktopCoverKind.Stream: return ordinalConverter.write(1, into);- case AppDesktopCoverKind.Connecting: return ordinalConverter.write(2, into);- case AppDesktopCoverKind.Connect: return ordinalConverter.write(3, into);- case AppDesktopCoverKind.Status: return ordinalConverter.write(4, into);+ case AppRuntime.Auto: return ordinalConverter.write(1, into);+ case AppRuntime.Gvisor: return ordinalConverter.write(2, into);+ case AppRuntime.Runc: return ordinalConverter.write(3, into);+ case AppRuntime.Qemu: return ordinalConverter.write(4, into);+ case AppRuntime.Lume: return ordinalConverter.write(5, into);+ case AppRuntime.Kubevirt: return ordinalConverter.write(6, into);}}allocationSize(value: TypeName): number {@@ -13399,215 +13726,271 @@ const FfiConverterTypeAppDesktopCoverKind = (() => {return new FFIConverter();})();-export type AppDesktopCover = {+export type AppCreatePlan = {/**- * How it draws.+ * Where.*/- kind: AppDesktopCoverKind,+ placement: AppLocation,/**- * The line, centered.+ * For "Your cloud": the connected cloud's word (`aws`).*/- text?: string,+ cloud?: string,/**- * A button under (or instead of) the line.+ * For one of your machines: its id (`on="host:<id>"`).*/- button?: string,+ host?: string,/**- * Its tooltip.+ * The image (its variant is the kind).*/- buttonHelp?: string,+ image: AppSandboxImage,/**- * The shell opens a stream session now (none is open, and one is- * wanted).+ * Engine (`auto` unless chosen).*/- openStream: boolean,+ runtime: AppRuntime,/**- * The shell starts the open session again (Try again was pressed).+ * Name, when given.*/- retry: boolean,+ name?: string,/**- * The button shows greyed out (Connect while this device is not- * enrolled).+ * vCPUs (local and Cua Cloud).*/- buttonDisabled: boolean,+ cpus?: number,/**- * The one action above a greyed-out Connect ("Enroll This Mac…"): the- * shell opens the enroll sheet.+ * Memory MB (local and Cua Cloud).*/- action?: string+ memoryMb?: number,+ /**+ * Local VMs only: grow the disk to this many GB (larger than the+ * image's).+ */+ diskGb?: number,+ /**+ * Open the desktop when ready.+ */+ openWhenReady: boolean,+ /**+ * Open the desktop once created: asked for and the image streams.+ */+ openDesktop: boolean,+ /**+ * A GPU option of the runtime (`paravirtual`), when checked and+ * offered.+ */+ gpu?: string}/**- * Generated factory for {@link AppDesktopCover} record objects.+ * Generated factory for {@link AppCreatePlan} record objects.*/-export const AppDesktopCover = (() => {+export const AppCreatePlan = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDesktopCover, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCreatePlan, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDesktopCover>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCreatePlan>,});})();-const FfiConverterTypeAppDesktopCover = (() => {- type TypeName = AppDesktopCover;+const FfiConverterTypeAppCreatePlan = (() => {+ type TypeName = AppCreatePlan;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeAppDesktopCoverKind.read(from),- text: FfiConverterOptionalString.read(from),- button: FfiConverterOptionalString.read(from),- buttonHelp: FfiConverterOptionalString.read(from),- openStream: FfiConverterBool.read(from),- retry: FfiConverterBool.read(from),- buttonDisabled: FfiConverterBool.read(from),- action: FfiConverterOptionalString.read(from)+ placement: FfiConverterTypeAppLocation.read(from),+ cloud: FfiConverterOptionalString.read(from),+ host: FfiConverterOptionalString.read(from),+ image: FfiConverterTypeAppSandboxImage.read(from),+ runtime: FfiConverterTypeAppRuntime.read(from),+ name: FfiConverterOptionalString.read(from),+ cpus: FfiConverterOptionalUInt32.read(from),+ memoryMb: FfiConverterOptionalUInt32.read(from),+ diskGb: FfiConverterOptionalUInt32.read(from),+ openWhenReady: FfiConverterBool.read(from),+ openDesktop: FfiConverterBool.read(from),+ gpu: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppDesktopCoverKind.write(value.kind, into);- FfiConverterOptionalString.write(value.text, into);- FfiConverterOptionalString.write(value.button, into);- FfiConverterOptionalString.write(value.buttonHelp, into);- FfiConverterBool.write(value.openStream, into);- FfiConverterBool.write(value.retry, into);- FfiConverterBool.write(value.buttonDisabled, into);- FfiConverterOptionalString.write(value.action, into);+ FfiConverterTypeAppLocation.write(value.placement, into);+ FfiConverterOptionalString.write(value.cloud, into);+ FfiConverterOptionalString.write(value.host, into);+ FfiConverterTypeAppSandboxImage.write(value.image, into);+ FfiConverterTypeAppRuntime.write(value.runtime, into);+ FfiConverterOptionalString.write(value.name, into);+ FfiConverterOptionalUInt32.write(value.cpus, into);+ FfiConverterOptionalUInt32.write(value.memoryMb, into);+ FfiConverterOptionalUInt32.write(value.diskGb, into);+ FfiConverterBool.write(value.openWhenReady, into);+ FfiConverterBool.write(value.openDesktop, into);+ FfiConverterOptionalString.write(value.gpu, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppDesktopCoverKind.allocationSize(value.kind) +- FfiConverterOptionalString.allocationSize(value.text) +- FfiConverterOptionalString.allocationSize(value.button) +- FfiConverterOptionalString.allocationSize(value.buttonHelp) +- FfiConverterBool.allocationSize(value.openStream) +- FfiConverterBool.allocationSize(value.retry) +- FfiConverterBool.allocationSize(value.buttonDisabled) +- FfiConverterOptionalString.allocationSize(value.action);+ return FfiConverterTypeAppLocation.allocationSize(value.placement) ++ FfiConverterOptionalString.allocationSize(value.cloud) ++ FfiConverterOptionalString.allocationSize(value.host) ++ FfiConverterTypeAppSandboxImage.allocationSize(value.image) ++ FfiConverterTypeAppRuntime.allocationSize(value.runtime) ++ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterOptionalUInt32.allocationSize(value.cpus) ++ FfiConverterOptionalUInt32.allocationSize(value.memoryMb) ++ FfiConverterOptionalUInt32.allocationSize(value.diskGb) ++ FfiConverterBool.allocationSize(value.openWhenReady) ++ FfiConverterBool.allocationSize(value.openDesktop) ++ FfiConverterOptionalString.allocationSize(value.gpu);}};return new FFIConverter();})();-export enum AppStreamPhase {+export type AppCreateSpaceArgs = {/**- * No session yet.+ * Image ref.*/- NoSession = "noSession",+ image: string,/**- * A session that has not started.+ * The SDK's `on`: `local`, `cloud`, `host:<machine>`, or a connected+ * cloud's word (`aws`, `gcp`, `modal`).*/- Idle = "idle",+ on: string,/**- * Opening (no frame yet).+ * `container` / `vm`.*/- Connecting = "connecting",+ kind: AppSpaceKind,/**- * Opening again by itself after the stream dropped (no frame yet).+ * Engine.*/- Reconnecting = "reconnecting",+ runtime: AppRuntime,/**- * Frames arrive.+ * Name.*/- Streaming = "streaming",+ name?: string,/**- * Paused by the Space (the stream view says why).+ * vCPUs.*/- Suspended = "suspended",+ cpus?: number,/**- * It could not open.+ * Memory MB.*/- Failed = "failed"-}--const FfiConverterTypeAppStreamPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppStreamPhase;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppStreamPhase.NoSession;- case 2: return AppStreamPhase.Idle;- case 3: return AppStreamPhase.Connecting;- case 4: return AppStreamPhase.Reconnecting;- case 5: return AppStreamPhase.Streaming;- case 6: return AppStreamPhase.Suspended;- case 7: return AppStreamPhase.Failed;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ memoryMb?: number,+ /**+ * Disk GB (local VMs; the image's size when unset).+ */+ diskGb?: number,+ /**+ * Runs cua-spacesd.+ */+ spacesd: boolean,+ /**+ * A GPU option of the runtime (`paravirtual`).+ */+ gpu?: string+}++/**+ * Generated factory for {@link AppCreateSpaceArgs} record objects.+ */+export const AppCreateSpaceArgs = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppCreateSpaceArgs, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppCreateSpaceArgs>,+ });+})();++const FfiConverterTypeAppCreateSpaceArgs = (() => {+ type TypeName = AppCreateSpaceArgs;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ image: FfiConverterString.read(from),+ on: FfiConverterString.read(from),+ kind: FfiConverterTypeAppSpaceKind.read(from),+ runtime: FfiConverterTypeAppRuntime.read(from),+ name: FfiConverterOptionalString.read(from),+ cpus: FfiConverterOptionalUInt32.read(from),+ memoryMb: FfiConverterOptionalUInt32.read(from),+ diskGb: FfiConverterOptionalUInt32.read(from),+ spacesd: FfiConverterBool.read(from),+ gpu: FfiConverterOptionalString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppStreamPhase.NoSession: return ordinalConverter.write(1, into);- case AppStreamPhase.Idle: return ordinalConverter.write(2, into);- case AppStreamPhase.Connecting: return ordinalConverter.write(3, into);- case AppStreamPhase.Reconnecting: return ordinalConverter.write(4, into);- case AppStreamPhase.Streaming: return ordinalConverter.write(5, into);- case AppStreamPhase.Suspended: return ordinalConverter.write(6, into);- case AppStreamPhase.Failed: return ordinalConverter.write(7, into);- }+ FfiConverterString.write(value.image, into);+ FfiConverterString.write(value.on, into);+ FfiConverterTypeAppSpaceKind.write(value.kind, into);+ FfiConverterTypeAppRuntime.write(value.runtime, into);+ FfiConverterOptionalString.write(value.name, into);+ FfiConverterOptionalUInt32.write(value.cpus, into);+ FfiConverterOptionalUInt32.write(value.memoryMb, into);+ FfiConverterOptionalUInt32.write(value.diskGb, into);+ FfiConverterBool.write(value.spacesd, into);+ FfiConverterOptionalString.write(value.gpu, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.image) ++ FfiConverterString.allocationSize(value.on) ++ FfiConverterTypeAppSpaceKind.allocationSize(value.kind) ++ FfiConverterTypeAppRuntime.allocationSize(value.runtime) ++ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterOptionalUInt32.allocationSize(value.cpus) ++ FfiConverterOptionalUInt32.allocationSize(value.memoryMb) ++ FfiConverterOptionalUInt32.allocationSize(value.diskGb) ++ FfiConverterBool.allocationSize(value.spacesd) ++ FfiConverterOptionalString.allocationSize(value.gpu);+}- }+ };return new FFIConverter();})();-export enum AppEnrollmentKind {- /**- * Enrolled: the relay lets it reach the account's machines.- */- Enrolled = "enrolled",- /**- * Not enrolled, still let through until the grace period ends.- */- Grace = "grace",+export enum AppSpaceProvider {/**- * Not enrolled, and the relay refuses it.+ * Cua Cloud.*/- NeedsEnrollment = "needsEnrollment",+ Cloud = "cloud",/**- * Registered, waiting for approval from an enrolled device.+ * This Mac.*/- Waiting = "waiting",+ Local = "local",/**- * Enrollment ran out: one approval re-verifies it.+ * A machine added by address.*/- Due = "due",+ Direct = "direct",/**- * Revoked.+ * A machine of the signed-in account through the relay.*/- Revoked = "revoked"+ Relay = "relay"}-const FfiConverterTypeAppEnrollmentKind = (() => {+const FfiConverterTypeAppSpaceProvider = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppEnrollmentKind;+ type TypeName = AppSpaceProvider;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppEnrollmentKind.Enrolled;- case 2: return AppEnrollmentKind.Grace;- case 3: return AppEnrollmentKind.NeedsEnrollment;- case 4: return AppEnrollmentKind.Waiting;- case 5: return AppEnrollmentKind.Due;- case 6: return AppEnrollmentKind.Revoked;+ case 1: return AppSpaceProvider.Cloud;+ case 2: return AppSpaceProvider.Local;+ case 3: return AppSpaceProvider.Direct;+ case 4: return AppSpaceProvider.Relay;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppEnrollmentKind.Enrolled: return ordinalConverter.write(1, into);- case AppEnrollmentKind.Grace: return ordinalConverter.write(2, into);- case AppEnrollmentKind.NeedsEnrollment: return ordinalConverter.write(3, into);- case AppEnrollmentKind.Waiting: return ordinalConverter.write(4, into);- case AppEnrollmentKind.Due: return ordinalConverter.write(5, into);- case AppEnrollmentKind.Revoked: return ordinalConverter.write(6, into);+ case AppSpaceProvider.Cloud: return ordinalConverter.write(1, into);+ case AppSpaceProvider.Local: return ordinalConverter.write(2, into);+ case AppSpaceProvider.Direct: return ordinalConverter.write(3, into);+ case AppSpaceProvider.Relay: return ordinalConverter.write(4, into);}}allocationSize(value: TypeName): number {@@ -13617,623 +14000,566 @@ const FfiConverterTypeAppEnrollmentKind = (() => {return new FFIConverter();})();-export type AppMachineAccessNotice = {+export type AppPendingCreate = {/**- * This device's enrollment.+ * `pending:<token>`.*/- kind: AppEnrollmentKind,+ id: string,/**- * The machine's Status: "Not enrolled", "Waiting for approval", ...+ * Display name.*/- status: string,+ name: string,/**- * The line above the disabled Connect.+ * Operating system.*/- text: string,+ os: AppSpaceOs,/**- * The action's label; it opens the enroll sheet.+ * Where it runs.*/- actionLabel: string+ provider: AppSpaceProvider,+ /**+ * Epoch ms it started.+ */+ startedAt: bigint,+ /**+ * The SDK's last phase word (`preparing`, `pulling`, ...).+ */+ phase: string,+ /**+ * The phase's fraction, when the SDK knows it.+ */+ fraction?: number,+ /**+ * The image was pulled (the pull takes most of the bar).+ */+ pulled: boolean,+ /**+ * Overall progress in thousandths; never goes backwards.+ */+ permille: number,+ /**+ * Why it failed.+ */+ error?: string,+ /**+ * It failed for want of Cua Cloud credit: the billing page.+ */+ creditUrl?: string,+ /**+ * The registered Space's id once it finished; the row goes when the+ * registry lists it.+ */+ spaceId?: string,+ /**+ * The image asked for.+ */+ image?: string,+ /**+ * Container or VM.+ */+ kind?: AppSpaceKind,+ /**+ * The platform that will run (`arm64`, `amd64`).+ */+ arch?: string,+ /**+ * It runs emulated: a local Space whose platform is not the host's.+ */+ emulated: boolean,+ /**+ * Epoch ms the current phase began (the time-based progress within a+ * phase that reports no fraction), or last moved (a new fraction):+ * a phase that stays put longer than [`stall_limit_secs`] fails the+ * row with [`stall_error`].+ */+ phaseAt?: bigint,+ /**+ * Bytes of the download so far, when the SDK counts them.+ */+ bytesDone?: bigint,+ /**+ * Bytes the download has in all.+ */+ bytesTotal?: bigint,+ /**+ * The download's smoothed rate, bytes per second.+ */+ bytesPerSecond?: number,+ /**+ * Cancel was pressed: the SDK is stopping the create and removing+ * what it made; the row goes when that ends.+ */+ cancelling: boolean,+ /**+ * GPU acceleration was asked for.+ */+ gpu: boolean,+ /**+ * A create on one of your machines: that machine's relay id (the+ * `host:<machine>` of the create's `on`). The machine lists the Space+ * it is creating as a record of its own, which [`compose`] folds into+ * this row.+ */+ host?: string,+ /**+ * That machine's name, for the row and for a failure that names it.+ */+ hostName?: string}/**- * Generated factory for {@link AppMachineAccessNotice} record objects.+ * Generated factory for {@link AppPendingCreate} record objects.*/-export const AppMachineAccessNotice = (() => {+export const AppPendingCreate = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMachineAccessNotice, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPendingCreate, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMachineAccessNotice>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPendingCreate>,});})();-const FfiConverterTypeAppMachineAccessNotice = (() => {- type TypeName = AppMachineAccessNotice;+const FfiConverterTypeAppPendingCreate = (() => {+ type TypeName = AppPendingCreate;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeAppEnrollmentKind.read(from),- status: FfiConverterString.read(from),- text: FfiConverterString.read(from),- actionLabel: FfiConverterString.read(from)+ id: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ os: FfiConverterTypeAppSpaceOs.read(from),+ provider: FfiConverterTypeAppSpaceProvider.read(from),+ startedAt: FfiConverterInt64.read(from),+ phase: FfiConverterString.read(from),+ fraction: FfiConverterOptionalFloat64.read(from),+ pulled: FfiConverterBool.read(from),+ permille: FfiConverterUInt32.read(from),+ error: FfiConverterOptionalString.read(from),+ creditUrl: FfiConverterOptionalString.read(from),+ spaceId: FfiConverterOptionalString.read(from),+ image: FfiConverterOptionalString.read(from),+ kind: FfiConverterOptionalTypeAppSpaceKind.read(from),+ arch: FfiConverterOptionalString.read(from),+ emulated: FfiConverterBool.read(from),+ phaseAt: FfiConverterOptionalInt64.read(from),+ bytesDone: FfiConverterOptionalUInt64.read(from),+ bytesTotal: FfiConverterOptionalUInt64.read(from),+ bytesPerSecond: FfiConverterOptionalFloat64.read(from),+ cancelling: FfiConverterBool.read(from),+ gpu: FfiConverterBool.read(from),+ host: FfiConverterOptionalString.read(from),+ hostName: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppEnrollmentKind.write(value.kind, into);- FfiConverterString.write(value.status, into);- FfiConverterString.write(value.text, into);- FfiConverterString.write(value.actionLabel, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.name, into);+ FfiConverterTypeAppSpaceOs.write(value.os, into);+ FfiConverterTypeAppSpaceProvider.write(value.provider, into);+ FfiConverterInt64.write(value.startedAt, into);+ FfiConverterString.write(value.phase, into);+ FfiConverterOptionalFloat64.write(value.fraction, into);+ FfiConverterBool.write(value.pulled, into);+ FfiConverterUInt32.write(value.permille, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalString.write(value.creditUrl, into);+ FfiConverterOptionalString.write(value.spaceId, into);+ FfiConverterOptionalString.write(value.image, into);+ FfiConverterOptionalTypeAppSpaceKind.write(value.kind, into);+ FfiConverterOptionalString.write(value.arch, into);+ FfiConverterBool.write(value.emulated, into);+ FfiConverterOptionalInt64.write(value.phaseAt, into);+ FfiConverterOptionalUInt64.write(value.bytesDone, into);+ FfiConverterOptionalUInt64.write(value.bytesTotal, into);+ FfiConverterOptionalFloat64.write(value.bytesPerSecond, into);+ FfiConverterBool.write(value.cancelling, into);+ FfiConverterBool.write(value.gpu, into);+ FfiConverterOptionalString.write(value.host, into);+ FfiConverterOptionalString.write(value.hostName, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppEnrollmentKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.status) +- FfiConverterString.allocationSize(value.text) +- FfiConverterString.allocationSize(value.actionLabel);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterTypeAppSpaceOs.allocationSize(value.os) ++ FfiConverterTypeAppSpaceProvider.allocationSize(value.provider) ++ FfiConverterInt64.allocationSize(value.startedAt) ++ FfiConverterString.allocationSize(value.phase) ++ FfiConverterOptionalFloat64.allocationSize(value.fraction) ++ FfiConverterBool.allocationSize(value.pulled) ++ FfiConverterUInt32.allocationSize(value.permille) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalString.allocationSize(value.creditUrl) ++ FfiConverterOptionalString.allocationSize(value.spaceId) ++ FfiConverterOptionalString.allocationSize(value.image) ++ FfiConverterOptionalTypeAppSpaceKind.allocationSize(value.kind) ++ FfiConverterOptionalString.allocationSize(value.arch) ++ FfiConverterBool.allocationSize(value.emulated) ++ FfiConverterOptionalInt64.allocationSize(value.phaseAt) ++ FfiConverterOptionalUInt64.allocationSize(value.bytesDone) ++ FfiConverterOptionalUInt64.allocationSize(value.bytesTotal) ++ FfiConverterOptionalFloat64.allocationSize(value.bytesPerSecond) ++ FfiConverterBool.allocationSize(value.cancelling) ++ FfiConverterBool.allocationSize(value.gpu) ++ FfiConverterOptionalString.allocationSize(value.host) ++ FfiConverterOptionalString.allocationSize(value.hostName);}};return new FFIConverter();})();-export type AppDesktopCoverInput = {- /**- * The detail's `can_stream`.- */- canStream: boolean,- /**- * The detail's `preview_text` (why it cannot stream).- */- previewText: string,- /**- * Settings: "Connect to the desktop automatically".- */- autoConnect: boolean,+export type AppPendingDelete = {/**- * Connect (or Try again) was pressed for this Space.+ * The Space's id.*/- connectRequested: boolean,+ id: string,/**- * The shell's stream session.+ * Epoch ms the delete started.*/- stream: AppStreamPhase,+ startedAt: bigint,/**- * The detail's `access`: this device is signed in but not enrolled,- * so Connect shows greyed out under this notice and its action.+ * The delete returned: the row stays hidden until the registry stops+ * listing the Space.*/- access?: AppMachineAccessNotice+ done: boolean}/**- * Generated factory for {@link AppDesktopCoverInput} record objects.+ * Generated factory for {@link AppPendingDelete} record objects.*/-export const AppDesktopCoverInput = (() => {+export const AppPendingDelete = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDesktopCoverInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPendingDelete, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDesktopCoverInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPendingDelete>,});})();-const FfiConverterTypeAppDesktopCoverInput = (() => {- type TypeName = AppDesktopCoverInput;+const FfiConverterTypeAppPendingDelete = (() => {+ type TypeName = AppPendingDelete;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- canStream: FfiConverterBool.read(from),- previewText: FfiConverterString.read(from),- autoConnect: FfiConverterBool.read(from),- connectRequested: FfiConverterBool.read(from),- stream: FfiConverterTypeAppStreamPhase.read(from),- access: FfiConverterOptionalTypeAppMachineAccessNotice.read(from)+ id: FfiConverterString.read(from),+ startedAt: FfiConverterInt64.read(from),+ done: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.canStream, into);- FfiConverterString.write(value.previewText, into);- FfiConverterBool.write(value.autoConnect, into);- FfiConverterBool.write(value.connectRequested, into);- FfiConverterTypeAppStreamPhase.write(value.stream, into);- FfiConverterOptionalTypeAppMachineAccessNotice.write(value.access, into);+ FfiConverterString.write(value.id, into);+ FfiConverterInt64.write(value.startedAt, into);+ FfiConverterBool.write(value.done, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.canStream) +- FfiConverterString.allocationSize(value.previewText) +- FfiConverterBool.allocationSize(value.autoConnect) +- FfiConverterBool.allocationSize(value.connectRequested) +- FfiConverterTypeAppStreamPhase.allocationSize(value.stream) +- FfiConverterOptionalTypeAppMachineAccessNotice.allocationSize(value.access);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterInt64.allocationSize(value.startedAt) ++ FfiConverterBool.allocationSize(value.done);}};return new FFIConverter();})();-export enum AppDetailActionId {- /**- * "Teleport an app…" into the Space.- */- Teleport = "teleport",- /**- * The desktop in a picture-in-picture panel.- */- Pip = "pip",+export type AppPendingPower = {/**- * "Share": let another cua.ai account watch or edit the Space.+ * The Space's id.*/- Share = "share",+ id: string,/**- * Turn it off or on (the power button, next to Delete).+ * Turning it on (else off).*/- Power = "power",+ on: boolean,/**- * Delete (or remove from the list).+ * Epoch ms it started.*/- Delete = "delete",+ startedAt: bigint,/**- * The desktop in its own window.+ * The SDK returned: the row keeps saying so until the registry shows+ * the Space on (or off).*/- Open = "open",+ done: boolean,/**- * Stop a create that is still running and remove what it made.+ * Why it failed: shown inline until the next power action.*/- Cancel = "cancel"+ error?: string}-const FfiConverterTypeAppDetailActionId = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppDetailActionId;+/**+ * Generated factory for {@link AppPendingPower} record objects.+ */+export const AppPendingPower = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppPendingPower, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppPendingPower>,+ });+})();++const FfiConverterTypeAppPendingPower = (() => {+ type TypeName = AppPendingPower;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppDetailActionId.Teleport;- case 2: return AppDetailActionId.Pip;- case 3: return AppDetailActionId.Share;- case 4: return AppDetailActionId.Power;- case 5: return AppDetailActionId.Delete;- case 6: return AppDetailActionId.Open;- case 7: return AppDetailActionId.Cancel;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ id: FfiConverterString.read(from),+ on: FfiConverterBool.read(from),+ startedAt: FfiConverterInt64.read(from),+ done: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppDetailActionId.Teleport: return ordinalConverter.write(1, into);- case AppDetailActionId.Pip: return ordinalConverter.write(2, into);- case AppDetailActionId.Share: return ordinalConverter.write(3, into);- case AppDetailActionId.Power: return ordinalConverter.write(4, into);- case AppDetailActionId.Delete: return ordinalConverter.write(5, into);- case AppDetailActionId.Open: return ordinalConverter.write(6, into);- case AppDetailActionId.Cancel: return ordinalConverter.write(7, into);- }+ FfiConverterString.write(value.id, into);+ FfiConverterBool.write(value.on, into);+ FfiConverterInt64.write(value.startedAt, into);+ FfiConverterBool.write(value.done, into);+ FfiConverterOptionalString.write(value.error, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterBool.allocationSize(value.on) ++ FfiConverterInt64.allocationSize(value.startedAt) ++ FfiConverterBool.allocationSize(value.done) ++ FfiConverterOptionalString.allocationSize(value.error);+}- }+ };return new FFIConverter();})();-export type AppDetailAction = {+export type AppCreatesState = {/**- * What it does.+ * Oldest first.*/- id: AppDetailActionId,+ pending: Array<AppPendingCreate>,/**- * Label.+ * Spaces being deleted, oldest first.*/- label: string,+ deleting: Array<AppPendingDelete>,/**- * SF Symbol (icon buttons).+ * Spaces being turned off or on (or whose last try failed).*/- symbol?: string,- /**- * Tooltip.- */- help: string,- /**- * Enabled.- */- enabled: boolean,- /**- * Drawn as destructive.- */- destructive: boolean,- /**- * The prominent one.- */- primary: boolean,- /**- * Its action runs: a spinner in place of the icon.- */- busy: boolean+ powering: Array<AppPendingPower>}/**- * Generated factory for {@link AppDetailAction} record objects.+ * Generated factory for {@link AppCreatesState} record objects.*/-export const AppDetailAction = (() => {+export const AppCreatesState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDetailAction, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCreatesState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDetailAction>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCreatesState>,});})();-const FfiConverterTypeAppDetailAction = (() => {- type TypeName = AppDetailAction;+const FfiConverterTypeAppCreatesState = (() => {+ type TypeName = AppCreatesState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterTypeAppDetailActionId.read(from),- label: FfiConverterString.read(from),- symbol: FfiConverterOptionalString.read(from),- help: FfiConverterString.read(from),- enabled: FfiConverterBool.read(from),- destructive: FfiConverterBool.read(from),- primary: FfiConverterBool.read(from),- busy: FfiConverterBool.read(from)+ pending: FfiConverterSequenceTypeAppPendingCreate.read(from),+ deleting: FfiConverterSequenceTypeAppPendingDelete.read(from),+ powering: FfiConverterSequenceTypeAppPendingPower.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppDetailActionId.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterOptionalString.write(value.symbol, into);- FfiConverterString.write(value.help, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterBool.write(value.destructive, into);- FfiConverterBool.write(value.primary, into);- FfiConverterBool.write(value.busy, into);+ FfiConverterSequenceTypeAppPendingCreate.write(value.pending, into);+ FfiConverterSequenceTypeAppPendingDelete.write(value.deleting, into);+ FfiConverterSequenceTypeAppPendingPower.write(value.powering, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppDetailActionId.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterOptionalString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.help) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterBool.allocationSize(value.destructive) +- FfiConverterBool.allocationSize(value.primary) +- FfiConverterBool.allocationSize(value.busy);+ return FfiConverterSequenceTypeAppPendingCreate.allocationSize(value.pending) ++ FfiConverterSequenceTypeAppPendingDelete.allocationSize(value.deleting) ++ FfiConverterSequenceTypeAppPendingPower.allocationSize(value.powering);}};return new FFIConverter();})();-export type AppDetailCopy = {- /**- * "Looking for this Space's windows…"- */- streamLoading: string,- /**- * "No open windows in this Space yet."- */- streamEmpty: string,- /**- * When the window list could not be read.- */- streamFailed: string,- /**- * When a filter hides every window.- */- streamNoMatch: string,- /**- * "Looking for this Space's agents…"- */- agentsLoading: string,- /**- * "No agents have been started in this Space."- */- agentsEmpty: string,- /**- * When the runs could not be read (not the same as none).- */- agentsFailed: string,- /**- * When a filter hides every run.- */- agentsNoMatch: string,- /**- * The drop well's caption.- */- dropCaption: string,- /**- * "Send file…"- */- sendFile: string,+export type AppCreditNotice = {/**- * "Teleport an app…"+ * [`OUT_OF_CREDIT`].*/- teleportApp: string,+ text: string,/**- * The teleport icon ([`TELEPORT_SYMBOL`]).+ * [`ADD_CREDIT`].*/- teleportSymbol: string,+ button: string,/**- * The teleport icon while a drag is over a drop target.+ * The website billing page.*/- teleportSymbolActive: string+ url: string}/**- * Generated factory for {@link AppDetailCopy} record objects.+ * Generated factory for {@link AppCreditNotice} record objects.*/-export const AppDetailCopy = (() => {+export const AppCreditNotice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDetailCopy, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppCreditNotice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDetailCopy>,+ defaults: () => Object.freeze(defaults()) as Partial<AppCreditNotice>,});})();-const FfiConverterTypeAppDetailCopy = (() => {- type TypeName = AppDetailCopy;+const FfiConverterTypeAppCreditNotice = (() => {+ type TypeName = AppCreditNotice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- streamLoading: FfiConverterString.read(from),- streamEmpty: FfiConverterString.read(from),- streamFailed: FfiConverterString.read(from),- streamNoMatch: FfiConverterString.read(from),- agentsLoading: FfiConverterString.read(from),- agentsEmpty: FfiConverterString.read(from),- agentsFailed: FfiConverterString.read(from),- agentsNoMatch: FfiConverterString.read(from),- dropCaption: FfiConverterString.read(from),- sendFile: FfiConverterString.read(from),- teleportApp: FfiConverterString.read(from),- teleportSymbol: FfiConverterString.read(from),- teleportSymbolActive: FfiConverterString.read(from)+ text: FfiConverterString.read(from),+ button: FfiConverterString.read(from),+ url: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.streamLoading, into);- FfiConverterString.write(value.streamEmpty, into);- FfiConverterString.write(value.streamFailed, into);- FfiConverterString.write(value.streamNoMatch, into);- FfiConverterString.write(value.agentsLoading, into);- FfiConverterString.write(value.agentsEmpty, into);- FfiConverterString.write(value.agentsFailed, into);- FfiConverterString.write(value.agentsNoMatch, into);- FfiConverterString.write(value.dropCaption, into);- FfiConverterString.write(value.sendFile, into);- FfiConverterString.write(value.teleportApp, into);- FfiConverterString.write(value.teleportSymbol, into);- FfiConverterString.write(value.teleportSymbolActive, into);+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.button, into);+ FfiConverterString.write(value.url, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.streamLoading) +- FfiConverterString.allocationSize(value.streamEmpty) +- FfiConverterString.allocationSize(value.streamFailed) +- FfiConverterString.allocationSize(value.streamNoMatch) +- FfiConverterString.allocationSize(value.agentsLoading) +- FfiConverterString.allocationSize(value.agentsEmpty) +- FfiConverterString.allocationSize(value.agentsFailed) +- FfiConverterString.allocationSize(value.agentsNoMatch) +- FfiConverterString.allocationSize(value.dropCaption) +- FfiConverterString.allocationSize(value.sendFile) +- FfiConverterString.allocationSize(value.teleportApp) +- FfiConverterString.allocationSize(value.teleportSymbol) +- FfiConverterString.allocationSize(value.teleportSymbolActive);+ return FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.button) ++ FfiConverterString.allocationSize(value.url);}};return new FFIConverter();})();-export enum AppBannerTone {- /**- * Informational.- */- Info = "info",- /**- * Needs the user soon.- */- Warning = "warning",- /**- * Blocks relay access now.- */- Critical = "critical"-}--const FfiConverterTypeAppBannerTone = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppBannerTone;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppBannerTone.Info;- case 2: return AppBannerTone.Warning;- case 3: return AppBannerTone.Critical;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppBannerTone.Info: return ordinalConverter.write(1, into);- case AppBannerTone.Warning: return ordinalConverter.write(2, into);- case AppBannerTone.Critical: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum AppDeviceAction {- /**- * Enroll this device (the enroll sheet).- */- Enroll = "enroll",- /**- * Approve another device (after presence).- */- Approve = "approve",- /**- * Rename a device.- */- Rename = "rename",- /**- * Revoke a device (after its confirmation).- */- Revoke = "revoke"-}--const FfiConverterTypeAppDeviceAction = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppDeviceAction;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppDeviceAction.Enroll;- case 2: return AppDeviceAction.Approve;- case 3: return AppDeviceAction.Rename;- case 4: return AppDeviceAction.Revoke;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppDeviceAction.Enroll: return ordinalConverter.write(1, into);- case AppDeviceAction.Approve: return ordinalConverter.write(2, into);- case AppDeviceAction.Rename: return ordinalConverter.write(3, into);- case AppDeviceAction.Revoke: return ordinalConverter.write(4, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppDeviceBanner = {- /**- * Tone.- */- tone: AppBannerTone,- /**- * Text.- */- text: string,+export type AppDaemonCheck = {/**- * Button, if any.+ * The running daemon's executable (`None`: no daemon, or unknown).*/- action?: AppDeviceAction,+ daemonExe?: string,/**- * The button's label.+ * This app's bundle (`/Applications/Cua Spaces.app`).*/- actionLabel?: string+ bundle: string}/**- * Generated factory for {@link AppDeviceBanner} record objects.+ * Generated factory for {@link AppDaemonCheck} record objects.*/-export const AppDeviceBanner = (() => {+export const AppDaemonCheck = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDeviceBanner, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDaemonCheck, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDeviceBanner>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDaemonCheck>,});})();-const FfiConverterTypeAppDeviceBanner = (() => {- type TypeName = AppDeviceBanner;+const FfiConverterTypeAppDaemonCheck = (() => {+ type TypeName = AppDaemonCheck;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- tone: FfiConverterTypeAppBannerTone.read(from),- text: FfiConverterString.read(from),- action: FfiConverterOptionalTypeAppDeviceAction.read(from),- actionLabel: FfiConverterOptionalString.read(from)+ daemonExe: FfiConverterOptionalString.read(from),+ bundle: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppBannerTone.write(value.tone, into);- FfiConverterString.write(value.text, into);- FfiConverterOptionalTypeAppDeviceAction.write(value.action, into);- FfiConverterOptionalString.write(value.actionLabel, into);+ FfiConverterOptionalString.write(value.daemonExe, into);+ FfiConverterString.write(value.bundle, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppBannerTone.allocationSize(value.tone) +- FfiConverterString.allocationSize(value.text) +- FfiConverterOptionalTypeAppDeviceAction.allocationSize(value.action) +- FfiConverterOptionalString.allocationSize(value.actionLabel);+ return FfiConverterOptionalString.allocationSize(value.daemonExe) ++ FfiConverterString.allocationSize(value.bundle);}};return new FFIConverter();})();-export type AppDeviceConfirm = {+export type AppDeleteConfirm = {/**- * The question.+ * "Delete Brave Otter?"*/title: string,/**- * What happens.+ * What it means, one line.*/message: string,/**- * The confirming button.+ * The destructive button.*/confirmLabel: string,/**- * The other button.+ * The destructive button can be pressed (a Space in your cloud that+ * another device created cannot be deleted from here).+ */+ confirmEnabled: boolean,+ /**+ * Why not, beside the disabled button.+ */+ disabledReason?: string,+ /**+ * For a Space in your cloud: "Remove from List", which forgets it+ * and keeps it running there (`remove_space`).+ */+ removeLabel?: string,+ /**+ * "Keep" (or "Cancel" beside Remove from List).*/cancelLabel: string}/**- * Generated factory for {@link AppDeviceConfirm} record objects.+ * Generated factory for {@link AppDeleteConfirm} record objects.*/-export const AppDeviceConfirm = (() => {+export const AppDeleteConfirm = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDeviceConfirm, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDeleteConfirm, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDeviceConfirm>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDeleteConfirm>,});})();-const FfiConverterTypeAppDeviceConfirm = (() => {- type TypeName = AppDeviceConfirm;+const FfiConverterTypeAppDeleteConfirm = (() => {+ type TypeName = AppDeleteConfirm;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {title: FfiConverterString.read(from),message: FfiConverterString.read(from),confirmLabel: FfiConverterString.read(from),+ confirmEnabled: FfiConverterBool.read(from),+ disabledReason: FfiConverterOptionalString.read(from),+ removeLabel: FfiConverterOptionalString.read(from),cancelLabel: FfiConverterString.read(from)};}@@ -14241,12 +14567,18 @@ const FfiConverterTypeAppDeviceConfirm = (() => {FfiConverterString.write(value.title, into);FfiConverterString.write(value.message, into);FfiConverterString.write(value.confirmLabel, into);+ FfiConverterBool.write(value.confirmEnabled, into);+ FfiConverterOptionalString.write(value.disabledReason, into);+ FfiConverterOptionalString.write(value.removeLabel, into);FfiConverterString.write(value.cancelLabel, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.title) +FfiConverterString.allocationSize(value.message) +FfiConverterString.allocationSize(value.confirmLabel) ++ FfiConverterBool.allocationSize(value.confirmEnabled) ++ FfiConverterOptionalString.allocationSize(value.disabledReason) ++ FfiConverterOptionalString.allocationSize(value.removeLabel) +FfiConverterString.allocationSize(value.cancelLabel);}@@ -14254,1743 +14586,1977 @@ const FfiConverterTypeAppDeviceConfirm = (() => {return new FFIConverter();})();-export type AppDeviceInput = {- /**- * `dev_…`.- */- id: string,- /**- * Display name.- */- name: string,- /**- * `pending`, `enrolled`, `expired` or `revoked`.- */- state: string,+export enum AppDesktopCoverKind {/**- * Re-verification due at (Unix seconds).+ * No cover: the live desktop (or the stream view's own badge).*/- enrolledUntil?: bigint,+ Stream = "stream",/**- * Last session (Unix seconds).+ * The preview with "Connecting…".*/- lastSeen?: bigint,+ Connecting = "connecting",/**- * This device.+ * The preview with a Connect button.*/- current: boolean,+ Connect = "connect",/**- * Operating system the device reported (`macos`, `windows`, `linux`).+ * The preview with a line (and maybe a button): the Space cannot+ * stream, or the stream failed.*/- platform?: string+ Status = "status"}-/**- * Generated factory for {@link AppDeviceInput} record objects.- */-export const AppDeviceInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDeviceInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDeviceInput>,- });-})();--const FfiConverterTypeAppDeviceInput = (() => {- type TypeName = AppDeviceInput;+const FfiConverterTypeAppDesktopCoverKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDesktopCoverKind;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- state: FfiConverterString.read(from),- enrolledUntil: FfiConverterOptionalUInt64.read(from),- lastSeen: FfiConverterOptionalUInt64.read(from),- current: FfiConverterBool.read(from),- platform: FfiConverterOptionalString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppDesktopCoverKind.Stream;+ case 2: return AppDesktopCoverKind.Connecting;+ case 3: return AppDesktopCoverKind.Connect;+ case 4: return AppDesktopCoverKind.Status;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.state, into);- FfiConverterOptionalUInt64.write(value.enrolledUntil, into);- FfiConverterOptionalUInt64.write(value.lastSeen, into);- FfiConverterBool.write(value.current, into);- FfiConverterOptionalString.write(value.platform, into);+ switch (value) {+ case AppDesktopCoverKind.Stream: return ordinalConverter.write(1, into);+ case AppDesktopCoverKind.Connecting: return ordinalConverter.write(2, into);+ case AppDesktopCoverKind.Connect: return ordinalConverter.write(3, into);+ case AppDesktopCoverKind.Status: return ordinalConverter.write(4, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.state) +- FfiConverterOptionalUInt64.allocationSize(value.enrolledUntil) +- FfiConverterOptionalUInt64.allocationSize(value.lastSeen) +- FfiConverterBool.allocationSize(value.current) +- FfiConverterOptionalString.allocationSize(value.platform);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppDeviceRow = {- /**- * Device id.- */- id: string,- /**- * Name (`(this device)` suffix for the current one).- */- title: string,+export type AppDesktopCover = {/**- * State in words.+ * How it draws.*/- subtitle: string,+ kind: AppDesktopCoverKind,/**- * Buttons.+ * The line, centered.*/- actions: Array<AppDeviceAction>,+ text?: string,/**- * The name as stored (Rename starts from it).+ * A button under (or instead of) the line.*/- name: string,+ button?: string,/**- * Operating system in words (`macOS`), empty when unknown.+ * Its tooltip.*/- platform: string,+ buttonHelp?: string,/**- * Platform and state on one line.+ * The shell opens a stream session now (none is open, and one is+ * wanted).*/- detail: string,+ openStream: boolean,/**- * Last session (Unix seconds); the shell says it relative to now.+ * The shell starts the open session again (Try again was pressed).*/- lastSeen?: bigint,+ retry: boolean,/**- * This device.+ * The button shows greyed out (Connect while this device is not+ * enrolled).*/- current: boolean,+ buttonDisabled: boolean,/**- * Asked before Revoke.+ * The one action above a greyed-out Connect ("Enroll This Mac…"): the+ * shell opens the enroll sheet.*/- revokeConfirm?: AppDeviceConfirm+ action?: string}/**- * Generated factory for {@link AppDeviceRow} record objects.+ * Generated factory for {@link AppDesktopCover} record objects.*/-export const AppDeviceRow = (() => {+export const AppDesktopCover = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDeviceRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDesktopCover, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDeviceRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDesktopCover>,});})();-const FfiConverterTypeAppDeviceRow = (() => {- type TypeName = AppDeviceRow;+const FfiConverterTypeAppDesktopCover = (() => {+ type TypeName = AppDesktopCover;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- subtitle: FfiConverterString.read(from),- actions: FfiConverterSequenceTypeAppDeviceAction.read(from),- name: FfiConverterString.read(from),- platform: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- lastSeen: FfiConverterOptionalUInt64.read(from),- current: FfiConverterBool.read(from),- revokeConfirm: FfiConverterOptionalTypeAppDeviceConfirm.read(from)+ kind: FfiConverterTypeAppDesktopCoverKind.read(from),+ text: FfiConverterOptionalString.read(from),+ button: FfiConverterOptionalString.read(from),+ buttonHelp: FfiConverterOptionalString.read(from),+ openStream: FfiConverterBool.read(from),+ retry: FfiConverterBool.read(from),+ buttonDisabled: FfiConverterBool.read(from),+ action: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.subtitle, into);- FfiConverterSequenceTypeAppDeviceAction.write(value.actions, into);- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.platform, into);- FfiConverterString.write(value.detail, into);- FfiConverterOptionalUInt64.write(value.lastSeen, into);- FfiConverterBool.write(value.current, into);- FfiConverterOptionalTypeAppDeviceConfirm.write(value.revokeConfirm, into);+ FfiConverterTypeAppDesktopCoverKind.write(value.kind, into);+ FfiConverterOptionalString.write(value.text, into);+ FfiConverterOptionalString.write(value.button, into);+ FfiConverterOptionalString.write(value.buttonHelp, into);+ FfiConverterBool.write(value.openStream, into);+ FfiConverterBool.write(value.retry, into);+ FfiConverterBool.write(value.buttonDisabled, into);+ FfiConverterOptionalString.write(value.action, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.subtitle) +- FfiConverterSequenceTypeAppDeviceAction.allocationSize(value.actions) +- FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.platform) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterOptionalUInt64.allocationSize(value.lastSeen) +- FfiConverterBool.allocationSize(value.current) +- FfiConverterOptionalTypeAppDeviceConfirm.allocationSize(value.revokeConfirm);+ return FfiConverterTypeAppDesktopCoverKind.allocationSize(value.kind) ++ FfiConverterOptionalString.allocationSize(value.text) ++ FfiConverterOptionalString.allocationSize(value.button) ++ FfiConverterOptionalString.allocationSize(value.buttonHelp) ++ FfiConverterBool.allocationSize(value.openStream) ++ FfiConverterBool.allocationSize(value.retry) ++ FfiConverterBool.allocationSize(value.buttonDisabled) ++ FfiConverterOptionalString.allocationSize(value.action);}};return new FFIConverter();})();-export type AppMachineInput = {+export enum AppStreamPhase {/**- * Machine id.+ * No session yet.*/- id: string,+ NoSession = "noSession",/**- * Display name.+ * A session that has not started.*/- name: string,+ Idle = "idle",/**- * Registered with an enrolled device's proof, or confirmed since- * (S5). `true` from a relay that predates the check.+ * Opening (no frame yet).*/- confirmed: boolean+ Connecting = "connecting",+ /**+ * Opening again by itself after the stream dropped (no frame yet).+ */+ Reconnecting = "reconnecting",+ /**+ * Frames arrive.+ */+ Streaming = "streaming",+ /**+ * Paused by the Space (the stream view says why).+ */+ Suspended = "suspended",+ /**+ * It could not open.+ */+ Failed = "failed"+}++const FfiConverterTypeAppStreamPhase = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppStreamPhase;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppStreamPhase.NoSession;+ case 2: return AppStreamPhase.Idle;+ case 3: return AppStreamPhase.Connecting;+ case 4: return AppStreamPhase.Reconnecting;+ case 5: return AppStreamPhase.Streaming;+ case 6: return AppStreamPhase.Suspended;+ case 7: return AppStreamPhase.Failed;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppStreamPhase.NoSession: return ordinalConverter.write(1, into);+ case AppStreamPhase.Idle: return ordinalConverter.write(2, into);+ case AppStreamPhase.Connecting: return ordinalConverter.write(3, into);+ case AppStreamPhase.Reconnecting: return ordinalConverter.write(4, into);+ case AppStreamPhase.Streaming: return ordinalConverter.write(5, into);+ case AppStreamPhase.Suspended: return ordinalConverter.write(6, into);+ case AppStreamPhase.Failed: return ordinalConverter.write(7, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum AppEnrollmentKind {+ /**+ * Enrolled: the relay lets it reach the account's machines.+ */+ Enrolled = "enrolled",+ /**+ * Not enrolled, still let through until the grace period ends.+ */+ Grace = "grace",+ /**+ * Not enrolled, and the relay refuses it.+ */+ NeedsEnrollment = "needsEnrollment",+ /**+ * Registered, waiting for approval from an enrolled device.+ */+ Waiting = "waiting",+ /**+ * Enrollment ran out: one approval re-verifies it.+ */+ Due = "due",+ /**+ * Revoked.+ */+ Revoked = "revoked"+}++const FfiConverterTypeAppEnrollmentKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppEnrollmentKind;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppEnrollmentKind.Enrolled;+ case 2: return AppEnrollmentKind.Grace;+ case 3: return AppEnrollmentKind.NeedsEnrollment;+ case 4: return AppEnrollmentKind.Waiting;+ case 5: return AppEnrollmentKind.Due;+ case 6: return AppEnrollmentKind.Revoked;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppEnrollmentKind.Enrolled: return ordinalConverter.write(1, into);+ case AppEnrollmentKind.Grace: return ordinalConverter.write(2, into);+ case AppEnrollmentKind.NeedsEnrollment: return ordinalConverter.write(3, into);+ case AppEnrollmentKind.Waiting: return ordinalConverter.write(4, into);+ case AppEnrollmentKind.Due: return ordinalConverter.write(5, into);+ case AppEnrollmentKind.Revoked: return ordinalConverter.write(6, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppMachineAccessNotice = {+ /**+ * This device's enrollment.+ */+ kind: AppEnrollmentKind,+ /**+ * The machine's Status: "Not enrolled", "Waiting for approval", ...+ */+ status: string,+ /**+ * The line above the disabled Connect.+ */+ text: string,+ /**+ * The action's label; it opens the enroll sheet.+ */+ actionLabel: string}/**- * Generated factory for {@link AppMachineInput} record objects.+ * Generated factory for {@link AppMachineAccessNotice} record objects.*/-export const AppMachineInput = (() => {+export const AppMachineAccessNotice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMachineInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppMachineAccessNotice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMachineInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppMachineAccessNotice>,});})();-const FfiConverterTypeAppMachineInput = (() => {- type TypeName = AppMachineInput;+const FfiConverterTypeAppMachineAccessNotice = (() => {+ type TypeName = AppMachineAccessNotice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- confirmed: FfiConverterBool.read(from)+ kind: FfiConverterTypeAppEnrollmentKind.read(from),+ status: FfiConverterString.read(from),+ text: FfiConverterString.read(from),+ actionLabel: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterBool.write(value.confirmed, into);+ FfiConverterTypeAppEnrollmentKind.write(value.kind, into);+ FfiConverterString.write(value.status, into);+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.actionLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterBool.allocationSize(value.confirmed);+ return FfiConverterTypeAppEnrollmentKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.status) ++ FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.actionLabel);}};return new FFIConverter();})();-export type AppDevicesInput = {- /**- * The account's devices.- */- devices: Array<AppDeviceInput>,+export type AppDesktopCoverInput = {/**- * The account's audit events, newest last.+ * The detail's `can_stream`.*/- audit: Array<AppAuditInput>,+ canStream: boolean,/**- * This device's id when it has a key (it may not be registered yet).+ * The detail's `preview_text` (why it cannot stream).*/- localDeviceId?: string,+ previewText: string,/**- * The one-time code this device shows while it waits for approval.+ * Settings: "Connect to the desktop automatically".*/- pendingCode?: string,+ autoConnect: boolean,/**- * When the relay stops letting unenrolled devices through.+ * Connect (or Try again) was pressed for this Space.*/- enforceAfter?: bigint,+ connectRequested: boolean,/**- * Machine ids to display names.+ * The shell's stream session.*/- machineNames: Map<string, string>,+ stream: AppStreamPhase,/**- * The account's relay machines, for the "New machine" confirm badge- * (S5). Empty on a relay that predates it, or when this device cannot- * list them, same as `machine_names`.+ * The detail's `access`: this device is signed in but not enrolled,+ * so Connect shows greyed out under this notice and its action.*/- machines: Array<AppMachineInput>+ access?: AppMachineAccessNotice}/**- * Generated factory for {@link AppDevicesInput} record objects.+ * Generated factory for {@link AppDesktopCoverInput} record objects.*/-export const AppDevicesInput = (() => {+export const AppDesktopCoverInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDevicesInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDesktopCoverInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDevicesInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDesktopCoverInput>,});})();-const FfiConverterTypeAppDevicesInput = (() => {- type TypeName = AppDevicesInput;+const FfiConverterTypeAppDesktopCoverInput = (() => {+ type TypeName = AppDesktopCoverInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- devices: FfiConverterSequenceTypeAppDeviceInput.read(from),- audit: FfiConverterSequenceTypeAppAuditInput.read(from),- localDeviceId: FfiConverterOptionalString.read(from),- pendingCode: FfiConverterOptionalString.read(from),- enforceAfter: FfiConverterOptionalUInt64.read(from),- machineNames: FfiConverterMapStringString.read(from),- machines: FfiConverterSequenceTypeAppMachineInput.read(from)+ canStream: FfiConverterBool.read(from),+ previewText: FfiConverterString.read(from),+ autoConnect: FfiConverterBool.read(from),+ connectRequested: FfiConverterBool.read(from),+ stream: FfiConverterTypeAppStreamPhase.read(from),+ access: FfiConverterOptionalTypeAppMachineAccessNotice.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppDeviceInput.write(value.devices, into);- FfiConverterSequenceTypeAppAuditInput.write(value.audit, into);- FfiConverterOptionalString.write(value.localDeviceId, into);- FfiConverterOptionalString.write(value.pendingCode, into);- FfiConverterOptionalUInt64.write(value.enforceAfter, into);- FfiConverterMapStringString.write(value.machineNames, into);- FfiConverterSequenceTypeAppMachineInput.write(value.machines, into);+ FfiConverterBool.write(value.canStream, into);+ FfiConverterString.write(value.previewText, into);+ FfiConverterBool.write(value.autoConnect, into);+ FfiConverterBool.write(value.connectRequested, into);+ FfiConverterTypeAppStreamPhase.write(value.stream, into);+ FfiConverterOptionalTypeAppMachineAccessNotice.write(value.access, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppDeviceInput.allocationSize(value.devices) +- FfiConverterSequenceTypeAppAuditInput.allocationSize(value.audit) +- FfiConverterOptionalString.allocationSize(value.localDeviceId) +- FfiConverterOptionalString.allocationSize(value.pendingCode) +- FfiConverterOptionalUInt64.allocationSize(value.enforceAfter) +- FfiConverterMapStringString.allocationSize(value.machineNames) +- FfiConverterSequenceTypeAppMachineInput.allocationSize(value.machines);+ return FfiConverterBool.allocationSize(value.canStream) ++ FfiConverterString.allocationSize(value.previewText) ++ FfiConverterBool.allocationSize(value.autoConnect) ++ FfiConverterBool.allocationSize(value.connectRequested) ++ FfiConverterTypeAppStreamPhase.allocationSize(value.stream) ++ FfiConverterOptionalTypeAppMachineAccessNotice.allocationSize(value.access);}};return new FFIConverter();})();-export type AppDevicesLabels = {- /**- * Page title.- */- title: string,+export enum AppDetailActionId {/**- * This device's section.+ * "Teleport an app…" into the Space.*/- thisDevice: string,+ Teleport = "teleport",/**- * The account's devices.+ * The desktop in a picture-in-picture panel.*/- devices: string,+ Pip = "pip",/**- * The access log's section.+ * "Share": let another cua.ai account watch or edit the Space.*/- recent: string,+ Share = "share",/**- * When the access log is empty.+ * Turn it off or on (the power button, next to Delete).*/- recentEmpty: string,+ Power = "power",/**- * "Last seen" before a relative time.+ * Delete (or remove from the list).*/- lastSeen: string,+ Delete = "delete",/**- * Approve button (the row's, and the sheet's for a new device).+ * The desktop in its own window.*/- approve: string,+ Open = "open",/**- * The row's Deny: revokes a still-pending device in one click, or- * (a device due for re-verification) only dismisses it, like the- * sheet's Deny and Not Now.+ * Stop a create that is still running and remove what it made.*/- deny: string,+ Cancel = "cancel"+}++const FfiConverterTypeAppDetailActionId = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDetailActionId;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppDetailActionId.Teleport;+ case 2: return AppDetailActionId.Pip;+ case 3: return AppDetailActionId.Share;+ case 4: return AppDetailActionId.Power;+ case 5: return AppDetailActionId.Delete;+ case 6: return AppDetailActionId.Open;+ case 7: return AppDetailActionId.Cancel;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppDetailActionId.Teleport: return ordinalConverter.write(1, into);+ case AppDetailActionId.Pip: return ordinalConverter.write(2, into);+ case AppDetailActionId.Share: return ordinalConverter.write(3, into);+ case AppDetailActionId.Power: return ordinalConverter.write(4, into);+ case AppDetailActionId.Delete: return ordinalConverter.write(5, into);+ case AppDetailActionId.Open: return ordinalConverter.write(6, into);+ case AppDetailActionId.Cancel: return ordinalConverter.write(7, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppDetailAction = {/**- * Rename button.+ * What it does.*/- rename: string,+ id: AppDetailActionId,/**- * Revoke button.+ * Label.*/- revoke: string,+ label: string,/**- * The rename prompt's title.+ * SF Symbol (icon buttons).*/- renameTitle: string,+ symbol?: string,/**- * The rename prompt's confirming button.+ * Tooltip.*/- renameConfirm: string,+ help: string,/**- * Cancel.+ * Enabled.*/- cancel: string,+ enabled: boolean,/**- * Shown instead of the page while signed out.+ * Drawn as destructive.*/- signedOut: string,+ destructive: boolean,/**- * The unconfirmed-machines section's heading.+ * The prominent one.*/- newMachines: string,+ primary: boolean,/**- * Confirm button on a new machine.+ * Its action runs: a spinner in place of the icon.*/- confirmMachine: string+ busy: boolean}/**- * Generated factory for {@link AppDevicesLabels} record objects.+ * Generated factory for {@link AppDetailAction} record objects.*/-export const AppDevicesLabels = (() => {+export const AppDetailAction = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDevicesLabels, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDetailAction, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDevicesLabels>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDetailAction>,});})();-const FfiConverterTypeAppDevicesLabels = (() => {- type TypeName = AppDevicesLabels;+const FfiConverterTypeAppDetailAction = (() => {+ type TypeName = AppDetailAction;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- thisDevice: FfiConverterString.read(from),- devices: FfiConverterString.read(from),- recent: FfiConverterString.read(from),- recentEmpty: FfiConverterString.read(from),- lastSeen: FfiConverterString.read(from),- approve: FfiConverterString.read(from),- deny: FfiConverterString.read(from),- rename: FfiConverterString.read(from),- revoke: FfiConverterString.read(from),- renameTitle: FfiConverterString.read(from),- renameConfirm: FfiConverterString.read(from),- cancel: FfiConverterString.read(from),- signedOut: FfiConverterString.read(from),- newMachines: FfiConverterString.read(from),- confirmMachine: FfiConverterString.read(from)+ id: FfiConverterTypeAppDetailActionId.read(from),+ label: FfiConverterString.read(from),+ symbol: FfiConverterOptionalString.read(from),+ help: FfiConverterString.read(from),+ enabled: FfiConverterBool.read(from),+ destructive: FfiConverterBool.read(from),+ primary: FfiConverterBool.read(from),+ busy: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.thisDevice, into);- FfiConverterString.write(value.devices, into);- FfiConverterString.write(value.recent, into);- FfiConverterString.write(value.recentEmpty, into);- FfiConverterString.write(value.lastSeen, into);- FfiConverterString.write(value.approve, into);- FfiConverterString.write(value.deny, into);- FfiConverterString.write(value.rename, into);- FfiConverterString.write(value.revoke, into);- FfiConverterString.write(value.renameTitle, into);- FfiConverterString.write(value.renameConfirm, into);- FfiConverterString.write(value.cancel, into);- FfiConverterString.write(value.signedOut, into);- FfiConverterString.write(value.newMachines, into);- FfiConverterString.write(value.confirmMachine, into);+ FfiConverterTypeAppDetailActionId.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterOptionalString.write(value.symbol, into);+ FfiConverterString.write(value.help, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterBool.write(value.destructive, into);+ FfiConverterBool.write(value.primary, into);+ FfiConverterBool.write(value.busy, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.thisDevice) +- FfiConverterString.allocationSize(value.devices) +- FfiConverterString.allocationSize(value.recent) +- FfiConverterString.allocationSize(value.recentEmpty) +- FfiConverterString.allocationSize(value.lastSeen) +- FfiConverterString.allocationSize(value.approve) +- FfiConverterString.allocationSize(value.deny) +- FfiConverterString.allocationSize(value.rename) +- FfiConverterString.allocationSize(value.revoke) +- FfiConverterString.allocationSize(value.renameTitle) +- FfiConverterString.allocationSize(value.renameConfirm) +- FfiConverterString.allocationSize(value.cancel) +- FfiConverterString.allocationSize(value.signedOut) +- FfiConverterString.allocationSize(value.newMachines) +- FfiConverterString.allocationSize(value.confirmMachine);+ return FfiConverterTypeAppDetailActionId.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterOptionalString.allocationSize(value.symbol) ++ FfiConverterString.allocationSize(value.help) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterBool.allocationSize(value.destructive) ++ FfiConverterBool.allocationSize(value.primary) ++ FfiConverterBool.allocationSize(value.busy);}};return new FFIConverter();})();-export type AppThisDevice = {+export type AppDetailCopy = {/**- * State.+ * "Looking for this Space's windows…"*/- kind: AppEnrollmentKind,+ streamLoading: string,/**- * "Enrolled until", "Grace ends", "Needs enrollment", ...+ * "No open windows in this Space yet."*/- title: string,+ streamEmpty: string,/**- * The date after the title (Unix seconds); the shell formats it.+ * When the window list could not be read.*/- at?: bigint,+ streamFailed: string,/**- * The device's name, once registered.+ * When a filter hides every window.*/- name?: string,+ streamNoMatch: string,/**- * "Enroll…" when this device needs it.+ * "Looking for this Space's agents…"*/- actionLabel?: string+ agentsLoading: string,+ /**+ * "No agents have been started in this Space."+ */+ agentsEmpty: string,+ /**+ * When the runs could not be read (not the same as none).+ */+ agentsFailed: string,+ /**+ * When a filter hides every run.+ */+ agentsNoMatch: string,+ /**+ * The drop well's caption.+ */+ dropCaption: string,+ /**+ * "Send file…"+ */+ sendFile: string,+ /**+ * "Teleport an app…"+ */+ teleportApp: string,+ /**+ * The teleport icon ([`TELEPORT_SYMBOL`]).+ */+ teleportSymbol: string,+ /**+ * The teleport icon while a drag is over a drop target.+ */+ teleportSymbolActive: string}/**- * Generated factory for {@link AppThisDevice} record objects.+ * Generated factory for {@link AppDetailCopy} record objects.*/-export const AppThisDevice = (() => {+export const AppDetailCopy = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppThisDevice, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDetailCopy, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppThisDevice>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDetailCopy>,});})();-const FfiConverterTypeAppThisDevice = (() => {- type TypeName = AppThisDevice;+const FfiConverterTypeAppDetailCopy = (() => {+ type TypeName = AppDetailCopy;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeAppEnrollmentKind.read(from),- title: FfiConverterString.read(from),- at: FfiConverterOptionalUInt64.read(from),- name: FfiConverterOptionalString.read(from),- actionLabel: FfiConverterOptionalString.read(from)+ streamLoading: FfiConverterString.read(from),+ streamEmpty: FfiConverterString.read(from),+ streamFailed: FfiConverterString.read(from),+ streamNoMatch: FfiConverterString.read(from),+ agentsLoading: FfiConverterString.read(from),+ agentsEmpty: FfiConverterString.read(from),+ agentsFailed: FfiConverterString.read(from),+ agentsNoMatch: FfiConverterString.read(from),+ dropCaption: FfiConverterString.read(from),+ sendFile: FfiConverterString.read(from),+ teleportApp: FfiConverterString.read(from),+ teleportSymbol: FfiConverterString.read(from),+ teleportSymbolActive: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppEnrollmentKind.write(value.kind, into);- FfiConverterString.write(value.title, into);- FfiConverterOptionalUInt64.write(value.at, into);- FfiConverterOptionalString.write(value.name, into);- FfiConverterOptionalString.write(value.actionLabel, into);+ FfiConverterString.write(value.streamLoading, into);+ FfiConverterString.write(value.streamEmpty, into);+ FfiConverterString.write(value.streamFailed, into);+ FfiConverterString.write(value.streamNoMatch, into);+ FfiConverterString.write(value.agentsLoading, into);+ FfiConverterString.write(value.agentsEmpty, into);+ FfiConverterString.write(value.agentsFailed, into);+ FfiConverterString.write(value.agentsNoMatch, into);+ FfiConverterString.write(value.dropCaption, into);+ FfiConverterString.write(value.sendFile, into);+ FfiConverterString.write(value.teleportApp, into);+ FfiConverterString.write(value.teleportSymbol, into);+ FfiConverterString.write(value.teleportSymbolActive, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppEnrollmentKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.title) +- FfiConverterOptionalUInt64.allocationSize(value.at) +- FfiConverterOptionalString.allocationSize(value.name) +- FfiConverterOptionalString.allocationSize(value.actionLabel);+ return FfiConverterString.allocationSize(value.streamLoading) ++ FfiConverterString.allocationSize(value.streamEmpty) ++ FfiConverterString.allocationSize(value.streamFailed) ++ FfiConverterString.allocationSize(value.streamNoMatch) ++ FfiConverterString.allocationSize(value.agentsLoading) ++ FfiConverterString.allocationSize(value.agentsEmpty) ++ FfiConverterString.allocationSize(value.agentsFailed) ++ FfiConverterString.allocationSize(value.agentsNoMatch) ++ FfiConverterString.allocationSize(value.dropCaption) ++ FfiConverterString.allocationSize(value.sendFile) ++ FfiConverterString.allocationSize(value.teleportApp) ++ FfiConverterString.allocationSize(value.teleportSymbol) ++ FfiConverterString.allocationSize(value.teleportSymbolActive);}};return new FFIConverter();})();-export type AppUnconfirmedMachine = {+export enum AppBannerTone {/**- * Machine id (the native side's `confirm_machine` call takes this).+ * Informational.*/- id: string,+ Info = "info",/**- * Display name, or the id when it has none yet.+ * Needs the user soon.*/- title: string,+ Warning = "warning",/**- * Asked before confirming (both shells show it as a native alert).+ * Blocks relay access now.*/- confirm: AppDeviceConfirm+ Critical = "critical"}-/**- * Generated factory for {@link AppUnconfirmedMachine} record objects.- */-export const AppUnconfirmedMachine = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppUnconfirmedMachine, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppUnconfirmedMachine>,- });-})();--const FfiConverterTypeAppUnconfirmedMachine = (() => {- type TypeName = AppUnconfirmedMachine;+const FfiConverterTypeAppBannerTone = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppBannerTone;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- confirm: FfiConverterTypeAppDeviceConfirm.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppBannerTone.Info;+ case 2: return AppBannerTone.Warning;+ case 3: return AppBannerTone.Critical;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);- FfiConverterTypeAppDeviceConfirm.write(value.confirm, into);+ switch (value) {+ case AppBannerTone.Info: return ordinalConverter.write(1, into);+ case AppBannerTone.Warning: return ordinalConverter.write(2, into);+ case AppBannerTone.Critical: return ordinalConverter.write(3, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterTypeAppDeviceConfirm.allocationSize(value.confirm);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppDevicesView = {- /**- * Banner, if something needs the user.- */- banner?: AppDeviceBanner,+export enum AppDeviceAction {/**- * This device is enrolled (relay machines are reachable).+ * Enroll this device (the enroll sheet).*/- enrolled: boolean,+ Enroll = "enroll",/**- * Device rows, this device first.+ * Approve another device (after presence).*/- rows: Array<AppDeviceRow>,+ Approve = "approve",/**- * Devices this device can approve.+ * Rename a device.*/- approvals: Array<AppApprovalPrompt>,+ Rename = "rename",/**- * Access log, newest first.+ * Revoke a device (after its confirmation).*/- activity: Array<AppActivityRow>,+ Revoke = "revoke"+}++const FfiConverterTypeAppDeviceAction = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDeviceAction;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppDeviceAction.Enroll;+ case 2: return AppDeviceAction.Approve;+ case 3: return AppDeviceAction.Rename;+ case 4: return AppDeviceAction.Revoke;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppDeviceAction.Enroll: return ordinalConverter.write(1, into);+ case AppDeviceAction.Approve: return ordinalConverter.write(2, into);+ case AppDeviceAction.Rename: return ordinalConverter.write(3, into);+ case AppDeviceAction.Revoke: return ordinalConverter.write(4, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppDeviceBanner = {/**- * This device's enrollment.+ * Tone.*/- thisDevice: AppThisDevice,+ tone: AppBannerTone,/**- * "Recent access": which device (or account) opened which machine,- * newest first, at most [`RECENT_ACCESS_LIMIT`].+ * Text.*/- recent: Array<AppActivityRow>,+ text: string,/**- * Machines registered without an enrolled device's proof, still- * waiting to be confirmed (S5); empty most of the time.+ * Button, if any.*/- unconfirmedMachines: Array<AppUnconfirmedMachine>,+ action?: AppDeviceAction,/**- * Words.+ * The button's label.*/- labels: AppDevicesLabels+ actionLabel?: string}/**- * Generated factory for {@link AppDevicesView} record objects.+ * Generated factory for {@link AppDeviceBanner} record objects.*/-export const AppDevicesView = (() => {+export const AppDeviceBanner = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDevicesView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDeviceBanner, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDevicesView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDeviceBanner>,});})();-const FfiConverterTypeAppDevicesView = (() => {- type TypeName = AppDevicesView;+const FfiConverterTypeAppDeviceBanner = (() => {+ type TypeName = AppDeviceBanner;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- banner: FfiConverterOptionalTypeAppDeviceBanner.read(from),- enrolled: FfiConverterBool.read(from),- rows: FfiConverterSequenceTypeAppDeviceRow.read(from),- approvals: FfiConverterSequenceTypeAppApprovalPrompt.read(from),- activity: FfiConverterSequenceTypeAppActivityRow.read(from),- thisDevice: FfiConverterTypeAppThisDevice.read(from),- recent: FfiConverterSequenceTypeAppActivityRow.read(from),- unconfirmedMachines: FfiConverterSequenceTypeAppUnconfirmedMachine.read(from),- labels: FfiConverterTypeAppDevicesLabels.read(from)+ tone: FfiConverterTypeAppBannerTone.read(from),+ text: FfiConverterString.read(from),+ action: FfiConverterOptionalTypeAppDeviceAction.read(from),+ actionLabel: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalTypeAppDeviceBanner.write(value.banner, into);- FfiConverterBool.write(value.enrolled, into);- FfiConverterSequenceTypeAppDeviceRow.write(value.rows, into);- FfiConverterSequenceTypeAppApprovalPrompt.write(value.approvals, into);- FfiConverterSequenceTypeAppActivityRow.write(value.activity, into);- FfiConverterTypeAppThisDevice.write(value.thisDevice, into);- FfiConverterSequenceTypeAppActivityRow.write(value.recent, into);- FfiConverterSequenceTypeAppUnconfirmedMachine.write(value.unconfirmedMachines, into);- FfiConverterTypeAppDevicesLabels.write(value.labels, into);+ FfiConverterTypeAppBannerTone.write(value.tone, into);+ FfiConverterString.write(value.text, into);+ FfiConverterOptionalTypeAppDeviceAction.write(value.action, into);+ FfiConverterOptionalString.write(value.actionLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalTypeAppDeviceBanner.allocationSize(value.banner) +- FfiConverterBool.allocationSize(value.enrolled) +- FfiConverterSequenceTypeAppDeviceRow.allocationSize(value.rows) +- FfiConverterSequenceTypeAppApprovalPrompt.allocationSize(value.approvals) +- FfiConverterSequenceTypeAppActivityRow.allocationSize(value.activity) +- FfiConverterTypeAppThisDevice.allocationSize(value.thisDevice) +- FfiConverterSequenceTypeAppActivityRow.allocationSize(value.recent) +- FfiConverterSequenceTypeAppUnconfirmedMachine.allocationSize(value.unconfirmedMachines) +- FfiConverterTypeAppDevicesLabels.allocationSize(value.labels);+ return FfiConverterTypeAppBannerTone.allocationSize(value.tone) ++ FfiConverterString.allocationSize(value.text) ++ FfiConverterOptionalTypeAppDeviceAction.allocationSize(value.action) ++ FfiConverterOptionalString.allocationSize(value.actionLabel);}};return new FFIConverter();})();-export type AppLogicalRect = {- x: number,- y: number,- width: number,- height: number+export type AppDeviceConfirm = {+ /**+ * The question.+ */+ title: string,+ /**+ * What happens.+ */+ message: string,+ /**+ * The confirming button.+ */+ confirmLabel: string,+ /**+ * The other button.+ */+ cancelLabel: string}/**- * Generated factory for {@link AppLogicalRect} record objects.+ * Generated factory for {@link AppDeviceConfirm} record objects.*/-export const AppLogicalRect = (() => {+export const AppDeviceConfirm = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppLogicalRect, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDeviceConfirm, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppLogicalRect>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDeviceConfirm>,});})();-const FfiConverterTypeAppLogicalRect = (() => {- type TypeName = AppLogicalRect;+const FfiConverterTypeAppDeviceConfirm = (() => {+ type TypeName = AppDeviceConfirm;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- x: FfiConverterFloat64.read(from),- y: FfiConverterFloat64.read(from),- width: FfiConverterFloat64.read(from),- height: FfiConverterFloat64.read(from)+ title: FfiConverterString.read(from),+ message: FfiConverterString.read(from),+ confirmLabel: FfiConverterString.read(from),+ cancelLabel: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.x, into);- FfiConverterFloat64.write(value.y, into);- FfiConverterFloat64.write(value.width, into);- FfiConverterFloat64.write(value.height, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.message, into);+ FfiConverterString.write(value.confirmLabel, into);+ FfiConverterString.write(value.cancelLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.x) +- FfiConverterFloat64.allocationSize(value.y) +- FfiConverterFloat64.allocationSize(value.width) +- FfiConverterFloat64.allocationSize(value.height);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.message) ++ FfiConverterString.allocationSize(value.confirmLabel) ++ FfiConverterString.allocationSize(value.cancelLabel);}};return new FFIConverter();})();-export type AppDragDisplay = {+export type AppDeviceInput = {/**- * The display.+ * `dev_…`.*/- frame: AppLogicalRect,+ id: string,/**- * The notch (or, without one, the menu-bar-high stand-in).+ * Display name.*/- notch: AppLogicalRect,+ name: string,/**- * The "Teleport to Cua" box: the dwell area.+ * `pending`, `enrolled`, `expired` or `revoked`.*/- prompt: AppLogicalRect,+ state: string,/**- * The expanded panel: the drag stays expanded inside it.+ * Re-verification due at (Unix seconds).*/- expanded: AppLogicalRect+ enrolledUntil?: bigint,+ /**+ * Last session (Unix seconds).+ */+ lastSeen?: bigint,+ /**+ * This device.+ */+ current: boolean,+ /**+ * Operating system the device reported (`macos`, `windows`, `linux`).+ */+ platform?: string}/**- * Generated factory for {@link AppDragDisplay} record objects.+ * Generated factory for {@link AppDeviceInput} record objects.*/-export const AppDragDisplay = (() => {+export const AppDeviceInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDragDisplay, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDeviceInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDragDisplay>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDeviceInput>,});})();-const FfiConverterTypeAppDragDisplay = (() => {- type TypeName = AppDragDisplay;+const FfiConverterTypeAppDeviceInput = (() => {+ type TypeName = AppDeviceInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- frame: FfiConverterTypeAppLogicalRect.read(from),- notch: FfiConverterTypeAppLogicalRect.read(from),- prompt: FfiConverterTypeAppLogicalRect.read(from),- expanded: FfiConverterTypeAppLogicalRect.read(from)+ id: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ state: FfiConverterString.read(from),+ enrolledUntil: FfiConverterOptionalUInt64.read(from),+ lastSeen: FfiConverterOptionalUInt64.read(from),+ current: FfiConverterBool.read(from),+ platform: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLogicalRect.write(value.frame, into);- FfiConverterTypeAppLogicalRect.write(value.notch, into);- FfiConverterTypeAppLogicalRect.write(value.prompt, into);- FfiConverterTypeAppLogicalRect.write(value.expanded, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.state, into);+ FfiConverterOptionalUInt64.write(value.enrolledUntil, into);+ FfiConverterOptionalUInt64.write(value.lastSeen, into);+ FfiConverterBool.write(value.current, into);+ FfiConverterOptionalString.write(value.platform, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLogicalRect.allocationSize(value.frame) +- FfiConverterTypeAppLogicalRect.allocationSize(value.notch) +- FfiConverterTypeAppLogicalRect.allocationSize(value.prompt) +- FfiConverterTypeAppLogicalRect.allocationSize(value.expanded);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.state) ++ FfiConverterOptionalUInt64.allocationSize(value.enrolledUntil) ++ FfiConverterOptionalUInt64.allocationSize(value.lastSeen) ++ FfiConverterBool.allocationSize(value.current) ++ FfiConverterOptionalString.allocationSize(value.platform);}};return new FFIConverter();})();-export enum AppDragOverlayPhase {+export type AppDeviceRow = {/**- * Nothing showing.+ * Device id.*/- Idle = "idle",+ id: string,/**- * The "Teleport to Cua" box.+ * Name (`(this device)` suffix for the current one).*/- Prompt = "prompt",+ title: string,/**- * The Space tiles as drop targets.+ * State in words.*/- Selector = "selector"-}--const FfiConverterTypeAppDragOverlayPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppDragOverlayPhase;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppDragOverlayPhase.Idle;- case 2: return AppDragOverlayPhase.Prompt;- case 3: return AppDragOverlayPhase.Selector;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppDragOverlayPhase.Idle: return ordinalConverter.write(1, into);- case AppDragOverlayPhase.Prompt: return ordinalConverter.write(2, into);- case AppDragOverlayPhase.Selector: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppDragOverlayState = {+ subtitle: string,/**- * Phase.+ * Buttons.*/- phase: AppDragOverlayPhase,+ actions: Array<AppDeviceAction>,/**- * CoreGraphics id of the dragged window.+ * The name as stored (Rename starts from it).*/- windowId?: number,+ name: string,/**- * The dragged app's name.+ * Operating system in words (`macOS`), empty when unknown.*/- appName?: string,+ platform: string,/**- * The tile under the cursor (selector only).+ * Platform and state on one line.*/- targetSpaceId?: string,+ detail: string,/**- * The captured ghost (a data URL or a shell-local image key).+ * Last session (Unix seconds); the shell says it relative to now.*/- ghost?: string+ lastSeen?: bigint,+ /**+ * This device.+ */+ current: boolean,+ /**+ * Asked before Revoke.+ */+ revokeConfirm?: AppDeviceConfirm}/**- * Generated factory for {@link AppDragOverlayState} record objects.+ * Generated factory for {@link AppDeviceRow} record objects.*/-export const AppDragOverlayState = (() => {+export const AppDeviceRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDragOverlayState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDeviceRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDragOverlayState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDeviceRow>,});})();-const FfiConverterTypeAppDragOverlayState = (() => {- type TypeName = AppDragOverlayState;+const FfiConverterTypeAppDeviceRow = (() => {+ type TypeName = AppDeviceRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- phase: FfiConverterTypeAppDragOverlayPhase.read(from),- windowId: FfiConverterOptionalUInt32.read(from),- appName: FfiConverterOptionalString.read(from),- targetSpaceId: FfiConverterOptionalString.read(from),- ghost: FfiConverterOptionalString.read(from)+ id: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ subtitle: FfiConverterString.read(from),+ actions: FfiConverterSequenceTypeAppDeviceAction.read(from),+ name: FfiConverterString.read(from),+ platform: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ lastSeen: FfiConverterOptionalUInt64.read(from),+ current: FfiConverterBool.read(from),+ revokeConfirm: FfiConverterOptionalTypeAppDeviceConfirm.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppDragOverlayPhase.write(value.phase, into);- FfiConverterOptionalUInt32.write(value.windowId, into);- FfiConverterOptionalString.write(value.appName, into);- FfiConverterOptionalString.write(value.targetSpaceId, into);- FfiConverterOptionalString.write(value.ghost, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.subtitle, into);+ FfiConverterSequenceTypeAppDeviceAction.write(value.actions, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.platform, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterOptionalUInt64.write(value.lastSeen, into);+ FfiConverterBool.write(value.current, into);+ FfiConverterOptionalTypeAppDeviceConfirm.write(value.revokeConfirm, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppDragOverlayPhase.allocationSize(value.phase) +- FfiConverterOptionalUInt32.allocationSize(value.windowId) +- FfiConverterOptionalString.allocationSize(value.appName) +- FfiConverterOptionalString.allocationSize(value.targetSpaceId) +- FfiConverterOptionalString.allocationSize(value.ghost);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.subtitle) ++ FfiConverterSequenceTypeAppDeviceAction.allocationSize(value.actions) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.platform) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterOptionalUInt64.allocationSize(value.lastSeen) ++ FfiConverterBool.allocationSize(value.current) ++ FfiConverterOptionalTypeAppDeviceConfirm.allocationSize(value.revokeConfirm);}};return new FFIConverter();})();--// Enum: AppDragOverlayEffect-export enum AppDragOverlayEffect_Tags {- Capture = "Capture",- Commit = "Commit"-}-export const AppDragOverlayEffect = (() => {-- type Capture__interface = {- tag: AppDragOverlayEffect_Tags.Capture;- inner:-Readonly<{windowId?: number}>- };+export type AppMachineInput = {/**- * Capture the ghost (needs Screen Recording; none is fine).+ * Machine id.*/- class Capture_ extends UniffiEnum implements Capture__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEffect";- readonly tag = AppDragOverlayEffect_Tags.Capture;- readonly inner:-Readonly<{windowId?: number}>;- constructor(-inner: {windowId?: number }) {- super("AppDragOverlayEffect", "Capture");-- this.inner = Object.freeze(inner);- }- static new(-inner: {windowId?: number }): Capture_ {- return new Capture_(inner);- }-- static instanceOf(obj: any): obj is Capture_ {- return obj.tag === AppDragOverlayEffect_Tags.Capture;- }-- }-- type Commit__interface = {- tag: AppDragOverlayEffect_Tags.Commit;- inner:-Readonly<{spaceId: string}>- };+ id: string,/**- * Teleport to this Space.+ * Display name.*/- class Commit_ extends UniffiEnum implements Commit__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEffect";- readonly tag = AppDragOverlayEffect_Tags.Commit;- readonly inner:-Readonly<{spaceId: string}>;- constructor(-inner: {spaceId: string }) {- super("AppDragOverlayEffect", "Commit");-- this.inner = Object.freeze(inner);- }- static new(-inner: {spaceId: string }): Commit_ {- return new Commit_(inner);- }-- static instanceOf(obj: any): obj is Commit_ {- return obj.tag === AppDragOverlayEffect_Tags.Commit;- }-- }-- function instanceOf(obj: any): obj is AppDragOverlayEffect {- return obj[uniffiTypeNameSymbol] === "AppDragOverlayEffect";- }+ name: string,+ /**+ * Registered with an enrolled device's proof, or confirmed since+ * (S5). `true` from a relay that predates the check.+ */+ confirmed: boolean+}+/**+ * Generated factory for {@link AppMachineInput} record objects.+ */+export const AppMachineInput = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppMachineInput, ReturnType<typeof defaults>>(defaults);+ })();return Object.freeze({- instanceOf,- Capture: Capture_,- Commit: Commit_+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppMachineInput>,});-})();-export type AppDragOverlayEffect = InstanceType<- typeof AppDragOverlayEffect['Capture' | 'Commit']->;-// FfiConverter for enum AppDragOverlayEffect-const FfiConverterTypeAppDragOverlayEffect = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppDragOverlayEffect;+const FfiConverterTypeAppMachineInput = (() => {+ type TypeName = AppMachineInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppDragOverlayEffect.Capture({windowId: FfiConverterOptionalUInt32.read(from) });- case 2: return new AppDragOverlayEffect.Commit({spaceId: FfiConverterString.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ id: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ confirmed: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppDragOverlayEffect_Tags.Capture: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterOptionalUInt32.write(inner.windowId, into);- return;- }- case AppDragOverlayEffect_Tags.Commit: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.spaceId, into);- return;- }- default:- // Throwing from here means that AppDragOverlayEffect_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.name, into);+ FfiConverterBool.write(value.confirmed, into);}allocationSize(value: TypeName): number {- switch (value.tag) {- case AppDragOverlayEffect_Tags.Capture: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterOptionalUInt32.allocationSize(inner.windowId);- return size;- }- case AppDragOverlayEffect_Tags.Commit: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.spaceId);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterBool.allocationSize(value.confirmed);+}- }+ };return new FFIConverter();})();-export type AppDragOverlayTransition = {+export type AppDevicesInput = {/**- * New state.+ * The account's devices.*/- state: AppDragOverlayState,+ devices: Array<AppDeviceInput>,/**- * Effects.+ * The account's audit events, newest last.*/- effects: Array<AppDragOverlayEffect>+ audit: Array<AppAuditInput>,+ /**+ * This device's id when it has a key (it may not be registered yet).+ */+ localDeviceId?: string,+ /**+ * The one-time code this device shows while it waits for approval.+ */+ pendingCode?: string,+ /**+ * When the relay stops letting unenrolled devices through.+ */+ enforceAfter?: bigint,+ /**+ * Machine ids to display names.+ */+ machineNames: Map<string, string>,+ /**+ * The account's relay machines, for the "New machine" confirm badge+ * (S5). Empty on a relay that predates it, or when this device cannot+ * list them, same as `machine_names`.+ */+ machines: Array<AppMachineInput>}/**- * Generated factory for {@link AppDragOverlayTransition} record objects.+ * Generated factory for {@link AppDevicesInput} record objects.*/-export const AppDragOverlayTransition = (() => {+export const AppDevicesInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDragOverlayTransition, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDevicesInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDragOverlayTransition>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDevicesInput>,});})();-const FfiConverterTypeAppDragOverlayTransition = (() => {- type TypeName = AppDragOverlayTransition;+const FfiConverterTypeAppDevicesInput = (() => {+ type TypeName = AppDevicesInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- state: FfiConverterTypeAppDragOverlayState.read(from),- effects: FfiConverterSequenceTypeAppDragOverlayEffect.read(from)+ devices: FfiConverterSequenceTypeAppDeviceInput.read(from),+ audit: FfiConverterSequenceTypeAppAuditInput.read(from),+ localDeviceId: FfiConverterOptionalString.read(from),+ pendingCode: FfiConverterOptionalString.read(from),+ enforceAfter: FfiConverterOptionalUInt64.read(from),+ machineNames: FfiConverterMapStringString.read(from),+ machines: FfiConverterSequenceTypeAppMachineInput.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppDragOverlayState.write(value.state, into);- FfiConverterSequenceTypeAppDragOverlayEffect.write(value.effects, into);+ FfiConverterSequenceTypeAppDeviceInput.write(value.devices, into);+ FfiConverterSequenceTypeAppAuditInput.write(value.audit, into);+ FfiConverterOptionalString.write(value.localDeviceId, into);+ FfiConverterOptionalString.write(value.pendingCode, into);+ FfiConverterOptionalUInt64.write(value.enforceAfter, into);+ FfiConverterMapStringString.write(value.machineNames, into);+ FfiConverterSequenceTypeAppMachineInput.write(value.machines, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppDragOverlayState.allocationSize(value.state) +- FfiConverterSequenceTypeAppDragOverlayEffect.allocationSize(value.effects);+ return FfiConverterSequenceTypeAppDeviceInput.allocationSize(value.devices) ++ FfiConverterSequenceTypeAppAuditInput.allocationSize(value.audit) ++ FfiConverterOptionalString.allocationSize(value.localDeviceId) ++ FfiConverterOptionalString.allocationSize(value.pendingCode) ++ FfiConverterOptionalUInt64.allocationSize(value.enforceAfter) ++ FfiConverterMapStringString.allocationSize(value.machineNames) ++ FfiConverterSequenceTypeAppMachineInput.allocationSize(value.machines);}};return new FFIConverter();})();-export enum AppDragKind {+export type AppDevicesLabels = {/**- * Not known yet (no frames, or they have not changed enough).+ * Page title.*/- Pending = "pending",+ title: string,/**- * The window follows the cursor at its size.+ * This device's section.*/- Move = "move",+ thisDevice: string,/**- * An edge or a corner: the size changes.+ * The account's devices.*/- Resize = "resize"-}--const FfiConverterTypeAppDragKind = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppDragKind;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppDragKind.Pending;- case 2: return AppDragKind.Move;- case 3: return AppDragKind.Resize;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppDragKind.Pending: return ordinalConverter.write(1, into);- case AppDragKind.Move: return ordinalConverter.write(2, into);- case AppDragKind.Resize: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum AppTriggerPhase {+ devices: string,/**- * Nothing (no drag, a resize, or not known yet).+ * The access log's section.*/- Hidden = "hidden",+ recent: string,/**- * The "Teleport to Cua" box.+ * When the access log is empty.*/- Prompt = "prompt",+ recentEmpty: string,/**- * The Space tiles as drop targets.+ * "Last seen" before a relative time.*/- Expanded = "expanded"-}--const FfiConverterTypeAppTriggerPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppTriggerPhase;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppTriggerPhase.Hidden;- case 2: return AppTriggerPhase.Prompt;- case 3: return AppTriggerPhase.Expanded;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppTriggerPhase.Hidden: return ordinalConverter.write(1, into);- case AppTriggerPhase.Prompt: return ordinalConverter.write(2, into);- case AppTriggerPhase.Expanded: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppStillAnchor = {+ lastSeen: string,/**- * X.+ * Approve button (the row's, and the sheet's for a new device).*/- x: number,+ approve: string,/**- * Y.+ * The row's Deny: revokes a still-pending device in one click, or+ * (a device due for re-verification) only dismisses it, like the+ * sheet's Deny and Not Now.*/- y: number,+ deny: string,/**- * When (ms, the shell's monotonic clock).+ * Rename button.*/- sinceMs: bigint+ rename: string,+ /**+ * Revoke button.+ */+ revoke: string,+ /**+ * The rename prompt's title.+ */+ renameTitle: string,+ /**+ * The rename prompt's confirming button.+ */+ renameConfirm: string,+ /**+ * Cancel.+ */+ cancel: string,+ /**+ * Shown instead of the page while signed out.+ */+ signedOut: string,+ /**+ * The unconfirmed-machines section's heading.+ */+ newMachines: string,+ /**+ * Confirm button on a new machine.+ */+ confirmMachine: string}/**- * Generated factory for {@link AppStillAnchor} record objects.+ * Generated factory for {@link AppDevicesLabels} record objects.*/-export const AppStillAnchor = (() => {+export const AppDevicesLabels = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStillAnchor, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDevicesLabels, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStillAnchor>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDevicesLabels>,});})();-const FfiConverterTypeAppStillAnchor = (() => {- type TypeName = AppStillAnchor;+const FfiConverterTypeAppDevicesLabels = (() => {+ type TypeName = AppDevicesLabels;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- x: FfiConverterFloat64.read(from),- y: FfiConverterFloat64.read(from),- sinceMs: FfiConverterUInt64.read(from)+ title: FfiConverterString.read(from),+ thisDevice: FfiConverterString.read(from),+ devices: FfiConverterString.read(from),+ recent: FfiConverterString.read(from),+ recentEmpty: FfiConverterString.read(from),+ lastSeen: FfiConverterString.read(from),+ approve: FfiConverterString.read(from),+ deny: FfiConverterString.read(from),+ rename: FfiConverterString.read(from),+ revoke: FfiConverterString.read(from),+ renameTitle: FfiConverterString.read(from),+ renameConfirm: FfiConverterString.read(from),+ cancel: FfiConverterString.read(from),+ signedOut: FfiConverterString.read(from),+ newMachines: FfiConverterString.read(from),+ confirmMachine: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.x, into);- FfiConverterFloat64.write(value.y, into);- FfiConverterUInt64.write(value.sinceMs, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.thisDevice, into);+ FfiConverterString.write(value.devices, into);+ FfiConverterString.write(value.recent, into);+ FfiConverterString.write(value.recentEmpty, into);+ FfiConverterString.write(value.lastSeen, into);+ FfiConverterString.write(value.approve, into);+ FfiConverterString.write(value.deny, into);+ FfiConverterString.write(value.rename, into);+ FfiConverterString.write(value.revoke, into);+ FfiConverterString.write(value.renameTitle, into);+ FfiConverterString.write(value.renameConfirm, into);+ FfiConverterString.write(value.cancel, into);+ FfiConverterString.write(value.signedOut, into);+ FfiConverterString.write(value.newMachines, into);+ FfiConverterString.write(value.confirmMachine, into);}allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.x) +- FfiConverterFloat64.allocationSize(value.y) +- FfiConverterUInt64.allocationSize(value.sinceMs);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.thisDevice) ++ FfiConverterString.allocationSize(value.devices) ++ FfiConverterString.allocationSize(value.recent) ++ FfiConverterString.allocationSize(value.recentEmpty) ++ FfiConverterString.allocationSize(value.lastSeen) ++ FfiConverterString.allocationSize(value.approve) ++ FfiConverterString.allocationSize(value.deny) ++ FfiConverterString.allocationSize(value.rename) ++ FfiConverterString.allocationSize(value.revoke) ++ FfiConverterString.allocationSize(value.renameTitle) ++ FfiConverterString.allocationSize(value.renameConfirm) ++ FfiConverterString.allocationSize(value.cancel) ++ FfiConverterString.allocationSize(value.signedOut) ++ FfiConverterString.allocationSize(value.newMachines) ++ FfiConverterString.allocationSize(value.confirmMachine);}};return new FFIConverter();})();-export type AppDragTriggerState = {- /**- * A drag is in flight.- */- active: boolean,- /**- * Move or resize.- */- kind: AppDragKind,- /**- * What shows.- */- phase: AppTriggerPhase,+export type AppThisDevice = {/**- * The dragged window.+ * State.*/- windowId?: number,+ kind: AppEnrollmentKind,/**- * Its app's name.+ * "Enrolled until", "Grace ends", "Needs enrollment", ...*/- appName?: string,+ title: string,/**- * The window's frame at mouse down.+ * The date after the title (Unix seconds); the shell formats it.*/- startFrame?: AppLogicalRect,+ at?: bigint,/**- * The display (index into the shell's list) the panel expanded on.+ * The device's name, once registered.*/- display?: number,+ name?: string,/**- * Where the cursor rests, while it rests in the box.+ * "Enroll…" when this device needs it.*/- still?: AppStillAnchor+ actionLabel?: string}/**- * Generated factory for {@link AppDragTriggerState} record objects.+ * Generated factory for {@link AppThisDevice} record objects.*/-export const AppDragTriggerState = (() => {+export const AppThisDevice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDragTriggerState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppThisDevice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDragTriggerState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppThisDevice>,});})();-const FfiConverterTypeAppDragTriggerState = (() => {- type TypeName = AppDragTriggerState;+const FfiConverterTypeAppThisDevice = (() => {+ type TypeName = AppThisDevice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- active: FfiConverterBool.read(from),- kind: FfiConverterTypeAppDragKind.read(from),- phase: FfiConverterTypeAppTriggerPhase.read(from),- windowId: FfiConverterOptionalUInt32.read(from),- appName: FfiConverterOptionalString.read(from),- startFrame: FfiConverterOptionalTypeAppLogicalRect.read(from),- display: FfiConverterOptionalUInt32.read(from),- still: FfiConverterOptionalTypeAppStillAnchor.read(from)+ kind: FfiConverterTypeAppEnrollmentKind.read(from),+ title: FfiConverterString.read(from),+ at: FfiConverterOptionalUInt64.read(from),+ name: FfiConverterOptionalString.read(from),+ actionLabel: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.active, into);- FfiConverterTypeAppDragKind.write(value.kind, into);- FfiConverterTypeAppTriggerPhase.write(value.phase, into);- FfiConverterOptionalUInt32.write(value.windowId, into);- FfiConverterOptionalString.write(value.appName, into);- FfiConverterOptionalTypeAppLogicalRect.write(value.startFrame, into);- FfiConverterOptionalUInt32.write(value.display, into);- FfiConverterOptionalTypeAppStillAnchor.write(value.still, into);+ FfiConverterTypeAppEnrollmentKind.write(value.kind, into);+ FfiConverterString.write(value.title, into);+ FfiConverterOptionalUInt64.write(value.at, into);+ FfiConverterOptionalString.write(value.name, into);+ FfiConverterOptionalString.write(value.actionLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.active) +- FfiConverterTypeAppDragKind.allocationSize(value.kind) +- FfiConverterTypeAppTriggerPhase.allocationSize(value.phase) +- FfiConverterOptionalUInt32.allocationSize(value.windowId) +- FfiConverterOptionalString.allocationSize(value.appName) +- FfiConverterOptionalTypeAppLogicalRect.allocationSize(value.startFrame) +- FfiConverterOptionalUInt32.allocationSize(value.display) +- FfiConverterOptionalTypeAppStillAnchor.allocationSize(value.still);+ return FfiConverterTypeAppEnrollmentKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterOptionalUInt64.allocationSize(value.at) ++ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterOptionalString.allocationSize(value.actionLabel);}};return new FFIConverter();})();--// Enum: AppDragOverlayEvent-export enum AppDragOverlayEvent_Tags {- Start = "Start",- EnterNotch = "EnterNotch",- LeaveNotch = "LeaveNotch",- Over = "Over",- Out = "Out",- GhostReady = "GhostReady",- Drop = "Drop",- Cancel = "Cancel"+export type AppUnconfirmedMachine = {+ /**+ * Machine id (the native side's `confirm_machine` call takes this).+ */+ id: string,+ /**+ * Display name, or the id when it has none yet.+ */+ title: string,+ /**+ * Asked before confirming (both shells show it as a native alert).+ */+ confirm: AppDeviceConfirm}-export const AppDragOverlayEvent = (() => {- type Start__interface = {- tag: AppDragOverlayEvent_Tags.Start;- inner:-Readonly<{windowId?: number; appName?: string}>+/**+ * Generated factory for {@link AppUnconfirmedMachine} record objects.+ */+export const AppUnconfirmedMachine = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppUnconfirmedMachine, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppUnconfirmedMachine>,+ });+})();++const FfiConverterTypeAppUnconfirmedMachine = (() => {+ type TypeName = AppUnconfirmedMachine;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ id: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ confirm: FfiConverterTypeAppDeviceConfirm.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.title, into);+ FfiConverterTypeAppDeviceConfirm.write(value.confirm, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterTypeAppDeviceConfirm.allocationSize(value.confirm);++ }};+ return new FFIConverter();+})();++export type AppDevicesView = {/**- * A supported window drag began.+ * Banner, if something needs the user.*/- class Start_ extends UniffiEnum implements Start__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.Start;- readonly inner:-Readonly<{windowId?: number; appName?: string}>;- constructor(-inner: {windowId?: number; appName?: string }) {- super("AppDragOverlayEvent", "Start");+ banner?: AppDeviceBanner,+ /**+ * This device is enrolled (relay machines are reachable).+ */+ enrolled: boolean,+ /**+ * Device rows, this device first.+ */+ rows: Array<AppDeviceRow>,+ /**+ * Devices this device can approve.+ */+ approvals: Array<AppApprovalPrompt>,+ /**+ * Access log, newest first.+ */+ activity: Array<AppActivityRow>,+ /**+ * This device's enrollment.+ */+ thisDevice: AppThisDevice,+ /**+ * "Recent access": which device (or account) opened which machine,+ * newest first, at most [`RECENT_ACCESS_LIMIT`].+ */+ recent: Array<AppActivityRow>,+ /**+ * Machines registered without an enrolled device's proof, still+ * waiting to be confirmed (S5); empty most of the time.+ */+ unconfirmedMachines: Array<AppUnconfirmedMachine>,+ /**+ * Words.+ */+ labels: AppDevicesLabels+}- this.inner = Object.freeze(inner);+/**+ * Generated factory for {@link AppDevicesView} record objects.+ */+export const AppDevicesView = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppDevicesView, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppDevicesView>,+ });+})();++const FfiConverterTypeAppDevicesView = (() => {+ type TypeName = AppDevicesView;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ banner: FfiConverterOptionalTypeAppDeviceBanner.read(from),+ enrolled: FfiConverterBool.read(from),+ rows: FfiConverterSequenceTypeAppDeviceRow.read(from),+ approvals: FfiConverterSequenceTypeAppApprovalPrompt.read(from),+ activity: FfiConverterSequenceTypeAppActivityRow.read(from),+ thisDevice: FfiConverterTypeAppThisDevice.read(from),+ recent: FfiConverterSequenceTypeAppActivityRow.read(from),+ unconfirmedMachines: FfiConverterSequenceTypeAppUnconfirmedMachine.read(from),+ labels: FfiConverterTypeAppDevicesLabels.read(from)+ };}- static new(-inner: {windowId?: number; appName?: string }): Start_ {- return new Start_(inner);+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterOptionalTypeAppDeviceBanner.write(value.banner, into);+ FfiConverterBool.write(value.enrolled, into);+ FfiConverterSequenceTypeAppDeviceRow.write(value.rows, into);+ FfiConverterSequenceTypeAppApprovalPrompt.write(value.approvals, into);+ FfiConverterSequenceTypeAppActivityRow.write(value.activity, into);+ FfiConverterTypeAppThisDevice.write(value.thisDevice, into);+ FfiConverterSequenceTypeAppActivityRow.write(value.recent, into);+ FfiConverterSequenceTypeAppUnconfirmedMachine.write(value.unconfirmedMachines, into);+ FfiConverterTypeAppDevicesLabels.write(value.labels, into);}+ allocationSize(value: TypeName): number {+ return FfiConverterOptionalTypeAppDeviceBanner.allocationSize(value.banner) ++ FfiConverterBool.allocationSize(value.enrolled) ++ FfiConverterSequenceTypeAppDeviceRow.allocationSize(value.rows) ++ FfiConverterSequenceTypeAppApprovalPrompt.allocationSize(value.approvals) ++ FfiConverterSequenceTypeAppActivityRow.allocationSize(value.activity) ++ FfiConverterTypeAppThisDevice.allocationSize(value.thisDevice) ++ FfiConverterSequenceTypeAppActivityRow.allocationSize(value.recent) ++ FfiConverterSequenceTypeAppUnconfirmedMachine.allocationSize(value.unconfirmedMachines) ++ FfiConverterTypeAppDevicesLabels.allocationSize(value.labels);- static instanceOf(obj: any): obj is Start_ {- return obj.tag === AppDragOverlayEvent_Tags.Start;}+ };+ return new FFIConverter();+})();- }+export type AppLogicalRect = {+ x: number,+ y: number,+ width: number,+ height: number+}- type EnterNotch__interface = {- tag: AppDragOverlayEvent_Tags.EnterNotch+/**+ * Generated factory for {@link AppLogicalRect} record objects.+ */+export const AppLogicalRect = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppLogicalRect, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppLogicalRect>,+ });+})();++const FfiConverterTypeAppLogicalRect = (() => {+ type TypeName = AppLogicalRect;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ x: FfiConverterFloat64.read(from),+ y: FfiConverterFloat64.read(from),+ width: FfiConverterFloat64.read(from),+ height: FfiConverterFloat64.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterFloat64.write(value.x, into);+ FfiConverterFloat64.write(value.y, into);+ FfiConverterFloat64.write(value.width, into);+ FfiConverterFloat64.write(value.height, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterFloat64.allocationSize(value.x) ++ FfiConverterFloat64.allocationSize(value.y) ++ FfiConverterFloat64.allocationSize(value.width) ++ FfiConverterFloat64.allocationSize(value.height);++ }};+ return new FFIConverter();+})();++export type AppDragDisplay = {/**- * The cursor reached the notch box.+ * The display.*/- class EnterNotch_ extends UniffiEnum implements EnterNotch__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.EnterNotch;- constructor() {- super("AppDragOverlayEvent", "EnterNotch");- }+ frame: AppLogicalRect,+ /**+ * The notch (or, without one, the menu-bar-high stand-in).+ */+ notch: AppLogicalRect,+ /**+ * The "Teleport to Cua" box: the dwell area.+ */+ prompt: AppLogicalRect,+ /**+ * The expanded panel: the drag stays expanded inside it.+ */+ expanded: AppLogicalRect+}- static new(): EnterNotch_ {- return new EnterNotch_();+/**+ * Generated factory for {@link AppDragDisplay} record objects.+ */+export const AppDragDisplay = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppDragDisplay, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppDragDisplay>,+ });+})();++const FfiConverterTypeAppDragDisplay = (() => {+ type TypeName = AppDragDisplay;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ frame: FfiConverterTypeAppLogicalRect.read(from),+ notch: FfiConverterTypeAppLogicalRect.read(from),+ prompt: FfiConverterTypeAppLogicalRect.read(from),+ expanded: FfiConverterTypeAppLogicalRect.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeAppLogicalRect.write(value.frame, into);+ FfiConverterTypeAppLogicalRect.write(value.notch, into);+ FfiConverterTypeAppLogicalRect.write(value.prompt, into);+ FfiConverterTypeAppLogicalRect.write(value.expanded, into);}+ allocationSize(value: TypeName): number {+ return FfiConverterTypeAppLogicalRect.allocationSize(value.frame) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.notch) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.prompt) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.expanded);- static instanceOf(obj: any): obj is EnterNotch_ {- return obj.tag === AppDragOverlayEvent_Tags.EnterNotch;}+ };+ return new FFIConverter();+})();++export enum AppDragOverlayPhase {+ /**+ * Nothing showing.+ */+ Idle = "idle",+ /**+ * The "Teleport to Cua" box.+ */+ Prompt = "prompt",+ /**+ * The Space tiles as drop targets.+ */+ Selector = "selector"+}+const FfiConverterTypeAppDragOverlayPhase = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDragOverlayPhase;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppDragOverlayPhase.Idle;+ case 2: return AppDragOverlayPhase.Prompt;+ case 3: return AppDragOverlayPhase.Selector;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppDragOverlayPhase.Idle: return ordinalConverter.write(1, into);+ case AppDragOverlayPhase.Prompt: return ordinalConverter.write(2, into);+ case AppDragOverlayPhase.Selector: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }}+ return new FFIConverter();+})();- type LeaveNotch__interface = {- tag: AppDragOverlayEvent_Tags.LeaveNotch- };+export type AppDragOverlayState = {/**- * The cursor left the selector.+ * Phase.*/- class LeaveNotch_ extends UniffiEnum implements LeaveNotch__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.LeaveNotch;- constructor() {- super("AppDragOverlayEvent", "LeaveNotch");- }+ phase: AppDragOverlayPhase,+ /**+ * CoreGraphics id of the dragged window.+ */+ windowId?: number,+ /**+ * The dragged app's name.+ */+ appName?: string,+ /**+ * The tile under the cursor (selector only).+ */+ targetSpaceId?: string,+ /**+ * The captured ghost (a data URL or a shell-local image key).+ */+ ghost?: string+}- static new(): LeaveNotch_ {- return new LeaveNotch_();+/**+ * Generated factory for {@link AppDragOverlayState} record objects.+ */+export const AppDragOverlayState = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppDragOverlayState, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppDragOverlayState>,+ });+})();++const FfiConverterTypeAppDragOverlayState = (() => {+ type TypeName = AppDragOverlayState;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ phase: FfiConverterTypeAppDragOverlayPhase.read(from),+ windowId: FfiConverterOptionalUInt32.read(from),+ appName: FfiConverterOptionalString.read(from),+ targetSpaceId: FfiConverterOptionalString.read(from),+ ghost: FfiConverterOptionalString.read(from)+ };}+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeAppDragOverlayPhase.write(value.phase, into);+ FfiConverterOptionalUInt32.write(value.windowId, into);+ FfiConverterOptionalString.write(value.appName, into);+ FfiConverterOptionalString.write(value.targetSpaceId, into);+ FfiConverterOptionalString.write(value.ghost, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterTypeAppDragOverlayPhase.allocationSize(value.phase) ++ FfiConverterOptionalUInt32.allocationSize(value.windowId) ++ FfiConverterOptionalString.allocationSize(value.appName) ++ FfiConverterOptionalString.allocationSize(value.targetSpaceId) ++ FfiConverterOptionalString.allocationSize(value.ghost);- static instanceOf(obj: any): obj is LeaveNotch_ {- return obj.tag === AppDragOverlayEvent_Tags.LeaveNotch;}+ };+ return new FFIConverter();+})();- }- type Over__interface = {- tag: AppDragOverlayEvent_Tags.Over;+// Enum: AppDragOverlayEffect+export enum AppDragOverlayEffect_Tags {+ Capture = "Capture",+ Commit = "Commit"+}+export const AppDragOverlayEffect = (() => {++ type Capture__interface = {+ tag: AppDragOverlayEffect_Tags.Capture;inner:-Readonly<{spaceId: string}>+Readonly<{windowId?: number}>};/**- * Over a Space tile.+ * Capture the ghost (needs Screen Recording; none is fine).*/- class Over_ extends UniffiEnum implements Over__interface {+ class Capture_ extends UniffiEnum implements Capture__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.Over;+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEffect";+ readonly tag = AppDragOverlayEffect_Tags.Capture;readonly inner:-Readonly<{spaceId: string}>;+Readonly<{windowId?: number}>;constructor(-inner: {spaceId: string }) {- super("AppDragOverlayEvent", "Over");+inner: {windowId?: number }) {+ super("AppDragOverlayEffect", "Capture");this.inner = Object.freeze(inner);}static new(-inner: {spaceId: string }): Over_ {- return new Over_(inner);+inner: {windowId?: number }): Capture_ {+ return new Capture_(inner);}- static instanceOf(obj: any): obj is Over_ {- return obj.tag === AppDragOverlayEvent_Tags.Over;+ static instanceOf(obj: any): obj is Capture_ {+ return obj.tag === AppDragOverlayEffect_Tags.Capture;}}- type Out__interface = {- tag: AppDragOverlayEvent_Tags.Out+ type Commit__interface = {+ tag: AppDragOverlayEffect_Tags.Commit;+ inner:+Readonly<{spaceId: string}>};/**- * Off every tile.+ * Teleport to this Space.*/- class Out_ extends UniffiEnum implements Out__interface {+ class Commit_ extends UniffiEnum implements Commit__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.Out;- constructor() {- super("AppDragOverlayEvent", "Out");- }-- static new(): Out_ {- return new Out_();- }-- static instanceOf(obj: any): obj is Out_ {- return obj.tag === AppDragOverlayEvent_Tags.Out;- }-- }-- type GhostReady__interface = {- tag: AppDragOverlayEvent_Tags.GhostReady;- inner:-Readonly<{ghost?: string}>- };- /**- * The ghost capture finished.- */- class GhostReady_ extends UniffiEnum implements GhostReady__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.GhostReady;- readonly inner:-Readonly<{ghost?: string}>;- constructor(-inner: {ghost?: string }) {- super("AppDragOverlayEvent", "GhostReady");-- this.inner = Object.freeze(inner);- }- static new(-inner: {ghost?: string }): GhostReady_ {- return new GhostReady_(inner);- }-- static instanceOf(obj: any): obj is GhostReady_ {- return obj.tag === AppDragOverlayEvent_Tags.GhostReady;- }-- }-- type Drop__interface = {- tag: AppDragOverlayEvent_Tags.Drop;- inner:-Readonly<{spaceId?: string}>- };- /**- * Released; the tile under the cursor, if any.- */- class Drop_ extends UniffiEnum implements Drop__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.Drop;+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEffect";+ readonly tag = AppDragOverlayEffect_Tags.Commit;readonly inner:-Readonly<{spaceId?: string}>;+Readonly<{spaceId: string}>;constructor(-inner: {spaceId?: string }) {- super("AppDragOverlayEvent", "Drop");+inner: {spaceId: string }) {+ super("AppDragOverlayEffect", "Commit");this.inner = Object.freeze(inner);}static new(-inner: {spaceId?: string }): Drop_ {- return new Drop_(inner);- }-- static instanceOf(obj: any): obj is Drop_ {- return obj.tag === AppDragOverlayEvent_Tags.Drop;- }-- }-- type Cancel__interface = {- tag: AppDragOverlayEvent_Tags.Cancel- };- /**- * Abort.- */- class Cancel_ extends UniffiEnum implements Cancel__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";- readonly tag = AppDragOverlayEvent_Tags.Cancel;- constructor() {- super("AppDragOverlayEvent", "Cancel");- }-- static new(): Cancel_ {- return new Cancel_();+inner: {spaceId: string }): Commit_ {+ return new Commit_(inner);}- static instanceOf(obj: any): obj is Cancel_ {- return obj.tag === AppDragOverlayEvent_Tags.Cancel;+ static instanceOf(obj: any): obj is Commit_ {+ return obj.tag === AppDragOverlayEffect_Tags.Commit;}}- function instanceOf(obj: any): obj is AppDragOverlayEvent {- return obj[uniffiTypeNameSymbol] === "AppDragOverlayEvent";+ function instanceOf(obj: any): obj is AppDragOverlayEffect {+ return obj[uniffiTypeNameSymbol] === "AppDragOverlayEffect";}return Object.freeze({instanceOf,- Start: Start_,- EnterNotch: EnterNotch_,- LeaveNotch: LeaveNotch_,- Over: Over_,- Out: Out_,- GhostReady: GhostReady_,- Drop: Drop_,- Cancel: Cancel_+ Capture: Capture_,+ Commit: Commit_});})();-export type AppDragOverlayEvent = InstanceType<- typeof AppDragOverlayEvent['Start' | 'EnterNotch' | 'LeaveNotch' | 'Over' | 'Out' | 'GhostReady' | 'Drop' | 'Cancel']+export type AppDragOverlayEffect = InstanceType<+ typeof AppDragOverlayEffect['Capture' | 'Commit']>;-// FfiConverter for enum AppDragOverlayEvent-const FfiConverterTypeAppDragOverlayEvent = (() => {+// FfiConverter for enum AppDragOverlayEffect+const FfiConverterTypeAppDragOverlayEffect = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppDragOverlayEvent;+ type TypeName = AppDragOverlayEffect;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return new AppDragOverlayEvent.Start({windowId: FfiConverterOptionalUInt32.read(from), appName: FfiConverterOptionalString.read(from) });- case 2: return new AppDragOverlayEvent.EnterNotch();- case 3: return new AppDragOverlayEvent.LeaveNotch();- case 4: return new AppDragOverlayEvent.Over({spaceId: FfiConverterString.read(from) });- case 5: return new AppDragOverlayEvent.Out();- case 6: return new AppDragOverlayEvent.GhostReady({ghost: FfiConverterOptionalString.read(from) });- case 7: return new AppDragOverlayEvent.Drop({spaceId: FfiConverterOptionalString.read(from) });- case 8: return new AppDragOverlayEvent.Cancel();+ case 1: return new AppDragOverlayEffect.Capture({windowId: FfiConverterOptionalUInt32.read(from) });+ case 2: return new AppDragOverlayEffect.Commit({spaceId: FfiConverterString.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value.tag) {- case AppDragOverlayEvent_Tags.Start: {+ case AppDragOverlayEffect_Tags.Capture: {ordinalConverter.write(1, into);const inner = value.inner;FfiConverterOptionalUInt32.write(inner.windowId, into);- FfiConverterOptionalString.write(inner.appName, into);return;}- case AppDragOverlayEvent_Tags.EnterNotch: {+ case AppDragOverlayEffect_Tags.Commit: {ordinalConverter.write(2, into);- return;- }- case AppDragOverlayEvent_Tags.LeaveNotch: {- ordinalConverter.write(3, into);- return;- }- case AppDragOverlayEvent_Tags.Over: {- ordinalConverter.write(4, into);const inner = value.inner;FfiConverterString.write(inner.spaceId, into);return;}- case AppDragOverlayEvent_Tags.Out: {- ordinalConverter.write(5, into);- return;- }- case AppDragOverlayEvent_Tags.GhostReady: {- ordinalConverter.write(6, into);- const inner = value.inner;- FfiConverterOptionalString.write(inner.ghost, into);- return;- }- case AppDragOverlayEvent_Tags.Drop: {- ordinalConverter.write(7, into);- const inner = value.inner;- FfiConverterOptionalString.write(inner.spaceId, into);- return;- }- case AppDragOverlayEvent_Tags.Cancel: {- ordinalConverter.write(8, into);- return;- }default:- // Throwing from here means that AppDragOverlayEvent_Tags hasn't matched an ordinal.+ // Throwing from here means that AppDragOverlayEffect_Tags hasn't matched an ordinal.throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {switch (value.tag) {- case AppDragOverlayEvent_Tags.Start: {+ case AppDragOverlayEffect_Tags.Capture: {const inner = value.inner;let size = ordinalConverter.allocationSize(1);size += FfiConverterOptionalUInt32.allocationSize(inner.windowId);- size += FfiConverterOptionalString.allocationSize(inner.appName);return size;}- case AppDragOverlayEvent_Tags.EnterNotch: {- return ordinalConverter.allocationSize(2);- }- case AppDragOverlayEvent_Tags.LeaveNotch: {- return ordinalConverter.allocationSize(3);- }- case AppDragOverlayEvent_Tags.Over: {+ case AppDragOverlayEffect_Tags.Commit: {const inner = value.inner;- let size = ordinalConverter.allocationSize(4);+ let size = ordinalConverter.allocationSize(2);size += FfiConverterString.allocationSize(inner.spaceId);return size;}- case AppDragOverlayEvent_Tags.Out: {- return ordinalConverter.allocationSize(5);- }- case AppDragOverlayEvent_Tags.GhostReady: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(6);- size += FfiConverterOptionalString.allocationSize(inner.ghost);- return size;- }- case AppDragOverlayEvent_Tags.Drop: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(7);- size += FfiConverterOptionalString.allocationSize(inner.spaceId);- return size;- }- case AppDragOverlayEvent_Tags.Cancel: {- return ordinalConverter.allocationSize(8);- }default: throw new UniffiInternalError.UnexpectedEnumCase();}}@@ -15998,176 +16564,128 @@ const FfiConverterTypeAppDragOverlayEvent = (() => {return new FFIConverter();})();-export type AppDragTriggerTransition = {+export type AppDragOverlayTransition = {/*** New state.*/- state: AppDragTriggerState,- /**- * Feed these to the drag overlay, in order. A `drop` carries no Space:- * the shell puts in the tile under the cursor, if any.- */- overlay: Array<AppDragOverlayEvent>,+ state: AppDragOverlayState,/**- * Send a `tick` at this time (replacing any earlier request); none- * cancels it.+ * Effects.*/- tickAtMs?: bigint+ effects: Array<AppDragOverlayEffect>}/**- * Generated factory for {@link AppDragTriggerTransition} record objects.+ * Generated factory for {@link AppDragOverlayTransition} record objects.*/-export const AppDragTriggerTransition = (() => {+export const AppDragOverlayTransition = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDragTriggerTransition, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDragOverlayTransition, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDragTriggerTransition>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDragOverlayTransition>,});})();-const FfiConverterTypeAppDragTriggerTransition = (() => {- type TypeName = AppDragTriggerTransition;+const FfiConverterTypeAppDragOverlayTransition = (() => {+ type TypeName = AppDragOverlayTransition;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- state: FfiConverterTypeAppDragTriggerState.read(from),- overlay: FfiConverterSequenceTypeAppDragOverlayEvent.read(from),- tickAtMs: FfiConverterOptionalUInt64.read(from)+ state: FfiConverterTypeAppDragOverlayState.read(from),+ effects: FfiConverterSequenceTypeAppDragOverlayEffect.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppDragTriggerState.write(value.state, into);- FfiConverterSequenceTypeAppDragOverlayEvent.write(value.overlay, into);- FfiConverterOptionalUInt64.write(value.tickAtMs, into);+ FfiConverterTypeAppDragOverlayState.write(value.state, into);+ FfiConverterSequenceTypeAppDragOverlayEffect.write(value.effects, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppDragTriggerState.allocationSize(value.state) +- FfiConverterSequenceTypeAppDragOverlayEvent.allocationSize(value.overlay) +- FfiConverterOptionalUInt64.allocationSize(value.tickAtMs);+ return FfiConverterTypeAppDragOverlayState.allocationSize(value.state) ++ FfiConverterSequenceTypeAppDragOverlayEffect.allocationSize(value.effects);}};return new FFIConverter();})();-export type AppDriveCacheInput = {- sizeBytes: bigint,- capacityBytes: bigint+export enum AppDragKind {+ /**+ * Not known yet (no frames, or they have not changed enough).+ */+ Pending = "pending",+ /**+ * The window follows the cursor at its size.+ */+ Move = "move",+ /**+ * An edge or a corner: the size changes.+ */+ Resize = "resize"}-/**- * Generated factory for {@link AppDriveCacheInput} record objects.- */-export const AppDriveCacheInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveCacheInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveCacheInput>,- });-})();--const FfiConverterTypeAppDriveCacheInput = (() => {- type TypeName = AppDriveCacheInput;+const FfiConverterTypeAppDragKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDragKind;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- sizeBytes: FfiConverterUInt64.read(from),- capacityBytes: FfiConverterUInt64.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppDragKind.Pending;+ case 2: return AppDragKind.Move;+ case 3: return AppDragKind.Resize;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt64.write(value.sizeBytes, into);- FfiConverterUInt64.write(value.capacityBytes, into);+ switch (value) {+ case AppDragKind.Pending: return ordinalConverter.write(1, into);+ case AppDragKind.Move: return ordinalConverter.write(2, into);+ case AppDragKind.Resize: return ordinalConverter.write(3, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterUInt64.allocationSize(value.sizeBytes) +- FfiConverterUInt64.allocationSize(value.capacityBytes);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export enum AppSettingsRowKind {- /**- * Label, value and an optional button.- */- Text = "text",- /**- * Label and a segmented choice.- */- Choice = "choice",- /**- * A muted line (with an optional link).- */- Note = "note",- /**- * An error line.- */- Error = "error",- /**- * Label and a text field (`value` is its text).- */- Field = "field",+export enum AppTriggerPhase {/**- * Label and a secure text field (`value` is its text).+ * Nothing (no drag, a resize, or not known yet).*/- Secret = "secret",+ Hidden = "hidden",/**- * A label over read-only text to copy (`value`), with a Copy button.+ * The "Teleport to Cua" box.*/Prompt = "prompt",/**- * A small link-style button (the label).- */- Link = "link",- /**- * Label and a switch: `options` are `on` and `off`, the active one is- * its state (a choice drawn as a switch).+ * The Space tiles as drop targets.*/- Toggle = "toggle"+ Expanded = "expanded"}-const FfiConverterTypeAppSettingsRowKind = (() => {+const FfiConverterTypeAppTriggerPhase = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppSettingsRowKind;+ type TypeName = AppTriggerPhase;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppSettingsRowKind.Text;- case 2: return AppSettingsRowKind.Choice;- case 3: return AppSettingsRowKind.Note;- case 4: return AppSettingsRowKind.Error;- case 5: return AppSettingsRowKind.Field;- case 6: return AppSettingsRowKind.Secret;- case 7: return AppSettingsRowKind.Prompt;- case 8: return AppSettingsRowKind.Link;- case 9: return AppSettingsRowKind.Toggle;+ case 1: return AppTriggerPhase.Hidden;+ case 2: return AppTriggerPhase.Prompt;+ case 3: return AppTriggerPhase.Expanded;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppSettingsRowKind.Text: return ordinalConverter.write(1, into);- case AppSettingsRowKind.Choice: return ordinalConverter.write(2, into);- case AppSettingsRowKind.Note: return ordinalConverter.write(3, into);- case AppSettingsRowKind.Error: return ordinalConverter.write(4, into);- case AppSettingsRowKind.Field: return ordinalConverter.write(5, into);- case AppSettingsRowKind.Secret: return ordinalConverter.write(6, into);- case AppSettingsRowKind.Prompt: return ordinalConverter.write(7, into);- case AppSettingsRowKind.Link: return ordinalConverter.write(8, into);- case AppSettingsRowKind.Toggle: return ordinalConverter.write(9, into);+ case AppTriggerPhase.Hidden: return ordinalConverter.write(1, into);+ case AppTriggerPhase.Prompt: return ordinalConverter.write(2, into);+ case AppTriggerPhase.Expanded: return ordinalConverter.write(3, into);}}allocationSize(value: TypeName): number {@@ -16177,7207 +16695,6337 @@ const FfiConverterTypeAppSettingsRowKind = (() => {return new FFIConverter();})();-export type AppSettingsRow = {- /**- * Stable id (`account`, `sign-in`, `notch`, `agent:codex`, ...).- */- id: string,- /**- * How it draws.- */- kind: AppSettingsRowKind,- /**- * Label (or the note's text).- */- label: string,- /**- * Muted value.- */- value?: string,- /**- * A button's label.- */- button?: string,- /**- * A choice's options.- */- options: Array<AppSettingsOption>,- /**- * The button or choice can be used.- */- enabled: boolean,- /**- * Tooltip.- */- help?: string,+export type AppStillAnchor = {/**- * A note's link: label.+ * X.*/- linkLabel?: string,+ x: number,/**- * A note's link: URL (or what a Text row's button opens).+ * Y.*/- linkUrl?: string,+ y: number,/**- * A field's placeholder.+ * When (ms, the shell's monotonic clock).*/- placeholder?: string+ sinceMs: bigint}/**- * Generated factory for {@link AppSettingsRow} record objects.+ * Generated factory for {@link AppStillAnchor} record objects.*/-export const AppSettingsRow = (() => {+export const AppStillAnchor = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSettingsRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStillAnchor, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSettingsRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStillAnchor>,});})();-const FfiConverterTypeAppSettingsRow = (() => {- type TypeName = AppSettingsRow;+const FfiConverterTypeAppStillAnchor = (() => {+ type TypeName = AppStillAnchor;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- kind: FfiConverterTypeAppSettingsRowKind.read(from),- label: FfiConverterString.read(from),- value: FfiConverterOptionalString.read(from),- button: FfiConverterOptionalString.read(from),- options: FfiConverterSequenceTypeAppSettingsOption.read(from),- enabled: FfiConverterBool.read(from),- help: FfiConverterOptionalString.read(from),- linkLabel: FfiConverterOptionalString.read(from),- linkUrl: FfiConverterOptionalString.read(from),- placeholder: FfiConverterOptionalString.read(from)+ x: FfiConverterFloat64.read(from),+ y: FfiConverterFloat64.read(from),+ sinceMs: FfiConverterUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterTypeAppSettingsRowKind.write(value.kind, into);- FfiConverterString.write(value.label, into);- FfiConverterOptionalString.write(value.value, into);- FfiConverterOptionalString.write(value.button, into);- FfiConverterSequenceTypeAppSettingsOption.write(value.options, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterOptionalString.write(value.help, into);- FfiConverterOptionalString.write(value.linkLabel, into);- FfiConverterOptionalString.write(value.linkUrl, into);- FfiConverterOptionalString.write(value.placeholder, into);+ FfiConverterFloat64.write(value.x, into);+ FfiConverterFloat64.write(value.y, into);+ FfiConverterUInt64.write(value.sinceMs, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterTypeAppSettingsRowKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.label) +- FfiConverterOptionalString.allocationSize(value.value) +- FfiConverterOptionalString.allocationSize(value.button) +- FfiConverterSequenceTypeAppSettingsOption.allocationSize(value.options) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterOptionalString.allocationSize(value.help) +- FfiConverterOptionalString.allocationSize(value.linkLabel) +- FfiConverterOptionalString.allocationSize(value.linkUrl) +- FfiConverterOptionalString.allocationSize(value.placeholder);+ return FfiConverterFloat64.allocationSize(value.x) ++ FfiConverterFloat64.allocationSize(value.y) ++ FfiConverterUInt64.allocationSize(value.sinceMs);}};return new FFIConverter();})();-export type AppDriveCard = {- /**- * "Add Cua Volume to Finder" (Linux: "Mount Cua Volume").- */- label: string,+export type AppDragTriggerState = {/**- * The miniature's spoken description.+ * A drag is in flight.*/- imageLabel: string,+ active: boolean,/**- * Ticked.+ * Move or resize.*/- checked: boolean,+ kind: AppDragKind,/**- * The checkbox can be used (the daemon can mount here).+ * What shows.*/- enabled: boolean,+ phase: AppTriggerPhase,/**- * Mounting or unmounting.+ * The dragged window.*/- busy: boolean,+ windowId?: number,/**- * One muted line under it (checking, why not, what to approve).+ * Its app's name.*/- note?: string,+ appName?: string,/**- * Why mounting failed.+ * The window's frame at mouse down.*/- error?: string,+ startFrame?: AppLogicalRect,/**- * "Open System Settings" while macOS waits for the extension's- * approval.+ * The display (index into the shell's list) the panel expanded on.*/- settingsLabel?: string,+ display?: number,/**- * Where it goes.+ * Where the cursor rests, while it rests in the box.*/- settingsUrl?: string,- /**- * "Where your files live" (none until the daemon answered).- */- storageTitle?: string,- /**- * This Mac, Your S3 bucket, Set up later.- */- storageOptions: Array<AppSettingsOption>,- /**- * The bucket's fields, Test connection and its answer (Your S3- * bucket), drawn like Settings' rows.- */- storageRows: Array<AppSettingsRow>,- /**- * One muted line for Set up later.- */- storageNote?: string,- /**- * This Mac: "Stored in ~/.cua/volume/data" (the daemon's path).- */- storedIn?: string,- /**- * The mounted volume: "In Finder at ~/Cua Volume".- */- mountedAt?: string,- /**- * Full paths for tooltips and Show in Finder: stored, mounted.- */- storedPath?: string,- mountedPath?: string,- /**- * Continue can be pressed.- */- canContinue: boolean+ still?: AppStillAnchor}/**- * Generated factory for {@link AppDriveCard} record objects.+ * Generated factory for {@link AppDragTriggerState} record objects.*/-export const AppDriveCard = (() => {+export const AppDragTriggerState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveCard, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDragTriggerState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveCard>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDragTriggerState>,});})();-const FfiConverterTypeAppDriveCard = (() => {- type TypeName = AppDriveCard;+const FfiConverterTypeAppDragTriggerState = (() => {+ type TypeName = AppDragTriggerState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- label: FfiConverterString.read(from),- imageLabel: FfiConverterString.read(from),- checked: FfiConverterBool.read(from),- enabled: FfiConverterBool.read(from),- busy: FfiConverterBool.read(from),- note: FfiConverterOptionalString.read(from),- error: FfiConverterOptionalString.read(from),- settingsLabel: FfiConverterOptionalString.read(from),- settingsUrl: FfiConverterOptionalString.read(from),- storageTitle: FfiConverterOptionalString.read(from),- storageOptions: FfiConverterSequenceTypeAppSettingsOption.read(from),- storageRows: FfiConverterSequenceTypeAppSettingsRow.read(from),- storageNote: FfiConverterOptionalString.read(from),- storedIn: FfiConverterOptionalString.read(from),- mountedAt: FfiConverterOptionalString.read(from),- storedPath: FfiConverterOptionalString.read(from),- mountedPath: FfiConverterOptionalString.read(from),- canContinue: FfiConverterBool.read(from)+ active: FfiConverterBool.read(from),+ kind: FfiConverterTypeAppDragKind.read(from),+ phase: FfiConverterTypeAppTriggerPhase.read(from),+ windowId: FfiConverterOptionalUInt32.read(from),+ appName: FfiConverterOptionalString.read(from),+ startFrame: FfiConverterOptionalTypeAppLogicalRect.read(from),+ display: FfiConverterOptionalUInt32.read(from),+ still: FfiConverterOptionalTypeAppStillAnchor.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.imageLabel, into);- FfiConverterBool.write(value.checked, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalString.write(value.note, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalString.write(value.settingsLabel, into);- FfiConverterOptionalString.write(value.settingsUrl, into);- FfiConverterOptionalString.write(value.storageTitle, into);- FfiConverterSequenceTypeAppSettingsOption.write(value.storageOptions, into);- FfiConverterSequenceTypeAppSettingsRow.write(value.storageRows, into);- FfiConverterOptionalString.write(value.storageNote, into);- FfiConverterOptionalString.write(value.storedIn, into);- FfiConverterOptionalString.write(value.mountedAt, into);- FfiConverterOptionalString.write(value.storedPath, into);- FfiConverterOptionalString.write(value.mountedPath, into);- FfiConverterBool.write(value.canContinue, into);+ FfiConverterBool.write(value.active, into);+ FfiConverterTypeAppDragKind.write(value.kind, into);+ FfiConverterTypeAppTriggerPhase.write(value.phase, into);+ FfiConverterOptionalUInt32.write(value.windowId, into);+ FfiConverterOptionalString.write(value.appName, into);+ FfiConverterOptionalTypeAppLogicalRect.write(value.startFrame, into);+ FfiConverterOptionalUInt32.write(value.display, into);+ FfiConverterOptionalTypeAppStillAnchor.write(value.still, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.imageLabel) +- FfiConverterBool.allocationSize(value.checked) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalString.allocationSize(value.note) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalString.allocationSize(value.settingsLabel) +- FfiConverterOptionalString.allocationSize(value.settingsUrl) +- FfiConverterOptionalString.allocationSize(value.storageTitle) +- FfiConverterSequenceTypeAppSettingsOption.allocationSize(value.storageOptions) +- FfiConverterSequenceTypeAppSettingsRow.allocationSize(value.storageRows) +- FfiConverterOptionalString.allocationSize(value.storageNote) +- FfiConverterOptionalString.allocationSize(value.storedIn) +- FfiConverterOptionalString.allocationSize(value.mountedAt) +- FfiConverterOptionalString.allocationSize(value.storedPath) +- FfiConverterOptionalString.allocationSize(value.mountedPath) +- FfiConverterBool.allocationSize(value.canContinue);+ return FfiConverterBool.allocationSize(value.active) ++ FfiConverterTypeAppDragKind.allocationSize(value.kind) ++ FfiConverterTypeAppTriggerPhase.allocationSize(value.phase) ++ FfiConverterOptionalUInt32.allocationSize(value.windowId) ++ FfiConverterOptionalString.allocationSize(value.appName) ++ FfiConverterOptionalTypeAppLogicalRect.allocationSize(value.startFrame) ++ FfiConverterOptionalUInt32.allocationSize(value.display) ++ FfiConverterOptionalTypeAppStillAnchor.allocationSize(value.still);}};return new FFIConverter();})();-export type AppDriveCheckInput = {- ok: boolean,- reachable: boolean,- authorized: boolean,- versioning: boolean,- detail?: string,- /**- * Saved, and the daemon switched to it.- */- applied: boolean++// Enum: AppDragOverlayEvent+export enum AppDragOverlayEvent_Tags {+ Start = "Start",+ EnterNotch = "EnterNotch",+ LeaveNotch = "LeaveNotch",+ Over = "Over",+ Out = "Out",+ GhostReady = "GhostReady",+ Drop = "Drop",+ Cancel = "Cancel"}+export const AppDragOverlayEvent = (() => {-/**- * Generated factory for {@link AppDriveCheckInput} record objects.- */-export const AppDriveCheckInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveCheckInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveCheckInput>,- });-})();+ type Start__interface = {+ tag: AppDragOverlayEvent_Tags.Start;+ inner:+Readonly<{windowId?: number; appName?: string}>+ };+ /**+ * A supported window drag began.+ */+ class Start_ extends UniffiEnum implements Start__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.Start;+ readonly inner:+Readonly<{windowId?: number; appName?: string}>;+ constructor(+inner: {windowId?: number; appName?: string }) {+ super("AppDragOverlayEvent", "Start");-const FfiConverterTypeAppDriveCheckInput = (() => {- type TypeName = AppDriveCheckInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- ok: FfiConverterBool.read(from),- reachable: FfiConverterBool.read(from),- authorized: FfiConverterBool.read(from),- versioning: FfiConverterBool.read(from),- detail: FfiConverterOptionalString.read(from),- applied: FfiConverterBool.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.ok, into);- FfiConverterBool.write(value.reachable, into);- FfiConverterBool.write(value.authorized, into);- FfiConverterBool.write(value.versioning, into);- FfiConverterOptionalString.write(value.detail, into);- FfiConverterBool.write(value.applied, into);+ static new(+inner: {windowId?: number; appName?: string }): Start_ {+ return new Start_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.ok) +- FfiConverterBool.allocationSize(value.reachable) +- FfiConverterBool.allocationSize(value.authorized) +- FfiConverterBool.allocationSize(value.versioning) +- FfiConverterOptionalString.allocationSize(value.detail) +- FfiConverterBool.allocationSize(value.applied);+ static instanceOf(obj: any): obj is Start_ {+ return obj.tag === AppDragOverlayEvent_Tags.Start;}- };- return new FFIConverter();-})();-export type AppDriveConflictInput = {- /**- * The file (the drive's path).- */- path: string,+ }++ type EnterNotch__interface = {+ tag: AppDragOverlayEvent_Tags.EnterNotch+ };/**- * The visible copy holding the losing write.+ * The cursor reached the notch box.*/- conflictPath: string,- winnerDevice: string,- loserDevice: string,- tsMs: bigint-}--/**- * Generated factory for {@link AppDriveConflictInput} record objects.- */-export const AppDriveConflictInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveConflictInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveConflictInput>,- });-})();--const FfiConverterTypeAppDriveConflictInput = (() => {- type TypeName = AppDriveConflictInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- path: FfiConverterString.read(from),- conflictPath: FfiConverterString.read(from),- winnerDevice: FfiConverterString.read(from),- loserDevice: FfiConverterString.read(from),- tsMs: FfiConverterUInt64.read(from)- };+ class EnterNotch_ extends UniffiEnum implements EnterNotch__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.EnterNotch;+ constructor() {+ super("AppDragOverlayEvent", "EnterNotch");}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.path, into);- FfiConverterString.write(value.conflictPath, into);- FfiConverterString.write(value.winnerDevice, into);- FfiConverterString.write(value.loserDevice, into);- FfiConverterUInt64.write(value.tsMs, into);++ static new(): EnterNotch_ {+ return new EnterNotch_();}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.path) +- FfiConverterString.allocationSize(value.conflictPath) +- FfiConverterString.allocationSize(value.winnerDevice) +- FfiConverterString.allocationSize(value.loserDevice) +- FfiConverterUInt64.allocationSize(value.tsMs);+ static instanceOf(obj: any): obj is EnterNotch_ {+ return obj.tag === AppDragOverlayEvent_Tags.EnterNotch;}- };- return new FFIConverter();-})();-export type AppDriveDeviceInput = {- id: string,- name: string,- thisDevice: boolean,+ }++ type LeaveNotch__interface = {+ tag: AppDragOverlayEvent_Tags.LeaveNotch+ };/**- * Its last heartbeat or change (Unix ms).+ * The cursor left the selector.*/- lastSeenMs: bigint,- lastChangeMs: bigint-}--/**- * Generated factory for {@link AppDriveDeviceInput} record objects.- */-export const AppDriveDeviceInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveDeviceInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveDeviceInput>,- });-})();--const FfiConverterTypeAppDriveDeviceInput = (() => {- type TypeName = AppDriveDeviceInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- thisDevice: FfiConverterBool.read(from),- lastSeenMs: FfiConverterUInt64.read(from),- lastChangeMs: FfiConverterUInt64.read(from)- };+ class LeaveNotch_ extends UniffiEnum implements LeaveNotch__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.LeaveNotch;+ constructor() {+ super("AppDragOverlayEvent", "LeaveNotch");}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterBool.write(value.thisDevice, into);- FfiConverterUInt64.write(value.lastSeenMs, into);- FfiConverterUInt64.write(value.lastChangeMs, into);++ static new(): LeaveNotch_ {+ return new LeaveNotch_();}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterBool.allocationSize(value.thisDevice) +- FfiConverterUInt64.allocationSize(value.lastSeenMs) +- FfiConverterUInt64.allocationSize(value.lastChangeMs);+ static instanceOf(obj: any): obj is LeaveNotch_ {+ return obj.tag === AppDragOverlayEvent_Tags.LeaveNotch;}- };- return new FFIConverter();-})();-export type AppDriveGrantInput = {- id: string,- principal: string,- prefix: string,- mode: string,- revoked: boolean-}+ }-/**- * Generated factory for {@link AppDriveGrantInput} record objects.- */-export const AppDriveGrantInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveGrantInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveGrantInput>,- });-})();+ type Over__interface = {+ tag: AppDragOverlayEvent_Tags.Over;+ inner:+Readonly<{spaceId: string}>+ };+ /**+ * Over a Space tile.+ */+ class Over_ extends UniffiEnum implements Over__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.Over;+ readonly inner:+Readonly<{spaceId: string}>;+ constructor(+inner: {spaceId: string }) {+ super("AppDragOverlayEvent", "Over");-const FfiConverterTypeAppDriveGrantInput = (() => {- type TypeName = AppDriveGrantInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- principal: FfiConverterString.read(from),- prefix: FfiConverterString.read(from),- mode: FfiConverterString.read(from),- revoked: FfiConverterBool.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.principal, into);- FfiConverterString.write(value.prefix, into);- FfiConverterString.write(value.mode, into);- FfiConverterBool.write(value.revoked, into);+ static new(+inner: {spaceId: string }): Over_ {+ return new Over_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.principal) +- FfiConverterString.allocationSize(value.prefix) +- FfiConverterString.allocationSize(value.mode) +- FfiConverterBool.allocationSize(value.revoked);+ static instanceOf(obj: any): obj is Over_ {+ return obj.tag === AppDragOverlayEvent_Tags.Over;}- };- return new FFIConverter();-})();-export type AppDriveRequestInput = {- id: string,- /**- * `agent:ada`.- */- principal: string,- prefix: string,+ }++ type Out__interface = {+ tag: AppDragOverlayEvent_Tags.Out+ };/**- * `r` or `rw`.+ * Off every tile.*/- mode: string,- reason: string-}--/**- * Generated factory for {@link AppDriveRequestInput} record objects.- */-export const AppDriveRequestInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveRequestInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveRequestInput>,- });-})();--const FfiConverterTypeAppDriveRequestInput = (() => {- type TypeName = AppDriveRequestInput;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- principal: FfiConverterString.read(from),- prefix: FfiConverterString.read(from),- mode: FfiConverterString.read(from),- reason: FfiConverterString.read(from)- };+ class Out_ extends UniffiEnum implements Out__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.Out;+ constructor() {+ super("AppDragOverlayEvent", "Out");}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.principal, into);- FfiConverterString.write(value.prefix, into);- FfiConverterString.write(value.mode, into);- FfiConverterString.write(value.reason, into);++ static new(): Out_ {+ return new Out_();}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.principal) +- FfiConverterString.allocationSize(value.prefix) +- FfiConverterString.allocationSize(value.mode) +- FfiConverterString.allocationSize(value.reason);+ static instanceOf(obj: any): obj is Out_ {+ return obj.tag === AppDragOverlayEvent_Tags.Out;}- };- return new FFIConverter();-})();-export type AppDriveMountInput = {- /**- * The user's opt-in.- */- enabled: boolean,- /**- * `off`, `mounting`, `mounted`, `needs_approval`, `unsupported`, `error`.- */- state: string,- /**- * `fskit`, `nfs`, `fuse`, `none`.- */- method: string,- /**- * The mount point when mounted.- */- path?: string,+ }++ type GhostReady__interface = {+ tag: AppDragOverlayEvent_Tags.GhostReady;+ inner:+Readonly<{ghost?: string}>+ };/**- * "Cua Volume".+ * The ghost capture finished.*/- volumeName: string,+ class GhostReady_ extends UniffiEnum implements GhostReady__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.GhostReady;+ readonly inner:+Readonly<{ghost?: string}>;+ constructor(+inner: {ghost?: string }) {+ super("AppDragOverlayEvent", "GhostReady");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {ghost?: string }): GhostReady_ {+ return new GhostReady_(inner);+ }++ static instanceOf(obj: any): obj is GhostReady_ {+ return obj.tag === AppDragOverlayEvent_Tags.GhostReady;+ }++ }++ type Drop__interface = {+ tag: AppDragOverlayEvent_Tags.Drop;+ inner:+Readonly<{spaceId?: string}>+ };/**- * One sentence for `error`, `needs_approval`, `unsupported`.+ * Released; the tile under the cursor, if any.*/- detail?: string,+ class Drop_ extends UniffiEnum implements Drop__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.Drop;+ readonly inner:+Readonly<{spaceId?: string}>;+ constructor(+inner: {spaceId?: string }) {+ super("AppDragOverlayEvent", "Drop");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {spaceId?: string }): Drop_ {+ return new Drop_(inner);+ }++ static instanceOf(obj: any): obj is Drop_ {+ return obj.tag === AppDragOverlayEvent_Tags.Drop;+ }++ }++ type Cancel__interface = {+ tag: AppDragOverlayEvent_Tags.Cancel+ };/**- * `needs_approval`: System Settings' file system extensions.+ * Abort.*/- settingsUrl?: string-}+ class Cancel_ extends UniffiEnum implements Cancel__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDragOverlayEvent";+ readonly tag = AppDragOverlayEvent_Tags.Cancel;+ constructor() {+ super("AppDragOverlayEvent", "Cancel");+ }++ static new(): Cancel_ {+ return new Cancel_();+ }++ static instanceOf(obj: any): obj is Cancel_ {+ return obj.tag === AppDragOverlayEvent_Tags.Cancel;+ }++ }++ function instanceOf(obj: any): obj is AppDragOverlayEvent {+ return obj[uniffiTypeNameSymbol] === "AppDragOverlayEvent";+ }-/**- * Generated factory for {@link AppDriveMountInput} record objects.- */-export const AppDriveMountInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveMountInput, ReturnType<typeof defaults>>(defaults);- })();return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveMountInput>,+ instanceOf,+ Start: Start_,+ EnterNotch: EnterNotch_,+ LeaveNotch: LeaveNotch_,+ Over: Over_,+ Out: Out_,+ GhostReady: GhostReady_,+ Drop: Drop_,+ Cancel: Cancel_});+})();+export type AppDragOverlayEvent = InstanceType<+ typeof AppDragOverlayEvent['Start' | 'EnterNotch' | 'LeaveNotch' | 'Over' | 'Out' | 'GhostReady' | 'Drop' | 'Cancel']+>;-const FfiConverterTypeAppDriveMountInput = (() => {- type TypeName = AppDriveMountInput;+// FfiConverter for enum AppDragOverlayEvent+const FfiConverterTypeAppDragOverlayEvent = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDragOverlayEvent;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- enabled: FfiConverterBool.read(from),- state: FfiConverterString.read(from),- method: FfiConverterString.read(from),- path: FfiConverterOptionalString.read(from),- volumeName: FfiConverterString.read(from),- detail: FfiConverterOptionalString.read(from),- settingsUrl: FfiConverterOptionalString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return new AppDragOverlayEvent.Start({windowId: FfiConverterOptionalUInt32.read(from), appName: FfiConverterOptionalString.read(from) });+ case 2: return new AppDragOverlayEvent.EnterNotch();+ case 3: return new AppDragOverlayEvent.LeaveNotch();+ case 4: return new AppDragOverlayEvent.Over({spaceId: FfiConverterString.read(from) });+ case 5: return new AppDragOverlayEvent.Out();+ case 6: return new AppDragOverlayEvent.GhostReady({ghost: FfiConverterOptionalString.read(from) });+ case 7: return new AppDragOverlayEvent.Drop({spaceId: FfiConverterOptionalString.read(from) });+ case 8: return new AppDragOverlayEvent.Cancel();+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.enabled, into);- FfiConverterString.write(value.state, into);- FfiConverterString.write(value.method, into);- FfiConverterOptionalString.write(value.path, into);- FfiConverterString.write(value.volumeName, into);- FfiConverterOptionalString.write(value.detail, into);- FfiConverterOptionalString.write(value.settingsUrl, into);+ switch (value.tag) {+ case AppDragOverlayEvent_Tags.Start: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterOptionalUInt32.write(inner.windowId, into);+ FfiConverterOptionalString.write(inner.appName, into);+ return;+ }+ case AppDragOverlayEvent_Tags.EnterNotch: {+ ordinalConverter.write(2, into);+ return;+ }+ case AppDragOverlayEvent_Tags.LeaveNotch: {+ ordinalConverter.write(3, into);+ return;+ }+ case AppDragOverlayEvent_Tags.Over: {+ ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterString.write(inner.spaceId, into);+ return;+ }+ case AppDragOverlayEvent_Tags.Out: {+ ordinalConverter.write(5, into);+ return;+ }+ case AppDragOverlayEvent_Tags.GhostReady: {+ ordinalConverter.write(6, into);+ const inner = value.inner;+ FfiConverterOptionalString.write(inner.ghost, into);+ return;+ }+ case AppDragOverlayEvent_Tags.Drop: {+ ordinalConverter.write(7, into);+ const inner = value.inner;+ FfiConverterOptionalString.write(inner.spaceId, into);+ return;+ }+ case AppDragOverlayEvent_Tags.Cancel: {+ ordinalConverter.write(8, into);+ return;+ }+ default:+ // Throwing from here means that AppDragOverlayEvent_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.enabled) +- FfiConverterString.allocationSize(value.state) +- FfiConverterString.allocationSize(value.method) +- FfiConverterOptionalString.allocationSize(value.path) +- FfiConverterString.allocationSize(value.volumeName) +- FfiConverterOptionalString.allocationSize(value.detail) +- FfiConverterOptionalString.allocationSize(value.settingsUrl);-+ switch (value.tag) {+ case AppDragOverlayEvent_Tags.Start: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterOptionalUInt32.allocationSize(inner.windowId);+ size += FfiConverterOptionalString.allocationSize(inner.appName);+ return size;+ }+ case AppDragOverlayEvent_Tags.EnterNotch: {+ return ordinalConverter.allocationSize(2);+ }+ case AppDragOverlayEvent_Tags.LeaveNotch: {+ return ordinalConverter.allocationSize(3);+ }+ case AppDragOverlayEvent_Tags.Over: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterString.allocationSize(inner.spaceId);+ return size;+ }+ case AppDragOverlayEvent_Tags.Out: {+ return ordinalConverter.allocationSize(5);+ }+ case AppDragOverlayEvent_Tags.GhostReady: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(6);+ size += FfiConverterOptionalString.allocationSize(inner.ghost);+ return size;+ }+ case AppDragOverlayEvent_Tags.Drop: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(7);+ size += FfiConverterOptionalString.allocationSize(inner.spaceId);+ return size;+ }+ case AppDragOverlayEvent_Tags.Cancel: {+ return ordinalConverter.allocationSize(8);+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- };+ }return new FFIConverter();})();-export type AppDriveSyncInput = {- deviceId: string,- deviceName: string,- /**- * `live`, `off` (one device on this machine's store), `error`.- */- feed: string,+export type AppDragTriggerTransition = {/**- * This device's last poll of the feed (Unix ms).+ * New state.*/- lastPollMs: bigint,+ state: AppDragTriggerState,/**- * Local writes not yet in the bucket.+ * Feed these to the drag overlay, in order. A `drop` carries no Space:+ * the shell puts in the tile under the cursor, if any.*/- pendingUploads: number,- conflicts: Array<AppDriveConflictInput>,+ overlay: Array<AppDragOverlayEvent>,/**- * This device first.+ * Send a `tick` at this time (replacing any earlier request); none+ * cancels it.*/- devices: Array<AppDriveDeviceInput>,- lastError?: string+ tickAtMs?: bigint}/**- * Generated factory for {@link AppDriveSyncInput} record objects.+ * Generated factory for {@link AppDragTriggerTransition} record objects.*/-export const AppDriveSyncInput = (() => {+export const AppDragTriggerTransition = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveSyncInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDragTriggerTransition, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveSyncInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDragTriggerTransition>,});})();-const FfiConverterTypeAppDriveSyncInput = (() => {- type TypeName = AppDriveSyncInput;+const FfiConverterTypeAppDragTriggerTransition = (() => {+ type TypeName = AppDragTriggerTransition;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- deviceId: FfiConverterString.read(from),- deviceName: FfiConverterString.read(from),- feed: FfiConverterString.read(from),- lastPollMs: FfiConverterUInt64.read(from),- pendingUploads: FfiConverterUInt32.read(from),- conflicts: FfiConverterSequenceTypeAppDriveConflictInput.read(from),- devices: FfiConverterSequenceTypeAppDriveDeviceInput.read(from),- lastError: FfiConverterOptionalString.read(from)+ state: FfiConverterTypeAppDragTriggerState.read(from),+ overlay: FfiConverterSequenceTypeAppDragOverlayEvent.read(from),+ tickAtMs: FfiConverterOptionalUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.deviceId, into);- FfiConverterString.write(value.deviceName, into);- FfiConverterString.write(value.feed, into);- FfiConverterUInt64.write(value.lastPollMs, into);- FfiConverterUInt32.write(value.pendingUploads, into);- FfiConverterSequenceTypeAppDriveConflictInput.write(value.conflicts, into);- FfiConverterSequenceTypeAppDriveDeviceInput.write(value.devices, into);- FfiConverterOptionalString.write(value.lastError, into);+ FfiConverterTypeAppDragTriggerState.write(value.state, into);+ FfiConverterSequenceTypeAppDragOverlayEvent.write(value.overlay, into);+ FfiConverterOptionalUInt64.write(value.tickAtMs, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.deviceId) +- FfiConverterString.allocationSize(value.deviceName) +- FfiConverterString.allocationSize(value.feed) +- FfiConverterUInt64.allocationSize(value.lastPollMs) +- FfiConverterUInt32.allocationSize(value.pendingUploads) +- FfiConverterSequenceTypeAppDriveConflictInput.allocationSize(value.conflicts) +- FfiConverterSequenceTypeAppDriveDeviceInput.allocationSize(value.devices) +- FfiConverterOptionalString.allocationSize(value.lastError);+ return FfiConverterTypeAppDragTriggerState.allocationSize(value.state) ++ FfiConverterSequenceTypeAppDragOverlayEvent.allocationSize(value.overlay) ++ FfiConverterOptionalUInt64.allocationSize(value.tickAtMs);}};return new FFIConverter();})();-export type AppDriveInput = {- requests: Array<AppDriveRequestInput>,- grants: Array<AppDriveGrantInput>,- /**- * Now (Unix ms), for "synced 5m ago".- */- nowMs: bigint,- /**- * `volume_mount_status`, once read.- */- mount?: AppDriveMountInput,- /**- * `volume_sync_status`, once read.- */- sync?: AppDriveSyncInput,- /**- * The home folder, to show the mount point as `~/...`.- */- home?: string+export type AppDriveCacheInput = {+ sizeBytes: bigint,+ capacityBytes: bigint}/**- * Generated factory for {@link AppDriveInput} record objects.+ * Generated factory for {@link AppDriveCacheInput} record objects.*/-export const AppDriveInput = (() => {+export const AppDriveCacheInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveCacheInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveCacheInput>,});})();-const FfiConverterTypeAppDriveInput = (() => {- type TypeName = AppDriveInput;+const FfiConverterTypeAppDriveCacheInput = (() => {+ type TypeName = AppDriveCacheInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- requests: FfiConverterSequenceTypeAppDriveRequestInput.read(from),- grants: FfiConverterSequenceTypeAppDriveGrantInput.read(from),- nowMs: FfiConverterUInt64.read(from),- mount: FfiConverterOptionalTypeAppDriveMountInput.read(from),- sync: FfiConverterOptionalTypeAppDriveSyncInput.read(from),- home: FfiConverterOptionalString.read(from)+ sizeBytes: FfiConverterUInt64.read(from),+ capacityBytes: FfiConverterUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppDriveRequestInput.write(value.requests, into);- FfiConverterSequenceTypeAppDriveGrantInput.write(value.grants, into);- FfiConverterUInt64.write(value.nowMs, into);- FfiConverterOptionalTypeAppDriveMountInput.write(value.mount, into);- FfiConverterOptionalTypeAppDriveSyncInput.write(value.sync, into);- FfiConverterOptionalString.write(value.home, into);+ FfiConverterUInt64.write(value.sizeBytes, into);+ FfiConverterUInt64.write(value.capacityBytes, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppDriveRequestInput.allocationSize(value.requests) +- FfiConverterSequenceTypeAppDriveGrantInput.allocationSize(value.grants) +- FfiConverterUInt64.allocationSize(value.nowMs) +- FfiConverterOptionalTypeAppDriveMountInput.allocationSize(value.mount) +- FfiConverterOptionalTypeAppDriveSyncInput.allocationSize(value.sync) +- FfiConverterOptionalString.allocationSize(value.home);+ return FfiConverterUInt64.allocationSize(value.sizeBytes) ++ FfiConverterUInt64.allocationSize(value.capacityBytes);}};return new FFIConverter();})();-export type AppPreviewPoint = {+export enum AppSettingsRowKind {/**- * Left.+ * Label, value and an optional button.*/- x: number,+ Text = "text",/**- * Down.+ * Label and a segmented choice.*/- y: number+ Choice = "choice",+ /**+ * A muted line (with an optional link).+ */+ Note = "note",+ /**+ * An error line.+ */+ Error = "error",+ /**+ * Label and a text field (`value` is its text).+ */+ Field = "field",+ /**+ * Label and a secure text field (`value` is its text).+ */+ Secret = "secret",+ /**+ * A label over read-only text to copy (`value`), with a Copy button.+ */+ Prompt = "prompt",+ /**+ * A small link-style button (the label).+ */+ Link = "link",+ /**+ * Label and a switch: `options` are `on` and `off`, the active one is+ * its state (a choice drawn as a switch).+ */+ Toggle = "toggle"}-/**- * Generated factory for {@link AppPreviewPoint} record objects.- */-export const AppPreviewPoint = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPreviewPoint, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPreviewPoint>,- });-})();--const FfiConverterTypeAppPreviewPoint = (() => {- type TypeName = AppPreviewPoint;+const FfiConverterTypeAppSettingsRowKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppSettingsRowKind;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- x: FfiConverterFloat64.read(from),- y: FfiConverterFloat64.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppSettingsRowKind.Text;+ case 2: return AppSettingsRowKind.Choice;+ case 3: return AppSettingsRowKind.Note;+ case 4: return AppSettingsRowKind.Error;+ case 5: return AppSettingsRowKind.Field;+ case 6: return AppSettingsRowKind.Secret;+ case 7: return AppSettingsRowKind.Prompt;+ case 8: return AppSettingsRowKind.Link;+ case 9: return AppSettingsRowKind.Toggle;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.x, into);- FfiConverterFloat64.write(value.y, into);+ switch (value) {+ case AppSettingsRowKind.Text: return ordinalConverter.write(1, into);+ case AppSettingsRowKind.Choice: return ordinalConverter.write(2, into);+ case AppSettingsRowKind.Note: return ordinalConverter.write(3, into);+ case AppSettingsRowKind.Error: return ordinalConverter.write(4, into);+ case AppSettingsRowKind.Field: return ordinalConverter.write(5, into);+ case AppSettingsRowKind.Secret: return ordinalConverter.write(6, into);+ case AppSettingsRowKind.Prompt: return ordinalConverter.write(7, into);+ case AppSettingsRowKind.Link: return ordinalConverter.write(8, into);+ case AppSettingsRowKind.Toggle: return ordinalConverter.write(9, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.x) +- FfiConverterFloat64.allocationSize(value.y);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppDriveMountFrame = {+export type AppSettingsRow = {/**- * The volume in the sidebar, 0 absent to 1 shown (and selected).+ * Stable id (`account`, `sign-in`, `notch`, `agent:codex`, ...).*/- volume: number,+ id: string,/**- * The file in flight: its icon's top left (drawn above both windows).+ * How it draws.*/- flight?: AppPreviewPoint,+ kind: AppSettingsRowKind,/**- * Each file in the volume, 0 absent to 1 shown.+ * Label (or the note's text).*/- arrived: Array<number>-}--/**- * Generated factory for {@link AppDriveMountFrame} record objects.- */-export const AppDriveMountFrame = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppDriveMountFrame, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveMountFrame>,- });-})();--const FfiConverterTypeAppDriveMountFrame = (() => {- type TypeName = AppDriveMountFrame;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- volume: FfiConverterFloat64.read(from),- flight: FfiConverterOptionalTypeAppPreviewPoint.read(from),- arrived: FfiConverterSequenceFloat64.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.volume, into);- FfiConverterOptionalTypeAppPreviewPoint.write(value.flight, into);- FfiConverterSequenceFloat64.write(value.arrived, into);- }- allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.volume) +- FfiConverterOptionalTypeAppPreviewPoint.allocationSize(value.flight) +- FfiConverterSequenceFloat64.allocationSize(value.arrived);-- }- };- return new FFIConverter();-})();--export type AppPreviewWindow = {+ label: string,/**- * Its frame on the stage.+ * Muted value.*/- frame: AppLogicalRect,+ value?: string,/**- * The title bar's height (the three window buttons sit in it).+ * A button's label.*/- titleBar: number,+ button?: string,/**- * Corner radius.+ * A choice's options.*/- radius: number+ options: Array<AppSettingsOption>,+ /**+ * The button or choice can be used.+ */+ enabled: boolean,+ /**+ * Tooltip.+ */+ help?: string,+ /**+ * A note's link: label.+ */+ linkLabel?: string,+ /**+ * A note's link: URL (or what a Text row's button opens).+ */+ linkUrl?: string,+ /**+ * A field's placeholder.+ */+ placeholder?: string}/**- * Generated factory for {@link AppPreviewWindow} record objects.+ * Generated factory for {@link AppSettingsRow} record objects.*/-export const AppPreviewWindow = (() => {+export const AppSettingsRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPreviewWindow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSettingsRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPreviewWindow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSettingsRow>,});})();-const FfiConverterTypeAppPreviewWindow = (() => {- type TypeName = AppPreviewWindow;+const FfiConverterTypeAppSettingsRow = (() => {+ type TypeName = AppSettingsRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- frame: FfiConverterTypeAppLogicalRect.read(from),- titleBar: FfiConverterFloat64.read(from),- radius: FfiConverterFloat64.read(from)+ id: FfiConverterString.read(from),+ kind: FfiConverterTypeAppSettingsRowKind.read(from),+ label: FfiConverterString.read(from),+ value: FfiConverterOptionalString.read(from),+ button: FfiConverterOptionalString.read(from),+ options: FfiConverterSequenceTypeAppSettingsOption.read(from),+ enabled: FfiConverterBool.read(from),+ help: FfiConverterOptionalString.read(from),+ linkLabel: FfiConverterOptionalString.read(from),+ linkUrl: FfiConverterOptionalString.read(from),+ placeholder: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLogicalRect.write(value.frame, into);- FfiConverterFloat64.write(value.titleBar, into);- FfiConverterFloat64.write(value.radius, into);+ FfiConverterString.write(value.id, into);+ FfiConverterTypeAppSettingsRowKind.write(value.kind, into);+ FfiConverterString.write(value.label, into);+ FfiConverterOptionalString.write(value.value, into);+ FfiConverterOptionalString.write(value.button, into);+ FfiConverterSequenceTypeAppSettingsOption.write(value.options, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterOptionalString.write(value.help, into);+ FfiConverterOptionalString.write(value.linkLabel, into);+ FfiConverterOptionalString.write(value.linkUrl, into);+ FfiConverterOptionalString.write(value.placeholder, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLogicalRect.allocationSize(value.frame) +- FfiConverterFloat64.allocationSize(value.titleBar) +- FfiConverterFloat64.allocationSize(value.radius);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterTypeAppSettingsRowKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterOptionalString.allocationSize(value.value) ++ FfiConverterOptionalString.allocationSize(value.button) ++ FfiConverterSequenceTypeAppSettingsOption.allocationSize(value.options) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterOptionalString.allocationSize(value.help) ++ FfiConverterOptionalString.allocationSize(value.linkLabel) ++ FfiConverterOptionalString.allocationSize(value.linkUrl) ++ FfiConverterOptionalString.allocationSize(value.placeholder);}};return new FFIConverter();})();-export type AppDriveMountPreview = {+export type AppDriveCard = {/**- * Stage width.+ * "Add Cua Volume to Finder" (Linux: "Mount Cua Volume").*/- width: number,+ label: string,/**- * Stage height.+ * The miniature's spoken description.*/- height: number,+ imageLabel: string,/**- * One loop (ms).+ * Ticked.*/- loopMs: number,+ checked: boolean,/**- * The Space (left).+ * The checkbox can be used (the daemon can mount here).*/- space: AppPreviewWindow,+ enabled: boolean,/**- * The Finder window (right).+ * Mounting or unmounting.*/- finder: AppPreviewWindow,+ busy: boolean,/**- * The Finder window's sidebar (a shade darker than its content).+ * One muted line under it (checking, why not, what to approve).*/- sidebar: AppLogicalRect,+ note?: string,/**- * The sidebar's other places (placeholder bars).+ * Why mounting failed.*/- places: Array<AppLogicalRect>,+ error?: string,/**- * The volume's row in the sidebar (the selection highlight).+ * "Open System Settings" while macOS waits for the extension's+ * approval.*/- volume: AppLogicalRect,+ settingsLabel?: string,/**- * The volume's drive glyph.+ * Where it goes.*/- volumeIcon: AppLogicalRect,+ settingsUrl?: string,/**- * The volume's name, drawn from `volume_label_x`, centred on the row.+ * "Where your files live" (none until the daemon answered).*/- volumeLabel: string,+ storageTitle?: string,/**- * Where the name starts.+ * This Mac, Your S3 bucket, Set up later.*/- volumeLabelX: number,+ storageOptions: Array<AppSettingsOption>,/**- * The name's font size.+ * The bucket's fields, Test connection and its answer (Your S3+ * bucket), drawn like Settings' rows.*/- fontSize: number,+ storageRows: Array<AppSettingsRow>,/**- * The Space's files (icons), top to bottom.+ * One muted line for Set up later.*/- sourceIcons: Array<AppLogicalRect>,+ storageNote?: string,/**- * Their name bars.+ * This Mac: "Stored in ~/.cua/volume/data" (the daemon's path).*/- sourceLabels: Array<AppLogicalRect>,+ storedIn?: string,/**- * Where each file lands in the volume (icons).+ * The mounted volume: "In Finder at ~/Cua Volume".*/- destIcons: Array<AppLogicalRect>,+ mountedAt?: string,/**- * Their name bars.+ * Full paths for tooltips and Show in Finder: stored, mounted.*/- destLabels: Array<AppLogicalRect>+ storedPath?: string,+ mountedPath?: string,+ /**+ * Continue can be pressed.+ */+ canContinue: boolean}/**- * Generated factory for {@link AppDriveMountPreview} record objects.+ * Generated factory for {@link AppDriveCard} record objects.*/-export const AppDriveMountPreview = (() => {+export const AppDriveCard = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveMountPreview, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveCard, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveMountPreview>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveCard>,});})();-const FfiConverterTypeAppDriveMountPreview = (() => {- type TypeName = AppDriveMountPreview;+const FfiConverterTypeAppDriveCard = (() => {+ type TypeName = AppDriveCard;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- width: FfiConverterFloat64.read(from),- height: FfiConverterFloat64.read(from),- loopMs: FfiConverterUInt32.read(from),- space: FfiConverterTypeAppPreviewWindow.read(from),- finder: FfiConverterTypeAppPreviewWindow.read(from),- sidebar: FfiConverterTypeAppLogicalRect.read(from),- places: FfiConverterSequenceTypeAppLogicalRect.read(from),- volume: FfiConverterTypeAppLogicalRect.read(from),- volumeIcon: FfiConverterTypeAppLogicalRect.read(from),- volumeLabel: FfiConverterString.read(from),- volumeLabelX: FfiConverterFloat64.read(from),- fontSize: FfiConverterFloat64.read(from),- sourceIcons: FfiConverterSequenceTypeAppLogicalRect.read(from),- sourceLabels: FfiConverterSequenceTypeAppLogicalRect.read(from),- destIcons: FfiConverterSequenceTypeAppLogicalRect.read(from),- destLabels: FfiConverterSequenceTypeAppLogicalRect.read(from)+ label: FfiConverterString.read(from),+ imageLabel: FfiConverterString.read(from),+ checked: FfiConverterBool.read(from),+ enabled: FfiConverterBool.read(from),+ busy: FfiConverterBool.read(from),+ note: FfiConverterOptionalString.read(from),+ error: FfiConverterOptionalString.read(from),+ settingsLabel: FfiConverterOptionalString.read(from),+ settingsUrl: FfiConverterOptionalString.read(from),+ storageTitle: FfiConverterOptionalString.read(from),+ storageOptions: FfiConverterSequenceTypeAppSettingsOption.read(from),+ storageRows: FfiConverterSequenceTypeAppSettingsRow.read(from),+ storageNote: FfiConverterOptionalString.read(from),+ storedIn: FfiConverterOptionalString.read(from),+ mountedAt: FfiConverterOptionalString.read(from),+ storedPath: FfiConverterOptionalString.read(from),+ mountedPath: FfiConverterOptionalString.read(from),+ canContinue: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.width, into);- FfiConverterFloat64.write(value.height, into);- FfiConverterUInt32.write(value.loopMs, into);- FfiConverterTypeAppPreviewWindow.write(value.space, into);- FfiConverterTypeAppPreviewWindow.write(value.finder, into);- FfiConverterTypeAppLogicalRect.write(value.sidebar, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.places, into);- FfiConverterTypeAppLogicalRect.write(value.volume, into);- FfiConverterTypeAppLogicalRect.write(value.volumeIcon, into);- FfiConverterString.write(value.volumeLabel, into);- FfiConverterFloat64.write(value.volumeLabelX, into);- FfiConverterFloat64.write(value.fontSize, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.sourceIcons, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.sourceLabels, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.destIcons, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.destLabels, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.imageLabel, into);+ FfiConverterBool.write(value.checked, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.note, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalString.write(value.settingsLabel, into);+ FfiConverterOptionalString.write(value.settingsUrl, into);+ FfiConverterOptionalString.write(value.storageTitle, into);+ FfiConverterSequenceTypeAppSettingsOption.write(value.storageOptions, into);+ FfiConverterSequenceTypeAppSettingsRow.write(value.storageRows, into);+ FfiConverterOptionalString.write(value.storageNote, into);+ FfiConverterOptionalString.write(value.storedIn, into);+ FfiConverterOptionalString.write(value.mountedAt, into);+ FfiConverterOptionalString.write(value.storedPath, into);+ FfiConverterOptionalString.write(value.mountedPath, into);+ FfiConverterBool.write(value.canContinue, into);}allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.width) +- FfiConverterFloat64.allocationSize(value.height) +- FfiConverterUInt32.allocationSize(value.loopMs) +- FfiConverterTypeAppPreviewWindow.allocationSize(value.space) +- FfiConverterTypeAppPreviewWindow.allocationSize(value.finder) +- FfiConverterTypeAppLogicalRect.allocationSize(value.sidebar) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.places) +- FfiConverterTypeAppLogicalRect.allocationSize(value.volume) +- FfiConverterTypeAppLogicalRect.allocationSize(value.volumeIcon) +- FfiConverterString.allocationSize(value.volumeLabel) +- FfiConverterFloat64.allocationSize(value.volumeLabelX) +- FfiConverterFloat64.allocationSize(value.fontSize) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.sourceIcons) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.sourceLabels) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.destIcons) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.destLabels);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.imageLabel) ++ FfiConverterBool.allocationSize(value.checked) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.note) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalString.allocationSize(value.settingsLabel) ++ FfiConverterOptionalString.allocationSize(value.settingsUrl) ++ FfiConverterOptionalString.allocationSize(value.storageTitle) ++ FfiConverterSequenceTypeAppSettingsOption.allocationSize(value.storageOptions) ++ FfiConverterSequenceTypeAppSettingsRow.allocationSize(value.storageRows) ++ FfiConverterOptionalString.allocationSize(value.storageNote) ++ FfiConverterOptionalString.allocationSize(value.storedIn) ++ FfiConverterOptionalString.allocationSize(value.mountedAt) ++ FfiConverterOptionalString.allocationSize(value.storedPath) ++ FfiConverterOptionalString.allocationSize(value.mountedPath) ++ FfiConverterBool.allocationSize(value.canContinue);}};return new FFIConverter();})();-export type AppDriveS3Input = {- /**- * None: AWS.- */- endpoint?: string,- region: string,- bucket: string,+export type AppDriveCheckInput = {+ ok: boolean,+ reachable: boolean,+ authorized: boolean,+ versioning: boolean,+ detail?: string,/**- * A key prefix inside the bucket.+ * Saved, and the daemon switched to it.*/- root: string,- pathStyle: boolean+ applied: boolean}/**- * Generated factory for {@link AppDriveS3Input} record objects.+ * Generated factory for {@link AppDriveCheckInput} record objects.*/-export const AppDriveS3Input = (() => {+export const AppDriveCheckInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveS3Input, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveCheckInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveS3Input>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveCheckInput>,});})();-const FfiConverterTypeAppDriveS3Input = (() => {- type TypeName = AppDriveS3Input;+const FfiConverterTypeAppDriveCheckInput = (() => {+ type TypeName = AppDriveCheckInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- endpoint: FfiConverterOptionalString.read(from),- region: FfiConverterString.read(from),- bucket: FfiConverterString.read(from),- root: FfiConverterString.read(from),- pathStyle: FfiConverterBool.read(from)+ ok: FfiConverterBool.read(from),+ reachable: FfiConverterBool.read(from),+ authorized: FfiConverterBool.read(from),+ versioning: FfiConverterBool.read(from),+ detail: FfiConverterOptionalString.read(from),+ applied: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.endpoint, into);- FfiConverterString.write(value.region, into);- FfiConverterString.write(value.bucket, into);- FfiConverterString.write(value.root, into);- FfiConverterBool.write(value.pathStyle, into);+ FfiConverterBool.write(value.ok, into);+ FfiConverterBool.write(value.reachable, into);+ FfiConverterBool.write(value.authorized, into);+ FfiConverterBool.write(value.versioning, into);+ FfiConverterOptionalString.write(value.detail, into);+ FfiConverterBool.write(value.applied, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.endpoint) +- FfiConverterString.allocationSize(value.region) +- FfiConverterString.allocationSize(value.bucket) +- FfiConverterString.allocationSize(value.root) +- FfiConverterBool.allocationSize(value.pathStyle);+ return FfiConverterBool.allocationSize(value.ok) ++ FfiConverterBool.allocationSize(value.reachable) ++ FfiConverterBool.allocationSize(value.authorized) ++ FfiConverterBool.allocationSize(value.versioning) ++ FfiConverterOptionalString.allocationSize(value.detail) ++ FfiConverterBool.allocationSize(value.applied);}};return new FFIConverter();})();--// Enum: AppDriveRequest-export enum AppDriveRequest_Tags {- Load = "Load",- MountAndReveal = "MountAndReveal",- Approve = "Approve",- Deny = "Deny",- Revoke = "Revoke",- Reveal = "Reveal",- Resolve = "Resolve"-}-export const AppDriveRequest = (() => {-- type Load__interface = {- tag: AppDriveRequest_Tags.Load- };+export type AppDriveConflictInput = {/**- * Read the page: `volume_requests`, `volume_grants`,- * `volume_mount_status`, `volume_sync_status`.+ * The file (the drive's path).*/- class Load_ extends UniffiEnum implements Load__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDriveRequest";- readonly tag = AppDriveRequest_Tags.Load;- constructor() {- super("AppDriveRequest", "Load");- }-- static new(): Load_ {- return new Load_();- }-- static instanceOf(obj: any): obj is Load_ {- return obj.tag === AppDriveRequest_Tags.Load;- }-- }-- type MountAndReveal__interface = {- tag: AppDriveRequest_Tags.MountAndReveal- };+ path: string,/**- * `volume_mount`, then show the mount point in the file manager.+ * The visible copy holding the losing write.*/- class MountAndReveal_ extends UniffiEnum implements MountAndReveal__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDriveRequest";- readonly tag = AppDriveRequest_Tags.MountAndReveal;- constructor() {- super("AppDriveRequest", "MountAndReveal");- }+ conflictPath: string,+ winnerDevice: string,+ loserDevice: string,+ tsMs: bigint+}- static new(): MountAndReveal_ {- return new MountAndReveal_();- }+/**+ * Generated factory for {@link AppDriveConflictInput} record objects.+ */+export const AppDriveConflictInput = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppDriveConflictInput, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveConflictInput>,+ });+})();- static instanceOf(obj: any): obj is MountAndReveal_ {- return obj.tag === AppDriveRequest_Tags.MountAndReveal;+const FfiConverterTypeAppDriveConflictInput = (() => {+ type TypeName = AppDriveConflictInput;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ path: FfiConverterString.read(from),+ conflictPath: FfiConverterString.read(from),+ winnerDevice: FfiConverterString.read(from),+ loserDevice: FfiConverterString.read(from),+ tsMs: FfiConverterUInt64.read(from)+ };}+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.path, into);+ FfiConverterString.write(value.conflictPath, into);+ FfiConverterString.write(value.winnerDevice, into);+ FfiConverterString.write(value.loserDevice, into);+ FfiConverterUInt64.write(value.tsMs, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.path) ++ FfiConverterString.allocationSize(value.conflictPath) ++ FfiConverterString.allocationSize(value.winnerDevice) ++ FfiConverterString.allocationSize(value.loserDevice) ++ FfiConverterUInt64.allocationSize(value.tsMs);- }-- type Approve__interface = {- tag: AppDriveRequest_Tags.Approve;- inner:-Readonly<{id: string}>+ }};+ return new FFIConverter();+})();++export type AppDriveDeviceInput = {+ id: string,+ name: string,+ thisDevice: boolean,/**- * `volume_approve` (the daemon asks for presence).+ * Its last heartbeat or change (Unix ms).*/- class Approve_ extends UniffiEnum implements Approve__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDriveRequest";- readonly tag = AppDriveRequest_Tags.Approve;- readonly inner:-Readonly<{id: string}>;- constructor(-inner: {id: string }) {- super("AppDriveRequest", "Approve");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string }): Approve_ {- return new Approve_(inner);- }-- static instanceOf(obj: any): obj is Approve_ {- return obj.tag === AppDriveRequest_Tags.Approve;- }-- }-- type Deny__interface = {- tag: AppDriveRequest_Tags.Deny;- inner:-Readonly<{id: string}>- };- /**- * `volume_deny`.- */- class Deny_ extends UniffiEnum implements Deny__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDriveRequest";- readonly tag = AppDriveRequest_Tags.Deny;- readonly inner:-Readonly<{id: string}>;- constructor(-inner: {id: string }) {- super("AppDriveRequest", "Deny");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string }): Deny_ {- return new Deny_(inner);- }-- static instanceOf(obj: any): obj is Deny_ {- return obj.tag === AppDriveRequest_Tags.Deny;- }-- }-- type Revoke__interface = {- tag: AppDriveRequest_Tags.Revoke;- inner:-Readonly<{id: string}>- };- /**- * `volume_revoke`.- */- class Revoke_ extends UniffiEnum implements Revoke__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDriveRequest";- readonly tag = AppDriveRequest_Tags.Revoke;- readonly inner:-Readonly<{id: string}>;- constructor(-inner: {id: string }) {- super("AppDriveRequest", "Revoke");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string }): Revoke_ {- return new Revoke_(inner);- }-- static instanceOf(obj: any): obj is Revoke_ {- return obj.tag === AppDriveRequest_Tags.Revoke;- }-- }-- type Reveal__interface = {- tag: AppDriveRequest_Tags.Reveal;- inner:-Readonly<{path: string}>- };- /**- * Show a path in the file manager (the shell's own call).- */- class Reveal_ extends UniffiEnum implements Reveal__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDriveRequest";- readonly tag = AppDriveRequest_Tags.Reveal;- readonly inner:-Readonly<{path: string}>;- constructor(-inner: {path: string }) {- super("AppDriveRequest", "Reveal");-- this.inner = Object.freeze(inner);- }- static new(-inner: {path: string }): Reveal_ {- return new Reveal_(inner);- }-- static instanceOf(obj: any): obj is Reveal_ {- return obj.tag === AppDriveRequest_Tags.Reveal;- }-- }-- type Resolve__interface = {- tag: AppDriveRequest_Tags.Resolve;- inner:-Readonly<{path: string}>- };- /**- * `volume_sync_resolve`.- */- class Resolve_ extends UniffiEnum implements Resolve__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppDriveRequest";- readonly tag = AppDriveRequest_Tags.Resolve;- readonly inner:-Readonly<{path: string}>;- constructor(-inner: {path: string }) {- super("AppDriveRequest", "Resolve");-- this.inner = Object.freeze(inner);- }- static new(-inner: {path: string }): Resolve_ {- return new Resolve_(inner);- }-- static instanceOf(obj: any): obj is Resolve_ {- return obj.tag === AppDriveRequest_Tags.Resolve;- }-- }-- function instanceOf(obj: any): obj is AppDriveRequest {- return obj[uniffiTypeNameSymbol] === "AppDriveRequest";- }-- return Object.freeze({- instanceOf,- Load: Load_,- MountAndReveal: MountAndReveal_,- Approve: Approve_,- Deny: Deny_,- Revoke: Revoke_,- Reveal: Reveal_,- Resolve: Resolve_- });--})();-export type AppDriveRequest = InstanceType<- typeof AppDriveRequest['Load' | 'MountAndReveal' | 'Approve' | 'Deny' | 'Revoke' | 'Reveal' | 'Resolve']->;--// FfiConverter for enum AppDriveRequest-const FfiConverterTypeAppDriveRequest = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppDriveRequest;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppDriveRequest.Load();- case 2: return new AppDriveRequest.MountAndReveal();- case 3: return new AppDriveRequest.Approve({id: FfiConverterString.read(from) });- case 4: return new AppDriveRequest.Deny({id: FfiConverterString.read(from) });- case 5: return new AppDriveRequest.Revoke({id: FfiConverterString.read(from) });- case 6: return new AppDriveRequest.Reveal({path: FfiConverterString.read(from) });- case 7: return new AppDriveRequest.Resolve({path: FfiConverterString.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppDriveRequest_Tags.Load: {- ordinalConverter.write(1, into);- return;- }- case AppDriveRequest_Tags.MountAndReveal: {- ordinalConverter.write(2, into);- return;- }- case AppDriveRequest_Tags.Approve: {- ordinalConverter.write(3, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case AppDriveRequest_Tags.Deny: {- ordinalConverter.write(4, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case AppDriveRequest_Tags.Revoke: {- ordinalConverter.write(5, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case AppDriveRequest_Tags.Reveal: {- ordinalConverter.write(6, into);- const inner = value.inner;- FfiConverterString.write(inner.path, into);- return;- }- case AppDriveRequest_Tags.Resolve: {- ordinalConverter.write(7, into);- const inner = value.inner;- FfiConverterString.write(inner.path, into);- return;- }- default:- // Throwing from here means that AppDriveRequest_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case AppDriveRequest_Tags.Load: {- return ordinalConverter.allocationSize(1);- }- case AppDriveRequest_Tags.MountAndReveal: {- return ordinalConverter.allocationSize(2);- }- case AppDriveRequest_Tags.Approve: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(3);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case AppDriveRequest_Tags.Deny: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(4);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case AppDriveRequest_Tags.Revoke: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(5);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case AppDriveRequest_Tags.Reveal: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(6);- size += FfiConverterString.allocationSize(inner.path);- return size;- }- case AppDriveRequest_Tags.Resolve: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(7);- size += FfiConverterString.allocationSize(inner.path);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- }- return new FFIConverter();-})();--export type AppDriveState = {- busy: boolean,- error?: string,- request?: AppDriveRequest-}+ lastSeenMs: bigint,+ lastChangeMs: bigint+}/**- * Generated factory for {@link AppDriveState} record objects.+ * Generated factory for {@link AppDriveDeviceInput} record objects.*/-export const AppDriveState = (() => {+export const AppDriveDeviceInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveDeviceInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveDeviceInput>,});})();-const FfiConverterTypeAppDriveState = (() => {- type TypeName = AppDriveState;+const FfiConverterTypeAppDriveDeviceInput = (() => {+ type TypeName = AppDriveDeviceInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- busy: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- request: FfiConverterOptionalTypeAppDriveRequest.read(from)+ id: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ thisDevice: FfiConverterBool.read(from),+ lastSeenMs: FfiConverterUInt64.read(from),+ lastChangeMs: FfiConverterUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalTypeAppDriveRequest.write(value.request, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.name, into);+ FfiConverterBool.write(value.thisDevice, into);+ FfiConverterUInt64.write(value.lastSeenMs, into);+ FfiConverterUInt64.write(value.lastChangeMs, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalTypeAppDriveRequest.allocationSize(value.request);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterBool.allocationSize(value.thisDevice) ++ FfiConverterUInt64.allocationSize(value.lastSeenMs) ++ FfiConverterUInt64.allocationSize(value.lastChangeMs);}};return new FFIConverter();})();-export type AppDriveStorageInput = {- /**- * `fs` or `s3` (`cloud` is never offered).- */- backend: string,- /**- * Where `fs` keeps the bytes.- */- fsPath: string,- s3?: AppDriveS3Input,- /**- * S3 keys are saved in the credential store.- */- hasKeys: boolean+export type AppDriveGrantInput = {+ id: string,+ principal: string,+ prefix: string,+ mode: string,+ revoked: boolean}/**- * Generated factory for {@link AppDriveStorageInput} record objects.+ * Generated factory for {@link AppDriveGrantInput} record objects.*/-export const AppDriveStorageInput = (() => {+export const AppDriveGrantInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveStorageInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveGrantInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveStorageInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveGrantInput>,});})();-const FfiConverterTypeAppDriveStorageInput = (() => {- type TypeName = AppDriveStorageInput;+const FfiConverterTypeAppDriveGrantInput = (() => {+ type TypeName = AppDriveGrantInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- backend: FfiConverterString.read(from),- fsPath: FfiConverterString.read(from),- s3: FfiConverterOptionalTypeAppDriveS3Input.read(from),- hasKeys: FfiConverterBool.read(from)+ id: FfiConverterString.read(from),+ principal: FfiConverterString.read(from),+ prefix: FfiConverterString.read(from),+ mode: FfiConverterString.read(from),+ revoked: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.backend, into);- FfiConverterString.write(value.fsPath, into);- FfiConverterOptionalTypeAppDriveS3Input.write(value.s3, into);- FfiConverterBool.write(value.hasKeys, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.principal, into);+ FfiConverterString.write(value.prefix, into);+ FfiConverterString.write(value.mode, into);+ FfiConverterBool.write(value.revoked, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.backend) +- FfiConverterString.allocationSize(value.fsPath) +- FfiConverterOptionalTypeAppDriveS3Input.allocationSize(value.s3) +- FfiConverterBool.allocationSize(value.hasKeys);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.principal) ++ FfiConverterString.allocationSize(value.prefix) ++ FfiConverterString.allocationSize(value.mode) ++ FfiConverterBool.allocationSize(value.revoked);}};return new FFIConverter();})();-export type AppDriveStorageUpdate = {- backend: string,- s3?: AppDriveS3Input,+export type AppDriveRequestInput = {+ id: string,/**- * Both keys or neither.+ * `agent:ada`.*/- accessKeyId?: string,- secretAccessKey?: string,+ principal: string,+ prefix: string,/**- * Only check ("Test connection").+ * `r` or `rw`.*/- dryRun: boolean+ mode: string,+ reason: string}/**- * Generated factory for {@link AppDriveStorageUpdate} record objects.+ * Generated factory for {@link AppDriveRequestInput} record objects.*/-export const AppDriveStorageUpdate = (() => {+export const AppDriveRequestInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveStorageUpdate, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveRequestInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveStorageUpdate>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveRequestInput>,});})();-const FfiConverterTypeAppDriveStorageUpdate = (() => {- type TypeName = AppDriveStorageUpdate;+const FfiConverterTypeAppDriveRequestInput = (() => {+ type TypeName = AppDriveRequestInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- backend: FfiConverterString.read(from),- s3: FfiConverterOptionalTypeAppDriveS3Input.read(from),- accessKeyId: FfiConverterOptionalString.read(from),- secretAccessKey: FfiConverterOptionalString.read(from),- dryRun: FfiConverterBool.read(from)+ id: FfiConverterString.read(from),+ principal: FfiConverterString.read(from),+ prefix: FfiConverterString.read(from),+ mode: FfiConverterString.read(from),+ reason: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.backend, into);- FfiConverterOptionalTypeAppDriveS3Input.write(value.s3, into);- FfiConverterOptionalString.write(value.accessKeyId, into);- FfiConverterOptionalString.write(value.secretAccessKey, into);- FfiConverterBool.write(value.dryRun, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.principal, into);+ FfiConverterString.write(value.prefix, into);+ FfiConverterString.write(value.mode, into);+ FfiConverterString.write(value.reason, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.backend) +- FfiConverterOptionalTypeAppDriveS3Input.allocationSize(value.s3) +- FfiConverterOptionalString.allocationSize(value.accessKeyId) +- FfiConverterOptionalString.allocationSize(value.secretAccessKey) +- FfiConverterBool.allocationSize(value.dryRun);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.principal) ++ FfiConverterString.allocationSize(value.prefix) ++ FfiConverterString.allocationSize(value.mode) ++ FfiConverterString.allocationSize(value.reason);}};return new FFIConverter();})();-export type AppDriveView = {- title: string,- requestsTitle: string,- requests: Array<AppLineView>,- grantsTitle: string,- grants: Array<AppLineView>,- grantsEmpty: string,- busy: boolean,- error?: string,- request?: AppDriveRequest,- /**- * [`DriveRequest::text`] of `request`.- */- requestText?: string,- /**- * "Open in Finder" (Linux: "Open folder"): mounts first when the- * volume is not mounted. None where it cannot mount.- */- openLabel?: string,+export type AppDriveMountInput = {/**- * The mount point, when mounted.+ * The user's opt-in.*/- mountPath?: string,+ enabled: boolean,/**- * One quiet line: where it is mounted ("In Finder at ~/Cua Volume"),- * or that it is not.+ * `off`, `mounting`, `mounted`, `needs_approval`, `unsupported`, `error`.*/- mountLine?: string,+ state: string,/**- * "Devices".+ * `fskit`, `nfs`, `fuse`, `none`.*/- devicesTitle: string,+ method: string,/**- * One line per device, this one first: when it last synced, what is- * pending.+ * The mount point when mounted.*/- devices: Array<AppLineView>,+ path?: string,/**- * Why nothing syncs, or the feed's error.+ * "Cua Volume".*/- syncNote?: string,+ volumeName: string,/**- * The note is an error.+ * One sentence for `error`, `needs_approval`, `unsupported`.*/- syncError: boolean,+ detail?: string,/**- * "Conflicts".+ * `needs_approval`: System Settings' file system extensions.*/- conflictsTitle: string,- conflicts: Array<AppConflictView>+ settingsUrl?: string}/**- * Generated factory for {@link AppDriveView} record objects.+ * Generated factory for {@link AppDriveMountInput} record objects.*/-export const AppDriveView = (() => {+export const AppDriveMountInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriveView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveMountInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriveView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveMountInput>,});})();-const FfiConverterTypeAppDriveView = (() => {- type TypeName = AppDriveView;+const FfiConverterTypeAppDriveMountInput = (() => {+ type TypeName = AppDriveMountInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- requestsTitle: FfiConverterString.read(from),- requests: FfiConverterSequenceTypeAppLineView.read(from),- grantsTitle: FfiConverterString.read(from),- grants: FfiConverterSequenceTypeAppLineView.read(from),- grantsEmpty: FfiConverterString.read(from),- busy: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- request: FfiConverterOptionalTypeAppDriveRequest.read(from),- requestText: FfiConverterOptionalString.read(from),- openLabel: FfiConverterOptionalString.read(from),- mountPath: FfiConverterOptionalString.read(from),- mountLine: FfiConverterOptionalString.read(from),- devicesTitle: FfiConverterString.read(from),- devices: FfiConverterSequenceTypeAppLineView.read(from),- syncNote: FfiConverterOptionalString.read(from),- syncError: FfiConverterBool.read(from),- conflictsTitle: FfiConverterString.read(from),- conflicts: FfiConverterSequenceTypeAppConflictView.read(from)+ enabled: FfiConverterBool.read(from),+ state: FfiConverterString.read(from),+ method: FfiConverterString.read(from),+ path: FfiConverterOptionalString.read(from),+ volumeName: FfiConverterString.read(from),+ detail: FfiConverterOptionalString.read(from),+ settingsUrl: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.requestsTitle, into);- FfiConverterSequenceTypeAppLineView.write(value.requests, into);- FfiConverterString.write(value.grantsTitle, into);- FfiConverterSequenceTypeAppLineView.write(value.grants, into);- FfiConverterString.write(value.grantsEmpty, into);- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalTypeAppDriveRequest.write(value.request, into);- FfiConverterOptionalString.write(value.requestText, into);- FfiConverterOptionalString.write(value.openLabel, into);- FfiConverterOptionalString.write(value.mountPath, into);- FfiConverterOptionalString.write(value.mountLine, into);- FfiConverterString.write(value.devicesTitle, into);- FfiConverterSequenceTypeAppLineView.write(value.devices, into);- FfiConverterOptionalString.write(value.syncNote, into);- FfiConverterBool.write(value.syncError, into);- FfiConverterString.write(value.conflictsTitle, into);- FfiConverterSequenceTypeAppConflictView.write(value.conflicts, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterString.write(value.state, into);+ FfiConverterString.write(value.method, into);+ FfiConverterOptionalString.write(value.path, into);+ FfiConverterString.write(value.volumeName, into);+ FfiConverterOptionalString.write(value.detail, into);+ FfiConverterOptionalString.write(value.settingsUrl, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.requestsTitle) +- FfiConverterSequenceTypeAppLineView.allocationSize(value.requests) +- FfiConverterString.allocationSize(value.grantsTitle) +- FfiConverterSequenceTypeAppLineView.allocationSize(value.grants) +- FfiConverterString.allocationSize(value.grantsEmpty) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalTypeAppDriveRequest.allocationSize(value.request) +- FfiConverterOptionalString.allocationSize(value.requestText) +- FfiConverterOptionalString.allocationSize(value.openLabel) +- FfiConverterOptionalString.allocationSize(value.mountPath) +- FfiConverterOptionalString.allocationSize(value.mountLine) +- FfiConverterString.allocationSize(value.devicesTitle) +- FfiConverterSequenceTypeAppLineView.allocationSize(value.devices) +- FfiConverterOptionalString.allocationSize(value.syncNote) +- FfiConverterBool.allocationSize(value.syncError) +- FfiConverterString.allocationSize(value.conflictsTitle) +- FfiConverterSequenceTypeAppConflictView.allocationSize(value.conflicts);+ return FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterString.allocationSize(value.state) ++ FfiConverterString.allocationSize(value.method) ++ FfiConverterOptionalString.allocationSize(value.path) ++ FfiConverterString.allocationSize(value.volumeName) ++ FfiConverterOptionalString.allocationSize(value.detail) ++ FfiConverterOptionalString.allocationSize(value.settingsUrl);}};return new FFIConverter();})();-export type AppDriverFrame = {- /**- * The user's pointer tip.- */- pointer: AppPreviewPoint,- /**- * The user presses (drawn a little smaller).- */- pressed: boolean,- /**- * How much of the selected line is highlighted, 0 to 1 from its left.- */- selection: number,+export type AppDriveSyncInput = {+ deviceId: string,+ deviceName: string,/**- * The agent cursor's tip.+ * `live`, `off` (one device on this machine's store), `error`.*/- agent: AppPreviewPoint,+ feed: string,/**- * The agent presses (drawn a little smaller).+ * This device's last poll of the feed (Unix ms).*/- agentPressed: boolean,+ lastPollMs: bigint,/**- * The click rays, 0 hidden, else 0 to 1 through their burst (they- * grow out and fade).+ * Local writes not yet in the bucket.*/- ripple: number,+ pendingUploads: number,+ conflicts: Array<AppDriveConflictInput>,/**- * Each checkbox's tick, 0 to 1.+ * This device first.*/- checked: Array<number>+ devices: Array<AppDriveDeviceInput>,+ lastError?: string}/**- * Generated factory for {@link AppDriverFrame} record objects.+ * Generated factory for {@link AppDriveSyncInput} record objects.*/-export const AppDriverFrame = (() => {+export const AppDriveSyncInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriverFrame, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveSyncInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriverFrame>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveSyncInput>,});})();-const FfiConverterTypeAppDriverFrame = (() => {- type TypeName = AppDriverFrame;+const FfiConverterTypeAppDriveSyncInput = (() => {+ type TypeName = AppDriveSyncInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- pointer: FfiConverterTypeAppPreviewPoint.read(from),- pressed: FfiConverterBool.read(from),- selection: FfiConverterFloat64.read(from),- agent: FfiConverterTypeAppPreviewPoint.read(from),- agentPressed: FfiConverterBool.read(from),- ripple: FfiConverterFloat64.read(from),- checked: FfiConverterSequenceFloat64.read(from)+ deviceId: FfiConverterString.read(from),+ deviceName: FfiConverterString.read(from),+ feed: FfiConverterString.read(from),+ lastPollMs: FfiConverterUInt64.read(from),+ pendingUploads: FfiConverterUInt32.read(from),+ conflicts: FfiConverterSequenceTypeAppDriveConflictInput.read(from),+ devices: FfiConverterSequenceTypeAppDriveDeviceInput.read(from),+ lastError: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppPreviewPoint.write(value.pointer, into);- FfiConverterBool.write(value.pressed, into);- FfiConverterFloat64.write(value.selection, into);- FfiConverterTypeAppPreviewPoint.write(value.agent, into);- FfiConverterBool.write(value.agentPressed, into);- FfiConverterFloat64.write(value.ripple, into);- FfiConverterSequenceFloat64.write(value.checked, into);+ FfiConverterString.write(value.deviceId, into);+ FfiConverterString.write(value.deviceName, into);+ FfiConverterString.write(value.feed, into);+ FfiConverterUInt64.write(value.lastPollMs, into);+ FfiConverterUInt32.write(value.pendingUploads, into);+ FfiConverterSequenceTypeAppDriveConflictInput.write(value.conflicts, into);+ FfiConverterSequenceTypeAppDriveDeviceInput.write(value.devices, into);+ FfiConverterOptionalString.write(value.lastError, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppPreviewPoint.allocationSize(value.pointer) +- FfiConverterBool.allocationSize(value.pressed) +- FfiConverterFloat64.allocationSize(value.selection) +- FfiConverterTypeAppPreviewPoint.allocationSize(value.agent) +- FfiConverterBool.allocationSize(value.agentPressed) +- FfiConverterFloat64.allocationSize(value.ripple) +- FfiConverterSequenceFloat64.allocationSize(value.checked);+ return FfiConverterString.allocationSize(value.deviceId) ++ FfiConverterString.allocationSize(value.deviceName) ++ FfiConverterString.allocationSize(value.feed) ++ FfiConverterUInt64.allocationSize(value.lastPollMs) ++ FfiConverterUInt32.allocationSize(value.pendingUploads) ++ FfiConverterSequenceTypeAppDriveConflictInput.allocationSize(value.conflicts) ++ FfiConverterSequenceTypeAppDriveDeviceInput.allocationSize(value.devices) ++ FfiConverterOptionalString.allocationSize(value.lastError);}};return new FFIConverter();})();-export type AppPreviewSegment = {+export type AppDriveInput = {+ requests: Array<AppDriveRequestInput>,+ grants: Array<AppDriveGrantInput>,/**- * Start.+ * Now (Unix ms), for "synced 5m ago".*/- from: AppPreviewPoint,+ nowMs: bigint,/**- * End.+ * `volume_mount_status`, once read.*/- to: AppPreviewPoint+ mount?: AppDriveMountInput,+ /**+ * `volume_sync_status`, once read.+ */+ sync?: AppDriveSyncInput,+ /**+ * The home folder, to show the mount point as `~/...`.+ */+ home?: string}/**- * Generated factory for {@link AppPreviewSegment} record objects.+ * Generated factory for {@link AppDriveInput} record objects.*/-export const AppPreviewSegment = (() => {+export const AppDriveInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPreviewSegment, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPreviewSegment>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveInput>,});})();-const FfiConverterTypeAppPreviewSegment = (() => {- type TypeName = AppPreviewSegment;+const FfiConverterTypeAppDriveInput = (() => {+ type TypeName = AppDriveInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- from: FfiConverterTypeAppPreviewPoint.read(from),- to: FfiConverterTypeAppPreviewPoint.read(from)+ requests: FfiConverterSequenceTypeAppDriveRequestInput.read(from),+ grants: FfiConverterSequenceTypeAppDriveGrantInput.read(from),+ nowMs: FfiConverterUInt64.read(from),+ mount: FfiConverterOptionalTypeAppDriveMountInput.read(from),+ sync: FfiConverterOptionalTypeAppDriveSyncInput.read(from),+ home: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppPreviewPoint.write(value.from, into);- FfiConverterTypeAppPreviewPoint.write(value.to, into);+ FfiConverterSequenceTypeAppDriveRequestInput.write(value.requests, into);+ FfiConverterSequenceTypeAppDriveGrantInput.write(value.grants, into);+ FfiConverterUInt64.write(value.nowMs, into);+ FfiConverterOptionalTypeAppDriveMountInput.write(value.mount, into);+ FfiConverterOptionalTypeAppDriveSyncInput.write(value.sync, into);+ FfiConverterOptionalString.write(value.home, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppPreviewPoint.allocationSize(value.from) +- FfiConverterTypeAppPreviewPoint.allocationSize(value.to);+ return FfiConverterSequenceTypeAppDriveRequestInput.allocationSize(value.requests) ++ FfiConverterSequenceTypeAppDriveGrantInput.allocationSize(value.grants) ++ FfiConverterUInt64.allocationSize(value.nowMs) ++ FfiConverterOptionalTypeAppDriveMountInput.allocationSize(value.mount) ++ FfiConverterOptionalTypeAppDriveSyncInput.allocationSize(value.sync) ++ FfiConverterOptionalString.allocationSize(value.home);}};return new FFIConverter();})();-export type AppDriverPreview = {- /**- * Stage width.- */- width: number,- /**- * Stage height.- */- height: number,- /**- * One loop (ms).- */- loopMs: number,- /**- * The window the agent works in (behind).- */- back: AppPreviewWindow,- /**- * The window the user works in (in front).- */- front: AppPreviewWindow,- /**- * The back window's checkboxes, top to bottom.- */- checkboxes: Array<AppLogicalRect>,- /**- * The label bar right of each checkbox.- */- labels: Array<AppLogicalRect>,- /**- * The front window's text lines (placeholder bars).- */- lines: Array<AppLogicalRect>,- /**- * The line the user selects (an index into `lines`).- */- selectedLine: number,- /**- * The user's pointer outline, tip at the origin (fill black, stroke- * white).- */- pointer: Array<AppPreviewPoint>,- /**- * The agent cursor's outline, tip at the origin (fill `agent_fill`,- * stroke white, a soft glow of `agent_fill`).- */- agentPointer: Array<AppPreviewPoint>,+export type AppPreviewPoint = {/**- * The agent cursor's fill.+ * Left.*/- agentFill: string,+ x: number,/**- * The click rays, relative to the agent cursor's tip.+ * Down.*/- agentRays: Array<AppPreviewSegment>+ y: number}/**- * Generated factory for {@link AppDriverPreview} record objects.+ * Generated factory for {@link AppPreviewPoint} record objects.*/-export const AppDriverPreview = (() => {+export const AppPreviewPoint = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppDriverPreview, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPreviewPoint, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppDriverPreview>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPreviewPoint>,});})();-const FfiConverterTypeAppDriverPreview = (() => {- type TypeName = AppDriverPreview;+const FfiConverterTypeAppPreviewPoint = (() => {+ type TypeName = AppPreviewPoint;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- width: FfiConverterFloat64.read(from),- height: FfiConverterFloat64.read(from),- loopMs: FfiConverterUInt32.read(from),- back: FfiConverterTypeAppPreviewWindow.read(from),- front: FfiConverterTypeAppPreviewWindow.read(from),- checkboxes: FfiConverterSequenceTypeAppLogicalRect.read(from),- labels: FfiConverterSequenceTypeAppLogicalRect.read(from),- lines: FfiConverterSequenceTypeAppLogicalRect.read(from),- selectedLine: FfiConverterUInt32.read(from),- pointer: FfiConverterSequenceTypeAppPreviewPoint.read(from),- agentPointer: FfiConverterSequenceTypeAppPreviewPoint.read(from),- agentFill: FfiConverterString.read(from),- agentRays: FfiConverterSequenceTypeAppPreviewSegment.read(from)+ x: FfiConverterFloat64.read(from),+ y: FfiConverterFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.width, into);- FfiConverterFloat64.write(value.height, into);- FfiConverterUInt32.write(value.loopMs, into);- FfiConverterTypeAppPreviewWindow.write(value.back, into);- FfiConverterTypeAppPreviewWindow.write(value.front, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.checkboxes, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.labels, into);- FfiConverterSequenceTypeAppLogicalRect.write(value.lines, into);- FfiConverterUInt32.write(value.selectedLine, into);- FfiConverterSequenceTypeAppPreviewPoint.write(value.pointer, into);- FfiConverterSequenceTypeAppPreviewPoint.write(value.agentPointer, into);- FfiConverterString.write(value.agentFill, into);- FfiConverterSequenceTypeAppPreviewSegment.write(value.agentRays, into);+ FfiConverterFloat64.write(value.x, into);+ FfiConverterFloat64.write(value.y, into);}allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.width) +- FfiConverterFloat64.allocationSize(value.height) +- FfiConverterUInt32.allocationSize(value.loopMs) +- FfiConverterTypeAppPreviewWindow.allocationSize(value.back) +- FfiConverterTypeAppPreviewWindow.allocationSize(value.front) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.checkboxes) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.labels) +- FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.lines) +- FfiConverterUInt32.allocationSize(value.selectedLine) +- FfiConverterSequenceTypeAppPreviewPoint.allocationSize(value.pointer) +- FfiConverterSequenceTypeAppPreviewPoint.allocationSize(value.agentPointer) +- FfiConverterString.allocationSize(value.agentFill) +- FfiConverterSequenceTypeAppPreviewSegment.allocationSize(value.agentRays);+ return FfiConverterFloat64.allocationSize(value.x) ++ FfiConverterFloat64.allocationSize(value.y);}};return new FFIConverter();})();-export enum AppEnrollMethod {+export type AppDriveMountFrame = {/**- * A fresh interactive sign-in (enrolls this device at once).+ * The volume in the sidebar, 0 absent to 1 shown (and selected).*/- SignIn = "signIn",+ volume: number,/**- * A one-time code approved from an enrolled device.+ * The file in flight: its icon's top left (drawn above both windows).*/- Approve = "approve"+ flight?: AppPreviewPoint,+ /**+ * Each file in the volume, 0 absent to 1 shown.+ */+ arrived: Array<number>}-const FfiConverterTypeAppEnrollMethod = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppEnrollMethod;+/**+ * Generated factory for {@link AppDriveMountFrame} record objects.+ */+export const AppDriveMountFrame = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppDriveMountFrame, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveMountFrame>,+ });+})();++const FfiConverterTypeAppDriveMountFrame = (() => {+ type TypeName = AppDriveMountFrame;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppEnrollMethod.SignIn;- case 2: return AppEnrollMethod.Approve;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ volume: FfiConverterFloat64.read(from),+ flight: FfiConverterOptionalTypeAppPreviewPoint.read(from),+ arrived: FfiConverterSequenceFloat64.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppEnrollMethod.SignIn: return ordinalConverter.write(1, into);- case AppEnrollMethod.Approve: return ordinalConverter.write(2, into);- }+ FfiConverterFloat64.write(value.volume, into);+ FfiConverterOptionalTypeAppPreviewPoint.write(value.flight, into);+ FfiConverterSequenceFloat64.write(value.arrived, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterFloat64.allocationSize(value.volume) ++ FfiConverterOptionalTypeAppPreviewPoint.allocationSize(value.flight) ++ FfiConverterSequenceFloat64.allocationSize(value.arrived);+}- }+ };return new FFIConverter();})();-export type AppEnrollOption = {+export type AppPreviewWindow = {/**- * Method.+ * Its frame on the stage.*/- method: AppEnrollMethod,+ frame: AppLogicalRect,/**- * Title.+ * The title bar's height (the three window buttons sit in it).*/- title: string,+ titleBar: number,/**- * One line under it.+ * Corner radius.*/- detail: string+ radius: number}/**- * Generated factory for {@link AppEnrollOption} record objects.+ * Generated factory for {@link AppPreviewWindow} record objects.*/-export const AppEnrollOption = (() => {+export const AppPreviewWindow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppEnrollOption, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPreviewWindow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppEnrollOption>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPreviewWindow>,});})();-const FfiConverterTypeAppEnrollOption = (() => {- type TypeName = AppEnrollOption;+const FfiConverterTypeAppPreviewWindow = (() => {+ type TypeName = AppPreviewWindow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- method: FfiConverterTypeAppEnrollMethod.read(from),- title: FfiConverterString.read(from),- detail: FfiConverterString.read(from)+ frame: FfiConverterTypeAppLogicalRect.read(from),+ titleBar: FfiConverterFloat64.read(from),+ radius: FfiConverterFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppEnrollMethod.write(value.method, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.detail, into);+ FfiConverterTypeAppLogicalRect.write(value.frame, into);+ FfiConverterFloat64.write(value.titleBar, into);+ FfiConverterFloat64.write(value.radius, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppEnrollMethod.allocationSize(value.method) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.detail);+ return FfiConverterTypeAppLogicalRect.allocationSize(value.frame) ++ FfiConverterFloat64.allocationSize(value.titleBar) ++ FfiConverterFloat64.allocationSize(value.radius);}};return new FFIConverter();})();-export enum AppEnrollPhase {+export type AppDriveMountPreview = {/**- * Choosing a method.+ * Stage width.*/- Choose = "choose",+ width: number,/**- * The shell runs an interactive sign-in.+ * Stage height.*/- SigningIn = "signingIn",+ height: number,/**- * The shell registers this device with the relay.+ * One loop (ms).*/- Registering = "registering",+ loopMs: number,/**- * The code shows; the shell polls until an enrolled device approves.+ * The Space (left).*/- Waiting = "waiting",+ space: AppPreviewWindow,/**- * Enrolled.+ * The Finder window (right).*/- Enrolled = "enrolled",+ finder: AppPreviewWindow,/**- * Something failed; Back returns to the choice.+ * The Finder window's sidebar (a shade darker than its content).*/- Failed = "failed"-}--const FfiConverterTypeAppEnrollPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppEnrollPhase;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppEnrollPhase.Choose;- case 2: return AppEnrollPhase.SigningIn;- case 3: return AppEnrollPhase.Registering;- case 4: return AppEnrollPhase.Waiting;- case 5: return AppEnrollPhase.Enrolled;- case 6: return AppEnrollPhase.Failed;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppEnrollPhase.Choose: return ordinalConverter.write(1, into);- case AppEnrollPhase.SigningIn: return ordinalConverter.write(2, into);- case AppEnrollPhase.Registering: return ordinalConverter.write(3, into);- case AppEnrollPhase.Waiting: return ordinalConverter.write(4, into);- case AppEnrollPhase.Enrolled: return ordinalConverter.write(5, into);- case AppEnrollPhase.Failed: return ordinalConverter.write(6, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppEnrollState = {+ sidebar: AppLogicalRect,/**- * Phase.+ * The sidebar's other places (placeholder bars).*/- phase: AppEnrollPhase,+ places: Array<AppLogicalRect>,/**- * The chosen method.+ * The volume's row in the sidebar (the selection highlight).*/- method?: AppEnrollMethod,+ volume: AppLogicalRect,/**- * The one-time code, while waiting.+ * The volume's drive glyph.*/- code?: string,+ volumeIcon: AppLogicalRect,/**- * The last failure.+ * The volume's name, drawn from `volume_label_x`, centred on the row.*/- error?: string-}--/**- * Generated factory for {@link AppEnrollState} record objects.- */-export const AppEnrollState = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppEnrollState, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppEnrollState>,- });-})();--const FfiConverterTypeAppEnrollState = (() => {- type TypeName = AppEnrollState;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- phase: FfiConverterTypeAppEnrollPhase.read(from),- method: FfiConverterOptionalTypeAppEnrollMethod.read(from),- code: FfiConverterOptionalString.read(from),- error: FfiConverterOptionalString.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppEnrollPhase.write(value.phase, into);- FfiConverterOptionalTypeAppEnrollMethod.write(value.method, into);- FfiConverterOptionalString.write(value.code, into);- FfiConverterOptionalString.write(value.error, into);- }- allocationSize(value: TypeName): number {- return FfiConverterTypeAppEnrollPhase.allocationSize(value.phase) +- FfiConverterOptionalTypeAppEnrollMethod.allocationSize(value.method) +- FfiConverterOptionalString.allocationSize(value.code) +- FfiConverterOptionalString.allocationSize(value.error);-- }- };- return new FFIConverter();-})();--export type AppEnrollView = {- /**- * Title.- */- title: string,- /**- * One line under the title.- */- lede: string,- /**- * The methods (while choosing).- */- options: Array<AppEnrollOption>,- /**- * The one-time code (while waiting).- */- code?: string,- /**- * How to use the code.- */- codeHelp?: string,+ volumeLabel: string,/**- * What is happening now.+ * Where the name starts.*/- status?: string,+ volumeLabelX: number,/**- * A failure.+ * The name's font size.*/- error?: string,+ fontSize: number,/**- * Working (a spinner).+ * The Space's files (icons), top to bottom.*/- busy: boolean,+ sourceIcons: Array<AppLogicalRect>,/**- * Enrolled.+ * Their name bars.*/- done: boolean,+ sourceLabels: Array<AppLogicalRect>,/**- * Back (after a failure).+ * Where each file lands in the volume (icons).*/- backLabel?: string,+ destIcons: Array<AppLogicalRect>,/**- * Cancel, or Done once enrolled.+ * Their name bars.*/- closeLabel: string+ destLabels: Array<AppLogicalRect>}/**- * Generated factory for {@link AppEnrollView} record objects.+ * Generated factory for {@link AppDriveMountPreview} record objects.*/-export const AppEnrollView = (() => {+export const AppDriveMountPreview = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppEnrollView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveMountPreview, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppEnrollView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveMountPreview>,});})();-const FfiConverterTypeAppEnrollView = (() => {- type TypeName = AppEnrollView;+const FfiConverterTypeAppDriveMountPreview = (() => {+ type TypeName = AppDriveMountPreview;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- lede: FfiConverterString.read(from),- options: FfiConverterSequenceTypeAppEnrollOption.read(from),- code: FfiConverterOptionalString.read(from),- codeHelp: FfiConverterOptionalString.read(from),- status: FfiConverterOptionalString.read(from),- error: FfiConverterOptionalString.read(from),- busy: FfiConverterBool.read(from),- done: FfiConverterBool.read(from),- backLabel: FfiConverterOptionalString.read(from),- closeLabel: FfiConverterString.read(from)+ width: FfiConverterFloat64.read(from),+ height: FfiConverterFloat64.read(from),+ loopMs: FfiConverterUInt32.read(from),+ space: FfiConverterTypeAppPreviewWindow.read(from),+ finder: FfiConverterTypeAppPreviewWindow.read(from),+ sidebar: FfiConverterTypeAppLogicalRect.read(from),+ places: FfiConverterSequenceTypeAppLogicalRect.read(from),+ volume: FfiConverterTypeAppLogicalRect.read(from),+ volumeIcon: FfiConverterTypeAppLogicalRect.read(from),+ volumeLabel: FfiConverterString.read(from),+ volumeLabelX: FfiConverterFloat64.read(from),+ fontSize: FfiConverterFloat64.read(from),+ sourceIcons: FfiConverterSequenceTypeAppLogicalRect.read(from),+ sourceLabels: FfiConverterSequenceTypeAppLogicalRect.read(from),+ destIcons: FfiConverterSequenceTypeAppLogicalRect.read(from),+ destLabels: FfiConverterSequenceTypeAppLogicalRect.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.lede, into);- FfiConverterSequenceTypeAppEnrollOption.write(value.options, into);- FfiConverterOptionalString.write(value.code, into);- FfiConverterOptionalString.write(value.codeHelp, into);- FfiConverterOptionalString.write(value.status, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.busy, into);- FfiConverterBool.write(value.done, into);- FfiConverterOptionalString.write(value.backLabel, into);- FfiConverterString.write(value.closeLabel, into);+ FfiConverterFloat64.write(value.width, into);+ FfiConverterFloat64.write(value.height, into);+ FfiConverterUInt32.write(value.loopMs, into);+ FfiConverterTypeAppPreviewWindow.write(value.space, into);+ FfiConverterTypeAppPreviewWindow.write(value.finder, into);+ FfiConverterTypeAppLogicalRect.write(value.sidebar, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.places, into);+ FfiConverterTypeAppLogicalRect.write(value.volume, into);+ FfiConverterTypeAppLogicalRect.write(value.volumeIcon, into);+ FfiConverterString.write(value.volumeLabel, into);+ FfiConverterFloat64.write(value.volumeLabelX, into);+ FfiConverterFloat64.write(value.fontSize, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.sourceIcons, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.sourceLabels, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.destIcons, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.destLabels, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.lede) +- FfiConverterSequenceTypeAppEnrollOption.allocationSize(value.options) +- FfiConverterOptionalString.allocationSize(value.code) +- FfiConverterOptionalString.allocationSize(value.codeHelp) +- FfiConverterOptionalString.allocationSize(value.status) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterBool.allocationSize(value.done) +- FfiConverterOptionalString.allocationSize(value.backLabel) +- FfiConverterString.allocationSize(value.closeLabel);+ return FfiConverterFloat64.allocationSize(value.width) ++ FfiConverterFloat64.allocationSize(value.height) ++ FfiConverterUInt32.allocationSize(value.loopMs) ++ FfiConverterTypeAppPreviewWindow.allocationSize(value.space) ++ FfiConverterTypeAppPreviewWindow.allocationSize(value.finder) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.sidebar) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.places) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.volume) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.volumeIcon) ++ FfiConverterString.allocationSize(value.volumeLabel) ++ FfiConverterFloat64.allocationSize(value.volumeLabelX) ++ FfiConverterFloat64.allocationSize(value.fontSize) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.sourceIcons) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.sourceLabels) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.destIcons) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.destLabels);}};return new FFIConverter();})();-export type AppEntrySection = {+export type AppDriveS3Input = {/**- * "Recent", "Apps", "Not available".+ * None: AWS.*/- title: string,+ endpoint?: string,+ region: string,+ bucket: string,/**- * Entries.+ * A key prefix inside the bucket.*/- entries: Array<AppCatalogEntry>+ root: string,+ pathStyle: boolean}/**- * Generated factory for {@link AppEntrySection} record objects.+ * Generated factory for {@link AppDriveS3Input} record objects.*/-export const AppEntrySection = (() => {+export const AppDriveS3Input = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppEntrySection, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveS3Input, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppEntrySection>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveS3Input>,});})();-const FfiConverterTypeAppEntrySection = (() => {- type TypeName = AppEntrySection;+const FfiConverterTypeAppDriveS3Input = (() => {+ type TypeName = AppDriveS3Input;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- entries: FfiConverterSequenceTypeAppCatalogEntry.read(from)+ endpoint: FfiConverterOptionalString.read(from),+ region: FfiConverterString.read(from),+ bucket: FfiConverterString.read(from),+ root: FfiConverterString.read(from),+ pathStyle: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppCatalogEntry.write(value.entries, into);+ FfiConverterOptionalString.write(value.endpoint, into);+ FfiConverterString.write(value.region, into);+ FfiConverterString.write(value.bucket, into);+ FfiConverterString.write(value.root, into);+ FfiConverterBool.write(value.pathStyle, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppCatalogEntry.allocationSize(value.entries);+ return FfiConverterOptionalString.allocationSize(value.endpoint) ++ FfiConverterString.allocationSize(value.region) ++ FfiConverterString.allocationSize(value.bucket) ++ FfiConverterString.allocationSize(value.root) ++ FfiConverterBool.allocationSize(value.pathStyle);}};return new FFIConverter();})();-export type AppFactCopy = {- /**- * What is copied (the full value).- */- text: string,- /**- * SF Symbol (`doc.on.doc`).- */- symbol: string,- /**- * Tooltip and accessibility label ("Copy").- */- help: string,- /**- * The symbol while confirming (`checkmark`).- */- doneSymbol: string,- /**- * The tooltip while confirming ("Copied").- */- doneHelp: string,- /**- * How long the confirmation shows, in milliseconds.- */- confirmMs: number-}-/**- * Generated factory for {@link AppFactCopy} record objects.- */-export const AppFactCopy = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppFactCopy, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppFactCopy>,- });-})();+// Enum: AppDriveRequest+export enum AppDriveRequest_Tags {+ Load = "Load",+ MountAndReveal = "MountAndReveal",+ Approve = "Approve",+ Deny = "Deny",+ Revoke = "Revoke",+ Reveal = "Reveal",+ Resolve = "Resolve"+}+export const AppDriveRequest = (() => {-const FfiConverterTypeAppFactCopy = (() => {- type TypeName = AppFactCopy;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- text: FfiConverterString.read(from),- symbol: FfiConverterString.read(from),- help: FfiConverterString.read(from),- doneSymbol: FfiConverterString.read(from),- doneHelp: FfiConverterString.read(from),- confirmMs: FfiConverterUInt32.read(from)- };+ type Load__interface = {+ tag: AppDriveRequest_Tags.Load+ };+ /**+ * Read the page: `volume_requests`, `volume_grants`,+ * `volume_mount_status`, `volume_sync_status`.+ */+ class Load_ extends UniffiEnum implements Load__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDriveRequest";+ readonly tag = AppDriveRequest_Tags.Load;+ constructor() {+ super("AppDriveRequest", "Load");}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.text, into);- FfiConverterString.write(value.symbol, into);- FfiConverterString.write(value.help, into);- FfiConverterString.write(value.doneSymbol, into);- FfiConverterString.write(value.doneHelp, into);- FfiConverterUInt32.write(value.confirmMs, into);++ static new(): Load_ {+ return new Load_();}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.text) +- FfiConverterString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.help) +- FfiConverterString.allocationSize(value.doneSymbol) +- FfiConverterString.allocationSize(value.doneHelp) +- FfiConverterUInt32.allocationSize(value.confirmMs);+ static instanceOf(obj: any): obj is Load_ {+ return obj.tag === AppDriveRequest_Tags.Load;}- };- return new FFIConverter();-})();-export type AppFactWarning = {+ }++ type MountAndReveal__interface = {+ tag: AppDriveRequest_Tags.MountAndReveal+ };/**- * SF Symbol ([`WARNING_SYMBOL`]).+ * `volume_mount`, then show the mount point in the file manager.*/- symbol: string,+ class MountAndReveal_ extends UniffiEnum implements MountAndReveal__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDriveRequest";+ readonly tag = AppDriveRequest_Tags.MountAndReveal;+ constructor() {+ super("AppDriveRequest", "MountAndReveal");+ }++ static new(): MountAndReveal_ {+ return new MountAndReveal_();+ }++ static instanceOf(obj: any): obj is MountAndReveal_ {+ return obj.tag === AppDriveRequest_Tags.MountAndReveal;+ }++ }++ type Approve__interface = {+ tag: AppDriveRequest_Tags.Approve;+ inner:+Readonly<{id: string}>+ };/**- * Tooltip and accessibility label.+ * `volume_approve` (the daemon asks for presence).*/- help: string-}--/**- * Generated factory for {@link AppFactWarning} record objects.- */-export const AppFactWarning = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppFactWarning, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppFactWarning>,- });-})();+ class Approve_ extends UniffiEnum implements Approve__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDriveRequest";+ readonly tag = AppDriveRequest_Tags.Approve;+ readonly inner:+Readonly<{id: string}>;+ constructor(+inner: {id: string }) {+ super("AppDriveRequest", "Approve");-const FfiConverterTypeAppFactWarning = (() => {- type TypeName = AppFactWarning;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- symbol: FfiConverterString.read(from),- help: FfiConverterString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.symbol, into);- FfiConverterString.write(value.help, into);+ static new(+inner: {id: string }): Approve_ {+ return new Approve_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.help);+ static instanceOf(obj: any): obj is Approve_ {+ return obj.tag === AppDriveRequest_Tags.Approve;}- };- return new FFIConverter();-})();-export type AppFact = {- /**- * Label.- */- label: string,- /**- * Value.- */- value: string,- /**- * A copy button after the value (the Space's identifier and image).- */- copy?: AppFactCopy,- /**- * The tooltip: the full value (and an image's digest).- */- help?: string,+ }++ type Deny__interface = {+ tag: AppDriveRequest_Tags.Deny;+ inner:+Readonly<{id: string}>+ };/**- * A warning symbol after the value, with its tooltip: a local Space- * emulating another architecture.+ * `volume_deny`.*/- warning?: AppFactWarning-}--/**- * Generated factory for {@link AppFact} record objects.- */-export const AppFact = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppFact, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppFact>,- });-})();+ class Deny_ extends UniffiEnum implements Deny__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDriveRequest";+ readonly tag = AppDriveRequest_Tags.Deny;+ readonly inner:+Readonly<{id: string}>;+ constructor(+inner: {id: string }) {+ super("AppDriveRequest", "Deny");-const FfiConverterTypeAppFact = (() => {- type TypeName = AppFact;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- label: FfiConverterString.read(from),- value: FfiConverterString.read(from),- copy: FfiConverterOptionalTypeAppFactCopy.read(from),- help: FfiConverterOptionalString.read(from),- warning: FfiConverterOptionalTypeAppFactWarning.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.value, into);- FfiConverterOptionalTypeAppFactCopy.write(value.copy, into);- FfiConverterOptionalString.write(value.help, into);- FfiConverterOptionalTypeAppFactWarning.write(value.warning, into);+ static new(+inner: {id: string }): Deny_ {+ return new Deny_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.value) +- FfiConverterOptionalTypeAppFactCopy.allocationSize(value.copy) +- FfiConverterOptionalString.allocationSize(value.help) +- FfiConverterOptionalTypeAppFactWarning.allocationSize(value.warning);+ static instanceOf(obj: any): obj is Deny_ {+ return obj.tag === AppDriveRequest_Tags.Deny;}- };- return new FFIConverter();-})();-export type AppGpuChoice = {+ }++ type Revoke__interface = {+ tag: AppDriveRequest_Tags.Revoke;+ inner:+Readonly<{id: string}>+ };/**- * `lume`, `qemu`, `container`, `gvisor`, `fleet`.- */- runtime: string,- /**- * What the create passes as `gpu` (`paravirtual`).- */- id: string,- /**- * "GPU acceleration".- */- label: string,- /**- * Shown as "(Experimental)".- */- experimental: boolean,- /**- * Works on this machine now.+ * `volume_revoke`.*/- supported: boolean,+ class Revoke_ extends UniffiEnum implements Revoke__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDriveRequest";+ readonly tag = AppDriveRequest_Tags.Revoke;+ readonly inner:+Readonly<{id: string}>;+ constructor(+inner: {id: string }) {+ super("AppDriveRequest", "Revoke");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {id: string }): Revoke_ {+ return new Revoke_(inner);+ }++ static instanceOf(obj: any): obj is Revoke_ {+ return obj.tag === AppDriveRequest_Tags.Revoke;+ }++ }++ type Reveal__interface = {+ tag: AppDriveRequest_Tags.Reveal;+ inner:+Readonly<{path: string}>+ };/**- * Why not, one line.+ * Show a path in the file manager (the shell's own call).*/- reason?: string,+ class Reveal_ extends UniffiEnum implements Reveal__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDriveRequest";+ readonly tag = AppDriveRequest_Tags.Reveal;+ readonly inner:+Readonly<{path: string}>;+ constructor(+inner: {path: string }) {+ super("AppDriveRequest", "Reveal");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {path: string }): Reveal_ {+ return new Reveal_(inner);+ }++ static instanceOf(obj: any): obj is Reveal_ {+ return obj.tag === AppDriveRequest_Tags.Reveal;+ }++ }++ type Resolve__interface = {+ tag: AppDriveRequest_Tags.Resolve;+ inner:+Readonly<{path: string}>+ };/**- * The page "Learn more" opens.+ * `volume_sync_resolve`.*/- learnMore?: string-}+ class Resolve_ extends UniffiEnum implements Resolve__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppDriveRequest";+ readonly tag = AppDriveRequest_Tags.Resolve;+ readonly inner:+Readonly<{path: string}>;+ constructor(+inner: {path: string }) {+ super("AppDriveRequest", "Resolve");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {path: string }): Resolve_ {+ return new Resolve_(inner);+ }++ static instanceOf(obj: any): obj is Resolve_ {+ return obj.tag === AppDriveRequest_Tags.Resolve;+ }++ }++ function instanceOf(obj: any): obj is AppDriveRequest {+ return obj[uniffiTypeNameSymbol] === "AppDriveRequest";+ }-/**- * Generated factory for {@link AppGpuChoice} record objects.- */-export const AppGpuChoice = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppGpuChoice, ReturnType<typeof defaults>>(defaults);- })();return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppGpuChoice>,+ instanceOf,+ Load: Load_,+ MountAndReveal: MountAndReveal_,+ Approve: Approve_,+ Deny: Deny_,+ Revoke: Revoke_,+ Reveal: Reveal_,+ Resolve: Resolve_});+})();+export type AppDriveRequest = InstanceType<+ typeof AppDriveRequest['Load' | 'MountAndReveal' | 'Approve' | 'Deny' | 'Revoke' | 'Reveal' | 'Resolve']+>;-const FfiConverterTypeAppGpuChoice = (() => {- type TypeName = AppGpuChoice;+// FfiConverter for enum AppDriveRequest+const FfiConverterTypeAppDriveRequest = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDriveRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- runtime: FfiConverterString.read(from),- id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- experimental: FfiConverterBool.read(from),- supported: FfiConverterBool.read(from),- reason: FfiConverterOptionalString.read(from),- learnMore: FfiConverterOptionalString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return new AppDriveRequest.Load();+ case 2: return new AppDriveRequest.MountAndReveal();+ case 3: return new AppDriveRequest.Approve({id: FfiConverterString.read(from) });+ case 4: return new AppDriveRequest.Deny({id: FfiConverterString.read(from) });+ case 5: return new AppDriveRequest.Revoke({id: FfiConverterString.read(from) });+ case 6: return new AppDriveRequest.Reveal({path: FfiConverterString.read(from) });+ case 7: return new AppDriveRequest.Resolve({path: FfiConverterString.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.runtime, into);- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.experimental, into);- FfiConverterBool.write(value.supported, into);- FfiConverterOptionalString.write(value.reason, into);- FfiConverterOptionalString.write(value.learnMore, into);+ switch (value.tag) {+ case AppDriveRequest_Tags.Load: {+ ordinalConverter.write(1, into);+ return;+ }+ case AppDriveRequest_Tags.MountAndReveal: {+ ordinalConverter.write(2, into);+ return;+ }+ case AppDriveRequest_Tags.Approve: {+ ordinalConverter.write(3, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ return;+ }+ case AppDriveRequest_Tags.Deny: {+ ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ return;+ }+ case AppDriveRequest_Tags.Revoke: {+ ordinalConverter.write(5, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ return;+ }+ case AppDriveRequest_Tags.Reveal: {+ ordinalConverter.write(6, into);+ const inner = value.inner;+ FfiConverterString.write(inner.path, into);+ return;+ }+ case AppDriveRequest_Tags.Resolve: {+ ordinalConverter.write(7, into);+ const inner = value.inner;+ FfiConverterString.write(inner.path, into);+ return;+ }+ default:+ // Throwing from here means that AppDriveRequest_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.runtime) +- FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.experimental) +- FfiConverterBool.allocationSize(value.supported) +- FfiConverterOptionalString.allocationSize(value.reason) +- FfiConverterOptionalString.allocationSize(value.learnMore);-+ switch (value.tag) {+ case AppDriveRequest_Tags.Load: {+ return ordinalConverter.allocationSize(1);+ }+ case AppDriveRequest_Tags.MountAndReveal: {+ return ordinalConverter.allocationSize(2);+ }+ case AppDriveRequest_Tags.Approve: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(3);+ size += FfiConverterString.allocationSize(inner.id);+ return size;+ }+ case AppDriveRequest_Tags.Deny: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterString.allocationSize(inner.id);+ return size;+ }+ case AppDriveRequest_Tags.Revoke: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(5);+ size += FfiConverterString.allocationSize(inner.id);+ return size;+ }+ case AppDriveRequest_Tags.Reveal: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(6);+ size += FfiConverterString.allocationSize(inner.path);+ return size;+ }+ case AppDriveRequest_Tags.Resolve: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(7);+ size += FfiConverterString.allocationSize(inner.path);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- };+ }return new FFIConverter();})();-export type AppGpuRow = {- /**- * "GPU acceleration (Experimental)".- */- label: string,- /**- * Checked.- */- on: boolean,- /**- * It can be checked here.- */- enabled: boolean,- /**- * Why not, one line (a disabled row).- */- reason?: string,- /**- * "Learn more".- */- learnMoreLabel: string,- /**- * The page it opens.- */- learnMoreUrl?: string+export type AppDriveState = {+ busy: boolean,+ error?: string,+ request?: AppDriveRequest}/**- * Generated factory for {@link AppGpuRow} record objects.+ * Generated factory for {@link AppDriveState} record objects.*/-export const AppGpuRow = (() => {+export const AppDriveState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppGpuRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppGpuRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveState>,});})();-const FfiConverterTypeAppGpuRow = (() => {- type TypeName = AppGpuRow;+const FfiConverterTypeAppDriveState = (() => {+ type TypeName = AppDriveState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- label: FfiConverterString.read(from),- on: FfiConverterBool.read(from),- enabled: FfiConverterBool.read(from),- reason: FfiConverterOptionalString.read(from),- learnMoreLabel: FfiConverterString.read(from),- learnMoreUrl: FfiConverterOptionalString.read(from)+ busy: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ request: FfiConverterOptionalTypeAppDriveRequest.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.on, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterOptionalString.write(value.reason, into);- FfiConverterString.write(value.learnMoreLabel, into);- FfiConverterOptionalString.write(value.learnMoreUrl, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalTypeAppDriveRequest.write(value.request, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.on) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterOptionalString.allocationSize(value.reason) +- FfiConverterString.allocationSize(value.learnMoreLabel) +- FfiConverterOptionalString.allocationSize(value.learnMoreUrl);+ return FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalTypeAppDriveRequest.allocationSize(value.request);}};return new FFIConverter();})();-export type AppHostAccess = {- /**- * Epoch ms.- */- atMs: bigint,+export type AppDriveStorageInput = {/**- * How the caller authenticated: `relay`, `viewer` or `token`.+ * `fs` or `s3` (`cloud` is never offered).*/- via: string,+ backend: string,/**- * Who (a relay-verified account, a viewer, or the token holder).+ * Where `fs` keeps the bytes.*/- who: string,+ fsPath: string,+ s3?: AppDriveS3Input,/**- * What they used (a service name such as `ProcessService`, or `MCP`).+ * S3 keys are saved in the credential store.*/- what: string+ hasKeys: boolean}/**- * Generated factory for {@link AppHostAccess} record objects.+ * Generated factory for {@link AppDriveStorageInput} record objects.*/-export const AppHostAccess = (() => {+export const AppDriveStorageInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostAccess, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveStorageInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostAccess>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveStorageInput>,});})();-const FfiConverterTypeAppHostAccess = (() => {- type TypeName = AppHostAccess;+const FfiConverterTypeAppDriveStorageInput = (() => {+ type TypeName = AppDriveStorageInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- atMs: FfiConverterInt64.read(from),- via: FfiConverterString.read(from),- who: FfiConverterString.read(from),- what: FfiConverterString.read(from)+ backend: FfiConverterString.read(from),+ fsPath: FfiConverterString.read(from),+ s3: FfiConverterOptionalTypeAppDriveS3Input.read(from),+ hasKeys: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterInt64.write(value.atMs, into);- FfiConverterString.write(value.via, into);- FfiConverterString.write(value.who, into);- FfiConverterString.write(value.what, into);+ FfiConverterString.write(value.backend, into);+ FfiConverterString.write(value.fsPath, into);+ FfiConverterOptionalTypeAppDriveS3Input.write(value.s3, into);+ FfiConverterBool.write(value.hasKeys, into);}allocationSize(value: TypeName): number {- return FfiConverterInt64.allocationSize(value.atMs) +- FfiConverterString.allocationSize(value.via) +- FfiConverterString.allocationSize(value.who) +- FfiConverterString.allocationSize(value.what);+ return FfiConverterString.allocationSize(value.backend) ++ FfiConverterString.allocationSize(value.fsPath) ++ FfiConverterOptionalTypeAppDriveS3Input.allocationSize(value.s3) ++ FfiConverterBool.allocationSize(value.hasKeys);}};return new FFIConverter();})();-export type AppHostAccessRow = {+export type AppDriveStorageUpdate = {+ backend: string,+ s3?: AppDriveS3Input,/**- * "Ada · Files".+ * Both keys or neither.*/- text: string,+ accessKeyId?: string,+ secretAccessKey?: string,/**- * Epoch ms (each shell shows it relative, natively).+ * Only check ("Test connection").*/- atMs: bigint+ dryRun: boolean}/**- * Generated factory for {@link AppHostAccessRow} record objects.+ * Generated factory for {@link AppDriveStorageUpdate} record objects.*/-export const AppHostAccessRow = (() => {+export const AppDriveStorageUpdate = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostAccessRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveStorageUpdate, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostAccessRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveStorageUpdate>,});})();-const FfiConverterTypeAppHostAccessRow = (() => {- type TypeName = AppHostAccessRow;+const FfiConverterTypeAppDriveStorageUpdate = (() => {+ type TypeName = AppDriveStorageUpdate;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- text: FfiConverterString.read(from),- atMs: FfiConverterInt64.read(from)+ backend: FfiConverterString.read(from),+ s3: FfiConverterOptionalTypeAppDriveS3Input.read(from),+ accessKeyId: FfiConverterOptionalString.read(from),+ secretAccessKey: FfiConverterOptionalString.read(from),+ dryRun: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.text, into);- FfiConverterInt64.write(value.atMs, into);+ FfiConverterString.write(value.backend, into);+ FfiConverterOptionalTypeAppDriveS3Input.write(value.s3, into);+ FfiConverterOptionalString.write(value.accessKeyId, into);+ FfiConverterOptionalString.write(value.secretAccessKey, into);+ FfiConverterBool.write(value.dryRun, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.text) +- FfiConverterInt64.allocationSize(value.atMs);+ return FfiConverterString.allocationSize(value.backend) ++ FfiConverterOptionalTypeAppDriveS3Input.allocationSize(value.s3) ++ FfiConverterOptionalString.allocationSize(value.accessKeyId) ++ FfiConverterOptionalString.allocationSize(value.secretAccessKey) ++ FfiConverterBool.allocationSize(value.dryRun);}};return new FFIConverter();})();-export type AppHostAccount = {+export type AppDriveView = {+ title: string,+ requestsTitle: string,+ requests: Array<AppLineView>,+ grantsTitle: string,+ grants: Array<AppLineView>,+ grantsEmpty: string,+ busy: boolean,+ error?: string,+ request?: AppDriveRequest,/**- * The account id (the session's `sub`).+ * [`DriveRequest::text`] of `request`.*/- id?: string,+ requestText?: string,/**- * Its email.+ * "Open in Finder" (Linux: "Open folder"): mounts first when the+ * volume is not mounted. None where it cannot mount.*/- email?: string,+ openLabel?: string,/**- * What the app shows for it (a display name, else the email).+ * The mount point, when mounted.*/- display?: string+ mountPath?: string,+ /**+ * One quiet line: where it is mounted ("In Finder at ~/Cua Volume"),+ * or that it is not.+ */+ mountLine?: string,+ /**+ * "Devices".+ */+ devicesTitle: string,+ /**+ * One line per device, this one first: when it last synced, what is+ * pending.+ */+ devices: Array<AppLineView>,+ /**+ * Why nothing syncs, or the feed's error.+ */+ syncNote?: string,+ /**+ * The note is an error.+ */+ syncError: boolean,+ /**+ * "Conflicts".+ */+ conflictsTitle: string,+ conflicts: Array<AppConflictView>}/**- * Generated factory for {@link AppHostAccount} record objects.+ * Generated factory for {@link AppDriveView} record objects.*/-export const AppHostAccount = (() => {+export const AppDriveView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostAccount, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriveView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostAccount>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriveView>,});})();-const FfiConverterTypeAppHostAccount = (() => {- type TypeName = AppHostAccount;+const FfiConverterTypeAppDriveView = (() => {+ type TypeName = AppDriveView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterOptionalString.read(from),- email: FfiConverterOptionalString.read(from),- display: FfiConverterOptionalString.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.id, into);- FfiConverterOptionalString.write(value.email, into);- FfiConverterOptionalString.write(value.display, into);- }- allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.id) +- FfiConverterOptionalString.allocationSize(value.email) +- FfiConverterOptionalString.allocationSize(value.display);-+ title: FfiConverterString.read(from),+ requestsTitle: FfiConverterString.read(from),+ requests: FfiConverterSequenceTypeAppLineView.read(from),+ grantsTitle: FfiConverterString.read(from),+ grants: FfiConverterSequenceTypeAppLineView.read(from),+ grantsEmpty: FfiConverterString.read(from),+ busy: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ request: FfiConverterOptionalTypeAppDriveRequest.read(from),+ requestText: FfiConverterOptionalString.read(from),+ openLabel: FfiConverterOptionalString.read(from),+ mountPath: FfiConverterOptionalString.read(from),+ mountLine: FfiConverterOptionalString.read(from),+ devicesTitle: FfiConverterString.read(from),+ devices: FfiConverterSequenceTypeAppLineView.read(from),+ syncNote: FfiConverterOptionalString.read(from),+ syncError: FfiConverterBool.read(from),+ conflictsTitle: FfiConverterString.read(from),+ conflicts: FfiConverterSequenceTypeAppConflictView.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.requestsTitle, into);+ FfiConverterSequenceTypeAppLineView.write(value.requests, into);+ FfiConverterString.write(value.grantsTitle, into);+ FfiConverterSequenceTypeAppLineView.write(value.grants, into);+ FfiConverterString.write(value.grantsEmpty, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalTypeAppDriveRequest.write(value.request, into);+ FfiConverterOptionalString.write(value.requestText, into);+ FfiConverterOptionalString.write(value.openLabel, into);+ FfiConverterOptionalString.write(value.mountPath, into);+ FfiConverterOptionalString.write(value.mountLine, into);+ FfiConverterString.write(value.devicesTitle, into);+ FfiConverterSequenceTypeAppLineView.write(value.devices, into);+ FfiConverterOptionalString.write(value.syncNote, into);+ FfiConverterBool.write(value.syncError, into);+ FfiConverterString.write(value.conflictsTitle, into);+ FfiConverterSequenceTypeAppConflictView.write(value.conflicts, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.requestsTitle) ++ FfiConverterSequenceTypeAppLineView.allocationSize(value.requests) ++ FfiConverterString.allocationSize(value.grantsTitle) ++ FfiConverterSequenceTypeAppLineView.allocationSize(value.grants) ++ FfiConverterString.allocationSize(value.grantsEmpty) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalTypeAppDriveRequest.allocationSize(value.request) ++ FfiConverterOptionalString.allocationSize(value.requestText) ++ FfiConverterOptionalString.allocationSize(value.openLabel) ++ FfiConverterOptionalString.allocationSize(value.mountPath) ++ FfiConverterOptionalString.allocationSize(value.mountLine) ++ FfiConverterString.allocationSize(value.devicesTitle) ++ FfiConverterSequenceTypeAppLineView.allocationSize(value.devices) ++ FfiConverterOptionalString.allocationSize(value.syncNote) ++ FfiConverterBool.allocationSize(value.syncError) ++ FfiConverterString.allocationSize(value.conflictsTitle) ++ FfiConverterSequenceTypeAppConflictView.allocationSize(value.conflicts);+}};return new FFIConverter();})();-export enum AppHostActionId {- /**- * Open the host setup form.- */- SetUp = "setUp",- /**- * Cut clients and refuse new ones.- */- StopSharing = "stopSharing",+export type AppDriverFrame = {/**- * Accept clients again.+ * The user's pointer tip.*/- ResumeSharing = "resumeSharing",+ pointer: AppPreviewPoint,/**- * Unregister and uninstall the service.+ * The user presses (drawn a little smaller).*/- Remove = "remove",+ pressed: boolean,/**- * Share this machine's own desktop.+ * How much of the selected line is highlighted, 0 to 1 from its left.*/- ShareDesktop = "shareDesktop",+ selection: number,/**- * Stop sharing this machine's own desktop (Spaces keep running).+ * The agent cursor's tip.*/- HideDesktop = "hideDesktop",+ agent: AppPreviewPoint,/**- * Create Spaces for your other devices.+ * The agent presses (drawn a little smaller).*/- ProvideSpaces = "provideSpaces",+ agentPressed: boolean,/**- * Stop creating Spaces for your other devices.+ * The click rays, 0 hidden, else 0 to 1 through their burst (they+ * grow out and fade).*/- StopProvidingSpaces = "stopProvidingSpaces",+ ripple: number,/**- * Sign in to Cua (relay sharing paused while signed out resumes).+ * Each checkbox's tick, 0 to 1.*/- SignIn = "signIn"+ checked: Array<number>}-const FfiConverterTypeAppHostActionId = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppHostActionId;+/**+ * Generated factory for {@link AppDriverFrame} record objects.+ */+export const AppDriverFrame = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppDriverFrame, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriverFrame>,+ });+})();++const FfiConverterTypeAppDriverFrame = (() => {+ type TypeName = AppDriverFrame;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppHostActionId.SetUp;- case 2: return AppHostActionId.StopSharing;- case 3: return AppHostActionId.ResumeSharing;- case 4: return AppHostActionId.Remove;- case 5: return AppHostActionId.ShareDesktop;- case 6: return AppHostActionId.HideDesktop;- case 7: return AppHostActionId.ProvideSpaces;- case 8: return AppHostActionId.StopProvidingSpaces;- case 9: return AppHostActionId.SignIn;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ pointer: FfiConverterTypeAppPreviewPoint.read(from),+ pressed: FfiConverterBool.read(from),+ selection: FfiConverterFloat64.read(from),+ agent: FfiConverterTypeAppPreviewPoint.read(from),+ agentPressed: FfiConverterBool.read(from),+ ripple: FfiConverterFloat64.read(from),+ checked: FfiConverterSequenceFloat64.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppHostActionId.SetUp: return ordinalConverter.write(1, into);- case AppHostActionId.StopSharing: return ordinalConverter.write(2, into);- case AppHostActionId.ResumeSharing: return ordinalConverter.write(3, into);- case AppHostActionId.Remove: return ordinalConverter.write(4, into);- case AppHostActionId.ShareDesktop: return ordinalConverter.write(5, into);- case AppHostActionId.HideDesktop: return ordinalConverter.write(6, into);- case AppHostActionId.ProvideSpaces: return ordinalConverter.write(7, into);- case AppHostActionId.StopProvidingSpaces: return ordinalConverter.write(8, into);- case AppHostActionId.SignIn: return ordinalConverter.write(9, into);- }+ FfiConverterTypeAppPreviewPoint.write(value.pointer, into);+ FfiConverterBool.write(value.pressed, into);+ FfiConverterFloat64.write(value.selection, into);+ FfiConverterTypeAppPreviewPoint.write(value.agent, into);+ FfiConverterBool.write(value.agentPressed, into);+ FfiConverterFloat64.write(value.ripple, into);+ FfiConverterSequenceFloat64.write(value.checked, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterTypeAppPreviewPoint.allocationSize(value.pointer) ++ FfiConverterBool.allocationSize(value.pressed) ++ FfiConverterFloat64.allocationSize(value.selection) ++ FfiConverterTypeAppPreviewPoint.allocationSize(value.agent) ++ FfiConverterBool.allocationSize(value.agentPressed) ++ FfiConverterFloat64.allocationSize(value.ripple) ++ FfiConverterSequenceFloat64.allocationSize(value.checked);+}- }+ };return new FFIConverter();})();-export type AppHostConfirm = {- /**- * The question.- */- title: string,- /**- * What happens.- */- message: string,+export type AppPreviewSegment = {/**- * The confirming button.+ * Start.*/- confirmLabel: string,+ from: AppPreviewPoint,/**- * The other button.+ * End.*/- cancelLabel: string+ to: AppPreviewPoint}/**- * Generated factory for {@link AppHostConfirm} record objects.+ * Generated factory for {@link AppPreviewSegment} record objects.*/-export const AppHostConfirm = (() => {+export const AppPreviewSegment = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostConfirm, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPreviewSegment, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostConfirm>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPreviewSegment>,});})();-const FfiConverterTypeAppHostConfirm = (() => {- type TypeName = AppHostConfirm;+const FfiConverterTypeAppPreviewSegment = (() => {+ type TypeName = AppPreviewSegment;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- message: FfiConverterString.read(from),- confirmLabel: FfiConverterString.read(from),- cancelLabel: FfiConverterString.read(from)+ from: FfiConverterTypeAppPreviewPoint.read(from),+ to: FfiConverterTypeAppPreviewPoint.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.message, into);- FfiConverterString.write(value.confirmLabel, into);- FfiConverterString.write(value.cancelLabel, into);+ FfiConverterTypeAppPreviewPoint.write(value.from, into);+ FfiConverterTypeAppPreviewPoint.write(value.to, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.message) +- FfiConverterString.allocationSize(value.confirmLabel) +- FfiConverterString.allocationSize(value.cancelLabel);+ return FfiConverterTypeAppPreviewPoint.allocationSize(value.from) ++ FfiConverterTypeAppPreviewPoint.allocationSize(value.to);}};return new FFIConverter();})();-export type AppHostAction = {+export type AppDriverPreview = {/**- * What it does.+ * Stage width.*/- id: AppHostActionId,+ width: number,/**- * Label.+ * Stage height.*/- label: string,+ height: number,/**- * Drawn as destructive.+ * One loop (ms).*/- destructive: boolean,+ loopMs: number,/**- * Ask this first; the action runs only when the user confirms.+ * The window the agent works in (behind).*/- confirm?: AppHostConfirm,+ back: AppPreviewWindow,/**- * Can be pressed now (Resume sharing is not while nothing is on to- * share).+ * The window the user works in (in front).*/- enabled: boolean,+ front: AppPreviewWindow,/**- * The tooltip, when it says something the label does not.+ * The back window's checkboxes, top to bottom.*/- help?: string+ checkboxes: Array<AppLogicalRect>,+ /**+ * The label bar right of each checkbox.+ */+ labels: Array<AppLogicalRect>,+ /**+ * The front window's text lines (placeholder bars).+ */+ lines: Array<AppLogicalRect>,+ /**+ * The line the user selects (an index into `lines`).+ */+ selectedLine: number,+ /**+ * The user's pointer outline, tip at the origin (fill black, stroke+ * white).+ */+ pointer: Array<AppPreviewPoint>,+ /**+ * The agent cursor's outline, tip at the origin (fill `agent_fill`,+ * stroke white, a soft glow of `agent_fill`).+ */+ agentPointer: Array<AppPreviewPoint>,+ /**+ * The agent cursor's fill.+ */+ agentFill: string,+ /**+ * The click rays, relative to the agent cursor's tip.+ */+ agentRays: Array<AppPreviewSegment>}/**- * Generated factory for {@link AppHostAction} record objects.+ * Generated factory for {@link AppDriverPreview} record objects.*/-export const AppHostAction = (() => {+export const AppDriverPreview = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostAction, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppDriverPreview, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostAction>,+ defaults: () => Object.freeze(defaults()) as Partial<AppDriverPreview>,});})();-const FfiConverterTypeAppHostAction = (() => {- type TypeName = AppHostAction;+const FfiConverterTypeAppDriverPreview = (() => {+ type TypeName = AppDriverPreview;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterTypeAppHostActionId.read(from),- label: FfiConverterString.read(from),- destructive: FfiConverterBool.read(from),- confirm: FfiConverterOptionalTypeAppHostConfirm.read(from),- enabled: FfiConverterBool.read(from),- help: FfiConverterOptionalString.read(from)+ width: FfiConverterFloat64.read(from),+ height: FfiConverterFloat64.read(from),+ loopMs: FfiConverterUInt32.read(from),+ back: FfiConverterTypeAppPreviewWindow.read(from),+ front: FfiConverterTypeAppPreviewWindow.read(from),+ checkboxes: FfiConverterSequenceTypeAppLogicalRect.read(from),+ labels: FfiConverterSequenceTypeAppLogicalRect.read(from),+ lines: FfiConverterSequenceTypeAppLogicalRect.read(from),+ selectedLine: FfiConverterUInt32.read(from),+ pointer: FfiConverterSequenceTypeAppPreviewPoint.read(from),+ agentPointer: FfiConverterSequenceTypeAppPreviewPoint.read(from),+ agentFill: FfiConverterString.read(from),+ agentRays: FfiConverterSequenceTypeAppPreviewSegment.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppHostActionId.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.destructive, into);- FfiConverterOptionalTypeAppHostConfirm.write(value.confirm, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterOptionalString.write(value.help, into);+ FfiConverterFloat64.write(value.width, into);+ FfiConverterFloat64.write(value.height, into);+ FfiConverterUInt32.write(value.loopMs, into);+ FfiConverterTypeAppPreviewWindow.write(value.back, into);+ FfiConverterTypeAppPreviewWindow.write(value.front, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.checkboxes, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.labels, into);+ FfiConverterSequenceTypeAppLogicalRect.write(value.lines, into);+ FfiConverterUInt32.write(value.selectedLine, into);+ FfiConverterSequenceTypeAppPreviewPoint.write(value.pointer, into);+ FfiConverterSequenceTypeAppPreviewPoint.write(value.agentPointer, into);+ FfiConverterString.write(value.agentFill, into);+ FfiConverterSequenceTypeAppPreviewSegment.write(value.agentRays, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppHostActionId.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.destructive) +- FfiConverterOptionalTypeAppHostConfirm.allocationSize(value.confirm) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterOptionalString.allocationSize(value.help);+ return FfiConverterFloat64.allocationSize(value.width) ++ FfiConverterFloat64.allocationSize(value.height) ++ FfiConverterUInt32.allocationSize(value.loopMs) ++ FfiConverterTypeAppPreviewWindow.allocationSize(value.back) ++ FfiConverterTypeAppPreviewWindow.allocationSize(value.front) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.checkboxes) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.labels) ++ FfiConverterSequenceTypeAppLogicalRect.allocationSize(value.lines) ++ FfiConverterUInt32.allocationSize(value.selectedLine) ++ FfiConverterSequenceTypeAppPreviewPoint.allocationSize(value.pointer) ++ FfiConverterSequenceTypeAppPreviewPoint.allocationSize(value.agentPointer) ++ FfiConverterString.allocationSize(value.agentFill) ++ FfiConverterSequenceTypeAppPreviewSegment.allocationSize(value.agentRays);}};return new FFIConverter();})();-export type AppHostClient = {- /**- * Account id.- */- id: string,- /**- * Email.- */- email?: string,+export enum AppEnrollMethod {/**- * Display name.+ * A fresh interactive sign-in (enrolls this device at once).*/- name?: string,+ SignIn = "signIn",/**- * Open streams.+ * A one-time code approved from an enrolled device.*/- streams?: number+ Approve = "approve"}-/**- * Generated factory for {@link AppHostClient} record objects.- */-export const AppHostClient = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppHostClient, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostClient>,- });-})();--const FfiConverterTypeAppHostClient = (() => {- type TypeName = AppHostClient;+const FfiConverterTypeAppEnrollMethod = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppEnrollMethod;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- email: FfiConverterOptionalString.read(from),- name: FfiConverterOptionalString.read(from),- streams: FfiConverterOptionalUInt32.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppEnrollMethod.SignIn;+ case 2: return AppEnrollMethod.Approve;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterOptionalString.write(value.email, into);- FfiConverterOptionalString.write(value.name, into);- FfiConverterOptionalUInt32.write(value.streams, into);+ switch (value) {+ case AppEnrollMethod.SignIn: return ordinalConverter.write(1, into);+ case AppEnrollMethod.Approve: return ordinalConverter.write(2, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterOptionalString.allocationSize(value.email) +- FfiConverterOptionalString.allocationSize(value.name) +- FfiConverterOptionalUInt32.allocationSize(value.streams);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppHostFormChoice = {+export type AppEnrollOption = {/**- * `desktop` or `spare`.+ * Method.*/- id: string,+ method: AppEnrollMethod,/**- * Label.+ * Title.*/- label: string+ title: string,+ /**+ * One line under it.+ */+ detail: string}/**- * Generated factory for {@link AppHostFormChoice} record objects.+ * Generated factory for {@link AppEnrollOption} record objects.*/-export const AppHostFormChoice = (() => {+export const AppEnrollOption = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostFormChoice, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppEnrollOption, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostFormChoice>,+ defaults: () => Object.freeze(defaults()) as Partial<AppEnrollOption>,});})();-const FfiConverterTypeAppHostFormChoice = (() => {- type TypeName = AppHostFormChoice;+const FfiConverterTypeAppEnrollOption = (() => {+ type TypeName = AppEnrollOption;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- label: FfiConverterString.read(from)+ method: FfiConverterTypeAppEnrollMethod.read(from),+ title: FfiConverterString.read(from),+ detail: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);+ FfiConverterTypeAppEnrollMethod.write(value.method, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.detail, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label);+ return FfiConverterTypeAppEnrollMethod.allocationSize(value.method) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.detail);}};return new FFIConverter();})();-export type AppHostFormField = {- /**- * `name`, `allow`, `direct`, `listen`, `relay`.- */- id: string,- /**- * Label.- */- label: string,- /**- * Placeholder (text fields).- */- placeholder?: string,+export enum AppEnrollPhase {/**- * Text.+ * Choosing a method.*/- value: string,+ Choose = "choose",/**- * The switch (`direct` only).+ * The shell runs an interactive sign-in.*/- toggle: boolean,+ SigningIn = "signingIn",/**- * On (`direct` only).+ * The shell registers this device with the relay.*/- on: boolean,+ Registering = "registering",/**- * Drawn as invalid.+ * The code shows; the shell polls until an enrolled device approves.*/- invalid: boolean,+ Waiting = "waiting",/**- * Under Advanced.+ * Enrolled.*/- advanced: boolean,+ Enrolled = "enrolled",/**- * A choice of one (`profile` only): `value` is the chosen id.+ * Something failed; Back returns to the choice.*/- choices: Array<AppHostFormChoice>+ Failed = "failed"}-/**- * Generated factory for {@link AppHostFormField} record objects.- */-export const AppHostFormField = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppHostFormField, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostFormField>,- });-})();--const FfiConverterTypeAppHostFormField = (() => {- type TypeName = AppHostFormField;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- placeholder: FfiConverterOptionalString.read(from),- value: FfiConverterString.read(from),- toggle: FfiConverterBool.read(from),- on: FfiConverterBool.read(from),- invalid: FfiConverterBool.read(from),- advanced: FfiConverterBool.read(from),- choices: FfiConverterSequenceTypeAppHostFormChoice.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterOptionalString.write(value.placeholder, into);- FfiConverterString.write(value.value, into);- FfiConverterBool.write(value.toggle, into);- FfiConverterBool.write(value.on, into);- FfiConverterBool.write(value.invalid, into);- FfiConverterBool.write(value.advanced, into);- FfiConverterSequenceTypeAppHostFormChoice.write(value.choices, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterOptionalString.allocationSize(value.placeholder) +- FfiConverterString.allocationSize(value.value) +- FfiConverterBool.allocationSize(value.toggle) +- FfiConverterBool.allocationSize(value.on) +- FfiConverterBool.allocationSize(value.invalid) +- FfiConverterBool.allocationSize(value.advanced) +- FfiConverterSequenceTypeAppHostFormChoice.allocationSize(value.choices);-- }- };- return new FFIConverter();-})();--export type AppHostFormState = {- /**- * Display name.- */- name: string,- /**- * "Also allow" (relay).- */- allow: string,- /**- * Advanced is open.- */- advanced: boolean,- /**- * Direct instead of the relay (Advanced).- */- direct: boolean,- /**- * Direct listen address.- */- listen: string,- /**- * Relay URL (Advanced).- */- relayUrl: string,- /**- * Setup is running.- */- busy: boolean,- /**- * The last failure.- */- error?: string,- /**- * A spare machine: do not share its desktop, provide Spaces (relay- * only).- */- spare: boolean-}--/**- * Generated factory for {@link AppHostFormState} record objects.- */-export const AppHostFormState = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppHostFormState, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostFormState>,- });-})();--const FfiConverterTypeAppHostFormState = (() => {- type TypeName = AppHostFormState;+const FfiConverterTypeAppEnrollPhase = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppEnrollPhase;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- name: FfiConverterString.read(from),- allow: FfiConverterString.read(from),- advanced: FfiConverterBool.read(from),- direct: FfiConverterBool.read(from),- listen: FfiConverterString.read(from),- relayUrl: FfiConverterString.read(from),- busy: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- spare: FfiConverterBool.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppEnrollPhase.Choose;+ case 2: return AppEnrollPhase.SigningIn;+ case 3: return AppEnrollPhase.Registering;+ case 4: return AppEnrollPhase.Waiting;+ case 5: return AppEnrollPhase.Enrolled;+ case 6: return AppEnrollPhase.Failed;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.allow, into);- FfiConverterBool.write(value.advanced, into);- FfiConverterBool.write(value.direct, into);- FfiConverterString.write(value.listen, into);- FfiConverterString.write(value.relayUrl, into);- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.spare, into);+ switch (value) {+ case AppEnrollPhase.Choose: return ordinalConverter.write(1, into);+ case AppEnrollPhase.SigningIn: return ordinalConverter.write(2, into);+ case AppEnrollPhase.Registering: return ordinalConverter.write(3, into);+ case AppEnrollPhase.Waiting: return ordinalConverter.write(4, into);+ case AppEnrollPhase.Enrolled: return ordinalConverter.write(5, into);+ case AppEnrollPhase.Failed: return ordinalConverter.write(6, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.allow) +- FfiConverterBool.allocationSize(value.advanced) +- FfiConverterBool.allocationSize(value.direct) +- FfiConverterString.allocationSize(value.listen) +- FfiConverterString.allocationSize(value.relayUrl) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.spare);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppHostSetupRequest = {- /**- * `relay` (default) or `direct`.- */- mode: string,- /**- * Relay URL; `None` uses the configured default (https://relay.cua.ai).- */- relayUrl?: string,- /**- * Direct `ip:port` (Advanced).- */- direct?: string,- /**- * Display name (default: the host name).- */- name?: string,+export type AppEnrollState = {/**- * Accounts (ids or emails) allowed besides the owner.+ * Phase.*/- allow?: Array<string>,+ phase: AppEnrollPhase,/**- * What the machine is for: `desktop` (share this desktop; the- * default) or `spare` (only run Spaces for your other devices).+ * The chosen method.*/- profile?: string,+ method?: AppEnrollMethod,/**- * Share this machine's own desktop (overrides the profile).+ * The one-time code, while waiting.*/- shareDesktop?: boolean,+ code?: string,/**- * Create Spaces for your other devices (overrides the profile).+ * The last failure.*/- provideSpaces?: boolean+ error?: string}/**- * Generated factory for {@link AppHostSetupRequest} record objects.+ * Generated factory for {@link AppEnrollState} record objects.*/-export const AppHostSetupRequest = (() => {+export const AppEnrollState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostSetupRequest, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppEnrollState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostSetupRequest>,+ defaults: () => Object.freeze(defaults()) as Partial<AppEnrollState>,});})();-const FfiConverterTypeAppHostSetupRequest = (() => {- type TypeName = AppHostSetupRequest;+const FfiConverterTypeAppEnrollState = (() => {+ type TypeName = AppEnrollState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- mode: FfiConverterString.read(from),- relayUrl: FfiConverterOptionalString.read(from),- direct: FfiConverterOptionalString.read(from),- name: FfiConverterOptionalString.read(from),- allow: FfiConverterOptionalSequenceString.read(from),- profile: FfiConverterOptionalString.read(from),- shareDesktop: FfiConverterOptionalBoolean.read(from),- provideSpaces: FfiConverterOptionalBoolean.read(from)+ phase: FfiConverterTypeAppEnrollPhase.read(from),+ method: FfiConverterOptionalTypeAppEnrollMethod.read(from),+ code: FfiConverterOptionalString.read(from),+ error: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.mode, into);- FfiConverterOptionalString.write(value.relayUrl, into);- FfiConverterOptionalString.write(value.direct, into);- FfiConverterOptionalString.write(value.name, into);- FfiConverterOptionalSequenceString.write(value.allow, into);- FfiConverterOptionalString.write(value.profile, into);- FfiConverterOptionalBoolean.write(value.shareDesktop, into);- FfiConverterOptionalBoolean.write(value.provideSpaces, into);+ FfiConverterTypeAppEnrollPhase.write(value.phase, into);+ FfiConverterOptionalTypeAppEnrollMethod.write(value.method, into);+ FfiConverterOptionalString.write(value.code, into);+ FfiConverterOptionalString.write(value.error, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.mode) +- FfiConverterOptionalString.allocationSize(value.relayUrl) +- FfiConverterOptionalString.allocationSize(value.direct) +- FfiConverterOptionalString.allocationSize(value.name) +- FfiConverterOptionalSequenceString.allocationSize(value.allow) +- FfiConverterOptionalString.allocationSize(value.profile) +- FfiConverterOptionalBoolean.allocationSize(value.shareDesktop) +- FfiConverterOptionalBoolean.allocationSize(value.provideSpaces);+ return FfiConverterTypeAppEnrollPhase.allocationSize(value.phase) ++ FfiConverterOptionalTypeAppEnrollMethod.allocationSize(value.method) ++ FfiConverterOptionalString.allocationSize(value.code) ++ FfiConverterOptionalString.allocationSize(value.error);}};return new FFIConverter();})();-export type AppHostFormView = {+export type AppEnrollView = {/**- * "Set up this machine".+ * Title.*/title: string,/**- * One line: what setting up does.+ * One line under the title.*/lede: string,/**- * Visible fields in order (Advanced ones only while it is open).+ * The methods (while choosing).*/- fields: Array<AppHostFormField>,+ options: Array<AppEnrollOption>,/**- * "Advanced".+ * The one-time code (while waiting).*/- advancedLabel: string,+ code?: string,/**- * Advanced is open.+ * How to use the code.*/- advancedOpen: boolean,+ codeHelp?: string,/**- * "Back".+ * What is happening now.*/- backLabel: string,+ status?: string,/**- * "Set up for access" or "Setting up…".+ * A failure.*/- submitLabel: string,+ error?: string,/**- * The submit button is enabled.+ * Working (a spinner).*/- canSubmit: boolean,+ busy: boolean,/**- * Setup is running.+ * Enrolled.*/- busy: boolean,+ done: boolean,/**- * The last failure, one line.+ * Back (after a failure).*/- error?: string,+ backLabel?: string,/**- * What host setup receives (validated), when it can submit.+ * Cancel, or Done once enrolled.*/- request?: AppHostSetupRequest+ closeLabel: string}/**- * Generated factory for {@link AppHostFormView} record objects.+ * Generated factory for {@link AppEnrollView} record objects.*/-export const AppHostFormView = (() => {+export const AppEnrollView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostFormView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppEnrollView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostFormView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppEnrollView>,});})();-const FfiConverterTypeAppHostFormView = (() => {- type TypeName = AppHostFormView;+const FfiConverterTypeAppEnrollView = (() => {+ type TypeName = AppEnrollView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {title: FfiConverterString.read(from),lede: FfiConverterString.read(from),- fields: FfiConverterSequenceTypeAppHostFormField.read(from),- advancedLabel: FfiConverterString.read(from),- advancedOpen: FfiConverterBool.read(from),- backLabel: FfiConverterString.read(from),- submitLabel: FfiConverterString.read(from),- canSubmit: FfiConverterBool.read(from),- busy: FfiConverterBool.read(from),+ options: FfiConverterSequenceTypeAppEnrollOption.read(from),+ code: FfiConverterOptionalString.read(from),+ codeHelp: FfiConverterOptionalString.read(from),+ status: FfiConverterOptionalString.read(from),error: FfiConverterOptionalString.read(from),- request: FfiConverterOptionalTypeAppHostSetupRequest.read(from)+ busy: FfiConverterBool.read(from),+ done: FfiConverterBool.read(from),+ backLabel: FfiConverterOptionalString.read(from),+ closeLabel: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.title, into);FfiConverterString.write(value.lede, into);- FfiConverterSequenceTypeAppHostFormField.write(value.fields, into);- FfiConverterString.write(value.advancedLabel, into);- FfiConverterBool.write(value.advancedOpen, into);- FfiConverterString.write(value.backLabel, into);- FfiConverterString.write(value.submitLabel, into);- FfiConverterBool.write(value.canSubmit, into);- FfiConverterBool.write(value.busy, into);+ FfiConverterSequenceTypeAppEnrollOption.write(value.options, into);+ FfiConverterOptionalString.write(value.code, into);+ FfiConverterOptionalString.write(value.codeHelp, into);+ FfiConverterOptionalString.write(value.status, into);FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalTypeAppHostSetupRequest.write(value.request, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterBool.write(value.done, into);+ FfiConverterOptionalString.write(value.backLabel, into);+ FfiConverterString.write(value.closeLabel, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.title) +FfiConverterString.allocationSize(value.lede) +- FfiConverterSequenceTypeAppHostFormField.allocationSize(value.fields) +- FfiConverterString.allocationSize(value.advancedLabel) +- FfiConverterBool.allocationSize(value.advancedOpen) +- FfiConverterString.allocationSize(value.backLabel) +- FfiConverterString.allocationSize(value.submitLabel) +- FfiConverterBool.allocationSize(value.canSubmit) +- FfiConverterBool.allocationSize(value.busy) ++ FfiConverterSequenceTypeAppEnrollOption.allocationSize(value.options) ++ FfiConverterOptionalString.allocationSize(value.code) ++ FfiConverterOptionalString.allocationSize(value.codeHelp) ++ FfiConverterOptionalString.allocationSize(value.status) +FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalTypeAppHostSetupRequest.allocationSize(value.request);+ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterBool.allocationSize(value.done) ++ FfiConverterOptionalString.allocationSize(value.backLabel) ++ FfiConverterString.allocationSize(value.closeLabel);}};return new FFIConverter();})();-export type AppHostLimit = {- /**- * `spaces` (every Space it provides), `macos_vms` (macOS VMs on that- * Mac), or [`HOST_SHARING_STOPPED`] (not a limit: its owner stopped- * sharing it).- */- resource: string,- /**- * In use now.- */- used: number,+export type AppEntrySection = {/**- * The limit (0: none).+ * "Recent", "Apps", "Not available".*/- limit: number,+ title: string,/**- * Why the limit exists, for people ("Apple's macOS license allows two- * macOS VMs per Mac").+ * Entries.*/- reason: string+ entries: Array<AppCatalogEntry>}/**- * Generated factory for {@link AppHostLimit} record objects.+ * Generated factory for {@link AppEntrySection} record objects.*/-export const AppHostLimit = (() => {+export const AppEntrySection = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostLimit, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppEntrySection, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostLimit>,+ defaults: () => Object.freeze(defaults()) as Partial<AppEntrySection>,});})();-const FfiConverterTypeAppHostLimit = (() => {- type TypeName = AppHostLimit;+const FfiConverterTypeAppEntrySection = (() => {+ type TypeName = AppEntrySection;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- resource: FfiConverterString.read(from),- used: FfiConverterUInt32.read(from),- limit: FfiConverterUInt32.read(from),- reason: FfiConverterString.read(from)+ title: FfiConverterString.read(from),+ entries: FfiConverterSequenceTypeAppCatalogEntry.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.resource, into);- FfiConverterUInt32.write(value.used, into);- FfiConverterUInt32.write(value.limit, into);- FfiConverterString.write(value.reason, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppCatalogEntry.write(value.entries, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.resource) +- FfiConverterUInt32.allocationSize(value.used) +- FfiConverterUInt32.allocationSize(value.limit) +- FfiConverterString.allocationSize(value.reason);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppCatalogEntry.allocationSize(value.entries);}};return new FFIConverter();})();-export type AppHostToggle = {+export type AppFactCopy = {/**- * `desktop` or `spaces`.+ * What is copied (the full value).*/- id: string,+ text: string,/**- * Label.+ * SF Symbol (`doc.on.doc`).*/- label: string,+ symbol: string,/**- * One line under it.+ * Tooltip and accessibility label ("Copy").*/help: string,/**- * On now.+ * The symbol while confirming (`checkmark`).*/- on: boolean,+ doneSymbol: string,/**- * Can be flipped (the last setting on cannot be turned off; Spaces- * need the relay).+ * The tooltip while confirming ("Copied").*/- enabled: boolean,+ doneHelp: string,/**- * What flipping it runs.+ * How long the confirmation shows, in milliseconds.*/- action: AppHostActionId+ confirmMs: number}/**- * Generated factory for {@link AppHostToggle} record objects.+ * Generated factory for {@link AppFactCopy} record objects.*/-export const AppHostToggle = (() => {+export const AppFactCopy = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostToggle, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppFactCopy, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostToggle>,+ defaults: () => Object.freeze(defaults()) as Partial<AppFactCopy>,});})();-const FfiConverterTypeAppHostToggle = (() => {- type TypeName = AppHostToggle;+const FfiConverterTypeAppFactCopy = (() => {+ type TypeName = AppFactCopy;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- label: FfiConverterString.read(from),+ text: FfiConverterString.read(from),+ symbol: FfiConverterString.read(from),help: FfiConverterString.read(from),- on: FfiConverterBool.read(from),- enabled: FfiConverterBool.read(from),- action: FfiConverterTypeAppHostActionId.read(from)+ doneSymbol: FfiConverterString.read(from),+ doneHelp: FfiConverterString.read(from),+ confirmMs: FfiConverterUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.symbol, into);FfiConverterString.write(value.help, into);- FfiConverterBool.write(value.on, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterTypeAppHostActionId.write(value.action, into);+ FfiConverterString.write(value.doneSymbol, into);+ FfiConverterString.write(value.doneHelp, into);+ FfiConverterUInt32.write(value.confirmMs, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) ++ return FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.symbol) +FfiConverterString.allocationSize(value.help) +- FfiConverterBool.allocationSize(value.on) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterTypeAppHostActionId.allocationSize(value.action);+ FfiConverterString.allocationSize(value.doneSymbol) ++ FfiConverterString.allocationSize(value.doneHelp) ++ FfiConverterUInt32.allocationSize(value.confirmMs);}};return new FFIConverter();})();-export type AppPermissionRow = {- /**- * Id.- */- id: string,- /**- * "Screen Recording".- */- title: string,+export type AppFactWarning = {/**- * Tooltip (what to turn on).+ * SF Symbol ([`WARNING_SYMBOL`]).*/- help: string,+ symbol: string,/**- * The pane (only a `x-apple.systempreferences:` URL is opened).+ * Tooltip and accessibility label.*/- settingsUrl?: string+ help: string}/**- * Generated factory for {@link AppPermissionRow} record objects.+ * Generated factory for {@link AppFactWarning} record objects.*/-export const AppPermissionRow = (() => {+export const AppFactWarning = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPermissionRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppFactWarning, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPermissionRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppFactWarning>,});})();-const FfiConverterTypeAppPermissionRow = (() => {- type TypeName = AppPermissionRow;+const FfiConverterTypeAppFactWarning = (() => {+ type TypeName = AppFactWarning;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- help: FfiConverterString.read(from),- settingsUrl: FfiConverterOptionalString.read(from)+ symbol: FfiConverterString.read(from),+ help: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.symbol, into);FfiConverterString.write(value.help, into);- FfiConverterOptionalString.write(value.settingsUrl, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.help) +- FfiConverterOptionalString.allocationSize(value.settingsUrl);+ return FfiConverterString.allocationSize(value.symbol) ++ FfiConverterString.allocationSize(value.help);}};return new FFIConverter();})();-export type AppHostSetupChoice = {- /**- * The form's profile: `desktop` or `spare`.- */- id: string,+export type AppFact = {/*** Label.*/label: string,/**- * The button that opens the form with this choice.+ * Value.*/- buttonLabel: string-}--/**- * Generated factory for {@link AppHostSetupChoice} record objects.+ value: string,+ /**+ * A copy button after the value (the Space's identifier and image).+ */+ copy?: AppFactCopy,+ /**+ * The tooltip: the full value (and an image's digest).+ */+ help?: string,+ /**+ * A warning symbol after the value, with its tooltip: a local Space+ * emulating another architecture.+ */+ warning?: AppFactWarning+}++/**+ * Generated factory for {@link AppFact} record objects.*/-export const AppHostSetupChoice = (() => {+export const AppFact = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostSetupChoice, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppFact, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostSetupChoice>,+ defaults: () => Object.freeze(defaults()) as Partial<AppFact>,});})();-const FfiConverterTypeAppHostSetupChoice = (() => {- type TypeName = AppHostSetupChoice;+const FfiConverterTypeAppFact = (() => {+ type TypeName = AppFact;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),label: FfiConverterString.read(from),- buttonLabel: FfiConverterString.read(from)+ value: FfiConverterString.read(from),+ copy: FfiConverterOptionalTypeAppFactCopy.read(from),+ help: FfiConverterOptionalString.read(from),+ warning: FfiConverterOptionalTypeAppFactWarning.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);FfiConverterString.write(value.label, into);- FfiConverterString.write(value.buttonLabel, into);+ FfiConverterString.write(value.value, into);+ FfiConverterOptionalTypeAppFactCopy.write(value.copy, into);+ FfiConverterOptionalString.write(value.help, into);+ FfiConverterOptionalTypeAppFactWarning.write(value.warning, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.buttonLabel);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.value) ++ FfiConverterOptionalTypeAppFactCopy.allocationSize(value.copy) ++ FfiConverterOptionalString.allocationSize(value.help) ++ FfiConverterOptionalTypeAppFactWarning.allocationSize(value.warning);}};return new FFIConverter();})();-export type AppHostPanelView = {- /**- * "This machine".- */- title: string,- /**- * One line: how it is shared, or that it is not.- */- summary: string,- /**- * Why relay sharing is paused, one line over the page (signed out, or- * signed in to another account).- */- notice?: string,- /**- * The notice's button ("Sign In").- */- noticeAction?: AppHostAction,- /**- * Set up for access.- */- configured: boolean,- /**- * Name, Access, Service.- */- facts: Array<AppFact>,- /**- * "Connected now" (configured only).- */- clientsTitle?: string,- /**- * One line per client.- */- clients: Array<string>,- /**- * "Nobody" when nobody is connected.- */- clientsEmpty?: string,- /**- * "Recent access" (configured, when the log has any).- */- recentTitle?: string,- /**- * Who reached this machine recently, newest first: the first- * [`LOG_PREVIEW_ROWS`] of [`Self::recent_all`].- */- recent: Array<AppHostAccessRow>,- /**- * "Show All…" when `recent_all` has more than `recent` shows.- */- recentMore?: string,- /**- * Every recent access (connections, refusals, other people's- * thumbnails), repeats collapsed: the "Show All" sheet.- */- recentAll: Array<AppHostAccessRow>,- /**- * The same with background probes and the owner's thumbnails too- * (the sheet's "Include background activity").- */- recentWithBackground: Array<AppHostAccessRow>,- /**- * Set when the access log does not verify.- */- accessWarning?: string,- /**- * The two settings (configured only).- */- toggles: Array<AppHostToggle>,- /**- * The limits, one line ("Up to 4 Spaces \u{b7} 2 macOS VMs"), while- * providing Spaces.- */- limits?: string,- /**- * "Spaces for your devices", while providing Spaces.- */- providedTitle?: string,- /**- * One row per Space this machine provides.- */- provided: Array<AppHostAccessRow>,- /**- * "None yet" when it provides none.- */- providedEmpty?: string,- /**- * "Spaces activity" (when the audit has any).- */- activityTitle?: string,- /**- * Remote creates, deletes and refusals, newest first: the first- * [`LOG_PREVIEW_ROWS`] of [`Self::activity_all`].- */- activity: Array<AppHostAccessRow>,- /**- * "Show All…" when `activity_all` has more than `activity` shows.- */- activityMore?: string,- /**- * The whole Spaces activity, repeats collapsed.- */- activityAll: Array<AppHostAccessRow>,+export type AppGpuChoice = {/**- * Set when the Spaces audit does not verify.+ * `lume`, `qemu`, `container`, `gvisor`, `fleet`.*/- activityWarning?: string,+ runtime: string,/**- * Heading over the permission rows, when any is left to grant.+ * What the create passes as `gpu` (`paravirtual`).*/- permissionsTitle?: string,+ id: string,/**- * Panes still to grant.+ * "GPU acceleration".*/- permissions: Array<AppPermissionRow>,+ label: string,/**- * The permission rows' button.+ * Shown as "(Experimental)".*/- openSettingsLabel: string,+ experimental: boolean,/**- * Buttons, primary first.+ * Works on this machine now.*/- actions: Array<AppHostAction>,+ supported: boolean,/**- * Before setup: what this machine is and why set it up.+ * Why not, one line.*/- intro?: string,+ reason?: string,/**- * Before setup: the ways to set it up, shown inline.+ * The page "Learn more" opens.*/- setupChoices: Array<AppHostSetupChoice>+ learnMore?: string}/**- * Generated factory for {@link AppHostPanelView} record objects.+ * Generated factory for {@link AppGpuChoice} record objects.*/-export const AppHostPanelView = (() => {+export const AppGpuChoice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostPanelView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppGpuChoice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostPanelView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppGpuChoice>,});})();-const FfiConverterTypeAppHostPanelView = (() => {- type TypeName = AppHostPanelView;+const FfiConverterTypeAppGpuChoice = (() => {+ type TypeName = AppGpuChoice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- summary: FfiConverterString.read(from),- notice: FfiConverterOptionalString.read(from),- noticeAction: FfiConverterOptionalTypeAppHostAction.read(from),- configured: FfiConverterBool.read(from),- facts: FfiConverterSequenceTypeAppFact.read(from),- clientsTitle: FfiConverterOptionalString.read(from),- clients: FfiConverterSequenceString.read(from),- clientsEmpty: FfiConverterOptionalString.read(from),- recentTitle: FfiConverterOptionalString.read(from),- recent: FfiConverterSequenceTypeAppHostAccessRow.read(from),- recentMore: FfiConverterOptionalString.read(from),- recentAll: FfiConverterSequenceTypeAppHostAccessRow.read(from),- recentWithBackground: FfiConverterSequenceTypeAppHostAccessRow.read(from),- accessWarning: FfiConverterOptionalString.read(from),- toggles: FfiConverterSequenceTypeAppHostToggle.read(from),- limits: FfiConverterOptionalString.read(from),- providedTitle: FfiConverterOptionalString.read(from),- provided: FfiConverterSequenceTypeAppHostAccessRow.read(from),- providedEmpty: FfiConverterOptionalString.read(from),- activityTitle: FfiConverterOptionalString.read(from),- activity: FfiConverterSequenceTypeAppHostAccessRow.read(from),- activityMore: FfiConverterOptionalString.read(from),- activityAll: FfiConverterSequenceTypeAppHostAccessRow.read(from),- activityWarning: FfiConverterOptionalString.read(from),- permissionsTitle: FfiConverterOptionalString.read(from),- permissions: FfiConverterSequenceTypeAppPermissionRow.read(from),- openSettingsLabel: FfiConverterString.read(from),- actions: FfiConverterSequenceTypeAppHostAction.read(from),- intro: FfiConverterOptionalString.read(from),- setupChoices: FfiConverterSequenceTypeAppHostSetupChoice.read(from)+ runtime: FfiConverterString.read(from),+ id: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ experimental: FfiConverterBool.read(from),+ supported: FfiConverterBool.read(from),+ reason: FfiConverterOptionalString.read(from),+ learnMore: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.summary, into);- FfiConverterOptionalString.write(value.notice, into);- FfiConverterOptionalTypeAppHostAction.write(value.noticeAction, into);- FfiConverterBool.write(value.configured, into);- FfiConverterSequenceTypeAppFact.write(value.facts, into);- FfiConverterOptionalString.write(value.clientsTitle, into);- FfiConverterSequenceString.write(value.clients, into);- FfiConverterOptionalString.write(value.clientsEmpty, into);- FfiConverterOptionalString.write(value.recentTitle, into);- FfiConverterSequenceTypeAppHostAccessRow.write(value.recent, into);- FfiConverterOptionalString.write(value.recentMore, into);- FfiConverterSequenceTypeAppHostAccessRow.write(value.recentAll, into);- FfiConverterSequenceTypeAppHostAccessRow.write(value.recentWithBackground, into);- FfiConverterOptionalString.write(value.accessWarning, into);- FfiConverterSequenceTypeAppHostToggle.write(value.toggles, into);- FfiConverterOptionalString.write(value.limits, into);- FfiConverterOptionalString.write(value.providedTitle, into);- FfiConverterSequenceTypeAppHostAccessRow.write(value.provided, into);- FfiConverterOptionalString.write(value.providedEmpty, into);- FfiConverterOptionalString.write(value.activityTitle, into);- FfiConverterSequenceTypeAppHostAccessRow.write(value.activity, into);- FfiConverterOptionalString.write(value.activityMore, into);- FfiConverterSequenceTypeAppHostAccessRow.write(value.activityAll, into);- FfiConverterOptionalString.write(value.activityWarning, into);- FfiConverterOptionalString.write(value.permissionsTitle, into);- FfiConverterSequenceTypeAppPermissionRow.write(value.permissions, into);- FfiConverterString.write(value.openSettingsLabel, into);- FfiConverterSequenceTypeAppHostAction.write(value.actions, into);- FfiConverterOptionalString.write(value.intro, into);- FfiConverterSequenceTypeAppHostSetupChoice.write(value.setupChoices, into);+ FfiConverterString.write(value.runtime, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.experimental, into);+ FfiConverterBool.write(value.supported, into);+ FfiConverterOptionalString.write(value.reason, into);+ FfiConverterOptionalString.write(value.learnMore, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.summary) +- FfiConverterOptionalString.allocationSize(value.notice) +- FfiConverterOptionalTypeAppHostAction.allocationSize(value.noticeAction) +- FfiConverterBool.allocationSize(value.configured) +- FfiConverterSequenceTypeAppFact.allocationSize(value.facts) +- FfiConverterOptionalString.allocationSize(value.clientsTitle) +- FfiConverterSequenceString.allocationSize(value.clients) +- FfiConverterOptionalString.allocationSize(value.clientsEmpty) +- FfiConverterOptionalString.allocationSize(value.recentTitle) +- FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.recent) +- FfiConverterOptionalString.allocationSize(value.recentMore) +- FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.recentAll) +- FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.recentWithBackground) +- FfiConverterOptionalString.allocationSize(value.accessWarning) +- FfiConverterSequenceTypeAppHostToggle.allocationSize(value.toggles) +- FfiConverterOptionalString.allocationSize(value.limits) +- FfiConverterOptionalString.allocationSize(value.providedTitle) +- FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.provided) +- FfiConverterOptionalString.allocationSize(value.providedEmpty) +- FfiConverterOptionalString.allocationSize(value.activityTitle) +- FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.activity) +- FfiConverterOptionalString.allocationSize(value.activityMore) +- FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.activityAll) +- FfiConverterOptionalString.allocationSize(value.activityWarning) +- FfiConverterOptionalString.allocationSize(value.permissionsTitle) +- FfiConverterSequenceTypeAppPermissionRow.allocationSize(value.permissions) +- FfiConverterString.allocationSize(value.openSettingsLabel) +- FfiConverterSequenceTypeAppHostAction.allocationSize(value.actions) +- FfiConverterOptionalString.allocationSize(value.intro) +- FfiConverterSequenceTypeAppHostSetupChoice.allocationSize(value.setupChoices);+ return FfiConverterString.allocationSize(value.runtime) ++ FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.experimental) ++ FfiConverterBool.allocationSize(value.supported) ++ FfiConverterOptionalString.allocationSize(value.reason) ++ FfiConverterOptionalString.allocationSize(value.learnMore);}};return new FFIConverter();})();-export type AppHostPermissionInput = {+export type AppGpuRow = {/**- * `screen-recording`, `accessibility`.+ * "GPU acceleration (Experimental)".*/- id: string,+ label: string,/**- * "Screen Recording".+ * Checked.*/- title: string,+ on: boolean,/**- * The pane to open.+ * It can be checked here.*/- settingsUrl?: string,+ enabled: boolean,/**- * What to turn on there.+ * Why not, one line (a disabled row).*/- instructions?: string,+ reason?: string,/**- * Already granted.+ * "Learn more".*/- granted: boolean+ learnMoreLabel: string,+ /**+ * The page it opens.+ */+ learnMoreUrl?: string}/**- * Generated factory for {@link AppHostPermissionInput} record objects.+ * Generated factory for {@link AppGpuRow} record objects.*/-export const AppHostPermissionInput = (() => {+export const AppGpuRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostPermissionInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppGpuRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostPermissionInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppGpuRow>,});})();-const FfiConverterTypeAppHostPermissionInput = (() => {- type TypeName = AppHostPermissionInput;+const FfiConverterTypeAppGpuRow = (() => {+ type TypeName = AppGpuRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- settingsUrl: FfiConverterOptionalString.read(from),- instructions: FfiConverterOptionalString.read(from),- granted: FfiConverterBool.read(from)+ label: FfiConverterString.read(from),+ on: FfiConverterBool.read(from),+ enabled: FfiConverterBool.read(from),+ reason: FfiConverterOptionalString.read(from),+ learnMoreLabel: FfiConverterString.read(from),+ learnMoreUrl: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);- FfiConverterOptionalString.write(value.settingsUrl, into);- FfiConverterOptionalString.write(value.instructions, into);- FfiConverterBool.write(value.granted, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.on, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterOptionalString.write(value.reason, into);+ FfiConverterString.write(value.learnMoreLabel, into);+ FfiConverterOptionalString.write(value.learnMoreUrl, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterOptionalString.allocationSize(value.settingsUrl) +- FfiConverterOptionalString.allocationSize(value.instructions) +- FfiConverterBool.allocationSize(value.granted);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.on) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterOptionalString.allocationSize(value.reason) ++ FfiConverterString.allocationSize(value.learnMoreLabel) ++ FfiConverterOptionalString.allocationSize(value.learnMoreUrl);}};return new FFIConverter();})();-export type AppHostProvidedSpace = {- /**- * The relay machine it is reached as.- */- relayMachine: string,- /**- * The Space on this machine (`local:<name>`).- */- localSpace: string,- /**- * Display name.- */- name: string,- /**- * The image.- */- image: string,+export type AppHostAccess = {/**- * `linux`, `macos`.+ * Epoch ms.*/- os: string,+ atMs: bigint,/**- * `container` or `vm`.+ * How the caller authenticated: `relay`, `viewer` or `token`.*/- kind: string,+ via: string,/**- * Who created it.+ * Who (a relay-verified account, a viewer, or the token holder).*/- createdBy: string,+ who: string,/**- * Epoch ms.+ * What they used (a service name such as `ProcessService`, or `MCP`).*/- createdAtMs: bigint+ what: string}/**- * Generated factory for {@link AppHostProvidedSpace} record objects.+ * Generated factory for {@link AppHostAccess} record objects.*/-export const AppHostProvidedSpace = (() => {+export const AppHostAccess = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostProvidedSpace, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostAccess, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostProvidedSpace>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostAccess>,});})();-const FfiConverterTypeAppHostProvidedSpace = (() => {- type TypeName = AppHostProvidedSpace;+const FfiConverterTypeAppHostAccess = (() => {+ type TypeName = AppHostAccess;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- relayMachine: FfiConverterString.read(from),- localSpace: FfiConverterString.read(from),- name: FfiConverterString.read(from),- image: FfiConverterString.read(from),- os: FfiConverterString.read(from),- kind: FfiConverterString.read(from),- createdBy: FfiConverterString.read(from),- createdAtMs: FfiConverterInt64.read(from)+ atMs: FfiConverterInt64.read(from),+ via: FfiConverterString.read(from),+ who: FfiConverterString.read(from),+ what: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.relayMachine, into);- FfiConverterString.write(value.localSpace, into);- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.image, into);- FfiConverterString.write(value.os, into);- FfiConverterString.write(value.kind, into);- FfiConverterString.write(value.createdBy, into);- FfiConverterInt64.write(value.createdAtMs, into);+ FfiConverterInt64.write(value.atMs, into);+ FfiConverterString.write(value.via, into);+ FfiConverterString.write(value.who, into);+ FfiConverterString.write(value.what, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.relayMachine) +- FfiConverterString.allocationSize(value.localSpace) +- FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.image) +- FfiConverterString.allocationSize(value.os) +- FfiConverterString.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.createdBy) +- FfiConverterInt64.allocationSize(value.createdAtMs);+ return FfiConverterInt64.allocationSize(value.atMs) ++ FfiConverterString.allocationSize(value.via) ++ FfiConverterString.allocationSize(value.who) ++ FfiConverterString.allocationSize(value.what);}};return new FFIConverter();})();-export type AppHostSettingChange = {+export type AppHostAccessRow = {/**- * Share this desktop.+ * "Ada · Files".*/- shareDesktop?: boolean,+ text: string,/**- * Provide Spaces.+ * Epoch ms (each shell shows it relative, natively).*/- provideSpaces?: boolean+ atMs: bigint}/**- * Generated factory for {@link AppHostSettingChange} record objects.+ * Generated factory for {@link AppHostAccessRow} record objects.*/-export const AppHostSettingChange = (() => {+export const AppHostAccessRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostSettingChange, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostAccessRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostSettingChange>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostAccessRow>,});})();-const FfiConverterTypeAppHostSettingChange = (() => {- type TypeName = AppHostSettingChange;+const FfiConverterTypeAppHostAccessRow = (() => {+ type TypeName = AppHostAccessRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- shareDesktop: FfiConverterOptionalBoolean.read(from),- provideSpaces: FfiConverterOptionalBoolean.read(from)+ text: FfiConverterString.read(from),+ atMs: FfiConverterInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalBoolean.write(value.shareDesktop, into);- FfiConverterOptionalBoolean.write(value.provideSpaces, into);+ FfiConverterString.write(value.text, into);+ FfiConverterInt64.write(value.atMs, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalBoolean.allocationSize(value.shareDesktop) +- FfiConverterOptionalBoolean.allocationSize(value.provideSpaces);+ return FfiConverterString.allocationSize(value.text) ++ FfiConverterInt64.allocationSize(value.atMs);}};return new FFIConverter();})();-export type AppHostSpacesAudit = {- /**- * Epoch ms.- */- atMs: bigint,+export type AppHostAccount = {/**- * `create`, `delete`, `refused`, `failed`, `config`.+ * The account id (the session's `sub`).*/- action: string,+ id?: string,/**- * Who (an account, or `local`).+ * Its email.*/- who: string,+ email?: string,/**- * The relay machine or Space.+ * What the app shows for it (a display name, else the email).*/- space: string,- /**- * Detail.- */- detail: string+ display?: string}/**- * Generated factory for {@link AppHostSpacesAudit} record objects.+ * Generated factory for {@link AppHostAccount} record objects.*/-export const AppHostSpacesAudit = (() => {+export const AppHostAccount = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostSpacesAudit, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostAccount, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostSpacesAudit>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostAccount>,});})();-const FfiConverterTypeAppHostSpacesAudit = (() => {- type TypeName = AppHostSpacesAudit;+const FfiConverterTypeAppHostAccount = (() => {+ type TypeName = AppHostAccount;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- atMs: FfiConverterInt64.read(from),- action: FfiConverterString.read(from),- who: FfiConverterString.read(from),- space: FfiConverterString.read(from),- detail: FfiConverterString.read(from)+ id: FfiConverterOptionalString.read(from),+ email: FfiConverterOptionalString.read(from),+ display: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterInt64.write(value.atMs, into);- FfiConverterString.write(value.action, into);- FfiConverterString.write(value.who, into);- FfiConverterString.write(value.space, into);- FfiConverterString.write(value.detail, into);+ FfiConverterOptionalString.write(value.id, into);+ FfiConverterOptionalString.write(value.email, into);+ FfiConverterOptionalString.write(value.display, into);}allocationSize(value: TypeName): number {- return FfiConverterInt64.allocationSize(value.atMs) +- FfiConverterString.allocationSize(value.action) +- FfiConverterString.allocationSize(value.who) +- FfiConverterString.allocationSize(value.space) +- FfiConverterString.allocationSize(value.detail);+ return FfiConverterOptionalString.allocationSize(value.id) ++ FfiConverterOptionalString.allocationSize(value.email) ++ FfiConverterOptionalString.allocationSize(value.display);}};return new FFIConverter();})();-export type AppHostState = {- /**- * Set up for access.- */- configured: boolean,- /**- * `relay` or `direct`.- */- mode?: string,- /**- * Relay URL.- */- relayUrl?: string,- /**- * Direct URL.- */- directUrl?: string,- /**- * Display name.- */- name?: string,- /**- * Accepting clients.- */- sharing: boolean,- /**- * Service installed.- */- serviceInstalled: boolean,- /**- * Service running.- */- serviceRunning: boolean,- /**- * `launchd`, `systemd`, `windows-task`, `process`.- */- serviceKind: string,- /**- * Online at the relay.- */- online?: boolean,- /**- * Connected now.- */- clients: Array<AppHostClient>,- /**- * Panes to grant.- */- permissions: Array<AppHostPermissionInput>,- /**- * Needs attention.- */- error?: string,+export enum AppHostActionId {/**- * Who reached this machine recently, newest first.+ * Open the host setup form.*/- recentAccess: Array<AppHostAccess>,+ SetUp = "setUp",/**- * Set when the access log does not verify (edited or truncated).+ * Cut clients and refuse new ones.*/- accessLogError?: string,+ StopSharing = "stopSharing",/**- * This machine's own desktop is a Space.+ * Accept clients again.*/- shareDesktop: boolean,+ ResumeSharing = "resumeSharing",/**- * This machine creates Spaces for your other devices.+ * Unregister and uninstall the service.*/- provideSpaces: boolean,+ Remove = "remove",/**- * Provided Spaces at once (0: no limit).+ * Share this machine's own desktop.*/- maxSpaces: number,+ ShareDesktop = "shareDesktop",/**- * macOS VMs at once (at most two; 0 off a Mac).+ * Stop sharing this machine's own desktop (Spaces keep running).*/- maxMacosVms: number,+ HideDesktop = "hideDesktop",/**- * The Spaces this machine provides now.+ * Create Spaces for your other devices.*/- providedSpaces: Array<AppHostProvidedSpace>,+ ProvideSpaces = "provideSpaces",/**- * Remote creates, deletes and refusals, and settings changes, newest- * first.+ * Stop creating Spaces for your other devices.*/- spacesAudit: Array<AppHostSpacesAudit>,+ StopProvidingSpaces = "stopProvidingSpaces",/**- * Set when the Spaces audit does not verify.+ * Sign in to Cua (relay sharing paused while signed out resumes).*/- spacesAuditError?: string,+ SignIn = "signIn"+}++const FfiConverterTypeAppHostActionId = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppHostActionId;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppHostActionId.SetUp;+ case 2: return AppHostActionId.StopSharing;+ case 3: return AppHostActionId.ResumeSharing;+ case 4: return AppHostActionId.Remove;+ case 5: return AppHostActionId.ShareDesktop;+ case 6: return AppHostActionId.HideDesktop;+ case 7: return AppHostActionId.ProvideSpaces;+ case 8: return AppHostActionId.StopProvidingSpaces;+ case 9: return AppHostActionId.SignIn;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppHostActionId.SetUp: return ordinalConverter.write(1, into);+ case AppHostActionId.StopSharing: return ordinalConverter.write(2, into);+ case AppHostActionId.ResumeSharing: return ordinalConverter.write(3, into);+ case AppHostActionId.Remove: return ordinalConverter.write(4, into);+ case AppHostActionId.ShareDesktop: return ordinalConverter.write(5, into);+ case AppHostActionId.HideDesktop: return ordinalConverter.write(6, into);+ case AppHostActionId.ProvideSpaces: return ordinalConverter.write(7, into);+ case AppHostActionId.StopProvidingSpaces: return ordinalConverter.write(8, into);+ case AppHostActionId.SignIn: return ordinalConverter.write(9, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppHostConfirm = {/**- * Relay sharing is paused until the owner signs in again (the host- * left the relay; its setup stays).+ * The question.*/- pausedSignedOut: boolean,+ title: string,/**- * The account this machine is registered to (relay mode): its id.+ * What happens.*/- owner?: string,+ message: string,/**- * The owner's email, when the relay gave one.+ * The confirming button.*/- ownerEmail?: string,+ confirmLabel: string,/**- * Who is signed in to Cua in this app (`None`: nobody, or the shell- * does not say). The shell fills it; the host does not know.+ * The other button.*/- account?: AppHostAccount+ cancelLabel: string}/**- * Generated factory for {@link AppHostState} record objects.+ * Generated factory for {@link AppHostConfirm} record objects.*/-export const AppHostState = (() => {+export const AppHostConfirm = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostConfirm, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostConfirm>,});})();-const FfiConverterTypeAppHostState = (() => {- type TypeName = AppHostState;+const FfiConverterTypeAppHostConfirm = (() => {+ type TypeName = AppHostConfirm;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- configured: FfiConverterBool.read(from),- mode: FfiConverterOptionalString.read(from),- relayUrl: FfiConverterOptionalString.read(from),- directUrl: FfiConverterOptionalString.read(from),- name: FfiConverterOptionalString.read(from),- sharing: FfiConverterBool.read(from),- serviceInstalled: FfiConverterBool.read(from),- serviceRunning: FfiConverterBool.read(from),- serviceKind: FfiConverterString.read(from),- online: FfiConverterOptionalBoolean.read(from),- clients: FfiConverterSequenceTypeAppHostClient.read(from),- permissions: FfiConverterSequenceTypeAppHostPermissionInput.read(from),- error: FfiConverterOptionalString.read(from),- recentAccess: FfiConverterSequenceTypeAppHostAccess.read(from),- accessLogError: FfiConverterOptionalString.read(from),- shareDesktop: FfiConverterBool.read(from),- provideSpaces: FfiConverterBool.read(from),- maxSpaces: FfiConverterUInt32.read(from),- maxMacosVms: FfiConverterUInt32.read(from),- providedSpaces: FfiConverterSequenceTypeAppHostProvidedSpace.read(from),- spacesAudit: FfiConverterSequenceTypeAppHostSpacesAudit.read(from),- spacesAuditError: FfiConverterOptionalString.read(from),- pausedSignedOut: FfiConverterBool.read(from),- owner: FfiConverterOptionalString.read(from),- ownerEmail: FfiConverterOptionalString.read(from),- account: FfiConverterOptionalTypeAppHostAccount.read(from)+ title: FfiConverterString.read(from),+ message: FfiConverterString.read(from),+ confirmLabel: FfiConverterString.read(from),+ cancelLabel: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.configured, into);- FfiConverterOptionalString.write(value.mode, into);- FfiConverterOptionalString.write(value.relayUrl, into);- FfiConverterOptionalString.write(value.directUrl, into);- FfiConverterOptionalString.write(value.name, into);- FfiConverterBool.write(value.sharing, into);- FfiConverterBool.write(value.serviceInstalled, into);- FfiConverterBool.write(value.serviceRunning, into);- FfiConverterString.write(value.serviceKind, into);- FfiConverterOptionalBoolean.write(value.online, into);- FfiConverterSequenceTypeAppHostClient.write(value.clients, into);- FfiConverterSequenceTypeAppHostPermissionInput.write(value.permissions, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterSequenceTypeAppHostAccess.write(value.recentAccess, into);- FfiConverterOptionalString.write(value.accessLogError, into);- FfiConverterBool.write(value.shareDesktop, into);- FfiConverterBool.write(value.provideSpaces, into);- FfiConverterUInt32.write(value.maxSpaces, into);- FfiConverterUInt32.write(value.maxMacosVms, into);- FfiConverterSequenceTypeAppHostProvidedSpace.write(value.providedSpaces, into);- FfiConverterSequenceTypeAppHostSpacesAudit.write(value.spacesAudit, into);- FfiConverterOptionalString.write(value.spacesAuditError, into);- FfiConverterBool.write(value.pausedSignedOut, into);- FfiConverterOptionalString.write(value.owner, into);- FfiConverterOptionalString.write(value.ownerEmail, into);- FfiConverterOptionalTypeAppHostAccount.write(value.account, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.message, into);+ FfiConverterString.write(value.confirmLabel, into);+ FfiConverterString.write(value.cancelLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.configured) +- FfiConverterOptionalString.allocationSize(value.mode) +- FfiConverterOptionalString.allocationSize(value.relayUrl) +- FfiConverterOptionalString.allocationSize(value.directUrl) +- FfiConverterOptionalString.allocationSize(value.name) +- FfiConverterBool.allocationSize(value.sharing) +- FfiConverterBool.allocationSize(value.serviceInstalled) +- FfiConverterBool.allocationSize(value.serviceRunning) +- FfiConverterString.allocationSize(value.serviceKind) +- FfiConverterOptionalBoolean.allocationSize(value.online) +- FfiConverterSequenceTypeAppHostClient.allocationSize(value.clients) +- FfiConverterSequenceTypeAppHostPermissionInput.allocationSize(value.permissions) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterSequenceTypeAppHostAccess.allocationSize(value.recentAccess) +- FfiConverterOptionalString.allocationSize(value.accessLogError) +- FfiConverterBool.allocationSize(value.shareDesktop) +- FfiConverterBool.allocationSize(value.provideSpaces) +- FfiConverterUInt32.allocationSize(value.maxSpaces) +- FfiConverterUInt32.allocationSize(value.maxMacosVms) +- FfiConverterSequenceTypeAppHostProvidedSpace.allocationSize(value.providedSpaces) +- FfiConverterSequenceTypeAppHostSpacesAudit.allocationSize(value.spacesAudit) +- FfiConverterOptionalString.allocationSize(value.spacesAuditError) +- FfiConverterBool.allocationSize(value.pausedSignedOut) +- FfiConverterOptionalString.allocationSize(value.owner) +- FfiConverterOptionalString.allocationSize(value.ownerEmail) +- FfiConverterOptionalTypeAppHostAccount.allocationSize(value.account);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.message) ++ FfiConverterString.allocationSize(value.confirmLabel) ++ FfiConverterString.allocationSize(value.cancelLabel);}};return new FFIConverter();})();-export type AppHostSummaryInput = {- /**- * Set up for access.- */- configured: boolean,- /**- * Needs attention.- */- error?: string,+export type AppHostAction = {/**- * The host service runs.+ * What it does.*/- serviceRunning: boolean,+ id: AppHostActionId,/**- * Sharing is on.+ * Label.*/- sharing: boolean,+ label: string,/**- * Connected clients.+ * Drawn as destructive.*/- clients: number,+ destructive: boolean,/**- * `relay` or `direct`.+ * Ask this first; the action runs only when the user confirms.*/- mode?: string,+ confirm?: AppHostConfirm,/**- * Relay presence.+ * Can be pressed now (Resume sharing is not while nothing is on to+ * share).*/- online?: boolean,+ enabled: boolean,/**- * Relay sharing is paused while signed out.+ * The tooltip, when it says something the label does not.*/- pausedSignedOut: boolean+ help?: string}/**- * Generated factory for {@link AppHostSummaryInput} record objects.+ * Generated factory for {@link AppHostAction} record objects.*/-export const AppHostSummaryInput = (() => {+export const AppHostAction = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppHostSummaryInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostAction, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppHostSummaryInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostAction>,});})();-const FfiConverterTypeAppHostSummaryInput = (() => {- type TypeName = AppHostSummaryInput;+const FfiConverterTypeAppHostAction = (() => {+ type TypeName = AppHostAction;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- configured: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- serviceRunning: FfiConverterBool.read(from),- sharing: FfiConverterBool.read(from),- clients: FfiConverterUInt32.read(from),- mode: FfiConverterOptionalString.read(from),- online: FfiConverterOptionalBoolean.read(from),- pausedSignedOut: FfiConverterBool.read(from)+ id: FfiConverterTypeAppHostActionId.read(from),+ label: FfiConverterString.read(from),+ destructive: FfiConverterBool.read(from),+ confirm: FfiConverterOptionalTypeAppHostConfirm.read(from),+ enabled: FfiConverterBool.read(from),+ help: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.configured, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.serviceRunning, into);- FfiConverterBool.write(value.sharing, into);- FfiConverterUInt32.write(value.clients, into);- FfiConverterOptionalString.write(value.mode, into);- FfiConverterOptionalBoolean.write(value.online, into);- FfiConverterBool.write(value.pausedSignedOut, into);+ FfiConverterTypeAppHostActionId.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.destructive, into);+ FfiConverterOptionalTypeAppHostConfirm.write(value.confirm, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterOptionalString.write(value.help, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.configured) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.serviceRunning) +- FfiConverterBool.allocationSize(value.sharing) +- FfiConverterUInt32.allocationSize(value.clients) +- FfiConverterOptionalString.allocationSize(value.mode) +- FfiConverterOptionalBoolean.allocationSize(value.online) +- FfiConverterBool.allocationSize(value.pausedSignedOut);+ return FfiConverterTypeAppHostActionId.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.destructive) ++ FfiConverterOptionalTypeAppHostConfirm.allocationSize(value.confirm) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterOptionalString.allocationSize(value.help);}};return new FFIConverter();})();-export type AppImageSuggestion = {+export type AppHostClient = {/**- * Image ref (what picking it fills in).+ * Account id.*/- imageRef: string,+ id: string,/**- * The image's name, shown after the ref.+ * Email.*/- label: string,+ email?: string,/**- * The keyboard highlight.+ * Display name.*/- highlighted: boolean,+ name?: string,/**- * The field holds this preset.+ * Open streams.*/- selected: boolean+ streams?: number}/**- * Generated factory for {@link AppImageSuggestion} record objects.+ * Generated factory for {@link AppHostClient} record objects.*/-export const AppImageSuggestion = (() => {+export const AppHostClient = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppImageSuggestion, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostClient, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppImageSuggestion>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostClient>,});})();-const FfiConverterTypeAppImageSuggestion = (() => {- type TypeName = AppImageSuggestion;+const FfiConverterTypeAppHostClient = (() => {+ type TypeName = AppHostClient;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- imageRef: FfiConverterString.read(from),- label: FfiConverterString.read(from),- highlighted: FfiConverterBool.read(from),- selected: FfiConverterBool.read(from)+ id: FfiConverterString.read(from),+ email: FfiConverterOptionalString.read(from),+ name: FfiConverterOptionalString.read(from),+ streams: FfiConverterOptionalUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.imageRef, into);- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.highlighted, into);- FfiConverterBool.write(value.selected, into);+ FfiConverterString.write(value.id, into);+ FfiConverterOptionalString.write(value.email, into);+ FfiConverterOptionalString.write(value.name, into);+ FfiConverterOptionalUInt32.write(value.streams, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.imageRef) +- FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.highlighted) +- FfiConverterBool.allocationSize(value.selected);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterOptionalString.allocationSize(value.email) ++ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterOptionalUInt32.allocationSize(value.streams);}};return new FFIConverter();})();-export type AppSuggestionGroup = {+export type AppHostFormChoice = {/**- * Group id.+ * `desktop` or `spare`.*/id: string,/**- * Title.- */- label: string,- /**- * Matching presets.+ * Label.*/- rows: Array<AppImageSuggestion>+ label: string}/**- * Generated factory for {@link AppSuggestionGroup} record objects.+ * Generated factory for {@link AppHostFormChoice} record objects.*/-export const AppSuggestionGroup = (() => {+export const AppHostFormChoice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSuggestionGroup, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostFormChoice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSuggestionGroup>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostFormChoice>,});})();-const FfiConverterTypeAppSuggestionGroup = (() => {- type TypeName = AppSuggestionGroup;+const FfiConverterTypeAppHostFormChoice = (() => {+ type TypeName = AppHostFormChoice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- rows: FfiConverterSequenceTypeAppImageSuggestion.read(from)+ label: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);FfiConverterString.write(value.label, into);- FfiConverterSequenceTypeAppImageSuggestion.write(value.rows, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterSequenceTypeAppImageSuggestion.allocationSize(value.rows);+ FfiConverterString.allocationSize(value.label);}};return new FFIConverter();})();-export type AppImageFieldView = {+export type AppHostFormField = {/**- * The text.+ * `name`, `allow`, `direct`, `listen`, `relay`.*/- text: string,+ id: string,/**- * Show the suggestions (open and something matches).+ * Label.*/- open: boolean,+ label: string,/**- * The suggestions, filtered while typing.+ * Placeholder (text fields).*/- groups: Array<AppSuggestionGroup>,+ placeholder?: string,/**- * One line when the ref cannot be used.+ * Text.*/- error?: string,+ value: string,/**- * The text is not a preset.+ * The switch (`direct` only).*/- custom: boolean+ toggle: boolean,+ /**+ * On (`direct` only).+ */+ on: boolean,+ /**+ * Drawn as invalid.+ */+ invalid: boolean,+ /**+ * Under Advanced.+ */+ advanced: boolean,+ /**+ * A choice of one (`profile` only): `value` is the chosen id.+ */+ choices: Array<AppHostFormChoice>}/**- * Generated factory for {@link AppImageFieldView} record objects.+ * Generated factory for {@link AppHostFormField} record objects.*/-export const AppImageFieldView = (() => {+export const AppHostFormField = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppImageFieldView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostFormField, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppImageFieldView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostFormField>,});})();-const FfiConverterTypeAppImageFieldView = (() => {- type TypeName = AppImageFieldView;+const FfiConverterTypeAppHostFormField = (() => {+ type TypeName = AppHostFormField;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- text: FfiConverterString.read(from),- open: FfiConverterBool.read(from),- groups: FfiConverterSequenceTypeAppSuggestionGroup.read(from),- error: FfiConverterOptionalString.read(from),- custom: FfiConverterBool.read(from)+ id: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ placeholder: FfiConverterOptionalString.read(from),+ value: FfiConverterString.read(from),+ toggle: FfiConverterBool.read(from),+ on: FfiConverterBool.read(from),+ invalid: FfiConverterBool.read(from),+ advanced: FfiConverterBool.read(from),+ choices: FfiConverterSequenceTypeAppHostFormChoice.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.text, into);- FfiConverterBool.write(value.open, into);- FfiConverterSequenceTypeAppSuggestionGroup.write(value.groups, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.custom, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterOptionalString.write(value.placeholder, into);+ FfiConverterString.write(value.value, into);+ FfiConverterBool.write(value.toggle, into);+ FfiConverterBool.write(value.on, into);+ FfiConverterBool.write(value.invalid, into);+ FfiConverterBool.write(value.advanced, into);+ FfiConverterSequenceTypeAppHostFormChoice.write(value.choices, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.text) +- FfiConverterBool.allocationSize(value.open) +- FfiConverterSequenceTypeAppSuggestionGroup.allocationSize(value.groups) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.custom);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterOptionalString.allocationSize(value.placeholder) ++ FfiConverterString.allocationSize(value.value) ++ FfiConverterBool.allocationSize(value.toggle) ++ FfiConverterBool.allocationSize(value.on) ++ FfiConverterBool.allocationSize(value.invalid) ++ FfiConverterBool.allocationSize(value.advanced) ++ FfiConverterSequenceTypeAppHostFormChoice.allocationSize(value.choices);}};return new FFIConverter();})();-export type AppImageGroup = {+export type AppHostFormState = {/**- * Group id.+ * Display name.*/- id: string,+ name: string,/**- * Title.+ * "Also allow" (relay).*/- label: string,+ allow: string,/**- * Published images.+ * Advanced is open.*/- images: Array<AppSandboxImage>+ advanced: boolean,+ /**+ * Direct instead of the relay (Advanced).+ */+ direct: boolean,+ /**+ * Direct listen address.+ */+ listen: string,+ /**+ * Relay URL (Advanced).+ */+ relayUrl: string,+ /**+ * Setup is running.+ */+ busy: boolean,+ /**+ * The last failure.+ */+ error?: string,+ /**+ * A spare machine: do not share its desktop, provide Spaces (relay+ * only).+ */+ spare: boolean}/**- * Generated factory for {@link AppImageGroup} record objects.+ * Generated factory for {@link AppHostFormState} record objects.*/-export const AppImageGroup = (() => {+export const AppHostFormState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppImageGroup, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostFormState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppImageGroup>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostFormState>,});})();-const FfiConverterTypeAppImageGroup = (() => {- type TypeName = AppImageGroup;+const FfiConverterTypeAppHostFormState = (() => {+ type TypeName = AppHostFormState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- images: FfiConverterSequenceTypeAppSandboxImage.read(from)+ name: FfiConverterString.read(from),+ allow: FfiConverterString.read(from),+ advanced: FfiConverterBool.read(from),+ direct: FfiConverterBool.read(from),+ listen: FfiConverterString.read(from),+ relayUrl: FfiConverterString.read(from),+ busy: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ spare: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterSequenceTypeAppSandboxImage.write(value.images, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.allow, into);+ FfiConverterBool.write(value.advanced, into);+ FfiConverterBool.write(value.direct, into);+ FfiConverterString.write(value.listen, into);+ FfiConverterString.write(value.relayUrl, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterBool.write(value.spare, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterSequenceTypeAppSandboxImage.allocationSize(value.images);+ return FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.allow) ++ FfiConverterBool.allocationSize(value.advanced) ++ FfiConverterBool.allocationSize(value.direct) ++ FfiConverterString.allocationSize(value.listen) ++ FfiConverterString.allocationSize(value.relayUrl) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterBool.allocationSize(value.spare);}};return new FFIConverter();})();-export type AppInstallCuaPrompt = {+export type AppHostSetupRequest = {/**- * Cua is installed but not running.+ * `relay` (default) or `direct`.*/- installed: boolean,+ mode: string,/**- * Title.+ * Relay URL; `None` uses the configured default (https://relay.cua.ai).*/- title: string,+ relayUrl?: string,/**- * One line.+ * Direct `ip:port` (Advanced).*/- message: string,+ direct?: string,/**- * Button.+ * Display name (default: the host name).*/- actionLabel: string,+ name?: string,/**- * Button target: always one of the constants, never from the error.+ * Accounts (ids or emails) allowed besides the owner.*/- url: string+ allow?: Array<string>,+ /**+ * What the machine is for: `desktop` (share this desktop; the+ * default) or `spare` (only run Spaces for your other devices).+ */+ profile?: string,+ /**+ * Share this machine's own desktop (overrides the profile).+ */+ shareDesktop?: boolean,+ /**+ * Create Spaces for your other devices (overrides the profile).+ */+ provideSpaces?: boolean}/**- * Generated factory for {@link AppInstallCuaPrompt} record objects.+ * Generated factory for {@link AppHostSetupRequest} record objects.*/-export const AppInstallCuaPrompt = (() => {+export const AppHostSetupRequest = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppInstallCuaPrompt, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostSetupRequest, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppInstallCuaPrompt>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostSetupRequest>,});})();-const FfiConverterTypeAppInstallCuaPrompt = (() => {- type TypeName = AppInstallCuaPrompt;+const FfiConverterTypeAppHostSetupRequest = (() => {+ type TypeName = AppHostSetupRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- installed: FfiConverterBool.read(from),- title: FfiConverterString.read(from),- message: FfiConverterString.read(from),- actionLabel: FfiConverterString.read(from),- url: FfiConverterString.read(from)+ mode: FfiConverterString.read(from),+ relayUrl: FfiConverterOptionalString.read(from),+ direct: FfiConverterOptionalString.read(from),+ name: FfiConverterOptionalString.read(from),+ allow: FfiConverterOptionalSequenceString.read(from),+ profile: FfiConverterOptionalString.read(from),+ shareDesktop: FfiConverterOptionalBoolean.read(from),+ provideSpaces: FfiConverterOptionalBoolean.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.installed, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.message, into);- FfiConverterString.write(value.actionLabel, into);- FfiConverterString.write(value.url, into);+ FfiConverterString.write(value.mode, into);+ FfiConverterOptionalString.write(value.relayUrl, into);+ FfiConverterOptionalString.write(value.direct, into);+ FfiConverterOptionalString.write(value.name, into);+ FfiConverterOptionalSequenceString.write(value.allow, into);+ FfiConverterOptionalString.write(value.profile, into);+ FfiConverterOptionalBoolean.write(value.shareDesktop, into);+ FfiConverterOptionalBoolean.write(value.provideSpaces, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.installed) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.message) +- FfiConverterString.allocationSize(value.actionLabel) +- FfiConverterString.allocationSize(value.url);+ return FfiConverterString.allocationSize(value.mode) ++ FfiConverterOptionalString.allocationSize(value.relayUrl) ++ FfiConverterOptionalString.allocationSize(value.direct) ++ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterOptionalSequenceString.allocationSize(value.allow) ++ FfiConverterOptionalString.allocationSize(value.profile) ++ FfiConverterOptionalBoolean.allocationSize(value.shareDesktop) ++ FfiConverterOptionalBoolean.allocationSize(value.provideSpaces);}};return new FFIConverter();})();-export type AppKeyCombo = {+export type AppHostFormView = {/**- * The key (`" "`, `"k"`, `"ArrowUp"`, ...).+ * "Set up this machine".*/- key: string,+ title: string,/**- * Command.+ * One line: what setting up does.*/- metaKey: boolean,+ lede: string,/**- * Control.+ * Visible fields in order (Advanced ones only while it is open).*/- ctrlKey: boolean,+ fields: Array<AppHostFormField>,/**- * Option.+ * "Advanced".*/- altKey: boolean,+ advancedLabel: string,/**- * Shift.+ * Advanced is open.*/- shiftKey: boolean+ advancedOpen: boolean,+ /**+ * "Back".+ */+ backLabel: string,+ /**+ * "Set up for access" or "Setting up…".+ */+ submitLabel: string,+ /**+ * The submit button is enabled.+ */+ canSubmit: boolean,+ /**+ * Setup is running.+ */+ busy: boolean,+ /**+ * The last failure, one line.+ */+ error?: string,+ /**+ * What host setup receives (validated), when it can submit.+ */+ request?: AppHostSetupRequest}/**- * Generated factory for {@link AppKeyCombo} record objects.+ * Generated factory for {@link AppHostFormView} record objects.*/-export const AppKeyCombo = (() => {+export const AppHostFormView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppKeyCombo, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostFormView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppKeyCombo>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostFormView>,});})();-const FfiConverterTypeAppKeyCombo = (() => {- type TypeName = AppKeyCombo;+const FfiConverterTypeAppHostFormView = (() => {+ type TypeName = AppHostFormView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- key: FfiConverterString.read(from),- metaKey: FfiConverterBool.read(from),- ctrlKey: FfiConverterBool.read(from),- altKey: FfiConverterBool.read(from),- shiftKey: FfiConverterBool.read(from)+ title: FfiConverterString.read(from),+ lede: FfiConverterString.read(from),+ fields: FfiConverterSequenceTypeAppHostFormField.read(from),+ advancedLabel: FfiConverterString.read(from),+ advancedOpen: FfiConverterBool.read(from),+ backLabel: FfiConverterString.read(from),+ submitLabel: FfiConverterString.read(from),+ canSubmit: FfiConverterBool.read(from),+ busy: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ request: FfiConverterOptionalTypeAppHostSetupRequest.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);- FfiConverterBool.write(value.metaKey, into);- FfiConverterBool.write(value.ctrlKey, into);- FfiConverterBool.write(value.altKey, into);- FfiConverterBool.write(value.shiftKey, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.lede, into);+ FfiConverterSequenceTypeAppHostFormField.write(value.fields, into);+ FfiConverterString.write(value.advancedLabel, into);+ FfiConverterBool.write(value.advancedOpen, into);+ FfiConverterString.write(value.backLabel, into);+ FfiConverterString.write(value.submitLabel, into);+ FfiConverterBool.write(value.canSubmit, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalTypeAppHostSetupRequest.write(value.request, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterBool.allocationSize(value.metaKey) +- FfiConverterBool.allocationSize(value.ctrlKey) +- FfiConverterBool.allocationSize(value.altKey) +- FfiConverterBool.allocationSize(value.shiftKey);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.lede) ++ FfiConverterSequenceTypeAppHostFormField.allocationSize(value.fields) ++ FfiConverterString.allocationSize(value.advancedLabel) ++ FfiConverterBool.allocationSize(value.advancedOpen) ++ FfiConverterString.allocationSize(value.backLabel) ++ FfiConverterString.allocationSize(value.submitLabel) ++ FfiConverterBool.allocationSize(value.canSubmit) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalTypeAppHostSetupRequest.allocationSize(value.request);}};return new FFIConverter();})();-export type AppKindOption = {+export type AppHostLimit = {/**- * Container or VM.+ * `spaces` (every Space it provides), `macos_vms` (macOS VMs on that+ * Mac), or [`HOST_SHARING_STOPPED`] (not a limit: its owner stopped+ * sharing it).*/- kind: AppSpaceKind,+ resource: string,/**- * The image with that variant.+ * In use now.*/- image: AppSandboxImage+ used: number,+ /**+ * The limit (0: none).+ */+ limit: number,+ /**+ * Why the limit exists, for people ("Apple's macOS license allows two+ * macOS VMs per Mac").+ */+ reason: string}/**- * Generated factory for {@link AppKindOption} record objects.+ * Generated factory for {@link AppHostLimit} record objects.*/-export const AppKindOption = (() => {+export const AppHostLimit = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppKindOption, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostLimit, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppKindOption>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostLimit>,});})();-const FfiConverterTypeAppKindOption = (() => {- type TypeName = AppKindOption;+const FfiConverterTypeAppHostLimit = (() => {+ type TypeName = AppHostLimit;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeAppSpaceKind.read(from),- image: FfiConverterTypeAppSandboxImage.read(from)+ resource: FfiConverterString.read(from),+ used: FfiConverterUInt32.read(from),+ limit: FfiConverterUInt32.read(from),+ reason: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppSpaceKind.write(value.kind, into);- FfiConverterTypeAppSandboxImage.write(value.image, into);+ FfiConverterString.write(value.resource, into);+ FfiConverterUInt32.write(value.used, into);+ FfiConverterUInt32.write(value.limit, into);+ FfiConverterString.write(value.reason, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppSpaceKind.allocationSize(value.kind) +- FfiConverterTypeAppSandboxImage.allocationSize(value.image);+ return FfiConverterString.allocationSize(value.resource) ++ FfiConverterUInt32.allocationSize(value.used) ++ FfiConverterUInt32.allocationSize(value.limit) ++ FfiConverterString.allocationSize(value.reason);}};return new FFIConverter();})();-export type AppLaunchInput = {+export type AppHostToggle = {/**- * `AppSettings.last_seen_version` (`None`: never recorded).+ * `desktop` or `spaces`.*/- lastSeen?: string,+ id: string,/**- * This version (`0.2.0-staging.6`).+ * Label.*/- version: string,+ label: string,/**- * This build (`0.2.0.123`; may be empty).+ * One line under it.*/- build: string,+ help: string,/**- * The first run finished (a record-less launch after it is an update- * from a build that kept no record; before it, a fresh install).+ * On now.*/- onboarded: boolean+ on: boolean,+ /**+ * Can be flipped (the last setting on cannot be turned off; Spaces+ * need the relay).+ */+ enabled: boolean,+ /**+ * What flipping it runs.+ */+ action: AppHostActionId}/**- * Generated factory for {@link AppLaunchInput} record objects.+ * Generated factory for {@link AppHostToggle} record objects.*/-export const AppLaunchInput = (() => {+export const AppHostToggle = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppLaunchInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostToggle, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppLaunchInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostToggle>,});})();-const FfiConverterTypeAppLaunchInput = (() => {- type TypeName = AppLaunchInput;+const FfiConverterTypeAppHostToggle = (() => {+ type TypeName = AppHostToggle;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- lastSeen: FfiConverterOptionalString.read(from),- version: FfiConverterString.read(from),- build: FfiConverterString.read(from),- onboarded: FfiConverterBool.read(from)+ id: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ help: FfiConverterString.read(from),+ on: FfiConverterBool.read(from),+ enabled: FfiConverterBool.read(from),+ action: FfiConverterTypeAppHostActionId.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.lastSeen, into);- FfiConverterString.write(value.version, into);- FfiConverterString.write(value.build, into);- FfiConverterBool.write(value.onboarded, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.help, into);+ FfiConverterBool.write(value.on, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterTypeAppHostActionId.write(value.action, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.lastSeen) +- FfiConverterString.allocationSize(value.version) +- FfiConverterString.allocationSize(value.build) +- FfiConverterBool.allocationSize(value.onboarded);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.help) ++ FfiConverterBool.allocationSize(value.on) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterTypeAppHostActionId.allocationSize(value.action);}};return new FFIConverter();})();-export type AppLaunchPlan = {+export type AppPermissionRow = {/**- * This launch follows an update: refresh the agents' skills and MCP- * entries (`cua agents update`) and restart the app's own daemon.+ * Id.*/- refresh: boolean,+ id: string,/**- * Save as `AppSettings.last_seen_version` (`None`: unchanged).+ * "Screen Recording".*/- save?: string+ title: string,+ /**+ * Tooltip (what to turn on).+ */+ help: string,+ /**+ * The pane (only a `x-apple.systempreferences:` URL is opened).+ */+ settingsUrl?: string}/**- * Generated factory for {@link AppLaunchPlan} record objects.+ * Generated factory for {@link AppPermissionRow} record objects.*/-export const AppLaunchPlan = (() => {+export const AppPermissionRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppLaunchPlan, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPermissionRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppLaunchPlan>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPermissionRow>,});})();-const FfiConverterTypeAppLaunchPlan = (() => {- type TypeName = AppLaunchPlan;+const FfiConverterTypeAppPermissionRow = (() => {+ type TypeName = AppPermissionRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- refresh: FfiConverterBool.read(from),- save: FfiConverterOptionalString.read(from)+ id: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ help: FfiConverterString.read(from),+ settingsUrl: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.refresh, into);- FfiConverterOptionalString.write(value.save, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.help, into);+ FfiConverterOptionalString.write(value.settingsUrl, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.refresh) +- FfiConverterOptionalString.allocationSize(value.save);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.help) ++ FfiConverterOptionalString.allocationSize(value.settingsUrl);}};return new FFIConverter();})();-export type AppStorageVolume = {+export type AppHostSetupChoice = {/**- * Bytes available.+ * The form's profile: `desktop` or `spare`.*/- availableBytes: bigint,+ id: string,/**- * Volume size in bytes.+ * Label.*/- totalBytes: bigint,+ label: string,/**- * `Macintosh HD`, `Colima`, `Docker Desktop`.+ * The button that opens the form with this choice.*/- name: string+ buttonLabel: string}/**- * Generated factory for {@link AppStorageVolume} record objects.+ * Generated factory for {@link AppHostSetupChoice} record objects.*/-export const AppStorageVolume = (() => {+export const AppHostSetupChoice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStorageVolume, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostSetupChoice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStorageVolume>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostSetupChoice>,});})();-const FfiConverterTypeAppStorageVolume = (() => {- type TypeName = AppStorageVolume;+const FfiConverterTypeAppHostSetupChoice = (() => {+ type TypeName = AppHostSetupChoice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- availableBytes: FfiConverterUInt64.read(from),- totalBytes: FfiConverterUInt64.read(from),- name: FfiConverterString.read(from)+ id: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ buttonLabel: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt64.write(value.availableBytes, into);- FfiConverterUInt64.write(value.totalBytes, into);- FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.buttonLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt64.allocationSize(value.availableBytes) +- FfiConverterUInt64.allocationSize(value.totalBytes) +- FfiConverterString.allocationSize(value.name);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.buttonLabel);}};return new FFIConverter();})();-export type AppLocalStorage = {+export type AppHostPanelView = {/**- * Bytes the SDK keeps free on a volume (a create that would leave- * less fails).+ * "This machine".*/- reserveBytes: bigint,+ title: string,/**- * Lume's VM storage (macOS).+ * One line: how it is shared, or that it is not.*/- lume?: AppStorageVolume,+ summary: string,/**- * The cua home (QEMU disks and the image cache).+ * Why relay sharing is paused, one line over the page (signed out, or+ * signed in to another account).*/- qemu?: AppStorageVolume,+ notice?: string,/**- * The container engine's data disk.+ * The notice's button ("Sign In").*/- container?: AppStorageVolume,+ noticeAction?: AppHostAction,/**- * Catalog refs already pulled here.+ * Set up for access.*/- pulled: Array<string>+ configured: boolean,+ /**+ * Name, Access, Service.+ */+ facts: Array<AppFact>,+ /**+ * "Connected now" (configured only).+ */+ clientsTitle?: string,+ /**+ * One line per client.+ */+ clients: Array<string>,+ /**+ * "Nobody" when nobody is connected.+ */+ clientsEmpty?: string,+ /**+ * "Recent access" (configured, when the log has any).+ */+ recentTitle?: string,+ /**+ * Who reached this machine recently, newest first: the first+ * [`LOG_PREVIEW_ROWS`] of [`Self::recent_all`].+ */+ recent: Array<AppHostAccessRow>,+ /**+ * "Show All…" when `recent_all` has more than `recent` shows.+ */+ recentMore?: string,+ /**+ * Every recent access (connections, refusals, other people's+ * thumbnails), repeats collapsed: the "Show All" sheet.+ */+ recentAll: Array<AppHostAccessRow>,+ /**+ * The same with background probes and the owner's thumbnails too+ * (the sheet's "Include background activity").+ */+ recentWithBackground: Array<AppHostAccessRow>,+ /**+ * Set when the access log does not verify.+ */+ accessWarning?: string,+ /**+ * The two settings (configured only).+ */+ toggles: Array<AppHostToggle>,+ /**+ * The limits, one line ("Up to 4 Spaces \u{b7} 2 macOS VMs"), while+ * providing Spaces.+ */+ limits?: string,+ /**+ * "Spaces for your devices", while providing Spaces.+ */+ providedTitle?: string,+ /**+ * One row per Space this machine provides.+ */+ provided: Array<AppHostAccessRow>,+ /**+ * "None yet" when it provides none.+ */+ providedEmpty?: string,+ /**+ * "Spaces activity" (when the audit has any).+ */+ activityTitle?: string,+ /**+ * Remote creates, deletes and refusals, newest first: the first+ * [`LOG_PREVIEW_ROWS`] of [`Self::activity_all`].+ */+ activity: Array<AppHostAccessRow>,+ /**+ * "Show All…" when `activity_all` has more than `activity` shows.+ */+ activityMore?: string,+ /**+ * The whole Spaces activity, repeats collapsed.+ */+ activityAll: Array<AppHostAccessRow>,+ /**+ * Set when the Spaces audit does not verify.+ */+ activityWarning?: string,+ /**+ * Heading over the permission rows, when any is left to grant.+ */+ permissionsTitle?: string,+ /**+ * Panes still to grant.+ */+ permissions: Array<AppPermissionRow>,+ /**+ * The permission rows' button.+ */+ openSettingsLabel: string,+ /**+ * Buttons, primary first.+ */+ actions: Array<AppHostAction>,+ /**+ * Before setup: what this machine is and why set it up.+ */+ intro?: string,+ /**+ * Before setup: the ways to set it up, shown inline.+ */+ setupChoices: Array<AppHostSetupChoice>}/**- * Generated factory for {@link AppLocalStorage} record objects.+ * Generated factory for {@link AppHostPanelView} record objects.*/-export const AppLocalStorage = (() => {+export const AppHostPanelView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppLocalStorage, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostPanelView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppLocalStorage>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostPanelView>,});})();-const FfiConverterTypeAppLocalStorage = (() => {- type TypeName = AppLocalStorage;+const FfiConverterTypeAppHostPanelView = (() => {+ type TypeName = AppHostPanelView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- reserveBytes: FfiConverterUInt64.read(from),- lume: FfiConverterOptionalTypeAppStorageVolume.read(from),- qemu: FfiConverterOptionalTypeAppStorageVolume.read(from),- container: FfiConverterOptionalTypeAppStorageVolume.read(from),- pulled: FfiConverterSequenceString.read(from)+ title: FfiConverterString.read(from),+ summary: FfiConverterString.read(from),+ notice: FfiConverterOptionalString.read(from),+ noticeAction: FfiConverterOptionalTypeAppHostAction.read(from),+ configured: FfiConverterBool.read(from),+ facts: FfiConverterSequenceTypeAppFact.read(from),+ clientsTitle: FfiConverterOptionalString.read(from),+ clients: FfiConverterSequenceString.read(from),+ clientsEmpty: FfiConverterOptionalString.read(from),+ recentTitle: FfiConverterOptionalString.read(from),+ recent: FfiConverterSequenceTypeAppHostAccessRow.read(from),+ recentMore: FfiConverterOptionalString.read(from),+ recentAll: FfiConverterSequenceTypeAppHostAccessRow.read(from),+ recentWithBackground: FfiConverterSequenceTypeAppHostAccessRow.read(from),+ accessWarning: FfiConverterOptionalString.read(from),+ toggles: FfiConverterSequenceTypeAppHostToggle.read(from),+ limits: FfiConverterOptionalString.read(from),+ providedTitle: FfiConverterOptionalString.read(from),+ provided: FfiConverterSequenceTypeAppHostAccessRow.read(from),+ providedEmpty: FfiConverterOptionalString.read(from),+ activityTitle: FfiConverterOptionalString.read(from),+ activity: FfiConverterSequenceTypeAppHostAccessRow.read(from),+ activityMore: FfiConverterOptionalString.read(from),+ activityAll: FfiConverterSequenceTypeAppHostAccessRow.read(from),+ activityWarning: FfiConverterOptionalString.read(from),+ permissionsTitle: FfiConverterOptionalString.read(from),+ permissions: FfiConverterSequenceTypeAppPermissionRow.read(from),+ openSettingsLabel: FfiConverterString.read(from),+ actions: FfiConverterSequenceTypeAppHostAction.read(from),+ intro: FfiConverterOptionalString.read(from),+ setupChoices: FfiConverterSequenceTypeAppHostSetupChoice.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt64.write(value.reserveBytes, into);- FfiConverterOptionalTypeAppStorageVolume.write(value.lume, into);- FfiConverterOptionalTypeAppStorageVolume.write(value.qemu, into);- FfiConverterOptionalTypeAppStorageVolume.write(value.container, into);- FfiConverterSequenceString.write(value.pulled, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.summary, into);+ FfiConverterOptionalString.write(value.notice, into);+ FfiConverterOptionalTypeAppHostAction.write(value.noticeAction, into);+ FfiConverterBool.write(value.configured, into);+ FfiConverterSequenceTypeAppFact.write(value.facts, into);+ FfiConverterOptionalString.write(value.clientsTitle, into);+ FfiConverterSequenceString.write(value.clients, into);+ FfiConverterOptionalString.write(value.clientsEmpty, into);+ FfiConverterOptionalString.write(value.recentTitle, into);+ FfiConverterSequenceTypeAppHostAccessRow.write(value.recent, into);+ FfiConverterOptionalString.write(value.recentMore, into);+ FfiConverterSequenceTypeAppHostAccessRow.write(value.recentAll, into);+ FfiConverterSequenceTypeAppHostAccessRow.write(value.recentWithBackground, into);+ FfiConverterOptionalString.write(value.accessWarning, into);+ FfiConverterSequenceTypeAppHostToggle.write(value.toggles, into);+ FfiConverterOptionalString.write(value.limits, into);+ FfiConverterOptionalString.write(value.providedTitle, into);+ FfiConverterSequenceTypeAppHostAccessRow.write(value.provided, into);+ FfiConverterOptionalString.write(value.providedEmpty, into);+ FfiConverterOptionalString.write(value.activityTitle, into);+ FfiConverterSequenceTypeAppHostAccessRow.write(value.activity, into);+ FfiConverterOptionalString.write(value.activityMore, into);+ FfiConverterSequenceTypeAppHostAccessRow.write(value.activityAll, into);+ FfiConverterOptionalString.write(value.activityWarning, into);+ FfiConverterOptionalString.write(value.permissionsTitle, into);+ FfiConverterSequenceTypeAppPermissionRow.write(value.permissions, into);+ FfiConverterString.write(value.openSettingsLabel, into);+ FfiConverterSequenceTypeAppHostAction.write(value.actions, into);+ FfiConverterOptionalString.write(value.intro, into);+ FfiConverterSequenceTypeAppHostSetupChoice.write(value.setupChoices, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt64.allocationSize(value.reserveBytes) +- FfiConverterOptionalTypeAppStorageVolume.allocationSize(value.lume) +- FfiConverterOptionalTypeAppStorageVolume.allocationSize(value.qemu) +- FfiConverterOptionalTypeAppStorageVolume.allocationSize(value.container) +- FfiConverterSequenceString.allocationSize(value.pulled);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.summary) ++ FfiConverterOptionalString.allocationSize(value.notice) ++ FfiConverterOptionalTypeAppHostAction.allocationSize(value.noticeAction) ++ FfiConverterBool.allocationSize(value.configured) ++ FfiConverterSequenceTypeAppFact.allocationSize(value.facts) ++ FfiConverterOptionalString.allocationSize(value.clientsTitle) ++ FfiConverterSequenceString.allocationSize(value.clients) ++ FfiConverterOptionalString.allocationSize(value.clientsEmpty) ++ FfiConverterOptionalString.allocationSize(value.recentTitle) ++ FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.recent) ++ FfiConverterOptionalString.allocationSize(value.recentMore) ++ FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.recentAll) ++ FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.recentWithBackground) ++ FfiConverterOptionalString.allocationSize(value.accessWarning) ++ FfiConverterSequenceTypeAppHostToggle.allocationSize(value.toggles) ++ FfiConverterOptionalString.allocationSize(value.limits) ++ FfiConverterOptionalString.allocationSize(value.providedTitle) ++ FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.provided) ++ FfiConverterOptionalString.allocationSize(value.providedEmpty) ++ FfiConverterOptionalString.allocationSize(value.activityTitle) ++ FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.activity) ++ FfiConverterOptionalString.allocationSize(value.activityMore) ++ FfiConverterSequenceTypeAppHostAccessRow.allocationSize(value.activityAll) ++ FfiConverterOptionalString.allocationSize(value.activityWarning) ++ FfiConverterOptionalString.allocationSize(value.permissionsTitle) ++ FfiConverterSequenceTypeAppPermissionRow.allocationSize(value.permissions) ++ FfiConverterString.allocationSize(value.openSettingsLabel) ++ FfiConverterSequenceTypeAppHostAction.allocationSize(value.actions) ++ FfiConverterOptionalString.allocationSize(value.intro) ++ FfiConverterSequenceTypeAppHostSetupChoice.allocationSize(value.setupChoices);}};return new FFIConverter();})();-export enum AppLoginItemStatus {+export type AppHostPermissionInput = {/**- * Registered and allowed: the app opens at login.+ * `screen-recording`, `accessibility`.*/- Enabled = "enabled",+ id: string,/**- * Not registered.+ * "Screen Recording".*/- NotRegistered = "notRegistered",+ title: string,/**- * Registered, waiting for the user to allow it in System Settings,- * Login Items.+ * The pane to open.*/- RequiresApproval = "requiresApproval",+ settingsUrl?: string,/**- * The system cannot find the app as a login item.+ * What to turn on there.*/- NotFound = "notFound"+ instructions?: string,+ /**+ * Already granted.+ */+ granted: boolean}-const FfiConverterTypeAppLoginItemStatus = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppLoginItemStatus;+/**+ * Generated factory for {@link AppHostPermissionInput} record objects.+ */+export const AppHostPermissionInput = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppHostPermissionInput, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostPermissionInput>,+ });+})();++const FfiConverterTypeAppHostPermissionInput = (() => {+ type TypeName = AppHostPermissionInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppLoginItemStatus.Enabled;- case 2: return AppLoginItemStatus.NotRegistered;- case 3: return AppLoginItemStatus.RequiresApproval;- case 4: return AppLoginItemStatus.NotFound;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ id: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ settingsUrl: FfiConverterOptionalString.read(from),+ instructions: FfiConverterOptionalString.read(from),+ granted: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppLoginItemStatus.Enabled: return ordinalConverter.write(1, into);- case AppLoginItemStatus.NotRegistered: return ordinalConverter.write(2, into);- case AppLoginItemStatus.RequiresApproval: return ordinalConverter.write(3, into);- case AppLoginItemStatus.NotFound: return ordinalConverter.write(4, into);- }+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.title, into);+ FfiConverterOptionalString.write(value.settingsUrl, into);+ FfiConverterOptionalString.write(value.instructions, into);+ FfiConverterBool.write(value.granted, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterOptionalString.allocationSize(value.settingsUrl) ++ FfiConverterOptionalString.allocationSize(value.instructions) ++ FfiConverterBool.allocationSize(value.granted);+}- }+ };return new FFIConverter();})();-export type AppLoginItemInput = {+export type AppHostProvidedSpace = {/**- * What the system reports.+ * The relay machine it is reached as.*/- status: AppLoginItemStatus,+ relayMachine: string,/**- * A change is running.+ * The Space on this machine (`local:<name>`).*/- busy: boolean,+ localSpace: string,/**- * Why the last change failed.+ * Display name.*/- error?: string,+ name: string,/**- * This machine provides Spaces to your other devices (host setup's- * "A spare machine for Spaces").+ * The image.*/- providesSpaces: boolean,+ image: string,/**- * This machine runs persistent agents.+ * `linux`, `macos`.*/- runsAgents: boolean+ os: string,+ /**+ * `container` or `vm`.+ */+ kind: string,+ /**+ * Who created it.+ */+ createdBy: string,+ /**+ * Epoch ms.+ */+ createdAtMs: bigint}/**- * Generated factory for {@link AppLoginItemInput} record objects.+ * Generated factory for {@link AppHostProvidedSpace} record objects.*/-export const AppLoginItemInput = (() => {+export const AppHostProvidedSpace = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppLoginItemInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostProvidedSpace, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppLoginItemInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostProvidedSpace>,});})();-const FfiConverterTypeAppLoginItemInput = (() => {- type TypeName = AppLoginItemInput;+const FfiConverterTypeAppHostProvidedSpace = (() => {+ type TypeName = AppHostProvidedSpace;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- status: FfiConverterTypeAppLoginItemStatus.read(from),- busy: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- providesSpaces: FfiConverterBool.read(from),- runsAgents: FfiConverterBool.read(from)+ relayMachine: FfiConverterString.read(from),+ localSpace: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ image: FfiConverterString.read(from),+ os: FfiConverterString.read(from),+ kind: FfiConverterString.read(from),+ createdBy: FfiConverterString.read(from),+ createdAtMs: FfiConverterInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLoginItemStatus.write(value.status, into);- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.providesSpaces, into);- FfiConverterBool.write(value.runsAgents, into);+ FfiConverterString.write(value.relayMachine, into);+ FfiConverterString.write(value.localSpace, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.image, into);+ FfiConverterString.write(value.os, into);+ FfiConverterString.write(value.kind, into);+ FfiConverterString.write(value.createdBy, into);+ FfiConverterInt64.write(value.createdAtMs, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLoginItemStatus.allocationSize(value.status) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.providesSpaces) +- FfiConverterBool.allocationSize(value.runsAgents);+ return FfiConverterString.allocationSize(value.relayMachine) ++ FfiConverterString.allocationSize(value.localSpace) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.image) ++ FfiConverterString.allocationSize(value.os) ++ FfiConverterString.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.createdBy) ++ FfiConverterInt64.allocationSize(value.createdAtMs);}};return new FFIConverter();})();-export type AppLoginItemPlan = {+export type AppHostSettingChange = {/**- * Register the app as a login item now.+ * Share this desktop.*/- register: boolean,+ shareDesktop?: boolean,/**- * Save this as the user's choice (`AppSettings::launch_at_login`).+ * Provide Spaces.*/- record?: boolean+ provideSpaces?: boolean}/**- * Generated factory for {@link AppLoginItemPlan} record objects.+ * Generated factory for {@link AppHostSettingChange} record objects.*/-export const AppLoginItemPlan = (() => {+export const AppHostSettingChange = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppLoginItemPlan, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostSettingChange, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppLoginItemPlan>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostSettingChange>,});})();-const FfiConverterTypeAppLoginItemPlan = (() => {- type TypeName = AppLoginItemPlan;+const FfiConverterTypeAppHostSettingChange = (() => {+ type TypeName = AppHostSettingChange;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- register: FfiConverterBool.read(from),- record: FfiConverterOptionalBoolean.read(from)+ shareDesktop: FfiConverterOptionalBoolean.read(from),+ provideSpaces: FfiConverterOptionalBoolean.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.register, into);- FfiConverterOptionalBoolean.write(value.record, into);+ FfiConverterOptionalBoolean.write(value.shareDesktop, into);+ FfiConverterOptionalBoolean.write(value.provideSpaces, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.register) +- FfiConverterOptionalBoolean.allocationSize(value.record);+ return FfiConverterOptionalBoolean.allocationSize(value.shareDesktop) ++ FfiConverterOptionalBoolean.allocationSize(value.provideSpaces);}};return new FFIConverter();})();-export type AppMainChrome = {- /**- * Window title when nothing is selected.- */- title: string,- /**- * "New Space".- */- newSpaceLabel: string,- /**- * "⌘N".- */- newSpaceShortcut: string,+export type AppHostSpacesAudit = {/**- * The sidebar search's placeholder.+ * Epoch ms.*/- searchPlaceholder: string,+ atMs: bigint,/**- * The Keyvault section's title.+ * `create`, `delete`, `refused`, `failed`, `config`.*/- keyvaultTitle: string,+ action: string,/**- * The account line: the identity, "API key" or "Not signed in".+ * Who (an account, or `local`).*/- account: string,+ who: string,/**- * "Sign in", when signing in is offered.+ * The relay machine or Space.*/- signInLabel?: string,+ space: string,/**- * "Settings".+ * Detail.*/- settingsLabel: string,- /**- * "⌘,".- */- settingsShortcut: string,- /**- * With no Spaces: the heading.- */- emptyTitle: string,- /**- * With no Spaces: the default Linux Space's tile.- */- emptyAction: string,- /**- * Under it: the time and disk.- */- emptyLinuxDetail: string,- /**- * With no Spaces: the line under the heading.- */- emptyDetail: string,- /**- * With no Spaces: the default macOS Space's tile.- */- emptyMacosAction: string,- /**- * Under it: the download size.- */- emptyMacosDetail: string,- /**- * The sidebar's Volume page entry ("Volume"); none while the Cua Volume- * experiment is off (the page and its route are hidden; a mounted- * volume stays mounted).- */- volumeLabel?: string+ detail: string}/**- * Generated factory for {@link AppMainChrome} record objects.+ * Generated factory for {@link AppHostSpacesAudit} record objects.*/-export const AppMainChrome = (() => {+export const AppHostSpacesAudit = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMainChrome, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostSpacesAudit, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMainChrome>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostSpacesAudit>,});})();-const FfiConverterTypeAppMainChrome = (() => {- type TypeName = AppMainChrome;+const FfiConverterTypeAppHostSpacesAudit = (() => {+ type TypeName = AppHostSpacesAudit;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- newSpaceLabel: FfiConverterString.read(from),- newSpaceShortcut: FfiConverterString.read(from),- searchPlaceholder: FfiConverterString.read(from),- keyvaultTitle: FfiConverterString.read(from),- account: FfiConverterString.read(from),- signInLabel: FfiConverterOptionalString.read(from),- settingsLabel: FfiConverterString.read(from),- settingsShortcut: FfiConverterString.read(from),- emptyTitle: FfiConverterString.read(from),- emptyAction: FfiConverterString.read(from),- emptyLinuxDetail: FfiConverterString.read(from),- emptyDetail: FfiConverterString.read(from),- emptyMacosAction: FfiConverterString.read(from),- emptyMacosDetail: FfiConverterString.read(from),- volumeLabel: FfiConverterOptionalString.read(from)+ atMs: FfiConverterInt64.read(from),+ action: FfiConverterString.read(from),+ who: FfiConverterString.read(from),+ space: FfiConverterString.read(from),+ detail: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.newSpaceLabel, into);- FfiConverterString.write(value.newSpaceShortcut, into);- FfiConverterString.write(value.searchPlaceholder, into);- FfiConverterString.write(value.keyvaultTitle, into);- FfiConverterString.write(value.account, into);- FfiConverterOptionalString.write(value.signInLabel, into);- FfiConverterString.write(value.settingsLabel, into);- FfiConverterString.write(value.settingsShortcut, into);- FfiConverterString.write(value.emptyTitle, into);- FfiConverterString.write(value.emptyAction, into);- FfiConverterString.write(value.emptyLinuxDetail, into);- FfiConverterString.write(value.emptyDetail, into);- FfiConverterString.write(value.emptyMacosAction, into);- FfiConverterString.write(value.emptyMacosDetail, into);- FfiConverterOptionalString.write(value.volumeLabel, into);+ FfiConverterInt64.write(value.atMs, into);+ FfiConverterString.write(value.action, into);+ FfiConverterString.write(value.who, into);+ FfiConverterString.write(value.space, into);+ FfiConverterString.write(value.detail, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.newSpaceLabel) +- FfiConverterString.allocationSize(value.newSpaceShortcut) +- FfiConverterString.allocationSize(value.searchPlaceholder) +- FfiConverterString.allocationSize(value.keyvaultTitle) +- FfiConverterString.allocationSize(value.account) +- FfiConverterOptionalString.allocationSize(value.signInLabel) +- FfiConverterString.allocationSize(value.settingsLabel) +- FfiConverterString.allocationSize(value.settingsShortcut) +- FfiConverterString.allocationSize(value.emptyTitle) +- FfiConverterString.allocationSize(value.emptyAction) +- FfiConverterString.allocationSize(value.emptyLinuxDetail) +- FfiConverterString.allocationSize(value.emptyDetail) +- FfiConverterString.allocationSize(value.emptyMacosAction) +- FfiConverterString.allocationSize(value.emptyMacosDetail) +- FfiConverterOptionalString.allocationSize(value.volumeLabel);+ return FfiConverterInt64.allocationSize(value.atMs) ++ FfiConverterString.allocationSize(value.action) ++ FfiConverterString.allocationSize(value.who) ++ FfiConverterString.allocationSize(value.space) ++ FfiConverterString.allocationSize(value.detail);}};return new FFIConverter();})();-export enum AppSpaceStatus {+export type AppHostState = {/**- * The host machine itself.+ * Set up for access.*/- Local = "local",+ configured: boolean,/**- * Reachable, session active.+ * `relay` or `direct`.*/- Running = "running",+ mode?: string,/**- * An agent waits for approval.+ * Relay URL.*/- Approval = "approval",+ relayUrl?: string,/**- * Unreachable or suspended.+ * Direct URL.*/- Suspended = "suspended",+ directUrl?: string,/**- * Being created.+ * Display name.*/- Provisioning = "provisioning",+ name?: string,/**- * Being deleted (the user confirmed; the SDK is removing it).+ * Accepting clients.*/- Deleting = "deleting"-}--const FfiConverterTypeAppSpaceStatus = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppSpaceStatus;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppSpaceStatus.Local;- case 2: return AppSpaceStatus.Running;- case 3: return AppSpaceStatus.Approval;- case 4: return AppSpaceStatus.Suspended;- case 5: return AppSpaceStatus.Provisioning;- case 6: return AppSpaceStatus.Deleting;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppSpaceStatus.Local: return ordinalConverter.write(1, into);- case AppSpaceStatus.Running: return ordinalConverter.write(2, into);- case AppSpaceStatus.Approval: return ordinalConverter.write(3, into);- case AppSpaceStatus.Suspended: return ordinalConverter.write(4, into);- case AppSpaceStatus.Provisioning: return ordinalConverter.write(5, into);- case AppSpaceStatus.Deleting: return ordinalConverter.write(6, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum AppThumbnailScene {+ sharing: boolean,/**- * A macOS desktop.+ * Service installed.*/- MacDesktop = "macDesktop",+ serviceInstalled: boolean,/**- * A Windows desktop.+ * Service running.*/- WindowsDesktop = "windowsDesktop",+ serviceRunning: boolean,/**- * A Linux terminal.+ * `launchd`, `systemd`, `windows-task`, `process`.*/- LinuxTerminal = "linuxTerminal",+ serviceKind: string,/**- * A notes app.+ * Online at the relay.*/- Notes = "notes",+ online?: boolean,/**- * A browser.+ * Connected now.*/- Browser = "browser",+ clients: Array<AppHostClient>,/**- * Nothing.+ * Panes to grant.*/- Blank = "blank"-}--const FfiConverterTypeAppThumbnailScene = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppThumbnailScene;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppThumbnailScene.MacDesktop;- case 2: return AppThumbnailScene.WindowsDesktop;- case 3: return AppThumbnailScene.LinuxTerminal;- case 4: return AppThumbnailScene.Notes;- case 5: return AppThumbnailScene.Browser;- case 6: return AppThumbnailScene.Blank;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppThumbnailScene.MacDesktop: return ordinalConverter.write(1, into);- case AppThumbnailScene.WindowsDesktop: return ordinalConverter.write(2, into);- case AppThumbnailScene.LinuxTerminal: return ordinalConverter.write(3, into);- case AppThumbnailScene.Notes: return ordinalConverter.write(4, into);- case AppThumbnailScene.Browser: return ordinalConverter.write(5, into);- case AppThumbnailScene.Blank: return ordinalConverter.write(6, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppSpaceSdkRef = {+ permissions: Array<AppHostPermissionInput>,/**- * spacesd feature names.+ * Needs attention.*/- features: Array<string>,+ error?: string,/**- * spacesd version at the last handshake.+ * Who reached this machine recently, newest first.*/- spacesdVersion: string,+ recentAccess: Array<AppHostAccess>,/**- * Answered the last bounded connect.+ * Set when the access log does not verify (edited or truncated).*/- reachable: boolean,+ accessLogError?: string,/**- * Why not.+ * This machine's own desktop is a Space.*/- error?: string+ shareDesktop: boolean,+ /**+ * This machine creates Spaces for your other devices.+ */+ provideSpaces: boolean,+ /**+ * Provided Spaces at once (0: no limit).+ */+ maxSpaces: number,+ /**+ * macOS VMs at once (at most two; 0 off a Mac).+ */+ maxMacosVms: number,+ /**+ * The Spaces this machine provides now.+ */+ providedSpaces: Array<AppHostProvidedSpace>,+ /**+ * Remote creates, deletes and refusals, and settings changes, newest+ * first.+ */+ spacesAudit: Array<AppHostSpacesAudit>,+ /**+ * Set when the Spaces audit does not verify.+ */+ spacesAuditError?: string,+ /**+ * Relay sharing is paused until the owner signs in again (the host+ * left the relay; its setup stays).+ */+ pausedSignedOut: boolean,+ /**+ * The account this machine is registered to (relay mode): its id.+ */+ owner?: string,+ /**+ * The owner's email, when the relay gave one.+ */+ ownerEmail?: string,+ /**+ * Who is signed in to Cua in this app (`None`: nobody, or the shell+ * does not say). The shell fills it; the host does not know.+ */+ account?: AppHostAccount}/**- * Generated factory for {@link AppSpaceSdkRef} record objects.+ * Generated factory for {@link AppHostState} record objects.*/-export const AppSpaceSdkRef = (() => {+export const AppHostState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpaceSdkRef, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpaceSdkRef>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostState>,});})();-const FfiConverterTypeAppSpaceSdkRef = (() => {- type TypeName = AppSpaceSdkRef;+const FfiConverterTypeAppHostState = (() => {+ type TypeName = AppHostState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- features: FfiConverterSequenceString.read(from),- spacesdVersion: FfiConverterString.read(from),- reachable: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from)+ configured: FfiConverterBool.read(from),+ mode: FfiConverterOptionalString.read(from),+ relayUrl: FfiConverterOptionalString.read(from),+ directUrl: FfiConverterOptionalString.read(from),+ name: FfiConverterOptionalString.read(from),+ sharing: FfiConverterBool.read(from),+ serviceInstalled: FfiConverterBool.read(from),+ serviceRunning: FfiConverterBool.read(from),+ serviceKind: FfiConverterString.read(from),+ online: FfiConverterOptionalBoolean.read(from),+ clients: FfiConverterSequenceTypeAppHostClient.read(from),+ permissions: FfiConverterSequenceTypeAppHostPermissionInput.read(from),+ error: FfiConverterOptionalString.read(from),+ recentAccess: FfiConverterSequenceTypeAppHostAccess.read(from),+ accessLogError: FfiConverterOptionalString.read(from),+ shareDesktop: FfiConverterBool.read(from),+ provideSpaces: FfiConverterBool.read(from),+ maxSpaces: FfiConverterUInt32.read(from),+ maxMacosVms: FfiConverterUInt32.read(from),+ providedSpaces: FfiConverterSequenceTypeAppHostProvidedSpace.read(from),+ spacesAudit: FfiConverterSequenceTypeAppHostSpacesAudit.read(from),+ spacesAuditError: FfiConverterOptionalString.read(from),+ pausedSignedOut: FfiConverterBool.read(from),+ owner: FfiConverterOptionalString.read(from),+ ownerEmail: FfiConverterOptionalString.read(from),+ account: FfiConverterOptionalTypeAppHostAccount.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceString.write(value.features, into);- FfiConverterString.write(value.spacesdVersion, into);- FfiConverterBool.write(value.reachable, into);+ FfiConverterBool.write(value.configured, into);+ FfiConverterOptionalString.write(value.mode, into);+ FfiConverterOptionalString.write(value.relayUrl, into);+ FfiConverterOptionalString.write(value.directUrl, into);+ FfiConverterOptionalString.write(value.name, into);+ FfiConverterBool.write(value.sharing, into);+ FfiConverterBool.write(value.serviceInstalled, into);+ FfiConverterBool.write(value.serviceRunning, into);+ FfiConverterString.write(value.serviceKind, into);+ FfiConverterOptionalBoolean.write(value.online, into);+ FfiConverterSequenceTypeAppHostClient.write(value.clients, into);+ FfiConverterSequenceTypeAppHostPermissionInput.write(value.permissions, into);FfiConverterOptionalString.write(value.error, into);+ FfiConverterSequenceTypeAppHostAccess.write(value.recentAccess, into);+ FfiConverterOptionalString.write(value.accessLogError, into);+ FfiConverterBool.write(value.shareDesktop, into);+ FfiConverterBool.write(value.provideSpaces, into);+ FfiConverterUInt32.write(value.maxSpaces, into);+ FfiConverterUInt32.write(value.maxMacosVms, into);+ FfiConverterSequenceTypeAppHostProvidedSpace.write(value.providedSpaces, into);+ FfiConverterSequenceTypeAppHostSpacesAudit.write(value.spacesAudit, into);+ FfiConverterOptionalString.write(value.spacesAuditError, into);+ FfiConverterBool.write(value.pausedSignedOut, into);+ FfiConverterOptionalString.write(value.owner, into);+ FfiConverterOptionalString.write(value.ownerEmail, into);+ FfiConverterOptionalTypeAppHostAccount.write(value.account, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceString.allocationSize(value.features) +- FfiConverterString.allocationSize(value.spacesdVersion) +- FfiConverterBool.allocationSize(value.reachable) +- FfiConverterOptionalString.allocationSize(value.error);+ return FfiConverterBool.allocationSize(value.configured) ++ FfiConverterOptionalString.allocationSize(value.mode) ++ FfiConverterOptionalString.allocationSize(value.relayUrl) ++ FfiConverterOptionalString.allocationSize(value.directUrl) ++ FfiConverterOptionalString.allocationSize(value.name) ++ FfiConverterBool.allocationSize(value.sharing) ++ FfiConverterBool.allocationSize(value.serviceInstalled) ++ FfiConverterBool.allocationSize(value.serviceRunning) ++ FfiConverterString.allocationSize(value.serviceKind) ++ FfiConverterOptionalBoolean.allocationSize(value.online) ++ FfiConverterSequenceTypeAppHostClient.allocationSize(value.clients) ++ FfiConverterSequenceTypeAppHostPermissionInput.allocationSize(value.permissions) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterSequenceTypeAppHostAccess.allocationSize(value.recentAccess) ++ FfiConverterOptionalString.allocationSize(value.accessLogError) ++ FfiConverterBool.allocationSize(value.shareDesktop) ++ FfiConverterBool.allocationSize(value.provideSpaces) ++ FfiConverterUInt32.allocationSize(value.maxSpaces) ++ FfiConverterUInt32.allocationSize(value.maxMacosVms) ++ FfiConverterSequenceTypeAppHostProvidedSpace.allocationSize(value.providedSpaces) ++ FfiConverterSequenceTypeAppHostSpacesAudit.allocationSize(value.spacesAudit) ++ FfiConverterOptionalString.allocationSize(value.spacesAuditError) ++ FfiConverterBool.allocationSize(value.pausedSignedOut) ++ FfiConverterOptionalString.allocationSize(value.owner) ++ FfiConverterOptionalString.allocationSize(value.ownerEmail) ++ FfiConverterOptionalTypeAppHostAccount.allocationSize(value.account);}};return new FFIConverter();})();-export type AppSpaceProgress = {+export type AppHostSummaryInput = {/**- * The SDK's phase word (`preparing`, `pulling`, `booting`, ...).+ * Set up for access.*/- phase: string,+ configured: boolean,/**- * Overall progress in thousandths.+ * Needs attention.*/- permille: number,+ error?: string,/**- * The phase in words ("Starting…", "Downloading image…"), or "Failed".+ * The host service runs.*/- label: string,+ serviceRunning: boolean,/**- * Why the create failed.+ * Sharing is on.*/- error?: string,+ sharing: boolean,/**- * It failed because the account is out of Cua Cloud credit: the- * website billing page "Add credit" opens.+ * Connected clients.*/- creditUrl?: string,+ clients: number,/**- * While it downloads: "4.2 of 22.1 GB · 85 MB/s · about 4 min"- * ([`crate::spaces::creating::transfer_text`]).+ * `relay` or `direct`.*/- transfer?: string,+ mode?: string,/**- * Cancel can stop it now.+ * Relay presence.*/- cancellable: boolean,+ online?: boolean,/**- * Cancel was pressed and the create is being cleaned up.+ * Relay sharing is paused while signed out.*/- cancelling: boolean+ pausedSignedOut: boolean}/**- * Generated factory for {@link AppSpaceProgress} record objects.+ * Generated factory for {@link AppHostSummaryInput} record objects.*/-export const AppSpaceProgress = (() => {+export const AppHostSummaryInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpaceProgress, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppHostSummaryInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpaceProgress>,+ defaults: () => Object.freeze(defaults()) as Partial<AppHostSummaryInput>,});})();-const FfiConverterTypeAppSpaceProgress = (() => {- type TypeName = AppSpaceProgress;+const FfiConverterTypeAppHostSummaryInput = (() => {+ type TypeName = AppHostSummaryInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- phase: FfiConverterString.read(from),- permille: FfiConverterUInt32.read(from),- label: FfiConverterString.read(from),+ configured: FfiConverterBool.read(from),error: FfiConverterOptionalString.read(from),- creditUrl: FfiConverterOptionalString.read(from),- transfer: FfiConverterOptionalString.read(from),- cancellable: FfiConverterBool.read(from),- cancelling: FfiConverterBool.read(from)+ serviceRunning: FfiConverterBool.read(from),+ sharing: FfiConverterBool.read(from),+ clients: FfiConverterUInt32.read(from),+ mode: FfiConverterOptionalString.read(from),+ online: FfiConverterOptionalBoolean.read(from),+ pausedSignedOut: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.phase, into);- FfiConverterUInt32.write(value.permille, into);- FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.configured, into);FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalString.write(value.creditUrl, into);- FfiConverterOptionalString.write(value.transfer, into);- FfiConverterBool.write(value.cancellable, into);- FfiConverterBool.write(value.cancelling, into);+ FfiConverterBool.write(value.serviceRunning, into);+ FfiConverterBool.write(value.sharing, into);+ FfiConverterUInt32.write(value.clients, into);+ FfiConverterOptionalString.write(value.mode, into);+ FfiConverterOptionalBoolean.write(value.online, into);+ FfiConverterBool.write(value.pausedSignedOut, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.phase) +- FfiConverterUInt32.allocationSize(value.permille) +- FfiConverterString.allocationSize(value.label) ++ return FfiConverterBool.allocationSize(value.configured) +FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalString.allocationSize(value.creditUrl) +- FfiConverterOptionalString.allocationSize(value.transfer) +- FfiConverterBool.allocationSize(value.cancellable) +- FfiConverterBool.allocationSize(value.cancelling);+ FfiConverterBool.allocationSize(value.serviceRunning) ++ FfiConverterBool.allocationSize(value.sharing) ++ FfiConverterUInt32.allocationSize(value.clients) ++ FfiConverterOptionalString.allocationSize(value.mode) ++ FfiConverterOptionalBoolean.allocationSize(value.online) ++ FfiConverterBool.allocationSize(value.pausedSignedOut);}};return new FFIConverter();})();-export enum AppPowerControl {+export type AppImageSuggestion = {/**- * Suspended in memory; it resumes where it was.+ * Image ref (what picking it fills in).*/- Suspend = "suspend",+ imageRef: string,/**- * Stopped with its disk kept; it boots again.+ * The image's name, shown after the ref.*/- Stop = "stop"-}--const FfiConverterTypeAppPowerControl = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPowerControl;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppPowerControl.Suspend;- case 2: return AppPowerControl.Stop;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppPowerControl.Suspend: return ordinalConverter.write(1, into);- case AppPowerControl.Stop: return ordinalConverter.write(2, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppSpacePower = {- /**- * How it turns off.- */- control: AppPowerControl,- /**- * It is off: suspended or stopped as the SDK recorded it, or not- * answering with no recorded state (a Space one of your machines- * provides).- */- off: boolean,- /**- * Being turned on (`true`) or off (`false`) now.- */- turningOn?: boolean,- /**- * Why the last power action failed, until the next one.- */- error?: string+ label: string,+ /**+ * The keyboard highlight.+ */+ highlighted: boolean,+ /**+ * The field holds this preset.+ */+ selected: boolean}/**- * Generated factory for {@link AppSpacePower} record objects.+ * Generated factory for {@link AppImageSuggestion} record objects.*/-export const AppSpacePower = (() => {+export const AppImageSuggestion = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpacePower, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppImageSuggestion, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpacePower>,+ defaults: () => Object.freeze(defaults()) as Partial<AppImageSuggestion>,});})();-const FfiConverterTypeAppSpacePower = (() => {- type TypeName = AppSpacePower;+const FfiConverterTypeAppImageSuggestion = (() => {+ type TypeName = AppImageSuggestion;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- control: FfiConverterTypeAppPowerControl.read(from),- off: FfiConverterBool.read(from),- turningOn: FfiConverterOptionalBoolean.read(from),- error: FfiConverterOptionalString.read(from)+ imageRef: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ highlighted: FfiConverterBool.read(from),+ selected: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppPowerControl.write(value.control, into);- FfiConverterBool.write(value.off, into);- FfiConverterOptionalBoolean.write(value.turningOn, into);- FfiConverterOptionalString.write(value.error, into);+ FfiConverterString.write(value.imageRef, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.highlighted, into);+ FfiConverterBool.write(value.selected, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppPowerControl.allocationSize(value.control) +- FfiConverterBool.allocationSize(value.off) +- FfiConverterOptionalBoolean.allocationSize(value.turningOn) +- FfiConverterOptionalString.allocationSize(value.error);+ return FfiConverterString.allocationSize(value.imageRef) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.highlighted) ++ FfiConverterBool.allocationSize(value.selected);}};return new FFIConverter();})();-export type AppSpace = {+export type AppSuggestionGroup = {/**- * Sandbox ref (`cloud:<name>`, `local:<name>`, `direct:<host:port>`, ...).+ * Group id.*/id: string,/**- * Display name.- */- name: string,- /**- * Operating system.- */- os: AppSpaceOs,- /**- * Status.- */- status: AppSpaceStatus,- /**- * One short status detail.- */- detail: string,- /**- * Epoch ms of the last focus.- */- lastUsedAt: bigint,- /**- * Epoch ms it was created.- */- startedAt?: bigint,- /**- * Placeholder scene.- */- scene: AppThumbnailScene,- /**- * Group (cloud namespace or location word).- */- fleetId?: string,- /**- * Fixture machine size.- */- size?: string,- /**- * Fixture region.- */- region?: string,- /**- * Where it runs (cloud when omitted).- */- provider?: AppSpaceProvider,- /**- * SDK facts, for Spaces from the live registry.- */- sdk?: AppSpaceSdkRef,- /**- * The guest OS product or distribution ("Ubuntu", "macOS"), when the- * Space reported one: it picks the OS icon ([`crate::notch::os_icon`]).- */- osName?: string,- /**- * The guest's full OS string ("Ubuntu 24.04.3 LTS"), when the Space- * reported one.- */- osPrettyName?: string,- /**- * The image it runs ("ghcr.io/trycua/linux:24.04"), when known.- */- image?: string,- /**- * The digest of the variant that runs, when known.- */- imageDigest?: string,- /**- * While it is being created: how far along, from the SDK's create- * progress ([`crate::spaces::creating`]).- */- progress?: AppSpaceProgress,- /**- * Container or virtual machine, when known.- */- kind?: AppSpaceKind,- /**- * The guest's CPU architecture (`arm64`, `amd64`), when known.- */- arch?: string,- /**- * For a Space one of your machines provides: that machine's relay id- * (the sidebar nests it under the machine).- */- host?: string,- /**- * That machine's name, when known.- */- hostName?: string,- /**- * Whether and how it turns off and on (the SDK's `power`), with a- * power action in flight ([`crate::spaces::creating::compose`]).- * `None`: it cannot (a cloud Space, one added by address).- */- power?: AppSpacePower,- /**- * For a Space in your cloud: the provider word (`aws`, `gcp`,- * `modal`).- */- cloud?: string,- /**- * Its account and region in words ("AWS · us-west-2").+ * Title.*/- cloudPlace?: string,+ label: string,/**- * Where Delete permanently can delete it: `here`, `host:<machine>`- * (that machine created it) or `elsewhere` (another device did).+ * Matching presets.*/- cloudDelete?: string+ rows: Array<AppImageSuggestion>}/**- * Generated factory for {@link AppSpace} record objects.+ * Generated factory for {@link AppSuggestionGroup} record objects.*/-export const AppSpace = (() => {+export const AppSuggestionGroup = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpace, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSuggestionGroup, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpace>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSuggestionGroup>,});})();-const FfiConverterTypeAppSpace = (() => {- type TypeName = AppSpace;+const FfiConverterTypeAppSuggestionGroup = (() => {+ type TypeName = AppSuggestionGroup;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- os: FfiConverterTypeAppSpaceOs.read(from),- status: FfiConverterTypeAppSpaceStatus.read(from),- detail: FfiConverterString.read(from),- lastUsedAt: FfiConverterInt64.read(from),- startedAt: FfiConverterOptionalInt64.read(from),- scene: FfiConverterTypeAppThumbnailScene.read(from),- fleetId: FfiConverterOptionalString.read(from),- size: FfiConverterOptionalString.read(from),- region: FfiConverterOptionalString.read(from),- provider: FfiConverterOptionalTypeAppSpaceProvider.read(from),- sdk: FfiConverterOptionalTypeAppSpaceSdkRef.read(from),- osName: FfiConverterOptionalString.read(from),- osPrettyName: FfiConverterOptionalString.read(from),- image: FfiConverterOptionalString.read(from),- imageDigest: FfiConverterOptionalString.read(from),- progress: FfiConverterOptionalTypeAppSpaceProgress.read(from),- kind: FfiConverterOptionalTypeAppSpaceKind.read(from),- arch: FfiConverterOptionalString.read(from),- host: FfiConverterOptionalString.read(from),- hostName: FfiConverterOptionalString.read(from),- power: FfiConverterOptionalTypeAppSpacePower.read(from),- cloud: FfiConverterOptionalString.read(from),- cloudPlace: FfiConverterOptionalString.read(from),- cloudDelete: FfiConverterOptionalString.read(from)+ label: FfiConverterString.read(from),+ rows: FfiConverterSequenceTypeAppImageSuggestion.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterTypeAppSpaceOs.write(value.os, into);- FfiConverterTypeAppSpaceStatus.write(value.status, into);- FfiConverterString.write(value.detail, into);- FfiConverterInt64.write(value.lastUsedAt, into);- FfiConverterOptionalInt64.write(value.startedAt, into);- FfiConverterTypeAppThumbnailScene.write(value.scene, into);- FfiConverterOptionalString.write(value.fleetId, into);- FfiConverterOptionalString.write(value.size, into);- FfiConverterOptionalString.write(value.region, into);- FfiConverterOptionalTypeAppSpaceProvider.write(value.provider, into);- FfiConverterOptionalTypeAppSpaceSdkRef.write(value.sdk, into);- FfiConverterOptionalString.write(value.osName, into);- FfiConverterOptionalString.write(value.osPrettyName, into);- FfiConverterOptionalString.write(value.image, into);- FfiConverterOptionalString.write(value.imageDigest, into);- FfiConverterOptionalTypeAppSpaceProgress.write(value.progress, into);- FfiConverterOptionalTypeAppSpaceKind.write(value.kind, into);- FfiConverterOptionalString.write(value.arch, into);- FfiConverterOptionalString.write(value.host, into);- FfiConverterOptionalString.write(value.hostName, into);- FfiConverterOptionalTypeAppSpacePower.write(value.power, into);- FfiConverterOptionalString.write(value.cloud, into);- FfiConverterOptionalString.write(value.cloudPlace, into);- FfiConverterOptionalString.write(value.cloudDelete, into);+ FfiConverterString.write(value.label, into);+ FfiConverterSequenceTypeAppImageSuggestion.write(value.rows, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterTypeAppSpaceOs.allocationSize(value.os) +- FfiConverterTypeAppSpaceStatus.allocationSize(value.status) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterInt64.allocationSize(value.lastUsedAt) +- FfiConverterOptionalInt64.allocationSize(value.startedAt) +- FfiConverterTypeAppThumbnailScene.allocationSize(value.scene) +- FfiConverterOptionalString.allocationSize(value.fleetId) +- FfiConverterOptionalString.allocationSize(value.size) +- FfiConverterOptionalString.allocationSize(value.region) +- FfiConverterOptionalTypeAppSpaceProvider.allocationSize(value.provider) +- FfiConverterOptionalTypeAppSpaceSdkRef.allocationSize(value.sdk) +- FfiConverterOptionalString.allocationSize(value.osName) +- FfiConverterOptionalString.allocationSize(value.osPrettyName) +- FfiConverterOptionalString.allocationSize(value.image) +- FfiConverterOptionalString.allocationSize(value.imageDigest) +- FfiConverterOptionalTypeAppSpaceProgress.allocationSize(value.progress) +- FfiConverterOptionalTypeAppSpaceKind.allocationSize(value.kind) +- FfiConverterOptionalString.allocationSize(value.arch) +- FfiConverterOptionalString.allocationSize(value.host) +- FfiConverterOptionalString.allocationSize(value.hostName) +- FfiConverterOptionalTypeAppSpacePower.allocationSize(value.power) +- FfiConverterOptionalString.allocationSize(value.cloud) +- FfiConverterOptionalString.allocationSize(value.cloudPlace) +- FfiConverterOptionalString.allocationSize(value.cloudDelete);+ FfiConverterString.allocationSize(value.label) ++ FfiConverterSequenceTypeAppImageSuggestion.allocationSize(value.rows);}};return new FFIConverter();})();-export type AppMenuInput = {- /**- * The roster (with "This machine").- */- spaces: Array<AppSpace>,+export type AppImageFieldView = {/**- * Live Keyvault sign-ins ([`crate::keyvault::view::sharing_label`]).+ * The text.*/- keyvault?: string,+ text: string,/**- * Cua Volume's `volume_sync_status`, when read.+ * Show the suggestions (open and something matches).*/- sync?: AppDriveSyncInput,+ open: boolean,/**- * Now (Unix ms): a feed that has not answered for [`OFFLINE_AFTER_MS`]- * is offline.+ * The suggestions, filtered while typing.*/- nowMs: bigint,+ groups: Array<AppSuggestionGroup>,/**- * `volume_storage`'s backend (`fs`, `s3`), when read: this machine's- * store with no other device has nothing to sync.+ * One line when the ref cannot be used.*/- backend?: string,+ error?: string,/**- * Settings, Experiments: Cua Volume's sync state and conflicts only- * with Cua Volume on (none: shown, for callers that predate- * experiments). Off hides them; the volume keeps syncing.+ * The text is not a preset.*/- experiments?: AppExperiments+ custom: boolean}/**- * Generated factory for {@link AppMenuInput} record objects.+ * Generated factory for {@link AppImageFieldView} record objects.*/-export const AppMenuInput = (() => {+export const AppImageFieldView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMenuInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppImageFieldView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMenuInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppImageFieldView>,});})();-const FfiConverterTypeAppMenuInput = (() => {- type TypeName = AppMenuInput;+const FfiConverterTypeAppImageFieldView = (() => {+ type TypeName = AppImageFieldView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- spaces: FfiConverterSequenceTypeAppSpace.read(from),- keyvault: FfiConverterOptionalString.read(from),- sync: FfiConverterOptionalTypeAppDriveSyncInput.read(from),- nowMs: FfiConverterUInt64.read(from),- backend: FfiConverterOptionalString.read(from),- experiments: FfiConverterOptionalTypeAppExperiments.read(from)+ text: FfiConverterString.read(from),+ open: FfiConverterBool.read(from),+ groups: FfiConverterSequenceTypeAppSuggestionGroup.read(from),+ error: FfiConverterOptionalString.read(from),+ custom: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppSpace.write(value.spaces, into);- FfiConverterOptionalString.write(value.keyvault, into);- FfiConverterOptionalTypeAppDriveSyncInput.write(value.sync, into);- FfiConverterUInt64.write(value.nowMs, into);- FfiConverterOptionalString.write(value.backend, into);- FfiConverterOptionalTypeAppExperiments.write(value.experiments, into);+ FfiConverterString.write(value.text, into);+ FfiConverterBool.write(value.open, into);+ FfiConverterSequenceTypeAppSuggestionGroup.write(value.groups, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterBool.write(value.custom, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppSpace.allocationSize(value.spaces) +- FfiConverterOptionalString.allocationSize(value.keyvault) +- FfiConverterOptionalTypeAppDriveSyncInput.allocationSize(value.sync) +- FfiConverterUInt64.allocationSize(value.nowMs) +- FfiConverterOptionalString.allocationSize(value.backend) +- FfiConverterOptionalTypeAppExperiments.allocationSize(value.experiments);+ return FfiConverterString.allocationSize(value.text) ++ FfiConverterBool.allocationSize(value.open) ++ FfiConverterSequenceTypeAppSuggestionGroup.allocationSize(value.groups) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterBool.allocationSize(value.custom);}};return new FFIConverter();})();-export enum AppMenuItemId {- /**- * The status line (disabled).- */- Status = "status",- /**- * A separator.- */- Separator = "separator",- /**- * Show the main window.- */- Open = "open",- /**- * The New Space sheet.- */- NewSpace = "newSpace",- /**- * Settings.- */- Settings = "settings",- /**- * Quit.- */- Quit = "quit",- /**- * Cua Volume's conflicts: opens the Volume page.- */- VolumeConflicts = "volumeConflicts"-}--const FfiConverterTypeAppMenuItemId = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppMenuItemId;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppMenuItemId.Status;- case 2: return AppMenuItemId.Separator;- case 3: return AppMenuItemId.Open;- case 4: return AppMenuItemId.NewSpace;- case 5: return AppMenuItemId.Settings;- case 6: return AppMenuItemId.Quit;- case 7: return AppMenuItemId.VolumeConflicts;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppMenuItemId.Status: return ordinalConverter.write(1, into);- case AppMenuItemId.Separator: return ordinalConverter.write(2, into);- case AppMenuItemId.Open: return ordinalConverter.write(3, into);- case AppMenuItemId.NewSpace: return ordinalConverter.write(4, into);- case AppMenuItemId.Settings: return ordinalConverter.write(5, into);- case AppMenuItemId.Quit: return ordinalConverter.write(6, into);- case AppMenuItemId.VolumeConflicts: return ordinalConverter.write(7, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppMenuItem = {+export type AppImageGroup = {/**- * What it does.+ * Group id.*/- id: AppMenuItemId,+ id: string,/**- * Label (empty for a separator).+ * Title.*/label: string,/**- * "⌘,", "⌘Q".- */- shortcut?: string,- /**- * Enabled.+ * Published images.*/- enabled: boolean+ images: Array<AppSandboxImage>}/**- * Generated factory for {@link AppMenuItem} record objects.+ * Generated factory for {@link AppImageGroup} record objects.*/-export const AppMenuItem = (() => {+export const AppImageGroup = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMenuItem, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppImageGroup, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMenuItem>,+ defaults: () => Object.freeze(defaults()) as Partial<AppImageGroup>,});})();-const FfiConverterTypeAppMenuItem = (() => {- type TypeName = AppMenuItem;+const FfiConverterTypeAppImageGroup = (() => {+ type TypeName = AppImageGroup;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterTypeAppMenuItemId.read(from),+ id: FfiConverterString.read(from),label: FfiConverterString.read(from),- shortcut: FfiConverterOptionalString.read(from),- enabled: FfiConverterBool.read(from)+ images: FfiConverterSequenceTypeAppSandboxImage.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppMenuItemId.write(value.id, into);+ FfiConverterString.write(value.id, into);FfiConverterString.write(value.label, into);- FfiConverterOptionalString.write(value.shortcut, into);- FfiConverterBool.write(value.enabled, into);+ FfiConverterSequenceTypeAppSandboxImage.write(value.images, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppMenuItemId.allocationSize(value.id) ++ return FfiConverterString.allocationSize(value.id) +FfiConverterString.allocationSize(value.label) +- FfiConverterOptionalString.allocationSize(value.shortcut) +- FfiConverterBool.allocationSize(value.enabled);+ FfiConverterSequenceTypeAppSandboxImage.allocationSize(value.images);}};return new FFIConverter();})();-export type AppMenuOption = {+export type AppInstallCuaPrompt = {/**- * Value.+ * Cua is installed but not running.*/- value: string,+ installed: boolean,/*** Title.*/- label: string+ title: string,+ /**+ * One line.+ */+ message: string,+ /**+ * Button.+ */+ actionLabel: string,+ /**+ * Button target: always one of the constants, never from the error.+ */+ url: string}/**- * Generated factory for {@link AppMenuOption} record objects.+ * Generated factory for {@link AppInstallCuaPrompt} record objects.*/-export const AppMenuOption = (() => {+export const AppInstallCuaPrompt = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMenuOption, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppInstallCuaPrompt, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMenuOption>,+ defaults: () => Object.freeze(defaults()) as Partial<AppInstallCuaPrompt>,});})();-const FfiConverterTypeAppMenuOption = (() => {- type TypeName = AppMenuOption;+const FfiConverterTypeAppInstallCuaPrompt = (() => {+ type TypeName = AppInstallCuaPrompt;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- value: FfiConverterString.read(from),- label: FfiConverterString.read(from)+ installed: FfiConverterBool.read(from),+ title: FfiConverterString.read(from),+ message: FfiConverterString.read(from),+ actionLabel: FfiConverterString.read(from),+ url: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.value, into);- FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.installed, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.message, into);+ FfiConverterString.write(value.actionLabel, into);+ FfiConverterString.write(value.url, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.value) +- FfiConverterString.allocationSize(value.label);+ return FfiConverterBool.allocationSize(value.installed) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.message) ++ FfiConverterString.allocationSize(value.actionLabel) ++ FfiConverterString.allocationSize(value.url);}};return new FFIConverter();})();-export type AppMenuPreviewRow = {+export type AppKeyCombo = {/**- * The core's item.+ * The key (`" "`, `"k"`, `"ArrowUp"`, ...).*/- item: AppMenuItem,+ key: string,/**- * Its row on the stage.+ * Command.*/- frame: AppLogicalRect+ metaKey: boolean,+ /**+ * Control.+ */+ ctrlKey: boolean,+ /**+ * Option.+ */+ altKey: boolean,+ /**+ * Shift.+ */+ shiftKey: boolean}/**- * Generated factory for {@link AppMenuPreviewRow} record objects.+ * Generated factory for {@link AppKeyCombo} record objects.*/-export const AppMenuPreviewRow = (() => {+export const AppKeyCombo = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMenuPreviewRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppKeyCombo, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMenuPreviewRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppKeyCombo>,});})();-const FfiConverterTypeAppMenuPreviewRow = (() => {- type TypeName = AppMenuPreviewRow;+const FfiConverterTypeAppKeyCombo = (() => {+ type TypeName = AppKeyCombo;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- item: FfiConverterTypeAppMenuItem.read(from),- frame: FfiConverterTypeAppLogicalRect.read(from)+ key: FfiConverterString.read(from),+ metaKey: FfiConverterBool.read(from),+ ctrlKey: FfiConverterBool.read(from),+ altKey: FfiConverterBool.read(from),+ shiftKey: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppMenuItem.write(value.item, into);- FfiConverterTypeAppLogicalRect.write(value.frame, into);+ FfiConverterString.write(value.key, into);+ FfiConverterBool.write(value.metaKey, into);+ FfiConverterBool.write(value.ctrlKey, into);+ FfiConverterBool.write(value.altKey, into);+ FfiConverterBool.write(value.shiftKey, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppMenuItem.allocationSize(value.item) +- FfiConverterTypeAppLogicalRect.allocationSize(value.frame);+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterBool.allocationSize(value.metaKey) ++ FfiConverterBool.allocationSize(value.ctrlKey) ++ FfiConverterBool.allocationSize(value.altKey) ++ FfiConverterBool.allocationSize(value.shiftKey);}};return new FFIConverter();})();-export type AppMenuPreview = {- /**- * The Cua Spaces icon (the tray template).- */- icon: AppLogicalRect,- /**- * The status item's highlight while pressed or open.- */- highlight: AppLogicalRect,- /**- * The clock at the menu bar's right end.- */- clock: string,- /**- * Its right edge.- */- clockRight: number,- /**- * The menu.- */- menu: AppLogicalRect,- /**- * Its corner radius.- */- radius: number,- /**- * The rows, top to bottom ([`window::menu_bar`] for [`SPACES`]).- */- rows: Array<AppMenuPreviewRow>,+export type AppKeybinding = {/**- * Text and shortcut inset from the menu's edges.+ * `commandPalette.toggle`, `nav.spaces`, ...*/- inset: number,+ command: string,/**- * The rows' font size.+ * `mod+k`, `mod+shift+l`: `mod` is ⌘ on macOS and Ctrl elsewhere.*/- fontSize: number+ key: string}/**- * Generated factory for {@link AppMenuPreview} record objects.+ * Generated factory for {@link AppKeybinding} record objects.*/-export const AppMenuPreview = (() => {+export const AppKeybinding = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppMenuPreview, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppKeybinding, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppMenuPreview>,+ defaults: () => Object.freeze(defaults()) as Partial<AppKeybinding>,});})();-const FfiConverterTypeAppMenuPreview = (() => {- type TypeName = AppMenuPreview;+const FfiConverterTypeAppKeybinding = (() => {+ type TypeName = AppKeybinding;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- icon: FfiConverterTypeAppLogicalRect.read(from),- highlight: FfiConverterTypeAppLogicalRect.read(from),- clock: FfiConverterString.read(from),- clockRight: FfiConverterFloat64.read(from),- menu: FfiConverterTypeAppLogicalRect.read(from),- radius: FfiConverterFloat64.read(from),- rows: FfiConverterSequenceTypeAppMenuPreviewRow.read(from),- inset: FfiConverterFloat64.read(from),- fontSize: FfiConverterFloat64.read(from)+ command: FfiConverterString.read(from),+ key: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLogicalRect.write(value.icon, into);- FfiConverterTypeAppLogicalRect.write(value.highlight, into);- FfiConverterString.write(value.clock, into);- FfiConverterFloat64.write(value.clockRight, into);- FfiConverterTypeAppLogicalRect.write(value.menu, into);- FfiConverterFloat64.write(value.radius, into);- FfiConverterSequenceTypeAppMenuPreviewRow.write(value.rows, into);- FfiConverterFloat64.write(value.inset, into);- FfiConverterFloat64.write(value.fontSize, into);+ FfiConverterString.write(value.command, into);+ FfiConverterString.write(value.key, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLogicalRect.allocationSize(value.icon) +- FfiConverterTypeAppLogicalRect.allocationSize(value.highlight) +- FfiConverterString.allocationSize(value.clock) +- FfiConverterFloat64.allocationSize(value.clockRight) +- FfiConverterTypeAppLogicalRect.allocationSize(value.menu) +- FfiConverterFloat64.allocationSize(value.radius) +- FfiConverterSequenceTypeAppMenuPreviewRow.allocationSize(value.rows) +- FfiConverterFloat64.allocationSize(value.inset) +- FfiConverterFloat64.allocationSize(value.fontSize);+ return FfiConverterString.allocationSize(value.command) ++ FfiConverterString.allocationSize(value.key);}};return new FFIConverter();})();-export enum AppOnboardingMode {- /**- * Access other machines (nothing installed).- */- Client = "client",- /**- * Set this machine up for unattended access.- */- Host = "host"-}--const FfiConverterTypeAppOnboardingMode = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppOnboardingMode;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppOnboardingMode.Client;- case 2: return AppOnboardingMode.Host;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppOnboardingMode.Client: return ordinalConverter.write(1, into);- case AppOnboardingMode.Host: return ordinalConverter.write(2, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppModeChoice = {- /**- * What it means.- */- mode: AppOnboardingMode,+export type AppKindOption = {/**- * Label.+ * Container or VM.*/- label: string,+ kind: AppSpaceKind,/**- * Highlighted (the installer's preselection, else the first).+ * The image with that variant.*/- preselected: boolean+ image: AppSandboxImage}/**- * Generated factory for {@link AppModeChoice} record objects.+ * Generated factory for {@link AppKindOption} record objects.*/-export const AppModeChoice = (() => {+export const AppKindOption = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppModeChoice, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppKindOption, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppModeChoice>,+ defaults: () => Object.freeze(defaults()) as Partial<AppKindOption>,});})();-const FfiConverterTypeAppModeChoice = (() => {- type TypeName = AppModeChoice;+const FfiConverterTypeAppKindOption = (() => {+ type TypeName = AppKindOption;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- mode: FfiConverterTypeAppOnboardingMode.read(from),- label: FfiConverterString.read(from),- preselected: FfiConverterBool.read(from)+ kind: FfiConverterTypeAppSpaceKind.read(from),+ image: FfiConverterTypeAppSandboxImage.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppOnboardingMode.write(value.mode, into);- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.preselected, into);+ FfiConverterTypeAppSpaceKind.write(value.kind, into);+ FfiConverterTypeAppSandboxImage.write(value.image, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppOnboardingMode.allocationSize(value.mode) +- FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.preselected);+ return FfiConverterTypeAppSpaceKind.allocationSize(value.kind) ++ FfiConverterTypeAppSandboxImage.allocationSize(value.image);}};return new FFIConverter();})();-export type AppNewSpaceOn = {+export type AppLaunchInput = {/**- * The button's label.+ * `AppSettings.last_seen_version` (`None`: never recorded).*/- label: string,+ lastSeen?: string,/**- * The "Run on" entry it picks (`host:<machine id>`; the wizard's- * `ChoosePlacement`).+ * This version (`0.2.0-staging.6`).*/- on: string+ version: string,+ /**+ * This build (`0.2.0.123`; may be empty).+ */+ build: string,+ /**+ * The first run finished (a record-less launch after it is an update+ * from a build that kept no record; before it, a fresh install).+ */+ onboarded: boolean}/**- * Generated factory for {@link AppNewSpaceOn} record objects.+ * Generated factory for {@link AppLaunchInput} record objects.*/-export const AppNewSpaceOn = (() => {+export const AppLaunchInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNewSpaceOn, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppLaunchInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNewSpaceOn>,+ defaults: () => Object.freeze(defaults()) as Partial<AppLaunchInput>,});})();-const FfiConverterTypeAppNewSpaceOn = (() => {- type TypeName = AppNewSpaceOn;+const FfiConverterTypeAppLaunchInput = (() => {+ type TypeName = AppLaunchInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- label: FfiConverterString.read(from),- on: FfiConverterString.read(from)+ lastSeen: FfiConverterOptionalString.read(from),+ version: FfiConverterString.read(from),+ build: FfiConverterString.read(from),+ onboarded: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.on, into);+ FfiConverterOptionalString.write(value.lastSeen, into);+ FfiConverterString.write(value.version, into);+ FfiConverterString.write(value.build, into);+ FfiConverterBool.write(value.onboarded, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.on);+ return FfiConverterOptionalString.allocationSize(value.lastSeen) ++ FfiConverterString.allocationSize(value.version) ++ FfiConverterString.allocationSize(value.build) ++ FfiConverterBool.allocationSize(value.onboarded);}};return new FFIConverter();})();-export type AppNotchAccess = {+export type AppLaunchPlan = {/**- * "Keyvault sign-ins live in dev-1" (opens the Access page).+ * This launch follows an update: refresh the agents' skills and MCP+ * entries (`cua agents update`) and restart the app's own daemon.*/- text: string,+ refresh: boolean,/**- * "Dismiss".+ * Save as `AppSettings.last_seen_version` (`None`: unchanged).*/- dismiss: string+ save?: string}/**- * Generated factory for {@link AppNotchAccess} record objects.+ * Generated factory for {@link AppLaunchPlan} record objects.*/-export const AppNotchAccess = (() => {+export const AppLaunchPlan = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchAccess, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppLaunchPlan, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchAccess>,+ defaults: () => Object.freeze(defaults()) as Partial<AppLaunchPlan>,});})();-const FfiConverterTypeAppNotchAccess = (() => {- type TypeName = AppNotchAccess;+const FfiConverterTypeAppLaunchPlan = (() => {+ type TypeName = AppLaunchPlan;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- text: FfiConverterString.read(from),- dismiss: FfiConverterString.read(from)+ refresh: FfiConverterBool.read(from),+ save: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.text, into);- FfiConverterString.write(value.dismiss, into);+ FfiConverterBool.write(value.refresh, into);+ FfiConverterOptionalString.write(value.save, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.text) +- FfiConverterString.allocationSize(value.dismiss);+ return FfiConverterBool.allocationSize(value.refresh) ++ FfiConverterOptionalString.allocationSize(value.save);}};return new FFIConverter();})();-export enum AppNotchActivityKind {- /**- * A teleport or file transfer: a progress ring.- */- Transfer = "transfer",- /**- * Someone is connected to this machine (host sharing): its symbol,- * pulsing, for as long as they are.- */- RemoteAccess = "remoteAccess",- /**- * The network hotspot: its symbol, pulsing.- */- Hotspot = "hotspot",+export type AppStorageVolume = {/**- * A Space starting: a progress ring on the startup estimate.+ * Bytes available.*/- Provisioning = "provisioning",+ availableBytes: bigint,/**- * A Space being deleted: a ring on the delete estimate.+ * Volume size in bytes.*/- Deleting = "deleting",+ totalBytes: bigint,/**- * Keyvault sign-ins live in a Space: the key symbol, pulsing.+ * `Macintosh HD`, `Colima`, `Docker Desktop`.*/- Keyvault = "keyvault"+ name: string}-const FfiConverterTypeAppNotchActivityKind = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppNotchActivityKind;+/**+ * Generated factory for {@link AppStorageVolume} record objects.+ */+export const AppStorageVolume = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppStorageVolume, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppStorageVolume>,+ });+})();++const FfiConverterTypeAppStorageVolume = (() => {+ type TypeName = AppStorageVolume;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppNotchActivityKind.Transfer;- case 2: return AppNotchActivityKind.RemoteAccess;- case 3: return AppNotchActivityKind.Hotspot;- case 4: return AppNotchActivityKind.Provisioning;- case 5: return AppNotchActivityKind.Deleting;- case 6: return AppNotchActivityKind.Keyvault;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ availableBytes: FfiConverterUInt64.read(from),+ totalBytes: FfiConverterUInt64.read(from),+ name: FfiConverterString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppNotchActivityKind.Transfer: return ordinalConverter.write(1, into);- case AppNotchActivityKind.RemoteAccess: return ordinalConverter.write(2, into);- case AppNotchActivityKind.Hotspot: return ordinalConverter.write(3, into);- case AppNotchActivityKind.Provisioning: return ordinalConverter.write(4, into);- case AppNotchActivityKind.Deleting: return ordinalConverter.write(5, into);- case AppNotchActivityKind.Keyvault: return ordinalConverter.write(6, into);- }+ FfiConverterUInt64.write(value.availableBytes, into);+ FfiConverterUInt64.write(value.totalBytes, into);+ FfiConverterString.write(value.name, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterUInt64.allocationSize(value.availableBytes) ++ FfiConverterUInt64.allocationSize(value.totalBytes) ++ FfiConverterString.allocationSize(value.name);+}- }+ };return new FFIConverter();})();-export type AppNotchActivity = {- /**- * Which.- */- kind: AppNotchActivityKind,+export type AppLocalStorage = {/**- * Spoken label and tooltip.+ * Bytes the SDK keeps free on a volume (a create that would leave+ * less fails).*/- label: string,+ reserveBytes: bigint,/**- * The symbol to draw (the hotspot), else a ring.+ * Lume's VM storage (macOS).*/- symbol?: string,+ lume?: AppStorageVolume,/**- * Real progress in thousandths (a transfer with a known total).+ * The cua home (QEMU disks and the image cache).*/- permille?: number,+ qemu?: AppStorageVolume,/**- * Epoch ms the ring's estimate runs from (the earliest starting- * Space); none means from when the ring appears.+ * The container engine's data disk.*/- startedAt?: bigint,+ container?: AppStorageVolume,/**- * The estimate reaches about 80% after this long ([`estimated_progress`]).+ * Catalog refs already pulled here.*/- estimateMs: number+ pulled: Array<string>}/**- * Generated factory for {@link AppNotchActivity} record objects.+ * Generated factory for {@link AppLocalStorage} record objects.*/-export const AppNotchActivity = (() => {+export const AppLocalStorage = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchActivity, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppLocalStorage, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchActivity>,+ defaults: () => Object.freeze(defaults()) as Partial<AppLocalStorage>,});})();-const FfiConverterTypeAppNotchActivity = (() => {- type TypeName = AppNotchActivity;+const FfiConverterTypeAppLocalStorage = (() => {+ type TypeName = AppLocalStorage;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeAppNotchActivityKind.read(from),- label: FfiConverterString.read(from),- symbol: FfiConverterOptionalString.read(from),- permille: FfiConverterOptionalUInt32.read(from),- startedAt: FfiConverterOptionalInt64.read(from),- estimateMs: FfiConverterUInt32.read(from)+ reserveBytes: FfiConverterUInt64.read(from),+ lume: FfiConverterOptionalTypeAppStorageVolume.read(from),+ qemu: FfiConverterOptionalTypeAppStorageVolume.read(from),+ container: FfiConverterOptionalTypeAppStorageVolume.read(from),+ pulled: FfiConverterSequenceString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppNotchActivityKind.write(value.kind, into);- FfiConverterString.write(value.label, into);- FfiConverterOptionalString.write(value.symbol, into);- FfiConverterOptionalUInt32.write(value.permille, into);- FfiConverterOptionalInt64.write(value.startedAt, into);- FfiConverterUInt32.write(value.estimateMs, into);+ FfiConverterUInt64.write(value.reserveBytes, into);+ FfiConverterOptionalTypeAppStorageVolume.write(value.lume, into);+ FfiConverterOptionalTypeAppStorageVolume.write(value.qemu, into);+ FfiConverterOptionalTypeAppStorageVolume.write(value.container, into);+ FfiConverterSequenceString.write(value.pulled, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppNotchActivityKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.label) +- FfiConverterOptionalString.allocationSize(value.symbol) +- FfiConverterOptionalUInt32.allocationSize(value.permille) +- FfiConverterOptionalInt64.allocationSize(value.startedAt) +- FfiConverterUInt32.allocationSize(value.estimateMs);+ return FfiConverterUInt64.allocationSize(value.reserveBytes) ++ FfiConverterOptionalTypeAppStorageVolume.allocationSize(value.lume) ++ FfiConverterOptionalTypeAppStorageVolume.allocationSize(value.qemu) ++ FfiConverterOptionalTypeAppStorageVolume.allocationSize(value.container) ++ FfiConverterSequenceString.allocationSize(value.pulled);}};return new FFIConverter();})();-export enum AppNotchButtonId {+export enum AppLoginItemStatus {/**- * Opens the main window (the Spaces list).+ * Registered and allowed: the app opens at login.*/- List = "list",+ Enabled = "enabled",/**- * Opens Settings.+ * Not registered.*/- Settings = "settings"+ NotRegistered = "notRegistered",+ /**+ * Registered, waiting for the user to allow it in System Settings,+ * Login Items.+ */+ RequiresApproval = "requiresApproval",+ /**+ * The system cannot find the app as a login item.+ */+ NotFound = "notFound"}-const FfiConverterTypeAppNotchButtonId = (() => {+const FfiConverterTypeAppLoginItemStatus = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppNotchButtonId;+ type TypeName = AppLoginItemStatus;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppNotchButtonId.List;- case 2: return AppNotchButtonId.Settings;+ case 1: return AppLoginItemStatus.Enabled;+ case 2: return AppLoginItemStatus.NotRegistered;+ case 3: return AppLoginItemStatus.RequiresApproval;+ case 4: return AppLoginItemStatus.NotFound;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppNotchButtonId.List: return ordinalConverter.write(1, into);- case AppNotchButtonId.Settings: return ordinalConverter.write(2, into);+ case AppLoginItemStatus.Enabled: return ordinalConverter.write(1, into);+ case AppLoginItemStatus.NotRegistered: return ordinalConverter.write(2, into);+ case AppLoginItemStatus.RequiresApproval: return ordinalConverter.write(3, into);+ case AppLoginItemStatus.NotFound: return ordinalConverter.write(4, into);}}allocationSize(value: TypeName): number {@@ -23387,549 +23035,660 @@ const FfiConverterTypeAppNotchButtonId = (() => {return new FFIConverter();})();-export type AppNotchButton = {+export type AppLoginItemInput = {/**- * What it does.+ * What the system reports.*/- id: AppNotchButtonId,+ status: AppLoginItemStatus,/**- * SF Symbol.+ * A change is running.*/- symbol: string,+ busy: boolean,/**- * Accessibility label.+ * Why the last change failed.*/- label: string,+ error?: string,/**- * Tooltip.+ * This machine provides Spaces to your other devices (host setup's+ * "A spare machine for Spaces").*/- help: string+ providesSpaces: boolean,+ /**+ * This machine runs persistent agents.+ */+ runsAgents: boolean}/**- * Generated factory for {@link AppNotchButton} record objects.+ * Generated factory for {@link AppLoginItemInput} record objects.*/-export const AppNotchButton = (() => {+export const AppLoginItemInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchButton, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppLoginItemInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchButton>,+ defaults: () => Object.freeze(defaults()) as Partial<AppLoginItemInput>,});})();-const FfiConverterTypeAppNotchButton = (() => {- type TypeName = AppNotchButton;+const FfiConverterTypeAppLoginItemInput = (() => {+ type TypeName = AppLoginItemInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterTypeAppNotchButtonId.read(from),- symbol: FfiConverterString.read(from),- label: FfiConverterString.read(from),- help: FfiConverterString.read(from)+ status: FfiConverterTypeAppLoginItemStatus.read(from),+ busy: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ providesSpaces: FfiConverterBool.read(from),+ runsAgents: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppNotchButtonId.write(value.id, into);- FfiConverterString.write(value.symbol, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.help, into);+ FfiConverterTypeAppLoginItemStatus.write(value.status, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterBool.write(value.providesSpaces, into);+ FfiConverterBool.write(value.runsAgents, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppNotchButtonId.allocationSize(value.id) +- FfiConverterString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.help);+ return FfiConverterTypeAppLoginItemStatus.allocationSize(value.status) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterBool.allocationSize(value.providesSpaces) ++ FfiConverterBool.allocationSize(value.runsAgents);}};return new FFIConverter();})();-export type AppNotchHeader = {- /**- * The search text.- */- query: string,- /**- * "Search".- */- placeholder: string,- /**- * The field's spoken label.- */- searchLabel: string,+export type AppLoginItemPlan = {/**- * How many Spaces match, while searching.+ * Register the app as a login item now.*/- matchCount?: number,+ register: boolean,/**- * Left to right: the list, then Settings at the far right.+ * Save this as the user's choice (`AppSettings::launch_at_login`).*/- buttons: Array<AppNotchButton>+ record?: boolean}/**- * Generated factory for {@link AppNotchHeader} record objects.+ * Generated factory for {@link AppLoginItemPlan} record objects.*/-export const AppNotchHeader = (() => {+export const AppLoginItemPlan = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchHeader, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppLoginItemPlan, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchHeader>,+ defaults: () => Object.freeze(defaults()) as Partial<AppLoginItemPlan>,});})();-const FfiConverterTypeAppNotchHeader = (() => {- type TypeName = AppNotchHeader;+const FfiConverterTypeAppLoginItemPlan = (() => {+ type TypeName = AppLoginItemPlan;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- query: FfiConverterString.read(from),- placeholder: FfiConverterString.read(from),- searchLabel: FfiConverterString.read(from),- matchCount: FfiConverterOptionalUInt32.read(from),- buttons: FfiConverterSequenceTypeAppNotchButton.read(from)+ register: FfiConverterBool.read(from),+ record: FfiConverterOptionalBoolean.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.query, into);- FfiConverterString.write(value.placeholder, into);- FfiConverterString.write(value.searchLabel, into);- FfiConverterOptionalUInt32.write(value.matchCount, into);- FfiConverterSequenceTypeAppNotchButton.write(value.buttons, into);+ FfiConverterBool.write(value.register, into);+ FfiConverterOptionalBoolean.write(value.record, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.query) +- FfiConverterString.allocationSize(value.placeholder) +- FfiConverterString.allocationSize(value.searchLabel) +- FfiConverterOptionalUInt32.allocationSize(value.matchCount) +- FfiConverterSequenceTypeAppNotchButton.allocationSize(value.buttons);+ return FfiConverterBool.allocationSize(value.register) ++ FfiConverterOptionalBoolean.allocationSize(value.record);}};return new FFIConverter();})();-export type AppNotchLayout = {+export type AppMainChrome = {/**- * A real camera housing.+ * Window title when nothing is selected.*/- hasNotch: boolean,+ title: string,/**- * The notch (or the virtual one), AppKit coordinates.+ * "New Space".*/- notch: AppLogicalRect,+ newSpaceLabel: string,/**- * The closed panel's hit area: the notch grown for hover and drags.+ * "⌘N".*/- closedFrame: AppLogicalRect,+ newSpaceShortcut: string,/**- * The open panel frame (tiles and prompt), top-centred.+ * The sidebar search's placeholder.*/- openFrame: AppLogicalRect,+ searchPlaceholder: string,/**- * The "Teleport to Cua" box alone, hanging below the notch.+ * The Keyvault section's title.*/- promptFrame: AppLogicalRect,+ keyvaultTitle: string,/**- * The "N Spaces" tab beside the closed notch (right of it), at its- * widest.+ * The account line: the identity, "API key" or "Not signed in".*/- tabFrame: AppLogicalRect,+ account: string,/**- * Space between a closed tab's content (the "N Spaces" rows, the- * activity ring on the left) and the tab's edge toward the notch.+ * "Sign in", when signing in is offered.*/- tabInsetNotch: number,+ signInLabel?: string,/**- * Space between a closed tab's content and its outer edge (before the- * outer ear).+ * "Settings".*/- tabInsetOuter: number,+ settingsLabel: string,/**- * The overlay window: every frame above plus [`SHADOW_PADDING`], so- * the shape animates inside one window that never resizes mid-spring.- * Its transparent pixels pass clicks through.+ * "⌘,".*/- stageFrame: AppLogicalRect,+ settingsShortcut: string,/**- * Draw the black notch shape (true) or a floating glass capsule.+ * With no Spaces: the heading.*/- notchStyle: boolean+ emptyTitle: string,+ /**+ * With no Spaces: the default Linux Space's tile.+ */+ emptyAction: string,+ /**+ * Under it: the time and disk.+ */+ emptyLinuxDetail: string,+ /**+ * With no Spaces: the line under the heading.+ */+ emptyDetail: string,+ /**+ * With no Spaces: the default macOS Space's tile.+ */+ emptyMacosAction: string,+ /**+ * Under it: the download size.+ */+ emptyMacosDetail: string,+ /**+ * The sidebar's Volume page entry ("Volume"); none while the Cua Volume+ * experiment is off (the page and its route are hidden; a mounted+ * volume stays mounted).+ */+ volumeLabel?: string}/**- * Generated factory for {@link AppNotchLayout} record objects.+ * Generated factory for {@link AppMainChrome} record objects.*/-export const AppNotchLayout = (() => {+export const AppMainChrome = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchLayout, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppMainChrome, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchLayout>,+ defaults: () => Object.freeze(defaults()) as Partial<AppMainChrome>,});})();-const FfiConverterTypeAppNotchLayout = (() => {- type TypeName = AppNotchLayout;+const FfiConverterTypeAppMainChrome = (() => {+ type TypeName = AppMainChrome;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- hasNotch: FfiConverterBool.read(from),- notch: FfiConverterTypeAppLogicalRect.read(from),- closedFrame: FfiConverterTypeAppLogicalRect.read(from),- openFrame: FfiConverterTypeAppLogicalRect.read(from),- promptFrame: FfiConverterTypeAppLogicalRect.read(from),- tabFrame: FfiConverterTypeAppLogicalRect.read(from),- tabInsetNotch: FfiConverterFloat64.read(from),- tabInsetOuter: FfiConverterFloat64.read(from),- stageFrame: FfiConverterTypeAppLogicalRect.read(from),- notchStyle: FfiConverterBool.read(from)+ title: FfiConverterString.read(from),+ newSpaceLabel: FfiConverterString.read(from),+ newSpaceShortcut: FfiConverterString.read(from),+ searchPlaceholder: FfiConverterString.read(from),+ keyvaultTitle: FfiConverterString.read(from),+ account: FfiConverterString.read(from),+ signInLabel: FfiConverterOptionalString.read(from),+ settingsLabel: FfiConverterString.read(from),+ settingsShortcut: FfiConverterString.read(from),+ emptyTitle: FfiConverterString.read(from),+ emptyAction: FfiConverterString.read(from),+ emptyLinuxDetail: FfiConverterString.read(from),+ emptyDetail: FfiConverterString.read(from),+ emptyMacosAction: FfiConverterString.read(from),+ emptyMacosDetail: FfiConverterString.read(from),+ volumeLabel: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.hasNotch, into);- FfiConverterTypeAppLogicalRect.write(value.notch, into);- FfiConverterTypeAppLogicalRect.write(value.closedFrame, into);- FfiConverterTypeAppLogicalRect.write(value.openFrame, into);- FfiConverterTypeAppLogicalRect.write(value.promptFrame, into);- FfiConverterTypeAppLogicalRect.write(value.tabFrame, into);- FfiConverterFloat64.write(value.tabInsetNotch, into);- FfiConverterFloat64.write(value.tabInsetOuter, into);- FfiConverterTypeAppLogicalRect.write(value.stageFrame, into);- FfiConverterBool.write(value.notchStyle, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.newSpaceLabel, into);+ FfiConverterString.write(value.newSpaceShortcut, into);+ FfiConverterString.write(value.searchPlaceholder, into);+ FfiConverterString.write(value.keyvaultTitle, into);+ FfiConverterString.write(value.account, into);+ FfiConverterOptionalString.write(value.signInLabel, into);+ FfiConverterString.write(value.settingsLabel, into);+ FfiConverterString.write(value.settingsShortcut, into);+ FfiConverterString.write(value.emptyTitle, into);+ FfiConverterString.write(value.emptyAction, into);+ FfiConverterString.write(value.emptyLinuxDetail, into);+ FfiConverterString.write(value.emptyDetail, into);+ FfiConverterString.write(value.emptyMacosAction, into);+ FfiConverterString.write(value.emptyMacosDetail, into);+ FfiConverterOptionalString.write(value.volumeLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.hasNotch) +- FfiConverterTypeAppLogicalRect.allocationSize(value.notch) +- FfiConverterTypeAppLogicalRect.allocationSize(value.closedFrame) +- FfiConverterTypeAppLogicalRect.allocationSize(value.openFrame) +- FfiConverterTypeAppLogicalRect.allocationSize(value.promptFrame) +- FfiConverterTypeAppLogicalRect.allocationSize(value.tabFrame) +- FfiConverterFloat64.allocationSize(value.tabInsetNotch) +- FfiConverterFloat64.allocationSize(value.tabInsetOuter) +- FfiConverterTypeAppLogicalRect.allocationSize(value.stageFrame) +- FfiConverterBool.allocationSize(value.notchStyle);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.newSpaceLabel) ++ FfiConverterString.allocationSize(value.newSpaceShortcut) ++ FfiConverterString.allocationSize(value.searchPlaceholder) ++ FfiConverterString.allocationSize(value.keyvaultTitle) ++ FfiConverterString.allocationSize(value.account) ++ FfiConverterOptionalString.allocationSize(value.signInLabel) ++ FfiConverterString.allocationSize(value.settingsLabel) ++ FfiConverterString.allocationSize(value.settingsShortcut) ++ FfiConverterString.allocationSize(value.emptyTitle) ++ FfiConverterString.allocationSize(value.emptyAction) ++ FfiConverterString.allocationSize(value.emptyLinuxDetail) ++ FfiConverterString.allocationSize(value.emptyDetail) ++ FfiConverterString.allocationSize(value.emptyMacosAction) ++ FfiConverterString.allocationSize(value.emptyMacosDetail) ++ FfiConverterOptionalString.allocationSize(value.volumeLabel);}};return new FFIConverter();})();-export type AppNotchMotion = {+export enum AppSpaceStatus {/**- * Hover dwell before the panel opens.+ * The host machine itself.*/- hoverDwellMs: number,+ Local = "local",/**- * Delay before closing after the pointer leaves.+ * Reachable, session active.*/- closeDelayMs: number,+ Running = "running",/**- * Opening spring response (s).+ * An agent waits for approval.*/- openResponse: number,+ Approval = "approval",/**- * Opening spring damping fraction.+ * Unreachable or suspended.*/- openDamping: number,+ Suspended = "suspended",/**- * Closing spring response (s).+ * Being created.*/- closeResponse: number,+ Provisioning = "provisioning",/**- * Closing spring damping fraction.+ * Being deleted (the user confirmed; the SDK is removing it).*/- closeDamping: number,+ Deleting = "deleting"+}++const FfiConverterTypeAppSpaceStatus = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppSpaceStatus;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppSpaceStatus.Local;+ case 2: return AppSpaceStatus.Running;+ case 3: return AppSpaceStatus.Approval;+ case 4: return AppSpaceStatus.Suspended;+ case 5: return AppSpaceStatus.Provisioning;+ case 6: return AppSpaceStatus.Deleting;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppSpaceStatus.Local: return ordinalConverter.write(1, into);+ case AppSpaceStatus.Running: return ordinalConverter.write(2, into);+ case AppSpaceStatus.Approval: return ordinalConverter.write(3, into);+ case AppSpaceStatus.Suspended: return ordinalConverter.write(4, into);+ case AppSpaceStatus.Provisioning: return ordinalConverter.write(5, into);+ case AppSpaceStatus.Deleting: return ordinalConverter.write(6, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum AppThumbnailScene {/**- * Reduce Motion: opacity-only duration (s).+ * A macOS desktop.*/- reducedDuration: number,+ MacDesktop = "macDesktop",/**- * Hover acknowledgement spring response (s): the closed notch grows a- * little while the dwell runs.+ * A Windows desktop.*/- hoverResponse: number,+ WindowsDesktop = "windowsDesktop",/**- * Hover acknowledgement damping fraction.+ * A Linux terminal.*/- hoverDamping: number,+ LinuxTerminal = "linuxTerminal",/**- * Horizontal scale of the closed notch (and its tab) under the pointer.+ * A notes app.*/- hoverScale: number,+ Notes = "notes",/**- * Vertical scale of the closed notch under the pointer (a few points- * taller, anchored at the top).+ * A browser.*/- hoverScaleY: number,+ Browser = "browser",/**- * The content starts fading in this long after the shape starts- * opening (ms).+ * Nothing.*/- contentDelayMs: number,+ Blank = "blank"+}++const FfiConverterTypeAppThumbnailScene = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppThumbnailScene;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppThumbnailScene.MacDesktop;+ case 2: return AppThumbnailScene.WindowsDesktop;+ case 3: return AppThumbnailScene.LinuxTerminal;+ case 4: return AppThumbnailScene.Notes;+ case 5: return AppThumbnailScene.Browser;+ case 6: return AppThumbnailScene.Blank;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppThumbnailScene.MacDesktop: return ordinalConverter.write(1, into);+ case AppThumbnailScene.WindowsDesktop: return ordinalConverter.write(2, into);+ case AppThumbnailScene.LinuxTerminal: return ordinalConverter.write(3, into);+ case AppThumbnailScene.Notes: return ordinalConverter.write(4, into);+ case AppThumbnailScene.Browser: return ordinalConverter.write(5, into);+ case AppThumbnailScene.Blank: return ordinalConverter.write(6, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppSpaceSdkRef = {/**- * Content fade-in duration (s).+ * spacesd feature names.*/- contentIn: number,+ features: Array<string>,/**- * Content fade-out duration on close (s); the shape waits for it.+ * spacesd version at the last handshake.*/- contentOut: number,+ spacesdVersion: string,/**- * Content scale at the start of its fade-in (anchored at the top).+ * Answered the last bounded connect.*/- contentScale: number+ reachable: boolean,+ /**+ * Why not.+ */+ error?: string}/**- * Generated factory for {@link AppNotchMotion} record objects.+ * Generated factory for {@link AppSpaceSdkRef} record objects.*/-export const AppNotchMotion = (() => {+export const AppSpaceSdkRef = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchMotion, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSpaceSdkRef, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchMotion>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpaceSdkRef>,});})();-const FfiConverterTypeAppNotchMotion = (() => {- type TypeName = AppNotchMotion;+const FfiConverterTypeAppSpaceSdkRef = (() => {+ type TypeName = AppSpaceSdkRef;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- hoverDwellMs: FfiConverterUInt32.read(from),- closeDelayMs: FfiConverterUInt32.read(from),- openResponse: FfiConverterFloat64.read(from),- openDamping: FfiConverterFloat64.read(from),- closeResponse: FfiConverterFloat64.read(from),- closeDamping: FfiConverterFloat64.read(from),- reducedDuration: FfiConverterFloat64.read(from),- hoverResponse: FfiConverterFloat64.read(from),- hoverDamping: FfiConverterFloat64.read(from),- hoverScale: FfiConverterFloat64.read(from),- hoverScaleY: FfiConverterFloat64.read(from),- contentDelayMs: FfiConverterUInt32.read(from),- contentIn: FfiConverterFloat64.read(from),- contentOut: FfiConverterFloat64.read(from),- contentScale: FfiConverterFloat64.read(from)+ features: FfiConverterSequenceString.read(from),+ spacesdVersion: FfiConverterString.read(from),+ reachable: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.hoverDwellMs, into);- FfiConverterUInt32.write(value.closeDelayMs, into);- FfiConverterFloat64.write(value.openResponse, into);- FfiConverterFloat64.write(value.openDamping, into);- FfiConverterFloat64.write(value.closeResponse, into);- FfiConverterFloat64.write(value.closeDamping, into);- FfiConverterFloat64.write(value.reducedDuration, into);- FfiConverterFloat64.write(value.hoverResponse, into);- FfiConverterFloat64.write(value.hoverDamping, into);- FfiConverterFloat64.write(value.hoverScale, into);- FfiConverterFloat64.write(value.hoverScaleY, into);- FfiConverterUInt32.write(value.contentDelayMs, into);- FfiConverterFloat64.write(value.contentIn, into);- FfiConverterFloat64.write(value.contentOut, into);- FfiConverterFloat64.write(value.contentScale, into);+ FfiConverterSequenceString.write(value.features, into);+ FfiConverterString.write(value.spacesdVersion, into);+ FfiConverterBool.write(value.reachable, into);+ FfiConverterOptionalString.write(value.error, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.hoverDwellMs) +- FfiConverterUInt32.allocationSize(value.closeDelayMs) +- FfiConverterFloat64.allocationSize(value.openResponse) +- FfiConverterFloat64.allocationSize(value.openDamping) +- FfiConverterFloat64.allocationSize(value.closeResponse) +- FfiConverterFloat64.allocationSize(value.closeDamping) +- FfiConverterFloat64.allocationSize(value.reducedDuration) +- FfiConverterFloat64.allocationSize(value.hoverResponse) +- FfiConverterFloat64.allocationSize(value.hoverDamping) +- FfiConverterFloat64.allocationSize(value.hoverScale) +- FfiConverterFloat64.allocationSize(value.hoverScaleY) +- FfiConverterUInt32.allocationSize(value.contentDelayMs) +- FfiConverterFloat64.allocationSize(value.contentIn) +- FfiConverterFloat64.allocationSize(value.contentOut) +- FfiConverterFloat64.allocationSize(value.contentScale);+ return FfiConverterSequenceString.allocationSize(value.features) ++ FfiConverterString.allocationSize(value.spacesdVersion) ++ FfiConverterBool.allocationSize(value.reachable) ++ FfiConverterOptionalString.allocationSize(value.error);}};return new FFIConverter();})();-export type AppNotchPermission = {+export type AppSpaceProgress = {/**- * The line.+ * The SDK's phase word (`preparing`, `pulling`, `booting`, ...).*/- text: string,+ phase: string,/**- * The button.+ * Overall progress in thousandths.*/- action: string,+ permille: number,/**- * Which settings pane the button opens (`accessibility`).+ * The phase in words ("Starting…", "Downloading image…"), or "Failed".*/- pane: string+ label: string,+ /**+ * Why the create failed.+ */+ error?: string,+ /**+ * It failed because the account is out of Cua Cloud credit: the+ * website billing page "Add credit" opens.+ */+ creditUrl?: string,+ /**+ * While it downloads: "4.2 of 22.1 GB · 85 MB/s · about 4 min"+ * ([`crate::spaces::creating::transfer_text`]).+ */+ transfer?: string,+ /**+ * Cancel can stop it now.+ */+ cancellable: boolean,+ /**+ * Cancel was pressed and the create is being cleaned up.+ */+ cancelling: boolean}/**- * Generated factory for {@link AppNotchPermission} record objects.+ * Generated factory for {@link AppSpaceProgress} record objects.*/-export const AppNotchPermission = (() => {+export const AppSpaceProgress = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchPermission, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSpaceProgress, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchPermission>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpaceProgress>,});})();-const FfiConverterTypeAppNotchPermission = (() => {- type TypeName = AppNotchPermission;+const FfiConverterTypeAppSpaceProgress = (() => {+ type TypeName = AppSpaceProgress;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- text: FfiConverterString.read(from),- action: FfiConverterString.read(from),- pane: FfiConverterString.read(from)+ phase: FfiConverterString.read(from),+ permille: FfiConverterUInt32.read(from),+ label: FfiConverterString.read(from),+ error: FfiConverterOptionalString.read(from),+ creditUrl: FfiConverterOptionalString.read(from),+ transfer: FfiConverterOptionalString.read(from),+ cancellable: FfiConverterBool.read(from),+ cancelling: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.text, into);- FfiConverterString.write(value.action, into);- FfiConverterString.write(value.pane, into);+ FfiConverterString.write(value.phase, into);+ FfiConverterUInt32.write(value.permille, into);+ FfiConverterString.write(value.label, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalString.write(value.creditUrl, into);+ FfiConverterOptionalString.write(value.transfer, into);+ FfiConverterBool.write(value.cancellable, into);+ FfiConverterBool.write(value.cancelling, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.text) +- FfiConverterString.allocationSize(value.action) +- FfiConverterString.allocationSize(value.pane);+ return FfiConverterString.allocationSize(value.phase) ++ FfiConverterUInt32.allocationSize(value.permille) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalString.allocationSize(value.creditUrl) ++ FfiConverterOptionalString.allocationSize(value.transfer) ++ FfiConverterBool.allocationSize(value.cancellable) ++ FfiConverterBool.allocationSize(value.cancelling);}};return new FFIConverter();})();-export type AppNotchRadii = {+export enum AppPowerControl {/**- * Top (concave ear) radius.+ * Suspended in memory; it resumes where it was.*/- top: number,+ Suspend = "suspend",/**- * Bottom radius.+ * Stopped with its disk kept; it boots again.*/- bottom: number+ Stop = "stop"}-/**- * Generated factory for {@link AppNotchRadii} record objects.- */-export const AppNotchRadii = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppNotchRadii, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchRadii>,- });-})();--const FfiConverterTypeAppNotchRadii = (() => {- type TypeName = AppNotchRadii;+const FfiConverterTypeAppPowerControl = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppPowerControl;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- top: FfiConverterFloat64.read(from),- bottom: FfiConverterFloat64.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppPowerControl.Suspend;+ case 2: return AppPowerControl.Stop;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterFloat64.write(value.top, into);- FfiConverterFloat64.write(value.bottom, into);+ switch (value) {+ case AppPowerControl.Suspend: return ordinalConverter.write(1, into);+ case AppPowerControl.Stop: return ordinalConverter.write(2, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterFloat64.allocationSize(value.top) +- FfiConverterFloat64.allocationSize(value.bottom);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export enum AppNotchPhase {+export type AppSpacePower = {/**- * Just the notch.+ * How it turns off.*/- Closed = "closed",+ control: AppPowerControl,/**- * The Space tiles.+ * It is off: suspended or stopped as the SDK recorded it, or not+ * answering with no recorded state (a Space one of your machines+ * provides).*/- Tiles = "tiles",+ off: boolean,/**- * The Teleport prompt ("Teleport to Cua").+ * Being turned on (`true`) or off (`false`) now.*/- Prompt = "prompt"+ turningOn?: boolean,+ /**+ * Why the last power action failed, until the next one.+ */+ error?: string}-const FfiConverterTypeAppNotchPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppNotchPhase;+/**+ * Generated factory for {@link AppSpacePower} record objects.+ */+export const AppSpacePower = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppSpacePower, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpacePower>,+ });+})();++const FfiConverterTypeAppSpacePower = (() => {+ type TypeName = AppSpacePower;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppNotchPhase.Closed;- case 2: return AppNotchPhase.Tiles;- case 3: return AppNotchPhase.Prompt;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ control: FfiConverterTypeAppPowerControl.read(from),+ off: FfiConverterBool.read(from),+ turningOn: FfiConverterOptionalBoolean.read(from),+ error: FfiConverterOptionalString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppNotchPhase.Closed: return ordinalConverter.write(1, into);- case AppNotchPhase.Tiles: return ordinalConverter.write(2, into);- case AppNotchPhase.Prompt: return ordinalConverter.write(3, into);- }+ FfiConverterTypeAppPowerControl.write(value.control, into);+ FfiConverterBool.write(value.off, into);+ FfiConverterOptionalBoolean.write(value.turningOn, into);+ FfiConverterOptionalString.write(value.error, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterTypeAppPowerControl.allocationSize(value.control) ++ FfiConverterBool.allocationSize(value.off) ++ FfiConverterOptionalBoolean.allocationSize(value.turningOn) ++ FfiConverterOptionalString.allocationSize(value.error);+}- }+ };return new FFIConverter();})();-export type AppNotchTile = {+export type AppSpace = {/**- * Space id.+ * Sandbox ref (`cloud:<name>`, `local:<name>`, `direct:<host:port>`, ...).*/id: string,/**- * Name.+ * Display name.*/name: string,/**- * OS.+ * Operating system.*/os: AppSpaceOs,/**@@ -23937,67 +23696,121 @@ export type AppNotchTile = {*/status: AppSpaceStatus,/**- * Drawn at reduced opacity.+ * One short status detail.*/- dim: boolean,+ detail: string,/**- * Accepts a teleport drop (reachable).+ * Epoch ms of the last focus.*/- dropTarget: boolean,+ lastUsedAt: bigint,/**- * Under the dragged window.+ * Epoch ms it was created.*/- targeted: boolean,+ startedAt?: bigint,/**- * The Space's OS icon id ([`os_icon`]: `os-macos`, `os-windows`,- * `os-ubuntu`, ..., `os-linux`); the artwork is [`os_icon_svg`], or on- * macOS the system symbol [`os_icon_system_symbol`] names.+ * Placeholder scene.*/- symbol: string,+ scene: AppThumbnailScene,/**- * Accessibility label: name, OS, where it runs and status.+ * Group (cloud namespace or location word).*/- label: string,+ fleetId?: string,/**- * Where it runs, in words, on the tile's header line next to the OS- * logo: "This Mac", the machine that provides it ("Mac mini"), the- * address of one added by address, or the cloud's place ([`location`]).+ * Fixture machine size.*/- location: string,+ size?: string,/**- * While it is being created: overall progress in thousandths (a ring- * over the tile).+ * Fixture region.*/- progress?: number,+ region?: string,/**- * While it is being created: the phase in words ("Starting…"), or- * "Failed"; while it is being deleted, "Deleting…".+ * Where it runs (cloud when omitted).*/- progressLabel?: string,+ provider?: AppSpaceProvider,/**- * Signed in through the Keyvault (and not dismissed): the key badge.+ * SDK facts, for Spaces from the live registry.*/- signedIn: boolean+ sdk?: AppSpaceSdkRef,+ /**+ * The guest OS product or distribution ("Ubuntu", "macOS"), when the+ * Space reported one: it picks the OS icon ([`crate::notch::os_icon`]).+ */+ osName?: string,+ /**+ * The guest's full OS string ("Ubuntu 24.04.3 LTS"), when the Space+ * reported one.+ */+ osPrettyName?: string,+ /**+ * The image it runs ("ghcr.io/trycua/linux:24.04"), when known.+ */+ image?: string,+ /**+ * The digest of the variant that runs, when known.+ */+ imageDigest?: string,+ /**+ * While it is being created: how far along, from the SDK's create+ * progress ([`crate::spaces::creating`]).+ */+ progress?: AppSpaceProgress,+ /**+ * Container or virtual machine, when known.+ */+ kind?: AppSpaceKind,+ /**+ * The guest's CPU architecture (`arm64`, `amd64`), when known.+ */+ arch?: string,+ /**+ * For a Space one of your machines provides: that machine's relay id+ * (the sidebar nests it under the machine).+ */+ host?: string,+ /**+ * That machine's name, when known.+ */+ hostName?: string,+ /**+ * Whether and how it turns off and on (the SDK's `power`), with a+ * power action in flight ([`crate::spaces::creating::compose`]).+ * `None`: it cannot (a cloud Space, one added by address).+ */+ power?: AppSpacePower,+ /**+ * For a Space in your cloud: the provider word (`aws`, `gcp`,+ * `modal`).+ */+ cloud?: string,+ /**+ * Its account and region in words ("AWS · us-west-2").+ */+ cloudPlace?: string,+ /**+ * Where Delete permanently can delete it: `here`, `host:<machine>`+ * (that machine created it) or `elsewhere` (another device did).+ */+ cloudDelete?: string}/**- * Generated factory for {@link AppNotchTile} record objects.+ * Generated factory for {@link AppSpace} record objects.*/-export const AppNotchTile = (() => {+export const AppSpace = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchTile, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSpace, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchTile>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpace>,});})();-const FfiConverterTypeAppNotchTile = (() => {- type TypeName = AppNotchTile;+const FfiConverterTypeAppSpace = (() => {+ type TypeName = AppSpace;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {@@ -24005,15 +23818,28 @@ const FfiConverterTypeAppNotchTile = (() => {name: FfiConverterString.read(from),os: FfiConverterTypeAppSpaceOs.read(from),status: FfiConverterTypeAppSpaceStatus.read(from),- dim: FfiConverterBool.read(from),- dropTarget: FfiConverterBool.read(from),- targeted: FfiConverterBool.read(from),- symbol: FfiConverterString.read(from),- label: FfiConverterString.read(from),- location: FfiConverterString.read(from),- progress: FfiConverterOptionalUInt32.read(from),- progressLabel: FfiConverterOptionalString.read(from),- signedIn: FfiConverterBool.read(from)+ detail: FfiConverterString.read(from),+ lastUsedAt: FfiConverterInt64.read(from),+ startedAt: FfiConverterOptionalInt64.read(from),+ scene: FfiConverterTypeAppThumbnailScene.read(from),+ fleetId: FfiConverterOptionalString.read(from),+ size: FfiConverterOptionalString.read(from),+ region: FfiConverterOptionalString.read(from),+ provider: FfiConverterOptionalTypeAppSpaceProvider.read(from),+ sdk: FfiConverterOptionalTypeAppSpaceSdkRef.read(from),+ osName: FfiConverterOptionalString.read(from),+ osPrettyName: FfiConverterOptionalString.read(from),+ image: FfiConverterOptionalString.read(from),+ imageDigest: FfiConverterOptionalString.read(from),+ progress: FfiConverterOptionalTypeAppSpaceProgress.read(from),+ kind: FfiConverterOptionalTypeAppSpaceKind.read(from),+ arch: FfiConverterOptionalString.read(from),+ host: FfiConverterOptionalString.read(from),+ hostName: FfiConverterOptionalString.read(from),+ power: FfiConverterOptionalTypeAppSpacePower.read(from),+ cloud: FfiConverterOptionalString.read(from),+ cloudPlace: FfiConverterOptionalString.read(from),+ cloudDelete: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {@@ -24021,819 +23847,708 @@ const FfiConverterTypeAppNotchTile = (() => {FfiConverterString.write(value.name, into);FfiConverterTypeAppSpaceOs.write(value.os, into);FfiConverterTypeAppSpaceStatus.write(value.status, into);- FfiConverterBool.write(value.dim, into);- FfiConverterBool.write(value.dropTarget, into);- FfiConverterBool.write(value.targeted, into);- FfiConverterString.write(value.symbol, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.location, into);- FfiConverterOptionalUInt32.write(value.progress, into);- FfiConverterOptionalString.write(value.progressLabel, into);- FfiConverterBool.write(value.signedIn, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterInt64.write(value.lastUsedAt, into);+ FfiConverterOptionalInt64.write(value.startedAt, into);+ FfiConverterTypeAppThumbnailScene.write(value.scene, into);+ FfiConverterOptionalString.write(value.fleetId, into);+ FfiConverterOptionalString.write(value.size, into);+ FfiConverterOptionalString.write(value.region, into);+ FfiConverterOptionalTypeAppSpaceProvider.write(value.provider, into);+ FfiConverterOptionalTypeAppSpaceSdkRef.write(value.sdk, into);+ FfiConverterOptionalString.write(value.osName, into);+ FfiConverterOptionalString.write(value.osPrettyName, into);+ FfiConverterOptionalString.write(value.image, into);+ FfiConverterOptionalString.write(value.imageDigest, into);+ FfiConverterOptionalTypeAppSpaceProgress.write(value.progress, into);+ FfiConverterOptionalTypeAppSpaceKind.write(value.kind, into);+ FfiConverterOptionalString.write(value.arch, into);+ FfiConverterOptionalString.write(value.host, into);+ FfiConverterOptionalString.write(value.hostName, into);+ FfiConverterOptionalTypeAppSpacePower.write(value.power, into);+ FfiConverterOptionalString.write(value.cloud, into);+ FfiConverterOptionalString.write(value.cloudPlace, into);+ FfiConverterOptionalString.write(value.cloudDelete, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +FfiConverterString.allocationSize(value.name) +FfiConverterTypeAppSpaceOs.allocationSize(value.os) +FfiConverterTypeAppSpaceStatus.allocationSize(value.status) +- FfiConverterBool.allocationSize(value.dim) +- FfiConverterBool.allocationSize(value.dropTarget) +- FfiConverterBool.allocationSize(value.targeted) +- FfiConverterString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.location) +- FfiConverterOptionalUInt32.allocationSize(value.progress) +- FfiConverterOptionalString.allocationSize(value.progressLabel) +- FfiConverterBool.allocationSize(value.signedIn);+ FfiConverterString.allocationSize(value.detail) ++ FfiConverterInt64.allocationSize(value.lastUsedAt) ++ FfiConverterOptionalInt64.allocationSize(value.startedAt) ++ FfiConverterTypeAppThumbnailScene.allocationSize(value.scene) ++ FfiConverterOptionalString.allocationSize(value.fleetId) ++ FfiConverterOptionalString.allocationSize(value.size) ++ FfiConverterOptionalString.allocationSize(value.region) ++ FfiConverterOptionalTypeAppSpaceProvider.allocationSize(value.provider) ++ FfiConverterOptionalTypeAppSpaceSdkRef.allocationSize(value.sdk) ++ FfiConverterOptionalString.allocationSize(value.osName) ++ FfiConverterOptionalString.allocationSize(value.osPrettyName) ++ FfiConverterOptionalString.allocationSize(value.image) ++ FfiConverterOptionalString.allocationSize(value.imageDigest) ++ FfiConverterOptionalTypeAppSpaceProgress.allocationSize(value.progress) ++ FfiConverterOptionalTypeAppSpaceKind.allocationSize(value.kind) ++ FfiConverterOptionalString.allocationSize(value.arch) ++ FfiConverterOptionalString.allocationSize(value.host) ++ FfiConverterOptionalString.allocationSize(value.hostName) ++ FfiConverterOptionalTypeAppSpacePower.allocationSize(value.power) ++ FfiConverterOptionalString.allocationSize(value.cloud) ++ FfiConverterOptionalString.allocationSize(value.cloudPlace) ++ FfiConverterOptionalString.allocationSize(value.cloudDelete);}};return new FFIConverter();})();-export type AppNotchTab = {+export type AppMenuInput = {/**- * "9".+ * The roster (with "This machine").*/- count: string,+ spaces: Array<AppSpace>,/**- * "Spaces" (or "Space").+ * Live Keyvault sign-ins ([`crate::keyvault::view::sharing_label`]).*/- word: string+ keyvault?: string,+ /**+ * Cua Volume's `volume_sync_status`, when read.+ */+ sync?: AppDriveSyncInput,+ /**+ * Now (Unix ms): a feed that has not answered for [`OFFLINE_AFTER_MS`]+ * is offline.+ */+ nowMs: bigint,+ /**+ * `volume_storage`'s backend (`fs`, `s3`), when read: this machine's+ * store with no other device has nothing to sync.+ */+ backend?: string,+ /**+ * Settings, Experiments: Cua Volume's sync state and conflicts only+ * with Cua Volume on (none: shown, for callers that predate+ * experiments). Off hides them; the volume keeps syncing.+ */+ experiments?: AppExperiments}/**- * Generated factory for {@link AppNotchTab} record objects.+ * Generated factory for {@link AppMenuInput} record objects.*/-export const AppNotchTab = (() => {+export const AppMenuInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchTab, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppMenuInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchTab>,+ defaults: () => Object.freeze(defaults()) as Partial<AppMenuInput>,});})();-const FfiConverterTypeAppNotchTab = (() => {- type TypeName = AppNotchTab;+const FfiConverterTypeAppMenuInput = (() => {+ type TypeName = AppMenuInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- count: FfiConverterString.read(from),- word: FfiConverterString.read(from)+ spaces: FfiConverterSequenceTypeAppSpace.read(from),+ keyvault: FfiConverterOptionalString.read(from),+ sync: FfiConverterOptionalTypeAppDriveSyncInput.read(from),+ nowMs: FfiConverterUInt64.read(from),+ backend: FfiConverterOptionalString.read(from),+ experiments: FfiConverterOptionalTypeAppExperiments.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.count, into);- FfiConverterString.write(value.word, into);+ FfiConverterSequenceTypeAppSpace.write(value.spaces, into);+ FfiConverterOptionalString.write(value.keyvault, into);+ FfiConverterOptionalTypeAppDriveSyncInput.write(value.sync, into);+ FfiConverterUInt64.write(value.nowMs, into);+ FfiConverterOptionalString.write(value.backend, into);+ FfiConverterOptionalTypeAppExperiments.write(value.experiments, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.count) +- FfiConverterString.allocationSize(value.word);+ return FfiConverterSequenceTypeAppSpace.allocationSize(value.spaces) ++ FfiConverterOptionalString.allocationSize(value.keyvault) ++ FfiConverterOptionalTypeAppDriveSyncInput.allocationSize(value.sync) ++ FfiConverterUInt64.allocationSize(value.nowMs) ++ FfiConverterOptionalString.allocationSize(value.backend) ++ FfiConverterOptionalTypeAppExperiments.allocationSize(value.experiments);}};return new FFIConverter();})();-export type AppNotchView = {- /**- * What shows.- */- phase: AppNotchPhase,- /**- * The tiles (in `tiles`).- */- tiles: Array<AppNotchTile>,- /**- * Tiles accept drops.- */- dropMode: boolean,- /**- * The prompt line.- */- prompt?: string,+export enum AppMenuItemId {/**- * Accessibility label of the panel.+ * The status line (disabled).*/- label: string,+ Status = "status",/**- * "N Spaces": the tab's spoken label (remote Spaces only).+ * A separator.*/- countLabel: string,+ Separator = "separator",/**- * The tab's two rows: the count over the word.+ * Show the main window.*/- tab: AppNotchTab,+ Open = "open",/**- * The row flanking the notch in the open panel: the search left of- * it, the buttons right of it. None while dropping.+ * The New Space sheet.*/- header?: AppNotchHeader,+ NewSpace = "newSpace",/**- * The line in place of the tiles when the search matches nothing.+ * Settings.*/- empty?: string,+ Settings = "settings",/**- * The indicator left of the closed notch.+ * Quit.*/- activity?: AppNotchActivity,+ Quit = "quit",/**- * The notch is hidden (menu bar only): draw nothing.+ * Cua Volume's conflicts: opens the Volume page.*/- hidden: boolean,+ VolumeConflicts = "volumeConflicts"+}++const FfiConverterTypeAppMenuItemId = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppMenuItemId;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppMenuItemId.Status;+ case 2: return AppMenuItemId.Separator;+ case 3: return AppMenuItemId.Open;+ case 4: return AppMenuItemId.NewSpace;+ case 5: return AppMenuItemId.Settings;+ case 6: return AppMenuItemId.Quit;+ case 7: return AppMenuItemId.VolumeConflicts;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppMenuItemId.Status: return ordinalConverter.write(1, into);+ case AppMenuItemId.Separator: return ordinalConverter.write(2, into);+ case AppMenuItemId.Open: return ordinalConverter.write(3, into);+ case AppMenuItemId.NewSpace: return ordinalConverter.write(4, into);+ case AppMenuItemId.Settings: return ordinalConverter.write(5, into);+ case AppMenuItemId.Quit: return ordinalConverter.write(6, into);+ case AppMenuItemId.VolumeConflicts: return ordinalConverter.write(7, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppMenuItem = {/**- * The tab shows (closed, no drag in flight; a drag tucks it away).+ * What it does.*/- showTab: boolean,+ id: AppMenuItemId,/**- * The pointer rests on the closed notch while the dwell runs: the- * shells grow it by [`NotchMotion::hover_scale`].+ * Label (empty for a separator).*/- hoverCue: boolean,+ label: string,/**- * One line in the open panel when window drags cannot be detected.+ * "⌘,", "⌘Q".*/- permission?: AppNotchPermission,+ shortcut?: string,/**- * One line in the open panel while Keyvault sign-ins are live in a- * Space (and not dismissed): what is live, and Dismiss.+ * Enabled.*/- access?: AppNotchAccess+ enabled: boolean}/**- * Generated factory for {@link AppNotchView} record objects.+ * Generated factory for {@link AppMenuItem} record objects.*/-export const AppNotchView = (() => {+export const AppMenuItem = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppMenuItem, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppMenuItem>,});})();-const FfiConverterTypeAppNotchView = (() => {- type TypeName = AppNotchView;+const FfiConverterTypeAppMenuItem = (() => {+ type TypeName = AppMenuItem;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- phase: FfiConverterTypeAppNotchPhase.read(from),- tiles: FfiConverterSequenceTypeAppNotchTile.read(from),- dropMode: FfiConverterBool.read(from),- prompt: FfiConverterOptionalString.read(from),+ id: FfiConverterTypeAppMenuItemId.read(from),label: FfiConverterString.read(from),- countLabel: FfiConverterString.read(from),- tab: FfiConverterTypeAppNotchTab.read(from),- header: FfiConverterOptionalTypeAppNotchHeader.read(from),- empty: FfiConverterOptionalString.read(from),- activity: FfiConverterOptionalTypeAppNotchActivity.read(from),- hidden: FfiConverterBool.read(from),- showTab: FfiConverterBool.read(from),- hoverCue: FfiConverterBool.read(from),- permission: FfiConverterOptionalTypeAppNotchPermission.read(from),- access: FfiConverterOptionalTypeAppNotchAccess.read(from)+ shortcut: FfiConverterOptionalString.read(from),+ enabled: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppNotchPhase.write(value.phase, into);- FfiConverterSequenceTypeAppNotchTile.write(value.tiles, into);- FfiConverterBool.write(value.dropMode, into);- FfiConverterOptionalString.write(value.prompt, into);+ FfiConverterTypeAppMenuItemId.write(value.id, into);FfiConverterString.write(value.label, into);- FfiConverterString.write(value.countLabel, into);- FfiConverterTypeAppNotchTab.write(value.tab, into);- FfiConverterOptionalTypeAppNotchHeader.write(value.header, into);- FfiConverterOptionalString.write(value.empty, into);- FfiConverterOptionalTypeAppNotchActivity.write(value.activity, into);- FfiConverterBool.write(value.hidden, into);- FfiConverterBool.write(value.showTab, into);- FfiConverterBool.write(value.hoverCue, into);- FfiConverterOptionalTypeAppNotchPermission.write(value.permission, into);- FfiConverterOptionalTypeAppNotchAccess.write(value.access, into);+ FfiConverterOptionalString.write(value.shortcut, into);+ FfiConverterBool.write(value.enabled, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppNotchPhase.allocationSize(value.phase) +- FfiConverterSequenceTypeAppNotchTile.allocationSize(value.tiles) +- FfiConverterBool.allocationSize(value.dropMode) +- FfiConverterOptionalString.allocationSize(value.prompt) ++ return FfiConverterTypeAppMenuItemId.allocationSize(value.id) +FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.countLabel) +- FfiConverterTypeAppNotchTab.allocationSize(value.tab) +- FfiConverterOptionalTypeAppNotchHeader.allocationSize(value.header) +- FfiConverterOptionalString.allocationSize(value.empty) +- FfiConverterOptionalTypeAppNotchActivity.allocationSize(value.activity) +- FfiConverterBool.allocationSize(value.hidden) +- FfiConverterBool.allocationSize(value.showTab) +- FfiConverterBool.allocationSize(value.hoverCue) +- FfiConverterOptionalTypeAppNotchPermission.allocationSize(value.permission) +- FfiConverterOptionalTypeAppNotchAccess.allocationSize(value.access);+ FfiConverterOptionalString.allocationSize(value.shortcut) ++ FfiConverterBool.allocationSize(value.enabled);}};return new FFIConverter();})();-export type AppNotchPreview = {- /**- * The closed notch with its ears, top centred.- */- closed: AppLogicalRect,- /**- * The open panel, top centred.- */- open: AppLogicalRect,- /**- * Closed radii, scaled.- */- closedRadii: AppNotchRadii,- /**- * Open radii, scaled.- */- openRadii: AppNotchRadii,- /**- * The "N Spaces" tab right of the notch.- */- tab: AppLogicalRect,- /**- * The camera housing (the closed notch without its ears).- */- notch: AppLogicalRect,- /**- * The open panel's content at real size (the header row flanking the- * notch, then the tiles): the shells lay it out at `content_width` by- * `content_height` points and scale it by `scale` into `open`.- */- view: AppNotchView,- /**- * The content's real width.- */- contentWidth: number,- /**- * The content's real height.- */- contentHeight: number,- /**- * The real notch's height (the header row's height, real points).- */- notchHeight: number,+export type AppMenuOption = {/**- * The content's side inset, real points (open top radius + padding).+ * Value.*/- side: number,+ value: string,/**- * Real points to stage points.+ * Title.*/- scale: number+ label: string}/**- * Generated factory for {@link AppNotchPreview} record objects.+ * Generated factory for {@link AppMenuOption} record objects.*/-export const AppNotchPreview = (() => {+export const AppMenuOption = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchPreview, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppMenuOption, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchPreview>,+ defaults: () => Object.freeze(defaults()) as Partial<AppMenuOption>,});})();-const FfiConverterTypeAppNotchPreview = (() => {- type TypeName = AppNotchPreview;+const FfiConverterTypeAppMenuOption = (() => {+ type TypeName = AppMenuOption;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- closed: FfiConverterTypeAppLogicalRect.read(from),- open: FfiConverterTypeAppLogicalRect.read(from),- closedRadii: FfiConverterTypeAppNotchRadii.read(from),- openRadii: FfiConverterTypeAppNotchRadii.read(from),- tab: FfiConverterTypeAppLogicalRect.read(from),- notch: FfiConverterTypeAppLogicalRect.read(from),- view: FfiConverterTypeAppNotchView.read(from),- contentWidth: FfiConverterFloat64.read(from),- contentHeight: FfiConverterFloat64.read(from),- notchHeight: FfiConverterFloat64.read(from),- side: FfiConverterFloat64.read(from),- scale: FfiConverterFloat64.read(from)+ value: FfiConverterString.read(from),+ label: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLogicalRect.write(value.closed, into);- FfiConverterTypeAppLogicalRect.write(value.open, into);- FfiConverterTypeAppNotchRadii.write(value.closedRadii, into);- FfiConverterTypeAppNotchRadii.write(value.openRadii, into);- FfiConverterTypeAppLogicalRect.write(value.tab, into);- FfiConverterTypeAppLogicalRect.write(value.notch, into);- FfiConverterTypeAppNotchView.write(value.view, into);- FfiConverterFloat64.write(value.contentWidth, into);- FfiConverterFloat64.write(value.contentHeight, into);- FfiConverterFloat64.write(value.notchHeight, into);- FfiConverterFloat64.write(value.side, into);- FfiConverterFloat64.write(value.scale, into);+ FfiConverterString.write(value.value, into);+ FfiConverterString.write(value.label, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLogicalRect.allocationSize(value.closed) +- FfiConverterTypeAppLogicalRect.allocationSize(value.open) +- FfiConverterTypeAppNotchRadii.allocationSize(value.closedRadii) +- FfiConverterTypeAppNotchRadii.allocationSize(value.openRadii) +- FfiConverterTypeAppLogicalRect.allocationSize(value.tab) +- FfiConverterTypeAppLogicalRect.allocationSize(value.notch) +- FfiConverterTypeAppNotchView.allocationSize(value.view) +- FfiConverterFloat64.allocationSize(value.contentWidth) +- FfiConverterFloat64.allocationSize(value.contentHeight) +- FfiConverterFloat64.allocationSize(value.notchHeight) +- FfiConverterFloat64.allocationSize(value.side) +- FfiConverterFloat64.allocationSize(value.scale);+ return FfiConverterString.allocationSize(value.value) ++ FfiConverterString.allocationSize(value.label);}};return new FFIConverter();})();-export type AppNotchTransfer = {+export type AppMenuPreviewRow = {/**- * Bytes sent so far.+ * The core's item.*/- sent?: bigint,+ item: AppMenuItem,/**- * Total bytes, when known.+ * Its row on the stage.*/- total?: bigint+ frame: AppLogicalRect}/**- * Generated factory for {@link AppNotchTransfer} record objects.+ * Generated factory for {@link AppMenuPreviewRow} record objects.*/-export const AppNotchTransfer = (() => {+export const AppMenuPreviewRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchTransfer, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppMenuPreviewRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchTransfer>,+ defaults: () => Object.freeze(defaults()) as Partial<AppMenuPreviewRow>,});})();-const FfiConverterTypeAppNotchTransfer = (() => {- type TypeName = AppNotchTransfer;+const FfiConverterTypeAppMenuPreviewRow = (() => {+ type TypeName = AppMenuPreviewRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- sent: FfiConverterOptionalUInt64.read(from),- total: FfiConverterOptionalUInt64.read(from)+ item: FfiConverterTypeAppMenuItem.read(from),+ frame: FfiConverterTypeAppLogicalRect.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalUInt64.write(value.sent, into);- FfiConverterOptionalUInt64.write(value.total, into);+ FfiConverterTypeAppMenuItem.write(value.item, into);+ FfiConverterTypeAppLogicalRect.write(value.frame, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalUInt64.allocationSize(value.sent) +- FfiConverterOptionalUInt64.allocationSize(value.total);+ return FfiConverterTypeAppMenuItem.allocationSize(value.item) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.frame);}};return new FFIConverter();})();-export type AppNotchState = {- /**- * Opened by hover or click.- */- open: boolean,- /**- * The pointer is over the panel.- */- hovering: boolean,+export type AppMenuPreview = {/**- * A file or app drag (pasteboard) is over the panel.+ * The Cua Spaces icon (the tray template).*/- dropTargeted: boolean,+ icon: AppLogicalRect,/**- * The window drag state machine.+ * The status item's highlight while pressed or open.*/- drag: AppDragOverlayState,+ highlight: AppLogicalRect,/**- * Window-drag detection needs a permission this process lacks (macOS- * Accessibility): the open panel says so instead of failing silently.+ * The clock at the menu bar's right end.*/- dragPermissionMissing: boolean,+ clock: string,/**- * The header's search text (cleared when the panel closes).+ * Its right edge.*/- query: string,+ clockRight: number,/**- * This machine shares its network to a Space (the hotspot).+ * The menu.*/- hotspot: boolean,+ menu: AppLogicalRect,/**- * A teleport or file transfer is in flight.+ * Its corner radius.*/- transfer?: AppNotchTransfer,+ radius: number,/**- * Keyvault sign-ins are live in a Space right now (the core's- * [`crate::keyvault::view::sharing_label`]), so access is never silent.+ * The rows, top to bottom ([`window::menu_bar`] for [`SPACES`]).*/- keyvault?: string,+ rows: Array<AppMenuPreviewRow>,/**- * The Spaces signed in through the Keyvault, less the copies the user- * dismissed ([`crate::keyvault::view::signed_in_spaces`]): their tiles- * carry the key.+ * Text and shortcut inset from the menu's edges.*/- signedIn: Array<string>,+ inset: number,/**- * "Spaces tab in the notch: Hide" (menu bar only): nothing shows in- * the notch, and hover, clicks and window drags do nothing.+ * The rows' font size.*/- hidden: boolean+ fontSize: number}/**- * Generated factory for {@link AppNotchState} record objects.+ * Generated factory for {@link AppMenuPreview} record objects.*/-export const AppNotchState = (() => {+export const AppMenuPreview = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppMenuPreview, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppMenuPreview>,});})();-const FfiConverterTypeAppNotchState = (() => {- type TypeName = AppNotchState;+const FfiConverterTypeAppMenuPreview = (() => {+ type TypeName = AppMenuPreview;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- open: FfiConverterBool.read(from),- hovering: FfiConverterBool.read(from),- dropTargeted: FfiConverterBool.read(from),- drag: FfiConverterTypeAppDragOverlayState.read(from),- dragPermissionMissing: FfiConverterBool.read(from),- query: FfiConverterString.read(from),- hotspot: FfiConverterBool.read(from),- transfer: FfiConverterOptionalTypeAppNotchTransfer.read(from),- keyvault: FfiConverterOptionalString.read(from),- signedIn: FfiConverterSequenceString.read(from),- hidden: FfiConverterBool.read(from)+ icon: FfiConverterTypeAppLogicalRect.read(from),+ highlight: FfiConverterTypeAppLogicalRect.read(from),+ clock: FfiConverterString.read(from),+ clockRight: FfiConverterFloat64.read(from),+ menu: FfiConverterTypeAppLogicalRect.read(from),+ radius: FfiConverterFloat64.read(from),+ rows: FfiConverterSequenceTypeAppMenuPreviewRow.read(from),+ inset: FfiConverterFloat64.read(from),+ fontSize: FfiConverterFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.open, into);- FfiConverterBool.write(value.hovering, into);- FfiConverterBool.write(value.dropTargeted, into);- FfiConverterTypeAppDragOverlayState.write(value.drag, into);- FfiConverterBool.write(value.dragPermissionMissing, into);- FfiConverterString.write(value.query, into);- FfiConverterBool.write(value.hotspot, into);- FfiConverterOptionalTypeAppNotchTransfer.write(value.transfer, into);- FfiConverterOptionalString.write(value.keyvault, into);- FfiConverterSequenceString.write(value.signedIn, into);- FfiConverterBool.write(value.hidden, into);+ FfiConverterTypeAppLogicalRect.write(value.icon, into);+ FfiConverterTypeAppLogicalRect.write(value.highlight, into);+ FfiConverterString.write(value.clock, into);+ FfiConverterFloat64.write(value.clockRight, into);+ FfiConverterTypeAppLogicalRect.write(value.menu, into);+ FfiConverterFloat64.write(value.radius, into);+ FfiConverterSequenceTypeAppMenuPreviewRow.write(value.rows, into);+ FfiConverterFloat64.write(value.inset, into);+ FfiConverterFloat64.write(value.fontSize, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.open) +- FfiConverterBool.allocationSize(value.hovering) +- FfiConverterBool.allocationSize(value.dropTargeted) +- FfiConverterTypeAppDragOverlayState.allocationSize(value.drag) +- FfiConverterBool.allocationSize(value.dragPermissionMissing) +- FfiConverterString.allocationSize(value.query) +- FfiConverterBool.allocationSize(value.hotspot) +- FfiConverterOptionalTypeAppNotchTransfer.allocationSize(value.transfer) +- FfiConverterOptionalString.allocationSize(value.keyvault) +- FfiConverterSequenceString.allocationSize(value.signedIn) +- FfiConverterBool.allocationSize(value.hidden);+ return FfiConverterTypeAppLogicalRect.allocationSize(value.icon) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.highlight) ++ FfiConverterString.allocationSize(value.clock) ++ FfiConverterFloat64.allocationSize(value.clockRight) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.menu) ++ FfiConverterFloat64.allocationSize(value.radius) ++ FfiConverterSequenceTypeAppMenuPreviewRow.allocationSize(value.rows) ++ FfiConverterFloat64.allocationSize(value.inset) ++ FfiConverterFloat64.allocationSize(value.fontSize);}};return new FFIConverter();})();--// Enum: AppNotchEffect-export enum AppNotchEffect_Tags {- StartDwell = "StartDwell",- StartClose = "StartClose",- CancelTimers = "CancelTimers",- Drag = "Drag"-}-export const AppNotchEffect = (() => {-- type StartDwell__interface = {- tag: AppNotchEffect_Tags.StartDwell;- inner:-Readonly<{ms: number}>- };+export enum AppOnboardingMode {/**- * Start (or restart) the dwell timer.+ * Access other machines (nothing installed).*/- class StartDwell_ extends UniffiEnum implements StartDwell__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppNotchEffect";- readonly tag = AppNotchEffect_Tags.StartDwell;- readonly inner:-Readonly<{ms: number}>;- constructor(-inner: {ms: number }) {- super("AppNotchEffect", "StartDwell");+ Client = "client",+ /**+ * Set this machine up for unattended access.+ */+ Host = "host"+}- this.inner = Object.freeze(inner);+const FfiConverterTypeAppOnboardingMode = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppOnboardingMode;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppOnboardingMode.Client;+ case 2: return AppOnboardingMode.Host;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- static new(-inner: {ms: number }): StartDwell_ {- return new StartDwell_(inner);+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppOnboardingMode.Client: return ordinalConverter.write(1, into);+ case AppOnboardingMode.Host: return ordinalConverter.write(2, into);+ }}-- static instanceOf(obj: any): obj is StartDwell_ {- return obj.tag === AppNotchEffect_Tags.StartDwell;+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);}-}+ return new FFIConverter();+})();- type StartClose__interface = {- tag: AppNotchEffect_Tags.StartClose;- inner:-Readonly<{ms: number}>- };+export type AppModeChoice = {/**- * Start the close timer.+ * What it means.*/- class StartClose_ extends UniffiEnum implements StartClose__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppNotchEffect";- readonly tag = AppNotchEffect_Tags.StartClose;- readonly inner:-Readonly<{ms: number}>;- constructor(-inner: {ms: number }) {- super("AppNotchEffect", "StartClose");+ mode: AppOnboardingMode,+ /**+ * Label.+ */+ label: string,+ /**+ * Highlighted (the installer's preselection, else the first).+ */+ preselected: boolean+}- this.inner = Object.freeze(inner);+/**+ * Generated factory for {@link AppModeChoice} record objects.+ */+export const AppModeChoice = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppModeChoice, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppModeChoice>,+ });+})();++const FfiConverterTypeAppModeChoice = (() => {+ type TypeName = AppModeChoice;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ mode: FfiConverterTypeAppOnboardingMode.read(from),+ label: FfiConverterString.read(from),+ preselected: FfiConverterBool.read(from)+ };}- static new(-inner: {ms: number }): StartClose_ {- return new StartClose_(inner);+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeAppOnboardingMode.write(value.mode, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.preselected, into);}+ allocationSize(value: TypeName): number {+ return FfiConverterTypeAppOnboardingMode.allocationSize(value.mode) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.preselected);- static instanceOf(obj: any): obj is StartClose_ {- return obj.tag === AppNotchEffect_Tags.StartClose;}-- }-- type CancelTimers__interface = {- tag: AppNotchEffect_Tags.CancelTimers};+ return new FFIConverter();+})();++export type AppNewSpaceOn = {/**- * Cancel pending timers.+ * The button's label.*/- class CancelTimers_ extends UniffiEnum implements CancelTimers__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppNotchEffect";- readonly tag = AppNotchEffect_Tags.CancelTimers;- constructor() {- super("AppNotchEffect", "CancelTimers");- }-- static new(): CancelTimers_ {- return new CancelTimers_();- }-- static instanceOf(obj: any): obj is CancelTimers_ {- return obj.tag === AppNotchEffect_Tags.CancelTimers;- }-- }-- type Drag__interface = {- tag: AppNotchEffect_Tags.Drag;- inner:-Readonly<{effect: AppDragOverlayEffect}>- };+ label: string,/**- * A window drag effect (capture the ghost, commit the teleport).+ * The "Run on" entry it picks (`host:<machine id>`; the wizard's+ * `ChoosePlacement`).*/- class Drag_ extends UniffiEnum implements Drag__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppNotchEffect";- readonly tag = AppNotchEffect_Tags.Drag;- readonly inner:-Readonly<{effect: AppDragOverlayEffect}>;- constructor(-inner: {effect: AppDragOverlayEffect }) {- super("AppNotchEffect", "Drag");-- this.inner = Object.freeze(inner);- }- static new(-inner: {effect: AppDragOverlayEffect }): Drag_ {- return new Drag_(inner);- }-- static instanceOf(obj: any): obj is Drag_ {- return obj.tag === AppNotchEffect_Tags.Drag;- }-- }-- function instanceOf(obj: any): obj is AppNotchEffect {- return obj[uniffiTypeNameSymbol] === "AppNotchEffect";- }+ on: string+}+/**+ * Generated factory for {@link AppNewSpaceOn} record objects.+ */+export const AppNewSpaceOn = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppNewSpaceOn, ReturnType<typeof defaults>>(defaults);+ })();return Object.freeze({- instanceOf,- StartDwell: StartDwell_,- StartClose: StartClose_,- CancelTimers: CancelTimers_,- Drag: Drag_+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppNewSpaceOn>,});-})();-export type AppNotchEffect = InstanceType<- typeof AppNotchEffect['StartDwell' | 'StartClose' | 'CancelTimers' | 'Drag']->;-// FfiConverter for enum AppNotchEffect-const FfiConverterTypeAppNotchEffect = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppNotchEffect;+const FfiConverterTypeAppNewSpaceOn = (() => {+ type TypeName = AppNewSpaceOn;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppNotchEffect.StartDwell({ms: FfiConverterUInt32.read(from) });- case 2: return new AppNotchEffect.StartClose({ms: FfiConverterUInt32.read(from) });- case 3: return new AppNotchEffect.CancelTimers();- case 4: return new AppNotchEffect.Drag({effect: FfiConverterTypeAppDragOverlayEffect.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ label: FfiConverterString.read(from),+ on: FfiConverterString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppNotchEffect_Tags.StartDwell: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterUInt32.write(inner.ms, into);- return;- }- case AppNotchEffect_Tags.StartClose: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterUInt32.write(inner.ms, into);- return;- }- case AppNotchEffect_Tags.CancelTimers: {- ordinalConverter.write(3, into);- return;- }- case AppNotchEffect_Tags.Drag: {- ordinalConverter.write(4, into);- const inner = value.inner;- FfiConverterTypeAppDragOverlayEffect.write(inner.effect, into);- return;- }- default:- // Throwing from here means that AppNotchEffect_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.on, into);}allocationSize(value: TypeName): number {- switch (value.tag) {- case AppNotchEffect_Tags.StartDwell: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterUInt32.allocationSize(inner.ms);- return size;- }- case AppNotchEffect_Tags.StartClose: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterUInt32.allocationSize(inner.ms);- return size;- }- case AppNotchEffect_Tags.CancelTimers: {- return ordinalConverter.allocationSize(3);- }- case AppNotchEffect_Tags.Drag: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(4);- size += FfiConverterTypeAppDragOverlayEffect.allocationSize(inner.effect);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.on);+}- }+ };return new FFIConverter();})();-export type AppNotchTransition = {+export type AppNotchAccess = {/**- * New state.+ * "Keyvault sign-ins live in dev-1" (opens the Access page).*/- state: AppNotchState,+ text: string,/**- * Effects to run.+ * "Dismiss".*/- effects: Array<AppNotchEffect>+ dismiss: string}/**- * Generated factory for {@link AppNotchTransition} record objects.+ * Generated factory for {@link AppNotchAccess} record objects.*/-export const AppNotchTransition = (() => {+export const AppNotchAccess = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotchTransition, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchAccess, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotchTransition>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchAccess>,});})();-const FfiConverterTypeAppNotchTransition = (() => {- type TypeName = AppNotchTransition;+const FfiConverterTypeAppNotchAccess = (() => {+ type TypeName = AppNotchAccess;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- state: FfiConverterTypeAppNotchState.read(from),- effects: FfiConverterSequenceTypeAppNotchEffect.read(from)+ text: FfiConverterString.read(from),+ dismiss: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppNotchState.write(value.state, into);- FfiConverterSequenceTypeAppNotchEffect.write(value.effects, into);+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.dismiss, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppNotchState.allocationSize(value.state) +- FfiConverterSequenceTypeAppNotchEffect.allocationSize(value.effects);+ return FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.dismiss);}};return new FFIConverter();})();-export enum AppNoticeKind {+export enum AppNotchActivityKind {/**- * Switched Spaces.+ * A teleport or file transfer: a progress ring.*/- Switch = "switch",+ Transfer = "transfer",/**- * Created (or creating) Spaces.+ * Someone is connected to this machine (host sharing): its symbol,+ * pulsing, for as long as they are.*/- Create = "create"+ RemoteAccess = "remoteAccess",+ /**+ * The network hotspot: its symbol, pulsing.+ */+ Hotspot = "hotspot",+ /**+ * A Space starting: a progress ring on the startup estimate.+ */+ Provisioning = "provisioning",+ /**+ * A Space being deleted: a ring on the delete estimate.+ */+ Deleting = "deleting",+ /**+ * Keyvault sign-ins live in a Space: the key symbol, pulsing.+ */+ Keyvault = "keyvault"}-const FfiConverterTypeAppNoticeKind = (() => {+const FfiConverterTypeAppNotchActivityKind = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppNoticeKind;+ type TypeName = AppNotchActivityKind;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppNoticeKind.Switch;- case 2: return AppNoticeKind.Create;+ case 1: return AppNotchActivityKind.Transfer;+ case 2: return AppNotchActivityKind.RemoteAccess;+ case 3: return AppNotchActivityKind.Hotspot;+ case 4: return AppNotchActivityKind.Provisioning;+ case 5: return AppNotchActivityKind.Deleting;+ case 6: return AppNotchActivityKind.Keyvault;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppNoticeKind.Switch: return ordinalConverter.write(1, into);- case AppNoticeKind.Create: return ordinalConverter.write(2, into);+ case AppNotchActivityKind.Transfer: return ordinalConverter.write(1, into);+ case AppNotchActivityKind.RemoteAccess: return ordinalConverter.write(2, into);+ case AppNotchActivityKind.Hotspot: return ordinalConverter.write(3, into);+ case AppNotchActivityKind.Provisioning: return ordinalConverter.write(4, into);+ case AppNotchActivityKind.Deleting: return ordinalConverter.write(5, into);+ case AppNotchActivityKind.Keyvault: return ordinalConverter.write(6, into);}}allocationSize(value: TypeName): number {@@ -24843,653 +24558,642 @@ const FfiConverterTypeAppNoticeKind = (() => {return new FFIConverter();})();-export type AppNotice = {+export type AppNotchActivity = {/**- * Sequence id (clear by id).+ * Which.*/- id: number,+ kind: AppNotchActivityKind,/**- * Kind.+ * Spoken label and tooltip.*/- kind: AppNoticeKind,+ label: string,/**- * Text.+ * The symbol to draw (the hotspot), else a ring.*/- text: string+ symbol?: string,+ /**+ * Real progress in thousandths (a transfer with a known total).+ */+ permille?: number,+ /**+ * Epoch ms the ring's estimate runs from (the earliest starting+ * Space); none means from when the ring appears.+ */+ startedAt?: bigint,+ /**+ * The estimate reaches about 80% after this long ([`estimated_progress`]).+ */+ estimateMs: number}/**- * Generated factory for {@link AppNotice} record objects.+ * Generated factory for {@link AppNotchActivity} record objects.*/-export const AppNotice = (() => {+export const AppNotchActivity = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotice, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchActivity, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotice>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchActivity>,});})();-const FfiConverterTypeAppNotice = (() => {- type TypeName = AppNotice;+const FfiConverterTypeAppNotchActivity = (() => {+ type TypeName = AppNotchActivity;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterUInt32.read(from),- kind: FfiConverterTypeAppNoticeKind.read(from),- text: FfiConverterString.read(from)+ kind: FfiConverterTypeAppNotchActivityKind.read(from),+ label: FfiConverterString.read(from),+ symbol: FfiConverterOptionalString.read(from),+ permille: FfiConverterOptionalUInt32.read(from),+ startedAt: FfiConverterOptionalInt64.read(from),+ estimateMs: FfiConverterUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.id, into);- FfiConverterTypeAppNoticeKind.write(value.kind, into);- FfiConverterString.write(value.text, into);+ FfiConverterTypeAppNotchActivityKind.write(value.kind, into);+ FfiConverterString.write(value.label, into);+ FfiConverterOptionalString.write(value.symbol, into);+ FfiConverterOptionalUInt32.write(value.permille, into);+ FfiConverterOptionalInt64.write(value.startedAt, into);+ FfiConverterUInt32.write(value.estimateMs, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.id) +- FfiConverterTypeAppNoticeKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.text);+ return FfiConverterTypeAppNotchActivityKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterOptionalString.allocationSize(value.symbol) ++ FfiConverterOptionalUInt32.allocationSize(value.permille) ++ FfiConverterOptionalInt64.allocationSize(value.startedAt) ++ FfiConverterUInt32.allocationSize(value.estimateMs);}};return new FFIConverter();})();-export type AppNotificationInput = {- id: string,- atMs: bigint,- agent?: string,+export enum AppNotchButtonId {/**- * `turn_ended`, `message`, `approval`, `error`.+ * Opens the main window (the Spaces list).*/- kind: string,- title: string,- body: string,- read: boolean+ List = "list",+ /**+ * Opens Settings.+ */+ Settings = "settings"}-/**- * Generated factory for {@link AppNotificationInput} record objects.- */-export const AppNotificationInput = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppNotificationInput, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotificationInput>,- });-})();--const FfiConverterTypeAppNotificationInput = (() => {- type TypeName = AppNotificationInput;+const FfiConverterTypeAppNotchButtonId = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppNotchButtonId;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- id: FfiConverterString.read(from),- atMs: FfiConverterUInt64.read(from),- agent: FfiConverterOptionalString.read(from),- kind: FfiConverterString.read(from),- title: FfiConverterString.read(from),- body: FfiConverterString.read(from),- read: FfiConverterBool.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppNotchButtonId.List;+ case 2: return AppNotchButtonId.Settings;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterUInt64.write(value.atMs, into);- FfiConverterOptionalString.write(value.agent, into);- FfiConverterString.write(value.kind, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.body, into);- FfiConverterBool.write(value.read, into);+ switch (value) {+ case AppNotchButtonId.List: return ordinalConverter.write(1, into);+ case AppNotchButtonId.Settings: return ordinalConverter.write(2, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterUInt64.allocationSize(value.atMs) +- FfiConverterOptionalString.allocationSize(value.agent) +- FfiConverterString.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.body) +- FfiConverterBool.allocationSize(value.read);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppSystemNote = {- id: string,- title: string,- body: string+export type AppNotchButton = {+ /**+ * What it does.+ */+ id: AppNotchButtonId,+ /**+ * SF Symbol.+ */+ symbol: string,+ /**+ * Accessibility label.+ */+ label: string,+ /**+ * Tooltip.+ */+ help: string}/**- * Generated factory for {@link AppSystemNote} record objects.+ * Generated factory for {@link AppNotchButton} record objects.*/-export const AppSystemNote = (() => {+export const AppNotchButton = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSystemNote, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchButton, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSystemNote>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchButton>,});})();-const FfiConverterTypeAppSystemNote = (() => {- type TypeName = AppSystemNote;+const FfiConverterTypeAppNotchButton = (() => {+ type TypeName = AppNotchButton;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- body: FfiConverterString.read(from)+ id: FfiConverterTypeAppNotchButtonId.read(from),+ symbol: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ help: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.body, into);+ FfiConverterTypeAppNotchButtonId.write(value.id, into);+ FfiConverterString.write(value.symbol, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.help, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.body);+ return FfiConverterTypeAppNotchButtonId.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.symbol) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.help);}};return new FFIConverter();})();-export type AppNotificationsPlan = {- post: Array<AppSystemNote>,+export type AppNotchHeader = {/**- * The new `notifications_seen_ms` (unchanged when nothing is newer).+ * The search text.*/- seenMs: bigint+ query: string,+ /**+ * "Search".+ */+ placeholder: string,+ /**+ * The field's spoken label.+ */+ searchLabel: string,+ /**+ * How many Spaces match, while searching.+ */+ matchCount?: number,+ /**+ * Left to right: the list, then Settings at the far right.+ */+ buttons: Array<AppNotchButton>}/**- * Generated factory for {@link AppNotificationsPlan} record objects.+ * Generated factory for {@link AppNotchHeader} record objects.*/-export const AppNotificationsPlan = (() => {+export const AppNotchHeader = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotificationsPlan, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchHeader, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotificationsPlan>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchHeader>,});})();-const FfiConverterTypeAppNotificationsPlan = (() => {- type TypeName = AppNotificationsPlan;+const FfiConverterTypeAppNotchHeader = (() => {+ type TypeName = AppNotchHeader;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- post: FfiConverterSequenceTypeAppSystemNote.read(from),- seenMs: FfiConverterUInt64.read(from)+ query: FfiConverterString.read(from),+ placeholder: FfiConverterString.read(from),+ searchLabel: FfiConverterString.read(from),+ matchCount: FfiConverterOptionalUInt32.read(from),+ buttons: FfiConverterSequenceTypeAppNotchButton.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppSystemNote.write(value.post, into);- FfiConverterUInt64.write(value.seenMs, into);+ FfiConverterString.write(value.query, into);+ FfiConverterString.write(value.placeholder, into);+ FfiConverterString.write(value.searchLabel, into);+ FfiConverterOptionalUInt32.write(value.matchCount, into);+ FfiConverterSequenceTypeAppNotchButton.write(value.buttons, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppSystemNote.allocationSize(value.post) +- FfiConverterUInt64.allocationSize(value.seenMs);+ return FfiConverterString.allocationSize(value.query) ++ FfiConverterString.allocationSize(value.placeholder) ++ FfiConverterString.allocationSize(value.searchLabel) ++ FfiConverterOptionalUInt32.allocationSize(value.matchCount) ++ FfiConverterSequenceTypeAppNotchButton.allocationSize(value.buttons);}};return new FFIConverter();})();-export type AppNotificationsView = {- title: string,+export type AppNotchLayout = {/**- * One line each: `title: body`, the time on the right; `on` is unread.+ * A real camera housing.*/- rows: Array<AppLineView>,- emptyText: string,- unread: number,- markAllLabel?: string+ hasNotch: boolean,+ /**+ * The notch (or the virtual one), AppKit coordinates.+ */+ notch: AppLogicalRect,+ /**+ * The closed panel's hit area: the notch grown for hover and drags.+ */+ closedFrame: AppLogicalRect,+ /**+ * The open panel frame (tiles and prompt), top-centred.+ */+ openFrame: AppLogicalRect,+ /**+ * The "Teleport to Cua" box alone, hanging below the notch.+ */+ promptFrame: AppLogicalRect,+ /**+ * The "N Spaces" tab beside the closed notch (right of it), at its+ * widest.+ */+ tabFrame: AppLogicalRect,+ /**+ * Space between a closed tab's content (the "N Spaces" rows, the+ * activity ring on the left) and the tab's edge toward the notch.+ */+ tabInsetNotch: number,+ /**+ * Space between a closed tab's content and its outer edge (before the+ * outer ear).+ */+ tabInsetOuter: number,+ /**+ * The overlay window: every frame above plus [`SHADOW_PADDING`], so+ * the shape animates inside one window that never resizes mid-spring.+ * Its transparent pixels pass clicks through.+ */+ stageFrame: AppLogicalRect,+ /**+ * Draw the black notch shape (true) or a floating glass capsule.+ */+ notchStyle: boolean}/**- * Generated factory for {@link AppNotificationsView} record objects.+ * Generated factory for {@link AppNotchLayout} record objects.*/-export const AppNotificationsView = (() => {+export const AppNotchLayout = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppNotificationsView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchLayout, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppNotificationsView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchLayout>,});})();-const FfiConverterTypeAppNotificationsView = (() => {- type TypeName = AppNotificationsView;+const FfiConverterTypeAppNotchLayout = (() => {+ type TypeName = AppNotchLayout;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- rows: FfiConverterSequenceTypeAppLineView.read(from),- emptyText: FfiConverterString.read(from),- unread: FfiConverterUInt32.read(from),- markAllLabel: FfiConverterOptionalString.read(from)+ hasNotch: FfiConverterBool.read(from),+ notch: FfiConverterTypeAppLogicalRect.read(from),+ closedFrame: FfiConverterTypeAppLogicalRect.read(from),+ openFrame: FfiConverterTypeAppLogicalRect.read(from),+ promptFrame: FfiConverterTypeAppLogicalRect.read(from),+ tabFrame: FfiConverterTypeAppLogicalRect.read(from),+ tabInsetNotch: FfiConverterFloat64.read(from),+ tabInsetOuter: FfiConverterFloat64.read(from),+ stageFrame: FfiConverterTypeAppLogicalRect.read(from),+ notchStyle: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppLineView.write(value.rows, into);- FfiConverterString.write(value.emptyText, into);- FfiConverterUInt32.write(value.unread, into);- FfiConverterOptionalString.write(value.markAllLabel, into);+ FfiConverterBool.write(value.hasNotch, into);+ FfiConverterTypeAppLogicalRect.write(value.notch, into);+ FfiConverterTypeAppLogicalRect.write(value.closedFrame, into);+ FfiConverterTypeAppLogicalRect.write(value.openFrame, into);+ FfiConverterTypeAppLogicalRect.write(value.promptFrame, into);+ FfiConverterTypeAppLogicalRect.write(value.tabFrame, into);+ FfiConverterFloat64.write(value.tabInsetNotch, into);+ FfiConverterFloat64.write(value.tabInsetOuter, into);+ FfiConverterTypeAppLogicalRect.write(value.stageFrame, into);+ FfiConverterBool.write(value.notchStyle, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppLineView.allocationSize(value.rows) +- FfiConverterString.allocationSize(value.emptyText) +- FfiConverterUInt32.allocationSize(value.unread) +- FfiConverterOptionalString.allocationSize(value.markAllLabel);+ return FfiConverterBool.allocationSize(value.hasNotch) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.notch) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.closedFrame) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.openFrame) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.promptFrame) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.tabFrame) ++ FfiConverterFloat64.allocationSize(value.tabInsetNotch) ++ FfiConverterFloat64.allocationSize(value.tabInsetOuter) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.stageFrame) ++ FfiConverterBool.allocationSize(value.notchStyle);}};return new FFIConverter();})();-export type AppOnboardingCheckbox = {+export type AppNotchMotion = {/**- * "Launch at login".+ * Hover dwell before the panel opens.*/- label: string,+ hoverDwellMs: number,/**- * Ticked.+ * Delay before closing after the pointer leaves.*/- checked: boolean,+ closeDelayMs: number,/**- * The line under it.+ * Opening spring response (s).*/- note: string+ openResponse: number,+ /**+ * Opening spring damping fraction.+ */+ openDamping: number,+ /**+ * Closing spring response (s).+ */+ closeResponse: number,+ /**+ * Closing spring damping fraction.+ */+ closeDamping: number,+ /**+ * Reduce Motion: opacity-only duration (s).+ */+ reducedDuration: number,+ /**+ * Hover acknowledgement spring response (s): the closed notch grows a+ * little while the dwell runs.+ */+ hoverResponse: number,+ /**+ * Hover acknowledgement damping fraction.+ */+ hoverDamping: number,+ /**+ * Horizontal scale of the closed notch (and its tab) under the pointer.+ */+ hoverScale: number,+ /**+ * Vertical scale of the closed notch under the pointer (a few points+ * taller, anchored at the top).+ */+ hoverScaleY: number,+ /**+ * The content starts fading in this long after the shape starts+ * opening (ms).+ */+ contentDelayMs: number,+ /**+ * Content fade-in duration (s).+ */+ contentIn: number,+ /**+ * Content fade-out duration on close (s); the shape waits for it.+ */+ contentOut: number,+ /**+ * Content scale at the start of its fade-in (anchored at the top).+ */+ contentScale: number}/**- * Generated factory for {@link AppOnboardingCheckbox} record objects.+ * Generated factory for {@link AppNotchMotion} record objects.*/-export const AppOnboardingCheckbox = (() => {+export const AppNotchMotion = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppOnboardingCheckbox, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchMotion, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingCheckbox>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchMotion>,});})();-const FfiConverterTypeAppOnboardingCheckbox = (() => {- type TypeName = AppOnboardingCheckbox;+const FfiConverterTypeAppNotchMotion = (() => {+ type TypeName = AppNotchMotion;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- label: FfiConverterString.read(from),- checked: FfiConverterBool.read(from),- note: FfiConverterString.read(from)+ hoverDwellMs: FfiConverterUInt32.read(from),+ closeDelayMs: FfiConverterUInt32.read(from),+ openResponse: FfiConverterFloat64.read(from),+ openDamping: FfiConverterFloat64.read(from),+ closeResponse: FfiConverterFloat64.read(from),+ closeDamping: FfiConverterFloat64.read(from),+ reducedDuration: FfiConverterFloat64.read(from),+ hoverResponse: FfiConverterFloat64.read(from),+ hoverDamping: FfiConverterFloat64.read(from),+ hoverScale: FfiConverterFloat64.read(from),+ hoverScaleY: FfiConverterFloat64.read(from),+ contentDelayMs: FfiConverterUInt32.read(from),+ contentIn: FfiConverterFloat64.read(from),+ contentOut: FfiConverterFloat64.read(from),+ contentScale: FfiConverterFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.checked, into);- FfiConverterString.write(value.note, into);+ FfiConverterUInt32.write(value.hoverDwellMs, into);+ FfiConverterUInt32.write(value.closeDelayMs, into);+ FfiConverterFloat64.write(value.openResponse, into);+ FfiConverterFloat64.write(value.openDamping, into);+ FfiConverterFloat64.write(value.closeResponse, into);+ FfiConverterFloat64.write(value.closeDamping, into);+ FfiConverterFloat64.write(value.reducedDuration, into);+ FfiConverterFloat64.write(value.hoverResponse, into);+ FfiConverterFloat64.write(value.hoverDamping, into);+ FfiConverterFloat64.write(value.hoverScale, into);+ FfiConverterFloat64.write(value.hoverScaleY, into);+ FfiConverterUInt32.write(value.contentDelayMs, into);+ FfiConverterFloat64.write(value.contentIn, into);+ FfiConverterFloat64.write(value.contentOut, into);+ FfiConverterFloat64.write(value.contentScale, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.checked) +- FfiConverterString.allocationSize(value.note);+ return FfiConverterUInt32.allocationSize(value.hoverDwellMs) ++ FfiConverterUInt32.allocationSize(value.closeDelayMs) ++ FfiConverterFloat64.allocationSize(value.openResponse) ++ FfiConverterFloat64.allocationSize(value.openDamping) ++ FfiConverterFloat64.allocationSize(value.closeResponse) ++ FfiConverterFloat64.allocationSize(value.closeDamping) ++ FfiConverterFloat64.allocationSize(value.reducedDuration) ++ FfiConverterFloat64.allocationSize(value.hoverResponse) ++ FfiConverterFloat64.allocationSize(value.hoverDamping) ++ FfiConverterFloat64.allocationSize(value.hoverScale) ++ FfiConverterFloat64.allocationSize(value.hoverScaleY) ++ FfiConverterUInt32.allocationSize(value.contentDelayMs) ++ FfiConverterFloat64.allocationSize(value.contentIn) ++ FfiConverterFloat64.allocationSize(value.contentOut) ++ FfiConverterFloat64.allocationSize(value.contentScale);}};return new FFIConverter();})();-export type AppOnboardingCopy = {- /**- * "Back".- */- back: string,- /**- * "Skip".- */- skip: string,- /**- * "Continue".- */- continueLabel: string,- /**- * "Try again".- */- tryAgain: string,- /**- * "Checking…" (the install plan loads).- */- checking: string,- /**- * The install script when the app bundles no `cua`.- */- installScript: string,- /**- * "Install".- */- install: string,- /**- * "Installing…".- */- installing: string,- /**- * The PATH switch.- */- addToPath: string,- /**- * When another `cua` comes first on PATH.- */- shadowed: string,- /**- * "Sign in".- */- signIn: string,- /**- * While the browser is open.- */- signInWaiting: string,- /**- * While agents are detected.- */- agentsLooking: string,- /**- * No agent found.- */- agentsNone: string,- /**- * The skills switch.- */- agentsSkills: string,- /**- * The MCP switch.- */- agentsMcp: string,- /**- * "Set up".- */- agentsSetUp: string,- /**- * "Setting up…".- */- agentsSettingUp: string,- /**- * After setup: heading.- */- agentsDoneTitle: string,- /**- * After setup: one line.- */- agentsDoneLede: string,- /**- * The background computer-use card's one line (its checkbox).- */- agentsDriver: string,- /**- * The card's miniature, for accessibility.- */- agentsDriverImage: string,- /**- * Over the permission rows (Done, after host setup).- */- permissionsTitle: string,- /**- * The permission rows' button.- */- openSettings: string,+export type AppNotchPermission = {/**- * The Sign in page's Teams line ("Teams · coming soon").+ * The line.*/- teams: string,+ text: string,/**- * Its link ("Join the waitlist").+ * The button.*/- teamsLink: string,+ action: string,/**- * The link's URL: the website's Teams waitlist (the app collects- * nothing).+ * Which settings pane the button opens (`accessibility`).*/- teamsUrl: string+ pane: string}/**- * Generated factory for {@link AppOnboardingCopy} record objects.+ * Generated factory for {@link AppNotchPermission} record objects.*/-export const AppOnboardingCopy = (() => {+export const AppNotchPermission = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppOnboardingCopy, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchPermission, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingCopy>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchPermission>,});})();-const FfiConverterTypeAppOnboardingCopy = (() => {- type TypeName = AppOnboardingCopy;+const FfiConverterTypeAppNotchPermission = (() => {+ type TypeName = AppNotchPermission;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- back: FfiConverterString.read(from),- skip: FfiConverterString.read(from),- continueLabel: FfiConverterString.read(from),- tryAgain: FfiConverterString.read(from),- checking: FfiConverterString.read(from),- installScript: FfiConverterString.read(from),- install: FfiConverterString.read(from),- installing: FfiConverterString.read(from),- addToPath: FfiConverterString.read(from),- shadowed: FfiConverterString.read(from),- signIn: FfiConverterString.read(from),- signInWaiting: FfiConverterString.read(from),- agentsLooking: FfiConverterString.read(from),- agentsNone: FfiConverterString.read(from),- agentsSkills: FfiConverterString.read(from),- agentsMcp: FfiConverterString.read(from),- agentsSetUp: FfiConverterString.read(from),- agentsSettingUp: FfiConverterString.read(from),- agentsDoneTitle: FfiConverterString.read(from),- agentsDoneLede: FfiConverterString.read(from),- agentsDriver: FfiConverterString.read(from),- agentsDriverImage: FfiConverterString.read(from),- permissionsTitle: FfiConverterString.read(from),- openSettings: FfiConverterString.read(from),- teams: FfiConverterString.read(from),- teamsLink: FfiConverterString.read(from),- teamsUrl: FfiConverterString.read(from)+ text: FfiConverterString.read(from),+ action: FfiConverterString.read(from),+ pane: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.back, into);- FfiConverterString.write(value.skip, into);- FfiConverterString.write(value.continueLabel, into);- FfiConverterString.write(value.tryAgain, into);- FfiConverterString.write(value.checking, into);- FfiConverterString.write(value.installScript, into);- FfiConverterString.write(value.install, into);- FfiConverterString.write(value.installing, into);- FfiConverterString.write(value.addToPath, into);- FfiConverterString.write(value.shadowed, into);- FfiConverterString.write(value.signIn, into);- FfiConverterString.write(value.signInWaiting, into);- FfiConverterString.write(value.agentsLooking, into);- FfiConverterString.write(value.agentsNone, into);- FfiConverterString.write(value.agentsSkills, into);- FfiConverterString.write(value.agentsMcp, into);- FfiConverterString.write(value.agentsSetUp, into);- FfiConverterString.write(value.agentsSettingUp, into);- FfiConverterString.write(value.agentsDoneTitle, into);- FfiConverterString.write(value.agentsDoneLede, into);- FfiConverterString.write(value.agentsDriver, into);- FfiConverterString.write(value.agentsDriverImage, into);- FfiConverterString.write(value.permissionsTitle, into);- FfiConverterString.write(value.openSettings, into);- FfiConverterString.write(value.teams, into);- FfiConverterString.write(value.teamsLink, into);- FfiConverterString.write(value.teamsUrl, into);+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.action, into);+ FfiConverterString.write(value.pane, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.back) +- FfiConverterString.allocationSize(value.skip) +- FfiConverterString.allocationSize(value.continueLabel) +- FfiConverterString.allocationSize(value.tryAgain) +- FfiConverterString.allocationSize(value.checking) +- FfiConverterString.allocationSize(value.installScript) +- FfiConverterString.allocationSize(value.install) +- FfiConverterString.allocationSize(value.installing) +- FfiConverterString.allocationSize(value.addToPath) +- FfiConverterString.allocationSize(value.shadowed) +- FfiConverterString.allocationSize(value.signIn) +- FfiConverterString.allocationSize(value.signInWaiting) +- FfiConverterString.allocationSize(value.agentsLooking) +- FfiConverterString.allocationSize(value.agentsNone) +- FfiConverterString.allocationSize(value.agentsSkills) +- FfiConverterString.allocationSize(value.agentsMcp) +- FfiConverterString.allocationSize(value.agentsSetUp) +- FfiConverterString.allocationSize(value.agentsSettingUp) +- FfiConverterString.allocationSize(value.agentsDoneTitle) +- FfiConverterString.allocationSize(value.agentsDoneLede) +- FfiConverterString.allocationSize(value.agentsDriver) +- FfiConverterString.allocationSize(value.agentsDriverImage) +- FfiConverterString.allocationSize(value.permissionsTitle) +- FfiConverterString.allocationSize(value.openSettings) +- FfiConverterString.allocationSize(value.teams) +- FfiConverterString.allocationSize(value.teamsLink) +- FfiConverterString.allocationSize(value.teamsUrl);+ return FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.action) ++ FfiConverterString.allocationSize(value.pane);}};return new FFIConverter();})();-export enum AppOnboardingStep {- /**- * Welcome.- */- Welcome = "welcome",- /**- * Sign in to Cua.- */- Signin = "signin",- /**- * Coding agents: cua skills and the cua MCP server.- */- Agents = "agents",- /**- * Where Cua Spaces shows up: the notch and the menu bar, or the menu- * bar only (the "Spaces tab in the notch" setting).- */- Presentation = "presentation",- /**- * The Cua Volume as a Finder volume (a mount on Linux), off unless- * ticked. Skipped where it cannot mount (Windows).- */- Drive = "drive",+export type AppNotchRadii = {/**- * Access other machines, or set this one up for unattended access.+ * Top (concave ear) radius.*/- Mode = "mode",+ top: number,/**- * Done.+ * Bottom radius.*/- Done = "done"+ bottom: number}-const FfiConverterTypeAppOnboardingStep = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppOnboardingStep;+/**+ * Generated factory for {@link AppNotchRadii} record objects.+ */+export const AppNotchRadii = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppNotchRadii, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchRadii>,+ });+})();++const FfiConverterTypeAppNotchRadii = (() => {+ type TypeName = AppNotchRadii;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppOnboardingStep.Welcome;- case 2: return AppOnboardingStep.Signin;- case 3: return AppOnboardingStep.Agents;- case 4: return AppOnboardingStep.Presentation;- case 5: return AppOnboardingStep.Drive;- case 6: return AppOnboardingStep.Mode;- case 7: return AppOnboardingStep.Done;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ top: FfiConverterFloat64.read(from),+ bottom: FfiConverterFloat64.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppOnboardingStep.Welcome: return ordinalConverter.write(1, into);- case AppOnboardingStep.Signin: return ordinalConverter.write(2, into);- case AppOnboardingStep.Agents: return ordinalConverter.write(3, into);- case AppOnboardingStep.Presentation: return ordinalConverter.write(4, into);- case AppOnboardingStep.Drive: return ordinalConverter.write(5, into);- case AppOnboardingStep.Mode: return ordinalConverter.write(6, into);- case AppOnboardingStep.Done: return ordinalConverter.write(7, into);- }+ FfiConverterFloat64.write(value.top, into);+ FfiConverterFloat64.write(value.bottom, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterFloat64.allocationSize(value.top) ++ FfiConverterFloat64.allocationSize(value.bottom);+}- }+ };return new FFIConverter();})();-export enum AppDriveStepRequest {+export enum AppNotchPhase {/**- * `volume_mount`; answer with `drive-mounted`.+ * Just the notch.*/- Mount = "mount",+ Closed = "closed",/**- * `volume_unmount`; answer with `drive-mounted`.+ * The Space tiles.*/- Unmount = "unmount"+ Tiles = "tiles",+ /**+ * The Teleport prompt ("Teleport to Cua").+ */+ Prompt = "prompt"}-const FfiConverterTypeAppDriveStepRequest = (() => {+const FfiConverterTypeAppNotchPhase = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppDriveStepRequest;+ type TypeName = AppNotchPhase;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppDriveStepRequest.Mount;- case 2: return AppDriveStepRequest.Unmount;+ case 1: return AppNotchPhase.Closed;+ case 2: return AppNotchPhase.Tiles;+ case 3: return AppNotchPhase.Prompt;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppDriveStepRequest.Mount: return ordinalConverter.write(1, into);- case AppDriveStepRequest.Unmount: return ordinalConverter.write(2, into);+ case AppNotchPhase.Closed: return ordinalConverter.write(1, into);+ case AppNotchPhase.Tiles: return ordinalConverter.write(2, into);+ case AppNotchPhase.Prompt: return ordinalConverter.write(3, into);}}allocationSize(value: TypeName): number {@@ -25499,2028 +25203,1618 @@ const FfiConverterTypeAppDriveStepRequest = (() => {return new FFIConverter();})();-export enum AppStorageChoice {+export type AppNotchTile = {/**- * This machine (the `fs` backend, no setup).+ * Space id.*/- Local = "local",+ id: string,/**- * The user's own S3-compatible bucket.+ * Name.*/- S3 = "s3",+ name: string,/**- * Decide later, in Settings, Storage.+ * OS.*/- Later = "later"-}+ os: AppSpaceOs,+ /**+ * Status.+ */+ status: AppSpaceStatus,+ /**+ * Drawn at reduced opacity.+ */+ dim: boolean,+ /**+ * Accepts a teleport drop (reachable).+ */+ dropTarget: boolean,+ /**+ * Under the dragged window.+ */+ targeted: boolean,+ /**+ * The Space's OS icon id ([`os_icon`]: `os-macos`, `os-windows`,+ * `os-ubuntu`, ..., `os-linux`); the artwork is [`os_icon_svg`], or on+ * macOS the system symbol [`os_icon_system_symbol`] names.+ */+ symbol: string,+ /**+ * Accessibility label: name, OS, where it runs and status.+ */+ label: string,+ /**+ * Where it runs, in words, on the tile's header line next to the OS+ * logo: "This Mac", the machine that provides it ("Mac mini"), the+ * address of one added by address, or the cloud's place ([`location`]).+ */+ location: string,+ /**+ * While it is being created: overall progress in thousandths (a ring+ * over the tile).+ */+ progress?: number,+ /**+ * While it is being created: the phase in words ("Starting…"), or+ * "Failed"; while it is being deleted, "Deleting…".+ */+ progressLabel?: string,+ /**+ * Signed in through the Keyvault (and not dismissed): the key badge.+ */+ signedIn: boolean+}-const FfiConverterTypeAppStorageChoice = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppStorageChoice;+/**+ * Generated factory for {@link AppNotchTile} record objects.+ */+export const AppNotchTile = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppNotchTile, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchTile>,+ });+})();++const FfiConverterTypeAppNotchTile = (() => {+ type TypeName = AppNotchTile;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppStorageChoice.Local;- case 2: return AppStorageChoice.S3;- case 3: return AppStorageChoice.Later;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ id: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ os: FfiConverterTypeAppSpaceOs.read(from),+ status: FfiConverterTypeAppSpaceStatus.read(from),+ dim: FfiConverterBool.read(from),+ dropTarget: FfiConverterBool.read(from),+ targeted: FfiConverterBool.read(from),+ symbol: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ location: FfiConverterString.read(from),+ progress: FfiConverterOptionalUInt32.read(from),+ progressLabel: FfiConverterOptionalString.read(from),+ signedIn: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppStorageChoice.Local: return ordinalConverter.write(1, into);- case AppStorageChoice.S3: return ordinalConverter.write(2, into);- case AppStorageChoice.Later: return ordinalConverter.write(3, into);- }+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.name, into);+ FfiConverterTypeAppSpaceOs.write(value.os, into);+ FfiConverterTypeAppSpaceStatus.write(value.status, into);+ FfiConverterBool.write(value.dim, into);+ FfiConverterBool.write(value.dropTarget, into);+ FfiConverterBool.write(value.targeted, into);+ FfiConverterString.write(value.symbol, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.location, into);+ FfiConverterOptionalUInt32.write(value.progress, into);+ FfiConverterOptionalString.write(value.progressLabel, into);+ FfiConverterBool.write(value.signedIn, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterTypeAppSpaceOs.allocationSize(value.os) ++ FfiConverterTypeAppSpaceStatus.allocationSize(value.status) ++ FfiConverterBool.allocationSize(value.dim) ++ FfiConverterBool.allocationSize(value.dropTarget) ++ FfiConverterBool.allocationSize(value.targeted) ++ FfiConverterString.allocationSize(value.symbol) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.location) ++ FfiConverterOptionalUInt32.allocationSize(value.progress) ++ FfiConverterOptionalString.allocationSize(value.progressLabel) ++ FfiConverterBool.allocationSize(value.signedIn);+}- }+ };return new FFIConverter();})();-export type AppStorageForm = {- backend: string,- endpoint: string,- region: string,- bucket: string,- root: string,- pathStyle: boolean,- accessKeyId: string,- secretAccessKey: string+export type AppNotchTab = {+ /**+ * "9".+ */+ count: string,+ /**+ * "Spaces" (or "Space").+ */+ word: string}/**- * Generated factory for {@link AppStorageForm} record objects.+ * Generated factory for {@link AppNotchTab} record objects.*/-export const AppStorageForm = (() => {+export const AppNotchTab = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStorageForm, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchTab, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStorageForm>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchTab>,});})();-const FfiConverterTypeAppStorageForm = (() => {- type TypeName = AppStorageForm;+const FfiConverterTypeAppNotchTab = (() => {+ type TypeName = AppNotchTab;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- backend: FfiConverterString.read(from),- endpoint: FfiConverterString.read(from),- region: FfiConverterString.read(from),- bucket: FfiConverterString.read(from),- root: FfiConverterString.read(from),- pathStyle: FfiConverterBool.read(from),- accessKeyId: FfiConverterString.read(from),- secretAccessKey: FfiConverterString.read(from)+ count: FfiConverterString.read(from),+ word: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.backend, into);- FfiConverterString.write(value.endpoint, into);- FfiConverterString.write(value.region, into);- FfiConverterString.write(value.bucket, into);- FfiConverterString.write(value.root, into);- FfiConverterBool.write(value.pathStyle, into);- FfiConverterString.write(value.accessKeyId, into);- FfiConverterString.write(value.secretAccessKey, into);+ FfiConverterString.write(value.count, into);+ FfiConverterString.write(value.word, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.backend) +- FfiConverterString.allocationSize(value.endpoint) +- FfiConverterString.allocationSize(value.region) +- FfiConverterString.allocationSize(value.bucket) +- FfiConverterString.allocationSize(value.root) +- FfiConverterBool.allocationSize(value.pathStyle) +- FfiConverterString.allocationSize(value.accessKeyId) +- FfiConverterString.allocationSize(value.secretAccessKey);+ return FfiConverterString.allocationSize(value.count) ++ FfiConverterString.allocationSize(value.word);}};return new FFIConverter();})();--// Enum: AppStorageRequest-export enum AppStorageRequest_Tags {- Test = "Test",- Save = "Save",- Adopt = "Adopt",- Mount = "Mount",- Unmount = "Unmount",- Reveal = "Reveal",- OpenUrl = "OpenUrl",- SetCache = "SetCache",- ClearCache = "ClearCache"-}-export const AppStorageRequest = (() => {-- type Test__interface = {- tag: AppStorageRequest_Tags.Test;- inner:-Readonly<{update: AppDriveStorageUpdate}>- };+export type AppNotchView = {/**- * `volume_storage_set` with `dry_run`; answer with `checked`.+ * What shows.*/- class Test_ extends UniffiEnum implements Test__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.Test;- readonly inner:-Readonly<{update: AppDriveStorageUpdate}>;- constructor(-inner: {update: AppDriveStorageUpdate }) {- super("AppStorageRequest", "Test");-- this.inner = Object.freeze(inner);- }- static new(-inner: {update: AppDriveStorageUpdate }): Test_ {- return new Test_(inner);- }-- static instanceOf(obj: any): obj is Test_ {- return obj.tag === AppStorageRequest_Tags.Test;- }-- }-- type Save__interface = {- tag: AppStorageRequest_Tags.Save;- inner:-Readonly<{update: AppDriveStorageUpdate}>- };+ phase: AppNotchPhase,/**- * `volume_storage_set`; answer with `saved`.+ * The tiles (in `tiles`).*/- class Save_ extends UniffiEnum implements Save__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.Save;- readonly inner:-Readonly<{update: AppDriveStorageUpdate}>;- constructor(-inner: {update: AppDriveStorageUpdate }) {- super("AppStorageRequest", "Save");-- this.inner = Object.freeze(inner);- }- static new(-inner: {update: AppDriveStorageUpdate }): Save_ {- return new Save_(inner);- }-- static instanceOf(obj: any): obj is Save_ {- return obj.tag === AppStorageRequest_Tags.Save;- }-- }-- type Adopt__interface = {- tag: AppStorageRequest_Tags.Adopt;- inner:-Readonly<{update: AppDriveStorageUpdate}>- };+ tiles: Array<AppNotchTile>,/**- * `volume_storage_set` (keys from the credential store) for a bucket the- * user's agent configured; answer with `adopted`.+ * Tiles accept drops.*/- class Adopt_ extends UniffiEnum implements Adopt__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.Adopt;- readonly inner:-Readonly<{update: AppDriveStorageUpdate}>;- constructor(-inner: {update: AppDriveStorageUpdate }) {- super("AppStorageRequest", "Adopt");-- this.inner = Object.freeze(inner);- }- static new(-inner: {update: AppDriveStorageUpdate }): Adopt_ {- return new Adopt_(inner);- }-- static instanceOf(obj: any): obj is Adopt_ {- return obj.tag === AppStorageRequest_Tags.Adopt;- }-- }-- type Mount__interface = {- tag: AppStorageRequest_Tags.Mount- };+ dropMode: boolean,/**- * `volume_mount`.+ * The prompt line.*/- class Mount_ extends UniffiEnum implements Mount__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.Mount;- constructor() {- super("AppStorageRequest", "Mount");- }-- static new(): Mount_ {- return new Mount_();- }-- static instanceOf(obj: any): obj is Mount_ {- return obj.tag === AppStorageRequest_Tags.Mount;- }-- }-- type Unmount__interface = {- tag: AppStorageRequest_Tags.Unmount- };+ prompt?: string,/**- * `volume_unmount`.+ * Accessibility label of the panel.*/- class Unmount_ extends UniffiEnum implements Unmount__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.Unmount;- constructor() {- super("AppStorageRequest", "Unmount");- }-- static new(): Unmount_ {- return new Unmount_();- }-- static instanceOf(obj: any): obj is Unmount_ {- return obj.tag === AppStorageRequest_Tags.Unmount;- }-- }-- type Reveal__interface = {- tag: AppStorageRequest_Tags.Reveal;- inner:-Readonly<{path: string}>- };+ label: string,/**- * Show the mount in the file manager (the shell's own call).+ * "N Spaces": the tab's spoken label (remote Spaces only).*/- class Reveal_ extends UniffiEnum implements Reveal__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.Reveal;- readonly inner:-Readonly<{path: string}>;- constructor(-inner: {path: string }) {- super("AppStorageRequest", "Reveal");+ countLabel: string,+ /**+ * The tab's two rows: the count over the word.+ */+ tab: AppNotchTab,+ /**+ * The row flanking the notch in the open panel: the search left of+ * it, the buttons right of it. None while dropping.+ */+ header?: AppNotchHeader,+ /**+ * The line in place of the tiles when the search matches nothing.+ */+ empty?: string,+ /**+ * The indicator left of the closed notch.+ */+ activity?: AppNotchActivity,+ /**+ * The notch is hidden (menu bar only): draw nothing.+ */+ hidden: boolean,+ /**+ * The tab shows (closed, no drag in flight; a drag tucks it away).+ */+ showTab: boolean,+ /**+ * The pointer rests on the closed notch while the dwell runs: the+ * shells grow it by [`NotchMotion::hover_scale`].+ */+ hoverCue: boolean,+ /**+ * One line in the open panel when window drags cannot be detected.+ */+ permission?: AppNotchPermission,+ /**+ * One line in the open panel while Keyvault sign-ins are live in a+ * Space (and not dismissed): what is live, and Dismiss.+ */+ access?: AppNotchAccess+}- this.inner = Object.freeze(inner);+/**+ * Generated factory for {@link AppNotchView} record objects.+ */+export const AppNotchView = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppNotchView, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchView>,+ });+})();++const FfiConverterTypeAppNotchView = (() => {+ type TypeName = AppNotchView;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ phase: FfiConverterTypeAppNotchPhase.read(from),+ tiles: FfiConverterSequenceTypeAppNotchTile.read(from),+ dropMode: FfiConverterBool.read(from),+ prompt: FfiConverterOptionalString.read(from),+ label: FfiConverterString.read(from),+ countLabel: FfiConverterString.read(from),+ tab: FfiConverterTypeAppNotchTab.read(from),+ header: FfiConverterOptionalTypeAppNotchHeader.read(from),+ empty: FfiConverterOptionalString.read(from),+ activity: FfiConverterOptionalTypeAppNotchActivity.read(from),+ hidden: FfiConverterBool.read(from),+ showTab: FfiConverterBool.read(from),+ hoverCue: FfiConverterBool.read(from),+ permission: FfiConverterOptionalTypeAppNotchPermission.read(from),+ access: FfiConverterOptionalTypeAppNotchAccess.read(from)+ };}- static new(-inner: {path: string }): Reveal_ {- return new Reveal_(inner);+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeAppNotchPhase.write(value.phase, into);+ FfiConverterSequenceTypeAppNotchTile.write(value.tiles, into);+ FfiConverterBool.write(value.dropMode, into);+ FfiConverterOptionalString.write(value.prompt, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.countLabel, into);+ FfiConverterTypeAppNotchTab.write(value.tab, into);+ FfiConverterOptionalTypeAppNotchHeader.write(value.header, into);+ FfiConverterOptionalString.write(value.empty, into);+ FfiConverterOptionalTypeAppNotchActivity.write(value.activity, into);+ FfiConverterBool.write(value.hidden, into);+ FfiConverterBool.write(value.showTab, into);+ FfiConverterBool.write(value.hoverCue, into);+ FfiConverterOptionalTypeAppNotchPermission.write(value.permission, into);+ FfiConverterOptionalTypeAppNotchAccess.write(value.access, into);}+ allocationSize(value: TypeName): number {+ return FfiConverterTypeAppNotchPhase.allocationSize(value.phase) ++ FfiConverterSequenceTypeAppNotchTile.allocationSize(value.tiles) ++ FfiConverterBool.allocationSize(value.dropMode) ++ FfiConverterOptionalString.allocationSize(value.prompt) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.countLabel) ++ FfiConverterTypeAppNotchTab.allocationSize(value.tab) ++ FfiConverterOptionalTypeAppNotchHeader.allocationSize(value.header) ++ FfiConverterOptionalString.allocationSize(value.empty) ++ FfiConverterOptionalTypeAppNotchActivity.allocationSize(value.activity) ++ FfiConverterBool.allocationSize(value.hidden) ++ FfiConverterBool.allocationSize(value.showTab) ++ FfiConverterBool.allocationSize(value.hoverCue) ++ FfiConverterOptionalTypeAppNotchPermission.allocationSize(value.permission) ++ FfiConverterOptionalTypeAppNotchAccess.allocationSize(value.access);- static instanceOf(obj: any): obj is Reveal_ {- return obj.tag === AppStorageRequest_Tags.Reveal;}-- }-- type OpenUrl__interface = {- tag: AppStorageRequest_Tags.OpenUrl;- inner:-Readonly<{url: string}>};+ return new FFIConverter();+})();++export type AppNotchPreview = {/**- * Open a URL (System Settings' file system extensions).+ * The closed notch with its ears, top centred.*/- class OpenUrl_ extends UniffiEnum implements OpenUrl__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.OpenUrl;- readonly inner:-Readonly<{url: string}>;- constructor(-inner: {url: string }) {- super("AppStorageRequest", "OpenUrl");-- this.inner = Object.freeze(inner);- }- static new(-inner: {url: string }): OpenUrl_ {- return new OpenUrl_(inner);- }-- static instanceOf(obj: any): obj is OpenUrl_ {- return obj.tag === AppStorageRequest_Tags.OpenUrl;- }-- }-- type SetCache__interface = {- tag: AppStorageRequest_Tags.SetCache;- inner:-Readonly<{capacityBytes: bigint}>- };+ closed: AppLogicalRect,/**- * `volume_cache_set`.+ * The open panel, top centred.*/- class SetCache_ extends UniffiEnum implements SetCache__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.SetCache;- readonly inner:-Readonly<{capacityBytes: bigint}>;- constructor(-inner: {capacityBytes: bigint }) {- super("AppStorageRequest", "SetCache");-- this.inner = Object.freeze(inner);- }- static new(-inner: {capacityBytes: bigint }): SetCache_ {- return new SetCache_(inner);- }-- static instanceOf(obj: any): obj is SetCache_ {- return obj.tag === AppStorageRequest_Tags.SetCache;- }-- }-- type ClearCache__interface = {- tag: AppStorageRequest_Tags.ClearCache- };+ open: AppLogicalRect,/**- * `volume_cache_clear`.+ * Closed radii, scaled.*/- class ClearCache_ extends UniffiEnum implements ClearCache__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStorageRequest";- readonly tag = AppStorageRequest_Tags.ClearCache;- constructor() {- super("AppStorageRequest", "ClearCache");- }-- static new(): ClearCache_ {- return new ClearCache_();- }-- static instanceOf(obj: any): obj is ClearCache_ {- return obj.tag === AppStorageRequest_Tags.ClearCache;- }-- }-- function instanceOf(obj: any): obj is AppStorageRequest {- return obj[uniffiTypeNameSymbol] === "AppStorageRequest";- }-- return Object.freeze({- instanceOf,- Test: Test_,- Save: Save_,- Adopt: Adopt_,- Mount: Mount_,- Unmount: Unmount_,- Reveal: Reveal_,- OpenUrl: OpenUrl_,- SetCache: SetCache_,- ClearCache: ClearCache_- });--})();-export type AppStorageRequest = InstanceType<- typeof AppStorageRequest['Test' | 'Save' | 'Adopt' | 'Mount' | 'Unmount' | 'Reveal' | 'OpenUrl' | 'SetCache' | 'ClearCache']->;--// FfiConverter for enum AppStorageRequest-const FfiConverterTypeAppStorageRequest = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppStorageRequest;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppStorageRequest.Test({update: FfiConverterTypeAppDriveStorageUpdate.read(from) });- case 2: return new AppStorageRequest.Save({update: FfiConverterTypeAppDriveStorageUpdate.read(from) });- case 3: return new AppStorageRequest.Adopt({update: FfiConverterTypeAppDriveStorageUpdate.read(from) });- case 4: return new AppStorageRequest.Mount();- case 5: return new AppStorageRequest.Unmount();- case 6: return new AppStorageRequest.Reveal({path: FfiConverterString.read(from) });- case 7: return new AppStorageRequest.OpenUrl({url: FfiConverterString.read(from) });- case 8: return new AppStorageRequest.SetCache({capacityBytes: FfiConverterUInt64.read(from) });- case 9: return new AppStorageRequest.ClearCache();- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppStorageRequest_Tags.Test: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterTypeAppDriveStorageUpdate.write(inner.update, into);- return;- }- case AppStorageRequest_Tags.Save: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterTypeAppDriveStorageUpdate.write(inner.update, into);- return;- }- case AppStorageRequest_Tags.Adopt: {- ordinalConverter.write(3, into);- const inner = value.inner;- FfiConverterTypeAppDriveStorageUpdate.write(inner.update, into);- return;- }- case AppStorageRequest_Tags.Mount: {- ordinalConverter.write(4, into);- return;- }- case AppStorageRequest_Tags.Unmount: {- ordinalConverter.write(5, into);- return;- }- case AppStorageRequest_Tags.Reveal: {- ordinalConverter.write(6, into);- const inner = value.inner;- FfiConverterString.write(inner.path, into);- return;- }- case AppStorageRequest_Tags.OpenUrl: {- ordinalConverter.write(7, into);- const inner = value.inner;- FfiConverterString.write(inner.url, into);- return;- }- case AppStorageRequest_Tags.SetCache: {- ordinalConverter.write(8, into);- const inner = value.inner;- FfiConverterUInt64.write(inner.capacityBytes, into);- return;- }- case AppStorageRequest_Tags.ClearCache: {- ordinalConverter.write(9, into);- return;- }- default:- // Throwing from here means that AppStorageRequest_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case AppStorageRequest_Tags.Test: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterTypeAppDriveStorageUpdate.allocationSize(inner.update);- return size;- }- case AppStorageRequest_Tags.Save: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterTypeAppDriveStorageUpdate.allocationSize(inner.update);- return size;- }- case AppStorageRequest_Tags.Adopt: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(3);- size += FfiConverterTypeAppDriveStorageUpdate.allocationSize(inner.update);- return size;- }- case AppStorageRequest_Tags.Mount: {- return ordinalConverter.allocationSize(4);- }- case AppStorageRequest_Tags.Unmount: {- return ordinalConverter.allocationSize(5);- }- case AppStorageRequest_Tags.Reveal: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(6);- size += FfiConverterString.allocationSize(inner.path);- return size;- }- case AppStorageRequest_Tags.OpenUrl: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(7);- size += FfiConverterString.allocationSize(inner.url);- return size;- }- case AppStorageRequest_Tags.SetCache: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(8);- size += FfiConverterUInt64.allocationSize(inner.capacityBytes);- return size;- }- case AppStorageRequest_Tags.ClearCache: {- return ordinalConverter.allocationSize(9);- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- }- return new FFIConverter();-})();--export type AppStorageState = {- form: AppStorageForm,+ closedRadii: AppNotchRadii,/**- * The form differs from what is saved.+ * Open radii, scaled.*/- dirty: boolean,- busy: boolean,- request?: AppStorageRequest,+ openRadii: AppNotchRadii,/**- * The last test or save.+ * The "N Spaces" tab right of the notch.*/- check?: AppDriveCheckInput,- error?: string,+ tab: AppLogicalRect,/**- * The bucket's fields show (else the agent prompt).+ * The camera housing (the closed notch without its ears).*/- manual: boolean,+ notch: AppLogicalRect,/**- * The last `volume_storage` seen (bucket, endpoint, region, keys), to- * notice the agent connecting a bucket while the prompt shows.+ * The open panel's content at real size (the header row flanking the+ * notch, then the tiles): the shells lay it out at `content_width` by+ * `content_height` points and scale it by `scale` into `open`.*/- seen?: string+ view: AppNotchView,+ /**+ * The content's real width.+ */+ contentWidth: number,+ /**+ * The content's real height.+ */+ contentHeight: number,+ /**+ * The real notch's height (the header row's height, real points).+ */+ notchHeight: number,+ /**+ * The content's side inset, real points (open top radius + padding).+ */+ side: number,+ /**+ * Real points to stage points.+ */+ scale: number}/**- * Generated factory for {@link AppStorageState} record objects.+ * Generated factory for {@link AppNotchPreview} record objects.*/-export const AppStorageState = (() => {+export const AppNotchPreview = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStorageState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchPreview, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStorageState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchPreview>,});})();-const FfiConverterTypeAppStorageState = (() => {- type TypeName = AppStorageState;+const FfiConverterTypeAppNotchPreview = (() => {+ type TypeName = AppNotchPreview;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- form: FfiConverterTypeAppStorageForm.read(from),- dirty: FfiConverterBool.read(from),- busy: FfiConverterBool.read(from),- request: FfiConverterOptionalTypeAppStorageRequest.read(from),- check: FfiConverterOptionalTypeAppDriveCheckInput.read(from),- error: FfiConverterOptionalString.read(from),- manual: FfiConverterBool.read(from),- seen: FfiConverterOptionalString.read(from)+ closed: FfiConverterTypeAppLogicalRect.read(from),+ open: FfiConverterTypeAppLogicalRect.read(from),+ closedRadii: FfiConverterTypeAppNotchRadii.read(from),+ openRadii: FfiConverterTypeAppNotchRadii.read(from),+ tab: FfiConverterTypeAppLogicalRect.read(from),+ notch: FfiConverterTypeAppLogicalRect.read(from),+ view: FfiConverterTypeAppNotchView.read(from),+ contentWidth: FfiConverterFloat64.read(from),+ contentHeight: FfiConverterFloat64.read(from),+ notchHeight: FfiConverterFloat64.read(from),+ side: FfiConverterFloat64.read(from),+ scale: FfiConverterFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppStorageForm.write(value.form, into);- FfiConverterBool.write(value.dirty, into);- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalTypeAppStorageRequest.write(value.request, into);- FfiConverterOptionalTypeAppDriveCheckInput.write(value.check, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.manual, into);- FfiConverterOptionalString.write(value.seen, into);+ FfiConverterTypeAppLogicalRect.write(value.closed, into);+ FfiConverterTypeAppLogicalRect.write(value.open, into);+ FfiConverterTypeAppNotchRadii.write(value.closedRadii, into);+ FfiConverterTypeAppNotchRadii.write(value.openRadii, into);+ FfiConverterTypeAppLogicalRect.write(value.tab, into);+ FfiConverterTypeAppLogicalRect.write(value.notch, into);+ FfiConverterTypeAppNotchView.write(value.view, into);+ FfiConverterFloat64.write(value.contentWidth, into);+ FfiConverterFloat64.write(value.contentHeight, into);+ FfiConverterFloat64.write(value.notchHeight, into);+ FfiConverterFloat64.write(value.side, into);+ FfiConverterFloat64.write(value.scale, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppStorageForm.allocationSize(value.form) +- FfiConverterBool.allocationSize(value.dirty) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalTypeAppStorageRequest.allocationSize(value.request) +- FfiConverterOptionalTypeAppDriveCheckInput.allocationSize(value.check) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.manual) +- FfiConverterOptionalString.allocationSize(value.seen);+ return FfiConverterTypeAppLogicalRect.allocationSize(value.closed) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.open) ++ FfiConverterTypeAppNotchRadii.allocationSize(value.closedRadii) ++ FfiConverterTypeAppNotchRadii.allocationSize(value.openRadii) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.tab) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.notch) ++ FfiConverterTypeAppNotchView.allocationSize(value.view) ++ FfiConverterFloat64.allocationSize(value.contentWidth) ++ FfiConverterFloat64.allocationSize(value.contentHeight) ++ FfiConverterFloat64.allocationSize(value.notchHeight) ++ FfiConverterFloat64.allocationSize(value.side) ++ FfiConverterFloat64.allocationSize(value.scale);}};return new FFIConverter();})();-export type AppTelemetryInput = {- /**- * Usage data is shared.- */- enabled: boolean,+export type AppNotchTransfer = {/**- * The environment decides (`DO_NOT_TRACK`, `CUA_TELEMETRY`, CI): who.+ * Bytes sent so far.*/- lockedBy?: string,+ sent?: bigint,/**- * The first-run usage notice was already shown on this machine (by- * `cua`, or an earlier run of the app): events may be sent before- * Welcome is left.+ * Total bytes, when known.*/- noticeShown: boolean+ total?: bigint}/**- * Generated factory for {@link AppTelemetryInput} record objects.+ * Generated factory for {@link AppNotchTransfer} record objects.*/-export const AppTelemetryInput = (() => {+export const AppNotchTransfer = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppTelemetryInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchTransfer, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTelemetryInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchTransfer>,});})();-const FfiConverterTypeAppTelemetryInput = (() => {- type TypeName = AppTelemetryInput;+const FfiConverterTypeAppNotchTransfer = (() => {+ type TypeName = AppNotchTransfer;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- enabled: FfiConverterBool.read(from),- lockedBy: FfiConverterOptionalString.read(from),- noticeShown: FfiConverterBool.read(from)+ sent: FfiConverterOptionalUInt64.read(from),+ total: FfiConverterOptionalUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.enabled, into);- FfiConverterOptionalString.write(value.lockedBy, into);- FfiConverterBool.write(value.noticeShown, into);+ FfiConverterOptionalUInt64.write(value.sent, into);+ FfiConverterOptionalUInt64.write(value.total, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.enabled) +- FfiConverterOptionalString.allocationSize(value.lockedBy) +- FfiConverterBool.allocationSize(value.noticeShown);+ return FfiConverterOptionalUInt64.allocationSize(value.sent) ++ FfiConverterOptionalUInt64.allocationSize(value.total);}};return new FFIConverter();})();-export type AppOnboardingState = {- /**- * Page.- */- step: AppOnboardingStep,- /**- * Where `cua` was installed on first launch, when it was.- */- cliTarget?: string,- /**- * Menu bar only (no notch). The same setting as Settings' "Spaces tab- * in the notch".- */- menuBar: boolean,- /**- * Signed-in identity.- */- identity?: string,- /**- * Agents configured.- */- agents: Array<string>,- /**- * The choice.- */- mode?: AppOnboardingMode,- /**- * The installer's preselection (`--mode host`, MDM file).- */- installerMode?: AppOnboardingMode,- /**- * This machine's system, once the drive was checked.- */- driveOs?: AppSpaceOs,- /**- * `volume_mount_status`, when the daemon answered.- */- driveStatus?: AppDriveMountInput,- /**- * The drive was checked (answered or not).- */- driveChecked: boolean,- /**- * The Cua Volume checkbox (off by default).- */- driveMount: boolean,+export type AppNotchState = {/**- * What the shell is running for the page.+ * Opened by hover or click.*/- driveRequest?: AppDriveStepRequest,+ open: boolean,/**- * Why mounting failed.+ * The pointer is over the panel.*/- driveError?: string,+ hovering: boolean,/**- * `volume_storage`, when the daemon answered.+ * A file or app drag (pasteboard) is over the panel.*/- driveStorage?: AppDriveStorageInput,+ dropTargeted: boolean,/**- * Where the files live, as picked.+ * The window drag state machine.*/- storageChoice: AppStorageChoice,+ drag: AppDragOverlayState,/**- * The home folder (paths show as `~/...`).+ * Window-drag detection needs a permission this process lacks (macOS+ * Accessibility): the open panel says so instead of failing silently.*/- driveHome?: string,+ dragPermissionMissing: boolean,/**- * The user picked (the saved backend no longer decides).+ * The header's search text (cleared when the panel closes).*/- storagePicked: boolean,+ query: string,/**- * The bucket form and its test or save- * ([`crate::drive_settings`]'s state; its `request` is the shell's).+ * This machine shares its network to a Space (the hotspot).*/- storage: AppStorageState,+ hotspot: boolean,/**- * Done's "Launch at login" checkbox (ticked unless unticked). The- * shell applies it when the first run finishes.+ * A teleport or file transfer is in flight.*/- launchAtLogin: boolean,+ transfer?: AppNotchTransfer,/**- * The usage-data switch on Welcome: the machine's telemetry setting- * (Settings' "Share anonymous usage data", `cua telemetry off`), none- * until the shell read it (then it shows on).+ * Keyvault sign-ins are live in a Space right now (the core's+ * [`crate::keyvault::view::sharing_label`]), so access is never silent.*/- telemetry?: AppTelemetryInput,+ keyvault?: string,/**- * Settings, Experiments: the Cua Volume page (and its Done line) only- * while Cua Volume is on. Off until the shell says otherwise.+ * The Spaces signed in through the Keyvault, less the copies the user+ * dismissed ([`crate::keyvault::view::signed_in_spaces`]): their tiles+ * carry the key.*/- experiments: AppExperiments,+ signedIn: Array<string>,/**- * The run's start was counted (`onboarding_shown`, Welcome shown):- * when Welcome showed on a machine whose usage notice was already- * shown, else when Welcome was left. Once per run, however often- * Welcome shows again (Back).+ * "Spaces tab in the notch: Hide" (menu bar only): nothing shows in+ * the notch, and hover, clicks and window drags do nothing.*/- runCounted: boolean+ hidden: boolean}/**- * Generated factory for {@link AppOnboardingState} record objects.+ * Generated factory for {@link AppNotchState} record objects.*/-export const AppOnboardingState = (() => {+export const AppNotchState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppOnboardingState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchState>,});})();-const FfiConverterTypeAppOnboardingState = (() => {- type TypeName = AppOnboardingState;+const FfiConverterTypeAppNotchState = (() => {+ type TypeName = AppNotchState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- step: FfiConverterTypeAppOnboardingStep.read(from),- cliTarget: FfiConverterOptionalString.read(from),- menuBar: FfiConverterBool.read(from),- identity: FfiConverterOptionalString.read(from),- agents: FfiConverterSequenceString.read(from),- mode: FfiConverterOptionalTypeAppOnboardingMode.read(from),- installerMode: FfiConverterOptionalTypeAppOnboardingMode.read(from),- driveOs: FfiConverterOptionalTypeAppSpaceOs.read(from),- driveStatus: FfiConverterOptionalTypeAppDriveMountInput.read(from),- driveChecked: FfiConverterBool.read(from),- driveMount: FfiConverterBool.read(from),- driveRequest: FfiConverterOptionalTypeAppDriveStepRequest.read(from),- driveError: FfiConverterOptionalString.read(from),- driveStorage: FfiConverterOptionalTypeAppDriveStorageInput.read(from),- storageChoice: FfiConverterTypeAppStorageChoice.read(from),- driveHome: FfiConverterOptionalString.read(from),- storagePicked: FfiConverterBool.read(from),- storage: FfiConverterTypeAppStorageState.read(from),- launchAtLogin: FfiConverterBool.read(from),- telemetry: FfiConverterOptionalTypeAppTelemetryInput.read(from),- experiments: FfiConverterTypeAppExperiments.read(from),- runCounted: FfiConverterBool.read(from)+ open: FfiConverterBool.read(from),+ hovering: FfiConverterBool.read(from),+ dropTargeted: FfiConverterBool.read(from),+ drag: FfiConverterTypeAppDragOverlayState.read(from),+ dragPermissionMissing: FfiConverterBool.read(from),+ query: FfiConverterString.read(from),+ hotspot: FfiConverterBool.read(from),+ transfer: FfiConverterOptionalTypeAppNotchTransfer.read(from),+ keyvault: FfiConverterOptionalString.read(from),+ signedIn: FfiConverterSequenceString.read(from),+ hidden: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppOnboardingStep.write(value.step, into);- FfiConverterOptionalString.write(value.cliTarget, into);- FfiConverterBool.write(value.menuBar, into);- FfiConverterOptionalString.write(value.identity, into);- FfiConverterSequenceString.write(value.agents, into);- FfiConverterOptionalTypeAppOnboardingMode.write(value.mode, into);- FfiConverterOptionalTypeAppOnboardingMode.write(value.installerMode, into);- FfiConverterOptionalTypeAppSpaceOs.write(value.driveOs, into);- FfiConverterOptionalTypeAppDriveMountInput.write(value.driveStatus, into);- FfiConverterBool.write(value.driveChecked, into);- FfiConverterBool.write(value.driveMount, into);- FfiConverterOptionalTypeAppDriveStepRequest.write(value.driveRequest, into);- FfiConverterOptionalString.write(value.driveError, into);- FfiConverterOptionalTypeAppDriveStorageInput.write(value.driveStorage, into);- FfiConverterTypeAppStorageChoice.write(value.storageChoice, into);- FfiConverterOptionalString.write(value.driveHome, into);- FfiConverterBool.write(value.storagePicked, into);- FfiConverterTypeAppStorageState.write(value.storage, into);- FfiConverterBool.write(value.launchAtLogin, into);- FfiConverterOptionalTypeAppTelemetryInput.write(value.telemetry, into);- FfiConverterTypeAppExperiments.write(value.experiments, into);- FfiConverterBool.write(value.runCounted, into);+ FfiConverterBool.write(value.open, into);+ FfiConverterBool.write(value.hovering, into);+ FfiConverterBool.write(value.dropTargeted, into);+ FfiConverterTypeAppDragOverlayState.write(value.drag, into);+ FfiConverterBool.write(value.dragPermissionMissing, into);+ FfiConverterString.write(value.query, into);+ FfiConverterBool.write(value.hotspot, into);+ FfiConverterOptionalTypeAppNotchTransfer.write(value.transfer, into);+ FfiConverterOptionalString.write(value.keyvault, into);+ FfiConverterSequenceString.write(value.signedIn, into);+ FfiConverterBool.write(value.hidden, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppOnboardingStep.allocationSize(value.step) +- FfiConverterOptionalString.allocationSize(value.cliTarget) +- FfiConverterBool.allocationSize(value.menuBar) +- FfiConverterOptionalString.allocationSize(value.identity) +- FfiConverterSequenceString.allocationSize(value.agents) +- FfiConverterOptionalTypeAppOnboardingMode.allocationSize(value.mode) +- FfiConverterOptionalTypeAppOnboardingMode.allocationSize(value.installerMode) +- FfiConverterOptionalTypeAppSpaceOs.allocationSize(value.driveOs) +- FfiConverterOptionalTypeAppDriveMountInput.allocationSize(value.driveStatus) +- FfiConverterBool.allocationSize(value.driveChecked) +- FfiConverterBool.allocationSize(value.driveMount) +- FfiConverterOptionalTypeAppDriveStepRequest.allocationSize(value.driveRequest) +- FfiConverterOptionalString.allocationSize(value.driveError) +- FfiConverterOptionalTypeAppDriveStorageInput.allocationSize(value.driveStorage) +- FfiConverterTypeAppStorageChoice.allocationSize(value.storageChoice) +- FfiConverterOptionalString.allocationSize(value.driveHome) +- FfiConverterBool.allocationSize(value.storagePicked) +- FfiConverterTypeAppStorageState.allocationSize(value.storage) +- FfiConverterBool.allocationSize(value.launchAtLogin) +- FfiConverterOptionalTypeAppTelemetryInput.allocationSize(value.telemetry) +- FfiConverterTypeAppExperiments.allocationSize(value.experiments) +- FfiConverterBool.allocationSize(value.runCounted);+ return FfiConverterBool.allocationSize(value.open) ++ FfiConverterBool.allocationSize(value.hovering) ++ FfiConverterBool.allocationSize(value.dropTargeted) ++ FfiConverterTypeAppDragOverlayState.allocationSize(value.drag) ++ FfiConverterBool.allocationSize(value.dragPermissionMissing) ++ FfiConverterString.allocationSize(value.query) ++ FfiConverterBool.allocationSize(value.hotspot) ++ FfiConverterOptionalTypeAppNotchTransfer.allocationSize(value.transfer) ++ FfiConverterOptionalString.allocationSize(value.keyvault) ++ FfiConverterSequenceString.allocationSize(value.signedIn) ++ FfiConverterBool.allocationSize(value.hidden);}};return new FFIConverter();})();-export type AppStepDot = {++// Enum: AppNotchEffect+export enum AppNotchEffect_Tags {+ StartDwell = "StartDwell",+ StartClose = "StartClose",+ CancelTimers = "CancelTimers",+ Drag = "Drag"+}+export const AppNotchEffect = (() => {++ type StartDwell__interface = {+ tag: AppNotchEffect_Tags.StartDwell;+ inner:+Readonly<{ms: number}>+ };/**- * Page.+ * Start (or restart) the dwell timer.*/- step: AppOnboardingStep,+ class StartDwell_ extends UniffiEnum implements StartDwell__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppNotchEffect";+ readonly tag = AppNotchEffect_Tags.StartDwell;+ readonly inner:+Readonly<{ms: number}>;+ constructor(+inner: {ms: number }) {+ super("AppNotchEffect", "StartDwell");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {ms: number }): StartDwell_ {+ return new StartDwell_(inner);+ }++ static instanceOf(obj: any): obj is StartDwell_ {+ return obj.tag === AppNotchEffect_Tags.StartDwell;+ }++ }++ type StartClose__interface = {+ tag: AppNotchEffect_Tags.StartClose;+ inner:+Readonly<{ms: number}>+ };/**- * Label.+ * Start the close timer.*/- label: string,+ class StartClose_ extends UniffiEnum implements StartClose__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppNotchEffect";+ readonly tag = AppNotchEffect_Tags.StartClose;+ readonly inner:+Readonly<{ms: number}>;+ constructor(+inner: {ms: number }) {+ super("AppNotchEffect", "StartClose");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {ms: number }): StartClose_ {+ return new StartClose_(inner);+ }++ static instanceOf(obj: any): obj is StartClose_ {+ return obj.tag === AppNotchEffect_Tags.StartClose;+ }++ }++ type CancelTimers__interface = {+ tag: AppNotchEffect_Tags.CancelTimers+ };/**- * Current.+ * Cancel pending timers.*/- current: boolean+ class CancelTimers_ extends UniffiEnum implements CancelTimers__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppNotchEffect";+ readonly tag = AppNotchEffect_Tags.CancelTimers;+ constructor() {+ super("AppNotchEffect", "CancelTimers");+ }++ static new(): CancelTimers_ {+ return new CancelTimers_();+ }++ static instanceOf(obj: any): obj is CancelTimers_ {+ return obj.tag === AppNotchEffect_Tags.CancelTimers;+ }++ }++ type Drag__interface = {+ tag: AppNotchEffect_Tags.Drag;+ inner:+Readonly<{effect: AppDragOverlayEffect}>+ };+ /**+ * A window drag effect (capture the ghost, commit the teleport).+ */+ class Drag_ extends UniffiEnum implements Drag__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppNotchEffect";+ readonly tag = AppNotchEffect_Tags.Drag;+ readonly inner:+Readonly<{effect: AppDragOverlayEffect}>;+ constructor(+inner: {effect: AppDragOverlayEffect }) {+ super("AppNotchEffect", "Drag");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {effect: AppDragOverlayEffect }): Drag_ {+ return new Drag_(inner);+ }++ static instanceOf(obj: any): obj is Drag_ {+ return obj.tag === AppNotchEffect_Tags.Drag;+ }++ }++ function instanceOf(obj: any): obj is AppNotchEffect {+ return obj[uniffiTypeNameSymbol] === "AppNotchEffect";+ }++ return Object.freeze({+ instanceOf,+ StartDwell: StartDwell_,+ StartClose: StartClose_,+ CancelTimers: CancelTimers_,+ Drag: Drag_+ });++})();+export type AppNotchEffect = InstanceType<+ typeof AppNotchEffect['StartDwell' | 'StartClose' | 'CancelTimers' | 'Drag']+>;++// FfiConverter for enum AppNotchEffect+const FfiConverterTypeAppNotchEffect = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppNotchEffect;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return new AppNotchEffect.StartDwell({ms: FfiConverterUInt32.read(from) });+ case 2: return new AppNotchEffect.StartClose({ms: FfiConverterUInt32.read(from) });+ case 3: return new AppNotchEffect.CancelTimers();+ case 4: return new AppNotchEffect.Drag({effect: FfiConverterTypeAppDragOverlayEffect.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value.tag) {+ case AppNotchEffect_Tags.StartDwell: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterUInt32.write(inner.ms, into);+ return;+ }+ case AppNotchEffect_Tags.StartClose: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterUInt32.write(inner.ms, into);+ return;+ }+ case AppNotchEffect_Tags.CancelTimers: {+ ordinalConverter.write(3, into);+ return;+ }+ case AppNotchEffect_Tags.Drag: {+ ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterTypeAppDragOverlayEffect.write(inner.effect, into);+ return;+ }+ default:+ // Throwing from here means that AppNotchEffect_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ allocationSize(value: TypeName): number {+ switch (value.tag) {+ case AppNotchEffect_Tags.StartDwell: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterUInt32.allocationSize(inner.ms);+ return size;+ }+ case AppNotchEffect_Tags.StartClose: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterUInt32.allocationSize(inner.ms);+ return size;+ }+ case AppNotchEffect_Tags.CancelTimers: {+ return ordinalConverter.allocationSize(3);+ }+ case AppNotchEffect_Tags.Drag: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterTypeAppDragOverlayEffect.allocationSize(inner.effect);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ }+ return new FFIConverter();+})();++export type AppNotchTransition = {+ /**+ * New state.+ */+ state: AppNotchState,+ /**+ * Effects to run.+ */+ effects: Array<AppNotchEffect>}/**- * Generated factory for {@link AppStepDot} record objects.+ * Generated factory for {@link AppNotchTransition} record objects.*/-export const AppStepDot = (() => {+export const AppNotchTransition = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStepDot, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotchTransition, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStepDot>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotchTransition>,});})();-const FfiConverterTypeAppStepDot = (() => {- type TypeName = AppStepDot;+const FfiConverterTypeAppNotchTransition = (() => {+ type TypeName = AppNotchTransition;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- step: FfiConverterTypeAppOnboardingStep.read(from),- label: FfiConverterString.read(from),- current: FfiConverterBool.read(from)+ state: FfiConverterTypeAppNotchState.read(from),+ effects: FfiConverterSequenceTypeAppNotchEffect.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppOnboardingStep.write(value.step, into);- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.current, into);+ FfiConverterTypeAppNotchState.write(value.state, into);+ FfiConverterSequenceTypeAppNotchEffect.write(value.effects, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppOnboardingStep.allocationSize(value.step) +- FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.current);+ return FfiConverterTypeAppNotchState.allocationSize(value.state) ++ FfiConverterSequenceTypeAppNotchEffect.allocationSize(value.effects);}};return new FFIConverter();})();-export type AppPresentationCard = {+export enum AppNoticeKind {/**- * Menu bar only.+ * Switched Spaces.*/- menuBar: boolean,+ Switch = "switch",/**- * "Notch and menu bar".+ * Created (or creating) Spaces.*/- title: string,+ Create = "create"+}++const FfiConverterTypeAppNoticeKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppNoticeKind;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppNoticeKind.Switch;+ case 2: return AppNoticeKind.Create;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppNoticeKind.Switch: return ordinalConverter.write(1, into);+ case AppNoticeKind.Create: return ordinalConverter.write(2, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppNotice = {/**- * The card's id (`onboarding-notch`, `onboarding-menu-bar`): its- * accessibility identifier and list key.+ * Sequence id (clear by id).*/- id: string,+ id: number,/**- * The miniature's spoken description.+ * Kind.*/- imageLabel: string,+ kind: AppNoticeKind,/**- * Picked.+ * Text.*/- selected: boolean+ text: string}/**- * Generated factory for {@link AppPresentationCard} record objects.+ * Generated factory for {@link AppNotice} record objects.*/-export const AppPresentationCard = (() => {+export const AppNotice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPresentationCard, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPresentationCard>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotice>,});})();-const FfiConverterTypeAppPresentationCard = (() => {- type TypeName = AppPresentationCard;+const FfiConverterTypeAppNotice = (() => {+ type TypeName = AppNotice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- menuBar: FfiConverterBool.read(from),- title: FfiConverterString.read(from),- id: FfiConverterString.read(from),- imageLabel: FfiConverterString.read(from),- selected: FfiConverterBool.read(from)+ id: FfiConverterUInt32.read(from),+ kind: FfiConverterTypeAppNoticeKind.read(from),+ text: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.menuBar, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.imageLabel, into);- FfiConverterBool.write(value.selected, into);+ FfiConverterUInt32.write(value.id, into);+ FfiConverterTypeAppNoticeKind.write(value.kind, into);+ FfiConverterString.write(value.text, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.menuBar) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.imageLabel) +- FfiConverterBool.allocationSize(value.selected);+ return FfiConverterUInt32.allocationSize(value.id) ++ FfiConverterTypeAppNoticeKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.text);}};return new FFIConverter();})();-export type AppUsageToggle = {- /**- * "Share anonymous usage data".- */- label: string,- /**- * On.- */- on: boolean,- /**- * It can be changed (the environment does not decide).- */- enabled: boolean,+export type AppNotificationInput = {+ id: string,+ atMs: bigint,+ agent?: string,/**- * Why it cannot ("Set by env DO_NOT_TRACK").+ * `turn_ended`, `message`, `approval`, `error`.*/- help?: string+ kind: string,+ title: string,+ body: string,+ read: boolean}/**- * Generated factory for {@link AppUsageToggle} record objects.+ * Generated factory for {@link AppNotificationInput} record objects.*/-export const AppUsageToggle = (() => {+export const AppNotificationInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppUsageToggle, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotificationInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppUsageToggle>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotificationInput>,});})();-const FfiConverterTypeAppUsageToggle = (() => {- type TypeName = AppUsageToggle;+const FfiConverterTypeAppNotificationInput = (() => {+ type TypeName = AppNotificationInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- label: FfiConverterString.read(from),- on: FfiConverterBool.read(from),- enabled: FfiConverterBool.read(from),- help: FfiConverterOptionalString.read(from)+ id: FfiConverterString.read(from),+ atMs: FfiConverterUInt64.read(from),+ agent: FfiConverterOptionalString.read(from),+ kind: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ body: FfiConverterString.read(from),+ read: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.on, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterOptionalString.write(value.help, into);+ FfiConverterString.write(value.id, into);+ FfiConverterUInt64.write(value.atMs, into);+ FfiConverterOptionalString.write(value.agent, into);+ FfiConverterString.write(value.kind, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.body, into);+ FfiConverterBool.write(value.read, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.on) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterOptionalString.allocationSize(value.help);-- }- };- return new FFIConverter();+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterUInt64.allocationSize(value.atMs) ++ FfiConverterOptionalString.allocationSize(value.agent) ++ FfiConverterString.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.body) ++ FfiConverterBool.allocationSize(value.read);++ }+ };+ return new FFIConverter();})();-export type AppOnboardingView = {- /**- * Page.- */- step: AppOnboardingStep,- /**- * Page dots.- */- dots: Array<AppStepDot>,- /**- * Heading.- */+export type AppSystemNote = {+ id: string,title: string,- /**- * One line under it.- */- lede: string,- /**- * The primary button.- */- primaryLabel: string,- /**- * A Skip button shows.- */- canSkip: boolean,- /**- * A Back button shows.- */- canBack: boolean,- /**- * The stacked Cua mark shows (Welcome).- */- showMark: boolean,- /**- * The machine choice to highlight (the installer's preselection).- */- preselectedMode: AppOnboardingMode,- /**- * Done's facts.- */- summary: Array<AppFact>,- /**- * This machine's two answers (the installer's preselection first- * highlighted), on its page.- */- choices: Array<AppModeChoice>,- /**- * The presentation page's two cards, side by side.- */- presentations: Array<AppPresentationCard>,- /**- * Done's example prompts ([`PROMPTS`]), one line each: shown under- * both columns, scrolling slowly, to suggest what to ask a coding- * agent. Not interactive.- */- prompts: Array<string>,- /**- * The first-run telemetry notice (the Welcome page, so the first run- * itself can be measured): nothing is sent before it has been shown- * once.- */- notice?: string,- /**- * Its link: label.- */- noticeLinkLabel?: string,- /**- * Its link: URL.- */- noticeLinkUrl?: string,- /**- * Welcome's usage-data switch, next to the notice: nothing is sent- * before the user leaves Welcome, and nothing at all while it is off.- */- usage?: AppUsageToggle,- /**- * The Cua Volume page's card.- */- drive?: AppDriveCard,- /**- * Done's "Launch at login" checkbox.- */- launchAtLogin?: AppOnboardingCheckbox+ body: string}/**- * Generated factory for {@link AppOnboardingView} record objects.+ * Generated factory for {@link AppSystemNote} record objects.*/-export const AppOnboardingView = (() => {+export const AppSystemNote = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppOnboardingView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSystemNote, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSystemNote>,});})();-const FfiConverterTypeAppOnboardingView = (() => {- type TypeName = AppOnboardingView;+const FfiConverterTypeAppSystemNote = (() => {+ type TypeName = AppSystemNote;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- step: FfiConverterTypeAppOnboardingStep.read(from),- dots: FfiConverterSequenceTypeAppStepDot.read(from),+ id: FfiConverterString.read(from),title: FfiConverterString.read(from),- lede: FfiConverterString.read(from),- primaryLabel: FfiConverterString.read(from),- canSkip: FfiConverterBool.read(from),- canBack: FfiConverterBool.read(from),- showMark: FfiConverterBool.read(from),- preselectedMode: FfiConverterTypeAppOnboardingMode.read(from),- summary: FfiConverterSequenceTypeAppFact.read(from),- choices: FfiConverterSequenceTypeAppModeChoice.read(from),- presentations: FfiConverterSequenceTypeAppPresentationCard.read(from),- prompts: FfiConverterSequenceString.read(from),- notice: FfiConverterOptionalString.read(from),- noticeLinkLabel: FfiConverterOptionalString.read(from),- noticeLinkUrl: FfiConverterOptionalString.read(from),- usage: FfiConverterOptionalTypeAppUsageToggle.read(from),- drive: FfiConverterOptionalTypeAppDriveCard.read(from),- launchAtLogin: FfiConverterOptionalTypeAppOnboardingCheckbox.read(from)+ body: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppOnboardingStep.write(value.step, into);- FfiConverterSequenceTypeAppStepDot.write(value.dots, into);+ FfiConverterString.write(value.id, into);FfiConverterString.write(value.title, into);- FfiConverterString.write(value.lede, into);- FfiConverterString.write(value.primaryLabel, into);- FfiConverterBool.write(value.canSkip, into);- FfiConverterBool.write(value.canBack, into);- FfiConverterBool.write(value.showMark, into);- FfiConverterTypeAppOnboardingMode.write(value.preselectedMode, into);- FfiConverterSequenceTypeAppFact.write(value.summary, into);- FfiConverterSequenceTypeAppModeChoice.write(value.choices, into);- FfiConverterSequenceTypeAppPresentationCard.write(value.presentations, into);- FfiConverterSequenceString.write(value.prompts, into);- FfiConverterOptionalString.write(value.notice, into);- FfiConverterOptionalString.write(value.noticeLinkLabel, into);- FfiConverterOptionalString.write(value.noticeLinkUrl, into);- FfiConverterOptionalTypeAppUsageToggle.write(value.usage, into);- FfiConverterOptionalTypeAppDriveCard.write(value.drive, into);- FfiConverterOptionalTypeAppOnboardingCheckbox.write(value.launchAtLogin, into);+ FfiConverterString.write(value.body, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppOnboardingStep.allocationSize(value.step) +- FfiConverterSequenceTypeAppStepDot.allocationSize(value.dots) ++ return FfiConverterString.allocationSize(value.id) +FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.lede) +- FfiConverterString.allocationSize(value.primaryLabel) +- FfiConverterBool.allocationSize(value.canSkip) +- FfiConverterBool.allocationSize(value.canBack) +- FfiConverterBool.allocationSize(value.showMark) +- FfiConverterTypeAppOnboardingMode.allocationSize(value.preselectedMode) +- FfiConverterSequenceTypeAppFact.allocationSize(value.summary) +- FfiConverterSequenceTypeAppModeChoice.allocationSize(value.choices) +- FfiConverterSequenceTypeAppPresentationCard.allocationSize(value.presentations) +- FfiConverterSequenceString.allocationSize(value.prompts) +- FfiConverterOptionalString.allocationSize(value.notice) +- FfiConverterOptionalString.allocationSize(value.noticeLinkLabel) +- FfiConverterOptionalString.allocationSize(value.noticeLinkUrl) +- FfiConverterOptionalTypeAppUsageToggle.allocationSize(value.usage) +- FfiConverterOptionalTypeAppDriveCard.allocationSize(value.drive) +- FfiConverterOptionalTypeAppOnboardingCheckbox.allocationSize(value.launchAtLogin);+ FfiConverterString.allocationSize(value.body);}};return new FFIConverter();})();-export type AppOpenApp = {- /**- * App id.- */- appId: string,- /**- * App name.- */- appName: string,+export type AppNotificationsPlan = {+ post: Array<AppSystemNote>,/**- * Supported.+ * The new `notifications_seen_ms` (unchanged when nothing is newer).*/- supported: boolean+ seenMs: bigint}/**- * Generated factory for {@link AppOpenApp} record objects.+ * Generated factory for {@link AppNotificationsPlan} record objects.*/-export const AppOpenApp = (() => {+export const AppNotificationsPlan = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppOpenApp, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotificationsPlan, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppOpenApp>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotificationsPlan>,});})();-const FfiConverterTypeAppOpenApp = (() => {- type TypeName = AppOpenApp;+const FfiConverterTypeAppNotificationsPlan = (() => {+ type TypeName = AppNotificationsPlan;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- appId: FfiConverterString.read(from),- appName: FfiConverterString.read(from),- supported: FfiConverterBool.read(from)+ post: FfiConverterSequenceTypeAppSystemNote.read(from),+ seenMs: FfiConverterUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.appId, into);- FfiConverterString.write(value.appName, into);- FfiConverterBool.write(value.supported, into);+ FfiConverterSequenceTypeAppSystemNote.write(value.post, into);+ FfiConverterUInt64.write(value.seenMs, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.appId) +- FfiConverterString.allocationSize(value.appName) +- FfiConverterBool.allocationSize(value.supported);+ return FfiConverterSequenceTypeAppSystemNote.allocationSize(value.post) ++ FfiConverterUInt64.allocationSize(value.seenMs);}};return new FFIConverter();})();-export type AppOpenWindow = {- /**- * CoreGraphics window number.- */- windowId: number,- /**- * App id.- */- appId: string,- /**- * App name.- */- appName: string,- /**- * Window title.- */- windowTitle: string,- /**- * Teleport can bring the app up in a Space.- */- supported: boolean,+export type AppNotificationsView = {+ title: string,/**- * The owning app's bundle (or `.desktop` entry), when known.+ * One line each: `title: body`, the time on the right; `on` is unread.*/- bundlePath?: string+ rows: Array<AppLineView>,+ emptyText: string,+ unread: number,+ markAllLabel?: string}/**- * Generated factory for {@link AppOpenWindow} record objects.+ * Generated factory for {@link AppNotificationsView} record objects.*/-export const AppOpenWindow = (() => {+export const AppNotificationsView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppOpenWindow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppNotificationsView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppOpenWindow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppNotificationsView>,});})();-const FfiConverterTypeAppOpenWindow = (() => {- type TypeName = AppOpenWindow;+const FfiConverterTypeAppNotificationsView = (() => {+ type TypeName = AppNotificationsView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- windowId: FfiConverterUInt32.read(from),- appId: FfiConverterString.read(from),- appName: FfiConverterString.read(from),- windowTitle: FfiConverterString.read(from),- supported: FfiConverterBool.read(from),- bundlePath: FfiConverterOptionalString.read(from)+ title: FfiConverterString.read(from),+ rows: FfiConverterSequenceTypeAppLineView.read(from),+ emptyText: FfiConverterString.read(from),+ unread: FfiConverterUInt32.read(from),+ markAllLabel: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.windowId, into);- FfiConverterString.write(value.appId, into);- FfiConverterString.write(value.appName, into);- FfiConverterString.write(value.windowTitle, into);- FfiConverterBool.write(value.supported, into);- FfiConverterOptionalString.write(value.bundlePath, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppLineView.write(value.rows, into);+ FfiConverterString.write(value.emptyText, into);+ FfiConverterUInt32.write(value.unread, into);+ FfiConverterOptionalString.write(value.markAllLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.windowId) +- FfiConverterString.allocationSize(value.appId) +- FfiConverterString.allocationSize(value.appName) +- FfiConverterString.allocationSize(value.windowTitle) +- FfiConverterBool.allocationSize(value.supported) +- FfiConverterOptionalString.allocationSize(value.bundlePath);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppLineView.allocationSize(value.rows) ++ FfiConverterString.allocationSize(value.emptyText) ++ FfiConverterUInt32.allocationSize(value.unread) ++ FfiConverterOptionalString.allocationSize(value.markAllLabel);}};return new FFIConverter();})();--// Enum: AppPickerTileIcon-export enum AppPickerTileIcon_Tags {- Host = "Host",- Guest = "Guest",- None = "None"-}-export const AppPickerTileIcon = (() => {-- type Host__interface = {- tag: AppPickerTileIcon_Tags.Host;- inner:-Readonly<{path: string}>- };+export type AppOnboardingCheckbox = {/**- * This machine's app at `path` (the SDK's `Teleport.appIconPng`).+ * "Launch at login".*/- class Host_ extends UniffiEnum implements Host__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerTileIcon";- readonly tag = AppPickerTileIcon_Tags.Host;- readonly inner:-Readonly<{path: string}>;- constructor(-inner: {path: string }) {- super("AppPickerTileIcon", "Host");-- this.inner = Object.freeze(inner);- }- static new(-inner: {path: string }): Host_ {- return new Host_(inner);- }-- static instanceOf(obj: any): obj is Host_ {- return obj.tag === AppPickerTileIcon_Tags.Host;- }-- }-- type Guest__interface = {- tag: AppPickerTileIcon_Tags.Guest;- inner:-Readonly<{appName: string; appId: string; pid: number}>- };+ label: string,/**- * A Space's app (the SDK's `Space.appIcons`).+ * Ticked.*/- class Guest_ extends UniffiEnum implements Guest__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerTileIcon";- readonly tag = AppPickerTileIcon_Tags.Guest;- readonly inner:-Readonly<{appName: string; appId: string; pid: number}>;- constructor(-inner: {appName: string; appId: string; pid: number }) {- super("AppPickerTileIcon", "Guest");-- this.inner = Object.freeze(inner);- }- static new(-inner: {appName: string; appId: string; pid: number }): Guest_ {- return new Guest_(inner);- }-- static instanceOf(obj: any): obj is Guest_ {- return obj.tag === AppPickerTileIcon_Tags.Guest;- }-- }-- type None__interface = {- tag: AppPickerTileIcon_Tags.None- };+ checked: boolean,/**- * No icon to show.+ * The line under it.*/- class None_ extends UniffiEnum implements None__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerTileIcon";- readonly tag = AppPickerTileIcon_Tags.None;- constructor() {- super("AppPickerTileIcon", "None");- }-- static new(): None_ {- return new None_();- }-- static instanceOf(obj: any): obj is None_ {- return obj.tag === AppPickerTileIcon_Tags.None;- }-- }-- function instanceOf(obj: any): obj is AppPickerTileIcon {- return obj[uniffiTypeNameSymbol] === "AppPickerTileIcon";- }+ note: string+}+/**+ * Generated factory for {@link AppOnboardingCheckbox} record objects.+ */+export const AppOnboardingCheckbox = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppOnboardingCheckbox, ReturnType<typeof defaults>>(defaults);+ })();return Object.freeze({- instanceOf,- Host: Host_,- Guest: Guest_,- None: None_+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingCheckbox>,});-})();-export type AppPickerTileIcon = InstanceType<- typeof AppPickerTileIcon['Host' | 'Guest' | 'None']->;-// FfiConverter for enum AppPickerTileIcon-const FfiConverterTypeAppPickerTileIcon = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPickerTileIcon;+const FfiConverterTypeAppOnboardingCheckbox = (() => {+ type TypeName = AppOnboardingCheckbox;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppPickerTileIcon.Host({path: FfiConverterString.read(from) });- case 2: return new AppPickerTileIcon.Guest({appName: FfiConverterString.read(from), appId: FfiConverterString.read(from), pid: FfiConverterUInt32.read(from) });- case 3: return new AppPickerTileIcon.None();- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ label: FfiConverterString.read(from),+ checked: FfiConverterBool.read(from),+ note: FfiConverterString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppPickerTileIcon_Tags.Host: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterString.write(inner.path, into);- return;- }- case AppPickerTileIcon_Tags.Guest: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.appName, into);- FfiConverterString.write(inner.appId, into);- FfiConverterUInt32.write(inner.pid, into);- return;- }- case AppPickerTileIcon_Tags.None: {- ordinalConverter.write(3, into);- return;- }- default:- // Throwing from here means that AppPickerTileIcon_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.checked, into);+ FfiConverterString.write(value.note, into);}allocationSize(value: TypeName): number {- switch (value.tag) {- case AppPickerTileIcon_Tags.Host: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.path);- return size;- }- case AppPickerTileIcon_Tags.Guest: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.appName);- size += FfiConverterString.allocationSize(inner.appId);- size += FfiConverterUInt32.allocationSize(inner.pid);- return size;- }- case AppPickerTileIcon_Tags.None: {- return ordinalConverter.allocationSize(3);- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.checked) ++ FfiConverterString.allocationSize(value.note);+}- }+ };return new FFIConverter();})();--// Enum: AppPickerTileThumbnail-export enum AppPickerTileThumbnail_Tags {- HostWindow = "HostWindow",- GuestWindow = "GuestWindow",- None = "None"-}-export const AppPickerTileThumbnail = (() => {-- type HostWindow__interface = {- tag: AppPickerTileThumbnail_Tags.HostWindow;- inner:-Readonly<{windowId: number}>- };+export type AppOnboardingCopy = {/**- * One of this machine's windows (the window-drag preview source, the- * SDK's `Teleport.captureWindowThumbnail`).+ * "Back".*/- class HostWindow_ extends UniffiEnum implements HostWindow__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerTileThumbnail";- readonly tag = AppPickerTileThumbnail_Tags.HostWindow;- readonly inner:-Readonly<{windowId: number}>;- constructor(-inner: {windowId: number }) {- super("AppPickerTileThumbnail", "HostWindow");-- this.inner = Object.freeze(inner);- }- static new(-inner: {windowId: number }): HostWindow_ {- return new HostWindow_(inner);- }-- static instanceOf(obj: any): obj is HostWindow_ {- return obj.tag === AppPickerTileThumbnail_Tags.HostWindow;- }-- }-- type GuestWindow__interface = {- tag: AppPickerTileThumbnail_Tags.GuestWindow;- inner:-Readonly<{windowId: string; epoch: bigint}>- };+ back: string,/**- * One of the Space's windows (the SDK's `Space.windowThumbnail`).+ * "Skip".*/- class GuestWindow_ extends UniffiEnum implements GuestWindow__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerTileThumbnail";- readonly tag = AppPickerTileThumbnail_Tags.GuestWindow;- readonly inner:-Readonly<{windowId: string; epoch: bigint}>;- constructor(-inner: {windowId: string; epoch: bigint }) {- super("AppPickerTileThumbnail", "GuestWindow");-- this.inner = Object.freeze(inner);- }- static new(-inner: {windowId: string; epoch: bigint }): GuestWindow_ {- return new GuestWindow_(inner);- }-- static instanceOf(obj: any): obj is GuestWindow_ {- return obj.tag === AppPickerTileThumbnail_Tags.GuestWindow;- }-- }-- type None__interface = {- tag: AppPickerTileThumbnail_Tags.None- };+ skip: string,/**- * No window to preview (the tile shows the icon large).+ * "Continue".*/- class None_ extends UniffiEnum implements None__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerTileThumbnail";- readonly tag = AppPickerTileThumbnail_Tags.None;- constructor() {- super("AppPickerTileThumbnail", "None");- }-- static new(): None_ {- return new None_();- }-- static instanceOf(obj: any): obj is None_ {- return obj.tag === AppPickerTileThumbnail_Tags.None;- }-- }-- function instanceOf(obj: any): obj is AppPickerTileThumbnail {- return obj[uniffiTypeNameSymbol] === "AppPickerTileThumbnail";- }-- return Object.freeze({- instanceOf,- HostWindow: HostWindow_,- GuestWindow: GuestWindow_,- None: None_- });--})();-export type AppPickerTileThumbnail = InstanceType<- typeof AppPickerTileThumbnail['HostWindow' | 'GuestWindow' | 'None']->;--// FfiConverter for enum AppPickerTileThumbnail-const FfiConverterTypeAppPickerTileThumbnail = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPickerTileThumbnail;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppPickerTileThumbnail.HostWindow({windowId: FfiConverterUInt32.read(from) });- case 2: return new AppPickerTileThumbnail.GuestWindow({windowId: FfiConverterString.read(from), epoch: FfiConverterUInt64.read(from) });- case 3: return new AppPickerTileThumbnail.None();- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppPickerTileThumbnail_Tags.HostWindow: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterUInt32.write(inner.windowId, into);- return;- }- case AppPickerTileThumbnail_Tags.GuestWindow: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.windowId, into);- FfiConverterUInt64.write(inner.epoch, into);- return;- }- case AppPickerTileThumbnail_Tags.None: {- ordinalConverter.write(3, into);- return;- }- default:- // Throwing from here means that AppPickerTileThumbnail_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case AppPickerTileThumbnail_Tags.HostWindow: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterUInt32.allocationSize(inner.windowId);- return size;- }- case AppPickerTileThumbnail_Tags.GuestWindow: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.windowId);- size += FfiConverterUInt64.allocationSize(inner.epoch);- return size;- }- case AppPickerTileThumbnail_Tags.None: {- return ordinalConverter.allocationSize(3);- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- }- return new FFIConverter();-})();--export type AppPickerTile = {+ continueLabel: string,/**- * The catalog entry id (Apps) or the window id.+ * "Try again".*/- id: string,+ tryAgain: string,/**- * One line: the app's name, or the window's title.+ * "Checking…" (the install plan loads).*/- title: string,+ checking: string,/**- * The tooltip: what the app can take, why not, or the full title.+ * The install script when the app bundles no `cua`.*/- help: string,+ installScript: string,/**- * Dimmed and not choosable.+ * "Install".*/- disabled: boolean,+ install: string,/**- * Highlighted (keyboard or click).+ * "Installing…".*/- selected: boolean,+ installing: string,/**- * The icon.+ * The PATH switch.*/- icon: AppPickerTileIcon,+ addToPath: string,/**- * The preview.+ * When another `cua` comes first on PATH.*/- thumbnail: AppPickerTileThumbnail+ shadowed: string,+ /**+ * "Sign in".+ */+ signIn: string,+ /**+ * While the browser is open.+ */+ signInWaiting: string,+ /**+ * While agents are detected.+ */+ agentsLooking: string,+ /**+ * No agent found.+ */+ agentsNone: string,+ /**+ * The skills switch.+ */+ agentsSkills: string,+ /**+ * The MCP switch.+ */+ agentsMcp: string,+ /**+ * "Set up".+ */+ agentsSetUp: string,+ /**+ * "Setting up…".+ */+ agentsSettingUp: string,+ /**+ * After setup: heading.+ */+ agentsDoneTitle: string,+ /**+ * After setup: one line.+ */+ agentsDoneLede: string,+ /**+ * The background computer-use card's one line (its checkbox).+ */+ agentsDriver: string,+ /**+ * The card's miniature, for accessibility.+ */+ agentsDriverImage: string,+ /**+ * Over the permission rows (Done, after host setup).+ */+ permissionsTitle: string,+ /**+ * The permission rows' button.+ */+ openSettings: string,+ /**+ * The Sign in page's Teams line ("Teams · coming soon").+ */+ teams: string,+ /**+ * Its link ("Join the waitlist").+ */+ teamsLink: string,+ /**+ * The link's URL: the website's Teams waitlist (the app collects+ * nothing).+ */+ teamsUrl: string}/**- * Generated factory for {@link AppPickerTile} record objects.+ * Generated factory for {@link AppOnboardingCopy} record objects.*/-export const AppPickerTile = (() => {+export const AppOnboardingCopy = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPickerTile, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppOnboardingCopy, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPickerTile>,+ defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingCopy>,});})();-const FfiConverterTypeAppPickerTile = (() => {- type TypeName = AppPickerTile;+const FfiConverterTypeAppOnboardingCopy = (() => {+ type TypeName = AppOnboardingCopy;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- help: FfiConverterString.read(from),- disabled: FfiConverterBool.read(from),- selected: FfiConverterBool.read(from),- icon: FfiConverterTypeAppPickerTileIcon.read(from),- thumbnail: FfiConverterTypeAppPickerTileThumbnail.read(from)+ back: FfiConverterString.read(from),+ skip: FfiConverterString.read(from),+ continueLabel: FfiConverterString.read(from),+ tryAgain: FfiConverterString.read(from),+ checking: FfiConverterString.read(from),+ installScript: FfiConverterString.read(from),+ install: FfiConverterString.read(from),+ installing: FfiConverterString.read(from),+ addToPath: FfiConverterString.read(from),+ shadowed: FfiConverterString.read(from),+ signIn: FfiConverterString.read(from),+ signInWaiting: FfiConverterString.read(from),+ agentsLooking: FfiConverterString.read(from),+ agentsNone: FfiConverterString.read(from),+ agentsSkills: FfiConverterString.read(from),+ agentsMcp: FfiConverterString.read(from),+ agentsSetUp: FfiConverterString.read(from),+ agentsSettingUp: FfiConverterString.read(from),+ agentsDoneTitle: FfiConverterString.read(from),+ agentsDoneLede: FfiConverterString.read(from),+ agentsDriver: FfiConverterString.read(from),+ agentsDriverImage: FfiConverterString.read(from),+ permissionsTitle: FfiConverterString.read(from),+ openSettings: FfiConverterString.read(from),+ teams: FfiConverterString.read(from),+ teamsLink: FfiConverterString.read(from),+ teamsUrl: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.help, into);- FfiConverterBool.write(value.disabled, into);- FfiConverterBool.write(value.selected, into);- FfiConverterTypeAppPickerTileIcon.write(value.icon, into);- FfiConverterTypeAppPickerTileThumbnail.write(value.thumbnail, into);+ FfiConverterString.write(value.back, into);+ FfiConverterString.write(value.skip, into);+ FfiConverterString.write(value.continueLabel, into);+ FfiConverterString.write(value.tryAgain, into);+ FfiConverterString.write(value.checking, into);+ FfiConverterString.write(value.installScript, into);+ FfiConverterString.write(value.install, into);+ FfiConverterString.write(value.installing, into);+ FfiConverterString.write(value.addToPath, into);+ FfiConverterString.write(value.shadowed, into);+ FfiConverterString.write(value.signIn, into);+ FfiConverterString.write(value.signInWaiting, into);+ FfiConverterString.write(value.agentsLooking, into);+ FfiConverterString.write(value.agentsNone, into);+ FfiConverterString.write(value.agentsSkills, into);+ FfiConverterString.write(value.agentsMcp, into);+ FfiConverterString.write(value.agentsSetUp, into);+ FfiConverterString.write(value.agentsSettingUp, into);+ FfiConverterString.write(value.agentsDoneTitle, into);+ FfiConverterString.write(value.agentsDoneLede, into);+ FfiConverterString.write(value.agentsDriver, into);+ FfiConverterString.write(value.agentsDriverImage, into);+ FfiConverterString.write(value.permissionsTitle, into);+ FfiConverterString.write(value.openSettings, into);+ FfiConverterString.write(value.teams, into);+ FfiConverterString.write(value.teamsLink, into);+ FfiConverterString.write(value.teamsUrl, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.help) +- FfiConverterBool.allocationSize(value.disabled) +- FfiConverterBool.allocationSize(value.selected) +- FfiConverterTypeAppPickerTileIcon.allocationSize(value.icon) +- FfiConverterTypeAppPickerTileThumbnail.allocationSize(value.thumbnail);+ return FfiConverterString.allocationSize(value.back) ++ FfiConverterString.allocationSize(value.skip) ++ FfiConverterString.allocationSize(value.continueLabel) ++ FfiConverterString.allocationSize(value.tryAgain) ++ FfiConverterString.allocationSize(value.checking) ++ FfiConverterString.allocationSize(value.installScript) ++ FfiConverterString.allocationSize(value.install) ++ FfiConverterString.allocationSize(value.installing) ++ FfiConverterString.allocationSize(value.addToPath) ++ FfiConverterString.allocationSize(value.shadowed) ++ FfiConverterString.allocationSize(value.signIn) ++ FfiConverterString.allocationSize(value.signInWaiting) ++ FfiConverterString.allocationSize(value.agentsLooking) ++ FfiConverterString.allocationSize(value.agentsNone) ++ FfiConverterString.allocationSize(value.agentsSkills) ++ FfiConverterString.allocationSize(value.agentsMcp) ++ FfiConverterString.allocationSize(value.agentsSetUp) ++ FfiConverterString.allocationSize(value.agentsSettingUp) ++ FfiConverterString.allocationSize(value.agentsDoneTitle) ++ FfiConverterString.allocationSize(value.agentsDoneLede) ++ FfiConverterString.allocationSize(value.agentsDriver) ++ FfiConverterString.allocationSize(value.agentsDriverImage) ++ FfiConverterString.allocationSize(value.permissionsTitle) ++ FfiConverterString.allocationSize(value.openSettings) ++ FfiConverterString.allocationSize(value.teams) ++ FfiConverterString.allocationSize(value.teamsLink) ++ FfiConverterString.allocationSize(value.teamsUrl);}};return new FFIConverter();})();-export type AppPickerTileSection = {+export enum AppOnboardingStep {/**- * Title, empty for none.+ * Welcome.*/- title: string,+ Welcome = "welcome",/**- * Tiles, in order.+ * Sign in to Cua.*/- tiles: Array<AppPickerTile>+ Signin = "signin",+ /**+ * Coding agents: cua skills and the cua MCP server.+ */+ Agents = "agents",+ /**+ * Where Cua Spaces shows up: the notch and the menu bar, or the menu+ * bar only (the "Spaces tab in the notch" setting).+ */+ Presentation = "presentation",+ /**+ * The Cua Volume as a Finder volume (a mount on Linux), off unless+ * ticked. Skipped where it cannot mount (Windows).+ */+ Drive = "drive",+ /**+ * Access other machines, or set this one up for unattended access.+ */+ Mode = "mode",+ /**+ * Done.+ */+ Done = "done"}-/**- * Generated factory for {@link AppPickerTileSection} record objects.- */-export const AppPickerTileSection = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPickerTileSection, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPickerTileSection>,- });-})();--const FfiConverterTypeAppPickerTileSection = (() => {- type TypeName = AppPickerTileSection;+const FfiConverterTypeAppOnboardingStep = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppOnboardingStep;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- title: FfiConverterString.read(from),- tiles: FfiConverterSequenceTypeAppPickerTile.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppOnboardingStep.Welcome;+ case 2: return AppOnboardingStep.Signin;+ case 3: return AppOnboardingStep.Agents;+ case 4: return AppOnboardingStep.Presentation;+ case 5: return AppOnboardingStep.Drive;+ case 6: return AppOnboardingStep.Mode;+ case 7: return AppOnboardingStep.Done;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppPickerTile.write(value.tiles, into);+ switch (value) {+ case AppOnboardingStep.Welcome: return ordinalConverter.write(1, into);+ case AppOnboardingStep.Signin: return ordinalConverter.write(2, into);+ case AppOnboardingStep.Agents: return ordinalConverter.write(3, into);+ case AppOnboardingStep.Presentation: return ordinalConverter.write(4, into);+ case AppOnboardingStep.Drive: return ordinalConverter.write(5, into);+ case AppOnboardingStep.Mode: return ordinalConverter.write(6, into);+ case AppOnboardingStep.Done: return ordinalConverter.write(7, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppPickerTile.allocationSize(value.tiles);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppPickerGrid = {+export enum AppDriveStepRequest {/**- * Sections, in order.+ * `volume_mount`; answer with `drive-mounted`.*/- sections: Array<AppPickerTileSection>,+ Mount = "mount",/**- * When there are no tiles: "No apps match." and the like.+ * `volume_unmount`; answer with `drive-mounted`.*/- emptyText?: string+ Unmount = "unmount"}-/**- * Generated factory for {@link AppPickerGrid} record objects.- */-export const AppPickerGrid = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPickerGrid, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPickerGrid>,- });-})();--const FfiConverterTypeAppPickerGrid = (() => {- type TypeName = AppPickerGrid;+const FfiConverterTypeAppDriveStepRequest = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppDriveStepRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- sections: FfiConverterSequenceTypeAppPickerTileSection.read(from),- emptyText: FfiConverterOptionalString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppDriveStepRequest.Mount;+ case 2: return AppDriveStepRequest.Unmount;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppPickerTileSection.write(value.sections, into);- FfiConverterOptionalString.write(value.emptyText, into);+ switch (value) {+ case AppDriveStepRequest.Mount: return ordinalConverter.write(1, into);+ case AppDriveStepRequest.Unmount: return ordinalConverter.write(2, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppPickerTileSection.allocationSize(value.sections) +- FfiConverterOptionalString.allocationSize(value.emptyText);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppPickerGridPrimary = {+export enum AppStorageChoice {/**- * The label.+ * This machine (the `fs` backend, no setup).*/- label: string,+ Local = "local",/**- * Enabled.+ * The user's own S3-compatible bucket.*/- enabled: boolean-}--/**- * Generated factory for {@link AppPickerGridPrimary} record objects.- */-export const AppPickerGridPrimary = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPickerGridPrimary, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPickerGridPrimary>,- });-})();--const FfiConverterTypeAppPickerGridPrimary = (() => {- type TypeName = AppPickerGridPrimary;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- label: FfiConverterString.read(from),- enabled: FfiConverterBool.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterBool.write(value.enabled, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterBool.allocationSize(value.enabled);-- }- };- return new FFIConverter();-})();--export enum AppPickerGridTab {- /**- * The app catalog.- */- Apps = "apps",- /**- * This machine's open windows.- */- Windows = "windows",+ S3 = "s3",/**- * The Space's windows.+ * Decide later, in Settings, Storage.*/- Space = "space"+ Later = "later"}-const FfiConverterTypeAppPickerGridTab = (() => {+const FfiConverterTypeAppStorageChoice = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppPickerGridTab;+ type TypeName = AppStorageChoice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppPickerGridTab.Apps;- case 2: return AppPickerGridTab.Windows;- case 3: return AppPickerGridTab.Space;+ case 1: return AppStorageChoice.Local;+ case 2: return AppStorageChoice.S3;+ case 3: return AppStorageChoice.Later;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppPickerGridTab.Apps: return ordinalConverter.write(1, into);- case AppPickerGridTab.Windows: return ordinalConverter.write(2, into);- case AppPickerGridTab.Space: return ordinalConverter.write(3, into);+ case AppStorageChoice.Local: return ordinalConverter.write(1, into);+ case AppStorageChoice.S3: return ordinalConverter.write(2, into);+ case AppStorageChoice.Later: return ordinalConverter.write(3, into);}}allocationSize(value: TypeName): number {@@ -27530,2111 +26824,2101 @@ const FfiConverterTypeAppPickerGridTab = (() => {return new FFIConverter();})();-export type AppPickerGridTabItem = {- /**- * Which tab.- */- tab: AppPickerGridTab,- /**- * Its label.- */- label: string+export type AppStorageForm = {+ backend: string,+ endpoint: string,+ region: string,+ bucket: string,+ root: string,+ pathStyle: boolean,+ accessKeyId: string,+ secretAccessKey: string}/**- * Generated factory for {@link AppPickerGridTabItem} record objects.+ * Generated factory for {@link AppStorageForm} record objects.*/-export const AppPickerGridTabItem = (() => {+export const AppStorageForm = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPickerGridTabItem, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStorageForm, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPickerGridTabItem>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStorageForm>,});})();-const FfiConverterTypeAppPickerGridTabItem = (() => {- type TypeName = AppPickerGridTabItem;+const FfiConverterTypeAppStorageForm = (() => {+ type TypeName = AppStorageForm;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- tab: FfiConverterTypeAppPickerGridTab.read(from),- label: FfiConverterString.read(from)+ backend: FfiConverterString.read(from),+ endpoint: FfiConverterString.read(from),+ region: FfiConverterString.read(from),+ bucket: FfiConverterString.read(from),+ root: FfiConverterString.read(from),+ pathStyle: FfiConverterBool.read(from),+ accessKeyId: FfiConverterString.read(from),+ secretAccessKey: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppPickerGridTab.write(value.tab, into);- FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.backend, into);+ FfiConverterString.write(value.endpoint, into);+ FfiConverterString.write(value.region, into);+ FfiConverterString.write(value.bucket, into);+ FfiConverterString.write(value.root, into);+ FfiConverterBool.write(value.pathStyle, into);+ FfiConverterString.write(value.accessKeyId, into);+ FfiConverterString.write(value.secretAccessKey, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppPickerGridTab.allocationSize(value.tab) +- FfiConverterString.allocationSize(value.label);+ return FfiConverterString.allocationSize(value.backend) ++ FfiConverterString.allocationSize(value.endpoint) ++ FfiConverterString.allocationSize(value.region) ++ FfiConverterString.allocationSize(value.bucket) ++ FfiConverterString.allocationSize(value.root) ++ FfiConverterBool.allocationSize(value.pathStyle) ++ FfiConverterString.allocationSize(value.accessKeyId) ++ FfiConverterString.allocationSize(value.secretAccessKey);}};return new FFIConverter();})();-export enum AppPickerAction {- /**- * Teleport the app.- */- Teleport = "teleport",- /**- * Stream the remote window here.- */- StreamRemote = "streamRemote",++// Enum: AppStorageRequest+export enum AppStorageRequest_Tags {+ Test = "Test",+ Save = "Save",+ Adopt = "Adopt",+ Mount = "Mount",+ Unmount = "Unmount",+ Reveal = "Reveal",+ OpenUrl = "OpenUrl",+ SetCache = "SetCache",+ ClearCache = "ClearCache"+}+export const AppStorageRequest = (() => {++ type Test__interface = {+ tag: AppStorageRequest_Tags.Test;+ inner:+Readonly<{update: AppDriveStorageUpdate}>+ };/**- * Streaming a local window is not built yet: an honest notice.+ * `volume_storage_set` with `dry_run`; answer with `checked`.*/- StreamLocalSoon = "streamLocalSoon"-}+ class Test_ extends UniffiEnum implements Test__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.Test;+ readonly inner:+Readonly<{update: AppDriveStorageUpdate}>;+ constructor(+inner: {update: AppDriveStorageUpdate }) {+ super("AppStorageRequest", "Test");-const FfiConverterTypeAppPickerAction = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPickerAction;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppPickerAction.Teleport;- case 2: return AppPickerAction.StreamRemote;- case 3: return AppPickerAction.StreamLocalSoon;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppPickerAction.Teleport: return ordinalConverter.write(1, into);- case AppPickerAction.StreamRemote: return ordinalConverter.write(2, into);- case AppPickerAction.StreamLocalSoon: return ordinalConverter.write(3, into);- }+ static new(+inner: {update: AppDriveStorageUpdate }): Test_ {+ return new Test_(inner);}- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);++ static instanceOf(obj: any): obj is Test_ {+ return obj.tag === AppStorageRequest_Tags.Test;}+}- return new FFIConverter();-})();-export type AppPickerPrimary = {- /**- * "Teleport" / "Stream".- */- label: string,- /**- * Action.- */- action: AppPickerAction,+ type Save__interface = {+ tag: AppStorageRequest_Tags.Save;+ inner:+Readonly<{update: AppDriveStorageUpdate}>+ };/**- * Enabled.+ * `volume_storage_set`; answer with `saved`.*/- enabled: boolean-}--/**- * Generated factory for {@link AppPickerPrimary} record objects.- */-export const AppPickerPrimary = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPickerPrimary, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPickerPrimary>,- });-})();+ class Save_ extends UniffiEnum implements Save__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.Save;+ readonly inner:+Readonly<{update: AppDriveStorageUpdate}>;+ constructor(+inner: {update: AppDriveStorageUpdate }) {+ super("AppStorageRequest", "Save");-const FfiConverterTypeAppPickerPrimary = (() => {- type TypeName = AppPickerPrimary;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- label: FfiConverterString.read(from),- action: FfiConverterTypeAppPickerAction.read(from),- enabled: FfiConverterBool.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterTypeAppPickerAction.write(value.action, into);- FfiConverterBool.write(value.enabled, into);+ static new(+inner: {update: AppDriveStorageUpdate }): Save_ {+ return new Save_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterTypeAppPickerAction.allocationSize(value.action) +- FfiConverterBool.allocationSize(value.enabled);+ static instanceOf(obj: any): obj is Save_ {+ return obj.tag === AppStorageRequest_Tags.Save;}- };- return new FFIConverter();-})();-export enum AppPickerStep {- /**- * Loading the catalog.- */- Loading = "loading",- /**- * Choosing an app.- */- Pick = "pick",- /**- * Choosing what moves.- */- Options = "options",- /**- * Planning.- */- Planning = "planning",+ }++ type Adopt__interface = {+ tag: AppStorageRequest_Tags.Adopt;+ inner:+Readonly<{update: AppDriveStorageUpdate}>+ };/**- * Reviewing the consent list.+ * `volume_storage_set` (keys from the credential store) for a bucket the+ * user's agent configured; answer with `adopted`.*/- Consent = "consent",+ class Adopt_ extends UniffiEnum implements Adopt__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.Adopt;+ readonly inner:+Readonly<{update: AppDriveStorageUpdate}>;+ constructor(+inner: {update: AppDriveStorageUpdate }) {+ super("AppStorageRequest", "Adopt");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {update: AppDriveStorageUpdate }): Adopt_ {+ return new Adopt_(inner);+ }++ static instanceOf(obj: any): obj is Adopt_ {+ return obj.tag === AppStorageRequest_Tags.Adopt;+ }++ }++ type Mount__interface = {+ tag: AppStorageRequest_Tags.Mount+ };/**- * Running.+ * `volume_mount`.*/- Running = "running",+ class Mount_ extends UniffiEnum implements Mount__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.Mount;+ constructor() {+ super("AppStorageRequest", "Mount");+ }++ static new(): Mount_ {+ return new Mount_();+ }++ static instanceOf(obj: any): obj is Mount_ {+ return obj.tag === AppStorageRequest_Tags.Mount;+ }++ }++ type Unmount__interface = {+ tag: AppStorageRequest_Tags.Unmount+ };/**- * Done.+ * `volume_unmount`.*/- Done = "done",+ class Unmount_ extends UniffiEnum implements Unmount__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.Unmount;+ constructor() {+ super("AppStorageRequest", "Unmount");+ }++ static new(): Unmount_ {+ return new Unmount_();+ }++ static instanceOf(obj: any): obj is Unmount_ {+ return obj.tag === AppStorageRequest_Tags.Unmount;+ }++ }++ type Reveal__interface = {+ tag: AppStorageRequest_Tags.Reveal;+ inner:+Readonly<{path: string}>+ };/**- * Failed.+ * Show the mount in the file manager (the shell's own call).*/- Error = "error"-}+ class Reveal_ extends UniffiEnum implements Reveal__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.Reveal;+ readonly inner:+Readonly<{path: string}>;+ constructor(+inner: {path: string }) {+ super("AppStorageRequest", "Reveal");-const FfiConverterTypeAppPickerStep = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPickerStep;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppPickerStep.Loading;- case 2: return AppPickerStep.Pick;- case 3: return AppPickerStep.Options;- case 4: return AppPickerStep.Planning;- case 5: return AppPickerStep.Consent;- case 6: return AppPickerStep.Running;- case 7: return AppPickerStep.Done;- case 8: return AppPickerStep.Error;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppPickerStep.Loading: return ordinalConverter.write(1, into);- case AppPickerStep.Pick: return ordinalConverter.write(2, into);- case AppPickerStep.Options: return ordinalConverter.write(3, into);- case AppPickerStep.Planning: return ordinalConverter.write(4, into);- case AppPickerStep.Consent: return ordinalConverter.write(5, into);- case AppPickerStep.Running: return ordinalConverter.write(6, into);- case AppPickerStep.Done: return ordinalConverter.write(7, into);- case AppPickerStep.Error: return ordinalConverter.write(8, into);- }+ static new(+inner: {path: string }): Reveal_ {+ return new Reveal_(inner);}- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);++ static instanceOf(obj: any): obj is Reveal_ {+ return obj.tag === AppStorageRequest_Tags.Reveal;}+}- return new FFIConverter();-})();-export type AppPlanStepView = {- /**- * `install`, `files`, `state`, `launch`.- */- kind: string,+ type OpenUrl__interface = {+ tag: AppStorageRequest_Tags.OpenUrl;+ inner:+Readonly<{url: string}>+ };/**- * One line.+ * Open a URL (System Settings' file system extensions).*/- summary: string-}--/**- * Generated factory for {@link AppPlanStepView} record objects.- */-export const AppPlanStepView = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPlanStepView, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPlanStepView>,- });-})();+ class OpenUrl_ extends UniffiEnum implements OpenUrl__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.OpenUrl;+ readonly inner:+Readonly<{url: string}>;+ constructor(+inner: {url: string }) {+ super("AppStorageRequest", "OpenUrl");-const FfiConverterTypeAppPlanStepView = (() => {- type TypeName = AppPlanStepView;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- kind: FfiConverterString.read(from),- summary: FfiConverterString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.kind, into);- FfiConverterString.write(value.summary, into);+ static new(+inner: {url: string }): OpenUrl_ {+ return new OpenUrl_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.summary);+ static instanceOf(obj: any): obj is OpenUrl_ {+ return obj.tag === AppStorageRequest_Tags.OpenUrl;}- };- return new FFIConverter();-})();-export type AppTeleportPlan = {- /**- * The app.- */- app: AppCatalogEntry,- /**- * Target Space.- */- spaceId: string,- /**- * What moves.- */- moves: AppTeleportMove,- /**- * Steps.- */- steps: Array<AppPlanStepView>,- /**- * Consent lines.- */- consent: Array<AppConsentItem>,- /**- * Any line is a secret.- */- sensitive: boolean,- /**- * Bytes that leave this machine.- */- totalBytes: bigint,- /**- * Caveats.- */- warnings: Array<string>,- /**- * This Space is reached through a relay connection that predates- * end-to-end sealing: a secret this plan sends would cross it in the- * clear (S1). Needs `acknowledgeRelayPlaintext` the same way a secret- * needs `acknowledgeSensitive`. Defaults to `false`: older fixtures- * and a plan from a relay that predates the capability both read as- * sealed (never retroactively flagged).- */- relayUnsealed: boolean,+ }++ type SetCache__interface = {+ tag: AppStorageRequest_Tags.SetCache;+ inner:+Readonly<{capacityBytes: bigint}>+ };/**- * The SDK's JSON for this plan.+ * `volume_cache_set`.*/- json: string-}--/**- * Generated factory for {@link AppTeleportPlan} record objects.- */-export const AppTeleportPlan = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppTeleportPlan, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTeleportPlan>,- });-})();+ class SetCache_ extends UniffiEnum implements SetCache__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.SetCache;+ readonly inner:+Readonly<{capacityBytes: bigint}>;+ constructor(+inner: {capacityBytes: bigint }) {+ super("AppStorageRequest", "SetCache");-const FfiConverterTypeAppTeleportPlan = (() => {- type TypeName = AppTeleportPlan;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- app: FfiConverterTypeAppCatalogEntry.read(from),- spaceId: FfiConverterString.read(from),- moves: FfiConverterTypeAppTeleportMove.read(from),- steps: FfiConverterSequenceTypeAppPlanStepView.read(from),- consent: FfiConverterSequenceTypeAppConsentItem.read(from),- sensitive: FfiConverterBool.read(from),- totalBytes: FfiConverterUInt64.read(from),- warnings: FfiConverterSequenceString.read(from),- relayUnsealed: FfiConverterBool.read(from),- json: FfiConverterString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppCatalogEntry.write(value.app, into);- FfiConverterString.write(value.spaceId, into);- FfiConverterTypeAppTeleportMove.write(value.moves, into);- FfiConverterSequenceTypeAppPlanStepView.write(value.steps, into);- FfiConverterSequenceTypeAppConsentItem.write(value.consent, into);- FfiConverterBool.write(value.sensitive, into);- FfiConverterUInt64.write(value.totalBytes, into);- FfiConverterSequenceString.write(value.warnings, into);- FfiConverterBool.write(value.relayUnsealed, into);- FfiConverterString.write(value.json, into);+ static new(+inner: {capacityBytes: bigint }): SetCache_ {+ return new SetCache_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterTypeAppCatalogEntry.allocationSize(value.app) +- FfiConverterString.allocationSize(value.spaceId) +- FfiConverterTypeAppTeleportMove.allocationSize(value.moves) +- FfiConverterSequenceTypeAppPlanStepView.allocationSize(value.steps) +- FfiConverterSequenceTypeAppConsentItem.allocationSize(value.consent) +- FfiConverterBool.allocationSize(value.sensitive) +- FfiConverterUInt64.allocationSize(value.totalBytes) +- FfiConverterSequenceString.allocationSize(value.warnings) +- FfiConverterBool.allocationSize(value.relayUnsealed) +- FfiConverterString.allocationSize(value.json);+ static instanceOf(obj: any): obj is SetCache_ {+ return obj.tag === AppStorageRequest_Tags.SetCache;}- };- return new FFIConverter();-})();-export enum AppSendSource {- /**- * Read the live app now (a browser's cookies are decrypted, so macOS asks- * for Keychain access).- */- Live = "live",+ }++ type ClearCache__interface = {+ tag: AppStorageRequest_Tags.ClearCache+ };/**- * Send the items saved in the Keyvault for this app. Nothing is read from- * the host.+ * `volume_cache_clear`.*/- Vault = "vault"-}+ class ClearCache_ extends UniffiEnum implements ClearCache__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppStorageRequest";+ readonly tag = AppStorageRequest_Tags.ClearCache;+ constructor() {+ super("AppStorageRequest", "ClearCache");+ }-const FfiConverterTypeAppSendSource = (() => {+ static new(): ClearCache_ {+ return new ClearCache_();+ }++ static instanceOf(obj: any): obj is ClearCache_ {+ return obj.tag === AppStorageRequest_Tags.ClearCache;+ }++ }++ function instanceOf(obj: any): obj is AppStorageRequest {+ return obj[uniffiTypeNameSymbol] === "AppStorageRequest";+ }++ return Object.freeze({+ instanceOf,+ Test: Test_,+ Save: Save_,+ Adopt: Adopt_,+ Mount: Mount_,+ Unmount: Unmount_,+ Reveal: Reveal_,+ OpenUrl: OpenUrl_,+ SetCache: SetCache_,+ ClearCache: ClearCache_+ });++})();+export type AppStorageRequest = InstanceType<+ typeof AppStorageRequest['Test' | 'Save' | 'Adopt' | 'Mount' | 'Unmount' | 'Reveal' | 'OpenUrl' | 'SetCache' | 'ClearCache']+>;++// FfiConverter for enum AppStorageRequest+const FfiConverterTypeAppStorageRequest = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppSendSource;+ type TypeName = AppStorageRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppSendSource.Live;- case 2: return AppSendSource.Vault;+ case 1: return new AppStorageRequest.Test({update: FfiConverterTypeAppDriveStorageUpdate.read(from) });+ case 2: return new AppStorageRequest.Save({update: FfiConverterTypeAppDriveStorageUpdate.read(from) });+ case 3: return new AppStorageRequest.Adopt({update: FfiConverterTypeAppDriveStorageUpdate.read(from) });+ case 4: return new AppStorageRequest.Mount();+ case 5: return new AppStorageRequest.Unmount();+ case 6: return new AppStorageRequest.Reveal({path: FfiConverterString.read(from) });+ case 7: return new AppStorageRequest.OpenUrl({url: FfiConverterString.read(from) });+ case 8: return new AppStorageRequest.SetCache({capacityBytes: FfiConverterUInt64.read(from) });+ case 9: return new AppStorageRequest.ClearCache();default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppSendSource.Live: return ordinalConverter.write(1, into);- case AppSendSource.Vault: return ordinalConverter.write(2, into);+ switch (value.tag) {+ case AppStorageRequest_Tags.Test: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterTypeAppDriveStorageUpdate.write(inner.update, into);+ return;+ }+ case AppStorageRequest_Tags.Save: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterTypeAppDriveStorageUpdate.write(inner.update, into);+ return;+ }+ case AppStorageRequest_Tags.Adopt: {+ ordinalConverter.write(3, into);+ const inner = value.inner;+ FfiConverterTypeAppDriveStorageUpdate.write(inner.update, into);+ return;+ }+ case AppStorageRequest_Tags.Mount: {+ ordinalConverter.write(4, into);+ return;+ }+ case AppStorageRequest_Tags.Unmount: {+ ordinalConverter.write(5, into);+ return;+ }+ case AppStorageRequest_Tags.Reveal: {+ ordinalConverter.write(6, into);+ const inner = value.inner;+ FfiConverterString.write(inner.path, into);+ return;+ }+ case AppStorageRequest_Tags.OpenUrl: {+ ordinalConverter.write(7, into);+ const inner = value.inner;+ FfiConverterString.write(inner.url, into);+ return;+ }+ case AppStorageRequest_Tags.SetCache: {+ ordinalConverter.write(8, into);+ const inner = value.inner;+ FfiConverterUInt64.write(inner.capacityBytes, into);+ return;+ }+ case AppStorageRequest_Tags.ClearCache: {+ ordinalConverter.write(9, into);+ return;+ }+ default:+ // Throwing from here means that AppStorageRequest_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ switch (value.tag) {+ case AppStorageRequest_Tags.Test: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterTypeAppDriveStorageUpdate.allocationSize(inner.update);+ return size;+ }+ case AppStorageRequest_Tags.Save: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterTypeAppDriveStorageUpdate.allocationSize(inner.update);+ return size;+ }+ case AppStorageRequest_Tags.Adopt: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(3);+ size += FfiConverterTypeAppDriveStorageUpdate.allocationSize(inner.update);+ return size;+ }+ case AppStorageRequest_Tags.Mount: {+ return ordinalConverter.allocationSize(4);+ }+ case AppStorageRequest_Tags.Unmount: {+ return ordinalConverter.allocationSize(5);+ }+ case AppStorageRequest_Tags.Reveal: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(6);+ size += FfiConverterString.allocationSize(inner.path);+ return size;+ }+ case AppStorageRequest_Tags.OpenUrl: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(7);+ size += FfiConverterString.allocationSize(inner.url);+ return size;+ }+ case AppStorageRequest_Tags.SetCache: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(8);+ size += FfiConverterUInt64.allocationSize(inner.capacityBytes);+ return size;+ }+ case AppStorageRequest_Tags.ClearCache: {+ return ordinalConverter.allocationSize(9);+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}}return new FFIConverter();})();-export type KvDomainCount = {- /**- * Registrable domain.- */- domain: string,- /**- * Cookies.- */- cookies: number,- /**- * Cookies without an expiry.- */- sessionCookies: number,- /**- * localStorage values.- */- localStorage: number,- /**- * Saved passwords.- */- passwords: number,+export type AppStorageState = {+ form: AppStorageForm,/**- * Looks like it keeps a sign-in.+ * The form differs from what is saved.*/- signin: boolean,+ dirty: boolean,+ busy: boolean,+ request?: AppStorageRequest,/**- * An identity provider.+ * The last test or save.*/- identityProvider: boolean,+ check?: AppDriveCheckInput,+ error?: string,/**- * Cookies that cannot be read (Chrome's app-bound encryption).+ * The bucket's fields show (else the agent prompt).*/- unavailable: number,+ manual: boolean,/**- * Why they cannot be read.+ * The last `volume_storage` seen (bucket, endpoint, region, keys), to+ * notice the agent connecting a bucket while the prompt shows.*/- unavailableReason: string+ seen?: string}/**- * Generated factory for {@link KvDomainCount} record objects.+ * Generated factory for {@link AppStorageState} record objects.*/-export const KvDomainCount = (() => {+export const AppStorageState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvDomainCount, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStorageState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvDomainCount>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStorageState>,});})();-const FfiConverterTypeKvDomainCount = (() => {- type TypeName = KvDomainCount;+const FfiConverterTypeAppStorageState = (() => {+ type TypeName = AppStorageState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- domain: FfiConverterString.read(from),- cookies: FfiConverterUInt32.read(from),- sessionCookies: FfiConverterUInt32.read(from),- localStorage: FfiConverterUInt32.read(from),- passwords: FfiConverterUInt32.read(from),- signin: FfiConverterBool.read(from),- identityProvider: FfiConverterBool.read(from),- unavailable: FfiConverterUInt32.read(from),- unavailableReason: FfiConverterString.read(from)+ form: FfiConverterTypeAppStorageForm.read(from),+ dirty: FfiConverterBool.read(from),+ busy: FfiConverterBool.read(from),+ request: FfiConverterOptionalTypeAppStorageRequest.read(from),+ check: FfiConverterOptionalTypeAppDriveCheckInput.read(from),+ error: FfiConverterOptionalString.read(from),+ manual: FfiConverterBool.read(from),+ seen: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.domain, into);- FfiConverterUInt32.write(value.cookies, into);- FfiConverterUInt32.write(value.sessionCookies, into);- FfiConverterUInt32.write(value.localStorage, into);- FfiConverterUInt32.write(value.passwords, into);- FfiConverterBool.write(value.signin, into);- FfiConverterBool.write(value.identityProvider, into);- FfiConverterUInt32.write(value.unavailable, into);- FfiConverterString.write(value.unavailableReason, into);+ FfiConverterTypeAppStorageForm.write(value.form, into);+ FfiConverterBool.write(value.dirty, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalTypeAppStorageRequest.write(value.request, into);+ FfiConverterOptionalTypeAppDriveCheckInput.write(value.check, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterBool.write(value.manual, into);+ FfiConverterOptionalString.write(value.seen, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.domain) +- FfiConverterUInt32.allocationSize(value.cookies) +- FfiConverterUInt32.allocationSize(value.sessionCookies) +- FfiConverterUInt32.allocationSize(value.localStorage) +- FfiConverterUInt32.allocationSize(value.passwords) +- FfiConverterBool.allocationSize(value.signin) +- FfiConverterBool.allocationSize(value.identityProvider) +- FfiConverterUInt32.allocationSize(value.unavailable) +- FfiConverterString.allocationSize(value.unavailableReason);+ return FfiConverterTypeAppStorageForm.allocationSize(value.form) ++ FfiConverterBool.allocationSize(value.dirty) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalTypeAppStorageRequest.allocationSize(value.request) ++ FfiConverterOptionalTypeAppDriveCheckInput.allocationSize(value.check) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterBool.allocationSize(value.manual) ++ FfiConverterOptionalString.allocationSize(value.seen);}};return new FFIConverter();})();-export type AppVaultSource = {- /**- * The app has saved items that can be sent (passwords never are).- */- available: boolean,- /**- * How many.- */- items: number,+export type AppTelemetryInput = {/**- * "saved 2 days ago".+ * Usage data is shared.*/- saved: string,+ enabled: boolean,/**- * The items chosen to send (ids).+ * The environment decides (`DO_NOT_TRACK`, `CUA_TELEMETRY`, CI): who.*/- selected: Array<string>,+ lockedBy?: string,/**- * The app's saved passwords (ids), sent only when ticked.+ * The first-run usage notice was already shown on this machine (by+ * `cua`, or an earlier run of the app): events may be sent before+ * Welcome is left.*/- passwordIds: Array<string>+ noticeShown: boolean}/**- * Generated factory for {@link AppVaultSource} record objects.+ * Generated factory for {@link AppTelemetryInput} record objects.*/-export const AppVaultSource = (() => {+export const AppTelemetryInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppVaultSource, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppTelemetryInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppVaultSource>,+ defaults: () => Object.freeze(defaults()) as Partial<AppTelemetryInput>,});})();-const FfiConverterTypeAppVaultSource = (() => {- type TypeName = AppVaultSource;+const FfiConverterTypeAppTelemetryInput = (() => {+ type TypeName = AppTelemetryInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- available: FfiConverterBool.read(from),- items: FfiConverterUInt32.read(from),- saved: FfiConverterString.read(from),- selected: FfiConverterSequenceString.read(from),- passwordIds: FfiConverterSequenceString.read(from)+ enabled: FfiConverterBool.read(from),+ lockedBy: FfiConverterOptionalString.read(from),+ noticeShown: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.available, into);- FfiConverterUInt32.write(value.items, into);- FfiConverterString.write(value.saved, into);- FfiConverterSequenceString.write(value.selected, into);- FfiConverterSequenceString.write(value.passwordIds, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterOptionalString.write(value.lockedBy, into);+ FfiConverterBool.write(value.noticeShown, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.available) +- FfiConverterUInt32.allocationSize(value.items) +- FfiConverterString.allocationSize(value.saved) +- FfiConverterSequenceString.allocationSize(value.selected) +- FfiConverterSequenceString.allocationSize(value.passwordIds);+ return FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterOptionalString.allocationSize(value.lockedBy) ++ FfiConverterBool.allocationSize(value.noticeShown);}};return new FFIConverter();})();-export type AppReviewChoice = {+export type AppOnboardingState = {/**- * Where to send from.+ * Page.*/- source: AppSendSource,+ step: AppOnboardingStep,/**- * The browser's sites with counts (none until read, or for an app that- * is not a browser).+ * Where `cua` was installed on first launch, when it was.*/- domains: Array<KvDomainCount>,+ cliTarget?: string,/**- * The sites chosen.+ * Menu bar only (no notch). The same setting as Settings' "Spaces tab+ * in the notch".*/- selectedDomains: Array<string>,+ menuBar: boolean,/**- * The sites list's search text.+ * Signed-in identity.*/- query: string,+ identity?: string,/**- * Consent items (keys) turned off.+ * Agents configured.*/- excluded: Array<string>,+ agents: Array<string>,/**- * The saved items.+ * The choice.*/- vault: AppVaultSource,+ mode?: AppOnboardingMode,/**- * The sites were asked for (a failure counts: the review then sends- * what the plan lists).+ * The installer's preselection (`--mode host`, MDM file).*/- loaded: boolean,+ installerMode?: AppOnboardingMode,/**- * The saved passwords are ticked to send (off unless the user ticks- * them; never remembered).+ * This machine's system, once the drive was checked.*/- includePasswords: boolean-}--/**- * Generated factory for {@link AppReviewChoice} record objects.- */-export const AppReviewChoice = (() => {+ driveOs?: AppSpaceOs,+ /**+ * `volume_mount_status`, when the daemon answered.+ */+ driveStatus?: AppDriveMountInput,+ /**+ * The drive was checked (answered or not).+ */+ driveChecked: boolean,+ /**+ * The Cua Volume checkbox (off by default).+ */+ driveMount: boolean,+ /**+ * What the shell is running for the page.+ */+ driveRequest?: AppDriveStepRequest,+ /**+ * Why mounting failed.+ */+ driveError?: string,+ /**+ * `volume_storage`, when the daemon answered.+ */+ driveStorage?: AppDriveStorageInput,+ /**+ * Where the files live, as picked.+ */+ storageChoice: AppStorageChoice,+ /**+ * The home folder (paths show as `~/...`).+ */+ driveHome?: string,+ /**+ * The user picked (the saved backend no longer decides).+ */+ storagePicked: boolean,+ /**+ * The bucket form and its test or save+ * ([`crate::drive_settings`]'s state; its `request` is the shell's).+ */+ storage: AppStorageState,+ /**+ * Done's "Launch at login" checkbox (ticked unless unticked). The+ * shell applies it when the first run finishes.+ */+ launchAtLogin: boolean,+ /**+ * The usage-data switch on Welcome: the machine's telemetry setting+ * (Settings' "Share anonymous usage data", `cua telemetry off`), none+ * until the shell read it (then it shows on).+ */+ telemetry?: AppTelemetryInput,+ /**+ * Settings, Experiments: the Cua Volume page (and its Done line) only+ * while Cua Volume is on. Off until the shell says otherwise.+ */+ experiments: AppExperiments,+ /**+ * The run's start was counted (`onboarding_shown`, Welcome shown):+ * when Welcome showed on a machine whose usage notice was already+ * shown, else when Welcome was left. Once per run, however often+ * Welcome shows again (Back).+ */+ runCounted: boolean+}++/**+ * Generated factory for {@link AppOnboardingState} record objects.+ */+export const AppOnboardingState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppReviewChoice, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppOnboardingState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppReviewChoice>,+ defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingState>,});})();-const FfiConverterTypeAppReviewChoice = (() => {- type TypeName = AppReviewChoice;+const FfiConverterTypeAppOnboardingState = (() => {+ type TypeName = AppOnboardingState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- source: FfiConverterTypeAppSendSource.read(from),- domains: FfiConverterSequenceTypeKvDomainCount.read(from),- selectedDomains: FfiConverterSequenceString.read(from),- query: FfiConverterString.read(from),- excluded: FfiConverterSequenceString.read(from),- vault: FfiConverterTypeAppVaultSource.read(from),- loaded: FfiConverterBool.read(from),- includePasswords: FfiConverterBool.read(from)+ step: FfiConverterTypeAppOnboardingStep.read(from),+ cliTarget: FfiConverterOptionalString.read(from),+ menuBar: FfiConverterBool.read(from),+ identity: FfiConverterOptionalString.read(from),+ agents: FfiConverterSequenceString.read(from),+ mode: FfiConverterOptionalTypeAppOnboardingMode.read(from),+ installerMode: FfiConverterOptionalTypeAppOnboardingMode.read(from),+ driveOs: FfiConverterOptionalTypeAppSpaceOs.read(from),+ driveStatus: FfiConverterOptionalTypeAppDriveMountInput.read(from),+ driveChecked: FfiConverterBool.read(from),+ driveMount: FfiConverterBool.read(from),+ driveRequest: FfiConverterOptionalTypeAppDriveStepRequest.read(from),+ driveError: FfiConverterOptionalString.read(from),+ driveStorage: FfiConverterOptionalTypeAppDriveStorageInput.read(from),+ storageChoice: FfiConverterTypeAppStorageChoice.read(from),+ driveHome: FfiConverterOptionalString.read(from),+ storagePicked: FfiConverterBool.read(from),+ storage: FfiConverterTypeAppStorageState.read(from),+ launchAtLogin: FfiConverterBool.read(from),+ telemetry: FfiConverterOptionalTypeAppTelemetryInput.read(from),+ experiments: FfiConverterTypeAppExperiments.read(from),+ runCounted: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppSendSource.write(value.source, into);- FfiConverterSequenceTypeKvDomainCount.write(value.domains, into);- FfiConverterSequenceString.write(value.selectedDomains, into);- FfiConverterString.write(value.query, into);- FfiConverterSequenceString.write(value.excluded, into);- FfiConverterTypeAppVaultSource.write(value.vault, into);- FfiConverterBool.write(value.loaded, into);- FfiConverterBool.write(value.includePasswords, into);+ FfiConverterTypeAppOnboardingStep.write(value.step, into);+ FfiConverterOptionalString.write(value.cliTarget, into);+ FfiConverterBool.write(value.menuBar, into);+ FfiConverterOptionalString.write(value.identity, into);+ FfiConverterSequenceString.write(value.agents, into);+ FfiConverterOptionalTypeAppOnboardingMode.write(value.mode, into);+ FfiConverterOptionalTypeAppOnboardingMode.write(value.installerMode, into);+ FfiConverterOptionalTypeAppSpaceOs.write(value.driveOs, into);+ FfiConverterOptionalTypeAppDriveMountInput.write(value.driveStatus, into);+ FfiConverterBool.write(value.driveChecked, into);+ FfiConverterBool.write(value.driveMount, into);+ FfiConverterOptionalTypeAppDriveStepRequest.write(value.driveRequest, into);+ FfiConverterOptionalString.write(value.driveError, into);+ FfiConverterOptionalTypeAppDriveStorageInput.write(value.driveStorage, into);+ FfiConverterTypeAppStorageChoice.write(value.storageChoice, into);+ FfiConverterOptionalString.write(value.driveHome, into);+ FfiConverterBool.write(value.storagePicked, into);+ FfiConverterTypeAppStorageState.write(value.storage, into);+ FfiConverterBool.write(value.launchAtLogin, into);+ FfiConverterOptionalTypeAppTelemetryInput.write(value.telemetry, into);+ FfiConverterTypeAppExperiments.write(value.experiments, into);+ FfiConverterBool.write(value.runCounted, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppSendSource.allocationSize(value.source) +- FfiConverterSequenceTypeKvDomainCount.allocationSize(value.domains) +- FfiConverterSequenceString.allocationSize(value.selectedDomains) +- FfiConverterString.allocationSize(value.query) +- FfiConverterSequenceString.allocationSize(value.excluded) +- FfiConverterTypeAppVaultSource.allocationSize(value.vault) +- FfiConverterBool.allocationSize(value.loaded) +- FfiConverterBool.allocationSize(value.includePasswords);+ return FfiConverterTypeAppOnboardingStep.allocationSize(value.step) ++ FfiConverterOptionalString.allocationSize(value.cliTarget) ++ FfiConverterBool.allocationSize(value.menuBar) ++ FfiConverterOptionalString.allocationSize(value.identity) ++ FfiConverterSequenceString.allocationSize(value.agents) ++ FfiConverterOptionalTypeAppOnboardingMode.allocationSize(value.mode) ++ FfiConverterOptionalTypeAppOnboardingMode.allocationSize(value.installerMode) ++ FfiConverterOptionalTypeAppSpaceOs.allocationSize(value.driveOs) ++ FfiConverterOptionalTypeAppDriveMountInput.allocationSize(value.driveStatus) ++ FfiConverterBool.allocationSize(value.driveChecked) ++ FfiConverterBool.allocationSize(value.driveMount) ++ FfiConverterOptionalTypeAppDriveStepRequest.allocationSize(value.driveRequest) ++ FfiConverterOptionalString.allocationSize(value.driveError) ++ FfiConverterOptionalTypeAppDriveStorageInput.allocationSize(value.driveStorage) ++ FfiConverterTypeAppStorageChoice.allocationSize(value.storageChoice) ++ FfiConverterOptionalString.allocationSize(value.driveHome) ++ FfiConverterBool.allocationSize(value.storagePicked) ++ FfiConverterTypeAppStorageState.allocationSize(value.storage) ++ FfiConverterBool.allocationSize(value.launchAtLogin) ++ FfiConverterOptionalTypeAppTelemetryInput.allocationSize(value.telemetry) ++ FfiConverterTypeAppExperiments.allocationSize(value.experiments) ++ FfiConverterBool.allocationSize(value.runCounted);}};return new FFIConverter();})();-export enum AppTeleportRunPhase {- /**- * A step started.- */- Started = "started",- /**- * Bytes moved.- */- Progress = "progress",+export type AppStepDot = {/**- * A step finished.+ * Page.*/- Finished = "finished",+ step: AppOnboardingStep,/**- * A step failed.+ * Label.*/- Failed = "failed",+ label: string,/**- * All done.+ * Current.*/- Done = "done"+ current: boolean}-const FfiConverterTypeAppTeleportRunPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppTeleportRunPhase;+/**+ * Generated factory for {@link AppStepDot} record objects.+ */+export const AppStepDot = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppStepDot, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppStepDot>,+ });+})();++const FfiConverterTypeAppStepDot = (() => {+ type TypeName = AppStepDot;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppTeleportRunPhase.Started;- case 2: return AppTeleportRunPhase.Progress;- case 3: return AppTeleportRunPhase.Finished;- case 4: return AppTeleportRunPhase.Failed;- case 5: return AppTeleportRunPhase.Done;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ step: FfiConverterTypeAppOnboardingStep.read(from),+ label: FfiConverterString.read(from),+ current: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppTeleportRunPhase.Started: return ordinalConverter.write(1, into);- case AppTeleportRunPhase.Progress: return ordinalConverter.write(2, into);- case AppTeleportRunPhase.Finished: return ordinalConverter.write(3, into);- case AppTeleportRunPhase.Failed: return ordinalConverter.write(4, into);- case AppTeleportRunPhase.Done: return ordinalConverter.write(5, into);- }+ FfiConverterTypeAppOnboardingStep.write(value.step, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.current, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterTypeAppOnboardingStep.allocationSize(value.step) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.current);+}- }+ };return new FFIConverter();})();-export type AppTeleportRunEvent = {- /**- * Step index.- */- step: number,- /**- * Steps.- */- steps: number,+export type AppPresentationCard = {/**- * Step kind.+ * Menu bar only.*/- kind: string,+ menuBar: boolean,/**- * Phase.+ * "Notch and menu bar".*/- phase: AppTeleportRunPhase,+ title: string,/**- * Detail.+ * The card's id (`onboarding-notch`, `onboarding-menu-bar`): its+ * accessibility identifier and list key.*/- detail: string,+ id: string,/**- * Bytes done.+ * The miniature's spoken description.*/- doneBytes: bigint,+ imageLabel: string,/**- * Bytes total.+ * Picked.*/- totalBytes: bigint+ selected: boolean}/**- * Generated factory for {@link AppTeleportRunEvent} record objects.+ * Generated factory for {@link AppPresentationCard} record objects.*/-export const AppTeleportRunEvent = (() => {+export const AppPresentationCard = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppTeleportRunEvent, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPresentationCard, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTeleportRunEvent>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPresentationCard>,});})();-const FfiConverterTypeAppTeleportRunEvent = (() => {- type TypeName = AppTeleportRunEvent;+const FfiConverterTypeAppPresentationCard = (() => {+ type TypeName = AppPresentationCard;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- step: FfiConverterUInt32.read(from),- steps: FfiConverterUInt32.read(from),- kind: FfiConverterString.read(from),- phase: FfiConverterTypeAppTeleportRunPhase.read(from),- detail: FfiConverterString.read(from),- doneBytes: FfiConverterUInt64.read(from),- totalBytes: FfiConverterUInt64.read(from)+ menuBar: FfiConverterBool.read(from),+ title: FfiConverterString.read(from),+ id: FfiConverterString.read(from),+ imageLabel: FfiConverterString.read(from),+ selected: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.step, into);- FfiConverterUInt32.write(value.steps, into);- FfiConverterString.write(value.kind, into);- FfiConverterTypeAppTeleportRunPhase.write(value.phase, into);- FfiConverterString.write(value.detail, into);- FfiConverterUInt64.write(value.doneBytes, into);- FfiConverterUInt64.write(value.totalBytes, into);+ FfiConverterBool.write(value.menuBar, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.imageLabel, into);+ FfiConverterBool.write(value.selected, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.step) +- FfiConverterUInt32.allocationSize(value.steps) +- FfiConverterString.allocationSize(value.kind) +- FfiConverterTypeAppTeleportRunPhase.allocationSize(value.phase) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterUInt64.allocationSize(value.doneBytes) +- FfiConverterUInt64.allocationSize(value.totalBytes);+ return FfiConverterBool.allocationSize(value.menuBar) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.imageLabel) ++ FfiConverterBool.allocationSize(value.selected);}};return new FFIConverter();})();-export type AppTeleportRunReport = {- /**- * App id.- */- appId: string,- /**- * Installed.- */- installed: Array<string>,+export type AppUsageToggle = {/**- * Sent.+ * "Share anonymous usage data".*/- sent: Array<string>,+ label: string,/**- * Imported.+ * On.*/- imported: Array<string>,+ on: boolean,/**- * Skipped.+ * It can be changed (the environment does not decide).*/- skipped: Array<string>,+ enabled: boolean,/**- * Launched.+ * Why it cannot ("Set by env DO_NOT_TRACK").*/- launched: boolean+ help?: string}/**- * Generated factory for {@link AppTeleportRunReport} record objects.+ * Generated factory for {@link AppUsageToggle} record objects.*/-export const AppTeleportRunReport = (() => {+export const AppUsageToggle = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppTeleportRunReport, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppUsageToggle, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTeleportRunReport>,+ defaults: () => Object.freeze(defaults()) as Partial<AppUsageToggle>,});})();-const FfiConverterTypeAppTeleportRunReport = (() => {- type TypeName = AppTeleportRunReport;+const FfiConverterTypeAppUsageToggle = (() => {+ type TypeName = AppUsageToggle;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- appId: FfiConverterString.read(from),- installed: FfiConverterSequenceString.read(from),- sent: FfiConverterSequenceString.read(from),- imported: FfiConverterSequenceString.read(from),- skipped: FfiConverterSequenceString.read(from),- launched: FfiConverterBool.read(from)+ label: FfiConverterString.read(from),+ on: FfiConverterBool.read(from),+ enabled: FfiConverterBool.read(from),+ help: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.appId, into);- FfiConverterSequenceString.write(value.installed, into);- FfiConverterSequenceString.write(value.sent, into);- FfiConverterSequenceString.write(value.imported, into);- FfiConverterSequenceString.write(value.skipped, into);- FfiConverterBool.write(value.launched, into);+ FfiConverterString.write(value.label, into);+ FfiConverterBool.write(value.on, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterOptionalString.write(value.help, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.appId) +- FfiConverterSequenceString.allocationSize(value.installed) +- FfiConverterSequenceString.allocationSize(value.sent) +- FfiConverterSequenceString.allocationSize(value.imported) +- FfiConverterSequenceString.allocationSize(value.skipped) +- FfiConverterBool.allocationSize(value.launched);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.on) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterOptionalString.allocationSize(value.help);}};return new FFIConverter();})();-export type AppPickerState = {+export type AppOnboardingView = {/**- * Step.+ * Page.*/- step: AppPickerStep,+ step: AppOnboardingStep,/**- * The target Space's name.+ * Page dots.*/- spaceName: string,+ dots: Array<AppStepDot>,/**- * The catalog, once loaded.+ * Heading.*/- entries?: Array<AppCatalogEntry>,+ title: string,/**- * Search.+ * One line under it.*/- query: string,+ lede: string,/**- * Highlighted app.+ * The primary button.*/- selectedId?: string,+ primaryLabel: string,/**- * The chosen app.+ * A Skip button shows.*/- entry?: AppCatalogEntry,+ canSkip: boolean,/**- * What moves.+ * A Back button shows.*/- moves?: AppTeleportMove,+ canBack: boolean,/**- * Chosen files.+ * The stacked Cua mark shows (Welcome).*/- files: Array<string>,+ showMark: boolean,/**- * The opt-in groups checked on the options step (only planned with the- * signed-in state move). Each group's items are secrets the review- * lists and asks to acknowledge.+ * The machine choice to highlight (the installer's preselection).*/- sensitive: Array<AppSensitiveGroup>,+ preselectedMode: AppOnboardingMode,/**- * The plan under review.+ * Done's facts.*/- plan?: AppTeleportPlan,+ summary: Array<AppFact>,/**- * Secrets acknowledged.+ * This machine's two answers (the installer's preselection first+ * highlighted), on its page.*/- acknowledged: boolean,+ choices: Array<AppModeChoice>,/**- * "Save to Keyvault" checked: keep the captured session sealed in the- * Cua Keyvault after delivery, for reuse without asking again (shown- * alongside the acknowledgement, only when the plan is sensitive).+ * The presentation page's two cards, side by side.*/- saveToKeyvault: boolean,+ presentations: Array<AppPresentationCard>,/**- * [`Plan::relay_unsealed`]'s warning acknowledged (S1).+ * Done's example prompts ([`PROMPTS`]), one line each: shown under+ * both columns, scrolling slowly, to suggest what to ask a coding+ * agent. Not interactive.*/- acknowledgedRelayPlaintext: boolean,+ prompts: Array<string>,/**- * What the review sends: which sites, which items, from where.+ * The first-run telemetry notice (the Welcome page, so the first run+ * itself can be measured): nothing is sent before it has been shown+ * once.*/- choice: AppReviewChoice,+ notice?: string,/**- * Run events (last [`MAX_EVENTS`]).+ * Its link: label.*/- events: Array<AppTeleportRunEvent>,+ noticeLinkLabel?: string,/**- * The run's report.+ * Its link: URL.*/- report?: AppTeleportRunReport,+ noticeLinkUrl?: string,/**- * Error text.+ * Welcome's usage-data switch, next to the notice: nothing is sent+ * before the user leaves Welcome, and nothing at all while it is off.*/- error?: string,+ usage?: AppUsageToggle,/**- * The "needs the Cua app" prompt.+ * The Cua Volume page's card.*/- installPrompt?: AppInstallCuaPrompt,+ drive?: AppDriveCard,/**- * Where Back from an error goes.+ * Done's "Launch at login" checkbox.*/- errorBack: AppPickerStep+ launchAtLogin?: AppOnboardingCheckbox}/**- * Generated factory for {@link AppPickerState} record objects.+ * Generated factory for {@link AppOnboardingView} record objects.*/-export const AppPickerState = (() => {+export const AppOnboardingView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPickerState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppOnboardingView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPickerState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppOnboardingView>,});})();-const FfiConverterTypeAppPickerState = (() => {- type TypeName = AppPickerState;+const FfiConverterTypeAppOnboardingView = (() => {+ type TypeName = AppOnboardingView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- step: FfiConverterTypeAppPickerStep.read(from),- spaceName: FfiConverterString.read(from),- entries: FfiConverterOptionalSequenceTypeAppCatalogEntry.read(from),- query: FfiConverterString.read(from),- selectedId: FfiConverterOptionalString.read(from),- entry: FfiConverterOptionalTypeAppCatalogEntry.read(from),- moves: FfiConverterOptionalTypeAppTeleportMove.read(from),- files: FfiConverterSequenceString.read(from),- sensitive: FfiConverterSequenceTypeAppSensitiveGroup.read(from),- plan: FfiConverterOptionalTypeAppTeleportPlan.read(from),- acknowledged: FfiConverterBool.read(from),- saveToKeyvault: FfiConverterBool.read(from),- acknowledgedRelayPlaintext: FfiConverterBool.read(from),- choice: FfiConverterTypeAppReviewChoice.read(from),- events: FfiConverterSequenceTypeAppTeleportRunEvent.read(from),- report: FfiConverterOptionalTypeAppTeleportRunReport.read(from),- error: FfiConverterOptionalString.read(from),- installPrompt: FfiConverterOptionalTypeAppInstallCuaPrompt.read(from),- errorBack: FfiConverterTypeAppPickerStep.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppPickerStep.write(value.step, into);- FfiConverterString.write(value.spaceName, into);- FfiConverterOptionalSequenceTypeAppCatalogEntry.write(value.entries, into);- FfiConverterString.write(value.query, into);- FfiConverterOptionalString.write(value.selectedId, into);- FfiConverterOptionalTypeAppCatalogEntry.write(value.entry, into);- FfiConverterOptionalTypeAppTeleportMove.write(value.moves, into);- FfiConverterSequenceString.write(value.files, into);- FfiConverterSequenceTypeAppSensitiveGroup.write(value.sensitive, into);- FfiConverterOptionalTypeAppTeleportPlan.write(value.plan, into);- FfiConverterBool.write(value.acknowledged, into);- FfiConverterBool.write(value.saveToKeyvault, into);- FfiConverterBool.write(value.acknowledgedRelayPlaintext, into);- FfiConverterTypeAppReviewChoice.write(value.choice, into);- FfiConverterSequenceTypeAppTeleportRunEvent.write(value.events, into);- FfiConverterOptionalTypeAppTeleportRunReport.write(value.report, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalTypeAppInstallCuaPrompt.write(value.installPrompt, into);- FfiConverterTypeAppPickerStep.write(value.errorBack, into);+ step: FfiConverterTypeAppOnboardingStep.read(from),+ dots: FfiConverterSequenceTypeAppStepDot.read(from),+ title: FfiConverterString.read(from),+ lede: FfiConverterString.read(from),+ primaryLabel: FfiConverterString.read(from),+ canSkip: FfiConverterBool.read(from),+ canBack: FfiConverterBool.read(from),+ showMark: FfiConverterBool.read(from),+ preselectedMode: FfiConverterTypeAppOnboardingMode.read(from),+ summary: FfiConverterSequenceTypeAppFact.read(from),+ choices: FfiConverterSequenceTypeAppModeChoice.read(from),+ presentations: FfiConverterSequenceTypeAppPresentationCard.read(from),+ prompts: FfiConverterSequenceString.read(from),+ notice: FfiConverterOptionalString.read(from),+ noticeLinkLabel: FfiConverterOptionalString.read(from),+ noticeLinkUrl: FfiConverterOptionalString.read(from),+ usage: FfiConverterOptionalTypeAppUsageToggle.read(from),+ drive: FfiConverterOptionalTypeAppDriveCard.read(from),+ launchAtLogin: FfiConverterOptionalTypeAppOnboardingCheckbox.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeAppOnboardingStep.write(value.step, into);+ FfiConverterSequenceTypeAppStepDot.write(value.dots, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.lede, into);+ FfiConverterString.write(value.primaryLabel, into);+ FfiConverterBool.write(value.canSkip, into);+ FfiConverterBool.write(value.canBack, into);+ FfiConverterBool.write(value.showMark, into);+ FfiConverterTypeAppOnboardingMode.write(value.preselectedMode, into);+ FfiConverterSequenceTypeAppFact.write(value.summary, into);+ FfiConverterSequenceTypeAppModeChoice.write(value.choices, into);+ FfiConverterSequenceTypeAppPresentationCard.write(value.presentations, into);+ FfiConverterSequenceString.write(value.prompts, into);+ FfiConverterOptionalString.write(value.notice, into);+ FfiConverterOptionalString.write(value.noticeLinkLabel, into);+ FfiConverterOptionalString.write(value.noticeLinkUrl, into);+ FfiConverterOptionalTypeAppUsageToggle.write(value.usage, into);+ FfiConverterOptionalTypeAppDriveCard.write(value.drive, into);+ FfiConverterOptionalTypeAppOnboardingCheckbox.write(value.launchAtLogin, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppPickerStep.allocationSize(value.step) +- FfiConverterString.allocationSize(value.spaceName) +- FfiConverterOptionalSequenceTypeAppCatalogEntry.allocationSize(value.entries) +- FfiConverterString.allocationSize(value.query) +- FfiConverterOptionalString.allocationSize(value.selectedId) +- FfiConverterOptionalTypeAppCatalogEntry.allocationSize(value.entry) +- FfiConverterOptionalTypeAppTeleportMove.allocationSize(value.moves) +- FfiConverterSequenceString.allocationSize(value.files) +- FfiConverterSequenceTypeAppSensitiveGroup.allocationSize(value.sensitive) +- FfiConverterOptionalTypeAppTeleportPlan.allocationSize(value.plan) +- FfiConverterBool.allocationSize(value.acknowledged) +- FfiConverterBool.allocationSize(value.saveToKeyvault) +- FfiConverterBool.allocationSize(value.acknowledgedRelayPlaintext) +- FfiConverterTypeAppReviewChoice.allocationSize(value.choice) +- FfiConverterSequenceTypeAppTeleportRunEvent.allocationSize(value.events) +- FfiConverterOptionalTypeAppTeleportRunReport.allocationSize(value.report) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalTypeAppInstallCuaPrompt.allocationSize(value.installPrompt) +- FfiConverterTypeAppPickerStep.allocationSize(value.errorBack);+ return FfiConverterTypeAppOnboardingStep.allocationSize(value.step) ++ FfiConverterSequenceTypeAppStepDot.allocationSize(value.dots) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.lede) ++ FfiConverterString.allocationSize(value.primaryLabel) ++ FfiConverterBool.allocationSize(value.canSkip) ++ FfiConverterBool.allocationSize(value.canBack) ++ FfiConverterBool.allocationSize(value.showMark) ++ FfiConverterTypeAppOnboardingMode.allocationSize(value.preselectedMode) ++ FfiConverterSequenceTypeAppFact.allocationSize(value.summary) ++ FfiConverterSequenceTypeAppModeChoice.allocationSize(value.choices) ++ FfiConverterSequenceTypeAppPresentationCard.allocationSize(value.presentations) ++ FfiConverterSequenceString.allocationSize(value.prompts) ++ FfiConverterOptionalString.allocationSize(value.notice) ++ FfiConverterOptionalString.allocationSize(value.noticeLinkLabel) ++ FfiConverterOptionalString.allocationSize(value.noticeLinkUrl) ++ FfiConverterOptionalTypeAppUsageToggle.allocationSize(value.usage) ++ FfiConverterOptionalTypeAppDriveCard.allocationSize(value.drive) ++ FfiConverterOptionalTypeAppOnboardingCheckbox.allocationSize(value.launchAtLogin);}};return new FFIConverter();})();-export type AppPlacementOption = {- /**- * What choosing it sets as the create's `on`: `local`, `cloud`,- * `host:<machine>`, or a connected cloud's word (`aws`).- */- id: string,- /**- * The menu's text: "This Mac", "Mac mini", "Mac mini (offline)",- * "Mac mini (not sharing)", "AWS · us-west-2".- */- label: string,- /**- * Its group, in menu order (a separator between groups): `this-mac`,- * `hosts`, `clouds`.- */- group: string,+export type AppOpenApp = {/**- * Chosen.+ * App id.*/- selected: boolean,+ appId: string,/**- * It can be chosen now (offline, not sharing, at its limit: not).+ * App name.*/- enabled: boolean,+ appName: string,/**- * One line: why not, or what it runs (the tooltip).+ * Supported.*/- detail: string+ supported: boolean}/**- * Generated factory for {@link AppPlacementOption} record objects.+ * Generated factory for {@link AppOpenApp} record objects.*/-export const AppPlacementOption = (() => {+export const AppOpenApp = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPlacementOption, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppOpenApp, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPlacementOption>,+ defaults: () => Object.freeze(defaults()) as Partial<AppOpenApp>,});})();-const FfiConverterTypeAppPlacementOption = (() => {- type TypeName = AppPlacementOption;+const FfiConverterTypeAppOpenApp = (() => {+ type TypeName = AppOpenApp;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- group: FfiConverterString.read(from),- selected: FfiConverterBool.read(from),- enabled: FfiConverterBool.read(from),- detail: FfiConverterString.read(from)+ appId: FfiConverterString.read(from),+ appName: FfiConverterString.read(from),+ supported: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.group, into);- FfiConverterBool.write(value.selected, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterString.write(value.detail, into);+ FfiConverterString.write(value.appId, into);+ FfiConverterString.write(value.appName, into);+ FfiConverterBool.write(value.supported, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.group) +- FfiConverterBool.allocationSize(value.selected) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterString.allocationSize(value.detail);+ return FfiConverterString.allocationSize(value.appId) ++ FfiConverterString.allocationSize(value.appName) ++ FfiConverterBool.allocationSize(value.supported);}};return new FFIConverter();})();-export type AppPowerButton = {+export type AppOpenWindow = {/**- * SF Symbol ([`POWER_SYMBOL`]).+ * CoreGraphics window number.*/- symbol: string,+ windowId: number,/**- * Tooltip and accessibility label: "Suspend", "Resume", "Turn off" or- * "Turn on"; while it runs, "Suspending…" and the like.+ * App id.*/- help: string,+ appId: string,/**- * A press turns it on (else off): the shell's SDK call.+ * App name.*/- turnOn: boolean,+ appName: string,/**- * It can be pressed (not while an action runs).+ * Window title.*/- enabled: boolean,+ windowTitle: string,/**- * An action runs: a spinner shows in its place.+ * Teleport can bring the app up in a Space.*/- busy: boolean+ supported: boolean,+ /**+ * The owning app's bundle (or `.desktop` entry), when known.+ */+ bundlePath?: string}/**- * Generated factory for {@link AppPowerButton} record objects.+ * Generated factory for {@link AppOpenWindow} record objects.*/-export const AppPowerButton = (() => {+export const AppOpenWindow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPowerButton, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppOpenWindow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPowerButton>,+ defaults: () => Object.freeze(defaults()) as Partial<AppOpenWindow>,});})();-const FfiConverterTypeAppPowerButton = (() => {- type TypeName = AppPowerButton;+const FfiConverterTypeAppOpenWindow = (() => {+ type TypeName = AppOpenWindow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- symbol: FfiConverterString.read(from),- help: FfiConverterString.read(from),- turnOn: FfiConverterBool.read(from),- enabled: FfiConverterBool.read(from),- busy: FfiConverterBool.read(from)+ windowId: FfiConverterUInt32.read(from),+ appId: FfiConverterString.read(from),+ appName: FfiConverterString.read(from),+ windowTitle: FfiConverterString.read(from),+ supported: FfiConverterBool.read(from),+ bundlePath: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.symbol, into);- FfiConverterString.write(value.help, into);- FfiConverterBool.write(value.turnOn, into);- FfiConverterBool.write(value.enabled, into);- FfiConverterBool.write(value.busy, into);+ FfiConverterUInt32.write(value.windowId, into);+ FfiConverterString.write(value.appId, into);+ FfiConverterString.write(value.appName, into);+ FfiConverterString.write(value.windowTitle, into);+ FfiConverterBool.write(value.supported, into);+ FfiConverterOptionalString.write(value.bundlePath, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.help) +- FfiConverterBool.allocationSize(value.turnOn) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterBool.allocationSize(value.busy);+ return FfiConverterUInt32.allocationSize(value.windowId) ++ FfiConverterString.allocationSize(value.appId) ++ FfiConverterString.allocationSize(value.appName) ++ FfiConverterString.allocationSize(value.windowTitle) ++ FfiConverterBool.allocationSize(value.supported) ++ FfiConverterOptionalString.allocationSize(value.bundlePath);}};return new FFIConverter();})();-export type AppPresentationPreview = {- /**- * The menu bar card (else the notch card).- */- menuBar: boolean,- /**- * Stage width.- */- width: number,- /**- * Stage height.- */- height: number,- /**- * The menu bar strip along the top.- */- menuBarHeight: number,+export type AppPaletteEntry = {/**- * One loop (ms).+ * "Actions", "Go to", "Spaces".*/- loopMs: number,+ group: string,/**- * The pointer's outline, tip at the origin (fill black, stroke white).+ * "New Space".*/- pointer: Array<AppPreviewPoint>,+ label: string,/**- * The notch card's miniature.+ * Secondary text ("Linux").*/- notch?: AppNotchPreview,+ hint?: string,/**- * The menu bar card's miniature.+ * Extra words it answers to ("create add").*/- menu?: AppMenuPreview+ keywords?: string}/**- * Generated factory for {@link AppPresentationPreview} record objects.+ * Generated factory for {@link AppPaletteEntry} record objects.*/-export const AppPresentationPreview = (() => {+export const AppPaletteEntry = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppPresentationPreview, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPaletteEntry, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPresentationPreview>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPaletteEntry>,});})();-const FfiConverterTypeAppPresentationPreview = (() => {- type TypeName = AppPresentationPreview;+const FfiConverterTypeAppPaletteEntry = (() => {+ type TypeName = AppPaletteEntry;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- menuBar: FfiConverterBool.read(from),- width: FfiConverterFloat64.read(from),- height: FfiConverterFloat64.read(from),- menuBarHeight: FfiConverterFloat64.read(from),- loopMs: FfiConverterUInt32.read(from),- pointer: FfiConverterSequenceTypeAppPreviewPoint.read(from),- notch: FfiConverterOptionalTypeAppNotchPreview.read(from),- menu: FfiConverterOptionalTypeAppMenuPreview.read(from)+ group: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ hint: FfiConverterOptionalString.read(from),+ keywords: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.menuBar, into);- FfiConverterFloat64.write(value.width, into);- FfiConverterFloat64.write(value.height, into);- FfiConverterFloat64.write(value.menuBarHeight, into);- FfiConverterUInt32.write(value.loopMs, into);- FfiConverterSequenceTypeAppPreviewPoint.write(value.pointer, into);- FfiConverterOptionalTypeAppNotchPreview.write(value.notch, into);- FfiConverterOptionalTypeAppMenuPreview.write(value.menu, into);+ FfiConverterString.write(value.group, into);+ FfiConverterString.write(value.label, into);+ FfiConverterOptionalString.write(value.hint, into);+ FfiConverterOptionalString.write(value.keywords, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.menuBar) +- FfiConverterFloat64.allocationSize(value.width) +- FfiConverterFloat64.allocationSize(value.height) +- FfiConverterFloat64.allocationSize(value.menuBarHeight) +- FfiConverterUInt32.allocationSize(value.loopMs) +- FfiConverterSequenceTypeAppPreviewPoint.allocationSize(value.pointer) +- FfiConverterOptionalTypeAppNotchPreview.allocationSize(value.notch) +- FfiConverterOptionalTypeAppMenuPreview.allocationSize(value.menu);+ return FfiConverterString.allocationSize(value.group) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterOptionalString.allocationSize(value.hint) ++ FfiConverterOptionalString.allocationSize(value.keywords);}};return new FFIConverter();})();-export type AppPreviewFrame = {- /**- * The pointer's tip.- */- pointer: AppPreviewPoint,- /**- * The pointer presses (drawn a little smaller).- */- pressed: boolean,- /**- * Notch: the hover cue, 0 to 1 (the closed notch and its tab grow by- * 1 + (hover_scale - 1) * hover horizontally, about the top centre).- */- hover: number,- /**- * Notch: the shape, closed 0 to open 1 (a spring: it can pass 1);- * menu: the menu's opacity.- */- open: number,- /**- * Notch: the content's fade, 0 to 1 (it also grows from- * `content_scale`, anchored at the top); menu: the same as `open`.- */- content: number,- /**- * Notch: the tab, 1 shown to 0 tucked under the notch.- */- tab: number,- /**- * Menu: the row under the pointer (an enabled item), highlighted.- */- highlighted?: number,- /**- * Menu: the status item is highlighted (pressed, or its menu open).- */- active: boolean++// Enum: AppPickerTileIcon+export enum AppPickerTileIcon_Tags {+ Host = "Host",+ Guest = "Guest",+ None = "None"}+export const AppPickerTileIcon = (() => {-/**- * Generated factory for {@link AppPreviewFrame} record objects.- */-export const AppPreviewFrame = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppPreviewFrame, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppPreviewFrame>,- });-})();+ type Host__interface = {+ tag: AppPickerTileIcon_Tags.Host;+ inner:+Readonly<{path: string}>+ };+ /**+ * This machine's app at `path` (the SDK's `Teleport.appIconPng`).+ */+ class Host_ extends UniffiEnum implements Host__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerTileIcon";+ readonly tag = AppPickerTileIcon_Tags.Host;+ readonly inner:+Readonly<{path: string}>;+ constructor(+inner: {path: string }) {+ super("AppPickerTileIcon", "Host");-const FfiConverterTypeAppPreviewFrame = (() => {- type TypeName = AppPreviewFrame;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- pointer: FfiConverterTypeAppPreviewPoint.read(from),- pressed: FfiConverterBool.read(from),- hover: FfiConverterFloat64.read(from),- open: FfiConverterFloat64.read(from),- content: FfiConverterFloat64.read(from),- tab: FfiConverterFloat64.read(from),- highlighted: FfiConverterOptionalUInt32.read(from),- active: FfiConverterBool.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppPreviewPoint.write(value.pointer, into);- FfiConverterBool.write(value.pressed, into);- FfiConverterFloat64.write(value.hover, into);- FfiConverterFloat64.write(value.open, into);- FfiConverterFloat64.write(value.content, into);- FfiConverterFloat64.write(value.tab, into);- FfiConverterOptionalUInt32.write(value.highlighted, into);- FfiConverterBool.write(value.active, into);+ static new(+inner: {path: string }): Host_ {+ return new Host_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterTypeAppPreviewPoint.allocationSize(value.pointer) +- FfiConverterBool.allocationSize(value.pressed) +- FfiConverterFloat64.allocationSize(value.hover) +- FfiConverterFloat64.allocationSize(value.open) +- FfiConverterFloat64.allocationSize(value.content) +- FfiConverterFloat64.allocationSize(value.tab) +- FfiConverterOptionalUInt32.allocationSize(value.highlighted) +- FfiConverterBool.allocationSize(value.active);+ static instanceOf(obj: any): obj is Host_ {+ return obj.tag === AppPickerTileIcon_Tags.Host;}- };- return new FFIConverter();-})();-export type AppRefreshReport = {- /**- * `cua agents update` failed (its words).- */- agentsError?: string,+ }++ type Guest__interface = {+ tag: AppPickerTileIcon_Tags.Guest;+ inner:+Readonly<{appName: string; appId: string; pid: number}>+ };/**- * Restarting the daemon failed (its words).+ * A Space's app (the SDK's `Space.appIcons`).*/- daemonError?: string-}--/**- * Generated factory for {@link AppRefreshReport} record objects.- */-export const AppRefreshReport = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppRefreshReport, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppRefreshReport>,- });-})();+ class Guest_ extends UniffiEnum implements Guest__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerTileIcon";+ readonly tag = AppPickerTileIcon_Tags.Guest;+ readonly inner:+Readonly<{appName: string; appId: string; pid: number}>;+ constructor(+inner: {appName: string; appId: string; pid: number }) {+ super("AppPickerTileIcon", "Guest");-const FfiConverterTypeAppRefreshReport = (() => {- type TypeName = AppRefreshReport;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- agentsError: FfiConverterOptionalString.read(from),- daemonError: FfiConverterOptionalString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.agentsError, into);- FfiConverterOptionalString.write(value.daemonError, into);+ static new(+inner: {appName: string; appId: string; pid: number }): Guest_ {+ return new Guest_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.agentsError) +- FfiConverterOptionalString.allocationSize(value.daemonError);+ static instanceOf(obj: any): obj is Guest_ {+ return obj.tag === AppPickerTileIcon_Tags.Guest;}- };- return new FFIConverter();-})();-export type AppRememberedChoice = {- /**- * `<app>|<space>`.- */- key: string,+ }++ type None__interface = {+ tag: AppPickerTileIcon_Tags.None+ };/**- * The sites (registrable domains) that were sent.+ * No icon to show.*/- domains: Array<string>-}--/**- * Generated factory for {@link AppRememberedChoice} record objects.- */-export const AppRememberedChoice = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppRememberedChoice, ReturnType<typeof defaults>>(defaults);- })();+ class None_ extends UniffiEnum implements None__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerTileIcon";+ readonly tag = AppPickerTileIcon_Tags.None;+ constructor() {+ super("AppPickerTileIcon", "None");+ }++ static new(): None_ {+ return new None_();+ }++ static instanceOf(obj: any): obj is None_ {+ return obj.tag === AppPickerTileIcon_Tags.None;+ }++ }++ function instanceOf(obj: any): obj is AppPickerTileIcon {+ return obj[uniffiTypeNameSymbol] === "AppPickerTileIcon";+ }+return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppRememberedChoice>,+ instanceOf,+ Host: Host_,+ Guest: Guest_,+ None: None_});+})();+export type AppPickerTileIcon = InstanceType<+ typeof AppPickerTileIcon['Host' | 'Guest' | 'None']+>;-const FfiConverterTypeAppRememberedChoice = (() => {- type TypeName = AppRememberedChoice;+// FfiConverter for enum AppPickerTileIcon+const FfiConverterTypeAppPickerTileIcon = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppPickerTileIcon;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- key: FfiConverterString.read(from),- domains: FfiConverterSequenceString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return new AppPickerTileIcon.Host({path: FfiConverterString.read(from) });+ case 2: return new AppPickerTileIcon.Guest({appName: FfiConverterString.read(from), appId: FfiConverterString.read(from), pid: FfiConverterUInt32.read(from) });+ case 3: return new AppPickerTileIcon.None();+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);- FfiConverterSequenceString.write(value.domains, into);+ switch (value.tag) {+ case AppPickerTileIcon_Tags.Host: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterString.write(inner.path, into);+ return;+ }+ case AppPickerTileIcon_Tags.Guest: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.appName, into);+ FfiConverterString.write(inner.appId, into);+ FfiConverterUInt32.write(inner.pid, into);+ return;+ }+ case AppPickerTileIcon_Tags.None: {+ ordinalConverter.write(3, into);+ return;+ }+ default:+ // Throwing from here means that AppPickerTileIcon_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterSequenceString.allocationSize(value.domains);-+ switch (value.tag) {+ case AppPickerTileIcon_Tags.Host: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterString.allocationSize(inner.path);+ return size;+ }+ case AppPickerTileIcon_Tags.Guest: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterString.allocationSize(inner.appName);+ size += FfiConverterString.allocationSize(inner.appId);+ size += FfiConverterUInt32.allocationSize(inner.pid);+ return size;+ }+ case AppPickerTileIcon_Tags.None: {+ return ordinalConverter.allocationSize(3);+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- };+ }return new FFIConverter();})();-export type AppRemoteWindow = {++// Enum: AppPickerTileThumbnail+export enum AppPickerTileThumbnail_Tags {+ HostWindow = "HostWindow",+ GuestWindow = "GuestWindow",+ None = "None"+}+export const AppPickerTileThumbnail = (() => {++ type HostWindow__interface = {+ tag: AppPickerTileThumbnail_Tags.HostWindow;+ inner:+Readonly<{windowId: number}>+ };/**- * Stable key.+ * One of this machine's windows (the window-drag preview source, the+ * SDK's `Teleport.captureWindowThumbnail`).*/- id: string,+ class HostWindow_ extends UniffiEnum implements HostWindow__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerTileThumbnail";+ readonly tag = AppPickerTileThumbnail_Tags.HostWindow;+ readonly inner:+Readonly<{windowId: number}>;+ constructor(+inner: {windowId: number }) {+ super("AppPickerTileThumbnail", "HostWindow");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {windowId: number }): HostWindow_ {+ return new HostWindow_(inner);+ }++ static instanceOf(obj: any): obj is HostWindow_ {+ return obj.tag === AppPickerTileThumbnail_Tags.HostWindow;+ }++ }++ type GuestWindow__interface = {+ tag: AppPickerTileThumbnail_Tags.GuestWindow;+ inner:+Readonly<{windowId: string; epoch: bigint}>+ };/**- * App name.+ * One of the Space's windows (the SDK's `Space.windowThumbnail`).*/- appName: string,+ class GuestWindow_ extends UniffiEnum implements GuestWindow__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerTileThumbnail";+ readonly tag = AppPickerTileThumbnail_Tags.GuestWindow;+ readonly inner:+Readonly<{windowId: string; epoch: bigint}>;+ constructor(+inner: {windowId: string; epoch: bigint }) {+ super("AppPickerTileThumbnail", "GuestWindow");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {windowId: string; epoch: bigint }): GuestWindow_ {+ return new GuestWindow_(inner);+ }++ static instanceOf(obj: any): obj is GuestWindow_ {+ return obj.tag === AppPickerTileThumbnail_Tags.GuestWindow;+ }++ }++ type None__interface = {+ tag: AppPickerTileThumbnail_Tags.None+ };/**- * Title.+ * No window to preview (the tile shows the icon large).*/- title: string,+ class None_ extends UniffiEnum implements None__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerTileThumbnail";+ readonly tag = AppPickerTileThumbnail_Tags.None;+ constructor() {+ super("AppPickerTileThumbnail", "None");+ }++ static new(): None_ {+ return new None_();+ }++ static instanceOf(obj: any): obj is None_ {+ return obj.tag === AppPickerTileThumbnail_Tags.None;+ }++ }++ function instanceOf(obj: any): obj is AppPickerTileThumbnail {+ return obj[uniffiTypeNameSymbol] === "AppPickerTileThumbnail";+ }++ return Object.freeze({+ instanceOf,+ HostWindow: HostWindow_,+ GuestWindow: GuestWindow_,+ None: None_+ });++})();+export type AppPickerTileThumbnail = InstanceType<+ typeof AppPickerTileThumbnail['HostWindow' | 'GuestWindow' | 'None']+>;++// FfiConverter for enum AppPickerTileThumbnail+const FfiConverterTypeAppPickerTileThumbnail = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppPickerTileThumbnail;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return new AppPickerTileThumbnail.HostWindow({windowId: FfiConverterUInt32.read(from) });+ case 2: return new AppPickerTileThumbnail.GuestWindow({windowId: FfiConverterString.read(from), epoch: FfiConverterUInt64.read(from) });+ case 3: return new AppPickerTileThumbnail.None();+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value.tag) {+ case AppPickerTileThumbnail_Tags.HostWindow: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterUInt32.write(inner.windowId, into);+ return;+ }+ case AppPickerTileThumbnail_Tags.GuestWindow: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.windowId, into);+ FfiConverterUInt64.write(inner.epoch, into);+ return;+ }+ case AppPickerTileThumbnail_Tags.None: {+ ordinalConverter.write(3, into);+ return;+ }+ default:+ // Throwing from here means that AppPickerTileThumbnail_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ allocationSize(value: TypeName): number {+ switch (value.tag) {+ case AppPickerTileThumbnail_Tags.HostWindow: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterUInt32.allocationSize(inner.windowId);+ return size;+ }+ case AppPickerTileThumbnail_Tags.GuestWindow: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterString.allocationSize(inner.windowId);+ size += FfiConverterUInt64.allocationSize(inner.epoch);+ return size;+ }+ case AppPickerTileThumbnail_Tags.None: {+ return ordinalConverter.allocationSize(3);+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ }+ return new FFIConverter();+})();++export type AppPickerTile = {/**- * Visible.+ * The catalog entry id (Apps) or the window id.*/- visible: boolean,+ id: string,/**- * App id.+ * One line: the app's name, or the window's title.*/- appId: string,+ title: string,/**- * Window handle epoch.+ * The tooltip: what the app can take, why not, or the full title.*/- targetEpoch: bigint,+ help: string,/**- * Width, px.+ * Dimmed and not choosable.*/- widthPx?: number,+ disabled: boolean,/**- * Height, px.+ * Highlighted (keyboard or click).*/- heightPx?: number,+ selected: boolean,/**- * The owning process (what the SDK's `Space.app_icon` looks a macOS- * app up by), when the window list reports one.+ * The icon.*/- pid?: number+ icon: AppPickerTileIcon,+ /**+ * The preview.+ */+ thumbnail: AppPickerTileThumbnail}/**- * Generated factory for {@link AppRemoteWindow} record objects.+ * Generated factory for {@link AppPickerTile} record objects.*/-export const AppRemoteWindow = (() => {+export const AppPickerTile = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppRemoteWindow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPickerTile, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppRemoteWindow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPickerTile>,});})();-const FfiConverterTypeAppRemoteWindow = (() => {- type TypeName = AppRemoteWindow;+const FfiConverterTypeAppPickerTile = (() => {+ type TypeName = AppPickerTile;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- appName: FfiConverterString.read(from),title: FfiConverterString.read(from),- visible: FfiConverterBool.read(from),- appId: FfiConverterString.read(from),- targetEpoch: FfiConverterUInt64.read(from),- widthPx: FfiConverterOptionalUInt32.read(from),- heightPx: FfiConverterOptionalUInt32.read(from),- pid: FfiConverterOptionalUInt32.read(from)+ help: FfiConverterString.read(from),+ disabled: FfiConverterBool.read(from),+ selected: FfiConverterBool.read(from),+ icon: FfiConverterTypeAppPickerTileIcon.read(from),+ thumbnail: FfiConverterTypeAppPickerTileThumbnail.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterString.write(value.appName, into);FfiConverterString.write(value.title, into);- FfiConverterBool.write(value.visible, into);- FfiConverterString.write(value.appId, into);- FfiConverterUInt64.write(value.targetEpoch, into);- FfiConverterOptionalUInt32.write(value.widthPx, into);- FfiConverterOptionalUInt32.write(value.heightPx, into);- FfiConverterOptionalUInt32.write(value.pid, into);+ FfiConverterString.write(value.help, into);+ FfiConverterBool.write(value.disabled, into);+ FfiConverterBool.write(value.selected, into);+ FfiConverterTypeAppPickerTileIcon.write(value.icon, into);+ FfiConverterTypeAppPickerTileThumbnail.write(value.thumbnail, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.appName) +FfiConverterString.allocationSize(value.title) +- FfiConverterBool.allocationSize(value.visible) +- FfiConverterString.allocationSize(value.appId) +- FfiConverterUInt64.allocationSize(value.targetEpoch) +- FfiConverterOptionalUInt32.allocationSize(value.widthPx) +- FfiConverterOptionalUInt32.allocationSize(value.heightPx) +- FfiConverterOptionalUInt32.allocationSize(value.pid);+ FfiConverterString.allocationSize(value.help) ++ FfiConverterBool.allocationSize(value.disabled) ++ FfiConverterBool.allocationSize(value.selected) ++ FfiConverterTypeAppPickerTileIcon.allocationSize(value.icon) ++ FfiConverterTypeAppPickerTileThumbnail.allocationSize(value.thumbnail);}};return new FFIConverter();})();-export type AppRemoteWindowGroup = {- /**- * App id.- */- appId: string,+export type AppPickerTileSection = {/**- * App name.+ * Title, empty for none.*/- appName: string,+ title: string,/**- * Windows, arrival order.+ * Tiles, in order.*/- windows: Array<AppRemoteWindow>+ tiles: Array<AppPickerTile>}/**- * Generated factory for {@link AppRemoteWindowGroup} record objects.+ * Generated factory for {@link AppPickerTileSection} record objects.*/-export const AppRemoteWindowGroup = (() => {+export const AppPickerTileSection = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppRemoteWindowGroup, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPickerTileSection, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppRemoteWindowGroup>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPickerTileSection>,});})();-const FfiConverterTypeAppRemoteWindowGroup = (() => {- type TypeName = AppRemoteWindowGroup;+const FfiConverterTypeAppPickerTileSection = (() => {+ type TypeName = AppPickerTileSection;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- appId: FfiConverterString.read(from),- appName: FfiConverterString.read(from),- windows: FfiConverterSequenceTypeAppRemoteWindow.read(from)+ title: FfiConverterString.read(from),+ tiles: FfiConverterSequenceTypeAppPickerTile.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.appId, into);- FfiConverterString.write(value.appName, into);- FfiConverterSequenceTypeAppRemoteWindow.write(value.windows, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppPickerTile.write(value.tiles, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.appId) +- FfiConverterString.allocationSize(value.appName) +- FfiConverterSequenceTypeAppRemoteWindow.allocationSize(value.windows);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppPickerTile.allocationSize(value.tiles);}};return new FFIConverter();})();-export type AppReviewDomain = {- /**- * The site (`github.com`).- */- domain: string,- /**- * "12 cookies, 2 storage values".- */- counts: string,- /**- * Items the site holds.- */- count: number,- /**- * It looks like it keeps a sign-in.- */- signin: boolean,- /**- * An identity provider: its session unlocks other apps.- */- identityProvider: boolean,- /**- * Chosen to send.- */- selected: boolean,- /**- * Can be chosen: it holds something that can be sent. A site whose- * cookies are all unreadable is greyed out.- */- selectable: boolean,+export type AppPickerGrid = {/**- * Cookies that cannot be read, shown greyed with `unavailable_note`.+ * Sections, in order.*/- unavailable: number,+ sections: Array<AppPickerTileSection>,/**- * "3 cookies cannot be sent: Chrome protects them with ...", or empty.+ * When there are no tiles: "No apps match." and the like.*/- unavailableNote: string+ emptyText?: string}/**- * Generated factory for {@link AppReviewDomain} record objects.+ * Generated factory for {@link AppPickerGrid} record objects.*/-export const AppReviewDomain = (() => {+export const AppPickerGrid = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppReviewDomain, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPickerGrid, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppReviewDomain>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPickerGrid>,});})();-const FfiConverterTypeAppReviewDomain = (() => {- type TypeName = AppReviewDomain;+const FfiConverterTypeAppPickerGrid = (() => {+ type TypeName = AppPickerGrid;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- domain: FfiConverterString.read(from),- counts: FfiConverterString.read(from),- count: FfiConverterUInt32.read(from),- signin: FfiConverterBool.read(from),- identityProvider: FfiConverterBool.read(from),- selected: FfiConverterBool.read(from),- selectable: FfiConverterBool.read(from),- unavailable: FfiConverterUInt32.read(from),- unavailableNote: FfiConverterString.read(from)+ sections: FfiConverterSequenceTypeAppPickerTileSection.read(from),+ emptyText: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.domain, into);- FfiConverterString.write(value.counts, into);- FfiConverterUInt32.write(value.count, into);- FfiConverterBool.write(value.signin, into);- FfiConverterBool.write(value.identityProvider, into);- FfiConverterBool.write(value.selected, into);- FfiConverterBool.write(value.selectable, into);- FfiConverterUInt32.write(value.unavailable, into);- FfiConverterString.write(value.unavailableNote, into);+ FfiConverterSequenceTypeAppPickerTileSection.write(value.sections, into);+ FfiConverterOptionalString.write(value.emptyText, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.domain) +- FfiConverterString.allocationSize(value.counts) +- FfiConverterUInt32.allocationSize(value.count) +- FfiConverterBool.allocationSize(value.signin) +- FfiConverterBool.allocationSize(value.identityProvider) +- FfiConverterBool.allocationSize(value.selected) +- FfiConverterBool.allocationSize(value.selectable) +- FfiConverterUInt32.allocationSize(value.unavailable) +- FfiConverterString.allocationSize(value.unavailableNote);+ return FfiConverterSequenceTypeAppPickerTileSection.allocationSize(value.sections) ++ FfiConverterOptionalString.allocationSize(value.emptyText);}};return new FFIConverter();})();-export type AppReviewToggle = {- /**- * The consent item's key.- */- key: string,+export type AppPickerGridPrimary = {/**- * Label.+ * The label.*/label: string,/**- * Detail.- */- detail: string,- /**- * Bytes that leave.- */- bytes: bigint,- /**- * A secret.+ * Enabled.*/- sensitive: boolean,- /**- * Sent (not turned off).- */- selected: boolean+ enabled: boolean}/**- * Generated factory for {@link AppReviewToggle} record objects.+ * Generated factory for {@link AppPickerGridPrimary} record objects.*/-export const AppReviewToggle = (() => {+export const AppPickerGridPrimary = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppReviewToggle, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPickerGridPrimary, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppReviewToggle>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPickerGridPrimary>,});})();-const FfiConverterTypeAppReviewToggle = (() => {- type TypeName = AppReviewToggle;+const FfiConverterTypeAppPickerGridPrimary = (() => {+ type TypeName = AppPickerGridPrimary;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- key: FfiConverterString.read(from),label: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- bytes: FfiConverterUInt64.read(from),- sensitive: FfiConverterBool.read(from),- selected: FfiConverterBool.read(from)+ enabled: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);FfiConverterString.write(value.label, into);- FfiConverterString.write(value.detail, into);- FfiConverterUInt64.write(value.bytes, into);- FfiConverterBool.write(value.sensitive, into);- FfiConverterBool.write(value.selected, into);+ FfiConverterBool.write(value.enabled, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterUInt64.allocationSize(value.bytes) +- FfiConverterBool.allocationSize(value.sensitive) +- FfiConverterBool.allocationSize(value.selected);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterBool.allocationSize(value.enabled);}};return new FFIConverter();})();-export type AppReviewView = {- /**- * "Teleport Slack to Aurora".- */- title: string,- /**- * The consent lines.- */- items: Array<AppConsentItem>,- /**- * Plan steps.- */- steps: Array<AppPlanStepView>,- /**- * The secrets checkbox shows.- */- needsAcknowledgement: boolean,- /**- * Checked.- */- acknowledged: boolean,- /**- * The "Save to Keyvault" checkbox shows (a sensitive plan only: there- * is nothing to keep sealed otherwise).- */- offersSaveToKeyvault: boolean,- /**- * Checked.- */- saveToKeyvault: boolean,- /**- * The relay-plaintext warning's checkbox shows (S1): this Space- * predates end-to-end sealing, and the Cua relay could read this- * secret in transit.- */- needsRelayPlaintextAcknowledgement: boolean,- /**- * Checked.- */- acknowledgedRelayPlaintext: boolean,- /**- * "Teleport" is enabled.- */- canConfirm: boolean,- /**- * "12 MB leaves this Mac" (none when nothing leaves).- */- leavesText?: string,- /**- * Caveats.- */- warnings: Array<string>,- /**- * Lines the user can turn off (files, folders, state, secrets), each- * with whether it is sent. The cookie store is the site list below.- */- toggles: Array<AppReviewToggle>,- /**- * The plan sends a browser's cookies, so the sites can be chosen.- */- offersDomains: boolean,- /**- * The sites have not been read yet (the shell asks the Keyvault for- * them, which may ask for Touch ID).- */- needsDomains: boolean,- /**- * The sites with counts, filtered by the search.- */- domains: Array<AppReviewDomain>,- /**- * "3 of 12 sites".- */- domainSummary: string,- /**- * The sites search text.- */- domainQuery: string,- /**- * The sites chosen (what is remembered for next time).- */- selectedDomains: Array<string>,- /**- * Where it sends from.- */- source: AppSendSource,- /**- * The app has saved Keyvault items to send instead of reading the live- * app.- */- offersVault: boolean,- /**- * The saved items.- */- vault: AppVaultSource,- /**- * "Send from the Keyvault (212 items, saved 2 days ago)".- */- vaultLabel: string,- /**- * "Read Chrome now (macOS asks for Keychain access)".- */- liveLabel: string,- /**- * "Also send saved passwords" shows (there are some to send).- */- offersPasswords: boolean,+export enum AppPickerGridTab {/**- * Ticked.+ * The app catalog.*/- includePasswords: boolean,+ Apps = "apps",/**- * "Also send 14 saved passwords".+ * This machine's open windows.*/- passwordsLabel: string,+ Windows = "windows",/**- * What the Keychain will do for this source, in a line.+ * The Space's windows.*/- sourceNote: string+ Space = "space"}-/**- * Generated factory for {@link AppReviewView} record objects.- */-export const AppReviewView = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppReviewView, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppReviewView>,- });-})();--const FfiConverterTypeAppReviewView = (() => {- type TypeName = AppReviewView;+const FfiConverterTypeAppPickerGridTab = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppPickerGridTab;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- title: FfiConverterString.read(from),- items: FfiConverterSequenceTypeAppConsentItem.read(from),- steps: FfiConverterSequenceTypeAppPlanStepView.read(from),- needsAcknowledgement: FfiConverterBool.read(from),- acknowledged: FfiConverterBool.read(from),- offersSaveToKeyvault: FfiConverterBool.read(from),- saveToKeyvault: FfiConverterBool.read(from),- needsRelayPlaintextAcknowledgement: FfiConverterBool.read(from),- acknowledgedRelayPlaintext: FfiConverterBool.read(from),- canConfirm: FfiConverterBool.read(from),- leavesText: FfiConverterOptionalString.read(from),- warnings: FfiConverterSequenceString.read(from),- toggles: FfiConverterSequenceTypeAppReviewToggle.read(from),- offersDomains: FfiConverterBool.read(from),- needsDomains: FfiConverterBool.read(from),- domains: FfiConverterSequenceTypeAppReviewDomain.read(from),- domainSummary: FfiConverterString.read(from),- domainQuery: FfiConverterString.read(from),- selectedDomains: FfiConverterSequenceString.read(from),- source: FfiConverterTypeAppSendSource.read(from),- offersVault: FfiConverterBool.read(from),- vault: FfiConverterTypeAppVaultSource.read(from),- vaultLabel: FfiConverterString.read(from),- liveLabel: FfiConverterString.read(from),- offersPasswords: FfiConverterBool.read(from),- includePasswords: FfiConverterBool.read(from),- passwordsLabel: FfiConverterString.read(from),- sourceNote: FfiConverterString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return AppPickerGridTab.Apps;+ case 2: return AppPickerGridTab.Windows;+ case 3: return AppPickerGridTab.Space;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppConsentItem.write(value.items, into);- FfiConverterSequenceTypeAppPlanStepView.write(value.steps, into);- FfiConverterBool.write(value.needsAcknowledgement, into);- FfiConverterBool.write(value.acknowledged, into);- FfiConverterBool.write(value.offersSaveToKeyvault, into);- FfiConverterBool.write(value.saveToKeyvault, into);- FfiConverterBool.write(value.needsRelayPlaintextAcknowledgement, into);- FfiConverterBool.write(value.acknowledgedRelayPlaintext, into);- FfiConverterBool.write(value.canConfirm, into);- FfiConverterOptionalString.write(value.leavesText, into);- FfiConverterSequenceString.write(value.warnings, into);- FfiConverterSequenceTypeAppReviewToggle.write(value.toggles, into);- FfiConverterBool.write(value.offersDomains, into);- FfiConverterBool.write(value.needsDomains, into);- FfiConverterSequenceTypeAppReviewDomain.write(value.domains, into);- FfiConverterString.write(value.domainSummary, into);- FfiConverterString.write(value.domainQuery, into);- FfiConverterSequenceString.write(value.selectedDomains, into);- FfiConverterTypeAppSendSource.write(value.source, into);- FfiConverterBool.write(value.offersVault, into);- FfiConverterTypeAppVaultSource.write(value.vault, into);- FfiConverterString.write(value.vaultLabel, into);- FfiConverterString.write(value.liveLabel, into);- FfiConverterBool.write(value.offersPasswords, into);- FfiConverterBool.write(value.includePasswords, into);- FfiConverterString.write(value.passwordsLabel, into);- FfiConverterString.write(value.sourceNote, into);+ switch (value) {+ case AppPickerGridTab.Apps: return ordinalConverter.write(1, into);+ case AppPickerGridTab.Windows: return ordinalConverter.write(2, into);+ case AppPickerGridTab.Space: return ordinalConverter.write(3, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppConsentItem.allocationSize(value.items) +- FfiConverterSequenceTypeAppPlanStepView.allocationSize(value.steps) +- FfiConverterBool.allocationSize(value.needsAcknowledgement) +- FfiConverterBool.allocationSize(value.acknowledged) +- FfiConverterBool.allocationSize(value.offersSaveToKeyvault) +- FfiConverterBool.allocationSize(value.saveToKeyvault) +- FfiConverterBool.allocationSize(value.needsRelayPlaintextAcknowledgement) +- FfiConverterBool.allocationSize(value.acknowledgedRelayPlaintext) +- FfiConverterBool.allocationSize(value.canConfirm) +- FfiConverterOptionalString.allocationSize(value.leavesText) +- FfiConverterSequenceString.allocationSize(value.warnings) +- FfiConverterSequenceTypeAppReviewToggle.allocationSize(value.toggles) +- FfiConverterBool.allocationSize(value.offersDomains) +- FfiConverterBool.allocationSize(value.needsDomains) +- FfiConverterSequenceTypeAppReviewDomain.allocationSize(value.domains) +- FfiConverterString.allocationSize(value.domainSummary) +- FfiConverterString.allocationSize(value.domainQuery) +- FfiConverterSequenceString.allocationSize(value.selectedDomains) +- FfiConverterTypeAppSendSource.allocationSize(value.source) +- FfiConverterBool.allocationSize(value.offersVault) +- FfiConverterTypeAppVaultSource.allocationSize(value.vault) +- FfiConverterString.allocationSize(value.vaultLabel) +- FfiConverterString.allocationSize(value.liveLabel) +- FfiConverterBool.allocationSize(value.offersPasswords) +- FfiConverterBool.allocationSize(value.includePasswords) +- FfiConverterString.allocationSize(value.passwordsLabel) +- FfiConverterString.allocationSize(value.sourceNote);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type AppRoleOption = {+export type AppPickerGridTabItem = {/**- * `viewer` or `editor`.+ * Which tab.*/- id: string,+ tab: AppPickerGridTab,/**- * `Can view` or `Can edit`.+ * Its label.*/label: string}/**- * Generated factory for {@link AppRoleOption} record objects.+ * Generated factory for {@link AppPickerGridTabItem} record objects.*/-export const AppRoleOption = (() => {+export const AppPickerGridTabItem = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppRoleOption, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPickerGridTabItem, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppRoleOption>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPickerGridTabItem>,});})();-const FfiConverterTypeAppRoleOption = (() => {- type TypeName = AppRoleOption;+const FfiConverterTypeAppPickerGridTabItem = (() => {+ type TypeName = AppPickerGridTabItem;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),+ tab: FfiConverterTypeAppPickerGridTab.read(from),label: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);+ FfiConverterTypeAppPickerGridTab.write(value.tab, into);FfiConverterString.write(value.label, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) ++ return FfiConverterTypeAppPickerGridTab.allocationSize(value.tab) +FfiConverterString.allocationSize(value.label);}@@ -29642,36 +28926,38 @@ const FfiConverterTypeAppRoleOption = (() => {return new FFIConverter();})();-export enum AppWindowMode {- Ambient = "ambient",+export enum AppPickerAction {/**- * Ambient, but grown taller so the drag teleport's "Teleport to Cua" box- * has room to hang below the notch. Same top-centre placement as `Ambient`.+ * Teleport the app.*/- AmbientTeleport = "ambientTeleport",- Switcher = "switcher",- CreateFleet = "createFleet"+ Teleport = "teleport",+ /**+ * Stream the remote window here.+ */+ StreamRemote = "streamRemote",+ /**+ * Streaming a local window is not built yet: an honest notice.+ */+ StreamLocalSoon = "streamLocalSoon"}-const FfiConverterTypeAppWindowMode = (() => {+const FfiConverterTypeAppPickerAction = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppWindowMode;+ type TypeName = AppPickerAction;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppWindowMode.Ambient;- case 2: return AppWindowMode.AmbientTeleport;- case 3: return AppWindowMode.Switcher;- case 4: return AppWindowMode.CreateFleet;+ case 1: return AppPickerAction.Teleport;+ case 2: return AppPickerAction.StreamRemote;+ case 3: return AppPickerAction.StreamLocalSoon;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppWindowMode.Ambient: return ordinalConverter.write(1, into);- case AppWindowMode.AmbientTeleport: return ordinalConverter.write(2, into);- case AppWindowMode.Switcher: return ordinalConverter.write(3, into);- case AppWindowMode.CreateFleet: return ordinalConverter.write(4, into);+ case AppPickerAction.Teleport: return ordinalConverter.write(1, into);+ case AppPickerAction.StreamRemote: return ordinalConverter.write(2, into);+ case AppPickerAction.StreamLocalSoon: return ordinalConverter.write(3, into);}}allocationSize(value: TypeName): number {@@ -29681,2738 +28967,2725 @@ const FfiConverterTypeAppWindowMode = (() => {return new FFIConverter();})();-export type AppRosterState = {- /**- * The notch switcher's mode.- */- mode: AppWindowMode,- /**- * Spaces, MRU order.- */- spaces: Array<AppSpace>,- /**- * The selected Space id (empty when none).- */- selectedId: string,+export type AppPickerPrimary = {/**- * Keyboard focus: an index into `spaces`, or [`NEW_TILE_INDEX`].+ * "Teleport" / "Stream".*/- focusIndex: number,+ label: string,/**- * The notice, if one shows.+ * Action.*/- notice?: AppNotice,+ action: AppPickerAction,/**- * Last notice id.+ * Enabled.*/- noticeSeq: number+ enabled: boolean}/**- * Generated factory for {@link AppRosterState} record objects.+ * Generated factory for {@link AppPickerPrimary} record objects.*/-export const AppRosterState = (() => {+export const AppPickerPrimary = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppRosterState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPickerPrimary, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppRosterState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPickerPrimary>,});})();-const FfiConverterTypeAppRosterState = (() => {- type TypeName = AppRosterState;+const FfiConverterTypeAppPickerPrimary = (() => {+ type TypeName = AppPickerPrimary;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- mode: FfiConverterTypeAppWindowMode.read(from),- spaces: FfiConverterSequenceTypeAppSpace.read(from),- selectedId: FfiConverterString.read(from),- focusIndex: FfiConverterInt32.read(from),- notice: FfiConverterOptionalTypeAppNotice.read(from),- noticeSeq: FfiConverterUInt32.read(from)+ label: FfiConverterString.read(from),+ action: FfiConverterTypeAppPickerAction.read(from),+ enabled: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppWindowMode.write(value.mode, into);- FfiConverterSequenceTypeAppSpace.write(value.spaces, into);- FfiConverterString.write(value.selectedId, into);- FfiConverterInt32.write(value.focusIndex, into);- FfiConverterOptionalTypeAppNotice.write(value.notice, into);- FfiConverterUInt32.write(value.noticeSeq, into);+ FfiConverterString.write(value.label, into);+ FfiConverterTypeAppPickerAction.write(value.action, into);+ FfiConverterBool.write(value.enabled, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppWindowMode.allocationSize(value.mode) +- FfiConverterSequenceTypeAppSpace.allocationSize(value.spaces) +- FfiConverterString.allocationSize(value.selectedId) +- FfiConverterInt32.allocationSize(value.focusIndex) +- FfiConverterOptionalTypeAppNotice.allocationSize(value.notice) +- FfiConverterUInt32.allocationSize(value.noticeSeq);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterTypeAppPickerAction.allocationSize(value.action) ++ FfiConverterBool.allocationSize(value.enabled);}};return new FFIConverter();})();-export type AppRuntimeSwitch = {+export enum AppPickerStep {/**- * The `cua config` setting: `runtime.lume`.+ * Loading the catalog.*/- setting: string,+ Loading = "loading",/**- * The value to set: `builtin`.+ * Choosing an app.*/- value: string,+ Pick = "pick",/**- * The button: "Use built-in Lume".+ * Choosing what moves.*/- label: string,+ Options = "options",/**- * One line on what that does.+ * Planning.*/- detail: string+ Planning = "planning",+ /**+ * Reviewing the consent list.+ */+ Consent = "consent",+ /**+ * Running.+ */+ Running = "running",+ /**+ * Done.+ */+ Done = "done",+ /**+ * Failed.+ */+ Error = "error"+}++const FfiConverterTypeAppPickerStep = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppPickerStep;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppPickerStep.Loading;+ case 2: return AppPickerStep.Pick;+ case 3: return AppPickerStep.Options;+ case 4: return AppPickerStep.Planning;+ case 5: return AppPickerStep.Consent;+ case 6: return AppPickerStep.Running;+ case 7: return AppPickerStep.Done;+ case 8: return AppPickerStep.Error;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppPickerStep.Loading: return ordinalConverter.write(1, into);+ case AppPickerStep.Pick: return ordinalConverter.write(2, into);+ case AppPickerStep.Options: return ordinalConverter.write(3, into);+ case AppPickerStep.Planning: return ordinalConverter.write(4, into);+ case AppPickerStep.Consent: return ordinalConverter.write(5, into);+ case AppPickerStep.Running: return ordinalConverter.write(6, into);+ case AppPickerStep.Done: return ordinalConverter.write(7, into);+ case AppPickerStep.Error: return ordinalConverter.write(8, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppPlanStepView = {+ /**+ * `install`, `files`, `state`, `launch`.+ */+ kind: string,+ /**+ * One line.+ */+ summary: string}/**- * Generated factory for {@link AppRuntimeSwitch} record objects.+ * Generated factory for {@link AppPlanStepView} record objects.*/-export const AppRuntimeSwitch = (() => {+export const AppPlanStepView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppRuntimeSwitch, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPlanStepView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppRuntimeSwitch>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPlanStepView>,});})();-const FfiConverterTypeAppRuntimeSwitch = (() => {- type TypeName = AppRuntimeSwitch;+const FfiConverterTypeAppPlanStepView = (() => {+ type TypeName = AppPlanStepView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- setting: FfiConverterString.read(from),- value: FfiConverterString.read(from),- label: FfiConverterString.read(from),- detail: FfiConverterString.read(from)+ kind: FfiConverterString.read(from),+ summary: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.setting, into);- FfiConverterString.write(value.value, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.detail, into);+ FfiConverterString.write(value.kind, into);+ FfiConverterString.write(value.summary, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.setting) +- FfiConverterString.allocationSize(value.value) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.detail);+ return FfiConverterString.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.summary);}};return new FFIConverter();})();-export type AppScreenFacts = {+export type AppTeleportPlan = {/**- * `NSScreen.frame`.+ * The app.*/- frame: AppLogicalRect,+ app: AppCatalogEntry,/**- * `NSScreen.visibleFrame`.+ * Target Space.*/- visibleFrame: AppLogicalRect,+ spaceId: string,/**- * `safeAreaInsets.top` (0 without a notch).+ * What moves.*/- safeAreaTop: number,+ moves: AppTeleportMove,/**- * `auxiliaryTopLeftArea` width, when present.+ * Steps.*/- auxLeftWidth?: number,+ steps: Array<AppPlanStepView>,/**- * `auxiliaryTopRightArea` width, when present.+ * Consent lines.*/- auxRightWidth?: number+ consent: Array<AppConsentItem>,+ /**+ * Any line is a secret.+ */+ sensitive: boolean,+ /**+ * Bytes that leave this machine.+ */+ totalBytes: bigint,+ /**+ * Caveats.+ */+ warnings: Array<string>,+ /**+ * This Space is reached through a relay connection that predates+ * end-to-end sealing: a secret this plan sends would cross it in the+ * clear (S1). Needs `acknowledgeRelayPlaintext` the same way a secret+ * needs `acknowledgeSensitive`. Defaults to `false`: older fixtures+ * and a plan from a relay that predates the capability both read as+ * sealed (never retroactively flagged).+ */+ relayUnsealed: boolean,+ /**+ * The SDK's JSON for this plan.+ */+ json: string}/**- * Generated factory for {@link AppScreenFacts} record objects.+ * Generated factory for {@link AppTeleportPlan} record objects.*/-export const AppScreenFacts = (() => {+export const AppTeleportPlan = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppScreenFacts, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppTeleportPlan, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppScreenFacts>,+ defaults: () => Object.freeze(defaults()) as Partial<AppTeleportPlan>,});})();-const FfiConverterTypeAppScreenFacts = (() => {- type TypeName = AppScreenFacts;+const FfiConverterTypeAppTeleportPlan = (() => {+ type TypeName = AppTeleportPlan;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- frame: FfiConverterTypeAppLogicalRect.read(from),- visibleFrame: FfiConverterTypeAppLogicalRect.read(from),- safeAreaTop: FfiConverterFloat64.read(from),- auxLeftWidth: FfiConverterOptionalFloat64.read(from),- auxRightWidth: FfiConverterOptionalFloat64.read(from)+ app: FfiConverterTypeAppCatalogEntry.read(from),+ spaceId: FfiConverterString.read(from),+ moves: FfiConverterTypeAppTeleportMove.read(from),+ steps: FfiConverterSequenceTypeAppPlanStepView.read(from),+ consent: FfiConverterSequenceTypeAppConsentItem.read(from),+ sensitive: FfiConverterBool.read(from),+ totalBytes: FfiConverterUInt64.read(from),+ warnings: FfiConverterSequenceString.read(from),+ relayUnsealed: FfiConverterBool.read(from),+ json: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLogicalRect.write(value.frame, into);- FfiConverterTypeAppLogicalRect.write(value.visibleFrame, into);- FfiConverterFloat64.write(value.safeAreaTop, into);- FfiConverterOptionalFloat64.write(value.auxLeftWidth, into);- FfiConverterOptionalFloat64.write(value.auxRightWidth, into);+ FfiConverterTypeAppCatalogEntry.write(value.app, into);+ FfiConverterString.write(value.spaceId, into);+ FfiConverterTypeAppTeleportMove.write(value.moves, into);+ FfiConverterSequenceTypeAppPlanStepView.write(value.steps, into);+ FfiConverterSequenceTypeAppConsentItem.write(value.consent, into);+ FfiConverterBool.write(value.sensitive, into);+ FfiConverterUInt64.write(value.totalBytes, into);+ FfiConverterSequenceString.write(value.warnings, into);+ FfiConverterBool.write(value.relayUnsealed, into);+ FfiConverterString.write(value.json, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLogicalRect.allocationSize(value.frame) +- FfiConverterTypeAppLogicalRect.allocationSize(value.visibleFrame) +- FfiConverterFloat64.allocationSize(value.safeAreaTop) +- FfiConverterOptionalFloat64.allocationSize(value.auxLeftWidth) +- FfiConverterOptionalFloat64.allocationSize(value.auxRightWidth);+ return FfiConverterTypeAppCatalogEntry.allocationSize(value.app) ++ FfiConverterString.allocationSize(value.spaceId) ++ FfiConverterTypeAppTeleportMove.allocationSize(value.moves) ++ FfiConverterSequenceTypeAppPlanStepView.allocationSize(value.steps) ++ FfiConverterSequenceTypeAppConsentItem.allocationSize(value.consent) ++ FfiConverterBool.allocationSize(value.sensitive) ++ FfiConverterUInt64.allocationSize(value.totalBytes) ++ FfiConverterSequenceString.allocationSize(value.warnings) ++ FfiConverterBool.allocationSize(value.relayUnsealed) ++ FfiConverterString.allocationSize(value.json);}};return new FFIConverter();})();-export type AppSensitiveOption = {+export enum AppSendSource {/**- * The group.+ * Read the live app now (a browser's cookies are decrypted, so macOS asks+ * for Keychain access).*/- group: AppSensitiveGroup,+ Live = "live",/**- * Label.+ * Send the items saved in the Keyvault for this app. Nothing is read from+ * the host.*/- label: string,+ Vault = "vault"+}++const FfiConverterTypeAppSendSource = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppSendSource;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppSendSource.Live;+ case 2: return AppSendSource.Vault;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppSendSource.Live: return ordinalConverter.write(1, into);+ case AppSendSource.Vault: return ordinalConverter.write(2, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type KvDomainCount = {/**- * The line under the label.+ * Registrable domain.*/- detail: string,+ domain: string,/**- * Checked.+ * Cookies.*/- checked: boolean+ cookies: number,+ /**+ * Cookies without an expiry.+ */+ sessionCookies: number,+ /**+ * localStorage values.+ */+ localStorage: number,+ /**+ * Saved passwords.+ */+ passwords: number,+ /**+ * Looks like it keeps a sign-in.+ */+ signin: boolean,+ /**+ * An identity provider.+ */+ identityProvider: boolean,+ /**+ * Cookies that cannot be read (Chrome's app-bound encryption).+ */+ unavailable: number,+ /**+ * Why they cannot be read.+ */+ unavailableReason: string}/**- * Generated factory for {@link AppSensitiveOption} record objects.+ * Generated factory for {@link KvDomainCount} record objects.*/-export const AppSensitiveOption = (() => {+export const KvDomainCount = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSensitiveOption, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvDomainCount, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSensitiveOption>,+ defaults: () => Object.freeze(defaults()) as Partial<KvDomainCount>,});})();-const FfiConverterTypeAppSensitiveOption = (() => {- type TypeName = AppSensitiveOption;+const FfiConverterTypeKvDomainCount = (() => {+ type TypeName = KvDomainCount;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- group: FfiConverterTypeAppSensitiveGroup.read(from),- label: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- checked: FfiConverterBool.read(from)+ domain: FfiConverterString.read(from),+ cookies: FfiConverterUInt32.read(from),+ sessionCookies: FfiConverterUInt32.read(from),+ localStorage: FfiConverterUInt32.read(from),+ passwords: FfiConverterUInt32.read(from),+ signin: FfiConverterBool.read(from),+ identityProvider: FfiConverterBool.read(from),+ unavailable: FfiConverterUInt32.read(from),+ unavailableReason: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppSensitiveGroup.write(value.group, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.detail, into);- FfiConverterBool.write(value.checked, into);+ FfiConverterString.write(value.domain, into);+ FfiConverterUInt32.write(value.cookies, into);+ FfiConverterUInt32.write(value.sessionCookies, into);+ FfiConverterUInt32.write(value.localStorage, into);+ FfiConverterUInt32.write(value.passwords, into);+ FfiConverterBool.write(value.signin, into);+ FfiConverterBool.write(value.identityProvider, into);+ FfiConverterUInt32.write(value.unavailable, into);+ FfiConverterString.write(value.unavailableReason, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppSensitiveGroup.allocationSize(value.group) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterBool.allocationSize(value.checked);+ return FfiConverterString.allocationSize(value.domain) ++ FfiConverterUInt32.allocationSize(value.cookies) ++ FfiConverterUInt32.allocationSize(value.sessionCookies) ++ FfiConverterUInt32.allocationSize(value.localStorage) ++ FfiConverterUInt32.allocationSize(value.passwords) ++ FfiConverterBool.allocationSize(value.signin) ++ FfiConverterBool.allocationSize(value.identityProvider) ++ FfiConverterUInt32.allocationSize(value.unavailable) ++ FfiConverterString.allocationSize(value.unavailableReason);}};return new FFIConverter();})();-export type AppSentFileInfo = {+export type AppVaultSource = {/**- * File name.+ * The app has saved items that can be sent (passwords never are).*/- name: string,+ available: boolean,/**- * Where it landed in the Space.+ * How many.*/- dest: string,+ items: number,/**- * Bytes.+ * "saved 2 days ago".*/- bytes: bigint+ saved: string,+ /**+ * The items chosen to send (ids).+ */+ selected: Array<string>,+ /**+ * The app's saved passwords (ids), sent only when ticked.+ */+ passwordIds: Array<string>}/**- * Generated factory for {@link AppSentFileInfo} record objects.+ * Generated factory for {@link AppVaultSource} record objects.*/-export const AppSentFileInfo = (() => {+export const AppVaultSource = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSentFileInfo, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppVaultSource, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSentFileInfo>,+ defaults: () => Object.freeze(defaults()) as Partial<AppVaultSource>,});})();-const FfiConverterTypeAppSentFileInfo = (() => {- type TypeName = AppSentFileInfo;+const FfiConverterTypeAppVaultSource = (() => {+ type TypeName = AppVaultSource;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- name: FfiConverterString.read(from),- dest: FfiConverterString.read(from),- bytes: FfiConverterUInt64.read(from)+ available: FfiConverterBool.read(from),+ items: FfiConverterUInt32.read(from),+ saved: FfiConverterString.read(from),+ selected: FfiConverterSequenceString.read(from),+ passwordIds: FfiConverterSequenceString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.dest, into);- FfiConverterUInt64.write(value.bytes, into);+ FfiConverterBool.write(value.available, into);+ FfiConverterUInt32.write(value.items, into);+ FfiConverterString.write(value.saved, into);+ FfiConverterSequenceString.write(value.selected, into);+ FfiConverterSequenceString.write(value.passwordIds, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.dest) +- FfiConverterUInt64.allocationSize(value.bytes);+ return FfiConverterBool.allocationSize(value.available) ++ FfiConverterUInt32.allocationSize(value.items) ++ FfiConverterString.allocationSize(value.saved) ++ FfiConverterSequenceString.allocationSize(value.selected) ++ FfiConverterSequenceString.allocationSize(value.passwordIds);}};return new FFIConverter();})();-export enum AppSwitcherTheme {+export type AppReviewChoice = {/**- * Opaque black, flush with the notch (default).+ * Where to send from.*/- Island = "island",+ source: AppSendSource,/**- * Translucent, below the notch.+ * The browser's sites with counts (none until read, or for an app that+ * is not a browser).*/- Glass = "glass"+ domains: Array<KvDomainCount>,+ /**+ * The sites chosen.+ */+ selectedDomains: Array<string>,+ /**+ * The sites list's search text.+ */+ query: string,+ /**+ * Consent items (keys) turned off.+ */+ excluded: Array<string>,+ /**+ * The saved items.+ */+ vault: AppVaultSource,+ /**+ * The sites were asked for (a failure counts: the review then sends+ * what the plan lists).+ */+ loaded: boolean,+ /**+ * The saved passwords are ticked to send (off unless the user ticks+ * them; never remembered).+ */+ includePasswords: boolean}-const FfiConverterTypeAppSwitcherTheme = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppSwitcherTheme;+/**+ * Generated factory for {@link AppReviewChoice} record objects.+ */+export const AppReviewChoice = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppReviewChoice, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppReviewChoice>,+ });+})();++const FfiConverterTypeAppReviewChoice = (() => {+ type TypeName = AppReviewChoice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppSwitcherTheme.Island;- case 2: return AppSwitcherTheme.Glass;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ source: FfiConverterTypeAppSendSource.read(from),+ domains: FfiConverterSequenceTypeKvDomainCount.read(from),+ selectedDomains: FfiConverterSequenceString.read(from),+ query: FfiConverterString.read(from),+ excluded: FfiConverterSequenceString.read(from),+ vault: FfiConverterTypeAppVaultSource.read(from),+ loaded: FfiConverterBool.read(from),+ includePasswords: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppSwitcherTheme.Island: return ordinalConverter.write(1, into);- case AppSwitcherTheme.Glass: return ordinalConverter.write(2, into);- }+ FfiConverterTypeAppSendSource.write(value.source, into);+ FfiConverterSequenceTypeKvDomainCount.write(value.domains, into);+ FfiConverterSequenceString.write(value.selectedDomains, into);+ FfiConverterString.write(value.query, into);+ FfiConverterSequenceString.write(value.excluded, into);+ FfiConverterTypeAppVaultSource.write(value.vault, into);+ FfiConverterBool.write(value.loaded, into);+ FfiConverterBool.write(value.includePasswords, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterTypeAppSendSource.allocationSize(value.source) ++ FfiConverterSequenceTypeKvDomainCount.allocationSize(value.domains) ++ FfiConverterSequenceString.allocationSize(value.selectedDomains) ++ FfiConverterString.allocationSize(value.query) ++ FfiConverterSequenceString.allocationSize(value.excluded) ++ FfiConverterTypeAppVaultSource.allocationSize(value.vault) ++ FfiConverterBool.allocationSize(value.loaded) ++ FfiConverterBool.allocationSize(value.includePasswords);+}- }+ };return new FFIConverter();})();-export type AppSettings = {- /**- * Global hotkey label.- */- hotkey: string,- /**- * The switcher lives in the menu bar instead of the notch.- */- menuBar: boolean,+export enum AppTeleportRunPhase {/**- * Switcher theme.+ * A step started.*/- theme: AppSwitcherTheme,+ Started = "started",/**- * Where New Space starts.+ * Bytes moved.*/- defaultLocation: AppLocation,+ Progress = "progress",/**- * Hide the notch over full-screen apps.+ * A step finished.*/- hideInFullScreen: boolean,+ Finished = "finished",/**- * The newest notification already posted (Unix ms; 0: never polled).+ * A step failed.*/- notificationsSeenMs: bigint,+ Failed = "failed",/**- * The version and build the app last launched as- * ([`crate::about::identity`]; `None`: never recorded). A launch as- * another one follows an update ([`crate::about::after_launch`]).+ * All done.*/- lastSeenVersion?: string,+ Done = "done"+}++const FfiConverterTypeAppTeleportRunPhase = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppTeleportRunPhase;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppTeleportRunPhase.Started;+ case 2: return AppTeleportRunPhase.Progress;+ case 3: return AppTeleportRunPhase.Finished;+ case 4: return AppTeleportRunPhase.Failed;+ case 5: return AppTeleportRunPhase.Done;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppTeleportRunPhase.Started: return ordinalConverter.write(1, into);+ case AppTeleportRunPhase.Progress: return ordinalConverter.write(2, into);+ case AppTeleportRunPhase.Finished: return ordinalConverter.write(3, into);+ case AppTeleportRunPhase.Failed: return ordinalConverter.write(4, into);+ case AppTeleportRunPhase.Done: return ordinalConverter.write(5, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppTeleportRunEvent = {/**- * Which releases the updater offers (Settings, About).+ * Step index.*/- updateChannel: AppUpdateChannel,+ step: number,/**- * Launch at login, as the user chose it (the first run's Done page or- * Settings); `None`: never chosen ([`crate::login_item::launch_plan`]).+ * Steps.*/- launchAtLogin?: boolean,+ steps: number,/**- * Settings, Experiments: every switch off unless turned on- * ([`crate::experiments`]).+ * Step kind.*/- experiments: AppExperiments,+ kind: string,/**- * Keyvault copies (import ids) the user dismissed from the notch: it no- * longer shows them, nothing is revoked or wiped- * ([`crate::keyvault::view::prune_dismissed`] forgets the gone ones).+ * Phase.*/- dismissedAccess: Array<string>,+ phase: AppTeleportRunPhase,/**- * Keyvault rows may load a site's icon from Google's favicon service- * when the source browser had none (Settings, Keyvault; on by default).- * Off, only icons read locally are shown.+ * Detail.*/- keyvaultSiteIcons: boolean,+ detail: string,/**- * The sites the user sent to each Space last time, per app- * ([`crate::teleport::review::remember`]): the review starts from them.+ * Bytes done.*/- teleportChoices: Array<AppRememberedChoice>,+ doneBytes: bigint,/**- * Settings, General: a running Space's desktop streams as soon as it- * is opened (on by default); off, it waits for Connect- * ([`crate::spaces::cover`]).+ * Bytes total.*/- autoConnect: boolean+ totalBytes: bigint}/**- * Generated factory for {@link AppSettings} record objects.+ * Generated factory for {@link AppTeleportRunEvent} record objects.*/-export const AppSettings = (() => {+export const AppTeleportRunEvent = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSettings, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppTeleportRunEvent, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSettings>,+ defaults: () => Object.freeze(defaults()) as Partial<AppTeleportRunEvent>,});})();-const FfiConverterTypeAppSettings = (() => {- type TypeName = AppSettings;+const FfiConverterTypeAppTeleportRunEvent = (() => {+ type TypeName = AppTeleportRunEvent;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- hotkey: FfiConverterString.read(from),- menuBar: FfiConverterBool.read(from),- theme: FfiConverterTypeAppSwitcherTheme.read(from),- defaultLocation: FfiConverterTypeAppLocation.read(from),- hideInFullScreen: FfiConverterBool.read(from),- notificationsSeenMs: FfiConverterUInt64.read(from),- lastSeenVersion: FfiConverterOptionalString.read(from),- updateChannel: FfiConverterTypeAppUpdateChannel.read(from),- launchAtLogin: FfiConverterOptionalBoolean.read(from),- experiments: FfiConverterTypeAppExperiments.read(from),- dismissedAccess: FfiConverterSequenceString.read(from),- keyvaultSiteIcons: FfiConverterBool.read(from),- teleportChoices: FfiConverterSequenceTypeAppRememberedChoice.read(from),- autoConnect: FfiConverterBool.read(from)+ step: FfiConverterUInt32.read(from),+ steps: FfiConverterUInt32.read(from),+ kind: FfiConverterString.read(from),+ phase: FfiConverterTypeAppTeleportRunPhase.read(from),+ detail: FfiConverterString.read(from),+ doneBytes: FfiConverterUInt64.read(from),+ totalBytes: FfiConverterUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.hotkey, into);- FfiConverterBool.write(value.menuBar, into);- FfiConverterTypeAppSwitcherTheme.write(value.theme, into);- FfiConverterTypeAppLocation.write(value.defaultLocation, into);- FfiConverterBool.write(value.hideInFullScreen, into);- FfiConverterUInt64.write(value.notificationsSeenMs, into);- FfiConverterOptionalString.write(value.lastSeenVersion, into);- FfiConverterTypeAppUpdateChannel.write(value.updateChannel, into);- FfiConverterOptionalBoolean.write(value.launchAtLogin, into);- FfiConverterTypeAppExperiments.write(value.experiments, into);- FfiConverterSequenceString.write(value.dismissedAccess, into);- FfiConverterBool.write(value.keyvaultSiteIcons, into);- FfiConverterSequenceTypeAppRememberedChoice.write(value.teleportChoices, into);- FfiConverterBool.write(value.autoConnect, into);+ FfiConverterUInt32.write(value.step, into);+ FfiConverterUInt32.write(value.steps, into);+ FfiConverterString.write(value.kind, into);+ FfiConverterTypeAppTeleportRunPhase.write(value.phase, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterUInt64.write(value.doneBytes, into);+ FfiConverterUInt64.write(value.totalBytes, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.hotkey) +- FfiConverterBool.allocationSize(value.menuBar) +- FfiConverterTypeAppSwitcherTheme.allocationSize(value.theme) +- FfiConverterTypeAppLocation.allocationSize(value.defaultLocation) +- FfiConverterBool.allocationSize(value.hideInFullScreen) +- FfiConverterUInt64.allocationSize(value.notificationsSeenMs) +- FfiConverterOptionalString.allocationSize(value.lastSeenVersion) +- FfiConverterTypeAppUpdateChannel.allocationSize(value.updateChannel) +- FfiConverterOptionalBoolean.allocationSize(value.launchAtLogin) +- FfiConverterTypeAppExperiments.allocationSize(value.experiments) +- FfiConverterSequenceString.allocationSize(value.dismissedAccess) +- FfiConverterBool.allocationSize(value.keyvaultSiteIcons) +- FfiConverterSequenceTypeAppRememberedChoice.allocationSize(value.teleportChoices) +- FfiConverterBool.allocationSize(value.autoConnect);+ return FfiConverterUInt32.allocationSize(value.step) ++ FfiConverterUInt32.allocationSize(value.steps) ++ FfiConverterString.allocationSize(value.kind) ++ FfiConverterTypeAppTeleportRunPhase.allocationSize(value.phase) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterUInt64.allocationSize(value.doneBytes) ++ FfiConverterUInt64.allocationSize(value.totalBytes);}};return new FFIConverter();})();--// Enum: AppSignInPhase-export enum AppSignInPhase_Tags {- Idle = "Idle",- Starting = "Starting",- Waiting = "Waiting",- Failed = "Failed"-}-export const AppSignInPhase = (() => {-- type Idle__interface = {- tag: AppSignInPhase_Tags.Idle- };+export type AppTeleportRunReport = {/**- * Nothing started.+ * App id.*/- class Idle_ extends UniffiEnum implements Idle__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppSignInPhase";- readonly tag = AppSignInPhase_Tags.Idle;- constructor() {- super("AppSignInPhase", "Idle");- }-- static new(): Idle_ {- return new Idle_();- }-- static instanceOf(obj: any): obj is Idle_ {- return obj.tag === AppSignInPhase_Tags.Idle;- }-- }-- type Starting__interface = {- tag: AppSignInPhase_Tags.Starting- };+ appId: string,/**- * Asking for a code.+ * Installed.*/- class Starting_ extends UniffiEnum implements Starting__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppSignInPhase";- readonly tag = AppSignInPhase_Tags.Starting;- constructor() {- super("AppSignInPhase", "Starting");- }-- static new(): Starting_ {- return new Starting_();- }-- static instanceOf(obj: any): obj is Starting_ {- return obj.tag === AppSignInPhase_Tags.Starting;- }-- }-- type Waiting__interface = {- tag: AppSignInPhase_Tags.Waiting;- inner:-Readonly<{userCode?: string}>- };+ installed: Array<string>,/**- * The browser is open.+ * Sent.*/- class Waiting_ extends UniffiEnum implements Waiting__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppSignInPhase";- readonly tag = AppSignInPhase_Tags.Waiting;- readonly inner:-Readonly<{userCode?: string}>;- constructor(-inner: {userCode?: string }) {- super("AppSignInPhase", "Waiting");-- this.inner = Object.freeze(inner);- }- static new(-inner: {userCode?: string }): Waiting_ {- return new Waiting_(inner);- }-- static instanceOf(obj: any): obj is Waiting_ {- return obj.tag === AppSignInPhase_Tags.Waiting;- }-- }-- type Failed__interface = {- tag: AppSignInPhase_Tags.Failed;- inner:-Readonly<{message: string}>- };+ sent: Array<string>,/**- * It failed.+ * Imported.*/- class Failed_ extends UniffiEnum implements Failed__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppSignInPhase";- readonly tag = AppSignInPhase_Tags.Failed;- readonly inner:-Readonly<{message: string}>;- constructor(-inner: {message: string }) {- super("AppSignInPhase", "Failed");-- this.inner = Object.freeze(inner);- }- static new(-inner: {message: string }): Failed_ {- return new Failed_(inner);- }-- static instanceOf(obj: any): obj is Failed_ {- return obj.tag === AppSignInPhase_Tags.Failed;- }-- }-- function instanceOf(obj: any): obj is AppSignInPhase {- return obj[uniffiTypeNameSymbol] === "AppSignInPhase";- }+ imported: Array<string>,+ /**+ * Skipped.+ */+ skipped: Array<string>,+ /**+ * Launched.+ */+ launched: boolean+}+/**+ * Generated factory for {@link AppTeleportRunReport} record objects.+ */+export const AppTeleportRunReport = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppTeleportRunReport, ReturnType<typeof defaults>>(defaults);+ })();return Object.freeze({- instanceOf,- Idle: Idle_,- Starting: Starting_,- Waiting: Waiting_,- Failed: Failed_+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppTeleportRunReport>,});-})();-export type AppSignInPhase = InstanceType<- typeof AppSignInPhase['Idle' | 'Starting' | 'Waiting' | 'Failed']->;-// FfiConverter for enum AppSignInPhase-const FfiConverterTypeAppSignInPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppSignInPhase;+const FfiConverterTypeAppTeleportRunReport = (() => {+ type TypeName = AppTeleportRunReport;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppSignInPhase.Idle();- case 2: return new AppSignInPhase.Starting();- case 3: return new AppSignInPhase.Waiting({userCode: FfiConverterOptionalString.read(from) });- case 4: return new AppSignInPhase.Failed({message: FfiConverterString.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ appId: FfiConverterString.read(from),+ installed: FfiConverterSequenceString.read(from),+ sent: FfiConverterSequenceString.read(from),+ imported: FfiConverterSequenceString.read(from),+ skipped: FfiConverterSequenceString.read(from),+ launched: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppSignInPhase_Tags.Idle: {- ordinalConverter.write(1, into);- return;- }- case AppSignInPhase_Tags.Starting: {- ordinalConverter.write(2, into);- return;- }- case AppSignInPhase_Tags.Waiting: {- ordinalConverter.write(3, into);- const inner = value.inner;- FfiConverterOptionalString.write(inner.userCode, into);- return;- }- case AppSignInPhase_Tags.Failed: {- ordinalConverter.write(4, into);- const inner = value.inner;- FfiConverterString.write(inner.message, into);- return;- }- default:- // Throwing from here means that AppSignInPhase_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }+ FfiConverterString.write(value.appId, into);+ FfiConverterSequenceString.write(value.installed, into);+ FfiConverterSequenceString.write(value.sent, into);+ FfiConverterSequenceString.write(value.imported, into);+ FfiConverterSequenceString.write(value.skipped, into);+ FfiConverterBool.write(value.launched, into);}allocationSize(value: TypeName): number {- switch (value.tag) {- case AppSignInPhase_Tags.Idle: {- return ordinalConverter.allocationSize(1);- }- case AppSignInPhase_Tags.Starting: {- return ordinalConverter.allocationSize(2);- }- case AppSignInPhase_Tags.Waiting: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(3);- size += FfiConverterOptionalString.allocationSize(inner.userCode);- return size;- }- case AppSignInPhase_Tags.Failed: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(4);- size += FfiConverterString.allocationSize(inner.message);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return FfiConverterString.allocationSize(value.appId) ++ FfiConverterSequenceString.allocationSize(value.installed) ++ FfiConverterSequenceString.allocationSize(value.sent) ++ FfiConverterSequenceString.allocationSize(value.imported) ++ FfiConverterSequenceString.allocationSize(value.skipped) ++ FfiConverterBool.allocationSize(value.launched);+}- }+ };return new FFIConverter();})();-export type AppSettingsInput = {- /**- * The signed-in account.- */- identity?: string,- /**- * Cua Cloud through client credentials (an API key): its client id.- */- apiKeyClient?: string,+export type AppPickerState = {/**- * The sign-in in progress.+ * Step.*/- signIn: AppSignInPhase,+ step: AppPickerStep,/**- * Signing out is possible (a user session).+ * The target Space's name.*/- canSignOut: boolean,+ spaceName: string,/**- * The Spaces tab is hidden from the notch (the menu bar item is the- * entry point).+ * The catalog, once loaded.*/- menuBar: boolean,+ entries?: Array<AppCatalogEntry>,/**- * Where New Space starts.+ * Search.*/- defaultLocation: AppLocation,+ query: string,/**- * The environment sets the default location: which variable.+ * Highlighted app.*/- locationLockedBy?: string,+ selectedId?: string,/**- * The telemetry switch (none until read).+ * The chosen app.*/- telemetry?: AppTelemetryInput,+ entry?: AppCatalogEntry,/**- * Coding agents (none while detecting).+ * What moves.*/- agents?: Array<AppAgentSettingsRow>,+ moves?: AppTeleportMove,/**- * "Configure all" is running.+ * Chosen files.*/- agentsBusy: boolean,+ files: Array<string>,/**- * Agents with an action running.+ * The opt-in groups checked on the options step (only planned with the+ * signed-in state move). Each group's items are secrets the review+ * lists and asks to acknowledge.*/- agentsPending: Array<string>,+ sensitive: Array<AppSensitiveGroup>,/**- * The account's Cua Cloud billing, once read (signed in).+ * The plan under review.*/- billing?: AppBillingStatus,+ plan?: AppTeleportPlan,/**- * Launch at login, once the system was asked (none: no rows).+ * Secrets acknowledged.*/- loginItem?: AppLoginItemInput,+ acknowledged: boolean,/**- * Settings, Experiments (what the page mentions follows them).+ * "Save to Keyvault" checked: keep the captured session sealed in the+ * Cua Keyvault after delivery, for reuse without asking again (shown+ * alongside the acknowledgement, only when the plan is sensitive).*/- experiments: AppExperiments,+ saveToKeyvault: boolean,/**- * The Keyvault's auto-wipe, once the broker told it (none: no- * Keyvault section).+ * [`Plan::relay_unsealed`]'s warning acknowledged (S1).*/- keyvaultAutoWipe?: boolean,+ acknowledgedRelayPlaintext: boolean,/**- * The unlock prompt shows (false once the user chose "Never ask- * again"); none until the broker told it.+ * What the review sends: which sites, which items, from where.*/- keyvaultUnlockPrompt?: boolean,+ choice: AppReviewChoice,/**- * Load site icons from Google when the browser had none- * ([`AppSettings::keyvault_site_icons`]).+ * Run events (last [`MAX_EVENTS`]).*/- keyvaultSiteIcons: boolean,+ events: Array<AppTeleportRunEvent>,/**- * The Keyvault's protection facts (Touch ID, the daemon's signature),- * shown in the section.+ * The run's report.*/- keyvaultProtection: Array<AppFact>,+ report?: AppTeleportRunReport,/**- * "Connect to the desktop automatically" (none: no row; a shell- * without the preview cover leaves it out).+ * Error text.*/- autoConnect?: boolean,+ error?: string,/**- * Which Lume macOS Spaces run on (`runtime.lume`: `auto`, `builtin`,- * `system`); none: no Runtimes section.+ * The "needs the Cua app" prompt.*/- lumeSource?: string,+ installPrompt?: AppInstallCuaPrompt,/**- * Which engine local Linux Spaces run on (`runtime.linux`: `auto`,- * `builtin`, `system`); none: no Linux row.+ * Where Back from an error goes.*/- linuxSource?: string+ errorBack: AppPickerStep}/**- * Generated factory for {@link AppSettingsInput} record objects.+ * Generated factory for {@link AppPickerState} record objects.*/-export const AppSettingsInput = (() => {+export const AppPickerState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSettingsInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPickerState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSettingsInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPickerState>,});})();-const FfiConverterTypeAppSettingsInput = (() => {- type TypeName = AppSettingsInput;+const FfiConverterTypeAppPickerState = (() => {+ type TypeName = AppPickerState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- identity: FfiConverterOptionalString.read(from),- apiKeyClient: FfiConverterOptionalString.read(from),- signIn: FfiConverterTypeAppSignInPhase.read(from),- canSignOut: FfiConverterBool.read(from),- menuBar: FfiConverterBool.read(from),- defaultLocation: FfiConverterTypeAppLocation.read(from),- locationLockedBy: FfiConverterOptionalString.read(from),- telemetry: FfiConverterOptionalTypeAppTelemetryInput.read(from),- agents: FfiConverterOptionalSequenceTypeAppAgentSettingsRow.read(from),- agentsBusy: FfiConverterBool.read(from),- agentsPending: FfiConverterSequenceString.read(from),- billing: FfiConverterOptionalTypeAppBillingStatus.read(from),- loginItem: FfiConverterOptionalTypeAppLoginItemInput.read(from),- experiments: FfiConverterTypeAppExperiments.read(from),- keyvaultAutoWipe: FfiConverterOptionalBoolean.read(from),- keyvaultUnlockPrompt: FfiConverterOptionalBoolean.read(from),- keyvaultSiteIcons: FfiConverterBool.read(from),- keyvaultProtection: FfiConverterSequenceTypeAppFact.read(from),- autoConnect: FfiConverterOptionalBoolean.read(from),- lumeSource: FfiConverterOptionalString.read(from),- linuxSource: FfiConverterOptionalString.read(from)+ step: FfiConverterTypeAppPickerStep.read(from),+ spaceName: FfiConverterString.read(from),+ entries: FfiConverterOptionalSequenceTypeAppCatalogEntry.read(from),+ query: FfiConverterString.read(from),+ selectedId: FfiConverterOptionalString.read(from),+ entry: FfiConverterOptionalTypeAppCatalogEntry.read(from),+ moves: FfiConverterOptionalTypeAppTeleportMove.read(from),+ files: FfiConverterSequenceString.read(from),+ sensitive: FfiConverterSequenceTypeAppSensitiveGroup.read(from),+ plan: FfiConverterOptionalTypeAppTeleportPlan.read(from),+ acknowledged: FfiConverterBool.read(from),+ saveToKeyvault: FfiConverterBool.read(from),+ acknowledgedRelayPlaintext: FfiConverterBool.read(from),+ choice: FfiConverterTypeAppReviewChoice.read(from),+ events: FfiConverterSequenceTypeAppTeleportRunEvent.read(from),+ report: FfiConverterOptionalTypeAppTeleportRunReport.read(from),+ error: FfiConverterOptionalString.read(from),+ installPrompt: FfiConverterOptionalTypeAppInstallCuaPrompt.read(from),+ errorBack: FfiConverterTypeAppPickerStep.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.identity, into);- FfiConverterOptionalString.write(value.apiKeyClient, into);- FfiConverterTypeAppSignInPhase.write(value.signIn, into);- FfiConverterBool.write(value.canSignOut, into);- FfiConverterBool.write(value.menuBar, into);- FfiConverterTypeAppLocation.write(value.defaultLocation, into);- FfiConverterOptionalString.write(value.locationLockedBy, into);- FfiConverterOptionalTypeAppTelemetryInput.write(value.telemetry, into);- FfiConverterOptionalSequenceTypeAppAgentSettingsRow.write(value.agents, into);- FfiConverterBool.write(value.agentsBusy, into);- FfiConverterSequenceString.write(value.agentsPending, into);- FfiConverterOptionalTypeAppBillingStatus.write(value.billing, into);- FfiConverterOptionalTypeAppLoginItemInput.write(value.loginItem, into);- FfiConverterTypeAppExperiments.write(value.experiments, into);- FfiConverterOptionalBoolean.write(value.keyvaultAutoWipe, into);- FfiConverterOptionalBoolean.write(value.keyvaultUnlockPrompt, into);- FfiConverterBool.write(value.keyvaultSiteIcons, into);- FfiConverterSequenceTypeAppFact.write(value.keyvaultProtection, into);- FfiConverterOptionalBoolean.write(value.autoConnect, into);- FfiConverterOptionalString.write(value.lumeSource, into);- FfiConverterOptionalString.write(value.linuxSource, into);+ FfiConverterTypeAppPickerStep.write(value.step, into);+ FfiConverterString.write(value.spaceName, into);+ FfiConverterOptionalSequenceTypeAppCatalogEntry.write(value.entries, into);+ FfiConverterString.write(value.query, into);+ FfiConverterOptionalString.write(value.selectedId, into);+ FfiConverterOptionalTypeAppCatalogEntry.write(value.entry, into);+ FfiConverterOptionalTypeAppTeleportMove.write(value.moves, into);+ FfiConverterSequenceString.write(value.files, into);+ FfiConverterSequenceTypeAppSensitiveGroup.write(value.sensitive, into);+ FfiConverterOptionalTypeAppTeleportPlan.write(value.plan, into);+ FfiConverterBool.write(value.acknowledged, into);+ FfiConverterBool.write(value.saveToKeyvault, into);+ FfiConverterBool.write(value.acknowledgedRelayPlaintext, into);+ FfiConverterTypeAppReviewChoice.write(value.choice, into);+ FfiConverterSequenceTypeAppTeleportRunEvent.write(value.events, into);+ FfiConverterOptionalTypeAppTeleportRunReport.write(value.report, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalTypeAppInstallCuaPrompt.write(value.installPrompt, into);+ FfiConverterTypeAppPickerStep.write(value.errorBack, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.identity) +- FfiConverterOptionalString.allocationSize(value.apiKeyClient) +- FfiConverterTypeAppSignInPhase.allocationSize(value.signIn) +- FfiConverterBool.allocationSize(value.canSignOut) +- FfiConverterBool.allocationSize(value.menuBar) +- FfiConverterTypeAppLocation.allocationSize(value.defaultLocation) +- FfiConverterOptionalString.allocationSize(value.locationLockedBy) +- FfiConverterOptionalTypeAppTelemetryInput.allocationSize(value.telemetry) +- FfiConverterOptionalSequenceTypeAppAgentSettingsRow.allocationSize(value.agents) +- FfiConverterBool.allocationSize(value.agentsBusy) +- FfiConverterSequenceString.allocationSize(value.agentsPending) +- FfiConverterOptionalTypeAppBillingStatus.allocationSize(value.billing) +- FfiConverterOptionalTypeAppLoginItemInput.allocationSize(value.loginItem) +- FfiConverterTypeAppExperiments.allocationSize(value.experiments) +- FfiConverterOptionalBoolean.allocationSize(value.keyvaultAutoWipe) +- FfiConverterOptionalBoolean.allocationSize(value.keyvaultUnlockPrompt) +- FfiConverterBool.allocationSize(value.keyvaultSiteIcons) +- FfiConverterSequenceTypeAppFact.allocationSize(value.keyvaultProtection) +- FfiConverterOptionalBoolean.allocationSize(value.autoConnect) +- FfiConverterOptionalString.allocationSize(value.lumeSource) +- FfiConverterOptionalString.allocationSize(value.linuxSource);+ return FfiConverterTypeAppPickerStep.allocationSize(value.step) ++ FfiConverterString.allocationSize(value.spaceName) ++ FfiConverterOptionalSequenceTypeAppCatalogEntry.allocationSize(value.entries) ++ FfiConverterString.allocationSize(value.query) ++ FfiConverterOptionalString.allocationSize(value.selectedId) ++ FfiConverterOptionalTypeAppCatalogEntry.allocationSize(value.entry) ++ FfiConverterOptionalTypeAppTeleportMove.allocationSize(value.moves) ++ FfiConverterSequenceString.allocationSize(value.files) ++ FfiConverterSequenceTypeAppSensitiveGroup.allocationSize(value.sensitive) ++ FfiConverterOptionalTypeAppTeleportPlan.allocationSize(value.plan) ++ FfiConverterBool.allocationSize(value.acknowledged) ++ FfiConverterBool.allocationSize(value.saveToKeyvault) ++ FfiConverterBool.allocationSize(value.acknowledgedRelayPlaintext) ++ FfiConverterTypeAppReviewChoice.allocationSize(value.choice) ++ FfiConverterSequenceTypeAppTeleportRunEvent.allocationSize(value.events) ++ FfiConverterOptionalTypeAppTeleportRunReport.allocationSize(value.report) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalTypeAppInstallCuaPrompt.allocationSize(value.installPrompt) ++ FfiConverterTypeAppPickerStep.allocationSize(value.errorBack);}};return new FFIConverter();})();-export type AppSettingsSection = {+export type AppPlacementOption = {/**- * `account`, `general`, `privacy`, `agents`.+ * What choosing it sets as the create's `on`: `local`, `cloud`,+ * `host:<machine>`, or a connected cloud's word (`aws`).*/id: string,/**- * "Account", "General", "Privacy", "AI agents".+ * The menu's text: "This Mac", "Mac mini", "Mac mini (offline)",+ * "Mac mini (not sharing)", "AWS · us-west-2".*/- title: string,+ label: string,/**- * A button in the header.+ * Its group, in menu order (a separator between groups): `this-mac`,+ * `hosts`, `clouds`.*/- button?: string,+ group: string,/**- * That button can be used.+ * Chosen.*/- buttonEnabled: boolean,+ selected: boolean,/**- * Its tooltip.+ * It can be chosen now (offline, not sharing, at its limit: not).*/- buttonHelp?: string,+ enabled: boolean,/**- * Rows.+ * One line: why not, or what it runs (the tooltip).*/- rows: Array<AppSettingsRow>+ detail: string}/**- * Generated factory for {@link AppSettingsSection} record objects.+ * Generated factory for {@link AppPlacementOption} record objects.*/-export const AppSettingsSection = (() => {+export const AppPlacementOption = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSettingsSection, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPlacementOption, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSettingsSection>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPlacementOption>,});})();-const FfiConverterTypeAppSettingsSection = (() => {- type TypeName = AppSettingsSection;+const FfiConverterTypeAppPlacementOption = (() => {+ type TypeName = AppPlacementOption;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- button: FfiConverterOptionalString.read(from),- buttonEnabled: FfiConverterBool.read(from),- buttonHelp: FfiConverterOptionalString.read(from),- rows: FfiConverterSequenceTypeAppSettingsRow.read(from)+ label: FfiConverterString.read(from),+ group: FfiConverterString.read(from),+ selected: FfiConverterBool.read(from),+ enabled: FfiConverterBool.read(from),+ detail: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);- FfiConverterOptionalString.write(value.button, into);- FfiConverterBool.write(value.buttonEnabled, into);- FfiConverterOptionalString.write(value.buttonHelp, into);- FfiConverterSequenceTypeAppSettingsRow.write(value.rows, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.group, into);+ FfiConverterBool.write(value.selected, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterString.write(value.detail, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterOptionalString.allocationSize(value.button) +- FfiConverterBool.allocationSize(value.buttonEnabled) +- FfiConverterOptionalString.allocationSize(value.buttonHelp) +- FfiConverterSequenceTypeAppSettingsRow.allocationSize(value.rows);+ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.group) ++ FfiConverterBool.allocationSize(value.selected) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterString.allocationSize(value.detail);}};return new FFIConverter();})();-export type AppSettingsPage = {+export type AppPowerButton = {/**- * "Settings".+ * SF Symbol ([`POWER_SYMBOL`]).*/- title: string,+ symbol: string,/**- * Account, General, Privacy (once read), AI agents.+ * Tooltip and accessibility label: "Suspend", "Resume", "Turn off" or+ * "Turn on"; while it runs, "Suspending…" and the like.*/- sections: Array<AppSettingsSection>+ help: string,+ /**+ * A press turns it on (else off): the shell's SDK call.+ */+ turnOn: boolean,+ /**+ * It can be pressed (not while an action runs).+ */+ enabled: boolean,+ /**+ * An action runs: a spinner shows in its place.+ */+ busy: boolean}/**- * Generated factory for {@link AppSettingsPage} record objects.+ * Generated factory for {@link AppPowerButton} record objects.*/-export const AppSettingsPage = (() => {+export const AppPowerButton = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSettingsPage, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPowerButton, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSettingsPage>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPowerButton>,});})();-const FfiConverterTypeAppSettingsPage = (() => {- type TypeName = AppSettingsPage;+const FfiConverterTypeAppPowerButton = (() => {+ type TypeName = AppPowerButton;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- sections: FfiConverterSequenceTypeAppSettingsSection.read(from)+ symbol: FfiConverterString.read(from),+ help: FfiConverterString.read(from),+ turnOn: FfiConverterBool.read(from),+ enabled: FfiConverterBool.read(from),+ busy: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppSettingsSection.write(value.sections, into);+ FfiConverterString.write(value.symbol, into);+ FfiConverterString.write(value.help, into);+ FfiConverterBool.write(value.turnOn, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterBool.write(value.busy, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppSettingsSection.allocationSize(value.sections);+ return FfiConverterString.allocationSize(value.symbol) ++ FfiConverterString.allocationSize(value.help) ++ FfiConverterBool.allocationSize(value.turnOn) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterBool.allocationSize(value.busy);}};return new FFIConverter();})();-export type AppShareEntryInput = {+export type AppPresentationPreview = {/**- * Email or account id.+ * The menu bar card (else the notch card).*/- who: string,+ menuBar: boolean,/**- * `viewer` or `editor`.+ * Stage width.*/- role: string,+ width: number,/**- * Connected through the relay now.+ * Stage height.*/- connected: boolean+ height: number,+ /**+ * The menu bar strip along the top.+ */+ menuBarHeight: number,+ /**+ * One loop (ms).+ */+ loopMs: number,+ /**+ * The pointer's outline, tip at the origin (fill black, stroke white).+ */+ pointer: Array<AppPreviewPoint>,+ /**+ * The notch card's miniature.+ */+ notch?: AppNotchPreview,+ /**+ * The menu bar card's miniature.+ */+ menu?: AppMenuPreview}/**- * Generated factory for {@link AppShareEntryInput} record objects.+ * Generated factory for {@link AppPresentationPreview} record objects.*/-export const AppShareEntryInput = (() => {+export const AppPresentationPreview = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppShareEntryInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPresentationPreview, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppShareEntryInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPresentationPreview>,});})();-const FfiConverterTypeAppShareEntryInput = (() => {- type TypeName = AppShareEntryInput;+const FfiConverterTypeAppPresentationPreview = (() => {+ type TypeName = AppPresentationPreview;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- who: FfiConverterString.read(from),- role: FfiConverterString.read(from),- connected: FfiConverterBool.read(from)+ menuBar: FfiConverterBool.read(from),+ width: FfiConverterFloat64.read(from),+ height: FfiConverterFloat64.read(from),+ menuBarHeight: FfiConverterFloat64.read(from),+ loopMs: FfiConverterUInt32.read(from),+ pointer: FfiConverterSequenceTypeAppPreviewPoint.read(from),+ notch: FfiConverterOptionalTypeAppNotchPreview.read(from),+ menu: FfiConverterOptionalTypeAppMenuPreview.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.who, into);- FfiConverterString.write(value.role, into);- FfiConverterBool.write(value.connected, into);+ FfiConverterBool.write(value.menuBar, into);+ FfiConverterFloat64.write(value.width, into);+ FfiConverterFloat64.write(value.height, into);+ FfiConverterFloat64.write(value.menuBarHeight, into);+ FfiConverterUInt32.write(value.loopMs, into);+ FfiConverterSequenceTypeAppPreviewPoint.write(value.pointer, into);+ FfiConverterOptionalTypeAppNotchPreview.write(value.notch, into);+ FfiConverterOptionalTypeAppMenuPreview.write(value.menu, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.who) +- FfiConverterString.allocationSize(value.role) +- FfiConverterBool.allocationSize(value.connected);+ return FfiConverterBool.allocationSize(value.menuBar) ++ FfiConverterFloat64.allocationSize(value.width) ++ FfiConverterFloat64.allocationSize(value.height) ++ FfiConverterFloat64.allocationSize(value.menuBarHeight) ++ FfiConverterUInt32.allocationSize(value.loopMs) ++ FfiConverterSequenceTypeAppPreviewPoint.allocationSize(value.pointer) ++ FfiConverterOptionalTypeAppNotchPreview.allocationSize(value.notch) ++ FfiConverterOptionalTypeAppMenuPreview.allocationSize(value.menu);}};return new FFIConverter();})();-export type AppShareInput = {+export type AppPreviewFrame = {/**- * The Space's id.+ * The pointer's tip.*/- spaceId: string,+ pointer: AppPreviewPoint,/**- * Its display name.+ * The pointer presses (drawn a little smaller).*/- spaceName: string,+ pressed: boolean,/**- * Who it is shared with.+ * Notch: the hover cue, 0 to 1 (the closed notch and its tab grow by+ * 1 + (hover_scale - 1) * hover horizontally, about the top centre).*/- shares: Array<AppShareEntryInput>,+ hover: number,/**- * Signed in to cua.ai (sharing goes through the account's relay).+ * Notch: the shape, closed 0 to open 1 (a spring: it can pass 1);+ * menu: the menu's opacity.*/- signedIn: boolean,+ open: number,/**- * The Space can be shared (a host, or a driver with `relay_attach`).+ * Notch: the content's fade, 0 to 1 (it also grows from+ * `content_scale`, anchored at the top); menu: the same as `open`.*/- shareable: boolean+ content: number,+ /**+ * Notch: the tab, 1 shown to 0 tucked under the notch.+ */+ tab: number,+ /**+ * Menu: the row under the pointer (an enabled item), highlighted.+ */+ highlighted?: number,+ /**+ * Menu: the status item is highlighted (pressed, or its menu open).+ */+ active: boolean}/**- * Generated factory for {@link AppShareInput} record objects.+ * Generated factory for {@link AppPreviewFrame} record objects.*/-export const AppShareInput = (() => {+export const AppPreviewFrame = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppShareInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppPreviewFrame, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppShareInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppPreviewFrame>,});})();-const FfiConverterTypeAppShareInput = (() => {- type TypeName = AppShareInput;+const FfiConverterTypeAppPreviewFrame = (() => {+ type TypeName = AppPreviewFrame;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- spaceId: FfiConverterString.read(from),- spaceName: FfiConverterString.read(from),- shares: FfiConverterSequenceTypeAppShareEntryInput.read(from),- signedIn: FfiConverterBool.read(from),- shareable: FfiConverterBool.read(from)+ pointer: FfiConverterTypeAppPreviewPoint.read(from),+ pressed: FfiConverterBool.read(from),+ hover: FfiConverterFloat64.read(from),+ open: FfiConverterFloat64.read(from),+ content: FfiConverterFloat64.read(from),+ tab: FfiConverterFloat64.read(from),+ highlighted: FfiConverterOptionalUInt32.read(from),+ active: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.spaceId, into);- FfiConverterString.write(value.spaceName, into);- FfiConverterSequenceTypeAppShareEntryInput.write(value.shares, into);- FfiConverterBool.write(value.signedIn, into);- FfiConverterBool.write(value.shareable, into);+ FfiConverterTypeAppPreviewPoint.write(value.pointer, into);+ FfiConverterBool.write(value.pressed, into);+ FfiConverterFloat64.write(value.hover, into);+ FfiConverterFloat64.write(value.open, into);+ FfiConverterFloat64.write(value.content, into);+ FfiConverterFloat64.write(value.tab, into);+ FfiConverterOptionalUInt32.write(value.highlighted, into);+ FfiConverterBool.write(value.active, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.spaceId) +- FfiConverterString.allocationSize(value.spaceName) +- FfiConverterSequenceTypeAppShareEntryInput.allocationSize(value.shares) +- FfiConverterBool.allocationSize(value.signedIn) +- FfiConverterBool.allocationSize(value.shareable);+ return FfiConverterTypeAppPreviewPoint.allocationSize(value.pointer) ++ FfiConverterBool.allocationSize(value.pressed) ++ FfiConverterFloat64.allocationSize(value.hover) ++ FfiConverterFloat64.allocationSize(value.open) ++ FfiConverterFloat64.allocationSize(value.content) ++ FfiConverterFloat64.allocationSize(value.tab) ++ FfiConverterOptionalUInt32.allocationSize(value.highlighted) ++ FfiConverterBool.allocationSize(value.active);}};return new FFIConverter();})();-export type AppShareRowView = {- /**- * Email or account id.- */- who: string,+export type AppRefreshReport = {/**- * `viewer` or `editor`.+ * `cua agents update` failed (its words).*/- role: string,+ agentsError?: string,/**- * Connected through the relay now (the shells show a status dot).+ * Restarting the daemon failed (its words).*/- connected: boolean+ daemonError?: string}/**- * Generated factory for {@link AppShareRowView} record objects.+ * Generated factory for {@link AppRefreshReport} record objects.*/-export const AppShareRowView = (() => {+export const AppRefreshReport = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppShareRowView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRefreshReport, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppShareRowView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRefreshReport>,});})();-const FfiConverterTypeAppShareRowView = (() => {- type TypeName = AppShareRowView;+const FfiConverterTypeAppRefreshReport = (() => {+ type TypeName = AppRefreshReport;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- who: FfiConverterString.read(from),- role: FfiConverterString.read(from),- connected: FfiConverterBool.read(from)+ agentsError: FfiConverterOptionalString.read(from),+ daemonError: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.who, into);- FfiConverterString.write(value.role, into);- FfiConverterBool.write(value.connected, into);+ FfiConverterOptionalString.write(value.agentsError, into);+ FfiConverterOptionalString.write(value.daemonError, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.who) +- FfiConverterString.allocationSize(value.role) +- FfiConverterBool.allocationSize(value.connected);+ return FfiConverterOptionalString.allocationSize(value.agentsError) ++ FfiConverterOptionalString.allocationSize(value.daemonError);}};return new FFIConverter();})();--// Enum: AppShareRequest-export enum AppShareRequest_Tags {- Share = "Share",- Unshare = "Unshare"-}-export const AppShareRequest = (() => {-- type Share__interface = {- tag: AppShareRequest_Tags.Share;- inner:-Readonly<{space: string; who: string; role: string}>- };+export type AppRelayAllowanceNotice = {/**- * `share_space` (also changes a role).+ * "You've used your free relay allowance for this month. ..."*/- class Share_ extends UniffiEnum implements Share__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppShareRequest";- readonly tag = AppShareRequest_Tags.Share;- readonly inner:-Readonly<{space: string; who: string; role: string}>;- constructor(-inner: {space: string; who: string; role: string }) {- super("AppShareRequest", "Share");-- this.inner = Object.freeze(inner);- }- static new(-inner: {space: string; who: string; role: string }): Share_ {- return new Share_(inner);- }-- static instanceOf(obj: any): obj is Share_ {- return obj.tag === AppShareRequest_Tags.Share;- }-- }-- type Unshare__interface = {- tag: AppShareRequest_Tags.Unshare;- inner:-Readonly<{space: string; who: string}>- };+ text: string,/**- * `unshare_space`.+ * [`UPGRADE`].*/- class Unshare_ extends UniffiEnum implements Unshare__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppShareRequest";- readonly tag = AppShareRequest_Tags.Unshare;- readonly inner:-Readonly<{space: string; who: string}>;- constructor(-inner: {space: string; who: string }) {- super("AppShareRequest", "Unshare");-- this.inner = Object.freeze(inner);- }- static new(-inner: {space: string; who: string }): Unshare_ {- return new Unshare_(inner);- }-- static instanceOf(obj: any): obj is Unshare_ {- return obj.tag === AppShareRequest_Tags.Unshare;- }-- }-- function instanceOf(obj: any): obj is AppShareRequest {- return obj[uniffiTypeNameSymbol] === "AppShareRequest";- }+ upgrade: string,+ /**+ * What Upgrade opens; none: no Upgrade button.+ */+ upgradeUrl?: string,+ /**+ * [`DISMISS`].+ */+ dismiss: string,+ /**+ * What a dismissal remembers: the month and the reasons. A new month,+ * or another limit reached, shows the notice again.+ */+ dismissKey: string+}+/**+ * Generated factory for {@link AppRelayAllowanceNotice} record objects.+ */+export const AppRelayAllowanceNotice = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppRelayAllowanceNotice, ReturnType<typeof defaults>>(defaults);+ })();return Object.freeze({- instanceOf,- Share: Share_,- Unshare: Unshare_+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppRelayAllowanceNotice>,});-})();-export type AppShareRequest = InstanceType<- typeof AppShareRequest['Share' | 'Unshare']->;-// FfiConverter for enum AppShareRequest-const FfiConverterTypeAppShareRequest = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppShareRequest;+const FfiConverterTypeAppRelayAllowanceNotice = (() => {+ type TypeName = AppRelayAllowanceNotice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppShareRequest.Share({space: FfiConverterString.read(from), who: FfiConverterString.read(from), role: FfiConverterString.read(from) });- case 2: return new AppShareRequest.Unshare({space: FfiConverterString.read(from), who: FfiConverterString.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ text: FfiConverterString.read(from),+ upgrade: FfiConverterString.read(from),+ upgradeUrl: FfiConverterOptionalString.read(from),+ dismiss: FfiConverterString.read(from),+ dismissKey: FfiConverterString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppShareRequest_Tags.Share: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterString.write(inner.space, into);- FfiConverterString.write(inner.who, into);- FfiConverterString.write(inner.role, into);- return;- }- case AppShareRequest_Tags.Unshare: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.space, into);- FfiConverterString.write(inner.who, into);- return;- }- default:- // Throwing from here means that AppShareRequest_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.upgrade, into);+ FfiConverterOptionalString.write(value.upgradeUrl, into);+ FfiConverterString.write(value.dismiss, into);+ FfiConverterString.write(value.dismissKey, into);}allocationSize(value: TypeName): number {- switch (value.tag) {- case AppShareRequest_Tags.Share: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.space);- size += FfiConverterString.allocationSize(inner.who);- size += FfiConverterString.allocationSize(inner.role);- return size;- }- case AppShareRequest_Tags.Unshare: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.space);- size += FfiConverterString.allocationSize(inner.who);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.upgrade) ++ FfiConverterOptionalString.allocationSize(value.upgradeUrl) ++ FfiConverterString.allocationSize(value.dismiss) ++ FfiConverterString.allocationSize(value.dismissKey);+}- }+ };return new FFIConverter();})();-export type AppShareSheetState = {+export type AppRelayUsageTeam = {/**- * The add field, as typed.+ * Team id.*/- who: string,+ id: string,/**- * The role the add field shares with.+ * Seats sharing the allowance.*/- role: string,- /**- * A command runs.- */- busy: boolean,- /**- * The last failure.- */- error?: string,- /**- * The command waiting for the shell.- */- request?: AppShareRequest+ seats: number}/**- * Generated factory for {@link AppShareSheetState} record objects.+ * Generated factory for {@link AppRelayUsageTeam} record objects.*/-export const AppShareSheetState = (() => {+export const AppRelayUsageTeam = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppShareSheetState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRelayUsageTeam, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppShareSheetState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRelayUsageTeam>,});})();-const FfiConverterTypeAppShareSheetState = (() => {- type TypeName = AppShareSheetState;+const FfiConverterTypeAppRelayUsageTeam = (() => {+ type TypeName = AppRelayUsageTeam;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- who: FfiConverterString.read(from),- role: FfiConverterString.read(from),- busy: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- request: FfiConverterOptionalTypeAppShareRequest.read(from)+ id: FfiConverterString.read(from),+ seats: FfiConverterUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.who, into);- FfiConverterString.write(value.role, into);- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalTypeAppShareRequest.write(value.request, into);+ FfiConverterString.write(value.id, into);+ FfiConverterUInt32.write(value.seats, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.who) +- FfiConverterString.allocationSize(value.role) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalTypeAppShareRequest.allocationSize(value.request);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterUInt32.allocationSize(value.seats);}};return new FFIConverter();})();-export type AppShareSheetView = {- /**- * `Share “studio”`.- */- title: string,- /**- * One person per line.- */- rows: Array<AppShareRowView>,- /**- * Shown with no rows.- */- emptyText: string,- /**- * The add field's placeholder.- */- whoPlaceholder: string,+export type AppRelayUsage = {/**- * The add field, as typed.+ * The relay meters this account (false: no allowance applies).*/- who: string,+ metered: boolean,/**- * The add field's role.+ * The month counted (`2026-10`).*/- role: string,+ period: string,/**- * The role menu (for the add field and every row).+ * `free`, `pro`, `team`, ...*/- roles: Array<AppRoleOption>,+ plan: string,/**- * Share is enabled.+ * The team whose allowance is pooled.*/- canShare: boolean,+ team?: AppRelayUsageTeam,/**- * Share.+ * Live sessions now.*/- shareLabel: string,+ liveSessions: number,/**- * Remove (per row).+ * Live sessions allowed at once (none: no limit).*/- removeLabel: string,+ liveSessionsLimit?: number,/**- * Done.+ * Relay hours used this month (the team's, when pooled).*/- doneLabel: string,+ hoursUsed: number,/**- * Why the sheet cannot share at all (not signed in, an old driver).+ * Relay hours allowed this month (none: no limit).*/- disabledReason?: string,+ hoursLimit?: number,/**- * What the add field lacks (shown under it, only once typed).+ * This account's own relay hours this month.*/- hint?: string,+ myHoursUsed: number,/**- * A command runs.+ * Past the allowance (sessions keep working).*/- busy: boolean,+ softLimitReached: boolean,/**- * The last failure.+ * What is past it: `sessions` and/or `hours`.*/- error?: string,+ reasons: Array<string>,/**- * The command waiting for the shell.+ * Where to get more (https only; see [`checked`]).*/- request?: AppShareRequest+ upgradeUrl?: string}/**- * Generated factory for {@link AppShareSheetView} record objects.+ * Generated factory for {@link AppRelayUsage} record objects.*/-export const AppShareSheetView = (() => {+export const AppRelayUsage = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppShareSheetView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRelayUsage, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppShareSheetView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRelayUsage>,});})();-const FfiConverterTypeAppShareSheetView = (() => {- type TypeName = AppShareSheetView;+const FfiConverterTypeAppRelayUsage = (() => {+ type TypeName = AppRelayUsage;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- rows: FfiConverterSequenceTypeAppShareRowView.read(from),- emptyText: FfiConverterString.read(from),- whoPlaceholder: FfiConverterString.read(from),- who: FfiConverterString.read(from),- role: FfiConverterString.read(from),- roles: FfiConverterSequenceTypeAppRoleOption.read(from),- canShare: FfiConverterBool.read(from),- shareLabel: FfiConverterString.read(from),- removeLabel: FfiConverterString.read(from),- doneLabel: FfiConverterString.read(from),- disabledReason: FfiConverterOptionalString.read(from),- hint: FfiConverterOptionalString.read(from),- busy: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- request: FfiConverterOptionalTypeAppShareRequest.read(from)+ metered: FfiConverterBool.read(from),+ period: FfiConverterString.read(from),+ plan: FfiConverterString.read(from),+ team: FfiConverterOptionalTypeAppRelayUsageTeam.read(from),+ liveSessions: FfiConverterUInt32.read(from),+ liveSessionsLimit: FfiConverterOptionalUInt32.read(from),+ hoursUsed: FfiConverterFloat64.read(from),+ hoursLimit: FfiConverterOptionalFloat64.read(from),+ myHoursUsed: FfiConverterFloat64.read(from),+ softLimitReached: FfiConverterBool.read(from),+ reasons: FfiConverterSequenceString.read(from),+ upgradeUrl: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppShareRowView.write(value.rows, into);- FfiConverterString.write(value.emptyText, into);- FfiConverterString.write(value.whoPlaceholder, into);- FfiConverterString.write(value.who, into);- FfiConverterString.write(value.role, into);- FfiConverterSequenceTypeAppRoleOption.write(value.roles, into);- FfiConverterBool.write(value.canShare, into);- FfiConverterString.write(value.shareLabel, into);- FfiConverterString.write(value.removeLabel, into);- FfiConverterString.write(value.doneLabel, into);- FfiConverterOptionalString.write(value.disabledReason, into);- FfiConverterOptionalString.write(value.hint, into);- FfiConverterBool.write(value.busy, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalTypeAppShareRequest.write(value.request, into);+ FfiConverterBool.write(value.metered, into);+ FfiConverterString.write(value.period, into);+ FfiConverterString.write(value.plan, into);+ FfiConverterOptionalTypeAppRelayUsageTeam.write(value.team, into);+ FfiConverterUInt32.write(value.liveSessions, into);+ FfiConverterOptionalUInt32.write(value.liveSessionsLimit, into);+ FfiConverterFloat64.write(value.hoursUsed, into);+ FfiConverterOptionalFloat64.write(value.hoursLimit, into);+ FfiConverterFloat64.write(value.myHoursUsed, into);+ FfiConverterBool.write(value.softLimitReached, into);+ FfiConverterSequenceString.write(value.reasons, into);+ FfiConverterOptionalString.write(value.upgradeUrl, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppShareRowView.allocationSize(value.rows) +- FfiConverterString.allocationSize(value.emptyText) +- FfiConverterString.allocationSize(value.whoPlaceholder) +- FfiConverterString.allocationSize(value.who) +- FfiConverterString.allocationSize(value.role) +- FfiConverterSequenceTypeAppRoleOption.allocationSize(value.roles) +- FfiConverterBool.allocationSize(value.canShare) +- FfiConverterString.allocationSize(value.shareLabel) +- FfiConverterString.allocationSize(value.removeLabel) +- FfiConverterString.allocationSize(value.doneLabel) +- FfiConverterOptionalString.allocationSize(value.disabledReason) +- FfiConverterOptionalString.allocationSize(value.hint) +- FfiConverterBool.allocationSize(value.busy) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalTypeAppShareRequest.allocationSize(value.request);+ return FfiConverterBool.allocationSize(value.metered) ++ FfiConverterString.allocationSize(value.period) ++ FfiConverterString.allocationSize(value.plan) ++ FfiConverterOptionalTypeAppRelayUsageTeam.allocationSize(value.team) ++ FfiConverterUInt32.allocationSize(value.liveSessions) ++ FfiConverterOptionalUInt32.allocationSize(value.liveSessionsLimit) ++ FfiConverterFloat64.allocationSize(value.hoursUsed) ++ FfiConverterOptionalFloat64.allocationSize(value.hoursLimit) ++ FfiConverterFloat64.allocationSize(value.myHoursUsed) ++ FfiConverterBool.allocationSize(value.softLimitReached) ++ FfiConverterSequenceString.allocationSize(value.reasons) ++ FfiConverterOptionalString.allocationSize(value.upgradeUrl);}};return new FFIConverter();})();-export type AppSidebarRow = {- /**- * Space id.- */- id: string,- /**- * Name.- */- name: string,- /**- * The Space's OS icon id ([`crate::notch::os_icon`], the same mark the- * notch tiles use), before the name.- */- osIcon: string,- /**- * Status (the dot).- */- status: AppSpaceStatus,- /**- * Status word (the dot's accessibility label).- */- statusText: string,- /**- * Tooltip.- */- detail: string,- /**- * Drawn at reduced opacity.- */- dim: boolean,- /**- * Selected.- */- selected: boolean,- /**- * While it is being created: overall progress in thousandths (a ring).- */- progress?: number,+export type AppRelayUsageView = {/**- * Short text after the name: the percentage while it is being- * created, the error when the create failed.+ * [`ROW_LABEL`].*/- trailing?: string,+ label: string,/**- * A Space one of your machines provides, drawn nested under that- * machine's row (the row before it).+ * "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month", then the+ * team pool when there is one.*/- nested: boolean,+ line: string,/**- * The power button (next to Delete), for a Space whose provider can- * turn it off and on.+ * "Free plan" (empty when the relay names none).*/- power?: AppPowerButton,+ plan: string,/**- * Where a Space in your cloud runs ("AWS · us-west-2"), secondary- * text after the name.+ * Past the allowance.*/- place?: string+ notice?: AppRelayAllowanceNotice}/**- * Generated factory for {@link AppSidebarRow} record objects.+ * Generated factory for {@link AppRelayUsageView} record objects.*/-export const AppSidebarRow = (() => {+export const AppRelayUsageView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSidebarRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRelayUsageView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSidebarRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRelayUsageView>,});})();-const FfiConverterTypeAppSidebarRow = (() => {- type TypeName = AppSidebarRow;+const FfiConverterTypeAppRelayUsageView = (() => {+ type TypeName = AppRelayUsageView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- osIcon: FfiConverterString.read(from),- status: FfiConverterTypeAppSpaceStatus.read(from),- statusText: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- dim: FfiConverterBool.read(from),- selected: FfiConverterBool.read(from),- progress: FfiConverterOptionalUInt32.read(from),- trailing: FfiConverterOptionalString.read(from),- nested: FfiConverterBool.read(from),- power: FfiConverterOptionalTypeAppPowerButton.read(from),- place: FfiConverterOptionalString.read(from)+ label: FfiConverterString.read(from),+ line: FfiConverterString.read(from),+ plan: FfiConverterString.read(from),+ notice: FfiConverterOptionalTypeAppRelayAllowanceNotice.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.osIcon, into);- FfiConverterTypeAppSpaceStatus.write(value.status, into);- FfiConverterString.write(value.statusText, into);- FfiConverterString.write(value.detail, into);- FfiConverterBool.write(value.dim, into);- FfiConverterBool.write(value.selected, into);- FfiConverterOptionalUInt32.write(value.progress, into);- FfiConverterOptionalString.write(value.trailing, into);- FfiConverterBool.write(value.nested, into);- FfiConverterOptionalTypeAppPowerButton.write(value.power, into);- FfiConverterOptionalString.write(value.place, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.line, into);+ FfiConverterString.write(value.plan, into);+ FfiConverterOptionalTypeAppRelayAllowanceNotice.write(value.notice, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.osIcon) +- FfiConverterTypeAppSpaceStatus.allocationSize(value.status) +- FfiConverterString.allocationSize(value.statusText) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterBool.allocationSize(value.dim) +- FfiConverterBool.allocationSize(value.selected) +- FfiConverterOptionalUInt32.allocationSize(value.progress) +- FfiConverterOptionalString.allocationSize(value.trailing) +- FfiConverterBool.allocationSize(value.nested) +- FfiConverterOptionalTypeAppPowerButton.allocationSize(value.power) +- FfiConverterOptionalString.allocationSize(value.place);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.line) ++ FfiConverterString.allocationSize(value.plan) ++ FfiConverterOptionalTypeAppRelayAllowanceNotice.allocationSize(value.notice);}};return new FFIConverter();})();-export type AppSidebarSection = {+export type AppRememberedChoice = {/**- * "Cua Cloud", "This Mac", "Connected", "My machines".+ * `<app>|<space>`.*/- title: string,+ key: string,/**- * Rows.+ * The sites (registrable domains) that were sent.*/- rows: Array<AppSidebarRow>+ domains: Array<string>}/**- * Generated factory for {@link AppSidebarSection} record objects.+ * Generated factory for {@link AppRememberedChoice} record objects.*/-export const AppSidebarSection = (() => {+export const AppRememberedChoice = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSidebarSection, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRememberedChoice, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSidebarSection>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRememberedChoice>,});})();-const FfiConverterTypeAppSidebarSection = (() => {- type TypeName = AppSidebarSection;+const FfiConverterTypeAppRememberedChoice = (() => {+ type TypeName = AppRememberedChoice;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- rows: FfiConverterSequenceTypeAppSidebarRow.read(from)+ key: FfiConverterString.read(from),+ domains: FfiConverterSequenceString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppSidebarRow.write(value.rows, into);+ FfiConverterString.write(value.key, into);+ FfiConverterSequenceString.write(value.domains, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppSidebarRow.allocationSize(value.rows);+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterSequenceString.allocationSize(value.domains);}};return new FFIConverter();})();-export type AppSidebarView = {+export type AppRemoteWindow = {/**- * The "This machine" row, when it matches the search.+ * Stable key.*/- thisMachine?: AppSidebarRow,+ id: string,/**- * Location sections, in [`SECTION_ORDER`].+ * App name.*/- sections: Array<AppSidebarSection>,+ appName: string,/**- * The effective selection (falls back to the first Space).+ * Title.*/- selectedId?: string,+ title: string,/**- * "No matches" / "No Spaces yet" when nothing is listed.+ * Visible.*/- emptyText?: string+ visible: boolean,+ /**+ * App id.+ */+ appId: string,+ /**+ * Window handle epoch.+ */+ targetEpoch: bigint,+ /**+ * Width, px.+ */+ widthPx?: number,+ /**+ * Height, px.+ */+ heightPx?: number,+ /**+ * The owning process (what the SDK's `Space.app_icon` looks a macOS+ * app up by), when the window list reports one.+ */+ pid?: number}/**- * Generated factory for {@link AppSidebarView} record objects.+ * Generated factory for {@link AppRemoteWindow} record objects.*/-export const AppSidebarView = (() => {+export const AppRemoteWindow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSidebarView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRemoteWindow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSidebarView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRemoteWindow>,});})();-const FfiConverterTypeAppSidebarView = (() => {- type TypeName = AppSidebarView;+const FfiConverterTypeAppRemoteWindow = (() => {+ type TypeName = AppRemoteWindow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- thisMachine: FfiConverterOptionalTypeAppSidebarRow.read(from),- sections: FfiConverterSequenceTypeAppSidebarSection.read(from),- selectedId: FfiConverterOptionalString.read(from),- emptyText: FfiConverterOptionalString.read(from)+ id: FfiConverterString.read(from),+ appName: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ visible: FfiConverterBool.read(from),+ appId: FfiConverterString.read(from),+ targetEpoch: FfiConverterUInt64.read(from),+ widthPx: FfiConverterOptionalUInt32.read(from),+ heightPx: FfiConverterOptionalUInt32.read(from),+ pid: FfiConverterOptionalUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalTypeAppSidebarRow.write(value.thisMachine, into);- FfiConverterSequenceTypeAppSidebarSection.write(value.sections, into);- FfiConverterOptionalString.write(value.selectedId, into);- FfiConverterOptionalString.write(value.emptyText, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.appName, into);+ FfiConverterString.write(value.title, into);+ FfiConverterBool.write(value.visible, into);+ FfiConverterString.write(value.appId, into);+ FfiConverterUInt64.write(value.targetEpoch, into);+ FfiConverterOptionalUInt32.write(value.widthPx, into);+ FfiConverterOptionalUInt32.write(value.heightPx, into);+ FfiConverterOptionalUInt32.write(value.pid, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalTypeAppSidebarRow.allocationSize(value.thisMachine) +- FfiConverterSequenceTypeAppSidebarSection.allocationSize(value.sections) +- FfiConverterOptionalString.allocationSize(value.selectedId) +- FfiConverterOptionalString.allocationSize(value.emptyText);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.appName) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterBool.allocationSize(value.visible) ++ FfiConverterString.allocationSize(value.appId) ++ FfiConverterUInt64.allocationSize(value.targetEpoch) ++ FfiConverterOptionalUInt32.allocationSize(value.widthPx) ++ FfiConverterOptionalUInt32.allocationSize(value.heightPx) ++ FfiConverterOptionalUInt32.allocationSize(value.pid);}};return new FFIConverter();})();-export enum AppAgentStatus {- /**- * A turn is running.- */- Running = "running",- /**- * Waiting for a follow-up.- */- Idle = "idle",+export type AppRemoteWindowGroup = {/**- * Failed.+ * App id.*/- Failed = "failed",+ appId: string,/**- * Crashed.+ * App name.*/- Crashed = "crashed",+ appName: string,/**- * Could not be read.+ * Windows, arrival order.*/- Unknown = "unknown"+ windows: Array<AppRemoteWindow>}-const FfiConverterTypeAppAgentStatus = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppAgentStatus;+/**+ * Generated factory for {@link AppRemoteWindowGroup} record objects.+ */+export const AppRemoteWindowGroup = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppRemoteWindowGroup, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppRemoteWindowGroup>,+ });+})();++const FfiConverterTypeAppRemoteWindowGroup = (() => {+ type TypeName = AppRemoteWindowGroup;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppAgentStatus.Running;- case 2: return AppAgentStatus.Idle;- case 3: return AppAgentStatus.Failed;- case 4: return AppAgentStatus.Crashed;- case 5: return AppAgentStatus.Unknown;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ appId: FfiConverterString.read(from),+ appName: FfiConverterString.read(from),+ windows: FfiConverterSequenceTypeAppRemoteWindow.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppAgentStatus.Running: return ordinalConverter.write(1, into);- case AppAgentStatus.Idle: return ordinalConverter.write(2, into);- case AppAgentStatus.Failed: return ordinalConverter.write(3, into);- case AppAgentStatus.Crashed: return ordinalConverter.write(4, into);- case AppAgentStatus.Unknown: return ordinalConverter.write(5, into);- }+ FfiConverterString.write(value.appId, into);+ FfiConverterString.write(value.appName, into);+ FfiConverterSequenceTypeAppRemoteWindow.write(value.windows, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.appId) ++ FfiConverterString.allocationSize(value.appName) ++ FfiConverterSequenceTypeAppRemoteWindow.allocationSize(value.windows);+}- }+ };return new FFIConverter();})();-export type AppSpaceAgentRun = {+export type AppReviewDomain = {/**- * Run id.+ * The site (`github.com`).*/- runId: string,+ domain: string,/**- * Harness id.+ * "12 cookies, 2 storage values".*/- agent: string,+ counts: string,/**- * Status.+ * Items the site holds.*/- status: AppAgentStatus,+ count: number,/**- * Why.+ * It looks like it keeps a sign-in.*/- reason: string,+ signin: boolean,/**- * Prompt summary.+ * An identity provider: its session unlocks other apps.*/- summary: string,+ identityProvider: boolean,/**- * Unix seconds.+ * Chosen to send.*/- createdAt?: bigint,+ selected: boolean,/**- * Finer phase.+ * Can be chosen: it holds something that can be sent. A site whose+ * cookies are all unreadable is greyed out.*/- phase: string,+ selectable: boolean,/**- * Turns.+ * Cookies that cannot be read, shown greyed with `unavailable_note`.*/- turn: number+ unavailable: number,+ /**+ * "3 cookies cannot be sent: Chrome protects them with ...", or empty.+ */+ unavailableNote: string}/**- * Generated factory for {@link AppSpaceAgentRun} record objects.+ * Generated factory for {@link AppReviewDomain} record objects.*/-export const AppSpaceAgentRun = (() => {+export const AppReviewDomain = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpaceAgentRun, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppReviewDomain, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpaceAgentRun>,+ defaults: () => Object.freeze(defaults()) as Partial<AppReviewDomain>,});})();-const FfiConverterTypeAppSpaceAgentRun = (() => {- type TypeName = AppSpaceAgentRun;+const FfiConverterTypeAppReviewDomain = (() => {+ type TypeName = AppReviewDomain;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- runId: FfiConverterString.read(from),- agent: FfiConverterString.read(from),- status: FfiConverterTypeAppAgentStatus.read(from),- reason: FfiConverterString.read(from),- summary: FfiConverterString.read(from),- createdAt: FfiConverterOptionalInt64.read(from),- phase: FfiConverterString.read(from),- turn: FfiConverterUInt32.read(from)+ domain: FfiConverterString.read(from),+ counts: FfiConverterString.read(from),+ count: FfiConverterUInt32.read(from),+ signin: FfiConverterBool.read(from),+ identityProvider: FfiConverterBool.read(from),+ selected: FfiConverterBool.read(from),+ selectable: FfiConverterBool.read(from),+ unavailable: FfiConverterUInt32.read(from),+ unavailableNote: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.runId, into);- FfiConverterString.write(value.agent, into);- FfiConverterTypeAppAgentStatus.write(value.status, into);- FfiConverterString.write(value.reason, into);- FfiConverterString.write(value.summary, into);- FfiConverterOptionalInt64.write(value.createdAt, into);- FfiConverterString.write(value.phase, into);- FfiConverterUInt32.write(value.turn, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.runId) +- FfiConverterString.allocationSize(value.agent) +- FfiConverterTypeAppAgentStatus.allocationSize(value.status) +- FfiConverterString.allocationSize(value.reason) +- FfiConverterString.allocationSize(value.summary) +- FfiConverterOptionalInt64.allocationSize(value.createdAt) +- FfiConverterString.allocationSize(value.phase) +- FfiConverterUInt32.allocationSize(value.turn);+ FfiConverterString.write(value.domain, into);+ FfiConverterString.write(value.counts, into);+ FfiConverterUInt32.write(value.count, into);+ FfiConverterBool.write(value.signin, into);+ FfiConverterBool.write(value.identityProvider, into);+ FfiConverterBool.write(value.selected, into);+ FfiConverterBool.write(value.selectable, into);+ FfiConverterUInt32.write(value.unavailable, into);+ FfiConverterString.write(value.unavailableNote, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.domain) ++ FfiConverterString.allocationSize(value.counts) ++ FfiConverterUInt32.allocationSize(value.count) ++ FfiConverterBool.allocationSize(value.signin) ++ FfiConverterBool.allocationSize(value.identityProvider) ++ FfiConverterBool.allocationSize(value.selected) ++ FfiConverterBool.allocationSize(value.selectable) ++ FfiConverterUInt32.allocationSize(value.unavailable) ++ FfiConverterString.allocationSize(value.unavailableNote);}};return new FFIConverter();})();-export type AppSpaceDetail = {+export type AppReviewToggle = {/**- * Space id.+ * The consent item's key.*/- id: string,+ key: string,/**- * Title.+ * Label.+ */+ label: string,+ /**+ * Detail.+ */+ detail: string,+ /**+ * Bytes that leave.+ */+ bytes: bigint,+ /**+ * A secret.+ */+ sensitive: boolean,+ /**+ * Sent (not turned off).+ */+ selected: boolean+}++/**+ * Generated factory for {@link AppReviewToggle} record objects.+ */+export const AppReviewToggle = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppReviewToggle, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppReviewToggle>,+ });+})();++const FfiConverterTypeAppReviewToggle = (() => {+ type TypeName = AppReviewToggle;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ key: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ bytes: FfiConverterUInt64.read(from),+ sensitive: FfiConverterBool.read(from),+ selected: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterUInt64.write(value.bytes, into);+ FfiConverterBool.write(value.sensitive, into);+ FfiConverterBool.write(value.selected, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterUInt64.allocationSize(value.bytes) ++ FfiConverterBool.allocationSize(value.sensitive) ++ FfiConverterBool.allocationSize(value.selected);++ }+ };+ return new FFIConverter();+})();++export type AppReviewView = {+ /**+ * "Teleport Slack to Aurora".*/title: string,/**- * Status, Image, System, Memory, Storage, Identifier (each when known).+ * The consent lines.*/- facts: Array<AppFact>,+ items: Array<AppConsentItem>,/**- * The host machine itself.+ * Plan steps.*/- isHost: boolean,+ steps: Array<AppPlanStepView>,/**- * The Stream / Agents / Teleport sections show.+ * The secrets checkbox shows.*/- showSections: boolean,+ needsAcknowledgement: boolean,/**- * Streaming is possible (toolbar PiP and Stream).+ * Checked.*/- canStream: boolean,+ acknowledged: boolean,/**- * Placeholder over the preview until a frame arrives.+ * The "Save to Keyvault" checkbox shows (a sensitive plan only: there+ * is nothing to keep sealed otherwise).*/- previewText: string,+ offersSaveToKeyvault: boolean,/**- * While it is being created: overall progress in thousandths (the- * preview's ring).+ * Checked.*/- progress?: number,+ saveToKeyvault: boolean,/**- * Under the bar while it downloads: "4.2 of 22.1 GB · 85 MB/s · about- * 4 min".+ * The relay-plaintext warning's checkbox shows (S1): this Space+ * predates end-to-end sealing, and the Cua relay could read this+ * secret in transit.*/- progressText?: string,+ needsRelayPlaintextAcknowledgement: boolean,/**- * "Remove" (added by address) or "Delete Space".+ * Checked.*/- deleteLabel: string,+ acknowledgedRelayPlaintext: boolean,/**- * Removing only forgets it.+ * "Teleport" is enabled.*/- removeOnly: boolean,+ canConfirm: boolean,/**- * Toolbar buttons, in order (none for this machine).+ * "12 MB leaves this Mac" (none when nothing leaves).*/- actions: Array<AppDetailAction>,+ leavesText?: string,/**- * What Delete asks first.+ * Caveats.*/- confirm: AppDeleteConfirm,+ warnings: Array<string>,/**- * The sections under the facts, in order (Stream, Agents, Teleport).+ * Lines the user can turn off (files, folders, state, secrets), each+ * with whether it is sent. The cookie store is the site list below.*/- sections: Array<string>,+ toggles: Array<AppReviewToggle>,/**- * A cloud Space refused for want of credit: one line and "Add- * credit" (the website billing page).+ * The plan sends a browser's cookies, so the sites can be chosen.*/- creditNotice?: AppCreditNotice,+ offersDomains: boolean,/**- * Why turning it off or on failed, shown inline under the preview.+ * The sites have not been read yet (the shell asks the Keyvault for+ * them, which may ask for Touch ID).*/- powerError?: string,+ needsDomains: boolean,/**- * Signed in, but this device is not enrolled: a machine reached- * through the relay is listed with its Connect greyed out under this- * line and its one action ([`detail_for`]).+ * The sites with counts, filtered by the search.*/- access?: AppMachineAccessNotice,+ domains: Array<AppReviewDomain>,/**- * One of your machines that does not share its desktop: the line- * shown in place of its desktop, Stream, Agents and Teleport- * ([`desktop_note`]).+ * "3 of 12 sites".*/- desktopNote?: string,+ domainSummary: string,/**- * With [`Self::desktop_note`], when the machine provides Spaces:- * "New Space on <name>…", which opens New Space on it.+ * The sites search text.*/- newSpace?: AppNewSpaceOn+ domainQuery: string,+ /**+ * The sites chosen (what is remembered for next time).+ */+ selectedDomains: Array<string>,+ /**+ * Where it sends from.+ */+ source: AppSendSource,+ /**+ * The app has saved Keyvault items to send instead of reading the live+ * app.+ */+ offersVault: boolean,+ /**+ * The saved items.+ */+ vault: AppVaultSource,+ /**+ * "Send from the Keyvault (212 items, saved 2 days ago)".+ */+ vaultLabel: string,+ /**+ * "Read Chrome now (macOS asks for Keychain access)".+ */+ liveLabel: string,+ /**+ * "Also send saved passwords" shows (there are some to send).+ */+ offersPasswords: boolean,+ /**+ * Ticked.+ */+ includePasswords: boolean,+ /**+ * "Also send 14 saved passwords".+ */+ passwordsLabel: string,+ /**+ * What the Keychain will do for this source, in a line.+ */+ sourceNote: string}/**- * Generated factory for {@link AppSpaceDetail} record objects.+ * Generated factory for {@link AppReviewView} record objects.*/-export const AppSpaceDetail = (() => {+export const AppReviewView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpaceDetail, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppReviewView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpaceDetail>,+ defaults: () => Object.freeze(defaults()) as Partial<AppReviewView>,});})();-const FfiConverterTypeAppSpaceDetail = (() => {- type TypeName = AppSpaceDetail;+const FfiConverterTypeAppReviewView = (() => {+ type TypeName = AppReviewView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),title: FfiConverterString.read(from),- facts: FfiConverterSequenceTypeAppFact.read(from),- isHost: FfiConverterBool.read(from),- showSections: FfiConverterBool.read(from),- canStream: FfiConverterBool.read(from),- previewText: FfiConverterString.read(from),- progress: FfiConverterOptionalUInt32.read(from),- progressText: FfiConverterOptionalString.read(from),- deleteLabel: FfiConverterString.read(from),- removeOnly: FfiConverterBool.read(from),- actions: FfiConverterSequenceTypeAppDetailAction.read(from),- confirm: FfiConverterTypeAppDeleteConfirm.read(from),- sections: FfiConverterSequenceString.read(from),- creditNotice: FfiConverterOptionalTypeAppCreditNotice.read(from),- powerError: FfiConverterOptionalString.read(from),- access: FfiConverterOptionalTypeAppMachineAccessNotice.read(from),- desktopNote: FfiConverterOptionalString.read(from),- newSpace: FfiConverterOptionalTypeAppNewSpaceOn.read(from)+ items: FfiConverterSequenceTypeAppConsentItem.read(from),+ steps: FfiConverterSequenceTypeAppPlanStepView.read(from),+ needsAcknowledgement: FfiConverterBool.read(from),+ acknowledged: FfiConverterBool.read(from),+ offersSaveToKeyvault: FfiConverterBool.read(from),+ saveToKeyvault: FfiConverterBool.read(from),+ needsRelayPlaintextAcknowledgement: FfiConverterBool.read(from),+ acknowledgedRelayPlaintext: FfiConverterBool.read(from),+ canConfirm: FfiConverterBool.read(from),+ leavesText: FfiConverterOptionalString.read(from),+ warnings: FfiConverterSequenceString.read(from),+ toggles: FfiConverterSequenceTypeAppReviewToggle.read(from),+ offersDomains: FfiConverterBool.read(from),+ needsDomains: FfiConverterBool.read(from),+ domains: FfiConverterSequenceTypeAppReviewDomain.read(from),+ domainSummary: FfiConverterString.read(from),+ domainQuery: FfiConverterString.read(from),+ selectedDomains: FfiConverterSequenceString.read(from),+ source: FfiConverterTypeAppSendSource.read(from),+ offersVault: FfiConverterBool.read(from),+ vault: FfiConverterTypeAppVaultSource.read(from),+ vaultLabel: FfiConverterString.read(from),+ liveLabel: FfiConverterString.read(from),+ offersPasswords: FfiConverterBool.read(from),+ includePasswords: FfiConverterBool.read(from),+ passwordsLabel: FfiConverterString.read(from),+ sourceNote: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppFact.write(value.facts, into);- FfiConverterBool.write(value.isHost, into);- FfiConverterBool.write(value.showSections, into);- FfiConverterBool.write(value.canStream, into);- FfiConverterString.write(value.previewText, into);- FfiConverterOptionalUInt32.write(value.progress, into);- FfiConverterOptionalString.write(value.progressText, into);- FfiConverterString.write(value.deleteLabel, into);- FfiConverterBool.write(value.removeOnly, into);- FfiConverterSequenceTypeAppDetailAction.write(value.actions, into);- FfiConverterTypeAppDeleteConfirm.write(value.confirm, into);- FfiConverterSequenceString.write(value.sections, into);- FfiConverterOptionalTypeAppCreditNotice.write(value.creditNotice, into);- FfiConverterOptionalString.write(value.powerError, into);- FfiConverterOptionalTypeAppMachineAccessNotice.write(value.access, into);- FfiConverterOptionalString.write(value.desktopNote, into);- FfiConverterOptionalTypeAppNewSpaceOn.write(value.newSpace, into);+ FfiConverterSequenceTypeAppConsentItem.write(value.items, into);+ FfiConverterSequenceTypeAppPlanStepView.write(value.steps, into);+ FfiConverterBool.write(value.needsAcknowledgement, into);+ FfiConverterBool.write(value.acknowledged, into);+ FfiConverterBool.write(value.offersSaveToKeyvault, into);+ FfiConverterBool.write(value.saveToKeyvault, into);+ FfiConverterBool.write(value.needsRelayPlaintextAcknowledgement, into);+ FfiConverterBool.write(value.acknowledgedRelayPlaintext, into);+ FfiConverterBool.write(value.canConfirm, into);+ FfiConverterOptionalString.write(value.leavesText, into);+ FfiConverterSequenceString.write(value.warnings, into);+ FfiConverterSequenceTypeAppReviewToggle.write(value.toggles, into);+ FfiConverterBool.write(value.offersDomains, into);+ FfiConverterBool.write(value.needsDomains, into);+ FfiConverterSequenceTypeAppReviewDomain.write(value.domains, into);+ FfiConverterString.write(value.domainSummary, into);+ FfiConverterString.write(value.domainQuery, into);+ FfiConverterSequenceString.write(value.selectedDomains, into);+ FfiConverterTypeAppSendSource.write(value.source, into);+ FfiConverterBool.write(value.offersVault, into);+ FfiConverterTypeAppVaultSource.write(value.vault, into);+ FfiConverterString.write(value.vaultLabel, into);+ FfiConverterString.write(value.liveLabel, into);+ FfiConverterBool.write(value.offersPasswords, into);+ FfiConverterBool.write(value.includePasswords, into);+ FfiConverterString.write(value.passwordsLabel, into);+ FfiConverterString.write(value.sourceNote, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppFact.allocationSize(value.facts) +- FfiConverterBool.allocationSize(value.isHost) +- FfiConverterBool.allocationSize(value.showSections) +- FfiConverterBool.allocationSize(value.canStream) +- FfiConverterString.allocationSize(value.previewText) +- FfiConverterOptionalUInt32.allocationSize(value.progress) +- FfiConverterOptionalString.allocationSize(value.progressText) +- FfiConverterString.allocationSize(value.deleteLabel) +- FfiConverterBool.allocationSize(value.removeOnly) +- FfiConverterSequenceTypeAppDetailAction.allocationSize(value.actions) +- FfiConverterTypeAppDeleteConfirm.allocationSize(value.confirm) +- FfiConverterSequenceString.allocationSize(value.sections) +- FfiConverterOptionalTypeAppCreditNotice.allocationSize(value.creditNotice) +- FfiConverterOptionalString.allocationSize(value.powerError) +- FfiConverterOptionalTypeAppMachineAccessNotice.allocationSize(value.access) +- FfiConverterOptionalString.allocationSize(value.desktopNote) +- FfiConverterOptionalTypeAppNewSpaceOn.allocationSize(value.newSpace);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppConsentItem.allocationSize(value.items) ++ FfiConverterSequenceTypeAppPlanStepView.allocationSize(value.steps) ++ FfiConverterBool.allocationSize(value.needsAcknowledgement) ++ FfiConverterBool.allocationSize(value.acknowledged) ++ FfiConverterBool.allocationSize(value.offersSaveToKeyvault) ++ FfiConverterBool.allocationSize(value.saveToKeyvault) ++ FfiConverterBool.allocationSize(value.needsRelayPlaintextAcknowledgement) ++ FfiConverterBool.allocationSize(value.acknowledgedRelayPlaintext) ++ FfiConverterBool.allocationSize(value.canConfirm) ++ FfiConverterOptionalString.allocationSize(value.leavesText) ++ FfiConverterSequenceString.allocationSize(value.warnings) ++ FfiConverterSequenceTypeAppReviewToggle.allocationSize(value.toggles) ++ FfiConverterBool.allocationSize(value.offersDomains) ++ FfiConverterBool.allocationSize(value.needsDomains) ++ FfiConverterSequenceTypeAppReviewDomain.allocationSize(value.domains) ++ FfiConverterString.allocationSize(value.domainSummary) ++ FfiConverterString.allocationSize(value.domainQuery) ++ FfiConverterSequenceString.allocationSize(value.selectedDomains) ++ FfiConverterTypeAppSendSource.allocationSize(value.source) ++ FfiConverterBool.allocationSize(value.offersVault) ++ FfiConverterTypeAppVaultSource.allocationSize(value.vault) ++ FfiConverterString.allocationSize(value.vaultLabel) ++ FfiConverterString.allocationSize(value.liveLabel) ++ FfiConverterBool.allocationSize(value.offersPasswords) ++ FfiConverterBool.allocationSize(value.includePasswords) ++ FfiConverterString.allocationSize(value.passwordsLabel) ++ FfiConverterString.allocationSize(value.sourceNote);}};return new FFIConverter();})();-export type AppSpaceHost = {+export type AppRoleOption = {/**- * What `on="host:<id>"` takes: the relay machine id, or the name a- * direct host was added as.+ * `viewer` or `editor`.*/id: string,/**- * Its name ("Mac mini").- */- name: string,- /**- * `relay` or `direct` (its Tailscale or LAN address).- */- via: string,- /**- * It is online: it answered just now, or the relay sees it connected- * (the Machines page says the same).- */- online: boolean,- /**- * Its operating system (`macos`, `linux`, `windows`), when it answered.- */- os: string,- /**- * Its limits, when it answered; a [`HOST_SHARING_STOPPED`] entry when- * it is online and refused because its owner stopped sharing it.+ * `Can view` or `Can edit`.*/- limits: Array<AppHostLimit>+ label: string}/**- * Generated factory for {@link AppSpaceHost} record objects.+ * Generated factory for {@link AppRoleOption} record objects.*/-export const AppSpaceHost = (() => {+export const AppRoleOption = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpaceHost, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRoleOption, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpaceHost>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRoleOption>,});})();-const FfiConverterTypeAppSpaceHost = (() => {- type TypeName = AppSpaceHost;+const FfiConverterTypeAppRoleOption = (() => {+ type TypeName = AppRoleOption;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- via: FfiConverterString.read(from),- online: FfiConverterBool.read(from),- os: FfiConverterString.read(from),- limits: FfiConverterSequenceTypeAppHostLimit.read(from)+ label: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.via, into);- FfiConverterBool.write(value.online, into);- FfiConverterString.write(value.os, into);- FfiConverterSequenceTypeAppHostLimit.write(value.limits, into);+ FfiConverterString.write(value.label, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.via) +- FfiConverterBool.allocationSize(value.online) +- FfiConverterString.allocationSize(value.os) +- FfiConverterSequenceTypeAppHostLimit.allocationSize(value.limits);+ FfiConverterString.allocationSize(value.label);}};return new FFIConverter();})();-export type AppSpaceRow = {- /**- * Sandbox ref.- */- id: string,- /**- * Name spacesd reported.- */- name: string,- /**- * Location word.- */- provider: string,- /**- * spacesd version.- */- spacesdVersion: string,+export enum AppWindowMode {+ Ambient = "ambient",/**- * spacesd features.+ * Ambient, but grown taller so the drag teleport's "Teleport to Cua" box+ * has room to hang below the notch. Same top-centre placement as `Ambient`.*/- features: Array<string>,+ AmbientTeleport = "ambientTeleport",+ Switcher = "switcher",+ CreateFleet = "createFleet"+}++const FfiConverterTypeAppWindowMode = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppWindowMode;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppWindowMode.Ambient;+ case 2: return AppWindowMode.AmbientTeleport;+ case 3: return AppWindowMode.Switcher;+ case 4: return AppWindowMode.CreateFleet;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppWindowMode.Ambient: return ordinalConverter.write(1, into);+ case AppWindowMode.AmbientTeleport: return ordinalConverter.write(2, into);+ case AppWindowMode.Switcher: return ordinalConverter.write(3, into);+ case AppWindowMode.CreateFleet: return ordinalConverter.write(4, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppRosterState = {/**- * RFC 3339 time it was added.+ * The notch switcher's mode.*/- addedAt?: string,+ mode: AppWindowMode,/**- * Operating system.+ * Spaces, MRU order.*/- os?: AppSpaceOs,+ spaces: Array<AppSpace>,/**- * OS product or distribution spacesd reported ("Ubuntu").+ * The selected Space id (empty when none).*/- osName?: string,+ selectedId: string,/**- * The guest's full OS string ("Ubuntu 24.04.3 LTS"), when the Space- * reported one.+ * Keyboard focus: an index into `spaces`, or [`NEW_TILE_INDEX`].*/- osPrettyName?: string,+ focusIndex: number,/**- * The image it runs ("ghcr.io/trycua/linux:24.04"), when known.+ * The notice, if one shows.*/- image?: string,+ notice?: AppNotice,/**- * The digest of the variant that runs, when known.+ * Last notice id.*/- imageDigest?: string,- /**- * Container or virtual machine, when known.- */- kind?: AppSpaceKind,- /**- * The guest's CPU architecture, when known (any spelling: `arm64`,- * `aarch64`, `amd64`, `x86_64`).- */- arch?: string,- /**- * Answered the last connect.- */- reachable: boolean,- /**- * Why not.- */- error?: string,- /**- * For a Space one of your machines provides: that machine's relay id.- */- host?: string,- /**- * That machine's name, when known.- */- hostName?: string,- /**- * How it turns off and on (`suspend`, `stop`); absent when it cannot.- */- power?: string,- /**- * `running`, `suspended` or `stopped` as the SDK recorded it; absent- * when unknown.- */- powerState?: string,- /**- * For a Space in your cloud: the provider word (`aws`, `gcp`,- * `modal`).- */- cloud?: string,- /**- * Its account and region in words ("AWS · us-west-2").- */- cloudPlace?: string,- /**- * Where Delete permanently can delete it: `here`, `host:<machine>`- * (that machine created it) or `elsewhere` (another device did).- */- cloudDelete?: string+ noticeSeq: number}/**- * Generated factory for {@link AppSpaceRow} record objects.+ * Generated factory for {@link AppRosterState} record objects.*/-export const AppSpaceRow = (() => {+export const AppRosterState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpaceRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRosterState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpaceRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRosterState>,});})();-const FfiConverterTypeAppSpaceRow = (() => {- type TypeName = AppSpaceRow;+const FfiConverterTypeAppRosterState = (() => {+ type TypeName = AppRosterState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- provider: FfiConverterString.read(from),- spacesdVersion: FfiConverterString.read(from),- features: FfiConverterSequenceString.read(from),- addedAt: FfiConverterOptionalString.read(from),- os: FfiConverterOptionalTypeAppSpaceOs.read(from),- osName: FfiConverterOptionalString.read(from),- osPrettyName: FfiConverterOptionalString.read(from),- image: FfiConverterOptionalString.read(from),- imageDigest: FfiConverterOptionalString.read(from),- kind: FfiConverterOptionalTypeAppSpaceKind.read(from),- arch: FfiConverterOptionalString.read(from),- reachable: FfiConverterBool.read(from),- error: FfiConverterOptionalString.read(from),- host: FfiConverterOptionalString.read(from),- hostName: FfiConverterOptionalString.read(from),- power: FfiConverterOptionalString.read(from),- powerState: FfiConverterOptionalString.read(from),- cloud: FfiConverterOptionalString.read(from),- cloudPlace: FfiConverterOptionalString.read(from),- cloudDelete: FfiConverterOptionalString.read(from)+ mode: FfiConverterTypeAppWindowMode.read(from),+ spaces: FfiConverterSequenceTypeAppSpace.read(from),+ selectedId: FfiConverterString.read(from),+ focusIndex: FfiConverterInt32.read(from),+ notice: FfiConverterOptionalTypeAppNotice.read(from),+ noticeSeq: FfiConverterUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterString.write(value.provider, into);- FfiConverterString.write(value.spacesdVersion, into);- FfiConverterSequenceString.write(value.features, into);- FfiConverterOptionalString.write(value.addedAt, into);- FfiConverterOptionalTypeAppSpaceOs.write(value.os, into);- FfiConverterOptionalString.write(value.osName, into);- FfiConverterOptionalString.write(value.osPrettyName, into);- FfiConverterOptionalString.write(value.image, into);- FfiConverterOptionalString.write(value.imageDigest, into);- FfiConverterOptionalTypeAppSpaceKind.write(value.kind, into);- FfiConverterOptionalString.write(value.arch, into);- FfiConverterBool.write(value.reachable, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterOptionalString.write(value.host, into);- FfiConverterOptionalString.write(value.hostName, into);- FfiConverterOptionalString.write(value.power, into);- FfiConverterOptionalString.write(value.powerState, into);- FfiConverterOptionalString.write(value.cloud, into);- FfiConverterOptionalString.write(value.cloudPlace, into);- FfiConverterOptionalString.write(value.cloudDelete, into);+ FfiConverterTypeAppWindowMode.write(value.mode, into);+ FfiConverterSequenceTypeAppSpace.write(value.spaces, into);+ FfiConverterString.write(value.selectedId, into);+ FfiConverterInt32.write(value.focusIndex, into);+ FfiConverterOptionalTypeAppNotice.write(value.notice, into);+ FfiConverterUInt32.write(value.noticeSeq, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterString.allocationSize(value.provider) +- FfiConverterString.allocationSize(value.spacesdVersion) +- FfiConverterSequenceString.allocationSize(value.features) +- FfiConverterOptionalString.allocationSize(value.addedAt) +- FfiConverterOptionalTypeAppSpaceOs.allocationSize(value.os) +- FfiConverterOptionalString.allocationSize(value.osName) +- FfiConverterOptionalString.allocationSize(value.osPrettyName) +- FfiConverterOptionalString.allocationSize(value.image) +- FfiConverterOptionalString.allocationSize(value.imageDigest) +- FfiConverterOptionalTypeAppSpaceKind.allocationSize(value.kind) +- FfiConverterOptionalString.allocationSize(value.arch) +- FfiConverterBool.allocationSize(value.reachable) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterOptionalString.allocationSize(value.host) +- FfiConverterOptionalString.allocationSize(value.hostName) +- FfiConverterOptionalString.allocationSize(value.power) +- FfiConverterOptionalString.allocationSize(value.powerState) +- FfiConverterOptionalString.allocationSize(value.cloud) +- FfiConverterOptionalString.allocationSize(value.cloudPlace) +- FfiConverterOptionalString.allocationSize(value.cloudDelete);+ return FfiConverterTypeAppWindowMode.allocationSize(value.mode) ++ FfiConverterSequenceTypeAppSpace.allocationSize(value.spaces) ++ FfiConverterString.allocationSize(value.selectedId) ++ FfiConverterInt32.allocationSize(value.focusIndex) ++ FfiConverterOptionalTypeAppNotice.allocationSize(value.notice) ++ FfiConverterUInt32.allocationSize(value.noticeSeq);}};return new FFIConverter();})();-export type AppSpaceUsage = {- /**- * Memory in use, bytes.- */- memoryUsed: bigint,- /**- * Memory size, bytes.- */- memoryTotal: bigint,+export type AppRuntimeSwitch = {/**- * `memory_total` is the guest's limit.+ * The `cua config` setting: `runtime.lume`.*/- memoryLimited: boolean,+ setting: string,/**- * Storage in use, bytes.+ * The value to set: `builtin`.*/- diskUsed: bigint,+ value: string,/**- * Storage size, bytes.+ * The button: "Use built-in Lume".*/- diskTotal: bigint,+ label: string,/**- * `disk_total` is the guest's own disk.+ * One line on what that does.*/- diskLimited: boolean+ detail: string}/**- * Generated factory for {@link AppSpaceUsage} record objects.+ * Generated factory for {@link AppRuntimeSwitch} record objects.*/-export const AppSpaceUsage = (() => {+export const AppRuntimeSwitch = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppSpaceUsage, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppRuntimeSwitch, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppSpaceUsage>,+ defaults: () => Object.freeze(defaults()) as Partial<AppRuntimeSwitch>,});})();-const FfiConverterTypeAppSpaceUsage = (() => {- type TypeName = AppSpaceUsage;+const FfiConverterTypeAppRuntimeSwitch = (() => {+ type TypeName = AppRuntimeSwitch;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- memoryUsed: FfiConverterUInt64.read(from),- memoryTotal: FfiConverterUInt64.read(from),- memoryLimited: FfiConverterBool.read(from),- diskUsed: FfiConverterUInt64.read(from),- diskTotal: FfiConverterUInt64.read(from),- diskLimited: FfiConverterBool.read(from)+ setting: FfiConverterString.read(from),+ value: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ detail: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt64.write(value.memoryUsed, into);- FfiConverterUInt64.write(value.memoryTotal, into);- FfiConverterBool.write(value.memoryLimited, into);- FfiConverterUInt64.write(value.diskUsed, into);- FfiConverterUInt64.write(value.diskTotal, into);- FfiConverterBool.write(value.diskLimited, into);+ FfiConverterString.write(value.setting, into);+ FfiConverterString.write(value.value, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.detail, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt64.allocationSize(value.memoryUsed) +- FfiConverterUInt64.allocationSize(value.memoryTotal) +- FfiConverterBool.allocationSize(value.memoryLimited) +- FfiConverterUInt64.allocationSize(value.diskUsed) +- FfiConverterUInt64.allocationSize(value.diskTotal) +- FfiConverterBool.allocationSize(value.diskLimited);+ return FfiConverterString.allocationSize(value.setting) ++ FfiConverterString.allocationSize(value.value) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.detail);}};return new FFIConverter();})();-export enum AppStepState {+export type AppScreenFacts = {/**- * Done.+ * `NSScreen.frame`.*/- Done = "done",+ frame: AppLogicalRect,/**- * Current.+ * `NSScreen.visibleFrame`.*/- Current = "current",+ visibleFrame: AppLogicalRect,/**- * Not reached.+ * `safeAreaInsets.top` (0 without a notch).*/- Todo = "todo"-}--const FfiConverterTypeAppStepState = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppStepState;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppStepState.Done;- case 2: return AppStepState.Current;- case 3: return AppStepState.Todo;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppStepState.Done: return ordinalConverter.write(1, into);- case AppStepState.Current: return ordinalConverter.write(2, into);- case AppStepState.Todo: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppStepView = {+ safeAreaTop: number,/**- * Title.+ * `auxiliaryTopLeftArea` width, when present.*/- label: string,+ auxLeftWidth?: number,/**- * State.+ * `auxiliaryTopRightArea` width, when present.*/- state: AppStepState+ auxRightWidth?: number}/**- * Generated factory for {@link AppStepView} record objects.+ * Generated factory for {@link AppScreenFacts} record objects.*/-export const AppStepView = (() => {+export const AppScreenFacts = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStepView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppScreenFacts, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStepView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppScreenFacts>,});})();-const FfiConverterTypeAppStepView = (() => {- type TypeName = AppStepView;+const FfiConverterTypeAppScreenFacts = (() => {+ type TypeName = AppScreenFacts;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- label: FfiConverterString.read(from),- state: FfiConverterTypeAppStepState.read(from)+ frame: FfiConverterTypeAppLogicalRect.read(from),+ visibleFrame: FfiConverterTypeAppLogicalRect.read(from),+ safeAreaTop: FfiConverterFloat64.read(from),+ auxLeftWidth: FfiConverterOptionalFloat64.read(from),+ auxRightWidth: FfiConverterOptionalFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.label, into);- FfiConverterTypeAppStepState.write(value.state, into);+ FfiConverterTypeAppLogicalRect.write(value.frame, into);+ FfiConverterTypeAppLogicalRect.write(value.visibleFrame, into);+ FfiConverterFloat64.write(value.safeAreaTop, into);+ FfiConverterOptionalFloat64.write(value.auxLeftWidth, into);+ FfiConverterOptionalFloat64.write(value.auxRightWidth, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.label) +- FfiConverterTypeAppStepState.allocationSize(value.state);+ return FfiConverterTypeAppLogicalRect.allocationSize(value.frame) ++ FfiConverterTypeAppLogicalRect.allocationSize(value.visibleFrame) ++ FfiConverterFloat64.allocationSize(value.safeAreaTop) ++ FfiConverterOptionalFloat64.allocationSize(value.auxLeftWidth) ++ FfiConverterOptionalFloat64.allocationSize(value.auxRightWidth);}};return new FFIConverter();})();-export type AppStorageInput = {+export type AppSensitiveOption = {/**- * This machine's system (the words: "This Mac", "Show in Finder").+ * The group.*/- os: AppSpaceOs,+ group: AppSensitiveGroup,/**- * The home folder, to show paths as `~/...`.+ * Label.*/- home?: string,+ label: string,/**- * None until read (or when the daemon cannot answer).+ * The line under the label.*/- storage?: AppDriveStorageInput,- mount?: AppDriveMountInput,- cache?: AppDriveCacheInput+ detail: string,+ /**+ * Checked.+ */+ checked: boolean}/**- * Generated factory for {@link AppStorageInput} record objects.+ * Generated factory for {@link AppSensitiveOption} record objects.*/-export const AppStorageInput = (() => {+export const AppSensitiveOption = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStorageInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSensitiveOption, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStorageInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSensitiveOption>,});})();-const FfiConverterTypeAppStorageInput = (() => {- type TypeName = AppStorageInput;+const FfiConverterTypeAppSensitiveOption = (() => {+ type TypeName = AppSensitiveOption;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- os: FfiConverterTypeAppSpaceOs.read(from),- home: FfiConverterOptionalString.read(from),- storage: FfiConverterOptionalTypeAppDriveStorageInput.read(from),- mount: FfiConverterOptionalTypeAppDriveMountInput.read(from),- cache: FfiConverterOptionalTypeAppDriveCacheInput.read(from)+ group: FfiConverterTypeAppSensitiveGroup.read(from),+ label: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ checked: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppSpaceOs.write(value.os, into);- FfiConverterOptionalString.write(value.home, into);- FfiConverterOptionalTypeAppDriveStorageInput.write(value.storage, into);- FfiConverterOptionalTypeAppDriveMountInput.write(value.mount, into);- FfiConverterOptionalTypeAppDriveCacheInput.write(value.cache, into);+ FfiConverterTypeAppSensitiveGroup.write(value.group, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterBool.write(value.checked, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppSpaceOs.allocationSize(value.os) +- FfiConverterOptionalString.allocationSize(value.home) +- FfiConverterOptionalTypeAppDriveStorageInput.allocationSize(value.storage) +- FfiConverterOptionalTypeAppDriveMountInput.allocationSize(value.mount) +- FfiConverterOptionalTypeAppDriveCacheInput.allocationSize(value.cache);+ return FfiConverterTypeAppSensitiveGroup.allocationSize(value.group) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterBool.allocationSize(value.checked);}};return new FFIConverter();})();-export type AppStreamDisplay = {+export type AppSentFileInfo = {/**- * Width, px.+ * File name.*/- widthPx: number,+ name: string,/**- * Height, px.+ * Where it landed in the Space.*/- heightPx: number+ dest: string,+ /**+ * Bytes.+ */+ bytes: bigint}/**- * Generated factory for {@link AppStreamDisplay} record objects.+ * Generated factory for {@link AppSentFileInfo} record objects.*/-export const AppStreamDisplay = (() => {+export const AppSentFileInfo = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStreamDisplay, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSentFileInfo, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStreamDisplay>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSentFileInfo>,});})();-const FfiConverterTypeAppStreamDisplay = (() => {- type TypeName = AppStreamDisplay;+const FfiConverterTypeAppSentFileInfo = (() => {+ type TypeName = AppSentFileInfo;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- widthPx: FfiConverterUInt32.read(from),- heightPx: FfiConverterUInt32.read(from)+ name: FfiConverterString.read(from),+ dest: FfiConverterString.read(from),+ bytes: FfiConverterUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.widthPx, into);- FfiConverterUInt32.write(value.heightPx, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.dest, into);+ FfiConverterUInt64.write(value.bytes, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.widthPx) +- FfiConverterUInt32.allocationSize(value.heightPx);+ return FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.dest) ++ FfiConverterUInt64.allocationSize(value.bytes);}};return new FFIConverter();})();-export enum AppStreamRowKind {+export enum AppSwitcherTheme {/**- * The whole desktop.+ * Opaque black, flush with the notch (default).*/- Desktop = "desktop",+ Island = "island",/**- * One window.+ * Translucent, below the notch.*/- Window = "window"+ Glass = "glass"}-const FfiConverterTypeAppStreamRowKind = (() => {+const FfiConverterTypeAppSwitcherTheme = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppStreamRowKind;+ type TypeName = AppSwitcherTheme;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppStreamRowKind.Desktop;- case 2: return AppStreamRowKind.Window;+ case 1: return AppSwitcherTheme.Island;+ case 2: return AppSwitcherTheme.Glass;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppStreamRowKind.Desktop: return ordinalConverter.write(1, into);- case AppStreamRowKind.Window: return ordinalConverter.write(2, into);+ case AppSwitcherTheme.Island: return ordinalConverter.write(1, into);+ case AppSwitcherTheme.Glass: return ordinalConverter.write(2, into);}}allocationSize(value: TypeName): number {@@ -32422,1292 +31695,1518 @@ const FfiConverterTypeAppStreamRowKind = (() => {return new FFIConverter();})();--// Enum: AppStreamRowIcon-export enum AppStreamRowIcon_Tags {- Os = "Os",- App = "App"-}-export const AppStreamRowIcon = (() => {-- type Os__interface = {- tag: AppStreamRowIcon_Tags.Os;- inner:-Readonly<{id: string}>- };+export type AppSettings = {/**- * The Space's OS mark (`os-ubuntu`, `os-windows`, ...): the core's- * artwork (`notch.osIconSvg`) or system symbol.+ * Global hotkey label.*/- class Os_ extends UniffiEnum implements Os__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStreamRowIcon";- readonly tag = AppStreamRowIcon_Tags.Os;- readonly inner:-Readonly<{id: string}>;- constructor(-inner: {id: string }) {- super("AppStreamRowIcon", "Os");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string }): Os_ {- return new Os_(inner);- }-- static instanceOf(obj: any): obj is Os_ {- return obj.tag === AppStreamRowIcon_Tags.Os;- }-- }-- type App__interface = {- tag: AppStreamRowIcon_Tags.App;- inner:-Readonly<{appName: string; appId: string; pid: number}>- };+ hotkey: string,/**- * The app's icon from the SDK's `Space.app_icon` (these three- * arguments); none when the Space has none.+ * The switcher lives in the menu bar instead of the notch.*/- class App_ extends UniffiEnum implements App__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppStreamRowIcon";- readonly tag = AppStreamRowIcon_Tags.App;- readonly inner:-Readonly<{appName: string; appId: string; pid: number}>;- constructor(-inner: {appName: string; appId: string; pid: number }) {- super("AppStreamRowIcon", "App");-- this.inner = Object.freeze(inner);- }- static new(-inner: {appName: string; appId: string; pid: number }): App_ {- return new App_(inner);- }-- static instanceOf(obj: any): obj is App_ {- return obj.tag === AppStreamRowIcon_Tags.App;- }-- }-- function instanceOf(obj: any): obj is AppStreamRowIcon {- return obj[uniffiTypeNameSymbol] === "AppStreamRowIcon";- }-- return Object.freeze({- instanceOf,- Os: Os_,- App: App_- });--})();-export type AppStreamRowIcon = InstanceType<- typeof AppStreamRowIcon['Os' | 'App']->;--// FfiConverter for enum AppStreamRowIcon-const FfiConverterTypeAppStreamRowIcon = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppStreamRowIcon;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppStreamRowIcon.Os({id: FfiConverterString.read(from) });- case 2: return new AppStreamRowIcon.App({appName: FfiConverterString.read(from), appId: FfiConverterString.read(from), pid: FfiConverterUInt32.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppStreamRowIcon_Tags.Os: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case AppStreamRowIcon_Tags.App: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.appName, into);- FfiConverterString.write(inner.appId, into);- FfiConverterUInt32.write(inner.pid, into);- return;- }- default:- // Throwing from here means that AppStreamRowIcon_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case AppStreamRowIcon_Tags.Os: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case AppStreamRowIcon_Tags.App: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.appName);- size += FfiConverterString.allocationSize(inner.appId);- size += FfiConverterUInt32.allocationSize(inner.pid);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- }- return new FFIConverter();-})();--export enum AppStreamRowActionId {+ menuBar: boolean,/**- * Picture in picture: the row's own stream in a floating panel.+ * Switcher theme.*/- Pip = "pip"-}--const FfiConverterTypeAppStreamRowActionId = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppStreamRowActionId;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppStreamRowActionId.Pip;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppStreamRowActionId.Pip: return ordinalConverter.write(1, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type AppStreamRowAction = {+ theme: AppSwitcherTheme,/**- * What it does.+ * Where New Space starts.*/- id: AppStreamRowActionId,+ defaultLocation: AppLocation,/**- * SF Symbol (`pip.enter`, `pip.exit` while open).+ * Hide the notch over full-screen apps.*/- symbol: string,+ hideInFullScreen: boolean,/**- * Tooltip and accessibility label.+ * The newest notification already posted (Unix ms; 0: never polled).*/- help: string,+ notificationsSeenMs: bigint,/**- * Its panel is open.+ * The version and build the app last launched as+ * ([`crate::about::identity`]; `None`: never recorded). A launch as+ * another one follows an update ([`crate::about::after_launch`]).*/- active: boolean-}--/**- * Generated factory for {@link AppStreamRowAction} record objects.- */-export const AppStreamRowAction = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppStreamRowAction, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStreamRowAction>,- });-})();--const FfiConverterTypeAppStreamRowAction = (() => {- type TypeName = AppStreamRowAction;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- id: FfiConverterTypeAppStreamRowActionId.read(from),- symbol: FfiConverterString.read(from),- help: FfiConverterString.read(from),- active: FfiConverterBool.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppStreamRowActionId.write(value.id, into);- FfiConverterString.write(value.symbol, into);- FfiConverterString.write(value.help, into);- FfiConverterBool.write(value.active, into);- }- allocationSize(value: TypeName): number {- return FfiConverterTypeAppStreamRowActionId.allocationSize(value.id) +- FfiConverterString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.help) +- FfiConverterBool.allocationSize(value.active);-- }- };- return new FFIConverter();-})();--export type AppStreamRow = {+ lastSeenVersion?: string,/**- * [`DESKTOP_ROW_ID`] or the window's handle.+ * Which releases the updater offers (Settings, About).*/- id: string,+ updateChannel: AppUpdateChannel,/**- * Desktop or window.+ * Launch at login, as the user chose it (the first run's Done page or+ * Settings); `None`: never chosen ([`crate::login_item::launch_plan`]).*/- kind: AppStreamRowKind,+ launchAtLogin?: boolean,/**- * The one line ("Desktop (1280×800)", a window's title).+ * Settings, Experiments: every switch off unless turned on+ * ([`crate::experiments`]).*/- label: string,+ experiments: AppExperiments,/**- * The full label, for the tooltip when it is truncated.+ * Keyvault copies (import ids) the user dismissed from the notch: it no+ * longer shows them, nothing is revoked or wiped+ * ([`crate::keyvault::view::prune_dismissed`] forgets the gone ones).*/- help: string,+ dismissedAccess: Array<string>,/**- * The display's resolution ("1280×800"), Desktop row only.+ * Keyvault rows may load a site's icon from Google's favicon service+ * when the source browser had none (Settings, Keyvault; on by default).+ * Off, only icons read locally are shown.*/- resolution?: string,+ keyvaultSiteIcons: boolean,/**- * The icon.+ * The sites the user sent to each Space last time, per app+ * ([`crate::teleport::review::remember`]): the review starts from them.*/- icon: AppStreamRowIcon,+ teleportChoices: Array<AppRememberedChoice>,/**- * Icon buttons, in order.+ * Settings, General: a running Space's desktop streams as soon as it+ * is opened (on by default); off, it waits for Connect+ * ([`crate::spaces::cover`]).*/- actions: Array<AppStreamRowAction>+ autoConnect: boolean}/**- * Generated factory for {@link AppStreamRow} record objects.+ * Generated factory for {@link AppSettings} record objects.*/-export const AppStreamRow = (() => {+export const AppSettings = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStreamRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSettings, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStreamRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSettings>,});})();-const FfiConverterTypeAppStreamRow = (() => {- type TypeName = AppStreamRow;+const FfiConverterTypeAppSettings = (() => {+ type TypeName = AppSettings;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- kind: FfiConverterTypeAppStreamRowKind.read(from),- label: FfiConverterString.read(from),- help: FfiConverterString.read(from),- resolution: FfiConverterOptionalString.read(from),- icon: FfiConverterTypeAppStreamRowIcon.read(from),- actions: FfiConverterSequenceTypeAppStreamRowAction.read(from)+ hotkey: FfiConverterString.read(from),+ menuBar: FfiConverterBool.read(from),+ theme: FfiConverterTypeAppSwitcherTheme.read(from),+ defaultLocation: FfiConverterTypeAppLocation.read(from),+ hideInFullScreen: FfiConverterBool.read(from),+ notificationsSeenMs: FfiConverterUInt64.read(from),+ lastSeenVersion: FfiConverterOptionalString.read(from),+ updateChannel: FfiConverterTypeAppUpdateChannel.read(from),+ launchAtLogin: FfiConverterOptionalBoolean.read(from),+ experiments: FfiConverterTypeAppExperiments.read(from),+ dismissedAccess: FfiConverterSequenceString.read(from),+ keyvaultSiteIcons: FfiConverterBool.read(from),+ teleportChoices: FfiConverterSequenceTypeAppRememberedChoice.read(from),+ autoConnect: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterTypeAppStreamRowKind.write(value.kind, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.help, into);- FfiConverterOptionalString.write(value.resolution, into);- FfiConverterTypeAppStreamRowIcon.write(value.icon, into);- FfiConverterSequenceTypeAppStreamRowAction.write(value.actions, into);+ FfiConverterString.write(value.hotkey, into);+ FfiConverterBool.write(value.menuBar, into);+ FfiConverterTypeAppSwitcherTheme.write(value.theme, into);+ FfiConverterTypeAppLocation.write(value.defaultLocation, into);+ FfiConverterBool.write(value.hideInFullScreen, into);+ FfiConverterUInt64.write(value.notificationsSeenMs, into);+ FfiConverterOptionalString.write(value.lastSeenVersion, into);+ FfiConverterTypeAppUpdateChannel.write(value.updateChannel, into);+ FfiConverterOptionalBoolean.write(value.launchAtLogin, into);+ FfiConverterTypeAppExperiments.write(value.experiments, into);+ FfiConverterSequenceString.write(value.dismissedAccess, into);+ FfiConverterBool.write(value.keyvaultSiteIcons, into);+ FfiConverterSequenceTypeAppRememberedChoice.write(value.teleportChoices, into);+ FfiConverterBool.write(value.autoConnect, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterTypeAppStreamRowKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.help) +- FfiConverterOptionalString.allocationSize(value.resolution) +- FfiConverterTypeAppStreamRowIcon.allocationSize(value.icon) +- FfiConverterSequenceTypeAppStreamRowAction.allocationSize(value.actions);+ return FfiConverterString.allocationSize(value.hotkey) ++ FfiConverterBool.allocationSize(value.menuBar) ++ FfiConverterTypeAppSwitcherTheme.allocationSize(value.theme) ++ FfiConverterTypeAppLocation.allocationSize(value.defaultLocation) ++ FfiConverterBool.allocationSize(value.hideInFullScreen) ++ FfiConverterUInt64.allocationSize(value.notificationsSeenMs) ++ FfiConverterOptionalString.allocationSize(value.lastSeenVersion) ++ FfiConverterTypeAppUpdateChannel.allocationSize(value.updateChannel) ++ FfiConverterOptionalBoolean.allocationSize(value.launchAtLogin) ++ FfiConverterTypeAppExperiments.allocationSize(value.experiments) ++ FfiConverterSequenceString.allocationSize(value.dismissedAccess) ++ FfiConverterBool.allocationSize(value.keyvaultSiteIcons) ++ FfiConverterSequenceTypeAppRememberedChoice.allocationSize(value.teleportChoices) ++ FfiConverterBool.allocationSize(value.autoConnect);}};return new FFIConverter();})();-export type AppStreamSection = {++// Enum: AppSignInPhase+export enum AppSignInPhase_Tags {+ Idle = "Idle",+ Starting = "Starting",+ Waiting = "Waiting",+ Failed = "Failed"+}+export const AppSignInPhase = (() => {++ type Idle__interface = {+ tag: AppSignInPhase_Tags.Idle+ };/**- * The Desktop row, then one per window.+ * Nothing started.*/- rows: Array<AppStreamRow>,+ class Idle_ extends UniffiEnum implements Idle__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppSignInPhase";+ readonly tag = AppSignInPhase_Tags.Idle;+ constructor() {+ super("AppSignInPhase", "Idle");+ }++ static new(): Idle_ {+ return new Idle_();+ }++ static instanceOf(obj: any): obj is Idle_ {+ return obj.tag === AppSignInPhase_Tags.Idle;+ }++ }++ type Starting__interface = {+ tag: AppSignInPhase_Tags.Starting+ };/**- * Under the rows while there are no window rows: loading, none,- * failed or no match.+ * Asking for a code.*/- statusText?: string-}+ class Starting_ extends UniffiEnum implements Starting__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppSignInPhase";+ readonly tag = AppSignInPhase_Tags.Starting;+ constructor() {+ super("AppSignInPhase", "Starting");+ }++ static new(): Starting_ {+ return new Starting_();+ }++ static instanceOf(obj: any): obj is Starting_ {+ return obj.tag === AppSignInPhase_Tags.Starting;+ }++ }++ type Waiting__interface = {+ tag: AppSignInPhase_Tags.Waiting;+ inner:+Readonly<{userCode?: string}>+ };+ /**+ * The browser is open.+ */+ class Waiting_ extends UniffiEnum implements Waiting__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppSignInPhase";+ readonly tag = AppSignInPhase_Tags.Waiting;+ readonly inner:+Readonly<{userCode?: string}>;+ constructor(+inner: {userCode?: string }) {+ super("AppSignInPhase", "Waiting");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {userCode?: string }): Waiting_ {+ return new Waiting_(inner);+ }++ static instanceOf(obj: any): obj is Waiting_ {+ return obj.tag === AppSignInPhase_Tags.Waiting;+ }++ }++ type Failed__interface = {+ tag: AppSignInPhase_Tags.Failed;+ inner:+Readonly<{message: string}>+ };+ /**+ * It failed.+ */+ class Failed_ extends UniffiEnum implements Failed__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppSignInPhase";+ readonly tag = AppSignInPhase_Tags.Failed;+ readonly inner:+Readonly<{message: string}>;+ constructor(+inner: {message: string }) {+ super("AppSignInPhase", "Failed");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {message: string }): Failed_ {+ return new Failed_(inner);+ }++ static instanceOf(obj: any): obj is Failed_ {+ return obj.tag === AppSignInPhase_Tags.Failed;+ }++ }++ function instanceOf(obj: any): obj is AppSignInPhase {+ return obj[uniffiTypeNameSymbol] === "AppSignInPhase";+ }-/**- * Generated factory for {@link AppStreamSection} record objects.- */-export const AppStreamSection = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<AppStreamSection, ReturnType<typeof defaults>>(defaults);- })();return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStreamSection>,+ instanceOf,+ Idle: Idle_,+ Starting: Starting_,+ Waiting: Waiting_,+ Failed: Failed_});+})();+export type AppSignInPhase = InstanceType<+ typeof AppSignInPhase['Idle' | 'Starting' | 'Waiting' | 'Failed']+>;-const FfiConverterTypeAppStreamSection = (() => {- type TypeName = AppStreamSection;+// FfiConverter for enum AppSignInPhase+const FfiConverterTypeAppSignInPhase = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppSignInPhase;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- rows: FfiConverterSequenceTypeAppStreamRow.read(from),- statusText: FfiConverterOptionalString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return new AppSignInPhase.Idle();+ case 2: return new AppSignInPhase.Starting();+ case 3: return new AppSignInPhase.Waiting({userCode: FfiConverterOptionalString.read(from) });+ case 4: return new AppSignInPhase.Failed({message: FfiConverterString.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeAppStreamRow.write(value.rows, into);- FfiConverterOptionalString.write(value.statusText, into);+ switch (value.tag) {+ case AppSignInPhase_Tags.Idle: {+ ordinalConverter.write(1, into);+ return;+ }+ case AppSignInPhase_Tags.Starting: {+ ordinalConverter.write(2, into);+ return;+ }+ case AppSignInPhase_Tags.Waiting: {+ ordinalConverter.write(3, into);+ const inner = value.inner;+ FfiConverterOptionalString.write(inner.userCode, into);+ return;+ }+ case AppSignInPhase_Tags.Failed: {+ ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterString.write(inner.message, into);+ return;+ }+ default:+ // Throwing from here means that AppSignInPhase_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeAppStreamRow.allocationSize(value.rows) +- FfiConverterOptionalString.allocationSize(value.statusText);-+ switch (value.tag) {+ case AppSignInPhase_Tags.Idle: {+ return ordinalConverter.allocationSize(1);+ }+ case AppSignInPhase_Tags.Starting: {+ return ordinalConverter.allocationSize(2);+ }+ case AppSignInPhase_Tags.Waiting: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(3);+ size += FfiConverterOptionalString.allocationSize(inner.userCode);+ return size;+ }+ case AppSignInPhase_Tags.Failed: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterString.allocationSize(inner.message);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- };+ }return new FFIConverter();})();-export type AppStreamSectionInput = {+export type AppSettingsInput = {/**- * The Space's windows, `None` while they load.+ * The signed-in account.*/- windows?: Array<AppRemoteWindow>,+ identity?: string,/**- * The window list could not be read.+ * Cua Cloud through client credentials (an API key): its client id.*/- failed: boolean,+ apiKeyClient?: string,/**- * The primary display, when the display list has been read.+ * The sign-in in progress.*/- display?: AppStreamDisplay,+ signIn: AppSignInPhase,/**- * The Space's OS (the Desktop row's icon).+ * Signing out is possible (a user session).*/- os: AppSpaceOs,+ canSignOut: boolean,/**- * The OS name the Space reported ("Ubuntu 24.04"), if any.+ * The Spaces tab is hidden from the notch (the menu bar item is the+ * entry point).*/- osName?: string,+ menuBar: boolean,/**- * Rows whose picture in picture is open (row ids).+ * Where New Space starts.*/- open: Array<string>,+ defaultLocation: AppLocation,/**- * Filter text.+ * The environment sets the default location: which variable.*/- query: string+ locationLockedBy?: string,+ /**+ * The telemetry switch (none until read).+ */+ telemetry?: AppTelemetryInput,+ /**+ * Coding agents (none while detecting).+ */+ agents?: Array<AppAgentSettingsRow>,+ /**+ * "Configure all" is running.+ */+ agentsBusy: boolean,+ /**+ * Agents with an action running.+ */+ agentsPending: Array<string>,+ /**+ * The account's Cua Cloud billing, once read (signed in).+ */+ billing?: AppBillingStatus,+ /**+ * Launch at login, once the system was asked (none: no rows).+ */+ loginItem?: AppLoginItemInput,+ /**+ * Settings, Experiments (what the page mentions follows them).+ */+ experiments: AppExperiments,+ /**+ * The Keyvault's auto-wipe, once the broker told it (none: no+ * Keyvault section).+ */+ keyvaultAutoWipe?: boolean,+ /**+ * The unlock prompt shows (false once the user chose "Never ask+ * again"); none until the broker told it.+ */+ keyvaultUnlockPrompt?: boolean,+ /**+ * Load site icons from Google when the browser had none+ * ([`AppSettings::keyvault_site_icons`]).+ */+ keyvaultSiteIcons: boolean,+ /**+ * The Keyvault's protection facts (Touch ID, the daemon's signature),+ * shown in the section.+ */+ keyvaultProtection: Array<AppFact>,+ /**+ * "Connect to the desktop automatically" (none: no row; a shell+ * without the preview cover leaves it out).+ */+ autoConnect?: boolean,+ /**+ * Which Lume macOS Spaces run on (`runtime.lume`: `auto`, `builtin`,+ * `system`); none: no Runtimes section.+ */+ lumeSource?: string,+ /**+ * Which engine local Linux Spaces run on (`runtime.linux`: `auto`,+ * `builtin`, `system`); none: no Linux row.+ */+ linuxSource?: string}/**- * Generated factory for {@link AppStreamSectionInput} record objects.+ * Generated factory for {@link AppSettingsInput} record objects.*/-export const AppStreamSectionInput = (() => {+export const AppSettingsInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppStreamSectionInput, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSettingsInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppStreamSectionInput>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSettingsInput>,});})();-const FfiConverterTypeAppStreamSectionInput = (() => {- type TypeName = AppStreamSectionInput;+const FfiConverterTypeAppSettingsInput = (() => {+ type TypeName = AppSettingsInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- windows: FfiConverterOptionalSequenceTypeAppRemoteWindow.read(from),- failed: FfiConverterBool.read(from),- display: FfiConverterOptionalTypeAppStreamDisplay.read(from),- os: FfiConverterTypeAppSpaceOs.read(from),- osName: FfiConverterOptionalString.read(from),- open: FfiConverterSequenceString.read(from),- query: FfiConverterString.read(from)+ identity: FfiConverterOptionalString.read(from),+ apiKeyClient: FfiConverterOptionalString.read(from),+ signIn: FfiConverterTypeAppSignInPhase.read(from),+ canSignOut: FfiConverterBool.read(from),+ menuBar: FfiConverterBool.read(from),+ defaultLocation: FfiConverterTypeAppLocation.read(from),+ locationLockedBy: FfiConverterOptionalString.read(from),+ telemetry: FfiConverterOptionalTypeAppTelemetryInput.read(from),+ agents: FfiConverterOptionalSequenceTypeAppAgentSettingsRow.read(from),+ agentsBusy: FfiConverterBool.read(from),+ agentsPending: FfiConverterSequenceString.read(from),+ billing: FfiConverterOptionalTypeAppBillingStatus.read(from),+ loginItem: FfiConverterOptionalTypeAppLoginItemInput.read(from),+ experiments: FfiConverterTypeAppExperiments.read(from),+ keyvaultAutoWipe: FfiConverterOptionalBoolean.read(from),+ keyvaultUnlockPrompt: FfiConverterOptionalBoolean.read(from),+ keyvaultSiteIcons: FfiConverterBool.read(from),+ keyvaultProtection: FfiConverterSequenceTypeAppFact.read(from),+ autoConnect: FfiConverterOptionalBoolean.read(from),+ lumeSource: FfiConverterOptionalString.read(from),+ linuxSource: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalSequenceTypeAppRemoteWindow.write(value.windows, into);- FfiConverterBool.write(value.failed, into);- FfiConverterOptionalTypeAppStreamDisplay.write(value.display, into);- FfiConverterTypeAppSpaceOs.write(value.os, into);- FfiConverterOptionalString.write(value.osName, into);- FfiConverterSequenceString.write(value.open, into);- FfiConverterString.write(value.query, into);+ FfiConverterOptionalString.write(value.identity, into);+ FfiConverterOptionalString.write(value.apiKeyClient, into);+ FfiConverterTypeAppSignInPhase.write(value.signIn, into);+ FfiConverterBool.write(value.canSignOut, into);+ FfiConverterBool.write(value.menuBar, into);+ FfiConverterTypeAppLocation.write(value.defaultLocation, into);+ FfiConverterOptionalString.write(value.locationLockedBy, into);+ FfiConverterOptionalTypeAppTelemetryInput.write(value.telemetry, into);+ FfiConverterOptionalSequenceTypeAppAgentSettingsRow.write(value.agents, into);+ FfiConverterBool.write(value.agentsBusy, into);+ FfiConverterSequenceString.write(value.agentsPending, into);+ FfiConverterOptionalTypeAppBillingStatus.write(value.billing, into);+ FfiConverterOptionalTypeAppLoginItemInput.write(value.loginItem, into);+ FfiConverterTypeAppExperiments.write(value.experiments, into);+ FfiConverterOptionalBoolean.write(value.keyvaultAutoWipe, into);+ FfiConverterOptionalBoolean.write(value.keyvaultUnlockPrompt, into);+ FfiConverterBool.write(value.keyvaultSiteIcons, into);+ FfiConverterSequenceTypeAppFact.write(value.keyvaultProtection, into);+ FfiConverterOptionalBoolean.write(value.autoConnect, into);+ FfiConverterOptionalString.write(value.lumeSource, into);+ FfiConverterOptionalString.write(value.linuxSource, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalSequenceTypeAppRemoteWindow.allocationSize(value.windows) +- FfiConverterBool.allocationSize(value.failed) +- FfiConverterOptionalTypeAppStreamDisplay.allocationSize(value.display) +- FfiConverterTypeAppSpaceOs.allocationSize(value.os) +- FfiConverterOptionalString.allocationSize(value.osName) +- FfiConverterSequenceString.allocationSize(value.open) +- FfiConverterString.allocationSize(value.query);+ return FfiConverterOptionalString.allocationSize(value.identity) ++ FfiConverterOptionalString.allocationSize(value.apiKeyClient) ++ FfiConverterTypeAppSignInPhase.allocationSize(value.signIn) ++ FfiConverterBool.allocationSize(value.canSignOut) ++ FfiConverterBool.allocationSize(value.menuBar) ++ FfiConverterTypeAppLocation.allocationSize(value.defaultLocation) ++ FfiConverterOptionalString.allocationSize(value.locationLockedBy) ++ FfiConverterOptionalTypeAppTelemetryInput.allocationSize(value.telemetry) ++ FfiConverterOptionalSequenceTypeAppAgentSettingsRow.allocationSize(value.agents) ++ FfiConverterBool.allocationSize(value.agentsBusy) ++ FfiConverterSequenceString.allocationSize(value.agentsPending) ++ FfiConverterOptionalTypeAppBillingStatus.allocationSize(value.billing) ++ FfiConverterOptionalTypeAppLoginItemInput.allocationSize(value.loginItem) ++ FfiConverterTypeAppExperiments.allocationSize(value.experiments) ++ FfiConverterOptionalBoolean.allocationSize(value.keyvaultAutoWipe) ++ FfiConverterOptionalBoolean.allocationSize(value.keyvaultUnlockPrompt) ++ FfiConverterBool.allocationSize(value.keyvaultSiteIcons) ++ FfiConverterSequenceTypeAppFact.allocationSize(value.keyvaultProtection) ++ FfiConverterOptionalBoolean.allocationSize(value.autoConnect) ++ FfiConverterOptionalString.allocationSize(value.lumeSource) ++ FfiConverterOptionalString.allocationSize(value.linuxSource);}};return new FFIConverter();})();-export type AppTeleportConsent = {- /**- * Confirmed.- */- approved: boolean,- /**- * Secrets acknowledged.- */- acknowledgeSensitive: boolean,+export type AppSettingsSection = {/**- * "Save to Keyvault" checked.+ * `account`, `general`, `privacy`, `agents`.*/- saveToKeyvault: boolean,+ id: string,/**- * [`Plan::relay_unsealed`]'s warning acknowledged (S1).+ * "Account", "General", "Privacy", "AI agents".*/- acknowledgeRelayPlaintext: boolean,+ title: string,/**- * The sites whose cookies to send (the review's per-site choice);- * `None` when the review did not list sites.+ * A button in the header.*/- cookieDomains?: Array<string>,+ button?: string,/**- * Consent items (keys) the user turned off.+ * That button can be used.*/- exclude: Array<string>,+ buttonEnabled: boolean,/**- * Send these saved Keyvault items instead of reading the live app.+ * Its tooltip.*/- fromVault?: Array<string>,+ buttonHelp?: string,/**- * Also send the saved passwords (ticked in the review).+ * Rows.*/- includePasswords: boolean+ rows: Array<AppSettingsRow>}/**- * Generated factory for {@link AppTeleportConsent} record objects.+ * Generated factory for {@link AppSettingsSection} record objects.*/-export const AppTeleportConsent = (() => {+export const AppSettingsSection = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppTeleportConsent, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSettingsSection, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTeleportConsent>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSettingsSection>,});})();-const FfiConverterTypeAppTeleportConsent = (() => {- type TypeName = AppTeleportConsent;+const FfiConverterTypeAppSettingsSection = (() => {+ type TypeName = AppSettingsSection;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- approved: FfiConverterBool.read(from),- acknowledgeSensitive: FfiConverterBool.read(from),- saveToKeyvault: FfiConverterBool.read(from),- acknowledgeRelayPlaintext: FfiConverterBool.read(from),- cookieDomains: FfiConverterOptionalSequenceString.read(from),- exclude: FfiConverterSequenceString.read(from),- fromVault: FfiConverterOptionalSequenceString.read(from),- includePasswords: FfiConverterBool.read(from)+ id: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ button: FfiConverterOptionalString.read(from),+ buttonEnabled: FfiConverterBool.read(from),+ buttonHelp: FfiConverterOptionalString.read(from),+ rows: FfiConverterSequenceTypeAppSettingsRow.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.approved, into);- FfiConverterBool.write(value.acknowledgeSensitive, into);- FfiConverterBool.write(value.saveToKeyvault, into);- FfiConverterBool.write(value.acknowledgeRelayPlaintext, into);- FfiConverterOptionalSequenceString.write(value.cookieDomains, into);- FfiConverterSequenceString.write(value.exclude, into);- FfiConverterOptionalSequenceString.write(value.fromVault, into);- FfiConverterBool.write(value.includePasswords, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.title, into);+ FfiConverterOptionalString.write(value.button, into);+ FfiConverterBool.write(value.buttonEnabled, into);+ FfiConverterOptionalString.write(value.buttonHelp, into);+ FfiConverterSequenceTypeAppSettingsRow.write(value.rows, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.approved) +- FfiConverterBool.allocationSize(value.acknowledgeSensitive) +- FfiConverterBool.allocationSize(value.saveToKeyvault) +- FfiConverterBool.allocationSize(value.acknowledgeRelayPlaintext) +- FfiConverterOptionalSequenceString.allocationSize(value.cookieDomains) +- FfiConverterSequenceString.allocationSize(value.exclude) +- FfiConverterOptionalSequenceString.allocationSize(value.fromVault) +- FfiConverterBool.allocationSize(value.includePasswords);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterOptionalString.allocationSize(value.button) ++ FfiConverterBool.allocationSize(value.buttonEnabled) ++ FfiConverterOptionalString.allocationSize(value.buttonHelp) ++ FfiConverterSequenceTypeAppSettingsRow.allocationSize(value.rows);}};return new FFIConverter();})();-export type AppThumbnailPolicy = {- /**- * While the notch is open: every running Space, this often.- */- openIntervalMs: bigint,- /**- * Otherwise (the app visible, not in Low Power Mode): a running Space- * whose thumbnail is older than this gets a new one.- */- backgroundIntervalMs: bigint,+export type AppSettingsPage = {/**- * The long edge of a captured thumbnail, in pixels.+ * "Settings".*/- maxDimension: number,+ title: string,/**- * A thumbnail kept on disk longer than this is dropped at launch.+ * Account, General, Privacy (once read), AI agents.*/- keepMs: bigint+ sections: Array<AppSettingsSection>}/**- * Generated factory for {@link AppThumbnailPolicy} record objects.+ * Generated factory for {@link AppSettingsPage} record objects.*/-export const AppThumbnailPolicy = (() => {+export const AppSettingsPage = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppThumbnailPolicy, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSettingsPage, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppThumbnailPolicy>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSettingsPage>,});})();-const FfiConverterTypeAppThumbnailPolicy = (() => {- type TypeName = AppThumbnailPolicy;+const FfiConverterTypeAppSettingsPage = (() => {+ type TypeName = AppSettingsPage;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- openIntervalMs: FfiConverterUInt64.read(from),- backgroundIntervalMs: FfiConverterUInt64.read(from),- maxDimension: FfiConverterUInt32.read(from),- keepMs: FfiConverterUInt64.read(from)+ title: FfiConverterString.read(from),+ sections: FfiConverterSequenceTypeAppSettingsSection.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt64.write(value.openIntervalMs, into);- FfiConverterUInt64.write(value.backgroundIntervalMs, into);- FfiConverterUInt32.write(value.maxDimension, into);- FfiConverterUInt64.write(value.keepMs, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppSettingsSection.write(value.sections, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt64.allocationSize(value.openIntervalMs) +- FfiConverterUInt64.allocationSize(value.backgroundIntervalMs) +- FfiConverterUInt32.allocationSize(value.maxDimension) +- FfiConverterUInt64.allocationSize(value.keepMs);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppSettingsSection.allocationSize(value.sections);}};return new FFIConverter();})();-export type AppTile = {- /**- * Stable id (`linux`, `cloud`, `vm`, ...).- */- id: string,- /**- * Title.- */- title: string,+export type AppShareEntryInput = {/**- * Tooltip.+ * Email or account id.*/- detail: string,+ who: string,/**- * Selected.+ * `viewer` or `editor`.*/- pressed: boolean,+ role: string,/**- * Enabled.+ * Connected through the relay now.*/- enabled: boolean+ connected: boolean}/**- * Generated factory for {@link AppTile} record objects.+ * Generated factory for {@link AppShareEntryInput} record objects.*/-export const AppTile = (() => {+export const AppShareEntryInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppTile, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppShareEntryInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTile>,+ defaults: () => Object.freeze(defaults()) as Partial<AppShareEntryInput>,});})();-const FfiConverterTypeAppTile = (() => {- type TypeName = AppTile;+const FfiConverterTypeAppShareEntryInput = (() => {+ type TypeName = AppShareEntryInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- title: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- pressed: FfiConverterBool.read(from),- enabled: FfiConverterBool.read(from)+ who: FfiConverterString.read(from),+ role: FfiConverterString.read(from),+ connected: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.detail, into);- FfiConverterBool.write(value.pressed, into);- FfiConverterBool.write(value.enabled, into);+ FfiConverterString.write(value.who, into);+ FfiConverterString.write(value.role, into);+ FfiConverterBool.write(value.connected, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterBool.allocationSize(value.pressed) +- FfiConverterBool.allocationSize(value.enabled);+ return FfiConverterString.allocationSize(value.who) ++ FfiConverterString.allocationSize(value.role) ++ FfiConverterBool.allocationSize(value.connected);}};return new FFIConverter();})();-export enum AppTransferPhase {+export type AppShareInput = {/**- * Uploading.+ * The Space's id.*/- Active = "active",+ spaceId: string,/**- * Failed.+ * Its display name.*/- Error = "error"+ spaceName: string,+ /**+ * Who it is shared with.+ */+ shares: Array<AppShareEntryInput>,+ /**+ * Signed in to cua.ai (sharing goes through the account's relay).+ */+ signedIn: boolean,+ /**+ * The Space can be shared (a host, or a driver with `relay_attach`).+ */+ shareable: boolean}-const FfiConverterTypeAppTransferPhase = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppTransferPhase;+/**+ * Generated factory for {@link AppShareInput} record objects.+ */+export const AppShareInput = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppShareInput, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppShareInput>,+ });+})();++const FfiConverterTypeAppShareInput = (() => {+ type TypeName = AppShareInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppTransferPhase.Active;- case 2: return AppTransferPhase.Error;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ spaceId: FfiConverterString.read(from),+ spaceName: FfiConverterString.read(from),+ shares: FfiConverterSequenceTypeAppShareEntryInput.read(from),+ signedIn: FfiConverterBool.read(from),+ shareable: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppTransferPhase.Active: return ordinalConverter.write(1, into);- case AppTransferPhase.Error: return ordinalConverter.write(2, into);- }+ FfiConverterString.write(value.spaceId, into);+ FfiConverterString.write(value.spaceName, into);+ FfiConverterSequenceTypeAppShareEntryInput.write(value.shares, into);+ FfiConverterBool.write(value.signedIn, into);+ FfiConverterBool.write(value.shareable, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.spaceId) ++ FfiConverterString.allocationSize(value.spaceName) ++ FfiConverterSequenceTypeAppShareEntryInput.allocationSize(value.shares) ++ FfiConverterBool.allocationSize(value.signedIn) ++ FfiConverterBool.allocationSize(value.shareable);+}- }+ };return new FFIConverter();})();-export type AppTransferOverlayState = {- /**- * Phase.- */- phase: AppTransferPhase,- /**- * App being teleported.- */- appName: string,+export type AppShareRowView = {/**- * Failure reason.+ * Email or account id.*/- message?: string,+ who: string,/**- * Bytes sent.+ * `viewer` or `editor`.*/- sentBytes?: number,+ role: string,/**- * Total bytes.+ * Connected through the relay now (the shells show a status dot).*/- totalBytes?: number+ connected: boolean}/**- * Generated factory for {@link AppTransferOverlayState} record objects.+ * Generated factory for {@link AppShareRowView} record objects.*/-export const AppTransferOverlayState = (() => {+export const AppShareRowView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppTransferOverlayState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppShareRowView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTransferOverlayState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppShareRowView>,});})();-const FfiConverterTypeAppTransferOverlayState = (() => {- type TypeName = AppTransferOverlayState;+const FfiConverterTypeAppShareRowView = (() => {+ type TypeName = AppShareRowView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- phase: FfiConverterTypeAppTransferPhase.read(from),- appName: FfiConverterString.read(from),- message: FfiConverterOptionalString.read(from),- sentBytes: FfiConverterOptionalFloat64.read(from),- totalBytes: FfiConverterOptionalFloat64.read(from)+ who: FfiConverterString.read(from),+ role: FfiConverterString.read(from),+ connected: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppTransferPhase.write(value.phase, into);- FfiConverterString.write(value.appName, into);- FfiConverterOptionalString.write(value.message, into);- FfiConverterOptionalFloat64.write(value.sentBytes, into);- FfiConverterOptionalFloat64.write(value.totalBytes, into);+ FfiConverterString.write(value.who, into);+ FfiConverterString.write(value.role, into);+ FfiConverterBool.write(value.connected, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppTransferPhase.allocationSize(value.phase) +- FfiConverterString.allocationSize(value.appName) +- FfiConverterOptionalString.allocationSize(value.message) +- FfiConverterOptionalFloat64.allocationSize(value.sentBytes) +- FfiConverterOptionalFloat64.allocationSize(value.totalBytes);+ return FfiConverterString.allocationSize(value.who) ++ FfiConverterString.allocationSize(value.role) ++ FfiConverterBool.allocationSize(value.connected);}};return new FFIConverter();})();-export enum AppTransferStatus {++// Enum: AppShareRequest+export enum AppShareRequest_Tags {+ Share = "Share",+ Unshare = "Unshare"+}+export const AppShareRequest = (() => {++ type Share__interface = {+ tag: AppShareRequest_Tags.Share;+ inner:+Readonly<{space: string; who: string; role: string}>+ };/**- * Began (or retried).- */- Start = "start",- /**- * Bytes moved.- */- Progress = "progress",- /**- * Finished.+ * `share_space` (also changes a role).*/- Done = "done",+ class Share_ extends UniffiEnum implements Share__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppShareRequest";+ readonly tag = AppShareRequest_Tags.Share;+ readonly inner:+Readonly<{space: string; who: string; role: string}>;+ constructor(+inner: {space: string; who: string; role: string }) {+ super("AppShareRequest", "Share");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {space: string; who: string; role: string }): Share_ {+ return new Share_(inner);+ }++ static instanceOf(obj: any): obj is Share_ {+ return obj.tag === AppShareRequest_Tags.Share;+ }++ }++ type Unshare__interface = {+ tag: AppShareRequest_Tags.Unshare;+ inner:+Readonly<{space: string; who: string}>+ };/**- * Failed.+ * `unshare_space`.*/- Error = "error"-}+ class Unshare_ extends UniffiEnum implements Unshare__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppShareRequest";+ readonly tag = AppShareRequest_Tags.Unshare;+ readonly inner:+Readonly<{space: string; who: string}>;+ constructor(+inner: {space: string; who: string }) {+ super("AppShareRequest", "Unshare");-const FfiConverterTypeAppTransferStatus = (() => {+ this.inner = Object.freeze(inner);+ }+ static new(+inner: {space: string; who: string }): Unshare_ {+ return new Unshare_(inner);+ }++ static instanceOf(obj: any): obj is Unshare_ {+ return obj.tag === AppShareRequest_Tags.Unshare;+ }++ }++ function instanceOf(obj: any): obj is AppShareRequest {+ return obj[uniffiTypeNameSymbol] === "AppShareRequest";+ }++ return Object.freeze({+ instanceOf,+ Share: Share_,+ Unshare: Unshare_+ });++})();+export type AppShareRequest = InstanceType<+ typeof AppShareRequest['Share' | 'Unshare']+>;++// FfiConverter for enum AppShareRequest+const FfiConverterTypeAppShareRequest = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppTransferStatus;+ type TypeName = AppShareRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppTransferStatus.Start;- case 2: return AppTransferStatus.Progress;- case 3: return AppTransferStatus.Done;- case 4: return AppTransferStatus.Error;+ case 1: return new AppShareRequest.Share({space: FfiConverterString.read(from), who: FfiConverterString.read(from), role: FfiConverterString.read(from) });+ case 2: return new AppShareRequest.Unshare({space: FfiConverterString.read(from), who: FfiConverterString.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppTransferStatus.Start: return ordinalConverter.write(1, into);- case AppTransferStatus.Progress: return ordinalConverter.write(2, into);- case AppTransferStatus.Done: return ordinalConverter.write(3, into);- case AppTransferStatus.Error: return ordinalConverter.write(4, into);+ switch (value.tag) {+ case AppShareRequest_Tags.Share: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterString.write(inner.space, into);+ FfiConverterString.write(inner.who, into);+ FfiConverterString.write(inner.role, into);+ return;+ }+ case AppShareRequest_Tags.Unshare: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.space, into);+ FfiConverterString.write(inner.who, into);+ return;+ }+ default:+ // Throwing from here means that AppShareRequest_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ switch (value.tag) {+ case AppShareRequest_Tags.Share: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterString.allocationSize(inner.space);+ size += FfiConverterString.allocationSize(inner.who);+ size += FfiConverterString.allocationSize(inner.role);+ return size;+ }+ case AppShareRequest_Tags.Unshare: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterString.allocationSize(inner.space);+ size += FfiConverterString.allocationSize(inner.who);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}}return new FFIConverter();})();-export type AppTransferSignal = {+export type AppShareSheetState = {/**- * Status.+ * The add field, as typed.*/- status: AppTransferStatus,+ who: string,/**- * App name.+ * The role the add field shares with.*/- appName?: string,+ role: string,/**- * Message.+ * A command runs.*/- message?: string,+ busy: boolean,/**- * Bytes sent.+ * The last failure.*/- sentBytes?: number,+ error?: string,/**- * Total bytes.+ * The command waiting for the shell.*/- totalBytes?: number+ request?: AppShareRequest}/**- * Generated factory for {@link AppTransferSignal} record objects.+ * Generated factory for {@link AppShareSheetState} record objects.*/-export const AppTransferSignal = (() => {+export const AppShareSheetState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppTransferSignal, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppShareSheetState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppTransferSignal>,+ defaults: () => Object.freeze(defaults()) as Partial<AppShareSheetState>,});})();-const FfiConverterTypeAppTransferSignal = (() => {- type TypeName = AppTransferSignal;+const FfiConverterTypeAppShareSheetState = (() => {+ type TypeName = AppShareSheetState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- status: FfiConverterTypeAppTransferStatus.read(from),- appName: FfiConverterOptionalString.read(from),- message: FfiConverterOptionalString.read(from),- sentBytes: FfiConverterOptionalFloat64.read(from),- totalBytes: FfiConverterOptionalFloat64.read(from)+ who: FfiConverterString.read(from),+ role: FfiConverterString.read(from),+ busy: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ request: FfiConverterOptionalTypeAppShareRequest.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppTransferStatus.write(value.status, into);- FfiConverterOptionalString.write(value.appName, into);- FfiConverterOptionalString.write(value.message, into);- FfiConverterOptionalFloat64.write(value.sentBytes, into);- FfiConverterOptionalFloat64.write(value.totalBytes, into);+ FfiConverterString.write(value.who, into);+ FfiConverterString.write(value.role, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalTypeAppShareRequest.write(value.request, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppTransferStatus.allocationSize(value.status) +- FfiConverterOptionalString.allocationSize(value.appName) +- FfiConverterOptionalString.allocationSize(value.message) +- FfiConverterOptionalFloat64.allocationSize(value.sentBytes) +- FfiConverterOptionalFloat64.allocationSize(value.totalBytes);+ return FfiConverterString.allocationSize(value.who) ++ FfiConverterString.allocationSize(value.role) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalTypeAppShareRequest.allocationSize(value.request);}};return new FFIConverter();})();-export type AppWizardEnv = {+export type AppShareSheetView = {/**- * Where "Run on" starts (Settings, `cua config set default.on`).+ * `Share “studio”`.*/- defaultLocation: AppLocation,+ title: string,/**- * Signed in (or client credentials).+ * One person per line.*/- cloudAvailable: boolean,+ rows: Array<AppShareRowView>,/**- * A local container backend or Lume exists.+ * Shown with no rows.*/- localAvailable: boolean,+ emptyText: string,/**- * Why local is unavailable.+ * The add field's placeholder.*/- localReason?: string,+ whoPlaceholder: string,/**- * Ready local backends, when known.+ * The add field, as typed.*/- localBackends?: Array<string>,+ who: string,/**- * Why each local backend that is not ready is not (the runtime- * doctor's detail, by backend name), when known: the wizard names the- * reason instead of only "This Mac cannot run container Spaces."+ * The add field's role.*/- localDetails?: Map<string, string>,+ role: string,/**- * Upper bound for the CPU slider.+ * The role menu (for the add field and every row).*/- maxCpus: number,+ roles: Array<AppRoleOption>,/**- * This machine's architecture (`arm64`, `amd64`), when known.+ * Share is enabled.*/- hostArch?: string,+ canShare: boolean,/**- * Which Lume macOS Spaces run on (`runtime.lume`: `auto`, `builtin`,- * `system`), when known.+ * Share.*/- lumeSource?: string,+ shareLabel: string,/**- * Which engine local Linux Spaces run on (`runtime.linux`: `auto`,- * `builtin`, `system`), when known (a Mac).+ * Remove (per row).*/- linuxSource?: string,+ removeLabel: string,/**- * Free space and pulled images here (the SDK's `Local.storage()`),- * when known.+ * Done.*/- storage?: AppLocalStorage,+ doneLabel: string,/**- * This account's Cua Cloud rates, when known (no estimate without).+ * Why the sheet cannot share at all (not signed in, an old driver).*/- cloudPricing?: AppCloudPricing,+ disabledReason?: string,/**- * The user's connected clouds (`cloud_status`), for "Your cloud"- * (offered only while its experiment is on: [`offered_clouds`]).+ * What the add field lacks (shown under it, only once typed).*/- clouds: Array<AppConnectedCloud>,+ hint?: string,/**- * The user's machines that provide Spaces (`Spaces.hosts()`).+ * A command runs.*/- hosts: Array<AppSpaceHost>,+ busy: boolean,/**- * Settings, Experiments ("Your cloud" decides whether clouds show).+ * The last failure.*/- experiments: AppExperiments,+ error?: string,/**- * The GPU option of each runtime that has one (the SDK's- * `gpu_support`), when known. A runtime not listed has none: the- * Resources step shows no GPU row for it.+ * The command waiting for the shell.*/- gpus?: Array<AppGpuChoice>+ request?: AppShareRequest}/**- * Generated factory for {@link AppWizardEnv} record objects.+ * Generated factory for {@link AppShareSheetView} record objects.*/-export const AppWizardEnv = (() => {+export const AppShareSheetView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppWizardEnv, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppShareSheetView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppWizardEnv>,+ defaults: () => Object.freeze(defaults()) as Partial<AppShareSheetView>,});})();-const FfiConverterTypeAppWizardEnv = (() => {- type TypeName = AppWizardEnv;+const FfiConverterTypeAppShareSheetView = (() => {+ type TypeName = AppShareSheetView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- defaultLocation: FfiConverterTypeAppLocation.read(from),- cloudAvailable: FfiConverterBool.read(from),- localAvailable: FfiConverterBool.read(from),- localReason: FfiConverterOptionalString.read(from),- localBackends: FfiConverterOptionalSequenceString.read(from),- localDetails: FfiConverterOptionalMapStringString.read(from),- maxCpus: FfiConverterUInt32.read(from),- hostArch: FfiConverterOptionalString.read(from),- lumeSource: FfiConverterOptionalString.read(from),- linuxSource: FfiConverterOptionalString.read(from),- storage: FfiConverterOptionalTypeAppLocalStorage.read(from),- cloudPricing: FfiConverterOptionalTypeAppCloudPricing.read(from),- clouds: FfiConverterSequenceTypeAppConnectedCloud.read(from),- hosts: FfiConverterSequenceTypeAppSpaceHost.read(from),- experiments: FfiConverterTypeAppExperiments.read(from),- gpus: FfiConverterOptionalSequenceTypeAppGpuChoice.read(from)+ title: FfiConverterString.read(from),+ rows: FfiConverterSequenceTypeAppShareRowView.read(from),+ emptyText: FfiConverterString.read(from),+ whoPlaceholder: FfiConverterString.read(from),+ who: FfiConverterString.read(from),+ role: FfiConverterString.read(from),+ roles: FfiConverterSequenceTypeAppRoleOption.read(from),+ canShare: FfiConverterBool.read(from),+ shareLabel: FfiConverterString.read(from),+ removeLabel: FfiConverterString.read(from),+ doneLabel: FfiConverterString.read(from),+ disabledReason: FfiConverterOptionalString.read(from),+ hint: FfiConverterOptionalString.read(from),+ busy: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ request: FfiConverterOptionalTypeAppShareRequest.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppLocation.write(value.defaultLocation, into);- FfiConverterBool.write(value.cloudAvailable, into);- FfiConverterBool.write(value.localAvailable, into);- FfiConverterOptionalString.write(value.localReason, into);- FfiConverterOptionalSequenceString.write(value.localBackends, into);- FfiConverterOptionalMapStringString.write(value.localDetails, into);- FfiConverterUInt32.write(value.maxCpus, into);- FfiConverterOptionalString.write(value.hostArch, into);- FfiConverterOptionalString.write(value.lumeSource, into);- FfiConverterOptionalString.write(value.linuxSource, into);- FfiConverterOptionalTypeAppLocalStorage.write(value.storage, into);- FfiConverterOptionalTypeAppCloudPricing.write(value.cloudPricing, into);- FfiConverterSequenceTypeAppConnectedCloud.write(value.clouds, into);- FfiConverterSequenceTypeAppSpaceHost.write(value.hosts, into);- FfiConverterTypeAppExperiments.write(value.experiments, into);- FfiConverterOptionalSequenceTypeAppGpuChoice.write(value.gpus, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppShareRowView.write(value.rows, into);+ FfiConverterString.write(value.emptyText, into);+ FfiConverterString.write(value.whoPlaceholder, into);+ FfiConverterString.write(value.who, into);+ FfiConverterString.write(value.role, into);+ FfiConverterSequenceTypeAppRoleOption.write(value.roles, into);+ FfiConverterBool.write(value.canShare, into);+ FfiConverterString.write(value.shareLabel, into);+ FfiConverterString.write(value.removeLabel, into);+ FfiConverterString.write(value.doneLabel, into);+ FfiConverterOptionalString.write(value.disabledReason, into);+ FfiConverterOptionalString.write(value.hint, into);+ FfiConverterBool.write(value.busy, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalTypeAppShareRequest.write(value.request, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppLocation.allocationSize(value.defaultLocation) +- FfiConverterBool.allocationSize(value.cloudAvailable) +- FfiConverterBool.allocationSize(value.localAvailable) +- FfiConverterOptionalString.allocationSize(value.localReason) +- FfiConverterOptionalSequenceString.allocationSize(value.localBackends) +- FfiConverterOptionalMapStringString.allocationSize(value.localDetails) +- FfiConverterUInt32.allocationSize(value.maxCpus) +- FfiConverterOptionalString.allocationSize(value.hostArch) +- FfiConverterOptionalString.allocationSize(value.lumeSource) +- FfiConverterOptionalString.allocationSize(value.linuxSource) +- FfiConverterOptionalTypeAppLocalStorage.allocationSize(value.storage) +- FfiConverterOptionalTypeAppCloudPricing.allocationSize(value.cloudPricing) +- FfiConverterSequenceTypeAppConnectedCloud.allocationSize(value.clouds) +- FfiConverterSequenceTypeAppSpaceHost.allocationSize(value.hosts) +- FfiConverterTypeAppExperiments.allocationSize(value.experiments) +- FfiConverterOptionalSequenceTypeAppGpuChoice.allocationSize(value.gpus);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppShareRowView.allocationSize(value.rows) ++ FfiConverterString.allocationSize(value.emptyText) ++ FfiConverterString.allocationSize(value.whoPlaceholder) ++ FfiConverterString.allocationSize(value.who) ++ FfiConverterString.allocationSize(value.role) ++ FfiConverterSequenceTypeAppRoleOption.allocationSize(value.roles) ++ FfiConverterBool.allocationSize(value.canShare) ++ FfiConverterString.allocationSize(value.shareLabel) ++ FfiConverterString.allocationSize(value.removeLabel) ++ FfiConverterString.allocationSize(value.doneLabel) ++ FfiConverterOptionalString.allocationSize(value.disabledReason) ++ FfiConverterOptionalString.allocationSize(value.hint) ++ FfiConverterBool.allocationSize(value.busy) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalTypeAppShareRequest.allocationSize(value.request);}};return new FFIConverter();})();-export type AppWizardFact = {+export type AppSidebarRow = {/**- * `kind`, `arch`, `disk`, `download`, `available`.+ * Space id.*/id: string,/**- * Label.+ * Name.*/- label: string,+ name: string,/**- * Value.+ * The Space's OS icon id ([`crate::notch::os_icon`], the same mark the+ * notch tiles use), before the name.*/- value: string,+ osIcon: string,/**- * A symbol after the value (`exclamationmark.triangle`).+ * Status (the dot).*/- symbol?: string,+ status: AppSpaceStatus,/**- * The symbol's tooltip.+ * Status word (the dot's accessibility label).*/- help?: string+ statusText: string,+ /**+ * Tooltip.+ */+ detail: string,+ /**+ * Drawn at reduced opacity.+ */+ dim: boolean,+ /**+ * Selected.+ */+ selected: boolean,+ /**+ * While it is being created: overall progress in thousandths (a ring).+ */+ progress?: number,+ /**+ * Short text after the name: the percentage while it is being+ * created, the error when the create failed.+ */+ trailing?: string,+ /**+ * A Space one of your machines provides, drawn nested under that+ * machine's row (the row before it).+ */+ nested: boolean,+ /**+ * The power button (next to Delete), for a Space whose provider can+ * turn it off and on.+ */+ power?: AppPowerButton,+ /**+ * Where a Space in your cloud runs ("AWS · us-west-2"), secondary+ * text after the name.+ */+ place?: string}/**- * Generated factory for {@link AppWizardFact} record objects.+ * Generated factory for {@link AppSidebarRow} record objects.*/-export const AppWizardFact = (() => {+export const AppSidebarRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppWizardFact, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSidebarRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppWizardFact>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSidebarRow>,});})();-const FfiConverterTypeAppWizardFact = (() => {- type TypeName = AppWizardFact;+const FfiConverterTypeAppSidebarRow = (() => {+ type TypeName = AppSidebarRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- value: FfiConverterString.read(from),- symbol: FfiConverterOptionalString.read(from),- help: FfiConverterOptionalString.read(from)+ name: FfiConverterString.read(from),+ osIcon: FfiConverterString.read(from),+ status: FfiConverterTypeAppSpaceStatus.read(from),+ statusText: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ dim: FfiConverterBool.read(from),+ selected: FfiConverterBool.read(from),+ progress: FfiConverterOptionalUInt32.read(from),+ trailing: FfiConverterOptionalString.read(from),+ nested: FfiConverterBool.read(from),+ power: FfiConverterOptionalTypeAppPowerButton.read(from),+ place: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.value, into);- FfiConverterOptionalString.write(value.symbol, into);- FfiConverterOptionalString.write(value.help, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.osIcon, into);+ FfiConverterTypeAppSpaceStatus.write(value.status, into);+ FfiConverterString.write(value.statusText, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterBool.write(value.dim, into);+ FfiConverterBool.write(value.selected, into);+ FfiConverterOptionalUInt32.write(value.progress, into);+ FfiConverterOptionalString.write(value.trailing, into);+ FfiConverterBool.write(value.nested, into);+ FfiConverterOptionalTypeAppPowerButton.write(value.power, into);+ FfiConverterOptionalString.write(value.place, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.value) +- FfiConverterOptionalString.allocationSize(value.symbol) +- FfiConverterOptionalString.allocationSize(value.help);+ FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.osIcon) ++ FfiConverterTypeAppSpaceStatus.allocationSize(value.status) ++ FfiConverterString.allocationSize(value.statusText) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterBool.allocationSize(value.dim) ++ FfiConverterBool.allocationSize(value.selected) ++ FfiConverterOptionalUInt32.allocationSize(value.progress) ++ FfiConverterOptionalString.allocationSize(value.trailing) ++ FfiConverterBool.allocationSize(value.nested) ++ FfiConverterOptionalTypeAppPowerButton.allocationSize(value.power) ++ FfiConverterOptionalString.allocationSize(value.place);}};return new FFIConverter();})();-export type AppWizardField = {+export type AppSidebarSection = {/**- * `os`, `image`, `placement`, `kind`, `runtime`, `connect-cloud`,- * `connect-by-address`, `cpus`, `memory`, `disk`, `name`,- * `open-when-ready`, `address`, `token`, `address-name`.+ * "Cua Cloud", "This Mac", "Connected", "My machines".*/- id: string,+ title: string,/**- * Label (or the link's title).- */- label: string,- /**- * Placeholder.- */- placeholder?: string,- /**- * One line under the field.- */- error?: string,- /**- * Inside "Advanced".+ * Rows.*/- advanced: boolean+ rows: Array<AppSidebarRow>}/**- * Generated factory for {@link AppWizardField} record objects.+ * Generated factory for {@link AppSidebarSection} record objects.*/-export const AppWizardField = (() => {+export const AppSidebarSection = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppWizardField, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSidebarSection, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppWizardField>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSidebarSection>,});})();-const FfiConverterTypeAppWizardField = (() => {- type TypeName = AppWizardField;+const FfiConverterTypeAppSidebarSection = (() => {+ type TypeName = AppSidebarSection;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- label: FfiConverterString.read(from),- placeholder: FfiConverterOptionalString.read(from),- error: FfiConverterOptionalString.read(from),- advanced: FfiConverterBool.read(from)+ title: FfiConverterString.read(from),+ rows: FfiConverterSequenceTypeAppSidebarRow.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.label, into);- FfiConverterOptionalString.write(value.placeholder, into);- FfiConverterOptionalString.write(value.error, into);- FfiConverterBool.write(value.advanced, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppSidebarRow.write(value.rows, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.label) +- FfiConverterOptionalString.allocationSize(value.placeholder) +- FfiConverterOptionalString.allocationSize(value.error) +- FfiConverterBool.allocationSize(value.advanced);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppSidebarRow.allocationSize(value.rows);}};return new FFIConverter();})();-export type AppWizardLabels = {+export type AppSidebarView = {/**- * "Cancel".+ * The "This machine" row, when it matches the search.*/- cancel: string,+ thisMachine?: AppSidebarRow,/**- * "Back".+ * Location sections, in [`SECTION_ORDER`].*/- back: string,+ sections: Array<AppSidebarSection>,/**- * "Advanced".+ * The effective selection (falls back to the first Space).*/- advanced: string+ selectedId?: string,+ /**+ * "No matches" / "No Spaces yet" when nothing is listed.+ */+ emptyText?: string}/**- * Generated factory for {@link AppWizardLabels} record objects.+ * Generated factory for {@link AppSidebarView} record objects.*/-export const AppWizardLabels = (() => {+export const AppSidebarView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppWizardLabels, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSidebarView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppWizardLabels>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSidebarView>,});})();-const FfiConverterTypeAppWizardLabels = (() => {- type TypeName = AppWizardLabels;+const FfiConverterTypeAppSidebarView = (() => {+ type TypeName = AppSidebarView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- cancel: FfiConverterString.read(from),- back: FfiConverterString.read(from),- advanced: FfiConverterString.read(from)+ thisMachine: FfiConverterOptionalTypeAppSidebarRow.read(from),+ sections: FfiConverterSequenceTypeAppSidebarSection.read(from),+ selectedId: FfiConverterOptionalString.read(from),+ emptyText: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.cancel, into);- FfiConverterString.write(value.back, into);- FfiConverterString.write(value.advanced, into);+ FfiConverterOptionalTypeAppSidebarRow.write(value.thisMachine, into);+ FfiConverterSequenceTypeAppSidebarSection.write(value.sections, into);+ FfiConverterOptionalString.write(value.selectedId, into);+ FfiConverterOptionalString.write(value.emptyText, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.cancel) +- FfiConverterString.allocationSize(value.back) +- FfiConverterString.allocationSize(value.advanced);+ return FfiConverterOptionalTypeAppSidebarRow.allocationSize(value.thisMachine) ++ FfiConverterSequenceTypeAppSidebarSection.allocationSize(value.sections) ++ FfiConverterOptionalString.allocationSize(value.selectedId) ++ FfiConverterOptionalString.allocationSize(value.emptyText);}};return new FFIConverter();})();-export enum AppWizardMode {+export enum AppAgentStatus {/**- * The four steps.+ * A turn is running.*/- Create = "create",+ Running = "running",/**- * Connect by address.+ * Waiting for a follow-up.*/- Address = "address"+ Idle = "idle",+ /**+ * Failed.+ */+ Failed = "failed",+ /**+ * Crashed.+ */+ Crashed = "crashed",+ /**+ * Could not be read.+ */+ Unknown = "unknown"}-const FfiConverterTypeAppWizardMode = (() => {+const FfiConverterTypeAppAgentStatus = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppWizardMode;+ type TypeName = AppAgentStatus;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return AppWizardMode.Create;- case 2: return AppWizardMode.Address;+ case 1: return AppAgentStatus.Running;+ case 2: return AppAgentStatus.Idle;+ case 3: return AppAgentStatus.Failed;+ case 4: return AppAgentStatus.Crashed;+ case 5: return AppAgentStatus.Unknown;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case AppWizardMode.Create: return ordinalConverter.write(1, into);- case AppWizardMode.Address: return ordinalConverter.write(2, into);+ case AppAgentStatus.Running: return ordinalConverter.write(1, into);+ case AppAgentStatus.Idle: return ordinalConverter.write(2, into);+ case AppAgentStatus.Failed: return ordinalConverter.write(3, into);+ case AppAgentStatus.Crashed: return ordinalConverter.write(4, into);+ case AppAgentStatus.Unknown: return ordinalConverter.write(5, into);}}allocationSize(value: TypeName): number {@@ -33717,1307 +33216,1004 @@ const FfiConverterTypeAppWizardMode = (() => {return new FFIConverter();})();-export type AppWizardState = {- /**- * Create or address.- */- mode: AppWizardMode,- /**- * 0..=3.- */- step: number,- /**- * Where it runs.- */- placement: AppLocation,- /**- * The person chose a placement (the default no longer follows Settings).- */- picked: boolean,- /**- * The preset the Space is based on (its OS, kind and engines). With a- * custom ref typed, the Space runs that ref the same way.- */- imageRef: string,- /**- * The image field as typed: a preset's ref or any other reference.- */- imageText: string,- /**- * The suggestion list is open.- */- suggestOpen: boolean,- /**- * The list filters by the text (typing); opening it shows every preset.- */- suggestFilter: boolean,- /**- * The highlighted row (keyboard), over the visible rows in order.- */- suggestIndex?: number,- /**- * vCPUs as chosen (the view keeps them within where it runs).- */- cpus: number,- /**- * Memory GB as chosen (the view keeps it within where it runs).- */- memoryGb: number,- /**- * Disk GB as chosen (local VMs that can grow); `None`: the image's.- */- diskGb?: number,+export type AppSpaceAgentRun = {/**- * Name as typed.+ * Run id.*/- name: string,+ runId: string,/**- * Open the desktop when ready.+ * Harness id.*/- openWhenReady: boolean,+ agent: string,/**- * Advanced shown.+ * Status.*/- advanced: boolean,+ status: AppAgentStatus,/**- * Runtime as chosen (the effective one is in the view).+ * Why.*/- runtimeChoice: AppRuntime,+ reason: string,/**- * The connected cloud chosen for "Your cloud" (`aws`); `None`: the- * default one.+ * Prompt summary.*/- cloud?: string,+ summary: string,/**- * The machine chosen for `Location::Host` ([`SpaceHost::id`]).+ * Unix seconds.*/- host?: string,+ createdAt?: bigint,/**- * The GPU box is checked (it applies where the effective runtime- * offers a GPU).+ * Finer phase.*/- gpu: boolean,+ phase: string,/**- * The address form.+ * Turns.*/- address: AppAddressForm+ turn: number}/**- * Generated factory for {@link AppWizardState} record objects.+ * Generated factory for {@link AppSpaceAgentRun} record objects.*/-export const AppWizardState = (() => {+export const AppSpaceAgentRun = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppWizardState, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSpaceAgentRun, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppWizardState>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpaceAgentRun>,});})();-const FfiConverterTypeAppWizardState = (() => {- type TypeName = AppWizardState;+const FfiConverterTypeAppSpaceAgentRun = (() => {+ type TypeName = AppSpaceAgentRun;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- mode: FfiConverterTypeAppWizardMode.read(from),- step: FfiConverterUInt32.read(from),- placement: FfiConverterTypeAppLocation.read(from),- picked: FfiConverterBool.read(from),- imageRef: FfiConverterString.read(from),- imageText: FfiConverterString.read(from),- suggestOpen: FfiConverterBool.read(from),- suggestFilter: FfiConverterBool.read(from),- suggestIndex: FfiConverterOptionalUInt32.read(from),- cpus: FfiConverterUInt32.read(from),- memoryGb: FfiConverterUInt32.read(from),- diskGb: FfiConverterOptionalUInt32.read(from),- name: FfiConverterString.read(from),- openWhenReady: FfiConverterBool.read(from),- advanced: FfiConverterBool.read(from),- runtimeChoice: FfiConverterTypeAppRuntime.read(from),- cloud: FfiConverterOptionalString.read(from),- host: FfiConverterOptionalString.read(from),- gpu: FfiConverterBool.read(from),- address: FfiConverterTypeAppAddressForm.read(from)+ runId: FfiConverterString.read(from),+ agent: FfiConverterString.read(from),+ status: FfiConverterTypeAppAgentStatus.read(from),+ reason: FfiConverterString.read(from),+ summary: FfiConverterString.read(from),+ createdAt: FfiConverterOptionalInt64.read(from),+ phase: FfiConverterString.read(from),+ turn: FfiConverterUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppWizardMode.write(value.mode, into);- FfiConverterUInt32.write(value.step, into);- FfiConverterTypeAppLocation.write(value.placement, into);- FfiConverterBool.write(value.picked, into);- FfiConverterString.write(value.imageRef, into);- FfiConverterString.write(value.imageText, into);- FfiConverterBool.write(value.suggestOpen, into);- FfiConverterBool.write(value.suggestFilter, into);- FfiConverterOptionalUInt32.write(value.suggestIndex, into);- FfiConverterUInt32.write(value.cpus, into);- FfiConverterUInt32.write(value.memoryGb, into);- FfiConverterOptionalUInt32.write(value.diskGb, into);- FfiConverterString.write(value.name, into);- FfiConverterBool.write(value.openWhenReady, into);- FfiConverterBool.write(value.advanced, into);- FfiConverterTypeAppRuntime.write(value.runtimeChoice, into);- FfiConverterOptionalString.write(value.cloud, into);- FfiConverterOptionalString.write(value.host, into);- FfiConverterBool.write(value.gpu, into);- FfiConverterTypeAppAddressForm.write(value.address, into);+ FfiConverterString.write(value.runId, into);+ FfiConverterString.write(value.agent, into);+ FfiConverterTypeAppAgentStatus.write(value.status, into);+ FfiConverterString.write(value.reason, into);+ FfiConverterString.write(value.summary, into);+ FfiConverterOptionalInt64.write(value.createdAt, into);+ FfiConverterString.write(value.phase, into);+ FfiConverterUInt32.write(value.turn, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppWizardMode.allocationSize(value.mode) +- FfiConverterUInt32.allocationSize(value.step) +- FfiConverterTypeAppLocation.allocationSize(value.placement) +- FfiConverterBool.allocationSize(value.picked) +- FfiConverterString.allocationSize(value.imageRef) +- FfiConverterString.allocationSize(value.imageText) +- FfiConverterBool.allocationSize(value.suggestOpen) +- FfiConverterBool.allocationSize(value.suggestFilter) +- FfiConverterOptionalUInt32.allocationSize(value.suggestIndex) +- FfiConverterUInt32.allocationSize(value.cpus) +- FfiConverterUInt32.allocationSize(value.memoryGb) +- FfiConverterOptionalUInt32.allocationSize(value.diskGb) +- FfiConverterString.allocationSize(value.name) +- FfiConverterBool.allocationSize(value.openWhenReady) +- FfiConverterBool.allocationSize(value.advanced) +- FfiConverterTypeAppRuntime.allocationSize(value.runtimeChoice) +- FfiConverterOptionalString.allocationSize(value.cloud) +- FfiConverterOptionalString.allocationSize(value.host) +- FfiConverterBool.allocationSize(value.gpu) +- FfiConverterTypeAppAddressForm.allocationSize(value.address);+ return FfiConverterString.allocationSize(value.runId) ++ FfiConverterString.allocationSize(value.agent) ++ FfiConverterTypeAppAgentStatus.allocationSize(value.status) ++ FfiConverterString.allocationSize(value.reason) ++ FfiConverterString.allocationSize(value.summary) ++ FfiConverterOptionalInt64.allocationSize(value.createdAt) ++ FfiConverterString.allocationSize(value.phase) ++ FfiConverterUInt32.allocationSize(value.turn);}};return new FFIConverter();})();-export type AppWizardView = {+export type AppSpaceDetail = {/**- * Create or address.+ * Space id.*/- mode: AppWizardMode,+ id: string,/**- * 0..=3.+ * Title.*/- step: number,+ title: string,/**- * Step list.+ * Status, Image, System, Memory, Storage, Identifier (each when known).*/- steps: Array<AppStepView>,+ facts: Array<AppFact>,/**- * Step heading.+ * The host machine itself.*/- title: string,+ isHost: boolean,/**- * OS tiles.+ * The Stream / Agents / Teleport sections show.*/- osTiles: Array<AppTile>,+ showSections: boolean,/**- * The image field.+ * Streaming is possible (toolbar PiP and Stream).*/- imageField: AppImageFieldView,+ canStream: boolean,/**- * The image.+ * Placeholder over the preview until a frame arrives.*/- image: AppSandboxImage,+ previewText: string,/**- * The "Run on" menu: This Mac, your machines that provide Spaces,- * then your connected clouds (with the "Your cloud" experiment).+ * While it is being created: overall progress in thousandths (the+ * preview's ring).*/- placements: Array<AppPlacementOption>,+ progress?: number,/**- * The chosen entry's id ([`PlacementOption::id`]).+ * Under the bar while it downloads: "4.2 of 22.1 GB · 85 MB/s · about+ * 4 min".*/- placementId: string,+ progressText?: string,/**- * The connected cloud "Your cloud" creates in (`aws`).+ * "Remove" (added by address) or "Delete Space".*/- cloud?: string,+ deleteLabel: string,/**- * The machine of yours it creates on ([`SpaceHost::id`]).+ * Removing only forgets it.*/- host?: string,+ removeOnly: boolean,/**- * Why the chosen placement cannot be used.+ * Toolbar buttons, in order (none for this machine).*/- placementError?: string,+ actions: Array<AppDetailAction>,/**- * One line under "Run on" when This Mac cannot run the Space and no- * machine of yours is listed: how another Mac joins.+ * What Delete asks first.*/- placementHint?: string,+ confirm: AppDeleteConfirm,/**- * Switches This Mac to the built-in runtime the Space needs, when it- * is set to use its own and that is missing.+ * The sections under the facts, in order (Stream, Agents, Teleport).*/- runtimeSwitch?: AppRuntimeSwitch,+ sections: Array<string>,/**- * Advanced shown.+ * A cloud Space refused for want of credit: one line and "Add+ * credit" (the website billing page).*/- advanced: boolean,+ creditNotice?: AppCreditNotice,/**- * Kind tiles.+ * Why turning it off or on failed, shown inline under the preview.*/- kindTiles: Array<AppTile>,+ powerError?: string,/**- * Runtime menu.+ * Signed in, but this device is not enrolled: a machine reached+ * through the relay is listed with its Connect greyed out under this+ * line and its one action ([`detail_for`]).*/- runtimes: Array<AppMenuOption>,+ access?: AppMachineAccessNotice,/**- * Effective runtime.+ * One of your machines that does not share its desktop: the line+ * shown in place of its desktop, Stream, Agents and Teleport+ * ([`desktop_note`]).*/- runtime: AppRuntime,+ desktopNote?: string,/**- * The runtime menu has a choice.+ * With [`Self::desktop_note`], when the machine provides Spaces:+ * "New Space on <name>…", which opens New Space on it.*/- runtimeEnabled: boolean,+ newSpace?: AppNewSpaceOn+}++/**+ * Generated factory for {@link AppSpaceDetail} record objects.+ */+export const AppSpaceDetail = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppSpaceDetail, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpaceDetail>,+ });+})();++const FfiConverterTypeAppSpaceDetail = (() => {+ type TypeName = AppSpaceDetail;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ id: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ facts: FfiConverterSequenceTypeAppFact.read(from),+ isHost: FfiConverterBool.read(from),+ showSections: FfiConverterBool.read(from),+ canStream: FfiConverterBool.read(from),+ previewText: FfiConverterString.read(from),+ progress: FfiConverterOptionalUInt32.read(from),+ progressText: FfiConverterOptionalString.read(from),+ deleteLabel: FfiConverterString.read(from),+ removeOnly: FfiConverterBool.read(from),+ actions: FfiConverterSequenceTypeAppDetailAction.read(from),+ confirm: FfiConverterTypeAppDeleteConfirm.read(from),+ sections: FfiConverterSequenceString.read(from),+ creditNotice: FfiConverterOptionalTypeAppCreditNotice.read(from),+ powerError: FfiConverterOptionalString.read(from),+ access: FfiConverterOptionalTypeAppMachineAccessNotice.read(from),+ desktopNote: FfiConverterOptionalString.read(from),+ newSpace: FfiConverterOptionalTypeAppNewSpaceOn.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.title, into);+ FfiConverterSequenceTypeAppFact.write(value.facts, into);+ FfiConverterBool.write(value.isHost, into);+ FfiConverterBool.write(value.showSections, into);+ FfiConverterBool.write(value.canStream, into);+ FfiConverterString.write(value.previewText, into);+ FfiConverterOptionalUInt32.write(value.progress, into);+ FfiConverterOptionalString.write(value.progressText, into);+ FfiConverterString.write(value.deleteLabel, into);+ FfiConverterBool.write(value.removeOnly, into);+ FfiConverterSequenceTypeAppDetailAction.write(value.actions, into);+ FfiConverterTypeAppDeleteConfirm.write(value.confirm, into);+ FfiConverterSequenceString.write(value.sections, into);+ FfiConverterOptionalTypeAppCreditNotice.write(value.creditNotice, into);+ FfiConverterOptionalString.write(value.powerError, into);+ FfiConverterOptionalTypeAppMachineAccessNotice.write(value.access, into);+ FfiConverterOptionalString.write(value.desktopNote, into);+ FfiConverterOptionalTypeAppNewSpaceOn.write(value.newSpace, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterSequenceTypeAppFact.allocationSize(value.facts) ++ FfiConverterBool.allocationSize(value.isHost) ++ FfiConverterBool.allocationSize(value.showSections) ++ FfiConverterBool.allocationSize(value.canStream) ++ FfiConverterString.allocationSize(value.previewText) ++ FfiConverterOptionalUInt32.allocationSize(value.progress) ++ FfiConverterOptionalString.allocationSize(value.progressText) ++ FfiConverterString.allocationSize(value.deleteLabel) ++ FfiConverterBool.allocationSize(value.removeOnly) ++ FfiConverterSequenceTypeAppDetailAction.allocationSize(value.actions) ++ FfiConverterTypeAppDeleteConfirm.allocationSize(value.confirm) ++ FfiConverterSequenceString.allocationSize(value.sections) ++ FfiConverterOptionalTypeAppCreditNotice.allocationSize(value.creditNotice) ++ FfiConverterOptionalString.allocationSize(value.powerError) ++ FfiConverterOptionalTypeAppMachineAccessNotice.allocationSize(value.access) ++ FfiConverterOptionalString.allocationSize(value.desktopNote) ++ FfiConverterOptionalTypeAppNewSpaceOn.allocationSize(value.newSpace);++ }+ };+ return new FFIConverter();+})();++export type AppSpaceHost = {/**- * Cores.+ * What `on="host:<id>"` takes: the relay machine id, or the name a+ * direct host was added as.*/- cpus: number,+ id: string,/**- * Slider min.+ * Its name ("Mac mini").*/- minCpus: number,+ name: string,/**- * Slider max.+ * `relay` or `direct` (its Tailscale or LAN address).*/- maxCpus: number,- /**- * Memory slider min, GB.- */- minMemoryGb: number,- /**- * Memory slider max, GB.- */- maxMemoryGb: number,- /**- * "2 cores".- */- cpusText: string,- /**- * Memory GB.- */- memoryGb: number,- /**- * "4 GB".- */- memoryText: string,+ via: string,/**- * The disk slider shows (a local VM whose disk can grow).+ * It is online: it answered just now, or the relay sees it connected+ * (the Machines page says the same).*/- diskEditable: boolean,+ online: boolean,/**- * Disk GB (the slider's value).+ * Its operating system (`macos`, `linux`, `windows`), when it answered.*/- diskGb: number,+ os: string,/**- * Disk slider min, GB (the image's size).+ * Its limits, when it answered; a [`HOST_SHARING_STOPPED`] entry when+ * it is online and refused because its owner stopped sharing it.*/- minDiskGb: number,+ limits: Array<AppHostLimit>+}++/**+ * Generated factory for {@link AppSpaceHost} record objects.+ */+export const AppSpaceHost = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppSpaceHost, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpaceHost>,+ });+})();++const FfiConverterTypeAppSpaceHost = (() => {+ type TypeName = AppSpaceHost;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ id: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ via: FfiConverterString.read(from),+ online: FfiConverterBool.read(from),+ os: FfiConverterString.read(from),+ limits: FfiConverterSequenceTypeAppHostLimit.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.name, into);+ FfiConverterString.write(value.via, into);+ FfiConverterBool.write(value.online, into);+ FfiConverterString.write(value.os, into);+ FfiConverterSequenceTypeAppHostLimit.write(value.limits, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterString.allocationSize(value.via) ++ FfiConverterBool.allocationSize(value.online) ++ FfiConverterString.allocationSize(value.os) ++ FfiConverterSequenceTypeAppHostLimit.allocationSize(value.limits);++ }+ };+ return new FFIConverter();+})();++export type AppSpaceRow = {/**- * Disk slider max, GB.+ * Sandbox ref.*/- maxDiskGb: number,+ id: string,/**- * "150 GB".+ * Name spacesd reported.*/- diskText: string,+ name: string,/**- * One quiet line under the slider: a VM disk is sparse, so it uses- * the unpacked size at first, up to the chosen size; and a resize- * when the chosen size is not the image's.+ * Location word.*/- diskNote?: string,+ provider: string,/**- * "Reset" while the chosen size is not the image's.+ * spacesd version.*/- diskResetLabel?: string,+ spacesdVersion: string,/**- * The slider's tooltip: why it cannot go below the image's disk.+ * spacesd features.*/- diskHelp?: string,+ features: Array<string>,/**- * What it costs, in one line: `About $0.18/hour` (cloud, at this- * account's rates); `None` on the user's own hardware (this Mac, or a- * machine added by address) and when the cloud rates are unknown.+ * RFC 3339 time it was added.*/- price?: string,+ addedAt?: string,/**- * The Resources step's lines under the sliders: kind, architecture,- * disk (or download), available.+ * Operating system.*/- resourceFacts: Array<AppWizardFact>,+ os?: AppSpaceOs,/**- * One line when the Space does not fit where it is written (blocks- * Continue).+ * OS product or distribution spacesd reported ("Ubuntu").*/- resourcesError?: string,+ osName?: string,/**- * The GPU row (Resources), where the runtime offers a GPU.+ * The guest's full OS string ("Ubuntu 24.04.3 LTS"), when the Space+ * reported one.*/- gpu?: AppGpuRow,+ osPrettyName?: string,/**- * Name as typed.+ * The image it runs ("ghcr.io/trycua/linux:24.04"), when known.*/- name: string,+ image?: string,/**- * The name breaks the DNS-label rule.+ * The digest of the variant that runs, when known.*/- nameInvalid: boolean,+ imageDigest?: string,/**- * Why, in one line.+ * Container or virtual machine, when known.*/- nameError?: string,+ kind?: AppSpaceKind,/**- * Open when ready.+ * The guest's CPU architecture, when known (any spelling: `arm64`,+ * `aarch64`, `amd64`, `x86_64`).*/- openWhenReady: boolean,+ arch?: string,/**- * "No desktop stream for this image yet."+ * Answered the last connect.*/- streamNote?: string,+ reachable: boolean,/**- * The Summary list.+ * Why not.*/- summary: Array<AppFact>,+ error?: string,/**- * Continue is enabled.+ * For a Space one of your machines provides: that machine's relay id.*/- canContinue: boolean,+ host?: string,/**- * Back shows.+ * That machine's name, when known.*/- showBack: boolean,+ hostName?: string,/**- * "Continue" or "Create Space".+ * How it turns off and on (`suspend`, `stop`); absent when it cannot.*/- primaryLabel: string,+ power?: string,/**- * What Create sends.+ * `running`, `suspended` or `stopped` as the SDK recorded it; absent+ * when unknown.*/- plan: AppCreatePlan,+ powerState?: string,/**- * The address form.+ * For a Space in your cloud: the provider word (`aws`, `gcp`,+ * `modal`).*/- address: AppAddressView,+ cloud?: string,/**- * The fields of this step (or the address form), in order.+ * Its account and region in words ("AWS · us-west-2").*/- fields: Array<AppWizardField>,+ cloudPlace?: string,/**- * Fixed words.+ * Where Delete permanently can delete it: `here`, `host:<machine>`+ * (that machine created it) or `elsewhere` (another device did).*/- labels: AppWizardLabels+ cloudDelete?: string}/**- * Generated factory for {@link AppWizardView} record objects.+ * Generated factory for {@link AppSpaceRow} record objects.*/-export const AppWizardView = (() => {+export const AppSpaceRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<AppWizardView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSpaceRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<AppWizardView>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpaceRow>,});})();-const FfiConverterTypeAppWizardView = (() => {- type TypeName = AppWizardView;+const FfiConverterTypeAppSpaceRow = (() => {+ type TypeName = AppSpaceRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- mode: FfiConverterTypeAppWizardMode.read(from),- step: FfiConverterUInt32.read(from),- steps: FfiConverterSequenceTypeAppStepView.read(from),- title: FfiConverterString.read(from),- osTiles: FfiConverterSequenceTypeAppTile.read(from),- imageField: FfiConverterTypeAppImageFieldView.read(from),- image: FfiConverterTypeAppSandboxImage.read(from),- placements: FfiConverterSequenceTypeAppPlacementOption.read(from),- placementId: FfiConverterString.read(from),- cloud: FfiConverterOptionalString.read(from),- host: FfiConverterOptionalString.read(from),- placementError: FfiConverterOptionalString.read(from),- placementHint: FfiConverterOptionalString.read(from),- runtimeSwitch: FfiConverterOptionalTypeAppRuntimeSwitch.read(from),- advanced: FfiConverterBool.read(from),- kindTiles: FfiConverterSequenceTypeAppTile.read(from),- runtimes: FfiConverterSequenceTypeAppMenuOption.read(from),- runtime: FfiConverterTypeAppRuntime.read(from),- runtimeEnabled: FfiConverterBool.read(from),- cpus: FfiConverterUInt32.read(from),- minCpus: FfiConverterUInt32.read(from),- maxCpus: FfiConverterUInt32.read(from),- minMemoryGb: FfiConverterUInt32.read(from),- maxMemoryGb: FfiConverterUInt32.read(from),- cpusText: FfiConverterString.read(from),- memoryGb: FfiConverterUInt32.read(from),- memoryText: FfiConverterString.read(from),- diskEditable: FfiConverterBool.read(from),- diskGb: FfiConverterUInt32.read(from),- minDiskGb: FfiConverterUInt32.read(from),- maxDiskGb: FfiConverterUInt32.read(from),- diskText: FfiConverterString.read(from),- diskNote: FfiConverterOptionalString.read(from),- diskResetLabel: FfiConverterOptionalString.read(from),- diskHelp: FfiConverterOptionalString.read(from),- price: FfiConverterOptionalString.read(from),- resourceFacts: FfiConverterSequenceTypeAppWizardFact.read(from),- resourcesError: FfiConverterOptionalString.read(from),- gpu: FfiConverterOptionalTypeAppGpuRow.read(from),+ id: FfiConverterString.read(from),name: FfiConverterString.read(from),- nameInvalid: FfiConverterBool.read(from),- nameError: FfiConverterOptionalString.read(from),- openWhenReady: FfiConverterBool.read(from),- streamNote: FfiConverterOptionalString.read(from),- summary: FfiConverterSequenceTypeAppFact.read(from),- canContinue: FfiConverterBool.read(from),- showBack: FfiConverterBool.read(from),- primaryLabel: FfiConverterString.read(from),- plan: FfiConverterTypeAppCreatePlan.read(from),- address: FfiConverterTypeAppAddressView.read(from),- fields: FfiConverterSequenceTypeAppWizardField.read(from),- labels: FfiConverterTypeAppWizardLabels.read(from)+ provider: FfiConverterString.read(from),+ spacesdVersion: FfiConverterString.read(from),+ features: FfiConverterSequenceString.read(from),+ addedAt: FfiConverterOptionalString.read(from),+ os: FfiConverterOptionalTypeAppSpaceOs.read(from),+ osName: FfiConverterOptionalString.read(from),+ osPrettyName: FfiConverterOptionalString.read(from),+ image: FfiConverterOptionalString.read(from),+ imageDigest: FfiConverterOptionalString.read(from),+ kind: FfiConverterOptionalTypeAppSpaceKind.read(from),+ arch: FfiConverterOptionalString.read(from),+ reachable: FfiConverterBool.read(from),+ error: FfiConverterOptionalString.read(from),+ host: FfiConverterOptionalString.read(from),+ hostName: FfiConverterOptionalString.read(from),+ power: FfiConverterOptionalString.read(from),+ powerState: FfiConverterOptionalString.read(from),+ cloud: FfiConverterOptionalString.read(from),+ cloudPlace: FfiConverterOptionalString.read(from),+ cloudDelete: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeAppWizardMode.write(value.mode, into);- FfiConverterUInt32.write(value.step, into);- FfiConverterSequenceTypeAppStepView.write(value.steps, into);- FfiConverterString.write(value.title, into);- FfiConverterSequenceTypeAppTile.write(value.osTiles, into);- FfiConverterTypeAppImageFieldView.write(value.imageField, into);- FfiConverterTypeAppSandboxImage.write(value.image, into);- FfiConverterSequenceTypeAppPlacementOption.write(value.placements, into);- FfiConverterString.write(value.placementId, into);- FfiConverterOptionalString.write(value.cloud, into);- FfiConverterOptionalString.write(value.host, into);- FfiConverterOptionalString.write(value.placementError, into);- FfiConverterOptionalString.write(value.placementHint, into);- FfiConverterOptionalTypeAppRuntimeSwitch.write(value.runtimeSwitch, into);- FfiConverterBool.write(value.advanced, into);- FfiConverterSequenceTypeAppTile.write(value.kindTiles, into);- FfiConverterSequenceTypeAppMenuOption.write(value.runtimes, into);- FfiConverterTypeAppRuntime.write(value.runtime, into);- FfiConverterBool.write(value.runtimeEnabled, into);- FfiConverterUInt32.write(value.cpus, into);- FfiConverterUInt32.write(value.minCpus, into);- FfiConverterUInt32.write(value.maxCpus, into);- FfiConverterUInt32.write(value.minMemoryGb, into);- FfiConverterUInt32.write(value.maxMemoryGb, into);- FfiConverterString.write(value.cpusText, into);- FfiConverterUInt32.write(value.memoryGb, into);- FfiConverterString.write(value.memoryText, into);- FfiConverterBool.write(value.diskEditable, into);- FfiConverterUInt32.write(value.diskGb, into);- FfiConverterUInt32.write(value.minDiskGb, into);- FfiConverterUInt32.write(value.maxDiskGb, into);- FfiConverterString.write(value.diskText, into);- FfiConverterOptionalString.write(value.diskNote, into);- FfiConverterOptionalString.write(value.diskResetLabel, into);- FfiConverterOptionalString.write(value.diskHelp, into);- FfiConverterOptionalString.write(value.price, into);- FfiConverterSequenceTypeAppWizardFact.write(value.resourceFacts, into);- FfiConverterOptionalString.write(value.resourcesError, into);- FfiConverterOptionalTypeAppGpuRow.write(value.gpu, into);+ FfiConverterString.write(value.id, into);FfiConverterString.write(value.name, into);- FfiConverterBool.write(value.nameInvalid, into);- FfiConverterOptionalString.write(value.nameError, into);- FfiConverterBool.write(value.openWhenReady, into);- FfiConverterOptionalString.write(value.streamNote, into);- FfiConverterSequenceTypeAppFact.write(value.summary, into);- FfiConverterBool.write(value.canContinue, into);- FfiConverterBool.write(value.showBack, into);- FfiConverterString.write(value.primaryLabel, into);- FfiConverterTypeAppCreatePlan.write(value.plan, into);- FfiConverterTypeAppAddressView.write(value.address, into);- FfiConverterSequenceTypeAppWizardField.write(value.fields, into);- FfiConverterTypeAppWizardLabels.write(value.labels, into);+ FfiConverterString.write(value.provider, into);+ FfiConverterString.write(value.spacesdVersion, into);+ FfiConverterSequenceString.write(value.features, into);+ FfiConverterOptionalString.write(value.addedAt, into);+ FfiConverterOptionalTypeAppSpaceOs.write(value.os, into);+ FfiConverterOptionalString.write(value.osName, into);+ FfiConverterOptionalString.write(value.osPrettyName, into);+ FfiConverterOptionalString.write(value.image, into);+ FfiConverterOptionalString.write(value.imageDigest, into);+ FfiConverterOptionalTypeAppSpaceKind.write(value.kind, into);+ FfiConverterOptionalString.write(value.arch, into);+ FfiConverterBool.write(value.reachable, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterOptionalString.write(value.host, into);+ FfiConverterOptionalString.write(value.hostName, into);+ FfiConverterOptionalString.write(value.power, into);+ FfiConverterOptionalString.write(value.powerState, into);+ FfiConverterOptionalString.write(value.cloud, into);+ FfiConverterOptionalString.write(value.cloudPlace, into);+ FfiConverterOptionalString.write(value.cloudDelete, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeAppWizardMode.allocationSize(value.mode) +- FfiConverterUInt32.allocationSize(value.step) +- FfiConverterSequenceTypeAppStepView.allocationSize(value.steps) +- FfiConverterString.allocationSize(value.title) +- FfiConverterSequenceTypeAppTile.allocationSize(value.osTiles) +- FfiConverterTypeAppImageFieldView.allocationSize(value.imageField) +- FfiConverterTypeAppSandboxImage.allocationSize(value.image) +- FfiConverterSequenceTypeAppPlacementOption.allocationSize(value.placements) +- FfiConverterString.allocationSize(value.placementId) +- FfiConverterOptionalString.allocationSize(value.cloud) +- FfiConverterOptionalString.allocationSize(value.host) +- FfiConverterOptionalString.allocationSize(value.placementError) +- FfiConverterOptionalString.allocationSize(value.placementHint) +- FfiConverterOptionalTypeAppRuntimeSwitch.allocationSize(value.runtimeSwitch) +- FfiConverterBool.allocationSize(value.advanced) +- FfiConverterSequenceTypeAppTile.allocationSize(value.kindTiles) +- FfiConverterSequenceTypeAppMenuOption.allocationSize(value.runtimes) +- FfiConverterTypeAppRuntime.allocationSize(value.runtime) +- FfiConverterBool.allocationSize(value.runtimeEnabled) +- FfiConverterUInt32.allocationSize(value.cpus) +- FfiConverterUInt32.allocationSize(value.minCpus) +- FfiConverterUInt32.allocationSize(value.maxCpus) +- FfiConverterUInt32.allocationSize(value.minMemoryGb) +- FfiConverterUInt32.allocationSize(value.maxMemoryGb) +- FfiConverterString.allocationSize(value.cpusText) +- FfiConverterUInt32.allocationSize(value.memoryGb) +- FfiConverterString.allocationSize(value.memoryText) +- FfiConverterBool.allocationSize(value.diskEditable) +- FfiConverterUInt32.allocationSize(value.diskGb) +- FfiConverterUInt32.allocationSize(value.minDiskGb) +- FfiConverterUInt32.allocationSize(value.maxDiskGb) +- FfiConverterString.allocationSize(value.diskText) +- FfiConverterOptionalString.allocationSize(value.diskNote) +- FfiConverterOptionalString.allocationSize(value.diskResetLabel) +- FfiConverterOptionalString.allocationSize(value.diskHelp) +- FfiConverterOptionalString.allocationSize(value.price) +- FfiConverterSequenceTypeAppWizardFact.allocationSize(value.resourceFacts) +- FfiConverterOptionalString.allocationSize(value.resourcesError) +- FfiConverterOptionalTypeAppGpuRow.allocationSize(value.gpu) ++ return FfiConverterString.allocationSize(value.id) +FfiConverterString.allocationSize(value.name) +- FfiConverterBool.allocationSize(value.nameInvalid) +- FfiConverterOptionalString.allocationSize(value.nameError) +- FfiConverterBool.allocationSize(value.openWhenReady) +- FfiConverterOptionalString.allocationSize(value.streamNote) +- FfiConverterSequenceTypeAppFact.allocationSize(value.summary) +- FfiConverterBool.allocationSize(value.canContinue) +- FfiConverterBool.allocationSize(value.showBack) +- FfiConverterString.allocationSize(value.primaryLabel) +- FfiConverterTypeAppCreatePlan.allocationSize(value.plan) +- FfiConverterTypeAppAddressView.allocationSize(value.address) +- FfiConverterSequenceTypeAppWizardField.allocationSize(value.fields) +- FfiConverterTypeAppWizardLabels.allocationSize(value.labels);+ FfiConverterString.allocationSize(value.provider) ++ FfiConverterString.allocationSize(value.spacesdVersion) ++ FfiConverterSequenceString.allocationSize(value.features) ++ FfiConverterOptionalString.allocationSize(value.addedAt) ++ FfiConverterOptionalTypeAppSpaceOs.allocationSize(value.os) ++ FfiConverterOptionalString.allocationSize(value.osName) ++ FfiConverterOptionalString.allocationSize(value.osPrettyName) ++ FfiConverterOptionalString.allocationSize(value.image) ++ FfiConverterOptionalString.allocationSize(value.imageDigest) ++ FfiConverterOptionalTypeAppSpaceKind.allocationSize(value.kind) ++ FfiConverterOptionalString.allocationSize(value.arch) ++ FfiConverterBool.allocationSize(value.reachable) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterOptionalString.allocationSize(value.host) ++ FfiConverterOptionalString.allocationSize(value.hostName) ++ FfiConverterOptionalString.allocationSize(value.power) ++ FfiConverterOptionalString.allocationSize(value.powerState) ++ FfiConverterOptionalString.allocationSize(value.cloud) ++ FfiConverterOptionalString.allocationSize(value.cloudPlace) ++ FfiConverterOptionalString.allocationSize(value.cloudDelete);}};return new FFIConverter();})();-/**- * One decoded video frame : packed top-down BGRA.- */-export type DecodedVideoFrame = {- /**- * Per-target frame sequence.- */- sequence: bigint,- /**- * Width in pixels.- */- width: number,- /**- * Height in pixels.- */- height: number,- /**- * Bytes per row (`width * 4`).- */- stride: number,- /**- * Pixel format; always `bgra`.- */- format: string,- /**- * Media-clock capture time (µs).- */- captureTimestampUs: bigint,- /**- * Decoder configuration generation of the source frame.- */- codecEpoch: bigint,+export type AppSpaceUsage = {/**- * Coordinate generation.+ * Memory in use, bytes.*/- geometryEpoch: bigint,+ memoryUsed: bigint,/**- * The source access unit was a keyframe.+ * Memory size, bytes.*/- keyframe: boolean,+ memoryTotal: bigint,/**- * Bytes of the source (encoded) access unit.+ * `memory_total` is the guest's limit.*/- encodedSize: bigint,+ memoryLimited: boolean,/**- * When the encoded frame reached the decoder (Unix µs, this host).+ * Storage in use, bytes.*/- receivedAtUs: bigint,+ diskUsed: bigint,/**- * Time spent decoding and converting it (µs).+ * Storage size, bytes.*/- decodeDurationUs: bigint,+ diskTotal: bigint,/**- * Pixels.+ * `disk_total` is the guest's own disk.*/- data: ArrayBuffer+ diskLimited: boolean}/**- * Generated factory for {@link DecodedVideoFrame} record objects.+ * Generated factory for {@link AppSpaceUsage} record objects.*/-export const DecodedVideoFrame = (() => {+export const AppSpaceUsage = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<DecodedVideoFrame, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppSpaceUsage, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<DecodedVideoFrame>,+ defaults: () => Object.freeze(defaults()) as Partial<AppSpaceUsage>,});})();-const FfiConverterTypeDecodedVideoFrame = (() => {- type TypeName = DecodedVideoFrame;+const FfiConverterTypeAppSpaceUsage = (() => {+ type TypeName = AppSpaceUsage;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- sequence: FfiConverterUInt64.read(from),- width: FfiConverterUInt32.read(from),- height: FfiConverterUInt32.read(from),- stride: FfiConverterUInt32.read(from),- format: FfiConverterString.read(from),- captureTimestampUs: FfiConverterUInt64.read(from),- codecEpoch: FfiConverterUInt64.read(from),- geometryEpoch: FfiConverterUInt64.read(from),- keyframe: FfiConverterBool.read(from),- encodedSize: FfiConverterUInt64.read(from),- receivedAtUs: FfiConverterUInt64.read(from),- decodeDurationUs: FfiConverterUInt64.read(from),- data: FfiConverterArrayBuffer.read(from)+ memoryUsed: FfiConverterUInt64.read(from),+ memoryTotal: FfiConverterUInt64.read(from),+ memoryLimited: FfiConverterBool.read(from),+ diskUsed: FfiConverterUInt64.read(from),+ diskTotal: FfiConverterUInt64.read(from),+ diskLimited: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt64.write(value.sequence, into);- FfiConverterUInt32.write(value.width, into);- FfiConverterUInt32.write(value.height, into);- FfiConverterUInt32.write(value.stride, into);- FfiConverterString.write(value.format, into);- FfiConverterUInt64.write(value.captureTimestampUs, into);- FfiConverterUInt64.write(value.codecEpoch, into);- FfiConverterUInt64.write(value.geometryEpoch, into);- FfiConverterBool.write(value.keyframe, into);- FfiConverterUInt64.write(value.encodedSize, into);- FfiConverterUInt64.write(value.receivedAtUs, into);- FfiConverterUInt64.write(value.decodeDurationUs, into);- FfiConverterArrayBuffer.write(value.data, into);+ FfiConverterUInt64.write(value.memoryUsed, into);+ FfiConverterUInt64.write(value.memoryTotal, into);+ FfiConverterBool.write(value.memoryLimited, into);+ FfiConverterUInt64.write(value.diskUsed, into);+ FfiConverterUInt64.write(value.diskTotal, into);+ FfiConverterBool.write(value.diskLimited, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt64.allocationSize(value.sequence) +- FfiConverterUInt32.allocationSize(value.width) +- FfiConverterUInt32.allocationSize(value.height) +- FfiConverterUInt32.allocationSize(value.stride) +- FfiConverterString.allocationSize(value.format) +- FfiConverterUInt64.allocationSize(value.captureTimestampUs) +- FfiConverterUInt64.allocationSize(value.codecEpoch) +- FfiConverterUInt64.allocationSize(value.geometryEpoch) +- FfiConverterBool.allocationSize(value.keyframe) +- FfiConverterUInt64.allocationSize(value.encodedSize) +- FfiConverterUInt64.allocationSize(value.receivedAtUs) +- FfiConverterUInt64.allocationSize(value.decodeDurationUs) +- FfiConverterArrayBuffer.allocationSize(value.data);+ return FfiConverterUInt64.allocationSize(value.memoryUsed) ++ FfiConverterUInt64.allocationSize(value.memoryTotal) ++ FfiConverterBool.allocationSize(value.memoryLimited) ++ FfiConverterUInt64.allocationSize(value.diskUsed) ++ FfiConverterUInt64.allocationSize(value.diskTotal) ++ FfiConverterBool.allocationSize(value.diskLimited);}};return new FFIConverter();})();-export type KvStatus = {- /**- * Version.- */- version: string,- /**- * A vault exists.- */- initialized: boolean,- /**- * Unlocked.- */- unlocked: boolean,- /**- * The kill switch is on.- */- disabled: boolean,- /**- * This app is first party.- */- callerFirstParty: boolean,- /**- * How the broker sees this app.- */- callerDisplay: string,- /**- * Items.- */- items: number,- /**- * Pending requests.- */- pending: number,- /**- * `auto` or `presence`.- */- unlockPolicy?: string,- /**- * Delivered copies wipe themselves after their TTL (off by default;- * none: not told, a broker before the setting or a third party).- */- autoWipe?: boolean,- /**- * The daemon can create the OS key store protector (setup offers Touch- * ID); false for a development daemon, which is passphrase-only.- */- osProtectorAvailable: boolean,+export enum AppStepState {/**- * A passphrase can always be chosen.+ * Done.*/- passphraseAvailable: boolean,+ Done = "done",/**- * Protector kinds that can unlock this vault now (`macos-keychain`,- * `windows-credential`, `linux-secret-service`, `passphrase`, `recovery`).+ * Current.*/- unlockProtectors: Array<string>,+ Current = "current",/**- * The browse window is open until this time, Unix ms: item names are- * visible until then.+ * Not reached.*/- browseUntilMs?: bigint,+ Todo = "todo"+}++const FfiConverterTypeAppStepState = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppStepState;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppStepState.Done;+ case 2: return AppStepState.Current;+ case 3: return AppStepState.Todo;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppStepState.Done: return ordinalConverter.write(1, into);+ case AppStepState.Current: return ordinalConverter.write(2, into);+ case AppStepState.Todo: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppStepView = {/**- * "Never ask again" on the unlock prompt is on.+ * Title.*/- skipUnlockPrompt?: boolean,+ label: string,/**- * An earlier preview's vault was found and set aside.+ * State.*/- resetNotice?: string+ state: AppStepState}/**- * Generated factory for {@link KvStatus} record objects.+ * Generated factory for {@link AppStepView} record objects.*/-export const KvStatus = (() => {+export const AppStepView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvStatus, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStepView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvStatus>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStepView>,});})();-const FfiConverterTypeKvStatus = (() => {- type TypeName = KvStatus;+const FfiConverterTypeAppStepView = (() => {+ type TypeName = AppStepView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- version: FfiConverterString.read(from),- initialized: FfiConverterBool.read(from),- unlocked: FfiConverterBool.read(from),- disabled: FfiConverterBool.read(from),- callerFirstParty: FfiConverterBool.read(from),- callerDisplay: FfiConverterString.read(from),- items: FfiConverterUInt32.read(from),- pending: FfiConverterUInt32.read(from),- unlockPolicy: FfiConverterOptionalString.read(from),- autoWipe: FfiConverterOptionalBoolean.read(from),- osProtectorAvailable: FfiConverterBool.read(from),- passphraseAvailable: FfiConverterBool.read(from),- unlockProtectors: FfiConverterSequenceString.read(from),- browseUntilMs: FfiConverterOptionalUInt64.read(from),- skipUnlockPrompt: FfiConverterOptionalBoolean.read(from),- resetNotice: FfiConverterOptionalString.read(from)+ label: FfiConverterString.read(from),+ state: FfiConverterTypeAppStepState.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.version, into);- FfiConverterBool.write(value.initialized, into);- FfiConverterBool.write(value.unlocked, into);- FfiConverterBool.write(value.disabled, into);- FfiConverterBool.write(value.callerFirstParty, into);- FfiConverterString.write(value.callerDisplay, into);- FfiConverterUInt32.write(value.items, into);- FfiConverterUInt32.write(value.pending, into);- FfiConverterOptionalString.write(value.unlockPolicy, into);- FfiConverterOptionalBoolean.write(value.autoWipe, into);- FfiConverterBool.write(value.osProtectorAvailable, into);- FfiConverterBool.write(value.passphraseAvailable, into);- FfiConverterSequenceString.write(value.unlockProtectors, into);- FfiConverterOptionalUInt64.write(value.browseUntilMs, into);- FfiConverterOptionalBoolean.write(value.skipUnlockPrompt, into);- FfiConverterOptionalString.write(value.resetNotice, into);+ FfiConverterString.write(value.label, into);+ FfiConverterTypeAppStepState.write(value.state, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.version) +- FfiConverterBool.allocationSize(value.initialized) +- FfiConverterBool.allocationSize(value.unlocked) +- FfiConverterBool.allocationSize(value.disabled) +- FfiConverterBool.allocationSize(value.callerFirstParty) +- FfiConverterString.allocationSize(value.callerDisplay) +- FfiConverterUInt32.allocationSize(value.items) +- FfiConverterUInt32.allocationSize(value.pending) +- FfiConverterOptionalString.allocationSize(value.unlockPolicy) +- FfiConverterOptionalBoolean.allocationSize(value.autoWipe) +- FfiConverterBool.allocationSize(value.osProtectorAvailable) +- FfiConverterBool.allocationSize(value.passphraseAvailable) +- FfiConverterSequenceString.allocationSize(value.unlockProtectors) +- FfiConverterOptionalUInt64.allocationSize(value.browseUntilMs) +- FfiConverterOptionalBoolean.allocationSize(value.skipUnlockPrompt) +- FfiConverterOptionalString.allocationSize(value.resetNotice);+ return FfiConverterString.allocationSize(value.label) ++ FfiConverterTypeAppStepState.allocationSize(value.state);}};return new FFIConverter();})();-export type KvItemPolicy = {+export type AppStorageInput = {/**- * Allowed targets (empty: any).+ * This machine's system (the words: "This Mac", "Show in Finder").*/- allowedTargets: Array<string>,+ os: AppSpaceOs,/**- * Delivery lifetime.+ * The home folder, to show paths as `~/...`.*/- ttlSecs: bigint,+ home?: string,/**- * Unattended rules may use it.+ * None until read (or when the daemon cannot answer).*/- unattended: boolean+ storage?: AppDriveStorageInput,+ mount?: AppDriveMountInput,+ cache?: AppDriveCacheInput}/**- * Generated factory for {@link KvItemPolicy} record objects.+ * Generated factory for {@link AppStorageInput} record objects.*/-export const KvItemPolicy = (() => {+export const AppStorageInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvItemPolicy, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStorageInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvItemPolicy>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStorageInput>,});})();-const FfiConverterTypeKvItemPolicy = (() => {- type TypeName = KvItemPolicy;+const FfiConverterTypeAppStorageInput = (() => {+ type TypeName = AppStorageInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- allowedTargets: FfiConverterSequenceString.read(from),- ttlSecs: FfiConverterUInt64.read(from),- unattended: FfiConverterBool.read(from)+ os: FfiConverterTypeAppSpaceOs.read(from),+ home: FfiConverterOptionalString.read(from),+ storage: FfiConverterOptionalTypeAppDriveStorageInput.read(from),+ mount: FfiConverterOptionalTypeAppDriveMountInput.read(from),+ cache: FfiConverterOptionalTypeAppDriveCacheInput.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceString.write(value.allowedTargets, into);- FfiConverterUInt64.write(value.ttlSecs, into);- FfiConverterBool.write(value.unattended, into);+ FfiConverterTypeAppSpaceOs.write(value.os, into);+ FfiConverterOptionalString.write(value.home, into);+ FfiConverterOptionalTypeAppDriveStorageInput.write(value.storage, into);+ FfiConverterOptionalTypeAppDriveMountInput.write(value.mount, into);+ FfiConverterOptionalTypeAppDriveCacheInput.write(value.cache, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceString.allocationSize(value.allowedTargets) +- FfiConverterUInt64.allocationSize(value.ttlSecs) +- FfiConverterBool.allocationSize(value.unattended);+ return FfiConverterTypeAppSpaceOs.allocationSize(value.os) ++ FfiConverterOptionalString.allocationSize(value.home) ++ FfiConverterOptionalTypeAppDriveStorageInput.allocationSize(value.storage) ++ FfiConverterOptionalTypeAppDriveMountInput.allocationSize(value.mount) ++ FfiConverterOptionalTypeAppDriveCacheInput.allocationSize(value.cache);}};return new FFIConverter();})();-export type KvItem = {- /**- * Id.- */- id: string,- /**- * `cookie`, `local_storage`, `password` or `file`.- */- kind: string,- /**- * The source app (`chrome`, `slack`).- */- providerId: string,- /**- * The app's name.- */- appDisplay: string,- /**- * A cookie's host, a storage value's or password's origin; none for a- * file or when the names are hidden.- */- domain?: string,- /**- * A cookie name, storage key, username or file path; empty when the- * names are hidden.- */- key: string,- /**- * A cookie's path.- */- path?: string,- /**- * Profile.- */- source: string,- /**- * A cookie without an expiry.- */- session: boolean,- /**- * A cookie's expiry, Unix ms.- */- expiresMs?: bigint,- /**- * Bytes.- */- bytes: bigint,- /**- * The blob a big file's bytes live in.- */- blob?: string,- /**- * Identity providers always ask: they cannot be unlocked.- */- identityProvider: boolean,- /**- * Policy: `unattended` is the unlock.- */- policy: KvItemPolicy,- /**- * Created.- */- createdMs: bigint,- /**- * Last saved.- */- updatedMs: bigint,+export type AppStreamDisplay = {/**- * Revision.+ * Width, px.*/- rev: bigint,+ widthPx: number,/**- * Digest.+ * Height, px.*/- recordDigest: string+ heightPx: number}/**- * Generated factory for {@link KvItem} record objects.+ * Generated factory for {@link AppStreamDisplay} record objects.*/-export const KvItem = (() => {+export const AppStreamDisplay = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvItem, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStreamDisplay, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvItem>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStreamDisplay>,});})();-const FfiConverterTypeKvItem = (() => {- type TypeName = KvItem;+const FfiConverterTypeAppStreamDisplay = (() => {+ type TypeName = AppStreamDisplay;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- kind: FfiConverterString.read(from),- providerId: FfiConverterString.read(from),- appDisplay: FfiConverterString.read(from),- domain: FfiConverterOptionalString.read(from),- key: FfiConverterString.read(from),- path: FfiConverterOptionalString.read(from),- source: FfiConverterString.read(from),- session: FfiConverterBool.read(from),- expiresMs: FfiConverterOptionalInt64.read(from),- bytes: FfiConverterUInt64.read(from),- blob: FfiConverterOptionalString.read(from),- identityProvider: FfiConverterBool.read(from),- policy: FfiConverterTypeKvItemPolicy.read(from),- createdMs: FfiConverterUInt64.read(from),- updatedMs: FfiConverterUInt64.read(from),- rev: FfiConverterUInt64.read(from),- recordDigest: FfiConverterString.read(from)+ widthPx: FfiConverterUInt32.read(from),+ heightPx: FfiConverterUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.kind, into);- FfiConverterString.write(value.providerId, into);- FfiConverterString.write(value.appDisplay, into);- FfiConverterOptionalString.write(value.domain, into);- FfiConverterString.write(value.key, into);- FfiConverterOptionalString.write(value.path, into);- FfiConverterString.write(value.source, into);- FfiConverterBool.write(value.session, into);- FfiConverterOptionalInt64.write(value.expiresMs, into);- FfiConverterUInt64.write(value.bytes, into);- FfiConverterOptionalString.write(value.blob, into);- FfiConverterBool.write(value.identityProvider, into);- FfiConverterTypeKvItemPolicy.write(value.policy, into);- FfiConverterUInt64.write(value.createdMs, into);- FfiConverterUInt64.write(value.updatedMs, into);- FfiConverterUInt64.write(value.rev, into);- FfiConverterString.write(value.recordDigest, into);+ FfiConverterUInt32.write(value.widthPx, into);+ FfiConverterUInt32.write(value.heightPx, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.providerId) +- FfiConverterString.allocationSize(value.appDisplay) +- FfiConverterOptionalString.allocationSize(value.domain) +- FfiConverterString.allocationSize(value.key) +- FfiConverterOptionalString.allocationSize(value.path) +- FfiConverterString.allocationSize(value.source) +- FfiConverterBool.allocationSize(value.session) +- FfiConverterOptionalInt64.allocationSize(value.expiresMs) +- FfiConverterUInt64.allocationSize(value.bytes) +- FfiConverterOptionalString.allocationSize(value.blob) +- FfiConverterBool.allocationSize(value.identityProvider) +- FfiConverterTypeKvItemPolicy.allocationSize(value.policy) +- FfiConverterUInt64.allocationSize(value.createdMs) +- FfiConverterUInt64.allocationSize(value.updatedMs) +- FfiConverterUInt64.allocationSize(value.rev) +- FfiConverterString.allocationSize(value.recordDigest);+ return FfiConverterUInt32.allocationSize(value.widthPx) ++ FfiConverterUInt32.allocationSize(value.heightPx);}};return new FFIConverter();})();+export enum AppStreamRowKind {+ /**+ * The whole desktop.+ */+ Desktop = "desktop",+ /**+ * One window.+ */+ Window = "window"+}-// Enum: KvSigning-export enum KvSigning_Tags {- Signed = "Signed",- AdHoc = "AdHoc",- Unsigned = "Unsigned",- Unknown = "Unknown"+const FfiConverterTypeAppStreamRowKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppStreamRowKind;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppStreamRowKind.Desktop;+ case 2: return AppStreamRowKind.Window;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppStreamRowKind.Desktop: return ordinalConverter.write(1, into);+ case AppStreamRowKind.Window: return ordinalConverter.write(2, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();+++// Enum: AppStreamRowIcon+export enum AppStreamRowIcon_Tags {+ Os = "Os",+ App = "App"}-export const KvSigning = (() => {+export const AppStreamRowIcon = (() => {- type Signed__interface = {- tag: KvSigning_Tags.Signed;+ type Os__interface = {+ tag: AppStreamRowIcon_Tags.Os;inner:-Readonly<{teamId: string; identifier: string; cdhash: string}>+Readonly<{id: string}>};/**- * Team-signed.+ * The Space's OS mark (`os-ubuntu`, `os-windows`, ...): the core's+ * artwork (`notch.osIconSvg`) or system symbol.*/- class Signed_ extends UniffiEnum implements Signed__interface {+ class Os_ extends UniffiEnum implements Os__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "KvSigning";- readonly tag = KvSigning_Tags.Signed;+ readonly [uniffiTypeNameSymbol] = "AppStreamRowIcon";+ readonly tag = AppStreamRowIcon_Tags.Os;readonly inner:-Readonly<{teamId: string; identifier: string; cdhash: string}>;+Readonly<{id: string}>;constructor(-inner: {teamId: string; identifier: string; cdhash: string }) {- super("KvSigning", "Signed");+inner: {id: string }) {+ super("AppStreamRowIcon", "Os");this.inner = Object.freeze(inner);}static new(-inner: {teamId: string; identifier: string; cdhash: string }): Signed_ {- return new Signed_(inner);+inner: {id: string }): Os_ {+ return new Os_(inner);}- static instanceOf(obj: any): obj is Signed_ {- return obj.tag === KvSigning_Tags.Signed;+ static instanceOf(obj: any): obj is Os_ {+ return obj.tag === AppStreamRowIcon_Tags.Os;}}- type AdHoc__interface = {- tag: KvSigning_Tags.AdHoc;+ type App__interface = {+ tag: AppStreamRowIcon_Tags.App;inner:-Readonly<{identifier: string; cdhash: string}>+Readonly<{appName: string; appId: string; pid: number}>};/**- * Ad hoc.+ * The app's icon from the SDK's `Space.app_icon` (these three+ * arguments); none when the Space has none.*/- class AdHoc_ extends UniffiEnum implements AdHoc__interface {+ class App_ extends UniffiEnum implements App__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "KvSigning";- readonly tag = KvSigning_Tags.AdHoc;+ readonly [uniffiTypeNameSymbol] = "AppStreamRowIcon";+ readonly tag = AppStreamRowIcon_Tags.App;readonly inner:-Readonly<{identifier: string; cdhash: string}>;+Readonly<{appName: string; appId: string; pid: number}>;constructor(-inner: {identifier: string; cdhash: string }) {- super("KvSigning", "AdHoc");+inner: {appName: string; appId: string; pid: number }) {+ super("AppStreamRowIcon", "App");this.inner = Object.freeze(inner);}static new(-inner: {identifier: string; cdhash: string }): AdHoc_ {- return new AdHoc_(inner);+inner: {appName: string; appId: string; pid: number }): App_ {+ return new App_(inner);}- static instanceOf(obj: any): obj is AdHoc_ {- return obj.tag === KvSigning_Tags.AdHoc;+ static instanceOf(obj: any): obj is App_ {+ return obj.tag === AppStreamRowIcon_Tags.App;}}- type Unsigned__interface = {- tag: KvSigning_Tags.Unsigned- };- /**- * Unsigned.- */- class Unsigned_ extends UniffiEnum implements Unsigned__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvSigning";- readonly tag = KvSigning_Tags.Unsigned;- constructor() {- super("KvSigning", "Unsigned");- }-- static new(): Unsigned_ {- return new Unsigned_();- }-- static instanceOf(obj: any): obj is Unsigned_ {- return obj.tag === KvSigning_Tags.Unsigned;- }-- }-- type Unknown__interface = {- tag: KvSigning_Tags.Unknown- };- /**- * Unknown platform.- */- class Unknown_ extends UniffiEnum implements Unknown__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvSigning";- readonly tag = KvSigning_Tags.Unknown;- constructor() {- super("KvSigning", "Unknown");- }-- static new(): Unknown_ {- return new Unknown_();- }-- static instanceOf(obj: any): obj is Unknown_ {- return obj.tag === KvSigning_Tags.Unknown;- }-- }-- function instanceOf(obj: any): obj is KvSigning {- return obj[uniffiTypeNameSymbol] === "KvSigning";+ function instanceOf(obj: any): obj is AppStreamRowIcon {+ return obj[uniffiTypeNameSymbol] === "AppStreamRowIcon";}return Object.freeze({instanceOf,- Signed: Signed_,- AdHoc: AdHoc_,- Unsigned: Unsigned_,- Unknown: Unknown_+ Os: Os_,+ App: App_});})();-export type KvSigning = InstanceType<- typeof KvSigning['Signed' | 'AdHoc' | 'Unsigned' | 'Unknown']+export type AppStreamRowIcon = InstanceType<+ typeof AppStreamRowIcon['Os' | 'App']>;-// FfiConverter for enum KvSigning-const FfiConverterTypeKvSigning = (() => {+// FfiConverter for enum AppStreamRowIcon+const FfiConverterTypeAppStreamRowIcon = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = KvSigning;+ type TypeName = AppStreamRowIcon;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return new KvSigning.Signed({teamId: FfiConverterString.read(from), identifier: FfiConverterString.read(from), cdhash: FfiConverterString.read(from) });- case 2: return new KvSigning.AdHoc({identifier: FfiConverterString.read(from), cdhash: FfiConverterString.read(from) });- case 3: return new KvSigning.Unsigned();- case 4: return new KvSigning.Unknown();+ case 1: return new AppStreamRowIcon.Os({id: FfiConverterString.read(from) });+ case 2: return new AppStreamRowIcon.App({appName: FfiConverterString.read(from), appId: FfiConverterString.read(from), pid: FfiConverterUInt32.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value.tag) {- case KvSigning_Tags.Signed: {+ case AppStreamRowIcon_Tags.Os: {ordinalConverter.write(1, into);const inner = value.inner;- FfiConverterString.write(inner.teamId, into);- FfiConverterString.write(inner.identifier, into);- FfiConverterString.write(inner.cdhash, into);+ FfiConverterString.write(inner.id, into);return;}- case KvSigning_Tags.AdHoc: {+ case AppStreamRowIcon_Tags.App: {ordinalConverter.write(2, into);const inner = value.inner;- FfiConverterString.write(inner.identifier, into);- FfiConverterString.write(inner.cdhash, into);- return;- }- case KvSigning_Tags.Unsigned: {- ordinalConverter.write(3, into);- return;- }- case KvSigning_Tags.Unknown: {- ordinalConverter.write(4, into);+ FfiConverterString.write(inner.appName, into);+ FfiConverterString.write(inner.appId, into);+ FfiConverterUInt32.write(inner.pid, into);return;}default:- // Throwing from here means that KvSigning_Tags hasn't matched an ordinal.+ // Throwing from here means that AppStreamRowIcon_Tags hasn't matched an ordinal.throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {switch (value.tag) {- case KvSigning_Tags.Signed: {+ case AppStreamRowIcon_Tags.Os: {const inner = value.inner;let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.teamId);- size += FfiConverterString.allocationSize(inner.identifier);- size += FfiConverterString.allocationSize(inner.cdhash);+ size += FfiConverterString.allocationSize(inner.id);return size;}- case KvSigning_Tags.AdHoc: {+ case AppStreamRowIcon_Tags.App: {const inner = value.inner;let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.identifier);- size += FfiConverterString.allocationSize(inner.cdhash);+ size += FfiConverterString.allocationSize(inner.appName);+ size += FfiConverterString.allocationSize(inner.appId);+ size += FfiConverterUInt32.allocationSize(inner.pid);return size;}- case KvSigning_Tags.Unsigned: {- return ordinalConverter.allocationSize(3);- }- case KvSigning_Tags.Unknown: {- return ordinalConverter.allocationSize(4);- }default: throw new UniffiInternalError.UnexpectedEnumCase();}}@@ -35025,4882 +34221,4741 @@ const FfiConverterTypeKvSigning = (() => {return new FFIConverter();})();-export type KvCaller = {- /**- * Pid.- */- pid: number,- /**- * Uid.- */- uid: number,- /**- * Executable.- */- path?: string,+export enum AppStreamRowActionId {/**- * Signing.+ * Picture in picture: the row's own stream in a floating panel.*/- signing: KvSigning,+ Pip = "pip"+}++const FfiConverterTypeAppStreamRowActionId = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppStreamRowActionId;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppStreamRowActionId.Pip;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppStreamRowActionId.Pip: return ordinalConverter.write(1, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppStreamRowAction = {/**- * Satisfied the Cua requirement.+ * What it does.*/- firstParty: boolean,+ id: AppStreamRowActionId,/**- * The OS verified the signature.+ * SF Symbol (`pip.enter`, `pip.exit` while open).*/- osVerified: boolean,+ symbol: string,/**- * Launched by.+ * Tooltip and accessibility label.*/- launchedBy?: string,+ help: string,/**- * OS-verified leaf name.+ * Its panel is open.*/- verifiedName?: string+ active: boolean}/**- * Generated factory for {@link KvCaller} record objects.+ * Generated factory for {@link AppStreamRowAction} record objects.*/-export const KvCaller = (() => {+export const AppStreamRowAction = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvCaller, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStreamRowAction, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvCaller>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStreamRowAction>,});})();-const FfiConverterTypeKvCaller = (() => {- type TypeName = KvCaller;+const FfiConverterTypeAppStreamRowAction = (() => {+ type TypeName = AppStreamRowAction;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- pid: FfiConverterInt32.read(from),- uid: FfiConverterUInt32.read(from),- path: FfiConverterOptionalString.read(from),- signing: FfiConverterTypeKvSigning.read(from),- firstParty: FfiConverterBool.read(from),- osVerified: FfiConverterBool.read(from),- launchedBy: FfiConverterOptionalString.read(from),- verifiedName: FfiConverterOptionalString.read(from)+ id: FfiConverterTypeAppStreamRowActionId.read(from),+ symbol: FfiConverterString.read(from),+ help: FfiConverterString.read(from),+ active: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterInt32.write(value.pid, into);- FfiConverterUInt32.write(value.uid, into);- FfiConverterOptionalString.write(value.path, into);- FfiConverterTypeKvSigning.write(value.signing, into);- FfiConverterBool.write(value.firstParty, into);- FfiConverterBool.write(value.osVerified, into);- FfiConverterOptionalString.write(value.launchedBy, into);- FfiConverterOptionalString.write(value.verifiedName, into);+ FfiConverterTypeAppStreamRowActionId.write(value.id, into);+ FfiConverterString.write(value.symbol, into);+ FfiConverterString.write(value.help, into);+ FfiConverterBool.write(value.active, into);}allocationSize(value: TypeName): number {- return FfiConverterInt32.allocationSize(value.pid) +- FfiConverterUInt32.allocationSize(value.uid) +- FfiConverterOptionalString.allocationSize(value.path) +- FfiConverterTypeKvSigning.allocationSize(value.signing) +- FfiConverterBool.allocationSize(value.firstParty) +- FfiConverterBool.allocationSize(value.osVerified) +- FfiConverterOptionalString.allocationSize(value.launchedBy) +- FfiConverterOptionalString.allocationSize(value.verifiedName);-- }- };- return new FFIConverter();-})();---// Enum: KvSelector-export enum KvSelector_Tags {- Item = "Item",- Site = "Site",- App = "App",- Login = "Login"-}-export const KvSelector = (() => {-- type Item__interface = {- tag: KvSelector_Tags.Item;- inner:-Readonly<{id: string}>- };- /**- * An existing item.- */- class Item_ extends UniffiEnum implements Item__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvSelector";- readonly tag = KvSelector_Tags.Item;- readonly inner:-Readonly<{id: string}>;- constructor(-inner: {id: string }) {- super("KvSelector", "Item");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string }): Item_ {- return new Item_(inner);- }-- static instanceOf(obj: any): obj is Item_ {- return obj.tag === KvSelector_Tags.Item;- }-- }-- type Site__interface = {- tag: KvSelector_Tags.Site;- inner:-Readonly<{app: string; site: string}>- };- /**- * A site of an app.- */- class Site_ extends UniffiEnum implements Site__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvSelector";- readonly tag = KvSelector_Tags.Site;- readonly inner:-Readonly<{app: string; site: string}>;- constructor(-inner: {app: string; site: string }) {- super("KvSelector", "Site");-- this.inner = Object.freeze(inner);- }- static new(-inner: {app: string; site: string }): Site_ {- return new Site_(inner);- }-- static instanceOf(obj: any): obj is Site_ {- return obj.tag === KvSelector_Tags.Site;- }-- }-- type App__interface = {- tag: KvSelector_Tags.App;- inner:-Readonly<{app: string}>- };- /**- * A whole app.- */- class App_ extends UniffiEnum implements App__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvSelector";- readonly tag = KvSelector_Tags.App;- readonly inner:-Readonly<{app: string}>;- constructor(-inner: {app: string }) {- super("KvSelector", "App");-- this.inner = Object.freeze(inner);- }- static new(-inner: {app: string }): App_ {- return new App_(inner);- }+ return FfiConverterTypeAppStreamRowActionId.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.symbol) ++ FfiConverterString.allocationSize(value.help) ++ FfiConverterBool.allocationSize(value.active);- static instanceOf(obj: any): obj is App_ {- return obj.tag === KvSelector_Tags.App;}-- }-- type Login__interface = {- tag: KvSelector_Tags.Login;- inner:-Readonly<{site: string}>};- /**- * A site's saved password, used to sign in (never delivered).- */- class Login_ extends UniffiEnum implements Login__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvSelector";- readonly tag = KvSelector_Tags.Login;- readonly inner:-Readonly<{site: string}>;- constructor(-inner: {site: string }) {- super("KvSelector", "Login");-- this.inner = Object.freeze(inner);- }- static new(-inner: {site: string }): Login_ {- return new Login_(inner);- }-- static instanceOf(obj: any): obj is Login_ {- return obj.tag === KvSelector_Tags.Login;- }-- }-- function instanceOf(obj: any): obj is KvSelector {- return obj[uniffiTypeNameSymbol] === "KvSelector";- }-- return Object.freeze({- instanceOf,- Item: Item_,- Site: Site_,- App: App_,- Login: Login_- });--})();-export type KvSelector = InstanceType<- typeof KvSelector['Item' | 'Site' | 'App' | 'Login']->;--// FfiConverter for enum KvSelector-const FfiConverterTypeKvSelector = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvSelector;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new KvSelector.Item({id: FfiConverterString.read(from) });- case 2: return new KvSelector.Site({app: FfiConverterString.read(from), site: FfiConverterString.read(from) });- case 3: return new KvSelector.App({app: FfiConverterString.read(from) });- case 4: return new KvSelector.Login({site: FfiConverterString.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case KvSelector_Tags.Item: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case KvSelector_Tags.Site: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.app, into);- FfiConverterString.write(inner.site, into);- return;- }- case KvSelector_Tags.App: {- ordinalConverter.write(3, into);- const inner = value.inner;- FfiConverterString.write(inner.app, into);- return;- }- case KvSelector_Tags.Login: {- ordinalConverter.write(4, into);- const inner = value.inner;- FfiConverterString.write(inner.site, into);- return;- }- default:- // Throwing from here means that KvSelector_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case KvSelector_Tags.Item: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case KvSelector_Tags.Site: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.app);- size += FfiConverterString.allocationSize(inner.site);- return size;- }- case KvSelector_Tags.App: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(3);- size += FfiConverterString.allocationSize(inner.app);- return size;- }- case KvSelector_Tags.Login: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(4);- size += FfiConverterString.allocationSize(inner.site);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- }return new FFIConverter();})();-export type KvAccessRequest = {- /**- * What.- */- selectors: Array<KvSelector>,+export type AppStreamRow = {/**- * Where.+ * [`DESKTOP_ROW_ID`] or the window's handle.*/- targets: Array<string>,+ id: string,/**- * Actions.+ * Desktop or window.*/- actions: Array<string>,+ kind: AppStreamRowKind,/**- * For how long.+ * The one line ("Desktop (1280×800)", a window's title).*/- durationSecs?: bigint,+ label: string,/**- * Uses.+ * The full label, for the tooltip when it is truncated.*/- uses?: number,+ help: string,/**- * The caller's reason (unverified).+ * The display's resolution ("1280×800"), Desktop row only.*/- reason: string,+ resolution?: string,/**- * The caller's name for itself (unverified).+ * The icon.*/- claimedName?: string,+ icon: AppStreamRowIcon,/**- * The named agent the request is for (unverified).+ * Icon buttons, in order.*/- agent?: string+ actions: Array<AppStreamRowAction>}/**- * Generated factory for {@link KvAccessRequest} record objects.+ * Generated factory for {@link AppStreamRow} record objects.*/-export const KvAccessRequest = (() => {+export const AppStreamRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvAccessRequest, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStreamRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvAccessRequest>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStreamRow>,});})();-const FfiConverterTypeKvAccessRequest = (() => {- type TypeName = KvAccessRequest;+const FfiConverterTypeAppStreamRow = (() => {+ type TypeName = AppStreamRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- selectors: FfiConverterSequenceTypeKvSelector.read(from),- targets: FfiConverterSequenceString.read(from),- actions: FfiConverterSequenceString.read(from),- durationSecs: FfiConverterOptionalUInt64.read(from),- uses: FfiConverterOptionalUInt32.read(from),- reason: FfiConverterString.read(from),- claimedName: FfiConverterOptionalString.read(from),- agent: FfiConverterOptionalString.read(from)+ id: FfiConverterString.read(from),+ kind: FfiConverterTypeAppStreamRowKind.read(from),+ label: FfiConverterString.read(from),+ help: FfiConverterString.read(from),+ resolution: FfiConverterOptionalString.read(from),+ icon: FfiConverterTypeAppStreamRowIcon.read(from),+ actions: FfiConverterSequenceTypeAppStreamRowAction.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeKvSelector.write(value.selectors, into);- FfiConverterSequenceString.write(value.targets, into);- FfiConverterSequenceString.write(value.actions, into);- FfiConverterOptionalUInt64.write(value.durationSecs, into);- FfiConverterOptionalUInt32.write(value.uses, into);- FfiConverterString.write(value.reason, into);- FfiConverterOptionalString.write(value.claimedName, into);- FfiConverterOptionalString.write(value.agent, into);+ FfiConverterString.write(value.id, into);+ FfiConverterTypeAppStreamRowKind.write(value.kind, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.help, into);+ FfiConverterOptionalString.write(value.resolution, into);+ FfiConverterTypeAppStreamRowIcon.write(value.icon, into);+ FfiConverterSequenceTypeAppStreamRowAction.write(value.actions, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeKvSelector.allocationSize(value.selectors) +- FfiConverterSequenceString.allocationSize(value.targets) +- FfiConverterSequenceString.allocationSize(value.actions) +- FfiConverterOptionalUInt64.allocationSize(value.durationSecs) +- FfiConverterOptionalUInt32.allocationSize(value.uses) +- FfiConverterString.allocationSize(value.reason) +- FfiConverterOptionalString.allocationSize(value.claimedName) +- FfiConverterOptionalString.allocationSize(value.agent);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterTypeAppStreamRowKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.help) ++ FfiConverterOptionalString.allocationSize(value.resolution) ++ FfiConverterTypeAppStreamRowIcon.allocationSize(value.icon) ++ FfiConverterSequenceTypeAppStreamRowAction.allocationSize(value.actions);}};return new FFIConverter();})();-export type KvPending = {+export type AppStreamSection = {/**- * Id.+ * The Desktop row, then one per window.*/- id: string,+ rows: Array<AppStreamRow>,/**- * Verified caller.+ * Under the rows while there are no window rows: loading, none,+ * failed or no match.*/- caller: KvCaller,+ statusText?: string+}++/**+ * Generated factory for {@link AppStreamSection} record objects.+ */+export const AppStreamSection = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppStreamSection, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppStreamSection>,+ });+})();++const FfiConverterTypeAppStreamSection = (() => {+ type TypeName = AppStreamSection;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ rows: FfiConverterSequenceTypeAppStreamRow.read(from),+ statusText: FfiConverterOptionalString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterSequenceTypeAppStreamRow.write(value.rows, into);+ FfiConverterOptionalString.write(value.statusText, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterSequenceTypeAppStreamRow.allocationSize(value.rows) ++ FfiConverterOptionalString.allocationSize(value.statusText);++ }+ };+ return new FFIConverter();+})();++export type AppStreamSectionInput = {/**- * Fingerprint.+ * The Space's windows, `None` while they load.*/- callerFp: string,+ windows?: Array<AppRemoteWindow>,/**- * One-line verified identity.+ * The window list could not be read.*/- callerDisplay: string,+ failed: boolean,/**- * The request.+ * The primary display, when the display list has been read.*/- request: KvAccessRequest,+ display?: AppStreamDisplay,/**- * Existing items it resolves to.+ * The Space's OS (the Desktop row's icon).*/- items: Array<KvItem>,+ os: AppSpaceOs,/**- * Selectors approval would import.+ * The OS name the Space reported ("Ubuntu 24.04"), if any.*/- needsImport: Array<KvSelector>,+ osName?: string,/**- * Created.+ * Rows whose picture in picture is open (row ids).*/- createdMs: bigint+ open: Array<string>,+ /**+ * Filter text.+ */+ query: string}/**- * Generated factory for {@link KvPending} record objects.+ * Generated factory for {@link AppStreamSectionInput} record objects.*/-export const KvPending = (() => {+export const AppStreamSectionInput = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvPending, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppStreamSectionInput, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvPending>,+ defaults: () => Object.freeze(defaults()) as Partial<AppStreamSectionInput>,});})();-const FfiConverterTypeKvPending = (() => {- type TypeName = KvPending;+const FfiConverterTypeAppStreamSectionInput = (() => {+ type TypeName = AppStreamSectionInput;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- caller: FfiConverterTypeKvCaller.read(from),- callerFp: FfiConverterString.read(from),- callerDisplay: FfiConverterString.read(from),- request: FfiConverterTypeKvAccessRequest.read(from),- items: FfiConverterSequenceTypeKvItem.read(from),- needsImport: FfiConverterSequenceTypeKvSelector.read(from),- createdMs: FfiConverterUInt64.read(from)+ windows: FfiConverterOptionalSequenceTypeAppRemoteWindow.read(from),+ failed: FfiConverterBool.read(from),+ display: FfiConverterOptionalTypeAppStreamDisplay.read(from),+ os: FfiConverterTypeAppSpaceOs.read(from),+ osName: FfiConverterOptionalString.read(from),+ open: FfiConverterSequenceString.read(from),+ query: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterTypeKvCaller.write(value.caller, into);- FfiConverterString.write(value.callerFp, into);- FfiConverterString.write(value.callerDisplay, into);- FfiConverterTypeKvAccessRequest.write(value.request, into);- FfiConverterSequenceTypeKvItem.write(value.items, into);- FfiConverterSequenceTypeKvSelector.write(value.needsImport, into);- FfiConverterUInt64.write(value.createdMs, into);+ FfiConverterOptionalSequenceTypeAppRemoteWindow.write(value.windows, into);+ FfiConverterBool.write(value.failed, into);+ FfiConverterOptionalTypeAppStreamDisplay.write(value.display, into);+ FfiConverterTypeAppSpaceOs.write(value.os, into);+ FfiConverterOptionalString.write(value.osName, into);+ FfiConverterSequenceString.write(value.open, into);+ FfiConverterString.write(value.query, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterTypeKvCaller.allocationSize(value.caller) +- FfiConverterString.allocationSize(value.callerFp) +- FfiConverterString.allocationSize(value.callerDisplay) +- FfiConverterTypeKvAccessRequest.allocationSize(value.request) +- FfiConverterSequenceTypeKvItem.allocationSize(value.items) +- FfiConverterSequenceTypeKvSelector.allocationSize(value.needsImport) +- FfiConverterUInt64.allocationSize(value.createdMs);+ return FfiConverterOptionalSequenceTypeAppRemoteWindow.allocationSize(value.windows) ++ FfiConverterBool.allocationSize(value.failed) ++ FfiConverterOptionalTypeAppStreamDisplay.allocationSize(value.display) ++ FfiConverterTypeAppSpaceOs.allocationSize(value.os) ++ FfiConverterOptionalString.allocationSize(value.osName) ++ FfiConverterSequenceString.allocationSize(value.open) ++ FfiConverterString.allocationSize(value.query);}};return new FFIConverter();})();-export type KvGrant = {- /**- * Id.- */- id: string,- /**- * Request.- */- requestId: string,- /**- * Caller fingerprint.- */- callerFp: string,- /**- * Caller.- */- callerDisplay: string,+export type AppTeleportConsent = {/**- * Items.+ * Confirmed.*/- items: Array<string>,+ approved: boolean,/**- * Targets.+ * Secrets acknowledged.*/- targets: Array<string>,+ acknowledgeSensitive: boolean,/**- * Actions.+ * "Save to Keyvault" checked.*/- actions: Array<string>,+ saveToKeyvault: boolean,/**- * Created.+ * [`Plan::relay_unsealed`]'s warning acknowledged (S1).*/- createdMs: bigint,+ acknowledgeRelayPlaintext: boolean,/**- * Expires.+ * The sites whose cookies to send (the review's per-site choice);+ * `None` when the review did not list sites.*/- notAfterMs: bigint,+ cookieDomains?: Array<string>,/**- * Uses left (none: unlimited until expiry).+ * Consent items (keys) the user turned off.*/- usesLeft?: number,+ exclude: Array<string>,/**- * Revoked.+ * Send these saved Keyvault items instead of reading the live app.*/- revoked: boolean,+ fromVault?: Array<string>,/**- * The named agent it was approved for.+ * Also send the saved passwords (ticked in the review).*/- agent?: string+ includePasswords: boolean}/**- * Generated factory for {@link KvGrant} record objects.+ * Generated factory for {@link AppTeleportConsent} record objects.*/-export const KvGrant = (() => {+export const AppTeleportConsent = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvGrant, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppTeleportConsent, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvGrant>,+ defaults: () => Object.freeze(defaults()) as Partial<AppTeleportConsent>,});})();-const FfiConverterTypeKvGrant = (() => {- type TypeName = KvGrant;+const FfiConverterTypeAppTeleportConsent = (() => {+ type TypeName = AppTeleportConsent;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- requestId: FfiConverterString.read(from),- callerFp: FfiConverterString.read(from),- callerDisplay: FfiConverterString.read(from),- items: FfiConverterSequenceString.read(from),- targets: FfiConverterSequenceString.read(from),- actions: FfiConverterSequenceString.read(from),- createdMs: FfiConverterUInt64.read(from),- notAfterMs: FfiConverterUInt64.read(from),- usesLeft: FfiConverterOptionalUInt32.read(from),- revoked: FfiConverterBool.read(from),- agent: FfiConverterOptionalString.read(from)+ approved: FfiConverterBool.read(from),+ acknowledgeSensitive: FfiConverterBool.read(from),+ saveToKeyvault: FfiConverterBool.read(from),+ acknowledgeRelayPlaintext: FfiConverterBool.read(from),+ cookieDomains: FfiConverterOptionalSequenceString.read(from),+ exclude: FfiConverterSequenceString.read(from),+ fromVault: FfiConverterOptionalSequenceString.read(from),+ includePasswords: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.requestId, into);- FfiConverterString.write(value.callerFp, into);- FfiConverterString.write(value.callerDisplay, into);- FfiConverterSequenceString.write(value.items, into);- FfiConverterSequenceString.write(value.targets, into);- FfiConverterSequenceString.write(value.actions, into);- FfiConverterUInt64.write(value.createdMs, into);- FfiConverterUInt64.write(value.notAfterMs, into);- FfiConverterOptionalUInt32.write(value.usesLeft, into);- FfiConverterBool.write(value.revoked, into);- FfiConverterOptionalString.write(value.agent, into);+ FfiConverterBool.write(value.approved, into);+ FfiConverterBool.write(value.acknowledgeSensitive, into);+ FfiConverterBool.write(value.saveToKeyvault, into);+ FfiConverterBool.write(value.acknowledgeRelayPlaintext, into);+ FfiConverterOptionalSequenceString.write(value.cookieDomains, into);+ FfiConverterSequenceString.write(value.exclude, into);+ FfiConverterOptionalSequenceString.write(value.fromVault, into);+ FfiConverterBool.write(value.includePasswords, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.requestId) +- FfiConverterString.allocationSize(value.callerFp) +- FfiConverterString.allocationSize(value.callerDisplay) +- FfiConverterSequenceString.allocationSize(value.items) +- FfiConverterSequenceString.allocationSize(value.targets) +- FfiConverterSequenceString.allocationSize(value.actions) +- FfiConverterUInt64.allocationSize(value.createdMs) +- FfiConverterUInt64.allocationSize(value.notAfterMs) +- FfiConverterOptionalUInt32.allocationSize(value.usesLeft) +- FfiConverterBool.allocationSize(value.revoked) +- FfiConverterOptionalString.allocationSize(value.agent);+ return FfiConverterBool.allocationSize(value.approved) ++ FfiConverterBool.allocationSize(value.acknowledgeSensitive) ++ FfiConverterBool.allocationSize(value.saveToKeyvault) ++ FfiConverterBool.allocationSize(value.acknowledgeRelayPlaintext) ++ FfiConverterOptionalSequenceString.allocationSize(value.cookieDomains) ++ FfiConverterSequenceString.allocationSize(value.exclude) ++ FfiConverterOptionalSequenceString.allocationSize(value.fromVault) ++ FfiConverterBool.allocationSize(value.includePasswords);}};return new FFIConverter();})();-export type KvRuleCaller = {+export type AppThumbnailPolicy = {/**- * Fingerprint.+ * While the notch is open: every running Space, this often.*/- fp: string,+ openIntervalMs: bigint,/**- * Display.+ * Otherwise (the app visible, not in Low Power Mode): a running Space+ * whose thumbnail is older than this gets a new one.*/- display: string+ backgroundIntervalMs: bigint,+ /**+ * The long edge of a captured thumbnail, in pixels.+ */+ maxDimension: number,+ /**+ * A thumbnail kept on disk longer than this is dropped at launch.+ */+ keepMs: bigint}/**- * Generated factory for {@link KvRuleCaller} record objects.+ * Generated factory for {@link AppThumbnailPolicy} record objects.*/-export const KvRuleCaller = (() => {+export const AppThumbnailPolicy = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvRuleCaller, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppThumbnailPolicy, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvRuleCaller>,+ defaults: () => Object.freeze(defaults()) as Partial<AppThumbnailPolicy>,});})();-const FfiConverterTypeKvRuleCaller = (() => {- type TypeName = KvRuleCaller;+const FfiConverterTypeAppThumbnailPolicy = (() => {+ type TypeName = AppThumbnailPolicy;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- fp: FfiConverterString.read(from),- display: FfiConverterString.read(from)+ openIntervalMs: FfiConverterUInt64.read(from),+ backgroundIntervalMs: FfiConverterUInt64.read(from),+ maxDimension: FfiConverterUInt32.read(from),+ keepMs: FfiConverterUInt64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.fp, into);- FfiConverterString.write(value.display, into);+ FfiConverterUInt64.write(value.openIntervalMs, into);+ FfiConverterUInt64.write(value.backgroundIntervalMs, into);+ FfiConverterUInt32.write(value.maxDimension, into);+ FfiConverterUInt64.write(value.keepMs, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.fp) +- FfiConverterString.allocationSize(value.display);+ return FfiConverterUInt64.allocationSize(value.openIntervalMs) ++ FfiConverterUInt64.allocationSize(value.backgroundIntervalMs) ++ FfiConverterUInt32.allocationSize(value.maxDimension) ++ FfiConverterUInt64.allocationSize(value.keepMs);}};return new FFIConverter();})();-export type KvRule = {+export type AppTile = {/**- * Id.+ * Stable id (`linux`, `cloud`, `vm`, ...).*/id: string,/**- * Items.- */- items: Array<string>,- /**- * Targets (`*`: any Space).- */- targets: Array<string>,- /**- * Callers.+ * Title.*/- callers: Array<KvRuleCaller>,+ title: string,/**- * Created.+ * Tooltip.*/- createdMs: bigint,+ detail: string,/**- * Expires.+ * Selected.*/- notAfterMs: bigint,+ pressed: boolean,/*** Enabled.*/- enabled: boolean,- /**- * Note.- */- note: string+ enabled: boolean}/**- * Generated factory for {@link KvRule} record objects.+ * Generated factory for {@link AppTile} record objects.*/-export const KvRule = (() => {+export const AppTile = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvRule, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppTile, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvRule>,+ defaults: () => Object.freeze(defaults()) as Partial<AppTile>,});})();-const FfiConverterTypeKvRule = (() => {- type TypeName = KvRule;+const FfiConverterTypeAppTile = (() => {+ type TypeName = AppTile;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- items: FfiConverterSequenceString.read(from),- targets: FfiConverterSequenceString.read(from),- callers: FfiConverterSequenceTypeKvRuleCaller.read(from),- createdMs: FfiConverterUInt64.read(from),- notAfterMs: FfiConverterUInt64.read(from),- enabled: FfiConverterBool.read(from),- note: FfiConverterString.read(from)+ title: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ pressed: FfiConverterBool.read(from),+ enabled: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterSequenceString.write(value.items, into);- FfiConverterSequenceString.write(value.targets, into);- FfiConverterSequenceTypeKvRuleCaller.write(value.callers, into);- FfiConverterUInt64.write(value.createdMs, into);- FfiConverterUInt64.write(value.notAfterMs, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterBool.write(value.pressed, into);FfiConverterBool.write(value.enabled, into);- FfiConverterString.write(value.note, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterSequenceString.allocationSize(value.items) +- FfiConverterSequenceString.allocationSize(value.targets) +- FfiConverterSequenceTypeKvRuleCaller.allocationSize(value.callers) +- FfiConverterUInt64.allocationSize(value.createdMs) +- FfiConverterUInt64.allocationSize(value.notAfterMs) +- FfiConverterBool.allocationSize(value.enabled) +- FfiConverterString.allocationSize(value.note);+ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterBool.allocationSize(value.pressed) ++ FfiConverterBool.allocationSize(value.enabled);}};return new FFIConverter();})();-export type KvDelivery = {- /**- * Import id.- */- importId: string,+export enum AppTransferPhase {/**- * Target.+ * Uploading.*/- target: string,+ Active = "active",/**- * Provider.+ * Failed.*/- providerId: string,+ Error = "error"+}++const FfiConverterTypeAppTransferPhase = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppTransferPhase;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppTransferPhase.Active;+ case 2: return AppTransferPhase.Error;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppTransferPhase.Active: return ordinalConverter.write(1, into);+ case AppTransferPhase.Error: return ordinalConverter.write(2, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppTransferOverlayState = {/**- * Items.+ * Phase.*/- items: Array<string>,+ phase: AppTransferPhase,/**- * Caller fingerprint.+ * App being teleported.*/- callerFp: string,+ appName: string,/**- * Delivered.+ * Failure reason.*/- deliveredMs: bigint,+ message?: string,/**- * Wiped at ([`KV_NO_EXPIRY`]: only when wiped).+ * Bytes sent.*/- expiresMs: bigint,+ sentBytes?: number,/**- * Already wiped.+ * Total bytes.*/- wiped: boolean+ totalBytes?: number}/**- * Generated factory for {@link KvDelivery} record objects.+ * Generated factory for {@link AppTransferOverlayState} record objects.*/-export const KvDelivery = (() => {+export const AppTransferOverlayState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvDelivery, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppTransferOverlayState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvDelivery>,+ defaults: () => Object.freeze(defaults()) as Partial<AppTransferOverlayState>,});})();-const FfiConverterTypeKvDelivery = (() => {- type TypeName = KvDelivery;+const FfiConverterTypeAppTransferOverlayState = (() => {+ type TypeName = AppTransferOverlayState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- importId: FfiConverterString.read(from),- target: FfiConverterString.read(from),- providerId: FfiConverterString.read(from),- items: FfiConverterSequenceString.read(from),- callerFp: FfiConverterString.read(from),- deliveredMs: FfiConverterUInt64.read(from),- expiresMs: FfiConverterUInt64.read(from),- wiped: FfiConverterBool.read(from)+ phase: FfiConverterTypeAppTransferPhase.read(from),+ appName: FfiConverterString.read(from),+ message: FfiConverterOptionalString.read(from),+ sentBytes: FfiConverterOptionalFloat64.read(from),+ totalBytes: FfiConverterOptionalFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.importId, into);- FfiConverterString.write(value.target, into);- FfiConverterString.write(value.providerId, into);- FfiConverterSequenceString.write(value.items, into);- FfiConverterString.write(value.callerFp, into);- FfiConverterUInt64.write(value.deliveredMs, into);- FfiConverterUInt64.write(value.expiresMs, into);- FfiConverterBool.write(value.wiped, into);+ FfiConverterTypeAppTransferPhase.write(value.phase, into);+ FfiConverterString.write(value.appName, into);+ FfiConverterOptionalString.write(value.message, into);+ FfiConverterOptionalFloat64.write(value.sentBytes, into);+ FfiConverterOptionalFloat64.write(value.totalBytes, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.importId) +- FfiConverterString.allocationSize(value.target) +- FfiConverterString.allocationSize(value.providerId) +- FfiConverterSequenceString.allocationSize(value.items) +- FfiConverterString.allocationSize(value.callerFp) +- FfiConverterUInt64.allocationSize(value.deliveredMs) +- FfiConverterUInt64.allocationSize(value.expiresMs) +- FfiConverterBool.allocationSize(value.wiped);+ return FfiConverterTypeAppTransferPhase.allocationSize(value.phase) ++ FfiConverterString.allocationSize(value.appName) ++ FfiConverterOptionalString.allocationSize(value.message) ++ FfiConverterOptionalFloat64.allocationSize(value.sentBytes) ++ FfiConverterOptionalFloat64.allocationSize(value.totalBytes);}};return new FFIConverter();})();-export type KvAuditEntry = {- /**- * Sequence.- */- seq: bigint,+export enum AppTransferStatus {/**- * Time.+ * Began (or retried).*/- tsMs: bigint,+ Start = "start",/**- * Kind (`consent.allow`, ...).+ * Bytes moved.*/- kind: string,+ Progress = "progress",/**- * Actor.+ * Finished.*/- actor: string,+ Done = "done",/**- * Caller fingerprint.+ * Failed.*/- callerFp: string,+ Error = "error"+}++const FfiConverterTypeAppTransferStatus = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppTransferStatus;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppTransferStatus.Start;+ case 2: return AppTransferStatus.Progress;+ case 3: return AppTransferStatus.Done;+ case 4: return AppTransferStatus.Error;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppTransferStatus.Start: return ordinalConverter.write(1, into);+ case AppTransferStatus.Progress: return ordinalConverter.write(2, into);+ case AppTransferStatus.Done: return ordinalConverter.write(3, into);+ case AppTransferStatus.Error: return ordinalConverter.write(4, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type AppTransferSignal = {/**- * Item.+ * Status.*/- item?: string,+ status: AppTransferStatus,/**- * Target.+ * App name.*/- target?: string,+ appName?: string,/**- * `ok`, `allow`, `deny`, `error`.+ * Message.*/- decision: string,+ message?: string,/**- * Detail.+ * Bytes sent.*/- detail?: string,+ sentBytes?: number,/**- * Written without the MAC key.+ * Total bytes.*/- authless?: boolean+ totalBytes?: number}/**- * Generated factory for {@link KvAuditEntry} record objects.+ * Generated factory for {@link AppTransferSignal} record objects.*/-export const KvAuditEntry = (() => {+export const AppTransferSignal = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvAuditEntry, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppTransferSignal, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvAuditEntry>,+ defaults: () => Object.freeze(defaults()) as Partial<AppTransferSignal>,});})();-const FfiConverterTypeKvAuditEntry = (() => {- type TypeName = KvAuditEntry;+const FfiConverterTypeAppTransferSignal = (() => {+ type TypeName = AppTransferSignal;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- seq: FfiConverterUInt64.read(from),- tsMs: FfiConverterUInt64.read(from),- kind: FfiConverterString.read(from),- actor: FfiConverterString.read(from),- callerFp: FfiConverterString.read(from),- item: FfiConverterOptionalString.read(from),- target: FfiConverterOptionalString.read(from),- decision: FfiConverterString.read(from),- detail: FfiConverterOptionalString.read(from),- authless: FfiConverterOptionalBoolean.read(from)+ status: FfiConverterTypeAppTransferStatus.read(from),+ appName: FfiConverterOptionalString.read(from),+ message: FfiConverterOptionalString.read(from),+ sentBytes: FfiConverterOptionalFloat64.read(from),+ totalBytes: FfiConverterOptionalFloat64.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt64.write(value.seq, into);- FfiConverterUInt64.write(value.tsMs, into);- FfiConverterString.write(value.kind, into);- FfiConverterString.write(value.actor, into);- FfiConverterString.write(value.callerFp, into);- FfiConverterOptionalString.write(value.item, into);- FfiConverterOptionalString.write(value.target, into);- FfiConverterString.write(value.decision, into);- FfiConverterOptionalString.write(value.detail, into);- FfiConverterOptionalBoolean.write(value.authless, into);+ FfiConverterTypeAppTransferStatus.write(value.status, into);+ FfiConverterOptionalString.write(value.appName, into);+ FfiConverterOptionalString.write(value.message, into);+ FfiConverterOptionalFloat64.write(value.sentBytes, into);+ FfiConverterOptionalFloat64.write(value.totalBytes, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt64.allocationSize(value.seq) +- FfiConverterUInt64.allocationSize(value.tsMs) +- FfiConverterString.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.actor) +- FfiConverterString.allocationSize(value.callerFp) +- FfiConverterOptionalString.allocationSize(value.item) +- FfiConverterOptionalString.allocationSize(value.target) +- FfiConverterString.allocationSize(value.decision) +- FfiConverterOptionalString.allocationSize(value.detail) +- FfiConverterOptionalBoolean.allocationSize(value.authless);+ return FfiConverterTypeAppTransferStatus.allocationSize(value.status) ++ FfiConverterOptionalString.allocationSize(value.appName) ++ FfiConverterOptionalString.allocationSize(value.message) ++ FfiConverterOptionalFloat64.allocationSize(value.sentBytes) ++ FfiConverterOptionalFloat64.allocationSize(value.totalBytes);}};return new FFIConverter();})();-export type KvVerification = {+export type AppWizardEnv = {/**- * Intact.+ * Where "Run on" starts (Settings, `cua config set default.on`).*/- ok: boolean,+ defaultLocation: AppLocation,/**- * Entries.+ * Signed in (or client credentials).*/- entries: bigint,+ cloudAvailable: boolean,/**- * Entries without a MAC.+ * A local container backend or Lume exists.*/- unauthenticated: bigint,+ localAvailable: boolean,/**- * First tampered line.+ * Why local is unavailable.*/- tamperedLine?: bigint,+ localReason?: string,/**- * Why.+ * Ready local backends, when known.*/- reason?: string+ localBackends?: Array<string>,+ /**+ * Why each local backend that is not ready is not (the runtime+ * doctor's detail, by backend name), when known: the wizard names the+ * reason instead of only "This Mac cannot run container Spaces."+ */+ localDetails?: Map<string, string>,+ /**+ * Upper bound for the CPU slider.+ */+ maxCpus: number,+ /**+ * This machine's architecture (`arm64`, `amd64`), when known.+ */+ hostArch?: string,+ /**+ * Which Lume macOS Spaces run on (`runtime.lume`: `auto`, `builtin`,+ * `system`), when known.+ */+ lumeSource?: string,+ /**+ * Which engine local Linux Spaces run on (`runtime.linux`: `auto`,+ * `builtin`, `system`), when known (a Mac).+ */+ linuxSource?: string,+ /**+ * Free space and pulled images here (the SDK's `Local.storage()`),+ * when known.+ */+ storage?: AppLocalStorage,+ /**+ * This account's Cua Cloud rates, when known (no estimate without).+ */+ cloudPricing?: AppCloudPricing,+ /**+ * The user's connected clouds (`cloud_status`), for "Your cloud"+ * (offered only while its experiment is on: [`offered_clouds`]).+ */+ clouds: Array<AppConnectedCloud>,+ /**+ * The user's machines that provide Spaces (`Spaces.hosts()`).+ */+ hosts: Array<AppSpaceHost>,+ /**+ * Settings, Experiments ("Your cloud" decides whether clouds show).+ */+ experiments: AppExperiments,+ /**+ * The GPU option of each runtime that has one (the SDK's+ * `gpu_support`), when known. A runtime not listed has none: the+ * Resources step shows no GPU row for it.+ */+ gpus?: Array<AppGpuChoice>}/**- * Generated factory for {@link KvVerification} record objects.+ * Generated factory for {@link AppWizardEnv} record objects.*/-export const KvVerification = (() => {+export const AppWizardEnv = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvVerification, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppWizardEnv, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVerification>,+ defaults: () => Object.freeze(defaults()) as Partial<AppWizardEnv>,});})();-const FfiConverterTypeKvVerification = (() => {- type TypeName = KvVerification;+const FfiConverterTypeAppWizardEnv = (() => {+ type TypeName = AppWizardEnv;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- ok: FfiConverterBool.read(from),- entries: FfiConverterUInt64.read(from),- unauthenticated: FfiConverterUInt64.read(from),- tamperedLine: FfiConverterOptionalUInt64.read(from),- reason: FfiConverterOptionalString.read(from)+ defaultLocation: FfiConverterTypeAppLocation.read(from),+ cloudAvailable: FfiConverterBool.read(from),+ localAvailable: FfiConverterBool.read(from),+ localReason: FfiConverterOptionalString.read(from),+ localBackends: FfiConverterOptionalSequenceString.read(from),+ localDetails: FfiConverterOptionalMapStringString.read(from),+ maxCpus: FfiConverterUInt32.read(from),+ hostArch: FfiConverterOptionalString.read(from),+ lumeSource: FfiConverterOptionalString.read(from),+ linuxSource: FfiConverterOptionalString.read(from),+ storage: FfiConverterOptionalTypeAppLocalStorage.read(from),+ cloudPricing: FfiConverterOptionalTypeAppCloudPricing.read(from),+ clouds: FfiConverterSequenceTypeAppConnectedCloud.read(from),+ hosts: FfiConverterSequenceTypeAppSpaceHost.read(from),+ experiments: FfiConverterTypeAppExperiments.read(from),+ gpus: FfiConverterOptionalSequenceTypeAppGpuChoice.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.ok, into);- FfiConverterUInt64.write(value.entries, into);- FfiConverterUInt64.write(value.unauthenticated, into);- FfiConverterOptionalUInt64.write(value.tamperedLine, into);- FfiConverterOptionalString.write(value.reason, into);+ FfiConverterTypeAppLocation.write(value.defaultLocation, into);+ FfiConverterBool.write(value.cloudAvailable, into);+ FfiConverterBool.write(value.localAvailable, into);+ FfiConverterOptionalString.write(value.localReason, into);+ FfiConverterOptionalSequenceString.write(value.localBackends, into);+ FfiConverterOptionalMapStringString.write(value.localDetails, into);+ FfiConverterUInt32.write(value.maxCpus, into);+ FfiConverterOptionalString.write(value.hostArch, into);+ FfiConverterOptionalString.write(value.lumeSource, into);+ FfiConverterOptionalString.write(value.linuxSource, into);+ FfiConverterOptionalTypeAppLocalStorage.write(value.storage, into);+ FfiConverterOptionalTypeAppCloudPricing.write(value.cloudPricing, into);+ FfiConverterSequenceTypeAppConnectedCloud.write(value.clouds, into);+ FfiConverterSequenceTypeAppSpaceHost.write(value.hosts, into);+ FfiConverterTypeAppExperiments.write(value.experiments, into);+ FfiConverterOptionalSequenceTypeAppGpuChoice.write(value.gpus, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.ok) +- FfiConverterUInt64.allocationSize(value.entries) +- FfiConverterUInt64.allocationSize(value.unauthenticated) +- FfiConverterOptionalUInt64.allocationSize(value.tamperedLine) +- FfiConverterOptionalString.allocationSize(value.reason);+ return FfiConverterTypeAppLocation.allocationSize(value.defaultLocation) ++ FfiConverterBool.allocationSize(value.cloudAvailable) ++ FfiConverterBool.allocationSize(value.localAvailable) ++ FfiConverterOptionalString.allocationSize(value.localReason) ++ FfiConverterOptionalSequenceString.allocationSize(value.localBackends) ++ FfiConverterOptionalMapStringString.allocationSize(value.localDetails) ++ FfiConverterUInt32.allocationSize(value.maxCpus) ++ FfiConverterOptionalString.allocationSize(value.hostArch) ++ FfiConverterOptionalString.allocationSize(value.lumeSource) ++ FfiConverterOptionalString.allocationSize(value.linuxSource) ++ FfiConverterOptionalTypeAppLocalStorage.allocationSize(value.storage) ++ FfiConverterOptionalTypeAppCloudPricing.allocationSize(value.cloudPricing) ++ FfiConverterSequenceTypeAppConnectedCloud.allocationSize(value.clouds) ++ FfiConverterSequenceTypeAppSpaceHost.allocationSize(value.hosts) ++ FfiConverterTypeAppExperiments.allocationSize(value.experiments) ++ FfiConverterOptionalSequenceTypeAppGpuChoice.allocationSize(value.gpus);}};return new FFIConverter();})();-export type KeyvaultOverview = {- /**- * `ready`, or why not: `not_running`, `impostor`, `connect`,- * `no_vault`, `locked`, `not_first_party`, `unsupported`, `error`.- */- availability: string,- /**- * A sentence when not ready.- */- message?: string,- /**- * The broker's status.- */- status?: KvStatus,- /**- * The daemon was checked against Cua's signature.- */- serverVerified: boolean,- /**- * The vault's secret items, in order (app, domain, key).- */- items: Array<KvItem>,- /**- * Domains and keys are present in `items` (the browse window is open).- */- namesVisible: boolean,- /**- * Items in the vault.- */- itemsTotal: number,- /**- * Pending requests.- */- pending: Array<KvPending>,- /**- * Grants.- */- grants: Array<KvGrant>,+export type AppWizardFact = {/**- * Rules.+ * `kind`, `arch`, `disk`, `download`, `available`.*/- rules: Array<KvRule>,+ id: string,/**- * Deliveries.+ * Label.*/- deliveries: Array<KvDelivery>,+ label: string,/**- * Audit tail, oldest first.+ * Value.*/- audit: Array<KvAuditEntry>,+ value: string,/**- * Chain check.+ * A symbol after the value (`exclamationmark.triangle`).*/- auditVerification?: KvVerification,+ symbol?: string,/**- * Sections that failed while the rest loaded.+ * The symbol's tooltip.*/- partialErrors: Array<string>+ help?: string}/**- * Generated factory for {@link KeyvaultOverview} record objects.+ * Generated factory for {@link AppWizardFact} record objects.*/-export const KeyvaultOverview = (() => {+export const AppWizardFact = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KeyvaultOverview, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppWizardFact, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KeyvaultOverview>,+ defaults: () => Object.freeze(defaults()) as Partial<AppWizardFact>,});})();-const FfiConverterTypeKeyvaultOverview = (() => {- type TypeName = KeyvaultOverview;+const FfiConverterTypeAppWizardFact = (() => {+ type TypeName = AppWizardFact;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- availability: FfiConverterString.read(from),- message: FfiConverterOptionalString.read(from),- status: FfiConverterOptionalTypeKvStatus.read(from),- serverVerified: FfiConverterBool.read(from),- items: FfiConverterSequenceTypeKvItem.read(from),- namesVisible: FfiConverterBool.read(from),- itemsTotal: FfiConverterUInt32.read(from),- pending: FfiConverterSequenceTypeKvPending.read(from),- grants: FfiConverterSequenceTypeKvGrant.read(from),- rules: FfiConverterSequenceTypeKvRule.read(from),- deliveries: FfiConverterSequenceTypeKvDelivery.read(from),- audit: FfiConverterSequenceTypeKvAuditEntry.read(from),- auditVerification: FfiConverterOptionalTypeKvVerification.read(from),- partialErrors: FfiConverterSequenceString.read(from)+ id: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ value: FfiConverterString.read(from),+ symbol: FfiConverterOptionalString.read(from),+ help: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.availability, into);- FfiConverterOptionalString.write(value.message, into);- FfiConverterOptionalTypeKvStatus.write(value.status, into);- FfiConverterBool.write(value.serverVerified, into);- FfiConverterSequenceTypeKvItem.write(value.items, into);- FfiConverterBool.write(value.namesVisible, into);- FfiConverterUInt32.write(value.itemsTotal, into);- FfiConverterSequenceTypeKvPending.write(value.pending, into);- FfiConverterSequenceTypeKvGrant.write(value.grants, into);- FfiConverterSequenceTypeKvRule.write(value.rules, into);- FfiConverterSequenceTypeKvDelivery.write(value.deliveries, into);- FfiConverterSequenceTypeKvAuditEntry.write(value.audit, into);- FfiConverterOptionalTypeKvVerification.write(value.auditVerification, into);- FfiConverterSequenceString.write(value.partialErrors, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.value, into);+ FfiConverterOptionalString.write(value.symbol, into);+ FfiConverterOptionalString.write(value.help, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.availability) +- FfiConverterOptionalString.allocationSize(value.message) +- FfiConverterOptionalTypeKvStatus.allocationSize(value.status) +- FfiConverterBool.allocationSize(value.serverVerified) +- FfiConverterSequenceTypeKvItem.allocationSize(value.items) +- FfiConverterBool.allocationSize(value.namesVisible) +- FfiConverterUInt32.allocationSize(value.itemsTotal) +- FfiConverterSequenceTypeKvPending.allocationSize(value.pending) +- FfiConverterSequenceTypeKvGrant.allocationSize(value.grants) +- FfiConverterSequenceTypeKvRule.allocationSize(value.rules) +- FfiConverterSequenceTypeKvDelivery.allocationSize(value.deliveries) +- FfiConverterSequenceTypeKvAuditEntry.allocationSize(value.audit) +- FfiConverterOptionalTypeKvVerification.allocationSize(value.auditVerification) +- FfiConverterSequenceString.allocationSize(value.partialErrors);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.value) ++ FfiConverterOptionalString.allocationSize(value.symbol) ++ FfiConverterOptionalString.allocationSize(value.help);}};return new FFIConverter();})();-export enum KvAccessKind {+export type AppWizardField = {/**- * A grant.+ * `os`, `image`, `placement`, `kind`, `runtime`, `connect-cloud`,+ * `connect-by-address`, `cpus`, `memory`, `disk`, `name`,+ * `open-when-ready`, `address`, `token`, `address-name`.*/- Grant = "grant",+ id: string,/**- * An unattended rule.+ * Label (or the link's title).*/- Rule = "rule",+ label: string,/**- * Copies in a Space.+ * Placeholder.*/- Delivery = "delivery"+ placeholder?: string,+ /**+ * One line under the field.+ */+ error?: string,+ /**+ * Inside "Advanced".+ */+ advanced: boolean}-const FfiConverterTypeKvAccessKind = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvAccessKind;+/**+ * Generated factory for {@link AppWizardField} record objects.+ */+export const AppWizardField = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppWizardField, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppWizardField>,+ });+})();++const FfiConverterTypeAppWizardField = (() => {+ type TypeName = AppWizardField;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvAccessKind.Grant;- case 2: return KvAccessKind.Rule;- case 3: return KvAccessKind.Delivery;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ id: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ placeholder: FfiConverterOptionalString.read(from),+ error: FfiConverterOptionalString.read(from),+ advanced: FfiConverterBool.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvAccessKind.Grant: return ordinalConverter.write(1, into);- case KvAccessKind.Rule: return ordinalConverter.write(2, into);- case KvAccessKind.Delivery: return ordinalConverter.write(3, into);- }+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.label, into);+ FfiConverterOptionalString.write(value.placeholder, into);+ FfiConverterOptionalString.write(value.error, into);+ FfiConverterBool.write(value.advanced, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterOptionalString.allocationSize(value.placeholder) ++ FfiConverterOptionalString.allocationSize(value.error) ++ FfiConverterBool.allocationSize(value.advanced);+}- }+ };return new FFIConverter();})();--// Enum: KvCommand-export enum KvCommand_Tags {- Setup = "Setup",- Unlock = "Unlock",- SetDisabled = "SetDisabled",- SetUnattended = "SetUnattended",- SetLocked = "SetLocked",- DeleteItems = "DeleteItems",- SetSkipUnlockPrompt = "SetSkipUnlockPrompt",- Browse = "Browse",- EndBrowse = "EndBrowse",- RevokeGrant = "RevokeGrant",- RemoveRule = "RemoveRule",- SetAutoWipe = "SetAutoWipe",- Release = "Release",- Approve = "Approve",- Deny = "Deny"-}-export const KvCommand = (() => {-- type Setup__interface = {- tag: KvCommand_Tags.Setup- };+export type AppWizardLabels = {/**- * Create the vault with the OS key store (the daemon asks for- * presence). A passphrase never travels in a command: the shells pass- * it to `KeyvaultCommands::setup_with_passphrase` directly.+ * "Cancel".*/- class Setup_ extends UniffiEnum implements Setup__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.Setup;- constructor() {- super("KvCommand", "Setup");- }-- static new(): Setup_ {- return new Setup_();- }-- static instanceOf(obj: any): obj is Setup_ {- return obj.tag === KvCommand_Tags.Setup;- }-- }-- type Unlock__interface = {- tag: KvCommand_Tags.Unlock- };+ cancel: string,/**- * Unlock with the OS key store (a passphrase goes to- * `KeyvaultCommands::unlock_with_passphrase`).+ * "Back".*/- class Unlock_ extends UniffiEnum implements Unlock__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.Unlock;- constructor() {- super("KvCommand", "Unlock");- }-- static new(): Unlock_ {- return new Unlock_();- }-- static instanceOf(obj: any): obj is Unlock_ {- return obj.tag === KvCommand_Tags.Unlock;- }-- }-- type SetDisabled__interface = {- tag: KvCommand_Tags.SetDisabled;- inner:-Readonly<{disabled: boolean}>- };+ back: string,/**- * The kill switch (turning it off asks for Touch ID).+ * "Advanced".*/- class SetDisabled_ extends UniffiEnum implements SetDisabled__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.SetDisabled;- readonly inner:-Readonly<{disabled: boolean}>;- constructor(-inner: {disabled: boolean }) {- super("KvCommand", "SetDisabled");+ advanced: string+}- this.inner = Object.freeze(inner);+/**+ * Generated factory for {@link AppWizardLabels} record objects.+ */+export const AppWizardLabels = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<AppWizardLabels, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<AppWizardLabels>,+ });+})();++const FfiConverterTypeAppWizardLabels = (() => {+ type TypeName = AppWizardLabels;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ cancel: FfiConverterString.read(from),+ back: FfiConverterString.read(from),+ advanced: FfiConverterString.read(from)+ };}- static new(-inner: {disabled: boolean }): SetDisabled_ {- return new SetDisabled_(inner);+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.cancel, into);+ FfiConverterString.write(value.back, into);+ FfiConverterString.write(value.advanced, into);}+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.cancel) ++ FfiConverterString.allocationSize(value.back) ++ FfiConverterString.allocationSize(value.advanced);- static instanceOf(obj: any): obj is SetDisabled_ {- return obj.tag === KvCommand_Tags.SetDisabled;}-- }-- type SetUnattended__interface = {- tag: KvCommand_Tags.SetUnattended;- inner:-Readonly<{itemIds: Array<string>; unattended: boolean}>};+ return new FFIConverter();+})();++export enum AppWizardMode {/**- * Per-item unattended (turning on asks for Touch ID): the same as- * [`KvCommand::SetLocked`] with `locked` the other way round.+ * The four steps.*/- class SetUnattended_ extends UniffiEnum implements SetUnattended__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.SetUnattended;- readonly inner:-Readonly<{itemIds: Array<string>; unattended: boolean}>;- constructor(-inner: {itemIds: Array<string>; unattended: boolean }) {- super("KvCommand", "SetUnattended");-- this.inner = Object.freeze(inner);- }- static new(-inner: {itemIds: Array<string>; unattended: boolean }): SetUnattended_ {- return new SetUnattended_(inner);- }-- static instanceOf(obj: any): obj is SetUnattended_ {- return obj.tag === KvCommand_Tags.SetUnattended;- }-- }-- type SetLocked__interface = {- tag: KvCommand_Tags.SetLocked;- inner:-Readonly<{itemIds: Array<string>; locked: boolean}>- };+ Create = "create",/**- * Lock or unlock items together. Unlocking allows unattended access and- * asks for Touch ID once for the whole batch; locking does not.+ * Connect by address.*/- class SetLocked_ extends UniffiEnum implements SetLocked__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.SetLocked;- readonly inner:-Readonly<{itemIds: Array<string>; locked: boolean}>;- constructor(-inner: {itemIds: Array<string>; locked: boolean }) {- super("KvCommand", "SetLocked");+ Address = "address"+}- this.inner = Object.freeze(inner);+const FfiConverterTypeAppWizardMode = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppWizardMode;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppWizardMode.Create;+ case 2: return AppWizardMode.Address;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- static new(-inner: {itemIds: Array<string>; locked: boolean }): SetLocked_ {- return new SetLocked_(inner);+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppWizardMode.Create: return ordinalConverter.write(1, into);+ case AppWizardMode.Address: return ordinalConverter.write(2, into);+ }}-- static instanceOf(obj: any): obj is SetLocked_ {- return obj.tag === KvCommand_Tags.SetLocked;+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);}-}+ return new FFIConverter();+})();- type DeleteItems__interface = {- tag: KvCommand_Tags.DeleteItems;- inner:-Readonly<{itemIds: Array<string>}>- };+export type AppWizardState = {/**- * Delete items, wiping every live copy of them in Spaces.+ * Create or address.*/- class DeleteItems_ extends UniffiEnum implements DeleteItems__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.DeleteItems;- readonly inner:-Readonly<{itemIds: Array<string>}>;- constructor(-inner: {itemIds: Array<string> }) {- super("KvCommand", "DeleteItems");-- this.inner = Object.freeze(inner);- }- static new(-inner: {itemIds: Array<string> }): DeleteItems_ {- return new DeleteItems_(inner);- }-- static instanceOf(obj: any): obj is DeleteItems_ {- return obj.tag === KvCommand_Tags.DeleteItems;- }-- }-- type SetSkipUnlockPrompt__interface = {- tag: KvCommand_Tags.SetSkipUnlockPrompt;- inner:-Readonly<{on: boolean}>- };+ mode: AppWizardMode,/**- * "Never ask again" on the unlock prompt (Settings turns it back on).+ * 0..=3.*/- class SetSkipUnlockPrompt_ extends UniffiEnum implements SetSkipUnlockPrompt__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.SetSkipUnlockPrompt;- readonly inner:-Readonly<{on: boolean}>;- constructor(-inner: {on: boolean }) {- super("KvCommand", "SetSkipUnlockPrompt");-- this.inner = Object.freeze(inner);- }- static new(-inner: {on: boolean }): SetSkipUnlockPrompt_ {- return new SetSkipUnlockPrompt_(inner);- }-- static instanceOf(obj: any): obj is SetSkipUnlockPrompt_ {- return obj.tag === KvCommand_Tags.SetSkipUnlockPrompt;- }-- }-- type Browse__interface = {- tag: KvCommand_Tags.Browse- };+ step: number,/**- * Show item names for a few minutes (the daemon asks for Touch ID).+ * Where it runs.*/- class Browse_ extends UniffiEnum implements Browse__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.Browse;- constructor() {- super("KvCommand", "Browse");- }-- static new(): Browse_ {- return new Browse_();- }-- static instanceOf(obj: any): obj is Browse_ {- return obj.tag === KvCommand_Tags.Browse;- }-- }-- type EndBrowse__interface = {- tag: KvCommand_Tags.EndBrowse- };+ placement: AppLocation,/**- * Hide item names again.+ * The person chose a placement (the default no longer follows Settings).*/- class EndBrowse_ extends UniffiEnum implements EndBrowse__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.EndBrowse;- constructor() {- super("KvCommand", "EndBrowse");- }-- static new(): EndBrowse_ {- return new EndBrowse_();- }-- static instanceOf(obj: any): obj is EndBrowse_ {- return obj.tag === KvCommand_Tags.EndBrowse;- }-- }-- type RevokeGrant__interface = {- tag: KvCommand_Tags.RevokeGrant;- inner:-Readonly<{id: string}>- };+ picked: boolean,/**- * Revoke a grant (`*`: all).+ * The preset the Space is based on (its OS, kind and engines). With a+ * custom ref typed, the Space runs that ref the same way.*/- class RevokeGrant_ extends UniffiEnum implements RevokeGrant__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.RevokeGrant;- readonly inner:-Readonly<{id: string}>;- constructor(-inner: {id: string }) {- super("KvCommand", "RevokeGrant");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string }): RevokeGrant_ {- return new RevokeGrant_(inner);- }-- static instanceOf(obj: any): obj is RevokeGrant_ {- return obj.tag === KvCommand_Tags.RevokeGrant;- }-- }-- type RemoveRule__interface = {- tag: KvCommand_Tags.RemoveRule;- inner:-Readonly<{id: string}>- };+ imageRef: string,/**- * Remove a rule.+ * The image field as typed: a preset's ref or any other reference.*/- class RemoveRule_ extends UniffiEnum implements RemoveRule__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.RemoveRule;- readonly inner:-Readonly<{id: string}>;- constructor(-inner: {id: string }) {- super("KvCommand", "RemoveRule");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string }): RemoveRule_ {- return new RemoveRule_(inner);- }-- static instanceOf(obj: any): obj is RemoveRule_ {- return obj.tag === KvCommand_Tags.RemoveRule;- }-- }-- type SetAutoWipe__interface = {- tag: KvCommand_Tags.SetAutoWipe;- inner:-Readonly<{on: boolean}>- };+ imageText: string,/**- * Auto-wipe of delivered copies (turning it off asks for Touch ID).+ * The suggestion list is open.*/- class SetAutoWipe_ extends UniffiEnum implements SetAutoWipe__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.SetAutoWipe;- readonly inner:-Readonly<{on: boolean}>;- constructor(-inner: {on: boolean }) {- super("KvCommand", "SetAutoWipe");-- this.inner = Object.freeze(inner);- }- static new(-inner: {on: boolean }): SetAutoWipe_ {- return new SetAutoWipe_(inner);- }-- static instanceOf(obj: any): obj is SetAutoWipe_ {- return obj.tag === KvCommand_Tags.SetAutoWipe;- }-- }-- type Release__interface = {- tag: KvCommand_Tags.Release;- inner:-Readonly<{target: string}>- };+ suggestOpen: boolean,/**- * Wipe a Space's copies.+ * The list filters by the text (typing); opening it shows every preset.*/- class Release_ extends UniffiEnum implements Release__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.Release;- readonly inner:-Readonly<{target: string}>;- constructor(-inner: {target: string }) {- super("KvCommand", "Release");-- this.inner = Object.freeze(inner);- }- static new(-inner: {target: string }): Release_ {- return new Release_(inner);- }-- static instanceOf(obj: any): obj is Release_ {- return obj.tag === KvCommand_Tags.Release;- }-- }-- type Approve__interface = {- tag: KvCommand_Tags.Approve;- inner:-Readonly<{requestId: string; items?: Array<string>}>- };+ suggestFilter: boolean,/**- * Approve a request for exactly these items (the daemon asks for- * presence). `None` keeps everything the request asked for, which the- * approval sheet only sends when the user ticked every row.+ * The highlighted row (keyboard), over the visible rows in order.*/- class Approve_ extends UniffiEnum implements Approve__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.Approve;- readonly inner:-Readonly<{requestId: string; items?: Array<string>}>;- constructor(-inner: {requestId: string; items?: Array<string> }) {- super("KvCommand", "Approve");-- this.inner = Object.freeze(inner);- }- static new(-inner: {requestId: string; items?: Array<string> }): Approve_ {- return new Approve_(inner);- }-- static instanceOf(obj: any): obj is Approve_ {- return obj.tag === KvCommand_Tags.Approve;- }-- }-- type Deny__interface = {- tag: KvCommand_Tags.Deny;- inner:-Readonly<{requestId: string}>- };+ suggestIndex?: number,/**- * Deny a request.+ * vCPUs as chosen (the view keeps them within where it runs).*/- class Deny_ extends UniffiEnum implements Deny__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "KvCommand";- readonly tag = KvCommand_Tags.Deny;- readonly inner:-Readonly<{requestId: string}>;- constructor(-inner: {requestId: string }) {- super("KvCommand", "Deny");-- this.inner = Object.freeze(inner);- }- static new(-inner: {requestId: string }): Deny_ {- return new Deny_(inner);- }-- static instanceOf(obj: any): obj is Deny_ {- return obj.tag === KvCommand_Tags.Deny;- }-- }-- function instanceOf(obj: any): obj is KvCommand {- return obj[uniffiTypeNameSymbol] === "KvCommand";- }-- return Object.freeze({- instanceOf,- Setup: Setup_,- Unlock: Unlock_,- SetDisabled: SetDisabled_,- SetUnattended: SetUnattended_,- SetLocked: SetLocked_,- DeleteItems: DeleteItems_,- SetSkipUnlockPrompt: SetSkipUnlockPrompt_,- Browse: Browse_,- EndBrowse: EndBrowse_,- RevokeGrant: RevokeGrant_,- RemoveRule: RemoveRule_,- SetAutoWipe: SetAutoWipe_,- Release: Release_,- Approve: Approve_,- Deny: Deny_- });--})();-export type KvCommand = InstanceType<- typeof KvCommand['Setup' | 'Unlock' | 'SetDisabled' | 'SetUnattended' | 'SetLocked' | 'DeleteItems' | 'SetSkipUnlockPrompt' | 'Browse' | 'EndBrowse' | 'RevokeGrant' | 'RemoveRule' | 'SetAutoWipe' | 'Release' | 'Approve' | 'Deny']->;--// FfiConverter for enum KvCommand-const FfiConverterTypeKvCommand = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvCommand;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new KvCommand.Setup();- case 2: return new KvCommand.Unlock();- case 3: return new KvCommand.SetDisabled({disabled: FfiConverterBool.read(from) });- case 4: return new KvCommand.SetUnattended({itemIds: FfiConverterSequenceString.read(from), unattended: FfiConverterBool.read(from) });- case 5: return new KvCommand.SetLocked({itemIds: FfiConverterSequenceString.read(from), locked: FfiConverterBool.read(from) });- case 6: return new KvCommand.DeleteItems({itemIds: FfiConverterSequenceString.read(from) });- case 7: return new KvCommand.SetSkipUnlockPrompt({on: FfiConverterBool.read(from) });- case 8: return new KvCommand.Browse();- case 9: return new KvCommand.EndBrowse();- case 10: return new KvCommand.RevokeGrant({id: FfiConverterString.read(from) });- case 11: return new KvCommand.RemoveRule({id: FfiConverterString.read(from) });- case 12: return new KvCommand.SetAutoWipe({on: FfiConverterBool.read(from) });- case 13: return new KvCommand.Release({target: FfiConverterString.read(from) });- case 14: return new KvCommand.Approve({requestId: FfiConverterString.read(from), items: FfiConverterOptionalSequenceString.read(from) });- case 15: return new KvCommand.Deny({requestId: FfiConverterString.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case KvCommand_Tags.Setup: {- ordinalConverter.write(1, into);- return;- }- case KvCommand_Tags.Unlock: {- ordinalConverter.write(2, into);- return;- }- case KvCommand_Tags.SetDisabled: {- ordinalConverter.write(3, into);- const inner = value.inner;- FfiConverterBool.write(inner.disabled, into);- return;- }- case KvCommand_Tags.SetUnattended: {- ordinalConverter.write(4, into);- const inner = value.inner;- FfiConverterSequenceString.write(inner.itemIds, into);- FfiConverterBool.write(inner.unattended, into);- return;- }- case KvCommand_Tags.SetLocked: {- ordinalConverter.write(5, into);- const inner = value.inner;- FfiConverterSequenceString.write(inner.itemIds, into);- FfiConverterBool.write(inner.locked, into);- return;- }- case KvCommand_Tags.DeleteItems: {- ordinalConverter.write(6, into);- const inner = value.inner;- FfiConverterSequenceString.write(inner.itemIds, into);- return;- }- case KvCommand_Tags.SetSkipUnlockPrompt: {- ordinalConverter.write(7, into);- const inner = value.inner;- FfiConverterBool.write(inner.on, into);- return;- }- case KvCommand_Tags.Browse: {- ordinalConverter.write(8, into);- return;- }- case KvCommand_Tags.EndBrowse: {- ordinalConverter.write(9, into);- return;- }- case KvCommand_Tags.RevokeGrant: {- ordinalConverter.write(10, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case KvCommand_Tags.RemoveRule: {- ordinalConverter.write(11, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case KvCommand_Tags.SetAutoWipe: {- ordinalConverter.write(12, into);- const inner = value.inner;- FfiConverterBool.write(inner.on, into);- return;- }- case KvCommand_Tags.Release: {- ordinalConverter.write(13, into);- const inner = value.inner;- FfiConverterString.write(inner.target, into);- return;- }- case KvCommand_Tags.Approve: {- ordinalConverter.write(14, into);- const inner = value.inner;- FfiConverterString.write(inner.requestId, into);- FfiConverterOptionalSequenceString.write(inner.items, into);- return;- }- case KvCommand_Tags.Deny: {- ordinalConverter.write(15, into);- const inner = value.inner;- FfiConverterString.write(inner.requestId, into);- return;- }- default:- // Throwing from here means that KvCommand_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case KvCommand_Tags.Setup: {- return ordinalConverter.allocationSize(1);- }- case KvCommand_Tags.Unlock: {- return ordinalConverter.allocationSize(2);- }- case KvCommand_Tags.SetDisabled: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(3);- size += FfiConverterBool.allocationSize(inner.disabled);- return size;- }- case KvCommand_Tags.SetUnattended: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(4);- size += FfiConverterSequenceString.allocationSize(inner.itemIds);- size += FfiConverterBool.allocationSize(inner.unattended);- return size;- }- case KvCommand_Tags.SetLocked: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(5);- size += FfiConverterSequenceString.allocationSize(inner.itemIds);- size += FfiConverterBool.allocationSize(inner.locked);- return size;- }- case KvCommand_Tags.DeleteItems: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(6);- size += FfiConverterSequenceString.allocationSize(inner.itemIds);- return size;- }- case KvCommand_Tags.SetSkipUnlockPrompt: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(7);- size += FfiConverterBool.allocationSize(inner.on);- return size;- }- case KvCommand_Tags.Browse: {- return ordinalConverter.allocationSize(8);- }- case KvCommand_Tags.EndBrowse: {- return ordinalConverter.allocationSize(9);- }- case KvCommand_Tags.RevokeGrant: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(10);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case KvCommand_Tags.RemoveRule: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(11);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case KvCommand_Tags.SetAutoWipe: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(12);- size += FfiConverterBool.allocationSize(inner.on);- return size;- }- case KvCommand_Tags.Release: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(13);- size += FfiConverterString.allocationSize(inner.target);- return size;- }- case KvCommand_Tags.Approve: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(14);- size += FfiConverterString.allocationSize(inner.requestId);- size += FfiConverterOptionalSequenceString.allocationSize(inner.items);- return size;- }- case KvCommand_Tags.Deny: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(15);- size += FfiConverterString.allocationSize(inner.requestId);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- }- return new FFIConverter();-})();--export type KvAccessRow = {+ cpus: number,/**- * Kind.+ * Memory GB as chosen (the view keeps it within where it runs).*/- kind: KvAccessKind,+ memoryGb: number,/**- * Stable key.+ * Disk GB as chosen (local VMs that can grow); `None`: the image's.*/- key: string,+ diskGb?: number,/**- * Main text.+ * Name as typed.*/- text: string,+ name: string,/**- * Muted detail.+ * Open the desktop when ready.*/- detail: string,+ openWhenReady: boolean,/**- * "Revoke", "Remove", "Wipe".+ * Advanced shown.*/- actionLabel: string,+ advanced: boolean,/**- * What the button sends.+ * Runtime as chosen (the effective one is in the view).*/- command: KvCommand,+ runtimeChoice: AppRuntime,/**- * A Space's copies: their import ids, which Dismiss hides from the- * notch (empty for grants and rules).+ * The connected cloud chosen for "Your cloud" (`aws`); `None`: the+ * default one.*/- imports: Array<string>+ cloud?: string,+ /**+ * The machine chosen for `Location::Host` ([`SpaceHost::id`]).+ */+ host?: string,+ /**+ * The GPU box is checked (it applies where the effective runtime+ * offers a GPU).+ */+ gpu: boolean,+ /**+ * The address form.+ */+ address: AppAddressForm}/**- * Generated factory for {@link KvAccessRow} record objects.+ * Generated factory for {@link AppWizardState} record objects.*/-export const KvAccessRow = (() => {+export const AppWizardState = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvAccessRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppWizardState, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvAccessRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppWizardState>,});})();-const FfiConverterTypeKvAccessRow = (() => {- type TypeName = KvAccessRow;+const FfiConverterTypeAppWizardState = (() => {+ type TypeName = AppWizardState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeKvAccessKind.read(from),- key: FfiConverterString.read(from),- text: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- actionLabel: FfiConverterString.read(from),- command: FfiConverterTypeKvCommand.read(from),- imports: FfiConverterSequenceString.read(from)+ mode: FfiConverterTypeAppWizardMode.read(from),+ step: FfiConverterUInt32.read(from),+ placement: FfiConverterTypeAppLocation.read(from),+ picked: FfiConverterBool.read(from),+ imageRef: FfiConverterString.read(from),+ imageText: FfiConverterString.read(from),+ suggestOpen: FfiConverterBool.read(from),+ suggestFilter: FfiConverterBool.read(from),+ suggestIndex: FfiConverterOptionalUInt32.read(from),+ cpus: FfiConverterUInt32.read(from),+ memoryGb: FfiConverterUInt32.read(from),+ diskGb: FfiConverterOptionalUInt32.read(from),+ name: FfiConverterString.read(from),+ openWhenReady: FfiConverterBool.read(from),+ advanced: FfiConverterBool.read(from),+ runtimeChoice: FfiConverterTypeAppRuntime.read(from),+ cloud: FfiConverterOptionalString.read(from),+ host: FfiConverterOptionalString.read(from),+ gpu: FfiConverterBool.read(from),+ address: FfiConverterTypeAppAddressForm.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeKvAccessKind.write(value.kind, into);- FfiConverterString.write(value.key, into);- FfiConverterString.write(value.text, into);- FfiConverterString.write(value.detail, into);- FfiConverterString.write(value.actionLabel, into);- FfiConverterTypeKvCommand.write(value.command, into);- FfiConverterSequenceString.write(value.imports, into);+ FfiConverterTypeAppWizardMode.write(value.mode, into);+ FfiConverterUInt32.write(value.step, into);+ FfiConverterTypeAppLocation.write(value.placement, into);+ FfiConverterBool.write(value.picked, into);+ FfiConverterString.write(value.imageRef, into);+ FfiConverterString.write(value.imageText, into);+ FfiConverterBool.write(value.suggestOpen, into);+ FfiConverterBool.write(value.suggestFilter, into);+ FfiConverterOptionalUInt32.write(value.suggestIndex, into);+ FfiConverterUInt32.write(value.cpus, into);+ FfiConverterUInt32.write(value.memoryGb, into);+ FfiConverterOptionalUInt32.write(value.diskGb, into);+ FfiConverterString.write(value.name, into);+ FfiConverterBool.write(value.openWhenReady, into);+ FfiConverterBool.write(value.advanced, into);+ FfiConverterTypeAppRuntime.write(value.runtimeChoice, into);+ FfiConverterOptionalString.write(value.cloud, into);+ FfiConverterOptionalString.write(value.host, into);+ FfiConverterBool.write(value.gpu, into);+ FfiConverterTypeAppAddressForm.write(value.address, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeKvAccessKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.text) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterString.allocationSize(value.actionLabel) +- FfiConverterTypeKvCommand.allocationSize(value.command) +- FfiConverterSequenceString.allocationSize(value.imports);+ return FfiConverterTypeAppWizardMode.allocationSize(value.mode) ++ FfiConverterUInt32.allocationSize(value.step) ++ FfiConverterTypeAppLocation.allocationSize(value.placement) ++ FfiConverterBool.allocationSize(value.picked) ++ FfiConverterString.allocationSize(value.imageRef) ++ FfiConverterString.allocationSize(value.imageText) ++ FfiConverterBool.allocationSize(value.suggestOpen) ++ FfiConverterBool.allocationSize(value.suggestFilter) ++ FfiConverterOptionalUInt32.allocationSize(value.suggestIndex) ++ FfiConverterUInt32.allocationSize(value.cpus) ++ FfiConverterUInt32.allocationSize(value.memoryGb) ++ FfiConverterOptionalUInt32.allocationSize(value.diskGb) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterBool.allocationSize(value.openWhenReady) ++ FfiConverterBool.allocationSize(value.advanced) ++ FfiConverterTypeAppRuntime.allocationSize(value.runtimeChoice) ++ FfiConverterOptionalString.allocationSize(value.cloud) ++ FfiConverterOptionalString.allocationSize(value.host) ++ FfiConverterBool.allocationSize(value.gpu) ++ FfiConverterTypeAppAddressForm.allocationSize(value.address);}};return new FFIConverter();})();-export type KvAppRow = {+export type AppWizardView = {/**- * The provider id (`chrome`): the key, and what the icon is looked up by.+ * Create or address.*/- key: string,+ mode: AppWizardMode,/**- * "Google Chrome".+ * 0..=3.*/- title: string,+ step: number,/**- * Items.+ * Step list.*/- items: number,+ steps: Array<AppStepView>,/**- * Something waits for this app.+ * Step heading.*/- waiting: boolean-}--/**- * Generated factory for {@link KvAppRow} record objects.- */-export const KvAppRow = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvAppRow, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvAppRow>,- });-})();--const FfiConverterTypeKvAppRow = (() => {- type TypeName = KvAppRow;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- key: FfiConverterString.read(from),- title: FfiConverterString.read(from),- items: FfiConverterUInt32.read(from),- waiting: FfiConverterBool.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);- FfiConverterString.write(value.title, into);- FfiConverterUInt32.write(value.items, into);- FfiConverterBool.write(value.waiting, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.title) +- FfiConverterUInt32.allocationSize(value.items) +- FfiConverterBool.allocationSize(value.waiting);-- }- };- return new FFIConverter();-})();--export type KvApprovalRow = {+ title: string,/**- * Row key: `<app>|<site>`, `<app>|files`, or `import:<n>`.+ * OS tiles.*/- key: string,+ osTiles: Array<AppTile>,/**- * The site, or the app for files and imports.+ * The image field.*/- title: string,+ imageField: AppImageFieldView,/**- * "3 cookies, 1 password", or "Not saved yet".+ * The image.*/- account: string,+ image: AppSandboxImage,/**- * The app's provider id (its icon), when known.+ * The "Run on" menu: This Mac, your machines that provide Spaces,+ * then your connected clouds (with the "Your cloud" experiment).*/- providerId: string,+ placements: Array<AppPlacementOption>,/**- * Items the row stands for.+ * The chosen entry's id ([`PlacementOption::id`]).*/- items: number,+ placementId: string,/**- * The items' ids.+ * The connected cloud "Your cloud" creates in (`aws`).*/- itemIds: Array<string>,+ cloud?: string,/**- * Ticked.+ * The machine of yours it creates on ([`SpaceHost::id`]).*/- selected: boolean,+ host?: string,/**- * A new item the approval imports.+ * Why the chosen placement cannot be used.*/- isImport: boolean-}--/**- * Generated factory for {@link KvApprovalRow} record objects.- */-export const KvApprovalRow = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvApprovalRow, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvApprovalRow>,- });-})();--const FfiConverterTypeKvApprovalRow = (() => {- type TypeName = KvApprovalRow;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- key: FfiConverterString.read(from),- title: FfiConverterString.read(from),- account: FfiConverterString.read(from),- providerId: FfiConverterString.read(from),- items: FfiConverterUInt32.read(from),- itemIds: FfiConverterSequenceString.read(from),- selected: FfiConverterBool.read(from),- isImport: FfiConverterBool.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.account, into);- FfiConverterString.write(value.providerId, into);- FfiConverterUInt32.write(value.items, into);- FfiConverterSequenceString.write(value.itemIds, into);- FfiConverterBool.write(value.selected, into);- FfiConverterBool.write(value.isImport, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.account) +- FfiConverterString.allocationSize(value.providerId) +- FfiConverterUInt32.allocationSize(value.items) +- FfiConverterSequenceString.allocationSize(value.itemIds) +- FfiConverterBool.allocationSize(value.selected) +- FfiConverterBool.allocationSize(value.isImport);-- }- };- return new FFIConverter();-})();--export type KvApprovalState = {+ placementError?: string,/**- * The request.+ * One line under "Run on" when This Mac cannot run the Space and no+ * machine of yours is listed: how another Mac joins.*/- requestId: string,+ placementHint?: string,/**- * Ticked row keys (`<app>|<site>`, or `import:<n>` for new items).+ * Switches This Mac to the built-in runtime the Space needs, when it+ * is set to use its own and that is missing.*/- selected: Array<string>-}--/**- * Generated factory for {@link KvApprovalState} record objects.- */-export const KvApprovalState = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvApprovalState, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvApprovalState>,- });-})();--const FfiConverterTypeKvApprovalState = (() => {- type TypeName = KvApprovalState;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- requestId: FfiConverterString.read(from),- selected: FfiConverterSequenceString.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.requestId, into);- FfiConverterSequenceString.write(value.selected, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.requestId) +- FfiConverterSequenceString.allocationSize(value.selected);-- }- };- return new FFIConverter();-})();--export enum KvTone {+ runtimeSwitch?: AppRuntimeSwitch,/**- * Verified.+ * Advanced shown.*/- Ok = "ok",+ advanced: boolean,/**- * Caution.+ * Kind tiles.*/- Warn = "warn",+ kindTiles: Array<AppTile>,/**- * Untrusted.+ * Runtime menu.*/- Danger = "danger"-}--const FfiConverterTypeKvTone = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvTone;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvTone.Ok;- case 2: return KvTone.Warn;- case 3: return KvTone.Danger;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvTone.Ok: return ordinalConverter.write(1, into);- case KvTone.Warn: return ordinalConverter.write(2, into);- case KvTone.Danger: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type KvSigningBadge = {+ runtimes: Array<AppMenuOption>,/**- * "signed, team X".+ * Effective runtime.*/- text: string,+ runtime: AppRuntime,/**- * Tone.+ * The runtime menu has a choice.*/- tone: KvTone-}--/**- * Generated factory for {@link KvSigningBadge} record objects.- */-export const KvSigningBadge = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvSigningBadge, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvSigningBadge>,- });-})();--const FfiConverterTypeKvSigningBadge = (() => {- type TypeName = KvSigningBadge;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- text: FfiConverterString.read(from),- tone: FfiConverterTypeKvTone.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.text, into);- FfiConverterTypeKvTone.write(value.tone, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.text) +- FfiConverterTypeKvTone.allocationSize(value.tone);-- }- };- return new FFIConverter();-})();--export type KvApprovalView = {+ runtimeEnabled: boolean,/**- * The request.+ * Cores.*/- requestId: string,+ cpus: number,/**- * "Allow com.example.koalabot?"+ * Slider min.*/- title: string,+ minCpus: number,/**- * Verified caller (short).+ * Slider max.*/- caller: string,+ maxCpus: number,/**- * Signing badge.+ * Memory slider min, GB.*/- badge: KvSigningBadge,+ minMemoryGb: number,/**- * Where to ("dev-1").+ * Memory slider max, GB.*/- targets: string,+ maxMemoryGb: number,/**- * For how long.+ * "2 cores".*/- wants: string,+ cpusText: string,/**- * One-line summary.+ * Memory GB.*/- summary: string,+ memoryGb: number,/**- * Unverified claims.+ * "4 GB".*/- claims: Array<string>,+ memoryText: string,/**- * Rows.+ * The disk slider shows (a local VM whose disk can grow).*/- rows: Array<KvApprovalRow>,+ diskEditable: boolean,/**- * Approve is enabled.+ * Disk GB (the slider's value).*/- canApprove: boolean,+ diskGb: number,/**- * Why not, in one line (none when it can, or nothing is ticked yet).+ * Disk slider min, GB (the image's size).*/- blockedReason?: string,+ minDiskGb: number,/**- * "Approve 2 items".+ * Disk slider max, GB.*/- approveLabel: string,+ maxDiskGb: number,/**- * The request is gone (answered elsewhere).+ * "150 GB".*/- gone: boolean-}--/**- * Generated factory for {@link KvApprovalView} record objects.- */-export const KvApprovalView = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvApprovalView, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvApprovalView>,- });-})();--const FfiConverterTypeKvApprovalView = (() => {- type TypeName = KvApprovalView;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- requestId: FfiConverterString.read(from),- title: FfiConverterString.read(from),- caller: FfiConverterString.read(from),- badge: FfiConverterTypeKvSigningBadge.read(from),- targets: FfiConverterString.read(from),- wants: FfiConverterString.read(from),- summary: FfiConverterString.read(from),- claims: FfiConverterSequenceString.read(from),- rows: FfiConverterSequenceTypeKvApprovalRow.read(from),- canApprove: FfiConverterBool.read(from),- blockedReason: FfiConverterOptionalString.read(from),- approveLabel: FfiConverterString.read(from),- gone: FfiConverterBool.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.requestId, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.caller, into);- FfiConverterTypeKvSigningBadge.write(value.badge, into);- FfiConverterString.write(value.targets, into);- FfiConverterString.write(value.wants, into);- FfiConverterString.write(value.summary, into);- FfiConverterSequenceString.write(value.claims, into);- FfiConverterSequenceTypeKvApprovalRow.write(value.rows, into);- FfiConverterBool.write(value.canApprove, into);- FfiConverterOptionalString.write(value.blockedReason, into);- FfiConverterString.write(value.approveLabel, into);- FfiConverterBool.write(value.gone, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.requestId) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.caller) +- FfiConverterTypeKvSigningBadge.allocationSize(value.badge) +- FfiConverterString.allocationSize(value.targets) +- FfiConverterString.allocationSize(value.wants) +- FfiConverterString.allocationSize(value.summary) +- FfiConverterSequenceString.allocationSize(value.claims) +- FfiConverterSequenceTypeKvApprovalRow.allocationSize(value.rows) +- FfiConverterBool.allocationSize(value.canApprove) +- FfiConverterOptionalString.allocationSize(value.blockedReason) +- FfiConverterString.allocationSize(value.approveLabel) +- FfiConverterBool.allocationSize(value.gone);-- }- };- return new FFIConverter();-})();--export enum KvCategory {+ diskText: string,/**- * Every item, grouped by app.+ * One quiet line under the slider: a VM disk is sparse, so it uses+ * the unpacked size at first, up to the chosen size; and a resize+ * when the chosen size is not the image's.*/- All = "all",+ diskNote?: string,/**- * Requests waiting for approval.+ * "Reset" while the chosen size is not the image's.*/- Waiting = "waiting",+ diskResetLabel?: string,/**- * Live grants, rules and copies.+ * The slider's tooltip: why it cannot go below the image's disk.*/- Access = "access",+ diskHelp?: string,/**- * Recent decisions.+ * What it costs, in one line: `About $0.18/hour` (cloud, at this+ * account's rates); `None` on the user's own hardware (this Mac, or a+ * machine added by address) and when the cloud rates are unknown.*/- Recent = "recent"-}--const FfiConverterTypeKvCategory = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvCategory;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvCategory.All;- case 2: return KvCategory.Waiting;- case 3: return KvCategory.Access;- case 4: return KvCategory.Recent;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvCategory.All: return ordinalConverter.write(1, into);- case KvCategory.Waiting: return ordinalConverter.write(2, into);- case KvCategory.Access: return ordinalConverter.write(3, into);- case KvCategory.Recent: return ordinalConverter.write(4, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type KvCategoryRow = {+ price?: string,/**- * Category.+ * The Resources step's lines under the sliders: kind, architecture,+ * disk (or download), available.*/- category: KvCategory,+ resourceFacts: Array<AppWizardFact>,/**- * Title.+ * One line when the Space does not fit where it is written (blocks+ * Continue).*/- title: string,+ resourcesError?: string,/**- * SF Symbol.+ * The GPU row (Resources), where the runtime offers a GPU.*/- symbol: string,+ gpu?: AppGpuRow,/**- * Count (none for Recent).+ * Name as typed.*/- count?: number,+ name: string,/**- * The sidebar badge: Waiting's count while something waits.+ * The name breaks the DNS-label rule.*/- badge?: number+ nameInvalid: boolean,+ /**+ * Why, in one line.+ */+ nameError?: string,+ /**+ * Open when ready.+ */+ openWhenReady: boolean,+ /**+ * "No desktop stream for this image yet."+ */+ streamNote?: string,+ /**+ * The Summary list.+ */+ summary: Array<AppFact>,+ /**+ * Continue is enabled.+ */+ canContinue: boolean,+ /**+ * Back shows.+ */+ showBack: boolean,+ /**+ * "Continue" or "Create Space".+ */+ primaryLabel: string,+ /**+ * What Create sends.+ */+ plan: AppCreatePlan,+ /**+ * The address form.+ */+ address: AppAddressView,+ /**+ * The fields of this step (or the address form), in order.+ */+ fields: Array<AppWizardField>,+ /**+ * Fixed words.+ */+ labels: AppWizardLabels}/**- * Generated factory for {@link KvCategoryRow} record objects.+ * Generated factory for {@link AppWizardView} record objects.*/-export const KvCategoryRow = (() => {+export const AppWizardView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvCategoryRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<AppWizardView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvCategoryRow>,+ defaults: () => Object.freeze(defaults()) as Partial<AppWizardView>,});})();-const FfiConverterTypeKvCategoryRow = (() => {- type TypeName = KvCategoryRow;+const FfiConverterTypeAppWizardView = (() => {+ type TypeName = AppWizardView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- category: FfiConverterTypeKvCategory.read(from),+ mode: FfiConverterTypeAppWizardMode.read(from),+ step: FfiConverterUInt32.read(from),+ steps: FfiConverterSequenceTypeAppStepView.read(from),title: FfiConverterString.read(from),- symbol: FfiConverterString.read(from),- count: FfiConverterOptionalUInt32.read(from),- badge: FfiConverterOptionalUInt32.read(from)+ osTiles: FfiConverterSequenceTypeAppTile.read(from),+ imageField: FfiConverterTypeAppImageFieldView.read(from),+ image: FfiConverterTypeAppSandboxImage.read(from),+ placements: FfiConverterSequenceTypeAppPlacementOption.read(from),+ placementId: FfiConverterString.read(from),+ cloud: FfiConverterOptionalString.read(from),+ host: FfiConverterOptionalString.read(from),+ placementError: FfiConverterOptionalString.read(from),+ placementHint: FfiConverterOptionalString.read(from),+ runtimeSwitch: FfiConverterOptionalTypeAppRuntimeSwitch.read(from),+ advanced: FfiConverterBool.read(from),+ kindTiles: FfiConverterSequenceTypeAppTile.read(from),+ runtimes: FfiConverterSequenceTypeAppMenuOption.read(from),+ runtime: FfiConverterTypeAppRuntime.read(from),+ runtimeEnabled: FfiConverterBool.read(from),+ cpus: FfiConverterUInt32.read(from),+ minCpus: FfiConverterUInt32.read(from),+ maxCpus: FfiConverterUInt32.read(from),+ minMemoryGb: FfiConverterUInt32.read(from),+ maxMemoryGb: FfiConverterUInt32.read(from),+ cpusText: FfiConverterString.read(from),+ memoryGb: FfiConverterUInt32.read(from),+ memoryText: FfiConverterString.read(from),+ diskEditable: FfiConverterBool.read(from),+ diskGb: FfiConverterUInt32.read(from),+ minDiskGb: FfiConverterUInt32.read(from),+ maxDiskGb: FfiConverterUInt32.read(from),+ diskText: FfiConverterString.read(from),+ diskNote: FfiConverterOptionalString.read(from),+ diskResetLabel: FfiConverterOptionalString.read(from),+ diskHelp: FfiConverterOptionalString.read(from),+ price: FfiConverterOptionalString.read(from),+ resourceFacts: FfiConverterSequenceTypeAppWizardFact.read(from),+ resourcesError: FfiConverterOptionalString.read(from),+ gpu: FfiConverterOptionalTypeAppGpuRow.read(from),+ name: FfiConverterString.read(from),+ nameInvalid: FfiConverterBool.read(from),+ nameError: FfiConverterOptionalString.read(from),+ openWhenReady: FfiConverterBool.read(from),+ streamNote: FfiConverterOptionalString.read(from),+ summary: FfiConverterSequenceTypeAppFact.read(from),+ canContinue: FfiConverterBool.read(from),+ showBack: FfiConverterBool.read(from),+ primaryLabel: FfiConverterString.read(from),+ plan: FfiConverterTypeAppCreatePlan.read(from),+ address: FfiConverterTypeAppAddressView.read(from),+ fields: FfiConverterSequenceTypeAppWizardField.read(from),+ labels: FfiConverterTypeAppWizardLabels.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeKvCategory.write(value.category, into);+ FfiConverterTypeAppWizardMode.write(value.mode, into);+ FfiConverterUInt32.write(value.step, into);+ FfiConverterSequenceTypeAppStepView.write(value.steps, into);FfiConverterString.write(value.title, into);- FfiConverterString.write(value.symbol, into);- FfiConverterOptionalUInt32.write(value.count, into);- FfiConverterOptionalUInt32.write(value.badge, into);+ FfiConverterSequenceTypeAppTile.write(value.osTiles, into);+ FfiConverterTypeAppImageFieldView.write(value.imageField, into);+ FfiConverterTypeAppSandboxImage.write(value.image, into);+ FfiConverterSequenceTypeAppPlacementOption.write(value.placements, into);+ FfiConverterString.write(value.placementId, into);+ FfiConverterOptionalString.write(value.cloud, into);+ FfiConverterOptionalString.write(value.host, into);+ FfiConverterOptionalString.write(value.placementError, into);+ FfiConverterOptionalString.write(value.placementHint, into);+ FfiConverterOptionalTypeAppRuntimeSwitch.write(value.runtimeSwitch, into);+ FfiConverterBool.write(value.advanced, into);+ FfiConverterSequenceTypeAppTile.write(value.kindTiles, into);+ FfiConverterSequenceTypeAppMenuOption.write(value.runtimes, into);+ FfiConverterTypeAppRuntime.write(value.runtime, into);+ FfiConverterBool.write(value.runtimeEnabled, into);+ FfiConverterUInt32.write(value.cpus, into);+ FfiConverterUInt32.write(value.minCpus, into);+ FfiConverterUInt32.write(value.maxCpus, into);+ FfiConverterUInt32.write(value.minMemoryGb, into);+ FfiConverterUInt32.write(value.maxMemoryGb, into);+ FfiConverterString.write(value.cpusText, into);+ FfiConverterUInt32.write(value.memoryGb, into);+ FfiConverterString.write(value.memoryText, into);+ FfiConverterBool.write(value.diskEditable, into);+ FfiConverterUInt32.write(value.diskGb, into);+ FfiConverterUInt32.write(value.minDiskGb, into);+ FfiConverterUInt32.write(value.maxDiskGb, into);+ FfiConverterString.write(value.diskText, into);+ FfiConverterOptionalString.write(value.diskNote, into);+ FfiConverterOptionalString.write(value.diskResetLabel, into);+ FfiConverterOptionalString.write(value.diskHelp, into);+ FfiConverterOptionalString.write(value.price, into);+ FfiConverterSequenceTypeAppWizardFact.write(value.resourceFacts, into);+ FfiConverterOptionalString.write(value.resourcesError, into);+ FfiConverterOptionalTypeAppGpuRow.write(value.gpu, into);+ FfiConverterString.write(value.name, into);+ FfiConverterBool.write(value.nameInvalid, into);+ FfiConverterOptionalString.write(value.nameError, into);+ FfiConverterBool.write(value.openWhenReady, into);+ FfiConverterOptionalString.write(value.streamNote, into);+ FfiConverterSequenceTypeAppFact.write(value.summary, into);+ FfiConverterBool.write(value.canContinue, into);+ FfiConverterBool.write(value.showBack, into);+ FfiConverterString.write(value.primaryLabel, into);+ FfiConverterTypeAppCreatePlan.write(value.plan, into);+ FfiConverterTypeAppAddressView.write(value.address, into);+ FfiConverterSequenceTypeAppWizardField.write(value.fields, into);+ FfiConverterTypeAppWizardLabels.write(value.labels, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeKvCategory.allocationSize(value.category) ++ return FfiConverterTypeAppWizardMode.allocationSize(value.mode) ++ FfiConverterUInt32.allocationSize(value.step) ++ FfiConverterSequenceTypeAppStepView.allocationSize(value.steps) +FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.symbol) +- FfiConverterOptionalUInt32.allocationSize(value.count) +- FfiConverterOptionalUInt32.allocationSize(value.badge);+ FfiConverterSequenceTypeAppTile.allocationSize(value.osTiles) ++ FfiConverterTypeAppImageFieldView.allocationSize(value.imageField) ++ FfiConverterTypeAppSandboxImage.allocationSize(value.image) ++ FfiConverterSequenceTypeAppPlacementOption.allocationSize(value.placements) ++ FfiConverterString.allocationSize(value.placementId) ++ FfiConverterOptionalString.allocationSize(value.cloud) ++ FfiConverterOptionalString.allocationSize(value.host) ++ FfiConverterOptionalString.allocationSize(value.placementError) ++ FfiConverterOptionalString.allocationSize(value.placementHint) ++ FfiConverterOptionalTypeAppRuntimeSwitch.allocationSize(value.runtimeSwitch) ++ FfiConverterBool.allocationSize(value.advanced) ++ FfiConverterSequenceTypeAppTile.allocationSize(value.kindTiles) ++ FfiConverterSequenceTypeAppMenuOption.allocationSize(value.runtimes) ++ FfiConverterTypeAppRuntime.allocationSize(value.runtime) ++ FfiConverterBool.allocationSize(value.runtimeEnabled) ++ FfiConverterUInt32.allocationSize(value.cpus) ++ FfiConverterUInt32.allocationSize(value.minCpus) ++ FfiConverterUInt32.allocationSize(value.maxCpus) ++ FfiConverterUInt32.allocationSize(value.minMemoryGb) ++ FfiConverterUInt32.allocationSize(value.maxMemoryGb) ++ FfiConverterString.allocationSize(value.cpusText) ++ FfiConverterUInt32.allocationSize(value.memoryGb) ++ FfiConverterString.allocationSize(value.memoryText) ++ FfiConverterBool.allocationSize(value.diskEditable) ++ FfiConverterUInt32.allocationSize(value.diskGb) ++ FfiConverterUInt32.allocationSize(value.minDiskGb) ++ FfiConverterUInt32.allocationSize(value.maxDiskGb) ++ FfiConverterString.allocationSize(value.diskText) ++ FfiConverterOptionalString.allocationSize(value.diskNote) ++ FfiConverterOptionalString.allocationSize(value.diskResetLabel) ++ FfiConverterOptionalString.allocationSize(value.diskHelp) ++ FfiConverterOptionalString.allocationSize(value.price) ++ FfiConverterSequenceTypeAppWizardFact.allocationSize(value.resourceFacts) ++ FfiConverterOptionalString.allocationSize(value.resourcesError) ++ FfiConverterOptionalTypeAppGpuRow.allocationSize(value.gpu) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterBool.allocationSize(value.nameInvalid) ++ FfiConverterOptionalString.allocationSize(value.nameError) ++ FfiConverterBool.allocationSize(value.openWhenReady) ++ FfiConverterOptionalString.allocationSize(value.streamNote) ++ FfiConverterSequenceTypeAppFact.allocationSize(value.summary) ++ FfiConverterBool.allocationSize(value.canContinue) ++ FfiConverterBool.allocationSize(value.showBack) ++ FfiConverterString.allocationSize(value.primaryLabel) ++ FfiConverterTypeAppCreatePlan.allocationSize(value.plan) ++ FfiConverterTypeAppAddressView.allocationSize(value.address) ++ FfiConverterSequenceTypeAppWizardField.allocationSize(value.fields) ++ FfiConverterTypeAppWizardLabels.allocationSize(value.labels);}};return new FFIConverter();})();-export enum KvFormMode {+/**+ * One decoded video frame : packed top-down BGRA.+ */+export type DecodedVideoFrame = {/**- * No vault yet.+ * Per-target frame sequence.*/- Setup = "setup",+ sequence: bigint,/**- * The vault is locked.+ * Width in pixels.*/- Unlock = "unlock"-}--const FfiConverterTypeKvFormMode = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvFormMode;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvFormMode.Setup;- case 2: return KvFormMode.Unlock;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvFormMode.Setup: return ordinalConverter.write(1, into);- case KvFormMode.Unlock: return ordinalConverter.write(2, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum KvMethod {+ width: number,/**- * The OS key store (the login keychain), confirmed with Touch ID.+ * Height in pixels.*/- TouchId = "touchId",+ height: number,/**- * A passphrase.+ * Bytes per row (`width * 4`).*/- Passphrase = "passphrase"-}--const FfiConverterTypeKvMethod = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvMethod;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvMethod.TouchId;- case 2: return KvMethod.Passphrase;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvMethod.TouchId: return ordinalConverter.write(1, into);- case KvMethod.Passphrase: return ordinalConverter.write(2, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type KvCredentialForm = {+ stride: number,/**- * Setup or unlock.+ * Pixel format; always `bgra`.*/- mode: KvFormMode,+ format: string,/**- * Touch ID or a passphrase.+ * Media-clock capture time (µs).*/- method: KvMethod,+ captureTimestampUs: bigint,/**- * One line under the form.+ * Decoder configuration generation of the source frame.*/- help: string,+ codecEpoch: bigint,/**- * The passphrase field's label (passphrase only).+ * Coordinate generation.*/- passphraseLabel?: string,+ geometryEpoch: bigint,/**- * The second field's label (passphrase setup only).+ * The source access unit was a keyframe.*/- confirmLabel?: string,+ keyframe: boolean,/**- * The button.+ * Bytes of the source (encoded) access unit.*/- submitLabel: string+ encodedSize: bigint,+ /**+ * When the encoded frame reached the decoder (Unix µs, this host).+ */+ receivedAtUs: bigint,+ /**+ * Time spent decoding and converting it (µs).+ */+ decodeDurationUs: bigint,+ /**+ * Pixels.+ */+ data: ArrayBuffer}/**- * Generated factory for {@link KvCredentialForm} record objects.+ * Generated factory for {@link DecodedVideoFrame} record objects.*/-export const KvCredentialForm = (() => {+export const DecodedVideoFrame = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvCredentialForm, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<DecodedVideoFrame, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvCredentialForm>,+ defaults: () => Object.freeze(defaults()) as Partial<DecodedVideoFrame>,});})();-const FfiConverterTypeKvCredentialForm = (() => {- type TypeName = KvCredentialForm;+const FfiConverterTypeDecodedVideoFrame = (() => {+ type TypeName = DecodedVideoFrame;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- mode: FfiConverterTypeKvFormMode.read(from),- method: FfiConverterTypeKvMethod.read(from),- help: FfiConverterString.read(from),- passphraseLabel: FfiConverterOptionalString.read(from),- confirmLabel: FfiConverterOptionalString.read(from),- submitLabel: FfiConverterString.read(from)+ sequence: FfiConverterUInt64.read(from),+ width: FfiConverterUInt32.read(from),+ height: FfiConverterUInt32.read(from),+ stride: FfiConverterUInt32.read(from),+ format: FfiConverterString.read(from),+ captureTimestampUs: FfiConverterUInt64.read(from),+ codecEpoch: FfiConverterUInt64.read(from),+ geometryEpoch: FfiConverterUInt64.read(from),+ keyframe: FfiConverterBool.read(from),+ encodedSize: FfiConverterUInt64.read(from),+ receivedAtUs: FfiConverterUInt64.read(from),+ decodeDurationUs: FfiConverterUInt64.read(from),+ data: FfiConverterArrayBuffer.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeKvFormMode.write(value.mode, into);- FfiConverterTypeKvMethod.write(value.method, into);- FfiConverterString.write(value.help, into);- FfiConverterOptionalString.write(value.passphraseLabel, into);- FfiConverterOptionalString.write(value.confirmLabel, into);- FfiConverterString.write(value.submitLabel, into);+ FfiConverterUInt64.write(value.sequence, into);+ FfiConverterUInt32.write(value.width, into);+ FfiConverterUInt32.write(value.height, into);+ FfiConverterUInt32.write(value.stride, into);+ FfiConverterString.write(value.format, into);+ FfiConverterUInt64.write(value.captureTimestampUs, into);+ FfiConverterUInt64.write(value.codecEpoch, into);+ FfiConverterUInt64.write(value.geometryEpoch, into);+ FfiConverterBool.write(value.keyframe, into);+ FfiConverterUInt64.write(value.encodedSize, into);+ FfiConverterUInt64.write(value.receivedAtUs, into);+ FfiConverterUInt64.write(value.decodeDurationUs, into);+ FfiConverterArrayBuffer.write(value.data, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeKvFormMode.allocationSize(value.mode) +- FfiConverterTypeKvMethod.allocationSize(value.method) +- FfiConverterString.allocationSize(value.help) +- FfiConverterOptionalString.allocationSize(value.passphraseLabel) +- FfiConverterOptionalString.allocationSize(value.confirmLabel) +- FfiConverterString.allocationSize(value.submitLabel);+ return FfiConverterUInt64.allocationSize(value.sequence) ++ FfiConverterUInt32.allocationSize(value.width) ++ FfiConverterUInt32.allocationSize(value.height) ++ FfiConverterUInt32.allocationSize(value.stride) ++ FfiConverterString.allocationSize(value.format) ++ FfiConverterUInt64.allocationSize(value.captureTimestampUs) ++ FfiConverterUInt64.allocationSize(value.codecEpoch) ++ FfiConverterUInt64.allocationSize(value.geometryEpoch) ++ FfiConverterBool.allocationSize(value.keyframe) ++ FfiConverterUInt64.allocationSize(value.encodedSize) ++ FfiConverterUInt64.allocationSize(value.receivedAtUs) ++ FfiConverterUInt64.allocationSize(value.decodeDurationUs) ++ FfiConverterArrayBuffer.allocationSize(value.data);}};return new FFIConverter();})();-export enum KvDecisionTone {+export type KvStatus = {/**- * Allowed or delivered.+ * Version.*/- Ok = "ok",+ version: string,/**- * Denied, refused, failed.+ * A vault exists.*/- Deny = "deny",+ initialized: boolean,/**- * Everything else.+ * Unlocked.*/- Info = "info"-}--const FfiConverterTypeKvDecisionTone = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvDecisionTone;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvDecisionTone.Ok;- case 2: return KvDecisionTone.Deny;- case 3: return KvDecisionTone.Info;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvDecisionTone.Ok: return ordinalConverter.write(1, into);- case KvDecisionTone.Deny: return ordinalConverter.write(2, into);- case KvDecisionTone.Info: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type KvDecision = {+ unlocked: boolean,/**- * The entry.+ * The kill switch is on.*/- entry: KvAuditEntry,+ disabled: boolean,/**- * "Approved".+ * This app is first party.*/- verb: string,+ callerFirstParty: boolean,/**- * Tone.+ * How the broker sees this app.*/- tone: KvDecisionTone,+ callerDisplay: string,/**- * Item and target, or the actor.+ * Items.*/- what: string+ items: number,+ /**+ * Pending requests.+ */+ pending: number,+ /**+ * `auto` or `presence`.+ */+ unlockPolicy?: string,+ /**+ * Delivered copies wipe themselves after their TTL (off by default;+ * none: not told, a broker before the setting or a third party).+ */+ autoWipe?: boolean,+ /**+ * The daemon can create the OS key store protector (setup offers Touch+ * ID); false for a development daemon, which is passphrase-only.+ */+ osProtectorAvailable: boolean,+ /**+ * A passphrase can always be chosen.+ */+ passphraseAvailable: boolean,+ /**+ * Protector kinds that can unlock this vault now (`macos-keychain`,+ * `windows-credential`, `linux-secret-service`, `passphrase`, `recovery`).+ */+ unlockProtectors: Array<string>,+ /**+ * The browse window is open until this time, Unix ms: item names are+ * visible until then.+ */+ browseUntilMs?: bigint,+ /**+ * "Never ask again" on the unlock prompt is on.+ */+ skipUnlockPrompt?: boolean,+ /**+ * An earlier preview's vault was found and set aside.+ */+ resetNotice?: string}/**- * Generated factory for {@link KvDecision} record objects.+ * Generated factory for {@link KvStatus} record objects.*/-export const KvDecision = (() => {+export const KvStatus = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvDecision, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvStatus, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvDecision>,+ defaults: () => Object.freeze(defaults()) as Partial<KvStatus>,});})();-const FfiConverterTypeKvDecision = (() => {- type TypeName = KvDecision;+const FfiConverterTypeKvStatus = (() => {+ type TypeName = KvStatus;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- entry: FfiConverterTypeKvAuditEntry.read(from),- verb: FfiConverterString.read(from),- tone: FfiConverterTypeKvDecisionTone.read(from),- what: FfiConverterString.read(from)+ version: FfiConverterString.read(from),+ initialized: FfiConverterBool.read(from),+ unlocked: FfiConverterBool.read(from),+ disabled: FfiConverterBool.read(from),+ callerFirstParty: FfiConverterBool.read(from),+ callerDisplay: FfiConverterString.read(from),+ items: FfiConverterUInt32.read(from),+ pending: FfiConverterUInt32.read(from),+ unlockPolicy: FfiConverterOptionalString.read(from),+ autoWipe: FfiConverterOptionalBoolean.read(from),+ osProtectorAvailable: FfiConverterBool.read(from),+ passphraseAvailable: FfiConverterBool.read(from),+ unlockProtectors: FfiConverterSequenceString.read(from),+ browseUntilMs: FfiConverterOptionalUInt64.read(from),+ skipUnlockPrompt: FfiConverterOptionalBoolean.read(from),+ resetNotice: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeKvAuditEntry.write(value.entry, into);- FfiConverterString.write(value.verb, into);- FfiConverterTypeKvDecisionTone.write(value.tone, into);- FfiConverterString.write(value.what, into);+ FfiConverterString.write(value.version, into);+ FfiConverterBool.write(value.initialized, into);+ FfiConverterBool.write(value.unlocked, into);+ FfiConverterBool.write(value.disabled, into);+ FfiConverterBool.write(value.callerFirstParty, into);+ FfiConverterString.write(value.callerDisplay, into);+ FfiConverterUInt32.write(value.items, into);+ FfiConverterUInt32.write(value.pending, into);+ FfiConverterOptionalString.write(value.unlockPolicy, into);+ FfiConverterOptionalBoolean.write(value.autoWipe, into);+ FfiConverterBool.write(value.osProtectorAvailable, into);+ FfiConverterBool.write(value.passphraseAvailable, into);+ FfiConverterSequenceString.write(value.unlockProtectors, into);+ FfiConverterOptionalUInt64.write(value.browseUntilMs, into);+ FfiConverterOptionalBoolean.write(value.skipUnlockPrompt, into);+ FfiConverterOptionalString.write(value.resetNotice, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeKvAuditEntry.allocationSize(value.entry) +- FfiConverterString.allocationSize(value.verb) +- FfiConverterTypeKvDecisionTone.allocationSize(value.tone) +- FfiConverterString.allocationSize(value.what);+ return FfiConverterString.allocationSize(value.version) ++ FfiConverterBool.allocationSize(value.initialized) ++ FfiConverterBool.allocationSize(value.unlocked) ++ FfiConverterBool.allocationSize(value.disabled) ++ FfiConverterBool.allocationSize(value.callerFirstParty) ++ FfiConverterString.allocationSize(value.callerDisplay) ++ FfiConverterUInt32.allocationSize(value.items) ++ FfiConverterUInt32.allocationSize(value.pending) ++ FfiConverterOptionalString.allocationSize(value.unlockPolicy) ++ FfiConverterOptionalBoolean.allocationSize(value.autoWipe) ++ FfiConverterBool.allocationSize(value.osProtectorAvailable) ++ FfiConverterBool.allocationSize(value.passphraseAvailable) ++ FfiConverterSequenceString.allocationSize(value.unlockProtectors) ++ FfiConverterOptionalUInt64.allocationSize(value.browseUntilMs) ++ FfiConverterOptionalBoolean.allocationSize(value.skipUnlockPrompt) ++ FfiConverterOptionalString.allocationSize(value.resetNotice);}};return new FFIConverter();})();-export type KvDeleteConfirm = {- /**- * "Delete 3 items?"- */- title: string,+export type KvItemPolicy = {/**- * What deleting does.+ * Allowed targets (empty: any).*/- message: string,+ allowedTargets: Array<string>,/**- * "Delete".+ * Delivery lifetime.*/- confirm: string,+ ttlSecs: bigint,/**- * "Cancel".+ * Unattended rules may use it.*/- cancel: string+ unattended: boolean}/**- * Generated factory for {@link KvDeleteConfirm} record objects.+ * Generated factory for {@link KvItemPolicy} record objects.*/-export const KvDeleteConfirm = (() => {+export const KvItemPolicy = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvDeleteConfirm, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvItemPolicy, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvDeleteConfirm>,+ defaults: () => Object.freeze(defaults()) as Partial<KvItemPolicy>,});})();-const FfiConverterTypeKvDeleteConfirm = (() => {- type TypeName = KvDeleteConfirm;+const FfiConverterTypeKvItemPolicy = (() => {+ type TypeName = KvItemPolicy;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- message: FfiConverterString.read(from),- confirm: FfiConverterString.read(from),- cancel: FfiConverterString.read(from)+ allowedTargets: FfiConverterSequenceString.read(from),+ ttlSecs: FfiConverterUInt64.read(from),+ unattended: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.message, into);- FfiConverterString.write(value.confirm, into);- FfiConverterString.write(value.cancel, into);+ FfiConverterSequenceString.write(value.allowedTargets, into);+ FfiConverterUInt64.write(value.ttlSecs, into);+ FfiConverterBool.write(value.unattended, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.message) +- FfiConverterString.allocationSize(value.confirm) +- FfiConverterString.allocationSize(value.cancel);+ return FfiConverterSequenceString.allocationSize(value.allowedTargets) ++ FfiConverterUInt64.allocationSize(value.ttlSecs) ++ FfiConverterBool.allocationSize(value.unattended);}};return new FFIConverter();})();-export type KvFavicon = {+export type KvItem = {/**- * The site (registrable domain).+ * Id.*/- site: string,+ id: string,/**- * PNG, base64.+ * `cookie`, `local_storage`, `password` or `file`.*/- png: string-}--/**- * Generated factory for {@link KvFavicon} record objects.- */-export const KvFavicon = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvFavicon, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvFavicon>,- });-})();--const FfiConverterTypeKvFavicon = (() => {- type TypeName = KvFavicon;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- site: FfiConverterString.read(from),- png: FfiConverterString.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.site, into);- FfiConverterString.write(value.png, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.site) +- FfiConverterString.allocationSize(value.png);-- }- };- return new FFIConverter();-})();--export type KvInventory = {+ kind: string,/**- * Provider id.+ * The source app (`chrome`, `slack`).*/providerId: string,/**- * App name.+ * The app's name.*/appDisplay: string,/**- * Domains with counts.+ * A cookie's host, a storage value's or password's origin; none for a+ * file or when the names are hidden.*/- domains: Array<KvDomainCount>,+ domain?: string,/**- * Notes.+ * A cookie name, storage key, username or file path; empty when the+ * names are hidden.*/- notes: Array<string>+ key: string,+ /**+ * A cookie's path.+ */+ path?: string,+ /**+ * Profile.+ */+ source: string,+ /**+ * A cookie without an expiry.+ */+ session: boolean,+ /**+ * A cookie's expiry, Unix ms.+ */+ expiresMs?: bigint,+ /**+ * Bytes.+ */+ bytes: bigint,+ /**+ * The blob a big file's bytes live in.+ */+ blob?: string,+ /**+ * Identity providers always ask: they cannot be unlocked.+ */+ identityProvider: boolean,+ /**+ * Policy: `unattended` is the unlock.+ */+ policy: KvItemPolicy,+ /**+ * Created.+ */+ createdMs: bigint,+ /**+ * Last saved.+ */+ updatedMs: bigint,+ /**+ * Revision.+ */+ rev: bigint,+ /**+ * Digest.+ */+ recordDigest: string}/**- * Generated factory for {@link KvInventory} record objects.+ * Generated factory for {@link KvItem} record objects.*/-export const KvInventory = (() => {+export const KvItem = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvInventory, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvItem, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvInventory>,+ defaults: () => Object.freeze(defaults()) as Partial<KvItem>,});})();-const FfiConverterTypeKvInventory = (() => {- type TypeName = KvInventory;+const FfiConverterTypeKvItem = (() => {+ type TypeName = KvItem;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {+ id: FfiConverterString.read(from),+ kind: FfiConverterString.read(from),providerId: FfiConverterString.read(from),appDisplay: FfiConverterString.read(from),- domains: FfiConverterSequenceTypeKvDomainCount.read(from),- notes: FfiConverterSequenceString.read(from)+ domain: FfiConverterOptionalString.read(from),+ key: FfiConverterString.read(from),+ path: FfiConverterOptionalString.read(from),+ source: FfiConverterString.read(from),+ session: FfiConverterBool.read(from),+ expiresMs: FfiConverterOptionalInt64.read(from),+ bytes: FfiConverterUInt64.read(from),+ blob: FfiConverterOptionalString.read(from),+ identityProvider: FfiConverterBool.read(from),+ policy: FfiConverterTypeKvItemPolicy.read(from),+ createdMs: FfiConverterUInt64.read(from),+ updatedMs: FfiConverterUInt64.read(from),+ rev: FfiConverterUInt64.read(from),+ recordDigest: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.kind, into);FfiConverterString.write(value.providerId, into);FfiConverterString.write(value.appDisplay, into);- FfiConverterSequenceTypeKvDomainCount.write(value.domains, into);- FfiConverterSequenceString.write(value.notes, into);+ FfiConverterOptionalString.write(value.domain, into);+ FfiConverterString.write(value.key, into);+ FfiConverterOptionalString.write(value.path, into);+ FfiConverterString.write(value.source, into);+ FfiConverterBool.write(value.session, into);+ FfiConverterOptionalInt64.write(value.expiresMs, into);+ FfiConverterUInt64.write(value.bytes, into);+ FfiConverterOptionalString.write(value.blob, into);+ FfiConverterBool.write(value.identityProvider, into);+ FfiConverterTypeKvItemPolicy.write(value.policy, into);+ FfiConverterUInt64.write(value.createdMs, into);+ FfiConverterUInt64.write(value.updatedMs, into);+ FfiConverterUInt64.write(value.rev, into);+ FfiConverterString.write(value.recordDigest, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.providerId) ++ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.providerId) +FfiConverterString.allocationSize(value.appDisplay) +- FfiConverterSequenceTypeKvDomainCount.allocationSize(value.domains) +- FfiConverterSequenceString.allocationSize(value.notes);+ FfiConverterOptionalString.allocationSize(value.domain) ++ FfiConverterString.allocationSize(value.key) ++ FfiConverterOptionalString.allocationSize(value.path) ++ FfiConverterString.allocationSize(value.source) ++ FfiConverterBool.allocationSize(value.session) ++ FfiConverterOptionalInt64.allocationSize(value.expiresMs) ++ FfiConverterUInt64.allocationSize(value.bytes) ++ FfiConverterOptionalString.allocationSize(value.blob) ++ FfiConverterBool.allocationSize(value.identityProvider) ++ FfiConverterTypeKvItemPolicy.allocationSize(value.policy) ++ FfiConverterUInt64.allocationSize(value.createdMs) ++ FfiConverterUInt64.allocationSize(value.updatedMs) ++ FfiConverterUInt64.allocationSize(value.rev) ++ FfiConverterString.allocationSize(value.recordDigest);}};return new FFIConverter();})();-export type KvLabels = {- /**- * "Deny".- */- deny: string,- /**- * "Review…" (opens the approval sheet).- */- review: string,- /**- * "Cancel".- */- cancel: string,- /**- * "Set up Keyvault".- */- setUp: string,++// Enum: KvSigning+export enum KvSigning_Tags {+ Signed = "Signed",+ AdHoc = "AdHoc",+ Unsigned = "Unsigned",+ Unknown = "Unknown"+}+export const KvSigning = (() => {++ type Signed__interface = {+ tag: KvSigning_Tags.Signed;+ inner:+Readonly<{teamId: string; identifier: string; cdhash: string}>+ };/**- * "Unlock".+ * Team-signed.*/- unlock: string,+ class Signed_ extends UniffiEnum implements Signed__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSigning";+ readonly tag = KvSigning_Tags.Signed;+ readonly inner:+Readonly<{teamId: string; identifier: string; cdhash: string}>;+ constructor(+inner: {teamId: string; identifier: string; cdhash: string }) {+ super("KvSigning", "Signed");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {teamId: string; identifier: string; cdhash: string }): Signed_ {+ return new Signed_(inner);+ }++ static instanceOf(obj: any): obj is Signed_ {+ return obj.tag === KvSigning_Tags.Signed;+ }++ }++ type AdHoc__interface = {+ tag: KvSigning_Tags.AdHoc;+ inner:+Readonly<{identifier: string; cdhash: string}>+ };/**- * "Revoke all".+ * Ad hoc.*/- revokeAll: string,+ class AdHoc_ extends UniffiEnum implements AdHoc__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSigning";+ readonly tag = KvSigning_Tags.AdHoc;+ readonly inner:+Readonly<{identifier: string; cdhash: string}>;+ constructor(+inner: {identifier: string; cdhash: string }) {+ super("KvSigning", "AdHoc");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {identifier: string; cdhash: string }): AdHoc_ {+ return new AdHoc_(inner);+ }++ static instanceOf(obj: any): obj is AdHoc_ {+ return obj.tag === KvSigning_Tags.AdHoc;+ }++ }++ type Unsigned__interface = {+ tag: KvSigning_Tags.Unsigned+ };/**- * Under the approval sheet.+ * Unsigned.*/- confirmNote: string,+ class Unsigned_ extends UniffiEnum implements Unsigned__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSigning";+ readonly tag = KvSigning_Tags.Unsigned;+ constructor() {+ super("KvSigning", "Unsigned");+ }++ static new(): Unsigned_ {+ return new Unsigned_();+ }++ static instanceOf(obj: any): obj is Unsigned_ {+ return obj.tag === KvSigning_Tags.Unsigned;+ }++ }++ type Unknown__interface = {+ tag: KvSigning_Tags.Unknown+ };/**- * "Protection".+ * Unknown platform.*/- protectionTitle: string-}+ class Unknown_ extends UniffiEnum implements Unknown__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSigning";+ readonly tag = KvSigning_Tags.Unknown;+ constructor() {+ super("KvSigning", "Unknown");+ }++ static new(): Unknown_ {+ return new Unknown_();+ }++ static instanceOf(obj: any): obj is Unknown_ {+ return obj.tag === KvSigning_Tags.Unknown;+ }++ }++ function instanceOf(obj: any): obj is KvSigning {+ return obj[uniffiTypeNameSymbol] === "KvSigning";+ }-/**- * Generated factory for {@link KvLabels} record objects.- */-export const KvLabels = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvLabels, ReturnType<typeof defaults>>(defaults);- })();return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvLabels>,+ instanceOf,+ Signed: Signed_,+ AdHoc: AdHoc_,+ Unsigned: Unsigned_,+ Unknown: Unknown_});+})();+export type KvSigning = InstanceType<+ typeof KvSigning['Signed' | 'AdHoc' | 'Unsigned' | 'Unknown']+>;-const FfiConverterTypeKvLabels = (() => {- type TypeName = KvLabels;+// FfiConverter for enum KvSigning+const FfiConverterTypeKvSigning = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvSigning;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- deny: FfiConverterString.read(from),- review: FfiConverterString.read(from),- cancel: FfiConverterString.read(from),- setUp: FfiConverterString.read(from),- unlock: FfiConverterString.read(from),- revokeAll: FfiConverterString.read(from),- confirmNote: FfiConverterString.read(from),- protectionTitle: FfiConverterString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return new KvSigning.Signed({teamId: FfiConverterString.read(from), identifier: FfiConverterString.read(from), cdhash: FfiConverterString.read(from) });+ case 2: return new KvSigning.AdHoc({identifier: FfiConverterString.read(from), cdhash: FfiConverterString.read(from) });+ case 3: return new KvSigning.Unsigned();+ case 4: return new KvSigning.Unknown();+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.deny, into);- FfiConverterString.write(value.review, into);- FfiConverterString.write(value.cancel, into);- FfiConverterString.write(value.setUp, into);- FfiConverterString.write(value.unlock, into);- FfiConverterString.write(value.revokeAll, into);- FfiConverterString.write(value.confirmNote, into);- FfiConverterString.write(value.protectionTitle, into);+ switch (value.tag) {+ case KvSigning_Tags.Signed: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterString.write(inner.teamId, into);+ FfiConverterString.write(inner.identifier, into);+ FfiConverterString.write(inner.cdhash, into);+ return;+ }+ case KvSigning_Tags.AdHoc: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.identifier, into);+ FfiConverterString.write(inner.cdhash, into);+ return;+ }+ case KvSigning_Tags.Unsigned: {+ ordinalConverter.write(3, into);+ return;+ }+ case KvSigning_Tags.Unknown: {+ ordinalConverter.write(4, into);+ return;+ }+ default:+ // Throwing from here means that KvSigning_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.deny) +- FfiConverterString.allocationSize(value.review) +- FfiConverterString.allocationSize(value.cancel) +- FfiConverterString.allocationSize(value.setUp) +- FfiConverterString.allocationSize(value.unlock) +- FfiConverterString.allocationSize(value.revokeAll) +- FfiConverterString.allocationSize(value.confirmNote) +- FfiConverterString.allocationSize(value.protectionTitle);-+ switch (value.tag) {+ case KvSigning_Tags.Signed: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterString.allocationSize(inner.teamId);+ size += FfiConverterString.allocationSize(inner.identifier);+ size += FfiConverterString.allocationSize(inner.cdhash);+ return size;+ }+ case KvSigning_Tags.AdHoc: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterString.allocationSize(inner.identifier);+ size += FfiConverterString.allocationSize(inner.cdhash);+ return size;+ }+ case KvSigning_Tags.Unsigned: {+ return ordinalConverter.allocationSize(3);+ }+ case KvSigning_Tags.Unknown: {+ return ordinalConverter.allocationSize(4);+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- };+ }return new FFIConverter();})();-export type KvPendingRow = {+export type KvCaller = {/**- * Request id.+ * Pid.*/- id: string,+ pid: number,/**- * Short caller.+ * Uid.*/- caller: string,+ uid: number,/**- * Signing badge.+ * Executable.*/- badge: KvSigningBadge,+ path?: string,/**- * What and where.+ * Signing.*/- summary: string,+ signing: KvSigning,/**- * For how long.+ * Satisfied the Cua requirement.*/- wants: string,+ firstParty: boolean,/**- * Unverified claims (tooltip).+ * The OS verified the signature.*/- claims: Array<string>+ osVerified: boolean,+ /**+ * Launched by.+ */+ launchedBy?: string,+ /**+ * OS-verified leaf name.+ */+ verifiedName?: string}/**- * Generated factory for {@link KvPendingRow} record objects.+ * Generated factory for {@link KvCaller} record objects.*/-export const KvPendingRow = (() => {+export const KvCaller = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvPendingRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvCaller, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvPendingRow>,+ defaults: () => Object.freeze(defaults()) as Partial<KvCaller>,});})();-const FfiConverterTypeKvPendingRow = (() => {- type TypeName = KvPendingRow;+const FfiConverterTypeKvCaller = (() => {+ type TypeName = KvCaller;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- caller: FfiConverterString.read(from),- badge: FfiConverterTypeKvSigningBadge.read(from),- summary: FfiConverterString.read(from),- wants: FfiConverterString.read(from),- claims: FfiConverterSequenceString.read(from)+ pid: FfiConverterInt32.read(from),+ uid: FfiConverterUInt32.read(from),+ path: FfiConverterOptionalString.read(from),+ signing: FfiConverterTypeKvSigning.read(from),+ firstParty: FfiConverterBool.read(from),+ osVerified: FfiConverterBool.read(from),+ launchedBy: FfiConverterOptionalString.read(from),+ verifiedName: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.caller, into);- FfiConverterTypeKvSigningBadge.write(value.badge, into);- FfiConverterString.write(value.summary, into);- FfiConverterString.write(value.wants, into);- FfiConverterSequenceString.write(value.claims, into);- }+ FfiConverterInt32.write(value.pid, into);+ FfiConverterUInt32.write(value.uid, into);+ FfiConverterOptionalString.write(value.path, into);+ FfiConverterTypeKvSigning.write(value.signing, into);+ FfiConverterBool.write(value.firstParty, into);+ FfiConverterBool.write(value.osVerified, into);+ FfiConverterOptionalString.write(value.launchedBy, into);+ FfiConverterOptionalString.write(value.verifiedName, into);+ }allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.caller) +- FfiConverterTypeKvSigningBadge.allocationSize(value.badge) +- FfiConverterString.allocationSize(value.summary) +- FfiConverterString.allocationSize(value.wants) +- FfiConverterSequenceString.allocationSize(value.claims);+ return FfiConverterInt32.allocationSize(value.pid) ++ FfiConverterUInt32.allocationSize(value.uid) ++ FfiConverterOptionalString.allocationSize(value.path) ++ FfiConverterTypeKvSigning.allocationSize(value.signing) ++ FfiConverterBool.allocationSize(value.firstParty) ++ FfiConverterBool.allocationSize(value.osVerified) ++ FfiConverterOptionalString.allocationSize(value.launchedBy) ++ FfiConverterOptionalString.allocationSize(value.verifiedName);}};return new FFIConverter();})();-export type KvRecentRow = {++// Enum: KvSelector+export enum KvSelector_Tags {+ Item = "Item",+ Site = "Site",+ App = "App",+ Login = "Login"+}+export const KvSelector = (() => {++ type Item__interface = {+ tag: KvSelector_Tags.Item;+ inner:+Readonly<{id: string}>+ };/**- * The decision.+ * An existing item.*/- decision: KvDecision,+ class Item_ extends UniffiEnum implements Item__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSelector";+ readonly tag = KvSelector_Tags.Item;+ readonly inner:+Readonly<{id: string}>;+ constructor(+inner: {id: string }) {+ super("KvSelector", "Item");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {id: string }): Item_ {+ return new Item_(inner);+ }++ static instanceOf(obj: any): obj is Item_ {+ return obj.tag === KvSelector_Tags.Item;+ }++ }++ type Site__interface = {+ tag: KvSelector_Tags.Site;+ inner:+Readonly<{app: string; site: string}>+ };/**- * "now", "5 min ago".+ * A site of an app.*/- age: string-}+ class Site_ extends UniffiEnum implements Site__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSelector";+ readonly tag = KvSelector_Tags.Site;+ readonly inner:+Readonly<{app: string; site: string}>;+ constructor(+inner: {app: string; site: string }) {+ super("KvSelector", "Site");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {app: string; site: string }): Site_ {+ return new Site_(inner);+ }++ static instanceOf(obj: any): obj is Site_ {+ return obj.tag === KvSelector_Tags.Site;+ }++ }++ type App__interface = {+ tag: KvSelector_Tags.App;+ inner:+Readonly<{app: string}>+ };+ /**+ * A whole app.+ */+ class App_ extends UniffiEnum implements App__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSelector";+ readonly tag = KvSelector_Tags.App;+ readonly inner:+Readonly<{app: string}>;+ constructor(+inner: {app: string }) {+ super("KvSelector", "App");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {app: string }): App_ {+ return new App_(inner);+ }++ static instanceOf(obj: any): obj is App_ {+ return obj.tag === KvSelector_Tags.App;+ }++ }++ type Login__interface = {+ tag: KvSelector_Tags.Login;+ inner:+Readonly<{site: string}>+ };+ /**+ * A site's saved password, used to sign in (never delivered).+ */+ class Login_ extends UniffiEnum implements Login__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvSelector";+ readonly tag = KvSelector_Tags.Login;+ readonly inner:+Readonly<{site: string}>;+ constructor(+inner: {site: string }) {+ super("KvSelector", "Login");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {site: string }): Login_ {+ return new Login_(inner);+ }++ static instanceOf(obj: any): obj is Login_ {+ return obj.tag === KvSelector_Tags.Login;+ }++ }++ function instanceOf(obj: any): obj is KvSelector {+ return obj[uniffiTypeNameSymbol] === "KvSelector";+ }-/**- * Generated factory for {@link KvRecentRow} record objects.- */-export const KvRecentRow = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvRecentRow, ReturnType<typeof defaults>>(defaults);- })();return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvRecentRow>,+ instanceOf,+ Item: Item_,+ Site: Site_,+ App: App_,+ Login: Login_});+})();+export type KvSelector = InstanceType<+ typeof KvSelector['Item' | 'Site' | 'App' | 'Login']+>;-const FfiConverterTypeKvRecentRow = (() => {- type TypeName = KvRecentRow;+// FfiConverter for enum KvSelector+const FfiConverterTypeKvSelector = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvSelector;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- decision: FfiConverterTypeKvDecision.read(from),- age: FfiConverterString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return new KvSelector.Item({id: FfiConverterString.read(from) });+ case 2: return new KvSelector.Site({app: FfiConverterString.read(from), site: FfiConverterString.read(from) });+ case 3: return new KvSelector.App({app: FfiConverterString.read(from) });+ case 4: return new KvSelector.Login({site: FfiConverterString.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeKvDecision.write(value.decision, into);- FfiConverterString.write(value.age, into);+ switch (value.tag) {+ case KvSelector_Tags.Item: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ return;+ }+ case KvSelector_Tags.Site: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.app, into);+ FfiConverterString.write(inner.site, into);+ return;+ }+ case KvSelector_Tags.App: {+ ordinalConverter.write(3, into);+ const inner = value.inner;+ FfiConverterString.write(inner.app, into);+ return;+ }+ case KvSelector_Tags.Login: {+ ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterString.write(inner.site, into);+ return;+ }+ default:+ // Throwing from here means that KvSelector_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }}allocationSize(value: TypeName): number {- return FfiConverterTypeKvDecision.allocationSize(value.decision) +- FfiConverterString.allocationSize(value.age);-+ switch (value.tag) {+ case KvSelector_Tags.Item: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterString.allocationSize(inner.id);+ return size;+ }+ case KvSelector_Tags.Site: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterString.allocationSize(inner.app);+ size += FfiConverterString.allocationSize(inner.site);+ return size;+ }+ case KvSelector_Tags.App: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(3);+ size += FfiConverterString.allocationSize(inner.app);+ return size;+ }+ case KvSelector_Tags.Login: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterString.allocationSize(inner.site);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- };+ }return new FFIConverter();})();-export type KvListView = {+export type KvAccessRequest = {/**- * Title.+ * What.*/- title: string,+ selectors: Array<KvSelector>,/**- * The vault list shows (All Items, or one app).+ * Where.*/- vault: boolean,+ targets: Array<string>,/**- * Waiting.+ * Actions.*/- pending: Array<KvPendingRow>,+ actions: Array<string>,/**- * Access.+ * For how long.*/- access: Array<KvAccessRow>,+ durationSecs?: bigint,/**- * Recent.+ * Uses.*/- recent: Array<KvRecentRow>,+ uses?: number,/**- * "Nothing is waiting." and friends.+ * The caller's reason (unverified).*/- emptyText?: string+ reason: string,+ /**+ * The caller's name for itself (unverified).+ */+ claimedName?: string,+ /**+ * The named agent the request is for (unverified).+ */+ agent?: string}/**- * Generated factory for {@link KvListView} record objects.+ * Generated factory for {@link KvAccessRequest} record objects.*/-export const KvListView = (() => {+export const KvAccessRequest = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvListView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvAccessRequest, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvListView>,+ defaults: () => Object.freeze(defaults()) as Partial<KvAccessRequest>,});})();-const FfiConverterTypeKvListView = (() => {- type TypeName = KvListView;+const FfiConverterTypeKvAccessRequest = (() => {+ type TypeName = KvAccessRequest;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- vault: FfiConverterBool.read(from),- pending: FfiConverterSequenceTypeKvPendingRow.read(from),- access: FfiConverterSequenceTypeKvAccessRow.read(from),- recent: FfiConverterSequenceTypeKvRecentRow.read(from),- emptyText: FfiConverterOptionalString.read(from)+ selectors: FfiConverterSequenceTypeKvSelector.read(from),+ targets: FfiConverterSequenceString.read(from),+ actions: FfiConverterSequenceString.read(from),+ durationSecs: FfiConverterOptionalUInt64.read(from),+ uses: FfiConverterOptionalUInt32.read(from),+ reason: FfiConverterString.read(from),+ claimedName: FfiConverterOptionalString.read(from),+ agent: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterBool.write(value.vault, into);- FfiConverterSequenceTypeKvPendingRow.write(value.pending, into);- FfiConverterSequenceTypeKvAccessRow.write(value.access, into);- FfiConverterSequenceTypeKvRecentRow.write(value.recent, into);- FfiConverterOptionalString.write(value.emptyText, into);+ FfiConverterSequenceTypeKvSelector.write(value.selectors, into);+ FfiConverterSequenceString.write(value.targets, into);+ FfiConverterSequenceString.write(value.actions, into);+ FfiConverterOptionalUInt64.write(value.durationSecs, into);+ FfiConverterOptionalUInt32.write(value.uses, into);+ FfiConverterString.write(value.reason, into);+ FfiConverterOptionalString.write(value.claimedName, into);+ FfiConverterOptionalString.write(value.agent, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterBool.allocationSize(value.vault) +- FfiConverterSequenceTypeKvPendingRow.allocationSize(value.pending) +- FfiConverterSequenceTypeKvAccessRow.allocationSize(value.access) +- FfiConverterSequenceTypeKvRecentRow.allocationSize(value.recent) +- FfiConverterOptionalString.allocationSize(value.emptyText);+ return FfiConverterSequenceTypeKvSelector.allocationSize(value.selectors) ++ FfiConverterSequenceString.allocationSize(value.targets) ++ FfiConverterSequenceString.allocationSize(value.actions) ++ FfiConverterOptionalUInt64.allocationSize(value.durationSecs) ++ FfiConverterOptionalUInt32.allocationSize(value.uses) ++ FfiConverterString.allocationSize(value.reason) ++ FfiConverterOptionalString.allocationSize(value.claimedName) ++ FfiConverterOptionalString.allocationSize(value.agent);}};return new FFIConverter();})();-export type KvPage = {- /**- * Items can be shown.- */- ready: boolean,- /**- * The unavailable heading.- */- unavailableTitle?: string,+export type KvPending = {/**- * The broker's sentence.+ * Id.*/- message?: string,+ id: string,/**- * "Set up Keyvault" shows.+ * Verified caller.*/- canSetup: boolean,+ caller: KvCaller,/**- * "Unlock" shows.+ * Fingerprint.*/- canUnlock: boolean,+ callerFp: string,/**- * The Disable switch shows (this app is first party, a vault exists).+ * One-line verified identity.*/- killSwitchVisible: boolean,+ callerDisplay: string,/**- * The switch can be flipped (unlocked).+ * The request.*/- killSwitchEnabled: boolean,+ request: KvAccessRequest,/**- * The kill switch is on.+ * Existing items it resolves to.*/- disabled: boolean,+ items: Array<KvItem>,/**- * "Keyvault is off. Nothing can be teleported."+ * Selectors approval would import.*/- disabledBanner?: string,+ needsImport: Array<KvSelector>,/**- * Sections that failed to load.+ * Created.*/- partialErrors: Array<string>,+ createdMs: bigint+}++/**+ * Generated factory for {@link KvPending} record objects.+ */+export const KvPending = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvPending, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvPending>,+ });+})();++const FfiConverterTypeKvPending = (() => {+ type TypeName = KvPending;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ id: FfiConverterString.read(from),+ caller: FfiConverterTypeKvCaller.read(from),+ callerFp: FfiConverterString.read(from),+ callerDisplay: FfiConverterString.read(from),+ request: FfiConverterTypeKvAccessRequest.read(from),+ items: FfiConverterSequenceTypeKvItem.read(from),+ needsImport: FfiConverterSequenceTypeKvSelector.read(from),+ createdMs: FfiConverterUInt64.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterTypeKvCaller.write(value.caller, into);+ FfiConverterString.write(value.callerFp, into);+ FfiConverterString.write(value.callerDisplay, into);+ FfiConverterTypeKvAccessRequest.write(value.request, into);+ FfiConverterSequenceTypeKvItem.write(value.items, into);+ FfiConverterSequenceTypeKvSelector.write(value.needsImport, into);+ FfiConverterUInt64.write(value.createdMs, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterTypeKvCaller.allocationSize(value.caller) ++ FfiConverterString.allocationSize(value.callerFp) ++ FfiConverterString.allocationSize(value.callerDisplay) ++ FfiConverterTypeKvAccessRequest.allocationSize(value.request) ++ FfiConverterSequenceTypeKvItem.allocationSize(value.items) ++ FfiConverterSequenceTypeKvSelector.allocationSize(value.needsImport) ++ FfiConverterUInt64.allocationSize(value.createdMs);++ }+ };+ return new FFIConverter();+})();++export type KvGrant = {/**- * "Log verified" / "Log tampered at #n".+ * Id.*/- logStatus?: string,+ id: string,/**- * The log check failed.+ * Request.*/- logTampered: boolean,+ requestId: string,/**- * Protection facts.+ * Caller fingerprint.*/- protection: Array<AppFact>,+ callerFp: string,/**- * "Revoke all" shows (more than one live grant).+ * Caller.*/- revokeAll: boolean,+ callerDisplay: string,/**- * Items exist.+ * Items.*/- hasItems: boolean,+ items: Array<string>,/**- * Search shows (any item exists).+ * Targets.*/- searchVisible: boolean,+ targets: Array<string>,/**- * "Never ask again" on the unlock prompt is on (Settings turns it off).+ * Actions.*/- skipUnlockPrompt: boolean,+ actions: Array<string>,/**- * An earlier preview's vault was set aside: one line to show.+ * Created.*/- resetNotice?: string,+ createdMs: bigint,/**- * Pending requests (the sidebar badge).+ * Expires.*/- pendingCount: number,+ notAfterMs: bigint,/**- * The switch's tooltip (it reads "on" while the Keyvault works).+ * Uses left (none: unlimited until expiry).*/- killSwitchHelp: string,+ usesLeft?: number,/**- * The page's fixed words.+ * Revoked.*/- labels: KvLabels,+ revoked: boolean,/**- * The setup or unlock form, when one applies.+ * The named agent it was approved for.*/- form?: KvCredentialForm+ agent?: string}/**- * Generated factory for {@link KvPage} record objects.+ * Generated factory for {@link KvGrant} record objects.*/-export const KvPage = (() => {+export const KvGrant = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvPage, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvGrant, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvPage>,+ defaults: () => Object.freeze(defaults()) as Partial<KvGrant>,});})();-const FfiConverterTypeKvPage = (() => {- type TypeName = KvPage;+const FfiConverterTypeKvGrant = (() => {+ type TypeName = KvGrant;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- ready: FfiConverterBool.read(from),- unavailableTitle: FfiConverterOptionalString.read(from),- message: FfiConverterOptionalString.read(from),- canSetup: FfiConverterBool.read(from),- canUnlock: FfiConverterBool.read(from),- killSwitchVisible: FfiConverterBool.read(from),- killSwitchEnabled: FfiConverterBool.read(from),- disabled: FfiConverterBool.read(from),- disabledBanner: FfiConverterOptionalString.read(from),- partialErrors: FfiConverterSequenceString.read(from),- logStatus: FfiConverterOptionalString.read(from),- logTampered: FfiConverterBool.read(from),- protection: FfiConverterSequenceTypeAppFact.read(from),- revokeAll: FfiConverterBool.read(from),- hasItems: FfiConverterBool.read(from),- searchVisible: FfiConverterBool.read(from),- skipUnlockPrompt: FfiConverterBool.read(from),- resetNotice: FfiConverterOptionalString.read(from),- pendingCount: FfiConverterUInt32.read(from),- killSwitchHelp: FfiConverterString.read(from),- labels: FfiConverterTypeKvLabels.read(from),- form: FfiConverterOptionalTypeKvCredentialForm.read(from)+ id: FfiConverterString.read(from),+ requestId: FfiConverterString.read(from),+ callerFp: FfiConverterString.read(from),+ callerDisplay: FfiConverterString.read(from),+ items: FfiConverterSequenceString.read(from),+ targets: FfiConverterSequenceString.read(from),+ actions: FfiConverterSequenceString.read(from),+ createdMs: FfiConverterUInt64.read(from),+ notAfterMs: FfiConverterUInt64.read(from),+ usesLeft: FfiConverterOptionalUInt32.read(from),+ revoked: FfiConverterBool.read(from),+ agent: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.ready, into);- FfiConverterOptionalString.write(value.unavailableTitle, into);- FfiConverterOptionalString.write(value.message, into);- FfiConverterBool.write(value.canSetup, into);- FfiConverterBool.write(value.canUnlock, into);- FfiConverterBool.write(value.killSwitchVisible, into);- FfiConverterBool.write(value.killSwitchEnabled, into);- FfiConverterBool.write(value.disabled, into);- FfiConverterOptionalString.write(value.disabledBanner, into);- FfiConverterSequenceString.write(value.partialErrors, into);- FfiConverterOptionalString.write(value.logStatus, into);- FfiConverterBool.write(value.logTampered, into);- FfiConverterSequenceTypeAppFact.write(value.protection, into);- FfiConverterBool.write(value.revokeAll, into);- FfiConverterBool.write(value.hasItems, into);- FfiConverterBool.write(value.searchVisible, into);- FfiConverterBool.write(value.skipUnlockPrompt, into);- FfiConverterOptionalString.write(value.resetNotice, into);- FfiConverterUInt32.write(value.pendingCount, into);- FfiConverterString.write(value.killSwitchHelp, into);- FfiConverterTypeKvLabels.write(value.labels, into);- FfiConverterOptionalTypeKvCredentialForm.write(value.form, into);+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.requestId, into);+ FfiConverterString.write(value.callerFp, into);+ FfiConverterString.write(value.callerDisplay, into);+ FfiConverterSequenceString.write(value.items, into);+ FfiConverterSequenceString.write(value.targets, into);+ FfiConverterSequenceString.write(value.actions, into);+ FfiConverterUInt64.write(value.createdMs, into);+ FfiConverterUInt64.write(value.notAfterMs, into);+ FfiConverterOptionalUInt32.write(value.usesLeft, into);+ FfiConverterBool.write(value.revoked, into);+ FfiConverterOptionalString.write(value.agent, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.ready) +- FfiConverterOptionalString.allocationSize(value.unavailableTitle) +- FfiConverterOptionalString.allocationSize(value.message) +- FfiConverterBool.allocationSize(value.canSetup) +- FfiConverterBool.allocationSize(value.canUnlock) +- FfiConverterBool.allocationSize(value.killSwitchVisible) +- FfiConverterBool.allocationSize(value.killSwitchEnabled) +- FfiConverterBool.allocationSize(value.disabled) +- FfiConverterOptionalString.allocationSize(value.disabledBanner) +- FfiConverterSequenceString.allocationSize(value.partialErrors) +- FfiConverterOptionalString.allocationSize(value.logStatus) +- FfiConverterBool.allocationSize(value.logTampered) +- FfiConverterSequenceTypeAppFact.allocationSize(value.protection) +- FfiConverterBool.allocationSize(value.revokeAll) +- FfiConverterBool.allocationSize(value.hasItems) +- FfiConverterBool.allocationSize(value.searchVisible) +- FfiConverterBool.allocationSize(value.skipUnlockPrompt) +- FfiConverterOptionalString.allocationSize(value.resetNotice) +- FfiConverterUInt32.allocationSize(value.pendingCount) +- FfiConverterString.allocationSize(value.killSwitchHelp) +- FfiConverterTypeKvLabels.allocationSize(value.labels) +- FfiConverterOptionalTypeKvCredentialForm.allocationSize(value.form);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.requestId) ++ FfiConverterString.allocationSize(value.callerFp) ++ FfiConverterString.allocationSize(value.callerDisplay) ++ FfiConverterSequenceString.allocationSize(value.items) ++ FfiConverterSequenceString.allocationSize(value.targets) ++ FfiConverterSequenceString.allocationSize(value.actions) ++ FfiConverterUInt64.allocationSize(value.createdMs) ++ FfiConverterUInt64.allocationSize(value.notAfterMs) ++ FfiConverterOptionalUInt32.allocationSize(value.usesLeft) ++ FfiConverterBool.allocationSize(value.revoked) ++ FfiConverterOptionalString.allocationSize(value.agent);}};return new FFIConverter();})();-export enum KvStrength {- /**- * Too short, or easy to guess.- */- Weak = "weak",+export type KvRuleCaller = {/**- * Acceptable.+ * Fingerprint.*/- Fair = "fair",+ fp: string,/**- * Long and varied.+ * Display.*/- Strong = "strong"+ display: string}-const FfiConverterTypeKvStrength = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvStrength;+/**+ * Generated factory for {@link KvRuleCaller} record objects.+ */+export const KvRuleCaller = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvRuleCaller, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvRuleCaller>,+ });+})();++const FfiConverterTypeKvRuleCaller = (() => {+ type TypeName = KvRuleCaller;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvStrength.Weak;- case 2: return KvStrength.Fair;- case 3: return KvStrength.Strong;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ fp: FfiConverterString.read(from),+ display: FfiConverterString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvStrength.Weak: return ordinalConverter.write(1, into);- case KvStrength.Fair: return ordinalConverter.write(2, into);- case KvStrength.Strong: return ordinalConverter.write(3, into);- }+ FfiConverterString.write(value.fp, into);+ FfiConverterString.write(value.display, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.fp) ++ FfiConverterString.allocationSize(value.display);+}- }+ };return new FFIConverter();})();-export type KvPassphraseCheck = {+export type KvRule = {/**- * The button is enabled.+ * Id.*/- canSubmit: boolean,+ id: string,/**- * Setup only, once something is typed.+ * Items.*/- strength?: KvStrength,+ items: Array<string>,/**- * One short line under the fields.+ * Targets (`*`: any Space).*/- hint?: string+ targets: Array<string>,+ /**+ * Callers.+ */+ callers: Array<KvRuleCaller>,+ /**+ * Created.+ */+ createdMs: bigint,+ /**+ * Expires.+ */+ notAfterMs: bigint,+ /**+ * Enabled.+ */+ enabled: boolean,+ /**+ * Note.+ */+ note: string}/**- * Generated factory for {@link KvPassphraseCheck} record objects.+ * Generated factory for {@link KvRule} record objects.*/-export const KvPassphraseCheck = (() => {+export const KvRule = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvPassphraseCheck, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvRule, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvPassphraseCheck>,+ defaults: () => Object.freeze(defaults()) as Partial<KvRule>,});})();-const FfiConverterTypeKvPassphraseCheck = (() => {- type TypeName = KvPassphraseCheck;+const FfiConverterTypeKvRule = (() => {+ type TypeName = KvRule;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- canSubmit: FfiConverterBool.read(from),- strength: FfiConverterOptionalTypeKvStrength.read(from),- hint: FfiConverterOptionalString.read(from)+ id: FfiConverterString.read(from),+ items: FfiConverterSequenceString.read(from),+ targets: FfiConverterSequenceString.read(from),+ callers: FfiConverterSequenceTypeKvRuleCaller.read(from),+ createdMs: FfiConverterUInt64.read(from),+ notAfterMs: FfiConverterUInt64.read(from),+ enabled: FfiConverterBool.read(from),+ note: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.canSubmit, into);- FfiConverterOptionalTypeKvStrength.write(value.strength, into);- FfiConverterOptionalString.write(value.hint, into);+ FfiConverterString.write(value.id, into);+ FfiConverterSequenceString.write(value.items, into);+ FfiConverterSequenceString.write(value.targets, into);+ FfiConverterSequenceTypeKvRuleCaller.write(value.callers, into);+ FfiConverterUInt64.write(value.createdMs, into);+ FfiConverterUInt64.write(value.notAfterMs, into);+ FfiConverterBool.write(value.enabled, into);+ FfiConverterString.write(value.note, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.canSubmit) +- FfiConverterOptionalTypeKvStrength.allocationSize(value.strength) +- FfiConverterOptionalString.allocationSize(value.hint);+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterSequenceString.allocationSize(value.items) ++ FfiConverterSequenceString.allocationSize(value.targets) ++ FfiConverterSequenceTypeKvRuleCaller.allocationSize(value.callers) ++ FfiConverterUInt64.allocationSize(value.createdMs) ++ FfiConverterUInt64.allocationSize(value.notAfterMs) ++ FfiConverterBool.allocationSize(value.enabled) ++ FfiConverterString.allocationSize(value.note);}};return new FFIConverter();})();-export type KvSidebar = {+export type KvDelivery = {/**- * All Items, Waiting, Access, Recent.+ * Import id.*/- categories: Array<KvCategoryRow>,+ importId: string,/**- * One row per app, by name.+ * Target.*/- apps: Array<KvAppRow>+ target: string,+ /**+ * Provider.+ */+ providerId: string,+ /**+ * Items.+ */+ items: Array<string>,+ /**+ * Caller fingerprint.+ */+ callerFp: string,+ /**+ * Delivered.+ */+ deliveredMs: bigint,+ /**+ * Wiped at ([`KV_NO_EXPIRY`]: only when wiped).+ */+ expiresMs: bigint,+ /**+ * Already wiped.+ */+ wiped: boolean}/**- * Generated factory for {@link KvSidebar} record objects.+ * Generated factory for {@link KvDelivery} record objects.*/-export const KvSidebar = (() => {+export const KvDelivery = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvSidebar, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvDelivery, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvSidebar>,+ defaults: () => Object.freeze(defaults()) as Partial<KvDelivery>,});})();-const FfiConverterTypeKvSidebar = (() => {- type TypeName = KvSidebar;+const FfiConverterTypeKvDelivery = (() => {+ type TypeName = KvDelivery;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- categories: FfiConverterSequenceTypeKvCategoryRow.read(from),- apps: FfiConverterSequenceTypeKvAppRow.read(from)+ importId: FfiConverterString.read(from),+ target: FfiConverterString.read(from),+ providerId: FfiConverterString.read(from),+ items: FfiConverterSequenceString.read(from),+ callerFp: FfiConverterString.read(from),+ deliveredMs: FfiConverterUInt64.read(from),+ expiresMs: FfiConverterUInt64.read(from),+ wiped: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeKvCategoryRow.write(value.categories, into);- FfiConverterSequenceTypeKvAppRow.write(value.apps, into);+ FfiConverterString.write(value.importId, into);+ FfiConverterString.write(value.target, into);+ FfiConverterString.write(value.providerId, into);+ FfiConverterSequenceString.write(value.items, into);+ FfiConverterString.write(value.callerFp, into);+ FfiConverterUInt64.write(value.deliveredMs, into);+ FfiConverterUInt64.write(value.expiresMs, into);+ FfiConverterBool.write(value.wiped, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeKvCategoryRow.allocationSize(value.categories) +- FfiConverterSequenceTypeKvAppRow.allocationSize(value.apps);+ return FfiConverterString.allocationSize(value.importId) ++ FfiConverterString.allocationSize(value.target) ++ FfiConverterString.allocationSize(value.providerId) ++ FfiConverterSequenceString.allocationSize(value.items) ++ FfiConverterString.allocationSize(value.callerFp) ++ FfiConverterUInt64.allocationSize(value.deliveredMs) ++ FfiConverterUInt64.allocationSize(value.expiresMs) ++ FfiConverterBool.allocationSize(value.wiped);}};return new FFIConverter();})();-export type KvUnlockPrompt = {+export type KvAuditEntry = {/**- * "Allow unattended access?"+ * Sequence.*/- title: string,+ seq: bigint,/**- * What it allows.+ * Time.*/- message: string,+ tsMs: bigint,/**- * "3 items" (a batch), or the one item's name.+ * Kind (`consent.allow`, ...).*/- subject: string,+ kind: string,/**- * "Deny".+ * Actor.*/- deny: string,+ actor: string,/**- * "Allow".+ * Caller fingerprint.*/- allow: string,+ callerFp: string,/**- * "Never ask again".+ * Item.*/- neverAsk: string+ item?: string,+ /**+ * Target.+ */+ target?: string,+ /**+ * `ok`, `allow`, `deny`, `error`.+ */+ decision: string,+ /**+ * Detail.+ */+ detail?: string,+ /**+ * Written without the MAC key.+ */+ authless?: boolean}/**- * Generated factory for {@link KvUnlockPrompt} record objects.+ * Generated factory for {@link KvAuditEntry} record objects.*/-export const KvUnlockPrompt = (() => {+export const KvAuditEntry = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvUnlockPrompt, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvAuditEntry, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvUnlockPrompt>,+ defaults: () => Object.freeze(defaults()) as Partial<KvAuditEntry>,});})();-const FfiConverterTypeKvUnlockPrompt = (() => {- type TypeName = KvUnlockPrompt;+const FfiConverterTypeKvAuditEntry = (() => {+ type TypeName = KvAuditEntry;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- title: FfiConverterString.read(from),- message: FfiConverterString.read(from),- subject: FfiConverterString.read(from),- deny: FfiConverterString.read(from),- allow: FfiConverterString.read(from),- neverAsk: FfiConverterString.read(from)+ seq: FfiConverterUInt64.read(from),+ tsMs: FfiConverterUInt64.read(from),+ kind: FfiConverterString.read(from),+ actor: FfiConverterString.read(from),+ callerFp: FfiConverterString.read(from),+ item: FfiConverterOptionalString.read(from),+ target: FfiConverterOptionalString.read(from),+ decision: FfiConverterString.read(from),+ detail: FfiConverterOptionalString.read(from),+ authless: FfiConverterOptionalBoolean.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.message, into);- FfiConverterString.write(value.subject, into);- FfiConverterString.write(value.deny, into);- FfiConverterString.write(value.allow, into);- FfiConverterString.write(value.neverAsk, into);+ FfiConverterUInt64.write(value.seq, into);+ FfiConverterUInt64.write(value.tsMs, into);+ FfiConverterString.write(value.kind, into);+ FfiConverterString.write(value.actor, into);+ FfiConverterString.write(value.callerFp, into);+ FfiConverterOptionalString.write(value.item, into);+ FfiConverterOptionalString.write(value.target, into);+ FfiConverterString.write(value.decision, into);+ FfiConverterOptionalString.write(value.detail, into);+ FfiConverterOptionalBoolean.write(value.authless, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.message) +- FfiConverterString.allocationSize(value.subject) +- FfiConverterString.allocationSize(value.deny) +- FfiConverterString.allocationSize(value.allow) +- FfiConverterString.allocationSize(value.neverAsk);+ return FfiConverterUInt64.allocationSize(value.seq) ++ FfiConverterUInt64.allocationSize(value.tsMs) ++ FfiConverterString.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.actor) ++ FfiConverterString.allocationSize(value.callerFp) ++ FfiConverterOptionalString.allocationSize(value.item) ++ FfiConverterOptionalString.allocationSize(value.target) ++ FfiConverterString.allocationSize(value.decision) ++ FfiConverterOptionalString.allocationSize(value.detail) ++ FfiConverterOptionalBoolean.allocationSize(value.authless);}};return new FFIConverter();})();-export enum KvTri {+export type KvVerification = {/**- * All on.+ * Intact.*/- On = "on",+ ok: boolean,/**- * All off.+ * Entries.*/- Off = "off",+ entries: bigint,/**- * Some.+ * Entries without a MAC.*/- Mixed = "mixed"+ unauthenticated: bigint,+ /**+ * First tampered line.+ */+ tamperedLine?: bigint,+ /**+ * Why.+ */+ reason?: string}-const FfiConverterTypeKvTri = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvTri;+/**+ * Generated factory for {@link KvVerification} record objects.+ */+export const KvVerification = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVerification, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVerification>,+ });+})();++const FfiConverterTypeKvVerification = (() => {+ type TypeName = KvVerification;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvTri.On;- case 2: return KvTri.Off;- case 3: return KvTri.Mixed;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ ok: FfiConverterBool.read(from),+ entries: FfiConverterUInt64.read(from),+ unauthenticated: FfiConverterUInt64.read(from),+ tamperedLine: FfiConverterOptionalUInt64.read(from),+ reason: FfiConverterOptionalString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvTri.On: return ordinalConverter.write(1, into);- case KvTri.Off: return ordinalConverter.write(2, into);- case KvTri.Mixed: return ordinalConverter.write(3, into);- }+ FfiConverterBool.write(value.ok, into);+ FfiConverterUInt64.write(value.entries, into);+ FfiConverterUInt64.write(value.unauthenticated, into);+ FfiConverterOptionalUInt64.write(value.tamperedLine, into);+ FfiConverterOptionalString.write(value.reason, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterBool.allocationSize(value.ok) ++ FfiConverterUInt64.allocationSize(value.entries) ++ FfiConverterUInt64.allocationSize(value.unauthenticated) ++ FfiConverterOptionalUInt64.allocationSize(value.tamperedLine) ++ FfiConverterOptionalString.allocationSize(value.reason);+}- }+ };return new FFIConverter();})();-export enum KvLock {+export type KeyvaultOverview = {/**- * Every item needs approval for each use.+ * `ready`, or why not: `not_running`, `impostor`, `connect`,+ * `no_vault`, `locked`, `not_first_party`, `unsupported`, `error`.*/- Locked = "locked",- /**- * Every item allows unattended access.- */- Unlocked = "unlocked",- /**- * Some of each.- */- Mixed = "mixed"-}--const FfiConverterTypeKvLock = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvLock;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvLock.Locked;- case 2: return KvLock.Unlocked;- case 3: return KvLock.Mixed;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvLock.Locked: return ordinalConverter.write(1, into);- case KvLock.Unlocked: return ordinalConverter.write(2, into);- case KvLock.Mixed: return ordinalConverter.write(3, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export enum KvKind {- /**- * A cookie.- */- Cookie = "cookie",- /**- * A localStorage value.- */- LocalStorage = "localStorage",- /**- * A saved password.- */- Password = "password",+ availability: string,/**- * A file.+ * A sentence when not ready.*/- File = "file"-}--const FfiConverterTypeKvKind = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = KvKind;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return KvKind.Cookie;- case 2: return KvKind.LocalStorage;- case 3: return KvKind.Password;- case 4: return KvKind.File;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case KvKind.Cookie: return ordinalConverter.write(1, into);- case KvKind.LocalStorage: return ordinalConverter.write(2, into);- case KvKind.Password: return ordinalConverter.write(3, into);- case KvKind.File: return ordinalConverter.write(4, into);- }- }- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);- }- }- return new FFIConverter();-})();--export type KvVaultRow = {+ message?: string,/**- * Item id.+ * The broker's status.*/- id: string,+ status?: KvStatus,/**- * Type.+ * The daemon was checked against Cua's signature.*/- kind: KvKind,+ serverVerified: boolean,/**- * "Cookie".+ * The vault's secret items, in order (app, domain, key).*/- kindLabel: string,+ items: Array<KvItem>,/**- * The type's SF Symbol.+ * Domains and keys are present in `items` (the browse window is open).*/- symbol: string,+ namesVisible: boolean,/**- * The key: a cookie name, storage key, username or file name.+ * Items in the vault.*/- title: string,+ itemsTotal: number,/**- * Grey line: the domain, or the file's folder.+ * Pending requests.*/- subtitle: string,+ pending: Array<KvPending>,/**- * Grey time: "2 min ago".+ * Grants.*/- updated: string,+ grants: Array<KvGrant>,/**- * Locked (needs approval for every use).+ * Rules.*/- locked: boolean,+ rules: Array<KvRule>,/**- * The lock icon: `lock.fill` or `lock.open`.+ * Deliveries.*/- lockSymbol: string,+ deliveries: Array<KvDelivery>,/**- * The lock's tooltip and accessibility label.+ * Audit tail, oldest first.*/- lockHelp: string,+ audit: Array<KvAuditEntry>,/**- * Identity provider: always asks, cannot be unlocked.+ * Chain check.*/- identityProvider: boolean,+ auditVerification?: KvVerification,/**- * Selected.+ * Sections that failed while the rest loaded.*/- selected: boolean+ partialErrors: Array<string>}/**- * Generated factory for {@link KvVaultRow} record objects.+ * Generated factory for {@link KeyvaultOverview} record objects.*/-export const KvVaultRow = (() => {+export const KeyvaultOverview = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvVaultRow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KeyvaultOverview, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultRow>,+ defaults: () => Object.freeze(defaults()) as Partial<KeyvaultOverview>,});})();-const FfiConverterTypeKvVaultRow = (() => {- type TypeName = KvVaultRow;+const FfiConverterTypeKeyvaultOverview = (() => {+ type TypeName = KeyvaultOverview;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- kind: FfiConverterTypeKvKind.read(from),- kindLabel: FfiConverterString.read(from),- symbol: FfiConverterString.read(from),- title: FfiConverterString.read(from),- subtitle: FfiConverterString.read(from),- updated: FfiConverterString.read(from),- locked: FfiConverterBool.read(from),- lockSymbol: FfiConverterString.read(from),- lockHelp: FfiConverterString.read(from),- identityProvider: FfiConverterBool.read(from),- selected: FfiConverterBool.read(from)+ availability: FfiConverterString.read(from),+ message: FfiConverterOptionalString.read(from),+ status: FfiConverterOptionalTypeKvStatus.read(from),+ serverVerified: FfiConverterBool.read(from),+ items: FfiConverterSequenceTypeKvItem.read(from),+ namesVisible: FfiConverterBool.read(from),+ itemsTotal: FfiConverterUInt32.read(from),+ pending: FfiConverterSequenceTypeKvPending.read(from),+ grants: FfiConverterSequenceTypeKvGrant.read(from),+ rules: FfiConverterSequenceTypeKvRule.read(from),+ deliveries: FfiConverterSequenceTypeKvDelivery.read(from),+ audit: FfiConverterSequenceTypeKvAuditEntry.read(from),+ auditVerification: FfiConverterOptionalTypeKvVerification.read(from),+ partialErrors: FfiConverterSequenceString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterTypeKvKind.write(value.kind, into);- FfiConverterString.write(value.kindLabel, into);- FfiConverterString.write(value.symbol, into);- FfiConverterString.write(value.title, into);- FfiConverterString.write(value.subtitle, into);- FfiConverterString.write(value.updated, into);- FfiConverterBool.write(value.locked, into);- FfiConverterString.write(value.lockSymbol, into);- FfiConverterString.write(value.lockHelp, into);- FfiConverterBool.write(value.identityProvider, into);- FfiConverterBool.write(value.selected, into);+ FfiConverterString.write(value.availability, into);+ FfiConverterOptionalString.write(value.message, into);+ FfiConverterOptionalTypeKvStatus.write(value.status, into);+ FfiConverterBool.write(value.serverVerified, into);+ FfiConverterSequenceTypeKvItem.write(value.items, into);+ FfiConverterBool.write(value.namesVisible, into);+ FfiConverterUInt32.write(value.itemsTotal, into);+ FfiConverterSequenceTypeKvPending.write(value.pending, into);+ FfiConverterSequenceTypeKvGrant.write(value.grants, into);+ FfiConverterSequenceTypeKvRule.write(value.rules, into);+ FfiConverterSequenceTypeKvDelivery.write(value.deliveries, into);+ FfiConverterSequenceTypeKvAuditEntry.write(value.audit, into);+ FfiConverterOptionalTypeKvVerification.write(value.auditVerification, into);+ FfiConverterSequenceString.write(value.partialErrors, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterTypeKvKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.kindLabel) +- FfiConverterString.allocationSize(value.symbol) +- FfiConverterString.allocationSize(value.title) +- FfiConverterString.allocationSize(value.subtitle) +- FfiConverterString.allocationSize(value.updated) +- FfiConverterBool.allocationSize(value.locked) +- FfiConverterString.allocationSize(value.lockSymbol) +- FfiConverterString.allocationSize(value.lockHelp) +- FfiConverterBool.allocationSize(value.identityProvider) +- FfiConverterBool.allocationSize(value.selected);+ return FfiConverterString.allocationSize(value.availability) ++ FfiConverterOptionalString.allocationSize(value.message) ++ FfiConverterOptionalTypeKvStatus.allocationSize(value.status) ++ FfiConverterBool.allocationSize(value.serverVerified) ++ FfiConverterSequenceTypeKvItem.allocationSize(value.items) ++ FfiConverterBool.allocationSize(value.namesVisible) ++ FfiConverterUInt32.allocationSize(value.itemsTotal) ++ FfiConverterSequenceTypeKvPending.allocationSize(value.pending) ++ FfiConverterSequenceTypeKvGrant.allocationSize(value.grants) ++ FfiConverterSequenceTypeKvRule.allocationSize(value.rules) ++ FfiConverterSequenceTypeKvDelivery.allocationSize(value.deliveries) ++ FfiConverterSequenceTypeKvAuditEntry.allocationSize(value.audit) ++ FfiConverterOptionalTypeKvVerification.allocationSize(value.auditVerification) ++ FfiConverterSequenceString.allocationSize(value.partialErrors);}};return new FFIConverter();})();-export type KvVaultSite = {- /**- * Group key.- */- key: string,- /**- * "github.com".- */- site: string,- /**- * Items (all of them, even while closed).- */- count: number,- /**- * "12 cookies, 2 storage values".- */- counts: string,- /**- * Grey time of the newest save.- */- updated: string,- /**- * Selection of its items.- */- selected: KvTri,- /**- * Lock of its items.- */- lock: KvLock,- /**- * Items a click on the lock unlocks (locked, not identity providers).- */- unlockIds: Array<string>,+export enum KvAccessKind {/**- * Items a click on the lock locks (unlocked).+ * A grant.*/- lockIds: Array<string>,+ Grant = "grant",/**- * Open.+ * An unattended rule.*/- open: boolean,+ Rule = "rule",/**- * Its rows (empty while closed, unless searching).+ * Copies in a Space.*/- rows: Array<KvVaultRow>+ Delivery = "delivery"}-/**- * Generated factory for {@link KvVaultSite} record objects.- */-export const KvVaultSite = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvVaultSite, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultSite>,- });-})();--const FfiConverterTypeKvVaultSite = (() => {- type TypeName = KvVaultSite;+const FfiConverterTypeKvAccessKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvAccessKind;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- key: FfiConverterString.read(from),- site: FfiConverterString.read(from),- count: FfiConverterUInt32.read(from),- counts: FfiConverterString.read(from),- updated: FfiConverterString.read(from),- selected: FfiConverterTypeKvTri.read(from),- lock: FfiConverterTypeKvLock.read(from),- unlockIds: FfiConverterSequenceString.read(from),- lockIds: FfiConverterSequenceString.read(from),- open: FfiConverterBool.read(from),- rows: FfiConverterSequenceTypeKvVaultRow.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return KvAccessKind.Grant;+ case 2: return KvAccessKind.Rule;+ case 3: return KvAccessKind.Delivery;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);- FfiConverterString.write(value.site, into);- FfiConverterUInt32.write(value.count, into);- FfiConverterString.write(value.counts, into);- FfiConverterString.write(value.updated, into);- FfiConverterTypeKvTri.write(value.selected, into);- FfiConverterTypeKvLock.write(value.lock, into);- FfiConverterSequenceString.write(value.unlockIds, into);- FfiConverterSequenceString.write(value.lockIds, into);- FfiConverterBool.write(value.open, into);- FfiConverterSequenceTypeKvVaultRow.write(value.rows, into);+ switch (value) {+ case KvAccessKind.Grant: return ordinalConverter.write(1, into);+ case KvAccessKind.Rule: return ordinalConverter.write(2, into);+ case KvAccessKind.Delivery: return ordinalConverter.write(3, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.site) +- FfiConverterUInt32.allocationSize(value.count) +- FfiConverterString.allocationSize(value.counts) +- FfiConverterString.allocationSize(value.updated) +- FfiConverterTypeKvTri.allocationSize(value.selected) +- FfiConverterTypeKvLock.allocationSize(value.lock) +- FfiConverterSequenceString.allocationSize(value.unlockIds) +- FfiConverterSequenceString.allocationSize(value.lockIds) +- FfiConverterBool.allocationSize(value.open) +- FfiConverterSequenceTypeKvVaultRow.allocationSize(value.rows);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-export type KvVaultFiles = {- /**- * Group key.- */- key: string,- /**- * Files.- */- count: number,- /**- * Selection of its items.- */- selected: KvTri,- /**- * Lock of its items.- */- lock: KvLock,- /**- * Items a click on the lock unlocks (locked, not identity providers).- */- unlockIds: Array<string>,- /**- * Items a click on the lock locks (unlocked).- */- lockIds: Array<string>,- /**- * Open.- */- open: boolean,- /**- * Its rows (empty while closed, unless searching).- */- rows: Array<KvVaultRow>-}-/**- * Generated factory for {@link KvVaultFiles} record objects.- */-export const KvVaultFiles = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvVaultFiles, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultFiles>,- });-})();+// Enum: KvCommand+export enum KvCommand_Tags {+ Setup = "Setup",+ Unlock = "Unlock",+ SetDisabled = "SetDisabled",+ SetUnattended = "SetUnattended",+ SetLocked = "SetLocked",+ DeleteItems = "DeleteItems",+ SetSkipUnlockPrompt = "SetSkipUnlockPrompt",+ Browse = "Browse",+ EndBrowse = "EndBrowse",+ RevokeGrant = "RevokeGrant",+ RemoveRule = "RemoveRule",+ SetAutoWipe = "SetAutoWipe",+ Release = "Release",+ Approve = "Approve",+ Deny = "Deny"+}+export const KvCommand = (() => {-const FfiConverterTypeKvVaultFiles = (() => {- type TypeName = KvVaultFiles;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- key: FfiConverterString.read(from),- count: FfiConverterUInt32.read(from),- selected: FfiConverterTypeKvTri.read(from),- lock: FfiConverterTypeKvLock.read(from),- unlockIds: FfiConverterSequenceString.read(from),- lockIds: FfiConverterSequenceString.read(from),- open: FfiConverterBool.read(from),- rows: FfiConverterSequenceTypeKvVaultRow.read(from)- };+ type Setup__interface = {+ tag: KvCommand_Tags.Setup+ };+ /**+ * Create the vault with the OS key store (the daemon asks for+ * presence). A passphrase never travels in a command: the shells pass+ * it to `KeyvaultCommands::setup_with_passphrase` directly.+ */+ class Setup_ extends UniffiEnum implements Setup__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.Setup;+ constructor() {+ super("KvCommand", "Setup");}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);- FfiConverterUInt32.write(value.count, into);- FfiConverterTypeKvTri.write(value.selected, into);- FfiConverterTypeKvLock.write(value.lock, into);- FfiConverterSequenceString.write(value.unlockIds, into);- FfiConverterSequenceString.write(value.lockIds, into);- FfiConverterBool.write(value.open, into);- FfiConverterSequenceTypeKvVaultRow.write(value.rows, into);++ static new(): Setup_ {+ return new Setup_();}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterUInt32.allocationSize(value.count) +- FfiConverterTypeKvTri.allocationSize(value.selected) +- FfiConverterTypeKvLock.allocationSize(value.lock) +- FfiConverterSequenceString.allocationSize(value.unlockIds) +- FfiConverterSequenceString.allocationSize(value.lockIds) +- FfiConverterBool.allocationSize(value.open) +- FfiConverterSequenceTypeKvVaultRow.allocationSize(value.rows);+ static instanceOf(obj: any): obj is Setup_ {+ return obj.tag === KvCommand_Tags.Setup;}- };- return new FFIConverter();-})();-export type KvVaultApp = {- /**- * Group key: the provider id (`chrome`).- */- key: string,- /**- * The provider id, for the app's icon.- */- providerId: string,+ }++ type Unlock__interface = {+ tag: KvCommand_Tags.Unlock+ };/**- * "Google Chrome".+ * Unlock with the OS key store (a passphrase goes to+ * `KeyvaultCommands::unlock_with_passphrase`).*/- name: string,+ class Unlock_ extends UniffiEnum implements Unlock__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.Unlock;+ constructor() {+ super("KvCommand", "Unlock");+ }++ static new(): Unlock_ {+ return new Unlock_();+ }++ static instanceOf(obj: any): obj is Unlock_ {+ return obj.tag === KvCommand_Tags.Unlock;+ }++ }++ type SetDisabled__interface = {+ tag: KvCommand_Tags.SetDisabled;+ inner:+Readonly<{disabled: boolean}>+ };/**- * Items.+ * The kill switch (turning it off asks for Touch ID).*/- count: number,- /**- * "212 items, 14 unlocked".- */- summary: string,- /**- * Grey time of the newest save.- */- updated: string,- /**- * Selection of its items.- */- selected: KvTri,- /**- * Lock of its items.- */- lock: KvLock,- /**- * Items a click on the lock unlocks (locked, not identity providers).- */- unlockIds: Array<string>,- /**- * Items a click on the lock locks (unlocked).- */- lockIds: Array<string>,- /**- * Open.- */- open: boolean,- /**- * Sites with their items, by name.- */- sites: Array<KvVaultSite>,- /**- * Files, when it has any.- */- files?: KvVaultFiles-}--/**- * Generated factory for {@link KvVaultApp} record objects.- */-export const KvVaultApp = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvVaultApp, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultApp>,- });-})();+ class SetDisabled_ extends UniffiEnum implements SetDisabled__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.SetDisabled;+ readonly inner:+Readonly<{disabled: boolean}>;+ constructor(+inner: {disabled: boolean }) {+ super("KvCommand", "SetDisabled");-const FfiConverterTypeKvVaultApp = (() => {- type TypeName = KvVaultApp;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- key: FfiConverterString.read(from),- providerId: FfiConverterString.read(from),- name: FfiConverterString.read(from),- count: FfiConverterUInt32.read(from),- summary: FfiConverterString.read(from),- updated: FfiConverterString.read(from),- selected: FfiConverterTypeKvTri.read(from),- lock: FfiConverterTypeKvLock.read(from),- unlockIds: FfiConverterSequenceString.read(from),- lockIds: FfiConverterSequenceString.read(from),- open: FfiConverterBool.read(from),- sites: FfiConverterSequenceTypeKvVaultSite.read(from),- files: FfiConverterOptionalTypeKvVaultFiles.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.key, into);- FfiConverterString.write(value.providerId, into);- FfiConverterString.write(value.name, into);- FfiConverterUInt32.write(value.count, into);- FfiConverterString.write(value.summary, into);- FfiConverterString.write(value.updated, into);- FfiConverterTypeKvTri.write(value.selected, into);- FfiConverterTypeKvLock.write(value.lock, into);- FfiConverterSequenceString.write(value.unlockIds, into);- FfiConverterSequenceString.write(value.lockIds, into);- FfiConverterBool.write(value.open, into);- FfiConverterSequenceTypeKvVaultSite.write(value.sites, into);- FfiConverterOptionalTypeKvVaultFiles.write(value.files, into);+ static new(+inner: {disabled: boolean }): SetDisabled_ {+ return new SetDisabled_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.providerId) +- FfiConverterString.allocationSize(value.name) +- FfiConverterUInt32.allocationSize(value.count) +- FfiConverterString.allocationSize(value.summary) +- FfiConverterString.allocationSize(value.updated) +- FfiConverterTypeKvTri.allocationSize(value.selected) +- FfiConverterTypeKvLock.allocationSize(value.lock) +- FfiConverterSequenceString.allocationSize(value.unlockIds) +- FfiConverterSequenceString.allocationSize(value.lockIds) +- FfiConverterBool.allocationSize(value.open) +- FfiConverterSequenceTypeKvVaultSite.allocationSize(value.sites) +- FfiConverterOptionalTypeKvVaultFiles.allocationSize(value.files);+ static instanceOf(obj: any): obj is SetDisabled_ {+ return obj.tag === KvCommand_Tags.SetDisabled;}- };- return new FFIConverter();-})();-export type KvVaultSelection = {- /**- * Selected items.- */- count: number,- /**- * Their ids, in list order.- */- ids: Array<string>,- /**- * "3 selected".- */- title: string,- /**- * Some selected item is locked and may be unlocked.- */- canUnlock: boolean,- /**- * Some selected item is unlocked.- */- canLock: boolean,- /**- * Selected items that always ask (identity providers).- */- alwaysAsk: number,- /**- * The ids to send when unlocking (locked, not identity providers).- */- unlockIds: Array<string>,+ }++ type SetUnattended__interface = {+ tag: KvCommand_Tags.SetUnattended;+ inner:+Readonly<{itemIds: Array<string>; unattended: boolean}>+ };/**- * The ids to send when locking (unlocked).+ * Per-item unattended (turning on asks for Touch ID): the same as+ * [`KvCommand::SetLocked`] with `locked` the other way round.*/- lockIds: Array<string>-}--/**- * Generated factory for {@link KvVaultSelection} record objects.- */-export const KvVaultSelection = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvVaultSelection, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultSelection>,- });-})();+ class SetUnattended_ extends UniffiEnum implements SetUnattended__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.SetUnattended;+ readonly inner:+Readonly<{itemIds: Array<string>; unattended: boolean}>;+ constructor(+inner: {itemIds: Array<string>; unattended: boolean }) {+ super("KvCommand", "SetUnattended");-const FfiConverterTypeKvVaultSelection = (() => {- type TypeName = KvVaultSelection;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- count: FfiConverterUInt32.read(from),- ids: FfiConverterSequenceString.read(from),- title: FfiConverterString.read(from),- canUnlock: FfiConverterBool.read(from),- canLock: FfiConverterBool.read(from),- alwaysAsk: FfiConverterUInt32.read(from),- unlockIds: FfiConverterSequenceString.read(from),- lockIds: FfiConverterSequenceString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.count, into);- FfiConverterSequenceString.write(value.ids, into);- FfiConverterString.write(value.title, into);- FfiConverterBool.write(value.canUnlock, into);- FfiConverterBool.write(value.canLock, into);- FfiConverterUInt32.write(value.alwaysAsk, into);- FfiConverterSequenceString.write(value.unlockIds, into);- FfiConverterSequenceString.write(value.lockIds, into);+ static new(+inner: {itemIds: Array<string>; unattended: boolean }): SetUnattended_ {+ return new SetUnattended_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.count) +- FfiConverterSequenceString.allocationSize(value.ids) +- FfiConverterString.allocationSize(value.title) +- FfiConverterBool.allocationSize(value.canUnlock) +- FfiConverterBool.allocationSize(value.canLock) +- FfiConverterUInt32.allocationSize(value.alwaysAsk) +- FfiConverterSequenceString.allocationSize(value.unlockIds) +- FfiConverterSequenceString.allocationSize(value.lockIds);+ static instanceOf(obj: any): obj is SetUnattended_ {+ return obj.tag === KvCommand_Tags.SetUnattended;}- };- return new FFIConverter();-})();-export type KvVaultSource = {- /**- * Items that can be sent.- */- count: number,- /**- * When the newest was saved, Unix ms (0: none).- */- newestMs: bigint,+ }++ type SetLocked__interface = {+ tag: KvCommand_Tags.SetLocked;+ inner:+Readonly<{itemIds: Array<string>; locked: boolean}>+ };/**- * Their ids, in list order.+ * Lock or unlock items together. Unlocking allows unattended access and+ * asks for Touch ID once for the whole batch; locking does not.*/- ids: Array<string>,+ class SetLocked_ extends UniffiEnum implements SetLocked__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.SetLocked;+ readonly inner:+Readonly<{itemIds: Array<string>; locked: boolean}>;+ constructor(+inner: {itemIds: Array<string>; locked: boolean }) {+ super("KvCommand", "SetLocked");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {itemIds: Array<string>; locked: boolean }): SetLocked_ {+ return new SetLocked_(inner);+ }++ static instanceOf(obj: any): obj is SetLocked_ {+ return obj.tag === KvCommand_Tags.SetLocked;+ }++ }++ type DeleteItems__interface = {+ tag: KvCommand_Tags.DeleteItems;+ inner:+Readonly<{itemIds: Array<string>}>+ };/**- * The app's saved passwords (ids), never part of `ids`: they are sent- * only when ticked in the review.+ * Delete items, wiping every live copy of them in Spaces.*/- passwordIds: Array<string>-}--/**- * Generated factory for {@link KvVaultSource} record objects.- */-export const KvVaultSource = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvVaultSource, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultSource>,- });-})();+ class DeleteItems_ extends UniffiEnum implements DeleteItems__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.DeleteItems;+ readonly inner:+Readonly<{itemIds: Array<string>}>;+ constructor(+inner: {itemIds: Array<string> }) {+ super("KvCommand", "DeleteItems");-const FfiConverterTypeKvVaultSource = (() => {- type TypeName = KvVaultSource;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- count: FfiConverterUInt32.read(from),- newestMs: FfiConverterInt64.read(from),- ids: FfiConverterSequenceString.read(from),- passwordIds: FfiConverterSequenceString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.count, into);- FfiConverterInt64.write(value.newestMs, into);- FfiConverterSequenceString.write(value.ids, into);- FfiConverterSequenceString.write(value.passwordIds, into);+ static new(+inner: {itemIds: Array<string> }): DeleteItems_ {+ return new DeleteItems_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.count) +- FfiConverterInt64.allocationSize(value.newestMs) +- FfiConverterSequenceString.allocationSize(value.ids) +- FfiConverterSequenceString.allocationSize(value.passwordIds);+ static instanceOf(obj: any): obj is DeleteItems_ {+ return obj.tag === KvCommand_Tags.DeleteItems;}- };- return new FFIConverter();-})();-export type KvVaultState = {+ }++ type SetSkipUnlockPrompt__interface = {+ tag: KvCommand_Tags.SetSkipUnlockPrompt;+ inner:+Readonly<{on: boolean}>+ };/**- * The search text.+ * "Never ask again" on the unlock prompt (Settings turns it back on).*/- query: string,+ class SetSkipUnlockPrompt_ extends UniffiEnum implements SetSkipUnlockPrompt__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.SetSkipUnlockPrompt;+ readonly inner:+Readonly<{on: boolean}>;+ constructor(+inner: {on: boolean }) {+ super("KvCommand", "SetSkipUnlockPrompt");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {on: boolean }): SetSkipUnlockPrompt_ {+ return new SetSkipUnlockPrompt_(inner);+ }++ static instanceOf(obj: any): obj is SetSkipUnlockPrompt_ {+ return obj.tag === KvCommand_Tags.SetSkipUnlockPrompt;+ }++ }++ type Browse__interface = {+ tag: KvCommand_Tags.Browse+ };/**- * Selected item ids.+ * Show item names for a few minutes (the daemon asks for Touch ID).*/- selected: Array<string>,+ class Browse_ extends UniffiEnum implements Browse__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.Browse;+ constructor() {+ super("KvCommand", "Browse");+ }++ static new(): Browse_ {+ return new Browse_();+ }++ static instanceOf(obj: any): obj is Browse_ {+ return obj.tag === KvCommand_Tags.Browse;+ }++ }++ type EndBrowse__interface = {+ tag: KvCommand_Tags.EndBrowse+ };/**- * Open groups (their keys); the rest are closed.+ * Hide item names again.*/- expanded: Array<string>,+ class EndBrowse_ extends UniffiEnum implements EndBrowse__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.EndBrowse;+ constructor() {+ super("KvCommand", "EndBrowse");+ }++ static new(): EndBrowse_ {+ return new EndBrowse_();+ }++ static instanceOf(obj: any): obj is EndBrowse_ {+ return obj.tag === KvCommand_Tags.EndBrowse;+ }++ }++ type RevokeGrant__interface = {+ tag: KvCommand_Tags.RevokeGrant;+ inner:+Readonly<{id: string}>+ };/**- * Narrowed to one app (its provider id), as the sidebar picks it.+ * Revoke a grant (`*`: all).*/- app?: string-}--/**- * Generated factory for {@link KvVaultState} record objects.- */-export const KvVaultState = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<KvVaultState, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultState>,- });-})();+ class RevokeGrant_ extends UniffiEnum implements RevokeGrant__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.RevokeGrant;+ readonly inner:+Readonly<{id: string}>;+ constructor(+inner: {id: string }) {+ super("KvCommand", "RevokeGrant");-const FfiConverterTypeKvVaultState = (() => {- type TypeName = KvVaultState;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- query: FfiConverterString.read(from),- selected: FfiConverterSequenceString.read(from),- expanded: FfiConverterSequenceString.read(from),- app: FfiConverterOptionalString.read(from)- };+ this.inner = Object.freeze(inner);}- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.query, into);- FfiConverterSequenceString.write(value.selected, into);- FfiConverterSequenceString.write(value.expanded, into);- FfiConverterOptionalString.write(value.app, into);+ static new(+inner: {id: string }): RevokeGrant_ {+ return new RevokeGrant_(inner);}- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.query) +- FfiConverterSequenceString.allocationSize(value.selected) +- FfiConverterSequenceString.allocationSize(value.expanded) +- FfiConverterOptionalString.allocationSize(value.app);+ static instanceOf(obj: any): obj is RevokeGrant_ {+ return obj.tag === KvCommand_Tags.RevokeGrant;}- };- return new FFIConverter();-})();-export type KvVaultView = {+ }++ type RemoveRule__interface = {+ tag: KvCommand_Tags.RemoveRule;+ inner:+Readonly<{id: string}>+ };/**- * Apps, by name.+ * Remove a rule.*/- apps: Array<KvVaultApp>,+ class RemoveRule_ extends UniffiEnum implements RemoveRule__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.RemoveRule;+ readonly inner:+Readonly<{id: string}>;+ constructor(+inner: {id: string }) {+ super("KvCommand", "RemoveRule");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {id: string }): RemoveRule_ {+ return new RemoveRule_(inner);+ }++ static instanceOf(obj: any): obj is RemoveRule_ {+ return obj.tag === KvCommand_Tags.RemoveRule;+ }++ }++ type SetAutoWipe__interface = {+ tag: KvCommand_Tags.SetAutoWipe;+ inner:+Readonly<{on: boolean}>+ };/**- * Items shown (after search).+ * Auto-wipe of delivered copies (turning it off asks for Touch ID).*/- shown: number,+ class SetAutoWipe_ extends UniffiEnum implements SetAutoWipe__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.SetAutoWipe;+ readonly inner:+Readonly<{on: boolean}>;+ constructor(+inner: {on: boolean }) {+ super("KvCommand", "SetAutoWipe");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {on: boolean }): SetAutoWipe_ {+ return new SetAutoWipe_(inner);+ }++ static instanceOf(obj: any): obj is SetAutoWipe_ {+ return obj.tag === KvCommand_Tags.SetAutoWipe;+ }++ }++ type Release__interface = {+ tag: KvCommand_Tags.Release;+ inner:+Readonly<{target: string}>+ };/**- * Items in the vault.+ * Wipe a Space's copies.*/- total: number,+ class Release_ extends UniffiEnum implements Release__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.Release;+ readonly inner:+Readonly<{target: string}>;+ constructor(+inner: {target: string }) {+ super("KvCommand", "Release");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {target: string }): Release_ {+ return new Release_(inner);+ }++ static instanceOf(obj: any): obj is Release_ {+ return obj.tag === KvCommand_Tags.Release;+ }++ }++ type Approve__interface = {+ tag: KvCommand_Tags.Approve;+ inner:+Readonly<{requestId: string; items?: Array<string>}>+ };/**- * "No items yet." and friends.+ * Approve a request for exactly these items (the daemon asks for+ * presence). `None` keeps everything the request asked for, which the+ * approval sheet only sends when the user ticked every row.*/- emptyText?: string,+ class Approve_ extends UniffiEnum implements Approve__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.Approve;+ readonly inner:+Readonly<{requestId: string; items?: Array<string>}>;+ constructor(+inner: {requestId: string; items?: Array<string> }) {+ super("KvCommand", "Approve");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {requestId: string; items?: Array<string> }): Approve_ {+ return new Approve_(inner);+ }++ static instanceOf(obj: any): obj is Approve_ {+ return obj.tag === KvCommand_Tags.Approve;+ }++ }++ type Deny__interface = {+ tag: KvCommand_Tags.Deny;+ inner:+Readonly<{requestId: string}>+ };/**- * Domains and keys are hidden until the user confirms with Touch ID.+ * Deny a request.*/- namesHidden: boolean,+ class Deny_ extends UniffiEnum implements Deny__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "KvCommand";+ readonly tag = KvCommand_Tags.Deny;+ readonly inner:+Readonly<{requestId: string}>;+ constructor(+inner: {requestId: string }) {+ super("KvCommand", "Deny");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {requestId: string }): Deny_ {+ return new Deny_(inner);+ }++ static instanceOf(obj: any): obj is Deny_ {+ return obj.tag === KvCommand_Tags.Deny;+ }++ }++ function instanceOf(obj: any): obj is KvCommand {+ return obj[uniffiTypeNameSymbol] === "KvCommand";+ }++ return Object.freeze({+ instanceOf,+ Setup: Setup_,+ Unlock: Unlock_,+ SetDisabled: SetDisabled_,+ SetUnattended: SetUnattended_,+ SetLocked: SetLocked_,+ DeleteItems: DeleteItems_,+ SetSkipUnlockPrompt: SetSkipUnlockPrompt_,+ Browse: Browse_,+ EndBrowse: EndBrowse_,+ RevokeGrant: RevokeGrant_,+ RemoveRule: RemoveRule_,+ SetAutoWipe: SetAutoWipe_,+ Release: Release_,+ Approve: Approve_,+ Deny: Deny_+ });++})();+export type KvCommand = InstanceType<+ typeof KvCommand['Setup' | 'Unlock' | 'SetDisabled' | 'SetUnattended' | 'SetLocked' | 'DeleteItems' | 'SetSkipUnlockPrompt' | 'Browse' | 'EndBrowse' | 'RevokeGrant' | 'RemoveRule' | 'SetAutoWipe' | 'Release' | 'Approve' | 'Deny']+>;++// FfiConverter for enum KvCommand+const FfiConverterTypeKvCommand = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvCommand;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return new KvCommand.Setup();+ case 2: return new KvCommand.Unlock();+ case 3: return new KvCommand.SetDisabled({disabled: FfiConverterBool.read(from) });+ case 4: return new KvCommand.SetUnattended({itemIds: FfiConverterSequenceString.read(from), unattended: FfiConverterBool.read(from) });+ case 5: return new KvCommand.SetLocked({itemIds: FfiConverterSequenceString.read(from), locked: FfiConverterBool.read(from) });+ case 6: return new KvCommand.DeleteItems({itemIds: FfiConverterSequenceString.read(from) });+ case 7: return new KvCommand.SetSkipUnlockPrompt({on: FfiConverterBool.read(from) });+ case 8: return new KvCommand.Browse();+ case 9: return new KvCommand.EndBrowse();+ case 10: return new KvCommand.RevokeGrant({id: FfiConverterString.read(from) });+ case 11: return new KvCommand.RemoveRule({id: FfiConverterString.read(from) });+ case 12: return new KvCommand.SetAutoWipe({on: FfiConverterBool.read(from) });+ case 13: return new KvCommand.Release({target: FfiConverterString.read(from) });+ case 14: return new KvCommand.Approve({requestId: FfiConverterString.read(from), items: FfiConverterOptionalSequenceString.read(from) });+ case 15: return new KvCommand.Deny({requestId: FfiConverterString.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value.tag) {+ case KvCommand_Tags.Setup: {+ ordinalConverter.write(1, into);+ return;+ }+ case KvCommand_Tags.Unlock: {+ ordinalConverter.write(2, into);+ return;+ }+ case KvCommand_Tags.SetDisabled: {+ ordinalConverter.write(3, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.disabled, into);+ return;+ }+ case KvCommand_Tags.SetUnattended: {+ ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterSequenceString.write(inner.itemIds, into);+ FfiConverterBool.write(inner.unattended, into);+ return;+ }+ case KvCommand_Tags.SetLocked: {+ ordinalConverter.write(5, into);+ const inner = value.inner;+ FfiConverterSequenceString.write(inner.itemIds, into);+ FfiConverterBool.write(inner.locked, into);+ return;+ }+ case KvCommand_Tags.DeleteItems: {+ ordinalConverter.write(6, into);+ const inner = value.inner;+ FfiConverterSequenceString.write(inner.itemIds, into);+ return;+ }+ case KvCommand_Tags.SetSkipUnlockPrompt: {+ ordinalConverter.write(7, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.on, into);+ return;+ }+ case KvCommand_Tags.Browse: {+ ordinalConverter.write(8, into);+ return;+ }+ case KvCommand_Tags.EndBrowse: {+ ordinalConverter.write(9, into);+ return;+ }+ case KvCommand_Tags.RevokeGrant: {+ ordinalConverter.write(10, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ return;+ }+ case KvCommand_Tags.RemoveRule: {+ ordinalConverter.write(11, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ return;+ }+ case KvCommand_Tags.SetAutoWipe: {+ ordinalConverter.write(12, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.on, into);+ return;+ }+ case KvCommand_Tags.Release: {+ ordinalConverter.write(13, into);+ const inner = value.inner;+ FfiConverterString.write(inner.target, into);+ return;+ }+ case KvCommand_Tags.Approve: {+ ordinalConverter.write(14, into);+ const inner = value.inner;+ FfiConverterString.write(inner.requestId, into);+ FfiConverterOptionalSequenceString.write(inner.items, into);+ return;+ }+ case KvCommand_Tags.Deny: {+ ordinalConverter.write(15, into);+ const inner = value.inner;+ FfiConverterString.write(inner.requestId, into);+ return;+ }+ default:+ // Throwing from here means that KvCommand_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ allocationSize(value: TypeName): number {+ switch (value.tag) {+ case KvCommand_Tags.Setup: {+ return ordinalConverter.allocationSize(1);+ }+ case KvCommand_Tags.Unlock: {+ return ordinalConverter.allocationSize(2);+ }+ case KvCommand_Tags.SetDisabled: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(3);+ size += FfiConverterBool.allocationSize(inner.disabled);+ return size;+ }+ case KvCommand_Tags.SetUnattended: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterSequenceString.allocationSize(inner.itemIds);+ size += FfiConverterBool.allocationSize(inner.unattended);+ return size;+ }+ case KvCommand_Tags.SetLocked: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(5);+ size += FfiConverterSequenceString.allocationSize(inner.itemIds);+ size += FfiConverterBool.allocationSize(inner.locked);+ return size;+ }+ case KvCommand_Tags.DeleteItems: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(6);+ size += FfiConverterSequenceString.allocationSize(inner.itemIds);+ return size;+ }+ case KvCommand_Tags.SetSkipUnlockPrompt: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(7);+ size += FfiConverterBool.allocationSize(inner.on);+ return size;+ }+ case KvCommand_Tags.Browse: {+ return ordinalConverter.allocationSize(8);+ }+ case KvCommand_Tags.EndBrowse: {+ return ordinalConverter.allocationSize(9);+ }+ case KvCommand_Tags.RevokeGrant: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(10);+ size += FfiConverterString.allocationSize(inner.id);+ return size;+ }+ case KvCommand_Tags.RemoveRule: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(11);+ size += FfiConverterString.allocationSize(inner.id);+ return size;+ }+ case KvCommand_Tags.SetAutoWipe: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(12);+ size += FfiConverterBool.allocationSize(inner.on);+ return size;+ }+ case KvCommand_Tags.Release: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(13);+ size += FfiConverterString.allocationSize(inner.target);+ return size;+ }+ case KvCommand_Tags.Approve: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(14);+ size += FfiConverterString.allocationSize(inner.requestId);+ size += FfiConverterOptionalSequenceString.allocationSize(inner.items);+ return size;+ }+ case KvCommand_Tags.Deny: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(15);+ size += FfiConverterString.allocationSize(inner.requestId);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ }+ return new FFIConverter();+})();++export type KvAccessRow = {/**- * What to say about it.+ * Kind.*/- hiddenNote?: string,+ kind: KvAccessKind,/**- * The button that opens the names.+ * Stable key.*/- showNamesLabel: string,+ key: string,/**- * The search field's prompt.+ * Main text.*/- searchPrompt: string,+ text: string,/**- * The selection.+ * Muted detail.*/- selection: KvVaultSelection,+ detail: string,/**- * Select all is offered.+ * "Revoke", "Remove", "Wipe".*/- canSelectAll: boolean+ actionLabel: string,+ /**+ * What the button sends.+ */+ command: KvCommand,+ /**+ * A Space's copies: their import ids, which Dismiss hides from the+ * notch (empty for grants and rules).+ */+ imports: Array<string>}/**- * Generated factory for {@link KvVaultView} record objects.+ * Generated factory for {@link KvAccessRow} record objects.*/-export const KvVaultView = (() => {+export const KvAccessRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<KvVaultView, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvAccessRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<KvVaultView>,+ defaults: () => Object.freeze(defaults()) as Partial<KvAccessRow>,});})();-const FfiConverterTypeKvVaultView = (() => {- type TypeName = KvVaultView;+const FfiConverterTypeKvAccessRow = (() => {+ type TypeName = KvAccessRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- apps: FfiConverterSequenceTypeKvVaultApp.read(from),- shown: FfiConverterUInt32.read(from),- total: FfiConverterUInt32.read(from),- emptyText: FfiConverterOptionalString.read(from),- namesHidden: FfiConverterBool.read(from),- hiddenNote: FfiConverterOptionalString.read(from),- showNamesLabel: FfiConverterString.read(from),- searchPrompt: FfiConverterString.read(from),- selection: FfiConverterTypeKvVaultSelection.read(from),- canSelectAll: FfiConverterBool.read(from)+ kind: FfiConverterTypeKvAccessKind.read(from),+ key: FfiConverterString.read(from),+ text: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ actionLabel: FfiConverterString.read(from),+ command: FfiConverterTypeKvCommand.read(from),+ imports: FfiConverterSequenceString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterSequenceTypeKvVaultApp.write(value.apps, into);- FfiConverterUInt32.write(value.shown, into);- FfiConverterUInt32.write(value.total, into);- FfiConverterOptionalString.write(value.emptyText, into);- FfiConverterBool.write(value.namesHidden, into);- FfiConverterOptionalString.write(value.hiddenNote, into);- FfiConverterString.write(value.showNamesLabel, into);- FfiConverterString.write(value.searchPrompt, into);- FfiConverterTypeKvVaultSelection.write(value.selection, into);- FfiConverterBool.write(value.canSelectAll, into);+ FfiConverterTypeKvAccessKind.write(value.kind, into);+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.text, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterString.write(value.actionLabel, into);+ FfiConverterTypeKvCommand.write(value.command, into);+ FfiConverterSequenceString.write(value.imports, into);}allocationSize(value: TypeName): number {- return FfiConverterSequenceTypeKvVaultApp.allocationSize(value.apps) +- FfiConverterUInt32.allocationSize(value.shown) +- FfiConverterUInt32.allocationSize(value.total) +- FfiConverterOptionalString.allocationSize(value.emptyText) +- FfiConverterBool.allocationSize(value.namesHidden) +- FfiConverterOptionalString.allocationSize(value.hiddenNote) +- FfiConverterString.allocationSize(value.showNamesLabel) +- FfiConverterString.allocationSize(value.searchPrompt) +- FfiConverterTypeKvVaultSelection.allocationSize(value.selection) +- FfiConverterBool.allocationSize(value.canSelectAll);+ return FfiConverterTypeKvAccessKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.text) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterString.allocationSize(value.actionLabel) ++ FfiConverterTypeKvCommand.allocationSize(value.command) ++ FfiConverterSequenceString.allocationSize(value.imports);}};return new FFIConverter();})();-/**- * Decoded audio : interleaved signed 16-bit PCM.- */-export type PcmAudio = {+export type KvAppRow = {/**- * Track id from `NegotiatedAudio`.+ * The provider id (`chrome`): the key, and what the icon is looked up by.*/- trackId: number,+ key: string,/**- * Samples per second per channel.+ * "Google Chrome".*/- sampleRate: number,+ title: string,/**- * Interleaved channels.+ * Items.*/- channels: number,+ items: number,/**- * Media-clock time of the first sample (µs).+ * Something waits for this app.*/- ptsUs: bigint,- /**- * Synthesized by packet-loss concealment for a lost packet.- */- concealed: boolean,- /**- * RAU2 sequence of the packet this frame was decoded from (the packet- * that revealed the loss, for concealed frames).- */- sequence: number,- /**- * RAU2 config epoch (the audio codec generation).- */- configEpoch: number,- /**- * Bytes of the encoded packet (0 for concealed frames).- */- encodedSize: bigint,- /**- * When the packet reached the decoder (Unix µs, this host).- */- receivedAtUs: bigint,- /**- * Time spent decoding the packet (µs).- */- decodeDurationUs: bigint,- /**- * Interleaved samples.- */- samples: Array<number>+ waiting: boolean}/**- * Generated factory for {@link PcmAudio} record objects.+ * Generated factory for {@link KvAppRow} record objects.*/-export const PcmAudio = (() => {+export const KvAppRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<PcmAudio, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvAppRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<PcmAudio>,+ defaults: () => Object.freeze(defaults()) as Partial<KvAppRow>,});})();-const FfiConverterTypePcmAudio = (() => {- type TypeName = PcmAudio;+const FfiConverterTypeKvAppRow = (() => {+ type TypeName = KvAppRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- trackId: FfiConverterUInt16.read(from),- sampleRate: FfiConverterUInt32.read(from),- channels: FfiConverterUInt16.read(from),- ptsUs: FfiConverterUInt64.read(from),- concealed: FfiConverterBool.read(from),- sequence: FfiConverterUInt32.read(from),- configEpoch: FfiConverterUInt8.read(from),- encodedSize: FfiConverterUInt64.read(from),- receivedAtUs: FfiConverterUInt64.read(from),- decodeDurationUs: FfiConverterUInt64.read(from),- samples: FfiConverterSequenceInt16.read(from)+ key: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ items: FfiConverterUInt32.read(from),+ waiting: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt16.write(value.trackId, into);- FfiConverterUInt32.write(value.sampleRate, into);- FfiConverterUInt16.write(value.channels, into);- FfiConverterUInt64.write(value.ptsUs, into);- FfiConverterBool.write(value.concealed, into);- FfiConverterUInt32.write(value.sequence, into);- FfiConverterUInt8.write(value.configEpoch, into);- FfiConverterUInt64.write(value.encodedSize, into);- FfiConverterUInt64.write(value.receivedAtUs, into);- FfiConverterUInt64.write(value.decodeDurationUs, into);- FfiConverterSequenceInt16.write(value.samples, into);+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.title, into);+ FfiConverterUInt32.write(value.items, into);+ FfiConverterBool.write(value.waiting, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt16.allocationSize(value.trackId) +- FfiConverterUInt32.allocationSize(value.sampleRate) +- FfiConverterUInt16.allocationSize(value.channels) +- FfiConverterUInt64.allocationSize(value.ptsUs) +- FfiConverterBool.allocationSize(value.concealed) +- FfiConverterUInt32.allocationSize(value.sequence) +- FfiConverterUInt8.allocationSize(value.configEpoch) +- FfiConverterUInt64.allocationSize(value.encodedSize) +- FfiConverterUInt64.allocationSize(value.receivedAtUs) +- FfiConverterUInt64.allocationSize(value.decodeDurationUs) +- FfiConverterSequenceInt16.allocationSize(value.samples);+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterUInt32.allocationSize(value.items) ++ FfiConverterBool.allocationSize(value.waiting);}};return new FFIConverter();})();-/**- * What the approval callback is asked.- */-export type TeleportApprovalRequest = {+export type KvApprovalRow = {/**- * Everything that could move.+ * Row key: `<app>|<site>`, `<app>|files`, or `import:<n>`.*/- manifest: TeleportManifest,+ key: string,/**- * What will move.+ * The site, or the app for files and imports.*/- selected: Array<TeleportItem>,+ title: string,/**- * Whether any selected item is sensitive (the OS prompt follows).+ * "3 cookies, 1 password", or "Not saved yet".*/- sensitive: boolean,+ account: string,/**- * The destination spacesd endpoint.+ * The app's provider id (its icon), when known.*/- destination: string+ providerId: string,+ /**+ * Items the row stands for.+ */+ items: number,+ /**+ * The items' ids.+ */+ itemIds: Array<string>,+ /**+ * Ticked.+ */+ selected: boolean,+ /**+ * A new item the approval imports.+ */+ isImport: boolean}/**- * Generated factory for {@link TeleportApprovalRequest} record objects.+ * Generated factory for {@link KvApprovalRow} record objects.*/-export const TeleportApprovalRequest = (() => {+export const KvApprovalRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportApprovalRequest, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvApprovalRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportApprovalRequest>,+ defaults: () => Object.freeze(defaults()) as Partial<KvApprovalRow>,});})();-const FfiConverterTypeTeleportApprovalRequest = (() => {- type TypeName = TeleportApprovalRequest;+const FfiConverterTypeKvApprovalRow = (() => {+ type TypeName = KvApprovalRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- manifest: FfiConverterTypeTeleportManifest.read(from),- selected: FfiConverterSequenceTypeTeleportItem.read(from),- sensitive: FfiConverterBool.read(from),- destination: FfiConverterString.read(from)+ key: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ account: FfiConverterString.read(from),+ providerId: FfiConverterString.read(from),+ items: FfiConverterUInt32.read(from),+ itemIds: FfiConverterSequenceString.read(from),+ selected: FfiConverterBool.read(from),+ isImport: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeTeleportManifest.write(value.manifest, into);- FfiConverterSequenceTypeTeleportItem.write(value.selected, into);- FfiConverterBool.write(value.sensitive, into);- FfiConverterString.write(value.destination, into);+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.account, into);+ FfiConverterString.write(value.providerId, into);+ FfiConverterUInt32.write(value.items, into);+ FfiConverterSequenceString.write(value.itemIds, into);+ FfiConverterBool.write(value.selected, into);+ FfiConverterBool.write(value.isImport, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeTeleportManifest.allocationSize(value.manifest) +- FfiConverterSequenceTypeTeleportItem.allocationSize(value.selected) +- FfiConverterBool.allocationSize(value.sensitive) +- FfiConverterString.allocationSize(value.destination);+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.account) ++ FfiConverterString.allocationSize(value.providerId) ++ FfiConverterUInt32.allocationSize(value.items) ++ FfiConverterSequenceString.allocationSize(value.itemIds) ++ FfiConverterBool.allocationSize(value.selected) ++ FfiConverterBool.allocationSize(value.isImport);}};return new FFIConverter();})();-/**- * What teleport can do with an app.- */-export enum TeleportCapability {- /**- * Its signed-in state can move (a provider), on top of the app.- */- Full = "full",+export type KvApprovalState = {/**- * Installed in the Space; opens empty or with chosen files.+ * The request.*/- InstallOnly = "installOnly",+ requestId: string,/**- * Shown disabled; `reason` says why.+ * Ticked row keys (`<app>|<site>`, or `import:<n>` for new items).*/- Unsupported = "unsupported"+ selected: Array<string>}-const FfiConverterTypeTeleportCapability = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = TeleportCapability;+/**+ * Generated factory for {@link KvApprovalState} record objects.+ */+export const KvApprovalState = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvApprovalState, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvApprovalState>,+ });+})();++const FfiConverterTypeKvApprovalState = (() => {+ type TypeName = KvApprovalState;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return TeleportCapability.Full;- case 2: return TeleportCapability.InstallOnly;- case 3: return TeleportCapability.Unsupported;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ requestId: FfiConverterString.read(from),+ selected: FfiConverterSequenceString.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case TeleportCapability.Full: return ordinalConverter.write(1, into);- case TeleportCapability.InstallOnly: return ordinalConverter.write(2, into);- case TeleportCapability.Unsupported: return ordinalConverter.write(3, into);- }+ FfiConverterString.write(value.requestId, into);+ FfiConverterSequenceString.write(value.selected, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.requestId) ++ FfiConverterSequenceString.allocationSize(value.selected);+}- }+ };return new FFIConverter();})();-/**- * What a teleport moves.- */-export enum TeleportMove {+export enum KvTone {/**- * The app only.+ * Verified.*/- AppOnly = "appOnly",+ Ok = "ok",/**- * The app plus chosen files or folders.+ * Caution.*/- AppWithFiles = "appWithFiles",+ Warn = "warn",/**- * The app plus its signed-in state (consent lists every path and- * secret).+ * Untrusted.*/- AppWithState = "appWithState"+ Danger = "danger"}-const FfiConverterTypeTeleportMove = (() => {+const FfiConverterTypeKvTone = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = TeleportMove;+ type TypeName = KvTone;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return TeleportMove.AppOnly;- case 2: return TeleportMove.AppWithFiles;- case 3: return TeleportMove.AppWithState;+ case 1: return KvTone.Ok;+ case 2: return KvTone.Warn;+ case 3: return KvTone.Danger;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case TeleportMove.AppOnly: return ordinalConverter.write(1, into);- case TeleportMove.AppWithFiles: return ordinalConverter.write(2, into);- case TeleportMove.AppWithState: return ordinalConverter.write(3, into);+ case KvTone.Ok: return ordinalConverter.write(1, into);+ case KvTone.Warn: return ordinalConverter.write(2, into);+ case KvTone.Danger: return ordinalConverter.write(3, into);}}allocationSize(value: TypeName): number {@@ -39910,424 +38965,359 @@ const FfiConverterTypeTeleportMove = (() => {return new FFIConverter();})();-/**- * Credential-shaped state the signed-in state move leaves out by default,- * which a person opts into one group at a time (each item is a secret in- * the plan's consent).- */-export enum TeleportSensitiveGroup {- /**- * The session cookies: what keeps the app signed in.- */- SignIns = "signIns",+export type KvSigningBadge = {/**- * Saved passwords.+ * "signed, team X".*/- Passwords = "passwords",+ text: string,/**- * Browsing history.+ * Tone.*/- History = "history"+ tone: KvTone}-const FfiConverterTypeTeleportSensitiveGroup = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = TeleportSensitiveGroup;+/**+ * Generated factory for {@link KvSigningBadge} record objects.+ */+export const KvSigningBadge = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvSigningBadge, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvSigningBadge>,+ });+})();++const FfiConverterTypeKvSigningBadge = (() => {+ type TypeName = KvSigningBadge;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return TeleportSensitiveGroup.SignIns;- case 2: return TeleportSensitiveGroup.Passwords;- case 3: return TeleportSensitiveGroup.History;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ return {+ text: FfiConverterString.read(from),+ tone: FfiConverterTypeKvTone.read(from)+ };}write(value: TypeName, into: RustBuffer): void {- switch (value) {- case TeleportSensitiveGroup.SignIns: return ordinalConverter.write(1, into);- case TeleportSensitiveGroup.Passwords: return ordinalConverter.write(2, into);- case TeleportSensitiveGroup.History: return ordinalConverter.write(3, into);- }+ FfiConverterString.write(value.text, into);+ FfiConverterTypeKvTone.write(value.tone, into);}allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ return FfiConverterString.allocationSize(value.text) ++ FfiConverterTypeKvTone.allocationSize(value.tone);+}- }+ };return new FFIConverter();})();-/**- * One row of "Teleport an app…".- */-export type TeleportCatalogEntry = {- /**- * Stable id (`vscode`, `firefox`, or the host bundle id).- */- id: string,- /**- * Display name.- */- name: string,+export type KvApprovalView = {/**- * The host app bundle, `.desktop` entry or shortcut.+ * The request.*/- hostPath?: string,+ requestId: string,/**- * Host bundle or desktop id.+ * "Allow com.example.koalabot?"*/- hostAppId?: string,+ title: string,/**- * Host app version.+ * Verified caller (short).*/- version?: string,+ caller: string,/**- * Capability level.+ * Signing badge.*/- capability: TeleportCapability,+ badge: KvSigningBadge,/**- * Why it is unsupported, or a caveat.+ * Where to ("dev-1").*/- reason?: string,+ targets: string,/**- * Offered moves, in UI order.+ * For how long.*/- moves: Array<TeleportMove>,+ wants: string,/**- * Provider id, when state can move.+ * One-line summary.*/- providerId?: string,+ summary: string,/**- * The opt-in groups the signed-in state move offers- * ([`TeleportPlanOptions::sensitive_groups`]).+ * Unverified claims.*/- sensitiveGroups: Array<TeleportSensitiveGroup>,+ claims: Array<string>,/**- * `manifest` (pinned install), `image` (ships in cua's images),- * `space` (must already be there), or none.+ * Rows.*/- installSource?: string,+ rows: Array<KvApprovalRow>,/**- * Install manifest id and pinned version, for `manifest`.+ * Approve is enabled.*/- installId?: string,- installVersion?: string,+ canApprove: boolean,/**- * Binary started in the Space.+ * Why not, in one line (none when it can, or nothing is ticked yet).*/- launchBin?: string,+ blockedReason?: string,/**- * Last teleported (Unix ms).+ * "Approve 2 items".*/- lastUsedMs?: bigint,+ approveLabel: string,/**- * The entry as JSON (what `plan` reads back).+ * The request is gone (answered elsewhere).*/- json: string+ gone: boolean}/**- * Generated factory for {@link TeleportCatalogEntry} record objects.+ * Generated factory for {@link KvApprovalView} record objects.*/-export const TeleportCatalogEntry = (() => {+export const KvApprovalView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportCatalogEntry, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvApprovalView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportCatalogEntry>,+ defaults: () => Object.freeze(defaults()) as Partial<KvApprovalView>,});})();-const FfiConverterTypeTeleportCatalogEntry = (() => {- type TypeName = TeleportCatalogEntry;+const FfiConverterTypeKvApprovalView = (() => {+ type TypeName = KvApprovalView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- id: FfiConverterString.read(from),- name: FfiConverterString.read(from),- hostPath: FfiConverterOptionalString.read(from),- hostAppId: FfiConverterOptionalString.read(from),- version: FfiConverterOptionalString.read(from),- capability: FfiConverterTypeTeleportCapability.read(from),- reason: FfiConverterOptionalString.read(from),- moves: FfiConverterSequenceTypeTeleportMove.read(from),- providerId: FfiConverterOptionalString.read(from),- sensitiveGroups: FfiConverterSequenceTypeTeleportSensitiveGroup.read(from),- installSource: FfiConverterOptionalString.read(from),- installId: FfiConverterOptionalString.read(from),- installVersion: FfiConverterOptionalString.read(from),- launchBin: FfiConverterOptionalString.read(from),- lastUsedMs: FfiConverterOptionalUInt64.read(from),- json: FfiConverterString.read(from)+ requestId: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ caller: FfiConverterString.read(from),+ badge: FfiConverterTypeKvSigningBadge.read(from),+ targets: FfiConverterString.read(from),+ wants: FfiConverterString.read(from),+ summary: FfiConverterString.read(from),+ claims: FfiConverterSequenceString.read(from),+ rows: FfiConverterSequenceTypeKvApprovalRow.read(from),+ canApprove: FfiConverterBool.read(from),+ blockedReason: FfiConverterOptionalString.read(from),+ approveLabel: FfiConverterString.read(from),+ gone: FfiConverterBool.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.id, into);- FfiConverterString.write(value.name, into);- FfiConverterOptionalString.write(value.hostPath, into);- FfiConverterOptionalString.write(value.hostAppId, into);- FfiConverterOptionalString.write(value.version, into);- FfiConverterTypeTeleportCapability.write(value.capability, into);- FfiConverterOptionalString.write(value.reason, into);- FfiConverterSequenceTypeTeleportMove.write(value.moves, into);- FfiConverterOptionalString.write(value.providerId, into);- FfiConverterSequenceTypeTeleportSensitiveGroup.write(value.sensitiveGroups, into);- FfiConverterOptionalString.write(value.installSource, into);- FfiConverterOptionalString.write(value.installId, into);- FfiConverterOptionalString.write(value.installVersion, into);- FfiConverterOptionalString.write(value.launchBin, into);- FfiConverterOptionalUInt64.write(value.lastUsedMs, into);- FfiConverterString.write(value.json, into);+ FfiConverterString.write(value.requestId, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.caller, into);+ FfiConverterTypeKvSigningBadge.write(value.badge, into);+ FfiConverterString.write(value.targets, into);+ FfiConverterString.write(value.wants, into);+ FfiConverterString.write(value.summary, into);+ FfiConverterSequenceString.write(value.claims, into);+ FfiConverterSequenceTypeKvApprovalRow.write(value.rows, into);+ FfiConverterBool.write(value.canApprove, into);+ FfiConverterOptionalString.write(value.blockedReason, into);+ FfiConverterString.write(value.approveLabel, into);+ FfiConverterBool.write(value.gone, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.name) +- FfiConverterOptionalString.allocationSize(value.hostPath) +- FfiConverterOptionalString.allocationSize(value.hostAppId) +- FfiConverterOptionalString.allocationSize(value.version) +- FfiConverterTypeTeleportCapability.allocationSize(value.capability) +- FfiConverterOptionalString.allocationSize(value.reason) +- FfiConverterSequenceTypeTeleportMove.allocationSize(value.moves) +- FfiConverterOptionalString.allocationSize(value.providerId) +- FfiConverterSequenceTypeTeleportSensitiveGroup.allocationSize(value.sensitiveGroups) +- FfiConverterOptionalString.allocationSize(value.installSource) +- FfiConverterOptionalString.allocationSize(value.installId) +- FfiConverterOptionalString.allocationSize(value.installVersion) +- FfiConverterOptionalString.allocationSize(value.launchBin) +- FfiConverterOptionalUInt64.allocationSize(value.lastUsedMs) +- FfiConverterString.allocationSize(value.json);+ return FfiConverterString.allocationSize(value.requestId) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.caller) ++ FfiConverterTypeKvSigningBadge.allocationSize(value.badge) ++ FfiConverterString.allocationSize(value.targets) ++ FfiConverterString.allocationSize(value.wants) ++ FfiConverterString.allocationSize(value.summary) ++ FfiConverterSequenceString.allocationSize(value.claims) ++ FfiConverterSequenceTypeKvApprovalRow.allocationSize(value.rows) ++ FfiConverterBool.allocationSize(value.canApprove) ++ FfiConverterOptionalString.allocationSize(value.blockedReason) ++ FfiConverterString.allocationSize(value.approveLabel) ++ FfiConverterBool.allocationSize(value.gone);}};return new FFIConverter();})();-/**- * Options for [`Teleport::catalog`].- */-export type TeleportCatalogOptions = {+export enum KvCategory {/**- * App roots to scan. Default: this machine's (`/Applications`,- * `~/Applications`; `.desktop` dirs; Start Menu). Tests pass fixture- * directories.+ * Every item, grouped by app.*/- roots?: Array<string>,+ All = "all",/**- * The Space's OS (`linux`, `macos`, `windows`), to narrow the catalog.+ * Requests waiting for approval.*/- spaceOs?: string,+ Waiting = "waiting",/**- * The Space's CPU (`aarch64`, `x86_64`).+ * Live grants, rules and copies.*/- spaceArch?: string,+ Access = "access",/**- * Recents file. Default: `~/.cua/teleport-recents.json`.+ * Recent decisions.*/- recentsPath?: string+ Recent = "recent"}-/**- * Generated factory for {@link TeleportCatalogOptions} record objects.- */-export const TeleportCatalogOptions = (() => {- const defaults = () => ({- roots: undefined,- spaceOs: undefined,- spaceArch: undefined,- recentsPath: undefined- });- const create = (() => {- return uniffiCreateRecord<TeleportCatalogOptions, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportCatalogOptions>,- });-})();--const FfiConverterTypeTeleportCatalogOptions = (() => {- type TypeName = TeleportCatalogOptions;+const FfiConverterTypeKvCategory = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvCategory;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {- return {- roots: FfiConverterOptionalSequenceString.read(from),- spaceOs: FfiConverterOptionalString.read(from),- spaceArch: FfiConverterOptionalString.read(from),- recentsPath: FfiConverterOptionalString.read(from)- };+ switch (ordinalConverter.read(from)) {+ case 1: return KvCategory.All;+ case 2: return KvCategory.Waiting;+ case 3: return KvCategory.Access;+ case 4: return KvCategory.Recent;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalSequenceString.write(value.roots, into);- FfiConverterOptionalString.write(value.spaceOs, into);- FfiConverterOptionalString.write(value.spaceArch, into);- FfiConverterOptionalString.write(value.recentsPath, into);+ switch (value) {+ case KvCategory.All: return ordinalConverter.write(1, into);+ case KvCategory.Waiting: return ordinalConverter.write(2, into);+ case KvCategory.Access: return ordinalConverter.write(3, into);+ case KvCategory.Recent: return ordinalConverter.write(4, into);+ }}allocationSize(value: TypeName): number {- return FfiConverterOptionalSequenceString.allocationSize(value.roots) +- FfiConverterOptionalString.allocationSize(value.spaceOs) +- FfiConverterOptionalString.allocationSize(value.spaceArch) +- FfiConverterOptionalString.allocationSize(value.recentsPath);-+ return ordinalConverter.allocationSize(0);}- };+ }return new FFIConverter();})();-/**- * The user's answer to the consent screen.- */-export type TeleportConsent = {- /**- * Confirmed.- */- approved: boolean,- /**- * Saw and accepted the secrets.- */- acknowledgeSensitive: boolean,- /**- * "Save to Keyvault": keep the captured session sealed in the- * user's own Cua Keyvault after this delivery.- */- saveToKeyvault: boolean,+export type KvCategoryRow = {/**- * Saw and accepted `TeleportPlan.relay_unsealed`'s warning (S1).+ * Category.*/- acknowledgeRelayPlaintext: boolean,+ category: KvCategory,/**- * The review's per-site choice: the sites whose cookies to send- * (`None`: every cookie in the selection).+ * Title.*/- cookieDomains?: Array<string>,+ title: string,/**- * Consent items (their keys) the user turned off.+ * SF Symbol.*/- exclude: Array<string>,+ symbol: string,/**- * Send these saved Keyvault items (ids) instead of reading the- * live app: nothing is captured from the host.+ * Count (none for Recent).*/- fromVault?: Array<string>,+ count?: number,/**- * Also send the saved passwords: only when ticked in the review.+ * The sidebar badge: Waiting's count while something waits.*/- includePasswords: boolean+ badge?: number}/**- * Generated factory for {@link TeleportConsent} record objects.+ * Generated factory for {@link KvCategoryRow} record objects.*/-export const TeleportConsent = (() => {+export const KvCategoryRow = (() => {const defaults = () => ({- acknowledgeSensitive: false,- saveToKeyvault: false,- acknowledgeRelayPlaintext: false,- cookieDomains: undefined,- exclude: [],- fromVault: undefined,- includePasswords: false});const create = (() => {- return uniffiCreateRecord<TeleportConsent, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvCategoryRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportConsent>,+ defaults: () => Object.freeze(defaults()) as Partial<KvCategoryRow>,});})();-const FfiConverterTypeTeleportConsent = (() => {- type TypeName = TeleportConsent;+const FfiConverterTypeKvCategoryRow = (() => {+ type TypeName = KvCategoryRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- approved: FfiConverterBool.read(from),- acknowledgeSensitive: FfiConverterBool.read(from),- saveToKeyvault: FfiConverterBool.read(from),- acknowledgeRelayPlaintext: FfiConverterBool.read(from),- cookieDomains: FfiConverterOptionalSequenceString.read(from),- exclude: FfiConverterSequenceString.read(from),- fromVault: FfiConverterOptionalSequenceString.read(from),- includePasswords: FfiConverterBool.read(from)+ category: FfiConverterTypeKvCategory.read(from),+ title: FfiConverterString.read(from),+ symbol: FfiConverterString.read(from),+ count: FfiConverterOptionalUInt32.read(from),+ badge: FfiConverterOptionalUInt32.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterBool.write(value.approved, into);- FfiConverterBool.write(value.acknowledgeSensitive, into);- FfiConverterBool.write(value.saveToKeyvault, into);- FfiConverterBool.write(value.acknowledgeRelayPlaintext, into);- FfiConverterOptionalSequenceString.write(value.cookieDomains, into);- FfiConverterSequenceString.write(value.exclude, into);- FfiConverterOptionalSequenceString.write(value.fromVault, into);- FfiConverterBool.write(value.includePasswords, into);+ FfiConverterTypeKvCategory.write(value.category, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.symbol, into);+ FfiConverterOptionalUInt32.write(value.count, into);+ FfiConverterOptionalUInt32.write(value.badge, into);}allocationSize(value: TypeName): number {- return FfiConverterBool.allocationSize(value.approved) +- FfiConverterBool.allocationSize(value.acknowledgeSensitive) +- FfiConverterBool.allocationSize(value.saveToKeyvault) +- FfiConverterBool.allocationSize(value.acknowledgeRelayPlaintext) +- FfiConverterOptionalSequenceString.allocationSize(value.cookieDomains) +- FfiConverterSequenceString.allocationSize(value.exclude) +- FfiConverterOptionalSequenceString.allocationSize(value.fromVault) +- FfiConverterBool.allocationSize(value.includePasswords);+ return FfiConverterTypeKvCategory.allocationSize(value.category) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.symbol) ++ FfiConverterOptionalUInt32.allocationSize(value.count) ++ FfiConverterOptionalUInt32.allocationSize(value.badge);}};return new FFIConverter();})();-/**- * What a consent item is.- */-export enum TeleportConsentKind {- /**- * An install into the Space (nothing leaves this machine).- */- Install = "install",+export enum KvFormMode {/**- * A host file that leaves this machine.+ * No vault yet.*/- File = "file",+ Setup = "setup",/**- * A host folder that leaves this machine.+ * The vault is locked.*/- Folder = "folder",+ Unlock = "unlock"+}++const FfiConverterTypeKvFormMode = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvFormMode;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return KvFormMode.Setup;+ case 2: return KvFormMode.Unlock;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case KvFormMode.Setup: return ordinalConverter.write(1, into);+ case KvFormMode.Unlock: return ordinalConverter.write(2, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum KvMethod {/**- * App state that leaves this machine.+ * The OS key store (the login keychain), confirmed with Touch ID.*/- State = "state",+ TouchId = "touchId",/**- * A secret (cookies, tokens, logins) that leaves this machine.+ * A passphrase.*/- Secret = "secret"+ Passphrase = "passphrase"}-const FfiConverterTypeTeleportConsentKind = (() => {+const FfiConverterTypeKvMethod = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = TeleportConsentKind;+ type TypeName = KvMethod;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return TeleportConsentKind.Install;- case 2: return TeleportConsentKind.File;- case 3: return TeleportConsentKind.Folder;- case 4: return TeleportConsentKind.State;- case 5: return TeleportConsentKind.Secret;+ case 1: return KvMethod.TouchId;+ case 2: return KvMethod.Passphrase;default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value) {- case TeleportConsentKind.Install: return ordinalConverter.write(1, into);- case TeleportConsentKind.File: return ordinalConverter.write(2, into);- case TeleportConsentKind.Folder: return ordinalConverter.write(3, into);- case TeleportConsentKind.State: return ordinalConverter.write(4, into);- case TeleportConsentKind.Secret: return ordinalConverter.write(5, into);+ case KvMethod.TouchId: return ordinalConverter.write(1, into);+ case KvMethod.Passphrase: return ordinalConverter.write(2, into);}}allocationSize(value: TypeName): number {@@ -40337,1087 +39327,3747 @@ const FfiConverterTypeTeleportConsentKind = (() => {return new FFIConverter();})();-/**- * One line of the consent screen.- */-export type TeleportConsentItem = {- kind: TeleportConsentKind,+export type KvCredentialForm = {/**- * Installable id, host path, or manifest path.+ * Setup or unlock.*/- key: string,- label: string,+ mode: KvFormMode,/**- * Version and checksum, destination, or count.+ * Touch ID or a passphrase.*/- detail: string,+ method: KvMethod,/**- * Bytes that leave this machine.+ * One line under the form.*/- bytes: bigint,- sensitive: boolean+ help: string,+ /**+ * The passphrase field's label (passphrase only).+ */+ passphraseLabel?: string,+ /**+ * The second field's label (passphrase setup only).+ */+ confirmLabel?: string,+ /**+ * The button.+ */+ submitLabel: string}/**- * Generated factory for {@link TeleportConsentItem} record objects.+ * Generated factory for {@link KvCredentialForm} record objects.*/-export const TeleportConsentItem = (() => {+export const KvCredentialForm = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportConsentItem, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvCredentialForm, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportConsentItem>,+ defaults: () => Object.freeze(defaults()) as Partial<KvCredentialForm>,});})();-const FfiConverterTypeTeleportConsentItem = (() => {- type TypeName = TeleportConsentItem;+const FfiConverterTypeKvCredentialForm = (() => {+ type TypeName = KvCredentialForm;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterTypeTeleportConsentKind.read(from),- key: FfiConverterString.read(from),- label: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- bytes: FfiConverterUInt64.read(from),- sensitive: FfiConverterBool.read(from)+ mode: FfiConverterTypeKvFormMode.read(from),+ method: FfiConverterTypeKvMethod.read(from),+ help: FfiConverterString.read(from),+ passphraseLabel: FfiConverterOptionalString.read(from),+ confirmLabel: FfiConverterOptionalString.read(from),+ submitLabel: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeTeleportConsentKind.write(value.kind, into);- FfiConverterString.write(value.key, into);- FfiConverterString.write(value.label, into);- FfiConverterString.write(value.detail, into);- FfiConverterUInt64.write(value.bytes, into);- FfiConverterBool.write(value.sensitive, into);+ FfiConverterTypeKvFormMode.write(value.mode, into);+ FfiConverterTypeKvMethod.write(value.method, into);+ FfiConverterString.write(value.help, into);+ FfiConverterOptionalString.write(value.passphraseLabel, into);+ FfiConverterOptionalString.write(value.confirmLabel, into);+ FfiConverterString.write(value.submitLabel, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeTeleportConsentKind.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.key) +- FfiConverterString.allocationSize(value.label) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterUInt64.allocationSize(value.bytes) +- FfiConverterBool.allocationSize(value.sensitive);+ return FfiConverterTypeKvFormMode.allocationSize(value.mode) ++ FfiConverterTypeKvMethod.allocationSize(value.method) ++ FfiConverterString.allocationSize(value.help) ++ FfiConverterOptionalString.allocationSize(value.passphraseLabel) ++ FfiConverterOptionalString.allocationSize(value.confirmLabel) ++ FfiConverterString.allocationSize(value.submitLabel);}};return new FFIConverter();})();-/**- * A parsed drop.- */-export type TeleportDrop = {+export enum KvDecisionTone {/**- * `app`, `files`, `url` or `empty`.+ * Allowed or delivered.*/- kind: string,+ Ok = "ok",/**- * App bundles, `.desktop` entries, shortcuts.+ * Denied, refused, failed.*/- apps: Array<string>,+ Deny = "deny",/**- * Files and folders.+ * Everything else.*/- files: Array<string>,+ Info = "info"+}++const FfiConverterTypeKvDecisionTone = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvDecisionTone;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return KvDecisionTone.Ok;+ case 2: return KvDecisionTone.Deny;+ case 3: return KvDecisionTone.Info;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case KvDecisionTone.Ok: return ordinalConverter.write(1, into);+ case KvDecisionTone.Deny: return ordinalConverter.write(2, into);+ case KvDecisionTone.Info: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type KvDecision = {/**- * URLs.+ * The entry.*/- urls: Array<string>,+ entry: KvAuditEntry,/**- * Unusable entries.+ * "Approved".*/- ignored: Array<string>+ verb: string,+ /**+ * Tone.+ */+ tone: KvDecisionTone,+ /**+ * Item and target, or the actor.+ */+ what: string}/**- * Generated factory for {@link TeleportDrop} record objects.+ * Generated factory for {@link KvDecision} record objects.*/-export const TeleportDrop = (() => {+export const KvDecision = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportDrop, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvDecision, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportDrop>,+ defaults: () => Object.freeze(defaults()) as Partial<KvDecision>,});})();-const FfiConverterTypeTeleportDrop = (() => {- type TypeName = TeleportDrop;+const FfiConverterTypeKvDecision = (() => {+ type TypeName = KvDecision;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterString.read(from),- apps: FfiConverterSequenceString.read(from),- files: FfiConverterSequenceString.read(from),- urls: FfiConverterSequenceString.read(from),- ignored: FfiConverterSequenceString.read(from)+ entry: FfiConverterTypeKvAuditEntry.read(from),+ verb: FfiConverterString.read(from),+ tone: FfiConverterTypeKvDecisionTone.read(from),+ what: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.kind, into);- FfiConverterSequenceString.write(value.apps, into);- FfiConverterSequenceString.write(value.files, into);- FfiConverterSequenceString.write(value.urls, into);- FfiConverterSequenceString.write(value.ignored, into);+ FfiConverterTypeKvAuditEntry.write(value.entry, into);+ FfiConverterString.write(value.verb, into);+ FfiConverterTypeKvDecisionTone.write(value.tone, into);+ FfiConverterString.write(value.what, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.kind) +- FfiConverterSequenceString.allocationSize(value.apps) +- FfiConverterSequenceString.allocationSize(value.files) +- FfiConverterSequenceString.allocationSize(value.urls) +- FfiConverterSequenceString.allocationSize(value.ignored);+ return FfiConverterTypeKvAuditEntry.allocationSize(value.entry) ++ FfiConverterString.allocationSize(value.verb) ++ FfiConverterTypeKvDecisionTone.allocationSize(value.tone) ++ FfiConverterString.allocationSize(value.what);}};return new FFIConverter();})();-/**- * Options for [`Teleport::manifest`] and [`Teleport::send`].- */-export type TeleportOptions = {- /**- * Chrome profile to capture: a name ("Profile 1") or a path. Default- * `Default`.- */- chromeProfile?: string,+export type KvDeleteConfirm = {/**- * Display name for the app (UI only). Default: the app id.+ * "Delete 3 items?"*/- displayName?: string,+ title: string,/**- * Launch the app in the sandbox after importing. Default true.+ * What deleting does.*/- launchAfter?: boolean,+ message: string,/**- * Ask the sandbox to close a running instance first.+ * "Delete".*/- closeRunningApp: boolean,+ confirm: string,/**- * Explicit, per-delivery opt-in to send over a `relay:` Space whose- * image predates end-to-end sealing (S1). Without it, a `relay:`- * destination fails with a `PermissionDenied` naming the risk- * (`cua_teleport::send::RELAY_UNSEALED_WARNING`) before anything is- * read or uploaded. Show that warning and get the user's explicit,- * per-delivery consent before setting this; never a standing setting.- * Local and direct Spaces are unaffected.+ * "Cancel".*/- relayPlaintextAck: boolean+ cancel: string}/**- * Generated factory for {@link TeleportOptions} record objects.+ * Generated factory for {@link KvDeleteConfirm} record objects.*/-export const TeleportOptions = (() => {+export const KvDeleteConfirm = (() => {const defaults = () => ({- chromeProfile: undefined,- displayName: undefined,- launchAfter: undefined,- closeRunningApp: false,- relayPlaintextAck: false});const create = (() => {- return uniffiCreateRecord<TeleportOptions, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvDeleteConfirm, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportOptions>,+ defaults: () => Object.freeze(defaults()) as Partial<KvDeleteConfirm>,});})();-const FfiConverterTypeTeleportOptions = (() => {- type TypeName = TeleportOptions;+const FfiConverterTypeKvDeleteConfirm = (() => {+ type TypeName = KvDeleteConfirm;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- chromeProfile: FfiConverterOptionalString.read(from),- displayName: FfiConverterOptionalString.read(from),- launchAfter: FfiConverterOptionalBoolean.read(from),- closeRunningApp: FfiConverterBool.read(from),- relayPlaintextAck: FfiConverterBool.read(from)+ title: FfiConverterString.read(from),+ message: FfiConverterString.read(from),+ confirm: FfiConverterString.read(from),+ cancel: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterOptionalString.write(value.chromeProfile, into);- FfiConverterOptionalString.write(value.displayName, into);- FfiConverterOptionalBoolean.write(value.launchAfter, into);- FfiConverterBool.write(value.closeRunningApp, into);- FfiConverterBool.write(value.relayPlaintextAck, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.message, into);+ FfiConverterString.write(value.confirm, into);+ FfiConverterString.write(value.cancel, into);}allocationSize(value: TypeName): number {- return FfiConverterOptionalString.allocationSize(value.chromeProfile) +- FfiConverterOptionalString.allocationSize(value.displayName) +- FfiConverterOptionalBoolean.allocationSize(value.launchAfter) +- FfiConverterBool.allocationSize(value.closeRunningApp) +- FfiConverterBool.allocationSize(value.relayPlaintextAck);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.message) ++ FfiConverterString.allocationSize(value.confirm) ++ FfiConverterString.allocationSize(value.cancel);}};return new FFIConverter();})();-/**- * One step of a plan.- */-export type TeleportPlanStep = {+export type KvFavicon = {/**- * `install`, `files`, `state` or `launch`.+ * The site (registrable domain).*/- kind: string,+ site: string,/**- * Human summary.+ * PNG, base64.*/- summary: string+ png: string}/**- * Generated factory for {@link TeleportPlanStep} record objects.+ * Generated factory for {@link KvFavicon} record objects.*/-export const TeleportPlanStep = (() => {+export const KvFavicon = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportPlanStep, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvFavicon, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportPlanStep>,+ defaults: () => Object.freeze(defaults()) as Partial<KvFavicon>,});})();-const FfiConverterTypeTeleportPlanStep = (() => {- type TypeName = TeleportPlanStep;+const FfiConverterTypeKvFavicon = (() => {+ type TypeName = KvFavicon;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- kind: FfiConverterString.read(from),- summary: FfiConverterString.read(from)+ site: FfiConverterString.read(from),+ png: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.kind, into);- FfiConverterString.write(value.summary, into);+ FfiConverterString.write(value.site, into);+ FfiConverterString.write(value.png, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.summary);+ return FfiConverterString.allocationSize(value.site) ++ FfiConverterString.allocationSize(value.png);}};return new FFIConverter();})();-/**- * Exactly what a teleport will do and move.- */-export type TeleportPlan = {- app: TeleportCatalogEntry,- spaceId: string,- moves: TeleportMove,- steps: Array<TeleportPlanStep>,- /**- * Every install, path and secret.- */- consent: Array<TeleportConsentItem>,+export type KvInventory = {/**- * A consent item is a secret (needs `acknowledge_sensitive`).+ * Provider id.*/- sensitive: boolean,+ providerId: string,/**- * Bytes that leave this machine.+ * App name.*/- totalBytes: bigint,- warnings: Array<string>,+ appDisplay: string,/**- * This Space is reached through a relay connection that predates- * end-to-end sealing: a secret this plan sends would cross it in- * the clear (S1). Needs `acknowledge_relay_plaintext` the same way- * a secret needs `acknowledge_sensitive`.+ * Domains with counts.*/- relayUnsealed: boolean,+ domains: Array<KvDomainCount>,/**- * The plan as JSON (what `run` reads back).+ * Notes.*/- json: string+ notes: Array<string>}/**- * Generated factory for {@link TeleportPlan} record objects.+ * Generated factory for {@link KvInventory} record objects.*/-export const TeleportPlan = (() => {+export const KvInventory = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportPlan, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvInventory, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportPlan>,+ defaults: () => Object.freeze(defaults()) as Partial<KvInventory>,});})();-const FfiConverterTypeTeleportPlan = (() => {- type TypeName = TeleportPlan;+const FfiConverterTypeKvInventory = (() => {+ type TypeName = KvInventory;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- app: FfiConverterTypeTeleportCatalogEntry.read(from),- spaceId: FfiConverterString.read(from),- moves: FfiConverterTypeTeleportMove.read(from),- steps: FfiConverterSequenceTypeTeleportPlanStep.read(from),- consent: FfiConverterSequenceTypeTeleportConsentItem.read(from),- sensitive: FfiConverterBool.read(from),- totalBytes: FfiConverterUInt64.read(from),- warnings: FfiConverterSequenceString.read(from),- relayUnsealed: FfiConverterBool.read(from),- json: FfiConverterString.read(from)+ providerId: FfiConverterString.read(from),+ appDisplay: FfiConverterString.read(from),+ domains: FfiConverterSequenceTypeKvDomainCount.read(from),+ notes: FfiConverterSequenceString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeTeleportCatalogEntry.write(value.app, into);- FfiConverterString.write(value.spaceId, into);- FfiConverterTypeTeleportMove.write(value.moves, into);- FfiConverterSequenceTypeTeleportPlanStep.write(value.steps, into);- FfiConverterSequenceTypeTeleportConsentItem.write(value.consent, into);- FfiConverterBool.write(value.sensitive, into);- FfiConverterUInt64.write(value.totalBytes, into);- FfiConverterSequenceString.write(value.warnings, into);- FfiConverterBool.write(value.relayUnsealed, into);- FfiConverterString.write(value.json, into);+ FfiConverterString.write(value.providerId, into);+ FfiConverterString.write(value.appDisplay, into);+ FfiConverterSequenceTypeKvDomainCount.write(value.domains, into);+ FfiConverterSequenceString.write(value.notes, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeTeleportCatalogEntry.allocationSize(value.app) +- FfiConverterString.allocationSize(value.spaceId) +- FfiConverterTypeTeleportMove.allocationSize(value.moves) +- FfiConverterSequenceTypeTeleportPlanStep.allocationSize(value.steps) +- FfiConverterSequenceTypeTeleportConsentItem.allocationSize(value.consent) +- FfiConverterBool.allocationSize(value.sensitive) +- FfiConverterUInt64.allocationSize(value.totalBytes) +- FfiConverterSequenceString.allocationSize(value.warnings) +- FfiConverterBool.allocationSize(value.relayUnsealed) +- FfiConverterString.allocationSize(value.json);+ return FfiConverterString.allocationSize(value.providerId) ++ FfiConverterString.allocationSize(value.appDisplay) ++ FfiConverterSequenceTypeKvDomainCount.allocationSize(value.domains) ++ FfiConverterSequenceString.allocationSize(value.notes);}};return new FFIConverter();})();-/**- * Options for [`Teleport::plan`].- */-export type TeleportPlanOptions = {+export type KvLabels = {/**- * What moves.+ * "Deny".*/- moves: TeleportMove,+ deny: string,/**- * Host files or folders (`AppWithFiles`).+ * "Review…" (opens the approval sheet).*/- files: Array<string>,+ review: string,/**- * Provider manifest items (`AppWithState`); `None` is the- * provider's default selection.+ * "Cancel".*/- stateItems?: Array<string>,+ cancel: string,/**- * With `state_items` `None`: also these opt-in groups of the- * entry's `sensitive_groups` (`SignIns` keeps the app signed in).- * Their items are secrets in the plan's consent: `run` needs- * `acknowledge_sensitive`.+ * "Set up Keyvault".*/- sensitiveGroups: Array<TeleportSensitiveGroup>,+ setUp: string,/**- * `tabs` or `full` (default) state.+ * "Unlock".*/- scope?: string,+ unlock: string,/**- * Launch the app when done (default true).+ * "Revoke all".*/- launch?: boolean+ revokeAll: string,+ /**+ * Under the approval sheet.+ */+ confirmNote: string,+ /**+ * "Protection".+ */+ protectionTitle: string}/**- * Generated factory for {@link TeleportPlanOptions} record objects.+ * Generated factory for {@link KvLabels} record objects.*/-export const TeleportPlanOptions = (() => {+export const KvLabels = (() => {const defaults = () => ({- files: [],- stateItems: undefined,- sensitiveGroups: [],- scope: undefined,- launch: undefined});const create = (() => {- return uniffiCreateRecord<TeleportPlanOptions, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvLabels, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportPlanOptions>,+ defaults: () => Object.freeze(defaults()) as Partial<KvLabels>,});})();-const FfiConverterTypeTeleportPlanOptions = (() => {- type TypeName = TeleportPlanOptions;+const FfiConverterTypeKvLabels = (() => {+ type TypeName = KvLabels;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- moves: FfiConverterTypeTeleportMove.read(from),- files: FfiConverterSequenceString.read(from),- stateItems: FfiConverterOptionalSequenceString.read(from),- sensitiveGroups: FfiConverterSequenceTypeTeleportSensitiveGroup.read(from),- scope: FfiConverterOptionalString.read(from),- launch: FfiConverterOptionalBoolean.read(from)+ deny: FfiConverterString.read(from),+ review: FfiConverterString.read(from),+ cancel: FfiConverterString.read(from),+ setUp: FfiConverterString.read(from),+ unlock: FfiConverterString.read(from),+ revokeAll: FfiConverterString.read(from),+ confirmNote: FfiConverterString.read(from),+ protectionTitle: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterTypeTeleportMove.write(value.moves, into);- FfiConverterSequenceString.write(value.files, into);- FfiConverterOptionalSequenceString.write(value.stateItems, into);- FfiConverterSequenceTypeTeleportSensitiveGroup.write(value.sensitiveGroups, into);- FfiConverterOptionalString.write(value.scope, into);- FfiConverterOptionalBoolean.write(value.launch, into);+ FfiConverterString.write(value.deny, into);+ FfiConverterString.write(value.review, into);+ FfiConverterString.write(value.cancel, into);+ FfiConverterString.write(value.setUp, into);+ FfiConverterString.write(value.unlock, into);+ FfiConverterString.write(value.revokeAll, into);+ FfiConverterString.write(value.confirmNote, into);+ FfiConverterString.write(value.protectionTitle, into);}allocationSize(value: TypeName): number {- return FfiConverterTypeTeleportMove.allocationSize(value.moves) +- FfiConverterSequenceString.allocationSize(value.files) +- FfiConverterOptionalSequenceString.allocationSize(value.stateItems) +- FfiConverterSequenceTypeTeleportSensitiveGroup.allocationSize(value.sensitiveGroups) +- FfiConverterOptionalString.allocationSize(value.scope) +- FfiConverterOptionalBoolean.allocationSize(value.launch);+ return FfiConverterString.allocationSize(value.deny) ++ FfiConverterString.allocationSize(value.review) ++ FfiConverterString.allocationSize(value.cancel) ++ FfiConverterString.allocationSize(value.setUp) ++ FfiConverterString.allocationSize(value.unlock) ++ FfiConverterString.allocationSize(value.revokeAll) ++ FfiConverterString.allocationSize(value.confirmNote) ++ FfiConverterString.allocationSize(value.protectionTitle);}};return new FFIConverter();})();-/**- * An app this machine can teleport.- */-export type TeleportProvider = {+export type KvPendingRow = {/**- * Provider id.+ * Request id.*/id: string,/**- * Display name.- */- displayName: string,- /**- * Bundle ids and app names it matches.- */- appIds: Array<string>,- /**- * Exports on macOS.+ * Short caller.*/- macos: boolean,+ caller: string,/**- * Exports on Linux.+ * Signing badge.*/- linux: boolean,+ badge: KvSigningBadge,/**- * Exports on Windows.+ * What and where.*/- windows: boolean,+ summary: string,/**- * Install check: a path, or a binary name when `install_probe_on_path`.+ * For how long.*/- installProbe?: string,+ wants: string,/**- * Whether `install_probe` is a `PATH` binary name.+ * Unverified claims (tooltip).*/- installProbeOnPath: boolean+ claims: Array<string>}/**- * Generated factory for {@link TeleportProvider} record objects.+ * Generated factory for {@link KvPendingRow} record objects.*/-export const TeleportProvider = (() => {+export const KvPendingRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportProvider, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvPendingRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportProvider>,+ defaults: () => Object.freeze(defaults()) as Partial<KvPendingRow>,});})();-const FfiConverterTypeTeleportProvider = (() => {- type TypeName = TeleportProvider;+const FfiConverterTypeKvPendingRow = (() => {+ type TypeName = KvPendingRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {id: FfiConverterString.read(from),- displayName: FfiConverterString.read(from),- appIds: FfiConverterSequenceString.read(from),- macos: FfiConverterBool.read(from),- linux: FfiConverterBool.read(from),- windows: FfiConverterBool.read(from),- installProbe: FfiConverterOptionalString.read(from),- installProbeOnPath: FfiConverterBool.read(from)+ caller: FfiConverterString.read(from),+ badge: FfiConverterTypeKvSigningBadge.read(from),+ summary: FfiConverterString.read(from),+ wants: FfiConverterString.read(from),+ claims: FfiConverterSequenceString.read(from)};}write(value: TypeName, into: RustBuffer): void {FfiConverterString.write(value.id, into);- FfiConverterString.write(value.displayName, into);- FfiConverterSequenceString.write(value.appIds, into);- FfiConverterBool.write(value.macos, into);- FfiConverterBool.write(value.linux, into);- FfiConverterBool.write(value.windows, into);- FfiConverterOptionalString.write(value.installProbe, into);- FfiConverterBool.write(value.installProbeOnPath, into);+ FfiConverterString.write(value.caller, into);+ FfiConverterTypeKvSigningBadge.write(value.badge, into);+ FfiConverterString.write(value.summary, into);+ FfiConverterString.write(value.wants, into);+ FfiConverterSequenceString.write(value.claims, into);}allocationSize(value: TypeName): number {return FfiConverterString.allocationSize(value.id) +- FfiConverterString.allocationSize(value.displayName) +- FfiConverterSequenceString.allocationSize(value.appIds) +- FfiConverterBool.allocationSize(value.macos) +- FfiConverterBool.allocationSize(value.linux) +- FfiConverterBool.allocationSize(value.windows) +- FfiConverterOptionalString.allocationSize(value.installProbe) +- FfiConverterBool.allocationSize(value.installProbeOnPath);+ FfiConverterString.allocationSize(value.caller) ++ FfiConverterTypeKvSigningBadge.allocationSize(value.badge) ++ FfiConverterString.allocationSize(value.summary) ++ FfiConverterString.allocationSize(value.wants) ++ FfiConverterSequenceString.allocationSize(value.claims);}};return new FFIConverter();})();-/**- * The result of [`Teleport::send`].- */-export type TeleportResult = {- /**- * Provider id.- */- providerId: string,- /**- * Upload id.- */- importId: string,- /**- * Bundle size.- */- bundleBytes: bigint,- /**- * Bundle SHA-256 (hex).- */- sha256: string,- /**- * Selected item keys.- */- sent: Array<string>,- /**- * Item keys the default selection left out.- */- withheld: Array<string>,- /**- * What the sandbox imported.- */- imported: Array<string>,+export type KvRecentRow = {/**- * What it skipped, as "item: reason".+ * The decision.*/- skipped: Array<string>,+ decision: KvDecision,/**- * Whether it launched the app.+ * "now", "5 min ago".*/- launched: boolean+ age: string}/**- * Generated factory for {@link TeleportResult} record objects.+ * Generated factory for {@link KvRecentRow} record objects.*/-export const TeleportResult = (() => {+export const KvRecentRow = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportResult, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvRecentRow, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportResult>,+ defaults: () => Object.freeze(defaults()) as Partial<KvRecentRow>,});})();-const FfiConverterTypeTeleportResult = (() => {- type TypeName = TeleportResult;+const FfiConverterTypeKvRecentRow = (() => {+ type TypeName = KvRecentRow;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- providerId: FfiConverterString.read(from),- importId: FfiConverterString.read(from),- bundleBytes: FfiConverterUInt64.read(from),- sha256: FfiConverterString.read(from),- sent: FfiConverterSequenceString.read(from),- withheld: FfiConverterSequenceString.read(from),- imported: FfiConverterSequenceString.read(from),- skipped: FfiConverterSequenceString.read(from),- launched: FfiConverterBool.read(from)+ decision: FfiConverterTypeKvDecision.read(from),+ age: FfiConverterString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.providerId, into);- FfiConverterString.write(value.importId, into);- FfiConverterUInt64.write(value.bundleBytes, into);- FfiConverterString.write(value.sha256, into);- FfiConverterSequenceString.write(value.sent, into);- FfiConverterSequenceString.write(value.withheld, into);- FfiConverterSequenceString.write(value.imported, into);- FfiConverterSequenceString.write(value.skipped, into);- FfiConverterBool.write(value.launched, into);+ FfiConverterTypeKvDecision.write(value.decision, into);+ FfiConverterString.write(value.age, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.providerId) +- FfiConverterString.allocationSize(value.importId) +- FfiConverterUInt64.allocationSize(value.bundleBytes) +- FfiConverterString.allocationSize(value.sha256) +- FfiConverterSequenceString.allocationSize(value.sent) +- FfiConverterSequenceString.allocationSize(value.withheld) +- FfiConverterSequenceString.allocationSize(value.imported) +- FfiConverterSequenceString.allocationSize(value.skipped) +- FfiConverterBool.allocationSize(value.launched);+ return FfiConverterTypeKvDecision.allocationSize(value.decision) ++ FfiConverterString.allocationSize(value.age);}};return new FFIConverter();})();-/**- * One progress event of [`Teleport::run`].- */-export type TeleportRunEvent = {- step: number,- steps: number,+export type KvListView = {/**- * `install`, `files`, `state`, `launch`, `done`.+ * Title.*/- kind: string,+ title: string,/**- * `started`, `progress`, `finished`, `failed`, `done`.+ * The vault list shows (All Items, or one app).*/- phase: string,- detail: string,- doneBytes: bigint,- totalBytes: bigint+ vault: boolean,+ /**+ * Waiting.+ */+ pending: Array<KvPendingRow>,+ /**+ * Access.+ */+ access: Array<KvAccessRow>,+ /**+ * Recent.+ */+ recent: Array<KvRecentRow>,+ /**+ * "Nothing is waiting." and friends.+ */+ emptyText?: string}/**- * Generated factory for {@link TeleportRunEvent} record objects.+ * Generated factory for {@link KvListView} record objects.*/-export const TeleportRunEvent = (() => {+export const KvListView = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportRunEvent, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvListView, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportRunEvent>,+ defaults: () => Object.freeze(defaults()) as Partial<KvListView>,});})();-const FfiConverterTypeTeleportRunEvent = (() => {- type TypeName = TeleportRunEvent;+const FfiConverterTypeKvListView = (() => {+ type TypeName = KvListView;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- step: FfiConverterUInt32.read(from),- steps: FfiConverterUInt32.read(from),- kind: FfiConverterString.read(from),- phase: FfiConverterString.read(from),- detail: FfiConverterString.read(from),- doneBytes: FfiConverterUInt64.read(from),- totalBytes: FfiConverterUInt64.read(from)+ title: FfiConverterString.read(from),+ vault: FfiConverterBool.read(from),+ pending: FfiConverterSequenceTypeKvPendingRow.read(from),+ access: FfiConverterSequenceTypeKvAccessRow.read(from),+ recent: FfiConverterSequenceTypeKvRecentRow.read(from),+ emptyText: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.step, into);- FfiConverterUInt32.write(value.steps, into);- FfiConverterString.write(value.kind, into);- FfiConverterString.write(value.phase, into);- FfiConverterString.write(value.detail, into);- FfiConverterUInt64.write(value.doneBytes, into);- FfiConverterUInt64.write(value.totalBytes, into);+ FfiConverterString.write(value.title, into);+ FfiConverterBool.write(value.vault, into);+ FfiConverterSequenceTypeKvPendingRow.write(value.pending, into);+ FfiConverterSequenceTypeKvAccessRow.write(value.access, into);+ FfiConverterSequenceTypeKvRecentRow.write(value.recent, into);+ FfiConverterOptionalString.write(value.emptyText, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.step) +- FfiConverterUInt32.allocationSize(value.steps) +- FfiConverterString.allocationSize(value.kind) +- FfiConverterString.allocationSize(value.phase) +- FfiConverterString.allocationSize(value.detail) +- FfiConverterUInt64.allocationSize(value.doneBytes) +- FfiConverterUInt64.allocationSize(value.totalBytes);+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterBool.allocationSize(value.vault) ++ FfiConverterSequenceTypeKvPendingRow.allocationSize(value.pending) ++ FfiConverterSequenceTypeKvAccessRow.allocationSize(value.access) ++ FfiConverterSequenceTypeKvRecentRow.allocationSize(value.recent) ++ FfiConverterOptionalString.allocationSize(value.emptyText);}};return new FFIConverter();})();-/**- * What a run did.- */-export type TeleportRunReport = {- appId: string,- installed: Array<string>,+export type KvPage = {/**- * Guest paths of sent files.+ * Items can be shown.*/- sent: Array<string>,- imported: Array<string>,- skipped: Array<string>,- launched: boolean-}--/**- * Generated factory for {@link TeleportRunReport} record objects.- */-export const TeleportRunReport = (() => {- const defaults = () => ({- });- const create = (() => {- return uniffiCreateRecord<TeleportRunReport, ReturnType<typeof defaults>>(defaults);- })();- return Object.freeze({- create,- new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportRunReport>,- });-})();--const FfiConverterTypeTeleportRunReport = (() => {- type TypeName = TeleportRunReport;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- return {- appId: FfiConverterString.read(from),- installed: FfiConverterSequenceString.read(from),- sent: FfiConverterSequenceString.read(from),- imported: FfiConverterSequenceString.read(from),- skipped: FfiConverterSequenceString.read(from),- launched: FfiConverterBool.read(from)- };- }- write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.appId, into);- FfiConverterSequenceString.write(value.installed, into);- FfiConverterSequenceString.write(value.sent, into);- FfiConverterSequenceString.write(value.imported, into);- FfiConverterSequenceString.write(value.skipped, into);- FfiConverterBool.write(value.launched, into);- }- allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.appId) +- FfiConverterSequenceString.allocationSize(value.installed) +- FfiConverterSequenceString.allocationSize(value.sent) +- FfiConverterSequenceString.allocationSize(value.imported) +- FfiConverterSequenceString.allocationSize(value.skipped) +- FfiConverterBool.allocationSize(value.launched);-- }- };- return new FFIConverter();-})();--/**- * One on-screen window of this machine.- */-export type TeleportWindow = {+ ready: boolean,/**- * Platform window id (for the thumbnail).+ * The unavailable heading.*/- windowId: number,+ unavailableTitle?: string,/**- * Owning process.+ * The broker's sentence.*/- pid: bigint,+ message?: string,/**- * Owning app.+ * "Set up Keyvault" shows.*/- appName: string,+ canSetup: boolean,/**- * Title (empty without Screen Recording on macOS).+ * "Unlock" shows.*/- title: string,+ canUnlock: boolean,/**- * The owning app's bundle, when known.+ * The Disable switch shows (this app is first party, a vault exists).*/- bundlePath?: string+ killSwitchVisible: boolean,+ /**+ * The switch can be flipped (unlocked).+ */+ killSwitchEnabled: boolean,+ /**+ * The kill switch is on.+ */+ disabled: boolean,+ /**+ * "Keyvault is off. Nothing can be teleported."+ */+ disabledBanner?: string,+ /**+ * Sections that failed to load.+ */+ partialErrors: Array<string>,+ /**+ * "Log verified" / "Log tampered at #n".+ */+ logStatus?: string,+ /**+ * The log check failed.+ */+ logTampered: boolean,+ /**+ * Protection facts.+ */+ protection: Array<AppFact>,+ /**+ * "Revoke all" shows (more than one live grant).+ */+ revokeAll: boolean,+ /**+ * Items exist.+ */+ hasItems: boolean,+ /**+ * Search shows (any item exists).+ */+ searchVisible: boolean,+ /**+ * "Never ask again" on the unlock prompt is on (Settings turns it off).+ */+ skipUnlockPrompt: boolean,+ /**+ * An earlier preview's vault was set aside: one line to show.+ */+ resetNotice?: string,+ /**+ * Pending requests (the sidebar badge).+ */+ pendingCount: number,+ /**+ * The switch's tooltip (it reads "on" while the Keyvault works).+ */+ killSwitchHelp: string,+ /**+ * The page's fixed words.+ */+ labels: KvLabels,+ /**+ * The setup or unlock form, when one applies.+ */+ form?: KvCredentialForm}/**- * Generated factory for {@link TeleportWindow} record objects.+ * Generated factory for {@link KvPage} record objects.*/-export const TeleportWindow = (() => {+export const KvPage = (() => {const defaults = () => ({});const create = (() => {- return uniffiCreateRecord<TeleportWindow, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvPage, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportWindow>,+ defaults: () => Object.freeze(defaults()) as Partial<KvPage>,});})();-const FfiConverterTypeTeleportWindow = (() => {- type TypeName = TeleportWindow;+const FfiConverterTypeKvPage = (() => {+ type TypeName = KvPage;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- windowId: FfiConverterUInt32.read(from),- pid: FfiConverterInt64.read(from),- appName: FfiConverterString.read(from),- title: FfiConverterString.read(from),- bundlePath: FfiConverterOptionalString.read(from)+ ready: FfiConverterBool.read(from),+ unavailableTitle: FfiConverterOptionalString.read(from),+ message: FfiConverterOptionalString.read(from),+ canSetup: FfiConverterBool.read(from),+ canUnlock: FfiConverterBool.read(from),+ killSwitchVisible: FfiConverterBool.read(from),+ killSwitchEnabled: FfiConverterBool.read(from),+ disabled: FfiConverterBool.read(from),+ disabledBanner: FfiConverterOptionalString.read(from),+ partialErrors: FfiConverterSequenceString.read(from),+ logStatus: FfiConverterOptionalString.read(from),+ logTampered: FfiConverterBool.read(from),+ protection: FfiConverterSequenceTypeAppFact.read(from),+ revokeAll: FfiConverterBool.read(from),+ hasItems: FfiConverterBool.read(from),+ searchVisible: FfiConverterBool.read(from),+ skipUnlockPrompt: FfiConverterBool.read(from),+ resetNotice: FfiConverterOptionalString.read(from),+ pendingCount: FfiConverterUInt32.read(from),+ killSwitchHelp: FfiConverterString.read(from),+ labels: FfiConverterTypeKvLabels.read(from),+ form: FfiConverterOptionalTypeKvCredentialForm.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterUInt32.write(value.windowId, into);- FfiConverterInt64.write(value.pid, into);- FfiConverterString.write(value.appName, into);- FfiConverterString.write(value.title, into);- FfiConverterOptionalString.write(value.bundlePath, into);+ FfiConverterBool.write(value.ready, into);+ FfiConverterOptionalString.write(value.unavailableTitle, into);+ FfiConverterOptionalString.write(value.message, into);+ FfiConverterBool.write(value.canSetup, into);+ FfiConverterBool.write(value.canUnlock, into);+ FfiConverterBool.write(value.killSwitchVisible, into);+ FfiConverterBool.write(value.killSwitchEnabled, into);+ FfiConverterBool.write(value.disabled, into);+ FfiConverterOptionalString.write(value.disabledBanner, into);+ FfiConverterSequenceString.write(value.partialErrors, into);+ FfiConverterOptionalString.write(value.logStatus, into);+ FfiConverterBool.write(value.logTampered, into);+ FfiConverterSequenceTypeAppFact.write(value.protection, into);+ FfiConverterBool.write(value.revokeAll, into);+ FfiConverterBool.write(value.hasItems, into);+ FfiConverterBool.write(value.searchVisible, into);+ FfiConverterBool.write(value.skipUnlockPrompt, into);+ FfiConverterOptionalString.write(value.resetNotice, into);+ FfiConverterUInt32.write(value.pendingCount, into);+ FfiConverterString.write(value.killSwitchHelp, into);+ FfiConverterTypeKvLabels.write(value.labels, into);+ FfiConverterOptionalTypeKvCredentialForm.write(value.form, into);}allocationSize(value: TypeName): number {- return FfiConverterUInt32.allocationSize(value.windowId) +- FfiConverterInt64.allocationSize(value.pid) +- FfiConverterString.allocationSize(value.appName) +- FfiConverterString.allocationSize(value.title) +- FfiConverterOptionalString.allocationSize(value.bundlePath);+ return FfiConverterBool.allocationSize(value.ready) ++ FfiConverterOptionalString.allocationSize(value.unavailableTitle) ++ FfiConverterOptionalString.allocationSize(value.message) ++ FfiConverterBool.allocationSize(value.canSetup) ++ FfiConverterBool.allocationSize(value.canUnlock) ++ FfiConverterBool.allocationSize(value.killSwitchVisible) ++ FfiConverterBool.allocationSize(value.killSwitchEnabled) ++ FfiConverterBool.allocationSize(value.disabled) ++ FfiConverterOptionalString.allocationSize(value.disabledBanner) ++ FfiConverterSequenceString.allocationSize(value.partialErrors) ++ FfiConverterOptionalString.allocationSize(value.logStatus) ++ FfiConverterBool.allocationSize(value.logTampered) ++ FfiConverterSequenceTypeAppFact.allocationSize(value.protection) ++ FfiConverterBool.allocationSize(value.revokeAll) ++ FfiConverterBool.allocationSize(value.hasItems) ++ FfiConverterBool.allocationSize(value.searchVisible) ++ FfiConverterBool.allocationSize(value.skipUnlockPrompt) ++ FfiConverterOptionalString.allocationSize(value.resetNotice) ++ FfiConverterUInt32.allocationSize(value.pendingCount) ++ FfiConverterString.allocationSize(value.killSwitchHelp) ++ FfiConverterTypeKvLabels.allocationSize(value.labels) ++ FfiConverterOptionalTypeKvCredentialForm.allocationSize(value.form);}};return new FFIConverter();})();-/**- * A window-drag event (global top-left display points).- */-export type TeleportWindowDragEvent = {+export enum KvStrength {/**- * `start`, `move` or `end`.+ * Too short, or easy to guess.*/- phase: string,- x: number,- y: number,+ Weak = "weak",/**- * The dragged window (`start`, `end`).+ * Acceptable.*/- window?: TeleportWindow,+ Fair = "fair",/**- * Its app, classified (`start`, `end`).+ * Long and varied.*/- app?: TeleportCatalogEntry,+ Strong = "strong"+}++const FfiConverterTypeKvStrength = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvStrength;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return KvStrength.Weak;+ case 2: return KvStrength.Fair;+ case 3: return KvStrength.Strong;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case KvStrength.Weak: return ordinalConverter.write(1, into);+ case KvStrength.Fair: return ordinalConverter.write(2, into);+ case KvStrength.Strong: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type KvPassphraseCheck = {/**- * The window's frame at mouse down (`start`).+ * The button is enabled.*/- startFrame?: AppLogicalRect,+ canSubmit: boolean,/**- * The window's frame now (`start`, `end`, and some `move`s). Compare- * with `start_frame` to tell a move from a resize- * (`app_drag_trigger_apply` does).+ * Setup only, once something is typed.*/- frame?: AppLogicalRect+ strength?: KvStrength,+ /**+ * One short line under the fields.+ */+ hint?: string}/**- * Generated factory for {@link TeleportWindowDragEvent} record objects.+ * Generated factory for {@link KvPassphraseCheck} record objects.*/-export const TeleportWindowDragEvent = (() => {+export const KvPassphraseCheck = (() => {const defaults = () => ({- startFrame: undefined,- frame: undefined});const create = (() => {- return uniffiCreateRecord<TeleportWindowDragEvent, ReturnType<typeof defaults>>(defaults);+ return uniffiCreateRecord<KvPassphraseCheck, ReturnType<typeof defaults>>(defaults);})();return Object.freeze({create,new: create,- defaults: () => Object.freeze(defaults()) as Partial<TeleportWindowDragEvent>,+ defaults: () => Object.freeze(defaults()) as Partial<KvPassphraseCheck>,});})();-const FfiConverterTypeTeleportWindowDragEvent = (() => {- type TypeName = TeleportWindowDragEvent;+const FfiConverterTypeKvPassphraseCheck = (() => {+ type TypeName = KvPassphraseCheck;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {return {- phase: FfiConverterString.read(from),- x: FfiConverterFloat64.read(from),- y: FfiConverterFloat64.read(from),- window: FfiConverterOptionalTypeTeleportWindow.read(from),- app: FfiConverterOptionalTypeTeleportCatalogEntry.read(from),- startFrame: FfiConverterOptionalTypeAppLogicalRect.read(from),- frame: FfiConverterOptionalTypeAppLogicalRect.read(from)+ canSubmit: FfiConverterBool.read(from),+ strength: FfiConverterOptionalTypeKvStrength.read(from),+ hint: FfiConverterOptionalString.read(from)};}write(value: TypeName, into: RustBuffer): void {- FfiConverterString.write(value.phase, into);- FfiConverterFloat64.write(value.x, into);- FfiConverterFloat64.write(value.y, into);- FfiConverterOptionalTypeTeleportWindow.write(value.window, into);- FfiConverterOptionalTypeTeleportCatalogEntry.write(value.app, into);- FfiConverterOptionalTypeAppLogicalRect.write(value.startFrame, into);- FfiConverterOptionalTypeAppLogicalRect.write(value.frame, into);+ FfiConverterBool.write(value.canSubmit, into);+ FfiConverterOptionalTypeKvStrength.write(value.strength, into);+ FfiConverterOptionalString.write(value.hint, into);}allocationSize(value: TypeName): number {- return FfiConverterString.allocationSize(value.phase) +- FfiConverterFloat64.allocationSize(value.x) +- FfiConverterFloat64.allocationSize(value.y) +- FfiConverterOptionalTypeTeleportWindow.allocationSize(value.window) +- FfiConverterOptionalTypeTeleportCatalogEntry.allocationSize(value.app) +- FfiConverterOptionalTypeAppLogicalRect.allocationSize(value.startFrame) +- FfiConverterOptionalTypeAppLogicalRect.allocationSize(value.frame);+ return FfiConverterBool.allocationSize(value.canSubmit) ++ FfiConverterOptionalTypeKvStrength.allocationSize(value.strength) ++ FfiConverterOptionalString.allocationSize(value.hint);}};return new FFIConverter();})();--// Enum: AppAgentsAction-export enum AppAgentsAction_Tags {- Select = "Select",- SetTab = "SetTab",- OpenFile = "OpenFile",- CloseFile = "CloseFile",- Pause = "Pause",- Resume = "Resume",- Restore = "Restore",- SetTitle = "SetTitle",- SetPrompt = "SetPrompt",- SetSchedule = "SetSchedule",- SetMinutes = "SetMinutes",- SetTime = "SetTime",- SetWeekday = "SetWeekday",- AddRoutine = "AddRoutine",- ToggleRoutine = "ToggleRoutine",- RemoveRoutine = "RemoveRoutine",- AllowComputer = "AllowComputer",- RevokeComputer = "RevokeComputer",- Done = "Done",- Failed = "Failed"+export type KvSidebar = {+ /**+ * All Items, Waiting, Access, Recent.+ */+ categories: Array<KvCategoryRow>,+ /**+ * One row per app, by name.+ */+ apps: Array<KvAppRow>}-export const AppAgentsAction = (() => {- type Select__interface = {- tag: AppAgentsAction_Tags.Select;- inner:-Readonly<{name: string}>- };- class Select_ extends UniffiEnum implements Select__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppAgentsAction";- readonly tag = AppAgentsAction_Tags.Select;- readonly inner:-Readonly<{name: string}>;- constructor(-inner: {name: string }) {- super("AppAgentsAction", "Select");+/**+ * Generated factory for {@link KvSidebar} record objects.+ */+export const KvSidebar = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvSidebar, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvSidebar>,+ });+})();- this.inner = Object.freeze(inner);+const FfiConverterTypeKvSidebar = (() => {+ type TypeName = KvSidebar;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ categories: FfiConverterSequenceTypeKvCategoryRow.read(from),+ apps: FfiConverterSequenceTypeKvAppRow.read(from)+ };}- static new(-inner: {name: string }): Select_ {- return new Select_(inner);+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterSequenceTypeKvCategoryRow.write(value.categories, into);+ FfiConverterSequenceTypeKvAppRow.write(value.apps, into);}+ allocationSize(value: TypeName): number {+ return FfiConverterSequenceTypeKvCategoryRow.allocationSize(value.categories) ++ FfiConverterSequenceTypeKvAppRow.allocationSize(value.apps);- static instanceOf(obj: any): obj is Select_ {- return obj.tag === AppAgentsAction_Tags.Select;}-- }-- type SetTab__interface = {- tag: AppAgentsAction_Tags.SetTab;- inner:-Readonly<{tab: AppAgentTab}>};- class SetTab_ extends UniffiEnum implements SetTab__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppAgentsAction";- readonly tag = AppAgentsAction_Tags.SetTab;- readonly inner:-Readonly<{tab: AppAgentTab}>;- constructor(-inner: {tab: AppAgentTab }) {- super("AppAgentsAction", "SetTab");-- this.inner = Object.freeze(inner);- }- static new(-inner: {tab: AppAgentTab }): SetTab_ {- return new SetTab_(inner);- }-- static instanceOf(obj: any): obj is SetTab_ {- return obj.tag === AppAgentsAction_Tags.SetTab;- }+ return new FFIConverter();+})();- }+export type KvUnlockPrompt = {+ /**+ * "Allow unattended access?"+ */+ title: string,+ /**+ * What it allows.+ */+ message: string,+ /**+ * "3 items" (a batch), or the one item's name.+ */+ subject: string,+ /**+ * "Deny".+ */+ deny: string,+ /**+ * "Allow".+ */+ allow: string,+ /**+ * "Never ask again".+ */+ neverAsk: string+}- type OpenFile__interface = {- tag: AppAgentsAction_Tags.OpenFile;- inner:-Readonly<{path: string}>- };- class OpenFile_ extends UniffiEnum implements OpenFile__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppAgentsAction";- readonly tag = AppAgentsAction_Tags.OpenFile;- readonly inner:-Readonly<{path: string}>;- constructor(-inner: {path: string }) {- super("AppAgentsAction", "OpenFile");+/**+ * Generated factory for {@link KvUnlockPrompt} record objects.+ */+export const KvUnlockPrompt = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvUnlockPrompt, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvUnlockPrompt>,+ });+})();- this.inner = Object.freeze(inner);+const FfiConverterTypeKvUnlockPrompt = (() => {+ type TypeName = KvUnlockPrompt;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ title: FfiConverterString.read(from),+ message: FfiConverterString.read(from),+ subject: FfiConverterString.read(from),+ deny: FfiConverterString.read(from),+ allow: FfiConverterString.read(from),+ neverAsk: FfiConverterString.read(from)+ };}- static new(-inner: {path: string }): OpenFile_ {- return new OpenFile_(inner);+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.message, into);+ FfiConverterString.write(value.subject, into);+ FfiConverterString.write(value.deny, into);+ FfiConverterString.write(value.allow, into);+ FfiConverterString.write(value.neverAsk, into);}+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.message) ++ FfiConverterString.allocationSize(value.subject) ++ FfiConverterString.allocationSize(value.deny) ++ FfiConverterString.allocationSize(value.allow) ++ FfiConverterString.allocationSize(value.neverAsk);- static instanceOf(obj: any): obj is OpenFile_ {- return obj.tag === AppAgentsAction_Tags.OpenFile;}-- }-- type CloseFile__interface = {- tag: AppAgentsAction_Tags.CloseFile};- class CloseFile_ extends UniffiEnum implements CloseFile__interface {- /**- * @private+ return new FFIConverter();+})();++export enum KvTri {+ /**+ * All on.+ */+ On = "on",+ /**+ * All off.+ */+ Off = "off",+ /**+ * Some.+ */+ Mixed = "mixed"+}++const FfiConverterTypeKvTri = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvTri;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return KvTri.On;+ case 2: return KvTri.Off;+ case 3: return KvTri.Mixed;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case KvTri.On: return ordinalConverter.write(1, into);+ case KvTri.Off: return ordinalConverter.write(2, into);+ case KvTri.Mixed: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum KvLock {+ /**+ * Every item needs approval for each use.+ */+ Locked = "locked",+ /**+ * Every item allows unattended access.+ */+ Unlocked = "unlocked",+ /**+ * Some of each.+ */+ Mixed = "mixed"+}++const FfiConverterTypeKvLock = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvLock;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return KvLock.Locked;+ case 2: return KvLock.Unlocked;+ case 3: return KvLock.Mixed;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case KvLock.Locked: return ordinalConverter.write(1, into);+ case KvLock.Unlocked: return ordinalConverter.write(2, into);+ case KvLock.Mixed: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export enum KvKind {+ /**+ * A cookie.+ */+ Cookie = "cookie",+ /**+ * A localStorage value.+ */+ LocalStorage = "localStorage",+ /**+ * A saved password.+ */+ Password = "password",+ /**+ * A file.+ */+ File = "file"+}++const FfiConverterTypeKvKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = KvKind;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return KvKind.Cookie;+ case 2: return KvKind.LocalStorage;+ case 3: return KvKind.Password;+ case 4: return KvKind.File;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case KvKind.Cookie: return ordinalConverter.write(1, into);+ case KvKind.LocalStorage: return ordinalConverter.write(2, into);+ case KvKind.Password: return ordinalConverter.write(3, into);+ case KvKind.File: return ordinalConverter.write(4, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++export type KvVaultRow = {+ /**+ * Item id.+ */+ id: string,+ /**+ * Type.+ */+ kind: KvKind,+ /**+ * "Cookie".+ */+ kindLabel: string,+ /**+ * The type's SF Symbol.+ */+ symbol: string,+ /**+ * The key: a cookie name, storage key, username or file name.+ */+ title: string,+ /**+ * Grey line: the domain, or the file's folder.+ */+ subtitle: string,+ /**+ * Grey time: "2 min ago".+ */+ updated: string,+ /**+ * Locked (needs approval for every use).+ */+ locked: boolean,+ /**+ * The lock icon: `lock.fill` or `lock.open`.+ */+ lockSymbol: string,+ /**+ * The lock's tooltip and accessibility label.+ */+ lockHelp: string,+ /**+ * Identity provider: always asks, cannot be unlocked.+ */+ identityProvider: boolean,+ /**+ * Selected.+ */+ selected: boolean+}++/**+ * Generated factory for {@link KvVaultRow} record objects.+ */+export const KvVaultRow = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultRow, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultRow>,+ });+})();++const FfiConverterTypeKvVaultRow = (() => {+ type TypeName = KvVaultRow;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ id: FfiConverterString.read(from),+ kind: FfiConverterTypeKvKind.read(from),+ kindLabel: FfiConverterString.read(from),+ symbol: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ subtitle: FfiConverterString.read(from),+ updated: FfiConverterString.read(from),+ locked: FfiConverterBool.read(from),+ lockSymbol: FfiConverterString.read(from),+ lockHelp: FfiConverterString.read(from),+ identityProvider: FfiConverterBool.read(from),+ selected: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterTypeKvKind.write(value.kind, into);+ FfiConverterString.write(value.kindLabel, into);+ FfiConverterString.write(value.symbol, into);+ FfiConverterString.write(value.title, into);+ FfiConverterString.write(value.subtitle, into);+ FfiConverterString.write(value.updated, into);+ FfiConverterBool.write(value.locked, into);+ FfiConverterString.write(value.lockSymbol, into);+ FfiConverterString.write(value.lockHelp, into);+ FfiConverterBool.write(value.identityProvider, into);+ FfiConverterBool.write(value.selected, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterTypeKvKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.kindLabel) ++ FfiConverterString.allocationSize(value.symbol) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterString.allocationSize(value.subtitle) ++ FfiConverterString.allocationSize(value.updated) ++ FfiConverterBool.allocationSize(value.locked) ++ FfiConverterString.allocationSize(value.lockSymbol) ++ FfiConverterString.allocationSize(value.lockHelp) ++ FfiConverterBool.allocationSize(value.identityProvider) ++ FfiConverterBool.allocationSize(value.selected);++ }+ };+ return new FFIConverter();+})();++export type KvVaultSite = {+ /**+ * Group key.+ */+ key: string,+ /**+ * "github.com".+ */+ site: string,+ /**+ * Items (all of them, even while closed).+ */+ count: number,+ /**+ * "12 cookies, 2 storage values".+ */+ counts: string,+ /**+ * Grey time of the newest save.+ */+ updated: string,+ /**+ * Selection of its items.+ */+ selected: KvTri,+ /**+ * Lock of its items.+ */+ lock: KvLock,+ /**+ * Items a click on the lock unlocks (locked, not identity providers).+ */+ unlockIds: Array<string>,+ /**+ * Items a click on the lock locks (unlocked).+ */+ lockIds: Array<string>,+ /**+ * Open.+ */+ open: boolean,+ /**+ * Its rows (empty while closed, unless searching).+ */+ rows: Array<KvVaultRow>+}++/**+ * Generated factory for {@link KvVaultSite} record objects.+ */+export const KvVaultSite = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultSite, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultSite>,+ });+})();++const FfiConverterTypeKvVaultSite = (() => {+ type TypeName = KvVaultSite;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ key: FfiConverterString.read(from),+ site: FfiConverterString.read(from),+ count: FfiConverterUInt32.read(from),+ counts: FfiConverterString.read(from),+ updated: FfiConverterString.read(from),+ selected: FfiConverterTypeKvTri.read(from),+ lock: FfiConverterTypeKvLock.read(from),+ unlockIds: FfiConverterSequenceString.read(from),+ lockIds: FfiConverterSequenceString.read(from),+ open: FfiConverterBool.read(from),+ rows: FfiConverterSequenceTypeKvVaultRow.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.site, into);+ FfiConverterUInt32.write(value.count, into);+ FfiConverterString.write(value.counts, into);+ FfiConverterString.write(value.updated, into);+ FfiConverterTypeKvTri.write(value.selected, into);+ FfiConverterTypeKvLock.write(value.lock, into);+ FfiConverterSequenceString.write(value.unlockIds, into);+ FfiConverterSequenceString.write(value.lockIds, into);+ FfiConverterBool.write(value.open, into);+ FfiConverterSequenceTypeKvVaultRow.write(value.rows, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.site) ++ FfiConverterUInt32.allocationSize(value.count) ++ FfiConverterString.allocationSize(value.counts) ++ FfiConverterString.allocationSize(value.updated) ++ FfiConverterTypeKvTri.allocationSize(value.selected) ++ FfiConverterTypeKvLock.allocationSize(value.lock) ++ FfiConverterSequenceString.allocationSize(value.unlockIds) ++ FfiConverterSequenceString.allocationSize(value.lockIds) ++ FfiConverterBool.allocationSize(value.open) ++ FfiConverterSequenceTypeKvVaultRow.allocationSize(value.rows);++ }+ };+ return new FFIConverter();+})();++export type KvVaultFiles = {+ /**+ * Group key.+ */+ key: string,+ /**+ * Files.+ */+ count: number,+ /**+ * Selection of its items.+ */+ selected: KvTri,+ /**+ * Lock of its items.+ */+ lock: KvLock,+ /**+ * Items a click on the lock unlocks (locked, not identity providers).+ */+ unlockIds: Array<string>,+ /**+ * Items a click on the lock locks (unlocked).+ */+ lockIds: Array<string>,+ /**+ * Open.+ */+ open: boolean,+ /**+ * Its rows (empty while closed, unless searching).+ */+ rows: Array<KvVaultRow>+}++/**+ * Generated factory for {@link KvVaultFiles} record objects.+ */+export const KvVaultFiles = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultFiles, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultFiles>,+ });+})();++const FfiConverterTypeKvVaultFiles = (() => {+ type TypeName = KvVaultFiles;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ key: FfiConverterString.read(from),+ count: FfiConverterUInt32.read(from),+ selected: FfiConverterTypeKvTri.read(from),+ lock: FfiConverterTypeKvLock.read(from),+ unlockIds: FfiConverterSequenceString.read(from),+ lockIds: FfiConverterSequenceString.read(from),+ open: FfiConverterBool.read(from),+ rows: FfiConverterSequenceTypeKvVaultRow.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.key, into);+ FfiConverterUInt32.write(value.count, into);+ FfiConverterTypeKvTri.write(value.selected, into);+ FfiConverterTypeKvLock.write(value.lock, into);+ FfiConverterSequenceString.write(value.unlockIds, into);+ FfiConverterSequenceString.write(value.lockIds, into);+ FfiConverterBool.write(value.open, into);+ FfiConverterSequenceTypeKvVaultRow.write(value.rows, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterUInt32.allocationSize(value.count) ++ FfiConverterTypeKvTri.allocationSize(value.selected) ++ FfiConverterTypeKvLock.allocationSize(value.lock) ++ FfiConverterSequenceString.allocationSize(value.unlockIds) ++ FfiConverterSequenceString.allocationSize(value.lockIds) ++ FfiConverterBool.allocationSize(value.open) ++ FfiConverterSequenceTypeKvVaultRow.allocationSize(value.rows);++ }+ };+ return new FFIConverter();+})();++export type KvVaultApp = {+ /**+ * Group key: the provider id (`chrome`).+ */+ key: string,+ /**+ * The provider id, for the app's icon.+ */+ providerId: string,+ /**+ * "Google Chrome".+ */+ name: string,+ /**+ * Items.+ */+ count: number,+ /**+ * "212 items, 14 unlocked".+ */+ summary: string,+ /**+ * Grey time of the newest save.+ */+ updated: string,+ /**+ * Selection of its items.+ */+ selected: KvTri,+ /**+ * Lock of its items.+ */+ lock: KvLock,+ /**+ * Items a click on the lock unlocks (locked, not identity providers).+ */+ unlockIds: Array<string>,+ /**+ * Items a click on the lock locks (unlocked).+ */+ lockIds: Array<string>,+ /**+ * Open.+ */+ open: boolean,+ /**+ * Sites with their items, by name.+ */+ sites: Array<KvVaultSite>,+ /**+ * Files, when it has any.+ */+ files?: KvVaultFiles+}++/**+ * Generated factory for {@link KvVaultApp} record objects.+ */+export const KvVaultApp = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultApp, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultApp>,+ });+})();++const FfiConverterTypeKvVaultApp = (() => {+ type TypeName = KvVaultApp;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ key: FfiConverterString.read(from),+ providerId: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ count: FfiConverterUInt32.read(from),+ summary: FfiConverterString.read(from),+ updated: FfiConverterString.read(from),+ selected: FfiConverterTypeKvTri.read(from),+ lock: FfiConverterTypeKvLock.read(from),+ unlockIds: FfiConverterSequenceString.read(from),+ lockIds: FfiConverterSequenceString.read(from),+ open: FfiConverterBool.read(from),+ sites: FfiConverterSequenceTypeKvVaultSite.read(from),+ files: FfiConverterOptionalTypeKvVaultFiles.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.providerId, into);+ FfiConverterString.write(value.name, into);+ FfiConverterUInt32.write(value.count, into);+ FfiConverterString.write(value.summary, into);+ FfiConverterString.write(value.updated, into);+ FfiConverterTypeKvTri.write(value.selected, into);+ FfiConverterTypeKvLock.write(value.lock, into);+ FfiConverterSequenceString.write(value.unlockIds, into);+ FfiConverterSequenceString.write(value.lockIds, into);+ FfiConverterBool.write(value.open, into);+ FfiConverterSequenceTypeKvVaultSite.write(value.sites, into);+ FfiConverterOptionalTypeKvVaultFiles.write(value.files, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.providerId) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterUInt32.allocationSize(value.count) ++ FfiConverterString.allocationSize(value.summary) ++ FfiConverterString.allocationSize(value.updated) ++ FfiConverterTypeKvTri.allocationSize(value.selected) ++ FfiConverterTypeKvLock.allocationSize(value.lock) ++ FfiConverterSequenceString.allocationSize(value.unlockIds) ++ FfiConverterSequenceString.allocationSize(value.lockIds) ++ FfiConverterBool.allocationSize(value.open) ++ FfiConverterSequenceTypeKvVaultSite.allocationSize(value.sites) ++ FfiConverterOptionalTypeKvVaultFiles.allocationSize(value.files);++ }+ };+ return new FFIConverter();+})();++export type KvVaultSelection = {+ /**+ * Selected items.+ */+ count: number,+ /**+ * Their ids, in list order.+ */+ ids: Array<string>,+ /**+ * "3 selected".+ */+ title: string,+ /**+ * Some selected item is locked and may be unlocked.+ */+ canUnlock: boolean,+ /**+ * Some selected item is unlocked.+ */+ canLock: boolean,+ /**+ * Selected items that always ask (identity providers).+ */+ alwaysAsk: number,+ /**+ * The ids to send when unlocking (locked, not identity providers).+ */+ unlockIds: Array<string>,+ /**+ * The ids to send when locking (unlocked).+ */+ lockIds: Array<string>+}++/**+ * Generated factory for {@link KvVaultSelection} record objects.+ */+export const KvVaultSelection = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultSelection, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultSelection>,+ });+})();++const FfiConverterTypeKvVaultSelection = (() => {+ type TypeName = KvVaultSelection;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ count: FfiConverterUInt32.read(from),+ ids: FfiConverterSequenceString.read(from),+ title: FfiConverterString.read(from),+ canUnlock: FfiConverterBool.read(from),+ canLock: FfiConverterBool.read(from),+ alwaysAsk: FfiConverterUInt32.read(from),+ unlockIds: FfiConverterSequenceString.read(from),+ lockIds: FfiConverterSequenceString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterUInt32.write(value.count, into);+ FfiConverterSequenceString.write(value.ids, into);+ FfiConverterString.write(value.title, into);+ FfiConverterBool.write(value.canUnlock, into);+ FfiConverterBool.write(value.canLock, into);+ FfiConverterUInt32.write(value.alwaysAsk, into);+ FfiConverterSequenceString.write(value.unlockIds, into);+ FfiConverterSequenceString.write(value.lockIds, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterUInt32.allocationSize(value.count) ++ FfiConverterSequenceString.allocationSize(value.ids) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterBool.allocationSize(value.canUnlock) ++ FfiConverterBool.allocationSize(value.canLock) ++ FfiConverterUInt32.allocationSize(value.alwaysAsk) ++ FfiConverterSequenceString.allocationSize(value.unlockIds) ++ FfiConverterSequenceString.allocationSize(value.lockIds);++ }+ };+ return new FFIConverter();+})();++export type KvVaultSource = {+ /**+ * Items that can be sent.+ */+ count: number,+ /**+ * When the newest was saved, Unix ms (0: none).+ */+ newestMs: bigint,+ /**+ * Their ids, in list order.+ */+ ids: Array<string>,+ /**+ * The app's saved passwords (ids), never part of `ids`: they are sent+ * only when ticked in the review.+ */+ passwordIds: Array<string>+}++/**+ * Generated factory for {@link KvVaultSource} record objects.+ */+export const KvVaultSource = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultSource, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultSource>,+ });+})();++const FfiConverterTypeKvVaultSource = (() => {+ type TypeName = KvVaultSource;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ count: FfiConverterUInt32.read(from),+ newestMs: FfiConverterInt64.read(from),+ ids: FfiConverterSequenceString.read(from),+ passwordIds: FfiConverterSequenceString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterUInt32.write(value.count, into);+ FfiConverterInt64.write(value.newestMs, into);+ FfiConverterSequenceString.write(value.ids, into);+ FfiConverterSequenceString.write(value.passwordIds, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterUInt32.allocationSize(value.count) ++ FfiConverterInt64.allocationSize(value.newestMs) ++ FfiConverterSequenceString.allocationSize(value.ids) ++ FfiConverterSequenceString.allocationSize(value.passwordIds);++ }+ };+ return new FFIConverter();+})();++export type KvVaultState = {+ /**+ * The search text.+ */+ query: string,+ /**+ * Selected item ids.+ */+ selected: Array<string>,+ /**+ * Open groups (their keys); the rest are closed.+ */+ expanded: Array<string>,+ /**+ * Narrowed to one app (its provider id), as the sidebar picks it.+ */+ app?: string+}++/**+ * Generated factory for {@link KvVaultState} record objects.+ */+export const KvVaultState = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultState, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultState>,+ });+})();++const FfiConverterTypeKvVaultState = (() => {+ type TypeName = KvVaultState;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ query: FfiConverterString.read(from),+ selected: FfiConverterSequenceString.read(from),+ expanded: FfiConverterSequenceString.read(from),+ app: FfiConverterOptionalString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.query, into);+ FfiConverterSequenceString.write(value.selected, into);+ FfiConverterSequenceString.write(value.expanded, into);+ FfiConverterOptionalString.write(value.app, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.query) ++ FfiConverterSequenceString.allocationSize(value.selected) ++ FfiConverterSequenceString.allocationSize(value.expanded) ++ FfiConverterOptionalString.allocationSize(value.app);++ }+ };+ return new FFIConverter();+})();++export type KvVaultView = {+ /**+ * Apps, by name.+ */+ apps: Array<KvVaultApp>,+ /**+ * Items shown (after search).+ */+ shown: number,+ /**+ * Items in the vault.+ */+ total: number,+ /**+ * "No items yet." and friends.+ */+ emptyText?: string,+ /**+ * Domains and keys are hidden until the user confirms with Touch ID.+ */+ namesHidden: boolean,+ /**+ * What to say about it.+ */+ hiddenNote?: string,+ /**+ * The button that opens the names.+ */+ showNamesLabel: string,+ /**+ * The search field's prompt.+ */+ searchPrompt: string,+ /**+ * The selection.+ */+ selection: KvVaultSelection,+ /**+ * Select all is offered.+ */+ canSelectAll: boolean+}++/**+ * Generated factory for {@link KvVaultView} record objects.+ */+export const KvVaultView = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<KvVaultView, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<KvVaultView>,+ });+})();++const FfiConverterTypeKvVaultView = (() => {+ type TypeName = KvVaultView;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ apps: FfiConverterSequenceTypeKvVaultApp.read(from),+ shown: FfiConverterUInt32.read(from),+ total: FfiConverterUInt32.read(from),+ emptyText: FfiConverterOptionalString.read(from),+ namesHidden: FfiConverterBool.read(from),+ hiddenNote: FfiConverterOptionalString.read(from),+ showNamesLabel: FfiConverterString.read(from),+ searchPrompt: FfiConverterString.read(from),+ selection: FfiConverterTypeKvVaultSelection.read(from),+ canSelectAll: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterSequenceTypeKvVaultApp.write(value.apps, into);+ FfiConverterUInt32.write(value.shown, into);+ FfiConverterUInt32.write(value.total, into);+ FfiConverterOptionalString.write(value.emptyText, into);+ FfiConverterBool.write(value.namesHidden, into);+ FfiConverterOptionalString.write(value.hiddenNote, into);+ FfiConverterString.write(value.showNamesLabel, into);+ FfiConverterString.write(value.searchPrompt, into);+ FfiConverterTypeKvVaultSelection.write(value.selection, into);+ FfiConverterBool.write(value.canSelectAll, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterSequenceTypeKvVaultApp.allocationSize(value.apps) ++ FfiConverterUInt32.allocationSize(value.shown) ++ FfiConverterUInt32.allocationSize(value.total) ++ FfiConverterOptionalString.allocationSize(value.emptyText) ++ FfiConverterBool.allocationSize(value.namesHidden) ++ FfiConverterOptionalString.allocationSize(value.hiddenNote) ++ FfiConverterString.allocationSize(value.showNamesLabel) ++ FfiConverterString.allocationSize(value.searchPrompt) ++ FfiConverterTypeKvVaultSelection.allocationSize(value.selection) ++ FfiConverterBool.allocationSize(value.canSelectAll);++ }+ };+ return new FFIConverter();+})();++/**+ * Decoded audio : interleaved signed 16-bit PCM.+ */+export type PcmAudio = {+ /**+ * Track id from `NegotiatedAudio`.+ */+ trackId: number,+ /**+ * Samples per second per channel.+ */+ sampleRate: number,+ /**+ * Interleaved channels.+ */+ channels: number,+ /**+ * Media-clock time of the first sample (µs).+ */+ ptsUs: bigint,+ /**+ * Synthesized by packet-loss concealment for a lost packet.+ */+ concealed: boolean,+ /**+ * RAU2 sequence of the packet this frame was decoded from (the packet+ * that revealed the loss, for concealed frames).+ */+ sequence: number,+ /**+ * RAU2 config epoch (the audio codec generation).+ */+ configEpoch: number,+ /**+ * Bytes of the encoded packet (0 for concealed frames).+ */+ encodedSize: bigint,+ /**+ * When the packet reached the decoder (Unix µs, this host).+ */+ receivedAtUs: bigint,+ /**+ * Time spent decoding the packet (µs).+ */+ decodeDurationUs: bigint,+ /**+ * Interleaved samples.+ */+ samples: Array<number>+}++/**+ * Generated factory for {@link PcmAudio} record objects.+ */+export const PcmAudio = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<PcmAudio, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<PcmAudio>,+ });+})();++const FfiConverterTypePcmAudio = (() => {+ type TypeName = PcmAudio;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ trackId: FfiConverterUInt16.read(from),+ sampleRate: FfiConverterUInt32.read(from),+ channels: FfiConverterUInt16.read(from),+ ptsUs: FfiConverterUInt64.read(from),+ concealed: FfiConverterBool.read(from),+ sequence: FfiConverterUInt32.read(from),+ configEpoch: FfiConverterUInt8.read(from),+ encodedSize: FfiConverterUInt64.read(from),+ receivedAtUs: FfiConverterUInt64.read(from),+ decodeDurationUs: FfiConverterUInt64.read(from),+ samples: FfiConverterSequenceInt16.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterUInt16.write(value.trackId, into);+ FfiConverterUInt32.write(value.sampleRate, into);+ FfiConverterUInt16.write(value.channels, into);+ FfiConverterUInt64.write(value.ptsUs, into);+ FfiConverterBool.write(value.concealed, into);+ FfiConverterUInt32.write(value.sequence, into);+ FfiConverterUInt8.write(value.configEpoch, into);+ FfiConverterUInt64.write(value.encodedSize, into);+ FfiConverterUInt64.write(value.receivedAtUs, into);+ FfiConverterUInt64.write(value.decodeDurationUs, into);+ FfiConverterSequenceInt16.write(value.samples, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterUInt16.allocationSize(value.trackId) ++ FfiConverterUInt32.allocationSize(value.sampleRate) ++ FfiConverterUInt16.allocationSize(value.channels) ++ FfiConverterUInt64.allocationSize(value.ptsUs) ++ FfiConverterBool.allocationSize(value.concealed) ++ FfiConverterUInt32.allocationSize(value.sequence) ++ FfiConverterUInt8.allocationSize(value.configEpoch) ++ FfiConverterUInt64.allocationSize(value.encodedSize) ++ FfiConverterUInt64.allocationSize(value.receivedAtUs) ++ FfiConverterUInt64.allocationSize(value.decodeDurationUs) ++ FfiConverterSequenceInt16.allocationSize(value.samples);++ }+ };+ return new FFIConverter();+})();++/**+ * What the approval callback is asked.+ */+export type TeleportApprovalRequest = {+ /**+ * Everything that could move.+ */+ manifest: TeleportManifest,+ /**+ * What will move.+ */+ selected: Array<TeleportItem>,+ /**+ * Whether any selected item is sensitive (the OS prompt follows).+ */+ sensitive: boolean,+ /**+ * The destination spacesd endpoint.+ */+ destination: string+}++/**+ * Generated factory for {@link TeleportApprovalRequest} record objects.+ */+export const TeleportApprovalRequest = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportApprovalRequest, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportApprovalRequest>,+ });+})();++const FfiConverterTypeTeleportApprovalRequest = (() => {+ type TypeName = TeleportApprovalRequest;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ manifest: FfiConverterTypeTeleportManifest.read(from),+ selected: FfiConverterSequenceTypeTeleportItem.read(from),+ sensitive: FfiConverterBool.read(from),+ destination: FfiConverterString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeTeleportManifest.write(value.manifest, into);+ FfiConverterSequenceTypeTeleportItem.write(value.selected, into);+ FfiConverterBool.write(value.sensitive, into);+ FfiConverterString.write(value.destination, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterTypeTeleportManifest.allocationSize(value.manifest) ++ FfiConverterSequenceTypeTeleportItem.allocationSize(value.selected) ++ FfiConverterBool.allocationSize(value.sensitive) ++ FfiConverterString.allocationSize(value.destination);++ }+ };+ return new FFIConverter();+})();++/**+ * What teleport can do with an app.+ */+export enum TeleportCapability {+ /**+ * Its signed-in state can move (a provider), on top of the app.+ */+ Full = "full",+ /**+ * Installed in the Space; opens empty or with chosen files.+ */+ InstallOnly = "installOnly",+ /**+ * Shown disabled; `reason` says why.+ */+ Unsupported = "unsupported"+}++const FfiConverterTypeTeleportCapability = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = TeleportCapability;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return TeleportCapability.Full;+ case 2: return TeleportCapability.InstallOnly;+ case 3: return TeleportCapability.Unsupported;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case TeleportCapability.Full: return ordinalConverter.write(1, into);+ case TeleportCapability.InstallOnly: return ordinalConverter.write(2, into);+ case TeleportCapability.Unsupported: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++/**+ * What a teleport moves.+ */+export enum TeleportMove {+ /**+ * The app only.+ */+ AppOnly = "appOnly",+ /**+ * The app plus chosen files or folders.+ */+ AppWithFiles = "appWithFiles",+ /**+ * The app plus its signed-in state (consent lists every path and+ * secret).+ */+ AppWithState = "appWithState"+}++const FfiConverterTypeTeleportMove = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = TeleportMove;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return TeleportMove.AppOnly;+ case 2: return TeleportMove.AppWithFiles;+ case 3: return TeleportMove.AppWithState;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case TeleportMove.AppOnly: return ordinalConverter.write(1, into);+ case TeleportMove.AppWithFiles: return ordinalConverter.write(2, into);+ case TeleportMove.AppWithState: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++/**+ * Credential-shaped state the signed-in state move leaves out by default,+ * which a person opts into one group at a time (each item is a secret in+ * the plan's consent).+ */+export enum TeleportSensitiveGroup {+ /**+ * The session cookies: what keeps the app signed in.+ */+ SignIns = "signIns",+ /**+ * Saved passwords.+ */+ Passwords = "passwords",+ /**+ * Browsing history.+ */+ History = "history"+}++const FfiConverterTypeTeleportSensitiveGroup = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = TeleportSensitiveGroup;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return TeleportSensitiveGroup.SignIns;+ case 2: return TeleportSensitiveGroup.Passwords;+ case 3: return TeleportSensitiveGroup.History;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case TeleportSensitiveGroup.SignIns: return ordinalConverter.write(1, into);+ case TeleportSensitiveGroup.Passwords: return ordinalConverter.write(2, into);+ case TeleportSensitiveGroup.History: return ordinalConverter.write(3, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++/**+ * One row of "Teleport an app…".+ */+export type TeleportCatalogEntry = {+ /**+ * Stable id (`vscode`, `firefox`, or the host bundle id).+ */+ id: string,+ /**+ * Display name.+ */+ name: string,+ /**+ * The host app bundle, `.desktop` entry or shortcut.+ */+ hostPath?: string,+ /**+ * Host bundle or desktop id.+ */+ hostAppId?: string,+ /**+ * Host app version.+ */+ version?: string,+ /**+ * Capability level.+ */+ capability: TeleportCapability,+ /**+ * Why it is unsupported, or a caveat.+ */+ reason?: string,+ /**+ * Offered moves, in UI order.+ */+ moves: Array<TeleportMove>,+ /**+ * Provider id, when state can move.+ */+ providerId?: string,+ /**+ * The opt-in groups the signed-in state move offers+ * ([`TeleportPlanOptions::sensitive_groups`]).+ */+ sensitiveGroups: Array<TeleportSensitiveGroup>,+ /**+ * `manifest` (pinned install), `image` (ships in cua's images),+ * `space` (must already be there), or none.+ */+ installSource?: string,+ /**+ * Install manifest id and pinned version, for `manifest`.+ */+ installId?: string,+ installVersion?: string,+ /**+ * Binary started in the Space.+ */+ launchBin?: string,+ /**+ * Last teleported (Unix ms).+ */+ lastUsedMs?: bigint,+ /**+ * The entry as JSON (what `plan` reads back).+ */+ json: string+}++/**+ * Generated factory for {@link TeleportCatalogEntry} record objects.+ */+export const TeleportCatalogEntry = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportCatalogEntry, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportCatalogEntry>,+ });+})();++const FfiConverterTypeTeleportCatalogEntry = (() => {+ type TypeName = TeleportCatalogEntry;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ id: FfiConverterString.read(from),+ name: FfiConverterString.read(from),+ hostPath: FfiConverterOptionalString.read(from),+ hostAppId: FfiConverterOptionalString.read(from),+ version: FfiConverterOptionalString.read(from),+ capability: FfiConverterTypeTeleportCapability.read(from),+ reason: FfiConverterOptionalString.read(from),+ moves: FfiConverterSequenceTypeTeleportMove.read(from),+ providerId: FfiConverterOptionalString.read(from),+ sensitiveGroups: FfiConverterSequenceTypeTeleportSensitiveGroup.read(from),+ installSource: FfiConverterOptionalString.read(from),+ installId: FfiConverterOptionalString.read(from),+ installVersion: FfiConverterOptionalString.read(from),+ launchBin: FfiConverterOptionalString.read(from),+ lastUsedMs: FfiConverterOptionalUInt64.read(from),+ json: FfiConverterString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.name, into);+ FfiConverterOptionalString.write(value.hostPath, into);+ FfiConverterOptionalString.write(value.hostAppId, into);+ FfiConverterOptionalString.write(value.version, into);+ FfiConverterTypeTeleportCapability.write(value.capability, into);+ FfiConverterOptionalString.write(value.reason, into);+ FfiConverterSequenceTypeTeleportMove.write(value.moves, into);+ FfiConverterOptionalString.write(value.providerId, into);+ FfiConverterSequenceTypeTeleportSensitiveGroup.write(value.sensitiveGroups, into);+ FfiConverterOptionalString.write(value.installSource, into);+ FfiConverterOptionalString.write(value.installId, into);+ FfiConverterOptionalString.write(value.installVersion, into);+ FfiConverterOptionalString.write(value.launchBin, into);+ FfiConverterOptionalUInt64.write(value.lastUsedMs, into);+ FfiConverterString.write(value.json, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.name) ++ FfiConverterOptionalString.allocationSize(value.hostPath) ++ FfiConverterOptionalString.allocationSize(value.hostAppId) ++ FfiConverterOptionalString.allocationSize(value.version) ++ FfiConverterTypeTeleportCapability.allocationSize(value.capability) ++ FfiConverterOptionalString.allocationSize(value.reason) ++ FfiConverterSequenceTypeTeleportMove.allocationSize(value.moves) ++ FfiConverterOptionalString.allocationSize(value.providerId) ++ FfiConverterSequenceTypeTeleportSensitiveGroup.allocationSize(value.sensitiveGroups) ++ FfiConverterOptionalString.allocationSize(value.installSource) ++ FfiConverterOptionalString.allocationSize(value.installId) ++ FfiConverterOptionalString.allocationSize(value.installVersion) ++ FfiConverterOptionalString.allocationSize(value.launchBin) ++ FfiConverterOptionalUInt64.allocationSize(value.lastUsedMs) ++ FfiConverterString.allocationSize(value.json);++ }+ };+ return new FFIConverter();+})();++/**+ * Options for [`Teleport::catalog`].+ */+export type TeleportCatalogOptions = {+ /**+ * App roots to scan. Default: this machine's (`/Applications`,+ * `~/Applications`; `.desktop` dirs; Start Menu). Tests pass fixture+ * directories.+ */+ roots?: Array<string>,+ /**+ * The Space's OS (`linux`, `macos`, `windows`), to narrow the catalog.+ */+ spaceOs?: string,+ /**+ * The Space's CPU (`aarch64`, `x86_64`).+ */+ spaceArch?: string,+ /**+ * Recents file. Default: `~/.cua/teleport-recents.json`.+ */+ recentsPath?: string+}++/**+ * Generated factory for {@link TeleportCatalogOptions} record objects.+ */+export const TeleportCatalogOptions = (() => {+ const defaults = () => ({+ roots: undefined,+ spaceOs: undefined,+ spaceArch: undefined,+ recentsPath: undefined+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportCatalogOptions, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportCatalogOptions>,+ });+})();++const FfiConverterTypeTeleportCatalogOptions = (() => {+ type TypeName = TeleportCatalogOptions;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ roots: FfiConverterOptionalSequenceString.read(from),+ spaceOs: FfiConverterOptionalString.read(from),+ spaceArch: FfiConverterOptionalString.read(from),+ recentsPath: FfiConverterOptionalString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterOptionalSequenceString.write(value.roots, into);+ FfiConverterOptionalString.write(value.spaceOs, into);+ FfiConverterOptionalString.write(value.spaceArch, into);+ FfiConverterOptionalString.write(value.recentsPath, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterOptionalSequenceString.allocationSize(value.roots) ++ FfiConverterOptionalString.allocationSize(value.spaceOs) ++ FfiConverterOptionalString.allocationSize(value.spaceArch) ++ FfiConverterOptionalString.allocationSize(value.recentsPath);++ }+ };+ return new FFIConverter();+})();++/**+ * The user's answer to the consent screen.+ */+export type TeleportConsent = {+ /**+ * Confirmed.+ */+ approved: boolean,+ /**+ * Saw and accepted the secrets.+ */+ acknowledgeSensitive: boolean,+ /**+ * "Save to Keyvault": keep the captured session sealed in the+ * user's own Cua Keyvault after this delivery.+ */+ saveToKeyvault: boolean,+ /**+ * Saw and accepted `TeleportPlan.relay_unsealed`'s warning (S1).+ */+ acknowledgeRelayPlaintext: boolean,+ /**+ * The review's per-site choice: the sites whose cookies to send+ * (`None`: every cookie in the selection).+ */+ cookieDomains?: Array<string>,+ /**+ * Consent items (their keys) the user turned off.+ */+ exclude: Array<string>,+ /**+ * Send these saved Keyvault items (ids) instead of reading the+ * live app: nothing is captured from the host.+ */+ fromVault?: Array<string>,+ /**+ * Also send the saved passwords: only when ticked in the review.+ */+ includePasswords: boolean+}++/**+ * Generated factory for {@link TeleportConsent} record objects.+ */+export const TeleportConsent = (() => {+ const defaults = () => ({+ acknowledgeSensitive: false,+ saveToKeyvault: false,+ acknowledgeRelayPlaintext: false,+ cookieDomains: undefined,+ exclude: [],+ fromVault: undefined,+ includePasswords: false+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportConsent, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportConsent>,+ });+})();++const FfiConverterTypeTeleportConsent = (() => {+ type TypeName = TeleportConsent;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ approved: FfiConverterBool.read(from),+ acknowledgeSensitive: FfiConverterBool.read(from),+ saveToKeyvault: FfiConverterBool.read(from),+ acknowledgeRelayPlaintext: FfiConverterBool.read(from),+ cookieDomains: FfiConverterOptionalSequenceString.read(from),+ exclude: FfiConverterSequenceString.read(from),+ fromVault: FfiConverterOptionalSequenceString.read(from),+ includePasswords: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterBool.write(value.approved, into);+ FfiConverterBool.write(value.acknowledgeSensitive, into);+ FfiConverterBool.write(value.saveToKeyvault, into);+ FfiConverterBool.write(value.acknowledgeRelayPlaintext, into);+ FfiConverterOptionalSequenceString.write(value.cookieDomains, into);+ FfiConverterSequenceString.write(value.exclude, into);+ FfiConverterOptionalSequenceString.write(value.fromVault, into);+ FfiConverterBool.write(value.includePasswords, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterBool.allocationSize(value.approved) ++ FfiConverterBool.allocationSize(value.acknowledgeSensitive) ++ FfiConverterBool.allocationSize(value.saveToKeyvault) ++ FfiConverterBool.allocationSize(value.acknowledgeRelayPlaintext) ++ FfiConverterOptionalSequenceString.allocationSize(value.cookieDomains) ++ FfiConverterSequenceString.allocationSize(value.exclude) ++ FfiConverterOptionalSequenceString.allocationSize(value.fromVault) ++ FfiConverterBool.allocationSize(value.includePasswords);++ }+ };+ return new FFIConverter();+})();++/**+ * What a consent item is.+ */+export enum TeleportConsentKind {+ /**+ * An install into the Space (nothing leaves this machine).+ */+ Install = "install",+ /**+ * A host file that leaves this machine.+ */+ File = "file",+ /**+ * A host folder that leaves this machine.+ */+ Folder = "folder",+ /**+ * App state that leaves this machine.+ */+ State = "state",+ /**+ * A secret (cookies, tokens, logins) that leaves this machine.+ */+ Secret = "secret"+}++const FfiConverterTypeTeleportConsentKind = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = TeleportConsentKind;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return TeleportConsentKind.Install;+ case 2: return TeleportConsentKind.File;+ case 3: return TeleportConsentKind.Folder;+ case 4: return TeleportConsentKind.State;+ case 5: return TeleportConsentKind.Secret;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case TeleportConsentKind.Install: return ordinalConverter.write(1, into);+ case TeleportConsentKind.File: return ordinalConverter.write(2, into);+ case TeleportConsentKind.Folder: return ordinalConverter.write(3, into);+ case TeleportConsentKind.State: return ordinalConverter.write(4, into);+ case TeleportConsentKind.Secret: return ordinalConverter.write(5, into);+ }+ }+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);+ }+ }+ return new FFIConverter();+})();++/**+ * One line of the consent screen.+ */+export type TeleportConsentItem = {+ kind: TeleportConsentKind,+ /**+ * Installable id, host path, or manifest path.+ */+ key: string,+ label: string,+ /**+ * Version and checksum, destination, or count.+ */+ detail: string,+ /**+ * Bytes that leave this machine.+ */+ bytes: bigint,+ sensitive: boolean+}++/**+ * Generated factory for {@link TeleportConsentItem} record objects.+ */+export const TeleportConsentItem = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportConsentItem, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportConsentItem>,+ });+})();++const FfiConverterTypeTeleportConsentItem = (() => {+ type TypeName = TeleportConsentItem;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ kind: FfiConverterTypeTeleportConsentKind.read(from),+ key: FfiConverterString.read(from),+ label: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ bytes: FfiConverterUInt64.read(from),+ sensitive: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeTeleportConsentKind.write(value.kind, into);+ FfiConverterString.write(value.key, into);+ FfiConverterString.write(value.label, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterUInt64.write(value.bytes, into);+ FfiConverterBool.write(value.sensitive, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterTypeTeleportConsentKind.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.key) ++ FfiConverterString.allocationSize(value.label) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterUInt64.allocationSize(value.bytes) ++ FfiConverterBool.allocationSize(value.sensitive);++ }+ };+ return new FFIConverter();+})();++/**+ * A parsed drop.+ */+export type TeleportDrop = {+ /**+ * `app`, `files`, `url` or `empty`.+ */+ kind: string,+ /**+ * App bundles, `.desktop` entries, shortcuts.+ */+ apps: Array<string>,+ /**+ * Files and folders.+ */+ files: Array<string>,+ /**+ * URLs.+ */+ urls: Array<string>,+ /**+ * Unusable entries.+ */+ ignored: Array<string>+}++/**+ * Generated factory for {@link TeleportDrop} record objects.+ */+export const TeleportDrop = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportDrop, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportDrop>,+ });+})();++const FfiConverterTypeTeleportDrop = (() => {+ type TypeName = TeleportDrop;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ kind: FfiConverterString.read(from),+ apps: FfiConverterSequenceString.read(from),+ files: FfiConverterSequenceString.read(from),+ urls: FfiConverterSequenceString.read(from),+ ignored: FfiConverterSequenceString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.kind, into);+ FfiConverterSequenceString.write(value.apps, into);+ FfiConverterSequenceString.write(value.files, into);+ FfiConverterSequenceString.write(value.urls, into);+ FfiConverterSequenceString.write(value.ignored, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.kind) ++ FfiConverterSequenceString.allocationSize(value.apps) ++ FfiConverterSequenceString.allocationSize(value.files) ++ FfiConverterSequenceString.allocationSize(value.urls) ++ FfiConverterSequenceString.allocationSize(value.ignored);++ }+ };+ return new FFIConverter();+})();++/**+ * Options for [`Teleport::manifest`] and [`Teleport::send`].+ */+export type TeleportOptions = {+ /**+ * Chrome profile to capture: a name ("Profile 1") or a path. Default+ * `Default`.+ */+ chromeProfile?: string,+ /**+ * Display name for the app (UI only). Default: the app id.+ */+ displayName?: string,+ /**+ * Launch the app in the sandbox after importing. Default true.+ */+ launchAfter?: boolean,+ /**+ * Ask the sandbox to close a running instance first.+ */+ closeRunningApp: boolean,+ /**+ * Explicit, per-delivery opt-in to send over a `relay:` Space whose+ * image predates end-to-end sealing (S1). Without it, a `relay:`+ * destination fails with a `PermissionDenied` naming the risk+ * (`cua_teleport::send::RELAY_UNSEALED_WARNING`) before anything is+ * read or uploaded. Show that warning and get the user's explicit,+ * per-delivery consent before setting this; never a standing setting.+ * Local and direct Spaces are unaffected.+ */+ relayPlaintextAck: boolean+}++/**+ * Generated factory for {@link TeleportOptions} record objects.+ */+export const TeleportOptions = (() => {+ const defaults = () => ({+ chromeProfile: undefined,+ displayName: undefined,+ launchAfter: undefined,+ closeRunningApp: false,+ relayPlaintextAck: false+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportOptions, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportOptions>,+ });+})();++const FfiConverterTypeTeleportOptions = (() => {+ type TypeName = TeleportOptions;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ chromeProfile: FfiConverterOptionalString.read(from),+ displayName: FfiConverterOptionalString.read(from),+ launchAfter: FfiConverterOptionalBoolean.read(from),+ closeRunningApp: FfiConverterBool.read(from),+ relayPlaintextAck: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterOptionalString.write(value.chromeProfile, into);+ FfiConverterOptionalString.write(value.displayName, into);+ FfiConverterOptionalBoolean.write(value.launchAfter, into);+ FfiConverterBool.write(value.closeRunningApp, into);+ FfiConverterBool.write(value.relayPlaintextAck, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterOptionalString.allocationSize(value.chromeProfile) ++ FfiConverterOptionalString.allocationSize(value.displayName) ++ FfiConverterOptionalBoolean.allocationSize(value.launchAfter) ++ FfiConverterBool.allocationSize(value.closeRunningApp) ++ FfiConverterBool.allocationSize(value.relayPlaintextAck);++ }+ };+ return new FFIConverter();+})();++/**+ * One step of a plan.+ */+export type TeleportPlanStep = {+ /**+ * `install`, `files`, `state` or `launch`.+ */+ kind: string,+ /**+ * Human summary.+ */+ summary: string+}++/**+ * Generated factory for {@link TeleportPlanStep} record objects.+ */+export const TeleportPlanStep = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportPlanStep, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportPlanStep>,+ });+})();++const FfiConverterTypeTeleportPlanStep = (() => {+ type TypeName = TeleportPlanStep;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ kind: FfiConverterString.read(from),+ summary: FfiConverterString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.kind, into);+ FfiConverterString.write(value.summary, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.summary);++ }+ };+ return new FFIConverter();+})();++/**+ * Exactly what a teleport will do and move.+ */+export type TeleportPlan = {+ app: TeleportCatalogEntry,+ spaceId: string,+ moves: TeleportMove,+ steps: Array<TeleportPlanStep>,+ /**+ * Every install, path and secret.+ */+ consent: Array<TeleportConsentItem>,+ /**+ * A consent item is a secret (needs `acknowledge_sensitive`).+ */+ sensitive: boolean,+ /**+ * Bytes that leave this machine.+ */+ totalBytes: bigint,+ warnings: Array<string>,+ /**+ * This Space is reached through a relay connection that predates+ * end-to-end sealing: a secret this plan sends would cross it in+ * the clear (S1). Needs `acknowledge_relay_plaintext` the same way+ * a secret needs `acknowledge_sensitive`.+ */+ relayUnsealed: boolean,+ /**+ * The plan as JSON (what `run` reads back).+ */+ json: string+}++/**+ * Generated factory for {@link TeleportPlan} record objects.+ */+export const TeleportPlan = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportPlan, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportPlan>,+ });+})();++const FfiConverterTypeTeleportPlan = (() => {+ type TypeName = TeleportPlan;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ app: FfiConverterTypeTeleportCatalogEntry.read(from),+ spaceId: FfiConverterString.read(from),+ moves: FfiConverterTypeTeleportMove.read(from),+ steps: FfiConverterSequenceTypeTeleportPlanStep.read(from),+ consent: FfiConverterSequenceTypeTeleportConsentItem.read(from),+ sensitive: FfiConverterBool.read(from),+ totalBytes: FfiConverterUInt64.read(from),+ warnings: FfiConverterSequenceString.read(from),+ relayUnsealed: FfiConverterBool.read(from),+ json: FfiConverterString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeTeleportCatalogEntry.write(value.app, into);+ FfiConverterString.write(value.spaceId, into);+ FfiConverterTypeTeleportMove.write(value.moves, into);+ FfiConverterSequenceTypeTeleportPlanStep.write(value.steps, into);+ FfiConverterSequenceTypeTeleportConsentItem.write(value.consent, into);+ FfiConverterBool.write(value.sensitive, into);+ FfiConverterUInt64.write(value.totalBytes, into);+ FfiConverterSequenceString.write(value.warnings, into);+ FfiConverterBool.write(value.relayUnsealed, into);+ FfiConverterString.write(value.json, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterTypeTeleportCatalogEntry.allocationSize(value.app) ++ FfiConverterString.allocationSize(value.spaceId) ++ FfiConverterTypeTeleportMove.allocationSize(value.moves) ++ FfiConverterSequenceTypeTeleportPlanStep.allocationSize(value.steps) ++ FfiConverterSequenceTypeTeleportConsentItem.allocationSize(value.consent) ++ FfiConverterBool.allocationSize(value.sensitive) ++ FfiConverterUInt64.allocationSize(value.totalBytes) ++ FfiConverterSequenceString.allocationSize(value.warnings) ++ FfiConverterBool.allocationSize(value.relayUnsealed) ++ FfiConverterString.allocationSize(value.json);++ }+ };+ return new FFIConverter();+})();++/**+ * Options for [`Teleport::plan`].+ */+export type TeleportPlanOptions = {+ /**+ * What moves.+ */+ moves: TeleportMove,+ /**+ * Host files or folders (`AppWithFiles`).+ */+ files: Array<string>,+ /**+ * Provider manifest items (`AppWithState`); `None` is the+ * provider's default selection.+ */+ stateItems?: Array<string>,+ /**+ * With `state_items` `None`: also these opt-in groups of the+ * entry's `sensitive_groups` (`SignIns` keeps the app signed in).+ * Their items are secrets in the plan's consent: `run` needs+ * `acknowledge_sensitive`.+ */+ sensitiveGroups: Array<TeleportSensitiveGroup>,+ /**+ * `tabs` or `full` (default) state.+ */+ scope?: string,+ /**+ * Launch the app when done (default true).+ */+ launch?: boolean+}++/**+ * Generated factory for {@link TeleportPlanOptions} record objects.+ */+export const TeleportPlanOptions = (() => {+ const defaults = () => ({+ files: [],+ stateItems: undefined,+ sensitiveGroups: [],+ scope: undefined,+ launch: undefined+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportPlanOptions, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportPlanOptions>,+ });+})();++const FfiConverterTypeTeleportPlanOptions = (() => {+ type TypeName = TeleportPlanOptions;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ moves: FfiConverterTypeTeleportMove.read(from),+ files: FfiConverterSequenceString.read(from),+ stateItems: FfiConverterOptionalSequenceString.read(from),+ sensitiveGroups: FfiConverterSequenceTypeTeleportSensitiveGroup.read(from),+ scope: FfiConverterOptionalString.read(from),+ launch: FfiConverterOptionalBoolean.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterTypeTeleportMove.write(value.moves, into);+ FfiConverterSequenceString.write(value.files, into);+ FfiConverterOptionalSequenceString.write(value.stateItems, into);+ FfiConverterSequenceTypeTeleportSensitiveGroup.write(value.sensitiveGroups, into);+ FfiConverterOptionalString.write(value.scope, into);+ FfiConverterOptionalBoolean.write(value.launch, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterTypeTeleportMove.allocationSize(value.moves) ++ FfiConverterSequenceString.allocationSize(value.files) ++ FfiConverterOptionalSequenceString.allocationSize(value.stateItems) ++ FfiConverterSequenceTypeTeleportSensitiveGroup.allocationSize(value.sensitiveGroups) ++ FfiConverterOptionalString.allocationSize(value.scope) ++ FfiConverterOptionalBoolean.allocationSize(value.launch);++ }+ };+ return new FFIConverter();+})();++/**+ * An app this machine can teleport.+ */+export type TeleportProvider = {+ /**+ * Provider id.+ */+ id: string,+ /**+ * Display name.+ */+ displayName: string,+ /**+ * Bundle ids and app names it matches.+ */+ appIds: Array<string>,+ /**+ * Exports on macOS.+ */+ macos: boolean,+ /**+ * Exports on Linux.+ */+ linux: boolean,+ /**+ * Exports on Windows.+ */+ windows: boolean,+ /**+ * Install check: a path, or a binary name when `install_probe_on_path`.+ */+ installProbe?: string,+ /**+ * Whether `install_probe` is a `PATH` binary name.+ */+ installProbeOnPath: boolean+}++/**+ * Generated factory for {@link TeleportProvider} record objects.+ */+export const TeleportProvider = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportProvider, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportProvider>,+ });+})();++const FfiConverterTypeTeleportProvider = (() => {+ type TypeName = TeleportProvider;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ id: FfiConverterString.read(from),+ displayName: FfiConverterString.read(from),+ appIds: FfiConverterSequenceString.read(from),+ macos: FfiConverterBool.read(from),+ linux: FfiConverterBool.read(from),+ windows: FfiConverterBool.read(from),+ installProbe: FfiConverterOptionalString.read(from),+ installProbeOnPath: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.id, into);+ FfiConverterString.write(value.displayName, into);+ FfiConverterSequenceString.write(value.appIds, into);+ FfiConverterBool.write(value.macos, into);+ FfiConverterBool.write(value.linux, into);+ FfiConverterBool.write(value.windows, into);+ FfiConverterOptionalString.write(value.installProbe, into);+ FfiConverterBool.write(value.installProbeOnPath, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.id) ++ FfiConverterString.allocationSize(value.displayName) ++ FfiConverterSequenceString.allocationSize(value.appIds) ++ FfiConverterBool.allocationSize(value.macos) ++ FfiConverterBool.allocationSize(value.linux) ++ FfiConverterBool.allocationSize(value.windows) ++ FfiConverterOptionalString.allocationSize(value.installProbe) ++ FfiConverterBool.allocationSize(value.installProbeOnPath);++ }+ };+ return new FFIConverter();+})();++/**+ * The result of [`Teleport::send`].+ */+export type TeleportResult = {+ /**+ * Provider id.+ */+ providerId: string,+ /**+ * Upload id.+ */+ importId: string,+ /**+ * Bundle size.+ */+ bundleBytes: bigint,+ /**+ * Bundle SHA-256 (hex).+ */+ sha256: string,+ /**+ * Selected item keys.+ */+ sent: Array<string>,+ /**+ * Item keys the default selection left out.+ */+ withheld: Array<string>,+ /**+ * What the sandbox imported.+ */+ imported: Array<string>,+ /**+ * What it skipped, as "item: reason".+ */+ skipped: Array<string>,+ /**+ * Whether it launched the app.+ */+ launched: boolean+}++/**+ * Generated factory for {@link TeleportResult} record objects.+ */+export const TeleportResult = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportResult, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportResult>,+ });+})();++const FfiConverterTypeTeleportResult = (() => {+ type TypeName = TeleportResult;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ providerId: FfiConverterString.read(from),+ importId: FfiConverterString.read(from),+ bundleBytes: FfiConverterUInt64.read(from),+ sha256: FfiConverterString.read(from),+ sent: FfiConverterSequenceString.read(from),+ withheld: FfiConverterSequenceString.read(from),+ imported: FfiConverterSequenceString.read(from),+ skipped: FfiConverterSequenceString.read(from),+ launched: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.providerId, into);+ FfiConverterString.write(value.importId, into);+ FfiConverterUInt64.write(value.bundleBytes, into);+ FfiConverterString.write(value.sha256, into);+ FfiConverterSequenceString.write(value.sent, into);+ FfiConverterSequenceString.write(value.withheld, into);+ FfiConverterSequenceString.write(value.imported, into);+ FfiConverterSequenceString.write(value.skipped, into);+ FfiConverterBool.write(value.launched, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.providerId) ++ FfiConverterString.allocationSize(value.importId) ++ FfiConverterUInt64.allocationSize(value.bundleBytes) ++ FfiConverterString.allocationSize(value.sha256) ++ FfiConverterSequenceString.allocationSize(value.sent) ++ FfiConverterSequenceString.allocationSize(value.withheld) ++ FfiConverterSequenceString.allocationSize(value.imported) ++ FfiConverterSequenceString.allocationSize(value.skipped) ++ FfiConverterBool.allocationSize(value.launched);++ }+ };+ return new FFIConverter();+})();++/**+ * One progress event of [`Teleport::run`].+ */+export type TeleportRunEvent = {+ step: number,+ steps: number,+ /**+ * `install`, `files`, `state`, `launch`, `done`.+ */+ kind: string,+ /**+ * `started`, `progress`, `finished`, `failed`, `done`.+ */+ phase: string,+ detail: string,+ doneBytes: bigint,+ totalBytes: bigint+}++/**+ * Generated factory for {@link TeleportRunEvent} record objects.+ */+export const TeleportRunEvent = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportRunEvent, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportRunEvent>,+ });+})();++const FfiConverterTypeTeleportRunEvent = (() => {+ type TypeName = TeleportRunEvent;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ step: FfiConverterUInt32.read(from),+ steps: FfiConverterUInt32.read(from),+ kind: FfiConverterString.read(from),+ phase: FfiConverterString.read(from),+ detail: FfiConverterString.read(from),+ doneBytes: FfiConverterUInt64.read(from),+ totalBytes: FfiConverterUInt64.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterUInt32.write(value.step, into);+ FfiConverterUInt32.write(value.steps, into);+ FfiConverterString.write(value.kind, into);+ FfiConverterString.write(value.phase, into);+ FfiConverterString.write(value.detail, into);+ FfiConverterUInt64.write(value.doneBytes, into);+ FfiConverterUInt64.write(value.totalBytes, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterUInt32.allocationSize(value.step) ++ FfiConverterUInt32.allocationSize(value.steps) ++ FfiConverterString.allocationSize(value.kind) ++ FfiConverterString.allocationSize(value.phase) ++ FfiConverterString.allocationSize(value.detail) ++ FfiConverterUInt64.allocationSize(value.doneBytes) ++ FfiConverterUInt64.allocationSize(value.totalBytes);++ }+ };+ return new FFIConverter();+})();++/**+ * What a run did.+ */+export type TeleportRunReport = {+ appId: string,+ installed: Array<string>,+ /**+ * Guest paths of sent files.+ */+ sent: Array<string>,+ imported: Array<string>,+ skipped: Array<string>,+ launched: boolean+}++/**+ * Generated factory for {@link TeleportRunReport} record objects.+ */+export const TeleportRunReport = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportRunReport, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportRunReport>,+ });+})();++const FfiConverterTypeTeleportRunReport = (() => {+ type TypeName = TeleportRunReport;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ appId: FfiConverterString.read(from),+ installed: FfiConverterSequenceString.read(from),+ sent: FfiConverterSequenceString.read(from),+ imported: FfiConverterSequenceString.read(from),+ skipped: FfiConverterSequenceString.read(from),+ launched: FfiConverterBool.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.appId, into);+ FfiConverterSequenceString.write(value.installed, into);+ FfiConverterSequenceString.write(value.sent, into);+ FfiConverterSequenceString.write(value.imported, into);+ FfiConverterSequenceString.write(value.skipped, into);+ FfiConverterBool.write(value.launched, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.appId) ++ FfiConverterSequenceString.allocationSize(value.installed) ++ FfiConverterSequenceString.allocationSize(value.sent) ++ FfiConverterSequenceString.allocationSize(value.imported) ++ FfiConverterSequenceString.allocationSize(value.skipped) ++ FfiConverterBool.allocationSize(value.launched);++ }+ };+ return new FFIConverter();+})();++/**+ * One on-screen window of this machine.+ */+export type TeleportWindow = {+ /**+ * Platform window id (for the thumbnail).+ */+ windowId: number,+ /**+ * Owning process.+ */+ pid: bigint,+ /**+ * Owning app.+ */+ appName: string,+ /**+ * Title (empty without Screen Recording on macOS).+ */+ title: string,+ /**+ * The owning app's bundle, when known.+ */+ bundlePath?: string+}++/**+ * Generated factory for {@link TeleportWindow} record objects.+ */+export const TeleportWindow = (() => {+ const defaults = () => ({+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportWindow, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportWindow>,+ });+})();++const FfiConverterTypeTeleportWindow = (() => {+ type TypeName = TeleportWindow;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ windowId: FfiConverterUInt32.read(from),+ pid: FfiConverterInt64.read(from),+ appName: FfiConverterString.read(from),+ title: FfiConverterString.read(from),+ bundlePath: FfiConverterOptionalString.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterUInt32.write(value.windowId, into);+ FfiConverterInt64.write(value.pid, into);+ FfiConverterString.write(value.appName, into);+ FfiConverterString.write(value.title, into);+ FfiConverterOptionalString.write(value.bundlePath, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterUInt32.allocationSize(value.windowId) ++ FfiConverterInt64.allocationSize(value.pid) ++ FfiConverterString.allocationSize(value.appName) ++ FfiConverterString.allocationSize(value.title) ++ FfiConverterOptionalString.allocationSize(value.bundlePath);++ }+ };+ return new FFIConverter();+})();++/**+ * A window-drag event (global top-left display points).+ */+export type TeleportWindowDragEvent = {+ /**+ * `start`, `move` or `end`.+ */+ phase: string,+ x: number,+ y: number,+ /**+ * The dragged window (`start`, `end`).+ */+ window?: TeleportWindow,+ /**+ * Its app, classified (`start`, `end`).+ */+ app?: TeleportCatalogEntry,+ /**+ * The window's frame at mouse down (`start`).+ */+ startFrame?: AppLogicalRect,+ /**+ * The window's frame now (`start`, `end`, and some `move`s). Compare+ * with `start_frame` to tell a move from a resize+ * (`app_drag_trigger_apply` does).+ */+ frame?: AppLogicalRect+}++/**+ * Generated factory for {@link TeleportWindowDragEvent} record objects.+ */+export const TeleportWindowDragEvent = (() => {+ const defaults = () => ({+ startFrame: undefined,+ frame: undefined+ });+ const create = (() => {+ return uniffiCreateRecord<TeleportWindowDragEvent, ReturnType<typeof defaults>>(defaults);+ })();+ return Object.freeze({+ create,+ new: create,+ defaults: () => Object.freeze(defaults()) as Partial<TeleportWindowDragEvent>,+ });+})();++const FfiConverterTypeTeleportWindowDragEvent = (() => {+ type TypeName = TeleportWindowDragEvent;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ return {+ phase: FfiConverterString.read(from),+ x: FfiConverterFloat64.read(from),+ y: FfiConverterFloat64.read(from),+ window: FfiConverterOptionalTypeTeleportWindow.read(from),+ app: FfiConverterOptionalTypeTeleportCatalogEntry.read(from),+ startFrame: FfiConverterOptionalTypeAppLogicalRect.read(from),+ frame: FfiConverterOptionalTypeAppLogicalRect.read(from)+ };+ }+ write(value: TypeName, into: RustBuffer): void {+ FfiConverterString.write(value.phase, into);+ FfiConverterFloat64.write(value.x, into);+ FfiConverterFloat64.write(value.y, into);+ FfiConverterOptionalTypeTeleportWindow.write(value.window, into);+ FfiConverterOptionalTypeTeleportCatalogEntry.write(value.app, into);+ FfiConverterOptionalTypeAppLogicalRect.write(value.startFrame, into);+ FfiConverterOptionalTypeAppLogicalRect.write(value.frame, into);+ }+ allocationSize(value: TypeName): number {+ return FfiConverterString.allocationSize(value.phase) ++ FfiConverterFloat64.allocationSize(value.x) ++ FfiConverterFloat64.allocationSize(value.y) ++ FfiConverterOptionalTypeTeleportWindow.allocationSize(value.window) ++ FfiConverterOptionalTypeTeleportCatalogEntry.allocationSize(value.app) ++ FfiConverterOptionalTypeAppLogicalRect.allocationSize(value.startFrame) ++ FfiConverterOptionalTypeAppLogicalRect.allocationSize(value.frame);++ }+ };+ return new FFIConverter();+})();+++// Enum: AppAgentsAction+export enum AppAgentsAction_Tags {+ Select = "Select",+ SetTab = "SetTab",+ OpenFile = "OpenFile",+ CloseFile = "CloseFile",+ Pause = "Pause",+ Resume = "Resume",+ Restore = "Restore",+ SetTitle = "SetTitle",+ SetPrompt = "SetPrompt",+ SetSchedule = "SetSchedule",+ SetMinutes = "SetMinutes",+ SetTime = "SetTime",+ SetWeekday = "SetWeekday",+ AddRoutine = "AddRoutine",+ ToggleRoutine = "ToggleRoutine",+ RemoveRoutine = "RemoveRoutine",+ AllowComputer = "AllowComputer",+ RevokeComputer = "RevokeComputer",+ Done = "Done",+ Failed = "Failed"+}+export const AppAgentsAction = (() => {++ type Select__interface = {+ tag: AppAgentsAction_Tags.Select;+ inner:+Readonly<{name: string}>+ };+ class Select_ extends UniffiEnum implements Select__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppAgentsAction";+ readonly tag = AppAgentsAction_Tags.Select;+ readonly inner:+Readonly<{name: string}>;+ constructor(+inner: {name: string }) {+ super("AppAgentsAction", "Select");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {name: string }): Select_ {+ return new Select_(inner);+ }++ static instanceOf(obj: any): obj is Select_ {+ return obj.tag === AppAgentsAction_Tags.Select;+ }++ }++ type SetTab__interface = {+ tag: AppAgentsAction_Tags.SetTab;+ inner:+Readonly<{tab: AppAgentTab}>+ };+ class SetTab_ extends UniffiEnum implements SetTab__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppAgentsAction";+ readonly tag = AppAgentsAction_Tags.SetTab;+ readonly inner:+Readonly<{tab: AppAgentTab}>;+ constructor(+inner: {tab: AppAgentTab }) {+ super("AppAgentsAction", "SetTab");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {tab: AppAgentTab }): SetTab_ {+ return new SetTab_(inner);+ }++ static instanceOf(obj: any): obj is SetTab_ {+ return obj.tag === AppAgentsAction_Tags.SetTab;+ }++ }++ type OpenFile__interface = {+ tag: AppAgentsAction_Tags.OpenFile;+ inner:+Readonly<{path: string}>+ };+ class OpenFile_ extends UniffiEnum implements OpenFile__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppAgentsAction";+ readonly tag = AppAgentsAction_Tags.OpenFile;+ readonly inner:+Readonly<{path: string}>;+ constructor(+inner: {path: string }) {+ super("AppAgentsAction", "OpenFile");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {path: string }): OpenFile_ {+ return new OpenFile_(inner);+ }++ static instanceOf(obj: any): obj is OpenFile_ {+ return obj.tag === AppAgentsAction_Tags.OpenFile;+ }++ }++ type CloseFile__interface = {+ tag: AppAgentsAction_Tags.CloseFile+ };+ class CloseFile_ extends UniffiEnum implements CloseFile__interface {+ /**+ * @private* This field is private and should not be used, use `tag` instead.*/readonly [uniffiTypeNameSymbol] = "AppAgentsAction";@@ -42403,6 +44053,264 @@ const FfiConverterTypeAppApproveSheetAction = (() => {})();+// Enum: AppChecklistAction+export enum AppChecklistAction_Tags {+ Done = "Done",+ Shown = "Shown",+ Dismiss = "Dismiss",+ Reopen = "Reopen",+ Observe = "Observe"+}+export const AppChecklistAction = (() => {++ type Done__interface = {+ tag: AppChecklistAction_Tags.Done;+ inner:+Readonly<{step: AppChecklistStep}>+ };+ /**+ * A step finished (a teleport ran, a Space was shared).+ */+ class Done_ extends UniffiEnum implements Done__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppChecklistAction";+ readonly tag = AppChecklistAction_Tags.Done;+ readonly inner:+Readonly<{step: AppChecklistStep}>;+ constructor(+inner: {step: AppChecklistStep }) {+ super("AppChecklistAction", "Done");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {step: AppChecklistStep }): Done_ {+ return new Done_(inner);+ }++ static instanceOf(obj: any): obj is Done_ {+ return obj.tag === AppChecklistAction_Tags.Done;+ }++ }++ type Shown__interface = {+ tag: AppChecklistAction_Tags.Shown+ };+ /**+ * The checklist is on screen.+ */+ class Shown_ extends UniffiEnum implements Shown__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppChecklistAction";+ readonly tag = AppChecklistAction_Tags.Shown;+ constructor() {+ super("AppChecklistAction", "Shown");+ }++ static new(): Shown_ {+ return new Shown_();+ }++ static instanceOf(obj: any): obj is Shown_ {+ return obj.tag === AppChecklistAction_Tags.Shown;+ }++ }++ type Dismiss__interface = {+ tag: AppChecklistAction_Tags.Dismiss+ };+ /**+ * Closed with ×.+ */+ class Dismiss_ extends UniffiEnum implements Dismiss__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppChecklistAction";+ readonly tag = AppChecklistAction_Tags.Dismiss;+ constructor() {+ super("AppChecklistAction", "Dismiss");+ }++ static new(): Dismiss_ {+ return new Dismiss_();+ }++ static instanceOf(obj: any): obj is Dismiss_ {+ return obj.tag === AppChecklistAction_Tags.Dismiss;+ }++ }++ type Reopen__interface = {+ tag: AppChecklistAction_Tags.Reopen+ };+ /**+ * Getting Started (the palette, the Help menu): open it again.+ */+ class Reopen_ extends UniffiEnum implements Reopen__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppChecklistAction";+ readonly tag = AppChecklistAction_Tags.Reopen;+ constructor() {+ super("AppChecklistAction", "Reopen");+ }++ static new(): Reopen_ {+ return new Reopen_();+ }++ static instanceOf(obj: any): obj is Reopen_ {+ return obj.tag === AppChecklistAction_Tags.Reopen;+ }++ }++ type Observe__interface = {+ tag: AppChecklistAction_Tags.Observe;+ inner:+Readonly<{otherMachine: boolean; hasSpace: boolean; agentRan: boolean}>+ };+ /**+ * What the app shows now: each `true` ticks its step off.+ */+ class Observe_ extends UniffiEnum implements Observe__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppChecklistAction";+ readonly tag = AppChecklistAction_Tags.Observe;+ readonly inner:+Readonly<{otherMachine: boolean; hasSpace: boolean; agentRan: boolean}>;+ constructor(+inner: {otherMachine: boolean; hasSpace: boolean; agentRan: boolean }) {+ super("AppChecklistAction", "Observe");++ this.inner = Object.freeze(inner);+ }+ static new(+inner: {otherMachine: boolean; hasSpace: boolean; agentRan: boolean }): Observe_ {+ return new Observe_(inner);+ }++ static instanceOf(obj: any): obj is Observe_ {+ return obj.tag === AppChecklistAction_Tags.Observe;+ }++ }++ function instanceOf(obj: any): obj is AppChecklistAction {+ return obj[uniffiTypeNameSymbol] === "AppChecklistAction";+ }++ return Object.freeze({+ instanceOf,+ Done: Done_,+ Shown: Shown_,+ Dismiss: Dismiss_,+ Reopen: Reopen_,+ Observe: Observe_+ });++})();+export type AppChecklistAction = InstanceType<+ typeof AppChecklistAction['Done' | 'Shown' | 'Dismiss' | 'Reopen' | 'Observe']+>;++// FfiConverter for enum AppChecklistAction+const FfiConverterTypeAppChecklistAction = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppChecklistAction;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return new AppChecklistAction.Done({step: FfiConverterTypeAppChecklistStep.read(from) });+ case 2: return new AppChecklistAction.Shown();+ case 3: return new AppChecklistAction.Dismiss();+ case 4: return new AppChecklistAction.Reopen();+ case 5: return new AppChecklistAction.Observe({otherMachine: FfiConverterBool.read(from), hasSpace: FfiConverterBool.read(from), agentRan: FfiConverterBool.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value.tag) {+ case AppChecklistAction_Tags.Done: {+ ordinalConverter.write(1, into);+ const inner = value.inner;+ FfiConverterTypeAppChecklistStep.write(inner.step, into);+ return;+ }+ case AppChecklistAction_Tags.Shown: {+ ordinalConverter.write(2, into);+ return;+ }+ case AppChecklistAction_Tags.Dismiss: {+ ordinalConverter.write(3, into);+ return;+ }+ case AppChecklistAction_Tags.Reopen: {+ ordinalConverter.write(4, into);+ return;+ }+ case AppChecklistAction_Tags.Observe: {+ ordinalConverter.write(5, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.otherMachine, into);+ FfiConverterBool.write(inner.hasSpace, into);+ FfiConverterBool.write(inner.agentRan, into);+ return;+ }+ default:+ // Throwing from here means that AppChecklistAction_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ allocationSize(value: TypeName): number {+ switch (value.tag) {+ case AppChecklistAction_Tags.Done: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterTypeAppChecklistStep.allocationSize(inner.step);+ return size;+ }+ case AppChecklistAction_Tags.Shown: {+ return ordinalConverter.allocationSize(2);+ }+ case AppChecklistAction_Tags.Dismiss: {+ return ordinalConverter.allocationSize(3);+ }+ case AppChecklistAction_Tags.Reopen: {+ return ordinalConverter.allocationSize(4);+ }+ case AppChecklistAction_Tags.Observe: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(5);+ size += FfiConverterBool.allocationSize(inner.otherMachine);+ size += FfiConverterBool.allocationSize(inner.hasSpace);+ size += FfiConverterBool.allocationSize(inner.agentRan);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ }+ return new FFIConverter();+})();++// Enum: AppCloudConnectActionexport enum AppCloudConnectAction_Tags {Select = "Select",@@ -48505,1189 +50413,819 @@ Readonly<{domain: string}>readonly tag = AppPickerEvent_Tags.ToggleDomain;readonly inner:Readonly<{domain: string}>;- constructor(-inner: {domain: string }) {- super("AppPickerEvent", "ToggleDomain");-- this.inner = Object.freeze(inner);- }- static new(-inner: {domain: string }): ToggleDomain_ {- return new ToggleDomain_(inner);- }-- static instanceOf(obj: any): obj is ToggleDomain_ {- return obj.tag === AppPickerEvent_Tags.ToggleDomain;- }-- }-- type SelectShownDomains__interface = {- tag: AppPickerEvent_Tags.SelectShownDomains;- inner:-Readonly<{value: boolean}>- };- /**- * Pick or drop every site the search shows.- */- class SelectShownDomains_ extends UniffiEnum implements SelectShownDomains__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.SelectShownDomains;- readonly inner:-Readonly<{value: boolean}>;- constructor(-inner: {value: boolean }) {- super("AppPickerEvent", "SelectShownDomains");-- this.inner = Object.freeze(inner);- }- static new(-inner: {value: boolean }): SelectShownDomains_ {- return new SelectShownDomains_(inner);- }-- static instanceOf(obj: any): obj is SelectShownDomains_ {- return obj.tag === AppPickerEvent_Tags.SelectShownDomains;- }-- }-- type DomainQuery__interface = {- tag: AppPickerEvent_Tags.DomainQuery;- inner:-Readonly<{text: string}>- };- /**- * The sites list's search text.- */- class DomainQuery_ extends UniffiEnum implements DomainQuery__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.DomainQuery;- readonly inner:-Readonly<{text: string}>;- constructor(-inner: {text: string }) {- super("AppPickerEvent", "DomainQuery");-- this.inner = Object.freeze(inner);- }- static new(-inner: {text: string }): DomainQuery_ {- return new DomainQuery_(inner);- }-- static instanceOf(obj: any): obj is DomainQuery_ {- return obj.tag === AppPickerEvent_Tags.DomainQuery;- }-- }-- type ToggleItem__interface = {- tag: AppPickerEvent_Tags.ToggleItem;- inner:-Readonly<{key: string}>- };- /**- * Turn a consent line on or off.- */- class ToggleItem_ extends UniffiEnum implements ToggleItem__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.ToggleItem;- readonly inner:-Readonly<{key: string}>;- constructor(-inner: {key: string }) {- super("AppPickerEvent", "ToggleItem");-- this.inner = Object.freeze(inner);- }- static new(-inner: {key: string }): ToggleItem_ {- return new ToggleItem_(inner);- }-- static instanceOf(obj: any): obj is ToggleItem_ {- return obj.tag === AppPickerEvent_Tags.ToggleItem;- }-- }-- type SendFrom__interface = {- tag: AppPickerEvent_Tags.SendFrom;- inner:-Readonly<{source: AppSendSource}>- };- /**- * Where to send from.- */- class SendFrom_ extends UniffiEnum implements SendFrom__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.SendFrom;- readonly inner:-Readonly<{source: AppSendSource}>;- constructor(-inner: {source: AppSendSource }) {- super("AppPickerEvent", "SendFrom");-- this.inner = Object.freeze(inner);- }- static new(-inner: {source: AppSendSource }): SendFrom_ {- return new SendFrom_(inner);- }-- static instanceOf(obj: any): obj is SendFrom_ {- return obj.tag === AppPickerEvent_Tags.SendFrom;- }-- }-- type VaultItems__interface = {- tag: AppPickerEvent_Tags.VaultItems;- inner:-Readonly<{count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string>}>- };- /**- * The app's saved Keyvault items (what the Keyvault holds for it).- */- class VaultItems_ extends UniffiEnum implements VaultItems__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.VaultItems;- readonly inner:-Readonly<{count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string>}>;- constructor(-inner: {count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string> }) {- super("AppPickerEvent", "VaultItems");-- this.inner = Object.freeze(inner);- }- static new(-inner: {count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string> }): VaultItems_ {- return new VaultItems_(inner);- }-- static instanceOf(obj: any): obj is VaultItems_ {- return obj.tag === AppPickerEvent_Tags.VaultItems;- }-- }-- type TogglePasswords__interface = {- tag: AppPickerEvent_Tags.TogglePasswords;- inner:-Readonly<{value: boolean}>- };- /**- * Tick or untick "Also send saved passwords".- */- class TogglePasswords_ extends UniffiEnum implements TogglePasswords__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.TogglePasswords;- readonly inner:-Readonly<{value: boolean}>;- constructor(-inner: {value: boolean }) {- super("AppPickerEvent", "TogglePasswords");-- this.inner = Object.freeze(inner);- }- static new(-inner: {value: boolean }): TogglePasswords_ {- return new TogglePasswords_(inner);- }-- static instanceOf(obj: any): obj is TogglePasswords_ {- return obj.tag === AppPickerEvent_Tags.TogglePasswords;- }-- }-- type VaultSelection__interface = {- tag: AppPickerEvent_Tags.VaultSelection;- inner:-Readonly<{selected: Array<string>}>- };- /**- * The chosen saved items changed.- */- class VaultSelection_ extends UniffiEnum implements VaultSelection__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.VaultSelection;- readonly inner:-Readonly<{selected: Array<string>}>;- constructor(-inner: {selected: Array<string> }) {- super("AppPickerEvent", "VaultSelection");-- this.inner = Object.freeze(inner);- }- static new(-inner: {selected: Array<string> }): VaultSelection_ {- return new VaultSelection_(inner);- }-- static instanceOf(obj: any): obj is VaultSelection_ {- return obj.tag === AppPickerEvent_Tags.VaultSelection;- }-- }-- type Confirm__interface = {- tag: AppPickerEvent_Tags.Confirm- };- /**- * Confirm the review.- */- class Confirm_ extends UniffiEnum implements Confirm__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.Confirm;- constructor() {- super("AppPickerEvent", "Confirm");- }-- static new(): Confirm_ {- return new Confirm_();- }-- static instanceOf(obj: any): obj is Confirm_ {- return obj.tag === AppPickerEvent_Tags.Confirm;- }-- }-- type Progress__interface = {- tag: AppPickerEvent_Tags.Progress;- inner:-Readonly<{event: AppTeleportRunEvent}>- };- /**- * A run event.- */- class Progress_ extends UniffiEnum implements Progress__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.Progress;- readonly inner:-Readonly<{event: AppTeleportRunEvent}>;- constructor(-inner: {event: AppTeleportRunEvent }) {- super("AppPickerEvent", "Progress");+ constructor(+inner: {domain: string }) {+ super("AppPickerEvent", "ToggleDomain");this.inner = Object.freeze(inner);}static new(-inner: {event: AppTeleportRunEvent }): Progress_ {- return new Progress_(inner);+inner: {domain: string }): ToggleDomain_ {+ return new ToggleDomain_(inner);}- static instanceOf(obj: any): obj is Progress_ {- return obj.tag === AppPickerEvent_Tags.Progress;+ static instanceOf(obj: any): obj is ToggleDomain_ {+ return obj.tag === AppPickerEvent_Tags.ToggleDomain;}}- type Finished__interface = {- tag: AppPickerEvent_Tags.Finished;+ type SelectShownDomains__interface = {+ tag: AppPickerEvent_Tags.SelectShownDomains;inner:-Readonly<{report: AppTeleportRunReport}>+Readonly<{value: boolean}>};/**- * The run finished.+ * Pick or drop every site the search shows.*/- class Finished_ extends UniffiEnum implements Finished__interface {+ class SelectShownDomains_ extends UniffiEnum implements SelectShownDomains__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.Finished;+ readonly tag = AppPickerEvent_Tags.SelectShownDomains;readonly inner:-Readonly<{report: AppTeleportRunReport}>;+Readonly<{value: boolean}>;constructor(-inner: {report: AppTeleportRunReport }) {- super("AppPickerEvent", "Finished");+inner: {value: boolean }) {+ super("AppPickerEvent", "SelectShownDomains");this.inner = Object.freeze(inner);}static new(-inner: {report: AppTeleportRunReport }): Finished_ {- return new Finished_(inner);+inner: {value: boolean }): SelectShownDomains_ {+ return new SelectShownDomains_(inner);}- static instanceOf(obj: any): obj is Finished_ {- return obj.tag === AppPickerEvent_Tags.Finished;+ static instanceOf(obj: any): obj is SelectShownDomains_ {+ return obj.tag === AppPickerEvent_Tags.SelectShownDomains;}}- type Back__interface = {- tag: AppPickerEvent_Tags.Back+ type DomainQuery__interface = {+ tag: AppPickerEvent_Tags.DomainQuery;+ inner:+Readonly<{text: string}>};/**- * Back.+ * The sites list's search text.*/- class Back_ extends UniffiEnum implements Back__interface {+ class DomainQuery_ extends UniffiEnum implements DomainQuery__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/readonly [uniffiTypeNameSymbol] = "AppPickerEvent";- readonly tag = AppPickerEvent_Tags.Back;- constructor() {- super("AppPickerEvent", "Back");- }+ readonly tag = AppPickerEvent_Tags.DomainQuery;+ readonly inner:+Readonly<{text: string}>;+ constructor(+inner: {text: string }) {+ super("AppPickerEvent", "DomainQuery");- static new(): Back_ {- return new Back_();+ this.inner = Object.freeze(inner);}-- static instanceOf(obj: any): obj is Back_ {- return obj.tag === AppPickerEvent_Tags.Back;+ static new(+inner: {text: string }): DomainQuery_ {+ return new DomainQuery_(inner);}- }-- function instanceOf(obj: any): obj is AppPickerEvent {- return obj[uniffiTypeNameSymbol] === "AppPickerEvent";- }-- return Object.freeze({- instanceOf,- Loaded: Loaded_,- Failed: Failed_,- Query: Query_,- Select: Select_,- Choose: Choose_,- Preselect: Preselect_,- Move: Move_,- Files: Files_,- RemoveFile: RemoveFile_,- Sensitive: Sensitive_,- Plan: Plan_,- Planned: Planned_,- Acknowledge: Acknowledge_,- SaveToKeyvault: SaveToKeyvault_,- AcknowledgeRelayPlaintext: AcknowledgeRelayPlaintext_,- DomainsLoaded: DomainsLoaded_,- DomainsFailed: DomainsFailed_,- ToggleDomain: ToggleDomain_,- SelectShownDomains: SelectShownDomains_,- DomainQuery: DomainQuery_,- ToggleItem: ToggleItem_,- SendFrom: SendFrom_,- VaultItems: VaultItems_,- TogglePasswords: TogglePasswords_,- VaultSelection: VaultSelection_,- Confirm: Confirm_,- Progress: Progress_,- Finished: Finished_,- Back: Back_- });--})();-export type AppPickerEvent = InstanceType<- typeof AppPickerEvent['Loaded' | 'Failed' | 'Query' | 'Select' | 'Choose' | 'Preselect' | 'Move' | 'Files' | 'RemoveFile' | 'Sensitive' | 'Plan' | 'Planned' | 'Acknowledge' | 'SaveToKeyvault' | 'AcknowledgeRelayPlaintext' | 'DomainsLoaded' | 'DomainsFailed' | 'ToggleDomain' | 'SelectShownDomains' | 'DomainQuery' | 'ToggleItem' | 'SendFrom' | 'VaultItems' | 'TogglePasswords' | 'VaultSelection' | 'Confirm' | 'Progress' | 'Finished' | 'Back']->;--// FfiConverter for enum AppPickerEvent-const FfiConverterTypeAppPickerEvent = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPickerEvent;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppPickerEvent.Loaded({entries: FfiConverterSequenceTypeAppCatalogEntry.read(from) });- case 2: return new AppPickerEvent.Failed({message: FfiConverterString.read(from), causeTexts: FfiConverterSequenceString.read(from), causeInstalled: FfiConverterBool.read(from) });- case 3: return new AppPickerEvent.Query({query: FfiConverterString.read(from) });- case 4: return new AppPickerEvent.Select({id: FfiConverterString.read(from) });- case 5: return new AppPickerEvent.Choose({id: FfiConverterOptionalString.read(from) });- case 6: return new AppPickerEvent.Preselect({entry: FfiConverterTypeAppCatalogEntry.read(from), files: FfiConverterSequenceString.read(from) });- case 7: return new AppPickerEvent.Move({moves: FfiConverterTypeAppTeleportMove.read(from) });- case 8: return new AppPickerEvent.Files({files: FfiConverterSequenceString.read(from) });- case 9: return new AppPickerEvent.RemoveFile({path: FfiConverterString.read(from) });- case 10: return new AppPickerEvent.Sensitive({group: FfiConverterTypeAppSensitiveGroup.read(from), value: FfiConverterBool.read(from) });- case 11: return new AppPickerEvent.Plan();- case 12: return new AppPickerEvent.Planned({plan: FfiConverterTypeAppTeleportPlan.read(from) });- case 13: return new AppPickerEvent.Acknowledge({value: FfiConverterBool.read(from) });- case 14: return new AppPickerEvent.SaveToKeyvault({value: FfiConverterBool.read(from) });- case 15: return new AppPickerEvent.AcknowledgeRelayPlaintext({value: FfiConverterBool.read(from) });- case 16: return new AppPickerEvent.DomainsLoaded({inventory: FfiConverterTypeKvInventory.read(from), remembered: FfiConverterOptionalSequenceString.read(from) });- case 17: return new AppPickerEvent.DomainsFailed();- case 18: return new AppPickerEvent.ToggleDomain({domain: FfiConverterString.read(from) });- case 19: return new AppPickerEvent.SelectShownDomains({value: FfiConverterBool.read(from) });- case 20: return new AppPickerEvent.DomainQuery({text: FfiConverterString.read(from) });- case 21: return new AppPickerEvent.ToggleItem({key: FfiConverterString.read(from) });- case 22: return new AppPickerEvent.SendFrom({source: FfiConverterTypeAppSendSource.read(from) });- case 23: return new AppPickerEvent.VaultItems({count: FfiConverterUInt32.read(from), newestMs: FfiConverterInt64.read(from), nowMs: FfiConverterInt64.read(from), selected: FfiConverterSequenceString.read(from), passwordIds: FfiConverterSequenceString.read(from) });- case 24: return new AppPickerEvent.TogglePasswords({value: FfiConverterBool.read(from) });- case 25: return new AppPickerEvent.VaultSelection({selected: FfiConverterSequenceString.read(from) });- case 26: return new AppPickerEvent.Confirm();- case 27: return new AppPickerEvent.Progress({event: FfiConverterTypeAppTeleportRunEvent.read(from) });- case 28: return new AppPickerEvent.Finished({report: FfiConverterTypeAppTeleportRunReport.read(from) });- case 29: return new AppPickerEvent.Back();- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppPickerEvent_Tags.Loaded: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterSequenceTypeAppCatalogEntry.write(inner.entries, into);- return;- }- case AppPickerEvent_Tags.Failed: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.message, into);- FfiConverterSequenceString.write(inner.causeTexts, into);- FfiConverterBool.write(inner.causeInstalled, into);- return;- }- case AppPickerEvent_Tags.Query: {- ordinalConverter.write(3, into);- const inner = value.inner;- FfiConverterString.write(inner.query, into);- return;- }- case AppPickerEvent_Tags.Select: {- ordinalConverter.write(4, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- return;- }- case AppPickerEvent_Tags.Choose: {- ordinalConverter.write(5, into);- const inner = value.inner;- FfiConverterOptionalString.write(inner.id, into);- return;- }- case AppPickerEvent_Tags.Preselect: {- ordinalConverter.write(6, into);- const inner = value.inner;- FfiConverterTypeAppCatalogEntry.write(inner.entry, into);- FfiConverterSequenceString.write(inner.files, into);- return;- }- case AppPickerEvent_Tags.Move: {- ordinalConverter.write(7, into);- const inner = value.inner;- FfiConverterTypeAppTeleportMove.write(inner.moves, into);- return;- }- case AppPickerEvent_Tags.Files: {- ordinalConverter.write(8, into);- const inner = value.inner;- FfiConverterSequenceString.write(inner.files, into);- return;- }- case AppPickerEvent_Tags.RemoveFile: {- ordinalConverter.write(9, into);- const inner = value.inner;- FfiConverterString.write(inner.path, into);- return;- }- case AppPickerEvent_Tags.Sensitive: {- ordinalConverter.write(10, into);- const inner = value.inner;- FfiConverterTypeAppSensitiveGroup.write(inner.group, into);- FfiConverterBool.write(inner.value, into);- return;- }- case AppPickerEvent_Tags.Plan: {- ordinalConverter.write(11, into);- return;- }- case AppPickerEvent_Tags.Planned: {- ordinalConverter.write(12, into);- const inner = value.inner;- FfiConverterTypeAppTeleportPlan.write(inner.plan, into);- return;- }- case AppPickerEvent_Tags.Acknowledge: {- ordinalConverter.write(13, into);- const inner = value.inner;- FfiConverterBool.write(inner.value, into);- return;- }- case AppPickerEvent_Tags.SaveToKeyvault: {- ordinalConverter.write(14, into);- const inner = value.inner;- FfiConverterBool.write(inner.value, into);- return;- }- case AppPickerEvent_Tags.AcknowledgeRelayPlaintext: {- ordinalConverter.write(15, into);- const inner = value.inner;- FfiConverterBool.write(inner.value, into);- return;- }- case AppPickerEvent_Tags.DomainsLoaded: {- ordinalConverter.write(16, into);- const inner = value.inner;- FfiConverterTypeKvInventory.write(inner.inventory, into);- FfiConverterOptionalSequenceString.write(inner.remembered, into);- return;- }- case AppPickerEvent_Tags.DomainsFailed: {- ordinalConverter.write(17, into);- return;- }- case AppPickerEvent_Tags.ToggleDomain: {- ordinalConverter.write(18, into);- const inner = value.inner;- FfiConverterString.write(inner.domain, into);- return;- }- case AppPickerEvent_Tags.SelectShownDomains: {- ordinalConverter.write(19, into);- const inner = value.inner;- FfiConverterBool.write(inner.value, into);- return;- }- case AppPickerEvent_Tags.DomainQuery: {- ordinalConverter.write(20, into);- const inner = value.inner;- FfiConverterString.write(inner.text, into);- return;- }- case AppPickerEvent_Tags.ToggleItem: {- ordinalConverter.write(21, into);- const inner = value.inner;- FfiConverterString.write(inner.key, into);- return;- }- case AppPickerEvent_Tags.SendFrom: {- ordinalConverter.write(22, into);- const inner = value.inner;- FfiConverterTypeAppSendSource.write(inner.source, into);- return;- }- case AppPickerEvent_Tags.VaultItems: {- ordinalConverter.write(23, into);- const inner = value.inner;- FfiConverterUInt32.write(inner.count, into);- FfiConverterInt64.write(inner.newestMs, into);- FfiConverterInt64.write(inner.nowMs, into);- FfiConverterSequenceString.write(inner.selected, into);- FfiConverterSequenceString.write(inner.passwordIds, into);- return;- }- case AppPickerEvent_Tags.TogglePasswords: {- ordinalConverter.write(24, into);- const inner = value.inner;- FfiConverterBool.write(inner.value, into);- return;- }- case AppPickerEvent_Tags.VaultSelection: {- ordinalConverter.write(25, into);- const inner = value.inner;- FfiConverterSequenceString.write(inner.selected, into);- return;- }- case AppPickerEvent_Tags.Confirm: {- ordinalConverter.write(26, into);- return;- }- case AppPickerEvent_Tags.Progress: {- ordinalConverter.write(27, into);- const inner = value.inner;- FfiConverterTypeAppTeleportRunEvent.write(inner.event, into);- return;- }- case AppPickerEvent_Tags.Finished: {- ordinalConverter.write(28, into);- const inner = value.inner;- FfiConverterTypeAppTeleportRunReport.write(inner.report, into);- return;- }- case AppPickerEvent_Tags.Back: {- ordinalConverter.write(29, into);- return;- }- default:- // Throwing from here means that AppPickerEvent_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }- }- allocationSize(value: TypeName): number {- switch (value.tag) {- case AppPickerEvent_Tags.Loaded: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterSequenceTypeAppCatalogEntry.allocationSize(inner.entries);- return size;- }- case AppPickerEvent_Tags.Failed: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.message);- size += FfiConverterSequenceString.allocationSize(inner.causeTexts);- size += FfiConverterBool.allocationSize(inner.causeInstalled);- return size;- }- case AppPickerEvent_Tags.Query: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(3);- size += FfiConverterString.allocationSize(inner.query);- return size;- }- case AppPickerEvent_Tags.Select: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(4);- size += FfiConverterString.allocationSize(inner.id);- return size;- }- case AppPickerEvent_Tags.Choose: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(5);- size += FfiConverterOptionalString.allocationSize(inner.id);- return size;- }- case AppPickerEvent_Tags.Preselect: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(6);- size += FfiConverterTypeAppCatalogEntry.allocationSize(inner.entry);- size += FfiConverterSequenceString.allocationSize(inner.files);- return size;- }- case AppPickerEvent_Tags.Move: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(7);- size += FfiConverterTypeAppTeleportMove.allocationSize(inner.moves);- return size;- }- case AppPickerEvent_Tags.Files: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(8);- size += FfiConverterSequenceString.allocationSize(inner.files);- return size;- }- case AppPickerEvent_Tags.RemoveFile: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(9);- size += FfiConverterString.allocationSize(inner.path);- return size;- }- case AppPickerEvent_Tags.Sensitive: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(10);- size += FfiConverterTypeAppSensitiveGroup.allocationSize(inner.group);- size += FfiConverterBool.allocationSize(inner.value);- return size;- }- case AppPickerEvent_Tags.Plan: {- return ordinalConverter.allocationSize(11);- }- case AppPickerEvent_Tags.Planned: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(12);- size += FfiConverterTypeAppTeleportPlan.allocationSize(inner.plan);- return size;- }- case AppPickerEvent_Tags.Acknowledge: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(13);- size += FfiConverterBool.allocationSize(inner.value);- return size;- }- case AppPickerEvent_Tags.SaveToKeyvault: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(14);- size += FfiConverterBool.allocationSize(inner.value);- return size;- }- case AppPickerEvent_Tags.AcknowledgeRelayPlaintext: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(15);- size += FfiConverterBool.allocationSize(inner.value);- return size;- }- case AppPickerEvent_Tags.DomainsLoaded: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(16);- size += FfiConverterTypeKvInventory.allocationSize(inner.inventory);- size += FfiConverterOptionalSequenceString.allocationSize(inner.remembered);- return size;- }- case AppPickerEvent_Tags.DomainsFailed: {- return ordinalConverter.allocationSize(17);- }- case AppPickerEvent_Tags.ToggleDomain: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(18);- size += FfiConverterString.allocationSize(inner.domain);- return size;- }- case AppPickerEvent_Tags.SelectShownDomains: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(19);- size += FfiConverterBool.allocationSize(inner.value);- return size;- }- case AppPickerEvent_Tags.DomainQuery: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(20);- size += FfiConverterString.allocationSize(inner.text);- return size;- }- case AppPickerEvent_Tags.ToggleItem: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(21);- size += FfiConverterString.allocationSize(inner.key);- return size;- }- case AppPickerEvent_Tags.SendFrom: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(22);- size += FfiConverterTypeAppSendSource.allocationSize(inner.source);- return size;- }- case AppPickerEvent_Tags.VaultItems: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(23);- size += FfiConverterUInt32.allocationSize(inner.count);- size += FfiConverterInt64.allocationSize(inner.newestMs);- size += FfiConverterInt64.allocationSize(inner.nowMs);- size += FfiConverterSequenceString.allocationSize(inner.selected);- size += FfiConverterSequenceString.allocationSize(inner.passwordIds);- return size;- }- case AppPickerEvent_Tags.TogglePasswords: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(24);- size += FfiConverterBool.allocationSize(inner.value);- return size;- }- case AppPickerEvent_Tags.VaultSelection: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(25);- size += FfiConverterSequenceString.allocationSize(inner.selected);- return size;- }- case AppPickerEvent_Tags.Confirm: {- return ordinalConverter.allocationSize(26);- }- case AppPickerEvent_Tags.Progress: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(27);- size += FfiConverterTypeAppTeleportRunEvent.allocationSize(inner.event);- return size;- }- case AppPickerEvent_Tags.Finished: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(28);- size += FfiConverterTypeAppTeleportRunReport.allocationSize(inner.report);- return size;- }- case AppPickerEvent_Tags.Back: {- return ordinalConverter.allocationSize(29);- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ static instanceOf(obj: any): obj is DomainQuery_ {+ return obj.tag === AppPickerEvent_Tags.DomainQuery;}- }- return new FFIConverter();-})();-export enum AppPickerTab {- /**- * This machine's windows, teleported into the Space.- */- Space = "space",+ }++ type ToggleItem__interface = {+ tag: AppPickerEvent_Tags.ToggleItem;+ inner:+Readonly<{key: string}>+ };/**- * The Space's windows, streamed here.+ * Turn a consent line on or off.*/- ThisMac = "thisMac"-}+ class ToggleItem_ extends UniffiEnum implements ToggleItem__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.ToggleItem;+ readonly inner:+Readonly<{key: string}>;+ constructor(+inner: {key: string }) {+ super("AppPickerEvent", "ToggleItem");-const FfiConverterTypeAppPickerTab = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPickerTab;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return AppPickerTab.Space;- case 2: return AppPickerTab.ThisMac;- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value) {- case AppPickerTab.Space: return ordinalConverter.write(1, into);- case AppPickerTab.ThisMac: return ordinalConverter.write(2, into);- }+ this.inner = Object.freeze(inner);}- allocationSize(value: TypeName): number {- return ordinalConverter.allocationSize(0);+ static new(+inner: {key: string }): ToggleItem_ {+ return new ToggleItem_(inner);}- }- return new FFIConverter();-})();+ static instanceOf(obj: any): obj is ToggleItem_ {+ return obj.tag === AppPickerEvent_Tags.ToggleItem;+ }-// Enum: AppPipCommand-export enum AppPipCommand_Tags {- Open = "Open",- Close = "Close"-}-export const AppPipCommand = (() => {+ }- type Open__interface = {- tag: AppPipCommand_Tags.Open;+ type SendFrom__interface = {+ tag: AppPickerEvent_Tags.SendFrom;inner:-Readonly<{row: string}>+Readonly<{source: AppSendSource}>};/**- * Open the row's panel.+ * Where to send from.*/- class Open_ extends UniffiEnum implements Open__interface {+ class SendFrom_ extends UniffiEnum implements SendFrom__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppPipCommand";- readonly tag = AppPipCommand_Tags.Open;+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.SendFrom;readonly inner:-Readonly<{row: string}>;+Readonly<{source: AppSendSource}>;constructor(-inner: {row: string }) {- super("AppPipCommand", "Open");+inner: {source: AppSendSource }) {+ super("AppPickerEvent", "SendFrom");this.inner = Object.freeze(inner);}static new(-inner: {row: string }): Open_ {- return new Open_(inner);+inner: {source: AppSendSource }): SendFrom_ {+ return new SendFrom_(inner);}- static instanceOf(obj: any): obj is Open_ {- return obj.tag === AppPipCommand_Tags.Open;+ static instanceOf(obj: any): obj is SendFrom_ {+ return obj.tag === AppPickerEvent_Tags.SendFrom;}}- type Close__interface = {- tag: AppPipCommand_Tags.Close;+ type VaultItems__interface = {+ tag: AppPickerEvent_Tags.VaultItems;inner:-Readonly<{row: string}>+Readonly<{count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string>}>};/**- * Close the row's open panel.+ * The app's saved Keyvault items (what the Keyvault holds for it).*/- class Close_ extends UniffiEnum implements Close__interface {+ class VaultItems_ extends UniffiEnum implements VaultItems__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppPipCommand";- readonly tag = AppPipCommand_Tags.Close;+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.VaultItems;readonly inner:-Readonly<{row: string}>;+Readonly<{count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string>}>;constructor(-inner: {row: string }) {- super("AppPipCommand", "Close");+inner: {count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string> }) {+ super("AppPickerEvent", "VaultItems");this.inner = Object.freeze(inner);}static new(-inner: {row: string }): Close_ {- return new Close_(inner);+inner: {count: number; newestMs: bigint; nowMs: bigint; selected: Array<string>; passwordIds: Array<string> }): VaultItems_ {+ return new VaultItems_(inner);}- static instanceOf(obj: any): obj is Close_ {- return obj.tag === AppPipCommand_Tags.Close;+ static instanceOf(obj: any): obj is VaultItems_ {+ return obj.tag === AppPickerEvent_Tags.VaultItems;}}- function instanceOf(obj: any): obj is AppPipCommand {- return obj[uniffiTypeNameSymbol] === "AppPipCommand";- }-- return Object.freeze({- instanceOf,- Open: Open_,- Close: Close_- });--})();-export type AppPipCommand = InstanceType<- typeof AppPipCommand['Open' | 'Close']->;+ type TogglePasswords__interface = {+ tag: AppPickerEvent_Tags.TogglePasswords;+ inner:+Readonly<{value: boolean}>+ };+ /**+ * Tick or untick "Also send saved passwords".+ */+ class TogglePasswords_ extends UniffiEnum implements TogglePasswords__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.TogglePasswords;+ readonly inner:+Readonly<{value: boolean}>;+ constructor(+inner: {value: boolean }) {+ super("AppPickerEvent", "TogglePasswords");-// FfiConverter for enum AppPipCommand-const FfiConverterTypeAppPipCommand = (() => {- const ordinalConverter = FfiConverterInt32;- type TypeName = AppPipCommand;- class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {- read(from: RustBuffer): TypeName {- switch (ordinalConverter.read(from)) {- case 1: return new AppPipCommand.Open({row: FfiConverterString.read(from) });- case 2: return new AppPipCommand.Close({row: FfiConverterString.read(from) });- default: throw new UniffiInternalError.UnexpectedEnumCase();- }- }- write(value: TypeName, into: RustBuffer): void {- switch (value.tag) {- case AppPipCommand_Tags.Open: {- ordinalConverter.write(1, into);- const inner = value.inner;- FfiConverterString.write(inner.row, into);- return;- }- case AppPipCommand_Tags.Close: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.row, into);- return;- }- default:- // Throwing from here means that AppPipCommand_Tags hasn't matched an ordinal.- throw new UniffiInternalError.UnexpectedEnumCase();- }+ this.inner = Object.freeze(inner);}- allocationSize(value: TypeName): number {- switch (value.tag) {- case AppPipCommand_Tags.Open: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.row);- return size;- }- case AppPipCommand_Tags.Close: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.row);- return size;- }- default: throw new UniffiInternalError.UnexpectedEnumCase();- }+ static new(+inner: {value: boolean }): TogglePasswords_ {+ return new TogglePasswords_(inner);}- }- return new FFIConverter();-})();+ static instanceOf(obj: any): obj is TogglePasswords_ {+ return obj.tag === AppPickerEvent_Tags.TogglePasswords;+ }-// Enum: AppPipEvent-export enum AppPipEvent_Tags {- Opened = "Opened",- Closed = "Closed",- Synced = "Synced"-}-export const AppPipEvent = (() => {+ }- type Opened__interface = {- tag: AppPipEvent_Tags.Opened;+ type VaultSelection__interface = {+ tag: AppPickerEvent_Tags.VaultSelection;inner:-Readonly<{row: string}>+Readonly<{selected: Array<string>}>};/**- * A row's panel opened.+ * The chosen saved items changed.*/- class Opened_ extends UniffiEnum implements Opened__interface {+ class VaultSelection_ extends UniffiEnum implements VaultSelection__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppPipEvent";- readonly tag = AppPipEvent_Tags.Opened;+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.VaultSelection;readonly inner:-Readonly<{row: string}>;+Readonly<{selected: Array<string>}>;constructor(-inner: {row: string }) {- super("AppPipEvent", "Opened");+inner: {selected: Array<string> }) {+ super("AppPickerEvent", "VaultSelection");this.inner = Object.freeze(inner);}static new(-inner: {row: string }): Opened_ {- return new Opened_(inner);+inner: {selected: Array<string> }): VaultSelection_ {+ return new VaultSelection_(inner);}- static instanceOf(obj: any): obj is Opened_ {- return obj.tag === AppPipEvent_Tags.Opened;+ static instanceOf(obj: any): obj is VaultSelection_ {+ return obj.tag === AppPickerEvent_Tags.VaultSelection;}}- type Closed__interface = {- tag: AppPipEvent_Tags.Closed;+ type Confirm__interface = {+ tag: AppPickerEvent_Tags.Confirm+ };+ /**+ * Confirm the review.+ */+ class Confirm_ extends UniffiEnum implements Confirm__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.Confirm;+ constructor() {+ super("AppPickerEvent", "Confirm");+ }++ static new(): Confirm_ {+ return new Confirm_();+ }++ static instanceOf(obj: any): obj is Confirm_ {+ return obj.tag === AppPickerEvent_Tags.Confirm;+ }++ }++ type Progress__interface = {+ tag: AppPickerEvent_Tags.Progress;inner:-Readonly<{row: string}>+Readonly<{event: AppTeleportRunEvent}>};/**- * A row's panel closed.+ * A run event.*/- class Closed_ extends UniffiEnum implements Closed__interface {+ class Progress_ extends UniffiEnum implements Progress__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppPipEvent";- readonly tag = AppPipEvent_Tags.Closed;+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.Progress;readonly inner:-Readonly<{row: string}>;+Readonly<{event: AppTeleportRunEvent}>;constructor(-inner: {row: string }) {- super("AppPipEvent", "Closed");+inner: {event: AppTeleportRunEvent }) {+ super("AppPickerEvent", "Progress");this.inner = Object.freeze(inner);}static new(-inner: {row: string }): Closed_ {- return new Closed_(inner);+inner: {event: AppTeleportRunEvent }): Progress_ {+ return new Progress_(inner);}- static instanceOf(obj: any): obj is Closed_ {- return obj.tag === AppPipEvent_Tags.Closed;+ static instanceOf(obj: any): obj is Progress_ {+ return obj.tag === AppPickerEvent_Tags.Progress;}}- type Synced__interface = {- tag: AppPipEvent_Tags.Synced;+ type Finished__interface = {+ tag: AppPickerEvent_Tags.Finished;inner:-Readonly<{rows: Array<string>}>+Readonly<{report: AppTeleportRunReport}>};/**- * The panels open now, as the shell listed them.+ * The run finished.*/- class Synced_ extends UniffiEnum implements Synced__interface {+ class Finished_ extends UniffiEnum implements Finished__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppPipEvent";- readonly tag = AppPipEvent_Tags.Synced;+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.Finished;readonly inner:-Readonly<{rows: Array<string>}>;+Readonly<{report: AppTeleportRunReport}>;constructor(-inner: {rows: Array<string> }) {- super("AppPipEvent", "Synced");+inner: {report: AppTeleportRunReport }) {+ super("AppPickerEvent", "Finished");this.inner = Object.freeze(inner);}static new(-inner: {rows: Array<string> }): Synced_ {- return new Synced_(inner);+inner: {report: AppTeleportRunReport }): Finished_ {+ return new Finished_(inner);}- static instanceOf(obj: any): obj is Synced_ {- return obj.tag === AppPipEvent_Tags.Synced;+ static instanceOf(obj: any): obj is Finished_ {+ return obj.tag === AppPickerEvent_Tags.Finished;}}- function instanceOf(obj: any): obj is AppPipEvent {- return obj[uniffiTypeNameSymbol] === "AppPipEvent";+ type Back__interface = {+ tag: AppPickerEvent_Tags.Back+ };+ /**+ * Back.+ */+ class Back_ extends UniffiEnum implements Back__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppPickerEvent";+ readonly tag = AppPickerEvent_Tags.Back;+ constructor() {+ super("AppPickerEvent", "Back");+ }++ static new(): Back_ {+ return new Back_();+ }++ static instanceOf(obj: any): obj is Back_ {+ return obj.tag === AppPickerEvent_Tags.Back;+ }++ }++ function instanceOf(obj: any): obj is AppPickerEvent {+ return obj[uniffiTypeNameSymbol] === "AppPickerEvent";}return Object.freeze({instanceOf,- Opened: Opened_,- Closed: Closed_,- Synced: Synced_+ Loaded: Loaded_,+ Failed: Failed_,+ Query: Query_,+ Select: Select_,+ Choose: Choose_,+ Preselect: Preselect_,+ Move: Move_,+ Files: Files_,+ RemoveFile: RemoveFile_,+ Sensitive: Sensitive_,+ Plan: Plan_,+ Planned: Planned_,+ Acknowledge: Acknowledge_,+ SaveToKeyvault: SaveToKeyvault_,+ AcknowledgeRelayPlaintext: AcknowledgeRelayPlaintext_,+ DomainsLoaded: DomainsLoaded_,+ DomainsFailed: DomainsFailed_,+ ToggleDomain: ToggleDomain_,+ SelectShownDomains: SelectShownDomains_,+ DomainQuery: DomainQuery_,+ ToggleItem: ToggleItem_,+ SendFrom: SendFrom_,+ VaultItems: VaultItems_,+ TogglePasswords: TogglePasswords_,+ VaultSelection: VaultSelection_,+ Confirm: Confirm_,+ Progress: Progress_,+ Finished: Finished_,+ Back: Back_});})();-export type AppPipEvent = InstanceType<- typeof AppPipEvent['Opened' | 'Closed' | 'Synced']+export type AppPickerEvent = InstanceType<+ typeof AppPickerEvent['Loaded' | 'Failed' | 'Query' | 'Select' | 'Choose' | 'Preselect' | 'Move' | 'Files' | 'RemoveFile' | 'Sensitive' | 'Plan' | 'Planned' | 'Acknowledge' | 'SaveToKeyvault' | 'AcknowledgeRelayPlaintext' | 'DomainsLoaded' | 'DomainsFailed' | 'ToggleDomain' | 'SelectShownDomains' | 'DomainQuery' | 'ToggleItem' | 'SendFrom' | 'VaultItems' | 'TogglePasswords' | 'VaultSelection' | 'Confirm' | 'Progress' | 'Finished' | 'Back']>;-// FfiConverter for enum AppPipEvent-const FfiConverterTypeAppPipEvent = (() => {+// FfiConverter for enum AppPickerEvent+const FfiConverterTypeAppPickerEvent = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppPipEvent;+ type TypeName = AppPickerEvent;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return new AppPipEvent.Opened({row: FfiConverterString.read(from) });- case 2: return new AppPipEvent.Closed({row: FfiConverterString.read(from) });- case 3: return new AppPipEvent.Synced({rows: FfiConverterSequenceString.read(from) });+ case 1: return new AppPickerEvent.Loaded({entries: FfiConverterSequenceTypeAppCatalogEntry.read(from) });+ case 2: return new AppPickerEvent.Failed({message: FfiConverterString.read(from), causeTexts: FfiConverterSequenceString.read(from), causeInstalled: FfiConverterBool.read(from) });+ case 3: return new AppPickerEvent.Query({query: FfiConverterString.read(from) });+ case 4: return new AppPickerEvent.Select({id: FfiConverterString.read(from) });+ case 5: return new AppPickerEvent.Choose({id: FfiConverterOptionalString.read(from) });+ case 6: return new AppPickerEvent.Preselect({entry: FfiConverterTypeAppCatalogEntry.read(from), files: FfiConverterSequenceString.read(from) });+ case 7: return new AppPickerEvent.Move({moves: FfiConverterTypeAppTeleportMove.read(from) });+ case 8: return new AppPickerEvent.Files({files: FfiConverterSequenceString.read(from) });+ case 9: return new AppPickerEvent.RemoveFile({path: FfiConverterString.read(from) });+ case 10: return new AppPickerEvent.Sensitive({group: FfiConverterTypeAppSensitiveGroup.read(from), value: FfiConverterBool.read(from) });+ case 11: return new AppPickerEvent.Plan();+ case 12: return new AppPickerEvent.Planned({plan: FfiConverterTypeAppTeleportPlan.read(from) });+ case 13: return new AppPickerEvent.Acknowledge({value: FfiConverterBool.read(from) });+ case 14: return new AppPickerEvent.SaveToKeyvault({value: FfiConverterBool.read(from) });+ case 15: return new AppPickerEvent.AcknowledgeRelayPlaintext({value: FfiConverterBool.read(from) });+ case 16: return new AppPickerEvent.DomainsLoaded({inventory: FfiConverterTypeKvInventory.read(from), remembered: FfiConverterOptionalSequenceString.read(from) });+ case 17: return new AppPickerEvent.DomainsFailed();+ case 18: return new AppPickerEvent.ToggleDomain({domain: FfiConverterString.read(from) });+ case 19: return new AppPickerEvent.SelectShownDomains({value: FfiConverterBool.read(from) });+ case 20: return new AppPickerEvent.DomainQuery({text: FfiConverterString.read(from) });+ case 21: return new AppPickerEvent.ToggleItem({key: FfiConverterString.read(from) });+ case 22: return new AppPickerEvent.SendFrom({source: FfiConverterTypeAppSendSource.read(from) });+ case 23: return new AppPickerEvent.VaultItems({count: FfiConverterUInt32.read(from), newestMs: FfiConverterInt64.read(from), nowMs: FfiConverterInt64.read(from), selected: FfiConverterSequenceString.read(from), passwordIds: FfiConverterSequenceString.read(from) });+ case 24: return new AppPickerEvent.TogglePasswords({value: FfiConverterBool.read(from) });+ case 25: return new AppPickerEvent.VaultSelection({selected: FfiConverterSequenceString.read(from) });+ case 26: return new AppPickerEvent.Confirm();+ case 27: return new AppPickerEvent.Progress({event: FfiConverterTypeAppTeleportRunEvent.read(from) });+ case 28: return new AppPickerEvent.Finished({report: FfiConverterTypeAppTeleportRunReport.read(from) });+ case 29: return new AppPickerEvent.Back();default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value.tag) {- case AppPipEvent_Tags.Opened: {+ case AppPickerEvent_Tags.Loaded: {ordinalConverter.write(1, into);const inner = value.inner;- FfiConverterString.write(inner.row, into);+ FfiConverterSequenceTypeAppCatalogEntry.write(inner.entries, into);+ return;+ }+ case AppPickerEvent_Tags.Failed: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.message, into);+ FfiConverterSequenceString.write(inner.causeTexts, into);+ FfiConverterBool.write(inner.causeInstalled, into);+ return;+ }+ case AppPickerEvent_Tags.Query: {+ ordinalConverter.write(3, into);+ const inner = value.inner;+ FfiConverterString.write(inner.query, into);+ return;+ }+ case AppPickerEvent_Tags.Select: {+ ordinalConverter.write(4, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ return;+ }+ case AppPickerEvent_Tags.Choose: {+ ordinalConverter.write(5, into);+ const inner = value.inner;+ FfiConverterOptionalString.write(inner.id, into);+ return;+ }+ case AppPickerEvent_Tags.Preselect: {+ ordinalConverter.write(6, into);+ const inner = value.inner;+ FfiConverterTypeAppCatalogEntry.write(inner.entry, into);+ FfiConverterSequenceString.write(inner.files, into);+ return;+ }+ case AppPickerEvent_Tags.Move: {+ ordinalConverter.write(7, into);+ const inner = value.inner;+ FfiConverterTypeAppTeleportMove.write(inner.moves, into);+ return;+ }+ case AppPickerEvent_Tags.Files: {+ ordinalConverter.write(8, into);+ const inner = value.inner;+ FfiConverterSequenceString.write(inner.files, into);+ return;+ }+ case AppPickerEvent_Tags.RemoveFile: {+ ordinalConverter.write(9, into);+ const inner = value.inner;+ FfiConverterString.write(inner.path, into);+ return;+ }+ case AppPickerEvent_Tags.Sensitive: {+ ordinalConverter.write(10, into);+ const inner = value.inner;+ FfiConverterTypeAppSensitiveGroup.write(inner.group, into);+ FfiConverterBool.write(inner.value, into);+ return;+ }+ case AppPickerEvent_Tags.Plan: {+ ordinalConverter.write(11, into);+ return;+ }+ case AppPickerEvent_Tags.Planned: {+ ordinalConverter.write(12, into);+ const inner = value.inner;+ FfiConverterTypeAppTeleportPlan.write(inner.plan, into);+ return;+ }+ case AppPickerEvent_Tags.Acknowledge: {+ ordinalConverter.write(13, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.value, into);+ return;+ }+ case AppPickerEvent_Tags.SaveToKeyvault: {+ ordinalConverter.write(14, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.value, into);return;}- case AppPipEvent_Tags.Closed: {- ordinalConverter.write(2, into);+ case AppPickerEvent_Tags.AcknowledgeRelayPlaintext: {+ ordinalConverter.write(15, into);const inner = value.inner;- FfiConverterString.write(inner.row, into);+ FfiConverterBool.write(inner.value, into);return;}- case AppPipEvent_Tags.Synced: {- ordinalConverter.write(3, into);+ case AppPickerEvent_Tags.DomainsLoaded: {+ ordinalConverter.write(16, into);const inner = value.inner;- FfiConverterSequenceString.write(inner.rows, into);+ FfiConverterTypeKvInventory.write(inner.inventory, into);+ FfiConverterOptionalSequenceString.write(inner.remembered, into);+ return;+ }+ case AppPickerEvent_Tags.DomainsFailed: {+ ordinalConverter.write(17, into);+ return;+ }+ case AppPickerEvent_Tags.ToggleDomain: {+ ordinalConverter.write(18, into);+ const inner = value.inner;+ FfiConverterString.write(inner.domain, into);+ return;+ }+ case AppPickerEvent_Tags.SelectShownDomains: {+ ordinalConverter.write(19, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.value, into);+ return;+ }+ case AppPickerEvent_Tags.DomainQuery: {+ ordinalConverter.write(20, into);+ const inner = value.inner;+ FfiConverterString.write(inner.text, into);+ return;+ }+ case AppPickerEvent_Tags.ToggleItem: {+ ordinalConverter.write(21, into);+ const inner = value.inner;+ FfiConverterString.write(inner.key, into);+ return;+ }+ case AppPickerEvent_Tags.SendFrom: {+ ordinalConverter.write(22, into);+ const inner = value.inner;+ FfiConverterTypeAppSendSource.write(inner.source, into);+ return;+ }+ case AppPickerEvent_Tags.VaultItems: {+ ordinalConverter.write(23, into);+ const inner = value.inner;+ FfiConverterUInt32.write(inner.count, into);+ FfiConverterInt64.write(inner.newestMs, into);+ FfiConverterInt64.write(inner.nowMs, into);+ FfiConverterSequenceString.write(inner.selected, into);+ FfiConverterSequenceString.write(inner.passwordIds, into);+ return;+ }+ case AppPickerEvent_Tags.TogglePasswords: {+ ordinalConverter.write(24, into);+ const inner = value.inner;+ FfiConverterBool.write(inner.value, into);+ return;+ }+ case AppPickerEvent_Tags.VaultSelection: {+ ordinalConverter.write(25, into);+ const inner = value.inner;+ FfiConverterSequenceString.write(inner.selected, into);+ return;+ }+ case AppPickerEvent_Tags.Confirm: {+ ordinalConverter.write(26, into);+ return;+ }+ case AppPickerEvent_Tags.Progress: {+ ordinalConverter.write(27, into);+ const inner = value.inner;+ FfiConverterTypeAppTeleportRunEvent.write(inner.event, into);+ return;+ }+ case AppPickerEvent_Tags.Finished: {+ ordinalConverter.write(28, into);+ const inner = value.inner;+ FfiConverterTypeAppTeleportRunReport.write(inner.report, into);+ return;+ }+ case AppPickerEvent_Tags.Back: {+ ordinalConverter.write(29, into);return;}default:- // Throwing from here means that AppPipEvent_Tags hasn't matched an ordinal.+ // Throwing from here means that AppPickerEvent_Tags hasn't matched an ordinal.throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {switch (value.tag) {- case AppPipEvent_Tags.Opened: {+ case AppPickerEvent_Tags.Loaded: {const inner = value.inner;let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.row);+ size += FfiConverterSequenceTypeAppCatalogEntry.allocationSize(inner.entries);return size;}- case AppPipEvent_Tags.Closed: {+ case AppPickerEvent_Tags.Failed: {const inner = value.inner;let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.row);+ size += FfiConverterString.allocationSize(inner.message);+ size += FfiConverterSequenceString.allocationSize(inner.causeTexts);+ size += FfiConverterBool.allocationSize(inner.causeInstalled);return size;}- case AppPipEvent_Tags.Synced: {+ case AppPickerEvent_Tags.Query: {const inner = value.inner;let size = ordinalConverter.allocationSize(3);- size += FfiConverterSequenceString.allocationSize(inner.rows);+ size += FfiConverterString.allocationSize(inner.query);+ return size;+ }+ case AppPickerEvent_Tags.Select: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(4);+ size += FfiConverterString.allocationSize(inner.id);+ return size;+ }+ case AppPickerEvent_Tags.Choose: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(5);+ size += FfiConverterOptionalString.allocationSize(inner.id);+ return size;+ }+ case AppPickerEvent_Tags.Preselect: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(6);+ size += FfiConverterTypeAppCatalogEntry.allocationSize(inner.entry);+ size += FfiConverterSequenceString.allocationSize(inner.files);+ return size;+ }+ case AppPickerEvent_Tags.Move: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(7);+ size += FfiConverterTypeAppTeleportMove.allocationSize(inner.moves);+ return size;+ }+ case AppPickerEvent_Tags.Files: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(8);+ size += FfiConverterSequenceString.allocationSize(inner.files);+ return size;+ }+ case AppPickerEvent_Tags.RemoveFile: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(9);+ size += FfiConverterString.allocationSize(inner.path);+ return size;+ }+ case AppPickerEvent_Tags.Sensitive: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(10);+ size += FfiConverterTypeAppSensitiveGroup.allocationSize(inner.group);+ size += FfiConverterBool.allocationSize(inner.value);+ return size;+ }+ case AppPickerEvent_Tags.Plan: {+ return ordinalConverter.allocationSize(11);+ }+ case AppPickerEvent_Tags.Planned: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(12);+ size += FfiConverterTypeAppTeleportPlan.allocationSize(inner.plan);+ return size;+ }+ case AppPickerEvent_Tags.Acknowledge: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(13);+ size += FfiConverterBool.allocationSize(inner.value);+ return size;+ }+ case AppPickerEvent_Tags.SaveToKeyvault: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(14);+ size += FfiConverterBool.allocationSize(inner.value);+ return size;+ }+ case AppPickerEvent_Tags.AcknowledgeRelayPlaintext: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(15);+ size += FfiConverterBool.allocationSize(inner.value);+ return size;+ }+ case AppPickerEvent_Tags.DomainsLoaded: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(16);+ size += FfiConverterTypeKvInventory.allocationSize(inner.inventory);+ size += FfiConverterOptionalSequenceString.allocationSize(inner.remembered);+ return size;+ }+ case AppPickerEvent_Tags.DomainsFailed: {+ return ordinalConverter.allocationSize(17);+ }+ case AppPickerEvent_Tags.ToggleDomain: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(18);+ size += FfiConverterString.allocationSize(inner.domain);+ return size;+ }+ case AppPickerEvent_Tags.SelectShownDomains: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(19);+ size += FfiConverterBool.allocationSize(inner.value);+ return size;+ }+ case AppPickerEvent_Tags.DomainQuery: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(20);+ size += FfiConverterString.allocationSize(inner.text);+ return size;+ }+ case AppPickerEvent_Tags.ToggleItem: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(21);+ size += FfiConverterString.allocationSize(inner.key);+ return size;+ }+ case AppPickerEvent_Tags.SendFrom: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(22);+ size += FfiConverterTypeAppSendSource.allocationSize(inner.source);+ return size;+ }+ case AppPickerEvent_Tags.VaultItems: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(23);+ size += FfiConverterUInt32.allocationSize(inner.count);+ size += FfiConverterInt64.allocationSize(inner.newestMs);+ size += FfiConverterInt64.allocationSize(inner.nowMs);+ size += FfiConverterSequenceString.allocationSize(inner.selected);+ size += FfiConverterSequenceString.allocationSize(inner.passwordIds);+ return size;+ }+ case AppPickerEvent_Tags.TogglePasswords: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(24);+ size += FfiConverterBool.allocationSize(inner.value);+ return size;+ }+ case AppPickerEvent_Tags.VaultSelection: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(25);+ size += FfiConverterSequenceString.allocationSize(inner.selected);+ return size;+ }+ case AppPickerEvent_Tags.Confirm: {+ return ordinalConverter.allocationSize(26);+ }+ case AppPickerEvent_Tags.Progress: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(27);+ size += FfiConverterTypeAppTeleportRunEvent.allocationSize(inner.event);+ return size;+ }+ case AppPickerEvent_Tags.Finished: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(28);+ size += FfiConverterTypeAppTeleportRunReport.allocationSize(inner.report);return size;}+ case AppPickerEvent_Tags.Back: {+ return ordinalConverter.allocationSize(29);+ }default: throw new UniffiInternalError.UnexpectedEnumCase();}}@@ -49695,488 +51233,175 @@ const FfiConverterTypeAppPipEvent = (() => {return new FFIConverter();})();--// Enum: AppRosterAction-export enum AppRosterAction_Tags {- Expand = "Expand",- Collapse = "Collapse",- OpenCreate = "OpenCreate",- CancelCreate = "CancelCreate",- Focus = "Focus",- FocusMove = "FocusMove",- Select = "Select",- ClearNotice = "ClearNotice",- Notify = "Notify",- SyncSpaces = "SyncSpaces"-}-export const AppRosterAction = (() => {-- type Expand__interface = {- tag: AppRosterAction_Tags.Expand- };- /**- * Open the switcher.- */- class Expand_ extends UniffiEnum implements Expand__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.Expand;- constructor() {- super("AppRosterAction", "Expand");- }-- static new(): Expand_ {- return new Expand_();- }-- static instanceOf(obj: any): obj is Expand_ {- return obj.tag === AppRosterAction_Tags.Expand;- }-- }-- type Collapse__interface = {- tag: AppRosterAction_Tags.Collapse- };- /**- * Back to ambient.- */- class Collapse_ extends UniffiEnum implements Collapse__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.Collapse;- constructor() {- super("AppRosterAction", "Collapse");- }-- static new(): Collapse_ {- return new Collapse_();- }-- static instanceOf(obj: any): obj is Collapse_ {- return obj.tag === AppRosterAction_Tags.Collapse;- }-- }-- type OpenCreate__interface = {- tag: AppRosterAction_Tags.OpenCreate- };- /**- * Open the create panel.- */- class OpenCreate_ extends UniffiEnum implements OpenCreate__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.OpenCreate;- constructor() {- super("AppRosterAction", "OpenCreate");- }-- static new(): OpenCreate_ {- return new OpenCreate_();- }-- static instanceOf(obj: any): obj is OpenCreate_ {- return obj.tag === AppRosterAction_Tags.OpenCreate;- }-- }-- type CancelCreate__interface = {- tag: AppRosterAction_Tags.CancelCreate- };- /**- * Close it.- */- class CancelCreate_ extends UniffiEnum implements CancelCreate__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.CancelCreate;- constructor() {- super("AppRosterAction", "CancelCreate");- }-- static new(): CancelCreate_ {- return new CancelCreate_();- }-- static instanceOf(obj: any): obj is CancelCreate_ {- return obj.tag === AppRosterAction_Tags.CancelCreate;- }-- }-- type Focus__interface = {- tag: AppRosterAction_Tags.Focus;- inner:-Readonly<{index: number}>- };- /**- * Focus a tile.- */- class Focus_ extends UniffiEnum implements Focus__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.Focus;- readonly inner:-Readonly<{index: number}>;- constructor(-inner: {index: number }) {- super("AppRosterAction", "Focus");-- this.inner = Object.freeze(inner);- }- static new(-inner: {index: number }): Focus_ {- return new Focus_(inner);- }-- static instanceOf(obj: any): obj is Focus_ {- return obj.tag === AppRosterAction_Tags.Focus;- }-- }-- type FocusMove__interface = {- tag: AppRosterAction_Tags.FocusMove;- inner:-Readonly<{delta: number}>- };- /**- * Move focus by one, wrapping through the New tile.- */- class FocusMove_ extends UniffiEnum implements FocusMove__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.FocusMove;- readonly inner:-Readonly<{delta: number}>;- constructor(-inner: {delta: number }) {- super("AppRosterAction", "FocusMove");-- this.inner = Object.freeze(inner);- }- static new(-inner: {delta: number }): FocusMove_ {- return new FocusMove_(inner);- }-- static instanceOf(obj: any): obj is FocusMove_ {- return obj.tag === AppRosterAction_Tags.FocusMove;- }-- }-- type Select__interface = {- tag: AppRosterAction_Tags.Select;- inner:-Readonly<{id: string; now: bigint}>- };+export enum AppPickerTab {/**- * Select a Space (touches its MRU time).+ * This machine's windows, teleported into the Space.*/- class Select_ extends UniffiEnum implements Select__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.Select;- readonly inner:-Readonly<{id: string; now: bigint}>;- constructor(-inner: {id: string; now: bigint }) {- super("AppRosterAction", "Select");-- this.inner = Object.freeze(inner);- }- static new(-inner: {id: string; now: bigint }): Select_ {- return new Select_(inner);- }-- static instanceOf(obj: any): obj is Select_ {- return obj.tag === AppRosterAction_Tags.Select;- }-- }-- type ClearNotice__interface = {- tag: AppRosterAction_Tags.ClearNotice;- inner:-Readonly<{id: number}>- };+ Space = "space",/**- * Clear the notice with this id.+ * The Space's windows, streamed here.*/- class ClearNotice_ extends UniffiEnum implements ClearNotice__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.ClearNotice;- readonly inner:-Readonly<{id: number}>;- constructor(-inner: {id: number }) {- super("AppRosterAction", "ClearNotice");+ ThisMac = "thisMac"+}- this.inner = Object.freeze(inner);+const FfiConverterTypeAppPickerTab = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppPickerTab;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return AppPickerTab.Space;+ case 2: return AppPickerTab.ThisMac;+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}- static new(-inner: {id: number }): ClearNotice_ {- return new ClearNotice_(inner);+ write(value: TypeName, into: RustBuffer): void {+ switch (value) {+ case AppPickerTab.Space: return ordinalConverter.write(1, into);+ case AppPickerTab.ThisMac: return ordinalConverter.write(2, into);+ }}-- static instanceOf(obj: any): obj is ClearNotice_ {- return obj.tag === AppRosterAction_Tags.ClearNotice;+ allocationSize(value: TypeName): number {+ return ordinalConverter.allocationSize(0);}-}+ return new FFIConverter();+})();- type Notify__interface = {- tag: AppRosterAction_Tags.Notify;++// Enum: AppPipCommand+export enum AppPipCommand_Tags {+ Open = "Open",+ Close = "Close"+}+export const AppPipCommand = (() => {++ type Open__interface = {+ tag: AppPipCommand_Tags.Open;inner:-Readonly<{text: string; kind?: AppNoticeKind}>+Readonly<{row: string}>};/**- * Show a notice.+ * Open the row's panel.*/- class Notify_ extends UniffiEnum implements Notify__interface {+ class Open_ extends UniffiEnum implements Open__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.Notify;+ readonly [uniffiTypeNameSymbol] = "AppPipCommand";+ readonly tag = AppPipCommand_Tags.Open;readonly inner:-Readonly<{text: string; kind?: AppNoticeKind}>;+Readonly<{row: string}>;constructor(-inner: {text: string; kind?: AppNoticeKind }) {- super("AppRosterAction", "Notify");+inner: {row: string }) {+ super("AppPipCommand", "Open");this.inner = Object.freeze(inner);}static new(-inner: {text: string; kind?: AppNoticeKind }): Notify_ {- return new Notify_(inner);+inner: {row: string }): Open_ {+ return new Open_(inner);}- static instanceOf(obj: any): obj is Notify_ {- return obj.tag === AppRosterAction_Tags.Notify;+ static instanceOf(obj: any): obj is Open_ {+ return obj.tag === AppPipCommand_Tags.Open;}}- type SyncSpaces__interface = {- tag: AppRosterAction_Tags.SyncSpaces;+ type Close__interface = {+ tag: AppPipCommand_Tags.Close;inner:-Readonly<{spaces: Array<AppSpace>}>+Readonly<{row: string}>};/**- * Replace the list with a registry refresh.+ * Close the row's open panel.*/- class SyncSpaces_ extends UniffiEnum implements SyncSpaces__interface {+ class Close_ extends UniffiEnum implements Close__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppRosterAction";- readonly tag = AppRosterAction_Tags.SyncSpaces;+ readonly [uniffiTypeNameSymbol] = "AppPipCommand";+ readonly tag = AppPipCommand_Tags.Close;readonly inner:-Readonly<{spaces: Array<AppSpace>}>;+Readonly<{row: string}>;constructor(-inner: {spaces: Array<AppSpace> }) {- super("AppRosterAction", "SyncSpaces");+inner: {row: string }) {+ super("AppPipCommand", "Close");this.inner = Object.freeze(inner);}static new(-inner: {spaces: Array<AppSpace> }): SyncSpaces_ {- return new SyncSpaces_(inner);+inner: {row: string }): Close_ {+ return new Close_(inner);}- static instanceOf(obj: any): obj is SyncSpaces_ {- return obj.tag === AppRosterAction_Tags.SyncSpaces;+ static instanceOf(obj: any): obj is Close_ {+ return obj.tag === AppPipCommand_Tags.Close;}}- function instanceOf(obj: any): obj is AppRosterAction {- return obj[uniffiTypeNameSymbol] === "AppRosterAction";+ function instanceOf(obj: any): obj is AppPipCommand {+ return obj[uniffiTypeNameSymbol] === "AppPipCommand";}return Object.freeze({instanceOf,- Expand: Expand_,- Collapse: Collapse_,- OpenCreate: OpenCreate_,- CancelCreate: CancelCreate_,- Focus: Focus_,- FocusMove: FocusMove_,- Select: Select_,- ClearNotice: ClearNotice_,- Notify: Notify_,- SyncSpaces: SyncSpaces_+ Open: Open_,+ Close: Close_});})();-export type AppRosterAction = InstanceType<- typeof AppRosterAction['Expand' | 'Collapse' | 'OpenCreate' | 'CancelCreate' | 'Focus' | 'FocusMove' | 'Select' | 'ClearNotice' | 'Notify' | 'SyncSpaces']+export type AppPipCommand = InstanceType<+ typeof AppPipCommand['Open' | 'Close']>;-// FfiConverter for enum AppRosterAction-const FfiConverterTypeAppRosterAction = (() => {+// FfiConverter for enum AppPipCommand+const FfiConverterTypeAppPipCommand = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppRosterAction;+ type TypeName = AppPipCommand;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return new AppRosterAction.Expand();- case 2: return new AppRosterAction.Collapse();- case 3: return new AppRosterAction.OpenCreate();- case 4: return new AppRosterAction.CancelCreate();- case 5: return new AppRosterAction.Focus({index: FfiConverterInt32.read(from) });- case 6: return new AppRosterAction.FocusMove({delta: FfiConverterInt32.read(from) });- case 7: return new AppRosterAction.Select({id: FfiConverterString.read(from), now: FfiConverterInt64.read(from) });- case 8: return new AppRosterAction.ClearNotice({id: FfiConverterUInt32.read(from) });- case 9: return new AppRosterAction.Notify({text: FfiConverterString.read(from), kind: FfiConverterOptionalTypeAppNoticeKind.read(from) });- case 10: return new AppRosterAction.SyncSpaces({spaces: FfiConverterSequenceTypeAppSpace.read(from) });+ case 1: return new AppPipCommand.Open({row: FfiConverterString.read(from) });+ case 2: return new AppPipCommand.Close({row: FfiConverterString.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value.tag) {- case AppRosterAction_Tags.Expand: {+ case AppPipCommand_Tags.Open: {ordinalConverter.write(1, into);- return;- }- case AppRosterAction_Tags.Collapse: {- ordinalConverter.write(2, into);- return;- }- case AppRosterAction_Tags.OpenCreate: {- ordinalConverter.write(3, into);- return;- }- case AppRosterAction_Tags.CancelCreate: {- ordinalConverter.write(4, into);- return;- }- case AppRosterAction_Tags.Focus: {- ordinalConverter.write(5, into);- const inner = value.inner;- FfiConverterInt32.write(inner.index, into);- return;- }- case AppRosterAction_Tags.FocusMove: {- ordinalConverter.write(6, into);- const inner = value.inner;- FfiConverterInt32.write(inner.delta, into);- return;- }- case AppRosterAction_Tags.Select: {- ordinalConverter.write(7, into);- const inner = value.inner;- FfiConverterString.write(inner.id, into);- FfiConverterInt64.write(inner.now, into);- return;- }- case AppRosterAction_Tags.ClearNotice: {- ordinalConverter.write(8, into);- const inner = value.inner;- FfiConverterUInt32.write(inner.id, into);- return;- }- case AppRosterAction_Tags.Notify: {- ordinalConverter.write(9, into);const inner = value.inner;- FfiConverterString.write(inner.text, into);- FfiConverterOptionalTypeAppNoticeKind.write(inner.kind, into);+ FfiConverterString.write(inner.row, into);return;}- case AppRosterAction_Tags.SyncSpaces: {- ordinalConverter.write(10, into);+ case AppPipCommand_Tags.Close: {+ ordinalConverter.write(2, into);const inner = value.inner;- FfiConverterSequenceTypeAppSpace.write(inner.spaces, into);+ FfiConverterString.write(inner.row, into);return;}default:- // Throwing from here means that AppRosterAction_Tags hasn't matched an ordinal.+ // Throwing from here means that AppPipCommand_Tags hasn't matched an ordinal.throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {switch (value.tag) {- case AppRosterAction_Tags.Expand: {- return ordinalConverter.allocationSize(1);- }- case AppRosterAction_Tags.Collapse: {- return ordinalConverter.allocationSize(2);- }- case AppRosterAction_Tags.OpenCreate: {- return ordinalConverter.allocationSize(3);- }- case AppRosterAction_Tags.CancelCreate: {- return ordinalConverter.allocationSize(4);- }- case AppRosterAction_Tags.Focus: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(5);- size += FfiConverterInt32.allocationSize(inner.index);- return size;- }- case AppRosterAction_Tags.FocusMove: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(6);- size += FfiConverterInt32.allocationSize(inner.delta);- return size;- }- case AppRosterAction_Tags.Select: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(7);- size += FfiConverterString.allocationSize(inner.id);- size += FfiConverterInt64.allocationSize(inner.now);- return size;- }- case AppRosterAction_Tags.ClearNotice: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(8);- size += FfiConverterUInt32.allocationSize(inner.id);- return size;- }- case AppRosterAction_Tags.Notify: {+ case AppPipCommand_Tags.Open: {const inner = value.inner;- let size = ordinalConverter.allocationSize(9);- size += FfiConverterString.allocationSize(inner.text);- size += FfiConverterOptionalTypeAppNoticeKind.allocationSize(inner.kind);+ let size = ordinalConverter.allocationSize(1);+ size += FfiConverterString.allocationSize(inner.row);return size;}- case AppRosterAction_Tags.SyncSpaces: {+ case AppPipCommand_Tags.Close: {const inner = value.inner;- let size = ordinalConverter.allocationSize(10);- size += FfiConverterSequenceTypeAppSpace.allocationSize(inner.spaces);+ let size = ordinalConverter.allocationSize(2);+ size += FfiConverterString.allocationSize(inner.row);return size;}default: throw new UniffiInternalError.UnexpectedEnumCase();@@ -50187,362 +51412,188 @@ const FfiConverterTypeAppRosterAction = (() => {})();-// Enum: AppShareSheetAction-export enum AppShareSheetAction_Tags {- SetWho = "SetWho",- SetRole = "SetRole",- Submit = "Submit",- ChangeRole = "ChangeRole",- Remove = "Remove",- Done = "Done",- Failed = "Failed"+// Enum: AppPipEvent+export enum AppPipEvent_Tags {+ Opened = "Opened",+ Closed = "Closed",+ Synced = "Synced"}-export const AppShareSheetAction = (() => {-- type SetWho__interface = {- tag: AppShareSheetAction_Tags.SetWho;- inner:-Readonly<{who: string}>- };- /**- * The add field changed.- */- class SetWho_ extends UniffiEnum implements SetWho__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";- readonly tag = AppShareSheetAction_Tags.SetWho;- readonly inner:-Readonly<{who: string}>;- constructor(-inner: {who: string }) {- super("AppShareSheetAction", "SetWho");-- this.inner = Object.freeze(inner);- }- static new(-inner: {who: string }): SetWho_ {- return new SetWho_(inner);- }-- static instanceOf(obj: any): obj is SetWho_ {- return obj.tag === AppShareSheetAction_Tags.SetWho;- }-- }-- type SetRole__interface = {- tag: AppShareSheetAction_Tags.SetRole;- inner:-Readonly<{role: string}>- };- /**- * The add field's role menu changed.- */- class SetRole_ extends UniffiEnum implements SetRole__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";- readonly tag = AppShareSheetAction_Tags.SetRole;- readonly inner:-Readonly<{role: string}>;- constructor(-inner: {role: string }) {- super("AppShareSheetAction", "SetRole");-- this.inner = Object.freeze(inner);- }- static new(-inner: {role: string }): SetRole_ {- return new SetRole_(inner);- }-- static instanceOf(obj: any): obj is SetRole_ {- return obj.tag === AppShareSheetAction_Tags.SetRole;- }-- }-- type Submit__interface = {- tag: AppShareSheetAction_Tags.Submit- };- /**- * Share was pressed.- */- class Submit_ extends UniffiEnum implements Submit__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";- readonly tag = AppShareSheetAction_Tags.Submit;- constructor() {- super("AppShareSheetAction", "Submit");- }-- static new(): Submit_ {- return new Submit_();- }-- static instanceOf(obj: any): obj is Submit_ {- return obj.tag === AppShareSheetAction_Tags.Submit;- }-- }+export const AppPipEvent = (() => {- type ChangeRole__interface = {- tag: AppShareSheetAction_Tags.ChangeRole;+ type Opened__interface = {+ tag: AppPipEvent_Tags.Opened;inner:-Readonly<{who: string; role: string}>+Readonly<{row: string}>};/**- * A person's role menu changed.+ * A row's panel opened.*/- class ChangeRole_ extends UniffiEnum implements ChangeRole__interface {+ class Opened_ extends UniffiEnum implements Opened__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";- readonly tag = AppShareSheetAction_Tags.ChangeRole;+ readonly [uniffiTypeNameSymbol] = "AppPipEvent";+ readonly tag = AppPipEvent_Tags.Opened;readonly inner:-Readonly<{who: string; role: string}>;+Readonly<{row: string}>;constructor(-inner: {who: string; role: string }) {- super("AppShareSheetAction", "ChangeRole");+inner: {row: string }) {+ super("AppPipEvent", "Opened");this.inner = Object.freeze(inner);}static new(-inner: {who: string; role: string }): ChangeRole_ {- return new ChangeRole_(inner);+inner: {row: string }): Opened_ {+ return new Opened_(inner);}- static instanceOf(obj: any): obj is ChangeRole_ {- return obj.tag === AppShareSheetAction_Tags.ChangeRole;+ static instanceOf(obj: any): obj is Opened_ {+ return obj.tag === AppPipEvent_Tags.Opened;}}- type Remove__interface = {- tag: AppShareSheetAction_Tags.Remove;+ type Closed__interface = {+ tag: AppPipEvent_Tags.Closed;inner:-Readonly<{who: string}>+Readonly<{row: string}>};/**- * A person's Remove was pressed.+ * A row's panel closed.*/- class Remove_ extends UniffiEnum implements Remove__interface {+ class Closed_ extends UniffiEnum implements Closed__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";- readonly tag = AppShareSheetAction_Tags.Remove;+ readonly [uniffiTypeNameSymbol] = "AppPipEvent";+ readonly tag = AppPipEvent_Tags.Closed;readonly inner:-Readonly<{who: string}>;+Readonly<{row: string}>;constructor(-inner: {who: string }) {- super("AppShareSheetAction", "Remove");+inner: {row: string }) {+ super("AppPipEvent", "Closed");this.inner = Object.freeze(inner);}static new(-inner: {who: string }): Remove_ {- return new Remove_(inner);- }-- static instanceOf(obj: any): obj is Remove_ {- return obj.tag === AppShareSheetAction_Tags.Remove;- }-- }-- type Done__interface = {- tag: AppShareSheetAction_Tags.Done- };- /**- * The command finished.- */- class Done_ extends UniffiEnum implements Done__interface {- /**- * @private- * This field is private and should not be used, use `tag` instead.- */- readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";- readonly tag = AppShareSheetAction_Tags.Done;- constructor() {- super("AppShareSheetAction", "Done");- }-- static new(): Done_ {- return new Done_();+inner: {row: string }): Closed_ {+ return new Closed_(inner);}- static instanceOf(obj: any): obj is Done_ {- return obj.tag === AppShareSheetAction_Tags.Done;+ static instanceOf(obj: any): obj is Closed_ {+ return obj.tag === AppPipEvent_Tags.Closed;}}- type Failed__interface = {- tag: AppShareSheetAction_Tags.Failed;+ type Synced__interface = {+ tag: AppPipEvent_Tags.Synced;inner:-Readonly<{error: string}>+Readonly<{rows: Array<string>}>};/**- * The command failed (or presence was declined).+ * The panels open now, as the shell listed them.*/- class Failed_ extends UniffiEnum implements Failed__interface {+ class Synced_ extends UniffiEnum implements Synced__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";- readonly tag = AppShareSheetAction_Tags.Failed;+ readonly [uniffiTypeNameSymbol] = "AppPipEvent";+ readonly tag = AppPipEvent_Tags.Synced;readonly inner:-Readonly<{error: string}>;+Readonly<{rows: Array<string>}>;constructor(-inner: {error: string }) {- super("AppShareSheetAction", "Failed");+inner: {rows: Array<string> }) {+ super("AppPipEvent", "Synced");this.inner = Object.freeze(inner);}static new(-inner: {error: string }): Failed_ {- return new Failed_(inner);+inner: {rows: Array<string> }): Synced_ {+ return new Synced_(inner);}- static instanceOf(obj: any): obj is Failed_ {- return obj.tag === AppShareSheetAction_Tags.Failed;+ static instanceOf(obj: any): obj is Synced_ {+ return obj.tag === AppPipEvent_Tags.Synced;}}- function instanceOf(obj: any): obj is AppShareSheetAction {- return obj[uniffiTypeNameSymbol] === "AppShareSheetAction";+ function instanceOf(obj: any): obj is AppPipEvent {+ return obj[uniffiTypeNameSymbol] === "AppPipEvent";}return Object.freeze({instanceOf,- SetWho: SetWho_,- SetRole: SetRole_,- Submit: Submit_,- ChangeRole: ChangeRole_,- Remove: Remove_,- Done: Done_,- Failed: Failed_+ Opened: Opened_,+ Closed: Closed_,+ Synced: Synced_});})();-export type AppShareSheetAction = InstanceType<- typeof AppShareSheetAction['SetWho' | 'SetRole' | 'Submit' | 'ChangeRole' | 'Remove' | 'Done' | 'Failed']+export type AppPipEvent = InstanceType<+ typeof AppPipEvent['Opened' | 'Closed' | 'Synced']>;-// FfiConverter for enum AppShareSheetAction-const FfiConverterTypeAppShareSheetAction = (() => {+// FfiConverter for enum AppPipEvent+const FfiConverterTypeAppPipEvent = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppShareSheetAction;+ type TypeName = AppPipEvent;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return new AppShareSheetAction.SetWho({who: FfiConverterString.read(from) });- case 2: return new AppShareSheetAction.SetRole({role: FfiConverterString.read(from) });- case 3: return new AppShareSheetAction.Submit();- case 4: return new AppShareSheetAction.ChangeRole({who: FfiConverterString.read(from), role: FfiConverterString.read(from) });- case 5: return new AppShareSheetAction.Remove({who: FfiConverterString.read(from) });- case 6: return new AppShareSheetAction.Done();- case 7: return new AppShareSheetAction.Failed({error: FfiConverterString.read(from) });+ case 1: return new AppPipEvent.Opened({row: FfiConverterString.read(from) });+ case 2: return new AppPipEvent.Closed({row: FfiConverterString.read(from) });+ case 3: return new AppPipEvent.Synced({rows: FfiConverterSequenceString.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value.tag) {- case AppShareSheetAction_Tags.SetWho: {+ case AppPipEvent_Tags.Opened: {ordinalConverter.write(1, into);const inner = value.inner;- FfiConverterString.write(inner.who, into);- return;- }- case AppShareSheetAction_Tags.SetRole: {- ordinalConverter.write(2, into);- const inner = value.inner;- FfiConverterString.write(inner.role, into);- return;- }- case AppShareSheetAction_Tags.Submit: {- ordinalConverter.write(3, into);- return;- }- case AppShareSheetAction_Tags.ChangeRole: {- ordinalConverter.write(4, into);- const inner = value.inner;- FfiConverterString.write(inner.who, into);- FfiConverterString.write(inner.role, into);- return;- }- case AppShareSheetAction_Tags.Remove: {- ordinalConverter.write(5, into);- const inner = value.inner;- FfiConverterString.write(inner.who, into);+ FfiConverterString.write(inner.row, into);return;}- case AppShareSheetAction_Tags.Done: {- ordinalConverter.write(6, into);+ case AppPipEvent_Tags.Closed: {+ ordinalConverter.write(2, into);+ const inner = value.inner;+ FfiConverterString.write(inner.row, into);return;}- case AppShareSheetAction_Tags.Failed: {- ordinalConverter.write(7, into);+ case AppPipEvent_Tags.Synced: {+ ordinalConverter.write(3, into);const inner = value.inner;- FfiConverterString.write(inner.error, into);+ FfiConverterSequenceString.write(inner.rows, into);return;}default:- // Throwing from here means that AppShareSheetAction_Tags hasn't matched an ordinal.+ // Throwing from here means that AppPipEvent_Tags hasn't matched an ordinal.throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {switch (value.tag) {- case AppShareSheetAction_Tags.SetWho: {+ case AppPipEvent_Tags.Opened: {const inner = value.inner;let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.who);+ size += FfiConverterString.allocationSize(inner.row);return size;}- case AppShareSheetAction_Tags.SetRole: {+ case AppPipEvent_Tags.Closed: {const inner = value.inner;let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.role);- return size;- }- case AppShareSheetAction_Tags.Submit: {- return ordinalConverter.allocationSize(3);- }- case AppShareSheetAction_Tags.ChangeRole: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(4);- size += FfiConverterString.allocationSize(inner.who);- size += FfiConverterString.allocationSize(inner.role);- return size;- }- case AppShareSheetAction_Tags.Remove: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(5);- size += FfiConverterString.allocationSize(inner.who);+ size += FfiConverterString.allocationSize(inner.row);return size;}- case AppShareSheetAction_Tags.Done: {- return ordinalConverter.allocationSize(6);- }- case AppShareSheetAction_Tags.Failed: {+ case AppPipEvent_Tags.Synced: {const inner = value.inner;- let size = ordinalConverter.allocationSize(7);- size += FfiConverterString.allocationSize(inner.error);+ let size = ordinalConverter.allocationSize(3);+ size += FfiConverterSequenceString.allocationSize(inner.rows);return size;}default: throw new UniffiInternalError.UnexpectedEnumCase();@@ -50553,780 +51604,853 @@ const FfiConverterTypeAppShareSheetAction = (() => {})();-// Enum: AppTelemetrySignal-export enum AppTelemetrySignal_Tags {- Feature = "Feature",- Step = "Step",- Launched = "Launched",- SignInFailed = "SignInFailed",- OnboardingPage = "OnboardingPage",- SpaceWizard = "SpaceWizard",- SpaceCreate = "SpaceCreate",- SpaceCreateStarted = "SpaceCreateStarted",- VolumeSetup = "VolumeSetup",- Share = "Share",- AppUpdate = "AppUpdate",- DeviceEnroll = "DeviceEnroll",- Experiment = "Experiment",- ExperimentsOn = "ExperimentsOn"+// Enum: AppRosterAction+export enum AppRosterAction_Tags {+ Expand = "Expand",+ Collapse = "Collapse",+ OpenCreate = "OpenCreate",+ CancelCreate = "CancelCreate",+ Focus = "Focus",+ FocusMove = "FocusMove",+ Select = "Select",+ ClearNotice = "ClearNotice",+ Notify = "Notify",+ SyncSpaces = "SyncSpaces"}-export const AppTelemetrySignal = (() => {+export const AppRosterAction = (() => {- type Feature__interface = {- tag: AppTelemetrySignal_Tags.Feature;- inner:-Readonly<{feature: string}>+ type Expand__interface = {+ tag: AppRosterAction_Tags.Expand};/**- * A Spaces app feature was used (`cua_spaces_feature_used`).+ * Open the switcher.*/- class Feature_ extends UniffiEnum implements Feature__interface {+ class Expand_ extends UniffiEnum implements Expand__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.Feature;- readonly inner:-Readonly<{feature: string}>;- constructor(-inner: {feature: string }) {- super("AppTelemetrySignal", "Feature");+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.Expand;+ constructor() {+ super("AppRosterAction", "Expand");+ }- this.inner = Object.freeze(inner);+ static new(): Expand_ {+ return new Expand_();}- static new(-inner: {feature: string }): Feature_ {- return new Feature_(inner);++ static instanceOf(obj: any): obj is Expand_ {+ return obj.tag === AppRosterAction_Tags.Expand;}- static instanceOf(obj: any): obj is Feature_ {- return obj.tag === AppTelemetrySignal_Tags.Feature;+ }++ type Collapse__interface = {+ tag: AppRosterAction_Tags.Collapse+ };+ /**+ * Back to ambient.+ */+ class Collapse_ extends UniffiEnum implements Collapse__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.Collapse;+ constructor() {+ super("AppRosterAction", "Collapse");+ }++ static new(): Collapse_ {+ return new Collapse_();+ }++ static instanceOf(obj: any): obj is Collapse_ {+ return obj.tag === AppRosterAction_Tags.Collapse;}}- type Step__interface = {- tag: AppTelemetrySignal_Tags.Step;+ type OpenCreate__interface = {+ tag: AppRosterAction_Tags.OpenCreate+ };+ /**+ * Open the create panel.+ */+ class OpenCreate_ extends UniffiEnum implements OpenCreate__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.OpenCreate;+ constructor() {+ super("AppRosterAction", "OpenCreate");+ }++ static new(): OpenCreate_ {+ return new OpenCreate_();+ }++ static instanceOf(obj: any): obj is OpenCreate_ {+ return obj.tag === AppRosterAction_Tags.OpenCreate;+ }++ }++ type CancelCreate__interface = {+ tag: AppRosterAction_Tags.CancelCreate+ };+ /**+ * Close it.+ */+ class CancelCreate_ extends UniffiEnum implements CancelCreate__interface {+ /**+ * @private+ * This field is private and should not be used, use `tag` instead.+ */+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.CancelCreate;+ constructor() {+ super("AppRosterAction", "CancelCreate");+ }++ static new(): CancelCreate_ {+ return new CancelCreate_();+ }++ static instanceOf(obj: any): obj is CancelCreate_ {+ return obj.tag === AppRosterAction_Tags.CancelCreate;+ }++ }++ type Focus__interface = {+ tag: AppRosterAction_Tags.Focus;inner:-Readonly<{step: string; ok: boolean}>+Readonly<{index: number}>};/**- * An install or activation funnel step (`cua_onboarding_step`;- * `first_*` steps count once per install).+ * Focus a tile.*/- class Step_ extends UniffiEnum implements Step__interface {+ class Focus_ extends UniffiEnum implements Focus__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.Step;+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.Focus;readonly inner:-Readonly<{step: string; ok: boolean}>;+Readonly<{index: number}>;constructor(-inner: {step: string; ok: boolean }) {- super("AppTelemetrySignal", "Step");+inner: {index: number }) {+ super("AppRosterAction", "Focus");this.inner = Object.freeze(inner);}static new(-inner: {step: string; ok: boolean }): Step_ {- return new Step_(inner);+inner: {index: number }): Focus_ {+ return new Focus_(inner);}- static instanceOf(obj: any): obj is Step_ {- return obj.tag === AppTelemetrySignal_Tags.Step;+ static instanceOf(obj: any): obj is Focus_ {+ return obj.tag === AppRosterAction_Tags.Focus;}}- type Launched__interface = {- tag: AppTelemetrySignal_Tags.Launched;+ type FocusMove__interface = {+ tag: AppRosterAction_Tags.FocusMove;inner:-Readonly<{onboardingEligible?: boolean}>+Readonly<{delta: number}>};/**- * The app started (`cua_onboarding_step`, step `app_launched`).+ * Move focus by one, wrapping through the New tile.*/- class Launched_ extends UniffiEnum implements Launched__interface {+ class FocusMove_ extends UniffiEnum implements FocusMove__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.Launched;+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.FocusMove;readonly inner:-Readonly<{onboardingEligible?: boolean}>;+Readonly<{delta: number}>;constructor(-inner: {onboardingEligible?: boolean }) {- super("AppTelemetrySignal", "Launched");+inner: {delta: number }) {+ super("AppRosterAction", "FocusMove");this.inner = Object.freeze(inner);}static new(-inner: {onboardingEligible?: boolean }): Launched_ {- return new Launched_(inner);+inner: {delta: number }): FocusMove_ {+ return new FocusMove_(inner);}- static instanceOf(obj: any): obj is Launched_ {- return obj.tag === AppTelemetrySignal_Tags.Launched;+ static instanceOf(obj: any): obj is FocusMove_ {+ return obj.tag === AppRosterAction_Tags.FocusMove;}}- type SignInFailed__interface = {- tag: AppTelemetrySignal_Tags.SignInFailed;+ type Select__interface = {+ tag: AppRosterAction_Tags.Select;inner:-Readonly<{errorKind: string}>+Readonly<{id: string; now: bigint}>};/**- * A sign-in failed, timed out or was cancelled (`cua_onboarding_step`,- * step `signed_in`, outcome `error`).+ * Select a Space (touches its MRU time).*/- class SignInFailed_ extends UniffiEnum implements SignInFailed__interface {+ class Select_ extends UniffiEnum implements Select__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.SignInFailed;+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.Select;readonly inner:-Readonly<{errorKind: string}>;+Readonly<{id: string; now: bigint}>;constructor(-inner: {errorKind: string }) {- super("AppTelemetrySignal", "SignInFailed");+inner: {id: string; now: bigint }) {+ super("AppRosterAction", "Select");this.inner = Object.freeze(inner);}static new(-inner: {errorKind: string }): SignInFailed_ {- return new SignInFailed_(inner);+inner: {id: string; now: bigint }): Select_ {+ return new Select_(inner);}- static instanceOf(obj: any): obj is SignInFailed_ {- return obj.tag === AppTelemetrySignal_Tags.SignInFailed;+ static instanceOf(obj: any): obj is Select_ {+ return obj.tag === AppRosterAction_Tags.Select;}}- type OnboardingPage__interface = {- tag: AppTelemetrySignal_Tags.OnboardingPage;+ type ClearNotice__interface = {+ tag: AppRosterAction_Tags.ClearNotice;inner:-Readonly<{page: string; action: string; choice: string}>+Readonly<{id: number}>};/**- * A first-run page was shown or left (`cua_onboarding_page`).+ * Clear the notice with this id.*/- class OnboardingPage_ extends UniffiEnum implements OnboardingPage__interface {+ class ClearNotice_ extends UniffiEnum implements ClearNotice__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.OnboardingPage;+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.ClearNotice;readonly inner:-Readonly<{page: string; action: string; choice: string}>;+Readonly<{id: number}>;constructor(-inner: {page: string; action: string; choice: string }) {- super("AppTelemetrySignal", "OnboardingPage");+inner: {id: number }) {+ super("AppRosterAction", "ClearNotice");this.inner = Object.freeze(inner);}static new(-inner: {page: string; action: string; choice: string }): OnboardingPage_ {- return new OnboardingPage_(inner);+inner: {id: number }): ClearNotice_ {+ return new ClearNotice_(inner);}- static instanceOf(obj: any): obj is OnboardingPage_ {- return obj.tag === AppTelemetrySignal_Tags.OnboardingPage;+ static instanceOf(obj: any): obj is ClearNotice_ {+ return obj.tag === AppRosterAction_Tags.ClearNotice;}}- type SpaceWizard__interface = {- tag: AppTelemetrySignal_Tags.SpaceWizard;+ type Notify__interface = {+ tag: AppRosterAction_Tags.Notify;inner:-Readonly<{action: string}>+Readonly<{text: string; kind?: AppNoticeKind}>};/**- * The New Space panel (`cua_space_wizard`).+ * Show a notice.*/- class SpaceWizard_ extends UniffiEnum implements SpaceWizard__interface {+ class Notify_ extends UniffiEnum implements Notify__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.SpaceWizard;+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.Notify;readonly inner:-Readonly<{action: string}>;+Readonly<{text: string; kind?: AppNoticeKind}>;constructor(-inner: {action: string }) {- super("AppTelemetrySignal", "SpaceWizard");+inner: {text: string; kind?: AppNoticeKind }) {+ super("AppRosterAction", "Notify");this.inner = Object.freeze(inner);}static new(-inner: {action: string }): SpaceWizard_ {- return new SpaceWizard_(inner);+inner: {text: string; kind?: AppNoticeKind }): Notify_ {+ return new Notify_(inner);}- static instanceOf(obj: any): obj is SpaceWizard_ {- return obj.tag === AppTelemetrySignal_Tags.SpaceWizard;+ static instanceOf(obj: any): obj is Notify_ {+ return obj.tag === AppRosterAction_Tags.Notify;}}- type SpaceCreate__interface = {- tag: AppTelemetrySignal_Tags.SpaceCreate;+ type SyncSpaces__interface = {+ tag: AppRosterAction_Tags.SyncSpaces;inner:-Readonly<{location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string}>+Readonly<{spaces: Array<AppSpace>}>};/**- * A Space create reached ready or failed (`cua_space_create`).+ * Replace the list with a registry refresh.*/- class SpaceCreate_ extends UniffiEnum implements SpaceCreate__interface {+ class SyncSpaces_ extends UniffiEnum implements SyncSpaces__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.SpaceCreate;+ readonly [uniffiTypeNameSymbol] = "AppRosterAction";+ readonly tag = AppRosterAction_Tags.SyncSpaces;readonly inner:-Readonly<{location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string}>;+Readonly<{spaces: Array<AppSpace>}>;constructor(-inner: {location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string }) {- super("AppTelemetrySignal", "SpaceCreate");+inner: {spaces: Array<AppSpace> }) {+ super("AppRosterAction", "SyncSpaces");this.inner = Object.freeze(inner);}static new(-inner: {location: string; guestOs: string; kind: string; outcome: string; failedPhase: string; stalled: boolean; elapsedMs: bigint; gpu: boolean; errorVariant: string }): SpaceCreate_ {- return new SpaceCreate_(inner);+inner: {spaces: Array<AppSpace> }): SyncSpaces_ {+ return new SyncSpaces_(inner);+ }++ static instanceOf(obj: any): obj is SyncSpaces_ {+ return obj.tag === AppRosterAction_Tags.SyncSpaces;+ }++ }++ function instanceOf(obj: any): obj is AppRosterAction {+ return obj[uniffiTypeNameSymbol] === "AppRosterAction";+ }++ return Object.freeze({+ instanceOf,+ Expand: Expand_,+ Collapse: Collapse_,+ OpenCreate: OpenCreate_,+ CancelCreate: CancelCreate_,+ Focus: Focus_,+ FocusMove: FocusMove_,+ Select: Select_,+ ClearNotice: ClearNotice_,+ Notify: Notify_,+ SyncSpaces: SyncSpaces_+ });++})();+export type AppRosterAction = InstanceType<+ typeof AppRosterAction['Expand' | 'Collapse' | 'OpenCreate' | 'CancelCreate' | 'Focus' | 'FocusMove' | 'Select' | 'ClearNotice' | 'Notify' | 'SyncSpaces']+>;++// FfiConverter for enum AppRosterAction+const FfiConverterTypeAppRosterAction = (() => {+ const ordinalConverter = FfiConverterInt32;+ type TypeName = AppRosterAction;+ class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {+ read(from: RustBuffer): TypeName {+ switch (ordinalConverter.read(from)) {+ case 1: return new AppRosterAction.Expand();+ case 2: return new AppRosterAction.Collapse();+ case 3: return new AppRosterAction.OpenCreate();+ case 4: return new AppRosterAction.CancelCreate();+ case 5: return new AppRosterAction.Focus({index: FfiConverterInt32.read(from) });+ case 6: return new AppRosterAction.FocusMove({delta: FfiConverterInt32.read(from) });+ case 7: return new AppRosterAction.Select({id: FfiConverterString.read(from), now: FfiConverterInt64.read(from) });+ case 8: return new AppRosterAction.ClearNotice({id: FfiConverterUInt32.read(from) });+ case 9: return new AppRosterAction.Notify({text: FfiConverterString.read(from), kind: FfiConverterOptionalTypeAppNoticeKind.read(from) });+ case 10: return new AppRosterAction.SyncSpaces({spaces: FfiConverterSequenceTypeAppSpace.read(from) });+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ write(value: TypeName, into: RustBuffer): void {+ switch (value.tag) {+ case AppRosterAction_Tags.Expand: {+ ordinalConverter.write(1, into);+ return;+ }+ case AppRosterAction_Tags.Collapse: {+ ordinalConverter.write(2, into);+ return;+ }+ case AppRosterAction_Tags.OpenCreate: {+ ordinalConverter.write(3, into);+ return;+ }+ case AppRosterAction_Tags.CancelCreate: {+ ordinalConverter.write(4, into);+ return;+ }+ case AppRosterAction_Tags.Focus: {+ ordinalConverter.write(5, into);+ const inner = value.inner;+ FfiConverterInt32.write(inner.index, into);+ return;+ }+ case AppRosterAction_Tags.FocusMove: {+ ordinalConverter.write(6, into);+ const inner = value.inner;+ FfiConverterInt32.write(inner.delta, into);+ return;+ }+ case AppRosterAction_Tags.Select: {+ ordinalConverter.write(7, into);+ const inner = value.inner;+ FfiConverterString.write(inner.id, into);+ FfiConverterInt64.write(inner.now, into);+ return;+ }+ case AppRosterAction_Tags.ClearNotice: {+ ordinalConverter.write(8, into);+ const inner = value.inner;+ FfiConverterUInt32.write(inner.id, into);+ return;+ }+ case AppRosterAction_Tags.Notify: {+ ordinalConverter.write(9, into);+ const inner = value.inner;+ FfiConverterString.write(inner.text, into);+ FfiConverterOptionalTypeAppNoticeKind.write(inner.kind, into);+ return;+ }+ case AppRosterAction_Tags.SyncSpaces: {+ ordinalConverter.write(10, into);+ const inner = value.inner;+ FfiConverterSequenceTypeAppSpace.write(inner.spaces, into);+ return;+ }+ default:+ // Throwing from here means that AppRosterAction_Tags hasn't matched an ordinal.+ throw new UniffiInternalError.UnexpectedEnumCase();+ }+ }+ allocationSize(value: TypeName): number {+ switch (value.tag) {+ case AppRosterAction_Tags.Expand: {+ return ordinalConverter.allocationSize(1);+ }+ case AppRosterAction_Tags.Collapse: {+ return ordinalConverter.allocationSize(2);+ }+ case AppRosterAction_Tags.OpenCreate: {+ return ordinalConverter.allocationSize(3);+ }+ case AppRosterAction_Tags.CancelCreate: {+ return ordinalConverter.allocationSize(4);+ }+ case AppRosterAction_Tags.Focus: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(5);+ size += FfiConverterInt32.allocationSize(inner.index);+ return size;+ }+ case AppRosterAction_Tags.FocusMove: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(6);+ size += FfiConverterInt32.allocationSize(inner.delta);+ return size;+ }+ case AppRosterAction_Tags.Select: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(7);+ size += FfiConverterString.allocationSize(inner.id);+ size += FfiConverterInt64.allocationSize(inner.now);+ return size;+ }+ case AppRosterAction_Tags.ClearNotice: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(8);+ size += FfiConverterUInt32.allocationSize(inner.id);+ return size;+ }+ case AppRosterAction_Tags.Notify: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(9);+ size += FfiConverterString.allocationSize(inner.text);+ size += FfiConverterOptionalTypeAppNoticeKind.allocationSize(inner.kind);+ return size;+ }+ case AppRosterAction_Tags.SyncSpaces: {+ const inner = value.inner;+ let size = ordinalConverter.allocationSize(10);+ size += FfiConverterSequenceTypeAppSpace.allocationSize(inner.spaces);+ return size;+ }+ default: throw new UniffiInternalError.UnexpectedEnumCase();+ }}+ }+ return new FFIConverter();+})();- static instanceOf(obj: any): obj is SpaceCreate_ {- return obj.tag === AppTelemetrySignal_Tags.SpaceCreate;- }- }+// Enum: AppShareSheetAction+export enum AppShareSheetAction_Tags {+ SetWho = "SetWho",+ SetRole = "SetRole",+ Submit = "Submit",+ ChangeRole = "ChangeRole",+ Remove = "Remove",+ Done = "Done",+ Failed = "Failed"+}+export const AppShareSheetAction = (() => {- type SpaceCreateStarted__interface = {- tag: AppTelemetrySignal_Tags.SpaceCreateStarted;+ type SetWho__interface = {+ tag: AppShareSheetAction_Tags.SetWho;inner:-Readonly<{location: string; guestOs: string; kind: string; gpu: boolean}>+Readonly<{who: string}>};/**- * A Space create started (`cua_space_create_started`).+ * The add field changed.*/- class SpaceCreateStarted_ extends UniffiEnum implements SpaceCreateStarted__interface {+ class SetWho_ extends UniffiEnum implements SetWho__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.SpaceCreateStarted;+ readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";+ readonly tag = AppShareSheetAction_Tags.SetWho;readonly inner:-Readonly<{location: string; guestOs: string; kind: string; gpu: boolean}>;+Readonly<{who: string}>;constructor(-inner: {location: string; guestOs: string; kind: string; gpu: boolean }) {- super("AppTelemetrySignal", "SpaceCreateStarted");+inner: {who: string }) {+ super("AppShareSheetAction", "SetWho");this.inner = Object.freeze(inner);}static new(-inner: {location: string; guestOs: string; kind: string; gpu: boolean }): SpaceCreateStarted_ {- return new SpaceCreateStarted_(inner);+inner: {who: string }): SetWho_ {+ return new SetWho_(inner);}- static instanceOf(obj: any): obj is SpaceCreateStarted_ {- return obj.tag === AppTelemetrySignal_Tags.SpaceCreateStarted;+ static instanceOf(obj: any): obj is SetWho_ {+ return obj.tag === AppShareSheetAction_Tags.SetWho;}}- type VolumeSetup__interface = {- tag: AppTelemetrySignal_Tags.VolumeSetup;+ type SetRole__interface = {+ tag: AppShareSheetAction_Tags.SetRole;inner:-Readonly<{surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string}>+Readonly<{role: string}>};/**- * A Cua Volume setting was saved (`cua_volume_setup`).+ * The add field's role menu changed.*/- class VolumeSetup_ extends UniffiEnum implements VolumeSetup__interface {+ class SetRole_ extends UniffiEnum implements SetRole__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.VolumeSetup;+ readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";+ readonly tag = AppShareSheetAction_Tags.SetRole;readonly inner:-Readonly<{surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string}>;+Readonly<{role: string}>;constructor(-inner: {surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string }) {- super("AppTelemetrySignal", "VolumeSetup");+inner: {role: string }) {+ super("AppShareSheetAction", "SetRole");this.inner = Object.freeze(inner);}static new(-inner: {surface: string; storage: string; addToFinder: boolean; mountMethod: string; outcome: string }): VolumeSetup_ {- return new VolumeSetup_(inner);+inner: {role: string }): SetRole_ {+ return new SetRole_(inner);}- static instanceOf(obj: any): obj is VolumeSetup_ {- return obj.tag === AppTelemetrySignal_Tags.VolumeSetup;+ static instanceOf(obj: any): obj is SetRole_ {+ return obj.tag === AppShareSheetAction_Tags.SetRole;}}- type Share__interface = {- tag: AppTelemetrySignal_Tags.Share;- inner:-Readonly<{action: string; role: string; outcome: string}>+ type Submit__interface = {+ tag: AppShareSheetAction_Tags.Submit};/**- * A Space was shared, unshared or its role changed (`cua_share`).+ * Share was pressed.*/- class Share_ extends UniffiEnum implements Share__interface {+ class Submit_ extends UniffiEnum implements Submit__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.Share;- readonly inner:-Readonly<{action: string; role: string; outcome: string}>;- constructor(-inner: {action: string; role: string; outcome: string }) {- super("AppTelemetrySignal", "Share");-- this.inner = Object.freeze(inner);+ readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";+ readonly tag = AppShareSheetAction_Tags.Submit;+ constructor() {+ super("AppShareSheetAction", "Submit");}- static new(-inner: {action: string; role: string; outcome: string }): Share_ {- return new Share_(inner);++ static new(): Submit_ {+ return new Submit_();}- static instanceOf(obj: any): obj is Share_ {- return obj.tag === AppTelemetrySignal_Tags.Share;+ static instanceOf(obj: any): obj is Submit_ {+ return obj.tag === AppShareSheetAction_Tags.Submit;}}- type AppUpdate__interface = {- tag: AppTelemetrySignal_Tags.AppUpdate;+ type ChangeRole__interface = {+ tag: AppShareSheetAction_Tags.ChangeRole;inner:-Readonly<{action: string; channel: string; trigger: string}>+Readonly<{who: string; role: string}>};/**- * An updater step (`cua_app_update`).+ * A person's role menu changed.*/- class AppUpdate_ extends UniffiEnum implements AppUpdate__interface {+ class ChangeRole_ extends UniffiEnum implements ChangeRole__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.AppUpdate;+ readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";+ readonly tag = AppShareSheetAction_Tags.ChangeRole;readonly inner:-Readonly<{action: string; channel: string; trigger: string}>;+Readonly<{who: string; role: string}>;constructor(-inner: {action: string; channel: string; trigger: string }) {- super("AppTelemetrySignal", "AppUpdate");+inner: {who: string; role: string }) {+ super("AppShareSheetAction", "ChangeRole");this.inner = Object.freeze(inner);}static new(-inner: {action: string; channel: string; trigger: string }): AppUpdate_ {- return new AppUpdate_(inner);+inner: {who: string; role: string }): ChangeRole_ {+ return new ChangeRole_(inner);}- static instanceOf(obj: any): obj is AppUpdate_ {- return obj.tag === AppTelemetrySignal_Tags.AppUpdate;+ static instanceOf(obj: any): obj is ChangeRole_ {+ return obj.tag === AppShareSheetAction_Tags.ChangeRole;}}- type DeviceEnroll__interface = {- tag: AppTelemetrySignal_Tags.DeviceEnroll;+ type Remove__interface = {+ tag: AppShareSheetAction_Tags.Remove;inner:-Readonly<{method: string; outcome: string}>+Readonly<{who: string}>};/**- * This device enrolled with the relay, or failed to- * (`cua_device_enroll`).+ * A person's Remove was pressed.*/- class DeviceEnroll_ extends UniffiEnum implements DeviceEnroll__interface {+ class Remove_ extends UniffiEnum implements Remove__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.DeviceEnroll;+ readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";+ readonly tag = AppShareSheetAction_Tags.Remove;readonly inner:-Readonly<{method: string; outcome: string}>;+Readonly<{who: string}>;constructor(-inner: {method: string; outcome: string }) {- super("AppTelemetrySignal", "DeviceEnroll");+inner: {who: string }) {+ super("AppShareSheetAction", "Remove");this.inner = Object.freeze(inner);}static new(-inner: {method: string; outcome: string }): DeviceEnroll_ {- return new DeviceEnroll_(inner);+inner: {who: string }): Remove_ {+ return new Remove_(inner);}- static instanceOf(obj: any): obj is DeviceEnroll_ {- return obj.tag === AppTelemetrySignal_Tags.DeviceEnroll;+ static instanceOf(obj: any): obj is Remove_ {+ return obj.tag === AppShareSheetAction_Tags.Remove;}}- type Experiment__interface = {- tag: AppTelemetrySignal_Tags.Experiment;- inner:-Readonly<{action: string; experiment: string}>+ type Done__interface = {+ tag: AppShareSheetAction_Tags.Done};/**- * An experiment was turned on or off in Settings, Experiments- * (`cua_experiment`).+ * The command finished.*/- class Experiment_ extends UniffiEnum implements Experiment__interface {+ class Done_ extends UniffiEnum implements Done__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.Experiment;- readonly inner:-Readonly<{action: string; experiment: string}>;- constructor(-inner: {action: string; experiment: string }) {- super("AppTelemetrySignal", "Experiment");-- this.inner = Object.freeze(inner);+ readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";+ readonly tag = AppShareSheetAction_Tags.Done;+ constructor() {+ super("AppShareSheetAction", "Done");}- static new(-inner: {action: string; experiment: string }): Experiment_ {- return new Experiment_(inner);++ static new(): Done_ {+ return new Done_();}- static instanceOf(obj: any): obj is Experiment_ {- return obj.tag === AppTelemetrySignal_Tags.Experiment;+ static instanceOf(obj: any): obj is Done_ {+ return obj.tag === AppShareSheetAction_Tags.Done;}}- type ExperimentsOn__interface = {- tag: AppTelemetrySignal_Tags.ExperimentsOn;+ type Failed__interface = {+ tag: AppShareSheetAction_Tags.Failed;inner:-Readonly<{experiments: Array<string>}>+Readonly<{error: string}>};/**- * Which experiments are on now (no event of its own: the daily- * `cua_app_active` carries them as `experiments_on`).+ * The command failed (or presence was declined).*/- class ExperimentsOn_ extends UniffiEnum implements ExperimentsOn__interface {+ class Failed_ extends UniffiEnum implements Failed__interface {/*** @private* This field is private and should not be used, use `tag` instead.*/- readonly [uniffiTypeNameSymbol] = "AppTelemetrySignal";- readonly tag = AppTelemetrySignal_Tags.ExperimentsOn;+ readonly [uniffiTypeNameSymbol] = "AppShareSheetAction";+ readonly tag = AppShareSheetAction_Tags.Failed;readonly inner:-Readonly<{experiments: Array<string>}>;+Readonly<{error: string}>;constructor(-inner: {experiments: Array<string> }) {- super("AppTelemetrySignal", "ExperimentsOn");+inner: {error: string }) {+ super("AppShareSheetAction", "Failed");this.inner = Object.freeze(inner);}static new(-inner: {experiments: Array<string> }): ExperimentsOn_ {- return new ExperimentsOn_(inner);+inner: {error: string }): Failed_ {+ return new Failed_(inner);}- static instanceOf(obj: any): obj is ExperimentsOn_ {- return obj.tag === AppTelemetrySignal_Tags.ExperimentsOn;+ static instanceOf(obj: any): obj is Failed_ {+ return obj.tag === AppShareSheetAction_Tags.Failed;}}- function instanceOf(obj: any): obj is AppTelemetrySignal {- return obj[uniffiTypeNameSymbol] === "AppTelemetrySignal";+ function instanceOf(obj: any): obj is AppShareSheetAction {+ return obj[uniffiTypeNameSymbol] === "AppShareSheetAction";}return Object.freeze({instanceOf,- Feature: Feature_,- Step: Step_,- Launched: Launched_,- SignInFailed: SignInFailed_,- OnboardingPage: OnboardingPage_,- SpaceWizard: SpaceWizard_,- SpaceCreate: SpaceCreate_,- SpaceCreateStarted: SpaceCreateStarted_,- VolumeSetup: VolumeSetup_,- Share: Share_,- AppUpdate: AppUpdate_,- DeviceEnroll: DeviceEnroll_,- Experiment: Experiment_,- ExperimentsOn: ExperimentsOn_+ SetWho: SetWho_,+ SetRole: SetRole_,+ Submit: Submit_,+ ChangeRole: ChangeRole_,+ Remove: Remove_,+ Done: Done_,+ Failed: Failed_});})();-export type AppTelemetrySignal = InstanceType<- typeof AppTelemetrySignal['Feature' | 'Step' | 'Launched' | 'SignInFailed' | 'OnboardingPage' | 'SpaceWizard' | 'SpaceCreate' | 'SpaceCreateStarted' | 'VolumeSetup' | 'Share' | 'AppUpdate' | 'DeviceEnroll' | 'Experiment' | 'ExperimentsOn']+export type AppShareSheetAction = InstanceType<+ typeof AppShareSheetAction['SetWho' | 'SetRole' | 'Submit' | 'ChangeRole' | 'Remove' | 'Done' | 'Failed']>;-// FfiConverter for enum AppTelemetrySignal-const FfiConverterTypeAppTelemetrySignal = (() => {+// FfiConverter for enum AppShareSheetAction+const FfiConverterTypeAppShareSheetAction = (() => {const ordinalConverter = FfiConverterInt32;- type TypeName = AppTelemetrySignal;+ type TypeName = AppShareSheetAction;class FFIConverter extends AbstractFfiConverterByteArray<TypeName> {read(from: RustBuffer): TypeName {switch (ordinalConverter.read(from)) {- case 1: return new AppTelemetrySignal.Feature({feature: FfiConverterString.read(from) });- case 2: return new AppTelemetrySignal.Step({step: FfiConverterString.read(from), ok: FfiConverterBool.read(from) });- case 3: return new AppTelemetrySignal.Launched({onboardingEligible: FfiConverterOptionalBoolean.read(from) });- case 4: return new AppTelemetrySignal.SignInFailed({errorKind: FfiConverterString.read(from) });- case 5: return new AppTelemetrySignal.OnboardingPage({page: FfiConverterString.read(from), action: FfiConverterString.read(from), choice: FfiConverterString.read(from) });- case 6: return new AppTelemetrySignal.SpaceWizard({action: FfiConverterString.read(from) });- case 7: return new AppTelemetrySignal.SpaceCreate({location: FfiConverterString.read(from), guestOs: FfiConverterString.read(from), kind: FfiConverterString.read(from), outcome: FfiConverterString.read(from), failedPhase: FfiConverterString.read(from), stalled: FfiConverterBool.read(from), elapsedMs: FfiConverterUInt64.read(from), gpu: FfiConverterBool.read(from), errorVariant: FfiConverterString.read(from) });- case 8: return new AppTelemetrySignal.SpaceCreateStarted({location: FfiConverterString.read(from), guestOs: FfiConverterString.read(from), kind: FfiConverterString.read(from), gpu: FfiConverterBool.read(from) });- case 9: return new AppTelemetrySignal.VolumeSetup({surface: FfiConverterString.read(from), storage: FfiConverterString.read(from), addToFinder: FfiConverterBool.read(from), mountMethod: FfiConverterString.read(from), outcome: FfiConverterString.read(from) });- case 10: return new AppTelemetrySignal.Share({action: FfiConverterString.read(from), role: FfiConverterString.read(from), outcome: FfiConverterString.read(from) });- case 11: return new AppTelemetrySignal.AppUpdate({action: FfiConverterString.read(from), channel: FfiConverterString.read(from), trigger: FfiConverterString.read(from) });- case 12: return new AppTelemetrySignal.DeviceEnroll({method: FfiConverterString.read(from), outcome: FfiConverterString.read(from) });- case 13: return new AppTelemetrySignal.Experiment({action: FfiConverterString.read(from), experiment: FfiConverterString.read(from) });- case 14: return new AppTelemetrySignal.ExperimentsOn({experiments: FfiConverterSequenceString.read(from) });+ case 1: return new AppShareSheetAction.SetWho({who: FfiConverterString.read(from) });+ case 2: return new AppShareSheetAction.SetRole({role: FfiConverterString.read(from) });+ case 3: return new AppShareSheetAction.Submit();+ case 4: return new AppShareSheetAction.ChangeRole({who: FfiConverterString.read(from), role: FfiConverterString.read(from) });+ case 5: return new AppShareSheetAction.Remove({who: FfiConverterString.read(from) });+ case 6: return new AppShareSheetAction.Done();+ case 7: return new AppShareSheetAction.Failed({error: FfiConverterString.read(from) });default: throw new UniffiInternalError.UnexpectedEnumCase();}}write(value: TypeName, into: RustBuffer): void {switch (value.tag) {- case AppTelemetrySignal_Tags.Feature: {+ case AppShareSheetAction_Tags.SetWho: {ordinalConverter.write(1, into);const inner = value.inner;- FfiConverterString.write(inner.feature, into);+ FfiConverterString.write(inner.who, into);return;}- case AppTelemetrySignal_Tags.Step: {+ case AppShareSheetAction_Tags.SetRole: {ordinalConverter.write(2, into);const inner = value.inner;- FfiConverterString.write(inner.step, into);- FfiConverterBool.write(inner.ok, into);+ FfiConverterString.write(inner.role, into);return;}- case AppTelemetrySignal_Tags.Launched: {+ case AppShareSheetAction_Tags.Submit: {ordinalConverter.write(3, into);- const inner = value.inner;- FfiConverterOptionalBoolean.write(inner.onboardingEligible, into);return;}- case AppTelemetrySignal_Tags.SignInFailed: {+ case AppShareSheetAction_Tags.ChangeRole: {ordinalConverter.write(4, into);const inner = value.inner;- FfiConverterString.write(inner.errorKind, into);+ FfiConverterString.write(inner.who, into);+ FfiConverterString.write(inner.role, into);return;}- case AppTelemetrySignal_Tags.OnboardingPage: {+ case AppShareSheetAction_Tags.Remove: {ordinalConverter.write(5, into);const inner = value.inner;- FfiConverterString.write(inner.page, into);- FfiConverterString.write(inner.action, into);- FfiConverterString.write(inner.choice, into);+ FfiConverterString.write(inner.who, into);return;}- case AppTelemetrySignal_Tags.SpaceWizard: {+ case AppShareSheetAction_Tags.Done: {ordinalConverter.write(6, into);- const inner = value.inner;- FfiConverterString.write(inner.action, into);return;}- case AppTelemetrySignal_Tags.SpaceCreate: {+ case AppShareSheetAction_Tags.Failed: {ordinalConverter.write(7, into);const inner = value.inner;- FfiConverterString.write(inner.location, into);- FfiConverterString.write(inner.guestOs, into);- FfiConverterString.write(inner.kind, into);- FfiConverterString.write(inner.outcome, into);- FfiConverterString.write(inner.failedPhase, into);- FfiConverterBool.write(inner.stalled, into);- FfiConverterUInt64.write(inner.elapsedMs, into);- FfiConverterBool.write(inner.gpu, into);- FfiConverterString.write(inner.errorVariant, into);- return;- }- case AppTelemetrySignal_Tags.SpaceCreateStarted: {- ordinalConverter.write(8, into);- const inner = value.inner;- FfiConverterString.write(inner.location, into);- FfiConverterString.write(inner.guestOs, into);- FfiConverterString.write(inner.kind, into);- FfiConverterBool.write(inner.gpu, into);- return;- }- case AppTelemetrySignal_Tags.VolumeSetup: {- ordinalConverter.write(9, into);- const inner = value.inner;- FfiConverterString.write(inner.surface, into);- FfiConverterString.write(inner.storage, into);- FfiConverterBool.write(inner.addToFinder, into);- FfiConverterString.write(inner.mountMethod, into);- FfiConverterString.write(inner.outcome, into);- return;- }- case AppTelemetrySignal_Tags.Share: {- ordinalConverter.write(10, into);- const inner = value.inner;- FfiConverterString.write(inner.action, into);- FfiConverterString.write(inner.role, into);- FfiConverterString.write(inner.outcome, into);- return;- }- case AppTelemetrySignal_Tags.AppUpdate: {- ordinalConverter.write(11, into);- const inner = value.inner;- FfiConverterString.write(inner.action, into);- FfiConverterString.write(inner.channel, into);- FfiConverterString.write(inner.trigger, into);- return;- }- case AppTelemetrySignal_Tags.DeviceEnroll: {- ordinalConverter.write(12, into);- const inner = value.inner;- FfiConverterString.write(inner.method, into);- FfiConverterString.write(inner.outcome, into);- return;- }- case AppTelemetrySignal_Tags.Experiment: {- ordinalConverter.write(13, into);- const inner = value.inner;- FfiConverterString.write(inner.action, into);- FfiConverterString.write(inner.experiment, into);- return;- }- case AppTelemetrySignal_Tags.ExperimentsOn: {- ordinalConverter.write(14, into);- const inner = value.inner;- FfiConverterSequenceString.write(inner.experiments, into);+ FfiConverterString.write(inner.error, into);return;}default:- // Throwing from here means that AppTelemetrySignal_Tags hasn't matched an ordinal.+ // Throwing from here means that AppShareSheetAction_Tags hasn't matched an ordinal.throw new UniffiInternalError.UnexpectedEnumCase();}}allocationSize(value: TypeName): number {switch (value.tag) {- case AppTelemetrySignal_Tags.Feature: {+ case AppShareSheetAction_Tags.SetWho: {const inner = value.inner;let size = ordinalConverter.allocationSize(1);- size += FfiConverterString.allocationSize(inner.feature);+ size += FfiConverterString.allocationSize(inner.who);return size;}- case AppTelemetrySignal_Tags.Step: {+ case AppShareSheetAction_Tags.SetRole: {const inner = value.inner;let size = ordinalConverter.allocationSize(2);- size += FfiConverterString.allocationSize(inner.step);- size += FfiConverterBool.allocationSize(inner.ok);+ size += FfiConverterString.allocationSize(inner.role);return size;}- case AppTelemetrySignal_Tags.Launched: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(3);- size += FfiConverterOptionalBoolean.allocationSize(inner.onboardingEligible);- return size;+ case AppShareSheetAction_Tags.Submit: {+ return ordinalConverter.allocationSize(3);}- case AppTelemetrySignal_Tags.SignInFailed: {+ case AppShareSheetAction_Tags.ChangeRole: {const inner = value.inner;let size = ordinalConverter.allocationSize(4);- size += FfiConverterString.allocationSize(inner.errorKind);+ size += FfiConverterString.allocationSize(inner.who);+ size += FfiConverterString.allocationSize(inner.role);return size;}- case AppTelemetrySignal_Tags.OnboardingPage: {+ case AppShareSheetAction_Tags.Remove: {const inner = value.inner;let size = ordinalConverter.allocationSize(5);- size += FfiConverterString.allocationSize(inner.page);- size += FfiConverterString.allocationSize(inner.action);- size += FfiConverterString.allocationSize(inner.choice);+ size += FfiConverterString.allocationSize(inner.who);return size;}- case AppTelemetrySignal_Tags.SpaceWizard: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(6);- size += FfiConverterString.allocationSize(inner.action);- return size;+ case AppShareSheetAction_Tags.Done: {+ return ordinalConverter.allocationSize(6);}- case AppTelemetrySignal_Tags.SpaceCreate: {+ case AppShareSheetAction_Tags.Failed: {const inner = value.inner;let size = ordinalConverter.allocationSize(7);- size += FfiConverterString.allocationSize(inner.location);- size += FfiConverterString.allocationSize(inner.guestOs);- size += FfiConverterString.allocationSize(inner.kind);- size += FfiConverterString.allocationSize(inner.outcome);- size += FfiConverterString.allocationSize(inner.failedPhase);- size += FfiConverterBool.allocationSize(inner.stalled);- size += FfiConverterUInt64.allocationSize(inner.elapsedMs);- size += FfiConverterBool.allocationSize(inner.gpu);- size += FfiConverterString.allocationSize(inner.errorVariant);- return size;- }- case AppTelemetrySignal_Tags.SpaceCreateStarted: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(8);- size += FfiConverterString.allocationSize(inner.location);- size += FfiConverterString.allocationSize(inner.guestOs);- size += FfiConverterString.allocationSize(inner.kind);- size += FfiConverterBool.allocationSize(inner.gpu);- return size;- }- case AppTelemetrySignal_Tags.VolumeSetup: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(9);- size += FfiConverterString.allocationSize(inner.surface);- size += FfiConverterString.allocationSize(inner.storage);- size += FfiConverterBool.allocationSize(inner.addToFinder);- size += FfiConverterString.allocationSize(inner.mountMethod);- size += FfiConverterString.allocationSize(inner.outcome);- return size;- }- case AppTelemetrySignal_Tags.Share: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(10);- size += FfiConverterString.allocationSize(inner.action);- size += FfiConverterString.allocationSize(inner.role);- size += FfiConverterString.allocationSize(inner.outcome);- return size;- }- case AppTelemetrySignal_Tags.AppUpdate: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(11);- size += FfiConverterString.allocationSize(inner.action);- size += FfiConverterString.allocationSize(inner.channel);- size += FfiConverterString.allocationSize(inner.trigger);- return size;- }- case AppTelemetrySignal_Tags.DeviceEnroll: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(12);- size += FfiConverterString.allocationSize(inner.method);- size += FfiConverterString.allocationSize(inner.outcome);- return size;- }- case AppTelemetrySignal_Tags.Experiment: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(13);- size += FfiConverterString.allocationSize(inner.action);- size += FfiConverterString.allocationSize(inner.experiment);- return size;- }- case AppTelemetrySignal_Tags.ExperimentsOn: {- const inner = value.inner;- let size = ordinalConverter.allocationSize(14);- size += FfiConverterSequenceString.allocationSize(inner.experiments);+ size += FfiConverterString.allocationSize(inner.error);return size;}default: throw new UniffiInternalError.UnexpectedEnumCase();@@ -56385,6 +57509,15 @@ const FfiConverterSequenceTypeAppSensitiveGroup = new FfiConverterArray(FfiConve// FfiConverter for bigint | undefinedconst FfiConverterOptionalInt64 = new FfiConverterOptional(FfiConverterInt64);+// FfiConverter for Array<AppChecklistStep>+const FfiConverterSequenceTypeAppChecklistStep = new FfiConverterArray(FfiConverterTypeAppChecklistStep);++// FfiConverter for Array<AppTelemetrySignal>+const FfiConverterSequenceTypeAppTelemetrySignal = new FfiConverterArray(FfiConverterTypeAppTelemetrySignal);++// FfiConverter for Array<AppChecklistRow>+const FfiConverterSequenceTypeAppChecklistRow = new FfiConverterArray(FfiConverterTypeAppChecklistRow);+// FfiConverter for AppExperiments | undefinedconst FfiConverterOptionalTypeAppExperiments = new FfiConverterOptional(FfiConverterTypeAppExperiments);@@ -56748,6 +57881,12 @@ const FfiConverterOptionalTypeAppNotchPreview = new FfiConverterOptional(FfiConv// FfiConverter for AppMenuPreview | undefinedconst FfiConverterOptionalTypeAppMenuPreview = new FfiConverterOptional(FfiConverterTypeAppMenuPreview);+// FfiConverter for AppRelayUsageTeam | undefined+const FfiConverterOptionalTypeAppRelayUsageTeam = new FfiConverterOptional(FfiConverterTypeAppRelayUsageTeam);++// FfiConverter for AppRelayAllowanceNotice | undefined+const FfiConverterOptionalTypeAppRelayAllowanceNotice = new FfiConverterOptional(FfiConverterTypeAppRelayAllowanceNotice);+// FfiConverter for Array<AppRemoteWindow>const FfiConverterSequenceTypeAppRemoteWindow = new FfiConverterArray(FfiConverterTypeAppRemoteWindow);@@ -57024,6 +58163,9 @@ const FfiConverterOptionalTypeAppHostState = new FfiConverterOptional(FfiConvert// FfiConverter for AppHostSettingChange | undefinedconst FfiConverterOptionalTypeAppHostSettingChange = new FfiConverterOptional(FfiConverterTypeAppHostSettingChange);+// FfiConverter for Array<AppKeybinding>+const FfiConverterSequenceTypeAppKeybinding = new FfiConverterArray(FfiConverterTypeAppKeybinding);+// FfiConverter for Array<AppMenuItem>const FfiConverterSequenceTypeAppMenuItem = new FfiConverterArray(FfiConverterTypeAppMenuItem);@@ -57033,6 +58175,12 @@ const FfiConverterSequenceTypeAppNotchRadii = new FfiConverterArray(FfiConverter// FfiConverter for Array<AppNotificationInput>const FfiConverterSequenceTypeAppNotificationInput = new FfiConverterArray(FfiConverterTypeAppNotificationInput);+// FfiConverter for Array<AppPaletteEntry>+const FfiConverterSequenceTypeAppPaletteEntry = new FfiConverterArray(FfiConverterTypeAppPaletteEntry);++// FfiConverter for Array<number>+const FfiConverterSequenceUInt32 = new FfiConverterArray(FfiConverterUInt32);+// FfiConverter for Array<AppOpenWindow>const FfiConverterSequenceTypeAppOpenWindow = new FfiConverterArray(FfiConverterTypeAppOpenWindow);@@ -57048,6 +58196,12 @@ const FfiConverterSequenceTypeAppEntrySection = new FfiConverterArray(FfiConvert// FfiConverter for Array<AppSensitiveOption>const FfiConverterSequenceTypeAppSensitiveOption = new FfiConverterArray(FfiConverterTypeAppSensitiveOption);+// FfiConverter for AppRelayUsage | undefined+const FfiConverterOptionalTypeAppRelayUsage = new FfiConverterOptional(FfiConverterTypeAppRelayUsage);++// FfiConverter for AppRelayUsageView | undefined+const FfiConverterOptionalTypeAppRelayUsageView = new FfiConverterOptional(FfiConverterTypeAppRelayUsageView);+// FfiConverter for Array<AppSpaceRow>const FfiConverterSequenceTypeAppSpaceRow = new FfiConverterArray(FfiConverterTypeAppSpaceRow);@@ -57057,9 +58211,6 @@ const FfiConverterOptionalTypeAppSpaceUsage = new FfiConverterOptional(FfiConver// FfiConverter for AppStorageAction | undefinedconst FfiConverterOptionalTypeAppStorageAction = new FfiConverterOptional(FfiConverterTypeAppStorageAction);-// FfiConverter for Array<AppTelemetrySignal>-const FfiConverterSequenceTypeAppTelemetrySignal = new FfiConverterArray(FfiConverterTypeAppTelemetrySignal);-// FfiConverter for Array<TeleportRunEvent>const FfiConverterSequenceTypeTeleportRunEvent = new FfiConverterArray(FfiConverterTypeTeleportRunEvent);@@ -57202,6 +58353,12 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_catalog_entry() !== 56759) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_catalog_entry");}+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_checklist_reduce() !== 46431) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_checklist_reduce");+ }+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_checklist_view() !== 58453) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_checklist_view");+ }if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_chrome_input_from_json() !== 46275) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_chrome_input_from_json");}@@ -57427,6 +58584,9 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_is_cloud_word() !== 38584) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_is_cloud_word");}+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_keybindings() !== 16108) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_keybindings");+ }if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_launch_input_from_json() !== 52356) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_launch_input_from_json");}@@ -57520,6 +58680,9 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_os_icon_system_symbol() !== 36995) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_os_icon_system_symbol");}+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_palette_rank() !== 5421) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_palette_rank");+ }if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_picker_app_grid() !== 16625) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_picker_app_grid");}@@ -57592,6 +58755,12 @@ function uniffiEnsureInitialized() {if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_refresh_report_from_json() !== 63623) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_refresh_report_from_json");}+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_relay_usage() !== 28377) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_relay_usage");+ }+ if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_relay_usage_view() !== 38605) {+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_relay_usage_view");+ }if (nativeModule().uniffi_cua_spaces_ffi_checksum_func_app_review_remember() !== 9631) {throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cua_spaces_ffi_checksum_func_app_review_remember");}@@ -58116,6 +59285,12 @@ export default Object.freeze({FfiConverterTypeAppBillingCredit,FfiConverterTypeAppBillingStatus,FfiConverterTypeAppCatalogEntry,+ FfiConverterTypeAppChecklistAction,+ FfiConverterTypeAppChecklistRow,+ FfiConverterTypeAppChecklistState,+ FfiConverterTypeAppChecklistStep,+ FfiConverterTypeAppChecklistTransition,+ FfiConverterTypeAppChecklistView,FfiConverterTypeAppChromeInput,FfiConverterTypeAppCliInstallPlan,FfiConverterTypeAppCliInstallRequest,@@ -58243,6 +59418,7 @@ export default Object.freeze({FfiConverterTypeAppInstallCuaPrompt,FfiConverterTypeAppInstallMethod,FfiConverterTypeAppKeyCombo,+ FfiConverterTypeAppKeybinding,FfiConverterTypeAppKindOption,FfiConverterTypeAppLaunchInput,FfiConverterTypeAppLaunchPlan,@@ -58300,6 +59476,7 @@ export default Object.freeze({FfiConverterTypeAppOpenApp,FfiConverterTypeAppOpenFileInput,FfiConverterTypeAppOpenWindow,+ FfiConverterTypeAppPaletteEntry,FfiConverterTypeAppPendingCreate,FfiConverterTypeAppPendingDelete,FfiConverterTypeAppPendingPower,@@ -58333,6 +59510,10 @@ export default Object.freeze({FfiConverterTypeAppPreviewSegment,FfiConverterTypeAppPreviewWindow,FfiConverterTypeAppRefreshReport,+ FfiConverterTypeAppRelayAllowanceNotice,+ FfiConverterTypeAppRelayUsage,+ FfiConverterTypeAppRelayUsageTeam,+ FfiConverterTypeAppRelayUsageView,FfiConverterTypeAppRememberedChoice,FfiConverterTypeAppRemoteWindow,FfiConverterTypeAppRemoteWindowGroup,diff --git a/apps/cua-spaces-desktop/test/relay-usage.test.ts b/apps/cua-spaces-desktop/test/relay-usage.test.tsindex b7ffaebac0..9576e038ee 100644--- a/apps/cua-spaces-desktop/test/relay-usage.test.ts+++ b/apps/cua-spaces-desktop/test/relay-usage.test.ts@@ -1,68 +1,59 @@// SPDX-License-Identifier: FSL-1.1-MIT// Copyright (c) 2026 Cua AI, Inc.-// `relay.usage`: the relay's `GET /v1/usage` with the account's token, as the-// page's camelCase shape, checked against the web contract.+// `relay.usage`: the Spaces app export's `appRelayUsage` on the session's+// devices with the account's token, as the page's shape, checked against+// the web contract.import { describe, expect, it, vi } from "vitest";import { OP_SHAPES, SHAPE_DEFS } from "../../cua-spaces-web/src/bridge/contracts/shapes";import { validate } from "../../cua-spaces-web/src/bridge/contracts/schema";import type { BridgeContext } from "../src/bridge/context";-import { relayUrl, relayUsageMethods } from "../src/bridge/relay-usage";+import { relayUsageMethods } from "../src/bridge/relay-usage";-const RELAY = {+/** As the generated bindings give the record: optionals are `undefined`. */+const NATIVE = {metered: true, period: "2026-10", plan: "free", team: { id: "acme", seats: 2 },- live_sessions: 1, live_sessions_limit: 2, hours_used: 20.4, hours_limit: 20, my_hours_used: 3.4,- soft_limit_reached: true, reasons: ["hours"], upgrade_url: "https://cua.ai/pricing",+ liveSessions: 1, liveSessionsLimit: 2, hoursUsed: 20.4, hoursLimit: 20, myHoursUsed: 3.4,+ softLimitReached: true, reasons: ["hours"], upgradeUrl: "https://cua.ai/pricing",};-function context(o: { signedIn?: boolean; relay?: string; env?: NodeJS.ProcessEnv } = {}) {+function context(o: { signedIn?: boolean; devices?: boolean; usage?: unknown } = {}) {const accessToken = vi.fn(async () => (o.signedIn === false ? null : "acct-token"));+ const session = { relayUrl: () => "https://relay.example" };+ const appRelayUsage = vi.fn(async () => ("usage" in o ? o.usage : NATIVE));const ctx = {model: {servicesIn: true,identity: o.signedIn === false ? null : "[email protected]",account: { accessToken },- devices: { devices: () => (o.relay ? { relayUrl: () => o.relay } : null) },+ devices: { devices: () => (o.devices === false ? null : session) },+ native: { appRelayUsage },},- env: o.env ?? {},} as unknown as BridgeContext;- return { ctx, accessToken };+ return { ctx, appRelayUsage, session };}-const answer = (status: number, body: unknown = null) =>- vi.fn(async () => new Response(body === null ? null : JSON.stringify(body), { status })) as unknown as typeof fetch & ReturnType<typeof vi.fn>;+const read = (ctx: BridgeContext) => relayUsageMethods(ctx)["relay.usage"]!({}, {});describe("relay.usage", () => {- it("reads the allowance from the session's relay with the account's token", async () => {- const { ctx } = context({ relay: "https://relay.example/" });- const fetch = answer(200, RELAY);- const usage = await relayUsageMethods(ctx, fetch)["relay.usage"]!({}, {});- expect(fetch).toHaveBeenCalledWith("https://relay.example/v1/usage", expect.objectContaining({ headers: { authorization: "Bearer acct-token" } }));- expect(usage).toEqual({- metered: true, period: "2026-10", plan: "free", team: { id: "acme", seats: 2 },- liveSessions: 1, liveSessionsLimit: 2, hoursUsed: 20.4, hoursLimit: 20, myHoursUsed: 3.4,- softLimitReached: true, reasons: ["hours"], upgradeUrl: "https://cua.ai/pricing",- });+ it("reads the allowance through the app export with the session's devices and the account's token", async () => {+ const { ctx, appRelayUsage, session } = context();+ const usage = await read(ctx);+ expect(appRelayUsage).toHaveBeenCalledWith(session, "acct-token");+ expect(usage).toEqual(NATIVE);expect(validate(OP_SHAPES["relay.usage"], usage, SHAPE_DEFS)).toEqual([]);- // An older relay's answer with fields missing takes the defaults.- const bare = await relayUsageMethods(ctx, answer(200, { metered: true }))["relay.usage"]!({}, {});+ // No team, no limits: the record's missing optionals reach the page as null.+ const bare = await read(context({ usage: { ...NATIVE, team: undefined, liveSessionsLimit: undefined, hoursLimit: undefined, upgradeUrl: undefined } }).ctx);+ expect(bare).toMatchObject({ team: null, liveSessionsLimit: null, hoursLimit: null, upgradeUrl: null });expect(validate(OP_SHAPES["relay.usage"], bare, SHAPE_DEFS)).toEqual([]);});- it("is null signed out and from a relay that meters nothing; fails on other errors", async () => {+ it("is null signed out, without devices, and from a relay that meters nothing", async () => {const out = context({ signedIn: false });- const fetch = answer(200, RELAY);- expect(await relayUsageMethods(out.ctx, fetch)["relay.usage"]!({}, {})).toBeNull();- expect(fetch).not.toHaveBeenCalled();- const { ctx } = context();- expect(await relayUsageMethods(ctx, answer(404))["relay.usage"]!({}, {})).toBeNull();- await expect(relayUsageMethods(ctx, answer(500))["relay.usage"]!({}, {})).rejects.toMatchObject({ code: "failed" });- });-- it("resolves the relay as the CLI does, and sends the token over https only (or to this machine)", () => {- expect(relayUrl(context().ctx)).toBe("https://relay.cua.ai");- expect(relayUrl(context({ env: { CUA_RELAY_URL: " https://r.example/ " } }).ctx)).toBe("https://r.example");- expect(relayUrl(context({ relay: "http://127.0.0.1:8080", env: { CUA_RELAY_URL: "https://r.example" } }).ctx)).toBe("http://127.0.0.1:8080");- expect(relayUrl(context({ env: { CUA_RELAY_URL: "http://relay.example" } }).ctx)).toBeNull();+ expect(await read(out.ctx)).toBeNull();+ expect(out.appRelayUsage).not.toHaveBeenCalled();+ expect(await read(context({ devices: false }).ctx)).toBeNull();+ expect(await read(context({ usage: undefined }).ctx)).toBeNull();+ expect(await read(context({ usage: { ...NATIVE, metered: false } }).ctx)).toBeNull();});});diff --git a/apps/cua-spaces-macos/README.md b/apps/cua-spaces-macos/README.mdindex 36a74794c7..dcfa25d881 100644--- a/apps/cua-spaces-macos/README.md+++ b/apps/cua-spaces-macos/README.md@@ -58,7 +58,7 @@ UI tests (XCUITest) need Xcode: `xcodegen generate` (project.yml), then`xcodebuild test -scheme CuaSpacesMacUITests`.Environment (debug builds only; release builds ignore every `CUA_SPACES_*` hook):-`CUA_SPACES_FIXTURES=1` runs on fixtures (no daemon, no Space, an in-memory login item whose status `CUA_SPACES_LOGIN_ITEM` sets: `enabled`, `notRegistered`, `requiresApproval`, `notFound`);+`CUA_SPACES_FIXTURES=1` runs on fixtures (no daemon, no Space, an in-memory login item whose status `CUA_SPACES_LOGIN_ITEM` sets: `enabled`, `notRegistered`, `requiresApproval`, `notFound`; a relay allowance `CUA_SPACES_RELAY_USAGE` sets: `reached`, `team`, `none`, default the free plan within it);`CUA_SPACES_START_VIEW` opens `new-space`, `keyvault`, `approval`, `settings-devices`, `settings-about`, `device-approval` (with `CUA_SPACES_APPROVE_CODE`), `device-enroll`, `device-enroll-code`,`onboarding`, `stream` (the Space detail at its Stream section), `window-pip` (the same, with the first window popped out), `teleport-picker` (the Space's teleport picker; set `CUA_TELEPORT_APP_ROOTS` to fixture apps for images), `run-timeline` (an agent run's conversation from the Space's Agents section; fixtures give `local:aurora` two runs) or a notch state (`notch-open`, which springsopen 1.5 s after launch, `notch-hover`, `notch-permission`,diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppEnvironment.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppEnvironment.swiftindex 692b2d6bc1..73fe578021 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppEnvironment.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppEnvironment.swift@@ -111,7 +111,7 @@ public enum AppEnvironment {}// This Mac on the relay: the session's device key (fixtures: an// in-memory account; presence answers yes there).- let devices: DevicesRunning = fixtures ? FixtureDevices() : PendingDevices(gate: gate)+ let devices: DevicesRunning = fixtures ? fixtureDevices(env["CUA_SPACES_RELAY_USAGE"]) : PendingDevices(gate: gate)let startup = fixtures ? fixtureStartup(env["CUA_SPACES_STARTUP"]) : StartupModel(phase: .starting)let model = AppModel(backend: backend, keyvault: keyvault, onboarding: onboarding,settingsPath: settingsPath,@@ -343,6 +343,15 @@ public enum AppEnvironment {}}+ /// Fixtures' relay account: `CUA_SPACES_RELAY_USAGE` sets its allowance+ /// (`reached`, `team`, `none`; default the free plan partway through+ /// the month), for captures of Settings' Relay usage row and the notice.+ static func fixtureDevices(_ usage: String?) -> FixtureDevices {+ let devices = FixtureDevices()+ devices.usage = FixtureDevices.usage(usage)+ return devices+ }+/// The supervision of this app's daemon ([`DaemonSupervisor`]), for the/// app's lifetime.static var daemonSupervision: Task<Void, Never>?diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppStartup.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppStartup.swiftindex a7a2f6f7e7..f529e7034b 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppStartup.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/AppStartup.swift@@ -743,6 +743,7 @@ public final class PendingDevices: DevicesRunning, @unchecked Sendable {}public func pairingCodes() async throws -> [PairingCode] { try await d().pairingCodes() }public func revokePairingCode(id: String) async throws { try await d().revokePairingCode(id: id) }+ public func relayUsage() async throws -> AppRelayUsage? { try await d().relayUsage() }}/// This machine's host service until the SDK is in.diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swiftindex e619a9c69b..201c985792 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Models/DevicesModel.swift@@ -28,19 +28,28 @@ public protocol DevicesRunning: AnyObject, Sendable {func pairingCodes() async throws -> [PairingCode]/// Revokes an unused pairing code (`pc_…`).func revokePairingCode(id: String) async throws+ /// The account's relay allowance this month; nil from a relay that+ /// meters nothing.+ func relayUsage() async throws -> AppRelayUsage?}/// The SDK's `Devices` for the signed-in session (key in the session's vault,/// shared with the `cua` CLI and daemon).public final class LiveDevices: DevicesRunning, @unchecked Sendable {let inner: CuaSDK.Devices+ /// The account's token for the calls that take one (the allowance).+ let auth: CuaSDK.Auth?- public init(inner: CuaSDK.Devices) { self.inner = inner }+ public init(inner: CuaSDK.Devices, auth: CuaSDK.Auth? = nil) {+ self.inner = inner+ self.auth = auth+ }/// This Mac on the default relay (`CUA_RELAY_URL`, else relay.cua.ai),/// named as Sharing names it ("Dana's MacBook Pro").public static func make(auth: CuaSDK.Auth) -> LiveDevices? {- (try? auth.devices(relayUrl: nil, name: Foundation.Host.current().localizedName)).map(LiveDevices.init)+ (try? auth.devices(relayUrl: nil, name: Foundation.Host.current().localizedName))+ .map { LiveDevices(inner: $0, auth: auth) }}public func snapshot() async throws -> DevicesSnapshot { try await inner.snapshot(auditLimit: 50) }@@ -68,6 +77,11 @@ public final class LiveDevices: DevicesRunning, @unchecked Sendable {}public func pairingCodes() async throws -> [PairingCode] { try await inner.pairingCodes() }public func revokePairingCode(id: String) async throws { try await inner.revokePairingCode(id: id) }+ /// The same read as Electron's and `cua usage`'s (`app_relay_usage`).+ public func relayUsage() async throws -> AppRelayUsage? {+ guard let auth else { return nil }+ return try await appRelayUsage(devices: inner, accountToken: try await auth.accessToken(force: false))+ }}/// An in-memory account on a relay (fixtures, tests): this Mac enrolled,@@ -83,6 +97,9 @@ public final class FixtureDevices: DevicesRunning, @unchecked Sendable {public var failApprove: String?/// `snapshot` fails with this (a device the relay has not enrolled).public var failSnapshot: String?+ /// What `relayUsage` answers (the free plan partway through the month+ /// unless set; `CUA_SPACES_RELAY_USAGE` picks one in a fixtures run).+ public var usage: AppRelayUsage? = FixtureDevices.usage(nil)public init(snapshot: DevicesSnapshot? = nil) {current = snapshot ?? FixtureDevices.sample(now: UInt64(Date().timeIntervalSince1970))@@ -201,6 +218,39 @@ public final class FixtureDevices: DevicesRunning, @unchecked Sendable {calls.append("revoke-pairing-code:\(id)")for i in pairing.indices where pairing[i].id == id { pairing[i].state = "revoked" }}++ public func relayUsage() async throws -> AppRelayUsage? {+ calls.append("relay-usage")+ return usage+ }++ /// A relay allowance by name: `reached` (past it: the notice shows),+ /// `team` (a pooled team allowance, within it), `none` (a relay that+ /// meters nothing), else the free plan partway through the month.+ public static func usage(_ name: String?) -> AppRelayUsage? {+ let free = AppRelayUsage(+ metered: true, period: "2026-10", plan: "free", team: nil, liveSessions: 1, liveSessionsLimit: 2,+ hoursUsed: 6.5, hoursLimit: 20, myHoursUsed: 6.5, softLimitReached: false, reasons: [],+ upgradeUrl: "https://cua.ai/pricing")+ var u = free+ switch name {+ case "none": return nil+ case "reached":+ u.liveSessions = 2+ u.hoursUsed = 20.4+ u.myHoursUsed = 20.4+ u.softLimitReached = true+ u.reasons = ["hours"]+ case "team":+ u.plan = "team"+ u.team = AppRelayUsageTeam(id: "acme", seats: 3)+ u.liveSessionsLimit = 6+ u.hoursUsed = 31.5+ u.hoursLimit = 60+ default: break+ }+ return u+ }}/// Presence before approving a device: Touch ID, an Apple Watch or the@@ -275,8 +325,16 @@ public final class DevicesModel {public var approvalSurface: DevicesSurface = .main/// A new machine's confirm alert, while it shows (S5).public var confirming: AppUnconfirmedMachine?- /// Signed in to Cua (no account, no devices).- public var signedIn = false+ /// Signed in to Cua (no account, no devices). A change forgets the+ /// last allowance (another account's, or none).+ public var signedIn = false {+ didSet {+ guard signedIn != oldValue else { return }+ relayUsageGeneration += 1+ relayUsage = nil+ relayUsageReadAt = nil+ }+ }/// Runs the interactive sign-in; true once signed in again.public var signIn: (() async -> Bool)?/// Shows a system notification for a device asking to join.@@ -294,9 +352,22 @@ public final class DevicesModel {var locale = Locale.currentvar timeZone = TimeZone.current- public init(devices: DevicesRunning?, presence: PresenceChecking = LivePresence()) {+ /// The account's relay allowance this month (metered only).+ public private(set) var relayUsage: AppRelayUsage?+ var relayUsageReadAt: Date?+ /// Bumped on every account change: an older read's answer is dropped.+ var relayUsageGeneration = 0+ /// Where a dismissed notice is remembered (the core's `dismissKey`).+ let defaults: UserDefaults+ static let relayNoticeDismissedKey = "cua.relayAllowance.dismissed"+ public private(set) var relayNoticeDismissed: String?++ public init(devices: DevicesRunning?, presence: PresenceChecking = LivePresence(),+ defaults: UserDefaults = .standard) {self.devices = devicesself.presence = presence+ self.defaults = defaults+ relayNoticeDismissed = defaults.string(forKey: Self.relayNoticeDismissedKey)}var nowSecs: UInt64 { UInt64(max(0, clock().timeIntervalSince1970)) }@@ -404,6 +475,48 @@ public final class DevicesModel {}}+ // MARK: - Relay usage++ /// How often the main window reads the allowance again, and how old a+ /// read may be when the app comes to the front (as the web UI).+ public static let relayUsagePoll: Duration = .seconds(300)+ public static let relayUsageFocusAge: TimeInterval = 60++ /// Settings' Relay usage row and the notice, in the core's words.+ public var relayUsageView: AppRelayUsageView? { relayUsage.flatMap { appRelayUsageView(usage: $0) } }++ /// The notice above the main window, until dismissed for this month and+ /// these reasons.+ public var relayNotice: AppRelayAllowanceNotice? {+ guard let notice = relayUsageView?.notice, notice.dismissKey != relayNoticeDismissed else { return nil }+ return notice+ }++ public func dismissRelayNotice() {+ guard let key = relayUsageView?.notice?.dismissKey else { return }+ relayNoticeDismissed = key+ defaults.set(key, forKey: Self.relayNoticeDismissedKey)+ }++ /// Reads the allowance unless the last read is newer than `maxAge`+ /// seconds. A failed read keeps the last answer.+ public func readRelayUsage(maxAge: TimeInterval = 0) async {+ guard signedIn, let devices else {+ relayUsage = nil+ return+ }+ if maxAge > 0, let at = relayUsageReadAt, clock().timeIntervalSince(at) < maxAge { return }+ relayUsageReadAt = clock()+ let generation = relayUsageGeneration+ do {+ let usage = try await devices.relayUsage()+ guard generation == relayUsageGeneration else { return }+ relayUsage = usage?.metered == true ? usage : nil+ } catch {+ return+ }+ }+// MARK: - Enroll this devicepublic func startEnroll(in surface: DevicesSurface) {diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/DevicesViews.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/DevicesViews.swiftindex e4701293be..60a2d3efec 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/DevicesViews.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/DevicesViews.swift@@ -396,3 +396,55 @@ struct DevicesBanner: View {}}}++/// The relay allowance for the month is used up: one line above the main+/// window with Upgrade, until dismissed. Nothing stops at the limit, so it+/// only says so. The words are the core's (`appRelayUsageView`).+struct RelayAllowanceBanner: View {+ @Bindable var devices: DevicesModel+ @Environment(\.openURL) private var openURL++ var body: some View {+ if let notice = devices.relayNotice {+ HStack(spacing: 8) {+ Text(notice.text).lineLimit(2).foregroundStyle(.secondary).help(notice.text)+ Spacer(minLength: 8)+ if let url = notice.upgradeUrl.flatMap(URL.init(string:)) {+ Button(notice.upgrade) { openURL(url) }+ .controlSize(.small)+ .accessibilityIdentifier("relay-upgrade")+ }+ Button {+ devices.dismissRelayNotice()+ } label: {+ Image(systemName: "xmark")+ }+ .buttonStyle(.borderless)+ .controlSize(.small)+ .accessibilityLabel(notice.dismiss)+ .accessibilityIdentifier("relay-dismiss")+ }+ .font(.callout)+ .padding(.horizontal, 12)+ .padding(.vertical, 7)+ .background(.bar)+ .overlay(alignment: .bottom) { Divider() }+ .accessibilityIdentifier("relay-allowance")+ }+ }+}++/// Settings → Account: the relay allowance this month, where it applies.+struct RelayUsageRow: View {+ let view: AppRelayUsageView++ var body: some View {+ LabeledContent {+ Text(view.plan).foregroundStyle(.secondary)+ } label: {+ Text(view.label)+ Text(view.line)+ }+ .accessibilityIdentifier("settings-relay-usage")+ }+}diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/MainWindow.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/MainWindow.swiftindex be705e1e85..3fa7655cb9 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/MainWindow.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/MainWindow.swift@@ -27,6 +27,7 @@ public struct MainWindow: View {.safeAreaInset(edge: .top, spacing: 0) {VStack(spacing: 0) {DevicesBanner(devices: model.devices)+ RelayAllowanceBanner(devices: model.devices)if let error = model.rosterError {SpacesDiscoveryNotice(error: error)}@@ -82,6 +83,17 @@ public struct MainWindow: View {}// The checklist ticks off what the app already shows..onChange(of: model.checklistSeen, initial: true) { _, seen in model.checklist.send(seen) }+ // The relay allowance: at once (and on every sign-in or out), every+ // 5 minutes, and when the app comes to the front.+ .task(id: model.devices.signedIn) {+ while !Task.isCancelled {+ await model.devices.readRelayUsage()+ try? await Task.sleep(for: DevicesModel.relayUsagePoll)+ }+ }+ .onReceive(NotificationCenter.default.publisher(for: NSApplication.didBecomeActiveNotification)) { _ in+ Task { await model.devices.readRelayUsage(maxAge: DevicesModel.relayUsageFocusAge) }+ }}/// The main window's copy of a Devices sheet (Settings has its own).diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/SettingsView.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/SettingsView.swiftindex 7df7017274..ff48a75606 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/SettingsView.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/Views/SettingsView.swift@@ -20,6 +20,9 @@ struct SettingsView: View {ForEach(sections, id: \.id) { section inSection {ForEach(section.rows, id: \.id) { row($0, in: section.id) }+ if section.id == "account", let usage = model.devices.relayUsageView {+ RelayUsageRow(view: usage)+ }} header: {HStack {Text(section.title)@@ -45,6 +48,7 @@ struct SettingsView: View {.frame(width: 520).frame(minHeight: 480).task { await model.loadSettings() }+ .task { await model.devices.readRelayUsage(maxAge: DevicesModel.relayUsageFocusAge) }.background { watchTask }// While the mount settles (mounting, or waiting for the extension's// approval in System Settings), follow it.diff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge+Pages.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge+Pages.swiftindex 6d53bf81c2..cb2ad42d55 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge+Pages.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge+Pages.swift@@ -108,6 +108,15 @@ extension WebUIBridge {"devices.revokePairingCode":return try await devices(method, args)+ // Settings, Relay usage, and the notice past the allowance: the+ // same read as the native row (`app_relay_usage`). Signed out, or+ // a relay that meters nothing: null.+ case "relay.usage":+ let devices = model.devices+ guard devices.signedIn, let relay = devices.devices else { return NSNull() }+ guard let usage = try await relay.relayUsage(), usage.metered else { return NSNull() }+ return BridgeValue.encode(usage)+// Settings, Storagecase "storage.get":let storage = model.storagediff --git a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swift b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swiftindex 1e727dc001..25d7be08d3 100644--- a/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swift+++ b/apps/cua-spaces-macos/Sources/CuaSpacesMacKit/WebHost/WebUIBridge.swift@@ -101,6 +101,8 @@ final class WebUIBridge: NSObject, WKScriptMessageHandlerWithReply {"window.setBackgroundColor", "window.setDragRegions",// The launch (WebUIBridge+Startup.swift)."startup.get", "startup.act",+ // The relay allowance this month (WebUIBridge+Pages.swift).+ "relay.usage",]let model: AppModeldiff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swiftindex 71bfa2ac38..b3225ee3fc 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/BridgeContractTests.swift@@ -199,7 +199,8 @@ struct BridgeContractTests {/// fixtures. A method left out says why in `skipped`.func cases(space: String) -> [(String, [String: Any])] {[- ("app.info", [:]), ("session.get", [:]), ("session.signOut", [:]),+ // The relay allowance before the sign-out below (signed out, it is null).+ ("app.info", [:]), ("session.get", [:]), ("relay.usage", [:]), ("session.signOut", [:]),("spaces.list", [:]),("spaces.createOptions", [:]), ("spaces.cancelCreate", ["pendingId": "pending:none"]),("spaces.setPower", ["id": space, "on": true]),diff --git a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/DevicesTests.swift b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/DevicesTests.swiftindex c75a83e98a..355dbf5e8f 100644--- a/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/DevicesTests.swift+++ b/apps/cua-spaces-macos/Tests/CuaSpacesMacTests/DevicesTests.swift@@ -231,4 +231,90 @@ final class RelayAnswering: DevicesRunning, @unchecked Sendable {func createPairingCode(team: String?) async throws -> PairingCode { try await fixture.createPairingCode(team: team) }func pairingCodes() async throws -> [PairingCode] { try await fixture.pairingCodes() }func revokePairingCode(id: String) async throws { try await fixture.revokePairingCode(id: id) }+ func relayUsage() async throws -> AppRelayUsage? { try await fixture.relayUsage() }+}++/// Settings' Relay usage row and the notice above the main window: the+/// core's words, read as the web UI reads them.+@MainActor+@Suite("Relay usage")+struct RelayUsageTests {+ func model(_ fixture: FixtureDevices) -> (DevicesModel, UserDefaults) {+ let suite = "cua-relay-usage-\(UUID().uuidString)"+ let defaults = UserDefaults(suiteName: suite)!+ defaults.removePersistentDomain(forName: suite)+ let m = DevicesModel(devices: fixture, presence: FixturePresence(), defaults: defaults)+ m.signedIn = true+ return (m, defaults)+ }++ @Test func withinTheAllowanceOneRowAndNoNotice() async throws {+ let (m, _) = model(FixtureDevices())+ await m.readRelayUsage()+ let view = try #require(m.relayUsageView)+ #expect(view.label == "Relay usage")+ #expect(view.line == "Live sessions 1 of 2 \u{b7} Relay hours 6.5 of 20 this month")+ #expect(view.plan == "Free plan")+ #expect(m.relayNotice == nil)+ }++ @Test func pastItTheNoticeShowsUntilDismissedForThatMonthAndReason() async throws {+ let fixture = FixtureDevices()+ fixture.usage = FixtureDevices.usage("reached")+ let (m, defaults) = model(fixture)+ await m.readRelayUsage()+ let notice = try #require(m.relayNotice)+ #expect(notice.text == "You've used your free relay allowance for this month. Your Spaces keep working. Upgrade for more.")+ #expect(notice.upgrade == "Upgrade")+ #expect(notice.upgradeUrl == "https://cua.ai/pricing")+ m.dismissRelayNotice()+ #expect(m.relayNotice == nil)+ #expect(defaults.string(forKey: DevicesModel.relayNoticeDismissedKey) == "2026-10:hours")+ // Kept across launches; another reason shows it again.+ let again = DevicesModel(devices: fixture, presence: FixturePresence(), defaults: defaults)+ again.signedIn = true+ await again.readRelayUsage()+ #expect(again.relayNotice == nil)+ fixture.usage?.reasons = ["sessions", "hours"]+ await again.readRelayUsage()+ #expect(again.relayNotice?.dismissKey == "2026-10:hours,sessions")+ }++ @Test func signedOutUnmeteredAndFailedReads() async {+ let fixture = FixtureDevices()+ let (m, _) = model(fixture)+ await m.readRelayUsage()+ #expect(m.relayUsage != nil)+ // A recent read is not repeated.+ await m.readRelayUsage(maxAge: 60)+ #expect(fixture.calls.filter { $0 == "relay-usage" }.count == 1)+ m.signedIn = false+ #expect(m.relayUsage == nil)+ await m.readRelayUsage()+ #expect(m.relayUsageView == nil)+ m.signedIn = true+ fixture.usage = FixtureDevices.usage("none")+ await m.readRelayUsage()+ #expect(m.relayUsage == nil)+ fixture.usage = FixtureDevices.usage(nil)+ fixture.usage?.metered = false+ await m.readRelayUsage()+ #expect(m.relayUsageView == nil)+ }++ @Test func theWebUIGetsTheSameAnswer() async throws {+ let fixture = FixtureDevices()+ fixture.usage = FixtureDevices.usage("team")+ let (m, _) = model(fixture)+ await m.readRelayUsage()+ #expect(m.relayUsageView?.line.hasSuffix("Team pool, 3 seats") == true)+ let encoded = BridgeValue.encode(try #require(fixture.usage)) as? [String: Any]+ #expect(encoded?["liveSessionsLimit"] as? NSNumber == 6)+ #expect((encoded?["team"] as? [String: Any])?["seats"] as? NSNumber == 3)+ #expect(encoded?["upgradeUrl"] as? String == "https://cua.ai/pricing")+ let unlimited = BridgeValue.encode(AppRelayUsage(+ metered: true, period: "", plan: "", team: nil, liveSessions: 0, liveSessionsLimit: nil, hoursUsed: 0,+ hoursLimit: nil, myHoursUsed: 0, softLimitReached: false, reasons: [], upgradeUrl: nil)) as? [String: Any]+ #expect(unlimited?["team"] is NSNull && unlimited?["hoursLimit"] is NSNull)+ }}diff --git a/apps/cua-spaces-web/src/bridge/README.md b/apps/cua-spaces-web/src/bridge/README.mdindex e497ed0e34..5a5bb7df7e 100644--- a/apps/cua-spaces-web/src/bridge/README.md+++ b/apps/cua-spaces-web/src/bridge/README.md@@ -131,10 +131,7 @@ Electron answers `ELECTRON_HOST_METHODS`: `spaces.openStream` (it draws aSpace's video in the page), `onboarding.get` / `onboarding.complete`(its first run is this page's `routes/onboarding`, with Done's "Launch atlogin"; the SwiftUI app's is native, so there `session.get` reads it as-done), and `relay.usage` (the account's relay allowance this month,-`ops/relay-usage.ts`, for Settings' Relay usage row and the notice above-every page once it is used up; other hosts show neither), and-`presence.join` / `presence.publish` / `presence.leave` (the other+done), and `presence.join` / `presence.publish` / `presence.leave` (the otherparticipants' cursors over the video it draws, `ops/presence.ts`; events`presence.event` go to the joining window only; the Mac app draws presencenatively). Electron readsdiff --git a/apps/cua-spaces-web/src/bridge/__tests__/relay-usage.test.tsx b/apps/cua-spaces-web/src/bridge/__tests__/relay-usage.test.tsxindex 33d6b20861..e660748da3 100644--- a/apps/cua-spaces-web/src/bridge/__tests__/relay-usage.test.tsx+++ b/apps/cua-spaces-web/src/bridge/__tests__/relay-usage.test.tsx@@ -7,10 +7,11 @@ import { afterEach, describe, expect, it, vi } from "vitest";import { createDemoAdapter } from "../adapters/demo";import { demoRelayUsage } from "../adapters/demo/relay-usage";import { createWebkitAdapter } from "../adapters/webkit";-import { BridgeProvider, isUnsupported, relayUsageLine, useRelayUsage, type DataAdapter, type RelayUsage } from "..";+import { BridgeProvider, UnsupportedOperationError, useRelayUsage, type DataAdapter, type RelayUsage } from "..";+import { relayUsageView } from "../derive";import type { HostWindow } from "../detect";import { RELAY_USAGE_POLL_MS } from "../relay-usage";-import { noCore } from "./testCore";+import { noCore, testCore, wasmBuilt } from "./testCore";afterEach(() => {cleanup();@@ -28,13 +29,19 @@ describe("relay.usage", () => {expect(await createDemoAdapter({ latencyMs: 0, signedIn: false }).call("relay.usage", {})).toBeNull();});- it("the SwiftUI host does not answer it, and the page shows nothing", async () => {- const postMessage = vi.fn();+ it("the SwiftUI host answers it with the same method", async () => {+ const postMessage = vi.fn(async (req: { id: string; method: string }) => ({ id: req.id, ok: true, result: demoRelayUsage() }));const win = { webkit: { messageHandlers: { cua: { postMessage } } }, addEventListener: () => {}, removeEventListener: () => {} } as unknown as HostWindow;- const adapter = createWebkitAdapter(win);- expect(isUnsupported(await adapter.call("relay.usage", {}).catch((e: unknown) => e))).toBe(true);- expect(postMessage).not.toHaveBeenCalled();+ expect(await createWebkitAdapter(win).call("relay.usage", {})).toEqual(demoRelayUsage());+ expect(postMessage).toHaveBeenCalledWith(expect.objectContaining({ method: "relay.usage" }));+ });+ it("a host without it reads as nothing to show", async () => {+ const demo = createDemoAdapter({ latencyMs: 0 });+ const adapter: DataAdapter = {+ ...demo,+ call: (op, args) => (op === "relay.usage" ? Promise.reject(new UnsupportedOperationError("tauri", "relay.usage")) : demo.call(op, args)),+ };const seen: { usage?: RelayUsage | null } = {};render(<BridgeProvider adapter={adapter} core={noCore}>@@ -45,6 +52,22 @@ describe("relay.usage", () => {expect(seen.usage).toBeNull();});+ it.skipIf(!wasmBuilt)("the row and the notice are the core's words", async () => {+ const core = await testCore();+ const free = relayUsageView(core, demoRelayUsage())!;+ expect(free).toEqual({ label: "Relay usage", line: "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month", plan: "Free plan", notice: null });+ const past = relayUsageView(core, { ...demoRelayUsage(), hoursUsed: 20.24, softLimitReached: true, reasons: ["hours"], team: { id: "acme", seats: 3 } })!;+ expect(past.line).toBe("Live sessions 1 of 2 · Relay hours 20.2 of 20 this month · Team pool, 3 seats");+ expect(past.notice).toEqual({+ text: "You've used your free relay allowance for this month. Your Spaces keep working. Upgrade for more.",+ upgrade: "Upgrade",+ upgradeUrl: "https://cua.ai/pricing",+ dismiss: "Dismiss",+ dismissKey: "2026-10:hours",+ });+ expect(relayUsageView(noCore, demoRelayUsage())).toBeNull();+ });+it("reads once for every screen, again every 5 minutes, and drops it when signed out", async () => {vi.useFakeTimers({ toFake: ["setInterval", "clearInterval"] });const demo = createDemoAdapter({ latencyMs: 0 });@@ -61,7 +84,6 @@ describe("relay.usage", () => {const reads = () => call.mock.calls.filter(([op]) => op === "relay.usage").length;expect(reads()).toBe(1);expect(seen.usage).toMatchObject({ plan: "free", liveSessions: 1 });- expect(relayUsageLine(seen.usage!)).toBe("Live sessions 1 of 2 · Relay hours 6.5 of 20 this month");await act(() => vi.advanceTimersByTimeAsync(RELAY_USAGE_POLL_MS - 100));expect(reads()).toBe(1);diff --git a/apps/cua-spaces-web/src/bridge/adapters/webkit.ts b/apps/cua-spaces-web/src/bridge/adapters/webkit.tsindex a9b5712f8b..6ae96f66b7 100644--- a/apps/cua-spaces-web/src/bridge/adapters/webkit.ts+++ b/apps/cua-spaces-web/src/bridge/adapters/webkit.ts@@ -55,7 +55,7 @@ import { webkitKeyvaultSetupOps } from "../ops/keyvault-setup";import { webkitSettingsOps } from "../ops/settings";import { startupFromHost, webkitStartupOps } from "../ops/startup";import { unsupportedStreamOps, type StreamTicket } from "../ops/stream";-import { unsupportedRelayUsageOps, type RelayUsage } from "../ops/relay-usage";+import type { RelayUsage } from "../ops/relay-usage";import { unsupportedPresenceOps, type PresenceJoinInfo } from "../ops/presence";import type { SpaceRow } from "../contracts/spaces";import {@@ -585,8 +585,7 @@ export function createWebkitAdapter(...(electron? { "spaces.openStream": (target: OpArgs<"spaces.openStream">) => request<StreamTicket>("spaces.openStream", { ...target }) }: unsupportedStreamOps("webkit")),- // The relay allowance: Electron reads it; the Mac app not yet.- ...(electron ? { "relay.usage": () => request<RelayUsage | null>("relay.usage") } : unsupportedRelayUsageOps("webkit")),+ "relay.usage": () => request<RelayUsage | null>("relay.usage"),// Presence over the page's own video: the Mac app draws it natively....(electron? {diff --git a/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.json b/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.jsonindex d862eaff83..90cfc4afab 100644--- a/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.json+++ b/apps/cua-spaces-web/src/bridge/contracts/bridge-shapes.json@@ -5735,6 +5735,91 @@"notifications.markAllRead": {"type": "null"},+ "relay.usage": {+ "type": [+ "object",+ "null"+ ],+ "properties": {+ "metered": {+ "type": "boolean"+ },+ "period": {+ "type": "string"+ },+ "plan": {+ "type": "string"+ },+ "team": {+ "type": [+ "object",+ "null"+ ],+ "properties": {+ "id": {+ "type": "string"+ },+ "seats": {+ "type": "number"+ }+ },+ "required": [+ "id",+ "seats"+ ]+ },+ "liveSessions": {+ "type": "number"+ },+ "liveSessionsLimit": {+ "type": [+ "number",+ "null"+ ]+ },+ "hoursUsed": {+ "type": "number"+ },+ "hoursLimit": {+ "type": [+ "number",+ "null"+ ]+ },+ "myHoursUsed": {+ "type": "number"+ },+ "softLimitReached": {+ "type": "boolean"+ },+ "reasons": {+ "type": "array",+ "items": {+ "type": "string"+ }+ },+ "upgradeUrl": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "required": [+ "metered",+ "period",+ "plan",+ "team",+ "liveSessions",+ "liveSessionsLimit",+ "hoursUsed",+ "hoursLimit",+ "myHoursUsed",+ "softLimitReached",+ "reasons",+ "upgradeUrl"+ ]+ },"session.get": {"$ref": "#/$defs/WkSession"},diff --git a/apps/cua-spaces-web/src/bridge/contracts/shapes.ts b/apps/cua-spaces-web/src/bridge/contracts/shapes.tsindex 2a50c8ac62..59b616f457 100644--- a/apps/cua-spaces-web/src/bridge/contracts/shapes.ts+++ b/apps/cua-spaces-web/src/bridge/contracts/shapes.ts@@ -1141,6 +1141,7 @@ export const WEBKIT_SHAPES: Partial<Record<WebkitMethod, Schema>> = {"window.setDragRegions": nul,"startup.get": StartupShape,"startup.act": StartupShape,+ "relay.usage": OP_SHAPES["relay.usage"],};/** Methods whose answer has no shape here, and why (none today: keep thediff --git a/apps/cua-spaces-web/src/bridge/derive.ts b/apps/cua-spaces-web/src/bridge/derive.tsindex 28a1637280..33c54c8c1f 100644--- a/apps/cua-spaces-web/src/bridge/derive.ts+++ b/apps/cua-spaces-web/src/bridge/derive.ts@@ -33,6 +33,7 @@ import type {VaultView,} from "./contracts/keyvault";import type { CreateAction, CreatesState, PendingCreate, Space, SpaceOs, SpaceRow, SpaceStatus } from "./contracts/spaces";+import type { RelayUsage, RelayUsageView } from "./ops/relay-usage";import type { SessionSnapshot, SettingsSnapshot } from "./protocol";import { notSharingOf, realLimits } from "./sharing";@@ -674,3 +675,12 @@ export function orderRuns<T extends SpaceAgentRun>(core: CoreClient, runs: T[]):}return [...runs].sort((a, b) => ATTENTION[a.status] - ATTENTION[b.status] || (b.createdAt ?? 0) - (a.createdAt ?? 0));}++/* ---- Relay usage ---------------------------------------------------------- */++/** Settings' Relay usage row and the notice past the allowance (the core's+ * `relayUsage.view`). No stand-in: without the core the page shows+ * neither, rather than words of its own. */+export function relayUsageView(core: CoreClient, usage: RelayUsage): RelayUsageView | null {+ return core.tryCall<RelayUsageView | null>("relayUsage.view", { usage }) ?? null;+}diff --git a/apps/cua-spaces-web/src/bridge/index.ts b/apps/cua-spaces-web/src/bridge/index.tsindex 60d6cb6210..82cb971bb9 100644--- a/apps/cua-spaces-web/src/bridge/index.ts+++ b/apps/cua-spaces-web/src/bridge/index.ts@@ -116,4 +116,12 @@ export {type ChecklistStep,type ChecklistView,} from "./checklist";-export { formatHours, relayUsageLine, useRelayUsage, RELAY_USAGE_FOCUS_MS, RELAY_USAGE_POLL_MS, type RelayUsage } from "./relay-usage";+export {+ useRelayUsage,+ useRelayUsageView,+ RELAY_USAGE_FOCUS_MS,+ RELAY_USAGE_POLL_MS,+ type RelayAllowanceNotice,+ type RelayUsage,+ type RelayUsageView,+} from "./relay-usage";diff --git a/apps/cua-spaces-web/src/bridge/ops/relay-usage.ts b/apps/cua-spaces-web/src/bridge/ops/relay-usage.tsindex c670d29d9c..2e6b67365b 100644--- a/apps/cua-spaces-web/src/bridge/ops/relay-usage.ts+++ b/apps/cua-spaces-web/src/bridge/ops/relay-usage.ts@@ -9,16 +9,20 @@** | Operation | Electron | SwiftUI | Tauri |* |---|---|---|---|- * | `relay.usage` | the host method `relay.usage`: the relay's `GET /v1/usage` with the account's token (`src/bridge/relay-usage.ts`) | unsupported | unsupported |+ * | `relay.usage` | the host method `relay.usage` | the host method `relay.usage` | unsupported |+ *+ * Both native hosts read it through the Spaces app export's+ * `app_relay_usage` (the relay's `GET /v1/usage` with the account's token,+ * as `cua usage` reads it). The row and the notice are the app core's+ * `relayUsage.view` (`derive.ts`), as the SwiftUI app draws them.** Null: signed out, or a relay that meters nothing. Where unsupported, the* page shows nothing about it.*/-import { UnsupportedOperationError, type BridgeMode } from "../adapter";import type { OpCoverage } from "../coverage";-/** `cua_host::RelayUsage`, camelCase. */+/** `cua_spaces_app_core::relay_usage::RelayUsage`. */export interface RelayUsage {metered: boolean;/** The month counted (`2026-10`). */@@ -40,6 +44,30 @@ export interface RelayUsage {upgradeUrl: string | null;}+/** `relay_usage::RelayAllowanceNotice`: the line above every page past the allowance. */+export interface RelayAllowanceNotice {+ text: string;+ /** "Upgrade". */+ upgrade: string;+ /** What Upgrade opens (https); null: no Upgrade button. */+ upgradeUrl: string | null;+ /** "Dismiss". */+ dismiss: string;+ /** A dismissal holds for this month and these reasons. */+ dismissKey: string;+}++/** `relay_usage::RelayUsageView`: Settings' row and the notice. */+export interface RelayUsageView {+ /** "Relay usage". */+ label: string;+ /** "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month". */+ line: string;+ /** "Free plan". */+ plan: string;+ notice: RelayAllowanceNotice | null;+}+export interface RelayUsageOps {"relay.usage": { args: Record<string, never>; result: RelayUsage | null };}@@ -48,22 +76,13 @@ export const RELAY_USAGE_OPERATIONS = ["relay.usage"] as const satisfies readonlexport const RELAY_USAGE_COVERAGE = {"relay.usage": {- webkit: { methods: [] },- electron: { methods: ["relay.usage"] },+ webkit: { methods: ["relay.usage"] },tauri: [],unsupported: {- webkit: "the Mac app does not read the relay allowance yet",tauri: "the Tauri app does not read the relay allowance",},},} as const satisfies Record<keyof RelayUsageOps, OpCoverage>;-/** Hosts that do not read the allowance. */-export function unsupportedRelayUsageOps(mode: BridgeMode) {- return {- "relay.usage": (): Promise<RelayUsage | null> => Promise.reject(new UnsupportedOperationError(mode, "relay.usage")),- };-}-/** Arguments that take it down its usual path (coverage tests). */export const RELAY_USAGE_ARGS = { "relay.usage": {} };diff --git a/apps/cua-spaces-web/src/bridge/relay-usage.ts b/apps/cua-spaces-web/src/bridge/relay-usage.tsindex 84dbc36193..b44adbe08a 100644--- a/apps/cua-spaces-web/src/bridge/relay-usage.ts+++ b/apps/cua-spaces-web/src/bridge/relay-usage.ts@@ -5,15 +5,17 @@* The account's relay allowance (`relay.usage`), read while a screen shows* it: at once, every 5 minutes, and when the app comes to the front (at* most once a minute). A host without the operation, signed out, or a relay- * that meters nothing reads as null, and the page shows nothing.+ * that meters nothing reads as null, and the page shows nothing. The words+ * are the app core's (`relayUsage.view`).*/-import { useContext, useSyncExternalStore } from "react";+import { useContext, useMemo, useSyncExternalStore } from "react";import { isUnsupported, type DataAdapter } from "./adapter";import { BridgeContext } from "./BridgeProvider";-import type { RelayUsage } from "./ops/relay-usage";+import { relayUsageView } from "./derive";+import type { RelayUsage, RelayUsageView } from "./ops/relay-usage";-export type { RelayUsage } from "./ops/relay-usage";+export type { RelayAllowanceNotice, RelayUsage, RelayUsageView } from "./ops/relay-usage";export const RELAY_USAGE_POLL_MS = 5 * 60_000;/** A focus reads again only when the last read is older than this. */@@ -124,17 +126,10 @@ export function useRelayUsage(): RelayUsage | null {return useSyncExternalStore(store?.subscribe ?? none, store?.snapshot ?? nothing, nothing);}-/** `20` or `6.5`. */-export function formatHours(h: number): string {- const tenths = Math.round(h * 10) / 10;- return Number.isInteger(tenths) ? String(tenths) : tenths.toFixed(1);+/** Settings' row and the notice, as the app core draws them; null when+ * there is nothing to show (or no core to say it). */+export function useRelayUsageView(): RelayUsageView | null {+ const usage = useRelayUsage();+ const core = useContext(BridgeContext)?.core;+ return useMemo(() => (usage && core ? relayUsageView(core, usage) : null), [usage, core]);}--/** "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month". */-export function relayUsageLine(u: RelayUsage): string {- const of = (used: string, limit: string | null) => (limit === null ? used : `${used} of ${limit}`);- const sessions = of(String(u.liveSessions), u.liveSessionsLimit === null ? null : String(u.liveSessionsLimit));- const hours = of(formatHours(u.hoursUsed), u.hoursLimit === null ? null : formatHours(u.hoursLimit));- return `Live sessions ${sessions} · Relay hours ${hours} this month`;-}-diff --git a/apps/cua-spaces-web/src/bridge/webkit-protocol.ts b/apps/cua-spaces-web/src/bridge/webkit-protocol.tsindex f5b2254348..b9278d7e98 100644--- a/apps/cua-spaces-web/src/bridge/webkit-protocol.ts+++ b/apps/cua-spaces-web/src/bridge/webkit-protocol.ts@@ -144,6 +144,7 @@ export const WEBKIT_METHODS = ["window.setDragRegions","startup.get","startup.act",+ "relay.usage",] as const;export type WebkitMethod = (typeof WEBKIT_METHODS)[number];@@ -152,10 +153,9 @@ export type WebkitMethod = (typeof WEBKIT_METHODS)[number];* page (WebCodecs), so the page asks it for a media ticket* (`ops/stream.ts`), and its first run is this page's (`onboarding.get`,* `onboarding.complete`); the Mac app draws video and its first run- * natively. It also reads the account's relay allowance- * (`relay.usage`, `ops/relay-usage.ts`) and joins presence for the video- * the page draws (`presence.*`, `ops/presence.ts`). */-export const ELECTRON_HOST_METHODS = ["onboarding.get", "onboarding.complete", "spaces.openStream", "relay.usage", "presence.join", "presence.publish", "presence.leave"] as const;+ * natively. It also joins presence for the video the page draws+ * (`presence.*`, `ops/presence.ts`). */+export const ELECTRON_HOST_METHODS = ["onboarding.get", "onboarding.complete", "spaces.openStream", "presence.join", "presence.publish", "presence.leave"] as const;/** `onboarding.get` and `onboarding.complete`'s answer: whether the first run finished, and as what. */export interface WkOnboarding {diff --git a/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.test.tsx b/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.test.tsxindex 6a1c74ce21..48d38dca09 100644--- a/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.test.tsx+++ b/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.test.tsx@@ -2,12 +2,12 @@// Copyright (c) 2026 Cua AI, Inc.import { act, cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react";-import { afterEach, describe, expect, it } from "vitest";+import { afterEach, beforeAll, describe, expect, it } from "vitest";import { createDemoAdapter } from "@/bridge/adapters/demo";import { demoRelayUsage } from "@/bridge/adapters/demo/relay-usage";-import { noCore } from "@/bridge/__tests__/testCore";-import { BridgeProvider, type DataAdapter, type RelayUsage } from "@/bridge";+import { testCore, wasmBuilt } from "@/bridge/__tests__/testCore";+import { BridgeProvider, type CoreClient, type DataAdapter, type RelayUsage } from "@/bridge";import { RelayAllowanceNotice } from "./relay-allowance-notice";@@ -16,6 +16,11 @@ afterEach(() => {localStorage.clear();});+let core: CoreClient;+beforeAll(async () => {+ core = await testCore();+});+const reached: RelayUsage = { ...demoRelayUsage(), hoursUsed: 20.2, softLimitReached: true, reasons: ["hours"] };/** The demo host answering `usage`, recording the links it opens. */@@ -32,14 +37,15 @@ function host(usage: RelayUsage | null) {};const view = () =>render(- <BridgeProvider adapter={adapter} core={noCore}>+ <BridgeProvider adapter={adapter} core={core}><RelayAllowanceNotice /></BridgeProvider>,);return { demo, opened, view };}-describe("<RelayAllowanceNotice>", () => {+// The words are the app core's: these need the wasm build.+describe.skipIf(!wasmBuilt)("<RelayAllowanceNotice>", () => {it("shows nothing within the allowance", async () => {const { view } = host(demoRelayUsage());view();diff --git a/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.tsx b/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.tsxindex 8ace587f39..92e2019542 100644--- a/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.tsx+++ b/apps/cua-spaces-web/src/components/shell/relay-allowance-notice.tsx@@ -4,14 +4,11 @@import { XIcon } from "lucide-react";import { useState } from "react";-import { useRelayUsage, useSession, type RelayUsage } from "@/bridge";+import { useRelayUsageView, useSession } from "@/bridge";import { Button } from "@/components/ui/button";const DISMISSED_KEY = "cua.relayAllowance.dismissed";-/** One dismissal per month and reason: a new month, or another limit reached, shows it again. */-const dismissKey = (u: RelayUsage) => `${u.period}:${[...u.reasons].sort().join(",")}`;-function readDismissed(): string | null {try {return globalThis.localStorage?.getItem(DISMISSED_KEY) ?? null;@@ -22,34 +19,32 @@ function readDismissed(): string | null {/*** The relay allowance for the month is used up: one line above every page- * with Upgrade, until dismissed. Nothing stops at the limit, so it only- * says so.+ * with Upgrade, until dismissed (for that month and reason: the core's+ * `dismissKey`). Nothing stops at the limit, so it only says so.*/export function RelayAllowanceNotice() {- const usage = useRelayUsage();+ const notice = useRelayUsageView()?.notice;const { openExternal } = useSession();const [dismissed, setDismissed] = useState(readDismissed);- if (!usage?.softLimitReached || dismissed === dismissKey(usage)) return null;+ if (!notice || dismissed === notice.dismissKey) return null;const dismiss = () => {- const key = dismissKey(usage);try {- globalThis.localStorage?.setItem(DISMISSED_KEY, key);+ globalThis.localStorage?.setItem(DISMISSED_KEY, notice.dismissKey);} catch {// Not kept: it shows again next launch.}- setDismissed(key);+ setDismissed(notice.dismissKey);};+ const upgradeUrl = notice.upgradeUrl;return (<div role="status" data-relay-allowance="" className="flex shrink-0 items-center gap-3 border-b px-4 py-2 text-xs text-muted-foreground">- <span className="min-w-0 flex-1">- You've used your {usage.plan === "free" ? "free " : ""}relay allowance for this month. Your Spaces keep working. Upgrade for more.- </span>- {usage.upgradeUrl ? (- <Button size="sm" variant="outline" data-relay-upgrade="" onClick={() => void openExternal(usage.upgradeUrl!).catch(() => {})}>- Upgrade+ <span className="min-w-0 flex-1">{notice.text}</span>+ {upgradeUrl ? (+ <Button size="sm" variant="outline" data-relay-upgrade="" onClick={() => void openExternal(upgradeUrl).catch(() => {})}>+ {notice.upgrade}</Button>) : null}- <Button size="icon-sm" variant="ghost" aria-label="Dismiss" data-relay-dismiss="" onClick={dismiss}>+ <Button size="icon-sm" variant="ghost" aria-label={notice.dismiss} data-relay-dismiss="" onClick={dismiss}><XIcon className="size-3.5" /></Button></div>diff --git a/apps/cua-spaces-web/src/routes/settings/index.tsx b/apps/cua-spaces-web/src/routes/settings/index.tsxindex 194aab04d9..539af4f087 100644--- a/apps/cua-spaces-web/src/routes/settings/index.tsx+++ b/apps/cua-spaces-web/src/routes/settings/index.tsx@@ -8,9 +8,8 @@ import {useBridge,useExperiments,useLoginItem,- relayUsageLine,useMachines,- useRelayUsage,+ useRelayUsageView,useSession,useSettings,useStorageSettings,@@ -177,15 +176,13 @@ function GlobalShortcutRow({ shortcut }: { shortcut: GlobalShortcut | null | und);}-/** The relay allowance this month, where the host reads it (Electron). */+/** The relay allowance this month (the core's words), where the host reads it. */function RelayUsageRow() {- const usage = useRelayUsage();- if (!usage) return null;- const team = usage.team ? ` · Team pool, ${usage.team.seats} ${usage.team.seats === 1 ? "seat" : "seats"}` : "";- const plan = usage.plan ? `${usage.plan[0]!.toUpperCase()}${usage.plan.slice(1)} plan` : "";+ const view = useRelayUsageView();+ if (!view) return null;return (<div data-relay-usage="">- <SettingsRow label="Relay usage" description={relayUsageLine(usage) + team} control={<span className="text-[13px] text-muted-foreground">{plan}</span>} />+ <SettingsRow label={view.label} description={view.line} control={<span className="text-[13px] text-muted-foreground">{view.plan}</span>} /></div>);}diff --git a/docs/content/docs/cua-sdk/reference/index.mdx b/docs/content/docs/cua-sdk/reference/index.mdxindex b5f34620a4..9917a12d18 100644--- a/docs/content/docs/cua-sdk/reference/index.mdx+++ b/docs/content/docs/cua-sdk/reference/index.mdx@@ -100,6 +100,7 @@ Pages marked *Cua Spaces app export* document the APIs the Cua Spaces apps are b| [Onboarding and settings](/cua-sdk/reference/spaces/app-core/onboarding-settings) | First-run onboarding, its card miniatures, the settings file and the hotkey label. *Cua Spaces app export.* || [About, updates and launch](/cua-sdk/reference/spaces/app-core/about) | The About window and its update channel, what the apps do once they launch (the bundled cua install), and the daemon and refresh reports they read. *Cua Spaces app export.* || [Cua Cloud billing](/cua-sdk/reference/spaces/app-core/billing) | The Billing row in Settings and the out-of-credit notice on a refused cloud Space. *Cua Spaces app export.* |+| [Relay usage](/cua-sdk/reference/spaces/app-core/relay) | The Relay usage row in Settings and the notice past the monthly relay allowance. *Cua Spaces app export.* || [This machine](/cua-sdk/reference/spaces/app-core/this-machine) | The This machine roster entry, its page and the host setup form. *Cua Spaces app export.* || [Window, menu bar and Settings](/cua-sdk/reference/spaces/app-core/window) | The window chrome, a Space's toolbar and sections, the menu bar menu and Settings. *Cua Spaces app export.* || [Devices](/cua-sdk/reference/spaces/app-core/devices) | Settings > Devices: this device's enrollment, the account's devices, Recent Access, and the enroll and approval sheets. *Cua Spaces app export.* |@@ -141,4 +142,4 @@ Pages marked *Cua Spaces app export* document the APIs the Cua Spaces apps are b291 items, 385 methods. The [Types](/cua-sdk/reference/types) page lists them.-The Cua Spaces app export adds 750 items and 38 methods.+The Cua Spaces app export adds 756 items and 38 methods.diff --git a/docs/content/docs/cua-sdk/reference/spaces/app-core/index.mdx b/docs/content/docs/cua-sdk/reference/spaces/app-core/index.mdxindex f124383d5c..b53a82f8fa 100644--- a/docs/content/docs/cua-sdk/reference/spaces/app-core/index.mdx+++ b/docs/content/docs/cua-sdk/reference/spaces/app-core/index.mdx@@ -17,7 +17,7 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';These APIs are part of the Cua Spaces app export for building Spaces UIs. They are source-available under FSL-1.1-MIT and ship for Swift only (`import CuaSpacesFFI`); the Rust tab shows the `cua-spaces-ffi` crate they come from. The open source SDK packages for Python, TypeScript and Kotlin do not include them.</Callout>-The Tauri and SwiftUI Cua Spaces apps render the same state from this core, so their behaviour cannot diverge. Build your own Spaces UI on it. Each screen is a state record, a pure `*_reduce` function that applies an action or event, and a `*_view` that derives what to draw. The subpages cover one screen each; the shared formatters are on [Window, menu bar and Settings](/cua-sdk/reference/spaces/app-core/window).+The Cua Spaces apps render the same state from this core, so their behaviour cannot diverge. Each screen is a state record, a pure `*_reduce` function that applies an action or event, and a `*_view` that derives what to draw. The subpages cover one screen each; the shared formatters are on [Window, menu bar and Settings](/cua-sdk/reference/spaces/app-core/window).## `cua_spaces_register`@@ -45,7 +45,7 @@ pub fn cua_spaces_register()## All items-621 items, across this page and its subpages, grouped by page. Methods are listed on their object.+627 items, across this page and its subpages, grouped by page. Methods are listed on their object.**About, updates and launch**: [`app_about_after_launch`](/cua-sdk/reference/spaces/app-core/about#app_about_after_launch), [`app_about_allowed_channels`](/cua-sdk/reference/spaces/app-core/about#app_about_allowed_channels), [`app_about_input_from_json`](/cua-sdk/reference/spaces/app-core/about#app_about_input_from_json), [`app_about_refresh_notice`](/cua-sdk/reference/spaces/app-core/about#app_about_refresh_notice), [`app_about_restart_daemon`](/cua-sdk/reference/spaces/app-core/about#app_about_restart_daemon), [`app_about_view`](/cua-sdk/reference/spaces/app-core/about#app_about_view), [`app_daemon_check_from_json`](/cua-sdk/reference/spaces/app-core/about#app_daemon_check_from_json), [`app_launch_input_from_json`](/cua-sdk/reference/spaces/app-core/about#app_launch_input_from_json), [`app_refresh_report_from_json`](/cua-sdk/reference/spaces/app-core/about#app_refresh_report_from_json), [`AppAboutInput`](/cua-sdk/reference/spaces/app-core/about#appaboutinput-record), [`AppAboutLink`](/cua-sdk/reference/spaces/app-core/about#appaboutlink-record), [`AppAboutLinkId`](/cua-sdk/reference/spaces/app-core/about#appaboutlinkid-enum), [`AppAboutUpdates`](/cua-sdk/reference/spaces/app-core/about#appaboutupdates-record), [`AppAboutView`](/cua-sdk/reference/spaces/app-core/about#appaboutview-record), [`AppCliInstaller`](/cua-sdk/reference/spaces/app-core/about#appcliinstaller), [`AppCliInstallPlan`](/cua-sdk/reference/spaces/app-core/about#appcliinstallplan-record), [`AppCliInstallRequest`](/cua-sdk/reference/spaces/app-core/about#appcliinstallrequest-record), [`AppDaemonCheck`](/cua-sdk/reference/spaces/app-core/about#appdaemoncheck-record), [`AppInstallMethod`](/cua-sdk/reference/spaces/app-core/about#appinstallmethod-enum), [`AppLaunchInput`](/cua-sdk/reference/spaces/app-core/about#applaunchinput-record), [`AppLaunchPlan`](/cua-sdk/reference/spaces/app-core/about#applaunchplan-record), [`AppRefreshReport`](/cua-sdk/reference/spaces/app-core/about#apprefreshreport-record), [`AppUpdateChannel`](/cua-sdk/reference/spaces/app-core/about#appupdatechannel-enum)@@ -81,6 +81,8 @@ pub fn cua_spaces_register()**Teleport picker grid**: [`app_picker_app_grid`](/cua-sdk/reference/spaces/app-core/teleport-grid#app_picker_app_grid), [`app_picker_grid_primary`](/cua-sdk/reference/spaces/app-core/teleport-grid#app_picker_grid_primary), [`app_picker_grid_step`](/cua-sdk/reference/spaces/app-core/teleport-grid#app_picker_grid_step), [`app_picker_grid_tabs`](/cua-sdk/reference/spaces/app-core/teleport-grid#app_picker_grid_tabs), [`app_picker_remote_grid`](/cua-sdk/reference/spaces/app-core/teleport-grid#app_picker_remote_grid), [`app_picker_window_grid`](/cua-sdk/reference/spaces/app-core/teleport-grid#app_picker_window_grid), [`AppPickerGrid`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickergrid-record), [`AppPickerGridPrimary`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickergridprimary-record), [`AppPickerGridTab`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickergridtab-enum), [`AppPickerGridTabItem`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickergridtabitem-record), [`AppPickerTile`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickertile-record), [`AppPickerTileIcon`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickertileicon-enum), [`AppPickerTileSection`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickertilesection-record), [`AppPickerTileThumbnail`](/cua-sdk/reference/spaces/app-core/teleport-grid#apppickertilethumbnail-enum)+**Relay usage**: [`app_relay_usage`](/cua-sdk/reference/spaces/app-core/relay#app_relay_usage), [`app_relay_usage_view`](/cua-sdk/reference/spaces/app-core/relay#app_relay_usage_view), [`AppRelayAllowanceNotice`](/cua-sdk/reference/spaces/app-core/relay#apprelayallowancenotice-record), [`AppRelayUsage`](/cua-sdk/reference/spaces/app-core/relay#apprelayusage-record), [`AppRelayUsageTeam`](/cua-sdk/reference/spaces/app-core/relay#apprelayusageteam-record), [`AppRelayUsageView`](/cua-sdk/reference/spaces/app-core/relay#apprelayusageview-record)+**Teleport review**: [`app_review_remember`](/cua-sdk/reference/spaces/app-core/teleport-review#app_review_remember), [`app_review_remember_key`](/cua-sdk/reference/spaces/app-core/teleport-review#app_review_remember_key), [`app_review_remembered`](/cua-sdk/reference/spaces/app-core/teleport-review#app_review_remembered), [`AppConsentItem`](/cua-sdk/reference/spaces/app-core/teleport-review#appconsentitem-record), [`AppConsentKind`](/cua-sdk/reference/spaces/app-core/teleport-review#appconsentkind-enum), [`AppInstallCuaPrompt`](/cua-sdk/reference/spaces/app-core/teleport-review#appinstallcuaprompt-record), [`AppPlanStepView`](/cua-sdk/reference/spaces/app-core/teleport-review#appplanstepview-record), [`AppRememberedChoice`](/cua-sdk/reference/spaces/app-core/teleport-review#apprememberedchoice-record), [`AppReviewChoice`](/cua-sdk/reference/spaces/app-core/teleport-review#appreviewchoice-record), [`AppReviewDomain`](/cua-sdk/reference/spaces/app-core/teleport-review#appreviewdomain-record), [`AppReviewToggle`](/cua-sdk/reference/spaces/app-core/teleport-review#appreviewtoggle-record), [`AppReviewView`](/cua-sdk/reference/spaces/app-core/teleport-review#appreviewview-record), [`AppSendSource`](/cua-sdk/reference/spaces/app-core/teleport-review#appsendsource-enum), [`AppVaultSource`](/cua-sdk/reference/spaces/app-core/teleport-review#appvaultsource-record)**Keyvault**: [`app_sensitive_group_sdk`](/cua-sdk/reference/spaces/app-core/keyvault#app_sensitive_group_sdk), [`AppSensitiveGroup`](/cua-sdk/reference/spaces/app-core/keyvault#appsensitivegroup-enum), [`AppSensitiveOption`](/cua-sdk/reference/spaces/app-core/keyvault#appsensitiveoption-record), [`KeyvaultClient`](/cua-sdk/reference/spaces/app-core/keyvault#keyvaultclient), [`KeyvaultOverview`](/cua-sdk/reference/spaces/app-core/keyvault#keyvaultoverview-record), [`kv_credential_form`](/cua-sdk/reference/spaces/app-core/keyvault#kv_credential_form), [`kv_duration`](/cua-sdk/reference/spaces/app-core/keyvault#kv_duration), [`kv_labels`](/cua-sdk/reference/spaces/app-core/keyvault#kv_labels), [`kv_overview_from_json`](/cua-sdk/reference/spaces/app-core/keyvault#kv_overview_from_json), [`kv_passphrase_check`](/cua-sdk/reference/spaces/app-core/keyvault#kv_passphrase_check), [`kv_prune_dismissed`](/cua-sdk/reference/spaces/app-core/keyvault#kv_prune_dismissed), [`kv_recovery_key_text`](/cua-sdk/reference/spaces/app-core/keyvault#kv_recovery_key_text), [`kv_sharing_label`](/cua-sdk/reference/spaces/app-core/keyvault#kv_sharing_label), [`kv_signed_in_spaces`](/cua-sdk/reference/spaces/app-core/keyvault#kv_signed_in_spaces), [`kv_space_access_key`](/cua-sdk/reference/spaces/app-core/keyvault#kv_space_access_key), [`kv_visible_sharing_label`](/cua-sdk/reference/spaces/app-core/keyvault#kv_visible_sharing_label), [`KvAccessRequest`](/cua-sdk/reference/spaces/app-core/keyvault#kvaccessrequest-record), [`KvAuditEntry`](/cua-sdk/reference/spaces/app-core/keyvault#kvauditentry-record), [`KvCaller`](/cua-sdk/reference/spaces/app-core/keyvault#kvcaller-record), [`KvCommand`](/cua-sdk/reference/spaces/app-core/keyvault#kvcommand-enum), [`KvCredentialForm`](/cua-sdk/reference/spaces/app-core/keyvault#kvcredentialform-record), [`KvDelivery`](/cua-sdk/reference/spaces/app-core/keyvault#kvdelivery-record), [`KvDomainCount`](/cua-sdk/reference/spaces/app-core/keyvault#kvdomaincount-record), [`KvFavicon`](/cua-sdk/reference/spaces/app-core/keyvault#kvfavicon-record), [`KvFormMode`](/cua-sdk/reference/spaces/app-core/keyvault#kvformmode-enum), [`KvGrant`](/cua-sdk/reference/spaces/app-core/keyvault#kvgrant-record), [`KvInventory`](/cua-sdk/reference/spaces/app-core/keyvault#kvinventory-record), [`KvItem`](/cua-sdk/reference/spaces/app-core/keyvault#kvitem-record), [`KvItemPolicy`](/cua-sdk/reference/spaces/app-core/keyvault#kvitempolicy-record), [`KvLabels`](/cua-sdk/reference/spaces/app-core/keyvault#kvlabels-record), [`KvMethod`](/cua-sdk/reference/spaces/app-core/keyvault#kvmethod-enum), [`KvOutcome`](/cua-sdk/reference/spaces/app-core/keyvault#kvoutcome-enum), [`KvPassphraseCheck`](/cua-sdk/reference/spaces/app-core/keyvault#kvpassphrasecheck-record), [`KvPending`](/cua-sdk/reference/spaces/app-core/keyvault#kvpending-record), [`KvRule`](/cua-sdk/reference/spaces/app-core/keyvault#kvrule-record), [`KvRuleCaller`](/cua-sdk/reference/spaces/app-core/keyvault#kvrulecaller-record), [`KvSelector`](/cua-sdk/reference/spaces/app-core/keyvault#kvselector-enum), [`KvSigning`](/cua-sdk/reference/spaces/app-core/keyvault#kvsigning-enum), [`KvStatus`](/cua-sdk/reference/spaces/app-core/keyvault#kvstatus-record), [`KvStrength`](/cua-sdk/reference/spaces/app-core/keyvault#kvstrength-enum), [`KvVerification`](/cua-sdk/reference/spaces/app-core/keyvault#kvverification-record)diff --git a/docs/content/docs/cua-sdk/reference/spaces/app-core/meta.json b/docs/content/docs/cua-sdk/reference/spaces/app-core/meta.jsonindex 60bba8f90d..58c590eb3b 100644--- a/docs/content/docs/cua-sdk/reference/spaces/app-core/meta.json+++ b/docs/content/docs/cua-sdk/reference/spaces/app-core/meta.json@@ -22,6 +22,7 @@"onboarding-settings","about","billing",+ "relay","this-machine","window","devices",diff --git a/docs/content/docs/cua-sdk/reference/spaces/app-core/relay.mdx b/docs/content/docs/cua-sdk/reference/spaces/app-core/relay.mdxnew file mode 100644index 0000000000..0ee033aa51--- /dev/null+++ b/docs/content/docs/cua-sdk/reference/spaces/app-core/relay.mdx@@ -0,0 +1,125 @@+---+title: "Relay usage"+description: "The Relay usage row in Settings and the notice past the monthly relay allowance."+---++{/*+ AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY+ Generated by: pnpm --dir docs docs:generate:cua-sdk+ Source: cua-bindgen docs --namespace cua_spaces_ffi (UniFFI metadata of libcua_spaces_ffi)+ Version: 0.4.1+*/}++import { Callout } from 'fumadocs-ui/components/callout';+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';++<Callout title="Cua Spaces app export">+These APIs are part of the Cua Spaces app export for building Spaces UIs. They are source-available under FSL-1.1-MIT and ship for Swift only (`import CuaSpacesFFI`); the Rust tab shows the `cua-spaces-ffi` crate they come from. The open source SDK packages for Python, TypeScript and Kotlin do not include them.+</Callout>++`app_relay_usage` reads the account's relay allowance this month from the relay (`GET /v1/usage`, as `cua usage` does) with the session's `Devices` and an account token. `app_relay_usage_view` derives the Settings row (`AppRelayUsageView`) and, past the allowance, `AppRelayAllowanceNotice`: one line with Upgrade, dismissed per month and reason. Nothing stops at the limit.++## `AppRelayAllowanceNotice` record++| Field | Type | Default | Description |+| --- | --- | --- | --- |+| `text` | `String` | | "You've used your free relay allowance for this month. ..." |+| `upgrade` | `String` | | `UPGRADE`. |+| `upgrade_url` / `upgradeUrl` | `Option<String>` | | What Upgrade opens; none: no Upgrade button. |+| `dismiss` | `String` | | `DISMISS`. |+| `dismiss_key` / `dismissKey` | `String` | | What a dismissal remembers: the month and the reasons. A new month, or another limit reached, shows the notice again. |++## `AppRelayUsage` record++Returned by [`app_relay_usage`](#app_relay_usage).++| Field | Type | Default | Description |+| --- | --- | --- | --- |+| `metered` | `bool` | | The relay meters this account (false: no allowance applies). |+| `period` | `String` | | The month counted (`2026-10`). |+| `plan` | `String` | | `free`, `pro`, `team`, ... |+| `team` | [`Option<AppRelayUsageTeam>`](#apprelayusageteam-record) | | The team whose allowance is pooled. |+| `live_sessions` / `liveSessions` | `u32` | | Live sessions now. |+| `live_sessions_limit` / `liveSessionsLimit` | `Option<u32>` | | Live sessions allowed at once (none: no limit). |+| `hours_used` / `hoursUsed` | `f64` | | Relay hours used this month (the team's, when pooled). |+| `hours_limit` / `hoursLimit` | `Option<f64>` | | Relay hours allowed this month (none: no limit). |+| `my_hours_used` / `myHoursUsed` | `f64` | | This account's own relay hours this month. |+| `soft_limit_reached` / `softLimitReached` | `bool` | | Past the allowance (sessions keep working). |+| `reasons` | `Vec<String>` | | What is past it: `sessions` and/or `hours`. |+| `upgrade_url` / `upgradeUrl` | `Option<String>` | | Where to get more (https only; see `checked`). |++## `AppRelayUsageTeam` record++| Field | Type | Default | Description |+| --- | --- | --- | --- |+| `id` | `String` | | Team id. |+| `seats` | `u32` | | Seats sharing the allowance. |++## `AppRelayUsageView` record++Returned by [`app_relay_usage_view`](#app_relay_usage_view).++| Field | Type | Default | Description |+| --- | --- | --- | --- |+| `label` | `String` | | `ROW_LABEL`. |+| `line` | `String` | | "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month", then the team pool when there is one. |+| `plan` | `String` | | "Free plan" (empty when the relay names none). |+| `notice` | [`Option<AppRelayAllowanceNotice>`](#apprelayallowancenotice-record) | | Past the allowance. |++## `app_relay_usage`++The account's relay allowance this month (`GET /v1/usage` on the relay+`devices` uses, as `cua usage` reads it) with `account_token`; none+from a relay that meters nothing. Both Spaces apps read it here.++<Tabs items={['Swift', 'Rust']} groupId="sdk-lang" persist>+<Tab value="Swift">++```swift+func appRelayUsage(devices: Devices, accountToken: String) async throws -> AppRelayUsage?+```++</Tab>+<Tab value="Rust">++```rust+pub async fn app_relay_usage(devices: Arc<Devices>, account_token: String) -> Result<Option<AppRelayUsage>, CuaError>+```++</Tab>+</Tabs>++| Parameter | Type | Default |+| --- | --- | --- |+| `devices` | [`Devices`](/cua-sdk/reference/spaces/devices#devices) | required |+| `account_token` | `String` | required |++**Returns** [`Option<AppRelayUsage>`](#apprelayusage-record) · **Async** · **Raises** [`CuaError`](/cua-sdk/reference/errors)++## `app_relay_usage_view`++Settings' "Relay usage" row and the notice past the allowance; none+when the relay meters nothing.++<Tabs items={['Swift', 'Rust']} groupId="sdk-lang" persist>+<Tab value="Swift">++```swift+func appRelayUsageView(usage: AppRelayUsage) -> AppRelayUsageView?+```++</Tab>+<Tab value="Rust">++```rust+pub fn app_relay_usage_view(usage: AppRelayUsage) -> Option<AppRelayUsageView>+```++</Tab>+</Tabs>++| Parameter | Type | Default |+| --- | --- | --- |+| `usage` | [`AppRelayUsage`](#apprelayusage-record) | required |++**Returns** [`Option<AppRelayUsageView>`](#apprelayusageview-record)diff --git a/docs/content/docs/cua-sdk/reference/types.mdx b/docs/content/docs/cua-sdk/reference/types.mdxindex 0da3f36090..933a4bbecb 100644--- a/docs/content/docs/cua-sdk/reference/types.mdx+++ b/docs/content/docs/cua-sdk/reference/types.mdx@@ -50,7 +50,7 @@ Renamed members: in Kotlin, objects implement `AutoCloseable`, whose `close()` f292 items. Methods are listed on their object.-The 750 items of the Cua Spaces app export (source-available, FSL-1.1-MIT, Swift only) are listed on their pages: [Decoded media](/cua-sdk/reference/spaces/decoded-media), [Host teleport](/cua-sdk/reference/spaces/teleport-host), [Teleport an app](/cua-sdk/reference/spaces/teleport-apps), [Spaces app core](/cua-sdk/reference/spaces/app-core#all-items), [App core: Cua Volume storage, mount and sync](/cua-sdk/reference/spaces/volume-app-core#all-items), [App core: agents, drive, notifications](/cua-sdk/reference/spaces/agents-app-core#all-items), [Getting started and the command palette](/cua-sdk/reference/spaces/app-checklist-palette).+The 756 items of the Cua Spaces app export (source-available, FSL-1.1-MIT, Swift only) are listed on their pages: [Decoded media](/cua-sdk/reference/spaces/decoded-media), [Host teleport](/cua-sdk/reference/spaces/teleport-host), [Teleport an app](/cua-sdk/reference/spaces/teleport-apps), [Spaces app core](/cua-sdk/reference/spaces/app-core#all-items), [App core: Cua Volume storage, mount and sync](/cua-sdk/reference/spaces/volume-app-core#all-items), [App core: agents, drive, notifications](/cua-sdk/reference/spaces/agents-app-core#all-items), [Getting started and the command palette](/cua-sdk/reference/spaces/app-checklist-palette).| Item | Kind | Summary || --- | --- | --- |diff --git a/libs/cua/crates/cua-spaces-app-core/src/dispatch.rs b/libs/cua/crates/cua-spaces-app-core/src/dispatch.rsindex bac5e7a5d2..4d59ab12bc 100644--- a/libs/cua/crates/cua-spaces-app-core/src/dispatch.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/dispatch.rs@@ -16,8 +16,8 @@ use crate::teleport::{drag, flow, grid, transfer, windows};use crate::{CoreError, about, agent_keys, agents, checklist, cloud_connect, devices, drive_mount_preview,drive_page, drive_settings, driver_preview, experiments, host, login_item, machines, notch,- notifications, onboarding, onboarding_preview, palette, paths, persistent, presence, settings,- share, telemetry, window, wizard,+ notifications, onboarding, onboarding_preview, palette, paths, persistent, presence,+ relay_usage, settings, share, telemetry, window, wizard,};use serde::Serialize;use serde::de::DeserializeOwned;@@ -282,6 +282,7 @@ pub const METHODS: &[&str] = &["experiments.page","experiments.choose","wizard.placementOptions",+ "relayUsage.view",];struct Args(Value);@@ -454,6 +455,7 @@ pub fn call_value(method: &str, args: Value) -> Result<Value, CoreError> {a.get::<Option<SpaceOs>>("hostOs")?.unwrap_or(SpaceOs::Macos),)),+ "relayUsage.view" => out(relay_usage::view(&a.get("usage")?)),"wizard.pickerImages" => out(wizard::picker_images()),"wizard.pickerGroups" => out(wizard::picker_groups()),"wizard.findImage" => out(wizard::find_image(&a.get::<String>("ref")?)),diff --git a/libs/cua/crates/cua-spaces-app-core/src/lib.rs b/libs/cua/crates/cua-spaces-app-core/src/lib.rsindex 5d5252137d..41fe2320bb 100644--- a/libs/cua/crates/cua-spaces-app-core/src/lib.rs+++ b/libs/cua/crates/cua-spaces-app-core/src/lib.rs@@ -83,6 +83,7 @@ pub mod parity;pub mod paths;pub mod persistent;pub mod presence;+pub mod relay_usage;pub mod settings;pub mod share;pub mod spaces;diff --git a/libs/cua/crates/cua-spaces-app-core/src/relay_usage.rs b/libs/cua/crates/cua-spaces-app-core/src/relay_usage.rsnew file mode 100644index 0000000000..bcb9458ebc--- /dev/null+++ b/libs/cua/crates/cua-spaces-app-core/src/relay_usage.rs@@ -0,0 +1,315 @@+// SPDX-License-Identifier: FSL-1.1-MIT+// Copyright (c) 2026 Cua AI, Inc.++//! The account's relay allowance this month, as every app shows it: one+//! Settings row ("Relay usage") and, past the allowance, one dismissible+//! line above every page with Upgrade. A live session is a connection to+//! one of the user's remote machines through the hosted relay; relay hours+//! are the time with at least one. Nothing stops at the limit, so the apps+//! only say so.+//!+//! Plain data in (the relay's `GET /v1/usage`, as `cua_host::RelayUsage`+//! reads it and `cua usage` prints it) and plain data out. Every app reads+//! it through the same client (`app_relay_usage` in the Spaces app export)+//! and draws it from [`view`], so the words and the threshold live here.++use serde::{Deserialize, Serialize};++/// The Settings row's label.+pub const ROW_LABEL: &str = "Relay usage";++/// The notice's button.+pub const UPGRADE: &str = "Upgrade";++/// The notice's close button (accessibility label).+pub const DISMISS: &str = "Dismiss";++/// The team whose allowance is pooled.+#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]+#[serde(rename_all = "camelCase", default)]+pub struct RelayUsageTeam {+ /// Team id.+ pub id: String,+ /// Seats sharing the allowance.+ pub seats: u32,+}++/// The relay's answer (`cua_host::RelayUsage`, camelCase: the web bridge's+/// `relay.usage` result). Every field has a default.+#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]+#[serde(rename_all = "camelCase", default)]+pub struct RelayUsage {+ /// The relay meters this account (false: no allowance applies).+ pub metered: bool,+ /// The month counted (`2026-10`).+ pub period: String,+ /// `free`, `pro`, `team`, ...+ pub plan: String,+ /// The team whose allowance is pooled.+ pub team: Option<RelayUsageTeam>,+ /// Live sessions now.+ pub live_sessions: u32,+ /// Live sessions allowed at once (none: no limit).+ pub live_sessions_limit: Option<u32>,+ /// Relay hours used this month (the team's, when pooled).+ pub hours_used: f64,+ /// Relay hours allowed this month (none: no limit).+ pub hours_limit: Option<f64>,+ /// This account's own relay hours this month.+ pub my_hours_used: f64,+ /// Past the allowance (sessions keep working).+ pub soft_limit_reached: bool,+ /// What is past it: `sessions` and/or `hours`.+ pub reasons: Vec<String>,+ /// Where to get more (https only; see [`checked`]).+ pub upgrade_url: Option<String>,+}++/// The line above every page past the allowance.+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub struct RelayAllowanceNotice {+ /// "You've used your free relay allowance for this month. ..."+ pub text: String,+ /// [`UPGRADE`].+ pub upgrade: String,+ /// What Upgrade opens; none: no Upgrade button.+ pub upgrade_url: Option<String>,+ /// [`DISMISS`].+ pub dismiss: String,+ /// What a dismissal remembers: the month and the reasons. A new month,+ /// or another limit reached, shows the notice again.+ pub dismiss_key: String,+}++/// The allowance as drawn.+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]+#[serde(rename_all = "camelCase")]+pub struct RelayUsageView {+ /// [`ROW_LABEL`].+ pub label: String,+ /// "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month", then the+ /// team pool when there is one.+ pub line: String,+ /// "Free plan" (empty when the relay names none).+ pub plan: String,+ /// Past the allowance.+ pub notice: Option<RelayAllowanceNotice>,+}++/// The answer as the apps keep it: an upgrade link that is not https is+/// dropped (it is opened in the browser without asking).+pub fn checked(mut usage: RelayUsage) -> RelayUsage {+ if !usage+ .upgrade_url+ .as_deref()+ .is_some_and(|u| u.starts_with("https://"))+ {+ usage.upgrade_url = None;+ }+ usage+}++/// `20` or `6.5`.+pub fn hours(h: f64) -> String {+ let tenths = (h * 10.0).round() / 10.0;+ if tenths.fract() == 0.0 {+ format!("{tenths:.0}")+ } else {+ format!("{tenths:.1}")+ }+}++/// "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month".+pub fn usage_line(u: &RelayUsage) -> String {+ let of = |used: String, limit: Option<String>| match limit {+ Some(l) => format!("{used} of {l}"),+ None => used,+ };+ let sessions = of(+ u.live_sessions.to_string(),+ u.live_sessions_limit.map(|l| l.to_string()),+ );+ let relay_hours = of(hours(u.hours_used), u.hours_limit.map(hours));+ format!("Live sessions {sessions} \u{b7} Relay hours {relay_hours} this month")+}++/// "Free plan", "Pro plan"; empty when the relay names none.+pub fn plan_text(plan: &str) -> String {+ let mut c = plan.trim().chars();+ match c.next() {+ Some(f) => format!("{}{} plan", f.to_uppercase(), c.as_str()),+ None => String::new(),+ }+}++/// See [`RelayAllowanceNotice::dismiss_key`].+pub fn dismiss_key(u: &RelayUsage) -> String {+ let mut reasons = u.reasons.clone();+ reasons.sort();+ format!("{}:{}", u.period, reasons.join(","))+}++/// The notice's sentence.+pub fn notice_text(u: &RelayUsage) -> String {+ let free = if u.plan == "free" { "free " } else { "" };+ format!(+ "You've used your {free}relay allowance for this month. Your Spaces keep working. Upgrade for more."+ )+}++/// The row and the notice; none when the relay meters nothing (the apps+/// show nothing about it).+pub fn view(u: &RelayUsage) -> Option<RelayUsageView> {+ if !u.metered {+ return None;+ }+ let team = u+ .team+ .as_ref()+ .map(|t| {+ format!(+ " \u{b7} Team pool, {} {}",+ t.seats,+ if t.seats == 1 { "seat" } else { "seats" }+ )+ })+ .unwrap_or_default();+ Some(RelayUsageView {+ label: ROW_LABEL.into(),+ line: format!("{}{team}", usage_line(u)),+ plan: plan_text(&u.plan),+ notice: u.soft_limit_reached.then(|| RelayAllowanceNotice {+ text: notice_text(u),+ upgrade: UPGRADE.into(),+ upgrade_url: checked(u.clone()).upgrade_url,+ dismiss: DISMISS.into(),+ dismiss_key: dismiss_key(u),+ }),+ })+}++#[cfg(test)]+mod tests {+ use super::*;++ fn free() -> RelayUsage {+ RelayUsage {+ metered: true,+ period: "2026-10".into(),+ plan: "free".into(),+ team: None,+ live_sessions: 1,+ live_sessions_limit: Some(2),+ hours_used: 6.5,+ hours_limit: Some(20.0),+ my_hours_used: 6.5,+ soft_limit_reached: false,+ reasons: vec![],+ upgrade_url: Some("https://cua.ai/pricing".into()),+ }+ }++ #[test]+ fn within_the_allowance_one_row_and_no_notice() {+ let v = view(&free()).unwrap();+ assert_eq!(v.label, "Relay usage");+ assert_eq!(+ v.line,+ "Live sessions 1 of 2 \u{b7} Relay hours 6.5 of 20 this month"+ );+ assert_eq!(v.plan, "Free plan");+ assert_eq!(v.notice, None);+ }++ #[test]+ fn past_the_allowance_the_notice_says_spaces_keep_working() {+ let u = RelayUsage {+ hours_used: 20.24,+ soft_limit_reached: true,+ reasons: vec!["sessions".into(), "hours".into()],+ team: Some(RelayUsageTeam {+ id: "acme".into(),+ seats: 3,+ }),+ ..free()+ };+ let v = view(&u).unwrap();+ assert_eq!(+ v.line,+ "Live sessions 1 of 2 \u{b7} Relay hours 20.2 of 20 this month \u{b7} Team pool, 3 seats"+ );+ let n = v.notice.unwrap();+ assert_eq!(+ n.text,+ "You've used your free relay allowance for this month. Your Spaces keep working. Upgrade for more."+ );+ assert_eq!(n.upgrade, "Upgrade");+ assert_eq!(n.upgrade_url.as_deref(), Some("https://cua.ai/pricing"));+ assert_eq!(n.dismiss_key, "2026-10:hours,sessions");++ let pro = RelayUsage {+ plan: "pro".into(),+ team: Some(RelayUsageTeam {+ id: "acme".into(),+ seats: 1,+ }),+ ..u+ };+ let v = view(&pro).unwrap();+ assert!(v.line.ends_with("Team pool, 1 seat"), "{}", v.line);+ assert_eq!(v.plan, "Pro plan");+ assert!(v.notice.unwrap().text.starts_with("You've used your relay"));+ }++ #[test]+ fn no_limits_and_unmetered() {+ let u = RelayUsage {+ live_sessions_limit: None,+ hours_limit: None,+ hours_used: 3.0,+ plan: String::new(),+ ..free()+ };+ let v = view(&u).unwrap();+ assert_eq!(v.line, "Live sessions 1 \u{b7} Relay hours 3 this month");+ assert_eq!(v.plan, "");+ assert_eq!(+ view(&RelayUsage {+ metered: false,+ ..free()+ }),+ None+ );+ }++ #[test]+ fn only_https_upgrade_links_are_kept() {+ for bad in ["http://cua.ai/pricing", "javascript:alert(1)", ""] {+ let u = RelayUsage {+ upgrade_url: Some(bad.into()),+ soft_limit_reached: true,+ ..free()+ };+ assert_eq!(checked(u.clone()).upgrade_url, None, "{bad}");+ assert_eq!(view(&u).unwrap().notice.unwrap().upgrade_url, None);+ }+ }++ #[test]+ fn reads_the_bridge_shape_with_defaults() {+ let u: RelayUsage = serde_json::from_str(+ r#"{"metered":true,"period":"2026-10","plan":"free","team":{"id":"t","seats":2},+ "liveSessions":0,"liveSessionsLimit":null,"hoursUsed":1.25,"hoursLimit":20,+ "myHoursUsed":1,"softLimitReached":false,"reasons":[],"upgradeUrl":null}"#,+ )+ .unwrap();+ assert_eq!(u.team.as_ref().map(|t| t.seats), Some(2));+ assert_eq!(hours(u.hours_used), "1.3");+ let bare: RelayUsage = serde_json::from_str(r#"{"metered":true}"#).unwrap();+ assert_eq!(+ view(&bare).unwrap().line,+ "Live sessions 0 \u{b7} Relay hours 0 this month"+ );+ }+}diff --git a/libs/cua/crates/cua-spaces-ffi/src/app_core.rs b/libs/cua/crates/cua-spaces-ffi/src/app_core.rsindex eb829f4359..497e421cc3 100644--- a/libs/cua/crates/cua-spaces-ffi/src/app_core.rs+++ b/libs/cua/crates/cua-spaces-ffi/src/app_core.rs@@ -1866,6 +1866,51 @@ pub fn app_billing_status(status: cua_sdk::FleetBillingStatus) -> AppBillingStat}}+/// The account's relay allowance this month (`GET /v1/usage` on the relay+/// `devices` uses, as `cua usage` reads it) with `account_token`; none+/// from a relay that meters nothing. Both Spaces apps read it here.+#[uniffi::export]+pub async fn app_relay_usage(+ devices: Arc<cua_sdk::Devices>,+ account_token: String,+) -> Result<Option<AppRelayUsage>> {+ let relay = devices.relay_url();+ cua_sdk::support::run(async move {+ let usage = cua_host::RelayClient::new(&relay)?+ .usage(&account_token)+ .await?;+ Ok(usage.map(relay_usage))+ })+ .await+}++fn relay_usage(u: cua_host::RelayUsage) -> AppRelayUsage {+ core::relay_usage::checked(core::relay_usage::RelayUsage {+ metered: u.metered,+ period: u.period,+ plan: u.plan,+ team: u.team.map(|t| core::relay_usage::RelayUsageTeam {+ id: t.id,+ seats: t.seats,+ }),+ live_sessions: u.live_sessions,+ live_sessions_limit: u.live_sessions_limit,+ hours_used: u.hours_used,+ hours_limit: u.hours_limit,+ my_hours_used: u.my_hours_used,+ soft_limit_reached: u.soft_limit_reached,+ reasons: u.reasons,+ upgrade_url: u.upgrade_url,+ })+}++/// Settings' "Relay usage" row and the notice past the allowance; none+/// when the relay meters nothing.+#[uniffi::export]+pub fn app_relay_usage_view(usage: AppRelayUsage) -> Option<AppRelayUsageView> {+ core::relay_usage::view(&usage)+}+/// Reads the settings file (defaults when missing or damaged).#[uniffi::export]pub fn app_settings_load(path: String) -> AppSettings {@@ -2666,3 +2711,43 @@ mod keyvault_home_tests {);}}++#[cfg(test)]+mod relay_usage_tests {+ use super::*;++ #[test]+ fn the_relays_answer_reaches_the_core_with_only_https_upgrade_links() {+ let raw: cua_host::RelayUsage = serde_json::from_value(serde_json::json!({+ "metered": true, "period": "2026-10", "plan": "free",+ "team": { "id": "acme", "seats": 3 },+ "live_sessions": 2, "live_sessions_limit": 2, "hours_used": 21.0, "hours_limit": 20,+ "my_hours_used": 4.5, "soft_limit_reached": true, "reasons": ["hours"],+ "upgrade_url": "https://cua.ai/pricing"+ }))+ .unwrap();+ let u = relay_usage(raw.clone());+ assert_eq!(+ u.team.as_ref().map(|t| (t.id.as_str(), t.seats)),+ Some(("acme", 3))+ );+ assert_eq!((u.live_sessions, u.live_sessions_limit), (2, Some(2)));+ assert_eq!(+ (u.hours_used, u.hours_limit, u.my_hours_used),+ (21.0, Some(20.0), 4.5)+ );+ assert_eq!(u.reasons, vec!["hours".to_string()]);+ let notice = app_relay_usage_view(u).unwrap().notice.unwrap();+ assert_eq!(+ notice.upgrade_url.as_deref(),+ Some("https://cua.ai/pricing")+ );+ assert_eq!(notice.dismiss_key, "2026-10:hours");++ let plain = relay_usage(cua_host::RelayUsage {+ upgrade_url: Some("http://cua.ai/pricing".into()),+ ..raw+ });+ assert_eq!(plain.upgrade_url, None);+ }+}diff --git a/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs b/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rsindex 6b45cfaa7d..1bdd24d676 100644--- a/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs+++ b/libs/cua/crates/cua-spaces-ffi/src/app_core_types.rs@@ -9146,3 +9146,76 @@ pub struct AppPaletteEntry {/// Extra words it answers to ("create add").pub keywords: Option<String>,}++/// The team whose allowance is pooled.+pub type AppRelayUsageTeam = core::relay_usage::RelayUsageTeam;+#[uniffi::remote(Record)]+pub struct AppRelayUsageTeam {+ /// Team id.+ pub id: String,+ /// Seats sharing the allowance.+ pub seats: u32,+}++/// The relay's answer (`cua_host::RelayUsage`, camelCase: the web bridge's+/// `relay.usage` result). Every field has a default.+pub type AppRelayUsage = core::relay_usage::RelayUsage;+#[uniffi::remote(Record)]+pub struct AppRelayUsage {+ /// The relay meters this account (false: no allowance applies).+ pub metered: bool,+ /// The month counted (`2026-10`).+ pub period: String,+ /// `free`, `pro`, `team`, ...+ pub plan: String,+ /// The team whose allowance is pooled.+ pub team: Option<AppRelayUsageTeam>,+ /// Live sessions now.+ pub live_sessions: u32,+ /// Live sessions allowed at once (none: no limit).+ pub live_sessions_limit: Option<u32>,+ /// Relay hours used this month (the team's, when pooled).+ pub hours_used: f64,+ /// Relay hours allowed this month (none: no limit).+ pub hours_limit: Option<f64>,+ /// This account's own relay hours this month.+ pub my_hours_used: f64,+ /// Past the allowance (sessions keep working).+ pub soft_limit_reached: bool,+ /// What is past it: `sessions` and/or `hours`.+ pub reasons: Vec<String>,+ /// Where to get more (https only; see [`checked`]).+ pub upgrade_url: Option<String>,+}++/// The line above every page past the allowance.+pub type AppRelayAllowanceNotice = core::relay_usage::RelayAllowanceNotice;+#[uniffi::remote(Record)]+pub struct AppRelayAllowanceNotice {+ /// "You've used your free relay allowance for this month. ..."+ pub text: String,+ /// [`UPGRADE`].+ pub upgrade: String,+ /// What Upgrade opens; none: no Upgrade button.+ pub upgrade_url: Option<String>,+ /// [`DISMISS`].+ pub dismiss: String,+ /// What a dismissal remembers: the month and the reasons. A new month,+ /// or another limit reached, shows the notice again.+ pub dismiss_key: String,+}++/// The allowance as drawn.+pub type AppRelayUsageView = core::relay_usage::RelayUsageView;+#[uniffi::remote(Record)]+pub struct AppRelayUsageView {+ /// [`ROW_LABEL`].+ pub label: String,+ /// "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month", then the+ /// team pool when there is one.+ pub line: String,+ /// "Free plan" (empty when the relay names none).+ pub plan: String,+ /// Past the allowance.+ pub notice: Option<AppRelayAllowanceNotice>,+}diff --git a/libs/cua/scripts/generate-app-core-ffi.py b/libs/cua/scripts/generate-app-core-ffi.pyindex 02cdd89b7f..30474a9c72 100644--- a/libs/cua/scripts/generate-app-core-ffi.py+++ b/libs/cua/scripts/generate-app-core-ffi.py@@ -67,6 +67,7 @@ TYPES = [("telemetry.rs", "telemetry", ["TelemetrySignal"]),("checklist.rs", "checklist", ["ChecklistStep", "ChecklistState", "ChecklistAction", "ChecklistTransition", "ChecklistRow", "ChecklistView"]),("palette.rs", "palette", ["Keybinding", "PaletteEntry"]),+ ("relay_usage.rs", "relay_usage", ["RelayUsageTeam", "RelayUsage", "RelayAllowanceNotice", "RelayUsageView"]),]# FFI names that read better than the plain prefix.diff --git a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swiftindex 2a758fe087..a85c6f480f 100644--- a/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift+++ b/libs/spaces-app-swift/Sources/CuaSpacesFFI/CuaSpacesFFI.swift@@ -24996,6 +24996,424 @@ public func FfiConverterTypeAppRefreshReport_lower(_ value: AppRefreshReport) ->}+public struct AppRelayAllowanceNotice: Equatable, Hashable {+ /**+ * "You've used your free relay allowance for this month. ..."+ */+ public var text: String+ /**+ * [`UPGRADE`].+ */+ public var upgrade: String+ /**+ * What Upgrade opens; none: no Upgrade button.+ */+ public var upgradeUrl: String?+ /**+ * [`DISMISS`].+ */+ public var dismiss: String+ /**+ * What a dismissal remembers: the month and the reasons. A new month,+ * or another limit reached, shows the notice again.+ */+ public var dismissKey: String++ // Default memberwise initializers are never public by default, so we+ // declare one manually.+ public init(+ /**+ * "You've used your free relay allowance for this month. ..."+ */text: String,+ /**+ * [`UPGRADE`].+ */upgrade: String,+ /**+ * What Upgrade opens; none: no Upgrade button.+ */upgradeUrl: String?,+ /**+ * [`DISMISS`].+ */dismiss: String,+ /**+ * What a dismissal remembers: the month and the reasons. A new month,+ * or another limit reached, shows the notice again.+ */dismissKey: String) {+ self.text = text+ self.upgrade = upgrade+ self.upgradeUrl = upgradeUrl+ self.dismiss = dismiss+ self.dismissKey = dismissKey+ }+++++}++#if compiler(>=6)+extension AppRelayAllowanceNotice: Sendable {}+#endif++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public struct FfiConverterTypeAppRelayAllowanceNotice: FfiConverterRustBuffer {+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AppRelayAllowanceNotice {+ return+ try AppRelayAllowanceNotice(+ text: FfiConverterString.read(from: &buf),+ upgrade: FfiConverterString.read(from: &buf),+ upgradeUrl: FfiConverterOptionString.read(from: &buf),+ dismiss: FfiConverterString.read(from: &buf),+ dismissKey: FfiConverterString.read(from: &buf)+ )+ }++ public static func write(_ value: AppRelayAllowanceNotice, into buf: inout [UInt8]) {+ FfiConverterString.write(value.text, into: &buf)+ FfiConverterString.write(value.upgrade, into: &buf)+ FfiConverterOptionString.write(value.upgradeUrl, into: &buf)+ FfiConverterString.write(value.dismiss, into: &buf)+ FfiConverterString.write(value.dismissKey, into: &buf)+ }+}+++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayAllowanceNotice_lift(_ buf: RustBuffer) throws -> AppRelayAllowanceNotice {+ return try FfiConverterTypeAppRelayAllowanceNotice.lift(buf)+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayAllowanceNotice_lower(_ value: AppRelayAllowanceNotice) -> RustBuffer {+ return FfiConverterTypeAppRelayAllowanceNotice.lower(value)+}+++public struct AppRelayUsage: Equatable, Hashable {+ /**+ * The relay meters this account (false: no allowance applies).+ */+ public var metered: Bool+ /**+ * The month counted (`2026-10`).+ */+ public var period: String+ /**+ * `free`, `pro`, `team`, ...+ */+ public var plan: String+ /**+ * The team whose allowance is pooled.+ */+ public var team: AppRelayUsageTeam?+ /**+ * Live sessions now.+ */+ public var liveSessions: UInt32+ /**+ * Live sessions allowed at once (none: no limit).+ */+ public var liveSessionsLimit: UInt32?+ /**+ * Relay hours used this month (the team's, when pooled).+ */+ public var hoursUsed: Double+ /**+ * Relay hours allowed this month (none: no limit).+ */+ public var hoursLimit: Double?+ /**+ * This account's own relay hours this month.+ */+ public var myHoursUsed: Double+ /**+ * Past the allowance (sessions keep working).+ */+ public var softLimitReached: Bool+ /**+ * What is past it: `sessions` and/or `hours`.+ */+ public var reasons: [String]+ /**+ * Where to get more (https only; see [`checked`]).+ */+ public var upgradeUrl: String?++ // Default memberwise initializers are never public by default, so we+ // declare one manually.+ public init(+ /**+ * The relay meters this account (false: no allowance applies).+ */metered: Bool,+ /**+ * The month counted (`2026-10`).+ */period: String,+ /**+ * `free`, `pro`, `team`, ...+ */plan: String,+ /**+ * The team whose allowance is pooled.+ */team: AppRelayUsageTeam?,+ /**+ * Live sessions now.+ */liveSessions: UInt32,+ /**+ * Live sessions allowed at once (none: no limit).+ */liveSessionsLimit: UInt32?,+ /**+ * Relay hours used this month (the team's, when pooled).+ */hoursUsed: Double,+ /**+ * Relay hours allowed this month (none: no limit).+ */hoursLimit: Double?,+ /**+ * This account's own relay hours this month.+ */myHoursUsed: Double,+ /**+ * Past the allowance (sessions keep working).+ */softLimitReached: Bool,+ /**+ * What is past it: `sessions` and/or `hours`.+ */reasons: [String],+ /**+ * Where to get more (https only; see [`checked`]).+ */upgradeUrl: String?) {+ self.metered = metered+ self.period = period+ self.plan = plan+ self.team = team+ self.liveSessions = liveSessions+ self.liveSessionsLimit = liveSessionsLimit+ self.hoursUsed = hoursUsed+ self.hoursLimit = hoursLimit+ self.myHoursUsed = myHoursUsed+ self.softLimitReached = softLimitReached+ self.reasons = reasons+ self.upgradeUrl = upgradeUrl+ }+++++}++#if compiler(>=6)+extension AppRelayUsage: Sendable {}+#endif++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public struct FfiConverterTypeAppRelayUsage: FfiConverterRustBuffer {+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AppRelayUsage {+ return+ try AppRelayUsage(+ metered: FfiConverterBool.read(from: &buf),+ period: FfiConverterString.read(from: &buf),+ plan: FfiConverterString.read(from: &buf),+ team: FfiConverterOptionTypeAppRelayUsageTeam.read(from: &buf),+ liveSessions: FfiConverterUInt32.read(from: &buf),+ liveSessionsLimit: FfiConverterOptionUInt32.read(from: &buf),+ hoursUsed: FfiConverterDouble.read(from: &buf),+ hoursLimit: FfiConverterOptionDouble.read(from: &buf),+ myHoursUsed: FfiConverterDouble.read(from: &buf),+ softLimitReached: FfiConverterBool.read(from: &buf),+ reasons: FfiConverterSequenceString.read(from: &buf),+ upgradeUrl: FfiConverterOptionString.read(from: &buf)+ )+ }++ public static func write(_ value: AppRelayUsage, into buf: inout [UInt8]) {+ FfiConverterBool.write(value.metered, into: &buf)+ FfiConverterString.write(value.period, into: &buf)+ FfiConverterString.write(value.plan, into: &buf)+ FfiConverterOptionTypeAppRelayUsageTeam.write(value.team, into: &buf)+ FfiConverterUInt32.write(value.liveSessions, into: &buf)+ FfiConverterOptionUInt32.write(value.liveSessionsLimit, into: &buf)+ FfiConverterDouble.write(value.hoursUsed, into: &buf)+ FfiConverterOptionDouble.write(value.hoursLimit, into: &buf)+ FfiConverterDouble.write(value.myHoursUsed, into: &buf)+ FfiConverterBool.write(value.softLimitReached, into: &buf)+ FfiConverterSequenceString.write(value.reasons, into: &buf)+ FfiConverterOptionString.write(value.upgradeUrl, into: &buf)+ }+}+++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayUsage_lift(_ buf: RustBuffer) throws -> AppRelayUsage {+ return try FfiConverterTypeAppRelayUsage.lift(buf)+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayUsage_lower(_ value: AppRelayUsage) -> RustBuffer {+ return FfiConverterTypeAppRelayUsage.lower(value)+}+++public struct AppRelayUsageTeam: Equatable, Hashable {+ /**+ * Team id.+ */+ public var id: String+ /**+ * Seats sharing the allowance.+ */+ public var seats: UInt32++ // Default memberwise initializers are never public by default, so we+ // declare one manually.+ public init(+ /**+ * Team id.+ */id: String,+ /**+ * Seats sharing the allowance.+ */seats: UInt32) {+ self.id = id+ self.seats = seats+ }+++++}++#if compiler(>=6)+extension AppRelayUsageTeam: Sendable {}+#endif++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public struct FfiConverterTypeAppRelayUsageTeam: FfiConverterRustBuffer {+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AppRelayUsageTeam {+ return+ try AppRelayUsageTeam(+ id: FfiConverterString.read(from: &buf),+ seats: FfiConverterUInt32.read(from: &buf)+ )+ }++ public static func write(_ value: AppRelayUsageTeam, into buf: inout [UInt8]) {+ FfiConverterString.write(value.id, into: &buf)+ FfiConverterUInt32.write(value.seats, into: &buf)+ }+}+++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayUsageTeam_lift(_ buf: RustBuffer) throws -> AppRelayUsageTeam {+ return try FfiConverterTypeAppRelayUsageTeam.lift(buf)+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayUsageTeam_lower(_ value: AppRelayUsageTeam) -> RustBuffer {+ return FfiConverterTypeAppRelayUsageTeam.lower(value)+}+++public struct AppRelayUsageView: Equatable, Hashable {+ /**+ * [`ROW_LABEL`].+ */+ public var label: String+ /**+ * "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month", then the+ * team pool when there is one.+ */+ public var line: String+ /**+ * "Free plan" (empty when the relay names none).+ */+ public var plan: String+ /**+ * Past the allowance.+ */+ public var notice: AppRelayAllowanceNotice?++ // Default memberwise initializers are never public by default, so we+ // declare one manually.+ public init(+ /**+ * [`ROW_LABEL`].+ */label: String,+ /**+ * "Live sessions 1 of 2 · Relay hours 6.5 of 20 this month", then the+ * team pool when there is one.+ */line: String,+ /**+ * "Free plan" (empty when the relay names none).+ */plan: String,+ /**+ * Past the allowance.+ */notice: AppRelayAllowanceNotice?) {+ self.label = label+ self.line = line+ self.plan = plan+ self.notice = notice+ }+++++}++#if compiler(>=6)+extension AppRelayUsageView: Sendable {}+#endif++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public struct FfiConverterTypeAppRelayUsageView: FfiConverterRustBuffer {+ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> AppRelayUsageView {+ return+ try AppRelayUsageView(+ label: FfiConverterString.read(from: &buf),+ line: FfiConverterString.read(from: &buf),+ plan: FfiConverterString.read(from: &buf),+ notice: FfiConverterOptionTypeAppRelayAllowanceNotice.read(from: &buf)+ )+ }++ public static func write(_ value: AppRelayUsageView, into buf: inout [UInt8]) {+ FfiConverterString.write(value.label, into: &buf)+ FfiConverterString.write(value.line, into: &buf)+ FfiConverterString.write(value.plan, into: &buf)+ FfiConverterOptionTypeAppRelayAllowanceNotice.write(value.notice, into: &buf)+ }+}+++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayUsageView_lift(_ buf: RustBuffer) throws -> AppRelayUsageView {+ return try FfiConverterTypeAppRelayUsageView.lift(buf)+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+public func FfiConverterTypeAppRelayUsageView_lower(_ value: AppRelayUsageView) -> RustBuffer {+ return FfiConverterTypeAppRelayUsageView.lower(value)+}++public struct AppRememberedChoice: Equatable, Hashable {/*** `<app>|<space>`.@@ -56637,6 +57055,102 @@ fileprivate struct FfiConverterOptionTypeAppPreviewPoint: FfiConverterRustBuffer}}+#if swift(>=5.8)+@_documentation(visibility: private)+#endif+fileprivate struct FfiConverterOptionTypeAppRelayAllowanceNotice: FfiConverterRustBuffer {+ typealias SwiftType = AppRelayAllowanceNotice?++ public static func write(_ value: SwiftType, into buf: inout [UInt8]) {+ guard let value = value else {+ writeInt(&buf, Int8(0))+ return+ }+ writeInt(&buf, Int8(1))+ FfiConverterTypeAppRelayAllowanceNotice.write(value, into: &buf)+ }++ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {+ switch try readInt(&buf) as Int8 {+ case 0: return nil+ case 1: return try FfiConverterTypeAppRelayAllowanceNotice.read(from: &buf)+ default: throw UniffiInternalError.unexpectedOptionalTag+ }+ }+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+fileprivate struct FfiConverterOptionTypeAppRelayUsage: FfiConverterRustBuffer {+ typealias SwiftType = AppRelayUsage?++ public static func write(_ value: SwiftType, into buf: inout [UInt8]) {+ guard let value = value else {+ writeInt(&buf, Int8(0))+ return+ }+ writeInt(&buf, Int8(1))+ FfiConverterTypeAppRelayUsage.write(value, into: &buf)+ }++ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {+ switch try readInt(&buf) as Int8 {+ case 0: return nil+ case 1: return try FfiConverterTypeAppRelayUsage.read(from: &buf)+ default: throw UniffiInternalError.unexpectedOptionalTag+ }+ }+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+fileprivate struct FfiConverterOptionTypeAppRelayUsageTeam: FfiConverterRustBuffer {+ typealias SwiftType = AppRelayUsageTeam?++ public static func write(_ value: SwiftType, into buf: inout [UInt8]) {+ guard let value = value else {+ writeInt(&buf, Int8(0))+ return+ }+ writeInt(&buf, Int8(1))+ FfiConverterTypeAppRelayUsageTeam.write(value, into: &buf)+ }++ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {+ switch try readInt(&buf) as Int8 {+ case 0: return nil+ case 1: return try FfiConverterTypeAppRelayUsageTeam.read(from: &buf)+ default: throw UniffiInternalError.unexpectedOptionalTag+ }+ }+}++#if swift(>=5.8)+@_documentation(visibility: private)+#endif+fileprivate struct FfiConverterOptionTypeAppRelayUsageView: FfiConverterRustBuffer {+ typealias SwiftType = AppRelayUsageView?++ public static func write(_ value: SwiftType, into buf: inout [UInt8]) {+ guard let value = value else {+ writeInt(&buf, Int8(0))+ return+ }+ writeInt(&buf, Int8(1))+ FfiConverterTypeAppRelayUsageView.write(value, into: &buf)+ }++ public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> SwiftType {+ switch try readInt(&buf) as Int8 {+ case 0: return nil+ case 1: return try FfiConverterTypeAppRelayUsageView.read(from: &buf)+ default: throw UniffiInternalError.unexpectedOptionalTag+ }+ }+}+#if swift(>=5.8)@_documentation(visibility: private)#endif@@ -63531,6 +64045,36 @@ public func appRefreshReportFromJson(json: String)throws -> AppRefreshReport {)})}+/**+ * The account's relay allowance this month (`GET /v1/usage` on the relay+ * `devices` uses, as `cua usage` reads it) with `account_token`; none+ * from a relay that meters nothing. Both Spaces apps read it here.+ */+public func appRelayUsage(devices: Devices, accountToken: String)async throws -> AppRelayUsage? {+ return+ try await uniffiRustCallAsync(+ rustFutureFunc: {+ uniffi_cua_spaces_ffi_fn_func_app_relay_usage(FfiConverterTypeDevices_lower(devices),FfiConverterString.lower(accountToken)+ )+ },+ pollFunc: ffi_cua_spaces_ffi_rust_future_poll_rust_buffer,+ completeFunc: ffi_cua_spaces_ffi_rust_future_complete_rust_buffer,+ freeFunc: ffi_cua_spaces_ffi_rust_future_free_rust_buffer,+ liftFunc: FfiConverterOptionTypeAppRelayUsage.lift,+ errorHandler: FfiConverterTypeCuaError_lift+ )+}+/**+ * Settings' "Relay usage" row and the notice past the allowance; none+ * when the relay meters nothing.+ */+public func appRelayUsageView(usage: AppRelayUsage) -> AppRelayUsageView? {+ return try! FfiConverterOptionTypeAppRelayUsageView.lift(try! rustCall() {+ uniffi_cua_spaces_ffi_fn_func_app_relay_usage_view(+ FfiConverterTypeAppRelayUsage_lower(usage),$0+ )+})+}/*** `choices` with the sites just sent remembered for `key`.*/@@ -65354,6 +65898,12 @@ private let initializationResult: InitializationResult = {if (uniffi_cua_spaces_ffi_checksum_func_app_refresh_report_from_json() != 63623) {return InitializationResult.apiChecksumMismatch}+ if (uniffi_cua_spaces_ffi_checksum_func_app_relay_usage() != 28377) {+ return InitializationResult.apiChecksumMismatch+ }+ if (uniffi_cua_spaces_ffi_checksum_func_app_relay_usage_view() != 38605) {+ return InitializationResult.apiChecksumMismatch+ }if (uniffi_cua_spaces_ffi_checksum_func_app_review_remember() != 9631) {return InitializationResult.apiChecksumMismatch}diff --git a/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.h b/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.hindex 5810d15f48..f6780dc115 100644--- a/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.h+++ b/libs/spaces-app-swift/Sources/cua_spaces_ffiFFI/include/cua_spaces_ffiFFI.h@@ -1516,6 +1516,16 @@ RustBuffer uniffi_cua_spaces_ffi_fn_func_app_presentation_preview_still(int8_t mRustBuffer uniffi_cua_spaces_ffi_fn_func_app_refresh_report_from_json(RustBuffer json, RustCallStatus *_Nonnull out_status);#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_RELAY_USAGE+#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_RELAY_USAGE+uint64_t uniffi_cua_spaces_ffi_fn_func_app_relay_usage(uint64_t devices, RustBuffer account_token+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_RELAY_USAGE_VIEW+#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_RELAY_USAGE_VIEW+RustBuffer uniffi_cua_spaces_ffi_fn_func_app_relay_usage_view(RustBuffer usage, RustCallStatus *_Nonnull out_status+);+#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_REVIEW_REMEMBER#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_FN_FUNC_APP_REVIEW_REMEMBERRustBuffer uniffi_cua_spaces_ffi_fn_func_app_review_remember(RustBuffer choices, RustBuffer key, RustBuffer domains, RustCallStatus *_Nonnull out_status@@ -3375,6 +3385,18 @@ uint16_t uniffi_cua_spaces_ffi_checksum_func_app_presentation_preview_still(void#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_REFRESH_REPORT_FROM_JSONuint16_t uniffi_cua_spaces_ffi_checksum_func_app_refresh_report_from_json(void+);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_RELAY_USAGE+#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_RELAY_USAGE+uint16_t uniffi_cua_spaces_ffi_checksum_func_app_relay_usage(void++);+#endif+#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_RELAY_USAGE_VIEW+#define UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_RELAY_USAGE_VIEW+uint16_t uniffi_cua_spaces_ffi_checksum_func_app_relay_usage_view(void+);#endif#ifndef UNIFFI_FFIDEF_UNIFFI_CUA_SPACES_FFI_CHECKSUM_FUNC_APP_REVIEW_REMEMBERdiff --git a/scripts/docs-generators/cua-sdk.ts b/scripts/docs-generators/cua-sdk.tsindex d3d3ab6368..a5ce903471 100644--- a/scripts/docs-generators/cua-sdk.ts+++ b/scripts/docs-generators/cua-sdk.ts@@ -725,7 +725,7 @@ export const PAGES: PageSpec[] = [title: 'Spaces app core',description: 'The view models the Cua Spaces apps share: Space list, New Space wizard, teleport review, notch and Keyvault.',intro:- 'The Tauri and SwiftUI Cua Spaces apps render the same state from this core, so their behaviour cannot diverge. Build your own Spaces UI on it. Each screen is a state record, a pure `*_reduce` function that applies an action or event, and a `*_view` that derives what to draw. The subpages cover one screen each; the shared formatters are on [Window, menu bar and Settings](/cua-sdk/reference/spaces/app-core/window).',+ 'The Cua Spaces apps render the same state from this core, so their behaviour cannot diverge. Each screen is a state record, a pure `*_reduce` function that applies an action or event, and a `*_view` that derives what to draw. The subpages cover one screen each; the shared formatters are on [Window, menu bar and Settings](/cua-sdk/reference/spaces/app-core/window).',items: ['cua_spaces_register'],modules: ['app_core', 'app_core_types'],catalog: true,@@ -1006,6 +1006,16 @@ export const PAGES: PageSpec[] = [prefixes: ['AppBilling', 'app_billing_'],spaces: true,},+ {+ slug: 'spaces/app-core/relay',+ title: 'Relay usage',+ description: 'The Relay usage row in Settings and the notice past the monthly relay allowance.',+ intro:+ '`app_relay_usage` reads the account\'s relay allowance this month from the relay (`GET /v1/usage`, as `cua usage` does) with the session\'s `Devices` and an account token. `app_relay_usage_view` derives the Settings row (`AppRelayUsageView`) and, past the allowance, `AppRelayAllowanceNotice`: one line with Upgrade, dismissed per month and reason. Nothing stops at the limit.',+ items: [],+ prefixes: ['AppRelay', 'app_relay_'],+ spaces: true,+ },{slug: 'spaces/app-core/this-machine',title: 'This machine',