@phpsandbox/sdk 0.1.15 → 0.1.16

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -52,16 +52,25 @@ export type NotebookInitResponse = {
52
52
  provisioned: boolean;
53
53
  provisioningAction: NotebookProvisioningAction | null;
54
54
  };
55
- export type NotebookInitProgressKind = 'phase' | 'log' | 'heartbeat';
56
- export interface NotebookInitProgress {
55
+ export interface NotebookDownloadProgress {
56
+ totalBytes: number;
57
+ downloadedBytes: number;
58
+ }
59
+ export interface NotebookInitProgressMessage {
57
60
  message: string;
58
61
  details?: string;
59
- kind?: NotebookInitProgressKind;
60
62
  step?: string;
61
63
  line?: string;
62
64
  chunk?: string;
63
65
  command?: string;
64
66
  }
67
+ export type NotebookInitProgress = NotebookInitProgressMessage & ({
68
+ phase: 'downloading';
69
+ download: NotebookDownloadProgress;
70
+ } | {
71
+ phase: 'waiting' | 'preparing' | 'extracting' | 'provisioning' | 'starting';
72
+ download?: never;
73
+ });
65
74
  export type NotebookInitErrorCode = 'GitHubImportCredentialMissing' | 'NotebookDiskQuotaExceeded' | 'NotebookNotFound' | 'NotebookSetupJsonInvalid' | 'NotebookBackupRestoreFailed';
66
75
  export interface NotebookInitErrorData {
67
76
  errorCode?: NotebookInitErrorCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phpsandbox/sdk",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "The TypeScript SDK for PHPSandbox cloud development environments",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",