@roarkanalytics/sdk 2.13.0 → 2.14.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/LICENSE +1 -1
  3. package/index.d.mts +10 -10
  4. package/index.d.ts +10 -10
  5. package/index.d.ts.map +1 -1
  6. package/index.js.map +1 -1
  7. package/index.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/call.d.ts +729 -16
  10. package/resources/call.d.ts.map +1 -1
  11. package/resources/call.js +16 -4
  12. package/resources/call.js.map +1 -1
  13. package/resources/call.mjs +16 -4
  14. package/resources/call.mjs.map +1 -1
  15. package/resources/evaluation.d.ts +85 -81
  16. package/resources/evaluation.d.ts.map +1 -1
  17. package/resources/evaluation.js +8 -8
  18. package/resources/evaluation.js.map +1 -1
  19. package/resources/evaluation.mjs +8 -8
  20. package/resources/evaluation.mjs.map +1 -1
  21. package/resources/index.d.ts +5 -5
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js.map +1 -1
  24. package/resources/index.mjs.map +1 -1
  25. package/resources/metric.d.ts +5 -5
  26. package/resources/metric.d.ts.map +1 -1
  27. package/resources/metric.js +1 -1
  28. package/resources/metric.js.map +1 -1
  29. package/resources/metric.mjs +1 -1
  30. package/resources/metric.mjs.map +1 -1
  31. package/resources/persona.d.ts +21 -21
  32. package/resources/persona.d.ts.map +1 -1
  33. package/resources/persona.js +2 -2
  34. package/resources/persona.js.map +1 -1
  35. package/resources/persona.mjs +2 -2
  36. package/resources/persona.mjs.map +1 -1
  37. package/resources/simulation.d.ts +273 -28
  38. package/resources/simulation.d.ts.map +1 -1
  39. package/resources/simulation.js +37 -8
  40. package/resources/simulation.js.map +1 -1
  41. package/resources/simulation.mjs +37 -8
  42. package/resources/simulation.mjs.map +1 -1
  43. package/src/index.ts +40 -28
  44. package/src/resources/call.ts +954 -27
  45. package/src/resources/evaluation.ts +113 -108
  46. package/src/resources/index.ts +20 -14
  47. package/src/resources/metric.ts +5 -5
  48. package/src/resources/persona.ts +110 -29
  49. package/src/resources/simulation.ts +390 -34
  50. package/src/version.ts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
@@ -25,48 +25,48 @@ export class Evaluation extends APIResource {
25
25
  return this._client.get(`/v1/evaluation/evaluators/${evaluatorId}`, options);
26
26
  }
27
27
 
28
+ /**
29
+ * Retrieve details of a specific evaluation job
30
+ */
31
+ getJob(jobId: string, options?: Core.RequestOptions): Core.APIPromise<EvaluationGetJobResponse> {
32
+ return this._client.get(`/v1/evaluation/job/${jobId}`, options);
33
+ }
34
+
28
35
  /**
29
36
  * Returns a list of evaluators with their blocks and configuration for the
30
37
  * authenticated project.
31
38
  */
