freestyle-sandboxes 0.0.93 → 0.0.95

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 (65) hide show
  1. package/dist/ai/inde.d.cts +1 -1
  2. package/dist/ai/inde.d.mts +1 -1
  3. package/dist/ai/index.d.cts +1 -1
  4. package/dist/ai/index.d.mts +1 -1
  5. package/dist/inde.d.cts +16 -6
  6. package/dist/inde.d.mts +16 -6
  7. package/dist/index.cjs +19 -8
  8. package/dist/index.d.cts +16 -6
  9. package/dist/index.d.mts +16 -6
  10. package/dist/index.mjs +19 -8
  11. package/dist/langgraph/inde.d.cts +1 -1
  12. package/dist/langgraph/inde.d.mts +1 -1
  13. package/dist/langgraph/index.d.cts +1 -1
  14. package/dist/langgraph/index.d.mts +1 -1
  15. package/dist/mastra/inde.d.cts +1 -1
  16. package/dist/mastra/inde.d.mts +1 -1
  17. package/dist/mastra/index.d.cts +1 -1
  18. package/dist/mastra/index.d.mts +1 -1
  19. package/dist/{types.gen-CG8tIO9M.d.ts → types.gen-DKjMRuu5.d.ts} +448 -43
  20. package/dist/utils/inde.d.cts +1 -1
  21. package/dist/utils/inde.d.mts +1 -1
  22. package/dist/utils/index.d.cts +1 -1
  23. package/dist/utils/index.d.mts +1 -1
  24. package/openapi/sdk.gen.ts +234 -1
  25. package/openapi/types.gen.ts +389 -19
  26. package/openapi.json +1 -1
  27. package/package.json +1 -1
  28. package/src/index.ts +22 -1
  29. package/dist/index-BBXyg0JQ.cjs +0 -3253
  30. package/dist/index-BQHqnjZK.mjs +0 -3231
  31. package/dist/index-CEEa9WHp.cjs +0 -3238
  32. package/dist/index-D1ulQeJR.mjs +0 -3247
  33. package/dist/index-DCF70Xbq.mjs +0 -3246
  34. package/dist/index-H7UNEAjs.cjs +0 -3254
  35. package/dist/index.d-CXx1AdyW.d.ts +0 -4210
  36. package/dist/types.gen-1sd31qLV.d.ts +0 -172
  37. package/dist/types.gen-627pxroW.d.ts +0 -830
  38. package/dist/types.gen-BCdfx7yt.d.ts +0 -760
  39. package/dist/types.gen-BVXmFV7d.d.ts +0 -1299
  40. package/dist/types.gen-BWwhCgTX.d.ts +0 -1462
  41. package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
  42. package/dist/types.gen-BbekD8Sd.d.ts +0 -1119
  43. package/dist/types.gen-BpWMzgc3.d.ts +0 -1493
  44. package/dist/types.gen-BqN1t03N.d.ts +0 -842
  45. package/dist/types.gen-BtK6PMQy.d.ts +0 -195
  46. package/dist/types.gen-BuhQ5LpB.d.ts +0 -764
  47. package/dist/types.gen-BzRtj_TA.d.ts +0 -725
  48. package/dist/types.gen-C03gaIPq.d.ts +0 -297
  49. package/dist/types.gen-CIf3ciN7.d.ts +0 -807
  50. package/dist/types.gen-CMuCas4r.d.ts +0 -183
  51. package/dist/types.gen-CWa4Mw0J.d.ts +0 -1493
  52. package/dist/types.gen-CZUnqmzP.d.ts +0 -789
  53. package/dist/types.gen-CnEkmbco.d.ts +0 -314
  54. package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
  55. package/dist/types.gen-DHmdEOOa.d.ts +0 -172
  56. package/dist/types.gen-DLYohMJT.d.ts +0 -382
  57. package/dist/types.gen-DbTb_SrD.d.ts +0 -156
  58. package/dist/types.gen-DkFlXKTr.d.ts +0 -1354
  59. package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
  60. package/dist/types.gen-DyY7Deri.d.ts +0 -138
  61. package/dist/types.gen-MBZCvIhE.d.ts +0 -311
  62. package/dist/types.gen-YhJAHBw8.d.ts +0 -233
  63. package/dist/types.gen-cCnnhnB6.d.ts +0 -182
  64. package/dist/types.gen-mg_JNXrq.d.ts +0 -830
  65. package/dist/types.gen-uDTr6v-7.d.ts +0 -731
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -530,13 +530,16 @@ export class FreestyleSandboxes {
530
530
  source,
531
531
  import: _import,
532
532
  defaultBranch,
533
+ devServers,
533
534
  }: {
534
535
  name?: string;
535
536
  public?: boolean;
536
537
  defaultBranch?: string;
538
+ devServers?: sandbox_openapi.DevServerConfiguration;
537
539
  } & (
538
540
  | CreateGitRepositorySource
539
541
  | CreateGitRepositoryImport
542
+ | { source: never; import: never }
540
543
  )): Promise<CreateRepositoryResponseSuccess> {
541
544
  const response = await sandbox_openapi.handleCreateRepo({
542
545
  client: this.client,
@@ -546,6 +549,7 @@ export class FreestyleSandboxes {
546
549
  source,
547
550
  import: _import,
548
551
  defaultBranch,
552
+ devServers
549
553
  },
550
554
  });
551
555
 
@@ -922,11 +926,18 @@ export class FreestyleSandboxes {
922
926
  /**
923
927
  * Delete a git trigger.
924
928
  */
925
- async deleteGitTrigger({ triggerId }: { triggerId: string }): Promise<void> {
929
+ async deleteGitTrigger({
930
+ triggerId,
931
+ repo,
932
+ }: {
933
+ triggerId: string;
934
+ repo: string;
935
+ }): Promise<void> {
926
936
  const response = await sandbox_openapi.handleDeleteGitTrigger({
927
937
  client: this.client,
928
938
  path: {
929
939
  trigger: triggerId,
940
+ repo: repo,
930
941
  },
931
942
  });
932
943
 
@@ -1001,6 +1012,7 @@ export class FreestyleSandboxes {
1001
1012
  client: this.client,
1002
1013
  path: {
1003
1014
  repo: repoId,
1015
+ path: path ?? "",
1004
1016
  "*path": path ?? null,
1005
1017
  },
1006
1018
  query: {
@@ -1104,6 +1116,11 @@ export class FreestyleSandboxes {
1104
1116
  envVars?: Record<string, string>;
1105
1117
  computeClass?: string;
1106
1118
  timeout?: number;
1119
+ gitRef?: string;
1120
+ ports?: {
1121
+ port: number;
1122
+ targetPort: number;
1123
+ }[];
1107
1124
  }): Promise<FreestyleDevServer> {
1108
1125
  function formatHook(serverUrl: string, repoUrl: string) {
1109
1126
  const hook =
@@ -1157,6 +1174,7 @@ export class FreestyleSandboxes {
1157
1174
  const devServerInstance: DevServer = {
1158
1175
  repoId: options.repoId || options.repo || "",
1159
1176
  kind: "repo",
1177
+ gitRef: options.gitRef,
1160
1178
  };
1161
1179
 
1162
1180
  const client = this.client;
@@ -1232,6 +1250,7 @@ export class FreestyleSandboxes {
1232
1250
  await sandbox_openapi.handleReadFileFromEphemeralDevServer({
1233
1251
  client,
1234
1252
  path: {
1253
+ filepath: path,
1235
1254
  "*filepath": path,
1236
1255
  },
1237
1256
  body: {
@@ -1319,6 +1338,7 @@ export class FreestyleSandboxes {
1319
1338
  await sandbox_openapi.handleReadFileFromEphemeralDevServer({
1320
1339
  client,
1321
1340
  path: {
1341
+ filepath: path,
1322
1342
  "*filepath": path,
1323
1343
  },
1324
1344
  body: {
@@ -1355,6 +1375,7 @@ export class FreestyleSandboxes {
1355
1375
  await sandbox_openapi.handleWriteFileFromEphemeralDevServer({
1356
1376
  client,
1357
1377
  path: {
1378
+ filepath: path,
1358
1379
  "*filepath": path,
1359
1380
  },
1360
1381
  body: {