@bitgo-beta/sdk-api 1.10.1-beta.167 → 1.10.1-beta.1671

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.
Files changed (68) hide show
  1. package/dist/package.json +16 -25
  2. package/dist/src/api.d.ts +8 -5
  3. package/dist/src/api.d.ts.map +1 -1
  4. package/dist/src/api.js +128 -69
  5. package/dist/src/bitgoAPI.d.ts +80 -13
  6. package/dist/src/bitgoAPI.d.ts.map +1 -1
  7. package/dist/src/bitgoAPI.js +512 -180
  8. package/dist/src/encrypt.d.ts +4 -4
  9. package/dist/src/encrypt.d.ts.map +1 -1
  10. package/dist/src/encrypt.js +44 -7
  11. package/dist/src/index.js +6 -2
  12. package/dist/src/types.d.ts +58 -43
  13. package/dist/src/types.d.ts.map +1 -1
  14. package/dist/src/types.js +4 -2
  15. package/dist/src/util.d.ts +12 -0
  16. package/dist/src/util.d.ts.map +1 -1
  17. package/dist/src/util.js +57 -4
  18. package/dist/src/v1/blockchain.js +25 -12
  19. package/dist/src/v1/keychains.js +27 -22
  20. package/dist/src/v1/markets.js +10 -5
  21. package/dist/src/v1/pendingapproval.d.ts.map +1 -1
  22. package/dist/src/v1/pendingapproval.js +57 -18
  23. package/dist/src/v1/pendingapprovals.d.ts.map +1 -1
  24. package/dist/src/v1/pendingapprovals.js +41 -7
  25. package/dist/src/v1/signPsbt.d.ts +14 -0
  26. package/dist/src/v1/signPsbt.d.ts.map +1 -0
  27. package/dist/src/v1/signPsbt.js +69 -0
  28. package/dist/src/v1/transactionBuilder.js +214 -90
  29. package/dist/src/v1/travelRule.js +60 -23
  30. package/dist/src/v1/verifyAddress.d.ts +6 -0
  31. package/dist/src/v1/verifyAddress.d.ts.map +1 -0
  32. package/dist/src/v1/verifyAddress.js +50 -0
  33. package/dist/src/v1/wallet.d.ts.map +1 -1
  34. package/dist/src/v1/wallet.js +479 -224
  35. package/dist/src/v1/wallets.js +93 -37
  36. package/dist/test/unit/api.d.ts +2 -0
  37. package/dist/test/unit/api.d.ts.map +1 -0
  38. package/dist/test/unit/api.js +307 -0
  39. package/dist/test/unit/bitgoAPI.d.ts +2 -0
  40. package/dist/test/unit/bitgoAPI.d.ts.map +1 -0
  41. package/dist/test/unit/bitgoAPI.js +915 -0
  42. package/dist/test/unit/encrypt.d.ts +2 -0
  43. package/dist/test/unit/encrypt.d.ts.map +1 -0
  44. package/dist/test/unit/encrypt.js +62 -0
  45. package/dist/test/unit/hmacStrategy.d.ts +2 -0
  46. package/dist/test/unit/hmacStrategy.d.ts.map +1 -0
  47. package/dist/test/unit/hmacStrategy.js +136 -0
  48. package/dist/test/unit/utils.d.ts +2 -0
  49. package/dist/test/unit/utils.d.ts.map +1 -0
  50. package/dist/test/unit/utils.js +65 -0
  51. package/dist/test/unit/v1/fixtures/accelerate-tx.d.ts +4 -0
  52. package/dist/test/unit/v1/fixtures/accelerate-tx.d.ts.map +1 -0
  53. package/dist/test/unit/v1/fixtures/accelerate-tx.js +53 -0
  54. package/dist/test/unit/v1/fixtures/index.d.ts +3 -0
  55. package/dist/test/unit/v1/fixtures/index.d.ts.map +1 -0
  56. package/dist/test/unit/v1/fixtures/index.js +24 -0
  57. package/dist/test/unit/v1/signPsbt.d.ts +2 -0
  58. package/dist/test/unit/v1/signPsbt.d.ts.map +1 -0
  59. package/dist/test/unit/v1/signPsbt.js +53 -0
  60. package/dist/test/unit/v1/wallet.d.ts +2 -0
  61. package/dist/test/unit/v1/wallet.d.ts.map +1 -0
  62. package/dist/test/unit/v1/wallet.js +1603 -0
  63. package/dist/tsconfig.tsbuildinfo +1 -0
  64. package/package.json +16 -25
  65. package/.eslintignore +0 -5
  66. package/CHANGELOG.md +0 -478
  67. package/dist/web/main.js +0 -2
  68. package/dist/web/main.js.LICENSE.txt +0 -110
