@omnidim-ai/mcp-server 0.10.1 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +1 -1
- package/build/index.js +213 -15
- package/build/index.js.map +1 -1
- package/build/procedures.js +129 -0
- package/build/procedures.js.map +1 -1
- package/build/tool-annotations.js +11 -0
- package/build/tool-annotations.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +213 -15
- package/src/procedures.ts +130 -0
- package/src/tool-annotations.ts +11 -0
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.
|
|
6
|
+
export declare const SERVER_VERSION = "0.11.1";
|
|
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.
|
|
21
|
+
export const SERVER_VERSION = "0.11.1";
|
|
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
|
/**
|
|
@@ -63,7 +63,7 @@ connect and talk, see "Connect the client and talk" below the
|
|
|
63
63
|
request details.
|
|
64
64
|
|
|
65
65
|
(Tags: Sessions)`,
|
|
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", "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"] },
|
|
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"] },
|
|
67
67
|
method: "post",
|
|
68
68
|
pathTemplate: "/sessions/create",
|
|
69
69
|
executionParameters: [],
|
|
@@ -282,22 +282,18 @@ phone number must include a country code with a leading plus.
|
|
|
282
282
|
}],
|
|
283
283
|
["createBulkCall", {
|
|
284
284
|
name: "createBulkCall",
|
|
285
|
-
description: `Create a new bulk-call campaign.
|
|
286
|
-
|
|
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).
|
|
287
289
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
- **Dynamic**: set \`is_dynamic\` to \`true\` and the campaign accepts
|
|
293
|
-
contacts in real time via the Add contact to dynamic campaign
|
|
294
|
-
webhook. \`contact_list\` is optional here, so you can start the
|
|
295
|
-
campaign empty and feed it from a CRM, form, or automation. A
|
|
296
|
-
dynamic campaign stays alive waiting for contacts instead of
|
|
297
|
-
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.
|
|
298
294
|
|
|
299
295
|
(Tags: Bulk calls)`,
|
|
300
|
-
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": "
|
|
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"] },
|
|
301
297
|
method: "post",
|
|
302
298
|
pathTemplate: "/calls/bulk_call/create",
|
|
303
299
|
executionParameters: [],
|
|
@@ -365,6 +361,208 @@ operating hours.
|
|
|
365
361
|
tags: ["Bulk calls"],
|
|
366
362
|
deprecated: false
|
|
367
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
|
+
}],
|
|
368
566
|
["getBulkCallLiveStatus", {
|
|
369
567
|
name: "getBulkCallLiveStatus",
|
|
370
568
|
description: `Real-time status of a running bulk-call campaign.
|