@distilled.cloud/vanta 1.0.0-rc.20 → 1.0.0-rc.22

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.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +9 -4
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/errors.d.ts +7 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +1 -1
  10. package/lib/index.d.ts +2 -3
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +0 -1
  13. package/lib/pagination.d.ts.map +1 -1
  14. package/lib/protocol.d.ts +9 -12
  15. package/lib/protocol.d.ts.map +1 -1
  16. package/lib/retry.d.ts.map +1 -1
  17. package/lib/services/auditor_api.d.ts +189 -6
  18. package/lib/services/auditor_api.d.ts.map +1 -1
  19. package/lib/services/auditor_api.js +81 -70
  20. package/lib/services/auditor_api.js.map +1 -1
  21. package/lib/services/build_integrations.d.ts.map +1 -1
  22. package/lib/services/build_integrations.js +45 -45
  23. package/lib/services/build_integrations.js.map +1 -1
  24. package/lib/services/index.d.ts.map +1 -1
  25. package/lib/services/manage_vanta.d.ts +637 -13
  26. package/lib/services/manage_vanta.d.ts.map +1 -1
  27. package/lib/services/manage_vanta.js +422 -401
  28. package/lib/services/manage_vanta.js.map +1 -1
  29. package/lib/services/webhooks.d.ts +39 -0
  30. package/lib/services/webhooks.d.ts.map +1 -1
  31. package/lib/services/webhooks.js +38 -34
  32. package/lib/services/webhooks.js.map +1 -1
  33. package/lib/services.lazy/auditor_api.js +3 -2
  34. package/lib/services.lazy/build_integrations.js +1 -1
  35. package/lib/services.lazy/manage_vanta.js +3 -3
  36. package/lib/services.lazy/webhooks.js +2 -2
  37. package/lib/traits.d.ts.map +1 -1
  38. package/package.json +5 -6
  39. package/src/credentials.ts +26 -20
  40. package/src/errors.ts +9 -1
  41. package/src/index.ts +2 -3
  42. package/src/protocol.ts +13 -23
  43. package/src/services/auditor_api.ts +1134 -625
  44. package/src/services/build_integrations.ts +51 -26
  45. package/src/services/manage_vanta.ts +4897 -3134
  46. package/src/services/webhooks.ts +331 -171
  47. package/lib/index.lazy.js +0 -7
  48. package/lib/index.lazy.js.map +0 -1
@@ -3,7 +3,7 @@ import * as API from "@distilled.cloud/core/api";
3
3
  import * as S from "@distilled.cloud/core/schema-lite";
4
4
  import * as __L from "@distilled.cloud/core/schema-lite";
5
5
  import type * as Redacted from "effect/Redacted";
6
- import { UnknownVantaError } from "../errors.ts";
6
+ import { VantaServiceErrors } from "../errors.ts";
7
7
  import { VantaProtocol, type VantaOpError, type VantaOpContext } from "../protocol.ts";
8
8
  import * as Retry from "../retry.ts";
9
9
  import * as T from "../traits.ts";
