@turnkey/sdk-types 1.11.0 → 1.12.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 CHANGED
@@ -1,5 +1,49 @@
1
1
  # @turnkey/sdk-types
2
2
 
3
+ ## 1.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1633](https://github.com/tkhq/sdk/pull/1633) [`d03117c`](https://github.com/tkhq/sdk/commit/d03117c190960aa80dedca55f34bef978d33e297) Thanks [@Bijan-Massoumi](https://github.com/Bijan-Massoumi)! - Sync with the latest public API. `executeSwap` now uses `ACTIVITY_TYPE_EXECUTE_SWAP_V4`, which adds market swaps, and `getIndicativeSwapQuote` previews a price without creating an activity. Also adds `mintJwt`, adds swap charges to swap quotes, results and status, and renames velocity controls to usage controls.
8
+
9
+ **Breaking:** `executeSwap` moves the quote fields into `boundQuote`.
10
+
11
+ Before:
12
+
13
+ ```ts
14
+ await client.executeSwap({
15
+ quoteId,
16
+ quotedOutputAmount,
17
+ minOutputAmount,
18
+ inputToken,
19
+ inputAmount,
20
+ outputToken,
21
+ sponsor,
22
+ });
23
+ ```
24
+
25
+ After:
26
+
27
+ ```ts
28
+ await client.executeSwap({
29
+ boundQuote: { quoteId, quotedOutputAmount, minOutputAmount },
30
+ inputToken,
31
+ inputAmount,
32
+ outputToken,
33
+ sponsor,
34
+ });
35
+ ```
36
+
37
+ For a market swap, pass `market` instead of `boundQuote`.
38
+
39
+ - [#1598](https://github.com/tkhq/sdk/pull/1598) [`b000c86`](https://github.com/tkhq/sdk/commit/b000c86ea770d2fbf8c5687fca128677e218c49f) Author [@amircheikh](https://github.com/amircheikh) - Sync generated clients and types with the latest public API.
40
+ - Add `getWalletAuthenticators` (`POST /public/v1/query/get_wallet_authenticators`), `createWalletAuthenticators`, `deleteWalletAuthenticators`, and `verifyWalletAuthenticator` (plus `stamp*` variants). `v1WalletAuthenticatorParams` accepts an optional `verificationToken`.
41
+ - Add `createExternalSigner` and `deleteExternalSigner` (plus `stamp*` variants). `createPrivateKeys` accepts an optional `externalSignerWrappingKeyId`.
42
+ - Add `createFiatRampCredential` and `updateFiatRampCredential` (plus `stamp*` variants).
43
+ - Fiat quotes and credentials now use the shared ramp types. `v1FiatOnRampAmount` is `v1FiatRampAmount`. On-ramp quote `onrampProvider` is `provider` (`v1FiatRampProvider`, which includes Meld). Quote `fiatCurrencyCode` and `paymentMethod` use `v1FiatRampCurrency` and `v1FiatRampPaymentMethod`. Credential `fiatOnrampCredentialId` is `credentialId`, and `publishableApiKey` / `encryptedSecretApiKey` are `apiKey` / `encryptedSecret`. `projectId` and `encryptedPrivateApiKey` are removed. `FIAT_ON_RAMP_PROVIDER_MELD` is removed from `v1FiatOnRampProvider`.
44
+ - Generated activity types include `ACTIVITY_TYPE_EXECUTE_SWAP_V4` (`v1ExecuteSwapIntentV4`), `ACTIVITY_TYPE_ENABLE_SMS_FOR_COUNTRIES`, and `ACTIVITY_TYPE_DISABLE_SMS_FOR_COUNTRIES`. `executeSwap` results include optional `outputAmount`, `minOutputAmount`, `feeSponsorship`, and `fixedRate`. `setOrganizationFeature` `value` is optional. `AUTHENTICATOR_TRANSPORT_SMART_CARD` is added.
45
+ - `@turnkey/core`: add auth proxy `proxySignupV3` (`POST /v1/signup_v3`) and `proxyVerifyWalletAuthenticator` (`POST /v1/verify_wallet_authenticator`).
46
+
3
47
  ## 1.11.0
4
48
 
5
49
  ### Minor Changes