freestyle-sandboxes 0.0.68 → 0.0.70

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 (60) 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 +103 -25
  6. package/dist/inde.d.mts +103 -25
  7. package/dist/index-BBXyg0JQ.cjs +3253 -0
  8. package/dist/index-BQHqnjZK.mjs +3231 -0
  9. package/dist/index-CEEa9WHp.cjs +3238 -0
  10. package/dist/index-D1ulQeJR.mjs +3247 -0
  11. package/dist/index-DCF70Xbq.mjs +3246 -0
  12. package/dist/index-H7UNEAjs.cjs +3254 -0
  13. package/dist/index.cjs +249 -12
  14. package/dist/index.d-CXx1AdyW.d.ts +4210 -0
  15. package/dist/index.d.cts +103 -25
  16. package/dist/index.d.mts +103 -25
  17. package/dist/index.mjs +249 -12
  18. package/dist/langgraph/inde.d.cts +1 -1
  19. package/dist/langgraph/inde.d.mts +1 -1
  20. package/dist/langgraph/index.d.cts +1 -1
  21. package/dist/langgraph/index.d.mts +1 -1
  22. package/dist/mastra/inde.d.cts +1 -1
  23. package/dist/mastra/inde.d.mts +1 -1
  24. package/dist/mastra/index.d.cts +1 -1
  25. package/dist/mastra/index.d.mts +1 -1
  26. package/dist/types.gen-1sd31qLV.d.ts +172 -0
  27. package/dist/types.gen-627pxroW.d.ts +830 -0
  28. package/dist/types.gen-BCdfx7yt.d.ts +760 -0
  29. package/dist/types.gen-BVXmFV7d.d.ts +1299 -0
  30. package/dist/types.gen-BaMKzqxQ.d.ts +233 -0
  31. package/dist/types.gen-BtK6PMQy.d.ts +195 -0
  32. package/dist/types.gen-BuhQ5LpB.d.ts +764 -0
  33. package/dist/types.gen-BzRtj_TA.d.ts +725 -0
  34. package/dist/types.gen-C03gaIPq.d.ts +297 -0
  35. package/dist/types.gen-CMuCas4r.d.ts +183 -0
  36. package/dist/types.gen-CZUnqmzP.d.ts +789 -0
  37. package/dist/types.gen-CnEkmbco.d.ts +314 -0
  38. package/dist/types.gen-DDYpuDzZ.d.ts +764 -0
  39. package/dist/types.gen-DHmdEOOa.d.ts +172 -0
  40. package/dist/types.gen-DLYohMJT.d.ts +382 -0
  41. package/dist/types.gen-DbTb_SrD.d.ts +156 -0
  42. package/dist/types.gen-DkQ-Dbs1.d.ts +764 -0
  43. package/dist/{types.gen-BoJEFWW-.d.ts → types.gen-DyY7Deri.d.ts} +55 -1
  44. package/dist/types.gen-MBZCvIhE.d.ts +311 -0
  45. package/dist/types.gen-YhJAHBw8.d.ts +233 -0
  46. package/dist/types.gen-cCnnhnB6.d.ts +182 -0
  47. package/dist/types.gen-mg_JNXrq.d.ts +830 -0
  48. package/dist/types.gen-uDTr6v-7.d.ts +731 -0
  49. package/dist/utils/inde.d.cts +1 -1
  50. package/dist/utils/inde.d.mts +1 -1
  51. package/dist/utils/index.d.cts +1 -1
  52. package/dist/utils/index.d.mts +1 -1
  53. package/openapi/sdk.gen.ts +71 -10
  54. package/openapi/types.gen.ts +233 -28
  55. package/openapi.json +1 -1
  56. package/package.json +2 -2
  57. package/src/dev-server.ts +92 -0
  58. package/src/index.ts +319 -27
  59. package/src/react/dev-server/index.tsx +3 -3
  60. package/.env +0 -1
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-BbekD8Sd.js';
1
+ import { D as DeploymentSource } from '../types.gen-BVXmFV7d.js';
2
2
 
3
3
  declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
4
  declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-BbekD8Sd.js';
1
+ import { D as DeploymentSource } from '../types.gen-BVXmFV7d.js';
2
2
 
3
3
  declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
4
  declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-BbekD8Sd.js';
1
+ import { D as DeploymentSource } from '../types.gen-BVXmFV7d.js';
2
2
 
