@replicer/sdk 0.1.1 → 0.3.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/index.d.ts CHANGED
@@ -1,548 +1,5 @@
1
- /**
2
- * Request/response types of the Replicer API (`/v1`). Field names are the wire format (snake_case).
3
- */
4
- interface PageParams {
5
- /** 1-based page number (default 1). */
6
- page?: number;
7
- /** Page size, 1..100 (default 20). */
8
- limit?: number;
9
- }
10
- interface Pagination {
11
- page: number;
12
- limit: number;
13
- total: number;
14
- total_pages: number;
15
- }
16
- /** Envelope returned by every list method. */
17
- interface Page<T> {
18
- data: T[];
19
- pagination: Pagination;
20
- }
21
- interface OkResponse {
22
- ok: boolean;
23
- }
24
- /**
25
- * `code` values the API returns in its flat error body `{ error, code }`. Branch on `code`, never on
26
- * the human-readable `error` text. New codes may be added; fall back to the HTTP status.
27
- */
28
- type ApiErrorCode = 'validation_error' | 'bad_request' | 'unauthorized' | 'forbidden' | 'insufficient_scope' | 'not_found' | 'method_not_allowed' | 'conflict' | 'payload_too_large' | 'rate_limited' | 'rate_limit_exceeded' | 'rate_limiter_unavailable' | 'insufficient_balance' | 'quota_exceeded' | 'channel_not_configured' | 'sender_not_supported' | 'media_not_supported' | 'email_provider_not_supported' | 'internal_error' | 'bad_gateway' | 'service_unavailable' | 'gateway_timeout' | 'upstream_timeout' | (string & {});
29
- interface CreatePhoneCallInput {
30
- /** Agent id; must belong to your organization. */
31
- agent_id: string;
32
- /**
33
- * Phone number id (see `phoneNumber.list`). Selects the caller ID. Required unless the agent has a
34
- * default phone number. A number of another organization → 404 `not_found`.
35
- */
36
- from_number_id?: string;
37
- /** Informational only: it does not select the caller ID. Use `from_number_id`. */
38
- from_number?: string;
39
- to_number: string;
40
- /** Sparse override merged on top of the stored agent. */
41
- agent_override?: Record<string, unknown>;
42
- /**
43
- * `{{name}}` substitutions for the prompt, greeting and voicemail message. Up to 100 entries,
44
- * names `[a-zA-Z_][a-zA-Z0-9_]{0,63}`, values up to 5,000 characters; `null` becomes an empty string.
45
- * Wins over `agent_override.dynamicVariables`, which wins over the agent's own variables.
46
- */
47
- dynamic_variables?: Record<string, string | number | boolean | null>;
48
- metadata?: Record<string, unknown>;
49
- /**
50
- * RFC 3339 date-time **with an offset** (`2026-05-01T09:30:00Z` or `+02:00`); the call is scheduled
51
- * instead of dialed immediately. A past time dials immediately; an invalid one → 400.
52
- */
53
- scheduled_at?: string;
54
- customer_name?: string;
55
- /** 0..5 (default 0). Retries repeat the original call (same number, override and metadata). */
56
- max_retries?: number;
57
- /** 5..1440 minutes. */
58
- retry_delay_minutes?: number;
59
- /**
60
- * A retry with the same key (per organization) returns the call already created and never dials
61
- * again. A call that failed to enqueue stays failed: retry with a new key.
62
- */
63
- idempotency_key?: string;
64
- }
65
- interface EnqueueCallResponse {
66
- call_id: string;
67
- /** `pending` or `scheduled` for a new call; a replay of an `idempotency_key` returns the call's current status. */
68
- status: 'pending' | 'scheduled' | (string & {});
69
- }
70
- /**
71
- * `cancel-campaign-pending` first pauses the campaign (RUNNING / SCHEDULED → PAUSED), then cancels its
72
- * pending and queued calls. Resume with `campaign.start`; contacts whose call was cancelled are not redialed.
73
- */
74
- interface CancelCampaignPendingResponse {
75
- ok: boolean;
76
- calls_cancelled: number;
77
- calls_marked: number;
78
- queue_removed: number;
79
- /** Campaign status after the call, e.g. `PAUSED`. */
80
- campaign_status: string | null;
81
- }
82
- /**
83
- * Call statuses. Final states: `analyzed` (the normal end state once post-call analysis is done),
84
- * `completed` (ended, analysis pending), `failed`, `cancelled`, `missed`, `error`.
85
- */
86
- type CallStatus = 'pending' | 'scheduled' | 'queued' | 'retry' | 'in-progress' | 'completed' | 'analyzed' | 'failed' | 'cancelled' | 'missed' | 'error';
87
- interface ListCallsParams extends PageParams {
88
- status?: CallStatus | (string & {});
89
- direction?: string;
90
- /** ISO 8601 lower bound on `started_at`. */
91
- date_from?: string;
92
- /** ISO 8601 upper bound on `started_at`. */
93
- date_to?: string;
94
- }
95
- interface Call {
96
- id: string;
97
- customer_name: string | null;
98
- customer_phone: string | null;
99
- duration: number | null;
100
- status: CallStatus | (string & {});
101
- direction: string | null;
102
- disconnection_reason: string | null;
103
- sentiment: string | null;
104
- summary: string | null;
105
- /** Only returned by `call.get`; list items omit it. */
106
- transcript?: unknown;
107
- recording: string | null;
108
- call_successful: boolean | null;
109
- token_cost: number | null;
110
- agent_id: string | null;
111
- campaign_id: string | null;
112
- started_at: string | null;
113
- ended_at: string | null;
114
- scheduled_at: string | null;
115
- created_at: string | null;
116
- }
117
- interface CreateCampaignInput {
118
- name: string;
119
- description?: string;
120
- user_agent_id: string;
121
- /** Ignored for API keys (the campaign is attributed to your organization's owner). Only trusted internal callers need it. */
122
- user_id?: string;
123
- from_phone_number_id?: string;
124
- from_number_attempts?: string[];
125
- from_number_strategy?: 'rolling' | 'clamp' | 'custom';
126
- contact_attempt_strategy?: 'rolling' | 'clamp' | 'custom';
127
- /** Non-empty; every contact needs `phone_number`. Up to 100,000 (and the 10 MiB body limit). */
128
- contacts: Record<string, unknown>[];
129
- variable_mapping?: Record<string, string>;
130
- /** RFC 3339 with an offset; invalid → 400. */
131
- scheduled_at?: string;
132
- /** 0..5 (default 0). */
133
- max_retries?: number;
134
- /** 5..1440 (default 30). */
135
- retry_delay_minutes?: number;
136
- /** Unique integers 0..6 (0 = Sunday); `[]` = every day. */
137
- calling_days?: number[];
138
- /** `HH:MM`; set both or neither, start before end. */
139
- calling_start_time?: string;
140
- calling_end_time?: string;
141
- /** IANA time zone (default `Europe/Rome`). */
142
- timezone?: string;
143
- /** 1..100 and at most your plan's concurrency. */
144
- max_concurrency?: number | null;
145
- /** 0..50 and at most your plan's concurrency. */
146
- keep_free_for_inbound?: number;
147
- }
148
- interface CreateCampaignResponse {
149
- success: boolean;
150
- campaign: Campaign;
151
- }
152
- interface GetCampaignResponse {
153
- success: boolean;
154
- campaign: Campaign & {
155
- /** Up to 1,000 contacts, in campaign order. */
156
- contacts: Record<string, unknown>[];
157
- /** True when the campaign has more contacts than returned (`contact_count` > `contacts.length`). */
158
- contacts_truncated: boolean;
159
- };
160
- }
161
- interface ListCampaignsParams extends PageParams {
162
- /** DRAFT | SCHEDULED | RUNNING | PAUSED | COMPLETED | CANCELLED (case-insensitive). */
163
- status?: string;
164
- }
165
- /** Campaign as returned by create, get and list (the same field whitelist everywhere). */
166
- interface Campaign {
167
- id: string;
168
- name: string;
169
- description: string | null;
170
- status: string;
171
- agent_id: string;
172
- from_phone_number_id: string | null;
173
- /** E.164 caller ID (the campaign's number). */
174
- from_number: string | null;
175
- /** E.164 caller IDs, in order. */
176
- from_number_attempts: string[] | null;
177
- from_number_strategy: string | null;
178
- contact_attempt_strategy: string | null;
179
- total_contacts: number;
180
- contact_count: number;
181
- variable_mapping: Record<string, string> | null;
182
- max_retries: number;
183
- retry_delay_minutes: number;
184
- max_concurrency: number | null;
185
- keep_free_for_inbound: number;
186
- calling_days: number[] | null;
187
- calling_start_time: string | null;
188
- calling_end_time: string | null;
189
- timezone: string;
190
- calls_started: number;
191
- calls_completed: number;
192
- calls_failed: number;
193
- scheduled_at: string | null;
194
- started_at: string | null;
195
- completed_at: string | null;
196
- created_at: string | null;
197
- updated_at: string | null;
198
- }
199
- /** @deprecated Use `Campaign`. */
200
- type CampaignListItem = Campaign;
201
- interface StartCampaignResponse {
202
- id: string;
203
- status: 'RUNNING';
204
- }
205
- interface ProvisionInboundInput {
206
- /** Phone number id. */
207
- id: string;
208
- label?: string;
209
- from_number: string;
210
- }
211
- interface ProvisionInboundResponse {
212
- inbound_trunk_id: string;
213
- inbound_dispatch_rule_id: string;
214
- }
215
- interface PhoneNumber {
216
- /** Pass as `from_number_id` to `call.createPhoneCall` and as `id` to the inbound routes. */
217
- id: string;
218
- /** E.164. */
219
- phone_number: string;
220
- label: string | null;
221
- country: string | null;
222
- number_type: string | null;
223
- is_active: boolean;
224
- inbound_agent_id: string | null;
225
- inbound_enabled: boolean;
226
- created_at: string;
227
- }
228
- /** `remaining` in the 502 `bad_gateway` body when only part of an inbound deprovision succeeded. */
229
- interface DeprovisionInboundRemaining {
230
- trunk_id?: string;
231
- rule_id?: string;
232
- }
233
- /** Up to 50 per request; `text` non-empty, at most 100 KB (1 MB total per request). */
234
- interface KnowledgeBaseTextSource {
235
- title?: string;
236
- text: string;
237
- }
238
- /** A URL whose host did not resolve: skipped instead of failing the whole request. */
239
- interface KnowledgeBaseRejectedUrl {
240
- url: string;
241
- reason: string;
242
- }
243
- interface KnowledgeBaseCreateInput {
244
- knowledge_base_name?: string;
245
- name?: string;
246
- description?: string;
247
- knowledge_base_urls?: string[];
248
- knowledge_base_texts?: KnowledgeBaseTextSource[];
249
- chunks_to_retrieve?: number;
250
- similarity_threshold?: number;
251
- instruction?: string;
252
- use_llm_extraction?: boolean;
253
- }
254
- interface KnowledgeBaseUpdateInput {
255
- name?: string;
256
- description?: string | null;
257
- chunks_to_retrieve?: number;
258
- similarity_threshold?: number;
259
- instruction?: string | null;
260
- use_llm_extraction?: boolean;
261
- }
262
- interface KnowledgeBaseAddSourcesInput {
263
- knowledge_base_urls?: string[];
264
- knowledge_base_texts?: KnowledgeBaseTextSource[];
265
- }
266
- interface KnowledgeBaseSourceSummary {
267
- source_id: string;
268
- type: string;
269
- title: string;
270
- url?: string | null;
271
- status: string;
272
- error?: string | null;
273
- chunk_count: number;
274
- filename?: string | null;
275
- }
276
- interface KnowledgeBaseResponse {
277
- knowledge_base_id: string;
278
- knowledge_base_name: string;
279
- name: string;
280
- description?: string | null;
281
- status: string;
282
- chunks_to_retrieve: number;
283
- similarity_threshold: number;
284
- instruction?: string | null;
285
- use_llm_extraction: boolean;
286
- source_count: number;
287
- knowledge_base_sources: KnowledgeBaseSourceSummary[];
288
- sources: KnowledgeBaseSourceSummary[];
289
- created_at: string;
290
- updated_at: string;
291
- }
292
- /** Returned by `knowledgeBase.create` and `knowledgeBase.addSources`. */
293
- interface KnowledgeBaseSourcesResponse extends KnowledgeBaseResponse {
294
- rejected_urls: KnowledgeBaseRejectedUrl[];
295
- }
296
- interface KnowledgeBaseListResponse {
297
- knowledge_bases: KnowledgeBaseResponse[];
298
- }
299
- interface PresignFileInput {
300
- filename: string;
301
- mime_type: string;
302
- /** Exact upload size in bytes: the presigned URL signs it, so the PUT body must match. */
303
- size_bytes: number;
304
- title?: string;
305
- }
306
- interface PresignFileResponse {
307
- source_id: string;
308
- upload_url: string;
309
- required_headers: Record<string, string>;
310
- expires_in: number;
311
- storage_key: string;
312
- }
313
- interface FailFileInput {
314
- error?: string;
315
- }
316
- interface UpdateSourceInput {
317
- extracted_markdown?: string;
318
- title?: string;
319
- }
320
- interface UpdateChunkInput {
321
- enabled?: boolean;
322
- relevance_weight?: number;
323
- }
324
- interface KnowledgeBaseChunk {
325
- id: string;
326
- chunk_index: number;
327
- content: string;
328
- enabled: boolean;
329
- relevance_weight: number;
330
- }
331
- interface KnowledgeBaseSourceDetail {
332
- id: string;
333
- knowledge_base_id: string;
334
- type: string;
335
- title: string;
336
- url: string | null;
337
- filename: string | null;
338
- mime_type: string | null;
339
- size_bytes: number | null;
340
- raw_text: string | null;
341
- extracted_markdown: string | null;
342
- status: string;
343
- error: string | null;
344
- chunk_count: number;
345
- chunks: KnowledgeBaseChunk[];
346
- }
347
- interface PresignFileDownloadResponse {
348
- download_url: string;
349
- expires_in: number;
350
- filename: string;
351
- mime_type: string | null;
352
- }
353
- interface ListContactsParams extends PageParams {
354
- /** Case-insensitive match on name, phone, email or company. */
355
- search?: string;
356
- }
357
- interface Contact {
358
- id: string;
359
- first_name: string | null;
360
- last_name: string | null;
361
- company: string | null;
362
- job_title: string | null;
363
- phone_number: string | null;
364
- email: string | null;
365
- street: string | null;
366
- city: string | null;
367
- state: string | null;
368
- postal_code: string | null;
369
- country: string | null;
370
- website: string | null;
371
- birthday: string | null;
372
- notes: string | null;
373
- created_at: string;
374
- updated_at: string;
375
- }
376
- /** At least one of `first_name` / `last_name` is required. */
377
- interface CreateContactInput {
378
- first_name?: string;
379
- last_name?: string;
380
- company?: string;
381
- job_title?: string;
382
- phone_number?: string;
383
- email?: string;
384
- street?: string;
385
- city?: string;
386
- state?: string;
387
- postal_code?: string;
388
- country?: string;
389
- website?: string;
390
- notes?: string;
391
- }
392
- interface ContactIdentityConflict {
393
- type: 'PHONE' | 'EMAIL';
394
- value: string;
395
- /** The contact that already owns this address (it is not reassigned). */
396
- owner_contact_id: string;
397
- }
398
- interface CreateContactResponse {
399
- id: string;
400
- first_name: string;
401
- last_name: string;
402
- /** Usually empty. */
403
- identity_conflicts: ContactIdentityConflict[];
404
- }
405
- interface Agent {
406
- id: string;
407
- agent_name: string;
408
- agent_type: string;
409
- call_direction: string | null;
410
- voice_id: string | null;
411
- language: string | null;
412
- is_active: boolean;
413
- /** The agent's default outbound phone number id, if any. */
414
- phone_number_id: string | null;
415
- created_at: string;
416
- }
417
- type CalendarEventStatus = 'CONFIRMED' | 'CANCELLED' | 'COMPLETED' | 'NO_SHOW';
418
- interface ListCalendarEventsParams extends PageParams {
419
- calendar_id?: string;
420
- status?: CalendarEventStatus;
421
- /** RFC 3339 lower bound on `start_time`; unparseable values are ignored by the API. */
422
- date_from?: string;
423
- /** RFC 3339 upper bound on `start_time`; unparseable values are ignored by the API. */
424
- date_to?: string;
425
- }
426
- interface CalendarEvent {
427
- id: string;
428
- calendar_id: string;
429
- event_type_id: string;
430
- start_time: string;
431
- end_time: string;
432
- timezone: string;
433
- customer_name: string;
434
- customer_phone: string;
435
- customer_email: string | null;
436
- notes: string | null;
437
- title: string | null;
438
- location: string | null;
439
- status: string;
440
- booked_via: string | null;
441
- created_at: string;
442
- }
443
- interface CreateCalendarEventInput {
444
- calendar_id: string;
445
- event_type_id: string;
446
- /** RFC 3339 with an offset, e.g. `2026-04-05T14:00:00Z`. Impossible dates (Feb 30, `T24:00`) → 400. */
447
- start_time: string;
448
- customer_name: string;
449
- customer_phone: string;
450
- customer_email?: string;
451
- notes?: string;
452
- title?: string;
453
- location?: string;
454
- }
455
- interface CreateCalendarEventResponse {
456
- id: string;
457
- start_time: string;
458
- end_time: string;
459
- status: 'CONFIRMED';
460
- }
461
- type MessageChannel = 'sms' | 'whatsapp' | 'email';
462
- interface ListMessagesParams extends PageParams {
463
- channel?: MessageChannel;
464
- }
465
- interface Message {
466
- id: string;
467
- channel: 'SMS' | 'WHATSAPP' | 'EMAIL' | (string & {});
468
- direction: string;
469
- status: string;
470
- from_address: string;
471
- to_address: string;
472
- subject: string | null;
473
- body: string;
474
- external_id: string | null;
475
- error_message: string | null;
476
- created_at: string;
477
- }
478
- interface SendSmsInput {
479
- to: string;
480
- body: string;
481
- /**
482
- * Optional. SMS always goes out from your organization's default approved Sender ID; `from` may only
483
- * name that sender (a phone number or another sender → 422 `sender_not_supported`).
484
- */
485
- from?: string;
486
- }
487
- interface SendWhatsappInput {
488
- to: string;
489
- body: string;
490
- from?: string;
491
- /** Attachments are not supported: a non-empty array → 422 `media_not_supported`. */
492
- media_url?: string[];
493
- }
494
- interface SendEmailInput {
495
- to: string;
496
- subject: string;
497
- body: string;
498
- /** Must be the sender address configured in your SMTP email settings, if given. */
499
- from?: string;
500
- }
501
- /** Returned (HTTP 202) by every send method: the message is queued, not yet delivered. */
502
- interface SendMessageResponse {
503
- task_id: string;
504
- channel: MessageChannel;
505
- status: 'queued';
506
- }
507
- interface CreateTtsInput {
508
- /** Up to 10,000 characters (Unicode code points; an emoji counts as 1). */
509
- text: string;
510
- /** One of the 29 built-in voice names (case-insensitive) or a raw provider voice id. */
511
- voice?: string;
512
- language?: string;
513
- speed?: number;
514
- stability?: number;
515
- similarity_boost?: number;
516
- style?: number;
517
- }
518
- interface CreateTtsResponse {
519
- id: string;
520
- status: 'queued';
521
- character_count: number;
522
- }
523
- interface ListTtsParams extends PageParams {
524
- status?: string;
525
- }
526
- interface TtsGeneration {
527
- id: string;
528
- text: string;
529
- character_count: number;
530
- voice: string;
531
- language: string;
532
- speed: number;
533
- stability: number;
534
- similarity_boost: number;
535
- style: number;
536
- source: string;
537
- call_id: string | null;
538
- status: string;
539
- audio_url: string | null;
540
- audio_duration_seconds: number | null;
541
- token_cost: number | null;
542
- error_message: string | null;
543
- created_at: string;
544
- completed_at: string | null;
545
- }
1
+ import { C as CreatePhoneCallInput, E as EnqueueCallResponse, S as SimulateInboundCallInput, a as SimulateInboundCallResponse, O as OkResponse, b as CancelCampaignPendingResponse, L as ListCallsParams, P as Page, c as Call, d as CreateCampaignInput, e as Campaign, G as GetCampaignResponse, f as ListCampaignsParams, g as StartCampaignResponse, h as PageParams, i as PhoneNumber, j as ProvisionInboundInput, k as ProvisionInboundResponse, I as ImportPhoneNumberInput, U as UpdatePhoneNumberInput, K as KnowledgeBaseCreateInput, l as KnowledgeBaseSourcesResponse, m as KnowledgeBaseResponse, n as KnowledgeBaseListResponse, o as KnowledgeBaseAddSourcesInput, p as KnowledgeBaseUpdateInput, q as PresignFileInput, r as PresignFileResponse, F as FailFileInput, s as UpdateSourceInput, t as UpdateChunkInput, u as KnowledgeBaseSourceDetail, v as PresignFileDownloadResponse, w as ListContactsParams, x as Contact, y as CreateContactInput, z as CreateContactResponse, A as ListAgentsParams, B as Agent, D as AgentDetail, H as CreateAgentInput, J as UpdateAgentInput, M as Calendar, N as CreateCalendarInput, Q as CalendarDetail, R as UpdateCalendarInput, T as CreateEventTypeInput, V as EventTypeDetail, W as UpdateEventTypeInput, X as ListCalendarEventsParams, Y as CalendarEvent, Z as CreateCalendarEventInput, _ as CreateCalendarEventResponse, $ as UpdateCalendarEventInput, a0 as ListMessagesParams, a1 as Message, a2 as SendSmsInput, a3 as SendMessageResponse, a4 as SendWhatsappInput, a5 as SendEmailInput, a6 as CreateTtsInput, a7 as CreateTtsResponse, a8 as ListTtsParams, a9 as TtsGeneration, aa as CreateWebhookEndpointInput, ab as WebhookEndpointWithSecret, ac as WebhookEndpoint, ad as UpdateWebhookEndpointInput, ae as TestWebhookEndpointInput, af as TestWebhookEndpointResponse, ag as ListWebhookDeliveriesParams, ah as WebhookDelivery, ai as ListWebhookDeliveryAttemptsParams, aj as WebhookDeliveryAttempt, ak as CreateAgentToolInput, al as AgentTool, am as ListAgentToolsParams, an as UpdateAgentToolInput, ao as TestAgentToolInput, ap as TestAgentToolResponse, aq as ListEventsParams, ar as WebhookEvent } from './types-DXQsrvOU.js';
2
+ export { as as AgentTemplate, at as AgentToolConfig, au as AgentType, av as AnyWebhookEvent, aw as ApiErrorCode, ax as CalendarAvailabilitySlot, ay as CalendarEventStatus, az as CalendarType, aA as CallDirection, aB as CallSentiment, aC as CallStatus, aD as CampaignListItem, aE as CampaignStatus, aF as CancelCallInput, aG as CancelCampaignPendingInput, aH as ContactIdentityConflict, aI as ContactIdentityType, aJ as Conversation, aK as ConversationChannel, aL as ConversationStatus, aM as CreateCampaignResponse, aN as DeleteKnowledgeBaseSourceParams, aO as DeletedResource, aP as DeprovisionInboundParams, aQ as DeprovisionInboundRemaining, aR as EventType, aS as EventTypeInput, aT as Int, aU as KnowledgeBaseChunk, aV as KnowledgeBaseRejectedUrl, aW as KnowledgeBaseSourceSummary, aX as KnowledgeBaseStatus, aY as KnowledgeBaseTextSource, aZ as KnowledgeSourceStatus, a_ as KnowledgeSourceType, a$ as MessageChannel, b0 as MessageDirection, b1 as MessageStatus, b2 as OptOut, b3 as OptOutSource, b4 as Pagination, b5 as PhoneNumberType, b6 as ToolCall, b7 as ToolCallResponse, b8 as TtsStatus, b9 as WebhookDeliveryErrorClass, ba as WebhookDeliveryStatus, bb as WebhookEndpointCreatedBy, bc as WebhookEndpointDisabledReason, bd as WebhookEventDataMap, be as WebhookEventEnvelope, bf as WebhookEventType, bg as WebhookTestData } from './types-DXQsrvOU.js';
546
3
 
