@superdurable/connector-elevenlabs 0.1.0 → 0.2.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/README.md +4 -19
- package/dex-connector.json +492 -4
- package/dist/chunk-UBMQRHWH.js +481 -0
- package/dist/connection-BWnmpStG.d.ts +347 -0
- package/dist/index.d.ts +460 -8
- package/dist/index.js +693 -28
- package/dist/mock.d.ts +159 -5
- package/dist/mock.js +385 -4
- package/package.json +4 -3
- package/dist/chunk-GIQKY62E.js +0 -134
- package/dist/connection-DFnhV-HC.d.ts +0 -117
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { C as CreateSpeechInput, a as CreateSpeechOutput, b as Connection, L as ListVoicesInput,
|
|
2
|
-
export {
|
|
3
|
-
import
|
|
4
|
-
import { QueryDefinition, QueryStepConfig, Query, QueryResult, QueryStep, Call, QueryAttempt, CredentialProvider } from '@superdurable/connectors-sdk';
|
|
1
|
+
import { C as CreateSpeechInput, a as CreateSpeechOutput, b as Connection, H as HistoryItemIdentityInput, D as DeletedHistoryItem, G as GetVoiceInput, c as DeletedVoice, E as EditVoiceMetadataInput, d as EditedVoiceMetadata, e as HistoryItemMetadata, V as Voice, L as ListHistoryItemsInput, f as HistoryItemsPage, g as ListModelsInput, M as ModelsList, h as ListVoicesInput, i as ListVoicesOutput, U as UpdateVoiceSettingsInput, j as UpdatedVoiceSettings, O as Operations, k as Config, l as Credentials } from './connection-BWnmpStG.js';
|
|
2
|
+
export { m as ConfigSchema, n as CreateSpeechInputSchema, o as CreateSpeechOutputSchema, p as CredentialMaterialError, q as CredentialSource, r as DeletedHistoryItemSchema, s as DeletedVoiceSchema, t as EditVoiceMetadataInputSchema, u as EditedVoiceMetadataSchema, v as GetVoiceInputSchema, w as HistoryItemIdentityInputSchema, x as HistoryItemMetadataSchema, y as HistoryItemsPageSchema, z as ListHistoryItemsInputSchema, A as ListModelsInputSchema, B as ListVoicesInputSchema, F as ListVoicesOutputSchema, I as ModelMetadata, J as ModelMetadataSchema, K as ModelsListSchema, N as UpdateVoiceSettingsInputSchema, P as UpdatedVoiceSettingsSchema, Q as VoiceSchema, R as decodeCredentials, S as isCredentialMaterialError, T as newConnection, W as newConnectionWithOperations } from './connection-BWnmpStG.js';
|
|
3
|
+
import { QueryDefinition, MutationDefinition, QueryStepConfig, Query, QueryResult, MutationStepConfig, Mutation, MutationResult, QueryStep, MutationStep, Call, QueryAttempt, MutationAttempt, CredentialProvider } from '@superdurable/connectors-sdk';
|
|
5
4
|
import { StepTarget } from '@superdurable/dex';
|
|
6
5
|
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
7
6
|
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
@@ -11,6 +10,199 @@ import 'zod';
|
|
|
11
10
|
declare const ConnectorID = "elevenlabs";
|
|
12
11
|
/** Provider identity for named connections. */
|
|
13
12
|
declare const ProviderID = "elevenlabs";
|
|
13
|
+
/** Branch IDs for listModels. */
|
|
14
|
+
declare const ListModelsBranch: {
|
|
15
|
+
readonly Listed: "listed";
|
|
16
|
+
readonly ProviderRejected: "providerRejected";
|
|
17
|
+
readonly InvalidResponse: "invalidResponse";
|
|
18
|
+
readonly Defect: "defect";
|
|
19
|
+
};
|
|
20
|
+
/** ElevenLabs returned available models. */
|
|
21
|
+
declare const ListModelsBranchListed: "listed";
|
|
22
|
+
/** ElevenLabs rejected model listing. */
|
|
23
|
+
declare const ListModelsBranchProviderRejected: "providerRejected";
|
|
24
|
+
/** ElevenLabs returned invalid model data. */
|
|
25
|
+
declare const ListModelsBranchInvalidResponse: "invalidResponse";
|
|
26
|
+
/** Credentials are unavailable or invalid. */
|
|
27
|
+
declare const ListModelsBranchDefect: "defect";
|
|
28
|
+
/** Manifest definition for listModels. */
|
|
29
|
+
declare const ListModelsDefinition: QueryDefinition;
|
|
30
|
+
/** Manifest metadata for listModels. */
|
|
31
|
+
declare const ListModelsMetadata: {
|
|
32
|
+
readonly kind: "query";
|
|
33
|
+
readonly idempotency: "none";
|
|
34
|
+
readonly authorization: "required";
|
|
35
|
+
};
|
|
36
|
+
/** Branch IDs for listHistoryItems. */
|
|
37
|
+
declare const ListHistoryItemsBranch: {
|
|
38
|
+
readonly Listed: "listed";
|
|
39
|
+
readonly ProviderRejected: "providerRejected";
|
|
40
|
+
readonly InvalidResponse: "invalidResponse";
|
|
41
|
+
readonly Defect: "defect";
|
|
42
|
+
};
|
|
43
|
+
/** ElevenLabs returned a history page. */
|
|
44
|
+
declare const ListHistoryItemsBranchListed: "listed";
|
|
45
|
+
/** ElevenLabs rejected history listing. */
|
|
46
|
+
declare const ListHistoryItemsBranchProviderRejected: "providerRejected";
|
|
47
|
+
/** ElevenLabs returned invalid history data. */
|
|
48
|
+
declare const ListHistoryItemsBranchInvalidResponse: "invalidResponse";
|
|
49
|
+
/** History filters or credentials are invalid. */
|
|
50
|
+
declare const ListHistoryItemsBranchDefect: "defect";
|
|
51
|
+
/** Manifest definition for listHistoryItems. */
|
|
52
|
+
declare const ListHistoryItemsDefinition: QueryDefinition;
|
|
53
|
+
/** Manifest metadata for listHistoryItems. */
|
|
54
|
+
declare const ListHistoryItemsMetadata: {
|
|
55
|
+
readonly kind: "query";
|
|
56
|
+
readonly idempotency: "none";
|
|
57
|
+
readonly authorization: "required";
|
|
58
|
+
};
|
|
59
|
+
/** Branch IDs for getHistoryItem. */
|
|
60
|
+
declare const GetHistoryItemBranch: {
|
|
61
|
+
readonly Found: "found";
|
|
62
|
+
readonly NotFound: "notFound";
|
|
63
|
+
readonly ProviderRejected: "providerRejected";
|
|
64
|
+
readonly InvalidResponse: "invalidResponse";
|
|
65
|
+
readonly Defect: "defect";
|
|
66
|
+
};
|
|
67
|
+
/** ElevenLabs returned the generated item. */
|
|
68
|
+
declare const GetHistoryItemBranchFound: "found";
|
|
69
|
+
/** The generated item is unavailable. */
|
|
70
|
+
declare const GetHistoryItemBranchNotFound: "notFound";
|
|
71
|
+
/** ElevenLabs rejected item retrieval. */
|
|
72
|
+
declare const GetHistoryItemBranchProviderRejected: "providerRejected";
|
|
73
|
+
/** ElevenLabs returned invalid item data. */
|
|
74
|
+
declare const GetHistoryItemBranchInvalidResponse: "invalidResponse";
|
|
75
|
+
/** History item ID or credentials are invalid. */
|
|
76
|
+
declare const GetHistoryItemBranchDefect: "defect";
|
|
77
|
+
/** Manifest definition for getHistoryItem. */
|
|
78
|
+
declare const GetHistoryItemDefinition: QueryDefinition;
|
|
79
|
+
/** Manifest metadata for getHistoryItem. */
|
|
80
|
+
declare const GetHistoryItemMetadata: {
|
|
81
|
+
readonly kind: "query";
|
|
82
|
+
readonly idempotency: "none";
|
|
83
|
+
readonly authorization: "required";
|
|
84
|
+
};
|
|
85
|
+
/** Branch IDs for deleteHistoryItem. */
|
|
86
|
+
declare const DeleteHistoryItemBranch: {
|
|
87
|
+
readonly Deleted: "deleted";
|
|
88
|
+
readonly ProviderRejected: "providerRejected";
|
|
89
|
+
readonly InvalidResponse: "invalidResponse";
|
|
90
|
+
readonly Defect: "defect";
|
|
91
|
+
};
|
|
92
|
+
/** The generated item is absent. */
|
|
93
|
+
declare const DeleteHistoryItemBranchDeleted: "deleted";
|
|
94
|
+
/** ElevenLabs rejected deletion. */
|
|
95
|
+
declare const DeleteHistoryItemBranchProviderRejected: "providerRejected";
|
|
96
|
+
/** ElevenLabs returned an invalid deletion confirmation. */
|
|
97
|
+
declare const DeleteHistoryItemBranchInvalidResponse: "invalidResponse";
|
|
98
|
+
/** History item ID or credentials are invalid. */
|
|
99
|
+
declare const DeleteHistoryItemBranchDefect: "defect";
|
|
100
|
+
/** Manifest definition for deleteHistoryItem. */
|
|
101
|
+
declare const DeleteHistoryItemDefinition: MutationDefinition;
|
|
102
|
+
/** Manifest metadata for deleteHistoryItem. */
|
|
103
|
+
declare const DeleteHistoryItemMetadata: {
|
|
104
|
+
readonly kind: "mutation";
|
|
105
|
+
readonly idempotency: "required";
|
|
106
|
+
readonly authorization: "required";
|
|
107
|
+
};
|
|
108
|
+
/** Branch IDs for getVoice. */
|
|
109
|
+
declare const GetVoiceBranch: {
|
|
110
|
+
readonly Found: "found";
|
|
111
|
+
readonly NotFound: "notFound";
|
|
112
|
+
readonly ProviderRejected: "providerRejected";
|
|
113
|
+
readonly InvalidResponse: "invalidResponse";
|
|
114
|
+
readonly Defect: "defect";
|
|
115
|
+
};
|
|
116
|
+
/** ElevenLabs returned the requested voice. */
|
|
117
|
+
declare const GetVoiceBranchFound: "found";
|
|
118
|
+
/** The voice does not exist. */
|
|
119
|
+
declare const GetVoiceBranchNotFound: "notFound";
|
|
120
|
+
/** ElevenLabs conclusively rejected the read. */
|
|
121
|
+
declare const GetVoiceBranchProviderRejected: "providerRejected";
|
|
122
|
+
/** ElevenLabs returned malformed or oversized voice data. */
|
|
123
|
+
declare const GetVoiceBranchInvalidResponse: "invalidResponse";
|
|
124
|
+
/** Local voice ID or credentials are invalid. */
|
|
125
|
+
declare const GetVoiceBranchDefect: "defect";
|
|
126
|
+
/** Manifest definition for getVoice. */
|
|
127
|
+
declare const GetVoiceDefinition: QueryDefinition;
|
|
128
|
+
/** Manifest metadata for getVoice. */
|
|
129
|
+
declare const GetVoiceMetadata: {
|
|
130
|
+
readonly kind: "query";
|
|
131
|
+
readonly idempotency: "none";
|
|
132
|
+
readonly authorization: "required";
|
|
133
|
+
};
|
|
134
|
+
/** Branch IDs for editVoiceMetadata. */
|
|
135
|
+
declare const EditVoiceMetadataBranch: {
|
|
136
|
+
readonly Edited: "edited";
|
|
137
|
+
readonly NotFound: "notFound";
|
|
138
|
+
readonly ProviderRejected: "providerRejected";
|
|
139
|
+
readonly InvalidResponse: "invalidResponse";
|
|
140
|
+
readonly Defect: "defect";
|
|
141
|
+
};
|
|
142
|
+
/** ElevenLabs accepted the voice metadata edit. */
|
|
143
|
+
declare const EditVoiceMetadataBranchEdited: "edited";
|
|
144
|
+
/** The voice is unavailable. */
|
|
145
|
+
declare const EditVoiceMetadataBranchNotFound: "notFound";
|
|
146
|
+
/** ElevenLabs rejected the metadata edit. */
|
|
147
|
+
declare const EditVoiceMetadataBranchProviderRejected: "providerRejected";
|
|
148
|
+
/** ElevenLabs returned an invalid edit confirmation. */
|
|
149
|
+
declare const EditVoiceMetadataBranchInvalidResponse: "invalidResponse";
|
|
150
|
+
/** Voice ID and metadata or credentials are invalid. */
|
|
151
|
+
declare const EditVoiceMetadataBranchDefect: "defect";
|
|
152
|
+
/** Manifest definition for editVoiceMetadata. */
|
|
153
|
+
declare const EditVoiceMetadataDefinition: MutationDefinition;
|
|
154
|
+
/** Manifest metadata for editVoiceMetadata. */
|
|
155
|
+
declare const EditVoiceMetadataMetadata: {
|
|
156
|
+
readonly kind: "mutation";
|
|
157
|
+
readonly idempotency: "required";
|
|
158
|
+
readonly authorization: "required";
|
|
159
|
+
};
|
|
160
|
+
/** Branch IDs for deleteVoice. */
|
|
161
|
+
declare const DeleteVoiceBranch: {
|
|
162
|
+
readonly Deleted: "deleted";
|
|
163
|
+
readonly ProviderRejected: "providerRejected";
|
|
164
|
+
readonly InvalidResponse: "invalidResponse";
|
|
165
|
+
readonly Defect: "defect";
|
|
166
|
+
};
|
|
167
|
+
/** The voice is absent. */
|
|
168
|
+
declare const DeleteVoiceBranchDeleted: "deleted";
|
|
169
|
+
/** ElevenLabs rejected voice deletion. */
|
|
170
|
+
declare const DeleteVoiceBranchProviderRejected: "providerRejected";
|
|
171
|
+
/** ElevenLabs returned an invalid deletion confirmation. */
|
|
172
|
+
declare const DeleteVoiceBranchInvalidResponse: "invalidResponse";
|
|
173
|
+
/** Voice ID or credentials are invalid. */
|
|
174
|
+
declare const DeleteVoiceBranchDefect: "defect";
|
|
175
|
+
/** Manifest definition for deleteVoice. */
|
|
176
|
+
declare const DeleteVoiceDefinition: MutationDefinition;
|
|
177
|
+
/** Manifest metadata for deleteVoice. */
|
|
178
|
+
declare const DeleteVoiceMetadata: {
|
|
179
|
+
readonly kind: "mutation";
|
|
180
|
+
readonly idempotency: "required";
|
|
181
|
+
readonly authorization: "required";
|
|
182
|
+
};
|
|
183
|
+
/** Branch IDs for updateVoiceSettings. */
|
|
184
|
+
declare const UpdateVoiceSettingsBranch: {
|
|
185
|
+
readonly Updated: "updated";
|
|
186
|
+
readonly NotFound: "notFound";
|
|
187
|
+
readonly ProviderRejected: "providerRejected";
|
|
188
|
+
readonly Defect: "defect";
|
|
189
|
+
};
|
|
190
|
+
/** ElevenLabs confirmed the voice settings replacement. */
|
|
191
|
+
declare const UpdateVoiceSettingsBranchUpdated: "updated";
|
|
192
|
+
/** The voice does not exist. */
|
|
193
|
+
declare const UpdateVoiceSettingsBranchNotFound: "notFound";
|
|
194
|
+
/** ElevenLabs conclusively rejected the settings. */
|
|
195
|
+
declare const UpdateVoiceSettingsBranchProviderRejected: "providerRejected";
|
|
196
|
+
/** Local settings or credentials are invalid. */
|
|
197
|
+
declare const UpdateVoiceSettingsBranchDefect: "defect";
|
|
198
|
+
/** Manifest definition for updateVoiceSettings. */
|
|
199
|
+
declare const UpdateVoiceSettingsDefinition: MutationDefinition;
|
|
200
|
+
/** Manifest metadata for updateVoiceSettings. */
|
|
201
|
+
declare const UpdateVoiceSettingsMetadata: {
|
|
202
|
+
readonly kind: "mutation";
|
|
203
|
+
readonly idempotency: "required";
|
|
204
|
+
readonly authorization: "required";
|
|
205
|
+
};
|
|
14
206
|
/** Branch IDs for listVoices. */
|
|
15
207
|
declare const ListVoicesBranch: {
|
|
16
208
|
readonly Listed: "listed";
|
|
@@ -58,6 +250,172 @@ declare const CreateSpeechMetadata: {
|
|
|
58
250
|
readonly authorization: "required";
|
|
59
251
|
};
|
|
60
252
|
|
|
253
|
+
/** Configuration for the listModels connector Step. */
|
|
254
|
+
interface ListModelsStepConfig<StepInput, OperationInput = ListModelsInput, OperationOutput = ModelsList> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
255
|
+
/** Named connection supplying this operation. */
|
|
256
|
+
connection: Connection<{
|
|
257
|
+
listModels(): Query<OperationInput, OperationOutput>;
|
|
258
|
+
}>;
|
|
259
|
+
/** Name matching the bound connection. */
|
|
260
|
+
connectionName: string;
|
|
261
|
+
/** ElevenLabs returned available models. */
|
|
262
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
263
|
+
/** ElevenLabs rejected model listing. */
|
|
264
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
265
|
+
/** ElevenLabs returned invalid model data. */
|
|
266
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
267
|
+
/** Credentials are unavailable or invalid. */
|
|
268
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
269
|
+
}
|
|
270
|
+
/** Build the listModels Step from a named connection. */
|
|
271
|
+
declare function newListModelsStep<StepInput, OperationInput = ListModelsInput, OperationOutput = ModelsList>(configuration: ListModelsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
272
|
+
/** Configuration for the listHistoryItems connector Step. */
|
|
273
|
+
interface ListHistoryItemsStepConfig<StepInput, OperationInput = ListHistoryItemsInput, OperationOutput = HistoryItemsPage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
274
|
+
/** Named connection supplying this operation. */
|
|
275
|
+
connection: Connection<{
|
|
276
|
+
listHistoryItems(): Query<OperationInput, OperationOutput>;
|
|
277
|
+
}>;
|
|
278
|
+
/** Name matching the bound connection. */
|
|
279
|
+
connectionName: string;
|
|
280
|
+
/** ElevenLabs returned a history page. */
|
|
281
|
+
listed: StepTarget<QueryResult<OperationOutput>>;
|
|
282
|
+
/** ElevenLabs rejected history listing. */
|
|
283
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
284
|
+
/** ElevenLabs returned invalid history data. */
|
|
285
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
286
|
+
/** History filters or credentials are invalid. */
|
|
287
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
288
|
+
}
|
|
289
|
+
/** Build the listHistoryItems Step from a named connection. */
|
|
290
|
+
declare function newListHistoryItemsStep<StepInput, OperationInput = ListHistoryItemsInput, OperationOutput = HistoryItemsPage>(configuration: ListHistoryItemsStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
291
|
+
/** Configuration for the getHistoryItem connector Step. */
|
|
292
|
+
interface GetHistoryItemStepConfig<StepInput, OperationInput = HistoryItemIdentityInput, OperationOutput = HistoryItemMetadata> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
293
|
+
/** Named connection supplying this operation. */
|
|
294
|
+
connection: Connection<{
|
|
295
|
+
getHistoryItem(): Query<OperationInput, OperationOutput>;
|
|
296
|
+
}>;
|
|
297
|
+
/** Name matching the bound connection. */
|
|
298
|
+
connectionName: string;
|
|
299
|
+
/** ElevenLabs returned the generated item. */
|
|
300
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
301
|
+
/** The generated item is unavailable. */
|
|
302
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
303
|
+
/** ElevenLabs rejected item retrieval. */
|
|
304
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
305
|
+
/** ElevenLabs returned invalid item data. */
|
|
306
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
307
|
+
/** History item ID or credentials are invalid. */
|
|
308
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
309
|
+
}
|
|
310
|
+
/** Build the getHistoryItem Step from a named connection. */
|
|
311
|
+
declare function newGetHistoryItemStep<StepInput, OperationInput = HistoryItemIdentityInput, OperationOutput = HistoryItemMetadata>(configuration: GetHistoryItemStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
312
|
+
/** Configuration for the deleteHistoryItem connector Step. */
|
|
313
|
+
interface DeleteHistoryItemStepConfig<StepInput, OperationInput = HistoryItemIdentityInput, OperationOutput = DeletedHistoryItem> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
314
|
+
/** Named connection supplying this operation. */
|
|
315
|
+
connection: Connection<{
|
|
316
|
+
deleteHistoryItem(): Mutation<OperationInput, OperationOutput>;
|
|
317
|
+
}>;
|
|
318
|
+
/** Name matching the bound connection. */
|
|
319
|
+
connectionName: string;
|
|
320
|
+
/** The generated item is absent. */
|
|
321
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
322
|
+
/** ElevenLabs rejected deletion. */
|
|
323
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
324
|
+
/** ElevenLabs returned an invalid deletion confirmation. */
|
|
325
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
326
|
+
/** History item ID or credentials are invalid. */
|
|
327
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
328
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
329
|
+
maxSends?: number;
|
|
330
|
+
}
|
|
331
|
+
/** Build the deleteHistoryItem Step from a named connection. */
|
|
332
|
+
declare function newDeleteHistoryItemStep<StepInput, OperationInput = HistoryItemIdentityInput, OperationOutput = DeletedHistoryItem>(configuration: DeleteHistoryItemStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
333
|
+
/** Configuration for the getVoice connector Step. */
|
|
334
|
+
interface GetVoiceStepConfig<StepInput, OperationInput = GetVoiceInput, OperationOutput = Voice> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
335
|
+
/** Named connection supplying this operation. */
|
|
336
|
+
connection: Connection<{
|
|
337
|
+
getVoice(): Query<OperationInput, OperationOutput>;
|
|
338
|
+
}>;
|
|
339
|
+
/** Name matching the bound connection. */
|
|
340
|
+
connectionName: string;
|
|
341
|
+
/** ElevenLabs returned the requested voice. */
|
|
342
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
343
|
+
/** The voice does not exist. */
|
|
344
|
+
notFound?: StepTarget<QueryResult<OperationOutput>>;
|
|
345
|
+
/** ElevenLabs conclusively rejected the read. */
|
|
346
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
347
|
+
/** ElevenLabs returned malformed or oversized voice data. */
|
|
348
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
349
|
+
/** Local voice ID or credentials are invalid. */
|
|
350
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
351
|
+
}
|
|
352
|
+
/** Build the getVoice Step from a named connection. */
|
|
353
|
+
declare function newGetVoiceStep<StepInput, OperationInput = GetVoiceInput, OperationOutput = Voice>(configuration: GetVoiceStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
354
|
+
/** Configuration for the editVoiceMetadata connector Step. */
|
|
355
|
+
interface EditVoiceMetadataStepConfig<StepInput, OperationInput = EditVoiceMetadataInput, OperationOutput = EditedVoiceMetadata> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
356
|
+
/** Named connection supplying this operation. */
|
|
357
|
+
connection: Connection<{
|
|
358
|
+
editVoiceMetadata(): Mutation<OperationInput, OperationOutput>;
|
|
359
|
+
}>;
|
|
360
|
+
/** Name matching the bound connection. */
|
|
361
|
+
connectionName: string;
|
|
362
|
+
/** ElevenLabs accepted the voice metadata edit. */
|
|
363
|
+
edited: StepTarget<MutationResult<OperationOutput>>;
|
|
364
|
+
/** The voice is unavailable. */
|
|
365
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
366
|
+
/** ElevenLabs rejected the metadata edit. */
|
|
367
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
368
|
+
/** ElevenLabs returned an invalid edit confirmation. */
|
|
369
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
370
|
+
/** Voice ID and metadata or credentials are invalid. */
|
|
371
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
372
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
373
|
+
maxSends?: number;
|
|
374
|
+
}
|
|
375
|
+
/** Build the editVoiceMetadata Step from a named connection. */
|
|
376
|
+
declare function newEditVoiceMetadataStep<StepInput, OperationInput = EditVoiceMetadataInput, OperationOutput = EditedVoiceMetadata>(configuration: EditVoiceMetadataStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
377
|
+
/** Configuration for the deleteVoice connector Step. */
|
|
378
|
+
interface DeleteVoiceStepConfig<StepInput, OperationInput = GetVoiceInput, OperationOutput = DeletedVoice> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
379
|
+
/** Named connection supplying this operation. */
|
|
380
|
+
connection: Connection<{
|
|
381
|
+
deleteVoice(): Mutation<OperationInput, OperationOutput>;
|
|
382
|
+
}>;
|
|
383
|
+
/** Name matching the bound connection. */
|
|
384
|
+
connectionName: string;
|
|
385
|
+
/** The voice is absent. */
|
|
386
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
387
|
+
/** ElevenLabs rejected voice deletion. */
|
|
388
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
389
|
+
/** ElevenLabs returned an invalid deletion confirmation. */
|
|
390
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
391
|
+
/** Voice ID or credentials are invalid. */
|
|
392
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
393
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
394
|
+
maxSends?: number;
|
|
395
|
+
}
|
|
396
|
+
/** Build the deleteVoice Step from a named connection. */
|
|
397
|
+
declare function newDeleteVoiceStep<StepInput, OperationInput = GetVoiceInput, OperationOutput = DeletedVoice>(configuration: DeleteVoiceStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
398
|
+
/** Configuration for the updateVoiceSettings connector Step. */
|
|
399
|
+
interface UpdateVoiceSettingsStepConfig<StepInput, OperationInput = UpdateVoiceSettingsInput, OperationOutput = UpdatedVoiceSettings> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
400
|
+
/** Named connection supplying this operation. */
|
|
401
|
+
connection: Connection<{
|
|
402
|
+
updateVoiceSettings(): Mutation<OperationInput, OperationOutput>;
|
|
403
|
+
}>;
|
|
404
|
+
/** Name matching the bound connection. */
|
|
405
|
+
connectionName: string;
|
|
406
|
+
/** ElevenLabs confirmed the voice settings replacement. */
|
|
407
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
408
|
+
/** The voice does not exist. */
|
|
409
|
+
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
410
|
+
/** ElevenLabs conclusively rejected the settings. */
|
|
411
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
412
|
+
/** Local settings or credentials are invalid. */
|
|
413
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
414
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
415
|
+
maxSends?: number;
|
|
416
|
+
}
|
|
417
|
+
/** Build the updateVoiceSettings Step from a named connection. */
|
|
418
|
+
declare function newUpdateVoiceSettingsStep<StepInput, OperationInput = UpdateVoiceSettingsInput, OperationOutput = UpdatedVoiceSettings>(configuration: UpdateVoiceSettingsStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
61
419
|
/** Configuration for the listVoices connector Step. */
|
|
62
420
|
interface ListVoicesStepConfig<StepInput, OperationInput = ListVoicesInput, OperationOutput = ListVoicesOutput> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
63
421
|
/** Named connection supplying this operation. */
|
|
@@ -104,7 +462,7 @@ declare function newProjectConnection(project: LoadedProject, connectionName: st
|
|
|
104
462
|
declare class ListVoicesOperation implements Query<ListVoicesInput, ListVoicesOutput> {
|
|
105
463
|
private readonly client;
|
|
106
464
|
/** Bind an authenticated client. */ constructor(client: ElevenLabsClient);
|
|
107
|
-
/** Return the generated manifest definition. */ definition():
|
|
465
|
+
/** Return the generated manifest definition. */ definition(): QueryDefinition;
|
|
108
466
|
/** Validate and fetch one voice page. */
|
|
109
467
|
invoke(call: Call, input: ListVoicesInput): Promise<QueryAttempt<ListVoicesOutput>>;
|
|
110
468
|
}
|
|
@@ -112,10 +470,78 @@ declare class ListVoicesOperation implements Query<ListVoicesInput, ListVoicesOu
|
|
|
112
470
|
declare class CreateSpeechOperation implements Query<CreateSpeechInput, CreateSpeechOutput> {
|
|
113
471
|
private readonly client;
|
|
114
472
|
/** Bind an authenticated client. */ constructor(client: ElevenLabsClient);
|
|
115
|
-
/** Return the generated manifest definition. */ definition():
|
|
473
|
+
/** Return the generated manifest definition. */ definition(): QueryDefinition;
|
|
116
474
|
/** Validate and synthesize one response. */
|
|
117
475
|
invoke(call: Call, input: CreateSpeechInput): Promise<QueryAttempt<CreateSpeechOutput>>;
|
|
118
476
|
}
|
|
477
|
+
/** List available ElevenLabs speech models and input limits. */
|
|
478
|
+
declare class ListModelsOperation implements Query<ListModelsInput, ModelsList> {
|
|
479
|
+
private readonly client;
|
|
480
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
481
|
+
/** Return the manifest Query contract. */ definition(): QueryDefinition;
|
|
482
|
+
/** Validate input and classify the provider response. */
|
|
483
|
+
invoke(call: Call, input: ListModelsInput): Promise<QueryAttempt<ModelsList>>;
|
|
484
|
+
}
|
|
485
|
+
/** List operational metadata for generated history items. */
|
|
486
|
+
declare class ListHistoryItemsOperation implements Query<ListHistoryItemsInput, HistoryItemsPage> {
|
|
487
|
+
private readonly client;
|
|
488
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
489
|
+
/** Return the manifest Query contract. */ definition(): QueryDefinition;
|
|
490
|
+
/** Validate input and classify the provider response. */
|
|
491
|
+
invoke(call: Call, input: ListHistoryItemsInput): Promise<QueryAttempt<HistoryItemsPage>>;
|
|
492
|
+
}
|
|
493
|
+
/** Read one history item's operational metadata. */
|
|
494
|
+
declare class GetHistoryItemOperation implements Query<HistoryItemIdentityInput, HistoryItemMetadata> {
|
|
495
|
+
private readonly client;
|
|
496
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
497
|
+
/** Return the manifest Query contract. */ definition(): QueryDefinition;
|
|
498
|
+
/** Validate input and classify the provider response. */
|
|
499
|
+
invoke(call: Call, input: HistoryItemIdentityInput): Promise<QueryAttempt<HistoryItemMetadata>>;
|
|
500
|
+
}
|
|
501
|
+
/** Permanently delete one generated history item. */
|
|
502
|
+
declare class DeleteHistoryItemOperation implements Mutation<HistoryItemIdentityInput, DeletedHistoryItem> {
|
|
503
|
+
private readonly client;
|
|
504
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
505
|
+
/** Return the manifest Mutation contract. */ definition(): MutationDefinition;
|
|
506
|
+
/** Preserve one call identity across retries. */ idempotencyKey(callId: string): string;
|
|
507
|
+
/** Validate input and classify the provider response. */
|
|
508
|
+
invoke(call: Call, input: HistoryItemIdentityInput): Promise<MutationAttempt<DeletedHistoryItem>>;
|
|
509
|
+
}
|
|
510
|
+
/** Read one ElevenLabs voice ID and name. */
|
|
511
|
+
declare class GetVoiceOperation implements Query<GetVoiceInput, Voice> {
|
|
512
|
+
private readonly client;
|
|
513
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
514
|
+
/** Return the manifest Query contract. */ definition(): QueryDefinition;
|
|
515
|
+
/** Validate input and classify the provider response. */
|
|
516
|
+
invoke(call: Call, input: GetVoiceInput): Promise<QueryAttempt<Voice>>;
|
|
517
|
+
}
|
|
518
|
+
/** Replace a voice name and optionally its description. */
|
|
519
|
+
declare class EditVoiceMetadataOperation implements Mutation<EditVoiceMetadataInput, EditedVoiceMetadata> {
|
|
520
|
+
private readonly client;
|
|
521
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
522
|
+
/** Return the manifest Mutation contract. */ definition(): MutationDefinition;
|
|
523
|
+
/** Preserve one call identity across retries. */ idempotencyKey(callId: string): string;
|
|
524
|
+
/** Validate input and classify the provider response. */
|
|
525
|
+
invoke(call: Call, input: EditVoiceMetadataInput): Promise<MutationAttempt<EditedVoiceMetadata>>;
|
|
526
|
+
}
|
|
527
|
+
/** Permanently delete one ElevenLabs voice. */
|
|
528
|
+
declare class DeleteVoiceOperation implements Mutation<GetVoiceInput, DeletedVoice> {
|
|
529
|
+
private readonly client;
|
|
530
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
531
|
+
/** Return the manifest Mutation contract. */ definition(): MutationDefinition;
|
|
532
|
+
/** Preserve one call identity across retries. */ idempotencyKey(callId: string): string;
|
|
533
|
+
/** Validate input and classify the provider response. */
|
|
534
|
+
invoke(call: Call, input: GetVoiceInput): Promise<MutationAttempt<DeletedVoice>>;
|
|
535
|
+
}
|
|
536
|
+
/** Replace the five generation settings for one voice. */
|
|
537
|
+
declare class UpdateVoiceSettingsOperation implements Mutation<UpdateVoiceSettingsInput, UpdatedVoiceSettings> {
|
|
538
|
+
private readonly client;
|
|
539
|
+
/** Bind the provider client. */ constructor(client: ElevenLabsClient);
|
|
540
|
+
/** Return the manifest Mutation contract. */ definition(): MutationDefinition;
|
|
541
|
+
/** Preserve one call identity across retries. */ idempotencyKey(callId: string): string;
|
|
542
|
+
/** Validate input and classify the provider response. */
|
|
543
|
+
invoke(call: Call, input: UpdateVoiceSettingsInput): Promise<MutationAttempt<UpdatedVoiceSettings>>;
|
|
544
|
+
}
|
|
119
545
|
|
|
120
546
|
/** HTTP sender used by ElevenLabs, replaceable by a deterministic provider fixture. */
|
|
121
547
|
type ElevenLabsRequestSender = (request: ProviderRequest) => Promise<ProviderResponse>;
|
|
@@ -126,6 +552,14 @@ interface ElevenLabsClientOptions {
|
|
|
126
552
|
/** Clock used to interpret HTTP Retry-After dates. */
|
|
127
553
|
now?: () => Date;
|
|
128
554
|
}
|
|
555
|
+
interface WriteRequest {
|
|
556
|
+
method: 'POST' | 'DELETE';
|
|
557
|
+
path: string;
|
|
558
|
+
body?: Uint8Array;
|
|
559
|
+
contentType?: string;
|
|
560
|
+
absentIsSuccess?: boolean;
|
|
561
|
+
}
|
|
562
|
+
declare const elevenLabsWrite: unique symbol;
|
|
129
563
|
/** Immutable provider settings with credentials resolved for every invocation. */
|
|
130
564
|
declare class ElevenLabsClient {
|
|
131
565
|
private readonly baseUrl;
|
|
@@ -140,8 +574,26 @@ declare class ElevenLabsClient {
|
|
|
140
574
|
listVoices(): ListVoicesOperation;
|
|
141
575
|
/** Bind the speech-generation query. */
|
|
142
576
|
createSpeech(): CreateSpeechOperation;
|
|
577
|
+
/** List available ElevenLabs speech models and input limits. */
|
|
578
|
+
listModels(): ListModelsOperation;
|
|
579
|
+
/** List operational metadata for generated history items. */
|
|
580
|
+
listHistoryItems(): ListHistoryItemsOperation;
|
|
581
|
+
/** Read one history item's operational metadata. */
|
|
582
|
+
getHistoryItem(): GetHistoryItemOperation;
|
|
583
|
+
/** Permanently delete one generated history item. */
|
|
584
|
+
deleteHistoryItem(): DeleteHistoryItemOperation;
|
|
585
|
+
/** Read one ElevenLabs voice ID and name. */
|
|
586
|
+
getVoice(): GetVoiceOperation;
|
|
587
|
+
/** Replace a voice name and optionally its description. */
|
|
588
|
+
editVoiceMetadata(): EditVoiceMetadataOperation;
|
|
589
|
+
/** Permanently delete one ElevenLabs voice. */
|
|
590
|
+
deleteVoice(): DeleteVoiceOperation;
|
|
591
|
+
/** Replace the five generation settings for one voice. */
|
|
592
|
+
updateVoiceSettings(): UpdateVoiceSettingsOperation;
|
|
143
593
|
/** Send one request and classify its status before decoding its body. */
|
|
144
|
-
invokeQuery<Output>(call: Call, operation: string, success: string, method: string, path: string, query: URLSearchParams, body: Uint8Array | undefined, empty: Output, decode: (body: Uint8Array) => Output): Promise<QueryAttempt<Output>>;
|
|
594
|
+
invokeQuery<Output>(call: Call, operation: string, success: string, method: string, path: string, query: URLSearchParams, body: Uint8Array | undefined, empty: Output, decode: (body: Uint8Array) => Output, hasNotFoundBranch?: boolean): Promise<QueryAttempt<Output>>;
|
|
595
|
+
[elevenLabsWrite]<Output>(call: Call, operation: string, branch: string, request: WriteRequest, empty: Output, value: Output): Promise<MutationAttempt<Output>>;
|
|
596
|
+
private exchange;
|
|
145
597
|
}
|
|
146
598
|
|
|
147
|
-
export { Config, Connection, ConnectorID, CreateSpeechBranch, CreateSpeechBranchCreated, CreateSpeechBranchDefect, CreateSpeechBranchInvalidResponse, CreateSpeechBranchProviderRejected, CreateSpeechDefinition, CreateSpeechInput, CreateSpeechMetadata, CreateSpeechOperation, CreateSpeechOutput, type CreateSpeechStepConfig, Credentials, ElevenLabsClient, type ElevenLabsClientOptions, type ElevenLabsRequestSender, ListVoicesBranch, ListVoicesBranchDefect, ListVoicesBranchInvalidResponse, ListVoicesBranchListed, ListVoicesBranchProviderRejected, ListVoicesDefinition, ListVoicesInput, ListVoicesMetadata, ListVoicesOperation, ListVoicesOutput, type ListVoicesStepConfig, ProviderID, newCreateSpeechStep, newListVoicesStep, newProjectConnection };
|
|
599
|
+
export { Config, Connection, ConnectorID, CreateSpeechBranch, CreateSpeechBranchCreated, CreateSpeechBranchDefect, CreateSpeechBranchInvalidResponse, CreateSpeechBranchProviderRejected, CreateSpeechDefinition, CreateSpeechInput, CreateSpeechMetadata, CreateSpeechOperation, CreateSpeechOutput, type CreateSpeechStepConfig, Credentials, DeleteHistoryItemBranch, DeleteHistoryItemBranchDefect, DeleteHistoryItemBranchDeleted, DeleteHistoryItemBranchInvalidResponse, DeleteHistoryItemBranchProviderRejected, DeleteHistoryItemDefinition, DeleteHistoryItemMetadata, DeleteHistoryItemOperation, type DeleteHistoryItemStepConfig, DeleteVoiceBranch, DeleteVoiceBranchDefect, DeleteVoiceBranchDeleted, DeleteVoiceBranchInvalidResponse, DeleteVoiceBranchProviderRejected, DeleteVoiceDefinition, DeleteVoiceMetadata, DeleteVoiceOperation, type DeleteVoiceStepConfig, DeletedHistoryItem, DeletedVoice, EditVoiceMetadataBranch, EditVoiceMetadataBranchDefect, EditVoiceMetadataBranchEdited, EditVoiceMetadataBranchInvalidResponse, EditVoiceMetadataBranchNotFound, EditVoiceMetadataBranchProviderRejected, EditVoiceMetadataDefinition, EditVoiceMetadataInput, EditVoiceMetadataMetadata, EditVoiceMetadataOperation, type EditVoiceMetadataStepConfig, EditedVoiceMetadata, ElevenLabsClient, type ElevenLabsClientOptions, type ElevenLabsRequestSender, GetHistoryItemBranch, GetHistoryItemBranchDefect, GetHistoryItemBranchFound, GetHistoryItemBranchInvalidResponse, GetHistoryItemBranchNotFound, GetHistoryItemBranchProviderRejected, GetHistoryItemDefinition, GetHistoryItemMetadata, GetHistoryItemOperation, type GetHistoryItemStepConfig, GetVoiceBranch, GetVoiceBranchDefect, GetVoiceBranchFound, GetVoiceBranchInvalidResponse, GetVoiceBranchNotFound, GetVoiceBranchProviderRejected, GetVoiceDefinition, GetVoiceInput, GetVoiceMetadata, GetVoiceOperation, type GetVoiceStepConfig, HistoryItemIdentityInput, HistoryItemMetadata, HistoryItemsPage, ListHistoryItemsBranch, ListHistoryItemsBranchDefect, ListHistoryItemsBranchInvalidResponse, ListHistoryItemsBranchListed, ListHistoryItemsBranchProviderRejected, ListHistoryItemsDefinition, ListHistoryItemsInput, ListHistoryItemsMetadata, ListHistoryItemsOperation, type ListHistoryItemsStepConfig, ListModelsBranch, ListModelsBranchDefect, ListModelsBranchInvalidResponse, ListModelsBranchListed, ListModelsBranchProviderRejected, ListModelsDefinition, ListModelsInput, ListModelsMetadata, ListModelsOperation, type ListModelsStepConfig, ListVoicesBranch, ListVoicesBranchDefect, ListVoicesBranchInvalidResponse, ListVoicesBranchListed, ListVoicesBranchProviderRejected, ListVoicesDefinition, ListVoicesInput, ListVoicesMetadata, ListVoicesOperation, ListVoicesOutput, type ListVoicesStepConfig, ModelsList, ProviderID, UpdateVoiceSettingsBranch, UpdateVoiceSettingsBranchDefect, UpdateVoiceSettingsBranchNotFound, UpdateVoiceSettingsBranchProviderRejected, UpdateVoiceSettingsBranchUpdated, UpdateVoiceSettingsDefinition, UpdateVoiceSettingsInput, UpdateVoiceSettingsMetadata, UpdateVoiceSettingsOperation, type UpdateVoiceSettingsStepConfig, UpdatedVoiceSettings, Voice, newCreateSpeechStep, newDeleteHistoryItemStep, newDeleteVoiceStep, newEditVoiceMetadataStep, newGetHistoryItemStep, newGetVoiceStep, newListHistoryItemsStep, newListModelsStep, newListVoicesStep, newProjectConnection, newUpdateVoiceSettingsStep };
|