3
3
  declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
4
  declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-BbekD8Sd.js';
1
+ import { D as DeploymentSource } from '../types.gen-BVXmFV7d.js';
2
2
 
3
3
  declare const prepareDirForDeployment: (directory: string) => Promise<DeploymentSource>;
4
4
  declare const prepareDirForDeploymentSync: (directory: string) => DeploymentSource;
@@ -1,7 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  import { createClient, createConfig, type OptionsLegacyParser } from '@hey-api/client-fetch';
4
- import type { HandleDeployCloudstateData, HandleDeployCloudstateError, HandleDeployCloudstateResponse, HandleBackupCloudstateData, HandleBackupCloudstateError, HandleBackupCloudstateResponse, HandleListRecordsData, HandleListRecordsError, HandleListRecordsResponse, HandleCreateRecordData, HandleCreateRecordError, HandleCreateRecordResponse, HandleDeleteRecordData, HandleDeleteRecordError, HandleDeleteRecordResponse, HandleVerifyWildcardData, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsError, HandleListDomainsResponse, HandleInsertDomainMappingData, HandleInsertDomainMappingError, HandleInsertDomainMappingResponse, HandleDeleteDomainMappingData, HandleDeleteDomainMappingError, HandleDeleteDomainMappingResponse, HandleListDomainVerificationRequestsError, HandleListDomainVerificationRequestsResponse, HandleVerifyDomainData, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleCreateDomainVerificationData, HandleCreateDomainVerificationError, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationData, HandleDeleteDomainVerificationError, HandleDeleteDomainVerificationResponse, HandleEphemeralDevServerData, HandleEphemeralDevServerError, HandleEphemeralDevServerResponse, HandleExecOnEphemeralDevServerData, HandleExecOnEphemeralDevServerError, HandleExecOnEphemeralDevServerResponse, HandleWriteFileFromEphemeralDevServerData, HandleWriteFileFromEphemeralDevServerError, HandleWriteFileFromEphemeralDevServerResponse, HandleReadFileFromEphemeralDevServerData, HandleReadFileFromEphemeralDevServerError, HandleReadFileFromEphemeralDevServerResponse, HandleGitCommitPushData, HandleGitCommitPushError, HandleGitCommitPushResponse, HandleDevServerStatusData, HandleDevServerStatusError, HandleDevServerStatusResponse, HandleListExecuteRunsData, HandleListExecuteRunsError, HandleListExecuteRunsResponse, HandleGetExecuteRunData, HandleGetExecuteRunError, HandleGetExecuteRunResponse, HandleExecuteScriptData, HandleExecuteScriptError, HandleExecuteScriptResponse, HandleListIdentitiesData, HandleListIdentitiesError, HandleListIdentitiesResponse, HandleCreateIdentityError, HandleCreateIdentityResponse, HandleDeleteIdentityData, HandleDeleteIdentityError, HandleDeleteIdentityResponse, HandleListPermissionsData, HandleListPermissionsError, HandleListPermissionsResponse, HandleDescribePermissionData, HandleDescribePermissionError, HandleDescribePermissionResponse, HandleGrantPermissionData, HandleGrantPermissionError, HandleGrantPermissionResponse, HandleRevokePermissionData, HandleRevokePermissionError, HandleRevokePermissionResponse, HandleUpdatePermissionData, HandleUpdatePermissionError, HandleUpdatePermissionResponse, HandleListGitTokensData, HandleListGitTokensError, HandleListGitTokensResponse, HandleCreateGitTokenData, HandleCreateGitTokenError, HandleCreateGitTokenResponse, HandleRevokeGitTokenData, HandleRevokeGitTokenError, HandleRevokeGitTokenResponse, HandleListRepositoriesData, HandleListRepositoriesError, HandleListRepositoriesResponse, HandleCreateRepoData, HandleCreateRepoError, HandleCreateRepoResponse, HandleGetBlobData, HandleGetBlobError, HandleGetBlobResponse, HandleGetCommitData, HandleGetCommitError, HandleGetCommitResponse, HandleGetTagData, HandleGetTagError, HandleGetTagResponse, HandleGetTreeData, HandleGetTreeError, HandleGetTreeResponse, HandleDeleteRepoData, HandleDeleteRepoError, HandleDeleteRepoResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleGetLogsData, HandleGetLogsError, HandleGetLogsResponse, HandleDeployWebData, HandleDeployWebError, HandleDeployWebResponse, HandleDeployWebV2Data, HandleDeployWebV2Error, HandleDeployWebV2Response, HandleListWebDeploysData, HandleListWebDeploysError, HandleListWebDeploysResponse, HandleGetWebDeployDetailsData } from './types.gen';
4
+ import type { HandleDeployCloudstateData, HandleDeployCloudstateError, HandleDeployCloudstateResponse, HandleBackupCloudstateData, HandleBackupCloudstateError, HandleBackupCloudstateResponse, HandleListRecordsData, HandleListRecordsError, HandleListRecordsResponse, HandleCreateRecordData, HandleCreateRecordError, HandleCreateRecordResponse, HandleDeleteRecordData, HandleDeleteRecordError, HandleDeleteRecordResponse, HandleVerifyWildcardData, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsError, HandleListDomainsResponse, HandleInsertDomainMappingData, HandleInsertDomainMappingError, HandleInsertDomainMappingResponse, HandleDeleteDomainMappingData, HandleDeleteDomainMappingError, HandleDeleteDomainMappingResponse, HandleListDomainVerificationRequestsError, HandleListDomainVerificationRequestsResponse, HandleVerifyDomainData, HandleVerifyDomainError, HandleVerifyDomainResponse, HandleCreateDomainVerificationData, HandleCreateDomainVerificationError, HandleCreateDomainVerificationResponse, HandleDeleteDomainVerificationData, HandleDeleteDomainVerificationError, HandleDeleteDomainVerificationResponse, HandleEphemeralDevServerData, HandleEphemeralDevServerError, HandleEphemeralDevServerResponse, HandleExecOnEphemeralDevServerData, HandleExecOnEphemeralDevServerError, HandleExecOnEphemeralDevServerResponse, HandleWriteFileFromEphemeralDevServerData, HandleWriteFileFromEphemeralDevServerError, HandleWriteFileFromEphemeralDevServerResponse, HandleReadFileFromEphemeralDevServerData, HandleReadFileFromEphemeralDevServerError, HandleReadFileFromEphemeralDevServerResponse, HandleGitCommitPushData, HandleGitCommitPushError, HandleGitCommitPushResponse, HandleShutdownDevServerData, HandleShutdownDevServerError, HandleShutdownDevServerResponse, HandleDevServerStatusData, HandleDevServerStatusError, HandleDevServerStatusResponse, HandleWatchDevServerFilesData, HandleWatchDevServerFilesError, HandleWatchDevServerFilesResponse, HandleListExecuteRunsData, HandleListExecuteRunsError, HandleListExecuteRunsResponse, HandleGetExecuteRunData, HandleGetExecuteRunError, HandleGetExecuteRunResponse, HandleExecuteScriptData, HandleExecuteScriptError, HandleExecuteScriptResponse, HandleListIdentitiesData, HandleListIdentitiesError, HandleListIdentitiesResponse, HandleCreateIdentityError, HandleCreateIdentityResponse, HandleDeleteIdentityData, HandleDeleteIdentityError, HandleDeleteIdentityResponse, HandleListPermissionsData, HandleListPermissionsError, HandleListPermissionsResponse, HandleDescribePermissionData, HandleDescribePermissionError, HandleDescribePermissionResponse, HandleGrantPermissionData, HandleGrantPermissionError, HandleGrantPermissionResponse, HandleRevokePermissionData, HandleRevokePermissionError, HandleRevokePermissionResponse, HandleUpdatePermissionData, HandleUpdatePermissionError, HandleUpdatePermissionResponse, HandleListGitTokensData, HandleListGitTokensError, HandleListGitTokensResponse, HandleCreateGitTokenData, HandleCreateGitTokenError, HandleCreateGitTokenResponse, HandleRevokeGitTokenData, HandleRevokeGitTokenError, HandleRevokeGitTokenResponse, HandleListRepositoriesData, HandleListRepositoriesError, HandleListRepositoriesResponse, HandleCreateRepoData, HandleCreateRepoError, HandleCreateRepoResponse, HandleDeleteRepoData, HandleDeleteRepoError, HandleDeleteRepoResponse, HandleGetContentsData, HandleGetContentsError, HandleGetContentsResponse, HandleGetBlobData, HandleGetBlobError, HandleGetBlobResponse, HandleGetCommitData, HandleGetCommitError, HandleGetCommitResponse, HandleGetRefBranchData, HandleGetRefBranchError, HandleGetRefBranchResponse, HandleGetTagData, HandleGetTagError, HandleGetTagResponse, HandleGetTreeData, HandleGetTreeError, HandleGetTreeResponse, HandleDownloadTarballData, HandleDownloadTarballError, HandleDownloadTarballResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleGetLogsData, HandleGetLogsError, HandleGetLogsResponse, HandleGetRefTagData, HandleGetRefTagError, HandleGetRefTagResponse, HandleDeployWebData, HandleDeployWebError, HandleDeployWebResponse, HandleDeployWebV2Data, HandleDeployWebV2Error, HandleDeployWebV2Response, HandleListWebDeploysData, HandleListWebDeploysError, HandleListWebDeploysResponse, HandleGetWebDeployDetailsData } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -199,6 +199,16 @@ export const handleGitCommitPush = <ThrowOnError extends boolean = false>(option
199
199
  });
