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