package/package.json CHANGED
@@ -1,32 +1,22 @@
1
1
  {
2
2
  "name": "@bitgo-beta/sdk-api",
3
- "version": "1.10.1-beta.167",
3
+ "version": "1.10.1-beta.1671",
4
4
  "description": "REST wrapper for BitGoJS",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
7
- "exports": {
8
- "./package.json": "./package.json",
9
- ".": {
10
- "node": "./dist/src/index.js",
11
- "default": "./dist/web/main.js"
12
- }
13
- },
14
7
  "browser": {
15
8
  "proxy-agent": false
16
9
  },
17
10
  "scripts": {
18
11
  "build": "yarn tsc --build --incremental --verbose .",
19
12
  "fmt": "prettier --write .",
20
- "check-fmt": "prettier --check .",
13
+ "check-fmt": "prettier --check '**/*.{ts,js,json}'",
21
14
  "clean": "rm -r ./dist",
22
15
  "lint": "eslint --quiet .",
23
16
  "prepare": "npm run build",
24
- "webpack-dev": "yarn webpack",
25
- "webpack-prod": "yarn webpack --mode=production --node-env=production",
26
- "prepublishOnly": "yarn webpack-prod",
27
17
  "test": "npm run coverage",
28
18
  "coverage": "nyc -- npm run unit-test",
29
- "unit-test": "mocha"
19
+ "unit-test": "mocha 'test/unit/**/*.ts'"
30
20
  },
31
21
  "author": "BitGo SDK Team <sdkteam@bitgo.com>",
32
22
  "license": "MIT",
@@ -50,23 +40,21 @@
50
40
  ]
51
41
  },
52
42
  "dependencies": {
53
- "@bitgo-beta/sdk-core": "8.2.1-beta.167",
54
- "@bitgo-beta/sjcl": "1.0.2-beta.405",
55
- "@bitgo-beta/unspents": "0.13.2-beta.167",
56
- "@bitgo-beta/utxo-lib": "8.0.3-beta.168",
43
+ "@bitgo-beta/sdk-core": "8.2.1-beta.1672",
44
+ "@bitgo-beta/sdk-hmac": "1.0.1-beta.1041",
45
+ "@bitgo-beta/sjcl": "1.0.2-beta.1913",
46
+ "@bitgo-beta/unspents": "0.13.2-beta.1673",
47
+ "@bitgo-beta/utxo-lib": "8.0.3-beta.1674",
57
48
  "@types/superagent": "4.1.15",
58
- "bitcoinjs-message": "npm:@bitgo-forks/bitcoinjs-message@1.0.0-master.2",
59
- "bluebird": "^3.5.3",
60
- "browser-or-node": "2.0.0",
61
- "bs58": "^2.0.1",
49
+ "bitcoinjs-message": "npm:@bitgo-forks/bitcoinjs-message@1.0.0-master.3",
62
50
  "debug": "3.1.0",
63
51
  "eol": "^0.5.0",
64
52
  "lodash": "^4.17.15",
65
- "proxy-agent": "6.3.1",
53
+ "proxy-agent": "6.4.0",
66
54
  "sanitize-html": "^2.11",
67
- "secp256k1": "^4.0.2",
55
+ "secp256k1": "5.0.1",
68
56
  "secrets.js-grempe": "^1.1.0",
69
- "superagent": "3.8.3"
57
+ "superagent": "^9.0.1"
70
58
  },
