@trycua/cua 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -0
- package/bin/cua.js +37 -0
- package/browser/cua_sdk-ffi.d.ts +6 -0
- package/browser/cua_sdk-ffi.js +3 -0
- package/browser/cua_sdk-ffi.ts +14 -0
- package/browser/cua_sdk.d.ts +2237 -0
- package/browser/cua_sdk.js +2607 -0
- package/browser/cua_sdk.ts +3644 -0
- package/browser/cyclops_sdk_schema-ffi.d.ts +6 -0
- package/browser/cyclops_sdk_schema-ffi.js +3 -0
- package/browser/cyclops_sdk_schema-ffi.ts +14 -0
- package/browser/cyclops_sdk_schema.d.ts +996 -0
- package/browser/cyclops_sdk_schema.js +2194 -0
- package/browser/cyclops_sdk_schema.ts +2934 -0
- package/browser/fleet_sdk-ffi.d.ts +28 -0
- package/browser/fleet_sdk-ffi.js +3 -0
- package/browser/fleet_sdk-ffi.ts +35 -0
- package/browser/fleet_sdk.d.ts +3056 -0
- package/browser/fleet_sdk.js +5088 -0
- package/browser/fleet_sdk.ts +6830 -0
- package/browser/index.d.ts +2 -0
- package/browser/index.js +18 -0
- package/browser/index.web.ts +34 -0
- package/browser/tsconfig.json +20 -0
- package/browser/wasm-bindgen/index.d.ts +2346 -0
- package/browser/wasm-bindgen/index.js +6642 -0
- package/browser/wasm-bindgen/index_bg.wasm +0 -0
- package/browser/wasm-bindgen/index_bg.wasm.d.ts +1154 -0
- package/dist/index.d.ts +118 -0
- package/dist/index.js +207 -0
- package/dist/mcp.d.ts +33 -0
- package/dist/mcp.js +41 -0
- package/dist/native/cua_sdk-ffi.d.ts +1038 -0
- package/dist/native/cua_sdk-ffi.js +5095 -0
- package/dist/native/cua_sdk.d.ts +15906 -0
- package/dist/native/cua_sdk.js +27061 -0
- package/dist/native/index.d.ts +7 -0
- package/dist/native/index.js +12 -0
- package/dist/native/node-runtime.d.ts +72 -0
- package/dist/native/node-runtime.js +35 -0
- package/dist/spaces/cursorArt.d.ts +27 -0
- package/dist/spaces/cursorArt.js +59 -0
- package/dist/spaces/errors.d.ts +81 -0
- package/dist/spaces/errors.js +102 -0
- package/dist/spaces/events.d.ts +154 -0
- package/dist/spaces/events.js +182 -0
- package/dist/spaces/groups.d.ts +130 -0
- package/dist/spaces/groups.js +275 -0
- package/dist/spaces/host.d.ts +71 -0
- package/dist/spaces/host.js +154 -0
- package/dist/spaces/index.d.ts +48 -0
- package/dist/spaces/index.js +44 -0
- package/dist/spaces/pip.d.ts +128 -0
- package/dist/spaces/pip.js +250 -0
- package/dist/spaces/presence.d.ts +187 -0
- package/dist/spaces/presence.js +449 -0
- package/dist/spaces/presenceTypes.check.d.ts +12 -0
- package/dist/spaces/presenceTypes.check.js +1 -0
- package/dist/spaces/presenceTypes.d.ts +47 -0
- package/dist/spaces/presenceTypes.js +7 -0
- package/dist/spaces/routines.d.ts +158 -0
- package/dist/spaces/routines.js +339 -0
- package/dist/spaces/thread.d.ts +147 -0
- package/dist/spaces/thread.js +285 -0
- package/dist/spaces/transport/http.d.ts +51 -0
- package/dist/spaces/transport/http.js +113 -0
- package/dist/spaces/transport/index.d.ts +19 -0
- package/dist/spaces/transport/index.js +19 -0
- package/dist/spaces/transport/session.d.ts +120 -0
- package/dist/spaces/transport/session.js +188 -0
- package/dist/spaces/transport/tauri.d.ts +50 -0
- package/dist/spaces/transport/tauri.js +90 -0
- package/dist/spaces/transport/types.d.ts +123 -0
- package/dist/spaces/transport/types.js +59 -0
- package/dist/teleport/controller.d.ts +34 -0
- package/dist/teleport/controller.js +107 -0
- package/dist/teleport/drop.d.ts +62 -0
- package/dist/teleport/drop.js +138 -0
- package/dist/teleport/dropZone.d.ts +59 -0
- package/dist/teleport/dropZone.js +166 -0
- package/dist/teleport/element.d.ts +28 -0
- package/dist/teleport/element.js +340 -0
- package/dist/teleport/index.d.ts +32 -0
- package/dist/teleport/index.js +32 -0
- package/dist/teleport/install.d.ts +31 -0
- package/dist/teleport/install.js +65 -0
- package/dist/teleport/model.d.ts +245 -0
- package/dist/teleport/model.js +334 -0
- package/dist/teleport/windowDrag.d.ts +86 -0
- package/dist/teleport/windowDrag.js +71 -0
- package/package.json +93 -0
|
@@ -0,0 +1,996 @@
|
|
|
1
|
+
import { type UniffiByteArray, type UniffiGcObject, type UniffiHandle, FfiConverterObject, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "@ubjs/core";
|
|
2
|
+
export type ClaimLifecycle = {
|
|
3
|
+
shutdownTime?: string;
|
|
4
|
+
shutdownPolicy?: string;
|
|
5
|
+
autoRenew?: boolean;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Generated factory for {@link ClaimLifecycle} record objects.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ClaimLifecycle: Readonly<{
|
|
11
|
+
create: (partial: Partial<ClaimLifecycle> & Required<Omit<ClaimLifecycle, "shutdownTime" | "shutdownPolicy" | "autoRenew">>) => ClaimLifecycle;
|
|
12
|
+
new: (partial: Partial<ClaimLifecycle> & Required<Omit<ClaimLifecycle, "shutdownTime" | "shutdownPolicy" | "autoRenew">>) => ClaimLifecycle;
|
|
13
|
+
defaults: () => Partial<ClaimLifecycle>;
|
|
14
|
+
}>;
|
|
15
|
+
/**
|
|
16
|
+
* Reference to a claim-scoped Secret delivered into the bound sandbox. See
|
|
17
|
+
* [`CLAIM_SECRET_NAME_PREFIX`].
|
|
18
|
+
*/
|
|
19
|
+
export type ClaimSecretRef = {
|
|
20
|
+
name: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Generated factory for {@link ClaimSecretRef} record objects.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ClaimSecretRef: Readonly<{
|
|
26
|
+
create: (partial: Partial<ClaimSecretRef> & Required<Omit<ClaimSecretRef, "name">>) => ClaimSecretRef;
|
|
27
|
+
new: (partial: Partial<ClaimSecretRef> & Required<Omit<ClaimSecretRef, "name">>) => ClaimSecretRef;
|
|
28
|
+
defaults: () => Partial<ClaimSecretRef>;
|
|
29
|
+
}>;
|
|
30
|
+
export type SandboxTemplateRef = {
|
|
31
|
+
name: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Generated factory for {@link SandboxTemplateRef} record objects.
|
|
35
|
+
*/
|
|
36
|
+
export declare const SandboxTemplateRef: Readonly<{
|
|
37
|
+
create: (partial: Partial<SandboxTemplateRef> & Required<Omit<SandboxTemplateRef, "name">>) => SandboxTemplateRef;
|
|
38
|
+
new: (partial: Partial<SandboxTemplateRef> & Required<Omit<SandboxTemplateRef, "name">>) => SandboxTemplateRef;
|
|
39
|
+
defaults: () => Partial<SandboxTemplateRef>;
|
|
40
|
+
}>;
|
|
41
|
+
export type ClaimSpec = {
|
|
42
|
+
sandboxTemplateRef: SandboxTemplateRef;
|
|
43
|
+
warmpool?: string;
|
|
44
|
+
bindDeadline?: number;
|
|
45
|
+
lifecycle?: ClaimLifecycle;
|
|
46
|
+
ttlSecondsAfterCreated?: number;
|
|
47
|
+
secretRef?: ClaimSecretRef;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Generated factory for {@link ClaimSpec} record objects.
|
|
51
|
+
*/
|
|
52
|
+
export declare const ClaimSpec: Readonly<{
|
|
53
|
+
create: (partial: Partial<ClaimSpec> & Required<Omit<ClaimSpec, "sandboxTemplateRef" | "warmpool" | "bindDeadline" | "lifecycle" | "ttlSecondsAfterCreated" | "secretRef">>) => ClaimSpec;
|
|
54
|
+
new: (partial: Partial<ClaimSpec> & Required<Omit<ClaimSpec, "sandboxTemplateRef" | "warmpool" | "bindDeadline" | "lifecycle" | "ttlSecondsAfterCreated" | "secretRef">>) => ClaimSpec;
|
|
55
|
+
defaults: () => Partial<ClaimSpec>;
|
|
56
|
+
}>;
|
|
57
|
+
export type OsGymSandboxClaimCondition = {
|
|
58
|
+
type?: string;
|
|
59
|
+
status?: string;
|
|
60
|
+
reason?: string;
|
|
61
|
+
message?: string;
|
|
62
|
+
lastTransitionTime?: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Generated factory for {@link OsGymSandboxClaimCondition} record objects.
|
|
66
|
+
*/
|
|
67
|
+
export declare const OsGymSandboxClaimCondition: Readonly<{
|
|
68
|
+
create: (partial: Partial<OsGymSandboxClaimCondition> & Required<Omit<OsGymSandboxClaimCondition, "reason" | "type" | "status" | "message" | "lastTransitionTime">>) => OsGymSandboxClaimCondition;
|
|
69
|
+
new: (partial: Partial<OsGymSandboxClaimCondition> & Required<Omit<OsGymSandboxClaimCondition, "reason" | "type" | "status" | "message" | "lastTransitionTime">>) => OsGymSandboxClaimCondition;
|
|
70
|
+
defaults: () => Partial<OsGymSandboxClaimCondition>;
|
|
71
|
+
}>;
|
|
72
|
+
export type OsGymSandboxClaimSandbox = {
|
|
73
|
+
name?: string;
|
|
74
|
+
service?: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Generated factory for {@link OsGymSandboxClaimSandbox} record objects.
|
|
78
|
+
*/
|
|
79
|
+
export declare const OsGymSandboxClaimSandbox: Readonly<{
|
|
80
|
+
create: (partial: Partial<OsGymSandboxClaimSandbox> & Required<Omit<OsGymSandboxClaimSandbox, "name" | "service">>) => OsGymSandboxClaimSandbox;
|
|
81
|
+
new: (partial: Partial<OsGymSandboxClaimSandbox> & Required<Omit<OsGymSandboxClaimSandbox, "name" | "service">>) => OsGymSandboxClaimSandbox;
|
|
82
|
+
defaults: () => Partial<OsGymSandboxClaimSandbox>;
|
|
83
|
+
}>;
|
|
84
|
+
export type OsGymSandboxClaimStatus = {
|
|
85
|
+
phase?: string;
|
|
86
|
+
conditions?: Array<OsGymSandboxClaimCondition>;
|
|
87
|
+
sandbox?: OsGymSandboxClaimSandbox;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Generated factory for {@link OsGymSandboxClaimStatus} record objects.
|
|
91
|
+
*/
|
|
92
|
+
export declare const OsGymSandboxClaimStatus: Readonly<{
|
|
93
|
+
create: (partial: Partial<OsGymSandboxClaimStatus> & Required<Omit<OsGymSandboxClaimStatus, "phase" | "conditions" | "sandbox">>) => OsGymSandboxClaimStatus;
|
|
94
|
+
new: (partial: Partial<OsGymSandboxClaimStatus> & Required<Omit<OsGymSandboxClaimStatus, "phase" | "conditions" | "sandbox">>) => OsGymSandboxClaimStatus;
|
|
95
|
+
defaults: () => Partial<OsGymSandboxClaimStatus>;
|
|
96
|
+
}>;
|
|
97
|
+
export declare enum RuntimeKind {
|
|
98
|
+
Kubevirt = 0,
|
|
99
|
+
Macos = 1,
|
|
100
|
+
Gvisor = 2
|
|
101
|
+
}
|
|
102
|
+
export interface PreservedJsonLike {
|
|
103
|
+
toJson(): string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated Use `PreservedJsonLike` instead.
|
|
107
|
+
*/
|
|
108
|
+
export type PreservedJsonInterface = PreservedJsonLike;
|
|
109
|
+
export declare class PreservedJson extends UniffiAbstractObject implements PreservedJsonLike {
|
|
110
|
+
readonly [uniffiTypeNameSymbol] = "PreservedJson";
|
|
111
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
112
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
113
|
+
private constructor();
|
|
114
|
+
static fromJson(value: string): PreservedJsonLike;
|
|
115
|
+
toJson(): string;
|
|
116
|
+
uniffiDestroy(): void;
|
|
117
|
+
static instanceOf(obj_: any): obj_ is PreservedJson;
|
|
118
|
+
}
|
|
119
|
+
export declare enum ImagePullPolicy {
|
|
120
|
+
Always = 0,
|
|
121
|
+
IfNotPresent = 1,
|
|
122
|
+
Never = 2
|
|
123
|
+
}
|
|
124
|
+
export declare enum Firmware {
|
|
125
|
+
Bios = 0,
|
|
126
|
+
Efi = 1
|
|
127
|
+
}
|
|
128
|
+
export declare enum ServiceProtocol {
|
|
129
|
+
Tcp = 0,
|
|
130
|
+
Udp = 1
|
|
131
|
+
}
|
|
132
|
+
export type SandboxService = {
|
|
133
|
+
name: string;
|
|
134
|
+
targetPort: number;
|
|
135
|
+
protocol?: ServiceProtocol;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Generated factory for {@link SandboxService} record objects.
|
|
139
|
+
*/
|
|
140
|
+
export declare const SandboxService: Readonly<{
|
|
141
|
+
create: (partial: Partial<SandboxService> & Required<Omit<SandboxService, "name" | "targetPort" | "protocol">>) => SandboxService;
|
|
142
|
+
new: (partial: Partial<SandboxService> & Required<Omit<SandboxService, "name" | "targetPort" | "protocol">>) => SandboxService;
|
|
143
|
+
defaults: () => Partial<SandboxService>;
|
|
144
|
+
}>;
|
|
145
|
+
export type OidcConfig = {
|
|
146
|
+
credentialsSecret: string;
|
|
147
|
+
tokenUrl: string;
|
|
148
|
+
awsRoleArn?: string;
|
|
149
|
+
awsRegion?: string;
|
|
150
|
+
refreshIntervalSeconds?: number;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Generated factory for {@link OidcConfig} record objects.
|
|
154
|
+
*/
|
|
155
|
+
export declare const OidcConfig: Readonly<{
|
|
156
|
+
create: (partial: Partial<OidcConfig> & Required<Omit<OidcConfig, "credentialsSecret" | "tokenUrl" | "awsRoleArn" | "awsRegion" | "refreshIntervalSeconds">>) => OidcConfig;
|
|
157
|
+
new: (partial: Partial<OidcConfig> & Required<Omit<OidcConfig, "credentialsSecret" | "tokenUrl" | "awsRoleArn" | "awsRegion" | "refreshIntervalSeconds">>) => OidcConfig;
|
|
158
|
+
defaults: () => Partial<OidcConfig>;
|
|
159
|
+
}>;
|
|
160
|
+
/**
|
|
161
|
+
* How `vmTemplate.command`/`args`/`env` reach the sandbox
|
|
162
|
+
* (`vmTemplate.processMode`). Absent means `Legacy`.
|
|
163
|
+
*/
|
|
164
|
+
export declare enum ProcessMode {
|
|
165
|
+
/**
|
|
166
|
+
* What templates did before processMode existed: pod runtimes run
|
|
167
|
+
* command/args/env; KubeVirt ignores command and refuses args/env.
|
|
168
|
+
*/
|
|
169
|
+
Legacy = 0,
|
|
170
|
+
/**
|
|
171
|
+
* Every runtime runs command/args/env. Pod runtimes set them on the
|
|
172
|
+
* sandbox container; KubeVirt renders them into the sandbox's cloud-init.
|
|
173
|
+
*/
|
|
174
|
+
Run = 1
|
|
175
|
+
}
|
|
176
|
+
export type VmTemplate = {
|
|
177
|
+
containerDiskImage: string;
|
|
178
|
+
command?: Array<string>;
|
|
179
|
+
runtime?: RuntimeKind;
|
|
180
|
+
runtimeClassName?: string;
|
|
181
|
+
nodeSelector?: Map<string, string>;
|
|
182
|
+
tolerations?: Array<PreservedJsonLike>;
|
|
183
|
+
imagePullPolicy?: ImagePullPolicy;
|
|
184
|
+
imagePullSecret?: string;
|
|
185
|
+
cpuCores?: number;
|
|
186
|
+
memory?: string;
|
|
187
|
+
firmware?: Firmware;
|
|
188
|
+
nestedVirtualization?: boolean;
|
|
189
|
+
probes?: PreservedJsonLike;
|
|
190
|
+
services?: Array<SandboxService>;
|
|
191
|
+
oidc?: OidcConfig;
|
|
192
|
+
claimSecrets?: boolean;
|
|
193
|
+
args?: Array<string>;
|
|
194
|
+
env?: Map<string, string>;
|
|
195
|
+
processMode?: ProcessMode;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Generated factory for {@link VmTemplate} record objects.
|
|
199
|
+
*/
|
|
200
|
+
export declare const VmTemplate: Readonly<{
|
|
201
|
+
create: (partial: Partial<VmTemplate> & Required<Omit<VmTemplate, "services" | "args" | "env" | "containerDiskImage" | "command" | "runtime" | "runtimeClassName" | "nodeSelector" | "tolerations" | "imagePullPolicy" | "imagePullSecret" | "cpuCores" | "memory" | "firmware" | "nestedVirtualization" | "probes" | "oidc" | "claimSecrets" | "processMode">>) => VmTemplate;
|
|
202
|
+
new: (partial: Partial<VmTemplate> & Required<Omit<VmTemplate, "services" | "args" | "env" | "containerDiskImage" | "command" | "runtime" | "runtimeClassName" | "nodeSelector" | "tolerations" | "imagePullPolicy" | "imagePullSecret" | "cpuCores" | "memory" | "firmware" | "nestedVirtualization" | "probes" | "oidc" | "claimSecrets" | "processMode">>) => VmTemplate;
|
|
203
|
+
defaults: () => Partial<VmTemplate>;
|
|
204
|
+
}>;
|
|
205
|
+
export type OsGymSandboxSpec = {
|
|
206
|
+
vmTemplate: VmTemplate;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Generated factory for {@link OsGymSandboxSpec} record objects.
|
|
210
|
+
*/
|
|
211
|
+
export declare const OsGymSandboxSpec: Readonly<{
|
|
212
|
+
create: (partial: Partial<OsGymSandboxSpec> & Required<Omit<OsGymSandboxSpec, "vmTemplate">>) => OsGymSandboxSpec;
|
|
213
|
+
new: (partial: Partial<OsGymSandboxSpec> & Required<Omit<OsGymSandboxSpec, "vmTemplate">>) => OsGymSandboxSpec;
|
|
214
|
+
defaults: () => Partial<OsGymSandboxSpec>;
|
|
215
|
+
}>;
|
|
216
|
+
export type OsGymSandboxStatus = {
|
|
217
|
+
phase?: string;
|
|
218
|
+
runtime?: string;
|
|
219
|
+
ready?: boolean;
|
|
220
|
+
vmName?: string;
|
|
221
|
+
service?: string;
|
|
222
|
+
message?: string;
|
|
223
|
+
resetIssuedAt?: string;
|
|
224
|
+
resetVmiUid?: string;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Generated factory for {@link OsGymSandboxStatus} record objects.
|
|
228
|
+
*/
|
|
229
|
+
export declare const OsGymSandboxStatus: Readonly<{
|
|
230
|
+
create: (partial: Partial<OsGymSandboxStatus> & Required<Omit<OsGymSandboxStatus, "message" | "service" | "phase" | "runtime" | "ready" | "vmName" | "resetIssuedAt" | "resetVmiUid">>) => OsGymSandboxStatus;
|
|
231
|
+
new: (partial: Partial<OsGymSandboxStatus> & Required<Omit<OsGymSandboxStatus, "message" | "service" | "phase" | "runtime" | "ready" | "vmName" | "resetIssuedAt" | "resetVmiUid">>) => OsGymSandboxStatus;
|
|
232
|
+
defaults: () => Partial<OsGymSandboxStatus>;
|
|
233
|
+
}>;
|
|
234
|
+
export type OsGymSandboxTemplateSpec = {
|
|
235
|
+
vmTemplate: VmTemplate;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Generated factory for {@link OsGymSandboxTemplateSpec} record objects.
|
|
239
|
+
*/
|
|
240
|
+
export declare const OsGymSandboxTemplateSpec: Readonly<{
|
|
241
|
+
create: (partial: Partial<OsGymSandboxTemplateSpec> & Required<Omit<OsGymSandboxTemplateSpec, "vmTemplate">>) => OsGymSandboxTemplateSpec;
|
|
242
|
+
new: (partial: Partial<OsGymSandboxTemplateSpec> & Required<Omit<OsGymSandboxTemplateSpec, "vmTemplate">>) => OsGymSandboxTemplateSpec;
|
|
243
|
+
defaults: () => Partial<OsGymSandboxTemplateSpec>;
|
|
244
|
+
}>;
|
|
245
|
+
export type WarmPoolAutoscaling = {
|
|
246
|
+
minPoolSize?: number;
|
|
247
|
+
initialPoolSize?: number;
|
|
248
|
+
maxPoolSize?: number;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* Generated factory for {@link WarmPoolAutoscaling} record objects.
|
|
252
|
+
*/
|
|
253
|
+
export declare const WarmPoolAutoscaling: Readonly<{
|
|
254
|
+
create: (partial: Partial<WarmPoolAutoscaling> & Required<Omit<WarmPoolAutoscaling, "minPoolSize" | "initialPoolSize" | "maxPoolSize">>) => WarmPoolAutoscaling;
|
|
255
|
+
new: (partial: Partial<WarmPoolAutoscaling> & Required<Omit<WarmPoolAutoscaling, "minPoolSize" | "initialPoolSize" | "maxPoolSize">>) => WarmPoolAutoscaling;
|
|
256
|
+
defaults: () => Partial<WarmPoolAutoscaling>;
|
|
257
|
+
}>;
|
|
258
|
+
/**
|
|
259
|
+
* What the pool-operator deletes when a warm pool's creation TTL
|
|
260
|
+
* (`ttlSecondsAfterCreated`) or idle TTL (`idleTtlSeconds`) expires.
|
|
261
|
+
*/
|
|
262
|
+
export declare enum WarmPoolTtlPolicy {
|
|
263
|
+
/**
|
|
264
|
+
* Delete only the warm pool. Its claims and namespace stay.
|
|
265
|
+
*/
|
|
266
|
+
Retain = 0,
|
|
267
|
+
/**
|
|
268
|
+
* Also delete the pool's dead unbound claims (TTL passed, older than
|
|
269
|
+
* max(900s, bindDeadline)). Bound claims, the namespace and volumes stay.
|
|
270
|
+
*/
|
|
271
|
+
Cascade = 1
|
|
272
|
+
}
|
|
273
|
+
export type OsGymSandboxWarmPoolSpec = {
|
|
274
|
+
replicas: number;
|
|
275
|
+
sandboxTemplateRef: SandboxTemplateRef;
|
|
276
|
+
autoscaling?: WarmPoolAutoscaling;
|
|
277
|
+
ttlSecondsAfterCreated?: number;
|
|
278
|
+
idleTtlSeconds?: number;
|
|
279
|
+
ttlPolicy?: WarmPoolTtlPolicy;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* Generated factory for {@link OsGymSandboxWarmPoolSpec} record objects.
|
|
283
|
+
*/
|
|
284
|
+
export declare const OsGymSandboxWarmPoolSpec: Readonly<{
|
|
285
|
+
create: (partial: Partial<OsGymSandboxWarmPoolSpec> & Required<Omit<OsGymSandboxWarmPoolSpec, "sandboxTemplateRef" | "ttlSecondsAfterCreated" | "replicas" | "autoscaling" | "idleTtlSeconds" | "ttlPolicy">>) => OsGymSandboxWarmPoolSpec;
|
|
286
|
+
new: (partial: Partial<OsGymSandboxWarmPoolSpec> & Required<Omit<OsGymSandboxWarmPoolSpec, "sandboxTemplateRef" | "ttlSecondsAfterCreated" | "replicas" | "autoscaling" | "idleTtlSeconds" | "ttlPolicy">>) => OsGymSandboxWarmPoolSpec;
|
|
287
|
+
defaults: () => Partial<OsGymSandboxWarmPoolSpec>;
|
|
288
|
+
}>;
|
|
289
|
+
export type OsGymSandboxWarmPoolStatus = {
|
|
290
|
+
replicas?: number;
|
|
291
|
+
readyReplicas?: number;
|
|
292
|
+
selector?: string;
|
|
293
|
+
lastClaimedAt?: string;
|
|
294
|
+
lastActivityTime?: string;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Generated factory for {@link OsGymSandboxWarmPoolStatus} record objects.
|
|
298
|
+
*/
|
|
299
|
+
export declare const OsGymSandboxWarmPoolStatus: Readonly<{
|
|
300
|
+
create: (partial: Partial<OsGymSandboxWarmPoolStatus> & Required<Omit<OsGymSandboxWarmPoolStatus, "replicas" | "readyReplicas" | "selector" | "lastClaimedAt" | "lastActivityTime">>) => OsGymSandboxWarmPoolStatus;
|
|
301
|
+
new: (partial: Partial<OsGymSandboxWarmPoolStatus> & Required<Omit<OsGymSandboxWarmPoolStatus, "replicas" | "readyReplicas" | "selector" | "lastClaimedAt" | "lastActivityTime">>) => OsGymSandboxWarmPoolStatus;
|
|
302
|
+
defaults: () => Partial<OsGymSandboxWarmPoolStatus>;
|
|
303
|
+
}>;
|
|
304
|
+
export declare enum JsonValueError_Tags {
|
|
305
|
+
Invalid = "Invalid"
|
|
306
|
+
}
|
|
307
|
+
export declare const JsonValueError: Readonly<{
|
|
308
|
+
instanceOf: (obj: any) => obj is JsonValueError;
|
|
309
|
+
Invalid: {
|
|
310
|
+
new (inner: {
|
|
311
|
+
reason: string;
|
|
312
|
+
}): {
|
|
313
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
314
|
+
readonly inner: Readonly<{
|
|
315
|
+
reason: string;
|
|
316
|
+
}>;
|
|
317
|
+
/**
|
|
318
|
+
* @private
|
|
319
|
+
* This field is private and should not be used, use `tag` instead.
|
|
320
|
+
*/
|
|
321
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
322
|
+
name: string;
|
|
323
|
+
message: string;
|
|
324
|
+
stack?: string;
|
|
325
|
+
cause?: unknown;
|
|
326
|
+
};
|
|
327
|
+
"new"(inner: {
|
|
328
|
+
reason: string;
|
|
329
|
+
}): {
|
|
330
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
331
|
+
readonly inner: Readonly<{
|
|
332
|
+
reason: string;
|
|
333
|
+
}>;
|
|
334
|
+
/**
|
|
335
|
+
* @private
|
|
336
|
+
* This field is private and should not be used, use `tag` instead.
|
|
337
|
+
*/
|
|
338
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
339
|
+
name: string;
|
|
340
|
+
message: string;
|
|
341
|
+
stack?: string;
|
|
342
|
+
cause?: unknown;
|
|
343
|
+
};
|
|
344
|
+
instanceOf(obj: any): obj is {
|
|
345
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
346
|
+
readonly inner: Readonly<{
|
|
347
|
+
reason: string;
|
|
348
|
+
}>;
|
|
349
|
+
/**
|
|
350
|
+
* @private
|
|
351
|
+
* This field is private and should not be used, use `tag` instead.
|
|
352
|
+
*/
|
|
353
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
354
|
+
name: string;
|
|
355
|
+
message: string;
|
|
356
|
+
stack?: string;
|
|
357
|
+
cause?: unknown;
|
|
358
|
+
};
|
|
359
|
+
hasInner(obj: any): obj is {
|
|
360
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
361
|
+
readonly inner: Readonly<{
|
|
362
|
+
reason: string;
|
|
363
|
+
}>;
|
|
364
|
+
/**
|
|
365
|
+
* @private
|
|
366
|
+
* This field is private and should not be used, use `tag` instead.
|
|
367
|
+
*/
|
|
368
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
369
|
+
name: string;
|
|
370
|
+
message: string;
|
|
371
|
+
stack?: string;
|
|
372
|
+
cause?: unknown;
|
|
373
|
+
};
|
|
374
|
+
getInner(obj: {
|
|
375
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
376
|
+
readonly inner: Readonly<{
|
|
377
|
+
reason: string;
|
|
378
|
+
}>;
|
|
379
|
+
/**
|
|
380
|
+
* @private
|
|
381
|
+
* This field is private and should not be used, use `tag` instead.
|
|
382
|
+
*/
|
|
383
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
384
|
+
name: string;
|
|
385
|
+
message: string;
|
|
386
|
+
stack?: string;
|
|
387
|
+
cause?: unknown;
|
|
388
|
+
}): Readonly<{
|
|
389
|
+
reason: string;
|
|
390
|
+
}>;
|
|
391
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
392
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
393
|
+
stackTraceLimit: number;
|
|
394
|
+
};
|
|
395
|
+
}>;
|
|
396
|
+
export type JsonValueError = InstanceType<typeof JsonValueError['Invalid']>;
|
|
397
|
+
export declare enum SchemaBuildError_Tags {
|
|
398
|
+
MissingRequiredField = "MissingRequiredField"
|
|
399
|
+
}
|
|
400
|
+
export declare const SchemaBuildError: Readonly<{
|
|
401
|
+
instanceOf: (obj: any) => obj is SchemaBuildError;
|
|
402
|
+
MissingRequiredField: {
|
|
403
|
+
new (inner: {
|
|
404
|
+
recordType: string;
|
|
405
|
+
field: string;
|
|
406
|
+
}): {
|
|
407
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
408
|
+
readonly inner: Readonly<{
|
|
409
|
+
recordType: string;
|
|
410
|
+
field: string;
|
|
411
|
+
}>;
|
|
412
|
+
/**
|
|
413
|
+
* @private
|
|
414
|
+
* This field is private and should not be used, use `tag` instead.
|
|
415
|
+
*/
|
|
416
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
417
|
+
name: string;
|
|
418
|
+
message: string;
|
|
419
|
+
stack?: string;
|
|
420
|
+
cause?: unknown;
|
|
421
|
+
};
|
|
422
|
+
"new"(inner: {
|
|
423
|
+
recordType: string;
|
|
424
|
+
field: string;
|
|
425
|
+
}): {
|
|
426
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
427
|
+
readonly inner: Readonly<{
|
|
428
|
+
recordType: string;
|
|
429
|
+
field: string;
|
|
430
|
+
}>;
|
|
431
|
+
/**
|
|
432
|
+
* @private
|
|
433
|
+
* This field is private and should not be used, use `tag` instead.
|
|
434
|
+
*/
|
|
435
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
436
|
+
name: string;
|
|
437
|
+
message: string;
|
|
438
|
+
stack?: string;
|
|
439
|
+
cause?: unknown;
|
|
440
|
+
};
|
|
441
|
+
instanceOf(obj: any): obj is {
|
|
442
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
443
|
+
readonly inner: Readonly<{
|
|
444
|
+
recordType: string;
|
|
445
|
+
field: string;
|
|
446
|
+
}>;
|
|
447
|
+
/**
|
|
448
|
+
* @private
|
|
449
|
+
* This field is private and should not be used, use `tag` instead.
|
|
450
|
+
*/
|
|
451
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
452
|
+
name: string;
|
|
453
|
+
message: string;
|
|
454
|
+
stack?: string;
|
|
455
|
+
cause?: unknown;
|
|
456
|
+
};
|
|
457
|
+
hasInner(obj: any): obj is {
|
|
458
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
459
|
+
readonly inner: Readonly<{
|
|
460
|
+
recordType: string;
|
|
461
|
+
field: string;
|
|
462
|
+
}>;
|
|
463
|
+
/**
|
|
464
|
+
* @private
|
|
465
|
+
* This field is private and should not be used, use `tag` instead.
|
|
466
|
+
*/
|
|
467
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
468
|
+
name: string;
|
|
469
|
+
message: string;
|
|
470
|
+
stack?: string;
|
|
471
|
+
cause?: unknown;
|
|
472
|
+
};
|
|
473
|
+
getInner(obj: {
|
|
474
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
475
|
+
readonly inner: Readonly<{
|
|
476
|
+
recordType: string;
|
|
477
|
+
field: string;
|
|
478
|
+
}>;
|
|
479
|
+
/**
|
|
480
|
+
* @private
|
|
481
|
+
* This field is private and should not be used, use `tag` instead.
|
|
482
|
+
*/
|
|
483
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
484
|
+
name: string;
|
|
485
|
+
message: string;
|
|
486
|
+
stack?: string;
|
|
487
|
+
cause?: unknown;
|
|
488
|
+
}): Readonly<{
|
|
489
|
+
recordType: string;
|
|
490
|
+
field: string;
|
|
491
|
+
}>;
|
|
492
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
493
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
494
|
+
stackTraceLimit: number;
|
|
495
|
+
};
|
|
496
|
+
}>;
|
|
497
|
+
export type SchemaBuildError = InstanceType<typeof SchemaBuildError['MissingRequiredField']>;
|
|
498
|
+
export interface OsGymSandboxTemplateSpecBuilderLike {
|
|
499
|
+
build(): OsGymSandboxTemplateSpec;
|
|
500
|
+
vmTemplate(value: VmTemplate): OsGymSandboxTemplateSpecBuilderLike;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* @deprecated Use `OsGymSandboxTemplateSpecBuilderLike` instead.
|
|
504
|
+
*/
|
|
505
|
+
export type OsGymSandboxTemplateSpecBuilderInterface = OsGymSandboxTemplateSpecBuilderLike;
|
|
506
|
+
export declare class OsGymSandboxTemplateSpecBuilder extends UniffiAbstractObject implements OsGymSandboxTemplateSpecBuilderLike {
|
|
507
|
+
readonly [uniffiTypeNameSymbol] = "OsGymSandboxTemplateSpecBuilder";
|
|
508
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
509
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
510
|
+
constructor();
|
|
511
|
+
build(): OsGymSandboxTemplateSpec;
|
|
512
|
+
vmTemplate(value: VmTemplate): OsGymSandboxTemplateSpecBuilderLike;
|
|
513
|
+
uniffiDestroy(): void;
|
|
514
|
+
static instanceOf(obj_: any): obj_ is OsGymSandboxTemplateSpecBuilder;
|
|
515
|
+
}
|
|
516
|
+
export interface OsGymSandboxWarmPoolSpecBuilderLike {
|
|
517
|
+
autoscaling(value: WarmPoolAutoscaling): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
518
|
+
build(): OsGymSandboxWarmPoolSpec;
|
|
519
|
+
idleTtlSeconds(value: number): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
520
|
+
replicas(value: number): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
521
|
+
sandboxTemplateRef(value: SandboxTemplateRef): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
522
|
+
ttlPolicy(value: WarmPoolTtlPolicy): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
523
|
+
ttlSecondsAfterCreated(value: number): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* @deprecated Use `OsGymSandboxWarmPoolSpecBuilderLike` instead.
|
|
527
|
+
*/
|
|
528
|
+
export type OsGymSandboxWarmPoolSpecBuilderInterface = OsGymSandboxWarmPoolSpecBuilderLike;
|
|
529
|
+
export declare class OsGymSandboxWarmPoolSpecBuilder extends UniffiAbstractObject implements OsGymSandboxWarmPoolSpecBuilderLike {
|
|
530
|
+
readonly [uniffiTypeNameSymbol] = "OsGymSandboxWarmPoolSpecBuilder";
|
|
531
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
532
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
533
|
+
constructor();
|
|
534
|
+
autoscaling(value: WarmPoolAutoscaling): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
535
|
+
build(): OsGymSandboxWarmPoolSpec;
|
|
536
|
+
idleTtlSeconds(value: number): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
537
|
+
replicas(value: number): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
538
|
+
sandboxTemplateRef(value: SandboxTemplateRef): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
539
|
+
ttlPolicy(value: WarmPoolTtlPolicy): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
540
|
+
ttlSecondsAfterCreated(value: number): OsGymSandboxWarmPoolSpecBuilderLike;
|
|
541
|
+
uniffiDestroy(): void;
|
|
542
|
+
static instanceOf(obj_: any): obj_ is OsGymSandboxWarmPoolSpecBuilder;
|
|
543
|
+
}
|
|
544
|
+
export interface SandboxServiceBuilderLike {
|
|
545
|
+
build(): SandboxService;
|
|
546
|
+
name(value: string): SandboxServiceBuilderLike;
|
|
547
|
+
protocol(value: ServiceProtocol): SandboxServiceBuilderLike;
|
|
548
|
+
targetPort(value: number): SandboxServiceBuilderLike;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* @deprecated Use `SandboxServiceBuilderLike` instead.
|
|
552
|
+
*/
|
|
553
|
+
export type SandboxServiceBuilderInterface = SandboxServiceBuilderLike;
|
|
554
|
+
export declare class SandboxServiceBuilder extends UniffiAbstractObject implements SandboxServiceBuilderLike {
|
|
555
|
+
readonly [uniffiTypeNameSymbol] = "SandboxServiceBuilder";
|
|
556
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
557
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
558
|
+
constructor();
|
|
559
|
+
build(): SandboxService;
|
|
560
|
+
name(value: string): SandboxServiceBuilderLike;
|
|
561
|
+
protocol(value: ServiceProtocol): SandboxServiceBuilderLike;
|
|
562
|
+
targetPort(value: number): SandboxServiceBuilderLike;
|
|
563
|
+
uniffiDestroy(): void;
|
|
564
|
+
static instanceOf(obj_: any): obj_ is SandboxServiceBuilder;
|
|
565
|
+
}
|
|
566
|
+
export interface SandboxTemplateRefBuilderLike {
|
|
567
|
+
build(): SandboxTemplateRef;
|
|
568
|
+
name(value: string): SandboxTemplateRefBuilderLike;
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* @deprecated Use `SandboxTemplateRefBuilderLike` instead.
|
|
572
|
+
*/
|
|
573
|
+
export type SandboxTemplateRefBuilderInterface = SandboxTemplateRefBuilderLike;
|
|
574
|
+
export declare class SandboxTemplateRefBuilder extends UniffiAbstractObject implements SandboxTemplateRefBuilderLike {
|
|
575
|
+
readonly [uniffiTypeNameSymbol] = "SandboxTemplateRefBuilder";
|
|
576
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
577
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
578
|
+
constructor();
|
|
579
|
+
build(): SandboxTemplateRef;
|
|
580
|
+
name(value: string): SandboxTemplateRefBuilderLike;
|
|
581
|
+
uniffiDestroy(): void;
|
|
582
|
+
static instanceOf(obj_: any): obj_ is SandboxTemplateRefBuilder;
|
|
583
|
+
}
|
|
584
|
+
export interface VmTemplateBuilderLike {
|
|
585
|
+
args(value: Array<string>): VmTemplateBuilderLike;
|
|
586
|
+
build(): VmTemplate;
|
|
587
|
+
claimSecrets(value: boolean): VmTemplateBuilderLike;
|
|
588
|
+
command(value: Array<string>): VmTemplateBuilderLike;
|
|
589
|
+
containerDiskImage(value: string): VmTemplateBuilderLike;
|
|
590
|
+
cpuCores(value: number): VmTemplateBuilderLike;
|
|
591
|
+
env(value: Map<string, string>): VmTemplateBuilderLike;
|
|
592
|
+
firmware(value: Firmware): VmTemplateBuilderLike;
|
|
593
|
+
imagePullPolicy(value: ImagePullPolicy): VmTemplateBuilderLike;
|
|
594
|
+
imagePullSecret(value: string): VmTemplateBuilderLike;
|
|
595
|
+
memory(value: string): VmTemplateBuilderLike;
|
|
596
|
+
nestedVirtualization(value: boolean): VmTemplateBuilderLike;
|
|
597
|
+
nodeSelector(value: Map<string, string>): VmTemplateBuilderLike;
|
|
598
|
+
oidc(value: OidcConfig): VmTemplateBuilderLike;
|
|
599
|
+
probes(value: PreservedJsonLike): VmTemplateBuilderLike;
|
|
600
|
+
processMode(value: ProcessMode): VmTemplateBuilderLike;
|
|
601
|
+
runtime(value: RuntimeKind): VmTemplateBuilderLike;
|
|
602
|
+
runtimeClassName(value: string): VmTemplateBuilderLike;
|
|
603
|
+
services(value: Array<SandboxService>): VmTemplateBuilderLike;
|
|
604
|
+
tolerations(value: Array<PreservedJsonLike>): VmTemplateBuilderLike;
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* @deprecated Use `VmTemplateBuilderLike` instead.
|
|
608
|
+
*/
|
|
609
|
+
export type VmTemplateBuilderInterface = VmTemplateBuilderLike;
|
|
610
|
+
export declare class VmTemplateBuilder extends UniffiAbstractObject implements VmTemplateBuilderLike {
|
|
611
|
+
readonly [uniffiTypeNameSymbol] = "VmTemplateBuilder";
|
|
612
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
613
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
614
|
+
constructor();
|
|
615
|
+
args(value: Array<string>): VmTemplateBuilderLike;
|
|
616
|
+
build(): VmTemplate;
|
|
617
|
+
claimSecrets(value: boolean): VmTemplateBuilderLike;
|
|
618
|
+
command(value: Array<string>): VmTemplateBuilderLike;
|
|
619
|
+
containerDiskImage(value: string): VmTemplateBuilderLike;
|
|
620
|
+
cpuCores(value: number): VmTemplateBuilderLike;
|
|
621
|
+
env(value: Map<string, string>): VmTemplateBuilderLike;
|
|
622
|
+
firmware(value: Firmware): VmTemplateBuilderLike;
|
|
623
|
+
imagePullPolicy(value: ImagePullPolicy): VmTemplateBuilderLike;
|
|
624
|
+
imagePullSecret(value: string): VmTemplateBuilderLike;
|
|
625
|
+
memory(value: string): VmTemplateBuilderLike;
|
|
626
|
+
nestedVirtualization(value: boolean): VmTemplateBuilderLike;
|
|
627
|
+
nodeSelector(value: Map<string, string>): VmTemplateBuilderLike;
|
|
628
|
+
oidc(value: OidcConfig): VmTemplateBuilderLike;
|
|
629
|
+
probes(value: PreservedJsonLike): VmTemplateBuilderLike;
|
|
630
|
+
processMode(value: ProcessMode): VmTemplateBuilderLike;
|
|
631
|
+
runtime(value: RuntimeKind): VmTemplateBuilderLike;
|
|
632
|
+
runtimeClassName(value: string): VmTemplateBuilderLike;
|
|
633
|
+
services(value: Array<SandboxService>): VmTemplateBuilderLike;
|
|
634
|
+
tolerations(value: Array<PreservedJsonLike>): VmTemplateBuilderLike;
|
|
635
|
+
uniffiDestroy(): void;
|
|
636
|
+
static instanceOf(obj_: any): obj_ is VmTemplateBuilder;
|
|
637
|
+
}
|
|
638
|
+
export interface WarmPoolAutoscalingBuilderLike {
|
|
639
|
+
build(): WarmPoolAutoscaling;
|
|
640
|
+
initialPoolSize(value: number): WarmPoolAutoscalingBuilderLike;
|
|
641
|
+
maxPoolSize(value: number): WarmPoolAutoscalingBuilderLike;
|
|
642
|
+
minPoolSize(value: number): WarmPoolAutoscalingBuilderLike;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* @deprecated Use `WarmPoolAutoscalingBuilderLike` instead.
|
|
646
|
+
*/
|
|
647
|
+
export type WarmPoolAutoscalingBuilderInterface = WarmPoolAutoscalingBuilderLike;
|
|
648
|
+
export declare class WarmPoolAutoscalingBuilder extends UniffiAbstractObject implements WarmPoolAutoscalingBuilderLike {
|
|
649
|
+
readonly [uniffiTypeNameSymbol] = "WarmPoolAutoscalingBuilder";
|
|
650
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
651
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
652
|
+
constructor();
|
|
653
|
+
build(): WarmPoolAutoscaling;
|
|
654
|
+
initialPoolSize(value: number): WarmPoolAutoscalingBuilderLike;
|
|
655
|
+
maxPoolSize(value: number): WarmPoolAutoscalingBuilderLike;
|
|
656
|
+
minPoolSize(value: number): WarmPoolAutoscalingBuilderLike;
|
|
657
|
+
uniffiDestroy(): void;
|
|
658
|
+
static instanceOf(obj_: any): obj_ is WarmPoolAutoscalingBuilder;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* This should be called before anything else.
|
|
662
|
+
*
|
|
663
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
664
|
+
*
|
|
665
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
666
|
+
* and when the bindings were generated.
|
|
667
|
+
*
|
|
668
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
669
|
+
*/
|
|
670
|
+
declare function uniffiEnsureInitialized(): void;
|
|
671
|
+
declare const _default: Readonly<{
|
|
672
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
673
|
+
converters: {
|
|
674
|
+
FfiConverterTypeClaimLifecycle: {
|
|
675
|
+
read(from: RustBuffer): ClaimLifecycle;
|
|
676
|
+
write(value: ClaimLifecycle, into: RustBuffer): void;
|
|
677
|
+
allocationSize(value: ClaimLifecycle): number;
|
|
678
|
+
lift(value: UniffiByteArray): ClaimLifecycle;
|
|
679
|
+
lower(value: ClaimLifecycle, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
680
|
+
};
|
|
681
|
+
FfiConverterTypeClaimSecretRef: {
|
|
682
|
+
read(from: RustBuffer): ClaimSecretRef;
|
|
683
|
+
write(value: ClaimSecretRef, into: RustBuffer): void;
|
|
684
|
+
allocationSize(value: ClaimSecretRef): number;
|
|
685
|
+
lift(value: UniffiByteArray): ClaimSecretRef;
|
|
686
|
+
lower(value: ClaimSecretRef, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
687
|
+
};
|
|
688
|
+
FfiConverterTypeClaimSpec: {
|
|
689
|
+
read(from: RustBuffer): ClaimSpec;
|
|
690
|
+
write(value: ClaimSpec, into: RustBuffer): void;
|
|
691
|
+
allocationSize(value: ClaimSpec): number;
|
|
692
|
+
lift(value: UniffiByteArray): ClaimSpec;
|
|
693
|
+
lower(value: ClaimSpec, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
694
|
+
};
|
|
695
|
+
FfiConverterTypeFirmware: {
|
|
696
|
+
read(from: RustBuffer): Firmware;
|
|
697
|
+
write(value: Firmware, into: RustBuffer): void;
|
|
698
|
+
allocationSize(value: Firmware): number;
|
|
699
|
+
lift(value: UniffiByteArray): Firmware;
|
|
700
|
+
lower(value: Firmware, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
701
|
+
};
|
|
702
|
+
FfiConverterTypeImagePullPolicy: {
|
|
703
|
+
read(from: RustBuffer): ImagePullPolicy;
|
|
704
|
+
write(value: ImagePullPolicy, into: RustBuffer): void;
|
|
705
|
+
allocationSize(value: ImagePullPolicy): number;
|
|
706
|
+
lift(value: UniffiByteArray): ImagePullPolicy;
|
|
707
|
+
lower(value: ImagePullPolicy, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
708
|
+
};
|
|
709
|
+
FfiConverterTypeJsonValueError: {
|
|
710
|
+
read(from: RustBuffer): {
|
|
711
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
712
|
+
readonly inner: Readonly<{
|
|
713
|
+
reason: string;
|
|
714
|
+
}>;
|
|
715
|
+
/**
|
|
716
|
+
* @private
|
|
717
|
+
* This field is private and should not be used, use `tag` instead.
|
|
718
|
+
*/
|
|
719
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
720
|
+
name: string;
|
|
721
|
+
message: string;
|
|
722
|
+
stack?: string;
|
|
723
|
+
cause?: unknown;
|
|
724
|
+
};
|
|
725
|
+
write(value: {
|
|
726
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
727
|
+
readonly inner: Readonly<{
|
|
728
|
+
reason: string;
|
|
729
|
+
}>;
|
|
730
|
+
/**
|
|
731
|
+
* @private
|
|
732
|
+
* This field is private and should not be used, use `tag` instead.
|
|
733
|
+
*/
|
|
734
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
735
|
+
name: string;
|
|
736
|
+
message: string;
|
|
737
|
+
stack?: string;
|
|
738
|
+
cause?: unknown;
|
|
739
|
+
}, into: RustBuffer): void;
|
|
740
|
+
allocationSize(value: {
|
|
741
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
742
|
+
readonly inner: Readonly<{
|
|
743
|
+
reason: string;
|
|
744
|
+
}>;
|
|
745
|
+
/**
|
|
746
|
+
* @private
|
|
747
|
+
* This field is private and should not be used, use `tag` instead.
|
|
748
|
+
*/
|
|
749
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
750
|
+
name: string;
|
|
751
|
+
message: string;
|
|
752
|
+
stack?: string;
|
|
753
|
+
cause?: unknown;
|
|
754
|
+
}): number;
|
|
755
|
+
lift(value: UniffiByteArray): {
|
|
756
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
757
|
+
readonly inner: Readonly<{
|
|
758
|
+
reason: string;
|
|
759
|
+
}>;
|
|
760
|
+
/**
|
|
761
|
+
* @private
|
|
762
|
+
* This field is private and should not be used, use `tag` instead.
|
|
763
|
+
*/
|
|
764
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
765
|
+
name: string;
|
|
766
|
+
message: string;
|
|
767
|
+
stack?: string;
|
|
768
|
+
cause?: unknown;
|
|
769
|
+
};
|
|
770
|
+
lower(value: {
|
|
771
|
+
readonly tag: JsonValueError_Tags.Invalid;
|
|
772
|
+
readonly inner: Readonly<{
|
|
773
|
+
reason: string;
|
|
774
|
+
}>;
|
|
775
|
+
/**
|
|
776
|
+
* @private
|
|
777
|
+
* This field is private and should not be used, use `tag` instead.
|
|
778
|
+
*/
|
|
779
|
+
readonly [uniffiTypeNameSymbol]: "JsonValueError";
|
|
780
|
+
name: string;
|
|
781
|
+
message: string;
|
|
782
|
+
stack?: string;
|
|
783
|
+
cause?: unknown;
|
|
784
|
+
}, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
785
|
+
};
|
|
786
|
+
FfiConverterTypeOSGymSandboxClaimCondition: {
|
|
787
|
+
read(from: RustBuffer): OsGymSandboxClaimCondition;
|
|
788
|
+
write(value: OsGymSandboxClaimCondition, into: RustBuffer): void;
|
|
789
|
+
allocationSize(value: OsGymSandboxClaimCondition): number;
|
|
790
|
+
lift(value: UniffiByteArray): OsGymSandboxClaimCondition;
|
|
791
|
+
lower(value: OsGymSandboxClaimCondition, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
792
|
+
};
|
|
793
|
+
FfiConverterTypeOSGymSandboxClaimSandbox: {
|
|
794
|
+
read(from: RustBuffer): OsGymSandboxClaimSandbox;
|
|
795
|
+
write(value: OsGymSandboxClaimSandbox, into: RustBuffer): void;
|
|
796
|
+
allocationSize(value: OsGymSandboxClaimSandbox): number;
|
|
797
|
+
lift(value: UniffiByteArray): OsGymSandboxClaimSandbox;
|
|
798
|
+
lower(value: OsGymSandboxClaimSandbox, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
799
|
+
};
|
|
800
|
+
FfiConverterTypeOSGymSandboxClaimStatus: {
|
|
801
|
+
read(from: RustBuffer): OsGymSandboxClaimStatus;
|
|
802
|
+
write(value: OsGymSandboxClaimStatus, into: RustBuffer): void;
|
|
803
|
+
allocationSize(value: OsGymSandboxClaimStatus): number;
|
|
804
|
+
lift(value: UniffiByteArray): OsGymSandboxClaimStatus;
|
|
805
|
+
lower(value: OsGymSandboxClaimStatus, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
806
|
+
};
|
|
807
|
+
FfiConverterTypeOSGymSandboxSpec: {
|
|
808
|
+
read(from: RustBuffer): OsGymSandboxSpec;
|
|
809
|
+
write(value: OsGymSandboxSpec, into: RustBuffer): void;
|
|
810
|
+
allocationSize(value: OsGymSandboxSpec): number;
|
|
811
|
+
lift(value: UniffiByteArray): OsGymSandboxSpec;
|
|
812
|
+
lower(value: OsGymSandboxSpec, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
813
|
+
};
|
|
814
|
+
FfiConverterTypeOSGymSandboxStatus: {
|
|
815
|
+
read(from: RustBuffer): OsGymSandboxStatus;
|
|
816
|
+
write(value: OsGymSandboxStatus, into: RustBuffer): void;
|
|
817
|
+
allocationSize(value: OsGymSandboxStatus): number;
|
|
818
|
+
lift(value: UniffiByteArray): OsGymSandboxStatus;
|
|
819
|
+
lower(value: OsGymSandboxStatus, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
820
|
+
};
|
|
821
|
+
FfiConverterTypeOSGymSandboxTemplateSpec: {
|
|
822
|
+
read(from: RustBuffer): OsGymSandboxTemplateSpec;
|
|
823
|
+
write(value: OsGymSandboxTemplateSpec, into: RustBuffer): void;
|
|
824
|
+
allocationSize(value: OsGymSandboxTemplateSpec): number;
|
|
825
|
+
lift(value: UniffiByteArray): OsGymSandboxTemplateSpec;
|
|
826
|
+
lower(value: OsGymSandboxTemplateSpec, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
827
|
+
};
|
|
828
|
+
FfiConverterTypeOSGymSandboxTemplateSpecBuilder: FfiConverterObject<OsGymSandboxTemplateSpecBuilderLike>;
|
|
829
|
+
FfiConverterTypeOSGymSandboxWarmPoolSpec: {
|
|
830
|
+
read(from: RustBuffer): OsGymSandboxWarmPoolSpec;
|
|
831
|
+
write(value: OsGymSandboxWarmPoolSpec, into: RustBuffer): void;
|
|
832
|
+
allocationSize(value: OsGymSandboxWarmPoolSpec): number;
|
|
833
|
+
lift(value: UniffiByteArray): OsGymSandboxWarmPoolSpec;
|
|
834
|
+
lower(value: OsGymSandboxWarmPoolSpec, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
835
|
+
};
|
|
836
|
+
FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder: FfiConverterObject<OsGymSandboxWarmPoolSpecBuilderLike>;
|
|
837
|
+
FfiConverterTypeOSGymSandboxWarmPoolStatus: {
|
|
838
|
+
read(from: RustBuffer): OsGymSandboxWarmPoolStatus;
|
|
839
|
+
write(value: OsGymSandboxWarmPoolStatus, into: RustBuffer): void;
|
|
840
|
+
allocationSize(value: OsGymSandboxWarmPoolStatus): number;
|
|
841
|
+
lift(value: UniffiByteArray): OsGymSandboxWarmPoolStatus;
|
|
842
|
+
lower(value: OsGymSandboxWarmPoolStatus, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
843
|
+
};
|
|
844
|
+
FfiConverterTypeOidcConfig: {
|
|
845
|
+
read(from: RustBuffer): OidcConfig;
|
|
846
|
+
write(value: OidcConfig, into: RustBuffer): void;
|
|
847
|
+
allocationSize(value: OidcConfig): number;
|
|
848
|
+
lift(value: UniffiByteArray): OidcConfig;
|
|
849
|
+
lower(value: OidcConfig, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
850
|
+
};
|
|
851
|
+
FfiConverterTypePreservedJson: FfiConverterObject<PreservedJsonLike>;
|
|
852
|
+
FfiConverterTypeProcessMode: {
|
|
853
|
+
read(from: RustBuffer): ProcessMode;
|
|
854
|
+
write(value: ProcessMode, into: RustBuffer): void;
|
|
855
|
+
allocationSize(value: ProcessMode): number;
|
|
856
|
+
lift(value: UniffiByteArray): ProcessMode;
|
|
857
|
+
lower(value: ProcessMode, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
858
|
+
};
|
|
859
|
+
FfiConverterTypeRuntimeKind: {
|
|
860
|
+
read(from: RustBuffer): RuntimeKind;
|
|
861
|
+
write(value: RuntimeKind, into: RustBuffer): void;
|
|
862
|
+
allocationSize(value: RuntimeKind): number;
|
|
863
|
+
lift(value: UniffiByteArray): RuntimeKind;
|
|
864
|
+
lower(value: RuntimeKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
865
|
+
};
|
|
866
|
+
FfiConverterTypeSandboxService: {
|
|
867
|
+
read(from: RustBuffer): SandboxService;
|
|
868
|
+
write(value: SandboxService, into: RustBuffer): void;
|
|
869
|
+
allocationSize(value: SandboxService): number;
|
|
870
|
+
lift(value: UniffiByteArray): SandboxService;
|
|
871
|
+
lower(value: SandboxService, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
872
|
+
};
|
|
873
|
+
FfiConverterTypeSandboxServiceBuilder: FfiConverterObject<SandboxServiceBuilderLike>;
|
|
874
|
+
FfiConverterTypeSandboxTemplateRef: {
|
|
875
|
+
read(from: RustBuffer): SandboxTemplateRef;
|
|
876
|
+
write(value: SandboxTemplateRef, into: RustBuffer): void;
|
|
877
|
+
allocationSize(value: SandboxTemplateRef): number;
|
|
878
|
+
lift(value: UniffiByteArray): SandboxTemplateRef;
|
|
879
|
+
lower(value: SandboxTemplateRef, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
880
|
+
};
|
|
881
|
+
FfiConverterTypeSandboxTemplateRefBuilder: FfiConverterObject<SandboxTemplateRefBuilderLike>;
|
|
882
|
+
FfiConverterTypeSchemaBuildError: {
|
|
883
|
+
read(from: RustBuffer): {
|
|
884
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
885
|
+
readonly inner: Readonly<{
|
|
886
|
+
recordType: string;
|
|
887
|
+
field: string;
|
|
888
|
+
}>;
|
|
889
|
+
/**
|
|
890
|
+
* @private
|
|
891
|
+
* This field is private and should not be used, use `tag` instead.
|
|
892
|
+
*/
|
|
893
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
894
|
+
name: string;
|
|
895
|
+
message: string;
|
|
896
|
+
stack?: string;
|
|
897
|
+
cause?: unknown;
|
|
898
|
+
};
|
|
899
|
+
write(value: {
|
|
900
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
901
|
+
readonly inner: Readonly<{
|
|
902
|
+
recordType: string;
|
|
903
|
+
field: string;
|
|
904
|
+
}>;
|
|
905
|
+
/**
|
|
906
|
+
* @private
|
|
907
|
+
* This field is private and should not be used, use `tag` instead.
|
|
908
|
+
*/
|
|
909
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
910
|
+
name: string;
|
|
911
|
+
message: string;
|
|
912
|
+
stack?: string;
|
|
913
|
+
cause?: unknown;
|
|
914
|
+
}, into: RustBuffer): void;
|
|
915
|
+
allocationSize(value: {
|
|
916
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
917
|
+
readonly inner: Readonly<{
|
|
918
|
+
recordType: string;
|
|
919
|
+
field: string;
|
|
920
|
+
}>;
|
|
921
|
+
/**
|
|
922
|
+
* @private
|
|
923
|
+
* This field is private and should not be used, use `tag` instead.
|
|
924
|
+
*/
|
|
925
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
926
|
+
name: string;
|
|
927
|
+
message: string;
|
|
928
|
+
stack?: string;
|
|
929
|
+
cause?: unknown;
|
|
930
|
+
}): number;
|
|
931
|
+
lift(value: UniffiByteArray): {
|
|
932
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
933
|
+
readonly inner: Readonly<{
|
|
934
|
+
recordType: string;
|
|
935
|
+
field: string;
|
|
936
|
+
}>;
|
|
937
|
+
/**
|
|
938
|
+
* @private
|
|
939
|
+
* This field is private and should not be used, use `tag` instead.
|
|
940
|
+
*/
|
|
941
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
942
|
+
name: string;
|
|
943
|
+
message: string;
|
|
944
|
+
stack?: string;
|
|
945
|
+
cause?: unknown;
|
|
946
|
+
};
|
|
947
|
+
lower(value: {
|
|
948
|
+
readonly tag: SchemaBuildError_Tags.MissingRequiredField;
|
|
949
|
+
readonly inner: Readonly<{
|
|
950
|
+
recordType: string;
|
|
951
|
+
field: string;
|
|
952
|
+
}>;
|
|
953
|
+
/**
|
|
954
|
+
* @private
|
|
955
|
+
* This field is private and should not be used, use `tag` instead.
|
|
956
|
+
*/
|
|
957
|
+
readonly [uniffiTypeNameSymbol]: "SchemaBuildError";
|
|
958
|
+
name: string;
|
|
959
|
+
message: string;
|
|
960
|
+
stack?: string;
|
|
961
|
+
cause?: unknown;
|
|
962
|
+
}, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
963
|
+
};
|
|
964
|
+
FfiConverterTypeServiceProtocol: {
|
|
965
|
+
read(from: RustBuffer): ServiceProtocol;
|
|
966
|
+
write(value: ServiceProtocol, into: RustBuffer): void;
|
|
967
|
+
allocationSize(value: ServiceProtocol): number;
|
|
968
|
+
lift(value: UniffiByteArray): ServiceProtocol;
|
|
969
|
+
lower(value: ServiceProtocol, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
970
|
+
};
|
|
971
|
+
FfiConverterTypeVmTemplate: {
|
|
972
|
+
read(from: RustBuffer): VmTemplate;
|
|
973
|
+
write(value: VmTemplate, into: RustBuffer): void;
|
|
974
|
+
allocationSize(value: VmTemplate): number;
|
|
975
|
+
lift(value: UniffiByteArray): VmTemplate;
|
|
976
|
+
lower(value: VmTemplate, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
977
|
+
};
|
|
978
|
+
FfiConverterTypeVmTemplateBuilder: FfiConverterObject<VmTemplateBuilderLike>;
|
|
979
|
+
FfiConverterTypeWarmPoolAutoscaling: {
|
|
980
|
+
read(from: RustBuffer): WarmPoolAutoscaling;
|
|
981
|
+
write(value: WarmPoolAutoscaling, into: RustBuffer): void;
|
|
982
|
+
allocationSize(value: WarmPoolAutoscaling): number;
|
|
983
|
+
lift(value: UniffiByteArray): WarmPoolAutoscaling;
|
|
984
|
+
lower(value: WarmPoolAutoscaling, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
985
|
+
};
|
|
986
|
+
FfiConverterTypeWarmPoolAutoscalingBuilder: FfiConverterObject<WarmPoolAutoscalingBuilderLike>;
|
|
987
|
+
FfiConverterTypeWarmPoolTtlPolicy: {
|
|
988
|
+
read(from: RustBuffer): WarmPoolTtlPolicy;
|
|
989
|
+
write(value: WarmPoolTtlPolicy, into: RustBuffer): void;
|
|
990
|
+
allocationSize(value: WarmPoolTtlPolicy): number;
|
|
991
|
+
lift(value: UniffiByteArray): WarmPoolTtlPolicy;
|
|
992
|
+
lower(value: WarmPoolTtlPolicy, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
}>;
|
|
996
|
+
export default _default;
|