200
200
  };
201
201
 
202
+ /**
203
+ * Shut down a dev server
204
+ */
205
+ export const handleShutdownDevServer = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleShutdownDevServerData, ThrowOnError>) => {
206
+ return (options?.client ?? client).post<HandleShutdownDevServerResponse, HandleShutdownDevServerError, ThrowOnError>({
207
+ ...options,
208
+ url: '/ephemeral/v1/dev-servers/shutdown'
209
+ });
210
+ };
211
+
202
212
  /**
203
213
  * Get the status of a Dev Server
204
214
  */
@@ -209,6 +219,13 @@ export const handleDevServerStatus = <ThrowOnError extends boolean = false>(opti
209
219
  });
210
220
  };
211
221
 
222
+ export const handleWatchDevServerFiles = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleWatchDevServerFilesData, ThrowOnError>) => {
223
+ return (options?.client ?? client).post<HandleWatchDevServerFilesResponse, HandleWatchDevServerFilesError, ThrowOnError>({
224
+ ...options,
225
+ url: '/ephemeral/v1/dev-servers/watch-files'
226
+ });
227
+ };
228
+
212
229
  /**
213
230
  * List execute runs
214
231
  * List execute runs.
@@ -391,6 +408,28 @@ export const handleCreateRepo = <ThrowOnError extends boolean = false>(options:
391
408
  });
392
409
  };
393
410
 
411
+ /**
412
+ * Delete a repository
413
+ * Delete a repository. This is irreversible, and will also delete the repository on the Git server.
414
+ */
415
+ export const handleDeleteRepo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeleteRepoData, ThrowOnError>) => {
416
+ return (options?.client ?? client).delete<HandleDeleteRepoResponse, HandleDeleteRepoError, ThrowOnError>({
417
+ ...options,
418
+ url: '/git/v1/repo/{repo}'
419
+ });
420
+ };
421
+
422
+ /**
423
+ * Get the contents of a file or directory
424
+ * Get the contents of a file or directory in a repository
425
+ */
426
+ export const handleGetContents = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetContentsData, ThrowOnError>) => {
427
+ return (options?.client ?? client).get<HandleGetContentsResponse, HandleGetContentsError, ThrowOnError>({
428
+ ...options,
429
+ url: '/git/v1/repo/{repo}/contents/{*path}'
430
+ });
431
+ };
432
+
394
433
  /**
395
434
  * Get a blob object
396
435
  * Get a blob from the Git database. The contents will always be base64 encoded.
@@ -398,7 +437,7 @@ export const handleCreateRepo = <ThrowOnError extends boolean = false>(options:
398
437
  export const handleGetBlob = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetBlobData, ThrowOnError>) => {
399
438
  return (options?.client ?? client).get<HandleGetBlobResponse, HandleGetBlobError, ThrowOnError>({
400
439
  ...options,
401
- url: '/git/v1/repo/{repo_id}/git/blobs/{hash}'
440
+ url: '/git/v1/repo/{repo}/git/blobs/{hash}'
402
441
  });
403
442
  };
404
443
 
@@ -409,7 +448,18 @@ export const handleGetBlob = <ThrowOnError extends boolean = false>(options: Opt
409
448
  export const handleGetCommit = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetCommitData, ThrowOnError>) => {
410
449
  return (options?.client ?? client).get<HandleGetCommitResponse, HandleGetCommitError, ThrowOnError>({
411
450
  ...options,
412
- url: '/git/v1/repo/{repo_id}/git/commits/{hash}'
451
+ url: '/git/v1/repo/{repo}/git/commits/{hash}'
452
+ });
453
+ };
454
+
455
+ /**
456
+ * Get a branch reference
457
+ * Get a reference to a branch in the Git repository. Returns the ref name and SHA of the branch.
458
+ */
459
+ export const handleGetRefBranch = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefBranchData, ThrowOnError>) => {
460
+ return (options?.client ?? client).get<HandleGetRefBranchResponse, HandleGetRefBranchError, ThrowOnError>({
461
+ ...options,
462
+ url: '/git/v1/repo/{repo}/git/refs/heads/{*branch}'
413
463
  });
414
464
  };
