@turnkey/sdk-types 0.10.0 → 0.11.1

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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # @turnkey/sdk-types
2
2
 
3
+ ## 0.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1135](https://github.com/tkhq/sdk/pull/1135) [`91d6a9e`](https://github.com/tkhq/sdk/commit/91d6a9eb1b9ac9e21745749615ac7a7be66f5cf6) Author [@ethankonk](https://github.com/ethankonk) - - Synced with `mono` v2025.12.2
8
+
9
+ ## 0.11.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1153](https://github.com/tkhq/sdk/pull/1153) [`78ec1d9`](https://github.com/tkhq/sdk/commit/78ec1d9afcafde3ca7107fc720323d486d6afaea) Thanks [@moe-dev](https://github.com/moe-dev)! - Update as per mono v2025.12.3.
14
+
15
+ ### Behavioral Changes
16
+ - `appName` is now **required**:
17
+ - In `emailCustomization` for Email Auth activities
18
+ - At the top-level intent for OTP activities
19
+ - Auth proxy endpoints are **not affected**
20
+
21
+ ### Activity Version Bumps
22
+
23
+ The following activity types have been versioned:
24
+ - `ACTIVITY_TYPE_INIT_OTP` → `ACTIVITY_TYPE_INIT_OTP_V2`
25
+ - `ACTIVITY_TYPE_INIT_OTP_AUTH_V2` → `ACTIVITY_TYPE_INIT_OTP_V3`
26
+ - `ACTIVITY_TYPE_EMAIL_AUTH_V2` → `ACTIVITY_TYPE_EMAIL_AUTH_V3`
27
+ - `ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY` -> `ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2`
28
+
3
29
  ## 0.10.0
4
30
 
5
31
  ### Minor Changes
@@ -183,7 +183,7 @@ export type v1ActivityResponse = {
183
183
  activity: v1Activity;
184
184
  };
185
185
  export type v1ActivityStatus = "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
186
- 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" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2";
186
+ 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" | "ACTIVITY_TYPE_DELETE_WALLET_ACCOUNTS" | "ACTIVITY_TYPE_DELETE_POLICIES" | "ACTIVITY_TYPE_ETH_SEND_RAW_TRANSACTION" | "ACTIVITY_TYPE_ETH_SEND_TRANSACTION" | "ACTIVITY_TYPE_CREATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_UPDATE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_DELETE_FIAT_ON_RAMP_CREDENTIAL" | "ACTIVITY_TYPE_EMAIL_AUTH_V3" | "ACTIVITY_TYPE_INIT_USER_EMAIL_RECOVERY_V2" | "ACTIVITY_TYPE_INIT_OTP_AUTH_V3" | "ACTIVITY_TYPE_INIT_OTP_V2" | "ACTIVITY_TYPE_UPSERT_GAS_USAGE_CONFIG";
187
187
  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";
