@epilot/sdk 2.20.78 → 2.20.80

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 (162) hide show
  1. package/definitions/integration-toolkit.json +251 -63
  2. package/definitions/journey-runtime.json +1 -1
  3. package/definitions/journey.json +399 -13
  4. package/definitions/phone-integration-runtime.json +1 -1
  5. package/definitions/phone-integration.json +651 -0
  6. package/dist/apis/access-token.cjs +6 -6
  7. package/dist/apis/access-token.js +1 -1
  8. package/dist/apis/address-suggestions.cjs +6 -6
  9. package/dist/apis/address-suggestions.js +1 -1
  10. package/dist/apis/address.cjs +6 -6
  11. package/dist/apis/address.js +1 -1
  12. package/dist/apis/ai-agents.cjs +6 -6
  13. package/dist/apis/ai-agents.js +1 -1
  14. package/dist/apis/app.cjs +6 -6
  15. package/dist/apis/app.js +1 -1
  16. package/dist/apis/audit-logs.cjs +6 -6
  17. package/dist/apis/audit-logs.js +1 -1
  18. package/dist/apis/automation.cjs +6 -6
  19. package/dist/apis/automation.js +1 -1
  20. package/dist/apis/billing.cjs +6 -6
  21. package/dist/apis/billing.js +1 -1
  22. package/dist/apis/blueprint-manifest.cjs +6 -6
  23. package/dist/apis/blueprint-manifest.js +1 -1
  24. package/dist/apis/calendar.cjs +6 -6
  25. package/dist/apis/calendar.js +1 -1
  26. package/dist/apis/chat.cjs +6 -6
  27. package/dist/apis/chat.js +1 -1
  28. package/dist/apis/configuration-hub.cjs +6 -6
  29. package/dist/apis/configuration-hub.js +1 -1
  30. package/dist/apis/consent.cjs +6 -6
  31. package/dist/apis/consent.js +1 -1
  32. package/dist/apis/customer-portal.cjs +6 -6
  33. package/dist/apis/customer-portal.js +1 -1
  34. package/dist/apis/dashboard.cjs +6 -6
  35. package/dist/apis/dashboard.js +1 -1
  36. package/dist/apis/data-governance.cjs +6 -6
  37. package/dist/apis/data-governance.js +1 -1
  38. package/dist/apis/deduplication.cjs +6 -6
  39. package/dist/apis/deduplication.js +1 -1
  40. package/dist/apis/design.cjs +6 -6
  41. package/dist/apis/design.js +1 -1
  42. package/dist/apis/document.cjs +6 -6
  43. package/dist/apis/document.js +1 -1
  44. package/dist/apis/email-settings.cjs +6 -6
  45. package/dist/apis/email-settings.js +1 -1
  46. package/dist/apis/email-template.cjs +6 -6
  47. package/dist/apis/email-template.js +1 -1
  48. package/dist/apis/entity-mapping.cjs +6 -6
  49. package/dist/apis/entity-mapping.js +1 -1
  50. package/dist/apis/entity.cjs +6 -6
  51. package/dist/apis/entity.js +1 -1
  52. package/dist/apis/environments.cjs +6 -6
  53. package/dist/apis/environments.js +1 -1
  54. package/dist/apis/event-catalog.cjs +6 -6
  55. package/dist/apis/event-catalog.js +1 -1
  56. package/dist/apis/external-values.cjs +6 -6
  57. package/dist/apis/external-values.js +1 -1
  58. package/dist/apis/file.cjs +6 -6
  59. package/dist/apis/file.js +1 -1
  60. package/dist/apis/iban.cjs +6 -6
  61. package/dist/apis/iban.js +1 -1
  62. package/dist/apis/identity.cjs +6 -6
  63. package/dist/apis/identity.js +1 -1
  64. package/dist/apis/integration-toolkit.cjs +14 -10
  65. package/dist/apis/integration-toolkit.d.cts +2 -2
  66. package/dist/apis/integration-toolkit.d.ts +2 -2
  67. package/dist/apis/integration-toolkit.js +9 -5
  68. package/dist/apis/journey.cjs +8 -8
  69. package/dist/apis/journey.d.cts +2 -2
  70. package/dist/apis/journey.d.ts +2 -2
  71. package/dist/apis/journey.js +2 -2
  72. package/dist/apis/kanban.cjs +6 -6
  73. package/dist/apis/kanban.js +1 -1
  74. package/dist/apis/message.cjs +6 -6
  75. package/dist/apis/message.js +1 -1
  76. package/dist/apis/metering.cjs +6 -6
  77. package/dist/apis/metering.js +1 -1
  78. package/dist/apis/notes.cjs +6 -6
  79. package/dist/apis/notes.js +1 -1
  80. package/dist/apis/notification.cjs +6 -6
  81. package/dist/apis/notification.js +1 -1
  82. package/dist/apis/organization.cjs +6 -6
  83. package/dist/apis/organization.js +1 -1
  84. package/dist/apis/partner-directory.cjs +6 -6
  85. package/dist/apis/partner-directory.js +1 -1
  86. package/dist/apis/permissions.cjs +6 -6
  87. package/dist/apis/permissions.js +1 -1
  88. package/dist/apis/phone-integration.cjs +8 -8
  89. package/dist/apis/phone-integration.d.cts +2 -2
  90. package/dist/apis/phone-integration.d.ts +2 -2
  91. package/dist/apis/phone-integration.js +2 -2
  92. package/dist/apis/pricing-tier.cjs +6 -6
  93. package/dist/apis/pricing-tier.js +1 -1
  94. package/dist/apis/pricing.cjs +6 -6
  95. package/dist/apis/pricing.js +1 -1
  96. package/dist/apis/purpose.cjs +6 -6
  97. package/dist/apis/purpose.js +1 -1
  98. package/dist/apis/query.cjs +6 -6
  99. package/dist/apis/query.js +1 -1
  100. package/dist/apis/sandbox.cjs +6 -6
  101. package/dist/apis/sandbox.js +1 -1
  102. package/dist/apis/sharing.cjs +6 -6
  103. package/dist/apis/sharing.js +1 -1
  104. package/dist/apis/snapshot.cjs +6 -6
  105. package/dist/apis/snapshot.js +1 -1
  106. package/dist/apis/submission.cjs +6 -6
  107. package/dist/apis/submission.js +1 -1
  108. package/dist/apis/target.cjs +6 -6
  109. package/dist/apis/target.js +1 -1
  110. package/dist/apis/targeting.cjs +6 -6
  111. package/dist/apis/targeting.js +1 -1
  112. package/dist/apis/template-variables.cjs +6 -6
  113. package/dist/apis/template-variables.js +1 -1
  114. package/dist/apis/user.cjs +6 -6
  115. package/dist/apis/user.js +1 -1
  116. package/dist/apis/validation-rules.cjs +6 -6
  117. package/dist/apis/validation-rules.js +1 -1
  118. package/dist/apis/webhooks.cjs +6 -6
  119. package/dist/apis/webhooks.js +1 -1
  120. package/dist/apis/workflow-definition.cjs +6 -6
  121. package/dist/apis/workflow-definition.js +1 -1
  122. package/dist/apis/workflow.cjs +6 -6
  123. package/dist/apis/workflow.js +1 -1
  124. package/dist/chunk-JFRRQORA.js +14 -0
  125. package/dist/{chunk-ZREXF3XS.js → chunk-KH4BRB6Z.js} +5 -5
  126. package/dist/{chunk-I3ZZES76.js → chunk-NQBHADQX.js} +1 -1
  127. package/dist/{chunk-M5Z7JYJ3.cjs → chunk-OLRBYITL.cjs} +5 -5
  128. package/dist/{chunk-QYHNZLHS.cjs → chunk-PK5IH3WQ.cjs} +1 -1
  129. package/dist/{chunk-BY76NFAX.cjs → chunk-XPQ7LBUE.cjs} +1 -1
  130. package/dist/index.cjs +12 -12
  131. package/dist/index.d.cts +3 -3
  132. package/dist/index.d.ts +3 -3
  133. package/dist/index.js +3 -3
  134. package/dist/integration-toolkit-3XNG4PL5.cjs +7 -0
  135. package/dist/integration-toolkit-VLTS5HKV.js +7 -0
  136. package/dist/{integration-toolkit.d-l5cgwHLa.d.cts → integration-toolkit.d-BGF0LVB7.d.cts} +587 -85
  137. package/dist/{integration-toolkit.d-l5cgwHLa.d.ts → integration-toolkit.d-BGF0LVB7.d.ts} +587 -85
  138. package/dist/journey-LAEXXNCD.js +7 -0
  139. package/dist/journey-RKBZQRPL.cjs +7 -0
  140. package/dist/{journey-runtime-KZUPV4XH.cjs → journey-runtime-2N77HRB6.cjs} +2 -2
  141. package/dist/{journey-runtime-AQH7EG4C.js → journey-runtime-YJ5G4IG2.js} +1 -1
  142. package/dist/{journey.d-CMtM6U3Y.d.cts → journey.d-5GpTnSld.d.cts} +261 -80
  143. package/dist/{journey.d-CMtM6U3Y.d.ts → journey.d-5GpTnSld.d.ts} +261 -80
  144. package/dist/phone-integration-5EHY236F.js +7 -0
  145. package/dist/phone-integration-C567S75X.cjs +7 -0
  146. package/dist/{phone-integration-runtime-DFA6NYNK.cjs → phone-integration-runtime-3QDC5IMK.cjs} +2 -2
  147. package/dist/{phone-integration-runtime-27B4SHA5.js → phone-integration-runtime-JWF52VHF.js} +1 -1
  148. package/dist/phone-integration.d-DJrZ4xkA.d.cts +539 -0
  149. package/dist/phone-integration.d-DJrZ4xkA.d.ts +539 -0
  150. package/docs/integration-toolkit.md +88 -270
  151. package/docs/journey.md +217 -38
  152. package/docs/phone-integration.md +293 -0
  153. package/package.json +1 -1
  154. package/dist/chunk-UFMZ4EV3.js +0 -14
  155. package/dist/integration-toolkit-FI32O7II.cjs +0 -7
  156. package/dist/integration-toolkit-MHULDW3E.js +0 -7
  157. package/dist/journey-JDIVUY7T.cjs +0 -7
  158. package/dist/journey-PBOMOJ5G.js +0 -7
  159. package/dist/phone-integration-JT2UAOGS.cjs +0 -7
  160. package/dist/phone-integration-KORLYUBG.js +0 -7
  161. package/dist/phone-integration.d-ChHA2oGI.d.cts +0 -179
  162. package/dist/phone-integration.d-ChHA2oGI.d.ts +0 -179
