@turnkey/core 1.4.1 → 1.5.0
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/__clients__/core.d.ts +16 -1
- package/dist/__clients__/core.d.ts.map +1 -1
- package/dist/__clients__/core.js +77 -9
- package/dist/__clients__/core.js.map +1 -1
- package/dist/__clients__/core.mjs +77 -9
- package/dist/__clients__/core.mjs.map +1 -1
- package/dist/__generated__/sdk-client-base.d.ts +4 -0
- package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
- package/dist/__generated__/sdk-client-base.js +66 -0
- package/dist/__generated__/sdk-client-base.js.map +1 -1
- package/dist/__generated__/sdk-client-base.mjs +66 -0
- package/dist/__generated__/sdk-client-base.mjs.map +1 -1
- package/dist/__generated__/version.d.ts +1 -1
- package/dist/__generated__/version.js +1 -1
- package/dist/__generated__/version.mjs +1 -1
- package/dist/__inputs__/public_api.types.d.ts +92 -2
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/__types__/method-types.d.ts +6 -1
- package/dist/__types__/method-types.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1760,6 +1760,39 @@ class TurnkeySDKClientBase {
|
|
|
1760
1760
|
url: fullUrl,
|
|
1761
1761
|
};
|
|
1762
1762
|
};
|
|
1763
|
+
this.deletePolicies = async (input, stampWith) => {
|
|
1764
|
+
const { organizationId, timestampMs, ...rest } = input;
|
|
1765
|
+
const session = await this.storageManager?.getActiveSession();
|
|
1766
|
+
return this.activity("/public/v1/submit/delete_policies", {
|
|
1767
|
+
parameters: rest,
|
|
1768
|
+
organizationId: organizationId ??
|
|
1769
|
+
session?.organizationId ??
|
|
1770
|
+
this.config.organizationId,
|
|
1771
|
+
timestampMs: timestampMs ?? String(Date.now()),
|
|
1772
|
+
type: "ACTIVITY_TYPE_DELETE_POLICIES",
|
|
1773
|
+
}, "deletePoliciesResult", stampWith);
|
|
1774
|
+
};
|
|
1775
|
+
this.stampDeletePolicies = async (input, stampWith) => {
|
|
1776
|
+
const activeStamper = this.getStamper(stampWith);
|
|
1777
|
+
if (!activeStamper) {
|
|
1778
|
+
return undefined;
|
|
1779
|
+
}
|
|
1780
|
+
const { organizationId, timestampMs, ...parameters } = input;
|
|
1781
|
+
const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_policies";
|
|
1782
|
+
const bodyWithType = {
|
|
1783
|
+
parameters,
|
|
1784
|
+
organizationId,
|
|
1785
|
+
timestampMs: timestampMs ?? String(Date.now()),
|
|
1786
|
+
type: "ACTIVITY_TYPE_DELETE_POLICIES",
|
|
1787
|
+
};
|
|
1788
|
+
const stringifiedBody = JSON.stringify(bodyWithType);
|
|
1789
|
+
const stamp = await activeStamper.stamp(stringifiedBody);
|
|
1790
|
+
return {
|
|
1791
|
+
body: stringifiedBody,
|
|
1792
|
+
stamp: stamp,
|
|
1793
|
+
url: fullUrl,
|
|
1794
|
+
};
|
|
1795
|
+
};
|
|
1763
1796
|
this.deletePolicy = async (input, stampWith) => {
|
|
1764
1797
|
const { organizationId, timestampMs, ...rest } = input;
|
|
1765
1798
|
const session = await this.storageManager?.getActiveSession();
|
|
@@ -1992,6 +2025,39 @@ class TurnkeySDKClientBase {
|
|
|
1992
2025
|
url: fullUrl,
|
|
1993
2026
|
};
|
|
1994
2027
|
};
|
|
2028
|
+
this.deleteWalletAccounts = async (input, stampWith) => {
|
|
2029
|
+
const { organizationId, timestampMs, ...rest } = input;
|
|
2030
|
+
const session = await this.storageManager?.getActiveSession();
|
|
2031
|
+
return this.activity("/public/v1/submit/delete_wallet_accounts", {
|
|
2032
|
+
parameters: rest,
|
|
2033
|
+
organizationId: organizationId ??
|
|
2034
|
+
session?.organizationId ??
|
|
2035
|
+
this.config.organizationId,
|
|
2036
|
+
timestampMs: timestampMs ?? String(Date.now()),
|
|
2037
|
+
type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS",
|
|
2038
|
+
}, "deleteWalletAccountsResult", stampWith);
|
|
2039
|
+
};
|
|
2040
|
+
this.stampDeleteWalletAccounts = async (input, stampWith) => {
|
|
2041
|
+
const activeStamper = this.getStamper(stampWith);
|
|
2042
|
+
if (!activeStamper) {
|
|
2043
|
+
return undefined;
|
|
2044
|
+
}
|
|
2045
|
+
const { organizationId, timestampMs, ...parameters } = input;
|
|
2046
|
+
const fullUrl = this.config.apiBaseUrl + "/public/v1/submit/delete_wallet_accounts";
|
|
2047
|
+
const bodyWithType = {
|
|
2048
|
+
parameters,
|
|
2049
|
+
organizationId,
|
|
2050
|
+
timestampMs: timestampMs ?? String(Date.now()),
|
|
2051
|
+
type: "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS",
|
|
2052
|
+
};
|
|
2053
|
+
const stringifiedBody = JSON.stringify(bodyWithType);
|
|
2054
|
+
const stamp = await activeStamper.stamp(stringifiedBody);
|
|
2055
|
+
return {
|
|
2056
|
+
body: stringifiedBody,
|
|
2057
|
+
stamp: stamp,
|
|
2058
|
+
url: fullUrl,
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
1995
2061
|
this.deleteWallets = async (input, stampWith) => {
|
|
1996
2062
|
const { organizationId, timestampMs, ...rest } = input;
|
|
1997
2063
|
const session = await this.storageManager?.getActiveSession();
|