@roarkanalytics/sdk 9.2.0 → 9.4.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 (54) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-draft.d.mts +24 -24
  12. package/resources/agent-draft.d.mts.map +1 -1
  13. package/resources/agent-draft.d.ts +24 -24
  14. package/resources/agent-draft.d.ts.map +1 -1
  15. package/resources/agent-version.d.mts +12 -12
  16. package/resources/agent-version.d.mts.map +1 -1
  17. package/resources/agent-version.d.ts +12 -12
  18. package/resources/agent-version.d.ts.map +1 -1
  19. package/resources/agent.d.mts +3 -3
  20. package/resources/agent.d.mts.map +1 -1
  21. package/resources/agent.d.ts +3 -3
  22. package/resources/agent.d.ts.map +1 -1
  23. package/resources/config.d.mts +18 -18
  24. package/resources/config.d.mts.map +1 -1
  25. package/resources/config.d.ts +18 -18
  26. package/resources/config.d.ts.map +1 -1
  27. package/resources/index.d.mts +1 -0
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +1 -0
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +3 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +1 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/simulation-phone-number.d.mts +45 -0
  36. package/resources/simulation-phone-number.d.mts.map +1 -0
  37. package/resources/simulation-phone-number.d.ts +45 -0
  38. package/resources/simulation-phone-number.d.ts.map +1 -0
  39. package/resources/simulation-phone-number.js +24 -0
  40. package/resources/simulation-phone-number.js.map +1 -0
  41. package/resources/simulation-phone-number.mjs +20 -0
  42. package/resources/simulation-phone-number.mjs.map +1 -0
  43. package/src/client.ts +11 -0
  44. package/src/resources/agent-draft.ts +126 -24
  45. package/src/resources/agent-version.ts +63 -12
  46. package/src/resources/agent.ts +19 -3
  47. package/src/resources/config.ts +114 -18
  48. package/src/resources/index.ts +1 -0
  49. package/src/resources/simulation-phone-number.ts +54 -0
  50. package/src/version.ts +1 -1
  51. package/version.d.mts +1 -1
  52. package/version.d.ts +1 -1
  53. package/version.js +1 -1
  54. package/version.mjs +1 -1
@@ -142,17 +142,33 @@ export namespace Bundle {
142
142
  | 'GROQ'
143
143
  | 'META'
144
144
  | 'RIME'
145
- | 'PHONIC';
145
+ | 'PHONIC'
146
+ | 'SMALLEST';
146
147
  }
147
148
 
148
149
  export interface Stt {
149
150
  model: string;
150
151
 
151
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
152
+ provider:
153
+ | 'DEEPGRAM'
154
+ | 'OPENAI_WHISPER'
155
+ | 'SPEECHMATICS'
156
+ | 'ASSEMBLYAI'
157
+ | 'ELEVENLABS'
158
+ | 'SONIOX'
159
+ | 'SMALLEST';
152
160
  }
153
161
 
