freestyle-sandboxes 0.0.91 → 0.0.93

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-BpWMzgc3.js';
1
+ import { D as DeploymentSource } from '../types.gen-CG8tIO9M.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-BpWMzgc3.js';
1
+ import { D as DeploymentSource } from '../types.gen-CG8tIO9M.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-BpWMzgc3.js';
1
+ import { D as DeploymentSource } from '../types.gen-CG8tIO9M.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-BpWMzgc3.js';
1
+ import { D as DeploymentSource } from '../types.gen-CG8tIO9M.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, HandleListDomainMappingsData, HandleListDomainMappingsError, HandleListDomainMappingsResponse, HandleVerifyWildcardData, HandleVerifyWildcardError, HandleVerifyWildcardResponse, HandleListDomainsData, 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, 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
 
@@ -57,16 +57,6 @@ export const handleDeleteRecord = <ThrowOnError extends boolean = false>(options
57
57
  });
58
58
  };
59
59
 
60
- /**
61
- * List Domain Mappings
62
- */
63
- export const handleListDomainMappings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleListDomainMappingsData, ThrowOnError>) => {
64
- return (options?.client ?? client).get<HandleListDomainMappingsResponse, HandleListDomainMappingsError, ThrowOnError>({
65
- ...options,
66
- url: '/domains/mappings'
67
- });
68
- };
69
-
70
60
  /**
71
61
  * Provision a wildcard certificate
72
62
  * Provisions a wildcard certificate for a verified domain
@@ -94,6 +84,17 @@ export const handleListDomains = <ThrowOnError extends boolean = false>(options?
94
84
  });
95
85
  };
96
86
 
87
+ /**
88
+ * List Domain Mappings
89
+ * List domain mappings for any query based on exact domain or domain ownership (the domain ownership that gave the right to use the domain)
90
+ */
91
+ export const handleListDomainMappings = <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<HandleListDomainMappingsData, ThrowOnError>) => {
92
+ return (options?.client ?? client).get<HandleListDomainMappingsResponse, HandleListDomainMappingsError, ThrowOnError>({
93
+ ...options,
94
+ url: '/domains/v1/mappings'
95
+ });
96
+ };
97
+
97
98
  /**
98
99
  * Insert Domain Mapping
99
100
  * This will unmap any other deployment to this domain
@@ -185,7 +186,7 @@ export const handleExecOnEphemeralDevServer = <ThrowOnError extends boolean = fa
185
186
  export const handleWriteFileFromEphemeralDevServer = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleWriteFileFromEphemeralDevServerData, ThrowOnError>) => {
186
187
  return (options?.client ?? client).put<HandleWriteFileFromEphemeralDevServerResponse, HandleWriteFileFromEphemeralDevServerError, ThrowOnError>({
187
188
  ...options,
188
- url: '/ephemeral/v1/dev-servers/files/{*filepath}'
189
+ url: '/ephemeral/v1/dev-servers/files/{filepath}'
189
190
  });
190
191
  };
191
192
 
@@ -195,7 +196,7 @@ export const handleWriteFileFromEphemeralDevServer = <ThrowOnError extends boole
195
196
  export const handleReadFileFromEphemeralDevServer = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleReadFileFromEphemeralDevServerData, ThrowOnError>) => {
196
197
  return (options?.client ?? client).post<HandleReadFileFromEphemeralDevServerResponse, HandleReadFileFromEphemeralDevServerError, ThrowOnError>({
197
198
  ...options,
198
- url: '/ephemeral/v1/dev-servers/files/{*filepath}'
199
+ url: '/ephemeral/v1/dev-servers/files/{filepath}'
199
200
  });
200
201
  };
201
202
 
@@ -473,6 +474,17 @@ export const removeGithubSync = <ThrowOnError extends boolean = false>(options:
473
474
  });
474
475
  };
475
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
+
476
488
  /**
477
489
  * Delete a repository
478
490
  * Delete a repository. This is irreversible, and will also delete the repository on the Git server.
@@ -491,7 +503,7 @@ export const handleDeleteRepo = <ThrowOnError extends boolean = false>(options:
491
503
  export const handleGetContents = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetContentsData, ThrowOnError>) => {
492
504
  return (options?.client ?? client).get<HandleGetContentsResponse, HandleGetContentsError, ThrowOnError>({
493
505
  ...options,
494
- url: '/git/v1/repo/{repo}/contents/{*path}'
506
+ url: '/git/v1/repo/{repo}/contents/{path}'
495
507
  });
496
508
  };
497
509
 
@@ -506,6 +518,17 @@ export const handleGetBlob = <ThrowOnError extends boolean = false>(options: Opt
506
518
  });
507
519
  };
508
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
+
509
532
  /**
510
533
  * Get a commit object
511
534
  * Get a commit from the Git database with detailed information.
@@ -524,7 +547,7 @@ export const handleGetCommit = <ThrowOnError extends boolean = false>(options: O
524
547
  export const handleGetRefBranch = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefBranchData, ThrowOnError>) => {
525
548
  return (options?.client ?? client).get<HandleGetRefBranchResponse, HandleGetRefBranchError, ThrowOnError>({
526
549
  ...options,
527
- url: '/git/v1/repo/{repo}/git/refs/heads/{*branch}'
550
+ url: '/git/v1/repo/{repo}/git/refs/heads/{branch}'
528
551
  });
529
552
  };
530
553
 
@@ -535,7 +558,7 @@ export const handleGetRefBranch = <ThrowOnError extends boolean = false>(options
535
558
  export const handleGetRefTag = <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<HandleGetRefTagData, ThrowOnError>) => {
536
559
  return (options?.client ?? client).get<HandleGetRefTagResponse, HandleGetRefTagError, ThrowOnError>({
537
560
  ...options,
538
- url: '/git/v1/repo/{repo}/git/refs/tags/{*tag}'
561
+ url: '/git/v1/repo/{repo}/git/refs/tags/{tag}'
539
562
  });
540
563
  };
541
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);
@@ -377,7 +410,7 @@ export type FreestyleDeleteDomainVerificationRequest = {
377
410
 
378
411
  export type FreestyleDeployWebConfiguration = {
379
412
  /**
380
- * The entrypoint file for the website
413
+ * The entrypoint file for the website, if none is provided, we will try to automatically detect it.
381
414
  */
