freestyle-sandboxes 0.0.92 → 0.0.94

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.
@@ -1,4 +1,4 @@
1
- import { D as DeploymentSource } from '../types.gen-CG8tIO9M.js';
1
+ import { D as DeploymentSource } from '../types.gen--Oxc46AH.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-CG8tIO9M.js';
1
+ import { D as DeploymentSource } from '../types.gen--Oxc46AH.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-CG8tIO9M.js';
1
+ import { D as DeploymentSource } from '../types.gen--Oxc46AH.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-CG8tIO9M.js';
1
+ import { D as DeploymentSource } from '../types.gen--Oxc46AH.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, HandleListDomainsData, HandleListDomainsError, HandleListDomainsResponse, HandleListDomainMappingsData, HandleListDomainMappingsError, HandleListDomainMappingsResponse, 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, HandleGetDefaultBranchData, HandleGetDefaultBranchError, HandleGetDefaultBranchResponse, HandleSetDefaultBranchData, HandleSetDefaultBranchError, HandleSetDefaultBranchResponse, GetGithubSyncData, GetGithubSyncError, GetGithubSyncResponse, ConfigureGithubSyncData, ConfigureGithubSyncError, ConfigureGithubSyncResponse, RemoveGithubSyncData, RemoveGithubSyncError, RemoveGithubSyncResponse, HandleDeleteRepoData, HandleDeleteRepoError, HandleDeleteRepoResponse, HandleGetContentsData, HandleGetContentsError, HandleGetContentsResponse, HandleGetBlobData, HandleGetBlobError, HandleGetBlobResponse, HandleGetCommitData, HandleGetCommitError, HandleGetCommitResponse, HandleGetRefBranchData, HandleGetRefBranchError, HandleGetRefBranchResponse, HandleGetRefTagData, HandleGetRefTagError, HandleGetRefTagResponse, HandleGetTagData, HandleGetTagError, HandleGetTagResponse, HandleGetTreeData, HandleGetTreeError, HandleGetTreeResponse, HandleDownloadTarballData, HandleDownloadTarballError, HandleDownloadTarballResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleDownloadZipData, HandleDownloadZipError, HandleDownloadZipResponse, 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, HandleListDomainsData, HandleListDomainsError, HandleListDomainsResponse, HandleListDomainMappingsData, HandleListDomainMappingsError, HandleListDomainMappingsResponse, 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, HandleGetDefaultBranchData, HandleGetDefaultBranchError, HandleGetDefaultBranchResponse, HandleSetDefaultBranchData, HandleSetDefaultBranchError, HandleSetDefaultBranchResponse, GetGithubSyncData, GetGithubSyncError, GetGithubSyncResponse, ConfigureGithubSyncData, ConfigureGithubSyncError, ConfigureGithubSyncResponse, RemoveGithubSyncData, RemoveGithubSyncError, RemoveGithubSyncResponse, HandleGetRepoInfoData, HandleGetRepoInfoError, HandleGetRepoInfoResponse, HandleDeleteRepoData, HandleDeleteRepoError, HandleDeleteRepoResponse, HandleGetContentsData, HandleGetContentsError, HandleGetContentsResponse, HandleGetBlobData, HandleGetBlobError, HandleGetBlobResponse, HandleListCommitsData, HandleListCommitsError, HandleListCommitsResponse, HandleGetCommitData, HandleGetCommitError, HandleGetCommitResponse, HandleGetRefBranchData, HandleGetRefBranchError, HandleGetRefBranchResponse, HandleGetRefTagData, HandleGetRefTagError, HandleGetRefTagResponse, HandleGetTagData, HandleGetTagError, HandleGetTagResponse, HandleGetTreeData, HandleGetTreeError, HandleGetTreeResponse, HandleDownloadTarballData, HandleDownloadTarballError, HandleDownloadTarballResponse, HandleListGitTriggersData, HandleListGitTriggersError, HandleListGitTriggersResponse, HandleCreateGitTriggerData, HandleCreateGitTriggerError, HandleCreateGitTriggerResponse, HandleDeleteGitTriggerData, HandleDeleteGitTriggerError, HandleDeleteGitTriggerResponse, HandleDownloadZipData, HandleDownloadZipError, HandleDownloadZipResponse, HandleGetLogsData, HandleGetLogsError, HandleGetLogsResponse, HandleDeployWebData, HandleDeployWebError, HandleDeployWebResponse, HandleDeployWebV2Data, HandleDeployWebV2Error, HandleDeployWebV2Response, HandleListWebDeploysData, HandleListWebDeploysError, HandleListWebDeploysResponse, HandleGetWebDeployDetailsData } from './types.gen';
5
5
 
