@sinch/sdk-core 1.5.0 → 1.6.0
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/README.md +7 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/sinch-client.d.ts +7 -1
- package/dist/sinch-client.js +2 -0
- package/dist/sinch-client.js.map +1 -1
- package/package.json +14 -10
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ import { SinchClient } from '@sinch/sdk-core';
|
|
|
93
93
|
For convenience, importing `@sinch/sdk-core` is sufficient to be able to access to all the APIs' classes and interfaces. In case you need to use a single API, they are also packaged as single NPM packages:
|
|
94
94
|
- SMS: [`@sinch/sms`](https://www.npmjs.com/package/@sinch/sms)
|
|
95
95
|
- Conversation: [`@sinch/conversation`](https://www.npmjs.com/package/@sinch/conversation)
|
|
96
|
-
- Elastic SIP Trunking: [`@sinch/elastic-sip-trunking`](https://www.npmjs.com/package/@sinch/elastic-sip-trunking)
|
|
96
|
+
- Elastic SIP Trunking (deprecated; removed in version 2): [`@sinch/elastic-sip-trunking`](https://www.npmjs.com/package/@sinch/elastic-sip-trunking)
|
|
97
97
|
- Fax: [`@sinch/fax`](https://www.npmjs.com/package/@sinch/fax)
|
|
98
98
|
- Numbers: [`@sinch/numbers`](https://www.npmjs.com/package/@sinch/numbers)
|
|
99
99
|
- Number Lookup: [`@sinch/number-lookup`](https://www.npmjs.com/package/@sinch/number-lookup)
|
|
@@ -103,7 +103,7 @@ For convenience, importing `@sinch/sdk-core` is sufficient to be able to access
|
|
|
103
103
|
All the interfaces are exported with an alias, equal to the API name:
|
|
104
104
|
- `Sms` for the SMS API
|
|
105
105
|
- `Conversation` for the Conversation API
|
|
106
|
-
- `ElasticSipTrunking` for the Elastic SIP Trunking API
|
|
106
|
+
- `ElasticSipTrunking` for the Elastic SIP Trunking API (deprecated; removed in version 2)
|
|
107
107
|
- `Fax` for the Fax API
|
|
108
108
|
- `Numbers` for the Numbers API
|
|
109
109
|
- `NumberLookup` for the Number Lookup API
|
|
@@ -182,10 +182,11 @@ Each API exposes dedicated parameters to override the default hostname and regio
|
|
|
182
182
|
| SMS | smsHostname | smsRegion |
|
|
183
183
|
| Conversation | conversationHostname | conversationRegion |
|
|
184
184
|
| | conversationTemplatesHostname | conversationRegion |
|
|
185
|
-
| Elastic SIP Trunking
|
|
185
|
+
| Elastic SIP Trunking (deprecated) | elasticSipTrunkingHostname | N/A |
|
|
186
186
|
| Fax | faxHostname | faxRegion |
|
|
187
187
|
| Voice | voiceHostname | voiceRegion |
|
|
188
188
|
| | voiceApplicationManagementHostname | N/A |
|
|
189
|
+
| | voiceV2Hostname | N/A |
|
|
189
190
|
| Numbers | numbersHostname | N/A |
|
|
190
191
|
| Verification | verificationHostname | N/A |
|
|
191
192
|
|
|
@@ -347,10 +348,10 @@ Here is the list of the Sinch API and there level of support by the Node.js SDK:
|
|
|
347
348
|
|------------------------|-----------------------------------|:------:|
|
|
348
349
|
| Messaging | SMS API | ✅ |
|
|
349
350
|
| | Conversation API | ✅ |
|
|
350
|
-
| | Fax API
|
|
351
|
+
| | Fax API | ✅ |
|
|
351
352
|
| Voice and Video | Voice API | ✅ |
|
|
352
|
-
| | Elastic SIP Trunking API `(
|
|
353
|
+
| | Elastic SIP Trunking API `(deprecated)` | ✅ |
|
|
353
354
|
| Numbers & Connectivity | Numbers API | ✅ |
|
|
354
355
|
| Verification | Verification API | ✅ |
|
|
355
356
|
|
|
356
|
-
> Note: `(
|
|
357
|
+
> Note: `(deprecated)` means the API will be removed in version 2 of the SDK. Elastic SIP Trunking remains available on 1.x.
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -24,4 +24,5 @@ __exportStar(require("@sinch/sms"), exports);
|
|
|
24
24
|
__exportStar(require("@sinch/verification"), exports);
|
|
25
25
|
__exportStar(require("@sinch/voice"), exports);
|
|
26
26
|
__exportStar(require("@sinch/number-lookup"), exports);
|
|
27
|
+
__exportStar(require("@sinch/provisioning"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC;AAClC,sDAAoC;AACpC,8DAA4C;AAC5C,6CAA2B;AAC3B,iDAA+B;AAC/B,6CAA2B;AAC3B,sDAAoC;AACpC,+CAA6B;AAC7B,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,oDAAkC;AAClC,sDAAoC;AACpC,8DAA4C;AAC5C,6CAA2B;AAC3B,iDAA+B;AAC/B,6CAA2B;AAC3B,sDAAoC;AACpC,+CAA6B;AAC7B,uDAAqC;AACrC,sDAAoC"}
|
package/dist/sinch-client.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProvisioningService } from '@sinch/provisioning';
|
|
1
2
|
import { ConversationService } from '@sinch/conversation';
|
|
2
3
|
import { FaxService } from '@sinch/fax';
|
|
3
4
|
import { NumbersService } from '@sinch/numbers';
|
|
@@ -13,7 +14,10 @@ export declare class SinchClient {
|
|
|
13
14
|
readonly conversation: ConversationService;
|
|
14
15
|
/** Fax API service (OAuth2: `projectId`, `keyId`, `keySecret`). */
|
|
15
16
|
readonly fax: FaxService;
|
|
16
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Elastic SIP Trunking API service (OAuth2: `projectId`, `keyId`, `keySecret`).
|
|
19
|
+
* @deprecated Elastic SIP Trunking support will be removed in version 2 of the SDK.
|
|
20
|
+
*/
|
|
17
21
|
readonly elasticSipTrunking: ElasticSipTrunkingService;
|
|
18
22
|
/** Numbers API service (OAuth2: `projectId`, `keyId`, `keySecret`). */
|
|
19
23
|
readonly numbers: NumbersService;
|
|
@@ -25,6 +29,8 @@ export declare class SinchClient {
|
|
|
25
29
|
readonly voice: VoiceService;
|
|
26
30
|
/** Number Lookup API service (OAuth2: `projectId`, `keyId`, `keySecret`). */
|
|
27
31
|
readonly numberLookup: NumberLookupService;
|
|
32
|
+
/** Provisioning API service (OAuth2: `projectId`, `keyId`, `keySecret`). */
|
|
33
|
+
readonly provisioning: ProvisioningService;
|
|
28
34
|
/**
|
|
29
35
|
* Initialize your API Client instance with the provided credentials.
|
|
30
36
|
*
|
package/dist/sinch-client.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SinchClient = void 0;
|
|
4
|
+
const provisioning_1 = require("@sinch/provisioning");
|
|
4
5
|
const conversation_1 = require("@sinch/conversation");
|
|
5
6
|
const fax_1 = require("@sinch/fax");
|
|
6
7
|
const numbers_1 = require("@sinch/numbers");
|
|
@@ -27,6 +28,7 @@ class SinchClient {
|
|
|
27
28
|
this.verification = new verification_1.VerificationService(params);
|
|
28
29
|
this.voice = new voice_1.VoiceService(params);
|
|
29
30
|
this.numberLookup = new number_lookup_1.NumberLookupService(params);
|
|
31
|
+
this.provisioning = new provisioning_1.ProvisioningService(params);
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
exports.SinchClient = SinchClient;
|
package/dist/sinch-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sinch-client.js","sourceRoot":"","sources":["../src/sinch-client.ts"],"names":[],"mappings":";;;AAAA,sDAA0D;AAC1D,oCAAwC;AACxC,4CAAgD;AAChD,oCAAwC;AACxC,sDAA0D;AAC1D,wCAA4C;AAC5C,kDAAmF;AACnF,sEAAwE;AACxE,wDAA2D;AAE3D,gEAAgE;AAChE
|
|
1
|
+
{"version":3,"file":"sinch-client.js","sourceRoot":"","sources":["../src/sinch-client.ts"],"names":[],"mappings":";;;AAAA,sDAA0D;AAC1D,sDAA0D;AAC1D,oCAAwC;AACxC,4CAAgD;AAChD,oCAAwC;AACxC,sDAA0D;AAC1D,wCAA4C;AAC5C,kDAAmF;AACnF,sEAAwE;AACxE,wDAA2D;AAE3D,gEAAgE;AAChE;IAwBE;;;;OAIG;IACH,YAAY,YAAmC;QAC7C,MAAM,MAAM,GAAG,IAAA,oCAAuB,EAAC,YAAY,CAAC,CAAC;QACrD,IAAI,CAAC,YAAY,GAAG,IAAI,kCAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,kBAAkB,GAAG,IAAI,gDAAyB,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,GAAG,GAAG,IAAI,gBAAU,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,IAAI,wBAAc,CAAC,MAAM,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAG,GAAG,IAAI,gBAAU,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,YAAY,GAAG,IAAI,kCAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,KAAK,GAAG,IAAI,oBAAY,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,YAAY,GAAG,IAAI,mCAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,YAAY,GAAG,IAAI,kCAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sinch/sdk-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Node.js client for the Sinch API platform",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
16
17
|
"import": "./dist/index.js",
|
|
17
18
|
"require": "./dist/index.js"
|
|
18
19
|
},
|
|
@@ -22,21 +23,24 @@
|
|
|
22
23
|
"src": "dist",
|
|
23
24
|
"test": "tests"
|
|
24
25
|
},
|
|
25
|
-
"files": [
|
|
26
|
+
"files": [
|
|
27
|
+
"/dist"
|
|
28
|
+
],
|
|
26
29
|
"scripts": {
|
|
27
30
|
"build": "yarn run clean && yarn run compile",
|
|
28
31
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
29
32
|
"compile": "tsc --build --verbose"
|
|
30
33
|
},
|
|
31
34
|
"dependencies": {
|
|
32
|
-
"@sinch/conversation": "1.
|
|
33
|
-
"@sinch/elastic-sip-trunking": "1.
|
|
34
|
-
"@sinch/fax": "1.
|
|
35
|
-
"@sinch/numbers": "1.
|
|
36
|
-
"@sinch/sms": "1.
|
|
37
|
-
"@sinch/verification": "1.
|
|
38
|
-
"@sinch/voice": "1.
|
|
39
|
-
"@sinch/number-lookup": "1.
|
|
35
|
+
"@sinch/conversation": "1.6.0",
|
|
36
|
+
"@sinch/elastic-sip-trunking": "1.6.0",
|
|
37
|
+
"@sinch/fax": "1.6.0",
|
|
38
|
+
"@sinch/numbers": "1.6.0",
|
|
39
|
+
"@sinch/sms": "1.6.0",
|
|
40
|
+
"@sinch/verification": "1.6.0",
|
|
41
|
+
"@sinch/voice": "1.6.0",
|
|
42
|
+
"@sinch/number-lookup": "1.6.0",
|
|
43
|
+
"@sinch/provisioning": "1.6.0"
|
|
40
44
|
},
|
|
41
45
|
"devDependencies": {},
|
|
42
46
|
"publishConfig": {
|