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/BaseClient.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ export type BaseClientOptions = {
|
|
|
21
21
|
fetcher?: core.FetchFunction;
|
|
22
22
|
/** Configure logging for the client. */
|
|
23
23
|
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
24
|
+
/** Default options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
|
|
25
|
+
stream?: {
|
|
26
|
+
reconnectionEnabled?: boolean;
|
|
27
|
+
maxReconnectionAttempts?: number;
|
|
28
|
+
};
|
|
24
29
|
/** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
|
|
25
30
|
auth?: AuthOption;
|
|
26
31
|
} & BasicAuthProvider.AuthOptions;
|
|
@@ -37,8 +42,15 @@ export interface BaseRequestOptions {
|
|
|
37
42
|
agentId?: string;
|
|
38
43
|
/** Additional query string parameters to include in the request. */
|
|
39
44
|
queryParams?: Record<string, unknown>;
|
|
45
|
+
/** A dictionary containing additional parameters to spread into the request's body. */
|
|
46
|
+
additionalBodyParameters?: Record<string, unknown>;
|
|
40
47
|
/** Additional headers to include in the request. */
|
|
41
48
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
49
|
+
/** Options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
|
|
50
|
+
stream?: {
|
|
51
|
+
reconnectionEnabled?: boolean;
|
|
52
|
+
maxReconnectionAttempts?: number;
|
|
53
|
+
};
|
|
42
54
|
}
|
|
43
55
|
export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
|
|
44
56
|
logging: core.logging.Logger;
|
package/BaseClient.js
CHANGED
|
@@ -40,17 +40,19 @@ const BasicAuthProvider_1 = require("./auth/BasicAuthProvider");
|
|
|
40
40
|
const core = __importStar(require("./core"));
|
|
41
41
|
const headers_1 = require("./core/headers");
|
|
42
42
|
function normalizeClientOptions(options) {
|
|
43
|
+
var _a, _b;
|
|
43
44
|
const headers = (0, headers_1.mergeHeaders)({
|
|
44
45
|
"X-Fern-Language": "JavaScript",
|
|
45
46
|
"X-Fern-SDK-Name": "mavenagi",
|
|
46
|
-
"X-Fern-SDK-Version": "1.2.
|
|
47
|
-
"User-Agent": "mavenagi/1.2.
|
|
47
|
+
"X-Fern-SDK-Version": "1.2.61",
|
|
48
|
+
"User-Agent": "mavenagi/1.2.61",
|
|
48
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
51
|
"X-Organization-Id": options === null || options === void 0 ? void 0 : options.organizationId,
|
|
51
52
|
"X-Agent-Id": options === null || options === void 0 ? void 0 : options.agentId,
|
|
52
53
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
53
|
-
|
|
54
|
+
const baseUrl = (_a = options === null || options === void 0 ? void 0 : options.baseUrl) !== null && _a !== void 0 ? _a : ((options === null || options === void 0 ? void 0 : options.environment) == null ? (_b = process.env) === null || _b === void 0 ? void 0 : _b.MAVENAGI_BASE_URL : undefined);
|
|
55
|
+
return Object.assign(Object.assign({}, options), { baseUrl, logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
54
56
|
}
|
|
55
57
|
function normalizeClientOptionsWithAuth(options) {
|
|
56
58
|
var _a;
|
package/Client.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AnalyticsClient } from "./api/resources/analytics/client/Client";
|
|
|
4
4
|
import { AppDirectoryClient } from "./api/resources/appDirectory/client/Client";
|
|
5
5
|
import { AppSettingsClient } from "./api/resources/appSettings/client/Client";
|
|
6
6
|
import { AssetsClient } from "./api/resources/assets/client/Client";
|
|
7
|
+
import { ChartersClient } from "./api/resources/charters/client/Client";
|
|
7
8
|
import { ConversationClient } from "./api/resources/conversation/client/Client";
|
|
8
9
|
import { CustomersClient } from "./api/resources/customers/client/Client";
|
|
9
10
|
import { EventsClient } from "./api/resources/events/client/Client";
|
|
@@ -34,6 +35,7 @@ export declare class MavenAGIClient {
|
|
|
34
35
|
protected _appDirectory: AppDirectoryClient | undefined;
|
|
35
36
|
protected _appSettings: AppSettingsClient | undefined;
|
|
36
37
|
protected _assets: AssetsClient | undefined;
|
|
38
|
+
protected _charters: ChartersClient | undefined;
|
|
37
39
|
protected _conversation: ConversationClient | undefined;
|
|
38
40
|
protected _customers: CustomersClient | undefined;
|
|
39
41
|
protected _events: EventsClient | undefined;
|
|
@@ -55,6 +57,7 @@ export declare class MavenAGIClient {
|
|
|
55
57
|
get appDirectory(): AppDirectoryClient;
|
|
56
58
|
get appSettings(): AppSettingsClient;
|
|
57
59
|
get assets(): AssetsClient;
|
|
60
|
+
get charters(): ChartersClient;
|
|
58
61
|
get conversation(): ConversationClient;
|
|
59
62
|
get customers(): CustomersClient;
|
|
60
63
|
get events(): EventsClient;
|
package/Client.js
CHANGED
|
@@ -50,20 +50,21 @@ const Client_3 = require("./api/resources/analytics/client/Client");
|
|
|
50
50
|
const Client_4 = require("./api/resources/appDirectory/client/Client");
|
|
51
51
|
const Client_5 = require("./api/resources/appSettings/client/Client");
|
|
52
52
|
const Client_6 = require("./api/resources/assets/client/Client");
|
|
53
|
-
const Client_7 = require("./api/resources/
|
|
54
|
-
const Client_8 = require("./api/resources/
|
|
55
|
-
const Client_9 = require("./api/resources/
|
|
56
|
-
const Client_10 = require("./api/resources/
|
|
57
|
-
const Client_11 = require("./api/resources/
|
|
58
|
-
const Client_12 = require("./api/resources/
|
|
59
|
-
const Client_13 = require("./api/resources/
|
|
60
|
-
const Client_14 = require("./api/resources/
|
|
61
|
-
const Client_15 = require("./api/resources/
|
|
62
|
-
const Client_16 = require("./api/resources/
|
|
63
|
-
const Client_17 = require("./api/resources/
|
|
64
|
-
const Client_18 = require("./api/resources/
|
|
65
|
-
const Client_19 = require("./api/resources/
|
|
66
|
-
const Client_20 = require("./api/resources/
|
|
53
|
+
const Client_7 = require("./api/resources/charters/client/Client");
|
|
54
|
+
const Client_8 = require("./api/resources/conversation/client/Client");
|
|
55
|
+
const Client_9 = require("./api/resources/customers/client/Client");
|
|
56
|
+
const Client_10 = require("./api/resources/events/client/Client");
|
|
57
|
+
const Client_11 = require("./api/resources/inbox/client/Client");
|
|
58
|
+
const Client_12 = require("./api/resources/integrations/client/Client");
|
|
59
|
+
const Client_13 = require("./api/resources/intelligentFields/client/Client");
|
|
60
|
+
const Client_14 = require("./api/resources/knowledge/client/Client");
|
|
61
|
+
const Client_15 = require("./api/resources/organizations/client/Client");
|
|
62
|
+
const Client_16 = require("./api/resources/segments/client/Client");
|
|
63
|
+
const Client_17 = require("./api/resources/translations/client/Client");
|
|
64
|
+
const Client_18 = require("./api/resources/triggers/client/Client");
|
|
65
|
+
const Client_19 = require("./api/resources/users/client/Client");
|
|
66
|
+
const Client_20 = require("./api/resources/voice/client/Client");
|
|
67
|
+
const Client_21 = require("./api/resources/voiceConversations/client/Client");
|
|
67
68
|
const BaseClient_1 = require("./BaseClient");
|
|
68
69
|
const core = __importStar(require("./core"));
|
|
69
70
|
class MavenAGIClient {
|
|
@@ -94,61 +95,65 @@ class MavenAGIClient {
|
|
|
94
95
|
var _a;
|
|
95
96
|
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_6.AssetsClient(this._options)));
|
|
96
97
|
}
|
|
98
|
+
get charters() {
|
|
99
|
+
var _a;
|
|
100
|
+
return ((_a = this._charters) !== null && _a !== void 0 ? _a : (this._charters = new Client_7.ChartersClient(this._options)));
|
|
101
|
+
}
|
|
97
102
|
get conversation() {
|
|
98
103
|
var _a;
|
|
99
|
-
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new
|
|
104
|
+
return ((_a = this._conversation) !== null && _a !== void 0 ? _a : (this._conversation = new Client_8.ConversationClient(this._options)));
|
|
100
105
|
}
|
|
101
106
|
get customers() {
|
|
102
107
|
var _a;
|
|
103
|
-
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new
|
|
108
|
+
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Client_9.CustomersClient(this._options)));
|
|
104
109
|
}
|
|
105
110
|
get events() {
|
|
106
111
|
var _a;
|
|
107
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
112
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_10.EventsClient(this._options)));
|
|
108
113
|
}
|
|
109
114
|
get inbox() {
|
|
110
115
|
var _a;
|
|
111
|
-
return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new
|
|
116
|
+
return ((_a = this._inbox) !== null && _a !== void 0 ? _a : (this._inbox = new Client_11.InboxClient(this._options)));
|
|
112
117
|
}
|
|
113
118
|
get integrations() {
|
|
114
119
|
var _a;
|
|
115
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new
|
|
120
|
+
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_12.IntegrationsClient(this._options)));
|
|
116
121
|
}
|
|
117
122
|
get intelligentFields() {
|
|
118
123
|
var _a;
|
|
119
|
-
return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new
|
|
124
|
+
return ((_a = this._intelligentFields) !== null && _a !== void 0 ? _a : (this._intelligentFields = new Client_13.IntelligentFieldsClient(this._options)));
|
|
120
125
|
}
|
|
121
126
|
get knowledge() {
|
|
122
127
|
var _a;
|
|
123
|
-
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new
|
|
128
|
+
return ((_a = this._knowledge) !== null && _a !== void 0 ? _a : (this._knowledge = new Client_14.KnowledgeClient(this._options)));
|
|
124
129
|
}
|
|
125
130
|
get organizations() {
|
|
126
131
|
var _a;
|
|
127
|
-
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new
|
|
132
|
+
return ((_a = this._organizations) !== null && _a !== void 0 ? _a : (this._organizations = new Client_15.OrganizationsClient(this._options)));
|
|
128
133
|
}
|
|
129
134
|
get segments() {
|
|
130
135
|
var _a;
|
|
131
|
-
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new
|
|
136
|
+
return ((_a = this._segments) !== null && _a !== void 0 ? _a : (this._segments = new Client_16.SegmentsClient(this._options)));
|
|
132
137
|
}
|
|
133
138
|
get translations() {
|
|
134
139
|
var _a;
|
|
135
|
-
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new
|
|
140
|
+
return ((_a = this._translations) !== null && _a !== void 0 ? _a : (this._translations = new Client_17.TranslationsClient(this._options)));
|
|
136
141
|
}
|
|
137
142
|
get triggers() {
|
|
138
143
|
var _a;
|
|
139
|
-
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new
|
|
144
|
+
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_18.TriggersClient(this._options)));
|
|
140
145
|
}
|
|
141
146
|
get users() {
|
|
142
147
|
var _a;
|
|
143
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
148
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_19.UsersClient(this._options)));
|
|
144
149
|
}
|
|
145
150
|
get voiceConversations() {
|
|
146
151
|
var _a;
|
|
147
|
-
return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new
|
|
152
|
+
return ((_a = this._voiceConversations) !== null && _a !== void 0 ? _a : (this._voiceConversations = new Client_21.VoiceConversationsClient(this._options)));
|
|
148
153
|
}
|
|
149
154
|
get voice() {
|
|
150
155
|
var _a;
|
|
151
|
-
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new
|
|
156
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_20.VoiceClient(this._options)));
|
|
152
157
|
}
|
|
153
158
|
/**
|
|
154
159
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -19,6 +19,8 @@ export declare class ActionsClient {
|
|
|
19
19
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
20
20
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
21
21
|
* @throws {@link MavenAGI.ServerError}
|
|
22
|
+
* @throws {@link errors.MavenAGIError}
|
|
23
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
22
24
|
*
|
|
23
25
|
* @example
|
|
24
26
|
* await client.actions.search({})
|
|
@@ -36,6 +38,8 @@ export declare class ActionsClient {
|
|
|
36
38
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
37
39
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
38
40
|
* @throws {@link MavenAGI.ServerError}
|
|
41
|
+
* @throws {@link errors.MavenAGIError}
|
|
42
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
39
43
|
*
|
|
40
44
|
* @example
|
|
41
45
|
* await client.actions.createOrUpdate({
|
|
@@ -74,6 +78,8 @@ export declare class ActionsClient {
|
|
|
74
78
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
75
79
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
76
80
|
* @throws {@link MavenAGI.ServerError}
|
|
81
|
+
* @throws {@link errors.MavenAGIError}
|
|
82
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
77
83
|
*
|
|
78
84
|
* @example
|
|
79
85
|
* await client.actions.get("get-balance")
|
|
@@ -95,6 +101,8 @@ export declare class ActionsClient {
|
|
|
95
101
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
96
102
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
97
103
|
* @throws {@link MavenAGI.ServerError}
|
|
104
|
+
* @throws {@link errors.MavenAGIError}
|
|
105
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
98
106
|
*
|
|
99
107
|
* @example
|
|
100
108
|
* await client.actions.patch("get-balance", {
|
|
@@ -122,6 +130,8 @@ export declare class ActionsClient {
|
|
|
122
130
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
123
131
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
124
132
|
* @throws {@link MavenAGI.ServerError}
|
|
133
|
+
* @throws {@link errors.MavenAGIError}
|
|
134
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
125
135
|
*
|
|
126
136
|
* @example
|
|
127
137
|
* await client.actions.delete("get-balance")
|
|
@@ -47,6 +47,7 @@ exports.ActionsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -65,6 +66,8 @@ class ActionsClient {
|
|
|
65
66
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
66
67
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
67
68
|
* @throws {@link MavenAGI.ServerError}
|
|
69
|
+
* @throws {@link errors.MavenAGIError}
|
|
70
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
68
71
|
*
|
|
69
72
|
* @example
|
|
70
73
|
* await client.actions.search({})
|
|
@@ -87,7 +90,7 @@ class ActionsClient {
|
|
|
87
90
|
contentType: "application/json",
|
|
88
91
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
89
92
|
requestType: "json",
|
|
90
|
-
body: serializers.ActionsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
93
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ActionsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
91
94
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
92
95
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
93
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -164,6 +167,8 @@ class ActionsClient {
|
|
|
164
167
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
165
168
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
166
169
|
* @throws {@link MavenAGI.ServerError}
|
|
170
|
+
* @throws {@link errors.MavenAGIError}
|
|
171
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
167
172
|
*
|
|
168
173
|
* @example
|
|
169
174
|
* await client.actions.createOrUpdate({
|
|
@@ -206,7 +211,7 @@ class ActionsClient {
|
|
|
206
211
|
contentType: "application/json",
|
|
207
212
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
208
213
|
requestType: "json",
|
|
209
|
-
body: serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
214
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ActionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
210
215
|
timeoutMs: ((_l = (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.timeoutInSeconds) !== null && _l !== void 0 ? _l : 60) * 1000,
|
|
211
216
|
maxRetries: (_m = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _m !== void 0 ? _m : (_o = this._options) === null || _o === void 0 ? void 0 : _o.maxRetries,
|
|
212
217
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -284,6 +289,8 @@ class ActionsClient {
|
|
|
284
289
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
285
290
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
286
291
|
* @throws {@link MavenAGI.ServerError}
|
|
292
|
+
* @throws {@link errors.MavenAGIError}
|
|
293
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
287
294
|
*
|
|
288
295
|
* @example
|
|
289
296
|
* await client.actions.get("get-balance")
|
|
@@ -392,6 +399,8 @@ class ActionsClient {
|
|
|
392
399
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
393
400
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
394
401
|
* @throws {@link MavenAGI.ServerError}
|
|
402
|
+
* @throws {@link errors.MavenAGIError}
|
|
403
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
395
404
|
*
|
|
396
405
|
* @example
|
|
397
406
|
* await client.actions.patch("get-balance", {
|
|
@@ -424,7 +433,7 @@ class ActionsClient {
|
|
|
424
433
|
contentType: "application/merge-patch+json",
|
|
425
434
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
426
435
|
requestType: "json",
|
|
427
|
-
body: serializers.ActionPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
436
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.ActionPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
428
437
|
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,
|
|
429
438
|
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,
|
|
430
439
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -501,6 +510,8 @@ class ActionsClient {
|
|
|
501
510
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
502
511
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
503
512
|
* @throws {@link MavenAGI.ServerError}
|
|
513
|
+
* @throws {@link errors.MavenAGIError}
|
|
514
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
504
515
|
*
|
|
505
516
|
* @example
|
|
506
517
|
* await client.actions.delete("get-balance")
|
|
@@ -25,6 +25,8 @@ export declare class AgentsClient {
|
|
|
25
25
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
26
26
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
27
27
|
* @throws {@link MavenAGI.ServerError}
|
|
28
|
+
* @throws {@link errors.MavenAGIError}
|
|
29
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
28
30
|
*
|
|
29
31
|
* @example
|
|
30
32
|
* await client.agents.search({})
|
|
@@ -42,6 +44,8 @@ export declare class AgentsClient {
|
|
|
42
44
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
43
45
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
44
46
|
* @throws {@link MavenAGI.ServerError}
|
|
47
|
+
* @throws {@link errors.MavenAGIError}
|
|
48
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
45
49
|
*
|
|
46
50
|
* @example
|
|
47
51
|
* await client.agents.list("organizationReferenceId")
|
|
@@ -65,6 +69,8 @@ export declare class AgentsClient {
|
|
|
65
69
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
66
70
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
67
71
|
* @throws {@link MavenAGI.ServerError}
|
|
72
|
+
* @throws {@link errors.MavenAGIError}
|
|
73
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
68
74
|
*
|
|
69
75
|
* @example
|
|
70
76
|
* await client.agents.create("organizationReferenceId", "agentReferenceId", {
|
|
@@ -86,6 +92,8 @@ export declare class AgentsClient {
|
|
|
86
92
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
87
93
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
88
94
|
* @throws {@link MavenAGI.ServerError}
|
|
95
|
+
* @throws {@link errors.MavenAGIError}
|
|
96
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
89
97
|
*
|
|
90
98
|
* @example
|
|
91
99
|
* await client.agents.get("organizationReferenceId", "agentReferenceId")
|
|
@@ -110,6 +118,8 @@ export declare class AgentsClient {
|
|
|
110
118
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
111
119
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
112
120
|
* @throws {@link MavenAGI.ServerError}
|
|
121
|
+
* @throws {@link errors.MavenAGIError}
|
|
122
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
113
123
|
*
|
|
114
124
|
* @example
|
|
115
125
|
* await client.agents.patch("organizationReferenceId", "agentReferenceId")
|
|
@@ -132,6 +142,8 @@ export declare class AgentsClient {
|
|
|
132
142
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
133
143
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
134
144
|
* @throws {@link MavenAGI.ServerError}
|
|
145
|
+
* @throws {@link errors.MavenAGIError}
|
|
146
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
135
147
|
*
|
|
136
148
|
* @example
|
|
137
149
|
* await client.agents.delete("organizationReferenceId", "agentReferenceId")
|
|
@@ -47,6 +47,7 @@ exports.AgentsClient = 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"));
|
|
@@ -71,6 +72,8 @@ class AgentsClient {
|
|
|
71
72
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
72
73
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
73
74
|
* @throws {@link MavenAGI.ServerError}
|
|
75
|
+
* @throws {@link errors.MavenAGIError}
|
|
76
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
74
77
|
*
|
|
75
78
|
* @example
|
|
76
79
|
* await client.agents.search({})
|
|
@@ -93,7 +96,7 @@ class AgentsClient {
|
|
|
93
96
|
contentType: "application/json",
|
|
94
97
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
95
98
|
requestType: "json",
|
|
96
|
-
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
99
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
97
100
|
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,
|
|
98
101
|
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,
|
|
99
102
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -170,6 +173,8 @@ class AgentsClient {
|
|
|
170
173
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
171
174
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
172
175
|
* @throws {@link MavenAGI.ServerError}
|
|
176
|
+
* @throws {@link errors.MavenAGIError}
|
|
177
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
173
178
|
*
|
|
174
179
|
* @example
|
|
175
180
|
* await client.agents.list("organizationReferenceId")
|
|
@@ -272,6 +277,8 @@ class AgentsClient {
|
|
|
272
277
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
273
278
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
274
279
|
* @throws {@link MavenAGI.ServerError}
|
|
280
|
+
* @throws {@link errors.MavenAGIError}
|
|
281
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
275
282
|
*
|
|
276
283
|
* @example
|
|
277
284
|
* await client.agents.create("organizationReferenceId", "agentReferenceId", {
|
|
@@ -297,7 +304,7 @@ class AgentsClient {
|
|
|
297
304
|
contentType: "application/json",
|
|
298
305
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
299
306
|
requestType: "json",
|
|
300
|
-
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
307
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
301
308
|
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,
|
|
302
309
|
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,
|
|
303
310
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -375,6 +382,8 @@ class AgentsClient {
|
|
|
375
382
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
376
383
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
377
384
|
* @throws {@link MavenAGI.ServerError}
|
|
385
|
+
* @throws {@link errors.MavenAGIError}
|
|
386
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
378
387
|
*
|
|
379
388
|
* @example
|
|
380
389
|
* await client.agents.get("organizationReferenceId", "agentReferenceId")
|
|
@@ -478,6 +487,8 @@ class AgentsClient {
|
|
|
478
487
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
479
488
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
480
489
|
* @throws {@link MavenAGI.ServerError}
|
|
490
|
+
* @throws {@link errors.MavenAGIError}
|
|
491
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
481
492
|
*
|
|
482
493
|
* @example
|
|
483
494
|
* await client.agents.patch("organizationReferenceId", "agentReferenceId")
|
|
@@ -500,7 +511,7 @@ class AgentsClient {
|
|
|
500
511
|
contentType: "application/merge-patch+json",
|
|
501
512
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
502
513
|
requestType: "json",
|
|
503
|
-
body: serializers.AgentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
514
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(serializers.AgentPatchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
504
515
|
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,
|
|
505
516
|
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,
|
|
506
517
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -582,6 +593,8 @@ class AgentsClient {
|
|
|
582
593
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
583
594
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
584
595
|
* @throws {@link MavenAGI.ServerError}
|
|
596
|
+
* @throws {@link errors.MavenAGIError}
|
|
597
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
585
598
|
*
|
|
586
599
|
* @example
|
|
587
600
|
* await client.agents.delete("organizationReferenceId", "agentReferenceId")
|
|
@@ -14,16 +14,16 @@ export interface AgentPatchRequest {
|
|
|
14
14
|
enabledPiiCategories?: Set<MavenAGI.PiiCategory>;
|
|
15
15
|
/** The system fallback message. */
|
|
16
16
|
systemFallbackMessage?: string | null;
|
|
17
|
-
/** Deprecated. Superseded by charters, which determine agent behavior per
|
|
17
|
+
/** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
|
|
18
18
|
persona?: MavenAGI.LlmPersona;
|
|
19
|
-
/** Deprecated. Superseded by charters, which determine agent behavior per
|
|
19
|
+
/** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
|
|
20
20
|
additionalPromptText?: string | null;
|
|
21
21
|
/** LLM prompt for category generation. */
|
|
22
22
|
categoryGenerationPromptText?: string | null;
|
|
23
23
|
/** LLM prompt for generating a response when the user's question has been detected as unsafe. */
|
|
24
24
|
contentSafetyViolationResponsePromptText?: string | null;
|
|
25
25
|
/**
|
|
26
|
-
* Deprecated. Superseded by charters, which determine agent behavior per
|
|
26
|
+
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
27
27
|
*
|
|
28
28
|
* Return the system fallback message on all questions that have no relevant knowledge bases or actions.
|
|
29
29
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface AgentPrompting {
|
|
3
|
-
/** Deprecated. Superseded by charters, which determine agent behavior per
|
|
3
|
+
/** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
|
|
4
4
|
persona: MavenAGI.LlmPersona;
|
|
5
|
-
/** Deprecated. Superseded by charters, which determine agent behavior per
|
|
5
|
+
/** Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters. */
|
|
6
6
|
additionalPromptText?: string;
|
|
7
7
|
/**
|
|
8
8
|
* LLM prompt for category generation.
|
|
@@ -19,7 +19,7 @@ export interface AgentPrompting {
|
|
|
19
19
|
*/
|
|
20
20
|
contentSafetyViolationResponsePromptText?: string;
|
|
21
21
|
/**
|
|
22
|
-
* Deprecated. Superseded by charters, which determine agent behavior per
|
|
22
|
+
* Deprecated. Superseded by charters, which determine agent behavior per round. Has no effect for agents using charters.
|
|
23
23
|
*
|
|
24
24
|
* Return the system fallback message on all questions that have no relevant knowledge bases or actions.
|
|
25
25
|
*/
|
|
@@ -21,6 +21,8 @@ export declare class AnalyticsClient {
|
|
|
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.analytics.getConversationTable({
|
|
@@ -65,6 +67,8 @@ export declare class AnalyticsClient {
|
|
|
65
67
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
66
68
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
67
69
|
* @throws {@link MavenAGI.ServerError}
|
|
70
|
+
* @throws {@link errors.MavenAGIError}
|
|
71
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
68
72
|
*
|
|
69
73
|
* @example
|
|
70
74
|
* await client.analytics.getConversationChart({
|
|
@@ -124,6 +128,8 @@ export declare class AnalyticsClient {
|
|
|
124
128
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
125
129
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
126
130
|
* @throws {@link MavenAGI.ServerError}
|
|
131
|
+
* @throws {@link errors.MavenAGIError}
|
|
132
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
127
133
|
*/
|
|
128
134
|
exportConversationTable(request: MavenAGI.ConversationTableRequest, requestOptions?: AnalyticsClient.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
|
|
129
135
|
private __exportConversationTable;
|
|
@@ -144,6 +150,8 @@ export declare class AnalyticsClient {
|
|
|
144
150
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
145
151
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
146
152
|
* @throws {@link MavenAGI.ServerError}
|
|
153
|
+
* @throws {@link errors.MavenAGIError}
|
|
154
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
147
155
|
*
|
|
148
156
|
* @example
|
|
149
157
|
* await client.analytics.getFeedbackTable({
|
|
@@ -174,6 +182,8 @@ export declare class AnalyticsClient {
|
|
|
174
182
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
175
183
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
176
184
|
* @throws {@link MavenAGI.ServerError}
|
|
185
|
+
* @throws {@link errors.MavenAGIError}
|
|
186
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
177
187
|
*
|
|
178
188
|
* @example
|
|
179
189
|
* await client.analytics.getAgentUserTable({
|
|
@@ -201,6 +211,8 @@ export declare class AnalyticsClient {
|
|
|
201
211
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
202
212
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
203
213
|
* @throws {@link MavenAGI.ServerError}
|
|
214
|
+
* @throws {@link errors.MavenAGIError}
|
|
215
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
204
216
|
*
|
|
205
217
|
* @example
|
|
206
218
|
* await client.analytics.getEventTable({
|
|
@@ -231,6 +243,8 @@ export declare class AnalyticsClient {
|
|
|
231
243
|
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
232
244
|
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
233
245
|
* @throws {@link MavenAGI.ServerError}
|
|
246
|
+
* @throws {@link errors.MavenAGIError}
|
|
247
|
+
* @throws {@link errors.MavenAGITimeoutError}
|
|
234
248
|
*
|
|
235
249
|
* @example
|
|
236
250
|
* await client.analytics.getEventChart({
|