freestyle-sandboxes 0.1.5 → 0.1.6
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/index.cjs +757 -819
- package/index.d.cts +684 -614
- package/index.d.mts +684 -614
- package/index.mjs +757 -819
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -18,29 +18,65 @@ class GitErrorError extends Error {
|
|
|
18
18
|
static statusCode = 500;
|
|
19
19
|
static description = `{message}`;
|
|
20
20
|
}
|
|
21
|
-
class
|
|
21
|
+
class InternalErrorError extends Error {
|
|
22
22
|
constructor(body) {
|
|
23
23
|
super(
|
|
24
|
-
`
|
|
24
|
+
`INTERNAL_ERROR: ${body.message}`
|
|
25
25
|
);
|
|
26
26
|
this.body = body;
|
|
27
|
-
this.name = "
|
|
27
|
+
this.name = "InternalErrorError";
|
|
28
28
|
}
|
|
29
|
-
static code = "
|
|
29
|
+
static code = "INTERNAL_ERROR";
|
|
30
|
+
static statusCode = 500;
|
|
31
|
+
static description = `Internal error: {message}`;
|
|
32
|
+
}
|
|
33
|
+
class DockerImportBadRequestError extends Error {
|
|
34
|
+
constructor(body) {
|
|
35
|
+
super(
|
|
36
|
+
`DOCKER_IMPORT_BAD_REQUEST: ${body.message}`
|
|
37
|
+
);
|
|
38
|
+
this.body = body;
|
|
39
|
+
this.name = "DockerImportBadRequestError";
|
|
40
|
+
}
|
|
41
|
+
static code = "DOCKER_IMPORT_BAD_REQUEST";
|
|
30
42
|
static statusCode = 400;
|
|
31
43
|
static description = `Bad request: {message}`;
|
|
32
44
|
}
|
|
33
|
-
class
|
|
45
|
+
class VmOperationDeniedDuringTransactionError extends Error {
|
|
34
46
|
constructor(body) {
|
|
35
47
|
super(
|
|
36
|
-
`
|
|
48
|
+
`VM_OPERATION_DENIED_DURING_TRANSACTION: ${body.message}`
|
|
37
49
|
);
|
|
38
50
|
this.body = body;
|
|
39
|
-
this.name = "
|
|
51
|
+
this.name = "VmOperationDeniedDuringTransactionError";
|
|
40
52
|
}
|
|
41
|
-
static code = "
|
|
42
|
-
static statusCode =
|
|
43
|
-
static description = `
|
|
53
|
+
static code = "VM_OPERATION_DENIED_DURING_TRANSACTION";
|
|
54
|
+
static statusCode = 409;
|
|
55
|
+
static description = `VM operation denied during active transaction for VM {vm_id} in transaction {transaction_id}`;
|
|
56
|
+
}
|
|
57
|
+
class VmTransactionIdMismatchError extends Error {
|
|
58
|
+
constructor(body) {
|
|
59
|
+
super(
|
|
60
|
+
`VM_TRANSACTION_ID_MISMATCH: ${body.message}`
|
|
61
|
+
);
|
|
62
|
+
this.body = body;
|
|
63
|
+
this.name = "VmTransactionIdMismatchError";
|
|
64
|
+
}
|
|
65
|
+
static code = "VM_TRANSACTION_ID_MISMATCH";
|
|
66
|
+
static statusCode = 400;
|
|
67
|
+
static description = `Transaction ID {provided_transaction_id} does not match the current VM transaction {expected_transaction_id} for VM {vm_id}`;
|
|
68
|
+
}
|
|
69
|
+
class VmNotInTransactionError extends Error {
|
|
70
|
+
constructor(body) {
|
|
71
|
+
super(
|
|
72
|
+
`VM_NOT_IN_TRANSACTION: ${body.message}`
|
|
73
|
+
);
|
|
74
|
+
this.body = body;
|
|
75
|
+
this.name = "VmNotInTransactionError";
|
|
76
|
+
}
|
|
77
|
+
static code = "VM_NOT_IN_TRANSACTION";
|
|
78
|
+
static statusCode = 404;
|
|
79
|
+
static description = `VM not in a transaction: {vm_id}`;
|
|
44
80
|
}
|
|
45
81
|
class ForkVmNotFoundError extends Error {
|
|
46
82
|
constructor(body) {
|
|
@@ -66,6 +102,18 @@ class CreateSnapshotBadRequestError extends Error {
|
|
|
66
102
|
static statusCode = 400;
|
|
67
103
|
static description = `Bad request: {message}`;
|
|
68
104
|
}
|
|
105
|
+
class SnapshotVmBadRequestError extends Error {
|
|
106
|
+
constructor(body) {
|
|
107
|
+
super(
|
|
108
|
+
`SNAPSHOT_VM_BAD_REQUEST: ${body.message}`
|
|
109
|
+
);
|
|
110
|
+
this.body = body;
|
|
111
|
+
this.name = "SnapshotVmBadRequestError";
|
|
112
|
+
}
|
|
113
|
+
static code = "SNAPSHOT_VM_BAD_REQUEST";
|
|
114
|
+
static statusCode = 400;
|
|
115
|
+
static description = `Bad request: {message}`;
|
|
116
|
+
}
|
|
69
117
|
class VmDeletedError extends Error {
|
|
70
118
|
constructor(body) {
|
|
71
119
|
super(
|
|
@@ -198,42 +246,6 @@ class FilesBadRequestError extends Error {
|
|
|
198
246
|
static statusCode = 400;
|
|
199
247
|
static description = `Bad request: {message}`;
|
|
200
248
|
}
|
|
201
|
-
class VmMustBeStoppedError extends Error {
|
|
202
|
-
constructor(body) {
|
|
203
|
-
super(
|
|
204
|
-
`VM_MUST_BE_STOPPED: ${body.message}`
|
|
205
|
-
);
|
|
206
|
-
this.body = body;
|
|
207
|
-
this.name = "VmMustBeStoppedError";
|
|
208
|
-
}
|
|
209
|
-
static code = "VM_MUST_BE_STOPPED";
|
|
210
|
-
static statusCode = 400;
|
|
211
|
-
static description = `VM must be stopped before converting to base`;
|
|
212
|
-
}
|
|
213
|
-
class AlreadyHasBaseError extends Error {
|
|
214
|
-
constructor(body) {
|
|
215
|
-
super(
|
|
216
|
-
`ALREADY_HAS_BASE: ${body.message}`
|
|
217
|
-
);
|
|
218
|
-
this.body = body;
|
|
219
|
-
this.name = "AlreadyHasBaseError";
|
|
220
|
-
}
|
|
221
|
-
static code = "ALREADY_HAS_BASE";
|
|
222
|
-
static statusCode = 400;
|
|
223
|
-
static description = `VM already has a base rootfs`;
|
|
224
|
-
}
|
|
225
|
-
class NotFoundError extends Error {
|
|
226
|
-
constructor(body) {
|
|
227
|
-
super(
|
|
228
|
-
`NOT_FOUND: ${body.message}`
|
|
229
|
-
);
|
|
230
|
-
this.body = body;
|
|
231
|
-
this.name = "NotFoundError";
|
|
232
|
-
}
|
|
233
|
-
static code = "NOT_FOUND";
|
|
234
|
-
static statusCode = 404;
|
|
235
|
-
static description = `VM not found`;
|
|
236
|
-
}
|
|
237
249
|
class VmNotFoundInFsError extends Error {
|
|
238
250
|
constructor(body) {
|
|
239
251
|
super(
|
|
@@ -306,53 +318,41 @@ class InternalVmNotFoundError extends Error {
|
|
|
306
318
|
static statusCode = 404;
|
|
307
319
|
static description = `VM not found: {vm_id}`;
|
|
308
320
|
}
|
|
309
|
-
class
|
|
321
|
+
class VmMustBeStoppedError extends Error {
|
|
310
322
|
constructor(body) {
|
|
311
323
|
super(
|
|
312
|
-
`
|
|
324
|
+
`VM_MUST_BE_STOPPED: ${body.message}`
|
|
313
325
|
);
|
|
314
326
|
this.body = body;
|
|
315
|
-
this.name = "
|
|
327
|
+
this.name = "VmMustBeStoppedError";
|
|
316
328
|
}
|
|
317
|
-
static code = "
|
|
329
|
+
static code = "VM_MUST_BE_STOPPED";
|
|
318
330
|
static statusCode = 400;
|
|
319
|
-
static description = `
|
|
320
|
-
}
|
|
321
|
-
class VmOperationDeniedDuringTransactionError extends Error {
|
|
322
|
-
constructor(body) {
|
|
323
|
-
super(
|
|
324
|
-
`VM_OPERATION_DENIED_DURING_TRANSACTION: ${body.message}`
|
|
325
|
-
);
|
|
326
|
-
this.body = body;
|
|
327
|
-
this.name = "VmOperationDeniedDuringTransactionError";
|
|
328
|
-
}
|
|
329
|
-
static code = "VM_OPERATION_DENIED_DURING_TRANSACTION";
|
|
330
|
-
static statusCode = 409;
|
|
331
|
-
static description = `VM operation denied during active transaction for VM {vm_id} in transaction {transaction_id}`;
|
|
331
|
+
static description = `VM must be stopped before converting to base`;
|
|
332
332
|
}
|
|
333
|
-
class
|
|
333
|
+
class AlreadyHasBaseError extends Error {
|
|
334
334
|
constructor(body) {
|
|
335
335
|
super(
|
|
336
|
-
`
|
|
336
|
+
`ALREADY_HAS_BASE: ${body.message}`
|
|
337
337
|
);
|
|
338
338
|
this.body = body;
|
|
339
|
-
this.name = "
|
|
339
|
+
this.name = "AlreadyHasBaseError";
|
|
340
340
|
}
|
|
341
|
-
static code = "
|
|
341
|
+
static code = "ALREADY_HAS_BASE";
|
|
342
342
|
static statusCode = 400;
|
|
343
|
-
static description = `
|
|
343
|
+
static description = `VM already has a base rootfs`;
|
|
344
344
|
}
|
|
345
|
-
class
|
|
345
|
+
class NotFoundError extends Error {
|
|
346
346
|
constructor(body) {
|
|
347
347
|
super(
|
|
348
|
-
`
|
|
348
|
+
`NOT_FOUND: ${body.message}`
|
|
349
349
|
);
|
|
350
350
|
this.body = body;
|
|
351
|
-
this.name = "
|
|
351
|
+
this.name = "NotFoundError";
|
|
352
352
|
}
|
|
353
|
-
static code = "
|
|
353
|
+
static code = "NOT_FOUND";
|
|
354
354
|
static statusCode = 404;
|
|
355
|
-
static description = `VM not
|
|
355
|
+
static description = `VM not found`;
|
|
356
356
|
}
|
|
357
357
|
class CreateVmBadRequestError extends Error {
|
|
358
358
|
constructor(body) {
|
|
@@ -774,6 +774,30 @@ class RepoNotFoundError extends Error {
|
|
|
774
774
|
static statusCode = 404;
|
|
775
775
|
static description = `Repository not found: {repo_id}`;
|
|
776
776
|
}
|
|
777
|
+
class RuntimeErrorError extends Error {
|
|
778
|
+
constructor(body) {
|
|
779
|
+
super(
|
|
780
|
+
`RUNTIME_ERROR: ${body.message}`
|
|
781
|
+
);
|
|
782
|
+
this.body = body;
|
|
783
|
+
this.name = "RuntimeErrorError";
|
|
784
|
+
}
|
|
785
|
+
static code = "RUNTIME_ERROR";
|
|
786
|
+
static statusCode = 500;
|
|
787
|
+
static description = `The script execution resulted in a runtime error: {message}`;
|
|
788
|
+
}
|
|
789
|
+
class SyntaxErrorError extends Error {
|
|
790
|
+
constructor(body) {
|
|
791
|
+
super(
|
|
792
|
+
`SYNTAX_ERROR: ${body.message}`
|
|
793
|
+
);
|
|
794
|
+
this.body = body;
|
|
795
|
+
this.name = "SyntaxErrorError";
|
|
796
|
+
}
|
|
797
|
+
static code = "SYNTAX_ERROR";
|
|
798
|
+
static statusCode = 503;
|
|
799
|
+
static description = `The provided script has a syntax error: {message}`;
|
|
800
|
+
}
|
|
777
801
|
class InternalError extends Error {
|
|
778
802
|
constructor(body) {
|
|
779
803
|
super(
|
|
@@ -846,53 +870,53 @@ class ExpiredError extends Error {
|
|
|
846
870
|
static statusCode = 403;
|
|
847
871
|
static description = `Session has expired`;
|
|
848
872
|
}
|
|
849
|
-
class
|
|
873
|
+
class ForbiddenError extends Error {
|
|
850
874
|
constructor(body) {
|
|
851
875
|
super(
|
|
852
|
-
`
|
|
876
|
+
`FORBIDDEN: ${body.message}`
|
|
853
877
|
);
|
|
854
878
|
this.body = body;
|
|
855
|
-
this.name = "
|
|
879
|
+
this.name = "ForbiddenError";
|
|
856
880
|
}
|
|
857
|
-
static code = "
|
|
858
|
-
static statusCode =
|
|
859
|
-
static description = `
|
|
881
|
+
static code = "FORBIDDEN";
|
|
882
|
+
static statusCode = 403;
|
|
883
|
+
static description = `You do not have permission to push to this repository`;
|
|
860
884
|
}
|
|
861
|
-
class
|
|
885
|
+
class UnauthorizedError extends Error {
|
|
862
886
|
constructor(body) {
|
|
863
887
|
super(
|
|
864
|
-
`
|
|
888
|
+
`UNAUTHORIZED: ${body.message}`
|
|
865
889
|
);
|
|
866
890
|
this.body = body;
|
|
867
|
-
this.name = "
|
|
891
|
+
this.name = "UnauthorizedError";
|
|
868
892
|
}
|
|
869
|
-
static code = "
|
|
870
|
-
static statusCode =
|
|
871
|
-
static description = `
|
|
893
|
+
static code = "UNAUTHORIZED";
|
|
894
|
+
static statusCode = 401;
|
|
895
|
+
static description = `Unauthorized`;
|
|
872
896
|
}
|
|
873
|
-
class
|
|
897
|
+
class InvalidServiceError extends Error {
|
|
874
898
|
constructor(body) {
|
|
875
899
|
super(
|
|
876
|
-
`
|
|
900
|
+
`INVALID_SERVICE: ${body.message}`
|
|
877
901
|
);
|
|
878
902
|
this.body = body;
|
|
879
|
-
this.name = "
|
|
903
|
+
this.name = "InvalidServiceError";
|
|
880
904
|
}
|
|
881
|
-
static code = "
|
|
882
|
-
static statusCode =
|
|
883
|
-
static description = `
|
|
905
|
+
static code = "INVALID_SERVICE";
|
|
906
|
+
static statusCode = 403;
|
|
907
|
+
static description = `Invalid service '{invalid}', expected 'git-upload-pack' or 'git-receive-pack'`;
|
|
884
908
|
}
|
|
885
|
-
class
|
|
909
|
+
class ExpectedServiceError extends Error {
|
|
886
910
|
constructor(body) {
|
|
887
911
|
super(
|
|
888
|
-
`
|
|
912
|
+
`EXPECTED_SERVICE: ${body.message}`
|
|
889
913
|
);
|
|
890
914
|
this.body = body;
|
|
891
|
-
this.name = "
|
|
915
|
+
this.name = "ExpectedServiceError";
|
|
892
916
|
}
|
|
893
|
-
static code = "
|
|
917
|
+
static code = "EXPECTED_SERVICE";
|
|
894
918
|
static statusCode = 403;
|
|
895
|
-
static description = `
|
|
919
|
+
static description = `Expected 'service' query parameter`;
|
|
896
920
|
}
|
|
897
921
|
class UnsupportedTransferError extends Error {
|
|
898
922
|
constructor(body) {
|
|
@@ -906,113 +930,113 @@ class UnsupportedTransferError extends Error {
|
|
|
906
930
|
static statusCode = 400;
|
|
907
931
|
static description = `Unsupported LFS transfer protocol(s)`;
|
|
908
932
|
}
|
|
909
|
-
class
|
|
933
|
+
class ConflictError extends Error {
|
|
910
934
|
constructor(body) {
|
|
911
935
|
super(
|
|
912
|
-
`
|
|
936
|
+
`CONFLICT: ${body.message}`
|
|
913
937
|
);
|
|
914
938
|
this.body = body;
|
|
915
|
-
this.name = "
|
|
939
|
+
this.name = "ConflictError";
|
|
916
940
|
}
|
|
917
|
-
static code = "
|
|
918
|
-
static statusCode =
|
|
919
|
-
static description = `
|
|
941
|
+
static code = "CONFLICT";
|
|
942
|
+
static statusCode = 409;
|
|
943
|
+
static description = `Sync conflict: {message}`;
|
|
920
944
|
}
|
|
921
|
-
class
|
|
945
|
+
class BranchNotFoundError extends Error {
|
|
922
946
|
constructor(body) {
|
|
923
947
|
super(
|
|
924
|
-
`
|
|
948
|
+
`BRANCH_NOT_FOUND: ${body.message}`
|
|
925
949
|
);
|
|
926
950
|
this.body = body;
|
|
927
|
-
this.name = "
|
|
951
|
+
this.name = "BranchNotFoundError";
|
|
928
952
|
}
|
|
929
|
-
static code = "
|
|
930
|
-
static statusCode =
|
|
931
|
-
static description = `
|
|
953
|
+
static code = "BRANCH_NOT_FOUND";
|
|
954
|
+
static statusCode = 404;
|
|
955
|
+
static description = `Branch not found: {branch}`;
|
|
932
956
|
}
|
|
933
|
-
class
|
|
957
|
+
class SourceImportConflictError extends Error {
|
|
934
958
|
constructor(body) {
|
|
935
959
|
super(
|
|
936
|
-
`
|
|
960
|
+
`SOURCE_IMPORT_CONFLICT: ${body.message}`
|
|
937
961
|
);
|
|
938
962
|
this.body = body;
|
|
939
|
-
this.name = "
|
|
963
|
+
this.name = "SourceImportConflictError";
|
|
940
964
|
}
|
|
941
|
-
static code = "
|
|
965
|
+
static code = "SOURCE_IMPORT_CONFLICT";
|
|
942
966
|
static statusCode = 400;
|
|
943
|
-
static description = `
|
|
967
|
+
static description = `Source and import are mutually exclusive`;
|
|
944
968
|
}
|
|
945
|
-
class
|
|
969
|
+
class SourceUnauthorizedError extends Error {
|
|
946
970
|
constructor(body) {
|
|
947
971
|
super(
|
|
948
|
-
`
|
|
972
|
+
`SOURCE_UNAUTHORIZED: ${body.message}`
|
|
949
973
|
);
|
|
950
974
|
this.body = body;
|
|
951
|
-
this.name = "
|
|
975
|
+
this.name = "SourceUnauthorizedError";
|
|
952
976
|
}
|
|
953
|
-
static code = "
|
|
977
|
+
static code = "SOURCE_UNAUTHORIZED";
|
|
954
978
|
static statusCode = 400;
|
|
955
|
-
static description = `
|
|
979
|
+
static description = `Unauthorized to access source repository at {url}`;
|
|
956
980
|
}
|
|
957
|
-
class
|
|
981
|
+
class SourceNotFoundError extends Error {
|
|
958
982
|
constructor(body) {
|
|
959
983
|
super(
|
|
960
|
-
`
|
|
984
|
+
`SOURCE_NOT_FOUND: ${body.message}`
|
|
961
985
|
);
|
|
962
986
|
this.body = body;
|
|
963
|
-
this.name = "
|
|
987
|
+
this.name = "SourceNotFoundError";
|
|
964
988
|
}
|
|
965
|
-
static code = "
|
|
989
|
+
static code = "SOURCE_NOT_FOUND";
|
|
966
990
|
static statusCode = 400;
|
|
967
|
-
static description = `
|
|
991
|
+
static description = `Source repository not found at {url}`;
|
|
968
992
|
}
|
|
969
|
-
class
|
|
993
|
+
class ImportSubdirNotFoundError extends Error {
|
|
970
994
|
constructor(body) {
|
|
971
995
|
super(
|
|
972
|
-
`
|
|
996
|
+
`IMPORT_SUBDIR_NOT_FOUND: ${body.message}`
|
|
973
997
|
);
|
|
974
998
|
this.body = body;
|
|
975
|
-
this.name = "
|
|
999
|
+
this.name = "ImportSubdirNotFoundError";
|
|
976
1000
|
}
|
|
977
|
-
static code = "
|
|
978
|
-
static statusCode =
|
|
979
|
-
static description = `
|
|
1001
|
+
static code = "IMPORT_SUBDIR_NOT_FOUND";
|
|
1002
|
+
static statusCode = 400;
|
|
1003
|
+
static description = `Directory not found in {source}: {dir}`;
|
|
980
1004
|
}
|
|
981
|
-
class
|
|
1005
|
+
class RepoAlreadyExistsError extends Error {
|
|
982
1006
|
constructor(body) {
|
|
983
1007
|
super(
|
|
984
|
-
`
|
|
1008
|
+
`REPO_ALREADY_EXISTS: ${body.message}`
|
|
985
1009
|
);
|
|
986
1010
|
this.body = body;
|
|
987
|
-
this.name = "
|
|
1011
|
+
this.name = "RepoAlreadyExistsError";
|
|
988
1012
|
}
|
|
989
|
-
static code = "
|
|
990
|
-
static statusCode =
|
|
991
|
-
static description = `
|
|
1013
|
+
static code = "REPO_ALREADY_EXISTS";
|
|
1014
|
+
static statusCode = 409;
|
|
1015
|
+
static description = `Repo '{repo_id}' already exists`;
|
|
992
1016
|
}
|
|
993
|
-
class
|
|
1017
|
+
class PathNotFoundError extends Error {
|
|
994
1018
|
constructor(body) {
|
|
995
1019
|
super(
|
|
996
|
-
`
|
|
1020
|
+
`PATH_NOT_FOUND: ${body.message}`
|
|
997
1021
|
);
|
|
998
1022
|
this.body = body;
|
|
999
|
-
this.name = "
|
|
1023
|
+
this.name = "PathNotFoundError";
|
|
1000
1024
|
}
|
|
1001
|
-
static code = "
|
|
1002
|
-
static statusCode =
|
|
1003
|
-
static description = `
|
|
1025
|
+
static code = "PATH_NOT_FOUND";
|
|
1026
|
+
static statusCode = 404;
|
|
1027
|
+
static description = `Path not found: {path}`;
|
|
1004
1028
|
}
|
|
1005
|
-
class
|
|
1029
|
+
class ReferenceNotFoundError extends Error {
|
|
1006
1030
|
constructor(body) {
|
|
1007
1031
|
super(
|
|
1008
|
-
`
|
|
1032
|
+
`REFERENCE_NOT_FOUND: ${body.message}`
|
|
1009
1033
|
);
|
|
1010
1034
|
this.body = body;
|
|
1011
|
-
this.name = "
|
|
1035
|
+
this.name = "ReferenceNotFoundError";
|
|
1012
1036
|
}
|
|
1013
|
-
static code = "
|
|
1014
|
-
static statusCode =
|
|
1015
|
-
static description = `
|
|
1037
|
+
static code = "REFERENCE_NOT_FOUND";
|
|
1038
|
+
static statusCode = 404;
|
|
1039
|
+
static description = `Reference not found: {reference}`;
|
|
1016
1040
|
}
|
|
1017
1041
|
class TagNotFoundError extends Error {
|
|
1018
1042
|
constructor(body) {
|
|
@@ -1024,19 +1048,19 @@ class TagNotFoundError extends Error {
|
|
|
1024
1048
|
}
|
|
1025
1049
|
static code = "TAG_NOT_FOUND";
|
|
1026
1050
|
static statusCode = 404;
|
|
1027
|
-
static description = `Tag not found: {
|
|
1051
|
+
static description = `Tag not found: {hash}`;
|
|
1028
1052
|
}
|
|
1029
|
-
class
|
|
1053
|
+
class SendErrorError extends Error {
|
|
1030
1054
|
constructor(body) {
|
|
1031
1055
|
super(
|
|
1032
|
-
`
|
|
1056
|
+
`SEND_ERROR: ${body.message}`
|
|
1033
1057
|
);
|
|
1034
1058
|
this.body = body;
|
|
1035
|
-
this.name = "
|
|
1059
|
+
this.name = "SendErrorError";
|
|
1036
1060
|
}
|
|
1037
|
-
static code = "
|
|
1038
|
-
static statusCode =
|
|
1039
|
-
static description = `
|
|
1061
|
+
static code = "SEND_ERROR";
|
|
1062
|
+
static statusCode = 500;
|
|
1063
|
+
static description = `Stream receiver dropped`;
|
|
1040
1064
|
}
|
|
1041
1065
|
class GitHubSyncConflictError extends Error {
|
|
1042
1066
|
constructor(body) {
|
|
@@ -1062,197 +1086,149 @@ class InvalidObjectIdError extends Error {
|
|
|
1062
1086
|
static statusCode = 400;
|
|
1063
1087
|
static description = `Invalid object ID: {hash}`;
|
|
1064
1088
|
}
|
|
1065
|
-
class
|
|
1089
|
+
class CommitNotFoundError extends Error {
|
|
1066
1090
|
constructor(body) {
|
|
1067
1091
|
super(
|
|
1068
|
-
`
|
|
1092
|
+
`COMMIT_NOT_FOUND: ${body.message}`
|
|
1069
1093
|
);
|
|
1070
1094
|
this.body = body;
|
|
1071
|
-
this.name = "
|
|
1095
|
+
this.name = "CommitNotFoundError";
|
|
1072
1096
|
}
|
|
1073
|
-
static code = "
|
|
1074
|
-
static statusCode =
|
|
1075
|
-
static description = `
|
|
1097
|
+
static code = "COMMIT_NOT_FOUND";
|
|
1098
|
+
static statusCode = 404;
|
|
1099
|
+
static description = `Commit {commit_hash} not found in repository {repo_id}`;
|
|
1076
1100
|
}
|
|
1077
|
-
class
|
|
1101
|
+
class TreeNotFoundError extends Error {
|
|
1078
1102
|
constructor(body) {
|
|
1079
1103
|
super(
|
|
1080
|
-
`
|
|
1104
|
+
`TREE_NOT_FOUND: ${body.message}`
|
|
1081
1105
|
);
|
|
1082
1106
|
this.body = body;
|
|
1083
|
-
this.name = "
|
|
1107
|
+
this.name = "TreeNotFoundError";
|
|
1084
1108
|
}
|
|
1085
|
-
static code = "
|
|
1086
|
-
static statusCode =
|
|
1087
|
-
static description = `
|
|
1109
|
+
static code = "TREE_NOT_FOUND";
|
|
1110
|
+
static statusCode = 404;
|
|
1111
|
+
static description = `Tree not found: {hash}`;
|
|
1088
1112
|
}
|
|
1089
|
-
class
|
|
1113
|
+
class InvalidRevisionError extends Error {
|
|
1090
1114
|
constructor(body) {
|
|
1091
1115
|
super(
|
|
1092
|
-
`
|
|
1116
|
+
`INVALID_REVISION: ${body.message}`
|
|
1093
1117
|
);
|
|
1094
1118
|
this.body = body;
|
|
1095
|
-
this.name = "
|
|
1119
|
+
this.name = "InvalidRevisionError";
|
|
1096
1120
|
}
|
|
1097
|
-
static code = "
|
|
1121
|
+
static code = "INVALID_REVISION";
|
|
1098
1122
|
static statusCode = 400;
|
|
1099
|
-
static description = `
|
|
1123
|
+
static description = `Invalid revision: {revision}`;
|
|
1100
1124
|
}
|
|
1101
|
-
class
|
|
1125
|
+
class InvalidRangeError extends Error {
|
|
1102
1126
|
constructor(body) {
|
|
1103
1127
|
super(
|
|
1104
|
-
`
|
|
1128
|
+
`INVALID_RANGE: ${body.message}`
|
|
1105
1129
|
);
|
|
1106
1130
|
this.body = body;
|
|
1107
|
-
this.name = "
|
|
1131
|
+
this.name = "InvalidRangeError";
|
|
1108
1132
|
}
|
|
1109
|
-
static code = "
|
|
1133
|
+
static code = "INVALID_RANGE";
|
|
1110
1134
|
static statusCode = 400;
|
|
1111
|
-
static description = `
|
|
1112
|
-
}
|
|
1113
|
-
class PackfileError extends Error {
|
|
1114
|
-
constructor(body) {
|
|
1115
|
-
super(
|
|
1116
|
-
`PACKFILE: ${body.message}`
|
|
1117
|
-
);
|
|
1118
|
-
this.body = body;
|
|
1119
|
-
this.name = "PackfileError";
|
|
1120
|
-
}
|
|
1121
|
-
static code = "PACKFILE";
|
|
1122
|
-
static statusCode = 500;
|
|
1123
|
-
static description = `Error building packfile`;
|
|
1124
|
-
}
|
|
1125
|
-
class PathNotFoundError extends Error {
|
|
1126
|
-
constructor(body) {
|
|
1127
|
-
super(
|
|
1128
|
-
`PATH_NOT_FOUND: ${body.message}`
|
|
1129
|
-
);
|
|
1130
|
-
this.body = body;
|
|
1131
|
-
this.name = "PathNotFoundError";
|
|
1132
|
-
}
|
|
1133
|
-
static code = "PATH_NOT_FOUND";
|
|
1134
|
-
static statusCode = 404;
|
|
1135
|
-
static description = `Path not found: {path}`;
|
|
1136
|
-
}
|
|
1137
|
-
class InvalidServiceError extends Error {
|
|
1138
|
-
constructor(body) {
|
|
1139
|
-
super(
|
|
1140
|
-
`INVALID_SERVICE: ${body.message}`
|
|
1141
|
-
);
|
|
1142
|
-
this.body = body;
|
|
1143
|
-
this.name = "InvalidServiceError";
|
|
1144
|
-
}
|
|
1145
|
-
static code = "INVALID_SERVICE";
|
|
1146
|
-
static statusCode = 403;
|
|
1147
|
-
static description = `Invalid service '{invalid}', expected 'git-upload-pack' or 'git-receive-pack'`;
|
|
1148
|
-
}
|
|
1149
|
-
class ExpectedServiceError extends Error {
|
|
1150
|
-
constructor(body) {
|
|
1151
|
-
super(
|
|
1152
|
-
`EXPECTED_SERVICE: ${body.message}`
|
|
1153
|
-
);
|
|
1154
|
-
this.body = body;
|
|
1155
|
-
this.name = "ExpectedServiceError";
|
|
1156
|
-
}
|
|
1157
|
-
static code = "EXPECTED_SERVICE";
|
|
1158
|
-
static statusCode = 403;
|
|
1159
|
-
static description = `Expected 'service' query parameter`;
|
|
1135
|
+
static description = `Invalid range: 'until' commit ({until}) must be a descendant of 'since' commit ({since}). In other words, 'until' must be newer than 'since' in the commit graph.`;
|
|
1160
1136
|
}
|
|
1161
|
-
class
|
|
1137
|
+
class OffsetWithSelectorError extends Error {
|
|
1162
1138
|
constructor(body) {
|
|
1163
1139
|
super(
|
|
1164
|
-
`
|
|
1140
|
+
`OFFSET_WITH_SELECTOR: ${body.message}`
|
|
1165
1141
|
);
|
|
1166
1142
|
this.body = body;
|
|
1167
|
-
this.name = "
|
|
1143
|
+
this.name = "OffsetWithSelectorError";
|
|
1168
1144
|
}
|
|
1169
|
-
static code = "
|
|
1170
|
-
static statusCode =
|
|
1171
|
-
static description = `
|
|
1145
|
+
static code = "OFFSET_WITH_SELECTOR";
|
|
1146
|
+
static statusCode = 400;
|
|
1147
|
+
static description = `Cannot use 'offset' parameter together with 'since' or 'until'. Use 'since' for cursor-based pagination.`;
|
|
1172
1148
|
}
|
|
1173
|
-
class
|
|
1149
|
+
class CommitNotInBranchError extends Error {
|
|
1174
1150
|
constructor(body) {
|
|
1175
1151
|
super(
|
|
1176
|
-
`
|
|
1152
|
+
`COMMIT_NOT_IN_BRANCH: ${body.message}`
|
|
1177
1153
|
);
|
|
1178
1154
|
this.body = body;
|
|
1179
|
-
this.name = "
|
|
1155
|
+
this.name = "CommitNotInBranchError";
|
|
1180
1156
|
}
|
|
1181
|
-
static code = "
|
|
1182
|
-
static statusCode =
|
|
1183
|
-
static description = `
|
|
1157
|
+
static code = "COMMIT_NOT_IN_BRANCH";
|
|
1158
|
+
static statusCode = 400;
|
|
1159
|
+
static description = `Commit {sha} is not in the history of branch {branch}`;
|
|
1184
1160
|
}
|
|
1185
|
-
class
|
|
1161
|
+
class BlobNotFoundError extends Error {
|
|
1186
1162
|
constructor(body) {
|
|
1187
1163
|
super(
|
|
1188
|
-
`
|
|
1164
|
+
`BLOB_NOT_FOUND: ${body.message}`
|
|
1189
1165
|
);
|
|
1190
1166
|
this.body = body;
|
|
1191
|
-
this.name = "
|
|
1167
|
+
this.name = "BlobNotFoundError";
|
|
1192
1168
|
}
|
|
1193
|
-
static code = "
|
|
1194
|
-
static statusCode =
|
|
1195
|
-
static description = `
|
|
1169
|
+
static code = "BLOB_NOT_FOUND";
|
|
1170
|
+
static statusCode = 404;
|
|
1171
|
+
static description = `Blob not found: {hash}`;
|
|
1196
1172
|
}
|
|
1197
|
-
class
|
|
1173
|
+
class AmbiguousError extends Error {
|
|
1198
1174
|
constructor(body) {
|
|
1199
1175
|
super(
|
|
1200
|
-
`
|
|
1176
|
+
`AMBIGUOUS: ${body.message}`
|
|
1201
1177
|
);
|
|
1202
1178
|
this.body = body;
|
|
1203
|
-
this.name = "
|
|
1179
|
+
this.name = "AmbiguousError";
|
|
1204
1180
|
}
|
|
1205
|
-
static code = "
|
|
1181
|
+
static code = "AMBIGUOUS";
|
|
1206
1182
|
static statusCode = 400;
|
|
1207
|
-
static description = `
|
|
1183
|
+
static description = `rev is ambiguous: {rev}`;
|
|
1208
1184
|
}
|
|
1209
|
-
class
|
|
1185
|
+
class InvalidError extends Error {
|
|
1210
1186
|
constructor(body) {
|
|
1211
1187
|
super(
|
|
1212
|
-
`
|
|
1188
|
+
`INVALID: ${body.message}`
|
|
1213
1189
|
);
|
|
1214
1190
|
this.body = body;
|
|
1215
|
-
this.name = "
|
|
1191
|
+
this.name = "InvalidError";
|
|
1216
1192
|
}
|
|
1217
|
-
static code = "
|
|
1193
|
+
static code = "INVALID";
|
|
1218
1194
|
static statusCode = 400;
|
|
1219
|
-
static description = `
|
|
1195
|
+
static description = `invalid rev syntax: {rev}`;
|
|
1220
1196
|
}
|
|
1221
|
-
class
|
|
1197
|
+
class PackfileError extends Error {
|
|
1222
1198
|
constructor(body) {
|
|
1223
1199
|
super(
|
|
1224
|
-
`
|
|
1200
|
+
`PACKFILE: ${body.message}`
|
|
1225
1201
|
);
|
|
1226
1202
|
this.body = body;
|
|
1227
|
-
this.name = "
|
|
1203
|
+
this.name = "PackfileError";
|
|
1228
1204
|
}
|
|
1229
|
-
static code = "
|
|
1230
|
-
static statusCode =
|
|
1231
|
-
static description = `
|
|
1205
|
+
static code = "PACKFILE";
|
|
1206
|
+
static statusCode = 500;
|
|
1207
|
+
static description = `Error building packfile`;
|
|
1232
1208
|
}
|
|
1233
|
-
class
|
|
1209
|
+
class DatabaseErrorError extends Error {
|
|
1234
1210
|
constructor(body) {
|
|
1235
1211
|
super(
|
|
1236
|
-
`
|
|
1212
|
+
`DATABASE_ERROR: ${body.message}`
|
|
1237
1213
|
);
|
|
1238
1214
|
this.body = body;
|
|
1239
|
-
this.name = "
|
|
1215
|
+
this.name = "DatabaseErrorError";
|
|
1240
1216
|
}
|
|
1241
|
-
static code = "
|
|
1242
|
-
static statusCode =
|
|
1243
|
-
static description = `
|
|
1217
|
+
static code = "DATABASE_ERROR";
|
|
1218
|
+
static statusCode = 500;
|
|
1219
|
+
static description = `Database error: {0}`;
|
|
1244
1220
|
}
|
|
1245
|
-
class
|
|
1221
|
+
class EmptyTagError extends Error {
|
|
1246
1222
|
constructor(body) {
|
|
1247
1223
|
super(
|
|
1248
|
-
`
|
|
1224
|
+
`EMPTY_TAG: ${body.message}`
|
|
1249
1225
|
);
|
|
1250
1226
|
this.body = body;
|
|
1251
|
-
this.name = "
|
|
1227
|
+
this.name = "EmptyTagError";
|
|
1252
1228
|
}
|
|
1253
|
-
static code = "
|
|
1254
|
-
static statusCode =
|
|
1255
|
-
static description = `
|
|
1229
|
+
static code = "EMPTY_TAG";
|
|
1230
|
+
static statusCode = 400;
|
|
1231
|
+
static description = `Invalid request: tag cannot be empty`;
|
|
1256
1232
|
}
|
|
1257
1233
|
class ResizeFailedError extends Error {
|
|
1258
1234
|
constructor(body) {
|
|
@@ -1506,73 +1482,349 @@ class DevServerNotFoundError extends Error {
|
|
|
1506
1482
|
static statusCode = 404;
|
|
1507
1483
|
static description = `Dev server not found: {server_id}`;
|
|
1508
1484
|
}
|
|
1509
|
-
class
|
|
1485
|
+
class AnyhowError extends Error {
|
|
1510
1486
|
constructor(body) {
|
|
1511
1487
|
super(
|
|
1512
|
-
`
|
|
1488
|
+
`ANYHOW: ${body.message}`
|
|
1513
1489
|
);
|
|
1514
1490
|
this.body = body;
|
|
1515
|
-
this.name = "
|
|
1491
|
+
this.name = "AnyhowError";
|
|
1516
1492
|
}
|
|
1517
|
-
static code = "
|
|
1493
|
+
static code = "ANYHOW";
|
|
1518
1494
|
static statusCode = 500;
|
|
1519
|
-
static description = `Internal error: {
|
|
1495
|
+
static description = `Internal server error: {0}`;
|
|
1520
1496
|
}
|
|
1521
|
-
class
|
|
1497
|
+
class BranchNameEmptyError extends Error {
|
|
1522
1498
|
constructor(body) {
|
|
1523
1499
|
super(
|
|
1524
|
-
`
|
|
1500
|
+
`BRANCH_NAME_EMPTY: ${body.message}`
|
|
1525
1501
|
);
|
|
1526
1502
|
this.body = body;
|
|
1527
|
-
this.name = "
|
|
1503
|
+
this.name = "BranchNameEmptyError";
|
|
1528
1504
|
}
|
|
1529
|
-
static code = "
|
|
1530
|
-
static statusCode =
|
|
1531
|
-
static description = `
|
|
1505
|
+
static code = "BRANCH_NAME_EMPTY";
|
|
1506
|
+
static statusCode = 400;
|
|
1507
|
+
static description = `Branch name cannot be empty`;
|
|
1532
1508
|
}
|
|
1533
|
-
class
|
|
1509
|
+
class PermissionAlreadyExistsError extends Error {
|
|
1534
1510
|
constructor(body) {
|
|
1535
1511
|
super(
|
|
1536
|
-
`
|
|
1512
|
+
`PERMISSION_ALREADY_EXISTS: ${body.message}`
|
|
1537
1513
|
);
|
|
1538
1514
|
this.body = body;
|
|
1539
|
-
this.name = "
|
|
1515
|
+
this.name = "PermissionAlreadyExistsError";
|
|
1540
1516
|
}
|
|
1541
|
-
static code = "
|
|
1542
|
-
static statusCode =
|
|
1543
|
-
static description = `
|
|
1517
|
+
static code = "PERMISSION_ALREADY_EXISTS";
|
|
1518
|
+
static statusCode = 409;
|
|
1519
|
+
static description = `Permission already exists`;
|
|
1544
1520
|
}
|
|
1545
|
-
class
|
|
1521
|
+
class ListTokensFailedError extends Error {
|
|
1546
1522
|
constructor(body) {
|
|
1547
1523
|
super(
|
|
1548
|
-
`
|
|
1524
|
+
`LIST_TOKENS_FAILED: ${body.message}`
|
|
1549
1525
|
);
|
|
1550
1526
|
this.body = body;
|
|
1551
|
-
this.name = "
|
|
1527
|
+
this.name = "ListTokensFailedError";
|
|
1552
1528
|
}
|
|
1553
|
-
static code = "
|
|
1529
|
+
static code = "LIST_TOKENS_FAILED";
|
|
1554
1530
|
static statusCode = 500;
|
|
1555
|
-
static description = `
|
|
1531
|
+
static description = `Failed to list tokens: {message}`;
|
|
1556
1532
|
}
|
|
1557
|
-
class
|
|
1533
|
+
class RevokeTokenFailedError extends Error {
|
|
1558
1534
|
constructor(body) {
|
|
1559
1535
|
super(
|
|
1560
|
-
`
|
|
1536
|
+
`REVOKE_TOKEN_FAILED: ${body.message}`
|
|
1561
1537
|
);
|
|
1562
1538
|
this.body = body;
|
|
1563
|
-
this.name = "
|
|
1539
|
+
this.name = "RevokeTokenFailedError";
|
|
1564
1540
|
}
|
|
1565
|
-
static code = "
|
|
1541
|
+
static code = "REVOKE_TOKEN_FAILED";
|
|
1566
1542
|
static statusCode = 500;
|
|
1567
|
-
static description = `Failed to
|
|
1543
|
+
static description = `Failed to revoke token: {message}`;
|
|
1568
1544
|
}
|
|
1569
|
-
class
|
|
1545
|
+
class CreateTokenFailedError extends Error {
|
|
1570
1546
|
constructor(body) {
|
|
1571
1547
|
super(
|
|
1572
|
-
`
|
|
1548
|
+
`CREATE_TOKEN_FAILED: ${body.message}`
|
|
1573
1549
|
);
|
|
1574
1550
|
this.body = body;
|
|
1575
|
-
this.name = "
|
|
1551
|
+
this.name = "CreateTokenFailedError";
|
|
1552
|
+
}
|
|
1553
|
+
static code = "CREATE_TOKEN_FAILED";
|
|
1554
|
+
static statusCode = 500;
|
|
1555
|
+
static description = `Failed to create token: {message}`;
|
|
1556
|
+
}
|
|
1557
|
+
class ListPermissionsFailedError extends Error {
|
|
1558
|
+
constructor(body) {
|
|
1559
|
+
super(
|
|
1560
|
+
`LIST_PERMISSIONS_FAILED: ${body.message}`
|
|
1561
|
+
);
|
|
1562
|
+
this.body = body;
|
|
1563
|
+
this.name = "ListPermissionsFailedError";
|
|
1564
|
+
}
|
|
1565
|
+
static code = "LIST_PERMISSIONS_FAILED";
|
|
1566
|
+
static statusCode = 500;
|
|
1567
|
+
static description = `Failed to list permissions: {message}`;
|
|
1568
|
+
}
|
|
1569
|
+
class GetPermissionFailedError extends Error {
|
|
1570
|
+
constructor(body) {
|
|
1571
|
+
super(
|
|
1572
|
+
`GET_PERMISSION_FAILED: ${body.message}`
|
|
1573
|
+
);
|
|
1574
|
+
this.body = body;
|
|
1575
|
+
this.name = "GetPermissionFailedError";
|
|
1576
|
+
}
|
|
1577
|
+
static code = "GET_PERMISSION_FAILED";
|
|
1578
|
+
static statusCode = 500;
|
|
1579
|
+
static description = `Failed to get permission: {message}`;
|
|
1580
|
+
}
|
|
1581
|
+
class UpdatePermissionFailedError extends Error {
|
|
1582
|
+
constructor(body) {
|
|
1583
|
+
super(
|
|
1584
|
+
`UPDATE_PERMISSION_FAILED: ${body.message}`
|
|
1585
|
+
);
|
|
1586
|
+
this.body = body;
|
|
1587
|
+
this.name = "UpdatePermissionFailedError";
|
|
1588
|
+
}
|
|
1589
|
+
static code = "UPDATE_PERMISSION_FAILED";
|
|
1590
|
+
static statusCode = 500;
|
|
1591
|
+
static description = `Failed to update permission: {message}`;
|
|
1592
|
+
}
|
|
1593
|
+
class RevokePermissionFailedError extends Error {
|
|
1594
|
+
constructor(body) {
|
|
1595
|
+
super(
|
|
1596
|
+
`REVOKE_PERMISSION_FAILED: ${body.message}`
|
|
1597
|
+
);
|
|
1598
|
+
this.body = body;
|
|
1599
|
+
this.name = "RevokePermissionFailedError";
|
|
1600
|
+
}
|
|
1601
|
+
static code = "REVOKE_PERMISSION_FAILED";
|
|
1602
|
+
static statusCode = 500;
|
|
1603
|
+
static description = `Failed to revoke permission: {message}`;
|
|
1604
|
+
}
|
|
1605
|
+
class GrantPermissionFailedError extends Error {
|
|
1606
|
+
constructor(body) {
|
|
1607
|
+
super(
|
|
1608
|
+
`GRANT_PERMISSION_FAILED: ${body.message}`
|
|
1609
|
+
);
|
|
1610
|
+
this.body = body;
|
|
1611
|
+
this.name = "GrantPermissionFailedError";
|
|
1612
|
+
}
|
|
1613
|
+
static code = "GRANT_PERMISSION_FAILED";
|
|
1614
|
+
static statusCode = 500;
|
|
1615
|
+
static description = `Failed to grant permission: {message}`;
|
|
1616
|
+
}
|
|
1617
|
+
class ListIdentitiesFailedError extends Error {
|
|
1618
|
+
constructor(body) {
|
|
1619
|
+
super(
|
|
1620
|
+
`LIST_IDENTITIES_FAILED: ${body.message}`
|
|
1621
|
+
);
|
|
1622
|
+
this.body = body;
|
|
1623
|
+
this.name = "ListIdentitiesFailedError";
|
|
1624
|
+
}
|
|
1625
|
+
static code = "LIST_IDENTITIES_FAILED";
|
|
1626
|
+
static statusCode = 500;
|
|
1627
|
+
static description = `Failed to list identities: {message}`;
|
|
1628
|
+
}
|
|
1629
|
+
class DeleteIdentityFailedError extends Error {
|
|
1630
|
+
constructor(body) {
|
|
1631
|
+
super(
|
|
1632
|
+
`DELETE_IDENTITY_FAILED: ${body.message}`
|
|
1633
|
+
);
|
|
1634
|
+
this.body = body;
|
|
1635
|
+
this.name = "DeleteIdentityFailedError";
|
|
1636
|
+
}
|
|
1637
|
+
static code = "DELETE_IDENTITY_FAILED";
|
|
1638
|
+
static statusCode = 500;
|
|
1639
|
+
static description = `Failed to delete identity: {message}`;
|
|
1640
|
+
}
|
|
1641
|
+
class CreateIdentityFailedError extends Error {
|
|
1642
|
+
constructor(body) {
|
|
1643
|
+
super(
|
|
1644
|
+
`CREATE_IDENTITY_FAILED: ${body.message}`
|
|
1645
|
+
);
|
|
1646
|
+
this.body = body;
|
|
1647
|
+
this.name = "CreateIdentityFailedError";
|
|
1648
|
+
}
|
|
1649
|
+
static code = "CREATE_IDENTITY_FAILED";
|
|
1650
|
+
static statusCode = 500;
|
|
1651
|
+
static description = `Failed to create identity: {message}`;
|
|
1652
|
+
}
|
|
1653
|
+
class VmPermissionNotFoundError extends Error {
|
|
1654
|
+
constructor(body) {
|
|
1655
|
+
super(
|
|
1656
|
+
`VM_PERMISSION_NOT_FOUND: ${body.message}`
|
|
1657
|
+
);
|
|
1658
|
+
this.body = body;
|
|
1659
|
+
this.name = "VmPermissionNotFoundError";
|
|
1660
|
+
}
|
|
1661
|
+
static code = "VM_PERMISSION_NOT_FOUND";
|
|
1662
|
+
static statusCode = 404;
|
|
1663
|
+
static description = `VM permission not found`;
|
|
1664
|
+
}
|
|
1665
|
+
class PermissionNotFoundError extends Error {
|
|
1666
|
+
constructor(body) {
|
|
1667
|
+
super(
|
|
1668
|
+
`PERMISSION_NOT_FOUND: ${body.message}`
|
|
1669
|
+
);
|
|
1670
|
+
this.body = body;
|
|
1671
|
+
this.name = "PermissionNotFoundError";
|
|
1672
|
+
}
|
|
1673
|
+
static code = "PERMISSION_NOT_FOUND";
|
|
1674
|
+
static statusCode = 404;
|
|
1675
|
+
static description = `Permission not found`;
|
|
1676
|
+
}
|
|
1677
|
+
class VmAccessDeniedError extends Error {
|
|
1678
|
+
constructor(body) {
|
|
1679
|
+
super(
|
|
1680
|
+
`VM_ACCESS_DENIED: ${body.message}`
|
|
1681
|
+
);
|
|
1682
|
+
this.body = body;
|
|
1683
|
+
this.name = "VmAccessDeniedError";
|
|
1684
|
+
}
|
|
1685
|
+
static code = "VM_ACCESS_DENIED";
|
|
1686
|
+
static statusCode = 403;
|
|
1687
|
+
static description = `You are not allowed to access this VM`;
|
|
1688
|
+
}
|
|
1689
|
+
class GitRepositoryAccessDeniedError extends Error {
|
|
1690
|
+
constructor(body) {
|
|
1691
|
+
super(
|
|
1692
|
+
`GIT_REPOSITORY_ACCESS_DENIED: ${body.message}`
|
|
1693
|
+
);
|
|
1694
|
+
this.body = body;
|
|
1695
|
+
this.name = "GitRepositoryAccessDeniedError";
|
|
1696
|
+
}
|
|
1697
|
+
static code = "GIT_REPOSITORY_ACCESS_DENIED";
|
|
1698
|
+
static statusCode = 403;
|
|
1699
|
+
static description = `You are not allowed to access this repository`;
|
|
1700
|
+
}
|
|
1701
|
+
class GitRepositoryNotFoundError extends Error {
|
|
1702
|
+
constructor(body) {
|
|
1703
|
+
super(
|
|
1704
|
+
`GIT_REPOSITORY_NOT_FOUND: ${body.message}`
|
|
1705
|
+
);
|
|
1706
|
+
this.body = body;
|
|
1707
|
+
this.name = "GitRepositoryNotFoundError";
|
|
1708
|
+
}
|
|
1709
|
+
static code = "GIT_REPOSITORY_NOT_FOUND";
|
|
1710
|
+
static statusCode = 404;
|
|
1711
|
+
static description = `Repository not found`;
|
|
1712
|
+
}
|
|
1713
|
+
class CannotDeleteManagedIdentityError extends Error {
|
|
1714
|
+
constructor(body) {
|
|
1715
|
+
super(
|
|
1716
|
+
`CANNOT_DELETE_MANAGED_IDENTITY: ${body.message}`
|
|
1717
|
+
);
|
|
1718
|
+
this.body = body;
|
|
1719
|
+
this.name = "CannotDeleteManagedIdentityError";
|
|
1720
|
+
}
|
|
1721
|
+
static code = "CANNOT_DELETE_MANAGED_IDENTITY";
|
|
1722
|
+
static statusCode = 403;
|
|
1723
|
+
static description = `Cannot delete managed identities`;
|
|
1724
|
+
}
|
|
1725
|
+
class CannotModifyManagedIdentityError extends Error {
|
|
1726
|
+
constructor(body) {
|
|
1727
|
+
super(
|
|
1728
|
+
`CANNOT_MODIFY_MANAGED_IDENTITY: ${body.message}`
|
|
1729
|
+
);
|
|
1730
|
+
this.body = body;
|
|
1731
|
+
this.name = "CannotModifyManagedIdentityError";
|
|
1732
|
+
}
|
|
1733
|
+
static code = "CANNOT_MODIFY_MANAGED_IDENTITY";
|
|
1734
|
+
static statusCode = 403;
|
|
1735
|
+
static description = `Cannot modify managed identities`;
|
|
1736
|
+
}
|
|
1737
|
+
class IdentityAccessDeniedError extends Error {
|
|
1738
|
+
constructor(body) {
|
|
1739
|
+
super(
|
|
1740
|
+
`IDENTITY_ACCESS_DENIED: ${body.message}`
|
|
1741
|
+
);
|
|
1742
|
+
this.body = body;
|
|
1743
|
+
this.name = "IdentityAccessDeniedError";
|
|
1744
|
+
}
|
|
1745
|
+
static code = "IDENTITY_ACCESS_DENIED";
|
|
1746
|
+
static statusCode = 403;
|
|
1747
|
+
static description = `You are not allowed to access this identity`;
|
|
1748
|
+
}
|
|
1749
|
+
class IdentityNotFoundError extends Error {
|
|
1750
|
+
constructor(body) {
|
|
1751
|
+
super(
|
|
1752
|
+
`IDENTITY_NOT_FOUND: ${body.message}`
|
|
1753
|
+
);
|
|
1754
|
+
this.body = body;
|
|
1755
|
+
this.name = "IdentityNotFoundError";
|
|
1756
|
+
}
|
|
1757
|
+
static code = "IDENTITY_NOT_FOUND";
|
|
1758
|
+
static statusCode = 404;
|
|
1759
|
+
static description = `Identity not found`;
|
|
1760
|
+
}
|
|
1761
|
+
class ExecuteInternalErrorError extends Error {
|
|
1762
|
+
constructor(body) {
|
|
1763
|
+
super(
|
|
1764
|
+
`EXECUTE_INTERNAL_ERROR: ${body.message}`
|
|
1765
|
+
);
|
|
1766
|
+
this.body = body;
|
|
1767
|
+
this.name = "ExecuteInternalErrorError";
|
|
1768
|
+
}
|
|
1769
|
+
static code = "EXECUTE_INTERNAL_ERROR";
|
|
1770
|
+
static statusCode = 500;
|
|
1771
|
+
static description = `Internal error: {message}`;
|
|
1772
|
+
}
|
|
1773
|
+
class ExecuteAccessDeniedError extends Error {
|
|
1774
|
+
constructor(body) {
|
|
1775
|
+
super(
|
|
1776
|
+
`EXECUTE_ACCESS_DENIED: ${body.message}`
|
|
1777
|
+
);
|
|
1778
|
+
this.body = body;
|
|
1779
|
+
this.name = "ExecuteAccessDeniedError";
|
|
1780
|
+
}
|
|
1781
|
+
static code = "EXECUTE_ACCESS_DENIED";
|
|
1782
|
+
static statusCode = 403;
|
|
1783
|
+
static description = `Access denied to execute run`;
|
|
1784
|
+
}
|
|
1785
|
+
class ListRunsFailedError extends Error {
|
|
1786
|
+
constructor(body) {
|
|
1787
|
+
super(
|
|
1788
|
+
`LIST_RUNS_FAILED: ${body.message}`
|
|
1789
|
+
);
|
|
1790
|
+
this.body = body;
|
|
1791
|
+
this.name = "ListRunsFailedError";
|
|
1792
|
+
}
|
|
1793
|
+
static code = "LIST_RUNS_FAILED";
|
|
1794
|
+
static statusCode = 500;
|
|
1795
|
+
static description = `Failed to list execute runs: {message}`;
|
|
1796
|
+
}
|
|
1797
|
+
class ExecutionErrorError extends Error {
|
|
1798
|
+
constructor(body) {
|
|
1799
|
+
super(
|
|
1800
|
+
`EXECUTION_ERROR: ${body.message}`
|
|
1801
|
+
);
|
|
1802
|
+
this.body = body;
|
|
1803
|
+
this.name = "ExecutionErrorError";
|
|
1804
|
+
}
|
|
1805
|
+
static code = "EXECUTION_ERROR";
|
|
1806
|
+
static statusCode = 500;
|
|
1807
|
+
static description = `Script execution error: {message}`;
|
|
1808
|
+
}
|
|
1809
|
+
class ConnectionFailedError extends Error {
|
|
1810
|
+
constructor(body) {
|
|
1811
|
+
super(
|
|
1812
|
+
`CONNECTION_FAILED: ${body.message}`
|
|
1813
|
+
);
|
|
1814
|
+
this.body = body;
|
|
1815
|
+
this.name = "ConnectionFailedError";
|
|
1816
|
+
}
|
|
1817
|
+
static code = "CONNECTION_FAILED";
|
|
1818
|
+
static statusCode = 500;
|
|
1819
|
+
static description = `Failed to connect to execute server: {message}`;
|
|
1820
|
+
}
|
|
1821
|
+
class MetadataWriteFailedError extends Error {
|
|
1822
|
+
constructor(body) {
|
|
1823
|
+
super(
|
|
1824
|
+
`METADATA_WRITE_FAILED: ${body.message}`
|
|
1825
|
+
);
|
|
1826
|
+
this.body = body;
|
|
1827
|
+
this.name = "MetadataWriteFailedError";
|
|
1576
1828
|
}
|
|
1577
1829
|
static code = "METADATA_WRITE_FAILED";
|
|
1578
1830
|
static statusCode = 500;
|
|
@@ -1674,42 +1926,6 @@ class RunNotFoundError extends Error {
|
|
|
1674
1926
|
static statusCode = 404;
|
|
1675
1927
|
static description = `Execute run not found: {run_id}`;
|
|
1676
1928
|
}
|
|
1677
|
-
class EmptyTagError extends Error {
|
|
1678
|
-
constructor(body) {
|
|
1679
|
-
super(
|
|
1680
|
-
`EMPTY_TAG: ${body.message}`
|
|
1681
|
-
);
|
|
1682
|
-
this.body = body;
|
|
1683
|
-
this.name = "EmptyTagError";
|
|
1684
|
-
}
|
|
1685
|
-
static code = "EMPTY_TAG";
|
|
1686
|
-
static statusCode = 400;
|
|
1687
|
-
static description = `Invalid request: tag cannot be empty`;
|
|
1688
|
-
}
|
|
1689
|
-
class AnyhowError extends Error {
|
|
1690
|
-
constructor(body) {
|
|
1691
|
-
super(
|
|
1692
|
-
`ANYHOW: ${body.message}`
|
|
1693
|
-
);
|
|
1694
|
-
this.body = body;
|
|
1695
|
-
this.name = "AnyhowError";
|
|
1696
|
-
}
|
|
1697
|
-
static code = "ANYHOW";
|
|
1698
|
-
static statusCode = 500;
|
|
1699
|
-
static description = `Internal server error: {0}`;
|
|
1700
|
-
}
|
|
1701
|
-
class BranchNameEmptyError extends Error {
|
|
1702
|
-
constructor(body) {
|
|
1703
|
-
super(
|
|
1704
|
-
`BRANCH_NAME_EMPTY: ${body.message}`
|
|
1705
|
-
);
|
|
1706
|
-
this.body = body;
|
|
1707
|
-
this.name = "BranchNameEmptyError";
|
|
1708
|
-
}
|
|
1709
|
-
static code = "BRANCH_NAME_EMPTY";
|
|
1710
|
-
static statusCode = 400;
|
|
1711
|
-
static description = `Branch name cannot be empty`;
|
|
1712
|
-
}
|
|
1713
1929
|
class CloudstateInternalErrorError extends Error {
|
|
1714
1930
|
constructor(body) {
|
|
1715
1931
|
super(
|
|
@@ -1818,269 +2034,161 @@ class ProjectNotFoundError extends Error {
|
|
|
1818
2034
|
static statusCode = 404;
|
|
1819
2035
|
static description = `Project not found: {project_id}`;
|
|
1820
2036
|
}
|
|
1821
|
-
class
|
|
1822
|
-
constructor(body) {
|
|
1823
|
-
super(
|
|
1824
|
-
`PERMISSION_ALREADY_EXISTS: ${body.message}`
|
|
1825
|
-
);
|
|
1826
|
-
this.body = body;
|
|
1827
|
-
this.name = "PermissionAlreadyExistsError";
|
|
1828
|
-
}
|
|
1829
|
-
static code = "PERMISSION_ALREADY_EXISTS";
|
|
1830
|
-
static statusCode = 409;
|
|
1831
|
-
static description = `Permission already exists`;
|
|
1832
|
-
}
|
|
1833
|
-
class ListTokensFailedError extends Error {
|
|
1834
|
-
constructor(body) {
|
|
1835
|
-
super(
|
|
1836
|
-
`LIST_TOKENS_FAILED: ${body.message}`
|
|
1837
|
-
);
|
|
1838
|
-
this.body = body;
|
|
1839
|
-
this.name = "ListTokensFailedError";
|
|
1840
|
-
}
|
|
1841
|
-
static code = "LIST_TOKENS_FAILED";
|
|
1842
|
-
static statusCode = 500;
|
|
1843
|
-
static description = `Failed to list tokens: {message}`;
|
|
1844
|
-
}
|
|
1845
|
-
class RevokeTokenFailedError extends Error {
|
|
1846
|
-
constructor(body) {
|
|
1847
|
-
super(
|
|
1848
|
-
`REVOKE_TOKEN_FAILED: ${body.message}`
|
|
1849
|
-
);
|
|
1850
|
-
this.body = body;
|
|
1851
|
-
this.name = "RevokeTokenFailedError";
|
|
1852
|
-
}
|
|
1853
|
-
static code = "REVOKE_TOKEN_FAILED";
|
|
1854
|
-
static statusCode = 500;
|
|
1855
|
-
static description = `Failed to revoke token: {message}`;
|
|
1856
|
-
}
|
|
1857
|
-
class CreateTokenFailedError extends Error {
|
|
1858
|
-
constructor(body) {
|
|
1859
|
-
super(
|
|
1860
|
-
`CREATE_TOKEN_FAILED: ${body.message}`
|
|
1861
|
-
);
|
|
1862
|
-
this.body = body;
|
|
1863
|
-
this.name = "CreateTokenFailedError";
|
|
1864
|
-
}
|
|
1865
|
-
static code = "CREATE_TOKEN_FAILED";
|
|
1866
|
-
static statusCode = 500;
|
|
1867
|
-
static description = `Failed to create token: {message}`;
|
|
1868
|
-
}
|
|
1869
|
-
class ListPermissionsFailedError extends Error {
|
|
1870
|
-
constructor(body) {
|
|
1871
|
-
super(
|
|
1872
|
-
`LIST_PERMISSIONS_FAILED: ${body.message}`
|
|
1873
|
-
);
|
|
1874
|
-
this.body = body;
|
|
1875
|
-
this.name = "ListPermissionsFailedError";
|
|
1876
|
-
}
|
|
1877
|
-
static code = "LIST_PERMISSIONS_FAILED";
|
|
1878
|
-
static statusCode = 500;
|
|
1879
|
-
static description = `Failed to list permissions: {message}`;
|
|
1880
|
-
}
|
|
1881
|
-
class GetPermissionFailedError extends Error {
|
|
1882
|
-
constructor(body) {
|
|
1883
|
-
super(
|
|
1884
|
-
`GET_PERMISSION_FAILED: ${body.message}`
|
|
1885
|
-
);
|
|
1886
|
-
this.body = body;
|
|
1887
|
-
this.name = "GetPermissionFailedError";
|
|
1888
|
-
}
|
|
1889
|
-
static code = "GET_PERMISSION_FAILED";
|
|
1890
|
-
static statusCode = 500;
|
|
1891
|
-
static description = `Failed to get permission: {message}`;
|
|
1892
|
-
}
|
|
1893
|
-
class UpdatePermissionFailedError extends Error {
|
|
1894
|
-
constructor(body) {
|
|
1895
|
-
super(
|
|
1896
|
-
`UPDATE_PERMISSION_FAILED: ${body.message}`
|
|
1897
|
-
);
|
|
1898
|
-
this.body = body;
|
|
1899
|
-
this.name = "UpdatePermissionFailedError";
|
|
1900
|
-
}
|
|
1901
|
-
static code = "UPDATE_PERMISSION_FAILED";
|
|
1902
|
-
static statusCode = 500;
|
|
1903
|
-
static description = `Failed to update permission: {message}`;
|
|
1904
|
-
}
|
|
1905
|
-
class RevokePermissionFailedError extends Error {
|
|
1906
|
-
constructor(body) {
|
|
1907
|
-
super(
|
|
1908
|
-
`REVOKE_PERMISSION_FAILED: ${body.message}`
|
|
1909
|
-
);
|
|
1910
|
-
this.body = body;
|
|
1911
|
-
this.name = "RevokePermissionFailedError";
|
|
1912
|
-
}
|
|
1913
|
-
static code = "REVOKE_PERMISSION_FAILED";
|
|
1914
|
-
static statusCode = 500;
|
|
1915
|
-
static description = `Failed to revoke permission: {message}`;
|
|
1916
|
-
}
|
|
1917
|
-
class GrantPermissionFailedError extends Error {
|
|
1918
|
-
constructor(body) {
|
|
1919
|
-
super(
|
|
1920
|
-
`GRANT_PERMISSION_FAILED: ${body.message}`
|
|
1921
|
-
);
|
|
1922
|
-
this.body = body;
|
|
1923
|
-
this.name = "GrantPermissionFailedError";
|
|
1924
|
-
}
|
|
1925
|
-
static code = "GRANT_PERMISSION_FAILED";
|
|
1926
|
-
static statusCode = 500;
|
|
1927
|
-
static description = `Failed to grant permission: {message}`;
|
|
1928
|
-
}
|
|
1929
|
-
class ListIdentitiesFailedError extends Error {
|
|
2037
|
+
class UnauthorizedErrorError extends Error {
|
|
1930
2038
|
constructor(body) {
|
|
1931
2039
|
super(
|
|
1932
|
-
`
|
|
2040
|
+
`UNAUTHORIZED_ERROR: ${body.message}`
|
|
1933
2041
|
);
|
|
1934
2042
|
this.body = body;
|
|
1935
|
-
this.name = "
|
|
2043
|
+
this.name = "UnauthorizedErrorError";
|
|
1936
2044
|
}
|
|
1937
|
-
static code = "
|
|
1938
|
-
static statusCode =
|
|
1939
|
-
static description = `
|
|
2045
|
+
static code = "UNAUTHORIZED_ERROR";
|
|
2046
|
+
static statusCode = 401;
|
|
2047
|
+
static description = `Unauthorized request to {route}`;
|
|
1940
2048
|
}
|
|
1941
|
-
class
|
|
2049
|
+
class BuildFailedError extends Error {
|
|
1942
2050
|
constructor(body) {
|
|
1943
2051
|
super(
|
|
1944
|
-
`
|
|
2052
|
+
`BUILD_FAILED: ${body.message}`
|
|
1945
2053
|
);
|
|
1946
2054
|
this.body = body;
|
|
1947
|
-
this.name = "
|
|
2055
|
+
this.name = "BuildFailedError";
|
|
1948
2056
|
}
|
|
1949
|
-
static code = "
|
|
2057
|
+
static code = "BUILD_FAILED";
|
|
1950
2058
|
static statusCode = 500;
|
|
1951
|
-
static description = `
|
|
2059
|
+
static description = `Build failed on VM {vm_id}`;
|
|
1952
2060
|
}
|
|
1953
|
-
class
|
|
2061
|
+
class ServerDeploymentFailedError extends Error {
|
|
1954
2062
|
constructor(body) {
|
|
1955
2063
|
super(
|
|
1956
|
-
`
|
|
2064
|
+
`SERVER_DEPLOYMENT_FAILED: ${body.message}`
|
|
1957
2065
|
);
|
|
1958
2066
|
this.body = body;
|
|
1959
|
-
this.name = "
|
|
2067
|
+
this.name = "ServerDeploymentFailedError";
|
|
1960
2068
|
}
|
|
1961
|
-
static code = "
|
|
1962
|
-
static statusCode =
|
|
1963
|
-
static description = `Failed to
|
|
2069
|
+
static code = "SERVER_DEPLOYMENT_FAILED";
|
|
2070
|
+
static statusCode = 502;
|
|
2071
|
+
static description = `Failed to deploy to servers`;
|
|
1964
2072
|
}
|
|
1965
|
-
class
|
|
2073
|
+
class LockfileErrorError extends Error {
|
|
1966
2074
|
constructor(body) {
|
|
1967
2075
|
super(
|
|
1968
|
-
`
|
|
2076
|
+
`LOCKFILE_ERROR: ${body.message}`
|
|
1969
2077
|
);
|
|
1970
2078
|
this.body = body;
|
|
1971
|
-
this.name = "
|
|
2079
|
+
this.name = "LockfileErrorError";
|
|
1972
2080
|
}
|
|
1973
|
-
static code = "
|
|
1974
|
-
static statusCode =
|
|
1975
|
-
static description = `
|
|
2081
|
+
static code = "LOCKFILE_ERROR";
|
|
2082
|
+
static statusCode = 500;
|
|
2083
|
+
static description = `Failed to generate dependency lockfile: {message}`;
|
|
1976
2084
|
}
|
|
1977
|
-
class
|
|
2085
|
+
class UploadErrorError extends Error {
|
|
1978
2086
|
constructor(body) {
|
|
1979
2087
|
super(
|
|
1980
|
-
`
|
|
2088
|
+
`UPLOAD_ERROR: ${body.message}`
|
|
1981
2089
|
);
|
|
1982
2090
|
this.body = body;
|
|
1983
|
-
this.name = "
|
|
2091
|
+
this.name = "UploadErrorError";
|
|
1984
2092
|
}
|
|
1985
|
-
static code = "
|
|
1986
|
-
static statusCode =
|
|
1987
|
-
static description = `
|
|
2093
|
+
static code = "UPLOAD_ERROR";
|
|
2094
|
+
static statusCode = 500;
|
|
2095
|
+
static description = `Failed to upload deployment to storage`;
|
|
1988
2096
|
}
|
|
1989
|
-
class
|
|
2097
|
+
class DomainMappingErrorError extends Error {
|
|
1990
2098
|
constructor(body) {
|
|
1991
2099
|
super(
|
|
1992
|
-
`
|
|
2100
|
+
`DOMAIN_MAPPING_ERROR: ${body.message}`
|
|
1993
2101
|
);
|
|
1994
2102
|
this.body = body;
|
|
1995
|
-
this.name = "
|
|
2103
|
+
this.name = "DomainMappingErrorError";
|
|
1996
2104
|
}
|
|
1997
|
-
static code = "
|
|
1998
|
-
static statusCode =
|
|
1999
|
-
static description = `
|
|
2105
|
+
static code = "DOMAIN_MAPPING_ERROR";
|
|
2106
|
+
static statusCode = 500;
|
|
2107
|
+
static description = `Failed to configure domain mapping for: {domain}`;
|
|
2000
2108
|
}
|
|
2001
|
-
class
|
|
2109
|
+
class CertificateProvisioningErrorError extends Error {
|
|
2002
2110
|
constructor(body) {
|
|
2003
2111
|
super(
|
|
2004
|
-
`
|
|
2112
|
+
`CERTIFICATE_PROVISIONING_ERROR: ${body.message}`
|
|
2005
2113
|
);
|
|
2006
2114
|
this.body = body;
|
|
2007
|
-
this.name = "
|
|
2115
|
+
this.name = "CertificateProvisioningErrorError";
|
|
2008
2116
|
}
|
|
2009
|
-
static code = "
|
|
2010
|
-
static statusCode =
|
|
2011
|
-
static description = `
|
|
2117
|
+
static code = "CERTIFICATE_PROVISIONING_ERROR";
|
|
2118
|
+
static statusCode = 502;
|
|
2119
|
+
static description = `Failed to provision certificate for domain: {domain}`;
|
|
2012
2120
|
}
|
|
2013
|
-
class
|
|
2121
|
+
class NoEntrypointFoundError extends Error {
|
|
2014
2122
|
constructor(body) {
|
|
2015
2123
|
super(
|
|
2016
|
-
`
|
|
2124
|
+
`NO_ENTRYPOINT_FOUND: ${body.message}`
|
|
2017
2125
|
);
|
|
2018
2126
|
this.body = body;
|
|
2019
|
-
this.name = "
|
|
2127
|
+
this.name = "NoEntrypointFoundError";
|
|
2020
2128
|
}
|
|
2021
|
-
static code = "
|
|
2022
|
-
static statusCode =
|
|
2023
|
-
static description = `
|
|
2129
|
+
static code = "NO_ENTRYPOINT_FOUND";
|
|
2130
|
+
static statusCode = 400;
|
|
2131
|
+
static description = `No entrypoint found in deployment`;
|
|
2024
2132
|
}
|
|
2025
|
-
class
|
|
2133
|
+
class EntrypointNotFoundError extends Error {
|
|
2026
2134
|
constructor(body) {
|
|
2027
2135
|
super(
|
|
2028
|
-
`
|
|
2136
|
+
`ENTRYPOINT_NOT_FOUND: ${body.message}`
|
|
2029
2137
|
);
|
|
2030
2138
|
this.body = body;
|
|
2031
|
-
this.name = "
|
|
2139
|
+
this.name = "EntrypointNotFoundError";
|
|
2032
2140
|
}
|
|
2033
|
-
static code = "
|
|
2034
|
-
static statusCode =
|
|
2035
|
-
static description = `
|
|
2141
|
+
static code = "ENTRYPOINT_NOT_FOUND";
|
|
2142
|
+
static statusCode = 400;
|
|
2143
|
+
static description = `Entrypoint not found: {entrypoint}`;
|
|
2036
2144
|
}
|
|
2037
|
-
class
|
|
2145
|
+
class NoDomainOwnershipError extends Error {
|
|
2038
2146
|
constructor(body) {
|
|
2039
2147
|
super(
|
|
2040
|
-
`
|
|
2148
|
+
`NO_DOMAIN_OWNERSHIP: ${body.message}`
|
|
2041
2149
|
);
|
|
2042
2150
|
this.body = body;
|
|
2043
|
-
this.name = "
|
|
2151
|
+
this.name = "NoDomainOwnershipError";
|
|
2044
2152
|
}
|
|
2045
|
-
static code = "
|
|
2153
|
+
static code = "NO_DOMAIN_OWNERSHIP";
|
|
2046
2154
|
static statusCode = 403;
|
|
2047
|
-
static description = `
|
|
2155
|
+
static description = `No domain ownership for: {domain}`;
|
|
2048
2156
|
}
|
|
2049
|
-
class
|
|
2157
|
+
class InvalidDomainsError extends Error {
|
|
2050
2158
|
constructor(body) {
|
|
2051
2159
|
super(
|
|
2052
|
-
`
|
|
2160
|
+
`INVALID_DOMAINS: ${body.message}`
|
|
2053
2161
|
);
|
|
2054
2162
|
this.body = body;
|
|
2055
|
-
this.name = "
|
|
2163
|
+
this.name = "InvalidDomainsError";
|
|
2056
2164
|
}
|
|
2057
|
-
static code = "
|
|
2058
|
-
static statusCode =
|
|
2059
|
-
static description = `
|
|
2165
|
+
static code = "INVALID_DOMAINS";
|
|
2166
|
+
static statusCode = 400;
|
|
2167
|
+
static description = `Invalid domains provided`;
|
|
2060
2168
|
}
|
|
2061
|
-
class
|
|
2169
|
+
class WebDeploymentBadRequestError extends Error {
|
|
2062
2170
|
constructor(body) {
|
|
2063
2171
|
super(
|
|
2064
|
-
`
|
|
2172
|
+
`WEB_DEPLOYMENT_BAD_REQUEST: ${body.message}`
|
|
2065
2173
|
);
|
|
2066
2174
|
this.body = body;
|
|
2067
|
-
this.name = "
|
|
2175
|
+
this.name = "WebDeploymentBadRequestError";
|
|
2068
2176
|
}
|
|
2069
|
-
static code = "
|
|
2070
|
-
static statusCode =
|
|
2071
|
-
static description = `
|
|
2177
|
+
static code = "WEB_DEPLOYMENT_BAD_REQUEST";
|
|
2178
|
+
static statusCode = 400;
|
|
2179
|
+
static description = `Bad request: {message}`;
|
|
2072
2180
|
}
|
|
2073
|
-
class
|
|
2181
|
+
class DeploymentNotFoundError extends Error {
|
|
2074
2182
|
constructor(body) {
|
|
2075
2183
|
super(
|
|
2076
|
-
`
|
|
2184
|
+
`DEPLOYMENT_NOT_FOUND: ${body.message}`
|
|
2077
2185
|
);
|
|
2078
2186
|
this.body = body;
|
|
2079
|
-
this.name = "
|
|
2187
|
+
this.name = "DeploymentNotFoundError";
|
|
2080
2188
|
}
|
|
2081
|
-
static code = "
|
|
2082
|
-
static statusCode =
|
|
2083
|
-
static description = `
|
|
2189
|
+
static code = "DEPLOYMENT_NOT_FOUND";
|
|
2190
|
+
static statusCode = 404;
|
|
2191
|
+
static description = `Deployment not found`;
|
|
2084
2192
|
}
|
|
2085
2193
|
class ObservabilityDatabaseErrorError extends Error {
|
|
2086
2194
|
constructor(body) {
|
|
@@ -2404,271 +2512,127 @@ class FailedToInsertDomainMappingError extends Error {
|
|
|
2404
2512
|
}
|
|
2405
2513
|
static code = "FAILED_TO_INSERT_DOMAIN_MAPPING";
|
|
2406
2514
|
static statusCode = 500;
|
|
2407
|
-
static description = `Failed to insert domain mapping: {message}`;
|
|
2408
|
-
}
|
|
2409
|
-
class PermissionDeniedError extends Error {
|
|
2410
|
-
constructor(body) {
|
|
2411
|
-
super(
|
|
2412
|
-
`PERMISSION_DENIED: ${body.message}`
|
|
2413
|
-
);
|
|
2414
|
-
this.body = body;
|
|
2415
|
-
this.name = "PermissionDeniedError";
|
|
2416
|
-
}
|
|
2417
|
-
static code = "PERMISSION_DENIED";
|
|
2418
|
-
static statusCode = 401;
|
|
2419
|
-
static description = `Permission denied: {message}`;
|
|
2420
|
-
}
|
|
2421
|
-
class FailedToCheckPermissionsError extends Error {
|
|
2422
|
-
constructor(body) {
|
|
2423
|
-
super(
|
|
2424
|
-
`FAILED_TO_CHECK_PERMISSIONS: ${body.message}`
|
|
2425
|
-
);
|
|
2426
|
-
this.body = body;
|
|
2427
|
-
this.name = "FailedToCheckPermissionsError";
|
|
2428
|
-
}
|
|
2429
|
-
static code = "FAILED_TO_CHECK_PERMISSIONS";
|
|
2430
|
-
static statusCode = 502;
|
|
2431
|
-
static description = `Failed to check permissions: {message}`;
|
|
2432
|
-
}
|
|
2433
|
-
class FailedToListDomainsError extends Error {
|
|
2434
|
-
constructor(body) {
|
|
2435
|
-
super(
|
|
2436
|
-
`FAILED_TO_LIST_DOMAINS: ${body.message}`
|
|
2437
|
-
);
|
|
2438
|
-
this.body = body;
|
|
2439
|
-
this.name = "FailedToListDomainsError";
|
|
2440
|
-
}
|
|
2441
|
-
static code = "FAILED_TO_LIST_DOMAINS";
|
|
2442
|
-
static statusCode = 500;
|
|
2443
|
-
static description = `Failed to list domains: {message}`;
|
|
2444
|
-
}
|
|
2445
|
-
class FailedToListVerificationsError extends Error {
|
|
2446
|
-
constructor(body) {
|
|
2447
|
-
super(
|
|
2448
|
-
`FAILED_TO_LIST_VERIFICATIONS: ${body.message}`
|
|
2449
|
-
);
|
|
2450
|
-
this.body = body;
|
|
2451
|
-
this.name = "FailedToListVerificationsError";
|
|
2452
|
-
}
|
|
2453
|
-
static code = "FAILED_TO_LIST_VERIFICATIONS";
|
|
2454
|
-
static statusCode = 500;
|
|
2455
|
-
static description = `Failed to list verifications: {message}`;
|
|
2456
|
-
}
|
|
2457
|
-
class FailedToVerifyDomainError extends Error {
|
|
2458
|
-
constructor(body) {
|
|
2459
|
-
super(
|
|
2460
|
-
`FAILED_TO_VERIFY_DOMAIN: ${body.message}`
|
|
2461
|
-
);
|
|
2462
|
-
this.body = body;
|
|
2463
|
-
this.name = "FailedToVerifyDomainError";
|
|
2464
|
-
}
|
|
2465
|
-
static code = "FAILED_TO_VERIFY_DOMAIN";
|
|
2466
|
-
static statusCode = 500;
|
|
2467
|
-
static description = `Failed to verify domain: {message}`;
|
|
2468
|
-
}
|
|
2469
|
-
class VerificationFailedError extends Error {
|
|
2470
|
-
constructor(body) {
|
|
2471
|
-
super(
|
|
2472
|
-
`VERIFICATION_FAILED: ${body.message}`
|
|
2473
|
-
);
|
|
2474
|
-
this.body = body;
|
|
2475
|
-
this.name = "VerificationFailedError";
|
|
2476
|
-
}
|
|
2477
|
-
static code = "VERIFICATION_FAILED";
|
|
2478
|
-
static statusCode = 400;
|
|
2479
|
-
static description = `Domain verification failed: {message}`;
|
|
2480
|
-
}
|
|
2481
|
-
class FailedToDeleteVerificationError extends Error {
|
|
2482
|
-
constructor(body) {
|
|
2483
|
-
super(
|
|
2484
|
-
`FAILED_TO_DELETE_VERIFICATION: ${body.message}`
|
|
2485
|
-
);
|
|
2486
|
-
this.body = body;
|
|
2487
|
-
this.name = "FailedToDeleteVerificationError";
|
|
2488
|
-
}
|
|
2489
|
-
static code = "FAILED_TO_DELETE_VERIFICATION";
|
|
2490
|
-
static statusCode = 400;
|
|
2491
|
-
static description = `Failed to delete verification: {message}`;
|
|
2492
|
-
}
|
|
2493
|
-
class VerificationNotFoundError extends Error {
|
|
2494
|
-
constructor(body) {
|
|
2495
|
-
super(
|
|
2496
|
-
`VERIFICATION_NOT_FOUND: ${body.message}`
|
|
2497
|
-
);
|
|
2498
|
-
this.body = body;
|
|
2499
|
-
this.name = "VerificationNotFoundError";
|
|
2500
|
-
}
|
|
2501
|
-
static code = "VERIFICATION_NOT_FOUND";
|
|
2502
|
-
static statusCode = 404;
|
|
2503
|
-
static description = `Verification request not found for domain: {domain}`;
|
|
2504
|
-
}
|
|
2505
|
-
class FailedToCreateVerificationCodeError extends Error {
|
|
2506
|
-
constructor(body) {
|
|
2507
|
-
super(
|
|
2508
|
-
`FAILED_TO_CREATE_VERIFICATION_CODE: ${body.message}`
|
|
2509
|
-
);
|
|
2510
|
-
this.body = body;
|
|
2511
|
-
this.name = "FailedToCreateVerificationCodeError";
|
|
2512
|
-
}
|
|
2513
|
-
static code = "FAILED_TO_CREATE_VERIFICATION_CODE";
|
|
2514
|
-
static statusCode = 400;
|
|
2515
|
-
static description = `Failed to create verification code: {message}`;
|
|
2516
|
-
}
|
|
2517
|
-
class InvalidDomainError extends Error {
|
|
2518
|
-
constructor(body) {
|
|
2519
|
-
super(
|
|
2520
|
-
`INVALID_DOMAIN: ${body.message}`
|
|
2521
|
-
);
|
|
2522
|
-
this.body = body;
|
|
2523
|
-
this.name = "InvalidDomainError";
|
|
2524
|
-
}
|
|
2525
|
-
static code = "INVALID_DOMAIN";
|
|
2526
|
-
static statusCode = 400;
|
|
2527
|
-
static description = `Invalid domain: {domain}`;
|
|
2528
|
-
}
|
|
2529
|
-
class BuildFailedError extends Error {
|
|
2530
|
-
constructor(body) {
|
|
2531
|
-
super(
|
|
2532
|
-
`BUILD_FAILED: ${body.message}`
|
|
2533
|
-
);
|
|
2534
|
-
this.body = body;
|
|
2535
|
-
this.name = "BuildFailedError";
|
|
2536
|
-
}
|
|
2537
|
-
static code = "BUILD_FAILED";
|
|
2538
|
-
static statusCode = 500;
|
|
2539
|
-
static description = `Build failed on VM {vm_id}`;
|
|
2515
|
+
static description = `Failed to insert domain mapping: {message}`;
|
|
2540
2516
|
}
|
|
2541
|
-
class
|
|
2517
|
+
class PermissionDeniedError extends Error {
|
|
2542
2518
|
constructor(body) {
|
|
2543
2519
|
super(
|
|
2544
|
-
`
|
|
2520
|
+
`PERMISSION_DENIED: ${body.message}`
|
|
2545
2521
|
);
|
|
2546
2522
|
this.body = body;
|
|
2547
|
-
this.name = "
|
|
2523
|
+
this.name = "PermissionDeniedError";
|
|
2548
2524
|
}
|
|
2549
|
-
static code = "
|
|
2550
|
-
static statusCode =
|
|
2551
|
-
static description = `
|
|
2525
|
+
static code = "PERMISSION_DENIED";
|
|
2526
|
+
static statusCode = 401;
|
|
2527
|
+
static description = `Permission denied: {message}`;
|
|
2552
2528
|
}
|
|
2553
|
-
class
|
|
2529
|
+
class FailedToCheckPermissionsError extends Error {
|
|
2554
2530
|
constructor(body) {
|
|
2555
2531
|
super(
|
|
2556
|
-
`
|
|
2532
|
+
`FAILED_TO_CHECK_PERMISSIONS: ${body.message}`
|
|
2557
2533
|
);
|
|
2558
2534
|
this.body = body;
|
|
2559
|
-
this.name = "
|
|
2535
|
+
this.name = "FailedToCheckPermissionsError";
|
|
2560
2536
|
}
|
|
2561
|
-
static code = "
|
|
2562
|
-
static statusCode =
|
|
2563
|
-
static description = `Failed to
|
|
2537
|
+
static code = "FAILED_TO_CHECK_PERMISSIONS";
|
|
2538
|
+
static statusCode = 502;
|
|
2539
|
+
static description = `Failed to check permissions: {message}`;
|
|
2564
2540
|
}
|
|
2565
|
-
class
|
|
2541
|
+
class FailedToListDomainsError extends Error {
|
|
2566
2542
|
constructor(body) {
|
|
2567
2543
|
super(
|
|
2568
|
-
`
|
|
2544
|
+
`FAILED_TO_LIST_DOMAINS: ${body.message}`
|
|
2569
2545
|
);
|
|
2570
2546
|
this.body = body;
|
|
2571
|
-
this.name = "
|
|
2547
|
+
this.name = "FailedToListDomainsError";
|
|
2572
2548
|
}
|
|
2573
|
-
static code = "
|
|
2549
|
+
static code = "FAILED_TO_LIST_DOMAINS";
|
|
2574
2550
|
static statusCode = 500;
|
|
2575
|
-
static description = `Failed to
|
|
2551
|
+
static description = `Failed to list domains: {message}`;
|
|
2576
2552
|
}
|
|
2577
|
-
class
|
|
2553
|
+
class FailedToListVerificationsError extends Error {
|
|
2578
2554
|
constructor(body) {
|
|
2579
2555
|
super(
|
|
2580
|
-
`
|
|
2556
|
+
`FAILED_TO_LIST_VERIFICATIONS: ${body.message}`
|
|
2581
2557
|
);
|
|
2582
2558
|
this.body = body;
|
|
2583
|
-
this.name = "
|
|
2559
|
+
this.name = "FailedToListVerificationsError";
|
|
2584
2560
|
}
|
|
2585
|
-
static code = "
|
|
2561
|
+
static code = "FAILED_TO_LIST_VERIFICATIONS";
|
|
2586
2562
|
static statusCode = 500;
|
|
2587
|
-
static description = `Failed to
|
|
2563
|
+
static description = `Failed to list verifications: {message}`;
|
|
2588
2564
|
}
|
|
2589
|
-
class
|
|
2565
|
+
class FailedToVerifyDomainError extends Error {
|
|
2590
2566
|
constructor(body) {
|
|
2591
2567
|
super(
|
|
2592
|
-
`
|
|
2568
|
+
`FAILED_TO_VERIFY_DOMAIN: ${body.message}`
|
|
2593
2569
|
);
|
|
2594
2570
|
this.body = body;
|
|
2595
|
-
this.name = "
|
|
2571
|
+
this.name = "FailedToVerifyDomainError";
|
|
2596
2572
|
}
|
|
2597
|
-
static code = "
|
|
2598
|
-
static statusCode =
|
|
2599
|
-
static description = `Failed to
|
|
2573
|
+
static code = "FAILED_TO_VERIFY_DOMAIN";
|
|
2574
|
+
static statusCode = 500;
|
|
2575
|
+
static description = `Failed to verify domain: {message}`;
|
|
2600
2576
|
}
|
|
2601
|
-
class
|
|
2577
|
+
class VerificationFailedError extends Error {
|
|
2602
2578
|
constructor(body) {
|
|
2603
2579
|
super(
|
|
2604
|
-
`
|
|
2580
|
+
`VERIFICATION_FAILED: ${body.message}`
|
|
2605
2581
|
);
|
|
2606
2582
|
this.body = body;
|
|
2607
|
-
this.name = "
|
|
2583
|
+
this.name = "VerificationFailedError";
|
|
2608
2584
|
}
|
|
2609
|
-
static code = "
|
|
2585
|
+
static code = "VERIFICATION_FAILED";
|
|
2610
2586
|
static statusCode = 400;
|
|
2611
|
-
static description = `
|
|
2587
|
+
static description = `Domain verification failed: {message}`;
|
|
2612
2588
|
}
|
|
2613
|
-
class
|
|
2589
|
+
class FailedToDeleteVerificationError extends Error {
|
|
2614
2590
|
constructor(body) {
|
|
2615
2591
|
super(
|
|
2616
|
-
`
|
|
2592
|
+
`FAILED_TO_DELETE_VERIFICATION: ${body.message}`
|
|
2617
2593
|
);
|
|
2618
2594
|
this.body = body;
|
|
2619
|
-
this.name = "
|
|
2595
|
+
this.name = "FailedToDeleteVerificationError";
|
|
2620
2596
|
}
|
|
2621
|
-
static code = "
|
|
2597
|
+
static code = "FAILED_TO_DELETE_VERIFICATION";
|
|
2622
2598
|
static statusCode = 400;
|
|
2623
|
-
static description = `
|
|
2599
|
+
static description = `Failed to delete verification: {message}`;
|
|
2624
2600
|
}
|
|
2625
|
-
class
|
|
2601
|
+
class VerificationNotFoundError extends Error {
|
|
2626
2602
|
constructor(body) {
|
|
2627
2603
|
super(
|
|
2628
|
-
`
|
|
2604
|
+
`VERIFICATION_NOT_FOUND: ${body.message}`
|
|
2629
2605
|
);
|
|
2630
2606
|
this.body = body;
|
|
2631
|
-
this.name = "
|
|
2607
|
+
this.name = "VerificationNotFoundError";
|
|
2632
2608
|
}
|
|
2633
|
-
static code = "
|
|
2634
|
-
static statusCode =
|
|
2635
|
-
static description = `
|
|
2609
|
+
static code = "VERIFICATION_NOT_FOUND";
|
|
2610
|
+
static statusCode = 404;
|
|
2611
|
+
static description = `Verification request not found for domain: {domain}`;
|
|
2636
2612
|
}
|
|
2637
|
-
class
|
|
2613
|
+
class FailedToCreateVerificationCodeError extends Error {
|
|
2638
2614
|
constructor(body) {
|
|
2639
2615
|
super(
|
|
2640
|
-
`
|
|
2616
|
+
`FAILED_TO_CREATE_VERIFICATION_CODE: ${body.message}`
|
|
2641
2617
|
);
|
|
2642
2618
|
this.body = body;
|
|
2643
|
-
this.name = "
|
|
2619
|
+
this.name = "FailedToCreateVerificationCodeError";
|
|
2644
2620
|
}
|
|
2645
|
-
static code = "
|
|
2621
|
+
static code = "FAILED_TO_CREATE_VERIFICATION_CODE";
|
|
2646
2622
|
static statusCode = 400;
|
|
2647
|
-
static description = `
|
|
2623
|
+
static description = `Failed to create verification code: {message}`;
|
|
2648
2624
|
}
|
|
2649
|
-
class
|
|
2625
|
+
class InvalidDomainError extends Error {
|
|
2650
2626
|
constructor(body) {
|
|
2651
2627
|
super(
|
|
2652
|
-
`
|
|
2628
|
+
`INVALID_DOMAIN: ${body.message}`
|
|
2653
2629
|
);
|
|
2654
2630
|
this.body = body;
|
|
2655
|
-
this.name = "
|
|
2631
|
+
this.name = "InvalidDomainError";
|
|
2656
2632
|
}
|
|
2657
|
-
static code = "
|
|
2633
|
+
static code = "INVALID_DOMAIN";
|
|
2658
2634
|
static statusCode = 400;
|
|
2659
|
-
static description = `
|
|
2660
|
-
}
|
|
2661
|
-
class DeploymentNotFoundError extends Error {
|
|
2662
|
-
constructor(body) {
|
|
2663
|
-
super(
|
|
2664
|
-
`DEPLOYMENT_NOT_FOUND: ${body.message}`
|
|
2665
|
-
);
|
|
2666
|
-
this.body = body;
|
|
2667
|
-
this.name = "DeploymentNotFoundError";
|
|
2668
|
-
}
|
|
2669
|
-
static code = "DEPLOYMENT_NOT_FOUND";
|
|
2670
|
-
static statusCode = 404;
|
|
2671
|
-
static description = `Deployment not found`;
|
|
2635
|
+
static description = `Invalid domain: {domain}`;
|
|
2672
2636
|
}
|
|
2673
2637
|
class DomainAlreadyExistsError extends Error {
|
|
2674
2638
|
constructor(body) {
|
|
@@ -2732,10 +2696,14 @@ class FailedToCheckDomainMappingPermissionsError extends Error {
|
|
|
2732
2696
|
}
|
|
2733
2697
|
const FREESTYLE_ERROR_CODE_MAP = {
|
|
2734
2698
|
"GIT_ERROR": GitErrorError,
|
|
2735
|
-
"SNAPSHOT_VM_BAD_REQUEST": SnapshotVmBadRequestError,
|
|
2736
2699
|
"INTERNAL_ERROR": InternalErrorError,
|
|
2700
|
+
"DOCKER_IMPORT_BAD_REQUEST": DockerImportBadRequestError,
|
|
2701
|
+
"VM_OPERATION_DENIED_DURING_TRANSACTION": VmOperationDeniedDuringTransactionError,
|
|
2702
|
+
"VM_TRANSACTION_ID_MISMATCH": VmTransactionIdMismatchError,
|
|
2703
|
+
"VM_NOT_IN_TRANSACTION": VmNotInTransactionError,
|
|
2737
2704
|
"FORK_VM_NOT_FOUND": ForkVmNotFoundError,
|
|
2738
2705
|
"CREATE_SNAPSHOT_BAD_REQUEST": CreateSnapshotBadRequestError,
|
|
2706
|
+
"SNAPSHOT_VM_BAD_REQUEST": SnapshotVmBadRequestError,
|
|
2739
2707
|
"VM_DELETED": VmDeletedError,
|
|
2740
2708
|
"REQWEST": ReqwestError,
|
|
2741
2709
|
"FIRECRACKER_PID_NOT_FOUND": FirecrackerPidNotFoundError,
|
|
@@ -2747,19 +2715,15 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2747
2715
|
"VM_SUBNET_NOT_FOUND": VmSubnetNotFoundError,
|
|
2748
2716
|
"FILE_NOT_FOUND": FileNotFoundError,
|
|
2749
2717
|
"FILES_BAD_REQUEST": FilesBadRequestError,
|
|
2750
|
-
"VM_MUST_BE_STOPPED": VmMustBeStoppedError,
|
|
2751
|
-
"ALREADY_HAS_BASE": AlreadyHasBaseError,
|
|
2752
|
-
"NOT_FOUND": NotFoundError,
|
|
2753
2718
|
"VM_NOT_FOUND_IN_FS": VmNotFoundInFsError,
|
|
2754
2719
|
"VM_NOT_RUNNING": VmNotRunningError,
|
|
2755
2720
|
"VM_NOT_FOUND": VmNotFoundError,
|
|
2756
2721
|
"INTERNAL_FORK_VM_NOT_FOUND": InternalForkVmNotFoundError,
|
|
2757
2722
|
"BAD_REQUEST": BadRequestError,
|
|
2758
2723
|
"INTERNAL_VM_NOT_FOUND": InternalVmNotFoundError,
|
|
2759
|
-
"
|
|
2760
|
-
"
|
|
2761
|
-
"
|
|
2762
|
-
"VM_NOT_IN_TRANSACTION": VmNotInTransactionError,
|
|
2724
|
+
"VM_MUST_BE_STOPPED": VmMustBeStoppedError,
|
|
2725
|
+
"ALREADY_HAS_BASE": AlreadyHasBaseError,
|
|
2726
|
+
"NOT_FOUND": NotFoundError,
|
|
2763
2727
|
"CREATE_VM_BAD_REQUEST": CreateVmBadRequestError,
|
|
2764
2728
|
"USER_NOT_FOUND": UserNotFoundError,
|
|
2765
2729
|
"USER_ALREADY_EXISTS": UserAlreadyExistsError,
|
|
@@ -2795,46 +2759,44 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2795
2759
|
"SERVICE_NOT_FOUND": ServiceNotFoundError,
|
|
2796
2760
|
"INVALID_REQUEST": InvalidRequestError,
|
|
2797
2761
|
"REPO_NOT_FOUND": RepoNotFoundError,
|
|
2762
|
+
"RUNTIME_ERROR": RuntimeErrorError,
|
|
2763
|
+
"SYNTAX_ERROR": SyntaxErrorError,
|
|
2798
2764
|
"INTERNAL": InternalError,
|
|
2799
2765
|
"SIGNING": SigningError,
|
|
2800
2766
|
"INVALID_SIGNATURE": InvalidSignatureError,
|
|
2801
2767
|
"INVALID_PARAMETERS": InvalidParametersError,
|
|
2802
2768
|
"MAX_USES_EXCEEDED": MaxUsesExceededError,
|
|
2803
2769
|
"EXPIRED": ExpiredError,
|
|
2804
|
-
"CONFLICT": ConflictError,
|
|
2805
|
-
"BRANCH_NOT_FOUND": BranchNotFoundError,
|
|
2806
|
-
"SEND_ERROR": SendErrorError,
|
|
2807
2770
|
"FORBIDDEN": ForbiddenError,
|
|
2771
|
+
"UNAUTHORIZED": UnauthorizedError,
|
|
2772
|
+
"INVALID_SERVICE": InvalidServiceError,
|
|
2773
|
+
"EXPECTED_SERVICE": ExpectedServiceError,
|
|
2808
2774
|
"UNSUPPORTED_TRANSFER": UnsupportedTransferError,
|
|
2775
|
+
"CONFLICT": ConflictError,
|
|
2776
|
+
"BRANCH_NOT_FOUND": BranchNotFoundError,
|
|
2777
|
+
"SOURCE_IMPORT_CONFLICT": SourceImportConflictError,
|
|
2778
|
+
"SOURCE_UNAUTHORIZED": SourceUnauthorizedError,
|
|
2779
|
+
"SOURCE_NOT_FOUND": SourceNotFoundError,
|
|
2780
|
+
"IMPORT_SUBDIR_NOT_FOUND": ImportSubdirNotFoundError,
|
|
2781
|
+
"REPO_ALREADY_EXISTS": RepoAlreadyExistsError,
|
|
2782
|
+
"PATH_NOT_FOUND": PathNotFoundError,
|
|
2809
2783
|
"REFERENCE_NOT_FOUND": ReferenceNotFoundError,
|
|
2784
|
+
"TAG_NOT_FOUND": TagNotFoundError,
|
|
2785
|
+
"SEND_ERROR": SendErrorError,
|
|
2786
|
+
"GIT_HUB_SYNC_CONFLICT": GitHubSyncConflictError,
|
|
2787
|
+
"INVALID_OBJECT_ID": InvalidObjectIdError,
|
|
2788
|
+
"COMMIT_NOT_FOUND": CommitNotFoundError,
|
|
2789
|
+
"TREE_NOT_FOUND": TreeNotFoundError,
|
|
2790
|
+
"INVALID_REVISION": InvalidRevisionError,
|
|
2810
2791
|
"INVALID_RANGE": InvalidRangeError,
|
|
2811
2792
|
"OFFSET_WITH_SELECTOR": OffsetWithSelectorError,
|
|
2812
2793
|
"COMMIT_NOT_IN_BRANCH": CommitNotInBranchError,
|
|
2813
|
-
"COMMIT_NOT_FOUND": CommitNotFoundError,
|
|
2814
2794
|
"BLOB_NOT_FOUND": BlobNotFoundError,
|
|
2815
|
-
"
|
|
2816
|
-
"
|
|
2817
|
-
"UNAUTHORIZED": UnauthorizedError,
|
|
2818
|
-
"TAG_NOT_FOUND": TagNotFoundError,
|
|
2819
|
-
"REPO_ALREADY_EXISTS": RepoAlreadyExistsError,
|
|
2820
|
-
"GIT_HUB_SYNC_CONFLICT": GitHubSyncConflictError,
|
|
2821
|
-
"INVALID_OBJECT_ID": InvalidObjectIdError,
|
|
2822
|
-
"SOURCE_IMPORT_CONFLICT": SourceImportConflictError,
|
|
2823
|
-
"SOURCE_UNAUTHORIZED": SourceUnauthorizedError,
|
|
2824
|
-
"SOURCE_NOT_FOUND": SourceNotFoundError,
|
|
2825
|
-
"IMPORT_SUBDIR_NOT_FOUND": ImportSubdirNotFoundError,
|
|
2795
|
+
"AMBIGUOUS": AmbiguousError,
|
|
2796
|
+
"INVALID": InvalidError,
|
|
2826
2797
|
"PACKFILE": PackfileError,
|
|
2827
|
-
"PATH_NOT_FOUND": PathNotFoundError,
|
|
2828
|
-
"INVALID_SERVICE": InvalidServiceError,
|
|
2829
|
-
"EXPECTED_SERVICE": ExpectedServiceError,
|
|
2830
2798
|
"DATABASE_ERROR": DatabaseErrorError,
|
|
2831
|
-
"
|
|
2832
|
-
"PRE_VERIFY_CHALLENGE_MISMATCH": PreVerifyChallengeMismatchError,
|
|
2833
|
-
"PRE_VERIFY_FAILED_PARSE": PreVerifyFailedParseError,
|
|
2834
|
-
"PRE_VERIFY_FAILED_FETCH": PreVerifyFailedFetchError,
|
|
2835
|
-
"PRE_VERIFY_ROUTE_NOT_FOUND": PreVerifyRouteNotFoundError,
|
|
2836
|
-
"AUTHORIZATION_NOT_FOUND": AuthorizationNotFoundError,
|
|
2837
|
-
"ORDER_NOT_FOUND": OrderNotFoundError,
|
|
2799
|
+
"EMPTY_TAG": EmptyTagError,
|
|
2838
2800
|
"RESIZE_FAILED": ResizeFailedError,
|
|
2839
2801
|
"INTERNAL_RESIZE_VM_NOT_FOUND": InternalResizeVmNotFoundError,
|
|
2840
2802
|
"DOMAIN_OWNERSHIP_VERIFICATION_FAILED": DomainOwnershipVerificationFailedError,
|
|
@@ -2856,32 +2818,8 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2856
2818
|
"DEV_SERVER_FILE_NOT_FOUND": DevServerFileNotFoundError,
|
|
2857
2819
|
"DEV_SERVER_INVALID_REQUEST": DevServerInvalidRequestError,
|
|
2858
2820
|
"DEV_SERVER_NOT_FOUND": DevServerNotFoundError,
|
|
2859
|
-
"EXECUTE_INTERNAL_ERROR": ExecuteInternalErrorError,
|
|
2860
|
-
"EXECUTE_ACCESS_DENIED": ExecuteAccessDeniedError,
|
|
2861
|
-
"LIST_RUNS_FAILED": ListRunsFailedError,
|
|
2862
|
-
"EXECUTION_ERROR": ExecutionErrorError,
|
|
2863
|
-
"CONNECTION_FAILED": ConnectionFailedError,
|
|
2864
|
-
"METADATA_WRITE_FAILED": MetadataWriteFailedError,
|
|
2865
|
-
"NODE_MODULES_INSTALL_FAILED": NodeModulesInstallFailedError,
|
|
2866
|
-
"NODE_MODULES_DOWNLOAD_FAILED": NodeModulesDownloadFailedError,
|
|
2867
|
-
"LOCK_GENERATION_FAILED": LockGenerationFailedError,
|
|
2868
|
-
"WRITE_SCRIPT_FAILED": WriteScriptFailedError,
|
|
2869
|
-
"DIRECTORY_CREATION_FAILED": DirectoryCreationFailedError,
|
|
2870
|
-
"NETWORK_PERMISSIONS_FAILED": NetworkPermissionsFailedError,
|
|
2871
|
-
"LOGGING_FAILED": LoggingFailedError,
|
|
2872
|
-
"RUN_NOT_FOUND": RunNotFoundError,
|
|
2873
|
-
"EMPTY_TAG": EmptyTagError,
|
|
2874
2821
|
"ANYHOW": AnyhowError,
|
|
2875
2822
|
"BRANCH_NAME_EMPTY": BranchNameEmptyError,
|
|
2876
|
-
"CLOUDSTATE_INTERNAL_ERROR": CloudstateInternalErrorError,
|
|
2877
|
-
"CLOUDSTATE_DATABASE_ERROR": CloudstateDatabaseErrorError,
|
|
2878
|
-
"CLOUDSTATE_ACCESS_DENIED": CloudstateAccessDeniedError,
|
|
2879
|
-
"RESTORE_FAILED": RestoreFailedError,
|
|
2880
|
-
"CREATE_BACKUP_FAILED": CreateBackupFailedError,
|
|
2881
|
-
"BACKUP_FAILED": BackupFailedError,
|
|
2882
|
-
"DEPLOYMENT_FAILED": DeploymentFailedError,
|
|
2883
|
-
"INVALID_DEPLOYMENT_REQUEST": InvalidDeploymentRequestError,
|
|
2884
|
-
"PROJECT_NOT_FOUND": ProjectNotFoundError,
|
|
2885
2823
|
"PERMISSION_ALREADY_EXISTS": PermissionAlreadyExistsError,
|
|
2886
2824
|
"LIST_TOKENS_FAILED": ListTokensFailedError,
|
|
2887
2825
|
"REVOKE_TOKEN_FAILED": RevokeTokenFailedError,
|
|
@@ -2903,7 +2841,42 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2903
2841
|
"CANNOT_MODIFY_MANAGED_IDENTITY": CannotModifyManagedIdentityError,
|
|
2904
2842
|
"IDENTITY_ACCESS_DENIED": IdentityAccessDeniedError,
|
|
2905
2843
|
"IDENTITY_NOT_FOUND": IdentityNotFoundError,
|
|
2844
|
+
"EXECUTE_INTERNAL_ERROR": ExecuteInternalErrorError,
|
|
2845
|
+
"EXECUTE_ACCESS_DENIED": ExecuteAccessDeniedError,
|
|
2846
|
+
"LIST_RUNS_FAILED": ListRunsFailedError,
|
|
2847
|
+
"EXECUTION_ERROR": ExecutionErrorError,
|
|
2848
|
+
"CONNECTION_FAILED": ConnectionFailedError,
|
|
2849
|
+
"METADATA_WRITE_FAILED": MetadataWriteFailedError,
|
|
2850
|
+
"NODE_MODULES_INSTALL_FAILED": NodeModulesInstallFailedError,
|
|
2851
|
+
"NODE_MODULES_DOWNLOAD_FAILED": NodeModulesDownloadFailedError,
|
|
2852
|
+
"LOCK_GENERATION_FAILED": LockGenerationFailedError,
|
|
2853
|
+
"WRITE_SCRIPT_FAILED": WriteScriptFailedError,
|
|
2854
|
+
"DIRECTORY_CREATION_FAILED": DirectoryCreationFailedError,
|
|
2855
|
+
"NETWORK_PERMISSIONS_FAILED": NetworkPermissionsFailedError,
|
|
2856
|
+
"LOGGING_FAILED": LoggingFailedError,
|
|
2857
|
+
"RUN_NOT_FOUND": RunNotFoundError,
|
|
2858
|
+
"CLOUDSTATE_INTERNAL_ERROR": CloudstateInternalErrorError,
|
|
2859
|
+
"CLOUDSTATE_DATABASE_ERROR": CloudstateDatabaseErrorError,
|
|
2860
|
+
"CLOUDSTATE_ACCESS_DENIED": CloudstateAccessDeniedError,
|
|
2861
|
+
"RESTORE_FAILED": RestoreFailedError,
|
|
2862
|
+
"CREATE_BACKUP_FAILED": CreateBackupFailedError,
|
|
2863
|
+
"BACKUP_FAILED": BackupFailedError,
|
|
2864
|
+
"DEPLOYMENT_FAILED": DeploymentFailedError,
|
|
2865
|
+
"INVALID_DEPLOYMENT_REQUEST": InvalidDeploymentRequestError,
|
|
2866
|
+
"PROJECT_NOT_FOUND": ProjectNotFoundError,
|
|
2906
2867
|
"UNAUTHORIZED_ERROR": UnauthorizedErrorError,
|
|
2868
|
+
"BUILD_FAILED": BuildFailedError,
|
|
2869
|
+
"SERVER_DEPLOYMENT_FAILED": ServerDeploymentFailedError,
|
|
2870
|
+
"LOCKFILE_ERROR": LockfileErrorError,
|
|
2871
|
+
"UPLOAD_ERROR": UploadErrorError,
|
|
2872
|
+
"DOMAIN_MAPPING_ERROR": DomainMappingErrorError,
|
|
2873
|
+
"CERTIFICATE_PROVISIONING_ERROR": CertificateProvisioningErrorError,
|
|
2874
|
+
"NO_ENTRYPOINT_FOUND": NoEntrypointFoundError,
|
|
2875
|
+
"ENTRYPOINT_NOT_FOUND": EntrypointNotFoundError,
|
|
2876
|
+
"NO_DOMAIN_OWNERSHIP": NoDomainOwnershipError,
|
|
2877
|
+
"INVALID_DOMAINS": InvalidDomainsError,
|
|
2878
|
+
"WEB_DEPLOYMENT_BAD_REQUEST": WebDeploymentBadRequestError,
|
|
2879
|
+
"DEPLOYMENT_NOT_FOUND": DeploymentNotFoundError,
|
|
2907
2880
|
"OBSERVABILITY_DATABASE_ERROR": ObservabilityDatabaseErrorError,
|
|
2908
2881
|
"OBSERVABILITY_ACCESS_DENIED": ObservabilityAccessDeniedError,
|
|
2909
2882
|
"PARSE_LOGS_FAILED": ParseLogsFailedError,
|
|
@@ -2941,18 +2914,6 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2941
2914
|
"VERIFICATION_NOT_FOUND": VerificationNotFoundError,
|
|
2942
2915
|
"FAILED_TO_CREATE_VERIFICATION_CODE": FailedToCreateVerificationCodeError,
|
|
2943
2916
|
"INVALID_DOMAIN": InvalidDomainError,
|
|
2944
|
-
"BUILD_FAILED": BuildFailedError,
|
|
2945
|
-
"SERVER_DEPLOYMENT_FAILED": ServerDeploymentFailedError,
|
|
2946
|
-
"LOCKFILE_ERROR": LockfileErrorError,
|
|
2947
|
-
"UPLOAD_ERROR": UploadErrorError,
|
|
2948
|
-
"DOMAIN_MAPPING_ERROR": DomainMappingErrorError,
|
|
2949
|
-
"CERTIFICATE_PROVISIONING_ERROR": CertificateProvisioningErrorError,
|
|
2950
|
-
"NO_ENTRYPOINT_FOUND": NoEntrypointFoundError,
|
|
2951
|
-
"ENTRYPOINT_NOT_FOUND": EntrypointNotFoundError,
|
|
2952
|
-
"NO_DOMAIN_OWNERSHIP": NoDomainOwnershipError,
|
|
2953
|
-
"INVALID_DOMAINS": InvalidDomainsError,
|
|
2954
|
-
"WEB_DEPLOYMENT_BAD_REQUEST": WebDeploymentBadRequestError,
|
|
2955
|
-
"DEPLOYMENT_NOT_FOUND": DeploymentNotFoundError,
|
|
2956
2917
|
"DOMAIN_ALREADY_EXISTS": DomainAlreadyExistsError,
|
|
2957
2918
|
"FAILED_TO_INSERT_OWNERSHIP": FailedToInsertOwnershipError,
|
|
2958
2919
|
"FAILED_REMOVE_DOMAIN_MAPPING": FailedRemoveDomainMappingError,
|
|
@@ -2964,8 +2925,8 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2964
2925
|
__proto__: null,
|
|
2965
2926
|
AfterArrayContainsEmptyError: AfterArrayContainsEmptyError,
|
|
2966
2927
|
AlreadyHasBaseError: AlreadyHasBaseError,
|
|
2928
|
+
AmbiguousError: AmbiguousError,
|
|
2967
2929
|
AnyhowError: AnyhowError,
|
|
2968
|
-
AuthorizationNotFoundError: AuthorizationNotFoundError,
|
|
2969
2930
|
BackupFailedError: BackupFailedError,
|
|
2970
2931
|
BadRequestError: BadRequestError,
|
|
2971
2932
|
BlobNotFoundError: BlobNotFoundError,
|
|
@@ -3070,6 +3031,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
3070
3031
|
InvalidDeploymentRequestError: InvalidDeploymentRequestError,
|
|
3071
3032
|
InvalidDomainError: InvalidDomainError,
|
|
3072
3033
|
InvalidDomainsError: InvalidDomainsError,
|
|
3034
|
+
InvalidError: InvalidError,
|
|
3073
3035
|
InvalidObjectIdError: InvalidObjectIdError,
|
|
3074
3036
|
InvalidParametersError: InvalidParametersError,
|
|
3075
3037
|
InvalidQueryError: InvalidQueryError,
|
|
@@ -3100,7 +3062,6 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
3100
3062
|
ObservabilityDatabaseErrorError: ObservabilityDatabaseErrorError,
|
|
3101
3063
|
OffsetWithSelectorError: OffsetWithSelectorError,
|
|
3102
3064
|
OnFailureArrayContainsEmptyError: OnFailureArrayContainsEmptyError,
|
|
3103
|
-
OrderNotFoundError: OrderNotFoundError,
|
|
3104
3065
|
PackfileError: PackfileError,
|
|
3105
3066
|
ParseLogsFailedError: ParseLogsFailedError,
|
|
3106
3067
|
ParseResponseErrorError: ParseResponseErrorError,
|
|
@@ -3109,10 +3070,6 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
3109
3070
|
PermissionDeniedError: PermissionDeniedError,
|
|
3110
3071
|
PermissionErrorError: PermissionErrorError,
|
|
3111
3072
|
PermissionNotFoundError: PermissionNotFoundError,
|
|
3112
|
-
PreVerifyChallengeMismatchError: PreVerifyChallengeMismatchError,
|
|
3113
|
-
PreVerifyFailedFetchError: PreVerifyFailedFetchError,
|
|
3114
|
-
PreVerifyFailedParseError: PreVerifyFailedParseError,
|
|
3115
|
-
PreVerifyRouteNotFoundError: PreVerifyRouteNotFoundError,
|
|
3116
3073
|
ProjectNotFoundError: ProjectNotFoundError,
|
|
3117
3074
|
ReadFileFailedError: ReadFileFailedError,
|
|
3118
3075
|
RecordOwnershipErrorError: RecordOwnershipErrorError,
|
|
@@ -3131,6 +3088,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
3131
3088
|
RevokePermissionFailedError: RevokePermissionFailedError,
|
|
3132
3089
|
RevokeTokenFailedError: RevokeTokenFailedError,
|
|
3133
3090
|
RunNotFoundError: RunNotFoundError,
|
|
3091
|
+
RuntimeErrorError: RuntimeErrorError,
|
|
3134
3092
|
SendErrorError: SendErrorError,
|
|
3135
3093
|
SerializationErrorError: SerializationErrorError,
|
|
3136
3094
|
ServerDeploymentFailedError: ServerDeploymentFailedError,
|
|
@@ -3148,6 +3106,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
3148
3106
|
SourceUnauthorizedError: SourceUnauthorizedError,
|
|
3149
3107
|
StatusFailedError: StatusFailedError,
|
|
3150
3108
|
StdIoError: StdIoError,
|
|
3109
|
+
SyntaxErrorError: SyntaxErrorError,
|
|
3151
3110
|
TagNotFoundError: TagNotFoundError,
|
|
3152
3111
|
TokenErrorError: TokenErrorError,
|
|
3153
3112
|
TreeNotFoundError: TreeNotFoundError,
|
|
@@ -3183,7 +3142,6 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
3183
3142
|
VmStartTimeoutError: VmStartTimeoutError,
|
|
3184
3143
|
VmSubnetNotFoundError: VmSubnetNotFoundError,
|
|
3185
3144
|
VmTransactionIdMismatchError: VmTransactionIdMismatchError,
|
|
3186
|
-
WaitTimeoutError: WaitTimeoutError,
|
|
3187
3145
|
WantedByEmptyError: WantedByEmptyError,
|
|
3188
3146
|
WatchFilesFailedError: WatchFilesFailedError,
|
|
3189
3147
|
WebDeploymentBadRequestError: WebDeploymentBadRequestError,
|
|
@@ -4402,35 +4360,15 @@ class RunsNamespace {
|
|
|
4402
4360
|
*/
|
|
4403
4361
|
async create({
|
|
4404
4362
|
code,
|
|
4405
|
-
config
|
|
4406
|
-
outgoingHeaders,
|
|
4407
|
-
outgoingProxy
|
|
4363
|
+
...config
|
|
4408
4364
|
}) {
|
|
4409
|
-
const response = await this.apiClient.post("/execute/
|
|
4365
|
+
const response = await this.apiClient.post("/execute/v2/script", {
|
|
4410
4366
|
body: {
|
|
4411
4367
|
script: code,
|
|
4412
|
-
config
|
|
4413
|
-
proxy: outgoingProxy,
|
|
4414
|
-
customHeaders: outgoingHeaders,
|
|
4415
|
-
networkPermissions: config.networkPermissions?.map((np) => ({
|
|
4416
|
-
action: np.action,
|
|
4417
|
-
query: np.domain,
|
|
4418
|
-
behavior: np.behavior
|
|
4419
|
-
})),
|
|
4420
|
-
envVars: config.envVars,
|
|
4421
|
-
nodeModules: config.nodeModules,
|
|
4422
|
-
timeout: config.timeoutMs
|
|
4423
|
-
// entrypoint: config.entrypointPath,
|
|
4424
|
-
}
|
|
4368
|
+
config
|
|
4425
4369
|
}
|
|
4426
4370
|
});
|
|
4427
|
-
|
|
4428
|
-
throw new Error("Execution failed");
|
|
4429
|
-
}
|
|
4430
|
-
return {
|
|
4431
|
-
result: response.result,
|
|
4432
|
-
logs: response.logs || []
|
|
4433
|
-
};
|
|
4371
|
+
return response;
|
|
4434
4372
|
}
|
|
4435
4373
|
/**
|
|
4436
4374
|
* List execution runs.
|