@distilled.cloud/vanta 1.0.0-rc.17 → 1.0.0-rc.18
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/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +2 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/auditor_api.d.ts.map +1 -1
- package/lib/services/auditor_api.js +70 -69
- package/lib/services/auditor_api.js.map +1 -1
- package/lib/services/build_integrations.d.ts.map +1 -1
- package/lib/services/build_integrations.js +46 -45
- package/lib/services/build_integrations.js.map +1 -1
- package/lib/services/manage_vanta.d.ts.map +1 -1
- package/lib/services/manage_vanta.js +331 -330
- package/lib/services/manage_vanta.js.map +1 -1
- package/lib/services/webhooks.d.ts.map +1 -1
- package/lib/services/webhooks.js +34 -33
- package/lib/services/webhooks.js.map +1 -1
- package/lib/services.lazy/auditor_api.js +1 -1
- package/lib/services.lazy/build_integrations.js +1 -1
- package/lib/services.lazy/manage_vanta.js +1 -1
- package/lib/services.lazy/webhooks.js +1 -1
- package/package.json +5 -4
- package/src/credentials.ts +4 -2
- package/src/index.ts +2 -2
- package/src/protocol.ts +3 -2
- package/src/services/auditor_api.ts +115 -0
- package/src/services/build_integrations.ts +63 -0
- package/src/services/manage_vanta.ts +507 -0
- package/src/services/webhooks.ts +60 -0
|
@@ -12,6 +12,19 @@ const __s: any[] = [];
|
|
|
12
12
|
|
|
13
13
|
export type { VantaOpError, VantaOpContext };
|
|
14
14
|
|
|
15
|
+
/** Span facts shared by every operation (com.distilled.telemetry#service). */
|
|
16
|
+
const TELEMETRY = {
|
|
17
|
+
system: "vanta-api",
|
|
18
|
+
responseHeaders: [
|
|
19
|
+
{ header: "x-request-id", name: "http.response.header.x-request-id", transform: "list" },
|
|
20
|
+
{ header: "request-id", name: "http.response.header.request-id", transform: "list" },
|
|
21
|
+
],
|
|
22
|
+
prefix: "Vanta",
|
|
23
|
+
service: "BuildIntegrations",
|
|
24
|
+
labels: "vanta",
|
|
25
|
+
propagate: "w3c",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
15
28
|
export interface GetApiEndpointVulnerabilityConnectorsRequest {
|
|
16
29
|
/** Vanta generated identifier for the given resource, and can be found on the developer console page. See the list of registered resources and their IDs on https://app.vanta.com/settings/developer-console/<app_id>?tab=resources */
|
|
17
30
|
resourceId: string;
|
|
@@ -1495,6 +1508,8 @@ export const getApiEndpointVulnerabilityConnectors: API.OperationMethod<
|
|
|
1495
1508
|
errors: [UnknownVantaError],
|
|
1496
1509
|
protocol: VantaProtocol,
|
|
1497
1510
|
retry: Retry.Retry,
|
|
1511
|
+
telemetry: TELEMETRY,
|
|
1512
|
+
span: "GetApiEndpointVulnerabilityConnectors",
|
|
1498
1513
|
}));
|
|
1499
1514
|
|
|
1500
1515
|
export type GetBackgroundCheckConnectorError = VantaOpError;
|
|
@@ -1510,6 +1525,8 @@ export const getBackgroundCheckConnector: API.OperationMethod<
|
|
|
1510
1525
|
errors: [UnknownVantaError],
|
|
1511
1526
|
protocol: VantaProtocol,
|
|
1512
1527
|
retry: Retry.Retry,
|
|
1528
|
+
telemetry: TELEMETRY,
|
|
1529
|
+
span: "GetBackgroundCheckConnector",
|
|
1513
1530
|
}));
|
|
1514
1531
|
|
|
1515
1532
|
export type GetCustomResourceError = VantaOpError;
|
|
@@ -1525,6 +1542,8 @@ export const getCustomResource: API.OperationMethod<
|
|
|
1525
1542
|
errors: [UnknownVantaError],
|
|
1526
1543
|
protocol: VantaProtocol,
|
|
1527
1544
|
retry: Retry.Retry,
|
|
1545
|
+
telemetry: TELEMETRY,
|
|
1546
|
+
span: "GetCustomResource",
|
|
1528
1547
|
}));
|
|
1529
1548
|
|
|
1530
1549
|
export type GetMacosUserComputerError = VantaOpError;
|
|
@@ -1540,6 +1559,8 @@ export const getMacosUserComputer: API.OperationMethod<
|
|
|
1540
1559
|
errors: [UnknownVantaError],
|
|
1541
1560
|
protocol: VantaProtocol,
|
|
1542
1561
|
retry: Retry.Retry,
|
|
1562
|
+
telemetry: TELEMETRY,
|
|
1563
|
+
span: "GetMacosUserComputer",
|
|
1543
1564
|
}));
|
|
1544
1565
|
|
|
1545
1566
|
export type GetPackageVulnerabilityConnectorsError = VantaOpError;
|
|
@@ -1555,6 +1576,8 @@ export const getPackageVulnerabilityConnectors: API.OperationMethod<
|
|
|
1555
1576
|
errors: [UnknownVantaError],
|
|
1556
1577
|
protocol: VantaProtocol,
|
|
1557
1578
|
retry: Retry.Retry,
|
|
1579
|
+
telemetry: TELEMETRY,
|
|
1580
|
+
span: "GetPackageVulnerabilityConnectors",
|
|
1558
1581
|
}));
|
|
1559
1582
|
|
|
1560
1583
|
export type GetSecretError = VantaOpError;
|
|
@@ -1570,6 +1593,8 @@ export const getSecret: API.OperationMethod<
|
|
|
1570
1593
|
errors: [UnknownVantaError],
|
|
1571
1594
|
protocol: VantaProtocol,
|
|
1572
1595
|
retry: Retry.Retry,
|
|
1596
|
+
telemetry: TELEMETRY,
|
|
1597
|
+
span: "GetSecret",
|
|
1573
1598
|
}));
|
|
1574
1599
|
|
|
1575
1600
|
export type GetSecurityTaskError = VantaOpError;
|
|
@@ -1585,6 +1610,8 @@ export const getSecurityTask: API.OperationMethod<
|
|
|
1585
1610
|
errors: [UnknownVantaError],
|
|
1586
1611
|
protocol: VantaProtocol,
|
|
1587
1612
|
retry: Retry.Retry,
|
|
1613
|
+
telemetry: TELEMETRY,
|
|
1614
|
+
span: "GetSecurityTask",
|
|
1588
1615
|
}));
|
|
1589
1616
|
|
|
1590
1617
|
export type GetStaticAnalysisCodeVulnerabilityConnectorsError = VantaOpError;
|
|
@@ -1604,6 +1631,8 @@ export const getStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
|
|
|
1604
1631
|
errors: [UnknownVantaError],
|
|
1605
1632
|
protocol: VantaProtocol,
|
|
1606
1633
|
retry: Retry.Retry,
|
|
1634
|
+
telemetry: TELEMETRY,
|
|
1635
|
+
span: "GetStaticAnalysisCodeVulnerabilityConnectors",
|
|
1607
1636
|
}));
|
|
1608
1637
|
|
|
1609
1638
|
export type GetUserAccountError = VantaOpError;
|
|
@@ -1619,6 +1648,8 @@ export const getUserAccount: API.OperationMethod<
|
|
|
1619
1648
|
errors: [UnknownVantaError],
|
|
1620
1649
|
protocol: VantaProtocol,
|
|
1621
1650
|
retry: Retry.Retry,
|
|
1651
|
+
telemetry: TELEMETRY,
|
|
1652
|
+
span: "GetUserAccount",
|
|
1622
1653
|
}));
|
|
1623
1654
|
|
|
1624
1655
|
export type GetUserSecurityTrainingStatusError = VantaOpError;
|
|
@@ -1634,6 +1665,8 @@ export const getUserSecurityTrainingStatus: API.OperationMethod<
|
|
|
1634
1665
|
errors: [UnknownVantaError],
|
|
1635
1666
|
protocol: VantaProtocol,
|
|
1636
1667
|
retry: Retry.Retry,
|
|
1668
|
+
telemetry: TELEMETRY,
|
|
1669
|
+
span: "GetUserSecurityTrainingStatus",
|
|
1637
1670
|
}));
|
|
1638
1671
|
|
|
1639
1672
|
export type GetVulnerableComponentError = VantaOpError;
|
|
@@ -1649,6 +1682,8 @@ export const getVulnerableComponent: API.OperationMethod<
|
|
|
1649
1682
|
errors: [UnknownVantaError],
|
|
1650
1683
|
protocol: VantaProtocol,
|
|
1651
1684
|
retry: Retry.Retry,
|
|
1685
|
+
telemetry: TELEMETRY,
|
|
1686
|
+
span: "GetVulnerableComponent",
|
|
1652
1687
|
}));
|
|
1653
1688
|
|
|
1654
1689
|
export type GetWindowsUserComputerError = VantaOpError;
|
|
@@ -1664,6 +1699,8 @@ export const getWindowsUserComputer: API.OperationMethod<
|
|
|
1664
1699
|
errors: [UnknownVantaError],
|
|
1665
1700
|
protocol: VantaProtocol,
|
|
1666
1701
|
retry: Retry.Retry,
|
|
1702
|
+
telemetry: TELEMETRY,
|
|
1703
|
+
span: "GetWindowsUserComputer",
|
|
1667
1704
|
}));
|
|
1668
1705
|
|
|
1669
1706
|
export type PutApiEndpointVulnerabilityConnectorsError = VantaOpError;
|
|
@@ -1679,6 +1716,8 @@ export const putApiEndpointVulnerabilityConnectors: API.OperationMethod<
|
|
|
1679
1716
|
errors: [UnknownVantaError],
|
|
1680
1717
|
protocol: VantaProtocol,
|
|
1681
1718
|
retry: Retry.Retry,
|
|
1719
|
+
telemetry: TELEMETRY,
|
|
1720
|
+
span: "PutApiEndpointVulnerabilityConnectors",
|
|
1682
1721
|
}));
|
|
1683
1722
|
|
|
1684
1723
|
export type PutBackgroundCheckConnectorError = VantaOpError;
|
|
@@ -1694,6 +1733,8 @@ export const putBackgroundCheckConnector: API.OperationMethod<
|
|
|
1694
1733
|
errors: [UnknownVantaError],
|
|
1695
1734
|
protocol: VantaProtocol,
|
|
1696
1735
|
retry: Retry.Retry,
|
|
1736
|
+
telemetry: TELEMETRY,
|
|
1737
|
+
span: "PutBackgroundCheckConnector",
|
|
1697
1738
|
}));
|
|
1698
1739
|
|
|
1699
1740
|
export type PutCustomResourceError = VantaOpError;
|
|
@@ -1709,6 +1750,8 @@ export const putCustomResource: API.OperationMethod<
|
|
|
1709
1750
|
errors: [UnknownVantaError],
|
|
1710
1751
|
protocol: VantaProtocol,
|
|
1711
1752
|
retry: Retry.Retry,
|
|
1753
|
+
telemetry: TELEMETRY,
|
|
1754
|
+
span: "PutCustomResource",
|
|
1712
1755
|
}));
|
|
1713
1756
|
|
|
1714
1757
|
export type PutMacosUserComputerError = VantaOpError;
|
|
@@ -1724,6 +1767,8 @@ export const putMacosUserComputer: API.OperationMethod<
|
|
|
1724
1767
|
errors: [UnknownVantaError],
|
|
1725
1768
|
protocol: VantaProtocol,
|
|
1726
1769
|
retry: Retry.Retry,
|
|
1770
|
+
telemetry: TELEMETRY,
|
|
1771
|
+
span: "PutMacosUserComputer",
|
|
1727
1772
|
}));
|
|
1728
1773
|
|
|
1729
1774
|
export type PutPackageVulnerabilityConnectorsError = VantaOpError;
|
|
@@ -1739,6 +1784,8 @@ export const putPackageVulnerabilityConnectors: API.OperationMethod<
|
|
|
1739
1784
|
errors: [UnknownVantaError],
|
|
1740
1785
|
protocol: VantaProtocol,
|
|
1741
1786
|
retry: Retry.Retry,
|
|
1787
|
+
telemetry: TELEMETRY,
|
|
1788
|
+
span: "PutPackageVulnerabilityConnectors",
|
|
1742
1789
|
}));
|
|
1743
1790
|
|
|
1744
1791
|
export type PutSecretError = VantaOpError;
|
|
@@ -1754,6 +1801,8 @@ export const putSecret: API.OperationMethod<
|
|
|
1754
1801
|
errors: [UnknownVantaError],
|
|
1755
1802
|
protocol: VantaProtocol,
|
|
1756
1803
|
retry: Retry.Retry,
|
|
1804
|
+
telemetry: TELEMETRY,
|
|
1805
|
+
span: "PutSecret",
|
|
1757
1806
|
}));
|
|
1758
1807
|
|
|
1759
1808
|
export type PutSecurityTaskError = VantaOpError;
|
|
@@ -1769,6 +1818,8 @@ export const putSecurityTask: API.OperationMethod<
|
|
|
1769
1818
|
errors: [UnknownVantaError],
|
|
1770
1819
|
protocol: VantaProtocol,
|
|
1771
1820
|
retry: Retry.Retry,
|
|
1821
|
+
telemetry: TELEMETRY,
|
|
1822
|
+
span: "PutSecurityTask",
|
|
1772
1823
|
}));
|
|
1773
1824
|
|
|
1774
1825
|
export type PutStaticAnalysisCodeVulnerabilityConnectorsError = VantaOpError;
|
|
@@ -1788,6 +1839,8 @@ export const putStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
|
|
|
1788
1839
|
errors: [UnknownVantaError],
|
|
1789
1840
|
protocol: VantaProtocol,
|
|
1790
1841
|
retry: Retry.Retry,
|
|
1842
|
+
telemetry: TELEMETRY,
|
|
1843
|
+
span: "PutStaticAnalysisCodeVulnerabilityConnectors",
|
|
1791
1844
|
}));
|
|
1792
1845
|
|
|
1793
1846
|
export type PutUserAccountError = VantaOpError;
|
|
@@ -1803,6 +1856,8 @@ export const putUserAccount: API.OperationMethod<
|
|
|
1803
1856
|
errors: [UnknownVantaError],
|
|
1804
1857
|
protocol: VantaProtocol,
|
|
1805
1858
|
retry: Retry.Retry,
|
|
1859
|
+
telemetry: TELEMETRY,
|
|
1860
|
+
span: "PutUserAccount",
|
|
1806
1861
|
}));
|
|
1807
1862
|
|
|
1808
1863
|
export type PutUserSecurityTrainingStatusError = VantaOpError;
|
|
@@ -1818,6 +1873,8 @@ export const putUserSecurityTrainingStatus: API.OperationMethod<
|
|
|
1818
1873
|
errors: [UnknownVantaError],
|
|
1819
1874
|
protocol: VantaProtocol,
|
|
1820
1875
|
retry: Retry.Retry,
|
|
1876
|
+
telemetry: TELEMETRY,
|
|
1877
|
+
span: "PutUserSecurityTrainingStatus",
|
|
1821
1878
|
}));
|
|
1822
1879
|
|
|
1823
1880
|
export type PutVulnerableComponentError = VantaOpError;
|
|
@@ -1833,6 +1890,8 @@ export const putVulnerableComponent: API.OperationMethod<
|
|
|
1833
1890
|
errors: [UnknownVantaError],
|
|
1834
1891
|
protocol: VantaProtocol,
|
|
1835
1892
|
retry: Retry.Retry,
|
|
1893
|
+
telemetry: TELEMETRY,
|
|
1894
|
+
span: "PutVulnerableComponent",
|
|
1836
1895
|
}));
|
|
1837
1896
|
|
|
1838
1897
|
export type PutWindowsUserComputerError = VantaOpError;
|
|
@@ -1848,6 +1907,8 @@ export const putWindowsUserComputer: API.OperationMethod<
|
|
|
1848
1907
|
errors: [UnknownVantaError],
|
|
1849
1908
|
protocol: VantaProtocol,
|
|
1850
1909
|
retry: Retry.Retry,
|
|
1910
|
+
telemetry: TELEMETRY,
|
|
1911
|
+
span: "PutWindowsUserComputer",
|
|
1851
1912
|
}));
|
|
1852
1913
|
|
|
1853
1914
|
export type UploadFileForDocumentError = VantaOpError;
|
|
@@ -1863,6 +1924,8 @@ export const uploadFileForDocument: API.OperationMethod<
|
|
|
1863
1924
|
errors: [UnknownVantaError],
|
|
1864
1925
|
protocol: VantaProtocol,
|
|
1865
1926
|
retry: Retry.Retry,
|
|
1927
|
+
telemetry: TELEMETRY,
|
|
1928
|
+
span: "UploadFileForDocument",
|
|
1866
1929
|
}));
|
|
1867
1930
|
|
|
1868
1931
|
// Schema builders: each runs one schema initializer, on that schema's first use.
|