@phpsandbox/sdk 0.1.9 → 0.1.11

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 (61) hide show
  1. package/README.md +42 -50
  2. package/dist/beacon/index.d.ts +1 -7
  3. package/dist/beacon/index.js +14 -13
  4. package/dist/beacon/navigator.d.ts +8 -36
  5. package/dist/beacon/navigator.js +1 -62
  6. package/dist/browser/phpsandbox-sdk.esm.js +552 -692
  7. package/dist/browser/phpsandbox-sdk.esm.min.js +24 -24
  8. package/dist/browser/phpsandbox-sdk.iife.js +552 -692
  9. package/dist/browser/phpsandbox-sdk.iife.min.js +35 -35
  10. package/dist/composer.d.ts +10 -8
  11. package/dist/composer.js +18 -18
  12. package/dist/errors/index.d.ts +43 -8
  13. package/dist/errors/index.js +120 -14
  14. package/dist/feedback.js +1 -2
  15. package/dist/filesystem.d.ts +0 -17
  16. package/dist/filesystem.js +2 -21
  17. package/dist/git.d.ts +1 -5
  18. package/dist/git.js +6 -8
  19. package/dist/http.d.ts +6 -0
  20. package/dist/http.js +11 -0
  21. package/dist/index.d.ts +54 -144
  22. package/dist/index.js +170 -289
  23. package/dist/integrations.d.ts +0 -2
  24. package/dist/integrations.js +5 -11
  25. package/dist/log.d.ts +0 -2
  26. package/dist/lsp.js +1 -1
  27. package/dist/metrics.d.ts +3 -3
  28. package/dist/ports.d.ts +1 -1
  29. package/dist/publications.d.ts +4 -54
  30. package/dist/publications.js +25 -103
  31. package/dist/runtime/rest.js +35 -18
  32. package/dist/runtime.d.ts +68 -0
  33. package/dist/runtime.js +46 -0
  34. package/dist/sandbox-integrations.d.ts +1 -2
  35. package/dist/sandbox-integrations.js +11 -14
  36. package/dist/schemas/publications.d.ts +0 -6
  37. package/dist/schemas/publications.js +0 -1
  38. package/dist/servers.d.ts +4 -2
  39. package/dist/servers.js +5 -8
  40. package/dist/shell.d.ts +2 -14
  41. package/dist/shell.js +1 -21
  42. package/dist/socket/index.d.ts +6 -7
  43. package/dist/socket/index.js +39 -25
  44. package/dist/types.d.ts +0 -12
  45. package/dist/types.js +1 -15
  46. package/docs/api-summary.md +28 -28
  47. package/docs/cdn-usage.md +43 -55
  48. package/docs/getting-started.md +43 -26
  49. package/examples/README.md +5 -35
  50. package/examples/basic.ts +9 -18
  51. package/examples/get.ts +2 -2
  52. package/examples/git-merge-smoke.ts +2 -3
  53. package/examples/laravel-load-test.ts +31 -36
  54. package/examples/notebook-readonly-smoke.ts +12 -26
  55. package/examples/publication-provider-label.ts +1 -1
  56. package/examples/publish-cloudflare-container.ts +2 -2
  57. package/examples/publish-laravel-cloud.ts +2 -2
  58. package/examples/publish-ssh-agent.ts +2 -2
  59. package/package.json +4 -3
  60. package/dist/container.d.ts +0 -65
  61. package/dist/container.js +0 -30
package/dist/index.d.ts CHANGED
@@ -1,45 +1,43 @@
1
1
  import { Filesystem, FilesystemActions, FilesystemEvents } from './filesystem.js';
2
2
  import Terminals, { TerminalEvents, TerminalActions, type SpawnOptions } from './terminal.js';
3
- import Container, { ContainerActions, ContainerEvents, PortInfo } from './container.js';
4
3
  import Auth, { AuthActions } from './auth.js';
5
4
  import Lsp, { LspActions, LspEvents } from './lsp.js';
6
5
  import Composer, { ComposerActions, ComposerEvents } from './composer.js';
7
- import Logs, { LogActions, LogEvents } from './log.js';
8
- import Metrics from './metrics.js';
9
- import Ports from './ports.js';
6
+ import { LogEvents } from './log.js';
7
+ import Runtime, { type PortInfo, type RuntimeActions, type RuntimeEvents } from './runtime.js';
10
8
  import Repl, { ReplActions, ReplEvents } from './repl.js';
