@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnidim-ai/mcp-server",
3
- "version": "0.9.2",
3
+ "version": "0.11.0",
4
4
  "mcpName": "io.github.Omnidim/omnidim-mcp-server",
5
5
  "description": "Official MCP server for OmniDimension. Drive voice agents, dispatch calls, and manage knowledge bases from Claude, Cursor, Windsurf, and any MCP client.",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -49,7 +49,7 @@ interface McpToolDefinition {
49
49
  * Server configuration
50
50
  */
51
51
  export const SERVER_NAME = "OmniDimension";
52
- export const SERVER_VERSION = "0.9.2";
52
+ export const SERVER_VERSION = "0.11.0";
53
53
  // Base URL for the API. Pinned to production; not env-overridable.
54
54
  export const API_BASE_URL = "https://backend.omnidim.io/api/v1";
55
55
 
@@ -65,7 +65,6 @@ Surfaces:
65
65
  - Knowledge base: upload PDFs and attach to agents.
66
66
  - Phone numbers: list, attach to agents, import from Twilio, Exotel, or SIP.
67
67
  - Providers: discover available LLMs, voices, STT, and TTS engines.
68
- - Reseller: child organization management (requires partner-level credentials; non-reseller keys get 403).
69
68
 
70
69
  Conventions:
71
70
  - List endpoints accept pageno (>= 1) and pagesize (1-150). Use name to filter.
@@ -103,7 +102,7 @@ connect and talk, see "Connect the client and talk" below the
103
102
  request details.
104
103
 
105
104
  (Tags: Sessions)`,
106
- 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"]},
105
+ 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"]},
107
106
  method: "post",
108
107
  pathTemplate: "/sessions/create",
109
108
  executionParameters: [],
@@ -149,7 +148,7 @@ before configuring the \`voicemail\` object.
149
148
  }],
150
149
  ["getAgent", {
151
150
  name: "getAgent",
152
- 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.
151
+ 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.
153
152
  (Tags: Agents)`,
154
153
  inputSchema: {"type":"object","properties":{"agent_id":{"type":"number","description":"The ID of the agent."}},"required":["agent_id"]},
155
154
  method: "get",
@@ -272,7 +271,7 @@ before configuring the \`voicemail\` object.
272
271
  phone number must include a country code with a leading plus.
273
272
 
274
273
  (Tags: Calls)`,
275
- 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"]},
274
+ 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"]},
276
275
  method: "post",
277
276
  pathTemplate: "/calls/dispatch",
278
277
  executionParameters: [],
@@ -322,22 +321,18 @@ phone number must include a country code with a leading plus.
322
321
  }],
323
322
  ["createBulkCall", {
324
323
  name: "createBulkCall",
325
- description: `Create a new bulk-call campaign. Supports immediate, scheduled,
326
- and auto-retry modes.
324
+ description: `Create a new bulk-call campaign. Only name, phone_number_id and a
325
+ contact_list are needed to dial a list now; every other field adds
326
+ one behaviour on top (drafts, rotation, filtering, scheduling,
327
+ retries, dynamic feeding).
327
328
 
328
- There are two kinds of campaign:
329
-
330
- - **Static** (default): you supply the full \`contact_list\` up
331
- front and the campaign dials through it.
332
- - **Dynamic**: set \`is_dynamic\` to \`true\` and the campaign accepts
333
- contacts in real time via the Add contact to dynamic campaign
334
- webhook. \`contact_list\` is optional here, so you can start the
335
- campaign empty and feed it from a CRM, form, or automation. A
336
- dynamic campaign stays alive waiting for contacts instead of
337
- completing when its queue drains.
329
+ The guide below the field reference walks the whole journey: the
330
+ first campaign and its response, each behaviour with a working
331
+ request, every refusal message with its fix, and the endpoints that
332
+ operate a campaign once it runs.
338
333
 
339
334
  (Tags: Bulk calls)`,
340
- 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"]},
335
+ 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"]},
341
336
  method: "post",
342
337
  pathTemplate: "/calls/bulk_call/create",
343
338
  executionParameters: [],
@@ -405,6 +400,208 @@ operating hours.
405
400
  tags: ["Bulk calls"],
406
401
  deprecated: false
407
402
  }],
