@0xkey-io/http 0.1.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/CHANGELOG.md +5 -0
- package/LICENSE +201 -0
- package/README.md +94 -0
- package/dist/__generated__/barrel.d.ts +2 -0
- package/dist/__generated__/barrel.d.ts.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +1794 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +3022 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +3020 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +150383 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +2880 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +2639 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +6732 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -0
- package/dist/_kernel/transport.d.ts +2 -0
- package/dist/_kernel/transport.d.ts.map +1 -0
- package/dist/_kernel/transport.js +8 -0
- package/dist/_kernel/transport.js.map +1 -0
- package/dist/_kernel/transport.mjs +6 -0
- package/dist/_kernel/transport.mjs.map +1 -0
- package/dist/async.d.ts +32 -0
- package/dist/async.d.ts.map +1 -0
- package/dist/async.js +158 -0
- package/dist/async.js.map +1 -0
- package/dist/async.mjs +155 -0
- package/dist/async.mjs.map +1 -0
- package/dist/base.d.ts +91 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +172 -0
- package/dist/base.js.map +1 -0
- package/dist/base.mjs +165 -0
- package/dist/base.mjs.map +1 -0
- package/dist/config.d.ts +32 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +48 -0
- package/dist/config.js.map +1 -0
- package/dist/config.mjs +43 -0
- package/dist/config.mjs.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -0
- package/dist/shared.d.ts +76 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +138 -0
- package/dist/shared.js.map +1 -0
- package/dist/shared.mjs +128 -0
- package/dist/shared.mjs.map +1 -0
- package/dist/universal.d.ts +4 -0
- package/dist/universal.d.ts.map +1 -0
- package/dist/universal.js +10 -0
- package/dist/universal.js.map +1 -0
- package/dist/universal.mjs +8 -0
- package/dist/universal.mjs.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +6 -0
- package/dist/version.js.map +1 -0
- package/dist/version.mjs +4 -0
- package/dist/version.mjs.map +1 -0
- package/dist/webauthn-json/api.d.ts +13 -0
- package/dist/webauthn-json/api.d.ts.map +1 -0
- package/dist/webauthn-json/api.js +16 -0
- package/dist/webauthn-json/api.js.map +1 -0
- package/dist/webauthn-json/api.mjs +13 -0
- package/dist/webauthn-json/api.mjs.map +1 -0
- package/dist/webauthn-json/base64url.d.ts +4 -0
- package/dist/webauthn-json/base64url.d.ts.map +1 -0
- package/dist/webauthn-json/base64url.js +22 -0
- package/dist/webauthn-json/base64url.js.map +1 -0
- package/dist/webauthn-json/base64url.mjs +20 -0
- package/dist/webauthn-json/base64url.mjs.map +1 -0
- package/dist/webauthn-json/convert.d.ts +8 -0
- package/dist/webauthn-json/convert.d.ts.map +1 -0
- package/dist/webauthn-json/convert.js +71 -0
- package/dist/webauthn-json/convert.js.map +1 -0
- package/dist/webauthn-json/convert.mjs +64 -0
- package/dist/webauthn-json/convert.mjs.map +1 -0
- package/dist/webauthn-json/index.d.ts +14 -0
- package/dist/webauthn-json/index.d.ts.map +1 -0
- package/dist/webauthn-json/index.js +18 -0
- package/dist/webauthn-json/index.js.map +1 -0
- package/dist/webauthn-json/index.mjs +15 -0
- package/dist/webauthn-json/index.mjs.map +1 -0
- package/dist/webauthn-json/json.d.ts +92 -0
- package/dist/webauthn-json/json.d.ts.map +1 -0
- package/dist/webauthn-json/schema-format.d.ts +13 -0
- package/dist/webauthn-json/schema-format.d.ts.map +1 -0
- package/dist/webauthn-json/schema.d.ts +9 -0
- package/dist/webauthn-json/schema.d.ts.map +1 -0
- package/dist/webauthn-json/schema.js +40 -0
- package/dist/webauthn-json/schema.js.map +1 -0
- package/dist/webauthn-json/schema.mjs +37 -0
- package/dist/webauthn-json/schema.mjs.map +1 -0
- package/dist/webauthn.d.ts +24 -0
- package/dist/webauthn.d.ts.map +1 -0
- package/dist/webauthn.js +97 -0
- package/dist/webauthn.js.map +1 -0
- package/dist/webauthn.mjs +93 -0
- package/dist/webauthn.mjs.map +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,3022 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var base = require('../../../../../base.js');
|
|
4
|
+
var version = require('../../../../../version.js');
|
|
5
|
+
var universal = require('../../../../../universal.js');
|
|
6
|
+
|
|
7
|
+
/* @generated by `@0xkey-io/fetchers`. DO NOT EDIT BY HAND */
|
|
8
|
+
class ZeroXKeyClient {
|
|
9
|
+
constructor(config, stamper) {
|
|
10
|
+
this.name = "ZeroXKeyClient";
|
|
11
|
+
/**
|
|
12
|
+
* Get details about an activity.
|
|
13
|
+
*
|
|
14
|
+
* Sign the provided `TGetActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_activity).
|
|
15
|
+
*
|
|
16
|
+
* See also {@link stampGetActivity}.
|
|
17
|
+
*/
|
|
18
|
+
this.getActivity = async (input) => {
|
|
19
|
+
return this.request("/public/v1/query/get_activity", input);
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Produce a `SignedRequest` from `TGetActivityBody` by using the client's `stamp` function.
|
|
23
|
+
*
|
|
24
|
+
* See also {@link GetActivity}.
|
|
25
|
+
*/
|
|
26
|
+
this.stampGetActivity = async (input) => {
|
|
27
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_activity";
|
|
28
|
+
const body = JSON.stringify(input);
|
|
29
|
+
const stamp = await this.stamper.stamp(body);
|
|
30
|
+
return {
|
|
31
|
+
body: body,
|
|
32
|
+
stamp: stamp,
|
|
33
|
+
url: fullUrl,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Get details about an API key.
|
|
38
|
+
*
|
|
39
|
+
* Sign the provided `TGetApiKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_api_key).
|
|
40
|
+
*
|
|
41
|
+
* See also {@link stampGetApiKey}.
|
|
42
|
+
*/
|
|
43
|
+
this.getApiKey = async (input) => {
|
|
44
|
+
return this.request("/public/v1/query/get_api_key", input);
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Produce a `SignedRequest` from `TGetApiKeyBody` by using the client's `stamp` function.
|
|
48
|
+
*
|
|
49
|
+
* See also {@link GetApiKey}.
|
|
50
|
+
*/
|
|
51
|
+
this.stampGetApiKey = async (input) => {
|
|
52
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_api_key";
|
|
53
|
+
const body = JSON.stringify(input);
|
|
54
|
+
const stamp = await this.stamper.stamp(body);
|
|
55
|
+
return {
|
|
56
|
+
body: body,
|
|
57
|
+
stamp: stamp,
|
|
58
|
+
url: fullUrl,
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Get details about API keys for a user.
|
|
63
|
+
*
|
|
64
|
+
* Sign the provided `TGetApiKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_api_keys).
|
|
65
|
+
*
|
|
66
|
+
* See also {@link stampGetApiKeys}.
|
|
67
|
+
*/
|
|
68
|
+
this.getApiKeys = async (input) => {
|
|
69
|
+
return this.request("/public/v1/query/get_api_keys", input);
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Produce a `SignedRequest` from `TGetApiKeysBody` by using the client's `stamp` function.
|
|
73
|
+
*
|
|
74
|
+
* See also {@link GetApiKeys}.
|
|
75
|
+
*/
|
|
76
|
+
this.stampGetApiKeys = async (input) => {
|
|
77
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_api_keys";
|
|
78
|
+
const body = JSON.stringify(input);
|
|
79
|
+
const stamp = await this.stamper.stamp(body);
|
|
80
|
+
return {
|
|
81
|
+
body: body,
|
|
82
|
+
stamp: stamp,
|
|
83
|
+
url: fullUrl,
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Get live runtime status for a TVC App from the cluster.
|
|
88
|
+
*
|
|
89
|
+
* Sign the provided `TGetAppStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_app_status).
|
|
90
|
+
*
|
|
91
|
+
* See also {@link stampGetAppStatus}.
|
|
92
|
+
*/
|
|
93
|
+
this.getAppStatus = async (input) => {
|
|
94
|
+
return this.request("/public/v1/query/get_app_status", input);
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Produce a `SignedRequest` from `TGetAppStatusBody` by using the client's `stamp` function.
|
|
98
|
+
*
|
|
99
|
+
* See also {@link GetAppStatus}.
|
|
100
|
+
*/
|
|
101
|
+
this.stampGetAppStatus = async (input) => {
|
|
102
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_app_status";
|
|
103
|
+
const body = JSON.stringify(input);
|
|
104
|
+
const stamp = await this.stamper.stamp(body);
|
|
105
|
+
return {
|
|
106
|
+
body: body,
|
|
107
|
+
stamp: stamp,
|
|
108
|
+
url: fullUrl,
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Get details about an authenticator.
|
|
113
|
+
*
|
|
114
|
+
* Sign the provided `TGetAuthenticatorBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticator).
|
|
115
|
+
*
|
|
116
|
+
* See also {@link stampGetAuthenticator}.
|
|
117
|
+
*/
|
|
118
|
+
this.getAuthenticator = async (input) => {
|
|
119
|
+
return this.request("/public/v1/query/get_authenticator", input);
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Produce a `SignedRequest` from `TGetAuthenticatorBody` by using the client's `stamp` function.
|
|
123
|
+
*
|
|
124
|
+
* See also {@link GetAuthenticator}.
|
|
125
|
+
*/
|
|
126
|
+
this.stampGetAuthenticator = async (input) => {
|
|
127
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticator";
|
|
128
|
+
const body = JSON.stringify(input);
|
|
129
|
+
const stamp = await this.stamper.stamp(body);
|
|
130
|
+
return {
|
|
131
|
+
body: body,
|
|
132
|
+
stamp: stamp,
|
|
133
|
+
url: fullUrl,
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Get details about authenticators for a user.
|
|
138
|
+
*
|
|
139
|
+
* Sign the provided `TGetAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticators).
|
|
140
|
+
*
|
|
141
|
+
* See also {@link stampGetAuthenticators}.
|
|
142
|
+
*/
|
|
143
|
+
this.getAuthenticators = async (input) => {
|
|
144
|
+
return this.request("/public/v1/query/get_authenticators", input);
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Produce a `SignedRequest` from `TGetAuthenticatorsBody` by using the client's `stamp` function.
|
|
148
|
+
*
|
|
149
|
+
* See also {@link GetAuthenticators}.
|
|
150
|
+
*/
|
|
151
|
+
this.stampGetAuthenticators = async (input) => {
|
|
152
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_authenticators";
|
|
153
|
+
const body = JSON.stringify(input);
|
|
154
|
+
const stamp = await this.stamper.stamp(body);
|
|
155
|
+
return {
|
|
156
|
+
body: body,
|
|
157
|
+
stamp: stamp,
|
|
158
|
+
url: fullUrl,
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Get the boot proof for a given ephemeral key.
|
|
163
|
+
*
|
|
164
|
+
* Sign the provided `TGetBootProofBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_boot_proof).
|
|
165
|
+
*
|
|
166
|
+
* See also {@link stampGetBootProof}.
|
|
167
|
+
*/
|
|
168
|
+
this.getBootProof = async (input) => {
|
|
169
|
+
return this.request("/public/v1/query/get_boot_proof", input);
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Produce a `SignedRequest` from `TGetBootProofBody` by using the client's `stamp` function.
|
|
173
|
+
*
|
|
174
|
+
* See also {@link GetBootProof}.
|
|
175
|
+
*/
|
|
176
|
+
this.stampGetBootProof = async (input) => {
|
|
177
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_boot_proof";
|
|
178
|
+
const body = JSON.stringify(input);
|
|
179
|
+
const stamp = await this.stamper.stamp(body);
|
|
180
|
+
return {
|
|
181
|
+
body: body,
|
|
182
|
+
stamp: stamp,
|
|
183
|
+
url: fullUrl,
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Get gas usage and gas limits for either the parent organization or a sub-organization.
|
|
188
|
+
*
|
|
189
|
+
* Sign the provided `TGetGasUsageBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_gas_usage).
|
|
190
|
+
*
|
|
191
|
+
* See also {@link stampGetGasUsage}.
|
|
192
|
+
*/
|
|
193
|
+
this.getGasUsage = async (input) => {
|
|
194
|
+
return this.request("/public/v1/query/get_gas_usage", input);
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Produce a `SignedRequest` from `TGetGasUsageBody` by using the client's `stamp` function.
|
|
198
|
+
*
|
|
199
|
+
* See also {@link GetGasUsage}.
|
|
200
|
+
*/
|
|
201
|
+
this.stampGetGasUsage = async (input) => {
|
|
202
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_gas_usage";
|
|
203
|
+
const body = JSON.stringify(input);
|
|
204
|
+
const stamp = await this.stamper.stamp(body);
|
|
205
|
+
return {
|
|
206
|
+
body: body,
|
|
207
|
+
stamp: stamp,
|
|
208
|
+
url: fullUrl,
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Get the latest boot proof for a given enclave app name.
|
|
213
|
+
*
|
|
214
|
+
* Sign the provided `TGetLatestBootProofBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_latest_boot_proof).
|
|
215
|
+
*
|
|
216
|
+
* See also {@link stampGetLatestBootProof}.
|
|
217
|
+
*/
|
|
218
|
+
this.getLatestBootProof = async (input) => {
|
|
219
|
+
return this.request("/public/v1/query/get_latest_boot_proof", input);
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Produce a `SignedRequest` from `TGetLatestBootProofBody` by using the client's `stamp` function.
|
|
223
|
+
*
|
|
224
|
+
* See also {@link GetLatestBootProof}.
|
|
225
|
+
*/
|
|
226
|
+
this.stampGetLatestBootProof = async (input) => {
|
|
227
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_latest_boot_proof";
|
|
228
|
+
const body = JSON.stringify(input);
|
|
229
|
+
const stamp = await this.stamper.stamp(body);
|
|
230
|
+
return {
|
|
231
|
+
body: body,
|
|
232
|
+
stamp: stamp,
|
|
233
|
+
url: fullUrl,
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Get nonce values for an address on a given network. Can fetch the standard on-chain nonce and/or the gas station nonce used for sponsored transactions.
|
|
238
|
+
*
|
|
239
|
+
* Sign the provided `TGetNoncesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_nonces).
|
|
240
|
+
*
|
|
241
|
+
* See also {@link stampGetNonces}.
|
|
242
|
+
*/
|
|
243
|
+
this.getNonces = async (input) => {
|
|
244
|
+
return this.request("/public/v1/query/get_nonces", input);
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Produce a `SignedRequest` from `TGetNoncesBody` by using the client's `stamp` function.
|
|
248
|
+
*
|
|
249
|
+
* See also {@link GetNonces}.
|
|
250
|
+
*/
|
|
251
|
+
this.stampGetNonces = async (input) => {
|
|
252
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_nonces";
|
|
253
|
+
const body = JSON.stringify(input);
|
|
254
|
+
const stamp = await this.stamper.stamp(body);
|
|
255
|
+
return {
|
|
256
|
+
body: body,
|
|
257
|
+
stamp: stamp,
|
|
258
|
+
url: fullUrl,
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Get details about an OAuth 2.0 credential.
|
|
263
|
+
*
|
|
264
|
+
* Sign the provided `TGetOauth2CredentialBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_oauth2_credential).
|
|
265
|
+
*
|
|
266
|
+
* See also {@link stampGetOauth2Credential}.
|
|
267
|
+
*/
|
|
268
|
+
this.getOauth2Credential = async (input) => {
|
|
269
|
+
return this.request("/public/v1/query/get_oauth2_credential", input);
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Produce a `SignedRequest` from `TGetOauth2CredentialBody` by using the client's `stamp` function.
|
|
273
|
+
*
|
|
274
|
+
* See also {@link GetOauth2Credential}.
|
|
275
|
+
*/
|
|
276
|
+
this.stampGetOauth2Credential = async (input) => {
|
|
277
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_oauth2_credential";
|
|
278
|
+
const body = JSON.stringify(input);
|
|
279
|
+
const stamp = await this.stamper.stamp(body);
|
|
280
|
+
return {
|
|
281
|
+
body: body,
|
|
282
|
+
stamp: stamp,
|
|
283
|
+
url: fullUrl,
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Get details about Oauth providers for a user.
|
|
288
|
+
*
|
|
289
|
+
* Sign the provided `TGetOauthProvidersBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_oauth_providers).
|
|
290
|
+
*
|
|
291
|
+
* See also {@link stampGetOauthProviders}.
|
|
292
|
+
*/
|
|
293
|
+
this.getOauthProviders = async (input) => {
|
|
294
|
+
return this.request("/public/v1/query/get_oauth_providers", input);
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Produce a `SignedRequest` from `TGetOauthProvidersBody` by using the client's `stamp` function.
|
|
298
|
+
*
|
|
299
|
+
* See also {@link GetOauthProviders}.
|
|
300
|
+
*/
|
|
301
|
+
this.stampGetOauthProviders = async (input) => {
|
|
302
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_oauth_providers";
|
|
303
|
+
const body = JSON.stringify(input);
|
|
304
|
+
const stamp = await this.stamper.stamp(body);
|
|
305
|
+
return {
|
|
306
|
+
body: body,
|
|
307
|
+
stamp: stamp,
|
|
308
|
+
url: fullUrl,
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* Get the status of an on ramp transaction.
|
|
313
|
+
*
|
|
314
|
+
* Sign the provided `TGetOnRampTransactionStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_onramp_transaction_status).
|
|
315
|
+
*
|
|
316
|
+
* See also {@link stampGetOnRampTransactionStatus}.
|
|
317
|
+
*/
|
|
318
|
+
this.getOnRampTransactionStatus = async (input) => {
|
|
319
|
+
return this.request("/public/v1/query/get_onramp_transaction_status", input);
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Produce a `SignedRequest` from `TGetOnRampTransactionStatusBody` by using the client's `stamp` function.
|
|
323
|
+
*
|
|
324
|
+
* See also {@link GetOnRampTransactionStatus}.
|
|
325
|
+
*/
|
|
326
|
+
this.stampGetOnRampTransactionStatus = async (input) => {
|
|
327
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_onramp_transaction_status";
|
|
328
|
+
const body = JSON.stringify(input);
|
|
329
|
+
const stamp = await this.stamper.stamp(body);
|
|
330
|
+
return {
|
|
331
|
+
body: body,
|
|
332
|
+
stamp: stamp,
|
|
333
|
+
url: fullUrl,
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Get quorum settings and features for an organization.
|
|
338
|
+
*
|
|
339
|
+
* Sign the provided `TGetOrganizationConfigsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_organization_configs).
|
|
340
|
+
*
|
|
341
|
+
* See also {@link stampGetOrganizationConfigs}.
|
|
342
|
+
*/
|
|
343
|
+
this.getOrganizationConfigs = async (input) => {
|
|
344
|
+
return this.request("/public/v1/query/get_organization_configs", input);
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* Produce a `SignedRequest` from `TGetOrganizationConfigsBody` by using the client's `stamp` function.
|
|
348
|
+
*
|
|
349
|
+
* See also {@link GetOrganizationConfigs}.
|
|
350
|
+
*/
|
|
351
|
+
this.stampGetOrganizationConfigs = async (input) => {
|
|
352
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_organization_configs";
|
|
353
|
+
const body = JSON.stringify(input);
|
|
354
|
+
const stamp = await this.stamper.stamp(body);
|
|
355
|
+
return {
|
|
356
|
+
body: body,
|
|
357
|
+
stamp: stamp,
|
|
358
|
+
url: fullUrl,
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Get details about a policy.
|
|
363
|
+
*
|
|
364
|
+
* Sign the provided `TGetPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_policy).
|
|
365
|
+
*
|
|
366
|
+
* See also {@link stampGetPolicy}.
|
|
367
|
+
*/
|
|
368
|
+
this.getPolicy = async (input) => {
|
|
369
|
+
return this.request("/public/v1/query/get_policy", input);
|
|
370
|
+
};
|
|
371
|
+
/**
|
|
372
|
+
* Produce a `SignedRequest` from `TGetPolicyBody` by using the client's `stamp` function.
|
|
373
|
+
*
|
|
374
|
+
* See also {@link GetPolicy}.
|
|
375
|
+
*/
|
|
376
|
+
this.stampGetPolicy = async (input) => {
|
|
377
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_policy";
|
|
378
|
+
const body = JSON.stringify(input);
|
|
379
|
+
const stamp = await this.stamper.stamp(body);
|
|
380
|
+
return {
|
|
381
|
+
body: body,
|
|
382
|
+
stamp: stamp,
|
|
383
|
+
url: fullUrl,
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* Get the policy evaluations for an activity.
|
|
388
|
+
*
|
|
389
|
+
* Sign the provided `TGetPolicyEvaluationsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_policy_evaluations).
|
|
390
|
+
*
|
|
391
|
+
* See also {@link stampGetPolicyEvaluations}.
|
|
392
|
+
*/
|
|
393
|
+
this.getPolicyEvaluations = async (input) => {
|
|
394
|
+
return this.request("/public/v1/query/get_policy_evaluations", input);
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* Produce a `SignedRequest` from `TGetPolicyEvaluationsBody` by using the client's `stamp` function.
|
|
398
|
+
*
|
|
399
|
+
* See also {@link GetPolicyEvaluations}.
|
|
400
|
+
*/
|
|
401
|
+
this.stampGetPolicyEvaluations = async (input) => {
|
|
402
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_policy_evaluations";
|
|
403
|
+
const body = JSON.stringify(input);
|
|
404
|
+
const stamp = await this.stamper.stamp(body);
|
|
405
|
+
return {
|
|
406
|
+
body: body,
|
|
407
|
+
stamp: stamp,
|
|
408
|
+
url: fullUrl,
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
/**
|
|
412
|
+
* Get details about a private key.
|
|
413
|
+
*
|
|
414
|
+
* Sign the provided `TGetPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_private_key).
|
|
415
|
+
*
|
|
416
|
+
* See also {@link stampGetPrivateKey}.
|
|
417
|
+
*/
|
|
418
|
+
this.getPrivateKey = async (input) => {
|
|
419
|
+
return this.request("/public/v1/query/get_private_key", input);
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* Produce a `SignedRequest` from `TGetPrivateKeyBody` by using the client's `stamp` function.
|
|
423
|
+
*
|
|
424
|
+
* See also {@link GetPrivateKey}.
|
|
425
|
+
*/
|
|
426
|
+
this.stampGetPrivateKey = async (input) => {
|
|
427
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_private_key";
|
|
428
|
+
const body = JSON.stringify(input);
|
|
429
|
+
const stamp = await this.stamper.stamp(body);
|
|
430
|
+
return {
|
|
431
|
+
body: body,
|
|
432
|
+
stamp: stamp,
|
|
433
|
+
url: fullUrl,
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* Get the status of a send transaction request.
|
|
438
|
+
*
|
|
439
|
+
* Sign the provided `TGetSendTransactionStatusBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_send_transaction_status).
|
|
440
|
+
*
|
|
441
|
+
* See also {@link stampGetSendTransactionStatus}.
|
|
442
|
+
*/
|
|
443
|
+
this.getSendTransactionStatus = async (input) => {
|
|
444
|
+
return this.request("/public/v1/query/get_send_transaction_status", input);
|
|
445
|
+
};
|
|
446
|
+
/**
|
|
447
|
+
* Produce a `SignedRequest` from `TGetSendTransactionStatusBody` by using the client's `stamp` function.
|
|
448
|
+
*
|
|
449
|
+
* See also {@link GetSendTransactionStatus}.
|
|
450
|
+
*/
|
|
451
|
+
this.stampGetSendTransactionStatus = async (input) => {
|
|
452
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_send_transaction_status";
|
|
453
|
+
const body = JSON.stringify(input);
|
|
454
|
+
const stamp = await this.stamper.stamp(body);
|
|
455
|
+
return {
|
|
456
|
+
body: body,
|
|
457
|
+
stamp: stamp,
|
|
458
|
+
url: fullUrl,
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Get details about a smart contract interface.
|
|
463
|
+
*
|
|
464
|
+
* Sign the provided `TGetSmartContractInterfaceBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_smart_contract_interface).
|
|
465
|
+
*
|
|
466
|
+
* See also {@link stampGetSmartContractInterface}.
|
|
467
|
+
*/
|
|
468
|
+
this.getSmartContractInterface = async (input) => {
|
|
469
|
+
return this.request("/public/v1/query/get_smart_contract_interface", input);
|
|
470
|
+
};
|
|
471
|
+
/**
|
|
472
|
+
* Produce a `SignedRequest` from `TGetSmartContractInterfaceBody` by using the client's `stamp` function.
|
|
473
|
+
*
|
|
474
|
+
* See also {@link GetSmartContractInterface}.
|
|
475
|
+
*/
|
|
476
|
+
this.stampGetSmartContractInterface = async (input) => {
|
|
477
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_smart_contract_interface";
|
|
478
|
+
const body = JSON.stringify(input);
|
|
479
|
+
const stamp = await this.stamper.stamp(body);
|
|
480
|
+
return {
|
|
481
|
+
body: body,
|
|
482
|
+
stamp: stamp,
|
|
483
|
+
url: fullUrl,
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Get details about a user.
|
|
488
|
+
*
|
|
489
|
+
* Sign the provided `TGetUserBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_user).
|
|
490
|
+
*
|
|
491
|
+
* See also {@link stampGetUser}.
|
|
492
|
+
*/
|
|
493
|
+
this.getUser = async (input) => {
|
|
494
|
+
return this.request("/public/v1/query/get_user", input);
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* Produce a `SignedRequest` from `TGetUserBody` by using the client's `stamp` function.
|
|
498
|
+
*
|
|
499
|
+
* See also {@link GetUser}.
|
|
500
|
+
*/
|
|
501
|
+
this.stampGetUser = async (input) => {
|
|
502
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_user";
|
|
503
|
+
const body = JSON.stringify(input);
|
|
504
|
+
const stamp = await this.stamper.stamp(body);
|
|
505
|
+
return {
|
|
506
|
+
body: body,
|
|
507
|
+
stamp: stamp,
|
|
508
|
+
url: fullUrl,
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* Get details about a wallet.
|
|
513
|
+
*
|
|
514
|
+
* Sign the provided `TGetWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet).
|
|
515
|
+
*
|
|
516
|
+
* See also {@link stampGetWallet}.
|
|
517
|
+
*/
|
|
518
|
+
this.getWallet = async (input) => {
|
|
519
|
+
return this.request("/public/v1/query/get_wallet", input);
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* Produce a `SignedRequest` from `TGetWalletBody` by using the client's `stamp` function.
|
|
523
|
+
*
|
|
524
|
+
* See also {@link GetWallet}.
|
|
525
|
+
*/
|
|
526
|
+
this.stampGetWallet = async (input) => {
|
|
527
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_wallet";
|
|
528
|
+
const body = JSON.stringify(input);
|
|
529
|
+
const stamp = await this.stamper.stamp(body);
|
|
530
|
+
return {
|
|
531
|
+
body: body,
|
|
532
|
+
stamp: stamp,
|
|
533
|
+
url: fullUrl,
|
|
534
|
+
};
|
|
535
|
+
};
|
|
536
|
+
/**
|
|
537
|
+
* Get a single wallet account.
|
|
538
|
+
*
|
|
539
|
+
* Sign the provided `TGetWalletAccountBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet_account).
|
|
540
|
+
*
|
|
541
|
+
* See also {@link stampGetWalletAccount}.
|
|
542
|
+
*/
|
|
543
|
+
this.getWalletAccount = async (input) => {
|
|
544
|
+
return this.request("/public/v1/query/get_wallet_account", input);
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* Produce a `SignedRequest` from `TGetWalletAccountBody` by using the client's `stamp` function.
|
|
548
|
+
*
|
|
549
|
+
* See also {@link GetWalletAccount}.
|
|
550
|
+
*/
|
|
551
|
+
this.stampGetWalletAccount = async (input) => {
|
|
552
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_wallet_account";
|
|
553
|
+
const body = JSON.stringify(input);
|
|
554
|
+
const stamp = await this.stamper.stamp(body);
|
|
555
|
+
return {
|
|
556
|
+
body: body,
|
|
557
|
+
stamp: stamp,
|
|
558
|
+
url: fullUrl,
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* Get balances of supported assets for an address on the specified network. Only non-zero balances are returned. This feature is in beta - please contact support for access.
|
|
563
|
+
*
|
|
564
|
+
* Sign the provided `TGetWalletAddressBalancesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_wallet_address_balances).
|
|
565
|
+
*
|
|
566
|
+
* See also {@link stampGetWalletAddressBalances}.
|
|
567
|
+
*/
|
|
568
|
+
this.getWalletAddressBalances = async (input) => {
|
|
569
|
+
return this.request("/public/v1/query/get_wallet_address_balances", input);
|
|
570
|
+
};
|
|
571
|
+
/**
|
|
572
|
+
* Produce a `SignedRequest` from `TGetWalletAddressBalancesBody` by using the client's `stamp` function.
|
|
573
|
+
*
|
|
574
|
+
* See also {@link GetWalletAddressBalances}.
|
|
575
|
+
*/
|
|
576
|
+
this.stampGetWalletAddressBalances = async (input) => {
|
|
577
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/get_wallet_address_balances";
|
|
578
|
+
const body = JSON.stringify(input);
|
|
579
|
+
const stamp = await this.stamper.stamp(body);
|
|
580
|
+
return {
|
|
581
|
+
body: body,
|
|
582
|
+
stamp: stamp,
|
|
583
|
+
url: fullUrl,
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* List all activities within an organization.
|
|
588
|
+
*
|
|
589
|
+
* Sign the provided `TGetActivitiesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_activities).
|
|
590
|
+
*
|
|
591
|
+
* See also {@link stampGetActivities}.
|
|
592
|
+
*/
|
|
593
|
+
this.getActivities = async (input) => {
|
|
594
|
+
return this.request("/public/v1/query/list_activities", input);
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
* Produce a `SignedRequest` from `TGetActivitiesBody` by using the client's `stamp` function.
|
|
598
|
+
*
|
|
599
|
+
* See also {@link GetActivities}.
|
|
600
|
+
*/
|
|
601
|
+
this.stampGetActivities = async (input) => {
|
|
602
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_activities";
|
|
603
|
+
const body = JSON.stringify(input);
|
|
604
|
+
const stamp = await this.stamper.stamp(body);
|
|
605
|
+
return {
|
|
606
|
+
body: body,
|
|
607
|
+
stamp: stamp,
|
|
608
|
+
url: fullUrl,
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* List the App Proofs for the given activity.
|
|
613
|
+
*
|
|
614
|
+
* Sign the provided `TGetAppProofsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_app_proofs).
|
|
615
|
+
*
|
|
616
|
+
* See also {@link stampGetAppProofs}.
|
|
617
|
+
*/
|
|
618
|
+
this.getAppProofs = async (input) => {
|
|
619
|
+
return this.request("/public/v1/query/list_app_proofs", input);
|
|
620
|
+
};
|
|
621
|
+
/**
|
|
622
|
+
* Produce a `SignedRequest` from `TGetAppProofsBody` by using the client's `stamp` function.
|
|
623
|
+
*
|
|
624
|
+
* See also {@link GetAppProofs}.
|
|
625
|
+
*/
|
|
626
|
+
this.stampGetAppProofs = async (input) => {
|
|
627
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_app_proofs";
|
|
628
|
+
const body = JSON.stringify(input);
|
|
629
|
+
const stamp = await this.stamper.stamp(body);
|
|
630
|
+
return {
|
|
631
|
+
body: body,
|
|
632
|
+
stamp: stamp,
|
|
633
|
+
url: fullUrl,
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
/**
|
|
637
|
+
* List all fiat on ramp provider credentials within an organization.
|
|
638
|
+
*
|
|
639
|
+
* Sign the provided `TListFiatOnRampCredentialsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_fiat_on_ramp_credentials).
|
|
640
|
+
*
|
|
641
|
+
* See also {@link stampListFiatOnRampCredentials}.
|
|
642
|
+
*/
|
|
643
|
+
this.listFiatOnRampCredentials = async (input) => {
|
|
644
|
+
return this.request("/public/v1/query/list_fiat_on_ramp_credentials", input);
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* Produce a `SignedRequest` from `TListFiatOnRampCredentialsBody` by using the client's `stamp` function.
|
|
648
|
+
*
|
|
649
|
+
* See also {@link ListFiatOnRampCredentials}.
|
|
650
|
+
*/
|
|
651
|
+
this.stampListFiatOnRampCredentials = async (input) => {
|
|
652
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_fiat_on_ramp_credentials";
|
|
653
|
+
const body = JSON.stringify(input);
|
|
654
|
+
const stamp = await this.stamper.stamp(body);
|
|
655
|
+
return {
|
|
656
|
+
body: body,
|
|
657
|
+
stamp: stamp,
|
|
658
|
+
url: fullUrl,
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* List all OAuth 2.0 credentials within an organization.
|
|
663
|
+
*
|
|
664
|
+
* Sign the provided `TListOauth2CredentialsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_oauth2_credentials).
|
|
665
|
+
*
|
|
666
|
+
* See also {@link stampListOauth2Credentials}.
|
|
667
|
+
*/
|
|
668
|
+
this.listOauth2Credentials = async (input) => {
|
|
669
|
+
return this.request("/public/v1/query/list_oauth2_credentials", input);
|
|
670
|
+
};
|
|
671
|
+
/**
|
|
672
|
+
* Produce a `SignedRequest` from `TListOauth2CredentialsBody` by using the client's `stamp` function.
|
|
673
|
+
*
|
|
674
|
+
* See also {@link ListOauth2Credentials}.
|
|
675
|
+
*/
|
|
676
|
+
this.stampListOauth2Credentials = async (input) => {
|
|
677
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_oauth2_credentials";
|
|
678
|
+
const body = JSON.stringify(input);
|
|
679
|
+
const stamp = await this.stamper.stamp(body);
|
|
680
|
+
return {
|
|
681
|
+
body: body,
|
|
682
|
+
stamp: stamp,
|
|
683
|
+
url: fullUrl,
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* List all policies within an organization.
|
|
688
|
+
*
|
|
689
|
+
* Sign the provided `TGetPoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_policies).
|
|
690
|
+
*
|
|
691
|
+
* See also {@link stampGetPolicies}.
|
|
692
|
+
*/
|
|
693
|
+
this.getPolicies = async (input) => {
|
|
694
|
+
return this.request("/public/v1/query/list_policies", input);
|
|
695
|
+
};
|
|
696
|
+
/**
|
|
697
|
+
* Produce a `SignedRequest` from `TGetPoliciesBody` by using the client's `stamp` function.
|
|
698
|
+
*
|
|
699
|
+
* See also {@link GetPolicies}.
|
|
700
|
+
*/
|
|
701
|
+
this.stampGetPolicies = async (input) => {
|
|
702
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_policies";
|
|
703
|
+
const body = JSON.stringify(input);
|
|
704
|
+
const stamp = await this.stamper.stamp(body);
|
|
705
|
+
return {
|
|
706
|
+
body: body,
|
|
707
|
+
stamp: stamp,
|
|
708
|
+
url: fullUrl,
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* List all private key tags within an organization.
|
|
713
|
+
*
|
|
714
|
+
* Sign the provided `TListPrivateKeyTagsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_private_key_tags).
|
|
715
|
+
*
|
|
716
|
+
* See also {@link stampListPrivateKeyTags}.
|
|
717
|
+
*/
|
|
718
|
+
this.listPrivateKeyTags = async (input) => {
|
|
719
|
+
return this.request("/public/v1/query/list_private_key_tags", input);
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* Produce a `SignedRequest` from `TListPrivateKeyTagsBody` by using the client's `stamp` function.
|
|
723
|
+
*
|
|
724
|
+
* See also {@link ListPrivateKeyTags}.
|
|
725
|
+
*/
|
|
726
|
+
this.stampListPrivateKeyTags = async (input) => {
|
|
727
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_private_key_tags";
|
|
728
|
+
const body = JSON.stringify(input);
|
|
729
|
+
const stamp = await this.stamper.stamp(body);
|
|
730
|
+
return {
|
|
731
|
+
body: body,
|
|
732
|
+
stamp: stamp,
|
|
733
|
+
url: fullUrl,
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
/**
|
|
737
|
+
* List all private keys within an organization.
|
|
738
|
+
*
|
|
739
|
+
* Sign the provided `TGetPrivateKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_private_keys).
|
|
740
|
+
*
|
|
741
|
+
* See also {@link stampGetPrivateKeys}.
|
|
742
|
+
*/
|
|
743
|
+
this.getPrivateKeys = async (input) => {
|
|
744
|
+
return this.request("/public/v1/query/list_private_keys", input);
|
|
745
|
+
};
|
|
746
|
+
/**
|
|
747
|
+
* Produce a `SignedRequest` from `TGetPrivateKeysBody` by using the client's `stamp` function.
|
|
748
|
+
*
|
|
749
|
+
* See also {@link GetPrivateKeys}.
|
|
750
|
+
*/
|
|
751
|
+
this.stampGetPrivateKeys = async (input) => {
|
|
752
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_private_keys";
|
|
753
|
+
const body = JSON.stringify(input);
|
|
754
|
+
const stamp = await this.stamper.stamp(body);
|
|
755
|
+
return {
|
|
756
|
+
body: body,
|
|
757
|
+
stamp: stamp,
|
|
758
|
+
url: fullUrl,
|
|
759
|
+
};
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* List all smart contract interfaces within an organization.
|
|
763
|
+
*
|
|
764
|
+
* Sign the provided `TGetSmartContractInterfacesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_smart_contract_interfaces).
|
|
765
|
+
*
|
|
766
|
+
* See also {@link stampGetSmartContractInterfaces}.
|
|
767
|
+
*/
|
|
768
|
+
this.getSmartContractInterfaces = async (input) => {
|
|
769
|
+
return this.request("/public/v1/query/list_smart_contract_interfaces", input);
|
|
770
|
+
};
|
|
771
|
+
/**
|
|
772
|
+
* Produce a `SignedRequest` from `TGetSmartContractInterfacesBody` by using the client's `stamp` function.
|
|
773
|
+
*
|
|
774
|
+
* See also {@link GetSmartContractInterfaces}.
|
|
775
|
+
*/
|
|
776
|
+
this.stampGetSmartContractInterfaces = async (input) => {
|
|
777
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_smart_contract_interfaces";
|
|
778
|
+
const body = JSON.stringify(input);
|
|
779
|
+
const stamp = await this.stamper.stamp(body);
|
|
780
|
+
return {
|
|
781
|
+
body: body,
|
|
782
|
+
stamp: stamp,
|
|
783
|
+
url: fullUrl,
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Get all suborg IDs associated given a parent org ID and an optional filter.
|
|
788
|
+
*
|
|
789
|
+
* Sign the provided `TGetSubOrgIdsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_suborgs).
|
|
790
|
+
*
|
|
791
|
+
* See also {@link stampGetSubOrgIds}.
|
|
792
|
+
*/
|
|
793
|
+
this.getSubOrgIds = async (input) => {
|
|
794
|
+
return this.request("/public/v1/query/list_suborgs", input);
|
|
795
|
+
};
|
|
796
|
+
/**
|
|
797
|
+
* Produce a `SignedRequest` from `TGetSubOrgIdsBody` by using the client's `stamp` function.
|
|
798
|
+
*
|
|
799
|
+
* See also {@link GetSubOrgIds}.
|
|
800
|
+
*/
|
|
801
|
+
this.stampGetSubOrgIds = async (input) => {
|
|
802
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_suborgs";
|
|
803
|
+
const body = JSON.stringify(input);
|
|
804
|
+
const stamp = await this.stamper.stamp(body);
|
|
805
|
+
return {
|
|
806
|
+
body: body,
|
|
807
|
+
stamp: stamp,
|
|
808
|
+
url: fullUrl,
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
/**
|
|
812
|
+
* List supported assets for the specified network. This feature is in beta - please contact support for access.
|
|
813
|
+
*
|
|
814
|
+
* Sign the provided `TListSupportedAssetsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_supported_assets).
|
|
815
|
+
*
|
|
816
|
+
* See also {@link stampListSupportedAssets}.
|
|
817
|
+
*/
|
|
818
|
+
this.listSupportedAssets = async (input) => {
|
|
819
|
+
return this.request("/public/v1/query/list_supported_assets", input);
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Produce a `SignedRequest` from `TListSupportedAssetsBody` by using the client's `stamp` function.
|
|
823
|
+
*
|
|
824
|
+
* See also {@link ListSupportedAssets}.
|
|
825
|
+
*/
|
|
826
|
+
this.stampListSupportedAssets = async (input) => {
|
|
827
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_supported_assets";
|
|
828
|
+
const body = JSON.stringify(input);
|
|
829
|
+
const stamp = await this.stamper.stamp(body);
|
|
830
|
+
return {
|
|
831
|
+
body: body,
|
|
832
|
+
stamp: stamp,
|
|
833
|
+
url: fullUrl,
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
/**
|
|
837
|
+
* List all user tags within an organization.
|
|
838
|
+
*
|
|
839
|
+
* Sign the provided `TListUserTagsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_user_tags).
|
|
840
|
+
*
|
|
841
|
+
* See also {@link stampListUserTags}.
|
|
842
|
+
*/
|
|
843
|
+
this.listUserTags = async (input) => {
|
|
844
|
+
return this.request("/public/v1/query/list_user_tags", input);
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* Produce a `SignedRequest` from `TListUserTagsBody` by using the client's `stamp` function.
|
|
848
|
+
*
|
|
849
|
+
* See also {@link ListUserTags}.
|
|
850
|
+
*/
|
|
851
|
+
this.stampListUserTags = async (input) => {
|
|
852
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_user_tags";
|
|
853
|
+
const body = JSON.stringify(input);
|
|
854
|
+
const stamp = await this.stamper.stamp(body);
|
|
855
|
+
return {
|
|
856
|
+
body: body,
|
|
857
|
+
stamp: stamp,
|
|
858
|
+
url: fullUrl,
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
/**
|
|
862
|
+
* List all users within an organization.
|
|
863
|
+
*
|
|
864
|
+
* Sign the provided `TGetUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_users).
|
|
865
|
+
*
|
|
866
|
+
* See also {@link stampGetUsers}.
|
|
867
|
+
*/
|
|
868
|
+
this.getUsers = async (input) => {
|
|
869
|
+
return this.request("/public/v1/query/list_users", input);
|
|
870
|
+
};
|
|
871
|
+
/**
|
|
872
|
+
* Produce a `SignedRequest` from `TGetUsersBody` by using the client's `stamp` function.
|
|
873
|
+
*
|
|
874
|
+
* See also {@link GetUsers}.
|
|
875
|
+
*/
|
|
876
|
+
this.stampGetUsers = async (input) => {
|
|
877
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_users";
|
|
878
|
+
const body = JSON.stringify(input);
|
|
879
|
+
const stamp = await this.stamper.stamp(body);
|
|
880
|
+
return {
|
|
881
|
+
body: body,
|
|
882
|
+
stamp: stamp,
|
|
883
|
+
url: fullUrl,
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
/**
|
|
887
|
+
* Get all email or phone verified suborg IDs associated given a parent org ID.
|
|
888
|
+
*
|
|
889
|
+
* Sign the provided `TGetVerifiedSubOrgIdsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_verified_suborgs).
|
|
890
|
+
*
|
|
891
|
+
* See also {@link stampGetVerifiedSubOrgIds}.
|
|
892
|
+
*/
|
|
893
|
+
this.getVerifiedSubOrgIds = async (input) => {
|
|
894
|
+
return this.request("/public/v1/query/list_verified_suborgs", input);
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Produce a `SignedRequest` from `TGetVerifiedSubOrgIdsBody` by using the client's `stamp` function.
|
|
898
|
+
*
|
|
899
|
+
* See also {@link GetVerifiedSubOrgIds}.
|
|
900
|
+
*/
|
|
901
|
+
this.stampGetVerifiedSubOrgIds = async (input) => {
|
|
902
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_verified_suborgs";
|
|
903
|
+
const body = JSON.stringify(input);
|
|
904
|
+
const stamp = await this.stamper.stamp(body);
|
|
905
|
+
return {
|
|
906
|
+
body: body,
|
|
907
|
+
stamp: stamp,
|
|
908
|
+
url: fullUrl,
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* List all accounts within a wallet.
|
|
913
|
+
*
|
|
914
|
+
* Sign the provided `TGetWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallet_accounts).
|
|
915
|
+
*
|
|
916
|
+
* See also {@link stampGetWalletAccounts}.
|
|
917
|
+
*/
|
|
918
|
+
this.getWalletAccounts = async (input) => {
|
|
919
|
+
return this.request("/public/v1/query/list_wallet_accounts", input);
|
|
920
|
+
};
|
|
921
|
+
/**
|
|
922
|
+
* Produce a `SignedRequest` from `TGetWalletAccountsBody` by using the client's `stamp` function.
|
|
923
|
+
*
|
|
924
|
+
* See also {@link GetWalletAccounts}.
|
|
925
|
+
*/
|
|
926
|
+
this.stampGetWalletAccounts = async (input) => {
|
|
927
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_wallet_accounts";
|
|
928
|
+
const body = JSON.stringify(input);
|
|
929
|
+
const stamp = await this.stamper.stamp(body);
|
|
930
|
+
return {
|
|
931
|
+
body: body,
|
|
932
|
+
stamp: stamp,
|
|
933
|
+
url: fullUrl,
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
/**
|
|
937
|
+
* List all wallets within an organization.
|
|
938
|
+
*
|
|
939
|
+
* Sign the provided `TGetWalletsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_wallets).
|
|
940
|
+
*
|
|
941
|
+
* See also {@link stampGetWallets}.
|
|
942
|
+
*/
|
|
943
|
+
this.getWallets = async (input) => {
|
|
944
|
+
return this.request("/public/v1/query/list_wallets", input);
|
|
945
|
+
};
|
|
946
|
+
/**
|
|
947
|
+
* Produce a `SignedRequest` from `TGetWalletsBody` by using the client's `stamp` function.
|
|
948
|
+
*
|
|
949
|
+
* See also {@link GetWallets}.
|
|
950
|
+
*/
|
|
951
|
+
this.stampGetWallets = async (input) => {
|
|
952
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_wallets";
|
|
953
|
+
const body = JSON.stringify(input);
|
|
954
|
+
const stamp = await this.stamper.stamp(body);
|
|
955
|
+
return {
|
|
956
|
+
body: body,
|
|
957
|
+
stamp: stamp,
|
|
958
|
+
url: fullUrl,
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
/**
|
|
962
|
+
* List webhook endpoints within an organization.
|
|
963
|
+
*
|
|
964
|
+
* Sign the provided `TListWebhookEndpointsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_webhook_endpoints).
|
|
965
|
+
*
|
|
966
|
+
* See also {@link stampListWebhookEndpoints}.
|
|
967
|
+
*/
|
|
968
|
+
this.listWebhookEndpoints = async (input) => {
|
|
969
|
+
return this.request("/public/v1/query/list_webhook_endpoints", input);
|
|
970
|
+
};
|
|
971
|
+
/**
|
|
972
|
+
* Produce a `SignedRequest` from `TListWebhookEndpointsBody` by using the client's `stamp` function.
|
|
973
|
+
*
|
|
974
|
+
* See also {@link ListWebhookEndpoints}.
|
|
975
|
+
*/
|
|
976
|
+
this.stampListWebhookEndpoints = async (input) => {
|
|
977
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/list_webhook_endpoints";
|
|
978
|
+
const body = JSON.stringify(input);
|
|
979
|
+
const stamp = await this.stamper.stamp(body);
|
|
980
|
+
return {
|
|
981
|
+
body: body,
|
|
982
|
+
stamp: stamp,
|
|
983
|
+
url: fullUrl,
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
/**
|
|
987
|
+
* Get basic information about your current API or WebAuthN user and their organization. Affords sub-organization look ups via parent organization for WebAuthN or API key users.
|
|
988
|
+
*
|
|
989
|
+
* Sign the provided `TGetWhoamiBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/whoami).
|
|
990
|
+
*
|
|
991
|
+
* See also {@link stampGetWhoami}.
|
|
992
|
+
*/
|
|
993
|
+
this.getWhoami = async (input) => {
|
|
994
|
+
return this.request("/public/v1/query/whoami", input);
|
|
995
|
+
};
|
|
996
|
+
/**
|
|
997
|
+
* Produce a `SignedRequest` from `TGetWhoamiBody` by using the client's `stamp` function.
|
|
998
|
+
*
|
|
999
|
+
* See also {@link GetWhoami}.
|
|
1000
|
+
*/
|
|
1001
|
+
this.stampGetWhoami = async (input) => {
|
|
1002
|
+
const fullUrl = this.config.baseUrl + "/public/v1/query/whoami";
|
|
1003
|
+
const body = JSON.stringify(input);
|
|
1004
|
+
const stamp = await this.stamper.stamp(body);
|
|
1005
|
+
return {
|
|
1006
|
+
body: body,
|
|
1007
|
+
stamp: stamp,
|
|
1008
|
+
url: fullUrl,
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
/**
|
|
1012
|
+
* Approve an activity.
|
|
1013
|
+
*
|
|
1014
|
+
* Sign the provided `TApproveActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/approve_activity).
|
|
1015
|
+
*
|
|
1016
|
+
* See also {@link stampApproveActivity}.
|
|
1017
|
+
*/
|
|
1018
|
+
this.approveActivity = async (input) => {
|
|
1019
|
+
return this.request("/public/v1/submit/approve_activity", input);
|
|
1020
|
+
};
|
|
1021
|
+
/**
|
|
1022
|
+
* Produce a `SignedRequest` from `TApproveActivityBody` by using the client's `stamp` function.
|
|
1023
|
+
*
|
|
1024
|
+
* See also {@link ApproveActivity}.
|
|
1025
|
+
*/
|
|
1026
|
+
this.stampApproveActivity = async (input) => {
|
|
1027
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/approve_activity";
|
|
1028
|
+
const body = JSON.stringify(input);
|
|
1029
|
+
const stamp = await this.stamper.stamp(body);
|
|
1030
|
+
return {
|
|
1031
|
+
body: body,
|
|
1032
|
+
stamp: stamp,
|
|
1033
|
+
url: fullUrl,
|
|
1034
|
+
};
|
|
1035
|
+
};
|
|
1036
|
+
/**
|
|
1037
|
+
* Add API keys to an existing user.
|
|
1038
|
+
*
|
|
1039
|
+
* Sign the provided `TCreateApiKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_api_keys).
|
|
1040
|
+
*
|
|
1041
|
+
* See also {@link stampCreateApiKeys}.
|
|
1042
|
+
*/
|
|
1043
|
+
this.createApiKeys = async (input) => {
|
|
1044
|
+
return this.request("/public/v1/submit/create_api_keys", input);
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* Produce a `SignedRequest` from `TCreateApiKeysBody` by using the client's `stamp` function.
|
|
1048
|
+
*
|
|
1049
|
+
* See also {@link CreateApiKeys}.
|
|
1050
|
+
*/
|
|
1051
|
+
this.stampCreateApiKeys = async (input) => {
|
|
1052
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_api_keys";
|
|
1053
|
+
const body = JSON.stringify(input);
|
|
1054
|
+
const stamp = await this.stamper.stamp(body);
|
|
1055
|
+
return {
|
|
1056
|
+
body: body,
|
|
1057
|
+
stamp: stamp,
|
|
1058
|
+
url: fullUrl,
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
/**
|
|
1062
|
+
* Create API-only users in an existing organization.
|
|
1063
|
+
*
|
|
1064
|
+
* Sign the provided `TCreateApiOnlyUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_api_only_users).
|
|
1065
|
+
*
|
|
1066
|
+
* See also {@link stampCreateApiOnlyUsers}.
|
|
1067
|
+
*/
|
|
1068
|
+
this.createApiOnlyUsers = async (input) => {
|
|
1069
|
+
return this.request("/public/v1/submit/create_api_only_users", input);
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Produce a `SignedRequest` from `TCreateApiOnlyUsersBody` by using the client's `stamp` function.
|
|
1073
|
+
*
|
|
1074
|
+
* See also {@link CreateApiOnlyUsers}.
|
|
1075
|
+
*/
|
|
1076
|
+
this.stampCreateApiOnlyUsers = async (input) => {
|
|
1077
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_api_only_users";
|
|
1078
|
+
const body = JSON.stringify(input);
|
|
1079
|
+
const stamp = await this.stamper.stamp(body);
|
|
1080
|
+
return {
|
|
1081
|
+
body: body,
|
|
1082
|
+
stamp: stamp,
|
|
1083
|
+
url: fullUrl,
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
/**
|
|
1087
|
+
* Create authenticators to authenticate requests to ZeroXKey.
|
|
1088
|
+
*
|
|
1089
|
+
* Sign the provided `TCreateAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_authenticators).
|
|
1090
|
+
*
|
|
1091
|
+
* See also {@link stampCreateAuthenticators}.
|
|
1092
|
+
*/
|
|
1093
|
+
this.createAuthenticators = async (input) => {
|
|
1094
|
+
return this.request("/public/v1/submit/create_authenticators", input);
|
|
1095
|
+
};
|
|
1096
|
+
/**
|
|
1097
|
+
* Produce a `SignedRequest` from `TCreateAuthenticatorsBody` by using the client's `stamp` function.
|
|
1098
|
+
*
|
|
1099
|
+
* See also {@link CreateAuthenticators}.
|
|
1100
|
+
*/
|
|
1101
|
+
this.stampCreateAuthenticators = async (input) => {
|
|
1102
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_authenticators";
|
|
1103
|
+
const body = JSON.stringify(input);
|
|
1104
|
+
const stamp = await this.stamper.stamp(body);
|
|
1105
|
+
return {
|
|
1106
|
+
body: body,
|
|
1107
|
+
stamp: stamp,
|
|
1108
|
+
url: fullUrl,
|
|
1109
|
+
};
|
|
1110
|
+
};
|
|
1111
|
+
/**
|
|
1112
|
+
* Create a fiat on ramp provider credential
|
|
1113
|
+
*
|
|
1114
|
+
* Sign the provided `TCreateFiatOnRampCredentialBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_fiat_on_ramp_credential).
|
|
1115
|
+
*
|
|
1116
|
+
* See also {@link stampCreateFiatOnRampCredential}.
|
|
1117
|
+
*/
|
|
1118
|
+
this.createFiatOnRampCredential = async (input) => {
|
|
1119
|
+
return this.request("/public/v1/submit/create_fiat_on_ramp_credential", input);
|
|
1120
|
+
};
|
|
1121
|
+
/**
|
|
1122
|
+
* Produce a `SignedRequest` from `TCreateFiatOnRampCredentialBody` by using the client's `stamp` function.
|
|
1123
|
+
*
|
|
1124
|
+
* See also {@link CreateFiatOnRampCredential}.
|
|
1125
|
+
*/
|
|
1126
|
+
this.stampCreateFiatOnRampCredential = async (input) => {
|
|
1127
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_fiat_on_ramp_credential";
|
|
1128
|
+
const body = JSON.stringify(input);
|
|
1129
|
+
const stamp = await this.stamper.stamp(body);
|
|
1130
|
+
return {
|
|
1131
|
+
body: body,
|
|
1132
|
+
stamp: stamp,
|
|
1133
|
+
url: fullUrl,
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Create invitations to join an existing organization.
|
|
1138
|
+
*
|
|
1139
|
+
* Sign the provided `TCreateInvitationsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_invitations).
|
|
1140
|
+
*
|
|
1141
|
+
* See also {@link stampCreateInvitations}.
|
|
1142
|
+
*/
|
|
1143
|
+
this.createInvitations = async (input) => {
|
|
1144
|
+
return this.request("/public/v1/submit/create_invitations", input);
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Produce a `SignedRequest` from `TCreateInvitationsBody` by using the client's `stamp` function.
|
|
1148
|
+
*
|
|
1149
|
+
* See also {@link CreateInvitations}.
|
|
1150
|
+
*/
|
|
1151
|
+
this.stampCreateInvitations = async (input) => {
|
|
1152
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_invitations";
|
|
1153
|
+
const body = JSON.stringify(input);
|
|
1154
|
+
const stamp = await this.stamper.stamp(body);
|
|
1155
|
+
return {
|
|
1156
|
+
body: body,
|
|
1157
|
+
stamp: stamp,
|
|
1158
|
+
url: fullUrl,
|
|
1159
|
+
};
|
|
1160
|
+
};
|
|
1161
|
+
/**
|
|
1162
|
+
* Enable authentication for end users with an OAuth 2.0 provider
|
|
1163
|
+
*
|
|
1164
|
+
* Sign the provided `TCreateOauth2CredentialBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_oauth2_credential).
|
|
1165
|
+
*
|
|
1166
|
+
* See also {@link stampCreateOauth2Credential}.
|
|
1167
|
+
*/
|
|
1168
|
+
this.createOauth2Credential = async (input) => {
|
|
1169
|
+
return this.request("/public/v1/submit/create_oauth2_credential", input);
|
|
1170
|
+
};
|
|
1171
|
+
/**
|
|
1172
|
+
* Produce a `SignedRequest` from `TCreateOauth2CredentialBody` by using the client's `stamp` function.
|
|
1173
|
+
*
|
|
1174
|
+
* See also {@link CreateOauth2Credential}.
|
|
1175
|
+
*/
|
|
1176
|
+
this.stampCreateOauth2Credential = async (input) => {
|
|
1177
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_oauth2_credential";
|
|
1178
|
+
const body = JSON.stringify(input);
|
|
1179
|
+
const stamp = await this.stamper.stamp(body);
|
|
1180
|
+
return {
|
|
1181
|
+
body: body,
|
|
1182
|
+
stamp: stamp,
|
|
1183
|
+
url: fullUrl,
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
/**
|
|
1187
|
+
* Create Oauth providers for a specified user.
|
|
1188
|
+
*
|
|
1189
|
+
* Sign the provided `TCreateOauthProvidersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_oauth_providers).
|
|
1190
|
+
*
|
|
1191
|
+
* See also {@link stampCreateOauthProviders}.
|
|
1192
|
+
*/
|
|
1193
|
+
this.createOauthProviders = async (input) => {
|
|
1194
|
+
return this.request("/public/v1/submit/create_oauth_providers", input);
|
|
1195
|
+
};
|
|
1196
|
+
/**
|
|
1197
|
+
* Produce a `SignedRequest` from `TCreateOauthProvidersBody` by using the client's `stamp` function.
|
|
1198
|
+
*
|
|
1199
|
+
* See also {@link CreateOauthProviders}.
|
|
1200
|
+
*/
|
|
1201
|
+
this.stampCreateOauthProviders = async (input) => {
|
|
1202
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_oauth_providers";
|
|
1203
|
+
const body = JSON.stringify(input);
|
|
1204
|
+
const stamp = await this.stamper.stamp(body);
|
|
1205
|
+
return {
|
|
1206
|
+
body: body,
|
|
1207
|
+
stamp: stamp,
|
|
1208
|
+
url: fullUrl,
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
* Create new policies.
|
|
1213
|
+
*
|
|
1214
|
+
* Sign the provided `TCreatePoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_policies).
|
|
1215
|
+
*
|
|
1216
|
+
* See also {@link stampCreatePolicies}.
|
|
1217
|
+
*/
|
|
1218
|
+
this.createPolicies = async (input) => {
|
|
1219
|
+
return this.request("/public/v1/submit/create_policies", input);
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* Produce a `SignedRequest` from `TCreatePoliciesBody` by using the client's `stamp` function.
|
|
1223
|
+
*
|
|
1224
|
+
* See also {@link CreatePolicies}.
|
|
1225
|
+
*/
|
|
1226
|
+
this.stampCreatePolicies = async (input) => {
|
|
1227
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_policies";
|
|
1228
|
+
const body = JSON.stringify(input);
|
|
1229
|
+
const stamp = await this.stamper.stamp(body);
|
|
1230
|
+
return {
|
|
1231
|
+
body: body,
|
|
1232
|
+
stamp: stamp,
|
|
1233
|
+
url: fullUrl,
|
|
1234
|
+
};
|
|
1235
|
+
};
|
|
1236
|
+
/**
|
|
1237
|
+
* Create a new policy.
|
|
1238
|
+
*
|
|
1239
|
+
* Sign the provided `TCreatePolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_policy).
|
|
1240
|
+
*
|
|
1241
|
+
* See also {@link stampCreatePolicy}.
|
|
1242
|
+
*/
|
|
1243
|
+
this.createPolicy = async (input) => {
|
|
1244
|
+
return this.request("/public/v1/submit/create_policy", input);
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* Produce a `SignedRequest` from `TCreatePolicyBody` by using the client's `stamp` function.
|
|
1248
|
+
*
|
|
1249
|
+
* See also {@link CreatePolicy}.
|
|
1250
|
+
*/
|
|
1251
|
+
this.stampCreatePolicy = async (input) => {
|
|
1252
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_policy";
|
|
1253
|
+
const body = JSON.stringify(input);
|
|
1254
|
+
const stamp = await this.stamper.stamp(body);
|
|
1255
|
+
return {
|
|
1256
|
+
body: body,
|
|
1257
|
+
stamp: stamp,
|
|
1258
|
+
url: fullUrl,
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
/**
|
|
1262
|
+
* Create a private key tag and add it to private keys.
|
|
1263
|
+
*
|
|
1264
|
+
* Sign the provided `TCreatePrivateKeyTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_private_key_tag).
|
|
1265
|
+
*
|
|
1266
|
+
* See also {@link stampCreatePrivateKeyTag}.
|
|
1267
|
+
*/
|
|
1268
|
+
this.createPrivateKeyTag = async (input) => {
|
|
1269
|
+
return this.request("/public/v1/submit/create_private_key_tag", input);
|
|
1270
|
+
};
|
|
1271
|
+
/**
|
|
1272
|
+
* Produce a `SignedRequest` from `TCreatePrivateKeyTagBody` by using the client's `stamp` function.
|
|
1273
|
+
*
|
|
1274
|
+
* See also {@link CreatePrivateKeyTag}.
|
|
1275
|
+
*/
|
|
1276
|
+
this.stampCreatePrivateKeyTag = async (input) => {
|
|
1277
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_private_key_tag";
|
|
1278
|
+
const body = JSON.stringify(input);
|
|
1279
|
+
const stamp = await this.stamper.stamp(body);
|
|
1280
|
+
return {
|
|
1281
|
+
body: body,
|
|
1282
|
+
stamp: stamp,
|
|
1283
|
+
url: fullUrl,
|
|
1284
|
+
};
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* Create new private keys.
|
|
1288
|
+
*
|
|
1289
|
+
* Sign the provided `TCreatePrivateKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_private_keys).
|
|
1290
|
+
*
|
|
1291
|
+
* See also {@link stampCreatePrivateKeys}.
|
|
1292
|
+
*/
|
|
1293
|
+
this.createPrivateKeys = async (input) => {
|
|
1294
|
+
return this.request("/public/v1/submit/create_private_keys", input);
|
|
1295
|
+
};
|
|
1296
|
+
/**
|
|
1297
|
+
* Produce a `SignedRequest` from `TCreatePrivateKeysBody` by using the client's `stamp` function.
|
|
1298
|
+
*
|
|
1299
|
+
* See also {@link CreatePrivateKeys}.
|
|
1300
|
+
*/
|
|
1301
|
+
this.stampCreatePrivateKeys = async (input) => {
|
|
1302
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_private_keys";
|
|
1303
|
+
const body = JSON.stringify(input);
|
|
1304
|
+
const stamp = await this.stamper.stamp(body);
|
|
1305
|
+
return {
|
|
1306
|
+
body: body,
|
|
1307
|
+
stamp: stamp,
|
|
1308
|
+
url: fullUrl,
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1312
|
+
* Create a read only session for a user (valid for 1 hour).
|
|
1313
|
+
*
|
|
1314
|
+
* Sign the provided `TCreateReadOnlySessionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_read_only_session).
|
|
1315
|
+
*
|
|
1316
|
+
* See also {@link stampCreateReadOnlySession}.
|
|
1317
|
+
*/
|
|
1318
|
+
this.createReadOnlySession = async (input) => {
|
|
1319
|
+
return this.request("/public/v1/submit/create_read_only_session", input);
|
|
1320
|
+
};
|
|
1321
|
+
/**
|
|
1322
|
+
* Produce a `SignedRequest` from `TCreateReadOnlySessionBody` by using the client's `stamp` function.
|
|
1323
|
+
*
|
|
1324
|
+
* See also {@link CreateReadOnlySession}.
|
|
1325
|
+
*/
|
|
1326
|
+
this.stampCreateReadOnlySession = async (input) => {
|
|
1327
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_read_only_session";
|
|
1328
|
+
const body = JSON.stringify(input);
|
|
1329
|
+
const stamp = await this.stamper.stamp(body);
|
|
1330
|
+
return {
|
|
1331
|
+
body: body,
|
|
1332
|
+
stamp: stamp,
|
|
1333
|
+
url: fullUrl,
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
/**
|
|
1337
|
+
* Create a read write session for a user.
|
|
1338
|
+
*
|
|
1339
|
+
* Sign the provided `TCreateReadWriteSessionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_read_write_session).
|
|
1340
|
+
*
|
|
1341
|
+
* See also {@link stampCreateReadWriteSession}.
|
|
1342
|
+
*/
|
|
1343
|
+
this.createReadWriteSession = async (input) => {
|
|
1344
|
+
return this.request("/public/v1/submit/create_read_write_session", input);
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* Produce a `SignedRequest` from `TCreateReadWriteSessionBody` by using the client's `stamp` function.
|
|
1348
|
+
*
|
|
1349
|
+
* See also {@link CreateReadWriteSession}.
|
|
1350
|
+
*/
|
|
1351
|
+
this.stampCreateReadWriteSession = async (input) => {
|
|
1352
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_read_write_session";
|
|
1353
|
+
const body = JSON.stringify(input);
|
|
1354
|
+
const stamp = await this.stamper.stamp(body);
|
|
1355
|
+
return {
|
|
1356
|
+
body: body,
|
|
1357
|
+
stamp: stamp,
|
|
1358
|
+
url: fullUrl,
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
/**
|
|
1362
|
+
* Create an ABI/IDL in JSON.
|
|
1363
|
+
*
|
|
1364
|
+
* Sign the provided `TCreateSmartContractInterfaceBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_smart_contract_interface).
|
|
1365
|
+
*
|
|
1366
|
+
* See also {@link stampCreateSmartContractInterface}.
|
|
1367
|
+
*/
|
|
1368
|
+
this.createSmartContractInterface = async (input) => {
|
|
1369
|
+
return this.request("/public/v1/submit/create_smart_contract_interface", input);
|
|
1370
|
+
};
|
|
1371
|
+
/**
|
|
1372
|
+
* Produce a `SignedRequest` from `TCreateSmartContractInterfaceBody` by using the client's `stamp` function.
|
|
1373
|
+
*
|
|
1374
|
+
* See also {@link CreateSmartContractInterface}.
|
|
1375
|
+
*/
|
|
1376
|
+
this.stampCreateSmartContractInterface = async (input) => {
|
|
1377
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_smart_contract_interface";
|
|
1378
|
+
const body = JSON.stringify(input);
|
|
1379
|
+
const stamp = await this.stamper.stamp(body);
|
|
1380
|
+
return {
|
|
1381
|
+
body: body,
|
|
1382
|
+
stamp: stamp,
|
|
1383
|
+
url: fullUrl,
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
/**
|
|
1387
|
+
* Create a new sub-organization.
|
|
1388
|
+
*
|
|
1389
|
+
* Sign the provided `TCreateSubOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_sub_organization).
|
|
1390
|
+
*
|
|
1391
|
+
* See also {@link stampCreateSubOrganization}.
|
|
1392
|
+
*/
|
|
1393
|
+
this.createSubOrganization = async (input) => {
|
|
1394
|
+
return this.request("/public/v1/submit/create_sub_organization", input);
|
|
1395
|
+
};
|
|
1396
|
+
/**
|
|
1397
|
+
* Produce a `SignedRequest` from `TCreateSubOrganizationBody` by using the client's `stamp` function.
|
|
1398
|
+
*
|
|
1399
|
+
* See also {@link CreateSubOrganization}.
|
|
1400
|
+
*/
|
|
1401
|
+
this.stampCreateSubOrganization = async (input) => {
|
|
1402
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_sub_organization";
|
|
1403
|
+
const body = JSON.stringify(input);
|
|
1404
|
+
const stamp = await this.stamper.stamp(body);
|
|
1405
|
+
return {
|
|
1406
|
+
body: body,
|
|
1407
|
+
stamp: stamp,
|
|
1408
|
+
url: fullUrl,
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
/**
|
|
1412
|
+
* Create a user tag and add it to users.
|
|
1413
|
+
*
|
|
1414
|
+
* Sign the provided `TCreateUserTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_user_tag).
|
|
1415
|
+
*
|
|
1416
|
+
* See also {@link stampCreateUserTag}.
|
|
1417
|
+
*/
|
|
1418
|
+
this.createUserTag = async (input) => {
|
|
1419
|
+
return this.request("/public/v1/submit/create_user_tag", input);
|
|
1420
|
+
};
|
|
1421
|
+
/**
|
|
1422
|
+
* Produce a `SignedRequest` from `TCreateUserTagBody` by using the client's `stamp` function.
|
|
1423
|
+
*
|
|
1424
|
+
* See also {@link CreateUserTag}.
|
|
1425
|
+
*/
|
|
1426
|
+
this.stampCreateUserTag = async (input) => {
|
|
1427
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_user_tag";
|
|
1428
|
+
const body = JSON.stringify(input);
|
|
1429
|
+
const stamp = await this.stamper.stamp(body);
|
|
1430
|
+
return {
|
|
1431
|
+
body: body,
|
|
1432
|
+
stamp: stamp,
|
|
1433
|
+
url: fullUrl,
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
/**
|
|
1437
|
+
* Create users in an existing organization.
|
|
1438
|
+
*
|
|
1439
|
+
* Sign the provided `TCreateUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_users).
|
|
1440
|
+
*
|
|
1441
|
+
* See also {@link stampCreateUsers}.
|
|
1442
|
+
*/
|
|
1443
|
+
this.createUsers = async (input) => {
|
|
1444
|
+
return this.request("/public/v1/submit/create_users", input);
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* Produce a `SignedRequest` from `TCreateUsersBody` by using the client's `stamp` function.
|
|
1448
|
+
*
|
|
1449
|
+
* See also {@link CreateUsers}.
|
|
1450
|
+
*/
|
|
1451
|
+
this.stampCreateUsers = async (input) => {
|
|
1452
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_users";
|
|
1453
|
+
const body = JSON.stringify(input);
|
|
1454
|
+
const stamp = await this.stamper.stamp(body);
|
|
1455
|
+
return {
|
|
1456
|
+
body: body,
|
|
1457
|
+
stamp: stamp,
|
|
1458
|
+
url: fullUrl,
|
|
1459
|
+
};
|
|
1460
|
+
};
|
|
1461
|
+
/**
|
|
1462
|
+
* Create a wallet and derive addresses.
|
|
1463
|
+
*
|
|
1464
|
+
* Sign the provided `TCreateWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_wallet).
|
|
1465
|
+
*
|
|
1466
|
+
* See also {@link stampCreateWallet}.
|
|
1467
|
+
*/
|
|
1468
|
+
this.createWallet = async (input) => {
|
|
1469
|
+
return this.request("/public/v1/submit/create_wallet", input);
|
|
1470
|
+
};
|
|
1471
|
+
/**
|
|
1472
|
+
* Produce a `SignedRequest` from `TCreateWalletBody` by using the client's `stamp` function.
|
|
1473
|
+
*
|
|
1474
|
+
* See also {@link CreateWallet}.
|
|
1475
|
+
*/
|
|
1476
|
+
this.stampCreateWallet = async (input) => {
|
|
1477
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_wallet";
|
|
1478
|
+
const body = JSON.stringify(input);
|
|
1479
|
+
const stamp = await this.stamper.stamp(body);
|
|
1480
|
+
return {
|
|
1481
|
+
body: body,
|
|
1482
|
+
stamp: stamp,
|
|
1483
|
+
url: fullUrl,
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
/**
|
|
1487
|
+
* Derive additional addresses using an existing wallet.
|
|
1488
|
+
*
|
|
1489
|
+
* Sign the provided `TCreateWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_wallet_accounts).
|
|
1490
|
+
*
|
|
1491
|
+
* See also {@link stampCreateWalletAccounts}.
|
|
1492
|
+
*/
|
|
1493
|
+
this.createWalletAccounts = async (input) => {
|
|
1494
|
+
return this.request("/public/v1/submit/create_wallet_accounts", input);
|
|
1495
|
+
};
|
|
1496
|
+
/**
|
|
1497
|
+
* Produce a `SignedRequest` from `TCreateWalletAccountsBody` by using the client's `stamp` function.
|
|
1498
|
+
*
|
|
1499
|
+
* See also {@link CreateWalletAccounts}.
|
|
1500
|
+
*/
|
|
1501
|
+
this.stampCreateWalletAccounts = async (input) => {
|
|
1502
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_wallet_accounts";
|
|
1503
|
+
const body = JSON.stringify(input);
|
|
1504
|
+
const stamp = await this.stamper.stamp(body);
|
|
1505
|
+
return {
|
|
1506
|
+
body: body,
|
|
1507
|
+
stamp: stamp,
|
|
1508
|
+
url: fullUrl,
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
/**
|
|
1512
|
+
* Create a webhook endpoint for an organization.
|
|
1513
|
+
*
|
|
1514
|
+
* Sign the provided `TCreateWebhookEndpointBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_webhook_endpoint).
|
|
1515
|
+
*
|
|
1516
|
+
* See also {@link stampCreateWebhookEndpoint}.
|
|
1517
|
+
*/
|
|
1518
|
+
this.createWebhookEndpoint = async (input) => {
|
|
1519
|
+
return this.request("/public/v1/submit/create_webhook_endpoint", input);
|
|
1520
|
+
};
|
|
1521
|
+
/**
|
|
1522
|
+
* Produce a `SignedRequest` from `TCreateWebhookEndpointBody` by using the client's `stamp` function.
|
|
1523
|
+
*
|
|
1524
|
+
* See also {@link CreateWebhookEndpoint}.
|
|
1525
|
+
*/
|
|
1526
|
+
this.stampCreateWebhookEndpoint = async (input) => {
|
|
1527
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/create_webhook_endpoint";
|
|
1528
|
+
const body = JSON.stringify(input);
|
|
1529
|
+
const stamp = await this.stamper.stamp(body);
|
|
1530
|
+
return {
|
|
1531
|
+
body: body,
|
|
1532
|
+
stamp: stamp,
|
|
1533
|
+
url: fullUrl,
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
/**
|
|
1537
|
+
* Remove api keys from a user.
|
|
1538
|
+
*
|
|
1539
|
+
* Sign the provided `TDeleteApiKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_api_keys).
|
|
1540
|
+
*
|
|
1541
|
+
* See also {@link stampDeleteApiKeys}.
|
|
1542
|
+
*/
|
|
1543
|
+
this.deleteApiKeys = async (input) => {
|
|
1544
|
+
return this.request("/public/v1/submit/delete_api_keys", input);
|
|
1545
|
+
};
|
|
1546
|
+
/**
|
|
1547
|
+
* Produce a `SignedRequest` from `TDeleteApiKeysBody` by using the client's `stamp` function.
|
|
1548
|
+
*
|
|
1549
|
+
* See also {@link DeleteApiKeys}.
|
|
1550
|
+
*/
|
|
1551
|
+
this.stampDeleteApiKeys = async (input) => {
|
|
1552
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_api_keys";
|
|
1553
|
+
const body = JSON.stringify(input);
|
|
1554
|
+
const stamp = await this.stamper.stamp(body);
|
|
1555
|
+
return {
|
|
1556
|
+
body: body,
|
|
1557
|
+
stamp: stamp,
|
|
1558
|
+
url: fullUrl,
|
|
1559
|
+
};
|
|
1560
|
+
};
|
|
1561
|
+
/**
|
|
1562
|
+
* Remove authenticators from a user.
|
|
1563
|
+
*
|
|
1564
|
+
* Sign the provided `TDeleteAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_authenticators).
|
|
1565
|
+
*
|
|
1566
|
+
* See also {@link stampDeleteAuthenticators}.
|
|
1567
|
+
*/
|
|
1568
|
+
this.deleteAuthenticators = async (input) => {
|
|
1569
|
+
return this.request("/public/v1/submit/delete_authenticators", input);
|
|
1570
|
+
};
|
|
1571
|
+
/**
|
|
1572
|
+
* Produce a `SignedRequest` from `TDeleteAuthenticatorsBody` by using the client's `stamp` function.
|
|
1573
|
+
*
|
|
1574
|
+
* See also {@link DeleteAuthenticators}.
|
|
1575
|
+
*/
|
|
1576
|
+
this.stampDeleteAuthenticators = async (input) => {
|
|
1577
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_authenticators";
|
|
1578
|
+
const body = JSON.stringify(input);
|
|
1579
|
+
const stamp = await this.stamper.stamp(body);
|
|
1580
|
+
return {
|
|
1581
|
+
body: body,
|
|
1582
|
+
stamp: stamp,
|
|
1583
|
+
url: fullUrl,
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
/**
|
|
1587
|
+
* Delete a fiat on ramp provider credential
|
|
1588
|
+
*
|
|
1589
|
+
* Sign the provided `TDeleteFiatOnRampCredentialBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_fiat_on_ramp_credential).
|
|
1590
|
+
*
|
|
1591
|
+
* See also {@link stampDeleteFiatOnRampCredential}.
|
|
1592
|
+
*/
|
|
1593
|
+
this.deleteFiatOnRampCredential = async (input) => {
|
|
1594
|
+
return this.request("/public/v1/submit/delete_fiat_on_ramp_credential", input);
|
|
1595
|
+
};
|
|
1596
|
+
/**
|
|
1597
|
+
* Produce a `SignedRequest` from `TDeleteFiatOnRampCredentialBody` by using the client's `stamp` function.
|
|
1598
|
+
*
|
|
1599
|
+
* See also {@link DeleteFiatOnRampCredential}.
|
|
1600
|
+
*/
|
|
1601
|
+
this.stampDeleteFiatOnRampCredential = async (input) => {
|
|
1602
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_fiat_on_ramp_credential";
|
|
1603
|
+
const body = JSON.stringify(input);
|
|
1604
|
+
const stamp = await this.stamper.stamp(body);
|
|
1605
|
+
return {
|
|
1606
|
+
body: body,
|
|
1607
|
+
stamp: stamp,
|
|
1608
|
+
url: fullUrl,
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
/**
|
|
1612
|
+
* Delete an existing invitation.
|
|
1613
|
+
*
|
|
1614
|
+
* Sign the provided `TDeleteInvitationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_invitation).
|
|
1615
|
+
*
|
|
1616
|
+
* See also {@link stampDeleteInvitation}.
|
|
1617
|
+
*/
|
|
1618
|
+
this.deleteInvitation = async (input) => {
|
|
1619
|
+
return this.request("/public/v1/submit/delete_invitation", input);
|
|
1620
|
+
};
|
|
1621
|
+
/**
|
|
1622
|
+
* Produce a `SignedRequest` from `TDeleteInvitationBody` by using the client's `stamp` function.
|
|
1623
|
+
*
|
|
1624
|
+
* See also {@link DeleteInvitation}.
|
|
1625
|
+
*/
|
|
1626
|
+
this.stampDeleteInvitation = async (input) => {
|
|
1627
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_invitation";
|
|
1628
|
+
const body = JSON.stringify(input);
|
|
1629
|
+
const stamp = await this.stamper.stamp(body);
|
|
1630
|
+
return {
|
|
1631
|
+
body: body,
|
|
1632
|
+
stamp: stamp,
|
|
1633
|
+
url: fullUrl,
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
/**
|
|
1637
|
+
* Disable authentication for end users with an OAuth 2.0 provider
|
|
1638
|
+
*
|
|
1639
|
+
* Sign the provided `TDeleteOauth2CredentialBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_oauth2_credential).
|
|
1640
|
+
*
|
|
1641
|
+
* See also {@link stampDeleteOauth2Credential}.
|
|
1642
|
+
*/
|
|
1643
|
+
this.deleteOauth2Credential = async (input) => {
|
|
1644
|
+
return this.request("/public/v1/submit/delete_oauth2_credential", input);
|
|
1645
|
+
};
|
|
1646
|
+
/**
|
|
1647
|
+
* Produce a `SignedRequest` from `TDeleteOauth2CredentialBody` by using the client's `stamp` function.
|
|
1648
|
+
*
|
|
1649
|
+
* See also {@link DeleteOauth2Credential}.
|
|
1650
|
+
*/
|
|
1651
|
+
this.stampDeleteOauth2Credential = async (input) => {
|
|
1652
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_oauth2_credential";
|
|
1653
|
+
const body = JSON.stringify(input);
|
|
1654
|
+
const stamp = await this.stamper.stamp(body);
|
|
1655
|
+
return {
|
|
1656
|
+
body: body,
|
|
1657
|
+
stamp: stamp,
|
|
1658
|
+
url: fullUrl,
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
/**
|
|
1662
|
+
* Remove Oauth providers for a specified user.
|
|
1663
|
+
*
|
|
1664
|
+
* Sign the provided `TDeleteOauthProvidersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_oauth_providers).
|
|
1665
|
+
*
|
|
1666
|
+
* See also {@link stampDeleteOauthProviders}.
|
|
1667
|
+
*/
|
|
1668
|
+
this.deleteOauthProviders = async (input) => {
|
|
1669
|
+
return this.request("/public/v1/submit/delete_oauth_providers", input);
|
|
1670
|
+
};
|
|
1671
|
+
/**
|
|
1672
|
+
* Produce a `SignedRequest` from `TDeleteOauthProvidersBody` by using the client's `stamp` function.
|
|
1673
|
+
*
|
|
1674
|
+
* See also {@link DeleteOauthProviders}.
|
|
1675
|
+
*/
|
|
1676
|
+
this.stampDeleteOauthProviders = async (input) => {
|
|
1677
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_oauth_providers";
|
|
1678
|
+
const body = JSON.stringify(input);
|
|
1679
|
+
const stamp = await this.stamper.stamp(body);
|
|
1680
|
+
return {
|
|
1681
|
+
body: body,
|
|
1682
|
+
stamp: stamp,
|
|
1683
|
+
url: fullUrl,
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1686
|
+
/**
|
|
1687
|
+
* Delete existing policies.
|
|
1688
|
+
*
|
|
1689
|
+
* Sign the provided `TDeletePoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_policies).
|
|
1690
|
+
*
|
|
1691
|
+
* See also {@link stampDeletePolicies}.
|
|
1692
|
+
*/
|
|
1693
|
+
this.deletePolicies = async (input) => {
|
|
1694
|
+
return this.request("/public/v1/submit/delete_policies", input);
|
|
1695
|
+
};
|
|
1696
|
+
/**
|
|
1697
|
+
* Produce a `SignedRequest` from `TDeletePoliciesBody` by using the client's `stamp` function.
|
|
1698
|
+
*
|
|
1699
|
+
* See also {@link DeletePolicies}.
|
|
1700
|
+
*/
|
|
1701
|
+
this.stampDeletePolicies = async (input) => {
|
|
1702
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_policies";
|
|
1703
|
+
const body = JSON.stringify(input);
|
|
1704
|
+
const stamp = await this.stamper.stamp(body);
|
|
1705
|
+
return {
|
|
1706
|
+
body: body,
|
|
1707
|
+
stamp: stamp,
|
|
1708
|
+
url: fullUrl,
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1711
|
+
/**
|
|
1712
|
+
* Delete an existing policy.
|
|
1713
|
+
*
|
|
1714
|
+
* Sign the provided `TDeletePolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_policy).
|
|
1715
|
+
*
|
|
1716
|
+
* See also {@link stampDeletePolicy}.
|
|
1717
|
+
*/
|
|
1718
|
+
this.deletePolicy = async (input) => {
|
|
1719
|
+
return this.request("/public/v1/submit/delete_policy", input);
|
|
1720
|
+
};
|
|
1721
|
+
/**
|
|
1722
|
+
* Produce a `SignedRequest` from `TDeletePolicyBody` by using the client's `stamp` function.
|
|
1723
|
+
*
|
|
1724
|
+
* See also {@link DeletePolicy}.
|
|
1725
|
+
*/
|
|
1726
|
+
this.stampDeletePolicy = async (input) => {
|
|
1727
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_policy";
|
|
1728
|
+
const body = JSON.stringify(input);
|
|
1729
|
+
const stamp = await this.stamper.stamp(body);
|
|
1730
|
+
return {
|
|
1731
|
+
body: body,
|
|
1732
|
+
stamp: stamp,
|
|
1733
|
+
url: fullUrl,
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
/**
|
|
1737
|
+
* Delete private key tags within an organization.
|
|
1738
|
+
*
|
|
1739
|
+
* Sign the provided `TDeletePrivateKeyTagsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_private_key_tags).
|
|
1740
|
+
*
|
|
1741
|
+
* See also {@link stampDeletePrivateKeyTags}.
|
|
1742
|
+
*/
|
|
1743
|
+
this.deletePrivateKeyTags = async (input) => {
|
|
1744
|
+
return this.request("/public/v1/submit/delete_private_key_tags", input);
|
|
1745
|
+
};
|
|
1746
|
+
/**
|
|
1747
|
+
* Produce a `SignedRequest` from `TDeletePrivateKeyTagsBody` by using the client's `stamp` function.
|
|
1748
|
+
*
|
|
1749
|
+
* See also {@link DeletePrivateKeyTags}.
|
|
1750
|
+
*/
|
|
1751
|
+
this.stampDeletePrivateKeyTags = async (input) => {
|
|
1752
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_private_key_tags";
|
|
1753
|
+
const body = JSON.stringify(input);
|
|
1754
|
+
const stamp = await this.stamper.stamp(body);
|
|
1755
|
+
return {
|
|
1756
|
+
body: body,
|
|
1757
|
+
stamp: stamp,
|
|
1758
|
+
url: fullUrl,
|
|
1759
|
+
};
|
|
1760
|
+
};
|
|
1761
|
+
/**
|
|
1762
|
+
* Delete private keys for an organization.
|
|
1763
|
+
*
|
|
1764
|
+
* Sign the provided `TDeletePrivateKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_private_keys).
|
|
1765
|
+
*
|
|
1766
|
+
* See also {@link stampDeletePrivateKeys}.
|
|
1767
|
+
*/
|
|
1768
|
+
this.deletePrivateKeys = async (input) => {
|
|
1769
|
+
return this.request("/public/v1/submit/delete_private_keys", input);
|
|
1770
|
+
};
|
|
1771
|
+
/**
|
|
1772
|
+
* Produce a `SignedRequest` from `TDeletePrivateKeysBody` by using the client's `stamp` function.
|
|
1773
|
+
*
|
|
1774
|
+
* See also {@link DeletePrivateKeys}.
|
|
1775
|
+
*/
|
|
1776
|
+
this.stampDeletePrivateKeys = async (input) => {
|
|
1777
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_private_keys";
|
|
1778
|
+
const body = JSON.stringify(input);
|
|
1779
|
+
const stamp = await this.stamper.stamp(body);
|
|
1780
|
+
return {
|
|
1781
|
+
body: body,
|
|
1782
|
+
stamp: stamp,
|
|
1783
|
+
url: fullUrl,
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1786
|
+
/**
|
|
1787
|
+
* Delete a smart contract interface.
|
|
1788
|
+
*
|
|
1789
|
+
* Sign the provided `TDeleteSmartContractInterfaceBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_smart_contract_interface).
|
|
1790
|
+
*
|
|
1791
|
+
* See also {@link stampDeleteSmartContractInterface}.
|
|
1792
|
+
*/
|
|
1793
|
+
this.deleteSmartContractInterface = async (input) => {
|
|
1794
|
+
return this.request("/public/v1/submit/delete_smart_contract_interface", input);
|
|
1795
|
+
};
|
|
1796
|
+
/**
|
|
1797
|
+
* Produce a `SignedRequest` from `TDeleteSmartContractInterfaceBody` by using the client's `stamp` function.
|
|
1798
|
+
*
|
|
1799
|
+
* See also {@link DeleteSmartContractInterface}.
|
|
1800
|
+
*/
|
|
1801
|
+
this.stampDeleteSmartContractInterface = async (input) => {
|
|
1802
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_smart_contract_interface";
|
|
1803
|
+
const body = JSON.stringify(input);
|
|
1804
|
+
const stamp = await this.stamper.stamp(body);
|
|
1805
|
+
return {
|
|
1806
|
+
body: body,
|
|
1807
|
+
stamp: stamp,
|
|
1808
|
+
url: fullUrl,
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
/**
|
|
1812
|
+
* Delete a sub-organization.
|
|
1813
|
+
*
|
|
1814
|
+
* Sign the provided `TDeleteSubOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_sub_organization).
|
|
1815
|
+
*
|
|
1816
|
+
* See also {@link stampDeleteSubOrganization}.
|
|
1817
|
+
*/
|
|
1818
|
+
this.deleteSubOrganization = async (input) => {
|
|
1819
|
+
return this.request("/public/v1/submit/delete_sub_organization", input);
|
|
1820
|
+
};
|
|
1821
|
+
/**
|
|
1822
|
+
* Produce a `SignedRequest` from `TDeleteSubOrganizationBody` by using the client's `stamp` function.
|
|
1823
|
+
*
|
|
1824
|
+
* See also {@link DeleteSubOrganization}.
|
|
1825
|
+
*/
|
|
1826
|
+
this.stampDeleteSubOrganization = async (input) => {
|
|
1827
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_sub_organization";
|
|
1828
|
+
const body = JSON.stringify(input);
|
|
1829
|
+
const stamp = await this.stamper.stamp(body);
|
|
1830
|
+
return {
|
|
1831
|
+
body: body,
|
|
1832
|
+
stamp: stamp,
|
|
1833
|
+
url: fullUrl,
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Delete user tags within an organization.
|
|
1838
|
+
*
|
|
1839
|
+
* Sign the provided `TDeleteUserTagsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_user_tags).
|
|
1840
|
+
*
|
|
1841
|
+
* See also {@link stampDeleteUserTags}.
|
|
1842
|
+
*/
|
|
1843
|
+
this.deleteUserTags = async (input) => {
|
|
1844
|
+
return this.request("/public/v1/submit/delete_user_tags", input);
|
|
1845
|
+
};
|
|
1846
|
+
/**
|
|
1847
|
+
* Produce a `SignedRequest` from `TDeleteUserTagsBody` by using the client's `stamp` function.
|
|
1848
|
+
*
|
|
1849
|
+
* See also {@link DeleteUserTags}.
|
|
1850
|
+
*/
|
|
1851
|
+
this.stampDeleteUserTags = async (input) => {
|
|
1852
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_user_tags";
|
|
1853
|
+
const body = JSON.stringify(input);
|
|
1854
|
+
const stamp = await this.stamper.stamp(body);
|
|
1855
|
+
return {
|
|
1856
|
+
body: body,
|
|
1857
|
+
stamp: stamp,
|
|
1858
|
+
url: fullUrl,
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
/**
|
|
1862
|
+
* Delete users within an organization.
|
|
1863
|
+
*
|
|
1864
|
+
* Sign the provided `TDeleteUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_users).
|
|
1865
|
+
*
|
|
1866
|
+
* See also {@link stampDeleteUsers}.
|
|
1867
|
+
*/
|
|
1868
|
+
this.deleteUsers = async (input) => {
|
|
1869
|
+
return this.request("/public/v1/submit/delete_users", input);
|
|
1870
|
+
};
|
|
1871
|
+
/**
|
|
1872
|
+
* Produce a `SignedRequest` from `TDeleteUsersBody` by using the client's `stamp` function.
|
|
1873
|
+
*
|
|
1874
|
+
* See also {@link DeleteUsers}.
|
|
1875
|
+
*/
|
|
1876
|
+
this.stampDeleteUsers = async (input) => {
|
|
1877
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_users";
|
|
1878
|
+
const body = JSON.stringify(input);
|
|
1879
|
+
const stamp = await this.stamper.stamp(body);
|
|
1880
|
+
return {
|
|
1881
|
+
body: body,
|
|
1882
|
+
stamp: stamp,
|
|
1883
|
+
url: fullUrl,
|
|
1884
|
+
};
|
|
1885
|
+
};
|
|
1886
|
+
/**
|
|
1887
|
+
* Delete wallet accounts for an organization.
|
|
1888
|
+
*
|
|
1889
|
+
* Sign the provided `TDeleteWalletAccountsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_wallet_accounts).
|
|
1890
|
+
*
|
|
1891
|
+
* See also {@link stampDeleteWalletAccounts}.
|
|
1892
|
+
*/
|
|
1893
|
+
this.deleteWalletAccounts = async (input) => {
|
|
1894
|
+
return this.request("/public/v1/submit/delete_wallet_accounts", input);
|
|
1895
|
+
};
|
|
1896
|
+
/**
|
|
1897
|
+
* Produce a `SignedRequest` from `TDeleteWalletAccountsBody` by using the client's `stamp` function.
|
|
1898
|
+
*
|
|
1899
|
+
* See also {@link DeleteWalletAccounts}.
|
|
1900
|
+
*/
|
|
1901
|
+
this.stampDeleteWalletAccounts = async (input) => {
|
|
1902
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_wallet_accounts";
|
|
1903
|
+
const body = JSON.stringify(input);
|
|
1904
|
+
const stamp = await this.stamper.stamp(body);
|
|
1905
|
+
return {
|
|
1906
|
+
body: body,
|
|
1907
|
+
stamp: stamp,
|
|
1908
|
+
url: fullUrl,
|
|
1909
|
+
};
|
|
1910
|
+
};
|
|
1911
|
+
/**
|
|
1912
|
+
* Delete wallets for an organization.
|
|
1913
|
+
*
|
|
1914
|
+
* Sign the provided `TDeleteWalletsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_wallets).
|
|
1915
|
+
*
|
|
1916
|
+
* See also {@link stampDeleteWallets}.
|
|
1917
|
+
*/
|
|
1918
|
+
this.deleteWallets = async (input) => {
|
|
1919
|
+
return this.request("/public/v1/submit/delete_wallets", input);
|
|
1920
|
+
};
|
|
1921
|
+
/**
|
|
1922
|
+
* Produce a `SignedRequest` from `TDeleteWalletsBody` by using the client's `stamp` function.
|
|
1923
|
+
*
|
|
1924
|
+
* See also {@link DeleteWallets}.
|
|
1925
|
+
*/
|
|
1926
|
+
this.stampDeleteWallets = async (input) => {
|
|
1927
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_wallets";
|
|
1928
|
+
const body = JSON.stringify(input);
|
|
1929
|
+
const stamp = await this.stamper.stamp(body);
|
|
1930
|
+
return {
|
|
1931
|
+
body: body,
|
|
1932
|
+
stamp: stamp,
|
|
1933
|
+
url: fullUrl,
|
|
1934
|
+
};
|
|
1935
|
+
};
|
|
1936
|
+
/**
|
|
1937
|
+
* Delete a webhook endpoint for an organization.
|
|
1938
|
+
*
|
|
1939
|
+
* Sign the provided `TDeleteWebhookEndpointBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_webhook_endpoint).
|
|
1940
|
+
*
|
|
1941
|
+
* See also {@link stampDeleteWebhookEndpoint}.
|
|
1942
|
+
*/
|
|
1943
|
+
this.deleteWebhookEndpoint = async (input) => {
|
|
1944
|
+
return this.request("/public/v1/submit/delete_webhook_endpoint", input);
|
|
1945
|
+
};
|
|
1946
|
+
/**
|
|
1947
|
+
* Produce a `SignedRequest` from `TDeleteWebhookEndpointBody` by using the client's `stamp` function.
|
|
1948
|
+
*
|
|
1949
|
+
* See also {@link DeleteWebhookEndpoint}.
|
|
1950
|
+
*/
|
|
1951
|
+
this.stampDeleteWebhookEndpoint = async (input) => {
|
|
1952
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/delete_webhook_endpoint";
|
|
1953
|
+
const body = JSON.stringify(input);
|
|
1954
|
+
const stamp = await this.stamper.stamp(body);
|
|
1955
|
+
return {
|
|
1956
|
+
body: body,
|
|
1957
|
+
stamp: stamp,
|
|
1958
|
+
url: fullUrl,
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
/**
|
|
1962
|
+
* Authenticate a user via email.
|
|
1963
|
+
*
|
|
1964
|
+
* Sign the provided `TEmailAuthBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/email_auth).
|
|
1965
|
+
*
|
|
1966
|
+
* See also {@link stampEmailAuth}.
|
|
1967
|
+
*/
|
|
1968
|
+
this.emailAuth = async (input) => {
|
|
1969
|
+
return this.request("/public/v1/submit/email_auth", input);
|
|
1970
|
+
};
|
|
1971
|
+
/**
|
|
1972
|
+
* Produce a `SignedRequest` from `TEmailAuthBody` by using the client's `stamp` function.
|
|
1973
|
+
*
|
|
1974
|
+
* See also {@link EmailAuth}.
|
|
1975
|
+
*/
|
|
1976
|
+
this.stampEmailAuth = async (input) => {
|
|
1977
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/email_auth";
|
|
1978
|
+
const body = JSON.stringify(input);
|
|
1979
|
+
const stamp = await this.stamper.stamp(body);
|
|
1980
|
+
return {
|
|
1981
|
+
body: body,
|
|
1982
|
+
stamp: stamp,
|
|
1983
|
+
url: fullUrl,
|
|
1984
|
+
};
|
|
1985
|
+
};
|
|
1986
|
+
/**
|
|
1987
|
+
* Submit a transaction intent describing an EVM transaction you would like to broadcast.
|
|
1988
|
+
*
|
|
1989
|
+
* Sign the provided `TEthSendTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/eth_send_transaction).
|
|
1990
|
+
*
|
|
1991
|
+
* See also {@link stampEthSendTransaction}.
|
|
1992
|
+
*/
|
|
1993
|
+
this.ethSendTransaction = async (input) => {
|
|
1994
|
+
return this.request("/public/v1/submit/eth_send_transaction", input);
|
|
1995
|
+
};
|
|
1996
|
+
/**
|
|
1997
|
+
* Produce a `SignedRequest` from `TEthSendTransactionBody` by using the client's `stamp` function.
|
|
1998
|
+
*
|
|
1999
|
+
* See also {@link EthSendTransaction}.
|
|
2000
|
+
*/
|
|
2001
|
+
this.stampEthSendTransaction = async (input) => {
|
|
2002
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/eth_send_transaction";
|
|
2003
|
+
const body = JSON.stringify(input);
|
|
2004
|
+
const stamp = await this.stamper.stamp(body);
|
|
2005
|
+
return {
|
|
2006
|
+
body: body,
|
|
2007
|
+
stamp: stamp,
|
|
2008
|
+
url: fullUrl,
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
/**
|
|
2012
|
+
* Export a private key.
|
|
2013
|
+
*
|
|
2014
|
+
* Sign the provided `TExportPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/export_private_key).
|
|
2015
|
+
*
|
|
2016
|
+
* See also {@link stampExportPrivateKey}.
|
|
2017
|
+
*/
|
|
2018
|
+
this.exportPrivateKey = async (input) => {
|
|
2019
|
+
return this.request("/public/v1/submit/export_private_key", input);
|
|
2020
|
+
};
|
|
2021
|
+
/**
|
|
2022
|
+
* Produce a `SignedRequest` from `TExportPrivateKeyBody` by using the client's `stamp` function.
|
|
2023
|
+
*
|
|
2024
|
+
* See also {@link ExportPrivateKey}.
|
|
2025
|
+
*/
|
|
2026
|
+
this.stampExportPrivateKey = async (input) => {
|
|
2027
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/export_private_key";
|
|
2028
|
+
const body = JSON.stringify(input);
|
|
2029
|
+
const stamp = await this.stamper.stamp(body);
|
|
2030
|
+
return {
|
|
2031
|
+
body: body,
|
|
2032
|
+
stamp: stamp,
|
|
2033
|
+
url: fullUrl,
|
|
2034
|
+
};
|
|
2035
|
+
};
|
|
2036
|
+
/**
|
|
2037
|
+
* Export a wallet.
|
|
2038
|
+
*
|
|
2039
|
+
* Sign the provided `TExportWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/export_wallet).
|
|
2040
|
+
*
|
|
2041
|
+
* See also {@link stampExportWallet}.
|
|
2042
|
+
*/
|
|
2043
|
+
this.exportWallet = async (input) => {
|
|
2044
|
+
return this.request("/public/v1/submit/export_wallet", input);
|
|
2045
|
+
};
|
|
2046
|
+
/**
|
|
2047
|
+
* Produce a `SignedRequest` from `TExportWalletBody` by using the client's `stamp` function.
|
|
2048
|
+
*
|
|
2049
|
+
* See also {@link ExportWallet}.
|
|
2050
|
+
*/
|
|
2051
|
+
this.stampExportWallet = async (input) => {
|
|
2052
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/export_wallet";
|
|
2053
|
+
const body = JSON.stringify(input);
|
|
2054
|
+
const stamp = await this.stamper.stamp(body);
|
|
2055
|
+
return {
|
|
2056
|
+
body: body,
|
|
2057
|
+
stamp: stamp,
|
|
2058
|
+
url: fullUrl,
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
/**
|
|
2062
|
+
* Export a wallet account.
|
|
2063
|
+
*
|
|
2064
|
+
* Sign the provided `TExportWalletAccountBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/export_wallet_account).
|
|
2065
|
+
*
|
|
2066
|
+
* See also {@link stampExportWalletAccount}.
|
|
2067
|
+
*/
|
|
2068
|
+
this.exportWalletAccount = async (input) => {
|
|
2069
|
+
return this.request("/public/v1/submit/export_wallet_account", input);
|
|
2070
|
+
};
|
|
2071
|
+
/**
|
|
2072
|
+
* Produce a `SignedRequest` from `TExportWalletAccountBody` by using the client's `stamp` function.
|
|
2073
|
+
*
|
|
2074
|
+
* See also {@link ExportWalletAccount}.
|
|
2075
|
+
*/
|
|
2076
|
+
this.stampExportWalletAccount = async (input) => {
|
|
2077
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/export_wallet_account";
|
|
2078
|
+
const body = JSON.stringify(input);
|
|
2079
|
+
const stamp = await this.stamper.stamp(body);
|
|
2080
|
+
return {
|
|
2081
|
+
body: body,
|
|
2082
|
+
stamp: stamp,
|
|
2083
|
+
url: fullUrl,
|
|
2084
|
+
};
|
|
2085
|
+
};
|
|
2086
|
+
/**
|
|
2087
|
+
* Import a private key.
|
|
2088
|
+
*
|
|
2089
|
+
* Sign the provided `TImportPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/import_private_key).
|
|
2090
|
+
*
|
|
2091
|
+
* See also {@link stampImportPrivateKey}.
|
|
2092
|
+
*/
|
|
2093
|
+
this.importPrivateKey = async (input) => {
|
|
2094
|
+
return this.request("/public/v1/submit/import_private_key", input);
|
|
2095
|
+
};
|
|
2096
|
+
/**
|
|
2097
|
+
* Produce a `SignedRequest` from `TImportPrivateKeyBody` by using the client's `stamp` function.
|
|
2098
|
+
*
|
|
2099
|
+
* See also {@link ImportPrivateKey}.
|
|
2100
|
+
*/
|
|
2101
|
+
this.stampImportPrivateKey = async (input) => {
|
|
2102
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/import_private_key";
|
|
2103
|
+
const body = JSON.stringify(input);
|
|
2104
|
+
const stamp = await this.stamper.stamp(body);
|
|
2105
|
+
return {
|
|
2106
|
+
body: body,
|
|
2107
|
+
stamp: stamp,
|
|
2108
|
+
url: fullUrl,
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2111
|
+
/**
|
|
2112
|
+
* Import a wallet.
|
|
2113
|
+
*
|
|
2114
|
+
* Sign the provided `TImportWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/import_wallet).
|
|
2115
|
+
*
|
|
2116
|
+
* See also {@link stampImportWallet}.
|
|
2117
|
+
*/
|
|
2118
|
+
this.importWallet = async (input) => {
|
|
2119
|
+
return this.request("/public/v1/submit/import_wallet", input);
|
|
2120
|
+
};
|
|
2121
|
+
/**
|
|
2122
|
+
* Produce a `SignedRequest` from `TImportWalletBody` by using the client's `stamp` function.
|
|
2123
|
+
*
|
|
2124
|
+
* See also {@link ImportWallet}.
|
|
2125
|
+
*/
|
|
2126
|
+
this.stampImportWallet = async (input) => {
|
|
2127
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/import_wallet";
|
|
2128
|
+
const body = JSON.stringify(input);
|
|
2129
|
+
const stamp = await this.stamper.stamp(body);
|
|
2130
|
+
return {
|
|
2131
|
+
body: body,
|
|
2132
|
+
stamp: stamp,
|
|
2133
|
+
url: fullUrl,
|
|
2134
|
+
};
|
|
2135
|
+
};
|
|
2136
|
+
/**
|
|
2137
|
+
* Initiate a fiat on ramp flow.
|
|
2138
|
+
*
|
|
2139
|
+
* Sign the provided `TInitFiatOnRampBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_fiat_on_ramp).
|
|
2140
|
+
*
|
|
2141
|
+
* See also {@link stampInitFiatOnRamp}.
|
|
2142
|
+
*/
|
|
2143
|
+
this.initFiatOnRamp = async (input) => {
|
|
2144
|
+
return this.request("/public/v1/submit/init_fiat_on_ramp", input);
|
|
2145
|
+
};
|
|
2146
|
+
/**
|
|
2147
|
+
* Produce a `SignedRequest` from `TInitFiatOnRampBody` by using the client's `stamp` function.
|
|
2148
|
+
*
|
|
2149
|
+
* See also {@link InitFiatOnRamp}.
|
|
2150
|
+
*/
|
|
2151
|
+
this.stampInitFiatOnRamp = async (input) => {
|
|
2152
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/init_fiat_on_ramp";
|
|
2153
|
+
const body = JSON.stringify(input);
|
|
2154
|
+
const stamp = await this.stamper.stamp(body);
|
|
2155
|
+
return {
|
|
2156
|
+
body: body,
|
|
2157
|
+
stamp: stamp,
|
|
2158
|
+
url: fullUrl,
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2161
|
+
/**
|
|
2162
|
+
* Initialize a new private key import.
|
|
2163
|
+
*
|
|
2164
|
+
* Sign the provided `TInitImportPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_import_private_key).
|
|
2165
|
+
*
|
|
2166
|
+
* See also {@link stampInitImportPrivateKey}.
|
|
2167
|
+
*/
|
|
2168
|
+
this.initImportPrivateKey = async (input) => {
|
|
2169
|
+
return this.request("/public/v1/submit/init_import_private_key", input);
|
|
2170
|
+
};
|
|
2171
|
+
/**
|
|
2172
|
+
* Produce a `SignedRequest` from `TInitImportPrivateKeyBody` by using the client's `stamp` function.
|
|
2173
|
+
*
|
|
2174
|
+
* See also {@link InitImportPrivateKey}.
|
|
2175
|
+
*/
|
|
2176
|
+
this.stampInitImportPrivateKey = async (input) => {
|
|
2177
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/init_import_private_key";
|
|
2178
|
+
const body = JSON.stringify(input);
|
|
2179
|
+
const stamp = await this.stamper.stamp(body);
|
|
2180
|
+
return {
|
|
2181
|
+
body: body,
|
|
2182
|
+
stamp: stamp,
|
|
2183
|
+
url: fullUrl,
|
|
2184
|
+
};
|
|
2185
|
+
};
|
|
2186
|
+
/**
|
|
2187
|
+
* Initialize a new wallet import.
|
|
2188
|
+
*
|
|
2189
|
+
* Sign the provided `TInitImportWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_import_wallet).
|
|
2190
|
+
*
|
|
2191
|
+
* See also {@link stampInitImportWallet}.
|
|
2192
|
+
*/
|
|
2193
|
+
this.initImportWallet = async (input) => {
|
|
2194
|
+
return this.request("/public/v1/submit/init_import_wallet", input);
|
|
2195
|
+
};
|
|
2196
|
+
/**
|
|
2197
|
+
* Produce a `SignedRequest` from `TInitImportWalletBody` by using the client's `stamp` function.
|
|
2198
|
+
*
|
|
2199
|
+
* See also {@link InitImportWallet}.
|
|
2200
|
+
*/
|
|
2201
|
+
this.stampInitImportWallet = async (input) => {
|
|
2202
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/init_import_wallet";
|
|
2203
|
+
const body = JSON.stringify(input);
|
|
2204
|
+
const stamp = await this.stamper.stamp(body);
|
|
2205
|
+
return {
|
|
2206
|
+
body: body,
|
|
2207
|
+
stamp: stamp,
|
|
2208
|
+
url: fullUrl,
|
|
2209
|
+
};
|
|
2210
|
+
};
|
|
2211
|
+
/**
|
|
2212
|
+
* Initiate a generic OTP activity.
|
|
2213
|
+
*
|
|
2214
|
+
* Sign the provided `TInitOtpBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_otp).
|
|
2215
|
+
*
|
|
2216
|
+
* See also {@link stampInitOtp}.
|
|
2217
|
+
*/
|
|
2218
|
+
this.initOtp = async (input) => {
|
|
2219
|
+
return this.request("/public/v1/submit/init_otp", input);
|
|
2220
|
+
};
|
|
2221
|
+
/**
|
|
2222
|
+
* Produce a `SignedRequest` from `TInitOtpBody` by using the client's `stamp` function.
|
|
2223
|
+
*
|
|
2224
|
+
* See also {@link InitOtp}.
|
|
2225
|
+
*/
|
|
2226
|
+
this.stampInitOtp = async (input) => {
|
|
2227
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/init_otp";
|
|
2228
|
+
const body = JSON.stringify(input);
|
|
2229
|
+
const stamp = await this.stamper.stamp(body);
|
|
2230
|
+
return {
|
|
2231
|
+
body: body,
|
|
2232
|
+
stamp: stamp,
|
|
2233
|
+
url: fullUrl,
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
/**
|
|
2237
|
+
* Initiate an OTP auth activity.
|
|
2238
|
+
*
|
|
2239
|
+
* Sign the provided `TInitOtpAuthBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_otp_auth).
|
|
2240
|
+
*
|
|
2241
|
+
* See also {@link stampInitOtpAuth}.
|
|
2242
|
+
*/
|
|
2243
|
+
this.initOtpAuth = async (input) => {
|
|
2244
|
+
return this.request("/public/v1/submit/init_otp_auth", input);
|
|
2245
|
+
};
|
|
2246
|
+
/**
|
|
2247
|
+
* Produce a `SignedRequest` from `TInitOtpAuthBody` by using the client's `stamp` function.
|
|
2248
|
+
*
|
|
2249
|
+
* See also {@link InitOtpAuth}.
|
|
2250
|
+
*/
|
|
2251
|
+
this.stampInitOtpAuth = async (input) => {
|
|
2252
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/init_otp_auth";
|
|
2253
|
+
const body = JSON.stringify(input);
|
|
2254
|
+
const stamp = await this.stamper.stamp(body);
|
|
2255
|
+
return {
|
|
2256
|
+
body: body,
|
|
2257
|
+
stamp: stamp,
|
|
2258
|
+
url: fullUrl,
|
|
2259
|
+
};
|
|
2260
|
+
};
|
|
2261
|
+
/**
|
|
2262
|
+
* Initialize a new email recovery.
|
|
2263
|
+
*
|
|
2264
|
+
* Sign the provided `TInitUserEmailRecoveryBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/init_user_email_recovery).
|
|
2265
|
+
*
|
|
2266
|
+
* See also {@link stampInitUserEmailRecovery}.
|
|
2267
|
+
*/
|
|
2268
|
+
this.initUserEmailRecovery = async (input) => {
|
|
2269
|
+
return this.request("/public/v1/submit/init_user_email_recovery", input);
|
|
2270
|
+
};
|
|
2271
|
+
/**
|
|
2272
|
+
* Produce a `SignedRequest` from `TInitUserEmailRecoveryBody` by using the client's `stamp` function.
|
|
2273
|
+
*
|
|
2274
|
+
* See also {@link InitUserEmailRecovery}.
|
|
2275
|
+
*/
|
|
2276
|
+
this.stampInitUserEmailRecovery = async (input) => {
|
|
2277
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/init_user_email_recovery";
|
|
2278
|
+
const body = JSON.stringify(input);
|
|
2279
|
+
const stamp = await this.stamper.stamp(body);
|
|
2280
|
+
return {
|
|
2281
|
+
body: body,
|
|
2282
|
+
stamp: stamp,
|
|
2283
|
+
url: fullUrl,
|
|
2284
|
+
};
|
|
2285
|
+
};
|
|
2286
|
+
/**
|
|
2287
|
+
* Authenticate a user with an OIDC token (Oauth).
|
|
2288
|
+
*
|
|
2289
|
+
* Sign the provided `TOauthBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/oauth).
|
|
2290
|
+
*
|
|
2291
|
+
* See also {@link stampOauth}.
|
|
2292
|
+
*/
|
|
2293
|
+
this.oauth = async (input) => {
|
|
2294
|
+
return this.request("/public/v1/submit/oauth", input);
|
|
2295
|
+
};
|
|
2296
|
+
/**
|
|
2297
|
+
* Produce a `SignedRequest` from `TOauthBody` by using the client's `stamp` function.
|
|
2298
|
+
*
|
|
2299
|
+
* See also {@link Oauth}.
|
|
2300
|
+
*/
|
|
2301
|
+
this.stampOauth = async (input) => {
|
|
2302
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/oauth";
|
|
2303
|
+
const body = JSON.stringify(input);
|
|
2304
|
+
const stamp = await this.stamper.stamp(body);
|
|
2305
|
+
return {
|
|
2306
|
+
body: body,
|
|
2307
|
+
stamp: stamp,
|
|
2308
|
+
url: fullUrl,
|
|
2309
|
+
};
|
|
2310
|
+
};
|
|
2311
|
+
/**
|
|
2312
|
+
* Authenticate a user with an OAuth 2.0 provider and receive an OIDC token to use with the LoginWithOAuth or CreateSubOrganization activities
|
|
2313
|
+
*
|
|
2314
|
+
* Sign the provided `TOauth2AuthenticateBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/oauth2_authenticate).
|
|
2315
|
+
*
|
|
2316
|
+
* See also {@link stampOauth2Authenticate}.
|
|
2317
|
+
*/
|
|
2318
|
+
this.oauth2Authenticate = async (input) => {
|
|
2319
|
+
return this.request("/public/v1/submit/oauth2_authenticate", input);
|
|
2320
|
+
};
|
|
2321
|
+
/**
|
|
2322
|
+
* Produce a `SignedRequest` from `TOauth2AuthenticateBody` by using the client's `stamp` function.
|
|
2323
|
+
*
|
|
2324
|
+
* See also {@link Oauth2Authenticate}.
|
|
2325
|
+
*/
|
|
2326
|
+
this.stampOauth2Authenticate = async (input) => {
|
|
2327
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/oauth2_authenticate";
|
|
2328
|
+
const body = JSON.stringify(input);
|
|
2329
|
+
const stamp = await this.stamper.stamp(body);
|
|
2330
|
+
return {
|
|
2331
|
+
body: body,
|
|
2332
|
+
stamp: stamp,
|
|
2333
|
+
url: fullUrl,
|
|
2334
|
+
};
|
|
2335
|
+
};
|
|
2336
|
+
/**
|
|
2337
|
+
* Create an Oauth session for a user.
|
|
2338
|
+
*
|
|
2339
|
+
* Sign the provided `TOauthLoginBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/oauth_login).
|
|
2340
|
+
*
|
|
2341
|
+
* See also {@link stampOauthLogin}.
|
|
2342
|
+
*/
|
|
2343
|
+
this.oauthLogin = async (input) => {
|
|
2344
|
+
return this.request("/public/v1/submit/oauth_login", input);
|
|
2345
|
+
};
|
|
2346
|
+
/**
|
|
2347
|
+
* Produce a `SignedRequest` from `TOauthLoginBody` by using the client's `stamp` function.
|
|
2348
|
+
*
|
|
2349
|
+
* See also {@link OauthLogin}.
|
|
2350
|
+
*/
|
|
2351
|
+
this.stampOauthLogin = async (input) => {
|
|
2352
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/oauth_login";
|
|
2353
|
+
const body = JSON.stringify(input);
|
|
2354
|
+
const stamp = await this.stamper.stamp(body);
|
|
2355
|
+
return {
|
|
2356
|
+
body: body,
|
|
2357
|
+
stamp: stamp,
|
|
2358
|
+
url: fullUrl,
|
|
2359
|
+
};
|
|
2360
|
+
};
|
|
2361
|
+
/**
|
|
2362
|
+
* Authenticate a user with an OTP code sent via email or SMS.
|
|
2363
|
+
*
|
|
2364
|
+
* Sign the provided `TOtpAuthBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/otp_auth).
|
|
2365
|
+
*
|
|
2366
|
+
* See also {@link stampOtpAuth}.
|
|
2367
|
+
*/
|
|
2368
|
+
this.otpAuth = async (input) => {
|
|
2369
|
+
return this.request("/public/v1/submit/otp_auth", input);
|
|
2370
|
+
};
|
|
2371
|
+
/**
|
|
2372
|
+
* Produce a `SignedRequest` from `TOtpAuthBody` by using the client's `stamp` function.
|
|
2373
|
+
*
|
|
2374
|
+
* See also {@link OtpAuth}.
|
|
2375
|
+
*/
|
|
2376
|
+
this.stampOtpAuth = async (input) => {
|
|
2377
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/otp_auth";
|
|
2378
|
+
const body = JSON.stringify(input);
|
|
2379
|
+
const stamp = await this.stamper.stamp(body);
|
|
2380
|
+
return {
|
|
2381
|
+
body: body,
|
|
2382
|
+
stamp: stamp,
|
|
2383
|
+
url: fullUrl,
|
|
2384
|
+
};
|
|
2385
|
+
};
|
|
2386
|
+
/**
|
|
2387
|
+
* Create an OTP session for a user.
|
|
2388
|
+
*
|
|
2389
|
+
* Sign the provided `TOtpLoginBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/otp_login).
|
|
2390
|
+
*
|
|
2391
|
+
* See also {@link stampOtpLogin}.
|
|
2392
|
+
*/
|
|
2393
|
+
this.otpLogin = async (input) => {
|
|
2394
|
+
return this.request("/public/v1/submit/otp_login", input);
|
|
2395
|
+
};
|
|
2396
|
+
/**
|
|
2397
|
+
* Produce a `SignedRequest` from `TOtpLoginBody` by using the client's `stamp` function.
|
|
2398
|
+
*
|
|
2399
|
+
* See also {@link OtpLogin}.
|
|
2400
|
+
*/
|
|
2401
|
+
this.stampOtpLogin = async (input) => {
|
|
2402
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/otp_login";
|
|
2403
|
+
const body = JSON.stringify(input);
|
|
2404
|
+
const stamp = await this.stamper.stamp(body);
|
|
2405
|
+
return {
|
|
2406
|
+
body: body,
|
|
2407
|
+
stamp: stamp,
|
|
2408
|
+
url: fullUrl,
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
/**
|
|
2412
|
+
* Complete the process of recovering a user by adding an authenticator.
|
|
2413
|
+
*
|
|
2414
|
+
* Sign the provided `TRecoverUserBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/recover_user).
|
|
2415
|
+
*
|
|
2416
|
+
* See also {@link stampRecoverUser}.
|
|
2417
|
+
*/
|
|
2418
|
+
this.recoverUser = async (input) => {
|
|
2419
|
+
return this.request("/public/v1/submit/recover_user", input);
|
|
2420
|
+
};
|
|
2421
|
+
/**
|
|
2422
|
+
* Produce a `SignedRequest` from `TRecoverUserBody` by using the client's `stamp` function.
|
|
2423
|
+
*
|
|
2424
|
+
* See also {@link RecoverUser}.
|
|
2425
|
+
*/
|
|
2426
|
+
this.stampRecoverUser = async (input) => {
|
|
2427
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/recover_user";
|
|
2428
|
+
const body = JSON.stringify(input);
|
|
2429
|
+
const stamp = await this.stamper.stamp(body);
|
|
2430
|
+
return {
|
|
2431
|
+
body: body,
|
|
2432
|
+
stamp: stamp,
|
|
2433
|
+
url: fullUrl,
|
|
2434
|
+
};
|
|
2435
|
+
};
|
|
2436
|
+
/**
|
|
2437
|
+
* Reject an activity.
|
|
2438
|
+
*
|
|
2439
|
+
* Sign the provided `TRejectActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/reject_activity).
|
|
2440
|
+
*
|
|
2441
|
+
* See also {@link stampRejectActivity}.
|
|
2442
|
+
*/
|
|
2443
|
+
this.rejectActivity = async (input) => {
|
|
2444
|
+
return this.request("/public/v1/submit/reject_activity", input);
|
|
2445
|
+
};
|
|
2446
|
+
/**
|
|
2447
|
+
* Produce a `SignedRequest` from `TRejectActivityBody` by using the client's `stamp` function.
|
|
2448
|
+
*
|
|
2449
|
+
* See also {@link RejectActivity}.
|
|
2450
|
+
*/
|
|
2451
|
+
this.stampRejectActivity = async (input) => {
|
|
2452
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/reject_activity";
|
|
2453
|
+
const body = JSON.stringify(input);
|
|
2454
|
+
const stamp = await this.stamper.stamp(body);
|
|
2455
|
+
return {
|
|
2456
|
+
body: body,
|
|
2457
|
+
stamp: stamp,
|
|
2458
|
+
url: fullUrl,
|
|
2459
|
+
};
|
|
2460
|
+
};
|
|
2461
|
+
/**
|
|
2462
|
+
* Remove an organization feature. This activity must be approved by the current root quorum.
|
|
2463
|
+
*
|
|
2464
|
+
* Sign the provided `TRemoveOrganizationFeatureBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/remove_organization_feature).
|
|
2465
|
+
*
|
|
2466
|
+
* See also {@link stampRemoveOrganizationFeature}.
|
|
2467
|
+
*/
|
|
2468
|
+
this.removeOrganizationFeature = async (input) => {
|
|
2469
|
+
return this.request("/public/v1/submit/remove_organization_feature", input);
|
|
2470
|
+
};
|
|
2471
|
+
/**
|
|
2472
|
+
* Produce a `SignedRequest` from `TRemoveOrganizationFeatureBody` by using the client's `stamp` function.
|
|
2473
|
+
*
|
|
2474
|
+
* See also {@link RemoveOrganizationFeature}.
|
|
2475
|
+
*/
|
|
2476
|
+
this.stampRemoveOrganizationFeature = async (input) => {
|
|
2477
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/remove_organization_feature";
|
|
2478
|
+
const body = JSON.stringify(input);
|
|
2479
|
+
const stamp = await this.stamper.stamp(body);
|
|
2480
|
+
return {
|
|
2481
|
+
body: body,
|
|
2482
|
+
stamp: stamp,
|
|
2483
|
+
url: fullUrl,
|
|
2484
|
+
};
|
|
2485
|
+
};
|
|
2486
|
+
/**
|
|
2487
|
+
* Set an organization feature. This activity must be approved by the current root quorum.
|
|
2488
|
+
*
|
|
2489
|
+
* Sign the provided `TSetOrganizationFeatureBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/set_organization_feature).
|
|
2490
|
+
*
|
|
2491
|
+
* See also {@link stampSetOrganizationFeature}.
|
|
2492
|
+
*/
|
|
2493
|
+
this.setOrganizationFeature = async (input) => {
|
|
2494
|
+
return this.request("/public/v1/submit/set_organization_feature", input);
|
|
2495
|
+
};
|
|
2496
|
+
/**
|
|
2497
|
+
* Produce a `SignedRequest` from `TSetOrganizationFeatureBody` by using the client's `stamp` function.
|
|
2498
|
+
*
|
|
2499
|
+
* See also {@link SetOrganizationFeature}.
|
|
2500
|
+
*/
|
|
2501
|
+
this.stampSetOrganizationFeature = async (input) => {
|
|
2502
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/set_organization_feature";
|
|
2503
|
+
const body = JSON.stringify(input);
|
|
2504
|
+
const stamp = await this.stamper.stamp(body);
|
|
2505
|
+
return {
|
|
2506
|
+
body: body,
|
|
2507
|
+
stamp: stamp,
|
|
2508
|
+
url: fullUrl,
|
|
2509
|
+
};
|
|
2510
|
+
};
|
|
2511
|
+
/**
|
|
2512
|
+
* Sign a raw payload.
|
|
2513
|
+
*
|
|
2514
|
+
* Sign the provided `TSignRawPayloadBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payload).
|
|
2515
|
+
*
|
|
2516
|
+
* See also {@link stampSignRawPayload}.
|
|
2517
|
+
*/
|
|
2518
|
+
this.signRawPayload = async (input) => {
|
|
2519
|
+
return this.request("/public/v1/submit/sign_raw_payload", input);
|
|
2520
|
+
};
|
|
2521
|
+
/**
|
|
2522
|
+
* Produce a `SignedRequest` from `TSignRawPayloadBody` by using the client's `stamp` function.
|
|
2523
|
+
*
|
|
2524
|
+
* See also {@link SignRawPayload}.
|
|
2525
|
+
*/
|
|
2526
|
+
this.stampSignRawPayload = async (input) => {
|
|
2527
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_raw_payload";
|
|
2528
|
+
const body = JSON.stringify(input);
|
|
2529
|
+
const stamp = await this.stamper.stamp(body);
|
|
2530
|
+
return {
|
|
2531
|
+
body: body,
|
|
2532
|
+
stamp: stamp,
|
|
2533
|
+
url: fullUrl,
|
|
2534
|
+
};
|
|
2535
|
+
};
|
|
2536
|
+
/**
|
|
2537
|
+
* Sign multiple raw payloads with the same signing parameters.
|
|
2538
|
+
*
|
|
2539
|
+
* Sign the provided `TSignRawPayloadsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payloads).
|
|
2540
|
+
*
|
|
2541
|
+
* See also {@link stampSignRawPayloads}.
|
|
2542
|
+
*/
|
|
2543
|
+
this.signRawPayloads = async (input) => {
|
|
2544
|
+
return this.request("/public/v1/submit/sign_raw_payloads", input);
|
|
2545
|
+
};
|
|
2546
|
+
/**
|
|
2547
|
+
* Produce a `SignedRequest` from `TSignRawPayloadsBody` by using the client's `stamp` function.
|
|
2548
|
+
*
|
|
2549
|
+
* See also {@link SignRawPayloads}.
|
|
2550
|
+
*/
|
|
2551
|
+
this.stampSignRawPayloads = async (input) => {
|
|
2552
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_raw_payloads";
|
|
2553
|
+
const body = JSON.stringify(input);
|
|
2554
|
+
const stamp = await this.stamper.stamp(body);
|
|
2555
|
+
return {
|
|
2556
|
+
body: body,
|
|
2557
|
+
stamp: stamp,
|
|
2558
|
+
url: fullUrl,
|
|
2559
|
+
};
|
|
2560
|
+
};
|
|
2561
|
+
/**
|
|
2562
|
+
* Sign a transaction.
|
|
2563
|
+
*
|
|
2564
|
+
* Sign the provided `TSignTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_transaction).
|
|
2565
|
+
*
|
|
2566
|
+
* See also {@link stampSignTransaction}.
|
|
2567
|
+
*/
|
|
2568
|
+
this.signTransaction = async (input) => {
|
|
2569
|
+
return this.request("/public/v1/submit/sign_transaction", input);
|
|
2570
|
+
};
|
|
2571
|
+
/**
|
|
2572
|
+
* Produce a `SignedRequest` from `TSignTransactionBody` by using the client's `stamp` function.
|
|
2573
|
+
*
|
|
2574
|
+
* See also {@link SignTransaction}.
|
|
2575
|
+
*/
|
|
2576
|
+
this.stampSignTransaction = async (input) => {
|
|
2577
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/sign_transaction";
|
|
2578
|
+
const body = JSON.stringify(input);
|
|
2579
|
+
const stamp = await this.stamper.stamp(body);
|
|
2580
|
+
return {
|
|
2581
|
+
body: body,
|
|
2582
|
+
stamp: stamp,
|
|
2583
|
+
url: fullUrl,
|
|
2584
|
+
};
|
|
2585
|
+
};
|
|
2586
|
+
/**
|
|
2587
|
+
* Submit a transaction intent describing an SVM transaction you would like to broadcast.
|
|
2588
|
+
*
|
|
2589
|
+
* Sign the provided `TSolSendTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sol_send_transaction).
|
|
2590
|
+
*
|
|
2591
|
+
* See also {@link stampSolSendTransaction}.
|
|
2592
|
+
*/
|
|
2593
|
+
this.solSendTransaction = async (input) => {
|
|
2594
|
+
return this.request("/public/v1/submit/sol_send_transaction", input);
|
|
2595
|
+
};
|
|
2596
|
+
/**
|
|
2597
|
+
* Produce a `SignedRequest` from `TSolSendTransactionBody` by using the client's `stamp` function.
|
|
2598
|
+
*
|
|
2599
|
+
* See also {@link SolSendTransaction}.
|
|
2600
|
+
*/
|
|
2601
|
+
this.stampSolSendTransaction = async (input) => {
|
|
2602
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/sol_send_transaction";
|
|
2603
|
+
const body = JSON.stringify(input);
|
|
2604
|
+
const stamp = await this.stamper.stamp(body);
|
|
2605
|
+
return {
|
|
2606
|
+
body: body,
|
|
2607
|
+
stamp: stamp,
|
|
2608
|
+
url: fullUrl,
|
|
2609
|
+
};
|
|
2610
|
+
};
|
|
2611
|
+
/**
|
|
2612
|
+
* Create a session for a user through stamping client side (API key, wallet client, or passkey client).
|
|
2613
|
+
*
|
|
2614
|
+
* Sign the provided `TStampLoginBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/stamp_login).
|
|
2615
|
+
*
|
|
2616
|
+
* See also {@link stampStampLogin}.
|
|
2617
|
+
*/
|
|
2618
|
+
this.stampLogin = async (input) => {
|
|
2619
|
+
return this.request("/public/v1/submit/stamp_login", input);
|
|
2620
|
+
};
|
|
2621
|
+
/**
|
|
2622
|
+
* Produce a `SignedRequest` from `TStampLoginBody` by using the client's `stamp` function.
|
|
2623
|
+
*
|
|
2624
|
+
* See also {@link StampLogin}.
|
|
2625
|
+
*/
|
|
2626
|
+
this.stampStampLogin = async (input) => {
|
|
2627
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/stamp_login";
|
|
2628
|
+
const body = JSON.stringify(input);
|
|
2629
|
+
const stamp = await this.stamper.stamp(body);
|
|
2630
|
+
return {
|
|
2631
|
+
body: body,
|
|
2632
|
+
stamp: stamp,
|
|
2633
|
+
url: fullUrl,
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
/**
|
|
2637
|
+
* Update a fiat on ramp provider credential
|
|
2638
|
+
*
|
|
2639
|
+
* Sign the provided `TUpdateFiatOnRampCredentialBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_fiat_on_ramp_credential).
|
|
2640
|
+
*
|
|
2641
|
+
* See also {@link stampUpdateFiatOnRampCredential}.
|
|
2642
|
+
*/
|
|
2643
|
+
this.updateFiatOnRampCredential = async (input) => {
|
|
2644
|
+
return this.request("/public/v1/submit/update_fiat_on_ramp_credential", input);
|
|
2645
|
+
};
|
|
2646
|
+
/**
|
|
2647
|
+
* Produce a `SignedRequest` from `TUpdateFiatOnRampCredentialBody` by using the client's `stamp` function.
|
|
2648
|
+
*
|
|
2649
|
+
* See also {@link UpdateFiatOnRampCredential}.
|
|
2650
|
+
*/
|
|
2651
|
+
this.stampUpdateFiatOnRampCredential = async (input) => {
|
|
2652
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_fiat_on_ramp_credential";
|
|
2653
|
+
const body = JSON.stringify(input);
|
|
2654
|
+
const stamp = await this.stamper.stamp(body);
|
|
2655
|
+
return {
|
|
2656
|
+
body: body,
|
|
2657
|
+
stamp: stamp,
|
|
2658
|
+
url: fullUrl,
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
/**
|
|
2662
|
+
* Update an OAuth 2.0 provider credential
|
|
2663
|
+
*
|
|
2664
|
+
* Sign the provided `TUpdateOauth2CredentialBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_oauth2_credential).
|
|
2665
|
+
*
|
|
2666
|
+
* See also {@link stampUpdateOauth2Credential}.
|
|
2667
|
+
*/
|
|
2668
|
+
this.updateOauth2Credential = async (input) => {
|
|
2669
|
+
return this.request("/public/v1/submit/update_oauth2_credential", input);
|
|
2670
|
+
};
|
|
2671
|
+
/**
|
|
2672
|
+
* Produce a `SignedRequest` from `TUpdateOauth2CredentialBody` by using the client's `stamp` function.
|
|
2673
|
+
*
|
|
2674
|
+
* See also {@link UpdateOauth2Credential}.
|
|
2675
|
+
*/
|
|
2676
|
+
this.stampUpdateOauth2Credential = async (input) => {
|
|
2677
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_oauth2_credential";
|
|
2678
|
+
const body = JSON.stringify(input);
|
|
2679
|
+
const stamp = await this.stamper.stamp(body);
|
|
2680
|
+
return {
|
|
2681
|
+
body: body,
|
|
2682
|
+
stamp: stamp,
|
|
2683
|
+
url: fullUrl,
|
|
2684
|
+
};
|
|
2685
|
+
};
|
|
2686
|
+
/**
|
|
2687
|
+
* Update the name of an organization.
|
|
2688
|
+
*
|
|
2689
|
+
* Sign the provided `TUpdateOrganizationNameBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_organization_name).
|
|
2690
|
+
*
|
|
2691
|
+
* See also {@link stampUpdateOrganizationName}.
|
|
2692
|
+
*/
|
|
2693
|
+
this.updateOrganizationName = async (input) => {
|
|
2694
|
+
return this.request("/public/v1/submit/update_organization_name", input);
|
|
2695
|
+
};
|
|
2696
|
+
/**
|
|
2697
|
+
* Produce a `SignedRequest` from `TUpdateOrganizationNameBody` by using the client's `stamp` function.
|
|
2698
|
+
*
|
|
2699
|
+
* See also {@link UpdateOrganizationName}.
|
|
2700
|
+
*/
|
|
2701
|
+
this.stampUpdateOrganizationName = async (input) => {
|
|
2702
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_organization_name";
|
|
2703
|
+
const body = JSON.stringify(input);
|
|
2704
|
+
const stamp = await this.stamper.stamp(body);
|
|
2705
|
+
return {
|
|
2706
|
+
body: body,
|
|
2707
|
+
stamp: stamp,
|
|
2708
|
+
url: fullUrl,
|
|
2709
|
+
};
|
|
2710
|
+
};
|
|
2711
|
+
/**
|
|
2712
|
+
* Update an existing policy.
|
|
2713
|
+
*
|
|
2714
|
+
* Sign the provided `TUpdatePolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_policy).
|
|
2715
|
+
*
|
|
2716
|
+
* See also {@link stampUpdatePolicy}.
|
|
2717
|
+
*/
|
|
2718
|
+
this.updatePolicy = async (input) => {
|
|
2719
|
+
return this.request("/public/v1/submit/update_policy", input);
|
|
2720
|
+
};
|
|
2721
|
+
/**
|
|
2722
|
+
* Produce a `SignedRequest` from `TUpdatePolicyBody` by using the client's `stamp` function.
|
|
2723
|
+
*
|
|
2724
|
+
* See also {@link UpdatePolicy}.
|
|
2725
|
+
*/
|
|
2726
|
+
this.stampUpdatePolicy = async (input) => {
|
|
2727
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_policy";
|
|
2728
|
+
const body = JSON.stringify(input);
|
|
2729
|
+
const stamp = await this.stamper.stamp(body);
|
|
2730
|
+
return {
|
|
2731
|
+
body: body,
|
|
2732
|
+
stamp: stamp,
|
|
2733
|
+
url: fullUrl,
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
/**
|
|
2737
|
+
* Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
|
|
2738
|
+
*
|
|
2739
|
+
* Sign the provided `TUpdatePrivateKeyTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_private_key_tag).
|
|
2740
|
+
*
|
|
2741
|
+
* See also {@link stampUpdatePrivateKeyTag}.
|
|
2742
|
+
*/
|
|
2743
|
+
this.updatePrivateKeyTag = async (input) => {
|
|
2744
|
+
return this.request("/public/v1/submit/update_private_key_tag", input);
|
|
2745
|
+
};
|
|
2746
|
+
/**
|
|
2747
|
+
* Produce a `SignedRequest` from `TUpdatePrivateKeyTagBody` by using the client's `stamp` function.
|
|
2748
|
+
*
|
|
2749
|
+
* See also {@link UpdatePrivateKeyTag}.
|
|
2750
|
+
*/
|
|
2751
|
+
this.stampUpdatePrivateKeyTag = async (input) => {
|
|
2752
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_private_key_tag";
|
|
2753
|
+
const body = JSON.stringify(input);
|
|
2754
|
+
const stamp = await this.stamper.stamp(body);
|
|
2755
|
+
return {
|
|
2756
|
+
body: body,
|
|
2757
|
+
stamp: stamp,
|
|
2758
|
+
url: fullUrl,
|
|
2759
|
+
};
|
|
2760
|
+
};
|
|
2761
|
+
/**
|
|
2762
|
+
* Set the threshold and members of the root quorum. This activity must be approved by the current root quorum.
|
|
2763
|
+
*
|
|
2764
|
+
* Sign the provided `TUpdateRootQuorumBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_root_quorum).
|
|
2765
|
+
*
|
|
2766
|
+
* See also {@link stampUpdateRootQuorum}.
|
|
2767
|
+
*/
|
|
2768
|
+
this.updateRootQuorum = async (input) => {
|
|
2769
|
+
return this.request("/public/v1/submit/update_root_quorum", input);
|
|
2770
|
+
};
|
|
2771
|
+
/**
|
|
2772
|
+
* Produce a `SignedRequest` from `TUpdateRootQuorumBody` by using the client's `stamp` function.
|
|
2773
|
+
*
|
|
2774
|
+
* See also {@link UpdateRootQuorum}.
|
|
2775
|
+
*/
|
|
2776
|
+
this.stampUpdateRootQuorum = async (input) => {
|
|
2777
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_root_quorum";
|
|
2778
|
+
const body = JSON.stringify(input);
|
|
2779
|
+
const stamp = await this.stamper.stamp(body);
|
|
2780
|
+
return {
|
|
2781
|
+
body: body,
|
|
2782
|
+
stamp: stamp,
|
|
2783
|
+
url: fullUrl,
|
|
2784
|
+
};
|
|
2785
|
+
};
|
|
2786
|
+
/**
|
|
2787
|
+
* Update a user in an existing organization.
|
|
2788
|
+
*
|
|
2789
|
+
* Sign the provided `TUpdateUserBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_user).
|
|
2790
|
+
*
|
|
2791
|
+
* See also {@link stampUpdateUser}.
|
|
2792
|
+
*/
|
|
2793
|
+
this.updateUser = async (input) => {
|
|
2794
|
+
return this.request("/public/v1/submit/update_user", input);
|
|
2795
|
+
};
|
|
2796
|
+
/**
|
|
2797
|
+
* Produce a `SignedRequest` from `TUpdateUserBody` by using the client's `stamp` function.
|
|
2798
|
+
*
|
|
2799
|
+
* See also {@link UpdateUser}.
|
|
2800
|
+
*/
|
|
2801
|
+
this.stampUpdateUser = async (input) => {
|
|
2802
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user";
|
|
2803
|
+
const body = JSON.stringify(input);
|
|
2804
|
+
const stamp = await this.stamper.stamp(body);
|
|
2805
|
+
return {
|
|
2806
|
+
body: body,
|
|
2807
|
+
stamp: stamp,
|
|
2808
|
+
url: fullUrl,
|
|
2809
|
+
};
|
|
2810
|
+
};
|
|
2811
|
+
/**
|
|
2812
|
+
* Update a user's email in an existing organization.
|
|
2813
|
+
*
|
|
2814
|
+
* Sign the provided `TUpdateUserEmailBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_user_email).
|
|
2815
|
+
*
|
|
2816
|
+
* See also {@link stampUpdateUserEmail}.
|
|
2817
|
+
*/
|
|
2818
|
+
this.updateUserEmail = async (input) => {
|
|
2819
|
+
return this.request("/public/v1/submit/update_user_email", input);
|
|
2820
|
+
};
|
|
2821
|
+
/**
|
|
2822
|
+
* Produce a `SignedRequest` from `TUpdateUserEmailBody` by using the client's `stamp` function.
|
|
2823
|
+
*
|
|
2824
|
+
* See also {@link UpdateUserEmail}.
|
|
2825
|
+
*/
|
|
2826
|
+
this.stampUpdateUserEmail = async (input) => {
|
|
2827
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_email";
|
|
2828
|
+
const body = JSON.stringify(input);
|
|
2829
|
+
const stamp = await this.stamper.stamp(body);
|
|
2830
|
+
return {
|
|
2831
|
+
body: body,
|
|
2832
|
+
stamp: stamp,
|
|
2833
|
+
url: fullUrl,
|
|
2834
|
+
};
|
|
2835
|
+
};
|
|
2836
|
+
/**
|
|
2837
|
+
* Update a user's name in an existing organization.
|
|
2838
|
+
*
|
|
2839
|
+
* Sign the provided `TUpdateUserNameBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_user_name).
|
|
2840
|
+
*
|
|
2841
|
+
* See also {@link stampUpdateUserName}.
|
|
2842
|
+
*/
|
|
2843
|
+
this.updateUserName = async (input) => {
|
|
2844
|
+
return this.request("/public/v1/submit/update_user_name", input);
|
|
2845
|
+
};
|
|
2846
|
+
/**
|
|
2847
|
+
* Produce a `SignedRequest` from `TUpdateUserNameBody` by using the client's `stamp` function.
|
|
2848
|
+
*
|
|
2849
|
+
* See also {@link UpdateUserName}.
|
|
2850
|
+
*/
|
|
2851
|
+
this.stampUpdateUserName = async (input) => {
|
|
2852
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_name";
|
|
2853
|
+
const body = JSON.stringify(input);
|
|
2854
|
+
const stamp = await this.stamper.stamp(body);
|
|
2855
|
+
return {
|
|
2856
|
+
body: body,
|
|
2857
|
+
stamp: stamp,
|
|
2858
|
+
url: fullUrl,
|
|
2859
|
+
};
|
|
2860
|
+
};
|
|
2861
|
+
/**
|
|
2862
|
+
* Update a user's phone number in an existing organization.
|
|
2863
|
+
*
|
|
2864
|
+
* Sign the provided `TUpdateUserPhoneNumberBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_user_phone_number).
|
|
2865
|
+
*
|
|
2866
|
+
* See also {@link stampUpdateUserPhoneNumber}.
|
|
2867
|
+
*/
|
|
2868
|
+
this.updateUserPhoneNumber = async (input) => {
|
|
2869
|
+
return this.request("/public/v1/submit/update_user_phone_number", input);
|
|
2870
|
+
};
|
|
2871
|
+
/**
|
|
2872
|
+
* Produce a `SignedRequest` from `TUpdateUserPhoneNumberBody` by using the client's `stamp` function.
|
|
2873
|
+
*
|
|
2874
|
+
* See also {@link UpdateUserPhoneNumber}.
|
|
2875
|
+
*/
|
|
2876
|
+
this.stampUpdateUserPhoneNumber = async (input) => {
|
|
2877
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_phone_number";
|
|
2878
|
+
const body = JSON.stringify(input);
|
|
2879
|
+
const stamp = await this.stamper.stamp(body);
|
|
2880
|
+
return {
|
|
2881
|
+
body: body,
|
|
2882
|
+
stamp: stamp,
|
|
2883
|
+
url: fullUrl,
|
|
2884
|
+
};
|
|
2885
|
+
};
|
|
2886
|
+
/**
|
|
2887
|
+
* Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
|
|
2888
|
+
*
|
|
2889
|
+
* Sign the provided `TUpdateUserTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_user_tag).
|
|
2890
|
+
*
|
|
2891
|
+
* See also {@link stampUpdateUserTag}.
|
|
2892
|
+
*/
|
|
2893
|
+
this.updateUserTag = async (input) => {
|
|
2894
|
+
return this.request("/public/v1/submit/update_user_tag", input);
|
|
2895
|
+
};
|
|
2896
|
+
/**
|
|
2897
|
+
* Produce a `SignedRequest` from `TUpdateUserTagBody` by using the client's `stamp` function.
|
|
2898
|
+
*
|
|
2899
|
+
* See also {@link UpdateUserTag}.
|
|
2900
|
+
*/
|
|
2901
|
+
this.stampUpdateUserTag = async (input) => {
|
|
2902
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_user_tag";
|
|
2903
|
+
const body = JSON.stringify(input);
|
|
2904
|
+
const stamp = await this.stamper.stamp(body);
|
|
2905
|
+
return {
|
|
2906
|
+
body: body,
|
|
2907
|
+
stamp: stamp,
|
|
2908
|
+
url: fullUrl,
|
|
2909
|
+
};
|
|
2910
|
+
};
|
|
2911
|
+
/**
|
|
2912
|
+
* Update a wallet for an organization.
|
|
2913
|
+
*
|
|
2914
|
+
* Sign the provided `TUpdateWalletBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_wallet).
|
|
2915
|
+
*
|
|
2916
|
+
* See also {@link stampUpdateWallet}.
|
|
2917
|
+
*/
|
|
2918
|
+
this.updateWallet = async (input) => {
|
|
2919
|
+
return this.request("/public/v1/submit/update_wallet", input);
|
|
2920
|
+
};
|
|
2921
|
+
/**
|
|
2922
|
+
* Produce a `SignedRequest` from `TUpdateWalletBody` by using the client's `stamp` function.
|
|
2923
|
+
*
|
|
2924
|
+
* See also {@link UpdateWallet}.
|
|
2925
|
+
*/
|
|
2926
|
+
this.stampUpdateWallet = async (input) => {
|
|
2927
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_wallet";
|
|
2928
|
+
const body = JSON.stringify(input);
|
|
2929
|
+
const stamp = await this.stamper.stamp(body);
|
|
2930
|
+
return {
|
|
2931
|
+
body: body,
|
|
2932
|
+
stamp: stamp,
|
|
2933
|
+
url: fullUrl,
|
|
2934
|
+
};
|
|
2935
|
+
};
|
|
2936
|
+
/**
|
|
2937
|
+
* Update a webhook endpoint for an organization.
|
|
2938
|
+
*
|
|
2939
|
+
* Sign the provided `TUpdateWebhookEndpointBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_webhook_endpoint).
|
|
2940
|
+
*
|
|
2941
|
+
* See also {@link stampUpdateWebhookEndpoint}.
|
|
2942
|
+
*/
|
|
2943
|
+
this.updateWebhookEndpoint = async (input) => {
|
|
2944
|
+
return this.request("/public/v1/submit/update_webhook_endpoint", input);
|
|
2945
|
+
};
|
|
2946
|
+
/**
|
|
2947
|
+
* Produce a `SignedRequest` from `TUpdateWebhookEndpointBody` by using the client's `stamp` function.
|
|
2948
|
+
*
|
|
2949
|
+
* See also {@link UpdateWebhookEndpoint}.
|
|
2950
|
+
*/
|
|
2951
|
+
this.stampUpdateWebhookEndpoint = async (input) => {
|
|
2952
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/update_webhook_endpoint";
|
|
2953
|
+
const body = JSON.stringify(input);
|
|
2954
|
+
const stamp = await this.stamper.stamp(body);
|
|
2955
|
+
return {
|
|
2956
|
+
body: body,
|
|
2957
|
+
stamp: stamp,
|
|
2958
|
+
url: fullUrl,
|
|
2959
|
+
};
|
|
2960
|
+
};
|
|
2961
|
+
/**
|
|
2962
|
+
* Verify a generic OTP.
|
|
2963
|
+
*
|
|
2964
|
+
* Sign the provided `TVerifyOtpBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/verify_otp).
|
|
2965
|
+
*
|
|
2966
|
+
* See also {@link stampVerifyOtp}.
|
|
2967
|
+
*/
|
|
2968
|
+
this.verifyOtp = async (input) => {
|
|
2969
|
+
return this.request("/public/v1/submit/verify_otp", input);
|
|
2970
|
+
};
|
|
2971
|
+
/**
|
|
2972
|
+
* Produce a `SignedRequest` from `TVerifyOtpBody` by using the client's `stamp` function.
|
|
2973
|
+
*
|
|
2974
|
+
* See also {@link VerifyOtp}.
|
|
2975
|
+
*/
|
|
2976
|
+
this.stampVerifyOtp = async (input) => {
|
|
2977
|
+
const fullUrl = this.config.baseUrl + "/public/v1/submit/verify_otp";
|
|
2978
|
+
const body = JSON.stringify(input);
|
|
2979
|
+
const stamp = await this.stamper.stamp(body);
|
|
2980
|
+
return {
|
|
2981
|
+
body: body,
|
|
2982
|
+
stamp: stamp,
|
|
2983
|
+
url: fullUrl,
|
|
2984
|
+
};
|
|
2985
|
+
};
|
|
2986
|
+
if (!config.baseUrl) {
|
|
2987
|
+
throw new Error(`Missing base URL. Please verify env vars.`);
|
|
2988
|
+
}
|
|
2989
|
+
this.config = config;
|
|
2990
|
+
this.stamper = stamper;
|
|
2991
|
+
}
|
|
2992
|
+
async request(url, body) {
|
|
2993
|
+
const fullUrl = this.config.baseUrl + url;
|
|
2994
|
+
const stringifiedBody = JSON.stringify(body);
|
|
2995
|
+
const stamp = await this.stamper.stamp(stringifiedBody);
|
|
2996
|
+
const response = await universal.fetch(fullUrl, {
|
|
2997
|
+
method: "POST",
|
|
2998
|
+
headers: {
|
|
2999
|
+
"Content-Type": "application/json",
|
|
3000
|
+
"X-Client-Version": version.VERSION,
|
|
3001
|
+
[stamp.stampHeaderName]: stamp.stampHeaderValue,
|
|
3002
|
+
},
|
|
3003
|
+
body: stringifiedBody,
|
|
3004
|
+
redirect: "follow",
|
|
3005
|
+
});
|
|
3006
|
+
if (!response.ok) {
|
|
3007
|
+
let res;
|
|
3008
|
+
try {
|
|
3009
|
+
res = await response.json();
|
|
3010
|
+
}
|
|
3011
|
+
catch (_) {
|
|
3012
|
+
throw new Error(`${response.status} ${response.statusText}`);
|
|
3013
|
+
}
|
|
3014
|
+
throw new base.ZeroXKeyRequestError(res);
|
|
3015
|
+
}
|
|
3016
|
+
const data = await response.json();
|
|
3017
|
+
return data;
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
exports.ZeroXKeyClient = ZeroXKeyClient;
|
|
3022
|
+
//# sourceMappingURL=public_api.client.js.map
|