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
package/errors/MavenAGIError.js
CHANGED
|
@@ -10,7 +10,7 @@ class MavenAGIError extends Error {
|
|
|
10
10
|
if (Error.captureStackTrace) {
|
|
11
11
|
Error.captureStackTrace(this, this.constructor);
|
|
12
12
|
}
|
|
13
|
-
this.name =
|
|
13
|
+
this.name = "MavenAGIError";
|
|
14
14
|
this.statusCode = statusCode;
|
|
15
15
|
this.body = body;
|
|
16
16
|
this.rawResponse = rawResponse;
|
|
@@ -18,6 +18,10 @@ class MavenAGIError extends Error {
|
|
|
18
18
|
this.cause = cause;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
get requestId() {
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
return (_c = (_b = (_a = this.rawResponse) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.get("x-request-id")) !== null && _c !== void 0 ? _c : undefined;
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
exports.MavenAGIError = MavenAGIError;
|
|
23
27
|
function buildMessage({ message, statusCode, body, }) {
|
|
@@ -1,18 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
3
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
37
|
exports.MavenAGITimeoutError = void 0;
|
|
5
|
-
|
|
38
|
+
const errors = __importStar(require("./index"));
|
|
39
|
+
class MavenAGITimeoutError extends errors.MavenAGIError {
|
|
6
40
|
constructor(message, opts) {
|
|
7
|
-
super(
|
|
41
|
+
super({
|
|
42
|
+
message: message,
|
|
43
|
+
cause: opts === null || opts === void 0 ? void 0 : opts.cause,
|
|
44
|
+
});
|
|
8
45
|
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
46
|
if (Error.captureStackTrace) {
|
|
10
47
|
Error.captureStackTrace(this, this.constructor);
|
|
11
48
|
}
|
|
12
|
-
this.name =
|
|
13
|
-
if ((opts === null || opts === void 0 ? void 0 : opts.cause) != null) {
|
|
14
|
-
this.cause = opts.cause;
|
|
15
|
-
}
|
|
49
|
+
this.name = "MavenAGITimeoutError";
|
|
16
50
|
}
|
|
17
51
|
}
|
|
18
52
|
exports.MavenAGITimeoutError = MavenAGITimeoutError;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mavenagi",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.61",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"ts-loader": "^9.5.4",
|
|
29
29
|
"@types/ws": "^8.18.1",
|
|
30
30
|
"vitest": "^4.1.1",
|
|
31
|
-
"@types/node": "^
|
|
31
|
+
"@types/node": "^20.0.0",
|
|
32
32
|
"typescript": "~5.9.3",
|
|
33
33
|
"@biomejs/biome": "2.4.10"
|
|
34
34
|
},
|
package/reference.md
CHANGED
|
@@ -2098,6 +2098,575 @@ await client.assets.commitUpload("assetReferenceId", {});
|
|
|
2098
2098
|
</dl>
|
|
2099
2099
|
|
|
2100
2100
|
|
|
2101
|
+
</dd>
|
|
2102
|
+
</dl>
|
|
2103
|
+
</details>
|
|
2104
|
+
|
|
2105
|
+
## Charters
|
|
2106
|
+
<details><summary><code>client.charters.<a href="/src/api/resources/charters/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.CharterResponse</code></summary>
|
|
2107
|
+
<dl>
|
|
2108
|
+
<dd>
|
|
2109
|
+
|
|
2110
|
+
#### 📝 Description
|
|
2111
|
+
|
|
2112
|
+
<dl>
|
|
2113
|
+
<dd>
|
|
2114
|
+
|
|
2115
|
+
<dl>
|
|
2116
|
+
<dd>
|
|
2117
|
+
|
|
2118
|
+
Create a new charter or update an existing one. Charters are governing
|
|
2119
|
+
documents that combine a precondition (when the charter applies), a manual
|
|
2120
|
+
(what the LLM should do), and the knowledge bases and actions the charter
|
|
2121
|
+
makes available.
|
|
2122
|
+
|
|
2123
|
+
All charters in an agent form a tree (forest / multi-roots). When a
|
|
2124
|
+
charter is matched on a round, all its ancestor charters will be
|
|
2125
|
+
incorporated. Non-leaf charters are referred to as a charter group.
|
|
2126
|
+
|
|
2127
|
+
Charters may specify a 0-indexed custom `userRank` that indicates
|
|
2128
|
+
preferences among its siblings. The rank is currently only meaningful
|
|
2129
|
+
for leaf charters as we enforce mutual exclusion among the leafs and
|
|
2130
|
+
pick only the highest ranked (lowest numerical value) leaf to include in
|
|
2131
|
+
the round. userRank may have gaps.
|
|
2132
|
+
</dd>
|
|
2133
|
+
</dl>
|
|
2134
|
+
</dd>
|
|
2135
|
+
</dl>
|
|
2136
|
+
|
|
2137
|
+
#### 🔌 Usage
|
|
2138
|
+
|
|
2139
|
+
<dl>
|
|
2140
|
+
<dd>
|
|
2141
|
+
|
|
2142
|
+
<dl>
|
|
2143
|
+
<dd>
|
|
2144
|
+
|
|
2145
|
+
```typescript
|
|
2146
|
+
await client.charters.createOrUpdate({
|
|
2147
|
+
charterId: {
|
|
2148
|
+
referenceId: "cancellation-flow"
|
|
2149
|
+
},
|
|
2150
|
+
name: "Cancellation Flow",
|
|
2151
|
+
manual: "Guide the user through the cancellation process with empathy. Always confirm their intent before proceeding.",
|
|
2152
|
+
precondition: {
|
|
2153
|
+
preconditionType: "conversation",
|
|
2154
|
+
value: {
|
|
2155
|
+
conversationPreconditionType: "tags",
|
|
2156
|
+
tags: new Set(["cancellation"])
|
|
2157
|
+
}
|
|
2158
|
+
},
|
|
2159
|
+
status: "ACTIVE",
|
|
2160
|
+
type: "STANDARD",
|
|
2161
|
+
references: {
|
|
2162
|
+
knowledgeBases: [],
|
|
2163
|
+
actionIds: []
|
|
2164
|
+
}
|
|
2165
|
+
});
|
|
2166
|
+
|
|
2167
|
+
```
|
|
2168
|
+
</dd>
|
|
2169
|
+
</dl>
|
|
2170
|
+
</dd>
|
|
2171
|
+
</dl>
|
|
2172
|
+
|
|
2173
|
+
#### ⚙️ Parameters
|
|
2174
|
+
|
|
2175
|
+
<dl>
|
|
2176
|
+
<dd>
|
|
2177
|
+
|
|
2178
|
+
<dl>
|
|
2179
|
+
<dd>
|
|
2180
|
+
|
|
2181
|
+
**request:** `MavenAGI.CharterRequest`
|
|
2182
|
+
|
|
2183
|
+
</dd>
|
|
2184
|
+
</dl>
|
|
2185
|
+
|
|
2186
|
+
<dl>
|
|
2187
|
+
<dd>
|
|
2188
|
+
|
|
2189
|
+
**requestOptions:** `ChartersClient.RequestOptions`
|
|
2190
|
+
|
|
2191
|
+
</dd>
|
|
2192
|
+
</dl>
|
|
2193
|
+
</dd>
|
|
2194
|
+
</dl>
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
</dd>
|
|
2198
|
+
</dl>
|
|
2199
|
+
</details>
|
|
2200
|
+
|
|
2201
|
+
<details><summary><code>client.charters.<a href="/src/api/resources/charters/client/Client.ts">get</a>(charterReferenceId, { ...params }) -> MavenAGI.CharterResponse</code></summary>
|
|
2202
|
+
<dl>
|
|
2203
|
+
<dd>
|
|
2204
|
+
|
|
2205
|
+
#### 📝 Description
|
|
2206
|
+
|
|
2207
|
+
<dl>
|
|
2208
|
+
<dd>
|
|
2209
|
+
|
|
2210
|
+
<dl>
|
|
2211
|
+
<dd>
|
|
2212
|
+
|
|
2213
|
+
Get a charter by its reference ID.
|
|
2214
|
+
</dd>
|
|
2215
|
+
</dl>
|
|
2216
|
+
</dd>
|
|
2217
|
+
</dl>
|
|
2218
|
+
|
|
2219
|
+
#### 🔌 Usage
|
|
2220
|
+
|
|
2221
|
+
<dl>
|
|
2222
|
+
<dd>
|
|
2223
|
+
|
|
2224
|
+
<dl>
|
|
2225
|
+
<dd>
|
|
2226
|
+
|
|
2227
|
+
```typescript
|
|
2228
|
+
await client.charters.get("cancellation-flow");
|
|
2229
|
+
|
|
2230
|
+
```
|
|
2231
|
+
</dd>
|
|
2232
|
+
</dl>
|
|
2233
|
+
</dd>
|
|
2234
|
+
</dl>
|
|
2235
|
+
|
|
2236
|
+
#### ⚙️ Parameters
|
|
2237
|
+
|
|
2238
|
+
<dl>
|
|
2239
|
+
<dd>
|
|
2240
|
+
|
|
2241
|
+
<dl>
|
|
2242
|
+
<dd>
|
|
2243
|
+
|
|
2244
|
+
**charterReferenceId:** `string` — The reference ID of the charter to get. All other entity ID fields are inferred from the request.
|
|
2245
|
+
|
|
2246
|
+
</dd>
|
|
2247
|
+
</dl>
|
|
2248
|
+
|
|
2249
|
+
<dl>
|
|
2250
|
+
<dd>
|
|
2251
|
+
|
|
2252
|
+
**request:** `MavenAGI.CharterGetRequest`
|
|
2253
|
+
|
|
2254
|
+
</dd>
|
|
2255
|
+
</dl>
|
|
2256
|
+
|
|
2257
|
+
<dl>
|
|
2258
|
+
<dd>
|
|
2259
|
+
|
|
2260
|
+
**requestOptions:** `ChartersClient.RequestOptions`
|
|
2261
|
+
|
|
2262
|
+
</dd>
|
|
2263
|
+
</dl>
|
|
2264
|
+
</dd>
|
|
2265
|
+
</dl>
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
</dd>
|
|
2269
|
+
</dl>
|
|
2270
|
+
</details>
|
|
2271
|
+
|
|
2272
|
+
<details><summary><code>client.charters.<a href="/src/api/resources/charters/client/Client.ts">patch</a>(charterReferenceId, { ...params }) -> MavenAGI.CharterResponse</code></summary>
|
|
2273
|
+
<dl>
|
|
2274
|
+
<dd>
|
|
2275
|
+
|
|
2276
|
+
#### 📝 Description
|
|
2277
|
+
|
|
2278
|
+
<dl>
|
|
2279
|
+
<dd>
|
|
2280
|
+
|
|
2281
|
+
<dl>
|
|
2282
|
+
<dd>
|
|
2283
|
+
|
|
2284
|
+
Update mutable fields on a charter. Only provided fields are modified.
|
|
2285
|
+
|
|
2286
|
+
To move a charter within the tree, set `parentCharterId`.
|
|
2287
|
+
To promote to root level, set `parentCharterId` explicitly to null.
|
|
2288
|
+
|
|
2289
|
+
**Status behavior**:
|
|
2290
|
+
- Setting `status` to `INACTIVE` applies only to the targeted charter;
|
|
2291
|
+
it does not cascade to descendants. However, its descendants will no
|
|
2292
|
+
longer be incorporated at runtime.
|
|
2293
|
+
- Setting `status` to `ACTIVE` applies only to the targeted charter.
|
|
2294
|
+
The caller is responsible for ensuring ancestor charters are also `ACTIVE`
|
|
2295
|
+
if the full subtree should be reachable at runtime.
|
|
2296
|
+
|
|
2297
|
+
**userRank conflict resolution**: When `userRank` is set to a value already held by a
|
|
2298
|
+
sibling, siblings at that rank and above are shifted up by 1 (like linked list semantics).
|
|
2299
|
+
The caller does not need to manage uniqueness explicitly.
|
|
2300
|
+
</dd>
|
|
2301
|
+
</dl>
|
|
2302
|
+
</dd>
|
|
2303
|
+
</dl>
|
|
2304
|
+
|
|
2305
|
+
#### 🔌 Usage
|
|
2306
|
+
|
|
2307
|
+
<dl>
|
|
2308
|
+
<dd>
|
|
2309
|
+
|
|
2310
|
+
<dl>
|
|
2311
|
+
<dd>
|
|
2312
|
+
|
|
2313
|
+
```typescript
|
|
2314
|
+
await client.charters.patch("cancellation-flow", {
|
|
2315
|
+
precondition: {
|
|
2316
|
+
preconditionType: "conversation",
|
|
2317
|
+
value: {
|
|
2318
|
+
conversationPreconditionType: "tags",
|
|
2319
|
+
tags: new Set(["cancellation"])
|
|
2320
|
+
}
|
|
2321
|
+
},
|
|
2322
|
+
status: "ACTIVE"
|
|
2323
|
+
});
|
|
2324
|
+
|
|
2325
|
+
```
|
|
2326
|
+
</dd>
|
|
2327
|
+
</dl>
|
|
2328
|
+
</dd>
|
|
2329
|
+
</dl>
|
|
2330
|
+
|
|
2331
|
+
#### ⚙️ Parameters
|
|
2332
|
+
|
|
2333
|
+
<dl>
|
|
2334
|
+
<dd>
|
|
2335
|
+
|
|
2336
|
+
<dl>
|
|
2337
|
+
<dd>
|
|
2338
|
+
|
|
2339
|
+
**charterReferenceId:** `string` — The reference ID of the charter to patch.
|
|
2340
|
+
|
|
2341
|
+
</dd>
|
|
2342
|
+
</dl>
|
|
2343
|
+
|
|
2344
|
+
<dl>
|
|
2345
|
+
<dd>
|
|
2346
|
+
|
|
2347
|
+
**request:** `MavenAGI.CharterPatchRequest`
|
|
2348
|
+
|
|
2349
|
+
</dd>
|
|
2350
|
+
</dl>
|
|
2351
|
+
|
|
2352
|
+
<dl>
|
|
2353
|
+
<dd>
|
|
2354
|
+
|
|
2355
|
+
**requestOptions:** `ChartersClient.RequestOptions`
|
|
2356
|
+
|
|
2357
|
+
</dd>
|
|
2358
|
+
</dl>
|
|
2359
|
+
</dd>
|
|
2360
|
+
</dl>
|
|
2361
|
+
|
|
2362
|
+
|
|
2363
|
+
</dd>
|
|
2364
|
+
</dl>
|
|
2365
|
+
</details>
|
|
2366
|
+
|
|
2367
|
+
<details><summary><code>client.charters.<a href="/src/api/resources/charters/client/Client.ts">delete</a>(charterReferenceId, { ...params }) -> MavenAGI.CharterResponse</code></summary>
|
|
2368
|
+
<dl>
|
|
2369
|
+
<dd>
|
|
2370
|
+
|
|
2371
|
+
#### 📝 Description
|
|
2372
|
+
|
|
2373
|
+
<dl>
|
|
2374
|
+
<dd>
|
|
2375
|
+
|
|
2376
|
+
<dl>
|
|
2377
|
+
<dd>
|
|
2378
|
+
|
|
2379
|
+
Delete a charter and all of its descendants recursively.
|
|
2380
|
+
|
|
2381
|
+
The charter must be set to `INACTIVE` before it can be deleted. This prevents accidental
|
|
2382
|
+
deletion of active charters. Descendant charters may be in any status — they will be
|
|
2383
|
+
soft-deleted regardless.
|
|
2384
|
+
|
|
2385
|
+
Deleted charters are excluded from list results but can be retrieved by ID for archival purposes.
|
|
2386
|
+
|
|
2387
|
+
Deleted charters cannot be modified.
|
|
2388
|
+
</dd>
|
|
2389
|
+
</dl>
|
|
2390
|
+
</dd>
|
|
2391
|
+
</dl>
|
|
2392
|
+
|
|
2393
|
+
#### 🔌 Usage
|
|
2394
|
+
|
|
2395
|
+
<dl>
|
|
2396
|
+
<dd>
|
|
2397
|
+
|
|
2398
|
+
<dl>
|
|
2399
|
+
<dd>
|
|
2400
|
+
|
|
2401
|
+
```typescript
|
|
2402
|
+
await client.charters.delete("cancellation-flow");
|
|
2403
|
+
|
|
2404
|
+
```
|
|
2405
|
+
</dd>
|
|
2406
|
+
</dl>
|
|
2407
|
+
</dd>
|
|
2408
|
+
</dl>
|
|
2409
|
+
|
|
2410
|
+
#### ⚙️ Parameters
|
|
2411
|
+
|
|
2412
|
+
<dl>
|
|
2413
|
+
<dd>
|
|
2414
|
+
|
|
2415
|
+
<dl>
|
|
2416
|
+
<dd>
|
|
2417
|
+
|
|
2418
|
+
**charterReferenceId:** `string` — The reference ID of the charter to delete.
|
|
2419
|
+
|
|
2420
|
+
</dd>
|
|
2421
|
+
</dl>
|
|
2422
|
+
|
|
2423
|
+
<dl>
|
|
2424
|
+
<dd>
|
|
2425
|
+
|
|
2426
|
+
**request:** `MavenAGI.CharterDeleteRequest`
|
|
2427
|
+
|
|
2428
|
+
</dd>
|
|
2429
|
+
</dl>
|
|
2430
|
+
|
|
2431
|
+
<dl>
|
|
2432
|
+
<dd>
|
|
2433
|
+
|
|
2434
|
+
**requestOptions:** `ChartersClient.RequestOptions`
|
|
2435
|
+
|
|
2436
|
+
</dd>
|
|
2437
|
+
</dl>
|
|
2438
|
+
</dd>
|
|
2439
|
+
</dl>
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
</dd>
|
|
2443
|
+
</dl>
|
|
2444
|
+
</details>
|
|
2445
|
+
|
|
2446
|
+
<details><summary><code>client.charters.<a href="/src/api/resources/charters/client/Client.ts">search</a>({ ...params }) -> MavenAGI.CharterSearchResponse</code></summary>
|
|
2447
|
+
<dl>
|
|
2448
|
+
<dd>
|
|
2449
|
+
|
|
2450
|
+
#### 📝 Description
|
|
2451
|
+
|
|
2452
|
+
<dl>
|
|
2453
|
+
<dd>
|
|
2454
|
+
|
|
2455
|
+
<dl>
|
|
2456
|
+
<dd>
|
|
2457
|
+
|
|
2458
|
+
Search for charters matching the provided filters. Supports filtering by
|
|
2459
|
+
referenced action IDs and knowledge base IDs to find charters that make
|
|
2460
|
+
specific context items available.
|
|
2461
|
+
|
|
2462
|
+
Returns both ACTIVE and INACTIVE charters (DELETED charters are excluded).
|
|
2463
|
+
|
|
2464
|
+
Results are ordered by the `sort` field (defaults to CreatedAt). Use `sortDesc`
|
|
2465
|
+
to control direction (defaults to descending). An empty filter list is
|
|
2466
|
+
equivalent to omitting the field (no filter applied).
|
|
2467
|
+
</dd>
|
|
2468
|
+
</dl>
|
|
2469
|
+
</dd>
|
|
2470
|
+
</dl>
|
|
2471
|
+
|
|
2472
|
+
#### 🔌 Usage
|
|
2473
|
+
|
|
2474
|
+
<dl>
|
|
2475
|
+
<dd>
|
|
2476
|
+
|
|
2477
|
+
<dl>
|
|
2478
|
+
<dd>
|
|
2479
|
+
|
|
2480
|
+
```typescript
|
|
2481
|
+
await client.charters.search({
|
|
2482
|
+
page: 0,
|
|
2483
|
+
size: 20
|
|
2484
|
+
});
|
|
2485
|
+
|
|
2486
|
+
```
|
|
2487
|
+
</dd>
|
|
2488
|
+
</dl>
|
|
2489
|
+
</dd>
|
|
2490
|
+
</dl>
|
|
2491
|
+
|
|
2492
|
+
#### ⚙️ Parameters
|
|
2493
|
+
|
|
2494
|
+
<dl>
|
|
2495
|
+
<dd>
|
|
2496
|
+
|
|
2497
|
+
<dl>
|
|
2498
|
+
<dd>
|
|
2499
|
+
|
|
2500
|
+
**request:** `MavenAGI.CharterSearchRequest`
|
|
2501
|
+
|
|
2502
|
+
</dd>
|
|
2503
|
+
</dl>
|
|
2504
|
+
|
|
2505
|
+
<dl>
|
|
2506
|
+
<dd>
|
|
2507
|
+
|
|
2508
|
+
**requestOptions:** `ChartersClient.RequestOptions`
|
|
2509
|
+
|
|
2510
|
+
</dd>
|
|
2511
|
+
</dl>
|
|
2512
|
+
</dd>
|
|
2513
|
+
</dl>
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
</dd>
|
|
2517
|
+
</dl>
|
|
2518
|
+
</details>
|
|
2519
|
+
|
|
2520
|
+
<details><summary><code>client.charters.<a href="/src/api/resources/charters/client/Client.ts">getAncestors</a>(charterReferenceId, { ...params }) -> MavenAGI.CharterAncestorsResponse</code></summary>
|
|
2521
|
+
<dl>
|
|
2522
|
+
<dd>
|
|
2523
|
+
|
|
2524
|
+
#### 📝 Description
|
|
2525
|
+
|
|
2526
|
+
<dl>
|
|
2527
|
+
<dd>
|
|
2528
|
+
|
|
2529
|
+
<dl>
|
|
2530
|
+
<dd>
|
|
2531
|
+
|
|
2532
|
+
Return a flat list containing the specified charter and all of its ancestors
|
|
2533
|
+
up to the root. Useful for rendering tree context around search results.
|
|
2534
|
+
|
|
2535
|
+
Each entry is a full charter, so an ancestor's references and precondition are
|
|
2536
|
+
readable without a follow-up request per level.
|
|
2537
|
+
|
|
2538
|
+
The list is always finite: charter hierarchies are acyclic, so a charter is never its own
|
|
2539
|
+
ancestor and the walk to the root terminates.
|
|
2540
|
+
|
|
2541
|
+
Returns 404 if the charter does not exist or is deleted.
|
|
2542
|
+
</dd>
|
|
2543
|
+
</dl>
|
|
2544
|
+
</dd>
|
|
2545
|
+
</dl>
|
|
2546
|
+
|
|
2547
|
+
#### 🔌 Usage
|
|
2548
|
+
|
|
2549
|
+
<dl>
|
|
2550
|
+
<dd>
|
|
2551
|
+
|
|
2552
|
+
<dl>
|
|
2553
|
+
<dd>
|
|
2554
|
+
|
|
2555
|
+
```typescript
|
|
2556
|
+
await client.charters.getAncestors("cancellation-step-1");
|
|
2557
|
+
|
|
2558
|
+
```
|
|
2559
|
+
</dd>
|
|
2560
|
+
</dl>
|
|
2561
|
+
</dd>
|
|
2562
|
+
</dl>
|
|
2563
|
+
|
|
2564
|
+
#### ⚙️ Parameters
|
|
2565
|
+
|
|
2566
|
+
<dl>
|
|
2567
|
+
<dd>
|
|
2568
|
+
|
|
2569
|
+
<dl>
|
|
2570
|
+
<dd>
|
|
2571
|
+
|
|
2572
|
+
**charterReferenceId:** `string` — The reference ID of the charter. All other entity ID fields are inferred from the request.
|
|
2573
|
+
|
|
2574
|
+
</dd>
|
|
2575
|
+
</dl>
|
|
2576
|
+
|
|
2577
|
+
<dl>
|
|
2578
|
+
<dd>
|
|
2579
|
+
|
|
2580
|
+
**request:** `MavenAGI.CharterGetAncestorsRequest`
|
|
2581
|
+
|
|
2582
|
+
</dd>
|
|
2583
|
+
</dl>
|
|
2584
|
+
|
|
2585
|
+
<dl>
|
|
2586
|
+
<dd>
|
|
2587
|
+
|
|
2588
|
+
**requestOptions:** `ChartersClient.RequestOptions`
|
|
2589
|
+
|
|
2590
|
+
</dd>
|
|
2591
|
+
</dl>
|
|
2592
|
+
</dd>
|
|
2593
|
+
</dl>
|
|
2594
|
+
|
|
2595
|
+
|
|
2596
|
+
</dd>
|
|
2597
|
+
</dl>
|
|
2598
|
+
</details>
|
|
2599
|
+
|
|
2600
|
+
<details><summary><code>client.charters.<a href="/src/api/resources/charters/client/Client.ts">listChildren</a>({ ...params }) -> MavenAGI.CharterListChildrenResponse</code></summary>
|
|
2601
|
+
<dl>
|
|
2602
|
+
<dd>
|
|
2603
|
+
|
|
2604
|
+
#### 📝 Description
|
|
2605
|
+
|
|
2606
|
+
<dl>
|
|
2607
|
+
<dd>
|
|
2608
|
+
|
|
2609
|
+
<dl>
|
|
2610
|
+
<dd>
|
|
2611
|
+
|
|
2612
|
+
Batch fetch direct children of the specified parent charters. Returns one
|
|
2613
|
+
group per requested parent in the same order as parentIds, with grandchild
|
|
2614
|
+
IDs populated on each child for expandability signals.
|
|
2615
|
+
|
|
2616
|
+
Pass an empty parentIds list to fetch all root-level charters for the agent.
|
|
2617
|
+
Intended to be used for easy BFS traversal, though calling with parents
|
|
2618
|
+
at mixed levels are allowed. Roots and specific parents cannot be mixed
|
|
2619
|
+
in one request.
|
|
2620
|
+
|
|
2621
|
+
DELETED charters are never returned.
|
|
2622
|
+
</dd>
|
|
2623
|
+
</dl>
|
|
2624
|
+
</dd>
|
|
2625
|
+
</dl>
|
|
2626
|
+
|
|
2627
|
+
#### 🔌 Usage
|
|
2628
|
+
|
|
2629
|
+
<dl>
|
|
2630
|
+
<dd>
|
|
2631
|
+
|
|
2632
|
+
<dl>
|
|
2633
|
+
<dd>
|
|
2634
|
+
|
|
2635
|
+
```typescript
|
|
2636
|
+
await client.charters.listChildren({
|
|
2637
|
+
parentIds: []
|
|
2638
|
+
});
|
|
2639
|
+
|
|
2640
|
+
```
|
|
2641
|
+
</dd>
|
|
2642
|
+
</dl>
|
|
2643
|
+
</dd>
|
|
2644
|
+
</dl>
|
|
2645
|
+
|
|
2646
|
+
#### ⚙️ Parameters
|
|
2647
|
+
|
|
2648
|
+
<dl>
|
|
2649
|
+
<dd>
|
|
2650
|
+
|
|
2651
|
+
<dl>
|
|
2652
|
+
<dd>
|
|
2653
|
+
|
|
2654
|
+
**request:** `MavenAGI.CharterListChildrenRequest`
|
|
2655
|
+
|
|
2656
|
+
</dd>
|
|
2657
|
+
</dl>
|
|
2658
|
+
|
|
2659
|
+
<dl>
|
|
2660
|
+
<dd>
|
|
2661
|
+
|
|
2662
|
+
**requestOptions:** `ChartersClient.RequestOptions`
|
|
2663
|
+
|
|
2664
|
+
</dd>
|
|
2665
|
+
</dl>
|
|
2666
|
+
</dd>
|
|
2667
|
+
</dl>
|
|
2668
|
+
|
|
2669
|
+
|
|
2101
2670
|
</dd>
|
|
2102
2671
|
</dl>
|
|
2103
2672
|
</details>
|
|
@@ -4618,7 +5187,12 @@ await client.integrations.update("organizationId", "integrationId", {});
|
|
|
4618
5187
|
<dl>
|
|
4619
5188
|
<dd>
|
|
4620
5189
|
|
|
4621
|
-
Create a new intelligent field
|
|
5190
|
+
Create a new intelligent field, or replace it if one already exists with the same
|
|
5191
|
+
`fieldId.referenceId`. Intelligent fields hold LLM-generated values computed for
|
|
5192
|
+
entities such as conversations.
|
|
5193
|
+
|
|
5194
|
+
New fields are created with `status: INACTIVE` and are not evaluated until activated
|
|
5195
|
+
with the patch endpoint. `definition` is limited to 5,000 characters.
|
|
4622
5196
|
</dd>
|
|
4623
5197
|
</dl>
|
|
4624
5198
|
</dd>
|
|
@@ -4771,7 +5345,12 @@ await client.intelligentFields.get("ticket-priority");
|
|
|
4771
5345
|
<dl>
|
|
4772
5346
|
<dd>
|
|
4773
5347
|
|
|
4774
|
-
|
|
5348
|
+
Update the mutable properties of an intelligent field. Only the properties present in
|
|
5349
|
+
the request body are changed.
|
|
5350
|
+
|
|
5351
|
+
This is also how a field is activated and deactivated: set `status` to `ACTIVE` to
|
|
5352
|
+
start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
|
|
5353
|
+
cannot be changed after creation.
|
|
4775
5354
|
</dd>
|
|
4776
5355
|
</dl>
|
|
4777
5356
|
</dd>
|
|
@@ -4921,7 +5500,12 @@ await client.intelligentFields.delete("ticket-priority");
|
|
|
4921
5500
|
<dl>
|
|
4922
5501
|
<dd>
|
|
4923
5502
|
|
|
4924
|
-
Search
|
|
5503
|
+
Search the values that have been computed for intelligent fields, across entities.
|
|
5504
|
+
Supports filtering by properties of the field, by target entity, and by when the
|
|
5505
|
+
value was computed.
|
|
5506
|
+
|
|
5507
|
+
Values only exist for fields that were ACTIVE when the entity was evaluated, so a
|
|
5508
|
+
newly activated field returns nothing until evaluation has run.
|
|
4925
5509
|
</dd>
|
|
4926
5510
|
</dl>
|
|
4927
5511
|
</dd>
|