@roarkanalytics/sdk 7.9.0 → 8.0.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.
Files changed (205) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/client.d.mts +20 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +21 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-connection.d.mts +1952 -0
  12. package/resources/agent-connection.d.mts.map +1 -0
  13. package/resources/agent-connection.d.ts +1952 -0
  14. package/resources/agent-connection.d.ts.map +1 -0
  15. package/resources/agent-connection.js +173 -0
  16. package/resources/agent-connection.js.map +1 -0
  17. package/resources/agent-connection.mjs +169 -0
  18. package/resources/agent-connection.mjs.map +1 -0
  19. package/resources/agent-conversation.d.mts +110 -0
  20. package/resources/agent-conversation.d.mts.map +1 -0
  21. package/resources/agent-conversation.d.ts +110 -0
  22. package/resources/agent-conversation.d.ts.map +1 -0
  23. package/resources/agent-conversation.js +41 -0
  24. package/resources/agent-conversation.js.map +1 -0
  25. package/resources/agent-conversation.mjs +37 -0
  26. package/resources/agent-conversation.mjs.map +1 -0
  27. package/resources/agent-draft.d.mts +101 -35
  28. package/resources/agent-draft.d.mts.map +1 -1
  29. package/resources/agent-draft.d.ts +101 -35
  30. package/resources/agent-draft.d.ts.map +1 -1
  31. package/resources/agent-endpoint.d.mts +4 -4
  32. package/resources/agent-endpoint.d.mts.map +1 -1
  33. package/resources/agent-endpoint.d.ts +4 -4
  34. package/resources/agent-endpoint.d.ts.map +1 -1
  35. package/resources/agent-setup.d.mts +1057 -0
  36. package/resources/agent-setup.d.mts.map +1 -0
  37. package/resources/agent-setup.d.ts +1057 -0
  38. package/resources/agent-setup.d.ts.map +1 -0
  39. package/resources/agent-setup.js +113 -0
  40. package/resources/agent-setup.js.map +1 -0
  41. package/resources/agent-setup.mjs +109 -0
  42. package/resources/agent-setup.mjs.map +1 -0
  43. package/resources/agent-version.d.mts +57 -18
  44. package/resources/agent-version.d.mts.map +1 -1
  45. package/resources/agent-version.d.ts +57 -18
  46. package/resources/agent-version.d.ts.map +1 -1
  47. package/resources/agent.d.mts +263 -4
  48. package/resources/agent.d.mts.map +1 -1
  49. package/resources/agent.d.ts +263 -4
  50. package/resources/agent.d.ts.map +1 -1
  51. package/resources/calendar-connection.d.mts +834 -56
  52. package/resources/calendar-connection.d.mts.map +1 -1
  53. package/resources/calendar-connection.d.ts +834 -56
  54. package/resources/calendar-connection.d.ts.map +1 -1
  55. package/resources/calendar-connection.js +127 -8
  56. package/resources/calendar-connection.js.map +1 -1
  57. package/resources/calendar-connection.mjs +127 -8
  58. package/resources/calendar-connection.mjs.map +1 -1
  59. package/resources/call.d.mts +2 -2
  60. package/resources/call.d.mts.map +1 -1
  61. package/resources/call.d.ts +2 -2
  62. package/resources/call.d.ts.map +1 -1
  63. package/resources/config.d.mts +78 -36
  64. package/resources/config.d.mts.map +1 -1
  65. package/resources/config.d.ts +78 -36
  66. package/resources/config.d.ts.map +1 -1
  67. package/resources/conversation.d.mts +156 -0
  68. package/resources/conversation.d.mts.map +1 -0
  69. package/resources/conversation.d.ts +156 -0
  70. package/resources/conversation.d.ts.map +1 -0
  71. package/resources/conversation.js +40 -0
  72. package/resources/conversation.js.map +1 -0
  73. package/resources/conversation.mjs +36 -0
  74. package/resources/conversation.mjs.map +1 -0
  75. package/resources/customer-flow-edge-case.d.mts +637 -40
  76. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  77. package/resources/customer-flow-edge-case.d.ts +637 -40
  78. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  79. package/resources/customer-flow.d.mts +2583 -156
  80. package/resources/customer-flow.d.mts.map +1 -1
  81. package/resources/customer-flow.d.ts +2583 -156
  82. package/resources/customer-flow.d.ts.map +1 -1
  83. package/resources/{customer-profile.d.mts → customer.d.mts} +287 -92
  84. package/resources/customer.d.mts.map +1 -0
  85. package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
  86. package/resources/customer.d.ts.map +1 -0
  87. package/resources/customer.js +180 -0
  88. package/resources/customer.js.map +1 -0
  89. package/resources/customer.mjs +176 -0
  90. package/resources/customer.mjs.map +1 -0
  91. package/resources/index.d.mts +7 -2
  92. package/resources/index.d.mts.map +1 -1
  93. package/resources/index.d.ts +7 -2
  94. package/resources/index.d.ts.map +1 -1
  95. package/resources/index.js +13 -3
  96. package/resources/index.js.map +1 -1
  97. package/resources/index.mjs +6 -1
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/mcp-server.d.mts +588 -0
  100. package/resources/mcp-server.d.mts.map +1 -0
  101. package/resources/mcp-server.d.ts +588 -0
  102. package/resources/mcp-server.d.ts.map +1 -0
  103. package/resources/mcp-server.js +109 -0
  104. package/resources/mcp-server.js.map +1 -0
  105. package/resources/mcp-server.mjs +105 -0
  106. package/resources/mcp-server.mjs.map +1 -0
  107. package/resources/metric-policy.d.mts +5 -4
  108. package/resources/metric-policy.d.mts.map +1 -1
  109. package/resources/metric-policy.d.ts +5 -4
  110. package/resources/metric-policy.d.ts.map +1 -1
  111. package/resources/metric-policy.js +1 -1
  112. package/resources/metric-policy.mjs +1 -1
  113. package/resources/metric-variant.d.mts +4 -1
  114. package/resources/metric-variant.d.mts.map +1 -1
  115. package/resources/metric-variant.d.ts +4 -1
  116. package/resources/metric-variant.d.ts.map +1 -1
  117. package/resources/metric.d.mts +7 -2
  118. package/resources/metric.d.mts.map +1 -1
  119. package/resources/metric.d.ts +7 -2
  120. package/resources/metric.d.ts.map +1 -1
  121. package/resources/simulation-environment.d.mts +366 -0
  122. package/resources/simulation-environment.d.mts.map +1 -1
  123. package/resources/simulation-environment.d.ts +366 -0
  124. package/resources/simulation-environment.d.ts.map +1 -1
  125. package/resources/simulation-job.d.mts +12 -8
  126. package/resources/simulation-job.d.mts.map +1 -1
  127. package/resources/simulation-job.d.ts +12 -8
  128. package/resources/simulation-job.d.ts.map +1 -1
  129. package/resources/simulation-persona.d.mts +25 -15
  130. package/resources/simulation-persona.d.mts.map +1 -1
  131. package/resources/simulation-persona.d.ts +25 -15
  132. package/resources/simulation-persona.d.ts.map +1 -1
  133. package/resources/simulation-run-plan-job.d.mts +32 -6
  134. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  135. package/resources/simulation-run-plan-job.d.ts +32 -6
  136. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  137. package/resources/simulation-run-plan.d.mts +126 -13
  138. package/resources/simulation-run-plan.d.mts.map +1 -1
  139. package/resources/simulation-run-plan.d.ts +126 -13
  140. package/resources/simulation-run-plan.d.ts.map +1 -1
  141. package/resources/simulation-template.d.mts +1 -1
  142. package/resources/simulation-template.d.mts.map +1 -1
  143. package/resources/simulation-template.d.ts +1 -1
  144. package/resources/simulation-template.d.ts.map +1 -1
  145. package/resources/simulation.d.mts +35 -3
  146. package/resources/simulation.d.mts.map +1 -1
  147. package/resources/simulation.d.ts +35 -3
  148. package/resources/simulation.d.ts.map +1 -1
  149. package/resources/tool.d.mts +565 -6
  150. package/resources/tool.d.mts.map +1 -1
  151. package/resources/tool.d.ts +565 -6
  152. package/resources/tool.d.ts.map +1 -1
  153. package/resources/tool.js +9 -6
  154. package/resources/tool.js.map +1 -1
  155. package/resources/tool.mjs +9 -6
  156. package/resources/tool.mjs.map +1 -1
  157. package/resources/usage.d.mts +1 -1
  158. package/resources/usage.d.mts.map +1 -1
  159. package/resources/usage.d.ts +1 -1
  160. package/resources/usage.d.ts.map +1 -1
  161. package/resources/webhook.d.mts +4 -4
  162. package/resources/webhook.d.mts.map +1 -1
  163. package/resources/webhook.d.ts +4 -4
  164. package/resources/webhook.d.ts.map +1 -1
  165. package/src/client.ts +200 -34
  166. package/src/resources/agent-connection.ts +2523 -0
  167. package/src/resources/agent-conversation.ts +139 -0
  168. package/src/resources/agent-draft.ts +239 -35
  169. package/src/resources/agent-endpoint.ts +8 -4
  170. package/src/resources/agent-setup.ts +1685 -0
  171. package/src/resources/agent-version.ts +126 -18
  172. package/src/resources/agent.ts +506 -4
  173. package/src/resources/calendar-connection.ts +1035 -63
  174. package/src/resources/call.ts +12 -2
  175. package/src/resources/config.ts +198 -36
  176. package/src/resources/conversation.ts +205 -0
  177. package/src/resources/customer-flow-edge-case.ts +709 -40
  178. package/src/resources/customer-flow.ts +3141 -156
  179. package/src/resources/{customer-profile.ts → customer.ts} +406 -294
  180. package/src/resources/index.ts +91 -17
  181. package/src/resources/mcp-server.ts +786 -0
  182. package/src/resources/metric-policy.ts +5 -4
  183. package/src/resources/metric-variant.ts +4 -1
  184. package/src/resources/metric.ts +7 -2
  185. package/src/resources/simulation-environment.ts +414 -0
  186. package/src/resources/simulation-job.ts +14 -8
  187. package/src/resources/simulation-persona.ts +25 -15
  188. package/src/resources/simulation-run-plan-job.ts +47 -6
  189. package/src/resources/simulation-run-plan.ts +140 -0
  190. package/src/resources/simulation-template.ts +1 -0
  191. package/src/resources/simulation.ts +39 -0
  192. package/src/resources/tool.ts +697 -6
  193. package/src/resources/usage.ts +6 -1
  194. package/src/resources/webhook.ts +8 -0
  195. package/src/version.ts +1 -1
  196. package/version.d.mts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/version.mjs +1 -1
  200. package/resources/customer-profile.d.mts.map +0 -1
  201. package/resources/customer-profile.d.ts.map +0 -1
  202. package/resources/customer-profile.js +0 -141
  203. package/resources/customer-profile.js.map +0 -1
  204. package/resources/customer-profile.mjs +0 -137
  205. package/resources/customer-profile.mjs.map +0 -1