547
4
  declare const DEFAULT_BASE_URL = "https://api.replicer.ai";
548
5
  interface ReplicerOptions {
@@ -560,13 +17,15 @@ declare class Replicer {
560
17
  constructor(options: ReplicerOptions);
561
18
  readonly call: {
562
19
  createPhoneCall: (input: CreatePhoneCallInput) => Promise<EnqueueCallResponse>;
20
+ /** Test keys only: simulates an inbound call to the agent of one of your numbers; `call.ended` and `call.analyzed` follow with `livemode: false`. */
21
+ simulateInbound: (input: SimulateInboundCallInput) => Promise<SimulateInboundCallResponse>;
563
22
  cancel: (call_id: string) => Promise<OkResponse>;
564
23
  cancelCampaignPending: (campaign_id: string) => Promise<CancelCampaignPendingResponse>;
565
24
  list: (params?: ListCallsParams) => Promise<Page<Call>>;
566
25
  get: (id: string) => Promise<Call>;
567
26
  };
568
27
  readonly campaign: {
569
- create: (input: CreateCampaignInput) => Promise<CreateCampaignResponse>;
28
+ create: (input: CreateCampaignInput) => Promise<Campaign>;
570
29
  /** Includes up to 1,000 contacts (`contacts_truncated` tells whether there are more). */
571
30
  get: (id: string) => Promise<GetCampaignResponse>;
572
31
  list: (params?: ListCampaignsParams) => Promise<Page<Campaign>>;
@@ -578,6 +37,10 @@ declare class Replicer {
578
37
  list: (params?: PageParams) => Promise<Page<PhoneNumber>>;
579
38
  provisionInbound: (input: ProvisionInboundInput) => Promise<ProvisionInboundResponse>;
580
39
  deprovisionInbound: (id: string, trunk_id: string, rule_id: string) => Promise<OkResponse>;
40
+ /** Connects a number you own (SIP trunk or forwarding). Live keys only. Not idempotent: a number already connected → `409 conflict`. Search, purchase and release stay in the dashboard. */
41
+ import: (input: ImportPhoneNumberInput) => Promise<PhoneNumber>;
42
+ /** Sets (or clears, with `null`) the fallback number (inbound calls over the concurrent-call limit, or that the agent cannot take, are forwarded there) and/or the inbound agent. Live keys only. */
43
+ update: (id: string, input: UpdatePhoneNumberInput) => Promise<PhoneNumber>;
581
44
  };
582
45
  readonly knowledgeBase: {
583
46
  create: (input: KnowledgeBaseCreateInput) => Promise<KnowledgeBaseSourcesResponse>;
@@ -601,14 +64,37 @@ declare class Replicer {
601
64
  create: (input: CreateContactInput) => Promise<CreateContactResponse>;
602
65
  };
603
66
  readonly agent: {
604
- list: (params?: PageParams) => Promise<Page<Agent>>;
67
+ list: (params?: ListAgentsParams) => Promise<Page<Agent>>;
68
+ get: (id: string) => Promise<AgentDetail>;
69
+ /** Live keys only. Not idempotent. Basic agents only: workflow agents and AI-written prompts stay in the dashboard. */
70
+ create: (input: CreateAgentInput) => Promise<AgentDetail>;
71
+ /** Live keys only. */
72
+ update: (id: string, input: UpdateAgentInput) => Promise<AgentDetail>;
73
+ /** Live keys only. `409 agent_in_use` while a scheduled, running or paused campaign uses the agent. Reactivate with `update`. */
74
+ deactivate: (id: string) => Promise<AgentDetail>;
605
75
  };
606
76
  readonly calendar: {
77
+ /** Active calendars with their active event types: the source of `calendar_id` and `event_type_id`. */
78
+ listCalendars: (params?: PageParams) => Promise<Page<Calendar>>;
79
+ /** Creates a calendar, optionally with its event types and weekly hours. Not idempotent: a retried create makes a second calendar. */
80
+ create: (input: CreateCalendarInput) => Promise<CalendarDetail>;
81
+ /** Edits a calendar. `availability` replaces all weekly hours; `is_active: false` deactivates it (there is no delete). */
82
+ update: (id: string, input: UpdateCalendarInput) => Promise<CalendarDetail>;
83
+ /** Adds an event type to a calendar. Not idempotent. */
84
+ createEventType: (input: CreateEventTypeInput) => Promise<EventTypeDetail>;
85
+ /** Edits an event type; `is_active: false` deactivates it (there is no delete). */
86
+ updateEventType: (id: string, input: UpdateEventTypeInput) => Promise<EventTypeDetail>;
607
87
  listEvents: (params?: ListCalendarEventsParams) => Promise<Page<CalendarEvent>>;
608
88
  createEvent: (input: CreateCalendarEventInput) => Promise<CreateCalendarEventResponse>;
89
+ /** Reschedules a confirmed event (`start_time`) and/or edits customer fields, notes and metadata. */
90
+ updateEvent: (id: string, input: UpdateCalendarEventInput) => Promise<CalendarEvent>;
91
+ /** Soft cancel: the event stays listed with status `cancelled`. Cancelling twice is a no-op. */
92
+ cancelEvent: (id: string) => Promise<CalendarEvent>;
609
93
  };
610
94
  readonly message: {
611
95
  list: (params?: ListMessagesParams) => Promise<Page<Message>>;
96
+ /** One message by id (the `id` of a send response), with its current delivery `status`. */
97
+ get: (id: string) => Promise<Message>;
612
98
  sendSms: (input: SendSmsInput) => Promise<SendMessageResponse>;
613
99
  sendWhatsapp: (input: SendWhatsappInput) => Promise<SendMessageResponse>;
614
100
  sendEmail: (input: SendEmailInput) => Promise<SendMessageResponse>;
@@ -618,6 +104,38 @@ declare class Replicer {
618
104
  list: (params?: ListTtsParams) => Promise<Page<TtsGeneration>>;
619
105
  get: (id: string) => Promise<TtsGeneration>;
620
106
  };
107
+ readonly webhookEndpoint: {
108
+ /** Resolves with the signing `secret`, shown only here and in `rotateSecret`. */
109
+ create: (input: CreateWebhookEndpointInput) => Promise<WebhookEndpointWithSecret>;
110
+ list: (params?: PageParams) => Promise<Page<WebhookEndpoint>>;
111
+ get: (id: string) => Promise<WebhookEndpoint>;
112
+ update: (id: string, input: UpdateWebhookEndpointInput) => Promise<WebhookEndpoint>;
113
+ delete: (id: string) => Promise<OkResponse>;
114
+ /** New secret now; the previous one keeps signing deliveries for 24 hours. */
115
+ rotateSecret: (id: string) => Promise<WebhookEndpointWithSecret>;
116
+ /** Sends a test event (`livemode: false`) and waits up to 12 seconds for its first attempt. */
117
+ test: (id: string, input?: TestWebhookEndpointInput) => Promise<TestWebhookEndpointResponse>;
118
+ listDeliveries: (params?: ListWebhookDeliveriesParams) => Promise<Page<WebhookDelivery>>;
119
+ /** HTTP attempts of one delivery, oldest first. */
120
+ listDeliveryAttempts: (params: ListWebhookDeliveryAttemptsParams) => Promise<Page<WebhookDeliveryAttempt>>;
121
+ /** Sends the event of a delivery again (same event id and body) as a new delivery. Events from the last 30 days only. */
122
+ redeliver: (deliveryId: string) => Promise<WebhookDelivery>;
123
+ };
124
+ readonly agentTool: {
125
+ /** A signed API tool of an agent; requests are signed with the secret of `webhook_endpoint_id`. */
126
+ create: (input: CreateAgentToolInput) => Promise<AgentTool>;
127
+ list: (params: ListAgentToolsParams) => Promise<Page<AgentTool>>;
128
+ get: (id: string) => Promise<AgentTool>;
129
+ update: (id: string, input: UpdateAgentToolInput) => Promise<AgentTool>;
130
+ delete: (id: string) => Promise<OkResponse>;
131
+ /** Sends one signed sample call to the tool URL and reports the outcome. */
132
+ test: (id: string, input?: TestAgentToolInput) => Promise<TestAgentToolResponse>;
133
+ };
134
+ readonly event: {
135
+ /** Events of the last 30 days as delivered (each item is the parsed envelope). */
136
+ list: (params?: ListEventsParams) => Promise<Page<WebhookEvent<Record<string, unknown>>>>;
137
+ get: (id: string) => Promise<WebhookEvent<Record<string, unknown>>>;
138
+ };
621
139
  private request;
622
140
  }
623
141
 
@@ -654,165 +172,598 @@ declare class ReplicerError extends Error {
654
172
  * `test/contract.test.ts` checks this table against the public route list
655
173
  * (`microservices/internal/apiserver/proxy_routes.json`) so the two cannot drift. `:name` segments
656
174
  * are path params (URL-encoded by the client).
175
+ *
176
+ * Each entry also names its wire types, which `docs-site/scripts/gen.mjs` turns into the OpenAPI
177
+ * request/response schemas (generated from `types.ts`):
178
+ * - `request`: the JSON body type (POST/PATCH/PUT) or the query-parameter type (GET/DELETE), or
179
+ * `'none'` when the route takes neither
180
+ * - `response`: the success body type (`Page<T>` for lists), or `'none'` for an empty body
181
+ * - `status`: the success HTTP status (creates and webhook redelivery 201, asynchronous sends and
182
+ * call placement 202, empty body 204)
183
+ * - `errors`: every error the route can answer, as `[status, code]` pairs (flat `{ error, code }` body):
184
+ * gateway errors (401 unauthorized, 403 insufficient_scope, 429 rate_limit_exceeded) plus what the
185
+ * engine returns for this route. Emitted as the OpenAPI error responses (429 with `Retry-After`).
186
+ * `test/contract.test.ts` checks that every entry has all four, that the types exist and that the
187
+ * errors match the engine sources.
657
188
  */
658
189
  declare const ROUTES: readonly [{
659
190
  readonly method: "POST";
660
191
  readonly path: "/v1/create-phone-call";
661
192
  readonly sdk: "call.createPhoneCall";
193
+ readonly request: "CreatePhoneCallInput";
194
+ readonly response: "EnqueueCallResponse";
195
+ readonly status: 202;
196
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [422, "idempotency_key_reuse"], readonly [429, "rate_limit_exceeded"], readonly [429, "rate_limited"], readonly [502, "bad_gateway"]];
197
+ }, {
198
+ readonly method: "POST";
199
+ readonly path: "/v1/simulate-inbound-call";
200
+ readonly sdk: "call.simulateInbound";
201
+ readonly request: "SimulateInboundCallInput";
202
+ readonly response: "SimulateInboundCallResponse";
203
+ readonly status: 201;
204
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "test_mode_unsupported"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [422, "idempotency_key_reuse"], readonly [429, "rate_limit_exceeded"], readonly [429, "rate_limited"]];
662
205
  }, {
663
206
  readonly method: "POST";
664
207
  readonly path: "/v1/cancel-call";
665
208
  readonly sdk: "call.cancel";
209
+ readonly request: "CancelCallInput";
210
+ readonly response: "OkResponse";
211
+ readonly status: 200;
212
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
666
213
  }, {
667
214
  readonly method: "POST";
668
215
  readonly path: "/v1/cancel-campaign-pending";
669
216
  readonly sdk: "call.cancelCampaignPending";
217
+ readonly request: "CancelCampaignPendingInput";
218
+ readonly response: "CancelCampaignPendingResponse";
219
+ readonly status: 200;
220
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
670
221
  }, {
671
222
  readonly method: "GET";
672
223
  readonly path: "/v1/list-calls";
673
224
  readonly sdk: "call.list";
225
+ readonly request: "ListCallsParams";
226
+ readonly response: "Page<Call>";
227
+ readonly status: 200;
228
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
674
229
  }, {
675
230
  readonly method: "GET";
676
231
  readonly path: "/v1/get-call/:id";
677
232
  readonly sdk: "call.get";
233
+ readonly request: "none";
234
+ readonly response: "Call";
235
+ readonly status: 200;
236
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
678
237
  }, {
679
238
  readonly method: "POST";
680
239
  readonly path: "/v1/campaigns";
681
240
  readonly sdk: "campaign.create";
241
+ readonly request: "CreateCampaignInput";
242
+ readonly response: "CreateCampaignResponse";
243
+ readonly status: 201;
244
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "forbidden"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [422, "idempotency_key_reuse"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"]];
682
245
  }, {
683
246
  readonly method: "GET";
684
247
  readonly path: "/v1/campaigns/:id";
685
248
  readonly sdk: "campaign.get";
249
+ readonly request: "none";
250
+ readonly response: "GetCampaignResponse";
251
+ readonly status: 200;
252
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
686
253
  }, {
687
254
  readonly method: "GET";
688
255
  readonly path: "/v1/list-campaigns";
689
256
  readonly sdk: "campaign.list";
257
+ readonly request: "ListCampaignsParams";
258
+ readonly response: "Page<Campaign>";
259
+ readonly status: 200;
260
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
690
261
  }, {
691
262
  readonly method: "POST";
692
263
  readonly path: "/v1/start-campaign/:id";
693
264
  readonly sdk: "campaign.start";
265
+ readonly request: "none";
266
+ readonly response: "StartCampaignResponse";
267
+ readonly status: 200;
268
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [402, "insufficient_balance"], readonly [403, "forbidden"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
694
269
  }, {
695
270
  readonly method: "GET";
696
271
  readonly path: "/v1/list-phone-numbers";
697
272
  readonly sdk: "phoneNumber.list";
273
+ readonly request: "PageParams";
274
+ readonly response: "Page<PhoneNumber>";
275
+ readonly status: 200;
276
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
698
277
  }, {
699
278
  readonly method: "POST";
700
279
  readonly path: "/v1/phone-numbers/inbound";
701
280
  readonly sdk: "phoneNumber.provisionInbound";
281
+ readonly request: "ProvisionInboundInput";
282
+ readonly response: "ProvisionInboundResponse";
283
+ readonly status: 200;
284
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "test_mode_unsupported"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
702
285
  }, {
703
286
  readonly method: "DELETE";
704
287
  readonly path: "/v1/phone-numbers/inbound/:id";
705
288
  readonly sdk: "phoneNumber.deprovisionInbound";
289
+ readonly request: "DeprovisionInboundParams";
290
+ readonly response: "OkResponse";
291
+ readonly status: 200;
292
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "test_mode_unsupported"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
293
+ }, {
294
+ readonly method: "PATCH";
295
+ readonly path: "/v1/update-phone-number/:id";
296
+ readonly sdk: "phoneNumber.update";
297
+ readonly request: "UpdatePhoneNumberInput";
298
+ readonly response: "PhoneNumber";
299
+ readonly status: 200;
300
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "test_mode_unsupported"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
301
+ }, {
302
+ readonly method: "POST";
303
+ readonly path: "/v1/import-phone-number";
304
+ readonly sdk: "phoneNumber.import";
305
+ readonly request: "ImportPhoneNumberInput";
306
+ readonly response: "PhoneNumber";
307
+ readonly status: 201;
308
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "test_mode_unsupported"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
706
309
  }, {
707
310
  readonly method: "POST";
708
311
  readonly path: "/v1/create-knowledge-base";
709
312
  readonly sdk: "knowledgeBase.create";
313
+ readonly request: "KnowledgeBaseCreateInput";
314
+ readonly response: "KnowledgeBaseSourcesResponse";
315
+ readonly status: 201;
316
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "quota_exceeded"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
710
317
  }, {
711
318
  readonly method: "GET";
712
319
  readonly path: "/v1/get-knowledge-base/:id";
713
320
  readonly sdk: "knowledgeBase.retrieve";
321
+ readonly request: "none";
322
+ readonly response: "KnowledgeBaseResponse";
323
+ readonly status: 200;
324
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
714
325
  }, {
715
326
  readonly method: "GET";
716
327
  readonly path: "/v1/list-knowledge-bases";
717
328
  readonly sdk: "knowledgeBase.list";
329
+ readonly request: "none";
330
+ readonly response: "KnowledgeBaseListResponse";
331
+ readonly status: 200;
332
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
718
333
  }, {
719
334
  readonly method: "DELETE";
720
335
  readonly path: "/v1/delete-knowledge-base/:id";
721
336
  readonly sdk: "knowledgeBase.delete";
337
+ readonly request: "none";
338
+ readonly response: "none";
339
+ readonly status: 204;
340
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
722
341
  }, {
723
342
  readonly method: "POST";
724
343
  readonly path: "/v1/add-knowledge-base-sources/:id";
725
344
  readonly sdk: "knowledgeBase.addSources";
345
+ readonly request: "KnowledgeBaseAddSourcesInput";
346
+ readonly response: "KnowledgeBaseSourcesResponse";
347
+ readonly status: 200;
348
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "quota_exceeded"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
726
349
  }, {
727
350
  readonly method: "DELETE";
728
351
  readonly path: "/v1/delete-knowledge-base-source/:source_id";
729
352
  readonly sdk: "knowledgeBase.deleteSource";
353
+ readonly request: "DeleteKnowledgeBaseSourceParams";
354
+ readonly response: "KnowledgeBaseResponse";
355
+ readonly status: 200;
356
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
730
357
  }, {
731
358
  readonly method: "PATCH";
732
359
  readonly path: "/v1/update-knowledge-base/:id";
733
360
  readonly sdk: "knowledgeBase.update";
361
+ readonly request: "KnowledgeBaseUpdateInput";
362
+ readonly response: "KnowledgeBaseResponse";
363
+ readonly status: 200;
364
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
734
365
  }, {
735
366
  readonly method: "POST";
736
367
  readonly path: "/v1/presign-knowledge-base-file/:id";
737
368
  readonly sdk: "knowledgeBase.presignFile";
369
+ readonly request: "PresignFileInput";
370
+ readonly response: "PresignFileResponse";
371
+ readonly status: 200;
372
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "quota_exceeded"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
738
373
  }, {
739
374
  readonly method: "POST";
740
375
  readonly path: "/v1/complete-knowledge-base-file/:id/:source_id";
741
376
  readonly sdk: "knowledgeBase.completeFile";
377
+ readonly request: "none";
378
+ readonly response: "KnowledgeBaseResponse";
379
+ readonly status: 200;
380
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
742
381
  }, {
743
382
  readonly method: "POST";
744
383
  readonly path: "/v1/fail-knowledge-base-file/:id/:source_id";
745
384
  readonly sdk: "knowledgeBase.failFile";
385
+ readonly request: "FailFileInput";
386
+ readonly response: "KnowledgeBaseResponse";
387
+ readonly status: 200;
388
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
746
389
  }, {
747
390
  readonly method: "PUT";
748
391
  readonly path: "/v1/reindex-knowledge-base/:id";
749
392
  readonly sdk: "knowledgeBase.reindex";
393
+ readonly request: "none";
394
+ readonly response: "KnowledgeBaseResponse";
395
+ readonly status: 200;
396
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
750
397
  }, {
751
398
  readonly method: "PATCH";
752
399
  readonly path: "/v1/update-knowledge-base-source/:id/:source_id";
753
400
  readonly sdk: "knowledgeBase.updateSource";
401
+ readonly request: "UpdateSourceInput";
402
+ readonly response: "KnowledgeBaseResponse";
403
+ readonly status: 200;
404
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
754
405
  }, {
755
406
  readonly method: "PATCH";
756
407
  readonly path: "/v1/update-knowledge-base-chunk/:id/:chunk_id";
757
408
  readonly sdk: "knowledgeBase.updateChunk";
409
+ readonly request: "UpdateChunkInput";
410
+ readonly response: "OkResponse";
411
+ readonly status: 200;
412
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
758
413
  }, {
759
414
  readonly method: "GET";
760
415
  readonly path: "/v1/get-knowledge-base-source/:id/:source_id";
761
416
  readonly sdk: "knowledgeBase.getSource";
417
+ readonly request: "none";
418
+ readonly response: "KnowledgeBaseSourceDetail";
419
+ readonly status: 200;
420
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
762
421
  }, {
763
422
  readonly method: "GET";
764
423
  readonly path: "/v1/presign-knowledge-base-file-download/:id/:source_id";
765
424
  readonly sdk: "knowledgeBase.presignFileDownload";
425
+ readonly request: "none";
426
+ readonly response: "PresignFileDownloadResponse";
427
+ readonly status: 200;
428
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [503, "internal_error"]];
766
429
  }, {
767
430
  readonly method: "GET";
768
431
  readonly path: "/v1/list-contacts";
769
432
  readonly sdk: "contact.list";
433
+ readonly request: "ListContactsParams";
434
+ readonly response: "Page<Contact>";
435
+ readonly status: 200;
436
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
770
437
  }, {
771
438
  readonly method: "POST";
772
439
  readonly path: "/v1/create-contact";
773
440
  readonly sdk: "contact.create";
441
+ readonly request: "CreateContactInput";
442
+ readonly response: "CreateContactResponse";
443
+ readonly status: 201;
444
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
774
445
  }, {
775
446
  readonly method: "GET";
776
447
  readonly path: "/v1/list-agents";
777
448
  readonly sdk: "agent.list";
449
+ readonly request: "ListAgentsParams";
450
+ readonly response: "Page<Agent>";
451
+ readonly status: 200;
452
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
453
+ }, {
454
+ readonly method: "GET";
455
+ readonly path: "/v1/get-agent/:id";
456
+ readonly sdk: "agent.get";
457
+ readonly request: "none";
458
+ readonly response: "AgentDetail";
459
+ readonly status: 200;
460
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
461
+ }, {
462
+ readonly method: "POST";
463
+ readonly path: "/v1/create-agent";
464
+ readonly sdk: "agent.create";
465
+ readonly request: "CreateAgentInput";
466
+ readonly response: "AgentDetail";
467
+ readonly status: 201;
468
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "quota_exceeded"], readonly [403, "test_mode_unsupported"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"]];
469
+ }, {
470
+ readonly method: "PATCH";
471
+ readonly path: "/v1/update-agent/:id";
472
+ readonly sdk: "agent.update";
473
+ readonly request: "UpdateAgentInput";
474
+ readonly response: "AgentDetail";
475
+ readonly status: 200;
476
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "quota_exceeded"], readonly [403, "test_mode_unsupported"], readonly [404, "not_found"], readonly [409, "agent_tool_name_conflict"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"]];
477
+ }, {
478
+ readonly method: "POST";
479
+ readonly path: "/v1/deactivate-agent/:id";
480
+ readonly sdk: "agent.deactivate";
481
+ readonly request: "none";
482
+ readonly response: "AgentDetail";
483
+ readonly status: 200;
484
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [403, "test_mode_unsupported"], readonly [404, "not_found"], readonly [409, "agent_in_use"], readonly [429, "rate_limit_exceeded"]];
485
+ }, {
486
+ readonly method: "GET";
487
+ readonly path: "/v1/list-calendars";
488
+ readonly sdk: "calendar.listCalendars";
489
+ readonly request: "PageParams";
490
+ readonly response: "Page<Calendar>";
491
+ readonly status: 200;
492
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
493
+ }, {
494
+ readonly method: "POST";
495
+ readonly path: "/v1/create-calendar";
496
+ readonly sdk: "calendar.create";
497
+ readonly request: "CreateCalendarInput";
498
+ readonly response: "CalendarDetail";
499
+ readonly status: 201;
500
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
501
+ }, {
502
+ readonly method: "PATCH";
503
+ readonly path: "/v1/update-calendar/:id";
504
+ readonly sdk: "calendar.update";
505
+ readonly request: "UpdateCalendarInput";
506
+ readonly response: "CalendarDetail";
507
+ readonly status: 200;
508
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
509
+ }, {
510
+ readonly method: "POST";
511
+ readonly path: "/v1/create-event-type";
512
+ readonly sdk: "calendar.createEventType";
513
+ readonly request: "CreateEventTypeInput";
514
+ readonly response: "EventTypeDetail";
515
+ readonly status: 201;
516
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
517
+ }, {
518
+ readonly method: "PATCH";
519
+ readonly path: "/v1/update-event-type/:id";
520
+ readonly sdk: "calendar.updateEventType";
521
+ readonly request: "UpdateEventTypeInput";
522
+ readonly response: "EventTypeDetail";
523
+ readonly status: 200;
524
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
778
525
  }, {
779
526
  readonly method: "GET";
780
527
  readonly path: "/v1/list-calendar-events";
781
528
  readonly sdk: "calendar.listEvents";
529
+ readonly request: "ListCalendarEventsParams";
530
+ readonly response: "Page<CalendarEvent>";
531
+ readonly status: 200;
532
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
782
533
  }, {
783
534
  readonly method: "POST";
784
535
  readonly path: "/v1/create-calendar-event";
785
536
  readonly sdk: "calendar.createEvent";
537
+ readonly request: "CreateCalendarEventInput";
538
+ readonly response: "CreateCalendarEventResponse";
539
+ readonly status: 201;
540
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"]];
541
+ }, {
542
+ readonly method: "PATCH";
543
+ readonly path: "/v1/update-calendar-event/:id";
544
+ readonly sdk: "calendar.updateEvent";
545
+ readonly request: "UpdateCalendarEventInput";
546
+ readonly response: "CalendarEvent";
547
+ readonly status: 200;
548
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"]];
549
+ }, {
550
+ readonly method: "POST";
551
+ readonly path: "/v1/cancel-calendar-event/:id";
552
+ readonly sdk: "calendar.cancelEvent";
553
+ readonly request: "none";
554
+ readonly response: "CalendarEvent";
555
+ readonly status: 200;
556
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"]];
786
557
  }, {
787
558
  readonly method: "GET";
788
559
  readonly path: "/v1/list-messages";
789
560
  readonly sdk: "message.list";
561
+ readonly request: "ListMessagesParams";
562
+ readonly response: "Page<Message>";
563
+ readonly status: 200;
564
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
565
+ }, {
566
+ readonly method: "GET";
567
+ readonly path: "/v1/get-message/:id";
568
+ readonly sdk: "message.get";
569
+ readonly request: "none";
570
+ readonly response: "Message";
571
+ readonly status: 200;
572
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
790
573
  }, {
791
574
  readonly method: "POST";
792
575
  readonly path: "/v1/send-sms";
793
576
  readonly sdk: "message.sendSms";
577
+ readonly request: "SendSmsInput";
578
+ readonly response: "SendMessageResponse";
579
+ readonly status: 202;
580
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [409, "conflict"], readonly [422, "channel_not_configured"], readonly [422, "idempotency_key_reuse"], readonly [422, "sender_not_supported"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
794
581
  }, {
795
582
  readonly method: "POST";
796
583
  readonly path: "/v1/send-whatsapp";
797
584
  readonly sdk: "message.sendWhatsapp";
585
+ readonly request: "SendWhatsappInput";
586
+ readonly response: "SendMessageResponse";
587
+ readonly status: 202;
588
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [409, "conflict"], readonly [422, "channel_not_configured"], readonly [422, "idempotency_key_reuse"], readonly [422, "media_not_supported"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
798
589
  }, {
799
590
  readonly method: "POST";
800
591
  readonly path: "/v1/send-email";
801
592
  readonly sdk: "message.sendEmail";
593
+ readonly request: "SendEmailInput";
594
+ readonly response: "SendMessageResponse";
595
+ readonly status: 202;
596
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [409, "conflict"], readonly [422, "channel_not_configured"], readonly [422, "email_provider_not_supported"], readonly [422, "idempotency_key_reuse"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"]];
802
597
  }, {
803
598
  readonly method: "POST";
804
599
  readonly path: "/v1/create-tts";
805
600
  readonly sdk: "tts.create";
601
+ readonly request: "CreateTtsInput";
602
+ readonly response: "CreateTtsResponse";
603
+ readonly status: 201;
604
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [409, "conflict"], readonly [422, "idempotency_key_reuse"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"], readonly [502, "bad_gateway"], readonly [503, "service_unavailable"]];
806
605
  }, {
807
606
  readonly method: "GET";
808
607
  readonly path: "/v1/list-tts";
809
608
  readonly sdk: "tts.list";
609
+ readonly request: "ListTtsParams";
610
+ readonly response: "Page<TtsGeneration>";
611
+ readonly status: 200;
612
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
810
613
  }, {
811
614
  readonly method: "GET";
812
615
  readonly path: "/v1/get-tts/:id";
813
616
  readonly sdk: "tts.get";
617
+ readonly request: "none";
618
+ readonly response: "TtsGeneration";
619
+ readonly status: 200;
620
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
621
+ }, {
622
+ readonly method: "POST";
623
+ readonly path: "/v1/create-webhook-endpoint";
624
+ readonly sdk: "webhookEndpoint.create";
625
+ readonly request: "CreateWebhookEndpointInput";
626
+ readonly response: "WebhookEndpointWithSecret";
627
+ readonly status: 201;
628
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [409, "conflict"], readonly [409, "webhook_endpoint_limit"], readonly [422, "idempotency_key_reuse"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"], readonly [503, "service_unavailable"]];
629
+ }, {
630
+ readonly method: "GET";
631
+ readonly path: "/v1/list-webhook-endpoints";
632
+ readonly sdk: "webhookEndpoint.list";
633
+ readonly request: "PageParams";
634
+ readonly response: "Page<WebhookEndpoint>";
635
+ readonly status: 200;
636
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
637
+ }, {
638
+ readonly method: "GET";
639
+ readonly path: "/v1/get-webhook-endpoint/:id";
640
+ readonly sdk: "webhookEndpoint.get";
641
+ readonly request: "none";
642
+ readonly response: "WebhookEndpoint";
643
+ readonly status: 200;
644
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
645
+ }, {
646
+ readonly method: "PATCH";
647
+ readonly path: "/v1/update-webhook-endpoint/:id";
648
+ readonly sdk: "webhookEndpoint.update";
649
+ readonly request: "UpdateWebhookEndpointInput";
650
+ readonly response: "WebhookEndpoint";
651
+ readonly status: 200;
652
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "webhook_endpoint_key_revoked"], readonly [409, "webhook_endpoint_admin_disabled"], readonly [429, "rate_limit_exceeded"]];
653
+ }, {
654
+ readonly method: "DELETE";
655
+ readonly path: "/v1/delete-webhook-endpoint/:id";
656
+ readonly sdk: "webhookEndpoint.delete";
657
+ readonly request: "none";
658
+ readonly response: "OkResponse";
659
+ readonly status: 200;
660
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "webhook_endpoint_in_use"], readonly [429, "rate_limit_exceeded"]];
661
+ }, {
662
+ readonly method: "POST";
663
+ readonly path: "/v1/rotate-webhook-endpoint-secret/:id";
664
+ readonly sdk: "webhookEndpoint.rotateSecret";
665
+ readonly request: "none";
666
+ readonly response: "WebhookEndpointWithSecret";
667
+ readonly status: 200;
668
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [503, "service_unavailable"]];
669
+ }, {
670
+ readonly method: "POST";
671
+ readonly path: "/v1/test-webhook-endpoint/:id";
672
+ readonly sdk: "webhookEndpoint.test";
673
+ readonly request: "TestWebhookEndpointInput";
674
+ readonly response: "TestWebhookEndpointResponse";
675
+ readonly status: 200;
676
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [429, "rate_limit_exceeded"], readonly [429, "rate_limited"]];
677
+ }, {
678
+ readonly method: "GET";
679
+ readonly path: "/v1/list-webhook-deliveries";
680
+ readonly sdk: "webhookEndpoint.listDeliveries";
681
+ readonly request: "ListWebhookDeliveriesParams";
682
+ readonly response: "Page<WebhookDelivery>";
683
+ readonly status: 200;
684
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
685
+ }, {
686
+ readonly method: "GET";
687
+ readonly path: "/v1/list-webhook-delivery-attempts";
688
+ readonly sdk: "webhookEndpoint.listDeliveryAttempts";
689
+ readonly request: "ListWebhookDeliveryAttemptsParams";
690
+ readonly response: "Page<WebhookDeliveryAttempt>";
691
+ readonly status: 200;
692
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
693
+ }, {
694
+ readonly method: "POST";
695
+ readonly path: "/v1/redeliver-webhook-delivery/:id";
696
+ readonly sdk: "webhookEndpoint.redeliver";
697
+ readonly request: "none";
698
+ readonly response: "WebhookDelivery";
699
+ readonly status: 201;
700
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "conflict"], readonly [409, "redelivery_limit"], readonly [409, "webhook_endpoint_key_revoked"], readonly [429, "rate_limit_exceeded"]];
701
+ }, {
702
+ readonly method: "POST";
703
+ readonly path: "/v1/create-agent-tool";
704
+ readonly sdk: "agentTool.create";
705
+ readonly request: "CreateAgentToolInput";
706
+ readonly response: "AgentTool";
707
+ readonly status: 201;
708
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "agent_tool_limit"], readonly [409, "agent_tool_name_conflict"], readonly [409, "agent_tool_name_taken"], readonly [409, "conflict"], readonly [422, "idempotency_key_reuse"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"]];
709
+ }, {
710
+ readonly method: "GET";
711
+ readonly path: "/v1/list-agent-tools";
712
+ readonly sdk: "agentTool.list";
713
+ readonly request: "ListAgentToolsParams";
714
+ readonly response: "Page<AgentTool>";
715
+ readonly status: 200;
716
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
717
+ }, {
718
+ readonly method: "GET";
719
+ readonly path: "/v1/get-agent-tool/:id";
720
+ readonly sdk: "agentTool.get";
721
+ readonly request: "none";
722
+ readonly response: "AgentTool";
723
+ readonly status: 200;
724
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
725
+ }, {
726
+ readonly method: "PATCH";
727
+ readonly path: "/v1/update-agent-tool/:id";
728
+ readonly sdk: "agentTool.update";
729
+ readonly request: "UpdateAgentToolInput";
730
+ readonly response: "AgentTool";
731
+ readonly status: 200;
732
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [409, "agent_tool_limit"], readonly [409, "agent_tool_name_conflict"], readonly [409, "agent_tool_name_taken"], readonly [422, "validation_error"], readonly [429, "rate_limit_exceeded"]];
733
+ }, {
734
+ readonly method: "DELETE";
735
+ readonly path: "/v1/delete-agent-tool/:id";
736
+ readonly sdk: "agentTool.delete";
737
+ readonly request: "none";
738
+ readonly response: "OkResponse";
739
+ readonly status: 200;
740
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
741
+ }, {
742
+ readonly method: "POST";
743
+ readonly path: "/v1/test-agent-tool/:id";
744
+ readonly sdk: "agentTool.test";
745
+ readonly request: "TestAgentToolInput";
746
+ readonly response: "TestAgentToolResponse";
747
+ readonly status: 200;
748
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"], readonly [429, "rate_limited"]];
749
+ }, {
750
+ readonly method: "GET";
751
+ readonly path: "/v1/list-events";
752
+ readonly sdk: "event.list";
753
+ readonly request: "ListEventsParams";
754
+ readonly response: "Page<WebhookEventEnvelope>";
755
+ readonly status: 200;
756
+ readonly errors: readonly [readonly [400, "validation_error"], readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [429, "rate_limit_exceeded"]];
757
+ }, {
758
+ readonly method: "GET";
759
+ readonly path: "/v1/get-event/:id";
760
+ readonly sdk: "event.get";
761
+ readonly request: "none";
762
+ readonly response: "WebhookEventEnvelope";
763
+ readonly status: 200;
764
+ readonly errors: readonly [readonly [401, "unauthorized"], readonly [403, "insufficient_scope"], readonly [404, "not_found"], readonly [429, "rate_limit_exceeded"]];
814
765
  }];