415
465
 
@@ -420,7 +470,7 @@ export const handleGetCommit = <ThrowOnError extends boolean = false>(options: O
420
470
  export const handleGetTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetTagData, ThrowOnError>) => {
421
471
  return (options?.client ?? client).get<HandleGetTagResponse, HandleGetTagError, ThrowOnError>({
422
472
  ...options,
423
- url: '/git/v1/repo/{repo_id}/git/tags/{hash}'
473
+ url: '/git/v1/repo/{repo}/git/tags/{hash}'
424
474
  });
425
475
  };
426
476
 
@@ -431,18 +481,18 @@ export const handleGetTag = <ThrowOnError extends boolean = false>(options: Opti
431
481
  export const handleGetTree = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetTreeData, ThrowOnError>) => {
432
482
  return (options?.client ?? client).get<HandleGetTreeResponse, HandleGetTreeError, ThrowOnError>({
433
483
  ...options,
434
- url: '/git/v1/repo/{repo_id}/git/trees/{hash}'
484
+ url: '/git/v1/repo/{repo}/git/trees/{hash}'
435
485
  });
436
486
  };
437
487
 
438
488
  /**
439
- * Delete a repository
440
- * Delete a repository. This is irreversible, and will also delete the repository on the Git server.
489
+ * Download a tarball of a repo.
490
+ * Download the contents of a repo as a tarball.
441
491
  */
