@phpsandbox/sdk 0.0.10 → 0.0.13

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.
@@ -4577,6 +4577,9 @@ var PHPSandbox = (() => {
4577
4577
  const response = await this.client.get(`/notebook/${id}`);
4578
4578
  return new NotebookInstance(response.data, this.client);
4579
4579
  }
4580
+ async delete(id) {
4581
+ await this.client.delete(`/notebook/${id}`);
4582
+ }
4580
4583
  async fork(id) {
4581
4584
  const response = await this.client.post(`/notebook/${id}/fork`);
4582
4585
  return this.init(new NotebookInstance(response.data, this.client));
@@ -4614,6 +4617,9 @@ var PHPSandbox = (() => {
4614
4617
  post(path, body) {
4615
4618
  return this.makeRequest("POST", path, { body: body ? JSON.stringify(body) : void 0 });
4616
4619
  }
4620
+ delete(path) {
4621
+ return this.makeRequest("DELETE", path);
4622
+ }
4617
4623
  async makeRequest(method, path, init) {
4618
4624
  const response = await this.fetch(
4619
4625
  new Request(new URL(`v1/${path.replace(/^\//, "")}`, this.baseUrl), {
@@ -4670,6 +4676,9 @@ var PHPSandbox = (() => {
4670
4676
  fork() {
4671
4677
  return this.client.notebook.fork(this.data.id);
4672
4678
  }
4679
+ delete() {
4680
+ return this.client.notebook.delete(this.data.id);
4681
+ }
4673
4682
  stop() {
4674
4683
  return this.container.stop();
4675
4684
  }