815
766
  type RouteDef = (typeof ROUTES)[number];
816
767
  type SdkMethodName = RouteDef['sdk'];
817
768
 
818
- export { type Agent, type ApiErrorCode, type CalendarEvent, type CalendarEventStatus, type Call, type CallStatus, type Campaign, type CampaignListItem, type CancelCampaignPendingResponse, type Contact, type ContactIdentityConflict, type CreateCalendarEventInput, type CreateCalendarEventResponse, type CreateCampaignInput, type CreateCampaignResponse, type CreateContactInput, type CreateContactResponse, type CreatePhoneCallInput, type CreateTtsInput, type CreateTtsResponse, DEFAULT_BASE_URL, type DeprovisionInboundRemaining, type EnqueueCallResponse, type FailFileInput, type GetCampaignResponse, type KnowledgeBaseAddSourcesInput, type KnowledgeBaseChunk, type KnowledgeBaseCreateInput, type KnowledgeBaseListResponse, type KnowledgeBaseRejectedUrl, type KnowledgeBaseResponse, type KnowledgeBaseSourceDetail, type KnowledgeBaseSourceSummary, type KnowledgeBaseSourcesResponse, type KnowledgeBaseTextSource, type KnowledgeBaseUpdateInput, type ListCalendarEventsParams, type ListCallsParams, type ListCampaignsParams, type ListContactsParams, type ListMessagesParams, type ListTtsParams, type Message, type MessageChannel, type OkResponse, type Page, type PageParams, type Pagination, type PhoneNumber, type PresignFileDownloadResponse, type PresignFileInput, type PresignFileResponse, type ProvisionInboundInput, type ProvisionInboundResponse, ROUTES, Replicer, ReplicerError, type ReplicerOptions, type RouteDef, type SdkMethodName, type SendEmailInput, type SendMessageResponse, type SendSmsInput, type SendWhatsappInput, type StartCampaignResponse, type TtsGeneration, type UpdateChunkInput, type UpdateSourceInput };
769
+ export { Agent, AgentDetail, AgentTool, Calendar, CalendarDetail, CalendarEvent, Call, Campaign, CancelCampaignPendingResponse, Contact, CreateAgentInput, CreateAgentToolInput, CreateCalendarEventInput, CreateCalendarEventResponse, CreateCalendarInput, CreateCampaignInput, CreateContactInput, CreateContactResponse, CreateEventTypeInput, CreatePhoneCallInput, CreateTtsInput, CreateTtsResponse, CreateWebhookEndpointInput, DEFAULT_BASE_URL, EnqueueCallResponse, EventTypeDetail, FailFileInput, GetCampaignResponse, ImportPhoneNumberInput, KnowledgeBaseAddSourcesInput, KnowledgeBaseCreateInput, KnowledgeBaseListResponse, KnowledgeBaseResponse, KnowledgeBaseSourceDetail, KnowledgeBaseSourcesResponse, KnowledgeBaseUpdateInput, ListAgentToolsParams, ListAgentsParams, ListCalendarEventsParams, ListCallsParams, ListCampaignsParams, ListContactsParams, ListEventsParams, ListMessagesParams, ListTtsParams, ListWebhookDeliveriesParams, ListWebhookDeliveryAttemptsParams, Message, OkResponse, Page, PageParams, PhoneNumber, PresignFileDownloadResponse, PresignFileInput, PresignFileResponse, ProvisionInboundInput, ProvisionInboundResponse, ROUTES, Replicer, ReplicerError, type ReplicerOptions, type RouteDef, type SdkMethodName, SendEmailInput, SendMessageResponse, SendSmsInput, SendWhatsappInput, SimulateInboundCallInput, SimulateInboundCallResponse, StartCampaignResponse, TestAgentToolInput, TestAgentToolResponse, TestWebhookEndpointInput, TestWebhookEndpointResponse, TtsGeneration, UpdateAgentInput, UpdateAgentToolInput, UpdateCalendarEventInput, UpdateCalendarInput, UpdateChunkInput, UpdateEventTypeInput, UpdatePhoneNumberInput, UpdateSourceInput, UpdateWebhookEndpointInput, WebhookDelivery, WebhookDeliveryAttempt, WebhookEndpoint, WebhookEndpointWithSecret, WebhookEvent };