Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@vonage/server-sdk

Package Overview
Dependencies
61
Maintainers
14
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.10.6-beta to 2.10.6

packages/auth/dist/auth.d.ts

42

CHANGELOG.md
# Changelog
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
## 2.10.6
Updating main line branch tag. No changes.
## 2.10.6
## 2.10.5
### Added
### Fixed
* #299 - Added Channel type support
* #432 - Fix new issue with host override.

@@ -102,37 +104,19 @@ ## 2.10.4

## 2.7.0-beta-1
- ADDED: Change host via the config object, using `apiHost` & `restHost`
## 2.6.0
- ADDED: Change host via the config object, using `apiHost` & `restHost`
* ADDED: Change host via the config object, using `apiHost` & `restHost`
## 2.5.3
- FIXED: URI Encode Signed SMS Message
* FIXED: URI Encode Signed SMS Message
## 2.5.2
- ADDED: Pricing API support
* ADDED: Pricing API support
## 2.5.1
- ADDED: typings for Verify API
- ADDED: Applications API V2 support
## 2.6.0-beta-1
- Added beta2 API version for `get()` methods in `nexmo.users`, `nexmo.users.getConversations`, `nexmo.conversations`, `nexmo.conversations.members` and `nexmo.conversations.events`
- Added cursor pagination methods `next()` and `prev()` for `nexmo.users`, `nexmo.conversations`, `nexmo.conversations.members` and `nexmo.conversations.events`
- Added v1 API version for `nexmo.conversations.record()`
- Added the ability to change host for `nexmo.users`, `nexmo.conversations`, `nexmo.conversations.members` and `nexmo.conversations.events`
- Updated `nexmo.users.getConversations` to accept a query parameter
* ADDED: typings for Verify API
* ADDED: Applications API V2 support
## 2.5.4-beta-1
- Fix `applications.get` to use request query instead of request body
## 2.5.3-beta-3
- Fix application V2 parsing error responses
## 2.5.2-beta-1
- Add Conversation Recording
- Rename `nexmo.conversations.members.add` to `nexmo.conversations.members.create` with backwards compatibility
- Add Member Update and Deletions
- Add Event Creation, Retrieval and Deletion
## 2.4.2

@@ -139,0 +123,0 @@

{
"name": "@vonage/server-sdk",
"author": "vonage",
"version": "2.10.6-beta",
"version": "2.10.6",
"main": "lib/Vonage",

@@ -30,4 +30,3 @@ "types": "./typings/index.d.ts",

"ecwyne",
"https://github.com/backhand",
"alexlakatos"
"https://github.com/backhand"
],

@@ -45,4 +44,3 @@ "scripts": {

"prepublish": "npm run compile",
"pretest": "npm run lint",
"test-e2e": "npm run compile && mocha --compilers ./node_modules/.bin/_mocha --compilers js:babel-register ./e2e/*.spec.js"
"pretest": "npm run lint"
},