6
6
  export const client = createClient(createConfig());
7
7
 
@@ -186,7 +186,7 @@ export const handleExecOnEphemeralDevServer = <ThrowOnError extends boolean = fa
186
186
  export const handleWriteFileFromEphemeralDevServer = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleWriteFileFromEphemeralDevServerData, ThrowOnError>) => {
187
187
  return (options?.client ?? client).put<HandleWriteFileFromEphemeralDevServerResponse, HandleWriteFileFromEphemeralDevServerError, ThrowOnError>({
188
188
  ...options,
189
- url: '/ephemeral/v1/dev-servers/files/{*filepath}'
189
+ url: '/ephemeral/v1/dev-servers/files/{filepath}'
190
190
  });
191
191
  };
192
192
 
@@ -196,7 +196,7 @@ export const handleWriteFileFromEphemeralDevServer = <ThrowOnError extends boole
196
196
  export const handleReadFileFromEphemeralDevServer = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleReadFileFromEphemeralDevServerData, ThrowOnError>) => {
197
197
  return (options?.client ?? client).post<HandleReadFileFromEphemeralDevServerResponse, HandleReadFileFromEphemeralDevServerError, ThrowOnError>({
198
198
  ...options,
199
- url: '/ephemeral/v1/dev-servers/files/{*filepath}'
199
+ url: '/ephemeral/v1/dev-servers/files/{filepath}'
200
200
  });
201
201
  };
202
202
 
@@ -474,6 +474,17 @@ export const removeGithubSync = <ThrowOnError extends boolean = false>(options:
474
474
  });
475
475
  };
476
476
 
477
+ /**
478
+ * Get repository information
479
+ * Retrieve information about a specific repository, including its ID, name, and default branch.
480
+ */
481
+ export const handleGetRepoInfo = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRepoInfoData, ThrowOnError>) => {
482
+ return (options?.client ?? client).get<HandleGetRepoInfoResponse, HandleGetRepoInfoError, ThrowOnError>({
483
+ ...options,
484
+ url: '/git/v1/repo/{repo}'
485
+ });
486
+ };
487
+
477
488
  /**
478
489
  * Delete a repository
479
490
  * Delete a repository. This is irreversible, and will also delete the repository on the Git server.
@@ -492,7 +503,7 @@ export const handleDeleteRepo = <ThrowOnError extends boolean = false>(options:
492
503
  export const handleGetContents = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetContentsData, ThrowOnError>) => {
493
504
  return (options?.client ?? client).get<HandleGetContentsResponse, HandleGetContentsError, ThrowOnError>({
494
505
  ...options,
495
- url: '/git/v1/repo/{repo}/contents/{*path}'
506
+ url: '/git/v1/repo/{repo}/contents/{path}'
496
507
  });
497
508
  };
498
509
 
@@ -507,6 +518,17 @@ export const handleGetBlob = <ThrowOnError extends boolean = false>(options: Opt
507
518
  });
508
519
  };
509
520
 
521
+ /**
522
+ * List commits for a repository
523
+ * List commits from the Git database for a specific repository and branch.
524
+ */
525
+ export const handleListCommits = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleListCommitsData, ThrowOnError>) => {
526
+ return (options?.client ?? client).get<HandleListCommitsResponse, HandleListCommitsError, ThrowOnError>({
527
+ ...options,
528
+ url: '/git/v1/repo/{repo}/git/commits'
529
+ });
530
+ };
531
+
510
532
  /**
511
533
  * Get a commit object
512
534
  * Get a commit from the Git database with detailed information.
@@ -525,7 +547,7 @@ export const handleGetCommit = <ThrowOnError extends boolean = false>(options: O
525
547
  export const handleGetRefBranch = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefBranchData, ThrowOnError>) => {
526
548
  return (options?.client ?? client).get<HandleGetRefBranchResponse, HandleGetRefBranchError, ThrowOnError>({
527
549
  ...options,
528
- url: '/git/v1/repo/{repo}/git/refs/heads/{*branch}'
550
+ url: '/git/v1/repo/{repo}/git/refs/heads/{branch}'
529
551
  });
530
552
  };
531
553
 
@@ -536,7 +558,7 @@ export const handleGetRefBranch = <ThrowOnError extends boolean = false>(options
536
558
  export const handleGetRefTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefTagData, ThrowOnError>) => {
537
559
  return (options?.client ?? client).get<HandleGetRefTagResponse, HandleGetRefTagError, ThrowOnError>({
538
560
  ...options,
539
- url: '/git/v1/repo/{repo}/git/refs/tags/{*tag}'
561
+ url: '/git/v1/repo/{repo}/git/refs/tags/{tag}'
540
562
  });
541
563
  };
542
564
 
@@ -48,6 +48,29 @@ export type BranchDetails = {
48
48
  target?: (string) | null;
49
49
  };
50
50
 
51
+ export type CommitList = {
52
+ /**
53
+ * List of commits
54
+ */
55
+ commits: Array<CommitObject>;
56
+ /**
57
+ * Number of commits returned in this page
58
+ */
59
+ count: number;
60
+ /**
61
+ * Number of commits skipped (offset)
62
+ */
63
+ offset: number;
64
+ /**
65
+ * Maximum number of commits requested (limit)
66
+ */
67
+ limit: number;
68
+ /**
69
+ * Total number of commits available in the branch
70
+ */
71
+ total: number;
72
+ };
73
+
51
74
  /**
52
75
  * Commit object
53
76
  */