11
9
  import { ShellEvents, ShellActions, type ProcessResult, type ShellProcess } from './shell.js';
12
10
  import Services, { ServiceActions, ServiceEvents } from './services.js';
13
11
  import Config, { ConfigActions } from './config.js';
14
- import { EventDispatcher } from './events/index.js';
15
- import Git, { GitActions, GitCredentials, GitEvents } from './git.js';
12
+ import Git, { GitActions } from './git.js';
16
13
  import { Disposable } from './types.js';
17
- import { NotebookUnavailableError } from './errors/index.js';
18
- import { PublicationApi, NotebookPublicationApi, type PublicationInstance, type PublicationRun, type PublishInput } from './publications.js';
14
+ import { RemoteError } from './errors/index.js';
15
+ import { PublicationApi, PublicationInstance, PublicationRun, type PublishInput } from './publications.js';
19
16
  import { ServerApi } from './servers.js';
20
17
  import { Feedback } from './feedback.js';
21
18
  import { IntegrationApi } from './integrations.js';
22
19
  import { SandboxIntegrationApi } from './sandbox-integrations.js';
23
- export * from './types.js';
24
- export * from './lsp.js';
25
- export * from './filesystem.js';
26
- export * from './container.js';
27
- export * from './log.js';
28
- export * from './metrics.js';
29
- export * from './ports.js';
30
- export * from './runtime-telemetry.js';
31
- export * from './shell.js';
32
- export * from './terminal.js';
33
- export * from './git.js';
34
- export * from './services.js';
35
- export * from './config.js';
36
- export * from './utils/promise.js';
37
- export * from './errors/index.js';
38
- export * from './publications.js';
39
- export * from './servers.js';
40
- export * from './feedback.js';
41
- export * from './integrations.js';
42
- export * from './sandbox-integrations.js';
20
+ export type { Disposable } from './types.js';
21
+ export { LspConnection } from './lsp.js';
22
+ export { FileChangeFilter, FileChangeType, FileType, } from './filesystem.js';
23
+ export type { FileChange, FileContents, FileDeleteOptions, FileDownloadOptions, FileFollowOptions, FileLineRange, FileLineRangeResult, FileListOptions, FileOverwriteOptions, FileResult, FileSearchOptions, FileTailOptions, FileWriteOptions, Filesystem, Stats, TextSearchMatch, TextSearchOptions, TextSearchQuery, TextSearchResult, WatchOptions, } from './filesystem.js';
24
+ export type { PortInfo } from './runtime.js';
25
+ export type { RuntimeLogEntry } from './log.js';
26
+ export type { RuntimeWatchOptions } from './runtime-telemetry.js';
27
+ export type { RuntimeResourceUsage, RuntimeStats } from './runtime.js';
28
+ export type { ProcessOutputChunk, ProcessOutputSource, ProcessResult, ShellProcess } from './shell.js';
29
+ export type { SandboxProcess, SpawnOptions, Task, TerminalOptions } from './terminal.js';
30
+ export type { GitChangedFile, GitCheckoutResult, GitConflict, GitConflictsResult, GitCredentials, GitDiffInput, GitDiffPreview, GitIndexInput, GitLog, GitMergeInput, GitMergeResult, GitProvider, GitRef, GitResolveInput, GitResolveResult, GitRevertInput, GitReview, GitReviewFile, GitReviewFileStatus, GitStatus, GitSyncAuthor, GitSyncDirection, GitSyncExistingTargetInput, GitTarget, GitTargetConfiguration, GitTargetData, GitTargetReference, } from './git.js';
31
+ export { notebookBuiltinServices, notebookKnownServices } from './services.js';
32
+ export type { NotebookBuiltinServiceName, NotebookKnownServiceName, NotebookServiceCommand, NotebookServiceKind, NotebookServiceName, NotebookServiceSource, NotebookServiceState, NotebookServiceStatus, ServiceLogOptions, ServiceLogStreamOptions, } from './services.js';
33
+ export type { ConfigPortMapping, ProjectConfig } from './config.js';
34
+ export { PHPSandboxError, RemoteError, TransportError, } from './errors/index.js';
35
+ export type { RemoteErrorCode, RemoteErrorSource, TransportErrorCode, ValidationErrorDetails, } from './errors/index.js';
36
+ export type { BuiltInPublicationProviderName, CloudflareContainersProviderOptions, LaravelCloudProviderData, LaravelCloudProviderInput, LaravelCloudRegion, PublicationBuildData, PublicationBuildStatus, PublicationData, PublicationEventData, PublicationInstance, PublicationJurisdiction, PublicationLogChunkData, PublicationLogStream, PublicationPlacement, PublicationProtectionData, PublicationProtectionInput, PublicationProtectionMode, PublicationProtectionSessionData, PublicationProvider, PublicationProviderData, PublicationProviderInput, PublicationProviderInputs, PublicationProviderName, PublicationRegion, PublicationReleaseData, PublicationReleaseStatus, PublicationRun, PublicationSize, PublicationStatus, PublishInput, PublishStreamEvent, PublishStreamLog, PublishStreamPhase, PublishStreamResult, PublishStreamSseEvent, SshServerProviderOptions, UpdatePublicationProtectionInput, } from './publications.js';
37
+ export type { CreateServerInput, ServerData, ServerInstance, ServerListOptions, ServerSshOptions } from './servers.js';
38
+ export type { ConfigureFeedbackInput, FeedbackData, FeedbackListOptions, FeedbackSource, FeedbackStatus, FeedbackType, FeedbackWidgetConfig, FeedbackWidgetTarget, SubmitFeedbackInput, UpdateFeedbackInput, } from './feedback.js';
39
+ export type { Integration, IntegrationAuthorization, IntegrationAuthorizationType, IntegrationData, IntegrationProvider, IntegrationReference, LinkIntegrationInput, UpdateIntegrationInput, } from './integrations.js';
40
+ export type { AttachSandboxIntegrationInput, SandboxIntegration, SandboxIntegrationData, SandboxIntegrationEffect, SandboxIntegrationReference, UpdateSandboxIntegrationInput, } from './sandbox-integrations.js';
43
41
  interface Result<TType extends 'success' | 'error' | 'running', TData extends object> {
44
42
  type: TType;
45
43
  message: string;
@@ -66,7 +64,7 @@ export interface NotebookInitProgress {
66
64
  chunk?: string;
67
65
  command?: string;
68
66
  }
69
- export type NotebookInitErrorCode = 'github_import_credential_missing' | 'notebook_disk_quota_exceeded' | 'notebook_not_found' | 'notebook_setup_json_invalid' | 'notebook_backup_restore_failed';
67
+ export type NotebookInitErrorCode = 'GitHubImportCredentialMissing' | 'NotebookDiskQuotaExceeded' | 'NotebookNotFound' | 'NotebookSetupJsonInvalid' | 'NotebookBackupRestoreFailed';
70
68
  export interface NotebookInitErrorData {
71
69
  errorCode?: NotebookInitErrorCode;
72
70
  details?: string;
@@ -82,9 +80,6 @@ export interface NotebookInitErrorData {
82
80
  export type NotebookInitSuccessResult = Result<'success', NotebookInitResponse>;
83
81
  export type NotebookInitFailureResult = Result<'error', NotebookInitErrorData>;
84
82
  export type NotebookInitResult = NotebookInitSuccessResult | NotebookInitFailureResult;
85
- export interface NotebookActions {
86
- 'notebook.update': Action<null>;
87
- }
88
83
  export interface NotebookEvents {
89
84
  'lsp.response': object;
90
85
  'lsp.close': {
@@ -93,26 +88,19 @@ export interface NotebookEvents {
93
88
  };
94
89
  'init.event': NotebookInitProgress;
95
90
  'notebook.initialized': NotebookInitResult;
96
- 'okra.boot_error': NotebookUnavailableError;
91
+ 'okra.boot_error': RemoteError<'NotebookUnavailable'>;
97
92
  }
98
93
  export interface CallOption {
99
94
  responseEvent?: string;
100
95
  timeout?: number;
101
96
  abortSignal?: AbortSignal;
102
97
  }
103
- export interface OkraError {
104
- code: number;
105
- message: string;
106
- }
107
98
  export interface Action<Args = object, Response = void> {
108
99
  args: Args;
109
100
  response: Response;
110
101
  }
111
- export type Events = TerminalEvents & ContainerEvents & LspEvents & ComposerEvents & LogEvents & ServiceEvents & NotebookEvents & ReplEvents & ShellEvents & FilesystemEvents & GitEvents;
112
- interface SystemActions {
113
- ping: Action<object, 'pong'>;
114
- }
115
- export type Invokable = SystemActions & TerminalActions & ContainerActions & FilesystemActions & AuthActions & LspActions & ComposerActions & LogActions & ServiceActions & ConfigActions & NotebookActions & ReplActions & ShellActions & GitActions;
102
+ export type Events = TerminalEvents & RuntimeEvents & LspEvents & ComposerEvents & LogEvents & ServiceEvents & NotebookEvents & ReplEvents & ShellEvents & FilesystemEvents;
103
+ export type Invokable = TerminalActions & RuntimeActions & FilesystemActions & AuthActions & LspActions & ComposerActions & ServiceActions & ConfigActions & ReplActions & ShellActions & GitActions;
116
104
  export interface CreateNotebookImportAuthInput {
117
105
  accessToken: string;
118
106
  }
@@ -132,21 +120,6 @@ export interface CreateNotebookInput extends NotebookLifecycleInput {
132
120
  composerCredentials?: ComposerCredentialInput[];
133
121
  }
134
122
  export type ForkNotebookInput = NotebookLifecycleInput;
135
- export interface NetworkMatchCondition {
136
- path?: string;
137
- method?: string;
138
- }
139
- export interface NetworkTransformation {
140
- match?: NetworkMatchCondition;
141
- header?: Record<string, string>;
142
- }
143
- export type NetworkPolicyAllow = Record<string, NetworkTransformation[]>;
144
- export type NetworkPolicy = 'allow' | 'deny' | {
145
- allow: NetworkPolicyAllow;
146
- };
147
- export interface UpdateNotebookInput extends Omit<CreateNotebookInput, 'persistent'> {
148
- network?: NetworkPolicy | null;
149
- }
150
123
  export interface NotebookPolicyData {
151
124
  autoDeleteWhenStale: boolean;
152
125
  staleAfterMinutes: number | null;
@@ -278,56 +251,32 @@ export interface PaginatedApiResponse<TData> {
278
251
  export interface NotebookMailListOptions {
279
252
  page?: number;
280
253
  }
281
- export declare class NotebookInitError extends Error {
282
- readonly message: string;
283
- readonly data: NotebookInitErrorData;
284
- constructor(message: string, data?: NotebookInitErrorData);
285
- }
286
- export declare class ApiError extends Error {
287
- readonly response: Response;
288
- readonly body: string;
289
- readonly status: number;
290
- readonly data: unknown;
291
- readonly apiMessage?: string;
292
- constructor(response: Response, body: string);
293
- }
294
- export declare class NotebookApi {
254
+ declare class NotebookApi {
295
255
  private readonly client;
296
- readonly secrets: NotebookSecretApi;
297
- readonly composerCredentials: NotebookComposerCredentialApi;
298
- readonly preview: NotebookPreviewApi;
299
- readonly mail: NotebookMailApi;
300
- readonly publication: NotebookPublicationApi;
301
256
  constructor(client: Client);
302
- create(template: string, input?: Partial<CreateNotebookInput>, init?: boolean): Promise<NotebookInstance>;
257
+ create(template: string, input?: Partial<CreateNotebookInput>): Promise<NotebookInstance>;
303
258
  get(id: string): Promise<NotebookInstance>;
304
- update(id: string, input?: Partial<UpdateNotebookInput>): Promise<NotebookInstance>;
305
- destroy(id: string): Promise<void>;
306
- fork(id: string, input?: Partial<ForkNotebookInput>): Promise<NotebookInstance>;
307
- gitCredentials(id: string): Promise<GitCredentials>;
308
- openFromData(data: NotebookData): Promise<NotebookInstance>;
309
- private init;
259
+ open(data: NotebookData): NotebookInstance;
310
260
  }
311
261
  export interface PHPSandboxClientOptions {
312
262
  debug?: boolean;
313
- startClosed?: boolean;
314
263
  fetch?: typeof globalThis.fetch;
315
264
  webSocket?: unknown;
316
265
  runtimeUrlProvider?: (notebookId: string) => Promise<string>;
317
266
  }
318
267
  export type RuntimeTransport = 'realtime' | 'rest';
319
- export declare class Client {
268
+ declare class ClientImplementation {
320
269
  readonly notebook: NotebookApi;
321
270
  readonly publications: PublicationApi;
322
271
  readonly servers: ServerApi;
323
272
  readonly integrations: IntegrationApi;
324
273
  readonly options: PHPSandboxClientOptions;
325
- protected runtimeTransportValue: RuntimeTransport;
274
+ private readonly runtimeTransportValue;
326
275
  get runtimeTransport(): RuntimeTransport;
327
276
  private readonly fetch;
328
277
  private readonly baseUrl;
329
278
  private readonly headers;
330
- constructor(token: string, url?: string, options?: PHPSandboxClientOptions);
279
+ constructor(token: string, url?: string, options?: PHPSandboxClientOptions, runtimeTransport?: RuntimeTransport);
331
280
  get<T extends unknown>(path: string): Promise<{
332
281
  data: T;
333
282
  }>;
@@ -346,45 +295,20 @@ export declare class Client {
346
295
  stream(path: string): Promise<ReadableStream<Uint8Array>>;
347
296
  sse(url: string): Promise<ReadableStream<Uint8Array>>;
348
297
  private makeRequest;
298
+ private fetchResponse;
349
299
  }
350
- export declare class PHPSandbox extends Client {
300
+ export type Client = ClientImplementation;
301
+ export declare class PHPSandbox {
302
+ private readonly client;
303
+ readonly notebook: NotebookApi;
304
+ readonly publications: PublicationApi;
305
+ readonly servers: ServerApi;
306
+ readonly integrations: IntegrationApi;
307
+ private constructor();
308
+ get runtimeTransport(): RuntimeTransport;
351
309
  static realtime(token: string, url?: string, options?: PHPSandboxClientOptions): PHPSandbox;
352
310
  static rest(token: string, url?: string, options?: PHPSandboxClientOptions): PHPSandbox;
353
311
  }
354
- export declare class NotebookSecretApi {
355
- private readonly client;
356
- constructor(client: Client);
357
- list(id: string, options?: NotebookSecretListOptions): Promise<NotebookSecretData[]>;
358
- set(id: string, name: string, input: string | UpsertNotebookSecretInput): Promise<NotebookSecretData>;
359
- setMany(id: string, input: UpsertNotebookSecretsInput): Promise<NotebookSecretData[]>;
360
- delete(id: string, name: string, options?: NotebookSecretDeleteOptions): Promise<void>;
361
- }
362
- export declare class NotebookComposerCredentialApi {
363
- private readonly client;
364
- constructor(client: Client);
365
- set(id: string, input: ComposerCredentialInput): Promise<ComposerCredentialInfo>;
366
- remove(id: string, type: ComposerCredentialType, url?: string): Promise<void>;
367
- }
368
- export declare class NotebookPreviewApi {
369
- private readonly client;
370
- constructor(client: Client);
371
- get(id: string): Promise<NotebookPreviewData>;
372
- get(id: string, url: string): Promise<NotebookPreviewDataWithUrl>;
373
- setPassword(id: string, input: SetNotebookPreviewInput): Promise<NotebookPreviewData>;
374
- disable(id: string): Promise<void>;
375
- createSession(id: string, input: CreateNotebookPreviewSessionInput): Promise<NotebookPreviewSessionData>;
376
- createHandoff(id: string, input: CreateNotebookPreviewHandoffInput): Promise<NotebookPreviewHandoffData>;
377
- }
378
- export declare class NotebookMailApi {
379
- private readonly client;
380
- constructor(client: Client);
381
- status(id: string): Promise<NotebookMailStateData>;
382
- enable(id: string): Promise<NotebookMailStateData>;
383
- disable(id: string): Promise<void>;
384
- list(id: string, options?: NotebookMailListOptions): Promise<PaginatedApiResponse<NotebookMailData>>;
385
- get(id: string, hash: string): Promise<NotebookMailData>;
386
- delete(id: string, hash: string): Promise<void>;
387
- }
388
312
  export interface NotebookData {
389
313
  id: string;
390
314
  runtimeUrl: string;
@@ -404,11 +328,8 @@ export declare class NotebookInstance {
404
328
  readonly auth: Auth;
405
329
  readonly lsp: Lsp;
406
330
  readonly composer: Composer;
407
- readonly logs: Logs;
408
- readonly metrics: Metrics;
409
- readonly ports: Ports;
331
+ readonly runtime: Runtime;
410
332
  readonly repl: Repl;
411
- readonly container: Container;
412
333
  private readonly shell;
413
334
  readonly git: Git;
414
335
  readonly services: Services;
@@ -420,7 +341,7 @@ export declare class NotebookInstance {
420
341
  readonly feedback: Feedback;
421
342
  private readonly socket;
422
343
  private readonly restInvoker;
423
- readonly emitter: EventDispatcher;
344
+ private readonly emitter;
424
345
  initialized: NotebookInitResult | false;
425
346
  get runtimeTransport(): RuntimeTransport;
426
347
  private readonly disposables;
@@ -428,35 +349,31 @@ export declare class NotebookInstance {
428
349
  ready(): Promise<NotebookInitSuccessResult>;
429
350
  fork(input?: Partial<ForkNotebookInput>): Promise<NotebookInstance>;
430
351
  publication(): Promise<PublicationInstance | null>;
431
- publish(input: PublishInput): Promise<PublicationRun>;
352
+ publish(input?: PublishInput): Promise<PublicationRun>;
432
353
  run(command: string | string[], opts?: SpawnOptions): ShellProcess;
433
354
  run(command: string, args: string[], opts?: SpawnOptions): ShellProcess;
434
355
  exec(command: string | string[], opts?: SpawnOptions): Promise<ProcessResult>;
435
356
  exec(command: string, args: string[], opts?: SpawnOptions): Promise<ProcessResult>;
436
- gitCredentials(): Promise<GitCredentials>;
437
357
  destroy(): Promise<void>;
438
- stop(): Promise<void>;
439
358
  restart(): Promise<void>;
359
+ stop(): Promise<void>;
440
360
  invoke<T extends keyof Invokable>(action: T, data?: Invokable[T]['args'], options?: CallOption): Promise<Invokable[T]['response']>;
441
361
  send<T extends keyof Invokable>(action: T, data?: Invokable[T]['args']): boolean;
442
- ping(): Promise<"pong">;
443
362
  listen<T extends keyof Events>(event: T, handler: (data: Events[T]) => void): Disposable;
444
363
  listen(event: string, handler: (data: unknown) => void): Disposable;
445
364
  dispose(): void;
446
365
  connected(): Promise<NotebookInstance>;
447
- whenConnected(): Promise<NotebookInstance>;
448
366
  private waitForSocketConnection;
449
367
  private watchConnection;
450
368
  onDidConnect(handler: () => void): Disposable;
451
369
  onDidDisconnect(handler: () => void): Disposable;
452
- onDidBootError(handler: (error: NotebookUnavailableError) => void): Disposable;
370
+ onDidBootError(handler: (error: RemoteError<'NotebookUnavailable'>) => void): Disposable;
453
371
  private restInitialization;
454
- update(input: Partial<UpdateNotebookInput>): Promise<NotebookInstance>;
455
372
  onDidInitialize(handler: (result: NotebookInitResult) => void): Disposable;
456
373
  reconnect(): Promise<NotebookInstance>;
457
374
  private realtimeSocket;
458
375
  }
459
- export declare class NotebookSecrets {
376
+ declare class NotebookSecrets {
460
377
  private readonly client;
461
378
  private readonly notebookId;
462
379
  constructor(client: Client, notebookId: string);
@@ -465,14 +382,7 @@ export declare class NotebookSecrets {
465
382
  setMany(input: UpsertNotebookSecretsInput): Promise<NotebookSecretData[]>;
466
383
  delete(name: string, options?: NotebookSecretDeleteOptions): Promise<void>;
467
384
  }
468
- export declare class ComposerCredentials {
469
- private readonly client;
470
- private readonly notebookId;
471
- constructor(client: Client, notebookId: string);
472
- set(input: ComposerCredentialInput): Promise<ComposerCredentialInfo>;
473
- remove(type: ComposerCredentialType, url?: string): Promise<void>;
474
- }
475
- export declare class NotebookPreview {
385
+ declare class NotebookPreview {
476
386
  private readonly client;
477
387
  private readonly notebookId;
478
388
  constructor(client: Client, notebookId: string);
@@ -483,7 +393,7 @@ export declare class NotebookPreview {
483
393
  createSession(input: CreateNotebookPreviewSessionInput): Promise<NotebookPreviewSessionData>;
484
394
  createHandoff(input: CreateNotebookPreviewHandoffInput): Promise<NotebookPreviewHandoffData>;
485
395
  }
486
- export declare class NotebookMail {
396
+ declare class NotebookMail {
487
397
  private readonly client;
488
398
  private readonly notebookId;
489
399
  constructor(client: Client, notebookId: string);