freestyle-sandboxes 0.1.11 → 0.1.13
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/index.cjs +668 -670
- package/index.d.cts +542 -982
- package/index.d.mts +542 -982
- package/index.mjs +668 -670
- package/package.json +1 -1
- package/index.js +0 -391
package/index.cjs
CHANGED
|
@@ -1292,89 +1292,173 @@ class EmptyTagError extends Error {
|
|
|
1292
1292
|
static statusCode = 400;
|
|
1293
1293
|
static description = `Invalid request: tag cannot be empty`;
|
|
1294
1294
|
}
|
|
1295
|
-
class
|
|
1295
|
+
class BuildFailedError extends Error {
|
|
1296
1296
|
constructor(body) {
|
|
1297
1297
|
super(
|
|
1298
|
-
`
|
|
1298
|
+
`BUILD_FAILED: ${body.message}`
|
|
1299
1299
|
);
|
|
1300
1300
|
this.body = body;
|
|
1301
|
-
this.name = "
|
|
1301
|
+
this.name = "BuildFailedError";
|
|
1302
1302
|
}
|
|
1303
|
-
static code = "
|
|
1303
|
+
static code = "BUILD_FAILED";
|
|
1304
1304
|
static statusCode = 500;
|
|
1305
|
-
static description = `
|
|
1305
|
+
static description = `Build failed on VM {vm_id}`;
|
|
1306
1306
|
}
|
|
1307
|
-
class
|
|
1307
|
+
class ServerDeploymentFailedError extends Error {
|
|
1308
1308
|
constructor(body) {
|
|
1309
1309
|
super(
|
|
1310
|
-
`
|
|
1310
|
+
`SERVER_DEPLOYMENT_FAILED: ${body.message}`
|
|
1311
1311
|
);
|
|
1312
1312
|
this.body = body;
|
|
1313
|
-
this.name = "
|
|
1313
|
+
this.name = "ServerDeploymentFailedError";
|
|
1314
1314
|
}
|
|
1315
|
-
static code = "
|
|
1316
|
-
static statusCode =
|
|
1317
|
-
static description = `
|
|
1315
|
+
static code = "SERVER_DEPLOYMENT_FAILED";
|
|
1316
|
+
static statusCode = 502;
|
|
1317
|
+
static description = `Failed to deploy to servers`;
|
|
1318
1318
|
}
|
|
1319
|
-
class
|
|
1319
|
+
class LockfileErrorError extends Error {
|
|
1320
1320
|
constructor(body) {
|
|
1321
1321
|
super(
|
|
1322
|
-
`
|
|
1322
|
+
`LOCKFILE_ERROR: ${body.message}`
|
|
1323
1323
|
);
|
|
1324
1324
|
this.body = body;
|
|
1325
|
-
this.name = "
|
|
1325
|
+
this.name = "LockfileErrorError";
|
|
1326
1326
|
}
|
|
1327
|
-
static code = "
|
|
1328
|
-
static statusCode =
|
|
1329
|
-
static description = `
|
|
1327
|
+
static code = "LOCKFILE_ERROR";
|
|
1328
|
+
static statusCode = 500;
|
|
1329
|
+
static description = `Failed to generate dependency lockfile: {message}`;
|
|
1330
1330
|
}
|
|
1331
|
-
class
|
|
1331
|
+
class UploadErrorError extends Error {
|
|
1332
1332
|
constructor(body) {
|
|
1333
1333
|
super(
|
|
1334
|
-
`
|
|
1334
|
+
`UPLOAD_ERROR: ${body.message}`
|
|
1335
1335
|
);
|
|
1336
1336
|
this.body = body;
|
|
1337
|
-
this.name = "
|
|
1337
|
+
this.name = "UploadErrorError";
|
|
1338
1338
|
}
|
|
1339
|
-
static code = "
|
|
1339
|
+
static code = "UPLOAD_ERROR";
|
|
1340
1340
|
static statusCode = 500;
|
|
1341
|
-
static description = `Failed to
|
|
1341
|
+
static description = `Failed to upload deployment to storage`;
|
|
1342
1342
|
}
|
|
1343
|
-
class
|
|
1343
|
+
class DomainMappingErrorError extends Error {
|
|
1344
1344
|
constructor(body) {
|
|
1345
1345
|
super(
|
|
1346
|
-
`
|
|
1346
|
+
`DOMAIN_MAPPING_ERROR: ${body.message}`
|
|
1347
1347
|
);
|
|
1348
1348
|
this.body = body;
|
|
1349
|
-
this.name = "
|
|
1349
|
+
this.name = "DomainMappingErrorError";
|
|
1350
1350
|
}
|
|
1351
|
-
static code = "
|
|
1351
|
+
static code = "DOMAIN_MAPPING_ERROR";
|
|
1352
1352
|
static statusCode = 500;
|
|
1353
|
-
static description = `Failed to
|
|
1353
|
+
static description = `Failed to configure domain mapping for: {domain}`;
|
|
1354
1354
|
}
|
|
1355
|
-
class
|
|
1355
|
+
class CertificateProvisioningErrorError extends Error {
|
|
1356
1356
|
constructor(body) {
|
|
1357
1357
|
super(
|
|
1358
|
-
`
|
|
1358
|
+
`CERTIFICATE_PROVISIONING_ERROR: ${body.message}`
|
|
1359
1359
|
);
|
|
1360
1360
|
this.body = body;
|
|
1361
|
-
this.name = "
|
|
1361
|
+
this.name = "CertificateProvisioningErrorError";
|
|
1362
1362
|
}
|
|
1363
|
-
static code = "
|
|
1363
|
+
static code = "CERTIFICATE_PROVISIONING_ERROR";
|
|
1364
|
+
static statusCode = 502;
|
|
1365
|
+
static description = `Failed to provision certificate for domain: {domain}`;
|
|
1366
|
+
}
|
|
1367
|
+
class NoEntrypointFoundError extends Error {
|
|
1368
|
+
constructor(body) {
|
|
1369
|
+
super(
|
|
1370
|
+
`NO_ENTRYPOINT_FOUND: ${body.message}`
|
|
1371
|
+
);
|
|
1372
|
+
this.body = body;
|
|
1373
|
+
this.name = "NoEntrypointFoundError";
|
|
1374
|
+
}
|
|
1375
|
+
static code = "NO_ENTRYPOINT_FOUND";
|
|
1364
1376
|
static statusCode = 400;
|
|
1365
|
-
static description = `
|
|
1377
|
+
static description = `No entrypoint found in deployment`;
|
|
1366
1378
|
}
|
|
1367
|
-
class
|
|
1379
|
+
class EntrypointNotFoundError extends Error {
|
|
1368
1380
|
constructor(body) {
|
|
1369
1381
|
super(
|
|
1370
|
-
`
|
|
1382
|
+
`ENTRYPOINT_NOT_FOUND: ${body.message}`
|
|
1371
1383
|
);
|
|
1372
1384
|
this.body = body;
|
|
1373
|
-
this.name = "
|
|
1385
|
+
this.name = "EntrypointNotFoundError";
|
|
1374
1386
|
}
|
|
1375
|
-
static code = "
|
|
1387
|
+
static code = "ENTRYPOINT_NOT_FOUND";
|
|
1388
|
+
static statusCode = 400;
|
|
1389
|
+
static description = `Entrypoint not found: {entrypoint}`;
|
|
1390
|
+
}
|
|
1391
|
+
class NoDomainOwnershipError extends Error {
|
|
1392
|
+
constructor(body) {
|
|
1393
|
+
super(
|
|
1394
|
+
`NO_DOMAIN_OWNERSHIP: ${body.message}`
|
|
1395
|
+
);
|
|
1396
|
+
this.body = body;
|
|
1397
|
+
this.name = "NoDomainOwnershipError";
|
|
1398
|
+
}
|
|
1399
|
+
static code = "NO_DOMAIN_OWNERSHIP";
|
|
1400
|
+
static statusCode = 403;
|
|
1401
|
+
static description = `No domain ownership for: {domain}`;
|
|
1402
|
+
}
|
|
1403
|
+
class InvalidDomainsError extends Error {
|
|
1404
|
+
constructor(body) {
|
|
1405
|
+
super(
|
|
1406
|
+
`INVALID_DOMAINS: ${body.message}`
|
|
1407
|
+
);
|
|
1408
|
+
this.body = body;
|
|
1409
|
+
this.name = "InvalidDomainsError";
|
|
1410
|
+
}
|
|
1411
|
+
static code = "INVALID_DOMAINS";
|
|
1412
|
+
static statusCode = 400;
|
|
1413
|
+
static description = `Invalid domains provided`;
|
|
1414
|
+
}
|
|
1415
|
+
class WebDeploymentBadRequestError extends Error {
|
|
1416
|
+
constructor(body) {
|
|
1417
|
+
super(
|
|
1418
|
+
`WEB_DEPLOYMENT_BAD_REQUEST: ${body.message}`
|
|
1419
|
+
);
|
|
1420
|
+
this.body = body;
|
|
1421
|
+
this.name = "WebDeploymentBadRequestError";
|
|
1422
|
+
}
|
|
1423
|
+
static code = "WEB_DEPLOYMENT_BAD_REQUEST";
|
|
1424
|
+
static statusCode = 400;
|
|
1425
|
+
static description = `Bad request: {message}`;
|
|
1426
|
+
}
|
|
1427
|
+
class DeploymentNotFoundError extends Error {
|
|
1428
|
+
constructor(body) {
|
|
1429
|
+
super(
|
|
1430
|
+
`DEPLOYMENT_NOT_FOUND: ${body.message}`
|
|
1431
|
+
);
|
|
1432
|
+
this.body = body;
|
|
1433
|
+
this.name = "DeploymentNotFoundError";
|
|
1434
|
+
}
|
|
1435
|
+
static code = "DEPLOYMENT_NOT_FOUND";
|
|
1376
1436
|
static statusCode = 404;
|
|
1377
|
-
static description = `
|
|
1437
|
+
static description = `Deployment not found`;
|
|
1438
|
+
}
|
|
1439
|
+
class ResizeFailedError extends Error {
|
|
1440
|
+
constructor(body) {
|
|
1441
|
+
super(
|
|
1442
|
+
`RESIZE_FAILED: ${body.message}`
|
|
1443
|
+
);
|
|
1444
|
+
this.body = body;
|
|
1445
|
+
this.name = "ResizeFailedError";
|
|
1446
|
+
}
|
|
1447
|
+
static code = "RESIZE_FAILED";
|
|
1448
|
+
static statusCode = 500;
|
|
1449
|
+
static description = `Failed to resize VM: {message}`;
|
|
1450
|
+
}
|
|
1451
|
+
class InternalResizeVmNotFoundError extends Error {
|
|
1452
|
+
constructor(body) {
|
|
1453
|
+
super(
|
|
1454
|
+
`INTERNAL_RESIZE_VM_NOT_FOUND: ${body.message}`
|
|
1455
|
+
);
|
|
1456
|
+
this.body = body;
|
|
1457
|
+
this.name = "InternalResizeVmNotFoundError";
|
|
1458
|
+
}
|
|
1459
|
+
static code = "INTERNAL_RESIZE_VM_NOT_FOUND";
|
|
1460
|
+
static statusCode = 404;
|
|
1461
|
+
static description = `VM not found`;
|
|
1378
1462
|
}
|
|
1379
1463
|
class TriggerErrorError extends Error {
|
|
1380
1464
|
constructor(body) {
|
|
@@ -1604,1133 +1688,1049 @@ class RepositoryNotFoundError extends Error {
|
|
|
1604
1688
|
static statusCode = 404;
|
|
1605
1689
|
static description = `Repository not found: {repo_id}`;
|
|
1606
1690
|
}
|
|
1607
|
-
class
|
|
1691
|
+
class FailedToProvisionCertificateError extends Error {
|
|
1608
1692
|
constructor(body) {
|
|
1609
1693
|
super(
|
|
1610
|
-
`
|
|
1694
|
+
`FAILED_TO_PROVISION_CERTIFICATE: ${body.message}`
|
|
1611
1695
|
);
|
|
1612
1696
|
this.body = body;
|
|
1613
|
-
this.name = "
|
|
1697
|
+
this.name = "FailedToProvisionCertificateError";
|
|
1614
1698
|
}
|
|
1615
|
-
static code = "
|
|
1616
|
-
static statusCode =
|
|
1617
|
-
static description = `
|
|
1699
|
+
static code = "FAILED_TO_PROVISION_CERTIFICATE";
|
|
1700
|
+
static statusCode = 422;
|
|
1701
|
+
static description = `Failed to provision certificate: {message}`;
|
|
1618
1702
|
}
|
|
1619
|
-
class
|
|
1703
|
+
class FailedToInsertDomainMappingError extends Error {
|
|
1620
1704
|
constructor(body) {
|
|
1621
1705
|
super(
|
|
1622
|
-
`
|
|
1706
|
+
`FAILED_TO_INSERT_DOMAIN_MAPPING: ${body.message}`
|
|
1623
1707
|
);
|
|
1624
1708
|
this.body = body;
|
|
1625
|
-
this.name = "
|
|
1709
|
+
this.name = "FailedToInsertDomainMappingError";
|
|
1626
1710
|
}
|
|
1627
|
-
static code = "
|
|
1628
|
-
static statusCode =
|
|
1629
|
-
static description = `
|
|
1711
|
+
static code = "FAILED_TO_INSERT_DOMAIN_MAPPING";
|
|
1712
|
+
static statusCode = 500;
|
|
1713
|
+
static description = `Failed to insert domain mapping: {message}`;
|
|
1630
1714
|
}
|
|
1631
|
-
class
|
|
1715
|
+
class PermissionDeniedError extends Error {
|
|
1632
1716
|
constructor(body) {
|
|
1633
1717
|
super(
|
|
1634
|
-
`
|
|
1718
|
+
`PERMISSION_DENIED: ${body.message}`
|
|
1635
1719
|
);
|
|
1636
1720
|
this.body = body;
|
|
1637
|
-
this.name = "
|
|
1721
|
+
this.name = "PermissionDeniedError";
|
|
1638
1722
|
}
|
|
1639
|
-
static code = "
|
|
1640
|
-
static statusCode =
|
|
1641
|
-
static description = `
|
|
1723
|
+
static code = "PERMISSION_DENIED";
|
|
1724
|
+
static statusCode = 401;
|
|
1725
|
+
static description = `Permission denied: {message}`;
|
|
1642
1726
|
}
|
|
1643
|
-
class
|
|
1727
|
+
class FailedToCheckPermissionsError extends Error {
|
|
1644
1728
|
constructor(body) {
|
|
1645
1729
|
super(
|
|
1646
|
-
`
|
|
1730
|
+
`FAILED_TO_CHECK_PERMISSIONS: ${body.message}`
|
|
1647
1731
|
);
|
|
1648
1732
|
this.body = body;
|
|
1649
|
-
this.name = "
|
|
1733
|
+
this.name = "FailedToCheckPermissionsError";
|
|
1650
1734
|
}
|
|
1651
|
-
static code = "
|
|
1652
|
-
static statusCode =
|
|
1653
|
-
static description = `
|
|
1735
|
+
static code = "FAILED_TO_CHECK_PERMISSIONS";
|
|
1736
|
+
static statusCode = 502;
|
|
1737
|
+
static description = `Failed to check permissions: {message}`;
|
|
1654
1738
|
}
|
|
1655
|
-
class
|
|
1739
|
+
class FailedToListDomainsError extends Error {
|
|
1656
1740
|
constructor(body) {
|
|
1657
1741
|
super(
|
|
1658
|
-
`
|
|
1742
|
+
`FAILED_TO_LIST_DOMAINS: ${body.message}`
|
|
1659
1743
|
);
|
|
1660
1744
|
this.body = body;
|
|
1661
|
-
this.name = "
|
|
1745
|
+
this.name = "FailedToListDomainsError";
|
|
1662
1746
|
}
|
|
1663
|
-
static code = "
|
|
1747
|
+
static code = "FAILED_TO_LIST_DOMAINS";
|
|
1664
1748
|
static statusCode = 500;
|
|
1665
|
-
static description = `Failed to
|
|
1749
|
+
static description = `Failed to list domains: {message}`;
|
|
1666
1750
|
}
|
|
1667
|
-
class
|
|
1751
|
+
class FailedToListVerificationsError extends Error {
|
|
1668
1752
|
constructor(body) {
|
|
1669
1753
|
super(
|
|
1670
|
-
`
|
|
1754
|
+
`FAILED_TO_LIST_VERIFICATIONS: ${body.message}`
|
|
1671
1755
|
);
|
|
1672
1756
|
this.body = body;
|
|
1673
|
-
this.name = "
|
|
1757
|
+
this.name = "FailedToListVerificationsError";
|
|
1674
1758
|
}
|
|
1675
|
-
static code = "
|
|
1759
|
+
static code = "FAILED_TO_LIST_VERIFICATIONS";
|
|
1676
1760
|
static statusCode = 500;
|
|
1677
|
-
static description = `Failed to
|
|
1761
|
+
static description = `Failed to list verifications: {message}`;
|
|
1678
1762
|
}
|
|
1679
|
-
class
|
|
1763
|
+
class FailedToVerifyDomainError extends Error {
|
|
1680
1764
|
constructor(body) {
|
|
1681
1765
|
super(
|
|
1682
|
-
`
|
|
1766
|
+
`FAILED_TO_VERIFY_DOMAIN: ${body.message}`
|
|
1683
1767
|
);
|
|
1684
1768
|
this.body = body;
|
|
1685
|
-
this.name = "
|
|
1769
|
+
this.name = "FailedToVerifyDomainError";
|
|
1686
1770
|
}
|
|
1687
|
-
static code = "
|
|
1771
|
+
static code = "FAILED_TO_VERIFY_DOMAIN";
|
|
1688
1772
|
static statusCode = 500;
|
|
1689
|
-
static description = `Failed to
|
|
1773
|
+
static description = `Failed to verify domain: {message}`;
|
|
1690
1774
|
}
|
|
1691
|
-
class
|
|
1775
|
+
class VerificationFailedError extends Error {
|
|
1692
1776
|
constructor(body) {
|
|
1693
1777
|
super(
|
|
1694
|
-
`
|
|
1778
|
+
`VERIFICATION_FAILED: ${body.message}`
|
|
1695
1779
|
);
|
|
1696
1780
|
this.body = body;
|
|
1697
|
-
this.name = "
|
|
1781
|
+
this.name = "VerificationFailedError";
|
|
1698
1782
|
}
|
|
1699
|
-
static code = "
|
|
1700
|
-
static statusCode =
|
|
1701
|
-
static description = `
|
|
1783
|
+
static code = "VERIFICATION_FAILED";
|
|
1784
|
+
static statusCode = 400;
|
|
1785
|
+
static description = `Domain verification failed: {message}`;
|
|
1702
1786
|
}
|
|
1703
|
-
class
|
|
1787
|
+
class FailedToDeleteVerificationError extends Error {
|
|
1704
1788
|
constructor(body) {
|
|
1705
1789
|
super(
|
|
1706
|
-
`
|
|
1790
|
+
`FAILED_TO_DELETE_VERIFICATION: ${body.message}`
|
|
1707
1791
|
);
|
|
1708
1792
|
this.body = body;
|
|
1709
|
-
this.name = "
|
|
1793
|
+
this.name = "FailedToDeleteVerificationError";
|
|
1710
1794
|
}
|
|
1711
|
-
static code = "
|
|
1712
|
-
static statusCode =
|
|
1713
|
-
static description = `Failed to
|
|
1714
|
-
}
|
|
1715
|
-
class WriteScriptFailedError extends Error {
|
|
1716
|
-
constructor(body) {
|
|
1717
|
-
super(
|
|
1718
|
-
`WRITE_SCRIPT_FAILED: ${body.message}`
|
|
1719
|
-
);
|
|
1720
|
-
this.body = body;
|
|
1721
|
-
this.name = "WriteScriptFailedError";
|
|
1722
|
-
}
|
|
1723
|
-
static code = "WRITE_SCRIPT_FAILED";
|
|
1724
|
-
static statusCode = 500;
|
|
1725
|
-
static description = `Failed to write script file: {message}`;
|
|
1795
|
+
static code = "FAILED_TO_DELETE_VERIFICATION";
|
|
1796
|
+
static statusCode = 400;
|
|
1797
|
+
static description = `Failed to delete verification: {message}`;
|
|
1726
1798
|
}
|
|
1727
|
-
class
|
|
1799
|
+
class VerificationNotFoundError extends Error {
|
|
1728
1800
|
constructor(body) {
|
|
1729
1801
|
super(
|
|
1730
|
-
`
|
|
1802
|
+
`VERIFICATION_NOT_FOUND: ${body.message}`
|
|
1731
1803
|
);
|
|
1732
1804
|
this.body = body;
|
|
1733
|
-
this.name = "
|
|
1805
|
+
this.name = "VerificationNotFoundError";
|
|
1734
1806
|
}
|
|
1735
|
-
static code = "
|
|
1736
|
-
static statusCode =
|
|
1737
|
-
static description = `
|
|
1807
|
+
static code = "VERIFICATION_NOT_FOUND";
|
|
1808
|
+
static statusCode = 404;
|
|
1809
|
+
static description = `Verification request not found for domain: {domain}`;
|
|
1738
1810
|
}
|
|
1739
|
-
class
|
|
1811
|
+
class FailedToCreateVerificationCodeError extends Error {
|
|
1740
1812
|
constructor(body) {
|
|
1741
1813
|
super(
|
|
1742
|
-
`
|
|
1814
|
+
`FAILED_TO_CREATE_VERIFICATION_CODE: ${body.message}`
|
|
1743
1815
|
);
|
|
1744
1816
|
this.body = body;
|
|
1745
|
-
this.name = "
|
|
1817
|
+
this.name = "FailedToCreateVerificationCodeError";
|
|
1746
1818
|
}
|
|
1747
|
-
static code = "
|
|
1748
|
-
static statusCode =
|
|
1749
|
-
static description = `Failed to
|
|
1819
|
+
static code = "FAILED_TO_CREATE_VERIFICATION_CODE";
|
|
1820
|
+
static statusCode = 400;
|
|
1821
|
+
static description = `Failed to create verification code: {message}`;
|
|
1750
1822
|
}
|
|
1751
|
-
class
|
|
1823
|
+
class InvalidDomainError extends Error {
|
|
1752
1824
|
constructor(body) {
|
|
1753
1825
|
super(
|
|
1754
|
-
`
|
|
1826
|
+
`INVALID_DOMAIN: ${body.message}`
|
|
1755
1827
|
);
|
|
1756
1828
|
this.body = body;
|
|
1757
|
-
this.name = "
|
|
1829
|
+
this.name = "InvalidDomainError";
|
|
1758
1830
|
}
|
|
1759
|
-
static code = "
|
|
1760
|
-
static statusCode =
|
|
1761
|
-
static description = `
|
|
1831
|
+
static code = "INVALID_DOMAIN";
|
|
1832
|
+
static statusCode = 400;
|
|
1833
|
+
static description = `Invalid domain: {domain}`;
|
|
1762
1834
|
}
|
|
1763
|
-
class
|
|
1835
|
+
class DomainAlreadyExistsError extends Error {
|
|
1764
1836
|
constructor(body) {
|
|
1765
1837
|
super(
|
|
1766
|
-
`
|
|
1838
|
+
`DOMAIN_ALREADY_EXISTS: ${body.message}`
|
|
1767
1839
|
);
|
|
1768
1840
|
this.body = body;
|
|
1769
|
-
this.name = "
|
|
1841
|
+
this.name = "DomainAlreadyExistsError";
|
|
1770
1842
|
}
|
|
1771
|
-
static code = "
|
|
1772
|
-
static statusCode =
|
|
1773
|
-
static description = `
|
|
1843
|
+
static code = "DOMAIN_ALREADY_EXISTS";
|
|
1844
|
+
static statusCode = 400;
|
|
1845
|
+
static description = `Domain already exists: {domain}`;
|
|
1774
1846
|
}
|
|
1775
|
-
class
|
|
1847
|
+
class FailedToInsertOwnershipError extends Error {
|
|
1776
1848
|
constructor(body) {
|
|
1777
1849
|
super(
|
|
1778
|
-
`
|
|
1850
|
+
`FAILED_TO_INSERT_OWNERSHIP: ${body.message}`
|
|
1779
1851
|
);
|
|
1780
1852
|
this.body = body;
|
|
1781
|
-
this.name = "
|
|
1853
|
+
this.name = "FailedToInsertOwnershipError";
|
|
1782
1854
|
}
|
|
1783
|
-
static code = "
|
|
1784
|
-
static statusCode =
|
|
1785
|
-
static description = `Failed to
|
|
1855
|
+
static code = "FAILED_TO_INSERT_OWNERSHIP";
|
|
1856
|
+
static statusCode = 500;
|
|
1857
|
+
static description = `Failed to insert domain ownership: {message}`;
|
|
1786
1858
|
}
|
|
1787
|
-
class
|
|
1859
|
+
class FailedRemoveDomainMappingError extends Error {
|
|
1788
1860
|
constructor(body) {
|
|
1789
1861
|
super(
|
|
1790
|
-
`
|
|
1862
|
+
`FAILED_REMOVE_DOMAIN_MAPPING: ${body.message}`
|
|
1791
1863
|
);
|
|
1792
1864
|
this.body = body;
|
|
1793
|
-
this.name = "
|
|
1865
|
+
this.name = "FailedRemoveDomainMappingError";
|
|
1794
1866
|
}
|
|
1795
|
-
static code = "
|
|
1867
|
+
static code = "FAILED_REMOVE_DOMAIN_MAPPING";
|
|
1796
1868
|
static statusCode = 500;
|
|
1797
|
-
static description = `Failed to
|
|
1869
|
+
static description = `Failed to remove domain mapping: {message}`;
|
|
1798
1870
|
}
|
|
1799
|
-
class
|
|
1871
|
+
class FailedPermissionsCheckError extends Error {
|
|
1800
1872
|
constructor(body) {
|
|
1801
1873
|
super(
|
|
1802
|
-
`
|
|
1874
|
+
`FAILED_PERMISSIONS_CHECK: ${body.message}`
|
|
1803
1875
|
);
|
|
1804
1876
|
this.body = body;
|
|
1805
|
-
this.name = "
|
|
1877
|
+
this.name = "FailedPermissionsCheckError";
|
|
1806
1878
|
}
|
|
1807
|
-
static code = "
|
|
1879
|
+
static code = "FAILED_PERMISSIONS_CHECK";
|
|
1808
1880
|
static statusCode = 401;
|
|
1809
|
-
static description = `
|
|
1881
|
+
static description = `You do not have permission to delete the domain mapping for: {domain}`;
|
|
1810
1882
|
}
|
|
1811
|
-
class
|
|
1883
|
+
class FailedToCheckDomainMappingPermissionsError extends Error {
|
|
1812
1884
|
constructor(body) {
|
|
1813
1885
|
super(
|
|
1814
|
-
`
|
|
1886
|
+
`FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS: ${body.message}`
|
|
1815
1887
|
);
|
|
1816
1888
|
this.body = body;
|
|
1817
|
-
this.name = "
|
|
1889
|
+
this.name = "FailedToCheckDomainMappingPermissionsError";
|
|
1818
1890
|
}
|
|
1819
|
-
static code = "
|
|
1891
|
+
static code = "FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS";
|
|
1820
1892
|
static statusCode = 502;
|
|
1821
1893
|
static description = `Failed to check permissions: {message}`;
|
|
1822
1894
|
}
|
|
1823
|
-
class
|
|
1895
|
+
class BranchNameEmptyError extends Error {
|
|
1824
1896
|
constructor(body) {
|
|
1825
1897
|
super(
|
|
1826
|
-
`
|
|
1898
|
+
`BRANCH_NAME_EMPTY: ${body.message}`
|
|
1827
1899
|
);
|
|
1828
1900
|
this.body = body;
|
|
1829
|
-
this.name = "
|
|
1901
|
+
this.name = "BranchNameEmptyError";
|
|
1830
1902
|
}
|
|
1831
|
-
static code = "
|
|
1832
|
-
static statusCode =
|
|
1833
|
-
static description = `
|
|
1903
|
+
static code = "BRANCH_NAME_EMPTY";
|
|
1904
|
+
static statusCode = 400;
|
|
1905
|
+
static description = `Branch name cannot be empty`;
|
|
1834
1906
|
}
|
|
1835
|
-
class
|
|
1907
|
+
class AnyhowError extends Error {
|
|
1836
1908
|
constructor(body) {
|
|
1837
1909
|
super(
|
|
1838
|
-
`
|
|
1910
|
+
`ANYHOW: ${body.message}`
|
|
1839
1911
|
);
|
|
1840
1912
|
this.body = body;
|
|
1841
|
-
this.name = "
|
|
1913
|
+
this.name = "AnyhowError";
|
|
1842
1914
|
}
|
|
1843
|
-
static code = "
|
|
1915
|
+
static code = "ANYHOW";
|
|
1844
1916
|
static statusCode = 500;
|
|
1845
|
-
static description = `
|
|
1917
|
+
static description = `Internal server error: {0}`;
|
|
1846
1918
|
}
|
|
1847
|
-
class
|
|
1919
|
+
class PermissionAlreadyExistsError extends Error {
|
|
1848
1920
|
constructor(body) {
|
|
1849
1921
|
super(
|
|
1850
|
-
`
|
|
1922
|
+
`PERMISSION_ALREADY_EXISTS: ${body.message}`
|
|
1851
1923
|
);
|
|
1852
1924
|
this.body = body;
|
|
1853
|
-
this.name = "
|
|
1925
|
+
this.name = "PermissionAlreadyExistsError";
|
|
1854
1926
|
}
|
|
1855
|
-
static code = "
|
|
1856
|
-
static statusCode =
|
|
1857
|
-
static description = `
|
|
1927
|
+
static code = "PERMISSION_ALREADY_EXISTS";
|
|
1928
|
+
static statusCode = 409;
|
|
1929
|
+
static description = `Permission already exists`;
|
|
1858
1930
|
}
|
|
1859
|
-
class
|
|
1931
|
+
class ListTokensFailedError extends Error {
|
|
1860
1932
|
constructor(body) {
|
|
1861
1933
|
super(
|
|
1862
|
-
`
|
|
1934
|
+
`LIST_TOKENS_FAILED: ${body.message}`
|
|
1863
1935
|
);
|
|
1864
1936
|
this.body = body;
|
|
1865
|
-
this.name = "
|
|
1937
|
+
this.name = "ListTokensFailedError";
|
|
1866
1938
|
}
|
|
1867
|
-
static code = "
|
|
1868
|
-
static statusCode =
|
|
1869
|
-
static description = `
|
|
1939
|
+
static code = "LIST_TOKENS_FAILED";
|
|
1940
|
+
static statusCode = 500;
|
|
1941
|
+
static description = `Failed to list tokens: {message}`;
|
|
1870
1942
|
}
|
|
1871
|
-
class
|
|
1943
|
+
class RevokeTokenFailedError extends Error {
|
|
1872
1944
|
constructor(body) {
|
|
1873
1945
|
super(
|
|
1874
|
-
`
|
|
1946
|
+
`REVOKE_TOKEN_FAILED: ${body.message}`
|
|
1875
1947
|
);
|
|
1876
1948
|
this.body = body;
|
|
1877
|
-
this.name = "
|
|
1949
|
+
this.name = "RevokeTokenFailedError";
|
|
1878
1950
|
}
|
|
1879
|
-
static code = "
|
|
1880
|
-
static statusCode =
|
|
1881
|
-
static description = `Failed to
|
|
1951
|
+
static code = "REVOKE_TOKEN_FAILED";
|
|
1952
|
+
static statusCode = 500;
|
|
1953
|
+
static description = `Failed to revoke token: {message}`;
|
|
1882
1954
|
}
|
|
1883
|
-
class
|
|
1955
|
+
class CreateTokenFailedError extends Error {
|
|
1884
1956
|
constructor(body) {
|
|
1885
1957
|
super(
|
|
1886
|
-
`
|
|
1958
|
+
`CREATE_TOKEN_FAILED: ${body.message}`
|
|
1887
1959
|
);
|
|
1888
1960
|
this.body = body;
|
|
1889
|
-
this.name = "
|
|
1961
|
+
this.name = "CreateTokenFailedError";
|
|
1890
1962
|
}
|
|
1891
|
-
static code = "
|
|
1892
|
-
static statusCode =
|
|
1893
|
-
static description = `
|
|
1963
|
+
static code = "CREATE_TOKEN_FAILED";
|
|
1964
|
+
static statusCode = 500;
|
|
1965
|
+
static description = `Failed to create token: {message}`;
|
|
1894
1966
|
}
|
|
1895
|
-
class
|
|
1967
|
+
class ListPermissionsFailedError extends Error {
|
|
1896
1968
|
constructor(body) {
|
|
1897
1969
|
super(
|
|
1898
|
-
`
|
|
1970
|
+
`LIST_PERMISSIONS_FAILED: ${body.message}`
|
|
1899
1971
|
);
|
|
1900
1972
|
this.body = body;
|
|
1901
|
-
this.name = "
|
|
1973
|
+
this.name = "ListPermissionsFailedError";
|
|
1902
1974
|
}
|
|
1903
|
-
static code = "
|
|
1904
|
-
static statusCode =
|
|
1905
|
-
static description = `Failed to
|
|
1975
|
+
static code = "LIST_PERMISSIONS_FAILED";
|
|
1976
|
+
static statusCode = 500;
|
|
1977
|
+
static description = `Failed to list permissions: {message}`;
|
|
1906
1978
|
}
|
|
1907
|
-
class
|
|
1979
|
+
class GetPermissionFailedError extends Error {
|
|
1908
1980
|
constructor(body) {
|
|
1909
1981
|
super(
|
|
1910
|
-
`
|
|
1982
|
+
`GET_PERMISSION_FAILED: ${body.message}`
|
|
1911
1983
|
);
|
|
1912
1984
|
this.body = body;
|
|
1913
|
-
this.name = "
|
|
1985
|
+
this.name = "GetPermissionFailedError";
|
|
1914
1986
|
}
|
|
1915
|
-
static code = "
|
|
1916
|
-
static statusCode =
|
|
1917
|
-
static description = `
|
|
1987
|
+
static code = "GET_PERMISSION_FAILED";
|
|
1988
|
+
static statusCode = 500;
|
|
1989
|
+
static description = `Failed to get permission: {message}`;
|
|
1918
1990
|
}
|
|
1919
|
-
class
|
|
1991
|
+
class UpdatePermissionFailedError extends Error {
|
|
1920
1992
|
constructor(body) {
|
|
1921
1993
|
super(
|
|
1922
|
-
`
|
|
1994
|
+
`UPDATE_PERMISSION_FAILED: ${body.message}`
|
|
1923
1995
|
);
|
|
1924
1996
|
this.body = body;
|
|
1925
|
-
this.name = "
|
|
1997
|
+
this.name = "UpdatePermissionFailedError";
|
|
1926
1998
|
}
|
|
1927
|
-
static code = "
|
|
1999
|
+
static code = "UPDATE_PERMISSION_FAILED";
|
|
1928
2000
|
static statusCode = 500;
|
|
1929
|
-
static description = `
|
|
2001
|
+
static description = `Failed to update permission: {message}`;
|
|
1930
2002
|
}
|
|
1931
|
-
class
|
|
2003
|
+
class RevokePermissionFailedError extends Error {
|
|
1932
2004
|
constructor(body) {
|
|
1933
2005
|
super(
|
|
1934
|
-
`
|
|
2006
|
+
`REVOKE_PERMISSION_FAILED: ${body.message}`
|
|
1935
2007
|
);
|
|
1936
2008
|
this.body = body;
|
|
1937
|
-
this.name = "
|
|
2009
|
+
this.name = "RevokePermissionFailedError";
|
|
1938
2010
|
}
|
|
1939
|
-
static code = "
|
|
2011
|
+
static code = "REVOKE_PERMISSION_FAILED";
|
|
1940
2012
|
static statusCode = 500;
|
|
1941
|
-
static description = `
|
|
2013
|
+
static description = `Failed to revoke permission: {message}`;
|
|
1942
2014
|
}
|
|
1943
|
-
class
|
|
2015
|
+
class GrantPermissionFailedError extends Error {
|
|
1944
2016
|
constructor(body) {
|
|
1945
2017
|
super(
|
|
1946
|
-
`
|
|
2018
|
+
`GRANT_PERMISSION_FAILED: ${body.message}`
|
|
1947
2019
|
);
|
|
1948
2020
|
this.body = body;
|
|
1949
|
-
this.name = "
|
|
2021
|
+
this.name = "GrantPermissionFailedError";
|
|
1950
2022
|
}
|
|
1951
|
-
static code = "
|
|
1952
|
-
static statusCode =
|
|
1953
|
-
static description = `
|
|
2023
|
+
static code = "GRANT_PERMISSION_FAILED";
|
|
2024
|
+
static statusCode = 500;
|
|
2025
|
+
static description = `Failed to grant permission: {message}`;
|
|
1954
2026
|
}
|
|
1955
|
-
class
|
|
2027
|
+
class ListIdentitiesFailedError extends Error {
|
|
1956
2028
|
constructor(body) {
|
|
1957
2029
|
super(
|
|
1958
|
-
`
|
|
2030
|
+
`LIST_IDENTITIES_FAILED: ${body.message}`
|
|
1959
2031
|
);
|
|
1960
2032
|
this.body = body;
|
|
1961
|
-
this.name = "
|
|
2033
|
+
this.name = "ListIdentitiesFailedError";
|
|
1962
2034
|
}
|
|
1963
|
-
static code = "
|
|
2035
|
+
static code = "LIST_IDENTITIES_FAILED";
|
|
1964
2036
|
static statusCode = 500;
|
|
1965
|
-
static description = `Failed to
|
|
2037
|
+
static description = `Failed to list identities: {message}`;
|
|
1966
2038
|
}
|
|
1967
|
-
class
|
|
2039
|
+
class DeleteIdentityFailedError extends Error {
|
|
1968
2040
|
constructor(body) {
|
|
1969
2041
|
super(
|
|
1970
|
-
`
|
|
2042
|
+
`DELETE_IDENTITY_FAILED: ${body.message}`
|
|
1971
2043
|
);
|
|
1972
2044
|
this.body = body;
|
|
1973
|
-
this.name = "
|
|
2045
|
+
this.name = "DeleteIdentityFailedError";
|
|
1974
2046
|
}
|
|
1975
|
-
static code = "
|
|
2047
|
+
static code = "DELETE_IDENTITY_FAILED";
|
|
1976
2048
|
static statusCode = 500;
|
|
1977
|
-
static description = `Failed to
|
|
2049
|
+
static description = `Failed to delete identity: {message}`;
|
|
1978
2050
|
}
|
|
1979
|
-
class
|
|
2051
|
+
class CreateIdentityFailedError extends Error {
|
|
1980
2052
|
constructor(body) {
|
|
1981
2053
|
super(
|
|
1982
|
-
`
|
|
2054
|
+
`CREATE_IDENTITY_FAILED: ${body.message}`
|
|
1983
2055
|
);
|
|
1984
2056
|
this.body = body;
|
|
1985
|
-
this.name = "
|
|
2057
|
+
this.name = "CreateIdentityFailedError";
|
|
1986
2058
|
}
|
|
1987
|
-
static code = "
|
|
1988
|
-
static statusCode = 500;
|
|
1989
|
-
static description = `Backup failed: {message}`;
|
|
1990
|
-
}
|
|
1991
|
-
class DeploymentFailedError extends Error {
|
|
1992
|
-
constructor(body) {
|
|
1993
|
-
super(
|
|
1994
|
-
`DEPLOYMENT_FAILED: ${body.message}`
|
|
1995
|
-
);
|
|
1996
|
-
this.body = body;
|
|
1997
|
-
this.name = "DeploymentFailedError";
|
|
1998
|
-
}
|
|
1999
|
-
static code = "DEPLOYMENT_FAILED";
|
|
2059
|
+
static code = "CREATE_IDENTITY_FAILED";
|
|
2000
2060
|
static statusCode = 500;
|
|
2001
|
-
static description = `
|
|
2002
|
-
}
|
|
2003
|
-
class InvalidDeploymentRequestError extends Error {
|
|
2004
|
-
constructor(body) {
|
|
2005
|
-
super(
|
|
2006
|
-
`INVALID_DEPLOYMENT_REQUEST: ${body.message}`
|
|
2007
|
-
);
|
|
2008
|
-
this.body = body;
|
|
2009
|
-
this.name = "InvalidDeploymentRequestError";
|
|
2010
|
-
}
|
|
2011
|
-
static code = "INVALID_DEPLOYMENT_REQUEST";
|
|
2012
|
-
static statusCode = 400;
|
|
2013
|
-
static description = `Invalid deployment request: {message}`;
|
|
2061
|
+
static description = `Failed to create identity: {message}`;
|
|
2014
2062
|
}
|
|
2015
|
-
class
|
|
2063
|
+
class VmPermissionNotFoundError extends Error {
|
|
2016
2064
|
constructor(body) {
|
|
2017
2065
|
super(
|
|
2018
|
-
`
|
|
2066
|
+
`VM_PERMISSION_NOT_FOUND: ${body.message}`
|
|
2019
2067
|
);
|
|
2020
2068
|
this.body = body;
|
|
2021
|
-
this.name = "
|
|
2069
|
+
this.name = "VmPermissionNotFoundError";
|
|
2022
2070
|
}
|
|
2023
|
-
static code = "
|
|
2071
|
+
static code = "VM_PERMISSION_NOT_FOUND";
|
|
2024
2072
|
static statusCode = 404;
|
|
2025
|
-
static description = `
|
|
2026
|
-
}
|
|
2027
|
-
class UnauthorizedErrorError extends Error {
|
|
2028
|
-
constructor(body) {
|
|
2029
|
-
super(
|
|
2030
|
-
`UNAUTHORIZED_ERROR: ${body.message}`
|
|
2031
|
-
);
|
|
2032
|
-
this.body = body;
|
|
2033
|
-
this.name = "UnauthorizedErrorError";
|
|
2034
|
-
}
|
|
2035
|
-
static code = "UNAUTHORIZED_ERROR";
|
|
2036
|
-
static statusCode = 401;
|
|
2037
|
-
static description = `Unauthorized request to {route}`;
|
|
2038
|
-
}
|
|
2039
|
-
class BranchNameEmptyError extends Error {
|
|
2040
|
-
constructor(body) {
|
|
2041
|
-
super(
|
|
2042
|
-
`BRANCH_NAME_EMPTY: ${body.message}`
|
|
2043
|
-
);
|
|
2044
|
-
this.body = body;
|
|
2045
|
-
this.name = "BranchNameEmptyError";
|
|
2046
|
-
}
|
|
2047
|
-
static code = "BRANCH_NAME_EMPTY";
|
|
2048
|
-
static statusCode = 400;
|
|
2049
|
-
static description = `Branch name cannot be empty`;
|
|
2050
|
-
}
|
|
2051
|
-
class BuildFailedError extends Error {
|
|
2052
|
-
constructor(body) {
|
|
2053
|
-
super(
|
|
2054
|
-
`BUILD_FAILED: ${body.message}`
|
|
2055
|
-
);
|
|
2056
|
-
this.body = body;
|
|
2057
|
-
this.name = "BuildFailedError";
|
|
2058
|
-
}
|
|
2059
|
-
static code = "BUILD_FAILED";
|
|
2060
|
-
static statusCode = 500;
|
|
2061
|
-
static description = `Build failed on VM {vm_id}`;
|
|
2073
|
+
static description = `VM permission not found`;
|
|
2062
2074
|
}
|
|
2063
|
-
class
|
|
2075
|
+
class PermissionNotFoundError extends Error {
|
|
2064
2076
|
constructor(body) {
|
|
2065
2077
|
super(
|
|
2066
|
-
`
|
|
2078
|
+
`PERMISSION_NOT_FOUND: ${body.message}`
|
|
2067
2079
|
);
|
|
2068
2080
|
this.body = body;
|
|
2069
|
-
this.name = "
|
|
2081
|
+
this.name = "PermissionNotFoundError";
|
|
2070
2082
|
}
|
|
2071
|
-
static code = "
|
|
2072
|
-
static statusCode =
|
|
2073
|
-
static description = `
|
|
2083
|
+
static code = "PERMISSION_NOT_FOUND";
|
|
2084
|
+
static statusCode = 404;
|
|
2085
|
+
static description = `Permission not found`;
|
|
2074
2086
|
}
|
|
2075
|
-
class
|
|
2087
|
+
class GitRepositoryAccessDeniedError extends Error {
|
|
2076
2088
|
constructor(body) {
|
|
2077
2089
|
super(
|
|
2078
|
-
`
|
|
2090
|
+
`GIT_REPOSITORY_ACCESS_DENIED: ${body.message}`
|
|
2079
2091
|
);
|
|
2080
2092
|
this.body = body;
|
|
2081
|
-
this.name = "
|
|
2093
|
+
this.name = "GitRepositoryAccessDeniedError";
|
|
2082
2094
|
}
|
|
2083
|
-
static code = "
|
|
2084
|
-
static statusCode =
|
|
2085
|
-
static description = `
|
|
2095
|
+
static code = "GIT_REPOSITORY_ACCESS_DENIED";
|
|
2096
|
+
static statusCode = 403;
|
|
2097
|
+
static description = `You are not allowed to access this repository`;
|
|
2086
2098
|
}
|
|
2087
|
-
class
|
|
2099
|
+
class GitRepositoryNotFoundError extends Error {
|
|
2088
2100
|
constructor(body) {
|
|
2089
2101
|
super(
|
|
2090
|
-
`
|
|
2102
|
+
`GIT_REPOSITORY_NOT_FOUND: ${body.message}`
|
|
2091
2103
|
);
|
|
2092
2104
|
this.body = body;
|
|
2093
|
-
this.name = "
|
|
2105
|
+
this.name = "GitRepositoryNotFoundError";
|
|
2094
2106
|
}
|
|
2095
|
-
static code = "
|
|
2096
|
-
static statusCode =
|
|
2097
|
-
static description = `
|
|
2107
|
+
static code = "GIT_REPOSITORY_NOT_FOUND";
|
|
2108
|
+
static statusCode = 404;
|
|
2109
|
+
static description = `Repository not found`;
|
|
2098
2110
|
}
|
|
2099
|
-
class
|
|
2111
|
+
class CannotDeleteManagedIdentityError extends Error {
|
|
2100
2112
|
constructor(body) {
|
|
2101
2113
|
super(
|
|
2102
|
-
`
|
|
2114
|
+
`CANNOT_DELETE_MANAGED_IDENTITY: ${body.message}`
|
|
2103
2115
|
);
|
|
2104
2116
|
this.body = body;
|
|
2105
|
-
this.name = "
|
|
2117
|
+
this.name = "CannotDeleteManagedIdentityError";
|
|
2106
2118
|
}
|
|
2107
|
-
static code = "
|
|
2108
|
-
static statusCode =
|
|
2109
|
-
static description = `
|
|
2119
|
+
static code = "CANNOT_DELETE_MANAGED_IDENTITY";
|
|
2120
|
+
static statusCode = 403;
|
|
2121
|
+
static description = `Cannot delete managed identities`;
|
|
2110
2122
|
}
|
|
2111
|
-
class
|
|
2123
|
+
class CannotModifyManagedIdentityError extends Error {
|
|
2112
2124
|
constructor(body) {
|
|
2113
2125
|
super(
|
|
2114
|
-
`
|
|
2126
|
+
`CANNOT_MODIFY_MANAGED_IDENTITY: ${body.message}`
|
|
2115
2127
|
);
|
|
2116
2128
|
this.body = body;
|
|
2117
|
-
this.name = "
|
|
2129
|
+
this.name = "CannotModifyManagedIdentityError";
|
|
2118
2130
|
}
|
|
2119
|
-
static code = "
|
|
2120
|
-
static statusCode =
|
|
2121
|
-
static description = `
|
|
2131
|
+
static code = "CANNOT_MODIFY_MANAGED_IDENTITY";
|
|
2132
|
+
static statusCode = 403;
|
|
2133
|
+
static description = `Cannot modify managed identities`;
|
|
2122
2134
|
}
|
|
2123
|
-
class
|
|
2135
|
+
class IdentityAccessDeniedError extends Error {
|
|
2124
2136
|
constructor(body) {
|
|
2125
2137
|
super(
|
|
2126
|
-
`
|
|
2138
|
+
`IDENTITY_ACCESS_DENIED: ${body.message}`
|
|
2127
2139
|
);
|
|
2128
2140
|
this.body = body;
|
|
2129
|
-
this.name = "
|
|
2141
|
+
this.name = "IdentityAccessDeniedError";
|
|
2130
2142
|
}
|
|
2131
|
-
static code = "
|
|
2132
|
-
static statusCode =
|
|
2133
|
-
static description = `
|
|
2143
|
+
static code = "IDENTITY_ACCESS_DENIED";
|
|
2144
|
+
static statusCode = 403;
|
|
2145
|
+
static description = `You are not allowed to access this identity`;
|
|
2134
2146
|
}
|
|
2135
|
-
class
|
|
2147
|
+
class IdentityNotFoundError extends Error {
|
|
2136
2148
|
constructor(body) {
|
|
2137
2149
|
super(
|
|
2138
|
-
`
|
|
2150
|
+
`IDENTITY_NOT_FOUND: ${body.message}`
|
|
2139
2151
|
);
|
|
2140
2152
|
this.body = body;
|
|
2141
|
-
this.name = "
|
|
2153
|
+
this.name = "IdentityNotFoundError";
|
|
2142
2154
|
}
|
|
2143
|
-
static code = "
|
|
2144
|
-
static statusCode =
|
|
2145
|
-
static description = `
|
|
2155
|
+
static code = "IDENTITY_NOT_FOUND";
|
|
2156
|
+
static statusCode = 404;
|
|
2157
|
+
static description = `Identity not found`;
|
|
2146
2158
|
}
|
|
2147
|
-
class
|
|
2159
|
+
class DomainOwnershipVerificationFailedError extends Error {
|
|
2148
2160
|
constructor(body) {
|
|
2149
2161
|
super(
|
|
2150
|
-
`
|
|
2162
|
+
`DOMAIN_OWNERSHIP_VERIFICATION_FAILED: ${body.message}`
|
|
2151
2163
|
);
|
|
2152
2164
|
this.body = body;
|
|
2153
|
-
this.name = "
|
|
2165
|
+
this.name = "DomainOwnershipVerificationFailedError";
|
|
2154
2166
|
}
|
|
2155
|
-
static code = "
|
|
2167
|
+
static code = "DOMAIN_OWNERSHIP_VERIFICATION_FAILED";
|
|
2156
2168
|
static statusCode = 403;
|
|
2157
|
-
static description = `
|
|
2158
|
-
}
|
|
2159
|
-
class InvalidDomainsError extends Error {
|
|
2160
|
-
constructor(body) {
|
|
2161
|
-
super(
|
|
2162
|
-
`INVALID_DOMAINS: ${body.message}`
|
|
2163
|
-
);
|
|
2164
|
-
this.body = body;
|
|
2165
|
-
this.name = "InvalidDomainsError";
|
|
2166
|
-
}
|
|
2167
|
-
static code = "INVALID_DOMAINS";
|
|
2168
|
-
static statusCode = 400;
|
|
2169
|
-
static description = `Invalid domains provided`;
|
|
2169
|
+
static description = `Domain ownership verification failed`;
|
|
2170
2170
|
}
|
|
2171
|
-
class
|
|
2171
|
+
class ErrorDeletingRecordError extends Error {
|
|
2172
2172
|
constructor(body) {
|
|
2173
2173
|
super(
|
|
2174
|
-
`
|
|
2174
|
+
`ERROR_DELETING_RECORD: ${body.message}`
|
|
2175
2175
|
);
|
|
2176
2176
|
this.body = body;
|
|
2177
|
-
this.name = "
|
|
2177
|
+
this.name = "ErrorDeletingRecordError";
|
|
2178
2178
|
}
|
|
2179
|
-
static code = "
|
|
2180
|
-
static statusCode =
|
|
2181
|
-
static description = `
|
|
2179
|
+
static code = "ERROR_DELETING_RECORD";
|
|
2180
|
+
static statusCode = 500;
|
|
2181
|
+
static description = `Error deleting DNS record for {domain}/{name}: {message}`;
|
|
2182
2182
|
}
|
|
2183
|
-
class
|
|
2183
|
+
class RecordOwnershipErrorError extends Error {
|
|
2184
2184
|
constructor(body) {
|
|
2185
2185
|
super(
|
|
2186
|
-
`
|
|
2186
|
+
`RECORD_OWNERSHIP_ERROR: ${body.message}`
|
|
2187
2187
|
);
|
|
2188
2188
|
this.body = body;
|
|
2189
|
-
this.name = "
|
|
2189
|
+
this.name = "RecordOwnershipErrorError";
|
|
2190
2190
|
}
|
|
2191
|
-
static code = "
|
|
2192
|
-
static statusCode =
|
|
2193
|
-
static description = `
|
|
2191
|
+
static code = "RECORD_OWNERSHIP_ERROR";
|
|
2192
|
+
static statusCode = 403;
|
|
2193
|
+
static description = `Account {account_id} does not own record {record_id}`;
|
|
2194
2194
|
}
|
|
2195
|
-
class
|
|
2195
|
+
class ErrorCreatingRecordError extends Error {
|
|
2196
2196
|
constructor(body) {
|
|
2197
2197
|
super(
|
|
2198
|
-
`
|
|
2198
|
+
`ERROR_CREATING_RECORD: ${body.message}`
|
|
2199
2199
|
);
|
|
2200
2200
|
this.body = body;
|
|
2201
|
-
this.name = "
|
|
2201
|
+
this.name = "ErrorCreatingRecordError";
|
|
2202
2202
|
}
|
|
2203
|
-
static code = "
|
|
2203
|
+
static code = "ERROR_CREATING_RECORD";
|
|
2204
2204
|
static statusCode = 500;
|
|
2205
|
-
static description = `
|
|
2205
|
+
static description = `Error creating DNS record: {message}`;
|
|
2206
2206
|
}
|
|
2207
|
-
class
|
|
2207
|
+
class DomainOwnershipErrorError extends Error {
|
|
2208
2208
|
constructor(body) {
|
|
2209
2209
|
super(
|
|
2210
|
-
`
|
|
2210
|
+
`DOMAIN_OWNERSHIP_ERROR: ${body.message}`
|
|
2211
2211
|
);
|
|
2212
2212
|
this.body = body;
|
|
2213
|
-
this.name = "
|
|
2213
|
+
this.name = "DomainOwnershipErrorError";
|
|
2214
2214
|
}
|
|
2215
|
-
static code = "
|
|
2216
|
-
static statusCode =
|
|
2217
|
-
static description = `
|
|
2215
|
+
static code = "DOMAIN_OWNERSHIP_ERROR";
|
|
2216
|
+
static statusCode = 403;
|
|
2217
|
+
static description = `Account {account_id} does not own domain {domain}`;
|
|
2218
2218
|
}
|
|
2219
|
-
class
|
|
2219
|
+
class BrowserOperationFailedError extends Error {
|
|
2220
2220
|
constructor(body) {
|
|
2221
2221
|
super(
|
|
2222
|
-
`
|
|
2222
|
+
`BROWSER_OPERATION_FAILED: ${body.message}`
|
|
2223
2223
|
);
|
|
2224
2224
|
this.body = body;
|
|
2225
|
-
this.name = "
|
|
2225
|
+
this.name = "BrowserOperationFailedError";
|
|
2226
2226
|
}
|
|
2227
|
-
static code = "
|
|
2228
|
-
static statusCode =
|
|
2229
|
-
static description = `
|
|
2227
|
+
static code = "BROWSER_OPERATION_FAILED";
|
|
2228
|
+
static statusCode = 500;
|
|
2229
|
+
static description = `Browser operation failed: {message}`;
|
|
2230
2230
|
}
|
|
2231
|
-
class
|
|
2231
|
+
class WatchFilesFailedError extends Error {
|
|
2232
2232
|
constructor(body) {
|
|
2233
2233
|
super(
|
|
2234
|
-
`
|
|
2234
|
+
`WATCH_FILES_FAILED: ${body.message}`
|
|
2235
2235
|
);
|
|
2236
2236
|
this.body = body;
|
|
2237
|
-
this.name = "
|
|
2237
|
+
this.name = "WatchFilesFailedError";
|
|
2238
2238
|
}
|
|
2239
|
-
static code = "
|
|
2239
|
+
static code = "WATCH_FILES_FAILED";
|
|
2240
2240
|
static statusCode = 500;
|
|
2241
|
-
static description = `Failed to
|
|
2241
|
+
static description = `Failed to watch files: {message}`;
|
|
2242
2242
|
}
|
|
2243
|
-
class
|
|
2243
|
+
class LogsFailedError extends Error {
|
|
2244
2244
|
constructor(body) {
|
|
2245
2245
|
super(
|
|
2246
|
-
`
|
|
2246
|
+
`LOGS_FAILED: ${body.message}`
|
|
2247
2247
|
);
|
|
2248
2248
|
this.body = body;
|
|
2249
|
-
this.name = "
|
|
2249
|
+
this.name = "LogsFailedError";
|
|
2250
2250
|
}
|
|
2251
|
-
static code = "
|
|
2251
|
+
static code = "LOGS_FAILED";
|
|
2252
2252
|
static statusCode = 500;
|
|
2253
|
-
static description = `Failed to
|
|
2253
|
+
static description = `Failed to get logs: {message}`;
|
|
2254
2254
|
}
|
|
2255
|
-
class
|
|
2255
|
+
class StatusFailedError extends Error {
|
|
2256
2256
|
constructor(body) {
|
|
2257
2257
|
super(
|
|
2258
|
-
`
|
|
2258
|
+
`STATUS_FAILED: ${body.message}`
|
|
2259
2259
|
);
|
|
2260
2260
|
this.body = body;
|
|
2261
|
-
this.name = "
|
|
2261
|
+
this.name = "StatusFailedError";
|
|
2262
2262
|
}
|
|
2263
|
-
static code = "
|
|
2264
|
-
static statusCode =
|
|
2265
|
-
static description = `
|
|
2263
|
+
static code = "STATUS_FAILED";
|
|
2264
|
+
static statusCode = 500;
|
|
2265
|
+
static description = `Failed to get dev server status: {message}`;
|
|
2266
2266
|
}
|
|
2267
|
-
class
|
|
2267
|
+
class RestartFailedError extends Error {
|
|
2268
2268
|
constructor(body) {
|
|
2269
2269
|
super(
|
|
2270
|
-
`
|
|
2270
|
+
`RESTART_FAILED: ${body.message}`
|
|
2271
2271
|
);
|
|
2272
2272
|
this.body = body;
|
|
2273
|
-
this.name = "
|
|
2273
|
+
this.name = "RestartFailedError";
|
|
2274
2274
|
}
|
|
2275
|
-
static code = "
|
|
2276
|
-
static statusCode =
|
|
2277
|
-
static description = `Failed to
|
|
2275
|
+
static code = "RESTART_FAILED";
|
|
2276
|
+
static statusCode = 500;
|
|
2277
|
+
static description = `Failed to restart dev server: {message}`;
|
|
2278
2278
|
}
|
|
2279
|
-
class
|
|
2279
|
+
class ShutdownFailedError extends Error {
|
|
2280
2280
|
constructor(body) {
|
|
2281
2281
|
super(
|
|
2282
|
-
`
|
|
2282
|
+
`SHUTDOWN_FAILED: ${body.message}`
|
|
2283
2283
|
);
|
|
2284
2284
|
this.body = body;
|
|
2285
|
-
this.name = "
|
|
2285
|
+
this.name = "ShutdownFailedError";
|
|
2286
2286
|
}
|
|
2287
|
-
static code = "
|
|
2288
|
-
static statusCode =
|
|
2289
|
-
static description = `
|
|
2287
|
+
static code = "SHUTDOWN_FAILED";
|
|
2288
|
+
static statusCode = 500;
|
|
2289
|
+
static description = `Failed to shutdown dev server: {message}`;
|
|
2290
2290
|
}
|
|
2291
|
-
class
|
|
2291
|
+
class CommitFailedError extends Error {
|
|
2292
2292
|
constructor(body) {
|
|
2293
2293
|
super(
|
|
2294
|
-
`
|
|
2294
|
+
`COMMIT_FAILED: ${body.message}`
|
|
2295
2295
|
);
|
|
2296
2296
|
this.body = body;
|
|
2297
|
-
this.name = "
|
|
2297
|
+
this.name = "CommitFailedError";
|
|
2298
2298
|
}
|
|
2299
|
-
static code = "
|
|
2299
|
+
static code = "COMMIT_FAILED";
|
|
2300
2300
|
static statusCode = 500;
|
|
2301
|
-
static description = `Failed to
|
|
2301
|
+
static description = `Failed to commit changes: {message}`;
|
|
2302
2302
|
}
|
|
2303
|
-
class
|
|
2303
|
+
class WriteFileFailedError extends Error {
|
|
2304
2304
|
constructor(body) {
|
|
2305
2305
|
super(
|
|
2306
|
-
`
|
|
2306
|
+
`WRITE_FILE_FAILED: ${body.message}`
|
|
2307
2307
|
);
|
|
2308
2308
|
this.body = body;
|
|
2309
|
-
this.name = "
|
|
2309
|
+
this.name = "WriteFileFailedError";
|
|
2310
2310
|
}
|
|
2311
|
-
static code = "
|
|
2311
|
+
static code = "WRITE_FILE_FAILED";
|
|
2312
2312
|
static statusCode = 500;
|
|
2313
|
-
static description = `Failed to
|
|
2313
|
+
static description = `Failed to write file: {message}`;
|
|
2314
2314
|
}
|
|
2315
|
-
class
|
|
2315
|
+
class ReadFileFailedError extends Error {
|
|
2316
2316
|
constructor(body) {
|
|
2317
2317
|
super(
|
|
2318
|
-
`
|
|
2318
|
+
`READ_FILE_FAILED: ${body.message}`
|
|
2319
2319
|
);
|
|
2320
2320
|
this.body = body;
|
|
2321
|
-
this.name = "
|
|
2321
|
+
this.name = "ReadFileFailedError";
|
|
2322
2322
|
}
|
|
2323
|
-
static code = "
|
|
2323
|
+
static code = "READ_FILE_FAILED";
|
|
2324
2324
|
static statusCode = 500;
|
|
2325
|
-
static description = `Failed to
|
|
2325
|
+
static description = `Failed to read file: {message}`;
|
|
2326
2326
|
}
|
|
2327
|
-
class
|
|
2327
|
+
class ExecutionFailedError extends Error {
|
|
2328
2328
|
constructor(body) {
|
|
2329
2329
|
super(
|
|
2330
|
-
`
|
|
2330
|
+
`EXECUTION_FAILED: ${body.message}`
|
|
2331
2331
|
);
|
|
2332
2332
|
this.body = body;
|
|
2333
|
-
this.name = "
|
|
2333
|
+
this.name = "ExecutionFailedError";
|
|
2334
2334
|
}
|
|
2335
|
-
static code = "
|
|
2335
|
+
static code = "EXECUTION_FAILED";
|
|
2336
2336
|
static statusCode = 500;
|
|
2337
|
-
static description = `Failed to
|
|
2337
|
+
static description = `Failed to execute command: {message}`;
|
|
2338
2338
|
}
|
|
2339
|
-
class
|
|
2339
|
+
class RequestFailedError extends Error {
|
|
2340
2340
|
constructor(body) {
|
|
2341
2341
|
super(
|
|
2342
|
-
`
|
|
2342
|
+
`REQUEST_FAILED: ${body.message}`
|
|
2343
2343
|
);
|
|
2344
2344
|
this.body = body;
|
|
2345
|
-
this.name = "
|
|
2345
|
+
this.name = "RequestFailedError";
|
|
2346
2346
|
}
|
|
2347
|
-
static code = "
|
|
2347
|
+
static code = "REQUEST_FAILED";
|
|
2348
2348
|
static statusCode = 500;
|
|
2349
|
-
static description = `Failed to
|
|
2349
|
+
static description = `Failed to request dev server: {message}`;
|
|
2350
2350
|
}
|
|
2351
|
-
class
|
|
2351
|
+
class DevServerFileNotFoundError extends Error {
|
|
2352
2352
|
constructor(body) {
|
|
2353
2353
|
super(
|
|
2354
|
-
`
|
|
2354
|
+
`DEV_SERVER_FILE_NOT_FOUND: ${body.message}`
|
|
2355
2355
|
);
|
|
2356
2356
|
this.body = body;
|
|
2357
|
-
this.name = "
|
|
2357
|
+
this.name = "DevServerFileNotFoundError";
|
|
2358
2358
|
}
|
|
2359
|
-
static code = "
|
|
2360
|
-
static statusCode =
|
|
2361
|
-
static description = `
|
|
2359
|
+
static code = "DEV_SERVER_FILE_NOT_FOUND";
|
|
2360
|
+
static statusCode = 404;
|
|
2361
|
+
static description = `Dev server file not found: {path}`;
|
|
2362
2362
|
}
|
|
2363
|
-
class
|
|
2363
|
+
class DevServerInvalidRequestError extends Error {
|
|
2364
2364
|
constructor(body) {
|
|
2365
2365
|
super(
|
|
2366
|
-
`
|
|
2366
|
+
`DEV_SERVER_INVALID_REQUEST: ${body.message}`
|
|
2367
2367
|
);
|
|
2368
2368
|
this.body = body;
|
|
2369
|
-
this.name = "
|
|
2369
|
+
this.name = "DevServerInvalidRequestError";
|
|
2370
2370
|
}
|
|
2371
|
-
static code = "
|
|
2372
|
-
static statusCode =
|
|
2373
|
-
static description = `
|
|
2371
|
+
static code = "DEV_SERVER_INVALID_REQUEST";
|
|
2372
|
+
static statusCode = 400;
|
|
2373
|
+
static description = `Invalid dev server request: {message}`;
|
|
2374
2374
|
}
|
|
2375
|
-
class
|
|
2375
|
+
class UnauthorizedErrorError extends Error {
|
|
2376
2376
|
constructor(body) {
|
|
2377
2377
|
super(
|
|
2378
|
-
`
|
|
2378
|
+
`UNAUTHORIZED_ERROR: ${body.message}`
|
|
2379
2379
|
);
|
|
2380
2380
|
this.body = body;
|
|
2381
|
-
this.name = "
|
|
2381
|
+
this.name = "UnauthorizedErrorError";
|
|
2382
2382
|
}
|
|
2383
|
-
static code = "
|
|
2384
|
-
static statusCode =
|
|
2385
|
-
static description = `
|
|
2383
|
+
static code = "UNAUTHORIZED_ERROR";
|
|
2384
|
+
static statusCode = 401;
|
|
2385
|
+
static description = `Unauthorized request to {route}`;
|
|
2386
2386
|
}
|
|
2387
|
-
class
|
|
2387
|
+
class ExecuteInternalErrorError extends Error {
|
|
2388
2388
|
constructor(body) {
|
|
2389
2389
|
super(
|
|
2390
|
-
`
|
|
2390
|
+
`EXECUTE_INTERNAL_ERROR: ${body.message}`
|
|
2391
2391
|
);
|
|
2392
2392
|
this.body = body;
|
|
2393
|
-
this.name = "
|
|
2393
|
+
this.name = "ExecuteInternalErrorError";
|
|
2394
2394
|
}
|
|
2395
|
-
static code = "
|
|
2395
|
+
static code = "EXECUTE_INTERNAL_ERROR";
|
|
2396
2396
|
static statusCode = 500;
|
|
2397
|
-
static description = `
|
|
2397
|
+
static description = `Internal error: {message}`;
|
|
2398
2398
|
}
|
|
2399
|
-
class
|
|
2399
|
+
class ExecuteAccessDeniedError extends Error {
|
|
2400
2400
|
constructor(body) {
|
|
2401
2401
|
super(
|
|
2402
|
-
`
|
|
2402
|
+
`EXECUTE_ACCESS_DENIED: ${body.message}`
|
|
2403
2403
|
);
|
|
2404
2404
|
this.body = body;
|
|
2405
|
-
this.name = "
|
|
2405
|
+
this.name = "ExecuteAccessDeniedError";
|
|
2406
2406
|
}
|
|
2407
|
-
static code = "
|
|
2408
|
-
static statusCode =
|
|
2409
|
-
static description = `
|
|
2407
|
+
static code = "EXECUTE_ACCESS_DENIED";
|
|
2408
|
+
static statusCode = 403;
|
|
2409
|
+
static description = `Access denied to execute run`;
|
|
2410
2410
|
}
|
|
2411
|
-
class
|
|
2411
|
+
class ListRunsFailedError extends Error {
|
|
2412
2412
|
constructor(body) {
|
|
2413
2413
|
super(
|
|
2414
|
-
`
|
|
2414
|
+
`LIST_RUNS_FAILED: ${body.message}`
|
|
2415
2415
|
);
|
|
2416
2416
|
this.body = body;
|
|
2417
|
-
this.name = "
|
|
2417
|
+
this.name = "ListRunsFailedError";
|
|
2418
2418
|
}
|
|
2419
|
-
static code = "
|
|
2419
|
+
static code = "LIST_RUNS_FAILED";
|
|
2420
2420
|
static statusCode = 500;
|
|
2421
|
-
static description = `Failed to
|
|
2421
|
+
static description = `Failed to list execute runs: {message}`;
|
|
2422
2422
|
}
|
|
2423
|
-
class
|
|
2423
|
+
class ExecutionErrorError extends Error {
|
|
2424
2424
|
constructor(body) {
|
|
2425
2425
|
super(
|
|
2426
|
-
`
|
|
2426
|
+
`EXECUTION_ERROR: ${body.message}`
|
|
2427
2427
|
);
|
|
2428
2428
|
this.body = body;
|
|
2429
|
-
this.name = "
|
|
2429
|
+
this.name = "ExecutionErrorError";
|
|
2430
2430
|
}
|
|
2431
|
-
static code = "
|
|
2432
|
-
static statusCode =
|
|
2433
|
-
static description = `
|
|
2431
|
+
static code = "EXECUTION_ERROR";
|
|
2432
|
+
static statusCode = 500;
|
|
2433
|
+
static description = `Script execution error: {message}`;
|
|
2434
2434
|
}
|
|
2435
|
-
class
|
|
2435
|
+
class ConnectionFailedError extends Error {
|
|
2436
2436
|
constructor(body) {
|
|
2437
2437
|
super(
|
|
2438
|
-
`
|
|
2438
|
+
`CONNECTION_FAILED: ${body.message}`
|
|
2439
2439
|
);
|
|
2440
2440
|
this.body = body;
|
|
2441
|
-
this.name = "
|
|
2441
|
+
this.name = "ConnectionFailedError";
|
|
2442
2442
|
}
|
|
2443
|
-
static code = "
|
|
2444
|
-
static statusCode =
|
|
2445
|
-
static description = `
|
|
2443
|
+
static code = "CONNECTION_FAILED";
|
|
2444
|
+
static statusCode = 500;
|
|
2445
|
+
static description = `Failed to connect to execute server: {message}`;
|
|
2446
2446
|
}
|
|
2447
|
-
class
|
|
2447
|
+
class MetadataWriteFailedError extends Error {
|
|
2448
2448
|
constructor(body) {
|
|
2449
2449
|
super(
|
|
2450
|
-
`
|
|
2450
|
+
`METADATA_WRITE_FAILED: ${body.message}`
|
|
2451
2451
|
);
|
|
2452
2452
|
this.body = body;
|
|
2453
|
-
this.name = "
|
|
2453
|
+
this.name = "MetadataWriteFailedError";
|
|
2454
2454
|
}
|
|
2455
|
-
static code = "
|
|
2456
|
-
static statusCode =
|
|
2457
|
-
static description = `
|
|
2455
|
+
static code = "METADATA_WRITE_FAILED";
|
|
2456
|
+
static statusCode = 500;
|
|
2457
|
+
static description = `Failed to write metadata file: {message}`;
|
|
2458
2458
|
}
|
|
2459
|
-
class
|
|
2459
|
+
class NodeModulesInstallFailedError extends Error {
|
|
2460
2460
|
constructor(body) {
|
|
2461
2461
|
super(
|
|
2462
|
-
`
|
|
2462
|
+
`NODE_MODULES_INSTALL_FAILED: ${body.message}`
|
|
2463
2463
|
);
|
|
2464
2464
|
this.body = body;
|
|
2465
|
-
this.name = "
|
|
2465
|
+
this.name = "NodeModulesInstallFailedError";
|
|
2466
2466
|
}
|
|
2467
|
-
static code = "
|
|
2468
|
-
static statusCode =
|
|
2469
|
-
static description = `
|
|
2467
|
+
static code = "NODE_MODULES_INSTALL_FAILED";
|
|
2468
|
+
static statusCode = 500;
|
|
2469
|
+
static description = `Failed to install node modules: {message}`;
|
|
2470
2470
|
}
|
|
2471
|
-
class
|
|
2471
|
+
class NodeModulesDownloadFailedError extends Error {
|
|
2472
2472
|
constructor(body) {
|
|
2473
2473
|
super(
|
|
2474
|
-
`
|
|
2474
|
+
`NODE_MODULES_DOWNLOAD_FAILED: ${body.message}`
|
|
2475
2475
|
);
|
|
2476
2476
|
this.body = body;
|
|
2477
|
-
this.name = "
|
|
2477
|
+
this.name = "NodeModulesDownloadFailedError";
|
|
2478
2478
|
}
|
|
2479
|
-
static code = "
|
|
2480
|
-
static statusCode =
|
|
2481
|
-
static description = `
|
|
2479
|
+
static code = "NODE_MODULES_DOWNLOAD_FAILED";
|
|
2480
|
+
static statusCode = 500;
|
|
2481
|
+
static description = `Failed to download node modules: {message}`;
|
|
2482
2482
|
}
|
|
2483
|
-
class
|
|
2483
|
+
class LockGenerationFailedError extends Error {
|
|
2484
2484
|
constructor(body) {
|
|
2485
2485
|
super(
|
|
2486
|
-
`
|
|
2486
|
+
`LOCK_GENERATION_FAILED: ${body.message}`
|
|
2487
2487
|
);
|
|
2488
2488
|
this.body = body;
|
|
2489
|
-
this.name = "
|
|
2489
|
+
this.name = "LockGenerationFailedError";
|
|
2490
2490
|
}
|
|
2491
|
-
static code = "
|
|
2492
|
-
static statusCode =
|
|
2493
|
-
static description = `
|
|
2491
|
+
static code = "LOCK_GENERATION_FAILED";
|
|
2492
|
+
static statusCode = 500;
|
|
2493
|
+
static description = `Failed to generate lock file: {message}`;
|
|
2494
2494
|
}
|
|
2495
|
-
class
|
|
2495
|
+
class WriteScriptFailedError extends Error {
|
|
2496
2496
|
constructor(body) {
|
|
2497
2497
|
super(
|
|
2498
|
-
`
|
|
2498
|
+
`WRITE_SCRIPT_FAILED: ${body.message}`
|
|
2499
2499
|
);
|
|
2500
2500
|
this.body = body;
|
|
2501
|
-
this.name = "
|
|
2501
|
+
this.name = "WriteScriptFailedError";
|
|
2502
2502
|
}
|
|
2503
|
-
static code = "
|
|
2504
|
-
static statusCode =
|
|
2505
|
-
static description = `
|
|
2503
|
+
static code = "WRITE_SCRIPT_FAILED";
|
|
2504
|
+
static statusCode = 500;
|
|
2505
|
+
static description = `Failed to write script file: {message}`;
|
|
2506
2506
|
}
|
|
2507
|
-
class
|
|
2507
|
+
class DirectoryCreationFailedError extends Error {
|
|
2508
2508
|
constructor(body) {
|
|
2509
2509
|
super(
|
|
2510
|
-
`
|
|
2510
|
+
`DIRECTORY_CREATION_FAILED: ${body.message}`
|
|
2511
2511
|
);
|
|
2512
2512
|
this.body = body;
|
|
2513
|
-
this.name = "
|
|
2513
|
+
this.name = "DirectoryCreationFailedError";
|
|
2514
2514
|
}
|
|
2515
|
-
static code = "
|
|
2516
|
-
static statusCode =
|
|
2517
|
-
static description = `
|
|
2515
|
+
static code = "DIRECTORY_CREATION_FAILED";
|
|
2516
|
+
static statusCode = 500;
|
|
2517
|
+
static description = `Failed to create script directory: {message}`;
|
|
2518
2518
|
}
|
|
2519
|
-
class
|
|
2519
|
+
class NetworkPermissionsFailedError extends Error {
|
|
2520
2520
|
constructor(body) {
|
|
2521
2521
|
super(
|
|
2522
|
-
`
|
|
2522
|
+
`NETWORK_PERMISSIONS_FAILED: ${body.message}`
|
|
2523
2523
|
);
|
|
2524
2524
|
this.body = body;
|
|
2525
|
-
this.name = "
|
|
2525
|
+
this.name = "NetworkPermissionsFailedError";
|
|
2526
2526
|
}
|
|
2527
|
-
static code = "
|
|
2528
|
-
static statusCode =
|
|
2529
|
-
static description = `
|
|
2527
|
+
static code = "NETWORK_PERMISSIONS_FAILED";
|
|
2528
|
+
static statusCode = 500;
|
|
2529
|
+
static description = `Failed to insert network permissions: {message}`;
|
|
2530
2530
|
}
|
|
2531
|
-
class
|
|
2531
|
+
class LoggingFailedError extends Error {
|
|
2532
2532
|
constructor(body) {
|
|
2533
2533
|
super(
|
|
2534
|
-
`
|
|
2534
|
+
`LOGGING_FAILED: ${body.message}`
|
|
2535
2535
|
);
|
|
2536
2536
|
this.body = body;
|
|
2537
|
-
this.name = "
|
|
2537
|
+
this.name = "LoggingFailedError";
|
|
2538
2538
|
}
|
|
2539
|
-
static code = "
|
|
2539
|
+
static code = "LOGGING_FAILED";
|
|
2540
2540
|
static statusCode = 500;
|
|
2541
|
-
static description = `
|
|
2541
|
+
static description = `Failed to log execute run: {message}`;
|
|
2542
2542
|
}
|
|
2543
|
-
class
|
|
2543
|
+
class RunNotFoundError extends Error {
|
|
2544
2544
|
constructor(body) {
|
|
2545
2545
|
super(
|
|
2546
|
-
`
|
|
2546
|
+
`RUN_NOT_FOUND: ${body.message}`
|
|
2547
2547
|
);
|
|
2548
2548
|
this.body = body;
|
|
2549
|
-
this.name = "
|
|
2549
|
+
this.name = "RunNotFoundError";
|
|
2550
2550
|
}
|
|
2551
|
-
static code = "
|
|
2552
|
-
static statusCode =
|
|
2553
|
-
static description = `
|
|
2551
|
+
static code = "RUN_NOT_FOUND";
|
|
2552
|
+
static statusCode = 404;
|
|
2553
|
+
static description = `Execute run not found: {run_id}`;
|
|
2554
2554
|
}
|
|
2555
|
-
class
|
|
2555
|
+
class ObservabilityDatabaseErrorError extends Error {
|
|
2556
2556
|
constructor(body) {
|
|
2557
2557
|
super(
|
|
2558
|
-
`
|
|
2558
|
+
`OBSERVABILITY_DATABASE_ERROR: ${body.message}`
|
|
2559
2559
|
);
|
|
2560
2560
|
this.body = body;
|
|
2561
|
-
this.name = "
|
|
2561
|
+
this.name = "ObservabilityDatabaseErrorError";
|
|
2562
2562
|
}
|
|
2563
|
-
static code = "
|
|
2563
|
+
static code = "OBSERVABILITY_DATABASE_ERROR";
|
|
2564
2564
|
static statusCode = 500;
|
|
2565
|
-
static description = `
|
|
2565
|
+
static description = `Database operation failed: {message}`;
|
|
2566
2566
|
}
|
|
2567
|
-
class
|
|
2567
|
+
class ObservabilityAccessDeniedError extends Error {
|
|
2568
2568
|
constructor(body) {
|
|
2569
2569
|
super(
|
|
2570
|
-
`
|
|
2570
|
+
`OBSERVABILITY_ACCESS_DENIED: ${body.message}`
|
|
2571
2571
|
);
|
|
2572
2572
|
this.body = body;
|
|
2573
|
-
this.name = "
|
|
2573
|
+
this.name = "ObservabilityAccessDeniedError";
|
|
2574
2574
|
}
|
|
2575
|
-
static code = "
|
|
2575
|
+
static code = "OBSERVABILITY_ACCESS_DENIED";
|
|
2576
2576
|
static statusCode = 403;
|
|
2577
|
-
static description = `
|
|
2577
|
+
static description = `Access denied to logs for deployment: {deployment_id}`;
|
|
2578
2578
|
}
|
|
2579
|
-
class
|
|
2579
|
+
class ParseLogsFailedError extends Error {
|
|
2580
2580
|
constructor(body) {
|
|
2581
2581
|
super(
|
|
2582
|
-
`
|
|
2582
|
+
`PARSE_LOGS_FAILED: ${body.message}`
|
|
2583
2583
|
);
|
|
2584
2584
|
this.body = body;
|
|
2585
|
-
this.name = "
|
|
2585
|
+
this.name = "ParseLogsFailedError";
|
|
2586
2586
|
}
|
|
2587
|
-
static code = "
|
|
2587
|
+
static code = "PARSE_LOGS_FAILED";
|
|
2588
2588
|
static statusCode = 500;
|
|
2589
|
-
static description = `
|
|
2589
|
+
static description = `Failed to parse logs: {message}`;
|
|
2590
2590
|
}
|
|
2591
|
-
class
|
|
2591
|
+
class RetrieveLogsFailedError extends Error {
|
|
2592
2592
|
constructor(body) {
|
|
2593
2593
|
super(
|
|
2594
|
-
`
|
|
2594
|
+
`RETRIEVE_LOGS_FAILED: ${body.message}`
|
|
2595
2595
|
);
|
|
2596
2596
|
this.body = body;
|
|
2597
|
-
this.name = "
|
|
2597
|
+
this.name = "RetrieveLogsFailedError";
|
|
2598
2598
|
}
|
|
2599
|
-
static code = "
|
|
2599
|
+
static code = "RETRIEVE_LOGS_FAILED";
|
|
2600
2600
|
static statusCode = 500;
|
|
2601
|
-
static description = `Failed to
|
|
2601
|
+
static description = `Failed to retrieve logs: {message}`;
|
|
2602
2602
|
}
|
|
2603
|
-
class
|
|
2603
|
+
class InvalidQueryError extends Error {
|
|
2604
2604
|
constructor(body) {
|
|
2605
2605
|
super(
|
|
2606
|
-
`
|
|
2606
|
+
`INVALID_QUERY: ${body.message}`
|
|
2607
2607
|
);
|
|
2608
2608
|
this.body = body;
|
|
2609
|
-
this.name = "
|
|
2609
|
+
this.name = "InvalidQueryError";
|
|
2610
2610
|
}
|
|
2611
|
-
static code = "
|
|
2612
|
-
static statusCode =
|
|
2613
|
-
static description = `
|
|
2611
|
+
static code = "INVALID_QUERY";
|
|
2612
|
+
static statusCode = 400;
|
|
2613
|
+
static description = `Invalid log query: {message}`;
|
|
2614
2614
|
}
|
|
2615
|
-
class
|
|
2615
|
+
class LogsNotFoundError extends Error {
|
|
2616
2616
|
constructor(body) {
|
|
2617
2617
|
super(
|
|
2618
|
-
`
|
|
2618
|
+
`LOGS_NOT_FOUND: ${body.message}`
|
|
2619
2619
|
);
|
|
2620
2620
|
this.body = body;
|
|
2621
|
-
this.name = "
|
|
2621
|
+
this.name = "LogsNotFoundError";
|
|
2622
2622
|
}
|
|
2623
|
-
static code = "
|
|
2624
|
-
static statusCode =
|
|
2625
|
-
static description = `
|
|
2623
|
+
static code = "LOGS_NOT_FOUND";
|
|
2624
|
+
static statusCode = 404;
|
|
2625
|
+
static description = `Logs not found for deployment: {deployment_id}`;
|
|
2626
2626
|
}
|
|
2627
|
-
class
|
|
2627
|
+
class CloudstateInternalErrorError extends Error {
|
|
2628
2628
|
constructor(body) {
|
|
2629
2629
|
super(
|
|
2630
|
-
`
|
|
2630
|
+
`CLOUDSTATE_INTERNAL_ERROR: ${body.message}`
|
|
2631
2631
|
);
|
|
2632
2632
|
this.body = body;
|
|
2633
|
-
this.name = "
|
|
2633
|
+
this.name = "CloudstateInternalErrorError";
|
|
2634
2634
|
}
|
|
2635
|
-
static code = "
|
|
2635
|
+
static code = "CLOUDSTATE_INTERNAL_ERROR";
|
|
2636
2636
|
static statusCode = 500;
|
|
2637
|
-
static description = `
|
|
2637
|
+
static description = `Internal error: {message}`;
|
|
2638
2638
|
}
|
|
2639
|
-
class
|
|
2639
|
+
class CloudstateDatabaseErrorError extends Error {
|
|
2640
2640
|
constructor(body) {
|
|
2641
2641
|
super(
|
|
2642
|
-
`
|
|
2642
|
+
`CLOUDSTATE_DATABASE_ERROR: ${body.message}`
|
|
2643
2643
|
);
|
|
2644
2644
|
this.body = body;
|
|
2645
|
-
this.name = "
|
|
2645
|
+
this.name = "CloudstateDatabaseErrorError";
|
|
2646
2646
|
}
|
|
2647
|
-
static code = "
|
|
2647
|
+
static code = "CLOUDSTATE_DATABASE_ERROR";
|
|
2648
2648
|
static statusCode = 500;
|
|
2649
|
-
static description = `
|
|
2649
|
+
static description = `Database operation failed: {message}`;
|
|
2650
2650
|
}
|
|
2651
|
-
class
|
|
2651
|
+
class CloudstateAccessDeniedError extends Error {
|
|
2652
2652
|
constructor(body) {
|
|
2653
2653
|
super(
|
|
2654
|
-
`
|
|
2654
|
+
`CLOUDSTATE_ACCESS_DENIED: ${body.message}`
|
|
2655
2655
|
);
|
|
2656
2656
|
this.body = body;
|
|
2657
|
-
this.name = "
|
|
2657
|
+
this.name = "CloudstateAccessDeniedError";
|
|
2658
2658
|
}
|
|
2659
|
-
static code = "
|
|
2660
|
-
static statusCode =
|
|
2661
|
-
static description = `
|
|
2659
|
+
static code = "CLOUDSTATE_ACCESS_DENIED";
|
|
2660
|
+
static statusCode = 403;
|
|
2661
|
+
static description = `Access denied to project: {project_id}`;
|
|
2662
2662
|
}
|
|
2663
|
-
class
|
|
2663
|
+
class RestoreFailedError extends Error {
|
|
2664
2664
|
constructor(body) {
|
|
2665
2665
|
super(
|
|
2666
|
-
`
|
|
2666
|
+
`RESTORE_FAILED: ${body.message}`
|
|
2667
2667
|
);
|
|
2668
2668
|
this.body = body;
|
|
2669
|
-
this.name = "
|
|
2669
|
+
this.name = "RestoreFailedError";
|
|
2670
2670
|
}
|
|
2671
|
-
static code = "
|
|
2671
|
+
static code = "RESTORE_FAILED";
|
|
2672
2672
|
static statusCode = 500;
|
|
2673
|
-
static description = `Failed to
|
|
2673
|
+
static description = `Failed to restore from backup: {message}`;
|
|
2674
2674
|
}
|
|
2675
|
-
class
|
|
2675
|
+
class CreateBackupFailedError extends Error {
|
|
2676
2676
|
constructor(body) {
|
|
2677
2677
|
super(
|
|
2678
|
-
`
|
|
2678
|
+
`CREATE_BACKUP_FAILED: ${body.message}`
|
|
2679
2679
|
);
|
|
2680
2680
|
this.body = body;
|
|
2681
|
-
this.name = "
|
|
2681
|
+
this.name = "CreateBackupFailedError";
|
|
2682
2682
|
}
|
|
2683
|
-
static code = "
|
|
2683
|
+
static code = "CREATE_BACKUP_FAILED";
|
|
2684
2684
|
static statusCode = 500;
|
|
2685
|
-
static description = `Failed to
|
|
2685
|
+
static description = `Failed to create backup: {message}`;
|
|
2686
2686
|
}
|
|
2687
|
-
class
|
|
2687
|
+
class BackupFailedError extends Error {
|
|
2688
2688
|
constructor(body) {
|
|
2689
2689
|
super(
|
|
2690
|
-
`
|
|
2690
|
+
`BACKUP_FAILED: ${body.message}`
|
|
2691
2691
|
);
|
|
2692
2692
|
this.body = body;
|
|
2693
|
-
this.name = "
|
|
2693
|
+
this.name = "BackupFailedError";
|
|
2694
2694
|
}
|
|
2695
|
-
static code = "
|
|
2695
|
+
static code = "BACKUP_FAILED";
|
|
2696
2696
|
static statusCode = 500;
|
|
2697
|
-
static description = `
|
|
2697
|
+
static description = `Backup failed: {message}`;
|
|
2698
2698
|
}
|
|
2699
|
-
class
|
|
2699
|
+
class DeploymentFailedError extends Error {
|
|
2700
2700
|
constructor(body) {
|
|
2701
2701
|
super(
|
|
2702
|
-
`
|
|
2702
|
+
`DEPLOYMENT_FAILED: ${body.message}`
|
|
2703
2703
|
);
|
|
2704
2704
|
this.body = body;
|
|
2705
|
-
this.name = "
|
|
2705
|
+
this.name = "DeploymentFailedError";
|
|
2706
2706
|
}
|
|
2707
|
-
static code = "
|
|
2707
|
+
static code = "DEPLOYMENT_FAILED";
|
|
2708
2708
|
static statusCode = 500;
|
|
2709
|
-
static description = `
|
|
2709
|
+
static description = `Deployment failed: {message}`;
|
|
2710
2710
|
}
|
|
2711
|
-
class
|
|
2711
|
+
class InvalidDeploymentRequestError extends Error {
|
|
2712
2712
|
constructor(body) {
|
|
2713
2713
|
super(
|
|
2714
|
-
`
|
|
2714
|
+
`INVALID_DEPLOYMENT_REQUEST: ${body.message}`
|
|
2715
2715
|
);
|
|
2716
2716
|
this.body = body;
|
|
2717
|
-
this.name = "
|
|
2717
|
+
this.name = "InvalidDeploymentRequestError";
|
|
2718
2718
|
}
|
|
2719
|
-
static code = "
|
|
2720
|
-
static statusCode =
|
|
2721
|
-
static description = `
|
|
2719
|
+
static code = "INVALID_DEPLOYMENT_REQUEST";
|
|
2720
|
+
static statusCode = 400;
|
|
2721
|
+
static description = `Invalid deployment request: {message}`;
|
|
2722
2722
|
}
|
|
2723
|
-
class
|
|
2723
|
+
class ProjectNotFoundError extends Error {
|
|
2724
2724
|
constructor(body) {
|
|
2725
2725
|
super(
|
|
2726
|
-
`
|
|
2726
|
+
`PROJECT_NOT_FOUND: ${body.message}`
|
|
2727
2727
|
);
|
|
2728
2728
|
this.body = body;
|
|
2729
|
-
this.name = "
|
|
2729
|
+
this.name = "ProjectNotFoundError";
|
|
2730
2730
|
}
|
|
2731
|
-
static code = "
|
|
2732
|
-
static statusCode =
|
|
2733
|
-
static description = `
|
|
2731
|
+
static code = "PROJECT_NOT_FOUND";
|
|
2732
|
+
static statusCode = 404;
|
|
2733
|
+
static description = `Project not found: {project_id}`;
|
|
2734
2734
|
}
|
|
2735
2735
|
const FREESTYLE_ERROR_CODE_MAP = {
|
|
2736
2736
|
"GIT_ERROR": GitErrorError,
|
|
@@ -2840,13 +2840,20 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2840
2840
|
"DATABASE_ERROR": DatabaseErrorError,
|
|
2841
2841
|
"DEV_SERVER_NOT_FOUND": DevServerNotFoundError,
|
|
2842
2842
|
"EMPTY_TAG": EmptyTagError,
|
|
2843
|
-
"
|
|
2844
|
-
"
|
|
2845
|
-
"
|
|
2846
|
-
"
|
|
2847
|
-
"
|
|
2848
|
-
"
|
|
2849
|
-
"
|
|
2843
|
+
"BUILD_FAILED": BuildFailedError,
|
|
2844
|
+
"SERVER_DEPLOYMENT_FAILED": ServerDeploymentFailedError,
|
|
2845
|
+
"LOCKFILE_ERROR": LockfileErrorError,
|
|
2846
|
+
"UPLOAD_ERROR": UploadErrorError,
|
|
2847
|
+
"DOMAIN_MAPPING_ERROR": DomainMappingErrorError,
|
|
2848
|
+
"CERTIFICATE_PROVISIONING_ERROR": CertificateProvisioningErrorError,
|
|
2849
|
+
"NO_ENTRYPOINT_FOUND": NoEntrypointFoundError,
|
|
2850
|
+
"ENTRYPOINT_NOT_FOUND": EntrypointNotFoundError,
|
|
2851
|
+
"NO_DOMAIN_OWNERSHIP": NoDomainOwnershipError,
|
|
2852
|
+
"INVALID_DOMAINS": InvalidDomainsError,
|
|
2853
|
+
"WEB_DEPLOYMENT_BAD_REQUEST": WebDeploymentBadRequestError,
|
|
2854
|
+
"DEPLOYMENT_NOT_FOUND": DeploymentNotFoundError,
|
|
2855
|
+
"RESIZE_FAILED": ResizeFailedError,
|
|
2856
|
+
"INTERNAL_RESIZE_VM_NOT_FOUND": InternalResizeVmNotFoundError,
|
|
2850
2857
|
"TRIGGER_ERROR": TriggerErrorError,
|
|
2851
2858
|
"TOKEN_ERROR": TokenErrorError,
|
|
2852
2859
|
"PERMISSION_ERROR": PermissionErrorError,
|
|
@@ -2866,20 +2873,6 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2866
2873
|
"SERIALIZATION_ERROR": SerializationErrorError,
|
|
2867
2874
|
"GIT_INVALID_REQUEST": GitInvalidRequestError,
|
|
2868
2875
|
"REPOSITORY_NOT_FOUND": RepositoryNotFoundError,
|
|
2869
|
-
"EXECUTE_INTERNAL_ERROR": ExecuteInternalErrorError,
|
|
2870
|
-
"EXECUTE_ACCESS_DENIED": ExecuteAccessDeniedError,
|
|
2871
|
-
"LIST_RUNS_FAILED": ListRunsFailedError,
|
|
2872
|
-
"EXECUTION_ERROR": ExecutionErrorError,
|
|
2873
|
-
"CONNECTION_FAILED": ConnectionFailedError,
|
|
2874
|
-
"METADATA_WRITE_FAILED": MetadataWriteFailedError,
|
|
2875
|
-
"NODE_MODULES_INSTALL_FAILED": NodeModulesInstallFailedError,
|
|
2876
|
-
"NODE_MODULES_DOWNLOAD_FAILED": NodeModulesDownloadFailedError,
|
|
2877
|
-
"LOCK_GENERATION_FAILED": LockGenerationFailedError,
|
|
2878
|
-
"WRITE_SCRIPT_FAILED": WriteScriptFailedError,
|
|
2879
|
-
"DIRECTORY_CREATION_FAILED": DirectoryCreationFailedError,
|
|
2880
|
-
"NETWORK_PERMISSIONS_FAILED": NetworkPermissionsFailedError,
|
|
2881
|
-
"LOGGING_FAILED": LoggingFailedError,
|
|
2882
|
-
"RUN_NOT_FOUND": RunNotFoundError,
|
|
2883
2876
|
"FAILED_TO_PROVISION_CERTIFICATE": FailedToProvisionCertificateError,
|
|
2884
2877
|
"FAILED_TO_INSERT_DOMAIN_MAPPING": FailedToInsertDomainMappingError,
|
|
2885
2878
|
"PERMISSION_DENIED": PermissionDeniedError,
|
|
@@ -2892,36 +2885,13 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2892
2885
|
"VERIFICATION_NOT_FOUND": VerificationNotFoundError,
|
|
2893
2886
|
"FAILED_TO_CREATE_VERIFICATION_CODE": FailedToCreateVerificationCodeError,
|
|
2894
2887
|
"INVALID_DOMAIN": InvalidDomainError,
|
|
2895
|
-
"CLOUDSTATE_INTERNAL_ERROR": CloudstateInternalErrorError,
|
|
2896
|
-
"CLOUDSTATE_DATABASE_ERROR": CloudstateDatabaseErrorError,
|
|
2897
|
-
"CLOUDSTATE_ACCESS_DENIED": CloudstateAccessDeniedError,
|
|
2898
|
-
"RESTORE_FAILED": RestoreFailedError,
|
|
2899
|
-
"CREATE_BACKUP_FAILED": CreateBackupFailedError,
|
|
2900
|
-
"BACKUP_FAILED": BackupFailedError,
|
|
2901
|
-
"DEPLOYMENT_FAILED": DeploymentFailedError,
|
|
2902
|
-
"INVALID_DEPLOYMENT_REQUEST": InvalidDeploymentRequestError,
|
|
2903
|
-
"PROJECT_NOT_FOUND": ProjectNotFoundError,
|
|
2904
|
-
"UNAUTHORIZED_ERROR": UnauthorizedErrorError,
|
|
2905
|
-
"BRANCH_NAME_EMPTY": BranchNameEmptyError,
|
|
2906
|
-
"BUILD_FAILED": BuildFailedError,
|
|
2907
|
-
"SERVER_DEPLOYMENT_FAILED": ServerDeploymentFailedError,
|
|
2908
|
-
"LOCKFILE_ERROR": LockfileErrorError,
|
|
2909
|
-
"UPLOAD_ERROR": UploadErrorError,
|
|
2910
|
-
"DOMAIN_MAPPING_ERROR": DomainMappingErrorError,
|
|
2911
|
-
"CERTIFICATE_PROVISIONING_ERROR": CertificateProvisioningErrorError,
|
|
2912
|
-
"NO_ENTRYPOINT_FOUND": NoEntrypointFoundError,
|
|
2913
|
-
"ENTRYPOINT_NOT_FOUND": EntrypointNotFoundError,
|
|
2914
|
-
"NO_DOMAIN_OWNERSHIP": NoDomainOwnershipError,
|
|
2915
|
-
"INVALID_DOMAINS": InvalidDomainsError,
|
|
2916
|
-
"WEB_DEPLOYMENT_BAD_REQUEST": WebDeploymentBadRequestError,
|
|
2917
|
-
"DEPLOYMENT_NOT_FOUND": DeploymentNotFoundError,
|
|
2918
|
-
"RESIZE_FAILED": ResizeFailedError,
|
|
2919
|
-
"INTERNAL_RESIZE_VM_NOT_FOUND": InternalResizeVmNotFoundError,
|
|
2920
2888
|
"DOMAIN_ALREADY_EXISTS": DomainAlreadyExistsError,
|
|
2921
2889
|
"FAILED_TO_INSERT_OWNERSHIP": FailedToInsertOwnershipError,
|
|
2922
2890
|
"FAILED_REMOVE_DOMAIN_MAPPING": FailedRemoveDomainMappingError,
|
|
2923
2891
|
"FAILED_PERMISSIONS_CHECK": FailedPermissionsCheckError,
|
|
2924
2892
|
"FAILED_TO_CHECK_DOMAIN_MAPPING_PERMISSIONS": FailedToCheckDomainMappingPermissionsError,
|
|
2893
|
+
"BRANCH_NAME_EMPTY": BranchNameEmptyError,
|
|
2894
|
+
"ANYHOW": AnyhowError,
|
|
2925
2895
|
"PERMISSION_ALREADY_EXISTS": PermissionAlreadyExistsError,
|
|
2926
2896
|
"LIST_TOKENS_FAILED": ListTokensFailedError,
|
|
2927
2897
|
"REVOKE_TOKEN_FAILED": RevokeTokenFailedError,
|
|
@@ -2959,7 +2929,37 @@ const FREESTYLE_ERROR_CODE_MAP = {
|
|
|
2959
2929
|
"EXECUTION_FAILED": ExecutionFailedError,
|
|
2960
2930
|
"REQUEST_FAILED": RequestFailedError,
|
|
2961
2931
|
"DEV_SERVER_FILE_NOT_FOUND": DevServerFileNotFoundError,
|
|
2962
|
-
"DEV_SERVER_INVALID_REQUEST": DevServerInvalidRequestError
|
|
2932
|
+
"DEV_SERVER_INVALID_REQUEST": DevServerInvalidRequestError,
|
|
2933
|
+
"UNAUTHORIZED_ERROR": UnauthorizedErrorError,
|
|
2934
|
+
"EXECUTE_INTERNAL_ERROR": ExecuteInternalErrorError,
|
|
2935
|
+
"EXECUTE_ACCESS_DENIED": ExecuteAccessDeniedError,
|
|
2936
|
+
"LIST_RUNS_FAILED": ListRunsFailedError,
|
|
2937
|
+
"EXECUTION_ERROR": ExecutionErrorError,
|
|
2938
|
+
"CONNECTION_FAILED": ConnectionFailedError,
|
|
2939
|
+
"METADATA_WRITE_FAILED": MetadataWriteFailedError,
|
|
2940
|
+
"NODE_MODULES_INSTALL_FAILED": NodeModulesInstallFailedError,
|
|
2941
|
+
"NODE_MODULES_DOWNLOAD_FAILED": NodeModulesDownloadFailedError,
|
|
2942
|
+
"LOCK_GENERATION_FAILED": LockGenerationFailedError,
|
|
2943
|
+
"WRITE_SCRIPT_FAILED": WriteScriptFailedError,
|
|
2944
|
+
"DIRECTORY_CREATION_FAILED": DirectoryCreationFailedError,
|
|
2945
|
+
"NETWORK_PERMISSIONS_FAILED": NetworkPermissionsFailedError,
|
|
2946
|
+
"LOGGING_FAILED": LoggingFailedError,
|
|
2947
|
+
"RUN_NOT_FOUND": RunNotFoundError,
|
|
2948
|
+
"OBSERVABILITY_DATABASE_ERROR": ObservabilityDatabaseErrorError,
|
|
2949
|
+
"OBSERVABILITY_ACCESS_DENIED": ObservabilityAccessDeniedError,
|
|
2950
|
+
"PARSE_LOGS_FAILED": ParseLogsFailedError,
|
|
2951
|
+
"RETRIEVE_LOGS_FAILED": RetrieveLogsFailedError,
|
|
2952
|
+
"INVALID_QUERY": InvalidQueryError,
|
|
2953
|
+
"LOGS_NOT_FOUND": LogsNotFoundError,
|
|
2954
|
+
"CLOUDSTATE_INTERNAL_ERROR": CloudstateInternalErrorError,
|
|
2955
|
+
"CLOUDSTATE_DATABASE_ERROR": CloudstateDatabaseErrorError,
|
|
2956
|
+
"CLOUDSTATE_ACCESS_DENIED": CloudstateAccessDeniedError,
|
|
2957
|
+
"RESTORE_FAILED": RestoreFailedError,
|
|
2958
|
+
"CREATE_BACKUP_FAILED": CreateBackupFailedError,
|
|
2959
|
+
"BACKUP_FAILED": BackupFailedError,
|
|
2960
|
+
"DEPLOYMENT_FAILED": DeploymentFailedError,
|
|
2961
|
+
"INVALID_DEPLOYMENT_REQUEST": InvalidDeploymentRequestError,
|
|
2962
|
+
"PROJECT_NOT_FOUND": ProjectNotFoundError
|
|
2963
2963
|
};
|
|
2964
2964
|
|
|
2965
2965
|
var errors = /*#__PURE__*/Object.freeze({
|
|
@@ -3391,13 +3391,10 @@ class DomainMappingsNamespace {
|
|
|
3391
3391
|
/**
|
|
3392
3392
|
* Create a domain mapping to a deployment.
|
|
3393
3393
|
*/
|
|
3394
|
-
async create({
|
|
3395
|
-
domain,
|
|
3396
|
-
deploymentId
|
|
3397
|
-
}) {
|
|
3394
|
+
async create(mapping) {
|
|
3398
3395
|
return this.apiClient.post("/domains/v1/mappings/{domain}", {
|
|
3399
|
-
params: { domain },
|
|
3400
|
-
body:
|
|
3396
|
+
params: { domain: mapping.domain },
|
|
3397
|
+
body: mapping
|
|
3401
3398
|
});
|
|
3402
3399
|
}
|
|
3403
3400
|
/**
|
|
@@ -5578,7 +5575,10 @@ async function processSpecTree(spec) {
|
|
|
5578
5575
|
return spec;
|
|
5579
5576
|
}
|
|
5580
5577
|
function collectSpecBuilders(spec) {
|
|
5581
|
-
|
|
5578
|
+
let builders = {};
|
|
5579
|
+
if (spec.raw.snapshot instanceof VmSpec) {
|
|
5580
|
+
builders = collectSpecBuilders(spec.raw.snapshot);
|
|
5581
|
+
}
|
|
5582
5582
|
if (spec.with) {
|
|
5583
5583
|
for (const [key, builder] of Object.entries(spec.with)) {
|
|
5584
5584
|
if (builder) {
|
|
@@ -5586,14 +5586,6 @@ function collectSpecBuilders(spec) {
|
|
|
5586
5586
|
}
|
|
5587
5587
|
}
|
|
5588
5588
|
}
|
|
5589
|
-
if (spec.raw.snapshot instanceof VmSpec) {
|
|
5590
|
-
const nestedBuilders = collectSpecBuilders(spec.raw.snapshot);
|
|
5591
|
-
for (const [key, builder] of Object.entries(nestedBuilders)) {
|
|
5592
|
-
if (!builders[key] && builder) {
|
|
5593
|
-
builders[key] = builder;
|
|
5594
|
-
}
|
|
5595
|
-
}
|
|
5596
|
-
}
|
|
5597
5589
|
return builders;
|
|
5598
5590
|
}
|
|
5599
5591
|
class VmsNamespace {
|
|
@@ -5641,7 +5633,13 @@ class VmsNamespace {
|
|
|
5641
5633
|
options.with = spec.with;
|
|
5642
5634
|
}
|
|
5643
5635
|
}
|
|
5644
|
-
const
|
|
5636
|
+
const specBuilders = options.spec instanceof VmSpec ? collectSpecBuilders(options.spec) : void 0;
|
|
5637
|
+
const templateBuilders = options.template instanceof VmTemplate ? options.template.with : void 0;
|
|
5638
|
+
const builders = {
|
|
5639
|
+
...templateBuilders || {},
|
|
5640
|
+
...specBuilders || {},
|
|
5641
|
+
...options.with || {}
|
|
5642
|
+
};
|
|
5645
5643
|
const { with: _, ...baseConfig } = options;
|
|
5646
5644
|
let config = baseConfig;
|
|
5647
5645
|
if (config.template instanceof VmTemplate) {
|