@@ -55,4 +53,4 @@ "devDependencies": {

"@babel/register": "^7.10.5",
"babel-plugin-istanbul": "^6.0.0",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-istanbul": "^6.0.0",
"bluebird": "^3.5.3",

@@ -59,0 +57,0 @@ "body-parser": "^1.18.3",

@@ -36,5 +36,2 @@ # Vonage Server SDK for Node.js

* `apiKey` and `apiSecret` are required for SMS, Verify, Number Insights, Account management APIs
* `applicationId` and `privateKey` are required for Voice / Stitch applications
```js

@@ -41,0 +38,0 @@ const Vonage = require('@vonage/server-sdk');

@@ -460,221 +460,130 @@ /*

): void;
}
}
/* voice API */
export interface To{
type: string;
number: string;
dtmfAnswer?: string;
}
export interface From{
type: string;
number: string;
}
/* voice API */
export interface To{
type: string;
number: string;
dtmfAnswer?: string;
}
export interface CallsResponse {
count: number;
page_size: number;
record_index: number;
_links: CallDetailLinks;
_embedded: CallDetailEmbedded;
}
export interface CallDetailLinks {
self: CallDetailsSelf;
}
export interface CallDetailsSelf {
href: string;
}
export interface CallDetailEmbedded {
calls: CallDetailCall[];
}
export interface CallDetailCall {
_links: CallDetailLinks;
uuid: string;
conversation_uuid: string;
to: To;
from: From;
status: string;
direction: string;
rate: string;
price: string;
duration: string;
start_time: Date;
end_time: Date;
network: string;
}
export interface From{
type: string;
number: string;
}
export interface OutboundCallRequest{
answer_url?: string[];
ncco?: Ncco[];
status: string;
to: To[];
from: From;
event_url: string[];
machine_detection: string;
}
export interface Ncco {
action: string;
text: string;
}
export interface OutboundCallResponse{
uuid: string;
status: string;
direction: string;
conversation_uuid: string;
}
export interface CallsResponse {
count: number;
page_size: number;
record_index: number;
_links: CallDetailLinks;
_embedded: CallDetailEmbedded;
}
export interface CallDetailResponse {
_links: CallDetailLinks;
uuid: string;
conversation_uuid: string;
to: To;
from: From;
status: string;
direction: string;
rate: string;
price: string;
duration: string;
start_time: Date;
end_time: Date;
network: string;
}
export interface CallDetailLinks {
self: CallDetailsSelf;
}
export interface InProgressCallRequest {
action: string;
destination?: Destination;
}
export interface CallDetailsSelf {
href: string;
}
export interface Destination {
type: string;
ncco?: Ncco[];
url?: string[];
}
export interface CallDetailEmbedded {
calls: CallDetailCall[];
}
export interface StreamAudioInCallRequest {
stream_url: string[];
level?: string;
}
export interface ModifyInProgressCallResponse {
message: string;
uuid: string;
}
export interface CallDetailCall {
_links: CallDetailLinks;
uuid: string;
conversation_uuid: string;
to: To;
from: From;
status: string;
direction: string;
rate: string;
price: string;
duration: string;
start_time: Date;
end_time: Date;
network: string;
}
export interface TextToSpeechRequest {
text: string;
level?: string;
}
export interface DTMFRequest {
digits: number;
}
export interface OutboundCallRequest{
answer_url?: string[];
ncco?: Ncco[];
status: string;
to: To[];
from: From;
event_url: string[];
machine_detection: string;
}
export class Voice {
constructor(credentials: CredentialsObject, options: { [key: string]: any });
sendTTSMessage(recipient: To, message: TextToSpeechRequest, options: CredentialsObject, callback: (data: ModifyInProgressCallResponse) => void ): void;
sendTTSPromptWithCapture(recipient: To, message: TextToSpeechRequest, maxDigits: Number, callback: (data: ModifyInProgressCallResponse) => void ): void;
sendTTSPromptWithConfirm(recipient: To, message: TextToSpeechRequest, maxDigits: Number, pinCode: string, byeText: string, failedText: string, callback: (data: ModifyInProgressCallResponse) => void ): void;
call(recipient: To, answerUrl: string, opts: OutboundCallRequest, callback: (data: OutboundCallResponse) => void): void;
__proto__: any;
[key: string]: any;
}
export interface Ncco {
action: string;
text: string;
}
export interface OutboundCallResponse{
uuid: string;
status: string;
direction: string;
conversation_uuid: string;
}
export interface CallDetailResponse {
_links: CallDetailLinks;
uuid: string;
conversation_uuid: string;
to: To;
from: From;
status: string;
direction: string;
rate: string;
price: string;
duration: string;
start_time: Date;
end_time: Date;
network: string;
}
export interface InProgressCallRequest {
action: string;
destination?: Destination;
}
export interface Destination {
type: string;
ncco?: Ncco[];
url?: string[];
}
export interface StreamAudioInCallRequest {
stream_url: string[];
level?: string;
}
export interface ModifyInProgressCallResponse {
message: string;
uuid: string;
}
export interface TextToSpeechRequest {
text: string;
level?: string;
}
export interface DTMFRequest {
digits: number;
}
export class Voice {
constructor(credentials: CredentialsObject, options: { [key: string]: any });
sendTTSMessage(recipient: To, message: TextToSpeechRequest, options: CredentialsObject, callback: (data: ModifyInProgressCallResponse) => void ): void;
sendTTSPromptWithCapture(recipient: To, message: TextToSpeechRequest, maxDigits: Number, callback: (data: ModifyInProgressCallResponse) => void ): void;
sendTTSPromptWithConfirm(recipient: To, message: TextToSpeechRequest, maxDigits: Number, pinCode: string, byeText: string, failedText: string, callback: (data: ModifyInProgressCallResponse) => void ): void;
call(recipient: To, answerUrl: string, opts: OutboundCallRequest, callback: (data: OutboundCallResponse) => void): void;
}
type ChannelType = 'sms' | 'viber_service_msg' | 'messenger' | 'whatsapp' | 'mms';
type ChannelMessageType = 'text' | 'image' | 'audio' | 'video' | 'file' | 'template' | 'custom';
interface ChannelToFrom {
// The type of message that you want to send.
type: ChannelType;
id?: string;
/**
* The phone number of the message recipient in the E.164 format. Don't use a leading + or 00 when entering a phone number, start with the country code, for example, 447700900000.
*/
number: string;
}
interface ChannelContentImage {
url: string;
caption: string;
}
interface ChannelContentAudio {
url: string;
}
interface ChannelContentVideo {
url: string;
}
interface ChannelContentFile {
url: string;
caption: string;
}
interface ChannelContentTemplate {
name: string;
parameters: object[];
}
interface ChannelContent {
type: ChannelMessageType;
text: string;
image?: ChannelContentImage;
audio?: ChannelContentAudio;
video?: ChannelContentVideo;
file?: ChannelContentFile;
template?: ChannelContentTemplate;
}
interface ChannelViberServiceMsg {
category?: 'transaction' | 'promotion';
ttl?: number;
type?: string;
}
interface ChannelMessenger {
category?: 'response' | 'update' | 'message_tag';
tag?: string;
}
interface ChannelWhatsApp {
policy?: 'fallback' | 'deterministic';
locale?: string;
}
interface ChannelMessage {
content: ChannelContent;
viber_service_msg?: ChannelViberServiceMsg;
channel?: ChannelMessenger;
whatsapp?: ChannelWhatsApp;
client_ref?: string;
}
export interface MessageSendResponse {
message_uuid: string;
}
export interface MessageSendError {
type: string;
title: string;
detail: string;
instance: string;
}
export class Channel {
constructor(credentials: CredentialsObject, options: { [key: string]: any });
static readonly PATH: string;
send(
to: ChannelToFrom,
from: ChannelToFrom,
message: ChannelMessage,
callback: (err: MessageSendError, data: MessageSendResponse) => void
);
}
/* Vonage */

@@ -687,6 +596,5 @@ export default class Vonage {

public readonly number: Number;
public readonly numberInsight: NumberInsight;
public readonly voice: Voice;
public readonly channel: Channel;
public readonly numberInsight: NumberInsight;
public readonly voice: Voice;
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc