@phpsandbox/sdk 0.1.16 → 0.1.17

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
@@ -277,12 +277,29 @@ export interface PaginatedApiResponse<TData> {
277
277
  links?: Record<string, unknown>;
278
278
  meta?: Record<string, unknown>;
279
279
  }
280
+ /** Account-owned notebook metadata; listing does not open runtime connections. */
281
+ export interface NotebookListData {
282
+ id: string;
283
+ title: string | null;
284
+ slug: string | null;
285
+ description: string | null;
286
+ visibility: 'private' | 'public' | 'listed';
287
+ type: string;
288
+ policy: NotebookPolicyData;
289
+ createdAt: string | null;
290
+ updatedAt: string | null;
291
+ }
292
+ export interface NotebookListOptions {
293
+ page?: number;
294
+ perPage?: number;
295
+ }
280
296
  export interface NotebookMailListOptions {
281
297
  page?: number;
282
298
  }
283
299
  declare class NotebookApi {
284
300
  private readonly client;
285
301
  constructor(client: Client);
302
+ list(options?: NotebookListOptions): Promise<PaginatedApiResponse<NotebookListData>>;
286
303
  inspectImport(input: InspectNotebookImportInput): Promise<NotebookImportInspectionData>;
287
304
  create(template: string, input?: Partial<CreateNotebookInput>): Promise<NotebookInstance>;
288
305
  get(id: string): Promise<NotebookInstance>;
package/dist/index.js CHANGED
@@ -47,6 +47,9 @@ class NotebookApi {
47
47
  constructor(client) {
48
48
  this.client = client;
49
49
  }
50
+ async list(options = {}) {
51
+ return this.client.get(`/notebook${formatQueryString({ page: options.page, per_page: options.perPage })}`);
52
+ }
50
53
  async inspectImport(input) {
51
54
  const response = await this.client.post('/notebook/imports/inspect', input);
52
55
  return response.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phpsandbox/sdk",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "The TypeScript SDK for PHPSandbox cloud development environments",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",