@turnkey/http 1.0.0 → 1.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +22 -17
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +548 -0
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -0
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +938 -0
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -0
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +3066 -691
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +74 -38
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +576 -713
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +282 -788
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  14. package/dist/async.d.ts +20 -1
  15. package/dist/async.d.ts.map +1 -1
  16. package/dist/async.js +78 -2
  17. package/dist/async.js.map +1 -1
  18. package/dist/base.d.ts +51 -1
  19. package/dist/base.d.ts.map +1 -1
  20. package/dist/base.js +27 -5
  21. package/dist/base.js.map +1 -1
  22. package/dist/config.d.ts +6 -0
  23. package/dist/config.d.ts.map +1 -1
  24. package/dist/config.js +6 -0
  25. package/dist/config.js.map +1 -1
  26. package/dist/encoding.d.ts +0 -4
  27. package/dist/encoding.d.ts.map +1 -1
  28. package/dist/encoding.js +1 -24
  29. package/dist/encoding.js.map +1 -1
  30. package/dist/index.d.ts +5 -3
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +8 -4
  33. package/dist/index.js.map +1 -1
  34. package/dist/shared.d.ts +1 -27
  35. package/dist/shared.d.ts.map +1 -1
  36. package/dist/shared.js +4 -13
  37. package/dist/shared.js.map +1 -1
  38. package/dist/universal.d.ts +1 -3
  39. package/dist/universal.d.ts.map +1 -1
  40. package/dist/universal.js +2 -10
  41. package/dist/universal.js.map +1 -1
  42. package/package.json +4 -2
  43. package/dist/stamp.node.d.ts +0 -3
  44. package/dist/stamp.node.d.ts.map +0 -1
  45. package/dist/stamp.node.js +0 -51
  46. package/dist/stamp.node.js.map +0 -1
  47. package/dist/stamp.webcrypto.d.ts +0 -4
  48. package/dist/stamp.webcrypto.d.ts.map +0 -1
  49. package/dist/stamp.webcrypto.js +0 -110
  50. package/dist/stamp.webcrypto.js.map +0 -1
  51. package/dist/tink/bytes.d.ts +0 -45
  52. package/dist/tink/bytes.d.ts.map +0 -1
  53. package/dist/tink/bytes.js +0 -82
  54. package/dist/tink/bytes.js.map +0 -1
  55. package/dist/tink/elliptic_curves.d.ts +0 -14
  56. package/dist/tink/elliptic_curves.d.ts.map +0 -1
  57. package/dist/tink/elliptic_curves.js +0 -178
  58. package/dist/tink/elliptic_curves.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @turnkey/http
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ New exports:
8
+
9
+ - new `TurnkeyClient`. This is now the preferred interface to make Turnkey requests, because it supports both API keys and webauthn-signed requests. It also doesn't rely on global initialization
10
+ - new method to poll requests: `createActivityPoller`
11
+
12
+ Deprecation notices:
13
+
14
+ - deprecate `TurnkeyApi` (use `TurnkeyClient` instead), `init`, `browserInit` (no need for them anymore if you're using `TurnkeyClient`), and `withAsyncPolling` (use `createActivityPoller` instead)
15
+ - deprecate `SignedRequest` in favor of `TSignedRequest`. Besides the more correct name, `TSignedRequest` differs in its `stamp` property. It now stores the stamper header name as well as value, so users do not have to hardcode Turnkey stamp header names (e.g. "X-Stamp-Webauthn").
16
+
17
+ Update our swagger and generated files to latest versions:
18
+
19
+ - new endpoint to update users: `/public/v1/submit/update_user`
20
+ - pagination `limit` option has been updated to `string` instead of number for consistency with other pagination options
21
+
22
+ Signing is now performed through Turnkey stampers. New dependencies:
23
+
24
+ - @turnkey/webauthn-stamper@0.1.0
25
+ - @turnkey/api-key-stamper@0.1.0
26
+
27
+ ## 1.0.1
28
+
29
+ ### Patch Changes
30
+
31
+ - 8d1d0e8: Synced protos from mono
32
+
3
33
  ## 1.0.0
4
34
 
5
35
  ### Major Changes
package/README.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@turnkey/http?color=%234C48FF)](https://www.npmjs.com/package/@turnkey/http)
4
4
 
5
- A lower-level, fully typed HTTP client for interacting with [Turnkey](https://turnkey.io) API.
5
+ A lower-level, fully typed HTTP client for interacting with [Turnkey](https://turnkey.com) API.
6
6
 
7
- For signing transactions and messages, check out the higher-level [`@turnkey/ethers`](/packages/ethers/) Signer.
7
+ For signing transactions and messages, check out the higher-level [`@turnkey/ethers`](https://www.npmjs.com/package/@turnkey/ethers) or [`@turnkey/viem`](https://www.npmjs.com/package/@turnkey/viem) signers.
8
8
 
9
- API Docs: https://turnkey.readme.io/
9
+ Turnkey API documentation lives here: https://docs.turnkey.com.
10
10
 
11
11
  ## Getting started
12
12
 
@@ -14,19 +14,27 @@ API Docs: https://turnkey.readme.io/
14
14
  $ npm install @turnkey/http
15
15
  ```
16
16
 
17
- Before making http calls, initialize the package with your credentials:
18
-
19
17
  ```typescript
20
- import { TurnkeyApi, init } from "@turnkey/http";
18
+ import { ApiKeyStamper } from "@turnkey/api-key-stamper";
19
+ import { TurnkeyClient } from "@turnkey/http";
21
20
 
22
- init({
21
+ // This stamper produces signatures using the API key pair passed in.
22
+ const stamper = new ApiKeyStamper({
23
23
  apiPublicKey: "...",
24
24
  apiPrivateKey: "...",
25
- baseUrl: "...",
26
25
  });
27
26
 
27
+ // The Turnkey client uses the passed in stamper to produce signed requests
28
+ // and sends them to Turnkey
29
+ const client = new TurnkeyClient(
30
+ {
31
+ baseUrl: "https://api.turnkey.com",
32
+ },
33
+ stamper
34
+ );
35
+
28
36
  // Now you can make authenticated requests!
29
- const data = await TurnkeyApi.postGetWhoami({
37
+ const data = await TurnkeyApi.getWhoami({
30
38
  body: {
31
39
  organizationId: "...",
32
40
  },
@@ -41,18 +49,14 @@ The OpenAPI spec that generates all fetchers is also [included](/packages/http/s
41
49
 
42
50
  ## `withAsyncPolling(...)` helper
43
51
 
44
- All Turnkey mutation endpoints are asynchronous (with the exception of signing endpoints). To help you simplify async mutations, `@turnkey/http` provides a `withAsyncPolling(...)` wrapper. Here's a quick example:
52
+ All Turnkey mutation endpoints are asynchronous (with the exception of private key-related signing endpoints, e.g. `/submit/sign_transaction`, `/submit/sign_raw_payload`). To help you simplify async mutations, `@turnkey/http` provides a `withAsyncPolling(...)` wrapper. Here's a quick example:
45
53
 
46
54
  ```typescript
47
- import {
48
- TurnkeyApi,
49
- withAsyncPolling,
50
- TurnkeyActivityError,
51
- } from "@turnkey/http";
55
+ import { withAsyncPolling, TurnkeyActivityError } from "@turnkey/http";
52
56
 
53
57
  // Use `withAsyncPolling(...)` to wrap & create a fetcher with built-in async polling support
54
58
  const fetcher = withAsyncPolling({
55
- request: TurnkeyApi.postCreatePrivateKeys,
59
+ request: client.createPrivateKeys,
56
60
  });
57
61
 
58
62
  // The fetcher remains fully typed. After submitting the request,
@@ -86,4 +90,5 @@ See [`createNewEthereumPrivateKey.ts`](/examples/with-ethers/src/createNewEthere
86
90
 
87
91
  ## See also
88
92
 
89
- - [`@turnkey/ethers`](/packages/ethers/): higher-level Turnkey Signer for [`Ethers`](https://docs.ethers.org/v5/api/signer/)
93
+ - [`@turnkey/ethers`](https://www.npmjs.com/package/@turnkey/ethers): Turnkey Signer for [`Ethers`](https://docs.ethers.org/v5/api/signer/)
94
+ - [`@turnkey/viem`](https://www.npmjs.com/package/@turnkey/viem): Turnkey Custom Account for [`Viem`](https://viem.sh/docs/accounts/custom.html)
@@ -0,0 +1,548 @@
1
+ import { THttpConfig, TSignedRequest, TStamper } from "../../../../../base";
2
+ import type { TGetActivityBody, TGetActivityResponse } from "./public_api.fetcher";
3
+ import type { TGetAuthenticatorBody, TGetAuthenticatorResponse } from "./public_api.fetcher";
4
+ import type { TGetAuthenticatorsBody, TGetAuthenticatorsResponse } from "./public_api.fetcher";
5
+ import type { TGetOrganizationBody, TGetOrganizationResponse } from "./public_api.fetcher";
6
+ import type { TGetPolicyBody, TGetPolicyResponse } from "./public_api.fetcher";
7
+ import type { TGetPrivateKeyBody, TGetPrivateKeyResponse } from "./public_api.fetcher";
8
+ import type { TGetUserBody, TGetUserResponse } from "./public_api.fetcher";
9
+ import type { TGetActivitiesBody, TGetActivitiesResponse } from "./public_api.fetcher";
10
+ import type { TGetPoliciesBody, TGetPoliciesResponse } from "./public_api.fetcher";
11
+ import type { TGetPrivateKeysBody, TGetPrivateKeysResponse } from "./public_api.fetcher";
12
+ import type { TGetUsersBody, TGetUsersResponse } from "./public_api.fetcher";
13
+ import type { TGetWhoamiBody, TGetWhoamiResponse } from "./public_api.fetcher";
14
+ import type { TApproveActivityBody, TApproveActivityResponse } from "./public_api.fetcher";
15
+ import type { TCreateApiKeysBody, TCreateApiKeysResponse } from "./public_api.fetcher";
16
+ import type { TCreateApiOnlyUsersBody, TCreateApiOnlyUsersResponse } from "./public_api.fetcher";
17
+ import type { TCreateAuthenticatorsBody, TCreateAuthenticatorsResponse } from "./public_api.fetcher";
18
+ import type { TCreateInvitationsBody, TCreateInvitationsResponse } from "./public_api.fetcher";
19
+ import type { TCreatePolicyBody, TCreatePolicyResponse } from "./public_api.fetcher";
20
+ import type { TCreatePrivateKeyTagBody, TCreatePrivateKeyTagResponse } from "./public_api.fetcher";
21
+ import type { TCreatePrivateKeysBody, TCreatePrivateKeysResponse } from "./public_api.fetcher";
22
+ import type { TCreateSubOrganizationBody, TCreateSubOrganizationResponse } from "./public_api.fetcher";
23
+ import type { TCreateUserTagBody, TCreateUserTagResponse } from "./public_api.fetcher";
24
+ import type { TCreateUsersBody, TCreateUsersResponse } from "./public_api.fetcher";
25
+ import type { TDeleteApiKeysBody, TDeleteApiKeysResponse } from "./public_api.fetcher";
26
+ import type { TDeleteAuthenticatorsBody, TDeleteAuthenticatorsResponse } from "./public_api.fetcher";
27
+ import type { TDeleteInvitationBody, TDeleteInvitationResponse } from "./public_api.fetcher";
28
+ import type { TDeletePolicyBody, TDeletePolicyResponse } from "./public_api.fetcher";
29
+ import type { TRejectActivityBody, TRejectActivityResponse } from "./public_api.fetcher";
30
+ import type { TSignRawPayloadBody, TSignRawPayloadResponse } from "./public_api.fetcher";
31
+ import type { TSignTransactionBody, TSignTransactionResponse } from "./public_api.fetcher";
32
+ import type { TUpdateAllowedOriginsBody, TUpdateAllowedOriginsResponse } from "./public_api.fetcher";
33
+ import type { TUpdatePolicyBody, TUpdatePolicyResponse } from "./public_api.fetcher";
34
+ import type { TUpdatePrivateKeyTagBody, TUpdatePrivateKeyTagResponse } from "./public_api.fetcher";
35
+ import type { TUpdateRootQuorumBody, TUpdateRootQuorumResponse } from "./public_api.fetcher";
36
+ import type { TUpdateUserBody, TUpdateUserResponse } from "./public_api.fetcher";
37
+ import type { TUpdateUserTagBody, TUpdateUserTagResponse } from "./public_api.fetcher";
38
+ export declare class TurnkeyClient {
39
+ config: THttpConfig;
40
+ stamper: TStamper;
41
+ constructor(config: THttpConfig, stamper: TStamper);
42
+ request<TBodyType, TResponseType>(url: string, body: TBodyType): Promise<TResponseType>;
43
+ /**
44
+ * Get details about an Activity
45
+ *
46
+ * Sign the provided `TGetActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_activity).
47
+ *
48
+ * See also {@link stampGetActivity}.
49
+ */
50
+ getActivity: (input: TGetActivityBody) => Promise<TGetActivityResponse>;
51
+ /**
52
+ * Produce a `SignedRequest` from `TGetActivityBody` by using the client's `stamp` function.
53
+ *
54
+ * See also {@link GetActivity}.
55
+ */
56
+ stampGetActivity: (input: TGetActivityBody) => Promise<TSignedRequest>;
57
+ /**
58
+ * Get details about an authenticator
59
+ *
60
+ * Sign the provided `TGetAuthenticatorBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticator).
61
+ *
62
+ * See also {@link stampGetAuthenticator}.
63
+ */
64
+ getAuthenticator: (input: TGetAuthenticatorBody) => Promise<TGetAuthenticatorResponse>;
65
+ /**
66
+ * Produce a `SignedRequest` from `TGetAuthenticatorBody` by using the client's `stamp` function.
67
+ *
68
+ * See also {@link GetAuthenticator}.
69
+ */
70
+ stampGetAuthenticator: (input: TGetAuthenticatorBody) => Promise<TSignedRequest>;
71
+ /**
72
+ * Get details about authenticators for a user
73
+ *
74
+ * Sign the provided `TGetAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_authenticators).
75
+ *
76
+ * See also {@link stampGetAuthenticators}.
77
+ */
78
+ getAuthenticators: (input: TGetAuthenticatorsBody) => Promise<TGetAuthenticatorsResponse>;
79
+ /**
80
+ * Produce a `SignedRequest` from `TGetAuthenticatorsBody` by using the client's `stamp` function.
81
+ *
82
+ * See also {@link GetAuthenticators}.
83
+ */
84
+ stampGetAuthenticators: (input: TGetAuthenticatorsBody) => Promise<TSignedRequest>;
85
+ /**
86
+ * Get details about an Organization
87
+ *
88
+ * Sign the provided `TGetOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_organization).
89
+ *
90
+ * See also {@link stampGetOrganization}.
91
+ */
92
+ getOrganization: (input: TGetOrganizationBody) => Promise<TGetOrganizationResponse>;
93
+ /**
94
+ * Produce a `SignedRequest` from `TGetOrganizationBody` by using the client's `stamp` function.
95
+ *
96
+ * See also {@link GetOrganization}.
97
+ */
98
+ stampGetOrganization: (input: TGetOrganizationBody) => Promise<TSignedRequest>;
99
+ /**
100
+ * Get details about a Policy
101
+ *
102
+ * Sign the provided `TGetPolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_policy).
103
+ *
104
+ * See also {@link stampGetPolicy}.
105
+ */
106
+ getPolicy: (input: TGetPolicyBody) => Promise<TGetPolicyResponse>;
107
+ /**
108
+ * Produce a `SignedRequest` from `TGetPolicyBody` by using the client's `stamp` function.
109
+ *
110
+ * See also {@link GetPolicy}.
111
+ */
112
+ stampGetPolicy: (input: TGetPolicyBody) => Promise<TSignedRequest>;
113
+ /**
114
+ * Get details about a Private Key
115
+ *
116
+ * Sign the provided `TGetPrivateKeyBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_private_key).
117
+ *
118
+ * See also {@link stampGetPrivateKey}.
119
+ */
120
+ getPrivateKey: (input: TGetPrivateKeyBody) => Promise<TGetPrivateKeyResponse>;
121
+ /**
122
+ * Produce a `SignedRequest` from `TGetPrivateKeyBody` by using the client's `stamp` function.
123
+ *
124
+ * See also {@link GetPrivateKey}.
125
+ */
126
+ stampGetPrivateKey: (input: TGetPrivateKeyBody) => Promise<TSignedRequest>;
127
+ /**
128
+ * Get details about a User
129
+ *
130
+ * Sign the provided `TGetUserBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_user).
131
+ *
132
+ * See also {@link stampGetUser}.
133
+ */
134
+ getUser: (input: TGetUserBody) => Promise<TGetUserResponse>;
135
+ /**
136
+ * Produce a `SignedRequest` from `TGetUserBody` by using the client's `stamp` function.
137
+ *
138
+ * See also {@link GetUser}.
139
+ */
140
+ stampGetUser: (input: TGetUserBody) => Promise<TSignedRequest>;
141
+ /**
142
+ * List all Activities within an Organization
143
+ *
144
+ * Sign the provided `TGetActivitiesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_activities).
145
+ *
146
+ * See also {@link stampGetActivities}.
147
+ */
148
+ getActivities: (input: TGetActivitiesBody) => Promise<TGetActivitiesResponse>;
149
+ /**
150
+ * Produce a `SignedRequest` from `TGetActivitiesBody` by using the client's `stamp` function.
151
+ *
152
+ * See also {@link GetActivities}.
153
+ */
154
+ stampGetActivities: (input: TGetActivitiesBody) => Promise<TSignedRequest>;
155
+ /**
156
+ * List all Policies within an Organization
157
+ *
158
+ * Sign the provided `TGetPoliciesBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_policies).
159
+ *
160
+ * See also {@link stampGetPolicies}.
161
+ */
162
+ getPolicies: (input: TGetPoliciesBody) => Promise<TGetPoliciesResponse>;
163
+ /**
164
+ * Produce a `SignedRequest` from `TGetPoliciesBody` by using the client's `stamp` function.
165
+ *
166
+ * See also {@link GetPolicies}.
167
+ */
168
+ stampGetPolicies: (input: TGetPoliciesBody) => Promise<TSignedRequest>;
169
+ /**
170
+ * List all Private Keys within an Organization
171
+ *
172
+ * Sign the provided `TGetPrivateKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_private_keys).
173
+ *
174
+ * See also {@link stampGetPrivateKeys}.
175
+ */
176
+ getPrivateKeys: (input: TGetPrivateKeysBody) => Promise<TGetPrivateKeysResponse>;
177
+ /**
178
+ * Produce a `SignedRequest` from `TGetPrivateKeysBody` by using the client's `stamp` function.
179
+ *
180
+ * See also {@link GetPrivateKeys}.
181
+ */
182
+ stampGetPrivateKeys: (input: TGetPrivateKeysBody) => Promise<TSignedRequest>;
183
+ /**
184
+ * List all Users within an Organization
185
+ *
186
+ * Sign the provided `TGetUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_users).
187
+ *
188
+ * See also {@link stampGetUsers}.
189
+ */
190
+ getUsers: (input: TGetUsersBody) => Promise<TGetUsersResponse>;
191
+ /**
192
+ * Produce a `SignedRequest` from `TGetUsersBody` by using the client's `stamp` function.
193
+ *
194
+ * See also {@link GetUsers}.
195
+ */
196
+ stampGetUsers: (input: TGetUsersBody) => Promise<TSignedRequest>;
197
+ /**
198
+ * Get basic information about your current API user and your organization
199
+ *
200
+ * Sign the provided `TGetWhoamiBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/whoami).
201
+ *
202
+ * See also {@link stampGetWhoami}.
203
+ */
204
+ getWhoami: (input: TGetWhoamiBody) => Promise<TGetWhoamiResponse>;
205
+ /**
206
+ * Produce a `SignedRequest` from `TGetWhoamiBody` by using the client's `stamp` function.
207
+ *
208
+ * See also {@link GetWhoami}.
209
+ */
210
+ stampGetWhoami: (input: TGetWhoamiBody) => Promise<TSignedRequest>;
211
+ /**
212
+ * Approve an Activity
213
+ *
214
+ * Sign the provided `TApproveActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/approve_activity).
215
+ *
216
+ * See also {@link stampApproveActivity}.
217
+ */
218
+ approveActivity: (input: TApproveActivityBody) => Promise<TApproveActivityResponse>;
219
+ /**
220
+ * Produce a `SignedRequest` from `TApproveActivityBody` by using the client's `stamp` function.
221
+ *
222
+ * See also {@link ApproveActivity}.
223
+ */
224
+ stampApproveActivity: (input: TApproveActivityBody) => Promise<TSignedRequest>;
225
+ /**
226
+ * Add api keys to an existing User
227
+ *
228
+ * Sign the provided `TCreateApiKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_api_keys).
229
+ *
230
+ * See also {@link stampCreateApiKeys}.
231
+ */
232
+ createApiKeys: (input: TCreateApiKeysBody) => Promise<TCreateApiKeysResponse>;
233
+ /**
234
+ * Produce a `SignedRequest` from `TCreateApiKeysBody` by using the client's `stamp` function.
235
+ *
236
+ * See also {@link CreateApiKeys}.
237
+ */
238
+ stampCreateApiKeys: (input: TCreateApiKeysBody) => Promise<TSignedRequest>;
239
+ /**
240
+ * Create API-only Users in an existing Organization
241
+ *
242
+ * Sign the provided `TCreateApiOnlyUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_api_only_users).
243
+ *
244
+ * See also {@link stampCreateApiOnlyUsers}.
245
+ */
246
+ createApiOnlyUsers: (input: TCreateApiOnlyUsersBody) => Promise<TCreateApiOnlyUsersResponse>;
247
+ /**
248
+ * Produce a `SignedRequest` from `TCreateApiOnlyUsersBody` by using the client's `stamp` function.
249
+ *
250
+ * See also {@link CreateApiOnlyUsers}.
251
+ */
252
+ stampCreateApiOnlyUsers: (input: TCreateApiOnlyUsersBody) => Promise<TSignedRequest>;
253
+ /**
254
+ * Create Authenticators to authenticate requests to Turnkey
255
+ *
256
+ * Sign the provided `TCreateAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_authenticators).
257
+ *
258
+ * See also {@link stampCreateAuthenticators}.
259
+ */
260
+ createAuthenticators: (input: TCreateAuthenticatorsBody) => Promise<TCreateAuthenticatorsResponse>;
261
+ /**
262
+ * Produce a `SignedRequest` from `TCreateAuthenticatorsBody` by using the client's `stamp` function.
263
+ *
264
+ * See also {@link CreateAuthenticators}.
265
+ */
266
+ stampCreateAuthenticators: (input: TCreateAuthenticatorsBody) => Promise<TSignedRequest>;
267
+ /**
268
+ * Create Invitations to join an existing Organization
269
+ *
270
+ * Sign the provided `TCreateInvitationsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_invitations).
271
+ *
272
+ * See also {@link stampCreateInvitations}.
273
+ */
274
+ createInvitations: (input: TCreateInvitationsBody) => Promise<TCreateInvitationsResponse>;
275
+ /**
276
+ * Produce a `SignedRequest` from `TCreateInvitationsBody` by using the client's `stamp` function.
277
+ *
278
+ * See also {@link CreateInvitations}.
279
+ */
280
+ stampCreateInvitations: (input: TCreateInvitationsBody) => Promise<TSignedRequest>;
281
+ /**
282
+ * Create a new Policy
283
+ *
284
+ * Sign the provided `TCreatePolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_policy).
285
+ *
286
+ * See also {@link stampCreatePolicy}.
287
+ */
288
+ createPolicy: (input: TCreatePolicyBody) => Promise<TCreatePolicyResponse>;
289
+ /**
290
+ * Produce a `SignedRequest` from `TCreatePolicyBody` by using the client's `stamp` function.
291
+ *
292
+ * See also {@link CreatePolicy}.
293
+ */
294
+ stampCreatePolicy: (input: TCreatePolicyBody) => Promise<TSignedRequest>;
295
+ /**
296
+ * Create a private key tag and add it to private keys.
297
+ *
298
+ * Sign the provided `TCreatePrivateKeyTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_private_key_tag).
299
+ *
300
+ * See also {@link stampCreatePrivateKeyTag}.
301
+ */
302
+ createPrivateKeyTag: (input: TCreatePrivateKeyTagBody) => Promise<TCreatePrivateKeyTagResponse>;
303
+ /**
304
+ * Produce a `SignedRequest` from `TCreatePrivateKeyTagBody` by using the client's `stamp` function.
305
+ *
306
+ * See also {@link CreatePrivateKeyTag}.
307
+ */
308
+ stampCreatePrivateKeyTag: (input: TCreatePrivateKeyTagBody) => Promise<TSignedRequest>;
309
+ /**
310
+ * Create new Private Keys
311
+ *
312
+ * Sign the provided `TCreatePrivateKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_private_keys).
313
+ *
314
+ * See also {@link stampCreatePrivateKeys}.
315
+ */
316
+ createPrivateKeys: (input: TCreatePrivateKeysBody) => Promise<TCreatePrivateKeysResponse>;
317
+ /**
318
+ * Produce a `SignedRequest` from `TCreatePrivateKeysBody` by using the client's `stamp` function.
319
+ *
320
+ * See also {@link CreatePrivateKeys}.
321
+ */
322
+ stampCreatePrivateKeys: (input: TCreatePrivateKeysBody) => Promise<TSignedRequest>;
323
+ /**
324
+ * Create a new Sub-Organization
325
+ *
326
+ * Sign the provided `TCreateSubOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_sub_organization).
327
+ *
328
+ * See also {@link stampCreateSubOrganization}.
329
+ */
330
+ createSubOrganization: (input: TCreateSubOrganizationBody) => Promise<TCreateSubOrganizationResponse>;
331
+ /**
332
+ * Produce a `SignedRequest` from `TCreateSubOrganizationBody` by using the client's `stamp` function.
333
+ *
334
+ * See also {@link CreateSubOrganization}.
335
+ */
336
+ stampCreateSubOrganization: (input: TCreateSubOrganizationBody) => Promise<TSignedRequest>;
337
+ /**
338
+ * Create a user tag and add it to users.
339
+ *
340
+ * Sign the provided `TCreateUserTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_user_tag).
341
+ *
342
+ * See also {@link stampCreateUserTag}.
343
+ */
344
+ createUserTag: (input: TCreateUserTagBody) => Promise<TCreateUserTagResponse>;
345
+ /**
346
+ * Produce a `SignedRequest` from `TCreateUserTagBody` by using the client's `stamp` function.
347
+ *
348
+ * See also {@link CreateUserTag}.
349
+ */
350
+ stampCreateUserTag: (input: TCreateUserTagBody) => Promise<TSignedRequest>;
351
+ /**
352
+ * Create Users in an existing Organization
353
+ *
354
+ * Sign the provided `TCreateUsersBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_users).
355
+ *
356
+ * See also {@link stampCreateUsers}.
357
+ */
358
+ createUsers: (input: TCreateUsersBody) => Promise<TCreateUsersResponse>;
359
+ /**
360
+ * Produce a `SignedRequest` from `TCreateUsersBody` by using the client's `stamp` function.
361
+ *
362
+ * See also {@link CreateUsers}.
363
+ */
364
+ stampCreateUsers: (input: TCreateUsersBody) => Promise<TSignedRequest>;
365
+ /**
366
+ * Remove api keys from a User
367
+ *
368
+ * Sign the provided `TDeleteApiKeysBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_api_keys).
369
+ *
370
+ * See also {@link stampDeleteApiKeys}.
371
+ */
372
+ deleteApiKeys: (input: TDeleteApiKeysBody) => Promise<TDeleteApiKeysResponse>;
373
+ /**
374
+ * Produce a `SignedRequest` from `TDeleteApiKeysBody` by using the client's `stamp` function.
375
+ *
376
+ * See also {@link DeleteApiKeys}.
377
+ */
378
+ stampDeleteApiKeys: (input: TDeleteApiKeysBody) => Promise<TSignedRequest>;
379
+ /**
380
+ * Remove authenticators from a User
381
+ *
382
+ * Sign the provided `TDeleteAuthenticatorsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_authenticators).
383
+ *
384
+ * See also {@link stampDeleteAuthenticators}.
385
+ */
386
+ deleteAuthenticators: (input: TDeleteAuthenticatorsBody) => Promise<TDeleteAuthenticatorsResponse>;
387
+ /**
388
+ * Produce a `SignedRequest` from `TDeleteAuthenticatorsBody` by using the client's `stamp` function.
389
+ *
390
+ * See also {@link DeleteAuthenticators}.
391
+ */
392
+ stampDeleteAuthenticators: (input: TDeleteAuthenticatorsBody) => Promise<TSignedRequest>;
393
+ /**
394
+ * Delete an existing Invitation
395
+ *
396
+ * Sign the provided `TDeleteInvitationBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_invitations).
397
+ *
398
+ * See also {@link stampDeleteInvitation}.
399
+ */
400
+ deleteInvitation: (input: TDeleteInvitationBody) => Promise<TDeleteInvitationResponse>;
401
+ /**
402
+ * Produce a `SignedRequest` from `TDeleteInvitationBody` by using the client's `stamp` function.
403
+ *
404
+ * See also {@link DeleteInvitation}.
405
+ */
406
+ stampDeleteInvitation: (input: TDeleteInvitationBody) => Promise<TSignedRequest>;
407
+ /**
408
+ * Delete an existing Policy
409
+ *
410
+ * Sign the provided `TDeletePolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/delete_policy).
411
+ *
412
+ * See also {@link stampDeletePolicy}.
413
+ */
414
+ deletePolicy: (input: TDeletePolicyBody) => Promise<TDeletePolicyResponse>;
415
+ /**
416
+ * Produce a `SignedRequest` from `TDeletePolicyBody` by using the client's `stamp` function.
417
+ *
418
+ * See also {@link DeletePolicy}.
419
+ */
420
+ stampDeletePolicy: (input: TDeletePolicyBody) => Promise<TSignedRequest>;
421
+ /**
422
+ * Reject an Activity
423
+ *
424
+ * Sign the provided `TRejectActivityBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/reject_activity).
425
+ *
426
+ * See also {@link stampRejectActivity}.
427
+ */
428
+ rejectActivity: (input: TRejectActivityBody) => Promise<TRejectActivityResponse>;
429
+ /**
430
+ * Produce a `SignedRequest` from `TRejectActivityBody` by using the client's `stamp` function.
431
+ *
432
+ * See also {@link RejectActivity}.
433
+ */
434
+ stampRejectActivity: (input: TRejectActivityBody) => Promise<TSignedRequest>;
435
+ /**
436
+ * Sign a raw payload with a Private Key
437
+ *
438
+ * Sign the provided `TSignRawPayloadBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_raw_payload).
439
+ *
440
+ * See also {@link stampSignRawPayload}.
441
+ */
442
+ signRawPayload: (input: TSignRawPayloadBody) => Promise<TSignRawPayloadResponse>;
443
+ /**
444
+ * Produce a `SignedRequest` from `TSignRawPayloadBody` by using the client's `stamp` function.
445
+ *
446
+ * See also {@link SignRawPayload}.
447
+ */
448
+ stampSignRawPayload: (input: TSignRawPayloadBody) => Promise<TSignedRequest>;
449
+ /**
450
+ * Sign a transaction with a Private Key
451
+ *
452
+ * Sign the provided `TSignTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/sign_transaction).
453
+ *
454
+ * See also {@link stampSignTransaction}.
455
+ */
456
+ signTransaction: (input: TSignTransactionBody) => Promise<TSignTransactionResponse>;
457
+ /**
458
+ * Produce a `SignedRequest` from `TSignTransactionBody` by using the client's `stamp` function.
459
+ *
460
+ * See also {@link SignTransaction}.
461
+ */
462
+ stampSignTransaction: (input: TSignTransactionBody) => Promise<TSignedRequest>;
463
+ /**
464
+ * Update the allowable origins for credentials and requests
465
+ *
466
+ * Sign the provided `TUpdateAllowedOriginsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_allowed_origins).
467
+ *
468
+ * See also {@link stampUpdateAllowedOrigins}.
469
+ */
470
+ updateAllowedOrigins: (input: TUpdateAllowedOriginsBody) => Promise<TUpdateAllowedOriginsResponse>;
471
+ /**
472
+ * Produce a `SignedRequest` from `TUpdateAllowedOriginsBody` by using the client's `stamp` function.
473
+ *
474
+ * See also {@link UpdateAllowedOrigins}.
475
+ */
476
+ stampUpdateAllowedOrigins: (input: TUpdateAllowedOriginsBody) => Promise<TSignedRequest>;
477
+ /**
478
+ * Update an existing Policy
479
+ *
480
+ * Sign the provided `TUpdatePolicyBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_policy).
481
+ *
482
+ * See also {@link stampUpdatePolicy}.
483
+ */
484
+ updatePolicy: (input: TUpdatePolicyBody) => Promise<TUpdatePolicyResponse>;
485
+ /**
486
+ * Produce a `SignedRequest` from `TUpdatePolicyBody` by using the client's `stamp` function.
487
+ *
488
+ * See also {@link UpdatePolicy}.
489
+ */
490
+ stampUpdatePolicy: (input: TUpdatePolicyBody) => Promise<TSignedRequest>;
491
+ /**
492
+ * 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.
493
+ *
494
+ * Sign the provided `TUpdatePrivateKeyTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_private_key_tag).
495
+ *
496
+ * See also {@link stampUpdatePrivateKeyTag}.
497
+ */
498
+ updatePrivateKeyTag: (input: TUpdatePrivateKeyTagBody) => Promise<TUpdatePrivateKeyTagResponse>;
499
+ /**
500
+ * Produce a `SignedRequest` from `TUpdatePrivateKeyTagBody` by using the client's `stamp` function.
501
+ *
502
+ * See also {@link UpdatePrivateKeyTag}.
503
+ */
504
+ stampUpdatePrivateKeyTag: (input: TUpdatePrivateKeyTagBody) => Promise<TSignedRequest>;
505
+ /**
506
+ * Set the threshold and members of the root quorum. This must be approved by the current root quorum.
507
+ *
508
+ * Sign the provided `TUpdateRootQuorumBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_root_quorum).
509
+ *
510
+ * See also {@link stampUpdateRootQuorum}.
511
+ */
512
+ updateRootQuorum: (input: TUpdateRootQuorumBody) => Promise<TUpdateRootQuorumResponse>;
513
+ /**
514
+ * Produce a `SignedRequest` from `TUpdateRootQuorumBody` by using the client's `stamp` function.
515
+ *
516
+ * See also {@link UpdateRootQuorum}.
517
+ */
518
+ stampUpdateRootQuorum: (input: TUpdateRootQuorumBody) => Promise<TSignedRequest>;
519
+ /**
520
+ * Update a User in an existing Organization
521
+ *
522
+ * Sign the provided `TUpdateUserBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_user).
523
+ *
524
+ * See also {@link stampUpdateUser}.
525
+ */
526
+ updateUser: (input: TUpdateUserBody) => Promise<TUpdateUserResponse>;
527
+ /**
528
+ * Produce a `SignedRequest` from `TUpdateUserBody` by using the client's `stamp` function.
529
+ *
530
+ * See also {@link UpdateUser}.
531
+ */
532
+ stampUpdateUser: (input: TUpdateUserBody) => Promise<TSignedRequest>;
533
+ /**
534
+ * 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.
535
+ *
536
+ * Sign the provided `TUpdateUserTagBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/update_user_tag).
537
+ *
538
+ * See also {@link stampUpdateUserTag}.
539
+ */
540
+ updateUserTag: (input: TUpdateUserTagBody) => Promise<TUpdateUserTagResponse>;
541
+ /**
542
+ * Produce a `SignedRequest` from `TUpdateUserTagBody` by using the client's `stamp` function.
543
+ *
544
+ * See also {@link UpdateUserTag}.
545
+ */
546
+ stampUpdateUserTag: (input: TUpdateUserTagBody) => Promise<TSignedRequest>;
547
+ }
548
+ //# sourceMappingURL=public_api.client.d.ts.map