188
188
  export type v1ApiKey = {
189
189
  /** A User credential that can be used to authenticate to Turnkey. */
@@ -548,7 +548,8 @@ export type v1CreatePolicyIntentV3 = {
548
548
  condition?: string;
549
549
  /** The consensus expression that triggers the Effect */
550
550
  consensus?: string;
551
- notes?: string;
551
+ /** Notes for a Policy. */
552
+ notes: string;
552
553
  };
553
554
  export type v1CreatePolicyRequest = {
554
555
  type: string;
@@ -1245,6 +1246,18 @@ export type v1DisablePrivateKeyResult = {
1245
1246
  privateKeyId: string;
1246
1247
  };
1247
1248
  export type v1Effect = "EFFECT_ALLOW" | "EFFECT_DENY";
1249
+ export type v1EmailAuthCustomizationParams = {
1250
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
1251
+ appName: string;
1252
+ /** A URL pointing to a logo in PNG format. Note this logo will be resized to fit into 340px x 124px. */
1253
+ logoUrl?: string;
1254
+ /** A template for the URL to be used in a magic link button, e.g. `https://dapp.xyz/%s`. The auth bundle will be interpolated into the `%s`. */
1255
+ magicLinkTemplate?: string;
1256
+ /** JSON object containing key/value pairs to be used with custom templates. */
1257
+ templateVariables?: string;
1258
+ /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1259
+ templateId?: string;
1260
+ };
1248
1261
  export type v1EmailAuthIntent = {
1249
1262
  /** Email of the authenticating user. */
1250
1263
  email: string;
@@ -1290,14 +1303,12 @@ export type v1EmailAuthIntentV3 = {
1290
1303
  email: string;
1291
1304
  /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
1292
1305
  targetPublicKey: string;
1293
- /** The name of the application. */
1294
- appName: string;
1295
1306
  /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
1296
1307
  apiKeyName?: string;
1297
1308
  /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
1298
1309
  expirationSeconds?: string;
1299
- /** Optional parameters for customizing emails. If not provided, the default email will be used. */
1300
- emailCustomization?: v1EmailCustomizationParams;
1310
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that app_name is required. */
1311
+ emailCustomization: v1EmailAuthCustomizationParams;
1301
1312
  /** Invalidate all other previously generated Email Auth API keys */
1302
1313
  invalidateExisting?: boolean;
1303
1314
  /** Optional custom email address from which to send the email */
@@ -1334,6 +1345,16 @@ export type v1EmailCustomizationParams = {
1334
1345
  /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1335
1346
  templateId?: string;
1336
1347
  };
1348
+ export type v1EmailCustomizationParamsV2 = {
1349
+ /** A URL pointing to a logo in PNG format. Note this logo will be resized to fit into 340px x 124px. */
1350
+ logoUrl?: string;
1351
+ /** A template for the URL to be used in a magic link button, e.g. `https://dapp.xyz/%s`. The auth bundle will be interpolated into the `%s`. */
1352
+ magicLinkTemplate?: string;
1353
+ /** JSON object containing key/value pairs to be used with custom templates. */
1354
+ templateVariables?: string;
1355
+ /** Unique identifier for a given Email Template. If not specified, the default is the most recent Email Template. */
1356
+ templateId?: string;
1357
+ };
1337
1358
  export type v1EnableAuthProxyIntent = {};
1338
1359
  export type v1EnableAuthProxyResult = {
1339
1360
  /** A User ID with permission to initiate authentication. */
@@ -2000,7 +2021,7 @@ export type v1InitOtpAuthIntentV2 = {
2000
2021
  otpLength?: number;
2001
2022
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2002
2023
  emailCustomization?: v1EmailCustomizationParams;
2003
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
2024
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
2004
2025
  smsCustomization?: v1SmsCustomizationParams;
2005
2026
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
2006
2027
  userIdentifier?: string;
@@ -2014,17 +2035,17 @@ export type v1InitOtpAuthIntentV2 = {
2014
2035
  replyToEmailAddress?: string;
2015
2036
  };
2016
2037
  export type v1InitOtpAuthIntentV3 = {
2017
- /** Enum to specifiy whether to send OTP via SMS or email */
2038
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
2018
2039
  otpType: string;
2019
2040
  /** Email or phone number to send the OTP code to */
2020
2041
  contact: string;
2021
- /** The name of the application. */
2022
- appName: string;
2023
2042
  /** Optional length of the OTP code. Default = 9 */
2024
2043
  otpLength?: number;
2044
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
2045
+ appName: string;
2025
2046
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2026
- emailCustomization?: v1EmailCustomizationParams;
2027
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
2047
+ emailCustomization?: v1EmailCustomizationParamsV2;
2048
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
2028
2049
  smsCustomization?: v1SmsCustomizationParams;
2029
2050
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
2030
2051
  userIdentifier?: string;
@@ -2034,6 +2055,8 @@ export type v1InitOtpAuthIntentV3 = {
2034
2055
  alphanumeric?: boolean;
2035
2056
  /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
2036
2057
  sendFromEmailSenderName?: string;
2058
+ /** Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
2059
+ expirationSeconds?: string;
2037
2060
  /** Optional custom email address to use as reply-to */
2038
2061
  replyToEmailAddress?: string;
2039
2062
  };
@@ -2083,13 +2106,13 @@ export type v1InitOtpIntentV2 = {
2083
2106
  otpType: string;
2084
2107
  /** Email or phone number to send the OTP code to */
2085
2108
  contact: string;
2086
- /** The name of the application. */
2087
- appName: string;
2088
2109
  /** Optional length of the OTP code. Default = 9 */
2089
2110
  otpLength?: number;
2111
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
2112
+ appName: string;
2090
2113
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2091
- emailCustomization?: v1EmailCustomizationParams;
2092
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
2114
+ emailCustomization?: v1EmailCustomizationParamsV2;
2115
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
2093
2116
  smsCustomization?: v1SmsCustomizationParams;
2094
2117
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
2095
2118
  userIdentifier?: string;
@@ -2138,12 +2161,10 @@ export type v1InitUserEmailRecoveryIntentV2 = {
2138
2161
  email: string;
2139
2162
  /** Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
2140
2163
  targetPublicKey: string;
2141
- /** The name of the application. */
2142
- appName: string;
2143
2164
  /** Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
2144
2165
  expirationSeconds?: string;
2145
- /** Optional parameters for customizing emails. If not provided, the default email will be used. */
2146
- emailCustomization?: v1EmailCustomizationParams;
2166
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that `app_name` is required. */
2167
+ emailCustomization: v1EmailAuthCustomizationParams;
2147
2168
  /** Optional custom email address from which to send the OTP email */
2148
2169
  sendFromEmailAddress?: string;
2149
2170
  /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
@@ -2277,6 +2298,7 @@ export type v1Intent = {
2277
2298
  initUserEmailRecoveryIntentV2?: v1InitUserEmailRecoveryIntentV2;
2278
2299
  initOtpIntentV2?: v1InitOtpIntentV2;
2279
2300
  initOtpAuthIntentV3?: v1InitOtpAuthIntentV3;
2301
+ upsertGasUsageConfigIntent?: v1UpsertGasUsageConfigIntent;
2280
2302
  };
2281
2303
  export type v1Invitation = {
2282
2304
  /** Unique identifier for a given Invitation object. */
@@ -2744,6 +2766,7 @@ export type v1Result = {
2744
2766
  updateFiatOnRampCredentialResult?: v1UpdateFiatOnRampCredentialResult;
2745
2767
  deleteFiatOnRampCredentialResult?: v1DeleteFiatOnRampCredentialResult;
2746
2768
  ethSendTransactionResult?: v1EthSendTransactionResult;
2769
+ upsertGasUsageConfigResult?: v1UpsertGasUsageConfigResult;
2747
2770
  };
2748
2771
  export type v1RootUserParams = {
2749
2772
  /** Human-readable name for a User. */
@@ -3274,6 +3297,18 @@ export type v1UpdateWalletResult = {
3274
3297
  /** A Wallet ID. */
3275
3298
  walletId: string;
3276
3299
  };
3300
+ export type v1UpsertGasUsageConfigIntent = {
3301
+ /** Gas sponsorship USD limit for the billing organization window. */
3302
+ orgWindowLimitUsd: string;
3303
+ /** Gas sponsorship USD limit for sub-organizations under the billing organization. */
3304
+ subOrgWindowLimitUsd: string;
3305
+ /** Rolling sponsorship window duration, expressed in minutes. */
3306
+ windowDurationMinutes: string;
3307
+ };
3308
+ export type v1UpsertGasUsageConfigResult = {
3309
+ /** Unique identifier for the gas usage configuration that was created or updated. */
3310
+ gasUsageConfigId: string;
3311
+ };
3277
3312
  export type v1UsageType = "USAGE_TYPE_SIGNUP" | "USAGE_TYPE_LOGIN";
3278
3313
  export type v1User = {
3279
3314
  /** Unique identifier for a given User. */
@@ -4084,7 +4119,8 @@ export type TCreatePolicyBody = {
4084
4119
  condition?: string;
4085
4120
  /** The consensus expression that triggers the Effect */
4086
4121
  consensus?: string;
4087
- notes?: string;
4122
+ /** Notes for a Policy. */
4123
+ notes: string;
4088
4124
  };
4089
4125
  export type TCreatePolicyInput = {
4090
4126
  body: TCreatePolicyBody;
@@ -4553,14 +4589,12 @@ export type TEmailAuthBody = {
4553
4589
  email: string;
4554
4590
  /** Client-side public key generated by the user, to which the email auth bundle (credentials) will be encrypted. */
4555
4591
  targetPublicKey: string;
4556
- /** The name of the application. */
4557
- appName: string;
4558
4592
  /** Optional human-readable name for an API Key. If none provided, default to Email Auth - <Timestamp> */
4559
4593
  apiKeyName?: string;
4560
4594
  /** Expiration window (in seconds) indicating how long the API key is valid for. If not provided, a default of 15 minutes will be used. */
4561
4595
  expirationSeconds?: string;
4562
- /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4563
- emailCustomization?: v1EmailCustomizationParams;
4596
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that app_name is required. */
4597
+ emailCustomization: v1EmailAuthCustomizationParams;
4564
4598
  /** Invalidate all other previously generated Email Auth API keys */
4565
4599
  invalidateExisting?: boolean;
4566
4600
  /** Optional custom email address from which to send the email */
@@ -4803,13 +4837,13 @@ export type TInitOtpBody = {
4803
4837
  otpType: string;
4804
4838
  /** Email or phone number to send the OTP code to */
4805
4839
  contact: string;
4806
- /** The name of the application. */
4807
- appName: string;
4808
4840
  /** Optional length of the OTP code. Default = 9 */
4809
4841
  otpLength?: number;
4842
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
4843
+ appName: string;
4810
4844
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4811
- emailCustomization?: v1EmailCustomizationParams;
4812
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
4845
+ emailCustomization?: v1EmailCustomizationParamsV2;
4846
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
4813
4847
  smsCustomization?: v1SmsCustomizationParams;
4814
4848
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
4815
4849
  userIdentifier?: string;
@@ -4835,17 +4869,17 @@ export type TInitOtpAuthResponse = {
4835
4869
  export type TInitOtpAuthBody = {
4836
4870
  timestampMs?: string;
4837
4871
  organizationId?: string;
4838
- /** Enum to specifiy whether to send OTP via SMS or email */
4872
+ /** Whether to send OTP via SMS or email. Possible values: OTP_TYPE_SMS, OTP_TYPE_EMAIL */
4839
4873
  otpType: string;
4840
4874
  /** Email or phone number to send the OTP code to */
4841
4875
  contact: string;
4842
- /** The name of the application. */
4843
- appName: string;
4844
4876
  /** Optional length of the OTP code. Default = 9 */
4845
4877
  otpLength?: number;
4878
+ /** The name of the application. This field is required and will be used in email notifications if an email template is not provided. */
4879
+ appName: string;
4846
4880
  /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4847
- emailCustomization?: v1EmailCustomizationParams;
4848
- /** Optional parameters for customizing SMS message. If not provided, the default sms message will be used. */
4881
+ emailCustomization?: v1EmailCustomizationParamsV2;
4882
+ /** Optional parameters for customizing SMS message. If not provided, the default SMS message will be used. */
4849
4883
  smsCustomization?: v1SmsCustomizationParams;
4850
4884
  /** Optional client-generated user identifier to enable per-user rate limiting for SMS auth. We recommend using a hash of the client-side IP address. */
4851
4885
  userIdentifier?: string;
@@ -4855,6 +4889,8 @@ export type TInitOtpAuthBody = {
4855
4889
  alphanumeric?: boolean;
4856
4890
  /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
4857
4891
  sendFromEmailSenderName?: string;
4892
+ /** Expiration window (in seconds) indicating how long the OTP is valid for. If not provided, a default of 5 minutes will be used. Maximum value is 600 seconds (10 minutes) */
4893
+ expirationSeconds?: string;
4858
4894
  /** Optional custom email address to use as reply-to */
4859
4895
  replyToEmailAddress?: string;
4860
4896
  };
@@ -4873,12 +4909,10 @@ export type TInitUserEmailRecoveryBody = {
4873
4909
  email: string;
4874
4910
  /** Client-side public key generated by the user, to which the recovery bundle will be encrypted. */
4875
4911
  targetPublicKey: string;
4876
- /** The name of the application. */
4877
- appName: string;
4878
4912
  /** Expiration window (in seconds) indicating how long the recovery credential is valid for. If not provided, a default of 15 minutes will be used. */
4879
4913
  expirationSeconds?: string;
4880
- /** Optional parameters for customizing emails. If not provided, the default email will be used. */
4881
- emailCustomization?: v1EmailCustomizationParams;
4914
+ /** Parameters for customizing emails. If not provided, the default email will be used. Note that `app_name` is required. */
4915
+ emailCustomization: v1EmailAuthCustomizationParams;
4882
4916
  /** Optional custom email address from which to send the OTP email */
4883
4917
  sendFromEmailAddress?: string;
4884
4918
  /** Optional custom sender name for use with sendFromEmailAddress; if left empty, will default to 'Notifications' */
@@ -5400,6 +5434,8 @@ export type ProxyTGetAccountBody = {
5400
5434
  filterValue: string;
5401
5435
  /** Signed JWT containing a unique id, expiry, verification type, contact. Used to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. */
5402
5436
  verificationToken?: string;
5437
+ /** OIDC token to verify access to PII (email/phone number) when filter_type is 'EMAIL' or 'PHONE_NUMBER'. Needed for social linking when verification_token is not available. */
5438
+ oidcToken?: string;
5403
5439
  };
5404
5440
  export type ProxyTGetAccountInput = {
5405
5441
  body: ProxyTGetAccountBody;