freestyle-sandboxes 0.1.1 → 0.1.2
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 +1024 -817
- package/index.d.cts +896 -664
- package/index.d.mts +896 -664
- package/index.mjs +1024 -817
- 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 = "
|
|
1087
|
+
static code = "RESIZE_FAILED";
|
|
1088
|
+
static statusCode = 500;
|
|
1089
|
+
static description = `Failed to resize VM: {message}`;
|
|
1090
|
+
}
|
|
1091
|
+
class InternalResizeVmNotFoundError extends Error {
|
|
1092
|
+
constructor(body) {
|
|
1093
|
+
super(
|
|
1094
|
+
`INTERNAL_RESIZE_VM_NOT_FOUND: ${body.message}`
|
|
1095
|
+
);
|
|
1096
|
+
this.body = body;
|
|
1097
|
+
this.name = "InternalResizeVmNotFoundError";
|
|
1098
|
+
}
|
|
1099
|
+
static code = "INTERNAL_RESIZE_VM_NOT_FOUND";
|
|
1100
|
+
static statusCode = 404;
|
|
1101
|
+
static description = `VM not found`;
|
|
1102
|
+
}
|
|
1103
|
+
class ObservabilityDatabaseErrorError extends Error {
|
|
1104
|
+
constructor(body) {
|
|
1105
|
+
super(
|
|
1106
|
+
`OBSERVABILITY_DATABASE_ERROR: ${body.message}`
|
|
1107
|
+
);
|
|
1108
|
+
this.body = body;
|
|
1109
|
+
this.name = "ObservabilityDatabaseErrorError";
|
|
1110
|
+
}
|
|
1111
|
+
static code = "OBSERVABILITY_DATABASE_ERROR";
|
|
1112
|
+
static statusCode = 500;
|
|
1113
|
+
static description = `Database operation failed: {message}`;
|
|
1114
|
+
}
|
|
1115
|
+
class ObservabilityAccessDeniedError extends Error {
|
|
1116
|
+
constructor(body) {
|
|
1117
|
+
super(
|
|
1118
|
+
`OBSERVABILITY_ACCESS_DENIED: ${body.message}`
|
|
1119
|
+
);
|
|
1120
|
+
this.body = body;
|
|
1121
|
+
this.name = "ObservabilityAccessDeniedError";
|
|
1122
|
+
}
|
|
1123
|
+
static code = "OBSERVABILITY_ACCESS_DENIED";
|
|
1040
1124
|
static statusCode = 403;
|
|
1041
|
-
static description = `
|
|
1125
|
+
static description = `Access denied to logs for deployment: {deployment_id}`;
|
|
1042
1126
|
}
|
|
1043
|
-
class
|
|
1127
|
+
class ParseLogsFailedError extends Error {
|
|
1044
1128
|
constructor(body) {
|
|
1045
1129
|
super(
|
|
1046
|
-
`
|
|
1130
|
+
`PARSE_LOGS_FAILED: ${body.message}`
|
|
1047
1131
|
);
|
|
1048
1132
|
this.body = body;
|
|
1049
|
-
this.name = "
|
|
1133
|
+
this.name = "ParseLogsFailedError";
|
|
1050
1134
|
}
|
|
1051
|
-
static code = "
|
|
1052
|
-
static statusCode =
|
|
1053
|
-
static description = `
|
|
1135
|
+
static code = "PARSE_LOGS_FAILED";
|
|
1136
|
+
static statusCode = 500;
|
|
1137
|
+
static description = `Failed to parse logs: {message}`;
|
|
1054
1138
|
}
|
|
1055
|
-
class
|
|
1139
|
+
class RetrieveLogsFailedError extends Error {
|
|
1056
1140
|
constructor(body) {
|
|
1057
1141
|
super(
|
|
1058
|
-
`
|
|
1142
|
+
`RETRIEVE_LOGS_FAILED: ${body.message}`
|
|
1059
1143
|
);
|
|
1060
1144
|
this.body = body;
|
|
1061
|
-
this.name = "
|
|
1145
|
+
this.name = "RetrieveLogsFailedError";
|
|
1062
1146
|
}
|
|
1063
|
-
static code = "
|
|
1147
|
+
static code = "RETRIEVE_LOGS_FAILED";
|
|
1148
|
+
static statusCode = 500;
|
|
1149
|
+
static description = `Failed to retrieve logs: {message}`;
|
|
1150
|
+
}
|
|
1151
|
+
class InvalidQueryError extends Error {
|
|
1152
|
+
constructor(body) {
|
|
1153
|
+
super(
|
|
1154
|
+
`INVALID_QUERY: ${body.message}`
|
|
1155
|
+
);
|
|
1156
|
+
this.body = body;
|
|
1157
|
+
this.name = "InvalidQueryError";
|
|
1158
|
+
}
|
|
1159
|
+
static code = "INVALID_QUERY";
|
|
1064
1160
|
static statusCode = 400;
|
|
1065
|
-
static description = `
|
|
1161
|
+
static description = `Invalid log query: {message}`;
|
|
1066
1162
|
}
|
|
1067
|
-
class
|
|
1163
|
+
class LogsNotFoundError extends Error {
|
|
1068
1164
|
constructor(body) {
|
|
1069
1165
|
super(
|
|
1070
|
-
`
|
|
1166
|
+
`LOGS_NOT_FOUND: ${body.message}`
|
|
1071
1167
|
);
|
|
1072
1168
|
this.body = body;
|
|
1073
|
-
this.name = "
|
|
1169
|
+
this.name = "LogsNotFoundError";
|
|
1074
1170
|
}
|
|
1075
|
-
static code = "
|
|
1171
|
+
static code = "LOGS_NOT_FOUND";
|
|
1076
1172
|
static statusCode = 404;
|
|
1077
|
-
static description = `
|
|
1173
|
+
static description = `Logs not found for deployment: {deployment_id}`;
|
|
1078
1174
|
}
|
|
1079
|
-
class
|
|
1175
|
+
class PermissionAlreadyExistsError extends Error {
|
|
1080
1176
|
constructor(body) {
|
|
1081
1177
|
super(
|
|
1082
|
-
`
|
|
1178
|
+
`PERMISSION_ALREADY_EXISTS: ${body.message}`
|
|
1083
1179
|
);
|
|
1084
1180
|
this.body = body;
|
|
1085
|
-
this.name = "
|
|
1181
|
+
this.name = "PermissionAlreadyExistsError";
|
|
1086
1182
|
}
|
|
1087
|
-
static code = "
|
|
1183
|
+
static code = "PERMISSION_ALREADY_EXISTS";
|
|
1184
|
+
static statusCode = 409;
|
|
1185
|
+
static description = `Permission already exists`;
|
|
1186
|
+
}
|
|
1187
|
+
class ListTokensFailedError extends Error {
|
|
1188
|
+
constructor(body) {
|
|
1189
|
+
super(
|
|
1190
|
+
`LIST_TOKENS_FAILED: ${body.message}`
|
|
1191
|
+
);
|
|
1192
|
+
this.body = body;
|
|
1193
|
+
this.name = "ListTokensFailedError";
|
|
1194
|
+
}
|
|
1195
|
+
static code = "LIST_TOKENS_FAILED";
|
|
1088
1196
|
static statusCode = 500;
|
|
1089
|
-
static description = `
|
|
1197
|
+
static description = `Failed to list tokens: {message}`;
|
|
1090
1198
|
}
|
|
1091
|
-
class
|
|
1199
|
+
class RevokeTokenFailedError extends Error {
|
|
1092
1200
|
constructor(body) {
|
|
1093
1201
|
super(
|
|
1094
|
-
`
|
|
1202
|
+
`REVOKE_TOKEN_FAILED: ${body.message}`
|
|
1095
1203
|
);
|
|
1096
1204
|
this.body = body;
|
|
1097
|
-
this.name = "
|
|
1205
|
+
this.name = "RevokeTokenFailedError";
|
|
1098
1206
|
}
|
|
1099
|
-
static code = "
|
|
1207
|
+
static code = "REVOKE_TOKEN_FAILED";
|
|
1100
1208
|
static statusCode = 500;
|
|
1101
|
-
static description = `Failed to
|
|
1209
|
+
static description = `Failed to revoke token: {message}`;
|
|
1102
1210
|
}
|
|
1103
|
-
class
|
|
1211
|
+
class CreateTokenFailedError extends Error {
|
|
1104
1212
|
constructor(body) {
|
|
1105
1213
|
super(
|
|
1106
|
-
`
|
|
1214
|
+
`CREATE_TOKEN_FAILED: ${body.message}`
|
|
1107
1215
|
);
|
|
1108
1216
|
this.body = body;
|
|
1109
|
-
this.name = "
|
|
1217
|
+
this.name = "CreateTokenFailedError";
|
|
1110
1218
|
}
|
|
1111
|
-
static code = "
|
|
1219
|
+
static code = "CREATE_TOKEN_FAILED";
|
|
1112
1220
|
static statusCode = 500;
|
|
1113
|
-
static description = `Failed to
|
|
1221
|
+
static description = `Failed to create token: {message}`;
|
|
1114
1222
|
}
|
|
1115
|
-
class
|
|
1223
|
+
class ListPermissionsFailedError extends Error {
|
|
1116
1224
|
constructor(body) {
|
|
1117
1225
|
super(
|
|
1118
|
-
`
|
|
1226
|
+
`LIST_PERMISSIONS_FAILED: ${body.message}`
|
|
1119
1227
|
);
|
|
1120
1228
|
this.body = body;
|
|
1121
|
-
this.name = "
|
|
1229
|
+
this.name = "ListPermissionsFailedError";
|
|
1122
1230
|
}
|
|
1123
|
-
static code = "
|
|
1231
|
+
static code = "LIST_PERMISSIONS_FAILED";
|
|
1124
1232
|
static statusCode = 500;
|
|
1125
|
-
static description = `Failed to
|
|
1233
|
+
static description = `Failed to list permissions: {message}`;
|
|
1126
1234
|
}
|
|
1127
|
-
class
|
|
1235
|
+
class GetPermissionFailedError extends Error {
|
|
1128
1236
|
constructor(body) {
|
|
1129
1237
|
super(
|
|
1130
|
-
`
|
|
1238
|
+
`GET_PERMISSION_FAILED: ${body.message}`
|
|
1131
1239
|
);
|
|
1132
1240
|
this.body = body;
|
|
1133
|
-
this.name = "
|
|
1241
|
+
this.name = "GetPermissionFailedError";
|
|
1134
1242
|
}
|
|
1135
|
-
static code = "
|
|
1243
|
+
static code = "GET_PERMISSION_FAILED";
|
|
1136
1244
|
static statusCode = 500;
|
|
1137
|
-
static description = `Failed to
|
|
1245
|
+
static description = `Failed to get permission: {message}`;
|
|
1138
1246
|
}
|
|
1139
|
-
class
|
|
1247
|
+
class UpdatePermissionFailedError extends Error {
|
|
1140
1248
|
constructor(body) {
|
|
1141
1249
|
super(
|
|
1142
|
-
`
|
|
1250
|
+
`UPDATE_PERMISSION_FAILED: ${body.message}`
|
|
1143
1251
|
);
|
|
1144
1252
|
this.body = body;
|
|
1145
|
-
this.name = "
|
|
1253
|
+
this.name = "UpdatePermissionFailedError";
|
|
1146
1254
|
}
|
|
1147
|
-
static code = "
|
|
1255
|
+
static code = "UPDATE_PERMISSION_FAILED";
|
|
1148
1256
|
static statusCode = 500;
|
|
1149
|
-
static description = `Failed to
|
|
1257
|
+
static description = `Failed to update permission: {message}`;
|
|
1150
1258
|
}
|
|
1151
|
-
class
|
|
1259
|
+
class RevokePermissionFailedError extends Error {
|
|
1152
1260
|
constructor(body) {
|
|
1153
1261
|
super(
|
|
1154
|
-
`
|
|
1262
|
+
`REVOKE_PERMISSION_FAILED: ${body.message}`
|
|
1155
1263
|
);
|
|
1156
1264
|
this.body = body;
|
|
1157
|
-
this.name = "
|
|
1265
|
+
this.name = "RevokePermissionFailedError";
|
|
1158
1266
|
}
|
|
1159
|
-
static code = "
|
|
1160
|
-
static statusCode =
|
|
1161
|
-
static description = `
|
|
1267
|
+
static code = "REVOKE_PERMISSION_FAILED";
|
|
1268
|
+
static statusCode = 500;
|
|
1269
|
+
static description = `Failed to revoke permission: {message}`;
|
|
1162
1270
|
}
|
|
1163
|
-
class
|
|
1271
|
+
class GrantPermissionFailedError extends Error {
|
|
1164
1272
|
constructor(body) {
|
|
1165
1273
|
super(
|
|
1166
|
-
`
|
|
1274
|
+
`GRANT_PERMISSION_FAILED: ${body.message}`
|
|
1167
1275
|
);
|
|
1168
1276
|
this.body = body;
|
|
1169
|
-
this.name = "
|
|
1277
|
+
this.name = "GrantPermissionFailedError";
|
|
1170
1278
|
}
|
|
1171
|
-
static code = "
|
|
1279
|
+
static code = "GRANT_PERMISSION_FAILED";
|
|
1172
1280
|
static statusCode = 500;
|
|
1173
|
-
static description = `Failed to
|
|
1281
|
+
static description = `Failed to grant permission: {message}`;
|
|
1174
1282
|
}
|
|
1175
|
-
class
|
|
1283
|
+
class ListIdentitiesFailedError extends Error {
|
|
1176
1284
|
constructor(body) {
|
|
1177
1285
|
super(
|
|
1178
|
-
`
|
|
1286
|
+
`LIST_IDENTITIES_FAILED: ${body.message}`
|
|
1179
1287
|
);
|
|
1180
1288
|
this.body = body;
|
|
1181
|
-
this.name = "
|
|
1289
|
+
this.name = "ListIdentitiesFailedError";
|
|
1182
1290
|
}
|
|
1183
|
-
static code = "
|
|
1291
|
+
static code = "LIST_IDENTITIES_FAILED";
|
|
1184
1292
|
static statusCode = 500;
|
|
1185
|
-
static description = `
|
|
1293
|
+
static description = `Failed to list identities: {message}`;
|
|
1186
1294
|
}
|
|
1187
|
-
class
|
|
1295
|
+
class DeleteIdentityFailedError extends Error {
|
|
1188
1296
|
constructor(body) {
|
|
1189
1297
|
super(
|
|
1190
|
-
`
|
|
1298
|
+
`DELETE_IDENTITY_FAILED: ${body.message}`
|
|
1191
1299
|
);
|
|
1192
1300
|
this.body = body;
|
|
1193
|
-
this.name = "
|
|
1301
|
+
this.name = "DeleteIdentityFailedError";
|
|
1194
1302
|
}
|
|
1195
|
-
static code = "
|
|
1303
|
+
static code = "DELETE_IDENTITY_FAILED";
|
|
1196
1304
|
static statusCode = 500;
|
|
1197
|
-
static description = `Failed to
|
|
1305
|
+
static description = `Failed to delete identity: {message}`;
|
|
1198
1306
|
}
|
|
1199
|
-
class
|
|
1307
|
+
class CreateIdentityFailedError extends Error {
|
|
1200
1308
|
constructor(body) {
|
|
1201
1309
|
super(
|
|
1202
|
-
`
|
|
1310
|
+
`CREATE_IDENTITY_FAILED: ${body.message}`
|
|
1203
1311
|
);
|
|
1204
1312
|
this.body = body;
|
|
1205
|
-
this.name = "
|
|
1313
|
+
this.name = "CreateIdentityFailedError";
|
|
1206
1314
|
}
|
|
1207
|
-
static code = "
|
|
1315
|
+
static code = "CREATE_IDENTITY_FAILED";
|
|
1316
|
+
static statusCode = 500;
|
|
1317
|
+
static description = `Failed to create identity: {message}`;
|
|
1318
|
+
}
|
|
1319
|
+
class VmPermissionNotFoundError extends Error {
|
|
1320
|
+
constructor(body) {
|
|
1321
|
+
super(
|
|
1322
|
+
`VM_PERMISSION_NOT_FOUND: ${body.message}`
|
|
1323
|
+
);
|
|
1324
|
+
this.body = body;
|
|
1325
|
+
this.name = "VmPermissionNotFoundError";
|
|
1326
|
+
}
|
|
1327
|
+
static code = "VM_PERMISSION_NOT_FOUND";
|
|
1328
|
+
static statusCode = 404;
|
|
1329
|
+
static description = `VM permission not found`;
|
|
1330
|
+
}
|
|
1331
|
+
class PermissionNotFoundError extends Error {
|
|
1332
|
+
constructor(body) {
|
|
1333
|
+
super(
|
|
1334
|
+
`PERMISSION_NOT_FOUND: ${body.message}`
|
|
1335
|
+
);
|
|
1336
|
+
this.body = body;
|
|
1337
|
+
this.name = "PermissionNotFoundError";
|
|
1338
|
+
}
|
|
1339
|
+
static code = "PERMISSION_NOT_FOUND";
|
|
1340
|
+
static statusCode = 404;
|
|
1341
|
+
static description = `Permission not found`;
|
|
1342
|
+
}
|
|
1343
|
+
class VmAccessDeniedError extends Error {
|
|
1344
|
+
constructor(body) {
|
|
1345
|
+
super(
|
|
1346
|
+
`VM_ACCESS_DENIED: ${body.message}`
|
|
1347
|
+
);
|
|
1348
|
+
this.body = body;
|
|
1349
|
+
this.name = "VmAccessDeniedError";
|
|
1350
|
+
}
|
|
1351
|
+
static code = "VM_ACCESS_DENIED";
|
|
1208
1352
|
static statusCode = 403;
|
|
1209
|
-
static description = `
|
|
1353
|
+
static description = `You are not allowed to access this VM`;
|
|
1210
1354
|
}
|
|
1211
|
-
class
|
|
1355
|
+
class GitRepositoryAccessDeniedError extends Error {
|
|
1212
1356
|
constructor(body) {
|
|
1213
1357
|
super(
|
|
1214
|
-
`
|
|
1358
|
+
`GIT_REPOSITORY_ACCESS_DENIED: ${body.message}`
|
|
1215
1359
|
);
|
|
1216
1360
|
this.body = body;
|
|
1217
|
-
this.name = "
|
|
1361
|
+
this.name = "GitRepositoryAccessDeniedError";
|
|
1218
1362
|
}
|
|
1219
|
-
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";
|
|
1376
|
+
static statusCode = 404;
|
|
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";
|
|
1220
1436
|
static statusCode = 500;
|
|
1221
|
-
static description = `
|
|
1437
|
+
static description = `Internal error: {message}`;
|
|
1222
1438
|
}
|
|
1223
|
-
class
|
|
1439
|
+
class ExecuteAccessDeniedError extends Error {
|
|
1224
1440
|
constructor(body) {
|
|
1225
1441
|
super(
|
|
1226
|
-
`
|
|
1442
|
+
`EXECUTE_ACCESS_DENIED: ${body.message}`
|
|
1227
1443
|
);
|
|
1228
1444
|
this.body = body;
|
|
1229
|
-
this.name = "
|
|
1445
|
+
this.name = "ExecuteAccessDeniedError";
|
|
1230
1446
|
}
|
|
1231
|
-
static code = "
|
|
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";
|
|
1232
1460
|
static statusCode = 500;
|
|
1233
|
-
static description = `Failed to
|
|
1461
|
+
static description = `Failed to list execute runs: {message}`;
|
|
1234
1462
|
}
|
|
1235
|
-
class
|
|
1463
|
+
class ExecutionErrorError extends Error {
|
|
1236
1464
|
constructor(body) {
|
|
1237
1465
|
super(
|
|
1238
|
-
`
|
|
1466
|
+
`EXECUTION_ERROR: ${body.message}`
|
|
1239
1467
|
);
|
|
1240
1468
|
this.body = body;
|
|
1241
|
-
this.name = "
|
|
1469
|
+
this.name = "ExecutionErrorError";
|
|
1242
1470
|
}
|
|
1243
|
-
static code = "
|
|
1471
|
+
static code = "EXECUTION_ERROR";
|
|
1244
1472
|
static statusCode = 500;
|
|
1245
|
-
static description = `
|
|
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}`;
|
|
1246
1522
|
}
|
|
1247
|
-
class
|
|
1523
|
+
class LockGenerationFailedError extends Error {
|
|
1248
1524
|
constructor(body) {
|
|
1249
1525
|
super(
|
|
1250
|
-
`
|
|
1526
|
+
`LOCK_GENERATION_FAILED: ${body.message}`
|
|
1251
1527
|
);
|
|
1252
1528
|
this.body = body;
|
|
1253
|
-
this.name = "
|
|
1529
|
+
this.name = "LockGenerationFailedError";
|
|
1254
1530
|
}
|
|
1255
|
-
static code = "
|
|
1531
|
+
static code = "LOCK_GENERATION_FAILED";
|
|
1256
1532
|
static statusCode = 500;
|
|
1257
|
-
static description = `Failed to
|
|
1533
|
+
static description = `Failed to generate lock file: {message}`;
|
|
1258
1534
|
}
|
|
1259
|
-
class
|
|
1535
|
+
class WriteScriptFailedError extends Error {
|
|
1260
1536
|
constructor(body) {
|
|
1261
1537
|
super(
|
|
1262
|
-
`
|
|
1538
|
+
`WRITE_SCRIPT_FAILED: ${body.message}`
|
|
1263
1539
|
);
|
|
1264
1540
|
this.body = body;
|
|
1265
|
-
this.name = "
|
|
1541
|
+
this.name = "WriteScriptFailedError";
|
|
1266
1542
|
}
|
|
1267
|
-
static code = "
|
|
1543
|
+
static code = "WRITE_SCRIPT_FAILED";
|
|
1268
1544
|
static statusCode = 500;
|
|
1269
|
-
static description = `Failed to
|
|
1545
|
+
static description = `Failed to write script file: {message}`;
|
|
1270
1546
|
}
|
|
1271
|
-
class
|
|
1547
|
+
class DirectoryCreationFailedError extends Error {
|
|
1272
1548
|
constructor(body) {
|
|
1273
1549
|
super(
|
|
1274
|
-
`
|
|
1550
|
+
`DIRECTORY_CREATION_FAILED: ${body.message}`
|
|
1275
1551
|
);
|
|
1276
1552
|
this.body = body;
|
|
1277
|
-
this.name = "
|
|
1553
|
+
this.name = "DirectoryCreationFailedError";
|
|
1278
1554
|
}
|
|
1279
|
-
static code = "
|
|
1555
|
+
static code = "DIRECTORY_CREATION_FAILED";
|
|
1280
1556
|
static statusCode = 500;
|
|
1281
|
-
static description = `Failed to create
|
|
1557
|
+
static description = `Failed to create script directory: {message}`;
|
|
1282
1558
|
}
|
|
1283
|
-
class
|
|
1559
|
+
class NetworkPermissionsFailedError extends Error {
|
|
1284
1560
|
constructor(body) {
|
|
1285
1561
|
super(
|
|
1286
|
-
`
|
|
1562
|
+
`NETWORK_PERMISSIONS_FAILED: ${body.message}`
|
|
1287
1563
|
);
|
|
1288
1564
|
this.body = body;
|
|
1289
|
-
this.name = "
|
|
1565
|
+
this.name = "NetworkPermissionsFailedError";
|
|
1290
1566
|
}
|
|
1291
|
-
static code = "
|
|
1292
|
-
static statusCode =
|
|
1293
|
-
static description = `Failed to
|
|
1567
|
+
static code = "NETWORK_PERMISSIONS_FAILED";
|
|
1568
|
+
static statusCode = 500;
|
|
1569
|
+
static description = `Failed to insert network permissions: {message}`;
|
|
1294
1570
|
}
|
|
1295
|
-
class
|
|
1571
|
+
class LoggingFailedError extends Error {
|
|
1296
1572
|
constructor(body) {
|
|
1297
1573
|
super(
|
|
1298
|
-
`
|
|
1574
|
+
`LOGGING_FAILED: ${body.message}`
|
|
1299
1575
|
);
|
|
1300
1576
|
this.body = body;
|
|
1301
|
-
this.name = "
|
|
1577
|
+
this.name = "LoggingFailedError";
|
|
1302
1578
|
}
|
|
1303
|
-
static code = "
|
|
1304
|
-
static statusCode =
|
|
1305
|
-
static description = `
|
|
1579
|
+
static code = "LOGGING_FAILED";
|
|
1580
|
+
static statusCode = 500;
|
|
1581
|
+
static description = `Failed to log execute run: {message}`;
|
|
1306
1582
|
}
|
|
1307
|
-
class
|
|
1583
|
+
class RunNotFoundError extends Error {
|
|
1308
1584
|
constructor(body) {
|
|
1309
1585
|
super(
|
|
1310
|
-
`
|
|
1586
|
+
`RUN_NOT_FOUND: ${body.message}`
|
|
1311
1587
|
);
|
|
1312
1588
|
this.body = body;
|
|
1313
|
-
this.name = "
|
|
1589
|
+
this.name = "RunNotFoundError";
|
|
1314
1590
|
}
|
|
1315
|
-
static code = "
|
|
1591
|
+
static code = "RUN_NOT_FOUND";
|
|
1316
1592
|
static statusCode = 404;
|
|
1317
|
-
static description = `
|
|
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 {
|
|
1739
|
+
class DomainOwnershipVerificationFailedError extends Error {
|
|
1524
1740
|
constructor(body) {
|
|
1525
1741
|
super(
|
|
1526
|
-
`
|
|
1742
|
+
`DOMAIN_OWNERSHIP_VERIFICATION_FAILED: ${body.message}`
|
|
1527
1743
|
);
|
|
1528
1744
|
this.body = body;
|
|
1529
|
-
this.name = "
|
|
1745
|
+
this.name = "DomainOwnershipVerificationFailedError";
|
|
1530
1746
|
}
|
|
1531
|
-
static code = "
|
|
1532
|
-
static statusCode =
|
|
1533
|
-
static description = `
|
|
1747
|
+
static code = "DOMAIN_OWNERSHIP_VERIFICATION_FAILED";
|
|
1748
|
+
static statusCode = 403;
|
|
1749
|
+
static description = `Domain ownership verification failed`;
|
|
1534
1750
|
}
|
|
1535
|
-
class
|
|
1751
|
+
class ErrorDeletingRecordError extends Error {
|
|
1536
1752
|
constructor(body) {
|
|
1537
1753
|
super(
|
|
1538
|
-
`
|
|
1754
|
+
`ERROR_DELETING_RECORD: ${body.message}`
|
|
1539
1755
|
);
|
|
1540
1756
|
this.body = body;
|
|
1541
|
-
this.name = "
|
|
1757
|
+
this.name = "ErrorDeletingRecordError";
|
|
1542
1758
|
}
|
|
1543
|
-
static code = "
|
|
1759
|
+
static code = "ERROR_DELETING_RECORD";
|
|
1544
1760
|
static statusCode = 500;
|
|
1545
|
-
static description = `
|
|
1761
|
+
static description = `Error deleting DNS record for {domain}/{name}: {message}`;
|
|
1546
1762
|
}
|
|
1547
|
-
class
|
|
1763
|
+
class RecordOwnershipErrorError extends Error {
|
|
1548
1764
|
constructor(body) {
|
|
1549
1765
|
super(
|
|
1550
|
-
`
|
|
1766
|
+
`RECORD_OWNERSHIP_ERROR: ${body.message}`
|
|
1551
1767
|
);
|
|
1552
1768
|
this.body = body;
|
|
1553
|
-
this.name = "
|
|
1769
|
+
this.name = "RecordOwnershipErrorError";
|
|
1554
1770
|
}
|
|
1555
|
-
static code = "
|
|
1771
|
+
static code = "RECORD_OWNERSHIP_ERROR";
|
|
1556
1772
|
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}`;
|
|
1773
|
+
static description = `Account {account_id} does not own record {record_id}`;
|
|
1570
1774
|
}
|
|
1571
|
-
class
|
|
1775
|
+
class ErrorCreatingRecordError extends Error {
|
|
1572
1776
|
constructor(body) {
|
|
1573
1777
|
super(
|
|
1574
|
-
`
|
|
1778
|
+
`ERROR_CREATING_RECORD: ${body.message}`
|
|
1575
1779
|
);
|
|
1576
1780
|
this.body = body;
|
|
1577
|
-
this.name = "
|
|
1781
|
+
this.name = "ErrorCreatingRecordError";
|
|
1578
1782
|
}
|
|
1579
|
-
static code = "
|
|
1783
|
+
static code = "ERROR_CREATING_RECORD";
|
|
1580
1784
|
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}`;
|
|
1606
|
-
}
|
|
1607
|
-
class PermissionAlreadyExistsError extends Error {
|
|
1608
|
-
constructor(body) {
|
|
1609
|
-
super(
|
|
1610
|
-
`PERMISSION_ALREADY_EXISTS: ${body.message}`
|
|
1611
|
-
);
|
|
1612
|
-
this.body = body;
|
|
1613
|
-
this.name = "PermissionAlreadyExistsError";
|
|
1614
|
-
}
|
|
1615
|
-
static code = "PERMISSION_ALREADY_EXISTS";
|
|
1616
|
-
static statusCode = 409;
|
|
1617
|
-
static description = `Permission already exists`;
|
|
1785
|
+
static description = `Error creating DNS record: {message}`;
|
|
1618
1786
|
}
|
|
1619
|
-
class
|
|
1787
|
+
class DomainOwnershipErrorError extends Error {
|
|
1620
1788
|
constructor(body) {
|
|
1621
1789
|
super(
|
|
1622
|
-
`
|
|
1790
|
+
`DOMAIN_OWNERSHIP_ERROR: ${body.message}`
|
|
1623
1791
|
);
|
|
1624
1792
|
this.body = body;
|
|
1625
|
-
this.name = "
|
|
1793
|
+
this.name = "DomainOwnershipErrorError";
|
|
1626
1794
|
}
|
|
1627
|
-
static code = "
|
|
1628
|
-
static statusCode =
|
|
1629
|
-
static description = `
|
|
1795
|
+
static code = "DOMAIN_OWNERSHIP_ERROR";
|
|
1796
|
+
static statusCode = 403;
|
|
1797
|
+
static description = `Account {account_id} does not own domain {domain}`;
|
|
1630
1798
|
}
|
|
1631
|
-
class
|
|
1799
|
+
class BrowserOperationFailedError extends Error {
|
|
1632
1800
|
constructor(body) {
|
|
1633
1801
|
super(
|
|
1634
|
-
`
|
|
1802
|
+
`BROWSER_OPERATION_FAILED: ${body.message}`
|
|
1635
1803
|
);
|
|
1636
1804
|
this.body = body;
|
|
1637
|
-
this.name = "
|
|
1805
|
+
this.name = "BrowserOperationFailedError";
|
|
1638
1806
|
}
|
|
1639
|
-
static code = "
|
|
1807
|
+
static code = "BROWSER_OPERATION_FAILED";
|
|
1640
1808
|
static statusCode = 500;
|
|
1641
|
-
static description = `
|
|
1809
|
+
static description = `Browser operation failed: {message}`;
|
|
1642
1810
|
}
|
|
1643
|
-
class
|
|
1811
|
+
class WatchFilesFailedError extends Error {
|
|
1644
1812
|
constructor(body) {
|
|
1645
1813
|
super(
|
|
1646
|
-
`
|
|
1814
|
+
`WATCH_FILES_FAILED: ${body.message}`
|
|
1647
1815
|
);
|
|
1648
1816
|
this.body = body;
|
|
1649
|
-
this.name = "
|
|
1817
|
+
this.name = "WatchFilesFailedError";
|
|
1650
1818
|
}
|
|
1651
|
-
static code = "
|
|
1819
|
+
static code = "WATCH_FILES_FAILED";
|
|
1652
1820
|
static statusCode = 500;
|
|
1653
|
-
static description = `Failed to
|
|
1821
|
+
static description = `Failed to watch files: {message}`;
|
|
1654
1822
|
}
|
|
1655
|
-
class
|
|
1823
|
+
class LogsFailedError extends Error {
|
|
1656
1824
|
constructor(body) {
|
|
1657
1825
|
super(
|
|
1658
|
-
`
|
|
1826
|
+
`LOGS_FAILED: ${body.message}`
|
|
1659
1827
|
);
|
|
1660
1828
|
this.body = body;
|
|
1661
|
-
this.name = "
|
|
1829
|
+
this.name = "LogsFailedError";
|
|
1662
1830
|
}
|
|
1663
|
-
static code = "
|
|
1831
|
+
static code = "LOGS_FAILED";
|
|
1664
1832
|
static statusCode = 500;
|
|
1665
|
-
static description = `Failed to
|
|
1833
|
+
static description = `Failed to get logs: {message}`;
|
|
1666
1834
|
}
|
|
1667
|
-
class
|
|
1835
|
+
class StatusFailedError extends Error {
|
|
1668
1836
|
constructor(body) {
|
|
1669
1837
|
super(
|
|
1670
|
-
`
|
|
1838
|
+
`STATUS_FAILED: ${body.message}`
|
|
1671
1839
|
);
|
|
1672
1840
|
this.body = body;
|
|
1673
|
-
this.name = "
|
|
1841
|
+
this.name = "StatusFailedError";
|
|
1674
1842
|
}
|
|
1675
|
-
static code = "
|
|
1843
|
+
static code = "STATUS_FAILED";
|
|
1676
1844
|
static statusCode = 500;
|
|
1677
|
-
static description = `Failed to get
|
|
1845
|
+
static description = `Failed to get dev server status: {message}`;
|
|
1678
1846
|
}
|
|
1679
|
-
class
|
|
1847
|
+
class RestartFailedError extends Error {
|
|
1680
1848
|
constructor(body) {
|
|
1681
1849
|
super(
|
|
1682
|
-
`
|
|
1850
|
+
`RESTART_FAILED: ${body.message}`
|
|
1683
1851
|
);
|
|
1684
1852
|
this.body = body;
|
|
1685
|
-
this.name = "
|
|
1853
|
+
this.name = "RestartFailedError";
|
|
1686
1854
|
}
|
|
1687
|
-
static code = "
|
|
1855
|
+
static code = "RESTART_FAILED";
|
|
1688
1856
|
static statusCode = 500;
|
|
1689
|
-
static description = `Failed to
|
|
1857
|
+
static description = `Failed to restart dev server: {message}`;
|
|
1690
1858
|
}
|
|
1691
|
-
class
|
|
1859
|
+
class ShutdownFailedError extends Error {
|
|
1692
1860
|
constructor(body) {
|
|
1693
1861
|
super(
|
|
1694
|
-
`
|
|
1862
|
+
`SHUTDOWN_FAILED: ${body.message}`
|
|
1695
1863
|
);
|
|
1696
1864
|
this.body = body;
|
|
1697
|
-
this.name = "
|
|
1865
|
+
this.name = "ShutdownFailedError";
|
|
1698
1866
|
}
|
|
1699
|
-
static code = "
|
|
1867
|
+
static code = "SHUTDOWN_FAILED";
|
|
1700
1868
|
static statusCode = 500;
|
|
1701
|
-
static description = `Failed to
|
|
1869
|
+
static description = `Failed to shutdown dev server: {message}`;
|
|
1702
1870
|
}
|
|
1703
|
-
class
|
|
1871
|
+
class CommitFailedError extends Error {
|
|
1704
1872
|
constructor(body) {
|
|
1705
1873
|
super(
|
|
1706
|
-
`
|
|
1874
|
+
`COMMIT_FAILED: ${body.message}`
|
|
1707
1875
|
);
|
|
1708
1876
|
this.body = body;
|
|
1709
|
-
this.name = "
|
|
1877
|
+
this.name = "CommitFailedError";
|
|
1710
1878
|
}
|
|
1711
|
-
static code = "
|
|
1879
|
+
static code = "COMMIT_FAILED";
|
|
1712
1880
|
static statusCode = 500;
|
|
1713
|
-
static description = `Failed to
|
|
1881
|
+
static description = `Failed to commit changes: {message}`;
|
|
1714
1882
|
}
|
|
1715
|
-
class
|
|
1883
|
+
class WriteFileFailedError extends Error {
|
|
1716
1884
|
constructor(body) {
|
|
1717
1885
|
super(
|
|
1718
|
-
`
|
|
1886
|
+
`WRITE_FILE_FAILED: ${body.message}`
|
|
1719
1887
|
);
|
|
1720
1888
|
this.body = body;
|
|
1721
|
-
this.name = "
|
|
1889
|
+
this.name = "WriteFileFailedError";
|
|
1722
1890
|
}
|
|
1723
|
-
static code = "
|
|
1891
|
+
static code = "WRITE_FILE_FAILED";
|
|
1724
1892
|
static statusCode = 500;
|
|
1725
|
-
static description = `Failed to
|
|
1893
|
+
static description = `Failed to write file: {message}`;
|
|
1726
1894
|
}
|
|
1727
|
-
class
|
|
1895
|
+
class ReadFileFailedError extends Error {
|
|
1728
1896
|
constructor(body) {
|
|
1729
1897
|
super(
|
|
1730
|
-
`
|
|
1898
|
+
`READ_FILE_FAILED: ${body.message}`
|
|
1731
1899
|
);
|
|
1732
1900
|
this.body = body;
|
|
1733
|
-
this.name = "
|
|
1901
|
+
this.name = "ReadFileFailedError";
|
|
1734
1902
|
}
|
|
1735
|
-
static code = "
|
|
1903
|
+
static code = "READ_FILE_FAILED";
|
|
1736
1904
|
static statusCode = 500;
|
|
1737
|
-
static description = `Failed to
|
|
1905
|
+
static description = `Failed to read file: {message}`;
|
|
1738
1906
|
}
|
|
1739
|
-
class
|
|
1907
|
+
class ExecutionFailedError extends Error {
|
|
1740
1908
|
constructor(body) {
|
|
1741
1909
|
super(
|
|
1742
|
-
`
|
|
1910
|
+
`EXECUTION_FAILED: ${body.message}`
|
|
1743
1911
|
);
|
|
1744
1912
|
this.body = body;
|
|
1745
|
-
this.name = "
|
|
1913
|
+
this.name = "ExecutionFailedError";
|
|
1746
1914
|
}
|
|
1747
|
-
static code = "
|
|
1915
|
+
static code = "EXECUTION_FAILED";
|
|
1748
1916
|
static statusCode = 500;
|
|
1749
|
-
static description = `Failed to
|
|
1917
|
+
static description = `Failed to execute command: {message}`;
|
|
1750
1918
|
}
|
|
1751
|
-
class
|
|
1919
|
+
class RequestFailedError extends Error {
|
|
1752
1920
|
constructor(body) {
|
|
1753
1921
|
super(
|
|
1754
|
-
`
|
|
1922
|
+
`REQUEST_FAILED: ${body.message}`
|
|
1755
1923
|
);
|
|
1756
1924
|
this.body = body;
|
|
1757
|
-
this.name = "
|
|
1925
|
+
this.name = "RequestFailedError";
|
|
1758
1926
|
}
|
|
1759
|
-
static code = "
|
|
1760
|
-
static statusCode =
|
|
1761
|
-
static description = `
|
|
1927
|
+
static code = "REQUEST_FAILED";
|
|
1928
|
+
static statusCode = 500;
|
|
1929
|
+
static description = `Failed to request dev server: {message}`;
|
|
1762
1930
|
}
|
|
1763
|
-
class
|
|
1931
|
+
class DevServerFileNotFoundError extends Error {
|
|
1764
1932
|
constructor(body) {
|
|
1765
1933
|
super(
|
|
1766
|
-
`
|
|
1934
|
+
`DEV_SERVER_FILE_NOT_FOUND: ${body.message}`
|
|
1767
1935
|
);
|
|
1768
1936
|
this.body = body;
|
|
1769
|
-
this.name = "
|
|
1937
|
+
this.name = "DevServerFileNotFoundError";
|
|
1770
1938
|
}
|
|
1771
|
-
static code = "
|
|
1939
|
+
static code = "DEV_SERVER_FILE_NOT_FOUND";
|
|
1772
1940
|
static statusCode = 404;
|
|
1773
|
-
static description = `
|
|
1941
|
+
static description = `Dev server file not found: {path}`;
|
|
1774
1942
|
}
|
|
1775
|
-
class
|
|
1943
|
+
class DevServerInvalidRequestError extends Error {
|
|
1776
1944
|
constructor(body) {
|
|
1777
1945
|
super(
|
|
1778
|
-
`
|
|
1946
|
+
`DEV_SERVER_INVALID_REQUEST: ${body.message}`
|
|
1779
1947
|
);
|
|
1780
1948
|
this.body = body;
|
|
1781
|
-
this.name = "
|
|
1949
|
+
this.name = "DevServerInvalidRequestError";
|
|
1782
1950
|
}
|
|
1783
|
-
static code = "
|
|
1784
|
-
static statusCode =
|
|
1785
|
-
static description = `
|
|
1951
|
+
static code = "DEV_SERVER_INVALID_REQUEST";
|
|
1952
|
+
static statusCode = 400;
|
|
1953
|
+
static description = `Invalid dev server request: {message}`;
|
|
1786
1954
|
}
|
|
1787
|
-
class
|
|
1955
|
+
class DevServerNotFoundError extends Error {
|
|
1788
1956
|
constructor(body) {
|
|
1789
1957
|
super(
|
|
1790
|
-
`
|
|
1958
|
+
`DEV_SERVER_NOT_FOUND: ${body.message}`
|
|
1791
1959
|
);
|
|
1792
1960
|
this.body = body;
|
|
1793
|
-
this.name = "
|
|
1961
|
+
this.name = "DevServerNotFoundError";
|
|
1794
1962
|
}
|
|
1795
|
-
static code = "
|
|
1796
|
-
static statusCode =
|
|
1797
|
-
static description = `
|
|
1963
|
+
static code = "DEV_SERVER_NOT_FOUND";
|
|
1964
|
+
static statusCode = 404;
|
|
1965
|
+
static description = `Dev server not found: {server_id}`;
|
|
1798
1966
|
}
|
|
1799
|
-
class
|
|
1967
|
+
class BuildFailedError extends Error {
|
|
1800
1968
|
constructor(body) {
|
|
1801
1969
|
super(
|
|
1802
|
-
`
|
|
1970
|
+
`BUILD_FAILED: ${body.message}`
|
|
1803
1971
|
);
|
|
1804
1972
|
this.body = body;
|
|
1805
|
-
this.name = "
|
|
1973
|
+
this.name = "BuildFailedError";
|
|
1806
1974
|
}
|
|
1807
|
-
static code = "
|
|
1808
|
-
static statusCode =
|
|
1809
|
-
static description = `
|
|
1975
|
+
static code = "BUILD_FAILED";
|
|
1976
|
+
static statusCode = 500;
|
|
1977
|
+
static description = `Build failed on VM {vm_id}`;
|
|
1810
1978
|
}
|
|
1811
|
-
class
|
|
1979
|
+
class ServerDeploymentFailedError extends Error {
|
|
1812
1980
|
constructor(body) {
|
|
1813
1981
|
super(
|
|
1814
|
-
`
|
|
1982
|
+
`SERVER_DEPLOYMENT_FAILED: ${body.message}`
|
|
1815
1983
|
);
|
|
1816
1984
|
this.body = body;
|
|
1817
|
-
this.name = "
|
|
1985
|
+
this.name = "ServerDeploymentFailedError";
|
|
1818
1986
|
}
|
|
1819
|
-
static code = "
|
|
1820
|
-
static statusCode =
|
|
1821
|
-
static description = `
|
|
1987
|
+
static code = "SERVER_DEPLOYMENT_FAILED";
|
|
1988
|
+
static statusCode = 502;
|
|
1989
|
+
static description = `Failed to deploy to servers`;
|
|
1822
1990
|
}
|
|
1823
|
-
class
|
|
1991
|
+
class LockfileErrorError extends Error {
|
|
1824
1992
|
constructor(body) {
|
|
1825
1993
|
super(
|
|
1826
|
-
`
|
|
1994
|
+
`LOCKFILE_ERROR: ${body.message}`
|
|
1827
1995
|
);
|
|
1828
1996
|
this.body = body;
|
|
1829
|
-
this.name = "
|
|
1997
|
+
this.name = "LockfileErrorError";
|
|
1830
1998
|
}
|
|
1831
|
-
static code = "
|
|
1832
|
-
static statusCode =
|
|
1833
|
-
static description = `
|
|
1999
|
+
static code = "LOCKFILE_ERROR";
|
|
2000
|
+
static statusCode = 500;
|
|
2001
|
+
static description = `Failed to generate dependency lockfile: {message}`;
|
|
1834
2002
|
}
|
|
1835
|
-
class
|
|
2003
|
+
class UploadErrorError extends Error {
|
|
1836
2004
|
constructor(body) {
|
|
1837
2005
|
super(
|
|
1838
|
-
`
|
|
2006
|
+
`UPLOAD_ERROR: ${body.message}`
|
|
1839
2007
|
);
|
|
1840
2008
|
this.body = body;
|
|
1841
|
-
this.name = "
|
|
2009
|
+
this.name = "UploadErrorError";
|
|
1842
2010
|
}
|
|
1843
|
-
static code = "
|
|
1844
|
-
static statusCode =
|
|
1845
|
-
static description = `
|
|
2011
|
+
static code = "UPLOAD_ERROR";
|
|
2012
|
+
static statusCode = 500;
|
|
2013
|
+
static description = `Failed to upload deployment to storage`;
|
|
1846
2014
|
}
|
|
1847
|
-
class
|
|
2015
|
+
class DomainMappingErrorError extends Error {
|
|
1848
2016
|
constructor(body) {
|
|
1849
2017
|
super(
|
|
1850
|
-
`
|
|
2018
|
+
`DOMAIN_MAPPING_ERROR: ${body.message}`
|
|
1851
2019
|
);
|
|
1852
2020
|
this.body = body;
|
|
1853
|
-
this.name = "
|
|
2021
|
+
this.name = "DomainMappingErrorError";
|
|
1854
2022
|
}
|
|
1855
|
-
static code = "
|
|
1856
|
-
static statusCode =
|
|
1857
|
-
static description = `
|
|
2023
|
+
static code = "DOMAIN_MAPPING_ERROR";
|
|
2024
|
+
static statusCode = 500;
|
|
2025
|
+
static description = `Failed to configure domain mapping for: {domain}`;
|
|
1858
2026
|
}
|
|
1859
|
-
class
|
|
2027
|
+
class CertificateProvisioningErrorError extends Error {
|
|
1860
2028
|
constructor(body) {
|
|
1861
2029
|
super(
|
|
1862
|
-
`
|
|
2030
|
+
`CERTIFICATE_PROVISIONING_ERROR: ${body.message}`
|
|
1863
2031
|
);
|
|
1864
2032
|
this.body = body;
|
|
1865
|
-
this.name = "
|
|
2033
|
+
this.name = "CertificateProvisioningErrorError";
|
|
1866
2034
|
}
|
|
1867
|
-
static code = "
|
|
1868
|
-
static statusCode =
|
|
1869
|
-
static description = `
|
|
2035
|
+
static code = "CERTIFICATE_PROVISIONING_ERROR";
|
|
2036
|
+
static statusCode = 502;
|
|
2037
|
+
static description = `Failed to provision certificate for domain: {domain}`;
|
|
1870
2038
|
}
|
|
1871
|
-
class
|
|
2039
|
+
class NoEntrypointFoundError extends Error {
|
|
1872
2040
|
constructor(body) {
|
|
1873
2041
|
super(
|
|
1874
|
-
`
|
|
2042
|
+
`NO_ENTRYPOINT_FOUND: ${body.message}`
|
|
1875
2043
|
);
|
|
1876
2044
|
this.body = body;
|
|
1877
|
-
this.name = "
|
|
2045
|
+
this.name = "NoEntrypointFoundError";
|
|
1878
2046
|
}
|
|
1879
|
-
static code = "
|
|
1880
|
-
static statusCode =
|
|
1881
|
-
static description = `
|
|
2047
|
+
static code = "NO_ENTRYPOINT_FOUND";
|
|
2048
|
+
static statusCode = 400;
|
|
2049
|
+
static description = `No entrypoint found in deployment`;
|
|
1882
2050
|
}
|
|
1883
|
-
class
|
|
2051
|
+
class EntrypointNotFoundError extends Error {
|
|
1884
2052
|
constructor(body) {
|
|
1885
2053
|
super(
|
|
1886
|
-
`
|
|
2054
|
+
`ENTRYPOINT_NOT_FOUND: ${body.message}`
|
|
1887
2055
|
);
|
|
1888
2056
|
this.body = body;
|
|
1889
|
-
this.name = "
|
|
2057
|
+
this.name = "EntrypointNotFoundError";
|
|
1890
2058
|
}
|
|
1891
|
-
static code = "
|
|
1892
|
-
static statusCode =
|
|
1893
|
-
static description = `
|
|
2059
|
+
static code = "ENTRYPOINT_NOT_FOUND";
|
|
2060
|
+
static statusCode = 400;
|
|
2061
|
+
static description = `Entrypoint not found: {entrypoint}`;
|
|
1894
2062
|
}
|
|
1895
|
-
class
|
|
2063
|
+
class NoDomainOwnershipError extends Error {
|
|
1896
2064
|
constructor(body) {
|
|
1897
2065
|
super(
|
|
1898
|
-
`
|
|
2066
|
+
`NO_DOMAIN_OWNERSHIP: ${body.message}`
|
|
1899
2067
|
);
|
|
1900
2068
|
this.body = body;
|
|
1901
|
-
this.name = "
|
|
2069
|
+
this.name = "NoDomainOwnershipError";
|
|
1902
2070
|
}
|
|
1903
|
-
static code = "
|
|
1904
|
-
static statusCode =
|
|
1905
|
-
static description = `
|
|
2071
|
+
static code = "NO_DOMAIN_OWNERSHIP";
|
|
2072
|
+
static statusCode = 403;
|
|
2073
|
+
static description = `No domain ownership for: {domain}`;
|
|
1906
2074
|
}
|
|
1907
|
-
class
|
|
2075
|
+
class InvalidDomainsError extends Error {
|
|
1908
2076
|
constructor(body) {
|
|
1909
2077
|
super(
|
|
1910
|
-
`
|
|
2078
|
+
`INVALID_DOMAINS: ${body.message}`
|
|
1911
2079
|
);
|
|
1912
2080
|
this.body = body;
|
|
1913
|
-
this.name = "
|
|
2081
|
+
this.name = "InvalidDomainsError";
|
|
1914
2082
|
}
|
|
1915
|
-
static code = "
|
|
1916
|
-
static statusCode =
|
|
1917
|
-
static description = `
|
|
2083
|
+
static code = "INVALID_DOMAINS";
|
|
2084
|
+
static statusCode = 400;
|
|
2085
|
+
static description = `Invalid domains provided`;
|
|
1918
2086
|
}
|
|
1919
|
-
class
|
|
2087
|
+
class WebDeploymentBadRequestError extends Error {
|
|
1920
2088
|
constructor(body) {
|
|
1921
2089
|
super(
|
|
1922
|
-
`
|
|
2090
|
+
`WEB_DEPLOYMENT_BAD_REQUEST: ${body.message}`
|
|
1923
2091
|
);
|
|
1924
2092
|
this.body = body;
|
|
1925
|
-
this.name = "
|
|
2093
|
+
this.name = "WebDeploymentBadRequestError";
|
|
1926
2094
|
}
|
|
1927
|
-
static code = "
|
|
1928
|
-
static statusCode =
|
|
1929
|
-
static description = `
|
|
2095
|
+
static code = "WEB_DEPLOYMENT_BAD_REQUEST";
|
|
2096
|
+
static statusCode = 400;
|
|
2097
|
+
static description = `Bad request: {message}`;
|
|
1930
2098
|
}
|
|
1931
|
-
class
|
|
2099
|
+
class DeploymentNotFoundError extends Error {
|
|
1932
2100
|
constructor(body) {
|
|
1933
2101
|
super(
|
|
1934
|
-
`
|
|
2102
|
+
`DEPLOYMENT_NOT_FOUND: ${body.message}`
|
|
1935
2103
|
);
|
|
1936
2104
|
this.body = body;
|
|
1937
|
-
this.name = "
|
|
2105
|
+
this.name = "DeploymentNotFoundError";
|
|
1938
2106
|
}
|
|
1939
|
-
static code = "
|
|
1940
|
-
static statusCode =
|
|
1941
|
-
static description = `
|
|
2107
|
+
static code = "DEPLOYMENT_NOT_FOUND";
|
|
2108
|
+
static statusCode = 404;
|
|
2109
|
+
static description = `Deployment not found`;
|
|
1942
2110
|
}
|
|
1943
|
-
class
|
|
2111
|
+
class DatabaseErrorError extends Error {
|
|
1944
2112
|
constructor(body) {
|
|
1945
2113
|
super(
|
|
1946
|
-
`
|
|
2114
|
+
`DATABASE_ERROR: ${body.message}`
|
|
1947
2115
|
);
|
|
1948
2116
|
this.body = body;
|
|
1949
|
-
this.name = "
|
|
2117
|
+
this.name = "DatabaseErrorError";
|
|
1950
2118
|
}
|
|
1951
|
-
static code = "
|
|
2119
|
+
static code = "DATABASE_ERROR";
|
|
1952
2120
|
static statusCode = 500;
|
|
1953
|
-
static description = `
|
|
2121
|
+
static description = `Database operation failed: {message}`;
|
|
1954
2122
|
}
|
|
1955
|
-
class
|
|
2123
|
+
class TriggerErrorError extends Error {
|
|
1956
2124
|
constructor(body) {
|
|
1957
2125
|
super(
|
|
1958
|
-
`
|
|
2126
|
+
`TRIGGER_ERROR: ${body.message}`
|
|
1959
2127
|
);
|
|
1960
2128
|
this.body = body;
|
|
1961
|
-
this.name = "
|
|
2129
|
+
this.name = "TriggerErrorError";
|
|
1962
2130
|
}
|
|
1963
|
-
static code = "
|
|
2131
|
+
static code = "TRIGGER_ERROR";
|
|
1964
2132
|
static statusCode = 500;
|
|
1965
|
-
static description = `Failed to
|
|
2133
|
+
static description = `Failed to manage triggers: {message}`;
|
|
1966
2134
|
}
|
|
1967
|
-
class
|
|
2135
|
+
class TokenErrorError extends Error {
|
|
1968
2136
|
constructor(body) {
|
|
1969
2137
|
super(
|
|
1970
|
-
`
|
|
2138
|
+
`TOKEN_ERROR: ${body.message}`
|
|
1971
2139
|
);
|
|
1972
2140
|
this.body = body;
|
|
1973
|
-
this.name = "
|
|
2141
|
+
this.name = "TokenErrorError";
|
|
1974
2142
|
}
|
|
1975
|
-
static code = "
|
|
2143
|
+
static code = "TOKEN_ERROR";
|
|
1976
2144
|
static statusCode = 500;
|
|
1977
|
-
static description = `Failed to
|
|
2145
|
+
static description = `Failed to manage tokens: {message}`;
|
|
1978
2146
|
}
|
|
1979
|
-
class
|
|
2147
|
+
class PermissionErrorError extends Error {
|
|
1980
2148
|
constructor(body) {
|
|
1981
2149
|
super(
|
|
1982
|
-
`
|
|
2150
|
+
`PERMISSION_ERROR: ${body.message}`
|
|
1983
2151
|
);
|
|
1984
2152
|
this.body = body;
|
|
1985
|
-
this.name = "
|
|
2153
|
+
this.name = "PermissionErrorError";
|
|
1986
2154
|
}
|
|
1987
|
-
static code = "
|
|
2155
|
+
static code = "PERMISSION_ERROR";
|
|
1988
2156
|
static statusCode = 500;
|
|
1989
|
-
static description = `Failed to
|
|
2157
|
+
static description = `Failed to manage permissions: {message}`;
|
|
1990
2158
|
}
|
|
1991
|
-
class
|
|
2159
|
+
class IdentityErrorError extends Error {
|
|
1992
2160
|
constructor(body) {
|
|
1993
2161
|
super(
|
|
1994
|
-
`
|
|
2162
|
+
`IDENTITY_ERROR: ${body.message}`
|
|
1995
2163
|
);
|
|
1996
2164
|
this.body = body;
|
|
1997
|
-
this.name = "
|
|
2165
|
+
this.name = "IdentityErrorError";
|
|
1998
2166
|
}
|
|
1999
|
-
static code = "
|
|
2167
|
+
static code = "IDENTITY_ERROR";
|
|
2000
2168
|
static statusCode = 500;
|
|
2001
|
-
static description = `Failed to
|
|
2169
|
+
static description = `Failed to manage identity: {message}`;
|
|
2002
2170
|
}
|
|
2003
|
-
class
|
|
2171
|
+
class GetContentFailedError extends Error {
|
|
2004
2172
|
constructor(body) {
|
|
2005
2173
|
super(
|
|
2006
|
-
`
|
|
2174
|
+
`GET_CONTENT_FAILED: ${body.message}`
|
|
2007
2175
|
);
|
|
2008
2176
|
this.body = body;
|
|
2009
|
-
this.name = "
|
|
2177
|
+
this.name = "GetContentFailedError";
|
|
2010
2178
|
}
|
|
2011
|
-
static code = "
|
|
2179
|
+
static code = "GET_CONTENT_FAILED";
|
|
2012
2180
|
static statusCode = 500;
|
|
2013
|
-
static description = `Failed to
|
|
2181
|
+
static description = `Failed to get content: {message}`;
|
|
2014
2182
|
}
|
|
2015
|
-
class
|
|
2183
|
+
class ContentNotFoundError extends Error {
|
|
2016
2184
|
constructor(body) {
|
|
2017
2185
|
super(
|
|
2018
|
-
`
|
|
2186
|
+
`CONTENT_NOT_FOUND: ${body.message}`
|
|
2019
2187
|
);
|
|
2020
2188
|
this.body = body;
|
|
2021
|
-
this.name = "
|
|
2189
|
+
this.name = "ContentNotFoundError";
|
|
2022
2190
|
}
|
|
2023
|
-
static code = "
|
|
2191
|
+
static code = "CONTENT_NOT_FOUND";
|
|
2024
2192
|
static statusCode = 404;
|
|
2025
|
-
static description = `
|
|
2193
|
+
static description = `Content not found: {path}`;
|
|
2026
2194
|
}
|
|
2027
|
-
class
|
|
2195
|
+
class DownloadFailedError extends Error {
|
|
2028
2196
|
constructor(body) {
|
|
2029
2197
|
super(
|
|
2030
|
-
`
|
|
2198
|
+
`DOWNLOAD_FAILED: ${body.message}`
|
|
2031
2199
|
);
|
|
2032
2200
|
this.body = body;
|
|
2033
|
-
this.name = "
|
|
2201
|
+
this.name = "DownloadFailedError";
|
|
2034
2202
|
}
|
|
2035
|
-
static code = "
|
|
2203
|
+
static code = "DOWNLOAD_FAILED";
|
|
2036
2204
|
static statusCode = 500;
|
|
2037
|
-
static description = `
|
|
2205
|
+
static description = `Failed to download repository: {message}`;
|
|
2038
2206
|
}
|
|
2039
|
-
class
|
|
2207
|
+
class GitServerErrorError extends Error {
|
|
2040
2208
|
constructor(body) {
|
|
2041
2209
|
super(
|
|
2042
|
-
`
|
|
2210
|
+
`GIT_SERVER_ERROR: ${body.message}`
|
|
2043
2211
|
);
|
|
2044
2212
|
this.body = body;
|
|
2045
|
-
this.name = "
|
|
2213
|
+
this.name = "GitServerErrorError";
|
|
2046
2214
|
}
|
|
2047
|
-
static code = "
|
|
2215
|
+
static code = "GIT_SERVER_ERROR";
|
|
2048
2216
|
static statusCode = 500;
|
|
2049
|
-
static description = `
|
|
2217
|
+
static description = `Git server error: {message}`;
|
|
2050
2218
|
}
|
|
2051
|
-
class
|
|
2219
|
+
class ParseResponseErrorError extends Error {
|
|
2052
2220
|
constructor(body) {
|
|
2053
2221
|
super(
|
|
2054
|
-
`
|
|
2222
|
+
`PARSE_RESPONSE_ERROR: ${body.message}`
|
|
2055
2223
|
);
|
|
2056
2224
|
this.body = body;
|
|
2057
|
-
this.name = "
|
|
2225
|
+
this.name = "ParseResponseErrorError";
|
|
2058
2226
|
}
|
|
2059
|
-
static code = "
|
|
2060
|
-
static statusCode =
|
|
2061
|
-
static description = `
|
|
2227
|
+
static code = "PARSE_RESPONSE_ERROR";
|
|
2228
|
+
static statusCode = 500;
|
|
2229
|
+
static description = `Failed to parse response from Git server: {message}`;
|
|
2062
2230
|
}
|
|
2063
|
-
class
|
|
2231
|
+
class RepositoryAccessDeniedError extends Error {
|
|
2064
2232
|
constructor(body) {
|
|
2065
2233
|
super(
|
|
2066
|
-
`
|
|
2234
|
+
`REPOSITORY_ACCESS_DENIED: ${body.message}`
|
|
2067
2235
|
);
|
|
2068
2236
|
this.body = body;
|
|
2069
|
-
this.name = "
|
|
2237
|
+
this.name = "RepositoryAccessDeniedError";
|
|
2070
2238
|
}
|
|
2071
|
-
static code = "
|
|
2072
|
-
static statusCode =
|
|
2073
|
-
static description = `
|
|
2239
|
+
static code = "REPOSITORY_ACCESS_DENIED";
|
|
2240
|
+
static statusCode = 403;
|
|
2241
|
+
static description = `Repository does not belong to account`;
|
|
2074
2242
|
}
|
|
2075
|
-
class
|
|
2243
|
+
class GitHubSyncFailedError extends Error {
|
|
2076
2244
|
constructor(body) {
|
|
2077
2245
|
super(
|
|
2078
|
-
`
|
|
2246
|
+
`GIT_HUB_SYNC_FAILED: ${body.message}`
|
|
2079
2247
|
);
|
|
2080
2248
|
this.body = body;
|
|
2081
|
-
this.name = "
|
|
2249
|
+
this.name = "GitHubSyncFailedError";
|
|
2082
2250
|
}
|
|
2083
|
-
static code = "
|
|
2251
|
+
static code = "GIT_HUB_SYNC_FAILED";
|
|
2084
2252
|
static statusCode = 500;
|
|
2085
|
-
static description = `Failed to
|
|
2253
|
+
static description = `Failed to configure GitHub sync: {message}`;
|
|
2086
2254
|
}
|
|
2087
|
-
class
|
|
2255
|
+
class UpdateDefaultBranchFailedError extends Error {
|
|
2088
2256
|
constructor(body) {
|
|
2089
2257
|
super(
|
|
2090
|
-
`
|
|
2258
|
+
`UPDATE_DEFAULT_BRANCH_FAILED: ${body.message}`
|
|
2091
2259
|
);
|
|
2092
2260
|
this.body = body;
|
|
2093
|
-
this.name = "
|
|
2261
|
+
this.name = "UpdateDefaultBranchFailedError";
|
|
2094
2262
|
}
|
|
2095
|
-
static code = "
|
|
2263
|
+
static code = "UPDATE_DEFAULT_BRANCH_FAILED";
|
|
2096
2264
|
static statusCode = 500;
|
|
2097
|
-
static description = `
|
|
2265
|
+
static description = `Failed to update default branch: {message}`;
|
|
2098
2266
|
}
|
|
2099
|
-
class
|
|
2267
|
+
class GetRepositoryInfoFailedError extends Error {
|
|
2100
2268
|
constructor(body) {
|
|
2101
2269
|
super(
|
|
2102
|
-
`
|
|
2270
|
+
`GET_REPOSITORY_INFO_FAILED: ${body.message}`
|
|
2103
2271
|
);
|
|
2104
2272
|
this.body = body;
|
|
2105
|
-
this.name = "
|
|
2273
|
+
this.name = "GetRepositoryInfoFailedError";
|
|
2106
2274
|
}
|
|
2107
|
-
static code = "
|
|
2275
|
+
static code = "GET_REPOSITORY_INFO_FAILED";
|
|
2108
2276
|
static statusCode = 500;
|
|
2109
|
-
static description = `
|
|
2277
|
+
static description = `Failed to get repository info: {message}`;
|
|
2110
2278
|
}
|
|
2111
|
-
class
|
|
2279
|
+
class ListRepositoriesFailedError extends Error {
|
|
2112
2280
|
constructor(body) {
|
|
2113
2281
|
super(
|
|
2114
|
-
`
|
|
2282
|
+
`LIST_REPOSITORIES_FAILED: ${body.message}`
|
|
2115
2283
|
);
|
|
2116
2284
|
this.body = body;
|
|
2117
|
-
this.name = "
|
|
2285
|
+
this.name = "ListRepositoriesFailedError";
|
|
2118
2286
|
}
|
|
2119
|
-
static code = "
|
|
2120
|
-
static statusCode =
|
|
2121
|
-
static description = `
|
|
2287
|
+
static code = "LIST_REPOSITORIES_FAILED";
|
|
2288
|
+
static statusCode = 500;
|
|
2289
|
+
static description = `Failed to list repositories: {message}`;
|
|
2122
2290
|
}
|
|
2123
|
-
class
|
|
2291
|
+
class DeleteRepositoryFailedError extends Error {
|
|
2124
2292
|
constructor(body) {
|
|
2125
2293
|
super(
|
|
2126
|
-
`
|
|
2294
|
+
`DELETE_REPOSITORY_FAILED: ${body.message}`
|
|
2127
2295
|
);
|
|
2128
2296
|
this.body = body;
|
|
2129
|
-
this.name = "
|
|
2297
|
+
this.name = "DeleteRepositoryFailedError";
|
|
2130
2298
|
}
|
|
2131
|
-
static code = "
|
|
2132
|
-
static statusCode =
|
|
2133
|
-
static description = `
|
|
2299
|
+
static code = "DELETE_REPOSITORY_FAILED";
|
|
2300
|
+
static statusCode = 500;
|
|
2301
|
+
static description = `Failed to delete repository: {message}`;
|
|
2134
2302
|
}
|
|
2135
|
-
class
|
|
2303
|
+
class CreateRepositoryFailedError extends Error {
|
|
2136
2304
|
constructor(body) {
|
|
2137
2305
|
super(
|
|
2138
|
-
`
|
|
2306
|
+
`CREATE_REPOSITORY_FAILED: ${body.message}`
|
|
2139
2307
|
);
|
|
2140
2308
|
this.body = body;
|
|
2141
|
-
this.name = "
|
|
2309
|
+
this.name = "CreateRepositoryFailedError";
|
|
2142
2310
|
}
|
|
2143
|
-
static code = "
|
|
2311
|
+
static code = "CREATE_REPOSITORY_FAILED";
|
|
2144
2312
|
static statusCode = 500;
|
|
2145
|
-
static description = `Failed to
|
|
2313
|
+
static description = `Failed to create repository: {message}`;
|
|
2146
2314
|
}
|
|
2147
|
-
class
|
|
2315
|
+
class SerializationErrorError extends Error {
|
|
2148
2316
|
constructor(body) {
|
|
2149
2317
|
super(
|
|
2150
|
-
`
|
|
2318
|
+
`SERIALIZATION_ERROR: ${body.message}`
|
|
2151
2319
|
);
|
|
2152
2320
|
this.body = body;
|
|
2153
|
-
this.name = "
|
|
2321
|
+
this.name = "SerializationErrorError";
|
|
2154
2322
|
}
|
|
2155
|
-
static code = "
|
|
2156
|
-
static statusCode =
|
|
2157
|
-
static description = `
|
|
2323
|
+
static code = "SERIALIZATION_ERROR";
|
|
2324
|
+
static statusCode = 400;
|
|
2325
|
+
static description = `Failed to serialize request: {message}`;
|
|
2158
2326
|
}
|
|
2159
|
-
class
|
|
2327
|
+
class GitInvalidRequestError extends Error {
|
|
2160
2328
|
constructor(body) {
|
|
2161
2329
|
super(
|
|
2162
|
-
`
|
|
2330
|
+
`GIT_INVALID_REQUEST: ${body.message}`
|
|
2163
2331
|
);
|
|
2164
2332
|
this.body = body;
|
|
2165
|
-
this.name = "
|
|
2333
|
+
this.name = "GitInvalidRequestError";
|
|
2166
2334
|
}
|
|
2167
|
-
static code = "
|
|
2168
|
-
static statusCode =
|
|
2169
|
-
static description = `
|
|
2335
|
+
static code = "GIT_INVALID_REQUEST";
|
|
2336
|
+
static statusCode = 400;
|
|
2337
|
+
static description = `Invalid request: {message}`;
|
|
2170
2338
|
}
|
|
2171
|
-
class
|
|
2339
|
+
class RepositoryNotFoundError extends Error {
|
|
2172
2340
|
constructor(body) {
|
|
2173
2341
|
super(
|
|
2174
|
-
`
|
|
2342
|
+
`REPOSITORY_NOT_FOUND: ${body.message}`
|
|
2175
2343
|
);
|
|
2176
2344
|
this.body = body;
|
|
2177
|
-
this.name = "
|
|
2345
|
+
this.name = "RepositoryNotFoundError";
|
|
2178
2346
|
}
|
|
2179
|
-
static code = "
|
|
2180
|
-
static statusCode =
|
|
2181
|
-
static description = `
|
|
2347
|
+
static code = "REPOSITORY_NOT_FOUND";
|
|
2348
|
+
static statusCode = 404;
|
|
2349
|
+
static description = `Repository not found: {repo_id}`;
|
|
2182
2350
|
}
|
|
2183
|
-
class
|
|
2351
|
+
class DomainAlreadyExistsError extends Error {
|
|
2184
2352
|
constructor(body) {
|
|
2185
2353
|
super(
|
|
2186
|
-
`
|
|
2354
|
+
`DOMAIN_ALREADY_EXISTS: ${body.message}`
|
|
2187
2355
|
);
|
|
2188
2356
|
this.body = body;
|
|
2189
|
-
this.name = "
|
|
2357
|
+
this.name = "DomainAlreadyExistsError";
|
|
2190
2358
|
}
|
|
2191
|
-
static code = "
|
|
2192
|
-
static statusCode =
|
|
2193
|
-
static description = `
|
|
2359
|
+
static code = "DOMAIN_ALREADY_EXISTS";
|
|
2360
|
+
static statusCode = 400;
|
|
2361
|
+
static description = `Domain already exists: {domain}`;
|
|
2194
2362
|
}
|
|
2195
|
-
class
|
|
2363
|
+
class FailedToInsertOwnershipError extends Error {
|
|
2196
2364
|
constructor(body) {
|
|
2197
2365
|
super(
|
|
2198
|
-
`
|
|
2366
|
+
`FAILED_TO_INSERT_OWNERSHIP: ${body.message}`
|
|
2199
2367
|
);
|
|
2200
2368
|
this.body = body;
|
|
2201
|
-
this.name = "
|
|
2369
|
+
this.name = "FailedToInsertOwnershipError";
|
|
2202
2370
|
}
|
|
2203
|
-
static code = "
|
|
2371
|
+
static code = "FAILED_TO_INSERT_OWNERSHIP";
|
|
2204
2372
|
static statusCode = 500;
|
|
2205
|
-
static description = `
|
|
2206
|
-
}
|
|
2207
|
-
class DomainOwnershipErrorError extends Error {
|
|
2208
|
-
constructor(body) {
|
|
2209
|
-
super(
|
|
2210
|
-
`DOMAIN_OWNERSHIP_ERROR: ${body.message}`
|
|
2211
|
-
);
|
|
2212
|
-
this.body = body;
|
|
2213
|
-
this.name = "DomainOwnershipErrorError";
|
|
2214
|
-
}
|
|
2215
|
-
static code = "DOMAIN_OWNERSHIP_ERROR";
|
|
2216
|
-
static statusCode = 403;
|
|
2217
|
-
static description = `Account {account_id} does not own domain {domain}`;
|
|
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 = "
|
|
2441
|
+
this.name = "CloudstateAccessDeniedError";
|
|
2286
2442
|
}
|
|
2287
|
-
static code = "
|
|
2288
|
-
static statusCode =
|
|
2289
|
-
static description = `
|
|
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) {
|
|
@@ -3929,7 +4130,11 @@ function composeCreateVmOptions(arr) {
|
|
|
3929
4130
|
result.template = {
|
|
3930
4131
|
// Simple overrides - start with base, override with new
|
|
3931
4132
|
snapshotId: newTemplate.snapshotId !== void 0 ? newTemplate.snapshotId : baseTemplate.snapshotId,
|
|
3932
|
-
|
|
4133
|
+
rootfsSizeGb: newTemplate.rootfsSizeGb !== void 0 ? newTemplate.rootfsSizeGb : baseTemplate.rootfsSizeGb,
|
|
4134
|
+
memSizeGb: newTemplate.memSizeGb !== void 0 ? newTemplate.memSizeGb : baseTemplate.memSizeGb,
|
|
4135
|
+
aptDeps: newTemplate.aptDeps ?? baseTemplate.aptDeps,
|
|
4136
|
+
vcpuCount: newTemplate.vcpuCount !== void 0 ? newTemplate.vcpuCount : baseTemplate.vcpuCount,
|
|
4137
|
+
discriminator: newTemplate.discriminator ?? baseTemplate.discriminator,
|
|
3933
4138
|
workdir: newTemplate.workdir !== void 0 ? newTemplate.workdir : baseTemplate.workdir,
|
|
3934
4139
|
idleTimeoutSeconds: newTemplate.idleTimeoutSeconds !== void 0 ? newTemplate.idleTimeoutSeconds : baseTemplate.idleTimeoutSeconds,
|
|
3935
4140
|
waitForReadySignal: newTemplate.waitForReadySignal !== void 0 ? newTemplate.waitForReadySignal : baseTemplate.waitForReadySignal,
|
|
@@ -4204,11 +4409,13 @@ class Vm {
|
|
|
4204
4409
|
* @returns Resize response
|
|
4205
4410
|
*/
|
|
4206
4411
|
async resize({
|
|
4207
|
-
|
|
4412
|
+
memSizeGb,
|
|
4413
|
+
rootfsSizeGb,
|
|
4414
|
+
vcpuCount
|
|
4208
4415
|
}) {
|
|
4209
4416
|
return this.apiClient.post("/v1/vms/{id}/resize", {
|
|
4210
4417
|
params: { id: this.vmId },
|
|
4211
|
-
body: {
|
|
4418
|
+
body: { memSizeGb, rootfsSizeGb, vcpuCount }
|
|
4212
4419
|
});
|
|
4213
4420
|
}
|
|
4214
4421
|
}
|