@turnkey/sdk-browser 1.13.0 → 1.15.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 +26 -0
- package/dist/__generated__/sdk-client-base.d.ts +2 -0
- package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
- package/dist/__generated__/sdk-client-base.js +19 -0
- package/dist/__generated__/sdk-client-base.js.map +1 -1
- package/dist/__generated__/sdk-client-base.mjs +19 -0
- package/dist/__generated__/sdk-client-base.mjs.map +1 -1
- package/dist/__generated__/sdk_api_types.d.ts +5 -0
- package/dist/__generated__/sdk_api_types.d.ts.map +1 -1
- package/dist/__generated__/version.d.ts +1 -1
- package/dist/__generated__/version.js +1 -1
- package/dist/__generated__/version.mjs +1 -1
- package/dist/__inputs__/public_api.types.d.ts +66 -26
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/sdk-client.d.ts.map +1 -1
- package/dist/sdk-client.js +0 -1
- package/dist/sdk-client.js.map +1 -1
- package/dist/sdk-client.mjs +0 -1
- package/dist/sdk-client.mjs.map +1 -1
- package/package.json +5 -7
|
@@ -318,6 +318,10 @@ export type paths = {
|
|
|
318
318
|
"/tkhq/api/v1/noop-codegen-anchor": {
|
|
319
319
|
post: operations["PublicApiService_NOOPCodegenAnchor"];
|
|
320
320
|
};
|
|
321
|
+
"/tkhq/api/v1/test_rate_limits": {
|
|
322
|
+
/** Set a rate local rate limit just on the current endpoint, for purposes of testing with Vivosuite */
|
|
323
|
+
post: operations["PublicApiService_TestRateLimits"];
|
|
324
|
+
};
|
|
321
325
|
};
|
|
322
326
|
export type definitions = {
|
|
323
327
|
apiApiKeyParams: {
|
|
@@ -510,9 +514,9 @@ export type definitions = {
|
|
|
510
514
|
userName: string;
|
|
511
515
|
/** @description The email address for this API-only User (optional). */
|
|
512
516
|
userEmail?: string;
|
|
513
|
-
/** @description A list of tags assigned to the new API-only User. */
|
|
517
|
+
/** @description A list of tags assigned to the new API-only User. This field, if not needed, should be an empty array in your request body. */
|
|
514
518
|
userTags: string[];
|
|
515
|
-
/** @description A list of API Key parameters. */
|
|
519
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
516
520
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
517
521
|
};
|
|
518
522
|
v1ApproveActivityIntent: {
|
|
@@ -867,6 +871,8 @@ export type definitions = {
|
|
|
867
871
|
apiKeyName?: string;
|
|
868
872
|
/** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
|
|
869
873
|
expirationSeconds?: string;
|
|
874
|
+
/** @description Invalidate all other previously generated ReadWriteSession API keys */
|
|
875
|
+
invalidateExisting?: boolean;
|
|
870
876
|
};
|
|
871
877
|
v1CreateReadWriteSessionRequest: {
|
|
872
878
|
/** @enum {string} */
|
|
@@ -1110,7 +1116,7 @@ export type definitions = {
|
|
|
1110
1116
|
v1CreateWalletIntent: {
|
|
1111
1117
|
/** @description Human-readable name for a Wallet. */
|
|
1112
1118
|
walletName: string;
|
|
1113
|
-
/** @description A list of wallet Accounts. */
|
|
1119
|
+
/** @description A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
|
|
1114
1120
|
accounts: definitions["v1WalletAccountParams"][];
|
|
1115
1121
|
/**
|
|
1116
1122
|
* Format: int32
|
|
@@ -1137,7 +1143,7 @@ export type definitions = {
|
|
|
1137
1143
|
rk: boolean;
|
|
1138
1144
|
};
|
|
1139
1145
|
/** @enum {string} */
|
|
1140
|
-
v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_SECP256K1" | "CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_ED25519" | "CREDENTIAL_TYPE_OTP_AUTH_KEY_P256";
|
|
1146
|
+
v1CredentialType: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256" | "CREDENTIAL_TYPE_RECOVER_USER_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_SECP256K1" | "CREDENTIAL_TYPE_EMAIL_AUTH_KEY_P256" | "CREDENTIAL_TYPE_API_KEY_ED25519" | "CREDENTIAL_TYPE_OTP_AUTH_KEY_P256" | "CREDENTIAL_TYPE_READ_WRITE_SESSION_KEY_P256" | "CREDENTIAL_TYPE_OAUTH_KEY_P256";
|
|
1141
1147
|
/** @enum {string} */
|
|
1142
1148
|
v1Curve: "CURVE_SECP256K1" | "CURVE_ED25519";
|
|
1143
1149
|
v1DeleteApiKeysIntent: {
|
|
@@ -1971,7 +1977,7 @@ export type definitions = {
|
|
|
1971
1977
|
receiverUserName: string;
|
|
1972
1978
|
/** @description The email address of the intended Invitation recipient. */
|
|
1973
1979
|
receiverUserEmail: string;
|
|
1974
|
-
/** @description A list of tags assigned to the Invitation recipient. */
|
|
1980
|
+
/** @description A list of tags assigned to the Invitation recipient. This field, if not needed, should be an empty array in your request body. */
|
|
1975
1981
|
receiverUserTags: string[];
|
|
1976
1982
|
/** @description The User's permissible access method(s). */
|
|
1977
1983
|
accessType: definitions["v1AccessType"];
|
|
@@ -2010,6 +2016,8 @@ export type definitions = {
|
|
|
2010
2016
|
apiKeyName?: string;
|
|
2011
2017
|
/** @description Expiration window (in seconds) indicating how long the API key is valid. If not provided, a default of 15 minutes will be used. */
|
|
2012
2018
|
expirationSeconds?: string;
|
|
2019
|
+
/** @description Invalidate all other previously generated Oauth API keys */
|
|
2020
|
+
invalidateExisting?: boolean;
|
|
2013
2021
|
};
|
|
2014
2022
|
v1OauthProvider: {
|
|
2015
2023
|
/** @description Unique identifier for an OAuth Provider */
|
|
@@ -2146,7 +2154,7 @@ export type definitions = {
|
|
|
2146
2154
|
privateKeyName: string;
|
|
2147
2155
|
/** @description Cryptographic Curve used to generate a given Private Key. */
|
|
2148
2156
|
curve: definitions["v1Curve"];
|
|
2149
|
-
/** @description A list of Private Key Tag IDs. */
|
|
2157
|
+
/** @description A list of Private Key Tag IDs. This field, if not needed, should be an empty array in your request body. */
|
|
2150
2158
|
privateKeyTags: string[];
|
|
2151
2159
|
/** @description Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
|
|
2152
2160
|
addressFormats: definitions["v1AddressFormat"][];
|
|
@@ -2287,9 +2295,9 @@ export type definitions = {
|
|
|
2287
2295
|
userName: string;
|
|
2288
2296
|
/** @description The user's email address. */
|
|
2289
2297
|
userEmail?: string;
|
|
2290
|
-
/** @description A list of API Key parameters. */
|
|
2298
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2291
2299
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2292
|
-
/** @description A list of Authenticator parameters. */
|
|
2300
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2293
2301
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2294
2302
|
};
|
|
2295
2303
|
v1RootUserParamsV2: {
|
|
@@ -2297,11 +2305,11 @@ export type definitions = {
|
|
|
2297
2305
|
userName: string;
|
|
2298
2306
|
/** @description The user's email address. */
|
|
2299
2307
|
userEmail?: string;
|
|
2300
|
-
/** @description A list of API Key parameters. */
|
|
2308
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2301
2309
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2302
|
-
/** @description A list of Authenticator parameters. */
|
|
2310
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2303
2311
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2304
|
-
/** @description A list of Oauth providers. */
|
|
2312
|
+
/** @description A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
|
|
2305
2313
|
oauthProviders: definitions["v1OauthProviderParams"][];
|
|
2306
2314
|
};
|
|
2307
2315
|
v1RootUserParamsV3: {
|
|
@@ -2309,11 +2317,11 @@ export type definitions = {
|
|
|
2309
2317
|
userName: string;
|
|
2310
2318
|
/** @description The user's email address. */
|
|
2311
2319
|
userEmail?: string;
|
|
2312
|
-
/** @description A list of API Key parameters. */
|
|
2320
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2313
2321
|
apiKeys: definitions["v1ApiKeyParamsV2"][];
|
|
2314
|
-
/** @description A list of Authenticator parameters. */
|
|
2322
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2315
2323
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2316
|
-
/** @description A list of Oauth providers. */
|
|
2324
|
+
/** @description A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
|
|
2317
2325
|
oauthProviders: definitions["v1OauthProviderParams"][];
|
|
2318
2326
|
};
|
|
2319
2327
|
v1RootUserParamsV4: {
|
|
@@ -2323,11 +2331,11 @@ export type definitions = {
|
|
|
2323
2331
|
userEmail?: string;
|
|
2324
2332
|
/** @description The user's phone number in E.164 format e.g. +13214567890 */
|
|
2325
2333
|
userPhoneNumber?: string;
|
|
2326
|
-
/** @description A list of API Key parameters. */
|
|
2334
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2327
2335
|
apiKeys: definitions["v1ApiKeyParamsV2"][];
|
|
2328
|
-
/** @description A list of Authenticator parameters. */
|
|
2336
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2329
2337
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2330
|
-
/** @description A list of Oauth providers. */
|
|
2338
|
+
/** @description A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
|
|
2331
2339
|
oauthProviders: definitions["v1OauthProviderParams"][];
|
|
2332
2340
|
};
|
|
2333
2341
|
v1Selector: {
|
|
@@ -2455,6 +2463,20 @@ export type definitions = {
|
|
|
2455
2463
|
};
|
|
2456
2464
|
/** @enum {string} */
|
|
2457
2465
|
v1TagType: "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
|
|
2466
|
+
v1TestRateLimitsRequest: {
|
|
2467
|
+
/** @description Unique identifier for a given Organization. If the request is being made by a WebAuthN user and their Sub-Organization ID is unknown, this can be the Parent Organization ID; using the Sub-Organization ID when possible is preferred due to performance reasons. */
|
|
2468
|
+
organizationId: string;
|
|
2469
|
+
/** @description Whether or not to set a limit on this request. */
|
|
2470
|
+
isSetLimit: boolean;
|
|
2471
|
+
/**
|
|
2472
|
+
* Format: int64
|
|
2473
|
+
* @description Rate limit to set for org, if is_set_limit is set to true
|
|
2474
|
+
*/
|
|
2475
|
+
limit: number;
|
|
2476
|
+
};
|
|
2477
|
+
v1TestRateLimitsResponse: {
|
|
2478
|
+
[key: string]: unknown;
|
|
2479
|
+
};
|
|
2458
2480
|
/** @enum {string} */
|
|
2459
2481
|
v1TransactionType: "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA";
|
|
2460
2482
|
v1UpdateAllowedOriginsIntent: {
|
|
@@ -2542,7 +2564,7 @@ export type definitions = {
|
|
|
2542
2564
|
userName?: string;
|
|
2543
2565
|
/** @description The user's email address. */
|
|
2544
2566
|
userEmail?: string;
|
|
2545
|
-
/** @description An updated list of User Tags to apply to this User. */
|
|
2567
|
+
/** @description An updated list of User Tags to apply to this User. This field, if not needed, should be an empty array in your request body. */
|
|
2546
2568
|
userTagIds?: string[];
|
|
2547
2569
|
/** @description The user's phone number in E.164 format e.g. +13214567890 */
|
|
2548
2570
|
userPhoneNumber?: string;
|
|
@@ -2613,7 +2635,7 @@ export type definitions = {
|
|
|
2613
2635
|
userPhoneNumber?: string;
|
|
2614
2636
|
/** @description A list of Authenticator parameters. */
|
|
2615
2637
|
authenticators: definitions["v1Authenticator"][];
|
|
2616
|
-
/** @description A list of API Key parameters. */
|
|
2638
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2617
2639
|
apiKeys: definitions["v1ApiKey"][];
|
|
2618
2640
|
/** @description A list of User Tag IDs. */
|
|
2619
2641
|
userTags: string[];
|
|
@@ -2629,11 +2651,11 @@ export type definitions = {
|
|
|
2629
2651
|
userEmail?: string;
|
|
2630
2652
|
/** @description The User's permissible access method(s). */
|
|
2631
2653
|
accessType: definitions["v1AccessType"];
|
|
2632
|
-
/** @description A list of API Key parameters. */
|
|
2654
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2633
2655
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2634
|
-
/** @description A list of Authenticator parameters. */
|
|
2656
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2635
2657
|
authenticators: definitions["v1AuthenticatorParams"][];
|
|
2636
|
-
/** @description A list of User Tag IDs. */
|
|
2658
|
+
/** @description A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
|
|
2637
2659
|
userTags: string[];
|
|
2638
2660
|
};
|
|
2639
2661
|
v1UserParamsV2: {
|
|
@@ -2641,11 +2663,11 @@ export type definitions = {
|
|
|
2641
2663
|
userName: string;
|
|
2642
2664
|
/** @description The user's email address. */
|
|
2643
2665
|
userEmail?: string;
|
|
2644
|
-
/** @description A list of API Key parameters. */
|
|
2666
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2645
2667
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2646
|
-
/** @description A list of Authenticator parameters. */
|
|
2668
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2647
2669
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2648
|
-
/** @description A list of User Tag IDs. */
|
|
2670
|
+
/** @description A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
|
|
2649
2671
|
userTags: string[];
|
|
2650
2672
|
};
|
|
2651
2673
|
v1Vote: {
|
|
@@ -2714,7 +2736,7 @@ export type definitions = {
|
|
|
2714
2736
|
v1WalletParams: {
|
|
2715
2737
|
/** @description Human-readable name for a Wallet. */
|
|
2716
2738
|
walletName: string;
|
|
2717
|
-
/** @description A list of wallet Accounts. */
|
|
2739
|
+
/** @description A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
|
|
2718
2740
|
accounts: definitions["v1WalletAccountParams"][];
|
|
2719
2741
|
/**
|
|
2720
2742
|
* Format: int32
|
|
@@ -4155,6 +4177,24 @@ export type operations = {
|
|
|
4155
4177
|
};
|
|
4156
4178
|
};
|
|
4157
4179
|
};
|
|
4180
|
+
/** Set a rate local rate limit just on the current endpoint, for purposes of testing with Vivosuite */
|
|
4181
|
+
PublicApiService_TestRateLimits: {
|
|
4182
|
+
parameters: {
|
|
4183
|
+
body: {
|
|
4184
|
+
body: definitions["v1TestRateLimitsRequest"];
|
|
4185
|
+
};
|
|
4186
|
+
};
|
|
4187
|
+
responses: {
|
|
4188
|
+
/** A successful response. */
|
|
4189
|
+
200: {
|
|
4190
|
+
schema: definitions["v1TestRateLimitsResponse"];
|
|
4191
|
+
};
|
|
4192
|
+
/** An unexpected error response. */
|
|
4193
|
+
default: {
|
|
4194
|
+
schema: definitions["rpcStatus"];
|
|
4195
|
+
};
|
|
4196
|
+
};
|
|
4197
|
+
};
|
|
4158
4198
|
};
|
|
4159
4199
|
export type external = {};
|
|
4160
4200
|
//# sourceMappingURL=public_api.types.d.ts.map
|