@@ -114,34 +137,37 @@ export type CreateRecordParams = {
114
137
  };
115
138
 
116
139
  export type CreateRepoImport = {
140
+ /**
141
+ * A map of file names to their contents.
142
+ */
117
143
  files: {
118
144
  [key: string]: (string);
119
145
  };
120
- commit_message: string;
121
- author_name?: (string) | null;
122
- author_email?: (string) | null;
146
+ commitMessage: string;
147
+ authorName?: (string) | null;
148
+ authorEmail?: (string) | null;
123
149
  type: 'files';
124
150
  } | {
125
151
  url: string;
126
152
  dir?: (string) | null;
127
- commit_message: string;
128
- author_name?: (string) | null;
129
- author_email?: (string) | null;
153
+ commitMessage: string;
154
+ authorName?: (string) | null;
155
+ authorEmail?: (string) | null;
130
156
  type: 'tar';
131
157
  } | {
132
158
  url: string;
133
159
  dir?: (string) | null;
134
- commit_message: string;
135
- author_name?: (string) | null;
136
- author_email?: (string) | null;
160
+ commitMessage: string;
161
+ authorName?: (string) | null;
162
+ authorEmail?: (string) | null;
137
163
  type: 'zip';
138
164
  } | {
139
165
  url: string;
140
166
  branch?: (string) | null;
141
167
  dir?: (string) | null;
142
- commit_message: string;
143
- author_name?: (string) | null;
144
- author_email?: (string) | null;
168
+ commitMessage: string;
169
+ authorName?: (string) | null;
170
+ authorEmail?: (string) | null;
145
171
  type: 'git';
146
172
  };
147
173
 
@@ -164,7 +190,13 @@ export type CreateRepositoryRequest = {
164
190
  * The default branch name for the repository. Defaults to "main" if not specified.
165
191
  */
166
192
  defaultBranch?: (string) | null;
193
+ /**
194
+ * Fork from another Git repository. Cannot be used with `import`.
195
+ */
167
196
  source?: CreateRepoSource;
197
+ /**
198
+ * Import static content with an initial commit. Cannot be used with `source`.
199
+ */
168
200
  import?: CreateRepoImport;
169
201
  };
170
202
 
@@ -176,11 +208,8 @@ export type CreateRepoSource = {
176
208
  url: string;
177
209
  branch?: (string) | null;
178
210
  depth?: (number) | null;
179
- type: 'git';
180
211
  };
181
212
 
