freestyle-sandboxes 0.0.94 → 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 (66) 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 +5 -4
  6. package/dist/inde.d.mts +5 -4
  7. package/dist/index.cjs +4 -2
  8. package/dist/index.d.cts +5 -4
  9. package/dist/index.d.mts +5 -4
  10. package/dist/index.mjs +4 -2
  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--Oxc46AH.d.ts → types.gen-DKjMRuu5.d.ts} +335 -23
  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 +382 -22
  26. package/openapi.json +1 -1
  27. package/package.json +1 -1
  28. package/src/index.ts +4 -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-CG8tIO9M.d.ts +0 -1493
  50. package/dist/types.gen-CIf3ciN7.d.ts +0 -807
  51. package/dist/types.gen-CMuCas4r.d.ts +0 -183
  52. package/dist/types.gen-CWa4Mw0J.d.ts +0 -1493
  53. package/dist/types.gen-CZUnqmzP.d.ts +0 -789
  54. package/dist/types.gen-CnEkmbco.d.ts +0 -314
  55. package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
  56. package/dist/types.gen-DHmdEOOa.d.ts +0 -172
  57. package/dist/types.gen-DLYohMJT.d.ts +0 -382
  58. package/dist/types.gen-DbTb_SrD.d.ts +0 -156
  59. package/dist/types.gen-DkFlXKTr.d.ts +0 -1354
  60. package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
  61. package/dist/types.gen-DyY7Deri.d.ts +0 -138
  62. package/dist/types.gen-MBZCvIhE.d.ts +0 -311
  63. package/dist/types.gen-YhJAHBw8.d.ts +0 -233
  64. package/dist/types.gen-cCnnhnB6.d.ts +0 -182
  65. package/dist/types.gen-mg_JNXrq.d.ts +0 -830
  66. package/dist/types.gen-uDTr6v-7.d.ts +0 -731
@@ -136,6 +136,10 @@ export type CreateRecordParams = {
136
136
  record: DnsRecordData;
137
137
  };
138
138
 
139
+ export type CreateRecordResponse = {
140
+ record: DnsRecord;
141
+ };
142
+
139
143
  export type CreateRepoImport = {
140
144
  /**
141
145
  * A map of file names to their contents.
@@ -198,6 +202,7 @@ export type CreateRepositoryRequest = {
198
202
  * Import static content with an initial commit. Cannot be used with `source`.
199
203
  */
200
204
  import?: CreateRepoImport;
205
+ devServers?: DevServerConfiguration;
201
206
  };
202
207
 
