@swapkit/api-sdk-typescript 6.3.0 → 6.4.0-nightly.20260930115559

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/dist/index.d.cts CHANGED
@@ -553,6 +553,10 @@ type TrackTransactionRequest = {
553
553
  * Deposit address associated with a deposit channel
554
554
  */
555
555
  depositAddress?: string;
556
+ /**
557
+ * Share-link token (`t` on a track.swapkit.dev link) issued to the API key that opened a confidential swap. A valid token unlocks the full response for any API key; without it, confidential swaps are redacted unless the caller opened the deposit channel.
558
+ */
559
+ token?: string;
556
560
  /**
557
561
  * routeId of the /v3/quote route this transaction executed. Pass it on /track calls until the response contains a parsed transaction, to enable realized-slippage reporting on completion. Best-effort: quote data expires ~5 minutes after quoting and is region-local, so the first call should come right after broadcast.
558
562
  */
@@ -657,6 +661,8 @@ type TrackTransactionResponse = {
657
661
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
658
662
  */
659
663
  privacyMode?: boolean;
664
+ redacted?: boolean;
665
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
660
666
  targetAddress?: string;
661
667
  };
662
668
  payload?: {
@@ -769,6 +775,8 @@ type TrackTransactionResponse = {
769
775
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
770
776
  */
771
777
  privacyMode?: boolean;
778
+ redacted?: boolean;
779
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
772
780
  targetAddress?: string;
773
781
  };
774
782
  payload?: {
@@ -912,6 +920,8 @@ type TrackLedgerSwapResponse = {
912
920
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
913
921
  */
914
922
  privacyMode?: boolean;
923
+ redacted?: boolean;
924
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
915
925
  targetAddress?: string;
916
926
  };
917
927
  payload?: {
@@ -1024,6 +1034,8 @@ type TrackLedgerSwapResponse = {
1024
1034
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
1025
1035
  */
1026
1036
  privacyMode?: boolean;
1037
+ redacted?: boolean;
1038
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
1027
1039
  targetAddress?: string;
1028
1040
  };
1029
1041
  payload?: {
@@ -1141,6 +1153,8 @@ type InsertTrackedTransactionRequest = {
1141
1153
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
1142
1154
  */
1143
1155
  privacyMode?: boolean;
1156
+ redacted?: boolean;
1157
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
1144
1158
  targetAddress?: string;
1145
1159
  };
1146
1160
  payload?: {
@@ -2576,6 +2590,8 @@ type TrackTransactionResponses = {
2576
2590
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
2577
2591
  */
2578
2592
  privacyMode?: boolean;
2593
+ redacted?: boolean;
2594
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
2579
2595
  targetAddress?: string;
2580
2596
  };
2581
2597
  payload?: {
@@ -2688,6 +2704,8 @@ type TrackTransactionResponses = {
2688
2704
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
2689
2705
  */
2690
2706
  privacyMode?: boolean;
2707
+ redacted?: boolean;
2708
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
2691
2709
  targetAddress?: string;
2692
2710
  };
2693
2711
  payload?: {
package/dist/index.d.ts CHANGED
@@ -553,6 +553,10 @@ type TrackTransactionRequest = {
553
553
  * Deposit address associated with a deposit channel
554
554
  */
555
555
  depositAddress?: string;
556
+ /**
557
+ * Share-link token (`t` on a track.swapkit.dev link) issued to the API key that opened a confidential swap. A valid token unlocks the full response for any API key; without it, confidential swaps are redacted unless the caller opened the deposit channel.
558
+ */
559
+ token?: string;
556
560
  /**
557
561
  * routeId of the /v3/quote route this transaction executed. Pass it on /track calls until the response contains a parsed transaction, to enable realized-slippage reporting on completion. Best-effort: quote data expires ~5 minutes after quoting and is region-local, so the first call should come right after broadcast.
558
562
  */
@@ -657,6 +661,8 @@ type TrackTransactionResponse = {
657
661
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
658
662
  */
659
663
  privacyMode?: boolean;
664
+ redacted?: boolean;
665
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
660
666
  targetAddress?: string;
661
667
  };
662
668
  payload?: {
@@ -769,6 +775,8 @@ type TrackTransactionResponse = {
769
775
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
770
776
  */
771
777
  privacyMode?: boolean;
778
+ redacted?: boolean;
779
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
772
780
  targetAddress?: string;
773
781
  };
774
782
  payload?: {
@@ -912,6 +920,8 @@ type TrackLedgerSwapResponse = {
912
920
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
913
921
  */
914
922
  privacyMode?: boolean;
923
+ redacted?: boolean;
924
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
915
925
  targetAddress?: string;
916
926
  };
917
927
  payload?: {
@@ -1024,6 +1034,8 @@ type TrackLedgerSwapResponse = {
1024
1034
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
1025
1035
  */
1026
1036
  privacyMode?: boolean;
1037
+ redacted?: boolean;
1038
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
1027
1039
  targetAddress?: string;
1028
1040
  };
1029
1041
  payload?: {
@@ -1141,6 +1153,8 @@ type InsertTrackedTransactionRequest = {
1141
1153
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
1142
1154
  */
1143
1155
  privacyMode?: boolean;
1156
+ redacted?: boolean;
1157
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
1144
1158
  targetAddress?: string;
1145
1159
  };
1146
1160
  payload?: {
@@ -2576,6 +2590,8 @@ type TrackTransactionResponses = {
2576
2590
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
2577
2591
  */
2578
2592
  privacyMode?: boolean;
2593
+ redacted?: boolean;
2594
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
2579
2595
  targetAddress?: string;
2580
2596
  };
2581
2597
  payload?: {
@@ -2688,6 +2704,8 @@ type TrackTransactionResponses = {
2688
2704
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
2689
2705
  */
2690
2706
  privacyMode?: boolean;
2707
+ redacted?: boolean;
2708
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
2691
2709
  targetAddress?: string;
2692
2710
  };
2693
2711
  payload?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swapkit/api-sdk-typescript",
3
- "version": "6.3.0",
3
+ "version": "6.4.0-nightly.20260930115559",
4
4
  "description": "Type-safe TypeScript SDK for the SwapKit API",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/types.ts CHANGED
@@ -242,6 +242,10 @@ export type TrackTransactionRequest = {
242
242
  * Deposit address associated with a deposit channel
243
243
  */
244
244
  depositAddress?: string;
245
+ /**
246
+ * Share-link token (`t` on a track.swapkit.dev link) issued to the API key that opened a confidential swap. A valid token unlocks the full response for any API key; without it, confidential swaps are redacted unless the caller opened the deposit channel.
247
+ */
248
+ token?: string;
245
249
  /**
246
250
  * routeId of the /v3/quote route this transaction executed. Pass it on /track calls until the response contains a parsed transaction, to enable realized-slippage reporting on completion. Best-effort: quote data expires ~5 minutes after quoting and is region-local, so the first call should come right after broadcast.
247
251
  */
@@ -347,6 +351,8 @@ export type TrackTransactionResponse = {
347
351
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
348
352
  */
349
353
  privacyMode?: boolean;
354
+ redacted?: boolean;
355
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
350
356
  targetAddress?: string;
351
357
  };
352
358
  payload?: {
@@ -459,6 +465,8 @@ export type TrackTransactionResponse = {
459
465
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
460
466
  */
461
467
  privacyMode?: boolean;
468
+ redacted?: boolean;
469
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
462
470
  targetAddress?: string;
463
471
  };
464
472
  payload?: {
@@ -603,6 +611,8 @@ export type TrackLedgerSwapResponse = {
603
611
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
604
612
  */
605
613
  privacyMode?: boolean;
614
+ redacted?: boolean;
615
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
606
616
  targetAddress?: string;
607
617
  };
608
618
  payload?: {
@@ -715,6 +725,8 @@ export type TrackLedgerSwapResponse = {
715
725
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
716
726
  */
717
727
  privacyMode?: boolean;
728
+ redacted?: boolean;
729
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
718
730
  targetAddress?: string;
719
731
  };
720
732
  payload?: {
@@ -833,6 +845,8 @@ export type InsertTrackedTransactionRequest = {
833
845
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
834
846
  */
835
847
  privacyMode?: boolean;
848
+ redacted?: boolean;
849
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
836
850
  targetAddress?: string;
837
851
  };
838
852
  payload?: {
@@ -2320,6 +2334,8 @@ export type TrackTransactionResponses = {
2320
2334
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
2321
2335
  */
2322
2336
  privacyMode?: boolean;
2337
+ redacted?: boolean;
2338
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
2323
2339
  targetAddress?: string;
2324
2340
  };
2325
2341
  payload?: {
@@ -2432,6 +2448,8 @@ export type TrackTransactionResponses = {
2432
2448
  * True when the provider executed the swap in privacy mode (e.g. NEAR Confidential Intents). Consumers displaying the transaction publicly should redact destination details. Omitted otherwise
2433
2449
  */
2434
2450
  privacyMode?: boolean;
2451
+ redacted?: boolean;
2452
+ redactionReason?: 'notOwner' | 'tokenExpired' | 'tokenInvalid';
2435
2453
  targetAddress?: string;
2436
2454
  };
2437
2455
  payload?: {