@ecodrix/erix-api 4.0.0 → 4.0.1

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.
@@ -934,7 +934,7 @@ interface ConversationCheck {
934
934
  pass: boolean;
935
935
  reason: string;
936
936
  }
937
- type Ok$1<T> = {
937
+ type Ok$2<T> = {
938
938
  success: boolean;
939
939
  data: T;
940
940
  };
@@ -947,71 +947,71 @@ declare class FlowConversations extends APIResource {
947
947
  list(params?: {
948
948
  page?: number;
949
949
  limit?: number;
950
- }): Promise<Ok$1<{
950
+ }): Promise<Ok$2<{
951
951
  conversations: FlowConversation[];
952
952
  total: number;
953
953
  page: number;
954
954
  pages: number;
955
955
  }>>;
956
- create(params: CreateConversationParams): Promise<Ok$1<FlowConversation>>;
957
- retrieve(id: string): Promise<Ok$1<FlowConversation>>;
956
+ create(params: CreateConversationParams): Promise<Ok$2<FlowConversation>>;
957
+ retrieve(id: string): Promise<Ok$2<FlowConversation>>;
958
958
  /** Edit the draft. Published versions never change. */
959
- update(id: string, params: UpdateConversationParams): Promise<Ok$1<FlowConversation>>;
959
+ update(id: string, params: UpdateConversationParams): Promise<Ok$2<FlowConversation>>;
960
960
  /** A copy as a new draft named "… (copy)": same settings, no versions, not used anywhere. */
961
- duplicate(id: string): Promise<Ok$1<FlowConversation>>;
961
+ duplicate(id: string): Promise<Ok$2<FlowConversation>>;
962
962
  /** Archive. 409 while a chat agent, automation or campaign still uses it. */
963
- archive(id: string): Promise<Ok$1<{
963
+ archive(id: string): Promise<Ok$2<{
964
964
  id: string;
965
965
  archived: boolean;
966
966
  }>>;
967
967
  /** Freeze the draft as the next version. */
968
968
  publish(id: string, params?: {
969
969
  note?: string;
970
- }): Promise<Ok$1<FlowConversation>>;
971
- versions(id: string): Promise<Ok$1<{
970
+ }): Promise<Ok$2<FlowConversation>>;
971
+ versions(id: string): Promise<Ok$2<{
972
972
  versions: ConversationVersion[];
973
973
  }>>;
974
974
  /** One published version in full (its note and config), for Compare. */
975
- version(id: string, version: number): Promise<Ok$1<ConversationVersionDetail>>;
975
+ version(id: string, version: number): Promise<Ok$2<ConversationVersionDetail>>;
976
976
  /** Go back to an earlier version (published again as the next one). */
977
- rollback(id: string, version: number): Promise<Ok$1<FlowConversation>>;
977
+ rollback(id: string, version: number): Promise<Ok$2<FlowConversation>>;
978
978
  /** A dry run of the draft: nothing is sent, saved or run. */
979
979
  try(id: string, params: {
980
980
  message: string;
981
981
  language?: string;
982
982
  history?: ConversationTurn[];
983
- }): Promise<Ok$1<ConversationTryReply>>;
984
- tests(id: string): Promise<Ok$1<{
983
+ }): Promise<Ok$2<ConversationTryReply>>;
984
+ tests(id: string): Promise<Ok$2<{
985
985
  tests: ConversationTest[];
986
986
  }>>;
987
987
  addTest(id: string, params: {
988
988
  input: string;
989
989
  expectTopic?: string;
990
990
  expectContains?: string;
991
- }): Promise<Ok$1<ConversationTest>>;
992
- deleteTest(id: string, testId: string): Promise<Ok$1<{
991
+ }): Promise<Ok$2<ConversationTest>>;
992
+ deleteTest(id: string, testId: string): Promise<Ok$2<{
993
993
  id: string;
994
994
  deleted: boolean;
995
995
  }>>;
996
996
  /** Run every test chat against the draft, or a published `version`. */
997
997
  runTests(id: string, params?: {
998
998
  version?: number;
999
- }): Promise<Ok$1<ConversationTestRun>>;
1000
- deployments(id: string): Promise<Ok$1<{
999
+ }): Promise<Ok$2<ConversationTestRun>>;
1000
+ deployments(id: string): Promise<Ok$2<{
1001
1001
  deployments: ConversationDeployment[];
1002
1002
  }>>;
1003
1003
  /** Every deployment of the workspace (the sidebar's "Agents"). */
