@turnkey/sdk-types 0.4.0-beta.5 → 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 +6 -0
- package/dist/__generated__/types.d.ts +237 -1
- package/dist/__generated__/types.d.ts.map +1 -1
- package/dist/__inputs__/public_api.types.d.ts +263 -1
- 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;
|
|
@@ -2278,6 +2349,10 @@ export type definitions = {
|
|
|
2278
2349
|
enableAuthProxyIntent?: definitions["v1EnableAuthProxyIntent"];
|
|
2279
2350
|
disableAuthProxyIntent?: definitions["v1DisableAuthProxyIntent"];
|
|
2280
2351
|
updateAuthProxyConfigIntent?: definitions["v1UpdateAuthProxyConfigIntent"];
|
|
2352
|
+
createOauth2CredentialIntent?: definitions["v1CreateOauth2CredentialIntent"];
|
|
2353
|
+
updateOauth2CredentialIntent?: definitions["v1UpdateOauth2CredentialIntent"];
|
|
2354
|
+
deleteOauth2CredentialIntent?: definitions["v1DeleteOauth2CredentialIntent"];
|
|
2355
|
+
oauth2AuthenticateIntent?: definitions["v1Oauth2AuthenticateIntent"];
|
|
2281
2356
|
};
|
|
2282
2357
|
v1Invitation: {
|
|
2283
2358
|
/** @description Unique identifier for a given Invitation object. */
|
|
@@ -2311,6 +2386,13 @@ export type definitions = {
|
|
|
2311
2386
|
};
|
|
2312
2387
|
/** @enum {string} */
|
|
2313
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
|
+
};
|
|
2314
2396
|
v1ListPrivateKeyTagsRequest: {
|
|
2315
2397
|
/** @description Unique identifier for a given organization. */
|
|
2316
2398
|
organizationId: string;
|
|
@@ -2332,6 +2414,47 @@ export type definitions = {
|
|
|
2332
2414
|
v1NOOPCodegenAnchorResponse: {
|
|
2333
2415
|
stamp: definitions["v1WebAuthnStamp"];
|
|
2334
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";
|
|
2335
2458
|
v1OauthIntent: {
|
|
2336
2459
|
/** @description Base64 encoded OIDC token */
|
|
2337
2460
|
oidcToken: string;
|
|
@@ -2679,6 +2802,10 @@ export type definitions = {
|
|
|
2679
2802
|
enableAuthProxyResult?: definitions["v1EnableAuthProxyResult"];
|
|
2680
2803
|
disableAuthProxyResult?: definitions["v1DisableAuthProxyResult"];
|
|
2681
2804
|
updateAuthProxyConfigResult?: definitions["v1UpdateAuthProxyConfigResult"];
|
|
2805
|
+
createOauth2CredentialResult?: definitions["v1CreateOauth2CredentialResult"];
|
|
2806
|
+
updateOauth2CredentialResult?: definitions["v1UpdateOauth2CredentialResult"];
|
|
2807
|
+
deleteOauth2CredentialResult?: definitions["v1DeleteOauth2CredentialResult"];
|
|
2808
|
+
oauth2AuthenticateResult?: definitions["v1Oauth2AuthenticateResult"];
|
|
2682
2809
|
};
|
|
2683
2810
|
v1RootUserParams: {
|
|
2684
2811
|
/** @description Human-readable name for a User. */
|
|
@@ -2945,11 +3072,38 @@ export type definitions = {
|
|
|
2945
3072
|
* @description Desired OTP code length (6–9).
|
|
2946
3073
|
*/
|
|
2947
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
|
+
};
|
|
2948
3079
|
};
|
|
2949
3080
|
v1UpdateAuthProxyConfigResult: {
|
|
2950
3081
|
/** @description Unique identifier for a given User. (representing the turnkey signer user id) */
|
|
2951
3082
|
configId?: string;
|
|
2952
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
|
+
};
|
|
2953
3107
|
v1UpdatePolicyIntent: {
|
|
2954
3108
|
/** @description Unique identifier for a given Policy. */
|
|
2955
3109
|
policyId: string;
|
|
@@ -3460,6 +3614,24 @@ export type operations = {
|
|
|
3460
3614
|
};
|
|
3461
3615
|
};
|
|
3462
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
|
+
};
|
|
3463
3635
|
/** Get details about Oauth providers for a user. */
|
|
3464
3636
|
PublicApiService_GetOauthProviders: {
|
|
3465
3637
|
parameters: {
|
|
@@ -3658,6 +3830,24 @@ export type operations = {
|
|
|
3658
3830
|
};
|
|
3659
3831
|
};
|
|
3660
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
|
+
};
|
|
3661
3851
|
/** List all policies within an organization. */
|
|
3662
3852
|
PublicApiService_GetPolicies: {
|
|
3663
3853
|
parameters: {
|
|
@@ -3946,6 +4136,24 @@ export type operations = {
|
|
|
3946
4136
|
};
|
|
3947
4137
|
};
|
|
3948
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
|
+
};
|
|
3949
4157
|
/** Create Oauth providers for a specified user. */
|
|
3950
4158
|
PublicApiService_CreateOauthProviders: {
|
|
3951
4159
|
parameters: {
|
|
@@ -4234,6 +4442,24 @@ export type operations = {
|
|
|
4234
4442
|
};
|
|
4235
4443
|
};
|
|
4236
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
|
+
};
|
|
4237
4463
|
/** Remove Oauth providers for a specified user. */
|
|
4238
4464
|
PublicApiService_DeleteOauthProviders: {
|
|
4239
4465
|
parameters: {
|
|
@@ -4630,6 +4856,24 @@ export type operations = {
|
|
|
4630
4856
|
};
|
|
4631
4857
|
};
|
|
4632
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
|
+
};
|
|
4633
4877
|
/** Create an Oauth session for a user. */
|
|
4634
4878
|
PublicApiService_OauthLogin: {
|
|
4635
4879
|
parameters: {
|
|
@@ -4828,6 +5072,24 @@ export type operations = {
|
|
|
4828
5072
|
};
|
|
4829
5073
|
};
|
|
4830
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
|
+
};
|
|
4831
5093
|
/** Update an existing policy. */
|
|
4832
5094
|
PublicApiService_UpdatePolicy: {
|
|
4833
5095
|
parameters: {
|