403
+ ["listBulkCallLines", {
404
+ name: "listBulkCallLines",
405
+ description: `Per-contact results for a campaign: what happened on each call, the
406
+ variables you sent with that contact, and a pointer to the recording.
407
+
408
+ ## Paging
409
+
410
+ There is one rule. Call it with no \`cursor\`, then keep passing back the
411
+ \`next_cursor\` you were handed until it comes back \`null\`.
412
+
413
+ \`\`\`
414
+ cursor = None
415
+ while True:
416
+ page = GET /lines?pagesize=150&cursor={cursor}
417
+ handle(page["records"])
418
+ cursor = page["next_cursor"]
419
+ if not cursor: break
420
+ \`\`\`
421
+
422
+ Each call returns a page of rows, oldest first: \`pagesize\` goes up to
423
+ 150 and defaults to 30. Cursors are opaque, so pass back the string you
424
+ were given and never build one. No contact is skipped or returned
425
+ twice, even while the campaign is still dialing.
426
+
427
+ ## Transcripts are not in the row
428
+
429
+ Each row carries \`call.recording_id\`, not the conversation. Transcripts
430
+ reach 212 KB, so carrying them here would make one page tens of
431
+ megabytes. Fetch the one you want from
432
+ \`GET /calls/logs/{recording_id}\`.
433
+
434
+ (Tags: Bulk calls)`,
435
+ 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"]},
436
+ method: "get",
437
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/lines",
438
+ 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"}],
439
+ requestBodyContentType: undefined,
440
+ securityRequirements: [{"BearerAuth":[]}],
441
+ tags: ["Bulk calls"],
442
+ deprecated: false
443
+ }],
444
+ ["listBulkCallNumbers", {
445
+ name: "listBulkCallNumbers",
446
+ description: `The campaign's number pool, and which number is dialing right now.
447
+
448
+ \`calls_this_cycle\` is what \`fixed_count\` rotation compares against, so
449
+ it is the field to watch for the next rotation. \`calls_dispatched\` is
450
+ the number's lifetime total across every cycle.
451
+
452
+ (Tags: Bulk calls)`,
453
+ inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."}},"required":["bulk_call_id"]},
454
+ method: "get",
455
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/numbers",
456
+ executionParameters: [{"name":"bulk_call_id","in":"path"}],
457
+ requestBodyContentType: undefined,
458
+ securityRequirements: [{"BearerAuth":[]}],
459
+ tags: ["Bulk calls"],
460
+ deprecated: false
461
+ }],
462
+ ["addBulkCallNumber", {
463
+ name: "addBulkCallNumber",
464
+ description: `Add one of your numbers to the campaign's rotation pool. Works while the
465
+ campaign is running, which is how you bring in a fresh number when the
466
+ pool is running out of healthy ones.
467
+
468
+ The number must belong to you and must not already be in the pool. A
469
+ number with no agent attached gets this campaign's agent attached
470
+ automatically; a number attached to a **different** agent is refused.
471
+
472
+ (Tags: Bulk calls)`,
473
+ 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"]},
474
+ method: "post",
475
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/numbers",
476
+ executionParameters: [{"name":"bulk_call_id","in":"path"}],
477
+ requestBodyContentType: "application/json",
478
+ securityRequirements: [{"BearerAuth":[]}],
479
+ tags: ["Bulk calls"],
480
+ deprecated: false
481
+ }],
482
+ ["setBulkCallNumberActive", {
483
+ name: "setBulkCallNumberActive",
484
+ description: `Stop or resume dialing from one number in the pool.
485
+
486
+ Pausing is what you want when a number starts going bad mid-campaign:
487
+ dialing moves to the next number in sequence and the paused number keeps
488
+ its history and counters. The last active number of a running campaign
489
+ cannot be paused, since the campaign would have nothing to dial from.
490
+
491
+ Send the state you want rather than a toggle, so retrying the same
492
+ request is harmless.
493
+
494
+ \`assignment_id\` is the number's id **within this campaign's pool**, from
495
+ List rotation pool. It is not the \`phone_number_id\`.
496
+
497
+ (Tags: Bulk calls)`,
498
+ 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"]},
499
+ method: "put",
500
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/numbers/{assignment_id}",
501
+ executionParameters: [{"name":"bulk_call_id","in":"path"},{"name":"assignment_id","in":"path"}],
502
+ requestBodyContentType: "application/json",
503
+ securityRequirements: [{"BearerAuth":[]}],
504
+ tags: ["Bulk calls"],
505
+ deprecated: false
506
+ }],
507
+ ["addBulkCallContacts", {
508
+ name: "addBulkCallContacts",
509
+ description: `Add up to 1000 contacts to a campaign in one request.
510
+
511
+ This is the batch form of Add contact to dynamic campaign. Prefer it
512
+ whenever you have more than a handful: one request of 500 contacts is
513
+ far cheaper than 500 requests, on your side and ours.
514
+
515
+ Repeated numbers are kept, not merged. If the same number appears twice
516
+ with different variables, it is called twice, because two rows for one
517
+ number usually means two real reasons to call.
518
+
519
+ Rows that fail validation are reported in \`rejected\` and the rest are
520
+ still added, so a single bad number does not lose the batch. If the
521
+ campaign has \`call_conditions\`, rows that do not match are added with
522
+ status \`Skipped\`.
523
+
524
+ (Tags: Bulk calls)`,
525
+ 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"]},
526
+ method: "post",
527
+ pathTemplate: "/calls/bulk_call/{campaign_id}/add_contacts",
528
+ executionParameters: [{"name":"campaign_id","in":"path"}],
529
+ requestBodyContentType: "application/json",
530
+ securityRequirements: [{"BearerAuth":[]}],
531
+ tags: ["Bulk calls"],
532
+ deprecated: false
533
+ }],
534
+ ["startBulkCall", {
535
+ name: "startBulkCall",
536
+ description: `Start a campaign that was created with \`save_as_draft: true\`.
537
+
538
+ Drafts let you build a campaign over several requests: create it, add
539
+ contacts in batches, set the number pool, set concurrency, then start
540
+ when everything is in place. A campaign that is already running,
541
+ scheduled, or finished cannot be started.
542
+
543
+ (Tags: Bulk calls)`,
544
+ inputSchema: {"type":"object","properties":{"bulk_call_id":{"type":"number","description":"Id of the bulk call campaign."}},"required":["bulk_call_id"]},
545
+ method: "post",
546
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/start",
547
+ executionParameters: [{"name":"bulk_call_id","in":"path"}],
548
+ requestBodyContentType: undefined,
549
+ securityRequirements: [{"BearerAuth":[]}],
550
+ tags: ["Bulk calls"],
551
+ deprecated: false
552
+ }],
553
+ ["setBulkCallConcurrency", {
554
+ name: "setBulkCallConcurrency",
555
+ description: `Change how many calls the campaign places at once, including while it is
556
+ running. Raise it to finish sooner, lower it if your team cannot keep up
557
+ with transfers or your numbers are being answered less.
558
+
559
+ The ceiling is your account's concurrency limit.
560
+
561
+ (Tags: Bulk calls)`,
562
+ 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"]},
563
+ method: "put",
564
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/concurrency",
565
+ executionParameters: [{"name":"bulk_call_id","in":"path"}],
566
+ requestBodyContentType: "application/json",
567
+ securityRequirements: [{"BearerAuth":[]}],
568
+ tags: ["Bulk calls"],
569
+ deprecated: false
570
+ }],
571
+ ["retryBulkCall", {
572
+ name: "retryBulkCall",
573
+ description: `Re-queue contacts that did not connect, without creating a new campaign.
574
+
575
+ Use it after a campaign finishes with more no-answers than you expected,
576
+ or when the reason was on your side (a bad window, a number that was
577
+ having a bad day). Retried contacts keep their original variables.
578
+
579
+ (Tags: Bulk calls)`,
580
+ 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"]},
581
+ method: "post",
582
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/manual_retry",
583
+ executionParameters: [{"name":"bulk_call_id","in":"path"}],
584
+ requestBodyContentType: "application/json",
585
+ securityRequirements: [{"BearerAuth":[]}],
586
+ tags: ["Bulk calls"],
587
+ deprecated: false
588
+ }],
589
+ ["setBulkCallDailyTimeControl", {
590
+ name: "setBulkCallDailyTimeControl",
591
+ description: `Restrict a campaign to a daily calling window, in the campaign's
592
+ timezone. Outside the window the campaign holds rather than finishing,
593
+ and resumes the next day.
594
+
595
+ (Tags: Bulk calls)`,
596
+ 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"]},
597
+ method: "put",
598
+ pathTemplate: "/calls/bulk_call/{bulk_call_id}/daily-time-control",
599
+ executionParameters: [{"name":"bulk_call_id","in":"path"}],
600
+ requestBodyContentType: "application/json",
601
+ securityRequirements: [{"BearerAuth":[]}],
602
+ tags: ["Bulk calls"],
603
+ deprecated: false
604
+ }],
408
605
  ["getBulkCallLiveStatus", {
409
606
  name: "getBulkCallLiveStatus",
410
607
  description: `Real-time status of a running bulk-call campaign.
@@ -498,7 +695,9 @@ operating hours.
498
695
  }],
499
696
  ["listPhoneNumbers", {
500
697
  name: "listPhoneNumbers",
501
- description: `Retrieve all phone numbers associated with your account.
698
+ description: `Retrieve the phone numbers on your account, whether you bought them
699
+ from the OmniDimension number shop or imported your own.
700
+
502
701
  (Tags: Phone numbers)`,
503
702
  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)."}}},
504
703
  method: "get",
@@ -509,6 +708,55 @@ operating hours.
509
708
  tags: ["Phone numbers"],
510
709
  deprecated: false
511
710
  }],
