@elevenlabs/elevenlabs-js 2.57.0 → 2.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fern/metadata.json +2 -2
- package/.fern/replay.lock +8 -168
- package/BaseClient.js +2 -2
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/serviceAccounts/client/Client.d.ts +15 -0
- package/api/resources/serviceAccounts/client/Client.js +62 -0
- package/api/resources/serviceAccounts/client/index.d.ts +1 -1
- package/api/resources/serviceAccounts/client/index.js +15 -0
- package/api/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.d.ts +12 -0
- package/api/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.js +3 -0
- package/api/resources/serviceAccounts/client/requests/index.d.ts +1 -0
- package/api/resources/serviceAccounts/client/requests/index.js +2 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/exports.d.ts +1 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/exports.js +18 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/index.d.ts +1 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/index.js +17 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.d.ts +5 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.js +3 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/types/index.d.ts +1 -0
- package/api/resources/v1TextToDialogueMultiStreamInput/types/index.js +17 -0
- package/api/resources/workspace/resources/invites/client/requests/BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost.d.ts +2 -0
- package/api/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +2 -0
- package/api/resources/workspace/resources/members/client/Client.d.ts +12 -0
- package/api/resources/workspace/resources/members/client/Client.js +54 -0
- package/api/types/CharacterMetadataResponseModel.d.ts +1 -0
- package/api/types/CustomGuardrailConfig.d.ts +1 -1
- package/api/types/DefaultSharingGroupConfig.d.ts +7 -0
- package/api/types/DefaultSharingGroupConfig.js +3 -0
- package/api/types/DefaultSharingGroupConfigPermissionLevel.d.ts +7 -0
- package/api/types/DefaultSharingGroupConfigPermissionLevel.js +10 -0
- package/api/types/GetConversationResponseModel.d.ts +1 -0
- package/api/types/TextToDialogueWebsocketAudioChunkMulti.d.ts +14 -0
- package/api/types/TextToDialogueWebsocketAudioChunkMulti.js +3 -0
- package/api/types/TextToDialogueWebsocketClientMessageMulti.d.ts +40 -0
- package/api/types/TextToDialogueWebsocketClientMessageMulti.js +3 -0
- package/api/types/TextToDialogueWebsocketFinalAudioForTurnMulti.d.ts +6 -0
- package/api/types/TextToDialogueWebsocketFinalAudioForTurnMulti.js +3 -0
- package/api/types/TextToDialogueWebsocketFinalMulti.d.ts +6 -0
- package/api/types/TextToDialogueWebsocketFinalMulti.js +3 -0
- package/api/types/WorkspaceCreateServiceAccountResponseModel.d.ts +3 -0
- package/api/types/WorkspaceCreateServiceAccountResponseModel.js +3 -0
- package/api/types/WorkspaceMemberResponseModel.d.ts +18 -0
- package/api/types/WorkspaceMemberResponseModel.js +3 -0
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/serviceAccounts/client/Client.d.ts +15 -0
- package/dist/api/resources/serviceAccounts/client/Client.js +62 -0
- package/dist/api/resources/serviceAccounts/client/index.d.ts +1 -1
- package/dist/api/resources/serviceAccounts/client/index.js +15 -0
- package/dist/api/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.d.ts +12 -0
- package/dist/api/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.js +3 -0
- package/dist/api/resources/serviceAccounts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/serviceAccounts/client/requests/index.js +2 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/exports.d.ts +1 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/exports.js +18 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/index.d.ts +1 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/index.js +17 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.d.ts +5 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.js +3 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/types/index.d.ts +1 -0
- package/dist/api/resources/v1TextToDialogueMultiStreamInput/types/index.js +17 -0
- package/dist/api/resources/workspace/resources/invites/client/requests/BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost.d.ts +2 -0
- package/dist/api/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +2 -0
- package/dist/api/resources/workspace/resources/members/client/Client.d.ts +12 -0
- package/dist/api/resources/workspace/resources/members/client/Client.js +54 -0
- package/dist/api/types/CharacterMetadataResponseModel.d.ts +1 -0
- package/dist/api/types/CustomGuardrailConfig.d.ts +1 -1
- package/dist/api/types/DefaultSharingGroupConfig.d.ts +7 -0
- package/dist/api/types/DefaultSharingGroupConfig.js +3 -0
- package/dist/api/types/DefaultSharingGroupConfigPermissionLevel.d.ts +7 -0
- package/dist/api/types/DefaultSharingGroupConfigPermissionLevel.js +10 -0
- package/dist/api/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/api/types/TextToDialogueWebsocketAudioChunkMulti.d.ts +14 -0
- package/dist/api/types/TextToDialogueWebsocketAudioChunkMulti.js +3 -0
- package/dist/api/types/TextToDialogueWebsocketClientMessageMulti.d.ts +40 -0
- package/dist/api/types/TextToDialogueWebsocketClientMessageMulti.js +3 -0
- package/dist/api/types/TextToDialogueWebsocketFinalAudioForTurnMulti.d.ts +6 -0
- package/dist/api/types/TextToDialogueWebsocketFinalAudioForTurnMulti.js +3 -0
- package/dist/api/types/TextToDialogueWebsocketFinalMulti.d.ts +6 -0
- package/dist/api/types/TextToDialogueWebsocketFinalMulti.js +3 -0
- package/dist/api/types/WorkspaceCreateServiceAccountResponseModel.d.ts +3 -0
- package/dist/api/types/WorkspaceCreateServiceAccountResponseModel.js +3 -0
- package/dist/api/types/WorkspaceMemberResponseModel.d.ts +18 -0
- package/dist/api/types/WorkspaceMemberResponseModel.js +3 -0
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/serviceAccounts/client/index.d.ts +1 -0
- package/dist/serialization/resources/serviceAccounts/client/index.js +17 -0
- package/dist/serialization/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.d.ts +11 -0
- package/dist/serialization/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.js +43 -0
- package/dist/serialization/resources/serviceAccounts/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/serviceAccounts/client/requests/index.js +5 -0
- package/dist/serialization/resources/serviceAccounts/index.d.ts +1 -0
- package/dist/serialization/resources/serviceAccounts/index.js +1 -0
- package/dist/serialization/resources/v1TextToDialogueMultiStreamInput/index.d.ts +1 -0
- package/dist/serialization/resources/v1TextToDialogueMultiStreamInput/index.js +17 -0
- package/dist/serialization/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.d.ts +11 -0
- package/dist/serialization/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.js +48 -0
- package/dist/serialization/resources/v1TextToDialogueMultiStreamInput/types/index.d.ts +1 -0
- package/dist/serialization/resources/v1TextToDialogueMultiStreamInput/types/index.js +17 -0
- package/dist/serialization/resources/workspace/resources/invites/client/requests/BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/invites/client/requests/BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost.js +1 -0
- package/dist/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.js +1 -0
- package/dist/serialization/resources/workspace/resources/members/client/index.d.ts +1 -0
- package/dist/serialization/resources/workspace/resources/members/client/index.js +24 -0
- package/dist/serialization/resources/workspace/resources/members/client/list.d.ts +8 -0
- package/dist/serialization/resources/workspace/resources/members/client/list.js +40 -0
- package/dist/serialization/types/CharacterMetadataResponseModel.d.ts +1 -0
- package/dist/serialization/types/CharacterMetadataResponseModel.js +1 -0
- package/dist/serialization/types/DefaultSharingGroupConfig.d.ts +11 -0
- package/dist/serialization/types/DefaultSharingGroupConfig.js +43 -0
- package/dist/serialization/types/DefaultSharingGroupConfigPermissionLevel.d.ts +7 -0
- package/dist/serialization/types/DefaultSharingGroupConfigPermissionLevel.js +39 -0
- package/dist/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/dist/serialization/types/GetConversationResponseModel.js +1 -0
- package/dist/serialization/types/TextToDialogueWebsocketAudioChunkMulti.d.ts +13 -0
- package/dist/serialization/types/TextToDialogueWebsocketAudioChunkMulti.js +45 -0
- package/dist/serialization/types/TextToDialogueWebsocketClientMessageMulti.d.ts +23 -0
- package/dist/serialization/types/TextToDialogueWebsocketClientMessageMulti.js +55 -0
- package/dist/serialization/types/TextToDialogueWebsocketFinalAudioForTurnMulti.d.ts +10 -0
- package/dist/serialization/types/TextToDialogueWebsocketFinalAudioForTurnMulti.js +42 -0
- package/dist/serialization/types/TextToDialogueWebsocketFinalMulti.d.ts +10 -0
- package/dist/serialization/types/TextToDialogueWebsocketFinalMulti.js +42 -0
- package/dist/serialization/types/WorkspaceCreateServiceAccountResponseModel.d.ts +9 -0
- package/dist/serialization/types/WorkspaceCreateServiceAccountResponseModel.js +41 -0
- package/dist/serialization/types/WorkspaceMemberResponseModel.d.ts +15 -0
- package/dist/serialization/types/WorkspaceMemberResponseModel.js +47 -0
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +120 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/serviceAccounts/client/index.d.ts +1 -0
- package/serialization/resources/serviceAccounts/client/index.js +17 -0
- package/serialization/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.d.ts +11 -0
- package/serialization/resources/serviceAccounts/client/requests/BodyCreateServiceAccountV1ServiceAccountsPost.js +43 -0
- package/serialization/resources/serviceAccounts/client/requests/index.d.ts +1 -0
- package/serialization/resources/serviceAccounts/client/requests/index.js +5 -0
- package/serialization/resources/serviceAccounts/index.d.ts +1 -0
- package/serialization/resources/serviceAccounts/index.js +1 -0
- package/serialization/resources/v1TextToDialogueMultiStreamInput/index.d.ts +1 -0
- package/serialization/resources/v1TextToDialogueMultiStreamInput/index.js +17 -0
- package/serialization/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.d.ts +11 -0
- package/serialization/resources/v1TextToDialogueMultiStreamInput/types/ReceiveTextToDialogueWebsocketMessageMulti.js +48 -0
- package/serialization/resources/v1TextToDialogueMultiStreamInput/types/index.d.ts +1 -0
- package/serialization/resources/v1TextToDialogueMultiStreamInput/types/index.js +17 -0
- package/serialization/resources/workspace/resources/invites/client/requests/BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost.d.ts +1 -0
- package/serialization/resources/workspace/resources/invites/client/requests/BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost.js +1 -0
- package/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.d.ts +1 -0
- package/serialization/resources/workspace/resources/invites/client/requests/InviteUserRequest.js +1 -0
- package/serialization/resources/workspace/resources/members/client/index.d.ts +1 -0
- package/serialization/resources/workspace/resources/members/client/index.js +24 -0
- package/serialization/resources/workspace/resources/members/client/list.d.ts +8 -0
- package/serialization/resources/workspace/resources/members/client/list.js +40 -0
- package/serialization/types/CharacterMetadataResponseModel.d.ts +1 -0
- package/serialization/types/CharacterMetadataResponseModel.js +1 -0
- package/serialization/types/DefaultSharingGroupConfig.d.ts +11 -0
- package/serialization/types/DefaultSharingGroupConfig.js +43 -0
- package/serialization/types/DefaultSharingGroupConfigPermissionLevel.d.ts +7 -0
- package/serialization/types/DefaultSharingGroupConfigPermissionLevel.js +39 -0
- package/serialization/types/GetConversationResponseModel.d.ts +1 -0
- package/serialization/types/GetConversationResponseModel.js +1 -0
- package/serialization/types/TextToDialogueWebsocketAudioChunkMulti.d.ts +13 -0
- package/serialization/types/TextToDialogueWebsocketAudioChunkMulti.js +45 -0
- package/serialization/types/TextToDialogueWebsocketClientMessageMulti.d.ts +23 -0
- package/serialization/types/TextToDialogueWebsocketClientMessageMulti.js +55 -0
- package/serialization/types/TextToDialogueWebsocketFinalAudioForTurnMulti.d.ts +10 -0
- package/serialization/types/TextToDialogueWebsocketFinalAudioForTurnMulti.js +42 -0
- package/serialization/types/TextToDialogueWebsocketFinalMulti.d.ts +10 -0
- package/serialization/types/TextToDialogueWebsocketFinalMulti.js +42 -0
- package/serialization/types/WorkspaceCreateServiceAccountResponseModel.d.ts +9 -0
- package/serialization/types/WorkspaceCreateServiceAccountResponseModel.js +41 -0
- package/serialization/types/WorkspaceMemberResponseModel.d.ts +15 -0
- package/serialization/types/WorkspaceMemberResponseModel.js +47 -0
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/.fern/metadata.json
CHANGED
package/.fern/replay.lock
CHANGED
|
@@ -54,14 +54,20 @@ generations:
|
|
|
54
54
|
cli_version: unknown
|
|
55
55
|
generator_versions:
|
|
56
56
|
fernapi/fern-typescript-sdk: 3.57.1
|
|
57
|
-
|
|
57
|
+
- commit_sha: ba1ca4fda05eb4c81e6159f00abc7f4ca5e0d938
|
|
58
|
+
tree_hash: dcb5a006f2a96462ac3d3923add1a65a8afa3c39
|
|
59
|
+
timestamp: 2026-07-13T08:23:27.782Z
|
|
60
|
+
cli_version: unknown
|
|
61
|
+
generator_versions:
|
|
62
|
+
fernapi/fern-typescript-sdk: 3.57.1
|
|
63
|
+
current_generation: ba1ca4fda05eb4c81e6159f00abc7f4ca5e0d938
|
|
58
64
|
patches:
|
|
59
65
|
- id: patch-f50f1558
|
|
60
66
|
content_hash: sha256:5a09c3db02b795ab544221e13bf2681e7f9bb43c07e8cd96ac063a405dc3a2c6
|
|
61
67
|
original_commit: f50f1558f741e331dd3949ded57771c012ef27ab
|
|
62
68
|
original_message: Add missing methods and test (#399)
|
|
63
69
|
original_author: Paul Asjes <paul.asjes@elevenlabs.io>
|
|
64
|
-
base_generation:
|
|
70
|
+
base_generation: ba1ca4fda05eb4c81e6159f00abc7f4ca5e0d938
|
|
65
71
|
files:
|
|
66
72
|
- tests/unit/wrapper/music.test.ts
|
|
67
73
|
patch_content: |
|
|
@@ -112,169 +118,3 @@ patches:
|
|
|
112
118
|
});
|
|
113
119
|
});
|
|
114
120
|
user_owned: true
|
|
115
|
-
- id: patch-87100890
|
|
116
|
-
content_hash: sha256:fdacbcf0643be70c0dce492055c076bc7d17b63e776e32a5060d77fdc3c0b133
|
|
117
|
-
original_commit: 87100890798f961a1b93300e9bb443dc35b5de6a
|
|
118
|
-
original_message: "[Speech Engine] Add disableAuth parameter and re-add tests (#424)"
|
|
119
|
-
original_author: Paul Asjes <paul.asjes@elevenlabs.io>
|
|
120
|
-
base_generation: e5e2fa59953b276bb9ba7c4b89d3148fa10530d0
|
|
121
|
-
files:
|
|
122
|
-
- package.json
|
|
123
|
-
- src/BaseClient.ts
|
|
124
|
-
patch_content: |
|
|
125
|
-
diff --git a/package.json b/package.json
|
|
126
|
-
index 49ddfc0b..ead18eff 100644
|
|
127
|
-
--- a/package.json
|
|
128
|
-
+++ b/package.json
|
|
129
|
-
@@ -1,6 +1,6 @@
|
|
130
|
-
{
|
|
131
|
-
"name": "@elevenlabs/elevenlabs-js",
|
|
132
|
-
- "version": "2.55.0",
|
|
133
|
-
+ "version": "2.56.0",
|
|
134
|
-
"private": false,
|
|
135
|
-
"repository": {
|
|
136
|
-
"type": "git",
|
|
137
|
-
diff --git a/src/BaseClient.ts b/src/BaseClient.ts
|
|
138
|
-
index a77b8d3c..ae5bcdac 100644
|
|
139
|
-
--- a/src/BaseClient.ts
|
|
140
|
-
+++ b/src/BaseClient.ts
|
|
141
|
-
@@ -49,8 +49,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
|
|
142
|
-
{
|
|
143
|
-
"X-Fern-Language": "JavaScript",
|
|
144
|
-
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
145
|
-
- "X-Fern-SDK-Version": "2.55.0",
|
|
146
|
-
- "User-Agent": "@elevenlabs/elevenlabs-js/2.55.0",
|
|
147
|
-
+ "X-Fern-SDK-Version": "2.56.0",
|
|
148
|
-
+ "User-Agent": "@elevenlabs/elevenlabs-js/2.56.0",
|
|
149
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
|
-
"xi-api-key": options?.apiKey,
|
|
152
|
-
theirs_snapshot:
|
|
153
|
-
package.json: |
|
|
154
|
-
{
|
|
155
|
-
"name": "@elevenlabs/elevenlabs-js",
|
|
156
|
-
"version": "2.56.0",
|
|
157
|
-
"private": false,
|
|
158
|
-
"repository": {
|
|
159
|
-
"type": "git",
|
|
160
|
-
"url": "git+https://github.com/elevenlabs/elevenlabs-js.git"
|
|
161
|
-
},
|
|
162
|
-
"license": "MIT",
|
|
163
|
-
"main": "./index.js",
|
|
164
|
-
"types": "./index.d.ts",
|
|
165
|
-
"scripts": {
|
|
166
|
-
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
167
|
-
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
168
|
-
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
169
|
-
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
170
|
-
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
171
|
-
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
172
|
-
"build": "tsc",
|
|
173
|
-
"prepack": "cp -rv dist/. .",
|
|
174
|
-
"test": "jest --config jest.config.mjs",
|
|
175
|
-
"test:unit": "jest --selectProjects unit",
|
|
176
|
-
"test:wire": "jest --selectProjects wire"
|
|
177
|
-
},
|
|
178
|
-
"dependencies": {
|
|
179
|
-
"node-fetch": "^2.7.0",
|
|
180
|
-
"command-exists": "^1.2.9",
|
|
181
|
-
"ws": "^8.18.3"
|
|
182
|
-
},
|
|
183
|
-
"devDependencies": {
|
|
184
|
-
"@types/node-fetch": "^2.6.12",
|
|
185
|
-
"webpack": "^5.97.1",
|
|
186
|
-
"ts-loader": "^9.5.1",
|
|
187
|
-
"jest": "^29.7.0",
|
|
188
|
-
"@jest/globals": "^29.7.0",
|
|
189
|
-
"@types/jest": "^29.5.5",
|
|
190
|
-
"ts-jest": "^29.1.1",
|
|
191
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
192
|
-
"msw": "2.11.2",
|
|
193
|
-
"@types/node": "^18.19.70",
|
|
194
|
-
"typescript": "~5.7.2",
|
|
195
|
-
"@biomejs/biome": "2.4.3",
|
|
196
|
-
"@types/command-exists": "^1.2.3",
|
|
197
|
-
"@types/ws": "^8.18.1"
|
|
198
|
-
},
|
|
199
|
-
"browser": {
|
|
200
|
-
"fs": false,
|
|
201
|
-
"os": false,
|
|
202
|
-
"path": false,
|
|
203
|
-
"stream": false,
|
|
204
|
-
"crypto": false,
|
|
205
|
-
"command-exists": false
|
|
206
|
-
},
|
|
207
|
-
"packageManager": "yarn@1.22.22",
|
|
208
|
-
"engines": {
|
|
209
|
-
"node": ">=18.0.0"
|
|
210
|
-
},
|
|
211
|
-
"sideEffects": false
|
|
212
|
-
}
|
|
213
|
-
src/BaseClient.ts: |
|
|
214
|
-
// This file was auto-generated by Fern from our API Definition.
|
|
215
|
-
|
|
216
|
-
import * as core from "./core";
|
|
217
|
-
import { mergeHeaders } from "./core/headers";
|
|
218
|
-
import type * as environments from "./environments";
|
|
219
|
-
|
|
220
|
-
export interface BaseClientOptions {
|
|
221
|
-
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
222
|
-
/** Specify a custom URL to connect the client to. */
|
|
223
|
-
baseUrl?: core.Supplier<string>;
|
|
224
|
-
/** Override the xi-api-key header */
|
|
225
|
-
apiKey?: core.Supplier<string | undefined>;
|
|
226
|
-
/** Additional headers to include in requests. */
|
|
227
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
228
|
-
/** The default maximum time to wait for a response in seconds. */
|
|
229
|
-
timeoutInSeconds?: number;
|
|
230
|
-
/** The default number of times to retry the request. Defaults to 2. */
|
|
231
|
-
maxRetries?: number;
|
|
232
|
-
/** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
|
|
233
|
-
fetch?: typeof fetch;
|
|
234
|
-
fetcher?: core.FetchFunction;
|
|
235
|
-
/** Configure logging for the client. */
|
|
236
|
-
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
export interface BaseRequestOptions {
|
|
240
|
-
/** The maximum time to wait for a response in seconds. */
|
|
241
|
-
timeoutInSeconds?: number;
|
|
242
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
243
|
-
maxRetries?: number;
|
|
244
|
-
/** A hook to abort the request. */
|
|
245
|
-
abortSignal?: AbortSignal;
|
|
246
|
-
/** Override the xi-api-key header */
|
|
247
|
-
apiKey?: string | undefined;
|
|
248
|
-
/** Additional query string parameters to include in the request. */
|
|
249
|
-
queryParams?: Record<string, unknown>;
|
|
250
|
-
/** Additional headers to include in the request. */
|
|
251
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
255
|
-
logging: core.logging.Logger;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
export function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(
|
|
259
|
-
options: T,
|
|
260
|
-
): NormalizedClientOptions<T> {
|
|
261
|
-
const headers = mergeHeaders(
|
|
262
|
-
{
|
|
263
|
-
"X-Fern-Language": "JavaScript",
|
|
264
|
-
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
265
|
-
"X-Fern-SDK-Version": "2.56.0",
|
|
266
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/2.56.0",
|
|
267
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
268
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
269
|
-
"xi-api-key": options?.apiKey,
|
|
270
|
-
},
|
|
271
|
-
options?.headers,
|
|
272
|
-
);
|
|
273
|
-
|
|
274
|
-
return {
|
|
275
|
-
...options,
|
|
276
|
-
logging: core.logging.createLogger(options?.logging),
|
|
277
|
-
headers,
|
|
278
|
-
} as NormalizedClientOptions<T>;
|
|
279
|
-
}
|
|
280
|
-
status: unresolved
|
package/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/2.
|
|
44
|
+
"X-Fern-SDK-Version": "2.58.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/2.58.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from "./pronunciationDictionaries/client/requests";
|
|
|
27
27
|
export * from "./pronunciationDictionaries/types";
|
|
28
28
|
export * as samples from "./samples";
|
|
29
29
|
export * as serviceAccounts from "./serviceAccounts";
|
|
30
|
+
export * from "./serviceAccounts/client/requests";
|
|
30
31
|
export * as speechEngine from "./speechEngine";
|
|
31
32
|
export * from "./speechEngine/client/requests";
|
|
32
33
|
export * as speechEngineUpstream from "./speechEngineUpstream";
|
|
@@ -57,6 +58,8 @@ export * from "./usage/client/requests";
|
|
|
57
58
|
export * as user from "./user";
|
|
58
59
|
export * as v1SpeechToTextRealtime from "./v1SpeechToTextRealtime";
|
|
59
60
|
export * from "./v1SpeechToTextRealtime/types";
|
|
61
|
+
export * as v1TextToDialogueMultiStreamInput from "./v1TextToDialogueMultiStreamInput";
|
|
62
|
+
export * from "./v1TextToDialogueMultiStreamInput/types";
|
|
60
63
|
export * as v1TextToDialogueStreamInput from "./v1TextToDialogueStreamInput";
|
|
61
64
|
export * from "./v1TextToDialogueStreamInput/types";
|
|
62
65
|
export * as v1TextToSpeechVoiceIdMultiStreamInput from "./v1TextToSpeechVoiceIdMultiStreamInput";
|
package/api/resources/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspaces = exports.workspace = exports.webhooks = exports.voices = exports.v1TranslateRealtime = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1SpeechToTextRealtime = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngineUpstream = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
|
|
39
|
+
exports.workspaces = exports.workspace = exports.webhooks = exports.voices = exports.v1TranslateRealtime = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1TextToDialogueMultiStreamInput = exports.v1SpeechToTextRealtime = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngineUpstream = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
|
|
40
40
|
exports.audioIsolation = __importStar(require("./audioIsolation"));
|
|
41
41
|
__exportStar(require("./audioIsolation/client/requests"), exports);
|
|
42
42
|
__exportStar(require("./audioIsolation/types"), exports);
|
|
@@ -66,6 +66,7 @@ __exportStar(require("./pronunciationDictionaries/client/requests"), exports);
|
|
|
66
66
|
__exportStar(require("./pronunciationDictionaries/types"), exports);
|
|
67
67
|
exports.samples = __importStar(require("./samples"));
|
|
68
68
|
exports.serviceAccounts = __importStar(require("./serviceAccounts"));
|
|
69
|
+
__exportStar(require("./serviceAccounts/client/requests"), exports);
|
|
69
70
|
exports.speechEngine = __importStar(require("./speechEngine"));
|
|
70
71
|
__exportStar(require("./speechEngine/client/requests"), exports);
|
|
71
72
|
exports.speechEngineUpstream = __importStar(require("./speechEngineUpstream"));
|
|
@@ -96,6 +97,8 @@ __exportStar(require("./usage/client/requests"), exports);
|
|
|
96
97
|
exports.user = __importStar(require("./user"));
|
|
97
98
|
exports.v1SpeechToTextRealtime = __importStar(require("./v1SpeechToTextRealtime"));
|
|
98
99
|
__exportStar(require("./v1SpeechToTextRealtime/types"), exports);
|
|
100
|
+
exports.v1TextToDialogueMultiStreamInput = __importStar(require("./v1TextToDialogueMultiStreamInput"));
|
|
101
|
+
__exportStar(require("./v1TextToDialogueMultiStreamInput/types"), exports);
|
|
99
102
|
exports.v1TextToDialogueStreamInput = __importStar(require("./v1TextToDialogueStreamInput"));
|
|
100
103
|
__exportStar(require("./v1TextToDialogueStreamInput/types"), exports);
|
|
101
104
|
exports.v1TextToSpeechVoiceIdMultiStreamInput = __importStar(require("./v1TextToSpeechVoiceIdMultiStreamInput"));
|
|
@@ -25,4 +25,19 @@ export declare class ServiceAccountsClient {
|
|
|
25
25
|
*/
|
|
26
26
|
list(requestOptions?: ServiceAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceServiceAccountListResponseModel>;
|
|
27
27
|
private __list;
|
|
28
|
+
/**
|
|
29
|
+
* Create a new service account in the workspace. By default, a workspace can have up to 20 service accounts. Enterprise customers may request an increase to this limit, up to 100.
|
|
30
|
+
*
|
|
31
|
+
* @param {ElevenLabs.BodyCreateServiceAccountV1ServiceAccountsPost} request
|
|
32
|
+
* @param {ServiceAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.serviceAccounts.create({
|
|
38
|
+
* name: "name"
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
create(request: ElevenLabs.BodyCreateServiceAccountV1ServiceAccountsPost, requestOptions?: ServiceAccountsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceCreateServiceAccountResponseModel>;
|
|
42
|
+
private __create;
|
|
28
43
|
}
|
|
@@ -115,5 +115,67 @@ class ServiceAccountsClient {
|
|
|
115
115
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/service-accounts");
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Create a new service account in the workspace. By default, a workspace can have up to 20 service accounts. Enterprise customers may request an increase to this limit, up to 100.
|
|
120
|
+
*
|
|
121
|
+
* @param {ElevenLabs.BodyCreateServiceAccountV1ServiceAccountsPost} request
|
|
122
|
+
* @param {ServiceAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* await client.serviceAccounts.create({
|
|
128
|
+
* name: "name"
|
|
129
|
+
* })
|
|
130
|
+
*/
|
|
131
|
+
create(request, requestOptions) {
|
|
132
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
133
|
+
}
|
|
134
|
+
__create(request, requestOptions) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
137
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
138
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
139
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/service-accounts"),
|
|
140
|
+
method: "POST",
|
|
141
|
+
headers: _headers,
|
|
142
|
+
contentType: "application/json",
|
|
143
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
144
|
+
requestType: "json",
|
|
145
|
+
body: serializers.BodyCreateServiceAccountV1ServiceAccountsPost.jsonOrThrow(request, {
|
|
146
|
+
unrecognizedObjectKeys: "strip",
|
|
147
|
+
}),
|
|
148
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
149
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
150
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
151
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
152
|
+
logging: this._options.logging,
|
|
153
|
+
});
|
|
154
|
+
if (_response.ok) {
|
|
155
|
+
return {
|
|
156
|
+
data: serializers.WorkspaceCreateServiceAccountResponseModel.parseOrThrow(_response.body, {
|
|
157
|
+
unrecognizedObjectKeys: "passthrough",
|
|
158
|
+
allowUnrecognizedUnionMembers: true,
|
|
159
|
+
allowUnrecognizedEnumValues: true,
|
|
160
|
+
breadcrumbsPrefix: ["response"],
|
|
161
|
+
}),
|
|
162
|
+
rawResponse: _response.rawResponse,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
if (_response.error.reason === "status-code") {
|
|
166
|
+
switch (_response.error.statusCode) {
|
|
167
|
+
case 422:
|
|
168
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
169
|
+
default:
|
|
170
|
+
throw new errors.ElevenLabsError({
|
|
171
|
+
statusCode: _response.error.statusCode,
|
|
172
|
+
body: _response.error.body,
|
|
173
|
+
rawResponse: _response.rawResponse,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/service-accounts");
|
|
178
|
+
});
|
|
179
|
+
}
|
|
118
180
|
}
|
|
119
181
|
exports.ServiceAccountsClient = ServiceAccountsClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* name: "name"
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface BodyCreateServiceAccountV1ServiceAccountsPost {
|
|
9
|
+
name: string;
|
|
10
|
+
/** List of groups with their permission levels to share with by default. Each entry should specify a group_id and a permission_level (admin, editor, or viewer). */
|
|
11
|
+
defaultSharingGroups?: ElevenLabs.DefaultSharingGroupConfig[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BodyCreateServiceAccountV1ServiceAccountsPost } from "./BodyCreateServiceAccountV1ServiceAccountsPost";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
__exportStar(require("./index"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Receive JSON audio chunks, per-context final markers, or an error payload from the multi-context Text to Dialogue WebSocket.
|
|
4
|
+
*/
|
|
5
|
+
export type ReceiveTextToDialogueWebsocketMessageMulti = ElevenLabs.TextToDialogueWebsocketAudioChunkMulti | ElevenLabs.TextToDialogueWebsocketFinalAudioForTurnMulti | ElevenLabs.TextToDialogueWebsocketFinalMulti | ElevenLabs.TextToDialogueWebsocketError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ReceiveTextToDialogueWebsocketMessageMulti";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ReceiveTextToDialogueWebsocketMessageMulti"), exports);
|
|
@@ -12,4 +12,6 @@ export interface BodyInviteMultipleUsersV1WorkspaceInvitesAddBulkPost {
|
|
|
12
12
|
seatType?: ElevenLabs.SeatType;
|
|
13
13
|
/** The group ids of the user */
|
|
14
14
|
groupIds?: string[];
|
|
15
|
+
/** Monthly credit usage limit for the invitee. Omit or set to null for no custom cap. */
|
|
16
|
+
usageLimit?: number;
|
|
15
17
|
}
|
|
@@ -10,6 +10,18 @@ export declare namespace MembersClient {
|
|
|
10
10
|
export declare class MembersClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptions<MembersClient.Options>;
|
|
12
12
|
constructor(options?: MembersClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Gets a list of all members of the workspace, including locked members. Service accounts are excluded. Requires the workspace_members_read permission.
|
|
15
|
+
*
|
|
16
|
+
* @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
|
+
*
|
|
18
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* await client.workspace.members.list()
|
|
22
|
+
*/
|
|
23
|
+
list(requestOptions?: MembersClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceMemberResponseModel[]>;
|
|
24
|
+
private __list;
|
|
13
25
|
/**
|
|
14
26
|
* Updates attributes of a workspace member. Apart from the email identifier, all parameters will remain unchanged unless specified. This endpoint may only be called by workspace administrators.
|
|
15
27
|
*
|
|
@@ -56,6 +56,60 @@ class MembersClient {
|
|
|
56
56
|
constructor(options = {}) {
|
|
57
57
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Gets a list of all members of the workspace, including locked members. Service accounts are excluded. Requires the workspace_members_read permission.
|
|
61
|
+
*
|
|
62
|
+
* @param {MembersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.workspace.members.list()
|
|
68
|
+
*/
|
|
69
|
+
list(requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
71
|
+
}
|
|
72
|
+
__list(requestOptions) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
75
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
77
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/workspace/members"),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
81
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
82
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
85
|
+
logging: this._options.logging,
|
|
86
|
+
});
|
|
87
|
+
if (_response.ok) {
|
|
88
|
+
return {
|
|
89
|
+
data: serializers.workspace.members.list.Response.parseOrThrow(_response.body, {
|
|
90
|
+
unrecognizedObjectKeys: "passthrough",
|
|
91
|
+
allowUnrecognizedUnionMembers: true,
|
|
92
|
+
allowUnrecognizedEnumValues: true,
|
|
93
|
+
breadcrumbsPrefix: ["response"],
|
|
94
|
+
}),
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (_response.error.reason === "status-code") {
|
|
99
|
+
switch (_response.error.statusCode) {
|
|
100
|
+
case 422:
|
|
101
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
102
|
+
default:
|
|
103
|
+
throw new errors.ElevenLabsError({
|
|
104
|
+
statusCode: _response.error.statusCode,
|
|
105
|
+
body: _response.error.body,
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/workspace/members");
|
|
111
|
+
});
|
|
112
|
+
}
|
|
59
113
|
/**
|
|
60
114
|
* Updates attributes of a workspace member. Apart from the email identifier, all parameters will remain unchanged unless specified. This endpoint may only be called by workspace administrators.
|
|
61
115
|
*
|
|
@@ -2,6 +2,7 @@ import type * as ElevenLabs from "../index";
|
|
|
2
2
|
export interface CharacterMetadataResponseModel {
|
|
3
3
|
description?: string;
|
|
4
4
|
sampleMessage?: string;
|
|
5
|
+
voiceCreationPromptSuggestion?: string;
|
|
5
6
|
gender?: ElevenLabs.CharacterGender;
|
|
6
7
|
age?: ElevenLabs.CharacterAge;
|
|
7
8
|
accent?: string;
|
|
@@ -11,7 +11,7 @@ export interface CustomGuardrailConfig {
|
|
|
11
11
|
executionMode?: ElevenLabs.GuardrailExecutionMode;
|
|
12
12
|
/** LLM model to use for custom guardrail evaluation */
|
|
13
13
|
model?: ElevenLabs.CustomGuardrailConfigModel;
|
|
14
|
-
/** How
|
|
14
|
+
/** How much recent history the guardrail sees before the reply it evaluates, counted in user messages (the agent replies between them are included too). The guardrail always gets a single <conversation_history> transcript ending in the evaluated reply, marked 'AGENT [current reply]:'. 0 (default) adds no prior history (just that line); 1 adds the latest user message onward. */
|
|
15
15
|
historyMessageCount?: number;
|
|
16
16
|
triggerAction?: ElevenLabs.CustomGuardrailConfigTriggerAction;
|
|
17
17
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../index";
|
|
2
|
+
export interface DefaultSharingGroupConfig {
|
|
3
|
+
/** The ID of the group to share with */
|
|
4
|
+
groupId: string;
|
|
5
|
+
/** The permission level to grant to the group */
|
|
6
|
+
permissionLevel: ElevenLabs.DefaultSharingGroupConfigPermissionLevel;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** The permission level to grant to the group */
|
|
2
|
+
export declare const DefaultSharingGroupConfigPermissionLevel: {
|
|
3
|
+
readonly Admin: "admin";
|
|
4
|
+
readonly Editor: "editor";
|
|
5
|
+
readonly Viewer: "viewer";
|
|
6
|
+
};
|
|
7
|
+
export type DefaultSharingGroupConfigPermissionLevel = (typeof DefaultSharingGroupConfigPermissionLevel)[keyof typeof DefaultSharingGroupConfigPermissionLevel];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DefaultSharingGroupConfigPermissionLevel = void 0;
|
|
5
|
+
/** The permission level to grant to the group */
|
|
6
|
+
exports.DefaultSharingGroupConfigPermissionLevel = {
|
|
7
|
+
Admin: "admin",
|
|
8
|
+
Editor: "editor",
|
|
9
|
+
Viewer: "viewer",
|
|
10
|
+
};
|