@fonoster/sdk 0.9.20 → 0.9.22
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
|
@@ -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 objectToJson<J extends Record<string, unknown>>(obj: new () => unknown, enumMapping?: MappingTuple<unknown>, objectMapping?: MappingTuple<unknown>, repeatableObjectMapping?: MappingTuple<unknown>): J;
|
|
3
21
|
export { objectToJson };
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { Acl, CreateAclRequest, CreateAclResponse, DeleteAclRequest, DeleteAclResponse, GetAclRequest, ListAclsRequest, ListAclsResponse, UpdateAclRequest, UpdateAclResponse } from "../../generated/web/acls_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type AclsClient = {
|
|
4
22
|
createAcl: ClientFunction<CreateAclRequest, CreateAclResponse>;
|
|
5
23
|
getAcl: ClientFunction<GetAclRequest, Acl>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { Agent, CreateAgentRequest, CreateAgentResponse, DeleteAgentRequest, DeleteAgentResponse, GetAgentRequest, ListAgentsRequest, ListAgentsResponse, UpdateAgentRequest, UpdateAgentResponse } from "../../generated/web/agents_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type AgentsClient = {
|
|
4
22
|
createAgent: ClientFunction<CreateAgentRequest, CreateAgentResponse>;
|
|
5
23
|
getAgent: ClientFunction<GetAgentRequest, Agent>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { Application, CreateApplicationRequest, CreateApplicationResponse, DeleteApplicationRequest, DeleteApplicationResponse, GetApplicationRequest, ListApplicationsRequest, ListApplicationsResponse, UpdateApplicationRequest, UpdateApplicationResponse } from "../../generated/web/applications_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type ApplicationsClient = {
|
|
4
22
|
createApplication: ClientFunction<CreateApplicationRequest, CreateApplicationResponse>;
|
|
5
23
|
getApplication: ClientFunction<GetApplicationRequest, Application>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { CallDetailRecord, CreateCallRequest, CreateCallResponse, GetCallRequest, ListCallsRequest, ListCallsResponse, TrackCallRequest } from "../../generated/web/calls_pb";
|
|
20
|
+
import { ClientFunction, ServerStreamFunction } from "./common";
|
|
3
21
|
type CallsClient = {
|
|
4
22
|
createCall: ClientFunction<CreateCallRequest, CreateCallResponse>;
|
|
5
23
|
getCall: ClientFunction<GetCallRequest, CallDetailRecord>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { CreateCredentialsRequest, CreateCredentialsResponse, Credentials, DeleteCredentialsRequest, DeleteCredentialsResponse, GetCredentialsRequest, ListCredentialsRequest, ListCredentialsResponse, UpdateCredentialsRequest, UpdateCredentialsResponse } from "../../generated/web/credentials_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type CredentialsClient = {
|
|
4
22
|
createCredentials: ClientFunction<CreateCredentialsRequest, CreateCredentialsResponse>;
|
|
5
23
|
getCredentials: ClientFunction<GetCredentialsRequest, Credentials>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { CreateDomainRequest, CreateDomainResponse, DeleteDomainRequest, DeleteDomainResponse, Domain, GetDomainRequest, ListDomainsRequest, ListDomainsResponse, UpdateDomainRequest, UpdateDomainResponse } from "../../generated/web/domains_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type DomainsClient = {
|
|
4
22
|
createDomain: ClientFunction<CreateDomainRequest, CreateDomainResponse>;
|
|
5
23
|
getDomain: ClientFunction<GetDomainRequest, Domain>;
|
|
@@ -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 { AclsClient } from "./AclsClient";
|
|
2
20
|
import { AgentsClient } from "./AgentsClient";
|
|
3
21
|
import { ApplicationsClient } from "./ApplicationsClient";
|
|
@@ -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 { CreateApiKeyRequest, CreateApiKeyResponse, CreateUserRequest, CreateUserResponse, CreateUserWithOauth2CodeRequest, CreateWorkspaceRequest, DeleteApiKeyRequest, DeleteApiKeyResponse, DeleteUserRequest, DeleteUserResponse, DeleteWorkspaceRequest, DeleteWorkspaceResponse, ExchangeApiKeyRequest, ExchangeApiKeyResponse, ExchangeCredentialsRequest, ExchangeCredentialsResponse, ExchangeOauth2CodeRequest, ExchangeOauth2CodeResponse, ExchangeRefreshTokenRequest, ExchangeRefreshTokenResponse, GetUserRequest, GetWorkspaceRequest, InviteUserToWorkspaceRequest, InviteUserToWorkspaceResponse, ListApiKeysRequest, ListApiKeysResponse, ListWorkspaceMembersRequest, ListWorkspaceMembersResponse, ListWorkspacesRequest, ListWorkspacesResponse, RegenerateApiKeyRequest, RegenerateApiKeyResponse, RemoveUserFromWorkspaceRequest, RemoveUserFromWorkspaceResponse, ResendWorkspaceMembershipInvitationRequest, ResendWorkspaceMembershipInvitationResponse, ResetPasswordRequest, SendResetPasswordCodeRequest, SendVerificationCodeRequest, UpdateUserRequest, UpdateWorkspaceRequest, UpdateWorkspaceResponse, User, VerifyCodeRequest, Workspace } from "../../generated/web/identity_pb";
|
|
2
20
|
import { ClientFunction } from "../types";
|
|
3
21
|
type IdentityClient = {
|
|
4
22
|
createApiKey: ClientFunction<CreateApiKeyRequest, CreateApiKeyResponse>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { CreateNumberRequest, CreateNumberResponse, DeleteNumberRequest, DeleteNumberResponse, GetNumberRequest, Number as INumber, ListNumbersRequest, ListNumbersResponse, UpdateNumberRequest, UpdateNumberResponse } from "../../generated/web/numbers_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type NumbersClient = {
|
|
4
22
|
createNumber: ClientFunction<CreateNumberRequest, CreateNumberResponse>;
|
|
5
23
|
getNumber: ClientFunction<GetNumberRequest, INumber>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { CreateSecretRequest, CreateSecretResponse, DeleteSecretRequest, DeleteSecretResponse, GetSecretRequest, ListSecretsRequest, ListSecretsResponse, Secret, UpdateSecretRequest, UpdateSecretResponse } from "../../generated/web/secrets_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type SecretsClient = {
|
|
4
22
|
createSecret: ClientFunction<CreateSecretRequest, CreateSecretResponse>;
|
|
5
23
|
getSecret: ClientFunction<GetSecretRequest, Secret>;
|
|
@@ -1,5 +1,23 @@
|
|
|
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
|
+
*/
|
|
2
19
|
import { CreateTrunkRequest, CreateTrunkResponse, DeleteTrunkRequest, DeleteTrunkResponse, GetTrunkRequest, ListTrunksRequest, ListTrunksResponse, Trunk, UpdateTrunkRequest, UpdateTrunkResponse } from "../../generated/web/trunks_pb";
|
|
20
|
+
import { ClientFunction } from "./common";
|
|
3
21
|
type TrunksClient = {
|
|
4
22
|
createTrunk: ClientFunction<CreateTrunkRequest, CreateTrunkResponse>;
|
|
5
23
|
getTrunk: ClientFunction<GetTrunkRequest, Trunk>;
|
|
@@ -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-web";
|
|
2
20
|
type MappingTuple<T> = Array<[string, T]>;
|
|
3
21
|
type ClientFunction<T, U> = (request: T, metadata: Metadata | unknown | null, callback: (err: Error | null, response: U | null) => void) => void;
|
|
@@ -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
|
export * from "./ApplicationsClient";
|
|
2
20
|
export * from "./CallsClient";
|
|
3
21
|
export * from "./FonosterClient";
|
|
@@ -14,12 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./CallsClient"), exports);
|
|
19
|
-
__exportStar(require("./FonosterClient"), exports);
|
|
20
|
-
__exportStar(require("./IdentityClient"), exports);
|
|
21
|
-
__exportStar(require("./SecretsClient"), exports);
|
|
22
|
-
/*
|
|
17
|
+
/**
|
|
23
18
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
24
19
|
* http://github.com/fonoster/fonoster
|
|
25
20
|
*
|
|
@@ -37,4 +32,9 @@ __exportStar(require("./SecretsClient"), exports);
|
|
|
37
32
|
* See the License for the specific language governing permissions and
|
|
38
33
|
* limitations under the License.
|
|
39
34
|
*/
|
|
35
|
+
__exportStar(require("./ApplicationsClient"), exports);
|
|
36
|
+
__exportStar(require("./CallsClient"), exports);
|
|
37
|
+
__exportStar(require("./FonosterClient"), exports);
|
|
38
|
+
__exportStar(require("./IdentityClient"), exports);
|
|
39
|
+
__exportStar(require("./SecretsClient"), exports);
|
|
40
40
|
__exportStar(require("./common"), exports);
|
|
@@ -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 isMapping(key: string, objectMapping: MappingTuple<unknown>): boolean;
|
|
3
21
|
declare function getEnumValue(key: string, value: string, enumMapping: MappingTuple<unknown>): number;
|
package/dist/node/node.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
|
export * from "./Acls";
|
|
2
20
|
export * from "./Agents";
|
|
3
21
|
export * from "./ApiKeys";
|
package/dist/node/node.js
CHANGED
|
@@ -14,19 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./Agents"), exports);
|
|
19
|
-
__exportStar(require("./ApiKeys"), exports);
|
|
20
|
-
__exportStar(require("./Applications"), exports);
|
|
21
|
-
__exportStar(require("./Calls"), exports);
|
|
22
|
-
__exportStar(require("./Credentials"), exports);
|
|
23
|
-
__exportStar(require("./Domains"), exports);
|
|
24
|
-
__exportStar(require("./Numbers"), exports);
|
|
25
|
-
__exportStar(require("./Secrets"), exports);
|
|
26
|
-
__exportStar(require("./Trunks"), exports);
|
|
27
|
-
__exportStar(require("./Users"), exports);
|
|
28
|
-
__exportStar(require("./Workspaces"), exports);
|
|
29
|
-
/*
|
|
17
|
+
/**
|
|
30
18
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
31
19
|
* http://github.com/fonoster/fonoster
|
|
32
20
|
*
|
|
@@ -44,4 +32,16 @@ __exportStar(require("./Workspaces"), exports);
|
|
|
44
32
|
* See the License for the specific language governing permissions and
|
|
45
33
|
* limitations under the License.
|
|
46
34
|
*/
|
|
35
|
+
__exportStar(require("./Acls"), exports);
|
|
36
|
+
__exportStar(require("./Agents"), exports);
|
|
37
|
+
__exportStar(require("./ApiKeys"), exports);
|
|
38
|
+
__exportStar(require("./Applications"), exports);
|
|
39
|
+
__exportStar(require("./Calls"), exports);
|
|
40
|
+
__exportStar(require("./Credentials"), exports);
|
|
41
|
+
__exportStar(require("./Domains"), exports);
|
|
42
|
+
__exportStar(require("./Numbers"), exports);
|
|
43
|
+
__exportStar(require("./Secrets"), exports);
|
|
44
|
+
__exportStar(require("./Trunks"), exports);
|
|
45
|
+
__exportStar(require("./Users"), exports);
|
|
46
|
+
__exportStar(require("./Workspaces"), exports);
|
|
47
47
|
__exportStar(require("./client/Client"), exports);
|