box-node-sdk 3.7.0 → 3.8.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.
Files changed (52) hide show
  1. package/README.md +22 -20
  2. package/lib/api-request.d.ts +1 -0
  3. package/lib/chunked-uploader.d.ts +1 -0
  4. package/lib/managers/ai.generated.d.ts +28 -2
  5. package/lib/managers/ai.generated.js +18 -1
  6. package/lib/managers/ai.generated.js.map +1 -1
  7. package/lib/managers/files.d.ts +3 -0
  8. package/lib/managers/files.js +1 -0
  9. package/lib/managers/files.js.map +1 -1
  10. package/lib/managers/users.d.ts +1 -0
  11. package/lib/schemas/ai-agent-ask.generated.d.ts +17 -0
  12. package/lib/schemas/ai-agent-ask.generated.js +3 -0
  13. package/lib/schemas/ai-agent-ask.generated.js.map +1 -0
  14. package/lib/schemas/ai-agent-basic-gen-tool.generated.d.ts +14 -0
  15. package/lib/schemas/ai-agent-basic-gen-tool.generated.js +3 -0
  16. package/lib/schemas/ai-agent-basic-gen-tool.generated.js.map +1 -0
  17. package/lib/schemas/ai-agent-basic-text-tool-ask.generated.d.ts +34 -0
  18. package/lib/schemas/ai-agent-basic-text-tool-ask.generated.js +3 -0
  19. package/lib/schemas/ai-agent-basic-text-tool-ask.generated.js.map +1 -0
  20. package/lib/schemas/ai-agent-basic-text-tool-text-gen.generated.d.ts +36 -0
  21. package/lib/schemas/ai-agent-basic-text-tool-text-gen.generated.js +3 -0
  22. package/lib/schemas/ai-agent-basic-text-tool-text-gen.generated.js.map +1 -0
  23. package/lib/schemas/ai-agent-long-text-tool.generated.d.ts +9 -0
  24. package/lib/schemas/ai-agent-long-text-tool.generated.js +3 -0
  25. package/lib/schemas/ai-agent-long-text-tool.generated.js.map +1 -0
  26. package/lib/schemas/ai-agent-text-gen.generated.d.ts +14 -0
  27. package/lib/schemas/ai-agent-text-gen.generated.js +3 -0
  28. package/lib/schemas/ai-agent-text-gen.generated.js.map +1 -0
  29. package/lib/schemas/ai-ask.generated.d.ts +13 -2
  30. package/lib/schemas/ai-citation.generated.d.ts +27 -0
  31. package/lib/schemas/ai-citation.generated.js +3 -0
  32. package/lib/schemas/ai-citation.generated.js.map +1 -0
  33. package/lib/schemas/ai-dialogue-history.generated.d.ts +22 -0
  34. package/lib/schemas/ai-dialogue-history.generated.js +3 -0
  35. package/lib/schemas/ai-dialogue-history.generated.js.map +1 -0
  36. package/lib/schemas/ai-llm-endpoint-params-google.generated.d.ts +31 -0
  37. package/lib/schemas/ai-llm-endpoint-params-google.generated.js +3 -0
  38. package/lib/schemas/ai-llm-endpoint-params-google.generated.js.map +1 -0
  39. package/lib/schemas/ai-llm-endpoint-params-open-ai.generated.d.ts +43 -0
  40. package/lib/schemas/ai-llm-endpoint-params-open-ai.generated.js +3 -0
  41. package/lib/schemas/ai-llm-endpoint-params-open-ai.generated.js.map +1 -0
  42. package/lib/schemas/ai-response-full.generated.d.ts +12 -0
  43. package/lib/schemas/ai-response-full.generated.js +3 -0
  44. package/lib/schemas/ai-response-full.generated.js.map +1 -0
  45. package/lib/schemas/ai-response.generated.d.ts +1 -1
  46. package/lib/schemas/ai-text-gen.generated.d.ts +5 -7
  47. package/lib/schemas/index.generated.d.ts +11 -0
  48. package/lib/schemas/index.generated.js +11 -0
  49. package/lib/schemas/index.generated.js.map +1 -1
  50. package/lib/util/config.d.ts +1 -0
  51. package/package.json +7 -2
  52. package/CHANGELOG.md +0 -605