382
415
  entrypoint?: (string) | null;
383
416
  /**
@@ -600,7 +633,7 @@ export type GitContents = {
600
633
  type: 'dir';
601
634
  };
602
635
 
603
- export type type3 = 'file';
636
+ export type type2 = 'file';
604
637
 
605
638
  export type GitContentsDirEntryItem = {
606
639
  name: string;
@@ -726,11 +759,6 @@ export type ReadFileEphemeralDevServerResponses = {
726
759
  isNew: boolean;
727
760
  } | InternalServerError;
728
761
 
729
- export type ReadFileRequest = {
730
- devServer: DevServer;
731
- encoding?: string;
732
- };
733
-
734
762
  export type RepositoryInfo = {
735
763
  id: string;
736
764
  name?: (string) | null;
@@ -823,7 +851,7 @@ export type TreeEntry = {
823
851
  type: 'tree';
824
852
  };
825
853
 
826
- export type type4 = 'blob';
854
+ export type type3 = 'blob';
827
855
 
828
856
  /**
829
857
  * Tree object
@@ -845,12 +873,6 @@ export type UpdatePermissionRequest = {
845
873
 
846
874
  export type Visibility = 'public' | 'private';
847
875
 
848
- export type WriteFileRequest = {
849
- devServer: DevServer;
850
- content: string;
851
- encoding?: string;
852
- };
853
-
854
876
  export type HandleDeployCloudstateData = {
855
877
  body: FreestyleCloudstateDeployRequest;
856
878
  };
@@ -908,19 +930,6 @@ export type HandleDeleteRecordError = ({
908
930
  message: string;
909
931
  });
910
932
 
911
- export type HandleListDomainMappingsData = {
912
- query?: {
913
- domain?: (string) | null;
914
- domainOwnership?: (string) | null;
915
- limit?: (number) | null;
916
- offset?: (number) | null;
917
- };
918
- };
919
-
920
- export type HandleListDomainMappingsResponse = (Array<FreestyleSandboxDomainMapping>);
921
-
922
- export type HandleListDomainMappingsError = (unknown);
923
-
924
933
  export type HandleVerifyWildcardData = {
925
934
  path: {
926
935
  domain: string;
@@ -959,6 +968,19 @@ export type HandleListDomainsError = ({
959
968
  message: string;
960
969
  });
961
970
 
971
+ export type HandleListDomainMappingsData = {
972
+ query?: {
973
+ domain?: (string) | null;
974
+ domainOwnership?: (string) | null;
975
+ limit?: (number) | null;
976
+ offset?: (number) | null;
977
+ };
978
+ };
979
+
980
+ export type HandleListDomainMappingsResponse = (Array<FreestyleSandboxDomainMapping>);
981
+
982
+ export type HandleListDomainMappingsError = (unknown);
983
+
962
984
  export type HandleInsertDomainMappingData = {
963
985
  body: CreateDomainMappingRequest;
964
986
  path: {
@@ -966,7 +988,7 @@ export type HandleInsertDomainMappingData = {
966
988
  };
967
989
  };
968
990
 
969
- export type HandleInsertDomainMappingResponse = (unknown);
991
+ export type HandleInsertDomainMappingResponse = (FreestyleSandboxDomainMapping);
970
992
 
971
993
  export type HandleInsertDomainMappingError = ({
972
994
  message: string;
@@ -1061,7 +1083,12 @@ export type HandleExecOnEphemeralDevServerResponse = ({
1061
1083
  export type HandleExecOnEphemeralDevServerError = (InternalServerError);
1062
1084
 
1063
1085
  export type HandleWriteFileFromEphemeralDevServerData = {
1064
- body: WriteFileRequest;
1086
+ path: {
1087
+ /**
1088
+ * The path to the file to read from the dev server
1089
+ */
1090
+ filepath: string;
1091
+ };
1065
1092
  };
