@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,3056 @@
|
|
|
1
|
+
import { type ClaimSpec, type OsGymSandboxClaimStatus, type OsGymSandboxTemplateSpec, type OsGymSandboxWarmPoolSpec, type OsGymSandboxWarmPoolStatus, type PreservedJsonLike } from "./cyclops_sdk_schema.js";
|
|
2
|
+
import { type UniffiByteArray, type UniffiGcObject, type UniffiHandle, FfiConverterObject, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from "@ubjs/core";
|
|
3
|
+
/**
|
|
4
|
+
* The `secret_files` key (and in-guest file name, `/run/cua/env-token`)
|
|
5
|
+
* that carries the cua-env-driver token for a claimed sandbox.
|
|
6
|
+
*/
|
|
7
|
+
export declare function claimEnvTokenKey(): string;
|
|
8
|
+
/**
|
|
9
|
+
* The label key a fleet's claims share, for callers that filter or clean up
|
|
10
|
+
* with raw Kubernetes tooling instead of `list_fleet_claims`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function fleetLabelKey(): string;
|
|
13
|
+
export declare function healthyPoolDisplayStatus(): PoolDisplayStatus;
|
|
14
|
+
export declare function poolDisplayStatus(pool: Pool): PoolDisplayStatus;
|
|
15
|
+
/**
|
|
16
|
+
* The name prefix every tenant registry pull Secret must carry.
|
|
17
|
+
*/
|
|
18
|
+
export declare function registrySecretNamePrefix(): string;
|
|
19
|
+
export declare function removedPoolDisplayStatus(): PoolDisplayStatus;
|
|
20
|
+
export declare function terminatingPoolDisplayStatus(): PoolDisplayStatus;
|
|
21
|
+
export declare function unknownPoolDisplayStatus(): PoolDisplayStatus;
|
|
22
|
+
export type ResourceMetadata = {
|
|
23
|
+
namespace: string;
|
|
24
|
+
name: string;
|
|
25
|
+
labels?: Map<string, string>;
|
|
26
|
+
creationTimestamp?: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Generated factory for {@link ResourceMetadata} record objects.
|
|
30
|
+
*/
|
|
31
|
+
export declare const ResourceMetadata: Readonly<{
|
|
32
|
+
create: (partial: Partial<ResourceMetadata> & Required<Omit<ResourceMetadata, "name" | "namespace" | "labels" | "creationTimestamp">>) => ResourceMetadata;
|
|
33
|
+
new: (partial: Partial<ResourceMetadata> & Required<Omit<ResourceMetadata, "name" | "namespace" | "labels" | "creationTimestamp">>) => ResourceMetadata;
|
|
34
|
+
defaults: () => Partial<ResourceMetadata>;
|
|
35
|
+
}>;
|
|
36
|
+
export type Claim = {
|
|
37
|
+
apiVersion: string;
|
|
38
|
+
kind: string;
|
|
39
|
+
metadata: ResourceMetadata;
|
|
40
|
+
spec: ClaimSpec;
|
|
41
|
+
status?: OsGymSandboxClaimStatus;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Generated factory for {@link Claim} record objects.
|
|
45
|
+
*/
|
|
46
|
+
export declare const Claim: Readonly<{
|
|
47
|
+
create: (partial: Partial<Claim> & Required<Omit<Claim, "kind" | "status" | "apiVersion" | "metadata" | "spec">>) => Claim;
|
|
48
|
+
new: (partial: Partial<Claim> & Required<Omit<Claim, "kind" | "status" | "apiVersion" | "metadata" | "spec">>) => Claim;
|
|
49
|
+
defaults: () => Partial<Claim>;
|
|
50
|
+
}>;
|
|
51
|
+
/**
|
|
52
|
+
* UniFFI cannot emit aliases for external record types. Generated bindings use
|
|
53
|
+
* `OSGymSandboxWarmPoolStatus` and `OSGymSandboxClaimStatus` from cyclops_sdk_schema.
|
|
54
|
+
*
|
|
55
|
+
* A `Pool` is the `osgym.cua.ai/v1alpha1 OSGymSandboxWarmPool` CR verbatim —
|
|
56
|
+
* the SDK is a naive CRUD mapper over the native CRDs, with no translation
|
|
57
|
+
* layer (the legacy `cua.ai/v1 OSGymWorkspacePool` and its operator compat
|
|
58
|
+
* shim are gone).
|
|
59
|
+
*/
|
|
60
|
+
export type Pool = {
|
|
61
|
+
apiVersion: string;
|
|
62
|
+
kind: string;
|
|
63
|
+
metadata: ResourceMetadata;
|
|
64
|
+
spec: OsGymSandboxWarmPoolSpec;
|
|
65
|
+
status?: OsGymSandboxWarmPoolStatus;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Generated factory for {@link Pool} record objects.
|
|
69
|
+
*/
|
|
70
|
+
export declare const Pool: Readonly<{
|
|
71
|
+
create: (partial: Partial<Pool> & Required<Omit<Pool, "kind" | "status" | "apiVersion" | "metadata" | "spec">>) => Pool;
|
|
72
|
+
new: (partial: Partial<Pool> & Required<Omit<Pool, "kind" | "status" | "apiVersion" | "metadata" | "spec">>) => Pool;
|
|
73
|
+
defaults: () => Partial<Pool>;
|
|
74
|
+
}>;
|
|
75
|
+
export type CreateClaimRequest = {
|
|
76
|
+
pool: Pool;
|
|
77
|
+
spec?: ClaimSpec;
|
|
78
|
+
/**
|
|
79
|
+
* Explicit claim name. A client-supplied name is used verbatim (after
|
|
80
|
+
* DNS-label validation); left unset, the client generates a random
|
|
81
|
+
* `claim-<petname>` so concurrent leases and retries cannot collide.
|
|
82
|
+
*/
|
|
83
|
+
name?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Labels stamped onto the created claim's metadata verbatim. Grouping
|
|
86
|
+
* helpers (for example fleet fan-out) rely on this to tag related claims
|
|
87
|
+
* so they can be listed back by label within a namespace.
|
|
88
|
+
*/
|
|
89
|
+
labels?: Map<string, string>;
|
|
90
|
+
/**
|
|
91
|
+
* Files delivered into the bound sandbox under `/run/cua/<key>` (mode
|
|
92
|
+
* 0600) once the claim binds, without restarting it. The key
|
|
93
|
+
* `claim_env_token_key()` (`env-token`) carries the cua-env-driver token.
|
|
94
|
+
* The client stores them in a claim-scoped `cua-claim-<claim>` Secret
|
|
95
|
+
* that the claim references by `spec.secretRef`; `delete_claim` removes
|
|
96
|
+
* it. The pool's template must set `vmTemplate.claimSecrets`. Values are
|
|
97
|
+
* never serialized with the request nor printed by `Debug`.
|
|
98
|
+
*/
|
|
99
|
+
secretFiles?: Map<string, string>;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Generated factory for {@link CreateClaimRequest} record objects.
|
|
103
|
+
*/
|
|
104
|
+
export declare const CreateClaimRequest: Readonly<{
|
|
105
|
+
create: (partial: Partial<CreateClaimRequest> & Required<Omit<CreateClaimRequest, "name" | "labels" | "spec" | "pool" | "secretFiles">>) => CreateClaimRequest;
|
|
106
|
+
new: (partial: Partial<CreateClaimRequest> & Required<Omit<CreateClaimRequest, "name" | "labels" | "spec" | "pool" | "secretFiles">>) => CreateClaimRequest;
|
|
107
|
+
defaults: () => Partial<CreateClaimRequest>;
|
|
108
|
+
}>;
|
|
109
|
+
export type CreatePoolRequest = {
|
|
110
|
+
namespace: string;
|
|
111
|
+
spec: OsGymSandboxWarmPoolSpec;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Generated factory for {@link CreatePoolRequest} record objects.
|
|
115
|
+
*/
|
|
116
|
+
export declare const CreatePoolRequest: Readonly<{
|
|
117
|
+
create: (partial: Partial<CreatePoolRequest> & Required<Omit<CreatePoolRequest, "namespace" | "spec">>) => CreatePoolRequest;
|
|
118
|
+
new: (partial: Partial<CreatePoolRequest> & Required<Omit<CreatePoolRequest, "namespace" | "spec">>) => CreatePoolRequest;
|
|
119
|
+
defaults: () => Partial<CreatePoolRequest>;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* Credentials for one registry, stored as a `cua-registry-*` pull Secret.
|
|
123
|
+
*/
|
|
124
|
+
export type CreateRegistrySecretRequest = {
|
|
125
|
+
/**
|
|
126
|
+
* Pool namespace the Secret is created in. It must already exist (the
|
|
127
|
+
* pool's namespace, created by `create_pool`, or by `create_namespace`).
|
|
128
|
+
*/
|
|
129
|
+
namespace: string;
|
|
130
|
+
/**
|
|
131
|
+
* Full Secret name, `cua-registry-<dns-label>`.
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
/**
|
|
135
|
+
* Registry host the credentials are for, as image refs spell it, e.g.
|
|
136
|
+
* `ghcr.io`, `registry.example.com:5000` or `docker.io`.
|
|
137
|
+
*/
|
|
138
|
+
registry: string;
|
|
139
|
+
username: string;
|
|
140
|
+
/**
|
|
141
|
+
* Password or access token. Never serialized by `Debug`.
|
|
142
|
+
*/
|
|
143
|
+
password: string;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Generated factory for {@link CreateRegistrySecretRequest} record objects.
|
|
147
|
+
*/
|
|
148
|
+
export declare const CreateRegistrySecretRequest: Readonly<{
|
|
149
|
+
create: (partial: Partial<CreateRegistrySecretRequest> & Required<Omit<CreateRegistrySecretRequest, "name" | "namespace" | "registry" | "username" | "password">>) => CreateRegistrySecretRequest;
|
|
150
|
+
new: (partial: Partial<CreateRegistrySecretRequest> & Required<Omit<CreateRegistrySecretRequest, "name" | "namespace" | "registry" | "username" | "password">>) => CreateRegistrySecretRequest;
|
|
151
|
+
defaults: () => Partial<CreateRegistrySecretRequest>;
|
|
152
|
+
}>;
|
|
153
|
+
export type Sandbox = {
|
|
154
|
+
namespace: string;
|
|
155
|
+
claim: string;
|
|
156
|
+
name: string;
|
|
157
|
+
services: Array<string>;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Generated factory for {@link Sandbox} record objects.
|
|
161
|
+
*/
|
|
162
|
+
export declare const Sandbox: Readonly<{
|
|
163
|
+
create: (partial: Partial<Sandbox> & Required<Omit<Sandbox, "name" | "namespace" | "claim" | "services">>) => Sandbox;
|
|
164
|
+
new: (partial: Partial<Sandbox> & Required<Omit<Sandbox, "name" | "namespace" | "claim" | "services">>) => Sandbox;
|
|
165
|
+
defaults: () => Partial<Sandbox>;
|
|
166
|
+
}>;
|
|
167
|
+
export type CreateSignedServiceUrlRequest = {
|
|
168
|
+
sandbox: Sandbox;
|
|
169
|
+
service: string;
|
|
170
|
+
label?: string;
|
|
171
|
+
expiresInSeconds: number;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Generated factory for {@link CreateSignedServiceUrlRequest} record objects.
|
|
175
|
+
*/
|
|
176
|
+
export declare const CreateSignedServiceUrlRequest: Readonly<{
|
|
177
|
+
create: (partial: Partial<CreateSignedServiceUrlRequest> & Required<Omit<CreateSignedServiceUrlRequest, "service" | "sandbox" | "label" | "expiresInSeconds">>) => CreateSignedServiceUrlRequest;
|
|
178
|
+
new: (partial: Partial<CreateSignedServiceUrlRequest> & Required<Omit<CreateSignedServiceUrlRequest, "service" | "sandbox" | "label" | "expiresInSeconds">>) => CreateSignedServiceUrlRequest;
|
|
179
|
+
defaults: () => Partial<CreateSignedServiceUrlRequest>;
|
|
180
|
+
}>;
|
|
181
|
+
export type CreateTemplateRequest = {
|
|
182
|
+
namespace: string;
|
|
183
|
+
name: string;
|
|
184
|
+
spec: OsGymSandboxTemplateSpec;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Generated factory for {@link CreateTemplateRequest} record objects.
|
|
188
|
+
*/
|
|
189
|
+
export declare const CreateTemplateRequest: Readonly<{
|
|
190
|
+
create: (partial: Partial<CreateTemplateRequest> & Required<Omit<CreateTemplateRequest, "name" | "namespace" | "spec">>) => CreateTemplateRequest;
|
|
191
|
+
new: (partial: Partial<CreateTemplateRequest> & Required<Omit<CreateTemplateRequest, "name" | "namespace" | "spec">>) => CreateTemplateRequest;
|
|
192
|
+
defaults: () => Partial<CreateTemplateRequest>;
|
|
193
|
+
}>;
|
|
194
|
+
export type CreateUserApiKeyRequest = {
|
|
195
|
+
name: string;
|
|
196
|
+
scope: Array<string>;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Generated factory for {@link CreateUserApiKeyRequest} record objects.
|
|
200
|
+
*/
|
|
201
|
+
export declare const CreateUserApiKeyRequest: Readonly<{
|
|
202
|
+
create: (partial: Partial<CreateUserApiKeyRequest> & Required<Omit<CreateUserApiKeyRequest, "name" | "scope">>) => CreateUserApiKeyRequest;
|
|
203
|
+
new: (partial: Partial<CreateUserApiKeyRequest> & Required<Omit<CreateUserApiKeyRequest, "name" | "scope">>) => CreateUserApiKeyRequest;
|
|
204
|
+
defaults: () => Partial<CreateUserApiKeyRequest>;
|
|
205
|
+
}>;
|
|
206
|
+
export interface CyclopsCredentialsLike {
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @deprecated Use `CyclopsCredentialsLike` instead.
|
|
210
|
+
*/
|
|
211
|
+
export type CyclopsCredentialsInterface = CyclopsCredentialsLike;
|
|
212
|
+
export declare class CyclopsCredentials extends UniffiAbstractObject implements CyclopsCredentialsLike {
|
|
213
|
+
readonly [uniffiTypeNameSymbol] = "CyclopsCredentials";
|
|
214
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
215
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
216
|
+
constructor(clientId: string, clientSecret: string);
|
|
217
|
+
uniffiDestroy(): void;
|
|
218
|
+
static instanceOf(obj_: any): obj_ is CyclopsCredentials;
|
|
219
|
+
}
|
|
220
|
+
export type CyclopsConfiguration = {
|
|
221
|
+
baseUrl: string;
|
|
222
|
+
tokenUrl: string;
|
|
223
|
+
credentials: CyclopsCredentialsLike;
|
|
224
|
+
poolPollIntervalMs: bigint;
|
|
225
|
+
poolPollLimit: number;
|
|
226
|
+
claimPollIntervalMs: bigint;
|
|
227
|
+
claimPollLimit: number;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* Generated factory for {@link CyclopsConfiguration} record objects.
|
|
231
|
+
*/
|
|
232
|
+
export declare const CyclopsConfiguration: Readonly<{
|
|
233
|
+
create: (partial: Partial<CyclopsConfiguration> & Required<Omit<CyclopsConfiguration, "baseUrl" | "tokenUrl" | "credentials" | "poolPollIntervalMs" | "poolPollLimit" | "claimPollIntervalMs" | "claimPollLimit">>) => CyclopsConfiguration;
|
|
234
|
+
new: (partial: Partial<CyclopsConfiguration> & Required<Omit<CyclopsConfiguration, "baseUrl" | "tokenUrl" | "credentials" | "poolPollIntervalMs" | "poolPollLimit" | "claimPollIntervalMs" | "claimPollLimit">>) => CyclopsConfiguration;
|
|
235
|
+
defaults: () => Partial<CyclopsConfiguration>;
|
|
236
|
+
}>;
|
|
237
|
+
export type CyclopsTokenProviderConfiguration = {
|
|
238
|
+
baseUrl: string;
|
|
239
|
+
poolPollIntervalMs: bigint;
|
|
240
|
+
poolPollLimit: number;
|
|
241
|
+
claimPollIntervalMs: bigint;
|
|
242
|
+
claimPollLimit: number;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Generated factory for {@link CyclopsTokenProviderConfiguration} record objects.
|
|
246
|
+
*/
|
|
247
|
+
export declare const CyclopsTokenProviderConfiguration: Readonly<{
|
|
248
|
+
create: (partial: Partial<CyclopsTokenProviderConfiguration> & Required<Omit<CyclopsTokenProviderConfiguration, "baseUrl" | "poolPollIntervalMs" | "poolPollLimit" | "claimPollIntervalMs" | "claimPollLimit">>) => CyclopsTokenProviderConfiguration;
|
|
249
|
+
new: (partial: Partial<CyclopsTokenProviderConfiguration> & Required<Omit<CyclopsTokenProviderConfiguration, "baseUrl" | "poolPollIntervalMs" | "poolPollLimit" | "claimPollIntervalMs" | "claimPollLimit">>) => CyclopsTokenProviderConfiguration;
|
|
250
|
+
defaults: () => Partial<CyclopsTokenProviderConfiguration>;
|
|
251
|
+
}>;
|
|
252
|
+
/**
|
|
253
|
+
* A fleet's identity plus the claims currently known to belong to it.
|
|
254
|
+
*/
|
|
255
|
+
export type FleetClaims = {
|
|
256
|
+
fleetId: string;
|
|
257
|
+
claims: Array<Claim>;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Generated factory for {@link FleetClaims} record objects.
|
|
261
|
+
*/
|
|
262
|
+
export declare const FleetClaims: Readonly<{
|
|
263
|
+
create: (partial: Partial<FleetClaims> & Required<Omit<FleetClaims, "fleetId" | "claims">>) => FleetClaims;
|
|
264
|
+
new: (partial: Partial<FleetClaims> & Required<Omit<FleetClaims, "fleetId" | "claims">>) => FleetClaims;
|
|
265
|
+
defaults: () => Partial<FleetClaims>;
|
|
266
|
+
}>;
|
|
267
|
+
/**
|
|
268
|
+
* One pool's share of a fleet: claim `replicas` sandboxes from the warm pool
|
|
269
|
+
* named `pool`. On this platform the pool name is also its namespace.
|
|
270
|
+
*/
|
|
271
|
+
export type FleetPoolRequest = {
|
|
272
|
+
pool: string;
|
|
273
|
+
replicas: number;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Generated factory for {@link FleetPoolRequest} record objects.
|
|
277
|
+
*/
|
|
278
|
+
export declare const FleetPoolRequest: Readonly<{
|
|
279
|
+
create: (partial: Partial<FleetPoolRequest> & Required<Omit<FleetPoolRequest, "replicas" | "pool">>) => FleetPoolRequest;
|
|
280
|
+
new: (partial: Partial<FleetPoolRequest> & Required<Omit<FleetPoolRequest, "replicas" | "pool">>) => FleetPoolRequest;
|
|
281
|
+
defaults: () => Partial<FleetPoolRequest>;
|
|
282
|
+
}>;
|
|
283
|
+
export type HttpHeader = {
|
|
284
|
+
name: string;
|
|
285
|
+
value: string;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* Generated factory for {@link HttpHeader} record objects.
|
|
289
|
+
*/
|
|
290
|
+
export declare const HttpHeader: Readonly<{
|
|
291
|
+
create: (partial: Partial<HttpHeader> & Required<Omit<HttpHeader, "name" | "value">>) => HttpHeader;
|
|
292
|
+
new: (partial: Partial<HttpHeader> & Required<Omit<HttpHeader, "name" | "value">>) => HttpHeader;
|
|
293
|
+
defaults: () => Partial<HttpHeader>;
|
|
294
|
+
}>;
|
|
295
|
+
export type HttpRequest = {
|
|
296
|
+
method: string;
|
|
297
|
+
url: string;
|
|
298
|
+
headers: Array<HttpHeader>;
|
|
299
|
+
body?: ArrayBuffer;
|
|
300
|
+
/**
|
|
301
|
+
* Per-request timeout. Defaults to absent so callers written against the
|
|
302
|
+
* pre-timeout record shape keep constructing requests unchanged; absent
|
|
303
|
+
* falls back to the native client's 30-second default.
|
|
304
|
+
*/
|
|
305
|
+
timeoutSecs?: bigint;
|
|
306
|
+
/**
|
|
307
|
+
* Maximum bytes delivered in the response body. Absent preserves the
|
|
308
|
+
* historical unbounded response behavior.
|
|
309
|
+
*/
|
|
310
|
+
maxResponseBytes?: bigint;
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Generated factory for {@link HttpRequest} record objects.
|
|
314
|
+
*/
|
|
315
|
+
export declare const HttpRequest: Readonly<{
|
|
316
|
+
create: (partial: Partial<HttpRequest> & Required<Omit<HttpRequest, "body" | "method" | "url" | "headers" | "timeoutSecs" | "maxResponseBytes">>) => HttpRequest;
|
|
317
|
+
new: (partial: Partial<HttpRequest> & Required<Omit<HttpRequest, "body" | "method" | "url" | "headers" | "timeoutSecs" | "maxResponseBytes">>) => HttpRequest;
|
|
318
|
+
defaults: () => Partial<HttpRequest>;
|
|
319
|
+
}>;
|
|
320
|
+
export type HttpResponse = {
|
|
321
|
+
status: number;
|
|
322
|
+
headers: Array<HttpHeader>;
|
|
323
|
+
body: ArrayBuffer;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Generated factory for {@link HttpResponse} record objects.
|
|
327
|
+
*/
|
|
328
|
+
export declare const HttpResponse: Readonly<{
|
|
329
|
+
create: (partial: Partial<HttpResponse> & Required<Omit<HttpResponse, "status" | "body" | "headers">>) => HttpResponse;
|
|
330
|
+
new: (partial: Partial<HttpResponse> & Required<Omit<HttpResponse, "status" | "body" | "headers">>) => HttpResponse;
|
|
331
|
+
defaults: () => Partial<HttpResponse>;
|
|
332
|
+
}>;
|
|
333
|
+
export type ImageUploadFileRequest = {
|
|
334
|
+
digest: string;
|
|
335
|
+
sizeBytes: bigint;
|
|
336
|
+
name: string;
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* Generated factory for {@link ImageUploadFileRequest} record objects.
|
|
340
|
+
*/
|
|
341
|
+
export declare const ImageUploadFileRequest: Readonly<{
|
|
342
|
+
create: (partial: Partial<ImageUploadFileRequest> & Required<Omit<ImageUploadFileRequest, "name" | "digest" | "sizeBytes">>) => ImageUploadFileRequest;
|
|
343
|
+
new: (partial: Partial<ImageUploadFileRequest> & Required<Omit<ImageUploadFileRequest, "name" | "digest" | "sizeBytes">>) => ImageUploadFileRequest;
|
|
344
|
+
defaults: () => Partial<ImageUploadFileRequest>;
|
|
345
|
+
}>;
|
|
346
|
+
export type PresignedPut = {
|
|
347
|
+
method: string;
|
|
348
|
+
url: string;
|
|
349
|
+
headers: Map<string, string>;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Generated factory for {@link PresignedPut} record objects.
|
|
353
|
+
*/
|
|
354
|
+
export declare const PresignedPut: Readonly<{
|
|
355
|
+
create: (partial: Partial<PresignedPut> & Required<Omit<PresignedPut, "method" | "url" | "headers">>) => PresignedPut;
|
|
356
|
+
new: (partial: Partial<PresignedPut> & Required<Omit<PresignedPut, "method" | "url" | "headers">>) => PresignedPut;
|
|
357
|
+
defaults: () => Partial<PresignedPut>;
|
|
358
|
+
}>;
|
|
359
|
+
export type ImageUploadInstruction = {
|
|
360
|
+
digest: string;
|
|
361
|
+
sizeBytes: bigint;
|
|
362
|
+
reference: string;
|
|
363
|
+
upload?: PresignedPut;
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* Generated factory for {@link ImageUploadInstruction} record objects.
|
|
367
|
+
*/
|
|
368
|
+
export declare const ImageUploadInstruction: Readonly<{
|
|
369
|
+
create: (partial: Partial<ImageUploadInstruction> & Required<Omit<ImageUploadInstruction, "digest" | "sizeBytes" | "reference" | "upload">>) => ImageUploadInstruction;
|
|
370
|
+
new: (partial: Partial<ImageUploadInstruction> & Required<Omit<ImageUploadInstruction, "digest" | "sizeBytes" | "reference" | "upload">>) => ImageUploadInstruction;
|
|
371
|
+
defaults: () => Partial<ImageUploadInstruction>;
|
|
372
|
+
}>;
|
|
373
|
+
export type ImageUploadRequest = {
|
|
374
|
+
namespace: string;
|
|
375
|
+
files: Array<ImageUploadFileRequest>;
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* Generated factory for {@link ImageUploadRequest} record objects.
|
|
379
|
+
*/
|
|
380
|
+
export declare const ImageUploadRequest: Readonly<{
|
|
381
|
+
create: (partial: Partial<ImageUploadRequest> & Required<Omit<ImageUploadRequest, "namespace" | "files">>) => ImageUploadRequest;
|
|
382
|
+
new: (partial: Partial<ImageUploadRequest> & Required<Omit<ImageUploadRequest, "namespace" | "files">>) => ImageUploadRequest;
|
|
383
|
+
defaults: () => Partial<ImageUploadRequest>;
|
|
384
|
+
}>;
|
|
385
|
+
export type ImageUploadResponse = {
|
|
386
|
+
files: Array<ImageUploadInstruction>;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Generated factory for {@link ImageUploadResponse} record objects.
|
|
390
|
+
*/
|
|
391
|
+
export declare const ImageUploadResponse: Readonly<{
|
|
392
|
+
create: (partial: Partial<ImageUploadResponse> & Required<Omit<ImageUploadResponse, "files">>) => ImageUploadResponse;
|
|
393
|
+
new: (partial: Partial<ImageUploadResponse> & Required<Omit<ImageUploadResponse, "files">>) => ImageUploadResponse;
|
|
394
|
+
defaults: () => Partial<ImageUploadResponse>;
|
|
395
|
+
}>;
|
|
396
|
+
export type Namespace = {
|
|
397
|
+
name: string;
|
|
398
|
+
status: string;
|
|
399
|
+
createdAt: string;
|
|
400
|
+
labels?: Map<string, string>;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Generated factory for {@link Namespace} record objects.
|
|
404
|
+
*/
|
|
405
|
+
export declare const Namespace: Readonly<{
|
|
406
|
+
create: (partial: Partial<Namespace> & Required<Omit<Namespace, "name" | "status" | "labels" | "createdAt">>) => Namespace;
|
|
407
|
+
new: (partial: Partial<Namespace> & Required<Omit<Namespace, "name" | "status" | "labels" | "createdAt">>) => Namespace;
|
|
408
|
+
defaults: () => Partial<Namespace>;
|
|
409
|
+
}>;
|
|
410
|
+
export type NewUserApiKey = {
|
|
411
|
+
clientId: string;
|
|
412
|
+
clientSecret: string;
|
|
413
|
+
tokenUrl: string;
|
|
414
|
+
name: string;
|
|
415
|
+
scope: Array<string>;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Generated factory for {@link NewUserApiKey} record objects.
|
|
419
|
+
*/
|
|
420
|
+
export declare const NewUserApiKey: Readonly<{
|
|
421
|
+
create: (partial: Partial<NewUserApiKey> & Required<Omit<NewUserApiKey, "name" | "tokenUrl" | "scope" | "clientId" | "clientSecret">>) => NewUserApiKey;
|
|
422
|
+
new: (partial: Partial<NewUserApiKey> & Required<Omit<NewUserApiKey, "name" | "tokenUrl" | "scope" | "clientId" | "clientSecret">>) => NewUserApiKey;
|
|
423
|
+
defaults: () => Partial<NewUserApiKey>;
|
|
424
|
+
}>;
|
|
425
|
+
export declare enum PoolDisplayStatusKind {
|
|
426
|
+
Healthy = 0,
|
|
427
|
+
ScaledToZero = 1,
|
|
428
|
+
Removed = 2,
|
|
429
|
+
Terminating = 3,
|
|
430
|
+
Unknown = 4
|
|
431
|
+
}
|
|
432
|
+
export type PoolDisplayStatus = {
|
|
433
|
+
kind: PoolDisplayStatusKind;
|
|
434
|
+
label: string;
|
|
435
|
+
indicator: string;
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* Generated factory for {@link PoolDisplayStatus} record objects.
|
|
439
|
+
*/
|
|
440
|
+
export declare const PoolDisplayStatus: Readonly<{
|
|
441
|
+
create: (partial: Partial<PoolDisplayStatus> & Required<Omit<PoolDisplayStatus, "kind" | "label" | "indicator">>) => PoolDisplayStatus;
|
|
442
|
+
new: (partial: Partial<PoolDisplayStatus> & Required<Omit<PoolDisplayStatus, "kind" | "label" | "indicator">>) => PoolDisplayStatus;
|
|
443
|
+
defaults: () => Partial<PoolDisplayStatus>;
|
|
444
|
+
}>;
|
|
445
|
+
/**
|
|
446
|
+
* A created registry pull Secret. Carries no credential: Secrets are
|
|
447
|
+
* write-only through the gateway.
|
|
448
|
+
*/
|
|
449
|
+
export type RegistrySecret = {
|
|
450
|
+
namespace: string;
|
|
451
|
+
name: string;
|
|
452
|
+
registry: string;
|
|
453
|
+
};
|
|
454
|
+
/**
|
|
455
|
+
* Generated factory for {@link RegistrySecret} record objects.
|
|
456
|
+
*/
|
|
457
|
+
export declare const RegistrySecret: Readonly<{
|
|
458
|
+
create: (partial: Partial<RegistrySecret> & Required<Omit<RegistrySecret, "name" | "namespace" | "registry">>) => RegistrySecret;
|
|
459
|
+
new: (partial: Partial<RegistrySecret> & Required<Omit<RegistrySecret, "name" | "namespace" | "registry">>) => RegistrySecret;
|
|
460
|
+
defaults: () => Partial<RegistrySecret>;
|
|
461
|
+
}>;
|
|
462
|
+
/**
|
|
463
|
+
* A registry ref pinned by the gateway (`GET /api/images/resolve`).
|
|
464
|
+
*/
|
|
465
|
+
export type ResolvedImage = {
|
|
466
|
+
/**
|
|
467
|
+
* The ref as requested.
|
|
468
|
+
*/
|
|
469
|
+
reference: string;
|
|
470
|
+
/**
|
|
471
|
+
* The ref actually resolved: for a canonical image and runtime
|
|
472
|
+
* `kubevirt` this is the containerDisk sibling (`…:24.04-disk`).
|
|
473
|
+
*/
|
|
474
|
+
resolvedRef: string;
|
|
475
|
+
/**
|
|
476
|
+
* `repo@sha256:…` of the manifest (or index) to run.
|
|
477
|
+
*/
|
|
478
|
+
pinnedRef: string;
|
|
479
|
+
digest: string;
|
|
480
|
+
/**
|
|
481
|
+
* `rootfs` (docker/gVisor), `containerdisk` (KubeVirt) or `unknown`.
|
|
482
|
+
*/
|
|
483
|
+
variant: string;
|
|
484
|
+
/**
|
|
485
|
+
* The linux/amd64 child manifest digest when the ref is an index.
|
|
486
|
+
*/
|
|
487
|
+
platformDigest?: string;
|
|
488
|
+
mediaType: string;
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* Generated factory for {@link ResolvedImage} record objects.
|
|
492
|
+
*/
|
|
493
|
+
export declare const ResolvedImage: Readonly<{
|
|
494
|
+
create: (partial: Partial<ResolvedImage> & Required<Omit<ResolvedImage, "digest" | "reference" | "resolvedRef" | "pinnedRef" | "variant" | "platformDigest" | "mediaType">>) => ResolvedImage;
|
|
495
|
+
new: (partial: Partial<ResolvedImage> & Required<Omit<ResolvedImage, "digest" | "reference" | "resolvedRef" | "pinnedRef" | "variant" | "platformDigest" | "mediaType">>) => ResolvedImage;
|
|
496
|
+
defaults: () => Partial<ResolvedImage>;
|
|
497
|
+
}>;
|
|
498
|
+
/**
|
|
499
|
+
* Where a native client opens its own WebSocket to a sandbox service through
|
|
500
|
+
* the gateway's `/api/svc` proxy. `url` is the `ws(s)://` endpoint;
|
|
501
|
+
* `auth_header_name`/`auth_header_value` carry the bearer the socket's HTTP
|
|
502
|
+
* upgrade request must send. Deliberately not serde-serializable: the value
|
|
503
|
+
* holds a live credential and must not be logged or persisted.
|
|
504
|
+
*/
|
|
505
|
+
export type ServiceStreamTarget = {
|
|
506
|
+
url: string;
|
|
507
|
+
authHeaderName: string;
|
|
508
|
+
authHeaderValue: string;
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* Generated factory for {@link ServiceStreamTarget} record objects.
|
|
512
|
+
*/
|
|
513
|
+
export declare const ServiceStreamTarget: Readonly<{
|
|
514
|
+
create: (partial: Partial<ServiceStreamTarget> & Required<Omit<ServiceStreamTarget, "url" | "authHeaderName" | "authHeaderValue">>) => ServiceStreamTarget;
|
|
515
|
+
new: (partial: Partial<ServiceStreamTarget> & Required<Omit<ServiceStreamTarget, "url" | "authHeaderName" | "authHeaderValue">>) => ServiceStreamTarget;
|
|
516
|
+
defaults: () => Partial<ServiceStreamTarget>;
|
|
517
|
+
}>;
|
|
518
|
+
export type SignedServiceUrl = {
|
|
519
|
+
id: string;
|
|
520
|
+
namespace: string;
|
|
521
|
+
claim: string;
|
|
522
|
+
sandbox: string;
|
|
523
|
+
service: string;
|
|
524
|
+
label?: string;
|
|
525
|
+
url: string;
|
|
526
|
+
createdAt: string;
|
|
527
|
+
expiresAt: string;
|
|
528
|
+
revokedAt?: string;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Generated factory for {@link SignedServiceUrl} record objects.
|
|
532
|
+
*/
|
|
533
|
+
export declare const SignedServiceUrl: Readonly<{
|
|
534
|
+
create: (partial: Partial<SignedServiceUrl> & Required<Omit<SignedServiceUrl, "namespace" | "claim" | "service" | "sandbox" | "label" | "url" | "createdAt" | "id" | "expiresAt" | "revokedAt">>) => SignedServiceUrl;
|
|
535
|
+
new: (partial: Partial<SignedServiceUrl> & Required<Omit<SignedServiceUrl, "namespace" | "claim" | "service" | "sandbox" | "label" | "url" | "createdAt" | "id" | "expiresAt" | "revokedAt">>) => SignedServiceUrl;
|
|
536
|
+
defaults: () => Partial<SignedServiceUrl>;
|
|
537
|
+
}>;
|
|
538
|
+
/**
|
|
539
|
+
* The `osgym.cua.ai/v1alpha1 OSGymSandboxTemplate` CR verbatim. Warm pools
|
|
540
|
+
* and claims reference one by name via `spec.sandboxTemplateRef.name`.
|
|
541
|
+
*/
|
|
542
|
+
export type Template = {
|
|
543
|
+
apiVersion: string;
|
|
544
|
+
kind: string;
|
|
545
|
+
metadata: ResourceMetadata;
|
|
546
|
+
spec: OsGymSandboxTemplateSpec;
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Generated factory for {@link Template} record objects.
|
|
550
|
+
*/
|
|
551
|
+
export declare const Template: Readonly<{
|
|
552
|
+
create: (partial: Partial<Template> & Required<Omit<Template, "kind" | "apiVersion" | "metadata" | "spec">>) => Template;
|
|
553
|
+
new: (partial: Partial<Template> & Required<Omit<Template, "kind" | "apiVersion" | "metadata" | "spec">>) => Template;
|
|
554
|
+
defaults: () => Partial<Template>;
|
|
555
|
+
}>;
|
|
556
|
+
export type UserApiKey = {
|
|
557
|
+
id: string;
|
|
558
|
+
clientId: string;
|
|
559
|
+
name: string;
|
|
560
|
+
scope: Array<string>;
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* Generated factory for {@link UserApiKey} record objects.
|
|
564
|
+
*/
|
|
565
|
+
export declare const UserApiKey: Readonly<{
|
|
566
|
+
create: (partial: Partial<UserApiKey> & Required<Omit<UserApiKey, "name" | "scope" | "clientId" | "id">>) => UserApiKey;
|
|
567
|
+
new: (partial: Partial<UserApiKey> & Required<Omit<UserApiKey, "name" | "scope" | "clientId" | "id">>) => UserApiKey;
|
|
568
|
+
defaults: () => Partial<UserApiKey>;
|
|
569
|
+
}>;
|
|
570
|
+
export declare enum AccessTokenProviderError_Tags {
|
|
571
|
+
Failed = "Failed"
|
|
572
|
+
}
|
|
573
|
+
export declare const AccessTokenProviderError: Readonly<{
|
|
574
|
+
instanceOf: (obj: any) => obj is AccessTokenProviderError;
|
|
575
|
+
Failed: {
|
|
576
|
+
new (inner: {
|
|
577
|
+
reason: string;
|
|
578
|
+
}): {
|
|
579
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
580
|
+
readonly inner: Readonly<{
|
|
581
|
+
reason: string;
|
|
582
|
+
}>;
|
|
583
|
+
/**
|
|
584
|
+
* @private
|
|
585
|
+
* This field is private and should not be used, use `tag` instead.
|
|
586
|
+
*/
|
|
587
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
588
|
+
name: string;
|
|
589
|
+
message: string;
|
|
590
|
+
stack?: string;
|
|
591
|
+
cause?: unknown;
|
|
592
|
+
};
|
|
593
|
+
"new"(inner: {
|
|
594
|
+
reason: string;
|
|
595
|
+
}): {
|
|
596
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
597
|
+
readonly inner: Readonly<{
|
|
598
|
+
reason: string;
|
|
599
|
+
}>;
|
|
600
|
+
/**
|
|
601
|
+
* @private
|
|
602
|
+
* This field is private and should not be used, use `tag` instead.
|
|
603
|
+
*/
|
|
604
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
605
|
+
name: string;
|
|
606
|
+
message: string;
|
|
607
|
+
stack?: string;
|
|
608
|
+
cause?: unknown;
|
|
609
|
+
};
|
|
610
|
+
instanceOf(obj: any): obj is {
|
|
611
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
612
|
+
readonly inner: Readonly<{
|
|
613
|
+
reason: string;
|
|
614
|
+
}>;
|
|
615
|
+
/**
|
|
616
|
+
* @private
|
|
617
|
+
* This field is private and should not be used, use `tag` instead.
|
|
618
|
+
*/
|
|
619
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
620
|
+
name: string;
|
|
621
|
+
message: string;
|
|
622
|
+
stack?: string;
|
|
623
|
+
cause?: unknown;
|
|
624
|
+
};
|
|
625
|
+
hasInner(obj: any): obj is {
|
|
626
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
627
|
+
readonly inner: Readonly<{
|
|
628
|
+
reason: string;
|
|
629
|
+
}>;
|
|
630
|
+
/**
|
|
631
|
+
* @private
|
|
632
|
+
* This field is private and should not be used, use `tag` instead.
|
|
633
|
+
*/
|
|
634
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
635
|
+
name: string;
|
|
636
|
+
message: string;
|
|
637
|
+
stack?: string;
|
|
638
|
+
cause?: unknown;
|
|
639
|
+
};
|
|
640
|
+
getInner(obj: {
|
|
641
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
642
|
+
readonly inner: Readonly<{
|
|
643
|
+
reason: string;
|
|
644
|
+
}>;
|
|
645
|
+
/**
|
|
646
|
+
* @private
|
|
647
|
+
* This field is private and should not be used, use `tag` instead.
|
|
648
|
+
*/
|
|
649
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
650
|
+
name: string;
|
|
651
|
+
message: string;
|
|
652
|
+
stack?: string;
|
|
653
|
+
cause?: unknown;
|
|
654
|
+
}): Readonly<{
|
|
655
|
+
reason: string;
|
|
656
|
+
}>;
|
|
657
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
658
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
659
|
+
stackTraceLimit: number;
|
|
660
|
+
};
|
|
661
|
+
}>;
|
|
662
|
+
export type AccessTokenProviderError = InstanceType<typeof AccessTokenProviderError['Failed']>;
|
|
663
|
+
export declare enum HttpError_Tags {
|
|
664
|
+
Transport = "Transport"
|
|
665
|
+
}
|
|
666
|
+
export declare const HttpError: Readonly<{
|
|
667
|
+
instanceOf: (obj: any) => obj is HttpError;
|
|
668
|
+
Transport: {
|
|
669
|
+
new (inner: {
|
|
670
|
+
reason: string;
|
|
671
|
+
}): {
|
|
672
|
+
readonly tag: HttpError_Tags.Transport;
|
|
673
|
+
readonly inner: Readonly<{
|
|
674
|
+
reason: string;
|
|
675
|
+
}>;
|
|
676
|
+
/**
|
|
677
|
+
* @private
|
|
678
|
+
* This field is private and should not be used, use `tag` instead.
|
|
679
|
+
*/
|
|
680
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
681
|
+
name: string;
|
|
682
|
+
message: string;
|
|
683
|
+
stack?: string;
|
|
684
|
+
cause?: unknown;
|
|
685
|
+
};
|
|
686
|
+
"new"(inner: {
|
|
687
|
+
reason: string;
|
|
688
|
+
}): {
|
|
689
|
+
readonly tag: HttpError_Tags.Transport;
|
|
690
|
+
readonly inner: Readonly<{
|
|
691
|
+
reason: string;
|
|
692
|
+
}>;
|
|
693
|
+
/**
|
|
694
|
+
* @private
|
|
695
|
+
* This field is private and should not be used, use `tag` instead.
|
|
696
|
+
*/
|
|
697
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
698
|
+
name: string;
|
|
699
|
+
message: string;
|
|
700
|
+
stack?: string;
|
|
701
|
+
cause?: unknown;
|
|
702
|
+
};
|
|
703
|
+
instanceOf(obj: any): obj is {
|
|
704
|
+
readonly tag: HttpError_Tags.Transport;
|
|
705
|
+
readonly inner: Readonly<{
|
|
706
|
+
reason: string;
|
|
707
|
+
}>;
|
|
708
|
+
/**
|
|
709
|
+
* @private
|
|
710
|
+
* This field is private and should not be used, use `tag` instead.
|
|
711
|
+
*/
|
|
712
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
713
|
+
name: string;
|
|
714
|
+
message: string;
|
|
715
|
+
stack?: string;
|
|
716
|
+
cause?: unknown;
|
|
717
|
+
};
|
|
718
|
+
hasInner(obj: any): obj is {
|
|
719
|
+
readonly tag: HttpError_Tags.Transport;
|
|
720
|
+
readonly inner: Readonly<{
|
|
721
|
+
reason: string;
|
|
722
|
+
}>;
|
|
723
|
+
/**
|
|
724
|
+
* @private
|
|
725
|
+
* This field is private and should not be used, use `tag` instead.
|
|
726
|
+
*/
|
|
727
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
728
|
+
name: string;
|
|
729
|
+
message: string;
|
|
730
|
+
stack?: string;
|
|
731
|
+
cause?: unknown;
|
|
732
|
+
};
|
|
733
|
+
getInner(obj: {
|
|
734
|
+
readonly tag: HttpError_Tags.Transport;
|
|
735
|
+
readonly inner: Readonly<{
|
|
736
|
+
reason: string;
|
|
737
|
+
}>;
|
|
738
|
+
/**
|
|
739
|
+
* @private
|
|
740
|
+
* This field is private and should not be used, use `tag` instead.
|
|
741
|
+
*/
|
|
742
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
743
|
+
name: string;
|
|
744
|
+
message: string;
|
|
745
|
+
stack?: string;
|
|
746
|
+
cause?: unknown;
|
|
747
|
+
}): Readonly<{
|
|
748
|
+
reason: string;
|
|
749
|
+
}>;
|
|
750
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
751
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
752
|
+
stackTraceLimit: number;
|
|
753
|
+
};
|
|
754
|
+
}>;
|
|
755
|
+
export type HttpError = InstanceType<typeof HttpError['Transport']>;
|
|
756
|
+
export declare enum SdkBuildError_Tags {
|
|
757
|
+
MissingRequiredField = "MissingRequiredField"
|
|
758
|
+
}
|
|
759
|
+
export declare const SdkBuildError: Readonly<{
|
|
760
|
+
instanceOf: (obj: any) => obj is SdkBuildError;
|
|
761
|
+
MissingRequiredField: {
|
|
762
|
+
new (inner: {
|
|
763
|
+
recordType: string;
|
|
764
|
+
field: string;
|
|
765
|
+
}): {
|
|
766
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
767
|
+
readonly inner: Readonly<{
|
|
768
|
+
recordType: string;
|
|
769
|
+
field: string;
|
|
770
|
+
}>;
|
|
771
|
+
/**
|
|
772
|
+
* @private
|
|
773
|
+
* This field is private and should not be used, use `tag` instead.
|
|
774
|
+
*/
|
|
775
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
776
|
+
name: string;
|
|
777
|
+
message: string;
|
|
778
|
+
stack?: string;
|
|
779
|
+
cause?: unknown;
|
|
780
|
+
};
|
|
781
|
+
"new"(inner: {
|
|
782
|
+
recordType: string;
|
|
783
|
+
field: string;
|
|
784
|
+
}): {
|
|
785
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
786
|
+
readonly inner: Readonly<{
|
|
787
|
+
recordType: string;
|
|
788
|
+
field: string;
|
|
789
|
+
}>;
|
|
790
|
+
/**
|
|
791
|
+
* @private
|
|
792
|
+
* This field is private and should not be used, use `tag` instead.
|
|
793
|
+
*/
|
|
794
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
795
|
+
name: string;
|
|
796
|
+
message: string;
|
|
797
|
+
stack?: string;
|
|
798
|
+
cause?: unknown;
|
|
799
|
+
};
|
|
800
|
+
instanceOf(obj: any): obj is {
|
|
801
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
802
|
+
readonly inner: Readonly<{
|
|
803
|
+
recordType: string;
|
|
804
|
+
field: string;
|
|
805
|
+
}>;
|
|
806
|
+
/**
|
|
807
|
+
* @private
|
|
808
|
+
* This field is private and should not be used, use `tag` instead.
|
|
809
|
+
*/
|
|
810
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
811
|
+
name: string;
|
|
812
|
+
message: string;
|
|
813
|
+
stack?: string;
|
|
814
|
+
cause?: unknown;
|
|
815
|
+
};
|
|
816
|
+
hasInner(obj: any): obj is {
|
|
817
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
818
|
+
readonly inner: Readonly<{
|
|
819
|
+
recordType: string;
|
|
820
|
+
field: string;
|
|
821
|
+
}>;
|
|
822
|
+
/**
|
|
823
|
+
* @private
|
|
824
|
+
* This field is private and should not be used, use `tag` instead.
|
|
825
|
+
*/
|
|
826
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
827
|
+
name: string;
|
|
828
|
+
message: string;
|
|
829
|
+
stack?: string;
|
|
830
|
+
cause?: unknown;
|
|
831
|
+
};
|
|
832
|
+
getInner(obj: {
|
|
833
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
834
|
+
readonly inner: Readonly<{
|
|
835
|
+
recordType: string;
|
|
836
|
+
field: string;
|
|
837
|
+
}>;
|
|
838
|
+
/**
|
|
839
|
+
* @private
|
|
840
|
+
* This field is private and should not be used, use `tag` instead.
|
|
841
|
+
*/
|
|
842
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
843
|
+
name: string;
|
|
844
|
+
message: string;
|
|
845
|
+
stack?: string;
|
|
846
|
+
cause?: unknown;
|
|
847
|
+
}): Readonly<{
|
|
848
|
+
recordType: string;
|
|
849
|
+
field: string;
|
|
850
|
+
}>;
|
|
851
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
852
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
853
|
+
stackTraceLimit: number;
|
|
854
|
+
};
|
|
855
|
+
}>;
|
|
856
|
+
export type SdkBuildError = InstanceType<typeof SdkBuildError['MissingRequiredField']>;
|
|
857
|
+
export declare enum SdkError_Tags {
|
|
858
|
+
Configuration = "Configuration",
|
|
859
|
+
InvalidResourceName = "InvalidResourceName",
|
|
860
|
+
Transport = "Transport",
|
|
861
|
+
Token = "Token",
|
|
862
|
+
Body = "Body",
|
|
863
|
+
Status = "Status",
|
|
864
|
+
SignedServiceUrlsUnavailable = "SignedServiceUrlsUnavailable",
|
|
865
|
+
UnknownService = "UnknownService",
|
|
866
|
+
InvalidServicePath = "InvalidServicePath",
|
|
867
|
+
ClaimFailed = "ClaimFailed",
|
|
868
|
+
ClaimTimeout = "ClaimTimeout",
|
|
869
|
+
PoolAccessDenied = "PoolAccessDenied"
|
|
870
|
+
}
|
|
871
|
+
export declare const SdkError: Readonly<{
|
|
872
|
+
instanceOf: (obj: any) => obj is SdkError;
|
|
873
|
+
Configuration: {
|
|
874
|
+
new (inner: {
|
|
875
|
+
reason: string;
|
|
876
|
+
}): {
|
|
877
|
+
readonly tag: SdkError_Tags.Configuration;
|
|
878
|
+
readonly inner: Readonly<{
|
|
879
|
+
reason: string;
|
|
880
|
+
}>;
|
|
881
|
+
/**
|
|
882
|
+
* @private
|
|
883
|
+
* This field is private and should not be used, use `tag` instead.
|
|
884
|
+
*/
|
|
885
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
886
|
+
name: string;
|
|
887
|
+
message: string;
|
|
888
|
+
stack?: string;
|
|
889
|
+
cause?: unknown;
|
|
890
|
+
};
|
|
891
|
+
"new"(inner: {
|
|
892
|
+
reason: string;
|
|
893
|
+
}): {
|
|
894
|
+
readonly tag: SdkError_Tags.Configuration;
|
|
895
|
+
readonly inner: Readonly<{
|
|
896
|
+
reason: string;
|
|
897
|
+
}>;
|
|
898
|
+
/**
|
|
899
|
+
* @private
|
|
900
|
+
* This field is private and should not be used, use `tag` instead.
|
|
901
|
+
*/
|
|
902
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
903
|
+
name: string;
|
|
904
|
+
message: string;
|
|
905
|
+
stack?: string;
|
|
906
|
+
cause?: unknown;
|
|
907
|
+
};
|
|
908
|
+
instanceOf(obj: any): obj is {
|
|
909
|
+
readonly tag: SdkError_Tags.Configuration;
|
|
910
|
+
readonly inner: Readonly<{
|
|
911
|
+
reason: string;
|
|
912
|
+
}>;
|
|
913
|
+
/**
|
|
914
|
+
* @private
|
|
915
|
+
* This field is private and should not be used, use `tag` instead.
|
|
916
|
+
*/
|
|
917
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
918
|
+
name: string;
|
|
919
|
+
message: string;
|
|
920
|
+
stack?: string;
|
|
921
|
+
cause?: unknown;
|
|
922
|
+
};
|
|
923
|
+
hasInner(obj: any): obj is {
|
|
924
|
+
readonly tag: SdkError_Tags.Configuration;
|
|
925
|
+
readonly inner: Readonly<{
|
|
926
|
+
reason: string;
|
|
927
|
+
}>;
|
|
928
|
+
/**
|
|
929
|
+
* @private
|
|
930
|
+
* This field is private and should not be used, use `tag` instead.
|
|
931
|
+
*/
|
|
932
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
933
|
+
name: string;
|
|
934
|
+
message: string;
|
|
935
|
+
stack?: string;
|
|
936
|
+
cause?: unknown;
|
|
937
|
+
};
|
|
938
|
+
getInner(obj: {
|
|
939
|
+
readonly tag: SdkError_Tags.Configuration;
|
|
940
|
+
readonly inner: Readonly<{
|
|
941
|
+
reason: string;
|
|
942
|
+
}>;
|
|
943
|
+
/**
|
|
944
|
+
* @private
|
|
945
|
+
* This field is private and should not be used, use `tag` instead.
|
|
946
|
+
*/
|
|
947
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
948
|
+
name: string;
|
|
949
|
+
message: string;
|
|
950
|
+
stack?: string;
|
|
951
|
+
cause?: unknown;
|
|
952
|
+
}): Readonly<{
|
|
953
|
+
reason: string;
|
|
954
|
+
}>;
|
|
955
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
956
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
957
|
+
stackTraceLimit: number;
|
|
958
|
+
};
|
|
959
|
+
InvalidResourceName: {
|
|
960
|
+
new (inner: {
|
|
961
|
+
field: string;
|
|
962
|
+
value: string;
|
|
963
|
+
reason: string;
|
|
964
|
+
}): {
|
|
965
|
+
readonly tag: SdkError_Tags.InvalidResourceName;
|
|
966
|
+
readonly inner: Readonly<{
|
|
967
|
+
field: string;
|
|
968
|
+
value: string;
|
|
969
|
+
reason: string;
|
|
970
|
+
}>;
|
|
971
|
+
/**
|
|
972
|
+
* @private
|
|
973
|
+
* This field is private and should not be used, use `tag` instead.
|
|
974
|
+
*/
|
|
975
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
976
|
+
name: string;
|
|
977
|
+
message: string;
|
|
978
|
+
stack?: string;
|
|
979
|
+
cause?: unknown;
|
|
980
|
+
};
|
|
981
|
+
"new"(inner: {
|
|
982
|
+
field: string;
|
|
983
|
+
value: string;
|
|
984
|
+
reason: string;
|
|
985
|
+
}): {
|
|
986
|
+
readonly tag: SdkError_Tags.InvalidResourceName;
|
|
987
|
+
readonly inner: Readonly<{
|
|
988
|
+
field: string;
|
|
989
|
+
value: string;
|
|
990
|
+
reason: string;
|
|
991
|
+
}>;
|
|
992
|
+
/**
|
|
993
|
+
* @private
|
|
994
|
+
* This field is private and should not be used, use `tag` instead.
|
|
995
|
+
*/
|
|
996
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
997
|
+
name: string;
|
|
998
|
+
message: string;
|
|
999
|
+
stack?: string;
|
|
1000
|
+
cause?: unknown;
|
|
1001
|
+
};
|
|
1002
|
+
instanceOf(obj: any): obj is {
|
|
1003
|
+
readonly tag: SdkError_Tags.InvalidResourceName;
|
|
1004
|
+
readonly inner: Readonly<{
|
|
1005
|
+
field: string;
|
|
1006
|
+
value: string;
|
|
1007
|
+
reason: string;
|
|
1008
|
+
}>;
|
|
1009
|
+
/**
|
|
1010
|
+
* @private
|
|
1011
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1012
|
+
*/
|
|
1013
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1014
|
+
name: string;
|
|
1015
|
+
message: string;
|
|
1016
|
+
stack?: string;
|
|
1017
|
+
cause?: unknown;
|
|
1018
|
+
};
|
|
1019
|
+
hasInner(obj: any): obj is {
|
|
1020
|
+
readonly tag: SdkError_Tags.InvalidResourceName;
|
|
1021
|
+
readonly inner: Readonly<{
|
|
1022
|
+
field: string;
|
|
1023
|
+
value: string;
|
|
1024
|
+
reason: string;
|
|
1025
|
+
}>;
|
|
1026
|
+
/**
|
|
1027
|
+
* @private
|
|
1028
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1029
|
+
*/
|
|
1030
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1031
|
+
name: string;
|
|
1032
|
+
message: string;
|
|
1033
|
+
stack?: string;
|
|
1034
|
+
cause?: unknown;
|
|
1035
|
+
};
|
|
1036
|
+
getInner(obj: {
|
|
1037
|
+
readonly tag: SdkError_Tags.InvalidResourceName;
|
|
1038
|
+
readonly inner: Readonly<{
|
|
1039
|
+
field: string;
|
|
1040
|
+
value: string;
|
|
1041
|
+
reason: string;
|
|
1042
|
+
}>;
|
|
1043
|
+
/**
|
|
1044
|
+
* @private
|
|
1045
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1046
|
+
*/
|
|
1047
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1048
|
+
name: string;
|
|
1049
|
+
message: string;
|
|
1050
|
+
stack?: string;
|
|
1051
|
+
cause?: unknown;
|
|
1052
|
+
}): Readonly<{
|
|
1053
|
+
field: string;
|
|
1054
|
+
value: string;
|
|
1055
|
+
reason: string;
|
|
1056
|
+
}>;
|
|
1057
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1058
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1059
|
+
stackTraceLimit: number;
|
|
1060
|
+
};
|
|
1061
|
+
Transport: {
|
|
1062
|
+
new (inner: {
|
|
1063
|
+
reason: string;
|
|
1064
|
+
}): {
|
|
1065
|
+
readonly tag: SdkError_Tags.Transport;
|
|
1066
|
+
readonly inner: Readonly<{
|
|
1067
|
+
reason: string;
|
|
1068
|
+
}>;
|
|
1069
|
+
/**
|
|
1070
|
+
* @private
|
|
1071
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1072
|
+
*/
|
|
1073
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1074
|
+
name: string;
|
|
1075
|
+
message: string;
|
|
1076
|
+
stack?: string;
|
|
1077
|
+
cause?: unknown;
|
|
1078
|
+
};
|
|
1079
|
+
"new"(inner: {
|
|
1080
|
+
reason: string;
|
|
1081
|
+
}): {
|
|
1082
|
+
readonly tag: SdkError_Tags.Transport;
|
|
1083
|
+
readonly inner: Readonly<{
|
|
1084
|
+
reason: string;
|
|
1085
|
+
}>;
|
|
1086
|
+
/**
|
|
1087
|
+
* @private
|
|
1088
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1089
|
+
*/
|
|
1090
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1091
|
+
name: string;
|
|
1092
|
+
message: string;
|
|
1093
|
+
stack?: string;
|
|
1094
|
+
cause?: unknown;
|
|
1095
|
+
};
|
|
1096
|
+
instanceOf(obj: any): obj is {
|
|
1097
|
+
readonly tag: SdkError_Tags.Transport;
|
|
1098
|
+
readonly inner: Readonly<{
|
|
1099
|
+
reason: string;
|
|
1100
|
+
}>;
|
|
1101
|
+
/**
|
|
1102
|
+
* @private
|
|
1103
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1104
|
+
*/
|
|
1105
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1106
|
+
name: string;
|
|
1107
|
+
message: string;
|
|
1108
|
+
stack?: string;
|
|
1109
|
+
cause?: unknown;
|
|
1110
|
+
};
|
|
1111
|
+
hasInner(obj: any): obj is {
|
|
1112
|
+
readonly tag: SdkError_Tags.Transport;
|
|
1113
|
+
readonly inner: Readonly<{
|
|
1114
|
+
reason: string;
|
|
1115
|
+
}>;
|
|
1116
|
+
/**
|
|
1117
|
+
* @private
|
|
1118
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1119
|
+
*/
|
|
1120
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1121
|
+
name: string;
|
|
1122
|
+
message: string;
|
|
1123
|
+
stack?: string;
|
|
1124
|
+
cause?: unknown;
|
|
1125
|
+
};
|
|
1126
|
+
getInner(obj: {
|
|
1127
|
+
readonly tag: SdkError_Tags.Transport;
|
|
1128
|
+
readonly inner: Readonly<{
|
|
1129
|
+
reason: string;
|
|
1130
|
+
}>;
|
|
1131
|
+
/**
|
|
1132
|
+
* @private
|
|
1133
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1134
|
+
*/
|
|
1135
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1136
|
+
name: string;
|
|
1137
|
+
message: string;
|
|
1138
|
+
stack?: string;
|
|
1139
|
+
cause?: unknown;
|
|
1140
|
+
}): Readonly<{
|
|
1141
|
+
reason: string;
|
|
1142
|
+
}>;
|
|
1143
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1144
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1145
|
+
stackTraceLimit: number;
|
|
1146
|
+
};
|
|
1147
|
+
Token: {
|
|
1148
|
+
new (inner: {
|
|
1149
|
+
reason: string;
|
|
1150
|
+
}): {
|
|
1151
|
+
readonly tag: SdkError_Tags.Token;
|
|
1152
|
+
readonly inner: Readonly<{
|
|
1153
|
+
reason: string;
|
|
1154
|
+
}>;
|
|
1155
|
+
/**
|
|
1156
|
+
* @private
|
|
1157
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1158
|
+
*/
|
|
1159
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1160
|
+
name: string;
|
|
1161
|
+
message: string;
|
|
1162
|
+
stack?: string;
|
|
1163
|
+
cause?: unknown;
|
|
1164
|
+
};
|
|
1165
|
+
"new"(inner: {
|
|
1166
|
+
reason: string;
|
|
1167
|
+
}): {
|
|
1168
|
+
readonly tag: SdkError_Tags.Token;
|
|
1169
|
+
readonly inner: Readonly<{
|
|
1170
|
+
reason: string;
|
|
1171
|
+
}>;
|
|
1172
|
+
/**
|
|
1173
|
+
* @private
|
|
1174
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1175
|
+
*/
|
|
1176
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1177
|
+
name: string;
|
|
1178
|
+
message: string;
|
|
1179
|
+
stack?: string;
|
|
1180
|
+
cause?: unknown;
|
|
1181
|
+
};
|
|
1182
|
+
instanceOf(obj: any): obj is {
|
|
1183
|
+
readonly tag: SdkError_Tags.Token;
|
|
1184
|
+
readonly inner: Readonly<{
|
|
1185
|
+
reason: string;
|
|
1186
|
+
}>;
|
|
1187
|
+
/**
|
|
1188
|
+
* @private
|
|
1189
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1190
|
+
*/
|
|
1191
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1192
|
+
name: string;
|
|
1193
|
+
message: string;
|
|
1194
|
+
stack?: string;
|
|
1195
|
+
cause?: unknown;
|
|
1196
|
+
};
|
|
1197
|
+
hasInner(obj: any): obj is {
|
|
1198
|
+
readonly tag: SdkError_Tags.Token;
|
|
1199
|
+
readonly inner: Readonly<{
|
|
1200
|
+
reason: string;
|
|
1201
|
+
}>;
|
|
1202
|
+
/**
|
|
1203
|
+
* @private
|
|
1204
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1205
|
+
*/
|
|
1206
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1207
|
+
name: string;
|
|
1208
|
+
message: string;
|
|
1209
|
+
stack?: string;
|
|
1210
|
+
cause?: unknown;
|
|
1211
|
+
};
|
|
1212
|
+
getInner(obj: {
|
|
1213
|
+
readonly tag: SdkError_Tags.Token;
|
|
1214
|
+
readonly inner: Readonly<{
|
|
1215
|
+
reason: string;
|
|
1216
|
+
}>;
|
|
1217
|
+
/**
|
|
1218
|
+
* @private
|
|
1219
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1220
|
+
*/
|
|
1221
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1222
|
+
name: string;
|
|
1223
|
+
message: string;
|
|
1224
|
+
stack?: string;
|
|
1225
|
+
cause?: unknown;
|
|
1226
|
+
}): Readonly<{
|
|
1227
|
+
reason: string;
|
|
1228
|
+
}>;
|
|
1229
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1230
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1231
|
+
stackTraceLimit: number;
|
|
1232
|
+
};
|
|
1233
|
+
Body: {
|
|
1234
|
+
new (inner: {
|
|
1235
|
+
reason: string;
|
|
1236
|
+
}): {
|
|
1237
|
+
readonly tag: SdkError_Tags.Body;
|
|
1238
|
+
readonly inner: Readonly<{
|
|
1239
|
+
reason: string;
|
|
1240
|
+
}>;
|
|
1241
|
+
/**
|
|
1242
|
+
* @private
|
|
1243
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1244
|
+
*/
|
|
1245
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1246
|
+
name: string;
|
|
1247
|
+
message: string;
|
|
1248
|
+
stack?: string;
|
|
1249
|
+
cause?: unknown;
|
|
1250
|
+
};
|
|
1251
|
+
"new"(inner: {
|
|
1252
|
+
reason: string;
|
|
1253
|
+
}): {
|
|
1254
|
+
readonly tag: SdkError_Tags.Body;
|
|
1255
|
+
readonly inner: Readonly<{
|
|
1256
|
+
reason: string;
|
|
1257
|
+
}>;
|
|
1258
|
+
/**
|
|
1259
|
+
* @private
|
|
1260
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1261
|
+
*/
|
|
1262
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1263
|
+
name: string;
|
|
1264
|
+
message: string;
|
|
1265
|
+
stack?: string;
|
|
1266
|
+
cause?: unknown;
|
|
1267
|
+
};
|
|
1268
|
+
instanceOf(obj: any): obj is {
|
|
1269
|
+
readonly tag: SdkError_Tags.Body;
|
|
1270
|
+
readonly inner: Readonly<{
|
|
1271
|
+
reason: string;
|
|
1272
|
+
}>;
|
|
1273
|
+
/**
|
|
1274
|
+
* @private
|
|
1275
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1276
|
+
*/
|
|
1277
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1278
|
+
name: string;
|
|
1279
|
+
message: string;
|
|
1280
|
+
stack?: string;
|
|
1281
|
+
cause?: unknown;
|
|
1282
|
+
};
|
|
1283
|
+
hasInner(obj: any): obj is {
|
|
1284
|
+
readonly tag: SdkError_Tags.Body;
|
|
1285
|
+
readonly inner: Readonly<{
|
|
1286
|
+
reason: string;
|
|
1287
|
+
}>;
|
|
1288
|
+
/**
|
|
1289
|
+
* @private
|
|
1290
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1291
|
+
*/
|
|
1292
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1293
|
+
name: string;
|
|
1294
|
+
message: string;
|
|
1295
|
+
stack?: string;
|
|
1296
|
+
cause?: unknown;
|
|
1297
|
+
};
|
|
1298
|
+
getInner(obj: {
|
|
1299
|
+
readonly tag: SdkError_Tags.Body;
|
|
1300
|
+
readonly inner: Readonly<{
|
|
1301
|
+
reason: string;
|
|
1302
|
+
}>;
|
|
1303
|
+
/**
|
|
1304
|
+
* @private
|
|
1305
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1306
|
+
*/
|
|
1307
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1308
|
+
name: string;
|
|
1309
|
+
message: string;
|
|
1310
|
+
stack?: string;
|
|
1311
|
+
cause?: unknown;
|
|
1312
|
+
}): Readonly<{
|
|
1313
|
+
reason: string;
|
|
1314
|
+
}>;
|
|
1315
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1316
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1317
|
+
stackTraceLimit: number;
|
|
1318
|
+
};
|
|
1319
|
+
Status: {
|
|
1320
|
+
new (inner: {
|
|
1321
|
+
operation: string;
|
|
1322
|
+
status: number;
|
|
1323
|
+
body: string;
|
|
1324
|
+
}): {
|
|
1325
|
+
readonly tag: SdkError_Tags.Status;
|
|
1326
|
+
readonly inner: Readonly<{
|
|
1327
|
+
operation: string;
|
|
1328
|
+
status: number;
|
|
1329
|
+
body: string;
|
|
1330
|
+
}>;
|
|
1331
|
+
/**
|
|
1332
|
+
* @private
|
|
1333
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1334
|
+
*/
|
|
1335
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1336
|
+
name: string;
|
|
1337
|
+
message: string;
|
|
1338
|
+
stack?: string;
|
|
1339
|
+
cause?: unknown;
|
|
1340
|
+
};
|
|
1341
|
+
"new"(inner: {
|
|
1342
|
+
operation: string;
|
|
1343
|
+
status: number;
|
|
1344
|
+
body: string;
|
|
1345
|
+
}): {
|
|
1346
|
+
readonly tag: SdkError_Tags.Status;
|
|
1347
|
+
readonly inner: Readonly<{
|
|
1348
|
+
operation: string;
|
|
1349
|
+
status: number;
|
|
1350
|
+
body: string;
|
|
1351
|
+
}>;
|
|
1352
|
+
/**
|
|
1353
|
+
* @private
|
|
1354
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1355
|
+
*/
|
|
1356
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1357
|
+
name: string;
|
|
1358
|
+
message: string;
|
|
1359
|
+
stack?: string;
|
|
1360
|
+
cause?: unknown;
|
|
1361
|
+
};
|
|
1362
|
+
instanceOf(obj: any): obj is {
|
|
1363
|
+
readonly tag: SdkError_Tags.Status;
|
|
1364
|
+
readonly inner: Readonly<{
|
|
1365
|
+
operation: string;
|
|
1366
|
+
status: number;
|
|
1367
|
+
body: string;
|
|
1368
|
+
}>;
|
|
1369
|
+
/**
|
|
1370
|
+
* @private
|
|
1371
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1372
|
+
*/
|
|
1373
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1374
|
+
name: string;
|
|
1375
|
+
message: string;
|
|
1376
|
+
stack?: string;
|
|
1377
|
+
cause?: unknown;
|
|
1378
|
+
};
|
|
1379
|
+
hasInner(obj: any): obj is {
|
|
1380
|
+
readonly tag: SdkError_Tags.Status;
|
|
1381
|
+
readonly inner: Readonly<{
|
|
1382
|
+
operation: string;
|
|
1383
|
+
status: number;
|
|
1384
|
+
body: string;
|
|
1385
|
+
}>;
|
|
1386
|
+
/**
|
|
1387
|
+
* @private
|
|
1388
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1389
|
+
*/
|
|
1390
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1391
|
+
name: string;
|
|
1392
|
+
message: string;
|
|
1393
|
+
stack?: string;
|
|
1394
|
+
cause?: unknown;
|
|
1395
|
+
};
|
|
1396
|
+
getInner(obj: {
|
|
1397
|
+
readonly tag: SdkError_Tags.Status;
|
|
1398
|
+
readonly inner: Readonly<{
|
|
1399
|
+
operation: string;
|
|
1400
|
+
status: number;
|
|
1401
|
+
body: string;
|
|
1402
|
+
}>;
|
|
1403
|
+
/**
|
|
1404
|
+
* @private
|
|
1405
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1406
|
+
*/
|
|
1407
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1408
|
+
name: string;
|
|
1409
|
+
message: string;
|
|
1410
|
+
stack?: string;
|
|
1411
|
+
cause?: unknown;
|
|
1412
|
+
}): Readonly<{
|
|
1413
|
+
operation: string;
|
|
1414
|
+
status: number;
|
|
1415
|
+
body: string;
|
|
1416
|
+
}>;
|
|
1417
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1418
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1419
|
+
stackTraceLimit: number;
|
|
1420
|
+
};
|
|
1421
|
+
SignedServiceUrlsUnavailable: {
|
|
1422
|
+
new (): {
|
|
1423
|
+
readonly tag: SdkError_Tags.SignedServiceUrlsUnavailable;
|
|
1424
|
+
/**
|
|
1425
|
+
* @private
|
|
1426
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1427
|
+
*/
|
|
1428
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1429
|
+
name: string;
|
|
1430
|
+
message: string;
|
|
1431
|
+
stack?: string;
|
|
1432
|
+
cause?: unknown;
|
|
1433
|
+
};
|
|
1434
|
+
"new"(): {
|
|
1435
|
+
readonly tag: SdkError_Tags.SignedServiceUrlsUnavailable;
|
|
1436
|
+
/**
|
|
1437
|
+
* @private
|
|
1438
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1439
|
+
*/
|
|
1440
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1441
|
+
name: string;
|
|
1442
|
+
message: string;
|
|
1443
|
+
stack?: string;
|
|
1444
|
+
cause?: unknown;
|
|
1445
|
+
};
|
|
1446
|
+
instanceOf(obj: any): obj is {
|
|
1447
|
+
readonly tag: SdkError_Tags.SignedServiceUrlsUnavailable;
|
|
1448
|
+
/**
|
|
1449
|
+
* @private
|
|
1450
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1451
|
+
*/
|
|
1452
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1453
|
+
name: string;
|
|
1454
|
+
message: string;
|
|
1455
|
+
stack?: string;
|
|
1456
|
+
cause?: unknown;
|
|
1457
|
+
};
|
|
1458
|
+
hasInner(obj: any): obj is {
|
|
1459
|
+
readonly tag: SdkError_Tags.SignedServiceUrlsUnavailable;
|
|
1460
|
+
/**
|
|
1461
|
+
* @private
|
|
1462
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1463
|
+
*/
|
|
1464
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1465
|
+
name: string;
|
|
1466
|
+
message: string;
|
|
1467
|
+
stack?: string;
|
|
1468
|
+
cause?: unknown;
|
|
1469
|
+
};
|
|
1470
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1471
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1472
|
+
stackTraceLimit: number;
|
|
1473
|
+
};
|
|
1474
|
+
UnknownService: {
|
|
1475
|
+
new (inner: {
|
|
1476
|
+
requested: string;
|
|
1477
|
+
available: Array<string>;
|
|
1478
|
+
}): {
|
|
1479
|
+
readonly tag: SdkError_Tags.UnknownService;
|
|
1480
|
+
readonly inner: Readonly<{
|
|
1481
|
+
requested: string;
|
|
1482
|
+
available: Array<string>;
|
|
1483
|
+
}>;
|
|
1484
|
+
/**
|
|
1485
|
+
* @private
|
|
1486
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1487
|
+
*/
|
|
1488
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1489
|
+
name: string;
|
|
1490
|
+
message: string;
|
|
1491
|
+
stack?: string;
|
|
1492
|
+
cause?: unknown;
|
|
1493
|
+
};
|
|
1494
|
+
"new"(inner: {
|
|
1495
|
+
requested: string;
|
|
1496
|
+
available: Array<string>;
|
|
1497
|
+
}): {
|
|
1498
|
+
readonly tag: SdkError_Tags.UnknownService;
|
|
1499
|
+
readonly inner: Readonly<{
|
|
1500
|
+
requested: string;
|
|
1501
|
+
available: Array<string>;
|
|
1502
|
+
}>;
|
|
1503
|
+
/**
|
|
1504
|
+
* @private
|
|
1505
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1506
|
+
*/
|
|
1507
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1508
|
+
name: string;
|
|
1509
|
+
message: string;
|
|
1510
|
+
stack?: string;
|
|
1511
|
+
cause?: unknown;
|
|
1512
|
+
};
|
|
1513
|
+
instanceOf(obj: any): obj is {
|
|
1514
|
+
readonly tag: SdkError_Tags.UnknownService;
|
|
1515
|
+
readonly inner: Readonly<{
|
|
1516
|
+
requested: string;
|
|
1517
|
+
available: Array<string>;
|
|
1518
|
+
}>;
|
|
1519
|
+
/**
|
|
1520
|
+
* @private
|
|
1521
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1522
|
+
*/
|
|
1523
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1524
|
+
name: string;
|
|
1525
|
+
message: string;
|
|
1526
|
+
stack?: string;
|
|
1527
|
+
cause?: unknown;
|
|
1528
|
+
};
|
|
1529
|
+
hasInner(obj: any): obj is {
|
|
1530
|
+
readonly tag: SdkError_Tags.UnknownService;
|
|
1531
|
+
readonly inner: Readonly<{
|
|
1532
|
+
requested: string;
|
|
1533
|
+
available: Array<string>;
|
|
1534
|
+
}>;
|
|
1535
|
+
/**
|
|
1536
|
+
* @private
|
|
1537
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1538
|
+
*/
|
|
1539
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1540
|
+
name: string;
|
|
1541
|
+
message: string;
|
|
1542
|
+
stack?: string;
|
|
1543
|
+
cause?: unknown;
|
|
1544
|
+
};
|
|
1545
|
+
getInner(obj: {
|
|
1546
|
+
readonly tag: SdkError_Tags.UnknownService;
|
|
1547
|
+
readonly inner: Readonly<{
|
|
1548
|
+
requested: string;
|
|
1549
|
+
available: Array<string>;
|
|
1550
|
+
}>;
|
|
1551
|
+
/**
|
|
1552
|
+
* @private
|
|
1553
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1554
|
+
*/
|
|
1555
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1556
|
+
name: string;
|
|
1557
|
+
message: string;
|
|
1558
|
+
stack?: string;
|
|
1559
|
+
cause?: unknown;
|
|
1560
|
+
}): Readonly<{
|
|
1561
|
+
requested: string;
|
|
1562
|
+
available: Array<string>;
|
|
1563
|
+
}>;
|
|
1564
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1565
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1566
|
+
stackTraceLimit: number;
|
|
1567
|
+
};
|
|
1568
|
+
InvalidServicePath: {
|
|
1569
|
+
new (inner: {
|
|
1570
|
+
path: string;
|
|
1571
|
+
}): {
|
|
1572
|
+
readonly tag: SdkError_Tags.InvalidServicePath;
|
|
1573
|
+
readonly inner: Readonly<{
|
|
1574
|
+
path: string;
|
|
1575
|
+
}>;
|
|
1576
|
+
/**
|
|
1577
|
+
* @private
|
|
1578
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1579
|
+
*/
|
|
1580
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1581
|
+
name: string;
|
|
1582
|
+
message: string;
|
|
1583
|
+
stack?: string;
|
|
1584
|
+
cause?: unknown;
|
|
1585
|
+
};
|
|
1586
|
+
"new"(inner: {
|
|
1587
|
+
path: string;
|
|
1588
|
+
}): {
|
|
1589
|
+
readonly tag: SdkError_Tags.InvalidServicePath;
|
|
1590
|
+
readonly inner: Readonly<{
|
|
1591
|
+
path: string;
|
|
1592
|
+
}>;
|
|
1593
|
+
/**
|
|
1594
|
+
* @private
|
|
1595
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1596
|
+
*/
|
|
1597
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1598
|
+
name: string;
|
|
1599
|
+
message: string;
|
|
1600
|
+
stack?: string;
|
|
1601
|
+
cause?: unknown;
|
|
1602
|
+
};
|
|
1603
|
+
instanceOf(obj: any): obj is {
|
|
1604
|
+
readonly tag: SdkError_Tags.InvalidServicePath;
|
|
1605
|
+
readonly inner: Readonly<{
|
|
1606
|
+
path: string;
|
|
1607
|
+
}>;
|
|
1608
|
+
/**
|
|
1609
|
+
* @private
|
|
1610
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1611
|
+
*/
|
|
1612
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1613
|
+
name: string;
|
|
1614
|
+
message: string;
|
|
1615
|
+
stack?: string;
|
|
1616
|
+
cause?: unknown;
|
|
1617
|
+
};
|
|
1618
|
+
hasInner(obj: any): obj is {
|
|
1619
|
+
readonly tag: SdkError_Tags.InvalidServicePath;
|
|
1620
|
+
readonly inner: Readonly<{
|
|
1621
|
+
path: string;
|
|
1622
|
+
}>;
|
|
1623
|
+
/**
|
|
1624
|
+
* @private
|
|
1625
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1626
|
+
*/
|
|
1627
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1628
|
+
name: string;
|
|
1629
|
+
message: string;
|
|
1630
|
+
stack?: string;
|
|
1631
|
+
cause?: unknown;
|
|
1632
|
+
};
|
|
1633
|
+
getInner(obj: {
|
|
1634
|
+
readonly tag: SdkError_Tags.InvalidServicePath;
|
|
1635
|
+
readonly inner: Readonly<{
|
|
1636
|
+
path: string;
|
|
1637
|
+
}>;
|
|
1638
|
+
/**
|
|
1639
|
+
* @private
|
|
1640
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1641
|
+
*/
|
|
1642
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1643
|
+
name: string;
|
|
1644
|
+
message: string;
|
|
1645
|
+
stack?: string;
|
|
1646
|
+
cause?: unknown;
|
|
1647
|
+
}): Readonly<{
|
|
1648
|
+
path: string;
|
|
1649
|
+
}>;
|
|
1650
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1651
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1652
|
+
stackTraceLimit: number;
|
|
1653
|
+
};
|
|
1654
|
+
ClaimFailed: {
|
|
1655
|
+
new (inner: {
|
|
1656
|
+
phase: string;
|
|
1657
|
+
status: string;
|
|
1658
|
+
}): {
|
|
1659
|
+
readonly tag: SdkError_Tags.ClaimFailed;
|
|
1660
|
+
readonly inner: Readonly<{
|
|
1661
|
+
phase: string;
|
|
1662
|
+
status: string;
|
|
1663
|
+
}>;
|
|
1664
|
+
/**
|
|
1665
|
+
* @private
|
|
1666
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1667
|
+
*/
|
|
1668
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1669
|
+
name: string;
|
|
1670
|
+
message: string;
|
|
1671
|
+
stack?: string;
|
|
1672
|
+
cause?: unknown;
|
|
1673
|
+
};
|
|
1674
|
+
"new"(inner: {
|
|
1675
|
+
phase: string;
|
|
1676
|
+
status: string;
|
|
1677
|
+
}): {
|
|
1678
|
+
readonly tag: SdkError_Tags.ClaimFailed;
|
|
1679
|
+
readonly inner: Readonly<{
|
|
1680
|
+
phase: string;
|
|
1681
|
+
status: string;
|
|
1682
|
+
}>;
|
|
1683
|
+
/**
|
|
1684
|
+
* @private
|
|
1685
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1686
|
+
*/
|
|
1687
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1688
|
+
name: string;
|
|
1689
|
+
message: string;
|
|
1690
|
+
stack?: string;
|
|
1691
|
+
cause?: unknown;
|
|
1692
|
+
};
|
|
1693
|
+
instanceOf(obj: any): obj is {
|
|
1694
|
+
readonly tag: SdkError_Tags.ClaimFailed;
|
|
1695
|
+
readonly inner: Readonly<{
|
|
1696
|
+
phase: string;
|
|
1697
|
+
status: string;
|
|
1698
|
+
}>;
|
|
1699
|
+
/**
|
|
1700
|
+
* @private
|
|
1701
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1702
|
+
*/
|
|
1703
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1704
|
+
name: string;
|
|
1705
|
+
message: string;
|
|
1706
|
+
stack?: string;
|
|
1707
|
+
cause?: unknown;
|
|
1708
|
+
};
|
|
1709
|
+
hasInner(obj: any): obj is {
|
|
1710
|
+
readonly tag: SdkError_Tags.ClaimFailed;
|
|
1711
|
+
readonly inner: Readonly<{
|
|
1712
|
+
phase: string;
|
|
1713
|
+
status: string;
|
|
1714
|
+
}>;
|
|
1715
|
+
/**
|
|
1716
|
+
* @private
|
|
1717
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1718
|
+
*/
|
|
1719
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1720
|
+
name: string;
|
|
1721
|
+
message: string;
|
|
1722
|
+
stack?: string;
|
|
1723
|
+
cause?: unknown;
|
|
1724
|
+
};
|
|
1725
|
+
getInner(obj: {
|
|
1726
|
+
readonly tag: SdkError_Tags.ClaimFailed;
|
|
1727
|
+
readonly inner: Readonly<{
|
|
1728
|
+
phase: string;
|
|
1729
|
+
status: string;
|
|
1730
|
+
}>;
|
|
1731
|
+
/**
|
|
1732
|
+
* @private
|
|
1733
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1734
|
+
*/
|
|
1735
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1736
|
+
name: string;
|
|
1737
|
+
message: string;
|
|
1738
|
+
stack?: string;
|
|
1739
|
+
cause?: unknown;
|
|
1740
|
+
}): Readonly<{
|
|
1741
|
+
phase: string;
|
|
1742
|
+
status: string;
|
|
1743
|
+
}>;
|
|
1744
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1745
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1746
|
+
stackTraceLimit: number;
|
|
1747
|
+
};
|
|
1748
|
+
ClaimTimeout: {
|
|
1749
|
+
new (): {
|
|
1750
|
+
readonly tag: SdkError_Tags.ClaimTimeout;
|
|
1751
|
+
/**
|
|
1752
|
+
* @private
|
|
1753
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1754
|
+
*/
|
|
1755
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1756
|
+
name: string;
|
|
1757
|
+
message: string;
|
|
1758
|
+
stack?: string;
|
|
1759
|
+
cause?: unknown;
|
|
1760
|
+
};
|
|
1761
|
+
"new"(): {
|
|
1762
|
+
readonly tag: SdkError_Tags.ClaimTimeout;
|
|
1763
|
+
/**
|
|
1764
|
+
* @private
|
|
1765
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1766
|
+
*/
|
|
1767
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1768
|
+
name: string;
|
|
1769
|
+
message: string;
|
|
1770
|
+
stack?: string;
|
|
1771
|
+
cause?: unknown;
|
|
1772
|
+
};
|
|
1773
|
+
instanceOf(obj: any): obj is {
|
|
1774
|
+
readonly tag: SdkError_Tags.ClaimTimeout;
|
|
1775
|
+
/**
|
|
1776
|
+
* @private
|
|
1777
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1778
|
+
*/
|
|
1779
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1780
|
+
name: string;
|
|
1781
|
+
message: string;
|
|
1782
|
+
stack?: string;
|
|
1783
|
+
cause?: unknown;
|
|
1784
|
+
};
|
|
1785
|
+
hasInner(obj: any): obj is {
|
|
1786
|
+
readonly tag: SdkError_Tags.ClaimTimeout;
|
|
1787
|
+
/**
|
|
1788
|
+
* @private
|
|
1789
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1790
|
+
*/
|
|
1791
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1792
|
+
name: string;
|
|
1793
|
+
message: string;
|
|
1794
|
+
stack?: string;
|
|
1795
|
+
cause?: unknown;
|
|
1796
|
+
};
|
|
1797
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1798
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1799
|
+
stackTraceLimit: number;
|
|
1800
|
+
};
|
|
1801
|
+
PoolAccessDenied: {
|
|
1802
|
+
new (inner: {
|
|
1803
|
+
operation: string;
|
|
1804
|
+
namespace: string;
|
|
1805
|
+
status: number;
|
|
1806
|
+
body: string;
|
|
1807
|
+
}): {
|
|
1808
|
+
readonly tag: SdkError_Tags.PoolAccessDenied;
|
|
1809
|
+
readonly inner: Readonly<{
|
|
1810
|
+
operation: string;
|
|
1811
|
+
namespace: string;
|
|
1812
|
+
status: number;
|
|
1813
|
+
body: string;
|
|
1814
|
+
}>;
|
|
1815
|
+
/**
|
|
1816
|
+
* @private
|
|
1817
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1818
|
+
*/
|
|
1819
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1820
|
+
name: string;
|
|
1821
|
+
message: string;
|
|
1822
|
+
stack?: string;
|
|
1823
|
+
cause?: unknown;
|
|
1824
|
+
};
|
|
1825
|
+
"new"(inner: {
|
|
1826
|
+
operation: string;
|
|
1827
|
+
namespace: string;
|
|
1828
|
+
status: number;
|
|
1829
|
+
body: string;
|
|
1830
|
+
}): {
|
|
1831
|
+
readonly tag: SdkError_Tags.PoolAccessDenied;
|
|
1832
|
+
readonly inner: Readonly<{
|
|
1833
|
+
operation: string;
|
|
1834
|
+
namespace: string;
|
|
1835
|
+
status: number;
|
|
1836
|
+
body: string;
|
|
1837
|
+
}>;
|
|
1838
|
+
/**
|
|
1839
|
+
* @private
|
|
1840
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1841
|
+
*/
|
|
1842
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1843
|
+
name: string;
|
|
1844
|
+
message: string;
|
|
1845
|
+
stack?: string;
|
|
1846
|
+
cause?: unknown;
|
|
1847
|
+
};
|
|
1848
|
+
instanceOf(obj: any): obj is {
|
|
1849
|
+
readonly tag: SdkError_Tags.PoolAccessDenied;
|
|
1850
|
+
readonly inner: Readonly<{
|
|
1851
|
+
operation: string;
|
|
1852
|
+
namespace: string;
|
|
1853
|
+
status: number;
|
|
1854
|
+
body: string;
|
|
1855
|
+
}>;
|
|
1856
|
+
/**
|
|
1857
|
+
* @private
|
|
1858
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1859
|
+
*/
|
|
1860
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1861
|
+
name: string;
|
|
1862
|
+
message: string;
|
|
1863
|
+
stack?: string;
|
|
1864
|
+
cause?: unknown;
|
|
1865
|
+
};
|
|
1866
|
+
hasInner(obj: any): obj is {
|
|
1867
|
+
readonly tag: SdkError_Tags.PoolAccessDenied;
|
|
1868
|
+
readonly inner: Readonly<{
|
|
1869
|
+
operation: string;
|
|
1870
|
+
namespace: string;
|
|
1871
|
+
status: number;
|
|
1872
|
+
body: string;
|
|
1873
|
+
}>;
|
|
1874
|
+
/**
|
|
1875
|
+
* @private
|
|
1876
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1877
|
+
*/
|
|
1878
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1879
|
+
name: string;
|
|
1880
|
+
message: string;
|
|
1881
|
+
stack?: string;
|
|
1882
|
+
cause?: unknown;
|
|
1883
|
+
};
|
|
1884
|
+
getInner(obj: {
|
|
1885
|
+
readonly tag: SdkError_Tags.PoolAccessDenied;
|
|
1886
|
+
readonly inner: Readonly<{
|
|
1887
|
+
operation: string;
|
|
1888
|
+
namespace: string;
|
|
1889
|
+
status: number;
|
|
1890
|
+
body: string;
|
|
1891
|
+
}>;
|
|
1892
|
+
/**
|
|
1893
|
+
* @private
|
|
1894
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1895
|
+
*/
|
|
1896
|
+
readonly [uniffiTypeNameSymbol]: "SdkError";
|
|
1897
|
+
name: string;
|
|
1898
|
+
message: string;
|
|
1899
|
+
stack?: string;
|
|
1900
|
+
cause?: unknown;
|
|
1901
|
+
}): Readonly<{
|
|
1902
|
+
operation: string;
|
|
1903
|
+
namespace: string;
|
|
1904
|
+
status: number;
|
|
1905
|
+
body: string;
|
|
1906
|
+
}>;
|
|
1907
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1908
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1909
|
+
stackTraceLimit: number;
|
|
1910
|
+
};
|
|
1911
|
+
}>;
|
|
1912
|
+
export type SdkError = InstanceType<typeof SdkError['Configuration' | 'InvalidResourceName' | 'Transport' | 'Token' | 'Body' | 'Status' | 'SignedServiceUrlsUnavailable' | 'UnknownService' | 'InvalidServicePath' | 'ClaimFailed' | 'ClaimTimeout' | 'PoolAccessDenied']>;
|
|
1913
|
+
export interface AccessTokenProvider {
|
|
1914
|
+
getAccessToken(forceRefresh: boolean, asyncOpts_?: {
|
|
1915
|
+
signal: AbortSignal;
|
|
1916
|
+
}): Promise<string>;
|
|
1917
|
+
}
|
|
1918
|
+
export declare class AccessTokenProviderImpl extends UniffiAbstractObject implements AccessTokenProvider {
|
|
1919
|
+
readonly [uniffiTypeNameSymbol] = "AccessTokenProviderImpl";
|
|
1920
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
1921
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
1922
|
+
private constructor();
|
|
1923
|
+
getAccessToken(forceRefresh: boolean, asyncOpts_?: {
|
|
1924
|
+
signal: AbortSignal;
|
|
1925
|
+
}): Promise<string>;
|
|
1926
|
+
uniffiDestroy(): void;
|
|
1927
|
+
static instanceOf(obj_: any): obj_ is AccessTokenProviderImpl;
|
|
1928
|
+
}
|
|
1929
|
+
export interface CreateClaimRequestBuilderLike {
|
|
1930
|
+
build(): CreateClaimRequest;
|
|
1931
|
+
labels(value: Map<string, string>): CreateClaimRequestBuilderLike;
|
|
1932
|
+
name(value: string): CreateClaimRequestBuilderLike;
|
|
1933
|
+
pool(value: Pool): CreateClaimRequestBuilderLike;
|
|
1934
|
+
secretFiles(value: Map<string, string>): CreateClaimRequestBuilderLike;
|
|
1935
|
+
spec(value: ClaimSpec): CreateClaimRequestBuilderLike;
|
|
1936
|
+
}
|
|
1937
|
+
/**
|
|
1938
|
+
* @deprecated Use `CreateClaimRequestBuilderLike` instead.
|
|
1939
|
+
*/
|
|
1940
|
+
export type CreateClaimRequestBuilderInterface = CreateClaimRequestBuilderLike;
|
|
1941
|
+
export declare class CreateClaimRequestBuilder extends UniffiAbstractObject implements CreateClaimRequestBuilderLike {
|
|
1942
|
+
readonly [uniffiTypeNameSymbol] = "CreateClaimRequestBuilder";
|
|
1943
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
1944
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
1945
|
+
constructor();
|
|
1946
|
+
build(): CreateClaimRequest;
|
|
1947
|
+
labels(value: Map<string, string>): CreateClaimRequestBuilderLike;
|
|
1948
|
+
name(value: string): CreateClaimRequestBuilderLike;
|
|
1949
|
+
pool(value: Pool): CreateClaimRequestBuilderLike;
|
|
1950
|
+
secretFiles(value: Map<string, string>): CreateClaimRequestBuilderLike;
|
|
1951
|
+
spec(value: ClaimSpec): CreateClaimRequestBuilderLike;
|
|
1952
|
+
uniffiDestroy(): void;
|
|
1953
|
+
static instanceOf(obj_: any): obj_ is CreateClaimRequestBuilder;
|
|
1954
|
+
}
|
|
1955
|
+
export interface CreatePoolRequestBuilderLike {
|
|
1956
|
+
build(): CreatePoolRequest;
|
|
1957
|
+
namespace(value: string): CreatePoolRequestBuilderLike;
|
|
1958
|
+
spec(value: OsGymSandboxWarmPoolSpec): CreatePoolRequestBuilderLike;
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* @deprecated Use `CreatePoolRequestBuilderLike` instead.
|
|
1962
|
+
*/
|
|
1963
|
+
export type CreatePoolRequestBuilderInterface = CreatePoolRequestBuilderLike;
|
|
1964
|
+
export declare class CreatePoolRequestBuilder extends UniffiAbstractObject implements CreatePoolRequestBuilderLike {
|
|
1965
|
+
readonly [uniffiTypeNameSymbol] = "CreatePoolRequestBuilder";
|
|
1966
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
1967
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
1968
|
+
constructor();
|
|
1969
|
+
build(): CreatePoolRequest;
|
|
1970
|
+
namespace(value: string): CreatePoolRequestBuilderLike;
|
|
1971
|
+
spec(value: OsGymSandboxWarmPoolSpec): CreatePoolRequestBuilderLike;
|
|
1972
|
+
uniffiDestroy(): void;
|
|
1973
|
+
static instanceOf(obj_: any): obj_ is CreatePoolRequestBuilder;
|
|
1974
|
+
}
|
|
1975
|
+
export interface CreateRegistrySecretRequestBuilderLike {
|
|
1976
|
+
build(): CreateRegistrySecretRequest;
|
|
1977
|
+
name(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1978
|
+
namespace(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1979
|
+
password(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1980
|
+
registry(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1981
|
+
username(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* @deprecated Use `CreateRegistrySecretRequestBuilderLike` instead.
|
|
1985
|
+
*/
|
|
1986
|
+
export type CreateRegistrySecretRequestBuilderInterface = CreateRegistrySecretRequestBuilderLike;
|
|
1987
|
+
export declare class CreateRegistrySecretRequestBuilder extends UniffiAbstractObject implements CreateRegistrySecretRequestBuilderLike {
|
|
1988
|
+
readonly [uniffiTypeNameSymbol] = "CreateRegistrySecretRequestBuilder";
|
|
1989
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
1990
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
1991
|
+
constructor();
|
|
1992
|
+
build(): CreateRegistrySecretRequest;
|
|
1993
|
+
name(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1994
|
+
namespace(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1995
|
+
password(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1996
|
+
registry(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1997
|
+
username(value: string): CreateRegistrySecretRequestBuilderLike;
|
|
1998
|
+
uniffiDestroy(): void;
|
|
1999
|
+
static instanceOf(obj_: any): obj_ is CreateRegistrySecretRequestBuilder;
|
|
2000
|
+
}
|
|
2001
|
+
export interface CreateSignedServiceUrlRequestBuilderLike {
|
|
2002
|
+
build(): CreateSignedServiceUrlRequest;
|
|
2003
|
+
expiresInSeconds(value: number): CreateSignedServiceUrlRequestBuilderLike;
|
|
2004
|
+
label(value: string): CreateSignedServiceUrlRequestBuilderLike;
|
|
2005
|
+
sandbox(value: Sandbox): CreateSignedServiceUrlRequestBuilderLike;
|
|
2006
|
+
service(value: string): CreateSignedServiceUrlRequestBuilderLike;
|
|
2007
|
+
}
|
|
2008
|
+
/**
|
|
2009
|
+
* @deprecated Use `CreateSignedServiceUrlRequestBuilderLike` instead.
|
|
2010
|
+
*/
|
|
2011
|
+
export type CreateSignedServiceUrlRequestBuilderInterface = CreateSignedServiceUrlRequestBuilderLike;
|
|
2012
|
+
export declare class CreateSignedServiceUrlRequestBuilder extends UniffiAbstractObject implements CreateSignedServiceUrlRequestBuilderLike {
|
|
2013
|
+
readonly [uniffiTypeNameSymbol] = "CreateSignedServiceUrlRequestBuilder";
|
|
2014
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2015
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2016
|
+
constructor();
|
|
2017
|
+
build(): CreateSignedServiceUrlRequest;
|
|
2018
|
+
expiresInSeconds(value: number): CreateSignedServiceUrlRequestBuilderLike;
|
|
2019
|
+
label(value: string): CreateSignedServiceUrlRequestBuilderLike;
|
|
2020
|
+
sandbox(value: Sandbox): CreateSignedServiceUrlRequestBuilderLike;
|
|
2021
|
+
service(value: string): CreateSignedServiceUrlRequestBuilderLike;
|
|
2022
|
+
uniffiDestroy(): void;
|
|
2023
|
+
static instanceOf(obj_: any): obj_ is CreateSignedServiceUrlRequestBuilder;
|
|
2024
|
+
}
|
|
2025
|
+
export interface CreateTemplateRequestBuilderLike {
|
|
2026
|
+
build(): CreateTemplateRequest;
|
|
2027
|
+
name(value: string): CreateTemplateRequestBuilderLike;
|
|
2028
|
+
namespace(value: string): CreateTemplateRequestBuilderLike;
|
|
2029
|
+
spec(value: OsGymSandboxTemplateSpec): CreateTemplateRequestBuilderLike;
|
|
2030
|
+
}
|
|
2031
|
+
/**
|
|
2032
|
+
* @deprecated Use `CreateTemplateRequestBuilderLike` instead.
|
|
2033
|
+
*/
|
|
2034
|
+
export type CreateTemplateRequestBuilderInterface = CreateTemplateRequestBuilderLike;
|
|
2035
|
+
export declare class CreateTemplateRequestBuilder extends UniffiAbstractObject implements CreateTemplateRequestBuilderLike {
|
|
2036
|
+
readonly [uniffiTypeNameSymbol] = "CreateTemplateRequestBuilder";
|
|
2037
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2038
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2039
|
+
constructor();
|
|
2040
|
+
build(): CreateTemplateRequest;
|
|
2041
|
+
name(value: string): CreateTemplateRequestBuilderLike;
|
|
2042
|
+
namespace(value: string): CreateTemplateRequestBuilderLike;
|
|
2043
|
+
spec(value: OsGymSandboxTemplateSpec): CreateTemplateRequestBuilderLike;
|
|
2044
|
+
uniffiDestroy(): void;
|
|
2045
|
+
static instanceOf(obj_: any): obj_ is CreateTemplateRequestBuilder;
|
|
2046
|
+
}
|
|
2047
|
+
export interface CreateUserApiKeyRequestBuilderLike {
|
|
2048
|
+
build(): CreateUserApiKeyRequest;
|
|
2049
|
+
name(value: string): CreateUserApiKeyRequestBuilderLike;
|
|
2050
|
+
scope(value: Array<string>): CreateUserApiKeyRequestBuilderLike;
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* @deprecated Use `CreateUserApiKeyRequestBuilderLike` instead.
|
|
2054
|
+
*/
|
|
2055
|
+
export type CreateUserApiKeyRequestBuilderInterface = CreateUserApiKeyRequestBuilderLike;
|
|
2056
|
+
export declare class CreateUserApiKeyRequestBuilder extends UniffiAbstractObject implements CreateUserApiKeyRequestBuilderLike {
|
|
2057
|
+
readonly [uniffiTypeNameSymbol] = "CreateUserApiKeyRequestBuilder";
|
|
2058
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2059
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2060
|
+
constructor();
|
|
2061
|
+
build(): CreateUserApiKeyRequest;
|
|
2062
|
+
name(value: string): CreateUserApiKeyRequestBuilderLike;
|
|
2063
|
+
scope(value: Array<string>): CreateUserApiKeyRequestBuilderLike;
|
|
2064
|
+
uniffiDestroy(): void;
|
|
2065
|
+
static instanceOf(obj_: any): obj_ is CreateUserApiKeyRequestBuilder;
|
|
2066
|
+
}
|
|
2067
|
+
export interface CyclopsClientLike {
|
|
2068
|
+
/**
|
|
2069
|
+
* The bearer this client would send on its next authenticated request,
|
|
2070
|
+
* for callers that open their own connection to the gateway (for example
|
|
2071
|
+
* a native WebSocket). `force_refresh` bypasses any cached token; a
|
|
2072
|
+
* static access token is returned as-is. The value is a raw token — the
|
|
2073
|
+
* caller attaches it as `authorization: Bearer <token>`.
|
|
2074
|
+
*/
|
|
2075
|
+
accessToken(forceRefresh: boolean, asyncOpts_?: {
|
|
2076
|
+
signal: AbortSignal;
|
|
2077
|
+
}): Promise<string>;
|
|
2078
|
+
createClaim(request: CreateClaimRequest, asyncOpts_?: {
|
|
2079
|
+
signal: AbortSignal;
|
|
2080
|
+
}): Promise<Claim>;
|
|
2081
|
+
/**
|
|
2082
|
+
* Fan out `create_claim` calls across the requested warm pools, tagging
|
|
2083
|
+
* every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed
|
|
2084
|
+
* back later. Duplicate pool entries are aggregated before any network
|
|
2085
|
+
* call. Claims are created sequentially; if one creation fails the error
|
|
2086
|
+
* is returned immediately and claims already created keep their fleet
|
|
2087
|
+
* label, so `list_fleet_claims` still finds them for retry or cleanup.
|
|
2088
|
+
*/
|
|
2089
|
+
createFleetClaims(fleetId: string, requests: Array<FleetPoolRequest>, asyncOpts_?: {
|
|
2090
|
+
signal: AbortSignal;
|
|
2091
|
+
}): Promise<FleetClaims>;
|
|
2092
|
+
createImage(namespace: string, manifest: PreservedJsonLike, asyncOpts_?: {
|
|
2093
|
+
signal: AbortSignal;
|
|
2094
|
+
}): Promise<PreservedJsonLike>;
|
|
2095
|
+
createNamespace(name: string, asyncOpts_?: {
|
|
2096
|
+
signal: AbortSignal;
|
|
2097
|
+
}): Promise<Namespace>;
|
|
2098
|
+
createPool(request: CreatePoolRequest, asyncOpts_?: {
|
|
2099
|
+
signal: AbortSignal;
|
|
2100
|
+
}): Promise<Pool>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Create (or replace) a `cua-registry-*` dockerconfigjson pull Secret.
|
|
2103
|
+
* On a name conflict the old Secret is deleted and the new one created,
|
|
2104
|
+
* since the gateway admits no Secret update.
|
|
2105
|
+
*/
|
|
2106
|
+
createRegistrySecret(request: CreateRegistrySecretRequest, asyncOpts_?: {
|
|
2107
|
+
signal: AbortSignal;
|
|
2108
|
+
}): Promise<RegistrySecret>;
|
|
2109
|
+
createSignedServiceUrl(request: CreateSignedServiceUrlRequest, asyncOpts_?: {
|
|
2110
|
+
signal: AbortSignal;
|
|
2111
|
+
}): Promise<SignedServiceUrl>;
|
|
2112
|
+
createTemplate(request: CreateTemplateRequest, asyncOpts_?: {
|
|
2113
|
+
signal: AbortSignal;
|
|
2114
|
+
}): Promise<Template>;
|
|
2115
|
+
createUserApiKey(request: CreateUserApiKeyRequest, asyncOpts_?: {
|
|
2116
|
+
signal: AbortSignal;
|
|
2117
|
+
}): Promise<NewUserApiKey>;
|
|
2118
|
+
/**
|
|
2119
|
+
* Delete the claim and, when it references a claim-scoped Secret
|
|
2120
|
+
* (`secret_files`), that Secret too. The pool-operator also owner-refs
|
|
2121
|
+
* the Secret to the claim, so garbage collection is the backstop.
|
|
2122
|
+
*/
|
|
2123
|
+
deleteClaim(claim: Claim, asyncOpts_?: {
|
|
2124
|
+
signal: AbortSignal;
|
|
2125
|
+
}): Promise<void>;
|
|
2126
|
+
deleteImage(namespace: string, name: string, asyncOpts_?: {
|
|
2127
|
+
signal: AbortSignal;
|
|
2128
|
+
}): Promise<void>;
|
|
2129
|
+
deleteNamespace(name: string, asyncOpts_?: {
|
|
2130
|
+
signal: AbortSignal;
|
|
2131
|
+
}): Promise<void>;
|
|
2132
|
+
deletePool(pool: Pool, asyncOpts_?: {
|
|
2133
|
+
signal: AbortSignal;
|
|
2134
|
+
}): Promise<void>;
|
|
2135
|
+
deleteRegistrySecret(namespace: string, name: string, asyncOpts_?: {
|
|
2136
|
+
signal: AbortSignal;
|
|
2137
|
+
}): Promise<void>;
|
|
2138
|
+
deleteTemplate(template: Template, asyncOpts_?: {
|
|
2139
|
+
signal: AbortSignal;
|
|
2140
|
+
}): Promise<void>;
|
|
2141
|
+
deleteUserApiKey(id: string, asyncOpts_?: {
|
|
2142
|
+
signal: AbortSignal;
|
|
2143
|
+
}): Promise<void>;
|
|
2144
|
+
getClaim(claim: Claim, asyncOpts_?: {
|
|
2145
|
+
signal: AbortSignal;
|
|
2146
|
+
}): Promise<Claim>;
|
|
2147
|
+
getImage(namespace: string, name: string, asyncOpts_?: {
|
|
2148
|
+
signal: AbortSignal;
|
|
2149
|
+
}): Promise<PreservedJsonLike>;
|
|
2150
|
+
getNamespace(name: string, asyncOpts_?: {
|
|
2151
|
+
signal: AbortSignal;
|
|
2152
|
+
}): Promise<Namespace>;
|
|
2153
|
+
getPool(name: string, asyncOpts_?: {
|
|
2154
|
+
signal: AbortSignal;
|
|
2155
|
+
}): Promise<Pool>;
|
|
2156
|
+
getTemplate(namespace: string, name: string, asyncOpts_?: {
|
|
2157
|
+
signal: AbortSignal;
|
|
2158
|
+
}): Promise<Template>;
|
|
2159
|
+
listClaims(namespace: string, asyncOpts_?: {
|
|
2160
|
+
signal: AbortSignal;
|
|
2161
|
+
}): Promise<Array<Claim>>;
|
|
2162
|
+
/**
|
|
2163
|
+
* The fleet's claims within one namespace: enumerate the namespace's
|
|
2164
|
+
* claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that
|
|
2165
|
+
* spans several pools spans that many namespaces (one pool per
|
|
2166
|
+
* namespace), so call this once per member pool.
|
|
2167
|
+
*/
|
|
2168
|
+
listFleetClaims(namespace: string, fleetId: string, asyncOpts_?: {
|
|
2169
|
+
signal: AbortSignal;
|
|
2170
|
+
}): Promise<FleetClaims>;
|
|
2171
|
+
listImages(namespace: string, asyncOpts_?: {
|
|
2172
|
+
signal: AbortSignal;
|
|
2173
|
+
}): Promise<Array<PreservedJsonLike>>;
|
|
2174
|
+
listNamespaces(asyncOpts_?: {
|
|
2175
|
+
signal: AbortSignal;
|
|
2176
|
+
}): Promise<Array<Namespace>>;
|
|
2177
|
+
listPools(namespace: string, asyncOpts_?: {
|
|
2178
|
+
signal: AbortSignal;
|
|
2179
|
+
}): Promise<Array<Pool>>;
|
|
2180
|
+
listSignedServiceUrls(sandbox: Sandbox, asyncOpts_?: {
|
|
2181
|
+
signal: AbortSignal;
|
|
2182
|
+
}): Promise<Array<SignedServiceUrl>>;
|
|
2183
|
+
listTemplates(namespace: string, asyncOpts_?: {
|
|
2184
|
+
signal: AbortSignal;
|
|
2185
|
+
}): Promise<Array<Template>>;
|
|
2186
|
+
listUserApiKeys(asyncOpts_?: {
|
|
2187
|
+
signal: AbortSignal;
|
|
2188
|
+
}): Promise<Array<UserApiKey>>;
|
|
2189
|
+
presignImageUploads(request: ImageUploadRequest, asyncOpts_?: {
|
|
2190
|
+
signal: AbortSignal;
|
|
2191
|
+
}): Promise<ImageUploadResponse>;
|
|
2192
|
+
reconcilePool(request: CreatePoolRequest, asyncOpts_?: {
|
|
2193
|
+
signal: AbortSignal;
|
|
2194
|
+
}): Promise<Pool>;
|
|
2195
|
+
reconcileTemplate(request: CreateTemplateRequest, asyncOpts_?: {
|
|
2196
|
+
signal: AbortSignal;
|
|
2197
|
+
}): Promise<Template>;
|
|
2198
|
+
/**
|
|
2199
|
+
* Push the claim's `spec.lifecycle.shutdownTime` forward. That absolute
|
|
2200
|
+
* expiry is the only liveness input the pool operator's claim reaper
|
|
2201
|
+
* honors, so a holder that outlives its current lease must renew before
|
|
2202
|
+
* the deadline passes or the bound sandbox is deleted underneath it.
|
|
2203
|
+
* Deliberately narrower than a claim update: nothing else on the claim
|
|
2204
|
+
* can be mutated through the SDK.
|
|
2205
|
+
*/
|
|
2206
|
+
renewClaim(claim: Claim, shutdownTime: string, asyncOpts_?: {
|
|
2207
|
+
signal: AbortSignal;
|
|
2208
|
+
}): Promise<Claim>;
|
|
2209
|
+
/**
|
|
2210
|
+
* Pin a public registry ref to a digest server-side. `runtime` (`gvisor`,
|
|
2211
|
+
* `kubevirt`, `macos`) selects the variant for canonical cua images:
|
|
2212
|
+
* `kubevirt` maps `ghcr.io/trycua/linux:24.04` to its `-disk` sibling.
|
|
2213
|
+
*/
|
|
2214
|
+
resolveImage(reference: string, runtime: string | undefined, asyncOpts_?: {
|
|
2215
|
+
signal: AbortSignal;
|
|
2216
|
+
}): Promise<ResolvedImage>;
|
|
2217
|
+
revokeSignedServiceUrl(signedServiceUrl: SignedServiceUrl, asyncOpts_?: {
|
|
2218
|
+
signal: AbortSignal;
|
|
2219
|
+
}): Promise<void>;
|
|
2220
|
+
serviceRequest(sandbox: Sandbox, service: string, path: string, request: HttpRequest, asyncOpts_?: {
|
|
2221
|
+
signal: AbortSignal;
|
|
2222
|
+
}): Promise<HttpResponse>;
|
|
2223
|
+
/**
|
|
2224
|
+
* Where a native client opens its own WebSocket to a sandbox service:
|
|
2225
|
+
* the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the
|
|
2226
|
+
* returned `ws(s)://` URL plus the returned bearer header are all a
|
|
2227
|
+
* Rust or Swift caller needs to dial the socket directly.
|
|
2228
|
+
* `service_request` stays the path for unary requests.
|
|
2229
|
+
*/
|
|
2230
|
+
serviceWebsocketUrl(sandbox: Sandbox, service: string, path: string, asyncOpts_?: {
|
|
2231
|
+
signal: AbortSignal;
|
|
2232
|
+
}): Promise<ServiceStreamTarget>;
|
|
2233
|
+
updatePool(pool: Pool, asyncOpts_?: {
|
|
2234
|
+
signal: AbortSignal;
|
|
2235
|
+
}): Promise<Pool>;
|
|
2236
|
+
updateTemplate(template: Template, asyncOpts_?: {
|
|
2237
|
+
signal: AbortSignal;
|
|
2238
|
+
}): Promise<Template>;
|
|
2239
|
+
/**
|
|
2240
|
+
* Hash and upload one file, or reuse a matching existing object.
|
|
2241
|
+
* Returns only the bound digest, size, and tenant reference, never a signed URL.
|
|
2242
|
+
* This does not create an Image or attest to object versioning/encryption.
|
|
2243
|
+
*/
|
|
2244
|
+
uploadImageFile(namespace: string, name: string, contents: ArrayBuffer, asyncOpts_?: {
|
|
2245
|
+
signal: AbortSignal;
|
|
2246
|
+
}): Promise<ImageUploadInstruction>;
|
|
2247
|
+
waitClaim(claim: Claim, asyncOpts_?: {
|
|
2248
|
+
signal: AbortSignal;
|
|
2249
|
+
}): Promise<Sandbox>;
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* @deprecated Use `CyclopsClientLike` instead.
|
|
2253
|
+
*/
|
|
2254
|
+
export type CyclopsClientInterface = CyclopsClientLike;
|
|
2255
|
+
export declare class CyclopsClient extends UniffiAbstractObject implements CyclopsClientLike {
|
|
2256
|
+
readonly [uniffiTypeNameSymbol] = "CyclopsClient";
|
|
2257
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2258
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2259
|
+
private constructor();
|
|
2260
|
+
static connect(configuration: CyclopsConfiguration, httpClient: HttpClient): CyclopsClientLike;
|
|
2261
|
+
static connectBrowserWithAccessToken(configuration: CyclopsTokenProviderConfiguration, accessToken: string): CyclopsClientLike;
|
|
2262
|
+
static connectWithAccessToken(configuration: CyclopsTokenProviderConfiguration, accessToken: string, httpClient: HttpClient): CyclopsClientLike;
|
|
2263
|
+
static connectWithAccessTokenAndNativeHttpClient(configuration: CyclopsTokenProviderConfiguration, accessToken: string): CyclopsClientLike;
|
|
2264
|
+
static connectWithAccessTokenProvider(configuration: CyclopsTokenProviderConfiguration, tokenProvider: AccessTokenProvider, httpClient: HttpClient): CyclopsClientLike;
|
|
2265
|
+
static connectWithAccessTokenProviderAndNativeHttpClient(configuration: CyclopsTokenProviderConfiguration, tokenProvider: AccessTokenProvider): CyclopsClientLike;
|
|
2266
|
+
static connectWithNativeHttpClient(configuration: CyclopsConfiguration): CyclopsClientLike;
|
|
2267
|
+
/**
|
|
2268
|
+
* The bearer this client would send on its next authenticated request,
|
|
2269
|
+
* for callers that open their own connection to the gateway (for example
|
|
2270
|
+
* a native WebSocket). `force_refresh` bypasses any cached token; a
|
|
2271
|
+
* static access token is returned as-is. The value is a raw token — the
|
|
2272
|
+
* caller attaches it as `authorization: Bearer <token>`.
|
|
2273
|
+
*/
|
|
2274
|
+
accessToken(forceRefresh: boolean, asyncOpts_?: {
|
|
2275
|
+
signal: AbortSignal;
|
|
2276
|
+
}): Promise<string>;
|
|
2277
|
+
createClaim(request: CreateClaimRequest, asyncOpts_?: {
|
|
2278
|
+
signal: AbortSignal;
|
|
2279
|
+
}): Promise<Claim>;
|
|
2280
|
+
/**
|
|
2281
|
+
* Fan out `create_claim` calls across the requested warm pools, tagging
|
|
2282
|
+
* every claim with `cua.ai/fleet=<fleet_id>` so the group can be listed
|
|
2283
|
+
* back later. Duplicate pool entries are aggregated before any network
|
|
2284
|
+
* call. Claims are created sequentially; if one creation fails the error
|
|
2285
|
+
* is returned immediately and claims already created keep their fleet
|
|
2286
|
+
* label, so `list_fleet_claims` still finds them for retry or cleanup.
|
|
2287
|
+
*/
|
|
2288
|
+
createFleetClaims(fleetId: string, requests: Array<FleetPoolRequest>, asyncOpts_?: {
|
|
2289
|
+
signal: AbortSignal;
|
|
2290
|
+
}): Promise<FleetClaims>;
|
|
2291
|
+
createImage(namespace: string, manifest: PreservedJsonLike, asyncOpts_?: {
|
|
2292
|
+
signal: AbortSignal;
|
|
2293
|
+
}): Promise<PreservedJsonLike>;
|
|
2294
|
+
createNamespace(name: string, asyncOpts_?: {
|
|
2295
|
+
signal: AbortSignal;
|
|
2296
|
+
}): Promise<Namespace>;
|
|
2297
|
+
createPool(request: CreatePoolRequest, asyncOpts_?: {
|
|
2298
|
+
signal: AbortSignal;
|
|
2299
|
+
}): Promise<Pool>;
|
|
2300
|
+
/**
|
|
2301
|
+
* Create (or replace) a `cua-registry-*` dockerconfigjson pull Secret.
|
|
2302
|
+
* On a name conflict the old Secret is deleted and the new one created,
|
|
2303
|
+
* since the gateway admits no Secret update.
|
|
2304
|
+
*/
|
|
2305
|
+
createRegistrySecret(request: CreateRegistrySecretRequest, asyncOpts_?: {
|
|
2306
|
+
signal: AbortSignal;
|
|
2307
|
+
}): Promise<RegistrySecret>;
|
|
2308
|
+
createSignedServiceUrl(request: CreateSignedServiceUrlRequest, asyncOpts_?: {
|
|
2309
|
+
signal: AbortSignal;
|
|
2310
|
+
}): Promise<SignedServiceUrl>;
|
|
2311
|
+
createTemplate(request: CreateTemplateRequest, asyncOpts_?: {
|
|
2312
|
+
signal: AbortSignal;
|
|
2313
|
+
}): Promise<Template>;
|
|
2314
|
+
createUserApiKey(request: CreateUserApiKeyRequest, asyncOpts_?: {
|
|
2315
|
+
signal: AbortSignal;
|
|
2316
|
+
}): Promise<NewUserApiKey>;
|
|
2317
|
+
/**
|
|
2318
|
+
* Delete the claim and, when it references a claim-scoped Secret
|
|
2319
|
+
* (`secret_files`), that Secret too. The pool-operator also owner-refs
|
|
2320
|
+
* the Secret to the claim, so garbage collection is the backstop.
|
|
2321
|
+
*/
|
|
2322
|
+
deleteClaim(claim: Claim, asyncOpts_?: {
|
|
2323
|
+
signal: AbortSignal;
|
|
2324
|
+
}): Promise<void>;
|
|
2325
|
+
deleteImage(namespace: string, name: string, asyncOpts_?: {
|
|
2326
|
+
signal: AbortSignal;
|
|
2327
|
+
}): Promise<void>;
|
|
2328
|
+
deleteNamespace(name: string, asyncOpts_?: {
|
|
2329
|
+
signal: AbortSignal;
|
|
2330
|
+
}): Promise<void>;
|
|
2331
|
+
deletePool(pool: Pool, asyncOpts_?: {
|
|
2332
|
+
signal: AbortSignal;
|
|
2333
|
+
}): Promise<void>;
|
|
2334
|
+
deleteRegistrySecret(namespace: string, name: string, asyncOpts_?: {
|
|
2335
|
+
signal: AbortSignal;
|
|
2336
|
+
}): Promise<void>;
|
|
2337
|
+
deleteTemplate(template: Template, asyncOpts_?: {
|
|
2338
|
+
signal: AbortSignal;
|
|
2339
|
+
}): Promise<void>;
|
|
2340
|
+
deleteUserApiKey(id: string, asyncOpts_?: {
|
|
2341
|
+
signal: AbortSignal;
|
|
2342
|
+
}): Promise<void>;
|
|
2343
|
+
getClaim(claim: Claim, asyncOpts_?: {
|
|
2344
|
+
signal: AbortSignal;
|
|
2345
|
+
}): Promise<Claim>;
|
|
2346
|
+
getImage(namespace: string, name: string, asyncOpts_?: {
|
|
2347
|
+
signal: AbortSignal;
|
|
2348
|
+
}): Promise<PreservedJsonLike>;
|
|
2349
|
+
getNamespace(name: string, asyncOpts_?: {
|
|
2350
|
+
signal: AbortSignal;
|
|
2351
|
+
}): Promise<Namespace>;
|
|
2352
|
+
getPool(name: string, asyncOpts_?: {
|
|
2353
|
+
signal: AbortSignal;
|
|
2354
|
+
}): Promise<Pool>;
|
|
2355
|
+
getTemplate(namespace: string, name: string, asyncOpts_?: {
|
|
2356
|
+
signal: AbortSignal;
|
|
2357
|
+
}): Promise<Template>;
|
|
2358
|
+
listClaims(namespace: string, asyncOpts_?: {
|
|
2359
|
+
signal: AbortSignal;
|
|
2360
|
+
}): Promise<Array<Claim>>;
|
|
2361
|
+
/**
|
|
2362
|
+
* The fleet's claims within one namespace: enumerate the namespace's
|
|
2363
|
+
* claims and keep those labeled `cua.ai/fleet=<fleet_id>`. A fleet that
|
|
2364
|
+
* spans several pools spans that many namespaces (one pool per
|
|
2365
|
+
* namespace), so call this once per member pool.
|
|
2366
|
+
*/
|
|
2367
|
+
listFleetClaims(namespace: string, fleetId: string, asyncOpts_?: {
|
|
2368
|
+
signal: AbortSignal;
|
|
2369
|
+
}): Promise<FleetClaims>;
|
|
2370
|
+
listImages(namespace: string, asyncOpts_?: {
|
|
2371
|
+
signal: AbortSignal;
|
|
2372
|
+
}): Promise<Array<PreservedJsonLike>>;
|
|
2373
|
+
listNamespaces(asyncOpts_?: {
|
|
2374
|
+
signal: AbortSignal;
|
|
2375
|
+
}): Promise<Array<Namespace>>;
|
|
2376
|
+
listPools(namespace: string, asyncOpts_?: {
|
|
2377
|
+
signal: AbortSignal;
|
|
2378
|
+
}): Promise<Array<Pool>>;
|
|
2379
|
+
listSignedServiceUrls(sandbox: Sandbox, asyncOpts_?: {
|
|
2380
|
+
signal: AbortSignal;
|
|
2381
|
+
}): Promise<Array<SignedServiceUrl>>;
|
|
2382
|
+
listTemplates(namespace: string, asyncOpts_?: {
|
|
2383
|
+
signal: AbortSignal;
|
|
2384
|
+
}): Promise<Array<Template>>;
|
|
2385
|
+
listUserApiKeys(asyncOpts_?: {
|
|
2386
|
+
signal: AbortSignal;
|
|
2387
|
+
}): Promise<Array<UserApiKey>>;
|
|
2388
|
+
presignImageUploads(request: ImageUploadRequest, asyncOpts_?: {
|
|
2389
|
+
signal: AbortSignal;
|
|
2390
|
+
}): Promise<ImageUploadResponse>;
|
|
2391
|
+
reconcilePool(request: CreatePoolRequest, asyncOpts_?: {
|
|
2392
|
+
signal: AbortSignal;
|
|
2393
|
+
}): Promise<Pool>;
|
|
2394
|
+
reconcileTemplate(request: CreateTemplateRequest, asyncOpts_?: {
|
|
2395
|
+
signal: AbortSignal;
|
|
2396
|
+
}): Promise<Template>;
|
|
2397
|
+
/**
|
|
2398
|
+
* Push the claim's `spec.lifecycle.shutdownTime` forward. That absolute
|
|
2399
|
+
* expiry is the only liveness input the pool operator's claim reaper
|
|
2400
|
+
* honors, so a holder that outlives its current lease must renew before
|
|
2401
|
+
* the deadline passes or the bound sandbox is deleted underneath it.
|
|
2402
|
+
* Deliberately narrower than a claim update: nothing else on the claim
|
|
2403
|
+
* can be mutated through the SDK.
|
|
2404
|
+
*/
|
|
2405
|
+
renewClaim(claim: Claim, shutdownTime: string, asyncOpts_?: {
|
|
2406
|
+
signal: AbortSignal;
|
|
2407
|
+
}): Promise<Claim>;
|
|
2408
|
+
/**
|
|
2409
|
+
* Pin a public registry ref to a digest server-side. `runtime` (`gvisor`,
|
|
2410
|
+
* `kubevirt`, `macos`) selects the variant for canonical cua images:
|
|
2411
|
+
* `kubevirt` maps `ghcr.io/trycua/linux:24.04` to its `-disk` sibling.
|
|
2412
|
+
*/
|
|
2413
|
+
resolveImage(reference: string, runtime: string | undefined, asyncOpts_?: {
|
|
2414
|
+
signal: AbortSignal;
|
|
2415
|
+
}): Promise<ResolvedImage>;
|
|
2416
|
+
revokeSignedServiceUrl(signedServiceUrl: SignedServiceUrl, asyncOpts_?: {
|
|
2417
|
+
signal: AbortSignal;
|
|
2418
|
+
}): Promise<void>;
|
|
2419
|
+
serviceRequest(sandbox: Sandbox, service: string, path: string, request: HttpRequest, asyncOpts_?: {
|
|
2420
|
+
signal: AbortSignal;
|
|
2421
|
+
}): Promise<HttpResponse>;
|
|
2422
|
+
/**
|
|
2423
|
+
* Where a native client opens its own WebSocket to a sandbox service:
|
|
2424
|
+
* the gateway's `/api/svc` proxy forwards the HTTP upgrade, so the
|
|
2425
|
+
* returned `ws(s)://` URL plus the returned bearer header are all a
|
|
2426
|
+
* Rust or Swift caller needs to dial the socket directly.
|
|
2427
|
+
* `service_request` stays the path for unary requests.
|
|
2428
|
+
*/
|
|
2429
|
+
serviceWebsocketUrl(sandbox: Sandbox, service: string, path: string, asyncOpts_?: {
|
|
2430
|
+
signal: AbortSignal;
|
|
2431
|
+
}): Promise<ServiceStreamTarget>;
|
|
2432
|
+
updatePool(pool: Pool, asyncOpts_?: {
|
|
2433
|
+
signal: AbortSignal;
|
|
2434
|
+
}): Promise<Pool>;
|
|
2435
|
+
updateTemplate(template: Template, asyncOpts_?: {
|
|
2436
|
+
signal: AbortSignal;
|
|
2437
|
+
}): Promise<Template>;
|
|
2438
|
+
/**
|
|
2439
|
+
* Hash and upload one file, or reuse a matching existing object.
|
|
2440
|
+
* Returns only the bound digest, size, and tenant reference, never a signed URL.
|
|
2441
|
+
* This does not create an Image or attest to object versioning/encryption.
|
|
2442
|
+
*/
|
|
2443
|
+
uploadImageFile(namespace: string, name: string, contents: ArrayBuffer, asyncOpts_?: {
|
|
2444
|
+
signal: AbortSignal;
|
|
2445
|
+
}): Promise<ImageUploadInstruction>;
|
|
2446
|
+
waitClaim(claim: Claim, asyncOpts_?: {
|
|
2447
|
+
signal: AbortSignal;
|
|
2448
|
+
}): Promise<Sandbox>;
|
|
2449
|
+
uniffiDestroy(): void;
|
|
2450
|
+
static instanceOf(obj_: any): obj_ is CyclopsClient;
|
|
2451
|
+
}
|
|
2452
|
+
export interface CyclopsTokenProviderConfigurationBuilderLike {
|
|
2453
|
+
baseUrl(value: string): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2454
|
+
build(): CyclopsTokenProviderConfiguration;
|
|
2455
|
+
claimPollIntervalMs(value: bigint): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2456
|
+
claimPollLimit(value: number): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2457
|
+
poolPollIntervalMs(value: bigint): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2458
|
+
poolPollLimit(value: number): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* @deprecated Use `CyclopsTokenProviderConfigurationBuilderLike` instead.
|
|
2462
|
+
*/
|
|
2463
|
+
export type CyclopsTokenProviderConfigurationBuilderInterface = CyclopsTokenProviderConfigurationBuilderLike;
|
|
2464
|
+
export declare class CyclopsTokenProviderConfigurationBuilder extends UniffiAbstractObject implements CyclopsTokenProviderConfigurationBuilderLike {
|
|
2465
|
+
readonly [uniffiTypeNameSymbol] = "CyclopsTokenProviderConfigurationBuilder";
|
|
2466
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2467
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2468
|
+
constructor();
|
|
2469
|
+
baseUrl(value: string): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2470
|
+
build(): CyclopsTokenProviderConfiguration;
|
|
2471
|
+
claimPollIntervalMs(value: bigint): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2472
|
+
claimPollLimit(value: number): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2473
|
+
poolPollIntervalMs(value: bigint): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2474
|
+
poolPollLimit(value: number): CyclopsTokenProviderConfigurationBuilderLike;
|
|
2475
|
+
uniffiDestroy(): void;
|
|
2476
|
+
static instanceOf(obj_: any): obj_ is CyclopsTokenProviderConfigurationBuilder;
|
|
2477
|
+
}
|
|
2478
|
+
export interface HttpClient {
|
|
2479
|
+
/**
|
|
2480
|
+
* Executes an HTTP request. Foreign implementations must enforce
|
|
2481
|
+
* `request.max_response_bytes` while streaming the response body.
|
|
2482
|
+
* Implementations must not follow redirects, retry requests, or add ambient
|
|
2483
|
+
* authentication/cookies. Send only the supplied headers and body; signed
|
|
2484
|
+
* upload requests also use this interface and must not leak credentials.
|
|
2485
|
+
*/
|
|
2486
|
+
execute(request: HttpRequest, asyncOpts_?: {
|
|
2487
|
+
signal: AbortSignal;
|
|
2488
|
+
}): Promise<HttpResponse>;
|
|
2489
|
+
}
|
|
2490
|
+
export declare class HttpClientImpl extends UniffiAbstractObject implements HttpClient {
|
|
2491
|
+
readonly [uniffiTypeNameSymbol] = "HttpClientImpl";
|
|
2492
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2493
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2494
|
+
private constructor();
|
|
2495
|
+
/**
|
|
2496
|
+
* Executes an HTTP request. Foreign implementations must enforce
|
|
2497
|
+
* `request.max_response_bytes` while streaming the response body.
|
|
2498
|
+
* Implementations must not follow redirects, retry requests, or add ambient
|
|
2499
|
+
* authentication/cookies. Send only the supplied headers and body; signed
|
|
2500
|
+
* upload requests also use this interface and must not leak credentials.
|
|
2501
|
+
*/
|
|
2502
|
+
execute(request: HttpRequest, asyncOpts_?: {
|
|
2503
|
+
signal: AbortSignal;
|
|
2504
|
+
}): Promise<HttpResponse>;
|
|
2505
|
+
uniffiDestroy(): void;
|
|
2506
|
+
static instanceOf(obj_: any): obj_ is HttpClientImpl;
|
|
2507
|
+
}
|
|
2508
|
+
export interface HttpRequestBuilderLike {
|
|
2509
|
+
body(value: ArrayBuffer): HttpRequestBuilderLike;
|
|
2510
|
+
build(): HttpRequest;
|
|
2511
|
+
headers(value: Array<HttpHeader>): HttpRequestBuilderLike;
|
|
2512
|
+
maxResponseBytes(value: bigint): HttpRequestBuilderLike;
|
|
2513
|
+
method(value: string): HttpRequestBuilderLike;
|
|
2514
|
+
timeoutSecs(value: bigint): HttpRequestBuilderLike;
|
|
2515
|
+
url(value: string): HttpRequestBuilderLike;
|
|
2516
|
+
}
|
|
2517
|
+
/**
|
|
2518
|
+
* @deprecated Use `HttpRequestBuilderLike` instead.
|
|
2519
|
+
*/
|
|
2520
|
+
export type HttpRequestBuilderInterface = HttpRequestBuilderLike;
|
|
2521
|
+
export declare class HttpRequestBuilder extends UniffiAbstractObject implements HttpRequestBuilderLike {
|
|
2522
|
+
readonly [uniffiTypeNameSymbol] = "HttpRequestBuilder";
|
|
2523
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2524
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2525
|
+
constructor();
|
|
2526
|
+
body(value: ArrayBuffer): HttpRequestBuilderLike;
|
|
2527
|
+
build(): HttpRequest;
|
|
2528
|
+
headers(value: Array<HttpHeader>): HttpRequestBuilderLike;
|
|
2529
|
+
maxResponseBytes(value: bigint): HttpRequestBuilderLike;
|
|
2530
|
+
method(value: string): HttpRequestBuilderLike;
|
|
2531
|
+
timeoutSecs(value: bigint): HttpRequestBuilderLike;
|
|
2532
|
+
url(value: string): HttpRequestBuilderLike;
|
|
2533
|
+
uniffiDestroy(): void;
|
|
2534
|
+
static instanceOf(obj_: any): obj_ is HttpRequestBuilder;
|
|
2535
|
+
}
|
|
2536
|
+
export interface TemplateBuilderLike {
|
|
2537
|
+
apiVersion(value: string): TemplateBuilderLike;
|
|
2538
|
+
build(): Template;
|
|
2539
|
+
kind(value: string): TemplateBuilderLike;
|
|
2540
|
+
metadata(value: ResourceMetadata): TemplateBuilderLike;
|
|
2541
|
+
spec(value: OsGymSandboxTemplateSpec): TemplateBuilderLike;
|
|
2542
|
+
}
|
|
2543
|
+
/**
|
|
2544
|
+
* @deprecated Use `TemplateBuilderLike` instead.
|
|
2545
|
+
*/
|
|
2546
|
+
export type TemplateBuilderInterface = TemplateBuilderLike;
|
|
2547
|
+
export declare class TemplateBuilder extends UniffiAbstractObject implements TemplateBuilderLike {
|
|
2548
|
+
readonly [uniffiTypeNameSymbol] = "TemplateBuilder";
|
|
2549
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2550
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2551
|
+
constructor();
|
|
2552
|
+
apiVersion(value: string): TemplateBuilderLike;
|
|
2553
|
+
build(): Template;
|
|
2554
|
+
kind(value: string): TemplateBuilderLike;
|
|
2555
|
+
metadata(value: ResourceMetadata): TemplateBuilderLike;
|
|
2556
|
+
spec(value: OsGymSandboxTemplateSpec): TemplateBuilderLike;
|
|
2557
|
+
uniffiDestroy(): void;
|
|
2558
|
+
static instanceOf(obj_: any): obj_ is TemplateBuilder;
|
|
2559
|
+
}
|
|
2560
|
+
/**
|
|
2561
|
+
* This should be called before anything else.
|
|
2562
|
+
*
|
|
2563
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
2564
|
+
*
|
|
2565
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
2566
|
+
* and when the bindings were generated.
|
|
2567
|
+
*
|
|
2568
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2569
|
+
*/
|
|
2570
|
+
declare function uniffiEnsureInitialized(): void;
|
|
2571
|
+
declare const _default: Readonly<{
|
|
2572
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
2573
|
+
converters: {
|
|
2574
|
+
FfiConverterTypeAccessTokenProvider: FfiConverterObjectWithCallbacks<AccessTokenProvider>;
|
|
2575
|
+
FfiConverterTypeAccessTokenProviderError: {
|
|
2576
|
+
read(from: RustBuffer): {
|
|
2577
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
2578
|
+
readonly inner: Readonly<{
|
|
2579
|
+
reason: string;
|
|
2580
|
+
}>;
|
|
2581
|
+
/**
|
|
2582
|
+
* @private
|
|
2583
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2584
|
+
*/
|
|
2585
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
2586
|
+
name: string;
|
|
2587
|
+
message: string;
|
|
2588
|
+
stack?: string;
|
|
2589
|
+
cause?: unknown;
|
|
2590
|
+
};
|
|
2591
|
+
write(value: {
|
|
2592
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
2593
|
+
readonly inner: Readonly<{
|
|
2594
|
+
reason: string;
|
|
2595
|
+
}>;
|
|
2596
|
+
/**
|
|
2597
|
+
* @private
|
|
2598
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2599
|
+
*/
|
|
2600
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
2601
|
+
name: string;
|
|
2602
|
+
message: string;
|
|
2603
|
+
stack?: string;
|
|
2604
|
+
cause?: unknown;
|
|
2605
|
+
}, into: RustBuffer): void;
|
|
2606
|
+
allocationSize(value: {
|
|
2607
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
2608
|
+
readonly inner: Readonly<{
|
|
2609
|
+
reason: string;
|
|
2610
|
+
}>;
|
|
2611
|
+
/**
|
|
2612
|
+
* @private
|
|
2613
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2614
|
+
*/
|
|
2615
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
2616
|
+
name: string;
|
|
2617
|
+
message: string;
|
|
2618
|
+
stack?: string;
|
|
2619
|
+
cause?: unknown;
|
|
2620
|
+
}): number;
|
|
2621
|
+
lift(value: UniffiByteArray): {
|
|
2622
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
2623
|
+
readonly inner: Readonly<{
|
|
2624
|
+
reason: string;
|
|
2625
|
+
}>;
|
|
2626
|
+
/**
|
|
2627
|
+
* @private
|
|
2628
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2629
|
+
*/
|
|
2630
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
2631
|
+
name: string;
|
|
2632
|
+
message: string;
|
|
2633
|
+
stack?: string;
|
|
2634
|
+
cause?: unknown;
|
|
2635
|
+
};
|
|
2636
|
+
lower(value: {
|
|
2637
|
+
readonly tag: AccessTokenProviderError_Tags.Failed;
|
|
2638
|
+
readonly inner: Readonly<{
|
|
2639
|
+
reason: string;
|
|
2640
|
+
}>;
|
|
2641
|
+
/**
|
|
2642
|
+
* @private
|
|
2643
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2644
|
+
*/
|
|
2645
|
+
readonly [uniffiTypeNameSymbol]: "AccessTokenProviderError";
|
|
2646
|
+
name: string;
|
|
2647
|
+
message: string;
|
|
2648
|
+
stack?: string;
|
|
2649
|
+
cause?: unknown;
|
|
2650
|
+
}, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2651
|
+
};
|
|
2652
|
+
FfiConverterTypeClaim: {
|
|
2653
|
+
read(from: RustBuffer): Claim;
|
|
2654
|
+
write(value: Claim, into: RustBuffer): void;
|
|
2655
|
+
allocationSize(value: Claim): number;
|
|
2656
|
+
lift(value: UniffiByteArray): Claim;
|
|
2657
|
+
lower(value: Claim, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2658
|
+
};
|
|
2659
|
+
FfiConverterTypeCreateClaimRequest: {
|
|
2660
|
+
read(from: RustBuffer): CreateClaimRequest;
|
|
2661
|
+
write(value: CreateClaimRequest, into: RustBuffer): void;
|
|
2662
|
+
allocationSize(value: CreateClaimRequest): number;
|
|
2663
|
+
lift(value: UniffiByteArray): CreateClaimRequest;
|
|
2664
|
+
lower(value: CreateClaimRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2665
|
+
};
|
|
2666
|
+
FfiConverterTypeCreateClaimRequestBuilder: FfiConverterObject<CreateClaimRequestBuilderLike>;
|
|
2667
|
+
FfiConverterTypeCreatePoolRequest: {
|
|
2668
|
+
read(from: RustBuffer): CreatePoolRequest;
|
|
2669
|
+
write(value: CreatePoolRequest, into: RustBuffer): void;
|
|
2670
|
+
allocationSize(value: CreatePoolRequest): number;
|
|
2671
|
+
lift(value: UniffiByteArray): CreatePoolRequest;
|
|
2672
|
+
lower(value: CreatePoolRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2673
|
+
};
|
|
2674
|
+
FfiConverterTypeCreatePoolRequestBuilder: FfiConverterObject<CreatePoolRequestBuilderLike>;
|
|
2675
|
+
FfiConverterTypeCreateRegistrySecretRequest: {
|
|
2676
|
+
read(from: RustBuffer): CreateRegistrySecretRequest;
|
|
2677
|
+
write(value: CreateRegistrySecretRequest, into: RustBuffer): void;
|
|
2678
|
+
allocationSize(value: CreateRegistrySecretRequest): number;
|
|
2679
|
+
lift(value: UniffiByteArray): CreateRegistrySecretRequest;
|
|
2680
|
+
lower(value: CreateRegistrySecretRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2681
|
+
};
|
|
2682
|
+
FfiConverterTypeCreateRegistrySecretRequestBuilder: FfiConverterObject<CreateRegistrySecretRequestBuilderLike>;
|
|
2683
|
+
FfiConverterTypeCreateSignedServiceUrlRequest: {
|
|
2684
|
+
read(from: RustBuffer): CreateSignedServiceUrlRequest;
|
|
2685
|
+
write(value: CreateSignedServiceUrlRequest, into: RustBuffer): void;
|
|
2686
|
+
allocationSize(value: CreateSignedServiceUrlRequest): number;
|
|
2687
|
+
lift(value: UniffiByteArray): CreateSignedServiceUrlRequest;
|
|
2688
|
+
lower(value: CreateSignedServiceUrlRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2689
|
+
};
|
|
2690
|
+
FfiConverterTypeCreateSignedServiceUrlRequestBuilder: FfiConverterObject<CreateSignedServiceUrlRequestBuilderLike>;
|
|
2691
|
+
FfiConverterTypeCreateTemplateRequest: {
|
|
2692
|
+
read(from: RustBuffer): CreateTemplateRequest;
|
|
2693
|
+
write(value: CreateTemplateRequest, into: RustBuffer): void;
|
|
2694
|
+
allocationSize(value: CreateTemplateRequest): number;
|
|
2695
|
+
lift(value: UniffiByteArray): CreateTemplateRequest;
|
|
2696
|
+
lower(value: CreateTemplateRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2697
|
+
};
|
|
2698
|
+
FfiConverterTypeCreateTemplateRequestBuilder: FfiConverterObject<CreateTemplateRequestBuilderLike>;
|
|
2699
|
+
FfiConverterTypeCreateUserApiKeyRequest: {
|
|
2700
|
+
read(from: RustBuffer): CreateUserApiKeyRequest;
|
|
2701
|
+
write(value: CreateUserApiKeyRequest, into: RustBuffer): void;
|
|
2702
|
+
allocationSize(value: CreateUserApiKeyRequest): number;
|
|
2703
|
+
lift(value: UniffiByteArray): CreateUserApiKeyRequest;
|
|
2704
|
+
lower(value: CreateUserApiKeyRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2705
|
+
};
|
|
2706
|
+
FfiConverterTypeCreateUserApiKeyRequestBuilder: FfiConverterObject<CreateUserApiKeyRequestBuilderLike>;
|
|
2707
|
+
FfiConverterTypeCyclopsClient: FfiConverterObject<CyclopsClientLike>;
|
|
2708
|
+
FfiConverterTypeCyclopsConfiguration: {
|
|
2709
|
+
read(from: RustBuffer): CyclopsConfiguration;
|
|
2710
|
+
write(value: CyclopsConfiguration, into: RustBuffer): void;
|
|
2711
|
+
allocationSize(value: CyclopsConfiguration): number;
|
|
2712
|
+
lift(value: UniffiByteArray): CyclopsConfiguration;
|
|
2713
|
+
lower(value: CyclopsConfiguration, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2714
|
+
};
|
|
2715
|
+
FfiConverterTypeCyclopsCredentials: FfiConverterObject<CyclopsCredentialsLike>;
|
|
2716
|
+
FfiConverterTypeCyclopsTokenProviderConfiguration: {
|
|
2717
|
+
read(from: RustBuffer): CyclopsTokenProviderConfiguration;
|
|
2718
|
+
write(value: CyclopsTokenProviderConfiguration, into: RustBuffer): void;
|
|
2719
|
+
allocationSize(value: CyclopsTokenProviderConfiguration): number;
|
|
2720
|
+
lift(value: UniffiByteArray): CyclopsTokenProviderConfiguration;
|
|
2721
|
+
lower(value: CyclopsTokenProviderConfiguration, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2722
|
+
};
|
|
2723
|
+
FfiConverterTypeCyclopsTokenProviderConfigurationBuilder: FfiConverterObject<CyclopsTokenProviderConfigurationBuilderLike>;
|
|
2724
|
+
FfiConverterTypeFleetClaims: {
|
|
2725
|
+
read(from: RustBuffer): FleetClaims;
|
|
2726
|
+
write(value: FleetClaims, into: RustBuffer): void;
|
|
2727
|
+
allocationSize(value: FleetClaims): number;
|
|
2728
|
+
lift(value: UniffiByteArray): FleetClaims;
|
|
2729
|
+
lower(value: FleetClaims, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2730
|
+
};
|
|
2731
|
+
FfiConverterTypeFleetPoolRequest: {
|
|
2732
|
+
read(from: RustBuffer): FleetPoolRequest;
|
|
2733
|
+
write(value: FleetPoolRequest, into: RustBuffer): void;
|
|
2734
|
+
allocationSize(value: FleetPoolRequest): number;
|
|
2735
|
+
lift(value: UniffiByteArray): FleetPoolRequest;
|
|
2736
|
+
lower(value: FleetPoolRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2737
|
+
};
|
|
2738
|
+
FfiConverterTypeHttpClient: FfiConverterObjectWithCallbacks<HttpClient>;
|
|
2739
|
+
FfiConverterTypeHttpError: {
|
|
2740
|
+
read(from: RustBuffer): {
|
|
2741
|
+
readonly tag: HttpError_Tags.Transport;
|
|
2742
|
+
readonly inner: Readonly<{
|
|
2743
|
+
reason: string;
|
|
2744
|
+
}>;
|
|
2745
|
+
/**
|
|
2746
|
+
* @private
|
|
2747
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2748
|
+
*/
|
|
2749
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
2750
|
+
name: string;
|
|
2751
|
+
message: string;
|
|
2752
|
+
stack?: string;
|
|
2753
|
+
cause?: unknown;
|
|
2754
|
+
};
|
|
2755
|
+
write(value: {
|
|
2756
|
+
readonly tag: HttpError_Tags.Transport;
|
|
2757
|
+
readonly inner: Readonly<{
|
|
2758
|
+
reason: string;
|
|
2759
|
+
}>;
|
|
2760
|
+
/**
|
|
2761
|
+
* @private
|
|
2762
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2763
|
+
*/
|
|
2764
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
2765
|
+
name: string;
|
|
2766
|
+
message: string;
|
|
2767
|
+
stack?: string;
|
|
2768
|
+
cause?: unknown;
|
|
2769
|
+
}, into: RustBuffer): void;
|
|
2770
|
+
allocationSize(value: {
|
|
2771
|
+
readonly tag: HttpError_Tags.Transport;
|
|
2772
|
+
readonly inner: Readonly<{
|
|
2773
|
+
reason: string;
|
|
2774
|
+
}>;
|
|
2775
|
+
/**
|
|
2776
|
+
* @private
|
|
2777
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2778
|
+
*/
|
|
2779
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
2780
|
+
name: string;
|
|
2781
|
+
message: string;
|
|
2782
|
+
stack?: string;
|
|
2783
|
+
cause?: unknown;
|
|
2784
|
+
}): number;
|
|
2785
|
+
lift(value: UniffiByteArray): {
|
|
2786
|
+
readonly tag: HttpError_Tags.Transport;
|
|
2787
|
+
readonly inner: Readonly<{
|
|
2788
|
+
reason: string;
|
|
2789
|
+
}>;
|
|
2790
|
+
/**
|
|
2791
|
+
* @private
|
|
2792
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2793
|
+
*/
|
|
2794
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
2795
|
+
name: string;
|
|
2796
|
+
message: string;
|
|
2797
|
+
stack?: string;
|
|
2798
|
+
cause?: unknown;
|
|
2799
|
+
};
|
|
2800
|
+
lower(value: {
|
|
2801
|
+
readonly tag: HttpError_Tags.Transport;
|
|
2802
|
+
readonly inner: Readonly<{
|
|
2803
|
+
reason: string;
|
|
2804
|
+
}>;
|
|
2805
|
+
/**
|
|
2806
|
+
* @private
|
|
2807
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2808
|
+
*/
|
|
2809
|
+
readonly [uniffiTypeNameSymbol]: "HttpError";
|
|
2810
|
+
name: string;
|
|
2811
|
+
message: string;
|
|
2812
|
+
stack?: string;
|
|
2813
|
+
cause?: unknown;
|
|
2814
|
+
}, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2815
|
+
};
|
|
2816
|
+
FfiConverterTypeHttpHeader: {
|
|
2817
|
+
read(from: RustBuffer): HttpHeader;
|
|
2818
|
+
write(value: HttpHeader, into: RustBuffer): void;
|
|
2819
|
+
allocationSize(value: HttpHeader): number;
|
|
2820
|
+
lift(value: UniffiByteArray): HttpHeader;
|
|
2821
|
+
lower(value: HttpHeader, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2822
|
+
};
|
|
2823
|
+
FfiConverterTypeHttpRequest: {
|
|
2824
|
+
read(from: RustBuffer): HttpRequest;
|
|
2825
|
+
write(value: HttpRequest, into: RustBuffer): void;
|
|
2826
|
+
allocationSize(value: HttpRequest): number;
|
|
2827
|
+
lift(value: UniffiByteArray): HttpRequest;
|
|
2828
|
+
lower(value: HttpRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2829
|
+
};
|
|
2830
|
+
FfiConverterTypeHttpRequestBuilder: FfiConverterObject<HttpRequestBuilderLike>;
|
|
2831
|
+
FfiConverterTypeHttpResponse: {
|
|
2832
|
+
read(from: RustBuffer): HttpResponse;
|
|
2833
|
+
write(value: HttpResponse, into: RustBuffer): void;
|
|
2834
|
+
allocationSize(value: HttpResponse): number;
|
|
2835
|
+
lift(value: UniffiByteArray): HttpResponse;
|
|
2836
|
+
lower(value: HttpResponse, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2837
|
+
};
|
|
2838
|
+
FfiConverterTypeImageUploadFileRequest: {
|
|
2839
|
+
read(from: RustBuffer): ImageUploadFileRequest;
|
|
2840
|
+
write(value: ImageUploadFileRequest, into: RustBuffer): void;
|
|
2841
|
+
allocationSize(value: ImageUploadFileRequest): number;
|
|
2842
|
+
lift(value: UniffiByteArray): ImageUploadFileRequest;
|
|
2843
|
+
lower(value: ImageUploadFileRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2844
|
+
};
|
|
2845
|
+
FfiConverterTypeImageUploadInstruction: {
|
|
2846
|
+
read(from: RustBuffer): ImageUploadInstruction;
|
|
2847
|
+
write(value: ImageUploadInstruction, into: RustBuffer): void;
|
|
2848
|
+
allocationSize(value: ImageUploadInstruction): number;
|
|
2849
|
+
lift(value: UniffiByteArray): ImageUploadInstruction;
|
|
2850
|
+
lower(value: ImageUploadInstruction, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2851
|
+
};
|
|
2852
|
+
FfiConverterTypeImageUploadRequest: {
|
|
2853
|
+
read(from: RustBuffer): ImageUploadRequest;
|
|
2854
|
+
write(value: ImageUploadRequest, into: RustBuffer): void;
|
|
2855
|
+
allocationSize(value: ImageUploadRequest): number;
|
|
2856
|
+
lift(value: UniffiByteArray): ImageUploadRequest;
|
|
2857
|
+
lower(value: ImageUploadRequest, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2858
|
+
};
|
|
2859
|
+
FfiConverterTypeImageUploadResponse: {
|
|
2860
|
+
read(from: RustBuffer): ImageUploadResponse;
|
|
2861
|
+
write(value: ImageUploadResponse, into: RustBuffer): void;
|
|
2862
|
+
allocationSize(value: ImageUploadResponse): number;
|
|
2863
|
+
lift(value: UniffiByteArray): ImageUploadResponse;
|
|
2864
|
+
lower(value: ImageUploadResponse, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2865
|
+
};
|
|
2866
|
+
FfiConverterTypeNamespace: {
|
|
2867
|
+
read(from: RustBuffer): Namespace;
|
|
2868
|
+
write(value: Namespace, into: RustBuffer): void;
|
|
2869
|
+
allocationSize(value: Namespace): number;
|
|
2870
|
+
lift(value: UniffiByteArray): Namespace;
|
|
2871
|
+
lower(value: Namespace, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2872
|
+
};
|
|
2873
|
+
FfiConverterTypeNewUserApiKey: {
|
|
2874
|
+
read(from: RustBuffer): NewUserApiKey;
|
|
2875
|
+
write(value: NewUserApiKey, into: RustBuffer): void;
|
|
2876
|
+
allocationSize(value: NewUserApiKey): number;
|
|
2877
|
+
lift(value: UniffiByteArray): NewUserApiKey;
|
|
2878
|
+
lower(value: NewUserApiKey, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2879
|
+
};
|
|
2880
|
+
FfiConverterTypePool: {
|
|
2881
|
+
read(from: RustBuffer): Pool;
|
|
2882
|
+
write(value: Pool, into: RustBuffer): void;
|
|
2883
|
+
allocationSize(value: Pool): number;
|
|
2884
|
+
lift(value: UniffiByteArray): Pool;
|
|
2885
|
+
lower(value: Pool, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2886
|
+
};
|
|
2887
|
+
FfiConverterTypePoolDisplayStatus: {
|
|
2888
|
+
read(from: RustBuffer): PoolDisplayStatus;
|
|
2889
|
+
write(value: PoolDisplayStatus, into: RustBuffer): void;
|
|
2890
|
+
allocationSize(value: PoolDisplayStatus): number;
|
|
2891
|
+
lift(value: UniffiByteArray): PoolDisplayStatus;
|
|
2892
|
+
lower(value: PoolDisplayStatus, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2893
|
+
};
|
|
2894
|
+
FfiConverterTypePoolDisplayStatusKind: {
|
|
2895
|
+
read(from: RustBuffer): PoolDisplayStatusKind;
|
|
2896
|
+
write(value: PoolDisplayStatusKind, into: RustBuffer): void;
|
|
2897
|
+
allocationSize(value: PoolDisplayStatusKind): number;
|
|
2898
|
+
lift(value: UniffiByteArray): PoolDisplayStatusKind;
|
|
2899
|
+
lower(value: PoolDisplayStatusKind, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2900
|
+
};
|
|
2901
|
+
FfiConverterTypePresignedPut: {
|
|
2902
|
+
read(from: RustBuffer): PresignedPut;
|
|
2903
|
+
write(value: PresignedPut, into: RustBuffer): void;
|
|
2904
|
+
allocationSize(value: PresignedPut): number;
|
|
2905
|
+
lift(value: UniffiByteArray): PresignedPut;
|
|
2906
|
+
lower(value: PresignedPut, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2907
|
+
};
|
|
2908
|
+
FfiConverterTypeRegistrySecret: {
|
|
2909
|
+
read(from: RustBuffer): RegistrySecret;
|
|
2910
|
+
write(value: RegistrySecret, into: RustBuffer): void;
|
|
2911
|
+
allocationSize(value: RegistrySecret): number;
|
|
2912
|
+
lift(value: UniffiByteArray): RegistrySecret;
|
|
2913
|
+
lower(value: RegistrySecret, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2914
|
+
};
|
|
2915
|
+
FfiConverterTypeResolvedImage: {
|
|
2916
|
+
read(from: RustBuffer): ResolvedImage;
|
|
2917
|
+
write(value: ResolvedImage, into: RustBuffer): void;
|
|
2918
|
+
allocationSize(value: ResolvedImage): number;
|
|
2919
|
+
lift(value: UniffiByteArray): ResolvedImage;
|
|
2920
|
+
lower(value: ResolvedImage, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2921
|
+
};
|
|
2922
|
+
FfiConverterTypeResourceMetadata: {
|
|
2923
|
+
read(from: RustBuffer): ResourceMetadata;
|
|
2924
|
+
write(value: ResourceMetadata, into: RustBuffer): void;
|
|
2925
|
+
allocationSize(value: ResourceMetadata): number;
|
|
2926
|
+
lift(value: UniffiByteArray): ResourceMetadata;
|
|
2927
|
+
lower(value: ResourceMetadata, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2928
|
+
};
|
|
2929
|
+
FfiConverterTypeSandbox: {
|
|
2930
|
+
read(from: RustBuffer): Sandbox;
|
|
2931
|
+
write(value: Sandbox, into: RustBuffer): void;
|
|
2932
|
+
allocationSize(value: Sandbox): number;
|
|
2933
|
+
lift(value: UniffiByteArray): Sandbox;
|
|
2934
|
+
lower(value: Sandbox, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
2935
|
+
};
|
|
2936
|
+
FfiConverterTypeSdkBuildError: {
|
|
2937
|
+
read(from: RustBuffer): {
|
|
2938
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
2939
|
+
readonly inner: Readonly<{
|
|
2940
|
+
recordType: string;
|
|
2941
|
+
field: string;
|
|
2942
|
+
}>;
|
|
2943
|
+
/**
|
|
2944
|
+
* @private
|
|
2945
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2946
|
+
*/
|
|
2947
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
2948
|
+
name: string;
|
|
2949
|
+
message: string;
|
|
2950
|
+
stack?: string;
|
|
2951
|
+
cause?: unknown;
|
|
2952
|
+
};
|
|
2953
|
+
write(value: {
|
|
2954
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
2955
|
+
readonly inner: Readonly<{
|
|
2956
|
+
recordType: string;
|
|
2957
|
+
field: string;
|
|
2958
|
+
}>;
|
|
2959
|
+
/**
|
|
2960
|
+
* @private
|
|
2961
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2962
|
+
*/
|
|
2963
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
2964
|
+
name: string;
|
|
2965
|
+
message: string;
|
|
2966
|
+
stack?: string;
|
|
2967
|
+
cause?: unknown;
|
|
2968
|
+
}, into: RustBuffer): void;
|
|
2969
|
+
allocationSize(value: {
|
|
2970
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
2971
|
+
readonly inner: Readonly<{
|
|
2972
|
+
recordType: string;
|
|
2973
|
+
field: string;
|
|
2974
|
+
}>;
|
|
2975
|
+
/**
|
|
2976
|
+
* @private
|
|
2977
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2978
|
+
*/
|
|
2979
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
2980
|
+
name: string;
|
|
2981
|
+
message: string;
|
|
2982
|
+
stack?: string;
|
|
2983
|
+
cause?: unknown;
|
|
2984
|
+
}): number;
|
|
2985
|
+
lift(value: UniffiByteArray): {
|
|
2986
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
2987
|
+
readonly inner: Readonly<{
|
|
2988
|
+
recordType: string;
|
|
2989
|
+
field: string;
|
|
2990
|
+
}>;
|
|
2991
|
+
/**
|
|
2992
|
+
* @private
|
|
2993
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2994
|
+
*/
|
|
2995
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
2996
|
+
name: string;
|
|
2997
|
+
message: string;
|
|
2998
|
+
stack?: string;
|
|
2999
|
+
cause?: unknown;
|
|
3000
|
+
};
|
|
3001
|
+
lower(value: {
|
|
3002
|
+
readonly tag: SdkBuildError_Tags.MissingRequiredField;
|
|
3003
|
+
readonly inner: Readonly<{
|
|
3004
|
+
recordType: string;
|
|
3005
|
+
field: string;
|
|
3006
|
+
}>;
|
|
3007
|
+
/**
|
|
3008
|
+
* @private
|
|
3009
|
+
* This field is private and should not be used, use `tag` instead.
|
|
3010
|
+
*/
|
|
3011
|
+
readonly [uniffiTypeNameSymbol]: "SdkBuildError";
|
|
3012
|
+
name: string;
|
|
3013
|
+
message: string;
|
|
3014
|
+
stack?: string;
|
|
3015
|
+
cause?: unknown;
|
|
3016
|
+
}, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3017
|
+
};
|
|
3018
|
+
FfiConverterTypeSdkError: {
|
|
3019
|
+
read(from: RustBuffer): SdkError;
|
|
3020
|
+
write(value: SdkError, into: RustBuffer): void;
|
|
3021
|
+
allocationSize(value: SdkError): number;
|
|
3022
|
+
lift(value: UniffiByteArray): SdkError;
|
|
3023
|
+
lower(value: SdkError, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3024
|
+
};
|
|
3025
|
+
FfiConverterTypeServiceStreamTarget: {
|
|
3026
|
+
read(from: RustBuffer): ServiceStreamTarget;
|
|
3027
|
+
write(value: ServiceStreamTarget, into: RustBuffer): void;
|
|
3028
|
+
allocationSize(value: ServiceStreamTarget): number;
|
|
3029
|
+
lift(value: UniffiByteArray): ServiceStreamTarget;
|
|
3030
|
+
lower(value: ServiceStreamTarget, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3031
|
+
};
|
|
3032
|
+
FfiConverterTypeSignedServiceUrl: {
|
|
3033
|
+
read(from: RustBuffer): SignedServiceUrl;
|
|
3034
|
+
write(value: SignedServiceUrl, into: RustBuffer): void;
|
|
3035
|
+
allocationSize(value: SignedServiceUrl): number;
|
|
3036
|
+
lift(value: UniffiByteArray): SignedServiceUrl;
|
|
3037
|
+
lower(value: SignedServiceUrl, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3038
|
+
};
|
|
3039
|
+
FfiConverterTypeTemplate: {
|
|
3040
|
+
read(from: RustBuffer): Template;
|
|
3041
|
+
write(value: Template, into: RustBuffer): void;
|
|
3042
|
+
allocationSize(value: Template): number;
|
|
3043
|
+
lift(value: UniffiByteArray): Template;
|
|
3044
|
+
lower(value: Template, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3045
|
+
};
|
|
3046
|
+
FfiConverterTypeTemplateBuilder: FfiConverterObject<TemplateBuilderLike>;
|
|
3047
|
+
FfiConverterTypeUserApiKey: {
|
|
3048
|
+
read(from: RustBuffer): UserApiKey;
|
|
3049
|
+
write(value: UserApiKey, into: RustBuffer): void;
|
|
3050
|
+
allocationSize(value: UserApiKey): number;
|
|
3051
|
+
lift(value: UniffiByteArray): UserApiKey;
|
|
3052
|
+
lower(value: UserApiKey, alloc: import("@ubjs/core").RustBufferAllocator): UniffiByteArray;
|
|
3053
|
+
};
|
|
3054
|
+
};
|
|
3055
|
+
}>;
|
|
3056
|
+
export default _default;
|