@dazl/api-client 1.0.36 → 1.0.38
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.
- package/dist/db/generated-types.d.ts +2 -0
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/sdk.gen.d.ts +3 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +20 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +168 -1
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/types.gen.d.ts +8 -0
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +2 -0
- package/src/internal/index.ts +1 -1
- package/src/internal/sdk.gen.ts +23 -1
- package/src/internal/types.gen.ts +178 -1
- package/src/public/types.gen.ts +8 -0
|
@@ -545,6 +545,14 @@ export type WorkspaceRepo = {
|
|
|
545
545
|
* Mirrors `Workspace.repoId`; exactly one registered repo is the primary
|
|
546
546
|
*/
|
|
547
547
|
isPrimary: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Dazl manages this repo as the workspace's root repo (`dazl-workspace-<name>`): sessions publish their root to it
|
|
550
|
+
*/
|
|
551
|
+
isWorkspaceRoot: boolean;
|
|
552
|
+
/**
|
|
553
|
+
* The root repo is attached but not created on GitHub yet; `repoFullName` is a bare name and `gitRepoURL` cannot be cloned
|
|
554
|
+
*/
|
|
555
|
+
pendingCreation: boolean;
|
|
548
556
|
};
|
|
549
557
|
export type HostSettingsResponse = {
|
|
550
558
|
/**
|
|
@@ -1896,6 +1904,8 @@ export type GetProjectInfoResponses = {
|
|
|
1896
1904
|
projectId: string;
|
|
1897
1905
|
branch: string;
|
|
1898
1906
|
isPrimary: boolean;
|
|
1907
|
+
isWorkspaceRoot: boolean;
|
|
1908
|
+
pendingCreation: boolean;
|
|
1899
1909
|
repoFullName: string;
|
|
1900
1910
|
token: string | null;
|
|
1901
1911
|
repoId: string;
|
|
@@ -2077,6 +2087,134 @@ export type CreateRepositoryResponses = {
|
|
|
2077
2087
|
};
|
|
2078
2088
|
};
|
|
2079
2089
|
export type CreateRepositoryResponse = CreateRepositoryResponses[keyof CreateRepositoryResponses];
|
|
2090
|
+
export type CreateProjectRepoData = {
|
|
2091
|
+
body?: {
|
|
2092
|
+
dazlId: string;
|
|
2093
|
+
installationId: number;
|
|
2094
|
+
repoName: string;
|
|
2095
|
+
isPrivate?: boolean;
|
|
2096
|
+
description?: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* Directory under the project root the repository will live in; null links it as the project's root (workspace) repository, of which a project has at most one
|
|
2099
|
+
*/
|
|
2100
|
+
dirName: string | null;
|
|
2101
|
+
};
|
|
2102
|
+
path: {
|
|
2103
|
+
projectId: string;
|
|
2104
|
+
};
|
|
2105
|
+
query?: never;
|
|
2106
|
+
url: '/github/project/{projectId}/repos';
|
|
2107
|
+
};
|
|
2108
|
+
export type CreateProjectRepoErrors = {
|
|
2109
|
+
/**
|
|
2110
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2111
|
+
*/
|
|
2112
|
+
400: {
|
|
2113
|
+
message: string;
|
|
2114
|
+
issues?: string;
|
|
2115
|
+
};
|
|
2116
|
+
/**
|
|
2117
|
+
* Unauthorized
|
|
2118
|
+
*/
|
|
2119
|
+
401: ErrorResponse;
|
|
2120
|
+
/**
|
|
2121
|
+
* Forbidden
|
|
2122
|
+
*/
|
|
2123
|
+
403: ErrorResponse;
|
|
2124
|
+
/**
|
|
2125
|
+
* Not Found
|
|
2126
|
+
*/
|
|
2127
|
+
404: ErrorResponse;
|
|
2128
|
+
/**
|
|
2129
|
+
* Conflict
|
|
2130
|
+
*/
|
|
2131
|
+
409: ErrorResponse;
|
|
2132
|
+
/**
|
|
2133
|
+
* Internal server error
|
|
2134
|
+
*/
|
|
2135
|
+
500: ErrorResponse;
|
|
2136
|
+
/**
|
|
2137
|
+
* Service Unavailable
|
|
2138
|
+
*/
|
|
2139
|
+
503: ErrorResponse;
|
|
2140
|
+
};
|
|
2141
|
+
export type CreateProjectRepoError = CreateProjectRepoErrors[keyof CreateProjectRepoErrors];
|
|
2142
|
+
export type CreateProjectRepoResponses = {
|
|
2143
|
+
/**
|
|
2144
|
+
* Repository created and linked to the project at dirName
|
|
2145
|
+
*/
|
|
2146
|
+
200: {
|
|
2147
|
+
repoId: string;
|
|
2148
|
+
repoFullName: string;
|
|
2149
|
+
repoUrl: string;
|
|
2150
|
+
branch: string;
|
|
2151
|
+
dirName: string | null;
|
|
2152
|
+
};
|
|
2153
|
+
};
|
|
2154
|
+
export type CreateProjectRepoResponse = CreateProjectRepoResponses[keyof CreateProjectRepoResponses];
|
|
2155
|
+
export type CreateWorkspaceRootRepoData = {
|
|
2156
|
+
body?: {
|
|
2157
|
+
dazlId: string;
|
|
2158
|
+
installationId: number;
|
|
2159
|
+
isPrivate?: boolean;
|
|
2160
|
+
description?: string;
|
|
2161
|
+
};
|
|
2162
|
+
path: {
|
|
2163
|
+
workspaceId: string;
|
|
2164
|
+
};
|
|
2165
|
+
query?: never;
|
|
2166
|
+
url: '/github/workspace/{workspaceId}/root-repo';
|
|
2167
|
+
};
|
|
2168
|
+
export type CreateWorkspaceRootRepoErrors = {
|
|
2169
|
+
/**
|
|
2170
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2171
|
+
*/
|
|
2172
|
+
400: {
|
|
2173
|
+
message: string;
|
|
2174
|
+
issues?: string;
|
|
2175
|
+
};
|
|
2176
|
+
/**
|
|
2177
|
+
* Unauthorized
|
|
2178
|
+
*/
|
|
2179
|
+
401: ErrorResponse;
|
|
2180
|
+
/**
|
|
2181
|
+
* Forbidden
|
|
2182
|
+
*/
|
|
2183
|
+
403: ErrorResponse;
|
|
2184
|
+
/**
|
|
2185
|
+
* Not Found
|
|
2186
|
+
*/
|
|
2187
|
+
404: ErrorResponse;
|
|
2188
|
+
/**
|
|
2189
|
+
* Conflict
|
|
2190
|
+
*/
|
|
2191
|
+
409: ErrorResponse;
|
|
2192
|
+
/**
|
|
2193
|
+
* Internal server error
|
|
2194
|
+
*/
|
|
2195
|
+
500: ErrorResponse;
|
|
2196
|
+
/**
|
|
2197
|
+
* Service Unavailable
|
|
2198
|
+
*/
|
|
2199
|
+
503: ErrorResponse;
|
|
2200
|
+
};
|
|
2201
|
+
export type CreateWorkspaceRootRepoError = CreateWorkspaceRootRepoErrors[keyof CreateWorkspaceRootRepoErrors];
|
|
2202
|
+
export type CreateWorkspaceRootRepoResponses = {
|
|
2203
|
+
/**
|
|
2204
|
+
* The workspace root repository now exists on GitHub
|
|
2205
|
+
*/
|
|
2206
|
+
200: {
|
|
2207
|
+
repoId: string;
|
|
2208
|
+
repoFullName: string;
|
|
2209
|
+
repoUrl: string;
|
|
2210
|
+
branch: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Sessions of the workspace that now have it as their root repo
|
|
2213
|
+
*/
|
|
2214
|
+
linkedProjects: number;
|
|
2215
|
+
};
|
|
2216
|
+
};
|
|
2217
|
+
export type CreateWorkspaceRootRepoResponse = CreateWorkspaceRootRepoResponses[keyof CreateWorkspaceRootRepoResponses];
|
|
2080
2218
|
export type GetOAuthUrlData = {
|
|
2081
2219
|
body?: never;
|
|
2082
2220
|
path?: never;
|
|
@@ -3132,11 +3270,18 @@ export type GetProjectInitDataResponses = {
|
|
|
3132
3270
|
gitRepoURL: string;
|
|
3133
3271
|
gitBranchToClone: string | null;
|
|
3134
3272
|
gitBranchToCreate: string | null;
|
|
3273
|
+
/**
|
|
3274
|
+
* Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
|
|
3275
|
+
*/
|
|
3135
3276
|
dirName: string;
|
|
3136
3277
|
attemptCount: number;
|
|
3137
3278
|
position: number;
|
|
3138
3279
|
createdAt: string;
|
|
3139
3280
|
updatedAt: string;
|
|
3281
|
+
/**
|
|
3282
|
+
* The repo is the workspace's Dazl-managed root repository: the container clones it AS the session root and marks the root as engine-owned
|
|
3283
|
+
*/
|
|
3284
|
+
isWorkspaceRoot?: boolean;
|
|
3140
3285
|
}>;
|
|
3141
3286
|
};
|
|
3142
3287
|
};
|
|
@@ -3395,10 +3540,18 @@ export type ListProjectReposResponses = {
|
|
|
3395
3540
|
repoFullName: string;
|
|
3396
3541
|
host: string;
|
|
3397
3542
|
/**
|
|
3398
|
-
* Directory under the project root the repo was cloned into; null for legacy root-layout repos
|
|
3543
|
+
* Directory under the project root the repo was cloned into; null for the root repo (legacy root-layout repos, and the workspace root repo)
|
|
3399
3544
|
*/
|
|
3400
3545
|
dirName: string | null;
|
|
3401
3546
|
hasActiveInstallation: boolean;
|
|
3547
|
+
/**
|
|
3548
|
+
* Dazl-managed workspace root repository (`dazl-workspace-<name>`)
|
|
3549
|
+
*/
|
|
3550
|
+
isWorkspaceRoot: boolean;
|
|
3551
|
+
/**
|
|
3552
|
+
* Attached but not created on GitHub yet; nothing can clone or push to it
|
|
3553
|
+
*/
|
|
3554
|
+
pendingCreation: boolean;
|
|
3402
3555
|
}>;
|
|
3403
3556
|
/**
|
|
3404
3557
|
* Repos awaiting their clone by the session container
|
|
@@ -3410,11 +3563,18 @@ export type ListProjectReposResponses = {
|
|
|
3410
3563
|
gitRepoURL: string;
|
|
3411
3564
|
gitBranchToClone: string | null;
|
|
3412
3565
|
gitBranchToCreate: string | null;
|
|
3566
|
+
/**
|
|
3567
|
+
* Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
|
|
3568
|
+
*/
|
|
3413
3569
|
dirName: string;
|
|
3414
3570
|
attemptCount: number;
|
|
3415
3571
|
position: number;
|
|
3416
3572
|
createdAt: string;
|
|
3417
3573
|
updatedAt: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* The repo is the workspace's Dazl-managed root repository: the container clones it AS the session root and marks the root as engine-owned
|
|
3576
|
+
*/
|
|
3577
|
+
isWorkspaceRoot?: boolean;
|
|
3418
3578
|
}>;
|
|
3419
3579
|
};
|
|
3420
3580
|
};
|
|
@@ -3481,11 +3641,18 @@ export type AddProjectRepoResponses = {
|
|
|
3481
3641
|
gitRepoURL: string;
|
|
3482
3642
|
gitBranchToClone: string | null;
|
|
3483
3643
|
gitBranchToCreate: string | null;
|
|
3644
|
+
/**
|
|
3645
|
+
* Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
|
|
3646
|
+
*/
|
|
3484
3647
|
dirName: string;
|
|
3485
3648
|
attemptCount: number;
|
|
3486
3649
|
position: number;
|
|
3487
3650
|
createdAt: string;
|
|
3488
3651
|
updatedAt: string;
|
|
3652
|
+
/**
|
|
3653
|
+
* The repo is the workspace's Dazl-managed root repository: the container clones it AS the session root and marks the root as engine-owned
|
|
3654
|
+
*/
|
|
3655
|
+
isWorkspaceRoot?: boolean;
|
|
3489
3656
|
};
|
|
3490
3657
|
};
|
|
3491
3658
|
};
|