@dazl/internal-api-client 1.4.0 → 1.5.0

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/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];
@@ -441,6 +457,56 @@ export type GetAllProductsResponses = {
441
457
 
442
458
  export type GetAllProductsResponse = GetAllProductsResponses[keyof GetAllProductsResponses];
443
459
 
460
+ export type GetMaxCreditsForDefaultFreeData = {
461
+ body?: never;
462
+ path?: never;
463
+ query?: never;
464
+ url: '/billing/max-credits-for-default-free';
465
+ };
466
+
467
+ export type GetMaxCreditsForDefaultFreeErrors = {
468
+ /**
469
+ * Bad request - Invalid parameters or malformed JSON
470
+ */
471
+ 400: {
472
+ message: string;
473
+ issues?: string;
474
+ };
475
+ /**
476
+ * Unauthorized
477
+ */
478
+ 401: ErrorResponse;
479
+ /**
480
+ * Forbidden
481
+ */
482
+ 403: ErrorResponse;
483
+ /**
484
+ * Not Found
485
+ */
486
+ 404: ErrorResponse;
487
+ /**
488
+ * Internal server error
489
+ */
490
+ 500: ErrorResponse;
491
+ /**
492
+ * Service Unavailable
493
+ */
494
+ 503: ErrorResponse;
495
+ };
496
+
497
+ export type GetMaxCreditsForDefaultFreeError = GetMaxCreditsForDefaultFreeErrors[keyof GetMaxCreditsForDefaultFreeErrors];
498
+
499
+ export type GetMaxCreditsForDefaultFreeResponses = {
500
+ /**
501
+ * Returns maximum credits for free tier
502
+ */
503
+ 200: {
504
+ maxCreditsForDefaultFree: number;
505
+ };
506
+ };
507
+
508
+ export type GetMaxCreditsForDefaultFreeResponse = GetMaxCreditsForDefaultFreeResponses[keyof GetMaxCreditsForDefaultFreeResponses];
509
+
444
510
  export type GetCustomerInfoByDazlIdData = {
445
511
  body?: never;
446
512
  path: {
@@ -474,6 +540,10 @@ export type GetCustomerInfoByDazlIdErrors = {
474
540
  * Internal server error
475
541
  */
476
542
  500: ErrorResponse;
543
+ /**
544
+ * Service Unavailable
545
+ */
546
+ 503: ErrorResponse;
477
547
  };
478
548
 
479
549
  export type GetCustomerInfoByDazlIdError = GetCustomerInfoByDazlIdErrors[keyof GetCustomerInfoByDazlIdErrors];
@@ -523,6 +593,10 @@ export type UpdateUserSubscriptionErrors = {
523
593
  * Internal server error
524
594
  */
525
595
  500: ErrorResponse;
596
+ /**
597
+ * Service Unavailable
598
+ */
599
+ 503: ErrorResponse;
526
600
  };
527
601
 
528
602
  export type UpdateUserSubscriptionError = UpdateUserSubscriptionErrors[keyof UpdateUserSubscriptionErrors];
@@ -577,6 +651,10 @@ export type CancelScheduledUpdateByDazlIdErrors = {
577
651
  * Internal server error
578
652
  */
579
653
  500: ErrorResponse;
654
+ /**
655
+ * Service Unavailable
656
+ */
657
+ 503: ErrorResponse;
580
658
  };
581
659
 
582
660
  export type CancelScheduledUpdateByDazlIdError = CancelScheduledUpdateByDazlIdErrors[keyof CancelScheduledUpdateByDazlIdErrors];
@@ -626,6 +704,10 @@ export type CreateCustomerPortalSessionErrors = {
626
704
  * Internal server error
627
705
  */
628
706
  500: ErrorResponse;
707
+ /**
708
+ * Service Unavailable
709
+ */
710
+ 503: ErrorResponse;
629
711
  };
630
712
 
631
713
  export type CreateCustomerPortalSessionError = CreateCustomerPortalSessionErrors[keyof CreateCustomerPortalSessionErrors];
@@ -681,6 +763,10 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
681
763
  * Internal server error
682
764
  */
683
765
  500: ErrorResponse;
766
+ /**
767
+ * Service Unavailable
768
+ */
769
+ 503: ErrorResponse;
684
770
  };
685
771
 
686
772
  export type CreateCustomerWithDefaultSubscriptionError = CreateCustomerWithDefaultSubscriptionErrors[keyof CreateCustomerWithDefaultSubscriptionErrors];
@@ -730,6 +816,10 @@ export type GetUserInfoByDazlIdErrors = {
730
816
  * Internal server error
731
817
  */
732
818
  500: ErrorResponse;
819
+ /**
820
+ * Service Unavailable
821
+ */
822
+ 503: ErrorResponse;
733
823
  };
734
824
 
735
825
  export type GetUserInfoByDazlIdError = GetUserInfoByDazlIdErrors[keyof GetUserInfoByDazlIdErrors];
@@ -748,6 +838,272 @@ export type GetUserInfoByDazlIdResponses = {
748
838
 
749
839
  export type GetUserInfoByDazlIdResponse = GetUserInfoByDazlIdResponses[keyof GetUserInfoByDazlIdResponses];
750
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
+
751
1107
  export type EnsureSiteIdData = {
752
1108
  body: {
753
1109
  projectId: string;
@@ -786,6 +1142,10 @@ export type EnsureSiteIdErrors = {
786
1142
  * Internal server error
787
1143
  */
788
1144
  500: ErrorResponse;
1145
+ /**
1146
+ * Service Unavailable
1147
+ */
1148
+ 503: ErrorResponse;
789
1149
  };
790
1150
 
791
1151
  export type EnsureSiteIdError = EnsureSiteIdErrors[keyof EnsureSiteIdErrors];
@@ -835,6 +1195,10 @@ export type GetLatestDeployErrors = {
835
1195
  * Internal server error
836
1196
  */
837
1197
  500: ErrorResponse;
1198
+ /**
1199
+ * Service Unavailable
1200
+ */
1201
+ 503: ErrorResponse;
838
1202
  };
839
1203
 
840
1204
  export type GetLatestDeployError = GetLatestDeployErrors[keyof GetLatestDeployErrors];
@@ -886,6 +1250,10 @@ export type UpsertDeployInDbErrors = {
886
1250
  * Internal server error
887
1251
  */
888
1252
  500: ErrorResponse;
1253
+ /**
1254
+ * Service Unavailable
1255
+ */
1256
+ 503: ErrorResponse;
889
1257
  };
890
1258
 
891
1259
  export type UpsertDeployInDbError = UpsertDeployInDbErrors[keyof UpsertDeployInDbErrors];
@@ -935,6 +1303,10 @@ export type UpdateEnvVarsErrors = {
935
1303
  * Internal server error
936
1304
  */
937
1305
  500: ErrorResponse;
1306
+ /**
1307
+ * Service Unavailable
1308
+ */
1309
+ 503: ErrorResponse;
938
1310
  };
939
1311
 
940
1312
  export type UpdateEnvVarsError = UpdateEnvVarsErrors[keyof UpdateEnvVarsErrors];
@@ -989,6 +1361,10 @@ export type DuplicateProjectErrors = {
989
1361
  * Internal server error
990
1362
  */
991
1363
  500: ErrorResponse;
1364
+ /**
1365
+ * Service Unavailable
1366
+ */
1367
+ 503: ErrorResponse;
992
1368
  };
993
1369
 
994
1370
  export type DuplicateProjectError = DuplicateProjectErrors[keyof DuplicateProjectErrors];
@@ -1037,6 +1413,10 @@ export type DeleteProjectErrors = {
1037
1413
  * Internal server error
1038
1414
  */
1039
1415
  500: ErrorResponse;
1416
+ /**
1417
+ * Service Unavailable
1418
+ */
1419
+ 503: ErrorResponse;
1040
1420
  };
1041
1421
 
1042
1422
  export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
@@ -1087,6 +1467,10 @@ export type GetProjectByIdErrors = {
1087
1467
  * Internal server error
1088
1468
  */
1089
1469
  500: ErrorResponse;
1470
+ /**
1471
+ * Service Unavailable
1472
+ */
1473
+ 503: ErrorResponse;
1090
1474
  };
1091
1475
 
1092
1476
  export type GetProjectByIdError = GetProjectByIdErrors[keyof GetProjectByIdErrors];
@@ -1141,6 +1525,10 @@ export type UpdateProjectErrors = {
1141
1525
  * Internal server error
1142
1526
  */
1143
1527
  500: ErrorResponse;
1528
+ /**
1529
+ * Service Unavailable
1530
+ */
1531
+ 503: ErrorResponse;
1144
1532
  };
1145
1533
 
1146
1534
  export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
@@ -1192,6 +1580,10 @@ export type CreateProjectErrors = {
1192
1580
  * Internal server error
1193
1581
  */
1194
1582
  500: ErrorResponse;
1583
+ /**
1584
+ * Service Unavailable
1585
+ */
1586
+ 503: ErrorResponse;
1195
1587
  };
1196
1588
 
1197
1589
  export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
@@ -1267,6 +1659,10 @@ export type GetUploadConfigurationErrors = {
1267
1659
  * Internal server error
1268
1660
  */
1269
1661
  500: ErrorResponse;
1662
+ /**
1663
+ * Service Unavailable
1664
+ */
1665
+ 503: ErrorResponse;
1270
1666
  };
1271
1667
 
1272
1668
  export type GetUploadConfigurationError = GetUploadConfigurationErrors[keyof GetUploadConfigurationErrors];
@@ -1344,6 +1740,10 @@ export type ListFilesErrors = {
1344
1740
  * Internal server error
1345
1741
  */
1346
1742
  500: ErrorResponse;
1743
+ /**
1744
+ * Service Unavailable
1745
+ */
1746
+ 503: ErrorResponse;
1347
1747
  };
1348
1748
 
1349
1749
  export type ListFilesError = ListFilesErrors[keyof ListFilesErrors];
@@ -1423,6 +1823,10 @@ export type CreateMediaErrors = {
1423
1823
  * Internal server error
1424
1824
  */
1425
1825
  500: ErrorResponse;
1826
+ /**
1827
+ * Service Unavailable
1828
+ */
1829
+ 503: ErrorResponse;
1426
1830
  };
1427
1831
 
1428
1832
  export type CreateMediaError = CreateMediaErrors[keyof CreateMediaErrors];
@@ -1474,6 +1878,10 @@ export type GetAccountScreenshotsErrors = {
1474
1878
  * Internal server error
1475
1879
  */
1476
1880
  500: ErrorResponse;
1881
+ /**
1882
+ * Service Unavailable
1883
+ */
1884
+ 503: ErrorResponse;
1477
1885
  };
1478
1886
 
1479
1887
  export type GetAccountScreenshotsError = GetAccountScreenshotsErrors[keyof GetAccountScreenshotsErrors];
@@ -1531,6 +1939,10 @@ export type GetProjectScreenshotsErrors = {
1531
1939
  * Internal server error
1532
1940
  */
1533
1941
  500: ErrorResponse;
1942
+ /**
1943
+ * Service Unavailable
1944
+ */
1945
+ 503: ErrorResponse;
1534
1946
  };
1535
1947
 
1536
1948
  export type GetProjectScreenshotsError = GetProjectScreenshotsErrors[keyof GetProjectScreenshotsErrors];
@@ -1612,6 +2024,10 @@ export type TakeScreenshotErrors = {
1612
2024
  * Internal server error
1613
2025
  */
1614
2026
  500: ErrorResponse;
2027
+ /**
2028
+ * Service Unavailable
2029
+ */
2030
+ 503: ErrorResponse;
1615
2031
  };
1616
2032
 
1617
2033
  export type TakeScreenshotError = TakeScreenshotErrors[keyof TakeScreenshotErrors];
@@ -1723,6 +2139,10 @@ export type ScrapePageContentErrors = {
1723
2139
  * Internal server error
1724
2140
  */
1725
2141
  500: ErrorResponse;
2142
+ /**
2143
+ * Service Unavailable
2144
+ */
2145
+ 503: ErrorResponse;
1726
2146
  };
1727
2147
 
1728
2148
  export type ScrapePageContentError = ScrapePageContentErrors[keyof ScrapePageContentErrors];