@turnkey/sdk-browser 1.12.1 → 1.14.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 +27 -0
- package/dist/__generated__/sdk-client-base.d.ts +4 -0
- package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
- package/dist/__generated__/sdk-client-base.js +38 -0
- package/dist/__generated__/sdk-client-base.js.map +1 -1
- package/dist/__generated__/sdk-client-base.mjs +38 -0
- package/dist/__generated__/sdk-client-base.mjs.map +1 -1
- package/dist/__generated__/sdk_api_types.d.ts +10 -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 +100 -28
- 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
|
@@ -55,6 +55,10 @@ export type paths = {
|
|
|
55
55
|
/** Get details about a Wallet */
|
|
56
56
|
post: operations["PublicApiService_GetWallet"];
|
|
57
57
|
};
|
|
58
|
+
"/public/v1/query/get_wallet_account": {
|
|
59
|
+
/** Get a single wallet account */
|
|
60
|
+
post: operations["PublicApiService_GetWalletAccount"];
|
|
61
|
+
};
|
|
58
62
|
"/public/v1/query/list_activities": {
|
|
59
63
|
/** List all Activities within an Organization */
|
|
60
64
|
post: operations["PublicApiService_GetActivities"];
|
|
@@ -88,7 +92,7 @@ export type paths = {
|
|
|
88
92
|
post: operations["PublicApiService_GetVerifiedSubOrgIds"];
|
|
89
93
|
};
|
|
90
94
|
"/public/v1/query/list_wallet_accounts": {
|
|
91
|
-
/** List all Accounts
|
|
95
|
+
/** List all Accounts within a Wallet */
|
|
92
96
|
post: operations["PublicApiService_GetWalletAccounts"];
|
|
93
97
|
};
|
|
94
98
|
"/public/v1/query/list_wallets": {
|
|
@@ -314,6 +318,10 @@ export type paths = {
|
|
|
314
318
|
"/tkhq/api/v1/noop-codegen-anchor": {
|
|
315
319
|
post: operations["PublicApiService_NOOPCodegenAnchor"];
|
|
316
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
|
+
};
|
|
317
325
|
};
|
|
318
326
|
export type definitions = {
|
|
319
327
|
apiApiKeyParams: {
|
|
@@ -506,9 +514,9 @@ export type definitions = {
|
|
|
506
514
|
userName: string;
|
|
507
515
|
/** @description The email address for this API-only User (optional). */
|
|
508
516
|
userEmail?: string;
|
|
509
|
-
/** @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. */
|
|
510
518
|
userTags: string[];
|
|
511
|
-
/** @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. */
|
|
512
520
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
513
521
|
};
|
|
514
522
|
v1ApproveActivityIntent: {
|
|
@@ -1106,7 +1114,7 @@ export type definitions = {
|
|
|
1106
1114
|
v1CreateWalletIntent: {
|
|
1107
1115
|
/** @description Human-readable name for a Wallet. */
|
|
1108
1116
|
walletName: string;
|
|
1109
|
-
/** @description A list of wallet Accounts. */
|
|
1117
|
+
/** @description A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
|
|
1110
1118
|
accounts: definitions["v1WalletAccountParams"][];
|
|
1111
1119
|
/**
|
|
1112
1120
|
* Format: int32
|
|
@@ -1666,6 +1674,20 @@ export type definitions = {
|
|
|
1666
1674
|
/** @description List of unique identifiers for the matching sub-organizations. */
|
|
1667
1675
|
organizationIds: string[];
|
|
1668
1676
|
};
|
|
1677
|
+
v1GetWalletAccountRequest: {
|
|
1678
|
+
/** @description Unique identifier for a given Organization. */
|
|
1679
|
+
organizationId: string;
|
|
1680
|
+
/** @description Unique identifier for a given Wallet. */
|
|
1681
|
+
walletId: string;
|
|
1682
|
+
/** @description Address corresponding to a Wallet Account. */
|
|
1683
|
+
address?: string;
|
|
1684
|
+
/** @description Path corresponding to a Wallet Account. */
|
|
1685
|
+
path?: string;
|
|
1686
|
+
};
|
|
1687
|
+
v1GetWalletAccountResponse: {
|
|
1688
|
+
/** @description The resulting Wallet Account. */
|
|
1689
|
+
account: definitions["v1WalletAccount"];
|
|
1690
|
+
};
|
|
1669
1691
|
v1GetWalletAccountsRequest: {
|
|
1670
1692
|
/** @description Unique identifier for a given Organization. */
|
|
1671
1693
|
organizationId: string;
|
|
@@ -1675,7 +1697,7 @@ export type definitions = {
|
|
|
1675
1697
|
paginationOptions?: definitions["v1Pagination"];
|
|
1676
1698
|
};
|
|
1677
1699
|
v1GetWalletAccountsResponse: {
|
|
1678
|
-
/** @description A list of Accounts generated from a Wallet that share a common seed */
|
|
1700
|
+
/** @description A list of Accounts generated from a Wallet that share a common seed. */
|
|
1679
1701
|
accounts: definitions["v1WalletAccount"][];
|
|
1680
1702
|
};
|
|
1681
1703
|
v1GetWalletRequest: {
|
|
@@ -1953,7 +1975,7 @@ export type definitions = {
|
|
|
1953
1975
|
receiverUserName: string;
|
|
1954
1976
|
/** @description The email address of the intended Invitation recipient. */
|
|
1955
1977
|
receiverUserEmail: string;
|
|
1956
|
-
/** @description A list of tags assigned to the Invitation recipient. */
|
|
1978
|
+
/** @description A list of tags assigned to the Invitation recipient. This field, if not needed, should be an empty array in your request body. */
|
|
1957
1979
|
receiverUserTags: string[];
|
|
1958
1980
|
/** @description The User's permissible access method(s). */
|
|
1959
1981
|
accessType: definitions["v1AccessType"];
|
|
@@ -2128,7 +2150,7 @@ export type definitions = {
|
|
|
2128
2150
|
privateKeyName: string;
|
|
2129
2151
|
/** @description Cryptographic Curve used to generate a given Private Key. */
|
|
2130
2152
|
curve: definitions["v1Curve"];
|
|
2131
|
-
/** @description A list of Private Key Tag IDs. */
|
|
2153
|
+
/** @description A list of Private Key Tag IDs. This field, if not needed, should be an empty array in your request body. */
|
|
2132
2154
|
privateKeyTags: string[];
|
|
2133
2155
|
/** @description Cryptocurrency-specific formats for a derived address (e.g., Ethereum). */
|
|
2134
2156
|
addressFormats: definitions["v1AddressFormat"][];
|
|
@@ -2269,9 +2291,9 @@ export type definitions = {
|
|
|
2269
2291
|
userName: string;
|
|
2270
2292
|
/** @description The user's email address. */
|
|
2271
2293
|
userEmail?: string;
|
|
2272
|
-
/** @description A list of API Key parameters. */
|
|
2294
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2273
2295
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2274
|
-
/** @description A list of Authenticator parameters. */
|
|
2296
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2275
2297
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2276
2298
|
};
|
|
2277
2299
|
v1RootUserParamsV2: {
|
|
@@ -2279,11 +2301,11 @@ export type definitions = {
|
|
|
2279
2301
|
userName: string;
|
|
2280
2302
|
/** @description The user's email address. */
|
|
2281
2303
|
userEmail?: string;
|
|
2282
|
-
/** @description A list of API Key parameters. */
|
|
2304
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2283
2305
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2284
|
-
/** @description A list of Authenticator parameters. */
|
|
2306
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2285
2307
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2286
|
-
/** @description A list of Oauth providers. */
|
|
2308
|
+
/** @description A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
|
|
2287
2309
|
oauthProviders: definitions["v1OauthProviderParams"][];
|
|
2288
2310
|
};
|
|
2289
2311
|
v1RootUserParamsV3: {
|
|
@@ -2291,11 +2313,11 @@ export type definitions = {
|
|
|
2291
2313
|
userName: string;
|
|
2292
2314
|
/** @description The user's email address. */
|
|
2293
2315
|
userEmail?: string;
|
|
2294
|
-
/** @description A list of API Key parameters. */
|
|
2316
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2295
2317
|
apiKeys: definitions["v1ApiKeyParamsV2"][];
|
|
2296
|
-
/** @description A list of Authenticator parameters. */
|
|
2318
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2297
2319
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2298
|
-
/** @description A list of Oauth providers. */
|
|
2320
|
+
/** @description A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
|
|
2299
2321
|
oauthProviders: definitions["v1OauthProviderParams"][];
|
|
2300
2322
|
};
|
|
2301
2323
|
v1RootUserParamsV4: {
|
|
@@ -2305,11 +2327,11 @@ export type definitions = {
|
|
|
2305
2327
|
userEmail?: string;
|
|
2306
2328
|
/** @description The user's phone number in E.164 format e.g. +13214567890 */
|
|
2307
2329
|
userPhoneNumber?: string;
|
|
2308
|
-
/** @description A list of API Key parameters. */
|
|
2330
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2309
2331
|
apiKeys: definitions["v1ApiKeyParamsV2"][];
|
|
2310
|
-
/** @description A list of Authenticator parameters. */
|
|
2332
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2311
2333
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2312
|
-
/** @description A list of Oauth providers. */
|
|
2334
|
+
/** @description A list of Oauth providers. This field, if not needed, should be an empty array in your request body. */
|
|
2313
2335
|
oauthProviders: definitions["v1OauthProviderParams"][];
|
|
2314
2336
|
};
|
|
2315
2337
|
v1Selector: {
|
|
@@ -2437,6 +2459,20 @@ export type definitions = {
|
|
|
2437
2459
|
};
|
|
2438
2460
|
/** @enum {string} */
|
|
2439
2461
|
v1TagType: "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
|
|
2462
|
+
v1TestRateLimitsRequest: {
|
|
2463
|
+
/** @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. */
|
|
2464
|
+
organizationId: string;
|
|
2465
|
+
/** @description Whether or not to set a limit on this request. */
|
|
2466
|
+
isSetLimit: boolean;
|
|
2467
|
+
/**
|
|
2468
|
+
* Format: int64
|
|
2469
|
+
* @description Rate limit to set for org, if is_set_limit is set to true
|
|
2470
|
+
*/
|
|
2471
|
+
limit: number;
|
|
2472
|
+
};
|
|
2473
|
+
v1TestRateLimitsResponse: {
|
|
2474
|
+
[key: string]: unknown;
|
|
2475
|
+
};
|
|
2440
2476
|
/** @enum {string} */
|
|
2441
2477
|
v1TransactionType: "TRANSACTION_TYPE_ETHEREUM" | "TRANSACTION_TYPE_SOLANA";
|
|
2442
2478
|
v1UpdateAllowedOriginsIntent: {
|
|
@@ -2524,7 +2560,7 @@ export type definitions = {
|
|
|
2524
2560
|
userName?: string;
|
|
2525
2561
|
/** @description The user's email address. */
|
|
2526
2562
|
userEmail?: string;
|
|
2527
|
-
/** @description An updated list of User Tags to apply to this User. */
|
|
2563
|
+
/** @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. */
|
|
2528
2564
|
userTagIds?: string[];
|
|
2529
2565
|
/** @description The user's phone number in E.164 format e.g. +13214567890 */
|
|
2530
2566
|
userPhoneNumber?: string;
|
|
@@ -2595,7 +2631,7 @@ export type definitions = {
|
|
|
2595
2631
|
userPhoneNumber?: string;
|
|
2596
2632
|
/** @description A list of Authenticator parameters. */
|
|
2597
2633
|
authenticators: definitions["v1Authenticator"][];
|
|
2598
|
-
/** @description A list of API Key parameters. */
|
|
2634
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2599
2635
|
apiKeys: definitions["v1ApiKey"][];
|
|
2600
2636
|
/** @description A list of User Tag IDs. */
|
|
2601
2637
|
userTags: string[];
|
|
@@ -2611,11 +2647,11 @@ export type definitions = {
|
|
|
2611
2647
|
userEmail?: string;
|
|
2612
2648
|
/** @description The User's permissible access method(s). */
|
|
2613
2649
|
accessType: definitions["v1AccessType"];
|
|
2614
|
-
/** @description A list of API Key parameters. */
|
|
2650
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2615
2651
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2616
|
-
/** @description A list of Authenticator parameters. */
|
|
2652
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2617
2653
|
authenticators: definitions["v1AuthenticatorParams"][];
|
|
2618
|
-
/** @description A list of User Tag IDs. */
|
|
2654
|
+
/** @description A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
|
|
2619
2655
|
userTags: string[];
|
|
2620
2656
|
};
|
|
2621
2657
|
v1UserParamsV2: {
|
|
@@ -2623,11 +2659,11 @@ export type definitions = {
|
|
|
2623
2659
|
userName: string;
|
|
2624
2660
|
/** @description The user's email address. */
|
|
2625
2661
|
userEmail?: string;
|
|
2626
|
-
/** @description A list of API Key parameters. */
|
|
2662
|
+
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2627
2663
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
2628
|
-
/** @description A list of Authenticator parameters. */
|
|
2664
|
+
/** @description A list of Authenticator parameters. This field, if not needed, should be an empty array in your request body. */
|
|
2629
2665
|
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
2630
|
-
/** @description A list of User Tag IDs. */
|
|
2666
|
+
/** @description A list of User Tag IDs. This field, if not needed, should be an empty array in your request body. */
|
|
2631
2667
|
userTags: string[];
|
|
2632
2668
|
};
|
|
2633
2669
|
v1Vote: {
|
|
@@ -2696,7 +2732,7 @@ export type definitions = {
|
|
|
2696
2732
|
v1WalletParams: {
|
|
2697
2733
|
/** @description Human-readable name for a Wallet. */
|
|
2698
2734
|
walletName: string;
|
|
2699
|
-
/** @description A list of wallet Accounts. */
|
|
2735
|
+
/** @description A list of wallet Accounts. This field, if not needed, should be an empty array in your request body. */
|
|
2700
2736
|
accounts: definitions["v1WalletAccountParams"][];
|
|
2701
2737
|
/**
|
|
2702
2738
|
* Format: int32
|
|
@@ -2955,6 +2991,24 @@ export type operations = {
|
|
|
2955
2991
|
};
|
|
2956
2992
|
};
|
|
2957
2993
|
};
|
|
2994
|
+
/** Get a single wallet account */
|
|
2995
|
+
PublicApiService_GetWalletAccount: {
|
|
2996
|
+
parameters: {
|
|
2997
|
+
body: {
|
|
2998
|
+
body: definitions["v1GetWalletAccountRequest"];
|
|
2999
|
+
};
|
|
3000
|
+
};
|
|
3001
|
+
responses: {
|
|
3002
|
+
/** A successful response. */
|
|
3003
|
+
200: {
|
|
3004
|
+
schema: definitions["v1GetWalletAccountResponse"];
|
|
3005
|
+
};
|
|
3006
|
+
/** An unexpected error response. */
|
|
3007
|
+
default: {
|
|
3008
|
+
schema: definitions["rpcStatus"];
|
|
3009
|
+
};
|
|
3010
|
+
};
|
|
3011
|
+
};
|
|
2958
3012
|
/** List all Activities within an Organization */
|
|
2959
3013
|
PublicApiService_GetActivities: {
|
|
2960
3014
|
parameters: {
|
|
@@ -3099,7 +3153,7 @@ export type operations = {
|
|
|
3099
3153
|
};
|
|
3100
3154
|
};
|
|
3101
3155
|
};
|
|
3102
|
-
/** List all Accounts
|
|
3156
|
+
/** List all Accounts within a Wallet */
|
|
3103
3157
|
PublicApiService_GetWalletAccounts: {
|
|
3104
3158
|
parameters: {
|
|
3105
3159
|
body: {
|
|
@@ -4119,6 +4173,24 @@ export type operations = {
|
|
|
4119
4173
|
};
|
|
4120
4174
|
};
|
|
4121
4175
|
};
|
|
4176
|
+
/** Set a rate local rate limit just on the current endpoint, for purposes of testing with Vivosuite */
|
|
4177
|
+
PublicApiService_TestRateLimits: {
|
|
4178
|
+
parameters: {
|
|
4179
|
+
body: {
|
|
4180
|
+
body: definitions["v1TestRateLimitsRequest"];
|
|
4181
|
+
};
|
|
4182
|
+
};
|
|
4183
|
+
responses: {
|
|
4184
|
+
/** A successful response. */
|
|
4185
|
+
200: {
|
|
4186
|
+
schema: definitions["v1TestRateLimitsResponse"];
|
|
4187
|
+
};
|
|
4188
|
+
/** An unexpected error response. */
|
|
4189
|
+
default: {
|
|
4190
|
+
schema: definitions["rpcStatus"];
|
|
4191
|
+
};
|
|
4192
|
+
};
|
|
4193
|
+
};
|
|
4122
4194
|
};
|
|
4123
4195
|
export type external = {};
|
|
4124
4196
|
//# sourceMappingURL=public_api.types.d.ts.map
|