711
+ ["searchPhoneNumbers", {
712
+ name: "searchPhoneNumbers",
713
+ description: `Search the OmniDimension number shop for phone numbers available to buy
714
+ in a region. Price and validity are flat per region, so every result
715
+ shows the same \`monthly_rental_usd\` and \`validity_days\`, and that is the
716
+ exact amount a purchase will charge.
717
+
718
+ (Tags: Phone numbers)`,
719
+ 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"]},
720
+ method: "get",
721
+ pathTemplate: "/phone_number/search",
722
+ executionParameters: [{"name":"region","in":"query"},{"name":"pattern","in":"query"},{"name":"page","in":"query"},{"name":"limit","in":"query"}],
723
+ requestBodyContentType: undefined,
724
+ securityRequirements: [{"BearerAuth":[]}],
725
+ tags: ["Phone numbers"],
726
+ deprecated: false
727
+ }],
728
+ ["purchasePhoneNumber", {
729
+ name: "purchasePhoneNumber",
730
+ description: `Buy a phone number from the OmniDimension number shop. The monthly
731
+ rental comes out of your wallet and the number is added to your
732
+ account, ready to attach to an agent.
733
+
734
+ (Tags: Phone numbers)`,
735
+ 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"]},
736
+ method: "post",
737
+ pathTemplate: "/phone_number/purchase",
738
+ executionParameters: [{"name":"Idempotency-Key","in":"header"}],
739
+ requestBodyContentType: "application/json",
740
+ securityRequirements: [{"BearerAuth":[]}],
741
+ tags: ["Phone numbers"],
742
+ deprecated: false
743
+ }],
744
+ ["releasePhoneNumber", {
745
+ name: "releasePhoneNumber",
746
+ description: `Give up a phone number and stop its rental, so it is not charged at the
747
+ next renewal. Only a number currently allocated to the account can be
748
+ released.
749
+
750
+ (Tags: Phone numbers)`,
751
+ 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"]},
752
+ method: "post",
753
+ pathTemplate: "/phone_number/release",
754
+ executionParameters: [],
755
+ requestBodyContentType: "application/json",
756
+ securityRequirements: [{"BearerAuth":[]}],
757
+ tags: ["Phone numbers"],
758
+ deprecated: false
759
+ }],
512
760
  ["attachPhoneNumber", {
513
761
  name: "attachPhoneNumber",
514
762
  description: `Attach an account-owned phone number to an existing agent.
@@ -655,157 +903,6 @@ Other providers support basic pagination only.
655
903
  tags: ["Providers"],
656
904
  deprecated: false
657
905
  }],
658
- ["listChildOrganizations", {
659
- name: "listChildOrganizations",
660
- description: `List all child organizations and their users under the reseller
661
- account. Returns each organization's balance, cost-per-minute
662
- rate, and concurrency limit, plus the dashboard menu access
663
- flags scoped to your reseller's permissions for every user.
664
-
665
- (Tags: Reseller)`,
666
- inputSchema: {"type":"object","properties":{}},
667
- method: "get",
668
- pathTemplate: "/reseller/organizations",
669
- executionParameters: [],
670
- requestBodyContentType: undefined,
671
- securityRequirements: [{"BearerAuth":[]}],
672
- tags: ["Reseller"],
673
- deprecated: false
674
- }],
675
- ["addUser", {
676
- name: "addUser",
677
- description: `Create a new child user and organization under the reseller.
678
- The new organization is linked to your reseller account
679
- automatically.
680
-
681
- (Tags: Reseller)`,
682
- 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"]},
683
- method: "post",
684
- pathTemplate: "/reseller/users/add",
685
- executionParameters: [],
686
- requestBodyContentType: "application/json",
687
- securityRequirements: [{"BearerAuth":[]}],
688
- tags: ["Reseller"],
689
- deprecated: false
690
- }],
691
- ["setUserAccessControl", {
692
- name: "setUserAccessControl",
693
- description: `Enable or disable dashboard menu access flags for a child user.
694
- Only the flags you pass are changed. Flags outside your
695
- reseller's permissions are silently ignored.
696
-
697
- (Tags: Reseller)`,
698
- 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"]},
699
- method: "post",
700
- pathTemplate: "/reseller/users/access-control",
701
- executionParameters: [],
702
- requestBodyContentType: "application/json",
703
- securityRequirements: [{"BearerAuth":[]}],
704
- tags: ["Reseller"],
705
- deprecated: false
706
- }],
707
- ["setUserExpiry", {
708
- name: "setUserExpiry",
709
- description: `Set or remove the expiry date on a child user. The user must
710
- belong to a child organization of your reseller.
711
-
712
- (Tags: Reseller)`,
713
- 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"]},
714
- method: "post",
715
- pathTemplate: "/reseller/users/expiry",
716
- executionParameters: [],
717
- requestBodyContentType: "application/json",
718
- securityRequirements: [{"BearerAuth":[]}],
719
- tags: ["Reseller"],
720
- deprecated: false
721
- }],
722
- ["setChildConcurrency", {
723
- name: "setChildConcurrency",
724
- description: `Set the maximum number of simultaneous calls a child
725
- organization can run. Slots come from the reseller's shared
726
- pool. Increasing the limit deducts the delta from your pool
727
- and fails if you don't have enough slots. Decreasing the
728
- limit returns the delta to your pool immediately.
729
-
730
- (Tags: Reseller)`,
731
- 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"]},
732
- method: "post",
733
- pathTemplate: "/reseller/concurrency",
734
- executionParameters: [],
735
- requestBodyContentType: "application/json",
736
- securityRequirements: [{"BearerAuth":[]}],
737
- tags: ["Reseller"],
738
- deprecated: false
739
- }],
740
- ["calculateCreditOperation", {
741
- name: "calculateCreditOperation",
742
- description: `Preview the cost of a transfer or revert without moving any
743
- credits. Use this to confirm amounts before calling the
744
- transfer or revert endpoints. The response shape differs
745
- between forward transfers and reverts. See the examples.
746
-
747
- (Tags: Reseller)`,
748
- 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"]},
749
- method: "post",
750
- pathTemplate: "/reseller/credits/calculate",
751
- executionParameters: [],
752
- requestBodyContentType: "application/json",
753
- securityRequirements: [{"BearerAuth":[]}],
754
- tags: ["Reseller"],
755
- deprecated: false
756
- }],
757
- ["transferCreditsToChild", {
758
- name: "transferCreditsToChild",
759
- description: `Transfer minutes from the reseller balance to a child
760
- organization. Credits are deducted from your balance
761
- immediately on success. The target organization must be a
762
- direct child of your reseller. Use the calculate endpoint
763
- first to preview the cost.
764
-
765
- (Tags: Reseller)`,
766
- 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"]},
767
- method: "post",
768
- pathTemplate: "/reseller/credits/transfer",
769
- executionParameters: [],
770
- requestBodyContentType: "application/json",
771
- securityRequirements: [{"BearerAuth":[]}],
772
- tags: ["Reseller"],
773
- deprecated: false
774
- }],
775
- ["revertCreditsFromChild", {
776
- name: "revertCreditsFromChild",
777
- description: `Take back unused minutes from a child organization to the
778
- reseller balance. The refund is calculated at the child's
779
- current rate, so you don't pass one. This matches exactly
780
- what was originally charged. Use the calculate endpoint
781
- first to preview the refund.
782
-
783
- (Tags: Reseller)`,
784
- 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"]},
785
- method: "post",
786
- pathTemplate: "/reseller/credits/revert",
787
- executionParameters: [],
788
- requestBodyContentType: "application/json",
789
- securityRequirements: [{"BearerAuth":[]}],
790
- tags: ["Reseller"],
791
- deprecated: false
792
- }],
793
- ["getResellerCreditLogs", {
794
- name: "getResellerCreditLogs",
795
- description: `Paginated history of all credit transfers and reverts for the
796
- reseller account. Returns reverse-chronological order by
797
- default. Date filters are inclusive.
798
-
799
- (Tags: Reseller)`,
800
- 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`)."}}},
801
- method: "get",
802
- pathTemplate: "/reseller/credits/logs",
803
- executionParameters: [{"name":"page","in":"query"},{"name":"page_size","in":"query"},{"name":"date_from","in":"query"},{"name":"date_to","in":"query"}],
804
- requestBodyContentType: undefined,
805
- securityRequirements: [{"BearerAuth":[]}],
806
- tags: ["Reseller"],
807
- deprecated: false
808
- }],
809
906
  ]);
810
907
 
811
908
  /**