@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
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
-
|
|
3
|
-
/* Auto-copied from phone-integration-client */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare namespace Components {
|
|
7
|
-
namespace Schemas {
|
|
8
|
-
export interface CustomerBatchSearchResult {
|
|
9
|
-
/**
|
|
10
|
-
* One result per distinct identifier
|
|
11
|
-
*/
|
|
12
|
-
results: CustomerSearchResult[];
|
|
13
|
-
}
|
|
14
|
-
export interface CustomerIdentifier {
|
|
15
|
-
type: "id" | "customer_number" | "external_id" | "phone_number" | "email";
|
|
16
|
-
/**
|
|
17
|
-
* The identifier as sent
|
|
18
|
-
* example:
|
|
19
|
-
* +4917012345678
|
|
20
|
-
*/
|
|
21
|
-
value: string;
|
|
22
|
-
}
|
|
23
|
-
export interface CustomerSearchResult {
|
|
24
|
-
identifier: CustomerIdentifier;
|
|
25
|
-
/**
|
|
26
|
-
* - `found` — exactly one contact has the identifier; see `customer`
|
|
27
|
-
* - `not_found` — no contact the caller may see has it
|
|
28
|
-
* - `ambiguous` — several contacts share it; none is chosen
|
|
29
|
-
* - `invalid` — not a usable identifier (a phone number that does
|
|
30
|
-
* not parse), so nothing was searched
|
|
31
|
-
* - `error` — the search for this identifier failed; try again
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
status: "found" | "not_found" | "ambiguous" | "invalid" | "error";
|
|
35
|
-
customer?: /* Present when `status` is `found` */ CustomerSummary;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Present when `status` is `found`
|
|
39
|
-
*/
|
|
40
|
-
export interface CustomerSummary {
|
|
41
|
-
/**
|
|
42
|
-
* epilot entity id of the customer (Contact)
|
|
43
|
-
* example:
|
|
44
|
-
* dba8e5f9-8b3f-4608-b887-cd0798fce624
|
|
45
|
-
*/
|
|
46
|
-
id: string;
|
|
47
|
-
/**
|
|
48
|
-
* The contact's title, else its first and last name; null when it has neither
|
|
49
|
-
* example:
|
|
50
|
-
* Max Mustermann
|
|
51
|
-
*/
|
|
52
|
-
name: string | null;
|
|
53
|
-
/**
|
|
54
|
-
* Omitted when the contact has none
|
|
55
|
-
* example:
|
|
56
|
-
* 4711
|
|
57
|
-
*/
|
|
58
|
-
customer_number?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface ErrorResponse {
|
|
61
|
-
/**
|
|
62
|
-
* HTTP status code.
|
|
63
|
-
*/
|
|
64
|
-
status: number;
|
|
65
|
-
/**
|
|
66
|
-
* Human-readable error message.
|
|
67
|
-
*/
|
|
68
|
-
error: string;
|
|
69
|
-
/**
|
|
70
|
-
* Stable machine-readable error code, when the operation defines one.
|
|
71
|
-
*/
|
|
72
|
-
code?: string;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
declare namespace Paths {
|
|
77
|
-
namespace BatchSearchCustomers {
|
|
78
|
-
export interface HeaderParameters {
|
|
79
|
-
"x-trace-id"?: Parameters.XTraceId;
|
|
80
|
-
}
|
|
81
|
-
namespace Parameters {
|
|
82
|
-
export type CustomerNumber = string[];
|
|
83
|
-
export type Email = string[];
|
|
84
|
-
export type ExternalId = string[];
|
|
85
|
-
export type Id = string[];
|
|
86
|
-
export type PhoneNumber = string[];
|
|
87
|
-
export type XTraceId = string;
|
|
88
|
-
}
|
|
89
|
-
export interface QueryParameters {
|
|
90
|
-
id?: Parameters.Id;
|
|
91
|
-
customer_number?: Parameters.CustomerNumber;
|
|
92
|
-
external_id?: Parameters.ExternalId;
|
|
93
|
-
phone_number?: Parameters.PhoneNumber;
|
|
94
|
-
email?: Parameters.Email;
|
|
95
|
-
}
|
|
96
|
-
namespace Responses {
|
|
97
|
-
export type $200 = Components.Schemas.CustomerBatchSearchResult;
|
|
98
|
-
export type $400 = Components.Schemas.ErrorResponse;
|
|
99
|
-
export type $401 = Components.Schemas.ErrorResponse;
|
|
100
|
-
export type $403 = Components.Schemas.ErrorResponse;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
interface OperationMethods {
|
|
107
|
-
/**
|
|
108
|
-
* batchSearchCustomers - batchSearchCustomers
|
|
109
|
-
*
|
|
110
|
-
* Resolves up to 50 identifiers to epilot customers (Contacts) in one
|
|
111
|
-
* request — for example every number in an agent's call history.
|
|
112
|
-
*
|
|
113
|
-
* Each identifier is an exact key of a Contact: its entity `id`, its
|
|
114
|
-
* `customer_number`, its `external_id`, one of its `email` addresses or
|
|
115
|
-
* one of its `phone` numbers. Repeat a parameter to pass several values,
|
|
116
|
-
* and combine parameters freely. Phone numbers are normalized on the
|
|
117
|
-
* server, so E.164, national and formatted forms of one number match the
|
|
118
|
-
* same contact; the other identifiers match exactly, ignoring case and
|
|
119
|
-
* surrounding whitespace.
|
|
120
|
-
*
|
|
121
|
-
* Every distinct identifier gets its own result, so one unknown or
|
|
122
|
-
* ambiguous identifier never fails the others. Results are ordered by
|
|
123
|
-
* parameter (`id`, `customer_number`, `external_id`, `phone_number`,
|
|
124
|
-
* `email`), then as sent; match them by `identifier`.
|
|
125
|
-
*
|
|
126
|
-
* The search runs with the caller's token: the organization and the
|
|
127
|
-
* permissions applied are the caller's own, as for entity search.
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
'batchSearchCustomers'(
|
|
131
|
-
parameters?: Parameters<Paths.BatchSearchCustomers.QueryParameters & Paths.BatchSearchCustomers.HeaderParameters> | null,
|
|
132
|
-
data?: any,
|
|
133
|
-
config?: AxiosRequestConfig
|
|
134
|
-
): OperationResponse<Paths.BatchSearchCustomers.Responses.$200>
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface PathsDictionary {
|
|
138
|
-
['/v1/customer:batchSearch']: {
|
|
139
|
-
/**
|
|
140
|
-
* batchSearchCustomers - batchSearchCustomers
|
|
141
|
-
*
|
|
142
|
-
* Resolves up to 50 identifiers to epilot customers (Contacts) in one
|
|
143
|
-
* request — for example every number in an agent's call history.
|
|
144
|
-
*
|
|
145
|
-
* Each identifier is an exact key of a Contact: its entity `id`, its
|
|
146
|
-
* `customer_number`, its `external_id`, one of its `email` addresses or
|
|
147
|
-
* one of its `phone` numbers. Repeat a parameter to pass several values,
|
|
148
|
-
* and combine parameters freely. Phone numbers are normalized on the
|
|
149
|
-
* server, so E.164, national and formatted forms of one number match the
|
|
150
|
-
* same contact; the other identifiers match exactly, ignoring case and
|
|
151
|
-
* surrounding whitespace.
|
|
152
|
-
*
|
|
153
|
-
* Every distinct identifier gets its own result, so one unknown or
|
|
154
|
-
* ambiguous identifier never fails the others. Results are ordered by
|
|
155
|
-
* parameter (`id`, `customer_number`, `external_id`, `phone_number`,
|
|
156
|
-
* `email`), then as sent; match them by `identifier`.
|
|
157
|
-
*
|
|
158
|
-
* The search runs with the caller's token: the organization and the
|
|
159
|
-
* permissions applied are the caller's own, as for entity search.
|
|
160
|
-
*
|
|
161
|
-
*/
|
|
162
|
-
'get'(
|
|
163
|
-
parameters?: Parameters<Paths.BatchSearchCustomers.QueryParameters & Paths.BatchSearchCustomers.HeaderParameters> | null,
|
|
164
|
-
data?: any,
|
|
165
|
-
config?: AxiosRequestConfig
|
|
166
|
-
): OperationResponse<Paths.BatchSearchCustomers.Responses.$200>
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
type CustomerBatchSearchResult = Components.Schemas.CustomerBatchSearchResult;
|
|
174
|
-
type CustomerIdentifier = Components.Schemas.CustomerIdentifier;
|
|
175
|
-
type CustomerSearchResult = Components.Schemas.CustomerSearchResult;
|
|
176
|
-
type CustomerSummary = Components.Schemas.CustomerSummary;
|
|
177
|
-
type ErrorResponse = Components.Schemas.ErrorResponse;
|
|
178
|
-
|
|
179
|
-
export { type Client as C, type ErrorResponse as E, 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 };
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
-
|
|
3
|
-
/* Auto-copied from phone-integration-client */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare namespace Components {
|
|
7
|
-
namespace Schemas {
|
|
8
|
-
export interface CustomerBatchSearchResult {
|
|
9
|
-
/**
|
|
10
|
-
* One result per distinct identifier
|
|
11
|
-
*/
|
|
12
|
-
results: CustomerSearchResult[];
|
|
13
|
-
}
|
|
14
|
-
export interface CustomerIdentifier {
|
|
15
|
-
type: "id" | "customer_number" | "external_id" | "phone_number" | "email";
|
|
16
|
-
/**
|
|
17
|
-
* The identifier as sent
|
|
18
|
-
* example:
|
|
19
|
-
* +4917012345678
|
|
20
|
-
*/
|
|
21
|
-
value: string;
|
|
22
|
-
}
|
|
23
|
-
export interface CustomerSearchResult {
|
|
24
|
-
identifier: CustomerIdentifier;
|
|
25
|
-
/**
|
|
26
|
-
* - `found` — exactly one contact has the identifier; see `customer`
|
|
27
|
-
* - `not_found` — no contact the caller may see has it
|
|
28
|
-
* - `ambiguous` — several contacts share it; none is chosen
|
|
29
|
-
* - `invalid` — not a usable identifier (a phone number that does
|
|
30
|
-
* not parse), so nothing was searched
|
|
31
|
-
* - `error` — the search for this identifier failed; try again
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
status: "found" | "not_found" | "ambiguous" | "invalid" | "error";
|
|
35
|
-
customer?: /* Present when `status` is `found` */ CustomerSummary;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Present when `status` is `found`
|
|
39
|
-
*/
|
|
40
|
-
export interface CustomerSummary {
|
|
41
|
-
/**
|
|
42
|
-
* epilot entity id of the customer (Contact)
|
|
43
|
-
* example:
|
|
44
|
-
* dba8e5f9-8b3f-4608-b887-cd0798fce624
|
|
45
|
-
*/
|
|
46
|
-
id: string;
|
|
47
|
-
/**
|
|
48
|
-
* The contact's title, else its first and last name; null when it has neither
|
|
49
|
-
* example:
|
|
50
|
-
* Max Mustermann
|
|
51
|
-
*/
|
|
52
|
-
name: string | null;
|
|
53
|
-
/**
|
|
54
|
-
* Omitted when the contact has none
|
|
55
|
-
* example:
|
|
56
|
-
* 4711
|
|
57
|
-
*/
|
|
58
|
-
customer_number?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface ErrorResponse {
|
|
61
|
-
/**
|
|
62
|
-
* HTTP status code.
|
|
63
|
-
*/
|
|
64
|
-
status: number;
|
|
65
|
-
/**
|
|
66
|
-
* Human-readable error message.
|
|
67
|
-
*/
|
|
68
|
-
error: string;
|
|
69
|
-
/**
|
|
70
|
-
* Stable machine-readable error code, when the operation defines one.
|
|
71
|
-
*/
|
|
72
|
-
code?: string;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
declare namespace Paths {
|
|
77
|
-
namespace BatchSearchCustomers {
|
|
78
|
-
export interface HeaderParameters {
|
|
79
|
-
"x-trace-id"?: Parameters.XTraceId;
|
|
80
|
-
}
|
|
81
|
-
namespace Parameters {
|
|
82
|
-
export type CustomerNumber = string[];
|
|
83
|
-
export type Email = string[];
|
|
84
|
-
export type ExternalId = string[];
|
|
85
|
-
export type Id = string[];
|
|
86
|
-
export type PhoneNumber = string[];
|
|
87
|
-
export type XTraceId = string;
|
|
88
|
-
}
|
|
89
|
-
export interface QueryParameters {
|
|
90
|
-
id?: Parameters.Id;
|
|
91
|
-
customer_number?: Parameters.CustomerNumber;
|
|
92
|
-
external_id?: Parameters.ExternalId;
|
|
93
|
-
phone_number?: Parameters.PhoneNumber;
|
|
94
|
-
email?: Parameters.Email;
|
|
95
|
-
}
|
|
96
|
-
namespace Responses {
|
|
97
|
-
export type $200 = Components.Schemas.CustomerBatchSearchResult;
|
|
98
|
-
export type $400 = Components.Schemas.ErrorResponse;
|
|
99
|
-
export type $401 = Components.Schemas.ErrorResponse;
|
|
100
|
-
export type $403 = Components.Schemas.ErrorResponse;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
interface OperationMethods {
|
|
107
|
-
/**
|
|
108
|
-
* batchSearchCustomers - batchSearchCustomers
|
|
109
|
-
*
|
|
110
|
-
* Resolves up to 50 identifiers to epilot customers (Contacts) in one
|
|
111
|
-
* request — for example every number in an agent's call history.
|
|
112
|
-
*
|
|
113
|
-
* Each identifier is an exact key of a Contact: its entity `id`, its
|
|
114
|
-
* `customer_number`, its `external_id`, one of its `email` addresses or
|
|
115
|
-
* one of its `phone` numbers. Repeat a parameter to pass several values,
|
|
116
|
-
* and combine parameters freely. Phone numbers are normalized on the
|
|
117
|
-
* server, so E.164, national and formatted forms of one number match the
|
|
118
|
-
* same contact; the other identifiers match exactly, ignoring case and
|
|
119
|
-
* surrounding whitespace.
|
|
120
|
-
*
|
|
121
|
-
* Every distinct identifier gets its own result, so one unknown or
|
|
122
|
-
* ambiguous identifier never fails the others. Results are ordered by
|
|
123
|
-
* parameter (`id`, `customer_number`, `external_id`, `phone_number`,
|
|
124
|
-
* `email`), then as sent; match them by `identifier`.
|
|
125
|
-
*
|
|
126
|
-
* The search runs with the caller's token: the organization and the
|
|
127
|
-
* permissions applied are the caller's own, as for entity search.
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
'batchSearchCustomers'(
|
|
131
|
-
parameters?: Parameters<Paths.BatchSearchCustomers.QueryParameters & Paths.BatchSearchCustomers.HeaderParameters> | null,
|
|
132
|
-
data?: any,
|
|
133
|
-
config?: AxiosRequestConfig
|
|
134
|
-
): OperationResponse<Paths.BatchSearchCustomers.Responses.$200>
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface PathsDictionary {
|
|
138
|
-
['/v1/customer:batchSearch']: {
|
|
139
|
-
/**
|
|
140
|
-
* batchSearchCustomers - batchSearchCustomers
|
|
141
|
-
*
|
|
142
|
-
* Resolves up to 50 identifiers to epilot customers (Contacts) in one
|
|
143
|
-
* request — for example every number in an agent's call history.
|
|
144
|
-
*
|
|
145
|
-
* Each identifier is an exact key of a Contact: its entity `id`, its
|
|
146
|
-
* `customer_number`, its `external_id`, one of its `email` addresses or
|
|
147
|
-
* one of its `phone` numbers. Repeat a parameter to pass several values,
|
|
148
|
-
* and combine parameters freely. Phone numbers are normalized on the
|
|
149
|
-
* server, so E.164, national and formatted forms of one number match the
|
|
150
|
-
* same contact; the other identifiers match exactly, ignoring case and
|
|
151
|
-
* surrounding whitespace.
|
|
152
|
-
*
|
|
153
|
-
* Every distinct identifier gets its own result, so one unknown or
|
|
154
|
-
* ambiguous identifier never fails the others. Results are ordered by
|
|
155
|
-
* parameter (`id`, `customer_number`, `external_id`, `phone_number`,
|
|
156
|
-
* `email`), then as sent; match them by `identifier`.
|
|
157
|
-
*
|
|
158
|
-
* The search runs with the caller's token: the organization and the
|
|
159
|
-
* permissions applied are the caller's own, as for entity search.
|
|
160
|
-
*
|
|
161
|
-
*/
|
|
162
|
-
'get'(
|
|
163
|
-
parameters?: Parameters<Paths.BatchSearchCustomers.QueryParameters & Paths.BatchSearchCustomers.HeaderParameters> | null,
|
|
164
|
-
data?: any,
|
|
165
|
-
config?: AxiosRequestConfig
|
|
166
|
-
): OperationResponse<Paths.BatchSearchCustomers.Responses.$200>
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
type CustomerBatchSearchResult = Components.Schemas.CustomerBatchSearchResult;
|
|
174
|
-
type CustomerIdentifier = Components.Schemas.CustomerIdentifier;
|
|
175
|
-
type CustomerSearchResult = Components.Schemas.CustomerSearchResult;
|
|
176
|
-
type CustomerSummary = Components.Schemas.CustomerSummary;
|
|
177
|
-
type ErrorResponse = Components.Schemas.ErrorResponse;
|
|
178
|
-
|
|
179
|
-
export { type Client as C, type ErrorResponse as E, 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 };
|