@deepgram/sdk 1.2.4 → 1.3.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/.devcontainer/Dockerfile +16 -0
  2. package/.devcontainer/devcontainer.json +29 -0
  3. package/CHANGELOG.md +196 -171
  4. package/CODE_OF_CONDUCT.md +127 -127
  5. package/CONTRIBUTING.md +50 -50
  6. package/LICENSE +21 -21
  7. package/README.md +151 -151
  8. package/dist/billing.d.ts +18 -0
  9. package/dist/billing.js +73 -0
  10. package/dist/billing.js.map +1 -0
  11. package/dist/constants/defaultOptions.d.ts +0 -0
  12. package/dist/constants/defaultOptions.js +0 -0
  13. package/dist/constants/defaultOptions.js.map +0 -0
  14. package/dist/constants/index.d.ts +0 -0
  15. package/dist/constants/index.js +5 -1
  16. package/dist/constants/index.js.map +1 -1
  17. package/dist/enums/alternatives.d.ts +0 -0
  18. package/dist/enums/alternatives.js +0 -0
  19. package/dist/enums/alternatives.js.map +0 -0
  20. package/dist/enums/connectionState.d.ts +0 -0
  21. package/dist/enums/connectionState.js +0 -0
  22. package/dist/enums/connectionState.js.map +0 -0
  23. package/dist/enums/diarization.d.ts +0 -0
  24. package/dist/enums/diarization.js +0 -0
  25. package/dist/enums/diarization.js.map +0 -0
  26. package/dist/enums/index.d.ts +0 -0
  27. package/dist/enums/index.js +5 -1
  28. package/dist/enums/index.js.map +1 -1
  29. package/dist/enums/liveTranscriptionEvents.d.ts +0 -0
  30. package/dist/enums/liveTranscriptionEvents.js +0 -0
  31. package/dist/enums/liveTranscriptionEvents.js.map +0 -0
  32. package/dist/enums/models.d.ts +0 -0
  33. package/dist/enums/models.js +0 -0
  34. package/dist/enums/models.js.map +0 -0
  35. package/dist/enums/punctuation.d.ts +0 -0
  36. package/dist/enums/punctuation.js +0 -0
  37. package/dist/enums/punctuation.js.map +0 -0
  38. package/dist/enums/searchKind.d.ts +0 -0
  39. package/dist/enums/searchKind.js +0 -0
  40. package/dist/enums/searchKind.js.map +0 -0
  41. package/dist/helpers/index.d.ts +0 -0
  42. package/dist/helpers/index.js +5 -1
  43. package/dist/helpers/index.js.map +1 -1
  44. package/dist/helpers/secondsToTimestamp.d.ts +0 -0
  45. package/dist/helpers/secondsToTimestamp.js +0 -0
  46. package/dist/helpers/secondsToTimestamp.js.map +0 -0
  47. package/dist/httpRequest.d.ts +0 -0
  48. package/dist/httpRequest.js +5 -5
  49. package/dist/httpRequest.js.map +1 -1
  50. package/dist/index.d.ts +8 -0
  51. package/dist/index.js +8 -0
  52. package/dist/index.js.map +1 -1
  53. package/dist/invitation.d.ts +29 -0
  54. package/dist/invitation.js +99 -0
  55. package/dist/invitation.js.map +1 -0
  56. package/dist/keys.d.ts +0 -0
  57. package/dist/keys.js +4 -4
  58. package/dist/keys.js.map +1 -1
  59. package/dist/members.d.ts +18 -0
  60. package/dist/members.js +73 -0
  61. package/dist/members.js.map +1 -0
  62. package/dist/projects.d.ts +0 -0
  63. package/dist/projects.js +2 -2
  64. package/dist/projects.js.map +1 -1
  65. package/dist/scopes.d.ts +20 -0
  66. package/dist/scopes.js +77 -0
  67. package/dist/scopes.js.map +1 -0
  68. package/dist/transcription/index.d.ts +0 -0
  69. package/dist/transcription/index.js +0 -0
  70. package/dist/transcription/index.js.map +0 -0
  71. package/dist/transcription/liveTranscription.d.ts +0 -0
  72. package/dist/transcription/liveTranscription.js +2 -2
  73. package/dist/transcription/liveTranscription.js.map +1 -1
  74. package/dist/transcription/preRecordedTranscription.d.ts +0 -0
  75. package/dist/transcription/preRecordedTranscription.js +1 -1
  76. package/dist/transcription/preRecordedTranscription.js.map +1 -1
  77. package/dist/types/balance.d.ts +6 -0
  78. package/dist/types/balance.js +3 -0
  79. package/dist/types/balance.js.map +1 -0
  80. package/dist/types/balanceList.d.ts +4 -0
  81. package/dist/types/balanceList.js +3 -0
  82. package/dist/types/balanceList.js.map +1 -0
  83. package/dist/types/channel.d.ts +0 -0
  84. package/dist/types/channel.js +0 -0
  85. package/dist/types/channel.js.map +0 -0
  86. package/dist/types/createKeyOptions.d.ts +0 -0
  87. package/dist/types/createKeyOptions.js +0 -0
  88. package/dist/types/createKeyOptions.js.map +0 -0
  89. package/dist/types/hit.d.ts +0 -0
  90. package/dist/types/hit.js +0 -0
  91. package/dist/types/hit.js.map +0 -0
  92. package/dist/types/index.d.ts +7 -0
  93. package/dist/types/index.js +12 -1
  94. package/dist/types/index.js.map +1 -1
  95. package/dist/types/invitationList.d.ts +4 -0
  96. package/dist/types/invitationList.js +3 -0
  97. package/dist/types/invitationList.js.map +1 -0
  98. package/dist/types/invitationOptions.d.ts +4 -0
  99. package/dist/types/invitationOptions.js +3 -0
  100. package/dist/types/invitationOptions.js.map +1 -0
  101. package/dist/types/key.d.ts +0 -0
  102. package/dist/types/key.js +0 -0
  103. package/dist/types/key.js.map +0 -0
  104. package/dist/types/keyResponse.d.ts +0 -0
  105. package/dist/types/keyResponse.js +0 -0
  106. package/dist/types/keyResponse.js.map +0 -0
  107. package/dist/types/keyword.d.ts +0 -0
  108. package/dist/types/keyword.js +0 -0
  109. package/dist/types/keyword.js.map +0 -0
  110. package/dist/types/liveTranscriptionOptions.d.ts +0 -0
  111. package/dist/types/liveTranscriptionOptions.js +0 -0
  112. package/dist/types/liveTranscriptionOptions.js.map +0 -0
  113. package/dist/types/liveTranscriptionResponse.d.ts +0 -0
  114. package/dist/types/liveTranscriptionResponse.js +0 -0
  115. package/dist/types/liveTranscriptionResponse.js.map +0 -0
  116. package/dist/types/member.d.ts +2 -1
  117. package/dist/types/member.js +0 -0
  118. package/dist/types/member.js.map +0 -0
  119. package/dist/types/memberList.d.ts +4 -0
  120. package/dist/types/memberList.js +3 -0
  121. package/dist/types/memberList.js.map +1 -0
  122. package/dist/types/message.d.ts +3 -0
  123. package/dist/types/message.js +3 -0
  124. package/dist/types/message.js.map +1 -0
  125. package/dist/types/metadata.d.ts +0 -0
  126. package/dist/types/metadata.js +0 -0
  127. package/dist/types/metadata.js.map +0 -0
  128. package/dist/types/prerecordedTranscriptionOptions.d.ts +0 -0
  129. package/dist/types/prerecordedTranscriptionOptions.js +0 -0
  130. package/dist/types/prerecordedTranscriptionOptions.js.map +0 -0
  131. package/dist/types/prerecordedTranscriptionResponse.d.ts +0 -0
  132. package/dist/types/prerecordedTranscriptionResponse.js +3 -3
  133. package/dist/types/prerecordedTranscriptionResponse.js.map +1 -1
  134. package/dist/types/project.d.ts +0 -0
  135. package/dist/types/project.js +0 -0
  136. package/dist/types/project.js.map +0 -0
  137. package/dist/types/projectPatchResponse.d.ts +0 -0
  138. package/dist/types/projectPatchResponse.js +0 -0
  139. package/dist/types/projectPatchResponse.js.map +0 -0
  140. package/dist/types/projectResponse.d.ts +0 -0
  141. package/dist/types/projectResponse.js +0 -0
  142. package/dist/types/projectResponse.js.map +0 -0
  143. package/dist/types/scopeList.d.ts +3 -0
  144. package/dist/types/scopeList.js +3 -0
  145. package/dist/types/scopeList.js.map +1 -0
  146. package/dist/types/search.d.ts +0 -0
  147. package/dist/types/search.js +0 -0
  148. package/dist/types/search.js.map +0 -0
  149. package/dist/types/transcriptionSource.d.ts +0 -0
  150. package/dist/types/transcriptionSource.js +0 -0
  151. package/dist/types/transcriptionSource.js.map +0 -0
  152. package/dist/types/usageCallback.d.ts +0 -0
  153. package/dist/types/usageCallback.js +0 -0
  154. package/dist/types/usageCallback.js.map +0 -0
  155. package/dist/types/usageField.d.ts +0 -0
  156. package/dist/types/usageField.js +0 -0
  157. package/dist/types/usageField.js.map +0 -0
  158. package/dist/types/usageFieldOptions.d.ts +0 -0
  159. package/dist/types/usageFieldOptions.js +0 -0
  160. package/dist/types/usageFieldOptions.js.map +0 -0
  161. package/dist/types/usageOptions.d.ts +0 -0
  162. package/dist/types/usageOptions.js +0 -0
  163. package/dist/types/usageOptions.js.map +0 -0
  164. package/dist/types/usageRequest.d.ts +0 -0
  165. package/dist/types/usageRequest.js +0 -0
  166. package/dist/types/usageRequest.js.map +0 -0
  167. package/dist/types/usageRequestDetail.d.ts +0 -0
  168. package/dist/types/usageRequestDetail.js +0 -0
  169. package/dist/types/usageRequestDetail.js.map +0 -0
  170. package/dist/types/usageRequestList.d.ts +0 -0
  171. package/dist/types/usageRequestList.js +0 -0
  172. package/dist/types/usageRequestList.js.map +0 -0
  173. package/dist/types/usageRequestListOptions.d.ts +0 -0
  174. package/dist/types/usageRequestListOptions.js +0 -0
  175. package/dist/types/usageRequestListOptions.js.map +0 -0
  176. package/dist/types/usageRequestMessage.d.ts +0 -0
  177. package/dist/types/usageRequestMessage.js +0 -0
  178. package/dist/types/usageRequestMessage.js.map +0 -0
  179. package/dist/types/usageResponse.d.ts +0 -0
  180. package/dist/types/usageResponse.js +0 -0
  181. package/dist/types/usageResponse.js.map +0 -0
  182. package/dist/types/usageResponseDetail.d.ts +0 -0
  183. package/dist/types/usageResponseDetail.js +0 -0
  184. package/dist/types/usageResponseDetail.js.map +0 -0
  185. package/dist/types/utterance.d.ts +0 -0
  186. package/dist/types/utterance.js +0 -0
  187. package/dist/types/utterance.js.map +0 -0
  188. package/dist/types/wordBase.d.ts +0 -0
  189. package/dist/types/wordBase.js +0 -0
  190. package/dist/types/wordBase.js.map +0 -0
  191. package/dist/usage.d.ts +0 -0
  192. package/dist/usage.js +4 -4
  193. package/dist/usage.js.map +1 -1
  194. package/dist/userAgent.d.ts +0 -0
  195. package/dist/userAgent.js +6 -7
  196. package/dist/userAgent.js.map +1 -1
  197. package/package.json +59 -57
