@dazl/api-client 1.0.36 → 1.0.39
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 +5 -1
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/db/jsonb.types.d.ts +33 -0
- package/dist/db/jsonb.types.d.ts.map +1 -1
- package/dist/db/jsonb.types.js +2 -1
- package/dist/db/jsonb.types.js.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/sdk.gen.d.ts +11 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +54 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +534 -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 +5 -1
- package/src/db/jsonb.types.ts +26 -0
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +63 -1
- package/src/internal/types.gen.ts +581 -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
|
/**
|
|
@@ -920,6 +928,47 @@ export type EditReplyInput = {
|
|
|
920
928
|
*/
|
|
921
929
|
mentions?: Array<UserMention>;
|
|
922
930
|
};
|
|
931
|
+
export type WorkspaceSecretsResponse = {
|
|
932
|
+
workspaceId: string | null;
|
|
933
|
+
/**
|
|
934
|
+
* One entry per repository that holds a readable copy
|
|
935
|
+
*/
|
|
936
|
+
secrets: Array<RepoSecretsEntry>;
|
|
937
|
+
/**
|
|
938
|
+
* Repositories whose stored copy cannot be served
|
|
939
|
+
*/
|
|
940
|
+
unreadable: Array<string>;
|
|
941
|
+
};
|
|
942
|
+
export type RepoSecretsEntry = {
|
|
943
|
+
repo: string;
|
|
944
|
+
secrets: string;
|
|
945
|
+
};
|
|
946
|
+
export type SetWorkspaceSecretsResponse = {
|
|
947
|
+
stored: boolean;
|
|
948
|
+
workspaceId: string | null;
|
|
949
|
+
reason: 'stored' | 'too-many-repos' | 'no-workspace';
|
|
950
|
+
};
|
|
951
|
+
export type SetWorkspaceSecretsRequest = {
|
|
952
|
+
repo: string;
|
|
953
|
+
secrets: string;
|
|
954
|
+
};
|
|
955
|
+
export type WorkspaceSecretsByWorkspaceResponse = {
|
|
956
|
+
/**
|
|
957
|
+
* One entry per repository that holds a readable copy
|
|
958
|
+
*/
|
|
959
|
+
secrets: Array<RepoSecretsEntry>;
|
|
960
|
+
/**
|
|
961
|
+
* Repositories whose stored copy cannot be served
|
|
962
|
+
*/
|
|
963
|
+
unreadable: Array<string>;
|
|
964
|
+
};
|
|
965
|
+
export type SetWorkspaceSecretsByWorkspaceResponse = {
|
|
966
|
+
stored: boolean;
|
|
967
|
+
reason: 'stored' | 'too-many-repos';
|
|
968
|
+
};
|
|
969
|
+
export type DeleteWorkspaceSecretsResponse = {
|
|
970
|
+
removed: boolean;
|
|
971
|
+
};
|
|
923
972
|
export type EnsureMyUserData = {
|
|
924
973
|
body?: {
|
|
925
974
|
name?: string;
|
|
@@ -1896,6 +1945,8 @@ export type GetProjectInfoResponses = {
|
|
|
1896
1945
|
projectId: string;
|
|
1897
1946
|
branch: string;
|
|
1898
1947
|
isPrimary: boolean;
|
|
1948
|
+
isWorkspaceRoot: boolean;
|
|
1949
|
+
pendingCreation: boolean;
|
|
1899
1950
|
repoFullName: string;
|
|
1900
1951
|
token: string | null;
|
|
1901
1952
|
repoId: string;
|
|
@@ -2074,9 +2125,149 @@ export type CreateRepositoryResponses = {
|
|
|
2074
2125
|
repoFullName: string;
|
|
2075
2126
|
repoUrl: string;
|
|
2076
2127
|
branch: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2130
|
+
*/
|
|
2131
|
+
installationWarning?: string;
|
|
2077
2132
|
};
|
|
2078
2133
|
};
|
|
2079
2134
|
export type CreateRepositoryResponse = CreateRepositoryResponses[keyof CreateRepositoryResponses];
|
|
2135
|
+
export type CreateProjectRepoData = {
|
|
2136
|
+
body?: {
|
|
2137
|
+
dazlId: string;
|
|
2138
|
+
installationId: number;
|
|
2139
|
+
repoName: string;
|
|
2140
|
+
isPrivate?: boolean;
|
|
2141
|
+
description?: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* 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
|
|
2144
|
+
*/
|
|
2145
|
+
dirName: string | null;
|
|
2146
|
+
};
|
|
2147
|
+
path: {
|
|
2148
|
+
projectId: string;
|
|
2149
|
+
};
|
|
2150
|
+
query?: never;
|
|
2151
|
+
url: '/github/project/{projectId}/repos';
|
|
2152
|
+
};
|
|
2153
|
+
export type CreateProjectRepoErrors = {
|
|
2154
|
+
/**
|
|
2155
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2156
|
+
*/
|
|
2157
|
+
400: {
|
|
2158
|
+
message: string;
|
|
2159
|
+
issues?: string;
|
|
2160
|
+
};
|
|
2161
|
+
/**
|
|
2162
|
+
* Unauthorized
|
|
2163
|
+
*/
|
|
2164
|
+
401: ErrorResponse;
|
|
2165
|
+
/**
|
|
2166
|
+
* Forbidden
|
|
2167
|
+
*/
|
|
2168
|
+
403: ErrorResponse;
|
|
2169
|
+
/**
|
|
2170
|
+
* Not Found
|
|
2171
|
+
*/
|
|
2172
|
+
404: ErrorResponse;
|
|
2173
|
+
/**
|
|
2174
|
+
* Conflict
|
|
2175
|
+
*/
|
|
2176
|
+
409: ErrorResponse;
|
|
2177
|
+
/**
|
|
2178
|
+
* Internal server error
|
|
2179
|
+
*/
|
|
2180
|
+
500: ErrorResponse;
|
|
2181
|
+
/**
|
|
2182
|
+
* Service Unavailable
|
|
2183
|
+
*/
|
|
2184
|
+
503: ErrorResponse;
|
|
2185
|
+
};
|
|
2186
|
+
export type CreateProjectRepoError = CreateProjectRepoErrors[keyof CreateProjectRepoErrors];
|
|
2187
|
+
export type CreateProjectRepoResponses = {
|
|
2188
|
+
/**
|
|
2189
|
+
* Repository created and linked to the project at dirName
|
|
2190
|
+
*/
|
|
2191
|
+
200: {
|
|
2192
|
+
repoId: string;
|
|
2193
|
+
repoFullName: string;
|
|
2194
|
+
repoUrl: string;
|
|
2195
|
+
branch: string;
|
|
2196
|
+
dirName: string | null;
|
|
2197
|
+
/**
|
|
2198
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2199
|
+
*/
|
|
2200
|
+
installationWarning?: string;
|
|
2201
|
+
};
|
|
2202
|
+
};
|
|
2203
|
+
export type CreateProjectRepoResponse = CreateProjectRepoResponses[keyof CreateProjectRepoResponses];
|
|
2204
|
+
export type CreateWorkspaceRootRepoData = {
|
|
2205
|
+
body?: {
|
|
2206
|
+
dazlId: string;
|
|
2207
|
+
installationId: number;
|
|
2208
|
+
isPrivate?: boolean;
|
|
2209
|
+
description?: string;
|
|
2210
|
+
};
|
|
2211
|
+
path: {
|
|
2212
|
+
workspaceId: string;
|
|
2213
|
+
};
|
|
2214
|
+
query?: never;
|
|
2215
|
+
url: '/github/workspace/{workspaceId}/root-repo';
|
|
2216
|
+
};
|
|
2217
|
+
export type CreateWorkspaceRootRepoErrors = {
|
|
2218
|
+
/**
|
|
2219
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2220
|
+
*/
|
|
2221
|
+
400: {
|
|
2222
|
+
message: string;
|
|
2223
|
+
issues?: string;
|
|
2224
|
+
};
|
|
2225
|
+
/**
|
|
2226
|
+
* Unauthorized
|
|
2227
|
+
*/
|
|
2228
|
+
401: ErrorResponse;
|
|
2229
|
+
/**
|
|
2230
|
+
* Forbidden
|
|
2231
|
+
*/
|
|
2232
|
+
403: ErrorResponse;
|
|
2233
|
+
/**
|
|
2234
|
+
* Not Found
|
|
2235
|
+
*/
|
|
2236
|
+
404: ErrorResponse;
|
|
2237
|
+
/**
|
|
2238
|
+
* Conflict
|
|
2239
|
+
*/
|
|
2240
|
+
409: ErrorResponse;
|
|
2241
|
+
/**
|
|
2242
|
+
* Internal server error
|
|
2243
|
+
*/
|
|
2244
|
+
500: ErrorResponse;
|
|
2245
|
+
/**
|
|
2246
|
+
* Service Unavailable
|
|
2247
|
+
*/
|
|
2248
|
+
503: ErrorResponse;
|
|
2249
|
+
};
|
|
2250
|
+
export type CreateWorkspaceRootRepoError = CreateWorkspaceRootRepoErrors[keyof CreateWorkspaceRootRepoErrors];
|
|
2251
|
+
export type CreateWorkspaceRootRepoResponses = {
|
|
2252
|
+
/**
|
|
2253
|
+
* The workspace root repository now exists on GitHub
|
|
2254
|
+
*/
|
|
2255
|
+
200: {
|
|
2256
|
+
repoId: string;
|
|
2257
|
+
repoFullName: string;
|
|
2258
|
+
repoUrl: string;
|
|
2259
|
+
branch: string;
|
|
2260
|
+
/**
|
|
2261
|
+
* Sessions of the workspace that now have it as their root repo
|
|
2262
|
+
*/
|
|
2263
|
+
linkedProjects: number;
|
|
2264
|
+
/**
|
|
2265
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2266
|
+
*/
|
|
2267
|
+
installationWarning?: string;
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
export type CreateWorkspaceRootRepoResponse = CreateWorkspaceRootRepoResponses[keyof CreateWorkspaceRootRepoResponses];
|
|
2080
2271
|
export type GetOAuthUrlData = {
|
|
2081
2272
|
body?: never;
|
|
2082
2273
|
path?: never;
|
|
@@ -3132,11 +3323,18 @@ export type GetProjectInitDataResponses = {
|
|
|
3132
3323
|
gitRepoURL: string;
|
|
3133
3324
|
gitBranchToClone: string | null;
|
|
3134
3325
|
gitBranchToCreate: string | null;
|
|
3326
|
+
/**
|
|
3327
|
+
* Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
|
|
3328
|
+
*/
|
|
3135
3329
|
dirName: string;
|
|
3136
3330
|
attemptCount: number;
|
|
3137
3331
|
position: number;
|
|
3138
3332
|
createdAt: string;
|
|
3139
3333
|
updatedAt: string;
|
|
3334
|
+
/**
|
|
3335
|
+
* 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
|
|
3336
|
+
*/
|
|
3337
|
+
isWorkspaceRoot?: boolean;
|
|
3140
3338
|
}>;
|
|
3141
3339
|
};
|
|
3142
3340
|
};
|
|
@@ -3395,10 +3593,18 @@ export type ListProjectReposResponses = {
|
|
|
3395
3593
|
repoFullName: string;
|
|
3396
3594
|
host: string;
|
|
3397
3595
|
/**
|
|
3398
|
-
* Directory under the project root the repo was cloned into; null for legacy root-layout repos
|
|
3596
|
+
* 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
3597
|
*/
|
|
3400
3598
|
dirName: string | null;
|
|
3401
3599
|
hasActiveInstallation: boolean;
|
|
3600
|
+
/**
|
|
3601
|
+
* Dazl-managed workspace root repository (`dazl-workspace-<name>`)
|
|
3602
|
+
*/
|
|
3603
|
+
isWorkspaceRoot: boolean;
|
|
3604
|
+
/**
|
|
3605
|
+
* Attached but not created on GitHub yet; nothing can clone or push to it
|
|
3606
|
+
*/
|
|
3607
|
+
pendingCreation: boolean;
|
|
3402
3608
|
}>;
|
|
3403
3609
|
/**
|
|
3404
3610
|
* Repos awaiting their clone by the session container
|
|
@@ -3410,11 +3616,18 @@ export type ListProjectReposResponses = {
|
|
|
3410
3616
|
gitRepoURL: string;
|
|
3411
3617
|
gitBranchToClone: string | null;
|
|
3412
3618
|
gitBranchToCreate: string | null;
|
|
3619
|
+
/**
|
|
3620
|
+
* Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
|
|
3621
|
+
*/
|
|
3413
3622
|
dirName: string;
|
|
3414
3623
|
attemptCount: number;
|
|
3415
3624
|
position: number;
|
|
3416
3625
|
createdAt: string;
|
|
3417
3626
|
updatedAt: string;
|
|
3627
|
+
/**
|
|
3628
|
+
* 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
|
|
3629
|
+
*/
|
|
3630
|
+
isWorkspaceRoot?: boolean;
|
|
3418
3631
|
}>;
|
|
3419
3632
|
};
|
|
3420
3633
|
};
|
|
@@ -3481,11 +3694,18 @@ export type AddProjectRepoResponses = {
|
|
|
3481
3694
|
gitRepoURL: string;
|
|
3482
3695
|
gitBranchToClone: string | null;
|
|
3483
3696
|
gitBranchToCreate: string | null;
|
|
3697
|
+
/**
|
|
3698
|
+
* Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
|
|
3699
|
+
*/
|
|
3484
3700
|
dirName: string;
|
|
3485
3701
|
attemptCount: number;
|
|
3486
3702
|
position: number;
|
|
3487
3703
|
createdAt: string;
|
|
3488
3704
|
updatedAt: string;
|
|
3705
|
+
/**
|
|
3706
|
+
* 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
|
|
3707
|
+
*/
|
|
3708
|
+
isWorkspaceRoot?: boolean;
|
|
3489
3709
|
};
|
|
3490
3710
|
};
|
|
3491
3711
|
};
|
|
@@ -5016,6 +5236,9 @@ export type CreateChatResponses = {
|
|
|
5016
5236
|
archived: boolean;
|
|
5017
5237
|
createdByUserId: string;
|
|
5018
5238
|
schemaVersion: number;
|
|
5239
|
+
metadata: {
|
|
5240
|
+
[key: string]: unknown;
|
|
5241
|
+
} | null;
|
|
5019
5242
|
createdAt: string;
|
|
5020
5243
|
updatedAt: string;
|
|
5021
5244
|
pinnedContext?: unknown;
|
|
@@ -5084,6 +5307,9 @@ export type ListProjectChatsResponses = {
|
|
|
5084
5307
|
archived: boolean;
|
|
5085
5308
|
createdByUserId: string;
|
|
5086
5309
|
schemaVersion: number;
|
|
5310
|
+
metadata: {
|
|
5311
|
+
[key: string]: unknown;
|
|
5312
|
+
} | null;
|
|
5087
5313
|
createdAt: string;
|
|
5088
5314
|
updatedAt: string;
|
|
5089
5315
|
}>;
|
|
@@ -5202,6 +5428,9 @@ export type GetChatResponses = {
|
|
|
5202
5428
|
archived: boolean;
|
|
5203
5429
|
createdByUserId: string;
|
|
5204
5430
|
schemaVersion: number;
|
|
5431
|
+
metadata: {
|
|
5432
|
+
[key: string]: unknown;
|
|
5433
|
+
} | null;
|
|
5205
5434
|
createdAt: string;
|
|
5206
5435
|
updatedAt: string;
|
|
5207
5436
|
pinnedContext?: unknown;
|
|
@@ -5220,6 +5449,9 @@ export type UpdateChatData = {
|
|
|
5220
5449
|
archived: boolean;
|
|
5221
5450
|
pinnedContext?: unknown;
|
|
5222
5451
|
agentSession?: unknown;
|
|
5452
|
+
metadata?: {
|
|
5453
|
+
[key: string]: unknown;
|
|
5454
|
+
} | null;
|
|
5223
5455
|
schemaVersion: number;
|
|
5224
5456
|
messages: Array<{
|
|
5225
5457
|
id: string;
|
|
@@ -5279,6 +5511,9 @@ export type UpdateChatResponses = {
|
|
|
5279
5511
|
archived: boolean;
|
|
5280
5512
|
createdByUserId: string;
|
|
5281
5513
|
schemaVersion: number;
|
|
5514
|
+
metadata: {
|
|
5515
|
+
[key: string]: unknown;
|
|
5516
|
+
} | null;
|
|
5282
5517
|
createdAt: string;
|
|
5283
5518
|
updatedAt: string;
|
|
5284
5519
|
pinnedContext?: unknown;
|
|
@@ -9681,4 +9916,302 @@ export type EditReplyResponses = {
|
|
|
9681
9916
|
};
|
|
9682
9917
|
};
|
|
9683
9918
|
export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
|
|
9919
|
+
export type DeleteWorkspaceSecretsForProjectData = {
|
|
9920
|
+
body?: never;
|
|
9921
|
+
path: {
|
|
9922
|
+
projectId: string;
|
|
9923
|
+
};
|
|
9924
|
+
query: {
|
|
9925
|
+
repo: string;
|
|
9926
|
+
};
|
|
9927
|
+
url: '/workspace-secrets/{projectId}';
|
|
9928
|
+
};
|
|
9929
|
+
export type DeleteWorkspaceSecretsForProjectErrors = {
|
|
9930
|
+
/**
|
|
9931
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
9932
|
+
*/
|
|
9933
|
+
400: {
|
|
9934
|
+
message: string;
|
|
9935
|
+
issues?: string;
|
|
9936
|
+
};
|
|
9937
|
+
/**
|
|
9938
|
+
* Unauthorized
|
|
9939
|
+
*/
|
|
9940
|
+
401: ErrorResponse;
|
|
9941
|
+
/**
|
|
9942
|
+
* Forbidden
|
|
9943
|
+
*/
|
|
9944
|
+
403: ErrorResponse;
|
|
9945
|
+
/**
|
|
9946
|
+
* Not Found
|
|
9947
|
+
*/
|
|
9948
|
+
404: ErrorResponse;
|
|
9949
|
+
/**
|
|
9950
|
+
* Conflict
|
|
9951
|
+
*/
|
|
9952
|
+
409: ErrorResponse;
|
|
9953
|
+
/**
|
|
9954
|
+
* Internal server error
|
|
9955
|
+
*/
|
|
9956
|
+
500: ErrorResponse;
|
|
9957
|
+
/**
|
|
9958
|
+
* Service Unavailable
|
|
9959
|
+
*/
|
|
9960
|
+
503: ErrorResponse;
|
|
9961
|
+
};
|
|
9962
|
+
export type DeleteWorkspaceSecretsForProjectError = DeleteWorkspaceSecretsForProjectErrors[keyof DeleteWorkspaceSecretsForProjectErrors];
|
|
9963
|
+
export type DeleteWorkspaceSecretsForProjectResponses = {
|
|
9964
|
+
/**
|
|
9965
|
+
* Whether an entry was removed
|
|
9966
|
+
*/
|
|
9967
|
+
200: DeleteWorkspaceSecretsResponse;
|
|
9968
|
+
};
|
|
9969
|
+
export type DeleteWorkspaceSecretsForProjectResponse = DeleteWorkspaceSecretsForProjectResponses[keyof DeleteWorkspaceSecretsForProjectResponses];
|
|
9970
|
+
export type GetWorkspaceSecretsForProjectData = {
|
|
9971
|
+
body?: never;
|
|
9972
|
+
path: {
|
|
9973
|
+
projectId: string;
|
|
9974
|
+
};
|
|
9975
|
+
query?: never;
|
|
9976
|
+
url: '/workspace-secrets/{projectId}';
|
|
9977
|
+
};
|
|
9978
|
+
export type GetWorkspaceSecretsForProjectErrors = {
|
|
9979
|
+
/**
|
|
9980
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
9981
|
+
*/
|
|
9982
|
+
400: {
|
|
9983
|
+
message: string;
|
|
9984
|
+
issues?: string;
|
|
9985
|
+
};
|
|
9986
|
+
/**
|
|
9987
|
+
* Unauthorized
|
|
9988
|
+
*/
|
|
9989
|
+
401: ErrorResponse;
|
|
9990
|
+
/**
|
|
9991
|
+
* Forbidden
|
|
9992
|
+
*/
|
|
9993
|
+
403: ErrorResponse;
|
|
9994
|
+
/**
|
|
9995
|
+
* Not Found
|
|
9996
|
+
*/
|
|
9997
|
+
404: ErrorResponse;
|
|
9998
|
+
/**
|
|
9999
|
+
* Conflict
|
|
10000
|
+
*/
|
|
10001
|
+
409: ErrorResponse;
|
|
10002
|
+
/**
|
|
10003
|
+
* Internal server error
|
|
10004
|
+
*/
|
|
10005
|
+
500: ErrorResponse;
|
|
10006
|
+
/**
|
|
10007
|
+
* Service Unavailable
|
|
10008
|
+
*/
|
|
10009
|
+
503: ErrorResponse;
|
|
10010
|
+
};
|
|
10011
|
+
export type GetWorkspaceSecretsForProjectError = GetWorkspaceSecretsForProjectErrors[keyof GetWorkspaceSecretsForProjectErrors];
|
|
10012
|
+
export type GetWorkspaceSecretsForProjectResponses = {
|
|
10013
|
+
/**
|
|
10014
|
+
* The workspace's stored `.env` files, by repository
|
|
10015
|
+
*/
|
|
10016
|
+
200: WorkspaceSecretsResponse;
|
|
10017
|
+
};
|
|
10018
|
+
export type GetWorkspaceSecretsForProjectResponse = GetWorkspaceSecretsForProjectResponses[keyof GetWorkspaceSecretsForProjectResponses];
|
|
10019
|
+
export type SetWorkspaceSecretsForProjectData = {
|
|
10020
|
+
body: SetWorkspaceSecretsRequest;
|
|
10021
|
+
path: {
|
|
10022
|
+
projectId: string;
|
|
10023
|
+
};
|
|
10024
|
+
query?: never;
|
|
10025
|
+
url: '/workspace-secrets/{projectId}';
|
|
10026
|
+
};
|
|
10027
|
+
export type SetWorkspaceSecretsForProjectErrors = {
|
|
10028
|
+
/**
|
|
10029
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10030
|
+
*/
|
|
10031
|
+
400: {
|
|
10032
|
+
message: string;
|
|
10033
|
+
issues?: string;
|
|
10034
|
+
};
|
|
10035
|
+
/**
|
|
10036
|
+
* Unauthorized
|
|
10037
|
+
*/
|
|
10038
|
+
401: ErrorResponse;
|
|
10039
|
+
/**
|
|
10040
|
+
* Forbidden
|
|
10041
|
+
*/
|
|
10042
|
+
403: ErrorResponse;
|
|
10043
|
+
/**
|
|
10044
|
+
* Not Found
|
|
10045
|
+
*/
|
|
10046
|
+
404: ErrorResponse;
|
|
10047
|
+
/**
|
|
10048
|
+
* Conflict
|
|
10049
|
+
*/
|
|
10050
|
+
409: ErrorResponse;
|
|
10051
|
+
/**
|
|
10052
|
+
* Internal server error
|
|
10053
|
+
*/
|
|
10054
|
+
500: ErrorResponse;
|
|
10055
|
+
/**
|
|
10056
|
+
* Service Unavailable
|
|
10057
|
+
*/
|
|
10058
|
+
503: ErrorResponse;
|
|
10059
|
+
};
|
|
10060
|
+
export type SetWorkspaceSecretsForProjectError = SetWorkspaceSecretsForProjectErrors[keyof SetWorkspaceSecretsForProjectErrors];
|
|
10061
|
+
export type SetWorkspaceSecretsForProjectResponses = {
|
|
10062
|
+
/**
|
|
10063
|
+
* Whether the copy was stored
|
|
10064
|
+
*/
|
|
10065
|
+
200: SetWorkspaceSecretsResponse;
|
|
10066
|
+
};
|
|
10067
|
+
export type SetWorkspaceSecretsForProjectResponse = SetWorkspaceSecretsForProjectResponses[keyof SetWorkspaceSecretsForProjectResponses];
|
|
10068
|
+
export type DeleteWorkspaceSecretsData = {
|
|
10069
|
+
body?: never;
|
|
10070
|
+
path: {
|
|
10071
|
+
workspaceId: string;
|
|
10072
|
+
};
|
|
10073
|
+
query: {
|
|
10074
|
+
repo: string;
|
|
10075
|
+
};
|
|
10076
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
10077
|
+
};
|
|
10078
|
+
export type DeleteWorkspaceSecretsErrors = {
|
|
10079
|
+
/**
|
|
10080
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10081
|
+
*/
|
|
10082
|
+
400: {
|
|
10083
|
+
message: string;
|
|
10084
|
+
issues?: string;
|
|
10085
|
+
};
|
|
10086
|
+
/**
|
|
10087
|
+
* Unauthorized
|
|
10088
|
+
*/
|
|
10089
|
+
401: ErrorResponse;
|
|
10090
|
+
/**
|
|
10091
|
+
* Forbidden
|
|
10092
|
+
*/
|
|
10093
|
+
403: ErrorResponse;
|
|
10094
|
+
/**
|
|
10095
|
+
* Not Found
|
|
10096
|
+
*/
|
|
10097
|
+
404: ErrorResponse;
|
|
10098
|
+
/**
|
|
10099
|
+
* Conflict
|
|
10100
|
+
*/
|
|
10101
|
+
409: ErrorResponse;
|
|
10102
|
+
/**
|
|
10103
|
+
* Internal server error
|
|
10104
|
+
*/
|
|
10105
|
+
500: ErrorResponse;
|
|
10106
|
+
/**
|
|
10107
|
+
* Service Unavailable
|
|
10108
|
+
*/
|
|
10109
|
+
503: ErrorResponse;
|
|
10110
|
+
};
|
|
10111
|
+
export type DeleteWorkspaceSecretsError = DeleteWorkspaceSecretsErrors[keyof DeleteWorkspaceSecretsErrors];
|
|
10112
|
+
export type DeleteWorkspaceSecretsResponses = {
|
|
10113
|
+
/**
|
|
10114
|
+
* Whether an entry was removed
|
|
10115
|
+
*/
|
|
10116
|
+
200: DeleteWorkspaceSecretsResponse;
|
|
10117
|
+
};
|
|
10118
|
+
export type DeleteWorkspaceSecretsResponse2 = DeleteWorkspaceSecretsResponses[keyof DeleteWorkspaceSecretsResponses];
|
|
10119
|
+
export type GetWorkspaceSecretsData = {
|
|
10120
|
+
body?: never;
|
|
10121
|
+
path: {
|
|
10122
|
+
workspaceId: string;
|
|
10123
|
+
};
|
|
10124
|
+
query?: never;
|
|
10125
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
10126
|
+
};
|
|
10127
|
+
export type GetWorkspaceSecretsErrors = {
|
|
10128
|
+
/**
|
|
10129
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10130
|
+
*/
|
|
10131
|
+
400: {
|
|
10132
|
+
message: string;
|
|
10133
|
+
issues?: string;
|
|
10134
|
+
};
|
|
10135
|
+
/**
|
|
10136
|
+
* Unauthorized
|
|
10137
|
+
*/
|
|
10138
|
+
401: ErrorResponse;
|
|
10139
|
+
/**
|
|
10140
|
+
* Forbidden
|
|
10141
|
+
*/
|
|
10142
|
+
403: ErrorResponse;
|
|
10143
|
+
/**
|
|
10144
|
+
* Not Found
|
|
10145
|
+
*/
|
|
10146
|
+
404: ErrorResponse;
|
|
10147
|
+
/**
|
|
10148
|
+
* Conflict
|
|
10149
|
+
*/
|
|
10150
|
+
409: ErrorResponse;
|
|
10151
|
+
/**
|
|
10152
|
+
* Internal server error
|
|
10153
|
+
*/
|
|
10154
|
+
500: ErrorResponse;
|
|
10155
|
+
/**
|
|
10156
|
+
* Service Unavailable
|
|
10157
|
+
*/
|
|
10158
|
+
503: ErrorResponse;
|
|
10159
|
+
};
|
|
10160
|
+
export type GetWorkspaceSecretsError = GetWorkspaceSecretsErrors[keyof GetWorkspaceSecretsErrors];
|
|
10161
|
+
export type GetWorkspaceSecretsResponses = {
|
|
10162
|
+
/**
|
|
10163
|
+
* The workspace's stored `.env` files, by repository
|
|
10164
|
+
*/
|
|
10165
|
+
200: WorkspaceSecretsByWorkspaceResponse;
|
|
10166
|
+
};
|
|
10167
|
+
export type GetWorkspaceSecretsResponse = GetWorkspaceSecretsResponses[keyof GetWorkspaceSecretsResponses];
|
|
10168
|
+
export type SetWorkspaceSecretsData = {
|
|
10169
|
+
body: SetWorkspaceSecretsRequest;
|
|
10170
|
+
path: {
|
|
10171
|
+
workspaceId: string;
|
|
10172
|
+
};
|
|
10173
|
+
query?: never;
|
|
10174
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
10175
|
+
};
|
|
10176
|
+
export type SetWorkspaceSecretsErrors = {
|
|
10177
|
+
/**
|
|
10178
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10179
|
+
*/
|
|
10180
|
+
400: {
|
|
10181
|
+
message: string;
|
|
10182
|
+
issues?: string;
|
|
10183
|
+
};
|
|
10184
|
+
/**
|
|
10185
|
+
* Unauthorized
|
|
10186
|
+
*/
|
|
10187
|
+
401: ErrorResponse;
|
|
10188
|
+
/**
|
|
10189
|
+
* Forbidden
|
|
10190
|
+
*/
|
|
10191
|
+
403: ErrorResponse;
|
|
10192
|
+
/**
|
|
10193
|
+
* Not Found
|
|
10194
|
+
*/
|
|
10195
|
+
404: ErrorResponse;
|
|
10196
|
+
/**
|
|
10197
|
+
* Conflict
|
|
10198
|
+
*/
|
|
10199
|
+
409: ErrorResponse;
|
|
10200
|
+
/**
|
|
10201
|
+
* Internal server error
|
|
10202
|
+
*/
|
|
10203
|
+
500: ErrorResponse;
|
|
10204
|
+
/**
|
|
10205
|
+
* Service Unavailable
|
|
10206
|
+
*/
|
|
10207
|
+
503: ErrorResponse;
|
|
10208
|
+
};
|
|
10209
|
+
export type SetWorkspaceSecretsError = SetWorkspaceSecretsErrors[keyof SetWorkspaceSecretsErrors];
|
|
10210
|
+
export type SetWorkspaceSecretsResponses = {
|
|
10211
|
+
/**
|
|
10212
|
+
* Whether the copy was stored
|
|
10213
|
+
*/
|
|
10214
|
+
200: SetWorkspaceSecretsByWorkspaceResponse;
|
|
10215
|
+
};
|
|
10216
|
+
export type SetWorkspaceSecretsResponse2 = SetWorkspaceSecretsResponses[keyof SetWorkspaceSecretsResponses];
|
|
9684
10217
|
//# sourceMappingURL=types.gen.d.ts.map
|