@deepgram/sdk 1.2.2 → 1.3.1-beta

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 -163
  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 +6 -6
  12. package/dist/constants/defaultOptions.js +9 -9
  13. package/dist/constants/defaultOptions.js.map +0 -0
  14. package/dist/constants/index.d.ts +1 -1
  15. package/dist/constants/index.js +17 -13
  16. package/dist/constants/index.js.map +1 -1
  17. package/dist/enums/alternatives.d.ts +4 -4
  18. package/dist/enums/alternatives.js +2 -2
  19. package/dist/enums/alternatives.js.map +0 -0
  20. package/dist/enums/connectionState.d.ts +6 -6
  21. package/dist/enums/connectionState.js +10 -10
  22. package/dist/enums/connectionState.js.map +0 -0
  23. package/dist/enums/diarization.d.ts +4 -4
  24. package/dist/enums/diarization.js +2 -2
  25. package/dist/enums/diarization.js.map +0 -0
  26. package/dist/enums/index.d.ts +7 -7
  27. package/dist/enums/index.js +23 -19
  28. package/dist/enums/index.js.map +1 -1
  29. package/dist/enums/liveTranscriptionEvents.d.ts +6 -6
  30. package/dist/enums/liveTranscriptionEvents.js +2 -2
  31. package/dist/enums/liveTranscriptionEvents.js.map +0 -0
  32. package/dist/enums/models.d.ts +5 -5
  33. package/dist/enums/models.js +2 -2
  34. package/dist/enums/models.js.map +0 -0
  35. package/dist/enums/punctuation.d.ts +4 -4
  36. package/dist/enums/punctuation.js +2 -2
  37. package/dist/enums/punctuation.js.map +0 -0
  38. package/dist/enums/searchKind.d.ts +4 -4
  39. package/dist/enums/searchKind.js +2 -2
  40. package/dist/enums/searchKind.js.map +0 -0
  41. package/dist/helpers/index.d.ts +1 -1
  42. package/dist/helpers/index.js +17 -13
  43. package/dist/helpers/index.js.map +1 -1
  44. package/dist/helpers/secondsToTimestamp.d.ts +1 -1
  45. package/dist/helpers/secondsToTimestamp.js +7 -7
  46. package/dist/helpers/secondsToTimestamp.js.map +0 -0
  47. package/dist/httpRequest.d.ts +3 -3
  48. package/dist/httpRequest.js +90 -90
  49. package/dist/httpRequest.js.map +1 -1
  50. package/dist/index.d.ts +25 -17
  51. package/dist/index.js +40 -32
  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 +32 -32
  57. package/dist/keys.js +131 -111
  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 +21 -21
  63. package/dist/projects.js +81 -81
  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 +18 -18
  69. package/dist/transcription/index.js +71 -71
  70. package/dist/transcription/index.js.map +0 -0
  71. package/dist/transcription/liveTranscription.d.ts +23 -23
  72. package/dist/transcription/liveTranscription.js +82 -82
  73. package/dist/transcription/liveTranscription.js.map +1 -1
  74. package/dist/transcription/preRecordedTranscription.d.ts +8 -8
  75. package/dist/transcription/preRecordedTranscription.js +113 -113
  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 +25 -25
  84. package/dist/types/channel.js +2 -2
  85. package/dist/types/channel.js.map +0 -0
  86. package/dist/types/createKeyOptions.d.ts +13 -13
  87. package/dist/types/createKeyOptions.js +2 -2
  88. package/dist/types/createKeyOptions.js.map +0 -0
  89. package/dist/types/hit.d.ts +21 -21
  90. package/dist/types/hit.js +2 -2
  91. package/dist/types/hit.js.map +0 -0
  92. package/dist/types/index.d.ts +35 -28
  93. package/dist/types/index.js +51 -40
  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 +25 -25
  102. package/dist/types/key.js +2 -2
  103. package/dist/types/key.js.map +0 -0
  104. package/dist/types/keyResponse.d.ts +50 -10
  105. package/dist/types/keyResponse.js +2 -2
  106. package/dist/types/keyResponse.js.map +0 -0
  107. package/dist/types/keyword.d.ts +4 -4
  108. package/dist/types/keyword.js +2 -2
  109. package/dist/types/keyword.js.map +0 -0
  110. package/dist/types/liveTranscriptionOptions.d.ts +148 -148
  111. package/dist/types/liveTranscriptionOptions.js +2 -2
  112. package/dist/types/liveTranscriptionOptions.js.map +0 -0
  113. package/dist/types/liveTranscriptionResponse.d.ts +9 -9
  114. package/dist/types/liveTranscriptionResponse.js +2 -2
  115. package/dist/types/liveTranscriptionResponse.js.map +0 -0
  116. package/dist/types/member.d.ts +7 -6
  117. package/dist/types/member.js +2 -2
  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 +8 -8
  126. package/dist/types/metadata.js +2 -2
  127. package/dist/types/metadata.js.map +0 -0
  128. package/dist/types/prerecordedTranscriptionOptions.d.ts +126 -126
  129. package/dist/types/prerecordedTranscriptionOptions.js +2 -2
  130. package/dist/types/prerecordedTranscriptionOptions.js.map +0 -0
  131. package/dist/types/prerecordedTranscriptionResponse.d.ts +25 -25
  132. package/dist/types/prerecordedTranscriptionResponse.js +50 -50
  133. package/dist/types/prerecordedTranscriptionResponse.js.map +1 -1
  134. package/dist/types/project.d.ts +17 -17
  135. package/dist/types/project.js +2 -2
  136. package/dist/types/project.js.map +0 -0
  137. package/dist/types/projectPatchResponse.d.ts +6 -6
  138. package/dist/types/projectPatchResponse.js +2 -2
  139. package/dist/types/projectPatchResponse.js.map +0 -0
  140. package/dist/types/projectResponse.d.ts +4 -4
  141. package/dist/types/projectResponse.js +2 -2
  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 +14 -14
  147. package/dist/types/search.js +2 -2
  148. package/dist/types/search.js.map +0 -0
  149. package/dist/types/transcriptionSource.d.ts +14 -14
  150. package/dist/types/transcriptionSource.js +2 -2
  151. package/dist/types/transcriptionSource.js.map +0 -0
  152. package/dist/types/usageCallback.d.ts +4 -4
  153. package/dist/types/usageCallback.js +2 -2
  154. package/dist/types/usageCallback.js.map +0 -0
  155. package/dist/types/usageField.d.ts +7 -7
  156. package/dist/types/usageField.js +2 -2
  157. package/dist/types/usageField.js.map +0 -0
  158. package/dist/types/usageFieldOptions.d.ts +4 -4
  159. package/dist/types/usageFieldOptions.js +2 -2
  160. package/dist/types/usageFieldOptions.js.map +0 -0
  161. package/dist/types/usageOptions.d.ts +23 -23
  162. package/dist/types/usageOptions.js +2 -2
  163. package/dist/types/usageOptions.js.map +0 -0
  164. package/dist/types/usageRequest.d.ts +11 -11
  165. package/dist/types/usageRequest.js +2 -2
  166. package/dist/types/usageRequest.js.map +0 -0
  167. package/dist/types/usageRequestDetail.d.ts +30 -30
  168. package/dist/types/usageRequestDetail.js +2 -2
  169. package/dist/types/usageRequestDetail.js.map +0 -0
  170. package/dist/types/usageRequestList.d.ts +6 -6
  171. package/dist/types/usageRequestList.js +2 -2
  172. package/dist/types/usageRequestList.js.map +0 -0
  173. package/dist/types/usageRequestListOptions.d.ts +7 -7
  174. package/dist/types/usageRequestListOptions.js +2 -2
  175. package/dist/types/usageRequestListOptions.js.map +0 -0
  176. package/dist/types/usageRequestMessage.d.ts +3 -3
  177. package/dist/types/usageRequestMessage.js +2 -2
  178. package/dist/types/usageRequestMessage.js.map +0 -0
  179. package/dist/types/usageResponse.d.ts +10 -10
  180. package/dist/types/usageResponse.js +2 -2
  181. package/dist/types/usageResponse.js.map +0 -0
  182. package/dist/types/usageResponseDetail.d.ts +6 -6
  183. package/dist/types/usageResponseDetail.js +2 -2
  184. package/dist/types/usageResponseDetail.js.map +0 -0
  185. package/dist/types/utterance.d.ts +39 -39
  186. package/dist/types/utterance.js +2 -2
  187. package/dist/types/utterance.js.map +0 -0
  188. package/dist/types/wordBase.d.ts +8 -8
  189. package/dist/types/wordBase.js +2 -2
  190. package/dist/types/wordBase.js.map +0 -0
  191. package/dist/usage.d.ts +34 -34
  192. package/dist/usage.js +121 -121
  193. package/dist/usage.js.map +1 -1
  194. package/dist/userAgent.d.ts +1 -1
  195. package/dist/userAgent.js +19 -20
  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,163 +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.2]
