mavenagi 1.2.60 → 1.2.61
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/BaseClient.d.ts +12 -0
- package/BaseClient.js +5 -3
- package/Client.d.ts +3 -0
- package/Client.js +33 -28
- package/api/resources/actions/client/Client.d.ts +10 -0
- package/api/resources/actions/client/Client.js +14 -3
- package/api/resources/agents/client/Client.d.ts +12 -0
- package/api/resources/agents/client/Client.js +16 -3
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +3 -3
- package/api/resources/agents/types/AgentPrompting.d.ts +3 -3
- package/api/resources/analytics/client/Client.d.ts +14 -0
- package/api/resources/analytics/client/Client.js +22 -7
- package/api/resources/analytics/types/ConversationMedian.d.ts +4 -0
- package/api/resources/analytics/types/ConversationPercentile.d.ts +4 -0
- package/api/resources/analytics/types/RowBase.d.ts +5 -1
- package/api/resources/analytics/types/Series.d.ts +4 -1
- package/api/resources/analytics/types/TimeSeries.d.ts +5 -1
- package/api/resources/appDirectory/client/Client.d.ts +12 -0
- package/api/resources/appDirectory/client/Client.js +16 -3
- package/api/resources/appSettings/client/Client.d.ts +6 -0
- package/api/resources/appSettings/client/Client.js +8 -1
- package/api/resources/assets/client/Client.d.ts +4 -0
- package/api/resources/assets/client/Client.js +7 -2
- package/api/resources/charters/client/Client.d.ts +245 -0
- package/api/resources/charters/client/Client.js +884 -0
- package/api/resources/charters/client/index.d.ts +1 -0
- package/api/resources/charters/client/index.js +17 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.d.ts +20 -0
- package/api/resources/charters/client/requests/CharterDeleteRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetAncestorsRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterGetRequest.d.ts +8 -0
- package/api/resources/charters/client/requests/CharterGetRequest.js +3 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.d.ts +67 -0
- package/api/resources/charters/client/requests/CharterPatchRequest.js +3 -0
- package/api/resources/charters/client/requests/index.d.ts +4 -0
- package/api/resources/charters/client/requests/index.js +2 -0
- package/api/resources/charters/exports.d.ts +2 -0
- package/api/resources/charters/exports.js +21 -0
- package/api/resources/charters/index.d.ts +1 -0
- package/api/resources/charters/index.js +1 -0
- package/api/resources/charters/types/CharterAncestorsResponse.d.ts +8 -0
- package/api/resources/charters/types/CharterAncestorsResponse.js +3 -0
- package/api/resources/charters/types/CharterBase.d.ts +14 -0
- package/api/resources/charters/types/CharterBase.js +3 -0
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.d.ts +1 -1
- package/api/resources/charters/types/CharterChildrenExclusionPolicy.js +1 -1
- package/api/resources/charters/types/CharterChildrenGroup.d.ts +18 -0
- package/api/resources/charters/types/CharterChildrenGroup.js +3 -0
- package/api/resources/charters/types/CharterContent.d.ts +60 -0
- package/api/resources/charters/types/CharterContent.js +3 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.d.ts +16 -0
- package/api/resources/charters/types/CharterKnowledgeBaseReference.js +3 -0
- package/api/resources/charters/types/CharterListChildrenRequest.d.ts +18 -0
- package/api/resources/charters/types/CharterListChildrenRequest.js +3 -0
- package/api/resources/charters/types/CharterListChildrenResponse.d.ts +55 -0
- package/api/resources/charters/types/CharterListChildrenResponse.js +3 -0
- package/api/resources/charters/types/CharterPatchReferences.d.ts +22 -0
- package/api/resources/charters/types/CharterPatchReferences.js +3 -0
- package/api/resources/charters/types/CharterReferences.d.ts +21 -0
- package/api/resources/charters/types/CharterReferences.js +3 -0
- package/api/resources/charters/types/CharterRequest.d.ts +36 -0
- package/api/resources/charters/types/CharterRequest.js +3 -0
- package/api/resources/charters/types/CharterResponse.d.ts +66 -0
- package/api/resources/charters/types/CharterResponse.js +3 -0
- package/api/resources/charters/types/CharterSearchField.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchField.js +8 -0
- package/api/resources/charters/types/CharterSearchFilter.d.ts +15 -0
- package/api/resources/charters/types/CharterSearchFilter.js +3 -0
- package/api/resources/charters/types/CharterSearchRequest.d.ts +5 -0
- package/api/resources/charters/types/CharterSearchRequest.js +3 -0
- package/api/resources/charters/types/CharterSearchResponse.d.ts +36 -0
- package/api/resources/charters/types/CharterSearchResponse.js +3 -0
- package/api/resources/charters/types/CharterStatus.d.ts +2 -2
- package/api/resources/charters/types/CharterStatus.js +2 -2
- package/api/resources/charters/types/CharterSummary.d.ts +1 -9
- package/api/resources/charters/types/CharterType.d.ts +4 -4
- package/api/resources/charters/types/CharterType.js +4 -4
- package/api/resources/charters/types/index.d.ts +15 -0
- package/api/resources/charters/types/index.js +15 -0
- package/api/resources/commons/errors/BadRequestError.d.ts +1 -0
- package/api/resources/commons/errors/BadRequestError.js +1 -1
- package/api/resources/commons/errors/NotFoundError.d.ts +1 -0
- package/api/resources/commons/errors/NotFoundError.js +1 -1
- package/api/resources/commons/errors/PayloadTooLargeError.d.ts +1 -0
- package/api/resources/commons/errors/PayloadTooLargeError.js +1 -1
- package/api/resources/commons/errors/ServerError.d.ts +1 -0
- package/api/resources/commons/errors/ServerError.js +1 -1
- package/api/resources/commons/errors/TooManyRequestsError.d.ts +1 -0
- package/api/resources/commons/errors/TooManyRequestsError.js +1 -1
- package/api/resources/commons/types/AskType.d.ts +2 -2
- package/api/resources/commons/types/AskType.js +2 -2
- package/api/resources/commons/types/BotObjectResponse.d.ts +1 -1
- package/api/resources/commons/types/ConversationRound.d.ts +1 -1
- package/api/resources/commons/types/ConversationRound.js +1 -1
- package/api/resources/commons/types/IntelligentFieldPrecondition.d.ts +0 -4
- package/api/resources/commons/types/LlmPersona.d.ts +1 -1
- package/api/resources/commons/types/LlmPersona.js +1 -1
- package/api/resources/commons/types/MetadataComparisonCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataComparisonCondition.js +3 -0
- package/api/resources/commons/types/MetadataComparisonOperator.d.ts +22 -0
- package/api/resources/commons/types/MetadataComparisonOperator.js +25 -0
- package/api/resources/commons/types/MetadataCondition.d.ts +21 -0
- package/api/resources/commons/types/MetadataCondition.js +3 -0
- package/api/resources/commons/types/MetadataEntryCondition.d.ts +10 -0
- package/api/resources/commons/types/MetadataEntryCondition.js +3 -0
- package/api/resources/commons/types/MetadataFilter.d.ts +41 -0
- package/api/resources/commons/types/MetadataFilter.js +3 -0
- package/api/resources/commons/types/MetadataFilterGroup.d.ts +14 -0
- package/api/resources/commons/types/MetadataFilterGroup.js +3 -0
- package/api/resources/commons/types/SimulationContext.d.ts +2 -2
- package/api/resources/commons/types/SystemEventName.d.ts +3 -0
- package/api/resources/commons/types/SystemEventName.js +3 -0
- package/api/resources/commons/types/index.d.ts +6 -0
- package/api/resources/commons/types/index.js +6 -0
- package/api/resources/conversation/client/Client.d.ts +32 -0
- package/api/resources/conversation/client/Client.js +48 -17
- package/api/resources/conversation/types/AskRequest.d.ts +10 -10
- package/api/resources/conversation/types/ConversationFilter.d.ts +6 -1
- package/api/resources/customers/client/Client.d.ts +8 -0
- package/api/resources/customers/client/Client.js +12 -3
- package/api/resources/events/client/Client.d.ts +8 -0
- package/api/resources/events/client/Client.js +12 -3
- package/api/resources/inbox/client/Client.d.ts +16 -0
- package/api/resources/inbox/client/Client.js +22 -5
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +1 -0
- package/api/resources/integrations/client/Client.d.ts +2 -0
- package/api/resources/integrations/client/Client.js +4 -1
- package/api/resources/intelligentFields/client/Client.d.ts +28 -3
- package/api/resources/intelligentFields/client/Client.js +36 -8
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +4 -0
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +13 -4
- package/api/resources/intelligentFields/types/EnumOption.d.ts +3 -1
- package/api/resources/intelligentFields/types/IntelligentFieldBase.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +12 -11
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +4 -1
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +4 -1
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.d.ts +8 -1
- package/api/resources/intelligentFields/types/IntelligentFieldStatus.js +8 -1
- package/api/resources/intelligentFields/types/IntelligentFieldType.d.ts +10 -0
- package/api/resources/intelligentFields/types/IntelligentFieldType.js +10 -0
- package/api/resources/knowledge/client/Client.d.ts +32 -0
- package/api/resources/knowledge/client/Client.js +47 -16
- package/api/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +13 -0
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +4 -2
- package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +33 -9
- package/api/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +7 -1
- package/api/resources/organizations/client/Client.d.ts +12 -0
- package/api/resources/organizations/client/Client.js +17 -4
- package/api/resources/segments/client/Client.d.ts +10 -0
- package/api/resources/segments/client/Client.js +14 -3
- package/api/resources/translations/client/Client.d.ts +2 -0
- package/api/resources/translations/client/Client.js +4 -1
- package/api/resources/triggers/client/Client.d.ts +10 -0
- package/api/resources/triggers/client/Client.js +14 -3
- package/api/resources/users/client/Client.d.ts +10 -0
- package/api/resources/users/client/Client.js +13 -2
- package/api/resources/voice/client/Client.d.ts +2 -0
- package/api/resources/voice/client/Client.js +4 -1
- package/api/resources/voiceConversations/client/Client.d.ts +4 -1
- package/api/resources/voiceConversations/client/Client.js +2 -1
- package/api/resources/voiceConversations/client/Socket.d.ts +11 -0
- package/api/resources/voiceConversations/client/Socket.js +15 -0
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/signals.js +9 -1
- package/core/file/file.js +3 -0
- package/core/form-data-utils/FormDataWrapper.js +3 -0
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/schemas/builders/schema-utils/JsonError.js +2 -2
- package/core/schemas/builders/schema-utils/ParseError.js +2 -2
- package/core/stream/Stream.d.ts +45 -1
- package/core/stream/Stream.js +323 -84
- package/core/stream/index.d.ts +1 -0
- package/core/url/qs.js +2 -2
- package/core/websocket/ws.d.ts +6 -0
- package/core/websocket/ws.js +14 -1
- package/errors/MavenAGIError.d.ts +1 -0
- package/errors/MavenAGIError.js +5 -1
- package/errors/MavenAGITimeoutError.d.ts +2 -2
- package/errors/MavenAGITimeoutError.js +40 -6
- package/package.json +2 -2
- package/reference.md +587 -3
- package/serialization/resources/charters/client/index.d.ts +1 -0
- package/serialization/resources/charters/client/index.js +17 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.d.ts +24 -0
- package/serialization/resources/charters/client/requests/CharterPatchRequest.js +57 -0
- package/serialization/resources/charters/client/requests/index.d.ts +1 -0
- package/serialization/resources/charters/client/requests/index.js +5 -0
- package/serialization/resources/charters/index.d.ts +1 -0
- package/serialization/resources/charters/index.js +1 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.d.ts +10 -0
- package/serialization/resources/charters/types/CharterAncestorsResponse.js +42 -0
- package/serialization/resources/charters/types/CharterBase.d.ts +11 -0
- package/serialization/resources/charters/types/CharterBase.js +43 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.d.ts +13 -0
- package/serialization/resources/charters/types/CharterChildrenGroup.js +45 -0
- package/serialization/resources/charters/types/CharterContent.d.ts +19 -0
- package/serialization/resources/charters/types/CharterContent.js +54 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.d.ts +11 -0
- package/serialization/resources/charters/types/CharterKnowledgeBaseReference.js +44 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenRequest.js +45 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterListChildrenResponse.js +45 -0
- package/serialization/resources/charters/types/CharterPatchReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterPatchReferences.js +44 -0
- package/serialization/resources/charters/types/CharterReferences.d.ts +12 -0
- package/serialization/resources/charters/types/CharterReferences.js +44 -0
- package/serialization/resources/charters/types/CharterRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterRequest.js +47 -0
- package/serialization/resources/charters/types/CharterResponse.d.ts +25 -0
- package/serialization/resources/charters/types/CharterResponse.js +60 -0
- package/serialization/resources/charters/types/CharterSearchField.d.ts +7 -0
- package/serialization/resources/charters/types/CharterSearchField.js +39 -0
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +11 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +43 -0
- package/serialization/resources/charters/types/CharterSearchRequest.d.ts +13 -0
- package/serialization/resources/charters/types/CharterSearchRequest.js +47 -0
- package/serialization/resources/charters/types/CharterSearchResponse.d.ts +11 -0
- package/serialization/resources/charters/types/CharterSearchResponse.js +45 -0
- package/serialization/resources/charters/types/CharterSummary.d.ts +0 -2
- package/serialization/resources/charters/types/CharterSummary.js +0 -2
- package/serialization/resources/charters/types/index.d.ts +15 -0
- package/serialization/resources/charters/types/index.js +15 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataComparisonCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.d.ts +7 -0
- package/serialization/resources/commons/types/MetadataComparisonOperator.js +39 -0
- package/serialization/resources/commons/types/MetadataCondition.d.ts +19 -0
- package/serialization/resources/commons/types/MetadataCondition.js +51 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataEntryCondition.js +43 -0
- package/serialization/resources/commons/types/MetadataFilter.d.ts +14 -0
- package/serialization/resources/commons/types/MetadataFilter.js +49 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.d.ts +11 -0
- package/serialization/resources/commons/types/MetadataFilterGroup.js +44 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +6 -0
- package/serialization/resources/commons/types/index.js +6 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -0
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +1 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentFilter.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +0 -2
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeDocumentSearchResponse.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -28,7 +28,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
28
28
|
* knowledgeBaseLlmInclusionStatus: MavenAGI.LlmInclusionStatus.Never,
|
|
29
29
|
* url: "https://help-center.acme.com/how-it-works",
|
|
30
30
|
* createdAt: new Date("2024-01-01T00:00:00.000Z"),
|
|
31
|
-
* updatedAt: new Date("2024-02-02T00:00:00.000Z")
|
|
31
|
+
* updatedAt: new Date("2024-02-02T00:00:00.000Z"),
|
|
32
|
+
* relevantEntities: []
|
|
32
33
|
* }
|
|
33
34
|
*/
|
|
34
35
|
export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeDocument {
|
|
@@ -51,4 +52,9 @@ export interface KnowledgeDocumentSearchResponse extends MavenAGI.BaseKnowledgeD
|
|
|
51
52
|
createdAt: Date;
|
|
52
53
|
/** The time at which this document was last modified. */
|
|
53
54
|
updatedAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
* The entities this document is narrowed to. Empty for a document that is part of the
|
|
57
|
+
* agent's general knowledge.
|
|
58
|
+
*/
|
|
59
|
+
relevantEntities: MavenAGI.ScopedEntity[];
|
|
54
60
|
}
|
|
@@ -26,6 +26,8 @@ export declare class OrganizationsClient {
|
|
|
26
26
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
27
27
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
28
28
|
* @throws {@link MavenAGI.ServerError}
|
|
29
|
+
* @throws {@link errors.MavenAGIError}
|
|
30
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
29
31
|
*
|
|
30
32
|
* @example
|
|
31
33
|
* await client.organizations.create("organizationReferenceId", {
|
|
@@ -46,6 +48,8 @@ export declare class OrganizationsClient {
|
|
|
46
48
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
47
49
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
48
50
|
* @throws {@link MavenAGI.ServerError}
|
|
51
|
+
* @throws {@link errors.MavenAGIError}
|
|
52
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
49
53
|
*
|
|
50
54
|
* @example
|
|
51
55
|
* await client.organizations.get("organizationReferenceId")
|
|
@@ -69,6 +73,8 @@ export declare class OrganizationsClient {
|
|
|
69
73
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
70
74
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
71
75
|
* @throws {@link MavenAGI.ServerError}
|
|
76
|
+
* @throws {@link errors.MavenAGIError}
|
|
77
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
72
78
|
*
|
|
73
79
|
* @example
|
|
74
80
|
* await client.organizations.patch("organizationReferenceId", {})
|
|
@@ -90,6 +96,8 @@ export declare class OrganizationsClient {
|
|
|
90
96
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
91
97
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
92
98
|
* @throws {@link MavenAGI.ServerError}
|
|
99
|
+
* @throws {@link errors.MavenAGIError}
|
|
100
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
93
101
|
*
|
|
94
102
|
* @example
|
|
95
103
|
* await client.organizations.delete("organizationReferenceId")
|
|
@@ -114,6 +122,8 @@ export declare class OrganizationsClient {
|
|
|
114
122
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
115
123
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
116
124
|
* @throws {@link MavenAGI.ServerError}
|
|
125
|
+
* @throws {@link errors.MavenAGIError}
|
|
126
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
117
127
|
*
|
|
118
128
|
* @example
|
|
119
129
|
* await client.organizations.getConversationTable({
|
|
@@ -165,6 +175,8 @@ export declare class OrganizationsClient {
|
|
|
165
175
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
166
176
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
167
177
|
* @throws {@link MavenAGI.ServerError}
|
|
178
|
+
* @throws {@link errors.MavenAGIError}
|
|
179
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
168
180
|
*
|
|
169
181
|
* @example
|
|
170
182
|
* await client.organizations.getConversationChart({
|
|
@@ -47,6 +47,7 @@ exports.OrganizationsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -72,6 +73,8 @@ class OrganizationsClient {
|
|
|
72
73
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
73
74
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
74
75
|
* @throws {@link MavenAGI.ServerError}
|
|
76
|
+
* @throws {@link errors.MavenAGIError}
|
|
77
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
75
78
|
*
|
|
76
79
|
* @example
|
|
77
80
|
* await client.organizations.create("organizationReferenceId", {
|
|
@@ -97,7 +100,7 @@ class OrganizationsClient {
|
|
|
97
100
|
contentType: "application/json",
|
|
98
101
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
99
102
|
requestType: "json",
|
|
100
|
-
body: serializers.CreateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
103
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CreateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
101
104
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
102
105
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
103
106
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -174,6 +177,8 @@ class OrganizationsClient {
|
|
|
174
177
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
175
178
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
176
179
|
* @throws {@link MavenAGI.ServerError}
|
|
180
|
+
* @throws {@link errors.MavenAGIError}
|
|
181
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
177
182
|
*
|
|
178
183
|
* @example
|
|
179
184
|
* await client.organizations.get("organizationReferenceId")
|
|
@@ -276,6 +281,8 @@ class OrganizationsClient {
|
|
|
276
281
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
277
282
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
278
283
|
* @throws {@link MavenAGI.ServerError}
|
|
284
|
+
* @throws {@link errors.MavenAGIError}
|
|
285
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
279
286
|
*
|
|
280
287
|
* @example
|
|
281
288
|
* await client.organizations.patch("organizationReferenceId", {})
|
|
@@ -298,7 +305,7 @@ class OrganizationsClient {
|
|
|
298
305
|
contentType: "application/json",
|
|
299
306
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
300
307
|
requestType: "json",
|
|
301
|
-
body: serializers.OrganizationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
308
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.OrganizationPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
302
309
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
303
310
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
304
311
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -379,6 +386,8 @@ class OrganizationsClient {
|
|
|
379
386
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
380
387
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
381
388
|
* @throws {@link MavenAGI.ServerError}
|
|
389
|
+
* @throws {@link errors.MavenAGIError}
|
|
390
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
382
391
|
*
|
|
383
392
|
* @example
|
|
384
393
|
* await client.organizations.delete("organizationReferenceId")
|
|
@@ -474,6 +483,8 @@ class OrganizationsClient {
|
|
|
474
483
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
475
484
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
476
485
|
* @throws {@link MavenAGI.ServerError}
|
|
486
|
+
* @throws {@link errors.MavenAGIError}
|
|
487
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
477
488
|
*
|
|
478
489
|
* @example
|
|
479
490
|
* await client.organizations.getConversationTable({
|
|
@@ -523,7 +534,7 @@ class OrganizationsClient {
|
|
|
523
534
|
contentType: "application/json",
|
|
524
535
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
525
536
|
requestType: "json",
|
|
526
|
-
body: serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
537
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationTableRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
527
538
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
528
539
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
529
540
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -607,6 +618,8 @@ class OrganizationsClient {
|
|
|
607
618
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
608
619
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
609
620
|
* @throws {@link MavenAGI.ServerError}
|
|
621
|
+
* @throws {@link errors.MavenAGIError}
|
|
622
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
610
623
|
*
|
|
611
624
|
* @example
|
|
612
625
|
* await client.organizations.getConversationChart({
|
|
@@ -672,7 +685,7 @@ class OrganizationsClient {
|
|
|
672
685
|
contentType: "application/json",
|
|
673
686
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
674
687
|
requestType: "json",
|
|
675
|
-
body: serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
688
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ConversationChartRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
676
689
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
677
690
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
678
691
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -21,6 +21,8 @@ export declare class SegmentsClient {
|
|
|
21
21
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
22
22
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
23
23
|
* @throws {@link MavenAGI.ServerError}
|
|
24
|
+
* @throws {@link errors.MavenAGIError}
|
|
25
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* await client.segments.search({})
|
|
@@ -40,6 +42,8 @@ export declare class SegmentsClient {
|
|
|
40
42
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
41
43
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
42
44
|
* @throws {@link MavenAGI.ServerError}
|
|
45
|
+
* @throws {@link errors.MavenAGIError}
|
|
46
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
43
47
|
*
|
|
44
48
|
* @example
|
|
45
49
|
* await client.segments.createOrUpdate({
|
|
@@ -76,6 +80,8 @@ export declare class SegmentsClient {
|
|
|
76
80
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
77
81
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
78
82
|
* @throws {@link MavenAGI.ServerError}
|
|
83
|
+
* @throws {@link errors.MavenAGIError}
|
|
84
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
79
85
|
*
|
|
80
86
|
* @example
|
|
81
87
|
* await client.segments.get("admin-users")
|
|
@@ -99,6 +105,8 @@ export declare class SegmentsClient {
|
|
|
99
105
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
100
106
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
101
107
|
* @throws {@link MavenAGI.ServerError}
|
|
108
|
+
* @throws {@link errors.MavenAGIError}
|
|
109
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
102
110
|
*
|
|
103
111
|
* @example
|
|
104
112
|
* await client.segments.patch("segmentReferenceId", {})
|
|
@@ -123,6 +131,8 @@ export declare class SegmentsClient {
|
|
|
123
131
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
124
132
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
125
133
|
* @throws {@link MavenAGI.ServerError}
|
|
134
|
+
* @throws {@link errors.MavenAGIError}
|
|
135
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
126
136
|
*
|
|
127
137
|
* @example
|
|
128
138
|
* await client.segments.delete("segmentReferenceId")
|
|
@@ -47,6 +47,7 @@ exports.SegmentsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -67,6 +68,8 @@ class SegmentsClient {
|
|
|
67
68
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
68
69
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
69
70
|
* @throws {@link MavenAGI.ServerError}
|
|
71
|
+
* @throws {@link errors.MavenAGIError}
|
|
72
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
70
73
|
*
|
|
71
74
|
* @example
|
|
72
75
|
* await client.segments.search({})
|
|
@@ -89,7 +92,7 @@ class SegmentsClient {
|
|
|
89
92
|
contentType: "application/json",
|
|
90
93
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
91
94
|
requestType: "json",
|
|
92
|
-
body: serializers.SegmentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
95
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.SegmentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
93
96
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
94
97
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
95
98
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -168,6 +171,8 @@ class SegmentsClient {
|
|
|
168
171
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
169
172
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
170
173
|
* @throws {@link MavenAGI.ServerError}
|
|
174
|
+
* @throws {@link errors.MavenAGIError}
|
|
175
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
171
176
|
*
|
|
172
177
|
* @example
|
|
173
178
|
* await client.segments.createOrUpdate({
|
|
@@ -206,7 +211,7 @@ class SegmentsClient {
|
|
|
206
211
|
contentType: "application/json",
|
|
207
212
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
208
213
|
requestType: "json",
|
|
209
|
-
body: serializers.SegmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
214
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.SegmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
210
215
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
211
216
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
212
217
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -286,6 +291,8 @@ class SegmentsClient {
|
|
|
286
291
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
287
292
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
288
293
|
* @throws {@link MavenAGI.ServerError}
|
|
294
|
+
* @throws {@link errors.MavenAGIError}
|
|
295
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
289
296
|
*
|
|
290
297
|
* @example
|
|
291
298
|
* await client.segments.get("admin-users")
|
|
@@ -396,6 +403,8 @@ class SegmentsClient {
|
|
|
396
403
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
397
404
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
398
405
|
* @throws {@link MavenAGI.ServerError}
|
|
406
|
+
* @throws {@link errors.MavenAGIError}
|
|
407
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
399
408
|
*
|
|
400
409
|
* @example
|
|
401
410
|
* await client.segments.patch("segmentReferenceId", {})
|
|
@@ -418,7 +427,7 @@ class SegmentsClient {
|
|
|
418
427
|
contentType: "application/merge-patch+json",
|
|
419
428
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
420
429
|
requestType: "json",
|
|
421
|
-
body: serializers.SegmentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
430
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.SegmentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
422
431
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
423
432
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
424
433
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -502,6 +511,8 @@ class SegmentsClient {
|
|
|
502
511
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
503
512
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
504
513
|
* @throws {@link MavenAGI.ServerError}
|
|
514
|
+
* @throws {@link errors.MavenAGIError}
|
|
515
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
505
516
|
*
|
|
506
517
|
* @example
|
|
507
518
|
* await client.segments.delete("segmentReferenceId")
|
|
@@ -21,6 +21,8 @@ export declare class TranslationsClient {
|
|
|
21
21
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
22
22
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
23
23
|
* @throws {@link MavenAGI.ServerError}
|
|
24
|
+
* @throws {@link errors.MavenAGIError}
|
|
25
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* await client.translations.translate({
|
|
@@ -47,6 +47,7 @@ exports.TranslationsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -67,6 +68,8 @@ class TranslationsClient {
|
|
|
67
68
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
68
69
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
69
70
|
* @throws {@link MavenAGI.ServerError}
|
|
71
|
+
* @throws {@link errors.MavenAGIError}
|
|
72
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
70
73
|
*
|
|
71
74
|
* @example
|
|
72
75
|
* await client.translations.translate({
|
|
@@ -92,7 +95,7 @@ class TranslationsClient {
|
|
|
92
95
|
contentType: "application/json",
|
|
93
96
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
94
97
|
requestType: "json",
|
|
95
|
-
body: serializers.TranslationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
98
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.TranslationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
96
99
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
97
100
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
98
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -19,6 +19,8 @@ export declare class TriggersClient {
|
|
|
19
19
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
20
20
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
21
21
|
* @throws {@link MavenAGI.ServerError}
|
|
22
|
+
* @throws {@link errors.MavenAGIError}
|
|
23
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
22
24
|
*
|
|
23
25
|
* @example
|
|
24
26
|
* await client.triggers.search({})
|
|
@@ -36,6 +38,8 @@ export declare class TriggersClient {
|
|
|
36
38
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
37
39
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
38
40
|
* @throws {@link MavenAGI.ServerError}
|
|
41
|
+
* @throws {@link errors.MavenAGIError}
|
|
42
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
39
43
|
*
|
|
40
44
|
* @example
|
|
41
45
|
* await client.triggers.createOrUpdate({
|
|
@@ -59,6 +63,8 @@ export declare class TriggersClient {
|
|
|
59
63
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
60
64
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
61
65
|
* @throws {@link MavenAGI.ServerError}
|
|
66
|
+
* @throws {@link errors.MavenAGIError}
|
|
67
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
62
68
|
*
|
|
63
69
|
* @example
|
|
64
70
|
* await client.triggers.get("store-in-snowflake")
|
|
@@ -76,6 +82,8 @@ export declare class TriggersClient {
|
|
|
76
82
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
77
83
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
78
84
|
* @throws {@link MavenAGI.ServerError}
|
|
85
|
+
* @throws {@link errors.MavenAGIError}
|
|
86
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
79
87
|
*
|
|
80
88
|
* @example
|
|
81
89
|
* await client.triggers.delete("store-in-snowflake")
|
|
@@ -94,6 +102,8 @@ export declare class TriggersClient {
|
|
|
94
102
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
95
103
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
96
104
|
* @throws {@link MavenAGI.ServerError}
|
|
105
|
+
* @throws {@link errors.MavenAGIError}
|
|
106
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
97
107
|
*
|
|
98
108
|
* @example
|
|
99
109
|
* await client.triggers.partialUpdate("triggerReferenceId", {
|
|
@@ -47,6 +47,7 @@ exports.TriggersClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -65,6 +66,8 @@ class TriggersClient {
|
|
|
65
66
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
66
67
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
67
68
|
* @throws {@link MavenAGI.ServerError}
|
|
69
|
+
* @throws {@link errors.MavenAGIError}
|
|
70
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
68
71
|
*
|
|
69
72
|
* @example
|
|
70
73
|
* await client.triggers.search({})
|
|
@@ -87,7 +90,7 @@ class TriggersClient {
|
|
|
87
90
|
contentType: "application/json",
|
|
88
91
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
89
92
|
requestType: "json",
|
|
90
|
-
body: serializers.EventTriggersSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
93
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventTriggersSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
91
94
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
92
95
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
93
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -164,6 +167,8 @@ class TriggersClient {
|
|
|
164
167
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
165
168
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
166
169
|
* @throws {@link MavenAGI.ServerError}
|
|
170
|
+
* @throws {@link errors.MavenAGIError}
|
|
171
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
167
172
|
*
|
|
168
173
|
* @example
|
|
169
174
|
* await client.triggers.createOrUpdate({
|
|
@@ -192,7 +197,7 @@ class TriggersClient {
|
|
|
192
197
|
contentType: "application/json",
|
|
193
198
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
194
199
|
requestType: "json",
|
|
195
|
-
body: serializers.EventTriggerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
200
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventTriggerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
196
201
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
197
202
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
198
203
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -269,6 +274,8 @@ class TriggersClient {
|
|
|
269
274
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
270
275
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
271
276
|
* @throws {@link MavenAGI.ServerError}
|
|
277
|
+
* @throws {@link errors.MavenAGIError}
|
|
278
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
272
279
|
*
|
|
273
280
|
* @example
|
|
274
281
|
* await client.triggers.get("store-in-snowflake")
|
|
@@ -365,6 +372,8 @@ class TriggersClient {
|
|
|
365
372
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
366
373
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
367
374
|
* @throws {@link MavenAGI.ServerError}
|
|
375
|
+
* @throws {@link errors.MavenAGIError}
|
|
376
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
368
377
|
*
|
|
369
378
|
* @example
|
|
370
379
|
* await client.triggers.delete("store-in-snowflake")
|
|
@@ -454,6 +463,8 @@ class TriggersClient {
|
|
|
454
463
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
455
464
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
456
465
|
* @throws {@link MavenAGI.ServerError}
|
|
466
|
+
* @throws {@link errors.MavenAGIError}
|
|
467
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
457
468
|
*
|
|
458
469
|
* @example
|
|
459
470
|
* await client.triggers.partialUpdate("triggerReferenceId", {
|
|
@@ -486,7 +497,7 @@ class TriggersClient {
|
|
|
486
497
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
487
498
|
.build(),
|
|
488
499
|
requestType: "json",
|
|
489
|
-
body: serializers.TriggerPartialUpdate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
500
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.TriggerPartialUpdate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
490
501
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
491
502
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
492
503
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -23,6 +23,8 @@ export declare class UsersClient {
|
|
|
23
23
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
24
24
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
25
25
|
* @throws {@link MavenAGI.ServerError}
|
|
26
|
+
* @throws {@link errors.MavenAGIError}
|
|
27
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
26
28
|
*
|
|
27
29
|
* @example
|
|
28
30
|
* await client.users.search({})
|
|
@@ -42,6 +44,8 @@ export declare class UsersClient {
|
|
|
42
44
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
43
45
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
44
46
|
* @throws {@link MavenAGI.ServerError}
|
|
47
|
+
* @throws {@link errors.MavenAGIError}
|
|
48
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
45
49
|
*
|
|
46
50
|
* @example
|
|
47
51
|
* await client.users.getAgentUser("aus_1234567890")
|
|
@@ -59,6 +63,8 @@ export declare class UsersClient {
|
|
|
59
63
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
60
64
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
61
65
|
* @throws {@link MavenAGI.ServerError}
|
|
66
|
+
* @throws {@link errors.MavenAGIError}
|
|
67
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
62
68
|
*
|
|
63
69
|
* @example
|
|
64
70
|
* await client.users.createOrUpdate({
|
|
@@ -91,6 +97,8 @@ export declare class UsersClient {
|
|
|
91
97
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
92
98
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
93
99
|
* @throws {@link MavenAGI.ServerError}
|
|
100
|
+
* @throws {@link errors.MavenAGIError}
|
|
101
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
94
102
|
*
|
|
95
103
|
* @example
|
|
96
104
|
* await client.users.get("user-0")
|
|
@@ -114,6 +122,8 @@ export declare class UsersClient {
|
|
|
114
122
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
115
123
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
116
124
|
* @throws {@link MavenAGI.ServerError}
|
|
125
|
+
* @throws {@link errors.MavenAGIError}
|
|
126
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
117
127
|
*
|
|
118
128
|
* @example
|
|
119
129
|
* await client.users.delete("user-0")
|
|
@@ -47,6 +47,7 @@ exports.UsersClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -69,6 +70,8 @@ class UsersClient {
|
|
|
69
70
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
70
71
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
71
72
|
* @throws {@link MavenAGI.ServerError}
|
|
73
|
+
* @throws {@link errors.MavenAGIError}
|
|
74
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
72
75
|
*
|
|
73
76
|
* @example
|
|
74
77
|
* await client.users.search({})
|
|
@@ -91,7 +94,7 @@ class UsersClient {
|
|
|
91
94
|
contentType: "application/json",
|
|
92
95
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
93
96
|
requestType: "json",
|
|
94
|
-
body: serializers.AgentUserSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
97
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AgentUserSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
95
98
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
96
99
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
97
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -170,6 +173,8 @@ class UsersClient {
|
|
|
170
173
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
171
174
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
172
175
|
* @throws {@link MavenAGI.ServerError}
|
|
176
|
+
* @throws {@link errors.MavenAGIError}
|
|
177
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
173
178
|
*
|
|
174
179
|
* @example
|
|
175
180
|
* await client.users.getAgentUser("aus_1234567890")
|
|
@@ -266,6 +271,8 @@ class UsersClient {
|
|
|
266
271
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
267
272
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
268
273
|
* @throws {@link MavenAGI.ServerError}
|
|
274
|
+
* @throws {@link errors.MavenAGIError}
|
|
275
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
269
276
|
*
|
|
270
277
|
* @example
|
|
271
278
|
* await client.users.createOrUpdate({
|
|
@@ -302,7 +309,7 @@ class UsersClient {
|
|
|
302
309
|
contentType: "application/json",
|
|
303
310
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
304
311
|
requestType: "json",
|
|
305
|
-
body: serializers.AppUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
312
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AppUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
306
313
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
307
314
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
308
315
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -380,6 +387,8 @@ class UsersClient {
|
|
|
380
387
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
381
388
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
382
389
|
* @throws {@link MavenAGI.ServerError}
|
|
390
|
+
* @throws {@link errors.MavenAGIError}
|
|
391
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
383
392
|
*
|
|
384
393
|
* @example
|
|
385
394
|
* await client.users.get("user-0")
|
|
@@ -490,6 +499,8 @@ class UsersClient {
|
|
|
490
499
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
491
500
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
492
501
|
* @throws {@link MavenAGI.ServerError}
|
|
502
|
+
* @throws {@link errors.MavenAGIError}
|
|
503
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
493
504
|
*
|
|
494
505
|
* @example
|
|
495
506
|
* await client.users.delete("user-0")
|
|
@@ -27,6 +27,8 @@ export declare class VoiceClient {
|
|
|
27
27
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
28
28
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
29
29
|
* @throws {@link MavenAGI.ServerError}
|
|
30
|
+
* @throws {@link errors.MavenAGIError}
|
|
31
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
30
32
|
*
|
|
31
33
|
* @example
|
|
32
34
|
* await client.voice.sessionToken({
|
|
@@ -47,6 +47,7 @@ exports.VoiceClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -73,6 +74,8 @@ class VoiceClient {
|
|
|
73
74
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
74
75
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
75
76
|
* @throws {@link MavenAGI.ServerError}
|
|
77
|
+
* @throws {@link errors.MavenAGIError}
|
|
78
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
76
79
|
*
|
|
77
80
|
* @example
|
|
78
81
|
* await client.voice.sessionToken({
|
|
@@ -98,7 +101,7 @@ class VoiceClient {
|
|
|
98
101
|
contentType: "application/json",
|
|
99
102
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
100
103
|
requestType: "json",
|
|
101
|
-
body: serializers.VoiceSessionTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
104
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.VoiceSessionTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
102
105
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
103
106
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
104
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BaseClientOptions } from "../../../../BaseClient";
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../core";
|
|
3
4
|
import { VoiceConversationsSocket } from "./Socket";
|
|
4
5
|
export declare namespace VoiceConversationsClient {
|
|
5
6
|
type Options = BaseClientOptions;
|
|
@@ -14,12 +15,14 @@ export declare namespace VoiceConversationsClient {
|
|
|
14
15
|
headers?: Record<string, string>;
|
|
15
16
|
/** Enable debug mode on the websocket. Defaults to false. */
|
|
16
17
|
debug?: boolean;
|
|
17
|
-
/**
|
|
18
|
+
/** Maximum number of times to automatically reconnect after the connection closes unexpectedly. Defaults to 30. Set to 0 to disable reconnecting. */
|
|
18
19
|
reconnectAttempts?: number;
|
|
19
20
|
/** The timeout for establishing the WebSocket connection in seconds. */
|
|
20
21
|
connectionTimeoutInSeconds?: number;
|
|
21
22
|
/** A signal to abort the WebSocket connection. */
|
|
22
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Decides whether a close event should trigger a reconnect. Return false to treat the close as terminal. Defaults to reconnecting on any close code other than 1000. */
|
|
25
|
+
shouldReconnect?: (event: core.CloseEvent) => boolean;
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
export declare class VoiceConversationsClient {
|