1066
1093
 
1067
1094
  export type HandleWriteFileFromEphemeralDevServerResponse = ({
@@ -1072,7 +1099,12 @@ export type HandleWriteFileFromEphemeralDevServerResponse = ({
1072
1099
  export type HandleWriteFileFromEphemeralDevServerError = (InternalServerError);
1073
1100
 
1074
1101
  export type HandleReadFileFromEphemeralDevServerData = {
1075
- body: ReadFileRequest;
1102
+ path: {
1103
+ /**
1104
+ * The path to the file to read from the dev server
1105
+ */
1106
+ filepath: string;
1107
+ };
1076
1108
  };
1077
1109
 
1078
1110
  export type HandleReadFileFromEphemeralDevServerResponse = ({
@@ -1161,7 +1193,7 @@ export type HandleGetExecuteRunData = {
1161
1193
 
1162
1194
  export type HandleGetExecuteRunResponse = ({
1163
1195
  metadata: ExecuteLogEntry;
1164
- code: ExecuteRunInfo;
1196
+ code?: (null | ExecuteRunInfo);
1165
1197
  });
1166
1198
 
1167
1199
  export type HandleGetExecuteRunError = ({
@@ -1379,7 +1411,13 @@ export type HandleCreateRepoData = {
1379
1411
  * The default branch name for the repository. Defaults to "main" if not specified.
1380
1412
  */
1381
1413
  defaultBranch?: (string) | null;
1414
+ /**
1415
+ * Fork from another Git repository. Cannot be used with `import`.
1416
+ */
1382
1417
  source?: CreateRepoSource;
1418
+ /**
1419
+ * Import static content with an initial commit. Cannot be used with `source`.
1420
+ */
1383
1421
  import?: CreateRepoImport;
1384
1422
  };
1385
1423
  };
@@ -1457,6 +1495,19 @@ export type RemoveGithubSyncResponse = (unknown);
1457
1495
 
1458
1496
  export type RemoveGithubSyncError = (unknown);
1459
1497
 
1498
+ export type HandleGetRepoInfoData = {
1499
+ path: {
1500
+ /**
1501
+ * The repository id
1502
+ */
1503
+ repo: string;
1504
+ };
1505
+ };
1506
+
1507
+ export type HandleGetRepoInfoResponse = (RepositoryInfo);
1508
+
1509
+ export type HandleGetRepoInfoError = (unknown);
1510
+
1460
1511
  export type HandleDeleteRepoData = {
1461
1512
  path: {
1462
1513
  /**
@@ -1481,7 +1532,7 @@ export type HandleGetContentsData = {
1481
1532
  /**
1482
1533
  * The path to the file or directory. Empty for root.
1483
1534
  */
1484
- '*path': (string) | null;
1535
+ path: (string) | null;
1485
1536
  /**
1486
1537
  * The repository ID.
1487
1538
  */
@@ -1503,6 +1554,10 @@ export type HandleGetContentsError = ({
1503
1554
 
1504
1555
  export type HandleGetBlobData = {
1505
1556
  path: {
1557
+ /**
1558
+ * The object's hash
1559
+ */
1560
+ hash: string;
1506
1561
  /**
1507
1562
  * The repository id
1508
1563
  */
@@ -1516,6 +1571,35 @@ export type HandleGetBlobError = ({
1516
1571
  message: string;
1517
1572
  });
1518
1573
 
1574
+ export type HandleListCommitsData = {
1575
+ path: {
1576
+ /**
1577
+ * The repository id
1578
+ */
1579
+ repo: string;
1580
+ };
1581
+ query?: {
1582
+ /**
1583
+ * Branch name (defaults to HEAD)
1584
+ */
1585
+ branch?: (string) | null;
1586
+ /**
1587
+ * Maximum number of commits to return (default: 50, max: 500)
1588
+ */
1589
+ limit?: (number) | null;
1590
+ /**
1591
+ * Number of commits to skip (default: 0)
1592
+ */
1593
+ offset?: (number) | null;
1594
+ };
1595
+ };
1596
+
1597
+ export type HandleListCommitsResponse = (CommitList);
1598
+
1599
+ export type HandleListCommitsError = ({
1600
+ message: string;
1601
+ });
1602
+
1519
1603
  export type HandleGetCommitData = {
1520
1604
  path: {
1521
1605
  /**
@@ -1679,6 +1763,10 @@ export type HandleCreateGitTriggerError = ({
1679
1763
 
1680
1764
  export type HandleDeleteGitTriggerData = {
1681
1765
  path: {
1766
+ /**
1767
+ * The repository id
1768
+ */
1769
+ repo: string;
1682
1770
  /**
1683
1771
  * The trigger id
1684
1772
  */