203
208
  export type CreateRepositoryResponseSuccess = {
@@ -210,6 +215,34 @@ export type CreateRepoSource = {
210
215
  depth?: (number) | null;
211
216
  };
212
217
 
218
+ export type CreateVmRequest = {
219
+ idleTimeoutSeconds?: (number) | null;
220
+ /**
221
+ * Optional list of ports to expose externally. If not provided, port 3000
222
+ * will be exposed on port 443 by default. Pass an empty array to disable
223
+ * external ports. Only ports 8081 and 443 can be configured externally for
224
+ * now. Any target port is allowed.
225
+ */
226
+ ports?: Array<PortMapping> | null;
227
+ /**
228
+ * Whether the api request should wait for the VM to be ready before
229
+ * returning. By default, the VM is considered ready when the serial
230
+ * console is ready for login.
231
+ */
232
+ waitForReadySignal?: (boolean) | null;
233
+ /**
234
+ * How long to wait for the ready signal before timing out. Defaults to 120
235
+ * seconds if not provided.
236
+ */
237
+ readySignalTimeoutSeconds?: (number) | null;
238
+ /**
239
+ * Optional working directory for the VM. File system and shell commands
240
+ * will be executed in this directory.
241
+ */
242
+ workdir?: (string) | null;
243
+ persistence?: (null | VmPersistence);
244
+ };
245
+
213
246
  export type CustomBuildOptions = {
214
247
  command?: (string) | null;
215
248
  envVars?: {
@@ -218,6 +251,10 @@ export type CustomBuildOptions = {
218
251
  outDir?: (string) | null;
219
252
  };
220
253
 
254
+ export type DeleteRecordResponse = {
255
+ message: string;
256
+ };
257
+
221
258
  export type DeploymentBuildOptions = (CustomBuildOptions) | boolean;
222
259
 
223
260
  export type DeploymentLogEntry = {
@@ -266,22 +303,34 @@ export type DevServer = {
266
303
 
267
304
  export type kind2 = 'repo';
268
305
 
269
- export type DevServerRequest = {
306
+ export type DevServerConfiguration = {
270
307
  devCommand?: (string) | null;
271
- preDevCommandOnce?: (string) | null;
272
- /**
273
- * @deprecated
274
- */
275
- baseId?: (string) | null;
308
+ installCommand?: (string) | null;
309
+ timeout?: (number) | null;
276
310
  envVars?: {
277
311
  [key: string]: (string);
278
312
  } | null;
279
- repoId?: (string) | null;
280
- computeClass?: (string) | null;
313
+ ports?: Array<PortConfig> | null;
314
+ preset?: (null | DevServerPreset);
315
+ };
316
+
317
+ export type DevServerLogsRequest = {
318
+ devServer: DevServer;
281
319
  /**
282
- * Timeout in seconds
320
+ * Number of log lines to return per page (default 200)
283
321
  */
284
- timeout?: (number) | null;
322
+ count?: (number) | null;
323
+ /**
324
+ * 1-based page index. page=1 returns the most recent lines (default 1)
325
+ */
326
+ page?: (number) | null;
327
+ };
328
+
329
+ export type DevServerPreset = 'auto' | 'nextJs' | 'vite' | 'expo';
330
+
331
+ export type DevServerRequest = DevServerConfiguration & {
332
+ repoId?: (string) | null;
333
+ computeClass?: (string) | null;
285
334
  /**
286
335
  * @deprecated
287
336
  */
@@ -291,11 +340,15 @@ export type DevServerRequest = {
291
340
  */
292
341
  repo?: (string) | null;
293
342
  gitRef?: (string) | null;
343
+ preDevCommandOnce?: (string) | null;
294
344
  /**
295
- * Optional list of ports to expose externally. If not provided, port 3000 will be exposed on port 443 by default. Pass an empty array to disable external ports.
296
- * Only ports 8081 and 443 can be configured externally for now. Any target port is allowed.
345
+ * @deprecated
297
346
  */
298
- ports?: Array<PortConfig> | null;
347
+ baseId?: (string) | null;
348
+ };
349
+
350
+ export type DevServerRestartRequest = {
351
+ devServer: DevServer;
299
352
  };
300
353
 
301
354
  export type DevServerStatusRequest = {
@@ -333,6 +386,11 @@ export type DomainVerificationRequest = {
333
386
  createdAt: string;
334
387
  };
335
388
 
389
+ export type ExecAwaitRequest = {
390
+ command: string;
391
+ terminal?: (string) | null;
392
+ };
393
+
336
394
  export type ExecRequest = {
337
395
  devServer: DevServer;
338
396
  command: string;
@@ -374,6 +432,34 @@ export type FileReadContent = {
374
432
 
375
433
  export type kind3 = 'file';
376
434
 
435
+ export type ForkVmRequest = {
436
+ idleTimeoutSeconds?: (number) | null;
437
+ /**
438
+ * Optional list of ports to expose externally. If not provided, port 3000
439
+ * will be exposed on port 443 by default. Pass an empty array to disable
440
+ * external ports. Only ports 8081 and 443 can be configured externally for
441
+ * now. Any target port is allowed.
442
+ */
443
+ ports?: Array<PortMapping> | null;
444
+ /**
445
+ * Whether the api request should wait for the VM to be ready before
446
+ * returning. By default, the VM is considered ready when the serial
447
+ * console is ready for login.
448
+ */
449
+ readySignalTimeoutSeconds?: (number) | null;
450
+ /**
451
+ * How long to wait for the ready signal before timing out. Defaults to 120
452
+ * seconds if not provided.
453
+ */
454
+ waitForReadySignal?: (boolean) | null;
455
+ /**
456
+ * Optional working directory for the VM. File system and shell commands
457
+ * will be executed in this directory.
458
+ */
459
+ workdir?: (string) | null;
460
+ persistence?: (null | VmPersistence);
461
+ };
462
+
377
463
  export type FreestyleCloudstateDeployConfiguration = {
378
464
  /**
379
465
  * ID of the project to deploy, if not provided will create a new project
@@ -753,6 +839,11 @@ export type PortConfig = {
753
839
  targetPort: number;
754
840
  };
755
841
 
842
+ export type PortMapping = {
843
+ port: number;
844
+ targetPort: number;
845
+ };
846
+
756
847
  export type ReadFileEphemeralDevServerResponses = {
757
848
  id: string;
758
849
  isNew: boolean;
@@ -769,7 +860,7 @@ export type ReadFileEphemeralDevServerResponses = {
769
860
  isNew: boolean;
770
861
  } | InternalServerError;
771
862
 
772
- export type RepositoryInfo = {
863
+ export type RepositoryInfoRaw = {
773
864
  id: string;
774
865
  name?: (string) | null;
775
866
  accountId: string;
@@ -787,6 +878,10 @@ export type RepositoryMetadata = {
787
878
  defaultBranch: string;
788
879
  };
789
880
 
881
+ export type ResizeVmRequest = {
882
+ sizeMb: number;
883
+ };
884
+
790
885
  export type RevokeGitTokenRequest = {
791
886
  tokenId: string;
792
887
  };
@@ -815,6 +910,12 @@ export type Signature = {
815
910
  email: string;
816
911
  };
817
912
 
913
+ export type StartVmRequest = {
914
+ idleTimeoutSeconds?: (number) | null;
915
+ readySignalTimeoutSeconds?: (number) | null;
916
+ waitForReadySignal?: (boolean) | null;
917
+ };
918
+
818
919
  export type TagDetails = {
819
920
  name: string;
820
921
  target: string;
@@ -877,12 +978,36 @@ export type TreeObject = {
877
978
  sha: string;
878
979
  };
879
980
 
981
+ export type UpdateDevServerConfigRequest = DevServerConfiguration & {
982
+ branch?: (string) | null;
983
+ };
984
+
880
985
  export type UpdatePermissionRequest = {
881
986
  permission: AccessLevel;
882
987
  };
883
988
 
884
989
  export type Visibility = 'public' | 'private';
885
990
 
991
+ export type VmPersistence = {
992
+ /**
993
+ * Priority for eviction when storage quota is reached. Higher values
994
+ * mean the VM is less likely to be evicted. Range is 0-10, default is
995
+ * 5.
996
+ */
997
+ priority?: (number) | null;
998
+ type: 'sticky';
999
+ } | {
1000
+ type: 'ephemeral';
1001
+ } | {
1002
+ type: 'persistent';
1003
+ };
1004
+
1005
+ export type type4 = 'sticky';
1006
+
1007
+ export type WriteFileRequest = {
1008
+ content: string;
1009
+ };
1010
+
886
1011
  export type HandleDeployCloudstateData = {
887
1012
  body: FreestyleCloudstateDeployRequest;
888
1013
  };
@@ -917,11 +1042,12 @@ export type HandleCreateRecordData = {
917
1042
  body: CreateRecordParams;
918
1043
  };
919
1044
 
920
- export type HandleCreateRecordResponse = ({
921
- record: DnsRecord;
922
- });
1045
+ export type HandleCreateRecordResponse = (CreateRecordResponse);
923
1046
 
924
1047
  export type HandleCreateRecordError = ({
1048
+ domain: string;
1049
+ account_id: string;
1050
+ } | {
925
1051
  message: string;
926
1052
  });
927
1053
 
@@ -932,12 +1058,14 @@ export type HandleDeleteRecordData = {
932
1058
  };
933
1059
  };
934
1060
 
935
- export type HandleDeleteRecordResponse = ({
936
- message: string;
937
- });
1061
+ export type HandleDeleteRecordResponse = (DeleteRecordResponse);
938
1062
 
939
1063
  export type HandleDeleteRecordError = ({
940
- message: string;
1064
+ domain: string;
1065
+ account_id: string;
1066
+ } | {
1067
+ domain: string;
1068
+ name: string;
941
1069
  });
942
1070
 
943
1071
  export type HandleVerifyWildcardData = {
@@ -1075,6 +1203,8 @@ export type HandleEphemeralDevServerResponse = ({
1075
1203
  installCommandRunning: boolean;
1076
1204
  mcpEphemeralUrl?: (string) | null;
1077
1205
  ephemeralUrl?: (string) | null;
1206
+ vmId?: (string) | null;
1207
+ baseId?: (string) | null;
1078
1208
  });
1079
1209
 
1080
1210
  export type HandleEphemeralDevServerError = (InternalServerError);
@@ -1146,6 +1276,26 @@ export type HandleGitCommitPushResponse = ({
1146
1276
 
1147
1277
  export type HandleGitCommitPushError = (InternalServerError);
1148
1278
 
1279
+ export type HandleDevServerLogsData = {
1280
+ body: DevServerLogsRequest;
1281
+ };
1282
+
1283
+ export type HandleDevServerLogsResponse = ({
1284
+ logs: Array<(string)>;
1285
+ });
1286
+
1287
+ export type HandleDevServerLogsError = (InternalServerError);
1288
+
1289
+ export type HandleDevServerRestartData = {
1290
+ body: DevServerRestartRequest;
1291
+ };
1292
+
1293
+ export type HandleDevServerRestartResponse = ({
1294
+ restarted: boolean;
1295
+ });
1296
+
1297
+ export type HandleDevServerRestartError = (InternalServerError);
1298
+
1149
1299
  export type HandleShutdownDevServerData = {
1150
1300
  body: ShutdownDevServerRequest;
1151
1301
  };
@@ -1429,6 +1579,7 @@ export type HandleCreateRepoData = {
1429
1579
  * Import static content with an initial commit. Cannot be used with `source`.
1430
1580
  */
1431
1581
  import?: CreateRepoImport;
1582
+ devServers?: DevServerConfiguration;
1432
1583
  };
1433
1584
  };
1434
1585
 
@@ -1465,6 +1616,58 @@ export type HandleSetDefaultBranchResponse = (SetDefaultBranchResponse);
1465
1616
 
1466
1617
  export type HandleSetDefaultBranchError = unknown;
1467
1618
 
1619
+ export type GetDevServerConfigurationData = {
1620
+ path: {
1621
+ /**
1622
+ * Repository ID
1623
+ */
1624
+ repo_id: string;
1625
+ };
1626
+ query: {
1627
+ /**
1628
+ * Git branch name
1629
+ */
1630
+ branch: string;
1631
+ };
1632
+ };
1633
+
1634
+ export type GetDevServerConfigurationResponse = (DevServerConfiguration);
1635
+
1636
+ export type GetDevServerConfigurationError = (unknown);
1637
+
1638
+ export type UpdateDevServerConfigurationData = {
1639
+ body: UpdateDevServerConfigRequest;
1640
+ path: {
1641
+ /**
1642
+ * Repository ID
1643
+ */
1644
+ repo_id: string;
1645
+ };
1646
+ };
1647
+
1648
+ export type UpdateDevServerConfigurationResponse = (unknown);
1649
+
1650
+ export type UpdateDevServerConfigurationError = (unknown);
1651
+
1652
+ export type DeleteDevServerConfigurationData = {
1653
+ path: {
1654
+ /**
1655
+ * Repository ID
1656
+ */
1657
+ repo_id: string;
1658
+ };
1659
+ query: {
1660
+ /**
1661
+ * Git branch name (optional, defaults to repository default branch)
1662
+ */
1663
+ branch: string;
1664
+ };
1665
+ };
1666
+
1667
+ export type DeleteDevServerConfigurationResponse = (void);
1668
+
1669
+ export type DeleteDevServerConfigurationError = (unknown);
1670
+
1468
1671
  export type GetGithubSyncData = {
1469
1672
  path: {
1470
1673
  /**
@@ -1514,7 +1717,7 @@ export type HandleGetRepoInfoData = {
1514
1717
  };
1515
1718
  };
1516
1719
 
1517
- export type HandleGetRepoInfoResponse = (RepositoryInfo);
1720
+ export type HandleGetRepoInfoResponse = (RepositoryInfoRaw);
1518
1721
 
1519
1722
  export type HandleGetRepoInfoError = (unknown);
1520
1723
 
@@ -1826,6 +2029,163 @@ export type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1826
2029
 
1827
2030
  export type HandleGetLogsError = unknown;
1828
2031
 
2032
+ export type CreateVmData = {
2033
+ body: CreateVmRequest;
2034
+ };
2035
+
2036
+ export type ResizeVmData = {
2037
+ body: ResizeVmRequest;
2038
+ path: {
2039
+ id: string;
2040
+ };
2041
+ };
2042
+
2043
+ export type GetVmData = {
2044
+ path: {
2045
+ vm_id: string;
2046
+ };
2047
+ };
2048
+
2049
+ export type DeleteVmData = {
2050
+ path: {
2051
+ /**
2052
+ * The ID of the VM to delete
2053
+ */
2054
+ vm_id: string;
2055
+ };
2056
+ };
2057
+
2058
+ export type WaitVmData = {
2059
+ path: {
2060
+ /**
2061
+ * The ID of the VM to wait for
2062
+ */
2063
+ vm_id: string;
2064
+ };
2065
+ };
2066
+
2067
+ export type ExecAwaitData = {
2068
+ body: ExecAwaitRequest;
2069
+ path: {
2070
+ /**
2071
+ * The ID of the VM to execute the command in
2072
+ */
2073
+ vm_id: string;
2074
+ };
2075
+ };
2076
+
2077
+ export type GetFileData = {
2078
+ path: {
2079
+ /**
2080
+ * The path of the file to get
2081
+ */
2082
+ filepath: string;
2083
+ /**
2084
+ * The ID of the VM to get the file from
2085
+ */
2086
+ vm_id: string;
2087
+ };
2088
+ };
2089
+
2090
+ export type PutFileData = {
2091
+ body: WriteFileRequest;
2092
+ path: {
2093
+ /**
2094
+ * The path of the file to put
2095
+ */
2096
+ filepath: string;
2097
+ /**
2098
+ * The ID of the VM to put the file to
2099
+ */
2100
+ vm_id: string;
2101
+ };
2102
+ };
2103
+
2104
+ export type ForkVmData = {
2105
+ body: ForkVmRequest;
2106
+ path: {
2107
+ vm_id: string;
2108
+ };
2109
+ };
2110
+
2111
+ export type OptimizeVmData = {
2112
+ path: {
2113
+ /**
2114
+ * The ID of the VM to optimize
2115
+ */
2116
+ vm_id: string;
2117
+ };
2118
+ };
2119
+
2120
+ export type StartVmData = {
2121
+ body: StartVmRequest;
2122
+ path: {
2123
+ vm_id: string;
2124
+ };
2125
+ };
2126
+
2127
+ export type StopVmData = {
2128
+ path: {
2129
+ /**
2130
+ * The ID of the VM to stop
2131
+ */
2132
+ vm_id: string;
2133
+ };
2134
+ };
2135
+
2136
+ export type SuspendVmData = {
2137
+ path: {
2138
+ /**
2139
+ * The ID of the VM to suspend
2140
+ */
2141
+ vm_id: string;
2142
+ };
2143
+ };
2144
+
2145
+ export type ListTerminalsData = {
2146
+ path: {
2147
+ /**
2148
+ * The ID of the VM
2149
+ */
2150
+ vm_id: string;
2151
+ };
2152
+ };
2153
+
2154
+ export type GetTerminalLogsData = {
2155
+ path: {
2156
+ /**
2157
+ * The ID of the terminal session
2158
+ */
2159
+ terminal_id: string;
2160
+ /**
2161
+ * The ID of the VM
2162
+ */
2163
+ vm_id: string;
2164
+ };
2165
+ };
2166
+
2167
+ export type GetTerminalXtermData = {
2168
+ path: {
2169
+ /**
2170
+ * The ID of the terminal session
2171
+ */
2172
+ terminal_id: string;
2173
+ /**
2174
+ * The ID of the VM
2175
+ */
2176
+ vm_id: string;
2177
+ };
2178
+ };
2179
+
2180
+ export type WatchFilesData = {
2181
+ path: {
2182
+ /**
2183
+ * The ID of the VM to watch files for
2184
+ */
2185
+ vm_id: string;
2186
+ };
2187
+ };
2188
+
1829
2189
  export type HandleDeployWebData = {
1830
2190
  body: FreestyleDeployWebPayload;
1831
2191
  };