@phpsandbox/sdk 0.0.63 → 0.0.64

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.
@@ -20112,8 +20112,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
20112
20112
  constructor(client) {
20113
20113
  this.client = client;
20114
20114
  }
20115
- async get(id) {
20116
- const response = await this.client.get(`/notebook/${id}/preview`);
20115
+ async get(id, url2) {
20116
+ const query = url2 === void 0 ? "" : `?${new URLSearchParams({ url: url2 }).toString()}`;
20117
+ const response = await this.client.get(`/notebook/${id}/preview${query}`);
20117
20118
  return response.data;
20118
20119
  }
20119
20120
  async setPassword(id, input) {
@@ -20123,8 +20124,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
20123
20124
  async disable(id) {
20124
20125
  await this.client.delete(`/notebook/${id}/preview`);
20125
20126
  }
20126
- async createSession(id) {
20127
- const response = await this.client.post(`/notebook/${id}/preview/session`);
20127
+ async createSession(id, input) {
20128
+ const response = await this.client.post(`/notebook/${id}/preview/session`, input);
20128
20129
  return response.data;
20129
20130
  }
20130
20131
  async createHandoff(id, input) {
@@ -20403,8 +20404,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
20403
20404
  this.client = client;
20404
20405
  this.notebookId = notebookId;
20405
20406
  }
20406
- get() {
20407
- return this.client.notebook.preview.get(this.notebookId);
20407
+ get(url2) {
20408
+ return this.client.notebook.preview.get(this.notebookId, url2);
20408
20409
  }
20409
20410
  setPassword(input) {
20410
20411
  return this.client.notebook.preview.setPassword(this.notebookId, input);
@@ -20412,8 +20413,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
20412
20413
  disable() {
20413
20414
  return this.client.notebook.preview.disable(this.notebookId);
20414
20415
  }
20415
- createSession() {
20416
- return this.client.notebook.preview.createSession(this.notebookId);
20416
+ createSession(input) {
20417
+ return this.client.notebook.preview.createSession(this.notebookId, input);
20417
20418
  }
20418
20419
  createHandoff(input) {
20419
20420
  return this.client.notebook.preview.createHandoff(this.notebookId, input);