@turnkey/sdk-types 0.4.0-beta.5 → 0.4.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 +8 -0
- package/dist/__generated__/types.d.ts +331 -25
- package/dist/__generated__/types.d.ts.map +1 -1
- package/dist/__inputs__/public_api.types.d.ts +373 -23
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/index.d.ts +21 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -71,7 +71,7 @@ export type externalactivityv1PolicyEvaluation = {
|
|
|
71
71
|
/** Unique identifier for the Vote associated with this policy evaluation. */
|
|
72
72
|
voteId: string;
|
|
73
73
|
/** Detailed evaluation result for each Policy that was run. */
|
|
74
|
-
policyEvaluations:
|
|
74
|
+
policyEvaluations: immutablecommonv1PolicyEvaluation[];
|
|
75
75
|
createdAt: externaldatav1Timestamp;
|
|
76
76
|
};
|
|
77
77
|
export type externaldatav1Address = {
|
|
@@ -89,24 +89,6 @@ export type externaldatav1Quorum = {
|
|
|
89
89
|
/** Unique identifiers of quorum set members. */
|
|
90
90
|
userIds: string[];
|
|
91
91
|
};
|
|
92
|
-
export type externaldatav1SmartContractInterface = {
|
|
93
|
-
/** The Organization the Smart Contract Interface belongs to. */
|
|
94
|
-
organizationId: string;
|
|
95
|
-
/** Unique identifier for a given Smart Contract Interface (ABI or IDL). */
|
|
96
|
-
smartContractInterfaceId: string;
|
|
97
|
-
/** The address corresponding to the Smart Contract or Program. */
|
|
98
|
-
smartContractAddress: string;
|
|
99
|
-
/** The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
|
|
100
|
-
smartContractInterface: string;
|
|
101
|
-
/** The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
102
|
-
type: string;
|
|
103
|
-
/** The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
104
|
-
label: string;
|
|
105
|
-
/** The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
106
|
-
notes: string;
|
|
107
|
-
createdAt: externaldatav1Timestamp;
|
|
108
|
-
updatedAt: externaldatav1Timestamp;
|
|
109
|
-
};
|
|
110
92
|
export type externaldatav1Timestamp = {
|
|
111
93
|
seconds: string;
|
|
112
94
|
nanos: string;
|
|
@@ -115,7 +97,7 @@ export type immutableactivityv1Address = {
|
|
|
115
97
|
format?: v1AddressFormat;
|
|
116
98
|
address?: string;
|
|
117
99
|
};
|
|
118
|
-
export type
|
|
100
|
+
export type immutablecommonv1PolicyEvaluation = {
|
|
119
101
|
policyId?: string;
|
|
120
102
|
outcome?: v1Outcome;
|
|
121
103
|
};
|
|
@@ -180,7 +162,7 @@ export type v1ActivityResponse = {
|
|
|
180
162
|
activity: v1Activity;
|
|
181
163
|
};
|
|
182
164
|
export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
|
|
183
|
-
export type 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";
|
|
165
|
+
export type 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";
|
|
184
166
|
export type 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";
|
|
185
167
|
export type v1ApiKey = {
|
|
186
168
|
/** A User credential that can be used to authenticate to Turnkey. */
|
|
@@ -280,6 +262,26 @@ export type v1AuthenticatorParamsV2 = {
|
|
|
280
262
|
attestation: v1Attestation;
|
|
281
263
|
};
|
|
282
264
|
export type v1AuthenticatorTransport = "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
|
|
265
|
+
export type v1BootProof = {
|
|
266
|
+
/** The hex encoded Ephemeral Public Key. */
|
|
267
|
+
ephemeralPublicKeyHex: string;
|
|
268
|
+
/** The DER encoded COSE Sign1 struct Attestation doc. */
|
|
269
|
+
awsAttestationDocB64: string;
|
|
270
|
+
/** The borsch serialized base64 encoded Manifest. */
|
|
271
|
+
qosManifestB64: string;
|
|
272
|
+
/** The borsch serialized base64 encoded Manifest Envelope. */
|
|
273
|
+
qosManifestEnvelopeB64: string;
|
|
274
|
+
/** The label under which the enclave app was deployed. */
|
|
275
|
+
deploymentLabel: string;
|
|
276
|
+
/** Name of the enclave app */
|
|
277
|
+
enclaveApp: string;
|
|
278
|
+
/** Owner of the app i.e. 'tkhq' */
|
|
279
|
+
owner: string;
|
|
280
|
+
createdAt: externaldatav1Timestamp;
|
|
281
|
+
};
|
|
282
|
+
export type v1BootProofResponse = {
|
|
283
|
+
bootProof: v1BootProof;
|
|
284
|
+
};
|
|
283
285
|
export type v1Config = {
|
|
284
286
|
features?: v1Feature[];
|
|
285
287
|
quorum?: externaldatav1Quorum;
|
|
@@ -364,6 +366,26 @@ export type v1CreateInvitationsResult = {
|
|
|
364
366
|
/** A list of Invitation IDs */
|
|
365
367
|
invitationIds: string[];
|
|
366
368
|
};
|
|
369
|
+
export type v1CreateOauth2CredentialIntent = {
|
|
370
|
+
/** The OAuth 2.0 provider */
|
|
371
|
+
provider: v1Oauth2Provider;
|
|
372
|
+
/** The Client ID issued by the OAuth 2.0 provider */
|
|
373
|
+
clientId: string;
|
|
374
|
+
/** The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
|
|
375
|
+
encryptedClientSecret: string;
|
|
376
|
+
};
|
|
377
|
+
export type v1CreateOauth2CredentialRequest = {
|
|
378
|
+
type: string;
|
|
379
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
380
|
+
timestampMs: string;
|
|
381
|
+
/** Unique identifier for a given Organization. */
|
|
382
|
+
organizationId: string;
|
|
383
|
+
parameters: v1CreateOauth2CredentialIntent;
|
|
384
|
+
};
|
|
385
|
+
export type v1CreateOauth2CredentialResult = {
|
|
386
|
+
/** Unique identifier of the OAuth 2.0 credential that was created */
|
|
387
|
+
oauth2CredentialId: string;
|
|
388
|
+
};
|
|
367
389
|
export type v1CreateOauthProvidersIntent = {
|
|
368
390
|
/** The ID of the User to add an Oauth provider to */
|
|
369
391
|
userId: string;
|
|
@@ -876,6 +898,22 @@ export type v1DeleteInvitationResult = {
|
|
|
876
898
|
/** Unique identifier for a given Invitation. */
|
|
877
899
|
invitationId: string;
|
|
878
900
|
};
|
|
901
|
+
export type v1DeleteOauth2CredentialIntent = {
|
|
902
|
+
/** The ID of the OAuth 2.0 credential to delete */
|
|
903
|
+
oauth2CredentialId: string;
|
|
904
|
+
};
|
|
905
|
+
export type v1DeleteOauth2CredentialRequest = {
|
|
906
|
+
type: string;
|
|
907
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
908
|
+
timestampMs: string;
|
|
909
|
+
/** Unique identifier for a given Organization. */
|
|
910
|
+
organizationId: string;
|
|
911
|
+
parameters: v1DeleteOauth2CredentialIntent;
|
|
912
|
+
};
|
|
913
|
+
export type v1DeleteOauth2CredentialResult = {
|
|
914
|
+
/** Unique identifier of the OAuth 2.0 credential that was deleted */
|
|
915
|
+
oauth2CredentialId: string;
|
|
916
|
+
};
|
|
879
917
|
export type v1DeleteOauthProvidersIntent = {
|
|
880
918
|
/** The ID of the User to remove an Oauth provider from */
|
|
881
919
|
userId: string;
|
|
@@ -1262,6 +1300,27 @@ export type v1GetAuthenticatorsResponse = {
|
|
|
1262
1300
|
/** A list of authenticators. */
|
|
1263
1301
|
authenticators: v1Authenticator[];
|
|
1264
1302
|
};
|
|
1303
|
+
export type v1GetBootProofRequest = {
|
|
1304
|
+
/** Unique identifier for a given Organization. */
|
|
1305
|
+
organizationId: string;
|
|
1306
|
+
/** Hex encoded ephemeral public key. */
|
|
1307
|
+
ephemeralKey: string;
|
|
1308
|
+
};
|
|
1309
|
+
export type v1GetLatestBootProofRequest = {
|
|
1310
|
+
/** Unique identifier for a given Organization. */
|
|
1311
|
+
organizationId: string;
|
|
1312
|
+
/** Name of enclave app. */
|
|
1313
|
+
appName: string;
|
|
1314
|
+
};
|
|
1315
|
+
export type v1GetOauth2CredentialRequest = {
|
|
1316
|
+
/** Unique identifier for a given Organization. */
|
|
1317
|
+
organizationId: string;
|
|
1318
|
+
/** Unique identifier for a given OAuth 2.0 Credential. */
|
|
1319
|
+
oauth2CredentialId: string;
|
|
1320
|
+
};
|
|
1321
|
+
export type v1GetOauth2CredentialResponse = {
|
|
1322
|
+
oauth2Credential: v1Oauth2Credential;
|
|
1323
|
+
};
|
|
1265
1324
|
export type v1GetOauthProvidersRequest = {
|
|
1266
1325
|
/** Unique identifier for a given organization. */
|
|
1267
1326
|
organizationId: string;
|
|
@@ -1341,7 +1400,7 @@ export type v1GetSmartContractInterfaceRequest = {
|
|
|
1341
1400
|
};
|
|
1342
1401
|
export type v1GetSmartContractInterfaceResponse = {
|
|
1343
1402
|
/** Object to be used in conjunction with policies to guard transaction signing. */
|
|
1344
|
-
smartContractInterface:
|
|
1403
|
+
smartContractInterface: v1SmartContractInterface;
|
|
1345
1404
|
};
|
|
1346
1405
|
export type v1GetSmartContractInterfacesRequest = {
|
|
1347
1406
|
/** Unique identifier for a given organization. */
|
|
@@ -1349,7 +1408,7 @@ export type v1GetSmartContractInterfacesRequest = {
|
|
|
1349
1408
|
};
|
|
1350
1409
|
export type v1GetSmartContractInterfacesResponse = {
|
|
1351
1410
|
/** A list of smart contract interfaces. */
|
|
1352
|
-
smartContractInterfaces:
|
|
1411
|
+
smartContractInterfaces: v1SmartContractInterface[];
|
|
1353
1412
|
};
|
|
1354
1413
|
export type v1GetSubOrgIdsRequest = {
|
|
1355
1414
|
/** Unique identifier for the parent organization. This is used to find sub-organizations within it. */
|
|
@@ -1529,6 +1588,8 @@ export type v1InitFiatOnRampIntent = {
|
|
|
1529
1588
|
countrySubdivisionCode?: string;
|
|
1530
1589
|
/** Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
|
|
1531
1590
|
sandboxMode?: boolean;
|
|
1591
|
+
/** Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled. */
|
|
1592
|
+
urlForSignature?: string;
|
|
1532
1593
|
};
|
|
1533
1594
|
export type v1InitFiatOnRampRequest = {
|
|
1534
1595
|
type: string;
|
|
@@ -1543,6 +1604,8 @@ export type v1InitFiatOnRampResult = {
|
|
|
1543
1604
|
onRampUrl: string;
|
|
1544
1605
|
/** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
|
|
1545
1606
|
onRampTransactionId: string;
|
|
1607
|
+
/** Optional signature of the MoonPay Widget URL. The signature is generated if the Init Fiat On Ramp intent includes the urlForSignature field. The signature can be used to initialize the MoonPay SDKs when URL signing is enabled for your project. */
|
|
1608
|
+
onRampUrlSignature?: string;
|
|
1546
1609
|
};
|
|
1547
1610
|
export type v1InitImportPrivateKeyIntent = {
|
|
1548
1611
|
/** The ID of the User importing a Private Key. */
|
|
@@ -1788,6 +1851,10 @@ export type v1Intent = {
|
|
|
1788
1851
|
enableAuthProxyIntent?: v1EnableAuthProxyIntent;
|
|
1789
1852
|
disableAuthProxyIntent?: v1DisableAuthProxyIntent;
|
|
1790
1853
|
updateAuthProxyConfigIntent?: v1UpdateAuthProxyConfigIntent;
|
|
1854
|
+
createOauth2CredentialIntent?: v1CreateOauth2CredentialIntent;
|
|
1855
|
+
updateOauth2CredentialIntent?: v1UpdateOauth2CredentialIntent;
|
|
1856
|
+
deleteOauth2CredentialIntent?: v1DeleteOauth2CredentialIntent;
|
|
1857
|
+
oauth2AuthenticateIntent?: v1Oauth2AuthenticateIntent;
|
|
1791
1858
|
};
|
|
1792
1859
|
export type v1Invitation = {
|
|
1793
1860
|
/** Unique identifier for a given Invitation object. */
|
|
@@ -1820,6 +1887,13 @@ export type v1InvitationParams = {
|
|
|
1820
1887
|
senderUserId: string;
|
|
1821
1888
|
};
|
|
1822
1889
|
export type v1InvitationStatus = "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
|
|
1890
|
+
export type v1ListOauth2CredentialsRequest = {
|
|
1891
|
+
/** Unique identifier for a given Organization. */
|
|
1892
|
+
organizationId: string;
|
|
1893
|
+
};
|
|
1894
|
+
export type v1ListOauth2CredentialsResponse = {
|
|
1895
|
+
oauth2Credentials: v1Oauth2Credential[];
|
|
1896
|
+
};
|
|
1823
1897
|
export type v1ListPrivateKeyTagsRequest = {
|
|
1824
1898
|
/** Unique identifier for a given organization. */
|
|
1825
1899
|
organizationId: string;
|
|
@@ -1840,6 +1914,45 @@ export type v1MnemonicLanguage = "MNEMONIC_LANGUAGE_ENGLISH" | "MNEMONIC_LANGUAG
|
|
|
1840
1914
|
export type v1NOOPCodegenAnchorResponse = {
|
|
1841
1915
|
stamp: v1WebAuthnStamp;
|
|
1842
1916
|
};
|
|
1917
|
+
export type v1Oauth2AuthenticateIntent = {
|
|
1918
|
+
/** The OAuth 2.0 credential id whose client_id and client_secret will be used in the OAuth 2.0 flow */
|
|
1919
|
+
oauth2CredentialId: string;
|
|
1920
|
+
/** 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 */
|
|
1921
|
+
authCode: string;
|
|
1922
|
+
/** The URI the user is redirected to after they have authenticated with the OAuth 2.0 provider */
|
|
1923
|
+
redirectUri: string;
|
|
1924
|
+
/** The code verifier used by OAuth 2.0 PKCE providers */
|
|
1925
|
+
codeVerifier: string;
|
|
1926
|
+
/** An optional nonce used by the client to prevent replay/substitution of an ID token */
|
|
1927
|
+
nonce?: string;
|
|
1928
|
+
};
|
|
1929
|
+
export type v1Oauth2AuthenticateRequest = {
|
|
1930
|
+
type: string;
|
|
1931
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1932
|
+
timestampMs: string;
|
|
1933
|
+
/** Unique identifier for a given Organization. */
|
|
1934
|
+
organizationId: string;
|
|
1935
|
+
parameters: v1Oauth2AuthenticateIntent;
|
|
1936
|
+
};
|
|
1937
|
+
export type v1Oauth2AuthenticateResult = {
|
|
1938
|
+
/** Base64 encoded OIDC token issued by Turnkey to be used with the LoginWithOAuth activity */
|
|
1939
|
+
oidcToken: string;
|
|
1940
|
+
};
|
|
1941
|
+
export type v1Oauth2Credential = {
|
|
1942
|
+
/** Unique identifier for a given OAuth 2.0 Credential. */
|
|
1943
|
+
oauth2CredentialId: string;
|
|
1944
|
+
/** Unique identifier for an Organization. */
|
|
1945
|
+
organizationId: string;
|
|
1946
|
+
/** The provider for a given OAuth 2.0 Credential. */
|
|
1947
|
+
provider: v1Oauth2Provider;
|
|
1948
|
+
/** The client id for a given OAuth 2.0 Credential. */
|
|
1949
|
+
clientId: string;
|
|
1950
|
+
/** The encrypted client secret for a given OAuth 2.0 Credential encrypted to the TLS Fetcher quorum key. */
|
|
1951
|
+
encryptedClientSecret: string;
|
|
1952
|
+
createdAt: externaldatav1Timestamp;
|
|
1953
|
+
updatedAt: externaldatav1Timestamp;
|
|
1954
|
+
};
|
|
1955
|
+
export type v1Oauth2Provider = "OAUTH2_PROVIDER_X" | "OAUTH2_PROVIDER_DISCORD";
|
|
1843
1956
|
export type v1OauthIntent = {
|
|
1844
1957
|
/** Base64 encoded OIDC token */
|
|
1845
1958
|
oidcToken: string;
|
|
@@ -2174,6 +2287,10 @@ export type v1Result = {
|
|
|
2174
2287
|
enableAuthProxyResult?: v1EnableAuthProxyResult;
|
|
2175
2288
|
disableAuthProxyResult?: v1DisableAuthProxyResult;
|
|
2176
2289
|
updateAuthProxyConfigResult?: v1UpdateAuthProxyConfigResult;
|
|
2290
|
+
createOauth2CredentialResult?: v1CreateOauth2CredentialResult;
|
|
2291
|
+
updateOauth2CredentialResult?: v1UpdateOauth2CredentialResult;
|
|
2292
|
+
deleteOauth2CredentialResult?: v1DeleteOauth2CredentialResult;
|
|
2293
|
+
oauth2AuthenticateResult?: v1Oauth2AuthenticateResult;
|
|
2177
2294
|
};
|
|
2178
2295
|
export type v1RootUserParams = {
|
|
2179
2296
|
/** Human-readable name for a User. */
|
|
@@ -2338,6 +2455,24 @@ export type v1SimpleClientExtensionResults = {
|
|
|
2338
2455
|
appidExclude?: boolean;
|
|
2339
2456
|
credProps?: v1CredPropsAuthenticationExtensionsClientOutputs;
|
|
2340
2457
|
};
|
|
2458
|
+
export type v1SmartContractInterface = {
|
|
2459
|
+
/** The Organization the Smart Contract Interface belongs to. */
|
|
2460
|
+
organizationId: string;
|
|
2461
|
+
/** Unique identifier for a given Smart Contract Interface (ABI or IDL). */
|
|
2462
|
+
smartContractInterfaceId: string;
|
|
2463
|
+
/** The address corresponding to the Smart Contract or Program. */
|
|
2464
|
+
smartContractAddress: string;
|
|
2465
|
+
/** The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
|
|
2466
|
+
smartContractInterface: string;
|
|
2467
|
+
/** The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
2468
|
+
type: string;
|
|
2469
|
+
/** The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
2470
|
+
label: string;
|
|
2471
|
+
/** The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
|
|
2472
|
+
notes: string;
|
|
2473
|
+
createdAt: externaldatav1Timestamp;
|
|
2474
|
+
updatedAt: externaldatav1Timestamp;
|
|
2475
|
+
};
|
|
2341
2476
|
export type v1SmartContractInterfaceReference = {
|
|
2342
2477
|
smartContractInterfaceId?: string;
|
|
2343
2478
|
smartContractAddress?: string;
|
|
@@ -2418,6 +2553,28 @@ export type v1UpdateAuthProxyConfigResult = {
|
|
|
2418
2553
|
/** Unique identifier for a given User. (representing the turnkey signer user id) */
|
|
2419
2554
|
configId?: string;
|
|
2420
2555
|
};
|
|
2556
|
+
export type v1UpdateOauth2CredentialIntent = {
|
|
2557
|
+
/** The ID of the OAuth 2.0 credential to update */
|
|
2558
|
+
oauth2CredentialId: string;
|
|
2559
|
+
/** The OAuth 2.0 provider */
|
|
2560
|
+
provider: v1Oauth2Provider;
|
|
2561
|
+
/** The Client ID issued by the OAuth 2.0 provider */
|
|
2562
|
+
clientId: string;
|
|
2563
|
+
/** The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
|
|
2564
|
+
encryptedClientSecret: string;
|
|
2565
|
+
};
|
|
2566
|
+
export type v1UpdateOauth2CredentialRequest = {
|
|
2567
|
+
type: string;
|
|
2568
|
+
/** Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
2569
|
+
timestampMs: string;
|
|
2570
|
+
/** Unique identifier for a given Organization. */
|
|
2571
|
+
organizationId: string;
|
|
2572
|
+
parameters: v1UpdateOauth2CredentialIntent;
|
|
2573
|
+
};
|
|
2574
|
+
export type v1UpdateOauth2CredentialResult = {
|
|
2575
|
+
/** Unique identifier of the OAuth 2.0 credential that was updated */
|
|
2576
|
+
oauth2CredentialId: string;
|
|
2577
|
+
};
|
|
2421
2578
|
export type v1UpdatePolicyIntent = {
|
|
2422
2579
|
/** Unique identifier for a given Policy. */
|
|
2423
2580
|
policyId: string;
|
|
@@ -2772,6 +2929,10 @@ export type v1WalletAccountParams = {
|
|
|
2772
2929
|
export type v1WalletKitSettingsParams = {
|
|
2773
2930
|
/** List of enabled social login providers (e.g., 'apple', 'google', 'facebook') */
|
|
2774
2931
|
enabledSocialProviders?: string[];
|
|
2932
|
+
/** Mapping of social login providers to their Oauth client IDs. */
|
|
2933
|
+
oauthClientIds?: Record<string, any>;
|
|
2934
|
+
/** Oauth redirect URL to be used for social login flows. */
|
|
2935
|
+
oauthRedirectUrl?: string;
|
|
2775
2936
|
};
|
|
2776
2937
|
export type v1WalletParams = {
|
|
2777
2938
|
/** Human-readable name for a Wallet. */
|
|
@@ -2868,6 +3029,39 @@ export type TGetAuthenticatorsBody = {
|
|
|
2868
3029
|
export type TGetAuthenticatorsInput = {
|
|
2869
3030
|
body: TGetAuthenticatorsBody;
|
|
2870
3031
|
};
|
|
3032
|
+
export type TGetBootProofResponse = {
|
|
3033
|
+
bootProof: v1BootProof;
|
|
3034
|
+
};
|
|
3035
|
+
export type TGetBootProofBody = {
|
|
3036
|
+
organizationId?: string;
|
|
3037
|
+
/** Hex encoded ephemeral public key. */
|
|
3038
|
+
ephemeralKey: string;
|
|
3039
|
+
};
|
|
3040
|
+
export type TGetBootProofInput = {
|
|
3041
|
+
body: TGetBootProofBody;
|
|
3042
|
+
};
|
|
3043
|
+
export type TGetLatestBootProofResponse = {
|
|
3044
|
+
bootProof: v1BootProof;
|
|
3045
|
+
};
|
|
3046
|
+
export type TGetLatestBootProofBody = {
|
|
3047
|
+
organizationId?: string;
|
|
3048
|
+
/** Name of enclave app. */
|
|
3049
|
+
appName: string;
|
|
3050
|
+
};
|
|
3051
|
+
export type TGetLatestBootProofInput = {
|
|
3052
|
+
body: TGetLatestBootProofBody;
|
|
3053
|
+
};
|
|
3054
|
+
export type TGetOauth2CredentialResponse = {
|
|
3055
|
+
oauth2Credential: v1Oauth2Credential;
|
|
3056
|
+
};
|
|
3057
|
+
export type TGetOauth2CredentialBody = {
|
|
3058
|
+
organizationId?: string;
|
|
3059
|
+
/** Unique identifier for a given OAuth 2.0 Credential. */
|
|
3060
|
+
oauth2CredentialId: string;
|
|
3061
|
+
};
|
|
3062
|
+
export type TGetOauth2CredentialInput = {
|
|
3063
|
+
body: TGetOauth2CredentialBody;
|
|
3064
|
+
};
|
|
2871
3065
|
export type TGetOauthProvidersResponse = {
|
|
2872
3066
|
/** A list of Oauth providers. */
|
|
2873
3067
|
oauthProviders: v1OauthProvider[];
|
|
@@ -2937,7 +3131,7 @@ export type TGetPrivateKeyInput = {
|
|
|
2937
3131
|
};
|
|
2938
3132
|
export type TGetSmartContractInterfaceResponse = {
|
|
2939
3133
|
/** Object to be used in conjunction with policies to guard transaction signing. */
|
|
2940
|
-
smartContractInterface:
|
|
3134
|
+
smartContractInterface: v1SmartContractInterface;
|
|
2941
3135
|
};
|
|
2942
3136
|
export type TGetSmartContractInterfaceBody = {
|
|
2943
3137
|
organizationId?: string;
|
|
@@ -3003,6 +3197,15 @@ export type TGetActivitiesBody = {
|
|
|
3003
3197
|
export type TGetActivitiesInput = {
|
|
3004
3198
|
body: TGetActivitiesBody;
|
|
3005
3199
|
};
|
|
3200
|
+
export type TListOauth2CredentialsResponse = {
|
|
3201
|
+
oauth2Credentials: v1Oauth2Credential[];
|
|
3202
|
+
};
|
|
3203
|
+
export type TListOauth2CredentialsBody = {
|
|
3204
|
+
organizationId?: string;
|
|
3205
|
+
};
|
|
3206
|
+
export type TListOauth2CredentialsInput = {
|
|
3207
|
+
body: TListOauth2CredentialsBody;
|
|
3208
|
+
};
|
|
3006
3209
|
export type TGetPoliciesResponse = {
|
|
3007
3210
|
/** A list of policies. */
|
|
3008
3211
|
policies: v1Policy[];
|
|
@@ -3035,7 +3238,7 @@ export type TGetPrivateKeysInput = {
|
|
|
3035
3238
|
};
|
|
3036
3239
|
export type TGetSmartContractInterfacesResponse = {
|
|
3037
3240
|
/** A list of smart contract interfaces. */
|
|
3038
|
-
smartContractInterfaces:
|
|
3241
|
+
smartContractInterfaces: v1SmartContractInterface[];
|
|
3039
3242
|
};
|
|
3040
3243
|
export type TGetSmartContractInterfacesBody = {
|
|
3041
3244
|
organizationId?: string;
|
|
@@ -3209,6 +3412,24 @@ export type TCreateInvitationsBody = {
|
|
|
3209
3412
|
export type TCreateInvitationsInput = {
|
|
3210
3413
|
body: TCreateInvitationsBody;
|
|
3211
3414
|
};
|
|
3415
|
+
export type TCreateOauth2CredentialResponse = {
|
|
3416
|
+
activity: v1Activity;
|
|
3417
|
+
/** Unique identifier of the OAuth 2.0 credential that was created */
|
|
3418
|
+
oauth2CredentialId: string;
|
|
3419
|
+
};
|
|
3420
|
+
export type TCreateOauth2CredentialBody = {
|
|
3421
|
+
timestampMs?: string;
|
|
3422
|
+
organizationId?: string;
|
|
3423
|
+
/** The OAuth 2.0 provider */
|
|
3424
|
+
provider: v1Oauth2Provider;
|
|
3425
|
+
/** The Client ID issued by the OAuth 2.0 provider */
|
|
3426
|
+
clientId: string;
|
|
3427
|
+
/** The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
|
|
3428
|
+
encryptedClientSecret: string;
|
|
3429
|
+
};
|
|
3430
|
+
export type TCreateOauth2CredentialInput = {
|
|
3431
|
+
body: TCreateOauth2CredentialBody;
|
|
3432
|
+
};
|
|
3212
3433
|
export type TCreateOauthProvidersResponse = {
|
|
3213
3434
|
activity: v1Activity;
|
|
3214
3435
|
/** A list of unique identifiers for Oauth Providers */
|
|
@@ -3512,6 +3733,20 @@ export type TDeleteInvitationBody = {
|
|
|
3512
3733
|
export type TDeleteInvitationInput = {
|
|
3513
3734
|
body: TDeleteInvitationBody;
|
|
3514
3735
|
};
|
|
3736
|
+
export type TDeleteOauth2CredentialResponse = {
|
|
3737
|
+
activity: v1Activity;
|
|
3738
|
+
/** Unique identifier of the OAuth 2.0 credential that was deleted */
|
|
3739
|
+
oauth2CredentialId: string;
|
|
3740
|
+
};
|
|
3741
|
+
export type TDeleteOauth2CredentialBody = {
|
|
3742
|
+
timestampMs?: string;
|
|
3743
|
+
organizationId?: string;
|
|
3744
|
+
/** The ID of the OAuth 2.0 credential to delete */
|
|
3745
|
+
oauth2CredentialId: string;
|
|
3746
|
+
};
|
|
3747
|
+
export type TDeleteOauth2CredentialInput = {
|
|
3748
|
+
body: TDeleteOauth2CredentialBody;
|
|
3749
|
+
};
|
|
3515
3750
|
export type TDeleteOauthProvidersResponse = {
|
|
3516
3751
|
activity: v1Activity;
|
|
3517
3752
|
/** A list of unique identifiers for Oauth Providers */
|
|
@@ -3788,6 +4023,8 @@ export type TInitFiatOnRampResponse = {
|
|
|
3788
4023
|
onRampUrl: string;
|
|
3789
4024
|
/** Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
|
|
3790
4025
|
onRampTransactionId: string;
|
|
4026
|
+
/** Optional signature of the MoonPay Widget URL. The signature is generated if the Init Fiat On Ramp intent includes the urlForSignature field. The signature can be used to initialize the MoonPay SDKs when URL signing is enabled for your project. */
|
|
4027
|
+
onRampUrlSignature?: string;
|
|
3791
4028
|
};
|
|
3792
4029
|
export type TInitFiatOnRampBody = {
|
|
3793
4030
|
timestampMs?: string;
|
|
@@ -3812,6 +4049,8 @@ export type TInitFiatOnRampBody = {
|
|
|
3812
4049
|
countrySubdivisionCode?: string;
|
|
3813
4050
|
/** Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
|
|
3814
4051
|
sandboxMode?: boolean;
|
|
4052
|
+
/** Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled. */
|
|
4053
|
+
urlForSignature?: string;
|
|
3815
4054
|
};
|
|
3816
4055
|
export type TInitFiatOnRampInput = {
|
|
3817
4056
|
body: TInitFiatOnRampBody;
|
|
@@ -3956,6 +4195,28 @@ export type TOauthBody = {
|
|
|
3956
4195
|
export type TOauthInput = {
|
|
3957
4196
|
body: TOauthBody;
|
|
3958
4197
|
};
|
|
4198
|
+
export type TOauth2AuthenticateResponse = {
|
|
4199
|
+
activity: v1Activity;
|
|
4200
|
+
/** Base64 encoded OIDC token issued by Turnkey to be used with the LoginWithOAuth activity */
|
|
4201
|
+
oidcToken: string;
|
|
4202
|
+
};
|
|
4203
|
+
export type TOauth2AuthenticateBody = {
|
|
4204
|
+
timestampMs?: string;
|
|
4205
|
+
organizationId?: string;
|
|
4206
|
+
/** The OAuth 2.0 credential id whose client_id and client_secret will be used in the OAuth 2.0 flow */
|
|
4207
|
+
oauth2CredentialId: string;
|
|
4208
|
+
/** 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 */
|
|
4209
|
+
authCode: string;
|
|
4210
|
+
/** The URI the user is redirected to after they have authenticated with the OAuth 2.0 provider */
|
|
4211
|
+
redirectUri: string;
|
|
4212
|
+
/** The code verifier used by OAuth 2.0 PKCE providers */
|
|
4213
|
+
codeVerifier: string;
|
|
4214
|
+
/** An optional nonce used by the client to prevent replay/substitution of an ID token */
|
|
4215
|
+
nonce?: string;
|
|
4216
|
+
};
|
|
4217
|
+
export type TOauth2AuthenticateInput = {
|
|
4218
|
+
body: TOauth2AuthenticateBody;
|
|
4219
|
+
};
|
|
3959
4220
|
export type TOauthLoginResponse = {
|
|
3960
4221
|
activity: v1Activity;
|
|
3961
4222
|
/** Signed JWT containing an expiry, public key, session type, user id, and organization id */
|
|
@@ -4159,6 +4420,26 @@ export type TStampLoginBody = {
|
|
|
4159
4420
|
export type TStampLoginInput = {
|
|
4160
4421
|
body: TStampLoginBody;
|
|
4161
4422
|
};
|
|
4423
|
+
export type TUpdateOauth2CredentialResponse = {
|
|
4424
|
+
activity: v1Activity;
|
|
4425
|
+
/** Unique identifier of the OAuth 2.0 credential that was updated */
|
|
4426
|
+
oauth2CredentialId: string;
|
|
4427
|
+
};
|
|
4428
|
+
export type TUpdateOauth2CredentialBody = {
|
|
4429
|
+
timestampMs?: string;
|
|
4430
|
+
organizationId?: string;
|
|
4431
|
+
/** The ID of the OAuth 2.0 credential to update */
|
|
4432
|
+
oauth2CredentialId: string;
|
|
4433
|
+
/** The OAuth 2.0 provider */
|
|
4434
|
+
provider: v1Oauth2Provider;
|
|
4435
|
+
/** The Client ID issued by the OAuth 2.0 provider */
|
|
4436
|
+
clientId: string;
|
|
4437
|
+
/** The client secret issued by the OAuth 2.0 provider encrypted to the TLS Fetcher quorum key */
|
|
4438
|
+
encryptedClientSecret: string;
|
|
4439
|
+
};
|
|
4440
|
+
export type TUpdateOauth2CredentialInput = {
|
|
4441
|
+
body: TUpdateOauth2CredentialBody;
|
|
4442
|
+
};
|
|
4162
4443
|
export type TUpdatePolicyResponse = {
|
|
4163
4444
|
activity: v1Activity;
|
|
4164
4445
|
/** Unique identifier for a given Policy. */
|
|
@@ -4371,6 +4652,27 @@ export type ProxyTGetAccountBody = {
|
|
|
4371
4652
|
export type ProxyTGetAccountInput = {
|
|
4372
4653
|
body: ProxyTGetAccountBody;
|
|
4373
4654
|
};
|
|
4655
|
+
export type ProxyTOAuth2AuthenticateResponse = {
|
|
4656
|
+
/** A Turnkey issued OIDC token to be used with the LoginWithOAuth activity */
|
|
4657
|
+
oidcToken: string;
|
|
4658
|
+
};
|
|
4659
|
+
export type ProxyTOAuth2AuthenticateBody = {
|
|
4660
|
+
/** The OAuth 2.0 provider to authenticate with */
|
|
4661
|
+
provider: v1Oauth2Provider;
|
|
4662
|
+
/** The auth_code provided by the OAuth 2.0 to the end user to be exchanged for a Bearer token in the OAuth 2.0 flow */
|
|
4663
|
+
authCode: string;
|
|
4664
|
+
/** The URI the user is redirected to after they have authenticated with the OAuth 2.0 provider */
|
|
4665
|
+
redirectUri: string;
|
|
4666
|
+
/** The code verifier used by OAuth 2.0 PKCE providers */
|
|
4667
|
+
codeVerifier: string;
|
|
4668
|
+
/** An optional nonce used by the client to prevent replay/substitution of an ID token */
|
|
4669
|
+
nonce?: string;
|
|
4670
|
+
/** The client ID registered with the OAuth 2.0 provider */
|
|
4671
|
+
clientId: string;
|
|
4672
|
+
};
|
|
4673
|
+
export type ProxyTOAuth2AuthenticateInput = {
|
|
4674
|
+
body: ProxyTOAuth2AuthenticateBody;
|
|
4675
|
+
};
|
|
4374
4676
|
export type ProxyTOAuthLoginResponse = {
|
|
4375
4677
|
/** Signed JWT containing an expiry, public key, session type, user id, and organization id */
|
|
4376
4678
|
session: string;
|
|
@@ -4456,6 +4758,10 @@ export type ProxyTGetWalletKitConfigResponse = {
|
|
|
4456
4758
|
sessionExpirationSeconds: string;
|
|
4457
4759
|
/** The organization ID this configuration applies to */
|
|
4458
4760
|
organizationId: string;
|
|
4761
|
+
/** Mapping of social login providers to their OAuth client IDs. */
|
|
4762
|
+
oauthClientIds?: Record<string, any>;
|
|
4763
|
+
/** OAuth redirect URL to be used for social login flows. */
|
|
4764
|
+
oauthRedirectUrl?: string;
|
|
4459
4765
|
};
|
|
4460
4766
|
export type ProxyTGetWalletKitConfigBody = {};
|
|
4461
4767
|
export type ProxyTGetWalletKitConfigInput = {
|