71
59
  "overrides": {
72
60
  "degenerator": "5.0.0"
@@ -74,5 +62,8 @@
74
62
  "resolutions": {
75
63
  "degenerator": "5.0.0"
76
64
  },
77
- "gitHead": "573ff6b03918b5568ea47f0e443826dafbf26792"
65
+ "gitHead": "ce986080d2547b3407387a981da854f05fbff623",
66
+ "files": [
67
+ "dist"
68
+ ]
78
69
  }
package/.eslintignore DELETED
@@ -1,5 +0,0 @@
1
- node_modules
2
- .idea
3
- public
4
- dist
5
- browser
package/CHANGELOG.md DELETED
@@ -1,478 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [1.24.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.24.0) (2023-10-20)
7
-
8
- ### Bug Fixes
9
-
10
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
11
- - **sdk-api:** drop `superagent-proxy` dependency ([06a86fd](https://github.com/BitGo/BitGoJS/commit/06a86fd3def3865ac05713bd879e2d2df32c599d))
12
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
13
-
14
- ### Features
15
-
16
- - improve logic and add unit test ([722d729](https://github.com/BitGo/BitGoJS/commit/722d729600ff6de2a04e93329d27e406f51a456b))
17
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
18
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
19
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
20
-
21
- # [1.23.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.23.0) (2023-10-18)
22
-
23
- ### Bug Fixes
24
-
25
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
26
- - **sdk-api:** drop `superagent-proxy` dependency ([06a86fd](https://github.com/BitGo/BitGoJS/commit/06a86fd3def3865ac05713bd879e2d2df32c599d))
27
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
28
-
29
- ### Features
30
-
31
- - improve logic and add unit test ([722d729](https://github.com/BitGo/BitGoJS/commit/722d729600ff6de2a04e93329d27e406f51a456b))
32
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
33
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
34
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
35
-
36
- # [1.22.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.22.0) (2023-09-25)
37
-
38
- ### Bug Fixes
39
-
40
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
41
- - **sdk-api:** drop `superagent-proxy` dependency ([06a86fd](https://github.com/BitGo/BitGoJS/commit/06a86fd3def3865ac05713bd879e2d2df32c599d))
42
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
43
-
44
- ### Features
45
-
46
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
47
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
48
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
49
-
50
- # [1.21.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.21.0) (2023-09-09)
51
-
52
- ### Bug Fixes
53
-
54
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
55
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
56
-
57
- ### Features
58
-
59
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
60
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
61
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
62
-
63
- # [1.20.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.20.0) (2023-09-09)
64
-
65
- ### Bug Fixes
66
-
67
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
68
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
69
-
70
- ### Features
71
-
72
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
73
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
74
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
75
-
76
- # [1.19.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.19.0) (2023-09-07)
77
-
78
- ### Bug Fixes
79
-
80
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
81
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
82
-
83
- ### Features
84
-
85
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
86
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
87
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
88
-
89
- # [1.18.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.18.0) (2023-09-05)
90
-
91
- ### Bug Fixes
92
-
93
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
94
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
95
-
96
- ### Features
97
-
98
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
99
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
100
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
101
-
102
- # [1.17.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.17.0) (2023-09-01)
103
-
104
- ### Bug Fixes
105
-
106
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
107
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
108
-
109
- ### Features
110
-
111
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
112
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
113
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
114
-
115
- # [1.16.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.16.0) (2023-08-29)
116
-
117
- ### Bug Fixes
118
-
119
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
120
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
121
-
122
- ### Features
123
-
124
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
125
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
126
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
127
-
128
- # [1.15.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.15.0) (2023-08-25)
129
-
130
- ### Bug Fixes
131
-
132
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
133
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
134
-
135
- ### Features
136
-
137
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
138
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
139
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
140
-
141
- # [1.14.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.14.0) (2023-08-24)
142
-
143
- ### Bug Fixes
144
-
145
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
146
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
147
-
148
- ### Features
149
-
150
- - **sdk-api:** add size correction factor for transactions created ([5f0131c](https://github.com/BitGo/BitGoJS/commit/5f0131cd7016ad7dc4cf4b0be177e0c7ab7f4d25))
151
- - **sdk-api:** test for fully signed tx of v1 safe wallet ([ec91fb6](https://github.com/BitGo/BitGoJS/commit/ec91fb616187983611044230097236fa9229f55d))
152
- - **utxo-lib:** add tests for v1 safe wallets with uncompressed ([4ac75f0](https://github.com/BitGo/BitGoJS/commit/4ac75f0031a40aa17de37f176e3493284cba4cac))
153
-
154
- ## [1.13.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.13.2) (2023-08-16)
155
-
156
- ### Bug Fixes
157
-
158
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
159
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
160
-
161
- ## [1.13.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.13.0...@bitgo/sdk-api@1.13.1) (2023-08-16)
162
-
163
- ### Bug Fixes
164
-
165
- - **bitgo:** add overrides and resolutions to pkgs ([14c33b4](https://github.com/BitGo/BitGoJS/commit/14c33b4bbffda09ba6a389f540c1fb8cc2a43bf9))
166
- - **sdk-api:** upgrade critical vulnerabilities from snyk scan ([cd97347](https://github.com/BitGo/BitGoJS/commit/cd97347046b1a6644db6682e9f8e9ca8b5fe4ad7))
167
-
168
- # [1.13.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.11.3...@bitgo/sdk-api@1.13.0) (2023-08-04)
169
-
170
- ### Features
171
-
172
- - **unspents:** fix unspents module setup ([687f4c3](https://github.com/BitGo/BitGoJS/commit/687f4c3c29885b1e5b5bf9d79782d265937d6f1d)), closes [#3651](https://github.com/BitGo/BitGoJS/issues/3651)
173
-
174
- # [1.12.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.11.3...@bitgo/sdk-api@1.12.0) (2023-07-28)
175
-
176
- ### Features
177
-
178
- - **unspents:** fix unspents module setup ([687f4c3](https://github.com/BitGo/BitGoJS/commit/687f4c3c29885b1e5b5bf9d79782d265937d6f1d)), closes [#3651](https://github.com/BitGo/BitGoJS/issues/3651)
179
-
180
- ## [1.11.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.11.2...@bitgo/sdk-api@1.11.3) (2023-07-18)
181
-
182
- **Note:** Version bump only for package @bitgo/sdk-api
183
-
184
- ## [1.11.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.11.1...@bitgo/sdk-api@1.11.2) (2023-06-21)
185
-
186
- **Note:** Version bump only for package @bitgo/sdk-api
187
-
188
- ## [1.11.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.11.0...@bitgo/sdk-api@1.11.1) (2023-06-14)
189
-
190
- **Note:** Version bump only for package @bitgo/sdk-api
191
-
192
- # [1.11.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.10.6...@bitgo/sdk-api@1.11.0) (2023-06-13)
193
-
194
- ### Features
195
-
196
- - **sdk-api:** add snowtrace api token support in BitgoAPI ([3f9efd8](https://github.com/BitGo/BitGoJS/commit/3f9efd88638b1d72fd63becd7f6173166ede59a9))
197
-
198
- ## [1.10.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.10.5...@bitgo/sdk-api@1.10.6) (2023-06-07)
199
-
200
- **Note:** Version bump only for package @bitgo/sdk-api
201
-
202
- ## [1.10.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.10.4...@bitgo/sdk-api@1.10.5) (2023-06-05)
203
-
204
- **Note:** Version bump only for package @bitgo/sdk-api
205
-
206
- ## [1.10.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.10.3...@bitgo/sdk-api@1.10.4) (2023-05-25)
207
-
208
- **Note:** Version bump only for package @bitgo/sdk-api
209
-
210
- ## [1.10.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.10.2...@bitgo/sdk-api@1.10.3) (2023-05-17)
211
-
212
- **Note:** Version bump only for package @bitgo/sdk-api
213
-
214
- ## [1.10.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.10.1...@bitgo/sdk-api@1.10.2) (2023-05-10)
215
-
216
- **Note:** Version bump only for package @bitgo/sdk-api
217
-
218
- ## [1.10.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.10.0...@bitgo/sdk-api@1.10.1) (2023-05-03)
219
-
220
- **Note:** Version bump only for package @bitgo/sdk-api
221
-
222
- # [1.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.12...@bitgo/sdk-api@1.10.0) (2023-04-25)
223
-
224
- ### Features
225
-
226
- - **sdk-core:** add enterprise method to fetch ecdsa config ([59a2eae](https://github.com/BitGo/BitGoJS/commit/59a2eaea91c03bca95f485e933bfdd3b52896796))
227
- - **sdk-core:** initate, sign and verify ecdsa challenges for enterprise ([529ad9e](https://github.com/BitGo/BitGoJS/commit/529ad9e43e5123359c7417f3af2f5766e752474e))
228
- - **sdk-core:** update ecdsa signing to use enterprise challenge ([c626f00](https://github.com/BitGo/BitGoJS/commit/c626f00e141db2ef4147b3e0c4badf1776729465))
229
-
230
- ## [1.9.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.11...@bitgo/sdk-api@1.9.12) (2023-04-20)
231
-
232
- **Note:** Version bump only for package @bitgo/sdk-api
233
-
234
- ## [1.9.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.10...@bitgo/sdk-api@1.9.11) (2023-04-13)
235
-
236
- **Note:** Version bump only for package @bitgo/sdk-api
237
-
238
- ## [1.9.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.9...@bitgo/sdk-api@1.9.10) (2023-02-17)
239
-
240
- **Note:** Version bump only for package @bitgo/sdk-api
241
-
242
- ## [1.9.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.6...@bitgo/sdk-api@1.9.9) (2023-02-16)
243
-
244
- ### Bug Fixes
245
-
246
- - **bitgo:** remove enforcement of HMAC verification on all non-prod environments ([118722c](https://github.com/BitGo/BitGoJS/commit/118722c80bfcf8cfc850e07d575ecf10aacb3fd2))
247
-
248
- ## [1.9.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.6...@bitgo/sdk-api@1.9.8) (2023-02-08)
249
-
250
- ### Bug Fixes
251
-
252
- - **bitgo:** remove enforcement of HMAC verification on all non-prod environments ([118722c](https://github.com/BitGo/BitGoJS/commit/118722c80bfcf8cfc850e07d575ecf10aacb3fd2))
253
-
254
- ## [1.9.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.6...@bitgo/sdk-api@1.9.7) (2023-01-30)
255
-
256
- ### Bug Fixes
257
-
258
- - **bitgo:** remove enforcement of HMAC verification on all non-prod environments ([118722c](https://github.com/BitGo/BitGoJS/commit/118722c80bfcf8cfc850e07d575ecf10aacb3fd2))
259
-
260
- ## [1.9.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.5...@bitgo/sdk-api@1.9.6) (2023-01-25)
261
-
262
- ### Bug Fixes
263
-
264
- - **sdk-api:** don't throw a TypeError for errors without request body ([bbdc642](https://github.com/BitGo/BitGoJS/commit/bbdc642419a092d9373e3ed0f1112722954dd827))
265
-
266
- ## [1.9.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.4...@bitgo/sdk-api@1.9.5) (2022-12-23)
267
-
268
- **Note:** Version bump only for package @bitgo/sdk-api
269
-
270
- ## [1.9.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.3...@bitgo/sdk-api@1.9.4) (2022-12-20)
271
-
272
- **Note:** Version bump only for package @bitgo/sdk-api
273
-
274
- ## [1.9.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.2...@bitgo/sdk-api@1.9.3) (2022-12-09)
275
-
276
- ### Bug Fixes
277
-
278
- - enable cookie propagation gating for test and prod ([da6ddb3](https://github.com/BitGo/BitGoJS/commit/da6ddb30d99cb50f1434399a967f7d99e9fc5187))
279
-
280
- ## [1.9.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.1...@bitgo/sdk-api@1.9.2) (2022-12-06)
281
-
282
- **Note:** Version bump only for package @bitgo/sdk-api
283
-
284
- ## [1.9.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.9.0...@bitgo/sdk-api@1.9.1) (2022-12-01)
285
-
286
- **Note:** Version bump only for package @bitgo/sdk-api
287
-
288
- # [1.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.4.0...@bitgo/sdk-api@1.9.0) (2022-11-29)
289
-
290
- ### Features
291
-
292
- - allow the sdk to optionally send cookies with the request to custom domains ([e40349e](https://github.com/BitGo/BitGoJS/commit/e40349e8e36e946fe8630e94b0796e34b4aee51b))
293
-
294
- # [1.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.4.0...@bitgo/sdk-api@1.8.0) (2022-11-04)
295
-
296
- ### Features
297
-
298
- - allow the sdk to optionally send cookies with the request to custom domains ([e40349e](https://github.com/BitGo/BitGoJS/commit/e40349e8e36e946fe8630e94b0796e34b4aee51b))
299
-
300
- # [1.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.4.0...@bitgo/sdk-api@1.6.0) (2022-10-27)
301
-
302
- ### Features
303
-
304
- - allow the sdk to optionally send cookies with the request to custom domains ([e40349e](https://github.com/BitGo/BitGoJS/commit/e40349e8e36e946fe8630e94b0796e34b4aee51b))
305
-
306
- # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.4.0...@bitgo/sdk-api@1.5.0) (2022-10-25)
307
-
308
- ### Features
309
-
310
- - allow the sdk to optionally send cookies with the request to custom domains ([e40349e](https://github.com/BitGo/BitGoJS/commit/e40349e8e36e946fe8630e94b0796e34b4aee51b))
311
-
312
- # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.33...@bitgo/sdk-api@1.4.0) (2022-10-18)
313
-
314
- ### Bug Fixes
315
-
316
- - **core:** fix bip32/ecpair, API vs Interface ([bec9c1e](https://github.com/BitGo/BitGoJS/commit/bec9c1e6ff0c23108dc27e171abdd3e4d2cfdfb1))
317
- - **sdk-api:** fix txValueLimit type ([029abab](https://github.com/BitGo/BitGoJS/commit/029ababf75eb04a51211782b8b99a476346bf3ff))
318
-
319
- ### Features
320
-
321
- - **sdk-coin-polygon:** support recovery ([15d6021](https://github.com/BitGo/BitGoJS/commit/15d602164d3a2b504d7995e65aa0fbcb38f98e89))
322
- - **utxo-lib:** export BIP32/ECPair interfaces ([8628507](https://github.com/BitGo/BitGoJS/commit/862850781b2e8b36c71608c5ae71424b9ebe9dee))
323
-
324
- # [1.1.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.33...@bitgo/sdk-api@1.1.0) (2022-07-19)
325
-
326
- **Note:** Version bump only for package @bitgo/sdk-api
327
-
328
- # [1.1.0-rc.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.33) (2022-07-19)
329
-
330
- **Note:** Version bump only for package @bitgo/sdk-api
331
-
332
- # [1.1.0-rc.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.31...@bitgo/sdk-api@1.1.0-rc.32) (2022-07-18)
333
-
334
- **Note:** Version bump only for package @bitgo/sdk-api
335
-
336
- # [1.1.0-rc.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.30...@bitgo/sdk-api@1.1.0-rc.31) (2022-07-15)
337
-
338
- **Note:** Version bump only for package @bitgo/sdk-api
339
-
340
- # [1.1.0-rc.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.30) (2022-07-15)
341
-
342
- **Note:** Version bump only for package @bitgo/sdk-api
343
-
344
- # [1.1.0-rc.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.28...@bitgo/sdk-api@1.1.0-rc.29) (2022-07-14)
345
-
346
- **Note:** Version bump only for package @bitgo/sdk-api
347
-
348
- # [1.1.0-rc.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.27...@bitgo/sdk-api@1.1.0-rc.28) (2022-07-12)
349
-
350
- **Note:** Version bump only for package @bitgo/sdk-api
351
-
352
- # [1.1.0-rc.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.26...@bitgo/sdk-api@1.1.0-rc.27) (2022-07-11)
353
-
354
- **Note:** Version bump only for package @bitgo/sdk-api
355
-
356
- # [1.1.0-rc.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.25...@bitgo/sdk-api@1.1.0-rc.26) (2022-07-07)
357
-
358
- **Note:** Version bump only for package @bitgo/sdk-api
359
-
360
- # [1.1.0-rc.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.24...@bitgo/sdk-api@1.1.0-rc.25) (2022-07-05)
361
-
362
- **Note:** Version bump only for package @bitgo/sdk-api
363
-
364
- # [1.1.0-rc.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.23...@bitgo/sdk-api@1.1.0-rc.24) (2022-07-01)
365
-
366
- **Note:** Version bump only for package @bitgo/sdk-api
367
-
368
- # [1.1.0-rc.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.22...@bitgo/sdk-api@1.1.0-rc.23) (2022-06-30)
369
-
370
- **Note:** Version bump only for package @bitgo/sdk-api
371
-
372
- # [1.1.0-rc.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.21...@bitgo/sdk-api@1.1.0-rc.22) (2022-06-30)
373
-
374
- **Note:** Version bump only for package @bitgo/sdk-api
375
-
376
- # [1.1.0-rc.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.19...@bitgo/sdk-api@1.1.0-rc.21) (2022-06-29)
377
-
378
- **Note:** Version bump only for package @bitgo/sdk-api
379
-
380
- # [1.1.0-rc.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.19...@bitgo/sdk-api@1.1.0-rc.20) (2022-06-29)
381
-
382
- **Note:** Version bump only for package @bitgo/sdk-api
383
-
384
- # [1.1.0-rc.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.18...@bitgo/sdk-api@1.1.0-rc.19) (2022-06-27)
385
-
386
- **Note:** Version bump only for package @bitgo/sdk-api
387
-
388
- # [1.1.0-rc.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.17...@bitgo/sdk-api@1.1.0-rc.18) (2022-06-23)
389
-
390
- **Note:** Version bump only for package @bitgo/sdk-api
391
-
392
- # [1.1.0-rc.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.16...@bitgo/sdk-api@1.1.0-rc.17) (2022-06-22)
393
-
394
- ### Bug Fixes
395
-
396
- - add dependency check to fix current and future dependency resolutions ([3074335](https://github.com/BitGo/BitGoJS/commit/30743356cff4ebb6d9e185f1a493b187614a1ea9))
397
-
398
- # [1.1.0-rc.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.15...@bitgo/sdk-api@1.1.0-rc.16) (2022-06-21)
399
-
400
- **Note:** Version bump only for package @bitgo/sdk-api
401
-
402
- # [1.1.0-rc.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.14...@bitgo/sdk-api@1.1.0-rc.15) (2022-06-16)
403
-
404
- **Note:** Version bump only for package @bitgo/sdk-api
405
-
406
- # [1.1.0-rc.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.13...@bitgo/sdk-api@1.1.0-rc.14) (2022-06-14)
407
-
408
- **Note:** Version bump only for package @bitgo/sdk-api
409
-
410
- # [1.1.0-rc.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.12...@bitgo/sdk-api@1.1.0-rc.13) (2022-06-14)
411
-
412
- **Note:** Version bump only for package @bitgo/sdk-api
413
-
414
- # [1.1.0-rc.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.11...@bitgo/sdk-api@1.1.0-rc.12) (2022-06-13)
415
-
416
- **Note:** Version bump only for package @bitgo/sdk-api
417
-
418
- # [1.1.0-rc.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.10...@bitgo/sdk-api@1.1.0-rc.11) (2022-06-10)
419
-
420
- ### Features
421
-
422
- - move coinFactory from bitgo to sdk-core ([fb7e902](https://github.com/BitGo/BitGoJS/commit/fb7e902c150a25c40310dc040ca6a8833b097cef))
423
-
424
- # [1.1.0-rc.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.9...@bitgo/sdk-api@1.1.0-rc.10) (2022-06-07)
425
-
426
- ### Bug Fixes
427
-
428
- - **sdk-api:** api uses own version ([e2091e9](https://github.com/BitGo/BitGoJS/commit/e2091e9074f392fcebea468c8cb60cb6eb445b84))
429
-
430
- # [1.1.0-rc.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.8...@bitgo/sdk-api@1.1.0-rc.9) (2022-06-07)
431
-
432
- **Note:** Version bump only for package @bitgo/sdk-api
433
-
434
- # [1.1.0-rc.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.7...@bitgo/sdk-api@1.1.0-rc.8) (2022-06-02)
435
-
436
- **Note:** Version bump only for package @bitgo/sdk-api
437
-
438
- # [1.1.0-rc.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.6...@bitgo/sdk-api@1.1.0-rc.7) (2022-06-02)
439
-
440
- **Note:** Version bump only for package @bitgo/sdk-api
441
-
442
- # [1.1.0-rc.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.5...@bitgo/sdk-api@1.1.0-rc.6) (2022-06-01)
443
-
444
- **Note:** Version bump only for package @bitgo/sdk-api
445
-
446
- # [1.1.0-rc.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.4...@bitgo/sdk-api@1.1.0-rc.5) (2022-05-23)
447
-
448
- **Note:** Version bump only for package @bitgo/sdk-api
449
-
450
- # [1.1.0-rc.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.3...@bitgo/sdk-api@1.1.0-rc.4) (2022-05-19)
451
-
452
- **Note:** Version bump only for package @bitgo/sdk-api
453
-
454
- # [1.1.0-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.2...@bitgo/sdk-api@1.1.0-rc.3) (2022-05-17)
455
-
456
- **Note:** Version bump only for package @bitgo/sdk-api
457
-
458
- # [1.1.0-rc.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.1...@bitgo/sdk-api@1.1.0-rc.2) (2022-05-16)
459
-
460
- **Note:** Version bump only for package @bitgo/sdk-api
461
-
462
- # [1.1.0-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.1.0-rc.0...@bitgo/sdk-api@1.1.0-rc.1) (2022-05-13)
463
-
464
- **Note:** Version bump only for package @bitgo/sdk-api
465
-
466
- # [1.1.0-rc.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.3...@bitgo/sdk-api@1.1.0-rc.0) (2022-05-13)
467
-
468
- ### Features
469
-
470
- - **bitgo:** added sdk version to constants call ([6ee0b6a](https://github.com/BitGo/BitGoJS/commit/6ee0b6af92eb204ec220b09de8212f6061d39afb))
471
-
472
- ## [1.0.1-rc.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.2...@bitgo/sdk-api@1.0.1-rc.3) (2022-05-12)
473
-
474
- **Note:** Version bump only for package @bitgo/sdk-api
475
-
476
- ## [1.0.1-rc.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-api@1.0.1-rc.0...@bitgo/sdk-api@1.0.1-rc.1) (2022-04-19)
477
-
478
- **Note:** Version bump only for package @bitgo/sdk-api