@turnkey/http 2.0.0 → 2.2.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 +38 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +46 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +76 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +722 -2061
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +76 -4
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +343 -197
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +164 -74
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/dist/esm/__generated__/barrel.js +4 -0
- package/dist/esm/__generated__/barrel.js.map +1 -0
- package/dist/esm/__generated__/services/coordinator/public/v1/public_api.client.js +1212 -0
- package/dist/esm/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -0
- package/dist/esm/__generated__/services/coordinator/public/v1/public_api.fetcher.js +1052 -0
- package/dist/esm/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -0
- package/dist/esm/__generated__/services/coordinator/public/v1/public_api.swagger.json +5941 -0
- package/dist/esm/__generated__/services/coordinator/public/v1/public_api.types.js +6 -0
- package/dist/esm/__generated__/services/coordinator/public/v1/public_api.types.js.map +1 -0
- package/dist/esm/async.js +158 -0
- package/dist/esm/async.js.map +1 -0
- package/dist/esm/base.js +157 -0
- package/dist/esm/base.js.map +1 -0
- package/dist/esm/config.js +41 -0
- package/dist/esm/config.js.map +1 -0
- package/dist/esm/encoding.js +15 -0
- package/dist/esm/encoding.js.map +1 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/shared.js +15 -0
- package/dist/esm/shared.js.map +1 -0
- package/dist/esm/universal.js +10 -0
- package/dist/esm/universal.js.map +1 -0
- package/dist/esm/webauthn-json/api.js +24 -0
- package/dist/esm/webauthn-json/api.js.map +1 -0
- package/dist/esm/webauthn-json/base64url.js +32 -0
- package/dist/esm/webauthn-json/base64url.js.map +1 -0
- package/dist/esm/webauthn-json/convert.js +62 -0
- package/dist/esm/webauthn-json/convert.js.map +1 -0
- package/dist/esm/webauthn-json/index.js +13 -0
- package/dist/esm/webauthn-json/index.js.map +1 -0
- package/dist/esm/webauthn-json/json.js +2 -0
- package/dist/esm/webauthn-json/json.js.map +1 -0
- package/dist/esm/webauthn-json/schema-format.js +2 -0
- package/dist/esm/webauthn-json/schema-format.js.map +1 -0
- package/dist/esm/webauthn-json/schema.js +83 -0
- package/dist/esm/webauthn-json/schema.js.map +1 -0
- package/dist/esm/webauthn.js +90 -0
- package/dist/esm/webauthn.js.map +1 -0
- package/dist/webauthn.d.ts +1 -1
- package/dist/webauthn.d.ts.map +1 -1
- package/dist/webauthn.js.map +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1,1052 @@
|
|
|
1
|
+
/* @generated by `@turnkey/fetchers`. DO NOT EDIT BY HAND */
|
|
2
|
+
import { request, signedRequest, } from "../../../../../base";
|
|
3
|
+
/**
|
|
4
|
+
* Get Activity
|
|
5
|
+
*
|
|
6
|
+
* Get details about an Activity
|
|
7
|
+
*
|
|
8
|
+
* `POST /public/v1/query/get_activity`
|
|
9
|
+
*/
|
|
10
|
+
export const getActivity = (input) => request({
|
|
11
|
+
uri: "/public/v1/query/get_activity",
|
|
12
|
+
method: "POST",
|
|
13
|
+
body: input.body,
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Request a WebAuthn assertion and return a signed `GetActivity` request, ready to be POSTed to Turnkey.
|
|
17
|
+
*
|
|
18
|
+
* See {@link GetActivity}
|
|
19
|
+
*/
|
|
20
|
+
export const signGetActivity = (input, options) => signedRequest({
|
|
21
|
+
uri: "/public/v1/query/get_activity",
|
|
22
|
+
body: input.body,
|
|
23
|
+
options,
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Get Authenticator
|
|
27
|
+
*
|
|
28
|
+
* Get details about an authenticator
|
|
29
|
+
*
|
|
30
|
+
* `POST /public/v1/query/get_authenticator`
|
|
31
|
+
*/
|
|
32
|
+
export const getAuthenticator = (input) => request({
|
|
33
|
+
uri: "/public/v1/query/get_authenticator",
|
|
34
|
+
method: "POST",
|
|
35
|
+
body: input.body,
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Request a WebAuthn assertion and return a signed `GetAuthenticator` request, ready to be POSTed to Turnkey.
|
|
39
|
+
*
|
|
40
|
+
* See {@link GetAuthenticator}
|
|
41
|
+
*/
|
|
42
|
+
export const signGetAuthenticator = (input, options) => signedRequest({
|
|
43
|
+
uri: "/public/v1/query/get_authenticator",
|
|
44
|
+
body: input.body,
|
|
45
|
+
options,
|
|
46
|
+
});
|
|
47
|
+
/**
|
|
48
|
+
* Get Authenticators
|
|
49
|
+
*
|
|
50
|
+
* Get details about authenticators for a user
|
|
51
|
+
*
|
|
52
|
+
* `POST /public/v1/query/get_authenticators`
|
|
53
|
+
*/
|
|
54
|
+
export const getAuthenticators = (input) => request({
|
|
55
|
+
uri: "/public/v1/query/get_authenticators",
|
|
56
|
+
method: "POST",
|
|
57
|
+
body: input.body,
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* Request a WebAuthn assertion and return a signed `GetAuthenticators` request, ready to be POSTed to Turnkey.
|
|
61
|
+
*
|
|
62
|
+
* See {@link GetAuthenticators}
|
|
63
|
+
*/
|
|
64
|
+
export const signGetAuthenticators = (input, options) => signedRequest({
|
|
65
|
+
uri: "/public/v1/query/get_authenticators",
|
|
66
|
+
body: input.body,
|
|
67
|
+
options,
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* Get Organization
|
|
71
|
+
*
|
|
72
|
+
* Get details about an Organization
|
|
73
|
+
*
|
|
74
|
+
* `POST /public/v1/query/get_organization`
|
|
75
|
+
*/
|
|
76
|
+
export const getOrganization = (input) => request({
|
|
77
|
+
uri: "/public/v1/query/get_organization",
|
|
78
|
+
method: "POST",
|
|
79
|
+
body: input.body,
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* Request a WebAuthn assertion and return a signed `GetOrganization` request, ready to be POSTed to Turnkey.
|
|
83
|
+
*
|
|
84
|
+
* See {@link GetOrganization}
|
|
85
|
+
*/
|
|
86
|
+
export const signGetOrganization = (input, options) => signedRequest({
|
|
87
|
+
uri: "/public/v1/query/get_organization",
|
|
88
|
+
body: input.body,
|
|
89
|
+
options,
|
|
90
|
+
});
|
|
91
|
+
/**
|
|
92
|
+
* Get Policy
|
|
93
|
+
*
|
|
94
|
+
* Get details about a Policy
|
|
95
|
+
*
|
|
96
|
+
* `POST /public/v1/query/get_policy`
|
|
97
|
+
*/
|
|
98
|
+
export const getPolicy = (input) => request({
|
|
99
|
+
uri: "/public/v1/query/get_policy",
|
|
100
|
+
method: "POST",
|
|
101
|
+
body: input.body,
|
|
102
|
+
});
|
|
103
|
+
/**
|
|
104
|
+
* Request a WebAuthn assertion and return a signed `GetPolicy` request, ready to be POSTed to Turnkey.
|
|
105
|
+
*
|
|
106
|
+
* See {@link GetPolicy}
|
|
107
|
+
*/
|
|
108
|
+
export const signGetPolicy = (input, options) => signedRequest({
|
|
109
|
+
uri: "/public/v1/query/get_policy",
|
|
110
|
+
body: input.body,
|
|
111
|
+
options,
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Get Private Key
|
|
115
|
+
*
|
|
116
|
+
* Get details about a Private Key
|
|
117
|
+
*
|
|
118
|
+
* `POST /public/v1/query/get_private_key`
|
|
119
|
+
*/
|
|
120
|
+
export const getPrivateKey = (input) => request({
|
|
121
|
+
uri: "/public/v1/query/get_private_key",
|
|
122
|
+
method: "POST",
|
|
123
|
+
body: input.body,
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* Request a WebAuthn assertion and return a signed `GetPrivateKey` request, ready to be POSTed to Turnkey.
|
|
127
|
+
*
|
|
128
|
+
* See {@link GetPrivateKey}
|
|
129
|
+
*/
|
|
130
|
+
export const signGetPrivateKey = (input, options) => signedRequest({
|
|
131
|
+
uri: "/public/v1/query/get_private_key",
|
|
132
|
+
body: input.body,
|
|
133
|
+
options,
|
|
134
|
+
});
|
|
135
|
+
/**
|
|
136
|
+
* Get User
|
|
137
|
+
*
|
|
138
|
+
* Get details about a User
|
|
139
|
+
*
|
|
140
|
+
* `POST /public/v1/query/get_user`
|
|
141
|
+
*/
|
|
142
|
+
export const getUser = (input) => request({
|
|
143
|
+
uri: "/public/v1/query/get_user",
|
|
144
|
+
method: "POST",
|
|
145
|
+
body: input.body,
|
|
146
|
+
});
|
|
147
|
+
/**
|
|
148
|
+
* Request a WebAuthn assertion and return a signed `GetUser` request, ready to be POSTed to Turnkey.
|
|
149
|
+
*
|
|
150
|
+
* See {@link GetUser}
|
|
151
|
+
*/
|
|
152
|
+
export const signGetUser = (input, options) => signedRequest({
|
|
153
|
+
uri: "/public/v1/query/get_user",
|
|
154
|
+
body: input.body,
|
|
155
|
+
options,
|
|
156
|
+
});
|
|
157
|
+
/**
|
|
158
|
+
* Get Wallet
|
|
159
|
+
*
|
|
160
|
+
* Get details about a Wallet
|
|
161
|
+
*
|
|
162
|
+
* `POST /public/v1/query/get_wallet`
|
|
163
|
+
*/
|
|
164
|
+
export const getWallet = (input) => request({
|
|
165
|
+
uri: "/public/v1/query/get_wallet",
|
|
166
|
+
method: "POST",
|
|
167
|
+
body: input.body,
|
|
168
|
+
});
|
|
169
|
+
/**
|
|
170
|
+
* Request a WebAuthn assertion and return a signed `GetWallet` request, ready to be POSTed to Turnkey.
|
|
171
|
+
*
|
|
172
|
+
* See {@link GetWallet}
|
|
173
|
+
*/
|
|
174
|
+
export const signGetWallet = (input, options) => signedRequest({
|
|
175
|
+
uri: "/public/v1/query/get_wallet",
|
|
176
|
+
body: input.body,
|
|
177
|
+
options,
|
|
178
|
+
});
|
|
179
|
+
/**
|
|
180
|
+
* List Activities
|
|
181
|
+
*
|
|
182
|
+
* List all Activities within an Organization
|
|
183
|
+
*
|
|
184
|
+
* `POST /public/v1/query/list_activities`
|
|
185
|
+
*/
|
|
186
|
+
export const getActivities = (input) => request({
|
|
187
|
+
uri: "/public/v1/query/list_activities",
|
|
188
|
+
method: "POST",
|
|
189
|
+
body: input.body,
|
|
190
|
+
});
|
|
191
|
+
/**
|
|
192
|
+
* Request a WebAuthn assertion and return a signed `GetActivities` request, ready to be POSTed to Turnkey.
|
|
193
|
+
*
|
|
194
|
+
* See {@link GetActivities}
|
|
195
|
+
*/
|
|
196
|
+
export const signGetActivities = (input, options) => signedRequest({
|
|
197
|
+
uri: "/public/v1/query/list_activities",
|
|
198
|
+
body: input.body,
|
|
199
|
+
options,
|
|
200
|
+
});
|
|
201
|
+
/**
|
|
202
|
+
* List Policies
|
|
203
|
+
*
|
|
204
|
+
* List all Policies within an Organization
|
|
205
|
+
*
|
|
206
|
+
* `POST /public/v1/query/list_policies`
|
|
207
|
+
*/
|
|
208
|
+
export const getPolicies = (input) => request({
|
|
209
|
+
uri: "/public/v1/query/list_policies",
|
|
210
|
+
method: "POST",
|
|
211
|
+
body: input.body,
|
|
212
|
+
});
|
|
213
|
+
/**
|
|
214
|
+
* Request a WebAuthn assertion and return a signed `GetPolicies` request, ready to be POSTed to Turnkey.
|
|
215
|
+
*
|
|
216
|
+
* See {@link GetPolicies}
|
|
217
|
+
*/
|
|
218
|
+
export const signGetPolicies = (input, options) => signedRequest({
|
|
219
|
+
uri: "/public/v1/query/list_policies",
|
|
220
|
+
body: input.body,
|
|
221
|
+
options,
|
|
222
|
+
});
|
|
223
|
+
/**
|
|
224
|
+
* List Private Keys
|
|
225
|
+
*
|
|
226
|
+
* List all Private Keys within an Organization
|
|
227
|
+
*
|
|
228
|
+
* `POST /public/v1/query/list_private_keys`
|
|
229
|
+
*/
|
|
230
|
+
export const getPrivateKeys = (input) => request({
|
|
231
|
+
uri: "/public/v1/query/list_private_keys",
|
|
232
|
+
method: "POST",
|
|
233
|
+
body: input.body,
|
|
234
|
+
});
|
|
235
|
+
/**
|
|
236
|
+
* Request a WebAuthn assertion and return a signed `GetPrivateKeys` request, ready to be POSTed to Turnkey.
|
|
237
|
+
*
|
|
238
|
+
* See {@link GetPrivateKeys}
|
|
239
|
+
*/
|
|
240
|
+
export const signGetPrivateKeys = (input, options) => signedRequest({
|
|
241
|
+
uri: "/public/v1/query/list_private_keys",
|
|
242
|
+
body: input.body,
|
|
243
|
+
options,
|
|
244
|
+
});
|
|
245
|
+
/**
|
|
246
|
+
* List Users
|
|
247
|
+
*
|
|
248
|
+
* List all Users within an Organization
|
|
249
|
+
*
|
|
250
|
+
* `POST /public/v1/query/list_users`
|
|
251
|
+
*/
|
|
252
|
+
export const getUsers = (input) => request({
|
|
253
|
+
uri: "/public/v1/query/list_users",
|
|
254
|
+
method: "POST",
|
|
255
|
+
body: input.body,
|
|
256
|
+
});
|
|
257
|
+
/**
|
|
258
|
+
* Request a WebAuthn assertion and return a signed `GetUsers` request, ready to be POSTed to Turnkey.
|
|
259
|
+
*
|
|
260
|
+
* See {@link GetUsers}
|
|
261
|
+
*/
|
|
262
|
+
export const signGetUsers = (input, options) => signedRequest({
|
|
263
|
+
uri: "/public/v1/query/list_users",
|
|
264
|
+
body: input.body,
|
|
265
|
+
options,
|
|
266
|
+
});
|
|
267
|
+
/**
|
|
268
|
+
* List Wallets Accounts
|
|
269
|
+
*
|
|
270
|
+
* List all Accounts wirhin a Wallet
|
|
271
|
+
*
|
|
272
|
+
* `POST /public/v1/query/list_wallet_accounts`
|
|
273
|
+
*/
|
|
274
|
+
export const getWalletAccounts = (input) => request({
|
|
275
|
+
uri: "/public/v1/query/list_wallet_accounts",
|
|
276
|
+
method: "POST",
|
|
277
|
+
body: input.body,
|
|
278
|
+
});
|
|
279
|
+
/**
|
|
280
|
+
* Request a WebAuthn assertion and return a signed `GetWalletAccounts` request, ready to be POSTed to Turnkey.
|
|
281
|
+
*
|
|
282
|
+
* See {@link GetWalletAccounts}
|
|
283
|
+
*/
|
|
284
|
+
export const signGetWalletAccounts = (input, options) => signedRequest({
|
|
285
|
+
uri: "/public/v1/query/list_wallet_accounts",
|
|
286
|
+
body: input.body,
|
|
287
|
+
options,
|
|
288
|
+
});
|
|
289
|
+
/**
|
|
290
|
+
* List Wallets
|
|
291
|
+
*
|
|
292
|
+
* List all Wallets within an Organization
|
|
293
|
+
*
|
|
294
|
+
* `POST /public/v1/query/list_wallets`
|
|
295
|
+
*/
|
|
296
|
+
export const getWallets = (input) => request({
|
|
297
|
+
uri: "/public/v1/query/list_wallets",
|
|
298
|
+
method: "POST",
|
|
299
|
+
body: input.body,
|
|
300
|
+
});
|
|
301
|
+
/**
|
|
302
|
+
* Request a WebAuthn assertion and return a signed `GetWallets` request, ready to be POSTed to Turnkey.
|
|
303
|
+
*
|
|
304
|
+
* See {@link GetWallets}
|
|
305
|
+
*/
|
|
306
|
+
export const signGetWallets = (input, options) => signedRequest({
|
|
307
|
+
uri: "/public/v1/query/list_wallets",
|
|
308
|
+
body: input.body,
|
|
309
|
+
options,
|
|
310
|
+
});
|
|
311
|
+
/**
|
|
312
|
+
* Who am I?
|
|
313
|
+
*
|
|
314
|
+
* Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN users.
|
|
315
|
+
*
|
|
316
|
+
* `POST /public/v1/query/whoami`
|
|
317
|
+
*/
|
|
318
|
+
export const getWhoami = (input) => request({
|
|
319
|
+
uri: "/public/v1/query/whoami",
|
|
320
|
+
method: "POST",
|
|
321
|
+
body: input.body,
|
|
322
|
+
});
|
|
323
|
+
/**
|
|
324
|
+
* Request a WebAuthn assertion and return a signed `GetWhoami` request, ready to be POSTed to Turnkey.
|
|
325
|
+
*
|
|
326
|
+
* See {@link GetWhoami}
|
|
327
|
+
*/
|
|
328
|
+
export const signGetWhoami = (input, options) => signedRequest({
|
|
329
|
+
uri: "/public/v1/query/whoami",
|
|
330
|
+
body: input.body,
|
|
331
|
+
options,
|
|
332
|
+
});
|
|
333
|
+
/**
|
|
334
|
+
* Approve Activity
|
|
335
|
+
*
|
|
336
|
+
* Approve an Activity
|
|
337
|
+
*
|
|
338
|
+
* `POST /public/v1/submit/approve_activity`
|
|
339
|
+
*/
|
|
340
|
+
export const approveActivity = (input) => request({
|
|
341
|
+
uri: "/public/v1/submit/approve_activity",
|
|
342
|
+
method: "POST",
|
|
343
|
+
body: input.body,
|
|
344
|
+
});
|
|
345
|
+
/**
|
|
346
|
+
* Request a WebAuthn assertion and return a signed `ApproveActivity` request, ready to be POSTed to Turnkey.
|
|
347
|
+
*
|
|
348
|
+
* See {@link ApproveActivity}
|
|
349
|
+
*/
|
|
350
|
+
export const signApproveActivity = (input, options) => signedRequest({
|
|
351
|
+
uri: "/public/v1/submit/approve_activity",
|
|
352
|
+
body: input.body,
|
|
353
|
+
options,
|
|
354
|
+
});
|
|
355
|
+
/**
|
|
356
|
+
* Create API Keys
|
|
357
|
+
*
|
|
358
|
+
* Add api keys to an existing User
|
|
359
|
+
*
|
|
360
|
+
* `POST /public/v1/submit/create_api_keys`
|
|
361
|
+
*/
|
|
362
|
+
export const createApiKeys = (input) => request({
|
|
363
|
+
uri: "/public/v1/submit/create_api_keys",
|
|
364
|
+
method: "POST",
|
|
365
|
+
body: input.body,
|
|
366
|
+
});
|
|
367
|
+
/**
|
|
368
|
+
* Request a WebAuthn assertion and return a signed `CreateApiKeys` request, ready to be POSTed to Turnkey.
|
|
369
|
+
*
|
|
370
|
+
* See {@link CreateApiKeys}
|
|
371
|
+
*/
|
|
372
|
+
export const signCreateApiKeys = (input, options) => signedRequest({
|
|
373
|
+
uri: "/public/v1/submit/create_api_keys",
|
|
374
|
+
body: input.body,
|
|
375
|
+
options,
|
|
376
|
+
});
|
|
377
|
+
/**
|
|
378
|
+
* Create API-only Users
|
|
379
|
+
*
|
|
380
|
+
* Create API-only Users in an existing Organization
|
|
381
|
+
*
|
|
382
|
+
* `POST /public/v1/submit/create_api_only_users`
|
|
383
|
+
*/
|
|
384
|
+
export const createApiOnlyUsers = (input) => request({
|
|
385
|
+
uri: "/public/v1/submit/create_api_only_users",
|
|
386
|
+
method: "POST",
|
|
387
|
+
body: input.body,
|
|
388
|
+
});
|
|
389
|
+
/**
|
|
390
|
+
* Request a WebAuthn assertion and return a signed `CreateApiOnlyUsers` request, ready to be POSTed to Turnkey.
|
|
391
|
+
*
|
|
392
|
+
* See {@link CreateApiOnlyUsers}
|
|
393
|
+
*/
|
|
394
|
+
export const signCreateApiOnlyUsers = (input, options) => signedRequest({
|
|
395
|
+
uri: "/public/v1/submit/create_api_only_users",
|
|
396
|
+
body: input.body,
|
|
397
|
+
options,
|
|
398
|
+
});
|
|
399
|
+
/**
|
|
400
|
+
* Create Authenticators
|
|
401
|
+
*
|
|
402
|
+
* Create Authenticators to authenticate requests to Turnkey
|
|
403
|
+
*
|
|
404
|
+
* `POST /public/v1/submit/create_authenticators`
|
|
405
|
+
*/
|
|
406
|
+
export const createAuthenticators = (input) => request({
|
|
407
|
+
uri: "/public/v1/submit/create_authenticators",
|
|
408
|
+
method: "POST",
|
|
409
|
+
body: input.body,
|
|
410
|
+
});
|
|
411
|
+
/**
|
|
412
|
+
* Request a WebAuthn assertion and return a signed `CreateAuthenticators` request, ready to be POSTed to Turnkey.
|
|
413
|
+
*
|
|
414
|
+
* See {@link CreateAuthenticators}
|
|
415
|
+
*/
|
|
416
|
+
export const signCreateAuthenticators = (input, options) => signedRequest({
|
|
417
|
+
uri: "/public/v1/submit/create_authenticators",
|
|
418
|
+
body: input.body,
|
|
419
|
+
options,
|
|
420
|
+
});
|
|
421
|
+
/**
|
|
422
|
+
* Create Invitations
|
|
423
|
+
*
|
|
424
|
+
* Create Invitations to join an existing Organization
|
|
425
|
+
*
|
|
426
|
+
* `POST /public/v1/submit/create_invitations`
|
|
427
|
+
*/
|
|
428
|
+
export const createInvitations = (input) => request({
|
|
429
|
+
uri: "/public/v1/submit/create_invitations",
|
|
430
|
+
method: "POST",
|
|
431
|
+
body: input.body,
|
|
432
|
+
});
|
|
433
|
+
/**
|
|
434
|
+
* Request a WebAuthn assertion and return a signed `CreateInvitations` request, ready to be POSTed to Turnkey.
|
|
435
|
+
*
|
|
436
|
+
* See {@link CreateInvitations}
|
|
437
|
+
*/
|
|
438
|
+
export const signCreateInvitations = (input, options) => signedRequest({
|
|
439
|
+
uri: "/public/v1/submit/create_invitations",
|
|
440
|
+
body: input.body,
|
|
441
|
+
options,
|
|
442
|
+
});
|
|
443
|
+
/**
|
|
444
|
+
* Create Policy
|
|
445
|
+
*
|
|
446
|
+
* Create a new Policy
|
|
447
|
+
*
|
|
448
|
+
* `POST /public/v1/submit/create_policy`
|
|
449
|
+
*/
|
|
450
|
+
export const createPolicy = (input) => request({
|
|
451
|
+
uri: "/public/v1/submit/create_policy",
|
|
452
|
+
method: "POST",
|
|
453
|
+
body: input.body,
|
|
454
|
+
});
|
|
455
|
+
/**
|
|
456
|
+
* Request a WebAuthn assertion and return a signed `CreatePolicy` request, ready to be POSTed to Turnkey.
|
|
457
|
+
*
|
|
458
|
+
* See {@link CreatePolicy}
|
|
459
|
+
*/
|
|
460
|
+
export const signCreatePolicy = (input, options) => signedRequest({
|
|
461
|
+
uri: "/public/v1/submit/create_policy",
|
|
462
|
+
body: input.body,
|
|
463
|
+
options,
|
|
464
|
+
});
|
|
465
|
+
/**
|
|
466
|
+
* Create Private Key Tag
|
|
467
|
+
*
|
|
468
|
+
* Create a private key tag and add it to private keys.
|
|
469
|
+
*
|
|
470
|
+
* `POST /public/v1/submit/create_private_key_tag`
|
|
471
|
+
*/
|
|
472
|
+
export const createPrivateKeyTag = (input) => request({
|
|
473
|
+
uri: "/public/v1/submit/create_private_key_tag",
|
|
474
|
+
method: "POST",
|
|
475
|
+
body: input.body,
|
|
476
|
+
});
|
|
477
|
+
/**
|
|
478
|
+
* Request a WebAuthn assertion and return a signed `CreatePrivateKeyTag` request, ready to be POSTed to Turnkey.
|
|
479
|
+
*
|
|
480
|
+
* See {@link CreatePrivateKeyTag}
|
|
481
|
+
*/
|
|
482
|
+
export const signCreatePrivateKeyTag = (input, options) => signedRequest({
|
|
483
|
+
uri: "/public/v1/submit/create_private_key_tag",
|
|
484
|
+
body: input.body,
|
|
485
|
+
options,
|
|
486
|
+
});
|
|
487
|
+
/**
|
|
488
|
+
* Create Private Keys
|
|
489
|
+
*
|
|
490
|
+
* Create new Private Keys
|
|
491
|
+
*
|
|
492
|
+
* `POST /public/v1/submit/create_private_keys`
|
|
493
|
+
*/
|
|
494
|
+
export const createPrivateKeys = (input) => request({
|
|
495
|
+
uri: "/public/v1/submit/create_private_keys",
|
|
496
|
+
method: "POST",
|
|
497
|
+
body: input.body,
|
|
498
|
+
});
|
|
499
|
+
/**
|
|
500
|
+
* Request a WebAuthn assertion and return a signed `CreatePrivateKeys` request, ready to be POSTed to Turnkey.
|
|
501
|
+
*
|
|
502
|
+
* See {@link CreatePrivateKeys}
|
|
503
|
+
*/
|
|
504
|
+
export const signCreatePrivateKeys = (input, options) => signedRequest({
|
|
505
|
+
uri: "/public/v1/submit/create_private_keys",
|
|
506
|
+
body: input.body,
|
|
507
|
+
options,
|
|
508
|
+
});
|
|
509
|
+
/**
|
|
510
|
+
* Create Sub-Organization
|
|
511
|
+
*
|
|
512
|
+
* Create a new Sub-Organization
|
|
513
|
+
*
|
|
514
|
+
* `POST /public/v1/submit/create_sub_organization`
|
|
515
|
+
*/
|
|
516
|
+
export const createSubOrganization = (input) => request({
|
|
517
|
+
uri: "/public/v1/submit/create_sub_organization",
|
|
518
|
+
method: "POST",
|
|
519
|
+
body: input.body,
|
|
520
|
+
});
|
|
521
|
+
/**
|
|
522
|
+
* Request a WebAuthn assertion and return a signed `CreateSubOrganization` request, ready to be POSTed to Turnkey.
|
|
523
|
+
*
|
|
524
|
+
* See {@link CreateSubOrganization}
|
|
525
|
+
*/
|
|
526
|
+
export const signCreateSubOrganization = (input, options) => signedRequest({
|
|
527
|
+
uri: "/public/v1/submit/create_sub_organization",
|
|
528
|
+
body: input.body,
|
|
529
|
+
options,
|
|
530
|
+
});
|
|
531
|
+
/**
|
|
532
|
+
* Create User Tag
|
|
533
|
+
*
|
|
534
|
+
* Create a user tag and add it to users.
|
|
535
|
+
*
|
|
536
|
+
* `POST /public/v1/submit/create_user_tag`
|
|
537
|
+
*/
|
|
538
|
+
export const createUserTag = (input) => request({
|
|
539
|
+
uri: "/public/v1/submit/create_user_tag",
|
|
540
|
+
method: "POST",
|
|
541
|
+
body: input.body,
|
|
542
|
+
});
|
|
543
|
+
/**
|
|
544
|
+
* Request a WebAuthn assertion and return a signed `CreateUserTag` request, ready to be POSTed to Turnkey.
|
|
545
|
+
*
|
|
546
|
+
* See {@link CreateUserTag}
|
|
547
|
+
*/
|
|
548
|
+
export const signCreateUserTag = (input, options) => signedRequest({
|
|
549
|
+
uri: "/public/v1/submit/create_user_tag",
|
|
550
|
+
body: input.body,
|
|
551
|
+
options,
|
|
552
|
+
});
|
|
553
|
+
/**
|
|
554
|
+
* Create Users
|
|
555
|
+
*
|
|
556
|
+
* Create Users in an existing Organization
|
|
557
|
+
*
|
|
558
|
+
* `POST /public/v1/submit/create_users`
|
|
559
|
+
*/
|
|
560
|
+
export const createUsers = (input) => request({
|
|
561
|
+
uri: "/public/v1/submit/create_users",
|
|
562
|
+
method: "POST",
|
|
563
|
+
body: input.body,
|
|
564
|
+
});
|
|
565
|
+
/**
|
|
566
|
+
* Request a WebAuthn assertion and return a signed `CreateUsers` request, ready to be POSTed to Turnkey.
|
|
567
|
+
*
|
|
568
|
+
* See {@link CreateUsers}
|
|
569
|
+
*/
|
|
570
|
+
export const signCreateUsers = (input, options) => signedRequest({
|
|
571
|
+
uri: "/public/v1/submit/create_users",
|
|
572
|
+
body: input.body,
|
|
573
|
+
options,
|
|
574
|
+
});
|
|
575
|
+
/**
|
|
576
|
+
* Create Wallet
|
|
577
|
+
*
|
|
578
|
+
* Create a Wallet and derive addresses
|
|
579
|
+
*
|
|
580
|
+
* `POST /public/v1/submit/create_wallet`
|
|
581
|
+
*/
|
|
582
|
+
export const createWallet = (input) => request({
|
|
583
|
+
uri: "/public/v1/submit/create_wallet",
|
|
584
|
+
method: "POST",
|
|
585
|
+
body: input.body,
|
|
586
|
+
});
|
|
587
|
+
/**
|
|
588
|
+
* Request a WebAuthn assertion and return a signed `CreateWallet` request, ready to be POSTed to Turnkey.
|
|
589
|
+
*
|
|
590
|
+
* See {@link CreateWallet}
|
|
591
|
+
*/
|
|
592
|
+
export const signCreateWallet = (input, options) => signedRequest({
|
|
593
|
+
uri: "/public/v1/submit/create_wallet",
|
|
594
|
+
body: input.body,
|
|
595
|
+
options,
|
|
596
|
+
});
|
|
597
|
+
/**
|
|
598
|
+
* Create Wallet Accounts
|
|
599
|
+
*
|
|
600
|
+
* Derive additional addresses using an existing wallet
|
|
601
|
+
*
|
|
602
|
+
* `POST /public/v1/submit/create_wallet_accounts`
|
|
603
|
+
*/
|
|
604
|
+
export const createWalletAccounts = (input) => request({
|
|
605
|
+
uri: "/public/v1/submit/create_wallet_accounts",
|
|
606
|
+
method: "POST",
|
|
607
|
+
body: input.body,
|
|
608
|
+
});
|
|
609
|
+
/**
|
|
610
|
+
* Request a WebAuthn assertion and return a signed `CreateWalletAccounts` request, ready to be POSTed to Turnkey.
|
|
611
|
+
*
|
|
612
|
+
* See {@link CreateWalletAccounts}
|
|
613
|
+
*/
|
|
614
|
+
export const signCreateWalletAccounts = (input, options) => signedRequest({
|
|
615
|
+
uri: "/public/v1/submit/create_wallet_accounts",
|
|
616
|
+
body: input.body,
|
|
617
|
+
options,
|
|
618
|
+
});
|
|
619
|
+
/**
|
|
620
|
+
* Delete API Keys
|
|
621
|
+
*
|
|
622
|
+
* Remove api keys from a User
|
|
623
|
+
*
|
|
624
|
+
* `POST /public/v1/submit/delete_api_keys`
|
|
625
|
+
*/
|
|
626
|
+
export const deleteApiKeys = (input) => request({
|
|
627
|
+
uri: "/public/v1/submit/delete_api_keys",
|
|
628
|
+
method: "POST",
|
|
629
|
+
body: input.body,
|
|
630
|
+
});
|
|
631
|
+
/**
|
|
632
|
+
* Request a WebAuthn assertion and return a signed `DeleteApiKeys` request, ready to be POSTed to Turnkey.
|
|
633
|
+
*
|
|
634
|
+
* See {@link DeleteApiKeys}
|
|
635
|
+
*/
|
|
636
|
+
export const signDeleteApiKeys = (input, options) => signedRequest({
|
|
637
|
+
uri: "/public/v1/submit/delete_api_keys",
|
|
638
|
+
body: input.body,
|
|
639
|
+
options,
|
|
640
|
+
});
|
|
641
|
+
/**
|
|
642
|
+
* Delete Authenticators
|
|
643
|
+
*
|
|
644
|
+
* Remove authenticators from a User
|
|
645
|
+
*
|
|
646
|
+
* `POST /public/v1/submit/delete_authenticators`
|
|
647
|
+
*/
|
|
648
|
+
export const deleteAuthenticators = (input) => request({
|
|
649
|
+
uri: "/public/v1/submit/delete_authenticators",
|
|
650
|
+
method: "POST",
|
|
651
|
+
body: input.body,
|
|
652
|
+
});
|
|
653
|
+
/**
|
|
654
|
+
* Request a WebAuthn assertion and return a signed `DeleteAuthenticators` request, ready to be POSTed to Turnkey.
|
|
655
|
+
*
|
|
656
|
+
* See {@link DeleteAuthenticators}
|
|
657
|
+
*/
|
|
658
|
+
export const signDeleteAuthenticators = (input, options) => signedRequest({
|
|
659
|
+
uri: "/public/v1/submit/delete_authenticators",
|
|
660
|
+
body: input.body,
|
|
661
|
+
options,
|
|
662
|
+
});
|
|
663
|
+
/**
|
|
664
|
+
* Delete Invitation
|
|
665
|
+
*
|
|
666
|
+
* Delete an existing Invitation
|
|
667
|
+
*
|
|
668
|
+
* `POST /public/v1/submit/delete_invitation`
|
|
669
|
+
*/
|
|
670
|
+
export const deleteInvitation = (input) => request({
|
|
671
|
+
uri: "/public/v1/submit/delete_invitation",
|
|
672
|
+
method: "POST",
|
|
673
|
+
body: input.body,
|
|
674
|
+
});
|
|
675
|
+
/**
|
|
676
|
+
* Request a WebAuthn assertion and return a signed `DeleteInvitation` request, ready to be POSTed to Turnkey.
|
|
677
|
+
*
|
|
678
|
+
* See {@link DeleteInvitation}
|
|
679
|
+
*/
|
|
680
|
+
export const signDeleteInvitation = (input, options) => signedRequest({
|
|
681
|
+
uri: "/public/v1/submit/delete_invitation",
|
|
682
|
+
body: input.body,
|
|
683
|
+
options,
|
|
684
|
+
});
|
|
685
|
+
/**
|
|
686
|
+
* Delete Policy
|
|
687
|
+
*
|
|
688
|
+
* Delete an existing Policy
|
|
689
|
+
*
|
|
690
|
+
* `POST /public/v1/submit/delete_policy`
|
|
691
|
+
*/
|
|
692
|
+
export const deletePolicy = (input) => request({
|
|
693
|
+
uri: "/public/v1/submit/delete_policy",
|
|
694
|
+
method: "POST",
|
|
695
|
+
body: input.body,
|
|
696
|
+
});
|
|
697
|
+
/**
|
|
698
|
+
* Request a WebAuthn assertion and return a signed `DeletePolicy` request, ready to be POSTed to Turnkey.
|
|
699
|
+
*
|
|
700
|
+
* See {@link DeletePolicy}
|
|
701
|
+
*/
|
|
702
|
+
export const signDeletePolicy = (input, options) => signedRequest({
|
|
703
|
+
uri: "/public/v1/submit/delete_policy",
|
|
704
|
+
body: input.body,
|
|
705
|
+
options,
|
|
706
|
+
});
|
|
707
|
+
/**
|
|
708
|
+
* Export Private Key
|
|
709
|
+
*
|
|
710
|
+
* Exports a Private Key
|
|
711
|
+
*
|
|
712
|
+
* `POST /public/v1/submit/export_private_key`
|
|
713
|
+
*/
|
|
714
|
+
export const exportPrivateKey = (input) => request({
|
|
715
|
+
uri: "/public/v1/submit/export_private_key",
|
|
716
|
+
method: "POST",
|
|
717
|
+
body: input.body,
|
|
718
|
+
});
|
|
719
|
+
/**
|
|
720
|
+
* Request a WebAuthn assertion and return a signed `ExportPrivateKey` request, ready to be POSTed to Turnkey.
|
|
721
|
+
*
|
|
722
|
+
* See {@link ExportPrivateKey}
|
|
723
|
+
*/
|
|
724
|
+
export const signExportPrivateKey = (input, options) => signedRequest({
|
|
725
|
+
uri: "/public/v1/submit/export_private_key",
|
|
726
|
+
body: input.body,
|
|
727
|
+
options,
|
|
728
|
+
});
|
|
729
|
+
/**
|
|
730
|
+
* Export Wallet
|
|
731
|
+
*
|
|
732
|
+
* Exports a Wallet
|
|
733
|
+
*
|
|
734
|
+
* `POST /public/v1/submit/export_wallet`
|
|
735
|
+
*/
|
|
736
|
+
export const exportWallet = (input) => request({
|
|
737
|
+
uri: "/public/v1/submit/export_wallet",
|
|
738
|
+
method: "POST",
|
|
739
|
+
body: input.body,
|
|
740
|
+
});
|
|
741
|
+
/**
|
|
742
|
+
* Request a WebAuthn assertion and return a signed `ExportWallet` request, ready to be POSTed to Turnkey.
|
|
743
|
+
*
|
|
744
|
+
* See {@link ExportWallet}
|
|
745
|
+
*/
|
|
746
|
+
export const signExportWallet = (input, options) => signedRequest({
|
|
747
|
+
uri: "/public/v1/submit/export_wallet",
|
|
748
|
+
body: input.body,
|
|
749
|
+
options,
|
|
750
|
+
});
|
|
751
|
+
/**
|
|
752
|
+
* Init Email Recovery
|
|
753
|
+
*
|
|
754
|
+
* Initializes a new email recovery
|
|
755
|
+
*
|
|
756
|
+
* `POST /public/v1/submit/init_user_email_recovery`
|
|
757
|
+
*/
|
|
758
|
+
export const initUserEmailRecovery = (input) => request({
|
|
759
|
+
uri: "/public/v1/submit/init_user_email_recovery",
|
|
760
|
+
method: "POST",
|
|
761
|
+
body: input.body,
|
|
762
|
+
});
|
|
763
|
+
/**
|
|
764
|
+
* Request a WebAuthn assertion and return a signed `InitUserEmailRecovery` request, ready to be POSTed to Turnkey.
|
|
765
|
+
*
|
|
766
|
+
* See {@link InitUserEmailRecovery}
|
|
767
|
+
*/
|
|
768
|
+
export const signInitUserEmailRecovery = (input, options) => signedRequest({
|
|
769
|
+
uri: "/public/v1/submit/init_user_email_recovery",
|
|
770
|
+
body: input.body,
|
|
771
|
+
options,
|
|
772
|
+
});
|
|
773
|
+
/**
|
|
774
|
+
* Recover a user
|
|
775
|
+
*
|
|
776
|
+
* Completes the process of recovering a user by adding an authenticator
|
|
777
|
+
*
|
|
778
|
+
* `POST /public/v1/submit/recover_user`
|
|
779
|
+
*/
|
|
780
|
+
export const recoverUser = (input) => request({
|
|
781
|
+
uri: "/public/v1/submit/recover_user",
|
|
782
|
+
method: "POST",
|
|
783
|
+
body: input.body,
|
|
784
|
+
});
|
|
785
|
+
/**
|
|
786
|
+
* Request a WebAuthn assertion and return a signed `RecoverUser` request, ready to be POSTed to Turnkey.
|
|
787
|
+
*
|
|
788
|
+
* See {@link RecoverUser}
|
|
789
|
+
*/
|
|
790
|
+
export const signRecoverUser = (input, options) => signedRequest({
|
|
791
|
+
uri: "/public/v1/submit/recover_user",
|
|
792
|
+
body: input.body,
|
|
793
|
+
options,
|
|
794
|
+
});
|
|
795
|
+
/**
|
|
796
|
+
* Reject Activity
|
|
797
|
+
*
|
|
798
|
+
* Reject an Activity
|
|
799
|
+
*
|
|
800
|
+
* `POST /public/v1/submit/reject_activity`
|
|
801
|
+
*/
|
|
802
|
+
export const rejectActivity = (input) => request({
|
|
803
|
+
uri: "/public/v1/submit/reject_activity",
|
|
804
|
+
method: "POST",
|
|
805
|
+
body: input.body,
|
|
806
|
+
});
|
|
807
|
+
/**
|
|
808
|
+
* Request a WebAuthn assertion and return a signed `RejectActivity` request, ready to be POSTed to Turnkey.
|
|
809
|
+
*
|
|
810
|
+
* See {@link RejectActivity}
|
|
811
|
+
*/
|
|
812
|
+
export const signRejectActivity = (input, options) => signedRequest({
|
|
813
|
+
uri: "/public/v1/submit/reject_activity",
|
|
814
|
+
body: input.body,
|
|
815
|
+
options,
|
|
816
|
+
});
|
|
817
|
+
/**
|
|
818
|
+
* Remove Organization Feature
|
|
819
|
+
*
|
|
820
|
+
* Removes an organization feature
|
|
821
|
+
*
|
|
822
|
+
* `POST /public/v1/submit/remove_organization_feature`
|
|
823
|
+
*/
|
|
824
|
+
export const removeOrganizationFeature = (input) => request({
|
|
825
|
+
uri: "/public/v1/submit/remove_organization_feature",
|
|
826
|
+
method: "POST",
|
|
827
|
+
body: input.body,
|
|
828
|
+
});
|
|
829
|
+
/**
|
|
830
|
+
* Request a WebAuthn assertion and return a signed `RemoveOrganizationFeature` request, ready to be POSTed to Turnkey.
|
|
831
|
+
*
|
|
832
|
+
* See {@link RemoveOrganizationFeature}
|
|
833
|
+
*/
|
|
834
|
+
export const signRemoveOrganizationFeature = (input, options) => signedRequest({
|
|
835
|
+
uri: "/public/v1/submit/remove_organization_feature",
|
|
836
|
+
body: input.body,
|
|
837
|
+
options,
|
|
838
|
+
});
|
|
839
|
+
/**
|
|
840
|
+
* Set Organization Feature
|
|
841
|
+
*
|
|
842
|
+
* Sets an organization feature
|
|
843
|
+
*
|
|
844
|
+
* `POST /public/v1/submit/set_organization_feature`
|
|
845
|
+
*/
|
|
846
|
+
export const setOrganizationFeature = (input) => request({
|
|
847
|
+
uri: "/public/v1/submit/set_organization_feature",
|
|
848
|
+
method: "POST",
|
|
849
|
+
body: input.body,
|
|
850
|
+
});
|
|
851
|
+
/**
|
|
852
|
+
* Request a WebAuthn assertion and return a signed `SetOrganizationFeature` request, ready to be POSTed to Turnkey.
|
|
853
|
+
*
|
|
854
|
+
* See {@link SetOrganizationFeature}
|
|
855
|
+
*/
|
|
856
|
+
export const signSetOrganizationFeature = (input, options) => signedRequest({
|
|
857
|
+
uri: "/public/v1/submit/set_organization_feature",
|
|
858
|
+
body: input.body,
|
|
859
|
+
options,
|
|
860
|
+
});
|
|
861
|
+
/**
|
|
862
|
+
* Sign Raw Payload
|
|
863
|
+
*
|
|
864
|
+
* Sign a raw payload
|
|
865
|
+
*
|
|
866
|
+
* `POST /public/v1/submit/sign_raw_payload`
|
|
867
|
+
*/
|
|
868
|
+
export const signRawPayload = (input) => request({
|
|
869
|
+
uri: "/public/v1/submit/sign_raw_payload",
|
|
870
|
+
method: "POST",
|
|
871
|
+
body: input.body,
|
|
872
|
+
});
|
|
873
|
+
/**
|
|
874
|
+
* Request a WebAuthn assertion and return a signed `SignRawPayload` request, ready to be POSTed to Turnkey.
|
|
875
|
+
*
|
|
876
|
+
* See {@link SignRawPayload}
|
|
877
|
+
*/
|
|
878
|
+
export const signSignRawPayload = (input, options) => signedRequest({
|
|
879
|
+
uri: "/public/v1/submit/sign_raw_payload",
|
|
880
|
+
body: input.body,
|
|
881
|
+
options,
|
|
882
|
+
});
|
|
883
|
+
/**
|
|
884
|
+
* Sign Transaction
|
|
885
|
+
*
|
|
886
|
+
* Sign a transaction
|
|
887
|
+
*
|
|
888
|
+
* `POST /public/v1/submit/sign_transaction`
|
|
889
|
+
*/
|
|
890
|
+
export const signTransaction = (input) => request({
|
|
891
|
+
uri: "/public/v1/submit/sign_transaction",
|
|
892
|
+
method: "POST",
|
|
893
|
+
body: input.body,
|
|
894
|
+
});
|
|
895
|
+
/**
|
|
896
|
+
* Request a WebAuthn assertion and return a signed `SignTransaction` request, ready to be POSTed to Turnkey.
|
|
897
|
+
*
|
|
898
|
+
* See {@link SignTransaction}
|
|
899
|
+
*/
|
|
900
|
+
export const signSignTransaction = (input, options) => signedRequest({
|
|
901
|
+
uri: "/public/v1/submit/sign_transaction",
|
|
902
|
+
body: input.body,
|
|
903
|
+
options,
|
|
904
|
+
});
|
|
905
|
+
/**
|
|
906
|
+
* Update Allowed Origins
|
|
907
|
+
*
|
|
908
|
+
* Update the origins WebAuthN credentials are allowed to sign requests from. Setting this on a Parent-Organization applies to all Sub-Organizations.
|
|
909
|
+
*
|
|
910
|
+
* `POST /public/v1/submit/update_allowed_origins`
|
|
911
|
+
*/
|
|
912
|
+
export const updateAllowedOrigins = (input) => request({
|
|
913
|
+
uri: "/public/v1/submit/update_allowed_origins",
|
|
914
|
+
method: "POST",
|
|
915
|
+
body: input.body,
|
|
916
|
+
});
|
|
917
|
+
/**
|
|
918
|
+
* Request a WebAuthn assertion and return a signed `UpdateAllowedOrigins` request, ready to be POSTed to Turnkey.
|
|
919
|
+
*
|
|
920
|
+
* See {@link UpdateAllowedOrigins}
|
|
921
|
+
*/
|
|
922
|
+
export const signUpdateAllowedOrigins = (input, options) => signedRequest({
|
|
923
|
+
uri: "/public/v1/submit/update_allowed_origins",
|
|
924
|
+
body: input.body,
|
|
925
|
+
options,
|
|
926
|
+
});
|
|
927
|
+
/**
|
|
928
|
+
* Update Policy
|
|
929
|
+
*
|
|
930
|
+
* Update an existing Policy
|
|
931
|
+
*
|
|
932
|
+
* `POST /public/v1/submit/update_policy`
|
|
933
|
+
*/
|
|
934
|
+
export const updatePolicy = (input) => request({
|
|
935
|
+
uri: "/public/v1/submit/update_policy",
|
|
936
|
+
method: "POST",
|
|
937
|
+
body: input.body,
|
|
938
|
+
});
|
|
939
|
+
/**
|
|
940
|
+
* Request a WebAuthn assertion and return a signed `UpdatePolicy` request, ready to be POSTed to Turnkey.
|
|
941
|
+
*
|
|
942
|
+
* See {@link UpdatePolicy}
|
|
943
|
+
*/
|
|
944
|
+
export const signUpdatePolicy = (input, options) => signedRequest({
|
|
945
|
+
uri: "/public/v1/submit/update_policy",
|
|
946
|
+
body: input.body,
|
|
947
|
+
options,
|
|
948
|
+
});
|
|
949
|
+
/**
|
|
950
|
+
* Update Private Key Tag
|
|
951
|
+
*
|
|
952
|
+
* 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.
|
|
953
|
+
*
|
|
954
|
+
* `POST /public/v1/submit/update_private_key_tag`
|
|
955
|
+
*/
|
|
956
|
+
export const updatePrivateKeyTag = (input) => request({
|
|
957
|
+
uri: "/public/v1/submit/update_private_key_tag",
|
|
958
|
+
method: "POST",
|
|
959
|
+
body: input.body,
|
|
960
|
+
});
|
|
961
|
+
/**
|
|
962
|
+
* Request a WebAuthn assertion and return a signed `UpdatePrivateKeyTag` request, ready to be POSTed to Turnkey.
|
|
963
|
+
*
|
|
964
|
+
* See {@link UpdatePrivateKeyTag}
|
|
965
|
+
*/
|
|
966
|
+
export const signUpdatePrivateKeyTag = (input, options) => signedRequest({
|
|
967
|
+
uri: "/public/v1/submit/update_private_key_tag",
|
|
968
|
+
body: input.body,
|
|
969
|
+
options,
|
|
970
|
+
});
|
|
971
|
+
/**
|
|
972
|
+
* Update Root Quorum
|
|
973
|
+
*
|
|
974
|
+
* Set the threshold and members of the root quorum. This must be approved by the current root quorum.
|
|
975
|
+
*
|
|
976
|
+
* `POST /public/v1/submit/update_root_quorum`
|
|
977
|
+
*/
|
|
978
|
+
export const updateRootQuorum = (input) => request({
|
|
979
|
+
uri: "/public/v1/submit/update_root_quorum",
|
|
980
|
+
method: "POST",
|
|
981
|
+
body: input.body,
|
|
982
|
+
});
|
|
983
|
+
/**
|
|
984
|
+
* Request a WebAuthn assertion and return a signed `UpdateRootQuorum` request, ready to be POSTed to Turnkey.
|
|
985
|
+
*
|
|
986
|
+
* See {@link UpdateRootQuorum}
|
|
987
|
+
*/
|
|
988
|
+
export const signUpdateRootQuorum = (input, options) => signedRequest({
|
|
989
|
+
uri: "/public/v1/submit/update_root_quorum",
|
|
990
|
+
body: input.body,
|
|
991
|
+
options,
|
|
992
|
+
});
|
|
993
|
+
/**
|
|
994
|
+
* Update User
|
|
995
|
+
*
|
|
996
|
+
* Update a User in an existing Organization
|
|
997
|
+
*
|
|
998
|
+
* `POST /public/v1/submit/update_user`
|
|
999
|
+
*/
|
|
1000
|
+
export const updateUser = (input) => request({
|
|
1001
|
+
uri: "/public/v1/submit/update_user",
|
|
1002
|
+
method: "POST",
|
|
1003
|
+
body: input.body,
|
|
1004
|
+
});
|
|
1005
|
+
/**
|
|
1006
|
+
* Request a WebAuthn assertion and return a signed `UpdateUser` request, ready to be POSTed to Turnkey.
|
|
1007
|
+
*
|
|
1008
|
+
* See {@link UpdateUser}
|
|
1009
|
+
*/
|
|
1010
|
+
export const signUpdateUser = (input, options) => signedRequest({
|
|
1011
|
+
uri: "/public/v1/submit/update_user",
|
|
1012
|
+
body: input.body,
|
|
1013
|
+
options,
|
|
1014
|
+
});
|
|
1015
|
+
/**
|
|
1016
|
+
* Update User Tag
|
|
1017
|
+
*
|
|
1018
|
+
* 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.
|
|
1019
|
+
*
|
|
1020
|
+
* `POST /public/v1/submit/update_user_tag`
|
|
1021
|
+
*/
|
|
1022
|
+
export const updateUserTag = (input) => request({
|
|
1023
|
+
uri: "/public/v1/submit/update_user_tag",
|
|
1024
|
+
method: "POST",
|
|
1025
|
+
body: input.body,
|
|
1026
|
+
});
|
|
1027
|
+
/**
|
|
1028
|
+
* Request a WebAuthn assertion and return a signed `UpdateUserTag` request, ready to be POSTed to Turnkey.
|
|
1029
|
+
*
|
|
1030
|
+
* See {@link UpdateUserTag}
|
|
1031
|
+
*/
|
|
1032
|
+
export const signUpdateUserTag = (input, options) => signedRequest({
|
|
1033
|
+
uri: "/public/v1/submit/update_user_tag",
|
|
1034
|
+
body: input.body,
|
|
1035
|
+
options,
|
|
1036
|
+
});
|
|
1037
|
+
/**
|
|
1038
|
+
* `POST /tkhq/api/v1/noop-codegen-anchor`
|
|
1039
|
+
*/
|
|
1040
|
+
export const nOOPCodegenAnchor = () => request({
|
|
1041
|
+
uri: "/tkhq/api/v1/noop-codegen-anchor",
|
|
1042
|
+
method: "POST",
|
|
1043
|
+
});
|
|
1044
|
+
/**
|
|
1045
|
+
* Request a WebAuthn assertion and return a signed `NOOPCodegenAnchor` request, ready to be POSTed to Turnkey.
|
|
1046
|
+
*
|
|
1047
|
+
* See {@link NOOPCodegenAnchor}
|
|
1048
|
+
*/
|
|
1049
|
+
export const signNOOPCodegenAnchor = () => signedRequest({
|
|
1050
|
+
uri: "/tkhq/api/v1/noop-codegen-anchor",
|
|
1051
|
+
});
|
|
1052
|
+
//# sourceMappingURL=public_api.fetcher.js.map
|