@@ -0,0 +1,16 @@
1
+ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.231.2/containers/javascript-node/.devcontainer/base.Dockerfile
2
+
3
+ # [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
4
+ ARG VARIANT="16-bullseye"
5
+ FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
6
+
7
+ # [Optional] Uncomment this section to install additional OS packages.
8
+ # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9
+ # && apt-get -y install --no-install-recommends <your-package-list-here>
10
+
11
+ # [Optional] Uncomment if you want to install an additional version of node using nvm
12
+ # ARG EXTRA_NODE_VERSION=10
13
+ # RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
14
+
15
+ # [Optional] Uncomment if you want to install more global node modules
16
+ # RUN su node -c "npm install -g <your-package-list-here>"
@@ -0,0 +1,29 @@
1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.231.2/containers/javascript-node
3
+ {
4
+ "name": "Node.js",
5
+ "build": {
6
+ "dockerfile": "Dockerfile",
7
+ // Update 'VARIANT' to pick a Node version: 16, 14, 12.
8
+ // Append -bullseye or -buster to pin to an OS version.
9
+ // Use -bullseye variants on local arm64/Apple Silicon.
10
+ "args": { "VARIANT": "12" }
11
+ },
12
+
13
+ // Set *default* container specific settings.json values on container create.
14
+ "settings": {},
15
+
16
+ // Add the IDs of extensions you want installed when the container is created.
17
+ "extensions": [
18
+ "dbaeumer.vscode-eslint"
19
+ ],
20
+
21
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
22
+ // "forwardPorts": [],
23
+
24
+ // Use 'postCreateCommand' to run commands after the container is created.
25
+ // "postCreateCommand": "yarn install",
26
+
27
+ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
28
+ "remoteUser": "node"
29
+ }
package/CHANGELOG.md CHANGED
@@ -1,171 +1,196 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ---
11
-
12
- ## [1.2.4]
13
-
14
- ### Fixed
15
-
16
- - Getting the list of API keys was returning the wrong type of object. The SDK now returns the correct object type, but also returns what was previously implemented with deprecation notices.
17
- - The `version` parameter was typed as required for both pre-recorded and live transcription. Changed this to be optional.
18
-
19
- ## [1.2.2]
20
-
21
- ### Updated
22
-
23
- - Updated the `wordBase` type to include an optional `speaker` property.
24
- - Updated the documentation for the speaker property of the `utterance` type.
25
-
26
- ## [1.2.1]
27
-
28
- ### Fixed
29
-
30
- - Fixed a bug that caused real-time transcriptions to not close correctly. This
31
- would result in the user not received the final transcription.
32
-
33
- ## [1.2.0]
34
-
35
- ### Updated
36
-
37
- - Updated the `keys.create` function to allow new `expirationDate` or `timeToLive`
38
- values. These are optional and one at most can be provided. Providing both will
39
- throw an error.
40
-
41
- ## [1.1.0]
42
-
43
- ### Added
44
-
45
- - Prerecorded transcription responses can now be used to generate WebVTT and
46
- SRT caption files. Example:
47
-
48
- ```js
49
- const response = await deepgram.transcription.preRecorded(
50
- { url: "URL_TO_FILE" },
51
- {
52
- punctuate: true,
53
- utterances: true,
54
- }
55
- );
56
- const webVTT = response.toWebVTT();
57
- const SRT = response.toSRT();
58
- ```
59
-
60
- The [utterances](https://developers.deepgram.com/documentation/features/utterances/)
61
- feature is required to use this functionality.
62
-
63
- ## [1.0.3]
64
-
65
- ### Added
66
-
67
- - In addition to a Url and Buffer, `trascricription.preRecorded` now accepts a
68
- ReadStream as a source of the file to transcribe.
69
-
70
- ### Updated
71
-
72
- - Removed a console log that occurred when an HTTP request ended
73
-
74
- ## [1.0.2]
75
-
76
- ### Added
77
-
78
- - `deepgram.projects.update` will now update a project
79
- - Prerecorded transcription responses now include utterances
80
-
81
- ### Updated
82
-
83
- - The project type has been modified to the following:
84
-
85
- ```ts
86
- {
87
- project_id: string;
88
- name?: string;
89
- company?: string;
90
- };
91
- ```
92
-
93
- - The key type has been modified to the following:
94
-
95
- ```ts
96
- {
97
- api_key_id: string;
98
- key?: string;
99
- comment: string;
100
- created: string;
101
- scopes: Array<string>;
102
- };
103
- ```
104
-
105
- - The usage request type has been modified to the following:
106
-
107
- ```ts
108
- {
109
- request_id: string;
110
- created: string;
111
- path: string;
112
- accessor: string;
113
- response?: UsageRequestDetail | UsageRequestMessage;
114
- callback?: UsageCallback;
115
- };
116
- ```
117
-
118
- ## [1.0.0]
119
-
120
- ### Added
121
-
122
- #### Live transcription
123
-
124
- - `deepgram.transcription.live` now manages a websocket connection to Deepgram's API
125
- for live transcription
126
-
127
- #### Projects
128
-
129
- - `deepgram.projects` allows listing projects or getting a specific project from
130
- your Deepgram account
131
-
132
- ### Updated
133
-
134
- #### Pre-recorded transcription
135
-
136
- - `deepgram.batch` has been moved to `deepgram.transcription.preRecorded`
137
- - Type of `source` parameter of pre-recorded transcriptions has changed. You can now
138
- send one of two types of objects: `{ url: YOUR_FILES_URL }` or
139
- `{ buffer: BUFFER_OF_YOUR_FILE, mimetype: FILES_MIME_TYPE }`
140
-
141
- #### API Key management
142
-
143
- - All `deepgram.keys` methods now require a `projectId`.
144
- - `deepgram.keys.create` now requires an additional parameter `scopes`. This is a
145
- string array specifying the scopes available to the newly created API key
146
-
147
- ## [0.6.5]
148
-
149
- - Added notice to README to denote the library is in a very unstable state.
150
-
151
- ## [0.6.4]
152
-
153
- ### Added
154
-
155
- - `transcribe` method will now return transcription results for both urls or buffers.
156
- - `keys` now provides `create`, `list`, and `delete` methods that allow managing of
157
- API keys.
158
-
159
- ---
160
-
161
- [unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.4...HEAD
162
- [1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.2...1.2.4
163
- [1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.1...1.2.2
164
- [1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
165
- [1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0
166
- [1.1.0]: https://github.com/deepgram/node-sdk/compare/1.0.3...1.1.0
167
- [1.0.3]: https://github.com/deepgram/node-sdk/compare/1.0.2...1.0.3
168
- [1.0.2]: https://github.com/deepgram/node-sdk/compare/1.0.0...1.0.2
169
- [1.0.0]: https://github.com/deepgram/node-sdk/compare/0.6.5...1.0.0
170
- [0.6.5]: https://github.com/deepgram/node-sdk/compare/0.6.4...0.6.5
171
- [0.6.4]: https://github.com/deepgram/node-sdk/compare/edc07b4...0.6.4
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ---
11
+
12
+ ## [1.3.1-beta]
13
+
14
+ ### Updated
15
+
16
+ - Updated user-agent header to be generated on build rather than on demand.
17
+
18
+ ## [1.3.0]
19
+
20
+ ### Added
21
+
22
+ - Added Message Class for generic message responses
23
+ - Added member endpoint functionality
24
+ - This includes the `listMembers` and `removeMember` methods
25
+ - Added Member and MemberList Class
26
+ - Added scopes endpoint functionality
27
+ - This includes the `get` and `update` methods
28
+ - Added ScopeList Class
29
+ - Added invites endpoint functionality
30
+ - This includes the `list`, `send`, `leave` and `delete` methods
31
+ - Added InvitationOptions and InvitationList Class
32
+ - Added balances endpoint functionality
33
+ - This includes the `listBalances` and `getBalance` methods
34
+ - Added Balance and BalanceList Class
35
+
36
+ ## [1.2.4]
37
+
38
+ ### Fixed
39
+
40
+ - Getting the list of API keys was returning the wrong type of object. The SDK now returns the correct object type, but also returns what was previously implemented with deprecation notices.
41
+ - The `version` parameter was typed as required for both pre-recorded and live transcription. Changed this to be optional.
42
+
43
+ ## [1.2.2]
44
+
45
+ ### Updated
46
+
47
+ - Updated the `wordBase` type to include an optional `speaker` property.
48
+ - Updated the documentation for the speaker property of the `utterance` type.
49
+
50
+ ## [1.2.1]
51
+
52
+ ### Fixed
53
+
54
+ - Fixed a bug that caused real-time transcriptions to not close correctly. This
55
+ would result in the user not received the final transcription.
56
+
57
+ ## [1.2.0]
58
+
59
+ ### Updated
60
+
61
+ - Updated the `keys.create` function to allow new `expirationDate` or `timeToLive`
62
+ values. These are optional and one at most can be provided. Providing both will
63
+ throw an error.
64
+
65
+ ## [1.1.0]
66
+
67
+ ### Added
68
+
69
+ - Prerecorded transcription responses can now be used to generate WebVTT and
70
+ SRT caption files. Example:
71
+
72
+ ```js
73
+ const response = await deepgram.transcription.preRecorded(
74
+ { url: "URL_TO_FILE" },
75
+ {
76
+ punctuate: true,
77
+ utterances: true,
78
+ }
79
+ );
80
+ const webVTT = response.toWebVTT();
81
+ const SRT = response.toSRT();
82
+ ```
83
+
84
+ The [utterances](https://developers.deepgram.com/documentation/features/utterances/)
85
+ feature is required to use this functionality.
86
+
87
+ ## [1.0.3]
88
+
89
+ ### Added
90
+
91
+ - In addition to a Url and Buffer, `trascricription.preRecorded` now accepts a
92
+ ReadStream as a source of the file to transcribe.
93
+
94
+ ### Updated
95
+
96
+ - Removed a console log that occurred when an HTTP request ended
97
+
98
+ ## [1.0.2]
99
+
100
+ ### Added
101
+
102
+ - `deepgram.projects.update` will now update a project
103
+ - Prerecorded transcription responses now include utterances
104
+
105
+ ### Updated
106
+
107
+ - The project type has been modified to the following:
108
+
109
+ ```ts
110
+ {
111
+ project_id: string;
112
+ name?: string;
113
+ company?: string;
114
+ };
115
+ ```
116
+
117
+ - The key type has been modified to the following:
118
+
119
+ ```ts
120
+ {
121
+ api_key_id: string;
122
+ key?: string;
123
+ comment: string;
124
+ created: string;
125
+ scopes: Array<string>;
126
+ };
127
+ ```
128
+
129
+ - The usage request type has been modified to the following:
130
+
131
+ ```ts
132
+ {
133
+ request_id: string;
134
+ created: string;
135
+ path: string;
136
+ accessor: string;
137
+ response?: UsageRequestDetail | UsageRequestMessage;
138
+ callback?: UsageCallback;
139
+ };
140
+ ```
141
+
142
+ ## [1.0.0]
143
+
144
+ ### Added
145
+
146
+ #### Live transcription
147
+
148
+ - `deepgram.transcription.live` now manages a websocket connection to Deepgram's API
149
+ for live transcription
150
+
151
+ #### Projects
152
+
153
+ - `deepgram.projects` allows listing projects or getting a specific project from
154
+ your Deepgram account
155
+
156
+ ### Updated
157
+
158
+ #### Pre-recorded transcription
159
+
160
+ - `deepgram.batch` has been moved to `deepgram.transcription.preRecorded`
161
+ - Type of `source` parameter of pre-recorded transcriptions has changed. You can now
162
+ send one of two types of objects: `{ url: YOUR_FILES_URL }` or
163
+ `{ buffer: BUFFER_OF_YOUR_FILE, mimetype: FILES_MIME_TYPE }`
164
+
165
+ #### API Key management
166
+
167
+ - All `deepgram.keys` methods now require a `projectId`.
168
+ - `deepgram.keys.create` now requires an additional parameter `scopes`. This is a
169
+ string array specifying the scopes available to the newly created API key
170
+
171
+ ## [0.6.5]
172
+
173
+ - Added notice to README to denote the library is in a very unstable state.
174
+
175
+ ## [0.6.4]
176
+
177
+ ### Added
178
+
179
+ - `transcribe` method will now return transcription results for both urls or buffers.
180
+ - `keys` now provides `create`, `list`, and `delete` methods that allow managing of
181
+ API keys.
182
+
183
+ ---
184
+
185
+ [unreleased]: https://github.com/deepgram/node-sdk/compare/1.3.0...HEAD
186
+ [1.3.0]: https://github.com/deepgram/node-sdk/compare/1.2.2...1.2.4
187
+ [1.2.4]: https://github.com/deepgram/node-sdk/compare/1.2.2...1.2.4
188
+ [1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.1...1.2.2
189
+ [1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
190
+ [1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0
191
+ [1.1.0]: https://github.com/deepgram/node-sdk/compare/1.0.3...1.1.0
192
+ [1.0.3]: https://github.com/deepgram/node-sdk/compare/1.0.2...1.0.3
193
+ [1.0.2]: https://github.com/deepgram/node-sdk/compare/1.0.0...1.0.2
194
+ [1.0.0]: https://github.com/deepgram/node-sdk/compare/0.6.5...1.0.0
195
+ [0.6.5]: https://github.com/deepgram/node-sdk/compare/0.6.4...0.6.5
196
+ [0.6.4]: https://github.com/deepgram/node-sdk/compare/edc07b4...0.6.4