1004
- allDeployments(): Promise<Ok$1<{
1004
+ allDeployments(): Promise<Ok$2<{
1005
1005
  deployments: ConversationDeployment[];
1006
1006
  }>>;
1007
- deploy(id: string, params: CreateConversationDeploymentParams): Promise<Ok$1<ConversationDeployment>>;
1008
- updateDeployment(deploymentId: string, params: UpdateConversationDeploymentParams): Promise<Ok$1<ConversationDeployment>>;
1009
- removeDeployment(deploymentId: string): Promise<Ok$1<{
1007
+ deploy(id: string, params: CreateConversationDeploymentParams): Promise<Ok$2<ConversationDeployment>>;
1008
+ updateDeployment(deploymentId: string, params: UpdateConversationDeploymentParams): Promise<Ok$2<ConversationDeployment>>;
1009
+ removeDeployment(deploymentId: string): Promise<Ok$2<{
1010
1010
  id: string;
1011
1011
  deleted: boolean;
1012
1012
  }>>;
1013
1013
  /** Go-live checks: test chats, knowledge, guardrails, WhatsApp fit, voice fit. */
1014
- checks(id: string): Promise<Ok$1<{
1014
+ checks(id: string): Promise<Ok$2<{
1015
1015
  checks: ConversationCheck[];
1016
1016
  }>>;
1017
1017
  }
@@ -1171,7 +1171,9 @@ interface FlowAudience {
1171
1171
  }>;
1172
1172
  createdAt: string | null;
1173
1173
  }
1174
- type AudienceLeftOut = "optedOut" | "noOptIn" | "noPhone";
1174
+ /** Whose rule an audience preview counts: WhatsApp (default), email or call. */
1175
+ type AudienceChannel = "whatsapp" | "email" | "call";
1176
+ type AudienceLeftOut = "optedOut" | "noOptIn" | "noPhone" | "noEmail" | "suppressed" | "noConsent";
1175
1177
  interface AudiencePerson {
1176
1178
  id: string;
1177
1179
  name: string | null;
@@ -1180,9 +1182,11 @@ interface AudiencePerson {
1180
1182
  reason?: AudienceLeftOut;
1181
1183
  }
1182
1184
  interface AudiencePreview {
1185
+ channel?: AudienceChannel;
1183
1186
  total: number;
1184
1187
  reach: number;
1185
- leftOut: Record<AudienceLeftOut, number>;
1188
+ /** Only the reasons of this channel's rule. */
1189
+ leftOut: Partial<Record<AudienceLeftOut, number>>;
1186
1190
  included: AudiencePerson[];
1187
1191
  excluded: AudiencePerson[];
1188
1192
  }
@@ -1297,8 +1301,8 @@ declare class FlowAudiences extends APIResource {
1297
1301
  id: string;
1298
1302
  };
1299
1303
  }>;
1300
- /** Who a saved audience reaches on WhatsApp, and who it leaves out. */
1301
- preview(id: string): Promise<{
1304
+ /** Who a saved audience reaches (WhatsApp unless `channel` says otherwise), and who it leaves out. */
1305
+ preview(id: string, channel?: AudienceChannel): Promise<{
1302
1306
  success: boolean;
1303
1307
  data: AudiencePreview;
1304
1308
  }>;
@@ -1306,6 +1310,7 @@ declare class FlowAudiences extends APIResource {
1306
1310
  previewRules(params: {
1307
1311
  rules: AudienceRule[];
1308
1312
  logic?: "AND" | "OR";
1313
+ channel?: AudienceChannel;
1309
1314
  }): Promise<{
1310
1315
  success: boolean;
1311
1316
  data: AudiencePreview;
@@ -3430,6 +3435,26 @@ interface AppSetup {
3430
3435
  requestedAt: string;
3431
3436
  steps: AppSetupStep[];
3432
3437
  }
3438
+ /** One Facebook / Instagram lead form of the connected Page (`infra.connect.facebook.leadForms.list()`). */
3439
+ interface LeadFormView {
3440
+ id: string;
3441
+ name: string;
3442
+ /** Meta's form status (`ACTIVE`, `ARCHIVED`...), null when unknown. */
3443
+ status: string | null;
3444
+ leadsCount: number | null;
3445
+ /** "Import leads from this form": on unless switched off. */
3446
+ enabled: boolean;
3447
+ }
3448
+ /** The Page's lead forms, whether Meta's lead pings reach ERIX, and when the last lead came in. */
3449
+ interface LeadFormsView {
3450
+ forms: LeadFormView[];
3451
+ /** The app is subscribed to this Page's `leadgen` events. False: call `subscribe()`. */
3452
+ subscribed: boolean;
3453
+ /** ISO time of the last imported lead, null when none yet. */
3454
+ lastLeadAt: string | null;
3455
+ /** Meta's Lead Ads Testing Tool. */
3456
+ testToolUrl: string;
3457
+ }
3433
3458
 
3434
3459
  /**
3435
3460
  * ERIX-Connect — the tenant-facing connections layer.
@@ -3540,6 +3565,51 @@ declare class Connect extends APIResource {
3540
3565
  url: string;
3541
3566
  };
3542
3567
  }>;
3568
+ /**
3569
+ * "Move it to this workspace": an Instagram / LinkedIn login that ended with
3570
+ * code `IN_USE_ELSEWHERE` also carries a `ticket` (single use, 10 minutes).
3571
+ * Owners and admins can move the account here: it is disconnected from the
3572
+ * other workspace and connected to this one. `APIError` code
3573
+ * `MOVE_TICKET_INVALID` (410) when the ticket expired or was used. The other
3574
+ * workspace is never named.
3575
+ */
3576
+ moveChannel(provider: "instagram" | "linkedin", ticket: string): Promise<{
3577
+ success: boolean;
3578
+ data: {
3579
+ account?: string;
3580
+ missing: string[];
3581
+ };
3582
+ }>;
3583
+ /**
3584
+ * "Ask them to remove it": asks the other workspace's owners (for 7 days) to
3585
+ * disconnect the account; this workspace is told when it is free. Needs the
3586
+ * `ticket` of the same login. `APIError` code `ALREADY_FREE` (409) when the
3587
+ * account is no longer connected anywhere.
3588
+ */
3589
+ requestChannelRelease(provider: "instagram" | "linkedin", ticket: string): Promise<{
3590
+ success: boolean;
3591
+ data: {
3592
+ status: "pending";
3593
+ expiresAt: string;
3594
+ account: string;
3595
+ };
3596
+ }>;
3597
+ /** This workspace's open release request for the provider, if any. */
3598
+ channelReleaseRequest(provider: "instagram" | "linkedin"): Promise<{
3599
+ success: boolean;
3600
+ data: {
3601
+ pending: boolean;
3602
+ account?: string;
3603
+ expiresAt?: string;
3604
+ };
3605
+ }>;
3606
+ /** Cancel this workspace's open release request (nobody is notified). */
3607
+ cancelChannelRelease(provider: "instagram" | "linkedin"): Promise<{
3608
+ success: boolean;
3609
+ data: {
3610
+ cancelled: boolean;
3611
+ };
3612
+ }>;
3543
3613
  /**
3544
3614
  * Create a payment link on the tenant's OWN connected gateway
3545
3615
  * (Razorpay / Stripe). Tenant-scoped; requires the `payments` provider to be
@@ -5370,6 +5440,46 @@ declare class Media extends APIResource {
5370
5440
  upload(file: any, options: UploadOptions): Promise<any>;
5371
5441
  }
5372
5442
 
5443
+ /**
5444
+ * Facebook / Instagram Lead Ads (`/v1/api/infra/connect/facebook/lead-forms`).
5445
+ * Leads from the connected Page's forms land in the CRM as source "Meta Lead
5446
+ * Ads" and fire `lead.created`. Writes need a workspace admin.
5447
+ *
5448
+ * `APIError.code`: `NOT_CONNECTED` (409, Facebook not connected),
5449
+ * `LEADS_PERMISSION_MISSING` (403, Meta hasn't given ERIX lead access: reconnect
5450
+ * Facebook and allow lead access), `FACEBOOK_TOKEN_INVALID` (409, sign in again),
5451
+ * `META_RATE_LIMITED` (429), `APP_NOT_CONFIGURED` (503), `META_ERROR` (502).
5452
+ */
5453
+ declare class FacebookLeadForms extends APIResource {
5454
+ /** The Page's lead forms with their switches, whether lead pings are on, and the last lead time. */
5455
+ list(): Promise<{
5456
+ success: boolean;
5457
+ data: LeadFormsView;
5458
+ }>;
5459
+ /** Turn on Meta's lead pings for the Page (keeps the Page's other subscriptions). */
5460
+ subscribe(): Promise<{
5461
+ success: boolean;
5462
+ data: {
5463
+ subscribed: boolean;
5464
+ };
5465
+ }>;
5466
+ /** "Import leads from this form" on or off. */
5467
+ setEnabled(formId: string, enabled: boolean): Promise<{
5468
+ success: boolean;
5469
+ data: {
5470
+ id: string;
5471
+ enabled: boolean;
5472
+ };
5473
+ }>;
5474
+ /** Import the form's last 24 hours of leads (for a missed ping). Leads already imported are skipped. Answers 202: it runs in the background. */
5475
+ importLast24Hours(formId: string): Promise<{
5476
+ success: boolean;
5477
+ data: {
5478
+ queued: boolean;
5479
+ };
5480
+ }>;
5481
+ }
5482
+
5373
5483
  /**
5374
5484
  * ERIX Voice: the AI phone agent (`/v1/api/infra/connect/voice/*`).
5375
5485
  *
@@ -5410,7 +5520,7 @@ type VoiceErrorCode = "NOT_FOUND" | "VOICE_CALL_REFUSED" | "VOICE_NOT_SET_UP" |
5410
5520
  /** The voice error code of a thrown `APIError`, or undefined for anything else. */
5411
5521
  declare function voiceErrorCode(err: unknown): VoiceErrorCode | undefined;
5412
5522
  /** Why a contact is not called. The pre-check's `code` and the campaign preview's `excluded` keys are these. */
5413
- type VoiceRefusalCode = "do_not_call" | "dnd" | "no_consent" | "bad_number" | "hours" | "recently_called" | "campaign_stopped" | "promotional" | "test_limit" | "gate";
5523
+ 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";
5414
5524
  /** One wording for every screen (the same words the server gives): do not copy these into the app. */
5415
5525
  declare const VOICE_REFUSAL_REASONS: Record<VoiceRefusalCode, string>;
5416
5526
  /** The words for a refusal code; unknown codes come back as they are. */
@@ -5476,6 +5586,27 @@ interface VoiceSkill {
5476
5586
  }
5477
5587
  /** The enabled skills only: `{ skillId: { param: value } }`. A skill that is absent is off. */
5478
5588
  type VoiceSkillMap = Record<string, Record<string, number | string>>;
5589
+ /** The tone of the assistant's voice. */
5590
+ type VoiceStyle = "calm" | "natural" | "lively";
5591
+ /** One voice the assistant can speak with (`voice.voices(language)`). */
5592
+ interface VoiceOption {
5593
+ /** Pass this as `voiceName`. Lowercase, e.g. `priya`. */
5594
+ name: string;
5595
+ gender: "female" | "male";
5596
+ /** 1 = clearest, 3 = good, 4 = not ranked. The list is already sorted by it. */
5597
+ tier: 1 | 2 | 3 | 4;
5598
+ /** Recommended for the language asked for. */
5599
+ recommended: boolean;
5600
+ }
5601
+ /** 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. */
5602
+ type VoiceAfterHours = "closed" | "message" | "answer";
5603
+ /** Who "transfer" rings when: `days` (0 = Sunday) between the minutes after midnight (India time). The first match wins; none = `handoffNumber`. */
5604
+ interface VoiceForwardSlot {
5605
+ days: number[];
5606
+ startMinute: number;
5607
+ endMinute: number;
5608
+ number: string;
5609
+ }
5479
5610
  interface VoiceAgent {
5480
5611
  id: string;
5481
5612
  name: string;
@@ -5500,6 +5631,28 @@ interface VoiceAgent {
5500
5631
  spokenName: string | null;
5501
5632
  /** Gender of the assistant's voice. null = the default voice for the language. */
5502
5633
  voiceGender: "female" | "male" | null;
5634
+ /** The picked voice (`voice.voices()`). null = the default voice for `voiceGender`. */
5635
+ voiceName: string | null;
5636
+ /** Speaking speed, 0.8 to 1.2. null = 0.92. */
5637
+ voicePace: number | null;
5638
+ /** null = natural. */
5639
+ voiceStyle: VoiceStyle | null;
5640
+ /** Default `closed`. Acts only when `businessHours` or `closedDates` are set. */
5641
+ afterHours: VoiceAfterHours;
5642
+ /** The owner's own "we are closed" sentence; null = the default line in the caller's language. */
5643
+ closedMessage: string | null;
5644
+ /** India dates (`YYYY-MM-DD`) closed all day. */
5645
+ closedDates: string[];
5646
+ /** Who "transfer" rings when (up to 10 rows). */
5647
+ forwardSchedule: VoiceForwardSlot[];
5648
+ /** Greet a known inbound caller by name. */
5649
+ greetByName: boolean;
5650
+ /** The custom agent that answers voice (its instructions lead the call and its voice values are the ones shown here); null = the workspace's main assistant. */
5651
+ customAgent: {
5652
+ id: string;
5653
+ name: string;
5654
+ instructions: string;
5655
+ } | null;
5503
5656
  /** Read-only: what is said when `spokenName` is empty: the workspace name without a trailing "(...)", e.g. "ECODrIx (Internal)" is said "ECODrIx". */
5504
5657
  defaultSpokenName: string;
5505
5658
  /** Read-only: the workspace name the disclosure says. Change it in the workspace settings. */
@@ -5530,8 +5683,26 @@ interface VoiceAgentInput {
5530
5683
  spokenName?: string | null;
5531
5684
  /** Omitted or null = the default voice for the language. */
5532
5685
  voiceGender?: "female" | "male" | null;
5686
+ /** A voice from `voice.voices()`. Picking one sets `voiceGender` to that voice's gender. Omitted = keep the saved one, null = the default voice. Unknown name: 400. */
5687
+ voiceName?: string | null;
5688
+ /** 0.8 to 1.2. Omitted = keep the saved one, null = 0.92. */
5689
+ voicePace?: number | null;
5690
+ /** Omitted = keep the saved one, null = natural. */
5691
+ voiceStyle?: VoiceStyle | null;
5533
5692
  /** Omitted = `{}` (the defaults). Replaces the whole map. */
5534
5693
  pronunciations?: Record<string, VoicePronunciation>;
5694
+ /** Omitted = keep the saved one. */
5695
+ afterHours?: VoiceAfterHours;
5696
+ /** Up to 300 characters; omitted = keep, empty = the default line. */
5697
+ closedMessage?: string | null;
5698
+ /** India dates, at most 60. Omitted = keep; replaces the list. */
5699
+ closedDates?: string[];
5700
+ /** At most 10 rows; each number must be a phone a person answers. Omitted = keep; replaces the schedule. */
5701
+ forwardSchedule?: VoiceForwardSlot[];
5702
+ /** Omitted = keep. */
5703
+ greetByName?: boolean;
5704
+ /** Instructions of the custom agent that answers voice (up to 4,000; a call uses the first 1,800). Omitted = unchanged; ignored when no custom agent answers voice. */
5705
+ instructions?: string;
5535
5706
  }
5536
5707
  /** The unsaved form values to hear. Anything omitted is read from the saved assistant. */
5537
5708
  interface VoicePreviewInput {
@@ -5543,6 +5714,11 @@ interface VoicePreviewInput {
5543
5714
  language?: string;
5544
5715
  /** null = the default voice. */
5545
5716
  voiceGender?: "female" | "male" | null;
5717
+ /** The voice to try; a picked voice speaks as its own gender. */
5718
+ voiceName?: string | null;
5719
+ /** 0.8 to 1.2. */
5720
+ voicePace?: number | null;
5721
+ voiceStyle?: VoiceStyle | null;
5546
5722
  spokenName?: string | null;
5547
5723
  pronunciations?: Record<string, VoicePronunciation>;
5548
5724
  }
@@ -5552,6 +5728,16 @@ interface VoiceLines {
5552
5728
  inUse: number;
5553
5729
  dailyCap: number;
5554
5730
  callsToday: number;
5731
+ /** Average finished call over the last 30 days, in seconds; null = no calls yet. */
5732
+ avgCallSeconds: number | null;
5733
+ /** "1,000 contacts take about X hours" at your line count. `basis` says whether it uses your own calls or a default. Show it as an estimate. */
5734
+ estimate: {
5735
+ contacts: number;
5736
+ hours: number;
5737
+ basis: "your calls" | "default";
5738
+ };
5739
+ /** Price of one extra line a month, in paise (placeholder until priced). */
5740
+ extraLinePaise: number;
5555
5741
  }
5556
5742
  interface VoiceCall {
5557
5743
  id: string;
@@ -5609,8 +5795,8 @@ interface VoiceCallDetail extends VoiceCall {
5609
5795
  actions: VoiceCallAction[];
5610
5796
  /** `none` = not recorded; `processing` = still being stored (refetch); `ready` = `recordingUrl` plays (link lasts 1 hour). */
5611
5797
  recordingState: "none" | "processing" | "ready";
5612
- /** Why there is no recording when `recordingState` is `none`: `storage_off` = recording storage isn't set up. */
5613
- recordingReason: "storage_off" | null;
5798
+ /** Why there is no recording when `recordingState` is `none`: `recording_off` = the agent's Record calls skill is off; `storage_off` = recording storage isn't set up. */
5799
+ recordingReason: "recording_off" | "storage_off" | null;
5614
5800
  /** Outbound: why the call was placed (`service`, `reminder`, `callback`, `demo_followup`, `test`). */
5615
5801
  purpose: string | null;
5616
5802
  /** Outbound: what the call was for, in the business's words. */
@@ -5711,7 +5897,7 @@ interface VoiceCampaignApproval {
5711
5897
  decidedAt: string | null;
5712
5898
  note: string | null;
5713
5899
  }
5714
- type Ok<T> = {
5900
+ type Ok$1<T> = {
5715
5901
  success: boolean;
5716
5902
  data: T;
5717
5903
  };
@@ -5721,6 +5907,81 @@ type Ok<T> = {
5721
5907
  * what is voice-only: cost preview, live counters and staff approval.
5722
5908
  * A campaign cannot start before staff approve it (409 `VOICE_CAMPAIGN_NOT_APPROVED`).
5723
5909
  */
5910
+ /** Who does the setup of a workspace: the customer, or ECODrIx staff. */
5911
+ type ManagementMode = "self_serve" | "managed";
5912
+ type VoiceKycStatus = "not_started" | "submitted" | "approved" | "rejected";
5913
+ type VoiceBusinessType = "proprietorship" | "partnership" | "llp" | "private_limited" | "public_limited" | "other";
5914
+ /** A business PAN alone is not accepted. */
5915
+ type VoiceKycDocumentType = "gst_certificate" | "incorporation_certificate" | "udyam_certificate";
5916
+ /** One of the four setup steps (`kyc`, `number`, `test_call`, `live`) and who owes it now. */
5917
+ interface VoiceSetupStep {
5918
+ id: string;
5919
+ label: string;
5920
+ short: string;
5921
+ done: boolean;
5922
+ owner: "customer" | "ecodrix";
5923
+ }
5924
+ /** The first unfinished step ("Step 2 of 4, Phone number") and who it waits on. */
5925
+ interface VoiceSetupCurrent {
5926
+ id: string;
5927
+ label: string;
5928
+ short: string;
5929
+ index: number;
5930
+ total: number;
5931
+ waitingOn: "customer" | "ecodrix";
5932
+ }
5933
+ interface VoiceKycView {
5934
+ status: VoiceKycStatus;
5935
+ businessType: string | null;
5936
+ documentType: string | null;
5937
+ /** Last 4 characters only. */
5938
+ documentNumber: string | null;
5939
+ fileName: string | null;
5940
+ submittedAt: string | null;
5941
+ /** Why ECODrIx rejected it, in plain words; set only while `status` is `rejected`. */
5942
+ rejectReason: string | null;
5943
+ }
5944
+ /** Voice setup as this workspace sees it (`voice.setup()`). */
5945
+ interface VoiceSetup {
5946
+ mode: ManagementMode;
5947
+ /** Voice is granted to the workspace. Setup never blocks it. */
5948
+ access: boolean;
5949
+ /** Every call-time gate passes: calls can be placed. */
5950
+ live: boolean;
5951
+ /** You can do the steps: a self-serve workspace owner/admin (or ECODrIx staff inside it). */
5952
+ canAct: boolean;
5953
+ steps: VoiceSetupStep[];
5954
+ current: VoiceSetupCurrent | null;
5955
+ kyc: VoiceKycView;
5956
+ callerNumber: string | null;
5957
+ /** "Ask ECODrIx for a number" was pressed and no number is assigned yet. */
5958
+ numberRequested: boolean;
5959
+ /** KYC and number are done and nothing else blocks it: `goLive()` will work. */
5960
+ canGoLive: boolean;
5961
+ }
5962
+ /** Unassigned platform numbers a workspace may pick (nothing about other workspaces). */
5963
+ interface VoiceFreeNumbers {
5964
+ configured: boolean;
5965
+ numbers: {
5966
+ number: string;
5967
+ alias: string | null;
5968
+ region: string | null;
5969
+ }[];
5970
+ }
5971
+ interface VoiceKycInput {
5972
+ businessType: VoiceBusinessType;
5973
+ documentType: VoiceKycDocumentType;
5974
+ /** GSTIN, CIN or Udyam number; the format is checked for the document type. */
5975
+ documentNumber: string;
5976
+ /** `key` from `kycUploadUrl()` after the PUT. */
5977
+ fileKey: string;
5978
+ fileName: string;
5979
+ }
5980
+ interface VoiceKycUpload {
5981
+ uploadUrl: string;
5982
+ key: string;
5983
+ expiresAt: string;
5984
+ }
5724
5985
  declare class VoiceCampaigns extends APIResource {
5725
5986
  private get flow();
5726
5987
  list(params?: {
@@ -5790,25 +6051,67 @@ declare class VoiceCampaigns extends APIResource {
5790
6051
  };
5791
6052
  }>;
5792
6053
  /** Who would be called, who is left out and why, and the estimated cost in paise. */
5793
- costPreview(campaignId: string): Promise<Ok<VoiceAudiencePreview>>;
6054
+ costPreview(campaignId: string): Promise<Ok$1<VoiceAudiencePreview>>;
5794
6055
  /** Live numbers. Also pushed on the `voice_call_changed` socket event; refetch on it. */
5795
- counters(campaignId: string): Promise<Ok<VoiceCampaignCounters>>;
6056
+ counters(campaignId: string): Promise<Ok$1<VoiceCampaignCounters>>;
5796
6057
  /** `data` is null until approval was requested. */
5797
- approval(campaignId: string): Promise<Ok<VoiceCampaignApproval | null>>;
6058
+ approval(campaignId: string): Promise<Ok$1<VoiceCampaignApproval | null>>;
5798
6059
  /** Ask ECODrIx staff to approve the campaign (workspace admins). */
5799
- requestApproval(campaignId: string): Promise<Ok<VoiceCampaignApproval>>;
6060
+ requestApproval(campaignId: string): Promise<Ok$1<VoiceCampaignApproval>>;
5800
6061
  }
5801
6062
  declare class Voice extends APIResource {
5802
6063
  readonly campaigns: VoiceCampaigns;
5803
6064
  constructor(client: ConstructorParameters<typeof APIResource>[0]);
5804
6065
  /** Can this workspace place and take calls, and if not, why. Answers even while voice is off. */
5805
- status(): Promise<Ok<VoiceStatus>>;
6066
+ status(): Promise<Ok$1<VoiceStatus>>;
6067
+ /**
6068
+ * Voice setup: the four steps (business verification, phone number, test call, go live), who owes the
6069
+ * next one, KYC state and number. Answers even before Voice is visible. Read-only for every member.
6070
+ */
6071
+ setup(): Promise<Ok$1<VoiceSetup>>;
6072
+ /** The platform's unassigned numbers to pick from. */
6073
+ setupNumbers(): Promise<Ok$1<VoiceFreeNumbers>>;
6074
+ /**
6075
+ * Step 1: a presigned PUT for the business document (PDF, JPG or PNG). PUT the file to `uploadUrl` with the
6076
+ * same `Content-Type`, then call `submitKyc` with `key`. Needs workspace owner/admin; 403
6077
+ * `MANAGED_BY_ECODRIX` when ECODrIx manages the workspace.
6078
+ */
6079
+ kycUploadUrl(input: {
6080
+ filename: string;
6081
+ contentType: string;
6082
+ sizeBytes: number;
6083
+ }): Promise<Ok$1<VoiceKycUpload>>;
6084
+ /** Step 1: submit the business verification. 409 `KYC_UNDER_REVIEW` / `KYC_APPROVED` when it can't be sent again. */
6085
+ submitKyc(input: VoiceKycInput): Promise<Ok$1<{
6086
+ status: "submitted";
6087
+ }>>;
6088
+ /** Step 2: take one of `setupNumbers()`. 409 `VOICE_NUMBER_TAKEN` when it is no longer free. */
6089
+ pickNumber(number: string): Promise<Ok$1<{
6090
+ callerNumber: string;
6091
+ }>>;
6092
+ /** Step 2: "Ask ECODrIx for a number". */
6093
+ askForNumber(): Promise<Ok$1<{
6094
+ requested: true;
6095
+ }>>;
6096
+ /**
6097
+ * Step 4: switch Voice on once every other gate passes. 409 `VOICE_NOT_READY` (the reason is in `message`),
6098
+ * 409 `VOICE_ACCESS_REQUIRED`, 403 `MANAGED_BY_ECODRIX`. The pause switch, price, calls at once and the daily
6099
+ * cap stay with ECODrIx.
6100
+ */
6101
+ goLive(): Promise<Ok$1<{
6102
+ live: true;
6103
+ }>>;
5806
6104
  /** This workspace's assistant, or `data: null` before one is saved. */
5807
- agent(): Promise<Ok<VoiceAgent | null>>;
6105
+ agent(): Promise<Ok$1<VoiceAgent | null>>;
5808
6106
  /** The phone skills an assistant can have, with their params. Render the switches from this. */
5809
- skills(): Promise<Ok<VoiceSkill[]>>;
6107
+ skills(): Promise<Ok$1<VoiceSkill[]>>;
6108
+ /**
6109
+ * The voices the assistant can speak with in one language (`hi-IN`): recommended ones first, then best
6110
+ * quality first, each with its gender. Any member can read it. A language that is not supported is a 400.
6111
+ */
6112
+ voices(language: string): Promise<Ok$1<VoiceOption[]>>;
5810
6113
  /** Create or update the assistant (workspace admins). */
5811
- saveAgent(input: VoiceAgentInput): Promise<Ok<VoiceAgent>>;
6114
+ saveAgent(input: VoiceAgentInput): Promise<Ok$1<VoiceAgent>>;
5812
6115
  /**
5813
6116
  * "Play greeting": the assistant's opening (the AI/recording disclosure, then the greeting) as `audio/wav`
5814
6117
  * (8 kHz, at most 20 s), made the way a real call makes it: the chosen language and voice and the
@@ -5819,16 +6122,16 @@ declare class Voice extends APIResource {
5819
6122
  */
5820
6123
  preview(input?: VoicePreviewInput): Promise<ArrayBuffer>;
5821
6124
  /** The workspace's number, lines at once, and today's calls against the daily cap. */
5822
- lines(): Promise<Ok<VoiceLines>>;
6125
+ lines(): Promise<Ok$1<VoiceLines>>;
5823
6126
  /** The last 30 India days of finished calls by result, with the average call length. Refetch on `voice_call_changed`. */
5824
- activity(): Promise<Ok<VoiceActivity>>;
6127
+ activity(): Promise<Ok$1<VoiceActivity>>;
5825
6128
  /** The call log, newest first; filter by direction, status, disposition, dates, contact or campaign. */
5826
- calls(params?: VoiceCallFilters): Promise<Ok<{
6129
+ calls(params?: VoiceCallFilters): Promise<Ok$1<{
5827
6130
  items: VoiceCall[];
5828
6131
  total: number;
5829
6132
  }>>;
5830
6133
  /** One call: transcript, summary, captured fields, recording link. */
5831
- call(callId: string): Promise<Ok<VoiceCallDetail>>;
6134
+ call(callId: string): Promise<Ok$1<VoiceCallDetail>>;
5832
6135
  /**
5833
6136
  * "Call with AI": queue one call to a contact. Refused with 409
5834
6137
  * `VOICE_CALL_REFUSED` and a plain reason (no consent, on the do-not-call
@@ -5839,7 +6142,7 @@ declare class Voice extends APIResource {
5839
6142
  leadId: string;
5840
6143
  purpose?: VoicePurpose;
5841
6144
  goal?: string;
5842
- }): Promise<Ok<VoiceCallQueued>>;
6145
+ }): Promise<Ok$1<VoiceCallQueued>>;
5843
6146
  /**
5844
6147
  * The same check "Call with AI" makes, without queueing a call (K5): `allowed` with the reason in words, or
5845
6148
  * `allowed: false` with a refusal `code` (see `VOICE_REFUSAL_REASONS`). Also says whether the calling hours are open.
@@ -5847,7 +6150,7 @@ declare class Voice extends APIResource {
5847
6150
  checkCallWithAI(input: {
5848
6151
  leadId: string;
5849
6152
  purpose?: VoicePurpose;
5850
- }): Promise<Ok<VoiceCallCheck>>;
6153
+ }): Promise<Ok$1<VoiceCallCheck>>;
5851
6154
  /**
5852
6155
  * "Call my phone": the assistant rings the signed-in person's own mobile number from their profile, so
5853
6156
  * they can hear it (workspace admins; at most 3 a day per number). Same calling hours, caps and pause
@@ -5856,14 +6159,14 @@ declare class Voice extends APIResource {
5856
6159
  */
5857
6160
  callMyPhone(input?: {
5858
6161
  goal?: string;
5859
- }): Promise<Ok<VoiceCallQueued>>;
6162
+ }): Promise<Ok$1<VoiceCallQueued>>;
5860
6163
  /**
5861
6164
  * NOT FOR THE APP UI. Opens a media socket for a browser audio client (a developer tool). It is not
5862
6165
  * "Call my phone": use `callMyPhone`. `mediaUrl` carries a one-time token; never log or store it.
5863
6166
  */
5864
6167
  testCall(input?: {
5865
6168
  fromNumber?: string;
5866
- }): Promise<Ok<{
6169
+ }): Promise<Ok$1<{
5867
6170
  callId: string;
5868
6171
  mediaUrl: string;
5869
6172
  }>>;
@@ -8848,8 +9151,8 @@ declare class Entitlements extends APIResource {
8848
9151
  usage<T = any>(): Promise<T>;
8849
9152
  }
8850
9153
  /**
8851
- * Subscriptions resource — manage plan upgrades, downgrades, cancellations,
8852
- * and add-ons.
9154
+ * Subscriptions resource — manage plan upgrades, downgrades and cancellations
9155
+ * (add-ons: `billing.addOns`).
8853
9156
  *
8854
9157
  * Access via `ecod.platform.billing.subscriptions`.
8855
9158
  */
@@ -8866,14 +9169,66 @@ declare class Subscriptions extends APIResource {
8866
9169
  * Cancel the current subscription.
8867
9170
  */
8868
9171
  cancel<T = any>(body: Record<string, unknown>): Promise<T>;
9172
+ }
9173
+ type Ok<T> = {
9174
+ success: boolean;
9175
+ data: T;
9176
+ };
9177
+ /** Where an add-on stands for the workspace. */
9178
+ type AddOnStatus = "available" | "requested" | "active" | "paused" | "not_on_plan";
9179
+ /** One add-on for this workspace. `pricePaise` is THIS workspace's monthly price (whole paise, paid from credits). */
9180
+ interface AddOnView {
9181
+ slug: string;
9182
+ name: string;
9183
+ description: string | null;
9184
+ /** `capacity` (storage, bandwidth: active at once) or `feature` (staff approve it). */
9185
+ kind: "capacity" | "feature";
9186
+ pricePaise: number;
9187
+ /** True when ECODrIx set a price just for this workspace. */
9188
+ customPrice: boolean;
9189
+ /** Per-unit add-on (storage, bandwidth, extra phone line): `pricePaise` is per unit; pick `quantity` up to `maxQuantity`. */
9190
+ allowsQuantity: boolean;
9191
+ maxQuantity: number;
9192
+ /** Units running now (0 when not held). */
9193
+ quantity: number;
9194
+ /** Fewer units asked for; applies on the 1st. */
9195
+ pendingQuantity: number | null;
9196
+ needsApproval: boolean;
9197
+ status: AddOnStatus;
9198
+ /** ISO date a removal takes effect (the 1st of next month, IST); null when not ending. */
9199
+ endsAt: string | null;
9200
+ }
9201
+ /** "When the plan limit is reached" for one metered feature. `stop` is the default. */
9202
+ interface OverageSetting {
9203
+ key: "ai.agentRepliesPerMonth" | "erix.whatsappMessages";
9204
+ label: string;
9205
+ mode: "stop" | "credits";
9206
+ }
9207
+ /**
9208
+ * Add-ons resource — extras paid from the credit wallet (1 credit = Rs 1).
9209
+ * Feature add-ons (Voice agent, SEO, White-label, Priority support) become an
9210
+ * access request that ECODrIx approves; capacity add-ons (+100 GB storage,
9211
+ * +500 GB bandwidth) are active at once. The monthly fee is taken from credits on
9212
+ * the 1st (IST); unpaid for 3 days pauses the add-on until credits are added.
9213
+ *
9214
+ * Access via `ecod.platform.billing.addOns`.
9215
+ */
9216
+ declare class AddOns extends APIResource {
9217
+ /** Every add-on on sale with this workspace's price and status. */
9218
+ list(): Promise<Ok<AddOnView[]>>;
8869
9219
  /**
8870
- * Purchase an add-on for the current subscription.
8871
- */
8872
- purchaseAddon<T = any>(body: Record<string, unknown>): Promise<T>;
8873
- /**
8874
- * Cancel a previously purchased add-on.
9220
+ * Add one, or change its units when `quantity` is given and it is already held (more: pro-rated and taken
9221
+ * now; fewer: on the 1st). A feature add-on returns `status: "requested"`; a capacity add-on returns `"active"`
9222
+ * and takes the first month (pro-rated) from credits. Refusals keep `code`:
9223
+ * `INSUFFICIENT_CREDITS` (402), `ADDON_NOT_ON_PLAN` (403), `ADDON_NOT_FOUND` (404), `ADDON_NOT_PRICED` (409).
8875
9224
  */
8876
- cancelAddon<T = any>(body: Record<string, unknown>): Promise<T>;
9225
+ add(slug: string, quantity?: number): Promise<Ok<AddOnView>>;
9226
+ /** Remove one at month end; no refund. Adding it again before then keeps it. */
9227
+ remove(slug: string): Promise<Ok<AddOnView>>;
9228
+ /** What happens when a plan limit is reached, for AI replies and WhatsApp messages. */
9229
+ overage(): Promise<Ok<OverageSetting[]>>;
9230
+ /** `stop` (default) or `credits`: keep going and pay the rate from credits. */
9231
+ setOverage(body: Pick<OverageSetting, "key" | "mode">): Promise<Ok<OverageSetting[]>>;
8877
9232
  }
8878
9233
  /**
8879
9234
  * Plans resource — read publicly available plans.
@@ -8999,7 +9354,7 @@ declare class Credits extends APIResource {
8999
9354
  }
9000
9355
  /**
9001
9356
  * Platform billing container — groups the `entitlements`, `subscriptions`,
9002
- * `plans`, `checkout`, `user`, and `credits` sub-resources.
9357
+ * `plans`, `checkout`, `user`, `credits` and `addOns` sub-resources.
9003
9358
  *
9004
9359
  * Access via `ecod.platform.billing`.
9005
9360
  */
@@ -9010,6 +9365,7 @@ declare class Billing {
9010
9365
  readonly checkout: BillingCheckout;
9011
9366
  readonly user: BillingUser;
9012
9367
  readonly credits: Credits;
9368
+ readonly addOns: AddOns;
9013
9369
  constructor(client: AxiosInstance);
9014
9370
  }
9015
9371
 
@@ -9485,10 +9841,17 @@ declare class WhatsAppConnect {
9485
9841
  readonly templates: Templates;
9486
9842
  constructor(client: AxiosInstance);
9487
9843
  }
9844
+ /** Facebook channel: Lead Ads lead forms. */
9845
+ declare class FacebookConnect {
9846
+ readonly leadForms: FacebookLeadForms;
9847
+ constructor(client: AxiosInstance);
9848
+ }
9488
9849
  /** Connect transport (`/v1/api/infra/connect/*`). */
9489
9850
  declare class ConnectInfra {
9490
9851
  readonly email: EmailConnect;
9491
9852
  readonly whatsapp: WhatsAppConnect;
9853
+ /** Facebook Lead Ads: the Page's lead forms, switches, backfill (`/infra/connect/facebook/*`). */
9854
+ readonly facebook: FacebookConnect;
9492
9855
  readonly meet: Meetings;
9493
9856
  readonly connections: Connect;
9494
9857
  /** The AI phone agent: settings, call log, "call with AI", campaigns (`/infra/connect/voice/*`). */
@@ -10178,4 +10541,4 @@ declare function getRetryConfig(error: any): {
10178
10541
  readonly reason: "Generic API errors may be transient and worth retrying";
10179
10542
  };
10180
10543
 
10181
- export { type AIPersona, APIError, APIResource, type AgentAutomationTrigger, type AgentAutonomy, type AgentBudget, type AgentChannel, type AgentResults, type AgentTemplate, 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 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 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 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 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 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, ErixChat, ErixProduct, type EventDefinition, type FieldConfig, type FieldDefinition, type FieldManifest, type FieldType, type FileConfig, type FilterOperator, type FilterRule, type FlowAudience, FlowAudiences, FlowAutomations, 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, 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 LeadPattern, type LeadSource, type LeadStatus, type LearningMemory, type ListLeadsParams, 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 OutboundMedia, type OutreachEdit, 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 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 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 UpdateCampaignParams, type UpdateConversationDeploymentParams, type UpdateConversationParams, type UpdateMemberAccessInput, type UpsertLeadParams, type UrlConfig, VOICE_EVENTS, VOICE_REFUSAL_REASONS, type ViewConfig, type Vocabulary, Voice, type VoiceActivity, type VoiceAgent, type VoiceAgentInput, type VoiceAudiencePreview, type VoiceBusinessHours, 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 VoiceLines, type VoiceLiveStatus, type VoicePreviewInput, type VoicePronunciation, type VoicePurpose, type VoiceRefusalCode, type VoiceSkill, type VoiceSkillMap, type VoiceSkillParam, type VoiceStatus, type VoiceTool, type VoiceTranscriptTurn, WebchatOwnerSettings, WebchatSettingsPatch, WebhookSignatureError, Webhooks, WhatsAppConnect, type WorkspaceDashboardLayout, type WorkspaceDefaultAutomation, type WorkspaceDefaultField, type WorkspaceDefaultPipeline, type WorkspaceModuleConfig, type WorkspaceProfile, ECODrIxAPI as default, getErrorDetails, getRetryConfig, handleAPIError, isAPIError, laieStageQueued, voiceErrorCode, voiceRefusalReason };
10544
+ export { type AIPersona, APIError, APIResource, type AddOnStatus, type AddOnView, type AgentAutomationTrigger, type AgentAutonomy, type AgentBudget, type AgentChannel, type AgentResults, type AgentTemplate, 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 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 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 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 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, ErixChat, ErixProduct, type EventDefinition, type FieldConfig, type FieldDefinition, type FieldManifest, type FieldType, type FileConfig, type FilterOperator, type FilterRule, type FlowAudience, FlowAudiences, FlowAutomations, 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, 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 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 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 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 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 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 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 VoiceKycDocumentType, type VoiceKycInput, type VoiceKycStatus, type VoiceKycUpload, type VoiceKycView, type VoiceLines, type VoiceLiveStatus, type VoiceOption, type VoicePreviewInput, type VoicePronunciation, type VoicePurpose, type VoiceRefusalCode, type VoiceSetup, type VoiceSetupCurrent, type VoiceSetupStep, type VoiceSkill, type VoiceSkillMap, type VoiceSkillParam, type VoiceStatus, type VoiceStyle, type VoiceTool, type VoiceTranscriptTurn, WebchatOwnerSettings, WebchatSettingsPatch, WebhookSignatureError, Webhooks, WhatsAppConnect, type WorkspaceDashboardLayout, type WorkspaceDefaultAutomation, type WorkspaceDefaultField, type WorkspaceDefaultPipeline, type WorkspaceModuleConfig, type WorkspaceProfile, ECODrIxAPI as default, getErrorDetails, getRetryConfig, handleAPIError, isAPIError, laieStageQueued, voiceErrorCode, voiceRefusalReason };