package/CHANGELOG.md DELETED
@@ -1,605 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ## [3.7.0](https://github.com/box/box-node-sdk/compare/v3.6.0...v3.7.0) (2024-07-16)
6
-
7
-
8
- ### New Features and Enhancements
9
-
10
- * Support AI APIs ([#883](https://github.com/box/box-node-sdk/issues/883)) ([bb81e07](https://github.com/box/box-node-sdk/commit/bb81e074eb1017bd742c90159e6cf4e6ce9d9776))
11
-
12
- ## [3.6.0](https://github.com/box/box-node-sdk/compare/v3.5.1...v3.6.0) (2024-05-20)
13
-
14
-
15
- ### New Features and Enhancements
16
-
17
- * Transition to stable status ([#880](https://github.com/box/box-node-sdk/issues/880)) ([ae996ea](https://github.com/box/box-node-sdk/commit/ae996eafd9e34de99119a7780384b90758908313))
18
-
19
- ### [3.5.1](https://github.com/box/box-node-sdk/compare/v3.5.0...v3.5.1) (2024-05-02)
20
-
21
-
22
- ### Bug Fixes
23
-
24
- * Fix `options` parameter in metadata query method ([#878](https://github.com/box/box-node-sdk/issues/878)) ([7943420](https://github.com/box/box-node-sdk/commit/79434209c572cd77c329d6008cda9837a9dba411))
25
-
26
- ## [3.5.0](https://github.com/box/box-node-sdk/compare/v3.4.2...v3.5.0) (2024-02-19)
27
-
28
-
29
- ### New Features and Enhancements
30
-
31
- * Sign request group ([#870](https://github.com/box/box-node-sdk/issues/870)) ([11bf5d2](https://github.com/box/box-node-sdk/commit/11bf5d2db7e0cefc669aab99c8b65c632289ac46))
32
-
33
- ### Bug Fixes
34
-
35
- * Bumped proxy-agent to 6.4.0 ([#874](https://github.com/box/box-node-sdk/issues/874)) ([55a8a0b](https://github.com/box/box-node-sdk/commit/55a8a0baebe151f4107fdbec0a1022e9534f88a4))
36
- * Remove delete classification ([#869](https://github.com/box/box-node-sdk/issues/869)) ([22384ab](https://github.com/box/box-node-sdk/commit/22384abc3abbc35800cbcdea7c7eb9a452cc4859))
37
-
38
- ### [3.4.2](https://github.com/box/box-node-sdk/compare/v3.4.1...v3.4.2) (2023-11-08)
39
-
40
-
41
- ### Bug Fixes
42
-
43
- * Fix `proxy-agent` ([#867](https://github.com/box/box-node-sdk/issues/867)) ([3de7586](https://github.com/box/box-node-sdk/commit/3de7586e44dbb7c8e1bff8f34471964805c810f5))
44
-
45
- ### [3.4.1](https://github.com/box/box-node-sdk/compare/v3.4.0...v3.4.1) (2023-11-03)
46
-
47
-
48
- ### Bug Fixes
49
-
50
- * Update `proxy-agent` usage, drop support Node 12 ([#865](https://github.com/box/box-node-sdk/issues/865)) ([e229d3f](https://github.com/box/box-node-sdk/commit/e229d3f93de350c00768528a1c0d3a6ecfc697a9))
51
-
52
- ## [3.4.0](https://github.com/box/box-node-sdk/compare/v3.3.0...v3.4.0) (2023-11-03)
53
-
54
-
55
- ### New Features and Enhancements
56
-
57
- * Add request option to skip `PassThrough` ([#863](https://github.com/box/box-node-sdk/issues/863)) ([726db45](https://github.com/box/box-node-sdk/commit/726db45cfbb992e545fe2865283df63c898656ac))
58
-
59
- ## [3.3.0](https://github.com/box/box-node-sdk/compare/v3.2.1...v3.3.0) (2023-10-26)
60
-
61
-
62
- ### New Features and Enhancements
63
-
64
- * Replace `request` library with `@cypress/request` ([#860](https://github.com/box/box-node-sdk/issues/860)) ([d365ae8](https://github.com/box/box-node-sdk/commit/d365ae8368c549ecdceb7dd5b928904fd3c58978))
65
-
66
- ### Bug Fixes
67
-
68
- * mark auth funs callbacks as optional ([#858](https://github.com/box/box-node-sdk/issues/858)) ([55f22fe](https://github.com/box/box-node-sdk/commit/55f22fec7d7d35e487f3fb51bc9bbd3e848842ab))
69
-
70
- ### [3.2.1](https://github.com/box/box-node-sdk/compare/v3.2.0...v3.2.1) (2023-10-06)
71
-
72
-
73
- ### Bug Fixes
74
-
75
- * Overrides tough-cookie dependency ([#852](https://github.com/box/box-node-sdk/issues/852)) ([99df873](https://github.com/box/box-node-sdk/commit/99df873e1a1dad4a0073d53b4ed57c0eeb859401))
76
-
77
- ## [3.2.0](https://github.com/box/box-node-sdk/compare/v3.1.1...v3.2.0) (2023-09-07)
78
-
79
-
80
- ### New Features and Enhancements
81
-
82
- * Support sign template ([#848](https://github.com/box/box-node-sdk/issues/848)) ([18d3413](https://github.com/box/box-node-sdk/commit/18d3413afeddf43c62dfd0caf1279e61c99b6b83))
83
-
84
- ### [3.1.1](https://github.com/box/box-node-sdk/compare/v3.1.0...v3.1.1) (2023-07-19)
85
-
86
-
87
- ## [3.1.0](https://github.com/box/box-node-sdk/compare/v3.0.0...v3.1.0) (2023-06-01)
88
-
89
-
90
- ### New Features and Enhancements
91
-
92
- * Added support for integration mappings API ([#831](https://github.com/box/box-node-sdk/issues/831)) ([a525327](https://github.com/box/box-node-sdk/commit/a525327c1362628a0ffdb36cb4bf3346ca0e0153))
93
-
94
- ### Bug Fixes
95
-
96
- * Correct types of `userId` and `groupId` for creating collaboration ([#833](https://github.com/box/box-node-sdk/issues/833)) ([f803ff8](https://github.com/box/box-node-sdk/commit/f803ff82330fd78a8dc4875452a21aab54686b2e)), closes [#832](https://github.com/box/box-node-sdk/issues/832)
97
-
98
- ## [3.0.0](https://github.com/box/box-node-sdk/compare/v2.10.0...v3.0.0) (2023-05-23)
99
-
100
- The most important change in this release is **dropping support for Node versions below 12** and changing the **support environments from Node 12 to Node 16**.
101
-
102
- ### Breaking Changes
103
-
104
- - Removed `use_index` usage. ([#812](https://github.com/box/box-node-sdk/pull/812)) ([d56799a](https://github.com/box/box-node-sdk/commit/d56799a61f42265d7785f99e92a449c58d125aef))
105
- - Removed deprecated `BoxClient.batch()` and `BoxClient.batchExec()` method.
106
- - Removed deprecated `CollaborationWhitelist` class, use `CollaborationAllowlist` instead.
107
- - Removed deprecated `CollaborationAllowlist.getWhitelistedDomain()` method, use `CollaborationAllowlist.getAllowlistedDomain()` instead.
108
- - Removed deprecated `CollaborationAllowlist.getAllWhitelistedDomains()` method, use `CollaborationAllowlist.getAllAllowlistedDomains()` instead.
109
- - Remove deprecated `Files.getThumbnail(fileID: string, options?: Record<string, any>, callback?: Function)` method, use `Files.getRepresentationContent( fileID, representationType, options, callback)` instead.
110
-
111
- Migration details can be found [here](https://github.com/box/box-node-sdk/blob/v3.0.0/docs/upgrade/2.x.x%20to%203.x.x.md)
112
-
113
- ### Dependency Upgrades
114
- - Bumped `jsonwebtoken` from 8.5.1 to 9.0.0. ([#802](https://github.com/box/box-node-sdk/pull/802)) ([5b1d4e9](https://github.com/box/box-node-sdk/pull/828/commits/5b1d4e9ec557c14c1d27695733cc0bcae49061cb))
115
- - Bumped `vm2` from 3.9.11 to 3.9.19 ([#826](https://github.com/box/box-node-sdk/pull/826)) ([220df76](https://github.com/box/box-node-sdk/commit/220df765080bc27c91daed51ac46620f6bc8b9ed))
116
-
117
- ## [2.10.0](https://github.com/box/box-node-sdk/compare/v2.9.0...v2.10.0) (2023-05-11)
118
-
119
-
120
- ### New Features and Enhancements
121
-
122
- * Added support for ethical wall API ([#822](https://github.com/box/box-node-sdk/issues/822)) ([4814af3](https://github.com/box/box-node-sdk/commit/4814af35c1741fbfe3fa03f8f0412ade8b38dfcc))
123
- * Added `name` and `signature_color` fields to `SignRequest` and `SignRequestCreateRequest` types and `login_required` field to `SignRequestCreateSigner` type ([#822](https://github.com/box/box-node-sdk/issues/822)) ([4814af3](https://github.com/box/box-node-sdk/commit/4814af35c1741fbfe3fa03f8f0412ade8b38dfcc))
124
-
125
- ## [2.9.0](https://github.com/box/box-node-sdk/compare/v2.8.1...v2.9.0) (2023-04-19)
126
-
127
-
128
- ### New Features and Enhancements
129
-
130
- * New fields in `retention-policy` and `retention-policy-assignment` ([#803](https://github.com/box/box-node-sdk/issues/803)) ([f14ba84](https://github.com/box/box-node-sdk/commit/f14ba84013985513854ad396581d085d1d4f0255))
131
-
132
- ### Bug Fixes
133
-
134
- * return empty object when `tos` status is not present ([#797](https://github.com/box/box-node-sdk/issues/797)) ([12fd9b0](https://github.com/box/box-node-sdk/commit/12fd9b053707471722f53cd1760c8cf59451fe8d))
135
-
136
- ### [2.8.1](https://github.com/box/box-node-sdk/compare/v2.8.0...v2.8.1) (2023-01-05)
137
-
138
-
139
- ### Bug Fixes
140
-
141
- * Fix `getReadStream` delay reading ([#790](https://github.com/box/box-node-sdk/issues/790)) ([6bfc1ee](https://github.com/box/box-node-sdk/commit/6bfc1eebeb9a31606ff96127eeb1ad03d2f13d9c))
142
-
143
- ## [2.8.0](https://github.com/box/box-node-sdk/compare/v2.7.2...v2.8.0) (2022-12-21)
144
-
145
-
146
- ### New Features and Enhancements
147
-
148
- * Session termination ([#782](https://github.com/box/box-node-sdk/issues/782)) ([7fb56c6](https://github.com/box/box-node-sdk/commit/7fb56c625f8eb03e6a5354b67a0debfd9e4ad7c8))
149
-
150
- ### [2.7.2](https://github.com/box/box-node-sdk/compare/v2.7.1...v2.7.2) (2022-11-10)
151
-
152
-
153
- ### Bug Fixes
154
-
155
- * Add `fields` query parameter to file and folder update ([#776](https://github.com/box/box-node-sdk/issues/776)) ([a327deb](https://github.com/box/box-node-sdk/commit/a327debc83d98a4190a5a16cf848417ea5714db9))
156
-
157
- ### [2.7.1](https://github.com/box/box-node-sdk/compare/v2.7.0...v2.7.1) (2022-10-28)
158
-
159
-
160
- ### Bug Fixes
161
-
162
- * Export missing `RetentionType` ([#774](https://github.com/box/box-node-sdk/issues/774)) ([7e6b244](https://github.com/box/box-node-sdk/commit/7e6b244ba63d363ecc921be570140c9e1ed1d032))
163
-
164
- ## [2.7.0](https://github.com/box/box-node-sdk/compare/v2.6.0...v2.7.0) (2022-10-27)
165
-
166
-
167
- ### New Features and Enhancements
168
-
169
- * Add support for modifiable retention policies & enable deleting retention policy assignment ([#769](https://github.com/box/box-node-sdk/issues/769)) ([5e8c776](https://github.com/box/box-node-sdk/commit/5e8c776fc94e9dcf313cc15c96e42fbffaf36b74))
170
-
171
- ## [2.6.0](https://github.com/box/box-node-sdk/compare/v2.5.0...v2.6.0) (2022-09-23)
172
-
173
-
174
- ### New Features and Enhancements
175
-
176
- * Add `content_type`, `redirect_url` field to Sign Request ([#758](https://github.com/box/box-node-sdk/issues/758)) ([8abb9b6](https://github.com/box/box-node-sdk/commit/8abb9b602b13cd72c6c8de549d19756ae147b403))
177
- * Add sign request webhook ([#760](https://github.com/box/box-node-sdk/issues/760)) ([e92d1ab](https://github.com/box/box-node-sdk/commit/e92d1abee5faf58166f4892d7b2e6bc3c6480ac6))
178
- * Added support for Access Only Collaboration ([#759](https://github.com/box/box-node-sdk/issues/759)) ([dd8261f](https://github.com/box/box-node-sdk/commit/dd8261f970c207854058c3ed86ccabf9bec05ea8))
179
-
180
- ## [2.5.0](https://github.com/box/box-node-sdk/compare/v2.4.0...v2.5.0) (2022-08-09)
181
-
182
-
183
- ### New Features and Enhancements
184
-
185
- * Added support update and remove user avatar ([#744](https://github.com/box/box-node-sdk/issues/744)) ([aaf6175](https://github.com/box/box-node-sdk/commit/aaf617528de5c61e19cfb25e28fe77c01532b9fa))
186
-
187
- ### Bug Fixes
188
-
189
- * Fix error while generate token using oauth ([#750](https://github.com/box/box-node-sdk/issues/750)) ([f826291](https://github.com/box/box-node-sdk/commit/f82629108a1af6c4d160de1976fd01fdf0d8dde3)), closes [#286](https://github.com/box/box-node-sdk/issues/286)
190
- * Fix lint error in test file ([#747](https://github.com/box/box-node-sdk/issues/747)) ([3b1e10d](https://github.com/box/box-node-sdk/commit/3b1e10d206aa88a8bf99989bb7ff85776a9864a4))
191
-
192
- ## [2.4.0](https://github.com/box/box-node-sdk/compare/v2.3.0...v2.4.0) (2022-07-13)
193
-
194
-
195
- ### New Features and Enhancements
196
-
197
- * Added support for file requests ([#742](https://github.com/box/box-node-sdk/issues/742)) ([30b2e76](https://github.com/box/box-node-sdk/commit/30b2e767c6c3af68e1463cc801914f9889dc593c))
198
- * Added support of `admin_logs_streaming` stream type ([#740](https://github.com/box/box-node-sdk/issues/740)) ([406950a](https://github.com/box/box-node-sdk/commit/406950a03af54a022427e0532e889a61e0d25152))
199
-
200
- ### Bug Fixes
201
-
202
- * properly handle client errors in streams ([#736](https://github.com/box/box-node-sdk/issues/736)) ([12378d6](https://github.com/box/box-node-sdk/commit/12378d6755c2e3cddcb79439cdcbbe8e1e61df13))
203
-
204
- ## [2.3.0](https://github.com/box/box-node-sdk/compare/v2.2.0...v2.3.0) (2022-04-28)
205
-
206
-
207
- ### New Features and Enhancements
208
-
209
- * Add `description` parameter to `uploadFile` methods ([#730](https://github.com/box/box-node-sdk/issues/730)) ([2596584](https://github.com/box/box-node-sdk/commit/2596584dffb44c1995c8b6b3faa67564f4d32499))
210
-
211
- ### Bug Fixes
212
-
213
- * added missing `js-docs` on shared links ([#731](https://github.com/box/box-node-sdk/issues/731)) ([3554d41](https://github.com/box/box-node-sdk/commit/3554d41d9050e7a81224c35e3e2e257604a0b41b))
214
-
215
- ## [2.2.0](https://github.com/box/box-node-sdk/compare/v2.1.0...v2.2.0) (2022-04-20)
216
-
217
-
218
- ### New Features and Enhancements
219
-
220
- * editable shared links ([#722](https://github.com/box/box-node-sdk/issues/722)) ([f0c0135](https://github.com/box/box-node-sdk/commit/f0c0135511fde46144e6c496432104321af443f6))
221
-
222
- ## [2.1.0](https://github.com/box/box-node-sdk/compare/v2.0.0...v2.1.0) (2022-03-28)
223
-
224
-
225
- ### New Features and Enhancements
226
-
227
- * Client Credentials Grant authentication method ([#709](https://github.com/box/box-node-sdk/issues/709)) ([fbf4e80](https://github.com/box/box-node-sdk/commit/fbf4e80648821e38479b24bf489e7d222ae6c18f))
228
- * Deprecating `index_name` when executing metadata query ([#686](https://github.com/box/box-node-sdk/issues/686)) ([e01cc65](https://github.com/box/box-node-sdk/commit/e01cc650e4e793955be543e93928ad82a3254492))
229
- * **test:** add support for testing with Jest ([#676](https://github.com/box/box-node-sdk/issues/676)) ([1a11759](https://github.com/box/box-node-sdk/commit/1a11759db999510c69d6a27f7becd565620bb000))
230
-
231
- ### Bug Fixes
232
-
233
- * Client Credentials Grant authentication method supports token down-scoping ([#710](https://github.com/box/box-node-sdk/issues/710)) ([730368f](https://github.com/box/box-node-sdk/commit/730368f410ff56e9a8c90feea2192b29c08df198))
234
- * Fix JWT expiration field being float instead of integer ([#715](https://github.com/box/box-node-sdk/issues/715)) ([7e950f1](https://github.com/box/box-node-sdk/commit/7e950f1265a52ce251c42a186c8196089a9ed858)), closes [#713](https://github.com/box/box-node-sdk/issues/713)
235
-
236
- ## [2.0.0](https://github.com/box/box-node-sdk/compare/v1.39.0...v2.0.0) (2021-09-29)
237
-
238
- ### ⚠ BREAKING CHANGES
239
-
240
- * Drop support for Node 6,7 ([#670](https://github.com/box/box-node-sdk/pull/670))
241
-
242
- ### New Features and Enhancements:
243
-
244
- * Add support for is_external_collab_restricted User property ([#668](https://github.com/box/box-node-sdk/pull/668))
245
- * Bump proxy-agent from 4.0.0 to 5.0.0 ([#664](https://github.com/box/box-node-sdk/pull/664))
246
-
247
- ## [1.39.0](https://github.com/box/box-node-sdk/compare/v1.38.0...v1.39.0) (2021-08-30)
248
-
249
- ### New Features and Enhancements:
250
-
251
- * Add support for Box Sign API ([#658](https://github.com/box/box-node-sdk/pull/658))
252
- * Enhance TS Imports ([#656](https://github.com/box/box-node-sdk/pull/656))
253
-
254
- ## [1.38.0](https://github.com/box/box-node-sdk/compare/v1.37.2...v1.38.0) (2021-08-05)
255
-
256
- ### New Features and Enhancements:
257
-
258
- * Add sensitive-language event types for admin invites ([#648](https://github.com/box/box-node-sdk/pull/648))
259
- * Use BetterDocs to adapt JSDocs to TypeScript ([#646](https://github.com/box/box-node-sdk/pull/646))
260
- * Change ProxyAgent import to be dynamic ([#641](https://github.com/box/box-node-sdk/pull/641))
261
- * New API for get files and file versions under retention ([#585](https://github.com/box/box-node-sdk/pull/585))
262
-
263
- ### Bug Fixes:
264
-
265
- * Deeply freeze Config except Buffers and Readable streams ([#651](https://github.com/box/box-node-sdk/pull/651))
266
- * Fix a typo in docs of src/managers/search.ts ([#649](https://github.com/box/box-node-sdk/pull/649))
267
- * Update broken documentation link ([#647](https://github.com/box/box-node-sdk/pull/647))
268
- * fix type annotations for exchangeToken functions ([#645](https://github.com/box/box-node-sdk/pull/645))
269
- * Deprecate files getThumbnail API in favor of getRepresentationContent ([#627](https://github.com/box/box-node-sdk/pull/627))
270
-
271
- ## [1.37.2](https://github.com/box/box-node-sdk/compare/v1.37.1...v1.37.2) (2021-05-20)
272
-
273
- ### Bug Fixes:
274
-
275
- * Fix backwards compatibility issue by moving some TypeScript @types as direct dependencies ([#630](https://github.com/box/box-node-sdk/pull/630))
276
-
277
- ## [1.37.1](https://github.com/box/box-node-sdk/compare/v1.37.0..v1.37.1) (2021-05-19)
278
-
279
- ### Bug Fixes:
280
-
281
- * Insensitive language: replace whitelist with allowlist ([#625](https://github.com/box/box-node-sdk/pull/625))
282
-
283
- ## [1.37.0](https://github.com/box/box-node-sdk/compare/v1.36.0...v1.37.0) (2021-04-16)
284
-
285
- ### New Features and Enhancements:
286
-
287
- * Add support for copyInstanceOnItemCopy field for metadata templates ([#572](https://github.com/box/box-node-sdk/pull/572))
288
-
289
- ### Bug Fixes:
290
-
291
- * Fix webhook signature validation ([#568](https://github.com/box/box-node-sdk/pull/568))
292
- * Update dependencies to patch security vulnerabilities ([#578](https://github.com/box/box-node-sdk/pull/578))
293
-
294
- ## [1.36.0](https://github.com/box/box-node-sdk/compare/v1.35.0...v1.36.0) (2021-01-27)
295
-
296
- ### New Features and Enhancements:
297
-
298
- * Add folder lock functionality ([#560](https://github.com/box/box-node-sdk/pull/560))
299
- * Add support for filtering groups by name ([#561](https://github.com/box/box-node-sdk/pull/561))
300
-
301
- ### Bug Fixes:
302
-
303
- * Update proxy-agent to patch proxy support issue ([#563](https://github.com/box/box-node-sdk/pull/563))
304
- * Update dependencies to patch security vulnerabilities ([#566](https://github.com/box/box-node-sdk/pull/566))
305
-
306
- ## [1.35.0](https://github.com/box/box-node-sdk/compare/v1.34.3...v1.35.0) (2020-11-02)
307
-
308
- ### New Features and Enhancements:
309
-
310
- * Add support for search param to get shared link items ([#547](https://github.com/box/box-node-sdk/pull/547))
311
-
312
- ## [1.34.3](https://github.com/box/box-node-sdk/compare/v1.34.2...v1.34.3) (2020-10-02)
313
-
314
- ### Bug Fixes:
315
-
316
- * Upgrade ajv dependency ([#545](https://github.com/box/box-node-sdk/pull/545))
317
-
318
- ## [1.34.2](https://github.com/box/box-node-sdk/compare/v1.34.1...v1.34.2) (2020-08-20)
319
-
320
- * Make iterator bug fix for uploading files non breaking ([#534](https://github.com/box/box-node-sdk/pull/534))
321
-
322
- ## [1.34.1](https://github.com/box/box-node-sdk/compare/v1.34.0...v1.34.1) (2020-08-17)
323
-
324
- * Fix iterator bug for uploading new file versions ([#531](https://github.com/box/box-node-sdk/pull/531))
325
-
326
- ## [1.34.0](https://github.com/box/box-node-sdk/compare/v1.33.0...v1.34.0) (2020-08-04)
327
-
328
- * Add zip functionality ([#525](https://github.com/box/box-node-sdk/pull/525))
329
- * Add proxy support for `http`, `https`, `socks` and `pac` protocols ([#529](https://github.com/box/box-node-sdk/pull/529))
330
-
331
- ## [1.33.0](https://github.com/box/box-node-sdk/compare/v1.32.0...v1.33.0) (2020-06-25)
332
-
333
- * Add path parameter sanitization ([#505](https://github.com/box/box-node-sdk/pull/505))
334
- * Add support for all streams for uploading files ([#519](https://github.com/box/box-node-sdk/pull/519))
335
-
336
- ## [1.32.0](https://github.com/box/box-node-sdk/compare/v1.31.0...v1.32.0) (2020-04-01)
337
-
338
- * Temporarily removed Node 4 and Node 5 builds from Travis, due to tests not passing. Will investigate, going forward ([#495](https://github.com/box/box-node-sdk/pull/495)).
339
- * Fixed an issue where an error is thrown during a retry when a response is not returned by the previous call ([#477](https://github.com/box/box-node-sdk/pull/477)).
340
- * Added the ability to [query](./docs/metadata.md#query) Box items based on their metadata ([#487](https://github.com/box/box-node-sdk/pull/487)).
341
-
342
- ## [1.31.0](https://github.com/box/box-node-sdk/compare/v1.30.0...v1.31.0) (2020-02-13)
343
-
344
- * Fixed Authentication Request Retries
345
- * Added marker-based paging for users endpoints
346
- * Added `getNextMarker()` to PagingIterator to get the next marker
347
-
348
- ## [1.30.0](https://github.com/box/box-node-sdk/compare/v1.29.1...v1.30.0) (2019-11-21)
349
-
350
- * Deprecated Batch API methods
351
- * Added support for [token exchange](./lib/box-client.js#L495) using shared links
352
-
353
- ## [1.29.1](https://github.com/box/box-node-sdk/compare/v1.29.0...v1.29.1) (2019-08-22)
354
-
355
- * Fixed an issue where JWT authentication requests could fail after being rate limited
356
-
357
- ## [1.29.0](https://github.com/box/box-node-sdk/compare/v1.28.0...v1.29.0) (2019-04-25)
358
-
359
- * Added convenience methods for setting metadata on [files](./docs/metadata.md#set-metadata-on-a-file)
360
- and [folders](./docs/metadata.md#set-metadata-on-a-folder) ([#376](https://github.com/box/box-node-sdk/pull/376))
361
-
362
- ## [1.28.0](https://github.com/box/box-node-sdk/compare/v1.27.0...v1.28.0) (2019-03-28)
363
-
364
- * Added methods for [moving](./docs/web-links.md#move-a-web-link) and [copying](./docs/web-links.md#move-a-web-link)
365
- weblinks, as well as [adding or removing from a collection](./docs/web-links.md#add-web-link-to-a-collection)
366
-
367
- ## [1.27.0](https://github.com/box/box-node-sdk/compare/v1.26.2...v1.27.0) (2019-02-28)
368
-
369
- * Added the trace ID from API response headers to error messages for easier debugging
370
- * Added more safety checks in the error flow to protect against throwing when handling a malformed request
371
- * Added support for [retrieving a user's avatar image](./docs/users.md#get-user-avatar)
372
-
373
- ## [1.26.2](https://github.com/box/box-node-sdk/compare/v1.26.1...v1.26.2) (2019-02-22)
374
-
375
- * Fixed an error where under high request rates, code in the error handling logic could throw when handling a
376
- malformed request
377
-
378
- ## [1.26.1](https://github.com/box/box-node-sdk/compare/v1.26.0...v1.26.1) (2019-02-12)
379
-
380
- * Fixed an error where some methods could throw an error when constructing an iterator
381
-
382
- ## [1.26.0](https://github.com/box/box-node-sdk/compare/v1.25.0...v1.26.0) (2019-02-12)
383
-
384
- * Added support for [replying to a comment](./docs/comments.md#reply-to-a-comment) (thanks @jpan-box!)
385
- * Fixed an issue where calling `client.events.get()` could return an iterator that would only iterate over
386
- the first chunk of events. This method will now always return the raw JSON data in order to enable manual
387
- paging. For automatic paging through events, `client.events.getEventStream()` or
388
- `client.events.getEnterpriseEventStream()` should be used instead.
389
-
390
- ## [1.25.0](https://github.com/box/box-node-sdk/compare/v1.24.1...v1.25.0) (2019-01-24)
391
-
392
- * Added the `retryStrategy` config parameter to allow customizing how the SDK retries failing requests
393
-
394
- ## [1.24.1](https://github.com/box/box-node-sdk/compare/v1.24.0...v1.24.1) (2019-01-11)
395
-
396
- * Fixed an issue where token expiration was not being correctly handled
397
-
398
- ## [1.24.0](https://github.com/box/box-node-sdk/compare/v1.23.0...v1.24.0) (2018-12-10)
399
-
400
- * Added a configuration option for populating the first-party client analytics header information
401
-
402
- ## [1.23.0](https://github.com/box/box-node-sdk/compare/vA...v1.23.0) (2018-11-21)
403
-
404
- * Added an `etag` option to common file and folder methods to allow handling race conditions
405
- * [`client.files.update()`](./docs/files.md#update-a-files-information)
406
- * [`client.files.delete()`](./docs/files.md#delete-a-file)
407
- * [`client.files.deletePermanently()`](./docs/trash.md#delete-a-file-from-the-trash)
408
- * [`client.files.deleteVersion()`](./docs/files.md#delete-a-previous-file-version)
409
- * [`client.folders.update()`](./docs/folders.md#update-a-folders-information)
410
- * [`client.folders.delete()`](./docs/folders.md#delete-a-folder)
411
- * [`client.folders.deletePermanently()`](./docs/trash.md#delete-a-folder-from-the-trash)
412
-
413
- ## [1.22.1](https://github.com/box/box-node-sdk/compare/v1.22.0...v1.22.1) (2018-11-15)
414
-
415
- * Fixed an issue where retrying JWT auth token requests would sometimes fail due to a non-unique `jti` claim
416
-
417
- ## [1.22.0](https://github.com/box/box-node-sdk/compare/v1.21.0...v1.22.0) (2018-09-17)
418
-
419
- * Chunked Uploader methods now return promises for [simpler handling of chunked uploads](./docs/files.md#automatic-uploader)
420
- * File attributes to set on the newly-uploaded file can now be
421
- [passed via `options.fileAttributes`](./docs/files.md#automatic-uploader) when creating a Chunked Uploader
422
-
423
- ## [1.21.0](https://github.com/box/box-node-sdk/compare/v1.20.0...v1.21.0) (2018-09-13)
424
-
425
- * Added the ability to close an Event Stream by calling `eventStream.destroy()` (thanks @boneskull!)
426
- * Improved error messages related to certain authentication failure cases
427
-
428
- ## [1.20.0](https://github.com/box/box-node-sdk/compare/v1.19.0...v1.20.0) (2018-08-09)
429
-
430
- * Added missing values to the `client.webhooks.triggerTypes` enum (thanks @MathersMax!)
431
- * Added support for [Metadata Cascade Policies](./docs/metadata.md#create-cascade-policy)
432
-
433
- ## [1.19.0](https://github.com/box/box-node-sdk/compare/v1.18.0...v1.19.0) (2018-06-14)
434
-
435
- * Added `generateRepresentations` option to [`files.getRepresentationContent()`](./docs/files.md#get-representation-content)
436
-
437
- ## [1.18.0](https://github.com/box/box-node-sdk/compare/v1.17.0...v1.18.0) (2018-05-24)
438
-
439
- * Updated dependencies to resolve potential security issues:
440
- * `request@2.87.0`
441
- * Transitive dependencies of `jsonwebtoken@8.2.1`
442
- * Added a static `BoxSDK.getBasicClient()` method to enable creating a client without needing
443
- to specify a client ID and secret (thanks to @cbetta)
444
-
445
- ## [1.17.0](https://github.com/box/box-node-sdk/compare/v1.16.1...v1.17.0) (2018-05-10)
446
-
447
- * Updated dependencies: `request@2.85.0`, `jsonwebtoken@8.2.1`
448
- * Added support for [Storage Policies](./docs/storage-policies.md)
449
- * Added the option to use a Token Store for caching tokens with App Auth using JWT
450
-
451
- ## [1.16.1](https://github.com/box/box-node-sdk/compare/v1.16.0...v1.16.1) (2018-04-26)
452
-
453
- * Fixed a bug where metadata template deletion would not properly return results via callback
454
-
455
- ## [1.16.0](https://github.com/box/box-node-sdk/compare/v1.15.0...v1.16.0) (2018-04-10)
456
-
457
- * Added support for [assigning Retention Policies to Metadata Templates](https://github.com/box/box-node-sdk/blob/main/docs/retention-policies.md#assign-retention-policy)
458
-
459
- ## [1.15.0](https://github.com/box/box-node-sdk/compare/v1.14.1...v1.15.0) (2018-03-29)
460
-
461
- * Fixed [`client.webhooks.validateMessage() and `sdk.validateWebhookMessage()`](https://github.com/box/box-node-sdk/blob/main/docs/webhooks.md#validate-a-webhook-message)
462
- to accept the request body as an `Object`
463
- * Fixed `sdk.configure()` to correct reconfigure all options
464
- * Improved error messages for API errors and added the request object as `error.request` for easier debugging
465
-
466
- ## [1.14.1](https://github.com/box/box-node-sdk/compare/v1.14.0...v1.14.1) (2018-03-13)
467
-
468
- * Fixed a bug when `files.getReadStream()` was called with null options
469
-
470
- ## [1.14.0](https://github.com/box/box-node-sdk/compare/v1.13.0...v1.14.0) (2018-03-12)
471
-
472
- * Added support for [getting a metadata template by ID](./docs/metadata.md#get-by-id)
473
- * Added a `byteRange` option to [file download](./docs/files.md#download-a-file) to support partial file download
474
- * Improved error messages when using promises and in authentication flows
475
-
476
- ## [1.13.0](https://github.com/box/box-node-sdk/compare/v1.12.1...v1.13.0) (2018-03-01)
477
-
478
- * Added support for getting a [stream of file representation contents](./docs/files.md#get-representation-content)
479
- * Switched to using exponential backoff for request retries
480
-
481
- ## [1.12.1](https://github.com/box/box-node-sdk/compare/v1.12.0...v1.12.1) (2018-01-25)
482
-
483
- * Fixed an issue where chunked uploader would not work with response streams from the request library
484
- (0e7014561f9cd0f7f38f98536b3f0c3946231d2e)
485
-
486
- ## [1.12.0](https://github.com/box/box-node-sdk/compare/v1.11.0...v1.12.0) (2018-01-11)
487
-
488
- * Added support for [metadata template deletion](./docs/metadata.md#delete-metadata-template)
489
-
490
- ## [1.11.0](https://github.com/box/box-node-sdk/compare/v1.10.1...v1.11.0) (2017-12-12)
491
-
492
- * Added options to preserve file timestamps on [file upload](./docs/files.md#upload-a-file)
493
- and to rename a file or preserve modification timestamp on [new version upload](./docs/files.md#upload-a-new-version-of-a-file)
494
- * Added [Collaboration Whitelist](./docs/collaboration-whitelist.md) functionality to allow enterprise admins
495
- to control which external users can collaborate on their content
496
- * Added an option to Token Exchange to generate [annotator tokens](./docs/authentication.md#annotator-tokens) for use with Box View
497
-
498
- ## [1.10.1](https://github.com/box/box-node-sdk/compare/v1.10.0...v1.10.1) (2017-11-28)
499
-
500
- * Updated to jsonwebtoken@8.1.0 to fix an issue where some users were getting
501
- an error when using App Auth
502
-
503
- ## [1.10.0](https://github.com/box/box-node-sdk/compare/v1.9.0...v1.10.0) (2017-01-14)
504
-
505
- * Added support for [Terms of Service](./docs/terms-of-service.md) endpoints
506
- * Fixed a bug where receiving a collection without paging parameters from the API
507
- would cause the SDK to throw an exception when using the `iterators` SDK option.
508
- Now, this will return an iterator over the items returned by the API.
509
- * Fixed a bug in Token Exchange where passing multiple scopes would result in an error
510
- * Added support for [getting Representations info on a file](./docs/files.md#get-representation-info)
511
-
512
- ## [1.9.0](https://github.com/box/box-node-sdk/compare/v1.8.0...v1.9.0) (2017-09-12)
513
-
514
- * Fixed token methods to return bluebird Promises instead of native Promises
515
- * Added support for the `notify` and `can_view_path` options on Collaborations
516
-
517
- ## [1.8.0](https://github.com/box/box-node-sdk/compare/v1.7.0...v1.8.0) (2017-08-21)
518
-
519
- * Added support for [Batch API](./docs/client.md#batch-api)
520
- * Fixed a bug where the Event Stream would make more API calls than necessary,
521
- potentially hitting Box API rate limits
522
- * Added Promise support to methods on the SDK object
523
- * Added Node.js version to the User-Agent header that the SDK sends
524
- * Fixed a bug where using multiple Persistent Clients instances could cause some
525
- clients to end up with expired tokens
526
-
527
- ## [1.7.0](https://github.com/box/box-node-sdk/compare/v1.6.0...v1.7.0) (2017-07-19)
528
-
529
- * Add support for passing IP to all token methods, and fixed a bug where a client's IP was not being correctly reported on token refreshes
530
-
531
- ## [1.6.0](https://github.com/box/box-node-sdk/compare/v1.5.1...v1.6.0) (2017-06-23)
532
-
533
- * Added [Recent Items](./docs/recent-items.md) support
534
- * Updated app auth expiration time default value and validation
535
-
536
- ## [1.5.1](https://github.com/box/box-node-sdk/compare/v1.5.0...v1.5.1) (2017-06-15)
537
-
538
- * Revert deep-freezing Config properties, since it was causing errors
539
-
540
- ## [1.5.0](https://github.com/box/box-node-sdk/compare/v1.4.2...v1.5.0) (2017-06-15)
541
-
542
- * Added support for [Token Exchange](./docs/authentication.md#token-exchange),
543
- which allows a client to get downscoped tokens suitable for passing to a browser
544
- app or worker process.
545
- * Ensured deeply-nested Config properties are immutable
546
-
547
- ## [1.4.2](https://github.com/box/box-node-sdk/compare/v1.4.1...v1.4.2) (2017-05-22)
548
-
549
- * Fixed `BoxSDK.getPreconfiguredInstance()` to configure webhook keys
550
-
551
- ## [1.4.1](https://github.com/box/box-node-sdk/compare/v1.4.0...v1.4.1) (2017-05-22)
552
-
553
- * Fixed `BoxSDK.getPreconfiguredInstance()` when app auth setttings are not populated
554
-
555
- ## [1.4.0](https://github.com/box/box-node-sdk/compare/v1.3.0...v1.4.0) (2017-05-19)
556
-
557
- * Added support for [file collaborations](./docs/collaborations.md#add-a-collaboration).
558
- Users can now invite others to collaborate on single files.
559
- See [the blog post](https://blog.box.com/blog/file-collaboration-api/) for more information.
560
- * Fixed an issue where users were unable to use JWT Server Auth when their computers' clocks
561
- were not synchronized with the Box API servers.
562
- * All asynchronous client methods now return Promises in addition to taking a
563
- (now-optional) callback parameter, so you can write more modern JS with the SDK.
564
- * The SDK can now be preconfigured using a JSON blob that can be downloaded in the
565
- Box Dev Console for JWT Server Authentication apps, making it easier to get started
566
- developing!
567
- * Added support for [chunked upload](./docs/files.md#chunked-upload), where a large
568
- file can be uploaded one piece at a time. This makes large file uploads much faster
569
- and more reliable, since parts can be uploaded in parallel and failed parts can be
570
- retried in isolation.
571
- * Added an `is_confirmed` option to [email alias creation](./docs/users.md#add-email-alias) for
572
- admins to auto-confirm the alias.
573
- * Added support for the [Enterprise Events stream](./docs/events.md#enterprise-events).
574
- * Added an option to have collections methods (e.g. `folders.getItems()`,
575
- `enterprise.getUsers()`, etc) return [async iterators](./README.md#iterators) that will automatically
576
- page through the collection. This conforms to the [proposed async iteration spec](https://github.com/tc39/proposal-async-iteration),
577
- which will eventually allow them to be used in ergonomic for-await-of loop syntax.
578
-
579
- ## [1.3.0](https://github.com/box/box-node-sdk/compare/v1.2.0...v1.3.0) (2017-01-24)
580
-
581
- * Added `BoxSDK.validateWebhookMessage()` and `client.webhooks.validateMessage()` for validating webhook messages from Box
582
-
583
- ## [1.2.0](https://github.com/box/box-node-sdk/compare/v1.1.0...v1.2.0) (2016-12-12)
584
-
585
- * Added methods for all API endpoints; we now have full API coverage :tada:
586
- * Added support for renaming a file or folder on copy
587
- * Added `client.asUser(userID)` and `client.asSelf()` to support making calls on behalf of managed users
588
- * Fixed event streams so they don't go into an infinite error loop when auth expires
589
- * Fixed an error where App Auth clients would not be able to authorize due to clock skew
590
- * Fixed the `mdfilters` parameter in `client.search.query()` to support metadata search
591
- * Cloned options objects to prevent modification of passed-in objects by the SDK
592
- * Added better error messaging to the sample app
593
-
594
- ## [1.1.0](https://github.com/box/box-node-sdk/compare/v1.0.0...v1.1.0) (2016-09-27)
595
-
596
- * Added endpoint to get a file's tasks
597
- * Fixed issues with stream uploads
598
- * Improved performance of file uploads
599
- * Added endpoints to delete files and folders from trash
600
- * Added endpoint to get a trashed folder
601
- * Upgraded request dependency to fix ReDoS vulnerability
602
-
603
- ## [1.0.0] (2016-07-13)
604
-
605
- Initial release.