@deepgram/sdk 1.3.1-beta.1 → 1.3.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.
- package/CHANGELOG.md +197 -196
- package/CODE_OF_CONDUCT.md +127 -127
- package/CONTRIBUTING.md +50 -50
- package/LICENSE +21 -21
- package/README.md +151 -151
- package/dist/billing.d.ts +0 -0
- package/dist/billing.js +0 -0
- package/dist/billing.js.map +0 -0
- package/dist/constants/defaultOptions.d.ts +0 -0
- package/dist/constants/defaultOptions.js +0 -0
- package/dist/constants/defaultOptions.js.map +0 -0
- package/dist/constants/index.d.ts +0 -0
- package/dist/constants/index.js +0 -0
- package/dist/constants/index.js.map +0 -0
- package/dist/enums/alternatives.d.ts +0 -0
- package/dist/enums/alternatives.js +0 -0
- package/dist/enums/alternatives.js.map +0 -0
- package/dist/enums/connectionState.d.ts +0 -0
- package/dist/enums/connectionState.js +0 -0
- package/dist/enums/connectionState.js.map +0 -0
- package/dist/enums/diarization.d.ts +0 -0
- package/dist/enums/diarization.js +0 -0
- package/dist/enums/diarization.js.map +0 -0
- package/dist/enums/index.d.ts +0 -0
- package/dist/enums/index.js +0 -0
- package/dist/enums/index.js.map +0 -0
- package/dist/enums/liveTranscriptionEvents.d.ts +0 -0
- package/dist/enums/liveTranscriptionEvents.js +0 -0
- package/dist/enums/liveTranscriptionEvents.js.map +0 -0
- package/dist/enums/models.d.ts +0 -0
- package/dist/enums/models.js +0 -0
- package/dist/enums/models.js.map +0 -0
- package/dist/enums/punctuation.d.ts +0 -0
- package/dist/enums/punctuation.js +0 -0
- package/dist/enums/punctuation.js.map +0 -0
- package/dist/enums/searchKind.d.ts +0 -0
- package/dist/enums/searchKind.js +0 -0
- package/dist/enums/searchKind.js.map +0 -0
- package/dist/helpers/index.d.ts +0 -0
- package/dist/helpers/index.js +0 -0
- package/dist/helpers/index.js.map +0 -0
- package/dist/helpers/secondsToTimestamp.d.ts +0 -0
- package/dist/helpers/secondsToTimestamp.js +0 -0
- package/dist/helpers/secondsToTimestamp.js.map +0 -0
- package/dist/httpRequest.d.ts +0 -0
- package/dist/httpRequest.js +0 -0
- package/dist/httpRequest.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/invitation.d.ts +0 -0
- package/dist/invitation.js +0 -0
- package/dist/invitation.js.map +0 -0
- package/dist/keys.d.ts +0 -0
- package/dist/keys.js +0 -0
- package/dist/keys.js.map +0 -0
- package/dist/members.d.ts +0 -0
- package/dist/members.js +0 -0
- package/dist/members.js.map +0 -0
- package/dist/projects.d.ts +0 -0
- package/dist/projects.js +0 -0
- package/dist/projects.js.map +0 -0
- package/dist/scopes.d.ts +0 -0
- package/dist/scopes.js +0 -0
- package/dist/scopes.js.map +0 -0
- package/dist/transcription/index.d.ts +0 -0
- package/dist/transcription/index.js +0 -0
- package/dist/transcription/index.js.map +0 -0
- package/dist/transcription/liveTranscription.d.ts +0 -0
- package/dist/transcription/liveTranscription.js +0 -0
- package/dist/transcription/liveTranscription.js.map +0 -0
- package/dist/transcription/preRecordedTranscription.d.ts +0 -0
- package/dist/transcription/preRecordedTranscription.js +0 -0
- package/dist/transcription/preRecordedTranscription.js.map +0 -0
- package/dist/types/balance.d.ts +0 -0
- package/dist/types/balance.js +0 -0
- package/dist/types/balance.js.map +0 -0
- package/dist/types/balanceList.d.ts +0 -0
- package/dist/types/balanceList.js +0 -0
- package/dist/types/balanceList.js.map +0 -0
- package/dist/types/channel.d.ts +0 -0
- package/dist/types/channel.js +0 -0
- package/dist/types/channel.js.map +0 -0
- package/dist/types/createKeyOptions.d.ts +0 -0
- package/dist/types/createKeyOptions.js +0 -0
- package/dist/types/createKeyOptions.js.map +0 -0
- package/dist/types/hit.d.ts +0 -0
- package/dist/types/hit.js +0 -0
- package/dist/types/hit.js.map +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/index.js +0 -0
- package/dist/types/index.js.map +0 -0
- package/dist/types/invitationList.d.ts +0 -0
- package/dist/types/invitationList.js +0 -0
- package/dist/types/invitationList.js.map +0 -0
- package/dist/types/invitationOptions.d.ts +0 -0
- package/dist/types/invitationOptions.js +0 -0
- package/dist/types/invitationOptions.js.map +0 -0
- package/dist/types/key.d.ts +0 -0
- package/dist/types/key.js +0 -0
- package/dist/types/key.js.map +0 -0
- package/dist/types/keyResponse.d.ts +0 -0
- package/dist/types/keyResponse.js +0 -0
- package/dist/types/keyResponse.js.map +0 -0
- package/dist/types/keyword.d.ts +0 -0
- package/dist/types/keyword.js +0 -0
- package/dist/types/keyword.js.map +0 -0
- package/dist/types/liveTranscriptionOptions.d.ts +0 -0
- package/dist/types/liveTranscriptionOptions.js +0 -0
- package/dist/types/liveTranscriptionOptions.js.map +0 -0
- package/dist/types/liveTranscriptionResponse.d.ts +0 -0
- package/dist/types/liveTranscriptionResponse.js +0 -0
- package/dist/types/liveTranscriptionResponse.js.map +0 -0
- package/dist/types/member.d.ts +0 -0
- package/dist/types/member.js +0 -0
- package/dist/types/member.js.map +0 -0
- package/dist/types/memberList.d.ts +0 -0
- package/dist/types/memberList.js +0 -0
- package/dist/types/memberList.js.map +0 -0
- package/dist/types/message.d.ts +0 -0
- package/dist/types/message.js +0 -0
- package/dist/types/message.js.map +0 -0
- package/dist/types/metadata.d.ts +0 -0
- package/dist/types/metadata.js +0 -0
- package/dist/types/metadata.js.map +0 -0
- package/dist/types/prerecordedTranscriptionOptions.d.ts +0 -0
- package/dist/types/prerecordedTranscriptionOptions.js +0 -0
- package/dist/types/prerecordedTranscriptionOptions.js.map +0 -0
- package/dist/types/prerecordedTranscriptionResponse.d.ts +0 -0
- package/dist/types/prerecordedTranscriptionResponse.js +0 -0
- package/dist/types/prerecordedTranscriptionResponse.js.map +0 -0
- package/dist/types/project.d.ts +0 -0
- package/dist/types/project.js +0 -0
- package/dist/types/project.js.map +0 -0
- package/dist/types/projectPatchResponse.d.ts +0 -0
- package/dist/types/projectPatchResponse.js +0 -0
- package/dist/types/projectPatchResponse.js.map +0 -0
- package/dist/types/projectResponse.d.ts +0 -0
- package/dist/types/projectResponse.js +0 -0
- package/dist/types/projectResponse.js.map +0 -0
- package/dist/types/scopeList.d.ts +0 -0
- package/dist/types/scopeList.js +0 -0
- package/dist/types/scopeList.js.map +0 -0
- package/dist/types/search.d.ts +0 -0
- package/dist/types/search.js +0 -0
- package/dist/types/search.js.map +0 -0
- package/dist/types/transcriptionSource.d.ts +0 -0
- package/dist/types/transcriptionSource.js +0 -0
- package/dist/types/transcriptionSource.js.map +0 -0
- package/dist/types/usageCallback.d.ts +0 -0
- package/dist/types/usageCallback.js +0 -0
- package/dist/types/usageCallback.js.map +0 -0
- package/dist/types/usageField.d.ts +0 -0
- package/dist/types/usageField.js +0 -0
- package/dist/types/usageField.js.map +0 -0
- package/dist/types/usageFieldOptions.d.ts +0 -0
- package/dist/types/usageFieldOptions.js +0 -0
- package/dist/types/usageFieldOptions.js.map +0 -0
- package/dist/types/usageOptions.d.ts +0 -0
- package/dist/types/usageOptions.js +0 -0
- package/dist/types/usageOptions.js.map +0 -0
- package/dist/types/usageRequest.d.ts +0 -0
- package/dist/types/usageRequest.js +0 -0
- package/dist/types/usageRequest.js.map +0 -0
- package/dist/types/usageRequestDetail.d.ts +0 -0
- package/dist/types/usageRequestDetail.js +0 -0
- package/dist/types/usageRequestDetail.js.map +0 -0
- package/dist/types/usageRequestList.d.ts +0 -0
- package/dist/types/usageRequestList.js +0 -0
- package/dist/types/usageRequestList.js.map +0 -0
- package/dist/types/usageRequestListOptions.d.ts +0 -0
- package/dist/types/usageRequestListOptions.js +0 -0
- package/dist/types/usageRequestListOptions.js.map +0 -0
- package/dist/types/usageRequestMessage.d.ts +0 -0
- package/dist/types/usageRequestMessage.js +0 -0
- package/dist/types/usageRequestMessage.js.map +0 -0
- package/dist/types/usageResponse.d.ts +0 -0
- package/dist/types/usageResponse.js +0 -0
- package/dist/types/usageResponse.js.map +0 -0
- package/dist/types/usageResponseDetail.d.ts +0 -0
- package/dist/types/usageResponseDetail.js +0 -0
- package/dist/types/usageResponseDetail.js.map +0 -0
- package/dist/types/utterance.d.ts +0 -0
- package/dist/types/utterance.js +0 -0
- package/dist/types/utterance.js.map +0 -0
- package/dist/types/wordBase.d.ts +0 -0
- package/dist/types/wordBase.js +0 -0
- package/dist/types/wordBase.js.map +0 -0
- package/dist/usage.d.ts +0 -0
- package/dist/usage.js +0 -0
- package/dist/usage.js.map +0 -0
- package/dist/userAgent.d.ts +0 -0
- package/dist/userAgent.js +1 -1
- package/dist/userAgent.js.map +1 -1
- package/package.json +59 -59
- package/.devcontainer/Dockerfile +0 -16
- package/.devcontainer/devcontainer.json +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,196 +1,197 @@
|
|
|
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
|
|
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.
|
|
186
|
-
[1.3.
|
|
187
|
-
[1.
|
|
188
|
-
[1.2.
|
|
189
|
-
[1.2.
|
|
190
|
-
[1.2.
|
|
191
|
-
[1.
|
|
192
|
-
[1.0
|
|
193
|
-
[1.0.
|
|
194
|
-
[1.0.
|
|
195
|
-
[0.
|
|
196
|
-
[0.6.
|
|
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]
|
|
13
|
+
|
|
14
|
+
### Updated
|
|
15
|
+
|
|
16
|
+
- Updated user-agent header to be generated on build rather than on demand. This should remove warnings when using webpack
|
|
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.1...HEAD
|
|
186
|
+
[1.3.1]: https://github.com/deepgram/node-sdk/compare/1.3.0...1.3.1
|
|
187
|
+
[1.3.0]: https://github.com/deepgram/node-sdk/compare/1.2.4...1.3.0
|
|
188
|
+
[1.2.4]: https://github.com/deepgram/node-sdk/compare/1.2.2...1.2.4
|
|
189
|
+
[1.2.2]: https://github.com/deepgram/node-sdk/compare/1.2.1...1.2.2
|
|
190
|
+
[1.2.1]: https://github.com/deepgram/node-sdk/compare/1.2.0...1.2.1
|
|
191
|
+
[1.2.0]: https://github.com/deepgram/node-sdk/compare/1.1.0...1.2.0
|
|
192
|
+
[1.1.0]: https://github.com/deepgram/node-sdk/compare/1.0.3...1.1.0
|
|
193
|
+
[1.0.3]: https://github.com/deepgram/node-sdk/compare/1.0.2...1.0.3
|
|
194
|
+
[1.0.2]: https://github.com/deepgram/node-sdk/compare/1.0.0...1.0.2
|
|
195
|
+
[1.0.0]: https://github.com/deepgram/node-sdk/compare/0.6.5...1.0.0
|
|
196
|
+
[0.6.5]: https://github.com/deepgram/node-sdk/compare/0.6.4...0.6.5
|
|
197
|
+
[0.6.4]: https://github.com/deepgram/node-sdk/compare/edc07b4...0.6.4
|
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -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.
|