@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 { ServerInterceptingCall } from "@grpc/grpc-js";
|
|
2
20
|
declare const unauthenticatedError: (call: ServerInterceptingCall) => ServerInterceptingCall;
|
|
3
21
|
declare const permissionDeniedError: (call: ServerInterceptingCall) => ServerInterceptingCall;
|
package/dist/identity/errors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.unauthenticatedError = exports.permissionDeniedError = 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 { ServerInterceptingCall } from "@grpc/grpc-js";
|
|
2
20
|
declare function getAccessKeyIdFromCall(call: ServerInterceptingCall): string;
|
|
3
21
|
export { getAccessKeyIdFromCall };
|
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.getPublicKey = getPublicKey;
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
38
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
39
39
|
* http://github.com/fonoster/fonoster
|
|
40
40
|
*
|
|
@@ -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 { ServerInterceptingCall } from "@grpc/grpc-js";
|
|
2
20
|
declare function getTokenFromCall(call: ServerInterceptingCall): string;
|
|
3
21
|
export { getTokenFromCall };
|
package/dist/identity/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 "./createAuthInterceptor";
|
|
2
20
|
export * from "./decodeToken";
|
|
3
21
|
export * from "./getPublicKey";
|
package/dist/identity/index.js
CHANGED
|
@@ -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.isValidToken = isValidToken;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/fonoster
|
|
10
10
|
*
|
package/dist/identity/roles.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.workspaceResourceAccess = exports.roles = exports.VOICE_SERVICE_ROLE = void 0;
|
|
4
|
-
|
|
5
|
-
/*
|
|
4
|
+
/**
|
|
6
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
7
6
|
* http://github.com/fonoster/fonoster
|
|
8
7
|
*
|
package/dist/identity/types.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 { Role } from "@fonoster/types";
|
|
2
20
|
declare enum TokenUseEnum {
|
|
3
21
|
ID = "id",
|
package/dist/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 "./assistants";
|
|
2
20
|
export * from "./GrpcError";
|
|
3
21
|
export * from "./constants";
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Validators = exports.Messages = void 0;
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
41
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
42
42
|
* http://github.com/fonoster/fonoster
|
|
43
43
|
*
|
package/dist/messages.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 declare const MUST_BE_A_SINGLE_CHARACTER = "Must be a single character";
|
|
2
20
|
export declare const MUST_BE_A_STRING = "Must be a string";
|
|
3
21
|
export declare const POSITIVE_INTEGER_MESSAGE = "Must be a positive number";
|
package/dist/messages.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VALID_UUID = exports.VALID_URL = exports.VALID_LANGUAGE_CODE = exports.VALID_DTMF = exports.VALID_DATE = exports.POSITIVE_INTEGER_MESSAGE = exports.MUST_BE_A_STRING = exports.MUST_BE_A_SINGLE_CHARACTER = void 0;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/fonoster
|
|
7
7
|
*
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.compileTemplate = compileTemplate;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/fonoster
|
|
10
10
|
*
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.createSendEmail = createSendEmail;
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
14
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
15
15
|
* http://github.com/fonoster/fonoster
|
|
16
16
|
*
|
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.createSendSmsTwilioImpl = createSendSmsTwilioImpl;
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
17
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
18
18
|
* http://github.com/fonoster/fonoster
|
|
19
19
|
*
|
|
@@ -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 "./compileTemplate";
|
|
2
20
|
export * from "./createSendEmail";
|
|
3
21
|
export * from "./createSendSmsTwilioImpl";
|
|
@@ -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
|
*
|
|
@@ -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
|
type EmailSenderConfig = {
|
|
2
20
|
sender: string;
|
|
3
21
|
host: string;
|
|
@@ -36,6 +36,7 @@ service Identity {
|
|
|
36
36
|
|
|
37
37
|
// User specific actions
|
|
38
38
|
rpc CreateUser (CreateUserRequest) returns (CreateUserResponse) {}
|
|
39
|
+
rpc CreateUserWithOauth2Code (CreateUserWithOauth2CodeRequest) returns (ExchangeCredentialsResponse) {}
|
|
39
40
|
rpc GetUser (GetUserRequest) returns (User) {}
|
|
40
41
|
rpc UpdateUser (UpdateUserRequest) returns (UpdateUserResponse) {}
|
|
41
42
|
rpc DeleteUser (DeleteUserRequest) returns (DeleteUserResponse) {}
|
|
@@ -175,6 +176,10 @@ message CreateUserResponse {
|
|
|
175
176
|
string ref = 1;
|
|
176
177
|
}
|
|
177
178
|
|
|
179
|
+
message CreateUserWithOauth2CodeRequest {
|
|
180
|
+
string code = 1;
|
|
181
|
+
}
|
|
182
|
+
|
|
178
183
|
message GetUserRequest {
|
|
179
184
|
string ref = 1;
|
|
180
185
|
}
|
|
@@ -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 { VoiceGender, VoiceLanguage } from "./types";
|
|
2
20
|
declare enum AzureVoice {
|
|
3
21
|
AF_ZA_ADRI_NEURAL = "af-ZA-AdriNeural",
|
package/dist/tts/AzureVoices.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AzureVoiceDetails = exports.AzureVoice = void 0;
|
|
4
|
-
|
|
5
|
-
/*
|
|
4
|
+
/**
|
|
6
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
7
6
|
* http://github.com/fonoster/fonoster
|
|
8
7
|
*
|
|
@@ -15,7 +14,7 @@ exports.AzureVoiceDetails = exports.AzureVoice = void 0;
|
|
|
15
14
|
* https://opensource.org/licenses/MIT
|
|
16
15
|
*
|
|
17
16
|
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS"BASIS,
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
18
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
19
|
* See the License for the specific language governing permissions and
|
|
21
20
|
* limitations under the License.
|
|
@@ -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 { VoiceGender, VoiceLanguage } from "./types";
|
|
2
20
|
declare enum DeepgramVoice {
|
|
3
21
|
AURA_ASTERIA_EN = "aura-asteria-en",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeepgramVoiceDetails = exports.DeepgramVoice = void 0;
|
|
4
|
-
|
|
5
|
-
/*
|
|
4
|
+
/**
|
|
6
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
7
6
|
* http://github.com/fonoster/fonoster
|
|
8
7
|
*
|
|
@@ -15,7 +14,7 @@ exports.DeepgramVoiceDetails = exports.DeepgramVoice = void 0;
|
|
|
15
14
|
* https://opensource.org/licenses/MIT
|
|
16
15
|
*
|
|
17
16
|
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS"BASIS,
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
18
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
19
|
* See the License for the specific language governing permissions and
|
|
21
20
|
* limitations under the License.
|
package/dist/tts/ElevenLabs.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 { VoiceGender, VoiceLanguage } from "./types";
|
|
2
20
|
declare enum ElevenLabsVoice {
|
|
3
21
|
SARAH = "Sarah",
|
package/dist/tts/ElevenLabs.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ElevenLabsVoiceDetails = exports.ElevenLabsVoice = void 0;
|
|
4
|
-
|
|
5
|
-
/*
|
|
4
|
+
/**
|
|
6
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
7
6
|
* http://github.com/fonoster/fonoster
|
|
8
7
|
*
|
|
@@ -15,7 +14,7 @@ exports.ElevenLabsVoiceDetails = exports.ElevenLabsVoice = void 0;
|
|
|
15
14
|
* https://opensource.org/licenses/MIT
|
|
16
15
|
*
|
|
17
16
|
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS"BASIS,
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
18
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
19
|
* See the License for the specific language governing permissions and
|
|
21
20
|
* limitations under the License.
|
|
@@ -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 { VoiceGender, VoiceLanguage } from "./types";
|
|
2
20
|
declare enum GoogleVoice {
|
|
3
21
|
AF_ZA_STANDARD_A = "af-ZA-Standard-A",
|
package/dist/tts/GoogleVoices.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GoogleVoiceDetails = exports.GoogleVoice = void 0;
|
|
4
|
-
|
|
5
|
-
/*
|
|
4
|
+
/**
|
|
6
5
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
7
6
|
* http://github.com/fonoster/fonoster
|
|
8
7
|
*
|
|
@@ -15,7 +14,7 @@ exports.GoogleVoiceDetails = exports.GoogleVoice = void 0;
|
|
|
15
14
|
* https://opensource.org/licenses/MIT
|
|
16
15
|
*
|
|
17
16
|
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
* distributed under the License is distributed on an "AS IS"BASIS,
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
18
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
19
|
* See the License for the specific language governing permissions and
|
|
21
20
|
* limitations under the License.
|
package/dist/tts/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 "./AzureVoices";
|
|
2
20
|
export * from "./DeepgramVoices";
|
|
3
21
|
export * from "./ElevenLabs";
|
package/dist/tts/index.js
CHANGED
|
@@ -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
|
*
|
package/dist/tts/types.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
|
declare enum VoiceLanguage {
|
|
2
20
|
AR = "ar",
|
|
3
21
|
AF = "af",
|
package/dist/tts/types.js
CHANGED
package/dist/types.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
|
type NumberPreconditionsCheck = (request: {
|
|
2
20
|
appRef?: string;
|
|
3
21
|
agentAor?: string;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.assertFileExists = assertFileExists;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
8
|
* Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/fonoster
|
|
10
10
|
*
|