@@ -0,0 +1,1952 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class AgentConnection extends APIResource {
5
+ /**
6
+ * Connects the platform a project’s agents run on. The body is shaped by
7
+ * `provider`; `GET /v1/connections/agent/providers` lists what each needs. Retell,
8
+ * Vapi, ElevenLabs and Bland keys are checked by listing agents first, so a
9
+ * refused key returns 400 and nothing is stored. Platforms that pull agents start
10
+ * syncing straight away. For LIVEKIT_SELF_HOSTED and the Pipecat providers, the
11
+ * response carries `observerApiKey`, shown once, for your SDK to report calls
12
+ * with. Most platforms connect once per project, and a second create returns 409;
13
+ * LiveKit Cloud may connect several accounts.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const agentConnection = await client.agentConnection.create(
18
+ * {
19
+ * apiKey: 'x',
20
+ * name: 'Production Retell',
21
+ * provider: 'RETELL',
22
+ * },
23
+ * );
24
+ * ```
25
+ */
26
+ create(body: AgentConnectionCreateParams, options?: RequestOptions): APIPromise<AgentConnectionCreateResponse>;
27
+ /**
28
+ * Changes a connection’s settings or rotates its credential. Send `provider` (it
29
+ * must match the connection’s) and only the fields to change; the rest keep their
30
+ * stored values. A new Retell, Vapi, ElevenLabs or Bland key is checked by listing
31
+ * agents first. Set `status` to INACTIVE to pause syncing without deleting
32
+ * anything.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const agentConnection = await client.agentConnection.update(
37
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
38
+ * { provider: 'RETELL' },
39
+ * );
40
+ * ```
41
+ */
42
+ update(connectionID: string, body: AgentConnectionUpdateParams, options?: RequestOptions): APIPromise<AgentConnectionUpdateResponse>;
43
+ /**
44
+ * The project's connections to the platforms its agents run on (Retell, Vapi,
45
+ * LiveKit, Pipecat and others), each with its settings and latest sync.
46
+ * Credentials are never returned.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const agentConnections =
51
+ * await client.agentConnection.list();
52
+ * ```
53
+ */
54
+ list(query?: AgentConnectionListParams | null | undefined, options?: RequestOptions): APIPromise<AgentConnectionListResponse>;
55
+ /**
56
+ * Deletes the connection and its stored credential, and stops syncing. Agents and
57
+ * calls it already brought in stay in the project. Alerts that notify through it
58
+ * stop notifying.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const agentConnection = await client.agentConnection.delete(
63
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
64
+ * );
65
+ * ```
66
+ */
67
+ delete(connectionID: string, options?: RequestOptions): APIPromise<AgentConnectionDeleteResponse>;
68
+ /**
69
+ * Stops a running backfill. Calls it already imported stay.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const response =
74
+ * await client.agentConnection.cancelBackfill(
75
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
76
+ * {
77
+ * connectionId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
78
+ * },
79
+ * );
80
+ * ```
81
+ */
82
+ cancelBackfill(backfillID: string, params: AgentConnectionCancelBackfillParams, options?: RequestOptions): APIPromise<AgentConnectionCancelBackfillResponse>;
83
+ /**
84
+ * Starts a backfill that imports up to `maxCalls` of the most recent past calls
85
+ * from a Retell, Vapi, ElevenLabs or Leaping connection. Other platforms
86
+ * return 400.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const response =
91
+ * await client.agentConnection.createBackfill(
92
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
93
+ * { maxCalls: 250 },
94
+ * );
95
+ * ```
96
+ */
97
+ createBackfill(connectionID: string, body: AgentConnectionCreateBackfillParams, options?: RequestOptions): APIPromise<AgentConnectionCreateBackfillResponse>;
98
+ /**
99
+ * Lists the agents a Retell, Vapi, ElevenLabs or Bland API key can see, without
100
+ * storing anything. Use it to check a key and to pick `agentIds` before
101
+ * connecting. A key the platform refuses returns 400.
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * const response = await client.agentConnection.discover({
106
+ * apiKey: 'x',
107
+ * provider: 'RETELL',
108
+ * });
109
+ * ```
110
+ */
111
+ discover(body: AgentConnectionDiscoverParams, options?: RequestOptions): APIPromise<AgentConnectionDiscoverResponse>;
112
+ /**
113
+ * One connection, with its settings and latest sync. Credentials are never
114
+ * returned.
115
+ *
116
+ * @example
117
+ * ```ts
118
+ * const response = await client.agentConnection.getByID(
119
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
120
+ * );
121
+ * ```
122
+ */
123
+ getByID(connectionID: string, options?: RequestOptions): APIPromise<AgentConnectionGetByIDResponse>;
124
+ /**
125
+ * A connection's imports of past calls, newest first.
126
+ *
127
+ * @example
128
+ * ```ts
129
+ * const response = await client.agentConnection.listBackfills(
130
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
131
+ * );
132
+ * ```
133
+ */
134
+ listBackfills(connectionID: string, options?: RequestOptions): APIPromise<AgentConnectionListBackfillsResponse>;
135
+ /**
136
+ * Every platform a project can connect, with the fields its create body needs, how
137
+ * its calls reach Roark, and which settings apply. Read this before connecting
138
+ * one.
139
+ *
140
+ * @example
141
+ * ```ts
142
+ * const response =
143
+ * await client.agentConnection.listProviders();
144
+ * ```
145
+ */
146
+ listProviders(options?: RequestOptions): APIPromise<AgentConnectionListProvidersResponse>;
147
+ }
148
+ export interface AgentConnectionCreateResponse {
149
+ /**
150
+ * A connection to the platform a project’s agents run on. Credentials are never
151
+ * returned; the API key Roark mints for an SDK-driven platform is returned once,
152
+ * on create.
153
+ */
154
+ data: AgentConnectionCreateResponse.Data;
155
+ /**
156
+ * For LIVEKIT_SELF_HOSTED and the Pipecat providers: the Roark API key your SDK
157
+ * reports calls with, bound to this connection. Returned only here; store it now.
158
+ * Null for every other provider, and if minting failed.
159
+ */
160
+ observerApiKey: string | null;
161
+ }
162
+ export declare namespace AgentConnectionCreateResponse {
163
+ /**
164
+ * A connection to the platform a project’s agents run on. Credentials are never
165
+ * returned; the API key Roark mints for an SDK-driven platform is returned once,
166
+ * on create.
167
+ */
168
+ interface Data {
169
+ id: string;
170
+ /**
171
+ * The platform's ids of the SELECTED agents.
172
+ */
173
+ agentIds: Array<string>;
174
+ /**
175
+ * Agents created by name.
176
+ */
177
+ agentNames: Array<string>;
178
+ /**
179
+ * Null for platforms that do not scope by agent.
180
+ */
181
+ agentScope: 'ALL' | 'SELECTED' | null;
182
+ /**
183
+ * When true, every agent this connection brings in is set up for testing as it
184
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
185
+ * agent up by hand. Defaults to false.
186
+ */
187
+ autoSetUpAgents: boolean;
188
+ capabilities: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
189
+ /**
190
+ * ISO 8601
191
+ */
192
+ createdAt: string;
193
+ /**
194
+ * Set for GOOGLE_CES only.
195
+ */
196
+ googleCes: Data.GoogleCes | null;
197
+ /**
198
+ * Set for KORE only.
199
+ */
200
+ kore: Data.Kore | null;
201
+ /**
202
+ * Set for LIVEKIT only.
203
+ */
204
+ livekit: Data.Livekit | null;
205
+ name: string;
206
+ /**
207
+ * Set for the Pipecat providers only. Secrets are reported only as present or
208
+ * absent.
209
+ */
210
+ pipecat: Data.Pipecat | null;
211
+ /**
212
+ * The platform the agents run on. LIVEKIT is LiveKit Cloud; LIVEKIT_SELF_HOSTED is
213
+ * the LiveKit Agents SDK reporting through the Roark plugin.
214
+ * PIPECAT_CLOUD_INTEGRATION and PIPECAT_SELF_HOSTED_INTEGRATION are Pipecat Cloud
215
+ * and a self-hosted Pipecat bot. `GET /v1/connections/agent/providers` describes
216
+ * what each one needs.
217
+ */
218
+ provider: 'RETELL' | 'VAPI' | 'ELEVEN_LABS' | 'BLAND' | 'LEAPING' | 'LIVEKIT' | 'LIVEKIT_SELF_HOSTED' | 'PIPECAT_CLOUD_INTEGRATION' | 'PIPECAT_SELF_HOSTED_INTEGRATION' | 'KORE' | 'GOOGLE_CES';
219
+ samplingRate: number;
220
+ /**
221
+ * INACTIVE pauses syncing and call import without deleting anything.
222
+ */
223
+ status: 'ACTIVE' | 'INACTIVE';
224
+ /**
225
+ * The latest scheduled sync. Null for platforms that report calls themselves
226
+ * rather than being pulled.
227
+ */
228
+ sync: Data.Sync | null;
229
+ /**
230
+ * Agents the latest sync could not bring in, and why. Empty when the sync is
231
+ * healthy.
232
+ */
233
+ syncProblems: Array<Data.SyncProblem>;
234
+ /**
235
+ * ISO 8601
236
+ */
237
+ updatedAt: string | null;
238
+ /**
239
+ * Set for VAPI only.
240
+ */
241
+ vapi: Data.Vapi | null;
242
+ }
243
+ namespace Data {
244
+ /**
245
+ * Set for GOOGLE_CES only.
246
+ */
247
+ interface GoogleCes {
248
+ appId: string;
249
+ deploymentId: string;
250
+ gcpProjectId: string;
251
+ location: string;
252
+ serviceAccountEmail: string;
253
+ versionId: string | null;
254
+ }
255
+ /**
256
+ * Set for KORE only.
257
+ */
258
+ interface Kore {
259
+ appId: string;
260
+ baseUrl: string | null;
261
+ envName: string;
262
+ }
263
+ /**
264
+ * Set for LIVEKIT only.
265
+ */
266
+ interface Livekit {
267
+ metadataEgressStrategy: 'EAGER' | 'DEFERRED';
268
+ metadataFilteringEnabled: boolean;
269
+ url: string;
270
+ }
271
+ /**
272
+ * Set for the Pipecat providers only. Secrets are reported only as present or
273
+ * absent.
274
+ */
275
+ interface Pipecat {
276
+ appendAgentId: boolean;
277
+ baseSignalingUrl: string | null;
278
+ hasAuthToken: boolean;
279
+ hasPccPublicKey: boolean;
280
+ pccRoomProperties: {
281
+ [key: string]: unknown;
282
+ } | null;
283
+ pccStartBody: {
284
+ [key: string]: unknown;
285
+ } | null;
286
+ }
287
+ /**
288
+ * The latest scheduled sync. Null for platforms that report calls themselves
289
+ * rather than being pulled.
290
+ */
291
+ interface Sync {
292
+ /**
293
+ * Agents the latest run brought in.
294
+ */
295
+ createdAgentCount: number | null;
296
+ /**
297
+ * ISO 8601
298
+ */
299
+ endedAt: string | null;
300
+ /**
301
+ * How often the connection syncs.
302
+ */
303
+ intervalMinutes: number | null;
304
+ isUpToDate: boolean | null;
305
+ /**
306
+ * ISO 8601
307
+ */
308
+ startedAt: string | null;
309
+ /**
310
+ * How the latest sync run went.
311
+ */
312
+ status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | null;
313
+ }
314
+ interface SyncProblem {
315
+ /**
316
+ * The platform's id of the agent the problem is with
317
+ */
318
+ agentId: string | null;
319
+ agentName: string | null;
320
+ /**
321
+ * ISO 8601
322
+ */
323
+ at: string;
324
+ /**
325
+ * Why the sync failed for it, such as INVALID_API_KEY or AGENT_NOT_FOUND.
326
+ */
327
+ reason: string | null;
328
+ }
329
+ /**
330
+ * Set for VAPI only.
331
+ */
332
+ interface Vapi {
333
+ outboundRequestBodyTemplate: {
334
+ [key: string]: unknown;
335
+ } | null;
336
+ }
337
+ }
338
+ }
339
+ export interface AgentConnectionUpdateResponse {
340
+ /**
341
+ * A connection to the platform a project’s agents run on. Credentials are never
342
+ * returned; the API key Roark mints for an SDK-driven platform is returned once,
343
+ * on create.
344
+ */
345
+ data: AgentConnectionUpdateResponse.Data;
346
+ }
347
+ export declare namespace AgentConnectionUpdateResponse {
348
+ /**
349
+ * A connection to the platform a project’s agents run on. Credentials are never
350
+ * returned; the API key Roark mints for an SDK-driven platform is returned once,
351
+ * on create.
352
+ */
353
+ interface Data {
354
+ id: string;
355
+ /**
356
+ * The platform's ids of the SELECTED agents.
357
+ */
358
+ agentIds: Array<string>;
359
+ /**
360
+ * Agents created by name.
361
+ */
362
+ agentNames: Array<string>;
363
+ /**
364
+ * Null for platforms that do not scope by agent.
365
+ */
366
+ agentScope: 'ALL' | 'SELECTED' | null;
367
+ /**
368
+ * When true, every agent this connection brings in is set up for testing as it
369
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
370
+ * agent up by hand. Defaults to false.
371
+ */
372
+ autoSetUpAgents: boolean;
373
+ capabilities: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
374
+ /**
375
+ * ISO 8601
376
+ */
377
+ createdAt: string;
378
+ /**
379
+ * Set for GOOGLE_CES only.
380
+ */
381
+ googleCes: Data.GoogleCes | null;
382
+ /**
383
+ * Set for KORE only.
384
+ */
385
+ kore: Data.Kore | null;
386
+ /**
387
+ * Set for LIVEKIT only.
388
+ */
389
+ livekit: Data.Livekit | null;
390
+ name: string;
391
+ /**
392
+ * Set for the Pipecat providers only. Secrets are reported only as present or
393
+ * absent.
394
+ */
395
+ pipecat: Data.Pipecat | null;
396
+ /**
397
+ * The platform the agents run on. LIVEKIT is LiveKit Cloud; LIVEKIT_SELF_HOSTED is
398
+ * the LiveKit Agents SDK reporting through the Roark plugin.
399
+ * PIPECAT_CLOUD_INTEGRATION and PIPECAT_SELF_HOSTED_INTEGRATION are Pipecat Cloud
400
+ * and a self-hosted Pipecat bot. `GET /v1/connections/agent/providers` describes
401
+ * what each one needs.
402
+ */
403
+ provider: 'RETELL' | 'VAPI' | 'ELEVEN_LABS' | 'BLAND' | 'LEAPING' | 'LIVEKIT' | 'LIVEKIT_SELF_HOSTED' | 'PIPECAT_CLOUD_INTEGRATION' | 'PIPECAT_SELF_HOSTED_INTEGRATION' | 'KORE' | 'GOOGLE_CES';
404
+ samplingRate: number;
405
+ /**
406
+ * INACTIVE pauses syncing and call import without deleting anything.
407
+ */
408
+ status: 'ACTIVE' | 'INACTIVE';
409
+ /**
410
+ * The latest scheduled sync. Null for platforms that report calls themselves
411
+ * rather than being pulled.
412
+ */
413
+ sync: Data.Sync | null;
414
+ /**
415
+ * Agents the latest sync could not bring in, and why. Empty when the sync is
416
+ * healthy.
417
+ */
418
+ syncProblems: Array<Data.SyncProblem>;
419
+ /**
420
+ * ISO 8601
421
+ */
422
+ updatedAt: string | null;
423
+ /**
424
+ * Set for VAPI only.
425
+ */
426
+ vapi: Data.Vapi | null;
427
+ }
428
+ namespace Data {
429
+ /**
430
+ * Set for GOOGLE_CES only.
431
+ */
432
+ interface GoogleCes {
433
+ appId: string;
434
+ deploymentId: string;
435
+ gcpProjectId: string;
436
+ location: string;
437
+ serviceAccountEmail: string;
438
+ versionId: string | null;
439
+ }
440
+ /**
441
+ * Set for KORE only.
442
+ */
443
+ interface Kore {
444
+ appId: string;
445
+ baseUrl: string | null;
446
+ envName: string;
447
+ }
448
+ /**
449
+ * Set for LIVEKIT only.
450
+ */
451
+ interface Livekit {
452
+ metadataEgressStrategy: 'EAGER' | 'DEFERRED';
453
+ metadataFilteringEnabled: boolean;
454
+ url: string;
455
+ }
456
+ /**
457
+ * Set for the Pipecat providers only. Secrets are reported only as present or
458
+ * absent.
459
+ */
460
+ interface Pipecat {
461
+ appendAgentId: boolean;
462
+ baseSignalingUrl: string | null;
463
+ hasAuthToken: boolean;
464
+ hasPccPublicKey: boolean;
465
+ pccRoomProperties: {
466
+ [key: string]: unknown;
467
+ } | null;
468
+ pccStartBody: {
469
+ [key: string]: unknown;
470
+ } | null;
471
+ }
472
+ /**
473
+ * The latest scheduled sync. Null for platforms that report calls themselves
474
+ * rather than being pulled.
475
+ */
476
+ interface Sync {
477
+ /**
478
+ * Agents the latest run brought in.
479
+ */
480
+ createdAgentCount: number | null;
481
+ /**
482
+ * ISO 8601
483
+ */
484
+ endedAt: string | null;
485
+ /**
486
+ * How often the connection syncs.
487
+ */
488
+ intervalMinutes: number | null;
489
+ isUpToDate: boolean | null;
490
+ /**
491
+ * ISO 8601
492
+ */
493
+ startedAt: string | null;
494
+ /**
495
+ * How the latest sync run went.
496
+ */
497
+ status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | null;
498
+ }
499
+ interface SyncProblem {
500
+ /**
501
+ * The platform's id of the agent the problem is with
502
+ */
503
+ agentId: string | null;
504
+ agentName: string | null;
505
+ /**
506
+ * ISO 8601
507
+ */
508
+ at: string;
509
+ /**
510
+ * Why the sync failed for it, such as INVALID_API_KEY or AGENT_NOT_FOUND.
511
+ */
512
+ reason: string | null;
513
+ }
514
+ /**
515
+ * Set for VAPI only.
516
+ */
517
+ interface Vapi {
518
+ outboundRequestBodyTemplate: {
519
+ [key: string]: unknown;
520
+ } | null;
521
+ }
522
+ }
523
+ }
524
+ export interface AgentConnectionListResponse {
525
+ data: Array<AgentConnectionListResponse.Data>;
526
+ }
527
+ export declare namespace AgentConnectionListResponse {
528
+ /**
529
+ * A connection to the platform a project’s agents run on. Credentials are never
530
+ * returned; the API key Roark mints for an SDK-driven platform is returned once,
531
+ * on create.
532
+ */
533
+ interface Data {
534
+ id: string;
535
+ /**
536
+ * The platform's ids of the SELECTED agents.
537
+ */
538
+ agentIds: Array<string>;
539
+ /**
540
+ * Agents created by name.
541
+ */
542
+ agentNames: Array<string>;
543
+ /**
544
+ * Null for platforms that do not scope by agent.
545
+ */
546
+ agentScope: 'ALL' | 'SELECTED' | null;
547
+ /**
548
+ * When true, every agent this connection brings in is set up for testing as it
549
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
550
+ * agent up by hand. Defaults to false.
551
+ */
552
+ autoSetUpAgents: boolean;
553
+ capabilities: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
554
+ /**
555
+ * ISO 8601
556
+ */
557
+ createdAt: string;
558
+ /**
559
+ * Set for GOOGLE_CES only.
560
+ */
561
+ googleCes: Data.GoogleCes | null;
562
+ /**
563
+ * Set for KORE only.
564
+ */
565
+ kore: Data.Kore | null;
566
+ /**
567
+ * Set for LIVEKIT only.
568
+ */
569
+ livekit: Data.Livekit | null;
570
+ name: string;
571
+ /**
572
+ * Set for the Pipecat providers only. Secrets are reported only as present or
573
+ * absent.
574
+ */
575
+ pipecat: Data.Pipecat | null;
576
+ /**
577
+ * The platform the agents run on. LIVEKIT is LiveKit Cloud; LIVEKIT_SELF_HOSTED is
578
+ * the LiveKit Agents SDK reporting through the Roark plugin.
579
+ * PIPECAT_CLOUD_INTEGRATION and PIPECAT_SELF_HOSTED_INTEGRATION are Pipecat Cloud
580
+ * and a self-hosted Pipecat bot. `GET /v1/connections/agent/providers` describes
581
+ * what each one needs.
582
+ */
583
+ provider: 'RETELL' | 'VAPI' | 'ELEVEN_LABS' | 'BLAND' | 'LEAPING' | 'LIVEKIT' | 'LIVEKIT_SELF_HOSTED' | 'PIPECAT_CLOUD_INTEGRATION' | 'PIPECAT_SELF_HOSTED_INTEGRATION' | 'KORE' | 'GOOGLE_CES';
584
+ samplingRate: number;
585
+ /**
586
+ * INACTIVE pauses syncing and call import without deleting anything.
587
+ */
588
+ status: 'ACTIVE' | 'INACTIVE';
589
+ /**
590
+ * The latest scheduled sync. Null for platforms that report calls themselves
591
+ * rather than being pulled.
592
+ */
593
+ sync: Data.Sync | null;
594
+ /**
595
+ * Agents the latest sync could not bring in, and why. Empty when the sync is
596
+ * healthy.
597
+ */
598
+ syncProblems: Array<Data.SyncProblem>;
599
+ /**
600
+ * ISO 8601
601
+ */
602
+ updatedAt: string | null;
603
+ /**
604
+ * Set for VAPI only.
605
+ */
606
+ vapi: Data.Vapi | null;
607
+ }
608
+ namespace Data {
609
+ /**
610
+ * Set for GOOGLE_CES only.
611
+ */
612
+ interface GoogleCes {
613
+ appId: string;
614
+ deploymentId: string;
615
+ gcpProjectId: string;
616
+ location: string;
617
+ serviceAccountEmail: string;
618
+ versionId: string | null;
619
+ }
620
+ /**
621
+ * Set for KORE only.
622
+ */
623
+ interface Kore {
624
+ appId: string;
625
+ baseUrl: string | null;
626
+ envName: string;
627
+ }
628
+ /**
629
+ * Set for LIVEKIT only.
630
+ */
631
+ interface Livekit {
632
+ metadataEgressStrategy: 'EAGER' | 'DEFERRED';
633
+ metadataFilteringEnabled: boolean;
634
+ url: string;
635
+ }
636
+ /**
637
+ * Set for the Pipecat providers only. Secrets are reported only as present or
638
+ * absent.
639
+ */
640
+ interface Pipecat {
641
+ appendAgentId: boolean;
642
+ baseSignalingUrl: string | null;
643
+ hasAuthToken: boolean;
644
+ hasPccPublicKey: boolean;
645
+ pccRoomProperties: {
646
+ [key: string]: unknown;
647
+ } | null;
648
+ pccStartBody: {
649
+ [key: string]: unknown;
650
+ } | null;
651
+ }
652
+ /**
653
+ * The latest scheduled sync. Null for platforms that report calls themselves
654
+ * rather than being pulled.
655
+ */
656
+ interface Sync {
657
+ /**
658
+ * Agents the latest run brought in.
659
+ */
660
+ createdAgentCount: number | null;
661
+ /**
662
+ * ISO 8601
663
+ */
664
+ endedAt: string | null;
665
+ /**
666
+ * How often the connection syncs.
667
+ */
668
+ intervalMinutes: number | null;
669
+ isUpToDate: boolean | null;
670
+ /**
671
+ * ISO 8601
672
+ */
673
+ startedAt: string | null;
674
+ /**
675
+ * How the latest sync run went.
676
+ */
677
+ status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | null;
678
+ }
679
+ interface SyncProblem {
680
+ /**
681
+ * The platform's id of the agent the problem is with
682
+ */
683
+ agentId: string | null;
684
+ agentName: string | null;
685
+ /**
686
+ * ISO 8601
687
+ */
688
+ at: string;
689
+ /**
690
+ * Why the sync failed for it, such as INVALID_API_KEY or AGENT_NOT_FOUND.
691
+ */
692
+ reason: string | null;
693
+ }
694
+ /**
695
+ * Set for VAPI only.
696
+ */
697
+ interface Vapi {
698
+ outboundRequestBodyTemplate: {
699
+ [key: string]: unknown;
700
+ } | null;
701
+ }
702
+ }
703
+ }
704
+ export interface AgentConnectionDeleteResponse {
705
+ data: AgentConnectionDeleteResponse.Data;
706
+ }
707
+ export declare namespace AgentConnectionDeleteResponse {
708
+ interface Data {
709
+ id: string;
710
+ deleted: true;
711
+ }
712
+ }
713
+ export interface AgentConnectionCancelBackfillResponse {
714
+ /**
715
+ * An import of past calls from the platform.
716
+ */
717
+ data: AgentConnectionCancelBackfillResponse.Data;
718
+ }
719
+ export declare namespace AgentConnectionCancelBackfillResponse {
720
+ /**
721
+ * An import of past calls from the platform.
722
+ */
723
+ interface Data {
724
+ id: string;
725
+ /**
726
+ * ISO 8601
727
+ */
728
+ createdAt: string;
729
+ /**
730
+ * Past calls imported so far.
731
+ */
732
+ importedCallCount: number | null;
733
+ maxCalls: number;
734
+ status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
735
+ }
736
+ }
737
+ export interface AgentConnectionCreateBackfillResponse {
738
+ /**
739
+ * An import of past calls from the platform.
740
+ */
741
+ data: AgentConnectionCreateBackfillResponse.Data;
742
+ }
743
+ export declare namespace AgentConnectionCreateBackfillResponse {
744
+ /**
745
+ * An import of past calls from the platform.
746
+ */
747
+ interface Data {
748
+ id: string;
749
+ /**
750
+ * ISO 8601
751
+ */
752
+ createdAt: string;
753
+ /**
754
+ * Past calls imported so far.
755
+ */
756
+ importedCallCount: number | null;
757
+ maxCalls: number;
758
+ status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
759
+ }
760
+ }
761
+ export interface AgentConnectionDiscoverResponse {
762
+ data: Array<AgentConnectionDiscoverResponse.Data>;
763
+ }
764
+ export declare namespace AgentConnectionDiscoverResponse {
765
+ interface Data {
766
+ /**
767
+ * The platform's id, for `agentIds`
768
+ */
769
+ id: string;
770
+ /**
771
+ * Vapi only: true when the assistant withholds recordings, so its calls cannot be
772
+ * analysed. Null elsewhere.
773
+ */
774
+ hipaaEnabled: boolean | null;
775
+ name: string;
776
+ }
777
+ }
778
+ export interface AgentConnectionGetByIDResponse {
779
+ /**
780
+ * A connection to the platform a project’s agents run on. Credentials are never
781
+ * returned; the API key Roark mints for an SDK-driven platform is returned once,
782
+ * on create.
783
+ */
784
+ data: AgentConnectionGetByIDResponse.Data;
785
+ }
786
+ export declare namespace AgentConnectionGetByIDResponse {
787
+ /**
788
+ * A connection to the platform a project’s agents run on. Credentials are never
789
+ * returned; the API key Roark mints for an SDK-driven platform is returned once,
790
+ * on create.
791
+ */
792
+ interface Data {
793
+ id: string;
794
+ /**
795
+ * The platform's ids of the SELECTED agents.
796
+ */
797
+ agentIds: Array<string>;
798
+ /**
799
+ * Agents created by name.
800
+ */
801
+ agentNames: Array<string>;
802
+ /**
803
+ * Null for platforms that do not scope by agent.
804
+ */
805
+ agentScope: 'ALL' | 'SELECTED' | null;
806
+ /**
807
+ * When true, every agent this connection brings in is set up for testing as it
808
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
809
+ * agent up by hand. Defaults to false.
810
+ */
811
+ autoSetUpAgents: boolean;
812
+ capabilities: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
813
+ /**
814
+ * ISO 8601
815
+ */
816
+ createdAt: string;
817
+ /**
818
+ * Set for GOOGLE_CES only.
819
+ */
820
+ googleCes: Data.GoogleCes | null;
821
+ /**
822
+ * Set for KORE only.
823
+ */
824
+ kore: Data.Kore | null;
825
+ /**
826
+ * Set for LIVEKIT only.
827
+ */
828
+ livekit: Data.Livekit | null;
829
+ name: string;
830
+ /**
831
+ * Set for the Pipecat providers only. Secrets are reported only as present or
832
+ * absent.
833
+ */
834
+ pipecat: Data.Pipecat | null;
835
+ /**
836
+ * The platform the agents run on. LIVEKIT is LiveKit Cloud; LIVEKIT_SELF_HOSTED is
837
+ * the LiveKit Agents SDK reporting through the Roark plugin.
838
+ * PIPECAT_CLOUD_INTEGRATION and PIPECAT_SELF_HOSTED_INTEGRATION are Pipecat Cloud
839
+ * and a self-hosted Pipecat bot. `GET /v1/connections/agent/providers` describes
840
+ * what each one needs.
841
+ */
842
+ provider: 'RETELL' | 'VAPI' | 'ELEVEN_LABS' | 'BLAND' | 'LEAPING' | 'LIVEKIT' | 'LIVEKIT_SELF_HOSTED' | 'PIPECAT_CLOUD_INTEGRATION' | 'PIPECAT_SELF_HOSTED_INTEGRATION' | 'KORE' | 'GOOGLE_CES';
843
+ samplingRate: number;
844
+ /**
845
+ * INACTIVE pauses syncing and call import without deleting anything.
846
+ */
847
+ status: 'ACTIVE' | 'INACTIVE';
848
+ /**
849
+ * The latest scheduled sync. Null for platforms that report calls themselves
850
+ * rather than being pulled.
851
+ */
852
+ sync: Data.Sync | null;
853
+ /**
854
+ * Agents the latest sync could not bring in, and why. Empty when the sync is
855
+ * healthy.
856
+ */
857
+ syncProblems: Array<Data.SyncProblem>;
858
+ /**
859
+ * ISO 8601
860
+ */
861
+ updatedAt: string | null;
862
+ /**
863
+ * Set for VAPI only.
864
+ */
865
+ vapi: Data.Vapi | null;
866
+ }
867
+ namespace Data {
868
+ /**
869
+ * Set for GOOGLE_CES only.
870
+ */
871
+ interface GoogleCes {
872
+ appId: string;
873
+ deploymentId: string;
874
+ gcpProjectId: string;
875
+ location: string;
876
+ serviceAccountEmail: string;
877
+ versionId: string | null;
878
+ }
879
+ /**
880
+ * Set for KORE only.
881
+ */
882
+ interface Kore {
883
+ appId: string;
884
+ baseUrl: string | null;
885
+ envName: string;
886
+ }
887
+ /**
888
+ * Set for LIVEKIT only.
889
+ */
890
+ interface Livekit {
891
+ metadataEgressStrategy: 'EAGER' | 'DEFERRED';
892
+ metadataFilteringEnabled: boolean;
893
+ url: string;
894
+ }
895
+ /**
896
+ * Set for the Pipecat providers only. Secrets are reported only as present or
897
+ * absent.
898
+ */
899
+ interface Pipecat {
900
+ appendAgentId: boolean;
901
+ baseSignalingUrl: string | null;
902
+ hasAuthToken: boolean;
903
+ hasPccPublicKey: boolean;
904
+ pccRoomProperties: {
905
+ [key: string]: unknown;
906
+ } | null;
907
+ pccStartBody: {
908
+ [key: string]: unknown;
909
+ } | null;
910
+ }
911
+ /**
912
+ * The latest scheduled sync. Null for platforms that report calls themselves
913
+ * rather than being pulled.
914
+ */
915
+ interface Sync {
916
+ /**
917
+ * Agents the latest run brought in.
918
+ */
919
+ createdAgentCount: number | null;
920
+ /**
921
+ * ISO 8601
922
+ */
923
+ endedAt: string | null;
924
+ /**
925
+ * How often the connection syncs.
926
+ */
927
+ intervalMinutes: number | null;
928
+ isUpToDate: boolean | null;
929
+ /**
930
+ * ISO 8601
931
+ */
932
+ startedAt: string | null;
933
+ /**
934
+ * How the latest sync run went.
935
+ */
936
+ status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | null;
937
+ }
938
+ interface SyncProblem {
939
+ /**
940
+ * The platform's id of the agent the problem is with
941
+ */
942
+ agentId: string | null;
943
+ agentName: string | null;
944
+ /**
945
+ * ISO 8601
946
+ */
947
+ at: string;
948
+ /**
949
+ * Why the sync failed for it, such as INVALID_API_KEY or AGENT_NOT_FOUND.
950
+ */
951
+ reason: string | null;
952
+ }
953
+ /**
954
+ * Set for VAPI only.
955
+ */
956
+ interface Vapi {
957
+ outboundRequestBodyTemplate: {
958
+ [key: string]: unknown;
959
+ } | null;
960
+ }
961
+ }
962
+ }
963
+ export interface AgentConnectionListBackfillsResponse {
964
+ data: Array<AgentConnectionListBackfillsResponse.Data>;
965
+ }
966
+ export declare namespace AgentConnectionListBackfillsResponse {
967
+ /**
968
+ * An import of past calls from the platform.
969
+ */
970
+ interface Data {
971
+ id: string;
972
+ /**
973
+ * ISO 8601
974
+ */
975
+ createdAt: string;
976
+ /**
977
+ * Past calls imported so far.
978
+ */
979
+ importedCallCount: number | null;
980
+ maxCalls: number;
981
+ status: 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
982
+ }
983
+ }
984
+ export interface AgentConnectionListProvidersResponse {
985
+ data: Array<AgentConnectionListProvidersResponse.Data>;
986
+ }
987
+ export declare namespace AgentConnectionListProvidersResponse {
988
+ interface Data {
989
+ defaultCapabilities: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
990
+ /**
991
+ * How calls reach Roark. SYNC: Roark pulls them on a schedule. WEBHOOK: the
992
+ * platform sends them as rooms end. SDK: your code reports them with the returned
993
+ * `observerApiKey`. NONE: the connection is for testing only.
994
+ */
995
+ ingestion: 'SYNC' | 'WEBHOOK' | 'SDK' | 'NONE';
996
+ label: string;
997
+ /**
998
+ * Whether a project may connect more than one account. Otherwise a second create
999
+ * returns 409.
1000
+ */
1001
+ multipleConnections: boolean;
1002
+ /**
1003
+ * The platform the agents run on. LIVEKIT is LiveKit Cloud; LIVEKIT_SELF_HOSTED is
1004
+ * the LiveKit Agents SDK reporting through the Roark plugin.
1005
+ * PIPECAT_CLOUD_INTEGRATION and PIPECAT_SELF_HOSTED_INTEGRATION are Pipecat Cloud
1006
+ * and a self-hosted Pipecat bot. `GET /v1/connections/agent/providers` describes
1007
+ * what each one needs.
1008
+ */
1009
+ provider: 'RETELL' | 'VAPI' | 'ELEVEN_LABS' | 'BLAND' | 'LEAPING' | 'LIVEKIT' | 'LIVEKIT_SELF_HOSTED' | 'PIPECAT_CLOUD_INTEGRATION' | 'PIPECAT_SELF_HOSTED_INTEGRATION' | 'KORE' | 'GOOGLE_CES';
1010
+ /**
1011
+ * Create-body fields this provider requires.
1012
+ */
1013
+ requiredFields: Array<string>;
1014
+ supportedCapabilities: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1015
+ /**
1016
+ * Whether `discover` can list its agents, so a connection can be scoped by id.
1017
+ */
1018
+ supportsAgentDiscovery: boolean;
1019
+ /**
1020
+ * Whether `autoSetUpAgents` applies.
1021
+ */
1022
+ supportsAutoSetUp: boolean;
1023
+ /**
1024
+ * Whether past calls can be imported with a backfill.
1025
+ */
1026
+ supportsBackfill: boolean;
1027
+ }
1028
+ }
1029
+ export type AgentConnectionCreateParams = AgentConnectionCreateParams.AgentConnectionCreateRetell | AgentConnectionCreateParams.AgentConnectionCreateVapi | AgentConnectionCreateParams.AgentConnectionCreateElevenLabs | AgentConnectionCreateParams.AgentConnectionCreateBland | AgentConnectionCreateParams.AgentConnectionCreateLeaping | AgentConnectionCreateParams.AgentConnectionCreateLivekit | AgentConnectionCreateParams.AgentConnectionCreateLivekitSelfHosted | AgentConnectionCreateParams.AgentConnectionCreatePipecatSelfHosted | AgentConnectionCreateParams.AgentConnectionCreatePipecatCloud | AgentConnectionCreateParams.AgentConnectionCreateKore | AgentConnectionCreateParams.AgentConnectionCreateGoogleCes;
1030
+ export declare namespace AgentConnectionCreateParams {
1031
+ interface AgentConnectionCreateRetell {
1032
+ /**
1033
+ * The platform's API key. Checked against the platform before anything is stored.
1034
+ * Stored encrypted and never returned.
1035
+ */
1036
+ apiKey: string;
1037
+ /**
1038
+ * What the connection is called in Roark. At least 3 characters.
1039
+ */
1040
+ name: string;
1041
+ provider: 'RETELL';
1042
+ /**
1043
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1044
+ * `POST /v1/connections/agent/discover` lists them.
1045
+ */
1046
+ agentIds?: Array<string>;
1047
+ /**
1048
+ * Agents to create by name rather than by id, for agents the platform does not
1049
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1050
+ */
1051
+ agentNames?: Array<string>;
1052
+ /**
1053
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1054
+ * `agentNames`.
1055
+ */
1056
+ agentScope?: 'ALL' | 'SELECTED';
1057
+ /**
1058
+ * When true, every agent this connection brings in is set up for testing as it
1059
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1060
+ * agent up by hand. Defaults to false.
1061
+ */
1062
+ autoSetUpAgents?: boolean;
1063
+ /**
1064
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1065
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1066
+ */
1067
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1068
+ /**
1069
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1070
+ * (every call).
1071
+ */
1072
+ samplingRate?: number;
1073
+ }
1074
+ interface AgentConnectionCreateVapi {
1075
+ /**
1076
+ * The platform's API key. Checked against the platform before anything is stored.
1077
+ * Stored encrypted and never returned.
1078
+ */
1079
+ apiKey: string;
1080
+ /**
1081
+ * What the connection is called in Roark. At least 3 characters.
1082
+ */
1083
+ name: string;
1084
+ provider: 'VAPI';
1085
+ /**
1086
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1087
+ * `POST /v1/connections/agent/discover` lists them.
1088
+ */
1089
+ agentIds?: Array<string>;
1090
+ /**
1091
+ * Agents to create by name rather than by id, for agents the platform does not
1092
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1093
+ */
1094
+ agentNames?: Array<string>;
1095
+ /**
1096
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1097
+ * `agentNames`.
1098
+ */
1099
+ agentScope?: 'ALL' | 'SELECTED';
1100
+ /**
1101
+ * When true, every agent this connection brings in is set up for testing as it
1102
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1103
+ * agent up by hand. Defaults to false.
1104
+ */
1105
+ autoSetUpAgents?: boolean;
1106
+ /**
1107
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1108
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1109
+ */
1110
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1111
+ /**
1112
+ * Assistant overrides Roark merges into the request when it asks Vapi to place an
1113
+ * outbound test call.
1114
+ */
1115
+ outboundRequestBodyTemplate?: {
1116
+ [key: string]: unknown;
1117
+ } | null;
1118
+ /**
1119
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1120
+ * (every call).
1121
+ */
1122
+ samplingRate?: number;
1123
+ }
1124
+ interface AgentConnectionCreateElevenLabs {
1125
+ /**
1126
+ * The platform's API key. Checked against the platform before anything is stored.
1127
+ * Stored encrypted and never returned.
1128
+ */
1129
+ apiKey: string;
1130
+ /**
1131
+ * What the connection is called in Roark. At least 3 characters.
1132
+ */
1133
+ name: string;
1134
+ provider: 'ELEVEN_LABS';
1135
+ /**
1136
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1137
+ * `POST /v1/connections/agent/discover` lists them.
1138
+ */
1139
+ agentIds?: Array<string>;
1140
+ /**
1141
+ * Agents to create by name rather than by id, for agents the platform does not
1142
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1143
+ */
1144
+ agentNames?: Array<string>;
1145
+ /**
1146
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1147
+ * `agentNames`.
1148
+ */
1149
+ agentScope?: 'ALL' | 'SELECTED';
1150
+ /**
1151
+ * When true, every agent this connection brings in is set up for testing as it
1152
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1153
+ * agent up by hand. Defaults to false.
1154
+ */
1155
+ autoSetUpAgents?: boolean;
1156
+ /**
1157
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1158
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1159
+ */
1160
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1161
+ /**
1162
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1163
+ * (every call).
1164
+ */
1165
+ samplingRate?: number;
1166
+ }
1167
+ interface AgentConnectionCreateBland {
1168
+ /**
1169
+ * The platform's API key. Checked against the platform before anything is stored.
1170
+ * Stored encrypted and never returned.
1171
+ */
1172
+ apiKey: string;
1173
+ /**
1174
+ * What the connection is called in Roark. At least 3 characters.
1175
+ */
1176
+ name: string;
1177
+ provider: 'BLAND';
1178
+ /**
1179
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1180
+ * `POST /v1/connections/agent/discover` lists them.
1181
+ */
1182
+ agentIds?: Array<string>;
1183
+ /**
1184
+ * Agents to create by name rather than by id, for agents the platform does not
1185
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1186
+ */
1187
+ agentNames?: Array<string>;
1188
+ /**
1189
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1190
+ * `agentNames`.
1191
+ */
1192
+ agentScope?: 'ALL' | 'SELECTED';
1193
+ /**
1194
+ * When true, every agent this connection brings in is set up for testing as it
1195
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1196
+ * agent up by hand. Defaults to false.
1197
+ */
1198
+ autoSetUpAgents?: boolean;
1199
+ /**
1200
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1201
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1202
+ */
1203
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1204
+ /**
1205
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1206
+ * (every call).
1207
+ */
1208
+ samplingRate?: number;
1209
+ }
1210
+ interface AgentConnectionCreateLeaping {
1211
+ /**
1212
+ * The Leaping agent ids to import calls for. Leaping does not list agents, so name
1213
+ * each one.
1214
+ */
1215
+ agentIds: Array<string>;
1216
+ /**
1217
+ * The platform's API key. Checked against the platform before anything is stored.
1218
+ * Stored encrypted and never returned.
1219
+ */
1220
+ apiKey: string;
1221
+ /**
1222
+ * What the connection is called in Roark. At least 3 characters.
1223
+ */
1224
+ name: string;
1225
+ provider: 'LEAPING';
1226
+ /**
1227
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1228
+ * (every call).
1229
+ */
1230
+ samplingRate?: number;
1231
+ }
1232
+ interface AgentConnectionCreateLivekit {
1233
+ /**
1234
+ * LiveKit API key. Stored encrypted and never returned.
1235
+ */
1236
+ apiKey: string;
1237
+ /**
1238
+ * LiveKit API secret. Stored encrypted and never returned.
1239
+ */
1240
+ apiSecret: string;
1241
+ /**
1242
+ * What the connection is called in Roark. At least 3 characters.
1243
+ */
1244
+ name: string;
1245
+ provider: 'LIVEKIT';
1246
+ /**
1247
+ * Your LiveKit server URL.
1248
+ */
1249
+ url: string;
1250
+ /**
1251
+ * Agents to create by name rather than by id, for agents the platform does not
1252
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1253
+ */
1254
+ agentNames?: Array<string>;
1255
+ /**
1256
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1257
+ * `agentNames`.
1258
+ */
1259
+ agentScope?: 'ALL' | 'SELECTED';
1260
+ /**
1261
+ * When true, every agent this connection brings in is set up for testing as it
1262
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1263
+ * agent up by hand. Defaults to false.
1264
+ */
1265
+ autoSetUpAgents?: boolean;
1266
+ /**
1267
+ * Creates a LiveKit endpoint for each agent the connection brings in, so Roark can
1268
+ * place test calls to it. Omit to create none; endpoints can be added later on the
1269
+ * agent.
1270
+ */
1271
+ endpoint?: AgentConnectionCreateLivekit.Endpoint;
1272
+ /**
1273
+ * When the recording starts for a marked room. EAGER starts it at room creation;
1274
+ * DEFERRED waits for the metadata. Needs `metadataFilteringEnabled`. Defaults to
1275
+ * DEFERRED.
1276
+ */
1277
+ metadataEgressStrategy?: 'EAGER' | 'DEFERRED';
1278
+ /**
1279
+ * Only import rooms whose metadata marks them for Roark. Defaults to false.
1280
+ */
1281
+ metadataFilteringEnabled?: boolean;
1282
+ /**
1283
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1284
+ * (every call).
1285
+ */
1286
+ samplingRate?: number;
1287
+ }
1288
+ namespace AgentConnectionCreateLivekit {
1289
+ /**
1290
+ * Creates a LiveKit endpoint for each agent the connection brings in, so Roark can
1291
+ * place test calls to it. Omit to create none; endpoints can be added later on the
1292
+ * agent.
1293
+ */
1294
+ interface Endpoint {
1295
+ /**
1296
+ * True to let Roark create the LiveKit room for each test call. False to have
1297
+ * Roark call `roomCreationUrl`, which creates the room and returns its connection
1298
+ * details.
1299
+ */
1300
+ autoCreateRoom: boolean;
1301
+ /**
1302
+ * Room metadata Roark sets when it creates the room. Only used with
1303
+ * `autoCreateRoom`.
1304
+ */
1305
+ autoCreateRoomMetadata?: {
1306
+ [key: string]: unknown;
1307
+ } | null;
1308
+ /**
1309
+ * Environment label for the endpoints.
1310
+ */
1311
+ environment?: string;
1312
+ /**
1313
+ * Your endpoint that creates a room for a test call. Required when
1314
+ * `autoCreateRoom` is false.
1315
+ */
1316
+ roomCreationUrl?: string | null;
1317
+ }
1318
+ }
1319
+ interface AgentConnectionCreateLivekitSelfHosted {
1320
+ /**
1321
+ * What the connection is called in Roark. At least 3 characters.
1322
+ */
1323
+ name: string;
1324
+ provider: 'LIVEKIT_SELF_HOSTED';
1325
+ /**
1326
+ * Name for the Roark API key minted for your SDK to report calls with. Defaults to
1327
+ * the connection name plus "SDK".
1328
+ */
1329
+ observerApiKeyName?: string;
1330
+ /**
1331
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1332
+ * (every call).
1333
+ */
1334
+ samplingRate?: number;
1335
+ }
1336
+ interface AgentConnectionCreatePipecatSelfHosted {
1337
+ /**
1338
+ * What the connection is called in Roark. At least 3 characters.
1339
+ */
1340
+ name: string;
1341
+ provider: 'PIPECAT_SELF_HOSTED_INTEGRATION';
1342
+ /**
1343
+ * Append the agent's name to the signaling URL, for one server hosting several
1344
+ * bots. Defaults to true.
1345
+ */
1346
+ appendAgentId?: boolean;
1347
+ /**
1348
+ * Bearer token Roark sends to the signaling URL. Stored encrypted and never
1349
+ * returned. Null clears it.
1350
+ */
1351
+ authToken?: string | null;
1352
+ /**
1353
+ * Your bot's SmallWebRTC signaling URL. Set it to let Roark place test calls to
1354
+ * the bot; omit for call import only.
1355
+ */
1356
+ baseSignalingUrl?: string;
1357
+ /**
1358
+ * Name for the Roark API key minted for your SDK to report calls with. Defaults to
1359
+ * the connection name plus "SDK".
1360
+ */
1361
+ observerApiKeyName?: string;
1362
+ /**
1363
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1364
+ * (every call).
1365
+ */
1366
+ samplingRate?: number;
1367
+ }
1368
+ interface AgentConnectionCreatePipecatCloud {
1369
+ /**
1370
+ * What the connection is called in Roark. At least 3 characters.
1371
+ */
1372
+ name: string;
1373
+ provider: 'PIPECAT_CLOUD_INTEGRATION';
1374
+ /**
1375
+ * Name for the Roark API key minted for your SDK to report calls with. Defaults to
1376
+ * the connection name plus "SDK".
1377
+ */
1378
+ observerApiKeyName?: string;
1379
+ /**
1380
+ * Pipecat Cloud public API key. Set it to let Roark place test calls through
1381
+ * Pipecat Cloud; omit for call import only. Stored encrypted and never returned.
1382
+ */
1383
+ pccPublicKey?: string;
1384
+ /**
1385
+ * Daily room properties for test calls.
1386
+ */
1387
+ pccRoomProperties?: {
1388
+ [key: string]: unknown;
1389
+ } | null;
1390
+ /**
1391
+ * Body Roark sends when starting a session.
1392
+ */
1393
+ pccStartBody?: {
1394
+ [key: string]: unknown;
1395
+ } | null;
1396
+ /**
1397
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1398
+ * (every call).
1399
+ */
1400
+ samplingRate?: number;
1401
+ }
1402
+ interface AgentConnectionCreateKore {
1403
+ /**
1404
+ * Kore AI API key. Stored encrypted and never returned.
1405
+ */
1406
+ apiKey: string;
1407
+ appId: string;
1408
+ envName: string;
1409
+ /**
1410
+ * What the connection is called in Roark. At least 3 characters.
1411
+ */
1412
+ name: string;
1413
+ provider: 'KORE';
1414
+ /**
1415
+ * Kore AI platform URL, when not the default.
1416
+ */
1417
+ baseUrl?: string | null;
1418
+ }
1419
+ interface AgentConnectionCreateGoogleCes {
1420
+ appId: string;
1421
+ deploymentId: string;
1422
+ location: string;
1423
+ /**
1424
+ * What the connection is called in Roark. At least 3 characters.
1425
+ */
1426
+ name: string;
1427
+ provider: 'GOOGLE_CES';
1428
+ /**
1429
+ * The Workload Identity Federation credential file (`type: external_account`)
1430
+ * exactly as Google generates it. Stored encrypted and never returned.
1431
+ */
1432
+ wifConfig: AgentConnectionCreateGoogleCes.WifConfig;
1433
+ /**
1434
+ * Pin a version. Omit to use whatever version the deployment serves.
1435
+ */
1436
+ versionId?: string | null;
1437
+ }
1438
+ namespace AgentConnectionCreateGoogleCes {
1439
+ /**
1440
+ * The Workload Identity Federation credential file (`type: external_account`)
1441
+ * exactly as Google generates it. Stored encrypted and never returned.
1442
+ */
1443
+ interface WifConfig {
1444
+ audience: string;
1445
+ credential_source: WifConfig.CredentialSource;
1446
+ service_account_impersonation_url: string;
1447
+ subject_token_type: string;
1448
+ token_url: string;
1449
+ type: 'external_account';
1450
+ universe_domain?: string;
1451
+ }
1452
+ namespace WifConfig {
1453
+ interface CredentialSource {
1454
+ environment_id: string;
1455
+ region_url: string;
1456
+ regional_cred_verification_url: string;
1457
+ url: string;
1458
+ }
1459
+ }
1460
+ }
1461
+ }
1462
+ export type AgentConnectionUpdateParams = AgentConnectionUpdateParams.AgentConnectionUpdateRetell | AgentConnectionUpdateParams.AgentConnectionUpdateVapi | AgentConnectionUpdateParams.AgentConnectionUpdateElevenLabs | AgentConnectionUpdateParams.AgentConnectionUpdateBland | AgentConnectionUpdateParams.AgentConnectionUpdateLeaping | AgentConnectionUpdateParams.AgentConnectionUpdateLivekit | AgentConnectionUpdateParams.AgentConnectionUpdateLivekitSelfHosted | AgentConnectionUpdateParams.AgentConnectionUpdatePipecatSelfHosted | AgentConnectionUpdateParams.AgentConnectionUpdatePipecatCloud | AgentConnectionUpdateParams.AgentConnectionUpdateKore | AgentConnectionUpdateParams.AgentConnectionUpdateGoogleCes;
1463
+ export declare namespace AgentConnectionUpdateParams {
1464
+ interface AgentConnectionUpdateRetell {
1465
+ /**
1466
+ * The connection's provider. It cannot change.
1467
+ */
1468
+ provider: 'RETELL';
1469
+ /**
1470
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1471
+ * `POST /v1/connections/agent/discover` lists them.
1472
+ */
1473
+ agentIds?: Array<string>;
1474
+ /**
1475
+ * Agents to create by name rather than by id, for agents the platform does not
1476
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1477
+ */
1478
+ agentNames?: Array<string>;
1479
+ /**
1480
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1481
+ * `agentNames`.
1482
+ */
1483
+ agentScope?: 'ALL' | 'SELECTED';
1484
+ /**
1485
+ * The platform's API key. Checked against the platform before anything is stored.
1486
+ * Stored encrypted and never returned.
1487
+ */
1488
+ apiKey?: string;
1489
+ /**
1490
+ * When true, every agent this connection brings in is set up for testing as it
1491
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1492
+ * agent up by hand. Defaults to false.
1493
+ */
1494
+ autoSetUpAgents?: boolean;
1495
+ /**
1496
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1497
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1498
+ */
1499
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1500
+ /**
1501
+ * What the connection is called in Roark. At least 3 characters.
1502
+ */
1503
+ name?: string;
1504
+ /**
1505
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1506
+ * (every call).
1507
+ */
1508
+ samplingRate?: number;
1509
+ /**
1510
+ * INACTIVE pauses syncing and call import without deleting anything.
1511
+ */
1512
+ status?: 'ACTIVE' | 'INACTIVE';
1513
+ }
1514
+ interface AgentConnectionUpdateVapi {
1515
+ /**
1516
+ * The connection's provider. It cannot change.
1517
+ */
1518
+ provider: 'VAPI';
1519
+ /**
1520
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1521
+ * `POST /v1/connections/agent/discover` lists them.
1522
+ */
1523
+ agentIds?: Array<string>;
1524
+ /**
1525
+ * Agents to create by name rather than by id, for agents the platform does not
1526
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1527
+ */
1528
+ agentNames?: Array<string>;
1529
+ /**
1530
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1531
+ * `agentNames`.
1532
+ */
1533
+ agentScope?: 'ALL' | 'SELECTED';
1534
+ /**
1535
+ * The platform's API key. Checked against the platform before anything is stored.
1536
+ * Stored encrypted and never returned.
1537
+ */
1538
+ apiKey?: string;
1539
+ /**
1540
+ * When true, every agent this connection brings in is set up for testing as it
1541
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1542
+ * agent up by hand. Defaults to false.
1543
+ */
1544
+ autoSetUpAgents?: boolean;
1545
+ /**
1546
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1547
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1548
+ */
1549
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1550
+ /**
1551
+ * What the connection is called in Roark. At least 3 characters.
1552
+ */
1553
+ name?: string;
1554
+ /**
1555
+ * Assistant overrides Roark merges into the request when it asks Vapi to place an
1556
+ * outbound test call.
1557
+ */
1558
+ outboundRequestBodyTemplate?: {
1559
+ [key: string]: unknown;
1560
+ } | null;
1561
+ /**
1562
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1563
+ * (every call).
1564
+ */
1565
+ samplingRate?: number;
1566
+ /**
1567
+ * INACTIVE pauses syncing and call import without deleting anything.
1568
+ */
1569
+ status?: 'ACTIVE' | 'INACTIVE';
1570
+ }
1571
+ interface AgentConnectionUpdateElevenLabs {
1572
+ /**
1573
+ * The connection's provider. It cannot change.
1574
+ */
1575
+ provider: 'ELEVEN_LABS';
1576
+ /**
1577
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1578
+ * `POST /v1/connections/agent/discover` lists them.
1579
+ */
1580
+ agentIds?: Array<string>;
1581
+ /**
1582
+ * Agents to create by name rather than by id, for agents the platform does not
1583
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1584
+ */
1585
+ agentNames?: Array<string>;
1586
+ /**
1587
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1588
+ * `agentNames`.
1589
+ */
1590
+ agentScope?: 'ALL' | 'SELECTED';
1591
+ /**
1592
+ * The platform's API key. Checked against the platform before anything is stored.
1593
+ * Stored encrypted and never returned.
1594
+ */
1595
+ apiKey?: string;
1596
+ /**
1597
+ * When true, every agent this connection brings in is set up for testing as it
1598
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1599
+ * agent up by hand. Defaults to false.
1600
+ */
1601
+ autoSetUpAgents?: boolean;
1602
+ /**
1603
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1604
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1605
+ */
1606
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1607
+ /**
1608
+ * What the connection is called in Roark. At least 3 characters.
1609
+ */
1610
+ name?: string;
1611
+ /**
1612
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1613
+ * (every call).
1614
+ */
1615
+ samplingRate?: number;
1616
+ /**
1617
+ * INACTIVE pauses syncing and call import without deleting anything.
1618
+ */
1619
+ status?: 'ACTIVE' | 'INACTIVE';
1620
+ }
1621
+ interface AgentConnectionUpdateBland {
1622
+ /**
1623
+ * The connection's provider. It cannot change.
1624
+ */
1625
+ provider: 'BLAND';
1626
+ /**
1627
+ * The platform's own ids of the agents to bring in when `agentScope` is SELECTED.
1628
+ * `POST /v1/connections/agent/discover` lists them.
1629
+ */
1630
+ agentIds?: Array<string>;
1631
+ /**
1632
+ * Agents to create by name rather than by id, for agents the platform does not
1633
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1634
+ */
1635
+ agentNames?: Array<string>;
1636
+ /**
1637
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1638
+ * `agentNames`.
1639
+ */
1640
+ agentScope?: 'ALL' | 'SELECTED';
1641
+ /**
1642
+ * The platform's API key. Checked against the platform before anything is stored.
1643
+ * Stored encrypted and never returned.
1644
+ */
1645
+ apiKey?: string;
1646
+ /**
1647
+ * When true, every agent this connection brings in is set up for testing as it
1648
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1649
+ * agent up by hand. Defaults to false.
1650
+ */
1651
+ autoSetUpAgents?: boolean;
1652
+ /**
1653
+ * What the connection does. Defaults to PULL_AGENTS and PULL_CALLS, plus
1654
+ * PUSH_AGENT_CONFIG on Retell, Vapi and ElevenLabs.
1655
+ */
1656
+ capabilities?: Array<'PULL_AGENTS' | 'PULL_CALLS' | 'PUSH_AGENT_CONFIG'>;
1657
+ /**
1658
+ * What the connection is called in Roark. At least 3 characters.
1659
+ */
1660
+ name?: string;
1661
+ /**
1662
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1663
+ * (every call).
1664
+ */
1665
+ samplingRate?: number;
1666
+ /**
1667
+ * INACTIVE pauses syncing and call import without deleting anything.
1668
+ */
1669
+ status?: 'ACTIVE' | 'INACTIVE';
1670
+ }
1671
+ interface AgentConnectionUpdateLeaping {
1672
+ /**
1673
+ * The connection's provider. It cannot change.
1674
+ */
1675
+ provider: 'LEAPING';
1676
+ /**
1677
+ * The Leaping agent ids to import calls for. Leaping does not list agents, so name
1678
+ * each one.
1679
+ */
1680
+ agentIds?: Array<string>;
1681
+ /**
1682
+ * The platform's API key. Checked against the platform before anything is stored.
1683
+ * Stored encrypted and never returned.
1684
+ */
1685
+ apiKey?: string;
1686
+ /**
1687
+ * What the connection is called in Roark. At least 3 characters.
1688
+ */
1689
+ name?: string;
1690
+ /**
1691
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1692
+ * (every call).
1693
+ */
1694
+ samplingRate?: number;
1695
+ /**
1696
+ * INACTIVE pauses syncing and call import without deleting anything.
1697
+ */
1698
+ status?: 'ACTIVE' | 'INACTIVE';
1699
+ }
1700
+ interface AgentConnectionUpdateLivekit {
1701
+ /**
1702
+ * The connection's provider. It cannot change.
1703
+ */
1704
+ provider: 'LIVEKIT';
1705
+ /**
1706
+ * Agents to create by name rather than by id, for agents the platform does not
1707
+ * list. On LiveKit Cloud this is the agent name your worker dispatches as.
1708
+ */
1709
+ agentNames?: Array<string>;
1710
+ /**
1711
+ * ALL brings in every agent on the account. SELECTED brings in only `agentIds` and
1712
+ * `agentNames`.
1713
+ */
1714
+ agentScope?: 'ALL' | 'SELECTED';
1715
+ /**
1716
+ * LiveKit API key. Stored encrypted and never returned.
1717
+ */
1718
+ apiKey?: string;
1719
+ /**
1720
+ * LiveKit API secret. Stored encrypted and never returned.
1721
+ */
1722
+ apiSecret?: string;
1723
+ /**
1724
+ * When true, every agent this connection brings in is set up for testing as it
1725
+ * arrives: Roark drafts its customer flows and metrics, the same as setting the
1726
+ * agent up by hand. Defaults to false.
1727
+ */
1728
+ autoSetUpAgents?: boolean;
1729
+ /**
1730
+ * When the recording starts for a marked room. EAGER starts it at room creation;
1731
+ * DEFERRED waits for the metadata. Needs `metadataFilteringEnabled`. Defaults to
1732
+ * DEFERRED.
1733
+ */
1734
+ metadataEgressStrategy?: 'EAGER' | 'DEFERRED';
1735
+ /**
1736
+ * Only import rooms whose metadata marks them for Roark. Defaults to false.
1737
+ */
1738
+ metadataFilteringEnabled?: boolean;
1739
+ /**
1740
+ * What the connection is called in Roark. At least 3 characters.
1741
+ */
1742
+ name?: string;
1743
+ /**
1744
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1745
+ * (every call).
1746
+ */
1747
+ samplingRate?: number;
1748
+ /**
1749
+ * INACTIVE pauses syncing and call import without deleting anything.
1750
+ */
1751
+ status?: 'ACTIVE' | 'INACTIVE';
1752
+ /**
1753
+ * Your LiveKit server URL.
1754
+ */
1755
+ url?: string;
1756
+ }
1757
+ interface AgentConnectionUpdateLivekitSelfHosted {
1758
+ /**
1759
+ * The connection's provider. It cannot change.
1760
+ */
1761
+ provider: 'LIVEKIT_SELF_HOSTED';
1762
+ /**
1763
+ * What the connection is called in Roark. At least 3 characters.
1764
+ */
1765
+ name?: string;
1766
+ /**
1767
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1768
+ * (every call).
1769
+ */
1770
+ samplingRate?: number;
1771
+ /**
1772
+ * INACTIVE pauses syncing and call import without deleting anything.
1773
+ */
1774
+ status?: 'ACTIVE' | 'INACTIVE';
1775
+ }
1776
+ interface AgentConnectionUpdatePipecatSelfHosted {
1777
+ /**
1778
+ * The connection's provider. It cannot change.
1779
+ */
1780
+ provider: 'PIPECAT_SELF_HOSTED_INTEGRATION';
1781
+ /**
1782
+ * Append the agent's name to the signaling URL, for one server hosting several
1783
+ * bots. Defaults to true.
1784
+ */
1785
+ appendAgentId?: boolean;
1786
+ /**
1787
+ * Bearer token Roark sends to the signaling URL. Stored encrypted and never
1788
+ * returned. Null clears it.
1789
+ */
1790
+ authToken?: string | null;
1791
+ /**
1792
+ * Your bot's SmallWebRTC signaling URL. Set it to let Roark place test calls to
1793
+ * the bot; omit for call import only.
1794
+ */
1795
+ baseSignalingUrl?: string;
1796
+ /**
1797
+ * What the connection is called in Roark. At least 3 characters.
1798
+ */
1799
+ name?: string;
1800
+ /**
1801
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1802
+ * (every call).
1803
+ */
1804
+ samplingRate?: number;
1805
+ /**
1806
+ * INACTIVE pauses syncing and call import without deleting anything.
1807
+ */
1808
+ status?: 'ACTIVE' | 'INACTIVE';
1809
+ }
1810
+ interface AgentConnectionUpdatePipecatCloud {
1811
+ /**
1812
+ * The connection's provider. It cannot change.
1813
+ */
1814
+ provider: 'PIPECAT_CLOUD_INTEGRATION';
1815
+ /**
1816
+ * What the connection is called in Roark. At least 3 characters.
1817
+ */
1818
+ name?: string;
1819
+ /**
1820
+ * Pipecat Cloud public API key. Set it to let Roark place test calls through
1821
+ * Pipecat Cloud; omit for call import only. Stored encrypted and never returned.
1822
+ */
1823
+ pccPublicKey?: string;
1824
+ /**
1825
+ * Daily room properties for test calls.
1826
+ */
1827
+ pccRoomProperties?: {
1828
+ [key: string]: unknown;
1829
+ } | null;
1830
+ /**
1831
+ * Body Roark sends when starting a session.
1832
+ */
1833
+ pccStartBody?: {
1834
+ [key: string]: unknown;
1835
+ } | null;
1836
+ /**
1837
+ * Fraction of production calls to import and analyse, from 0 to 1. Defaults to 1
1838
+ * (every call).
1839
+ */
1840
+ samplingRate?: number;
1841
+ /**
1842
+ * INACTIVE pauses syncing and call import without deleting anything.
1843
+ */
1844
+ status?: 'ACTIVE' | 'INACTIVE';
1845
+ }
1846
+ interface AgentConnectionUpdateKore {
1847
+ /**
1848
+ * The connection's provider. It cannot change.
1849
+ */
1850
+ provider: 'KORE';
1851
+ /**
1852
+ * Kore AI API key. Stored encrypted and never returned.
1853
+ */
1854
+ apiKey?: string;
1855
+ appId?: string;
1856
+ /**
1857
+ * Kore AI platform URL, when not the default.
1858
+ */
1859
+ baseUrl?: string | null;
1860
+ envName?: string;
1861
+ /**
1862
+ * What the connection is called in Roark. At least 3 characters.
1863
+ */
1864
+ name?: string;
1865
+ /**
1866
+ * INACTIVE pauses syncing and call import without deleting anything.
1867
+ */
1868
+ status?: 'ACTIVE' | 'INACTIVE';
1869
+ }
1870
+ interface AgentConnectionUpdateGoogleCes {
1871
+ /**
1872
+ * The connection's provider. It cannot change.
1873
+ */
1874
+ provider: 'GOOGLE_CES';
1875
+ appId?: string;
1876
+ deploymentId?: string;
1877
+ location?: string;
1878
+ /**
1879
+ * What the connection is called in Roark. At least 3 characters.
1880
+ */
1881
+ name?: string;
1882
+ /**
1883
+ * INACTIVE pauses syncing and call import without deleting anything.
1884
+ */
1885
+ status?: 'ACTIVE' | 'INACTIVE';
1886
+ /**
1887
+ * Pin a version. Omit to use whatever version the deployment serves.
1888
+ */
1889
+ versionId?: string | null;
1890
+ /**
1891
+ * The Workload Identity Federation credential file (`type: external_account`)
1892
+ * exactly as Google generates it. Stored encrypted and never returned.
1893
+ */
1894
+ wifConfig?: AgentConnectionUpdateGoogleCes.WifConfig;
1895
+ }
1896
+ namespace AgentConnectionUpdateGoogleCes {
1897
+ /**
1898
+ * The Workload Identity Federation credential file (`type: external_account`)
1899
+ * exactly as Google generates it. Stored encrypted and never returned.
1900
+ */
1901
+ interface WifConfig {
1902
+ audience: string;
1903
+ credential_source: WifConfig.CredentialSource;
1904
+ service_account_impersonation_url: string;
1905
+ subject_token_type: string;
1906
+ token_url: string;
1907
+ type: 'external_account';
1908
+ universe_domain?: string;
1909
+ }
1910
+ namespace WifConfig {
1911
+ interface CredentialSource {
1912
+ environment_id: string;
1913
+ region_url: string;
1914
+ regional_cred_verification_url: string;
1915
+ url: string;
1916
+ }
1917
+ }
1918
+ }
1919
+ }
1920
+ export interface AgentConnectionListParams {
1921
+ /**
1922
+ * The platform the agents run on. LIVEKIT is LiveKit Cloud; LIVEKIT_SELF_HOSTED is
1923
+ * the LiveKit Agents SDK reporting through the Roark plugin.
1924
+ * PIPECAT_CLOUD_INTEGRATION and PIPECAT_SELF_HOSTED_INTEGRATION are Pipecat Cloud
1925
+ * and a self-hosted Pipecat bot. `GET /v1/connections/agent/providers` describes
1926
+ * what each one needs.
1927
+ */
1928
+ provider?: 'RETELL' | 'VAPI' | 'ELEVEN_LABS' | 'BLAND' | 'LEAPING' | 'LIVEKIT' | 'LIVEKIT_SELF_HOSTED' | 'PIPECAT_CLOUD_INTEGRATION' | 'PIPECAT_SELF_HOSTED_INTEGRATION' | 'KORE' | 'GOOGLE_CES';
1929
+ }
1930
+ export interface AgentConnectionCancelBackfillParams {
1931
+ connectionId: string;
1932
+ }
1933
+ export interface AgentConnectionCreateBackfillParams {
1934
+ /**
1935
+ * How many of the most recent past calls to import, up to 1000.
1936
+ */
1937
+ maxCalls: number;
1938
+ }
1939
+ export interface AgentConnectionDiscoverParams {
1940
+ /**
1941
+ * The platform API key to list agents with. Stored nowhere.
1942
+ */
1943
+ apiKey: string;
1944
+ /**
1945
+ * Platforms whose agents can be listed with a key.
1946
+ */
1947
+ provider: 'RETELL' | 'VAPI' | 'ELEVEN_LABS' | 'BLAND';
1948
+ }
1949
+ export declare namespace AgentConnection {
1950
+ export { type AgentConnectionCreateResponse as AgentConnectionCreateResponse, type AgentConnectionUpdateResponse as AgentConnectionUpdateResponse, type AgentConnectionListResponse as AgentConnectionListResponse, type AgentConnectionDeleteResponse as AgentConnectionDeleteResponse, type AgentConnectionCancelBackfillResponse as AgentConnectionCancelBackfillResponse, type AgentConnectionCreateBackfillResponse as AgentConnectionCreateBackfillResponse, type AgentConnectionDiscoverResponse as AgentConnectionDiscoverResponse, type AgentConnectionGetByIDResponse as AgentConnectionGetByIDResponse, type AgentConnectionListBackfillsResponse as AgentConnectionListBackfillsResponse, type AgentConnectionListProvidersResponse as AgentConnectionListProvidersResponse, type AgentConnectionCreateParams as AgentConnectionCreateParams, type AgentConnectionUpdateParams as AgentConnectionUpdateParams, type AgentConnectionListParams as AgentConnectionListParams, type AgentConnectionCancelBackfillParams as AgentConnectionCancelBackfillParams, type AgentConnectionCreateBackfillParams as AgentConnectionCreateBackfillParams, type AgentConnectionDiscoverParams as AgentConnectionDiscoverParams, };
1951
+ }
1952
+ //# sourceMappingURL=agent-connection.d.ts.map