@turnkey/http 3.18.0 → 4.0.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 +215 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +225 -0
- 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 +375 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +375 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +32334 -3632
- 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 +360 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +331 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +866 -20
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,219 @@
|
|
|
1
1
|
# @turnkey/http
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#1250](https://github.com/tkhq/sdk/pull/1250) [`6128132`](https://github.com/tkhq/sdk/commit/6128132d910f658cdf83ecc1dec6598eb20c008a) Author [@moeodeh3](https://github.com/moeodeh3) - ### `INIT_OTP`
|
|
8
|
+
|
|
9
|
+
`ACTIVITY_TYPE_INIT_OTP_V2` → `ACTIVITY_TYPE_INIT_OTP_V3`
|
|
10
|
+
|
|
11
|
+
**What changed:** Added required `otpEncryptionTargetBundle` to the result.
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
// before — v1InitOtpResult
|
|
15
|
+
{
|
|
16
|
+
otpId: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// after — v1InitOtpResultV2
|
|
20
|
+
{
|
|
21
|
+
otpId: string;
|
|
22
|
+
otpEncryptionTargetBundle: string; // new
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
***
|
|
27
|
+
|
|
28
|
+
### `VERIFY_OTP`
|
|
29
|
+
|
|
30
|
+
`ACTIVITY_TYPE_VERIFY_OTP` → `ACTIVITY_TYPE_VERIFY_OTP_V2`
|
|
31
|
+
|
|
32
|
+
**What changed:** Replaced plaintext `otpCode` + `publicKey` with a single `encryptedOtpBundle`.
|
|
33
|
+
|
|
34
|
+
Instead of sending the OTP code in plaintext, you now HPKE-encrypt it (along with your public key) to Turnkey's enclave using the `otpEncryptionTargetBundle` returned by `initOtp`. This ensures the OTP code never leaves the client in plaintext.
|
|
35
|
+
|
|
36
|
+
Use `encryptOtpCodeToBundle` from `@turnkey/crypto` to build the bundle:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { encryptOtpCodeToBundle } from "@turnkey/crypto";
|
|
40
|
+
|
|
41
|
+
const { otpId, otpEncryptionTargetBundle } = await client.initOtp({ ... });
|
|
42
|
+
|
|
43
|
+
// After the user enters their OTP code:
|
|
44
|
+
const encryptedOtpBundle = await encryptOtpCodeToBundle(
|
|
45
|
+
otpCode, // the code the user entered
|
|
46
|
+
otpEncryptionTargetBundle, // from the initOtp response
|
|
47
|
+
publicKey, // your target public key
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
await client.verifyOtp({
|
|
51
|
+
otpId,
|
|
52
|
+
encryptedOtpBundle,
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
// before — v1VerifyOtpIntent
|
|
58
|
+
{
|
|
59
|
+
otpId: string;
|
|
60
|
+
otpCode: string; // removed
|
|
61
|
+
expirationSeconds?: string;
|
|
62
|
+
publicKey?: string; // removed
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// after — v1VerifyOtpIntentV2
|
|
66
|
+
{
|
|
67
|
+
otpId: string;
|
|
68
|
+
encryptedOtpBundle: string; // new — replaces otpCode + publicKey
|
|
69
|
+
expirationSeconds?: string;
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### `OTP_LOGIN`
|
|
76
|
+
|
|
77
|
+
`ACTIVITY_TYPE_OTP_LOGIN` → `ACTIVITY_TYPE_OTP_LOGIN_V2`
|
|
78
|
+
|
|
79
|
+
**What changed:** `clientSignature` promoted from optional to required.
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
// before — v1OtpLoginIntent
|
|
83
|
+
{
|
|
84
|
+
verificationToken: string;
|
|
85
|
+
publicKey: string;
|
|
86
|
+
expirationSeconds?: string;
|
|
87
|
+
invalidateExisting?: boolean;
|
|
88
|
+
clientSignature?: v1ClientSignature; // optional
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// after — v1OtpLoginIntentV2
|
|
92
|
+
{
|
|
93
|
+
verificationToken: string;
|
|
94
|
+
publicKey: string;
|
|
95
|
+
expirationSeconds?: string;
|
|
96
|
+
invalidateExisting?: boolean;
|
|
97
|
+
clientSignature: v1ClientSignature; // now required
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
***
|
|
102
|
+
|
|
103
|
+
### `CREATE_OAUTH_PROVIDERS`
|
|
104
|
+
|
|
105
|
+
`ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS` → `ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS_V2`
|
|
106
|
+
|
|
107
|
+
**What changed:** Added `oidcClaims` as a new option alongside `oidcToken`; you must provide exactly one. This updated type feeds into the `CREATE_SUB_ORGANIZATION` and `CREATE_USERS` changes below.
|
|
108
|
+
|
|
109
|
+
```ts
|
|
110
|
+
// before — v1OauthProviderParams
|
|
111
|
+
{
|
|
112
|
+
providerName: string;
|
|
113
|
+
oidcToken: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// after — v1OauthProviderParamsV2
|
|
117
|
+
{
|
|
118
|
+
providerName: string;
|
|
119
|
+
} & (
|
|
120
|
+
| { oidcToken: string }
|
|
121
|
+
| { oidcClaims: { iss: string; sub: string; aud: string } }
|
|
122
|
+
)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
***
|
|
126
|
+
|
|
127
|
+
### `CREATE_SUB_ORGANIZATION`
|
|
128
|
+
|
|
129
|
+
`ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7` → `ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V8`
|
|
130
|
+
|
|
131
|
+
**What changed:** `rootUsers` items updated from `v1RootUserParamsV4` → `v1RootUserParamsV5`, which updates `oauthProviders` from `v1OauthProviderParams` → `v1OauthProviderParamsV2`.
|
|
132
|
+
|
|
133
|
+
```ts
|
|
134
|
+
// before — v1RootUserParamsV4
|
|
135
|
+
{
|
|
136
|
+
userName: string;
|
|
137
|
+
userEmail?: string;
|
|
138
|
+
userPhoneNumber?: string;
|
|
139
|
+
apiKeys: v1ApiKeyParamsV2[];
|
|
140
|
+
authenticators: v1AuthenticatorParamsV2[];
|
|
141
|
+
oauthProviders: { // v1OauthProviderParams
|
|
142
|
+
providerName: string;
|
|
143
|
+
oidcToken: string; // was required
|
|
144
|
+
}[];
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// after — v1RootUserParamsV5
|
|
148
|
+
{
|
|
149
|
+
userName: string;
|
|
150
|
+
userEmail?: string;
|
|
151
|
+
userPhoneNumber?: string;
|
|
152
|
+
apiKeys: v1ApiKeyParamsV2[];
|
|
153
|
+
authenticators: v1AuthenticatorParamsV2[];
|
|
154
|
+
oauthProviders: ({ // v1OauthProviderParamsV2
|
|
155
|
+
providerName: string;
|
|
156
|
+
} & (
|
|
157
|
+
| { oidcToken: string }
|
|
158
|
+
| { oidcClaims: { iss: string; sub: string; aud: string } }
|
|
159
|
+
))[];
|
|
160
|
+
}
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
***
|
|
164
|
+
|
|
165
|
+
### `CREATE_USERS`
|
|
166
|
+
|
|
167
|
+
`ACTIVITY_TYPE_CREATE_USERS_V3` → `ACTIVITY_TYPE_CREATE_USERS_V4`
|
|
168
|
+
|
|
169
|
+
**What changed:** `users` items updated from `v1UserParamsV3` → `v1UserParamsV4`, which updates `oauthProviders` from `v1OauthProviderParams` → `v1OauthProviderParamsV2`.
|
|
170
|
+
|
|
171
|
+
```ts
|
|
172
|
+
// before — v1UserParamsV3
|
|
173
|
+
{
|
|
174
|
+
userName: string;
|
|
175
|
+
userEmail?: string;
|
|
176
|
+
userPhoneNumber?: string;
|
|
177
|
+
apiKeys: v1ApiKeyParamsV2[];
|
|
178
|
+
authenticators: v1AuthenticatorParamsV2[];
|
|
179
|
+
oauthProviders: { // v1OauthProviderParams
|
|
180
|
+
providerName: string;
|
|
181
|
+
oidcToken: string; // was required
|
|
182
|
+
}[];
|
|
183
|
+
userTags: string[];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// after — v1UserParamsV4
|
|
187
|
+
{
|
|
188
|
+
userName: string;
|
|
189
|
+
userEmail?: string;
|
|
190
|
+
userPhoneNumber?: string;
|
|
191
|
+
apiKeys: v1ApiKeyParamsV2[];
|
|
192
|
+
authenticators: v1AuthenticatorParamsV2[];
|
|
193
|
+
oauthProviders: ({ // v1OauthProviderParamsV2
|
|
194
|
+
providerName: string;
|
|
195
|
+
} & (
|
|
196
|
+
| { oidcToken: string }
|
|
197
|
+
| { oidcClaims: { iss: string; sub: string; aud: string } }
|
|
198
|
+
))[];
|
|
199
|
+
userTags: string[];
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Patch Changes
|
|
204
|
+
|
|
205
|
+
- Updated dependencies []:
|
|
206
|
+
- @turnkey/api-key-stamper@0.6.6
|
|
207
|
+
|
|
208
|
+
## 3.18.1
|
|
209
|
+
|
|
210
|
+
### Patch Changes
|
|
211
|
+
|
|
212
|
+
- [#1269](https://github.com/tkhq/sdk/pull/1269) [`ef66673`](https://github.com/tkhq/sdk/commit/ef6667325d210c8aa0ea4c1d11d834ff28ddb66c) Author [@ethankonk](https://github.com/ethankonk) - Sync with v2026.4.5 of mono
|
|
213
|
+
|
|
214
|
+
- Updated dependencies []:
|
|
215
|
+
- @turnkey/api-key-stamper@0.6.5
|
|
216
|
+
|
|
3
217
|
## 3.18.0
|
|
4
218
|
|
|
5
219
|
### Minor Changes
|
|
@@ -71,7 +285,7 @@
|
|
|
71
285
|
|
|
72
286
|
The following activity types have been versioned:
|
|
73
287
|
- `ACTIVITY_TYPE_INIT_OTP` → `ACTIVITY_TYPE_INIT_OTP_V2`
|
|
74
|
-
- `ACTIVITY_TYPE_INIT_OTP_AUTH_V2` → `
|
|
288
|
+
- `ACTIVITY_TYPE_INIT_OTP_AUTH_V2` → `ACTIVITY_TYPE_INIT_OTP_AUTH_V3`
|
|
75
289
|
- `ACTIVITY_TYPE_EMAIL_AUTH_V2` → `ACTIVITY_TYPE_EMAIL_AUTH_V3`
|
|
76
290
|
- `ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY` -> `ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2`
|
|
77
291
|
|
|
@@ -7,17 +7,21 @@ import type { TGetAuthenticatorBody, TGetAuthenticatorResponse } from "./public_
|
|
|
7
7
|
import type { TGetAuthenticatorsBody, TGetAuthenticatorsResponse } from "./public_api.fetcher";
|
|
8
8
|
import type { TGetBootProofBody, TGetBootProofResponse } from "./public_api.fetcher";
|
|
9
9
|
import type { TGetGasUsageBody, TGetGasUsageResponse } from "./public_api.fetcher";
|
|
10
|
+
import type { TGetIpAllowlistBody, TGetIpAllowlistResponse } from "./public_api.fetcher";
|
|
10
11
|
import type { TGetLatestBootProofBody, TGetLatestBootProofResponse } from "./public_api.fetcher";
|
|
11
12
|
import type { TGetNoncesBody, TGetNoncesResponse } from "./public_api.fetcher";
|
|
12
13
|
import type { TGetOauth2CredentialBody, TGetOauth2CredentialResponse } from "./public_api.fetcher";
|
|
13
14
|
import type { TGetOauthProvidersBody, TGetOauthProvidersResponse } from "./public_api.fetcher";
|
|
14
15
|
import type { TGetOnRampTransactionStatusBody, TGetOnRampTransactionStatusResponse } from "./public_api.fetcher";
|
|
16
|
+
import type { TGetOrganizationBody, TGetOrganizationResponse } from "./public_api.fetcher";
|
|
15
17
|
import type { TGetOrganizationConfigsBody, TGetOrganizationConfigsResponse } from "./public_api.fetcher";
|
|
16
18
|
import type { TGetPolicyBody, TGetPolicyResponse } from "./public_api.fetcher";
|
|
17
19
|
import type { TGetPolicyEvaluationsBody, TGetPolicyEvaluationsResponse } from "./public_api.fetcher";
|
|
18
20
|
import type { TGetPrivateKeyBody, TGetPrivateKeyResponse } from "./public_api.fetcher";
|
|
19
21
|
import type { TGetSendTransactionStatusBody, TGetSendTransactionStatusResponse } from "./public_api.fetcher";
|
|
20
22
|
import type { TGetSmartContractInterfaceBody, TGetSmartContractInterfaceResponse } from "./public_api.fetcher";
|
|
23
|
+
import type { TGetTvcAppBody, TGetTvcAppResponse } from "./public_api.fetcher";
|
|
24
|
+
import type { TGetTvcDeploymentBody, TGetTvcDeploymentResponse } from "./public_api.fetcher";
|
|
21
25
|
import type { TGetUserBody, TGetUserResponse } from "./public_api.fetcher";
|
|
22
26
|
import type { TGetWalletBody, TGetWalletResponse } from "./public_api.fetcher";
|
|
23
27
|
import type { TGetWalletAccountBody, TGetWalletAccountResponse } from "./public_api.fetcher";
|
|
@@ -32,12 +36,15 @@ import type { TGetPrivateKeysBody, TGetPrivateKeysResponse } from "./public_api.
|
|
|
32
36
|
import type { TGetSmartContractInterfacesBody, TGetSmartContractInterfacesResponse } from "./public_api.fetcher";
|
|
33
37
|
import type { TGetSubOrgIdsBody, TGetSubOrgIdsResponse } from "./public_api.fetcher";
|
|
34
38
|
import type { TListSupportedAssetsBody, TListSupportedAssetsResponse } from "./public_api.fetcher";
|
|
39
|
+
import type { TGetTvcAppDeploymentsBody, TGetTvcAppDeploymentsResponse } from "./public_api.fetcher";
|
|
40
|
+
import type { TGetTvcAppsBody, TGetTvcAppsResponse } from "./public_api.fetcher";
|
|
35
41
|
import type { TListUserTagsBody, TListUserTagsResponse } from "./public_api.fetcher";
|
|
36
42
|
import type { TGetUsersBody, TGetUsersResponse } from "./public_api.fetcher";
|
|
37
43
|
import type { TGetVerifiedSubOrgIdsBody, TGetVerifiedSubOrgIdsResponse } from "./public_api.fetcher";
|
|
38
44
|
import type { TGetWalletAccountsBody, TGetWalletAccountsResponse } from "./public_api.fetcher";
|
|
39
45
|
import type { TGetWalletsBody, TGetWalletsResponse } from "./public_api.fetcher";
|
|
40
46
|
import type { TListWebhookEndpointsBody, TListWebhookEndpointsResponse } from "./public_api.fetcher";
|
|
47
|
+
import type { TValidateTvcImageBody, TValidateTvcImageResponse } from "./public_api.fetcher";
|
|
41
48
|
import type { TGetWhoamiBody, TGetWhoamiResponse } from "./public_api.fetcher";
|
|
42
49
|
import type { TApproveActivityBody, TApproveActivityResponse } from "./public_api.fetcher";
|
|
43
50
|
import type { TCreateApiKeysBody, TCreateApiKeysResponse } from "./public_api.fetcher";
|
|
@@ -55,6 +62,9 @@ import type { TCreateReadOnlySessionBody, TCreateReadOnlySessionResponse } from
|
|
|
55
62
|
import type { TCreateReadWriteSessionBody, TCreateReadWriteSessionResponse } from "./public_api.fetcher";
|
|
56
63
|
import type { TCreateSmartContractInterfaceBody, TCreateSmartContractInterfaceResponse } from "./public_api.fetcher";
|
|
57
64
|
import type { TCreateSubOrganizationBody, TCreateSubOrganizationResponse } from "./public_api.fetcher";
|
|
65
|
+
import type { TCreateTvcAppBody, TCreateTvcAppResponse } from "./public_api.fetcher";
|
|
66
|
+
import type { TCreateTvcDeploymentBody, TCreateTvcDeploymentResponse } from "./public_api.fetcher";
|
|
67
|
+
import type { TCreateTvcManifestApprovalsBody, TCreateTvcManifestApprovalsResponse } from "./public_api.fetcher";
|
|
58
68
|
import type { TCreateUserTagBody, TCreateUserTagResponse } from "./public_api.fetcher";
|
|
59
69
|
import type { TCreateUsersBody, TCreateUsersResponse } from "./public_api.fetcher";
|
|
60
70
|
import type { TCreateWalletBody, TCreateWalletResponse } from "./public_api.fetcher";
|
|
@@ -78,6 +88,7 @@ import type { TDeleteWalletAccountsBody, TDeleteWalletAccountsResponse } from ".
|
|
|
78
88
|
import type { TDeleteWalletsBody, TDeleteWalletsResponse } from "./public_api.fetcher";
|
|
79
89
|
import type { TDeleteWebhookEndpointBody, TDeleteWebhookEndpointResponse } from "./public_api.fetcher";
|
|
80
90
|
import type { TEmailAuthBody, TEmailAuthResponse } from "./public_api.fetcher";
|
|
91
|
+
import type { TEthSendRawTransactionBody, TEthSendRawTransactionResponse } from "./public_api.fetcher";
|
|
81
92
|
import type { TEthSendTransactionBody, TEthSendTransactionResponse } from "./public_api.fetcher";
|
|
82
93
|
import type { TExportPrivateKeyBody, TExportPrivateKeyResponse } from "./public_api.fetcher";
|
|
83
94
|
import type { TExportWalletBody, TExportWalletResponse } from "./public_api.fetcher";
|
|
@@ -97,7 +108,9 @@ import type { TOtpAuthBody, TOtpAuthResponse } from "./public_api.fetcher";
|
|
|
97
108
|
import type { TOtpLoginBody, TOtpLoginResponse } from "./public_api.fetcher";
|
|
98
109
|
import type { TRecoverUserBody, TRecoverUserResponse } from "./public_api.fetcher";
|
|
99
110
|
import type { TRejectActivityBody, TRejectActivityResponse } from "./public_api.fetcher";
|
|
111
|
+
import type { TRemoveIpAllowlistBody, TRemoveIpAllowlistResponse } from "./public_api.fetcher";
|
|
100
112
|
import type { TRemoveOrganizationFeatureBody, TRemoveOrganizationFeatureResponse } from "./public_api.fetcher";
|
|
113
|
+
import type { TSetIpAllowlistBody, TSetIpAllowlistResponse } from "./public_api.fetcher";
|
|
101
114
|
import type { TSetOrganizationFeatureBody, TSetOrganizationFeatureResponse } from "./public_api.fetcher";
|
|
102
115
|
import type { TSignRawPayloadBody, TSignRawPayloadResponse } from "./public_api.fetcher";
|
|
103
116
|
import type { TSignRawPayloadsBody, TSignRawPayloadsResponse } from "./public_api.fetcher";
|
|
@@ -118,6 +131,8 @@ import type { TUpdateUserTagBody, TUpdateUserTagResponse } from "./public_api.fe
|
|
|
118
131
|
import type { TUpdateWalletBody, TUpdateWalletResponse } from "./public_api.fetcher";
|
|
119
132
|
import type { TUpdateWebhookEndpointBody, TUpdateWebhookEndpointResponse } from "./public_api.fetcher";
|
|
120
133
|
import type { TVerifyOtpBody, TVerifyOtpResponse } from "./public_api.fetcher";
|
|
134
|
+
import type { TRefreshFeatureFlagsBody, TRefreshFeatureFlagsResponse } from "./public_api.fetcher";
|
|
135
|
+
import type { TTestRateLimitsBody, TTestRateLimitsResponse } from "./public_api.fetcher";
|
|
121
136
|
export declare class TurnkeyClient {
|
|
122
137
|
config: THttpConfig;
|
|
123
138
|
stamper: TStamper;
|
|
@@ -236,6 +251,20 @@ export declare class TurnkeyClient {
|
|
|
236
251
|
* See also {@link GetGasUsage}.
|
|
237
252
|
*/
|
|
238
253
|
stampGetGasUsage: (input: TGetGasUsageBody) => Promise<TSignedRequest>;
|
|
254
|
+
/**
|
|
255
|
+
* Get IP allowlist and rules for an organization.
|
|
256
|
+
*
|
|
257
|
+
* Sign the provided `TGetIpAllowlistBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_ip_allowlist).
|
|
258
|
+
*
|
|
259
|
+
* See also {@link stampGetIpAllowlist}.
|
|
260
|
+
*/
|
|
261
|
+
getIpAllowlist: (input: TGetIpAllowlistBody) => Promise<TGetIpAllowlistResponse>;
|
|
262
|
+
/**
|
|
263
|
+
* Produce a `SignedRequest` from `TGetIpAllowlistBody` by using the client's `stamp` function.
|
|
264
|
+
*
|
|
265
|
+
* See also {@link GetIpAllowlist}.
|
|
266
|
+
*/
|
|
267
|
+
stampGetIpAllowlist: (input: TGetIpAllowlistBody) => Promise<TSignedRequest>;
|
|
239
268
|
/**
|
|
240
269
|
* Get the latest boot proof for a given enclave app name.
|
|
241
270
|
*
|
|
@@ -306,6 +335,20 @@ export declare class TurnkeyClient {
|
|
|
306
335
|
* See also {@link GetOnRampTransactionStatus}.
|
|
307
336
|
*/
|
|
308
337
|
stampGetOnRampTransactionStatus: (input: TGetOnRampTransactionStatusBody) => Promise<TSignedRequest>;
|
|
338
|
+
/**
|
|
339
|
+
* Get details about an organization.
|
|
340
|
+
*
|
|
341
|
+
* Sign the provided `TGetOrganizationBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_organization).
|
|
342
|
+
*
|
|
343
|
+
* See also {@link stampGetOrganization}.
|
|
344
|
+
*/
|
|
345
|
+
getOrganization: (input: TGetOrganizationBody) => Promise<TGetOrganizationResponse>;
|
|
346
|
+
/**
|
|
347
|
+
* Produce a `SignedRequest` from `TGetOrganizationBody` by using the client's `stamp` function.
|
|
348
|
+
*
|
|
349
|
+
* See also {@link GetOrganization}.
|
|
350
|
+
*/
|
|
351
|
+
stampGetOrganization: (input: TGetOrganizationBody) => Promise<TSignedRequest>;
|
|
309
352
|
/**
|
|
310
353
|
* Get quorum settings and features for an organization.
|
|
311
354
|
*
|
|
@@ -390,6 +433,34 @@ export declare class TurnkeyClient {
|
|
|
390
433
|
* See also {@link GetSmartContractInterface}.
|
|
391
434
|
*/
|
|
392
435
|
stampGetSmartContractInterface: (input: TGetSmartContractInterfaceBody) => Promise<TSignedRequest>;
|
|
436
|
+
/**
|
|
437
|
+
* Get details about a single TVC App
|
|
438
|
+
*
|
|
439
|
+
* Sign the provided `TGetTvcAppBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_tvc_app).
|
|
440
|
+
*
|
|
441
|
+
* See also {@link stampGetTvcApp}.
|
|
442
|
+
*/
|
|
443
|
+
getTvcApp: (input: TGetTvcAppBody) => Promise<TGetTvcAppResponse>;
|
|
444
|
+
/**
|
|
445
|
+
* Produce a `SignedRequest` from `TGetTvcAppBody` by using the client's `stamp` function.
|
|
446
|
+
*
|
|
447
|
+
* See also {@link GetTvcApp}.
|
|
448
|
+
*/
|
|
449
|
+
stampGetTvcApp: (input: TGetTvcAppBody) => Promise<TSignedRequest>;
|
|
450
|
+
/**
|
|
451
|
+
* Get details about a single TVC Deployment
|
|
452
|
+
*
|
|
453
|
+
* Sign the provided `TGetTvcDeploymentBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/get_tvc_deployment).
|
|
454
|
+
*
|
|
455
|
+
* See also {@link stampGetTvcDeployment}.
|
|
456
|
+
*/
|
|
457
|
+
getTvcDeployment: (input: TGetTvcDeploymentBody) => Promise<TGetTvcDeploymentResponse>;
|
|
458
|
+
/**
|
|
459
|
+
* Produce a `SignedRequest` from `TGetTvcDeploymentBody` by using the client's `stamp` function.
|
|
460
|
+
*
|
|
461
|
+
* See also {@link GetTvcDeployment}.
|
|
462
|
+
*/
|
|
463
|
+
stampGetTvcDeployment: (input: TGetTvcDeploymentBody) => Promise<TSignedRequest>;
|
|
393
464
|
/**
|
|
394
465
|
* Get details about a user.
|
|
395
466
|
*
|
|
@@ -586,6 +657,34 @@ export declare class TurnkeyClient {
|
|
|
586
657
|
* See also {@link ListSupportedAssets}.
|
|
587
658
|
*/
|
|
588
659
|
stampListSupportedAssets: (input: TListSupportedAssetsBody) => Promise<TSignedRequest>;
|
|
660
|
+
/**
|
|
661
|
+
* List all deployments for a given TVC App
|
|
662
|
+
*
|
|
663
|
+
* Sign the provided `TGetTvcAppDeploymentsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_tvc_app_deployments).
|
|
664
|
+
*
|
|
665
|
+
* See also {@link stampGetTvcAppDeployments}.
|
|
666
|
+
*/
|
|
667
|
+
getTvcAppDeployments: (input: TGetTvcAppDeploymentsBody) => Promise<TGetTvcAppDeploymentsResponse>;
|
|
668
|
+
/**
|
|
669
|
+
* Produce a `SignedRequest` from `TGetTvcAppDeploymentsBody` by using the client's `stamp` function.
|
|
670
|
+
*
|
|
671
|
+
* See also {@link GetTvcAppDeployments}.
|
|
672
|
+
*/
|
|
673
|
+
stampGetTvcAppDeployments: (input: TGetTvcAppDeploymentsBody) => Promise<TSignedRequest>;
|
|
674
|
+
/**
|
|
675
|
+
* List all TVC Apps within an organization.
|
|
676
|
+
*
|
|
677
|
+
* Sign the provided `TGetTvcAppsBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/list_tvc_apps).
|
|
678
|
+
*
|
|
679
|
+
* See also {@link stampGetTvcApps}.
|
|
680
|
+
*/
|
|
681
|
+
getTvcApps: (input: TGetTvcAppsBody) => Promise<TGetTvcAppsResponse>;
|
|
682
|
+
/**
|
|
683
|
+
* Produce a `SignedRequest` from `TGetTvcAppsBody` by using the client's `stamp` function.
|
|
684
|
+
*
|
|
685
|
+
* See also {@link GetTvcApps}.
|
|
686
|
+
*/
|
|
687
|
+
stampGetTvcApps: (input: TGetTvcAppsBody) => Promise<TSignedRequest>;
|
|
589
688
|
/**
|
|
590
689
|
* List all user tags within an organization.
|
|
591
690
|
*
|
|
@@ -670,6 +769,20 @@ export declare class TurnkeyClient {
|
|
|
670
769
|
* See also {@link ListWebhookEndpoints}.
|
|
671
770
|
*/
|
|
672
771
|
stampListWebhookEndpoints: (input: TListWebhookEndpointsBody) => Promise<TSignedRequest>;
|
|
772
|
+
/**
|
|
773
|
+
* Validate a container image URL and pull secret for TVC deployment
|
|
774
|
+
*
|
|
775
|
+
* Sign the provided `TValidateTvcImageBody` with the client's `stamp` function, and submit the request (POST /public/v1/query/validate_tvc_image).
|
|
776
|
+
*
|
|
777
|
+
* See also {@link stampValidateTvcImage}.
|
|
778
|
+
*/
|
|
779
|
+
validateTvcImage: (input: TValidateTvcImageBody) => Promise<TValidateTvcImageResponse>;
|
|
780
|
+
/**
|
|
781
|
+
* Produce a `SignedRequest` from `TValidateTvcImageBody` by using the client's `stamp` function.
|
|
782
|
+
*
|
|
783
|
+
* See also {@link ValidateTvcImage}.
|
|
784
|
+
*/
|
|
785
|
+
stampValidateTvcImage: (input: TValidateTvcImageBody) => Promise<TSignedRequest>;
|
|
673
786
|
/**
|
|
674
787
|
* Get basic information about your current API or WebAuthN user and their organization. Affords sub-organization look ups via parent organization for WebAuthN or API key users.
|
|
675
788
|
*
|
|
@@ -908,6 +1021,48 @@ export declare class TurnkeyClient {
|
|
|
908
1021
|
* See also {@link CreateSubOrganization}.
|
|
909
1022
|
*/
|
|
910
1023
|
stampCreateSubOrganization: (input: TCreateSubOrganizationBody) => Promise<TSignedRequest>;
|
|
1024
|
+
/**
|
|
1025
|
+
* Create a new TVC application
|
|
1026
|
+
*
|
|
1027
|
+
* Sign the provided `TCreateTvcAppBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_app).
|
|
1028
|
+
*
|
|
1029
|
+
* See also {@link stampCreateTvcApp}.
|
|
1030
|
+
*/
|
|
1031
|
+
createTvcApp: (input: TCreateTvcAppBody) => Promise<TCreateTvcAppResponse>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Produce a `SignedRequest` from `TCreateTvcAppBody` by using the client's `stamp` function.
|
|
1034
|
+
*
|
|
1035
|
+
* See also {@link CreateTvcApp}.
|
|
1036
|
+
*/
|
|
1037
|
+
stampCreateTvcApp: (input: TCreateTvcAppBody) => Promise<TSignedRequest>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Create a new TVC Deployment
|
|
1040
|
+
*
|
|
1041
|
+
* Sign the provided `TCreateTvcDeploymentBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_deployment).
|
|
1042
|
+
*
|
|
1043
|
+
* See also {@link stampCreateTvcDeployment}.
|
|
1044
|
+
*/
|
|
1045
|
+
createTvcDeployment: (input: TCreateTvcDeploymentBody) => Promise<TCreateTvcDeploymentResponse>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Produce a `SignedRequest` from `TCreateTvcDeploymentBody` by using the client's `stamp` function.
|
|
1048
|
+
*
|
|
1049
|
+
* See also {@link CreateTvcDeployment}.
|
|
1050
|
+
*/
|
|
1051
|
+
stampCreateTvcDeployment: (input: TCreateTvcDeploymentBody) => Promise<TSignedRequest>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Post one or more manifest approvals for a TVC Manifest
|
|
1054
|
+
*
|
|
1055
|
+
* Sign the provided `TCreateTvcManifestApprovalsBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/create_tvc_manifest_approvals).
|
|
1056
|
+
*
|
|
1057
|
+
* See also {@link stampCreateTvcManifestApprovals}.
|
|
1058
|
+
*/
|
|
1059
|
+
createTvcManifestApprovals: (input: TCreateTvcManifestApprovalsBody) => Promise<TCreateTvcManifestApprovalsResponse>;
|
|
1060
|
+
/**
|
|
1061
|
+
* Produce a `SignedRequest` from `TCreateTvcManifestApprovalsBody` by using the client's `stamp` function.
|
|
1062
|
+
*
|
|
1063
|
+
* See also {@link CreateTvcManifestApprovals}.
|
|
1064
|
+
*/
|
|
1065
|
+
stampCreateTvcManifestApprovals: (input: TCreateTvcManifestApprovalsBody) => Promise<TSignedRequest>;
|
|
911
1066
|
/**
|
|
912
1067
|
* Create a user tag and add it to users.
|
|
913
1068
|
*
|
|
@@ -1230,6 +1385,20 @@ export declare class TurnkeyClient {
|
|
|
1230
1385
|
* See also {@link EmailAuth}.
|
|
1231
1386
|
*/
|
|
1232
1387
|
stampEmailAuth: (input: TEmailAuthBody) => Promise<TSignedRequest>;
|
|
1388
|
+
/**
|
|
1389
|
+
* Submit a raw transaction (serialized and signed) for broadcasting to the network.
|
|
1390
|
+
*
|
|
1391
|
+
* Sign the provided `TEthSendRawTransactionBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/eth_send_raw_transaction).
|
|
1392
|
+
*
|
|
1393
|
+
* See also {@link stampEthSendRawTransaction}.
|
|
1394
|
+
*/
|
|
1395
|
+
ethSendRawTransaction: (input: TEthSendRawTransactionBody) => Promise<TEthSendRawTransactionResponse>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Produce a `SignedRequest` from `TEthSendRawTransactionBody` by using the client's `stamp` function.
|
|
1398
|
+
*
|
|
1399
|
+
* See also {@link EthSendRawTransaction}.
|
|
1400
|
+
*/
|
|
1401
|
+
stampEthSendRawTransaction: (input: TEthSendRawTransactionBody) => Promise<TSignedRequest>;
|
|
1233
1402
|
/**
|
|
1234
1403
|
* Submit a transaction intent describing an EVM transaction you would like to broadcast.
|
|
1235
1404
|
*
|
|
@@ -1496,6 +1665,20 @@ export declare class TurnkeyClient {
|
|
|
1496
1665
|
* See also {@link RejectActivity}.
|
|
1497
1666
|
*/
|
|
1498
1667
|
stampRejectActivity: (input: TRejectActivityBody) => Promise<TSignedRequest>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Delete IP allowlist and all associated rules for organization or API key. After removal, access will be determined by organization-level allowlist (for API keys) or allowed from all IPs (for organizations).
|
|
1670
|
+
*
|
|
1671
|
+
* Sign the provided `TRemoveIpAllowlistBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/remove_ip_allowlist).
|
|
1672
|
+
*
|
|
1673
|
+
* See also {@link stampRemoveIpAllowlist}.
|
|
1674
|
+
*/
|
|
1675
|
+
removeIpAllowlist: (input: TRemoveIpAllowlistBody) => Promise<TRemoveIpAllowlistResponse>;
|
|
1676
|
+
/**
|
|
1677
|
+
* Produce a `SignedRequest` from `TRemoveIpAllowlistBody` by using the client's `stamp` function.
|
|
1678
|
+
*
|
|
1679
|
+
* See also {@link RemoveIpAllowlist}.
|
|
1680
|
+
*/
|
|
1681
|
+
stampRemoveIpAllowlist: (input: TRemoveIpAllowlistBody) => Promise<TSignedRequest>;
|
|
1499
1682
|
/**
|
|
1500
1683
|
* Remove an organization feature. This activity must be approved by the current root quorum.
|
|
1501
1684
|
*
|
|
@@ -1510,6 +1693,20 @@ export declare class TurnkeyClient {
|
|
|
1510
1693
|
* See also {@link RemoveOrganizationFeature}.
|
|
1511
1694
|
*/
|
|
1512
1695
|
stampRemoveOrganizationFeature: (input: TRemoveOrganizationFeatureBody) => Promise<TSignedRequest>;
|
|
1696
|
+
/**
|
|
1697
|
+
* Create or update IP allowlist and rules for organization or API key. The IP allowlist restricts API access to specific CIDR blocks. Organization-level allowlists apply to all API keys unless overridden by a key-specific allowlist.
|
|
1698
|
+
*
|
|
1699
|
+
* Sign the provided `TSetIpAllowlistBody` with the client's `stamp` function, and submit the request (POST /public/v1/submit/set_ip_allowlist).
|
|
1700
|
+
*
|
|
1701
|
+
* See also {@link stampSetIpAllowlist}.
|
|
1702
|
+
*/
|
|
1703
|
+
setIpAllowlist: (input: TSetIpAllowlistBody) => Promise<TSetIpAllowlistResponse>;
|
|
1704
|
+
/**
|
|
1705
|
+
* Produce a `SignedRequest` from `TSetIpAllowlistBody` by using the client's `stamp` function.
|
|
1706
|
+
*
|
|
1707
|
+
* See also {@link SetIpAllowlist}.
|
|
1708
|
+
*/
|
|
1709
|
+
stampSetIpAllowlist: (input: TSetIpAllowlistBody) => Promise<TSignedRequest>;
|
|
1513
1710
|
/**
|
|
1514
1711
|
* Set an organization feature. This activity must be approved by the current root quorum.
|
|
1515
1712
|
*
|
|
@@ -1790,5 +1987,33 @@ export declare class TurnkeyClient {
|
|
|
1790
1987
|
* See also {@link VerifyOtp}.
|
|
1791
1988
|
*/
|
|
1792
1989
|
stampVerifyOtp: (input: TVerifyOtpBody) => Promise<TSignedRequest>;
|
|
1990
|
+
/**
|
|
1991
|
+
* Refresh feature flags by triggering a DB read to flush the in-memory cache.
|
|
1992
|
+
*
|
|
1993
|
+
* Sign the provided `TRefreshFeatureFlagsBody` with the client's `stamp` function, and submit the request (POST /tkhq/api/v1/refresh_feature_flags).
|
|
1994
|
+
*
|
|
1995
|
+
* See also {@link stampRefreshFeatureFlags}.
|
|
1996
|
+
*/
|
|
1997
|
+
refreshFeatureFlags: (input: TRefreshFeatureFlagsBody) => Promise<TRefreshFeatureFlagsResponse>;
|
|
1998
|
+
/**
|
|
1999
|
+
* Produce a `SignedRequest` from `TRefreshFeatureFlagsBody` by using the client's `stamp` function.
|
|
2000
|
+
*
|
|
2001
|
+
* See also {@link RefreshFeatureFlags}.
|
|
2002
|
+
*/
|
|
2003
|
+
stampRefreshFeatureFlags: (input: TRefreshFeatureFlagsBody) => Promise<TSignedRequest>;
|
|
2004
|
+
/**
|
|
2005
|
+
* Set a rate local rate limit just on the current endpoint, for purposes of testing with Vivosuite.
|
|
2006
|
+
*
|
|
2007
|
+
* Sign the provided `TTestRateLimitsBody` with the client's `stamp` function, and submit the request (POST /tkhq/api/v1/test_rate_limits).
|
|
2008
|
+
*
|
|
2009
|
+
* See also {@link stampTestRateLimits}.
|
|
2010
|
+
*/
|
|
2011
|
+
testRateLimits: (input: TTestRateLimitsBody) => Promise<TTestRateLimitsResponse>;
|
|
2012
|
+
/**
|
|
2013
|
+
* Produce a `SignedRequest` from `TTestRateLimitsBody` by using the client's `stamp` function.
|
|
2014
|
+
*
|
|
2015
|
+
* See also {@link TestRateLimits}.
|
|
2016
|
+
*/
|
|
2017
|
+
stampTestRateLimits: (input: TTestRateLimitsBody) => Promise<TSignedRequest>;
|
|
1793
2018
|
}
|
|
1794
2019
|
//# sourceMappingURL=public_api.client.d.ts.map
|