@nopaque/sdk 0.1.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 +53 -0
- package/LICENSE +21 -0
- package/README.md +81 -0
- package/dist/index.cjs +1192 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +894 -0
- package/dist/index.d.ts +894 -0
- package/dist/index.mjs +1149 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +58 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,894 @@
|
|
|
1
|
+
declare class NopaqueError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
declare class NopaqueConfigError extends NopaqueError {
|
|
5
|
+
}
|
|
6
|
+
declare class NopaqueTimeoutError extends NopaqueError {
|
|
7
|
+
}
|
|
8
|
+
declare class APIConnectionError extends NopaqueError {
|
|
9
|
+
cause?: unknown;
|
|
10
|
+
constructor(message: string, cause?: unknown);
|
|
11
|
+
}
|
|
12
|
+
declare class APITimeoutError extends NopaqueError {
|
|
13
|
+
}
|
|
14
|
+
interface APIErrorInit {
|
|
15
|
+
status: number;
|
|
16
|
+
code?: string | null;
|
|
17
|
+
message?: string;
|
|
18
|
+
details?: unknown;
|
|
19
|
+
requestId?: string | null;
|
|
20
|
+
response?: Response | null;
|
|
21
|
+
}
|
|
22
|
+
declare class NopaqueAPIError extends NopaqueError {
|
|
23
|
+
status: number;
|
|
24
|
+
code: string | null;
|
|
25
|
+
details: unknown;
|
|
26
|
+
requestId: string | null;
|
|
27
|
+
response: Response | null;
|
|
28
|
+
constructor(init: APIErrorInit);
|
|
29
|
+
}
|
|
30
|
+
declare class ValidationError extends NopaqueAPIError {
|
|
31
|
+
}
|
|
32
|
+
declare class AuthenticationError extends NopaqueAPIError {
|
|
33
|
+
}
|
|
34
|
+
declare class PermissionError extends NopaqueAPIError {
|
|
35
|
+
}
|
|
36
|
+
declare class NotFoundError extends NopaqueAPIError {
|
|
37
|
+
}
|
|
38
|
+
declare class ConflictError extends NopaqueAPIError {
|
|
39
|
+
}
|
|
40
|
+
declare class ServerError extends NopaqueAPIError {
|
|
41
|
+
}
|
|
42
|
+
declare class RateLimitError extends NopaqueAPIError {
|
|
43
|
+
retryAfter: number | null;
|
|
44
|
+
constructor(init: APIErrorInit & {
|
|
45
|
+
retryAfter?: number | null;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface NopaqueOptions {
|
|
50
|
+
apiKey?: string;
|
|
51
|
+
baseUrl?: string;
|
|
52
|
+
timeout?: number;
|
|
53
|
+
maxRetries?: number;
|
|
54
|
+
defaultHeaders?: Record<string, string>;
|
|
55
|
+
onRetry?: (attempt: number, error: NopaqueError, nextDelayMs: number) => void;
|
|
56
|
+
fetch?: typeof globalThis.fetch;
|
|
57
|
+
}
|
|
58
|
+
interface ResolvedConfig {
|
|
59
|
+
readonly apiKey: string;
|
|
60
|
+
readonly baseUrl: string;
|
|
61
|
+
readonly timeout: number;
|
|
62
|
+
readonly maxRetries: number;
|
|
63
|
+
readonly defaultHeaders: Record<string, string>;
|
|
64
|
+
readonly onRetry?: (attempt: number, error: NopaqueError, nextDelayMs: number) => void;
|
|
65
|
+
readonly fetch: typeof globalThis.fetch;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface RequestOptions {
|
|
69
|
+
timeout?: number;
|
|
70
|
+
maxRetries?: number;
|
|
71
|
+
headers?: Record<string, string>;
|
|
72
|
+
signal?: AbortSignal;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface RequestParams {
|
|
76
|
+
params?: object;
|
|
77
|
+
body?: unknown;
|
|
78
|
+
requestOptions?: RequestOptions;
|
|
79
|
+
}
|
|
80
|
+
declare class Transport {
|
|
81
|
+
readonly config: ResolvedConfig;
|
|
82
|
+
constructor(config: ResolvedConfig);
|
|
83
|
+
request<T = unknown>(method: string, path: string, { params, body, requestOptions }?: RequestParams): Promise<T>;
|
|
84
|
+
private buildUrl;
|
|
85
|
+
private buildHeaders;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare class Resource {
|
|
89
|
+
protected readonly transport: Transport;
|
|
90
|
+
constructor(transport: Transport);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare class Page<T> {
|
|
94
|
+
readonly items: T[];
|
|
95
|
+
readonly nextToken: string | null;
|
|
96
|
+
constructor(items: T[], nextToken: string | null);
|
|
97
|
+
}
|
|
98
|
+
interface PaginatorParams {
|
|
99
|
+
limit?: number;
|
|
100
|
+
nextToken?: string | null;
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A page may be returned in either of two shapes:
|
|
105
|
+
* { items: [...], nextToken: ... } — the standard shape
|
|
106
|
+
* { <itemsKey>: [...], nextToken?: ... } — the resource-named shape
|
|
107
|
+
* When `itemsKey` is provided, the paginator prefers that key but falls back
|
|
108
|
+
* to `items` for forward compatibility.
|
|
109
|
+
*/
|
|
110
|
+
interface PaginatorOptions<T, Raw = unknown> {
|
|
111
|
+
fetchPage: (params: PaginatorParams) => Promise<Record<string, unknown>>;
|
|
112
|
+
params: PaginatorParams;
|
|
113
|
+
mapItem?: (raw: Raw) => T;
|
|
114
|
+
itemsKey?: string;
|
|
115
|
+
}
|
|
116
|
+
declare class Paginator<T, Raw = unknown> implements AsyncIterable<T> {
|
|
117
|
+
private readonly options;
|
|
118
|
+
constructor(options: PaginatorOptions<T, Raw>);
|
|
119
|
+
[Symbol.asyncIterator](): AsyncIterator<T>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface AudioFile {
|
|
123
|
+
id: string;
|
|
124
|
+
fileName: string;
|
|
125
|
+
contentType: string;
|
|
126
|
+
sizeBytes?: number;
|
|
127
|
+
createdAt?: string;
|
|
128
|
+
}
|
|
129
|
+
interface AudioUploadURL {
|
|
130
|
+
uploadUrl: string;
|
|
131
|
+
audioId: string;
|
|
132
|
+
expiresIn: number;
|
|
133
|
+
}
|
|
134
|
+
interface AudioDownloadURL {
|
|
135
|
+
downloadUrl: string;
|
|
136
|
+
expiresIn: number;
|
|
137
|
+
}
|
|
138
|
+
interface CreateUploadUrlRequest {
|
|
139
|
+
fileName: string;
|
|
140
|
+
contentType: string;
|
|
141
|
+
}
|
|
142
|
+
interface AudioListParams {
|
|
143
|
+
limit?: number;
|
|
144
|
+
nextToken?: string;
|
|
145
|
+
}
|
|
146
|
+
interface UploadInput {
|
|
147
|
+
/** Path string, Buffer/Uint8Array bytes, ReadableStream, File/Blob, or Node file stream. */
|
|
148
|
+
file: string | Uint8Array | ReadableStream<Uint8Array> | Blob | NodeJS.ReadableStream;
|
|
149
|
+
contentType?: string;
|
|
150
|
+
name?: string;
|
|
151
|
+
}
|
|
152
|
+
interface DownloadOptions {
|
|
153
|
+
to?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
declare class AudioResource extends Resource {
|
|
157
|
+
list(params?: AudioListParams, requestOptions?: RequestOptions): Paginator<AudioFile>;
|
|
158
|
+
listPage(params?: AudioListParams, requestOptions?: RequestOptions): Promise<Page<AudioFile>>;
|
|
159
|
+
get(audioId: string, requestOptions?: RequestOptions): Promise<AudioFile>;
|
|
160
|
+
delete(audioId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
161
|
+
createUploadUrl(body: CreateUploadUrlRequest, requestOptions?: RequestOptions): Promise<AudioUploadURL>;
|
|
162
|
+
createDownloadUrl(audioId: string, requestOptions?: RequestOptions): Promise<AudioDownloadURL>;
|
|
163
|
+
upload(input: UploadInput, requestOptions?: RequestOptions): Promise<AudioFile>;
|
|
164
|
+
download(audioId: string): Promise<Uint8Array>;
|
|
165
|
+
download(audioId: string, options: DownloadOptions & {
|
|
166
|
+
to: string;
|
|
167
|
+
}): Promise<void>;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
type BatchStatus = 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
171
|
+
interface Batch {
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
configId: string;
|
|
175
|
+
datasetId: string;
|
|
176
|
+
status: BatchStatus;
|
|
177
|
+
createdAt?: string;
|
|
178
|
+
updatedAt?: string;
|
|
179
|
+
}
|
|
180
|
+
interface CreateBatchRequest {
|
|
181
|
+
name: string;
|
|
182
|
+
configId: string;
|
|
183
|
+
datasetId: string;
|
|
184
|
+
}
|
|
185
|
+
interface UpdateBatchRequest {
|
|
186
|
+
name?: string;
|
|
187
|
+
datasetId?: string;
|
|
188
|
+
configId?: string;
|
|
189
|
+
}
|
|
190
|
+
interface BatchesListParams {
|
|
191
|
+
limit?: number;
|
|
192
|
+
nextToken?: string;
|
|
193
|
+
}
|
|
194
|
+
type BatchRunStatus = 'running' | 'completed' | 'failed' | 'cancelled';
|
|
195
|
+
interface BatchRun {
|
|
196
|
+
id: string;
|
|
197
|
+
batchId?: string;
|
|
198
|
+
status: BatchRunStatus;
|
|
199
|
+
totalNumbers?: number;
|
|
200
|
+
passed?: number;
|
|
201
|
+
failed?: number;
|
|
202
|
+
passRate?: number;
|
|
203
|
+
startedAt?: string;
|
|
204
|
+
completedAt?: string;
|
|
205
|
+
/** @deprecated use `id` */
|
|
206
|
+
runId?: string;
|
|
207
|
+
[key: string]: unknown;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
interface BatchesWaitForOptions {
|
|
211
|
+
timeout?: number;
|
|
212
|
+
pollInterval?: number;
|
|
213
|
+
intervalCap?: number;
|
|
214
|
+
onUpdate?: (run: BatchRun) => void;
|
|
215
|
+
requestOptions?: RequestOptions;
|
|
216
|
+
}
|
|
217
|
+
declare class BatchesResource extends Resource {
|
|
218
|
+
create(body: CreateBatchRequest, requestOptions?: RequestOptions): Promise<Batch>;
|
|
219
|
+
list(params?: BatchesListParams, requestOptions?: RequestOptions): Paginator<Batch>;
|
|
220
|
+
listPage(params?: BatchesListParams, requestOptions?: RequestOptions): Promise<Page<Batch>>;
|
|
221
|
+
get(batchId: string, requestOptions?: RequestOptions): Promise<Batch>;
|
|
222
|
+
update(batchId: string, body: UpdateBatchRequest, requestOptions?: RequestOptions): Promise<Batch>;
|
|
223
|
+
delete(batchId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
224
|
+
run(batchId: string, requestOptions?: RequestOptions): Promise<BatchRun>;
|
|
225
|
+
runs(batchId: string, params?: BatchesListParams, requestOptions?: RequestOptions): Paginator<BatchRun>;
|
|
226
|
+
listRuns(params?: BatchesListParams, requestOptions?: RequestOptions): Paginator<BatchRun>;
|
|
227
|
+
getRun(runId: string, requestOptions?: RequestOptions): Promise<BatchRun>;
|
|
228
|
+
waitForRun(runId: string, opts?: BatchesWaitForOptions): Promise<BatchRun>;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface Dataset {
|
|
232
|
+
id: string;
|
|
233
|
+
name: string;
|
|
234
|
+
description?: string;
|
|
235
|
+
itemCount?: number;
|
|
236
|
+
createdAt?: string;
|
|
237
|
+
updatedAt?: string;
|
|
238
|
+
}
|
|
239
|
+
interface CreateDatasetRequest {
|
|
240
|
+
name: string;
|
|
241
|
+
description?: string;
|
|
242
|
+
}
|
|
243
|
+
interface UpdateDatasetRequest {
|
|
244
|
+
name?: string;
|
|
245
|
+
description?: string;
|
|
246
|
+
}
|
|
247
|
+
interface DatasetsListParams {
|
|
248
|
+
limit?: number;
|
|
249
|
+
nextToken?: string;
|
|
250
|
+
}
|
|
251
|
+
interface ResolvedDatasetEntry {
|
|
252
|
+
phoneNumber?: string;
|
|
253
|
+
name?: string;
|
|
254
|
+
[key: string]: unknown;
|
|
255
|
+
}
|
|
256
|
+
interface ResolvedDataset {
|
|
257
|
+
datasetId: string;
|
|
258
|
+
resolvedEntries: ResolvedDatasetEntry[];
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
declare class DatasetsResource extends Resource {
|
|
262
|
+
create(body: CreateDatasetRequest, requestOptions?: RequestOptions): Promise<Dataset>;
|
|
263
|
+
list(params?: DatasetsListParams, requestOptions?: RequestOptions): Paginator<Dataset>;
|
|
264
|
+
listPage(params?: DatasetsListParams, requestOptions?: RequestOptions): Promise<Page<Dataset>>;
|
|
265
|
+
get(datasetId: string, requestOptions?: RequestOptions): Promise<Dataset>;
|
|
266
|
+
update(datasetId: string, body: UpdateDatasetRequest, requestOptions?: RequestOptions): Promise<Dataset>;
|
|
267
|
+
delete(datasetId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
268
|
+
resolve(datasetId: string, requestOptions?: RequestOptions): Promise<ResolvedDataset>;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
type EnrichmentStatus = 'queued' | 'running' | 'completed' | 'failed';
|
|
272
|
+
interface EnrichmentDimensions {
|
|
273
|
+
accessibility?: number;
|
|
274
|
+
clarity?: number;
|
|
275
|
+
efficiency?: number;
|
|
276
|
+
completeness?: number;
|
|
277
|
+
professionalism?: number;
|
|
278
|
+
[key: string]: number | undefined;
|
|
279
|
+
}
|
|
280
|
+
interface QualityScoringResults {
|
|
281
|
+
overallScore?: number;
|
|
282
|
+
sentiment?: string;
|
|
283
|
+
dimensions?: EnrichmentDimensions;
|
|
284
|
+
rationale?: string;
|
|
285
|
+
[key: string]: unknown;
|
|
286
|
+
}
|
|
287
|
+
interface Enrichment {
|
|
288
|
+
jobId: string;
|
|
289
|
+
runId: string;
|
|
290
|
+
type: string;
|
|
291
|
+
status: EnrichmentStatus;
|
|
292
|
+
results?: QualityScoringResults | Record<string, unknown>;
|
|
293
|
+
[key: string]: unknown;
|
|
294
|
+
}
|
|
295
|
+
interface TokenUsageDetails {
|
|
296
|
+
ivrAnalysisTokens?: number;
|
|
297
|
+
qualityScoringTokens?: number;
|
|
298
|
+
totalTokens?: number;
|
|
299
|
+
[key: string]: number | undefined;
|
|
300
|
+
}
|
|
301
|
+
interface TokenUsageResponse {
|
|
302
|
+
jobId: string;
|
|
303
|
+
runId: string;
|
|
304
|
+
usage: TokenUsageDetails;
|
|
305
|
+
}
|
|
306
|
+
interface EnrichRequest {
|
|
307
|
+
/** Optional set of enrichment types to queue. Server chooses defaults when omitted. */
|
|
308
|
+
enrichmentTypes?: string[];
|
|
309
|
+
}
|
|
310
|
+
interface EnrichResponse {
|
|
311
|
+
jobId: string;
|
|
312
|
+
runId: string;
|
|
313
|
+
status: EnrichmentStatus;
|
|
314
|
+
enrichmentTypes: string[];
|
|
315
|
+
queuedAt?: string;
|
|
316
|
+
[key: string]: unknown;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
declare class EnrichmentResource extends Resource {
|
|
320
|
+
get(jobId: string, runId: string, type: string, requestOptions?: RequestOptions): Promise<Enrichment>;
|
|
321
|
+
tokenUsage(jobId: string, runId: string, requestOptions?: RequestOptions): Promise<TokenUsageResponse>;
|
|
322
|
+
enrich(jobId: string, runId: string, body?: EnrichRequest, requestOptions?: RequestOptions): Promise<EnrichResponse>;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
type LoadTestStatus = 'created' | 'queued' | 'running' | 'completed' | 'aborted' | 'failed';
|
|
326
|
+
interface LoadTest {
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
configId: string;
|
|
330
|
+
concurrency: number;
|
|
331
|
+
totalCalls: number;
|
|
332
|
+
status: LoadTestStatus;
|
|
333
|
+
runId?: string;
|
|
334
|
+
createdAt?: string;
|
|
335
|
+
updatedAt?: string;
|
|
336
|
+
startedAt?: string;
|
|
337
|
+
completedAt?: string;
|
|
338
|
+
abortedAt?: string;
|
|
339
|
+
}
|
|
340
|
+
interface CreateLoadTestRequest {
|
|
341
|
+
name: string;
|
|
342
|
+
configId: string;
|
|
343
|
+
concurrency: number;
|
|
344
|
+
totalCalls: number;
|
|
345
|
+
}
|
|
346
|
+
interface UpdateLoadTestRequest {
|
|
347
|
+
name?: string;
|
|
348
|
+
concurrency?: number;
|
|
349
|
+
totalCalls?: number;
|
|
350
|
+
}
|
|
351
|
+
interface LoadTestingListParams {
|
|
352
|
+
limit?: number;
|
|
353
|
+
nextToken?: string;
|
|
354
|
+
}
|
|
355
|
+
interface LoadTestEstimateRequest {
|
|
356
|
+
configId: string;
|
|
357
|
+
concurrency: number;
|
|
358
|
+
totalCalls: number;
|
|
359
|
+
}
|
|
360
|
+
interface LoadTestEstimate {
|
|
361
|
+
estimatedMinutes: number;
|
|
362
|
+
estimatedCost: string;
|
|
363
|
+
concurrency: number;
|
|
364
|
+
totalCalls: number;
|
|
365
|
+
}
|
|
366
|
+
interface LoadTestProgress {
|
|
367
|
+
completedCalls: number;
|
|
368
|
+
totalCalls: number;
|
|
369
|
+
passRate?: number;
|
|
370
|
+
}
|
|
371
|
+
interface LoadTestStatusResponse {
|
|
372
|
+
id: string;
|
|
373
|
+
status: LoadTestStatus;
|
|
374
|
+
progress: LoadTestProgress;
|
|
375
|
+
[key: string]: unknown;
|
|
376
|
+
}
|
|
377
|
+
interface LoadTestRun {
|
|
378
|
+
id: string;
|
|
379
|
+
loadTestId?: string;
|
|
380
|
+
status: LoadTestStatus;
|
|
381
|
+
passRate?: number;
|
|
382
|
+
startedAt?: string;
|
|
383
|
+
completedAt?: string;
|
|
384
|
+
/** @deprecated use `id` */
|
|
385
|
+
runId?: string;
|
|
386
|
+
[key: string]: unknown;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
interface LoadTestingWaitForOptions {
|
|
390
|
+
timeout?: number;
|
|
391
|
+
pollInterval?: number;
|
|
392
|
+
intervalCap?: number;
|
|
393
|
+
onUpdate?: (status: LoadTestStatusResponse) => void;
|
|
394
|
+
requestOptions?: RequestOptions;
|
|
395
|
+
}
|
|
396
|
+
declare class LoadTestingResource extends Resource {
|
|
397
|
+
create(body: CreateLoadTestRequest, requestOptions?: RequestOptions): Promise<LoadTest>;
|
|
398
|
+
list(params?: LoadTestingListParams, requestOptions?: RequestOptions): Paginator<LoadTest>;
|
|
399
|
+
listPage(params?: LoadTestingListParams, requestOptions?: RequestOptions): Promise<Page<LoadTest>>;
|
|
400
|
+
get(loadTestId: string, requestOptions?: RequestOptions): Promise<LoadTest>;
|
|
401
|
+
update(loadTestId: string, body: UpdateLoadTestRequest, requestOptions?: RequestOptions): Promise<LoadTest>;
|
|
402
|
+
delete(loadTestId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
403
|
+
estimate(body: LoadTestEstimateRequest, requestOptions?: RequestOptions): Promise<LoadTestEstimate>;
|
|
404
|
+
start(loadTestId: string, requestOptions?: RequestOptions): Promise<LoadTest>;
|
|
405
|
+
abort(loadTestId: string, requestOptions?: RequestOptions): Promise<LoadTest>;
|
|
406
|
+
status(loadTestId: string, requestOptions?: RequestOptions): Promise<LoadTestStatusResponse>;
|
|
407
|
+
listRuns(params?: LoadTestingListParams, requestOptions?: RequestOptions): Paginator<LoadTestRun>;
|
|
408
|
+
waitForComplete(loadTestId: string, opts?: LoadTestingWaitForOptions): Promise<LoadTestStatusResponse>;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
type JobStatus = 'idle' | 'queued' | 'running' | 'completed' | 'failed' | 'limited' | 'cancelled' | 'created';
|
|
412
|
+
type StepStatus = 'pending' | 'running' | 'completed' | 'failed' | 'retrying' | 'skipped';
|
|
413
|
+
type MappingMode = 'dtmf' | 'dtmf-audio' | 'full-audio';
|
|
414
|
+
interface RetryConfig {
|
|
415
|
+
enabled: boolean;
|
|
416
|
+
maxRetries: number;
|
|
417
|
+
}
|
|
418
|
+
interface MappingJobConfig {
|
|
419
|
+
maxDepth?: number;
|
|
420
|
+
maxCalls?: number;
|
|
421
|
+
maxDurationMinutes?: number;
|
|
422
|
+
maxConcurrency?: number;
|
|
423
|
+
language?: string;
|
|
424
|
+
voiceProfileId?: string;
|
|
425
|
+
dataProfileId?: string;
|
|
426
|
+
retryConfig?: RetryConfig;
|
|
427
|
+
}
|
|
428
|
+
interface MappingJobStats {
|
|
429
|
+
totalCalls: number;
|
|
430
|
+
completedCalls: number;
|
|
431
|
+
failedCalls: number;
|
|
432
|
+
loopsDetected: number;
|
|
433
|
+
retriedCalls: number;
|
|
434
|
+
}
|
|
435
|
+
interface MappingJob {
|
|
436
|
+
id: string;
|
|
437
|
+
workspaceId?: string;
|
|
438
|
+
userId?: string;
|
|
439
|
+
name: string;
|
|
440
|
+
phoneNumber?: string;
|
|
441
|
+
mappingMode?: MappingMode;
|
|
442
|
+
profileId?: string;
|
|
443
|
+
status: JobStatus;
|
|
444
|
+
config?: MappingJobConfig;
|
|
445
|
+
stats?: MappingJobStats;
|
|
446
|
+
inFlightCount?: number;
|
|
447
|
+
pendingPaths?: string[];
|
|
448
|
+
currentRunId?: string;
|
|
449
|
+
runId?: string;
|
|
450
|
+
limitReason?: string;
|
|
451
|
+
error?: string;
|
|
452
|
+
createdAt?: string;
|
|
453
|
+
updatedAt?: string;
|
|
454
|
+
startedAt?: string;
|
|
455
|
+
completedAt?: string;
|
|
456
|
+
cancelledAt?: string;
|
|
457
|
+
}
|
|
458
|
+
interface CreateMappingJobRequest {
|
|
459
|
+
name: string;
|
|
460
|
+
phoneNumber: string;
|
|
461
|
+
mappingMode: MappingMode;
|
|
462
|
+
profileId?: string;
|
|
463
|
+
config?: MappingJobConfig;
|
|
464
|
+
}
|
|
465
|
+
interface UpdateMappingJobRequest {
|
|
466
|
+
name?: string;
|
|
467
|
+
phoneNumber?: string;
|
|
468
|
+
mappingMode?: MappingMode;
|
|
469
|
+
config?: MappingJobConfig;
|
|
470
|
+
}
|
|
471
|
+
interface MappingListParams {
|
|
472
|
+
workspaceId?: string;
|
|
473
|
+
limit?: number;
|
|
474
|
+
nextToken?: string;
|
|
475
|
+
}
|
|
476
|
+
interface DTMFOption {
|
|
477
|
+
digit: string;
|
|
478
|
+
label?: string;
|
|
479
|
+
}
|
|
480
|
+
interface StepResult {
|
|
481
|
+
transcript: string;
|
|
482
|
+
dtmfOptions: DTMFOption[];
|
|
483
|
+
isTerminal: boolean;
|
|
484
|
+
audioUrl?: string;
|
|
485
|
+
audioSizeBytes?: number;
|
|
486
|
+
duration?: number;
|
|
487
|
+
}
|
|
488
|
+
interface MappingStep {
|
|
489
|
+
id: string;
|
|
490
|
+
jobId: string;
|
|
491
|
+
runId: string;
|
|
492
|
+
workspaceId?: string;
|
|
493
|
+
parentStepId?: string;
|
|
494
|
+
depth: number;
|
|
495
|
+
path: string[];
|
|
496
|
+
pathString: string;
|
|
497
|
+
status: StepStatus;
|
|
498
|
+
retryCount: number;
|
|
499
|
+
result?: StepResult;
|
|
500
|
+
transcriptHash?: string;
|
|
501
|
+
createdAt?: string;
|
|
502
|
+
completedAt?: string;
|
|
503
|
+
}
|
|
504
|
+
interface TreeNode {
|
|
505
|
+
stepId: string;
|
|
506
|
+
digit?: string;
|
|
507
|
+
label?: string;
|
|
508
|
+
depth: number;
|
|
509
|
+
path: string[];
|
|
510
|
+
status: StepStatus;
|
|
511
|
+
transcript?: string;
|
|
512
|
+
isTerminal: boolean;
|
|
513
|
+
children: TreeNode[];
|
|
514
|
+
duration?: number;
|
|
515
|
+
audioUrl?: string;
|
|
516
|
+
}
|
|
517
|
+
interface MappingTree {
|
|
518
|
+
jobId?: string;
|
|
519
|
+
runId?: string;
|
|
520
|
+
status?: string;
|
|
521
|
+
stats?: MappingJobStats;
|
|
522
|
+
tree?: TreeNode | null;
|
|
523
|
+
root?: TreeNode | null;
|
|
524
|
+
message?: string;
|
|
525
|
+
}
|
|
526
|
+
interface MappingPath {
|
|
527
|
+
jobId?: string;
|
|
528
|
+
path: string;
|
|
529
|
+
status: string;
|
|
530
|
+
transcript?: string;
|
|
531
|
+
isTerminal?: boolean;
|
|
532
|
+
repeatBehavior?: string;
|
|
533
|
+
}
|
|
534
|
+
interface MappingRun {
|
|
535
|
+
id: string;
|
|
536
|
+
jobId?: string;
|
|
537
|
+
status: string;
|
|
538
|
+
startedAt?: string;
|
|
539
|
+
completedAt?: string;
|
|
540
|
+
stats?: MappingJobStats;
|
|
541
|
+
}
|
|
542
|
+
type TreeFormat = 'tree' | 'flat';
|
|
543
|
+
|
|
544
|
+
interface WaitForCompleteOptions {
|
|
545
|
+
timeout?: number;
|
|
546
|
+
pollInterval?: number;
|
|
547
|
+
intervalCap?: number;
|
|
548
|
+
onUpdate?: (job: MappingJob) => void;
|
|
549
|
+
requestOptions?: RequestOptions;
|
|
550
|
+
}
|
|
551
|
+
declare class MappingResource extends Resource {
|
|
552
|
+
list(params?: MappingListParams, requestOptions?: RequestOptions): Paginator<MappingJob>;
|
|
553
|
+
listPage(params?: MappingListParams, requestOptions?: RequestOptions): Promise<Page<MappingJob>>;
|
|
554
|
+
get(jobId: string, requestOptions?: RequestOptions): Promise<MappingJob>;
|
|
555
|
+
create(body: CreateMappingJobRequest, requestOptions?: RequestOptions): Promise<MappingJob>;
|
|
556
|
+
update(jobId: string, body: UpdateMappingJobRequest, requestOptions?: RequestOptions): Promise<MappingJob>;
|
|
557
|
+
delete(jobId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
558
|
+
start(jobId: string, requestOptions?: RequestOptions): Promise<MappingJob>;
|
|
559
|
+
cancel(jobId: string, requestOptions?: RequestOptions): Promise<MappingJob>;
|
|
560
|
+
attest(jobId: string, requestOptions?: RequestOptions): Promise<{
|
|
561
|
+
attested: boolean;
|
|
562
|
+
}>;
|
|
563
|
+
steps(jobId: string, params?: {
|
|
564
|
+
limit?: number;
|
|
565
|
+
nextToken?: string;
|
|
566
|
+
}, requestOptions?: RequestOptions): Paginator<MappingStep>;
|
|
567
|
+
tree(jobId: string, opts?: {
|
|
568
|
+
format?: TreeFormat;
|
|
569
|
+
}, requestOptions?: RequestOptions): Promise<MappingTree>;
|
|
570
|
+
runs(jobId: string, params?: {
|
|
571
|
+
limit?: number;
|
|
572
|
+
nextToken?: string;
|
|
573
|
+
}, requestOptions?: RequestOptions): Paginator<MappingRun>;
|
|
574
|
+
paths(jobId: string, params?: {
|
|
575
|
+
limit?: number;
|
|
576
|
+
nextToken?: string;
|
|
577
|
+
}, requestOptions?: RequestOptions): Paginator<MappingPath>;
|
|
578
|
+
updatePath(jobId: string, path: string, body: Record<string, unknown>, requestOptions?: RequestOptions): Promise<MappingPath>;
|
|
579
|
+
deletePath(jobId: string, path: string, requestOptions?: RequestOptions): Promise<void>;
|
|
580
|
+
remap(jobId: string, path: string, requestOptions?: RequestOptions): Promise<MappingJob>;
|
|
581
|
+
probe(jobId: string, runId: string, body?: Record<string, unknown>, requestOptions?: RequestOptions): Promise<unknown>;
|
|
582
|
+
waitForComplete(jobId: string, opts?: WaitForCompleteOptions): Promise<MappingJob>;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
interface ProfileItem {
|
|
586
|
+
id: string;
|
|
587
|
+
profileId?: string;
|
|
588
|
+
label: string;
|
|
589
|
+
value: string;
|
|
590
|
+
createdAt?: string;
|
|
591
|
+
updatedAt?: string;
|
|
592
|
+
}
|
|
593
|
+
interface Profile {
|
|
594
|
+
id: string;
|
|
595
|
+
name: string;
|
|
596
|
+
description?: string;
|
|
597
|
+
items?: ProfileItem[];
|
|
598
|
+
createdAt?: string;
|
|
599
|
+
updatedAt?: string;
|
|
600
|
+
matchedLabels?: string[];
|
|
601
|
+
}
|
|
602
|
+
interface CreateProfileRequest {
|
|
603
|
+
name: string;
|
|
604
|
+
description?: string;
|
|
605
|
+
}
|
|
606
|
+
interface UpdateProfileRequest {
|
|
607
|
+
name?: string;
|
|
608
|
+
description?: string;
|
|
609
|
+
}
|
|
610
|
+
interface AddProfileItemRequest {
|
|
611
|
+
label: string;
|
|
612
|
+
value: string;
|
|
613
|
+
}
|
|
614
|
+
interface UpdateProfileItemRequest {
|
|
615
|
+
label?: string;
|
|
616
|
+
value?: string;
|
|
617
|
+
}
|
|
618
|
+
interface ProfilesListParams {
|
|
619
|
+
limit?: number;
|
|
620
|
+
nextToken?: string;
|
|
621
|
+
}
|
|
622
|
+
interface ProfilesByParametersParams {
|
|
623
|
+
/** Either array of labels or comma-separated string. */
|
|
624
|
+
labels: string | string[];
|
|
625
|
+
}
|
|
626
|
+
interface ProfilesByParametersResponse {
|
|
627
|
+
profiles: Profile[];
|
|
628
|
+
count?: number;
|
|
629
|
+
}
|
|
630
|
+
interface ProfileParametersResponse {
|
|
631
|
+
parameters: string[];
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
declare class ProfilesResource extends Resource {
|
|
635
|
+
create(body: CreateProfileRequest, requestOptions?: RequestOptions): Promise<Profile>;
|
|
636
|
+
list(params?: ProfilesListParams, requestOptions?: RequestOptions): Paginator<Profile>;
|
|
637
|
+
listPage(params?: ProfilesListParams, requestOptions?: RequestOptions): Promise<Page<Profile>>;
|
|
638
|
+
get(profileId: string, requestOptions?: RequestOptions): Promise<Profile>;
|
|
639
|
+
update(profileId: string, body: UpdateProfileRequest, requestOptions?: RequestOptions): Promise<Profile>;
|
|
640
|
+
delete(profileId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
641
|
+
addItem(profileId: string, body: AddProfileItemRequest, requestOptions?: RequestOptions): Promise<ProfileItem>;
|
|
642
|
+
updateItem(profileId: string, itemId: string, body: UpdateProfileItemRequest, requestOptions?: RequestOptions): Promise<ProfileItem>;
|
|
643
|
+
deleteItem(profileId: string, itemId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
644
|
+
listParameters(requestOptions?: RequestOptions): Promise<ProfileParametersResponse>;
|
|
645
|
+
findByParameters(params: ProfilesByParametersParams, requestOptions?: RequestOptions): Promise<ProfilesByParametersResponse>;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
type ScheduleStatus = 'active' | 'paused' | 'disabled';
|
|
649
|
+
interface Schedule {
|
|
650
|
+
id: string;
|
|
651
|
+
name: string;
|
|
652
|
+
configId: string;
|
|
653
|
+
cronExpression: string;
|
|
654
|
+
timezone?: string;
|
|
655
|
+
status: ScheduleStatus;
|
|
656
|
+
nextRunAt?: string;
|
|
657
|
+
createdAt?: string;
|
|
658
|
+
updatedAt?: string;
|
|
659
|
+
pausedAt?: string;
|
|
660
|
+
resumedAt?: string;
|
|
661
|
+
}
|
|
662
|
+
interface CreateScheduleRequest {
|
|
663
|
+
name: string;
|
|
664
|
+
configId: string;
|
|
665
|
+
cronExpression: string;
|
|
666
|
+
timezone?: string;
|
|
667
|
+
}
|
|
668
|
+
interface UpdateScheduleRequest {
|
|
669
|
+
name?: string;
|
|
670
|
+
cronExpression?: string;
|
|
671
|
+
timezone?: string;
|
|
672
|
+
}
|
|
673
|
+
interface ScheduleListParams {
|
|
674
|
+
limit?: number;
|
|
675
|
+
nextToken?: string;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
declare class SchedulerResource extends Resource {
|
|
679
|
+
create(body: CreateScheduleRequest, requestOptions?: RequestOptions): Promise<Schedule>;
|
|
680
|
+
list(params?: ScheduleListParams, requestOptions?: RequestOptions): Paginator<Schedule>;
|
|
681
|
+
listPage(params?: ScheduleListParams, requestOptions?: RequestOptions): Promise<Page<Schedule>>;
|
|
682
|
+
get(scheduleId: string, requestOptions?: RequestOptions): Promise<Schedule>;
|
|
683
|
+
update(scheduleId: string, body: UpdateScheduleRequest, requestOptions?: RequestOptions): Promise<Schedule>;
|
|
684
|
+
delete(scheduleId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
685
|
+
pause(scheduleId: string, requestOptions?: RequestOptions): Promise<Schedule>;
|
|
686
|
+
resume(scheduleId: string, requestOptions?: RequestOptions): Promise<Schedule>;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
type SweepStatus = 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
690
|
+
interface Sweep {
|
|
691
|
+
id: string;
|
|
692
|
+
name: string;
|
|
693
|
+
configId: string;
|
|
694
|
+
parameters?: Record<string, string[]>;
|
|
695
|
+
status: SweepStatus;
|
|
696
|
+
createdAt?: string;
|
|
697
|
+
updatedAt?: string;
|
|
698
|
+
}
|
|
699
|
+
interface CreateSweepRequest {
|
|
700
|
+
name: string;
|
|
701
|
+
configId: string;
|
|
702
|
+
parameters: Record<string, string[]>;
|
|
703
|
+
}
|
|
704
|
+
interface UpdateSweepRequest {
|
|
705
|
+
name?: string;
|
|
706
|
+
parameters?: Record<string, string[]>;
|
|
707
|
+
}
|
|
708
|
+
interface SweepsListParams {
|
|
709
|
+
limit?: number;
|
|
710
|
+
nextToken?: string;
|
|
711
|
+
}
|
|
712
|
+
type SweepRunStatus = 'running' | 'completed' | 'failed' | 'cancelled';
|
|
713
|
+
interface SweepVariationResult {
|
|
714
|
+
variation: Record<string, string>;
|
|
715
|
+
result: 'pass' | 'fail' | 'partial';
|
|
716
|
+
}
|
|
717
|
+
interface SweepRun {
|
|
718
|
+
id: string;
|
|
719
|
+
sweepId?: string;
|
|
720
|
+
status: SweepRunStatus;
|
|
721
|
+
variations?: number;
|
|
722
|
+
passRate?: number;
|
|
723
|
+
results?: SweepVariationResult[];
|
|
724
|
+
startedAt?: string;
|
|
725
|
+
completedAt?: string;
|
|
726
|
+
/** @deprecated use `id` */
|
|
727
|
+
runId?: string;
|
|
728
|
+
[key: string]: unknown;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
interface SweepsWaitForOptions {
|
|
732
|
+
timeout?: number;
|
|
733
|
+
pollInterval?: number;
|
|
734
|
+
intervalCap?: number;
|
|
735
|
+
onUpdate?: (run: SweepRun) => void;
|
|
736
|
+
requestOptions?: RequestOptions;
|
|
737
|
+
}
|
|
738
|
+
declare class SweepsResource extends Resource {
|
|
739
|
+
create(body: CreateSweepRequest, requestOptions?: RequestOptions): Promise<Sweep>;
|
|
740
|
+
list(params?: SweepsListParams, requestOptions?: RequestOptions): Paginator<Sweep>;
|
|
741
|
+
listPage(params?: SweepsListParams, requestOptions?: RequestOptions): Promise<Page<Sweep>>;
|
|
742
|
+
get(sweepId: string, requestOptions?: RequestOptions): Promise<Sweep>;
|
|
743
|
+
update(sweepId: string, body: UpdateSweepRequest, requestOptions?: RequestOptions): Promise<Sweep>;
|
|
744
|
+
delete(sweepId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
745
|
+
run(sweepId: string, requestOptions?: RequestOptions): Promise<SweepRun>;
|
|
746
|
+
runs(sweepId: string, params?: SweepsListParams, requestOptions?: RequestOptions): Paginator<SweepRun>;
|
|
747
|
+
listRuns(params?: SweepsListParams, requestOptions?: RequestOptions): Paginator<SweepRun>;
|
|
748
|
+
getRun(runId: string, requestOptions?: RequestOptions): Promise<SweepRun>;
|
|
749
|
+
waitForRun(runId: string, opts?: SweepsWaitForOptions): Promise<SweepRun>;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
interface TestStep {
|
|
753
|
+
name?: string;
|
|
754
|
+
action?: string;
|
|
755
|
+
type?: 'dtmf' | 'audio' | 'listen';
|
|
756
|
+
value?: string;
|
|
757
|
+
expected?: string;
|
|
758
|
+
threshold?: number;
|
|
759
|
+
timeout?: number;
|
|
760
|
+
delay?: number;
|
|
761
|
+
dtmf?: string;
|
|
762
|
+
audioUrl?: string;
|
|
763
|
+
profileItemId?: string;
|
|
764
|
+
[key: string]: unknown;
|
|
765
|
+
}
|
|
766
|
+
interface TestConfig {
|
|
767
|
+
id: string;
|
|
768
|
+
name: string;
|
|
769
|
+
phoneNumber: string;
|
|
770
|
+
steps: TestStep[];
|
|
771
|
+
createdAt?: string;
|
|
772
|
+
updatedAt?: string;
|
|
773
|
+
}
|
|
774
|
+
interface CreateTestConfigRequest {
|
|
775
|
+
name: string;
|
|
776
|
+
phoneNumber: string;
|
|
777
|
+
steps: TestStep[];
|
|
778
|
+
}
|
|
779
|
+
interface UpdateTestConfigRequest {
|
|
780
|
+
name?: string;
|
|
781
|
+
phoneNumber?: string;
|
|
782
|
+
steps?: TestStep[];
|
|
783
|
+
}
|
|
784
|
+
interface TestingListParams {
|
|
785
|
+
limit?: number;
|
|
786
|
+
nextToken?: string;
|
|
787
|
+
}
|
|
788
|
+
type TestJobStatus = 'created' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
789
|
+
interface TestJob {
|
|
790
|
+
id: string;
|
|
791
|
+
configId: string;
|
|
792
|
+
name?: string;
|
|
793
|
+
status: TestJobStatus;
|
|
794
|
+
createdAt?: string;
|
|
795
|
+
updatedAt?: string;
|
|
796
|
+
completedAt?: string;
|
|
797
|
+
}
|
|
798
|
+
interface CreateTestJobRequest {
|
|
799
|
+
configId: string;
|
|
800
|
+
name?: string;
|
|
801
|
+
}
|
|
802
|
+
type TestRunStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
803
|
+
type TestRunResult = 'pass' | 'fail' | 'partial';
|
|
804
|
+
/**
|
|
805
|
+
* A single execution of a test. The primary identifier is `id`, matching the
|
|
806
|
+
* server's entity shape. Pass it to `waitForRun()` and `get()`.
|
|
807
|
+
*
|
|
808
|
+
* `status` is optional because a newly-created run may not yet carry one
|
|
809
|
+
* until the orchestrator picks it up.
|
|
810
|
+
*/
|
|
811
|
+
interface TestRun {
|
|
812
|
+
id: string;
|
|
813
|
+
jobId?: string;
|
|
814
|
+
testConfigId?: string;
|
|
815
|
+
workspaceId?: string;
|
|
816
|
+
status?: TestRunStatus;
|
|
817
|
+
result?: TestRunResult;
|
|
818
|
+
startedAt?: string;
|
|
819
|
+
completedAt?: string;
|
|
820
|
+
launchDeadline?: string;
|
|
821
|
+
totalSteps?: number;
|
|
822
|
+
passedSteps?: number;
|
|
823
|
+
failedSteps?: number;
|
|
824
|
+
[key: string]: unknown;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Body for POST /testing/runs. Exactly one of jobId or testConfigId
|
|
828
|
+
* must be provided:
|
|
829
|
+
* - jobId — run an existing scheduled test job
|
|
830
|
+
* - testConfigId — ad-hoc run directly from a test config
|
|
831
|
+
*/
|
|
832
|
+
type CreateTestRunRequest = {
|
|
833
|
+
jobId: string;
|
|
834
|
+
testConfigId?: never;
|
|
835
|
+
} | {
|
|
836
|
+
jobId?: never;
|
|
837
|
+
testConfigId: string;
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
interface TestingWaitForOptions {
|
|
841
|
+
timeout?: number;
|
|
842
|
+
pollInterval?: number;
|
|
843
|
+
intervalCap?: number;
|
|
844
|
+
onUpdate?: (run: TestRun) => void;
|
|
845
|
+
requestOptions?: RequestOptions;
|
|
846
|
+
}
|
|
847
|
+
declare class TestingConfigsResource extends Resource {
|
|
848
|
+
create(body: CreateTestConfigRequest, requestOptions?: RequestOptions): Promise<TestConfig>;
|
|
849
|
+
list(params?: TestingListParams, requestOptions?: RequestOptions): Paginator<TestConfig>;
|
|
850
|
+
listPage(params?: TestingListParams, requestOptions?: RequestOptions): Promise<Page<TestConfig>>;
|
|
851
|
+
get(configId: string, requestOptions?: RequestOptions): Promise<TestConfig>;
|
|
852
|
+
update(configId: string, body: UpdateTestConfigRequest, requestOptions?: RequestOptions): Promise<TestConfig>;
|
|
853
|
+
delete(configId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
854
|
+
}
|
|
855
|
+
declare class TestingJobsResource extends Resource {
|
|
856
|
+
create(body: CreateTestJobRequest, requestOptions?: RequestOptions): Promise<TestJob>;
|
|
857
|
+
list(params?: TestingListParams, requestOptions?: RequestOptions): Paginator<TestJob>;
|
|
858
|
+
listPage(params?: TestingListParams, requestOptions?: RequestOptions): Promise<Page<TestJob>>;
|
|
859
|
+
get(jobId: string, requestOptions?: RequestOptions): Promise<TestJob>;
|
|
860
|
+
delete(jobId: string, requestOptions?: RequestOptions): Promise<void>;
|
|
861
|
+
}
|
|
862
|
+
declare class TestingRunsResource extends Resource {
|
|
863
|
+
create(body: CreateTestRunRequest, requestOptions?: RequestOptions): Promise<TestRun>;
|
|
864
|
+
list(params?: TestingListParams, requestOptions?: RequestOptions): Paginator<TestRun>;
|
|
865
|
+
listPage(params?: TestingListParams, requestOptions?: RequestOptions): Promise<Page<TestRun>>;
|
|
866
|
+
get(runId: string, requestOptions?: RequestOptions): Promise<TestRun>;
|
|
867
|
+
waitForRun(runId: string, opts?: TestingWaitForOptions): Promise<TestRun>;
|
|
868
|
+
}
|
|
869
|
+
declare class TestingResource extends Resource {
|
|
870
|
+
readonly configs: TestingConfigsResource;
|
|
871
|
+
readonly jobs: TestingJobsResource;
|
|
872
|
+
readonly runs: TestingRunsResource;
|
|
873
|
+
constructor(transport: Transport);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
declare class Nopaque {
|
|
877
|
+
readonly mapping: MappingResource;
|
|
878
|
+
readonly audio: AudioResource;
|
|
879
|
+
readonly profiles: ProfilesResource;
|
|
880
|
+
readonly testing: TestingResource;
|
|
881
|
+
readonly batches: BatchesResource;
|
|
882
|
+
readonly sweeps: SweepsResource;
|
|
883
|
+
readonly datasets: DatasetsResource;
|
|
884
|
+
readonly loadTesting: LoadTestingResource;
|
|
885
|
+
readonly scheduler: SchedulerResource;
|
|
886
|
+
readonly enrichment: EnrichmentResource;
|
|
887
|
+
private readonly transport;
|
|
888
|
+
constructor(options?: NopaqueOptions);
|
|
889
|
+
close(): void;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
declare const VERSION: string;
|
|
893
|
+
|
|
894
|
+
export { APIConnectionError, APITimeoutError, type AddProfileItemRequest, type AudioDownloadURL, type AudioFile, type AudioListParams, type AudioUploadURL, AuthenticationError, type Batch, type BatchRun, type BatchRunStatus, type BatchStatus, type BatchesListParams, ConflictError, type CreateBatchRequest, type CreateDatasetRequest, type CreateLoadTestRequest, type CreateMappingJobRequest, type CreateProfileRequest, type CreateScheduleRequest, type CreateSweepRequest, type CreateTestConfigRequest, type CreateTestJobRequest, type CreateTestRunRequest, type CreateUploadUrlRequest, type DTMFOption, type Dataset, type DatasetsListParams, type DownloadOptions, type EnrichRequest, type EnrichResponse, type Enrichment, type EnrichmentDimensions, type EnrichmentStatus, type JobStatus, type LoadTest, type LoadTestEstimate, type LoadTestEstimateRequest, type LoadTestProgress, type LoadTestRun, type LoadTestStatus, type LoadTestStatusResponse, type LoadTestingListParams, type MappingJob, type MappingJobConfig, type MappingJobStats, type MappingListParams, type MappingMode, type MappingPath, type MappingRun, type MappingStep, type MappingTree, Nopaque, NopaqueAPIError, NopaqueConfigError, NopaqueError, type NopaqueOptions, NopaqueTimeoutError, NotFoundError, Page, Paginator, PermissionError, type Profile, type ProfileItem, type ProfileParametersResponse, type ProfilesByParametersParams, type ProfilesByParametersResponse, type ProfilesListParams, type QualityScoringResults, RateLimitError, type RequestOptions, type ResolvedDataset, type ResolvedDatasetEntry, type RetryConfig, type Schedule, type ScheduleListParams, type ScheduleStatus, ServerError, type StepResult, type StepStatus, type Sweep, type SweepRun, type SweepRunStatus, type SweepStatus, type SweepVariationResult, type SweepsListParams, type TestConfig, type TestJob, type TestJobStatus, type TestRun, type TestRunResult, type TestRunStatus, type TestStep, type TestingListParams, type TokenUsageDetails, type TokenUsageResponse, type TreeFormat, type TreeNode, type UpdateBatchRequest, type UpdateDatasetRequest, type UpdateLoadTestRequest, type UpdateMappingJobRequest, type UpdateProfileItemRequest, type UpdateProfileRequest, type UpdateScheduleRequest, type UpdateSweepRequest, type UpdateTestConfigRequest, type UploadInput, VERSION, ValidationError };
|