@getdial/cli 0.21.0 → 0.21.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/dist/cli.js
CHANGED
|
@@ -93,7 +93,7 @@ number
|
|
|
93
93
|
.command("purchase")
|
|
94
94
|
.description("Purchase an additional phone number. POST /api/v1/numbers.")
|
|
95
95
|
.requiredOption("--inbound-instruction <text>", "system prompt for inbound calls to this number")
|
|
96
|
-
.option("--inbound-voice-gender <male|female>", "voice gender for inbound calls (
|
|
96
|
+
.option("--inbound-voice-gender <male|female>", "voice gender for inbound calls (default: female; pass male to override)")
|
|
97
97
|
.option("--country <iso2>", "ISO-3166-1 alpha-2 country code (defaults to US server-side)")
|
|
98
98
|
.option("--area-code <code>", "preferred area code (US/CA)")
|
|
99
99
|
.option("--json", "machine-readable output")
|
|
@@ -108,7 +108,7 @@ number
|
|
|
108
108
|
.command("set <number>")
|
|
109
109
|
.description("Update a number's properties (at least one flag). PATCH /api/v1/numbers/<id>.")
|
|
110
110
|
.option("--inbound-instruction <text>", "new system prompt for inbound calls to this number")
|
|
111
|
-
.option("--inbound-voice-gender <male|female>", 'voice gender for inbound calls; pass "" to clear (
|
|
111
|
+
.option("--inbound-voice-gender <male|female>", 'voice gender for inbound calls; pass "" to clear (reverts to the default, female)')
|
|
112
112
|
.option("--nickname <text>", 'human-readable label for the number, e.g. "Support line"; pass "" to clear')
|
|
113
113
|
.option("--json", "machine-readable output")
|
|
114
114
|
.action(async (numberArg, opts) => process.exit(await runNumberSet({
|
|
@@ -156,7 +156,7 @@ const call = program
|
|
|
156
156
|
.option("--to <e164>", "destination phone number, E.164 (e.g. +14155551234)")
|
|
157
157
|
.option("--outbound-instruction <text>", "system prompt for the agent that will speak")
|
|
158
158
|
.option("--language <bcp47>", "BCP-47 language tag for the call (default: auto-detect from the destination number's country, alongside en-US)")
|
|
159
|
-
.option("--voice-gender <male|female>", "voice gender for the agent (
|
|
159
|
+
.option("--voice-gender <male|female>", "voice gender for the agent (default: female; pass male to override)")
|
|
160
160
|
.option("--idempotency-key <key>", "unique key (e.g. a UUID) making the placement idempotent: re-running with the same key returns the already-placed call instead of dialing again")
|
|
161
161
|
.option("--from-number-id <id>", "phoneNumberId to call from (defaults to onboard's number)")
|
|
162
162
|
.option("--json", "machine-readable output")
|
package/dist/lib/ops/calls.js
CHANGED
|
@@ -9,7 +9,7 @@ export async function placeCall(opts) {
|
|
|
9
9
|
fromNumberId,
|
|
10
10
|
outboundInstruction: opts.outboundInstruction,
|
|
11
11
|
...(opts.language && { language: opts.language }),
|
|
12
|
-
// Omitted → the server uses the
|
|
12
|
+
// Omitted → the server uses the default voice gender (female).
|
|
13
13
|
...(opts.voiceGender ? { voiceGender: opts.voiceGender } : {}),
|
|
14
14
|
}, auth.apiKey, opts.idempotencyKey ? { "idempotency-key": opts.idempotencyKey } : undefined);
|
|
15
15
|
if (!res.ok)
|
package/dist/mcp/schemas.js
CHANGED
|
@@ -25,7 +25,7 @@ export const phoneNumberSchema = z
|
|
|
25
25
|
nickname: z.string().nullable().optional().describe("Human-readable label for the number"),
|
|
26
26
|
country: z.string().optional(),
|
|
27
27
|
inboundInstruction: z.string().nullable().optional(),
|
|
28
|
-
inboundVoiceGender: z.string().nullable().optional().describe('Voice gender for inbound calls ("male"/"female"); null →
|
|
28
|
+
inboundVoiceGender: z.string().nullable().optional().describe('Voice gender for inbound calls ("male"/"female"); null → female (the default)'),
|
|
29
29
|
})
|
|
30
30
|
.passthrough();
|
|
31
31
|
export const messageSchema = z
|
|
@@ -6,7 +6,7 @@ const inputSchema = {
|
|
|
6
6
|
to: z.string().min(7).describe("Destination phone number, E.164 (e.g. +14155550123)"),
|
|
7
7
|
outboundInstruction: z.string().min(1).describe("System prompt for the AI voice agent on this call"),
|
|
8
8
|
language: z.string().optional().describe("BCP-47 language tag for the call. Omit to auto-detect from the destination number's country (alongside en-US)."),
|
|
9
|
-
voiceGender: z.enum(["male", "female"]).optional().describe("Voice gender for the agent;
|
|
9
|
+
voiceGender: z.enum(["male", "female"]).optional().describe("Voice gender for the agent; the default is female"),
|
|
10
10
|
idempotencyKey: z.string().optional().describe("Unique key (e.g. a UUID) making the placement idempotent: retrying with the same key returns the already-placed call instead of dialing again"),
|
|
11
11
|
fromNumberId: z.string().optional().describe("Number id to call from; defaults to your primary number"),
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ import { purchaseNumber } from "../../lib/ops/numbers.js";
|
|
|
4
4
|
import { phoneNumberSchema } from "../schemas.js";
|
|
5
5
|
const inputSchema = {
|
|
6
6
|
inboundInstruction: z.string().min(1).describe("System prompt for inbound calls to this number"),
|
|
7
|
-
inboundVoiceGender: z.enum(["male", "female"]).optional().describe("Voice gender for inbound calls to this number
|
|
7
|
+
inboundVoiceGender: z.enum(["male", "female"]).optional().describe("Voice gender for inbound calls to this number; the default is female"),
|
|
8
8
|
country: z.string().optional().describe("ISO-3166-1 alpha-2 country code (defaults to US server-side)"),
|
|
9
9
|
areaCode: z.string().optional().describe("Preferred area code (US/CA)"),
|
|
10
10
|
};
|
|
@@ -5,7 +5,7 @@ import { phoneNumberSchema } from "../schemas.js";
|
|
|
5
5
|
const inputSchema = {
|
|
6
6
|
number: z.string().min(7).describe("The E.164 phone number to update (e.g. +14155550123)"),
|
|
7
7
|
inboundInstruction: z.string().min(1).optional().describe("New system prompt for inbound calls to this number"),
|
|
8
|
-
inboundVoiceGender: z.enum(["male", "female"]).optional().describe("Voice gender for inbound calls to this number
|
|
8
|
+
inboundVoiceGender: z.enum(["male", "female"]).optional().describe("Voice gender for inbound calls to this number; the default is female"),
|
|
9
9
|
nickname: z.string().max(100).optional().describe('Human-readable label for the number, e.g. "Support line". Pass an empty string to clear it.'),
|
|
10
10
|
};
|
|
11
11
|
export const setNumberPropertiesTool = {
|
package/package.json
CHANGED
package/skills.tar.gz
CHANGED
|
Binary file
|