ppio-sandbox 2.1.0 → 2.1.1-a4

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/desktop.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Sandbox
3
- } from "./chunk-NRVME35H.mjs";
3
+ } from "./chunk-PYNTCKMS.mjs";
4
4
  import {
5
5
  ALL_TRAFFIC,
6
6
  ApiClient,
@@ -48,7 +48,7 @@ import {
48
48
  waitForProcess,
49
49
  waitForTimeout,
50
50
  waitForURL
51
- } from "./chunk-GFQFOIS4.mjs";
51
+ } from "./chunk-6PRE7JOS.mjs";
52
52
  export {
53
53
  ALL_TRAFFIC,
54
54
  ApiClient,
@@ -1581,6 +1581,9 @@ interface components {
1581
1581
  step?: string;
1582
1582
  };
1583
1583
  ConnectSandbox: {
1584
+ allowPublicTraffic?: boolean;
1585
+ network?: components["schemas"]["SandboxNetworkConfig"];
1586
+ secure?: boolean;
1584
1587
  timeout: number;
1585
1588
  };
1586
1589
  CPUCount: number;
@@ -1819,7 +1822,7 @@ interface components {
1819
1822
  maskRequestHost?: string;
1820
1823
  };
1821
1824
  SandboxOnTimeout: "kill" | "pause";
1822
- SandboxState: "running" | "paused";
1825
+ SandboxState: "running" | "paused" | "cloning" | "commiting" | "snapshotting";
1823
1826
  SandboxVolumeMount: {
1824
1827
  name: string;
1825
1828
  path: string;
@@ -4446,7 +4449,7 @@ type SandboxConnectOpts = ConnectionOpts & {
4446
4449
  allowPublicTraffic?: boolean;
4447
4450
  network?: SandboxNetworkOpts;
4448
4451
  };
4449
- type SandboxState = 'running' | 'paused';
4452
+ type SandboxState = 'running' | 'paused' | 'cloning' | 'commiting' | 'snapshotting';
4450
4453
  interface SandboxListOpts extends SandboxApiOpts {
4451
4454
  query?: {
4452
4455
  metadata?: Record<string, string>;
@@ -4556,26 +4559,14 @@ declare class SandboxApi {
4556
4559
  sandboxDomain: any;
4557
4560
  envdVersion: any;
4558
4561
  envdAccessToken: any;
4559
- trafficAccessToken: undefined;
4560
- } | {
4561
- sandboxId: string;
4562
- sandboxDomain: string | undefined;
4563
- envdVersion: string;
4564
- envdAccessToken: string | undefined;
4565
- trafficAccessToken: string | undefined;
4562
+ trafficAccessToken: any;
4566
4563
  }>;
4567
4564
  protected static connectSandbox(sandboxId: string, opts?: SandboxConnectOpts): Promise<{
4568
4565
  sandboxId: any;
4569
4566
  sandboxDomain: any;
4570
4567
  envdVersion: any;
4571
4568
  envdAccessToken: any;
4572
- trafficAccessToken: undefined;
4573
- } | {
4574
- sandboxId: string;
4575
- sandboxDomain: string | undefined;
4576
- envdVersion: string;
4577
- envdAccessToken: string | undefined;
4578
- trafficAccessToken: string | undefined;
4569
+ trafficAccessToken: any;
4579
4570
  }>;
4580
4571
  static getQuota(opts?: SandboxQuotaOpts): Promise<SandboxQuota>;
4581
4572
  static getEvents(opts?: SandboxEventsOpts): Promise<SandboxEventsResult>;
@@ -1581,6 +1581,9 @@ interface components {
1581
1581
  step?: string;
1582
1582
  };
1583
1583
  ConnectSandbox: {
1584
+ allowPublicTraffic?: boolean;
1585
+ network?: components["schemas"]["SandboxNetworkConfig"];
1586
+ secure?: boolean;
1584
1587
  timeout: number;
1585
1588
  };
1586
1589
  CPUCount: number;
@@ -1819,7 +1822,7 @@ interface components {
1819
1822
  maskRequestHost?: string;
1820
1823
  };
1821
1824
  SandboxOnTimeout: "kill" | "pause";
1822
- SandboxState: "running" | "paused";
1825
+ SandboxState: "running" | "paused" | "cloning" | "commiting" | "snapshotting";
1823
1826
  SandboxVolumeMount: {
1824
1827
  name: string;
1825
1828
  path: string;
@@ -4446,7 +4449,7 @@ type SandboxConnectOpts = ConnectionOpts & {
4446
4449
  allowPublicTraffic?: boolean;
4447
4450
  network?: SandboxNetworkOpts;
4448
4451
  };
4449
- type SandboxState = 'running' | 'paused';
4452
+ type SandboxState = 'running' | 'paused' | 'cloning' | 'commiting' | 'snapshotting';
4450
4453
  interface SandboxListOpts extends SandboxApiOpts {
4451
4454
  query?: {
4452
4455
  metadata?: Record<string, string>;
@@ -4556,26 +4559,14 @@ declare class SandboxApi {
4556
4559
  sandboxDomain: any;
4557
4560
  envdVersion: any;
4558
4561
  envdAccessToken: any;
4559
- trafficAccessToken: undefined;
4560
- } | {
4561
- sandboxId: string;
4562
- sandboxDomain: string | undefined;
4563
- envdVersion: string;
4564
- envdAccessToken: string | undefined;
4565
- trafficAccessToken: string | undefined;
4562
+ trafficAccessToken: any;
4566
4563
  }>;
4567
4564
  protected static connectSandbox(sandboxId: string, opts?: SandboxConnectOpts): Promise<{
4568
4565
  sandboxId: any;
4569
4566
  sandboxDomain: any;
4570
4567
  envdVersion: any;
4571
4568
  envdAccessToken: any;
4572
- trafficAccessToken: undefined;
4573
- } | {
4574
- sandboxId: string;
4575
- sandboxDomain: string | undefined;
4576
- envdVersion: string;
4577
- envdAccessToken: string | undefined;
4578
- trafficAccessToken: string | undefined;
4569
+ trafficAccessToken: any;
4579
4570
  }>;
4580
4571
  static getQuota(opts?: SandboxQuotaOpts): Promise<SandboxQuota>;
4581
4572
  static getEvents(opts?: SandboxEventsOpts): Promise<SandboxEventsResult>;
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Sandbox } from './index-CRwaZUdl.mjs';
2
- export { ah as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b4 as BuildInfo, b5 as BuildOptions, b6 as BuildStatusReason, ak as CommandConnectOpts, t as CommandExitError, y as CommandHandle, aj as CommandRequestOpts, u as CommandResult, al as CommandStartOpts, am as Commands, C as ConnectionConfig, a as ConnectionOpts, b7 as CopyItem, E as EntryInfo, F as FileNotFoundError, l as FileType, i as FileUploadError, m as Filesystem, r as FilesystemEvent, q as FilesystemEventType, o as FilesystemReadOpts, n as FilesystemWriteOpts, b8 as GetBuildStatusOptions, ao as Git, au as GitAddOpts, G as GitAuthError, aB as GitBranches, aq as GitCloneOpts, at as GitCommitOpts, az as GitConfigOpts, aA as GitConfigScope, ay as GitDangerouslyAuthenticateOpts, av as GitDeleteBranchOpts, aC as GitFileStatus, ar as GitInitOpts, ax as GitPullOpts, aw as GitPushOpts, as as GitRemoteAddOpts, ap as GitRequestOpts, aD as GitStatus, d as GitUpstreamError, aV as ImageConfig, I as InvalidArgumentError, aQ as LogEntry, aS as LogEntryEnd, aT as LogEntryLevel, aR as LogEntryStart, L as Logger, ag as McpServer, b9 as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, ai as ProcessInfo, an as Pty, x as PtyOutput, R as RateLimitError, aK as ReadyCmd, aW as RegistryCredentials, J as SandboxApiOpts, M as SandboxBetaCreateOpts, Q as SandboxCloneOpts, X as SandboxCloneResult, Y as SandboxCommitOpts, Z as SandboxCommitResult, K as SandboxConnectOpts, f as SandboxError, ad as SandboxEventItem, ae as SandboxEventsOpts, af as SandboxEventsResult, z as SandboxInfo, a5 as SandboxInfoLifecycle, a4 as SandboxLifecycle, a0 as SandboxListOpts, D as SandboxMetrics, O as SandboxMetricsOpts, a2 as SandboxNetworkOpts, a3 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, H as SandboxOpts, a1 as SandboxPaginator, a9 as SandboxQuota, aa as SandboxQuotaLimit, ac as SandboxQuotaOpts, ab as SandboxQuotaUsage, _ as SandboxResetOpts, $ as SandboxState, aH as Secret, aI as SecretBinding, j as SecretError, aJ as SecretWriteParams, a6 as SnapshotInfo, a7 as SnapshotListOpts, a8 as SnapshotPaginator, w as Stderr, v as Stdout, b3 as Template, b0 as TemplateApi, b2 as TemplateBase, bb as TemplateBuildStatus, bc as TemplateBuildStatusResponse, ba as TemplateBuilder, bd as TemplateClass, be as TemplateDeleteOpts, T as TemplateError, bf as TemplateInfo, bh as TemplateListOptions, bg as TemplateListOpts, bi as TemplateListResponse, b1 as TemplatePaginator, bj as TemplateTag, bk as TemplateTagInfo, bl as TemplateType, h as TimeoutError, U as Username, aE as Volume, aG as VolumeAndToken, V as VolumeError, aF as VolumeInfo, s as WatchHandle, W as WriteInfo, aX as clearImageConfigCache, c as components, aU as defaultBuildLogger, aY as effectiveStartCmd, aZ as fetchImageConfig, k as getSignature, a_ as parseImageRef, p as paths, a$ as unsupportedBase, aO as waitForFile, aL as waitForPort, aN as waitForProcess, aP as waitForTimeout, aM as waitForURL } from './index-CRwaZUdl.mjs';
1
+ import { S as Sandbox } from './index-BmB5olHi.mjs';
2
+ export { ah as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b4 as BuildInfo, b5 as BuildOptions, b6 as BuildStatusReason, ak as CommandConnectOpts, t as CommandExitError, y as CommandHandle, aj as CommandRequestOpts, u as CommandResult, al as CommandStartOpts, am as Commands, C as ConnectionConfig, a as ConnectionOpts, b7 as CopyItem, E as EntryInfo, F as FileNotFoundError, l as FileType, i as FileUploadError, m as Filesystem, r as FilesystemEvent, q as FilesystemEventType, o as FilesystemReadOpts, n as FilesystemWriteOpts, b8 as GetBuildStatusOptions, ao as Git, au as GitAddOpts, G as GitAuthError, aB as GitBranches, aq as GitCloneOpts, at as GitCommitOpts, az as GitConfigOpts, aA as GitConfigScope, ay as GitDangerouslyAuthenticateOpts, av as GitDeleteBranchOpts, aC as GitFileStatus, ar as GitInitOpts, ax as GitPullOpts, aw as GitPushOpts, as as GitRemoteAddOpts, ap as GitRequestOpts, aD as GitStatus, d as GitUpstreamError, aV as ImageConfig, I as InvalidArgumentError, aQ as LogEntry, aS as LogEntryEnd, aT as LogEntryLevel, aR as LogEntryStart, L as Logger, ag as McpServer, b9 as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, ai as ProcessInfo, an as Pty, x as PtyOutput, R as RateLimitError, aK as ReadyCmd, aW as RegistryCredentials, J as SandboxApiOpts, M as SandboxBetaCreateOpts, Q as SandboxCloneOpts, X as SandboxCloneResult, Y as SandboxCommitOpts, Z as SandboxCommitResult, K as SandboxConnectOpts, f as SandboxError, ad as SandboxEventItem, ae as SandboxEventsOpts, af as SandboxEventsResult, z as SandboxInfo, a5 as SandboxInfoLifecycle, a4 as SandboxLifecycle, a0 as SandboxListOpts, D as SandboxMetrics, O as SandboxMetricsOpts, a2 as SandboxNetworkOpts, a3 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, H as SandboxOpts, a1 as SandboxPaginator, a9 as SandboxQuota, aa as SandboxQuotaLimit, ac as SandboxQuotaOpts, ab as SandboxQuotaUsage, _ as SandboxResetOpts, $ as SandboxState, aH as Secret, aI as SecretBinding, j as SecretError, aJ as SecretWriteParams, a6 as SnapshotInfo, a7 as SnapshotListOpts, a8 as SnapshotPaginator, w as Stderr, v as Stdout, b3 as Template, b0 as TemplateApi, b2 as TemplateBase, bb as TemplateBuildStatus, bc as TemplateBuildStatusResponse, ba as TemplateBuilder, bd as TemplateClass, be as TemplateDeleteOpts, T as TemplateError, bf as TemplateInfo, bh as TemplateListOptions, bg as TemplateListOpts, bi as TemplateListResponse, b1 as TemplatePaginator, bj as TemplateTag, bk as TemplateTagInfo, bl as TemplateType, h as TimeoutError, U as Username, aE as Volume, aG as VolumeAndToken, V as VolumeError, aF as VolumeInfo, s as WatchHandle, W as WriteInfo, aX as clearImageConfigCache, c as components, aU as defaultBuildLogger, aY as effectiveStartCmd, aZ as fetchImageConfig, k as getSignature, a_ as parseImageRef, p as paths, a$ as unsupportedBase, aO as waitForFile, aL as waitForPort, aN as waitForProcess, aP as waitForTimeout, aM as waitForURL } from './index-BmB5olHi.mjs';
3
3
  import 'openapi-fetch';
4
4
  import 'node:fs';
5
5
  import '@connectrpc/connect';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Sandbox } from './index-CRwaZUdl.js';
2
- export { ah as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b4 as BuildInfo, b5 as BuildOptions, b6 as BuildStatusReason, ak as CommandConnectOpts, t as CommandExitError, y as CommandHandle, aj as CommandRequestOpts, u as CommandResult, al as CommandStartOpts, am as Commands, C as ConnectionConfig, a as ConnectionOpts, b7 as CopyItem, E as EntryInfo, F as FileNotFoundError, l as FileType, i as FileUploadError, m as Filesystem, r as FilesystemEvent, q as FilesystemEventType, o as FilesystemReadOpts, n as FilesystemWriteOpts, b8 as GetBuildStatusOptions, ao as Git, au as GitAddOpts, G as GitAuthError, aB as GitBranches, aq as GitCloneOpts, at as GitCommitOpts, az as GitConfigOpts, aA as GitConfigScope, ay as GitDangerouslyAuthenticateOpts, av as GitDeleteBranchOpts, aC as GitFileStatus, ar as GitInitOpts, ax as GitPullOpts, aw as GitPushOpts, as as GitRemoteAddOpts, ap as GitRequestOpts, aD as GitStatus, d as GitUpstreamError, aV as ImageConfig, I as InvalidArgumentError, aQ as LogEntry, aS as LogEntryEnd, aT as LogEntryLevel, aR as LogEntryStart, L as Logger, ag as McpServer, b9 as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, ai as ProcessInfo, an as Pty, x as PtyOutput, R as RateLimitError, aK as ReadyCmd, aW as RegistryCredentials, J as SandboxApiOpts, M as SandboxBetaCreateOpts, Q as SandboxCloneOpts, X as SandboxCloneResult, Y as SandboxCommitOpts, Z as SandboxCommitResult, K as SandboxConnectOpts, f as SandboxError, ad as SandboxEventItem, ae as SandboxEventsOpts, af as SandboxEventsResult, z as SandboxInfo, a5 as SandboxInfoLifecycle, a4 as SandboxLifecycle, a0 as SandboxListOpts, D as SandboxMetrics, O as SandboxMetricsOpts, a2 as SandboxNetworkOpts, a3 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, H as SandboxOpts, a1 as SandboxPaginator, a9 as SandboxQuota, aa as SandboxQuotaLimit, ac as SandboxQuotaOpts, ab as SandboxQuotaUsage, _ as SandboxResetOpts, $ as SandboxState, aH as Secret, aI as SecretBinding, j as SecretError, aJ as SecretWriteParams, a6 as SnapshotInfo, a7 as SnapshotListOpts, a8 as SnapshotPaginator, w as Stderr, v as Stdout, b3 as Template, b0 as TemplateApi, b2 as TemplateBase, bb as TemplateBuildStatus, bc as TemplateBuildStatusResponse, ba as TemplateBuilder, bd as TemplateClass, be as TemplateDeleteOpts, T as TemplateError, bf as TemplateInfo, bh as TemplateListOptions, bg as TemplateListOpts, bi as TemplateListResponse, b1 as TemplatePaginator, bj as TemplateTag, bk as TemplateTagInfo, bl as TemplateType, h as TimeoutError, U as Username, aE as Volume, aG as VolumeAndToken, V as VolumeError, aF as VolumeInfo, s as WatchHandle, W as WriteInfo, aX as clearImageConfigCache, c as components, aU as defaultBuildLogger, aY as effectiveStartCmd, aZ as fetchImageConfig, k as getSignature, a_ as parseImageRef, p as paths, a$ as unsupportedBase, aO as waitForFile, aL as waitForPort, aN as waitForProcess, aP as waitForTimeout, aM as waitForURL } from './index-CRwaZUdl.js';
1
+ import { S as Sandbox } from './index-BmB5olHi.js';
2
+ export { ah as ALL_TRAFFIC, A as ApiClient, b as AuthenticationError, B as BuildError, b4 as BuildInfo, b5 as BuildOptions, b6 as BuildStatusReason, ak as CommandConnectOpts, t as CommandExitError, y as CommandHandle, aj as CommandRequestOpts, u as CommandResult, al as CommandStartOpts, am as Commands, C as ConnectionConfig, a as ConnectionOpts, b7 as CopyItem, E as EntryInfo, F as FileNotFoundError, l as FileType, i as FileUploadError, m as Filesystem, r as FilesystemEvent, q as FilesystemEventType, o as FilesystemReadOpts, n as FilesystemWriteOpts, b8 as GetBuildStatusOptions, ao as Git, au as GitAddOpts, G as GitAuthError, aB as GitBranches, aq as GitCloneOpts, at as GitCommitOpts, az as GitConfigOpts, aA as GitConfigScope, ay as GitDangerouslyAuthenticateOpts, av as GitDeleteBranchOpts, aC as GitFileStatus, ar as GitInitOpts, ax as GitPullOpts, aw as GitPushOpts, as as GitRemoteAddOpts, ap as GitRequestOpts, aD as GitStatus, d as GitUpstreamError, aV as ImageConfig, I as InvalidArgumentError, aQ as LogEntry, aS as LogEntryEnd, aT as LogEntryLevel, aR as LogEntryStart, L as Logger, ag as McpServer, b9 as McpServerName, N as NotEnoughSpaceError, e as NotFoundError, P as PPIO, ai as ProcessInfo, an as Pty, x as PtyOutput, R as RateLimitError, aK as ReadyCmd, aW as RegistryCredentials, J as SandboxApiOpts, M as SandboxBetaCreateOpts, Q as SandboxCloneOpts, X as SandboxCloneResult, Y as SandboxCommitOpts, Z as SandboxCommitResult, K as SandboxConnectOpts, f as SandboxError, ad as SandboxEventItem, ae as SandboxEventsOpts, af as SandboxEventsResult, z as SandboxInfo, a5 as SandboxInfoLifecycle, a4 as SandboxLifecycle, a0 as SandboxListOpts, D as SandboxMetrics, O as SandboxMetricsOpts, a2 as SandboxNetworkOpts, a3 as SandboxNetworkUpdateOpts, g as SandboxNotFoundError, H as SandboxOpts, a1 as SandboxPaginator, a9 as SandboxQuota, aa as SandboxQuotaLimit, ac as SandboxQuotaOpts, ab as SandboxQuotaUsage, _ as SandboxResetOpts, $ as SandboxState, aH as Secret, aI as SecretBinding, j as SecretError, aJ as SecretWriteParams, a6 as SnapshotInfo, a7 as SnapshotListOpts, a8 as SnapshotPaginator, w as Stderr, v as Stdout, b3 as Template, b0 as TemplateApi, b2 as TemplateBase, bb as TemplateBuildStatus, bc as TemplateBuildStatusResponse, ba as TemplateBuilder, bd as TemplateClass, be as TemplateDeleteOpts, T as TemplateError, bf as TemplateInfo, bh as TemplateListOptions, bg as TemplateListOpts, bi as TemplateListResponse, b1 as TemplatePaginator, bj as TemplateTag, bk as TemplateTagInfo, bl as TemplateType, h as TimeoutError, U as Username, aE as Volume, aG as VolumeAndToken, V as VolumeError, aF as VolumeInfo, s as WatchHandle, W as WriteInfo, aX as clearImageConfigCache, c as components, aU as defaultBuildLogger, aY as effectiveStartCmd, aZ as fetchImageConfig, k as getSignature, a_ as parseImageRef, p as paths, a$ as unsupportedBase, aO as waitForFile, aL as waitForPort, aN as waitForProcess, aP as waitForTimeout, aM as waitForURL } from './index-BmB5olHi.js';
3
3
  import 'openapi-fetch';
4
4
  import 'node:fs';
5
5
  import '@connectrpc/connect';