@omnidim-ai/mcp-server 0.9.2 → 0.11.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/build/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * Server configuration
4
4
  */
5
5
  export declare const SERVER_NAME = "OmniDimension";
6
- export declare const SERVER_VERSION = "0.9.2";
6
+ export declare const SERVER_VERSION = "0.11.0";
7
7
  export declare const API_BASE_URL = "https://backend.omnidim.io/api/v1";
8
8
  /**
9
9
  * Type definition for cached OAuth tokens
package/build/index.js CHANGED
@@ -18,7 +18,7 @@ import axios from 'axios';
18
18
  * Server configuration
19
19
  */
20
20
  export const SERVER_NAME = "OmniDimension";
21
- export const SERVER_VERSION = "0.9.2";
21
+ export const SERVER_VERSION = "0.11.0";
22
22
  // Base URL for the API. Pinned to production; not env-overridable.
23
23
  export const API_BASE_URL = "https://backend.omnidim.io/api/v1";
24
24
  /**
@@ -33,7 +33,6 @@ Surfaces:
33
33
  - Knowledge base: upload PDFs and attach to agents.
34
34
  - Phone numbers: list, attach to agents, import from Twilio, Exotel, or SIP.
35
35
  - Providers: discover available LLMs, voices, STT, and TTS engines.
36
- - Reseller: child organization management (requires partner-level credentials; non-reseller keys get 403).
37
36
 
38
37
  Conventions:
39
38
  - List endpoints accept pageno (>= 1) and pagesize (1-150). Use name to filter.
@@ -64,7 +63,7 @@ connect and talk, see "Connect the client and talk" below the
64
63
  request details.
65
64
 
66
65
  (Tags: Sessions)`,
67
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "type"], "properties": { "agent_id": { "type": "number", "description": "ID of the agent the session talks to." }, "type": { "type": "string", "enum": ["voice"], "description": "The session type. Only `voice` is supported." }, "custom_variables": { "type": "object", "additionalProperties": true, "description": "Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
66
+ inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "type"], "properties": { "agent_id": { "type": "number", "description": "ID of the agent the session talks to." }, "type": { "type": "string", "default": "voice", "enum": ["voice"], "description": "The session type. Only `voice` is supported." }, "custom_variables": { "type": "object", "additionalProperties": true, "description": "Per-session variables that personalize the conversation.\nSet server-side, so visitors cannot tamper with them.\n" }, "metadata": { "type": "object", "additionalProperties": true, "description": "Key-value pairs stored on the session for your own\ntracking (e.g. CRM or lead IDs). Not shared with the\nagent; echoed back as `metadata` in the post-call\nwebhook so you can correlate results with your records.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
68
67
  method: "post",
69
68
  pathTemplate: "/sessions/create",
70
69
  executionParameters: [],
@@ -110,7 +109,7 @@ before configuring the \`voicemail\` object.
110
109
  }],
111
110
  ["getAgent", {
112
111
  name: "getAgent",
113
- description: `Get details of a specific agent by ID. The response also includes a \`version_history_enabled\` boolean showing whether [version history](/docs/api-reference/agent-versions) is turned on for the agent's organization.
112
+ description: `Get details of a specific agent by ID. The response also includes a \`version_history_enabled\` boolean showing whether [version history](/docs/api-reference/agents/listAgentVersions) is turned on for the agent's organization.
114
113
  (Tags: Agents)`,
115
114
  inputSchema: { "type": "object", "properties": { "agent_id": { "type": "number", "description": "The ID of the agent." } }, "required": ["agent_id"] },
116
115
  method: "get",
@@ -233,7 +232,7 @@ before configuring the \`voicemail\` object.
233
232
  phone number must include a country code with a leading plus.
234
233
 
235
234
  (Tags: Calls)`,
236
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "to_number"], "properties": { "agent_id": { "type": "number", "description": "The ID of the agent that will handle the call." }, "to_number": { "type": "string", "description": "The phone number to call. Must include country code (e.g., +15551234567)." }, "from_number_id": { "type": "number", "description": "Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number." }, "call_context": { "type": "object", "description": "Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.", "additionalProperties": true } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
235
+ inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["agent_id", "to_number"], "properties": { "agent_id": { "type": "number", "description": "The ID of the agent that will handle the call." }, "to_number": { "type": "string", "description": "The phone number to call. Must include country code (e.g., +15551234567)." }, "from_number_id": { "type": "number", "description": "Id of a phone number on your account to place the call from (see the phone number list endpoint). Omit to use the platform's default number." }, "call_context": { "type": "object", "description": "Optional context information as key-value pairs to be passed to the agent during the call. Can contain any custom fields relevant to your use case.", "additionalProperties": true }, "metadata": { "type": "object", "additionalProperties": true, "description": "Key-value pairs stored on the call for your own tracking\n(e.g. CRM or lead IDs). Not shared with the agent; echoed\nback as `metadata` in the post-call webhook so you can\ncorrelate results with your records.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
237
236
  method: "post",
238
237
  pathTemplate: "/calls/dispatch",
239
238
  executionParameters: [],
@@ -283,22 +282,18 @@ phone number must include a country code with a leading plus.
283
282
  }],
284
283
  ["createBulkCall", {
285
284
  name: "createBulkCall",
286
- description: `Create a new bulk-call campaign. Supports immediate, scheduled,
287
- and auto-retry modes.
285
+ description: `Create a new bulk-call campaign. Only name, phone_number_id and a
286
+ contact_list are needed to dial a list now; every other field adds
287
+ one behaviour on top (drafts, rotation, filtering, scheduling,
288
+ retries, dynamic feeding).
288
289
 
289
- There are two kinds of campaign:
290
-
291
- - **Static** (default): you supply the full \`contact_list\` up
292
- front and the campaign dials through it.
293
- - **Dynamic**: set \`is_dynamic\` to \`true\` and the campaign accepts
294
- contacts in real time via the Add contact to dynamic campaign
295
- webhook. \`contact_list\` is optional here, so you can start the
296
- campaign empty and feed it from a CRM, form, or automation. A
297
- dynamic campaign stays alive waiting for contacts instead of
298
- completing when its queue drains.
290
+ The guide below the field reference walks the whole journey: the
291
+ first campaign and its response, each behaviour with a working
292
+ request, every refusal message with its fix, and the endpoints that
293
+ operate a campaign once it runs.
299
294
 
300
295
  (Tags: Bulk calls)`,
301
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id"], "properties": { "name": { "type": "string", "description": "Name of the bulk call campaign." }, "phone_number_id": { "type": "string", "description": "Your phone number id to use for making calls." }, "is_dynamic": { "type": "boolean", "default": false, "description": "Set to `true` to create a dynamic campaign that accepts\ncontacts in real time via the Add contact to dynamic\ncampaign webhook. When `true`, `contact_list` is optional\nand may be omitted to start the campaign empty.\n" }, "contact_list": { "type": "array", "description": "Array of contact objects. Each row needs `phone_number`.\nAny other key you add on the row (e.g. `customer_name`,\n`account_id`, `priority`) is passed to the agent as a\ncontext variable for that specific call, so the agent\ncan reference it during the conversation.\n\nRequired for static campaigns. Optional when `is_dynamic`\nis `true` (you can omit it and add contacts later via the\nwebhook).\n", "items": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "Phone number in international format (e.g., +15551234567)." } }, "additionalProperties": true } }, "is_scheduled": { "type": "boolean", "default": false, "description": "Whether the campaign should be scheduled for future execution." }, "scheduled_datetime": { "type": "string", "description": "Scheduled execution time in format `YYYY-MM-DD HH:MM:SS` (required if `is_scheduled` is true)." }, "timezone": { "type": "string", "default": "UTC", "description": "Timezone for scheduled execution." }, "concurrent_call_limit": { "type": "number", "default": 1, "minimum": 1, "description": "Maximum number of concurrent calls allowed." }, "enabled_reschedule_call": { "type": "boolean", "default": false, "description": "Enable automatic call rescheduling. When enabled the system can reschedule unreachable calls." }, "retry_config": { "type": "object", "description": "Auto-retry configuration object containing retry settings.", "properties": { "auto_retry": { "type": "boolean", "default": false }, "auto_retry_schedule": { "type": "string", "enum": ["immediately", "next_day", "scheduled_time"], "description": "When to retry failed calls." }, "retry_schedule_days": { "type": "number", "default": 0, "minimum": 0, "description": "Days to wait before a scheduled retry." }, "retry_schedule_hours": { "type": "number", "default": 0, "minimum": 0, "description": "Hours to wait before a scheduled retry." }, "retry_limit": { "type": "number", "default": 0, "minimum": 0, "maximum": 5, "description": "Maximum number of retry attempts (0–5)." } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
296
+ inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "phone_number_id"], "properties": { "name": { "type": "string", "description": "Name of the bulk call campaign." }, "phone_number_id": { "type": "string", "description": "The number this campaign calls from. With a `rotation`, the\nrotation numbers dial instead and this one is the standby.\n" }, "bot_id": { "type": "number", "description": "Agent to run the campaign. Defaults to the agent attached\nto `phone_number_id`; required when the number has none.\n" }, "save_as_draft": { "type": "boolean", "default": false, "description": "Store the campaign without dialing; start it later with the\nstart endpoint. See Drafts in the guide below.\n" }, "call_conditions": { "type": "array", "description": "Dial only the contacts that match every condition; the rest\nare kept as `Skipped`. See Filtering in the guide below.\n", "items": { "type": "object", "required": ["column", "operator", "value"], "properties": { "column": { "type": "string", "description": "Key on the contact row to test." }, "operator": { "type": "string", "default": "equals", "enum": ["equals", "not_equals", "contains", "greater_than", "less_than"], "description": "`contains` is case-insensitive. `greater_than` and\n`less_than` compare numerically, and a row whose value\nis not a number fails the condition rather than\nerroring.\n" }, "value": { "type": "string" } } } }, "rotation": { "type": "object", "description": "Rotate the campaign across several of your numbers, so no\nsingle number burns out. See Rotation in the guide below.\n", "required": ["numbers"], "properties": { "numbers": { "type": "array", "minItems": 1, "description": "The numbers to rotate across; each must be yours and\nlisted once.\n", "items": { "type": "object", "required": ["phone_number_id"], "properties": { "phone_number_id": { "type": "number", "description": "One of your numbers, from List phone numbers." }, "sequence": { "type": "number", "default": 10, "description": "Rotation order. Lowest dials first." } } } }, "strategy": { "type": "string", "default": "fixed_count", "enum": ["fixed_count", "cpr_threshold", "both", "none"], "description": "When to move to the next number: every\n`calls_per_number` calls, on low health score, both, or\nnever.\n" }, "calls_per_number": { "type": "number", "default": 50, "description": "Calls before moving on. Used by `fixed_count` and `both`." }, "health_threshold": { "type": "number", "default": 30, "description": "Health score below which a number is rotated away from.\nUsed by `cpr_threshold` and `both`.\n" }, "fallback": { "type": "string", "default": "pause", "enum": ["pause", "continue_best"], "description": "When every number is unhealthy: `pause` the campaign,\nor `continue_best` with the healthiest one.\n" } } }, "is_dynamic": { "type": "boolean", "default": false, "description": "A dynamic campaign stays alive accepting contacts via the\nadd-contact webhooks, and `contact_list` becomes optional.\n" }, "contact_list": { "type": "array", "description": "Who to call. Each row needs `phone_number`; any other key\nreaches the agent as context for that one call.\n", "items": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "Phone number in international format (e.g., +15551234567)." } }, "additionalProperties": true } }, "is_scheduled": { "type": "boolean", "default": false, "description": "Whether the campaign should be scheduled for future execution." }, "scheduled_datetime": { "type": "string", "description": "Scheduled execution time in format `YYYY-MM-DD HH:MM:SS` (required if `is_scheduled` is true)." }, "timezone": { "type": "string", "default": "UTC", "description": "Timezone for scheduled execution." }, "concurrent_call_limit": { "type": "number", "default": 1, "minimum": 1, "description": "Maximum number of concurrent calls allowed." }, "enabled_reschedule_call": { "type": "boolean", "default": false, "description": "Enable automatic call rescheduling. When enabled the system can reschedule unreachable calls." }, "retry_config": { "type": "object", "description": "Auto-retry configuration object containing retry settings.", "properties": { "auto_retry": { "type": "boolean", "default": false }, "auto_retry_schedule": { "type": "string", "enum": ["immediately", "next_day", "scheduled_time"], "description": "When to retry failed calls." }, "retry_schedule_days": { "type": "number", "default": 0, "minimum": 0, "description": "Days to wait before a scheduled retry." }, "retry_schedule_hours": { "type": "number", "default": 0, "minimum": 0, "description": "Hours to wait before a scheduled retry." }, "retry_limit": { "type": "number", "default": 1, "minimum": 1, "maximum": 10, "description": "Retry attempts, 1 to 10. To disable retries omit it and\nleave `auto_retry` false; never send `0`.\n" } } } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
302
297
  method: "post",
303
298
  pathTemplate: "/calls/bulk_call/create",
304
299
  executionParameters: [],
@@ -366,6 +361,208 @@ operating hours.
366
361
  tags: ["Bulk calls"],
367
362
  deprecated: false
368
363
  }],
364
+ ["listBulkCallLines", {
365
+ name: "listBulkCallLines",
366
+ description: `Per-contact results for a campaign: what happened on each call, the
367
+ variables you sent with that contact, and a pointer to the recording.
368
+
369
+ ## Paging
370
+
371
+ There is one rule. Call it with no \`cursor\`, then keep passing back the
372
+ \`next_cursor\` you were handed until it comes back \`null\`.
373
+
374
+ \`\`\`
375
+ cursor = None
376
+ while True:
377
+ page = GET /lines?pagesize=150&cursor={cursor}
378
+ handle(page["records"])
379
+ cursor = page["next_cursor"]
380
+ if not cursor: break
381
+ \`\`\`
382
+
383
+ Each call returns a page of rows, oldest first: \`pagesize\` goes up to
384
+ 150 and defaults to 30. Cursors are opaque, so pass back the string you
385
+ were given and never build one. No contact is skipped or returned
386
+ twice, even while the campaign is still dialing.
387
+
388
+ ## Transcripts are not in the row
389
+
390
+ Each row carries \`call.recording_id\`, not the conversation. Transcripts
391
+ reach 212 KB, so carrying them here would make one page tens of
392
+ megabytes. Fetch the one you want from
393
+ \`GET /calls/logs/{recording_id}\`.
394
+
395
+ (Tags: Bulk calls)`,
396
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "cursor": { "type": "string", "description": "The `next_cursor` from your previous response. Omit it on the first\nrequest. Opaque: pass it back unchanged.\n" }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Rows per page. Above 150 the request is refused." }, "call_status": { "type": "string", "enum": ["Pending", "In Progress", "completed", "voicemail_detected", "no-answer", "busy", "Failed", "Skipped", "retry_scheduled", "cancelled"], "description": "Return only contacts in this state." }, "interaction_status": { "type": "string", "description": "Return only contacts with this interaction outcome." }, "search": { "type": "string", "description": "An exact phone number, matched against the contact's number and the\nnumber that called it. Not a substring search.\n" }, "include_total": { "type": "boolean", "default": false, "description": "Add `total_records` to the response. It costs a count over the whole\nfiltered campaign, so it is off unless you ask. Ask for it once to\nfill a header, not on every page of a walk.\n" } }, "required": ["bulk_call_id"] },
397
+ method: "get",
398
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/lines",
399
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }, { "name": "cursor", "in": "query" }, { "name": "pagesize", "in": "query" }, { "name": "call_status", "in": "query" }, { "name": "interaction_status", "in": "query" }, { "name": "search", "in": "query" }, { "name": "include_total", "in": "query" }],
400
+ requestBodyContentType: undefined,
401
+ securityRequirements: [{ "BearerAuth": [] }],
402
+ tags: ["Bulk calls"],
403
+ deprecated: false
404
+ }],
405
+ ["listBulkCallNumbers", {
406
+ name: "listBulkCallNumbers",
407
+ description: `The campaign's number pool, and which number is dialing right now.
408
+
409
+ \`calls_this_cycle\` is what \`fixed_count\` rotation compares against, so
410
+ it is the field to watch for the next rotation. \`calls_dispatched\` is
411
+ the number's lifetime total across every cycle.
412
+
413
+ (Tags: Bulk calls)`,
414
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
415
+ method: "get",
416
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/numbers",
417
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
418
+ requestBodyContentType: undefined,
419
+ securityRequirements: [{ "BearerAuth": [] }],
420
+ tags: ["Bulk calls"],
421
+ deprecated: false
422
+ }],
423
+ ["addBulkCallNumber", {
424
+ name: "addBulkCallNumber",
425
+ description: `Add one of your numbers to the campaign's rotation pool. Works while the
426
+ campaign is running, which is how you bring in a fresh number when the
427
+ pool is running out of healthy ones.
428
+
429
+ The number must belong to you and must not already be in the pool. A
430
+ number with no agent attached gets this campaign's agent attached
431
+ automatically; a number attached to a **different** agent is refused.
432
+
433
+ (Tags: Bulk calls)`,
434
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["phone_number_id"], "properties": { "phone_number_id": { "type": "number", "description": "One of your numbers, from List phone numbers." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
435
+ method: "post",
436
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/numbers",
437
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
438
+ requestBodyContentType: "application/json",
439
+ securityRequirements: [{ "BearerAuth": [] }],
440
+ tags: ["Bulk calls"],
441
+ deprecated: false
442
+ }],
443
+ ["setBulkCallNumberActive", {
444
+ name: "setBulkCallNumberActive",
445
+ description: `Stop or resume dialing from one number in the pool.
446
+
447
+ Pausing is what you want when a number starts going bad mid-campaign:
448
+ dialing moves to the next number in sequence and the paused number keeps
449
+ its history and counters. The last active number of a running campaign
450
+ cannot be paused, since the campaign would have nothing to dial from.
451
+
452
+ Send the state you want rather than a toggle, so retrying the same
453
+ request is harmless.
454
+
455
+ \`assignment_id\` is the number's id **within this campaign's pool**, from
456
+ List rotation pool. It is not the \`phone_number_id\`.
457
+
458
+ (Tags: Bulk calls)`,
459
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "assignment_id": { "type": "number", "description": "The `assignment_id` from List rotation pool." }, "requestBody": { "type": "object", "required": ["is_active"], "properties": { "is_active": { "type": "boolean", "description": "`false` pauses the number, `true` resumes it." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "assignment_id", "requestBody"] },
460
+ method: "put",
461
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/numbers/{assignment_id}",
462
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }, { "name": "assignment_id", "in": "path" }],
463
+ requestBodyContentType: "application/json",
464
+ securityRequirements: [{ "BearerAuth": [] }],
465
+ tags: ["Bulk calls"],
466
+ deprecated: false
467
+ }],
468
+ ["addBulkCallContacts", {
469
+ name: "addBulkCallContacts",
470
+ description: `Add up to 1000 contacts to a campaign in one request.
471
+
472
+ This is the batch form of Add contact to dynamic campaign. Prefer it
473
+ whenever you have more than a handful: one request of 500 contacts is
474
+ far cheaper than 500 requests, on your side and ours.
475
+
476
+ Repeated numbers are kept, not merged. If the same number appears twice
477
+ with different variables, it is called twice, because two rows for one
478
+ number usually means two real reasons to call.
479
+
480
+ Rows that fail validation are reported in \`rejected\` and the rest are
481
+ still added, so a single bad number does not lose the batch. If the
482
+ campaign has \`call_conditions\`, rows that do not match are added with
483
+ status \`Skipped\`.
484
+
485
+ (Tags: Bulk calls)`,
486
+ inputSchema: { "type": "object", "properties": { "campaign_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["contacts"], "properties": { "contacts": { "type": "array", "maxItems": 1000, "description": "Each row needs `to_number`. Note this differs from the\n`contact_list` on Create bulk call, which uses\n`phone_number` and takes loose keys: here the variables go\nin an explicit `custom_variables` object.\n", "items": { "type": "object", "required": ["to_number"], "properties": { "to_number": { "type": "string", "description": "Number to call, in international format." }, "custom_variables": { "type": "object", "description": "Passed to the agent as context for this call, so it\ncan use them in the conversation.\n", "additionalProperties": true }, "metadata": { "type": "object", "description": "Stored with the contact and returned on its row in\nBulk call results. Not shown to the agent.\n", "additionalProperties": true } } } } }, "description": "The JSON request body." } }, "required": ["campaign_id", "requestBody"] },
487
+ method: "post",
488
+ pathTemplate: "/calls/bulk_call/{campaign_id}/add_contacts",
489
+ executionParameters: [{ "name": "campaign_id", "in": "path" }],
490
+ requestBodyContentType: "application/json",
491
+ securityRequirements: [{ "BearerAuth": [] }],
492
+ tags: ["Bulk calls"],
493
+ deprecated: false
494
+ }],
495
+ ["startBulkCall", {
496
+ name: "startBulkCall",
497
+ description: `Start a campaign that was created with \`save_as_draft: true\`.
498
+
499
+ Drafts let you build a campaign over several requests: create it, add
500
+ contacts in batches, set the number pool, set concurrency, then start
501
+ when everything is in place. A campaign that is already running,
502
+ scheduled, or finished cannot be started.
503
+
504
+ (Tags: Bulk calls)`,
505
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." } }, "required": ["bulk_call_id"] },
506
+ method: "post",
507
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/start",
508
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
509
+ requestBodyContentType: undefined,
510
+ securityRequirements: [{ "BearerAuth": [] }],
511
+ tags: ["Bulk calls"],
512
+ deprecated: false
513
+ }],
514
+ ["setBulkCallConcurrency", {
515
+ name: "setBulkCallConcurrency",
516
+ description: `Change how many calls the campaign places at once, including while it is
517
+ running. Raise it to finish sooner, lower it if your team cannot keep up
518
+ with transfers or your numbers are being answered less.
519
+
520
+ The ceiling is your account's concurrency limit.
521
+
522
+ (Tags: Bulk calls)`,
523
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["concurrent_call_limit"], "properties": { "concurrent_call_limit": { "type": "number", "minimum": 1, "description": "Calls to place at once." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
524
+ method: "put",
525
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/concurrency",
526
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
527
+ requestBodyContentType: "application/json",
528
+ securityRequirements: [{ "BearerAuth": [] }],
529
+ tags: ["Bulk calls"],
530
+ deprecated: false
531
+ }],
532
+ ["retryBulkCall", {
533
+ name: "retryBulkCall",
534
+ description: `Re-queue contacts that did not connect, without creating a new campaign.
535
+
536
+ Use it after a campaign finishes with more no-answers than you expected,
537
+ or when the reason was on your side (a bad window, a number that was
538
+ having a bad day). Retried contacts keep their original variables.
539
+
540
+ (Tags: Bulk calls)`,
541
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "properties": { "retry_strategy": { "type": "string", "default": "all", "description": "Which contacts to re-queue. `all` takes everything that did\nnot connect.\n" }, "max_retries": { "type": "number", "description": "Skip contacts already retried this many times." }, "failure_reasons": { "type": "array", "description": "Re-queue only contacts that failed for these reasons, for\nexample `no-answer` and `busy`.\n", "items": { "type": "string" } } }, "description": "The JSON request body." } }, "required": ["bulk_call_id"] },
542
+ method: "post",
543
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/manual_retry",
544
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
545
+ requestBodyContentType: "application/json",
546
+ securityRequirements: [{ "BearerAuth": [] }],
547
+ tags: ["Bulk calls"],
548
+ deprecated: false
549
+ }],
550
+ ["setBulkCallDailyTimeControl", {
551
+ name: "setBulkCallDailyTimeControl",
552
+ description: `Restrict a campaign to a daily calling window, in the campaign's
553
+ timezone. Outside the window the campaign holds rather than finishing,
554
+ and resumes the next day.
555
+
556
+ (Tags: Bulk calls)`,
557
+ inputSchema: { "type": "object", "properties": { "bulk_call_id": { "type": "number", "description": "Id of the bulk call campaign." }, "requestBody": { "type": "object", "required": ["enable_daily_hard_stop", "enable_daily_auto_start"], "properties": { "enable_daily_hard_stop": { "type": "boolean", "description": "Stop dialing at `daily_stop_time` each day." }, "daily_stop_time": { "type": "number", "description": "Hour of day to stop, 0 to 23. Fractions are allowed, so\n`17.5` is 17:30. Required when the hard stop is on.\n" }, "daily_stop_timezone": { "type": "string", "description": "Timezone for the stop time." }, "enable_daily_auto_start": { "type": "boolean", "description": "Resume dialing at `daily_start_time` each day." }, "daily_start_time": { "type": "number", "description": "Hour of day to resume, 0 to 23. Required when auto start\nis on.\n" }, "daily_start_timezone": { "type": "string", "description": "Timezone for the start time." } }, "description": "The JSON request body." } }, "required": ["bulk_call_id", "requestBody"] },
558
+ method: "put",
559
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/daily-time-control",
560
+ executionParameters: [{ "name": "bulk_call_id", "in": "path" }],
561
+ requestBodyContentType: "application/json",
562
+ securityRequirements: [{ "BearerAuth": [] }],
563
+ tags: ["Bulk calls"],
564
+ deprecated: false
565
+ }],
369
566
  ["getBulkCallLiveStatus", {
370
567
  name: "getBulkCallLiveStatus",
371
568
  description: `Real-time status of a running bulk-call campaign.
@@ -459,7 +656,9 @@ operating hours.
459
656
  }],
460
657
  ["listPhoneNumbers", {
461
658
  name: "listPhoneNumbers",
462
- description: `Retrieve all phone numbers associated with your account.
659
+ description: `Retrieve the phone numbers on your account, whether you bought them
660
+ from the OmniDimension number shop or imported your own.
661
+
463
662
  (Tags: Phone numbers)`,
464
663
  inputSchema: { "type": "object", "properties": { "pageno": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "pagesize": { "type": "integer", "minimum": 1, "default": 30, "maximum": 150, "description": "Items per page (max 150)." } } },
465
664
  method: "get",
@@ -470,6 +669,55 @@ operating hours.
470
669
  tags: ["Phone numbers"],
471
670
  deprecated: false
472
671
  }],
672
+ ["searchPhoneNumbers", {
673
+ name: "searchPhoneNumbers",
674
+ description: `Search the OmniDimension number shop for phone numbers available to buy
675
+ in a region. Price and validity are flat per region, so every result
676
+ shows the same \`monthly_rental_usd\` and \`validity_days\`, and that is the
677
+ exact amount a purchase will charge.
678
+
679
+ (Tags: Phone numbers)`,
680
+ inputSchema: { "type": "object", "properties": { "region": { "type": "string", "enum": ["IN", "US"], "description": "Region to search in." }, "pattern": { "type": "string", "description": "Digits or prefix to match within the number." }, "page": { "type": "number", "minimum": 1, "default": 1, "description": "Page of results to return." }, "limit": { "type": "number", "minimum": 1, "maximum": 150, "default": 20, "description": "Results per page." } }, "required": ["region"] },
681
+ method: "get",
682
+ pathTemplate: "/phone_number/search",
683
+ executionParameters: [{ "name": "region", "in": "query" }, { "name": "pattern", "in": "query" }, { "name": "page", "in": "query" }, { "name": "limit", "in": "query" }],
684
+ requestBodyContentType: undefined,
685
+ securityRequirements: [{ "BearerAuth": [] }],
686
+ tags: ["Phone numbers"],
687
+ deprecated: false
688
+ }],
689
+ ["purchasePhoneNumber", {
690
+ name: "purchasePhoneNumber",
691
+ description: `Buy a phone number from the OmniDimension number shop. The monthly
692
+ rental comes out of your wallet and the number is added to your
693
+ account, ready to attach to an agent.
694
+
695
+ (Tags: Phone numbers)`,
696
+ inputSchema: { "type": "object", "properties": { "Idempotency-Key": { "type": "string", "description": "Your own unique key for this purchase, for example a\nfresh UUID. Strongly recommended: it is what makes a\nretry safe.\n" }, "requestBody": { "type": "object", "required": ["region", "phone_number"], "properties": { "region": { "type": "string", "enum": ["IN", "US"], "description": "Region the number belongs to." }, "phone_number": { "type": "string", "description": "The number to buy, as returned by the search operation." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
697
+ method: "post",
698
+ pathTemplate: "/phone_number/purchase",
699
+ executionParameters: [{ "name": "Idempotency-Key", "in": "header" }],
700
+ requestBodyContentType: "application/json",
701
+ securityRequirements: [{ "BearerAuth": [] }],
702
+ tags: ["Phone numbers"],
703
+ deprecated: false
704
+ }],
705
+ ["releasePhoneNumber", {
706
+ name: "releasePhoneNumber",
707
+ description: `Give up a phone number and stop its rental, so it is not charged at the
708
+ next renewal. Only a number currently allocated to the account can be
709
+ released.
710
+
711
+ (Tags: Phone numbers)`,
712
+ inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["phone_number"], "properties": { "phone_number": { "type": "string", "description": "The number to release." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
713
+ method: "post",
714
+ pathTemplate: "/phone_number/release",
715
+ executionParameters: [],
716
+ requestBodyContentType: "application/json",
717
+ securityRequirements: [{ "BearerAuth": [] }],
718
+ tags: ["Phone numbers"],
719
+ deprecated: false
720
+ }],
473
721
  ["attachPhoneNumber", {
474
722
  name: "attachPhoneNumber",
475
723
  description: `Attach an account-owned phone number to an existing agent.
@@ -616,157 +864,6 @@ Other providers support basic pagination only.
616
864
  tags: ["Providers"],
617
865
  deprecated: false
618
866
  }],
619
- ["listChildOrganizations", {
620
- name: "listChildOrganizations",
621
- description: `List all child organizations and their users under the reseller
622
- account. Returns each organization's balance, cost-per-minute
623
- rate, and concurrency limit, plus the dashboard menu access
624
- flags scoped to your reseller's permissions for every user.
625
-
626
- (Tags: Reseller)`,
627
- inputSchema: { "type": "object", "properties": {} },
628
- method: "get",
629
- pathTemplate: "/reseller/organizations",
630
- executionParameters: [],
631
- requestBodyContentType: undefined,
632
- securityRequirements: [{ "BearerAuth": [] }],
633
- tags: ["Reseller"],
634
- deprecated: false
635
- }],
636
- ["addUser", {
637
- name: "addUser",
638
- description: `Create a new child user and organization under the reseller.
639
- The new organization is linked to your reseller account
640
- automatically.
641
-
642
- (Tags: Reseller)`,
643
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["name", "email", "phone", "password"], "properties": { "name": { "type": "string", "description": "Full name of the new user." }, "email": { "type": "string", "format": "email", "description": "Email address. Also used as the login." }, "phone": { "type": "string", "description": "Phone number including country code (e.g. `+15551234567`)." }, "password": { "type": "string", "format": "password", "description": "Account password for the new user." }, "welcome_minutes_to_credit": { "type": "number", "description": "Minutes to credit to the new account on signup." }, "cost_per_min": { "type": "number", "description": "Cost per minute charged to this user (e.g. `0.20`). Must be at least the reseller's premium model rate." }, "concurrent_call_limit": { "type": "number", "description": "Maximum number of concurrent calls allowed for this account." }, "expiry_date": { "type": "string", "format": "date", "description": "Account expiry date in `YYYY-MM-DD` format (e.g. `2026-12-31`)." }, "user_currency": { "type": "string", "description": "ISO 4217 currency code for the account (e.g. `USD`, `INR`). Defaults to the reseller's currency." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
644
- method: "post",
645
- pathTemplate: "/reseller/users/add",
646
- executionParameters: [],
647
- requestBodyContentType: "application/json",
648
- securityRequirements: [{ "BearerAuth": [] }],
649
- tags: ["Reseller"],
650
- deprecated: false
651
- }],
652
- ["setUserAccessControl", {
653
- name: "setUserAccessControl",
654
- description: `Enable or disable dashboard menu access flags for a child user.
655
- Only the flags you pass are changed. Flags outside your
656
- reseller's permissions are silently ignored.
657
-
658
- (Tags: Reseller)`,
659
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["user_id", "dashboard_menu_access"], "properties": { "user_id": { "type": "number", "description": "ID of the child user to update." }, "dashboard_menu_access": { "allOf": [{ "type": "object", "description": "Reseller-managed dashboard menu access flags. Each property is\na boolean toggle for a feature area in the child user's\ndashboard. On read endpoints, only flags the reseller\nthemselves has enabled are returned (so a child cannot have a\nflag the reseller doesn't have).\n", "properties": { "is_bots_menu_access": { "type": "boolean" }, "is_leads_access": { "type": "boolean" }, "is_voice_cloning_access": { "type": "boolean" }, "is_workflow_access": { "type": "boolean" }, "is_asr_evaluation_menu_access": { "type": "boolean" }, "is_train_with_call_recording_menu_access": { "type": "boolean" }, "is_call_logs_menu_access": { "type": "boolean" }, "is_call_simulation_menu_access": { "type": "boolean" }, "is_omni_crm_access": { "type": "boolean" }, "access_to_monitor_live_call": { "type": "boolean" }, "is_whatsapp_flow_enabled": { "type": "boolean" }, "is_billing_menu_access": { "type": "boolean" }, "is_knowledge_base_access": { "type": "boolean" }, "is_integration_access": { "type": "boolean" }, "is_phone_number_access": { "type": "boolean" }, "is_bulk_call_access": { "type": "boolean" }, "is_analytics_access": { "type": "boolean" } } }], "description": "Flags to update. Only pass the flags you want to\nchange. Others are left untouched. Flags outside\nyour reseller's permissions are silently dropped.\n" } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
660
- method: "post",
661
- pathTemplate: "/reseller/users/access-control",
662
- executionParameters: [],
663
- requestBodyContentType: "application/json",
664
- securityRequirements: [{ "BearerAuth": [] }],
665
- tags: ["Reseller"],
666
- deprecated: false
667
- }],
668
- ["setUserExpiry", {
669
- name: "setUserExpiry",
670
- description: `Set or remove the expiry date on a child user. The user must
671
- belong to a child organization of your reseller.
672
-
673
- (Tags: Reseller)`,
674
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["user_id"], "properties": { "user_id": { "type": "number", "description": "ID of the child user to update." }, "expiry_date": { "type": ["string", "null"], "format": "date", "description": "Expiry date in `YYYY-MM-DD` format. Omit or pass `null` to remove the expiry." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
675
- method: "post",
676
- pathTemplate: "/reseller/users/expiry",
677
- executionParameters: [],
678
- requestBodyContentType: "application/json",
679
- securityRequirements: [{ "BearerAuth": [] }],
680
- tags: ["Reseller"],
681
- deprecated: false
682
- }],
683
- ["setChildConcurrency", {
684
- name: "setChildConcurrency",
685
- description: `Set the maximum number of simultaneous calls a child
686
- organization can run. Slots come from the reseller's shared
687
- pool. Increasing the limit deducts the delta from your pool
688
- and fails if you don't have enough slots. Decreasing the
689
- limit returns the delta to your pool immediately.
690
-
691
- (Tags: Reseller)`,
692
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["child_organization_id", "new_limit"], "properties": { "child_organization_id": { "type": "number", "description": "ID of the child organization to update." }, "new_limit": { "type": "number", "description": "The desired absolute concurrent call limit (must be `>= 0`)." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
693
- method: "post",
694
- pathTemplate: "/reseller/concurrency",
695
- executionParameters: [],
696
- requestBodyContentType: "application/json",
697
- securityRequirements: [{ "BearerAuth": [] }],
698
- tags: ["Reseller"],
699
- deprecated: false
700
- }],
701
- ["calculateCreditOperation", {
702
- name: "calculateCreditOperation",
703
- description: `Preview the cost of a transfer or revert without moving any
704
- credits. Use this to confirm amounts before calling the
705
- transfer or revert endpoints. The response shape differs
706
- between forward transfers and reverts. See the examples.
707
-
708
- (Tags: Reseller)`,
709
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["minutes"], "properties": { "minutes": { "type": "number", "description": "Number of minutes to calculate for." }, "cost_per_min": { "type": "number", "description": "Rate per minute for a forward transfer (e.g. `0.20`). Not required when `is_revert` is `true`." }, "is_revert": { "type": "boolean", "description": "Set to `true` to calculate a revert instead of a forward transfer.", "default": false }, "child_organization_id": { "type": "number", "description": "ID of the child organization to revert credits from. Required when `is_revert` is `true`." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
710
- method: "post",
711
- pathTemplate: "/reseller/credits/calculate",
712
- executionParameters: [],
713
- requestBodyContentType: "application/json",
714
- securityRequirements: [{ "BearerAuth": [] }],
715
- tags: ["Reseller"],
716
- deprecated: false
717
- }],
718
- ["transferCreditsToChild", {
719
- name: "transferCreditsToChild",
720
- description: `Transfer minutes from the reseller balance to a child
721
- organization. Credits are deducted from your balance
722
- immediately on success. The target organization must be a
723
- direct child of your reseller. Use the calculate endpoint
724
- first to preview the cost.
725
-
726
- (Tags: Reseller)`,
727
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["to_organization_id", "minutes", "cost_per_min"], "properties": { "to_organization_id": { "type": "number", "description": "ID of the child organization to transfer credits to." }, "minutes": { "type": "number", "description": "Number of minutes to transfer." }, "cost_per_min": { "type": "number", "description": "Rate per minute to charge the child organization (e.g. `0.20`)." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
728
- method: "post",
729
- pathTemplate: "/reseller/credits/transfer",
730
- executionParameters: [],
731
- requestBodyContentType: "application/json",
732
- securityRequirements: [{ "BearerAuth": [] }],
733
- tags: ["Reseller"],
734
- deprecated: false
735
- }],
736
- ["revertCreditsFromChild", {
737
- name: "revertCreditsFromChild",
738
- description: `Take back unused minutes from a child organization to the
739
- reseller balance. The refund is calculated at the child's
740
- current rate, so you don't pass one. This matches exactly
741
- what was originally charged. Use the calculate endpoint
742
- first to preview the refund.
743
-
744
- (Tags: Reseller)`,
745
- inputSchema: { "type": "object", "properties": { "requestBody": { "type": "object", "required": ["from_organization_id", "minutes"], "properties": { "from_organization_id": { "type": "number", "description": "ID of the child organization to revert credits from." }, "minutes": { "type": "number", "description": "Number of minutes to revert." } }, "description": "The JSON request body." } }, "required": ["requestBody"] },
746
- method: "post",
747
- pathTemplate: "/reseller/credits/revert",
748
- executionParameters: [],
749
- requestBodyContentType: "application/json",
750
- securityRequirements: [{ "BearerAuth": [] }],
751
- tags: ["Reseller"],
752
- deprecated: false
753
- }],
754
- ["getResellerCreditLogs", {
755
- name: "getResellerCreditLogs",
756
- description: `Paginated history of all credit transfers and reverts for the
757
- reseller account. Returns reverse-chronological order by
758
- default. Date filters are inclusive.
759
-
760
- (Tags: Reseller)`,
761
- inputSchema: { "type": "object", "properties": { "page": { "type": "integer", "minimum": 1, "default": 1, "description": "Page number for pagination." }, "page_size": { "type": "number", "default": 20, "description": "Number of records per page (max 100)." }, "date_from": { "type": "string", "format": "date", "description": "Filter logs from this date in `YYYY-MM-DD` format (e.g. `2026-01-01`)." }, "date_to": { "type": "string", "format": "date", "description": "Filter logs up to and including this date in `YYYY-MM-DD` format (e.g. `2026-03-31`)." } } },
762
- method: "get",
763
- pathTemplate: "/reseller/credits/logs",
764
- executionParameters: [{ "name": "page", "in": "query" }, { "name": "page_size", "in": "query" }, { "name": "date_from", "in": "query" }, { "name": "date_to", "in": "query" }],
765
- requestBodyContentType: undefined,
766
- securityRequirements: [{ "BearerAuth": [] }],
767
- tags: ["Reseller"],
768
- deprecated: false
769
- }],
770
867
  ]);
771
868
  /**
772
869
  * Security schemes from the OpenAPI spec