Skip to content

Commit 2bbf5e6

Browse files
committed
Add EMAIL channel support and new fields to call start endpoint
1 parent c876159 commit 2bbf5e6

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@authsignal/node",
3-
"version": "2.19.0",
3+
"version": "2.20.0",
44
"main": "./dist/index.js",
55
"module": "./dist/index.mjs",
66
"types": "dist/index.d.ts",

src/call-connect.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,30 @@ export class CallConnect {
7171

7272
export type StartCallRequest = {
7373
referenceId: string;
74-
phoneNumber: string;
74+
phoneNumber?: string;
75+
country?: string;
7576
userId?: string;
7677
username?: string;
7778
channel?: CallConnectMessageChannel;
7879
email?: string;
7980
locale?: string;
81+
actionCode?: string;
8082
};
8183

8284
export type StartCallResponse = {
8385
messageId?: string;
84-
status?: string;
85-
error?: string;
8686
channel?: CallConnectMessageChannel;
87+
phoneNumber?: string;
88+
email?: string;
89+
error?: string;
90+
errorCode?: string;
91+
errorDescription?: string;
8792
};
8893

8994
export enum CallConnectMessageChannel {
9095
"WHATSAPP" = "WHATSAPP",
9196
"SMS" = "SMS",
97+
"EMAIL" = "EMAIL",
9298
}
9399

94100
export type FinishCallRequest = {

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const DEFAULT_API_URL = "https://api.authsignal.com/v1";
22

3-
export const VERSION = "2.19.10";
3+
export const VERSION = "2.20.0";

0 commit comments

Comments
 (0)