@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.
package/src/types.gen.ts CHANGED
@@ -81,6 +81,8 @@ export type Deployment = {
81
81
  productionURL: string;
82
82
  publishedAt: string;
83
83
  createdAt: string;
84
+ customDomain: string | null;
85
+ isDnsValid: boolean;
84
86
  };
85
87
 
86
88
  export type ProjectRaw = {
@@ -305,6 +307,10 @@ export type GetByDazlIdErrors = {
305
307
  * Not Found
306
308
  */
307
309
  404: ErrorResponse;
310
+ /**
311
+ * Conflict
312
+ */
313
+ 409: ErrorResponse;
308
314
  /**
309
315
  * Internal server error
310
316
  */
@@ -363,6 +369,10 @@ export type UpdateByDazlIdErrors = {
363
369
  * Not Found
364
370
  */
365
371
  404: ErrorResponse;
372
+ /**
373
+ * Conflict
374
+ */
375
+ 409: ErrorResponse;
366
376
  /**
367
377
  * Internal server error
368
378
  */
@@ -415,6 +425,10 @@ export type GetHasSufficientCreditsByDazlIdErrors = {
415
425
  * Not Found
416
426
  */
417
427
  404: ErrorResponse;
428
+ /**
429
+ * Conflict
430
+ */
431
+ 409: ErrorResponse;
418
432
  /**
419
433
  * Internal server error
420
434
  */
@@ -465,6 +479,10 @@ export type GetAllProductsErrors = {
465
479
  * Not Found
466
480
  */
467
481
  404: ErrorResponse;
482
+ /**
483
+ * Conflict
484
+ */
485
+ 409: ErrorResponse;
468
486
  /**
469
487
  * Internal server error
470
488
  */
@@ -515,6 +533,10 @@ export type GetMaxCreditsForDefaultFreeErrors = {
515
533
  * Not Found
516
534
  */
517
535
  404: ErrorResponse;
536
+ /**
537
+ * Conflict
538
+ */
539
+ 409: ErrorResponse;
518
540
  /**
519
541
  * Internal server error
520
542
  */
@@ -567,6 +589,10 @@ export type GetPriceByIdErrors = {
567
589
  * Not Found
568
590
  */
569
591
  404: ErrorResponse;
592
+ /**
593
+ * Conflict
594
+ */
595
+ 409: ErrorResponse;
570
596
  /**
571
597
  * Internal server error
572
598
  */
@@ -630,6 +656,10 @@ export type GetCustomerInfoByDazlIdErrors = {
630
656
  * Not Found
631
657
  */
632
658
  404: ErrorResponse;
659
+ /**
660
+ * Conflict
661
+ */
662
+ 409: ErrorResponse;
633
663
  /**
634
664
  * Internal server error
635
665
  */
@@ -683,6 +713,10 @@ export type UpdateUserSubscriptionErrors = {
683
713
  * Not Found
684
714
  */
685
715
  404: ErrorResponse;
716
+ /**
717
+ * Conflict
718
+ */
719
+ 409: ErrorResponse;
686
720
  /**
687
721
  * Internal server error
688
722
  */
@@ -741,6 +775,10 @@ export type CancelScheduledUpdateByDazlIdErrors = {
741
775
  * Not Found
742
776
  */
743
777
  404: ErrorResponse;
778
+ /**
779
+ * Conflict
780
+ */
781
+ 409: ErrorResponse;
744
782
  /**
745
783
  * Internal server error
746
784
  */
@@ -794,6 +832,10 @@ export type CreateCustomerPortalSessionErrors = {
794
832
  * Not Found
795
833
  */
796
834
  404: ErrorResponse;
835
+ /**
836
+ * Conflict
837
+ */
838
+ 409: ErrorResponse;
797
839
  /**
798
840
  * Internal server error
799
841
  */
@@ -853,6 +895,10 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
853
895
  * Not Found
854
896
  */
855
897
  404: ErrorResponse;
898
+ /**
899
+ * Conflict
900
+ */
901
+ 409: ErrorResponse;
856
902
  /**
857
903
  * Internal server error
858
904
  */
@@ -906,6 +952,10 @@ export type GetUserInfoByDazlIdErrors = {
906
952
  * Not Found
907
953
  */
908
954
  404: ErrorResponse;
955
+ /**
956
+ * Conflict
957
+ */
958
+ 409: ErrorResponse;
909
959
  /**
910
960
  * Internal server error
911
961
  */
@@ -963,6 +1013,10 @@ export type ConnectUserErrors = {
963
1013
  * Not Found
964
1014
  */
965
1015
  404: ErrorResponse;
1016
+ /**
1017
+ * Conflict
1018
+ */
1019
+ 409: ErrorResponse;
966
1020
  /**
967
1021
  * Internal server error
968
1022
  */
@@ -1015,6 +1069,10 @@ export type GetUserInfoErrors = {
1015
1069
  * Not Found
1016
1070
  */
1017
1071
  404: ErrorResponse;
1072
+ /**
1073
+ * Conflict
1074
+ */
1075
+ 409: ErrorResponse;
1018
1076
  /**
1019
1077
  * Internal server error
1020
1078
  */
@@ -1067,6 +1125,10 @@ export type GetInstallationsErrors = {
1067
1125
  * Not Found
1068
1126
  */
1069
1127
  404: ErrorResponse;
1128
+ /**
1129
+ * Conflict
1130
+ */
1131
+ 409: ErrorResponse;
1070
1132
  /**
1071
1133
  * Internal server error
1072
1134
  */
@@ -1123,6 +1185,10 @@ export type GetInstallationTokenErrors = {
1123
1185
  * Not Found
1124
1186
  */
1125
1187
  404: ErrorResponse;
1188
+ /**
1189
+ * Conflict
1190
+ */
1191
+ 409: ErrorResponse;
1126
1192
  /**
1127
1193
  * Internal server error
1128
1194
  */
@@ -1146,6 +1212,131 @@ export type GetInstallationTokenResponses = {
1146
1212
 
1147
1213
  export type GetInstallationTokenResponse = GetInstallationTokenResponses[keyof GetInstallationTokenResponses];
1148
1214
 
1215
+ export type GetProjectInfoData = {
1216
+ body?: never;
1217
+ path: {
1218
+ projectId: string;
1219
+ };
1220
+ query?: never;
1221
+ url: '/github/project/{projectId}/info';
1222
+ };
1223
+
1224
+ export type GetProjectInfoErrors = {
1225
+ /**
1226
+ * Bad request - Invalid parameters or malformed JSON
1227
+ */
1228
+ 400: {
1229
+ message: string;
1230
+ issues?: string;
1231
+ };
1232
+ /**
1233
+ * Unauthorized
1234
+ */
1235
+ 401: ErrorResponse;
1236
+ /**
1237
+ * Forbidden
1238
+ */
1239
+ 403: ErrorResponse;
1240
+ /**
1241
+ * Not Found
1242
+ */
1243
+ 404: ErrorResponse;
1244
+ /**
1245
+ * Conflict
1246
+ */
1247
+ 409: ErrorResponse;
1248
+ /**
1249
+ * Internal server error
1250
+ */
1251
+ 500: ErrorResponse;
1252
+ /**
1253
+ * Service Unavailable
1254
+ */
1255
+ 503: ErrorResponse;
1256
+ };
1257
+
1258
+ export type GetProjectInfoError = GetProjectInfoErrors[keyof GetProjectInfoErrors];
1259
+
1260
+ export type GetProjectInfoResponses = {
1261
+ /**
1262
+ * Returns project's GitHub info
1263
+ */
1264
+ 200: {
1265
+ createdAt: string;
1266
+ updatedAt: string;
1267
+ installationId: number;
1268
+ projectId: string;
1269
+ branch: string;
1270
+ repoFullName: string;
1271
+ };
1272
+ };
1273
+
1274
+ export type GetProjectInfoResponse = GetProjectInfoResponses[keyof GetProjectInfoResponses];
1275
+
1276
+ export type CreateRepositoryData = {
1277
+ body?: {
1278
+ dazlId: string;
1279
+ installationId: number;
1280
+ repoName: string;
1281
+ isPrivate?: boolean;
1282
+ description?: string;
1283
+ };
1284
+ path: {
1285
+ projectId: string;
1286
+ };
1287
+ query?: never;
1288
+ url: '/github/project/{projectId}/repo';
1289
+ };
1290
+
1291
+ export type CreateRepositoryErrors = {
1292
+ /**
1293
+ * Bad request - Invalid parameters or malformed JSON
1294
+ */
1295
+ 400: {
1296
+ message: string;
1297
+ issues?: string;
1298
+ };
1299
+ /**
1300
+ * Unauthorized
1301
+ */
1302
+ 401: ErrorResponse;
1303
+ /**
1304
+ * Forbidden
1305
+ */
1306
+ 403: ErrorResponse;
1307
+ /**
1308
+ * Not Found
1309
+ */
1310
+ 404: ErrorResponse;
1311
+ /**
1312
+ * Conflict
1313
+ */
1314
+ 409: ErrorResponse;
1315
+ /**
1316
+ * Internal server error
1317
+ */
1318
+ 500: ErrorResponse;
1319
+ /**
1320
+ * Service Unavailable
1321
+ */
1322
+ 503: ErrorResponse;
1323
+ };
1324
+
1325
+ export type CreateRepositoryError = CreateRepositoryErrors[keyof CreateRepositoryErrors];
1326
+
1327
+ export type CreateRepositoryResponses = {
1328
+ /**
1329
+ * Repository created and linked to project
1330
+ */
1331
+ 200: {
1332
+ repoFullName: string;
1333
+ repoUrl: string;
1334
+ branch: string;
1335
+ };
1336
+ };
1337
+
1338
+ export type CreateRepositoryResponse = CreateRepositoryResponses[keyof CreateRepositoryResponses];
1339
+
1149
1340
  export type GetInstallationUrlData = {
1150
1341
  body?: never;
1151
1342
  path?: never;
@@ -1175,6 +1366,10 @@ export type GetInstallationUrlErrors = {
1175
1366
  * Not Found
1176
1367
  */
1177
1368
  404: ErrorResponse;
1369
+ /**
1370
+ * Conflict
1371
+ */
1372
+ 409: ErrorResponse;
1178
1373
  /**
1179
1374
  * Internal server error
1180
1375
  */
@@ -1232,6 +1427,10 @@ export type EnsureSiteIdErrors = {
1232
1427
  * Not Found
1233
1428
  */
1234
1429
  404: ErrorResponse;
1430
+ /**
1431
+ * Conflict
1432
+ */
1433
+ 409: ErrorResponse;
1235
1434
  /**
1236
1435
  * Internal server error
1237
1436
  */
@@ -1285,6 +1484,10 @@ export type GetLatestDeployErrors = {
1285
1484
  * Not Found
1286
1485
  */
1287
1486
  404: ErrorResponse;
1487
+ /**
1488
+ * Conflict
1489
+ */
1490
+ 409: ErrorResponse;
1288
1491
  /**
1289
1492
  * Internal server error
1290
1493
  */
@@ -1340,6 +1543,10 @@ export type UpsertDeployInDbErrors = {
1340
1543
  * Not Found
1341
1544
  */
1342
1545
  404: ErrorResponse;
1546
+ /**
1547
+ * Conflict
1548
+ */
1549
+ 409: ErrorResponse;
1343
1550
  /**
1344
1551
  * Internal server error
1345
1552
  */
@@ -1393,6 +1600,10 @@ export type UpdateEnvVarsErrors = {
1393
1600
  * Not Found
1394
1601
  */
1395
1602
  404: ErrorResponse;
1603
+ /**
1604
+ * Conflict
1605
+ */
1606
+ 409: ErrorResponse;
1396
1607
  /**
1397
1608
  * Internal server error
1398
1609
  */
@@ -1422,7 +1633,6 @@ export type DeleteCustomDomainData = {
1422
1633
  query: {
1423
1634
  projectId: string;
1424
1635
  dazlId: string;
1425
- domain: string;
1426
1636
  };
1427
1637
  url: '/publish/custom-domain';
1428
1638
  };
@@ -1447,6 +1657,10 @@ export type DeleteCustomDomainErrors = {
1447
1657
  * Not Found
1448
1658
  */
1449
1659
  404: ErrorResponse;
1660
+ /**
1661
+ * Conflict
1662
+ */
1663
+ 409: ErrorResponse;
1450
1664
  /**
1451
1665
  * Internal server error
1452
1666
  */
@@ -1500,6 +1714,10 @@ export type GetCustomDomainErrors = {
1500
1714
  * Not Found
1501
1715
  */
1502
1716
  404: ErrorResponse;
1717
+ /**
1718
+ * Conflict
1719
+ */
1720
+ 409: ErrorResponse;
1503
1721
  /**
1504
1722
  * Internal server error
1505
1723
  */
@@ -1554,6 +1772,10 @@ export type AddCustomDomainErrors = {
1554
1772
  * Not Found
1555
1773
  */
1556
1774
  404: ErrorResponse;
1775
+ /**
1776
+ * Conflict
1777
+ */
1778
+ 409: ErrorResponse;
1557
1779
  /**
1558
1780
  * Internal server error
1559
1781
  */
@@ -1577,6 +1799,79 @@ export type AddCustomDomainResponses = {
1577
1799
 
1578
1800
  export type AddCustomDomainResponse = AddCustomDomainResponses[keyof AddCustomDomainResponses];
1579
1801
 
1802
+ export type GetEntriConfigData = {
1803
+ body?: never;
1804
+ path?: never;
1805
+ query: {
1806
+ projectId: string;
1807
+ dazlId: string;
1808
+ };
1809
+ url: '/publish/entri-config';
1810
+ };
1811
+
1812
+ export type GetEntriConfigErrors = {
1813
+ /**
1814
+ * Bad request - Invalid parameters or malformed JSON
1815
+ */
1816
+ 400: {
1817
+ message: string;
1818
+ issues?: string;
1819
+ };
1820
+ /**
1821
+ * Unauthorized
1822
+ */
1823
+ 401: ErrorResponse;
1824
+ /**
1825
+ * Forbidden
1826
+ */
1827
+ 403: ErrorResponse;
1828
+ /**
1829
+ * Not Found
1830
+ */
1831
+ 404: ErrorResponse;
1832
+ /**
1833
+ * Conflict
1834
+ */
1835
+ 409: ErrorResponse;
1836
+ /**
1837
+ * Internal server error
1838
+ */
1839
+ 500: ErrorResponse;
1840
+ /**
1841
+ * Service Unavailable
1842
+ */
1843
+ 503: ErrorResponse;
1844
+ };
1845
+
1846
+ export type GetEntriConfigError = GetEntriConfigErrors[keyof GetEntriConfigErrors];
1847
+
1848
+ export type GetEntriConfigResponses = {
1849
+ /**
1850
+ * Returns the Entri configuration
1851
+ */
1852
+ 200: {
1853
+ applicationId: string;
1854
+ token: string;
1855
+ prefilledDomain?: string;
1856
+ dnsRecords: {
1857
+ domain: Array<{
1858
+ type: string;
1859
+ host: string;
1860
+ value: string;
1861
+ ttl: number;
1862
+ }>;
1863
+ subDomain: Array<{
1864
+ type: string;
1865
+ host: string;
1866
+ value: string;
1867
+ ttl: number;
1868
+ }>;
1869
+ };
1870
+ };
1871
+ };
1872
+
1873
+ export type GetEntriConfigResponse = GetEntriConfigResponses[keyof GetEntriConfigResponses];
1874
+
1580
1875
  export type DuplicateProjectData = {
1581
1876
  body: {
1582
1877
  ownerDazlId: string;
@@ -1612,6 +1907,10 @@ export type DuplicateProjectErrors = {
1612
1907
  * Not Found
1613
1908
  */
1614
1909
  404: ErrorResponse;
1910
+ /**
1911
+ * Conflict
1912
+ */
1913
+ 409: ErrorResponse;
1615
1914
  /**
1616
1915
  * Internal server error
1617
1916
  */
@@ -1664,6 +1963,10 @@ export type DeleteProjectErrors = {
1664
1963
  * Not Found
1665
1964
  */
1666
1965
  404: ErrorResponse;
1966
+ /**
1967
+ * Conflict
1968
+ */
1969
+ 409: ErrorResponse;
1667
1970
  /**
1668
1971
  * Internal server error
1669
1972
  */
@@ -1718,6 +2021,10 @@ export type GetProjectByIdErrors = {
1718
2021
  * Not Found
1719
2022
  */
1720
2023
  404: ErrorResponse;
2024
+ /**
2025
+ * Conflict
2026
+ */
2027
+ 409: ErrorResponse;
1721
2028
  /**
1722
2029
  * Internal server error
1723
2030
  */
@@ -1776,6 +2083,10 @@ export type UpdateProjectErrors = {
1776
2083
  * Not Found
1777
2084
  */
1778
2085
  404: ErrorResponse;
2086
+ /**
2087
+ * Conflict
2088
+ */
2089
+ 409: ErrorResponse;
1779
2090
  /**
1780
2091
  * Internal server error
1781
2092
  */
@@ -1831,6 +2142,10 @@ export type CreateProjectErrors = {
1831
2142
  * Not Found
1832
2143
  */
1833
2144
  404: ErrorResponse;
2145
+ /**
2146
+ * Conflict
2147
+ */
2148
+ 409: ErrorResponse;
1834
2149
  /**
1835
2150
  * Internal server error
1836
2151
  */
@@ -1892,6 +2207,10 @@ export type GetUserProjectsErrors = {
1892
2207
  * Not Found
1893
2208
  */
1894
2209
  404: ErrorResponse;
2210
+ /**
2211
+ * Conflict
2212
+ */
2213
+ 409: ErrorResponse;
1895
2214
  /**
1896
2215
  * Internal server error
1897
2216
  */
@@ -1954,6 +2273,10 @@ export type GetUserTemplatesErrors = {
1954
2273
  * Not Found
1955
2274
  */
1956
2275
  404: ErrorResponse;
2276
+ /**
2277
+ * Conflict
2278
+ */
2279
+ 409: ErrorResponse;
1957
2280
  /**
1958
2281
  * Internal server error
1959
2282
  */
@@ -2014,6 +2337,10 @@ export type DeleteTemplateErrors = {
2014
2337
  * Not Found
2015
2338
  */
2016
2339
  404: ErrorResponse;
2340
+ /**
2341
+ * Conflict
2342
+ */
2343
+ 409: ErrorResponse;
2017
2344
  /**
2018
2345
  * Internal server error
2019
2346
  */
@@ -2066,6 +2393,10 @@ export type GetTemplateErrors = {
2066
2393
  * Not Found
2067
2394
  */
2068
2395
  404: ErrorResponse;
2396
+ /**
2397
+ * Conflict
2398
+ */
2399
+ 409: ErrorResponse;
2069
2400
  /**
2070
2401
  * Internal server error
2071
2402
  */
@@ -2124,6 +2455,10 @@ export type UpdateTemplateErrors = {
2124
2455
  * Not Found
2125
2456
  */
2126
2457
  404: ErrorResponse;
2458
+ /**
2459
+ * Conflict
2460
+ */
2461
+ 409: ErrorResponse;
2127
2462
  /**
2128
2463
  * Internal server error
2129
2464
  */
@@ -2182,6 +2517,10 @@ export type CreateTemplateErrors = {
2182
2517
  * Not Found
2183
2518
  */
2184
2519
  404: ErrorResponse;
2520
+ /**
2521
+ * Conflict
2522
+ */
2523
+ 409: ErrorResponse;
2185
2524
  /**
2186
2525
  * Internal server error
2187
2526
  */
@@ -2261,6 +2600,10 @@ export type GetUploadConfigurationErrors = {
2261
2600
  404: {
2262
2601
  message: string;
2263
2602
  };
2603
+ /**
2604
+ * Conflict
2605
+ */
2606
+ 409: ErrorResponse;
2264
2607
  /**
2265
2608
  * Internal server error
2266
2609
  */
@@ -2342,6 +2685,10 @@ export type ListFilesErrors = {
2342
2685
  404: {
2343
2686
  message: string;
2344
2687
  };
2688
+ /**
2689
+ * Conflict
2690
+ */
2691
+ 409: ErrorResponse;
2345
2692
  /**
2346
2693
  * Internal server error
2347
2694
  */
@@ -2425,6 +2772,10 @@ export type CreateMediaErrors = {
2425
2772
  404: {
2426
2773
  message: string;
2427
2774
  };
2775
+ /**
2776
+ * Conflict
2777
+ */
2778
+ 409: ErrorResponse;
2428
2779
  /**
2429
2780
  * Internal server error
2430
2781
  */
@@ -2480,6 +2831,10 @@ export type GetAccountScreenshotsErrors = {
2480
2831
  404: {
2481
2832
  message: string;
2482
2833
  };
2834
+ /**
2835
+ * Conflict
2836
+ */
2837
+ 409: ErrorResponse;
2483
2838
  /**
2484
2839
  * Internal server error
2485
2840
  */
@@ -2541,6 +2896,10 @@ export type GetProjectScreenshotsErrors = {
2541
2896
  404: {
2542
2897
  message: string;
2543
2898
  };
2899
+ /**
2900
+ * Conflict
2901
+ */
2902
+ 409: ErrorResponse;
2544
2903
  /**
2545
2904
  * Internal server error
2546
2905
  */
@@ -2630,6 +2989,10 @@ export type TakeScreenshotErrors = {
2630
2989
  404: {
2631
2990
  message: string;
2632
2991
  };
2992
+ /**
2993
+ * Conflict
2994
+ */
2995
+ 409: ErrorResponse;
2633
2996
  /**
2634
2997
  * Internal server error
2635
2998
  */
@@ -2749,6 +3112,10 @@ export type ScrapePageContentErrors = {
2749
3112
  404: {
2750
3113
  message: string;
2751
3114
  };
3115
+ /**
3116
+ * Conflict
3117
+ */
3118
+ 409: ErrorResponse;
2752
3119
  /**
2753
3120
  * Internal server error
2754
3121
  */
@@ -2863,6 +3230,10 @@ export type GetUserByDazlIdErrors = {
2863
3230
  * Not Found
2864
3231
  */
2865
3232
  404: ErrorResponse;
3233
+ /**
3234
+ * Conflict
3235
+ */
3236
+ 409: ErrorResponse;
2866
3237
  /**
2867
3238
  * Internal server error
2868
3239
  */
@@ -2918,6 +3289,10 @@ export type UpdateUserErrors = {
2918
3289
  * Not Found
2919
3290
  */
2920
3291
  404: ErrorResponse;
3292
+ /**
3293
+ * Conflict
3294
+ */
3295
+ 409: ErrorResponse;
2921
3296
  /**
2922
3297
  * Internal server error
2923
3298
  */
@@ -2974,6 +3349,10 @@ export type CreateUserErrors = {
2974
3349
  * Not Found
2975
3350
  */
2976
3351
  404: ErrorResponse;
3352
+ /**
3353
+ * Conflict
3354
+ */
3355
+ 409: ErrorResponse;
2977
3356
  /**
2978
3357
  * Internal server error
2979
3358
  */
@@ -3073,6 +3452,10 @@ export type SearchWebErrors = {
3073
3452
  * Not Found
3074
3453
  */
3075
3454
  404: ErrorResponse;
3455
+ /**
3456
+ * Conflict
3457
+ */
3458
+ 409: ErrorResponse;
3076
3459
  /**
3077
3460
  * Internal server error
3078
3461
  */