182
- export type type2 = 'git';
183
-
184
213
  export type CustomBuildOptions = {
185
214
  command?: (string) | null;
186
215
  envVars?: {
@@ -231,6 +260,7 @@ export type DescribePermissionResponseSuccess = {
231
260
 
232
261
  export type DevServer = {
233
262
  repoId: string;
263
+ gitRef?: (string) | null;
234
264
  kind: 'repo';
235
265
  };
236
266
 
@@ -239,6 +269,9 @@ export type kind2 = 'repo';
239
269
  export type DevServerRequest = {
240
270
  devCommand?: (string) | null;
241
271
  preDevCommandOnce?: (string) | null;
272
+ /**
273
+ * @deprecated
274
+ */
242
275
  baseId?: (string) | null;
243
276
  envVars?: {
244
277
  [key: string]: (string);
@@ -258,6 +291,11 @@ export type DevServerRequest = {
258
291
  */
259
292
  repo?: (string) | null;
260
293
  gitRef?: (string) | null;
294
+ /**
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.
297
+ */
298
+ ports?: Array<PortConfig> | null;
261
299
  };
262
300
 
263
301
  export type DevServerStatusRequest = {
@@ -377,7 +415,7 @@ export type FreestyleDeleteDomainVerificationRequest = {
377
415
 
378
416
  export type FreestyleDeployWebConfiguration = {
379
417
  /**
380
- * The entrypoint file for the website
418
+ * The entrypoint file for the website, if none is provided, we will try to automatically detect it.
381
419
  */
382
420
  entrypoint?: (string) | null;
383
421
  /**
@@ -600,7 +638,7 @@ export type GitContents = {
600
638
  type: 'dir';
601
639
  };
602
640
 
603
- export type type3 = 'file';
641
+ export type type2 = 'file';
604
642
 
605
643
  export type GitContentsDirEntryItem = {
606
644
  name: string;
@@ -710,6 +748,11 @@ export type NetworkPermissionData = {
710
748
  behavior?: Behavior;
711
749
  };
712
750
 
751
+ export type PortConfig = {
752
+ port: number;
753
+ targetPort: number;
754
+ };
755
+
713
756
  export type ReadFileEphemeralDevServerResponses = {
714
757
  id: string;
715
758
  isNew: boolean;
@@ -726,11 +769,6 @@ export type ReadFileEphemeralDevServerResponses = {
726
769
  isNew: boolean;
727
770
  } | InternalServerError;
728
771
 
729
- export type ReadFileRequest = {
730
- devServer: DevServer;
731
- encoding?: string;
732
- };
733
-
734
772
  export type RepositoryInfo = {
735
773
  id: string;
736
774
  name?: (string) | null;
@@ -823,7 +861,7 @@ export type TreeEntry = {
823
861
  type: 'tree';
824
862
  };
825
863
 
826
- export type type4 = 'blob';
864
+ export type type3 = 'blob';
827
865
 
828
866
  /**
829
867
  * Tree object
@@ -845,12 +883,6 @@ export type UpdatePermissionRequest = {
845
883
 
846
884
  export type Visibility = 'public' | 'private';
847
885
 
848
- export type WriteFileRequest = {
849
- devServer: DevServer;
850
- content: string;
851
- encoding?: string;
852
- };
853
-
854
886
  export type HandleDeployCloudstateData = {
855
887
  body: FreestyleCloudstateDeployRequest;
856
888
  };
@@ -1061,7 +1093,12 @@ export type HandleExecOnEphemeralDevServerResponse = ({
1061
1093
  export type HandleExecOnEphemeralDevServerError = (InternalServerError);
1062
1094
 
1063
1095
  export type HandleWriteFileFromEphemeralDevServerData = {
1064
- body: WriteFileRequest;
1096
+ path: {
1097
+ /**
1098
+ * The path to the file to read from the dev server
1099
+ */
1100
+ filepath: string;
1101
+ };
1065
1102
  };
1066
1103
 
1067
1104
  export type HandleWriteFileFromEphemeralDevServerResponse = ({
@@ -1072,7 +1109,12 @@ export type HandleWriteFileFromEphemeralDevServerResponse = ({
1072
1109
  export type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
1073
1110
 
1074
1111
  export type HandleReadFileFromEphemeralDevServerData = {
1075
- body: ReadFileRequest;
1112
+ path: {
1113
+ /**
1114
+ * The path to the file to read from the dev server
1115
+ */
1116
+ filepath: string;
1117
+ };
1076
1118
  };
1077
1119
 
1078
1120
  export type HandleReadFileFromEphemeralDevServerResponse = ({
@@ -1161,7 +1203,7 @@ export type HandleGetExecuteRunData = {
1161
1203
 
1162
1204
  export type HandleGetExecuteRunResponse = ({
1163
1205
  metadata: ExecuteLogEntry;
1164
- code: ExecuteRunInfo;
1206
+ code?: (null | ExecuteRunInfo);
1165
1207
  });
1166
1208
 
1167
1209
  export type HandleGetExecuteRunError = ({
@@ -1379,7 +1421,13 @@ export type HandleCreateRepoData = {
1379
1421
  * The default branch name for the repository. Defaults to "main" if not specified.
1380
1422
  */
1381
1423
  defaultBranch?: (string) | null;
1424
+ /**
1425
+ * Fork from another Git repository. Cannot be used with `import`.
1426
+ */
1382
1427
  source?: CreateRepoSource;
1428
+ /**
1429
+ * Import static content with an initial commit. Cannot be used with `source`.
1430
+ */
1383
1431
  import?: CreateRepoImport;
1384
1432
  };
1385
1433
  };
@@ -1457,6 +1505,19 @@ export type RemoveGithubSyncResponse = (unknown);
1457
1505
 
1458
1506
  export type RemoveGithubSyncError = (unknown);
1459
1507
 
1508
+ export type HandleGetRepoInfoData = {
1509
+ path: {
1510
+ /**
1511
+ * The repository id
1512
+ */
1513
+ repo: string;
1514
+ };
1515
+ };
1516
+
1517
+ export type HandleGetRepoInfoResponse = (RepositoryInfo);
1518
+
1519
+ export type HandleGetRepoInfoError = (unknown);
1520
+
1460
1521
  export type HandleDeleteRepoData = {
1461
1522
  path: {
1462
1523
  /**
@@ -1481,7 +1542,7 @@ export type HandleGetContentsData = {
1481
1542
  /**
1482
1543
  * The path to the file or directory. Empty for root.
1483
1544
  */
1484
- '*path': (string) | null;
1545
+ path: (string) | null;
1485
1546
  /**
1486
1547
  * The repository ID.
1487
1548
  */
@@ -1503,6 +1564,10 @@ export type HandleGetContentsError = ({
1503
1564
 
1504
1565
  export type HandleGetBlobData = {
1505
1566
  path: {
1567
+ /**
1568
+ * The object's hash
1569
+ */
1570
+ hash: string;
1506
1571
  /**
1507
1572
  * The repository id
1508
1573
  */
@@ -1516,6 +1581,35 @@ export type HandleGetBlobError = ({
1516
1581
  message: string;
1517
1582
  });
1518
1583
 
1584
+ export type HandleListCommitsData = {
1585
+ path: {
1586
+ /**
1587
+ * The repository id
1588
+ */
1589
+ repo: string;
1590
+ };
1591
+ query?: {
1592
+ /**
1593
+ * Branch name (defaults to HEAD)
1594
+ */
1595
+ branch?: (string) | null;
1596
+ /**
1597
+ * Maximum number of commits to return (default: 50, max: 500)
1598
+ */
1599
+ limit?: (number) | null;
1600
+ /**
1601
+ * Number of commits to skip (default: 0)
1602
+ */
1603
+ offset?: (number) | null;
1604
+ };
1605
+ };
1606
+
1607
+ export type HandleListCommitsResponse = (CommitList);
1608
+
1609
+ export type HandleListCommitsError = ({
1610
+ message: string;
1611
+ });
1612
+
1519
1613
  export type HandleGetCommitData = {
1520
1614
  path: {
1521
1615
  /**
@@ -1679,6 +1773,10 @@ export type HandleCreateGitTriggerError = ({
1679
1773
 
1680
1774
  export type HandleDeleteGitTriggerData = {
1681
1775
  path: {
1776
+ /**
1777
+ * The repository id
1778
+ */
1779
+ repo: string;
1682
1780
  /**
1683
1781
  * The trigger id
1684
1782
  */