32
- getEvaluators(
33
- query?: EvaluationGetEvaluatorsParams,
39
+ listEvaluators(
40
+ query?: EvaluationListEvaluatorsParams,
34
41
  options?: Core.RequestOptions,
35
- ): Core.APIPromise<EvaluationGetEvaluatorsResponse>;
36
- getEvaluators(options?: Core.RequestOptions): Core.APIPromise<EvaluationGetEvaluatorsResponse>;
37
- getEvaluators(
38
- query: EvaluationGetEvaluatorsParams | Core.RequestOptions = {},
42
+ ): Core.APIPromise<EvaluationListEvaluatorsResponse>;
43
+ listEvaluators(options?: Core.RequestOptions): Core.APIPromise<EvaluationListEvaluatorsResponse>;
44
+ listEvaluators(
45
+ query: EvaluationListEvaluatorsParams | Core.RequestOptions = {},
39
46
  options?: Core.RequestOptions,
40
- ): Core.APIPromise<EvaluationGetEvaluatorsResponse> {
47
+ ): Core.APIPromise<EvaluationListEvaluatorsResponse> {
41
48
  if (isRequestOptions(query)) {
42
- return this.getEvaluators({}, query);
49
+ return this.listEvaluators({}, query);
43
50
  }
44
51
  return this._client.get('/v1/evaluation/evaluators', { query, ...options });
45
52
  }
46
53
 
47
- /**
48
- * Retrieve details of a specific evaluation job
49
- */
50
- getJob(jobId: string, options?: Core.RequestOptions): Core.APIPromise<EvaluationGetJobResponse> {
51
- return this._client.get(`/v1/evaluation/job/${jobId}`, options);
52
- }
53
-
54
54
  /**
55
55
  * Retrieve paginated details of a specific evaluation job runs
56
56
  */
57
- getJobRuns(
57
+ listJobRuns(
58
58
  jobId: string,
59
- query?: EvaluationGetJobRunsParams,
59
+ query?: EvaluationListJobRunsParams,
60
60
  options?: Core.RequestOptions,
61
- ): Core.APIPromise<EvaluationGetJobRunsResponse>;
62
- getJobRuns(jobId: string, options?: Core.RequestOptions): Core.APIPromise<EvaluationGetJobRunsResponse>;
63
- getJobRuns(
61
+ ): Core.APIPromise<EvaluationListJobRunsResponse>;
62
+ listJobRuns(jobId: string, options?: Core.RequestOptions): Core.APIPromise<EvaluationListJobRunsResponse>;
63
+ listJobRuns(
64
64
  jobId: string,
65
- query: EvaluationGetJobRunsParams | Core.RequestOptions = {},
65
+ query: EvaluationListJobRunsParams | Core.RequestOptions = {},
66
66
  options?: Core.RequestOptions,
67
- ): Core.APIPromise<EvaluationGetJobRunsResponse> {
67
+ ): Core.APIPromise<EvaluationListJobRunsResponse> {
68
68
  if (isRequestOptions(query)) {
69
- return this.getJobRuns(jobId, {}, query);
69
+ return this.listJobRuns(jobId, {}, query);
70
70
  }
71
71
  return this._client.get(`/v1/evaluation/job/${jobId}/runs`, { query, ...options });
72
72
  }
@@ -545,22 +545,92 @@ export namespace EvaluationGetEvaluatorByIDResponse {
545
545
  }
546
546
  }
547
547
 
548
+ export interface EvaluationGetJobResponse {
549
+ /**
550
+ * Evaluation job response payload
551
+ */
552
+ data: EvaluationGetJobResponse.Data;
553
+ }
554
+
555
+ export namespace EvaluationGetJobResponse {
556
+ /**
557
+ * Evaluation job response payload
558
+ */
559
+ export interface Data {
560
+ /**
561
+ * ID of the evaluation job
562
+ */
563
+ id: string;
564
+
565
+ /**
566
+ * Status of the evaluation job
567
+ */
568
+ status: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILURE';
569
+
570
+ /**
571
+ * Call being evaluated
572
+ */
573
+ call?: Data.Call;
574
+
575
+ /**
576
+ * Dataset being evaluated
577
+ */
578
+ dataset?: Data.Dataset;
579
+ }
580
+
581
+ export namespace Data {
582
+ /**
583
+ * Call being evaluated
584
+ */
585
+ export interface Call {
586
+ /**
587
+ * ID of the call being evaluated
588
+ */
589
+ id: string | null;
590
+ }
591
+
592
+ /**
593
+ * Dataset being evaluated
594
+ */
595
+ export interface Dataset {
596
+ /**
597
+ * ID of the dataset
598
+ */
599
+ id: string | null;
600
+
601
+ /**
602
+ * Calls in the dataset
603
+ */
604
+ calls: Array<Dataset.Call>;
605
+ }
606
+
607
+ export namespace Dataset {
608
+ export interface Call {
609
+ /**
610
+ * ID of the call
611
+ */
612
+ id: string | null;
613
+ }
614
+ }
615
+ }
616
+ }
617
+
548
618
  /**
549
619
  * Response containing evaluators and pagination info
550
620
  */
551
- export interface EvaluationGetEvaluatorsResponse {
621
+ export interface EvaluationListEvaluatorsResponse {
552
622
  /**
553
623
  * Array of evaluators with their blocks
554
624
  */
555
- data: Array<EvaluationGetEvaluatorsResponse.Data>;
625
+ data: Array<EvaluationListEvaluatorsResponse.Data>;
556
626
 
557
627
  /**
558
628
  * Pagination information
559
629
  */
560
- pagination: EvaluationGetEvaluatorsResponse.Pagination;
630
+ pagination: EvaluationListEvaluatorsResponse.Pagination;
561
631
  }
562
632
 
563
- export namespace EvaluationGetEvaluatorsResponse {
633
+ export namespace EvaluationListEvaluatorsResponse {
564
634
  /**
565
635
  * Evaluator with its configured blocks
566
636
  */
@@ -1032,84 +1102,14 @@ export namespace EvaluationGetEvaluatorsResponse {
1032
1102
  }
1033
1103
  }
1034
1104
 
1035
- export interface EvaluationGetJobResponse {
1036
- /**
1037
- * Evaluation job response payload
1038
- */
1039
- data: EvaluationGetJobResponse.Data;
1040
- }
1041
-
1042
- export namespace EvaluationGetJobResponse {
1043
- /**
1044
- * Evaluation job response payload
1045
- */
1046
- export interface Data {
1047
- /**
1048
- * ID of the evaluation job
1049
- */
1050
- id: string;
1051
-
1052
- /**
1053
- * Status of the evaluation job
1054
- */
1055
- status: 'PENDING' | 'PROCESSING' | 'SUCCESS' | 'FAILURE';
1056
-
1057
- /**
1058
- * Call being evaluated
1059
- */
1060
- call?: Data.Call;
1061
-
1062
- /**
1063
- * Dataset being evaluated
1064
- */
1065
- dataset?: Data.Dataset;
1066
- }
1067
-
1068
- export namespace Data {
1069
- /**
1070
- * Call being evaluated
1071
- */
1072
- export interface Call {
1073
- /**
1074
- * ID of the call being evaluated
1075
- */
1076
- id: string | null;
1077
- }
1078
-
1079
- /**
1080
- * Dataset being evaluated
1081
- */
1082
- export interface Dataset {
1083
- /**
1084
- * ID of the dataset
1085
- */
1086
- id: string | null;
1087
-
1088
- /**
1089
- * Calls in the dataset
1090
- */
1091
- calls: Array<Dataset.Call>;
1092
- }
1093
-
1094
- export namespace Dataset {
1095
- export interface Call {
1096
- /**
1097
- * ID of the call
1098
- */
1099
- id: string | null;
1100
- }
1101
- }
1102
- }
1103
- }
1104
-
1105
- export interface EvaluationGetJobRunsResponse {
1105
+ export interface EvaluationListJobRunsResponse {
1106
1106
  /**
1107
1107
  * Evaluation job runs response payload
1108
1108
  */
1109
- data: EvaluationGetJobRunsResponse.Data;
1109
+ data: EvaluationListJobRunsResponse.Data;
1110
1110
  }
1111
1111
 
1112
- export namespace EvaluationGetJobRunsResponse {
1112
+ export namespace EvaluationListJobRunsResponse {
1113
1113
  /**
1114
1114
  * Evaluation job runs response payload
1115
1115
  */
@@ -1339,6 +1339,11 @@ export interface EvaluationCreateJobParams {
1339
1339
  */
1340
1340
  call?: EvaluationCreateJobParams.Call;
1341
1341
 
1342
+ /**
1343
+ * ID of an existing call to evaluate
1344
+ */
1345
+ callId?: string;
1346
+
1342
1347
  dataset?: EvaluationCreateJobParams.Dataset;
1343
1348
  }
1344
1349
 
@@ -1437,7 +1442,7 @@ export namespace EvaluationCreateJobParams {
1437
1442
 
1438
1443
  export namespace Call {
1439
1444
  export interface Participant {
1440
- role: 'AGENT' | 'CUSTOMER';
1445
+ role: 'AGENT' | 'CUSTOMER' | 'SIMULATED_CUSTOMER' | 'BACKGROUND_SPEAKER';
1441
1446
 
1442
1447
  isSimulated?: boolean;
1443
1448
 
@@ -1598,7 +1603,7 @@ export namespace EvaluationCreateJobParams {
1598
1603
 
1599
1604
  export namespace Call {
1600
1605
  export interface Participant {
1601
- role: 'AGENT' | 'CUSTOMER';
1606
+ role: 'AGENT' | 'CUSTOMER' | 'SIMULATED_CUSTOMER' | 'BACKGROUND_SPEAKER';
1602
1607
 
1603
1608
  isSimulated?: boolean;
1604
1609
 
@@ -1657,7 +1662,7 @@ export namespace EvaluationCreateJobParams {
1657
1662
  }
1658
1663
  }
1659
1664
 
1660
- export interface EvaluationGetEvaluatorsParams {
1665
+ export interface EvaluationListEvaluatorsParams {
1661
1666
  /**
1662
1667
  * Cursor for pagination - evaluator ID to start after
1663
1668
  */
@@ -1669,7 +1674,7 @@ export interface EvaluationGetEvaluatorsParams {
1669
1674
  limit?: string;
1670
1675
  }
1671
1676
 
1672
- export interface EvaluationGetJobRunsParams {
1677
+ export interface EvaluationListJobRunsParams {
1673
1678
  /**
1674
1679
  * Number of items to return per page
1675
1680
  */
@@ -1685,11 +1690,11 @@ export declare namespace Evaluation {
1685
1690
  export {
1686
1691
  type EvaluationCreateJobResponse as EvaluationCreateJobResponse,
1687
1692
  type EvaluationGetEvaluatorByIDResponse as EvaluationGetEvaluatorByIDResponse,
1688
- type EvaluationGetEvaluatorsResponse as EvaluationGetEvaluatorsResponse,
1689
1693
  type EvaluationGetJobResponse as EvaluationGetJobResponse,
1690
- type EvaluationGetJobRunsResponse as EvaluationGetJobRunsResponse,
1694
+ type EvaluationListEvaluatorsResponse as EvaluationListEvaluatorsResponse,
1695
+ type EvaluationListJobRunsResponse as EvaluationListJobRunsResponse,
1691
1696
  type EvaluationCreateJobParams as EvaluationCreateJobParams,
1692
- type EvaluationGetEvaluatorsParams as EvaluationGetEvaluatorsParams,
1693
- type EvaluationGetJobRunsParams as EvaluationGetJobRunsParams,
1697
+ type EvaluationListEvaluatorsParams as EvaluationListEvaluatorsParams,
1698
+ type EvaluationListJobRunsParams as EvaluationListJobRunsParams,
1694
1699
  };
1695
1700
  }
@@ -2,22 +2,26 @@
2
2
 
3
3
  export {
4
4
  Call,
5
+ type CallCreateResponse,
6
+ type CallListResponse,
5
7
  type CallGetByIDResponse,
6
- type CallGetEvaluationRunsResponse,
7
- type CallGetMetricsResponse,
8
- type CallGetSentimentRunsResponse,
9
- type CallGetMetricsParams,
8
+ type CallListEvaluationRunsResponse,
9
+ type CallListMetricsResponse,
10
+ type CallListSentimentRunsResponse,
11
+ type CallCreateParams,
12
+ type CallListParams,
13
+ type CallListMetricsParams,
10
14
  } from './call';
11
15
  export {
12
16
  Evaluation,
13
17
  type EvaluationCreateJobResponse,
14
18
  type EvaluationGetEvaluatorByIDResponse,
15
- type EvaluationGetEvaluatorsResponse,
16
19
  type EvaluationGetJobResponse,
17
- type EvaluationGetJobRunsResponse,
20
+ type EvaluationListEvaluatorsResponse,
21
+ type EvaluationListJobRunsResponse,
18
22
  type EvaluationCreateJobParams,
19
- type EvaluationGetEvaluatorsParams,
20
- type EvaluationGetJobRunsParams,
23
+ type EvaluationListEvaluatorsParams,
24
+ type EvaluationListJobRunsParams,
21
25
  } from './evaluation';
22
26
  export { Health, type HealthGetResponse } from './health';
23
27
  export {
@@ -27,20 +31,22 @@ export {
27
31
  type IntegrationCreateRetellCallParams,
28
32
  type IntegrationCreateVapiCallParams,
29
33
  } from './integrations';
30
- export { Metric, type MetricGetDefinitionsResponse } from './metric';
34
+ export { Metric, type MetricListDefinitionsResponse } from './metric';
31
35
  export {
32
36
  Persona,
33
37
  type PersonaCreateResponse,
34
38
  type PersonaUpdateResponse,
35
- type PersonaFindAllResponse,
39
+ type PersonaListResponse,
36
40
  type PersonaGetByIDResponse,
37
41
  type PersonaCreateParams,
38
42
  type PersonaUpdateParams,
39
- type PersonaFindAllParams,
43
+ type PersonaListParams,
40
44
  } from './persona';
41
45
  export {
42
46
  Simulation,
43
- type SimulationGetJobByIDResponse,
44
- type SimulationLookupJobResponse,
45
- type SimulationLookupJobParams,
47
+ type SimulationGetRunPlanJobResponse,
48
+ type SimulationGetSimulationJobByIDResponse,
49
+ type SimulationLookupSimulationJobResponse,
50
+ type SimulationStartRunPlanJobResponse,
51
+ type SimulationLookupSimulationJobParams,
46
52
  } from './simulation';
@@ -9,19 +9,19 @@ export class Metric extends APIResource {
9
9
  * system-generated and custom metrics. Only returns metrics from enabled analysis
10
10
  * packages.
11
11
  */
12
- getDefinitions(options?: Core.RequestOptions): Core.APIPromise<MetricGetDefinitionsResponse> {
12
+ listDefinitions(options?: Core.RequestOptions): Core.APIPromise<MetricListDefinitionsResponse> {
13
13
  return this._client.get('/v1/metric/definitions', options);
14
14
  }
15
15
  }
16
16
 
17
- export interface MetricGetDefinitionsResponse {
17
+ export interface MetricListDefinitionsResponse {
18
18
  /**
19
19
  * Metrics response payload
20
20
  */
21
- data: Array<MetricGetDefinitionsResponse.Data>;
21
+ data: Array<MetricListDefinitionsResponse.Data>;
22
22
  }
23
23
 
24
- export namespace MetricGetDefinitionsResponse {
24
+ export namespace MetricListDefinitionsResponse {
25
25
  /**
26
26
  * Metric definition data
27
27
  */
@@ -86,5 +86,5 @@ export namespace MetricGetDefinitionsResponse {
86
86
  }
87
87
 
88
88
  export declare namespace Metric {
89
- export { type MetricGetDefinitionsResponse as MetricGetDefinitionsResponse };
89
+ export { type MetricListDefinitionsResponse as MetricListDefinitionsResponse };
90
90
  }
@@ -52,20 +52,17 @@ export class Persona extends APIResource {
52
52
  *
53
53
  * @example
54
54
  * ```ts
55
- * const response = await client.persona.findAll();
55
+ * const personas = await client.persona.list();
56
56
  * ```
57
57
  */
58
- findAll(
59
- query?: PersonaFindAllParams,
58
+ list(query?: PersonaListParams, options?: Core.RequestOptions): Core.APIPromise<PersonaListResponse>;
59
+ list(options?: Core.RequestOptions): Core.APIPromise<PersonaListResponse>;
60
+ list(
61
+ query: PersonaListParams | Core.RequestOptions = {},
60
62
  options?: Core.RequestOptions,
61
- ): Core.APIPromise<PersonaFindAllResponse>;
62
- findAll(options?: Core.RequestOptions): Core.APIPromise<PersonaFindAllResponse>;
63
- findAll(
64
- query: PersonaFindAllParams | Core.RequestOptions = {},
65
- options?: Core.RequestOptions,
66
- ): Core.APIPromise<PersonaFindAllResponse> {
63
+ ): Core.APIPromise<PersonaListResponse> {
67
64
  if (isRequestOptions(query)) {
68
- return this.findAll({}, query);
65
+ return this.list({}, query);
69
66
  }
70
67
  return this._client.get('/v1/persona', { query, ...options });
71
68
  }
@@ -98,7 +95,21 @@ export namespace PersonaCreateResponse {
98
95
  * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
99
96
  * optional variants
100
97
  */
101
- accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
98
+ accent:
99
+ | 'US'
100
+ | 'US_X_SOUTH'
101
+ | 'GB'
102
+ | 'ES'
103
+ | 'DE'
104
+ | 'IN'
105
+ | 'FR'
106
+ | 'NL'
107
+ | 'SA'
108
+ | 'GR'
109
+ | 'AU'
110
+ | 'IT'
111
+ | 'ID'
112
+ | 'TH';
102
113
 
103
114
  /**
104
115
  * Background noise setting
@@ -146,7 +157,7 @@ export namespace PersonaCreateResponse {
146
157
  /**
147
158
  * Primary language ISO 639-1 code for the persona
148
159
  */
149
- language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
160
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
150
161
 
151
162
  /**
152
163
  * How reliable the persona's memory is
@@ -205,7 +216,21 @@ export namespace PersonaUpdateResponse {
205
216
  * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
206
217
  * optional variants
207
218
  */
208
- accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
219
+ accent:
220
+ | 'US'
221
+ | 'US_X_SOUTH'
222
+ | 'GB'
223
+ | 'ES'
224
+ | 'DE'
225
+ | 'IN'
226
+ | 'FR'
227
+ | 'NL'
228
+ | 'SA'
229
+ | 'GR'
230
+ | 'AU'
231
+ | 'IT'
232
+ | 'ID'
233
+ | 'TH';
209
234
 
210
235
  /**
211
236
  * Background noise setting
@@ -253,7 +278,7 @@ export namespace PersonaUpdateResponse {
253
278
  /**
254
279
  * Primary language ISO 639-1 code for the persona
255
280
  */
256
- language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
281
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
257
282
 
258
283
  /**
259
284
  * How reliable the persona's memory is
@@ -297,13 +322,13 @@ export namespace PersonaUpdateResponse {
297
322
  }
298
323
  }
299
324
 
300
- export interface PersonaFindAllResponse {
301
- data: Array<PersonaFindAllResponse.Data>;
325
+ export interface PersonaListResponse {
326
+ data: Array<PersonaListResponse.Data>;
302
327
 
303
- pagination: PersonaFindAllResponse.Pagination;
328
+ pagination: PersonaListResponse.Pagination;
304
329
  }
305
330
 
306
- export namespace PersonaFindAllResponse {
331
+ export namespace PersonaListResponse {
307
332
  export interface Data {
308
333
  /**
309
334
  * Unique identifier of the persona
@@ -314,7 +339,21 @@ export namespace PersonaFindAllResponse {
314
339
  * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
315
340
  * optional variants
316
341
  */
317
- accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
342
+ accent:
343
+ | 'US'
344
+ | 'US_X_SOUTH'
345
+ | 'GB'
346
+ | 'ES'
347
+ | 'DE'
348
+ | 'IN'
349
+ | 'FR'
350
+ | 'NL'
351
+ | 'SA'
352
+ | 'GR'
353
+ | 'AU'
354
+ | 'IT'
355
+ | 'ID'
356
+ | 'TH';
318
357
 
319
358
  /**
320
359
  * Background noise setting
@@ -362,7 +401,7 @@ export namespace PersonaFindAllResponse {
362
401
  /**
363
402
  * Primary language ISO 639-1 code for the persona
364
403
  */
365
- language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
404
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
366
405
 
367
406
  /**
368
407
  * How reliable the persona's memory is
@@ -438,7 +477,21 @@ export namespace PersonaGetByIDResponse {
438
477
  * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
439
478
  * optional variants
440
479
  */
441
- accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
480
+ accent:
481
+ | 'US'
482
+ | 'US_X_SOUTH'
483
+ | 'GB'
484
+ | 'ES'
485
+ | 'DE'
486
+ | 'IN'
487
+ | 'FR'
488
+ | 'NL'
489
+ | 'SA'
490
+ | 'GR'
491
+ | 'AU'
492
+ | 'IT'
493
+ | 'ID'
494
+ | 'TH';
442
495
 
443
496
  /**
444
497
  * Background noise setting
@@ -486,7 +539,7 @@ export namespace PersonaGetByIDResponse {
486
539
  /**
487
540
  * Primary language ISO 639-1 code for the persona
488
541
  */
489
- language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
542
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
490
543
 
491
544
  /**
492
545
  * How reliable the persona's memory is
@@ -535,7 +588,21 @@ export interface PersonaCreateParams {
535
588
  * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
536
589
  * optional variants
537
590
  */
538
- accent: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
591
+ accent:
592
+ | 'US'
593
+ | 'US_X_SOUTH'
594
+ | 'GB'
595
+ | 'ES'
596
+ | 'DE'
597
+ | 'IN'
598
+ | 'FR'
599
+ | 'NL'
600
+ | 'SA'
601
+ | 'GR'
602
+ | 'AU'
603
+ | 'IT'
604
+ | 'ID'
605
+ | 'TH';
539
606
 
540
607
  /**
541
608
  * Gender of the persona
@@ -545,7 +612,7 @@ export interface PersonaCreateParams {
545
612
  /**
546
613
  * Primary language ISO 639-1 code for the persona
547
614
  */
548
- language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
615
+ language: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
549
616
 
550
617
  /**
551
618
  * The name the agent will identify as during conversations
@@ -621,7 +688,21 @@ export interface PersonaUpdateParams {
621
688
  * Accent of the persona, defined using ISO 3166-1 alpha-2 country codes with
622
689
  * optional variants
623
690
  */
624
- accent?: 'US' | 'US_X_SOUTH' | 'GB' | 'ES' | 'DE' | 'IN' | 'FR' | 'NL' | 'SA' | 'GR' | 'AU' | 'IT';
691
+ accent?:
692
+ | 'US'
693
+ | 'US_X_SOUTH'
694
+ | 'GB'
695
+ | 'ES'
696
+ | 'DE'
697
+ | 'IN'
698
+ | 'FR'
699
+ | 'NL'
700
+ | 'SA'
701
+ | 'GR'
702
+ | 'AU'
703
+ | 'IT'
704
+ | 'ID'
705
+ | 'TH';
625
706
 
626
707
  /**
627
708
  * Background noise setting
@@ -669,7 +750,7 @@ export interface PersonaUpdateParams {
669
750
  /**
670
751
  * Primary language ISO 639-1 code for the persona
671
752
  */
672
- language?: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT';
753
+ language?: 'EN' | 'ES' | 'DE' | 'HI' | 'FR' | 'NL' | 'AR' | 'EL' | 'IT' | 'ID' | 'TH';
673
754
 
674
755
  /**
675
756
  * How reliable the persona's memory is
@@ -702,7 +783,7 @@ export interface PersonaUpdateParams {
702
783
  speechPace?: 'SLOW' | 'NORMAL' | 'FAST';
703
784
  }
704
785
 
705
- export interface PersonaFindAllParams {
786
+ export interface PersonaListParams {
706
787
  after?: string;
707
788
 
708
789
  limit?: number;
@@ -714,10 +795,10 @@ export declare namespace Persona {
714
795
  export {
715
796
  type PersonaCreateResponse as PersonaCreateResponse,
716
797
  type PersonaUpdateResponse as PersonaUpdateResponse,
717
- type PersonaFindAllResponse as PersonaFindAllResponse,
798
+ type PersonaListResponse as PersonaListResponse,
718
799
  type PersonaGetByIDResponse as PersonaGetByIDResponse,
719
800
  type PersonaCreateParams as PersonaCreateParams,
720
801
  type PersonaUpdateParams as PersonaUpdateParams,
721
- type PersonaFindAllParams as PersonaFindAllParams,
802
+ type PersonaListParams as PersonaListParams,
722
803
  };
723
804
  }