13
-
14
- ### Updated
15
-
16
- - Updated the `wordBase` type to include an optional `speaker` property.
17
- - Updated the documentation for the speaker property of the `utterance` type.
18
-
19
- ## [1.2.1]
20
-
21
- ### Fixed
22
-
23
- - Fixed a bug that caused real-time transcriptions to not close correctly. This
24
- would result in the user not received the final transcription.
25
-
26
- ## [1.2.0]
27
-
28
- ### Updated
29
-
30
- - Updated the `keys.create` function to allow new `expirationDate` or `timeToLive`
31
- values. These are optional and one at most can be provided. Providing both will
32
- throw an error.
33
-
34
- ## [1.1.0]
35
-
36
- ### Added
37
-
38
- - Prerecorded transcription responses can now be used to generate WebVTT and
39
- SRT caption files. Example:
40
-
41
- ```js
42
- const response = await deepgram.transcription.preRecorded(
43
- { url: "URL_TO_FILE" },
44
- {
45
- punctuate: true,
46
- utterances: true,
47
- }
48
- );
49
- const webVTT = response.toWebVTT();
50
- const SRT = response.toSRT();
51
- ```
52
-
53
- The [utterances](https://developers.deepgram.com/documentation/features/utterances/)
54
- feature is required to use this functionality.
55
-
56
- ## [1.0.3]
57
-
58
- ### Added
59
-
60
- - In addition to a Url and Buffer, `trascricription.preRecorded` now accepts a
61
- ReadStream as a source of the file to transcribe.
62
-
63
- ### Updated
64
-
65
- - Removed a console log that occurred when an HTTP request ended
66
-
67
- ## [1.0.2]
68
-
69
- ### Added
70
-
71
- - `deepgram.projects.update` will now update a project
72
- - Prerecorded transcription responses now include utterances
73
-
74
- ### Updated
75
-
76
- - The project type has been modified to the following:
77
-
78
- ```ts
79
- {
80
- project_id: string;
81
- name?: string;
82
- company?: string;
83
- };
84
- ```
85
-
86
- - The key type has been modified to the following:
87
-
88
- ```ts
89
- {
90
- api_key_id: string;
91
- key?: string;
92
- comment: string;
93
- created: string;
94
- scopes: Array<string>;
95
- };
96
- ```
97
-
98
- - The usage request type has been modified to the following:
99
-
100
- ```ts
101
- {
102
- request_id: string;
103
- created: string;
104
- path: string;
105
- accessor: string;
106
- response?: UsageRequestDetail | UsageRequestMessage;
107
- callback?: UsageCallback;
108
- };
109
- ```
110
-
111
- ## [1.0.0]
112
-
113
- ### Added
114
-
115
- #### Live transcription
116
-
117
- - `deepgram.transcription.live` now manages a websocket connection to Deepgram's API
118
- for live transcription
119
-
120
- #### Projects
121
-
122
- - `deepgram.projects` allows listing projects or getting a specific project from
123
- your Deepgram account
124
-
125
- ### Updated
126
-
127
- #### Pre-recorded transcription
128
-
129
- - `deepgram.batch` has been moved to `deepgram.transcription.preRecorded`
130
- - Type of `source` parameter of pre-recorded transcriptions has changed. You can now
131
- send one of two types of objects: `{ url: YOUR_FILES_URL }` or
132
- `{ buffer: BUFFER_OF_YOUR_FILE, mimetype: FILES_MIME_TYPE }`
133
-
134
- #### API Key management
135
-
136
- - All `deepgram.keys` methods now require a `projectId`.
137
- - `deepgram.keys.create` now requires an additional parameter `scopes`. This is a
138
- string array specifying the scopes available to the newly created API key
139
-
140
- ## [0.6.5]
141
-
142
- - Added notice to README to denote the library is in a very unstable state.
143
-
144
- ## [0.6.4]
145
-
146
- ### Added
147
-
148
- - `transcribe` method will now return transcription results for both urls or buffers.
149
- - `keys` now provides `create`, `list`, and `delete` methods that allow managing of
150
- API keys.
151
-
152
- ---
153
-
154
- [unreleased]: https://github.com/deepgram/node-sdk/compare/1.2.2...HEAD
155
- [1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.1...1.2.2
156
- [1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
157
- [1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0
158
- [1.1.0]: https://github.com/deepgram/node-sdk/compare/1.0.3...1.1.0
159
- [1.0.3]: https://github.com/deepgram/node-sdk/compare/1.0.2...1.0.3
160
- [1.0.2]: https://github.com/deepgram/node-sdk/compare/1.0.0...1.0.2
161
- [1.0.0]: https://github.com/deepgram/node-sdk/compare/0.6.5...1.0.0
162
- [0.6.5]: https://github.com/deepgram/node-sdk/compare/0.6.4...0.6.5
163
- [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
@@ -1,128 +1,128 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our
6
- community a harassment-free experience for everyone, regardless of age, body
7
- size, visible or invisible disability, ethnicity, sex characteristics, gender
8
- identity and expression, level of experience, education, socio-economic status,
9
- nationality, personal appearance, race, religion, or sexual identity
10
- and orientation.
11
-
12
- We pledge to act and interact in ways that contribute to an open, welcoming,
13
- diverse, inclusive, and healthy community.
14
-
15
- ## Our Standards
16
-
17
- Examples of behavior that contributes to a positive environment for our
18
- community include:
19
-
20
- - Demonstrating empathy and kindness toward other people
21
- - Being respectful of differing opinions, viewpoints, and experiences
22
- - Giving and gracefully accepting constructive feedback
23
- - Accepting responsibility and apologizing to those affected by our mistakes,
24
- and learning from the experience
25
- - Focusing on what is best not just for us as individuals, but for the
26
- overall community
27
-
28
- Examples of unacceptable behavior include:
29
-
30
- - The use of sexualized language or imagery, and sexual attention or
31
- advances of any kind
32
- - Trolling, insulting or derogatory comments, and personal or political attacks
33
- - Public or private harassment
34
- - Publishing others' private information, such as a physical or email
35
- address, without their explicit permission
36
- - Other conduct which could reasonably be considered inappropriate in a
37
- professional setting
38
-
39
- ## Enforcement Responsibilities
40
-
41
- Community leaders are responsible for clarifying and enforcing our standards of
42
- acceptable behavior and will take appropriate and fair corrective action in
43
- response to any behavior that they deem inappropriate, threatening, offensive,
44
- or harmful.
45
-
46
- Community leaders have the right and responsibility to remove, edit, or reject
47
- comments, commits, code, wiki edits, issues, and other contributions that are
48
- not aligned to this Code of Conduct, and will communicate reasons for moderation
49
- decisions when appropriate.
50
-
51
- ## Scope
52
-
53
- This Code of Conduct applies within all community spaces, and also applies when
54
- an individual is officially representing the community in public spaces.
55
- Examples of representing our community include using an official e-mail address,
56
- posting via an official social media account, or acting as an appointed
57
- representative at an online or offline event.
58
-
59
- ## Enforcement
60
-
61
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
- reported to the community leaders responsible for enforcement at
63
- devrel@deepgram.com.
64
- All complaints will be reviewed and investigated promptly and fairly.
65
-
66
- All community leaders are obligated to respect the privacy and security of the
67
- reporter of any incident.
68
-
69
- ## Enforcement Guidelines
70
-
71
- Community leaders will follow these Community Impact Guidelines in determining
72
- the consequences for any action they deem in violation of this Code of Conduct:
73
-
74
- ### 1. Correction
75
-
76
- **Community Impact**: Use of inappropriate language or other behavior deemed
77
- unprofessional or unwelcome in the community.
78
-
79
- **Consequence**: A private, written warning from community leaders, providing
80
- clarity around the nature of the violation and an explanation of why the
81
- behavior was inappropriate. A public apology may be requested.
82
-
83
- ### 2. Warning
84
-
85
- **Community Impact**: A violation through a single incident or series
86
- of actions.
87
-
88
- **Consequence**: A warning with consequences for continued behavior. No
89
- interaction with the people involved, including unsolicited interaction with
90
- those enforcing the Code of Conduct, for a specified period of time. This
91
- includes avoiding interactions in community spaces as well as external channels
92
- like social media. Violating these terms may lead to a temporary or
93
- permanent ban.
94
-
95
- ### 3. Temporary Ban
96
-
97
- **Community Impact**: A serious violation of community standards, including
98
- sustained inappropriate behavior.
99
-
100
- **Consequence**: A temporary ban from any sort of interaction or public
101
- communication with the community for a specified period of time. No public or
102
- private interaction with the people involved, including unsolicited interaction
103
- with those enforcing the Code of Conduct, is allowed during this period.
104
- Violating these terms may lead to a permanent ban.
105
-
106
- ### 4. Permanent Ban
107
-
108
- **Community Impact**: Demonstrating a pattern of violation of community
109
- standards, including sustained inappropriate behavior, harassment of an
110
- individual, or aggression toward or disparagement of classes of individuals.
111
-
112
- **Consequence**: A permanent ban from any sort of public interaction within
113
- the community.
114
-
115
- ## Attribution
116
-
117
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
- version 2.0, available at
119
- https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
-
121
- Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
- enforcement ladder](https://github.com/mozilla/diversity).
123
-
124
- [homepage]: https://www.contributor-covenant.org
125
-
126
- For answers to common questions about this code of conduct, see the FAQ at
127
- https://www.contributor-covenant.org/faq. Translations are available at
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ - Demonstrating empathy and kindness toward other people
21
+ - Being respectful of differing opinions, viewpoints, and experiences
22
+ - Giving and gracefully accepting constructive feedback
23
+ - Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ - Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ - The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ - Trolling, insulting or derogatory comments, and personal or political attacks
33
+ - Public or private harassment
34
+ - Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ - Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ devrel@deepgram.com.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
128
  https://www.contributor-covenant.org/translations.