@@ -1529,7 +1529,8 @@ export const getApiEndpointVulnerabilityConnectors: API.OperationMethod<
1529
1529
  > = /*@__PURE__*/ API.make(() => ({
1530
1530
  input: __S(0, __c0, 0) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsRequest>,
1531
1531
  output: __S(1, __c0, 1) as any as S.Schema<GetApiEndpointVulnerabilityConnectorsResponse>,
1532
- errors: [UnknownVantaError],
1532
+ errors: [],
1533
+ serviceErrors: VantaServiceErrors,
1533
1534
  protocol: VantaProtocol,
1534
1535
  retry: Retry.Retry,
1535
1536
  telemetry: TELEMETRY,
@@ -1546,7 +1547,8 @@ export const getBackgroundCheckConnector: API.OperationMethod<
1546
1547
  > = /*@__PURE__*/ API.make(() => ({
1547
1548
  input: __S(32, __c2, 0) as any as S.Schema<GetBackgroundCheckConnectorRequest>,
1548
1549
  output: __S(33, __c2, 1) as any as S.Schema<GetBackgroundCheckConnectorResponse>,
1549
- errors: [UnknownVantaError],
1550
+ errors: [],
1551
+ serviceErrors: VantaServiceErrors,
1550
1552
  protocol: VantaProtocol,
1551
1553
  retry: Retry.Retry,
1552
1554
  telemetry: TELEMETRY,
@@ -1563,7 +1565,8 @@ export const getCustomResource: API.OperationMethod<
1563
1565
  > = /*@__PURE__*/ API.make(() => ({
1564
1566
  input: __S(272, __c17, 0) as any as S.Schema<GetCustomResourceRequest>,
1565
1567
  output: __S(273, __c17, 1) as any as S.Schema<GetCustomResourceResponse>,
1566
- errors: [UnknownVantaError],
1568
+ errors: [],
1569
+ serviceErrors: VantaServiceErrors,
1567
1570
  protocol: VantaProtocol,
1568
1571
  retry: Retry.Retry,
1569
1572
  telemetry: TELEMETRY,
@@ -1580,7 +1583,8 @@ export const getMacosUserComputer: API.OperationMethod<
1580
1583
  > = /*@__PURE__*/ API.make(() => ({
1581
1584
  input: __S(384, __c24, 0) as any as S.Schema<GetMacosUserComputerRequest>,
1582
1585
  output: __S(385, __c24, 1) as any as S.Schema<GetMacosUserComputerResponse>,
1583
- errors: [UnknownVantaError],
1586
+ errors: [],
1587
+ serviceErrors: VantaServiceErrors,
1584
1588
  protocol: VantaProtocol,
1585
1589
  retry: Retry.Retry,
1586
1590
  telemetry: TELEMETRY,
@@ -1597,7 +1601,8 @@ export const getPackageVulnerabilityConnectors: API.OperationMethod<
1597
1601
  > = /*@__PURE__*/ API.make(() => ({
1598
1602
  input: __S(432, __c27, 0) as any as S.Schema<GetPackageVulnerabilityConnectorsRequest>,
1599
1603
  output: __S(433, __c27, 1) as any as S.Schema<GetPackageVulnerabilityConnectorsResponse>,
1600
- errors: [UnknownVantaError],
1604
+ errors: [],
1605
+ serviceErrors: VantaServiceErrors,
1601
1606
  protocol: VantaProtocol,
1602
1607
  retry: Retry.Retry,
1603
1608
  telemetry: TELEMETRY,
@@ -1614,7 +1619,8 @@ export const getSecret: API.OperationMethod<
1614
1619
  > = /*@__PURE__*/ API.make(() => ({
1615
1620
  input: __S(464, __c29, 0) as any as S.Schema<GetSecretRequest>,
1616
1621
  output: __S(465, __c29, 1) as any as S.Schema<GetSecretResponse>,
1617
- errors: [UnknownVantaError],
1622
+ errors: [],
1623
+ serviceErrors: VantaServiceErrors,
1618
1624
  protocol: VantaProtocol,
1619
1625
  retry: Retry.Retry,
1620
1626
  telemetry: TELEMETRY,
@@ -1631,7 +1637,8 @@ export const getSecurityTask: API.OperationMethod<
1631
1637
  > = /*@__PURE__*/ API.make(() => ({
1632
1638
  input: __S(496, __c31, 0) as any as S.Schema<GetSecurityTaskRequest>,
1633
1639
  output: __S(497, __c31, 1) as any as S.Schema<GetSecurityTaskResponse>,
1634
- errors: [UnknownVantaError],
1640
+ errors: [],
1641
+ serviceErrors: VantaServiceErrors,
1635
1642
  protocol: VantaProtocol,
1636
1643
  retry: Retry.Retry,
1637
1644
  telemetry: TELEMETRY,
@@ -1652,7 +1659,8 @@ export const getStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
1652
1659
  __c34,
1653
1660
  1,
1654
1661
  ) as any as S.Schema<GetStaticAnalysisCodeVulnerabilityConnectorsResponse>,
1655
- errors: [UnknownVantaError],
1662
+ errors: [],
1663
+ serviceErrors: VantaServiceErrors,
1656
1664
  protocol: VantaProtocol,
1657
1665
  retry: Retry.Retry,
1658
1666
  telemetry: TELEMETRY,
@@ -1669,7 +1677,8 @@ export const getUserAccount: API.OperationMethod<
1669
1677
  > = /*@__PURE__*/ API.make(() => ({
1670
1678
  input: __S(576, __c36, 0) as any as S.Schema<GetUserAccountRequest>,
1671
1679
  output: __S(577, __c36, 1) as any as S.Schema<GetUserAccountResponse>,
1672
- errors: [UnknownVantaError],
1680
+ errors: [],
1681
+ serviceErrors: VantaServiceErrors,
1673
1682
  protocol: VantaProtocol,
1674
1683
  retry: Retry.Retry,
1675
1684
  telemetry: TELEMETRY,
@@ -1686,7 +1695,8 @@ export const getUserSecurityTrainingStatus: API.OperationMethod<
1686
1695
  > = /*@__PURE__*/ API.make(() => ({
1687
1696
  input: __S(624, __c39, 0) as any as S.Schema<GetUserSecurityTrainingStatusRequest>,
1688
1697
  output: __S(625, __c39, 1) as any as S.Schema<GetUserSecurityTrainingStatusResponse>,
1689
- errors: [UnknownVantaError],
1698
+ errors: [],
1699
+ serviceErrors: VantaServiceErrors,
1690
1700
  protocol: VantaProtocol,
1691
1701
  retry: Retry.Retry,
1692
1702
  telemetry: TELEMETRY,
@@ -1703,7 +1713,8 @@ export const getVulnerableComponent: API.OperationMethod<
1703
1713
  > = /*@__PURE__*/ API.make(() => ({
1704
1714
  input: __S(64, __c4, 0) as any as S.Schema<GetVulnerableComponentRequest>,
1705
1715
  output: __S(65, __c4, 1) as any as S.Schema<GetVulnerableComponentResponse>,
1706
- errors: [UnknownVantaError],
1716
+ errors: [],
1717
+ serviceErrors: VantaServiceErrors,
1707
1718
  protocol: VantaProtocol,
1708
1719
  retry: Retry.Retry,
1709
1720
  telemetry: TELEMETRY,
@@ -1720,7 +1731,8 @@ export const getWindowsUserComputer: API.OperationMethod<
1720
1731
  > = /*@__PURE__*/ API.make(() => ({
1721
1732
  input: __S(96, __c6, 0) as any as S.Schema<GetWindowsUserComputerRequest>,
1722
1733
  output: __S(97, __c6, 1) as any as S.Schema<GetWindowsUserComputerResponse>,
1723
- errors: [UnknownVantaError],
1734
+ errors: [],
1735
+ serviceErrors: VantaServiceErrors,
1724
1736
  protocol: VantaProtocol,
1725
1737
  retry: Retry.Retry,
1726
1738
  telemetry: TELEMETRY,
@@ -1737,7 +1749,8 @@ export const putApiEndpointVulnerabilityConnectors: API.OperationMethod<
1737
1749
  > = /*@__PURE__*/ API.make(() => ({
1738
1750
  input: __S(128, __c8, 0) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsRequest>,
1739
1751
  output: __S(144, __c9, 0) as any as S.Schema<PutApiEndpointVulnerabilityConnectorsResponse>,
1740
- errors: [UnknownVantaError],
1752
+ errors: [],
1753
+ serviceErrors: VantaServiceErrors,
1741
1754
  protocol: VantaProtocol,
1742
1755
  retry: Retry.Retry,
1743
1756
  telemetry: TELEMETRY,
@@ -1754,7 +1767,8 @@ export const putBackgroundCheckConnector: API.OperationMethod<
1754
1767
  > = /*@__PURE__*/ API.make(() => ({
1755
1768
  input: __S(160, __c10, 0) as any as S.Schema<PutBackgroundCheckConnectorRequest>,
1756
1769
  output: __S(144, __c9, 0) as any as S.Schema<PutBackgroundCheckConnectorResponse>,
1757
- errors: [UnknownVantaError],
1770
+ errors: [],
1771
+ serviceErrors: VantaServiceErrors,
1758
1772
  protocol: VantaProtocol,
1759
1773
  retry: Retry.Retry,
1760
1774
  telemetry: TELEMETRY,
@@ -1771,7 +1785,8 @@ export const putCustomResource: API.OperationMethod<
1771
1785
  > = /*@__PURE__*/ API.make(() => ({
1772
1786
  input: __S(176, __c11, 0) as any as S.Schema<PutCustomResourceRequest>,
1773
1787
  output: __S(144, __c9, 0) as any as S.Schema<PutCustomResourceResponse>,
1774
- errors: [UnknownVantaError],
1788
+ errors: [],
1789
+ serviceErrors: VantaServiceErrors,
1775
1790
  protocol: VantaProtocol,
1776
1791
  retry: Retry.Retry,
1777
1792
  telemetry: TELEMETRY,
@@ -1788,7 +1803,8 @@ export const putMacosUserComputer: API.OperationMethod<
1788
1803
  > = /*@__PURE__*/ API.make(() => ({
1789
1804
  input: __S(192, __c12, 0) as any as S.Schema<PutMacosUserComputerRequest>,
1790
1805
  output: __S(144, __c9, 0) as any as S.Schema<PutMacosUserComputerResponse>,
1791
- errors: [UnknownVantaError],
1806
+ errors: [],
1807
+ serviceErrors: VantaServiceErrors,
1792
1808
  protocol: VantaProtocol,
1793
1809
  retry: Retry.Retry,
1794
1810
  telemetry: TELEMETRY,
@@ -1805,7 +1821,8 @@ export const putPackageVulnerabilityConnectors: API.OperationMethod<
1805
1821
  > = /*@__PURE__*/ API.make(() => ({
1806
1822
  input: __S(208, __c13, 0) as any as S.Schema<PutPackageVulnerabilityConnectorsRequest>,
1807
1823
  output: __S(144, __c9, 0) as any as S.Schema<PutPackageVulnerabilityConnectorsResponse>,
1808
- errors: [UnknownVantaError],
1824
+ errors: [],
1825
+ serviceErrors: VantaServiceErrors,
1809
1826
  protocol: VantaProtocol,
1810
1827
  retry: Retry.Retry,
1811
1828
  telemetry: TELEMETRY,
@@ -1822,7 +1839,8 @@ export const putSecret: API.OperationMethod<
1822
1839
  > = /*@__PURE__*/ API.make(() => ({
1823
1840
  input: __S(224, __c14, 0) as any as S.Schema<PutSecretRequest>,
1824
1841
  output: __S(144, __c9, 0) as any as S.Schema<PutSecretResponse>,
1825
- errors: [UnknownVantaError],
1842
+ errors: [],
1843
+ serviceErrors: VantaServiceErrors,
1826
1844
  protocol: VantaProtocol,
1827
1845
  retry: Retry.Retry,
1828
1846
  telemetry: TELEMETRY,
@@ -1839,7 +1857,8 @@ export const putSecurityTask: API.OperationMethod<
1839
1857
  > = /*@__PURE__*/ API.make(() => ({
1840
1858
  input: __S(240, __c15, 0) as any as S.Schema<PutSecurityTaskRequest>,
1841
1859
  output: __S(144, __c9, 0) as any as S.Schema<PutSecurityTaskResponse>,
1842
- errors: [UnknownVantaError],
1860
+ errors: [],
1861
+ serviceErrors: VantaServiceErrors,
1843
1862
  protocol: VantaProtocol,
1844
1863
  retry: Retry.Retry,
1845
1864
  telemetry: TELEMETRY,
@@ -1860,7 +1879,8 @@ export const putStaticAnalysisCodeVulnerabilityConnectors: API.OperationMethod<
1860
1879
  __c9,
1861
1880
  0,
1862
1881
  ) as any as S.Schema<PutStaticAnalysisCodeVulnerabilityConnectorsResponse>,
1863
- errors: [UnknownVantaError],
1882
+ errors: [],
1883
+ serviceErrors: VantaServiceErrors,
1864
1884
  protocol: VantaProtocol,
1865
1885
  retry: Retry.Retry,
1866
1886
  telemetry: TELEMETRY,
@@ -1877,7 +1897,8 @@ export const putUserAccount: API.OperationMethod<
1877
1897
  > = /*@__PURE__*/ API.make(() => ({
1878
1898
  input: __S(304, __c19, 0) as any as S.Schema<PutUserAccountRequest>,
1879
1899
  output: __S(144, __c9, 0) as any as S.Schema<PutUserAccountResponse>,
1880
- errors: [UnknownVantaError],
1900
+ errors: [],
1901
+ serviceErrors: VantaServiceErrors,
1881
1902
  protocol: VantaProtocol,
1882
1903
  retry: Retry.Retry,
1883
1904
  telemetry: TELEMETRY,
@@ -1894,7 +1915,8 @@ export const putUserSecurityTrainingStatus: API.OperationMethod<
1894
1915
  > = /*@__PURE__*/ API.make(() => ({
1895
1916
  input: __S(320, __c20, 0) as any as S.Schema<PutUserSecurityTrainingStatusRequest>,
1896
1917
  output: __S(144, __c9, 0) as any as S.Schema<PutUserSecurityTrainingStatusResponse>,
1897
- errors: [UnknownVantaError],
1918
+ errors: [],
1919
+ serviceErrors: VantaServiceErrors,
1898
1920
  protocol: VantaProtocol,
1899
1921
  retry: Retry.Retry,
1900
1922
  telemetry: TELEMETRY,
@@ -1911,7 +1933,8 @@ export const putVulnerableComponent: API.OperationMethod<
1911
1933
  > = /*@__PURE__*/ API.make(() => ({
1912
1934
  input: __S(336, __c21, 0) as any as S.Schema<PutVulnerableComponentRequest>,
1913
1935
  output: __S(144, __c9, 0) as any as S.Schema<PutVulnerableComponentResponse>,
1914
- errors: [UnknownVantaError],
1936
+ errors: [],
1937
+ serviceErrors: VantaServiceErrors,
1915
1938
  protocol: VantaProtocol,
1916
1939
  retry: Retry.Retry,
1917
1940
  telemetry: TELEMETRY,
@@ -1928,7 +1951,8 @@ export const putWindowsUserComputer: API.OperationMethod<
1928
1951
  > = /*@__PURE__*/ API.make(() => ({
1929
1952
  input: __S(352, __c22, 0) as any as S.Schema<PutWindowsUserComputerRequest>,
1930
1953
  output: __S(144, __c9, 0) as any as S.Schema<PutWindowsUserComputerResponse>,
1931
- errors: [UnknownVantaError],
1954
+ errors: [],
1955
+ serviceErrors: VantaServiceErrors,
1932
1956
  protocol: VantaProtocol,
1933
1957
  retry: Retry.Retry,
1934
1958
  telemetry: TELEMETRY,
@@ -1945,7 +1969,8 @@ export const uploadFileForDocument: API.OperationMethod<
1945
1969
  > = /*@__PURE__*/ API.make(() => ({
1946
1970
  input: __S(368, __c23, 0) as any as S.Schema<UploadFileForDocumentRequest>,
1947
1971
  output: __S(370, __c23, 2) as any as S.Schema<UploadedFileT>,
1948
- errors: [UnknownVantaError],
1972
+ errors: [],
1973
+ serviceErrors: VantaServiceErrors,
1949
1974
  protocol: VantaProtocol,
1950
1975
  retry: Retry.Retry,
1951
1976
  telemetry: TELEMETRY,