@kibotos/sdk 0.1.0 → 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/dist/index.d.ts CHANGED
@@ -105,6 +105,8 @@ type ZoneStatus = 'available' | 'draining';
105
105
  interface Zone {
106
106
  id: string;
107
107
  display_name: string;
108
+ /** Optional human-readable description (up to 200 characters), or `null` when unspecified. */
109
+ description?: string | null;
108
110
  region: string;
109
111
  /** ISO 3166-1 alpha-2 uppercase country/region code (e.g. `"JP"`, `"US"`), or `null` when unspecified. */
110
112
  country: string | null;
@@ -169,12 +171,30 @@ interface WorkspaceResourcesInput {
169
171
  memory_mib?: number;
170
172
  disk_mib?: number;
171
173
  }
172
- interface WorkspaceNetwork {
173
- mode: NetworkMode;
174
- applied: boolean;
174
+ interface NetworkEgressRule {
175
+ egress_id: string;
176
+ destinations: string[];
177
+ }
178
+ type NetworkResolverPath = {
179
+ type: 'direct';
180
+ } | {
181
+ type: 'egress';
182
+ egress_id: string;
183
+ };
184
+ interface NetworkResolverRule {
185
+ resolver_id: string;
186
+ path: NetworkResolverPath;
175
187
  }
176
188
  interface WorkspaceNetworkInput {
177
189
  mode: NetworkMode;
190
+ allow?: string[];
191
+ deny?: string[];
192
+ egresses?: NetworkEgressRule[];
193
+ resolvers?: NetworkResolverRule[];
194
+ }
195
+ interface WorkspaceNetwork extends WorkspaceNetworkInput {
196
+ /** Null while the workspace is stopped. */
197
+ applied: boolean | null;
178
198
  }
179
199
  interface WorkspaceVolumeAttachment {
180
200
  id: string;
@@ -194,6 +214,11 @@ interface WorkspaceTimeoutInput {
194
214
  seconds: number;
195
215
  action?: TimeoutAction;
196
216
  }
217
+ interface WorkspacePack {
218
+ id: string;
219
+ revision: string;
220
+ provided_capabilities: string[];
221
+ }
197
222
  interface Workspace {
198
223
  id: string;
199
224
  name: string | null;
@@ -204,6 +229,8 @@ interface Workspace {
204
229
  resources: WorkspaceResources;
205
230
  network: WorkspaceNetwork;
206
231
  volume: WorkspaceVolumeAttachment | null;
232
+ volumes?: WorkspaceVolumeAttachment[];
233
+ packs?: WorkspacePack[];
207
234
  timeout: WorkspaceTimeout | null;
208
235
  labels: Record<string, string>;
209
236
  created_at: string;
@@ -216,7 +243,11 @@ interface CreateWorkspaceRequest {
216
243
  resources?: WorkspaceResourcesInput;
217
244
  network?: WorkspaceNetworkInput;
218
245
  volume?: WorkspaceVolumeAttachmentInput;
246
+ volumes?: WorkspaceVolumeAttachmentInput[];
247
+ packs?: string[];
219
248
  timeout?: WorkspaceTimeoutInput;
249
+ /** Disable automatic expiration (serializes as `timeout: { seconds: 0 }`). Cannot be combined with `timeout`. */
250
+ noTimeout?: boolean;
220
251
  labels?: Record<string, string>;
221
252
  }
222
253
  interface ListWorkspacesParams extends PaginationParams {
@@ -229,9 +260,12 @@ interface UpdateWorkspaceRequest {
229
260
  name?: string | null;
230
261
  /** Set a key to `null` to delete that label. */
231
262
  labels?: Record<string, string | null>;
263
+ resources?: WorkspaceResourcesInput;
232
264
  }
233
265
  interface StartWorkspaceRequest {
234
266
  timeout?: WorkspaceTimeoutInput;
267
+ /** Disable automatic expiration on start (serializes as `timeout: { seconds: 0 }`). Cannot be combined with `timeout`. */
268
+ noTimeout?: boolean;
235
269
  }
236
270
  interface StopWorkspaceRequest {
237
271
  force?: boolean;
@@ -240,8 +274,50 @@ interface SetWorkspaceTimeoutRequest {
240
274
  seconds: number;
241
275
  action?: TimeoutAction;
242
276
  }
243
- interface SetWorkspaceNetworkRequest {
244
- mode: NetworkMode;
277
+ interface SetWorkspaceNetworkRequest extends WorkspaceNetworkInput {
278
+ drain_seconds?: number;
279
+ }
280
+ interface SetWorkspaceVolumesRequest {
281
+ volumes: WorkspaceVolumeAttachmentInput[];
282
+ }
283
+ interface SetWorkspacePacksRequest {
284
+ packs: string[];
285
+ }
286
+ interface WorkspaceMetricsParams {
287
+ start?: string | Date;
288
+ end?: string | Date;
289
+ }
290
+ interface WorkspaceGuestMetricsPoint {
291
+ time: string;
292
+ cpu_count: number;
293
+ cpu_used_percent: number;
294
+ disk_total_bytes: number;
295
+ disk_used_bytes: number;
296
+ memory_cache_bytes: number;
297
+ memory_total_bytes: number;
298
+ memory_used_bytes: number;
299
+ }
300
+ interface WorkspaceHostMetricsPoint {
301
+ time: string;
302
+ cpu_cores?: number;
303
+ cpu_pressure_some_ratio?: number;
304
+ io_pressure_full_ratio?: number;
305
+ io_pressure_some_ratio?: number;
306
+ memory_bytes?: number;
307
+ memory_pressure_full_ratio?: number;
308
+ memory_pressure_some_ratio?: number;
309
+ network_receive_bytes_per_second?: number;
310
+ network_receive_dropped_per_second?: number;
311
+ network_receive_packets_per_second?: number;
312
+ network_transmit_bytes_per_second?: number;
313
+ network_transmit_dropped_per_second?: number;
314
+ network_transmit_packets_per_second?: number;
315
+ }
316
+ interface WorkspaceMetrics {
317
+ earliest_time: string | null;
318
+ guest: WorkspaceGuestMetricsPoint[];
319
+ host: WorkspaceHostMetricsPoint[];
320
+ step_seconds: number;
245
321
  }
246
322
  interface AttachVolumeRequest {
247
323
  id: string;
@@ -257,7 +333,7 @@ interface WaitWorkspaceParams {
257
333
  */
258
334
  timeoutSeconds?: number;
259
335
  }
260
- type ExposureStatus = 'active' | 'revoked' | 'expired';
336
+ type ExposureStatus = 'active' | 'revoked';
261
337
  interface Exposure {
262
338
  id: string;
263
339
  workspace_id: string;
@@ -323,17 +399,179 @@ interface WaitVolumeParams {
323
399
  */
324
400
  timeoutSeconds?: number;
325
401
  }
402
+ interface PackRelease {
403
+ id: string;
404
+ architecture: string;
405
+ guest_requirements: string[];
406
+ provided_capabilities: string[];
407
+ published_at: string;
408
+ version: string;
409
+ zones: string[];
410
+ }
411
+ interface Pack extends PackRelease {
412
+ default_revision: string;
413
+ description: string;
414
+ display_name: string;
415
+ }
416
+ interface PackRevision extends PackRelease {
417
+ pack_id: string;
418
+ }
419
+ interface ListPacksParams extends PaginationParams {
420
+ zone?: string;
421
+ }
422
+ interface ListEgressesParams extends ListPacksParams {
423
+ labels?: Record<string, string>;
424
+ }
425
+ type ListResolversParams = ListEgressesParams;
426
+ interface EgressTLS {
427
+ ca_cert?: string | null;
428
+ server_name?: string | null;
429
+ }
430
+ interface EgressSocks5 {
431
+ address: string;
432
+ tls?: EgressTLS | null;
433
+ username?: string | null;
434
+ }
435
+ interface EgressSocks5Input extends EgressSocks5 {
436
+ /** Write-only. Supply again when replacing the configuration. */
437
+ password?: string | null;
438
+ }
439
+ interface ZonedNetworkResource {
440
+ id: string;
441
+ name: string | null;
442
+ zone: string;
443
+ labels: Record<string, string>;
444
+ revision: number;
445
+ created_at: string;
446
+ updated_at: string;
447
+ }
448
+ interface CreateNetworkResourceRequest {
449
+ name?: string;
450
+ zone?: string;
451
+ labels?: Record<string, string>;
452
+ }
453
+ interface Egress extends ZonedNetworkResource {
454
+ protocol: 'socks5';
455
+ socks5: EgressSocks5;
456
+ udp_enabled: boolean;
457
+ }
458
+ interface CreateEgressRequest extends CreateNetworkResourceRequest {
459
+ protocol: 'socks5';
460
+ socks5: EgressSocks5Input;
461
+ udp_enabled?: boolean;
462
+ }
463
+ interface ReplaceEgressRequest {
464
+ protocol: 'socks5';
465
+ socks5: EgressSocks5Input;
466
+ udp_enabled?: boolean;
467
+ drain_seconds?: number;
468
+ }
469
+ interface UpdateEgressRequest {
470
+ name?: string | null;
471
+ labels?: Record<string, string | null>;
472
+ }
473
+ interface ResolverAddress {
474
+ address: string;
475
+ }
476
+ interface ResolverHTTPS {
477
+ url: string;
478
+ }
479
+ interface ResolverConfig {
480
+ protocol: 'udp' | 'tcp' | 'tls' | 'https';
481
+ udp?: ResolverAddress;
482
+ tcp?: ResolverAddress;
483
+ tls?: ResolverAddress;
484
+ https?: ResolverHTTPS;
485
+ }
486
+ interface Resolver extends ZonedNetworkResource, ResolverConfig {
487
+ }
488
+ interface CreateResolverRequest extends CreateNetworkResourceRequest, ResolverConfig {
489
+ }
490
+ type ReplaceResolverRequest = ResolverConfig;
491
+ type UpdateResolverRequest = UpdateEgressRequest;
492
+ interface ExecRequest {
493
+ argv: string[];
494
+ env?: Record<string, string>;
495
+ max_output_bytes?: number;
496
+ stdin?: string | null;
497
+ timeout_seconds?: number;
498
+ user?: string | null;
499
+ working_dir?: string | null;
500
+ }
501
+ interface ExecResponse {
502
+ duration_ms: number;
503
+ exit_code: number | null;
504
+ signal: number | null;
505
+ stdout: string;
506
+ stderr: string;
507
+ termination_reason: 'exited' | 'signaled' | 'timed_out' | 'canceled' | 'failed' | 'memory_saturated' | 'out_of_memory';
508
+ truncated: boolean;
509
+ }
510
+ interface ExecEvent {
511
+ event: 'started' | 'stdout' | 'stderr' | 'heartbeat' | 'exited' | 'error';
512
+ /** The decoded JSON payload, or the original text when the payload is not JSON. */
513
+ data: unknown;
514
+ }
515
+ interface FileEntry {
516
+ path: string;
517
+ name: string;
518
+ type: string;
519
+ mode: string;
520
+ modified_at: string | null;
521
+ size_bytes: number;
522
+ }
523
+ interface FileList {
524
+ path: string;
525
+ entries: FileEntry[];
526
+ }
527
+ interface FileWriteResult {
528
+ path: string;
529
+ size_bytes: number;
530
+ sha256: string;
531
+ }
532
+ interface FileOptions extends RequestOptions {
533
+ user?: string;
534
+ }
535
+ interface ListFilesOptions extends FileOptions {
536
+ depth?: number;
537
+ }
538
+ interface ReadFileOptions extends FileOptions {
539
+ range?: string;
540
+ ifNoneMatch?: string;
541
+ as?: 'response' | 'bytes' | 'stream';
542
+ }
543
+ interface WriteFileOptions extends FileOptions {
544
+ mode?: string;
545
+ createOnly?: boolean;
546
+ }
547
+ type FileContent = Uint8Array | ReadableStream<Uint8Array> | string | Blob;
548
+ interface MakeDirectoryRequest {
549
+ path: string;
550
+ mode?: string;
551
+ user?: string | null;
552
+ }
553
+ interface MoveFileRequest {
554
+ source: string;
555
+ destination: string;
556
+ user?: string | null;
557
+ }
326
558
 
327
559
  declare const DEFAULT_BASE_URL = "https://api.kibo.to/v1";
328
560
  declare const DEFAULT_MAX_RETRIES = 3;
329
561
  declare const DEFAULT_TIMEOUT_MS = 30000;
330
- declare const SDK_VERSION = "0.1.0";
562
+ declare const SDK_VERSION = "0.2.0";
331
563
  type HttpMethod = 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
332
564
  interface InternalRequestConfig {
333
565
  method: HttpMethod;
334
566
  path: string;
335
567
  query?: URLSearchParams;
336
568
  body?: unknown;
569
+ rawBody?: BodyInit;
570
+ duplex?: 'half';
571
+ accept?: string;
572
+ successStatuses?: readonly number[];
573
+ nonReplayable?: boolean;
574
+ disableIdempotency?: boolean;
337
575
  opts?: RequestOptions;
338
576
  /**
339
577
  * When true, HTTP 408 `wait_timeout` responses are NOT retried by the low-level transport
@@ -353,7 +591,10 @@ declare class HttpClient {
353
591
  private readonly defaultHeaders;
354
592
  constructor(options?: KibotosClientOptions);
355
593
  buildUrl(path: string, query?: URLSearchParams): string;
594
+ buildHeaders(overrides?: Record<string, string>): Headers;
356
595
  request<T>(config: InternalRequestConfig): Promise<T>;
596
+ requestResponse(config: InternalRequestConfig): Promise<Response>;
597
+ private perform;
357
598
  private shouldRetryAPIError;
358
599
  }
359
600
 
@@ -460,6 +701,67 @@ declare class VolumesResource {
460
701
  wait(id: string, params: WaitVolumeParams, opts?: RequestOptions): Promise<Volume>;
461
702
  }
462
703
 
704
+ declare const WorkspaceChannel: {
705
+ readonly stdin: 0;
706
+ readonly stdout: 1;
707
+ readonly stderr: 2;
708
+ readonly pty: 3;
709
+ readonly tunnel: 4;
710
+ };
711
+ type WorkspaceChannel = (typeof WorkspaceChannel)[keyof typeof WorkspaceChannel];
712
+ interface WorkspaceBinaryFrame {
713
+ stream_id: number;
714
+ channel: WorkspaceChannel;
715
+ payload: Uint8Array;
716
+ }
717
+ declare function encodeBinaryFrame(streamId: number, channel: WorkspaceChannel, payload: Uint8Array): Uint8Array<ArrayBuffer>;
718
+ declare function decodeBinaryFrame(input: ArrayBuffer | ArrayBufferView): WorkspaceBinaryFrame;
719
+ type WorkspaceStreamKind = 'process' | 'fs.watch' | 'tunnel';
720
+ type WorkspaceControlType = 'open' | 'opened' | 'resize' | 'signal' | 'close_stdin' | 'close' | 'exited' | 'fs.event' | 'heartbeat' | 'closed' | 'error' | 'ping' | 'pong';
721
+ interface WorkspaceControlFrame {
722
+ type: WorkspaceControlType;
723
+ stream_id?: number;
724
+ kind?: WorkspaceStreamKind;
725
+ [key: string]: unknown;
726
+ }
727
+ type WorkspaceFrame = {
728
+ type: 'control';
729
+ frame: WorkspaceControlFrame;
730
+ } | {
731
+ type: 'binary';
732
+ frame: WorkspaceBinaryFrame;
733
+ };
734
+ declare function decodeWorkspaceFrame(data: string | ArrayBuffer | ArrayBufferView): WorkspaceFrame;
735
+ type TunnelTarget = {
736
+ port: number;
737
+ family?: 'ipv4' | 'ipv6';
738
+ unix_path?: never;
739
+ } | {
740
+ unix_path: string;
741
+ port?: never;
742
+ family?: never;
743
+ };
744
+ interface WebSocketConnectOptions {
745
+ protocols?: string | string[];
746
+ headers?: Record<string, string>;
747
+ /** Factory for runtimes whose global WebSocket cannot set handshake headers. */
748
+ factory?: (url: string, options: WebSocketHandshake) => WebSocket;
749
+ }
750
+ interface WebSocketHandshake {
751
+ protocols?: string | string[];
752
+ headers: Record<string, string>;
753
+ }
754
+ declare class WorkspaceSocket {
755
+ readonly socket: WebSocket;
756
+ constructor(socket: WebSocket);
757
+ /** Subscribe to decoded frames. Returns an unsubscribe function. */
758
+ onFrame(listener: (frame: WorkspaceFrame) => void): () => void;
759
+ sendControl(frame: WorkspaceControlFrame): void;
760
+ open(streamId: number, kind: WorkspaceStreamKind, params?: Record<string, unknown>): void;
761
+ sendBinary(streamId: number, channel: WorkspaceChannel, payload: Uint8Array): void;
762
+ close(code?: number, reason?: string): void;
763
+ }
764
+
463
765
  declare class WorkspacesResource {
464
766
  private readonly http;
465
767
  constructor(http: HttpClient);
@@ -483,7 +785,7 @@ declare class WorkspacesResource {
483
785
  */
484
786
  get(id: string, opts?: RequestOptions): Promise<Workspace>;
485
787
  /**
486
- * Updates workspace metadata (`name` and/or `labels`).
788
+ * Updates workspace metadata and resizes eligible stopped or failed workspaces.
487
789
  * `PATCH /v1/workspaces/{id}`
488
790
  */
489
791
  update(id: string, body: UpdateWorkspaceRequest, opts?: RequestOptions): Promise<Workspace>;
@@ -508,10 +810,50 @@ declare class WorkspacesResource {
508
810
  */
509
811
  setTimeout(id: string, body: SetWorkspaceTimeoutRequest, opts?: RequestOptions): Promise<Workspace>;
510
812
  /**
511
- * Sets the network mode for a workspace.
813
+ * Removes the auto-timeout policy so the workspace does not expire automatically.
814
+ * `POST /v1/workspaces/{id}/timeout` with `{ seconds: 0 }`.
815
+ */
816
+ clearTimeout(id: string, opts?: RequestOptions): Promise<Workspace>;
817
+ /**
818
+ * Replaces the outbound network policy for a workspace.
512
819
  * `PUT /v1/workspaces/{id}/network`
513
820
  */
514
821
  setNetwork(id: string, body: SetWorkspaceNetworkRequest, opts?: RequestOptions): Promise<Workspace>;
822
+ setVolumes(id: string, body: SetWorkspaceVolumesRequest, opts?: RequestOptions): Promise<Workspace>;
823
+ setPacks(id: string, body: SetWorkspacePacksRequest, opts?: RequestOptions): Promise<Workspace>;
824
+ getMetrics(id: string, params?: WorkspaceMetricsParams, opts?: RequestOptions): Promise<WorkspaceMetrics>;
825
+ exec(id: string, body: ExecRequest, opts?: RequestOptions): Promise<ExecResponse>;
826
+ execStream(id: string, body: ExecRequest, opts?: RequestOptions): AsyncGenerator<ExecEvent>;
827
+ listFiles(id: string, path: string, opts?: ListFilesOptions): Promise<FileList>;
828
+ statFile(id: string, path: string, opts?: FileOptions): Promise<FileEntry>;
829
+ readFile(id: string, path: string, opts?: ReadFileOptions & {
830
+ as?: 'response';
831
+ }): Promise<Response>;
832
+ readFile(id: string, path: string, opts: ReadFileOptions & {
833
+ as: 'bytes';
834
+ }): Promise<Uint8Array>;
835
+ readFile(id: string, path: string, opts: ReadFileOptions & {
836
+ as: 'stream';
837
+ }): Promise<ReadableStream<Uint8Array> | null>;
838
+ readFile(id: string, path: string, opts: ReadFileOptions): Promise<Response | Uint8Array | ReadableStream<Uint8Array> | null>;
839
+ writeFile(id: string, path: string, content: FileContent, opts?: WriteFileOptions): Promise<FileWriteResult>;
840
+ makeDir(id: string, body: MakeDirectoryRequest, opts?: RequestOptions): Promise<FileEntry>;
841
+ moveFile(id: string, body: MoveFileRequest, opts?: RequestOptions): Promise<FileEntry>;
842
+ deleteFile(id: string, path: string, opts?: FileOptions): Promise<void>;
843
+ wsUrl(id: string): string;
844
+ tunnelWSUrl(id: string, target: TunnelTarget): string;
845
+ desktopVNCUrl(id: string): string;
846
+ proxyUrl(id: string, port: number, path?: string, query?: URLSearchParams): string;
847
+ proxyWSUrl(id: string, port: number, path?: string, query?: URLSearchParams): string;
848
+ /** Headers for a WebSocket upgrade or an authenticated proxy request. */
849
+ wsHeaders(overrides?: Record<string, string>): Headers;
850
+ connectWS(id: string, opts?: WebSocketConnectOptions): WorkspaceSocket;
851
+ connectTunnel(id: string, target: TunnelTarget, opts?: WebSocketConnectOptions): WebSocket;
852
+ connectDesktop(id: string, opts?: WebSocketConnectOptions): WebSocket;
853
+ connectProxy(id: string, port: number, opts?: WebSocketConnectOptions & {
854
+ path?: string;
855
+ query?: URLSearchParams;
856
+ }): WebSocket;
515
857
  /**
516
858
  * Attaches a volume to a workspace.
517
859
  * `PUT /v1/workspaces/{id}/volume`
@@ -544,6 +886,36 @@ declare class ZonesResource {
544
886
  iterate(params?: ListZonesParams, opts?: RequestOptions): AsyncIterable<Zone>;
545
887
  }
546
888
 
889
+ declare class EgressesResource {
890
+ private readonly http;
891
+ constructor(http: HttpClient);
892
+ create(body: CreateEgressRequest, opts?: RequestOptions): Promise<Egress>;
893
+ list(params?: ListEgressesParams, opts?: RequestOptions): Promise<MultiZonePage<Egress>>;
894
+ get(id: string, opts?: RequestOptions): Promise<Egress>;
895
+ replace(id: string, body: ReplaceEgressRequest, opts?: RequestOptions): Promise<Egress>;
896
+ update(id: string, body: UpdateEgressRequest, opts?: RequestOptions): Promise<Egress>;
897
+ delete(id: string, opts?: RequestOptions): Promise<void>;
898
+ }
899
+
900
+ declare class PacksResource {
901
+ private readonly http;
902
+ constructor(http: HttpClient);
903
+ list(params?: ListPacksParams, opts?: RequestOptions): Promise<MultiZonePage<Pack>>;
904
+ get(id: string, opts?: RequestOptions): Promise<Pack>;
905
+ getRevision(id: string, revisionId: string, opts?: RequestOptions): Promise<PackRevision>;
906
+ }
907
+
908
+ declare class ResolversResource {
909
+ private readonly http;
910
+ constructor(http: HttpClient);
911
+ create(body: CreateResolverRequest, opts?: RequestOptions): Promise<Resolver>;
912
+ list(params?: ListResolversParams, opts?: RequestOptions): Promise<MultiZonePage<Resolver>>;
913
+ get(id: string, opts?: RequestOptions): Promise<Resolver>;
914
+ replace(id: string, body: ReplaceResolverRequest, opts?: RequestOptions): Promise<Resolver>;
915
+ update(id: string, body: UpdateResolverRequest, opts?: RequestOptions): Promise<Resolver>;
916
+ delete(id: string, opts?: RequestOptions): Promise<void>;
917
+ }
918
+
547
919
  /**
548
920
  * Official Kibotos v1 API client.
549
921
  *
@@ -562,6 +934,9 @@ declare class Kibotos {
562
934
  readonly workspaces: WorkspacesResource;
563
935
  readonly volumes: VolumesResource;
564
936
  readonly exposures: ExposuresResource;
937
+ readonly egresses: EgressesResource;
938
+ readonly packs: PacksResource;
939
+ readonly resolvers: ResolversResource;
565
940
  private readonly http;
566
941
  constructor(options?: KibotosClientOptions);
567
942
  /** Normalized base URL (always ending in `/v1`). */
@@ -647,4 +1022,4 @@ declare class RateLimitError extends KibotosAPIError {
647
1022
  });
648
1023
  }
649
1024
 
650
- export { APIConnectionError, type APIErrorBody, type AttachVolumeRequest, AuthenticationError, ConflictError, type CreateExposureRequest, type CreateVolumeRequest, type CreateWorkspaceRequest, DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, type ErrorEnvelope, type Exposure, type ExposureStatus, ExposuresResource, type Failure, Kibotos, KibotosAPIError, type KibotosAPIErrorInit, type KibotosClientOptions, KibotosError, type ListExposuresParams, type ListTemplateRevisionsParams, type ListTemplatesParams, type ListVolumesParams, type ListWorkspacesParams, type ListZonesParams, type MultiZonePage, type NetworkMode, NotFoundError, type Page, type PaginationParams, PermissionDeniedError, RateLimitError, type RequestOptions, type ResizeVolumeRequest, SDK_VERSION, type SetWorkspaceNetworkRequest, type SetWorkspaceTimeoutRequest, type StartWorkspaceRequest, type StopWorkspaceRequest, type Template, type TemplateLatestRevision, type TemplateOwner, type TemplateRevision, TemplatesResource, type TimeoutAction, UnexpectedStatusError, type UpdateVolumeRequest, type UpdateWorkspaceRequest, type Volume, type VolumeStatus, VolumesResource, WaitTimeoutError, type WaitVolumeParams, type WaitWorkspaceParams, type Workspace, type WorkspaceNetwork, type WorkspaceNetworkInput, type WorkspaceResources, type WorkspaceResourcesInput, type WorkspaceStatus, type WorkspaceTemplateInput, type WorkspaceTemplateRef, type WorkspaceTimeout, type WorkspaceTimeoutInput, type WorkspaceVolumeAttachment, type WorkspaceVolumeAttachmentInput, WorkspacesResource, type Zone, type ZoneStatus, ZonesResource };
1025
+ export { APIConnectionError, type APIErrorBody, type AttachVolumeRequest, AuthenticationError, ConflictError, type CreateEgressRequest, type CreateExposureRequest, type CreateResolverRequest, type CreateVolumeRequest, type CreateWorkspaceRequest, DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, type Egress, type EgressSocks5, type EgressSocks5Input, type EgressTLS, EgressesResource, type ErrorEnvelope, type ExecEvent, type ExecRequest, type ExecResponse, type Exposure, type ExposureStatus, ExposuresResource, type Failure, type FileContent, type FileEntry, type FileList, type FileOptions, type FileWriteResult, Kibotos, KibotosAPIError, type KibotosAPIErrorInit, type KibotosClientOptions, KibotosError, type ListEgressesParams, type ListExposuresParams, type ListFilesOptions, type ListPacksParams, type ListResolversParams, type ListTemplateRevisionsParams, type ListTemplatesParams, type ListVolumesParams, type ListWorkspacesParams, type ListZonesParams, type MakeDirectoryRequest, type MoveFileRequest, type MultiZonePage, type NetworkEgressRule, type NetworkMode, type NetworkResolverPath, type NetworkResolverRule, NotFoundError, type Pack, type PackRevision, PacksResource, type Page, type PaginationParams, PermissionDeniedError, RateLimitError, type ReadFileOptions, type ReplaceEgressRequest, type ReplaceResolverRequest, type RequestOptions, type ResizeVolumeRequest, type Resolver, type ResolverAddress, type ResolverHTTPS, ResolversResource, SDK_VERSION, type SetWorkspaceNetworkRequest, type SetWorkspacePacksRequest, type SetWorkspaceTimeoutRequest, type SetWorkspaceVolumesRequest, type StartWorkspaceRequest, type StopWorkspaceRequest, type Template, type TemplateLatestRevision, type TemplateOwner, type TemplateRevision, TemplatesResource, type TimeoutAction, type TunnelTarget, UnexpectedStatusError, type UpdateEgressRequest, type UpdateResolverRequest, type UpdateVolumeRequest, type UpdateWorkspaceRequest, type Volume, type VolumeStatus, VolumesResource, WaitTimeoutError, type WaitVolumeParams, type WaitWorkspaceParams, type WebSocketConnectOptions, type WebSocketHandshake, type Workspace, type WorkspaceBinaryFrame, WorkspaceChannel, type WorkspaceControlFrame, type WorkspaceControlType, type WorkspaceFrame, type WorkspaceGuestMetricsPoint, type WorkspaceHostMetricsPoint, type WorkspaceMetrics, type WorkspaceMetricsParams, type WorkspaceNetwork, type WorkspaceNetworkInput, type WorkspacePack, type WorkspaceResources, type WorkspaceResourcesInput, WorkspaceSocket, type WorkspaceStatus, type WorkspaceStreamKind, type WorkspaceTemplateInput, type WorkspaceTemplateRef, type WorkspaceTimeout, type WorkspaceTimeoutInput, type WorkspaceVolumeAttachment, type WorkspaceVolumeAttachmentInput, WorkspacesResource, type WriteFileOptions, type Zone, type ZoneStatus, ZonesResource, decodeBinaryFrame, decodeWorkspaceFrame, encodeBinaryFrame };