@ecodrix/erix-api 4.3.1 → 4.4.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.
package/dist/ts/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig, Method } from 'axios';
|
|
2
|
-
import { W as WebchatSettingsPatch, a as WebchatOwnerSettings, A as APIError,
|
|
3
|
-
export {
|
|
2
|
+
import { W as WebchatSettingsPatch, a as WebchatOwnerSettings, b as WebchatCheck, c as WebchatOverview, A as APIError, d as AuthenticationError, R as RateLimitError } from './error-DoTEy_ci.js';
|
|
3
|
+
export { e as APIErrorIssue, E as EcodrixError, P as PermissionError, V as VisitorMessage, f as VisitorTyping, g as WebchatSettings, t as toAPIError } from './error-DoTEy_ci.js';
|
|
4
4
|
|
|
5
5
|
/** Supported API route versions. Add `"v2"` here the day the server ships it. */
|
|
6
6
|
type ApiVersion = "v1" | "v2" | "v3";
|
|
@@ -193,7 +193,10 @@ interface AgentResults {
|
|
|
193
193
|
/** A module agent (e.g. `erix.sales`, `connect.channels`) with this month's usage. */
|
|
194
194
|
interface ModuleAgent {
|
|
195
195
|
id: string;
|
|
196
|
-
/**
|
|
196
|
+
/**
|
|
197
|
+
* Built-in agents answer `"module"`; `agents()` also lists the workspace's `CustomAgent`s.
|
|
198
|
+
* @deprecated The server no longer returns it on list items: every agent is a `CustomAgent`.
|
|
199
|
+
*/
|
|
197
200
|
kind?: "module";
|
|
198
201
|
label: string;
|
|
199
202
|
description: string;
|
|
@@ -209,6 +212,97 @@ type ModuleAgentPatch = Partial<Pick<ModuleAgentSettings, "autonomy" | "tools" |
|
|
|
209
212
|
};
|
|
210
213
|
/** Where a custom agent can answer. A channel has at most one agent. */
|
|
211
214
|
type AgentChannel = "whatsapp" | "instagram" | "facebook" | "telegram" | "email" | "webchat" | "voice";
|
|
215
|
+
/** One service in a builder's Knowledge tab. `feePaise` is integer paise. */
|
|
216
|
+
interface AgentBuildService {
|
|
217
|
+
name: string;
|
|
218
|
+
feePaise: number;
|
|
219
|
+
minutes: number;
|
|
220
|
+
how: "clinic" | "online" | "both";
|
|
221
|
+
}
|
|
222
|
+
/** One appointment type in a builder's Appointments tab. */
|
|
223
|
+
interface AgentBuildApptType {
|
|
224
|
+
id: string;
|
|
225
|
+
name: string;
|
|
226
|
+
mode: "person" | "online" | "phone";
|
|
227
|
+
on: boolean;
|
|
228
|
+
where: string;
|
|
229
|
+
who: string;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* The tabbed builder's answers for one custom agent, kept whole so a hidden tab loses nothing.
|
|
233
|
+
* `publishAgent` compiles them into the live agent. Mirrors the server's `agentBuild` schema.
|
|
234
|
+
*/
|
|
235
|
+
interface AgentBuild {
|
|
236
|
+
business: "clinic" | "realestate" | "other";
|
|
237
|
+
job: "book" | "ask";
|
|
238
|
+
channels: AgentChannel[];
|
|
239
|
+
identity: {
|
|
240
|
+
role: "receptionist" | "booking" | "afterhours" | "custom";
|
|
241
|
+
customRole: string;
|
|
242
|
+
greeting: string;
|
|
243
|
+
tone: "warm" | "formal" | "friendly";
|
|
244
|
+
alwaysDo: string;
|
|
245
|
+
language: string;
|
|
246
|
+
mixStyle: "pure" | "mix";
|
|
247
|
+
script: "roman" | "native";
|
|
248
|
+
voiceName: string;
|
|
249
|
+
/** 0.8 to 1.2. */
|
|
250
|
+
speed: number;
|
|
251
|
+
interrupt: boolean;
|
|
252
|
+
};
|
|
253
|
+
knowledge: {
|
|
254
|
+
doctors: string[];
|
|
255
|
+
timings: string;
|
|
256
|
+
services: AgentBuildService[];
|
|
257
|
+
faqs: {
|
|
258
|
+
q: string;
|
|
259
|
+
a: string;
|
|
260
|
+
}[];
|
|
261
|
+
address: string;
|
|
262
|
+
};
|
|
263
|
+
appointments: {
|
|
264
|
+
types: AgentBuildApptType[];
|
|
265
|
+
copyToGoogle: boolean;
|
|
266
|
+
preference: "ask" | "person" | "online";
|
|
267
|
+
};
|
|
268
|
+
behaviour: {
|
|
269
|
+
quoteOnlyFees: boolean;
|
|
270
|
+
noDiscounts: boolean;
|
|
271
|
+
handoverOn: Array<"no_answer" | "asks_person" | "emergency" | "language">;
|
|
272
|
+
handoverTo: string;
|
|
273
|
+
alertAfterMinutes: number;
|
|
274
|
+
alertWho: string;
|
|
275
|
+
};
|
|
276
|
+
/** Catalog actions held on top of what the job gives; checked at publish. */
|
|
277
|
+
tools?: string[];
|
|
278
|
+
/** The agent's own task text, put after the compiled rules. */
|
|
279
|
+
instructions?: string;
|
|
280
|
+
actions: {
|
|
281
|
+
horizonDays: number;
|
|
282
|
+
gapMinutes: number;
|
|
283
|
+
};
|
|
284
|
+
whatsapp: {
|
|
285
|
+
fallback: "menu" | "handover";
|
|
286
|
+
replyHours: "all" | "business";
|
|
287
|
+
};
|
|
288
|
+
phone: {
|
|
289
|
+
pickup: "always" | "missed" | "after_hours";
|
|
290
|
+
rings: number;
|
|
291
|
+
summaryToWhatsapp: boolean;
|
|
292
|
+
maxMinutes: number;
|
|
293
|
+
transferTo: string;
|
|
294
|
+
noAnswer: "message" | "callback";
|
|
295
|
+
/** First line callers hear; `{business}` = the spoken business name. Omit for the default. */
|
|
296
|
+
openingLine?: string;
|
|
297
|
+
/** false = nothing is recorded; absent = the line's recording setting applies. */
|
|
298
|
+
recordCalls?: boolean;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
/** `publishAgent` body. */
|
|
302
|
+
interface PublishAgentInput {
|
|
303
|
+
/** Take channels another agent holds, in the same write (otherwise 409 `CHANNEL_TAKEN`). */
|
|
304
|
+
move?: boolean;
|
|
305
|
+
}
|
|
212
306
|
/**
|
|
213
307
|
* An agent the workspace built (`id` is `custom.<id>`). `custom.default`
|
|
214
308
|
* ("Assistant", `isDefault: true`) always exists: it answers every channel no
|
|
@@ -226,11 +320,14 @@ interface CustomAgent {
|
|
|
226
320
|
/** The template it started from; null = blank. */
|
|
227
321
|
templateId: string | null;
|
|
228
322
|
channels: AgentChannel[];
|
|
229
|
-
|
|
323
|
+
/** @deprecated The server no longer returns it: there is no default agent. */
|
|
324
|
+
isDefault?: boolean;
|
|
230
325
|
/** Bookings run without a person's approval when its autonomy lets it act (default false). */
|
|
231
326
|
autoConfirmBookings: boolean;
|
|
232
327
|
/** Email replies may go out on their own, only in a thread the customer started (default false). */
|
|
233
328
|
autoSendEmail: boolean;
|
|
329
|
+
/** The builder's answers; null until the tabbed builder saved them. */
|
|
330
|
+
build: AgentBuild | null;
|
|
234
331
|
createdBy: string | null;
|
|
235
332
|
createdAt: string;
|
|
236
333
|
/** The tools switched on, described. */
|
|
@@ -257,6 +354,8 @@ interface AgentVersion extends AgentDraft {
|
|
|
257
354
|
at: string;
|
|
258
355
|
/** Who published it (user id), when known. */
|
|
259
356
|
by: string | null;
|
|
357
|
+
/** The builder's answers at that time (restored on rollback); absent on copies made before the builder. */
|
|
358
|
+
build?: AgentBuild;
|
|
260
359
|
}
|
|
261
360
|
/** One line of the builder chat so far. */
|
|
262
361
|
interface AgentChatTurn {
|
|
@@ -299,8 +398,8 @@ interface UnansweredQuestion {
|
|
|
299
398
|
type CustomAgentView = Omit<CustomAgent, "usage" | "results">;
|
|
300
399
|
interface AgentTemplate {
|
|
301
400
|
id: string;
|
|
302
|
-
/**
|
|
303
|
-
niche: string;
|
|
401
|
+
/** Business types it suits: `any`, `healthcare`, `education`, `real_estate`, `ecommerce`, `agency`, `legal`, `fitness`, `hospitality`. */
|
|
402
|
+
niche: string[];
|
|
304
403
|
name: string;
|
|
305
404
|
description: string;
|
|
306
405
|
instructions: string;
|
|
@@ -309,6 +408,8 @@ interface AgentTemplate {
|
|
|
309
408
|
autonomy: "suggest";
|
|
310
409
|
/** Channels it usually answers on (suggestions only). */
|
|
311
410
|
channels: AgentChannel[];
|
|
411
|
+
/** The builder's answers for this template; `publishAgent` compiles them. */
|
|
412
|
+
build: AgentBuild;
|
|
312
413
|
}
|
|
313
414
|
/** From a template, or from blank. */
|
|
314
415
|
type CreateAgentInput = {
|
|
@@ -322,6 +423,8 @@ type CreateAgentInput = {
|
|
|
322
423
|
/** `needsApproval` actions wait for a person at every level, `act` included. */
|
|
323
424
|
autonomy?: AgentAutonomy;
|
|
324
425
|
channels?: AgentChannel[];
|
|
426
|
+
/** The tabbed builder's answers. */
|
|
427
|
+
build?: AgentBuild;
|
|
325
428
|
};
|
|
326
429
|
/** The module patch plus a custom agent's own fields. `channels` isn't allowed on the default agent. */
|
|
327
430
|
type CustomAgentPatch = ModuleAgentPatch & {
|
|
@@ -331,6 +434,8 @@ type CustomAgentPatch = ModuleAgentPatch & {
|
|
|
331
434
|
channels?: AgentChannel[];
|
|
332
435
|
autoConfirmBookings?: boolean;
|
|
333
436
|
autoSendEmail?: boolean;
|
|
437
|
+
/** The tabbed builder's answers (saved whole; `publishAgent` makes them live). */
|
|
438
|
+
build?: AgentBuild;
|
|
334
439
|
};
|
|
335
440
|
/** What "Try it" sends: one message, plus the builder's unsaved draft if any. */
|
|
336
441
|
interface TryAgentInput {
|
|
@@ -364,6 +469,17 @@ interface TryAgentResult {
|
|
|
364
469
|
/** Provider list price in paise. */
|
|
365
470
|
costPaise: number;
|
|
366
471
|
model: string | null;
|
|
472
|
+
/** Knowledge passages used for this answer (max 5, best first). Omitted when none. */
|
|
473
|
+
knowledge?: TryAgentKnowledge[];
|
|
474
|
+
}
|
|
475
|
+
/** One knowledge passage the agent retrieved for a try. */
|
|
476
|
+
interface TryAgentKnowledge {
|
|
477
|
+
/** The knowledge source's title. */
|
|
478
|
+
title: string;
|
|
479
|
+
/** First 200 characters of the passage. */
|
|
480
|
+
snippet: string;
|
|
481
|
+
/** Retrieval similarity, 0-1. */
|
|
482
|
+
score: number;
|
|
367
483
|
}
|
|
368
484
|
/** Run an agent on a schedule or when something happens (creates a draft automation). */
|
|
369
485
|
type AgentAutomationTrigger = {
|
|
@@ -567,6 +683,22 @@ declare class AiAgent extends APIResource {
|
|
|
567
683
|
success: boolean;
|
|
568
684
|
data: CustomAgentView;
|
|
569
685
|
}>;
|
|
686
|
+
/**
|
|
687
|
+
* Compile the saved `build` into the live agent and keep a version (workspace admins). `move: true` takes
|
|
688
|
+
* channels another agent holds in the same write. 400 `NO_BUILD` (nothing saved to publish), 409 `CHANNEL_TAKEN`.
|
|
689
|
+
*/
|
|
690
|
+
publishAgent(id: string, input?: PublishAgentInput): Promise<{
|
|
691
|
+
success: boolean;
|
|
692
|
+
data: CustomAgentView;
|
|
693
|
+
}>;
|
|
694
|
+
/**
|
|
695
|
+
* Restore the stored version made at `at` (an `AgentVersion.at`), builder answers included; the agent as it
|
|
696
|
+
* was becomes a version. 404 `UNKNOWN_VERSION`, 409 `CHANNEL_TAKEN`.
|
|
697
|
+
*/
|
|
698
|
+
rollbackAgent(id: string, at: string): Promise<{
|
|
699
|
+
success: boolean;
|
|
700
|
+
data: CustomAgentView;
|
|
701
|
+
}>;
|
|
570
702
|
/** Delete a custom agent (frees its channels). The default agent answers 400 `DEFAULT_AGENT`; module agents 400 `MODULE_AGENT`. */
|
|
571
703
|
deleteAgent(id: string): Promise<{
|
|
572
704
|
success: boolean;
|
|
@@ -585,8 +717,11 @@ declare class AiAgent extends APIResource {
|
|
|
585
717
|
flowId: string;
|
|
586
718
|
};
|
|
587
719
|
}>;
|
|
588
|
-
/**
|
|
589
|
-
|
|
720
|
+
/**
|
|
721
|
+
* Let a held run continue, or stop it. `nodeId` is the held step the person
|
|
722
|
+
* saw; the server answers 409 `STEP_CHANGED` when the run has moved on.
|
|
723
|
+
*/
|
|
724
|
+
decideRun(runId: string, decision: "approve" | "reject", nodeId: string): Promise<{
|
|
590
725
|
success: boolean;
|
|
591
726
|
decision: string;
|
|
592
727
|
}>;
|
|
@@ -1107,8 +1242,6 @@ declare class Checkout extends APIResource {
|
|
|
1107
1242
|
}): Promise<CheckoutResponse<CheckoutProductLink>>;
|
|
1108
1243
|
}
|
|
1109
1244
|
|
|
1110
|
-
/** How a Connect app is unlocked: `open` is on by default, `request` needs ECODrIx to turn it on. */
|
|
1111
|
-
type ConnectAppAccess = "open" | "request";
|
|
1112
1245
|
/**
|
|
1113
1246
|
* The last automatic check of a connected app (nightly, or `connect.checkNow`).
|
|
1114
1247
|
* `fail` also puts the app in `needs-attention`; `warn` is shown but sending
|
|
@@ -1140,36 +1273,11 @@ interface ConnectionView {
|
|
|
1140
1273
|
configured: boolean;
|
|
1141
1274
|
masked: string;
|
|
1142
1275
|
}[];
|
|
1143
|
-
/** False when
|
|
1276
|
+
/** False when the app is Off for the workspace (not released, or switched off for it by ECODrIx). */
|
|
1144
1277
|
channelAllowed: boolean;
|
|
1145
|
-
/** `request` apps (Voice) show a "Request access" card until `channelAllowed` is true. */
|
|
1146
|
-
access: ConnectAppAccess;
|
|
1147
|
-
/** A time-boxed trial ECODrIx granted that is still running (`endsAt`, ISO); `null` or absent = none. The app switches off at `endsAt` unless converted. */
|
|
1148
|
-
trial?: {
|
|
1149
|
-
endsAt: string;
|
|
1150
|
-
} | null;
|
|
1151
1278
|
/** Last automatic health check; `null` until the first one runs. */
|
|
1152
1279
|
health?: ConnectionHealth | null;
|
|
1153
1280
|
}
|
|
1154
|
-
/** One step of the setup checklist ECODrIx works through for an on-request app. */
|
|
1155
|
-
interface AppSetupStep {
|
|
1156
|
-
id: string;
|
|
1157
|
-
label: string;
|
|
1158
|
-
/** ECODrIx ticks it by hand or the system saw it happen; `done` is all you need. */
|
|
1159
|
-
done: boolean;
|
|
1160
|
-
}
|
|
1161
|
-
/**
|
|
1162
|
-
* Where an on-request app (Voice) stands after the workspace asked for it:
|
|
1163
|
-
* `requested` (waiting on ECODrIx), `setting_up` (approved, steps in progress),
|
|
1164
|
-
* `live` or `declined`. Read-only: only ECODrIx staff change it.
|
|
1165
|
-
*/
|
|
1166
|
-
interface AppSetup {
|
|
1167
|
-
providerId: string;
|
|
1168
|
-
state: "requested" | "setting_up" | "live" | "declined";
|
|
1169
|
-
/** ISO timestamp the workspace asked. */
|
|
1170
|
-
requestedAt: string;
|
|
1171
|
-
steps: AppSetupStep[];
|
|
1172
|
-
}
|
|
1173
1281
|
/** One Facebook / Instagram lead form of the connected Page (`infra.connect.facebook.leadForms.list()`). */
|
|
1174
1282
|
interface LeadFormView {
|
|
1175
1283
|
id: string;
|
|
@@ -1250,6 +1358,23 @@ declare class Connect extends APIResource {
|
|
|
1250
1358
|
success: boolean;
|
|
1251
1359
|
data: WebchatOwnerSettings;
|
|
1252
1360
|
}>;
|
|
1361
|
+
/**
|
|
1362
|
+
* Check that the chat line is on a listed website (owners and admins).
|
|
1363
|
+
* `domain` picks one listed site, else the first.
|
|
1364
|
+
*/
|
|
1365
|
+
verifyWebchat(domain?: string): Promise<{
|
|
1366
|
+
success: boolean;
|
|
1367
|
+
data: WebchatCheck;
|
|
1368
|
+
}>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Website chat numbers for the last 7 or 30 days: chats, AI answers, handed
|
|
1371
|
+
* to the team, contacts, bookings (null until they record the website
|
|
1372
|
+
* chat) and chats per site.
|
|
1373
|
+
*/
|
|
1374
|
+
webchatOverview(days?: 7 | 30): Promise<{
|
|
1375
|
+
success: boolean;
|
|
1376
|
+
data: WebchatOverview;
|
|
1377
|
+
}>;
|
|
1253
1378
|
/**
|
|
1254
1379
|
* Remove a site from the website chat's allowed domains (owners and
|
|
1255
1380
|
* admins), written any way: `https://www.example.com/` removes
|
|
@@ -5698,15 +5823,18 @@ declare class Meetings extends APIResource {
|
|
|
5698
5823
|
duration?: number;
|
|
5699
5824
|
}): Promise<T>;
|
|
5700
5825
|
/**
|
|
5701
|
-
* Cancel a meeting.
|
|
5826
|
+
* Cancel a meeting. The server has no DELETE route: this sets the status to
|
|
5827
|
+
* `"cancelled"` and the meeting stays in the list.
|
|
5702
5828
|
*
|
|
5703
5829
|
* @param meetingId - The meeting to cancel.
|
|
5704
5830
|
*
|
|
5705
5831
|
* @example
|
|
5706
5832
|
* ```typescript
|
|
5707
|
-
* await ecod.infra.connect.meet.
|
|
5833
|
+
* await ecod.infra.connect.meet.cancel("meeting_id");
|
|
5708
5834
|
* ```
|
|
5709
5835
|
*/
|
|
5836
|
+
cancel(meetingId: string): Promise<any>;
|
|
5837
|
+
/** @deprecated Does not delete: it cancels. Use {@link cancel}. */
|
|
5710
5838
|
delete(meetingId: string): Promise<any>;
|
|
5711
5839
|
}
|
|
5712
5840
|
|
|
@@ -7152,7 +7280,11 @@ declare class Auth extends APIResource {
|
|
|
7152
7280
|
*/
|
|
7153
7281
|
declare class Entitlements extends APIResource {
|
|
7154
7282
|
/**
|
|
7155
|
-
* Retrieve the current organization's entitlements.
|
|
7283
|
+
* Retrieve the current organization's entitlements. Besides the plan and
|
|
7284
|
+
* limits it carries `publicPricing` (prices are public for everyone) and
|
|
7285
|
+
* `selfServeBilling` (this workspace may see plans and buy plans, credits and
|
|
7286
|
+
* add-ons itself). While `selfServeBilling` is false, buying answers 403
|
|
7287
|
+
* `SELF_SERVE_BILLING_OFF`; use `billing.requests.create()` instead.
|
|
7156
7288
|
*/
|
|
7157
7289
|
get<T = any>(): Promise<T>;
|
|
7158
7290
|
/**
|
|
@@ -7184,7 +7316,7 @@ type Ok$1<T> = {
|
|
|
7184
7316
|
success: boolean;
|
|
7185
7317
|
data: T;
|
|
7186
7318
|
};
|
|
7187
|
-
/** Where an add-on stands for the workspace. */
|
|
7319
|
+
/** Where an add-on stands for the workspace. `requested` = an open billing request for it. */
|
|
7188
7320
|
type AddOnStatus = "available" | "requested" | "active" | "paused" | "not_on_plan";
|
|
7189
7321
|
/** One add-on for this workspace. `pricePaise` is THIS workspace's monthly price (whole paise, paid from credits). */
|
|
7190
7322
|
interface AddOnView {
|
|
@@ -7203,6 +7335,7 @@ interface AddOnView {
|
|
|
7203
7335
|
quantity: number;
|
|
7204
7336
|
/** Fewer units asked for; applies on the 1st. */
|
|
7205
7337
|
pendingQuantity: number | null;
|
|
7338
|
+
/** @deprecated Always false since 13 Nov 2026: add-ons follow `selfServeBilling` instead of an approval. */
|
|
7206
7339
|
needsApproval: boolean;
|
|
7207
7340
|
status: AddOnStatus;
|
|
7208
7341
|
/** ISO date a removal takes effect (the 1st of next month, IST); null when not ending. */
|
|
@@ -7216,9 +7349,9 @@ interface OverageSetting {
|
|
|
7216
7349
|
}
|
|
7217
7350
|
/**
|
|
7218
7351
|
* Add-ons resource — extras paid from the credit wallet (1 credit = Rs 1).
|
|
7219
|
-
*
|
|
7220
|
-
*
|
|
7221
|
-
*
|
|
7352
|
+
* A workspace with `selfServeBilling` adds them itself (active at once);
|
|
7353
|
+
* otherwise `add()` is refused with 403 `SELF_SERVE_BILLING_OFF` and the owner
|
|
7354
|
+
* sends `billing.requests.create({ kind: "addon", ... })`. The monthly fee is taken from credits on
|
|
7222
7355
|
* the 1st (IST); unpaid for 3 days pauses the add-on until credits are added.
|
|
7223
7356
|
*
|
|
7224
7357
|
* Access via `ecod.platform.billing.addOns`.
|
|
@@ -7228,8 +7361,8 @@ declare class AddOns extends APIResource {
|
|
|
7228
7361
|
list(): Promise<Ok$1<AddOnView[]>>;
|
|
7229
7362
|
/**
|
|
7230
7363
|
* Add one, or change its units when `quantity` is given and it is already held (more: pro-rated and taken
|
|
7231
|
-
* now; fewer: on the 1st).
|
|
7232
|
-
*
|
|
7364
|
+
* now; fewer: on the 1st). It is active at once and takes the first month (pro-rated) from credits.
|
|
7365
|
+
* Refusals keep `code`: `SELF_SERVE_BILLING_OFF` (403: send a billing request instead),
|
|
7233
7366
|
* `INSUFFICIENT_CREDITS` (402), `ADDON_NOT_ON_PLAN` (403), `ADDON_NOT_FOUND` (404), `ADDON_NOT_PRICED` (409).
|
|
7234
7367
|
*/
|
|
7235
7368
|
add(slug: string, quantity?: number): Promise<Ok$1<AddOnView>>;
|
|
@@ -7368,6 +7501,46 @@ declare class Credits extends APIResource {
|
|
|
7368
7501
|
*
|
|
7369
7502
|
* Access via `ecod.platform.billing`.
|
|
7370
7503
|
*/
|
|
7504
|
+
/**
|
|
7505
|
+
* What the owner asks ECODrIx to arrange while buying is off for the workspace
|
|
7506
|
+
* (`selfServeBilling` false in the entitlements): a plan change, credits
|
|
7507
|
+
* (₹500 to ₹1,00,000, whole rupees, 1 credit = ₹1) or an add-on.
|
|
7508
|
+
*/
|
|
7509
|
+
type BillingRequestInput = {
|
|
7510
|
+
kind: "plan";
|
|
7511
|
+
planSlug: string;
|
|
7512
|
+
note?: string;
|
|
7513
|
+
} | {
|
|
7514
|
+
kind: "credits";
|
|
7515
|
+
amountInr: number;
|
|
7516
|
+
note?: string;
|
|
7517
|
+
} | {
|
|
7518
|
+
kind: "addon";
|
|
7519
|
+
addonSlug: string;
|
|
7520
|
+
quantity?: number;
|
|
7521
|
+
note?: string;
|
|
7522
|
+
};
|
|
7523
|
+
/** The Support ticket a billing request became; `existing` when the same request was already open. */
|
|
7524
|
+
interface BillingRequestResult {
|
|
7525
|
+
id: string;
|
|
7526
|
+
ticketNumber: string;
|
|
7527
|
+
existing: boolean;
|
|
7528
|
+
}
|
|
7529
|
+
/**
|
|
7530
|
+
* Billing requests — "Request credits / plan / add-on" while the workspace
|
|
7531
|
+
* can't buy by itself. Each becomes a Support ticket (category `billing`) that
|
|
7532
|
+
* ECODrIx arranges; ECODrIx support is emailed. Owner only (`billing.update`).
|
|
7533
|
+
*
|
|
7534
|
+
* Access via `ecod.platform.billing.requests`.
|
|
7535
|
+
*/
|
|
7536
|
+
declare class BillingRequests extends APIResource {
|
|
7537
|
+
/**
|
|
7538
|
+
* Ask ECODrIx. 201 for a new ticket; 200 with `existing: true` when the same
|
|
7539
|
+
* request is already open. Refusals keep `code`: 400 for an unknown plan or
|
|
7540
|
+
* add-on, too many units, or credits outside ₹500 to ₹1,00,000.
|
|
7541
|
+
*/
|
|
7542
|
+
create(input: BillingRequestInput): Promise<Ok$1<BillingRequestResult>>;
|
|
7543
|
+
}
|
|
7371
7544
|
declare class Billing {
|
|
7372
7545
|
readonly entitlements: Entitlements;
|
|
7373
7546
|
readonly subscriptions: Subscriptions;
|
|
@@ -7376,6 +7549,7 @@ declare class Billing {
|
|
|
7376
7549
|
readonly user: BillingUser;
|
|
7377
7550
|
readonly credits: Credits;
|
|
7378
7551
|
readonly addOns: AddOns;
|
|
7552
|
+
readonly requests: BillingRequests;
|
|
7379
7553
|
constructor(client: AxiosInstance);
|
|
7380
7554
|
}
|
|
7381
7555
|
|
|
@@ -7387,8 +7561,12 @@ interface CatalogItem {
|
|
|
7387
7561
|
label: string;
|
|
7388
7562
|
/** One line. */
|
|
7389
7563
|
description: string;
|
|
7390
|
-
/** `listed
|
|
7564
|
+
/** How the website shows it: `listed`, or `soon` with a "Coming soon" badge. */
|
|
7391
7565
|
status: "listed" | "soon";
|
|
7566
|
+
/** On for every workspace: its version is live (13 Nov 2026). */
|
|
7567
|
+
live: boolean;
|
|
7568
|
+
/** The version it ships in (`v1`, `v2`…); null = not released yet. */
|
|
7569
|
+
version: string | null;
|
|
7392
7570
|
}
|
|
7393
7571
|
/**
|
|
7394
7572
|
* Public catalog: what ERIX offers, as staff set it for the website. No login,
|
|
@@ -7525,17 +7703,6 @@ declare class Support extends APIResource {
|
|
|
7525
7703
|
* @param id - The support ticket ID.
|
|
7526
7704
|
*/
|
|
7527
7705
|
close<T = any>(id: string): Promise<T>;
|
|
7528
|
-
/**
|
|
7529
|
-
* Setup progress of an on-request app the workspace asked for (Voice): the
|
|
7530
|
-
* request state and the checklist, read-only. `data` is `null` when the
|
|
7531
|
-
* workspace never asked for this app.
|
|
7532
|
-
*
|
|
7533
|
-
* @param providerId - The app id, e.g. `voice`.
|
|
7534
|
-
*/
|
|
7535
|
-
channelSetup(providerId: string): Promise<{
|
|
7536
|
-
success: true;
|
|
7537
|
-
data: AppSetup | null;
|
|
7538
|
-
}>;
|
|
7539
7706
|
}
|
|
7540
7707
|
|
|
7541
7708
|
/** The business details Settings › Business details saves. All optional; `null` or `""` clears a text field. */
|
|
@@ -9097,7 +9264,7 @@ type VoiceErrorCode = "NOT_FOUND" | "VOICE_CALL_REFUSED" | "VOICE_NOT_SET_UP" |
|
|
|
9097
9264
|
/** The voice error code of a thrown `APIError`, or undefined for anything else. */
|
|
9098
9265
|
declare function voiceErrorCode(err: unknown): VoiceErrorCode | undefined;
|
|
9099
9266
|
/** Why a contact is not called. The pre-check's `code` and the campaign preview's `excluded` keys are these. */
|
|
9100
|
-
type VoiceRefusalCode = "do_not_call" | "dnd" | "no_consent" | "bad_number" | "hours" | "recently_called" | "campaign_stopped" | "promotional" | "test_limit" | "not_on_plan" | "minutes_used_up" | "low_balance" | "gate";
|
|
9267
|
+
type VoiceRefusalCode = "do_not_call" | "dnd" | "no_consent" | "bad_number" | "hours" | "recently_called" | "campaign_stopped" | "promotional" | "test_limit" | "not_on_plan" | "minutes_used_up" | "low_balance" | "no_agent" | "gate";
|
|
9101
9268
|
/** One wording for every screen (the same words the server gives): do not copy these into the app. */
|
|
9102
9269
|
declare const VOICE_REFUSAL_REASONS: Record<VoiceRefusalCode, string>;
|
|
9103
9270
|
/** The words for a refusal code; unknown codes come back as they are. */
|
|
@@ -9177,6 +9344,27 @@ interface VoiceOption {
|
|
|
9177
9344
|
/** Recommended for the language asked for. */
|
|
9178
9345
|
recommended: boolean;
|
|
9179
9346
|
}
|
|
9347
|
+
/** One voice in the agent builder's picker (`voice.pickerVoices(language)`), from any provider. */
|
|
9348
|
+
interface VoicePickerVoice {
|
|
9349
|
+
/** "sarvam", "cartesia", later others: show `providerLabel`, never branch on this. */
|
|
9350
|
+
provider: string;
|
|
9351
|
+
/** Small label shown on the voice, e.g. "Sarvam". */
|
|
9352
|
+
providerLabel: string;
|
|
9353
|
+
id: string;
|
|
9354
|
+
/** Store this as the agent's voice; the server refuses a value that is not `available` for the workspace. */
|
|
9355
|
+
value: string;
|
|
9356
|
+
name: string;
|
|
9357
|
+
gender: "female" | "male";
|
|
9358
|
+
languages: string[];
|
|
9359
|
+
/** A greeting clip can be played: fetch its link with `voice.pickerPreview(language, value)`. */
|
|
9360
|
+
preview: boolean;
|
|
9361
|
+
/** Show before "Show all voices": the recommended Sarvam voices and every other provider's. */
|
|
9362
|
+
featured: boolean;
|
|
9363
|
+
available: boolean;
|
|
9364
|
+
/** Why it cannot be picked, e.g. "Coming soon". */
|
|
9365
|
+
reason?: string;
|
|
9366
|
+
recommended: boolean;
|
|
9367
|
+
}
|
|
9180
9368
|
/** What the line does outside business hours or on a closed date: `closed` = says it is closed and when it opens, books only open-hour times, takes a message, never transfers; `message` = takes a message only; `answer` = as usual. */
|
|
9181
9369
|
type VoiceAfterHours = "closed" | "message" | "answer";
|
|
9182
9370
|
/** Who "transfer" rings when: `days` (0 = Sunday) between the minutes after midnight (India time). The first match wins; none = `handoffNumber`. */
|
|
@@ -9218,6 +9406,11 @@ interface VoiceNumber {
|
|
|
9218
9406
|
recordingEnabled: boolean | null;
|
|
9219
9407
|
whatsappFollowup: boolean;
|
|
9220
9408
|
}
|
|
9409
|
+
/** `assignNumber`: the number as it is now, and the custom agent that held it before (null = none). */
|
|
9410
|
+
interface VoiceNumberAssigned {
|
|
9411
|
+
number: VoiceNumber;
|
|
9412
|
+
previousAgentId: string | null;
|
|
9413
|
+
}
|
|
9221
9414
|
/** A change to one number; every key optional. */
|
|
9222
9415
|
interface VoiceNumberPatch {
|
|
9223
9416
|
label?: string | null;
|
|
@@ -9544,8 +9737,6 @@ type Ok<T> = {
|
|
|
9544
9737
|
* what is voice-only: cost preview, live counters and staff approval.
|
|
9545
9738
|
* A campaign cannot start before staff approve it (409 `VOICE_CAMPAIGN_NOT_APPROVED`).
|
|
9546
9739
|
*/
|
|
9547
|
-
/** Who does the setup of a workspace: the customer, or ECODrIx staff. */
|
|
9548
|
-
type ManagementMode = "self_serve" | "managed";
|
|
9549
9740
|
/** `suspended` / `expired` come from the phone partner's own verdict. */
|
|
9550
9741
|
type VoiceKycStatus = "not_started" | "submitted" | "approved" | "rejected" | "suspended" | "expired";
|
|
9551
9742
|
type VoiceBusinessType = "proprietorship" | "partnership" | "llp" | "private_limited" | "public_limited" | "other";
|
|
@@ -9605,8 +9796,7 @@ interface VoiceNumbersQuote {
|
|
|
9605
9796
|
}
|
|
9606
9797
|
/** Voice setup as this workspace sees it (`voice.setup()`). */
|
|
9607
9798
|
interface VoiceSetup {
|
|
9608
|
-
|
|
9609
|
-
/** Voice is granted to the workspace. Setup never blocks it. */
|
|
9799
|
+
/** Voice is On for the workspace (its version is live, or ECODrIx switched it on). Setup never blocks it. */
|
|
9610
9800
|
access: boolean;
|
|
9611
9801
|
/** Every call-time gate passes: calls can be placed. */
|
|
9612
9802
|
live: boolean;
|
|
@@ -9840,6 +10030,18 @@ declare class Voice extends APIResource {
|
|
|
9840
10030
|
* quality first, each with its gender. Any member can read it. A language that is not supported is a 400.
|
|
9841
10031
|
*/
|
|
9842
10032
|
voices(language: string): Promise<Ok<VoiceOption[]>>;
|
|
10033
|
+
/**
|
|
10034
|
+
* Every provider's voices for one language, for the agent builder's picker: provider label, gender, preview clip
|
|
10035
|
+
* and whether this workspace may pick it. Any member can read it. A language that is not supported is a 400.
|
|
10036
|
+
*/
|
|
10037
|
+
pickerVoices(language: string): Promise<Ok<VoicePickerVoice[]>>;
|
|
10038
|
+
/**
|
|
10039
|
+
* A short-lived link to one voice's greeting clip (mp3). The clip is made once, the first time anyone asks, then
|
|
10040
|
+
* kept; later calls are only a lookup. 403 for a voice this workspace may not use, 429 after 20 new clips an hour.
|
|
10041
|
+
*/
|
|
10042
|
+
pickerPreview(language: string, value: string): Promise<Ok<{
|
|
10043
|
+
url: string;
|
|
10044
|
+
}>>;
|
|
9843
10045
|
/** Create or update the assistant (workspace admins). */
|
|
9844
10046
|
saveAgent(input: VoiceAgentInput): Promise<Ok<VoiceAgent>>;
|
|
9845
10047
|
/** Every agent of the workspace with the numbers each answers; the default agent is marked. */
|
|
@@ -9863,6 +10065,11 @@ declare class Voice extends APIResource {
|
|
|
9863
10065
|
numbers(): Promise<Ok<VoiceNumber[]>>;
|
|
9864
10066
|
/** Change one number: its agent (`null` = the default agent), name, forwarding, recording, WhatsApp follow-up, default. */
|
|
9865
10067
|
updateNumber(numberId: string, patch: VoiceNumberPatch): Promise<Ok<VoiceNumber>>;
|
|
10068
|
+
/**
|
|
10069
|
+
* Make a custom agent (`custom.<id>`) answer one number; `null` frees it. Workspace admins.
|
|
10070
|
+
* 404 `AGENT_NOT_FOUND` for an unknown agent, 404 `NOT_FOUND` for an unknown number.
|
|
10071
|
+
*/
|
|
10072
|
+
assignNumber(numberId: string, customAgentId: string | null): Promise<Ok<VoiceNumberAssigned>>;
|
|
9866
10073
|
/**
|
|
9867
10074
|
* "Play greeting": the assistant's opening (the AI/recording disclosure, then the greeting) as `audio/wav`
|
|
9868
10075
|
* (8 kHz, at most 20 s), made the way a real call makes it: the chosen language and voice and the
|
|
@@ -9890,6 +10097,8 @@ declare class Voice extends APIResource {
|
|
|
9890
10097
|
* Ask `checkCallWithAI` first to show the reason before the click.
|
|
9891
10098
|
*/
|
|
9892
10099
|
callWithAI(input: {
|
|
10100
|
+
/** The custom agent (`custom.<id>`) that speaks. The server requires it (400 without): there is no default agent. */
|
|
10101
|
+
agentId?: string;
|
|
9893
10102
|
leadId: string;
|
|
9894
10103
|
purpose?: VoicePurpose;
|
|
9895
10104
|
goal?: string;
|
|
@@ -9911,6 +10120,8 @@ declare class Voice extends APIResource {
|
|
|
9911
10120
|
* gate's code.
|
|
9912
10121
|
*/
|
|
9913
10122
|
callMyPhone(input?: {
|
|
10123
|
+
/** The custom agent (`custom.<id>`) that speaks. The server requires it (400 without): there is no default agent. */
|
|
10124
|
+
agentId?: string;
|
|
9914
10125
|
goal?: string;
|
|
9915
10126
|
phone?: string;
|
|
9916
10127
|
consent?: true;
|
|
@@ -9920,6 +10131,8 @@ declare class Voice extends APIResource {
|
|
|
9920
10131
|
* "Call my phone": use `callMyPhone`. `mediaUrl` carries a one-time token; never log or store it.
|
|
9921
10132
|
*/
|
|
9922
10133
|
testCall(input?: {
|
|
10134
|
+
/** The custom agent (`custom.<id>`) the test speaks as. The server requires it (400 without). */
|
|
10135
|
+
agentId?: string;
|
|
9923
10136
|
fromNumber?: string;
|
|
9924
10137
|
}): Promise<Ok<{
|
|
9925
10138
|
callId: string;
|
|
@@ -10161,6 +10374,66 @@ interface TemplateResubmitResult {
|
|
|
10161
10374
|
/** Always `pending`: Meta reviews the edit. */
|
|
10162
10375
|
status: "pending";
|
|
10163
10376
|
}
|
|
10377
|
+
/** One template from Meta's Template Library. Only UTILITY ones are listed: the only kind that can be added. */
|
|
10378
|
+
interface MetaLibraryTemplate {
|
|
10379
|
+
id: string;
|
|
10380
|
+
name: string;
|
|
10381
|
+
language: string;
|
|
10382
|
+
category: "UTILITY";
|
|
10383
|
+
topic: string | null;
|
|
10384
|
+
usecase: string | null;
|
|
10385
|
+
industry: string[];
|
|
10386
|
+
header: string | null;
|
|
10387
|
+
body: string;
|
|
10388
|
+
bodyParams: string[];
|
|
10389
|
+
buttons: Array<{
|
|
10390
|
+
type: string;
|
|
10391
|
+
text: string;
|
|
10392
|
+
url?: string;
|
|
10393
|
+
phoneNumber?: string;
|
|
10394
|
+
}>;
|
|
10395
|
+
}
|
|
10396
|
+
interface MetaLibraryParams {
|
|
10397
|
+
/** Up to 100 characters. */
|
|
10398
|
+
search?: string;
|
|
10399
|
+
/** Meta code, e.g. `E_COMMERCE` (upper case and underscores). */
|
|
10400
|
+
industry?: string;
|
|
10401
|
+
usecase?: string;
|
|
10402
|
+
topic?: string;
|
|
10403
|
+
/** Default `en_US`. */
|
|
10404
|
+
language?: string;
|
|
10405
|
+
/** Cursor from the previous page's `next`. */
|
|
10406
|
+
after?: string;
|
|
10407
|
+
/** One WhatsApp number's WABA; the default number when absent. */
|
|
10408
|
+
accountId?: string;
|
|
10409
|
+
}
|
|
10410
|
+
interface MetaLibraryPage {
|
|
10411
|
+
templates: MetaLibraryTemplate[];
|
|
10412
|
+
/** Cursor for the next page, `null` on the last one. */
|
|
10413
|
+
next: string | null;
|
|
10414
|
+
}
|
|
10415
|
+
/** Values Meta needs for a library template's URL / phone / quick-reply buttons. */
|
|
10416
|
+
type MetaLibraryButtonInput = {
|
|
10417
|
+
type: "URL";
|
|
10418
|
+
url: {
|
|
10419
|
+
baseUrl: string;
|
|
10420
|
+
urlSuffixExample?: string;
|
|
10421
|
+
};
|
|
10422
|
+
} | {
|
|
10423
|
+
type: "PHONE_NUMBER";
|
|
10424
|
+
phoneNumber: string;
|
|
10425
|
+
} | {
|
|
10426
|
+
type: "QUICK_REPLY";
|
|
10427
|
+
};
|
|
10428
|
+
interface MetaLibraryAddInput {
|
|
10429
|
+
/** The library template's `name`. */
|
|
10430
|
+
libraryTemplateName: string;
|
|
10431
|
+
/** Name for the new template: lower case letters, digits, underscores. */
|
|
10432
|
+
name: string;
|
|
10433
|
+
language: string;
|
|
10434
|
+
buttonInputs?: MetaLibraryButtonInput[];
|
|
10435
|
+
accountId?: string;
|
|
10436
|
+
}
|
|
10164
10437
|
type TemplateBindingSource = "crm" | "trigger" | "system" | "manual" | "static" | "computed";
|
|
10165
10438
|
type TemplateEmptyPolicy = "use_fallback" | "error" | "empty_string";
|
|
10166
10439
|
interface TemplateBinding {
|
|
@@ -10278,6 +10551,22 @@ declare class Templates extends APIResource {
|
|
|
10278
10551
|
* ```
|
|
10279
10552
|
*/
|
|
10280
10553
|
create<T = any>(payload: any): Promise<T>;
|
|
10554
|
+
/**
|
|
10555
|
+
* Browse Meta's Template Library (UTILITY templates only). Meta approves
|
|
10556
|
+
* library wording as-is, so a template added from here is usually sendable
|
|
10557
|
+
* at once.
|
|
10558
|
+
*
|
|
10559
|
+
* @example
|
|
10560
|
+
* ```typescript
|
|
10561
|
+
* const { data } = await ecod.infra.connect.whatsapp.templates.metaLibrary({ industry: "E_COMMERCE" });
|
|
10562
|
+
* ```
|
|
10563
|
+
*/
|
|
10564
|
+
metaLibrary(params?: MetaLibraryParams): Promise<TemplateApiResponse<MetaLibraryPage>>;
|
|
10565
|
+
/**
|
|
10566
|
+
* Add a Meta library template to the workspace's WhatsApp Business Account.
|
|
10567
|
+
* Returns the stored template (`metaStatus` is `approved` when Meta approved it).
|
|
10568
|
+
*/
|
|
10569
|
+
addFromMetaLibrary(body: MetaLibraryAddInput): Promise<TemplateApiResponse<Template>>;
|
|
10281
10570
|
/**
|
|
10282
10571
|
* Update an existing WhatsApp template.
|
|
10283
10572
|
*
|
|
@@ -11337,4 +11626,4 @@ interface CustomFieldFilter {
|
|
|
11337
11626
|
value?: unknown;
|
|
11338
11627
|
}
|
|
11339
11628
|
|
|
11340
|
-
export { type AIPersona, APIError, APIResource, type AddOnStatus, type AddOnView, type AgentAutomationTrigger, type AgentAutonomy, type AgentBudget, type AgentChannel, type AgentChatTurn, type AgentDraft, type AgentProposal, type AgentResults, type AgentTemplate, type AgentVersion, AiAgent, type AiAgentSettings, type AiAgentTool, type AiHumanTopics, type AiOutcomeChannel, type AiOutcomeCounts, type AiOutcomes, type AiReviewItem, type AiReviewStats, type AiReviewVerdict, type AiSuggestion, type AnswerFollowupBody, type AnswerOnboardingPayload, type AnswerOnboardingResponse, type AppSetup, type AppSetupStep, type AssignEventPayload, type AudienceChannel, type AudienceFieldRule, type AudienceInput, type AudienceLeftOut, type AudiencePerson, type AudiencePlainRule, type AudiencePreview, type AudienceRule, AuthenticationError, type AutomationCopilotChange, type AutomationCopilotDraft, type AutomationCopilotReach, type AutomationGraph, type AutomationLive, type AutomationLivePerson, type AutomationLiveStep, type AutomationStep, type AutomationTestData, type AutomationTestRunProgress, type AutomationTestRunStart, type AutomationTestRunState, type AutomationTestRunStep, type AutomationVersion, type AutomationVersionDetail, type AutomationVersions, type AutomationWeek, type BehaviorRules, type BuildAnswer, type BuildInput, type CampaignCheck, type CampaignChecks, type CampaignDetail, type CampaignGraph, type CampaignLaunchResult, type CampaignLaunchSummary, type CampaignListItem, type CampaignMode, type CampaignSettingsEdit, type CampaignState, type CampaignWaves, Campaigns, Catalog, type CatalogItem, type ChannelSettings, ChannelSettingsResource, type ChannelSettingsView, type CheckboxConfig, type CheckoutAddress, type CheckoutAmounts, type CheckoutCartEditInput, type CheckoutCoupon, type CheckoutCouponInput, type CheckoutCouponPatch, type CheckoutItem, type CheckoutOrder, type CheckoutOrderAction, type CheckoutOrderList, type CheckoutOrderStatus, type CheckoutProduct, type CheckoutProductInput, type CheckoutProductLink, type CheckoutRazorpayVerifyInput, type CheckoutResponse, type CheckoutSession, type CheckoutSettings, type CheckoutVerifyInput, type CheckoutVerifyResult, Collector, type CollectorKind, type CollectorResult, type CollectorTask, type ColorRule, type ColumnConfig, type CompleteOnboardingPayload, type CompleteOnboardingResponse, type ConfidenceResponse, type ConnectAccount, type ConnectAccountPatch, type ConnectAccountRouting, ConnectAccounts, type ConnectAppAccess, ConnectInfra, type ConnectionHealth, type ConnectionView, type Conversation, type ConversationButton, type ConversationButtonTarget, type ConversationCheck, type ConversationCompare, type ConversationConfig, type ConversationDeployment, type ConversationDeploymentKind, type ConversationDeploymentStats, type ConversationField, type ListParams as ConversationListParams, type ConversationMode, type ConversationMovedToAgent, type ConversationReplyMessage, type ConversationReplySource, type ConversationRollout, type ConversationSaved, type ConversationStep, type ConversationTest, type ConversationTestRun, type ConversationTopic, type ConversationTopicKind, type ConversationTryReply, type ConversationTurn, type ConversationUsage, type ConversationVersion, type ConversationVersionDetail, type Correction, type CreateAgentInput, type CreateCampaignParams, type CreateConversationDeploymentParams, type CreateConversationParams, type CreateLeadParams, type CreatePipelineParams, type CrmView, type CurrencyConfig, type CurrencyValue, type CustomAgent, type CustomAgentPatch, type CustomAgentView, type CustomFieldFilter, type DateConfig, type DateTimeConfig, type DropdownConfig, type DuplicateLead, ECODrIxAPI as ECODrIx, ECODrIxAPI, type ECODrIxAPIOptions, ERROR_RETRY_CONFIG, type EditOnboardingPayload, type EditOnboardingResponse, type EmailConfig, EmailConnect, type EmailPause, ErixChat, ErixProduct, type EventDefinition, type FieldConfig, type FieldDefinition, type FieldManifest, type FieldType, type FileConfig, type FilterOperator, type FilterRule, type FlowAudience, FlowAudiences, FlowAutomations, type FlowBuildPlan, type FlowBuildTarget, type FlowConversation, FlowConversations, type FlowDraftKind, FlowDrafts, type FlowFirstRun, type FlowFirstRunInstall, FlowFirstRunResource, FlowHome, type FlowHomeCounts, type FlowHomeData, type FlowHomeNeed, type FlowHomeUsage, FlowProduct, type FormulaConfig, type GlobalOnboardingPayload, type GrievanceContact, HTTP_STATUS_ERROR_MAP, type ICP, type InboxChannel, InfraDomain, type InviteMemberInput, type InviteResult, KNOWLEDGE_FILE_TYPES, Knowledge, type KnowledgePassage, type KnowledgeSource, LAIE_EVENTS, LEAD_STATUS_VALUES, type LaieAsk, type LaieAssessment, LaieAudits, type LaieBulkResult, type LaieCampaign, type LaieCampaignInput, type LaieCampaignSettings, type LaieCampaignSettingsInput, type LaieCampaignSource, LaieCampaigns, type LaieCell, type LaieCollectInput, LaieCompliance, type LaieConfidence, type LaieCostClass, type LaieCrmImportResult, type LaieEmailCheck, type LaieEnvelope, type LaieFieldEvidence, type LaieFilters, type LaieFindResult, LaieFreshness, type LaieFreshnessStatus, LaieImport, type LaieImportComplete, type LaieLead, type LaieLeadDetail, type LaieLeadListQuery, type LaieLeadUpdate, LaieLeads, LaieLearning, type LaieListEnrichInput, type LaieListEnrichResult, type LaieListRow, LaieLists, type LaieLocality, LaieLookalikes, LaieMarket, type LaieNote, type LaiePack, type LaiePackCategory, type LaiePackId, LaiePacks, type LaiePage, type LaiePipeline, type LaiePipelineSummary, LaieProduct, type LaieRefusal, type LaieRun, type LaieRunChange, type LaieRunQuality, type LaieRunSummary, LaieRuns, type LaieSignalDef, type LaieSignalRow, LaieSignals, type LaieStageInput, type LaieStageName, type LaieStageResult, LaieTools, type LaieUseInput, type LaieUseResult, type LaieWebsiteLookup, type LaunchCampaignParams, type LayoutType, type Lead, type LeadFormView, type LeadFormsView, type LeadPattern, type LeadSource, type LeadStatus, type LearningMemory, type LibraryFile, type LibraryFolder, type ListLeadsParams, type ManagementMode, type ManifestFieldType, type MappingField, type MappingPreviewResult, type MappingSources, type MappingValidationResult, type MerchantCheckoutSession, type MerchantCheckoutSessionInput, type Message, type ModuleAgent, type ModuleAgentPatch, type ModuleAgentSettings, type ModuleAgentTool, type NichePack, type NichePackResearchConfig, type NichePackStatus, type NormalizedFieldValue, type NumberConfig, Onboarding, type OnboardingCohortRange, type OnboardingConfig, type OnboardingExperiment, type OnboardingExperimentStatus, type OnboardingExperimentVariant, type OnboardingMemoryMapping, type OnboardingOption, type OnboardingSession, type OnboardingSessionStatus, type OnboardingStateResponse, type OnboardingStep, type OnboardingStepType, type OrganizationUpdateInput, type OutboundMedia, type OutreachEdit, type OverageSetting, type PaginatedResponse, type PausedRun, type PermissionKey, type PermissionModuleInfo, type PermissionQuickStart, Persona, type PersonaFollowupQuestion, type PersonaFollowupsResponse, type PersonaIdentity, type PersonaTimelineEntry, type PersonaTimelineOptions, type PersonaTimelineResponse, type PhoneConfig, type Pipeline, type PipelineStage, type PipelineStageParams, type PlaceCheckoutOrderInput, type PlacedCheckoutOrder, PlatformDomain, PlatformTenants, PlatformUsers, ProductDomain, type ProgressConfig, type ProposeAgentChangeInput, type PublicCheckoutOrder, type PublicCheckoutProduct, type PublicCheckoutProductResponse, type PublicMerchantCart, type PublicMerchantSession, type PublicMerchantSessionResponse, RateLimitError, type RatingConfig, type RazorpayCheckoutOptions, type ReinforceResponse, type ReinforcementEvent, type RelationConfig, type RelationValue, type RequestOptions, type ResourceManifest, type SendMessageParams, type SendTemplateParams, SeoAudits, type SeoBacklinkOverview, type SeoBacklinkSite, SeoBacklinks, type SeoBrief, type SeoBriefPage, type SeoBriefResult, SeoBriefs, type SeoCcRelease, type SeoCcReleaseRow, type SeoCompetitor, type SeoDifficulty, type SeoDirectory, type SeoDirectoryListing, type SeoDomainStrength, type SeoEnvelope, type SeoFormat, type SeoGap, type SeoGoogleFeatures, type SeoGridPoint, type SeoGscAccess, type SeoGscDenied, type SeoGscImportResult, type SeoGscRow, type SeoGscSummary, type SeoGscTop, SeoInsights, type SeoKeywordIdea, type SeoLabel, SeoLocal, type SeoLocalCheck, type SeoLocalGrid, type SeoLocalGridRow, type SeoLocalHistoryRow, type SeoMapsProfile, type SeoOwnerVerificationMethod, SeoPerformance, SeoProduct, type SeoProject, type SeoProjectInput, SeoProjects, type SeoRankAddResult, type SeoRankChange, type SeoRankCheckRow, type SeoRankDevice, type SeoRankKeyword, type SeoRankLang, type SeoRankMove, type SeoRankPosition, type SeoRankTargetOptions, SeoRanks, type SeoReferringChanges, type SeoReferringDomain, type SeoReferringDomains, type SeoReport, SeoReports, SeoResearch, type SeoRun, type SeoSchedule, type SeoScoreRule, SeoSearchConsole, type SeoSourced, type SeoTopThree, type SeoVisibility, type SeoVisibilityNow, type SeoVitalsCheck, type SeoVitalsField, type SeoVitalsLab, type SeoVitalsStrategy, type ServiceConfig, type ServiceConfigGlobal, type ServiceConfigPerProduct, type SettingsChannel, type SortRule, type StartOnboardingPayload, type StartOnboardingResponse, type StarterKind, type StarterPack, StorageInfra, type StoredFieldValue, type SuggestionEvent, type TagsConfig, type TeamAccessCatalog, type TeamInvitation, type TeamMember, type Template, type TemplateApiResponse, type TemplateBinding, type TemplateBindingSource, type TemplateButton, type TemplateCheck, type TemplateComponent, type TemplateDraft, type TemplateEmptyPolicy, type TemplateFix, type TemplateMapping, type TemplateResubmitInput, type TemplateResubmitResult, type TextConfig, type TriggerPayload, type TriggerResponse, type TryAgentInput, type TryAgentResult, type TryAgentToolCall, type UnansweredQuestion, type UpdateCampaignParams, type UpdateConversationDeploymentParams, type UpdateConversationParams, type UpdateMemberAccessInput, type UpsertLeadParams, type UrlConfig, VOICE_EVENTS, VOICE_REFUSAL_REASONS, type ViewConfig, type Vocabulary, Voice, type VoiceActivity, type VoiceAfterHours, type VoiceAgent, type VoiceAgentInput, type VoiceAgentSummary, type VoiceAudiencePreview, type VoiceBusinessHours, type VoiceBusinessType, type VoiceCall, type VoiceCallAction, type VoiceCallChanged, type VoiceCallCheck, type VoiceCallDetail, type VoiceCallFilters, type VoiceCallQueued, type VoiceCampaignApproval, type VoiceCampaignCounters, VoiceCampaigns, type VoiceDay, type VoiceDirection, type VoiceDisposition, type VoiceErrorCode, type VoiceForwardSlot, type VoiceFreeNumbers, type VoiceKycDetails, type VoiceKycDocumentType, type VoiceKycInput, type VoiceKycRequirement, type VoiceKycStatus, type VoiceKycUpload, type VoiceKycView, type VoiceLines, type VoiceLiveStatus, type VoiceNumber, type VoiceNumberPatch, type VoiceNumbersQuote, type VoiceOption, type VoicePreviewInput, type VoicePronunciation, type VoicePurpose, type VoiceRefusalCode, type VoiceSetup, type VoiceSetupCurrent, type VoiceSetupStep, type VoiceSkill, type VoiceSkillMap, type VoiceSkillParam, type VoiceSpeakingStyle, type VoiceStatus, type VoiceStyle, type VoiceTool, type VoiceTranscriptTurn, WebchatOwnerSettings, WebchatSettingsPatch, WebhookSignatureError, Webhooks, WhatsAppConnect, type WhatsAppProfile, type WhatsAppProfileInput, type WhatsAppSetup, type WhatsAppTestInput, type WorkspaceAuditItem, type WorkspaceAuditPage, type WorkspaceAuditParams, type WorkspaceDashboardLayout, type WorkspaceDefaultAutomation, type WorkspaceDefaultField, type WorkspaceDefaultPipeline, type WorkspaceModuleConfig, type WorkspaceProfile, ECODrIxAPI as default, getErrorDetails, getRetryConfig, handleAPIError, isAPIError, laieStageQueued, voiceErrorCode, voiceRefusalReason };
|
|
11629
|
+
export { type AIPersona, APIError, APIResource, type AddOnStatus, type AddOnView, type AgentAutomationTrigger, type AgentAutonomy, type AgentBudget, type AgentBuild, type AgentBuildApptType, type AgentBuildService, type AgentChannel, type AgentChatTurn, type AgentDraft, type AgentProposal, type AgentResults, type AgentTemplate, type AgentVersion, AiAgent, type AiAgentSettings, type AiAgentTool, type AiHumanTopics, type AiOutcomeChannel, type AiOutcomeCounts, type AiOutcomes, type AiReviewItem, type AiReviewStats, type AiReviewVerdict, type AiSuggestion, type AnswerFollowupBody, type AnswerOnboardingPayload, type AnswerOnboardingResponse, type AssignEventPayload, type AudienceChannel, type AudienceFieldRule, type AudienceInput, type AudienceLeftOut, type AudiencePerson, type AudiencePlainRule, type AudiencePreview, type AudienceRule, AuthenticationError, type AutomationCopilotChange, type AutomationCopilotDraft, type AutomationCopilotReach, type AutomationGraph, type AutomationLive, type AutomationLivePerson, type AutomationLiveStep, type AutomationStep, type AutomationTestData, type AutomationTestRunProgress, type AutomationTestRunStart, type AutomationTestRunState, type AutomationTestRunStep, type AutomationVersion, type AutomationVersionDetail, type AutomationVersions, type AutomationWeek, type BehaviorRules, type BillingRequestInput, type BillingRequestResult, type BuildAnswer, type BuildInput, type CampaignCheck, type CampaignChecks, type CampaignDetail, type CampaignGraph, type CampaignLaunchResult, type CampaignLaunchSummary, type CampaignListItem, type CampaignMode, type CampaignSettingsEdit, type CampaignState, type CampaignWaves, Campaigns, Catalog, type CatalogItem, type ChannelSettings, ChannelSettingsResource, type ChannelSettingsView, type CheckboxConfig, type CheckoutAddress, type CheckoutAmounts, type CheckoutCartEditInput, type CheckoutCoupon, type CheckoutCouponInput, type CheckoutCouponPatch, type CheckoutItem, type CheckoutOrder, type CheckoutOrderAction, type CheckoutOrderList, type CheckoutOrderStatus, type CheckoutProduct, type CheckoutProductInput, type CheckoutProductLink, type CheckoutRazorpayVerifyInput, type CheckoutResponse, type CheckoutSession, type CheckoutSettings, type CheckoutVerifyInput, type CheckoutVerifyResult, Collector, type CollectorKind, type CollectorResult, type CollectorTask, type ColorRule, type ColumnConfig, type CompleteOnboardingPayload, type CompleteOnboardingResponse, type ConfidenceResponse, type ConnectAccount, type ConnectAccountPatch, type ConnectAccountRouting, ConnectAccounts, ConnectInfra, type ConnectionHealth, type ConnectionView, type Conversation, type ConversationButton, type ConversationButtonTarget, type ConversationCheck, type ConversationCompare, type ConversationConfig, type ConversationDeployment, type ConversationDeploymentKind, type ConversationDeploymentStats, type ConversationField, type ListParams as ConversationListParams, type ConversationMode, type ConversationMovedToAgent, type ConversationReplyMessage, type ConversationReplySource, type ConversationRollout, type ConversationSaved, type ConversationStep, type ConversationTest, type ConversationTestRun, type ConversationTopic, type ConversationTopicKind, type ConversationTryReply, type ConversationTurn, type ConversationUsage, type ConversationVersion, type ConversationVersionDetail, type Correction, type CreateAgentInput, type CreateCampaignParams, type CreateConversationDeploymentParams, type CreateConversationParams, type CreateLeadParams, type CreatePipelineParams, type CrmView, type CurrencyConfig, type CurrencyValue, type CustomAgent, type CustomAgentPatch, type CustomAgentView, type CustomFieldFilter, type DateConfig, type DateTimeConfig, type DropdownConfig, type DuplicateLead, ECODrIxAPI as ECODrIx, ECODrIxAPI, type ECODrIxAPIOptions, ERROR_RETRY_CONFIG, type EditOnboardingPayload, type EditOnboardingResponse, type EmailConfig, EmailConnect, type EmailPause, ErixChat, ErixProduct, type EventDefinition, type FieldConfig, type FieldDefinition, type FieldManifest, type FieldType, type FileConfig, type FilterOperator, type FilterRule, type FlowAudience, FlowAudiences, FlowAutomations, type FlowBuildPlan, type FlowBuildTarget, type FlowConversation, FlowConversations, type FlowDraftKind, FlowDrafts, type FlowFirstRun, type FlowFirstRunInstall, FlowFirstRunResource, FlowHome, type FlowHomeCounts, type FlowHomeData, type FlowHomeNeed, type FlowHomeUsage, FlowProduct, type FormulaConfig, type GlobalOnboardingPayload, type GrievanceContact, HTTP_STATUS_ERROR_MAP, type ICP, type InboxChannel, InfraDomain, type InviteMemberInput, type InviteResult, KNOWLEDGE_FILE_TYPES, Knowledge, type KnowledgePassage, type KnowledgeSource, LAIE_EVENTS, LEAD_STATUS_VALUES, type LaieAsk, type LaieAssessment, LaieAudits, type LaieBulkResult, type LaieCampaign, type LaieCampaignInput, type LaieCampaignSettings, type LaieCampaignSettingsInput, type LaieCampaignSource, LaieCampaigns, type LaieCell, type LaieCollectInput, LaieCompliance, type LaieConfidence, type LaieCostClass, type LaieCrmImportResult, type LaieEmailCheck, type LaieEnvelope, type LaieFieldEvidence, type LaieFilters, type LaieFindResult, LaieFreshness, type LaieFreshnessStatus, LaieImport, type LaieImportComplete, type LaieLead, type LaieLeadDetail, type LaieLeadListQuery, type LaieLeadUpdate, LaieLeads, LaieLearning, type LaieListEnrichInput, type LaieListEnrichResult, type LaieListRow, LaieLists, type LaieLocality, LaieLookalikes, LaieMarket, type LaieNote, type LaiePack, type LaiePackCategory, type LaiePackId, LaiePacks, type LaiePage, type LaiePipeline, type LaiePipelineSummary, LaieProduct, type LaieRefusal, type LaieRun, type LaieRunChange, type LaieRunQuality, type LaieRunSummary, LaieRuns, type LaieSignalDef, type LaieSignalRow, LaieSignals, type LaieStageInput, type LaieStageName, type LaieStageResult, LaieTools, type LaieUseInput, type LaieUseResult, type LaieWebsiteLookup, type LaunchCampaignParams, type LayoutType, type Lead, type LeadFormView, type LeadFormsView, type LeadPattern, type LeadSource, type LeadStatus, type LearningMemory, type LibraryFile, type LibraryFolder, type ListLeadsParams, type ManifestFieldType, type MappingField, type MappingPreviewResult, type MappingSources, type MappingValidationResult, type MerchantCheckoutSession, type MerchantCheckoutSessionInput, type Message, type MetaLibraryAddInput, type MetaLibraryButtonInput, type MetaLibraryPage, type MetaLibraryParams, type MetaLibraryTemplate, type ModuleAgent, type ModuleAgentPatch, type ModuleAgentSettings, type ModuleAgentTool, type NichePack, type NichePackResearchConfig, type NichePackStatus, type NormalizedFieldValue, type NumberConfig, Onboarding, type OnboardingCohortRange, type OnboardingConfig, type OnboardingExperiment, type OnboardingExperimentStatus, type OnboardingExperimentVariant, type OnboardingMemoryMapping, type OnboardingOption, type OnboardingSession, type OnboardingSessionStatus, type OnboardingStateResponse, type OnboardingStep, type OnboardingStepType, type OrganizationUpdateInput, type OutboundMedia, type OutreachEdit, type OverageSetting, type PaginatedResponse, type PausedRun, type PermissionKey, type PermissionModuleInfo, type PermissionQuickStart, Persona, type PersonaFollowupQuestion, type PersonaFollowupsResponse, type PersonaIdentity, type PersonaTimelineEntry, type PersonaTimelineOptions, type PersonaTimelineResponse, type PhoneConfig, type Pipeline, type PipelineStage, type PipelineStageParams, type PlaceCheckoutOrderInput, type PlacedCheckoutOrder, PlatformDomain, PlatformTenants, PlatformUsers, ProductDomain, type ProgressConfig, type ProposeAgentChangeInput, type PublicCheckoutOrder, type PublicCheckoutProduct, type PublicCheckoutProductResponse, type PublicMerchantCart, type PublicMerchantSession, type PublicMerchantSessionResponse, type PublishAgentInput, RateLimitError, type RatingConfig, type RazorpayCheckoutOptions, type ReinforceResponse, type ReinforcementEvent, type RelationConfig, type RelationValue, type RequestOptions, type ResourceManifest, type SendMessageParams, type SendTemplateParams, SeoAudits, type SeoBacklinkOverview, type SeoBacklinkSite, SeoBacklinks, type SeoBrief, type SeoBriefPage, type SeoBriefResult, SeoBriefs, type SeoCcRelease, type SeoCcReleaseRow, type SeoCompetitor, type SeoDifficulty, type SeoDirectory, type SeoDirectoryListing, type SeoDomainStrength, type SeoEnvelope, type SeoFormat, type SeoGap, type SeoGoogleFeatures, type SeoGridPoint, type SeoGscAccess, type SeoGscDenied, type SeoGscImportResult, type SeoGscRow, type SeoGscSummary, type SeoGscTop, SeoInsights, type SeoKeywordIdea, type SeoLabel, SeoLocal, type SeoLocalCheck, type SeoLocalGrid, type SeoLocalGridRow, type SeoLocalHistoryRow, type SeoMapsProfile, type SeoOwnerVerificationMethod, SeoPerformance, SeoProduct, type SeoProject, type SeoProjectInput, SeoProjects, type SeoRankAddResult, type SeoRankChange, type SeoRankCheckRow, type SeoRankDevice, type SeoRankKeyword, type SeoRankLang, type SeoRankMove, type SeoRankPosition, type SeoRankTargetOptions, SeoRanks, type SeoReferringChanges, type SeoReferringDomain, type SeoReferringDomains, type SeoReport, SeoReports, SeoResearch, type SeoRun, type SeoSchedule, type SeoScoreRule, SeoSearchConsole, type SeoSourced, type SeoTopThree, type SeoVisibility, type SeoVisibilityNow, type SeoVitalsCheck, type SeoVitalsField, type SeoVitalsLab, type SeoVitalsStrategy, type ServiceConfig, type ServiceConfigGlobal, type ServiceConfigPerProduct, type SettingsChannel, type SortRule, type StartOnboardingPayload, type StartOnboardingResponse, type StarterKind, type StarterPack, StorageInfra, type StoredFieldValue, type SuggestionEvent, type TagsConfig, type TeamAccessCatalog, type TeamInvitation, type TeamMember, type Template, type TemplateApiResponse, type TemplateBinding, type TemplateBindingSource, type TemplateButton, type TemplateCheck, type TemplateComponent, type TemplateDraft, type TemplateEmptyPolicy, type TemplateFix, type TemplateMapping, type TemplateResubmitInput, type TemplateResubmitResult, type TextConfig, type TriggerPayload, type TriggerResponse, type TryAgentInput, type TryAgentKnowledge, type TryAgentResult, type TryAgentToolCall, type UnansweredQuestion, type UpdateCampaignParams, type UpdateConversationDeploymentParams, type UpdateConversationParams, type UpdateMemberAccessInput, type UpsertLeadParams, type UrlConfig, VOICE_EVENTS, VOICE_REFUSAL_REASONS, type ViewConfig, type Vocabulary, Voice, type VoiceActivity, type VoiceAfterHours, type VoiceAgent, type VoiceAgentInput, type VoiceAgentSummary, type VoiceAudiencePreview, type VoiceBusinessHours, type VoiceBusinessType, type VoiceCall, type VoiceCallAction, type VoiceCallChanged, type VoiceCallCheck, type VoiceCallDetail, type VoiceCallFilters, type VoiceCallQueued, type VoiceCampaignApproval, type VoiceCampaignCounters, VoiceCampaigns, type VoiceDay, type VoiceDirection, type VoiceDisposition, type VoiceErrorCode, type VoiceForwardSlot, type VoiceFreeNumbers, type VoiceKycDetails, type VoiceKycDocumentType, type VoiceKycInput, type VoiceKycRequirement, type VoiceKycStatus, type VoiceKycUpload, type VoiceKycView, type VoiceLines, type VoiceLiveStatus, type VoiceNumber, type VoiceNumberAssigned, type VoiceNumberPatch, type VoiceNumbersQuote, type VoiceOption, type VoicePickerVoice, type VoicePreviewInput, type VoicePronunciation, type VoicePurpose, type VoiceRefusalCode, type VoiceSetup, type VoiceSetupCurrent, type VoiceSetupStep, type VoiceSkill, type VoiceSkillMap, type VoiceSkillParam, type VoiceSpeakingStyle, type VoiceStatus, type VoiceStyle, type VoiceTool, type VoiceTranscriptTurn, WebchatCheck, WebchatOverview, WebchatOwnerSettings, WebchatSettingsPatch, WebhookSignatureError, Webhooks, WhatsAppConnect, type WhatsAppProfile, type WhatsAppProfileInput, type WhatsAppSetup, type WhatsAppTestInput, type WorkspaceAuditItem, type WorkspaceAuditPage, type WorkspaceAuditParams, type WorkspaceDashboardLayout, type WorkspaceDefaultAutomation, type WorkspaceDefaultField, type WorkspaceDefaultPipeline, type WorkspaceModuleConfig, type WorkspaceProfile, ECODrIxAPI as default, getErrorDetails, getRetryConfig, handleAPIError, isAPIError, laieStageQueued, voiceErrorCode, voiceRefusalReason };
|