@sphereon/ssi-sdk.kms-rest-client 0.34.1-feature.IDK.11.50 → 0.34.1-feature.IDK.11.51
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/dist/index.cjs +34 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +52 -52
- package/dist/index.d.ts +52 -52
- package/dist/index.js +34 -34
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/agent/KmsRestClient.ts +54 -54
- package/src/types/IKmsRestClient.ts +34 -34
package/dist/index.cjs
CHANGED
|
@@ -1598,23 +1598,23 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1598
1598
|
__name(this, "KmsRestClient");
|
|
1599
1599
|
}
|
|
1600
1600
|
methods = {
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1601
|
+
kmsClientGetKey: this.kmsClientGetKey.bind(this),
|
|
1602
|
+
kmsClientListKeys: this.kmsClientListKeys.bind(this),
|
|
1603
|
+
kmsClientStoreKey: this.kmsClientStoreKey.bind(this),
|
|
1604
|
+
kmsClientGenerateKey: this.kmsClientGenerateKey.bind(this),
|
|
1605
|
+
kmsClientDeleteKey: this.kmsClientDeleteKey.bind(this),
|
|
1606
|
+
kmsClientGetKeyProvider: this.kmsClientGetKeyProvider.bind(this),
|
|
1607
|
+
kmsClientListKeyProviders: this.kmsClientListKeyProviders.bind(this),
|
|
1608
|
+
kmsClientProviderListKeys: this.kmsClientProviderListKeys.bind(this),
|
|
1609
|
+
kmsClientProviderStoreKey: this.kmsClientProviderStoreKey.bind(this),
|
|
1610
|
+
kmsClientProviderGenerateKey: this.kmsClientProviderGenerateKey.bind(this),
|
|
1611
|
+
kmsClientProviderGetKey: this.kmsClientProviderGetKey.bind(this),
|
|
1612
|
+
kmsClientProviderDeleteKey: this.kmsClientProviderDeleteKey.bind(this),
|
|
1613
|
+
kmsClientGetResolver: this.kmsClientGetResolver.bind(this),
|
|
1614
|
+
kmsClientListResolvers: this.kmsClientListResolvers.bind(this),
|
|
1615
|
+
kmsClientResolveKey: this.kmsClientResolveKey.bind(this),
|
|
1616
|
+
kmsClientCreateRawSignature: this.kmsClientCreateRawSignature.bind(this),
|
|
1617
|
+
kmsClientIsValidRawSignature: this.kmsClientIsValidRawSignature.bind(this)
|
|
1618
1618
|
};
|
|
1619
1619
|
agentBaseUrl;
|
|
1620
1620
|
authOpts;
|
|
@@ -1628,7 +1628,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1628
1628
|
return `${baseUrl}${path.startsWith("/") ? path : `/${path}`}`;
|
|
1629
1629
|
}
|
|
1630
1630
|
/** {@inheritDoc IKmsRestClient.kmsGetResolver} */
|
|
1631
|
-
async
|
|
1631
|
+
async kmsClientGetResolver(args) {
|
|
1632
1632
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1633
1633
|
const url = _KmsRestClient.urlWithBase(`/resolvers/${args.resolverId}`, baseUrl);
|
|
1634
1634
|
const response = await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1642,7 +1642,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
1644
|
/** {@inheritDoc IKmsRestClient.kmsListResolvers} */
|
|
1645
|
-
async
|
|
1645
|
+
async kmsClientListResolvers(args) {
|
|
1646
1646
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1647
1647
|
const url = _KmsRestClient.urlWithBase("/resolvers", baseUrl);
|
|
1648
1648
|
const response = await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1656,7 +1656,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
1658
|
/** {@inheritDoc IKmsRestClient.kmsResolveKey} */
|
|
1659
|
-
async
|
|
1659
|
+
async kmsClientResolveKey(args) {
|
|
1660
1660
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1661
1661
|
const url = _KmsRestClient.urlWithBase(`/resolvers/${args.resolverId}/resolve`, baseUrl);
|
|
1662
1662
|
const body = {
|
|
@@ -1680,7 +1680,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
1682
|
/** {@inheritDoc IKmsRestClient.kmsCreateRawSignature} */
|
|
1683
|
-
async
|
|
1683
|
+
async kmsClientCreateRawSignature(args) {
|
|
1684
1684
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1685
1685
|
const url = _KmsRestClient.urlWithBase(`/signatures/raw`, baseUrl);
|
|
1686
1686
|
const body = {
|
|
@@ -1702,7 +1702,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
/** {@inheritDoc IKmsRestClient.kmsIsValidRawSignature} */
|
|
1705
|
-
async
|
|
1705
|
+
async kmsClientIsValidRawSignature(args) {
|
|
1706
1706
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1707
1707
|
const url = _KmsRestClient.urlWithBase(`/signatures/raw/verify`, baseUrl);
|
|
1708
1708
|
const body = {
|
|
@@ -1725,7 +1725,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
1727
1727
|
/** {@inheritDoc IKmsRestClient.kmsGetKey} */
|
|
1728
|
-
async
|
|
1728
|
+
async kmsClientGetKey(args) {
|
|
1729
1729
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1730
1730
|
const url = _KmsRestClient.urlWithBase(`/keys/${args.aliasOrKid}`, baseUrl);
|
|
1731
1731
|
const response = await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1739,7 +1739,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
1741
|
/** {@inheritDoc IKmsRestClient.kmsListKeys} */
|
|
1742
|
-
async
|
|
1742
|
+
async kmsClientListKeys(args) {
|
|
1743
1743
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1744
1744
|
const url = this.addSearchParams(_KmsRestClient.urlWithBase("/keys", baseUrl), {
|
|
1745
1745
|
...args.providerId && {
|
|
@@ -1758,7 +1758,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
1760
|
/** {@inheritDoc IKmsRestClient.kmsStoreKey} */
|
|
1761
|
-
async
|
|
1761
|
+
async kmsClientStoreKey(args) {
|
|
1762
1762
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1763
1763
|
const url = _KmsRestClient.urlWithBase(`/keys`, baseUrl);
|
|
1764
1764
|
const body = {
|
|
@@ -1780,7 +1780,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
/** {@inheritDoc IKmsRestClient.kmsGenerateKey} */
|
|
1783
|
-
async
|
|
1783
|
+
async kmsClientGenerateKey(args) {
|
|
1784
1784
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1785
1785
|
const url = _KmsRestClient.urlWithBase(`/keys/generate`, baseUrl);
|
|
1786
1786
|
const body = {
|
|
@@ -1804,7 +1804,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
/** {@inheritDoc IKmsRestClient.kmsDeleteKey} */
|
|
1807
|
-
async
|
|
1807
|
+
async kmsClientDeleteKey(args) {
|
|
1808
1808
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1809
1809
|
const url = _KmsRestClient.urlWithBase(`/keys/${args.aliasOrKid}`, baseUrl);
|
|
1810
1810
|
await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1813,7 +1813,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1813
1813
|
return true;
|
|
1814
1814
|
}
|
|
1815
1815
|
/** {@inheritDoc IKmsRestClient.kmsGetKeyProvider} */
|
|
1816
|
-
async
|
|
1816
|
+
async kmsClientGetKeyProvider(args) {
|
|
1817
1817
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1818
1818
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}`, baseUrl);
|
|
1819
1819
|
const response = await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1827,7 +1827,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
1829
|
/** {@inheritDoc IKmsRestClient.kmsListKeyProviders} */
|
|
1830
|
-
async
|
|
1830
|
+
async kmsClientListKeyProviders(args) {
|
|
1831
1831
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1832
1832
|
const url = _KmsRestClient.urlWithBase("/providers", baseUrl);
|
|
1833
1833
|
const response = await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1841,7 +1841,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
1843
|
/** {@inheritDoc IKmsRestClient.kmsProviderListKeys} */
|
|
1844
|
-
async
|
|
1844
|
+
async kmsClientProviderListKeys(args) {
|
|
1845
1845
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1846
1846
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys`, baseUrl);
|
|
1847
1847
|
const response = await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1855,7 +1855,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
/** {@inheritDoc IKmsRestClient.kmsProviderStoreKey} */
|
|
1858
|
-
async
|
|
1858
|
+
async kmsClientProviderStoreKey(args) {
|
|
1859
1859
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1860
1860
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys`, baseUrl);
|
|
1861
1861
|
const body = {
|
|
@@ -1877,7 +1877,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
/** {@inheritDoc IKmsRestClient.kmsProviderGenerateKey} */
|
|
1880
|
-
async
|
|
1880
|
+
async kmsClientProviderGenerateKey(args) {
|
|
1881
1881
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1882
1882
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys/generate`, baseUrl);
|
|
1883
1883
|
const body = {
|
|
@@ -1900,7 +1900,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
}
|
|
1902
1902
|
/** {@inheritDoc IKmsRestClient.kmsProviderGetKey} */
|
|
1903
|
-
async
|
|
1903
|
+
async kmsClientProviderGetKey(args) {
|
|
1904
1904
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1905
1905
|
const url = _KmsRestClient.urlWithBase(`/providers/${args.providerId}/keys/${args.aliasOrKid}`, baseUrl);
|
|
1906
1906
|
const response = await (0, import_cross_fetch.fetch)(url, {
|
|
@@ -1914,7 +1914,7 @@ var KmsRestClient = class _KmsRestClient {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
1916
1916
|
/** {@inheritDoc IKmsRestClient.kmsProviderDeleteKey} */
|
|
1917
|
-
async
|
|
1917
|
+
async kmsClientProviderDeleteKey(args) {
|
|
1918
1918
|
const baseUrl = this.assertedAgentBaseUrl(args.baseUrl);
|
|
1919
1919
|
const url = _KmsRestClient.urlWithBase(`providers/${args.providerId}/keys/${args.aliasOrKid}`, baseUrl);
|
|
1920
1920
|
await (0, import_cross_fetch.fetch)(url, {
|