@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.
- package/definitions/integration-toolkit.json +251 -63
- package/definitions/journey-runtime.json +1 -1
- package/definitions/journey.json +399 -13
- package/definitions/phone-integration-runtime.json +1 -1
- package/definitions/phone-integration.json +651 -0
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +6 -6
- package/dist/apis/external-values.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +6 -6
- package/dist/apis/identity.js +1 -1
- package/dist/apis/integration-toolkit.cjs +14 -10
- package/dist/apis/integration-toolkit.d.cts +2 -2
- package/dist/apis/integration-toolkit.d.ts +2 -2
- package/dist/apis/integration-toolkit.js +9 -5
- package/dist/apis/journey.cjs +8 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +2 -2
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/phone-integration.cjs +8 -8
- package/dist/apis/phone-integration.d.cts +2 -2
- package/dist/apis/phone-integration.d.ts +2 -2
- package/dist/apis/phone-integration.js +2 -2
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/chunk-JFRRQORA.js +14 -0
- package/dist/{chunk-ZREXF3XS.js → chunk-KH4BRB6Z.js} +5 -5
- package/dist/{chunk-I3ZZES76.js → chunk-NQBHADQX.js} +1 -1
- package/dist/{chunk-M5Z7JYJ3.cjs → chunk-OLRBYITL.cjs} +5 -5
- package/dist/{chunk-QYHNZLHS.cjs → chunk-PK5IH3WQ.cjs} +1 -1
- package/dist/{chunk-BY76NFAX.cjs → chunk-XPQ7LBUE.cjs} +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/integration-toolkit-3XNG4PL5.cjs +7 -0
- package/dist/integration-toolkit-VLTS5HKV.js +7 -0
- package/dist/{integration-toolkit.d-l5cgwHLa.d.cts → integration-toolkit.d-BGF0LVB7.d.cts} +587 -85
- package/dist/{integration-toolkit.d-l5cgwHLa.d.ts → integration-toolkit.d-BGF0LVB7.d.ts} +587 -85
- package/dist/journey-LAEXXNCD.js +7 -0
- package/dist/journey-RKBZQRPL.cjs +7 -0
- package/dist/{journey-runtime-KZUPV4XH.cjs → journey-runtime-2N77HRB6.cjs} +2 -2
- package/dist/{journey-runtime-AQH7EG4C.js → journey-runtime-YJ5G4IG2.js} +1 -1
- package/dist/{journey.d-CMtM6U3Y.d.cts → journey.d-5GpTnSld.d.cts} +261 -80
- package/dist/{journey.d-CMtM6U3Y.d.ts → journey.d-5GpTnSld.d.ts} +261 -80
- package/dist/phone-integration-5EHY236F.js +7 -0
- package/dist/phone-integration-C567S75X.cjs +7 -0
- package/dist/{phone-integration-runtime-DFA6NYNK.cjs → phone-integration-runtime-3QDC5IMK.cjs} +2 -2
- package/dist/{phone-integration-runtime-27B4SHA5.js → phone-integration-runtime-JWF52VHF.js} +1 -1
- package/dist/phone-integration.d-DJrZ4xkA.d.cts +539 -0
- package/dist/phone-integration.d-DJrZ4xkA.d.ts +539 -0
- package/docs/integration-toolkit.md +88 -270
- package/docs/journey.md +217 -38
- package/docs/phone-integration.md +293 -0
- package/package.json +1 -1
- package/dist/chunk-UFMZ4EV3.js +0 -14
- package/dist/integration-toolkit-FI32O7II.cjs +0 -7
- package/dist/integration-toolkit-MHULDW3E.js +0 -7
- package/dist/journey-JDIVUY7T.cjs +0 -7
- package/dist/journey-PBOMOJ5G.js +0 -7
- package/dist/phone-integration-JT2UAOGS.cjs +0 -7
- package/dist/phone-integration-KORLYUBG.js +0 -7
- package/dist/phone-integration.d-ChHA2oGI.d.cts +0 -179
- package/dist/phone-integration.d-ChHA2oGI.d.ts +0 -179
|
@@ -27,7 +27,22 @@ const { data } = await phoneIntegrationClient.batchSearchCustomers(...)
|
|
|
27
27
|
**phone-integration**
|
|
28
28
|
- [`batchSearchCustomers`](#batchsearchcustomers)
|
|
29
29
|
|
|
30
|
+
**manager**
|
|
31
|
+
- [`getManagerStatus`](#getmanagerstatus)
|
|
32
|
+
- [`listPhoneAgents`](#listphoneagents)
|
|
33
|
+
- [`assignPhoneAgent`](#assignphoneagent)
|
|
34
|
+
- [`removePhoneAgent`](#removephoneagent)
|
|
35
|
+
|
|
36
|
+
**operator**
|
|
37
|
+
- [`getProviderSetup`](#getprovidersetup)
|
|
38
|
+
- [`setupProvider`](#setupprovider)
|
|
39
|
+
|
|
30
40
|
**Schemas**
|
|
41
|
+
- [`ManagerStatus`](#managerstatus)
|
|
42
|
+
- [`PhoneAgent`](#phoneagent)
|
|
43
|
+
- [`AssignPhoneAgentRequest`](#assignphoneagentrequest)
|
|
44
|
+
- [`ProviderSetup`](#providersetup)
|
|
45
|
+
- [`ProviderSetupRequest`](#providersetuprequest)
|
|
31
46
|
- [`CustomerBatchSearchResult`](#customerbatchsearchresult)
|
|
32
47
|
- [`CustomerSearchResult`](#customersearchresult)
|
|
33
48
|
- [`CustomerIdentifier`](#customeridentifier)
|
|
@@ -78,8 +93,286 @@ const { data } = await client.batchSearchCustomers({
|
|
|
78
93
|
|
|
79
94
|
---
|
|
80
95
|
|
|
96
|
+
### `getManagerStatus`
|
|
97
|
+
|
|
98
|
+
Whether the caller's organization is ready for phone agents: the telephony provider tenant
|
|
99
|
+
exists and is configured. The control center shows a "not set up" state when `ready` is false.
|
|
100
|
+
Requires `phon
|
|
101
|
+
|
|
102
|
+
`GET /v1/manager/status`
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
const { data } = await client.getManagerStatus()
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
<details>
|
|
109
|
+
<summary>Response</summary>
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"provider": "babelforce",
|
|
114
|
+
"ready": true,
|
|
115
|
+
"reasons": ["provider_tenant_missing"]
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
</details>
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### `listPhoneAgents`
|
|
124
|
+
|
|
125
|
+
Organization members who hold the phone (`phone:use`), each joined with the provider user behind
|
|
126
|
+
them. Requires `phone:manage`.
|
|
127
|
+
|
|
128
|
+
`GET /v1/manager/agents`
|
|
129
|
+
|
|
130
|
+
```ts
|
|
131
|
+
const { data } = await client.listPhoneAgents()
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
<details>
|
|
135
|
+
<summary>Response</summary>
|
|
136
|
+
|
|
137
|
+
```json
|
|
138
|
+
{
|
|
139
|
+
"results": [
|
|
140
|
+
{
|
|
141
|
+
"user_id": "string",
|
|
142
|
+
"email": "string",
|
|
143
|
+
"display_name": "string",
|
|
144
|
+
"status": "active",
|
|
145
|
+
"provider_user_id": "string",
|
|
146
|
+
"provider_roles": ["string"],
|
|
147
|
+
"assigned_at": "1970-01-01T00:00:00.000Z",
|
|
148
|
+
"assigned_by": "string"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
</details>
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### `assignPhoneAgent`
|
|
159
|
+
|
|
160
|
+
Gives an organization member the phone. In order: the member is verified with user-api, their
|
|
161
|
+
pairwise subject for the provider is read from identity-api, the provider user is created (or
|
|
162
|
+
found) bound
|
|
163
|
+
|
|
164
|
+
`POST /v1/manager/agents`
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
const { data } = await client.assignPhoneAgent(
|
|
168
|
+
null,
|
|
169
|
+
{
|
|
170
|
+
user_id: 'string'
|
|
171
|
+
},
|
|
172
|
+
)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
<details>
|
|
176
|
+
<summary>Response</summary>
|
|
177
|
+
|
|
178
|
+
```json
|
|
179
|
+
{
|
|
180
|
+
"user_id": "string",
|
|
181
|
+
"email": "string",
|
|
182
|
+
"display_name": "string",
|
|
183
|
+
"status": "active",
|
|
184
|
+
"provider_user_id": "string",
|
|
185
|
+
"provider_roles": ["string"],
|
|
186
|
+
"assigned_at": "1970-01-01T00:00:00.000Z",
|
|
187
|
+
"assigned_by": "string"
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
</details>
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
### `removePhoneAgent`
|
|
196
|
+
|
|
197
|
+
Takes the phone away from a member: the `phone_agent` role is removed first, then the provider
|
|
198
|
+
user is deactivated (never deleted: call history keeps referring to it). Requires `phone:manage`.
|
|
199
|
+
|
|
200
|
+
`DELETE /v1/manager/agents/{user_id}`
|
|
201
|
+
|
|
202
|
+
```ts
|
|
203
|
+
const { data } = await client.removePhoneAgent({
|
|
204
|
+
user_id: 'example',
|
|
205
|
+
})
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
### `getProviderSetup`
|
|
211
|
+
|
|
212
|
+
What has been set up at the telephony provider for this organization.
|
|
213
|
+
|
|
214
|
+
`GET /v1/operator/organizations/{org_id}/provider`
|
|
215
|
+
|
|
216
|
+
```ts
|
|
217
|
+
const { data } = await client.getProviderSetup({
|
|
218
|
+
org_id: 'example',
|
|
219
|
+
})
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
<details>
|
|
223
|
+
<summary>Response</summary>
|
|
224
|
+
|
|
225
|
+
```json
|
|
226
|
+
{
|
|
227
|
+
"provider": "babelforce",
|
|
228
|
+
"org_id": "string",
|
|
229
|
+
"ready": true,
|
|
230
|
+
"tenant": {
|
|
231
|
+
"id": "string",
|
|
232
|
+
"name": "string",
|
|
233
|
+
"org_key": "string",
|
|
234
|
+
"created_at": "1970-01-01T00:00:00.000Z"
|
|
235
|
+
},
|
|
236
|
+
"scim": {
|
|
237
|
+
"configured": true,
|
|
238
|
+
"roles_enabled": true
|
|
239
|
+
},
|
|
240
|
+
"sso": {
|
|
241
|
+
"configured": true,
|
|
242
|
+
"identity_client_id": "string",
|
|
243
|
+
"configured_at": "1970-01-01T00:00:00.000Z"
|
|
244
|
+
},
|
|
245
|
+
"last_setup_by": "string"
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
</details>
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
### `setupProvider`
|
|
254
|
+
|
|
255
|
+
Prepares the telephony provider for an organization, idempotently and in order: the provider
|
|
256
|
+
tenant (Babelforce sub-account keyed by the organization id), its SCIM configuration with role
|
|
257
|
+
management o
|
|
258
|
+
|
|
259
|
+
`POST /v1/operator/organizations/{org_id}/provider:setup`
|
|
260
|
+
|
|
261
|
+
```ts
|
|
262
|
+
const { data } = await client.setupProvider(
|
|
263
|
+
{
|
|
264
|
+
org_id: 'example',
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
account_name: 'string',
|
|
268
|
+
identity_client_id: 'string',
|
|
269
|
+
identity_client_secret: 'stringstring'
|
|
270
|
+
},
|
|
271
|
+
)
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
<details>
|
|
275
|
+
<summary>Response</summary>
|
|
276
|
+
|
|
277
|
+
```json
|
|
278
|
+
{
|
|
279
|
+
"provider": "babelforce",
|
|
280
|
+
"org_id": "string",
|
|
281
|
+
"ready": true,
|
|
282
|
+
"tenant": {
|
|
283
|
+
"id": "string",
|
|
284
|
+
"name": "string",
|
|
285
|
+
"org_key": "string",
|
|
286
|
+
"created_at": "1970-01-01T00:00:00.000Z"
|
|
287
|
+
},
|
|
288
|
+
"scim": {
|
|
289
|
+
"configured": true,
|
|
290
|
+
"roles_enabled": true
|
|
291
|
+
},
|
|
292
|
+
"sso": {
|
|
293
|
+
"configured": true,
|
|
294
|
+
"identity_client_id": "string",
|
|
295
|
+
"configured_at": "1970-01-01T00:00:00.000Z"
|
|
296
|
+
},
|
|
297
|
+
"last_setup_by": "string"
|
|
298
|
+
}
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
</details>
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
81
305
|
## Schemas
|
|
82
306
|
|
|
307
|
+
### `ManagerStatus`
|
|
308
|
+
|
|
309
|
+
```ts
|
|
310
|
+
type ManagerStatus = {
|
|
311
|
+
provider: "babelforce"
|
|
312
|
+
ready: boolean
|
|
313
|
+
reasons: "provider_tenant_missing" | "sso_not_configured" | "scim_not_configured" | "identity_enablement_missing"[]
|
|
314
|
+
}
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
### `PhoneAgent`
|
|
318
|
+
|
|
319
|
+
```ts
|
|
320
|
+
type PhoneAgent = {
|
|
321
|
+
user_id: string
|
|
322
|
+
email: string
|
|
323
|
+
display_name?: string
|
|
324
|
+
status: "active" | "pending" | "disabled" | "missing_provider" | "missing_role"
|
|
325
|
+
provider_user_id?: string
|
|
326
|
+
provider_roles?: string[]
|
|
327
|
+
assigned_at?: string // date-time
|
|
328
|
+
assigned_by?: string
|
|
329
|
+
}
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### `AssignPhoneAgentRequest`
|
|
333
|
+
|
|
334
|
+
```ts
|
|
335
|
+
type AssignPhoneAgentRequest = {
|
|
336
|
+
user_id: string
|
|
337
|
+
}
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### `ProviderSetup`
|
|
341
|
+
|
|
342
|
+
```ts
|
|
343
|
+
type ProviderSetup = {
|
|
344
|
+
provider: "babelforce"
|
|
345
|
+
org_id: string
|
|
346
|
+
ready: boolean
|
|
347
|
+
tenant: {
|
|
348
|
+
id: string
|
|
349
|
+
name: string
|
|
350
|
+
org_key: string
|
|
351
|
+
created_at?: string // date-time
|
|
352
|
+
}
|
|
353
|
+
scim: {
|
|
354
|
+
configured: boolean
|
|
355
|
+
roles_enabled: boolean
|
|
356
|
+
}
|
|
357
|
+
sso: {
|
|
358
|
+
configured: boolean
|
|
359
|
+
identity_client_id?: string
|
|
360
|
+
configured_at?: string // date-time
|
|
361
|
+
}
|
|
362
|
+
last_setup_by?: string
|
|
363
|
+
}
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### `ProviderSetupRequest`
|
|
367
|
+
|
|
368
|
+
```ts
|
|
369
|
+
type ProviderSetupRequest = {
|
|
370
|
+
account_name?: string
|
|
371
|
+
identity_client_id: string
|
|
372
|
+
identity_client_secret: string
|
|
373
|
+
}
|
|
374
|
+
```
|
|
375
|
+
|
|
83
376
|
### `CustomerBatchSearchResult`
|
|
84
377
|
|
|
85
378
|
```ts
|
package/package.json
CHANGED
package/dist/chunk-UFMZ4EV3.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS
|
|
3
|
-
} from "./chunk-YPSWSI3M.js";
|
|
4
|
-
|
|
5
|
-
// src/definitions/phone-integration-runtime.json
|
|
6
|
-
var require_phone_integration_runtime = __commonJS({
|
|
7
|
-
"src/definitions/phone-integration-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://phone-integration-api.sls.epilot.io", o: [["batchSearchCustomers", "get", "/v1/customer:batchSearch", [["id", "q", false, "form", true], ["customer_number", "q", false, "form", true], ["external_id", "q", false, "form", true], ["phone_number", "q", false, "form", true], ["email", "q", false, "form", true], ["x-trace-id", "h"]]]], v: "3.0.3" };
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
require_phone_integration_runtime
|
|
14
|
-
};
|