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
|
@@ -47,6 +47,7 @@ exports.EventsClient = 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 EventsClient {
|
|
|
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.events.create({
|
|
@@ -100,7 +103,7 @@ class EventsClient {
|
|
|
100
103
|
contentType: "application/json",
|
|
101
104
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
102
105
|
requestType: "json",
|
|
103
|
-
body: serializers.EventRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
106
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
104
107
|
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,
|
|
105
108
|
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,
|
|
106
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -177,6 +180,8 @@ class EventsClient {
|
|
|
177
180
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
178
181
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
179
182
|
* @throws {@link MavenAGI.ServerError}
|
|
183
|
+
* @throws {@link errors.MavenAGIError}
|
|
184
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
180
185
|
*
|
|
181
186
|
* @example
|
|
182
187
|
* await client.events.search({})
|
|
@@ -199,7 +204,7 @@ class EventsClient {
|
|
|
199
204
|
contentType: "application/json",
|
|
200
205
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
201
206
|
requestType: "json",
|
|
202
|
-
body: serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
207
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
203
208
|
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,
|
|
204
209
|
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,
|
|
205
210
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -277,6 +282,8 @@ class EventsClient {
|
|
|
277
282
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
278
283
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
279
284
|
* @throws {@link MavenAGI.ServerError}
|
|
285
|
+
* @throws {@link errors.MavenAGIError}
|
|
286
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
280
287
|
*
|
|
281
288
|
* @example
|
|
282
289
|
* await client.events.get("eventId", {
|
|
@@ -382,6 +389,8 @@ class EventsClient {
|
|
|
382
389
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
383
390
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
384
391
|
* @throws {@link MavenAGI.ServerError}
|
|
392
|
+
* @throws {@link errors.MavenAGIError}
|
|
393
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
385
394
|
*/
|
|
386
395
|
export(request, requestOptions) {
|
|
387
396
|
return core.HttpResponsePromise.fromPromise(this.__export(request, requestOptions));
|
|
@@ -401,7 +410,7 @@ class EventsClient {
|
|
|
401
410
|
contentType: "application/json",
|
|
402
411
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
403
412
|
requestType: "json",
|
|
404
|
-
body: serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
413
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.EventsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
405
414
|
responseType: "binary-response",
|
|
406
415
|
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,
|
|
407
416
|
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,
|
|
@@ -21,6 +21,8 @@ export declare class InboxClient {
|
|
|
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.inbox.search({})
|
|
@@ -38,6 +40,8 @@ export declare class InboxClient {
|
|
|
38
40
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
39
41
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
40
42
|
* @throws {@link MavenAGI.ServerError}
|
|
43
|
+
* @throws {@link errors.MavenAGIError}
|
|
44
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
41
45
|
*
|
|
42
46
|
* @example
|
|
43
47
|
* await client.inbox.createOrUpdate({
|
|
@@ -87,6 +91,8 @@ export declare class InboxClient {
|
|
|
87
91
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
88
92
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
89
93
|
* @throws {@link MavenAGI.ServerError}
|
|
94
|
+
* @throws {@link errors.MavenAGIError}
|
|
95
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
90
96
|
*
|
|
91
97
|
* @example
|
|
92
98
|
* await client.inbox.patch("custom-item-1", {
|
|
@@ -112,6 +118,8 @@ export declare class InboxClient {
|
|
|
112
118
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
113
119
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
114
120
|
* @throws {@link MavenAGI.ServerError}
|
|
121
|
+
* @throws {@link errors.MavenAGIError}
|
|
122
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
115
123
|
*
|
|
116
124
|
* @example
|
|
117
125
|
* await client.inbox.applyTags("custom-item-1", {
|
|
@@ -132,6 +140,8 @@ export declare class InboxClient {
|
|
|
132
140
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
133
141
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
134
142
|
* @throws {@link MavenAGI.ServerError}
|
|
143
|
+
* @throws {@link errors.MavenAGIError}
|
|
144
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
135
145
|
*
|
|
136
146
|
* @example
|
|
137
147
|
* await client.inbox.get("inboxItemId", {
|
|
@@ -152,6 +162,8 @@ export declare class InboxClient {
|
|
|
152
162
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
153
163
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
154
164
|
* @throws {@link MavenAGI.ServerError}
|
|
165
|
+
* @throws {@link errors.MavenAGIError}
|
|
166
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
155
167
|
*
|
|
156
168
|
* @example
|
|
157
169
|
* await client.inbox.getFix("inboxItemFixId", {
|
|
@@ -172,6 +184,8 @@ export declare class InboxClient {
|
|
|
172
184
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
173
185
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
174
186
|
* @throws {@link MavenAGI.ServerError}
|
|
187
|
+
* @throws {@link errors.MavenAGIError}
|
|
188
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
175
189
|
*
|
|
176
190
|
* @example
|
|
177
191
|
* await client.inbox.applyFixes("inboxItemId", {
|
|
@@ -193,6 +207,8 @@ export declare class InboxClient {
|
|
|
193
207
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
194
208
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
195
209
|
* @throws {@link MavenAGI.ServerError}
|
|
210
|
+
* @throws {@link errors.MavenAGIError}
|
|
211
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
196
212
|
*
|
|
197
213
|
* @example
|
|
198
214
|
* await client.inbox.ignore("inboxItemId", {
|
|
@@ -47,6 +47,7 @@ exports.InboxClient = 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 InboxClient {
|
|
|
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.inbox.search({})
|
|
@@ -89,7 +92,7 @@ class InboxClient {
|
|
|
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.InboxSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
95
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.InboxSearchRequest.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,
|
|
@@ -166,6 +169,8 @@ class InboxClient {
|
|
|
166
169
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
167
170
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
168
171
|
* @throws {@link MavenAGI.ServerError}
|
|
172
|
+
* @throws {@link errors.MavenAGIError}
|
|
173
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
169
174
|
*
|
|
170
175
|
* @example
|
|
171
176
|
* await client.inbox.createOrUpdate({
|
|
@@ -216,7 +221,7 @@ class InboxClient {
|
|
|
216
221
|
contentType: "application/json",
|
|
217
222
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
218
223
|
requestType: "json",
|
|
219
|
-
body: serializers.InboxItemCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
224
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.InboxItemCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
220
225
|
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,
|
|
221
226
|
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,
|
|
222
227
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -297,6 +302,8 @@ class InboxClient {
|
|
|
297
302
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
298
303
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
299
304
|
* @throws {@link MavenAGI.ServerError}
|
|
305
|
+
* @throws {@link errors.MavenAGIError}
|
|
306
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
300
307
|
*
|
|
301
308
|
* @example
|
|
302
309
|
* await client.inbox.patch("custom-item-1", {
|
|
@@ -324,7 +331,7 @@ class InboxClient {
|
|
|
324
331
|
contentType: "application/json",
|
|
325
332
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
326
333
|
requestType: "json",
|
|
327
|
-
body: serializers.InboxItemPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
334
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.InboxItemPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
328
335
|
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,
|
|
329
336
|
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,
|
|
330
337
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -404,6 +411,8 @@ class InboxClient {
|
|
|
404
411
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
405
412
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
406
413
|
* @throws {@link MavenAGI.ServerError}
|
|
414
|
+
* @throws {@link errors.MavenAGIError}
|
|
415
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
407
416
|
*
|
|
408
417
|
* @example
|
|
409
418
|
* await client.inbox.applyTags("custom-item-1", {
|
|
@@ -428,7 +437,7 @@ class InboxClient {
|
|
|
428
437
|
contentType: "application/json",
|
|
429
438
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
430
439
|
requestType: "json",
|
|
431
|
-
body: serializers.InboxItemApplyTagsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
440
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.InboxItemApplyTagsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
432
441
|
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,
|
|
433
442
|
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,
|
|
434
443
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -506,6 +515,8 @@ class InboxClient {
|
|
|
506
515
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
507
516
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
508
517
|
* @throws {@link MavenAGI.ServerError}
|
|
518
|
+
* @throws {@link errors.MavenAGIError}
|
|
519
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
509
520
|
*
|
|
510
521
|
* @example
|
|
511
522
|
* await client.inbox.get("inboxItemId", {
|
|
@@ -613,6 +624,8 @@ class InboxClient {
|
|
|
613
624
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
614
625
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
615
626
|
* @throws {@link MavenAGI.ServerError}
|
|
627
|
+
* @throws {@link errors.MavenAGIError}
|
|
628
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
616
629
|
*
|
|
617
630
|
* @example
|
|
618
631
|
* await client.inbox.getFix("inboxItemFixId", {
|
|
@@ -720,6 +733,8 @@ class InboxClient {
|
|
|
720
733
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
721
734
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
722
735
|
* @throws {@link MavenAGI.ServerError}
|
|
736
|
+
* @throws {@link errors.MavenAGIError}
|
|
737
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
723
738
|
*
|
|
724
739
|
* @example
|
|
725
740
|
* await client.inbox.applyFixes("inboxItemId", {
|
|
@@ -745,7 +760,7 @@ class InboxClient {
|
|
|
745
760
|
contentType: "application/json",
|
|
746
761
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
747
762
|
requestType: "json",
|
|
748
|
-
body: serializers.ApplyFixesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
763
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ApplyFixesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
749
764
|
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,
|
|
750
765
|
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,
|
|
751
766
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -815,6 +830,8 @@ class InboxClient {
|
|
|
815
830
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
816
831
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
817
832
|
* @throws {@link MavenAGI.ServerError}
|
|
833
|
+
* @throws {@link errors.MavenAGIError}
|
|
834
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
818
835
|
*
|
|
819
836
|
* @example
|
|
820
837
|
* await client.inbox.ignore("inboxItemId", {
|
package/api/resources/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from "./appSettings/types";
|
|
|
15
15
|
export * as assets from "./assets";
|
|
16
16
|
export * from "./assets/types";
|
|
17
17
|
export * as charters from "./charters";
|
|
18
|
+
export * from "./charters/client/requests";
|
|
18
19
|
export * from "./charters/types";
|
|
19
20
|
export * as commons from "./commons";
|
|
20
21
|
export * from "./commons/errors";
|
package/api/resources/index.js
CHANGED
|
@@ -54,6 +54,7 @@ __exportStar(require("./appSettings/types"), exports);
|
|
|
54
54
|
exports.assets = __importStar(require("./assets"));
|
|
55
55
|
__exportStar(require("./assets/types"), exports);
|
|
56
56
|
exports.charters = __importStar(require("./charters"));
|
|
57
|
+
__exportStar(require("./charters/client/requests"), exports);
|
|
57
58
|
__exportStar(require("./charters/types"), exports);
|
|
58
59
|
exports.commons = __importStar(require("./commons"));
|
|
59
60
|
__exportStar(require("./commons/errors"), exports);
|
|
@@ -23,6 +23,8 @@ export declare class IntegrationsClient {
|
|
|
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.integrations.update("organizationId", "integrationId", {})
|
|
@@ -47,6 +47,7 @@ exports.IntegrationsClient = 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 IntegrationsClient {
|
|
|
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.integrations.update("organizationId", "integrationId", {})
|
|
@@ -91,7 +94,7 @@ class IntegrationsClient {
|
|
|
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.UpdateIntegrationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
97
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.UpdateIntegrationRequest.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,
|
|
@@ -11,7 +11,12 @@ export declare class IntelligentFieldsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<IntelligentFieldsClient.Options>;
|
|
12
12
|
constructor(options: IntelligentFieldsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Create a new intelligent field
|
|
14
|
+
* Create a new intelligent field, or replace it if one already exists with the same
|
|
15
|
+
* `fieldId.referenceId`. Intelligent fields hold LLM-generated values computed for
|
|
16
|
+
* entities such as conversations.
|
|
17
|
+
*
|
|
18
|
+
* New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
19
|
+
* with the patch endpoint. `definition` is limited to 5,000 characters.
|
|
15
20
|
*
|
|
16
21
|
* @param {MavenAGI.IntelligentFieldRequest} request
|
|
17
22
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -21,6 +26,8 @@ export declare class IntelligentFieldsClient {
|
|
|
21
26
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
22
27
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
23
28
|
* @throws {@link MavenAGI.ServerError}
|
|
29
|
+
* @throws {@link errors.MavenAGIError}
|
|
30
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
24
31
|
*
|
|
25
32
|
* @example
|
|
26
33
|
* await client.intelligentFields.createOrUpdate({
|
|
@@ -58,6 +65,8 @@ export declare class IntelligentFieldsClient {
|
|
|
58
65
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
59
66
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
60
67
|
* @throws {@link MavenAGI.ServerError}
|
|
68
|
+
* @throws {@link errors.MavenAGIError}
|
|
69
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
61
70
|
*
|
|
62
71
|
* @example
|
|
63
72
|
* await client.intelligentFields.get("ticket-priority")
|
|
@@ -65,7 +74,12 @@ export declare class IntelligentFieldsClient {
|
|
|
65
74
|
get(fieldReferenceId: string, request?: MavenAGI.IntelligentFieldGetRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldDetailResponse>;
|
|
66
75
|
private __get;
|
|
67
76
|
/**
|
|
68
|
-
*
|
|
77
|
+
* Update the mutable properties of an intelligent field. Only the properties present in
|
|
78
|
+
* the request body are changed.
|
|
79
|
+
*
|
|
80
|
+
* This is also how a field is activated and deactivated: set `status` to `ACTIVE` to
|
|
81
|
+
* start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
|
|
82
|
+
* cannot be changed after creation.
|
|
69
83
|
*
|
|
70
84
|
* @param {string} fieldReferenceId - The reference ID of the intelligent field to patch.
|
|
71
85
|
* @param {MavenAGI.IntelligentFieldPatchRequest} request
|
|
@@ -76,6 +90,8 @@ export declare class IntelligentFieldsClient {
|
|
|
76
90
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
77
91
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
78
92
|
* @throws {@link MavenAGI.ServerError}
|
|
93
|
+
* @throws {@link errors.MavenAGIError}
|
|
94
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
79
95
|
*
|
|
80
96
|
* @example
|
|
81
97
|
* await client.intelligentFields.patch("ticket-priority", {
|
|
@@ -107,6 +123,8 @@ export declare class IntelligentFieldsClient {
|
|
|
107
123
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
108
124
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
109
125
|
* @throws {@link MavenAGI.ServerError}
|
|
126
|
+
* @throws {@link errors.MavenAGIError}
|
|
127
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
110
128
|
*
|
|
111
129
|
* @example
|
|
112
130
|
* await client.intelligentFields.delete("ticket-priority")
|
|
@@ -114,7 +132,12 @@ export declare class IntelligentFieldsClient {
|
|
|
114
132
|
delete(fieldReferenceId: string, request?: MavenAGI.IntelligentFieldDeleteRequest, requestOptions?: IntelligentFieldsClient.RequestOptions): core.HttpResponsePromise<MavenAGI.IntelligentFieldResponse>;
|
|
115
133
|
private __delete;
|
|
116
134
|
/**
|
|
117
|
-
* Search
|
|
135
|
+
* Search the values that have been computed for intelligent fields, across entities.
|
|
136
|
+
* Supports filtering by properties of the field, by target entity, and by when the
|
|
137
|
+
* value was computed.
|
|
138
|
+
*
|
|
139
|
+
* Values only exist for fields that were ACTIVE when the entity was evaluated, so a
|
|
140
|
+
* newly activated field returns nothing until evaluation has run.
|
|
118
141
|
*
|
|
119
142
|
* @param {MavenAGI.IntelligentFieldValueSearchRequest} request
|
|
120
143
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -124,6 +147,8 @@ export declare class IntelligentFieldsClient {
|
|
|
124
147
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
125
148
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
126
149
|
* @throws {@link MavenAGI.ServerError}
|
|
150
|
+
* @throws {@link errors.MavenAGIError}
|
|
151
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
127
152
|
*
|
|
128
153
|
* @example
|
|
129
154
|
* await client.intelligentFields.searchValues({
|
|
@@ -47,6 +47,7 @@ exports.IntelligentFieldsClient = 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"));
|
|
@@ -57,7 +58,12 @@ class IntelligentFieldsClient {
|
|
|
57
58
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
|
-
* Create a new intelligent field
|
|
61
|
+
* Create a new intelligent field, or replace it if one already exists with the same
|
|
62
|
+
* `fieldId.referenceId`. Intelligent fields hold LLM-generated values computed for
|
|
63
|
+
* entities such as conversations.
|
|
64
|
+
*
|
|
65
|
+
* New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
66
|
+
* with the patch endpoint. `definition` is limited to 5,000 characters.
|
|
61
67
|
*
|
|
62
68
|
* @param {MavenAGI.IntelligentFieldRequest} request
|
|
63
69
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -67,6 +73,8 @@ class IntelligentFieldsClient {
|
|
|
67
73
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
68
74
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
69
75
|
* @throws {@link MavenAGI.ServerError}
|
|
76
|
+
* @throws {@link errors.MavenAGIError}
|
|
77
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
70
78
|
*
|
|
71
79
|
* @example
|
|
72
80
|
* await client.intelligentFields.createOrUpdate({
|
|
@@ -108,7 +116,7 @@ class IntelligentFieldsClient {
|
|
|
108
116
|
contentType: "application/json",
|
|
109
117
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
110
118
|
requestType: "json",
|
|
111
|
-
body: serializers.IntelligentFieldRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
119
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.IntelligentFieldRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
112
120
|
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,
|
|
113
121
|
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,
|
|
114
122
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -186,6 +194,8 @@ class IntelligentFieldsClient {
|
|
|
186
194
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
187
195
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
188
196
|
* @throws {@link MavenAGI.ServerError}
|
|
197
|
+
* @throws {@link errors.MavenAGIError}
|
|
198
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
189
199
|
*
|
|
190
200
|
* @example
|
|
191
201
|
* await client.intelligentFields.get("ticket-priority")
|
|
@@ -196,9 +206,11 @@ class IntelligentFieldsClient {
|
|
|
196
206
|
__get(fieldReferenceId_1) {
|
|
197
207
|
return __awaiter(this, arguments, void 0, function* (fieldReferenceId, request = {}, requestOptions) {
|
|
198
208
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
199
|
-
const { appId } = request;
|
|
209
|
+
const { appId, variantReferenceId, variantAppId } = request;
|
|
200
210
|
const _queryParams = {
|
|
201
211
|
appId,
|
|
212
|
+
variantReferenceId,
|
|
213
|
+
variantAppId,
|
|
202
214
|
};
|
|
203
215
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
204
216
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
@@ -280,7 +292,12 @@ class IntelligentFieldsClient {
|
|
|
280
292
|
});
|
|
281
293
|
}
|
|
282
294
|
/**
|
|
283
|
-
*
|
|
295
|
+
* Update the mutable properties of an intelligent field. Only the properties present in
|
|
296
|
+
* the request body are changed.
|
|
297
|
+
*
|
|
298
|
+
* This is also how a field is activated and deactivated: set `status` to `ACTIVE` to
|
|
299
|
+
* start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
|
|
300
|
+
* cannot be changed after creation.
|
|
284
301
|
*
|
|
285
302
|
* @param {string} fieldReferenceId - The reference ID of the intelligent field to patch.
|
|
286
303
|
* @param {MavenAGI.IntelligentFieldPatchRequest} request
|
|
@@ -291,6 +308,8 @@ class IntelligentFieldsClient {
|
|
|
291
308
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
292
309
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
293
310
|
* @throws {@link MavenAGI.ServerError}
|
|
311
|
+
* @throws {@link errors.MavenAGIError}
|
|
312
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
294
313
|
*
|
|
295
314
|
* @example
|
|
296
315
|
* await client.intelligentFields.patch("ticket-priority", {
|
|
@@ -320,7 +339,7 @@ class IntelligentFieldsClient {
|
|
|
320
339
|
contentType: "application/merge-patch+json",
|
|
321
340
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
322
341
|
requestType: "json",
|
|
323
|
-
body: serializers.IntelligentFieldPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
342
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.IntelligentFieldPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
324
343
|
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,
|
|
325
344
|
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,
|
|
326
345
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -404,6 +423,8 @@ class IntelligentFieldsClient {
|
|
|
404
423
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
405
424
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
406
425
|
* @throws {@link MavenAGI.ServerError}
|
|
426
|
+
* @throws {@link errors.MavenAGIError}
|
|
427
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
407
428
|
*
|
|
408
429
|
* @example
|
|
409
430
|
* await client.intelligentFields.delete("ticket-priority")
|
|
@@ -500,7 +521,12 @@ class IntelligentFieldsClient {
|
|
|
500
521
|
});
|
|
501
522
|
}
|
|
502
523
|
/**
|
|
503
|
-
* Search
|
|
524
|
+
* Search the values that have been computed for intelligent fields, across entities.
|
|
525
|
+
* Supports filtering by properties of the field, by target entity, and by when the
|
|
526
|
+
* value was computed.
|
|
527
|
+
*
|
|
528
|
+
* Values only exist for fields that were ACTIVE when the entity was evaluated, so a
|
|
529
|
+
* newly activated field returns nothing until evaluation has run.
|
|
504
530
|
*
|
|
505
531
|
* @param {MavenAGI.IntelligentFieldValueSearchRequest} request
|
|
506
532
|
* @param {IntelligentFieldsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -510,6 +536,8 @@ class IntelligentFieldsClient {
|
|
|
510
536
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
511
537
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
512
538
|
* @throws {@link MavenAGI.ServerError}
|
|
539
|
+
* @throws {@link errors.MavenAGIError}
|
|
540
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
513
541
|
*
|
|
514
542
|
* @example
|
|
515
543
|
* await client.intelligentFields.searchValues({
|
|
@@ -555,9 +583,9 @@ class IntelligentFieldsClient {
|
|
|
555
583
|
contentType: "application/json",
|
|
556
584
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
557
585
|
requestType: "json",
|
|
558
|
-
body: serializers.IntelligentFieldValueSearchRequest.jsonOrThrow(request, {
|
|
586
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.IntelligentFieldValueSearchRequest.jsonOrThrow(request, {
|
|
559
587
|
unrecognizedObjectKeys: "strip",
|
|
560
|
-
}),
|
|
588
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
561
589
|
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,
|
|
562
590
|
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,
|
|
563
591
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
export interface IntelligentFieldGetRequest {
|
|
6
6
|
/** The App ID of the intelligent field to get. If not provided the ID of the calling app will be used. */
|
|
7
7
|
appId?: string;
|
|
8
|
+
/** The agent variant reference ID to resolve the intelligent field's version through. If not provided, defaults to the agent's production variant. */
|
|
9
|
+
variantReferenceId?: string;
|
|
10
|
+
/** The App ID of the agent variant reference. If not provided, the ID of the calling app will be used. */
|
|
11
|
+
variantAppId?: string;
|
|
8
12
|
}
|
|
@@ -13,14 +13,23 @@ import type * as MavenAGI from "../../../../index";
|
|
|
13
13
|
export interface IntelligentFieldPatchRequest {
|
|
14
14
|
/** The App ID of the intelligent field to update. If not provided the ID of the calling app will be used. */
|
|
15
15
|
appId?: string;
|
|
16
|
-
/** The definition of the intelligent field. This text will be influential in guiding the LLM to produce the desired results. */
|
|
16
|
+
/** The definition of the intelligent field. This text will be influential in guiding the LLM to produce the desired results. Limited to 5,000 characters. */
|
|
17
17
|
definition?: string;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The lifecycle state for whether this field is evaluated. Use ACTIVE to start
|
|
20
|
+
* evaluating the field and INACTIVE to stop.
|
|
21
|
+
*
|
|
22
|
+
* Each agent has a limit on how many fields may be ACTIVE at once; activating a
|
|
23
|
+
* field beyond that limit is rejected. A field referenced by an active precondition
|
|
24
|
+
* cannot be deactivated.
|
|
25
|
+
*/
|
|
19
26
|
status?: MavenAGI.IntelligentFieldStatus;
|
|
20
27
|
/** A plain text description of the intelligent field. */
|
|
21
28
|
description?: string;
|
|
22
|
-
/** Updated enum options for
|
|
29
|
+
/** Updated enum options for fields that constrain the LLM to a finite set. Omit to leave unchanged. The new list must be a superset of the existing options (add-only; removals are rejected). */
|
|
23
30
|
enumOptions?: MavenAGI.EnumOption[];
|
|
24
|
-
/**
|
|
31
|
+
/** The agent variant to stage this patch in, by reference ID. Its owning app is `variantAppId`. */
|
|
25
32
|
variantId?: MavenAGI.EntityIdBase;
|
|
33
|
+
/** The App ID of the agent variant named by `variantId`. If not provided, the ID of the calling app will be used — name the owning app to patch in a variant the caller does not own, as the platform's own seeded variants are. */
|
|
34
|
+
variantAppId?: string;
|
|
26
35
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* One allowed choice for a field whose value should come from a finite set. Use with
|
|
3
|
+
* MULTI_SELECT to constrain a list of choices, or with STRING/MULTILINE/NUMBER to make
|
|
4
|
+
* the field a single select.
|
|
3
5
|
*/
|
|
4
6
|
export interface EnumOption {
|
|
5
7
|
/** The value of the option */
|
|
@@ -2,6 +2,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
export interface IntelligentFieldBase extends MavenAGI.IntelligentFieldCore {
|
|
3
3
|
/** Target entity type for evaluation. Only CONVERSATION is supported at this time. The backend will return an error for other types. */
|
|
4
4
|
entityType: MavenAGI.EntityType;
|
|
5
|
-
/** ID of the agent variant
|
|
5
|
+
/** ID of the agent variant this field belongs to, if applicable */
|
|
6
6
|
variantId?: MavenAGI.EntityIdWithoutAgent;
|
|
7
7
|
}
|