mavenagi 1.2.58 → 1.2.60
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.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +37 -32
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +7 -3
- package/api/resources/agents/client/requests/AgentPatchRequest.d.ts +7 -3
- package/api/resources/agents/types/AgentPrompting.d.ts +7 -3
- package/api/resources/analytics/client/Client.d.ts +7 -1
- package/api/resources/analytics/client/Client.js +7 -1
- package/api/resources/analytics/types/AgentUserRow.d.ts +5 -2
- package/api/resources/analytics/types/AgentUserRowIdentifier.d.ts +5 -0
- package/api/resources/analytics/types/AgentUserRowIdentifier.js +3 -0
- package/api/resources/analytics/types/AgentUserTableResponse.d.ts +7 -0
- package/api/resources/analytics/types/ConversationRow.d.ts +5 -2
- package/api/resources/analytics/types/ConversationRowIdentifier.d.ts +7 -0
- package/api/resources/analytics/types/ConversationRowIdentifier.js +3 -0
- package/api/resources/analytics/types/ConversationTableRequest.d.ts +0 -6
- package/api/resources/analytics/types/ConversationTableResponse.d.ts +56 -0
- package/api/resources/analytics/types/EventRow.d.ts +5 -2
- package/api/resources/analytics/types/EventRowIdentifier.d.ts +5 -0
- package/api/resources/analytics/types/EventRowIdentifier.js +3 -0
- package/api/resources/analytics/types/EventTableResponse.d.ts +14 -0
- package/api/resources/analytics/types/FeedbackRow.d.ts +5 -2
- package/api/resources/analytics/types/FeedbackRowIdentifier.d.ts +5 -0
- package/api/resources/analytics/types/FeedbackRowIdentifier.js +3 -0
- package/api/resources/analytics/types/FeedbackTableResponse.d.ts +14 -0
- package/api/resources/analytics/types/RowIdentifierBase.d.ts +5 -0
- package/api/resources/analytics/types/RowIdentifierBase.js +3 -0
- package/api/resources/analytics/types/index.d.ts +5 -0
- package/api/resources/analytics/types/index.js +5 -0
- package/api/resources/appDirectory/client/Client.d.ts +126 -0
- package/api/resources/appDirectory/client/Client.js +640 -0
- package/api/resources/appDirectory/client/index.d.ts +1 -0
- package/api/resources/appDirectory/client/index.js +17 -0
- package/api/resources/appDirectory/client/requests/GetAppSettingUploadUrlRequest.d.ts +11 -0
- package/api/resources/appDirectory/client/requests/GetAppSettingUploadUrlRequest.js +3 -0
- package/api/resources/appDirectory/client/requests/index.d.ts +1 -0
- package/api/resources/appDirectory/client/requests/index.js +2 -0
- package/api/resources/appDirectory/exports.d.ts +2 -0
- package/api/resources/appDirectory/exports.js +21 -0
- package/api/resources/appDirectory/index.d.ts +2 -0
- package/api/resources/appDirectory/index.js +18 -0
- package/api/resources/appDirectory/types/DirectoryAppSortField.d.ts +19 -0
- package/api/resources/appDirectory/types/DirectoryAppSortField.js +22 -0
- package/api/resources/appDirectory/types/DirectoryAppsSearchRequest.d.ts +7 -0
- package/api/resources/appDirectory/types/DirectoryAppsSearchRequest.js +3 -0
- package/api/resources/appDirectory/types/GetDirectoryAppSettingDownloadUrlResponse.d.ts +3 -0
- package/api/resources/appDirectory/types/GetDirectoryAppSettingDownloadUrlResponse.js +3 -0
- package/api/resources/appDirectory/types/GetDirectoryAppSettingUploadUrlResponse.d.ts +4 -0
- package/api/resources/appDirectory/types/GetDirectoryAppSettingUploadUrlResponse.js +3 -0
- package/api/resources/appDirectory/types/InstallDirectoryAppRequest.d.ts +44 -0
- package/api/resources/appDirectory/types/InstallDirectoryAppRequest.js +3 -0
- package/api/resources/appDirectory/types/index.d.ts +5 -0
- package/api/resources/appDirectory/types/index.js +21 -0
- package/api/resources/charters/types/CharterSummary.d.ts +7 -2
- package/api/resources/commons/types/ActionProperties.d.ts +12 -1
- package/api/resources/commons/types/ActionResponse.d.ts +3 -3
- package/api/resources/commons/types/BotLogicActionExecutedDetail.d.ts +10 -0
- package/api/resources/commons/types/BotLogicUserItem.d.ts +2 -0
- package/api/resources/commons/types/EventFilter.d.ts +5 -0
- package/api/resources/commons/types/EventTriggerType.d.ts +2 -0
- package/api/resources/commons/types/EventTriggerType.js +2 -0
- package/api/resources/commons/types/KnowledgeContextByEntities.d.ts +11 -0
- package/api/resources/commons/types/KnowledgeContextByEntityTypes.d.ts +3 -0
- package/api/resources/commons/types/KnowledgeContextFilter.d.ts +6 -1
- package/api/resources/commons/types/LlmPersona.d.ts +1 -0
- package/api/resources/commons/types/LlmPersona.js +1 -0
- package/api/resources/commons/types/NovelUserEvent.d.ts +4 -1
- package/api/resources/commons/types/ResponseConfig.d.ts +9 -3
- package/api/resources/commons/types/SideEffects.d.ts +10 -0
- package/api/resources/commons/types/SideEffects.js +13 -0
- package/api/resources/commons/types/SimulationContext.d.ts +3 -3
- package/api/resources/commons/types/SystemEventName.d.ts +24 -0
- package/api/resources/commons/types/SystemEventName.js +24 -0
- package/api/resources/commons/types/UserEvent.d.ts +4 -1
- package/api/resources/commons/types/UserEventName.d.ts +84 -0
- package/api/resources/commons/types/UserEventName.js +84 -0
- package/api/resources/commons/types/UserMessage.d.ts +7 -0
- package/api/resources/commons/types/index.d.ts +1 -0
- package/api/resources/commons/types/index.js +1 -0
- package/api/resources/conversation/client/Client.d.ts +3 -1
- package/api/resources/conversation/client/Client.js +3 -1
- package/api/resources/conversation/types/ConversationFilter.d.ts +9 -3
- package/api/resources/developersCommons/exports.d.ts +1 -0
- package/api/resources/developersCommons/exports.js +18 -0
- package/api/resources/developersCommons/types/AppInstalled.d.ts +5 -0
- package/api/resources/developersCommons/types/AppInstalled.js +8 -0
- package/api/resources/developersCommons/types/AppsFilter.d.ts +27 -0
- package/api/resources/developersCommons/types/AppsFilter.js +3 -0
- package/api/resources/developersCommons/types/AppsResponse.d.ts +15 -0
- package/api/resources/developersCommons/types/AppsResponse.js +3 -0
- package/api/resources/developersCommons/types/BaseApp.d.ts +32 -0
- package/api/resources/developersCommons/types/BaseApp.js +3 -0
- package/api/resources/developersCommons/types/BaseDetailApp.d.ts +19 -0
- package/api/resources/developersCommons/types/BaseDetailApp.js +3 -0
- package/api/resources/developersCommons/types/CountByFilterResult.d.ts +11 -0
- package/api/resources/developersCommons/types/CountByFilterResult.js +3 -0
- package/api/resources/developersCommons/types/DeveloperOrganization.d.ts +15 -0
- package/api/resources/developersCommons/types/DeveloperOrganization.js +3 -0
- package/api/resources/developersCommons/types/Link.d.ts +6 -0
- package/api/resources/developersCommons/types/MarketplaceApp.d.ts +8 -0
- package/api/resources/developersCommons/types/MarketplaceApp.js +3 -0
- package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +35 -0
- package/api/resources/developersCommons/types/MarketplaceAppDetail.js +3 -0
- package/api/resources/developersCommons/types/index.d.ts +9 -0
- package/api/resources/developersCommons/types/index.js +9 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +18 -10
- package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +6 -1
- package/api/resources/knowledge/types/KnowledgeBaseProperties.d.ts +5 -1
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +10 -6
- package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +14 -1
- package/api/resources/segments/client/Client.d.ts +10 -0
- package/api/resources/segments/client/Client.js +10 -0
- package/api/resources/triggers/types/EventTriggerBase.d.ts +3 -1
- package/package.json +1 -1
- package/reference.md +426 -2
- package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +2 -0
- package/serialization/resources/actions/client/requests/ActionPatchRequest.js +2 -0
- package/serialization/resources/analytics/types/AgentUserRow.d.ts +2 -0
- package/serialization/resources/analytics/types/AgentUserRow.js +2 -0
- package/serialization/resources/analytics/types/AgentUserRowIdentifier.d.ts +11 -0
- package/serialization/resources/analytics/types/AgentUserRowIdentifier.js +45 -0
- package/serialization/resources/analytics/types/ConversationRow.d.ts +2 -0
- package/serialization/resources/analytics/types/ConversationRow.js +2 -0
- package/serialization/resources/analytics/types/ConversationRowIdentifier.d.ts +13 -0
- package/serialization/resources/analytics/types/ConversationRowIdentifier.js +47 -0
- package/serialization/resources/analytics/types/EventRow.d.ts +2 -0
- package/serialization/resources/analytics/types/EventRow.js +2 -0
- package/serialization/resources/analytics/types/EventRowIdentifier.d.ts +11 -0
- package/serialization/resources/analytics/types/EventRowIdentifier.js +45 -0
- package/serialization/resources/analytics/types/FeedbackRow.d.ts +2 -0
- package/serialization/resources/analytics/types/FeedbackRow.js +2 -0
- package/serialization/resources/analytics/types/FeedbackRowIdentifier.d.ts +11 -0
- package/serialization/resources/analytics/types/FeedbackRowIdentifier.js +45 -0
- package/serialization/resources/analytics/types/RowIdentifierBase.d.ts +10 -0
- package/serialization/resources/analytics/types/RowIdentifierBase.js +42 -0
- package/serialization/resources/analytics/types/index.d.ts +5 -0
- package/serialization/resources/analytics/types/index.js +5 -0
- package/serialization/resources/appDirectory/client/index.d.ts +1 -0
- package/serialization/resources/appDirectory/client/index.js +17 -0
- package/serialization/resources/appDirectory/client/requests/GetAppSettingUploadUrlRequest.d.ts +10 -0
- package/serialization/resources/appDirectory/client/requests/GetAppSettingUploadUrlRequest.js +42 -0
- package/serialization/resources/appDirectory/client/requests/index.d.ts +1 -0
- package/serialization/resources/appDirectory/client/requests/index.js +5 -0
- package/serialization/resources/appDirectory/index.d.ts +2 -0
- package/serialization/resources/appDirectory/index.js +18 -0
- package/serialization/resources/appDirectory/types/DirectoryAppSortField.d.ts +7 -0
- package/serialization/resources/appDirectory/types/DirectoryAppSortField.js +39 -0
- package/serialization/resources/appDirectory/types/DirectoryAppsSearchRequest.d.ts +13 -0
- package/serialization/resources/appDirectory/types/DirectoryAppsSearchRequest.js +47 -0
- package/serialization/resources/appDirectory/types/GetDirectoryAppSettingDownloadUrlResponse.d.ts +9 -0
- package/serialization/resources/appDirectory/types/GetDirectoryAppSettingDownloadUrlResponse.js +41 -0
- package/serialization/resources/appDirectory/types/GetDirectoryAppSettingUploadUrlResponse.d.ts +10 -0
- package/serialization/resources/appDirectory/types/GetDirectoryAppSettingUploadUrlResponse.js +42 -0
- package/serialization/resources/appDirectory/types/InstallDirectoryAppRequest.d.ts +9 -0
- package/serialization/resources/appDirectory/types/InstallDirectoryAppRequest.js +41 -0
- package/serialization/resources/appDirectory/types/index.d.ts +5 -0
- package/serialization/resources/appDirectory/types/index.js +21 -0
- package/serialization/resources/charters/types/CharterSummary.d.ts +2 -1
- package/serialization/resources/charters/types/CharterSummary.js +2 -0
- package/serialization/resources/commons/types/ActionProperties.d.ts +2 -0
- package/serialization/resources/commons/types/ActionProperties.js +2 -0
- package/serialization/resources/commons/types/BotLogicActionExecutedDetail.d.ts +3 -0
- package/serialization/resources/commons/types/BotLogicActionExecutedDetail.js +3 -0
- package/serialization/resources/commons/types/BotLogicUserItem.d.ts +1 -0
- package/serialization/resources/commons/types/BotLogicUserItem.js +1 -0
- package/serialization/resources/commons/types/SideEffects.d.ts +7 -0
- package/serialization/resources/commons/types/SideEffects.js +39 -0
- package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
- package/serialization/resources/commons/types/SystemEventName.js +13 -1
- package/serialization/resources/commons/types/UserEventName.d.ts +1 -1
- package/serialization/resources/commons/types/UserEventName.js +28 -0
- package/serialization/resources/commons/types/UserMessage.d.ts +1 -0
- package/serialization/resources/commons/types/UserMessage.js +1 -0
- package/serialization/resources/commons/types/index.d.ts +1 -0
- package/serialization/resources/commons/types/index.js +1 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +2 -0
- package/serialization/resources/developersCommons/types/AppInstalled.d.ts +7 -0
- package/serialization/resources/developersCommons/types/AppInstalled.js +39 -0
- package/serialization/resources/developersCommons/types/AppsFilter.d.ts +18 -0
- package/serialization/resources/developersCommons/types/AppsFilter.js +50 -0
- package/serialization/resources/developersCommons/types/AppsResponse.d.ts +14 -0
- package/serialization/resources/developersCommons/types/AppsResponse.js +48 -0
- package/serialization/resources/developersCommons/types/BaseApp.d.ts +23 -0
- package/serialization/resources/developersCommons/types/BaseApp.js +55 -0
- package/serialization/resources/developersCommons/types/BaseDetailApp.d.ts +15 -0
- package/serialization/resources/developersCommons/types/BaseDetailApp.js +50 -0
- package/serialization/resources/developersCommons/types/CountByFilterResult.d.ts +12 -0
- package/serialization/resources/developersCommons/types/CountByFilterResult.js +44 -0
- package/serialization/resources/developersCommons/types/DeveloperOrganization.d.ts +13 -0
- package/serialization/resources/developersCommons/types/DeveloperOrganization.js +45 -0
- package/serialization/resources/developersCommons/types/MarketplaceApp.d.ts +11 -0
- package/serialization/resources/developersCommons/types/MarketplaceApp.js +45 -0
- package/serialization/resources/developersCommons/types/MarketplaceAppDetail.d.ts +12 -0
- package/serialization/resources/developersCommons/types/MarketplaceAppDetail.js +46 -0
- package/serialization/resources/developersCommons/types/index.d.ts +9 -0
- package/serialization/resources/developersCommons/types/index.js +9 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GetAppSettingUploadUrlRequest } from "./GetAppSettingUploadUrlRequest";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.AppDirectoryClient = void 0;
|
|
19
|
+
var Client_1 = require("./client/Client");
|
|
20
|
+
Object.defineProperty(exports, "AppDirectoryClient", { enumerable: true, get: function () { return Client_1.AppDirectoryClient; } });
|
|
21
|
+
__exportStar(require("./client/index"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** The field a directory search sorts by. */
|
|
2
|
+
export declare const DirectoryAppSortField: {
|
|
3
|
+
/**
|
|
4
|
+
* The app's id. */
|
|
5
|
+
readonly Id: "id";
|
|
6
|
+
/**
|
|
7
|
+
* The app's display name. */
|
|
8
|
+
readonly Name: "name";
|
|
9
|
+
/**
|
|
10
|
+
* When the app was created. */
|
|
11
|
+
readonly CreatedAt: "createdAt";
|
|
12
|
+
/**
|
|
13
|
+
* PUBLIC, PRIVATE or IN_DEVELOPMENT. */
|
|
14
|
+
readonly Visibility: "visibility";
|
|
15
|
+
/**
|
|
16
|
+
* The organization that owns the app. */
|
|
17
|
+
readonly DeveloperOrganizationId: "developerOrganizationId";
|
|
18
|
+
};
|
|
19
|
+
export type DirectoryAppSortField = (typeof DirectoryAppSortField)[keyof typeof DirectoryAppSortField] | string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DirectoryAppSortField = void 0;
|
|
5
|
+
/** The field a directory search sorts by. */
|
|
6
|
+
exports.DirectoryAppSortField = {
|
|
7
|
+
/**
|
|
8
|
+
* The app's id. */
|
|
9
|
+
Id: "id",
|
|
10
|
+
/**
|
|
11
|
+
* The app's display name. */
|
|
12
|
+
Name: "name",
|
|
13
|
+
/**
|
|
14
|
+
* When the app was created. */
|
|
15
|
+
CreatedAt: "createdAt",
|
|
16
|
+
/**
|
|
17
|
+
* PUBLIC, PRIVATE or IN_DEVELOPMENT. */
|
|
18
|
+
Visibility: "visibility",
|
|
19
|
+
/**
|
|
20
|
+
* The organization that owns the app. */
|
|
21
|
+
DeveloperOrganizationId: "developerOrganizationId",
|
|
22
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface DirectoryAppsSearchRequest extends MavenAGI.BaseCappedPaginatedRequest {
|
|
3
|
+
/** The field to sort by. Defaults to the app's id. */
|
|
4
|
+
sort?: MavenAGI.DirectoryAppSortField;
|
|
5
|
+
/** Narrows the results. Omit to list everything available to the agent. */
|
|
6
|
+
filter?: MavenAGI.AppsFilter;
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface InstallDirectoryAppRequest {
|
|
2
|
+
/**
|
|
3
|
+
* The app's configuration, as an object keyed by setting key.
|
|
4
|
+
*
|
|
5
|
+
* The keys and accepted values are defined by the app itself: fetch the app with
|
|
6
|
+
* `get` and read its `settingsSchema`, where every entry carries a `key`, a `type`, and
|
|
7
|
+
* whether it is `required`. Values are merged into the installation's existing settings:
|
|
8
|
+
* keys you omit keep their stored value, and the server does not currently reject an unknown
|
|
9
|
+
* key or require an entry the schema marks `required`. Sending an empty object installs an
|
|
10
|
+
* app that declares no settings.
|
|
11
|
+
*
|
|
12
|
+
* Sensitive entries are returned redacted by `get`, and sending one back unchanged here is a
|
|
13
|
+
* no-op that keeps the stored value, so a settings object can be read, edited and written
|
|
14
|
+
* back whole. See `MarketplaceAppDetail.settings` for what is redacted and how.
|
|
15
|
+
*
|
|
16
|
+
* The value's JSON type follows the entry's `type`:
|
|
17
|
+
*
|
|
18
|
+
* | Entry type | Value |
|
|
19
|
+
* | --- | --- |
|
|
20
|
+
* | `text`, `multiline`, `color`, `dropdown` | string |
|
|
21
|
+
* | `number` | number |
|
|
22
|
+
* | `checkbox`, `switch` | boolean |
|
|
23
|
+
* | `array` | list of strings |
|
|
24
|
+
* | `complexarray` | list of objects |
|
|
25
|
+
* | `oneOf`, `jsonSchema` | object matching the entry's schema |
|
|
26
|
+
* | `image` | omitted — see below |
|
|
27
|
+
*
|
|
28
|
+
* `image` entries are file settings. Do not send their bytes here: upload them first with
|
|
29
|
+
* `getSettingUploadUrl` using the same setting key, and the stored file is picked up
|
|
30
|
+
* automatically. `section` entries are layout only and take no value.
|
|
31
|
+
*
|
|
32
|
+
* ```json
|
|
33
|
+
* {
|
|
34
|
+
* "settings": {
|
|
35
|
+
* "acme.api.key": "sk-live-...",
|
|
36
|
+
* "acme.region": "us-east-1",
|
|
37
|
+
* "acme.sync.enabled": true,
|
|
38
|
+
* "acme.retry.count": 3
|
|
39
|
+
* }
|
|
40
|
+
* }
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
settings?: unknown;
|
|
44
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DirectoryAppSortField"), exports);
|
|
18
|
+
__exportStar(require("./DirectoryAppsSearchRequest"), exports);
|
|
19
|
+
__exportStar(require("./GetDirectoryAppSettingDownloadUrlResponse"), exports);
|
|
20
|
+
__exportStar(require("./GetDirectoryAppSettingUploadUrlResponse"), exports);
|
|
21
|
+
__exportStar(require("./InstallDirectoryAppRequest"), exports);
|
|
@@ -9,10 +9,15 @@ export interface CharterSummary {
|
|
|
9
9
|
/** The display name of the charter. */
|
|
10
10
|
name: string;
|
|
11
11
|
/**
|
|
12
|
-
* The segment
|
|
13
|
-
*
|
|
12
|
+
* The segment backing this charter's rule. An implementation detail of `precondition`;
|
|
13
|
+
* read that instead.
|
|
14
14
|
*/
|
|
15
15
|
segmentSummary: MavenAGI.SegmentSummary | null;
|
|
16
|
+
/**
|
|
17
|
+
* The rule controlling when this charter applies, read from the charter's backing
|
|
18
|
+
* segment. Null means wildcard (always matches).
|
|
19
|
+
*/
|
|
20
|
+
precondition: MavenAGI.PreconditionResponse | null;
|
|
16
21
|
/** The ID of the parent charter. Null for root-level charters. */
|
|
17
22
|
parentCharterId: MavenAGI.EntityId | null;
|
|
18
23
|
/** The lifecycle status of this charter. */
|
|
@@ -4,10 +4,21 @@ export interface ActionProperties {
|
|
|
4
4
|
userInteractionRequired: boolean;
|
|
5
5
|
/** When user interaction is required, the name of the button that is shown to the end user to confirm execution of the action. Defaults to "Submit" if not supplied. */
|
|
6
6
|
buttonName?: string;
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
|
|
9
|
+
*
|
|
10
|
+
* The preconditions that must be met for an action to be relevant to a conversation.
|
|
11
|
+
*/
|
|
8
12
|
precondition?: MavenAGI.Precondition;
|
|
9
13
|
/** The parameters that the action uses as input. An action will only be executed when all of the required parameters are provided. During execution, actions all have access to the full Conversation and User objects. Parameter values may be inferred from the user's conversation by the LLM. */
|
|
10
14
|
userFormParameters: MavenAGI.ActionParameter[];
|
|
11
15
|
/** The ISO 639-1 code for the language used in all fields of this action. Will be derived using the description's text if not specified. */
|
|
12
16
|
language?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether executing this action causes side effects. Absent means the action has never
|
|
19
|
+
* declared either way.
|
|
20
|
+
*
|
|
21
|
+
* This value is informational only. It does not yet affect action execution.
|
|
22
|
+
*/
|
|
23
|
+
sideEffects?: MavenAGI.SideEffects;
|
|
13
24
|
}
|
|
@@ -54,9 +54,9 @@ export interface ActionResponse extends MavenAGI.ActionBase {
|
|
|
54
54
|
*/
|
|
55
55
|
llmInclusionStatus: MavenAGI.LlmInclusionStatus;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
57
|
+
* Deprecated. Superseded by charters, which determine when knowledge bases and actions apply. Has no effect for agents using charters.
|
|
58
|
+
*
|
|
59
|
+
* The ID of the segment that must be matched for the action to be relevant to a conversation.
|
|
60
60
|
*/
|
|
61
61
|
segmentId?: MavenAGI.EntityId;
|
|
62
62
|
/** No longer populated. This field is always absent and will be removed in a future release. */
|
|
@@ -3,4 +3,14 @@ export interface BotLogicActionExecutedDetail extends MavenAGI.BotLogicActionRev
|
|
|
3
3
|
actionParameters: Record<string, MavenAGI.ActionExecutionParamValue>;
|
|
4
4
|
executionResult?: string;
|
|
5
5
|
executionError?: string;
|
|
6
|
+
/** Structured data the action returned alongside its text result. Absent for actions that returned only text. */
|
|
7
|
+
data?: Record<string, unknown>;
|
|
8
|
+
/** When the action invocation started. Absent for actions executed before per-action timing was recorded, and for an invocation that never returned — see `durationMs`. */
|
|
9
|
+
startedAt?: Date;
|
|
10
|
+
/**
|
|
11
|
+
* How long the action invocation took, in milliseconds. Measures the invocation itself, not the agent's surrounding reasoning.
|
|
12
|
+
*
|
|
13
|
+
* Absent in two cases: actions executed before per-action timing was recorded, and actions whose invocation never returned a result — it timed out, or threw before completing. The second case matters when aggregating: the attempts with no duration are disproportionately the slowest ones, so a percentile computed over this field alone is biased low. Count `executionError` alongside it rather than treating absent as "fast".
|
|
14
|
+
*/
|
|
15
|
+
durationMs?: number;
|
|
6
16
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export interface BotLogicUserItem {
|
|
2
2
|
userData: Record<string, string>;
|
|
3
|
+
/** The user's name, when one can be determined from their user data. Absent otherwise — how a name is derived may broaden over time, so treat this as a display convenience rather than an identifier. */
|
|
4
|
+
displayName?: string;
|
|
3
5
|
}
|
|
@@ -8,6 +8,11 @@ export interface EventFilter {
|
|
|
8
8
|
userEventNames?: MavenAGI.UserEventName[];
|
|
9
9
|
systemEventNames?: MavenAGI.SystemEventName[];
|
|
10
10
|
agentUserIds?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Narrow to the events that carry a rating. `ThumbsUp` and `ThumbsDown` match `BUTTON_CLICKED`
|
|
13
|
+
* events by their `feedbackInfo.thumbUp` value, and `Insert` matches `TEXT_INSERTED` events.
|
|
14
|
+
* `Handoff` is no longer supported.
|
|
15
|
+
*/
|
|
11
16
|
legacyFeedbackTypes?: MavenAGI.FeedbackType[];
|
|
12
17
|
hasEventText?: boolean;
|
|
13
18
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const EventTriggerType: {
|
|
2
2
|
readonly ConversationCreated: "CONVERSATION_CREATED";
|
|
3
|
+
/**
|
|
4
|
+
* Deprecated. Use `EVENT_CREATED` instead. */
|
|
3
5
|
readonly FeedbackCreated: "FEEDBACK_CREATED";
|
|
4
6
|
readonly InboxItemCreated: "INBOX_ITEM_CREATED";
|
|
5
7
|
readonly EventCreated: "EVENT_CREATED";
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.EventTriggerType = void 0;
|
|
5
5
|
exports.EventTriggerType = {
|
|
6
6
|
ConversationCreated: "CONVERSATION_CREATED",
|
|
7
|
+
/**
|
|
8
|
+
* Deprecated. Use `EVENT_CREATED` instead. */
|
|
7
9
|
FeedbackCreated: "FEEDBACK_CREATED",
|
|
8
10
|
InboxItemCreated: "INBOX_ITEM_CREATED",
|
|
9
11
|
EventCreated: "EVENT_CREATED",
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface KnowledgeContextByEntities {
|
|
3
|
+
/**
|
|
4
|
+
* The entities whose documents should be retrievable, in addition to the agent's own
|
|
5
|
+
* knowledge. Each `entityId` must be fully specified and must belong to the organization
|
|
6
|
+
* and agent the request is made against; one that does not is rejected. Entities are never
|
|
7
|
+
* silently dropped, which would omit exactly the documents the caller asked to bring into
|
|
8
|
+
* scope.
|
|
9
|
+
*
|
|
10
|
+
* `AGENT` and `FEEDBACK` are rejected: neither has an internal form to resolve to, and
|
|
11
|
+
* `AGENT` in particular is redundant here because the agent's own knowledge is always in
|
|
12
|
+
* scope. Every other `EntityType` is accepted.
|
|
13
|
+
*/
|
|
3
14
|
entities: MavenAGI.ScopedEntity[];
|
|
4
15
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
|
-
export type KnowledgeContextFilter = MavenAGI.KnowledgeContextFilter.ByEntities
|
|
2
|
+
export type KnowledgeContextFilter = MavenAGI.KnowledgeContextFilter.ByEntities
|
|
3
|
+
/**
|
|
4
|
+
* Not yet supported. This variant is accepted but has no effect on retrieval - a
|
|
5
|
+
* conversation supplying it behaves as though no `contextFilter` were provided at all.
|
|
6
|
+
* Use `byEntities` to scope retrieval today. */
|
|
7
|
+
| MavenAGI.KnowledgeContextFilter.ByEntityTypes;
|
|
3
8
|
export declare namespace KnowledgeContextFilter {
|
|
4
9
|
interface ByEntities extends MavenAGI.KnowledgeContextByEntities {
|
|
5
10
|
scopeType: "byEntities";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.LlmPersona = void 0;
|
|
5
|
+
/** Deprecated. Superseded by charters, which determine agent behavior per turn. */
|
|
5
6
|
exports.LlmPersona = {
|
|
6
7
|
CasualBuddy: "CASUAL_BUDDY",
|
|
7
8
|
EmpatheticSupporter: "EMPATHETIC_SUPPORTER",
|
|
@@ -8,7 +8,10 @@ export interface NovelUserEvent extends MavenAGI.EventBaseNoId {
|
|
|
8
8
|
userInfo: MavenAGI.EventUserInfoBase;
|
|
9
9
|
/** Information about any CSAT associated with the event */
|
|
10
10
|
csatInfo?: MavenAGI.CsatInfo;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Any rating carried by the event. A `BUTTON_CLICKED` thumbs up or down sets a single entry
|
|
13
|
+
* with `thumbUp` true or false.
|
|
14
|
+
*/
|
|
12
15
|
feedbackInfo?: MavenAGI.FeedbackInfo[];
|
|
13
16
|
/** Information about the page on which the event occurred */
|
|
14
17
|
pageInfo?: MavenAGI.PageInfo;
|
|
@@ -16,9 +16,15 @@ export interface ResponseConfig {
|
|
|
16
16
|
/** The desired response length. Defaults to ResponseLength.MEDIUM. */
|
|
17
17
|
responseLength: MavenAGI.ResponseLength;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Widens the knowledge retrieval candidate pool to include documents scoped to the given
|
|
20
|
+
* entities, in addition to the agent's own knowledge.
|
|
21
|
+
*
|
|
22
|
+
* Knowledge documents are scoped by setting `relevantEntities` on the document. A document
|
|
23
|
+
* with no `relevantEntities` belongs to the agent and is always a retrieval candidate;
|
|
24
|
+
* naming entities here additionally makes documents scoped to those entities retrievable.
|
|
25
|
+
* Omitting this field restricts retrieval to the agent's own knowledge.
|
|
26
|
+
*
|
|
27
|
+
* Only the `byEntities` variant is supported today - see `byEntityTypes`.
|
|
22
28
|
*/
|
|
23
29
|
contextFilter?: MavenAGI.KnowledgeContextFilter;
|
|
24
30
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** An action's declaration about whether executing it causes side effects. */
|
|
2
|
+
export declare const SideEffects: {
|
|
3
|
+
/**
|
|
4
|
+
* Read-only. Executing it changes nothing. */
|
|
5
|
+
readonly None: "NONE";
|
|
6
|
+
/**
|
|
7
|
+
* Writes something, whether inside Maven or in another system. */
|
|
8
|
+
readonly Present: "PRESENT";
|
|
9
|
+
};
|
|
10
|
+
export type SideEffects = (typeof SideEffects)[keyof typeof SideEffects] | string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SideEffects = void 0;
|
|
5
|
+
/** An action's declaration about whether executing it causes side effects. */
|
|
6
|
+
exports.SideEffects = {
|
|
7
|
+
/**
|
|
8
|
+
* Read-only. Executing it changes nothing. */
|
|
9
|
+
None: "NONE",
|
|
10
|
+
/**
|
|
11
|
+
* Writes something, whether inside Maven or in another system. */
|
|
12
|
+
Present: "PRESENT",
|
|
13
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface SimulationContext {
|
|
3
3
|
/**
|
|
4
|
+
* Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters.
|
|
5
|
+
*
|
|
4
6
|
* If provided, overrides the agent's default additional prompt text during the simulation.
|
|
5
|
-
* Note that this field is provided for backwards compatibility and will be removed in a future release.
|
|
6
|
-
* Instead please use the `availableKnowledgeBases` field to include a knowledge base with a document `llmInclusionStatus` set to `ALWAYS`.
|
|
7
7
|
*/
|
|
8
8
|
additionalPromptText?: string;
|
|
9
|
-
/**
|
|
9
|
+
/** Deprecated. Superseded by charters, which determine agent behavior per turn. Has no effect for agents using charters. */
|
|
10
10
|
persona?: MavenAGI.LlmPersona;
|
|
11
11
|
/** If provided, knowledge search will be restricted to the provided list of knowledge bases. Otherwise, all active knowledge bases will be used. An empty list means no knowledge bases will be used. */
|
|
12
12
|
availableKnowledgeBases?: MavenAGI.EntityId[];
|
|
@@ -8,5 +8,29 @@ export declare const SystemEventName: {
|
|
|
8
8
|
/**
|
|
9
9
|
* An app was updated */
|
|
10
10
|
readonly AppUpdated: "APP_UPDATED";
|
|
11
|
+
/**
|
|
12
|
+
* An outbound notification was sent to a user */
|
|
13
|
+
readonly NotificationSent: "NOTIFICATION_SENT";
|
|
14
|
+
/**
|
|
15
|
+
* An outbound notification reached the user */
|
|
16
|
+
readonly NotificationDelivered: "NOTIFICATION_DELIVERED";
|
|
17
|
+
/**
|
|
18
|
+
* An outbound notification could not be delivered */
|
|
19
|
+
readonly NotificationFailed: "NOTIFICATION_FAILED";
|
|
20
|
+
/**
|
|
21
|
+
* An external system was connected */
|
|
22
|
+
readonly IntegrationConnected: "INTEGRATION_CONNECTED";
|
|
23
|
+
/**
|
|
24
|
+
* An external system was disconnected */
|
|
25
|
+
readonly IntegrationDisconnected: "INTEGRATION_DISCONNECTED";
|
|
26
|
+
/**
|
|
27
|
+
* A data sync with an external system began */
|
|
28
|
+
readonly SyncStarted: "SYNC_STARTED";
|
|
29
|
+
/**
|
|
30
|
+
* A data sync with an external system finished */
|
|
31
|
+
readonly SyncCompleted: "SYNC_COMPLETED";
|
|
32
|
+
/**
|
|
33
|
+
* A data sync with an external system failed */
|
|
34
|
+
readonly SyncFailed: "SYNC_FAILED";
|
|
11
35
|
};
|
|
12
36
|
export type SystemEventName = (typeof SystemEventName)[keyof typeof SystemEventName] | string;
|
|
@@ -12,4 +12,28 @@ exports.SystemEventName = {
|
|
|
12
12
|
/**
|
|
13
13
|
* An app was updated */
|
|
14
14
|
AppUpdated: "APP_UPDATED",
|
|
15
|
+
/**
|
|
16
|
+
* An outbound notification was sent to a user */
|
|
17
|
+
NotificationSent: "NOTIFICATION_SENT",
|
|
18
|
+
/**
|
|
19
|
+
* An outbound notification reached the user */
|
|
20
|
+
NotificationDelivered: "NOTIFICATION_DELIVERED",
|
|
21
|
+
/**
|
|
22
|
+
* An outbound notification could not be delivered */
|
|
23
|
+
NotificationFailed: "NOTIFICATION_FAILED",
|
|
24
|
+
/**
|
|
25
|
+
* An external system was connected */
|
|
26
|
+
IntegrationConnected: "INTEGRATION_CONNECTED",
|
|
27
|
+
/**
|
|
28
|
+
* An external system was disconnected */
|
|
29
|
+
IntegrationDisconnected: "INTEGRATION_DISCONNECTED",
|
|
30
|
+
/**
|
|
31
|
+
* A data sync with an external system began */
|
|
32
|
+
SyncStarted: "SYNC_STARTED",
|
|
33
|
+
/**
|
|
34
|
+
* A data sync with an external system finished */
|
|
35
|
+
SyncCompleted: "SYNC_COMPLETED",
|
|
36
|
+
/**
|
|
37
|
+
* A data sync with an external system failed */
|
|
38
|
+
SyncFailed: "SYNC_FAILED",
|
|
15
39
|
};
|
|
@@ -8,7 +8,10 @@ export interface UserEvent extends MavenAGI.EventBaseNoId {
|
|
|
8
8
|
eventName: MavenAGI.UserEventName;
|
|
9
9
|
/** Information about the user who triggered the event */
|
|
10
10
|
userInfo: MavenAGI.EventUserInfo;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Any rating carried by the event. A `BUTTON_CLICKED` thumbs up or down sets a single entry
|
|
13
|
+
* with `thumbUp` true or false.
|
|
14
|
+
*/
|
|
12
15
|
feedbackInfo?: MavenAGI.FeedbackInfo[];
|
|
13
16
|
/** Information about any CSAT survey associated with the event */
|
|
14
17
|
csatInfo?: MavenAGI.CsatInfo;
|