@fonoster/sdk 0.9.20 → 0.9.23
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 +111 -1
- package/dist/node/Acls.d.ts +18 -0
- package/dist/node/Agents.d.ts +18 -0
- package/dist/node/ApiKeys.d.ts +18 -0
- package/dist/node/ApiKeys.js +1 -1
- package/dist/node/Applications.d.ts +18 -0
- package/dist/node/Calls.d.ts +18 -0
- package/dist/node/Credentials.d.ts +18 -0
- package/dist/node/Domains.d.ts +18 -0
- package/dist/node/Numbers.d.ts +18 -0
- package/dist/node/Secrets.d.ts +18 -0
- package/dist/node/Trunks.d.ts +18 -0
- package/dist/node/Users.d.ts +19 -1
- package/dist/node/Workspaces.d.ts +19 -1
- package/dist/node/client/AbstractClient.d.ts +18 -0
- package/dist/node/client/AbstractClient.js +1 -1
- package/dist/node/client/Client.d.ts +18 -0
- package/dist/node/client/Client.js +3 -3
- package/dist/node/client/TokenRefresherNode.d.ts +18 -0
- package/dist/node/client/TokenRefresherNode.js +1 -1
- package/dist/node/client/TokenRefresherWeb.d.ts +18 -0
- package/dist/node/client/isJwtExpired.d.ts +18 -0
- package/dist/node/client/isJwtExpired.js +1 -1
- package/dist/node/client/jsonToObject.d.ts +18 -0
- package/dist/node/client/makeRpcRequest.js +1 -2
- package/dist/node/client/objectToJson.d.ts +18 -0
- package/dist/node/client/types/AclsClient.d.ts +19 -1
- package/dist/node/client/types/AgentsClient.d.ts +19 -1
- package/dist/node/client/types/ApplicationsClient.d.ts +19 -1
- package/dist/node/client/types/CallsClient.d.ts +19 -1
- package/dist/node/client/types/CredentialsClient.d.ts +19 -1
- package/dist/node/client/types/DomainsClient.d.ts +19 -1
- package/dist/node/client/types/FonosterClient.d.ts +18 -0
- package/dist/node/client/types/IdentityClient.d.ts +19 -1
- package/dist/node/client/types/NumbersClient.d.ts +19 -1
- package/dist/node/client/types/SecretsClient.d.ts +19 -1
- package/dist/node/client/types/TrunksClient.d.ts +19 -1
- package/dist/node/client/types/common.d.ts +18 -0
- package/dist/node/client/types/index.d.ts +18 -0
- package/dist/node/client/types/index.js +6 -6
- package/dist/node/client/utils.d.ts +18 -0
- package/dist/node/node.d.ts +18 -0
- package/dist/node/node.js +13 -13
- package/dist/node/tsconfig.tsbuildinfo +1 -1
- package/dist/node/utils.js +1 -1
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2141,8 +2141,11 @@ Note that an active Fonoster deployment is required.
|
|
|
2141
2141
|
* [Users](#Users)
|
|
2142
2142
|
* [new Users(client)](#new_Users_new)
|
|
2143
2143
|
* [.createUser(request)](#Users+createUser) ⇒ <code>Promise.<BaseApiObject></code>
|
|
2144
|
+
* [.createUserWithOauth2Code(request)](#Users+createUserWithOauth2Code) ⇒ <code>Promise.<ExchangeCredentialsResponse></code>
|
|
2144
2145
|
* [.getUser(ref)](#Users+getUser) ⇒ <code>Promise.<Acl></code>
|
|
2145
2146
|
* [.updateUser(request)](#Users+updateUser) ⇒ <code>Promise.<BaseApiObject></code>
|
|
2147
|
+
* [.sendResetPasswordCode(username)](#Users+sendResetPasswordCode) ⇒ <code>Promise.<void></code>
|
|
2148
|
+
* [.resetPassword(request)](#Users+resetPassword) ⇒ <code>Promise.<void></code>
|
|
2146
2149
|
* [.deleteUser(ref)](#Users+deleteUser) ⇒ <code>Promise.<BaseApiObject></code>
|
|
2147
2150
|
|
|
2148
2151
|
<a name="new_Users_new"></a>
|
|
@@ -2205,6 +2208,31 @@ users
|
|
|
2205
2208
|
.then(console.log) // successful response
|
|
2206
2209
|
.catch(console.error); // an error occurred
|
|
2207
2210
|
```
|
|
2211
|
+
<a name="Users+createUserWithOauth2Code"></a>
|
|
2212
|
+
|
|
2213
|
+
### users.createUserWithOauth2Code(request) ⇒ <code>Promise.<ExchangeCredentialsResponse></code>
|
|
2214
|
+
Create a new User using an OAuth2 code and return the id, access, and refresh tokens for the User.
|
|
2215
|
+
|
|
2216
|
+
**Kind**: instance method of [<code>Users</code>](#Users)
|
|
2217
|
+
**Returns**: <code>Promise.<ExchangeCredentialsResponse></code> - - The response object that contains the id, access, and refresh tokens
|
|
2218
|
+
|
|
2219
|
+
| Param | Type | Description |
|
|
2220
|
+
| --- | --- | --- |
|
|
2221
|
+
| request | <code>CreateUserWithOauth2CodeRequest</code> | The request object with the OAuth2 code |
|
|
2222
|
+
| request.code | <code>string</code> | The OAuth2 code of the User |
|
|
2223
|
+
|
|
2224
|
+
**Example**
|
|
2225
|
+
```js
|
|
2226
|
+
const users = new SDK.Users(client); // Existing client object
|
|
2227
|
+
|
|
2228
|
+
const request = {
|
|
2229
|
+
code: "fd4d78beb31aa25b93de"
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
users.createUserWithOauth2Code(request)
|
|
2233
|
+
.then(console.log) // successful response
|
|
2234
|
+
.catch(console.error); // an error occurred
|
|
2235
|
+
```
|
|
2208
2236
|
<a name="Users+getUser"></a>
|
|
2209
2237
|
|
|
2210
2238
|
### users.getUser(ref) ⇒ <code>Promise.<Acl></code>
|
|
@@ -2260,6 +2288,59 @@ users
|
|
|
2260
2288
|
.then(console.log) // successful response
|
|
2261
2289
|
.catch(console.error); // an error occurred
|
|
2262
2290
|
```
|
|
2291
|
+
<a name="Users+sendResetPasswordCode"></a>
|
|
2292
|
+
|
|
2293
|
+
### users.sendResetPasswordCode(username) ⇒ <code>Promise.<void></code>
|
|
2294
|
+
Sends a reset password code to the User.
|
|
2295
|
+
|
|
2296
|
+
**Kind**: instance method of [<code>Users</code>](#Users)
|
|
2297
|
+
**Returns**: <code>Promise.<void></code> - - The response object that contains the reference to the User
|
|
2298
|
+
|
|
2299
|
+
| Param | Type | Description |
|
|
2300
|
+
| --- | --- | --- |
|
|
2301
|
+
| username | <code>string</code> | The username of the User |
|
|
2302
|
+
|
|
2303
|
+
**Example**
|
|
2304
|
+
```js
|
|
2305
|
+
const users = new SDK.Users(client); // Existing client object
|
|
2306
|
+
|
|
2307
|
+
const username = "john.doe@example.com";
|
|
2308
|
+
|
|
2309
|
+
users
|
|
2310
|
+
.sendResetPasswordCode(username)
|
|
2311
|
+
.then(console.log) // successful response
|
|
2312
|
+
.catch(console.error); // an error occurred
|
|
2313
|
+
```
|
|
2314
|
+
<a name="Users+resetPassword"></a>
|
|
2315
|
+
|
|
2316
|
+
### users.resetPassword(request) ⇒ <code>Promise.<void></code>
|
|
2317
|
+
Resets the password of the User.
|
|
2318
|
+
|
|
2319
|
+
**Kind**: instance method of [<code>Users</code>](#Users)
|
|
2320
|
+
**Returns**: <code>Promise.<void></code> - - The response object that contains the reference to the User
|
|
2321
|
+
|
|
2322
|
+
| Param | Type | Description |
|
|
2323
|
+
| --- | --- | --- |
|
|
2324
|
+
| request | <code>ResetPasswordRequest</code> | The request object that contains the necessary information to reset the password of a User |
|
|
2325
|
+
| request.username | <code>string</code> | The username of the User |
|
|
2326
|
+
| request.password | <code>string</code> | The new password of the User |
|
|
2327
|
+
| request.verificationCode | <code>string</code> | The verification code of the User |
|
|
2328
|
+
|
|
2329
|
+
**Example**
|
|
2330
|
+
```js
|
|
2331
|
+
const users = new SDK.Users(client); // Existing client object
|
|
2332
|
+
|
|
2333
|
+
const request = {
|
|
2334
|
+
username: "john.doe@example.com",
|
|
2335
|
+
password: "password",
|
|
2336
|
+
verificationCode: "123456"
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
users
|
|
2340
|
+
.resetPassword(request)
|
|
2341
|
+
.then(console.log) // successful response
|
|
2342
|
+
.catch(console.error); // an error occurred
|
|
2343
|
+
```
|
|
2263
2344
|
<a name="Users+deleteUser"></a>
|
|
2264
2345
|
|
|
2265
2346
|
### users.deleteUser(ref) ⇒ <code>Promise.<BaseApiObject></code>
|
|
@@ -2308,6 +2389,7 @@ Note that an active Fonoster deployment is required.
|
|
|
2308
2389
|
* [.listWorkspaces()](#Workspaces+listWorkspaces) ⇒ <code>Promise.<ListWorkspacesResponse></code>
|
|
2309
2390
|
* [.inviteUserToWorkspace(request)](#Workspaces+inviteUserToWorkspace) ⇒ <code>Promise.<BaseApiObject></code>
|
|
2310
2391
|
* [.resendWorkspaceMembershipInvitation(userRef)](#Workspaces+resendWorkspaceMembershipInvitation) ⇒ <code>Promise.<ResendWorkspaceMembershipInvitationResponse></code>
|
|
2392
|
+
* [.listWorkspaceMembers(request)](#Workspaces+listWorkspaceMembers) ⇒ <code>Promise.<ListWorkspaceMembersResponse></code>
|
|
2311
2393
|
* [.removeUserFromWorkspace(userRef)](#Workspaces+removeUserFromWorkspace) ⇒ <code>Promise.<RemoveUserFromWorkspaceResponse></code>
|
|
2312
2394
|
|
|
2313
2395
|
<a name="new_Workspaces_new"></a>
|
|
@@ -2452,7 +2534,7 @@ workspaces
|
|
|
2452
2534
|
<a name="Workspaces+listWorkspaces"></a>
|
|
2453
2535
|
|
|
2454
2536
|
### workspaces.listWorkspaces() ⇒ <code>Promise.<ListWorkspacesResponse></code>
|
|
2455
|
-
Retrieves a list of Workspaces
|
|
2537
|
+
Retrieves a list of all Workspaces for the logged in user.
|
|
2456
2538
|
|
|
2457
2539
|
**Kind**: instance method of [<code>Workspaces</code>](#Workspaces)
|
|
2458
2540
|
**Returns**: <code>Promise.<ListWorkspacesResponse></code> - - The response object that contains the list of Workspaces
|
|
@@ -2519,6 +2601,34 @@ workspaces
|
|
|
2519
2601
|
.then(console.log) // successful response
|
|
2520
2602
|
.catch(console.error); // an error occurred
|
|
2521
2603
|
```
|
|
2604
|
+
<a name="Workspaces+listWorkspaceMembers"></a>
|
|
2605
|
+
|
|
2606
|
+
### workspaces.listWorkspaceMembers(request) ⇒ <code>Promise.<ListWorkspaceMembersResponse></code>
|
|
2607
|
+
List the members of a Workspace
|
|
2608
|
+
|
|
2609
|
+
**Kind**: instance method of [<code>Workspaces</code>](#Workspaces)
|
|
2610
|
+
**Returns**: <code>Promise.<ListWorkspaceMembersResponse></code> - - The response object that contains the list of members
|
|
2611
|
+
|
|
2612
|
+
| Param | Type | Description |
|
|
2613
|
+
| --- | --- | --- |
|
|
2614
|
+
| request | <code>ListWorkspaceMembersRequest</code> | Request object to list the members of a Workspace |
|
|
2615
|
+
| request.pageSize | <code>number</code> | The number of members to return in the response |
|
|
2616
|
+
| request.pageToken | <code>string</code> | The page token to return the next page of members |
|
|
2617
|
+
|
|
2618
|
+
**Example**
|
|
2619
|
+
```js
|
|
2620
|
+
const workspaces = new SDK.Workspaces(client); // Existing client object
|
|
2621
|
+
|
|
2622
|
+
const request = {
|
|
2623
|
+
pageSize: 10,
|
|
2624
|
+
pageToken: "00000000-0000-0000-0000-000000000000"
|
|
2625
|
+
};
|
|
2626
|
+
|
|
2627
|
+
workspaces
|
|
2628
|
+
.listWorkspaceMembers(request)
|
|
2629
|
+
.then(console.log) // successful response
|
|
2630
|
+
.catch(console.error); // an error occurred
|
|
2631
|
+
```
|
|
2522
2632
|
<a name="Workspaces+removeUserFromWorkspace"></a>
|
|
2523
2633
|
|
|
2524
2634
|
### workspaces.removeUserFromWorkspace(userRef) ⇒ <code>Promise.<RemoveUserFromWorkspaceResponse></code>
|
package/dist/node/Acls.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Acl, BaseApiObject, CreateAclRequest, ListAclsRequest, ListAclsResponse, UpdateAclRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/Agents.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Agent, BaseApiObject, CreateAgentRequest, ListAgentsRequest, ListAgentsResponse, UpdateAgentRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/ApiKeys.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { BaseApiObject, CreateApiKeyRequest, CreateApiKeyResponse, ListApiKeysRequest, ListApiKeysResponse } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/ApiKeys.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Application, BaseApiObject, CreateApplicationRequest, ListApplicationsRequest, ListApplicationsResponse, UpdateApplicationRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/Calls.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { DialStatus } from "@fonoster/common";
|
|
2
20
|
import { CallDetailRecord, CreateCallRequest, ListCallsRequest, ListCallsResponse } from "@fonoster/types";
|
|
3
21
|
import { FonosterClient } from "./client/types";
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { BaseApiObject, CreateCredentialsRequest, Credentials as CredentialsType, ListCredentialsRequest, ListCredentialsResponse, UpdateCredentialsRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/Domains.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { BaseApiObject, CreateDomainRequest, Domain, ListDomainsRequest, ListDomainsResponse, UpdateDomainRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/Numbers.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { BaseApiObject, CreateNumberRequest, INumber, ListNumbersRequest, ListNumbersResponse, UpdateNumberRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/Secrets.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { BaseApiObject, CreateSecretRequest, ListSecretsRequest, ListSecretsResponse, Secret, UpdateSecretRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/Trunks.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { BaseApiObject, CreateTrunkRequest, ListTrunksRequest, ListTrunksResponse, Trunk, UpdateTrunkRequest } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
package/dist/node/Users.d.ts
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
import { BaseApiObject, CreateUserRequest, CreateUserWithOauth2CodeRequest, ExchangeCredentialsResponse, ResetPasswordRequest, UpdateUserRequest, User } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
|
4
22
|
* @classdesc Fonoster Users, part of the Fonoster Identity subsystem,
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
import { BaseApiObject, CreateWorkspaceRequest, InviteUserToWorkspaceRequest, ListWorkspaceMembersRequest, ListWorkspaceMembersResponse, ListWorkspacesResponse, RemoveUserFromWorkspaceResponse, ResendWorkspaceMembershipInvitationResponse, UpdateWorkspaceRequest, Workspace } from "@fonoster/types";
|
|
2
20
|
import { FonosterClient } from "./client/types";
|
|
3
21
|
/**
|
|
4
22
|
* @classdesc Fonoster Workspaces, part of the Fonoster Identity subsystem,
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { ContactType } from "@fonoster/types";
|
|
2
20
|
import { ApplicationsClient, CallsClient, FonosterClient, IdentityClient, SecretsClient } from "./types";
|
|
3
21
|
import { AclsClient } from "./types/AclsClient";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AbstractClient = void 0;
|
|
4
|
-
const makeRpcRequest_1 = require("./makeRpcRequest");
|
|
5
4
|
const identity_pb_1 = require("../generated/node/identity_pb");
|
|
5
|
+
const makeRpcRequest_1 = require("./makeRpcRequest");
|
|
6
6
|
class AbstractClient {
|
|
7
7
|
accessKeyId;
|
|
8
8
|
_accessToken;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Metadata } from "@grpc/grpc-js";
|
|
2
20
|
import { AbstractClient } from "./AbstractClient";
|
|
3
21
|
export declare class Client extends AbstractClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Client = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/fonoster
|
|
7
7
|
*
|
|
@@ -20,8 +20,6 @@ exports.Client = void 0;
|
|
|
20
20
|
* limitations under the License.
|
|
21
21
|
*/
|
|
22
22
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
23
|
-
const AbstractClient_1 = require("./AbstractClient");
|
|
24
|
-
const TokenRefresherNode_1 = require("./TokenRefresherNode");
|
|
25
23
|
const acls_grpc_pb_1 = require("../generated/node/acls_grpc_pb");
|
|
26
24
|
const agents_grpc_pb_1 = require("../generated/node/agents_grpc_pb");
|
|
27
25
|
const applications_grpc_pb_1 = require("../generated/node/applications_grpc_pb");
|
|
@@ -32,6 +30,8 @@ const identity_grpc_pb_1 = require("../generated/node/identity_grpc_pb");
|
|
|
32
30
|
const numbers_grpc_pb_1 = require("../generated/node/numbers_grpc_pb");
|
|
33
31
|
const secrets_grpc_pb_1 = require("../generated/node/secrets_grpc_pb");
|
|
34
32
|
const trunks_grpc_pb_1 = require("../generated/node/trunks_grpc_pb");
|
|
33
|
+
const AbstractClient_1 = require("./AbstractClient");
|
|
34
|
+
const TokenRefresherNode_1 = require("./TokenRefresherNode");
|
|
35
35
|
const DEFAULT_ENDPOINT = "api.fonoster.com";
|
|
36
36
|
class Client extends AbstractClient_1.AbstractClient {
|
|
37
37
|
endpoint;
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { Interceptor } from "@grpc/grpc-js";
|
|
2
20
|
import { AbstractClient } from "./AbstractClient";
|
|
3
21
|
declare class TokenRefresherNode {
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import * as grpcWeb from "grpc-web";
|
|
2
20
|
import { AbstractClient } from "./AbstractClient";
|
|
3
21
|
type ClientReadableStream = grpcWeb.ClientReadableStream<unknown>;
|
|
@@ -1,2 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
declare function isJwtExpired(token: string): boolean;
|
|
2
20
|
export { isJwtExpired };
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
3
|
+
* http://github.com/fonoster/fonoster
|
|
4
|
+
*
|
|
5
|
+
* This file is part of Fonoster
|
|
6
|
+
*
|
|
7
|
+
* Licensed under the MIT License (the "License");
|
|
8
|
+
* you may not use this file except in compliance with
|
|
9
|
+
* the License. You may obtain a copy of the License at
|
|
10
|
+
*
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
* See the License for the specific language governing permissions and
|
|
17
|
+
* limitations under the License.
|
|
18
|
+
*/
|
|
1
19
|
import { MappingTuple } from "./types";
|
|
2
20
|
declare function jsonToObject<J extends Record<string, unknown>, T>(params: {
|
|
3
21
|
json: J;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.makeRpcRequest = makeRpcRequest;
|
|
4
|
-
|
|
5
|
-
/*
|
|
4
|
+
/**
|
|
6
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
7
6
|
* http://github.com/fonoster/fonoster
|
|
8
7
|
*
|