@phpsandbox/sdk 0.0.9 → 0.0.12

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.
@@ -4538,6 +4538,9 @@ var NotebookApi = class {
4538
4538
  const response = await this.client.get(`/notebook/${id}`);
4539
4539
  return new NotebookInstance(response.data, this.client);
4540
4540
  }
4541
+ async delete(id) {
4542
+ await this.client.delete(`/notebook/${id}`);
4543
+ }
4541
4544
  async fork(id) {
4542
4545
  const response = await this.client.post(`/notebook/${id}/fork`);
4543
4546
  return this.init(new NotebookInstance(response.data, this.client));
@@ -4575,6 +4578,9 @@ var Client = class {
4575
4578
  post(path, body) {
4576
4579
  return this.makeRequest("POST", path, { body: body ? JSON.stringify(body) : void 0 });
4577
4580
  }
4581
+ delete(path) {
4582
+ return this.makeRequest("DELETE", path);
4583
+ }
4578
4584
  async makeRequest(method, path, init) {
4579
4585
  const response = await this.fetch(
4580
4586
  new Request(new URL(`v1/${path.replace(/^\//, "")}`, this.baseUrl), {
@@ -4631,6 +4637,9 @@ var NotebookInstance = class {
4631
4637
  fork() {
4632
4638
  return this.client.notebook.fork(this.data.id);
4633
4639
  }
4640
+ delete() {
4641
+ return this.client.notebook.delete(this.data.id);
4642
+ }
4634
4643
  stop() {
4635
4644
  return this.container.stop();
4636
4645
  }