freestyle-sandboxes 0.1.1 → 0.1.3
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 +1155 -844
- package/index.d.cts +924 -669
- package/index.d.mts +924 -669
- package/index.mjs +1155 -844
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -8,6 +8,30 @@ function errorFromJSON(body) {
|
|
|
8
8
|
return new Error(`Unknown error code: ${body.code} - ${body.description}`);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
class InternalErrorError extends Error {
|
|
12
|
+
constructor(body) {
|
|
13
|
+
super(
|
|
14
|
+
`INTERNAL_ERROR: ${body.message}`
|
|
15
|
+
);
|
|
16
|
+
this.body = body;
|
|
17
|
+
this.name = "InternalErrorError";
|
|
18
|
+
}
|
|
19
|
+
static code = "INTERNAL_ERROR";
|
|
20
|
+
static statusCode = 500;
|
|
21
|
+
static description = `Internal error: {message}`;
|
|
22
|
+
}
|
|
23
|
+
class DockerImportBadRequestError extends Error {
|
|
24
|
+
constructor(body) {
|
|
25
|
+
super(
|
|
26
|
+
`DOCKER_IMPORT_BAD_REQUEST: ${body.message}`
|
|
27
|
+
);
|
|
28
|
+
this.body = body;
|
|
29
|
+
this.name = "DockerImportBadRequestError";
|
|
30
|
+
}
|
|
31
|
+
static code = "DOCKER_IMPORT_BAD_REQUEST";
|
|
32
|
+
static statusCode = 400;
|
|
33
|
+
static description = `Bad request: {message}`;
|
|
34
|
+
}
|
|
11
35
|
class VmNotFoundInFsError extends Error {
|
|
12
36
|
constructor(body) {
|
|
13
37
|
super(
|
|
@@ -116,30 +140,6 @@ class NotFoundError extends Error {
|
|
|
116
140
|
static statusCode = 404;
|
|
117
141
|
static description = `VM not found`;
|
|
118
142
|
}
|
|
119
|
-
class InternalErrorError extends Error {
|
|
120
|
-
constructor(body) {
|
|
121
|
-
super(
|
|
122
|
-
`INTERNAL_ERROR: ${body.message}`
|
|
123
|
-
);
|
|
124
|
-
this.body = body;
|
|
125
|
-
this.name = "InternalErrorError";
|
|
126
|
-
}
|
|
127
|
-
static code = "INTERNAL_ERROR";
|
|
128
|
-
static statusCode = 500;
|
|
129
|
-
static description = `Internal error: {message}`;
|
|
130
|
-
}
|
|
131
|
-
class DockerImportBadRequestError extends Error {
|
|
132
|
-
constructor(body) {
|
|
133
|
-
super(
|
|
134
|
-
`DOCKER_IMPORT_BAD_REQUEST: ${body.message}`
|
|
135
|
-
);
|
|
136
|
-
this.body = body;
|
|
137
|
-
this.name = "DockerImportBadRequestError";
|
|
138
|
-
}
|
|
139
|
-
static code = "DOCKER_IMPORT_BAD_REQUEST";
|
|
140
|
-
static statusCode = 400;
|
|
141
|
-
static description = `Bad request: {message}`;
|
|
142
|
-
}
|
|
143
143
|
class ForkVmNotFoundError extends Error {
|
|
144
144
|
constructor(body) {
|
|
145
145
|
super(
|
|
@@ -344,18 +344,6 @@ class VmNotInTransactionError extends Error {
|
|
|
344
344
|
static statusCode = 404;
|
|
345
345
|
static description = `VM not in a transaction: {vm_id}`;
|
|
346
346
|
}
|
|
347
|
-
class CreateVmBadRequestError extends Error {
|
|
348
|
-
constructor(body) {
|
|
349
|
-
super(
|
|
350
|
-
`CREATE_VM_BAD_REQUEST: ${body.message}`
|
|
351
|
-
);
|
|
352
|
-
this.body = body;
|
|
353
|
-
this.name = "CreateVmBadRequestError";
|
|
354
|
-
}
|
|
355
|
-
static code = "CREATE_VM_BAD_REQUEST";
|
|
356
|
-
static statusCode = 400;
|
|
357
|
-
static description = `Bad request: {message}`;
|
|
358
|
-
}
|
|
359
347
|
class UserNotFoundError extends Error {
|
|
360
348
|
constructor(body) {
|
|
361
349
|
super(
|
|
@@ -548,6 +536,18 @@ class GroupNameEmptyError extends Error {
|
|
|
548
536
|
static statusCode = 400;
|
|
549
537
|
static description = `Group name cannot be empty`;
|
|
550
538
|
}
|
|
539
|
+
class CreateVmBadRequestError extends Error {
|
|
540
|
+
constructor(body) {
|
|
541
|
+
super(
|
|
542
|
+
`CREATE_VM_BAD_REQUEST: ${body.message}`
|
|
543
|
+
);
|
|
544
|
+
this.body = body;
|
|
545
|
+
this.name = "CreateVmBadRequestError";
|
|
546
|
+
}
|
|
547
|
+
static code = "CREATE_VM_BAD_REQUEST";
|
|
548
|
+
static statusCode = 400;
|
|
549
|
+
static description = `Bad request: {message}`;
|
|
550
|
+
}
|
|
551
551
|
class WantedByEmptyError extends Error {
|
|
552
552
|
constructor(body) {
|
|
553
553
|
super(
|
|
@@ -740,6 +740,90 @@ class ServiceNotFoundError extends Error {
|
|
|
740
740
|
static statusCode = 404;
|
|
741
741
|
static description = `null`;
|
|
742
742
|
}
|
|
743
|
+
class WaitTimeoutError extends Error {
|
|
744
|
+
constructor(body) {
|
|
745
|
+
super(
|
|
746
|
+
`WAIT_TIMEOUT: ${body.message}`
|
|
747
|
+
);
|
|
748
|
+
this.body = body;
|
|
749
|
+
this.name = "WaitTimeoutError";
|
|
750
|
+
}
|
|
751
|
+
static code = "WAIT_TIMEOUT";
|
|
752
|
+
static statusCode = 504;
|
|
753
|
+
static description = `Timed out waiting for certificate validation`;
|
|
754
|
+
}
|
|
755
|
+
class PreVerifyChallengeMismatchError extends Error {
|
|
756
|
+
constructor(body) {
|
|
757
|
+
super(
|
|
758
|
+
`PRE_VERIFY_CHALLENGE_MISMATCH: ${body.message}`
|
|
759
|
+
);
|
|
760
|
+
this.body = body;
|
|
761
|
+
this.name = "PreVerifyChallengeMismatchError";
|
|
762
|
+
}
|
|
763
|
+
static code = "PRE_VERIFY_CHALLENGE_MISMATCH";
|
|
764
|
+
static statusCode = 400;
|
|
765
|
+
static description = `Certificate challenge verification failed - response did not match`;
|
|
766
|
+
}
|
|
767
|
+
class PreVerifyFailedParseError extends Error {
|
|
768
|
+
constructor(body) {
|
|
769
|
+
super(
|
|
770
|
+
`PRE_VERIFY_FAILED_PARSE: ${body.message}`
|
|
771
|
+
);
|
|
772
|
+
this.body = body;
|
|
773
|
+
this.name = "PreVerifyFailedParseError";
|
|
774
|
+
}
|
|
775
|
+
static code = "PRE_VERIFY_FAILED_PARSE";
|
|
776
|
+
static statusCode = 400;
|
|
777
|
+
static description = `Invalid response from domain during certificate verification`;
|
|
778
|
+
}
|
|
779
|
+
class PreVerifyFailedFetchError extends Error {
|
|
780
|
+
constructor(body) {
|
|
781
|
+
super(
|
|
782
|
+
`PRE_VERIFY_FAILED_FETCH: ${body.message}`
|
|
783
|
+
);
|
|
784
|
+
this.body = body;
|
|
785
|
+
this.name = "PreVerifyFailedFetchError";
|
|
786
|
+
}
|
|
787
|
+
static code = "PRE_VERIFY_FAILED_FETCH";
|
|
788
|
+
static statusCode = 400;
|
|
789
|
+
static description = `Could not reach domain for certificate verification - check DNS settings`;
|
|
790
|
+
}
|
|
791
|
+
class PreVerifyRouteNotFoundError extends Error {
|
|
792
|
+
constructor(body) {
|
|
793
|
+
super(
|
|
794
|
+
`PRE_VERIFY_ROUTE_NOT_FOUND: ${body.message}`
|
|
795
|
+
);
|
|
796
|
+
this.body = body;
|
|
797
|
+
this.name = "PreVerifyRouteNotFoundError";
|
|
798
|
+
}
|
|
799
|
+
static code = "PRE_VERIFY_ROUTE_NOT_FOUND";
|
|
800
|
+
static statusCode = 400;
|
|
801
|
+
static description = `Domain does not resolve to Freestyle servers`;
|
|
802
|
+
}
|
|
803
|
+
class AuthorizationNotFoundError extends Error {
|
|
804
|
+
constructor(body) {
|
|
805
|
+
super(
|
|
806
|
+
`AUTHORIZATION_NOT_FOUND: ${body.message}`
|
|
807
|
+
);
|
|
808
|
+
this.body = body;
|
|
809
|
+
this.name = "AuthorizationNotFoundError";
|
|
810
|
+
}
|
|
811
|
+
static code = "AUTHORIZATION_NOT_FOUND";
|
|
812
|
+
static statusCode = 404;
|
|
813
|
+
static description = `No authorization found for domain`;
|
|
814
|
+
}
|
|
815
|
+
class OrderNotFoundError extends Error {
|
|
816
|
+
constructor(body) {
|
|
817
|
+
super(
|
|
818
|
+
`ORDER_NOT_FOUND: ${body.message}`
|
|
819
|
+
);
|
|
820
|
+
this.body = body;
|
|
821
|
+
this.name = "OrderNotFoundError";
|
|
822
|
+
}
|
|
823
|
+
static code = "ORDER_NOT_FOUND";
|
|
824
|
+
static statusCode = 404;
|
|
825
|
+
static description = `No certificate order found for domain`;
|
|
826
|
+
}
|
|
743
827
|
class InternalError extends Error {
|
|
744
828
|
constructor(body) {
|
|
745
829
|
super(
|
|
@@ -812,65 +896,41 @@ class ExpiredError extends Error {
|
|
|
812
896
|
static statusCode = 403;
|
|
813
897
|
static description = `Session has expired`;
|
|
814
898
|
}
|
|
815
|
-
class
|
|
816
|
-
constructor(body) {
|
|
817
|
-
super(
|
|
818
|
-
`CONFLICT: ${body.message}`
|
|
819
|
-
);
|
|
820
|
-
this.body = body;
|
|
821
|
-
this.name = "ConflictError";
|
|
822
|
-
}
|
|
823
|
-
static code = "CONFLICT";
|
|
824
|
-
static statusCode = 409;
|
|
825
|
-
static description = `Sync conflict: {message}`;
|
|
826
|
-
}
|
|
827
|
-
class RepoNotFoundError extends Error {
|
|
899
|
+
class TagNotFoundError extends Error {
|
|
828
900
|
constructor(body) {
|
|
829
901
|
super(
|
|
830
|
-
`
|
|
902
|
+
`TAG_NOT_FOUND: ${body.message}`
|
|
831
903
|
);
|
|
832
904
|
this.body = body;
|
|
833
|
-
this.name = "
|
|
905
|
+
this.name = "TagNotFoundError";
|
|
834
906
|
}
|
|
835
|
-
static code = "
|
|
907
|
+
static code = "TAG_NOT_FOUND";
|
|
836
908
|
static statusCode = 404;
|
|
837
|
-
static description = `
|
|
838
|
-
}
|
|
839
|
-
class ForbiddenError extends Error {
|
|
840
|
-
constructor(body) {
|
|
841
|
-
super(
|
|
842
|
-
`FORBIDDEN: ${body.message}`
|
|
843
|
-
);
|
|
844
|
-
this.body = body;
|
|
845
|
-
this.name = "ForbiddenError";
|
|
846
|
-
}
|
|
847
|
-
static code = "FORBIDDEN";
|
|
848
|
-
static statusCode = 403;
|
|
849
|
-
static description = `Forbidden: {message}`;
|
|
909
|
+
static description = `Tag not found: {tag}`;
|
|
850
910
|
}
|
|
851
|
-
class
|
|
911
|
+
class BranchNotFoundError extends Error {
|
|
852
912
|
constructor(body) {
|
|
853
913
|
super(
|
|
854
|
-
`
|
|
914
|
+
`BRANCH_NOT_FOUND: ${body.message}`
|
|
855
915
|
);
|
|
856
916
|
this.body = body;
|
|
857
|
-
this.name = "
|
|
917
|
+
this.name = "BranchNotFoundError";
|
|
858
918
|
}
|
|
859
|
-
static code = "
|
|
860
|
-
static statusCode =
|
|
861
|
-
static description = `
|
|
919
|
+
static code = "BRANCH_NOT_FOUND";
|
|
920
|
+
static statusCode = 404;
|
|
921
|
+
static description = `Branch not found: {branch}`;
|
|
862
922
|
}
|
|
863
|
-
class
|
|
923
|
+
class RepoNotFoundError extends Error {
|
|
864
924
|
constructor(body) {
|
|
865
925
|
super(
|
|
866
|
-
`
|
|
926
|
+
`REPO_NOT_FOUND: ${body.message}`
|
|
867
927
|
);
|
|
868
928
|
this.body = body;
|
|
869
|
-
this.name = "
|
|
929
|
+
this.name = "RepoNotFoundError";
|
|
870
930
|
}
|
|
871
|
-
static code = "
|
|
931
|
+
static code = "REPO_NOT_FOUND";
|
|
872
932
|
static statusCode = 404;
|
|
873
|
-
static description = `
|
|
933
|
+
static description = `Repository not found`;
|
|
874
934
|
}
|
|
875
935
|
class InvalidObjectIdError extends Error {
|
|
876
936
|
constructor(body) {
|
|
@@ -884,17 +944,17 @@ class InvalidObjectIdError extends Error {
|
|
|
884
944
|
static statusCode = 400;
|
|
885
945
|
static description = `Invalid object ID`;
|
|
886
946
|
}
|
|
887
|
-
class
|
|
947
|
+
class CommitNotFoundError extends Error {
|
|
888
948
|
constructor(body) {
|
|
889
949
|
super(
|
|
890
|
-
`
|
|
950
|
+
`COMMIT_NOT_FOUND: ${body.message}`
|
|
891
951
|
);
|
|
892
952
|
this.body = body;
|
|
893
|
-
this.name = "
|
|
953
|
+
this.name = "CommitNotFoundError";
|
|
894
954
|
}
|
|
895
|
-
static code = "
|
|
955
|
+
static code = "COMMIT_NOT_FOUND";
|
|
896
956
|
static statusCode = 404;
|
|
897
|
-
static description = `
|
|
957
|
+
static description = `Commit not found: {hash}`;
|
|
898
958
|
}
|
|
899
959
|
class ReferenceNotFoundError extends Error {
|
|
900
960
|
constructor(body) {
|
|
@@ -908,29 +968,17 @@ class ReferenceNotFoundError extends Error {
|
|
|
908
968
|
static statusCode = 404;
|
|
909
969
|
static description = `Reference not found: {reference}`;
|
|
910
970
|
}
|
|
911
|
-
class
|
|
912
|
-
constructor(body) {
|
|
913
|
-
super(
|
|
914
|
-
`TAG_NOT_FOUND: ${body.message}`
|
|
915
|
-
);
|
|
916
|
-
this.body = body;
|
|
917
|
-
this.name = "TagNotFoundError";
|
|
918
|
-
}
|
|
919
|
-
static code = "TAG_NOT_FOUND";
|
|
920
|
-
static statusCode = 404;
|
|
921
|
-
static description = `Tag not found: {tag}`;
|
|
922
|
-
}
|
|
923
|
-
class CommitNotFoundError extends Error {
|
|
971
|
+
class PathNotFoundError extends Error {
|
|
924
972
|
constructor(body) {
|
|
925
973
|
super(
|
|
926
|
-
`
|
|
974
|
+
`PATH_NOT_FOUND: ${body.message}`
|
|
927
975
|
);
|
|
928
976
|
this.body = body;
|
|
929
|
-
this.name = "
|
|
977
|
+
this.name = "PathNotFoundError";
|
|
930
978
|
}
|
|
931
|
-
static code = "
|
|
979
|
+
static code = "PATH_NOT_FOUND";
|
|
932
980
|
static statusCode = 404;
|
|
933
|
-
static description = `
|
|
981
|
+
static description = `Path not found: {path}`;
|
|
934
982
|
}
|
|
935
983
|
class InvalidRequestError extends Error {
|
|
936
984
|
constructor(body) {
|
|
@@ -942,19 +990,7 @@ class InvalidRequestError extends Error {
|
|
|
942
990
|
}
|
|
943
991
|
static code = "INVALID_REQUEST";
|
|
944
992
|
static statusCode = 400;
|
|
945
|
-
static description = `
|
|
946
|
-
}
|
|
947
|
-
class PathNotFoundError extends Error {
|
|
948
|
-
constructor(body) {
|
|
949
|
-
super(
|
|
950
|
-
`PATH_NOT_FOUND: ${body.message}`
|
|
951
|
-
);
|
|
952
|
-
this.body = body;
|
|
953
|
-
this.name = "PathNotFoundError";
|
|
954
|
-
}
|
|
955
|
-
static code = "PATH_NOT_FOUND";
|
|
956
|
-
static statusCode = 404;
|
|
957
|
-
static description = `Path not found: {path}`;
|
|
993
|
+
static description = `null`;
|
|
958
994
|
}
|
|
959
995
|
class InvalidRevisionError extends Error {
|
|
960
996
|
constructor(body) {
|
|
@@ -968,6 +1004,18 @@ class InvalidRevisionError extends Error {
|
|
|
968
1004
|
static statusCode = 400;
|
|
969
1005
|
static description = `null`;
|
|
970
1006
|
}
|
|
1007
|
+
class ForbiddenError extends Error {
|
|
1008
|
+
constructor(body) {
|
|
1009
|
+
super(
|
|
1010
|
+
`FORBIDDEN: ${body.message}`
|
|
1011
|
+
);
|
|
1012
|
+
this.body = body;
|
|
1013
|
+
this.name = "ForbiddenError";
|
|
1014
|
+
}
|
|
1015
|
+
static code = "FORBIDDEN";
|
|
1016
|
+
static statusCode = 403;
|
|
1017
|
+
static description = `Forbidden`;
|
|
1018
|
+
}
|
|
971
1019
|
class UnauthorizedError extends Error {
|
|
972
1020
|
constructor(body) {
|
|
973
1021
|
super(
|
|
@@ -980,341 +1028,569 @@ class UnauthorizedError extends Error {
|
|
|
980
1028
|
static statusCode = 401;
|
|
981
1029
|
static description = `Unauthorized`;
|
|
982
1030
|
}
|
|
983
|
-
class
|
|
1031
|
+
class ConflictError extends Error {
|
|
984
1032
|
constructor(body) {
|
|
985
1033
|
super(
|
|
986
|
-
`
|
|
1034
|
+
`CONFLICT: ${body.message}`
|
|
987
1035
|
);
|
|
988
1036
|
this.body = body;
|
|
989
|
-
this.name = "
|
|
1037
|
+
this.name = "ConflictError";
|
|
990
1038
|
}
|
|
991
|
-
static code = "
|
|
992
|
-
static statusCode =
|
|
993
|
-
static description = `
|
|
1039
|
+
static code = "CONFLICT";
|
|
1040
|
+
static statusCode = 409;
|
|
1041
|
+
static description = `Sync conflict: {message}`;
|
|
994
1042
|
}
|
|
995
|
-
class
|
|
1043
|
+
class UnsupportedTransferError extends Error {
|
|
996
1044
|
constructor(body) {
|
|
997
1045
|
super(
|
|
998
|
-
`
|
|
1046
|
+
`UNSUPPORTED_TRANSFER: ${body.message}`
|
|
999
1047
|
);
|
|
1000
1048
|
this.body = body;
|
|
1001
|
-
this.name = "
|
|
1049
|
+
this.name = "UnsupportedTransferError";
|
|
1002
1050
|
}
|
|
1003
|
-
static code = "
|
|
1004
|
-
static statusCode =
|
|
1005
|
-
static description = `
|
|
1006
|
-
}
|
|
1007
|
-
class
|
|
1051
|
+
static code = "UNSUPPORTED_TRANSFER";
|
|
1052
|
+
static statusCode = 400;
|
|
1053
|
+
static description = `Unsupported LFS transfer protocol(s)`;
|
|
1054
|
+
}
|
|
1055
|
+
class BlobNotFoundError extends Error {
|
|
1008
1056
|
constructor(body) {
|
|
1009
1057
|
super(
|
|
1010
|
-
`
|
|
1058
|
+
`BLOB_NOT_FOUND: ${body.message}`
|
|
1011
1059
|
);
|
|
1012
1060
|
this.body = body;
|
|
1013
|
-
this.name = "
|
|
1061
|
+
this.name = "BlobNotFoundError";
|
|
1014
1062
|
}
|
|
1015
|
-
static code = "
|
|
1016
|
-
static statusCode =
|
|
1017
|
-
static description = `
|
|
1063
|
+
static code = "BLOB_NOT_FOUND";
|
|
1064
|
+
static statusCode = 404;
|
|
1065
|
+
static description = `Blob not found: {hash}`;
|
|
1018
1066
|
}
|
|
1019
|
-
class
|
|
1067
|
+
class TreeNotFoundError extends Error {
|
|
1020
1068
|
constructor(body) {
|
|
1021
1069
|
super(
|
|
1022
|
-
`
|
|
1070
|
+
`TREE_NOT_FOUND: ${body.message}`
|
|
1023
1071
|
);
|
|
1024
1072
|
this.body = body;
|
|
1025
|
-
this.name = "
|
|
1073
|
+
this.name = "TreeNotFoundError";
|
|
1026
1074
|
}
|
|
1027
|
-
static code = "
|
|
1028
|
-
static statusCode =
|
|
1029
|
-
static description = `
|
|
1075
|
+
static code = "TREE_NOT_FOUND";
|
|
1076
|
+
static statusCode = 404;
|
|
1077
|
+
static description = `Tree not found: {hash}`;
|
|
1030
1078
|
}
|
|
1031
|
-
class
|
|
1079
|
+
class ResizeFailedError extends Error {
|
|
1032
1080
|
constructor(body) {
|
|
1033
1081
|
super(
|
|
1034
|
-
`
|
|
1082
|
+
`RESIZE_FAILED: ${body.message}`
|
|
1035
1083
|
);
|
|
1036
1084
|
this.body = body;
|
|
1037
|
-
this.name = "
|
|
1085
|
+
this.name = "ResizeFailedError";
|
|
1038
1086
|
}
|
|
1039
|
-
static code = "
|
|
1040
|
-
static statusCode =
|
|
1041
|
-
static description = `
|
|
1087
|
+
static code = "RESIZE_FAILED";
|
|
1088
|
+
static statusCode = 500;
|
|
1089
|
+
static description = `Failed to resize VM: {message}`;
|
|
1042
1090
|
}
|
|
1043
|
-
class
|
|
1091
|
+
class InternalResizeVmNotFoundError extends Error {
|
|
1044
1092
|
constructor(body) {
|
|
1045
1093
|
super(
|
|
1046
|
-
`
|
|
1094
|
+
`INTERNAL_RESIZE_VM_NOT_FOUND: ${body.message}`
|
|
1047
1095
|
);
|
|
1048
1096
|
this.body = body;
|
|
1049
|
-
this.name = "
|
|
1097
|
+
this.name = "InternalResizeVmNotFoundError";
|
|
1050
1098
|
}
|
|
1051
|
-
static code = "
|
|
1052
|
-
static statusCode =
|
|
1053
|
-
static description = `
|
|
1099
|
+
static code = "INTERNAL_RESIZE_VM_NOT_FOUND";
|
|
1100
|
+
static statusCode = 404;
|
|
1101
|
+
static description = `VM not found`;
|
|
1054
1102
|
}
|
|
1055
|
-
class
|
|
1103
|
+
class ObservabilityDatabaseErrorError extends Error {
|
|
1056
1104
|
constructor(body) {
|
|
1057
1105
|
super(
|
|
1058
|
-
`
|
|
1106
|
+
`OBSERVABILITY_DATABASE_ERROR: ${body.message}`
|
|
1059
1107
|
);
|
|
1060
1108
|
this.body = body;
|
|
1061
|
-
this.name = "
|
|
1109
|
+
this.name = "ObservabilityDatabaseErrorError";
|
|
1062
1110
|
}
|
|
1063
|
-
static code = "
|
|
1064
|
-
static statusCode =
|
|
1065
|
-
static description = `
|
|
1111
|
+
static code = "OBSERVABILITY_DATABASE_ERROR";
|
|
1112
|
+
static statusCode = 500;
|
|
1113
|
+
static description = `Database operation failed: {message}`;
|
|
1066
1114
|
}
|
|
1067
|
-
class
|
|
1115
|
+
class ObservabilityAccessDeniedError extends Error {
|
|
1068
1116
|
constructor(body) {
|
|
1069
1117
|
super(
|
|
1070
|
-
`
|
|
1118
|
+
`OBSERVABILITY_ACCESS_DENIED: ${body.message}`
|
|
1071
1119
|
);
|
|
1072
1120
|
this.body = body;
|
|
1073
|
-
this.name = "
|
|
1121
|
+
this.name = "ObservabilityAccessDeniedError";
|
|
1074
1122
|
}
|
|
1075
|
-
static code = "
|
|
1076
|
-
static statusCode =
|
|
1077
|
-
static description = `
|
|
1123
|
+
static code = "OBSERVABILITY_ACCESS_DENIED";
|
|
1124
|
+
static statusCode = 403;
|
|
1125
|
+
static description = `Access denied to logs for deployment: {deployment_id}`;
|
|
1078
1126
|
}
|
|
1079
|
-
class
|
|
1127
|
+
class ParseLogsFailedError extends Error {
|
|
1080
1128
|
constructor(body) {
|
|
1081
1129
|
super(
|
|
1082
|
-
`
|
|
1130
|
+
`PARSE_LOGS_FAILED: ${body.message}`
|
|
1083
1131
|
);
|
|
1084
1132
|
this.body = body;
|
|
1085
|
-
this.name = "
|
|
1133
|
+
this.name = "ParseLogsFailedError";
|
|
1086
1134
|
}
|
|
1087
|
-
static code = "
|
|
1135
|
+
static code = "PARSE_LOGS_FAILED";
|
|
1088
1136
|
static statusCode = 500;
|
|
1089
|
-
static description = `
|
|
1137
|
+
static description = `Failed to parse logs: {message}`;
|
|
1090
1138
|
}
|
|
1091
|
-
class
|
|
1139
|
+
class RetrieveLogsFailedError extends Error {
|
|
1092
1140
|
constructor(body) {
|
|
1093
1141
|
super(
|
|
1094
|
-
`
|
|
1142
|
+
`RETRIEVE_LOGS_FAILED: ${body.message}`
|
|
1095
1143
|
);
|
|
1096
1144
|
this.body = body;
|
|
1097
|
-
this.name = "
|
|
1145
|
+
this.name = "RetrieveLogsFailedError";
|
|
1098
1146
|
}
|
|
1099
|
-
static code = "
|
|
1147
|
+
static code = "RETRIEVE_LOGS_FAILED";
|
|
1100
1148
|
static statusCode = 500;
|
|
1101
|
-
static description = `Failed to
|
|
1149
|
+
static description = `Failed to retrieve logs: {message}`;
|
|
1102
1150
|
}
|
|
1103
|
-
class
|
|
1151
|
+
class InvalidQueryError extends Error {
|
|
1104
1152
|
constructor(body) {
|
|
1105
1153
|
super(
|
|
1106
|
-
`
|
|
1154
|
+
`INVALID_QUERY: ${body.message}`
|
|
1107
1155
|
);
|
|
1108
1156
|
this.body = body;
|
|
1109
|
-
this.name = "
|
|
1157
|
+
this.name = "InvalidQueryError";
|
|
1110
1158
|
}
|
|
1111
|
-
static code = "
|
|
1112
|
-
static statusCode =
|
|
1113
|
-
static description = `
|
|
1159
|
+
static code = "INVALID_QUERY";
|
|
1160
|
+
static statusCode = 400;
|
|
1161
|
+
static description = `Invalid log query: {message}`;
|
|
1114
1162
|
}
|
|
1115
|
-
class
|
|
1163
|
+
class LogsNotFoundError extends Error {
|
|
1116
1164
|
constructor(body) {
|
|
1117
1165
|
super(
|
|
1118
|
-
`
|
|
1166
|
+
`LOGS_NOT_FOUND: ${body.message}`
|
|
1119
1167
|
);
|
|
1120
1168
|
this.body = body;
|
|
1121
|
-
this.name = "
|
|
1169
|
+
this.name = "LogsNotFoundError";
|
|
1122
1170
|
}
|
|
1123
|
-
static code = "
|
|
1124
|
-
static statusCode =
|
|
1125
|
-
static description = `
|
|
1171
|
+
static code = "LOGS_NOT_FOUND";
|
|
1172
|
+
static statusCode = 404;
|
|
1173
|
+
static description = `Logs not found for deployment: {deployment_id}`;
|
|
1126
1174
|
}
|
|
1127
|
-
class
|
|
1175
|
+
class PermissionAlreadyExistsError extends Error {
|
|
1128
1176
|
constructor(body) {
|
|
1129
1177
|
super(
|
|
1130
|
-
`
|
|
1178
|
+
`PERMISSION_ALREADY_EXISTS: ${body.message}`
|
|
1131
1179
|
);
|
|
1132
1180
|
this.body = body;
|
|
1133
|
-
this.name = "
|
|
1181
|
+
this.name = "PermissionAlreadyExistsError";
|
|
1134
1182
|
}
|
|
1135
|
-
static code = "
|
|
1136
|
-
static statusCode =
|
|
1137
|
-
static description = `
|
|
1183
|
+
static code = "PERMISSION_ALREADY_EXISTS";
|
|
1184
|
+
static statusCode = 409;
|
|
1185
|
+
static description = `Permission already exists`;
|
|
1138
1186
|
}
|
|
1139
|
-
class
|
|
1187
|
+
class ListTokensFailedError extends Error {
|
|
1140
1188
|
constructor(body) {
|
|
1141
1189
|
super(
|
|
1142
|
-
`
|
|
1190
|
+
`LIST_TOKENS_FAILED: ${body.message}`
|
|
1143
1191
|
);
|
|
1144
1192
|
this.body = body;
|
|
1145
|
-
this.name = "
|
|
1193
|
+
this.name = "ListTokensFailedError";
|
|
1146
1194
|
}
|
|
1147
|
-
static code = "
|
|
1195
|
+
static code = "LIST_TOKENS_FAILED";
|
|
1148
1196
|
static statusCode = 500;
|
|
1149
|
-
static description = `Failed to
|
|
1197
|
+
static description = `Failed to list tokens: {message}`;
|
|
1150
1198
|
}
|
|
1151
|
-
class
|
|
1199
|
+
class RevokeTokenFailedError extends Error {
|
|
1152
1200
|
constructor(body) {
|
|
1153
1201
|
super(
|
|
1154
|
-
`
|
|
1202
|
+
`REVOKE_TOKEN_FAILED: ${body.message}`
|
|
1155
1203
|
);
|
|
1156
1204
|
this.body = body;
|
|
1157
|
-
this.name = "
|
|
1205
|
+
this.name = "RevokeTokenFailedError";
|
|
1158
1206
|
}
|
|
1159
|
-
static code = "
|
|
1160
|
-
static statusCode =
|
|
1161
|
-
static description = `
|
|
1207
|
+
static code = "REVOKE_TOKEN_FAILED";
|
|
1208
|
+
static statusCode = 500;
|
|
1209
|
+
static description = `Failed to revoke token: {message}`;
|
|
1162
1210
|
}
|
|
1163
|
-
class
|
|
1211
|
+
class CreateTokenFailedError extends Error {
|
|
1164
1212
|
constructor(body) {
|
|
1165
1213
|
super(
|
|
1166
|
-
`
|
|
1214
|
+
`CREATE_TOKEN_FAILED: ${body.message}`
|
|
1167
1215
|
);
|
|
1168
1216
|
this.body = body;
|
|
1169
|
-
this.name = "
|
|
1217
|
+
this.name = "CreateTokenFailedError";
|
|
1170
1218
|
}
|
|
1171
|
-
static code = "
|
|
1219
|
+
static code = "CREATE_TOKEN_FAILED";
|
|
1172
1220
|
static statusCode = 500;
|
|
1173
|
-
static description = `Failed to
|
|
1221
|
+
static description = `Failed to create token: {message}`;
|
|
1174
1222
|
}
|
|
1175
|
-
class
|
|
1223
|
+
class ListPermissionsFailedError extends Error {
|
|
1176
1224
|
constructor(body) {
|
|
1177
1225
|
super(
|
|
1178
|
-
`
|
|
1226
|
+
`LIST_PERMISSIONS_FAILED: ${body.message}`
|
|
1179
1227
|
);
|
|
1180
1228
|
this.body = body;
|
|
1181
|
-
this.name = "
|
|
1229
|
+
this.name = "ListPermissionsFailedError";
|
|
1182
1230
|
}
|
|
1183
|
-
static code = "
|
|
1231
|
+
static code = "LIST_PERMISSIONS_FAILED";
|
|
1184
1232
|
static statusCode = 500;
|
|
1185
|
-
static description = `
|
|
1233
|
+
static description = `Failed to list permissions: {message}`;
|
|
1186
1234
|
}
|
|
1187
|
-
class
|
|
1235
|
+
class GetPermissionFailedError extends Error {
|
|
1188
1236
|
constructor(body) {
|
|
1189
1237
|
super(
|
|
1190
|
-
`
|
|
1238
|
+
`GET_PERMISSION_FAILED: ${body.message}`
|
|
1191
1239
|
);
|
|
1192
1240
|
this.body = body;
|
|
1193
|
-
this.name = "
|
|
1241
|
+
this.name = "GetPermissionFailedError";
|
|
1194
1242
|
}
|
|
1195
|
-
static code = "
|
|
1243
|
+
static code = "GET_PERMISSION_FAILED";
|
|
1196
1244
|
static statusCode = 500;
|
|
1197
|
-
static description = `Failed to
|
|
1245
|
+
static description = `Failed to get permission: {message}`;
|
|
1198
1246
|
}
|
|
1199
|
-
class
|
|
1247
|
+
class UpdatePermissionFailedError extends Error {
|
|
1200
1248
|
constructor(body) {
|
|
1201
1249
|
super(
|
|
1202
|
-
`
|
|
1250
|
+
`UPDATE_PERMISSION_FAILED: ${body.message}`
|
|
1203
1251
|
);
|
|
1204
1252
|
this.body = body;
|
|
1205
|
-
this.name = "
|
|
1253
|
+
this.name = "UpdatePermissionFailedError";
|
|
1206
1254
|
}
|
|
1207
|
-
static code = "
|
|
1208
|
-
static statusCode =
|
|
1209
|
-
static description = `
|
|
1255
|
+
static code = "UPDATE_PERMISSION_FAILED";
|
|
1256
|
+
static statusCode = 500;
|
|
1257
|
+
static description = `Failed to update permission: {message}`;
|
|
1210
1258
|
}
|
|
1211
|
-
class
|
|
1259
|
+
class RevokePermissionFailedError extends Error {
|
|
1212
1260
|
constructor(body) {
|
|
1213
1261
|
super(
|
|
1214
|
-
`
|
|
1262
|
+
`REVOKE_PERMISSION_FAILED: ${body.message}`
|
|
1215
1263
|
);
|
|
1216
1264
|
this.body = body;
|
|
1217
|
-
this.name = "
|
|
1265
|
+
this.name = "RevokePermissionFailedError";
|
|
1218
1266
|
}
|
|
1219
|
-
static code = "
|
|
1267
|
+
static code = "REVOKE_PERMISSION_FAILED";
|
|
1220
1268
|
static statusCode = 500;
|
|
1221
|
-
static description = `Failed to
|
|
1269
|
+
static description = `Failed to revoke permission: {message}`;
|
|
1222
1270
|
}
|
|
1223
|
-
class
|
|
1271
|
+
class GrantPermissionFailedError extends Error {
|
|
1224
1272
|
constructor(body) {
|
|
1225
1273
|
super(
|
|
1226
|
-
`
|
|
1274
|
+
`GRANT_PERMISSION_FAILED: ${body.message}`
|
|
1227
1275
|
);
|
|
1228
1276
|
this.body = body;
|
|
1229
|
-
this.name = "
|
|
1277
|
+
this.name = "GrantPermissionFailedError";
|
|
1230
1278
|
}
|
|
1231
|
-
static code = "
|
|
1279
|
+
static code = "GRANT_PERMISSION_FAILED";
|
|
1232
1280
|
static statusCode = 500;
|
|
1233
|
-
static description = `Failed to
|
|
1281
|
+
static description = `Failed to grant permission: {message}`;
|
|
1234
1282
|
}
|
|
1235
|
-
class
|
|
1283
|
+
class ListIdentitiesFailedError extends Error {
|
|
1236
1284
|
constructor(body) {
|
|
1237
1285
|
super(
|
|
1238
|
-
`
|
|
1286
|
+
`LIST_IDENTITIES_FAILED: ${body.message}`
|
|
1239
1287
|
);
|
|
1240
1288
|
this.body = body;
|
|
1241
|
-
this.name = "
|
|
1289
|
+
this.name = "ListIdentitiesFailedError";
|
|
1242
1290
|
}
|
|
1243
|
-
static code = "
|
|
1291
|
+
static code = "LIST_IDENTITIES_FAILED";
|
|
1244
1292
|
static statusCode = 500;
|
|
1245
|
-
static description = `Failed to
|
|
1293
|
+
static description = `Failed to list identities: {message}`;
|
|
1246
1294
|
}
|
|
1247
|
-
class
|
|
1295
|
+
class DeleteIdentityFailedError extends Error {
|
|
1248
1296
|
constructor(body) {
|
|
1249
1297
|
super(
|
|
1250
|
-
`
|
|
1298
|
+
`DELETE_IDENTITY_FAILED: ${body.message}`
|
|
1251
1299
|
);
|
|
1252
1300
|
this.body = body;
|
|
1253
|
-
this.name = "
|
|
1301
|
+
this.name = "DeleteIdentityFailedError";
|
|
1254
1302
|
}
|
|
1255
|
-
static code = "
|
|
1303
|
+
static code = "DELETE_IDENTITY_FAILED";
|
|
1256
1304
|
static statusCode = 500;
|
|
1257
|
-
static description = `Failed to
|
|
1305
|
+
static description = `Failed to delete identity: {message}`;
|
|
1258
1306
|
}
|
|
1259
|
-
class
|
|
1307
|
+
class CreateIdentityFailedError extends Error {
|
|
1260
1308
|
constructor(body) {
|
|
1261
1309
|
super(
|
|
1262
|
-
`
|
|
1310
|
+
`CREATE_IDENTITY_FAILED: ${body.message}`
|
|
1263
1311
|
);
|
|
1264
1312
|
this.body = body;
|
|
1265
|
-
this.name = "
|
|
1313
|
+
this.name = "CreateIdentityFailedError";
|
|
1266
1314
|
}
|
|
1267
|
-
static code = "
|
|
1315
|
+
static code = "CREATE_IDENTITY_FAILED";
|
|
1268
1316
|
static statusCode = 500;
|
|
1269
|
-
static description = `Failed to
|
|
1317
|
+
static description = `Failed to create identity: {message}`;
|
|
1270
1318
|
}
|
|
1271
|
-
class
|
|
1319
|
+
class VmPermissionNotFoundError extends Error {
|
|
1272
1320
|
constructor(body) {
|
|
1273
1321
|
super(
|
|
1274
|
-
`
|
|
1322
|
+
`VM_PERMISSION_NOT_FOUND: ${body.message}`
|
|
1275
1323
|
);
|
|
1276
1324
|
this.body = body;
|
|
1277
|
-
this.name = "
|
|
1325
|
+
this.name = "VmPermissionNotFoundError";
|
|
1278
1326
|
}
|
|
1279
|
-
static code = "
|
|
1280
|
-
static statusCode =
|
|
1281
|
-
static description = `
|
|
1282
|
-
}
|
|
1283
|
-
class
|
|
1327
|
+
static code = "VM_PERMISSION_NOT_FOUND";
|
|
1328
|
+
static statusCode = 404;
|
|
1329
|
+
static description = `VM permission not found`;
|
|
1330
|
+
}
|
|
1331
|
+
class PermissionNotFoundError extends Error {
|
|
1284
1332
|
constructor(body) {
|
|
1285
1333
|
super(
|
|
1286
|
-
`
|
|
1334
|
+
`PERMISSION_NOT_FOUND: ${body.message}`
|
|
1287
1335
|
);
|
|
1288
1336
|
this.body = body;
|
|
1289
|
-
this.name = "
|
|
1337
|
+
this.name = "PermissionNotFoundError";
|
|
1290
1338
|
}
|
|
1291
|
-
static code = "
|
|
1292
|
-
static statusCode =
|
|
1293
|
-
static description = `
|
|
1339
|
+
static code = "PERMISSION_NOT_FOUND";
|
|
1340
|
+
static statusCode = 404;
|
|
1341
|
+
static description = `Permission not found`;
|
|
1294
1342
|
}
|
|
1295
|
-
class
|
|
1343
|
+
class VmAccessDeniedError extends Error {
|
|
1296
1344
|
constructor(body) {
|
|
1297
1345
|
super(
|
|
1298
|
-
`
|
|
1346
|
+
`VM_ACCESS_DENIED: ${body.message}`
|
|
1299
1347
|
);
|
|
1300
1348
|
this.body = body;
|
|
1301
|
-
this.name = "
|
|
1349
|
+
this.name = "VmAccessDeniedError";
|
|
1302
1350
|
}
|
|
1303
|
-
static code = "
|
|
1304
|
-
static statusCode =
|
|
1305
|
-
static description = `
|
|
1351
|
+
static code = "VM_ACCESS_DENIED";
|
|
1352
|
+
static statusCode = 403;
|
|
1353
|
+
static description = `You are not allowed to access this VM`;
|
|
1306
1354
|
}
|
|
1307
|
-
class
|
|
1355
|
+
class GitRepositoryAccessDeniedError extends Error {
|
|
1308
1356
|
constructor(body) {
|
|
1309
1357
|
super(
|
|
1310
|
-
`
|
|
1358
|
+
`GIT_REPOSITORY_ACCESS_DENIED: ${body.message}`
|
|
1311
1359
|
);
|
|
1312
1360
|
this.body = body;
|
|
1313
|
-
this.name = "
|
|
1361
|
+
this.name = "GitRepositoryAccessDeniedError";
|
|
1314
1362
|
}
|
|
1315
|
-
static code = "
|
|
1363
|
+
static code = "GIT_REPOSITORY_ACCESS_DENIED";
|
|
1364
|
+
static statusCode = 403;
|
|
1365
|
+
static description = `You are not allowed to access this repository`;
|
|
1366
|
+
}
|
|
1367
|
+
class GitRepositoryNotFoundError extends Error {
|
|
1368
|
+
constructor(body) {
|
|
1369
|
+
super(
|
|
1370
|
+
`GIT_REPOSITORY_NOT_FOUND: ${body.message}`
|
|
1371
|
+
);
|
|
1372
|
+
this.body = body;
|
|
1373
|
+
this.name = "GitRepositoryNotFoundError";
|
|
1374
|
+
}
|
|
1375
|
+
static code = "GIT_REPOSITORY_NOT_FOUND";
|
|
1316
1376
|
static statusCode = 404;
|
|
1317
|
-
static description = `Repository not found
|
|
1377
|
+
static description = `Repository not found`;
|
|
1378
|
+
}
|
|
1379
|
+
class CannotDeleteManagedIdentityError extends Error {
|
|
1380
|
+
constructor(body) {
|
|
1381
|
+
super(
|
|
1382
|
+
`CANNOT_DELETE_MANAGED_IDENTITY: ${body.message}`
|
|
1383
|
+
);
|
|
1384
|
+
this.body = body;
|
|
1385
|
+
this.name = "CannotDeleteManagedIdentityError";
|
|
1386
|
+
}
|
|
1387
|
+
static code = "CANNOT_DELETE_MANAGED_IDENTITY";
|
|
1388
|
+
static statusCode = 403;
|
|
1389
|
+
static description = `Cannot delete managed identities`;
|
|
1390
|
+
}
|
|
1391
|
+
class CannotModifyManagedIdentityError extends Error {
|
|
1392
|
+
constructor(body) {
|
|
1393
|
+
super(
|
|
1394
|
+
`CANNOT_MODIFY_MANAGED_IDENTITY: ${body.message}`
|
|
1395
|
+
);
|
|
1396
|
+
this.body = body;
|
|
1397
|
+
this.name = "CannotModifyManagedIdentityError";
|
|
1398
|
+
}
|
|
1399
|
+
static code = "CANNOT_MODIFY_MANAGED_IDENTITY";
|
|
1400
|
+
static statusCode = 403;
|
|
1401
|
+
static description = `Cannot modify managed identities`;
|
|
1402
|
+
}
|
|
1403
|
+
class IdentityAccessDeniedError extends Error {
|
|
1404
|
+
constructor(body) {
|
|
1405
|
+
super(
|
|
1406
|
+
`IDENTITY_ACCESS_DENIED: ${body.message}`
|
|
1407
|
+
);
|
|
1408
|
+
this.body = body;
|
|
1409
|
+
this.name = "IdentityAccessDeniedError";
|
|
1410
|
+
}
|
|
1411
|
+
static code = "IDENTITY_ACCESS_DENIED";
|
|
1412
|
+
static statusCode = 403;
|
|
1413
|
+
static description = `You are not allowed to access this identity`;
|
|
1414
|
+
}
|
|
1415
|
+
class IdentityNotFoundError extends Error {
|
|
1416
|
+
constructor(body) {
|
|
1417
|
+
super(
|
|
1418
|
+
`IDENTITY_NOT_FOUND: ${body.message}`
|
|
1419
|
+
);
|
|
1420
|
+
this.body = body;
|
|
1421
|
+
this.name = "IdentityNotFoundError";
|
|
1422
|
+
}
|
|
1423
|
+
static code = "IDENTITY_NOT_FOUND";
|
|
1424
|
+
static statusCode = 404;
|
|
1425
|
+
static description = `Identity not found`;
|
|
1426
|
+
}
|
|
1427
|
+
class ExecuteInternalErrorError extends Error {
|
|
1428
|
+
constructor(body) {
|
|
1429
|
+
super(
|
|
1430
|
+
`EXECUTE_INTERNAL_ERROR: ${body.message}`
|
|
1431
|
+
);
|
|
1432
|
+
this.body = body;
|
|
1433
|
+
this.name = "ExecuteInternalErrorError";
|
|
1434
|
+
}
|
|
1435
|
+
static code = "EXECUTE_INTERNAL_ERROR";
|
|
1436
|
+
static statusCode = 500;
|
|
1437
|
+
static description = `Internal error: {message}`;
|
|
1438
|
+
}
|
|
1439
|
+
class ExecuteAccessDeniedError extends Error {
|
|
1440
|
+
constructor(body) {
|
|
1441
|
+
super(
|
|
1442
|
+
`EXECUTE_ACCESS_DENIED: ${body.message}`
|
|
1443
|
+
);
|
|
1444
|
+
this.body = body;
|
|
1445
|
+
this.name = "ExecuteAccessDeniedError";
|
|
1446
|
+
}
|
|
1447
|
+
static code = "EXECUTE_ACCESS_DENIED";
|
|
1448
|
+
static statusCode = 403;
|
|
1449
|
+
static description = `Access denied to execute run`;
|
|
1450
|
+
}
|
|
1451
|
+
class ListRunsFailedError extends Error {
|
|
1452
|
+
constructor(body) {
|
|
1453
|
+
super(
|
|
1454
|
+
`LIST_RUNS_FAILED: ${body.message}`
|
|
1455
|
+
);
|
|
1456
|
+
this.body = body;
|
|
1457
|
+
this.name = "ListRunsFailedError";
|
|
1458
|
+
}
|
|
1459
|
+
static code = "LIST_RUNS_FAILED";
|
|
1460
|
+
static statusCode = 500;
|
|
1461
|
+
static description = `Failed to list execute runs: {message}`;
|
|
1462
|
+
}
|
|
1463
|
+
class ExecutionErrorError extends Error {
|
|
1464
|
+
constructor(body) {
|
|
1465
|
+
super(
|
|
1466
|
+
`EXECUTION_ERROR: ${body.message}`
|
|
1467
|
+
);
|
|
1468
|
+
this.body = body;
|
|
1469
|
+
this.name = "ExecutionErrorError";
|
|
1470
|
+
}
|
|
1471
|
+
static code = "EXECUTION_ERROR";
|
|
1472
|
+
static statusCode = 500;
|
|
1473
|
+
static description = `Script execution error: {message}`;
|
|
1474
|
+
}
|
|
1475
|
+
class ConnectionFailedError extends Error {
|
|
1476
|
+
constructor(body) {
|
|
1477
|
+
super(
|
|
1478
|
+
`CONNECTION_FAILED: ${body.message}`
|
|
1479
|
+
);
|
|
1480
|
+
this.body = body;
|
|
1481
|
+
this.name = "ConnectionFailedError";
|
|
1482
|
+
}
|
|
1483
|
+
static code = "CONNECTION_FAILED";
|
|
1484
|
+
static statusCode = 500;
|
|
1485
|
+
static description = `Failed to connect to execute server: {message}`;
|
|
1486
|
+
}
|
|
1487
|
+
class MetadataWriteFailedError extends Error {
|
|
1488
|
+
constructor(body) {
|
|
1489
|
+
super(
|
|
1490
|
+
`METADATA_WRITE_FAILED: ${body.message}`
|
|
1491
|
+
);
|
|
1492
|
+
this.body = body;
|
|
1493
|
+
this.name = "MetadataWriteFailedError";
|
|
1494
|
+
}
|
|
1495
|
+
static code = "METADATA_WRITE_FAILED";
|
|
1496
|
+
static statusCode = 500;
|
|
1497
|
+
static description = `Failed to write metadata file: {message}`;
|
|
1498
|
+
}
|
|
1499
|
+
class NodeModulesInstallFailedError extends Error {
|
|
1500
|
+
constructor(body) {
|
|
1501
|
+
super(
|
|
1502
|
+
`NODE_MODULES_INSTALL_FAILED: ${body.message}`
|
|
1503
|
+
);
|
|
1504
|
+
this.body = body;
|
|
1505
|
+
this.name = "NodeModulesInstallFailedError";
|
|
1506
|
+
}
|
|
1507
|
+
static code = "NODE_MODULES_INSTALL_FAILED";
|
|
1508
|
+
static statusCode = 500;
|
|
1509
|
+
static description = `Failed to install node modules: {message}`;
|
|
1510
|
+
}
|
|
1511
|
+
class NodeModulesDownloadFailedError extends Error {
|
|
1512
|
+
constructor(body) {
|
|
1513
|
+
super(
|
|
1514
|
+
`NODE_MODULES_DOWNLOAD_FAILED: ${body.message}`
|
|
1515
|
+
);
|
|
1516
|
+
this.body = body;
|
|
1517
|
+
this.name = "NodeModulesDownloadFailedError";
|
|
1518
|
+
}
|
|
1519
|
+
static code = "NODE_MODULES_DOWNLOAD_FAILED";
|
|
1520
|
+
static statusCode = 500;
|
|
1521
|
+
static description = `Failed to download node modules: {message}`;
|
|
1522
|
+
}
|
|
1523
|
+
class LockGenerationFailedError extends Error {
|
|
1524
|
+
constructor(body) {
|
|
1525
|
+
super(
|
|
1526
|
+
`LOCK_GENERATION_FAILED: ${body.message}`
|
|
1527
|
+
);
|
|
1528
|
+
this.body = body;
|
|
1529
|
+
this.name = "LockGenerationFailedError";
|
|
1530
|
+
}
|
|
1531
|
+
static code = "LOCK_GENERATION_FAILED";
|
|
1532
|
+
static statusCode = 500;
|
|
1533
|
+
static description = `Failed to generate lock file: {message}`;
|
|
1534
|
+
}
|
|
1535
|
+
class WriteScriptFailedError extends Error {
|
|
1536
|
+
constructor(body) {
|
|
1537
|
+
super(
|
|
1538
|
+
`WRITE_SCRIPT_FAILED: ${body.message}`
|
|
1539
|
+
);
|
|
1540
|
+
this.body = body;
|
|
1541
|
+
this.name = "WriteScriptFailedError";
|
|
1542
|
+
}
|
|
1543
|
+
static code = "WRITE_SCRIPT_FAILED";
|
|
1544
|
+
static statusCode = 500;
|
|
1545
|
+
static description = `Failed to write script file: {message}`;
|
|
1546
|
+
}
|
|
1547
|
+
class DirectoryCreationFailedError extends Error {
|
|
1548
|
+
constructor(body) {
|
|
1549
|
+
super(
|
|
1550
|
+
`DIRECTORY_CREATION_FAILED: ${body.message}`
|
|
1551
|
+
);
|
|
1552
|
+
this.body = body;
|
|
1553
|
+
this.name = "DirectoryCreationFailedError";
|
|
1554
|
+
}
|
|
1555
|
+
static code = "DIRECTORY_CREATION_FAILED";
|
|
1556
|
+
static statusCode = 500;
|
|
1557
|
+
static description = `Failed to create script directory: {message}`;
|
|
1558
|
+
}
|
|
1559
|
+
class NetworkPermissionsFailedError extends Error {
|
|
1560
|
+
constructor(body) {
|
|
1561
|
+
super(
|
|
1562
|
+
`NETWORK_PERMISSIONS_FAILED: ${body.message}`
|
|
1563
|
+
);
|
|
1564
|
+
this.body = body;
|
|
1565
|
+
this.name = "NetworkPermissionsFailedError";
|
|
1566
|
+
}
|
|
1567
|
+
static code = "NETWORK_PERMISSIONS_FAILED";
|
|
1568
|
+
static statusCode = 500;
|
|
1569
|
+
static description = `Failed to insert network permissions: {message}`;
|
|
1570
|
+
}
|
|
1571
|
+
class LoggingFailedError extends Error {
|
|
1572
|
+
constructor(body) {
|
|
1573
|
+
super(
|
|
1574
|
+
`LOGGING_FAILED: ${body.message}`
|
|
1575
|
+
);
|
|
1576
|
+
this.body = body;
|
|
1577
|
+
this.name = "LoggingFailedError";
|
|
1578
|
+
}
|
|
1579
|
+
static code = "LOGGING_FAILED";
|
|
1580
|
+
static statusCode = 500;
|
|
1581
|
+
static description = `Failed to log execute run: {message}`;
|
|
1582
|
+
}
|
|
1583
|
+
class RunNotFoundError extends Error {
|
|
1584
|
+
constructor(body) {
|
|
1585
|
+
super(
|
|
1586
|
+
`RUN_NOT_FOUND: ${body.message}`
|
|
1587
|
+
);
|
|
1588
|
+
this.body = body;
|
|
1589
|
+
this.name = "RunNotFoundError";
|
|
1590
|
+
}
|
|
1591
|
+
static code = "RUN_NOT_FOUND";
|
|
1592
|
+
static statusCode = 404;
|
|
1593
|
+
static description = `Execute run not found: {run_id}`;
|
|
1318
1594
|
}
|
|
1319
1595
|
class FailedToProvisionCertificateError extends Error {
|
|
1320
1596
|
constructor(body) {
|
|
@@ -1460,931 +1736,813 @@ class InvalidDomainError extends Error {
|
|
|
1460
1736
|
static statusCode = 400;
|
|
1461
1737
|
static description = `Invalid domain: {domain}`;
|
|
1462
1738
|
}
|
|
1463
|
-
class
|
|
1464
|
-
constructor(body) {
|
|
1465
|
-
super(
|
|
1466
|
-
`DOMAIN_ALREADY_EXISTS: ${body.message}`
|
|
1467
|
-
);
|
|
1468
|
-
this.body = body;
|
|
1469
|
-
this.name = "DomainAlreadyExistsError";
|
|
1470
|
-
}
|
|
1471
|
-
static code = "DOMAIN_ALREADY_EXISTS";
|
|
1472
|
-
static statusCode = 400;
|
|
1473
|
-
static description = `Domain already exists: {domain}`;
|
|
1474
|
-
}
|
|
1475
|
-
class FailedToInsertOwnershipError extends Error {
|
|
1476
|
-
constructor(body) {
|
|
1477
|
-
super(
|
|
1478
|
-
`FAILED_TO_INSERT_OWNERSHIP: ${body.message}`
|
|
1479
|
-
);
|
|
1480
|
-
this.body = body;
|
|
1481
|
-
this.name = "FailedToInsertOwnershipError";
|
|
1482
|
-
}
|
|
1483
|
-
static code = "FAILED_TO_INSERT_OWNERSHIP";
|
|
1484
|
-
static statusCode = 500;
|
|
1485
|
-
static description = `Failed to insert domain ownership: {message}`;
|
|
1486
|
-
}
|
|
1487
|
-
class FailedRemoveDomainMappingError extends Error {
|
|
1488
|
-
constructor(body) {
|
|
1489
|
-
super(
|
|
1490
|
-
`FAILED_REMOVE_DOMAIN_MAPPING: ${body.message}`
|
|
1491
|
-
);
|
|
1492
|
-
this.body = body;
|
|
1493
|
-
this.name = "FailedRemoveDomainMappingError";
|
|
1494
|
-
}
|
|
1495
|
-
static code = "FAILED_REMOVE_DOMAIN_MAPPING";
|
|
1496
|
-
static statusCode = 500;
|
|
1497
|
-
static description = `Failed to remove domain mapping: {message}`;
|
|
1498
|
-
}
|
|
1499
|
-
class FailedPermissionsCheckError extends Error {
|
|
1500
|
-
constructor(body) {
|
|
1501
|
-
super(
|
|
1502
|
-
`FAILED_PERMISSIONS_CHECK: ${body.message}`
|
|
1503
|
-
);
|
|
1504
|
-
this.body = body;
|
|
1505
|
-
this.name = "FailedPermissionsCheckError";
|
|
1506
|
-
}
|
|
1507
|
-
static code = "FAILED_PERMISSIONS_CHECK";
|
|
1508
|
-
static statusCode = 401;
|
|
1509
|
-
static description = `You do not have permission to delete the domain mapping for: {domain}`;
|
|
1510
|
-
}
|
|
1511
|
-
class FailedToCheckDomainMappingPermissionsError extends Error {
|
|
1512
|
-
constructor(body) {
|
|
1513
|
-
super(
|
|
1514
|
-
`FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS: ${body.message}`
|
|
1515
|
-
);
|
|
1516
|
-
this.body = body;
|
|
1517
|
-
this.name = "FailedToCheckDomainMappingPermissionsError";
|
|
1518
|
-
}
|
|
1519
|
-
static code = "FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS";
|
|
1520
|
-
static statusCode = 502;
|
|
1521
|
-
static description = `Failed to check permissions: {message}`;
|
|
1522
|
-
}
|
|
1523
|
-
class AnyhowError extends Error {
|
|
1524
|
-
constructor(body) {
|
|
1525
|
-
super(
|
|
1526
|
-
`ANYHOW: ${body.message}`
|
|
1527
|
-
);
|
|
1528
|
-
this.body = body;
|
|
1529
|
-
this.name = "AnyhowError";
|
|
1530
|
-
}
|
|
1531
|
-
static code = "ANYHOW";
|
|
1532
|
-
static statusCode = 500;
|
|
1533
|
-
static description = `null`;
|
|
1534
|
-
}
|
|
1535
|
-
class ObservabilityDatabaseErrorError extends Error {
|
|
1536
|
-
constructor(body) {
|
|
1537
|
-
super(
|
|
1538
|
-
`OBSERVABILITY_DATABASE_ERROR: ${body.message}`
|
|
1539
|
-
);
|
|
1540
|
-
this.body = body;
|
|
1541
|
-
this.name = "ObservabilityDatabaseErrorError";
|
|
1542
|
-
}
|
|
1543
|
-
static code = "OBSERVABILITY_DATABASE_ERROR";
|
|
1544
|
-
static statusCode = 500;
|
|
1545
|
-
static description = `Database operation failed: {message}`;
|
|
1546
|
-
}
|
|
1547
|
-
class ObservabilityAccessDeniedError extends Error {
|
|
1739
|
+
class DomainOwnershipVerificationFailedError extends Error {
|
|
1548
1740
|
constructor(body) {
|
|
1549
1741
|
super(
|
|
1550
|
-
`
|
|
1742
|
+
`DOMAIN_OWNERSHIP_VERIFICATION_FAILED: ${body.message}`
|
|
1551
1743
|
);
|
|
1552
1744
|
this.body = body;
|
|
1553
|
-
this.name = "
|
|
1745
|
+
this.name = "DomainOwnershipVerificationFailedError";
|
|
1554
1746
|
}
|
|
1555
|
-
static code = "
|
|
1747
|
+
static code = "DOMAIN_OWNERSHIP_VERIFICATION_FAILED";
|
|
1556
1748
|
static statusCode = 403;
|
|
1557
|
-
static description = `
|
|
1558
|
-
}
|
|
1559
|
-
class ParseLogsFailedError extends Error {
|
|
1560
|
-
constructor(body) {
|
|
1561
|
-
super(
|
|
1562
|
-
`PARSE_LOGS_FAILED: ${body.message}`
|
|
1563
|
-
);
|
|
1564
|
-
this.body = body;
|
|
1565
|
-
this.name = "ParseLogsFailedError";
|
|
1566
|
-
}
|
|
1567
|
-
static code = "PARSE_LOGS_FAILED";
|
|
1568
|
-
static statusCode = 500;
|
|
1569
|
-
static description = `Failed to parse logs: {message}`;
|
|
1749
|
+
static description = `Domain ownership verification failed`;
|
|
1570
1750
|
}
|
|
1571
|
-
class
|
|
1751
|
+
class ErrorDeletingRecordError extends Error {
|
|
1572
1752
|
constructor(body) {
|
|
1573
1753
|
super(
|
|
1574
|
-
`
|
|
1754
|
+
`ERROR_DELETING_RECORD: ${body.message}`
|
|
1575
1755
|
);
|
|
1576
1756
|
this.body = body;
|
|
1577
|
-
this.name = "
|
|
1757
|
+
this.name = "ErrorDeletingRecordError";
|
|
1578
1758
|
}
|
|
1579
|
-
static code = "
|
|
1759
|
+
static code = "ERROR_DELETING_RECORD";
|
|
1580
1760
|
static statusCode = 500;
|
|
1581
|
-
static description = `
|
|
1582
|
-
}
|
|
1583
|
-
class InvalidQueryError extends Error {
|
|
1584
|
-
constructor(body) {
|
|
1585
|
-
super(
|
|
1586
|
-
`INVALID_QUERY: ${body.message}`
|
|
1587
|
-
);
|
|
1588
|
-
this.body = body;
|
|
1589
|
-
this.name = "InvalidQueryError";
|
|
1590
|
-
}
|
|
1591
|
-
static code = "INVALID_QUERY";
|
|
1592
|
-
static statusCode = 400;
|
|
1593
|
-
static description = `Invalid log query: {message}`;
|
|
1594
|
-
}
|
|
1595
|
-
class LogsNotFoundError extends Error {
|
|
1596
|
-
constructor(body) {
|
|
1597
|
-
super(
|
|
1598
|
-
`LOGS_NOT_FOUND: ${body.message}`
|
|
1599
|
-
);
|
|
1600
|
-
this.body = body;
|
|
1601
|
-
this.name = "LogsNotFoundError";
|
|
1602
|
-
}
|
|
1603
|
-
static code = "LOGS_NOT_FOUND";
|
|
1604
|
-
static statusCode = 404;
|
|
1605
|
-
static description = `Logs not found for deployment: {deployment_id}`;
|
|
1761
|
+
static description = `Error deleting DNS record for {domain}/{name}: {message}`;
|
|
1606
1762
|
}
|
|
1607
|
-
class
|
|
1763
|
+
class RecordOwnershipErrorError extends Error {
|
|
1608
1764
|
constructor(body) {
|
|
1609
1765
|
super(
|
|
1610
|
-
`
|
|
1766
|
+
`RECORD_OWNERSHIP_ERROR: ${body.message}`
|
|
1611
1767
|
);
|
|
1612
1768
|
this.body = body;
|
|
1613
|
-
this.name = "
|
|
1769
|
+
this.name = "RecordOwnershipErrorError";
|
|
1614
1770
|
}
|
|
1615
|
-
static code = "
|
|
1616
|
-
static statusCode =
|
|
1617
|
-
static description = `
|
|
1771
|
+
static code = "RECORD_OWNERSHIP_ERROR";
|
|
1772
|
+
static statusCode = 403;
|
|
1773
|
+
static description = `Account {account_id} does not own record {record_id}`;
|
|
1618
1774
|
}
|
|
1619
|
-
class
|
|
1775
|
+
class ErrorCreatingRecordError extends Error {
|
|
1620
1776
|
constructor(body) {
|
|
1621
1777
|
super(
|
|
1622
|
-
`
|
|
1778
|
+
`ERROR_CREATING_RECORD: ${body.message}`
|
|
1623
1779
|
);
|
|
1624
1780
|
this.body = body;
|
|
1625
|
-
this.name = "
|
|
1781
|
+
this.name = "ErrorCreatingRecordError";
|
|
1626
1782
|
}
|
|
1627
|
-
static code = "
|
|
1783
|
+
static code = "ERROR_CREATING_RECORD";
|
|
1628
1784
|
static statusCode = 500;
|
|
1629
|
-
static description = `
|
|
1785
|
+
static description = `Error creating DNS record: {message}`;
|
|
1630
1786
|
}
|
|
1631
|
-
class
|
|
1787
|
+
class DomainOwnershipErrorError extends Error {
|
|
1632
1788
|
constructor(body) {
|
|
1633
1789
|
super(
|
|
1634
|
-
`
|
|
1790
|
+
`DOMAIN_OWNERSHIP_ERROR: ${body.message}`
|
|
1635
1791
|
);
|
|
1636
1792
|
this.body = body;
|
|
1637
|
-
this.name = "
|
|
1793
|
+
this.name = "DomainOwnershipErrorError";
|
|
1638
1794
|
}
|
|
1639
|
-
static code = "
|
|
1640
|
-
static statusCode =
|
|
1641
|
-
static description = `
|
|
1795
|
+
static code = "DOMAIN_OWNERSHIP_ERROR";
|
|
1796
|
+
static statusCode = 403;
|
|
1797
|
+
static description = `Account {account_id} does not own domain {domain}`;
|
|
1642
1798
|
}
|
|
1643
|
-
class
|
|
1799
|
+
class BrowserOperationFailedError extends Error {
|
|
1644
1800
|
constructor(body) {
|
|
1645
1801
|
super(
|
|
1646
|
-
`
|
|
1802
|
+
`BROWSER_OPERATION_FAILED: ${body.message}`
|
|
1647
1803
|
);
|
|
1648
1804
|
this.body = body;
|
|
1649
|
-
this.name = "
|
|
1805
|
+
this.name = "BrowserOperationFailedError";
|
|
1650
1806
|
}
|
|
1651
|
-
static code = "
|
|
1807
|
+
static code = "BROWSER_OPERATION_FAILED";
|
|
1652
1808
|
static statusCode = 500;
|
|
1653
|
-
static description = `
|
|
1809
|
+
static description = `Browser operation failed: {message}`;
|
|
1654
1810
|
}
|
|
1655
|
-
class
|
|
1811
|
+
class WatchFilesFailedError extends Error {
|
|
1656
1812
|
constructor(body) {
|
|
1657
1813
|
super(
|
|
1658
|
-
`
|
|
1814
|
+
`WATCH_FILES_FAILED: ${body.message}`
|
|
1659
1815
|
);
|
|
1660
1816
|
this.body = body;
|
|
1661
|
-
this.name = "
|
|
1817
|
+
this.name = "WatchFilesFailedError";
|
|
1662
1818
|
}
|
|
1663
|
-
static code = "
|
|
1819
|
+
static code = "WATCH_FILES_FAILED";
|
|
1664
1820
|
static statusCode = 500;
|
|
1665
|
-
static description = `Failed to
|
|
1821
|
+
static description = `Failed to watch files: {message}`;
|
|
1666
1822
|
}
|
|
1667
|
-
class
|
|
1823
|
+
class LogsFailedError extends Error {
|
|
1668
1824
|
constructor(body) {
|
|
1669
1825
|
super(
|
|
1670
|
-
`
|
|
1826
|
+
`LOGS_FAILED: ${body.message}`
|
|
1671
1827
|
);
|
|
1672
1828
|
this.body = body;
|
|
1673
|
-
this.name = "
|
|
1829
|
+
this.name = "LogsFailedError";
|
|
1674
1830
|
}
|
|
1675
|
-
static code = "
|
|
1831
|
+
static code = "LOGS_FAILED";
|
|
1676
1832
|
static statusCode = 500;
|
|
1677
|
-
static description = `Failed to get
|
|
1833
|
+
static description = `Failed to get logs: {message}`;
|
|
1678
1834
|
}
|
|
1679
|
-
class
|
|
1835
|
+
class StatusFailedError extends Error {
|
|
1680
1836
|
constructor(body) {
|
|
1681
1837
|
super(
|
|
1682
|
-
`
|
|
1838
|
+
`STATUS_FAILED: ${body.message}`
|
|
1683
1839
|
);
|
|
1684
1840
|
this.body = body;
|
|
1685
|
-
this.name = "
|
|
1841
|
+
this.name = "StatusFailedError";
|
|
1686
1842
|
}
|
|
1687
|
-
static code = "
|
|
1843
|
+
static code = "STATUS_FAILED";
|
|
1688
1844
|
static statusCode = 500;
|
|
1689
|
-
static description = `Failed to
|
|
1845
|
+
static description = `Failed to get dev server status: {message}`;
|
|
1690
1846
|
}
|
|
1691
|
-
class
|
|
1847
|
+
class RestartFailedError extends Error {
|
|
1692
1848
|
constructor(body) {
|
|
1693
1849
|
super(
|
|
1694
|
-
`
|
|
1850
|
+
`RESTART_FAILED: ${body.message}`
|
|
1695
1851
|
);
|
|
1696
1852
|
this.body = body;
|
|
1697
|
-
this.name = "
|
|
1853
|
+
this.name = "RestartFailedError";
|
|
1698
1854
|
}
|
|
1699
|
-
static code = "
|
|
1855
|
+
static code = "RESTART_FAILED";
|
|
1700
1856
|
static statusCode = 500;
|
|
1701
|
-
static description = `Failed to
|
|
1857
|
+
static description = `Failed to restart dev server: {message}`;
|
|
1702
1858
|
}
|
|
1703
|
-
class
|
|
1859
|
+
class ShutdownFailedError extends Error {
|
|
1704
1860
|
constructor(body) {
|
|
1705
1861
|
super(
|
|
1706
|
-
`
|
|
1862
|
+
`SHUTDOWN_FAILED: ${body.message}`
|
|
1707
1863
|
);
|
|
1708
1864
|
this.body = body;
|
|
1709
|
-
this.name = "
|
|
1865
|
+
this.name = "ShutdownFailedError";
|
|
1710
1866
|
}
|
|
1711
|
-
static code = "
|
|
1867
|
+
static code = "SHUTDOWN_FAILED";
|
|
1712
1868
|
static statusCode = 500;
|
|
1713
|
-
static description = `Failed to
|
|
1869
|
+
static description = `Failed to shutdown dev server: {message}`;
|
|
1714
1870
|
}
|
|
1715
|
-
class
|
|
1871
|
+
class CommitFailedError extends Error {
|
|
1716
1872
|
constructor(body) {
|
|
1717
1873
|
super(
|
|
1718
|
-
`
|
|
1874
|
+
`COMMIT_FAILED: ${body.message}`
|
|
1719
1875
|
);
|
|
1720
1876
|
this.body = body;
|
|
1721
|
-
this.name = "
|
|
1877
|
+
this.name = "CommitFailedError";
|
|
1722
1878
|
}
|
|
1723
|
-
static code = "
|
|
1879
|
+
static code = "COMMIT_FAILED";
|
|
1724
1880
|
static statusCode = 500;
|
|
1725
|
-
static description = `Failed to
|
|
1881
|
+
static description = `Failed to commit changes: {message}`;
|
|
1726
1882
|
}
|
|
1727
|
-
class
|
|
1883
|
+
class WriteFileFailedError extends Error {
|
|
1728
1884
|
constructor(body) {
|
|
1729
1885
|
super(
|
|
1730
|
-
`
|
|
1886
|
+
`WRITE_FILE_FAILED: ${body.message}`
|
|
1731
1887
|
);
|
|
1732
1888
|
this.body = body;
|
|
1733
|
-
this.name = "
|
|
1889
|
+
this.name = "WriteFileFailedError";
|
|
1734
1890
|
}
|
|
1735
|
-
static code = "
|
|
1891
|
+
static code = "WRITE_FILE_FAILED";
|
|
1736
1892
|
static statusCode = 500;
|
|
1737
|
-
static description = `Failed to
|
|
1893
|
+
static description = `Failed to write file: {message}`;
|
|
1738
1894
|
}
|
|
1739
|
-
class
|
|
1895
|
+
class ReadFileFailedError extends Error {
|
|
1740
1896
|
constructor(body) {
|
|
1741
1897
|
super(
|
|
1742
|
-
`
|
|
1898
|
+
`READ_FILE_FAILED: ${body.message}`
|
|
1743
1899
|
);
|
|
1744
1900
|
this.body = body;
|
|
1745
|
-
this.name = "
|
|
1901
|
+
this.name = "ReadFileFailedError";
|
|
1746
1902
|
}
|
|
1747
|
-
static code = "
|
|
1903
|
+
static code = "READ_FILE_FAILED";
|
|
1748
1904
|
static statusCode = 500;
|
|
1749
|
-
static description = `Failed to
|
|
1905
|
+
static description = `Failed to read file: {message}`;
|
|
1750
1906
|
}
|
|
1751
|
-
class
|
|
1907
|
+
class ExecutionFailedError extends Error {
|
|
1752
1908
|
constructor(body) {
|
|
1753
1909
|
super(
|
|
1754
|
-
`
|
|
1910
|
+
`EXECUTION_FAILED: ${body.message}`
|
|
1755
1911
|
);
|
|
1756
1912
|
this.body = body;
|
|
1757
|
-
this.name = "
|
|
1913
|
+
this.name = "ExecutionFailedError";
|
|
1758
1914
|
}
|
|
1759
|
-
static code = "
|
|
1760
|
-
static statusCode =
|
|
1761
|
-
static description = `
|
|
1915
|
+
static code = "EXECUTION_FAILED";
|
|
1916
|
+
static statusCode = 500;
|
|
1917
|
+
static description = `Failed to execute command: {message}`;
|
|
1762
1918
|
}
|
|
1763
|
-
class
|
|
1919
|
+
class RequestFailedError extends Error {
|
|
1764
1920
|
constructor(body) {
|
|
1765
1921
|
super(
|
|
1766
|
-
`
|
|
1922
|
+
`REQUEST_FAILED: ${body.message}`
|
|
1767
1923
|
);
|
|
1768
1924
|
this.body = body;
|
|
1769
|
-
this.name = "
|
|
1925
|
+
this.name = "RequestFailedError";
|
|
1770
1926
|
}
|
|
1771
|
-
static code = "
|
|
1772
|
-
static statusCode =
|
|
1773
|
-
static description = `
|
|
1927
|
+
static code = "REQUEST_FAILED";
|
|
1928
|
+
static statusCode = 500;
|
|
1929
|
+
static description = `Failed to request dev server: {message}`;
|
|
1774
1930
|
}
|
|
1775
|
-
class
|
|
1931
|
+
class DevServerFileNotFoundError extends Error {
|
|
1776
1932
|
constructor(body) {
|
|
1777
1933
|
super(
|
|
1778
|
-
`
|
|
1934
|
+
`DEV_SERVER_FILE_NOT_FOUND: ${body.message}`
|
|
1779
1935
|
);
|
|
1780
1936
|
this.body = body;
|
|
1781
|
-
this.name = "
|
|
1937
|
+
this.name = "DevServerFileNotFoundError";
|
|
1782
1938
|
}
|
|
1783
|
-
static code = "
|
|
1784
|
-
static statusCode =
|
|
1785
|
-
static description = `
|
|
1939
|
+
static code = "DEV_SERVER_FILE_NOT_FOUND";
|
|
1940
|
+
static statusCode = 404;
|
|
1941
|
+
static description = `Dev server file not found: {path}`;
|
|
1786
1942
|
}
|
|
1787
|
-
class
|
|
1943
|
+
class DevServerInvalidRequestError extends Error {
|
|
1788
1944
|
constructor(body) {
|
|
1789
1945
|
super(
|
|
1790
|
-
`
|
|
1946
|
+
`DEV_SERVER_INVALID_REQUEST: ${body.message}`
|
|
1791
1947
|
);
|
|
1792
1948
|
this.body = body;
|
|
1793
|
-
this.name = "
|
|
1949
|
+
this.name = "DevServerInvalidRequestError";
|
|
1794
1950
|
}
|
|
1795
|
-
static code = "
|
|
1796
|
-
static statusCode =
|
|
1797
|
-
static description = `
|
|
1951
|
+
static code = "DEV_SERVER_INVALID_REQUEST";
|
|
1952
|
+
static statusCode = 400;
|
|
1953
|
+
static description = `Invalid dev server request: {message}`;
|
|
1798
1954
|
}
|
|
1799
|
-
class
|
|
1955
|
+
class DevServerNotFoundError extends Error {
|
|
1800
1956
|
constructor(body) {
|
|
1801
1957
|
super(
|
|
1802
|
-
`
|
|
1958
|
+
`DEV_SERVER_NOT_FOUND: ${body.message}`
|
|
1803
1959
|
);
|
|
1804
1960
|
this.body = body;
|
|
1805
|
-
this.name = "
|
|
1961
|
+
this.name = "DevServerNotFoundError";
|
|
1806
1962
|
}
|
|
1807
|
-
static code = "
|
|
1963
|
+
static code = "DEV_SERVER_NOT_FOUND";
|
|
1808
1964
|
static statusCode = 404;
|
|
1809
|
-
static description = `
|
|
1965
|
+
static description = `Dev server not found: {server_id}`;
|
|
1810
1966
|
}
|
|
1811
|
-
class
|
|
1967
|
+
class BuildFailedError extends Error {
|
|
1812
1968
|
constructor(body) {
|
|
1813
1969
|
super(
|
|
1814
|
-
`
|
|
1970
|
+
`BUILD_FAILED: ${body.message}`
|
|
1815
1971
|
);
|
|
1816
1972
|
this.body = body;
|
|
1817
|
-
this.name = "
|
|
1973
|
+
this.name = "BuildFailedError";
|
|
1818
1974
|
}
|
|
1819
|
-
static code = "
|
|
1820
|
-
static statusCode =
|
|
1821
|
-
static description = `
|
|
1975
|
+
static code = "BUILD_FAILED";
|
|
1976
|
+
static statusCode = 500;
|
|
1977
|
+
static description = `Build failed on VM {vm_id}`;
|
|
1822
1978
|
}
|
|
1823
|
-
class
|
|
1979
|
+
class ServerDeploymentFailedError extends Error {
|
|
1824
1980
|
constructor(body) {
|
|
1825
1981
|
super(
|
|
1826
|
-
`
|
|
1982
|
+
`SERVER_DEPLOYMENT_FAILED: ${body.message}`
|
|
1827
1983
|
);
|
|
1828
1984
|
this.body = body;
|
|
1829
|
-
this.name = "
|
|
1985
|
+
this.name = "ServerDeploymentFailedError";
|
|
1830
1986
|
}
|
|
1831
|
-
static code = "
|
|
1832
|
-
static statusCode =
|
|
1833
|
-
static description = `
|
|
1987
|
+
static code = "SERVER_DEPLOYMENT_FAILED";
|
|
1988
|
+
static statusCode = 502;
|
|
1989
|
+
static description = `Failed to deploy to servers`;
|
|
1834
1990
|
}
|
|
1835
|
-
class
|
|
1991
|
+
class LockfileErrorError extends Error {
|
|
1836
1992
|
constructor(body) {
|
|
1837
1993
|
super(
|
|
1838
|
-
`
|
|
1994
|
+
`LOCKFILE_ERROR: ${body.message}`
|
|
1839
1995
|
);
|
|
1840
1996
|
this.body = body;
|
|
1841
|
-
this.name = "
|
|
1997
|
+
this.name = "LockfileErrorError";
|
|
1842
1998
|
}
|
|
1843
|
-
static code = "
|
|
1844
|
-
static statusCode =
|
|
1845
|
-
static description = `
|
|
1999
|
+
static code = "LOCKFILE_ERROR";
|
|
2000
|
+
static statusCode = 500;
|
|
2001
|
+
static description = `Failed to generate dependency lockfile: {message}`;
|
|
1846
2002
|
}
|
|
1847
|
-
class
|
|
2003
|
+
class UploadErrorError extends Error {
|
|
1848
2004
|
constructor(body) {
|
|
1849
2005
|
super(
|
|
1850
|
-
`
|
|
2006
|
+
`UPLOAD_ERROR: ${body.message}`
|
|
1851
2007
|
);
|
|
1852
2008
|
this.body = body;
|
|
1853
|
-
this.name = "
|
|
2009
|
+
this.name = "UploadErrorError";
|
|
1854
2010
|
}
|
|
1855
|
-
static code = "
|
|
1856
|
-
static statusCode =
|
|
1857
|
-
static description = `
|
|
2011
|
+
static code = "UPLOAD_ERROR";
|
|
2012
|
+
static statusCode = 500;
|
|
2013
|
+
static description = `Failed to upload deployment to storage`;
|
|
1858
2014
|
}
|
|
1859
|
-
class
|
|
2015
|
+
class DomainMappingErrorError extends Error {
|
|
1860
2016
|
constructor(body) {
|
|
1861
2017
|
super(
|
|
1862
|
-
`
|
|
2018
|
+
`DOMAIN_MAPPING_ERROR: ${body.message}`
|
|
1863
2019
|
);
|
|
1864
2020
|
this.body = body;
|
|
1865
|
-
this.name = "
|
|
2021
|
+
this.name = "DomainMappingErrorError";
|
|
1866
2022
|
}
|
|
1867
|
-
static code = "
|
|
2023
|
+
static code = "DOMAIN_MAPPING_ERROR";
|
|
1868
2024
|
static statusCode = 500;
|
|
1869
|
-
static description = `
|
|
2025
|
+
static description = `Failed to configure domain mapping for: {domain}`;
|
|
1870
2026
|
}
|
|
1871
|
-
class
|
|
2027
|
+
class CertificateProvisioningErrorError extends Error {
|
|
1872
2028
|
constructor(body) {
|
|
1873
2029
|
super(
|
|
1874
|
-
`
|
|
2030
|
+
`CERTIFICATE_PROVISIONING_ERROR: ${body.message}`
|
|
1875
2031
|
);
|
|
1876
2032
|
this.body = body;
|
|
1877
|
-
this.name = "
|
|
2033
|
+
this.name = "CertificateProvisioningErrorError";
|
|
1878
2034
|
}
|
|
1879
|
-
static code = "
|
|
1880
|
-
static statusCode =
|
|
1881
|
-
static description = `
|
|
2035
|
+
static code = "CERTIFICATE_PROVISIONING_ERROR";
|
|
2036
|
+
static statusCode = 502;
|
|
2037
|
+
static description = `Failed to provision certificate for domain: {domain}`;
|
|
1882
2038
|
}
|
|
1883
|
-
class
|
|
2039
|
+
class NoEntrypointFoundError extends Error {
|
|
1884
2040
|
constructor(body) {
|
|
1885
2041
|
super(
|
|
1886
|
-
`
|
|
2042
|
+
`NO_ENTRYPOINT_FOUND: ${body.message}`
|
|
1887
2043
|
);
|
|
1888
2044
|
this.body = body;
|
|
1889
|
-
this.name = "
|
|
2045
|
+
this.name = "NoEntrypointFoundError";
|
|
1890
2046
|
}
|
|
1891
|
-
static code = "
|
|
1892
|
-
static statusCode =
|
|
1893
|
-
static description = `
|
|
2047
|
+
static code = "NO_ENTRYPOINT_FOUND";
|
|
2048
|
+
static statusCode = 400;
|
|
2049
|
+
static description = `No entrypoint found in deployment`;
|
|
1894
2050
|
}
|
|
1895
|
-
class
|
|
2051
|
+
class EntrypointNotFoundError extends Error {
|
|
1896
2052
|
constructor(body) {
|
|
1897
2053
|
super(
|
|
1898
|
-
`
|
|
2054
|
+
`ENTRYPOINT_NOT_FOUND: ${body.message}`
|
|
1899
2055
|
);
|
|
1900
2056
|
this.body = body;
|
|
1901
|
-
this.name = "
|
|
2057
|
+
this.name = "EntrypointNotFoundError";
|
|
1902
2058
|
}
|
|
1903
|
-
static code = "
|
|
1904
|
-
static statusCode =
|
|
1905
|
-
static description = `
|
|
2059
|
+
static code = "ENTRYPOINT_NOT_FOUND";
|
|
2060
|
+
static statusCode = 400;
|
|
2061
|
+
static description = `Entrypoint not found: {entrypoint}`;
|
|
1906
2062
|
}
|
|
1907
|
-
class
|
|
2063
|
+
class NoDomainOwnershipError extends Error {
|
|
1908
2064
|
constructor(body) {
|
|
1909
2065
|
super(
|
|
1910
|
-
`
|
|
2066
|
+
`NO_DOMAIN_OWNERSHIP: ${body.message}`
|
|
1911
2067
|
);
|
|
1912
2068
|
this.body = body;
|
|
1913
|
-
this.name = "
|
|
2069
|
+
this.name = "NoDomainOwnershipError";
|
|
1914
2070
|
}
|
|
1915
|
-
static code = "
|
|
1916
|
-
static statusCode =
|
|
1917
|
-
static description = `
|
|
2071
|
+
static code = "NO_DOMAIN_OWNERSHIP";
|
|
2072
|
+
static statusCode = 403;
|
|
2073
|
+
static description = `No domain ownership for: {domain}`;
|
|
1918
2074
|
}
|
|
1919
|
-
class
|
|
2075
|
+
class InvalidDomainsError extends Error {
|
|
1920
2076
|
constructor(body) {
|
|
1921
2077
|
super(
|
|
1922
|
-
`
|
|
2078
|
+
`INVALID_DOMAINS: ${body.message}`
|
|
1923
2079
|
);
|
|
1924
2080
|
this.body = body;
|
|
1925
|
-
this.name = "
|
|
2081
|
+
this.name = "InvalidDomainsError";
|
|
1926
2082
|
}
|
|
1927
|
-
static code = "
|
|
1928
|
-
static statusCode =
|
|
1929
|
-
static description = `
|
|
2083
|
+
static code = "INVALID_DOMAINS";
|
|
2084
|
+
static statusCode = 400;
|
|
2085
|
+
static description = `Invalid domains provided`;
|
|
1930
2086
|
}
|
|
1931
|
-
class
|
|
2087
|
+
class WebDeploymentBadRequestError extends Error {
|
|
1932
2088
|
constructor(body) {
|
|
1933
2089
|
super(
|
|
1934
|
-
`
|
|
2090
|
+
`WEB_DEPLOYMENT_BAD_REQUEST: ${body.message}`
|
|
1935
2091
|
);
|
|
1936
2092
|
this.body = body;
|
|
1937
|
-
this.name = "
|
|
2093
|
+
this.name = "WebDeploymentBadRequestError";
|
|
1938
2094
|
}
|
|
1939
|
-
static code = "
|
|
1940
|
-
static statusCode =
|
|
1941
|
-
static description = `
|
|
2095
|
+
static code = "WEB_DEPLOYMENT_BAD_REQUEST";
|
|
2096
|
+
static statusCode = 400;
|
|
2097
|
+
static description = `Bad request: {message}`;
|
|
1942
2098
|
}
|
|
1943
|
-
class
|
|
2099
|
+
class DeploymentNotFoundError extends Error {
|
|
1944
2100
|
constructor(body) {
|
|
1945
2101
|
super(
|
|
1946
|
-
`
|
|
2102
|
+
`DEPLOYMENT_NOT_FOUND: ${body.message}`
|
|
1947
2103
|
);
|
|
1948
2104
|
this.body = body;
|
|
1949
|
-
this.name = "
|
|
2105
|
+
this.name = "DeploymentNotFoundError";
|
|
1950
2106
|
}
|
|
1951
|
-
static code = "
|
|
1952
|
-
static statusCode =
|
|
1953
|
-
static description = `
|
|
2107
|
+
static code = "DEPLOYMENT_NOT_FOUND";
|
|
2108
|
+
static statusCode = 404;
|
|
2109
|
+
static description = `Deployment not found`;
|
|
1954
2110
|
}
|
|
1955
|
-
class
|
|
2111
|
+
class DatabaseErrorError extends Error {
|
|
1956
2112
|
constructor(body) {
|
|
1957
2113
|
super(
|
|
1958
|
-
`
|
|
2114
|
+
`DATABASE_ERROR: ${body.message}`
|
|
1959
2115
|
);
|
|
1960
2116
|
this.body = body;
|
|
1961
|
-
this.name = "
|
|
2117
|
+
this.name = "DatabaseErrorError";
|
|
1962
2118
|
}
|
|
1963
|
-
static code = "
|
|
2119
|
+
static code = "DATABASE_ERROR";
|
|
1964
2120
|
static statusCode = 500;
|
|
1965
|
-
static description = `
|
|
2121
|
+
static description = `Database operation failed: {message}`;
|
|
1966
2122
|
}
|
|
1967
|
-
class
|
|
2123
|
+
class TriggerErrorError extends Error {
|
|
1968
2124
|
constructor(body) {
|
|
1969
2125
|
super(
|
|
1970
|
-
`
|
|
2126
|
+
`TRIGGER_ERROR: ${body.message}`
|
|
1971
2127
|
);
|
|
1972
2128
|
this.body = body;
|
|
1973
|
-
this.name = "
|
|
2129
|
+
this.name = "TriggerErrorError";
|
|
1974
2130
|
}
|
|
1975
|
-
static code = "
|
|
2131
|
+
static code = "TRIGGER_ERROR";
|
|
1976
2132
|
static statusCode = 500;
|
|
1977
|
-
static description = `Failed to
|
|
2133
|
+
static description = `Failed to manage triggers: {message}`;
|
|
1978
2134
|
}
|
|
1979
|
-
class
|
|
2135
|
+
class TokenErrorError extends Error {
|
|
1980
2136
|
constructor(body) {
|
|
1981
2137
|
super(
|
|
1982
|
-
`
|
|
2138
|
+
`TOKEN_ERROR: ${body.message}`
|
|
1983
2139
|
);
|
|
1984
2140
|
this.body = body;
|
|
1985
|
-
this.name = "
|
|
2141
|
+
this.name = "TokenErrorError";
|
|
1986
2142
|
}
|
|
1987
|
-
static code = "
|
|
2143
|
+
static code = "TOKEN_ERROR";
|
|
1988
2144
|
static statusCode = 500;
|
|
1989
|
-
static description = `Failed to
|
|
2145
|
+
static description = `Failed to manage tokens: {message}`;
|
|
1990
2146
|
}
|
|
1991
|
-
class
|
|
2147
|
+
class PermissionErrorError extends Error {
|
|
1992
2148
|
constructor(body) {
|
|
1993
2149
|
super(
|
|
1994
|
-
`
|
|
2150
|
+
`PERMISSION_ERROR: ${body.message}`
|
|
1995
2151
|
);
|
|
1996
2152
|
this.body = body;
|
|
1997
|
-
this.name = "
|
|
2153
|
+
this.name = "PermissionErrorError";
|
|
1998
2154
|
}
|
|
1999
|
-
static code = "
|
|
2155
|
+
static code = "PERMISSION_ERROR";
|
|
2000
2156
|
static statusCode = 500;
|
|
2001
|
-
static description = `Failed to
|
|
2157
|
+
static description = `Failed to manage permissions: {message}`;
|
|
2002
2158
|
}
|
|
2003
|
-
class
|
|
2159
|
+
class IdentityErrorError extends Error {
|
|
2004
2160
|
constructor(body) {
|
|
2005
2161
|
super(
|
|
2006
|
-
`
|
|
2162
|
+
`IDENTITY_ERROR: ${body.message}`
|
|
2007
2163
|
);
|
|
2008
2164
|
this.body = body;
|
|
2009
|
-
this.name = "
|
|
2165
|
+
this.name = "IdentityErrorError";
|
|
2010
2166
|
}
|
|
2011
|
-
static code = "
|
|
2167
|
+
static code = "IDENTITY_ERROR";
|
|
2012
2168
|
static statusCode = 500;
|
|
2013
|
-
static description = `Failed to
|
|
2169
|
+
static description = `Failed to manage identity: {message}`;
|
|
2014
2170
|
}
|
|
2015
|
-
class
|
|
2171
|
+
class GetContentFailedError extends Error {
|
|
2016
2172
|
constructor(body) {
|
|
2017
2173
|
super(
|
|
2018
|
-
`
|
|
2174
|
+
`GET_CONTENT_FAILED: ${body.message}`
|
|
2019
2175
|
);
|
|
2020
2176
|
this.body = body;
|
|
2021
|
-
this.name = "
|
|
2177
|
+
this.name = "GetContentFailedError";
|
|
2022
2178
|
}
|
|
2023
|
-
static code = "
|
|
2024
|
-
static statusCode =
|
|
2025
|
-
static description = `
|
|
2179
|
+
static code = "GET_CONTENT_FAILED";
|
|
2180
|
+
static statusCode = 500;
|
|
2181
|
+
static description = `Failed to get content: {message}`;
|
|
2026
2182
|
}
|
|
2027
|
-
class
|
|
2183
|
+
class ContentNotFoundError extends Error {
|
|
2028
2184
|
constructor(body) {
|
|
2029
2185
|
super(
|
|
2030
|
-
`
|
|
2186
|
+
`CONTENT_NOT_FOUND: ${body.message}`
|
|
2031
2187
|
);
|
|
2032
2188
|
this.body = body;
|
|
2033
|
-
this.name = "
|
|
2189
|
+
this.name = "ContentNotFoundError";
|
|
2034
2190
|
}
|
|
2035
|
-
static code = "
|
|
2036
|
-
static statusCode =
|
|
2037
|
-
static description = `
|
|
2191
|
+
static code = "CONTENT_NOT_FOUND";
|
|
2192
|
+
static statusCode = 404;
|
|
2193
|
+
static description = `Content not found: {path}`;
|
|
2038
2194
|
}
|
|
2039
|
-
class
|
|
2195
|
+
class DownloadFailedError extends Error {
|
|
2040
2196
|
constructor(body) {
|
|
2041
2197
|
super(
|
|
2042
|
-
`
|
|
2198
|
+
`DOWNLOAD_FAILED: ${body.message}`
|
|
2043
2199
|
);
|
|
2044
2200
|
this.body = body;
|
|
2045
|
-
this.name = "
|
|
2201
|
+
this.name = "DownloadFailedError";
|
|
2046
2202
|
}
|
|
2047
|
-
static code = "
|
|
2203
|
+
static code = "DOWNLOAD_FAILED";
|
|
2048
2204
|
static statusCode = 500;
|
|
2049
|
-
static description = `
|
|
2205
|
+
static description = `Failed to download repository: {message}`;
|
|
2050
2206
|
}
|
|
2051
|
-
class
|
|
2207
|
+
class GitServerErrorError extends Error {
|
|
2052
2208
|
constructor(body) {
|
|
2053
2209
|
super(
|
|
2054
|
-
`
|
|
2210
|
+
`GIT_SERVER_ERROR: ${body.message}`
|
|
2055
2211
|
);
|
|
2056
2212
|
this.body = body;
|
|
2057
|
-
this.name = "
|
|
2213
|
+
this.name = "GitServerErrorError";
|
|
2058
2214
|
}
|
|
2059
|
-
static code = "
|
|
2060
|
-
static statusCode =
|
|
2061
|
-
static description = `
|
|
2215
|
+
static code = "GIT_SERVER_ERROR";
|
|
2216
|
+
static statusCode = 500;
|
|
2217
|
+
static description = `Git server error: {message}`;
|
|
2062
2218
|
}
|
|
2063
|
-
class
|
|
2219
|
+
class ParseResponseErrorError extends Error {
|
|
2064
2220
|
constructor(body) {
|
|
2065
2221
|
super(
|
|
2066
|
-
`
|
|
2222
|
+
`PARSE_RESPONSE_ERROR: ${body.message}`
|
|
2067
2223
|
);
|
|
2068
2224
|
this.body = body;
|
|
2069
|
-
this.name = "
|
|
2225
|
+
this.name = "ParseResponseErrorError";
|
|
2070
2226
|
}
|
|
2071
|
-
static code = "
|
|
2227
|
+
static code = "PARSE_RESPONSE_ERROR";
|
|
2072
2228
|
static statusCode = 500;
|
|
2073
|
-
static description = `Failed to
|
|
2229
|
+
static description = `Failed to parse response from Git server: {message}`;
|
|
2074
2230
|
}
|
|
2075
|
-
class
|
|
2231
|
+
class RepositoryAccessDeniedError extends Error {
|
|
2076
2232
|
constructor(body) {
|
|
2077
2233
|
super(
|
|
2078
|
-
`
|
|
2234
|
+
`REPOSITORY_ACCESS_DENIED: ${body.message}`
|
|
2079
2235
|
);
|
|
2080
2236
|
this.body = body;
|
|
2081
|
-
this.name = "
|
|
2237
|
+
this.name = "RepositoryAccessDeniedError";
|
|
2082
2238
|
}
|
|
2083
|
-
static code = "
|
|
2084
|
-
static statusCode =
|
|
2085
|
-
static description = `
|
|
2239
|
+
static code = "REPOSITORY_ACCESS_DENIED";
|
|
2240
|
+
static statusCode = 403;
|
|
2241
|
+
static description = `Repository does not belong to account`;
|
|
2086
2242
|
}
|
|
2087
|
-
class
|
|
2243
|
+
class GitHubSyncFailedError extends Error {
|
|
2088
2244
|
constructor(body) {
|
|
2089
2245
|
super(
|
|
2090
|
-
`
|
|
2246
|
+
`GIT_HUB_SYNC_FAILED: ${body.message}`
|
|
2091
2247
|
);
|
|
2092
2248
|
this.body = body;
|
|
2093
|
-
this.name = "
|
|
2249
|
+
this.name = "GitHubSyncFailedError";
|
|
2094
2250
|
}
|
|
2095
|
-
static code = "
|
|
2251
|
+
static code = "GIT_HUB_SYNC_FAILED";
|
|
2096
2252
|
static statusCode = 500;
|
|
2097
|
-
static description = `
|
|
2253
|
+
static description = `Failed to configure GitHub sync: {message}`;
|
|
2098
2254
|
}
|
|
2099
|
-
class
|
|
2255
|
+
class UpdateDefaultBranchFailedError extends Error {
|
|
2100
2256
|
constructor(body) {
|
|
2101
2257
|
super(
|
|
2102
|
-
`
|
|
2258
|
+
`UPDATE_DEFAULT_BRANCH_FAILED: ${body.message}`
|
|
2103
2259
|
);
|
|
2104
2260
|
this.body = body;
|
|
2105
|
-
this.name = "
|
|
2261
|
+
this.name = "UpdateDefaultBranchFailedError";
|
|
2106
2262
|
}
|
|
2107
|
-
static code = "
|
|
2263
|
+
static code = "UPDATE_DEFAULT_BRANCH_FAILED";
|
|
2108
2264
|
static statusCode = 500;
|
|
2109
|
-
static description = `
|
|
2265
|
+
static description = `Failed to update default branch: {message}`;
|
|
2110
2266
|
}
|
|
2111
|
-
class
|
|
2267
|
+
class GetRepositoryInfoFailedError extends Error {
|
|
2112
2268
|
constructor(body) {
|
|
2113
2269
|
super(
|
|
2114
|
-
`
|
|
2270
|
+
`GET_REPOSITORY_INFO_FAILED: ${body.message}`
|
|
2115
2271
|
);
|
|
2116
2272
|
this.body = body;
|
|
2117
|
-
this.name = "
|
|
2273
|
+
this.name = "GetRepositoryInfoFailedError";
|
|
2118
2274
|
}
|
|
2119
|
-
static code = "
|
|
2120
|
-
static statusCode =
|
|
2121
|
-
static description = `
|
|
2275
|
+
static code = "GET_REPOSITORY_INFO_FAILED";
|
|
2276
|
+
static statusCode = 500;
|
|
2277
|
+
static description = `Failed to get repository info: {message}`;
|
|
2122
2278
|
}
|
|
2123
|
-
class
|
|
2279
|
+
class ListRepositoriesFailedError extends Error {
|
|
2124
2280
|
constructor(body) {
|
|
2125
2281
|
super(
|
|
2126
|
-
`
|
|
2282
|
+
`LIST_REPOSITORIES_FAILED: ${body.message}`
|
|
2127
2283
|
);
|
|
2128
2284
|
this.body = body;
|
|
2129
|
-
this.name = "
|
|
2285
|
+
this.name = "ListRepositoriesFailedError";
|
|
2130
2286
|
}
|
|
2131
|
-
static code = "
|
|
2132
|
-
static statusCode =
|
|
2133
|
-
static description = `
|
|
2287
|
+
static code = "LIST_REPOSITORIES_FAILED";
|
|
2288
|
+
static statusCode = 500;
|
|
2289
|
+
static description = `Failed to list repositories: {message}`;
|
|
2134
2290
|
}
|
|
2135
|
-
class
|
|
2291
|
+
class DeleteRepositoryFailedError extends Error {
|
|
2136
2292
|
constructor(body) {
|
|
2137
2293
|
super(
|
|
2138
|
-
`
|
|
2294
|
+
`DELETE_REPOSITORY_FAILED: ${body.message}`
|
|
2139
2295
|
);
|
|
2140
2296
|
this.body = body;
|
|
2141
|
-
this.name = "
|
|
2297
|
+
this.name = "DeleteRepositoryFailedError";
|
|
2142
2298
|
}
|
|
2143
|
-
static code = "
|
|
2299
|
+
static code = "DELETE_REPOSITORY_FAILED";
|
|
2144
2300
|
static statusCode = 500;
|
|
2145
|
-
static description = `Failed to
|
|
2301
|
+
static description = `Failed to delete repository: {message}`;
|
|
2146
2302
|
}
|
|
2147
|
-
class
|
|
2303
|
+
class CreateRepositoryFailedError extends Error {
|
|
2148
2304
|
constructor(body) {
|
|
2149
2305
|
super(
|
|
2150
|
-
`
|
|
2306
|
+
`CREATE_REPOSITORY_FAILED: ${body.message}`
|
|
2151
2307
|
);
|
|
2152
2308
|
this.body = body;
|
|
2153
|
-
this.name = "
|
|
2309
|
+
this.name = "CreateRepositoryFailedError";
|
|
2154
2310
|
}
|
|
2155
|
-
static code = "
|
|
2156
|
-
static statusCode =
|
|
2157
|
-
static description = `
|
|
2311
|
+
static code = "CREATE_REPOSITORY_FAILED";
|
|
2312
|
+
static statusCode = 500;
|
|
2313
|
+
static description = `Failed to create repository: {message}`;
|
|
2158
2314
|
}
|
|
2159
|
-
class
|
|
2315
|
+
class SerializationErrorError extends Error {
|
|
2160
2316
|
constructor(body) {
|
|
2161
2317
|
super(
|
|
2162
|
-
`
|
|
2318
|
+
`SERIALIZATION_ERROR: ${body.message}`
|
|
2163
2319
|
);
|
|
2164
2320
|
this.body = body;
|
|
2165
|
-
this.name = "
|
|
2321
|
+
this.name = "SerializationErrorError";
|
|
2166
2322
|
}
|
|
2167
|
-
static code = "
|
|
2168
|
-
static statusCode =
|
|
2169
|
-
static description = `
|
|
2323
|
+
static code = "SERIALIZATION_ERROR";
|
|
2324
|
+
static statusCode = 400;
|
|
2325
|
+
static description = `Failed to serialize request: {message}`;
|
|
2170
2326
|
}
|
|
2171
|
-
class
|
|
2327
|
+
class GitInvalidRequestError extends Error {
|
|
2172
2328
|
constructor(body) {
|
|
2173
2329
|
super(
|
|
2174
|
-
`
|
|
2330
|
+
`GIT_INVALID_REQUEST: ${body.message}`
|
|
2175
2331
|
);
|
|
2176
2332
|
this.body = body;
|
|
2177
|
-
this.name = "
|
|
2333
|
+
this.name = "GitInvalidRequestError";
|
|
2178
2334
|
}
|
|
2179
|
-
static code = "
|
|
2180
|
-
static statusCode =
|
|
2181
|
-
static description = `
|
|
2335
|
+
static code = "GIT_INVALID_REQUEST";
|
|
2336
|
+
static statusCode = 400;
|
|
2337
|
+
static description = `Invalid request: {message}`;
|
|
2182
2338
|
}
|
|
2183
|
-
class
|
|
2339
|
+
class RepositoryNotFoundError extends Error {
|
|
2184
2340
|
constructor(body) {
|
|
2185
2341
|
super(
|
|
2186
|
-
`
|
|
2342
|
+
`REPOSITORY_NOT_FOUND: ${body.message}`
|
|
2187
2343
|
);
|
|
2188
2344
|
this.body = body;
|
|
2189
|
-
this.name = "
|
|
2345
|
+
this.name = "RepositoryNotFoundError";
|
|
2190
2346
|
}
|
|
2191
|
-
static code = "
|
|
2192
|
-
static statusCode =
|
|
2193
|
-
static description = `
|
|
2347
|
+
static code = "REPOSITORY_NOT_FOUND";
|
|
2348
|
+
static statusCode = 404;
|
|
2349
|
+
static description = `Repository not found: {repo_id}`;
|
|
2194
2350
|
}
|
|
2195
|
-
class
|
|
2351
|
+
class DomainAlreadyExistsError extends Error {
|
|
2196
2352
|
constructor(body) {
|
|
2197
2353
|
super(
|
|
2198
|
-
`
|
|
2354
|
+
`DOMAIN_ALREADY_EXISTS: ${body.message}`
|
|
2199
2355
|
);
|
|
2200
2356
|
this.body = body;
|
|
2201
|
-
this.name = "
|
|
2357
|
+
this.name = "DomainAlreadyExistsError";
|
|
2202
2358
|
}
|
|
2203
|
-
static code = "
|
|
2204
|
-
static statusCode =
|
|
2205
|
-
static description = `
|
|
2359
|
+
static code = "DOMAIN_ALREADY_EXISTS";
|
|
2360
|
+
static statusCode = 400;
|
|
2361
|
+
static description = `Domain already exists: {domain}`;
|
|
2206
2362
|
}
|
|
2207
|
-
class
|
|
2363
|
+
class FailedToInsertOwnershipError extends Error {
|
|
2208
2364
|
constructor(body) {
|
|
2209
2365
|
super(
|
|
2210
|
-
`
|
|
2366
|
+
`FAILED_TO_INSERT_OWNERSHIP: ${body.message}`
|
|
2211
2367
|
);
|
|
2212
2368
|
this.body = body;
|
|
2213
|
-
this.name = "
|
|
2369
|
+
this.name = "FailedToInsertOwnershipError";
|
|
2214
2370
|
}
|
|
2215
|
-
static code = "
|
|
2216
|
-
static statusCode =
|
|
2217
|
-
static description = `
|
|
2371
|
+
static code = "FAILED_TO_INSERT_OWNERSHIP";
|
|
2372
|
+
static statusCode = 500;
|
|
2373
|
+
static description = `Failed to insert domain ownership: {message}`;
|
|
2218
2374
|
}
|
|
2219
|
-
class
|
|
2375
|
+
class FailedRemoveDomainMappingError extends Error {
|
|
2220
2376
|
constructor(body) {
|
|
2221
2377
|
super(
|
|
2222
|
-
`
|
|
2378
|
+
`FAILED_REMOVE_DOMAIN_MAPPING: ${body.message}`
|
|
2223
2379
|
);
|
|
2224
2380
|
this.body = body;
|
|
2225
|
-
this.name = "
|
|
2381
|
+
this.name = "FailedRemoveDomainMappingError";
|
|
2226
2382
|
}
|
|
2227
|
-
static code = "
|
|
2383
|
+
static code = "FAILED_REMOVE_DOMAIN_MAPPING";
|
|
2228
2384
|
static statusCode = 500;
|
|
2229
|
-
static description = `
|
|
2385
|
+
static description = `Failed to remove domain mapping: {message}`;
|
|
2230
2386
|
}
|
|
2231
|
-
class
|
|
2387
|
+
class FailedPermissionsCheckError extends Error {
|
|
2232
2388
|
constructor(body) {
|
|
2233
2389
|
super(
|
|
2234
|
-
`
|
|
2390
|
+
`FAILED_PERMISSIONS_CHECK: ${body.message}`
|
|
2235
2391
|
);
|
|
2236
2392
|
this.body = body;
|
|
2237
|
-
this.name = "
|
|
2393
|
+
this.name = "FailedPermissionsCheckError";
|
|
2238
2394
|
}
|
|
2239
|
-
static code = "
|
|
2240
|
-
static statusCode =
|
|
2241
|
-
static description = `
|
|
2395
|
+
static code = "FAILED_PERMISSIONS_CHECK";
|
|
2396
|
+
static statusCode = 401;
|
|
2397
|
+
static description = `You do not have permission to delete the domain mapping for: {domain}`;
|
|
2242
2398
|
}
|
|
2243
|
-
class
|
|
2399
|
+
class FailedToCheckDomainMappingPermissionsError extends Error {
|
|
2244
2400
|
constructor(body) {
|
|
2245
2401
|
super(
|
|
2246
|
-
`
|
|
2402
|
+
`FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS: ${body.message}`
|
|
2247
2403
|
);
|
|
2248
2404
|
this.body = body;
|
|
2249
|
-
this.name = "
|
|
2405
|
+
this.name = "FailedToCheckDomainMappingPermissionsError";
|
|
2250
2406
|
}
|
|
2251
|
-
static code = "
|
|
2252
|
-
static statusCode =
|
|
2253
|
-
static description = `Failed to
|
|
2407
|
+
static code = "FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS";
|
|
2408
|
+
static statusCode = 502;
|
|
2409
|
+
static description = `Failed to check permissions: {message}`;
|
|
2254
2410
|
}
|
|
2255
|
-
class
|
|
2411
|
+
class CloudstateInternalErrorError extends Error {
|
|
2256
2412
|
constructor(body) {
|
|
2257
2413
|
super(
|
|
2258
|
-
`
|
|
2414
|
+
`CLOUDSTATE_INTERNAL_ERROR: ${body.message}`
|
|
2259
2415
|
);
|
|
2260
2416
|
this.body = body;
|
|
2261
|
-
this.name = "
|
|
2417
|
+
this.name = "CloudstateInternalErrorError";
|
|
2262
2418
|
}
|
|
2263
|
-
static code = "
|
|
2419
|
+
static code = "CLOUDSTATE_INTERNAL_ERROR";
|
|
2264
2420
|
static statusCode = 500;
|
|
2265
|
-
static description = `
|
|
2421
|
+
static description = `Internal error: {message}`;
|
|
2266
2422
|
}
|
|
2267
|
-
class
|
|
2423
|
+
class CloudstateDatabaseErrorError extends Error {
|
|
2268
2424
|
constructor(body) {
|
|
2269
2425
|
super(
|
|
2270
|
-
`
|
|
2426
|
+
`CLOUDSTATE_DATABASE_ERROR: ${body.message}`
|
|
2271
2427
|
);
|
|
2272
2428
|
this.body = body;
|
|
2273
|
-
this.name = "
|
|
2429
|
+
this.name = "CloudstateDatabaseErrorError";
|
|
2274
2430
|
}
|
|
2275
|
-
static code = "
|
|
2431
|
+
static code = "CLOUDSTATE_DATABASE_ERROR";
|
|
2276
2432
|
static statusCode = 500;
|
|
2277
|
-
static description = `
|
|
2433
|
+
static description = `Database operation failed: {message}`;
|
|
2278
2434
|
}
|
|
2279
|
-
class
|
|
2435
|
+
class CloudstateAccessDeniedError extends Error {
|
|
2280
2436
|
constructor(body) {
|
|
2281
2437
|
super(
|
|
2282
|
-
`
|
|
2438
|
+
`CLOUDSTATE_ACCESS_DENIED: ${body.message}`
|
|
2283
2439
|
);
|
|
2284
2440
|
this.body = body;
|
|
2285
|
-
this.name = "
|
|
2286
|
-
}
|
|
2287
|
-
static code = "
|
|
2288
|
-
static statusCode =
|
|
2289
|
-
static description = `
|
|
2441
|
+
this.name = "CloudstateAccessDeniedError";
|
|
2442
|
+
}
|
|
2443
|
+
static code = "CLOUDSTATE_ACCESS_DENIED";
|
|
2444
|
+
static statusCode = 403;
|
|
2445
|
+
static description = `Access denied to project: {project_id}`;
|
|
2290
2446
|
}
|
|
2291
|
-
class
|
|
2447
|
+
class RestoreFailedError extends Error {
|
|
2292
2448
|
constructor(body) {
|
|
2293
2449
|
super(
|
|
2294
|
-
`
|
|
2450
|
+
`RESTORE_FAILED: ${body.message}`
|
|
2295
2451
|
);
|
|
2296
2452
|
this.body = body;
|
|
2297
|
-
this.name = "
|
|
2453
|
+
this.name = "RestoreFailedError";
|
|
2298
2454
|
}
|
|
2299
|
-
static code = "
|
|
2455
|
+
static code = "RESTORE_FAILED";
|
|
2300
2456
|
static statusCode = 500;
|
|
2301
|
-
static description = `Failed to
|
|
2457
|
+
static description = `Failed to restore from backup: {message}`;
|
|
2302
2458
|
}
|
|
2303
|
-
class
|
|
2459
|
+
class CreateBackupFailedError extends Error {
|
|
2304
2460
|
constructor(body) {
|
|
2305
2461
|
super(
|
|
2306
|
-
`
|
|
2462
|
+
`CREATE_BACKUP_FAILED: ${body.message}`
|
|
2307
2463
|
);
|
|
2308
2464
|
this.body = body;
|
|
2309
|
-
this.name = "
|
|
2465
|
+
this.name = "CreateBackupFailedError";
|
|
2310
2466
|
}
|
|
2311
|
-
static code = "
|
|
2467
|
+
static code = "CREATE_BACKUP_FAILED";
|
|
2312
2468
|
static statusCode = 500;
|
|
2313
|
-
static description = `Failed to
|
|
2469
|
+
static description = `Failed to create backup: {message}`;
|
|
2314
2470
|
}
|
|
2315
|
-
class
|
|
2471
|
+
class BackupFailedError extends Error {
|
|
2316
2472
|
constructor(body) {
|
|
2317
2473
|
super(
|
|
2318
|
-
`
|
|
2474
|
+
`BACKUP_FAILED: ${body.message}`
|
|
2319
2475
|
);
|
|
2320
2476
|
this.body = body;
|
|
2321
|
-
this.name = "
|
|
2477
|
+
this.name = "BackupFailedError";
|
|
2322
2478
|
}
|
|
2323
|
-
static code = "
|
|
2479
|
+
static code = "BACKUP_FAILED";
|
|
2324
2480
|
static statusCode = 500;
|
|
2325
|
-
static description = `
|
|
2481
|
+
static description = `Backup failed: {message}`;
|
|
2326
2482
|
}
|
|
2327
|
-
class
|
|
2483
|
+
class DeploymentFailedError extends Error {
|
|
2328
2484
|
constructor(body) {
|
|
2329
2485
|
super(
|
|
2330
|
-
`
|
|
2486
|
+
`DEPLOYMENT_FAILED: ${body.message}`
|
|
2331
2487
|
);
|
|
2332
2488
|
this.body = body;
|
|
2333
|
-
this.name = "
|
|
2489
|
+
this.name = "DeploymentFailedError";
|
|
2334
2490
|
}
|
|
2335
|
-
static code = "
|
|
2491
|
+
static code = "DEPLOYMENT_FAILED";
|
|
2336
2492
|
static statusCode = 500;
|
|
2337
|
-
static description = `
|
|
2493
|
+
static description = `Deployment failed: {message}`;
|
|
2338
2494
|
}
|
|
2339
|
-
class
|
|
2495
|
+
class InvalidDeploymentRequestError extends Error {
|
|
2340
2496
|
constructor(body) {
|
|
2341
2497
|
super(
|
|
2342
|
-
`
|
|
2498
|
+
`INVALID_DEPLOYMENT_REQUEST: ${body.message}`
|
|
2343
2499
|
);
|
|
2344
2500
|
this.body = body;
|
|
2345
|
-
this.name = "
|
|
2501
|
+
this.name = "InvalidDeploymentRequestError";
|
|
2346
2502
|
}
|
|
2347
|
-
static code = "
|
|
2348
|
-
static statusCode =
|
|
2349
|
-
static description = `
|
|
2503
|
+
static code = "INVALID_DEPLOYMENT_REQUEST";
|
|
2504
|
+
static statusCode = 400;
|
|
2505
|
+
static description = `Invalid deployment request: {message}`;
|
|
2350
2506
|
}
|
|
2351
|
-
class
|
|
2507
|
+
class ProjectNotFoundError extends Error {
|
|
2352
2508
|
constructor(body) {
|
|
2353
2509
|
super(
|
|
2354
|
-
`
|
|
2510
|
+
`PROJECT_NOT_FOUND: ${body.message}`
|
|
2355
2511
|
);
|
|
2356
2512
|
this.body = body;
|
|
2357
|
-
this.name = "
|
|
2513
|
+
this.name = "ProjectNotFoundError";
|
|
2358
2514
|
}
|
|
2359
|
-
static code = "
|
|
2515
|
+
static code = "PROJECT_NOT_FOUND";
|
|
2360
2516
|
static statusCode = 404;
|
|
2361
|
-
static description = `
|
|
2517
|
+
static description = `Project not found: {project_id}`;
|
|
2362
2518
|
}
|
|
2363
|
-
class
|
|
2519
|
+
class UnauthorizedErrorError extends Error {
|
|
2364
2520
|
constructor(body) {
|
|
2365
2521
|
super(
|
|
2366
|
-
`
|
|
2522
|
+
`UNAUTHORIZED_ERROR: ${body.message}`
|
|
2367
2523
|
);
|
|
2368
2524
|
this.body = body;
|
|
2369
|
-
this.name = "
|
|
2525
|
+
this.name = "UnauthorizedErrorError";
|
|
2370
2526
|
}
|
|
2371
|
-
static code = "
|
|
2372
|
-
static statusCode =
|
|
2373
|
-
static description = `
|
|
2527
|
+
static code = "UNAUTHORIZED_ERROR";
|
|
2528
|
+
static statusCode = 401;
|
|
2529
|
+
static description = `Unauthorized request to {route}`;
|
|
2374
2530
|
}
|
|
2375
|
-
class
|
|
2531
|
+
class AnyhowError extends Error {
|
|
2376
2532
|
constructor(body) {
|
|
2377
2533
|
super(
|
|
2378
|
-
`
|
|
2534
|
+
`ANYHOW: ${body.message}`
|
|
2379
2535
|
);
|
|
2380
2536
|
this.body = body;
|
|
2381
|
-
this.name = "
|
|
2537
|
+
this.name = "AnyhowError";
|
|
2382
2538
|
}
|
|
2383
|
-
static code = "
|
|
2384
|
-
static statusCode =
|
|
2385
|
-
static description = `
|
|
2539
|
+
static code = "ANYHOW";
|
|
2540
|
+
static statusCode = 500;
|
|
2541
|
+
static description = `null`;
|
|
2386
2542
|
}
|
|
2387
2543
|
const FREESTYLE_ERROR_CODE_MAP = {
|
|
2544
|
+
"INTERNAL_ERROR": InternalErrorError,
|
|
2545
|
+
"DOCKER_IMPORT_BAD_REQUEST": DockerImportBadRequestError,
|
|
2388
2546
|
"VM_NOT_FOUND_IN_FS": VmNotFoundInFsError,
|
|
2389
2547
|
"VM_NOT_RUNNING": VmNotRunningError,
|
|
2390
2548
|
"VM_NOT_FOUND": VmNotFoundError,
|
|
@@ -2394,8 +2552,6 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2394
2552
|
"VM_MUST_BE_STOPPED": VmMustBeStoppedError,
|
|
2395
2553
|
"ALREADY_HAS_BASE": AlreadyHasBaseError,
|
|
2396
2554
|
"NOT_FOUND": NotFoundError,
|
|
2397
|
-
"INTERNAL_ERROR": InternalErrorError,
|
|
2398
|
-
"DOCKER_IMPORT_BAD_REQUEST": DockerImportBadRequestError,
|
|
2399
2555
|
"FORK_VM_NOT_FOUND": ForkVmNotFoundError,
|
|
2400
2556
|
"CREATE_SNAPSHOT_BAD_REQUEST": CreateSnapshotBadRequestError,
|
|
2401
2557
|
"SNAPSHOT_VM_BAD_REQUEST": SnapshotVmBadRequestError,
|
|
@@ -2413,7 +2569,6 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2413
2569
|
"VM_OPERATION_DENIED_DURING_TRANSACTION": VmOperationDeniedDuringTransactionError,
|
|
2414
2570
|
"VM_TRANSACTION_ID_MISMATCH": VmTransactionIdMismatchError,
|
|
2415
2571
|
"VM_NOT_IN_TRANSACTION": VmNotInTransactionError,
|
|
2416
|
-
"CREATE_VM_BAD_REQUEST": CreateVmBadRequestError,
|
|
2417
2572
|
"USER_NOT_FOUND": UserNotFoundError,
|
|
2418
2573
|
"USER_ALREADY_EXISTS": UserAlreadyExistsError,
|
|
2419
2574
|
"VALIDATION_ERROR": ValidationErrorError,
|
|
@@ -2430,6 +2585,7 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2430
2585
|
"GROUP_NAME_INVALID_CHARS": GroupNameInvalidCharsError,
|
|
2431
2586
|
"GROUP_NAME_TOO_LONG": GroupNameTooLongError,
|
|
2432
2587
|
"GROUP_NAME_EMPTY": GroupNameEmptyError,
|
|
2588
|
+
"CREATE_VM_BAD_REQUEST": CreateVmBadRequestError,
|
|
2433
2589
|
"WANTED_BY_EMPTY": WantedByEmptyError,
|
|
2434
2590
|
"WORKDIR_EMPTY": WorkdirEmptyError,
|
|
2435
2591
|
"GROUP_EMPTY": GroupEmptyError,
|
|
@@ -2446,72 +2602,36 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2446
2602
|
"SERVICE_NAME_EMPTY": ServiceNameEmptyError,
|
|
2447
2603
|
"SERVICE_ALREADY_EXISTS": ServiceAlreadyExistsError,
|
|
2448
2604
|
"SERVICE_NOT_FOUND": ServiceNotFoundError,
|
|
2605
|
+
"WAIT_TIMEOUT": WaitTimeoutError,
|
|
2606
|
+
"PRE_VERIFY_CHALLENGE_MISMATCH": PreVerifyChallengeMismatchError,
|
|
2607
|
+
"PRE_VERIFY_FAILED_PARSE": PreVerifyFailedParseError,
|
|
2608
|
+
"PRE_VERIFY_FAILED_FETCH": PreVerifyFailedFetchError,
|
|
2609
|
+
"PRE_VERIFY_ROUTE_NOT_FOUND": PreVerifyRouteNotFoundError,
|
|
2610
|
+
"AUTHORIZATION_NOT_FOUND": AuthorizationNotFoundError,
|
|
2611
|
+
"ORDER_NOT_FOUND": OrderNotFoundError,
|
|
2449
2612
|
"INTERNAL": InternalError,
|
|
2450
2613
|
"SIGNING": SigningError,
|
|
2451
2614
|
"INVALID_SIGNATURE": InvalidSignatureError,
|
|
2452
2615
|
"INVALID_PARAMETERS": InvalidParametersError,
|
|
2453
2616
|
"MAX_USES_EXCEEDED": MaxUsesExceededError,
|
|
2454
2617
|
"EXPIRED": ExpiredError,
|
|
2455
|
-
"
|
|
2456
|
-
"REPO_NOT_FOUND": RepoNotFoundError,
|
|
2457
|
-
"FORBIDDEN": ForbiddenError,
|
|
2458
|
-
"UNSUPPORTED_TRANSFER": UnsupportedTransferError,
|
|
2618
|
+
"TAG_NOT_FOUND": TagNotFoundError,
|
|
2459
2619
|
"BRANCH_NOT_FOUND": BranchNotFoundError,
|
|
2620
|
+
"REPO_NOT_FOUND": RepoNotFoundError,
|
|
2460
2621
|
"INVALID_OBJECT_ID": InvalidObjectIdError,
|
|
2461
|
-
"BLOB_NOT_FOUND": BlobNotFoundError,
|
|
2462
|
-
"REFERENCE_NOT_FOUND": ReferenceNotFoundError,
|
|
2463
|
-
"TAG_NOT_FOUND": TagNotFoundError,
|
|
2464
2622
|
"COMMIT_NOT_FOUND": CommitNotFoundError,
|
|
2465
|
-
"
|
|
2623
|
+
"REFERENCE_NOT_FOUND": ReferenceNotFoundError,
|
|
2466
2624
|
"PATH_NOT_FOUND": PathNotFoundError,
|
|
2625
|
+
"INVALID_REQUEST": InvalidRequestError,
|
|
2467
2626
|
"INVALID_REVISION": InvalidRevisionError,
|
|
2627
|
+
"FORBIDDEN": ForbiddenError,
|
|
2468
2628
|
"UNAUTHORIZED": UnauthorizedError,
|
|
2629
|
+
"CONFLICT": ConflictError,
|
|
2630
|
+
"UNSUPPORTED_TRANSFER": UnsupportedTransferError,
|
|
2631
|
+
"BLOB_NOT_FOUND": BlobNotFoundError,
|
|
2469
2632
|
"TREE_NOT_FOUND": TreeNotFoundError,
|
|
2470
|
-
"
|
|
2471
|
-
"
|
|
2472
|
-
"ENTRYPOINT_NOT_FOUND": EntrypointNotFoundError,
|
|
2473
|
-
"NO_DOMAIN_OWNERSHIP": NoDomainOwnershipError,
|
|
2474
|
-
"INVALID_DOMAINS": InvalidDomainsError,
|
|
2475
|
-
"WEB_DEPLOYMENT_BAD_REQUEST": WebDeploymentBadRequestError,
|
|
2476
|
-
"DEPLOYMENT_NOT_FOUND": DeploymentNotFoundError,
|
|
2477
|
-
"DATABASE_ERROR": DatabaseErrorError,
|
|
2478
|
-
"TRIGGER_ERROR": TriggerErrorError,
|
|
2479
|
-
"TOKEN_ERROR": TokenErrorError,
|
|
2480
|
-
"PERMISSION_ERROR": PermissionErrorError,
|
|
2481
|
-
"IDENTITY_ERROR": IdentityErrorError,
|
|
2482
|
-
"GET_CONTENT_FAILED": GetContentFailedError,
|
|
2483
|
-
"CONTENT_NOT_FOUND": ContentNotFoundError,
|
|
2484
|
-
"DOWNLOAD_FAILED": DownloadFailedError,
|
|
2485
|
-
"GIT_SERVER_ERROR": GitServerErrorError,
|
|
2486
|
-
"PARSE_RESPONSE_ERROR": ParseResponseErrorError,
|
|
2487
|
-
"REPOSITORY_ACCESS_DENIED": RepositoryAccessDeniedError,
|
|
2488
|
-
"GIT_HUB_SYNC_FAILED": GitHubSyncFailedError,
|
|
2489
|
-
"UPDATE_DEFAULT_BRANCH_FAILED": UpdateDefaultBranchFailedError,
|
|
2490
|
-
"GET_REPOSITORY_INFO_FAILED": GetRepositoryInfoFailedError,
|
|
2491
|
-
"LIST_REPOSITORIES_FAILED": ListRepositoriesFailedError,
|
|
2492
|
-
"DELETE_REPOSITORY_FAILED": DeleteRepositoryFailedError,
|
|
2493
|
-
"CREATE_REPOSITORY_FAILED": CreateRepositoryFailedError,
|
|
2494
|
-
"SERIALIZATION_ERROR": SerializationErrorError,
|
|
2495
|
-
"GIT_INVALID_REQUEST": GitInvalidRequestError,
|
|
2496
|
-
"REPOSITORY_NOT_FOUND": RepositoryNotFoundError,
|
|
2497
|
-
"FAILED_TO_PROVISION_CERTIFICATE": FailedToProvisionCertificateError,
|
|
2498
|
-
"FAILED_TO_INSERT_DOMAIN_MAPPING": FailedToInsertDomainMappingError,
|
|
2499
|
-
"PERMISSION_DENIED": PermissionDeniedError,
|
|
2500
|
-
"FAILED_TO_CHECK_PERMISSIONS": FailedToCheckPermissionsError,
|
|
2501
|
-
"FAILED_TO_LIST_DOMAINS": FailedToListDomainsError,
|
|
2502
|
-
"FAILED_TO_LIST_VERIFICATIONS": FailedToListVerificationsError,
|
|
2503
|
-
"FAILED_TO_VERIFY_DOMAIN": FailedToVerifyDomainError,
|
|
2504
|
-
"VERIFICATION_FAILED": VerificationFailedError,
|
|
2505
|
-
"FAILED_TO_DELETE_VERIFICATION": FailedToDeleteVerificationError,
|
|
2506
|
-
"VERIFICATION_NOT_FOUND": VerificationNotFoundError,
|
|
2507
|
-
"FAILED_TO_CREATE_VERIFICATION_CODE": FailedToCreateVerificationCodeError,
|
|
2508
|
-
"INVALID_DOMAIN": InvalidDomainError,
|
|
2509
|
-
"DOMAIN_ALREADY_EXISTS": DomainAlreadyExistsError,
|
|
2510
|
-
"FAILED_TO_INSERT_OWNERSHIP": FailedToInsertOwnershipError,
|
|
2511
|
-
"FAILED_REMOVE_DOMAIN_MAPPING": FailedRemoveDomainMappingError,
|
|
2512
|
-
"FAILED_PERMISSIONS_CHECK": FailedPermissionsCheckError,
|
|
2513
|
-
"FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS": FailedToCheckDomainMappingPermissionsError,
|
|
2514
|
-
"ANYHOW": AnyhowError,
|
|
2633
|
+
"RESIZE_FAILED": ResizeFailedError,
|
|
2634
|
+
"INTERNAL_RESIZE_VM_NOT_FOUND": InternalResizeVmNotFoundError,
|
|
2515
2635
|
"OBSERVABILITY_DATABASE_ERROR": ObservabilityDatabaseErrorError,
|
|
2516
2636
|
"OBSERVABILITY_ACCESS_DENIED": ObservabilityAccessDeniedError,
|
|
2517
2637
|
"PARSE_LOGS_FAILED": ParseLogsFailedError,
|
|
@@ -2553,17 +2673,18 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2553
2673
|
"NETWORK_PERMISSIONS_FAILED": NetworkPermissionsFailedError,
|
|
2554
2674
|
"LOGGING_FAILED": LoggingFailedError,
|
|
2555
2675
|
"RUN_NOT_FOUND": RunNotFoundError,
|
|
2556
|
-
"
|
|
2557
|
-
"
|
|
2558
|
-
"
|
|
2559
|
-
"
|
|
2560
|
-
"
|
|
2561
|
-
"
|
|
2562
|
-
"
|
|
2563
|
-
"
|
|
2564
|
-
"
|
|
2565
|
-
"
|
|
2566
|
-
"
|
|
2676
|
+
"FAILED_TO_PROVISION_CERTIFICATE": FailedToProvisionCertificateError,
|
|
2677
|
+
"FAILED_TO_INSERT_DOMAIN_MAPPING": FailedToInsertDomainMappingError,
|
|
2678
|
+
"PERMISSION_DENIED": PermissionDeniedError,
|
|
2679
|
+
"FAILED_TO_CHECK_PERMISSIONS": FailedToCheckPermissionsError,
|
|
2680
|
+
"FAILED_TO_LIST_DOMAINS": FailedToListDomainsError,
|
|
2681
|
+
"FAILED_TO_LIST_VERIFICATIONS": FailedToListVerificationsError,
|
|
2682
|
+
"FAILED_TO_VERIFY_DOMAIN": FailedToVerifyDomainError,
|
|
2683
|
+
"VERIFICATION_FAILED": VerificationFailedError,
|
|
2684
|
+
"FAILED_TO_DELETE_VERIFICATION": FailedToDeleteVerificationError,
|
|
2685
|
+
"VERIFICATION_NOT_FOUND": VerificationNotFoundError,
|
|
2686
|
+
"FAILED_TO_CREATE_VERIFICATION_CODE": FailedToCreateVerificationCodeError,
|
|
2687
|
+
"INVALID_DOMAIN": InvalidDomainError,
|
|
2567
2688
|
"DOMAIN_OWNERSHIP_VERIFICATION_FAILED": DomainOwnershipVerificationFailedError,
|
|
2568
2689
|
"ERROR_DELETING_RECORD": ErrorDeletingRecordError,
|
|
2569
2690
|
"RECORD_OWNERSHIP_ERROR": RecordOwnershipErrorError,
|
|
@@ -2582,7 +2703,55 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2582
2703
|
"REQUEST_FAILED": RequestFailedError,
|
|
2583
2704
|
"DEV_SERVER_FILE_NOT_FOUND": DevServerFileNotFoundError,
|
|
2584
2705
|
"DEV_SERVER_INVALID_REQUEST": DevServerInvalidRequestError,
|
|
2585
|
-
"DEV_SERVER_NOT_FOUND": DevServerNotFoundError
|
|
2706
|
+
"DEV_SERVER_NOT_FOUND": DevServerNotFoundError,
|
|
2707
|
+
"BUILD_FAILED": BuildFailedError,
|
|
2708
|
+
"SERVER_DEPLOYMENT_FAILED": ServerDeploymentFailedError,
|
|
2709
|
+
"LOCKFILE_ERROR": LockfileErrorError,
|
|
2710
|
+
"UPLOAD_ERROR": UploadErrorError,
|
|
2711
|
+
"DOMAIN_MAPPING_ERROR": DomainMappingErrorError,
|
|
2712
|
+
"CERTIFICATE_PROVISIONING_ERROR": CertificateProvisioningErrorError,
|
|
2713
|
+
"NO_ENTRYPOINT_FOUND": NoEntrypointFoundError,
|
|
2714
|
+
"ENTRYPOINT_NOT_FOUND": EntrypointNotFoundError,
|
|
2715
|
+
"NO_DOMAIN_OWNERSHIP": NoDomainOwnershipError,
|
|
2716
|
+
"INVALID_DOMAINS": InvalidDomainsError,
|
|
2717
|
+
"WEB_DEPLOYMENT_BAD_REQUEST": WebDeploymentBadRequestError,
|
|
2718
|
+
"DEPLOYMENT_NOT_FOUND": DeploymentNotFoundError,
|
|
2719
|
+
"DATABASE_ERROR": DatabaseErrorError,
|
|
2720
|
+
"TRIGGER_ERROR": TriggerErrorError,
|
|
2721
|
+
"TOKEN_ERROR": TokenErrorError,
|
|
2722
|
+
"PERMISSION_ERROR": PermissionErrorError,
|
|
2723
|
+
"IDENTITY_ERROR": IdentityErrorError,
|
|
2724
|
+
"GET_CONTENT_FAILED": GetContentFailedError,
|
|
2725
|
+
"CONTENT_NOT_FOUND": ContentNotFoundError,
|
|
2726
|
+
"DOWNLOAD_FAILED": DownloadFailedError,
|
|
2727
|
+
"GIT_SERVER_ERROR": GitServerErrorError,
|
|
2728
|
+
"PARSE_RESPONSE_ERROR": ParseResponseErrorError,
|
|
2729
|
+
"REPOSITORY_ACCESS_DENIED": RepositoryAccessDeniedError,
|
|
2730
|
+
"GIT_HUB_SYNC_FAILED": GitHubSyncFailedError,
|
|
2731
|
+
"UPDATE_DEFAULT_BRANCH_FAILED": UpdateDefaultBranchFailedError,
|
|
2732
|
+
"GET_REPOSITORY_INFO_FAILED": GetRepositoryInfoFailedError,
|
|
2733
|
+
"LIST_REPOSITORIES_FAILED": ListRepositoriesFailedError,
|
|
2734
|
+
"DELETE_REPOSITORY_FAILED": DeleteRepositoryFailedError,
|
|
2735
|
+
"CREATE_REPOSITORY_FAILED": CreateRepositoryFailedError,
|
|
2736
|
+
"SERIALIZATION_ERROR": SerializationErrorError,
|
|
2737
|
+
"GIT_INVALID_REQUEST": GitInvalidRequestError,
|
|
2738
|
+
"REPOSITORY_NOT_FOUND": RepositoryNotFoundError,
|
|
2739
|
+
"DOMAIN_ALREADY_EXISTS": DomainAlreadyExistsError,
|
|
2740
|
+
"FAILED_TO_INSERT_OWNERSHIP": FailedToInsertOwnershipError,
|
|
2741
|
+
"FAILED_REMOVE_DOMAIN_MAPPING": FailedRemoveDomainMappingError,
|
|
2742
|
+
"FAILED_PERMISSIONS_CHECK": FailedPermissionsCheckError,
|
|
2743
|
+
"FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS": FailedToCheckDomainMappingPermissionsError,
|
|
2744
|
+
"CLOUDSTATE_INTERNAL_ERROR": CloudstateInternalErrorError,
|
|
2745
|
+
"CLOUDSTATE_DATABASE_ERROR": CloudstateDatabaseErrorError,
|
|
2746
|
+
"CLOUDSTATE_ACCESS_DENIED": CloudstateAccessDeniedError,
|
|
2747
|
+
"RESTORE_FAILED": RestoreFailedError,
|
|
2748
|
+
"CREATE_BACKUP_FAILED": CreateBackupFailedError,
|
|
2749
|
+
"BACKUP_FAILED": BackupFailedError,
|
|
2750
|
+
"DEPLOYMENT_FAILED": DeploymentFailedError,
|
|
2751
|
+
"INVALID_DEPLOYMENT_REQUEST": InvalidDeploymentRequestError,
|
|
2752
|
+
"PROJECT_NOT_FOUND": ProjectNotFoundError,
|
|
2753
|
+
"UNAUTHORIZED_ERROR": UnauthorizedErrorError,
|
|
2754
|
+
"ANYHOW": AnyhowError
|
|
2586
2755
|
};
|
|
2587
2756
|
|
|
2588
2757
|
var errors = /*#__PURE__*/Object.freeze({
|
|
@@ -2590,6 +2759,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2590
2759
|
AfterArrayContainsEmptyError: AfterArrayContainsEmptyError,
|
|
2591
2760
|
AlreadyHasBaseError: AlreadyHasBaseError,
|
|
2592
2761
|
AnyhowError: AnyhowError,
|
|
2762
|
+
AuthorizationNotFoundError: AuthorizationNotFoundError,
|
|
2593
2763
|
BackupFailedError: BackupFailedError,
|
|
2594
2764
|
BadRequestError: BadRequestError,
|
|
2595
2765
|
BlobNotFoundError: BlobNotFoundError,
|
|
@@ -2598,6 +2768,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2598
2768
|
BuildFailedError: BuildFailedError,
|
|
2599
2769
|
CannotDeleteManagedIdentityError: CannotDeleteManagedIdentityError,
|
|
2600
2770
|
CannotModifyManagedIdentityError: CannotModifyManagedIdentityError,
|
|
2771
|
+
CertificateProvisioningErrorError: CertificateProvisioningErrorError,
|
|
2601
2772
|
CloudstateAccessDeniedError: CloudstateAccessDeniedError,
|
|
2602
2773
|
CloudstateDatabaseErrorError: CloudstateDatabaseErrorError,
|
|
2603
2774
|
CloudstateInternalErrorError: CloudstateInternalErrorError,
|
|
@@ -2623,6 +2794,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2623
2794
|
DirectoryCreationFailedError: DirectoryCreationFailedError,
|
|
2624
2795
|
DockerImportBadRequestError: DockerImportBadRequestError,
|
|
2625
2796
|
DomainAlreadyExistsError: DomainAlreadyExistsError,
|
|
2797
|
+
DomainMappingErrorError: DomainMappingErrorError,
|
|
2626
2798
|
DomainOwnershipErrorError: DomainOwnershipErrorError,
|
|
2627
2799
|
DomainOwnershipVerificationFailedError: DomainOwnershipVerificationFailedError,
|
|
2628
2800
|
DownloadFailedError: DownloadFailedError,
|
|
@@ -2697,6 +2869,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2697
2869
|
ListRunsFailedError: ListRunsFailedError,
|
|
2698
2870
|
ListTokensFailedError: ListTokensFailedError,
|
|
2699
2871
|
LockGenerationFailedError: LockGenerationFailedError,
|
|
2872
|
+
LockfileErrorError: LockfileErrorError,
|
|
2700
2873
|
LoggingFailedError: LoggingFailedError,
|
|
2701
2874
|
LogsFailedError: LogsFailedError,
|
|
2702
2875
|
LogsNotFoundError: LogsNotFoundError,
|
|
@@ -2711,6 +2884,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2711
2884
|
ObservabilityAccessDeniedError: ObservabilityAccessDeniedError,
|
|
2712
2885
|
ObservabilityDatabaseErrorError: ObservabilityDatabaseErrorError,
|
|
2713
2886
|
OnFailureArrayContainsEmptyError: OnFailureArrayContainsEmptyError,
|
|
2887
|
+
OrderNotFoundError: OrderNotFoundError,
|
|
2714
2888
|
ParseLogsFailedError: ParseLogsFailedError,
|
|
2715
2889
|
ParseResponseErrorError: ParseResponseErrorError,
|
|
2716
2890
|
PathNotFoundError: PathNotFoundError,
|
|
@@ -2718,6 +2892,10 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2718
2892
|
PermissionDeniedError: PermissionDeniedError,
|
|
2719
2893
|
PermissionErrorError: PermissionErrorError,
|
|
2720
2894
|
PermissionNotFoundError: PermissionNotFoundError,
|
|
2895
|
+
PreVerifyChallengeMismatchError: PreVerifyChallengeMismatchError,
|
|
2896
|
+
PreVerifyFailedFetchError: PreVerifyFailedFetchError,
|
|
2897
|
+
PreVerifyFailedParseError: PreVerifyFailedParseError,
|
|
2898
|
+
PreVerifyRouteNotFoundError: PreVerifyRouteNotFoundError,
|
|
2721
2899
|
ProjectNotFoundError: ProjectNotFoundError,
|
|
2722
2900
|
ReadFileFailedError: ReadFileFailedError,
|
|
2723
2901
|
RecordOwnershipErrorError: RecordOwnershipErrorError,
|
|
@@ -2736,6 +2914,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2736
2914
|
RevokeTokenFailedError: RevokeTokenFailedError,
|
|
2737
2915
|
RunNotFoundError: RunNotFoundError,
|
|
2738
2916
|
SerializationErrorError: SerializationErrorError,
|
|
2917
|
+
ServerDeploymentFailedError: ServerDeploymentFailedError,
|
|
2739
2918
|
ServiceAlreadyExistsError: ServiceAlreadyExistsError,
|
|
2740
2919
|
ServiceNameEmptyError: ServiceNameEmptyError,
|
|
2741
2920
|
ServiceNameInvalidCharsError: ServiceNameInvalidCharsError,
|
|
@@ -2752,9 +2931,11 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2752
2931
|
TreeNotFoundError: TreeNotFoundError,
|
|
2753
2932
|
TriggerErrorError: TriggerErrorError,
|
|
2754
2933
|
UnauthorizedError: UnauthorizedError,
|
|
2934
|
+
UnauthorizedErrorError: UnauthorizedErrorError,
|
|
2755
2935
|
UnsupportedTransferError: UnsupportedTransferError,
|
|
2756
2936
|
UpdateDefaultBranchFailedError: UpdateDefaultBranchFailedError,
|
|
2757
2937
|
UpdatePermissionFailedError: UpdatePermissionFailedError,
|
|
2938
|
+
UploadErrorError: UploadErrorError,
|
|
2758
2939
|
UserAlreadyExistsError: UserAlreadyExistsError,
|
|
2759
2940
|
UserEmptyError: UserEmptyError,
|
|
2760
2941
|
UserGroupEmptyError: UserGroupEmptyError,
|
|
@@ -2780,6 +2961,7 @@ var errors = /*#__PURE__*/Object.freeze({
|
|
|
2780
2961
|
VmStartTimeoutError: VmStartTimeoutError,
|
|
2781
2962
|
VmSubnetNotFoundError: VmSubnetNotFoundError,
|
|
2782
2963
|
VmTransactionIdMismatchError: VmTransactionIdMismatchError,
|
|
2964
|
+
WaitTimeoutError: WaitTimeoutError,
|
|
2783
2965
|
WantedByEmptyError: WantedByEmptyError,
|
|
2784
2966
|
WatchFilesFailedError: WatchFilesFailedError,
|
|
2785
2967
|
WebDeploymentBadRequestError: WebDeploymentBadRequestError,
|
|
@@ -3118,6 +3300,25 @@ class GitRepo {
|
|
|
3118
3300
|
params: { repo: this.repoId, trigger: triggerId }
|
|
3119
3301
|
});
|
|
3120
3302
|
}
|
|
3303
|
+
/**
|
|
3304
|
+
* Compare two revs in this repository.
|
|
3305
|
+
*
|
|
3306
|
+
* Head and base can be branch names, tags, or commit SHAs.
|
|
3307
|
+
*/
|
|
3308
|
+
async compare({
|
|
3309
|
+
base,
|
|
3310
|
+
head
|
|
3311
|
+
}) {
|
|
3312
|
+
return this.apiClient.get("/git/v1/repo/{repo}/compare", {
|
|
3313
|
+
params: {
|
|
3314
|
+
repo: this.repoId
|
|
3315
|
+
},
|
|
3316
|
+
query: {
|
|
3317
|
+
base,
|
|
3318
|
+
head
|
|
3319
|
+
}
|
|
3320
|
+
});
|
|
3321
|
+
}
|
|
3121
3322
|
}
|
|
3122
3323
|
class GitReposNamespace {
|
|
3123
3324
|
constructor(apiClient) {
|
|
@@ -3652,6 +3853,14 @@ class FileSystem {
|
|
|
3652
3853
|
this.vmId = vmId;
|
|
3653
3854
|
this.client = client;
|
|
3654
3855
|
}
|
|
3856
|
+
vm = null;
|
|
3857
|
+
/**
|
|
3858
|
+
* @internal
|
|
3859
|
+
* Set the parent VM instance for exec operations
|
|
3860
|
+
*/
|
|
3861
|
+
_setVm(vm) {
|
|
3862
|
+
this.vm = vm;
|
|
3863
|
+
}
|
|
3655
3864
|
/**
|
|
3656
3865
|
* Read a file from the VM as a buffer.
|
|
3657
3866
|
* @param filepath The path to the file in the VM
|
|
@@ -3709,21 +3918,47 @@ class FileSystem {
|
|
|
3709
3918
|
* @returns Array of file/directory names
|
|
3710
3919
|
*/
|
|
3711
3920
|
async readDir(path) {
|
|
3712
|
-
|
|
3921
|
+
const response = await this.client.get("/v1/vms/{vm_id}/files/{filepath}", {
|
|
3922
|
+
params: { vm_id: this.vmId, filepath: path }
|
|
3923
|
+
});
|
|
3924
|
+
if ("files" in response && response.files) {
|
|
3925
|
+
return response.files;
|
|
3926
|
+
}
|
|
3927
|
+
throw new Error("Path is not a directory");
|
|
3713
3928
|
}
|
|
3714
3929
|
/**
|
|
3715
3930
|
* Create a directory in the VM.
|
|
3716
3931
|
* @param path The path to create
|
|
3932
|
+
* @param recursive Create parent directories if needed (default: false)
|
|
3717
3933
|
*/
|
|
3718
|
-
async mkdir(path) {
|
|
3719
|
-
|
|
3934
|
+
async mkdir(path, recursive = false) {
|
|
3935
|
+
if (!this.vm) {
|
|
3936
|
+
throw new Error("FileSystem not properly initialized");
|
|
3937
|
+
}
|
|
3938
|
+
const flag = recursive ? "-p" : "";
|
|
3939
|
+
const result = await this.vm.exec(`mkdir ${flag} "${path}"`);
|
|
3940
|
+
if (result.statusCode !== 0) {
|
|
3941
|
+
throw new Error(
|
|
3942
|
+
`Failed to create directory: ${result.stderr || "Unknown error"}`
|
|
3943
|
+
);
|
|
3944
|
+
}
|
|
3720
3945
|
}
|
|
3721
3946
|
/**
|
|
3722
3947
|
* Remove a file or directory from the VM.
|
|
3723
3948
|
* @param path The path to remove
|
|
3949
|
+
* @param recursive Remove directories and their contents recursively (default: false)
|
|
3724
3950
|
*/
|
|
3725
|
-
async remove(path) {
|
|
3726
|
-
|
|
3951
|
+
async remove(path, recursive = false) {
|
|
3952
|
+
if (!this.vm) {
|
|
3953
|
+
throw new Error("FileSystem not properly initialized");
|
|
3954
|
+
}
|
|
3955
|
+
const flag = recursive ? "-rf" : "-f";
|
|
3956
|
+
const result = await this.vm.exec(`rm ${flag} "${path}"`);
|
|
3957
|
+
if (result.statusCode !== 0) {
|
|
3958
|
+
throw new Error(
|
|
3959
|
+
`Failed to remove path: ${result.stderr || "Unknown error"}`
|
|
3960
|
+
);
|
|
3961
|
+
}
|
|
3727
3962
|
}
|
|
3728
3963
|
/**
|
|
3729
3964
|
* Check if a file or directory exists in the VM.
|
|
@@ -3731,7 +3966,11 @@ class FileSystem {
|
|
|
3731
3966
|
* @returns True if exists, false otherwise
|
|
3732
3967
|
*/
|
|
3733
3968
|
async exists(path) {
|
|
3734
|
-
|
|
3969
|
+
if (!this.vm) {
|
|
3970
|
+
throw new Error("FileSystem not properly initialized");
|
|
3971
|
+
}
|
|
3972
|
+
const result = await this.vm.exec(`test -e "${path}"`);
|
|
3973
|
+
return result.statusCode === 0;
|
|
3735
3974
|
}
|
|
3736
3975
|
/**
|
|
3737
3976
|
* Get file/directory stats.
|
|
@@ -3739,7 +3978,37 @@ class FileSystem {
|
|
|
3739
3978
|
* @returns File/directory stats
|
|
3740
3979
|
*/
|
|
3741
3980
|
async stat(path) {
|
|
3742
|
-
|
|
3981
|
+
if (!this.vm) {
|
|
3982
|
+
throw new Error("FileSystem not properly initialized");
|
|
3983
|
+
}
|
|
3984
|
+
const result = await this.vm.exec(
|
|
3985
|
+
`stat -c '%s|%F|%a|%U|%G|%y' "${path}" 2>/dev/null || stat -f '%z|%HT|%p|%Su|%Sg|%Sm' "${path}"`
|
|
3986
|
+
);
|
|
3987
|
+
if (result.statusCode !== 0 || !result.stdout) {
|
|
3988
|
+
throw new Error(
|
|
3989
|
+
`Failed to stat path: ${result.stderr || "Unknown error"}`
|
|
3990
|
+
);
|
|
3991
|
+
}
|
|
3992
|
+
const parts = result.stdout.trim().split("|");
|
|
3993
|
+
if (parts.length < 6) {
|
|
3994
|
+
throw new Error(`Invalid stat output: ${result.stdout}`);
|
|
3995
|
+
}
|
|
3996
|
+
const size = parseInt(parts[0] || "0");
|
|
3997
|
+
const fileType = parts[1] || "";
|
|
3998
|
+
const permissions = parts[2] || "";
|
|
3999
|
+
const owner = parts[3] || "";
|
|
4000
|
+
const group = parts[4] || "";
|
|
4001
|
+
const modified = parts[5] || "";
|
|
4002
|
+
return {
|
|
4003
|
+
size,
|
|
4004
|
+
isFile: fileType.includes("regular file") || fileType.includes("Regular File"),
|
|
4005
|
+
isDirectory: fileType.includes("directory") || fileType.includes("Directory"),
|
|
4006
|
+
isSymlink: fileType.includes("symbolic link") || fileType.includes("Symbolic Link"),
|
|
4007
|
+
permissions,
|
|
4008
|
+
owner,
|
|
4009
|
+
group,
|
|
4010
|
+
modified
|
|
4011
|
+
};
|
|
3743
4012
|
}
|
|
3744
4013
|
/**
|
|
3745
4014
|
* Watch for file changes in the VM.
|
|
@@ -3924,12 +4193,16 @@ function composeCreateVmOptions(arr) {
|
|
|
3924
4193
|
if (!result.template) {
|
|
3925
4194
|
result.template = options.template;
|
|
3926
4195
|
} else if (options.template !== null) {
|
|
3927
|
-
const baseTemplate = result.template instanceof VmTemplate ? result.template["
|
|
3928
|
-
const newTemplate = options.template instanceof VmTemplate ? options.template["
|
|
4196
|
+
const baseTemplate = result.template instanceof VmTemplate ? result.template["raw"] : result.template;
|
|
4197
|
+
const newTemplate = options.template instanceof VmTemplate ? options.template["raw"] : options.template;
|
|
3929
4198
|
result.template = {
|
|
3930
4199
|
// Simple overrides - start with base, override with new
|
|
3931
4200
|
snapshotId: newTemplate.snapshotId !== void 0 ? newTemplate.snapshotId : baseTemplate.snapshotId,
|
|
3932
|
-
|
|
4201
|
+
rootfsSizeGb: newTemplate.rootfsSizeGb !== void 0 ? newTemplate.rootfsSizeGb : baseTemplate.rootfsSizeGb,
|
|
4202
|
+
memSizeGb: newTemplate.memSizeGb !== void 0 ? newTemplate.memSizeGb : baseTemplate.memSizeGb,
|
|
4203
|
+
aptDeps: newTemplate.aptDeps ?? baseTemplate.aptDeps,
|
|
4204
|
+
vcpuCount: newTemplate.vcpuCount !== void 0 ? newTemplate.vcpuCount : baseTemplate.vcpuCount,
|
|
4205
|
+
discriminator: newTemplate.discriminator ?? baseTemplate.discriminator,
|
|
3933
4206
|
workdir: newTemplate.workdir !== void 0 ? newTemplate.workdir : baseTemplate.workdir,
|
|
3934
4207
|
idleTimeoutSeconds: newTemplate.idleTimeoutSeconds !== void 0 ? newTemplate.idleTimeoutSeconds : baseTemplate.idleTimeoutSeconds,
|
|
3935
4208
|
waitForReadySignal: newTemplate.waitForReadySignal !== void 0 ? newTemplate.waitForReadySignal : baseTemplate.waitForReadySignal,
|
|
@@ -4089,6 +4362,7 @@ class Vm {
|
|
|
4089
4362
|
this.apiClient = apiClient;
|
|
4090
4363
|
this.vmId = vmId;
|
|
4091
4364
|
this.fs = new FileSystem(vmId, apiClient);
|
|
4365
|
+
this.fs._setVm(this);
|
|
4092
4366
|
this.terminals = new VmTerminals(vmId, apiClient);
|
|
4093
4367
|
}
|
|
4094
4368
|
vmId;
|
|
@@ -4204,11 +4478,13 @@ class Vm {
|
|
|
4204
4478
|
* @returns Resize response
|
|
4205
4479
|
*/
|
|
4206
4480
|
async resize({
|
|
4207
|
-
|
|
4481
|
+
memSizeGb,
|
|
4482
|
+
rootfsSizeGb,
|
|
4483
|
+
vcpuCount
|
|
4208
4484
|
}) {
|
|
4209
4485
|
return this.apiClient.post("/v1/vms/{id}/resize", {
|
|
4210
4486
|
params: { id: this.vmId },
|
|
4211
|
-
body: {
|
|
4487
|
+
body: { memSizeGb, rootfsSizeGb, vcpuCount }
|
|
4212
4488
|
});
|
|
4213
4489
|
}
|
|
4214
4490
|
}
|
|
@@ -4217,15 +4493,44 @@ class VmSnapshotsNamespace {
|
|
|
4217
4493
|
this.apiClient = apiClient;
|
|
4218
4494
|
}
|
|
4219
4495
|
async ensure(options) {
|
|
4496
|
+
if (options.template.raw.template instanceof VmTemplate) {
|
|
4497
|
+
options.template = await ensureNestedTemplates(options.template, this);
|
|
4498
|
+
}
|
|
4220
4499
|
return this.apiClient.post("/v1/vms/snapshots", {
|
|
4221
4500
|
body: {
|
|
4222
4501
|
...options,
|
|
4223
4502
|
// @ts-ignore
|
|
4224
|
-
template: options.template?.
|
|
4503
|
+
template: options.template?.raw
|
|
4225
4504
|
}
|
|
4226
4505
|
});
|
|
4227
4506
|
}
|
|
4228
4507
|
}
|
|
4508
|
+
async function ensureNestedTemplates(template, snapshots) {
|
|
4509
|
+
let templates = [template];
|
|
4510
|
+
while (templates.at(-1)?.raw.template instanceof VmTemplate) {
|
|
4511
|
+
let innerTemplate = templates.at(-1).raw.template;
|
|
4512
|
+
templates.at(-1).raw.template = void 0;
|
|
4513
|
+
templates.push(innerTemplate);
|
|
4514
|
+
}
|
|
4515
|
+
return await layerTemplates(templates, snapshots);
|
|
4516
|
+
}
|
|
4517
|
+
async function layerTemplates(templates, snapshots) {
|
|
4518
|
+
let lastTemplate = templates.pop();
|
|
4519
|
+
const { snapshotId } = await snapshots.ensure({
|
|
4520
|
+
template: lastTemplate
|
|
4521
|
+
});
|
|
4522
|
+
let lastSnapshotId = snapshotId;
|
|
4523
|
+
while (templates.length > 0) {
|
|
4524
|
+
const template = templates.pop();
|
|
4525
|
+
template.raw.snapshotId = lastSnapshotId;
|
|
4526
|
+
const { snapshotId: snapshotId2 } = await snapshots.ensure({
|
|
4527
|
+
template
|
|
4528
|
+
});
|
|
4529
|
+
lastSnapshotId = snapshotId2;
|
|
4530
|
+
lastTemplate = template;
|
|
4531
|
+
}
|
|
4532
|
+
return lastTemplate;
|
|
4533
|
+
}
|
|
4229
4534
|
class VmsNamespace {
|
|
4230
4535
|
constructor(apiClient) {
|
|
4231
4536
|
this.apiClient = apiClient;
|
|
@@ -4241,6 +4546,12 @@ class VmsNamespace {
|
|
|
4241
4546
|
const builders = options.with || {};
|
|
4242
4547
|
const { with: _, ...baseConfig } = options;
|
|
4243
4548
|
let config = baseConfig;
|
|
4549
|
+
if (config.template instanceof VmTemplate) {
|
|
4550
|
+
config.template = await ensureNestedTemplates(
|
|
4551
|
+
config.template,
|
|
4552
|
+
this.snapshots
|
|
4553
|
+
);
|
|
4554
|
+
}
|
|
4244
4555
|
const keys = Object.keys(builders);
|
|
4245
4556
|
for (const key of keys) {
|
|
4246
4557
|
const builder = builders[key];
|
|
@@ -4251,7 +4562,7 @@ class VmsNamespace {
|
|
|
4251
4562
|
const response = await this.apiClient.post("/v1/vms", {
|
|
4252
4563
|
body: {
|
|
4253
4564
|
...config,
|
|
4254
|
-
template: config.template instanceof VmTemplate ? config.template["
|
|
4565
|
+
template: config.template instanceof VmTemplate ? config.template["raw"] : config.template
|
|
4255
4566
|
}
|
|
4256
4567
|
});
|
|
4257
4568
|
const vmId = response.id;
|
|
@@ -4297,9 +4608,9 @@ class VmsNamespace {
|
|
|
4297
4608
|
}
|
|
4298
4609
|
}
|
|
4299
4610
|
class VmTemplate {
|
|
4300
|
-
|
|
4611
|
+
raw;
|
|
4301
4612
|
constructor(template) {
|
|
4302
|
-
this.
|
|
4613
|
+
this.raw = template;
|
|
4303
4614
|
}
|
|
4304
4615
|
}
|
|
4305
4616
|
|