freestyle-sandboxes 0.0.80 → 0.0.82

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 (39) hide show
  1. package/dist/inde.d.cts +0 -1
  2. package/dist/inde.d.mts +0 -1
  3. package/dist/{index-BBXyg0JQ.cjs → index-CGc0kRd_.cjs} +9 -5
  4. package/dist/{index-DCF70Xbq.mjs → index-jh-93svX.mjs} +9 -5
  5. package/dist/index.cjs +5 -14
  6. package/dist/index.d.cts +0 -1
  7. package/dist/index.d.mts +0 -1
  8. package/dist/index.mjs +5 -14
  9. package/dist/{types.gen-BVXmFV7d.d.ts → types.gen-0bQ5Wn0o.d.ts} +18 -17
  10. package/dist/{types.gen-CIf3ciN7.d.ts → types.gen-BJArgpto.d.ts} +2 -5
  11. package/dist/{types.gen-DLYohMJT.d.ts → types.gen-CfrGF-JI.d.ts} +1 -1
  12. package/dist/{types.gen-CZUnqmzP.d.ts → types.gen-DxZanGNF.d.ts} +9 -6
  13. package/openapi/sdk.gen.ts +57 -2
  14. package/openapi/types.gen.ts +134 -2
  15. package/openapi.json +1 -1
  16. package/package.json +1 -1
  17. package/src/index.ts +184 -40
  18. package/dist/index-BQHqnjZK.mjs +0 -3231
  19. package/dist/index-CEEa9WHp.cjs +0 -3238
  20. package/dist/types.gen-1sd31qLV.d.ts +0 -172
  21. package/dist/types.gen-627pxroW.d.ts +0 -830
  22. package/dist/types.gen-BCdfx7yt.d.ts +0 -760
  23. package/dist/types.gen-BaMKzqxQ.d.ts +0 -233
  24. package/dist/types.gen-BbekD8Sd.d.ts +0 -1119
  25. package/dist/types.gen-BqN1t03N.d.ts +0 -842
  26. package/dist/types.gen-BtK6PMQy.d.ts +0 -195
  27. package/dist/types.gen-C03gaIPq.d.ts +0 -297
  28. package/dist/types.gen-CMuCas4r.d.ts +0 -183
  29. package/dist/types.gen-CnEkmbco.d.ts +0 -314
  30. package/dist/types.gen-DDYpuDzZ.d.ts +0 -764
  31. package/dist/types.gen-DHmdEOOa.d.ts +0 -172
  32. package/dist/types.gen-DbTb_SrD.d.ts +0 -156
  33. package/dist/types.gen-DkQ-Dbs1.d.ts +0 -764
  34. package/dist/types.gen-DyY7Deri.d.ts +0 -138
  35. package/dist/types.gen-MBZCvIhE.d.ts +0 -311
  36. package/dist/types.gen-YhJAHBw8.d.ts +0 -233
  37. package/dist/types.gen-cCnnhnB6.d.ts +0 -182
  38. package/dist/types.gen-mg_JNXrq.d.ts +0 -830
  39. package/dist/types.gen-uDTr6v-7.d.ts +0 -731
@@ -42,6 +42,12 @@ export type BlobObject = {
42
42
  sha: string;
43
43
  };
44
44
 
45
+ export type BranchDetails = {
46
+ default: boolean;
47
+ name: string;
48
+ target?: (string) | null;
49
+ };
50
+
45
51
  /**
46
52
  * Commit object
47
53
  */
@@ -86,6 +92,13 @@ export type CommitTree = {
86
92
  sha: string;
87
93
  };
88
94
 
95
+ export type ConfigureGithubSyncRequest = {
96
+ /**
97
+ * The GitHub repository name in "owner/repo" format
98
+ */
99
+ githubRepoName: string;
100
+ };
101
+
89
102
  export type CreateDomainMappingRequest = {
90
103
  deploymentId: string;
91
104
  };
@@ -137,6 +150,7 @@ export type type = 'files';
137
150
  export type CreateRepoRequest = {
138
151
  source?: (null | CreateRepoSource);
139
152
  import?: (null | CreateRepoImport);
153
+ defaultBranch?: (string) | null;
140
154
  };
141
155
 
