@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.
@@ -260,6 +260,10 @@ export type GetByDazlIdErrors = {
260
260
  * Internal server error
261
261
  */
262
262
  500: ErrorResponse;
263
+ /**
264
+ * Service Unavailable
265
+ */
266
+ 503: ErrorResponse;
263
267
  };
264
268
  export type GetByDazlIdError = GetByDazlIdErrors[keyof GetByDazlIdErrors];
265
269
  export type GetByDazlIdResponses = {
@@ -309,6 +313,10 @@ export type UpdateByDazlIdErrors = {
309
313
  * Internal server error
310
314
  */
311
315
  500: ErrorResponse;
316
+ /**
317
+ * Service Unavailable
318
+ */
319
+ 503: ErrorResponse;
312
320
  };
313
321
  export type UpdateByDazlIdError = UpdateByDazlIdErrors[keyof UpdateByDazlIdErrors];
314
322
  export type UpdateByDazlIdResponses = {
@@ -352,6 +360,10 @@ export type GetHasSufficientCreditsByDazlIdErrors = {
352
360
  * Internal server error
353
361
  */
354
362
  500: ErrorResponse;
363
+ /**
364
+ * Service Unavailable
365
+ */
366
+ 503: ErrorResponse;
355
367
  };
356
368
  export type GetHasSufficientCreditsByDazlIdError = GetHasSufficientCreditsByDazlIdErrors[keyof GetHasSufficientCreditsByDazlIdErrors];
357
369
  export type GetHasSufficientCreditsByDazlIdResponses = {
@@ -393,6 +405,10 @@ export type GetAllProductsErrors = {
393
405
  * Internal server error
394
406
  */
395
407
  500: ErrorResponse;
408
+ /**
409
+ * Service Unavailable
410
+ */
411
+ 503: ErrorResponse;
396
412
  };
397
413
  export type GetAllProductsError = GetAllProductsErrors[keyof GetAllProductsErrors];
398
414
  export type GetAllProductsResponses = {
@@ -404,6 +420,51 @@ export type GetAllProductsResponses = {
404
420
  };
405
421
  };
406
422
  export type GetAllProductsResponse = GetAllProductsResponses[keyof GetAllProductsResponses];
423
+ export type GetMaxCreditsForDefaultFreeData = {
424
+ body?: never;
425
+ path?: never;
426
+ query?: never;
427
+ url: '/billing/max-credits-for-default-free';
428
+ };
429
+ export type GetMaxCreditsForDefaultFreeErrors = {
430
+ /**
431
+ * Bad request - Invalid parameters or malformed JSON
432
+ */
433
+ 400: {
434
+ message: string;
435
+ issues?: string;
436
+ };
437
+ /**
438
+ * Unauthorized
439
+ */
440
+ 401: ErrorResponse;
441
+ /**
442
+ * Forbidden
443
+ */
444
+ 403: ErrorResponse;
445
+ /**
446
+ * Not Found
447
+ */
448
+ 404: ErrorResponse;
449
+ /**
450
+ * Internal server error
451
+ */
452
+ 500: ErrorResponse;
453
+ /**
454
+ * Service Unavailable
455
+ */
456
+ 503: ErrorResponse;
457
+ };
458
+ export type GetMaxCreditsForDefaultFreeError = GetMaxCreditsForDefaultFreeErrors[keyof GetMaxCreditsForDefaultFreeErrors];
459
+ export type GetMaxCreditsForDefaultFreeResponses = {
460
+ /**
461
+ * Returns maximum credits for free tier
462
+ */
463
+ 200: {
464
+ maxCreditsForDefaultFree: number;
465
+ };
466
+ };
467
+ export type GetMaxCreditsForDefaultFreeResponse = GetMaxCreditsForDefaultFreeResponses[keyof GetMaxCreditsForDefaultFreeResponses];
407
468
  export type GetCustomerInfoByDazlIdData = {
408
469
  body?: never;
409
470
  path: {
@@ -436,6 +497,10 @@ export type GetCustomerInfoByDazlIdErrors = {
436
497
  * Internal server error
437
498
  */
438
499
  500: ErrorResponse;
500
+ /**
501
+ * Service Unavailable
502
+ */
503
+ 503: ErrorResponse;
439
504
  };
440
505
  export type GetCustomerInfoByDazlIdError = GetCustomerInfoByDazlIdErrors[keyof GetCustomerInfoByDazlIdErrors];
441
506
  export type GetCustomerInfoByDazlIdResponses = {
@@ -480,6 +545,10 @@ export type UpdateUserSubscriptionErrors = {
480
545
  * Internal server error
481
546
  */
482
547
  500: ErrorResponse;
548
+ /**
549
+ * Service Unavailable
550
+ */
551
+ 503: ErrorResponse;
483
552
  };
484
553
  export type UpdateUserSubscriptionError = UpdateUserSubscriptionErrors[keyof UpdateUserSubscriptionErrors];
485
554
  export type UpdateUserSubscriptionResponses = {
@@ -529,6 +598,10 @@ export type CancelScheduledUpdateByDazlIdErrors = {
529
598
  * Internal server error
530
599
  */
531
600
  500: ErrorResponse;
601
+ /**
602
+ * Service Unavailable
603
+ */
604
+ 503: ErrorResponse;
532
605
  };
533
606
  export type CancelScheduledUpdateByDazlIdError = CancelScheduledUpdateByDazlIdErrors[keyof CancelScheduledUpdateByDazlIdErrors];
534
607
  export type CancelScheduledUpdateByDazlIdResponses = {
@@ -573,6 +646,10 @@ export type CreateCustomerPortalSessionErrors = {
573
646
  * Internal server error
574
647
  */
575
648
  500: ErrorResponse;
649
+ /**
650
+ * Service Unavailable
651
+ */
652
+ 503: ErrorResponse;
576
653
  };
577
654
  export type CreateCustomerPortalSessionError = CreateCustomerPortalSessionErrors[keyof CreateCustomerPortalSessionErrors];
578
655
  export type CreateCustomerPortalSessionResponses = {
@@ -623,6 +700,10 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
623
700
  * Internal server error
624
701
  */
625
702
  500: ErrorResponse;
703
+ /**
704
+ * Service Unavailable
705
+ */
706
+ 503: ErrorResponse;
626
707
  };
627
708
  export type CreateCustomerWithDefaultSubscriptionError = CreateCustomerWithDefaultSubscriptionErrors[keyof CreateCustomerWithDefaultSubscriptionErrors];
628
709
  export type CreateCustomerWithDefaultSubscriptionResponses = {
@@ -667,6 +748,10 @@ export type GetUserInfoByDazlIdErrors = {
667
748
  * Internal server error
668
749
  */
669
750
  500: ErrorResponse;
751
+ /**
752
+ * Service Unavailable
753
+ */
754
+ 503: ErrorResponse;
670
755
  };
671
756
  export type GetUserInfoByDazlIdError = GetUserInfoByDazlIdErrors[keyof GetUserInfoByDazlIdErrors];
672
757
  export type GetUserInfoByDazlIdResponses = {
@@ -681,6 +766,247 @@ export type GetUserInfoByDazlIdResponses = {
681
766
  };
682
767
  };
683
768
  export type GetUserInfoByDazlIdResponse = GetUserInfoByDazlIdResponses[keyof GetUserInfoByDazlIdResponses];
769
+ export type ConnectUserData = {
770
+ body?: {
771
+ code: string;
772
+ };
773
+ path: {
774
+ dazlId: string;
775
+ };
776
+ query?: never;
777
+ url: '/github/user/{dazlId}/connect';
778
+ };
779
+ export type ConnectUserErrors = {
780
+ /**
781
+ * Bad request - Invalid parameters or malformed JSON
782
+ */
783
+ 400: {
784
+ message: string;
785
+ issues?: string;
786
+ };
787
+ /**
788
+ * Unauthorized
789
+ */
790
+ 401: ErrorResponse;
791
+ /**
792
+ * Forbidden
793
+ */
794
+ 403: ErrorResponse;
795
+ /**
796
+ * Not Found
797
+ */
798
+ 404: ErrorResponse;
799
+ /**
800
+ * Internal server error
801
+ */
802
+ 500: ErrorResponse;
803
+ /**
804
+ * Service Unavailable
805
+ */
806
+ 503: ErrorResponse;
807
+ };
808
+ export type ConnectUserError = ConnectUserErrors[keyof ConnectUserErrors];
809
+ export type ConnectUserResponses = {
810
+ /**
811
+ * User connected to GitHub successfully
812
+ */
813
+ 200: {
814
+ username: string;
815
+ };
816
+ };
817
+ export type ConnectUserResponse = ConnectUserResponses[keyof ConnectUserResponses];
818
+ export type GetUserInfoData = {
819
+ body?: never;
820
+ path: {
821
+ dazlId: string;
822
+ };
823
+ query?: never;
824
+ url: '/github/user/{dazlId}/info';
825
+ };
826
+ export type GetUserInfoErrors = {
827
+ /**
828
+ * Bad request - Invalid parameters or malformed JSON
829
+ */
830
+ 400: {
831
+ message: string;
832
+ issues?: string;
833
+ };
834
+ /**
835
+ * Unauthorized
836
+ */
837
+ 401: ErrorResponse;
838
+ /**
839
+ * Forbidden
840
+ */
841
+ 403: ErrorResponse;
842
+ /**
843
+ * Not Found
844
+ */
845
+ 404: ErrorResponse;
846
+ /**
847
+ * Internal server error
848
+ */
849
+ 500: ErrorResponse;
850
+ /**
851
+ * Service Unavailable
852
+ */
853
+ 503: ErrorResponse;
854
+ };
855
+ export type GetUserInfoError = GetUserInfoErrors[keyof GetUserInfoErrors];
856
+ export type GetUserInfoResponses = {
857
+ /**
858
+ * Returns user's GitHub info
859
+ */
860
+ 200: {
861
+ username: string;
862
+ };
863
+ };
864
+ export type GetUserInfoResponse = GetUserInfoResponses[keyof GetUserInfoResponses];
865
+ export type GetInstallationsData = {
866
+ body?: never;
867
+ path: {
868
+ dazlId: string;
869
+ };
870
+ query?: never;
871
+ url: '/github/user/{dazlId}/installations';
872
+ };
873
+ export type GetInstallationsErrors = {
874
+ /**
875
+ * Bad request - Invalid parameters or malformed JSON
876
+ */
877
+ 400: {
878
+ message: string;
879
+ issues?: string;
880
+ };
881
+ /**
882
+ * Unauthorized
883
+ */
884
+ 401: ErrorResponse;
885
+ /**
886
+ * Forbidden
887
+ */
888
+ 403: ErrorResponse;
889
+ /**
890
+ * Not Found
891
+ */
892
+ 404: ErrorResponse;
893
+ /**
894
+ * Internal server error
895
+ */
896
+ 500: ErrorResponse;
897
+ /**
898
+ * Service Unavailable
899
+ */
900
+ 503: ErrorResponse;
901
+ };
902
+ export type GetInstallationsError = GetInstallationsErrors[keyof GetInstallationsErrors];
903
+ export type GetInstallationsResponses = {
904
+ /**
905
+ * Returns user's GitHub App installations
906
+ */
907
+ 200: {
908
+ installations: Array<{
909
+ installationId: number;
910
+ accountType: 'User' | 'Organization';
911
+ accountLogin: string;
912
+ }>;
913
+ };
914
+ };
915
+ export type GetInstallationsResponse = GetInstallationsResponses[keyof GetInstallationsResponses];
916
+ export type GetInstallationTokenData = {
917
+ body?: never;
918
+ path: {
919
+ projectId: string;
920
+ };
921
+ query?: never;
922
+ url: '/github/project/{projectId}/token';
923
+ };
924
+ export type GetInstallationTokenErrors = {
925
+ /**
926
+ * Bad request - Invalid parameters or malformed JSON
927
+ */
928
+ 400: {
929
+ message: string;
930
+ issues?: string;
931
+ };
932
+ /**
933
+ * Unauthorized
934
+ */
935
+ 401: ErrorResponse;
936
+ /**
937
+ * Forbidden
938
+ */
939
+ 403: ErrorResponse;
940
+ /**
941
+ * Not Found
942
+ */
943
+ 404: ErrorResponse;
944
+ /**
945
+ * Internal server error
946
+ */
947
+ 500: ErrorResponse;
948
+ /**
949
+ * Service Unavailable
950
+ */
951
+ 503: ErrorResponse;
952
+ };
953
+ export type GetInstallationTokenError = GetInstallationTokenErrors[keyof GetInstallationTokenErrors];
954
+ export type GetInstallationTokenResponses = {
955
+ /**
956
+ * Returns installation access token for the project's linked GitHub installation
957
+ */
958
+ 200: {
959
+ token: string;
960
+ };
961
+ };
962
+ export type GetInstallationTokenResponse = GetInstallationTokenResponses[keyof GetInstallationTokenResponses];
963
+ export type GetInstallationUrlData = {
964
+ body?: never;
965
+ path?: never;
966
+ query: {
967
+ state: string;
968
+ };
969
+ url: '/github/installation/url';
970
+ };
971
+ export type GetInstallationUrlErrors = {
972
+ /**
973
+ * Bad request - Invalid parameters or malformed JSON
974
+ */
975
+ 400: {
976
+ message: string;
977
+ issues?: string;
978
+ };
979
+ /**
980
+ * Unauthorized
981
+ */
982
+ 401: ErrorResponse;
983
+ /**
984
+ * Forbidden
985
+ */
986
+ 403: ErrorResponse;
987
+ /**
988
+ * Not Found
989
+ */
990
+ 404: ErrorResponse;
991
+ /**
992
+ * Internal server error
993
+ */
994
+ 500: ErrorResponse;
995
+ /**
996
+ * Service Unavailable
997
+ */
998
+ 503: ErrorResponse;
999
+ };
1000
+ export type GetInstallationUrlError = GetInstallationUrlErrors[keyof GetInstallationUrlErrors];
1001
+ export type GetInstallationUrlResponses = {
1002
+ /**
1003
+ * Returns GitHub App installation URL
1004
+ */
1005
+ 200: {
1006
+ url: string;
1007
+ };
1008
+ };
1009
+ export type GetInstallationUrlResponse = GetInstallationUrlResponses[keyof GetInstallationUrlResponses];
684
1010
  export type EnsureSiteIdData = {
685
1011
  body: {
686
1012
  projectId: string;
@@ -718,6 +1044,10 @@ export type EnsureSiteIdErrors = {
718
1044
  * Internal server error
719
1045
  */
720
1046
  500: ErrorResponse;
1047
+ /**
1048
+ * Service Unavailable
1049
+ */
1050
+ 503: ErrorResponse;
721
1051
  };
722
1052
  export type EnsureSiteIdError = EnsureSiteIdErrors[keyof EnsureSiteIdErrors];
723
1053
  export type EnsureSiteIdResponses = {
@@ -762,6 +1092,10 @@ export type GetLatestDeployErrors = {
762
1092
  * Internal server error
763
1093
  */
764
1094
  500: ErrorResponse;
1095
+ /**
1096
+ * Service Unavailable
1097
+ */
1098
+ 503: ErrorResponse;
765
1099
  };
766
1100
  export type GetLatestDeployError = GetLatestDeployErrors[keyof GetLatestDeployErrors];
767
1101
  export type GetLatestDeployResponses = {
@@ -808,6 +1142,10 @@ export type UpsertDeployInDbErrors = {
808
1142
  * Internal server error
809
1143
  */
810
1144
  500: ErrorResponse;
1145
+ /**
1146
+ * Service Unavailable
1147
+ */
1148
+ 503: ErrorResponse;
811
1149
  };
812
1150
  export type UpsertDeployInDbError = UpsertDeployInDbErrors[keyof UpsertDeployInDbErrors];
813
1151
  export type UpsertDeployInDbResponses = {
@@ -852,6 +1190,10 @@ export type UpdateEnvVarsErrors = {
852
1190
  * Internal server error
853
1191
  */
854
1192
  500: ErrorResponse;
1193
+ /**
1194
+ * Service Unavailable
1195
+ */
1196
+ 503: ErrorResponse;
855
1197
  };
856
1198
  export type UpdateEnvVarsError = UpdateEnvVarsErrors[keyof UpdateEnvVarsErrors];
857
1199
  export type UpdateEnvVarsResponses = {
@@ -901,6 +1243,10 @@ export type DuplicateProjectErrors = {
901
1243
  * Internal server error
902
1244
  */
903
1245
  500: ErrorResponse;
1246
+ /**
1247
+ * Service Unavailable
1248
+ */
1249
+ 503: ErrorResponse;
904
1250
  };
905
1251
  export type DuplicateProjectError = DuplicateProjectErrors[keyof DuplicateProjectErrors];
906
1252
  export type DuplicateProjectResponses = {
@@ -944,6 +1290,10 @@ export type DeleteProjectErrors = {
944
1290
  * Internal server error
945
1291
  */
946
1292
  500: ErrorResponse;
1293
+ /**
1294
+ * Service Unavailable
1295
+ */
1296
+ 503: ErrorResponse;
947
1297
  };
948
1298
  export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
949
1299
  export type DeleteProjectResponses = {
@@ -989,6 +1339,10 @@ export type GetProjectByIdErrors = {
989
1339
  * Internal server error
990
1340
  */
991
1341
  500: ErrorResponse;
1342
+ /**
1343
+ * Service Unavailable
1344
+ */
1345
+ 503: ErrorResponse;
992
1346
  };
993
1347
  export type GetProjectByIdError = GetProjectByIdErrors[keyof GetProjectByIdErrors];
994
1348
  export type GetProjectByIdResponses = {
@@ -1038,6 +1392,10 @@ export type UpdateProjectErrors = {
1038
1392
  * Internal server error
1039
1393
  */
1040
1394
  500: ErrorResponse;
1395
+ /**
1396
+ * Service Unavailable
1397
+ */
1398
+ 503: ErrorResponse;
1041
1399
  };
1042
1400
  export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
1043
1401
  export type UpdateProjectResponses = {
@@ -1084,6 +1442,10 @@ export type CreateProjectErrors = {
1084
1442
  * Internal server error
1085
1443
  */
1086
1444
  500: ErrorResponse;
1445
+ /**
1446
+ * Service Unavailable
1447
+ */
1448
+ 503: ErrorResponse;
1087
1449
  };
1088
1450
  export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
1089
1451
  export type CreateProjectResponses = {
@@ -1154,6 +1516,10 @@ export type GetUploadConfigurationErrors = {
1154
1516
  * Internal server error
1155
1517
  */
1156
1518
  500: ErrorResponse;
1519
+ /**
1520
+ * Service Unavailable
1521
+ */
1522
+ 503: ErrorResponse;
1157
1523
  };
1158
1524
  export type GetUploadConfigurationError = GetUploadConfigurationErrors[keyof GetUploadConfigurationErrors];
1159
1525
  export type GetUploadConfigurationResponses = {
@@ -1226,6 +1592,10 @@ export type ListFilesErrors = {
1226
1592
  * Internal server error
1227
1593
  */
1228
1594
  500: ErrorResponse;
1595
+ /**
1596
+ * Service Unavailable
1597
+ */
1598
+ 503: ErrorResponse;
1229
1599
  };
1230
1600
  export type ListFilesError = ListFilesErrors[keyof ListFilesErrors];
1231
1601
  export type ListFilesResponses = {
@@ -1300,6 +1670,10 @@ export type CreateMediaErrors = {
1300
1670
  * Internal server error
1301
1671
  */
1302
1672
  500: ErrorResponse;
1673
+ /**
1674
+ * Service Unavailable
1675
+ */
1676
+ 503: ErrorResponse;
1303
1677
  };
1304
1678
  export type CreateMediaError = CreateMediaErrors[keyof CreateMediaErrors];
1305
1679
  export type CreateMediaResponses = {
@@ -1347,6 +1721,10 @@ export type GetAccountScreenshotsErrors = {
1347
1721
  * Internal server error
1348
1722
  */
1349
1723
  500: ErrorResponse;
1724
+ /**
1725
+ * Service Unavailable
1726
+ */
1727
+ 503: ErrorResponse;
1350
1728
  };
1351
1729
  export type GetAccountScreenshotsError = GetAccountScreenshotsErrors[keyof GetAccountScreenshotsErrors];
1352
1730
  export type GetAccountScreenshotsResponses = {
@@ -1399,6 +1777,10 @@ export type GetProjectScreenshotsErrors = {
1399
1777
  * Internal server error
1400
1778
  */
1401
1779
  500: ErrorResponse;
1780
+ /**
1781
+ * Service Unavailable
1782
+ */
1783
+ 503: ErrorResponse;
1402
1784
  };
1403
1785
  export type GetProjectScreenshotsError = GetProjectScreenshotsErrors[keyof GetProjectScreenshotsErrors];
1404
1786
  export type GetProjectScreenshotsResponses = {
@@ -1475,6 +1857,10 @@ export type TakeScreenshotErrors = {
1475
1857
  * Internal server error
1476
1858
  */
1477
1859
  500: ErrorResponse;
1860
+ /**
1861
+ * Service Unavailable
1862
+ */
1863
+ 503: ErrorResponse;
1478
1864
  };
1479
1865
  export type TakeScreenshotError = TakeScreenshotErrors[keyof TakeScreenshotErrors];
1480
1866
  export type TakeScreenshotResponses = {
@@ -1581,6 +1967,10 @@ export type ScrapePageContentErrors = {
1581
1967
  * Internal server error
1582
1968
  */
1583
1969
  500: ErrorResponse;
1970
+ /**
1971
+ * Service Unavailable
1972
+ */
1973
+ 503: ErrorResponse;
1584
1974
  };
1585
1975
  export type ScrapePageContentError = ScrapePageContentErrors[keyof ScrapePageContentErrors];
1586
1976
  export type ScrapePageContentResponses = {