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