@phpsandbox/sdk 0.0.35 → 0.0.36

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.
@@ -4971,6 +4971,7 @@ var NotebookApi = class {
4971
4971
  constructor(client) {
4972
4972
  this.client = client;
4973
4973
  this.secrets = new NotebookSecretApi(client);
4974
+ this.previewAuth = new NotebookPreviewAuthApi(client);
4974
4975
  }
4975
4976
  async create(template, input = {}, init = true) {
4976
4977
  const response = await this.client.post("/notebook", { template, ...input });
@@ -5077,6 +5078,22 @@ var NotebookSecretApi = class {
5077
5078
  await this.client.delete(`/notebook/${id}/secrets/${encodeURIComponent(name)}`);
5078
5079
  }
5079
5080
  };
5081
+ var NotebookPreviewAuthApi = class {
5082
+ constructor(client) {
5083
+ this.client = client;
5084
+ }
5085
+ async get(id) {
5086
+ const response = await this.client.get(`/notebook/${id}/preview-auth`);
5087
+ return response.data;
5088
+ }
5089
+ async set(id, input) {
5090
+ const response = await this.client.put(`/notebook/${id}/preview-auth`, input);
5091
+ return response.data;
5092
+ }
5093
+ async delete(id) {
5094
+ await this.client.delete(`/notebook/${id}/preview-auth`);
5095
+ }
5096
+ };
5080
5097
  var _initPromise, _NotebookInstance_instances, init_fn;
5081
5098
  var NotebookInstance = class {
5082
5099
  constructor(data, client) {
@@ -5107,6 +5124,7 @@ var NotebookInstance = class {
5107
5124
  this.git = new Git(this);
5108
5125
  this.services = new Services(this);
5109
5126
  this.secrets = new NotebookSecrets(client, this.data.id);
5127
+ this.previewAuth = new NotebookPreviewAuth(client, this.data.id);
5110
5128
  }
5111
5129
  async ready() {
5112
5130
  const terminalError = this.socket.getTerminalError();
@@ -5280,6 +5298,21 @@ var NotebookSecrets = class {
5280
5298
  return this.client.notebook.secrets.delete(this.notebookId, name);
5281
5299
  }
5282
5300
  };
5301
+ var NotebookPreviewAuth = class {
5302
+ constructor(client, notebookId) {
5303
+ this.client = client;
5304
+ this.notebookId = notebookId;
5305
+ }
5306
+ get() {
5307
+ return this.client.notebook.previewAuth.get(this.notebookId);
5308
+ }
5309
+ set(input) {
5310
+ return this.client.notebook.previewAuth.set(this.notebookId, input);
5311
+ }
5312
+ disable() {
5313
+ return this.client.notebook.previewAuth.delete(this.notebookId);
5314
+ }
5315
+ };
5283
5316
  export {
5284
5317
  ApiError,
5285
5318
  Beacon,
@@ -5299,6 +5332,8 @@ export {
5299
5332
  NotebookApi,
5300
5333
  NotebookInitError,
5301
5334
  NotebookInstance,
5335
+ NotebookPreviewAuth,
5336
+ NotebookPreviewAuthApi,
5302
5337
  NotebookSecretApi,
5303
5338
  NotebookSecrets,
5304
5339
  NotebookState,