@turnkey/sdk-types 0.4.0-beta.4 → 0.4.0-beta.6
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 +12 -0
- package/dist/__generated__/types.d.ts +244 -2
- package/dist/__generated__/types.d.ts.map +1 -1
- package/dist/__inputs__/public_api.types.d.ts +268 -2
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -27,6 +27,10 @@ export type paths = {
|
|
|
27
27
|
/** Get details about authenticators for a user. */
|
|
28
28
|
post: operations["PublicApiService_GetAuthenticators"];
|
|
29
29
|
};
|
|
30
|
+
"/public/v1/query/get_oauth2_credential": {
|
|
31
|
+
/** Get details about an OAuth 2.0 credential. */
|
|
32
|
+
post: operations["PublicApiService_GetOauth2Credential"];
|
|
33
|
+
};
|
|
30
34
|
"/public/v1/query/get_oauth_providers": {
|
|
31
35
|
/** Get details about Oauth providers for a user. */
|
|
32
36
|
post: operations["PublicApiService_GetOauthProviders"];
|
|
@@ -71,6 +75,10 @@ export type paths = {
|
|
|
71
75
|
/** List all activities within an organization. */
|
|
72
76
|
post: operations["PublicApiService_GetActivities"];
|
|
73
77
|
};
|
|
78
|
+
"/public/v1/query/list_oauth2_credentials": {
|
|
79
|
+
/** List all OAuth 2.0 credentials within an organization. */
|
|
80
|
+
post: operations["PublicApiService_ListOauth2Credentials"];
|
|
81
|
+
};
|
|
74
82
|
"/public/v1/query/list_policies": {
|
|
75
83
|
/** List all policies within an organization. */
|
|
76
84
|
post: operations["PublicApiService_GetPolicies"];
|
|
@@ -135,6 +143,10 @@ export type paths = {
|
|
|
135
143
|
/** Create invitations to join an existing organization. */
|
|
136
144
|
post: operations["PublicApiService_CreateInvitations"];
|
|
137
145
|
};
|
|
146
|
+
"/public/v1/submit/create_oauth2_credential": {
|
|
147
|
+
/** Enable authentication for end users with an OAuth 2.0 provider */
|
|
148
|
+
post: operations["PublicApiService_CreateOauth2Credential"];
|
|
149
|
+
};
|
|
138
150
|
"/public/v1/submit/create_oauth_providers": {
|
|
139
151
|
/** Create Oauth providers for a specified user. */
|
|
140
152
|
post: operations["PublicApiService_CreateOauthProviders"];
|
|
@@ -199,6 +211,10 @@ export type paths = {
|
|
|
199
211
|
/** Delete an existing invitation. */
|
|
200
212
|
post: operations["PublicApiService_DeleteInvitation"];
|
|
201
213
|
};
|
|
214
|
+
"/public/v1/submit/delete_oauth2_credential": {
|
|
215
|
+
/** Disable authentication for end users with an OAuth 2.0 provider */
|
|
216
|
+
post: operations["PublicApiService_DeleteOauth2Credential"];
|
|
217
|
+
};
|
|
202
218
|
"/public/v1/submit/delete_oauth_providers": {
|
|
203
219
|
/** Remove Oauth providers for a specified user. */
|
|
204
220
|
post: operations["PublicApiService_DeleteOauthProviders"];
|
|
@@ -287,6 +303,10 @@ export type paths = {
|
|
|
287
303
|
/** Authenticate a user with an OIDC token (Oauth). */
|
|
288
304
|
post: operations["PublicApiService_Oauth"];
|
|
289
305
|
};
|
|
306
|
+
"/public/v1/submit/oauth2_authenticate": {
|
|
307
|
+
/** Authenticate a user with an OAuth 2.0 provider and receive an OIDC token to use with the LoginWithOAuth or CreateSubOrganization activities */
|
|
308
|
+
post: operations["PublicApiService_Oauth2Authenticate"];
|
|
309
|
+
};
|
|
290
310
|
"/public/v1/submit/oauth_login": {
|
|
291
311
|
/** Create an Oauth session for a user. */
|
|
292
312
|
post: operations["PublicApiService_OauthLogin"];
|
|
@@ -331,6 +351,10 @@ export type paths = {
|
|
|
331
351
|
/** Create a session for a user through stamping client side (API key, wallet client, or passkey client). */
|
|
332
352
|
post: operations["PublicApiService_StampLogin"];
|
|
333
353
|
};
|
|
354
|
+
"/public/v1/submit/update_oauth2_credential": {
|
|
355
|
+
/** Update an OAuth 2.0 provider credential */
|
|
356
|
+
post: operations["PublicApiService_UpdateOauth2Credential"];
|
|
357
|
+
};
|
|
334
358
|
"/public/v1/submit/update_policy": {
|
|
335
359
|
/** Update an existing policy. */
|
|
336
360
|
post: operations["PublicApiService_UpdatePolicy"];
|
|
@@ -570,7 +594,7 @@ export type definitions = {
|
|
|
570
594
|
/** @enum {string} */
|
|
571
595
|
v1ActivityStatus: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
|
|
572
596
|
/** @enum {string} */
|
|
573
|
-
v1ActivityType: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG";
|
|
597
|
+
v1ActivityType: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2" | "ACTIVITY_TYPE_UPDATE_USER" | "ACTIVITY_TYPE_UPDATE_POLICY" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V3" | "ACTIVITY_TYPE_CREATE_WALLET" | "ACTIVITY_TYPE_CREATE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY" | "ACTIVITY_TYPE_RECOVER_USER" | "ACTIVITY_TYPE_SET_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_REMOVE_ORGANIZATION_FEATURE" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD_V2" | "ACTIVITY_TYPE_SIGN_TRANSACTION_V2" | "ACTIVITY_TYPE_EXPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_EXPORT_WALLET" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V4" | "ACTIVITY_TYPE_EMAIL_AUTH" | "ACTIVITY_TYPE_EXPORT_WALLET_ACCOUNT" | "ACTIVITY_TYPE_INIT_IMPORT_WALLET" | "ACTIVITY_TYPE_IMPORT_WALLET" | "ACTIVITY_TYPE_INIT_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_IMPORT_PRIVATE_KEY" | "ACTIVITY_TYPE_CREATE_POLICIES" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOADS" | "ACTIVITY_TYPE_CREATE_READ_ONLY_SESSION" | "ACTIVITY_TYPE_CREATE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_DELETE_OAUTH_PROVIDERS" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V5" | "ACTIVITY_TYPE_OAUTH" | "ACTIVITY_TYPE_CREATE_API_KEYS_V2" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION" | "ACTIVITY_TYPE_EMAIL_AUTH_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V6" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEYS" | "ACTIVITY_TYPE_DELETE_WALLETS" | "ACTIVITY_TYPE_CREATE_READ_WRITE_SESSION_V2" | "ACTIVITY_TYPE_DELETE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_INIT_OTP_AUTH" | "ACTIVITY_TYPE_OTP_AUTH" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V7" | "ACTIVITY_TYPE_UPDATE_WALLET" | "ACTIVITY_TYPE_UPDATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_USERS_V3" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V2" | "ACTIVITY_TYPE_INIT_OTP" | "ACTIVITY_TYPE_VERIFY_OTP" | "ACTIVITY_TYPE_OTP_LOGIN" | "ACTIVITY_TYPE_STAMP_LOGIN" | "ACTIVITY_TYPE_OAUTH_LOGIN" | "ACTIVITY_TYPE_UPDATE_USER_NAME" | "ACTIVITY_TYPE_UPDATE_USER_EMAIL" | "ACTIVITY_TYPE_UPDATE_USER_PHONE_NUMBER" | "ACTIVITY_TYPE_INIT_FIAT_ON_RAMP" | "ACTIVITY_TYPE_CREATE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_DELETE_SMART_CONTRACT_INTERFACE" | "ACTIVITY_TYPE_ENABLE_AUTH_PROXY" | "ACTIVITY_TYPE_DISABLE_AUTH_PROXY" | "ACTIVITY_TYPE_UPDATE_AUTH_PROXY_CONFIG" | "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL" | "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE";
|
|
574
598
|
/** @enum {string} */
|
|
575
599
|
v1AddressFormat: "ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM" | "ADDRESS_FORMAT_SOLANA" | "ADDRESS_FORMAT_COSMOS" | "ADDRESS_FORMAT_TRON" | "ADDRESS_FORMAT_SUI" | "ADDRESS_FORMAT_APTOS" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH" | "ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH" | "ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR" | "ADDRESS_FORMAT_SEI" | "ADDRESS_FORMAT_XLM" | "ADDRESS_FORMAT_DOGE_MAINNET" | "ADDRESS_FORMAT_DOGE_TESTNET" | "ADDRESS_FORMAT_TON_V3R2" | "ADDRESS_FORMAT_TON_V4R2" | "ADDRESS_FORMAT_TON_V5R1" | "ADDRESS_FORMAT_XRP";
|
|
576
600
|
v1ApiKey: {
|
|
@@ -766,6 +790,27 @@ export type definitions = {
|
|
|
766
790
|
/** @description A list of Invitation IDs */
|
|
767
791
|
invitationIds: string[];
|
|
768
792
|
};
|
|
793
|
+
v1CreateOauth2CredentialIntent: {
|
|
794
|
+
/** @description The OAuth 2.0 provider */
|
|
795
|
+
provider: definitions["v1Oauth2Provider"];
|
|
796
|
+
/** @description The Client ID issued by the OAuth 2.0 provider */
|
|
797
|
+
clientId: string;
|
|
798
|
+
/** @description The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
|
|
799
|
+
encryptedClientSecret: string;
|
|
800
|
+
};
|
|
801
|
+
v1CreateOauth2CredentialRequest: {
|
|
802
|
+
/** @enum {string} */
|
|
803
|
+
type: "ACTIVITY_TYPE_CREATE_OAUTH2_CREDENTIAL";
|
|
804
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
805
|
+
timestampMs: string;
|
|
806
|
+
/** @description Unique identifier for a given Organization. */
|
|
807
|
+
organizationId: string;
|
|
808
|
+
parameters: definitions["v1CreateOauth2CredentialIntent"];
|
|
809
|
+
};
|
|
810
|
+
v1CreateOauth2CredentialResult: {
|
|
811
|
+
/** @description Unique identifier of the OAuth 2.0 credential that was created */
|
|
812
|
+
oauth2CredentialId: string;
|
|
813
|
+
};
|
|
769
814
|
v1CreateOauthProvidersIntent: {
|
|
770
815
|
/** @description The ID of the User to add an Oauth provider to */
|
|
771
816
|
userId: string;
|
|
@@ -1322,6 +1367,23 @@ export type definitions = {
|
|
|
1322
1367
|
/** @description Unique identifier for a given Invitation. */
|
|
1323
1368
|
invitationId: string;
|
|
1324
1369
|
};
|
|
1370
|
+
v1DeleteOauth2CredentialIntent: {
|
|
1371
|
+
/** @description The ID of the OAuth 2.0 credential to delete */
|
|
1372
|
+
oauth2CredentialId: string;
|
|
1373
|
+
};
|
|
1374
|
+
v1DeleteOauth2CredentialRequest: {
|
|
1375
|
+
/** @enum {string} */
|
|
1376
|
+
type: "ACTIVITY_TYPE_DELETE_OAUTH2_CREDENTIAL";
|
|
1377
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1378
|
+
timestampMs: string;
|
|
1379
|
+
/** @description Unique identifier for a given Organization. */
|
|
1380
|
+
organizationId: string;
|
|
1381
|
+
parameters: definitions["v1DeleteOauth2CredentialIntent"];
|
|
1382
|
+
};
|
|
1383
|
+
v1DeleteOauth2CredentialResult: {
|
|
1384
|
+
/** @description Unique identifier of the OAuth 2.0 credential that was deleted */
|
|
1385
|
+
oauth2CredentialId: string;
|
|
1386
|
+
};
|
|
1325
1387
|
v1DeleteOauthProvidersIntent: {
|
|
1326
1388
|
/** @description The ID of the User to remove an Oauth provider from */
|
|
1327
1389
|
userId: string;
|
|
@@ -1737,6 +1799,15 @@ export type definitions = {
|
|
|
1737
1799
|
/** @description A list of authenticators. */
|
|
1738
1800
|
authenticators: definitions["v1Authenticator"][];
|
|
1739
1801
|
};
|
|
1802
|
+
v1GetOauth2CredentialRequest: {
|
|
1803
|
+
/** @description Unique identifier for a given Organization. */
|
|
1804
|
+
organizationId: string;
|
|
1805
|
+
/** @description Unique identifier for a given OAuth 2.0 Credential. */
|
|
1806
|
+
oauth2CredentialId: string;
|
|
1807
|
+
};
|
|
1808
|
+
v1GetOauth2CredentialResponse: {
|
|
1809
|
+
oauth2Credential: definitions["v1Oauth2Credential"];
|
|
1810
|
+
};
|
|
1740
1811
|
v1GetOauthProvidersRequest: {
|
|
1741
1812
|
/** @description Unique identifier for a given organization. */
|
|
1742
1813
|
organizationId: string;
|
|
@@ -1891,6 +1962,8 @@ export type definitions = {
|
|
|
1891
1962
|
organizationId: string;
|
|
1892
1963
|
/** @description Unique identifier for a given wallet. If not provided, all accounts for the organization will be returned. */
|
|
1893
1964
|
walletId?: string;
|
|
1965
|
+
/** @description Optional flag to specify if the wallet details should be included in the response. Default = false. */
|
|
1966
|
+
includeWalletDetails?: boolean;
|
|
1894
1967
|
/** @description Parameters used for cursor-based pagination. */
|
|
1895
1968
|
paginationOptions?: definitions["v1Pagination"];
|
|
1896
1969
|
};
|
|
@@ -2276,6 +2349,10 @@ export type definitions = {
|
|
|
2276
2349
|
enableAuthProxyIntent?: definitions["v1EnableAuthProxyIntent"];
|
|
2277
2350
|
disableAuthProxyIntent?: definitions["v1DisableAuthProxyIntent"];
|
|
2278
2351
|
updateAuthProxyConfigIntent?: definitions["v1UpdateAuthProxyConfigIntent"];
|
|
2352
|
+
createOauth2CredentialIntent?: definitions["v1CreateOauth2CredentialIntent"];
|
|
2353
|
+
updateOauth2CredentialIntent?: definitions["v1UpdateOauth2CredentialIntent"];
|
|
2354
|
+
deleteOauth2CredentialIntent?: definitions["v1DeleteOauth2CredentialIntent"];
|
|
2355
|
+
oauth2AuthenticateIntent?: definitions["v1Oauth2AuthenticateIntent"];
|
|
2279
2356
|
};
|
|
2280
2357
|
v1Invitation: {
|
|
2281
2358
|
/** @description Unique identifier for a given Invitation object. */
|
|
@@ -2309,6 +2386,13 @@ export type definitions = {
|
|
|
2309
2386
|
};
|
|
2310
2387
|
/** @enum {string} */
|
|
2311
2388
|
v1InvitationStatus: "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
|
|
2389
|
+
v1ListOauth2CredentialsRequest: {
|
|
2390
|
+
/** @description Unique identifier for a given Organization. */
|
|
2391
|
+
organizationId: string;
|
|
2392
|
+
};
|
|
2393
|
+
v1ListOauth2CredentialsResponse: {
|
|
2394
|
+
oauth2Credentials: definitions["v1Oauth2Credential"][];
|
|
2395
|
+
};
|
|
2312
2396
|
v1ListPrivateKeyTagsRequest: {
|
|
2313
2397
|
/** @description Unique identifier for a given organization. */
|
|
2314
2398
|
organizationId: string;
|
|
@@ -2330,6 +2414,47 @@ export type definitions = {
|
|
|
2330
2414
|
v1NOOPCodegenAnchorResponse: {
|
|
2331
2415
|
stamp: definitions["v1WebAuthnStamp"];
|
|
2332
2416
|
};
|
|
2417
|
+
v1Oauth2AuthenticateIntent: {
|
|
2418
|
+
/** @description The OAuth 2.0 credential id whose client_id and client_secret will be used in the OAuth 2.0 flow */
|
|
2419
|
+
oauth2CredentialId: string;
|
|
2420
|
+
/** @description The auth_code provided by the OAuth 2.0 provider to the end user to be exchanged for a Bearer token in the OAuth 2.0 flow */
|
|
2421
|
+
authCode: string;
|
|
2422
|
+
/** @description The URI the user is redirected to after they have authenticated with the OAuth 2.0 provider */
|
|
2423
|
+
redirectUri: string;
|
|
2424
|
+
/** @description The code verifier used by OAuth 2.0 PKCE providers */
|
|
2425
|
+
codeVerifier: string;
|
|
2426
|
+
/** @description An optional nonce used by the client to prevent replay/substitution of an ID token */
|
|
2427
|
+
nonce?: string;
|
|
2428
|
+
};
|
|
2429
|
+
v1Oauth2AuthenticateRequest: {
|
|
2430
|
+
/** @enum {string} */
|
|
2431
|
+
type: "ACTIVITY_TYPE_OAUTH2_AUTHENTICATE";
|
|
2432
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2433
|
+
timestampMs: string;
|
|
2434
|
+
/** @description Unique identifier for a given Organization. */
|
|
2435
|
+
organizationId: string;
|
|
2436
|
+
parameters: definitions["v1Oauth2AuthenticateIntent"];
|
|
2437
|
+
};
|
|
2438
|
+
v1Oauth2AuthenticateResult: {
|
|
2439
|
+
/** @description Base64 encoded OIDC token issued by Turnkey to be used with the LoginWithOAuth activity */
|
|
2440
|
+
oidcToken: string;
|
|
2441
|
+
};
|
|
2442
|
+
v1Oauth2Credential: {
|
|
2443
|
+
/** @description Unique identifier for a given OAuth 2.0 Credential. */
|
|
2444
|
+
oauth2CredentialId: string;
|
|
2445
|
+
/** @description Unique identifier for an Organization. */
|
|
2446
|
+
organizationId: string;
|
|
2447
|
+
/** @description The provider for a given OAuth 2.0 Credential. */
|
|
2448
|
+
provider: definitions["v1Oauth2Provider"];
|
|
2449
|
+
/** @description The client id for a given OAuth 2.0 Credential. */
|
|
2450
|
+
clientId: string;
|
|
2451
|
+
/** @description The encrypted client secret for a given OAuth 2.0 Credential encrypted to the TLS Fetcher quorum key. */
|
|
2452
|
+
encryptedClientSecret: string;
|
|
2453
|
+
createdAt: definitions["externaldatav1Timestamp"];
|
|
2454
|
+
updatedAt: definitions["externaldatav1Timestamp"];
|
|
2455
|
+
};
|
|
2456
|
+
/** @enum {string} */
|
|
2457
|
+
v1Oauth2Provider: "OAUTH2_PROVIDER_X" | "OAUTH2_PROVIDER_DISCORD";
|
|
2333
2458
|
v1OauthIntent: {
|
|
2334
2459
|
/** @description Base64 encoded OIDC token */
|
|
2335
2460
|
oidcToken: string;
|
|
@@ -2484,7 +2609,7 @@ export type definitions = {
|
|
|
2484
2609
|
/** @enum {string} */
|
|
2485
2610
|
v1PathFormat: "PATH_FORMAT_BIP32";
|
|
2486
2611
|
/** @enum {string} */
|
|
2487
|
-
v1PayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8" | "PAYLOAD_ENCODING_EIP712";
|
|
2612
|
+
v1PayloadEncoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8" | "PAYLOAD_ENCODING_EIP712" | "PAYLOAD_ENCODING_EIP7702_AUTHORIZATION";
|
|
2488
2613
|
v1Policy: {
|
|
2489
2614
|
/** @description Unique identifier for a given Policy. */
|
|
2490
2615
|
policyId: string;
|
|
@@ -2677,6 +2802,10 @@ export type definitions = {
|
|
|
2677
2802
|
enableAuthProxyResult?: definitions["v1EnableAuthProxyResult"];
|
|
2678
2803
|
disableAuthProxyResult?: definitions["v1DisableAuthProxyResult"];
|
|
2679
2804
|
updateAuthProxyConfigResult?: definitions["v1UpdateAuthProxyConfigResult"];
|
|
2805
|
+
createOauth2CredentialResult?: definitions["v1CreateOauth2CredentialResult"];
|
|
2806
|
+
updateOauth2CredentialResult?: definitions["v1UpdateOauth2CredentialResult"];
|
|
2807
|
+
deleteOauth2CredentialResult?: definitions["v1DeleteOauth2CredentialResult"];
|
|
2808
|
+
oauth2AuthenticateResult?: definitions["v1Oauth2AuthenticateResult"];
|
|
2680
2809
|
};
|
|
2681
2810
|
v1RootUserParams: {
|
|
2682
2811
|
/** @description Human-readable name for a User. */
|
|
@@ -2943,11 +3072,38 @@ export type definitions = {
|
|
|
2943
3072
|
* @description Desired OTP code length (6–9).
|
|
2944
3073
|
*/
|
|
2945
3074
|
otpLength?: number;
|
|
3075
|
+
/** @description A map of OAuth 2.0 provider and their respective credential ID to use for the OAuth 2.0 authentication flow. */
|
|
3076
|
+
oauth2ProviderCredentialIds?: {
|
|
3077
|
+
[key: string]: string;
|
|
3078
|
+
};
|
|
2946
3079
|
};
|
|
2947
3080
|
v1UpdateAuthProxyConfigResult: {
|
|
2948
3081
|
/** @description Unique identifier for a given User. (representing the turnkey signer user id) */
|
|
2949
3082
|
configId?: string;
|
|
2950
3083
|
};
|
|
3084
|
+
v1UpdateOauth2CredentialIntent: {
|
|
3085
|
+
/** @description The ID of the OAuth 2.0 credential to update */
|
|
3086
|
+
oauth2CredentialId: string;
|
|
3087
|
+
/** @description The OAuth 2.0 provider */
|
|
3088
|
+
provider: definitions["v1Oauth2Provider"];
|
|
3089
|
+
/** @description The Client ID issued by the OAuth 2.0 provider */
|
|
3090
|
+
clientId: string;
|
|
3091
|
+
/** @description The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
|
|
3092
|
+
encryptedClientSecret: string;
|
|
3093
|
+
};
|
|
3094
|
+
v1UpdateOauth2CredentialRequest: {
|
|
3095
|
+
/** @enum {string} */
|
|
3096
|
+
type: "ACTIVITY_TYPE_UPDATE_OAUTH2_CREDENTIAL";
|
|
3097
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
3098
|
+
timestampMs: string;
|
|
3099
|
+
/** @description Unique identifier for a given Organization. */
|
|
3100
|
+
organizationId: string;
|
|
3101
|
+
parameters: definitions["v1UpdateOauth2CredentialIntent"];
|
|
3102
|
+
};
|
|
3103
|
+
v1UpdateOauth2CredentialResult: {
|
|
3104
|
+
/** @description Unique identifier of the OAuth 2.0 credential that was updated */
|
|
3105
|
+
oauth2CredentialId: string;
|
|
3106
|
+
};
|
|
2951
3107
|
v1UpdatePolicyIntent: {
|
|
2952
3108
|
/** @description Unique identifier for a given Policy. */
|
|
2953
3109
|
policyId: string;
|
|
@@ -3302,6 +3458,8 @@ export type definitions = {
|
|
|
3302
3458
|
updatedAt: definitions["externaldatav1Timestamp"];
|
|
3303
3459
|
/** @description The public component of this wallet account's underlying cryptographic key pair. */
|
|
3304
3460
|
publicKey?: string;
|
|
3461
|
+
/** @description Wallet details for this account. This is only present when include_wallet_details=true. */
|
|
3462
|
+
walletDetails?: definitions["v1Wallet"];
|
|
3305
3463
|
};
|
|
3306
3464
|
v1WalletAccountParams: {
|
|
3307
3465
|
/** @description Cryptographic curve used to generate a wallet Account. */
|
|
@@ -3456,6 +3614,24 @@ export type operations = {
|
|
|
3456
3614
|
};
|
|
3457
3615
|
};
|
|
3458
3616
|
};
|
|
3617
|
+
/** Get details about an OAuth 2.0 credential. */
|
|
3618
|
+
PublicApiService_GetOauth2Credential: {
|
|
3619
|
+
parameters: {
|
|
3620
|
+
body: {
|
|
3621
|
+
body: definitions["v1GetOauth2CredentialRequest"];
|
|
3622
|
+
};
|
|
3623
|
+
};
|
|
3624
|
+
responses: {
|
|
3625
|
+
/** A successful response. */
|
|
3626
|
+
200: {
|
|
3627
|
+
schema: definitions["v1GetOauth2CredentialResponse"];
|
|
3628
|
+
};
|
|
3629
|
+
/** An unexpected error response. */
|
|
3630
|
+
default: {
|
|
3631
|
+
schema: definitions["rpcStatus"];
|
|
3632
|
+
};
|
|
3633
|
+
};
|
|
3634
|
+
};
|
|
3459
3635
|
/** Get details about Oauth providers for a user. */
|
|
3460
3636
|
PublicApiService_GetOauthProviders: {
|
|
3461
3637
|
parameters: {
|
|
@@ -3654,6 +3830,24 @@ export type operations = {
|
|
|
3654
3830
|
};
|
|
3655
3831
|
};
|
|
3656
3832
|
};
|
|
3833
|
+
/** List all OAuth 2.0 credentials within an organization. */
|
|
3834
|
+
PublicApiService_ListOauth2Credentials: {
|
|
3835
|
+
parameters: {
|
|
3836
|
+
body: {
|
|
3837
|
+
body: definitions["v1ListOauth2CredentialsRequest"];
|
|
3838
|
+
};
|
|
3839
|
+
};
|
|
3840
|
+
responses: {
|
|
3841
|
+
/** A successful response. */
|
|
3842
|
+
200: {
|
|
3843
|
+
schema: definitions["v1ListOauth2CredentialsResponse"];
|
|
3844
|
+
};
|
|
3845
|
+
/** An unexpected error response. */
|
|
3846
|
+
default: {
|
|
3847
|
+
schema: definitions["rpcStatus"];
|
|
3848
|
+
};
|
|
3849
|
+
};
|
|
3850
|
+
};
|
|
3657
3851
|
/** List all policies within an organization. */
|
|
3658
3852
|
PublicApiService_GetPolicies: {
|
|
3659
3853
|
parameters: {
|
|
@@ -3942,6 +4136,24 @@ export type operations = {
|
|
|
3942
4136
|
};
|
|
3943
4137
|
};
|
|
3944
4138
|
};
|
|
4139
|
+
/** Enable authentication for end users with an OAuth 2.0 provider */
|
|
4140
|
+
PublicApiService_CreateOauth2Credential: {
|
|
4141
|
+
parameters: {
|
|
4142
|
+
body: {
|
|
4143
|
+
body: definitions["v1CreateOauth2CredentialRequest"];
|
|
4144
|
+
};
|
|
4145
|
+
};
|
|
4146
|
+
responses: {
|
|
4147
|
+
/** A successful response. */
|
|
4148
|
+
200: {
|
|
4149
|
+
schema: definitions["v1ActivityResponse"];
|
|
4150
|
+
};
|
|
4151
|
+
/** An unexpected error response. */
|
|
4152
|
+
default: {
|
|
4153
|
+
schema: definitions["rpcStatus"];
|
|
4154
|
+
};
|
|
4155
|
+
};
|
|
4156
|
+
};
|
|
3945
4157
|
/** Create Oauth providers for a specified user. */
|
|
3946
4158
|
PublicApiService_CreateOauthProviders: {
|
|
3947
4159
|
parameters: {
|
|
@@ -4230,6 +4442,24 @@ export type operations = {
|
|
|
4230
4442
|
};
|
|
4231
4443
|
};
|
|
4232
4444
|
};
|
|
4445
|
+
/** Disable authentication for end users with an OAuth 2.0 provider */
|
|
4446
|
+
PublicApiService_DeleteOauth2Credential: {
|
|
4447
|
+
parameters: {
|
|
4448
|
+
body: {
|
|
4449
|
+
body: definitions["v1DeleteOauth2CredentialRequest"];
|
|
4450
|
+
};
|
|
4451
|
+
};
|
|
4452
|
+
responses: {
|
|
4453
|
+
/** A successful response. */
|
|
4454
|
+
200: {
|
|
4455
|
+
schema: definitions["v1ActivityResponse"];
|
|
4456
|
+
};
|
|
4457
|
+
/** An unexpected error response. */
|
|
4458
|
+
default: {
|
|
4459
|
+
schema: definitions["rpcStatus"];
|
|
4460
|
+
};
|
|
4461
|
+
};
|
|
4462
|
+
};
|
|
4233
4463
|
/** Remove Oauth providers for a specified user. */
|
|
4234
4464
|
PublicApiService_DeleteOauthProviders: {
|
|
4235
4465
|
parameters: {
|
|
@@ -4626,6 +4856,24 @@ export type operations = {
|
|
|
4626
4856
|
};
|
|
4627
4857
|
};
|
|
4628
4858
|
};
|
|
4859
|
+
/** Authenticate a user with an OAuth 2.0 provider and receive an OIDC token to use with the LoginWithOAuth or CreateSubOrganization activities */
|
|
4860
|
+
PublicApiService_Oauth2Authenticate: {
|
|
4861
|
+
parameters: {
|
|
4862
|
+
body: {
|
|
4863
|
+
body: definitions["v1Oauth2AuthenticateRequest"];
|
|
4864
|
+
};
|
|
4865
|
+
};
|
|
4866
|
+
responses: {
|
|
4867
|
+
/** A successful response. */
|
|
4868
|
+
200: {
|
|
4869
|
+
schema: definitions["v1ActivityResponse"];
|
|
4870
|
+
};
|
|
4871
|
+
/** An unexpected error response. */
|
|
4872
|
+
default: {
|
|
4873
|
+
schema: definitions["rpcStatus"];
|
|
4874
|
+
};
|
|
4875
|
+
};
|
|
4876
|
+
};
|
|
4629
4877
|
/** Create an Oauth session for a user. */
|
|
4630
4878
|
PublicApiService_OauthLogin: {
|
|
4631
4879
|
parameters: {
|
|
@@ -4824,6 +5072,24 @@ export type operations = {
|
|
|
4824
5072
|
};
|
|
4825
5073
|
};
|
|
4826
5074
|
};
|
|
5075
|
+
/** Update an OAuth 2.0 provider credential */
|
|
5076
|
+
PublicApiService_UpdateOauth2Credential: {
|
|
5077
|
+
parameters: {
|
|
5078
|
+
body: {
|
|
5079
|
+
body: definitions["v1UpdateOauth2CredentialRequest"];
|
|
5080
|
+
};
|
|
5081
|
+
};
|
|
5082
|
+
responses: {
|
|
5083
|
+
/** A successful response. */
|
|
5084
|
+
200: {
|
|
5085
|
+
schema: definitions["v1ActivityResponse"];
|
|
5086
|
+
};
|
|
5087
|
+
/** An unexpected error response. */
|
|
5088
|
+
default: {
|
|
5089
|
+
schema: definitions["rpcStatus"];
|
|
5090
|
+
};
|
|
5091
|
+
};
|
|
5092
|
+
};
|
|
4827
5093
|
/** Update an existing policy. */
|
|
4828
5094
|
PublicApiService_UpdatePolicy: {
|
|
4829
5095
|
parameters: {
|