@dazl/internal-api-client 1.4.1 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.gen.d.ts +9 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +27 -0
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +412 -0
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/sdk.gen.ts +34 -1
- package/src/types.gen.ts +442 -0
package/src/types.gen.ts
CHANGED
|
@@ -278,6 +278,10 @@ export type GetByDazlIdErrors = {
|
|
|
278
278
|
* Internal server error
|
|
279
279
|
*/
|
|
280
280
|
500: ErrorResponse;
|
|
281
|
+
/**
|
|
282
|
+
* Service Unavailable
|
|
283
|
+
*/
|
|
284
|
+
503: ErrorResponse;
|
|
281
285
|
};
|
|
282
286
|
|
|
283
287
|
export type GetByDazlIdError = GetByDazlIdErrors[keyof GetByDazlIdErrors];
|
|
@@ -332,6 +336,10 @@ export type UpdateByDazlIdErrors = {
|
|
|
332
336
|
* Internal server error
|
|
333
337
|
*/
|
|
334
338
|
500: ErrorResponse;
|
|
339
|
+
/**
|
|
340
|
+
* Service Unavailable
|
|
341
|
+
*/
|
|
342
|
+
503: ErrorResponse;
|
|
335
343
|
};
|
|
336
344
|
|
|
337
345
|
export type UpdateByDazlIdError = UpdateByDazlIdErrors[keyof UpdateByDazlIdErrors];
|
|
@@ -380,6 +388,10 @@ export type GetHasSufficientCreditsByDazlIdErrors = {
|
|
|
380
388
|
* Internal server error
|
|
381
389
|
*/
|
|
382
390
|
500: ErrorResponse;
|
|
391
|
+
/**
|
|
392
|
+
* Service Unavailable
|
|
393
|
+
*/
|
|
394
|
+
503: ErrorResponse;
|
|
383
395
|
};
|
|
384
396
|
|
|
385
397
|
export type GetHasSufficientCreditsByDazlIdError = GetHasSufficientCreditsByDazlIdErrors[keyof GetHasSufficientCreditsByDazlIdErrors];
|
|
@@ -426,6 +438,10 @@ export type GetAllProductsErrors = {
|
|
|
426
438
|
* Internal server error
|
|
427
439
|
*/
|
|
428
440
|
500: ErrorResponse;
|
|
441
|
+
/**
|
|
442
|
+
* Service Unavailable
|
|
443
|
+
*/
|
|
444
|
+
503: ErrorResponse;
|
|
429
445
|
};
|
|
430
446
|
|
|
431
447
|
export type GetAllProductsError = GetAllProductsErrors[keyof GetAllProductsErrors];
|
|
@@ -472,6 +488,10 @@ export type GetMaxCreditsForDefaultFreeErrors = {
|
|
|
472
488
|
* Internal server error
|
|
473
489
|
*/
|
|
474
490
|
500: ErrorResponse;
|
|
491
|
+
/**
|
|
492
|
+
* Service Unavailable
|
|
493
|
+
*/
|
|
494
|
+
503: ErrorResponse;
|
|
475
495
|
};
|
|
476
496
|
|
|
477
497
|
export type GetMaxCreditsForDefaultFreeError = GetMaxCreditsForDefaultFreeErrors[keyof GetMaxCreditsForDefaultFreeErrors];
|
|
@@ -520,6 +540,10 @@ export type GetCustomerInfoByDazlIdErrors = {
|
|
|
520
540
|
* Internal server error
|
|
521
541
|
*/
|
|
522
542
|
500: ErrorResponse;
|
|
543
|
+
/**
|
|
544
|
+
* Service Unavailable
|
|
545
|
+
*/
|
|
546
|
+
503: ErrorResponse;
|
|
523
547
|
};
|
|
524
548
|
|
|
525
549
|
export type GetCustomerInfoByDazlIdError = GetCustomerInfoByDazlIdErrors[keyof GetCustomerInfoByDazlIdErrors];
|
|
@@ -569,6 +593,10 @@ export type UpdateUserSubscriptionErrors = {
|
|
|
569
593
|
* Internal server error
|
|
570
594
|
*/
|
|
571
595
|
500: ErrorResponse;
|
|
596
|
+
/**
|
|
597
|
+
* Service Unavailable
|
|
598
|
+
*/
|
|
599
|
+
503: ErrorResponse;
|
|
572
600
|
};
|
|
573
601
|
|
|
574
602
|
export type UpdateUserSubscriptionError = UpdateUserSubscriptionErrors[keyof UpdateUserSubscriptionErrors];
|
|
@@ -623,6 +651,10 @@ export type CancelScheduledUpdateByDazlIdErrors = {
|
|
|
623
651
|
* Internal server error
|
|
624
652
|
*/
|
|
625
653
|
500: ErrorResponse;
|
|
654
|
+
/**
|
|
655
|
+
* Service Unavailable
|
|
656
|
+
*/
|
|
657
|
+
503: ErrorResponse;
|
|
626
658
|
};
|
|
627
659
|
|
|
628
660
|
export type CancelScheduledUpdateByDazlIdError = CancelScheduledUpdateByDazlIdErrors[keyof CancelScheduledUpdateByDazlIdErrors];
|
|
@@ -672,6 +704,10 @@ export type CreateCustomerPortalSessionErrors = {
|
|
|
672
704
|
* Internal server error
|
|
673
705
|
*/
|
|
674
706
|
500: ErrorResponse;
|
|
707
|
+
/**
|
|
708
|
+
* Service Unavailable
|
|
709
|
+
*/
|
|
710
|
+
503: ErrorResponse;
|
|
675
711
|
};
|
|
676
712
|
|
|
677
713
|
export type CreateCustomerPortalSessionError = CreateCustomerPortalSessionErrors[keyof CreateCustomerPortalSessionErrors];
|
|
@@ -727,6 +763,10 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
|
|
|
727
763
|
* Internal server error
|
|
728
764
|
*/
|
|
729
765
|
500: ErrorResponse;
|
|
766
|
+
/**
|
|
767
|
+
* Service Unavailable
|
|
768
|
+
*/
|
|
769
|
+
503: ErrorResponse;
|
|
730
770
|
};
|
|
731
771
|
|
|
732
772
|
export type CreateCustomerWithDefaultSubscriptionError = CreateCustomerWithDefaultSubscriptionErrors[keyof CreateCustomerWithDefaultSubscriptionErrors];
|
|
@@ -776,6 +816,10 @@ export type GetUserInfoByDazlIdErrors = {
|
|
|
776
816
|
* Internal server error
|
|
777
817
|
*/
|
|
778
818
|
500: ErrorResponse;
|
|
819
|
+
/**
|
|
820
|
+
* Service Unavailable
|
|
821
|
+
*/
|
|
822
|
+
503: ErrorResponse;
|
|
779
823
|
};
|
|
780
824
|
|
|
781
825
|
export type GetUserInfoByDazlIdError = GetUserInfoByDazlIdErrors[keyof GetUserInfoByDazlIdErrors];
|
|
@@ -794,6 +838,272 @@ export type GetUserInfoByDazlIdResponses = {
|
|
|
794
838
|
|
|
795
839
|
export type GetUserInfoByDazlIdResponse = GetUserInfoByDazlIdResponses[keyof GetUserInfoByDazlIdResponses];
|
|
796
840
|
|
|
841
|
+
export type ConnectUserData = {
|
|
842
|
+
body?: {
|
|
843
|
+
code: string;
|
|
844
|
+
};
|
|
845
|
+
path: {
|
|
846
|
+
dazlId: string;
|
|
847
|
+
};
|
|
848
|
+
query?: never;
|
|
849
|
+
url: '/github/user/{dazlId}/connect';
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
export type ConnectUserErrors = {
|
|
853
|
+
/**
|
|
854
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
855
|
+
*/
|
|
856
|
+
400: {
|
|
857
|
+
message: string;
|
|
858
|
+
issues?: string;
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* Unauthorized
|
|
862
|
+
*/
|
|
863
|
+
401: ErrorResponse;
|
|
864
|
+
/**
|
|
865
|
+
* Forbidden
|
|
866
|
+
*/
|
|
867
|
+
403: ErrorResponse;
|
|
868
|
+
/**
|
|
869
|
+
* Not Found
|
|
870
|
+
*/
|
|
871
|
+
404: ErrorResponse;
|
|
872
|
+
/**
|
|
873
|
+
* Internal server error
|
|
874
|
+
*/
|
|
875
|
+
500: ErrorResponse;
|
|
876
|
+
/**
|
|
877
|
+
* Service Unavailable
|
|
878
|
+
*/
|
|
879
|
+
503: ErrorResponse;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
export type ConnectUserError = ConnectUserErrors[keyof ConnectUserErrors];
|
|
883
|
+
|
|
884
|
+
export type ConnectUserResponses = {
|
|
885
|
+
/**
|
|
886
|
+
* User connected to GitHub successfully
|
|
887
|
+
*/
|
|
888
|
+
200: {
|
|
889
|
+
username: string;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
export type ConnectUserResponse = ConnectUserResponses[keyof ConnectUserResponses];
|
|
894
|
+
|
|
895
|
+
export type GetUserInfoData = {
|
|
896
|
+
body?: never;
|
|
897
|
+
path: {
|
|
898
|
+
dazlId: string;
|
|
899
|
+
};
|
|
900
|
+
query?: never;
|
|
901
|
+
url: '/github/user/{dazlId}/info';
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
export type GetUserInfoErrors = {
|
|
905
|
+
/**
|
|
906
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
907
|
+
*/
|
|
908
|
+
400: {
|
|
909
|
+
message: string;
|
|
910
|
+
issues?: string;
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
* Unauthorized
|
|
914
|
+
*/
|
|
915
|
+
401: ErrorResponse;
|
|
916
|
+
/**
|
|
917
|
+
* Forbidden
|
|
918
|
+
*/
|
|
919
|
+
403: ErrorResponse;
|
|
920
|
+
/**
|
|
921
|
+
* Not Found
|
|
922
|
+
*/
|
|
923
|
+
404: ErrorResponse;
|
|
924
|
+
/**
|
|
925
|
+
* Internal server error
|
|
926
|
+
*/
|
|
927
|
+
500: ErrorResponse;
|
|
928
|
+
/**
|
|
929
|
+
* Service Unavailable
|
|
930
|
+
*/
|
|
931
|
+
503: ErrorResponse;
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
export type GetUserInfoError = GetUserInfoErrors[keyof GetUserInfoErrors];
|
|
935
|
+
|
|
936
|
+
export type GetUserInfoResponses = {
|
|
937
|
+
/**
|
|
938
|
+
* Returns user's GitHub info
|
|
939
|
+
*/
|
|
940
|
+
200: {
|
|
941
|
+
username: string;
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
export type GetUserInfoResponse = GetUserInfoResponses[keyof GetUserInfoResponses];
|
|
946
|
+
|
|
947
|
+
export type GetInstallationsData = {
|
|
948
|
+
body?: never;
|
|
949
|
+
path: {
|
|
950
|
+
dazlId: string;
|
|
951
|
+
};
|
|
952
|
+
query?: never;
|
|
953
|
+
url: '/github/user/{dazlId}/installations';
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
export type GetInstallationsErrors = {
|
|
957
|
+
/**
|
|
958
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
959
|
+
*/
|
|
960
|
+
400: {
|
|
961
|
+
message: string;
|
|
962
|
+
issues?: string;
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* Unauthorized
|
|
966
|
+
*/
|
|
967
|
+
401: ErrorResponse;
|
|
968
|
+
/**
|
|
969
|
+
* Forbidden
|
|
970
|
+
*/
|
|
971
|
+
403: ErrorResponse;
|
|
972
|
+
/**
|
|
973
|
+
* Not Found
|
|
974
|
+
*/
|
|
975
|
+
404: ErrorResponse;
|
|
976
|
+
/**
|
|
977
|
+
* Internal server error
|
|
978
|
+
*/
|
|
979
|
+
500: ErrorResponse;
|
|
980
|
+
/**
|
|
981
|
+
* Service Unavailable
|
|
982
|
+
*/
|
|
983
|
+
503: ErrorResponse;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
export type GetInstallationsError = GetInstallationsErrors[keyof GetInstallationsErrors];
|
|
987
|
+
|
|
988
|
+
export type GetInstallationsResponses = {
|
|
989
|
+
/**
|
|
990
|
+
* Returns user's GitHub App installations
|
|
991
|
+
*/
|
|
992
|
+
200: {
|
|
993
|
+
installations: Array<{
|
|
994
|
+
installationId: number;
|
|
995
|
+
accountType: 'User' | 'Organization';
|
|
996
|
+
accountLogin: string;
|
|
997
|
+
}>;
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
export type GetInstallationsResponse = GetInstallationsResponses[keyof GetInstallationsResponses];
|
|
1002
|
+
|
|
1003
|
+
export type GetInstallationTokenData = {
|
|
1004
|
+
body?: never;
|
|
1005
|
+
path: {
|
|
1006
|
+
projectId: string;
|
|
1007
|
+
};
|
|
1008
|
+
query?: never;
|
|
1009
|
+
url: '/github/project/{projectId}/token';
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
export type GetInstallationTokenErrors = {
|
|
1013
|
+
/**
|
|
1014
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1015
|
+
*/
|
|
1016
|
+
400: {
|
|
1017
|
+
message: string;
|
|
1018
|
+
issues?: string;
|
|
1019
|
+
};
|
|
1020
|
+
/**
|
|
1021
|
+
* Unauthorized
|
|
1022
|
+
*/
|
|
1023
|
+
401: ErrorResponse;
|
|
1024
|
+
/**
|
|
1025
|
+
* Forbidden
|
|
1026
|
+
*/
|
|
1027
|
+
403: ErrorResponse;
|
|
1028
|
+
/**
|
|
1029
|
+
* Not Found
|
|
1030
|
+
*/
|
|
1031
|
+
404: ErrorResponse;
|
|
1032
|
+
/**
|
|
1033
|
+
* Internal server error
|
|
1034
|
+
*/
|
|
1035
|
+
500: ErrorResponse;
|
|
1036
|
+
/**
|
|
1037
|
+
* Service Unavailable
|
|
1038
|
+
*/
|
|
1039
|
+
503: ErrorResponse;
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
export type GetInstallationTokenError = GetInstallationTokenErrors[keyof GetInstallationTokenErrors];
|
|
1043
|
+
|
|
1044
|
+
export type GetInstallationTokenResponses = {
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns installation access token for the project's linked GitHub installation
|
|
1047
|
+
*/
|
|
1048
|
+
200: {
|
|
1049
|
+
token: string;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
export type GetInstallationTokenResponse = GetInstallationTokenResponses[keyof GetInstallationTokenResponses];
|
|
1054
|
+
|
|
1055
|
+
export type GetInstallationUrlData = {
|
|
1056
|
+
body?: never;
|
|
1057
|
+
path?: never;
|
|
1058
|
+
query: {
|
|
1059
|
+
state: string;
|
|
1060
|
+
};
|
|
1061
|
+
url: '/github/installation/url';
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
export type GetInstallationUrlErrors = {
|
|
1065
|
+
/**
|
|
1066
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1067
|
+
*/
|
|
1068
|
+
400: {
|
|
1069
|
+
message: string;
|
|
1070
|
+
issues?: string;
|
|
1071
|
+
};
|
|
1072
|
+
/**
|
|
1073
|
+
* Unauthorized
|
|
1074
|
+
*/
|
|
1075
|
+
401: ErrorResponse;
|
|
1076
|
+
/**
|
|
1077
|
+
* Forbidden
|
|
1078
|
+
*/
|
|
1079
|
+
403: ErrorResponse;
|
|
1080
|
+
/**
|
|
1081
|
+
* Not Found
|
|
1082
|
+
*/
|
|
1083
|
+
404: ErrorResponse;
|
|
1084
|
+
/**
|
|
1085
|
+
* Internal server error
|
|
1086
|
+
*/
|
|
1087
|
+
500: ErrorResponse;
|
|
1088
|
+
/**
|
|
1089
|
+
* Service Unavailable
|
|
1090
|
+
*/
|
|
1091
|
+
503: ErrorResponse;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
export type GetInstallationUrlError = GetInstallationUrlErrors[keyof GetInstallationUrlErrors];
|
|
1095
|
+
|
|
1096
|
+
export type GetInstallationUrlResponses = {
|
|
1097
|
+
/**
|
|
1098
|
+
* Returns GitHub App installation URL
|
|
1099
|
+
*/
|
|
1100
|
+
200: {
|
|
1101
|
+
url: string;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
export type GetInstallationUrlResponse = GetInstallationUrlResponses[keyof GetInstallationUrlResponses];
|
|
1106
|
+
|
|
797
1107
|
export type EnsureSiteIdData = {
|
|
798
1108
|
body: {
|
|
799
1109
|
projectId: string;
|
|
@@ -832,6 +1142,10 @@ export type EnsureSiteIdErrors = {
|
|
|
832
1142
|
* Internal server error
|
|
833
1143
|
*/
|
|
834
1144
|
500: ErrorResponse;
|
|
1145
|
+
/**
|
|
1146
|
+
* Service Unavailable
|
|
1147
|
+
*/
|
|
1148
|
+
503: ErrorResponse;
|
|
835
1149
|
};
|
|
836
1150
|
|
|
837
1151
|
export type EnsureSiteIdError = EnsureSiteIdErrors[keyof EnsureSiteIdErrors];
|
|
@@ -881,6 +1195,10 @@ export type GetLatestDeployErrors = {
|
|
|
881
1195
|
* Internal server error
|
|
882
1196
|
*/
|
|
883
1197
|
500: ErrorResponse;
|
|
1198
|
+
/**
|
|
1199
|
+
* Service Unavailable
|
|
1200
|
+
*/
|
|
1201
|
+
503: ErrorResponse;
|
|
884
1202
|
};
|
|
885
1203
|
|
|
886
1204
|
export type GetLatestDeployError = GetLatestDeployErrors[keyof GetLatestDeployErrors];
|
|
@@ -932,6 +1250,10 @@ export type UpsertDeployInDbErrors = {
|
|
|
932
1250
|
* Internal server error
|
|
933
1251
|
*/
|
|
934
1252
|
500: ErrorResponse;
|
|
1253
|
+
/**
|
|
1254
|
+
* Service Unavailable
|
|
1255
|
+
*/
|
|
1256
|
+
503: ErrorResponse;
|
|
935
1257
|
};
|
|
936
1258
|
|
|
937
1259
|
export type UpsertDeployInDbError = UpsertDeployInDbErrors[keyof UpsertDeployInDbErrors];
|
|
@@ -981,6 +1303,10 @@ export type UpdateEnvVarsErrors = {
|
|
|
981
1303
|
* Internal server error
|
|
982
1304
|
*/
|
|
983
1305
|
500: ErrorResponse;
|
|
1306
|
+
/**
|
|
1307
|
+
* Service Unavailable
|
|
1308
|
+
*/
|
|
1309
|
+
503: ErrorResponse;
|
|
984
1310
|
};
|
|
985
1311
|
|
|
986
1312
|
export type UpdateEnvVarsError = UpdateEnvVarsErrors[keyof UpdateEnvVarsErrors];
|
|
@@ -1035,6 +1361,10 @@ export type DuplicateProjectErrors = {
|
|
|
1035
1361
|
* Internal server error
|
|
1036
1362
|
*/
|
|
1037
1363
|
500: ErrorResponse;
|
|
1364
|
+
/**
|
|
1365
|
+
* Service Unavailable
|
|
1366
|
+
*/
|
|
1367
|
+
503: ErrorResponse;
|
|
1038
1368
|
};
|
|
1039
1369
|
|
|
1040
1370
|
export type DuplicateProjectError = DuplicateProjectErrors[keyof DuplicateProjectErrors];
|
|
@@ -1083,6 +1413,10 @@ export type DeleteProjectErrors = {
|
|
|
1083
1413
|
* Internal server error
|
|
1084
1414
|
*/
|
|
1085
1415
|
500: ErrorResponse;
|
|
1416
|
+
/**
|
|
1417
|
+
* Service Unavailable
|
|
1418
|
+
*/
|
|
1419
|
+
503: ErrorResponse;
|
|
1086
1420
|
};
|
|
1087
1421
|
|
|
1088
1422
|
export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
|
|
@@ -1133,6 +1467,10 @@ export type GetProjectByIdErrors = {
|
|
|
1133
1467
|
* Internal server error
|
|
1134
1468
|
*/
|
|
1135
1469
|
500: ErrorResponse;
|
|
1470
|
+
/**
|
|
1471
|
+
* Service Unavailable
|
|
1472
|
+
*/
|
|
1473
|
+
503: ErrorResponse;
|
|
1136
1474
|
};
|
|
1137
1475
|
|
|
1138
1476
|
export type GetProjectByIdError = GetProjectByIdErrors[keyof GetProjectByIdErrors];
|
|
@@ -1187,6 +1525,10 @@ export type UpdateProjectErrors = {
|
|
|
1187
1525
|
* Internal server error
|
|
1188
1526
|
*/
|
|
1189
1527
|
500: ErrorResponse;
|
|
1528
|
+
/**
|
|
1529
|
+
* Service Unavailable
|
|
1530
|
+
*/
|
|
1531
|
+
503: ErrorResponse;
|
|
1190
1532
|
};
|
|
1191
1533
|
|
|
1192
1534
|
export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
|
|
@@ -1238,6 +1580,10 @@ export type CreateProjectErrors = {
|
|
|
1238
1580
|
* Internal server error
|
|
1239
1581
|
*/
|
|
1240
1582
|
500: ErrorResponse;
|
|
1583
|
+
/**
|
|
1584
|
+
* Service Unavailable
|
|
1585
|
+
*/
|
|
1586
|
+
503: ErrorResponse;
|
|
1241
1587
|
};
|
|
1242
1588
|
|
|
1243
1589
|
export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
@@ -1253,6 +1599,74 @@ export type CreateProjectResponses = {
|
|
|
1253
1599
|
|
|
1254
1600
|
export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
|
|
1255
1601
|
|
|
1602
|
+
export type GetUserProjectsData = {
|
|
1603
|
+
body?: never;
|
|
1604
|
+
path: {
|
|
1605
|
+
ownerDazlId: string;
|
|
1606
|
+
};
|
|
1607
|
+
query?: {
|
|
1608
|
+
/**
|
|
1609
|
+
* Include deployed projects info in the response
|
|
1610
|
+
*/
|
|
1611
|
+
withDeploy?: boolean | null;
|
|
1612
|
+
/**
|
|
1613
|
+
* Include project screenshots url in the response
|
|
1614
|
+
*/
|
|
1615
|
+
withScreenshot?: boolean | null;
|
|
1616
|
+
};
|
|
1617
|
+
url: '/project/user/{ownerDazlId}';
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
export type GetUserProjectsErrors = {
|
|
1621
|
+
/**
|
|
1622
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1623
|
+
*/
|
|
1624
|
+
400: {
|
|
1625
|
+
message: string;
|
|
1626
|
+
issues?: string;
|
|
1627
|
+
};
|
|
1628
|
+
/**
|
|
1629
|
+
* Unauthorized
|
|
1630
|
+
*/
|
|
1631
|
+
401: ErrorResponse;
|
|
1632
|
+
/**
|
|
1633
|
+
* Forbidden
|
|
1634
|
+
*/
|
|
1635
|
+
403: ErrorResponse;
|
|
1636
|
+
/**
|
|
1637
|
+
* Not Found
|
|
1638
|
+
*/
|
|
1639
|
+
404: ErrorResponse;
|
|
1640
|
+
/**
|
|
1641
|
+
* Internal server error
|
|
1642
|
+
*/
|
|
1643
|
+
500: ErrorResponse;
|
|
1644
|
+
/**
|
|
1645
|
+
* Service Unavailable
|
|
1646
|
+
*/
|
|
1647
|
+
503: ErrorResponse;
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
export type GetUserProjectsError = GetUserProjectsErrors[keyof GetUserProjectsErrors];
|
|
1651
|
+
|
|
1652
|
+
export type GetUserProjectsResponses = {
|
|
1653
|
+
/**
|
|
1654
|
+
* Returns the list of projects for the specified user
|
|
1655
|
+
*/
|
|
1656
|
+
200: {
|
|
1657
|
+
projects: Array<ProjectRaw & {
|
|
1658
|
+
deploy: {
|
|
1659
|
+
publishedAt: string;
|
|
1660
|
+
productionURL: string;
|
|
1661
|
+
netlifyDeployId: string;
|
|
1662
|
+
} | null;
|
|
1663
|
+
screenshotUrl: string | null;
|
|
1664
|
+
}>;
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
|
|
1668
|
+
export type GetUserProjectsResponse = GetUserProjectsResponses[keyof GetUserProjectsResponses];
|
|
1669
|
+
|
|
1256
1670
|
export type GetUploadConfigurationData = {
|
|
1257
1671
|
body: {
|
|
1258
1672
|
/**
|
|
@@ -1313,6 +1727,10 @@ export type GetUploadConfigurationErrors = {
|
|
|
1313
1727
|
* Internal server error
|
|
1314
1728
|
*/
|
|
1315
1729
|
500: ErrorResponse;
|
|
1730
|
+
/**
|
|
1731
|
+
* Service Unavailable
|
|
1732
|
+
*/
|
|
1733
|
+
503: ErrorResponse;
|
|
1316
1734
|
};
|
|
1317
1735
|
|
|
1318
1736
|
export type GetUploadConfigurationError = GetUploadConfigurationErrors[keyof GetUploadConfigurationErrors];
|
|
@@ -1390,6 +1808,10 @@ export type ListFilesErrors = {
|
|
|
1390
1808
|
* Internal server error
|
|
1391
1809
|
*/
|
|
1392
1810
|
500: ErrorResponse;
|
|
1811
|
+
/**
|
|
1812
|
+
* Service Unavailable
|
|
1813
|
+
*/
|
|
1814
|
+
503: ErrorResponse;
|
|
1393
1815
|
};
|
|
1394
1816
|
|
|
1395
1817
|
export type ListFilesError = ListFilesErrors[keyof ListFilesErrors];
|
|
@@ -1469,6 +1891,10 @@ export type CreateMediaErrors = {
|
|
|
1469
1891
|
* Internal server error
|
|
1470
1892
|
*/
|
|
1471
1893
|
500: ErrorResponse;
|
|
1894
|
+
/**
|
|
1895
|
+
* Service Unavailable
|
|
1896
|
+
*/
|
|
1897
|
+
503: ErrorResponse;
|
|
1472
1898
|
};
|
|
1473
1899
|
|
|
1474
1900
|
export type CreateMediaError = CreateMediaErrors[keyof CreateMediaErrors];
|
|
@@ -1520,6 +1946,10 @@ export type GetAccountScreenshotsErrors = {
|
|
|
1520
1946
|
* Internal server error
|
|
1521
1947
|
*/
|
|
1522
1948
|
500: ErrorResponse;
|
|
1949
|
+
/**
|
|
1950
|
+
* Service Unavailable
|
|
1951
|
+
*/
|
|
1952
|
+
503: ErrorResponse;
|
|
1523
1953
|
};
|
|
1524
1954
|
|
|
1525
1955
|
export type GetAccountScreenshotsError = GetAccountScreenshotsErrors[keyof GetAccountScreenshotsErrors];
|
|
@@ -1577,6 +2007,10 @@ export type GetProjectScreenshotsErrors = {
|
|
|
1577
2007
|
* Internal server error
|
|
1578
2008
|
*/
|
|
1579
2009
|
500: ErrorResponse;
|
|
2010
|
+
/**
|
|
2011
|
+
* Service Unavailable
|
|
2012
|
+
*/
|
|
2013
|
+
503: ErrorResponse;
|
|
1580
2014
|
};
|
|
1581
2015
|
|
|
1582
2016
|
export type GetProjectScreenshotsError = GetProjectScreenshotsErrors[keyof GetProjectScreenshotsErrors];
|
|
@@ -1658,6 +2092,10 @@ export type TakeScreenshotErrors = {
|
|
|
1658
2092
|
* Internal server error
|
|
1659
2093
|
*/
|
|
1660
2094
|
500: ErrorResponse;
|
|
2095
|
+
/**
|
|
2096
|
+
* Service Unavailable
|
|
2097
|
+
*/
|
|
2098
|
+
503: ErrorResponse;
|
|
1661
2099
|
};
|
|
1662
2100
|
|
|
1663
2101
|
export type TakeScreenshotError = TakeScreenshotErrors[keyof TakeScreenshotErrors];
|
|
@@ -1769,6 +2207,10 @@ export type ScrapePageContentErrors = {
|
|
|
1769
2207
|
* Internal server error
|
|
1770
2208
|
*/
|
|
1771
2209
|
500: ErrorResponse;
|
|
2210
|
+
/**
|
|
2211
|
+
* Service Unavailable
|
|
2212
|
+
*/
|
|
2213
|
+
503: ErrorResponse;
|
|
1772
2214
|
};
|
|
1773
2215
|
|
|
1774
2216
|
export type ScrapePageContentError = ScrapePageContentErrors[keyof ScrapePageContentErrors];
|