@fonoster/sdk 0.7.39 → 0.7.41
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/node/Acls.d.ts +6 -5
- package/dist/node/Acls.js +6 -5
- package/dist/node/Agents.d.ts +6 -5
- package/dist/node/Agents.js +6 -5
- package/dist/node/ApiKeys.d.ts +6 -5
- package/dist/node/ApiKeys.js +6 -5
- package/dist/node/Applications.d.ts +6 -5
- package/dist/node/Applications.js +6 -5
- package/dist/node/Calls.d.ts +7 -6
- package/dist/node/Calls.js +7 -6
- package/dist/node/Credentials.d.ts +6 -5
- package/dist/node/Credentials.js +6 -5
- package/dist/node/Domains.d.ts +6 -5
- package/dist/node/Domains.js +6 -5
- package/dist/node/Numbers.d.ts +6 -5
- package/dist/node/Numbers.js +6 -5
- package/dist/node/Secrets.d.ts +6 -5
- package/dist/node/Secrets.js +6 -5
- package/dist/node/Trunks.d.ts +6 -5
- package/dist/node/Trunks.js +6 -5
- package/dist/node/Users.d.ts +6 -5
- package/dist/node/Users.js +6 -5
- package/dist/node/Workspaces.d.ts +6 -5
- package/dist/node/Workspaces.js +6 -5
- package/dist/node/client/AbstractClient.d.ts +1 -1
- package/dist/node/client/AbstractClient.js +3 -3
- package/dist/node/generated/node/identity_pb.js +41 -11
- package/dist/node/generated/web/identity_pb.d.ts +4 -0
- package/dist/node/generated/web/identity_pb.js +41 -11
- package/dist/node/tsconfig.tsbuildinfo +1 -1
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +4 -4
package/dist/node/Acls.d.ts
CHANGED
|
@@ -9,12 +9,13 @@ import { FonosterClient } from "./client/types";
|
|
|
9
9
|
* const SDK = require("@fonoster/sdk");
|
|
10
10
|
*
|
|
11
11
|
* async function main(request) {
|
|
12
|
-
* const
|
|
13
|
-
* const
|
|
12
|
+
* const apiKey = "your-api-key";
|
|
13
|
+
* const apiSecret = "your-api-secret"
|
|
14
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
14
15
|
*
|
|
15
16
|
* try {
|
|
16
|
-
* const client = SDK.Client({ accessKeyId
|
|
17
|
-
* await client.loginWithApiKey(
|
|
17
|
+
* const client = SDK.Client({ accessKeyId });
|
|
18
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
18
19
|
*
|
|
19
20
|
* const acls = new SDK.Acls(client);
|
|
20
21
|
* const response = await acls.createAcl(request);
|
|
@@ -30,7 +31,7 @@ import { FonosterClient } from "./client/types";
|
|
|
30
31
|
* allow: ["47.132.130.31"] // Allow only this IP
|
|
31
32
|
* };
|
|
32
33
|
*
|
|
33
|
-
* main(request)
|
|
34
|
+
* main(request);
|
|
34
35
|
*/
|
|
35
36
|
declare class Acls {
|
|
36
37
|
private client;
|
package/dist/node/Acls.js
CHANGED
|
@@ -12,12 +12,13 @@ const acls_pb_1 = require("./generated/node/acls_pb");
|
|
|
12
12
|
* const SDK = require("@fonoster/sdk");
|
|
13
13
|
*
|
|
14
14
|
* async function main(request) {
|
|
15
|
-
* const
|
|
16
|
-
* const
|
|
15
|
+
* const apiKey = "your-api-key";
|
|
16
|
+
* const apiSecret = "your-api-secret"
|
|
17
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
17
18
|
*
|
|
18
19
|
* try {
|
|
19
|
-
* const client = SDK.Client({ accessKeyId
|
|
20
|
-
* await client.loginWithApiKey(
|
|
20
|
+
* const client = SDK.Client({ accessKeyId });
|
|
21
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
21
22
|
*
|
|
22
23
|
* const acls = new SDK.Acls(client);
|
|
23
24
|
* const response = await acls.createAcl(request);
|
|
@@ -33,7 +34,7 @@ const acls_pb_1 = require("./generated/node/acls_pb");
|
|
|
33
34
|
* allow: ["47.132.130.31"] // Allow only this IP
|
|
34
35
|
* };
|
|
35
36
|
*
|
|
36
|
-
* main(request)
|
|
37
|
+
* main(request);
|
|
37
38
|
*/
|
|
38
39
|
class Acls {
|
|
39
40
|
client;
|
package/dist/node/Agents.d.ts
CHANGED
|
@@ -9,12 +9,13 @@ import { FonosterClient } from "./client/types";
|
|
|
9
9
|
* const SDK = require("@fonoster/sdk");
|
|
10
10
|
*
|
|
11
11
|
* async function main(request) {
|
|
12
|
-
* const
|
|
13
|
-
* const
|
|
12
|
+
* const apiKey = "your-api-key";
|
|
13
|
+
* const apiSecret = "your-api-secret"
|
|
14
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
14
15
|
*
|
|
15
16
|
* try {
|
|
16
|
-
* const client = SDK.Client({ accessKeyId
|
|
17
|
-
* await client.loginWithApiKey(
|
|
17
|
+
* const client = SDK.Client({ accessKeyId });
|
|
18
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
18
19
|
*
|
|
19
20
|
* const agents = new SDK.Agents(client);
|
|
20
21
|
* const response = await agents.createAgent(request);
|
|
@@ -34,7 +35,7 @@ import { FonosterClient } from "./client/types";
|
|
|
34
35
|
* domainRef: "00000000-0000-0000-0000-000000000000"
|
|
35
36
|
* };
|
|
36
37
|
*
|
|
37
|
-
* main(request)
|
|
38
|
+
* main(request);
|
|
38
39
|
*/
|
|
39
40
|
declare class Agents {
|
|
40
41
|
private client;
|
package/dist/node/Agents.js
CHANGED
|
@@ -12,12 +12,13 @@ const agents_pb_1 = require("./generated/node/agents_pb");
|
|
|
12
12
|
* const SDK = require("@fonoster/sdk");
|
|
13
13
|
*
|
|
14
14
|
* async function main(request) {
|
|
15
|
-
* const
|
|
16
|
-
* const
|
|
15
|
+
* const apiKey = "your-api-key";
|
|
16
|
+
* const apiSecret = "your-api-secret"
|
|
17
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
17
18
|
*
|
|
18
19
|
* try {
|
|
19
|
-
* const client = SDK.Client({ accessKeyId
|
|
20
|
-
* await client.loginWithApiKey(
|
|
20
|
+
* const client = SDK.Client({ accessKeyId });
|
|
21
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
21
22
|
*
|
|
22
23
|
* const agents = new SDK.Agents(client);
|
|
23
24
|
* const response = await agents.createAgent(request);
|
|
@@ -37,7 +38,7 @@ const agents_pb_1 = require("./generated/node/agents_pb");
|
|
|
37
38
|
* domainRef: "00000000-0000-0000-0000-000000000000"
|
|
38
39
|
* };
|
|
39
40
|
*
|
|
40
|
-
* main(request)
|
|
41
|
+
* main(request);
|
|
41
42
|
*/
|
|
42
43
|
class Agents {
|
|
43
44
|
client;
|
package/dist/node/ApiKeys.d.ts
CHANGED
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const apiKeys = new SDK.ApiKeys(client);
|
|
21
22
|
* const response = await apiKeys.createApiKey(request);
|
|
@@ -30,7 +31,7 @@ import { FonosterClient } from "./client/types";
|
|
|
30
31
|
* role: "WORKSPACE_ADMIN"
|
|
31
32
|
* };
|
|
32
33
|
*
|
|
33
|
-
* main(request)
|
|
34
|
+
* main(request);
|
|
34
35
|
*/
|
|
35
36
|
declare class ApiKeys {
|
|
36
37
|
private client;
|
package/dist/node/ApiKeys.js
CHANGED
|
@@ -32,12 +32,13 @@ const identity_pb_1 = require("./generated/node/identity_pb");
|
|
|
32
32
|
* const SDK = require("@fonoster/sdk");
|
|
33
33
|
*
|
|
34
34
|
* async function main(request) {
|
|
35
|
-
* const
|
|
36
|
-
* const
|
|
35
|
+
* const apiKey = "your-api-key";
|
|
36
|
+
* const apiSecret = "your-api-secret"
|
|
37
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
37
38
|
*
|
|
38
39
|
* try {
|
|
39
|
-
* const client = SDK.Client({ accessKeyId
|
|
40
|
-
* await client.loginWithApiKey(apiKey);
|
|
40
|
+
* const client = SDK.Client({ accessKeyId });
|
|
41
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
41
42
|
*
|
|
42
43
|
* const apiKeys = new SDK.ApiKeys(client);
|
|
43
44
|
* const response = await apiKeys.createApiKey(request);
|
|
@@ -52,7 +53,7 @@ const identity_pb_1 = require("./generated/node/identity_pb");
|
|
|
52
53
|
* role: "WORKSPACE_ADMIN"
|
|
53
54
|
* };
|
|
54
55
|
*
|
|
55
|
-
* main(request)
|
|
56
|
+
* main(request);
|
|
56
57
|
*/
|
|
57
58
|
class ApiKeys {
|
|
58
59
|
client;
|
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const apps = new SDK.Applications(client);
|
|
21
22
|
* const response = await apps.createApplication(request);
|
|
@@ -53,7 +54,7 @@ import { FonosterClient } from "./client/types";
|
|
|
53
54
|
* }
|
|
54
55
|
* };
|
|
55
56
|
*
|
|
56
|
-
* main(request)
|
|
57
|
+
* main(request);
|
|
57
58
|
*/
|
|
58
59
|
declare class Applications {
|
|
59
60
|
private client;
|
|
@@ -14,12 +14,13 @@ const utils_1 = require("./utils");
|
|
|
14
14
|
* const SDK = require("@fonoster/sdk");
|
|
15
15
|
*
|
|
16
16
|
* async function main(request) {
|
|
17
|
-
* const
|
|
18
|
-
* const
|
|
17
|
+
* const apiKey = "your-api-key";
|
|
18
|
+
* const apiSecret = "your-api-secret"
|
|
19
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
19
20
|
*
|
|
20
21
|
* try {
|
|
21
|
-
* const client = SDK.Client({ accessKeyId
|
|
22
|
-
* await client.loginWithApiKey(apiKey);
|
|
22
|
+
* const client = SDK.Client({ accessKeyId });
|
|
23
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
23
24
|
*
|
|
24
25
|
* const apps = new SDK.Applications(client);
|
|
25
26
|
* const response = await apps.createApplication(request);
|
|
@@ -57,7 +58,7 @@ const utils_1 = require("./utils");
|
|
|
57
58
|
* }
|
|
58
59
|
* };
|
|
59
60
|
*
|
|
60
|
-
* main(request)
|
|
61
|
+
* main(request);
|
|
61
62
|
*/
|
|
62
63
|
class Applications {
|
|
63
64
|
client;
|
package/dist/node/Calls.d.ts
CHANGED
|
@@ -11,15 +11,16 @@ import { FonosterClient } from "./client/types";
|
|
|
11
11
|
* const SDK = require("@fonoster/sdk");
|
|
12
12
|
*
|
|
13
13
|
* async function main(request) {
|
|
14
|
-
* const
|
|
15
|
-
* const
|
|
14
|
+
* const apiKey = "your-api-key";
|
|
15
|
+
* const apiSecret = "your-api-secret"
|
|
16
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
16
17
|
*
|
|
17
18
|
* try {
|
|
18
|
-
* const client = SDK.Client({ accessKeyId
|
|
19
|
-
* await client.loginWithApiKey(apiKey);
|
|
19
|
+
* const client = SDK.Client({ accessKeyId });
|
|
20
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
20
21
|
*
|
|
21
22
|
* const calls = new SDK.Calls(client);
|
|
22
|
-
* const response = await
|
|
23
|
+
* const response = await calls.createCall(request);
|
|
23
24
|
*
|
|
24
25
|
* console.log(response); // successful response
|
|
25
26
|
* } catch (e) {
|
|
@@ -33,7 +34,7 @@ import { FonosterClient } from "./client/types";
|
|
|
33
34
|
* appRef: "00000000-0000-0000-0000-000000000000"
|
|
34
35
|
* };
|
|
35
36
|
*
|
|
36
|
-
* main(request)
|
|
37
|
+
* main(request);
|
|
37
38
|
*/
|
|
38
39
|
declare class Calls {
|
|
39
40
|
private client;
|
package/dist/node/Calls.js
CHANGED
|
@@ -14,15 +14,16 @@ const utils_1 = require("./utils");
|
|
|
14
14
|
* const SDK = require("@fonoster/sdk");
|
|
15
15
|
*
|
|
16
16
|
* async function main(request) {
|
|
17
|
-
* const
|
|
18
|
-
* const
|
|
17
|
+
* const apiKey = "your-api-key";
|
|
18
|
+
* const apiSecret = "your-api-secret"
|
|
19
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
19
20
|
*
|
|
20
21
|
* try {
|
|
21
|
-
* const client = SDK.Client({ accessKeyId
|
|
22
|
-
* await client.loginWithApiKey(apiKey);
|
|
22
|
+
* const client = SDK.Client({ accessKeyId });
|
|
23
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
23
24
|
*
|
|
24
25
|
* const calls = new SDK.Calls(client);
|
|
25
|
-
* const response = await
|
|
26
|
+
* const response = await calls.createCall(request);
|
|
26
27
|
*
|
|
27
28
|
* console.log(response); // successful response
|
|
28
29
|
* } catch (e) {
|
|
@@ -36,7 +37,7 @@ const utils_1 = require("./utils");
|
|
|
36
37
|
* appRef: "00000000-0000-0000-0000-000000000000"
|
|
37
38
|
* };
|
|
38
39
|
*
|
|
39
|
-
* main(request)
|
|
40
|
+
* main(request);
|
|
40
41
|
*/
|
|
41
42
|
class Calls {
|
|
42
43
|
client;
|
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const credentials = new SDK.Credentials(client);
|
|
21
22
|
* const response = await apiKeys.createCredentials(request);
|
|
@@ -32,7 +33,7 @@ import { FonosterClient } from "./client/types";
|
|
|
32
33
|
* password: "mysecret"
|
|
33
34
|
* };
|
|
34
35
|
*
|
|
35
|
-
* main(request)
|
|
36
|
+
* main(request);
|
|
36
37
|
*/
|
|
37
38
|
declare class Credentials {
|
|
38
39
|
private client;
|
package/dist/node/Credentials.js
CHANGED
|
@@ -13,12 +13,13 @@ const credentials_pb_1 = require("./generated/node/credentials_pb");
|
|
|
13
13
|
* const SDK = require("@fonoster/sdk");
|
|
14
14
|
*
|
|
15
15
|
* async function main(request) {
|
|
16
|
-
* const
|
|
17
|
-
* const
|
|
16
|
+
* const apiKey = "your-api-key";
|
|
17
|
+
* const apiSecret = "your-api-secret"
|
|
18
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
18
19
|
*
|
|
19
20
|
* try {
|
|
20
|
-
* const client = SDK.Client({ accessKeyId
|
|
21
|
-
* await client.loginWithApiKey(apiKey);
|
|
21
|
+
* const client = SDK.Client({ accessKeyId });
|
|
22
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
22
23
|
*
|
|
23
24
|
* const credentials = new SDK.Credentials(client);
|
|
24
25
|
* const response = await apiKeys.createCredentials(request);
|
|
@@ -35,7 +36,7 @@ const credentials_pb_1 = require("./generated/node/credentials_pb");
|
|
|
35
36
|
* password: "mysecret"
|
|
36
37
|
* };
|
|
37
38
|
*
|
|
38
|
-
* main(request)
|
|
39
|
+
* main(request);
|
|
39
40
|
*/
|
|
40
41
|
class Credentials {
|
|
41
42
|
client;
|
package/dist/node/Domains.d.ts
CHANGED
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const domains = new SDK.Domains(client);
|
|
21
22
|
* const response = await domains.createDomain(request);
|
|
@@ -31,7 +32,7 @@ import { FonosterClient } from "./client/types";
|
|
|
31
32
|
* domainUri: "sip.project.fonoster.io"
|
|
32
33
|
* };
|
|
33
34
|
*
|
|
34
|
-
* main(request)
|
|
35
|
+
* main(request);
|
|
35
36
|
*/
|
|
36
37
|
declare class Domains {
|
|
37
38
|
private client;
|
package/dist/node/Domains.js
CHANGED
|
@@ -13,12 +13,13 @@ const domains_pb_1 = require("./generated/node/domains_pb");
|
|
|
13
13
|
* const SDK = require("@fonoster/sdk");
|
|
14
14
|
*
|
|
15
15
|
* async function main(request) {
|
|
16
|
-
* const
|
|
17
|
-
* const
|
|
16
|
+
* const apiKey = "your-api-key";
|
|
17
|
+
* const apiSecret = "your-api-secret"
|
|
18
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
18
19
|
*
|
|
19
20
|
* try {
|
|
20
|
-
* const client = SDK.Client({ accessKeyId
|
|
21
|
-
* await client.loginWithApiKey(apiKey);
|
|
21
|
+
* const client = SDK.Client({ accessKeyId });
|
|
22
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
22
23
|
*
|
|
23
24
|
* const domains = new SDK.Domains(client);
|
|
24
25
|
* const response = await domains.createDomain(request);
|
|
@@ -34,7 +35,7 @@ const domains_pb_1 = require("./generated/node/domains_pb");
|
|
|
34
35
|
* domainUri: "sip.project.fonoster.io"
|
|
35
36
|
* };
|
|
36
37
|
*
|
|
37
|
-
* main(request)
|
|
38
|
+
* main(request);
|
|
38
39
|
*/
|
|
39
40
|
class Domains {
|
|
40
41
|
client;
|
package/dist/node/Numbers.d.ts
CHANGED
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const numbers = new SDK.Numbers(client);
|
|
21
22
|
* const response = await numbers.createNumber(request);
|
|
@@ -34,7 +35,7 @@ import { FonosterClient } from "./client/types";
|
|
|
34
35
|
* countryIsoCode: "US"
|
|
35
36
|
* };
|
|
36
37
|
*
|
|
37
|
-
* main(request)
|
|
38
|
+
* main(request);
|
|
38
39
|
*/
|
|
39
40
|
declare class Numbers {
|
|
40
41
|
private client;
|
package/dist/node/Numbers.js
CHANGED
|
@@ -13,12 +13,13 @@ const numbers_pb_1 = require("./generated/node/numbers_pb");
|
|
|
13
13
|
* const SDK = require("@fonoster/sdk");
|
|
14
14
|
*
|
|
15
15
|
* async function main(request) {
|
|
16
|
-
* const
|
|
17
|
-
* const
|
|
16
|
+
* const apiKey = "your-api-key";
|
|
17
|
+
* const apiSecret = "your-api-secret"
|
|
18
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
18
19
|
*
|
|
19
20
|
* try {
|
|
20
|
-
* const client = SDK.Client({ accessKeyId
|
|
21
|
-
* await client.loginWithApiKey(apiKey);
|
|
21
|
+
* const client = SDK.Client({ accessKeyId });
|
|
22
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
22
23
|
*
|
|
23
24
|
* const numbers = new SDK.Numbers(client);
|
|
24
25
|
* const response = await numbers.createNumber(request);
|
|
@@ -37,7 +38,7 @@ const numbers_pb_1 = require("./generated/node/numbers_pb");
|
|
|
37
38
|
* countryIsoCode: "US"
|
|
38
39
|
* };
|
|
39
40
|
*
|
|
40
|
-
* main(request)
|
|
41
|
+
* main(request);
|
|
41
42
|
*/
|
|
42
43
|
class Numbers {
|
|
43
44
|
client;
|
package/dist/node/Secrets.d.ts
CHANGED
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const secrets = new SDK.Secrets(client);
|
|
21
22
|
* const response = await secrets.creteSecret(request);
|
|
@@ -31,7 +32,7 @@ import { FonosterClient } from "./client/types";
|
|
|
31
32
|
* secret: "mysecret"
|
|
32
33
|
* };
|
|
33
34
|
*
|
|
34
|
-
* main(request)
|
|
35
|
+
* main(request);
|
|
35
36
|
*/
|
|
36
37
|
declare class Secrets {
|
|
37
38
|
private client;
|
package/dist/node/Secrets.js
CHANGED
|
@@ -13,12 +13,13 @@ const secrets_pb_1 = require("./generated/node/secrets_pb");
|
|
|
13
13
|
* const SDK = require("@fonoster/sdk");
|
|
14
14
|
*
|
|
15
15
|
* async function main(request) {
|
|
16
|
-
* const
|
|
17
|
-
* const
|
|
16
|
+
* const apiKey = "your-api-key";
|
|
17
|
+
* const apiSecret = "your-api-secret"
|
|
18
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
18
19
|
*
|
|
19
20
|
* try {
|
|
20
|
-
* const client = SDK.Client({ accessKeyId
|
|
21
|
-
* await client.loginWithApiKey(apiKey);
|
|
21
|
+
* const client = SDK.Client({ accessKeyId });
|
|
22
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
22
23
|
*
|
|
23
24
|
* const secrets = new SDK.Secrets(client);
|
|
24
25
|
* const response = await secrets.creteSecret(request);
|
|
@@ -34,7 +35,7 @@ const secrets_pb_1 = require("./generated/node/secrets_pb");
|
|
|
34
35
|
* secret: "mysecret"
|
|
35
36
|
* };
|
|
36
37
|
*
|
|
37
|
-
* main(request)
|
|
38
|
+
* main(request);
|
|
38
39
|
*/
|
|
39
40
|
class Secrets {
|
|
40
41
|
client;
|
package/dist/node/Trunks.d.ts
CHANGED
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const trunks = new SDK.Trunks(client);
|
|
21
22
|
* const response = await trunks.createTrunk(request);
|
|
@@ -31,7 +32,7 @@ import { FonosterClient } from "./client/types";
|
|
|
31
32
|
* inboundUri: "sip.company.fonoster.io"
|
|
32
33
|
* };
|
|
33
34
|
*
|
|
34
|
-
* main(request)
|
|
35
|
+
* main(request);
|
|
35
36
|
*/
|
|
36
37
|
declare class Trunks {
|
|
37
38
|
private client;
|
package/dist/node/Trunks.js
CHANGED
|
@@ -13,12 +13,13 @@ const trunks_pb_1 = require("./generated/node/trunks_pb");
|
|
|
13
13
|
* const SDK = require("@fonoster/sdk");
|
|
14
14
|
*
|
|
15
15
|
* async function main(request) {
|
|
16
|
-
* const
|
|
17
|
-
* const
|
|
16
|
+
* const apiKey = "your-api-key";
|
|
17
|
+
* const apiSecret = "your-api-secret"
|
|
18
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
18
19
|
*
|
|
19
20
|
* try {
|
|
20
|
-
* const client = SDK.Client({ accessKeyId
|
|
21
|
-
* await client.loginWithApiKey(apiKey);
|
|
21
|
+
* const client = SDK.Client({ accessKeyId });
|
|
22
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
22
23
|
*
|
|
23
24
|
* const trunks = new SDK.Trunks(client);
|
|
24
25
|
* const response = await trunks.createTrunk(request);
|
|
@@ -34,7 +35,7 @@ const trunks_pb_1 = require("./generated/node/trunks_pb");
|
|
|
34
35
|
* inboundUri: "sip.company.fonoster.io"
|
|
35
36
|
* };
|
|
36
37
|
*
|
|
37
|
-
* main(request)
|
|
38
|
+
* main(request);
|
|
38
39
|
*/
|
|
39
40
|
class Trunks {
|
|
40
41
|
client;
|
package/dist/node/Users.d.ts
CHANGED
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const users = new SDK.Users(client);
|
|
21
22
|
* const response = await users.createUser(request);
|
|
@@ -33,7 +34,7 @@ import { FonosterClient } from "./client/types";
|
|
|
33
34
|
* avatar: "https://example.com/avatar.jpg"
|
|
34
35
|
* };
|
|
35
36
|
*
|
|
36
|
-
* main(request)
|
|
37
|
+
* main(request);
|
|
37
38
|
*/
|
|
38
39
|
declare class Users {
|
|
39
40
|
private client;
|
package/dist/node/Users.js
CHANGED
|
@@ -13,12 +13,13 @@ const identity_pb_1 = require("./generated/node/identity_pb");
|
|
|
13
13
|
* const SDK = require("@fonoster/sdk");
|
|
14
14
|
*
|
|
15
15
|
* async function main(request) {
|
|
16
|
-
* const
|
|
17
|
-
* const
|
|
16
|
+
* const apiKey = "your-api-key";
|
|
17
|
+
* const apiSecret = "your-api-secret"
|
|
18
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
18
19
|
*
|
|
19
20
|
* try {
|
|
20
|
-
* const client = SDK.Client({ accessKeyId
|
|
21
|
-
* await client.loginWithApiKey(apiKey);
|
|
21
|
+
* const client = SDK.Client({ accessKeyId });
|
|
22
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
22
23
|
*
|
|
23
24
|
* const users = new SDK.Users(client);
|
|
24
25
|
* const response = await users.createUser(request);
|
|
@@ -36,7 +37,7 @@ const identity_pb_1 = require("./generated/node/identity_pb");
|
|
|
36
37
|
* avatar: "https://example.com/avatar.jpg"
|
|
37
38
|
* };
|
|
38
39
|
*
|
|
39
|
-
* main(request)
|
|
40
|
+
* main(request);
|
|
40
41
|
*/
|
|
41
42
|
class Users {
|
|
42
43
|
client;
|
|
@@ -10,12 +10,13 @@ import { FonosterClient } from "./client/types";
|
|
|
10
10
|
* const SDK = require("@fonoster/sdk");
|
|
11
11
|
*
|
|
12
12
|
* async function main(request) {
|
|
13
|
-
* const
|
|
14
|
-
* const
|
|
13
|
+
* const apiKey = "your-api-key";
|
|
14
|
+
* const apiSecret = "your-api-secret"
|
|
15
|
+
* const accessKeyId = "WO00000000000000000000000000000000";
|
|
15
16
|
*
|
|
16
17
|
* try {
|
|
17
|
-
* const client = SDK.Client({ accessKeyId
|
|
18
|
-
* await client.loginWithApiKey(apiKey);
|
|
18
|
+
* const client = SDK.Client({ accessKeyId });
|
|
19
|
+
* await client.loginWithApiKey(apiKey, apiSecret);
|
|
19
20
|
*
|
|
20
21
|
* const workspaces = new SDK.Workspaces(client);
|
|
21
22
|
* const response = await workspaces.createWorkspace(request);
|
|
@@ -30,7 +31,7 @@ import { FonosterClient } from "./client/types";
|
|
|
30
31
|
* name: "My Workspace"
|
|
31
32
|
* };
|
|
32
33
|
*
|
|
33
|
-
* main(request)
|
|
34
|
+
* main(request);
|
|
34
35
|
*/
|
|
35
36
|
declare class Workspaces {
|
|
36
37
|
private client;
|