@dazl/internal-api-client 1.5.7 → 1.5.9

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.
@@ -72,6 +72,8 @@ export type Deployment = {
72
72
  productionURL: string;
73
73
  publishedAt: string;
74
74
  createdAt: string;
75
+ customDomain: string | null;
76
+ isDnsValid: boolean;
75
77
  };
76
78
  export type ProjectRaw = {
77
79
  id: string;
@@ -285,6 +287,10 @@ export type GetByDazlIdErrors = {
285
287
  * Not Found
286
288
  */
287
289
  404: ErrorResponse;
290
+ /**
291
+ * Conflict
292
+ */
293
+ 409: ErrorResponse;
288
294
  /**
289
295
  * Internal server error
290
296
  */
@@ -338,6 +344,10 @@ export type UpdateByDazlIdErrors = {
338
344
  * Not Found
339
345
  */
340
346
  404: ErrorResponse;
347
+ /**
348
+ * Conflict
349
+ */
350
+ 409: ErrorResponse;
341
351
  /**
342
352
  * Internal server error
343
353
  */
@@ -385,6 +395,10 @@ export type GetHasSufficientCreditsByDazlIdErrors = {
385
395
  * Not Found
386
396
  */
387
397
  404: ErrorResponse;
398
+ /**
399
+ * Conflict
400
+ */
401
+ 409: ErrorResponse;
388
402
  /**
389
403
  * Internal server error
390
404
  */
@@ -430,6 +444,10 @@ export type GetAllProductsErrors = {
430
444
  * Not Found
431
445
  */
432
446
  404: ErrorResponse;
447
+ /**
448
+ * Conflict
449
+ */
450
+ 409: ErrorResponse;
433
451
  /**
434
452
  * Internal server error
435
453
  */
@@ -475,6 +493,10 @@ export type GetMaxCreditsForDefaultFreeErrors = {
475
493
  * Not Found
476
494
  */
477
495
  404: ErrorResponse;
496
+ /**
497
+ * Conflict
498
+ */
499
+ 409: ErrorResponse;
478
500
  /**
479
501
  * Internal server error
480
502
  */
@@ -522,6 +544,10 @@ export type GetPriceByIdErrors = {
522
544
  * Not Found
523
545
  */
524
546
  404: ErrorResponse;
547
+ /**
548
+ * Conflict
549
+ */
550
+ 409: ErrorResponse;
525
551
  /**
526
552
  * Internal server error
527
553
  */
@@ -580,6 +606,10 @@ export type GetCustomerInfoByDazlIdErrors = {
580
606
  * Not Found
581
607
  */
582
608
  404: ErrorResponse;
609
+ /**
610
+ * Conflict
611
+ */
612
+ 409: ErrorResponse;
583
613
  /**
584
614
  * Internal server error
585
615
  */
@@ -628,6 +658,10 @@ export type UpdateUserSubscriptionErrors = {
628
658
  * Not Found
629
659
  */
630
660
  404: ErrorResponse;
661
+ /**
662
+ * Conflict
663
+ */
664
+ 409: ErrorResponse;
631
665
  /**
632
666
  * Internal server error
633
667
  */
@@ -681,6 +715,10 @@ export type CancelScheduledUpdateByDazlIdErrors = {
681
715
  * Not Found
682
716
  */
683
717
  404: ErrorResponse;
718
+ /**
719
+ * Conflict
720
+ */
721
+ 409: ErrorResponse;
684
722
  /**
685
723
  * Internal server error
686
724
  */
@@ -729,6 +767,10 @@ export type CreateCustomerPortalSessionErrors = {
729
767
  * Not Found
730
768
  */
731
769
  404: ErrorResponse;
770
+ /**
771
+ * Conflict
772
+ */
773
+ 409: ErrorResponse;
732
774
  /**
733
775
  * Internal server error
734
776
  */
@@ -783,6 +825,10 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
783
825
  * Not Found
784
826
  */
785
827
  404: ErrorResponse;
828
+ /**
829
+ * Conflict
830
+ */
831
+ 409: ErrorResponse;
786
832
  /**
787
833
  * Internal server error
788
834
  */
@@ -831,6 +877,10 @@ export type GetUserInfoByDazlIdErrors = {
831
877
  * Not Found
832
878
  */
833
879
  404: ErrorResponse;
880
+ /**
881
+ * Conflict
882
+ */
883
+ 409: ErrorResponse;
834
884
  /**
835
885
  * Internal server error
836
886
  */
@@ -883,6 +933,10 @@ export type ConnectUserErrors = {
883
933
  * Not Found
884
934
  */
885
935
  404: ErrorResponse;
936
+ /**
937
+ * Conflict
938
+ */
939
+ 409: ErrorResponse;
886
940
  /**
887
941
  * Internal server error
888
942
  */
@@ -930,6 +984,10 @@ export type GetUserInfoErrors = {
930
984
  * Not Found
931
985
  */
932
986
  404: ErrorResponse;
987
+ /**
988
+ * Conflict
989
+ */
990
+ 409: ErrorResponse;
933
991
  /**
934
992
  * Internal server error
935
993
  */
@@ -977,6 +1035,10 @@ export type GetInstallationsErrors = {
977
1035
  * Not Found
978
1036
  */
979
1037
  404: ErrorResponse;
1038
+ /**
1039
+ * Conflict
1040
+ */
1041
+ 409: ErrorResponse;
980
1042
  /**
981
1043
  * Internal server error
982
1044
  */
@@ -1028,6 +1090,10 @@ export type GetInstallationTokenErrors = {
1028
1090
  * Not Found
1029
1091
  */
1030
1092
  404: ErrorResponse;
1093
+ /**
1094
+ * Conflict
1095
+ */
1096
+ 409: ErrorResponse;
1031
1097
  /**
1032
1098
  * Internal server error
1033
1099
  */
@@ -1047,6 +1113,121 @@ export type GetInstallationTokenResponses = {
1047
1113
  };
1048
1114
  };
1049
1115
  export type GetInstallationTokenResponse = GetInstallationTokenResponses[keyof GetInstallationTokenResponses];
1116
+ export type GetProjectInfoData = {
1117
+ body?: never;
1118
+ path: {
1119
+ projectId: string;
1120
+ };
1121
+ query?: never;
1122
+ url: '/github/project/{projectId}/info';
1123
+ };
1124
+ export type GetProjectInfoErrors = {
1125
+ /**
1126
+ * Bad request - Invalid parameters or malformed JSON
1127
+ */
1128
+ 400: {
1129
+ message: string;
1130
+ issues?: string;
1131
+ };
1132
+ /**
1133
+ * Unauthorized
1134
+ */
1135
+ 401: ErrorResponse;
1136
+ /**
1137
+ * Forbidden
1138
+ */
1139
+ 403: ErrorResponse;
1140
+ /**
1141
+ * Not Found
1142
+ */
1143
+ 404: ErrorResponse;
1144
+ /**
1145
+ * Conflict
1146
+ */
1147
+ 409: ErrorResponse;
1148
+ /**
1149
+ * Internal server error
1150
+ */
1151
+ 500: ErrorResponse;
1152
+ /**
1153
+ * Service Unavailable
1154
+ */
1155
+ 503: ErrorResponse;
1156
+ };
1157
+ export type GetProjectInfoError = GetProjectInfoErrors[keyof GetProjectInfoErrors];
1158
+ export type GetProjectInfoResponses = {
1159
+ /**
1160
+ * Returns project's GitHub info
1161
+ */
1162
+ 200: {
1163
+ createdAt: string;
1164
+ updatedAt: string;
1165
+ installationId: number;
1166
+ projectId: string;
1167
+ branch: string;
1168
+ repoFullName: string;
1169
+ };
1170
+ };
1171
+ export type GetProjectInfoResponse = GetProjectInfoResponses[keyof GetProjectInfoResponses];
1172
+ export type CreateRepositoryData = {
1173
+ body?: {
1174
+ dazlId: string;
1175
+ installationId: number;
1176
+ repoName: string;
1177
+ isPrivate?: boolean;
1178
+ description?: string;
1179
+ };
1180
+ path: {
1181
+ projectId: string;
1182
+ };
1183
+ query?: never;
1184
+ url: '/github/project/{projectId}/repo';
1185
+ };
1186
+ export type CreateRepositoryErrors = {
1187
+ /**
1188
+ * Bad request - Invalid parameters or malformed JSON
1189
+ */
1190
+ 400: {
1191
+ message: string;
1192
+ issues?: string;
1193
+ };
1194
+ /**
1195
+ * Unauthorized
1196
+ */
1197
+ 401: ErrorResponse;
1198
+ /**
1199
+ * Forbidden
1200
+ */
1201
+ 403: ErrorResponse;
1202
+ /**
1203
+ * Not Found
1204
+ */
1205
+ 404: ErrorResponse;
1206
+ /**
1207
+ * Conflict
1208
+ */
1209
+ 409: ErrorResponse;
1210
+ /**
1211
+ * Internal server error
1212
+ */
1213
+ 500: ErrorResponse;
1214
+ /**
1215
+ * Service Unavailable
1216
+ */
1217
+ 503: ErrorResponse;
1218
+ };
1219
+ export type CreateRepositoryError = CreateRepositoryErrors[keyof CreateRepositoryErrors];
1220
+ export type CreateRepositoryResponses = {
1221
+ /**
1222
+ * Repository created and linked to project
1223
+ */
1224
+ 200: {
1225
+ repoFullName: string;
1226
+ repoUrl: string;
1227
+ branch: string;
1228
+ };
1229
+ };
1230
+ export type CreateRepositoryResponse = CreateRepositoryResponses[keyof CreateRepositoryResponses];
1050
1231
  export type GetInstallationUrlData = {
1051
1232
  body?: never;
1052
1233
  path?: never;
@@ -1075,6 +1256,10 @@ export type GetInstallationUrlErrors = {
1075
1256
  * Not Found
1076
1257
  */
1077
1258
  404: ErrorResponse;
1259
+ /**
1260
+ * Conflict
1261
+ */
1262
+ 409: ErrorResponse;
1078
1263
  /**
1079
1264
  * Internal server error
1080
1265
  */
@@ -1127,6 +1312,10 @@ export type EnsureSiteIdErrors = {
1127
1312
  * Not Found
1128
1313
  */
1129
1314
  404: ErrorResponse;
1315
+ /**
1316
+ * Conflict
1317
+ */
1318
+ 409: ErrorResponse;
1130
1319
  /**
1131
1320
  * Internal server error
1132
1321
  */
@@ -1175,6 +1364,10 @@ export type GetLatestDeployErrors = {
1175
1364
  * Not Found
1176
1365
  */
1177
1366
  404: ErrorResponse;
1367
+ /**
1368
+ * Conflict
1369
+ */
1370
+ 409: ErrorResponse;
1178
1371
  /**
1179
1372
  * Internal server error
1180
1373
  */
@@ -1225,6 +1418,10 @@ export type UpsertDeployInDbErrors = {
1225
1418
  * Not Found
1226
1419
  */
1227
1420
  404: ErrorResponse;
1421
+ /**
1422
+ * Conflict
1423
+ */
1424
+ 409: ErrorResponse;
1228
1425
  /**
1229
1426
  * Internal server error
1230
1427
  */
@@ -1273,6 +1470,10 @@ export type UpdateEnvVarsErrors = {
1273
1470
  * Not Found
1274
1471
  */
1275
1472
  404: ErrorResponse;
1473
+ /**
1474
+ * Conflict
1475
+ */
1476
+ 409: ErrorResponse;
1276
1477
  /**
1277
1478
  * Internal server error
1278
1479
  */
@@ -1298,7 +1499,6 @@ export type DeleteCustomDomainData = {
1298
1499
  query: {
1299
1500
  projectId: string;
1300
1501
  dazlId: string;
1301
- domain: string;
1302
1502
  };
1303
1503
  url: '/publish/custom-domain';
1304
1504
  };
@@ -1322,6 +1522,10 @@ export type DeleteCustomDomainErrors = {
1322
1522
  * Not Found
1323
1523
  */
1324
1524
  404: ErrorResponse;
1525
+ /**
1526
+ * Conflict
1527
+ */
1528
+ 409: ErrorResponse;
1325
1529
  /**
1326
1530
  * Internal server error
1327
1531
  */
@@ -1370,6 +1574,10 @@ export type GetCustomDomainErrors = {
1370
1574
  * Not Found
1371
1575
  */
1372
1576
  404: ErrorResponse;
1577
+ /**
1578
+ * Conflict
1579
+ */
1580
+ 409: ErrorResponse;
1373
1581
  /**
1374
1582
  * Internal server error
1375
1583
  */
@@ -1419,6 +1627,10 @@ export type AddCustomDomainErrors = {
1419
1627
  * Not Found
1420
1628
  */
1421
1629
  404: ErrorResponse;
1630
+ /**
1631
+ * Conflict
1632
+ */
1633
+ 409: ErrorResponse;
1422
1634
  /**
1423
1635
  * Internal server error
1424
1636
  */
@@ -1438,6 +1650,74 @@ export type AddCustomDomainResponses = {
1438
1650
  };
1439
1651
  };
1440
1652
  export type AddCustomDomainResponse = AddCustomDomainResponses[keyof AddCustomDomainResponses];
1653
+ export type GetEntriConfigData = {
1654
+ body?: never;
1655
+ path?: never;
1656
+ query: {
1657
+ projectId: string;
1658
+ dazlId: string;
1659
+ };
1660
+ url: '/publish/entri-config';
1661
+ };
1662
+ export type GetEntriConfigErrors = {
1663
+ /**
1664
+ * Bad request - Invalid parameters or malformed JSON
1665
+ */
1666
+ 400: {
1667
+ message: string;
1668
+ issues?: string;
1669
+ };
1670
+ /**
1671
+ * Unauthorized
1672
+ */
1673
+ 401: ErrorResponse;
1674
+ /**
1675
+ * Forbidden
1676
+ */
1677
+ 403: ErrorResponse;
1678
+ /**
1679
+ * Not Found
1680
+ */
1681
+ 404: ErrorResponse;
1682
+ /**
1683
+ * Conflict
1684
+ */
1685
+ 409: ErrorResponse;
1686
+ /**
1687
+ * Internal server error
1688
+ */
1689
+ 500: ErrorResponse;
1690
+ /**
1691
+ * Service Unavailable
1692
+ */
1693
+ 503: ErrorResponse;
1694
+ };
1695
+ export type GetEntriConfigError = GetEntriConfigErrors[keyof GetEntriConfigErrors];
1696
+ export type GetEntriConfigResponses = {
1697
+ /**
1698
+ * Returns the Entri configuration
1699
+ */
1700
+ 200: {
1701
+ applicationId: string;
1702
+ token: string;
1703
+ prefilledDomain?: string;
1704
+ dnsRecords: {
1705
+ domain: Array<{
1706
+ type: string;
1707
+ host: string;
1708
+ value: string;
1709
+ ttl: number;
1710
+ }>;
1711
+ subDomain: Array<{
1712
+ type: string;
1713
+ host: string;
1714
+ value: string;
1715
+ ttl: number;
1716
+ }>;
1717
+ };
1718
+ };
1719
+ };
1720
+ export type GetEntriConfigResponse = GetEntriConfigResponses[keyof GetEntriConfigResponses];
1441
1721
  export type DuplicateProjectData = {
1442
1722
  body: {
1443
1723
  ownerDazlId: string;
@@ -1472,6 +1752,10 @@ export type DuplicateProjectErrors = {
1472
1752
  * Not Found
1473
1753
  */
1474
1754
  404: ErrorResponse;
1755
+ /**
1756
+ * Conflict
1757
+ */
1758
+ 409: ErrorResponse;
1475
1759
  /**
1476
1760
  * Internal server error
1477
1761
  */
@@ -1519,6 +1803,10 @@ export type DeleteProjectErrors = {
1519
1803
  * Not Found
1520
1804
  */
1521
1805
  404: ErrorResponse;
1806
+ /**
1807
+ * Conflict
1808
+ */
1809
+ 409: ErrorResponse;
1522
1810
  /**
1523
1811
  * Internal server error
1524
1812
  */
@@ -1568,6 +1856,10 @@ export type GetProjectByIdErrors = {
1568
1856
  * Not Found
1569
1857
  */
1570
1858
  404: ErrorResponse;
1859
+ /**
1860
+ * Conflict
1861
+ */
1862
+ 409: ErrorResponse;
1571
1863
  /**
1572
1864
  * Internal server error
1573
1865
  */
@@ -1621,6 +1913,10 @@ export type UpdateProjectErrors = {
1621
1913
  * Not Found
1622
1914
  */
1623
1915
  404: ErrorResponse;
1916
+ /**
1917
+ * Conflict
1918
+ */
1919
+ 409: ErrorResponse;
1624
1920
  /**
1625
1921
  * Internal server error
1626
1922
  */
@@ -1671,6 +1967,10 @@ export type CreateProjectErrors = {
1671
1967
  * Not Found
1672
1968
  */
1673
1969
  404: ErrorResponse;
1970
+ /**
1971
+ * Conflict
1972
+ */
1973
+ 409: ErrorResponse;
1674
1974
  /**
1675
1975
  * Internal server error
1676
1976
  */
@@ -1727,6 +2027,10 @@ export type GetUserProjectsErrors = {
1727
2027
  * Not Found
1728
2028
  */
1729
2029
  404: ErrorResponse;
2030
+ /**
2031
+ * Conflict
2032
+ */
2033
+ 409: ErrorResponse;
1730
2034
  /**
1731
2035
  * Internal server error
1732
2036
  */
@@ -1784,6 +2088,10 @@ export type GetUserTemplatesErrors = {
1784
2088
  * Not Found
1785
2089
  */
1786
2090
  404: ErrorResponse;
2091
+ /**
2092
+ * Conflict
2093
+ */
2094
+ 409: ErrorResponse;
1787
2095
  /**
1788
2096
  * Internal server error
1789
2097
  */
@@ -1839,6 +2147,10 @@ export type DeleteTemplateErrors = {
1839
2147
  * Not Found
1840
2148
  */
1841
2149
  404: ErrorResponse;
2150
+ /**
2151
+ * Conflict
2152
+ */
2153
+ 409: ErrorResponse;
1842
2154
  /**
1843
2155
  * Internal server error
1844
2156
  */
@@ -1886,6 +2198,10 @@ export type GetTemplateErrors = {
1886
2198
  * Not Found
1887
2199
  */
1888
2200
  404: ErrorResponse;
2201
+ /**
2202
+ * Conflict
2203
+ */
2204
+ 409: ErrorResponse;
1889
2205
  /**
1890
2206
  * Internal server error
1891
2207
  */
@@ -1939,6 +2255,10 @@ export type UpdateTemplateErrors = {
1939
2255
  * Not Found
1940
2256
  */
1941
2257
  404: ErrorResponse;
2258
+ /**
2259
+ * Conflict
2260
+ */
2261
+ 409: ErrorResponse;
1942
2262
  /**
1943
2263
  * Internal server error
1944
2264
  */
@@ -1992,6 +2312,10 @@ export type CreateTemplateErrors = {
1992
2312
  * Not Found
1993
2313
  */
1994
2314
  404: ErrorResponse;
2315
+ /**
2316
+ * Conflict
2317
+ */
2318
+ 409: ErrorResponse;
1995
2319
  /**
1996
2320
  * Internal server error
1997
2321
  */
@@ -2066,6 +2390,10 @@ export type GetUploadConfigurationErrors = {
2066
2390
  404: {
2067
2391
  message: string;
2068
2392
  };
2393
+ /**
2394
+ * Conflict
2395
+ */
2396
+ 409: ErrorResponse;
2069
2397
  /**
2070
2398
  * Internal server error
2071
2399
  */
@@ -2142,6 +2470,10 @@ export type ListFilesErrors = {
2142
2470
  404: {
2143
2471
  message: string;
2144
2472
  };
2473
+ /**
2474
+ * Conflict
2475
+ */
2476
+ 409: ErrorResponse;
2145
2477
  /**
2146
2478
  * Internal server error
2147
2479
  */
@@ -2220,6 +2552,10 @@ export type CreateMediaErrors = {
2220
2552
  404: {
2221
2553
  message: string;
2222
2554
  };
2555
+ /**
2556
+ * Conflict
2557
+ */
2558
+ 409: ErrorResponse;
2223
2559
  /**
2224
2560
  * Internal server error
2225
2561
  */
@@ -2271,6 +2607,10 @@ export type GetAccountScreenshotsErrors = {
2271
2607
  404: {
2272
2608
  message: string;
2273
2609
  };
2610
+ /**
2611
+ * Conflict
2612
+ */
2613
+ 409: ErrorResponse;
2274
2614
  /**
2275
2615
  * Internal server error
2276
2616
  */
@@ -2327,6 +2667,10 @@ export type GetProjectScreenshotsErrors = {
2327
2667
  404: {
2328
2668
  message: string;
2329
2669
  };
2670
+ /**
2671
+ * Conflict
2672
+ */
2673
+ 409: ErrorResponse;
2330
2674
  /**
2331
2675
  * Internal server error
2332
2676
  */
@@ -2411,6 +2755,10 @@ export type TakeScreenshotErrors = {
2411
2755
  404: {
2412
2756
  message: string;
2413
2757
  };
2758
+ /**
2759
+ * Conflict
2760
+ */
2761
+ 409: ErrorResponse;
2414
2762
  /**
2415
2763
  * Internal server error
2416
2764
  */
@@ -2525,6 +2873,10 @@ export type ScrapePageContentErrors = {
2525
2873
  404: {
2526
2874
  message: string;
2527
2875
  };
2876
+ /**
2877
+ * Conflict
2878
+ */
2879
+ 409: ErrorResponse;
2528
2880
  /**
2529
2881
  * Internal server error
2530
2882
  */
@@ -2634,6 +2986,10 @@ export type GetUserByDazlIdErrors = {
2634
2986
  * Not Found
2635
2987
  */
2636
2988
  404: ErrorResponse;
2989
+ /**
2990
+ * Conflict
2991
+ */
2992
+ 409: ErrorResponse;
2637
2993
  /**
2638
2994
  * Internal server error
2639
2995
  */
@@ -2684,6 +3040,10 @@ export type UpdateUserErrors = {
2684
3040
  * Not Found
2685
3041
  */
2686
3042
  404: ErrorResponse;
3043
+ /**
3044
+ * Conflict
3045
+ */
3046
+ 409: ErrorResponse;
2687
3047
  /**
2688
3048
  * Internal server error
2689
3049
  */
@@ -2735,6 +3095,10 @@ export type CreateUserErrors = {
2735
3095
  * Not Found
2736
3096
  */
2737
3097
  404: ErrorResponse;
3098
+ /**
3099
+ * Conflict
3100
+ */
3101
+ 409: ErrorResponse;
2738
3102
  /**
2739
3103
  * Internal server error
2740
3104
  */
@@ -2829,6 +3193,10 @@ export type SearchWebErrors = {
2829
3193
  * Not Found
2830
3194
  */
2831
3195
  404: ErrorResponse;
3196
+ /**
3197
+ * Conflict
3198
+ */
3199
+ 409: ErrorResponse;
2832
3200
  /**
2833
3201
  * Internal server error
2834
3202
  */