@phpsandbox/sdk 0.0.63 → 0.0.65

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/README.md CHANGED
@@ -246,6 +246,7 @@ if (preview.status === 'ready') {
246
246
  ```
247
247
 
248
248
  Use `notebookId` when diffing or merging from another PHPSandbox notebook. Use `url` for external Git remotes. `notebookId`, `url`, and `target` are mutually exclusive.
249
+ Set `patch: false` when only the structured file list, stat, and divergence counts are needed. Patch generation defaults to enabled for backward compatibility.
249
250
 
250
251
  Fork diff requires the base and fork to share Git history. If they do not, `diff()` returns `status: 'unrelated'`.
251
252
 
@@ -20019,8 +20019,9 @@ var NotebookPreviewApi = class {
20019
20019
  constructor(client) {
20020
20020
  this.client = client;
20021
20021
  }
20022
- async get(id) {
20023
- const response = await this.client.get(`/notebook/${id}/preview`);
20022
+ async get(id, url2) {
20023
+ const query = url2 === void 0 ? "" : `?${new URLSearchParams({ url: url2 }).toString()}`;
20024
+ const response = await this.client.get(`/notebook/${id}/preview${query}`);
20024
20025
  return response.data;
20025
20026
  }
20026
20027
  async setPassword(id, input) {
@@ -20030,8 +20031,8 @@ var NotebookPreviewApi = class {
20030
20031
  async disable(id) {
20031
20032
  await this.client.delete(`/notebook/${id}/preview`);
20032
20033
  }
20033
- async createSession(id) {
20034
- const response = await this.client.post(`/notebook/${id}/preview/session`);
20034
+ async createSession(id, input) {
20035
+ const response = await this.client.post(`/notebook/${id}/preview/session`, input);
20035
20036
  return response.data;
20036
20037
  }
20037
20038
  async createHandoff(id, input) {
@@ -20310,8 +20311,8 @@ var NotebookPreview = class {
20310
20311
  this.client = client;
20311
20312
  this.notebookId = notebookId;
20312
20313
  }
20313
- get() {
20314
- return this.client.notebook.preview.get(this.notebookId);
20314
+ get(url2) {
20315
+ return this.client.notebook.preview.get(this.notebookId, url2);
20315
20316
  }
20316
20317
  setPassword(input) {
20317
20318
  return this.client.notebook.preview.setPassword(this.notebookId, input);
@@ -20319,8 +20320,8 @@ var NotebookPreview = class {
20319
20320
  disable() {
20320
20321
  return this.client.notebook.preview.disable(this.notebookId);
20321
20322
  }
20322
- createSession() {
20323
- return this.client.notebook.preview.createSession(this.notebookId);
20323
+ createSession(input) {
20324
+ return this.client.notebook.preview.createSession(this.notebookId, input);
20324
20325
  }
20325
20326
  createHandoff(input) {
20326
20327
  return this.client.notebook.preview.createHandoff(this.notebookId, input);