@carbonvoice/cv-mcp-server 1.0.0
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/bootstrap.js +3 -0
- package/dist/carbon-voice.js +20 -0
- package/dist/config/env.js +28 -0
- package/dist/config/index.js +17 -0
- package/dist/constants.js +9 -0
- package/dist/generated/carbon-voice-api/CarbonVoiceSimplifiedAPI.zod.js +1416 -0
- package/dist/generated/carbon-voice-api.js +377 -0
- package/dist/generated/index.js +17 -0
- package/dist/generated/models/AIPrompt.js +2 -0
- package/dist/generated/models/AIPromptControllerGetPromptsOwnerType.js +87 -0
- package/dist/generated/models/AIPromptControllerGetPromptsParams.js +2 -0
- package/dist/generated/models/AIPromptOwnerType.js +87 -0
- package/dist/generated/models/AIPromptResponseFormat.js +86 -0
- package/dist/generated/models/AIPromptWithMessagesResponse.js +2 -0
- package/dist/generated/models/AIPromptWithMessagesResult.js +2 -0
- package/dist/generated/models/AIResponse.js +2 -0
- package/dist/generated/models/AIResponseControllerGetAllResponsesDirection.js +86 -0
- package/dist/generated/models/AIResponseControllerGetAllResponsesParams.js +2 -0
- package/dist/generated/models/AIShareLinkResponse.js +2 -0
- package/dist/generated/models/AddAttachmentsResponse.js +2 -0
- package/dist/generated/models/AddLinkAttachmentPayload.js +80 -0
- package/dist/generated/models/AddMessageToFolderPayload.js +80 -0
- package/dist/generated/models/AllConversationsResponse.js +2 -0
- package/dist/generated/models/App.js +2 -0
- package/dist/generated/models/AppWebhooksAuthenticationHeader.js +80 -0
- package/dist/generated/models/AppWebhooksUrlMode.js +86 -0
- package/dist/generated/models/AsyncConversationStats.js +2 -0
- package/dist/generated/models/Attachment.js +2 -0
- package/dist/generated/models/AttachmentLocation.js +80 -0
- package/dist/generated/models/AttachmentType.js +87 -0
- package/dist/generated/models/AudioModelV2.js +80 -0
- package/dist/generated/models/Conversation.js +2 -0
- package/dist/generated/models/ConversationResponse.js +2 -0
- package/dist/generated/models/ConversationResponseType.js +88 -0
- package/dist/generated/models/ConversationType.js +88 -0
- package/dist/generated/models/ConversationVisibility.js +87 -0
- package/dist/generated/models/CreateAIPrompt.js +2 -0
- package/dist/generated/models/CreateAIPromptOwnerType.js +87 -0
- package/dist/generated/models/CreateAIPromptResponseFormat.js +86 -0
- package/dist/generated/models/CreateAIResponse.js +80 -0
- package/dist/generated/models/CreateConversationMessage.js +2 -0
- package/dist/generated/models/CreateConversationMessageFromMessageType.js +87 -0
- package/dist/generated/models/CreateFolderPayload.js +2 -0
- package/dist/generated/models/CreateFolderPayloadType.js +86 -0
- package/dist/generated/models/CreateShareLinkAIResponse.js +80 -0
- package/dist/generated/models/CreateVoicememoMessage.js +80 -0
- package/dist/generated/models/Folder.js +2 -0
- package/dist/generated/models/FolderType.js +86 -0
- package/dist/generated/models/FolderWithMessages.js +2 -0
- package/dist/generated/models/GetAllRootFoldersParams.js +2 -0
- package/dist/generated/models/GetAllRootFoldersSortBy.js +87 -0
- package/dist/generated/models/GetAllRootFoldersSortDirection.js +86 -0
- package/dist/generated/models/GetAllRootFoldersType.js +86 -0
- package/dist/generated/models/GetByIdDirection.js +85 -0
- package/dist/generated/models/GetByIdParams.js +2 -0
- package/dist/generated/models/GetCountsGroupedByWorkspaceParams.js +2 -0
- package/dist/generated/models/GetCountsGroupedByWorkspaceType.js +86 -0
- package/dist/generated/models/GetFolderByIdDirection.js +86 -0
- package/dist/generated/models/GetFolderByIdParams.js +2 -0
- package/dist/generated/models/GetMessageByIdParams.js +80 -0
- package/dist/generated/models/GetMessageResponse.js +2 -0
- package/dist/generated/models/GetTenRecentAIPromptResponse.js +2 -0
- package/dist/generated/models/GetTenRecentMessagesResponse.js +2 -0
- package/dist/generated/models/GetTenRecentMessagesResponseParams.js +80 -0
- package/dist/generated/models/Label.js +2 -0
- package/dist/generated/models/LabelBehavior.js +87 -0
- package/dist/generated/models/LabelType.js +88 -0
- package/dist/generated/models/Language.js +2 -0
- package/dist/generated/models/ListCountFoldersGroupedByWorkspace.js +2 -0
- package/dist/generated/models/ListFoldersResponse.js +2 -0
- package/dist/generated/models/ListFoldersResponseSortBy.js +87 -0
- package/dist/generated/models/ListFoldersResponseSortDirection.js +86 -0
- package/dist/generated/models/ListFoldersResponseType.js +86 -0
- package/dist/generated/models/ListMessagesFilter.js +2 -0
- package/dist/generated/models/ListMessagesFilterType.js +89 -0
- package/dist/generated/models/ListMessagesParams.js +2 -0
- package/dist/generated/models/ListMessagesResponse.js +2 -0
- package/dist/generated/models/ListMessagesResponseSortDirection.js +86 -0
- package/dist/generated/models/ListMessagesSortDirection.js +86 -0
- package/dist/generated/models/ListMessagesType.js +89 -0
- package/dist/generated/models/Message.js +2 -0
- package/dist/generated/models/MessageStatus.js +95 -0
- package/dist/generated/models/MessageType.js +89 -0
- package/dist/generated/models/MessageV2.js +2 -0
- package/dist/generated/models/MessageV2AudioDelivery.js +86 -0
- package/dist/generated/models/MessageV2Status.js +95 -0
- package/dist/generated/models/MessageV2Type.js +89 -0
- package/dist/generated/models/MessageV2UsersCaughtUp.js +87 -0
- package/dist/generated/models/MessageV2UtmData.js +2 -0
- package/dist/generated/models/MoveFolderPayload.js +80 -0
- package/dist/generated/models/PromptResponse.js +2 -0
- package/dist/generated/models/ReactionSummary.js +2 -0
- package/dist/generated/models/ReactionSummaryReactionCounts.js +80 -0
- package/dist/generated/models/ResponseByLanguage.js +2 -0
- package/dist/generated/models/ResponseByLanguageJson.js +80 -0
- package/dist/generated/models/SearchUserParams.js +80 -0
- package/dist/generated/models/SearchUsersBody.js +80 -0
- package/dist/generated/models/SendDirectMessage.js +2 -0
- package/dist/generated/models/SendDirectMessageFromMessageType.js +87 -0
- package/dist/generated/models/SimplifiedAIPrompt.js +80 -0
- package/dist/generated/models/Stats.js +80 -0
- package/dist/generated/models/SubFolder.js +2 -0
- package/dist/generated/models/SubFolderType.js +86 -0
- package/dist/generated/models/SubscribeUserPayload.js +2 -0
- package/dist/generated/models/SubscribeUserPayloadSubscriptionsItem.js +116 -0
- package/dist/generated/models/SubscribedUser.js +2 -0
- package/dist/generated/models/SubscribedUserSubscriptionsItem.js +116 -0
- package/dist/generated/models/SubscriptionAction.js +2 -0
- package/dist/generated/models/SubscriptionActionActionId.js +85 -0
- package/dist/generated/models/SubscriptionActionEntityType.js +85 -0
- package/dist/generated/models/SubscriptionFilter.js +2 -0
- package/dist/generated/models/SubscriptionFilterOperator.js +87 -0
- package/dist/generated/models/SubscriptionFilterValue.js +80 -0
- package/dist/generated/models/TextModel.js +2 -0
- package/dist/generated/models/TextModelType.js +89 -0
- package/dist/generated/models/TimedText.js +80 -0
- package/dist/generated/models/ToRecipient.js +80 -0
- package/dist/generated/models/UpdateFolderNamePayload.js +80 -0
- package/dist/generated/models/User.js +80 -0
- package/dist/generated/models/UserReaction.js +80 -0
- package/dist/generated/models/UserStats.js +80 -0
- package/dist/generated/models/UsersNotAllowedReceiveNotifications.js +80 -0
- package/dist/generated/models/UsersNotAllowedReceiveNotificationsV2.js +80 -0
- package/dist/generated/models/UtmData.js +80 -0
- package/dist/generated/models/Voice.js +2 -0
- package/dist/generated/models/VoiceGender.js +86 -0
- package/dist/generated/models/VoiceQuality.js +87 -0
- package/dist/generated/models/VoiceType.js +88 -0
- package/dist/generated/models/WorkspaceBasicInfo.js +80 -0
- package/dist/generated/models/index.js +215 -0
- package/dist/index-v1.js +80 -0
- package/dist/interfaces/folder.interface.js +2 -0
- package/dist/interfaces/get-by-id.interface.js +2 -0
- package/dist/interfaces/index.js +20 -0
- package/dist/interfaces/mcp-tool-response.interface.js +2 -0
- package/dist/interfaces/message.interface.js +2 -0
- package/dist/schemas/index.js +17 -0
- package/dist/schemas/message.js +10 -0
- package/dist/server-delete.js +624 -0
- package/dist/server-test.js +93 -0
- package/dist/server.js +365 -0
- package/dist/sse.js +134 -0
- package/dist/sse.v2.js +29 -0
- package/dist/stdio.js +39 -0
- package/dist/utils/axios-instance.js +234 -0
- package/dist/utils/errors.js +22 -0
- package/dist/utils/format-to-mcp-tool-response.js +40 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/logger.js +111 -0
- package/dist/utils/zod-schema-transformer.js +66 -0
- package/dist/utils/zod-transformer.js +24 -0
- package/package.json +66 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v7.9.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Carbon Voice Simplified API
|
|
6
|
+
* # Introduction
|
|
7
|
+
|
|
8
|
+
The simplified version of the Carbon Voice API is designed to enhance usability for third-party clients looking to
|
|
9
|
+
seamlessly integrate with our application. By streamlining authentication methods, providing clear error handling guidelines,
|
|
10
|
+
and implementing straightforward rate limiting policies, we ensure that developers can quickly and efficiently connect to our services.
|
|
11
|
+
This user-friendly approach minimizes complexity, making it easier for external applications to leverage the powerful communication
|
|
12
|
+
features of Carbon Voice without extensive technical overhead.
|
|
13
|
+
|
|
14
|
+
This API is designed for people who feel comfortable integrating with RESTful APIs.
|
|
15
|
+
|
|
16
|
+
## Full API Version
|
|
17
|
+
We also have a full version of the API. You can find it [here](/docs).
|
|
18
|
+
|
|
19
|
+
## Terminology
|
|
20
|
+
|
|
21
|
+
* **Workspace**: An area that groups together people and Conversations.
|
|
22
|
+
* **Conversation**: A channel of communication. A grouping of people and messages related to a given topic.
|
|
23
|
+
* **Collaborators**: A group of people who are part of a Conversation.
|
|
24
|
+
* **Discussion**: Any post into a conversation
|
|
25
|
+
* **CarbonLink**: A link (on a website, QR code, or phone call) to start a conversation.
|
|
26
|
+
|
|
27
|
+
## BaseURL
|
|
28
|
+
|
|
29
|
+
This API is served over HTTPS.
|
|
30
|
+
|
|
31
|
+
All URLs referenced in the documentation have the following base: https://api.carbonvoice.app/api/simplified.
|
|
32
|
+
|
|
33
|
+
## Authentication
|
|
34
|
+
|
|
35
|
+
There are three ways to authenticate with this API:
|
|
36
|
+
|
|
37
|
+
* with an OAuth2 Access Token in the Authorization request header field
|
|
38
|
+
(which uses the Bearer authentication scheme to transmit the Access Token)
|
|
39
|
+
* with your Client ID and Client Secret credentials
|
|
40
|
+
* with a PXToken
|
|
41
|
+
|
|
42
|
+
Each endpoint supports only one option.
|
|
43
|
+
|
|
44
|
+
<SecurityDefinitions />
|
|
45
|
+
|
|
46
|
+
## Errors
|
|
47
|
+
|
|
48
|
+
When an error occurs, you will receive an error object. Most of these error objects
|
|
49
|
+
contain an error code and an error description so that your applications can more
|
|
50
|
+
efficiently identify the problem.
|
|
51
|
+
|
|
52
|
+
If you get an 4xx HTTP response code, then you can assume that there is a bad request
|
|
53
|
+
from your end. In this case, check the [Error Responses section](#section/Introduction/Error-Responses) for more context.
|
|
54
|
+
|
|
55
|
+
5xx errors suggest a problem on our end, so in this case, check [Carbon Voice's Status](https://status.carbonvoice.app)
|
|
56
|
+
to see how our systems are doing.
|
|
57
|
+
|
|
58
|
+
In any other case you can use our support options.
|
|
59
|
+
|
|
60
|
+
## Error Responses
|
|
61
|
+
|
|
62
|
+
`{ "success": false, requestId: "uuid", errmsg: "error message"`
|
|
63
|
+
|
|
64
|
+
## Rate-Limiting
|
|
65
|
+
|
|
66
|
+
This API is subject to rate limiting. The limits differ per endpoint.
|
|
67
|
+
|
|
68
|
+
If you exceed the provided rate limit for a given endpoint, you will receive the 429
|
|
69
|
+
Too Many Requests response with the following message: Too many requests. Check the
|
|
70
|
+
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
|
|
71
|
+
|
|
72
|
+
For details on rate limiting, refer to Rate Limit Policy.
|
|
73
|
+
|
|
74
|
+
## Support
|
|
75
|
+
|
|
76
|
+
If you have problems or need help with your case, you can always reach out to our Support.
|
|
77
|
+
|
|
78
|
+
* OpenAPI spec version: 1.0.0
|
|
79
|
+
*/
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v7.9.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Carbon Voice Simplified API
|
|
6
|
+
* # Introduction
|
|
7
|
+
|
|
8
|
+
The simplified version of the Carbon Voice API is designed to enhance usability for third-party clients looking to
|
|
9
|
+
seamlessly integrate with our application. By streamlining authentication methods, providing clear error handling guidelines,
|
|
10
|
+
and implementing straightforward rate limiting policies, we ensure that developers can quickly and efficiently connect to our services.
|
|
11
|
+
This user-friendly approach minimizes complexity, making it easier for external applications to leverage the powerful communication
|
|
12
|
+
features of Carbon Voice without extensive technical overhead.
|
|
13
|
+
|
|
14
|
+
This API is designed for people who feel comfortable integrating with RESTful APIs.
|
|
15
|
+
|
|
16
|
+
## Full API Version
|
|
17
|
+
We also have a full version of the API. You can find it [here](/docs).
|
|
18
|
+
|
|
19
|
+
## Terminology
|
|
20
|
+
|
|
21
|
+
* **Workspace**: An area that groups together people and Conversations.
|
|
22
|
+
* **Conversation**: A channel of communication. A grouping of people and messages related to a given topic.
|
|
23
|
+
* **Collaborators**: A group of people who are part of a Conversation.
|
|
24
|
+
* **Discussion**: Any post into a conversation
|
|
25
|
+
* **CarbonLink**: A link (on a website, QR code, or phone call) to start a conversation.
|
|
26
|
+
|
|
27
|
+
## BaseURL
|
|
28
|
+
|
|
29
|
+
This API is served over HTTPS.
|
|
30
|
+
|
|
31
|
+
All URLs referenced in the documentation have the following base: https://api.carbonvoice.app/api/simplified.
|
|
32
|
+
|
|
33
|
+
## Authentication
|
|
34
|
+
|
|
35
|
+
There are three ways to authenticate with this API:
|
|
36
|
+
|
|
37
|
+
* with an OAuth2 Access Token in the Authorization request header field
|
|
38
|
+
(which uses the Bearer authentication scheme to transmit the Access Token)
|
|
39
|
+
* with your Client ID and Client Secret credentials
|
|
40
|
+
* with a PXToken
|
|
41
|
+
|
|
42
|
+
Each endpoint supports only one option.
|
|
43
|
+
|
|
44
|
+
<SecurityDefinitions />
|
|
45
|
+
|
|
46
|
+
## Errors
|
|
47
|
+
|
|
48
|
+
When an error occurs, you will receive an error object. Most of these error objects
|
|
49
|
+
contain an error code and an error description so that your applications can more
|
|
50
|
+
efficiently identify the problem.
|
|
51
|
+
|
|
52
|
+
If you get an 4xx HTTP response code, then you can assume that there is a bad request
|
|
53
|
+
from your end. In this case, check the [Error Responses section](#section/Introduction/Error-Responses) for more context.
|
|
54
|
+
|
|
55
|
+
5xx errors suggest a problem on our end, so in this case, check [Carbon Voice's Status](https://status.carbonvoice.app)
|
|
56
|
+
to see how our systems are doing.
|
|
57
|
+
|
|
58
|
+
In any other case you can use our support options.
|
|
59
|
+
|
|
60
|
+
## Error Responses
|
|
61
|
+
|
|
62
|
+
`{ "success": false, requestId: "uuid", errmsg: "error message"`
|
|
63
|
+
|
|
64
|
+
## Rate-Limiting
|
|
65
|
+
|
|
66
|
+
This API is subject to rate limiting. The limits differ per endpoint.
|
|
67
|
+
|
|
68
|
+
If you exceed the provided rate limit for a given endpoint, you will receive the 429
|
|
69
|
+
Too Many Requests response with the following message: Too many requests. Check the
|
|
70
|
+
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
|
|
71
|
+
|
|
72
|
+
For details on rate limiting, refer to Rate Limit Policy.
|
|
73
|
+
|
|
74
|
+
## Support
|
|
75
|
+
|
|
76
|
+
If you have problems or need help with your case, you can always reach out to our Support.
|
|
77
|
+
|
|
78
|
+
* OpenAPI spec version: 1.0.0
|
|
79
|
+
*/
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v7.9.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Carbon Voice Simplified API
|
|
6
|
+
* # Introduction
|
|
7
|
+
|
|
8
|
+
The simplified version of the Carbon Voice API is designed to enhance usability for third-party clients looking to
|
|
9
|
+
seamlessly integrate with our application. By streamlining authentication methods, providing clear error handling guidelines,
|
|
10
|
+
and implementing straightforward rate limiting policies, we ensure that developers can quickly and efficiently connect to our services.
|
|
11
|
+
This user-friendly approach minimizes complexity, making it easier for external applications to leverage the powerful communication
|
|
12
|
+
features of Carbon Voice without extensive technical overhead.
|
|
13
|
+
|
|
14
|
+
This API is designed for people who feel comfortable integrating with RESTful APIs.
|
|
15
|
+
|
|
16
|
+
## Full API Version
|
|
17
|
+
We also have a full version of the API. You can find it [here](/docs).
|
|
18
|
+
|
|
19
|
+
## Terminology
|
|
20
|
+
|
|
21
|
+
* **Workspace**: An area that groups together people and Conversations.
|
|
22
|
+
* **Conversation**: A channel of communication. A grouping of people and messages related to a given topic.
|
|
23
|
+
* **Collaborators**: A group of people who are part of a Conversation.
|
|
24
|
+
* **Discussion**: Any post into a conversation
|
|
25
|
+
* **CarbonLink**: A link (on a website, QR code, or phone call) to start a conversation.
|
|
26
|
+
|
|
27
|
+
## BaseURL
|
|
28
|
+
|
|
29
|
+
This API is served over HTTPS.
|
|
30
|
+
|
|
31
|
+
All URLs referenced in the documentation have the following base: https://api.carbonvoice.app/api/simplified.
|
|
32
|
+
|
|
33
|
+
## Authentication
|
|
34
|
+
|
|
35
|
+
There are three ways to authenticate with this API:
|
|
36
|
+
|
|
37
|
+
* with an OAuth2 Access Token in the Authorization request header field
|
|
38
|
+
(which uses the Bearer authentication scheme to transmit the Access Token)
|
|
39
|
+
* with your Client ID and Client Secret credentials
|
|
40
|
+
* with a PXToken
|
|
41
|
+
|
|
42
|
+
Each endpoint supports only one option.
|
|
43
|
+
|
|
44
|
+
<SecurityDefinitions />
|
|
45
|
+
|
|
46
|
+
## Errors
|
|
47
|
+
|
|
48
|
+
When an error occurs, you will receive an error object. Most of these error objects
|
|
49
|
+
contain an error code and an error description so that your applications can more
|
|
50
|
+
efficiently identify the problem.
|
|
51
|
+
|
|
52
|
+
If you get an 4xx HTTP response code, then you can assume that there is a bad request
|
|
53
|
+
from your end. In this case, check the [Error Responses section](#section/Introduction/Error-Responses) for more context.
|
|
54
|
+
|
|
55
|
+
5xx errors suggest a problem on our end, so in this case, check [Carbon Voice's Status](https://status.carbonvoice.app)
|
|
56
|
+
to see how our systems are doing.
|
|
57
|
+
|
|
58
|
+
In any other case you can use our support options.
|
|
59
|
+
|
|
60
|
+
## Error Responses
|
|
61
|
+
|
|
62
|
+
`{ "success": false, requestId: "uuid", errmsg: "error message"`
|
|
63
|
+
|
|
64
|
+
## Rate-Limiting
|
|
65
|
+
|
|
66
|
+
This API is subject to rate limiting. The limits differ per endpoint.
|
|
67
|
+
|
|
68
|
+
If you exceed the provided rate limit for a given endpoint, you will receive the 429
|
|
69
|
+
Too Many Requests response with the following message: Too many requests. Check the
|
|
70
|
+
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
|
|
71
|
+
|
|
72
|
+
For details on rate limiting, refer to Rate Limit Policy.
|
|
73
|
+
|
|
74
|
+
## Support
|
|
75
|
+
|
|
76
|
+
If you have problems or need help with your case, you can always reach out to our Support.
|
|
77
|
+
|
|
78
|
+
* OpenAPI spec version: 1.0.0
|
|
79
|
+
*/
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.VoiceGender = void 0;
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
83
|
+
exports.VoiceGender = {
|
|
84
|
+
F: 'F',
|
|
85
|
+
M: 'M',
|
|
86
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v7.9.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Carbon Voice Simplified API
|
|
6
|
+
* # Introduction
|
|
7
|
+
|
|
8
|
+
The simplified version of the Carbon Voice API is designed to enhance usability for third-party clients looking to
|
|
9
|
+
seamlessly integrate with our application. By streamlining authentication methods, providing clear error handling guidelines,
|
|
10
|
+
and implementing straightforward rate limiting policies, we ensure that developers can quickly and efficiently connect to our services.
|
|
11
|
+
This user-friendly approach minimizes complexity, making it easier for external applications to leverage the powerful communication
|
|
12
|
+
features of Carbon Voice without extensive technical overhead.
|
|
13
|
+
|
|
14
|
+
This API is designed for people who feel comfortable integrating with RESTful APIs.
|
|
15
|
+
|
|
16
|
+
## Full API Version
|
|
17
|
+
We also have a full version of the API. You can find it [here](/docs).
|
|
18
|
+
|
|
19
|
+
## Terminology
|
|
20
|
+
|
|
21
|
+
* **Workspace**: An area that groups together people and Conversations.
|
|
22
|
+
* **Conversation**: A channel of communication. A grouping of people and messages related to a given topic.
|
|
23
|
+
* **Collaborators**: A group of people who are part of a Conversation.
|
|
24
|
+
* **Discussion**: Any post into a conversation
|
|
25
|
+
* **CarbonLink**: A link (on a website, QR code, or phone call) to start a conversation.
|
|
26
|
+
|
|
27
|
+
## BaseURL
|
|
28
|
+
|
|
29
|
+
This API is served over HTTPS.
|
|
30
|
+
|
|
31
|
+
All URLs referenced in the documentation have the following base: https://api.carbonvoice.app/api/simplified.
|
|
32
|
+
|
|
33
|
+
## Authentication
|
|
34
|
+
|
|
35
|
+
There are three ways to authenticate with this API:
|
|
36
|
+
|
|
37
|
+
* with an OAuth2 Access Token in the Authorization request header field
|
|
38
|
+
(which uses the Bearer authentication scheme to transmit the Access Token)
|
|
39
|
+
* with your Client ID and Client Secret credentials
|
|
40
|
+
* with a PXToken
|
|
41
|
+
|
|
42
|
+
Each endpoint supports only one option.
|
|
43
|
+
|
|
44
|
+
<SecurityDefinitions />
|
|
45
|
+
|
|
46
|
+
## Errors
|
|
47
|
+
|
|
48
|
+
When an error occurs, you will receive an error object. Most of these error objects
|
|
49
|
+
contain an error code and an error description so that your applications can more
|
|
50
|
+
efficiently identify the problem.
|
|
51
|
+
|
|
52
|
+
If you get an 4xx HTTP response code, then you can assume that there is a bad request
|
|
53
|
+
from your end. In this case, check the [Error Responses section](#section/Introduction/Error-Responses) for more context.
|
|
54
|
+
|
|
55
|
+
5xx errors suggest a problem on our end, so in this case, check [Carbon Voice's Status](https://status.carbonvoice.app)
|
|
56
|
+
to see how our systems are doing.
|
|
57
|
+
|
|
58
|
+
In any other case you can use our support options.
|
|
59
|
+
|
|
60
|
+
## Error Responses
|
|
61
|
+
|
|
62
|
+
`{ "success": false, requestId: "uuid", errmsg: "error message"`
|
|
63
|
+
|
|
64
|
+
## Rate-Limiting
|
|
65
|
+
|
|
66
|
+
This API is subject to rate limiting. The limits differ per endpoint.
|
|
67
|
+
|
|
68
|
+
If you exceed the provided rate limit for a given endpoint, you will receive the 429
|
|
69
|
+
Too Many Requests response with the following message: Too many requests. Check the
|
|
70
|
+
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
|
|
71
|
+
|
|
72
|
+
For details on rate limiting, refer to Rate Limit Policy.
|
|
73
|
+
|
|
74
|
+
## Support
|
|
75
|
+
|
|
76
|
+
If you have problems or need help with your case, you can always reach out to our Support.
|
|
77
|
+
|
|
78
|
+
* OpenAPI spec version: 1.0.0
|
|
79
|
+
*/
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.VoiceQuality = void 0;
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
83
|
+
exports.VoiceQuality = {
|
|
84
|
+
high: 'high',
|
|
85
|
+
medium: 'medium',
|
|
86
|
+
low: 'low',
|
|
87
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v7.9.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Carbon Voice Simplified API
|
|
6
|
+
* # Introduction
|
|
7
|
+
|
|
8
|
+
The simplified version of the Carbon Voice API is designed to enhance usability for third-party clients looking to
|
|
9
|
+
seamlessly integrate with our application. By streamlining authentication methods, providing clear error handling guidelines,
|
|
10
|
+
and implementing straightforward rate limiting policies, we ensure that developers can quickly and efficiently connect to our services.
|
|
11
|
+
This user-friendly approach minimizes complexity, making it easier for external applications to leverage the powerful communication
|
|
12
|
+
features of Carbon Voice without extensive technical overhead.
|
|
13
|
+
|
|
14
|
+
This API is designed for people who feel comfortable integrating with RESTful APIs.
|
|
15
|
+
|
|
16
|
+
## Full API Version
|
|
17
|
+
We also have a full version of the API. You can find it [here](/docs).
|
|
18
|
+
|
|
19
|
+
## Terminology
|
|
20
|
+
|
|
21
|
+
* **Workspace**: An area that groups together people and Conversations.
|
|
22
|
+
* **Conversation**: A channel of communication. A grouping of people and messages related to a given topic.
|
|
23
|
+
* **Collaborators**: A group of people who are part of a Conversation.
|
|
24
|
+
* **Discussion**: Any post into a conversation
|
|
25
|
+
* **CarbonLink**: A link (on a website, QR code, or phone call) to start a conversation.
|
|
26
|
+
|
|
27
|
+
## BaseURL
|
|
28
|
+
|
|
29
|
+
This API is served over HTTPS.
|
|
30
|
+
|
|
31
|
+
All URLs referenced in the documentation have the following base: https://api.carbonvoice.app/api/simplified.
|
|
32
|
+
|
|
33
|
+
## Authentication
|
|
34
|
+
|
|
35
|
+
There are three ways to authenticate with this API:
|
|
36
|
+
|
|
37
|
+
* with an OAuth2 Access Token in the Authorization request header field
|
|
38
|
+
(which uses the Bearer authentication scheme to transmit the Access Token)
|
|
39
|
+
* with your Client ID and Client Secret credentials
|
|
40
|
+
* with a PXToken
|
|
41
|
+
|
|
42
|
+
Each endpoint supports only one option.
|
|
43
|
+
|
|
44
|
+
<SecurityDefinitions />
|
|
45
|
+
|
|
46
|
+
## Errors
|
|
47
|
+
|
|
48
|
+
When an error occurs, you will receive an error object. Most of these error objects
|
|
49
|
+
contain an error code and an error description so that your applications can more
|
|
50
|
+
efficiently identify the problem.
|
|
51
|
+
|
|
52
|
+
If you get an 4xx HTTP response code, then you can assume that there is a bad request
|
|
53
|
+
from your end. In this case, check the [Error Responses section](#section/Introduction/Error-Responses) for more context.
|
|
54
|
+
|
|
55
|
+
5xx errors suggest a problem on our end, so in this case, check [Carbon Voice's Status](https://status.carbonvoice.app)
|
|
56
|
+
to see how our systems are doing.
|
|
57
|
+
|
|
58
|
+
In any other case you can use our support options.
|
|
59
|
+
|
|
60
|
+
## Error Responses
|
|
61
|
+
|
|
62
|
+
`{ "success": false, requestId: "uuid", errmsg: "error message"`
|
|
63
|
+
|
|
64
|
+
## Rate-Limiting
|
|
65
|
+
|
|
66
|
+
This API is subject to rate limiting. The limits differ per endpoint.
|
|
67
|
+
|
|
68
|
+
If you exceed the provided rate limit for a given endpoint, you will receive the 429
|
|
69
|
+
Too Many Requests response with the following message: Too many requests. Check the
|
|
70
|
+
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
|
|
71
|
+
|
|
72
|
+
For details on rate limiting, refer to Rate Limit Policy.
|
|
73
|
+
|
|
74
|
+
## Support
|
|
75
|
+
|
|
76
|
+
If you have problems or need help with your case, you can always reach out to our Support.
|
|
77
|
+
|
|
78
|
+
* OpenAPI spec version: 1.0.0
|
|
79
|
+
*/
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.VoiceType = void 0;
|
|
82
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
83
|
+
exports.VoiceType = {
|
|
84
|
+
polly: 'polly',
|
|
85
|
+
elevenlabs: 'elevenlabs',
|
|
86
|
+
google: 'google',
|
|
87
|
+
openai: 'openai',
|
|
88
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v7.9.0 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Carbon Voice Simplified API
|
|
6
|
+
* # Introduction
|
|
7
|
+
|
|
8
|
+
The simplified version of the Carbon Voice API is designed to enhance usability for third-party clients looking to
|
|
9
|
+
seamlessly integrate with our application. By streamlining authentication methods, providing clear error handling guidelines,
|
|
10
|
+
and implementing straightforward rate limiting policies, we ensure that developers can quickly and efficiently connect to our services.
|
|
11
|
+
This user-friendly approach minimizes complexity, making it easier for external applications to leverage the powerful communication
|
|
12
|
+
features of Carbon Voice without extensive technical overhead.
|
|
13
|
+
|
|
14
|
+
This API is designed for people who feel comfortable integrating with RESTful APIs.
|
|
15
|
+
|
|
16
|
+
## Full API Version
|
|
17
|
+
We also have a full version of the API. You can find it [here](/docs).
|
|
18
|
+
|
|
19
|
+
## Terminology
|
|
20
|
+
|
|
21
|
+
* **Workspace**: An area that groups together people and Conversations.
|
|
22
|
+
* **Conversation**: A channel of communication. A grouping of people and messages related to a given topic.
|
|
23
|
+
* **Collaborators**: A group of people who are part of a Conversation.
|
|
24
|
+
* **Discussion**: Any post into a conversation
|
|
25
|
+
* **CarbonLink**: A link (on a website, QR code, or phone call) to start a conversation.
|
|
26
|
+
|
|
27
|
+
## BaseURL
|
|
28
|
+
|
|
29
|
+
This API is served over HTTPS.
|
|
30
|
+
|
|
31
|
+
All URLs referenced in the documentation have the following base: https://api.carbonvoice.app/api/simplified.
|
|
32
|
+
|
|
33
|
+
## Authentication
|
|
34
|
+
|
|
35
|
+
There are three ways to authenticate with this API:
|
|
36
|
+
|
|
37
|
+
* with an OAuth2 Access Token in the Authorization request header field
|
|
38
|
+
(which uses the Bearer authentication scheme to transmit the Access Token)
|
|
39
|
+
* with your Client ID and Client Secret credentials
|
|
40
|
+
* with a PXToken
|
|
41
|
+
|
|
42
|
+
Each endpoint supports only one option.
|
|
43
|
+
|
|
44
|
+
<SecurityDefinitions />
|
|
45
|
+
|
|
46
|
+
## Errors
|
|
47
|
+
|
|
48
|
+
When an error occurs, you will receive an error object. Most of these error objects
|
|
49
|
+
contain an error code and an error description so that your applications can more
|
|
50
|
+
efficiently identify the problem.
|
|
51
|
+
|
|
52
|
+
If you get an 4xx HTTP response code, then you can assume that there is a bad request
|
|
53
|
+
from your end. In this case, check the [Error Responses section](#section/Introduction/Error-Responses) for more context.
|
|
54
|
+
|
|
55
|
+
5xx errors suggest a problem on our end, so in this case, check [Carbon Voice's Status](https://status.carbonvoice.app)
|
|
56
|
+
to see how our systems are doing.
|
|
57
|
+
|
|
58
|
+
In any other case you can use our support options.
|
|
59
|
+
|
|
60
|
+
## Error Responses
|
|
61
|
+
|
|
62
|
+
`{ "success": false, requestId: "uuid", errmsg: "error message"`
|
|
63
|
+
|
|
64
|
+
## Rate-Limiting
|
|
65
|
+
|
|
66
|
+
This API is subject to rate limiting. The limits differ per endpoint.
|
|
67
|
+
|
|
68
|
+
If you exceed the provided rate limit for a given endpoint, you will receive the 429
|
|
69
|
+
Too Many Requests response with the following message: Too many requests. Check the
|
|
70
|
+
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
|
|
71
|
+
|
|
72
|
+
For details on rate limiting, refer to Rate Limit Policy.
|
|
73
|
+
|
|
74
|
+
## Support
|
|
75
|
+
|
|
76
|
+
If you have problems or need help with your case, you can always reach out to our Support.
|
|
77
|
+
|
|
78
|
+
* OpenAPI spec version: 1.0.0
|
|
79
|
+
*/
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|