@fonoster/common 0.9.19 → 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/dist/GrpcError.d.ts +18 -0
- package/dist/GrpcError.js +1 -1
- package/dist/assistants/LanguageModelProvider.d.ts +18 -0
- package/dist/assistants/LanguageModelProvider.js +1 -1
- package/dist/assistants/assistantSchema.d.ts +18 -0
- package/dist/assistants/assistantSchema.js +2 -2
- package/dist/assistants/conversationSettingsSchema.d.ts +18 -0
- package/dist/assistants/conversationSettingsSchema.js +1 -1
- package/dist/assistants/eventsHookSchema.d.ts +18 -0
- package/dist/assistants/eventsHookSchema.js +1 -1
- package/dist/assistants/index.d.ts +18 -0
- package/dist/assistants/index.js +1 -1
- package/dist/assistants/languageModelConfigSchema.d.ts +18 -0
- package/dist/assistants/languageModelConfigSchema.js +3 -3
- package/dist/assistants/testCasesSchema.d.ts +19 -1
- package/dist/assistants/testCasesSchema.js +2 -2
- package/dist/assistants/tools/index.d.ts +18 -0
- package/dist/assistants/tools/index.js +1 -1
- package/dist/assistants/tools/propertySchema.d.ts +18 -0
- package/dist/assistants/tools/propertySchema.js +1 -1
- package/dist/assistants/tools/toolSchema.d.ts +18 -0
- package/dist/assistants/tools/toolSchema.js +2 -2
- package/dist/constants.d.ts +18 -0
- package/dist/countryIsoCodes.d.ts +18 -0
- package/dist/countryIsoCodes.js +1 -1
- package/dist/envs.js +1 -1
- package/dist/errors/PrismaErrorEnum.d.ts +18 -0
- package/dist/errors/PrismaErrorEnum.js +1 -1
- package/dist/errors/handleError.js +1 -1
- package/dist/errors/handleZodError.js +1 -1
- package/dist/errors/index.d.ts +18 -0
- package/dist/errors/index.js +2 -2
- package/dist/errors/types.d.ts +18 -0
- package/dist/grpcStatusMap.js +1 -1
- package/dist/identity/createAuthInterceptor.js +5 -5
- package/dist/identity/decodeToken.d.ts +1 -1
- package/dist/identity/decodeToken.js +1 -1
- package/dist/identity/errors.d.ts +18 -0
- package/dist/identity/errors.js +1 -1
- package/dist/identity/getAccessKeyIdFromCall.d.ts +18 -0
- package/dist/identity/getPublicKey.js +1 -1
- package/dist/identity/getTokenFromCall.d.ts +18 -0
- package/dist/identity/hasAccess.js +1 -1
- package/dist/identity/index.d.ts +18 -0
- package/dist/identity/index.js +1 -1
- package/dist/identity/isValidToken.js +1 -1
- package/dist/identity/roles.js +1 -2
- package/dist/identity/tokenHasAccessKeyId.js +1 -1
- package/dist/identity/types.d.ts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +1 -1
- package/dist/messages.d.ts +18 -0
- package/dist/messages.js +1 -1
- package/dist/notifications/compileTemplate.js +1 -1
- package/dist/notifications/createSendEmail.js +1 -1
- package/dist/notifications/createSendSmsTwilioImpl.js +1 -1
- package/dist/notifications/index.d.ts +18 -0
- package/dist/notifications/index.js +1 -1
- package/dist/notifications/types.d.ts +18 -0
- package/dist/protos/identity.proto +5 -0
- package/dist/tts/AzureVoices.d.ts +18 -0
- package/dist/tts/AzureVoices.js +2 -3
- package/dist/tts/DeepgramVoices.d.ts +18 -0
- package/dist/tts/DeepgramVoices.js +2 -3
- package/dist/tts/ElevenLabs.d.ts +18 -0
- package/dist/tts/ElevenLabs.js +2 -3
- package/dist/tts/GoogleVoices.d.ts +18 -0
- package/dist/tts/GoogleVoices.js +2 -3
- package/dist/tts/index.d.ts +18 -0
- package/dist/tts/index.js +1 -1
- package/dist/tts/types.d.ts +18 -0
- package/dist/tts/types.js +1 -1
- package/dist/types.d.ts +18 -0
- package/dist/utils/assertEnvsAreSet.js +1 -1
- package/dist/utils/assertFileExists.js +1 -1
- package/dist/utils/createFetchSingleCallByCallId.d.ts +18 -0
- package/dist/utils/createFetchSingleCallByCallId.js +0 -18
- package/dist/utils/createInterceptingCall.d.ts +18 -0
- package/dist/utils/createService.d.ts +18 -0
- package/dist/utils/createService.js +1 -1
- package/dist/utils/datesMapper.d.ts +18 -0
- package/dist/utils/findIntegrationsCredentials.d.ts +18 -0
- package/dist/utils/findIntegrationsCredentials.js +6 -2
- package/dist/utils/getServerCredentials.js +1 -1
- package/dist/utils/index.d.ts +18 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/sendHttpRequest.js +1 -1
- package/dist/utils/toCamelCase.js +1 -1
- package/dist/utils/toPascalCase.d.ts +18 -0
- package/dist/utils/toPascalCase.js +1 -1
- package/dist/utils/types.d.ts +18 -0
- package/dist/utils/withErrorHandling.d.ts +18 -0
- package/dist/utils/withErrorHandling.js +2 -2
- package/dist/utils/withErrorHandlingAndValidation.d.ts +18 -0
- package/dist/utils/withValidation.d.ts +18 -0
- package/dist/validators/calls.d.ts +18 -0
- package/dist/validators/calls.js +1 -1
- package/dist/validators/common.d.ts +18 -0
- package/dist/validators/common.js +1 -1
- package/dist/validators/hostOrHostPortSchema.d.ts +18 -0
- package/dist/validators/hostOrHostPortSchema.js +1 -1
- package/dist/validators/identity.d.ts +26 -1
- package/dist/validators/identity.js +6 -2
- package/dist/validators/index.d.ts +18 -0
- package/dist/validators/index.js +1 -1
- package/dist/validators/secrets.d.ts +18 -0
- package/dist/validators/secrets.js +1 -1
- package/dist/validators/sipnet/acls.js +1 -1
- package/dist/validators/sipnet/agents.d.ts +18 -0
- package/dist/validators/sipnet/agents.js +1 -1
- package/dist/validators/sipnet/credentials.d.ts +18 -0
- package/dist/validators/sipnet/credentials.js +1 -1
- package/dist/validators/sipnet/domains.d.ts +18 -0
- package/dist/validators/sipnet/domains.js +1 -1
- package/dist/validators/sipnet/index.d.ts +18 -0
- package/dist/validators/sipnet/index.js +1 -1
- package/dist/validators/sipnet/numbers.js +1 -1
- package/dist/validators/sipnet/trunks.d.ts +18 -0
- package/dist/validators/sipnet/trunks.js +1 -1
- package/dist/voice/Dial.d.ts +18 -0
- package/dist/voice/Gather.d.ts +18 -0
- package/dist/voice/Mute.d.ts +18 -0
- package/dist/voice/Play.d.ts +18 -0
- package/dist/voice/PlayDtmf.d.ts +18 -0
- package/dist/voice/PlaybackControl.d.ts +18 -0
- package/dist/voice/Record.d.ts +18 -0
- package/dist/voice/Say.d.ts +18 -0
- package/dist/voice/Stream.d.ts +18 -0
- package/dist/voice/Stream.js +0 -18
- package/dist/voice/StreamGather.d.ts +18 -0
- package/dist/voice/Verb.d.ts +18 -0
- package/dist/voice/index.d.ts +18 -0
- package/dist/voice/index.js +12 -12
- package/dist/voice/voice.d.ts +19 -1
- package/package.json +4 -3
|
@@ -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 { z } from "zod";
|
|
2
20
|
declare const createCredentialsRequestSchema: z.ZodObject<{
|
|
3
21
|
name: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateCredentialsRequestSchema = exports.createCredentialsRequestSchema = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/fonoster
|
|
7
7
|
*
|
|
@@ -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 { z } from "zod";
|
|
2
20
|
declare const createDomainRequestSchema: z.ZodObject<{
|
|
3
21
|
name: z.ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateDomainRequestSchema = exports.createDomainRequestSchema = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/fonoster
|
|
7
7
|
*
|
|
@@ -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 "./credentials";
|
|
@@ -14,7 +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
|
-
|
|
17
|
+
/**
|
|
18
18
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/fonoster
|
|
20
20
|
*
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.updateNumberRequestSchema = exports.createNumberRequestSchema = void 0;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/fonoster
|
|
10
10
|
*
|
|
@@ -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 { Transport } from "@fonoster/types";
|
|
2
20
|
import { z } from "zod";
|
|
3
21
|
declare const createTrunkRequestSchema: z.ZodObject<{
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.updateTrunkRequestSchema = exports.createTrunkRequestSchema = void 0;
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
38
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
39
39
|
* http://github.com/fonoster/fonoster
|
|
40
40
|
*
|
package/dist/voice/Dial.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 { VerbRequest } from "./Verb";
|
|
2
20
|
declare enum DialRecordDirection {
|
|
3
21
|
IN = "IN",
|
package/dist/voice/Gather.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 { VerbRequest, VerbResponse } from "./Verb";
|
|
2
20
|
declare enum GatherSource {
|
|
3
21
|
SPEECH = "speech",
|
package/dist/voice/Mute.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 { VerbRequest } from "./Verb";
|
|
2
20
|
type MuteOptions = {
|
|
3
21
|
direction?: MuteDirection;
|
package/dist/voice/Play.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 { VerbRequest } from "./Verb";
|
|
2
20
|
type PlayOptions = {
|
|
3
21
|
playbackRef?: string;
|
package/dist/voice/PlayDtmf.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 { VerbRequest } from "./Verb";
|
|
2
20
|
type PlayDtmfRequest = VerbRequest & {
|
|
3
21
|
digits: string;
|
|
@@ -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 { VerbRequest } from "./Verb";
|
|
2
20
|
declare enum PlaybackControlAction {
|
|
3
21
|
STOP = "STOP",
|
package/dist/voice/Record.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 { VerbRequest } from "./Verb";
|
|
2
20
|
declare enum RecordFormat {
|
|
3
21
|
WAV = "wav"
|
package/dist/voice/Say.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 { Struct } from "pb-util";
|
|
2
20
|
import { VerbRequest } from "./Verb";
|
|
3
21
|
type SayRequest = VerbRequest & {
|
package/dist/voice/Stream.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 { VerbRequest, VerbResponse } from "./Verb";
|
|
2
20
|
declare enum StreamDirection {
|
|
3
21
|
IN = "IN",
|
package/dist/voice/Stream.js
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StreamMessageType = exports.StreamDirection = exports.StreamAudioFormat = void 0;
|
|
4
|
-
/*
|
|
5
|
-
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
6
|
-
* http://github.com/fonoster/fonoster
|
|
7
|
-
*
|
|
8
|
-
* This file is part of Fonoster
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the MIT License (the "License");
|
|
11
|
-
* you may not use this file except in compliance with
|
|
12
|
-
* the License. You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* https://opensource.org/licenses/MIT
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
4
|
var StreamDirection;
|
|
23
5
|
(function (StreamDirection) {
|
|
24
6
|
StreamDirection["IN"] = "IN";
|
|
@@ -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 { VerbRequest, VerbResponse } from "./Verb";
|
|
2
20
|
declare enum StreamGatherSource {
|
|
3
21
|
SPEECH = "speech",
|
package/dist/voice/Verb.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 { VoiceClientConfig } from "./voice";
|
|
2
20
|
type VoiceRequest = VoiceClientConfig;
|
|
3
21
|
type VerbRequest = {
|
package/dist/voice/index.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 "./Dial";
|
|
2
20
|
export * from "./Gather";
|
|
3
21
|
export * from "./Mute";
|
package/dist/voice/index.js
CHANGED
|
@@ -14,18 +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("./Gather"), exports);
|
|
19
|
-
__exportStar(require("./Mute"), exports);
|
|
20
|
-
__exportStar(require("./Play"), exports);
|
|
21
|
-
__exportStar(require("./PlayDtmf"), exports);
|
|
22
|
-
__exportStar(require("./PlaybackControl"), exports);
|
|
23
|
-
__exportStar(require("./Record"), exports);
|
|
24
|
-
__exportStar(require("./Say"), exports);
|
|
25
|
-
__exportStar(require("./Stream"), exports);
|
|
26
|
-
__exportStar(require("./StreamGather"), exports);
|
|
27
|
-
__exportStar(require("./Verb"), exports);
|
|
28
|
-
/*
|
|
17
|
+
/**
|
|
29
18
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
30
19
|
* http://github.com/fonoster/fonoster
|
|
31
20
|
*
|
|
@@ -43,4 +32,15 @@ __exportStar(require("./Verb"), exports);
|
|
|
43
32
|
* See the License for the specific language governing permissions and
|
|
44
33
|
* limitations under the License.
|
|
45
34
|
*/
|
|
35
|
+
__exportStar(require("./Dial"), exports);
|
|
36
|
+
__exportStar(require("./Gather"), exports);
|
|
37
|
+
__exportStar(require("./Mute"), exports);
|
|
38
|
+
__exportStar(require("./Play"), exports);
|
|
39
|
+
__exportStar(require("./PlayDtmf"), exports);
|
|
40
|
+
__exportStar(require("./PlaybackControl"), exports);
|
|
41
|
+
__exportStar(require("./Record"), exports);
|
|
42
|
+
__exportStar(require("./Say"), exports);
|
|
43
|
+
__exportStar(require("./Stream"), exports);
|
|
44
|
+
__exportStar(require("./StreamGather"), exports);
|
|
45
|
+
__exportStar(require("./Verb"), exports);
|
|
46
46
|
__exportStar(require("./voice"), exports);
|
package/dist/voice/voice.d.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
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 { CallDirection } from "@fonoster/types";
|
|
20
|
+
import { GrpcError } from "../GrpcError";
|
|
2
21
|
import { DialRequest, DialStatus } from "./Dial";
|
|
3
22
|
import { GatherRequest, GatherResponse } from "./Gather";
|
|
4
23
|
import { MuteRequest } from "./Mute";
|
|
@@ -9,7 +28,6 @@ import { SayRequest, SayResponse } from "./Say";
|
|
|
9
28
|
import { StartStreamRequest, StartStreamResponse, StopStreamRequest, StreamPayload } from "./Stream";
|
|
10
29
|
import { StartStreamGatherRequest, StreamGatherPayload } from "./StreamGather";
|
|
11
30
|
import { VerbRequest, VerbResponse, VoiceRequest } from "./Verb";
|
|
12
|
-
import { GrpcError } from "../GrpcError";
|
|
13
31
|
declare const DATA = "data";
|
|
14
32
|
declare const END = "end";
|
|
15
33
|
declare const ERROR = "error";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.22",
|
|
4
4
|
"description": "Common library for Fonoster projects",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@fonoster/logger": "^0.9.
|
|
21
|
+
"@fonoster/logger": "^0.9.22",
|
|
22
22
|
"@grpc/grpc-js": "~1.10.6",
|
|
23
23
|
"@grpc/proto-loader": "^0.7.12",
|
|
24
24
|
"@influxdata/influxdb-client": "^1.35.0",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"jsonwebtoken": "^9.0.2",
|
|
29
29
|
"jwt-decode": "^4.0.0",
|
|
30
30
|
"nodemailer": "^6.9.13",
|
|
31
|
+
"pb-util": "^1.0.3",
|
|
31
32
|
"twilio": "^5.3.4",
|
|
32
33
|
"validator": "^13.12.0",
|
|
33
34
|
"zod-validation-error": "^3.3.0"
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@types/nodemailer": "^6.4.14"
|
|
50
51
|
},
|
|
51
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "3c393362218ebfdd7ec672f18553953edf37e9e3"
|
|
52
53
|
}
|