154
162
  export interface Tts {
155
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
163
+ provider:
164
+ | 'CARTESIA'
165
+ | 'ELEVENLABS'
166
+ | 'OPENAI'
167
+ | 'RIME'
168
+ | 'ASSEMBLYAI'
169
+ | 'DEEPGRAM'
170
+ | 'FISH_AUDIO'
171
+ | 'SMALLEST';
156
172
 
157
173
  voiceId: string;
158
174
 
@@ -1721,17 +1737,33 @@ export namespace Bundle {
1721
1737
  | 'GROQ'
1722
1738
  | 'META'
1723
1739
  | 'RIME'
1724
- | 'PHONIC';
1740
+ | 'PHONIC'
1741
+ | 'SMALLEST';
1725
1742
  }
1726
1743
 
1727
1744
  export interface Stt {
1728
1745
  model: string;
1729
1746
 
1730
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
1747
+ provider:
1748
+ | 'DEEPGRAM'
1749
+ | 'OPENAI_WHISPER'
1750
+ | 'SPEECHMATICS'
1751
+ | 'ASSEMBLYAI'
1752
+ | 'ELEVENLABS'
1753
+ | 'SONIOX'
1754
+ | 'SMALLEST';
1731
1755
  }
1732
1756
 
1733
1757
  export interface Tts {
1734
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
1758
+ provider:
1759
+ | 'CARTESIA'
1760
+ | 'ELEVENLABS'
1761
+ | 'OPENAI'
1762
+ | 'RIME'
1763
+ | 'ASSEMBLYAI'
1764
+ | 'DEEPGRAM'
1765
+ | 'FISH_AUDIO'
1766
+ | 'SMALLEST';
1735
1767
 
1736
1768
  voiceId: string;
1737
1769
 
@@ -3471,17 +3503,33 @@ export namespace ConfigApplyParams {
3471
3503
  | 'GROQ'
3472
3504
  | 'META'
3473
3505
  | 'RIME'
3474
- | 'PHONIC';
3506
+ | 'PHONIC'
3507
+ | 'SMALLEST';
3475
3508
  }
3476
3509
 
3477
3510
  export interface Stt {
3478
3511
  model: string;
3479
3512
 
3480
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
3513
+ provider:
3514
+ | 'DEEPGRAM'
3515
+ | 'OPENAI_WHISPER'
3516
+ | 'SPEECHMATICS'
3517
+ | 'ASSEMBLYAI'
3518
+ | 'ELEVENLABS'
3519
+ | 'SONIOX'
3520
+ | 'SMALLEST';
3481
3521
  }
3482
3522
 
3483
3523
  export interface Tts {
3484
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
3524
+ provider:
3525
+ | 'CARTESIA'
3526
+ | 'ELEVENLABS'
3527
+ | 'OPENAI'
3528
+ | 'RIME'
3529
+ | 'ASSEMBLYAI'
3530
+ | 'DEEPGRAM'
3531
+ | 'FISH_AUDIO'
3532
+ | 'SMALLEST';
3485
3533
 
3486
3534
  voiceId: string;
3487
3535
 
@@ -5050,17 +5098,33 @@ export namespace ConfigApplyParams {
5050
5098
  | 'GROQ'
5051
5099
  | 'META'
5052
5100
  | 'RIME'
5053
- | 'PHONIC';
5101
+ | 'PHONIC'
5102
+ | 'SMALLEST';
5054
5103
  }
5055
5104
 
5056
5105
  export interface Stt {
5057
5106
  model: string;
5058
5107
 
5059
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
5108
+ provider:
5109
+ | 'DEEPGRAM'
5110
+ | 'OPENAI_WHISPER'
5111
+ | 'SPEECHMATICS'
5112
+ | 'ASSEMBLYAI'
5113
+ | 'ELEVENLABS'
5114
+ | 'SONIOX'
5115
+ | 'SMALLEST';
5060
5116
  }
5061
5117
 
5062
5118
  export interface Tts {
5063
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
5119
+ provider:
5120
+ | 'CARTESIA'
5121
+ | 'ELEVENLABS'
5122
+ | 'OPENAI'
5123
+ | 'RIME'
5124
+ | 'ASSEMBLYAI'
5125
+ | 'DEEPGRAM'
5126
+ | 'FISH_AUDIO'
5127
+ | 'SMALLEST';
5064
5128
 
5065
5129
  voiceId: string;
5066
5130
 
@@ -6611,17 +6675,33 @@ export namespace ConfigDiffParams {
6611
6675
  | 'GROQ'
6612
6676
  | 'META'
6613
6677
  | 'RIME'
6614
- | 'PHONIC';
6678
+ | 'PHONIC'
6679
+ | 'SMALLEST';
6615
6680
  }
6616
6681
 
6617
6682
  export interface Stt {
6618
6683
  model: string;
6619
6684
 
6620
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
6685
+ provider:
6686
+ | 'DEEPGRAM'
6687
+ | 'OPENAI_WHISPER'
6688
+ | 'SPEECHMATICS'
6689
+ | 'ASSEMBLYAI'
6690
+ | 'ELEVENLABS'
6691
+ | 'SONIOX'
6692
+ | 'SMALLEST';
6621
6693
  }
6622
6694
 
6623
6695
  export interface Tts {
6624
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
6696
+ provider:
6697
+ | 'CARTESIA'
6698
+ | 'ELEVENLABS'
6699
+ | 'OPENAI'
6700
+ | 'RIME'
6701
+ | 'ASSEMBLYAI'
6702
+ | 'DEEPGRAM'
6703
+ | 'FISH_AUDIO'
6704
+ | 'SMALLEST';
6625
6705
 
6626
6706
  voiceId: string;
6627
6707
 
@@ -8190,17 +8270,33 @@ export namespace ConfigDiffParams {
8190
8270
  | 'GROQ'
8191
8271
  | 'META'
8192
8272
  | 'RIME'
8193
- | 'PHONIC';
8273
+ | 'PHONIC'
8274
+ | 'SMALLEST';
8194
8275
  }
8195
8276
 
8196
8277
  export interface Stt {
8197
8278
  model: string;
8198
8279
 
8199
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
8280
+ provider:
8281
+ | 'DEEPGRAM'
8282
+ | 'OPENAI_WHISPER'
8283
+ | 'SPEECHMATICS'
8284
+ | 'ASSEMBLYAI'
8285
+ | 'ELEVENLABS'
8286
+ | 'SONIOX'
8287
+ | 'SMALLEST';
8200
8288
  }
8201
8289
 
8202
8290
  export interface Tts {
8203
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
8291
+ provider:
8292
+ | 'CARTESIA'
8293
+ | 'ELEVENLABS'
8294
+ | 'OPENAI'
8295
+ | 'RIME'
8296
+ | 'ASSEMBLYAI'
8297
+ | 'DEEPGRAM'
8298
+ | 'FISH_AUDIO'
8299
+ | 'SMALLEST';
8204
8300
 
8205
8301
  voiceId: string;
8206
8302
 
@@ -420,6 +420,7 @@ export {
420
420
  type SimulationPersonaUpdateParams,
421
421
  type SimulationPersonaListParams,
422
422
  } from './simulation-persona';
423
+ export { SimulationPhoneNumber, type SimulationPhoneNumberListResponse } from './simulation-phone-number';
423
424
  export {
424
425
  SimulationRunGroup,
425
426
  type SimulationRunGroupCreateResponse,
@@ -0,0 +1,54 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ export class SimulationPhoneNumber extends APIResource {
8
+ /**
9
+ * Returns every number Roark may place simulation calls to your agent from,
10
+ * ordered by number. Use it to allowlist simulation traffic or to tell it apart
11
+ * from real callers. The shared pool changes as Roark adds and retires numbers, so
12
+ * fetch the list again before you update an allowlist.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const simulationPhoneNumbers =
17
+ * await client.simulationPhoneNumber.list();
18
+ * ```
19
+ */
20
+ list(options?: RequestOptions): APIPromise<SimulationPhoneNumberListResponse> {
21
+ return this._client.get('/v1/simulation/phone-number', options);
22
+ }
23
+ }
24
+
25
+ export interface SimulationPhoneNumberListResponse {
26
+ data: Array<SimulationPhoneNumberListResponse.Data>;
27
+ }
28
+
29
+ export namespace SimulationPhoneNumberListResponse {
30
+ /**
31
+ * A number Roark may place simulation calls from
32
+ */
33
+ export interface Data {
34
+ /**
35
+ * The number in E.164 format
36
+ */
37
+ e164: string;
38
+
39
+ /**
40
+ * ISO 3166-2 code of the region the number is from, when known
41
+ */
42
+ localityCode: string | null;
43
+
44
+ /**
45
+ * True when the number is reserved for this project: only personas that pin it
46
+ * call from it. False for the shared pool, which any simulation call may use.
47
+ */
48
+ reservedForProject: boolean;
49
+ }
50
+ }
51
+
52
+ export declare namespace SimulationPhoneNumber {
53
+ export { type SimulationPhoneNumberListResponse as SimulationPhoneNumberListResponse };
54
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '9.2.0'; // x-release-please-version
1
+ export const VERSION = '9.4.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "9.2.0";
1
+ export declare const VERSION = "9.4.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "9.2.0";
1
+ export declare const VERSION = "9.4.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '9.2.0'; // x-release-please-version
4
+ exports.VERSION = '9.4.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '9.2.0'; // x-release-please-version
1
+ export const VERSION = '9.4.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map