@@ -0,0 +1,539 @@
1
+ import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from phone-integration-client */
4
+
5
+
6
+ declare namespace Components {
7
+ namespace Responses {
8
+ export type BadGateway = Schemas.ErrorResponse;
9
+ export type BadRequest = Schemas.ErrorResponse;
10
+ export type Forbidden = Schemas.ErrorResponse;
11
+ export type ServiceUnavailable = Schemas.ErrorResponse;
12
+ export type Unauthorized = Schemas.ErrorResponse;
13
+ }
14
+ namespace Schemas {
15
+ export interface AssignPhoneAgentRequest {
16
+ /**
17
+ * epilot user id of an active member of the caller's organization
18
+ */
19
+ user_id: string; // ^[A-Za-z0-9_-]+$
20
+ }
21
+ export interface CustomerBatchSearchResult {
22
+ /**
23
+ * One result per distinct identifier
24
+ */
25
+ results: CustomerSearchResult[];
26
+ }
27
+ export interface CustomerIdentifier {
28
+ type: "id" | "customer_number" | "external_id" | "phone_number" | "email";
29
+ /**
30
+ * The identifier as sent
31
+ * example:
32
+ * +4917012345678
33
+ */
34
+ value: string;
35
+ }
36
+ export interface CustomerSearchResult {
37
+ identifier: CustomerIdentifier;
38
+ /**
39
+ * - `found` — exactly one contact has the identifier; see `customer`
40
+ * - `not_found` — no contact the caller may see has it
41
+ * - `ambiguous` — several contacts share it; none is chosen
42
+ * - `invalid` — not a usable identifier (a phone number that does
43
+ * not parse), so nothing was searched
44
+ * - `error` — the search for this identifier failed; try again
45
+ *
46
+ */
47
+ status: "found" | "not_found" | "ambiguous" | "invalid" | "error";
48
+ customer?: /* Present when `status` is `found` */ CustomerSummary;
49
+ }
50
+ /**
51
+ * Present when `status` is `found`
52
+ */
53
+ export interface CustomerSummary {
54
+ /**
55
+ * epilot entity id of the customer (Contact)
56
+ * example:
57
+ * dba8e5f9-8b3f-4608-b887-cd0798fce624
58
+ */
59
+ id: string;
60
+ /**
61
+ * The contact's title, else its first and last name; null when it has neither
62
+ * example:
63
+ * Max Mustermann
64
+ */
65
+ name: string | null;
66
+ /**
67
+ * Omitted when the contact has none
68
+ * example:
69
+ * 4711
70
+ */
71
+ customer_number?: string;
72
+ }
73
+ export interface ErrorResponse {
74
+ /**
75
+ * HTTP status code.
76
+ */
77
+ status: number;
78
+ /**
79
+ * Human-readable error message.
80
+ */
81
+ error: string;
82
+ /**
83
+ * Stable machine-readable error code, when the operation defines one.
84
+ */
85
+ code?: string;
86
+ }
87
+ export interface ManagerStatus {
88
+ /**
89
+ * Telephony provider behind this organization
90
+ */
91
+ provider: "babelforce";
92
+ /**
93
+ * Agents can be assigned
94
+ */
95
+ ready: boolean;
96
+ /**
97
+ * Why the organization is not ready (empty when ready)
98
+ */
99
+ reasons: ("provider_tenant_missing" | "sso_not_configured" | "scim_not_configured" | "identity_enablement_missing")[];
100
+ }
101
+ export interface PhoneAgent {
102
+ /**
103
+ * epilot user id
104
+ */
105
+ user_id: string;
106
+ email: string;
107
+ display_name?: string;
108
+ /**
109
+ * `active`: holds the phone and has an enabled provider user. `pending`: assigned in epilot but
110
+ * the provider user is not activated yet. `disabled`: provider user disabled. `missing_provider`:
111
+ * holds `phone:use` but no provider user is bound (assign again to repair). `missing_role`:
112
+ * assigned here, but the `phone_agent` role (`phone:use`) was removed elsewhere, e.g. in the
113
+ * users and permissions settings (assign again to restore it, or remove to deactivate the
114
+ * provider user).
115
+ *
116
+ */
117
+ status: "active" | "pending" | "disabled" | "missing_provider" | "missing_role";
118
+ /**
119
+ * The provider's id of the bound user
120
+ */
121
+ provider_user_id?: string;
122
+ provider_roles?: string[];
123
+ assigned_at?: string; // date-time
124
+ /**
125
+ * epilot user id of the manager who assigned the phone
126
+ */
127
+ assigned_by?: string;
128
+ }
129
+ export interface ProviderSetup {
130
+ provider: "babelforce";
131
+ org_id: string;
132
+ /**
133
+ * Everything below is in place
134
+ */
135
+ ready: boolean;
136
+ /**
137
+ * The provider tenant for this organization (null until created)
138
+ */
139
+ tenant: {
140
+ id: string;
141
+ name: string;
142
+ org_key: string;
143
+ created_at?: string; // date-time
144
+ } | null;
145
+ scim: {
146
+ configured: boolean;
147
+ roles_enabled: boolean;
148
+ };
149
+ sso: {
150
+ configured: boolean;
151
+ /**
152
+ * The identity-api client the tenant's SSO configuration points at
153
+ */
154
+ identity_client_id?: string;
155
+ configured_at?: string; // date-time
156
+ };
157
+ /**
158
+ * Admin-portal operator (email) who last ran the setup
159
+ */
160
+ last_setup_by?: string;
161
+ }
162
+ export interface ProviderSetupRequest {
163
+ /**
164
+ * Provider tenant name, unique across the provider (3 to 100 characters). Required the first
165
+ * time (`400` with code `account_name_required` without it); ignored once the tenant exists.
166
+ *
167
+ */
168
+ account_name?: string;
169
+ /**
170
+ * identity-api client registered for the provider (its partner application for this stage)
171
+ */
172
+ identity_client_id: string; // ^[A-Za-z0-9._~-]+$
173
+ /**
174
+ * The client's current secret, forwarded to the provider's SSO configuration and never stored
175
+ */
176
+ identity_client_secret: string;
177
+ }
178
+ }
179
+ }
180
+ declare namespace Paths {
181
+ namespace AssignPhoneAgent {
182
+ export type RequestBody = Components.Schemas.AssignPhoneAgentRequest;
183
+ namespace Responses {
184
+ export type $200 = Components.Schemas.PhoneAgent;
185
+ export type $201 = Components.Schemas.PhoneAgent;
186
+ export type $400 = Components.Responses.BadRequest;
187
+ export type $401 = Components.Responses.Unauthorized;
188
+ export type $403 = Components.Responses.Forbidden;
189
+ export type $404 = Components.Schemas.ErrorResponse;
190
+ export type $409 = Components.Schemas.ErrorResponse;
191
+ export type $502 = Components.Responses.BadGateway;
192
+ }
193
+ }
194
+ namespace BatchSearchCustomers {
195
+ export interface HeaderParameters {
196
+ "x-trace-id"?: Parameters.XTraceId;
197
+ }
198
+ namespace Parameters {
199
+ export type CustomerNumber = string[];
200
+ export type Email = string[];
201
+ export type ExternalId = string[];
202
+ export type Id = string[];
203
+ export type PhoneNumber = string[];
204
+ export type XTraceId = string;
205
+ }
206
+ export interface QueryParameters {
207
+ id?: Parameters.Id;
208
+ customer_number?: Parameters.CustomerNumber;
209
+ external_id?: Parameters.ExternalId;
210
+ phone_number?: Parameters.PhoneNumber;
211
+ email?: Parameters.Email;
212
+ }
213
+ namespace Responses {
214
+ export type $200 = Components.Schemas.CustomerBatchSearchResult;
215
+ export type $400 = Components.Schemas.ErrorResponse;
216
+ export type $401 = Components.Schemas.ErrorResponse;
217
+ export type $403 = Components.Schemas.ErrorResponse;
218
+ }
219
+ }
220
+ namespace GetManagerStatus {
221
+ namespace Responses {
222
+ export type $200 = Components.Schemas.ManagerStatus;
223
+ export type $401 = Components.Responses.Unauthorized;
224
+ export type $403 = Components.Responses.Forbidden;
225
+ }
226
+ }
227
+ namespace GetProviderSetup {
228
+ namespace Responses {
229
+ export type $200 = Components.Schemas.ProviderSetup;
230
+ export type $400 = Components.Responses.BadRequest;
231
+ export type $401 = Components.Responses.Unauthorized;
232
+ export type $403 = Components.Responses.Forbidden;
233
+ export type $502 = Components.Responses.BadGateway;
234
+ export type $503 = Components.Responses.ServiceUnavailable;
235
+ }
236
+ }
237
+ namespace ListPhoneAgents {
238
+ namespace Responses {
239
+ export interface $200 {
240
+ results: Components.Schemas.PhoneAgent[];
241
+ }
242
+ export type $401 = Components.Responses.Unauthorized;
243
+ export type $403 = Components.Responses.Forbidden;
244
+ export type $502 = Components.Responses.BadGateway;
245
+ }
246
+ }
247
+ namespace RemovePhoneAgent {
248
+ namespace Responses {
249
+ export interface $204 {
250
+ }
251
+ export type $400 = Components.Responses.BadRequest;
252
+ export type $401 = Components.Responses.Unauthorized;
253
+ export type $403 = Components.Responses.Forbidden;
254
+ export type $404 = Components.Schemas.ErrorResponse;
255
+ export type $502 = Components.Schemas.ErrorResponse;
256
+ }
257
+ }
258
+ namespace SetupProvider {
259
+ export type RequestBody = Components.Schemas.ProviderSetupRequest;
260
+ namespace Responses {
261
+ export type $200 = Components.Schemas.ProviderSetup;
262
+ export type $400 = Components.Responses.BadRequest;
263
+ export type $401 = Components.Responses.Unauthorized;
264
+ export type $403 = Components.Responses.Forbidden;
265
+ export type $409 = Components.Schemas.ErrorResponse;
266
+ export type $502 = Components.Responses.BadGateway;
267
+ export type $503 = Components.Responses.ServiceUnavailable;
268
+ }
269
+ }
270
+ namespace V1ManagerAgents$UserId {
271
+ namespace Parameters {
272
+ export type UserId = string; // ^[A-Za-z0-9_-]+$
273
+ }
274
+ export interface PathParameters {
275
+ user_id: Parameters.UserId /* ^[A-Za-z0-9_-]+$ */;
276
+ }
277
+ }
278
+ namespace V1OperatorOrganizations$OrgIdProvider {
279
+ namespace Parameters {
280
+ export type OrgId = string; // ^[A-Za-z0-9_-]+$
281
+ }
282
+ export interface PathParameters {
283
+ org_id: Parameters.OrgId /* ^[A-Za-z0-9_-]+$ */;
284
+ }
285
+ }
286
+ namespace V1OperatorOrganizations$OrgIdProviderSetup {
287
+ namespace Parameters {
288
+ export type OrgId = string; // ^[A-Za-z0-9_-]+$
289
+ }
290
+ export interface PathParameters {
291
+ org_id: Parameters.OrgId /* ^[A-Za-z0-9_-]+$ */;
292
+ }
293
+ }
294
+ }
295
+
296
+
297
+ interface OperationMethods {
298
+ /**
299
+ * batchSearchCustomers - batchSearchCustomers
300
+ *
301
+ * Resolves up to 50 identifiers to epilot customers (Contacts) in one
302
+ * request — for example every number in an agent's call history.
303
+ *
304
+ * Each identifier is an exact key of a Contact: its entity `id`, its
305
+ * `customer_number`, its `external_id`, one of its `email` addresses or
306
+ * one of its `phone` numbers. Repeat a parameter to pass several values,
307
+ * and combine parameters freely. Phone numbers are normalized on the
308
+ * server, so E.164, national and formatted forms of one number match the
309
+ * same contact; the other identifiers match exactly, ignoring case and
310
+ * surrounding whitespace.
311
+ *
312
+ * Every distinct identifier gets its own result, so one unknown or
313
+ * ambiguous identifier never fails the others. Results are ordered by
314
+ * parameter (`id`, `customer_number`, `external_id`, `phone_number`,
315
+ * `email`), then as sent; match them by `identifier`.
316
+ *
317
+ * The search runs with the caller's token: the organization and the
318
+ * permissions applied are the caller's own, as for entity search.
319
+ *
320
+ */
321
+ 'batchSearchCustomers'(
322
+ parameters?: Parameters<Paths.BatchSearchCustomers.QueryParameters & Paths.BatchSearchCustomers.HeaderParameters> | null,
323
+ data?: any,
324
+ config?: AxiosRequestConfig
325
+ ): OperationResponse<Paths.BatchSearchCustomers.Responses.$200>
326
+ /**
327
+ * getManagerStatus - getManagerStatus
328
+ *
329
+ * Whether the caller's organization is ready for phone agents: the telephony provider tenant
330
+ * exists and is configured. The control center shows a "not set up" state when `ready` is false.
331
+ * Requires `phone:manage`.
332
+ *
333
+ */
334
+ 'getManagerStatus'(
335
+ parameters?: Parameters<UnknownParamsObject> | null,
336
+ data?: any,
337
+ config?: AxiosRequestConfig
338
+ ): OperationResponse<Paths.GetManagerStatus.Responses.$200>
339
+ /**
340
+ * listPhoneAgents - listPhoneAgents
341
+ *
342
+ * Organization members who hold the phone (`phone:use`), each joined with the provider user behind
343
+ * them. Requires `phone:manage`.
344
+ *
345
+ */
346
+ 'listPhoneAgents'(
347
+ parameters?: Parameters<UnknownParamsObject> | null,
348
+ data?: any,
349
+ config?: AxiosRequestConfig
350
+ ): OperationResponse<Paths.ListPhoneAgents.Responses.$200>
351
+ /**
352
+ * assignPhoneAgent - assignPhoneAgent
353
+ *
354
+ * Gives an organization member the phone. In order: the member is verified with user-api, their
355
+ * pairwise subject for the provider is read from identity-api, the provider user is created (or
356
+ * found) bound to that subject with the `agent` role, and only then the `phone_agent` role
357
+ * (`phone:use`) is assigned in epilot. Idempotent: an already assigned member answers `200`.
358
+ * Requires `phone:manage`.
359
+ *
360
+ */
361
+ 'assignPhoneAgent'(
362
+ parameters?: Parameters<UnknownParamsObject> | null,
363
+ data?: Paths.AssignPhoneAgent.RequestBody,
364
+ config?: AxiosRequestConfig
365
+ ): OperationResponse<Paths.AssignPhoneAgent.Responses.$200 | Paths.AssignPhoneAgent.Responses.$201>
366
+ /**
367
+ * removePhoneAgent - removePhoneAgent
368
+ *
369
+ * Takes the phone away from a member: the `phone_agent` role is removed first, then the provider
370
+ * user is deactivated (never deleted: call history keeps referring to it). Requires `phone:manage`.
371
+ *
372
+ */
373
+ 'removePhoneAgent'(
374
+ parameters?: Parameters<Paths.V1ManagerAgents$UserId.PathParameters> | null,
375
+ data?: any,
376
+ config?: AxiosRequestConfig
377
+ ): OperationResponse<Paths.RemovePhoneAgent.Responses.$204>
378
+ /**
379
+ * getProviderSetup - getProviderSetup
380
+ *
381
+ * What has been set up at the telephony provider for this organization.
382
+ */
383
+ 'getProviderSetup'(
384
+ parameters?: Parameters<Paths.V1OperatorOrganizations$OrgIdProvider.PathParameters> | null,
385
+ data?: any,
386
+ config?: AxiosRequestConfig
387
+ ): OperationResponse<Paths.GetProviderSetup.Responses.$200>
388
+ /**
389
+ * setupProvider - setupProvider
390
+ *
391
+ * Prepares the telephony provider for an organization, idempotently and in order: the provider
392
+ * tenant (Babelforce sub-account keyed by the organization id), its SCIM configuration with role
393
+ * management on, and its SSO configuration pointing at the identity-api client given here. The
394
+ * client secret is forwarded to the provider and never stored by this service. Re-running updates
395
+ * the SSO configuration (new client or rotated secret) and leaves the rest untouched.
396
+ *
397
+ */
398
+ 'setupProvider'(
399
+ parameters?: Parameters<Paths.V1OperatorOrganizations$OrgIdProviderSetup.PathParameters> | null,
400
+ data?: Paths.SetupProvider.RequestBody,
401
+ config?: AxiosRequestConfig
402
+ ): OperationResponse<Paths.SetupProvider.Responses.$200>
403
+ }
404
+
405
+ interface PathsDictionary {
406
+ ['/v1/customer:batchSearch']: {
407
+ /**
408
+ * batchSearchCustomers - batchSearchCustomers
409
+ *
410
+ * Resolves up to 50 identifiers to epilot customers (Contacts) in one
411
+ * request — for example every number in an agent's call history.
412
+ *
413
+ * Each identifier is an exact key of a Contact: its entity `id`, its
414
+ * `customer_number`, its `external_id`, one of its `email` addresses or
415
+ * one of its `phone` numbers. Repeat a parameter to pass several values,
416
+ * and combine parameters freely. Phone numbers are normalized on the
417
+ * server, so E.164, national and formatted forms of one number match the
418
+ * same contact; the other identifiers match exactly, ignoring case and
419
+ * surrounding whitespace.
420
+ *
421
+ * Every distinct identifier gets its own result, so one unknown or
422
+ * ambiguous identifier never fails the others. Results are ordered by
423
+ * parameter (`id`, `customer_number`, `external_id`, `phone_number`,
424
+ * `email`), then as sent; match them by `identifier`.
425
+ *
426
+ * The search runs with the caller's token: the organization and the
427
+ * permissions applied are the caller's own, as for entity search.
428
+ *
429
+ */
430
+ 'get'(
431
+ parameters?: Parameters<Paths.BatchSearchCustomers.QueryParameters & Paths.BatchSearchCustomers.HeaderParameters> | null,
432
+ data?: any,
433
+ config?: AxiosRequestConfig
434
+ ): OperationResponse<Paths.BatchSearchCustomers.Responses.$200>
435
+ }
436
+ ['/v1/manager/status']: {
437
+ /**
438
+ * getManagerStatus - getManagerStatus
439
+ *
440
+ * Whether the caller's organization is ready for phone agents: the telephony provider tenant
441
+ * exists and is configured. The control center shows a "not set up" state when `ready` is false.
442
+ * Requires `phone:manage`.
443
+ *
444
+ */
445
+ 'get'(
446
+ parameters?: Parameters<UnknownParamsObject> | null,
447
+ data?: any,
448
+ config?: AxiosRequestConfig
449
+ ): OperationResponse<Paths.GetManagerStatus.Responses.$200>
450
+ }
451
+ ['/v1/manager/agents']: {
452
+ /**
453
+ * listPhoneAgents - listPhoneAgents
454
+ *
455
+ * Organization members who hold the phone (`phone:use`), each joined with the provider user behind
456
+ * them. Requires `phone:manage`.
457
+ *
458
+ */
459
+ 'get'(
460
+ parameters?: Parameters<UnknownParamsObject> | null,
461
+ data?: any,
462
+ config?: AxiosRequestConfig
463
+ ): OperationResponse<Paths.ListPhoneAgents.Responses.$200>
464
+ /**
465
+ * assignPhoneAgent - assignPhoneAgent
466
+ *
467
+ * Gives an organization member the phone. In order: the member is verified with user-api, their
468
+ * pairwise subject for the provider is read from identity-api, the provider user is created (or
469
+ * found) bound to that subject with the `agent` role, and only then the `phone_agent` role
470
+ * (`phone:use`) is assigned in epilot. Idempotent: an already assigned member answers `200`.
471
+ * Requires `phone:manage`.
472
+ *
473
+ */
474
+ 'post'(
475
+ parameters?: Parameters<UnknownParamsObject> | null,
476
+ data?: Paths.AssignPhoneAgent.RequestBody,
477
+ config?: AxiosRequestConfig
478
+ ): OperationResponse<Paths.AssignPhoneAgent.Responses.$200 | Paths.AssignPhoneAgent.Responses.$201>
479
+ }
480
+ ['/v1/manager/agents/{user_id}']: {
481
+ /**
482
+ * removePhoneAgent - removePhoneAgent
483
+ *
484
+ * Takes the phone away from a member: the `phone_agent` role is removed first, then the provider
485
+ * user is deactivated (never deleted: call history keeps referring to it). Requires `phone:manage`.
486
+ *
487
+ */
488
+ 'delete'(
489
+ parameters?: Parameters<Paths.V1ManagerAgents$UserId.PathParameters> | null,
490
+ data?: any,
491
+ config?: AxiosRequestConfig
492
+ ): OperationResponse<Paths.RemovePhoneAgent.Responses.$204>
493
+ }
494
+ ['/v1/operator/organizations/{org_id}/provider']: {
495
+ /**
496
+ * getProviderSetup - getProviderSetup
497
+ *
498
+ * What has been set up at the telephony provider for this organization.
499
+ */
500
+ 'get'(
501
+ parameters?: Parameters<Paths.V1OperatorOrganizations$OrgIdProvider.PathParameters> | null,
502
+ data?: any,
503
+ config?: AxiosRequestConfig
504
+ ): OperationResponse<Paths.GetProviderSetup.Responses.$200>
505
+ }
506
+ ['/v1/operator/organizations/{org_id}/provider:setup']: {
507
+ /**
508
+ * setupProvider - setupProvider
509
+ *
510
+ * Prepares the telephony provider for an organization, idempotently and in order: the provider
511
+ * tenant (Babelforce sub-account keyed by the organization id), its SCIM configuration with role
512
+ * management on, and its SSO configuration pointing at the identity-api client given here. The
513
+ * client secret is forwarded to the provider and never stored by this service. Re-running updates
514
+ * the SSO configuration (new client or rotated secret) and leaves the rest untouched.
515
+ *
516
+ */
517
+ 'post'(
518
+ parameters?: Parameters<Paths.V1OperatorOrganizations$OrgIdProviderSetup.PathParameters> | null,
519
+ data?: Paths.SetupProvider.RequestBody,
520
+ config?: AxiosRequestConfig
521
+ ): OperationResponse<Paths.SetupProvider.Responses.$200>
522
+ }
523
+ }
524
+
525
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
526
+
527
+
528
+ type AssignPhoneAgentRequest = Components.Schemas.AssignPhoneAgentRequest;
529
+ type CustomerBatchSearchResult = Components.Schemas.CustomerBatchSearchResult;
530
+ type CustomerIdentifier = Components.Schemas.CustomerIdentifier;
531
+ type CustomerSearchResult = Components.Schemas.CustomerSearchResult;
532
+ type CustomerSummary = Components.Schemas.CustomerSummary;
533
+ type ErrorResponse = Components.Schemas.ErrorResponse;
534
+ type ManagerStatus = Components.Schemas.ManagerStatus;
535
+ type PhoneAgent = Components.Schemas.PhoneAgent;
536
+ type ProviderSetup = Components.Schemas.ProviderSetup;
537
+ type ProviderSetupRequest = Components.Schemas.ProviderSetupRequest;
538
+
539
+ export { type AssignPhoneAgentRequest as A, type Client as C, type ErrorResponse as E, type ManagerStatus as M, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b, type CustomerBatchSearchResult as c, type CustomerIdentifier as d, type CustomerSearchResult as e, type CustomerSummary as f, type PhoneAgent as g, type ProviderSetup as h, type ProviderSetupRequest as i };