freestyle-sandboxes 0.0.31 → 0.0.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/ai/index.ts CHANGED
@@ -112,7 +112,13 @@ export const deployWebTool = (
112
112
  return acc;
113
113
  }, {} as Record<string, { content: string }>);
114
114
  try {
115
- const res = await api.deployWeb(new_files, config);
115
+ const res = await api.deployWeb(
116
+ {
117
+ kind: "files",
118
+ files: new_files,
119
+ },
120
+ config
121
+ );
116
122
  return res;
117
123
  } catch (e) {
118
124
  console.log("ERROR: ", e.message);
package/src/index.ts CHANGED
@@ -133,19 +133,13 @@ export class FreestyleSandboxes {
133
133
  * Deploy a Web project to a sandbox.
134
134
  */
135
135
  async deployWeb(
136
- files: Record<
137
- string,
138
- {
139
- content: string;
140
- encoding?: string;
141
- }
142
- >,
136
+ source: sandbox_openapi.DeploymentSource,
143
137
  config?: FreestyleDeployWebConfiguration
144
138
  ): Promise<FreestyleDeployWebSuccessResponse> {
145
- const response = await sandbox_openapi.handleDeployWeb({
139
+ const response = await sandbox_openapi.handleDeployWebV2({
146
140
  client: this.client,
147
141
  body: {
148
- files,
142
+ source: source,
149
143
  config: config,
150
144
  },
151
145
  });