@phpsandbox/sdk 0.1.13 → 0.1.14

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.
Files changed (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +7 -18
  3. package/dist/browser/phpsandbox-sdk.esm.js +7 -3
  4. package/dist/browser/phpsandbox-sdk.esm.min.js +7 -7
  5. package/dist/browser/phpsandbox-sdk.iife.js +7 -3
  6. package/dist/browser/phpsandbox-sdk.iife.min.js +7 -7
  7. package/dist/index.d.ts +21 -5
  8. package/dist/index.js +5 -2
  9. package/dist/{integrations.d.ts → integrations/account.d.ts} +1 -1
  10. package/dist/integrations/index.d.ts +2 -0
  11. package/dist/integrations/index.js +2 -0
  12. package/dist/{sandbox-integrations.d.ts → integrations/sandbox.d.ts} +2 -2
  13. package/dist/{sandbox-integrations.js → integrations/sandbox.js} +1 -1
  14. package/dist/log.d.ts +1 -1
  15. package/dist/log.js +1 -1
  16. package/dist/metrics.d.ts +1 -1
  17. package/dist/metrics.js +1 -1
  18. package/dist/ports.d.ts +1 -1
  19. package/dist/ports.js +1 -1
  20. package/dist/runtime.d.ts +1 -1
  21. package/dist/runtime.js +1 -1
  22. package/package.json +5 -9
  23. package/docs/api-summary.md +0 -181
  24. package/docs/cdn-usage.md +0 -68
  25. package/docs/getting-started.md +0 -169
  26. package/examples/README.md +0 -203
  27. package/examples/basic.ts +0 -15
  28. package/examples/get.ts +0 -22
  29. package/examples/git-merge-smoke.ts +0 -395
  30. package/examples/laravel-load-test.ts +0 -2800
  31. package/examples/notebook-readonly-smoke.ts +0 -806
  32. package/examples/publication-provider-label.ts +0 -11
  33. package/examples/publish-cloudflare-container.ts +0 -65
  34. package/examples/publish-laravel-cloud.ts +0 -123
  35. package/examples/publish-ssh-agent.ts +0 -211
  36. /package/dist/{integrations.js → integrations/account.js} +0 -0
  37. /package/dist/{runtime-telemetry.d.ts → telemetry.d.ts} +0 -0
  38. /package/dist/{runtime-telemetry.js → telemetry.js} +0 -0
@@ -1067,7 +1067,7 @@ var PHPSandbox = (() => {
1067
1067
  }
1068
1068
  };
1069
1069
 
1070
- // src/runtime-telemetry.ts
1070
+ // src/telemetry.ts
1071
1071
  var RuntimeTelemetry = class {
1072
1072
  constructor(okra) {
1073
1073
  this.okra = okra;
@@ -19762,7 +19762,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19762
19762
  }
19763
19763
  };
19764
19764
 
19765
- // src/integrations.ts
19765
+ // src/integrations/account.ts
19766
19766
  var IntegrationApi = class {
19767
19767
  constructor(client) {
19768
19768
  this.client = client;
@@ -19809,7 +19809,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19809
19809
  return typeof integration === "string" ? integration : integration.id;
19810
19810
  }
19811
19811
 
19812
- // src/sandbox-integrations.ts
19812
+ // src/integrations/sandbox.ts
19813
19813
  var SandboxIntegrationApi = class {
19814
19814
  constructor(notebookId, client) {
19815
19815
  this.notebookId = notebookId;
@@ -19884,6 +19884,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
19884
19884
  constructor(client) {
19885
19885
  this.client = client;
19886
19886
  }
19887
+ async inspectImport(input) {
19888
+ const response = await this.client.post("/notebook/imports/inspect", input);
19889
+ return response.data;
19890
+ }
19887
19891
  async create(template, input = {}) {
19888
19892
  const response = await this.client.post("/notebook", { template, ...input });
19889
19893
  return new NotebookInstance(response.data, this.client);