@dazl/api-client 1.0.38 → 1.0.40
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 +4 -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 +12 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +64 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +556 -1
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +4 -1
- package/src/db/jsonb.types.ts +26 -0
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +74 -1
- package/src/internal/types.gen.ts +610 -1
|
@@ -184,6 +184,18 @@ export type OwnerDazlId = {
|
|
|
184
184
|
ownerDazlId: string;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
+
export type ClaimedPendingGeneration = PendingGeneration & {
|
|
188
|
+
claimToken: string;
|
|
189
|
+
leaseExpiresAt: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export type PendingGeneration = {
|
|
193
|
+
chatId: string;
|
|
194
|
+
messageId: string;
|
|
195
|
+
model?: string;
|
|
196
|
+
enabledIntegrationNames?: Array<string>;
|
|
197
|
+
};
|
|
198
|
+
|
|
187
199
|
export type UserDisplayInfoResponse = {
|
|
188
200
|
dazlId: string;
|
|
189
201
|
name: string;
|
|
@@ -1016,6 +1028,54 @@ export type EditReplyInput = {
|
|
|
1016
1028
|
mentions?: Array<UserMention>;
|
|
1017
1029
|
};
|
|
1018
1030
|
|
|
1031
|
+
export type WorkspaceSecretsResponse = {
|
|
1032
|
+
workspaceId: string | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* One entry per repository that holds a readable copy
|
|
1035
|
+
*/
|
|
1036
|
+
secrets: Array<RepoSecretsEntry>;
|
|
1037
|
+
/**
|
|
1038
|
+
* Repositories whose stored copy cannot be served
|
|
1039
|
+
*/
|
|
1040
|
+
unreadable: Array<string>;
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
export type RepoSecretsEntry = {
|
|
1044
|
+
repo: string;
|
|
1045
|
+
secrets: string;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
export type SetWorkspaceSecretsResponse = {
|
|
1049
|
+
stored: boolean;
|
|
1050
|
+
workspaceId: string | null;
|
|
1051
|
+
reason: 'stored' | 'too-many-repos' | 'no-workspace';
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
export type SetWorkspaceSecretsRequest = {
|
|
1055
|
+
repo: string;
|
|
1056
|
+
secrets: string;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
export type WorkspaceSecretsByWorkspaceResponse = {
|
|
1060
|
+
/**
|
|
1061
|
+
* One entry per repository that holds a readable copy
|
|
1062
|
+
*/
|
|
1063
|
+
secrets: Array<RepoSecretsEntry>;
|
|
1064
|
+
/**
|
|
1065
|
+
* Repositories whose stored copy cannot be served
|
|
1066
|
+
*/
|
|
1067
|
+
unreadable: Array<string>;
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
export type SetWorkspaceSecretsByWorkspaceResponse = {
|
|
1071
|
+
stored: boolean;
|
|
1072
|
+
reason: 'stored' | 'too-many-repos';
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
export type DeleteWorkspaceSecretsResponse = {
|
|
1076
|
+
removed: boolean;
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1019
1079
|
export type EnsureMyUserData = {
|
|
1020
1080
|
body?: {
|
|
1021
1081
|
name?: string;
|
|
@@ -2275,6 +2335,10 @@ export type CreateRepositoryResponses = {
|
|
|
2275
2335
|
repoFullName: string;
|
|
2276
2336
|
repoUrl: string;
|
|
2277
2337
|
branch: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2340
|
+
*/
|
|
2341
|
+
installationWarning?: string;
|
|
2278
2342
|
};
|
|
2279
2343
|
};
|
|
2280
2344
|
|
|
@@ -2345,11 +2409,90 @@ export type CreateProjectRepoResponses = {
|
|
|
2345
2409
|
repoUrl: string;
|
|
2346
2410
|
branch: string;
|
|
2347
2411
|
dirName: string | null;
|
|
2412
|
+
/**
|
|
2413
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2414
|
+
*/
|
|
2415
|
+
installationWarning?: string;
|
|
2348
2416
|
};
|
|
2349
2417
|
};
|
|
2350
2418
|
|
|
2351
2419
|
export type CreateProjectRepoResponse = CreateProjectRepoResponses[keyof CreateProjectRepoResponses];
|
|
2352
2420
|
|
|
2421
|
+
export type GetPullRequestsStatusData = {
|
|
2422
|
+
body?: {
|
|
2423
|
+
/**
|
|
2424
|
+
* Pull requests to check, addressed by repo full name (owner/repo) and PR number
|
|
2425
|
+
*/
|
|
2426
|
+
pullRequests: Array<{
|
|
2427
|
+
repoFullName: string;
|
|
2428
|
+
number: number;
|
|
2429
|
+
}>;
|
|
2430
|
+
/**
|
|
2431
|
+
* Falls back to this user's own GitHub connection when the project's installation cannot mint a token
|
|
2432
|
+
*/
|
|
2433
|
+
actingUserDazlId?: string;
|
|
2434
|
+
};
|
|
2435
|
+
path: {
|
|
2436
|
+
projectId: string;
|
|
2437
|
+
};
|
|
2438
|
+
query?: never;
|
|
2439
|
+
url: '/github/project/{projectId}/pull-requests/status';
|
|
2440
|
+
};
|
|
2441
|
+
|
|
2442
|
+
export type GetPullRequestsStatusErrors = {
|
|
2443
|
+
/**
|
|
2444
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2445
|
+
*/
|
|
2446
|
+
400: {
|
|
2447
|
+
message: string;
|
|
2448
|
+
issues?: string;
|
|
2449
|
+
};
|
|
2450
|
+
/**
|
|
2451
|
+
* Unauthorized
|
|
2452
|
+
*/
|
|
2453
|
+
401: ErrorResponse;
|
|
2454
|
+
/**
|
|
2455
|
+
* Forbidden
|
|
2456
|
+
*/
|
|
2457
|
+
403: ErrorResponse;
|
|
2458
|
+
/**
|
|
2459
|
+
* Not Found
|
|
2460
|
+
*/
|
|
2461
|
+
404: ErrorResponse;
|
|
2462
|
+
/**
|
|
2463
|
+
* Conflict
|
|
2464
|
+
*/
|
|
2465
|
+
409: ErrorResponse;
|
|
2466
|
+
/**
|
|
2467
|
+
* Internal server error
|
|
2468
|
+
*/
|
|
2469
|
+
500: ErrorResponse;
|
|
2470
|
+
/**
|
|
2471
|
+
* Service Unavailable
|
|
2472
|
+
*/
|
|
2473
|
+
503: ErrorResponse;
|
|
2474
|
+
};
|
|
2475
|
+
|
|
2476
|
+
export type GetPullRequestsStatusError = GetPullRequestsStatusErrors[keyof GetPullRequestsStatusErrors];
|
|
2477
|
+
|
|
2478
|
+
export type GetPullRequestsStatusResponses = {
|
|
2479
|
+
/**
|
|
2480
|
+
* State and CI check state for each requested pull request, best-effort per entry
|
|
2481
|
+
*/
|
|
2482
|
+
200: {
|
|
2483
|
+
statuses: Array<{
|
|
2484
|
+
repoFullName: string;
|
|
2485
|
+
number: number;
|
|
2486
|
+
ok: boolean;
|
|
2487
|
+
state?: 'OPEN' | 'CLOSED' | 'MERGED';
|
|
2488
|
+
isDraft?: boolean;
|
|
2489
|
+
checkState?: 'SUCCESS' | 'FAILURE' | 'PENDING' | null;
|
|
2490
|
+
}>;
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
export type GetPullRequestsStatusResponse = GetPullRequestsStatusResponses[keyof GetPullRequestsStatusResponses];
|
|
2495
|
+
|
|
2353
2496
|
export type CreateWorkspaceRootRepoData = {
|
|
2354
2497
|
body?: {
|
|
2355
2498
|
dazlId: string;
|
|
@@ -2413,6 +2556,10 @@ export type CreateWorkspaceRootRepoResponses = {
|
|
|
2413
2556
|
* Sessions of the workspace that now have it as their root repo
|
|
2414
2557
|
*/
|
|
2415
2558
|
linkedProjects: number;
|
|
2559
|
+
/**
|
|
2560
|
+
* Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
|
|
2561
|
+
*/
|
|
2562
|
+
installationWarning?: string;
|
|
2416
2563
|
};
|
|
2417
2564
|
};
|
|
2418
2565
|
|
|
@@ -3725,7 +3872,7 @@ export type ReportRepoInitFailureResponses = {
|
|
|
3725
3872
|
export type ReportRepoInitFailureResponse = ReportRepoInitFailureResponses[keyof ReportRepoInitFailureResponses];
|
|
3726
3873
|
|
|
3727
3874
|
export type CreateProjectData = {
|
|
3728
|
-
body
|
|
3875
|
+
body?: {
|
|
3729
3876
|
name: string;
|
|
3730
3877
|
userDazlId: string;
|
|
3731
3878
|
latestScreenshot?: string | null;
|
|
@@ -3796,6 +3943,125 @@ export type CreateProjectResponses = {
|
|
|
3796
3943
|
|
|
3797
3944
|
export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
|
|
3798
3945
|
|
|
3946
|
+
export type ClaimPendingGenerationData = {
|
|
3947
|
+
body: OwnerDazlId;
|
|
3948
|
+
path: {
|
|
3949
|
+
projectId: string;
|
|
3950
|
+
};
|
|
3951
|
+
query?: never;
|
|
3952
|
+
url: '/project/{projectId}/pending-generation/claim';
|
|
3953
|
+
};
|
|
3954
|
+
|
|
3955
|
+
export type ClaimPendingGenerationErrors = {
|
|
3956
|
+
/**
|
|
3957
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3958
|
+
*/
|
|
3959
|
+
400: {
|
|
3960
|
+
message: string;
|
|
3961
|
+
issues?: string;
|
|
3962
|
+
};
|
|
3963
|
+
/**
|
|
3964
|
+
* Unauthorized
|
|
3965
|
+
*/
|
|
3966
|
+
401: ErrorResponse;
|
|
3967
|
+
/**
|
|
3968
|
+
* Forbidden
|
|
3969
|
+
*/
|
|
3970
|
+
403: ErrorResponse;
|
|
3971
|
+
/**
|
|
3972
|
+
* Not Found
|
|
3973
|
+
*/
|
|
3974
|
+
404: ErrorResponse;
|
|
3975
|
+
/**
|
|
3976
|
+
* Conflict
|
|
3977
|
+
*/
|
|
3978
|
+
409: ErrorResponse;
|
|
3979
|
+
/**
|
|
3980
|
+
* Internal server error
|
|
3981
|
+
*/
|
|
3982
|
+
500: ErrorResponse;
|
|
3983
|
+
/**
|
|
3984
|
+
* Service Unavailable
|
|
3985
|
+
*/
|
|
3986
|
+
503: ErrorResponse;
|
|
3987
|
+
};
|
|
3988
|
+
|
|
3989
|
+
export type ClaimPendingGenerationError = ClaimPendingGenerationErrors[keyof ClaimPendingGenerationErrors];
|
|
3990
|
+
|
|
3991
|
+
export type ClaimPendingGenerationResponses = {
|
|
3992
|
+
/**
|
|
3993
|
+
* Leases the run; retry after retryAfterMs when another caller holds it, or stop when both fields are absent/null
|
|
3994
|
+
*/
|
|
3995
|
+
200: {
|
|
3996
|
+
pendingGeneration: ClaimedPendingGeneration | null;
|
|
3997
|
+
retryAfterMs?: number;
|
|
3998
|
+
};
|
|
3999
|
+
};
|
|
4000
|
+
|
|
4001
|
+
export type ClaimPendingGenerationResponse = ClaimPendingGenerationResponses[keyof ClaimPendingGenerationResponses];
|
|
4002
|
+
|
|
4003
|
+
export type AcknowledgePendingGenerationData = {
|
|
4004
|
+
body: {
|
|
4005
|
+
/**
|
|
4006
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
4007
|
+
*/
|
|
4008
|
+
ownerDazlId: string;
|
|
4009
|
+
claimToken: string;
|
|
4010
|
+
};
|
|
4011
|
+
path: {
|
|
4012
|
+
projectId: string;
|
|
4013
|
+
};
|
|
4014
|
+
query?: never;
|
|
4015
|
+
url: '/project/{projectId}/pending-generation/acknowledge';
|
|
4016
|
+
};
|
|
4017
|
+
|
|
4018
|
+
export type AcknowledgePendingGenerationErrors = {
|
|
4019
|
+
/**
|
|
4020
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4021
|
+
*/
|
|
4022
|
+
400: {
|
|
4023
|
+
message: string;
|
|
4024
|
+
issues?: string;
|
|
4025
|
+
};
|
|
4026
|
+
/**
|
|
4027
|
+
* Unauthorized
|
|
4028
|
+
*/
|
|
4029
|
+
401: ErrorResponse;
|
|
4030
|
+
/**
|
|
4031
|
+
* Forbidden
|
|
4032
|
+
*/
|
|
4033
|
+
403: ErrorResponse;
|
|
4034
|
+
/**
|
|
4035
|
+
* Not Found
|
|
4036
|
+
*/
|
|
4037
|
+
404: ErrorResponse;
|
|
4038
|
+
/**
|
|
4039
|
+
* Conflict
|
|
4040
|
+
*/
|
|
4041
|
+
409: ErrorResponse;
|
|
4042
|
+
/**
|
|
4043
|
+
* Internal server error
|
|
4044
|
+
*/
|
|
4045
|
+
500: ErrorResponse;
|
|
4046
|
+
/**
|
|
4047
|
+
* Service Unavailable
|
|
4048
|
+
*/
|
|
4049
|
+
503: ErrorResponse;
|
|
4050
|
+
};
|
|
4051
|
+
|
|
4052
|
+
export type AcknowledgePendingGenerationError = AcknowledgePendingGenerationErrors[keyof AcknowledgePendingGenerationErrors];
|
|
4053
|
+
|
|
4054
|
+
export type AcknowledgePendingGenerationResponses = {
|
|
4055
|
+
/**
|
|
4056
|
+
* Clears the claim after the generation run starts
|
|
4057
|
+
*/
|
|
4058
|
+
200: {
|
|
4059
|
+
acknowledged: boolean;
|
|
4060
|
+
};
|
|
4061
|
+
};
|
|
4062
|
+
|
|
4063
|
+
export type AcknowledgePendingGenerationResponse = AcknowledgePendingGenerationResponses[keyof AcknowledgePendingGenerationResponses];
|
|
4064
|
+
|
|
3799
4065
|
export type ListProjectReposData = {
|
|
3800
4066
|
body?: never;
|
|
3801
4067
|
path: {
|
|
@@ -5624,6 +5890,9 @@ export type CreateChatResponses = {
|
|
|
5624
5890
|
archived: boolean;
|
|
5625
5891
|
createdByUserId: string;
|
|
5626
5892
|
schemaVersion: number;
|
|
5893
|
+
metadata: {
|
|
5894
|
+
[key: string]: unknown;
|
|
5895
|
+
} | null;
|
|
5627
5896
|
createdAt: string;
|
|
5628
5897
|
updatedAt: string;
|
|
5629
5898
|
pinnedContext?: unknown;
|
|
@@ -5697,6 +5966,9 @@ export type ListProjectChatsResponses = {
|
|
|
5697
5966
|
archived: boolean;
|
|
5698
5967
|
createdByUserId: string;
|
|
5699
5968
|
schemaVersion: number;
|
|
5969
|
+
metadata: {
|
|
5970
|
+
[key: string]: unknown;
|
|
5971
|
+
} | null;
|
|
5700
5972
|
createdAt: string;
|
|
5701
5973
|
updatedAt: string;
|
|
5702
5974
|
}>;
|
|
@@ -5825,6 +6097,9 @@ export type GetChatResponses = {
|
|
|
5825
6097
|
archived: boolean;
|
|
5826
6098
|
createdByUserId: string;
|
|
5827
6099
|
schemaVersion: number;
|
|
6100
|
+
metadata: {
|
|
6101
|
+
[key: string]: unknown;
|
|
6102
|
+
} | null;
|
|
5828
6103
|
createdAt: string;
|
|
5829
6104
|
updatedAt: string;
|
|
5830
6105
|
pinnedContext?: unknown;
|
|
@@ -5845,6 +6120,9 @@ export type UpdateChatData = {
|
|
|
5845
6120
|
archived: boolean;
|
|
5846
6121
|
pinnedContext?: unknown;
|
|
5847
6122
|
agentSession?: unknown;
|
|
6123
|
+
metadata?: {
|
|
6124
|
+
[key: string]: unknown;
|
|
6125
|
+
} | null;
|
|
5848
6126
|
schemaVersion: number;
|
|
5849
6127
|
messages: Array<{
|
|
5850
6128
|
id: string;
|
|
@@ -5907,6 +6185,9 @@ export type UpdateChatResponses = {
|
|
|
5907
6185
|
archived: boolean;
|
|
5908
6186
|
createdByUserId: string;
|
|
5909
6187
|
schemaVersion: number;
|
|
6188
|
+
metadata: {
|
|
6189
|
+
[key: string]: unknown;
|
|
6190
|
+
} | null;
|
|
5910
6191
|
createdAt: string;
|
|
5911
6192
|
updatedAt: string;
|
|
5912
6193
|
pinnedContext?: unknown;
|
|
@@ -10673,3 +10954,331 @@ export type EditReplyResponses = {
|
|
|
10673
10954
|
};
|
|
10674
10955
|
|
|
10675
10956
|
export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
|
|
10957
|
+
|
|
10958
|
+
export type DeleteWorkspaceSecretsForProjectData = {
|
|
10959
|
+
body?: never;
|
|
10960
|
+
path: {
|
|
10961
|
+
projectId: string;
|
|
10962
|
+
};
|
|
10963
|
+
query: {
|
|
10964
|
+
repo: string;
|
|
10965
|
+
};
|
|
10966
|
+
url: '/workspace-secrets/{projectId}';
|
|
10967
|
+
};
|
|
10968
|
+
|
|
10969
|
+
export type DeleteWorkspaceSecretsForProjectErrors = {
|
|
10970
|
+
/**
|
|
10971
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
10972
|
+
*/
|
|
10973
|
+
400: {
|
|
10974
|
+
message: string;
|
|
10975
|
+
issues?: string;
|
|
10976
|
+
};
|
|
10977
|
+
/**
|
|
10978
|
+
* Unauthorized
|
|
10979
|
+
*/
|
|
10980
|
+
401: ErrorResponse;
|
|
10981
|
+
/**
|
|
10982
|
+
* Forbidden
|
|
10983
|
+
*/
|
|
10984
|
+
403: ErrorResponse;
|
|
10985
|
+
/**
|
|
10986
|
+
* Not Found
|
|
10987
|
+
*/
|
|
10988
|
+
404: ErrorResponse;
|
|
10989
|
+
/**
|
|
10990
|
+
* Conflict
|
|
10991
|
+
*/
|
|
10992
|
+
409: ErrorResponse;
|
|
10993
|
+
/**
|
|
10994
|
+
* Internal server error
|
|
10995
|
+
*/
|
|
10996
|
+
500: ErrorResponse;
|
|
10997
|
+
/**
|
|
10998
|
+
* Service Unavailable
|
|
10999
|
+
*/
|
|
11000
|
+
503: ErrorResponse;
|
|
11001
|
+
};
|
|
11002
|
+
|
|
11003
|
+
export type DeleteWorkspaceSecretsForProjectError = DeleteWorkspaceSecretsForProjectErrors[keyof DeleteWorkspaceSecretsForProjectErrors];
|
|
11004
|
+
|
|
11005
|
+
export type DeleteWorkspaceSecretsForProjectResponses = {
|
|
11006
|
+
/**
|
|
11007
|
+
* Whether an entry was removed
|
|
11008
|
+
*/
|
|
11009
|
+
200: DeleteWorkspaceSecretsResponse;
|
|
11010
|
+
};
|
|
11011
|
+
|
|
11012
|
+
export type DeleteWorkspaceSecretsForProjectResponse = DeleteWorkspaceSecretsForProjectResponses[keyof DeleteWorkspaceSecretsForProjectResponses];
|
|
11013
|
+
|
|
11014
|
+
export type GetWorkspaceSecretsForProjectData = {
|
|
11015
|
+
body?: never;
|
|
11016
|
+
path: {
|
|
11017
|
+
projectId: string;
|
|
11018
|
+
};
|
|
11019
|
+
query?: never;
|
|
11020
|
+
url: '/workspace-secrets/{projectId}';
|
|
11021
|
+
};
|
|
11022
|
+
|
|
11023
|
+
export type GetWorkspaceSecretsForProjectErrors = {
|
|
11024
|
+
/**
|
|
11025
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
11026
|
+
*/
|
|
11027
|
+
400: {
|
|
11028
|
+
message: string;
|
|
11029
|
+
issues?: string;
|
|
11030
|
+
};
|
|
11031
|
+
/**
|
|
11032
|
+
* Unauthorized
|
|
11033
|
+
*/
|
|
11034
|
+
401: ErrorResponse;
|
|
11035
|
+
/**
|
|
11036
|
+
* Forbidden
|
|
11037
|
+
*/
|
|
11038
|
+
403: ErrorResponse;
|
|
11039
|
+
/**
|
|
11040
|
+
* Not Found
|
|
11041
|
+
*/
|
|
11042
|
+
404: ErrorResponse;
|
|
11043
|
+
/**
|
|
11044
|
+
* Conflict
|
|
11045
|
+
*/
|
|
11046
|
+
409: ErrorResponse;
|
|
11047
|
+
/**
|
|
11048
|
+
* Internal server error
|
|
11049
|
+
*/
|
|
11050
|
+
500: ErrorResponse;
|
|
11051
|
+
/**
|
|
11052
|
+
* Service Unavailable
|
|
11053
|
+
*/
|
|
11054
|
+
503: ErrorResponse;
|
|
11055
|
+
};
|
|
11056
|
+
|
|
11057
|
+
export type GetWorkspaceSecretsForProjectError = GetWorkspaceSecretsForProjectErrors[keyof GetWorkspaceSecretsForProjectErrors];
|
|
11058
|
+
|
|
11059
|
+
export type GetWorkspaceSecretsForProjectResponses = {
|
|
11060
|
+
/**
|
|
11061
|
+
* The workspace's stored `.env` files, by repository
|
|
11062
|
+
*/
|
|
11063
|
+
200: WorkspaceSecretsResponse;
|
|
11064
|
+
};
|
|
11065
|
+
|
|
11066
|
+
export type GetWorkspaceSecretsForProjectResponse = GetWorkspaceSecretsForProjectResponses[keyof GetWorkspaceSecretsForProjectResponses];
|
|
11067
|
+
|
|
11068
|
+
export type SetWorkspaceSecretsForProjectData = {
|
|
11069
|
+
body: SetWorkspaceSecretsRequest;
|
|
11070
|
+
path: {
|
|
11071
|
+
projectId: string;
|
|
11072
|
+
};
|
|
11073
|
+
query?: never;
|
|
11074
|
+
url: '/workspace-secrets/{projectId}';
|
|
11075
|
+
};
|
|
11076
|
+
|
|
11077
|
+
export type SetWorkspaceSecretsForProjectErrors = {
|
|
11078
|
+
/**
|
|
11079
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
11080
|
+
*/
|
|
11081
|
+
400: {
|
|
11082
|
+
message: string;
|
|
11083
|
+
issues?: string;
|
|
11084
|
+
};
|
|
11085
|
+
/**
|
|
11086
|
+
* Unauthorized
|
|
11087
|
+
*/
|
|
11088
|
+
401: ErrorResponse;
|
|
11089
|
+
/**
|
|
11090
|
+
* Forbidden
|
|
11091
|
+
*/
|
|
11092
|
+
403: ErrorResponse;
|
|
11093
|
+
/**
|
|
11094
|
+
* Not Found
|
|
11095
|
+
*/
|
|
11096
|
+
404: ErrorResponse;
|
|
11097
|
+
/**
|
|
11098
|
+
* Conflict
|
|
11099
|
+
*/
|
|
11100
|
+
409: ErrorResponse;
|
|
11101
|
+
/**
|
|
11102
|
+
* Internal server error
|
|
11103
|
+
*/
|
|
11104
|
+
500: ErrorResponse;
|
|
11105
|
+
/**
|
|
11106
|
+
* Service Unavailable
|
|
11107
|
+
*/
|
|
11108
|
+
503: ErrorResponse;
|
|
11109
|
+
};
|
|
11110
|
+
|
|
11111
|
+
export type SetWorkspaceSecretsForProjectError = SetWorkspaceSecretsForProjectErrors[keyof SetWorkspaceSecretsForProjectErrors];
|
|
11112
|
+
|
|
11113
|
+
export type SetWorkspaceSecretsForProjectResponses = {
|
|
11114
|
+
/**
|
|
11115
|
+
* Whether the copy was stored
|
|
11116
|
+
*/
|
|
11117
|
+
200: SetWorkspaceSecretsResponse;
|
|
11118
|
+
};
|
|
11119
|
+
|
|
11120
|
+
export type SetWorkspaceSecretsForProjectResponse = SetWorkspaceSecretsForProjectResponses[keyof SetWorkspaceSecretsForProjectResponses];
|
|
11121
|
+
|
|
11122
|
+
export type DeleteWorkspaceSecretsData = {
|
|
11123
|
+
body?: never;
|
|
11124
|
+
path: {
|
|
11125
|
+
workspaceId: string;
|
|
11126
|
+
};
|
|
11127
|
+
query: {
|
|
11128
|
+
repo: string;
|
|
11129
|
+
};
|
|
11130
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
11131
|
+
};
|
|
11132
|
+
|
|
11133
|
+
export type DeleteWorkspaceSecretsErrors = {
|
|
11134
|
+
/**
|
|
11135
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
11136
|
+
*/
|
|
11137
|
+
400: {
|
|
11138
|
+
message: string;
|
|
11139
|
+
issues?: string;
|
|
11140
|
+
};
|
|
11141
|
+
/**
|
|
11142
|
+
* Unauthorized
|
|
11143
|
+
*/
|
|
11144
|
+
401: ErrorResponse;
|
|
11145
|
+
/**
|
|
11146
|
+
* Forbidden
|
|
11147
|
+
*/
|
|
11148
|
+
403: ErrorResponse;
|
|
11149
|
+
/**
|
|
11150
|
+
* Not Found
|
|
11151
|
+
*/
|
|
11152
|
+
404: ErrorResponse;
|
|
11153
|
+
/**
|
|
11154
|
+
* Conflict
|
|
11155
|
+
*/
|
|
11156
|
+
409: ErrorResponse;
|
|
11157
|
+
/**
|
|
11158
|
+
* Internal server error
|
|
11159
|
+
*/
|
|
11160
|
+
500: ErrorResponse;
|
|
11161
|
+
/**
|
|
11162
|
+
* Service Unavailable
|
|
11163
|
+
*/
|
|
11164
|
+
503: ErrorResponse;
|
|
11165
|
+
};
|
|
11166
|
+
|
|
11167
|
+
export type DeleteWorkspaceSecretsError = DeleteWorkspaceSecretsErrors[keyof DeleteWorkspaceSecretsErrors];
|
|
11168
|
+
|
|
11169
|
+
export type DeleteWorkspaceSecretsResponses = {
|
|
11170
|
+
/**
|
|
11171
|
+
* Whether an entry was removed
|
|
11172
|
+
*/
|
|
11173
|
+
200: DeleteWorkspaceSecretsResponse;
|
|
11174
|
+
};
|
|
11175
|
+
|
|
11176
|
+
export type DeleteWorkspaceSecretsResponse2 = DeleteWorkspaceSecretsResponses[keyof DeleteWorkspaceSecretsResponses];
|
|
11177
|
+
|
|
11178
|
+
export type GetWorkspaceSecretsData = {
|
|
11179
|
+
body?: never;
|
|
11180
|
+
path: {
|
|
11181
|
+
workspaceId: string;
|
|
11182
|
+
};
|
|
11183
|
+
query?: never;
|
|
11184
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
11185
|
+
};
|
|
11186
|
+
|
|
11187
|
+
export type GetWorkspaceSecretsErrors = {
|
|
11188
|
+
/**
|
|
11189
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
11190
|
+
*/
|
|
11191
|
+
400: {
|
|
11192
|
+
message: string;
|
|
11193
|
+
issues?: string;
|
|
11194
|
+
};
|
|
11195
|
+
/**
|
|
11196
|
+
* Unauthorized
|
|
11197
|
+
*/
|
|
11198
|
+
401: ErrorResponse;
|
|
11199
|
+
/**
|
|
11200
|
+
* Forbidden
|
|
11201
|
+
*/
|
|
11202
|
+
403: ErrorResponse;
|
|
11203
|
+
/**
|
|
11204
|
+
* Not Found
|
|
11205
|
+
*/
|
|
11206
|
+
404: ErrorResponse;
|
|
11207
|
+
/**
|
|
11208
|
+
* Conflict
|
|
11209
|
+
*/
|
|
11210
|
+
409: ErrorResponse;
|
|
11211
|
+
/**
|
|
11212
|
+
* Internal server error
|
|
11213
|
+
*/
|
|
11214
|
+
500: ErrorResponse;
|
|
11215
|
+
/**
|
|
11216
|
+
* Service Unavailable
|
|
11217
|
+
*/
|
|
11218
|
+
503: ErrorResponse;
|
|
11219
|
+
};
|
|
11220
|
+
|
|
11221
|
+
export type GetWorkspaceSecretsError = GetWorkspaceSecretsErrors[keyof GetWorkspaceSecretsErrors];
|
|
11222
|
+
|
|
11223
|
+
export type GetWorkspaceSecretsResponses = {
|
|
11224
|
+
/**
|
|
11225
|
+
* The workspace's stored `.env` files, by repository
|
|
11226
|
+
*/
|
|
11227
|
+
200: WorkspaceSecretsByWorkspaceResponse;
|
|
11228
|
+
};
|
|
11229
|
+
|
|
11230
|
+
export type GetWorkspaceSecretsResponse = GetWorkspaceSecretsResponses[keyof GetWorkspaceSecretsResponses];
|
|
11231
|
+
|
|
11232
|
+
export type SetWorkspaceSecretsData = {
|
|
11233
|
+
body: SetWorkspaceSecretsRequest;
|
|
11234
|
+
path: {
|
|
11235
|
+
workspaceId: string;
|
|
11236
|
+
};
|
|
11237
|
+
query?: never;
|
|
11238
|
+
url: '/workspace-secrets/workspace/{workspaceId}';
|
|
11239
|
+
};
|
|
11240
|
+
|
|
11241
|
+
export type SetWorkspaceSecretsErrors = {
|
|
11242
|
+
/**
|
|
11243
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
11244
|
+
*/
|
|
11245
|
+
400: {
|
|
11246
|
+
message: string;
|
|
11247
|
+
issues?: string;
|
|
11248
|
+
};
|
|
11249
|
+
/**
|
|
11250
|
+
* Unauthorized
|
|
11251
|
+
*/
|
|
11252
|
+
401: ErrorResponse;
|
|
11253
|
+
/**
|
|
11254
|
+
* Forbidden
|
|
11255
|
+
*/
|
|
11256
|
+
403: ErrorResponse;
|
|
11257
|
+
/**
|
|
11258
|
+
* Not Found
|
|
11259
|
+
*/
|
|
11260
|
+
404: ErrorResponse;
|
|
11261
|
+
/**
|
|
11262
|
+
* Conflict
|
|
11263
|
+
*/
|
|
11264
|
+
409: ErrorResponse;
|
|
11265
|
+
/**
|
|
11266
|
+
* Internal server error
|
|
11267
|
+
*/
|
|
11268
|
+
500: ErrorResponse;
|
|
11269
|
+
/**
|
|
11270
|
+
* Service Unavailable
|
|
11271
|
+
*/
|
|
11272
|
+
503: ErrorResponse;
|
|
11273
|
+
};
|
|
11274
|
+
|
|
11275
|
+
export type SetWorkspaceSecretsError = SetWorkspaceSecretsErrors[keyof SetWorkspaceSecretsErrors];
|
|
11276
|
+
|
|
11277
|
+
export type SetWorkspaceSecretsResponses = {
|
|
11278
|
+
/**
|
|
11279
|
+
* Whether the copy was stored
|
|
11280
|
+
*/
|
|
11281
|
+
200: SetWorkspaceSecretsByWorkspaceResponse;
|
|
11282
|
+
};
|
|
11283
|
+
|
|
11284
|
+
export type SetWorkspaceSecretsResponse2 = SetWorkspaceSecretsResponses[keyof SetWorkspaceSecretsResponses];
|