@vonage/server-sdk
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -9,16 +9,9 @@ import { Accounts, Secrets } from '@vonage/accounts'; | ||
import { Redact } from '@vonage/redact'; | ||
import { ResponseTypes } from '@vonage/vetch'; | ||
import { SMS } from '@vonage/sms'; | ||
import { Verify } from '@vonage/verify'; | ||
import { Voice } from '@vonage/voice'; | ||
type VonageOptions = { | ||
timeout: number; | ||
restHost: string; | ||
apiHost: string; | ||
videoHost: string; | ||
responseType: ResponseTypes; | ||
}; | ||
import { ConfigParams } from '@vonage/server-client'; | ||
export declare class Vonage { | ||
protected credentials: AuthInterface; | ||
protected options: VonageOptions; | ||
protected options: ConfigParams; | ||
accounts: Accounts; | ||
@@ -35,4 +28,3 @@ applications: Applications; | ||
voice: Voice; | ||
constructor(credentials: AuthInterface, options?: VonageOptions); | ||
constructor(credentials: AuthInterface, options?: ConfigParams); | ||
} | ||
export {}; |
{ | ||
"name": "@vonage/server-sdk", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "Node.js Client for the Vonage API Platform", | ||
@@ -30,14 +30,14 @@ "homepage": "https://developer.vonage.com", | ||
"dependencies": { | ||
"@vonage/accounts": "^1.3.0", | ||
"@vonage/applications": "^1.3.0", | ||
"@vonage/auth": "^1.2.0", | ||
"@vonage/messages": "^1.3.0", | ||
"@vonage/number-insights": "^1.3.0", | ||
"@vonage/numbers": "^1.3.0", | ||
"@vonage/pricing": "^1.3.0", | ||
"@vonage/redact": "^1.2.0", | ||
"@vonage/sms": "^1.3.0", | ||
"@vonage/verify": "^1.3.0", | ||
"@vonage/vetch": "^1.2.0", | ||
"@vonage/voice": "^1.3.0" | ||
"@vonage/accounts": "^1.4.0", | ||
"@vonage/applications": "^1.4.0", | ||
"@vonage/auth": "^1.3.0", | ||
"@vonage/messages": "^1.4.0", | ||
"@vonage/number-insights": "^1.4.0", | ||
"@vonage/numbers": "^1.4.0", | ||
"@vonage/pricing": "^1.4.0", | ||
"@vonage/redact": "^1.3.0", | ||
"@vonage/server-client": "^1.4.0", | ||
"@vonage/sms": "^1.4.0", | ||
"@vonage/verify": "^1.4.0", | ||
"@vonage/voice": "^1.4.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "publishConfig": { |
# Vonage Server SDK for Node.js | ||
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/vonage/vonage-node-sdk/Vonage/3.x?logo=github&style=flat-square&label=Workflow%20Build) | ||
[![Codecov](https://img.shields.io/codecov/c/github/vonage/vonage-node-sdk?label=Codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/Vonage/vonage-server-sdk) | ||
![Latest Release](https://img.shields.io/npm/v/@vonage/server-sdk) | ||
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](../../CODE_OF_CONDUCT.md) | ||
[![License](https://img.shields.io/npm/l/@vonage/server-sdk?label=License&style=flat-square)][license] | ||
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/vonage/vonage-node-sdk/ci.yml?branch=3.x) [![Codecov](https://img.shields.io/codecov/c/github/vonage/vonage-node-sdk?label=Codecov&logo=codecov&style=flat-square)](https://codecov.io/gh/Vonage/vonage-server-sdk) ![Latest Release](https://img.shields.io/npm/v/@vonage/server-sdk?label=%40vonage%2Fserver-sdk&style=flat-square) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](../../CODE_OF_CONDUCT.md) [![License](https://img.shields.io/npm/l/@vonage/accounts?label=License&style=flat-square)][license] | ||
<img src="https://developer.nexmo.com/images/logos/vbc-logo.svg" height="48px" alt="Vonage" /> | ||
This is the Node.JS Server SDK for [Vonage APIs](https://www.vonage.com/). To | ||
use it you will need a Vonage account. Sign up [for free at vonage.com][signup]. | ||
This is the Node.JS Server SDK for [Vonage APIs](https://www.vonage.com/). To use it you will need a Vonage account. Sign up [for free at vonage.com][signup]. | ||
For full API documentation refer to | ||
[developer.vonage.com](https://developer.vonage.com/). | ||
For full API documentation refer to [developer.vonage.com](https://developer.vonage.com/). | ||
* [Installation](#installation) | ||
* [Constructor](#constructor) | ||
* [Callbacks](#callbacks) | ||
* [Promises](#promises) | ||
* [Testing](#testing) | ||
* [Examples](#examples) | ||
* [Supported APIs](#supported-apis) | ||
* [References](#references) | ||
## Installation | ||
@@ -47,9 +41,7 @@ | ||
Where `credentials` is any option from [`@vonage/auth`](https://github.com/Vonage/vonage-node-sdk/tree/3.x/packages/auth#options), | ||
and `options` is any option from [`@vonage/server-client`](https://github.com/Vonage/vonage-node-sdk/tree/3.x/packages/server-client#options) | ||
Where `credentials` is any option from [`@vonage/auth`](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/auth/README.md#options), and `options` is any option from [`@vonage/server-client`](https://github.com/Vonage/vonage-node-sdk/blob/3.x/packages/server-client/README.md#options) | ||
## Promises | ||
Most methods that interact with the Vonage API uses Promises. You can either | ||
resolve these yourself, or use `await` to wait for a response. | ||
Most methods that interact with the Vonage API uses Promises. You can either resolve these yourself, or use `await` to wait for a response. | ||
@@ -107,25 +99,25 @@ ```js | ||
| API | API Release Status | Supported? | | ||
|-----------------------|----------------------|------------| | ||
| Account API | General Availability | ✅ | | ||
| Alerts API | General Availability | ✅ | | ||
| Application API | General Availability | ✅ | | ||
| Audit API | Beta | ✅ | | ||
| Conversation API | Beta | ❌ | | ||
| Dispatch API | Beta | ❌ | | ||
| External Accounts API | Beta | ❌ | | ||
| Media API | Beta | ❌ | | ||
| Messages API | Beta | ❌ | | ||
| Number Insight API | General Availability | ✅ | | ||
| Number Management API | General Availability | ✅ | | ||
| Pricing API | General Availability | ✅ | | ||
| Redact API | Developer Preview | ✅ | | ||
| Reports API | Beta | ❌ | | ||
| SMS API | General Availability | ✅ | | ||
| Verify API | General Availability | ✅ | | ||
| Verify v2 API | Beta | ✅ | | ||
| Voice API | General Availability | ✅ | | ||
| API | API Release Status | Supported? | | ||
|-----------------------|:--------------------:|:----------:| | ||
| Account API | General Availability | ✅ | | ||
| Alerts API | General Availability | ✅ | | ||
| Application API | General Availability | ✅ | | ||
| Audit API | Beta | ✅ | | ||
| Conversation API | Beta | ❌ | | ||
| Dispatch API | Beta | ❌ | | ||
| External Accounts API | Beta | ❌ | | ||
| Media API | Beta | ❌ | | ||
| Messages API | Beta | ✅ | | ||
| Number Insight API | General Availability | ✅ | | ||
| Number Management API | General Availability | ✅ | | ||
| Pricing API | General Availability | ✅ | | ||
| Proactive Connect API | Beta | ✅ | | ||
| Redact API | Developer Preview | ✅ | | ||
| Reports API | Beta | ❌ | | ||
| SMS API | General Availability | ✅ | | ||
| Verify API | General Availability | ✅ | | ||
| Verify v2 API | Beta | ✅ | | ||
| Voice API | General Availability | ✅ | | ||
[signup]: https://dashboard.nexmo.com/sign-up?utm_source=DEV_REL&utm_medium=github&utm_campaign=node-server-sdk | ||
[license]: LICENSE.txt |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11904
82
122
+ Added@vonage/server-client@^1.4.0
- Removed@vonage/vetch@^1.2.0
Updated@vonage/accounts@^1.4.0
Updated@vonage/applications@^1.4.0
Updated@vonage/auth@^1.3.0
Updated@vonage/messages@^1.4.0
Updated@vonage/numbers@^1.4.0
Updated@vonage/pricing@^1.4.0
Updated@vonage/redact@^1.3.0
Updated@vonage/sms@^1.4.0
Updated@vonage/verify@^1.4.0
Updated@vonage/voice@^1.4.0