mavenagi 1.2.57 → 1.2.59
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 +5 -0
- 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/commons/types/ActionProperties.d.ts +7 -0
- package/api/resources/commons/types/BaseCursorRequest.d.ts +21 -0
- package/api/resources/commons/types/BaseCursorRequest.js +3 -0
- 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/CursorPage.d.ts +12 -0
- package/api/resources/commons/types/CursorPage.js +3 -0
- package/api/resources/commons/types/SideEffects.d.ts +10 -0
- package/api/resources/commons/types/SideEffects.js +13 -0
- package/api/resources/commons/types/index.d.ts +3 -0
- package/api/resources/commons/types/index.js +3 -0
- package/api/resources/conversation/client/Client.d.ts +32 -1
- package/api/resources/conversation/client/Client.js +116 -1
- package/api/resources/conversation/types/ConversationFilter.d.ts +5 -0
- package/api/resources/conversation/types/ConversationRequest.d.ts +12 -1
- package/api/resources/conversation/types/ConversationsCursorSearchRequest.d.ts +4 -0
- package/api/resources/conversation/types/ConversationsCursorSearchRequest.js +3 -0
- package/api/resources/conversation/types/ConversationsCursorSearchResponse.d.ts +11 -0
- package/api/resources/conversation/types/ConversationsCursorSearchResponse.js +3 -0
- package/api/resources/conversation/types/index.d.ts +2 -0
- package/api/resources/conversation/types/index.js +2 -0
- 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/types/KnowledgeBaseDocumentDeltas.d.ts +16 -0
- package/api/resources/knowledge/types/KnowledgeBaseDocumentDeltas.js +3 -0
- package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +5 -0
- package/api/resources/knowledge/types/index.d.ts +1 -0
- package/api/resources/knowledge/types/index.js +1 -0
- package/package.json +1 -1
- package/reference.md +494 -1
- 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/commons/types/ActionProperties.d.ts +2 -0
- package/serialization/resources/commons/types/ActionProperties.js +2 -0
- package/serialization/resources/commons/types/BaseCursorRequest.d.ts +11 -0
- package/serialization/resources/commons/types/BaseCursorRequest.js +43 -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/CursorPage.d.ts +9 -0
- package/serialization/resources/commons/types/CursorPage.js +41 -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/index.d.ts +3 -0
- package/serialization/resources/commons/types/index.js +3 -0
- package/serialization/resources/conversation/types/ConversationFilter.d.ts +2 -0
- package/serialization/resources/conversation/types/ConversationFilter.js +2 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchRequest.d.ts +11 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchRequest.js +45 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchResponse.d.ts +12 -0
- package/serialization/resources/conversation/types/ConversationsCursorSearchResponse.js +46 -0
- package/serialization/resources/conversation/types/index.d.ts +2 -0
- package/serialization/resources/conversation/types/index.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/serialization/resources/knowledge/types/KnowledgeBaseDocumentDeltas.d.ts +11 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseDocumentDeltas.js +43 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseVersion.js +2 -0
- package/serialization/resources/knowledge/types/index.d.ts +1 -0
- package/serialization/resources/knowledge/types/index.js +1 -0
- 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);
|
|
@@ -10,4 +10,11 @@ export interface ActionProperties {
|
|
|
10
10
|
userFormParameters: MavenAGI.ActionParameter[];
|
|
11
11
|
/** 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
12
|
language?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether executing this action causes side effects. Absent means the action has never
|
|
15
|
+
* declared either way.
|
|
16
|
+
*
|
|
17
|
+
* This value is informational only. It does not yet affect action execution.
|
|
18
|
+
*/
|
|
19
|
+
sideEffects?: MavenAGI.SideEffects;
|
|
13
20
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination parameters for endpoints traversed by an opaque cursor rather than by page offset.
|
|
3
|
+
* Defined as a sibling of BasePaginatedRequest, not a subtype: a cursor traversal has no page
|
|
4
|
+
* number, and offering `page` alongside `cursor` would let a caller send a self-contradictory
|
|
5
|
+
* request. The 200 ceiling is tighter than either offset variant because cursor traversal is
|
|
6
|
+
* designed to walk a whole result set in many small pages.
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseCursorRequest {
|
|
9
|
+
/** The size of the page to return, defaults to 20. Max 200. */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** Whether to sort descending, defaults to true */
|
|
12
|
+
sortDesc?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Opaque cursor from the previous response's `nextCursor`, passed back unchanged. Omit it to
|
|
15
|
+
* start a new traversal. Every other field must stay identical for the whole traversal;
|
|
16
|
+
* changing one is rejected rather than silently restarting from the beginning. Cursors have
|
|
17
|
+
* no expiry, but a cursor can still be rejected with a 400 if the server's signing key has
|
|
18
|
+
* since been rotated out; if that happens, discard it and restart the traversal.
|
|
19
|
+
*/
|
|
20
|
+
cursor?: string;
|
|
21
|
+
}
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination metadata for a cursor traversal. The counterpart to Page, which describes an
|
|
3
|
+
* offset-paginated response.
|
|
4
|
+
*/
|
|
5
|
+
export interface CursorPage {
|
|
6
|
+
/**
|
|
7
|
+
* Pass this back as `cursor` to read the next page. Omitted when the traversal is
|
|
8
|
+
* complete. This is the only reliable end-of-results signal — a page can legitimately hold
|
|
9
|
+
* fewer items than `size` while more pages remain.
|
|
10
|
+
*/
|
|
11
|
+
nextCursor?: string;
|
|
12
|
+
}
|
|
@@ -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
|
+
};
|
|
@@ -22,6 +22,7 @@ export * from "./AttachmentStatus";
|
|
|
22
22
|
export * from "./BaseAttachment";
|
|
23
23
|
export * from "./BaseCappedPaginatedRequest";
|
|
24
24
|
export * from "./BaseConversationResponse";
|
|
25
|
+
export * from "./BaseCursorRequest";
|
|
25
26
|
export * from "./BasePaginatedRequest";
|
|
26
27
|
export * from "./BaseSearchRequest";
|
|
27
28
|
export * from "./BooleanCondition";
|
|
@@ -76,6 +77,7 @@ export * from "./ConversationState";
|
|
|
76
77
|
export * from "./ConversationStatePrecondition";
|
|
77
78
|
export * from "./ConversationSummary";
|
|
78
79
|
export * from "./CsatInfo";
|
|
80
|
+
export * from "./CursorPage";
|
|
79
81
|
export * from "./DeviceInfo";
|
|
80
82
|
export * from "./DeviceType";
|
|
81
83
|
export * from "./DocumentInformation";
|
|
@@ -185,6 +187,7 @@ export * from "./SettingsSchemaDiscriminatedUnionOptions";
|
|
|
185
187
|
export * from "./SettingsSchemaEntry";
|
|
186
188
|
export * from "./SettingsSchemaEntryBase";
|
|
187
189
|
export * from "./SettingsSchemaValidation";
|
|
190
|
+
export * from "./SideEffects";
|
|
188
191
|
export * from "./SimulationContext";
|
|
189
192
|
export * from "./Source";
|
|
190
193
|
export * from "./SourceInfo";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./AttachmentStatus"), exports);
|
|
|
38
38
|
__exportStar(require("./BaseAttachment"), exports);
|
|
39
39
|
__exportStar(require("./BaseCappedPaginatedRequest"), exports);
|
|
40
40
|
__exportStar(require("./BaseConversationResponse"), exports);
|
|
41
|
+
__exportStar(require("./BaseCursorRequest"), exports);
|
|
41
42
|
__exportStar(require("./BasePaginatedRequest"), exports);
|
|
42
43
|
__exportStar(require("./BaseSearchRequest"), exports);
|
|
43
44
|
__exportStar(require("./BooleanCondition"), exports);
|
|
@@ -92,6 +93,7 @@ __exportStar(require("./ConversationState"), exports);
|
|
|
92
93
|
__exportStar(require("./ConversationStatePrecondition"), exports);
|
|
93
94
|
__exportStar(require("./ConversationSummary"), exports);
|
|
94
95
|
__exportStar(require("./CsatInfo"), exports);
|
|
96
|
+
__exportStar(require("./CursorPage"), exports);
|
|
95
97
|
__exportStar(require("./DeviceInfo"), exports);
|
|
96
98
|
__exportStar(require("./DeviceType"), exports);
|
|
97
99
|
__exportStar(require("./DocumentInformation"), exports);
|
|
@@ -201,6 +203,7 @@ __exportStar(require("./SettingsSchemaDiscriminatedUnionOptions"), exports);
|
|
|
201
203
|
__exportStar(require("./SettingsSchemaEntry"), exports);
|
|
202
204
|
__exportStar(require("./SettingsSchemaEntryBase"), exports);
|
|
203
205
|
__exportStar(require("./SettingsSchemaValidation"), exports);
|
|
206
|
+
__exportStar(require("./SideEffects"), exports);
|
|
204
207
|
__exportStar(require("./SimulationContext"), exports);
|
|
205
208
|
__exportStar(require("./Source"), exports);
|
|
206
209
|
__exportStar(require("./SourceInfo"), exports);
|
|
@@ -243,7 +243,11 @@ export declare class ConversationClient {
|
|
|
243
243
|
categorize(conversationId: string, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.CategorizationResponse>;
|
|
244
244
|
private __categorize;
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
246
|
+
* @deprecated
|
|
247
|
+
*
|
|
248
|
+
* Replaced by the Create events API, which records feedback as a user event.
|
|
249
|
+
*
|
|
250
|
+
* Update feedback or create it if it doesn't exist.
|
|
247
251
|
*
|
|
248
252
|
* @param {MavenAGI.FeedbackRequest} request
|
|
249
253
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -373,6 +377,33 @@ export declare class ConversationClient {
|
|
|
373
377
|
*/
|
|
374
378
|
search(request: MavenAGI.ConversationsSearchRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationsResponse>;
|
|
375
379
|
private __search;
|
|
380
|
+
/**
|
|
381
|
+
* Search conversations using cursor pagination, which can read past the 10,000th result that
|
|
382
|
+
* `search` cannot reach.
|
|
383
|
+
*
|
|
384
|
+
* Results are ordered by conversation creation time. Start with no `cursor`, then pass each
|
|
385
|
+
* response's `nextCursor` back unchanged until the response omits it. Keep every other field
|
|
386
|
+
* identical for the whole traversal — changing the filter, size, or sort direction mid-way is
|
|
387
|
+
* rejected rather than silently restarting you at the beginning.
|
|
388
|
+
*
|
|
389
|
+
* `nextCursor` is the only reliable end-of-results signal. Do not stop early because a page
|
|
390
|
+
* came back with fewer conversations than you asked for: that happens legitimately, and more
|
|
391
|
+
* pages may still remain.
|
|
392
|
+
*
|
|
393
|
+
* @param {MavenAGI.ConversationsCursorSearchRequest} request
|
|
394
|
+
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
395
|
+
*
|
|
396
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
397
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
398
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
399
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
400
|
+
* @throws {@link MavenAGI.ServerError}
|
|
401
|
+
*
|
|
402
|
+
* @example
|
|
403
|
+
* await client.conversation.searchCursor({})
|
|
404
|
+
*/
|
|
405
|
+
searchCursor(request: MavenAGI.ConversationsCursorSearchRequest, requestOptions?: ConversationClient.RequestOptions): core.HttpResponsePromise<MavenAGI.ConversationsCursorSearchResponse>;
|
|
406
|
+
private __searchCursor;
|
|
376
407
|
/**
|
|
377
408
|
* Export conversations to a CSV file.
|
|
378
409
|
*
|
|
@@ -959,7 +959,11 @@ class ConversationClient {
|
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
/**
|
|
962
|
-
*
|
|
962
|
+
* @deprecated
|
|
963
|
+
*
|
|
964
|
+
* Replaced by the Create events API, which records feedback as a user event.
|
|
965
|
+
*
|
|
966
|
+
* Update feedback or create it if it doesn't exist.
|
|
963
967
|
*
|
|
964
968
|
* @param {MavenAGI.FeedbackRequest} request
|
|
965
969
|
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1501,6 +1505,117 @@ class ConversationClient {
|
|
|
1501
1505
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/conversations/search");
|
|
1502
1506
|
});
|
|
1503
1507
|
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Search conversations using cursor pagination, which can read past the 10,000th result that
|
|
1510
|
+
* `search` cannot reach.
|
|
1511
|
+
*
|
|
1512
|
+
* Results are ordered by conversation creation time. Start with no `cursor`, then pass each
|
|
1513
|
+
* response's `nextCursor` back unchanged until the response omits it. Keep every other field
|
|
1514
|
+
* identical for the whole traversal — changing the filter, size, or sort direction mid-way is
|
|
1515
|
+
* rejected rather than silently restarting you at the beginning.
|
|
1516
|
+
*
|
|
1517
|
+
* `nextCursor` is the only reliable end-of-results signal. Do not stop early because a page
|
|
1518
|
+
* came back with fewer conversations than you asked for: that happens legitimately, and more
|
|
1519
|
+
* pages may still remain.
|
|
1520
|
+
*
|
|
1521
|
+
* @param {MavenAGI.ConversationsCursorSearchRequest} request
|
|
1522
|
+
* @param {ConversationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1523
|
+
*
|
|
1524
|
+
* @throws {@link MavenAGI.NotFoundError}
|
|
1525
|
+
* @throws {@link MavenAGI.BadRequestError}
|
|
1526
|
+
* @throws {@link MavenAGI.PayloadTooLargeError}
|
|
1527
|
+
* @throws {@link MavenAGI.TooManyRequestsError}
|
|
1528
|
+
* @throws {@link MavenAGI.ServerError}
|
|
1529
|
+
*
|
|
1530
|
+
* @example
|
|
1531
|
+
* await client.conversation.searchCursor({})
|
|
1532
|
+
*/
|
|
1533
|
+
searchCursor(request, requestOptions) {
|
|
1534
|
+
return core.HttpResponsePromise.fromPromise(this.__searchCursor(request, requestOptions));
|
|
1535
|
+
}
|
|
1536
|
+
__searchCursor(request, requestOptions) {
|
|
1537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1538
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
1539
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1540
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
1541
|
+
"X-Organization-Id": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.organizationId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.organizationId,
|
|
1542
|
+
"X-Agent-Id": (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.agentId) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.agentId,
|
|
1543
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1544
|
+
const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
|
|
1545
|
+
url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.MavenAGIEnvironment.Production, "/v1/conversations/search/cursor"),
|
|
1546
|
+
method: "POST",
|
|
1547
|
+
headers: _headers,
|
|
1548
|
+
contentType: "application/json",
|
|
1549
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
1550
|
+
requestType: "json",
|
|
1551
|
+
body: serializers.ConversationsCursorSearchRequest.jsonOrThrow(request, {
|
|
1552
|
+
unrecognizedObjectKeys: "strip",
|
|
1553
|
+
}),
|
|
1554
|
+
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,
|
|
1555
|
+
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,
|
|
1556
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1557
|
+
fetchFn: (_p = this._options) === null || _p === void 0 ? void 0 : _p.fetch,
|
|
1558
|
+
logging: this._options.logging,
|
|
1559
|
+
});
|
|
1560
|
+
if (_response.ok) {
|
|
1561
|
+
return {
|
|
1562
|
+
data: serializers.ConversationsCursorSearchResponse.parseOrThrow(_response.body, {
|
|
1563
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1564
|
+
allowUnrecognizedUnionMembers: true,
|
|
1565
|
+
allowUnrecognizedEnumValues: true,
|
|
1566
|
+
breadcrumbsPrefix: ["response"],
|
|
1567
|
+
}),
|
|
1568
|
+
rawResponse: _response.rawResponse,
|
|
1569
|
+
};
|
|
1570
|
+
}
|
|
1571
|
+
if (_response.error.reason === "status-code") {
|
|
1572
|
+
switch (_response.error.statusCode) {
|
|
1573
|
+
case 404:
|
|
1574
|
+
throw new MavenAGI.NotFoundError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1575
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1576
|
+
allowUnrecognizedUnionMembers: true,
|
|
1577
|
+
allowUnrecognizedEnumValues: true,
|
|
1578
|
+
breadcrumbsPrefix: ["response"],
|
|
1579
|
+
}), _response.rawResponse);
|
|
1580
|
+
case 400:
|
|
1581
|
+
throw new MavenAGI.BadRequestError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1582
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1583
|
+
allowUnrecognizedUnionMembers: true,
|
|
1584
|
+
allowUnrecognizedEnumValues: true,
|
|
1585
|
+
breadcrumbsPrefix: ["response"],
|
|
1586
|
+
}), _response.rawResponse);
|
|
1587
|
+
case 413:
|
|
1588
|
+
throw new MavenAGI.PayloadTooLargeError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1589
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1590
|
+
allowUnrecognizedUnionMembers: true,
|
|
1591
|
+
allowUnrecognizedEnumValues: true,
|
|
1592
|
+
breadcrumbsPrefix: ["response"],
|
|
1593
|
+
}), _response.rawResponse);
|
|
1594
|
+
case 429:
|
|
1595
|
+
throw new MavenAGI.TooManyRequestsError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1596
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1597
|
+
allowUnrecognizedUnionMembers: true,
|
|
1598
|
+
allowUnrecognizedEnumValues: true,
|
|
1599
|
+
breadcrumbsPrefix: ["response"],
|
|
1600
|
+
}), _response.rawResponse);
|
|
1601
|
+
case 500:
|
|
1602
|
+
throw new MavenAGI.ServerError(serializers.ErrorMessage.parseOrThrow(_response.error.body, {
|
|
1603
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1604
|
+
allowUnrecognizedUnionMembers: true,
|
|
1605
|
+
allowUnrecognizedEnumValues: true,
|
|
1606
|
+
breadcrumbsPrefix: ["response"],
|
|
1607
|
+
}), _response.rawResponse);
|
|
1608
|
+
default:
|
|
1609
|
+
throw new errors.MavenAGIError({
|
|
1610
|
+
statusCode: _response.error.statusCode,
|
|
1611
|
+
body: _response.error.body,
|
|
1612
|
+
rawResponse: _response.rawResponse,
|
|
1613
|
+
});
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/conversations/search/cursor");
|
|
1617
|
+
});
|
|
1618
|
+
}
|
|
1504
1619
|
/**
|
|
1505
1620
|
* Export conversations to a CSV file.
|
|
1506
1621
|
*
|
|
@@ -56,6 +56,11 @@ export interface ConversationFilter {
|
|
|
56
56
|
responseLength?: MavenAGI.ResponseLength[];
|
|
57
57
|
/** Filter by AI assessed sentiment analysis */
|
|
58
58
|
sentiment?: MavenAGI.Sentiment[];
|
|
59
|
+
/**
|
|
60
|
+
* Filter by whether the conversation is spoken or written. Platform-assigned, never
|
|
61
|
+
* customer-writable.
|
|
62
|
+
*/
|
|
63
|
+
conversationMode?: MavenAGI.ConversationMode[];
|
|
59
64
|
/** Filter by tags applied to the conversation */
|
|
60
65
|
tags?: string[];
|
|
61
66
|
/** Filter by agent user IDs associated with the conversation */
|
|
@@ -33,6 +33,17 @@ export interface ConversationRequest {
|
|
|
33
33
|
metadata?: Record<string, string>;
|
|
34
34
|
/** The messages in the conversation */
|
|
35
35
|
messages: MavenAGI.ConversationMessageRequest[];
|
|
36
|
-
/**
|
|
36
|
+
/**
|
|
37
|
+
* The unique identifier of the conversation this new conversation was spawned from, if applicable.
|
|
38
|
+
*
|
|
39
|
+
* Setting this also gives the new conversation access to the context it branched from: when the bot
|
|
40
|
+
* answers, the transcript of the spawned-from conversation (and of the conversations that one was
|
|
41
|
+
* spawned from, in turn) is merged into the prompt ahead of this conversation's own messages. Each
|
|
42
|
+
* ancestor is truncated at the point the spawn happened, so messages it receives afterwards are not
|
|
43
|
+
* included.
|
|
44
|
+
*
|
|
45
|
+
* The referenced conversation must belong to the same agent. Because the merged transcript is read
|
|
46
|
+
* back to the end user, only set this to a conversation the current user is entitled to see.
|
|
47
|
+
*/
|
|
37
48
|
spawnedFromConversationId?: MavenAGI.EntityId;
|
|
38
49
|
}
|