442
- export const handleDeleteRepo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDeleteRepoData, ThrowOnError>) => {
443
- return (options?.client ?? client).delete<HandleDeleteRepoResponse, HandleDeleteRepoError, ThrowOnError>({
492
+ export const handleDownloadTarball = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleDownloadTarballData, ThrowOnError>) => {
493
+ return (options?.client ?? client).get<HandleDownloadTarballResponse, HandleDownloadTarballError, ThrowOnError>({
444
494
  ...options,
445
- url: '/git/v1/repo/{repo}'
495
+ url: '/git/v1/repo/{repo}/tarball'
446
496
  });
447
497
  };
448
498
 
@@ -490,6 +540,17 @@ export const handleGetLogs = <ThrowOnError extends boolean = false>(options?: Op
490
540
  });
491
541
  };
492
542
 
543
+ /**
544
+ * Get a tag reference
545
+ * Get a reference to a tag in the Git repository. Returns the ref name and SHA of the tag.
546
+ */
547
+ export const handleGetRefTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefTagData, ThrowOnError>) => {
548
+ return (options?.client ?? client).get<HandleGetRefTagResponse, HandleGetRefTagError, ThrowOnError>({
549
+ ...options,
550
+ url: '/repos/{repo}/git/refs/tags/{*tag}'
551
+ });
552
+ };
553
+
493
554
  /**
494
555
  * @deprecated
495
556
  * Deploy a Website (v1)
@@ -189,6 +189,11 @@ export type DevServerRequest = {
189
189
  [key: string]: (string);
190
190
  } | null;
191
191
  repoId?: (string) | null;
192
+ computeClass?: (string) | null;
193
+ /**
194
+ * Timeout in seconds
195
+ */
196
+ timeout?: (number) | null;
192
197
  /**
193
198
  * @deprecated
194
199
  */
@@ -203,6 +208,10 @@ export type DevServerStatusRequest = {
203
208
  devServer: DevServer;
204
209
  };
205
210
 