142
156
  export type CreateRepositoryRequest = {
@@ -146,6 +160,10 @@ export type CreateRepositoryRequest = {
146
160
  */
147
161
  name?: (string) | null;
148
162
  public?: boolean;
163
+ /**
164
+ * The default branch name for the repository. Defaults to "main" if not specified.
165
+ */
166
+ defaultBranch?: (string) | null;
149
167
  source?: CreateRepoSource;
150
168
  import?: CreateRepoImport;
151
169
  };
@@ -239,6 +257,7 @@ export type DevServerRequest = {
239
257
  * @deprecated
240
258
  */
241
259
  repo?: (string) | null;
260
+ gitRef?: (string) | null;
242
261
  };
243
262
 
244
263
  export type DevServerStatusRequest = {
@@ -466,7 +485,7 @@ export type FreestyleExecuteScriptParamsConfiguration = {
466
485
  /**
467
486
  * The script timeout
468
487
  */
469
- timeout?: (string) | null;
488
+ timeout?: (number) | null;
470
489
  /**
471
490
  * If false, we'll not resolve peer dependencies for the packages given, this can speed up execute performance, but will break packages with peers unless the peers are manually specified.
472
491
  */
@@ -540,6 +559,10 @@ export type FreestyleVerifyDomainRequest = {
540
559
  id: string;
541
560
  };
542
561
 
562
+ export type GetDefaultBranchResponse = {
563
+ defaultBranch: string;
564
+ };
565
+
543
566
  export type GitCommitPushRequest = {
544
567
  devServer: DevServer;
545
568
  message: string;
@@ -593,6 +616,19 @@ export type GitContentsDirEntryItem = {
593
616
  type: 'dir';
594
617
  };
595
618
 
619
+ export type GithubRepoSyncConfig = {
620
+ freestyleRepoId: string;
621
+ accountId: string;
622
+ installationId: number;
623
+ githubRepoId: number;
624
+ githubRepoName: string;
625
+ createdAt: string;
626
+ };
627
+
628
+ export type GithubSyncConfigResponse = {
629
+ githubRepoName: string;
630
+ };
631
+
596
632
  export type GitIdentity = {
597
633
  id: string;
598
634
  managed: boolean;
@@ -692,12 +728,31 @@ export type RepositoryInfo = {
692
728
  name?: (string) | null;
693
729
  accountId: string;
694
730
  visibility: Visibility;
731
+ defaultBranch: string;
732
+ };
733
+
734
+ export type RepositoryMetadata = {
735
+ branches: {
736
+ [key: string]: BranchDetails;
737
+ };
738
+ tags: {
739
+ [key: string]: TagDetails;
740
+ };
741
+ defaultBranch: string;
695
742
  };
696
743
 
697
744
  export type RevokeGitTokenRequest = {
698
745
  tokenId: string;
699
746
  };
700
747
 
748
+ export type SetDefaultBranchRequest = {
749
+ defaultBranch: string;
750
+ };
751
+
752
+ export type SetDefaultBranchResponse = {
753
+ [key: string]: unknown;
754
+ };
755
+
701
756
  export type ShutdownDevServerRequest = {
702
757
  /**
703
758
  * The dev server to shutdown
@@ -714,6 +769,12 @@ export type Signature = {
714
769
  email: string;
715
770
  };
716
771
 
772
+ export type TagDetails = {
773
+ name: string;
774
+ target: string;
775
+ message?: (string) | null;
776
+ };
777
+
717
778
  /**
718
779
  * Tag object
719
780
  */
@@ -1261,7 +1322,7 @@ export type HandleListRepositoriesData = {
1261
1322
  };
1262
1323
 
1263
1324
  export type HandleListRepositoriesResponse = ({
1264
- repositories: Array<RepositoryInfo>;
1325
+ repositories: Array<RepositoryMetadata>;
1265
1326
  total: number;
1266
1327
  offset: number;
1267
1328
  });
@@ -1278,6 +1339,10 @@ export type HandleCreateRepoData = {
1278
1339
  */
1279
1340
  name?: (string) | null;
1280
1341
  public?: boolean;
1342
+ /**
1343
+ * The default branch name for the repository. Defaults to "main" if not specified.
1344
+ */
1345
+ defaultBranch?: (string) | null;
1281
1346
  source?: CreateRepoSource;
1282
1347
  import?: CreateRepoImport;
1283
1348
  };
@@ -1289,6 +1354,73 @@ export type HandleCreateRepoError = ({
1289
1354
  message: string;
1290
1355
  });
1291
1356
 
1357
+ export type HandleGetDefaultBranchData = {
1358
+ path: {
1359
+ /**
1360
+ * The repository ID
1361
+ */
1362
+ repo_id: string;
1363
+ };
1364
+ };
1365
+
1366
+ export type HandleGetDefaultBranchResponse = (GetDefaultBranchResponse);
1367
+
1368
+ export type HandleGetDefaultBranchError = unknown;
1369
+
1370
+ export type HandleSetDefaultBranchData = {
1371
+ body: SetDefaultBranchRequest;
1372
+ path: {
1373
+ /**
1374
+ * The repository ID
1375
+ */
1376
+ repo_id: string;
1377
+ };
1378
+ };
1379
+
1380
+ export type HandleSetDefaultBranchResponse = (SetDefaultBranchResponse);
1381
+
1382
+ export type HandleSetDefaultBranchError = unknown;
1383
+
1384
+ export type GetGithubSyncData = {
1385
+ path: {
1386
+ /**
1387
+ * Repository ID
1388
+ */
1389
+ repo_id: string;
1390
+ };
1391
+ };
1392
+
1393
+ export type GetGithubSyncResponse = (GithubSyncConfigResponse);
1394
+
1395
+ export type GetGithubSyncError = (unknown);
1396
+
1397
+ export type ConfigureGithubSyncData = {
1398
+ body: ConfigureGithubSyncRequest;
1399
+ path: {
1400
+ /**
1401
+ * Repository ID
1402
+ */
1403
+ repo_id: string;
1404
+ };
1405
+ };
1406
+
1407
+ export type ConfigureGithubSyncResponse = (unknown);
1408
+
1409
+ export type ConfigureGithubSyncError = (unknown);
1410
+
1411
+ export type RemoveGithubSyncData = {
1412
+ path: {
1413
+ /**
1414
+ * Repository ID
1415
+ */
1416
+ repo_id: string;
1417
+ };
1418
+ };
1419
+
1420
+ export type RemoveGithubSyncResponse = (unknown);
1421
+
1422
+ export type RemoveGithubSyncError = (unknown);
1423
+
1292
1424
  export type HandleDeleteRepoData = {
1293
1425
  path: {
1294
1426
  /**