211
+ export type DevServerWatchFilesRequest = {
212
+ devServer: DevServer;
213
+ };
214
+
206
215
  export type DnsRecord = {
207
216
  kind: DnsRecordKind;
208
217
  name: string;
@@ -227,7 +236,7 @@ export type DomainVerificationRequest = {
227
236
  domain: string;
228
237
  accountId: string;
229
238
  verificationCode: string;
230
- createdAt: number;
239
+ createdAt: string;
231
240
  };
232
241
 
233
242
  export type ExecRequest = {
@@ -499,11 +508,73 @@ export type GitCommitPushRequest = {
499
508
  message: string;
500
509
  };
501
510
 
511
+ export type GitContents = {
512
+ name: string;
513
+ path: string;
514
+ /**
515
+ * The hash / object ID of the file.
516
+ */
517
+ sha: string;
518
+ size: number;
519
+ /**
520
+ * Base64-encoded content.
521
+ */
522
+ content: string;
523
+ type: 'file';
524
+ } | {
525
+ name: string;
526
+ path: string;
527
+ /**
528
+ * The hash / object ID of the directory.
529
+ */
530
+ sha: string;
531
+ entries: Array<GitContentsDirEntryItem>;
532
+ type: 'dir';
533
+ };
534
+
535
+ export type type2 = 'file';
536
+
537
+ export type GitContentsDirEntryItem = {
538
+ name: string;
539
+ path: string;
540
+ /**
541
+ * The hash / object ID of the file.
542
+ */
543
+ sha: string;
544
+ size: number;
545
+ type: 'file';
546
+ } | {
547
+ name: string;
548
+ path: string;
549
+ /**
550
+ * The hash / object ID of the directory.
551
+ */
552
+ sha: string;
553
+ entries: Array<({
554
+ [key: string]: unknown;
555
+ })>;
556
+ type: 'dir';
557
+ };
558
+
502
559
  export type GitIdentity = {
503
560
  id: string;
504
561
  managed: boolean;
505
562
  };
506
563
 
564
+ /**
565
+ * A reference to a Git object
566
+ */
567
+ export type GitReference = {
568
+ /**
569
+ * The name of the ref (e.g., "refs/heads/main" or "refs/tags/v1.0.0")
570
+ */
571
+ name: string;
572
+ /**
573
+ * The SHA-1 hash of the Git object this reference points to
574
+ */
575
+ sha: string;
576
+ };
577
+
507
578
  export type GitRepositoryTrigger = {
508
579
  repositoryId: string;
509
580
  trigger: ({
@@ -517,7 +588,7 @@ export type GitRepositoryTrigger = {
517
588
  });
518
589
  managed: boolean;
519
590
  id: string;
520
- createdAt: number;
591
+ createdAt: string;
521
592
  };
522
593
 
523
594
  export type event = 'push';
@@ -558,6 +629,22 @@ export type NetworkPermissionData = {
558
629
  behavior?: Behavior;
559
630
  };
560
631
 
632
+ export type ReadFileEphemeralDevServerResponses = {
633
+ id: string;
634
+ isNew: boolean;
635
+ content: ({
636
+ content: string;
637
+ encoding: string;
638
+ kind: 'file';
639
+ } | {
640
+ files: Array<(string)>;
641
+ kind: 'directory';
642
+ });
643
+ } | {
644
+ id: string;
645
+ isNew: boolean;
646
+ } | InternalServerError;
647
+
561
648
  export type ReadFileRequest = {
562
649
  devServer: DevServer;
563
650
  encoding?: string;
@@ -574,6 +661,13 @@ export type RevokeGitTokenRequest = {
574
661
  tokenId: string;
575
662
  };
576
663
 
664
+ export type ShutdownDevServerRequest = {
665
+ /**
666
+ * The dev server to shutdown
667
+ */
668
+ devServer: DevServer;
669
+ };
670
+
577
671
  export type Signature = {
578
672
  /**
579
673
  * The date marker for this signature
@@ -623,7 +717,7 @@ export type TreeEntry = {
623
717
  type: 'tree';
624
718
  };
625
719
 
626
- export type type2 = 'blob';
720
+ export type type3 = 'blob';
627
721
 
628
722
  /**
629
723
  * Tree object
@@ -724,7 +818,7 @@ export type HandleVerifyWildcardError = ({
724
818
 
725
819
  export type HandleListDomainsResponse = (Array<{
726
820
  domain: string;
727
- createdAt: number;
821
+ createdAt: string;
728
822
  }>);
729
823
 
730
824
  export type HandleListDomainsError = ({
@@ -759,7 +853,7 @@ export type HandleDeleteDomainMappingError = ({
759
853
  export type HandleListDomainVerificationRequestsResponse = (Array<{
760
854
  verificationCode: string;
761
855
  domain: string;
762
- createdAt: number;
856
+ createdAt: string;
763
857
  }>);
764
858
 
765
859
  export type HandleListDomainVerificationRequestsError = ({
@@ -850,10 +944,20 @@ export type HandleReadFileFromEphemeralDevServerData = {
850
944
  export type HandleReadFileFromEphemeralDevServerResponse = ({
851
945
  id: string;
852
946
  isNew: boolean;
853
- content?: (null | FileReadContent);
947
+ content: ({
948
+ content: string;
949
+ encoding: string;
950
+ kind: 'file';
951
+ } | {
952
+ files: Array<(string)>;
953
+ kind: 'directory';
954
+ });
854
955
  });
855
956
 
856
- export type HandleReadFileFromEphemeralDevServerError = (InternalServerError);
957
+ export type HandleReadFileFromEphemeralDevServerError = ({
958
+ id: string;
959
+ isNew: boolean;
960
+ } | InternalServerError);
857
961
 
858
962
  export type HandleGitCommitPushData = {
859
963
  body: GitCommitPushRequest;
@@ -866,6 +970,19 @@ export type HandleGitCommitPushResponse = ({
866
970
 
867
971
  export type HandleGitCommitPushError = (InternalServerError);
868
972
 
973
+ export type HandleShutdownDevServerData = {
974
+ body: ShutdownDevServerRequest;
975
+ };
976
+
977
+ export type HandleShutdownDevServerResponse = ({
978
+ success: boolean;
979
+ message: string;
980
+ });
981
+
982
+ export type HandleShutdownDevServerError = ({
983
+ message: string;
984
+ } | InternalServerError);
985
+
869
986
  export type HandleDevServerStatusData = {
870
987
  body: DevServerStatusRequest;
871
988
  };
@@ -877,6 +994,14 @@ export type HandleDevServerStatusResponse = ({
877
994
 
878
995
  export type HandleDevServerStatusError = (InternalServerError);
879
996
 
997
+ export type HandleWatchDevServerFilesData = {
998
+ body: DevServerWatchFilesRequest;
999
+ };
1000
+
1001
+ export type HandleWatchDevServerFilesResponse = (string);
1002
+
1003
+ export type HandleWatchDevServerFilesError = unknown;
1004
+
880
1005
  export type HandleListExecuteRunsData = {
881
1006
  query?: {
882
1007
  limit?: (number) | null;
@@ -1125,16 +1250,56 @@ export type HandleCreateRepoError = ({
1125
1250
  message: string;
1126
1251
  });
1127
1252
 
1128
- export type HandleGetBlobData = {
1253
+ export type HandleDeleteRepoData = {
1129
1254
  path: {
1130
1255
  /**
1131
- * The blob hash
1256
+ * The repository id
1132
1257
  */
1133
- hash: string;
1258
+ repo: string;
1259
+ };
1260
+ };
1261
+
1262
+ export type HandleDeleteRepoResponse = ({
1263
+ [key: string]: unknown;
1264
+ });
1265
+
1266
+ export type HandleDeleteRepoError = ({
1267
+ message: string;
1268
+ } | {
1269
+ [key: string]: unknown;
1270
+ });
1271
+
1272
+ export type HandleGetContentsData = {
1273
+ path: {
1274
+ /**
1275
+ * The path to the file or directory. Empty for root.
1276
+ */
1277
+ '*path': (string) | null;
1134
1278
  /**
1135
- * The repository ID
1279
+ * The repository ID.
1136
1280
  */
1137
- repo_id: string;
1281
+ repo: string;
1282
+ };
1283
+ query?: {
1284
+ /**
1285
+ * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1286
+ */
1287
+ ref?: string;
1288
+ };
1289
+ };
1290
+
1291
+ export type HandleGetContentsResponse = (GitContents);
1292
+
1293
+ export type HandleGetContentsError = ({
1294
+ message: string;
1295
+ });
1296
+
1297
+ export type HandleGetBlobData = {
1298
+ path: {
1299
+ /**
1300
+ * The repository id
1301
+ */
1302
+ repo: string;
1138
1303
  };
1139
1304
  };
1140
1305
 
@@ -1147,13 +1312,13 @@ export type HandleGetBlobError = ({
1147
1312
  export type HandleGetCommitData = {
1148
1313
  path: {
1149
1314
  /**
1150
- * The commit hash
1315
+ * The object's hash
1151
1316
  */
1152
1317
  hash: string;
1153
1318
  /**
1154
- * The repository ID
1319
+ * The repository id
1155
1320
  */
1156
- repo_id: string;
1321
+ repo: string;
1157
1322
  };
1158
1323
  };
1159
1324
 
@@ -1163,16 +1328,35 @@ export type HandleGetCommitError = ({
1163
1328
  message: string;
1164
1329
  });
1165
1330
 
1331
+ export type HandleGetRefBranchData = {
1332
+ path: {
1333
+ /**
1334
+ * The branch's name
1335
+ */
1336
+ branch: string;
1337
+ /**
1338
+ * The repository id
1339
+ */
1340
+ repo: string;
1341
+ };
1342
+ };
1343
+
1344
+ export type HandleGetRefBranchResponse = (GitReference);
1345
+
1346
+ export type HandleGetRefBranchError = (unknown | {
1347
+ message: string;
1348
+ });
1349
+
1166
1350
  export type HandleGetTagData = {
1167
1351
  path: {
1168
1352
  /**
1169
- * The tag hash
1353
+ * The object's hash
1170
1354
  */
1171
1355
  hash: string;
1172
1356
  /**
1173
- * The repository ID
1357
+ * The repository id
1174
1358
  */
1175
- repo_id: string;
1359
+ repo: string;
1176
1360
  };
1177
1361
  };
1178
1362
 
@@ -1185,13 +1369,13 @@ export type HandleGetTagError = ({
1185
1369
  export type HandleGetTreeData = {
1186
1370
  path: {
1187
1371
  /**
1188
- * The tree hash
1372
+ * The object's hash
1189
1373
  */
1190
1374
  hash: string;
1191
1375
  /**
1192
- * The repository ID
1376
+ * The repository id
1193
1377
  */
1194
- repo_id: string;
1378
+ repo: string;
1195
1379
  };
1196
1380
  };
1197
1381
 
@@ -1201,23 +1385,25 @@ export type HandleGetTreeError = ({
1201
1385
  message: string;
1202
1386
  });
1203
1387
 
1204
- export type HandleDeleteRepoData = {
1388
+ export type HandleDownloadTarballData = {
1205
1389
  path: {
1206
1390
  /**
1207
1391
  * The repository id
1208
1392
  */
1209
1393
  repo: string;
1210
1394
  };
1395
+ query?: {
1396
+ /**
1397
+ * The git reference (branch name, commit SHA, etc.). Defaults to HEAD.
1398
+ */
1399
+ ref?: string;
1400
+ };
1211
1401
  };
1212
1402
 
1213
- export type HandleDeleteRepoResponse = ({
1214
- [key: string]: unknown;
1215
- });
1403
+ export type HandleDownloadTarballResponse = (unknown);
1216
1404
 
1217
- export type HandleDeleteRepoError = ({
1405
+ export type HandleDownloadTarballError = ({
1218
1406
  message: string;
1219
- } | {
1220
- [key: string]: unknown;
1221
1407
  });
1222
1408
 
1223
1409
  export type HandleListGitTriggersData = {
@@ -1295,6 +1481,25 @@ export type HandleGetLogsResponse = (FreestyleGetLogsResponse);
1295
1481
 
1296
1482
  export type HandleGetLogsError = unknown;
1297
1483
 
1484
+ export type HandleGetRefTagData = {
1485
+ path: {
1486
+ /**
1487
+ * The repository id
1488
+ */
1489
+ repo: string;
1490
+ /**
1491
+ * The tag's name
1492
+ */
1493
+ tag: string;
1494
+ };
1495
+ };
1496
+
1497
+ export type HandleGetRefTagResponse = (GitReference);
1498
+
1499
+ export type HandleGetRefTagError = (unknown | {
1500
+ message: string;
1501
+ });
1502
+
1298
1503
  export type HandleDeployWebData = {
1299
1504
  body: FreestyleDeployWebPayload;
1300
1505
  };