mavenagi 1.2.73 → 1.2.74
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 +41 -36
- package/api/resources/actions/client/requests/ActionPatchRequest.d.ts +11 -0
- package/api/resources/actions/types/ActionRequest.d.ts +5 -0
- package/api/resources/agentVariants/types/AgentVariantResponse.d.ts +3 -1
- package/api/resources/agents/client/Client.d.ts +22 -12
- package/api/resources/agents/client/Client.js +22 -12
- package/api/resources/agents/types/AgentMigrations.d.ts +1 -1
- package/api/resources/agents/types/AgentSettingName.d.ts +1 -1
- package/api/resources/agents/types/AgentSettingName.js +1 -1
- package/api/resources/agents/types/VersionedAgentSettings.d.ts +1 -1
- package/api/resources/appDirectory/client/Client.d.ts +6 -2
- package/api/resources/appDirectory/client/Client.js +6 -2
- package/api/resources/apps/client/Client.d.ts +139 -0
- package/api/resources/apps/client/Client.js +504 -0
- package/api/resources/apps/client/index.d.ts +1 -0
- package/api/resources/apps/client/index.js +2 -0
- package/api/resources/apps/exports.d.ts +2 -0
- package/api/resources/apps/exports.js +21 -0
- package/api/resources/apps/index.d.ts +2 -0
- package/api/resources/apps/index.js +18 -0
- package/api/resources/apps/types/AppPatchRequest.d.ts +26 -0
- package/api/resources/apps/types/AppPatchRequest.js +3 -0
- package/api/resources/apps/types/AppRequest.d.ts +38 -0
- package/api/resources/apps/types/AppRequest.js +3 -0
- package/api/resources/apps/types/AppResponse.d.ts +29 -0
- package/api/resources/apps/types/AppResponse.js +3 -0
- package/api/resources/apps/types/AppsSearchRequest.d.ts +3 -0
- package/api/resources/apps/types/AppsSearchRequest.js +3 -0
- package/api/resources/apps/types/AppsSearchResponse.d.ts +5 -0
- package/api/resources/apps/types/AppsSearchResponse.js +3 -0
- package/api/resources/apps/types/index.d.ts +5 -0
- package/api/resources/apps/types/index.js +21 -0
- package/api/resources/capabilities/types/CapabilityExecutionBase.d.ts +7 -0
- package/api/resources/commons/types/ActionResponse.d.ts +2 -0
- package/api/resources/commons/types/AttachmentNotSentToModelReason.d.ts +11 -0
- package/api/resources/commons/types/AttachmentNotSentToModelReason.js +14 -0
- package/api/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +10 -0
- package/api/resources/commons/types/AttachmentNotSentToModelWarning.js +3 -0
- package/api/resources/commons/types/BaseConversationResponse.d.ts +4 -0
- package/api/resources/commons/types/BotMessage.d.ts +9 -0
- package/api/resources/commons/types/BotMessageWarning.d.ts +13 -0
- package/api/resources/commons/types/BotMessageWarning.js +3 -0
- package/api/resources/commons/types/ChangeAuthor.d.ts +1 -1
- package/api/resources/commons/types/EntityType.d.ts +3 -0
- package/api/resources/commons/types/EntityType.js +3 -0
- package/api/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/api/resources/commons/types/ErrorReason.d.ts +7 -1
- package/api/resources/commons/types/ErrorReason.js +7 -1
- package/api/resources/commons/types/Feedback.d.ts +8 -0
- package/api/resources/commons/types/FieldError.d.ts +6 -0
- package/api/resources/commons/types/FieldError.js +3 -0
- package/api/resources/commons/types/InboxItemBase.d.ts +13 -0
- package/api/resources/commons/types/IntelligentFieldValueResponse.d.ts +13 -1
- package/api/resources/commons/types/UserEvent.d.ts +8 -0
- package/api/resources/commons/types/UserMessage.d.ts +4 -0
- package/api/resources/commons/types/index.d.ts +4 -0
- package/api/resources/commons/types/index.js +4 -0
- package/api/resources/conversation/client/Client.d.ts +1 -1
- package/api/resources/conversation/client/Client.js +1 -1
- package/api/resources/conversation/types/AskRequestFields.d.ts +3 -2
- package/api/resources/conversation/types/ConversationFilter.d.ts +2 -2
- package/api/resources/conversation/types/SubmitActionFormRequest.d.ts +1 -1
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +5 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
- package/api/resources/developersCommons/types/AppDirectoryDetails.d.ts +23 -0
- package/api/resources/developersCommons/types/AppDirectoryDetails.js +3 -0
- package/api/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
- package/api/resources/developersCommons/types/AppDirectoryListing.js +3 -0
- package/api/resources/developersCommons/types/BaseApp.d.ts +1 -9
- package/api/resources/developersCommons/types/BaseDetailApp.d.ts +1 -18
- package/api/resources/developersCommons/types/MarketplaceAppDetail.d.ts +5 -2
- package/api/resources/developersCommons/types/index.d.ts +2 -0
- package/api/resources/developersCommons/types/index.js +2 -0
- package/api/resources/events/client/Client.d.ts +1 -1
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/intelligentFields/types/IntelligentFieldValueSearchResponse.d.ts +4 -1
- package/api/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +5 -0
- package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
- package/api/resources/triggers/client/requests/PartialUpdateRequest.d.ts +5 -0
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +5 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +2 -0
- package/api/resources/users/types/AgentUser.d.ts +13 -0
- package/package.json +1 -1
- package/reference.md +340 -16
- package/serialization/resources/actions/client/requests/ActionPatchRequest.d.ts +4 -0
- package/serialization/resources/actions/client/requests/ActionPatchRequest.js +4 -0
- package/serialization/resources/actions/types/ActionRequest.d.ts +2 -0
- package/serialization/resources/actions/types/ActionRequest.js +2 -0
- package/serialization/resources/agentVariants/types/AgentVariantResponse.d.ts +1 -0
- package/serialization/resources/agentVariants/types/AgentVariantResponse.js +1 -0
- package/serialization/resources/apps/index.d.ts +1 -0
- package/serialization/resources/apps/index.js +17 -0
- package/serialization/resources/apps/types/AppPatchRequest.d.ts +21 -0
- package/serialization/resources/apps/types/AppPatchRequest.js +54 -0
- package/serialization/resources/apps/types/AppRequest.d.ts +13 -0
- package/serialization/resources/apps/types/AppRequest.js +48 -0
- package/serialization/resources/apps/types/AppResponse.d.ts +11 -0
- package/serialization/resources/apps/types/AppResponse.js +45 -0
- package/serialization/resources/apps/types/AppsSearchRequest.d.ts +9 -0
- package/serialization/resources/apps/types/AppsSearchRequest.js +40 -0
- package/serialization/resources/apps/types/AppsSearchResponse.d.ts +11 -0
- package/serialization/resources/apps/types/AppsSearchResponse.js +45 -0
- package/serialization/resources/apps/types/index.d.ts +5 -0
- package/serialization/resources/apps/types/index.js +21 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.d.ts +2 -0
- package/serialization/resources/capabilities/types/CapabilityExecutionBase.js +2 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +2 -0
- package/serialization/resources/commons/types/ActionResponse.js +2 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelReason.d.ts +7 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelReason.js +39 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.d.ts +13 -0
- package/serialization/resources/commons/types/AttachmentNotSentToModelWarning.js +45 -0
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +3 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +3 -0
- package/serialization/resources/commons/types/BotMessage.d.ts +5 -0
- package/serialization/resources/commons/types/BotMessage.js +5 -0
- package/serialization/resources/commons/types/BotMessageWarning.d.ts +11 -0
- package/serialization/resources/commons/types/BotMessageWarning.js +47 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -0
- package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
- package/serialization/resources/commons/types/ErrorMessage.js +2 -0
- package/serialization/resources/commons/types/ErrorReason.d.ts +1 -1
- package/serialization/resources/commons/types/ErrorReason.js +2 -0
- package/serialization/resources/commons/types/Feedback.d.ts +2 -0
- package/serialization/resources/commons/types/Feedback.js +2 -0
- package/serialization/resources/commons/types/FieldError.d.ts +10 -0
- package/serialization/resources/commons/types/FieldError.js +42 -0
- package/serialization/resources/commons/types/InboxItemBase.d.ts +3 -0
- package/serialization/resources/commons/types/InboxItemBase.js +3 -0
- package/serialization/resources/commons/types/IntelligentFieldValueResponse.d.ts +2 -0
- package/serialization/resources/commons/types/IntelligentFieldValueResponse.js +2 -0
- package/serialization/resources/commons/types/UserEvent.d.ts +2 -0
- package/serialization/resources/commons/types/UserEvent.js +2 -0
- package/serialization/resources/commons/types/UserMessage.d.ts +3 -0
- package/serialization/resources/commons/types/UserMessage.js +3 -0
- package/serialization/resources/commons/types/index.d.ts +4 -0
- package/serialization/resources/commons/types/index.js +4 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +2 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +2 -0
- package/serialization/resources/developersCommons/types/AppDirectoryDetails.d.ts +13 -0
- package/serialization/resources/developersCommons/types/AppDirectoryDetails.js +46 -0
- package/serialization/resources/developersCommons/types/AppDirectoryListing.d.ts +14 -0
- package/serialization/resources/developersCommons/types/AppDirectoryListing.js +46 -0
- package/serialization/resources/developersCommons/types/BaseApp.d.ts +2 -7
- package/serialization/resources/developersCommons/types/BaseApp.js +5 -8
- package/serialization/resources/developersCommons/types/BaseDetailApp.d.ts +3 -7
- package/serialization/resources/developersCommons/types/BaseDetailApp.js +3 -7
- package/serialization/resources/developersCommons/types/index.d.ts +2 -0
- package/serialization/resources/developersCommons/types/index.js +2 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.d.ts +2 -0
- package/serialization/resources/knowledge/client/requests/KnowledgeBasePatchRequest.js +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.d.ts +2 -0
- package/serialization/resources/knowledge/types/KnowledgeBaseResponse.js +2 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.d.ts +2 -0
- package/serialization/resources/triggers/client/requests/PartialUpdateRequest.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -0
- package/serialization/resources/triggers/types/EventTriggerResponse.js +2 -0
- package/serialization/resources/users/types/AgentUser.d.ts +3 -0
- package/serialization/resources/users/types/AgentUser.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* An app your organization owns.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* id: "order-lookup",
|
|
8
|
+
* name: "Order lookup",
|
|
9
|
+
* developerOrganizationId: "acme",
|
|
10
|
+
* visibility: MavenAGI.AppVisibility.InDevelopment,
|
|
11
|
+
* shortDescription: "Looks up an order's status.",
|
|
12
|
+
* categories: [MavenAGI.AppCategory.CustomerSupport],
|
|
13
|
+
* capabilities: [MavenAGI.AppCapability.Actions],
|
|
14
|
+
* links: [],
|
|
15
|
+
* settingsSchema: [{
|
|
16
|
+
* type: "text",
|
|
17
|
+
* key: "apiKey",
|
|
18
|
+
* displayName: "API key"
|
|
19
|
+
* }],
|
|
20
|
+
* requestedPermissions: ["read:conversations"],
|
|
21
|
+
* installCount: 0
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
export interface AppResponse extends MavenAGI.BaseDetailApp {
|
|
25
|
+
/** The Maven API permissions the app's Functions get when they run. */
|
|
26
|
+
requestedPermissions: string[];
|
|
27
|
+
/** The number of agents the app is installed on. */
|
|
28
|
+
installCount: number;
|
|
29
|
+
}
|
|
@@ -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("./AppPatchRequest"), exports);
|
|
18
|
+
__exportStar(require("./AppRequest"), exports);
|
|
19
|
+
__exportStar(require("./AppResponse"), exports);
|
|
20
|
+
__exportStar(require("./AppsSearchRequest"), exports);
|
|
21
|
+
__exportStar(require("./AppsSearchResponse"), exports);
|
|
@@ -13,4 +13,11 @@ export interface CapabilityExecutionBase extends MavenAGI.CapabilityRunBase {
|
|
|
13
13
|
subjectId: MavenAGI.EntityId;
|
|
14
14
|
/** When the execution was recorded. Results are ordered by this field. */
|
|
15
15
|
createdAt: Date;
|
|
16
|
+
/**
|
|
17
|
+
* Who the execution was recorded for. Event Triggers usually fire in the background, so
|
|
18
|
+
* most trigger executions read "Maven AGI" with no `actingAppId`; one recorded while
|
|
19
|
+
* handling a caller's request names that caller. Always absent on Conversation Kickoff
|
|
20
|
+
* executions, which record no author, and absent when no one was recorded.
|
|
21
|
+
*/
|
|
22
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
16
23
|
}
|
|
@@ -43,6 +43,8 @@ import type * as MavenAGI from "../../../index";
|
|
|
43
43
|
export interface ActionResponse extends MavenAGI.ActionProperties, MavenAGI.CapabilityBase {
|
|
44
44
|
/** ID that uniquely identifies this action */
|
|
45
45
|
actionId: MavenAGI.EntityId;
|
|
46
|
+
/** The Function version this action runs. Absent when the app's own handler runs it. */
|
|
47
|
+
functionBinding?: MavenAGI.FunctionVersionBinding;
|
|
46
48
|
/**
|
|
47
49
|
* The instructions given to the LLM when determining whether to execute the action.
|
|
48
50
|
* This field defaults to the `description` field if not provided. Use the `patch` API to update.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why an attachment was not sent to the model.
|
|
3
|
+
*
|
|
4
|
+
* * `UNSUPPORTED_TYPE`: The model only reads images and PDFs. The attachment is still stored and can be downloaded.
|
|
5
|
+
* * `TOO_LARGE`: The attachment is larger than the LLM's size limit.
|
|
6
|
+
*/
|
|
7
|
+
export declare const AttachmentNotSentToModelReason: {
|
|
8
|
+
readonly UnsupportedType: "UNSUPPORTED_TYPE";
|
|
9
|
+
readonly TooLarge: "TOO_LARGE";
|
|
10
|
+
};
|
|
11
|
+
export type AttachmentNotSentToModelReason = (typeof AttachmentNotSentToModelReason)[keyof typeof AttachmentNotSentToModelReason] | string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AttachmentNotSentToModelReason = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Why an attachment was not sent to the model.
|
|
7
|
+
*
|
|
8
|
+
* * `UNSUPPORTED_TYPE`: The model only reads images and PDFs. The attachment is still stored and can be downloaded.
|
|
9
|
+
* * `TOO_LARGE`: The attachment is larger than the LLM's size limit.
|
|
10
|
+
*/
|
|
11
|
+
exports.AttachmentNotSentToModelReason = {
|
|
12
|
+
UnsupportedType: "UNSUPPORTED_TYPE",
|
|
13
|
+
TooLarge: "TOO_LARGE",
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
export interface AttachmentNotSentToModelWarning {
|
|
3
|
+
reason: MavenAGI.AttachmentNotSentToModelReason;
|
|
4
|
+
/** The mime-type of the attachment. */
|
|
5
|
+
attachmentType: string;
|
|
6
|
+
/** The name the attachment was uploaded with, if any. */
|
|
7
|
+
attachmentName?: string;
|
|
8
|
+
/** The size of the attachment in bytes, when known. */
|
|
9
|
+
sizeBytes?: number;
|
|
10
|
+
}
|
|
@@ -10,6 +10,10 @@ export interface BaseConversationResponse {
|
|
|
10
10
|
createdAt?: Date;
|
|
11
11
|
/** The date and time the conversation was last updated */
|
|
12
12
|
updatedAt?: Date;
|
|
13
|
+
/** The caller whose request started the conversation. Absent when no one was recorded. */
|
|
14
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
15
|
+
/** Who last changed the conversation, as `updatedAt` dates it. Maven's own background work on the conversation, such as categorizing it or detecting its language, counts as a change and reads "Maven AGI" with no `actingAppId`, so this often names Maven rather than the last caller. Absent when no one was recorded. */
|
|
16
|
+
updatedBy?: MavenAGI.ChangeAuthor;
|
|
13
17
|
/** The tags of the conversation. Used for filtering in Agent Designer. */
|
|
14
18
|
tags?: Set<string>;
|
|
15
19
|
/** The metadata of the conversation supplied by the app which created the conversation. */
|
|
@@ -13,4 +13,13 @@ export interface BotMessage extends MavenAGI.ConversationMessageBase {
|
|
|
13
13
|
* A `FAILED` message without a reason failed for some other cause, such as the model returning no answer.
|
|
14
14
|
*/
|
|
15
15
|
statusReason?: MavenAGI.BotMessageStatusReason;
|
|
16
|
+
/**
|
|
17
|
+
* Problems the agent ran into while generating this response that did not stop it from answering,
|
|
18
|
+
* such as a user attachment the model could not read. Empty or absent when there were none.
|
|
19
|
+
*/
|
|
20
|
+
warnings?: MavenAGI.BotMessageWarning[];
|
|
21
|
+
/** Whoever's request produced this message, such as the app or person that called `ask`, rather than the agent that wrote the reply. Absent when no one was recorded. */
|
|
22
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
23
|
+
/** Who last changed this message. Saving more of a streamed reply's text can move `updatedAt` without changing it. Absent when no one was recorded. */
|
|
24
|
+
updatedBy?: MavenAGI.ChangeAuthor;
|
|
16
25
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* Something the agent could not use while generating a response. More warning types may be added.
|
|
4
|
+
*/
|
|
5
|
+
export type BotMessageWarning =
|
|
6
|
+
/**
|
|
7
|
+
* An attachment on the user's message was left out of the prompt, so the model did not see it. */
|
|
8
|
+
MavenAGI.BotMessageWarning.AttachmentNotSentToModel;
|
|
9
|
+
export declare namespace BotMessageWarning {
|
|
10
|
+
interface AttachmentNotSentToModel extends MavenAGI.AttachmentNotSentToModelWarning {
|
|
11
|
+
type: "attachmentNotSentToModel";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -11,7 +11,7 @@ export interface ChangeAuthor {
|
|
|
11
11
|
* change made with no signed-in caller, and older changes.
|
|
12
12
|
*/
|
|
13
13
|
mavenUserId?: MavenAGI.LeveledEntityId;
|
|
14
|
-
/** Who made the change, as their name read at the time; it does not change if they rename later. When an app acted for a person signed in to Maven, their name (absent if they have no name on record). When an app acted for no person, the app's ID. Changes recorded before people were tracked usually name the app. A change made with no signed-in caller
|
|
14
|
+
/** Who made the change, as their name read at the time; it does not change if they rename later. When an app acted for a person signed in to Maven, their name (absent if they have no name on record). When an app acted for no person, the app's ID. Changes recorded before people were tracked usually name the app. Work Maven ran on its own, such as analyzing a conversation in the background, reads "Maven AGI" with no `actingAppId`. A change made with no signed-in caller reads "Anonymous", and some older changes name a dashboard user. */
|
|
15
15
|
name?: string;
|
|
16
16
|
/** The ID of the app that made the change. Absent when no app made it, such as a change with no signed-in caller, and for older changes where no app was recorded. */
|
|
17
17
|
actingAppId?: string;
|
|
@@ -29,6 +29,9 @@ export declare const EntityType: {
|
|
|
29
29
|
readonly Scenario: "SCENARIO";
|
|
30
30
|
readonly ScenarioSuite: "SCENARIO_SUITE";
|
|
31
31
|
readonly ScenarioRun: "SCENARIO_RUN";
|
|
32
|
+
/**
|
|
33
|
+
* The outcome of one scenario in one run. Minted by Maven, so `appId` is `maven`. */
|
|
34
|
+
readonly ScenarioResult: "SCENARIO_RESULT";
|
|
32
35
|
readonly Function: "FUNCTION";
|
|
33
36
|
readonly FunctionVersion: "FUNCTION_VERSION";
|
|
34
37
|
/**
|
|
@@ -33,6 +33,9 @@ exports.EntityType = {
|
|
|
33
33
|
Scenario: "SCENARIO",
|
|
34
34
|
ScenarioSuite: "SCENARIO_SUITE",
|
|
35
35
|
ScenarioRun: "SCENARIO_RUN",
|
|
36
|
+
/**
|
|
37
|
+
* The outcome of one scenario in one run. Minted by Maven, so `appId` is `maven`. */
|
|
38
|
+
ScenarioResult: "SCENARIO_RESULT",
|
|
36
39
|
Function: "FUNCTION",
|
|
37
40
|
FunctionVersion: "FUNCTION_VERSION",
|
|
38
41
|
/**
|
|
@@ -8,4 +8,6 @@ export interface ErrorMessage {
|
|
|
8
8
|
message?: string;
|
|
9
9
|
/** Machine-readable reason for the failure, when the API defines one. Match on this rather than on `message`, whose wording may change. */
|
|
10
10
|
reason?: MavenAGI.ErrorReason;
|
|
11
|
+
/** The fields the request was rejected for, each with its own message. Set with reason `INVALID_SETTINGS`. */
|
|
12
|
+
fieldErrors?: MavenAGI.FieldError[];
|
|
11
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error.
|
|
1
|
+
/** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error. */
|
|
2
2
|
export declare const ErrorReason: {
|
|
3
3
|
/**
|
|
4
4
|
* The variant is receiving live traffic, so it can't be edited. Fork a working variant and edit that instead. */
|
|
@@ -30,11 +30,17 @@ export declare const ErrorReason: {
|
|
|
30
30
|
/**
|
|
31
31
|
* The entity type is versioned on this agent, so the request must name the agent variant to read or write. Pass the variant's reference ID, and its owning app where the endpoint takes one; a request that names none is rejected. */
|
|
32
32
|
readonly VariantRequired: "VARIANT_REQUIRED";
|
|
33
|
+
/**
|
|
34
|
+
* The agent is versioned (its `migrations.versionedEntityTypes` isn't empty), so it can't leave charter mode. */
|
|
35
|
+
readonly CharterModeRequired: "CHARTER_MODE_REQUIRED";
|
|
33
36
|
/**
|
|
34
37
|
* The write would change an intelligent field's `validationType`. A field keeps its type, in every agent variant; to use a different type, create a new field. */
|
|
35
38
|
readonly IntelligentFieldTypeChanged: "INTELLIGENT_FIELD_TYPE_CHANGED";
|
|
36
39
|
/**
|
|
37
40
|
* The working set holds staged edits of an entity type or agent setting that isn't versioned for the agent now (see the agent's `migrations.versionedEntityTypes`), left from before Maven turned its versioning off. Committing would publish them. Contact Maven support, or discard the working set with `discardEdits`. */
|
|
38
41
|
readonly WorkingSetHasUnversionedEdits: "WORKING_SET_HAS_UNVERSIONED_EDITS";
|
|
42
|
+
/**
|
|
43
|
+
* The app rejected the settings it was asked to store and named the fields in `fieldErrors`. An app that rejects settings without naming a field answers a 400 with no `reason`. */
|
|
44
|
+
readonly InvalidSettings: "INVALID_SETTINGS";
|
|
39
45
|
};
|
|
40
46
|
export type ErrorReason = (typeof ErrorReason)[keyof typeof ErrorReason] | string;
|
|
@@ -2,7 +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.ErrorReason = void 0;
|
|
5
|
-
/** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error.
|
|
5
|
+
/** Why a request was rejected. Values are UPPER_SNAKE_CASE, at most 63 characters. New values may be added, so treat an unrecognized one as a generic error. */
|
|
6
6
|
exports.ErrorReason = {
|
|
7
7
|
/**
|
|
8
8
|
* The variant is receiving live traffic, so it can't be edited. Fork a working variant and edit that instead. */
|
|
@@ -34,10 +34,16 @@ exports.ErrorReason = {
|
|
|
34
34
|
/**
|
|
35
35
|
* The entity type is versioned on this agent, so the request must name the agent variant to read or write. Pass the variant's reference ID, and its owning app where the endpoint takes one; a request that names none is rejected. */
|
|
36
36
|
VariantRequired: "VARIANT_REQUIRED",
|
|
37
|
+
/**
|
|
38
|
+
* The agent is versioned (its `migrations.versionedEntityTypes` isn't empty), so it can't leave charter mode. */
|
|
39
|
+
CharterModeRequired: "CHARTER_MODE_REQUIRED",
|
|
37
40
|
/**
|
|
38
41
|
* The write would change an intelligent field's `validationType`. A field keeps its type, in every agent variant; to use a different type, create a new field. */
|
|
39
42
|
IntelligentFieldTypeChanged: "INTELLIGENT_FIELD_TYPE_CHANGED",
|
|
40
43
|
/**
|
|
41
44
|
* The working set holds staged edits of an entity type or agent setting that isn't versioned for the agent now (see the agent's `migrations.versionedEntityTypes`), left from before Maven turned its versioning off. Committing would publish them. Contact Maven support, or discard the working set with `discardEdits`. */
|
|
42
45
|
WorkingSetHasUnversionedEdits: "WORKING_SET_HAS_UNVERSIONED_EDITS",
|
|
46
|
+
/**
|
|
47
|
+
* The app rejected the settings it was asked to store and named the fields in `fieldErrors`. An app that rejects settings without naming a field answers a 400 with no `reason`. */
|
|
48
|
+
InvalidSettings: "INVALID_SETTINGS",
|
|
43
49
|
};
|
|
@@ -45,4 +45,12 @@ export interface Feedback extends MavenAGI.FeedbackBase {
|
|
|
45
45
|
userId?: MavenAGI.EntityId;
|
|
46
46
|
/** The date and time the feedback was created */
|
|
47
47
|
createdAt?: Date;
|
|
48
|
+
/**
|
|
49
|
+
* Who recorded the feedback through `createFeedback`: the person an app acted for when they were
|
|
50
|
+
* signed in to Maven, or the app itself when it acted for no one. This is the caller, not the
|
|
51
|
+
* user the feedback came from, which is `userId`. Only the `createFeedback` response returns
|
|
52
|
+
* it; the `Feedback` sent to a developer app's `feedbackCreatedOrUpdated` hook doesn't carry it.
|
|
53
|
+
* Absent when no one was recorded.
|
|
54
|
+
*/
|
|
55
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
48
56
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface FieldError {
|
|
2
|
+
/** JSON pointer to the rejected field, relative to the object that was rejected (for `INVALID_SETTINGS`, the settings), such as `/apiKey` or `/accounts/1/password`, or an empty string for that object as a whole. */
|
|
3
|
+
path: string;
|
|
4
|
+
/** Human-readable reason the field was rejected. */
|
|
5
|
+
message: string;
|
|
6
|
+
}
|
|
@@ -6,6 +6,19 @@ export interface InboxItemBase {
|
|
|
6
6
|
createdAt: Date;
|
|
7
7
|
/** Timestamp when the inbox item was last updated. */
|
|
8
8
|
updatedAt: Date;
|
|
9
|
+
/**
|
|
10
|
+
* Who raised the inbox item. Maven raises missing-knowledge and duplicate-document items in
|
|
11
|
+
* the background, so they read "Maven AGI" with no `actingAppId`. A custom item names the
|
|
12
|
+
* app that created it, or the person it acted for. Absent when no one was recorded.
|
|
13
|
+
*/
|
|
14
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
15
|
+
/**
|
|
16
|
+
* Who last changed the inbox item, as `updatedAt` dates it, such as by changing its status.
|
|
17
|
+
* "Maven AGI" when Maven last changed it in the background. An item that changes because a
|
|
18
|
+
* fix was applied to another item names whoever applied that fix. Absent when no one was
|
|
19
|
+
* recorded.
|
|
20
|
+
*/
|
|
21
|
+
updatedBy?: MavenAGI.ChangeAuthor;
|
|
9
22
|
/** Status of the inbox item. */
|
|
10
23
|
status: MavenAGI.InboxItemStatus;
|
|
11
24
|
/** Severity of the inbox item. */
|
|
@@ -22,7 +22,10 @@ import type * as MavenAGI from "../../../index";
|
|
|
22
22
|
* value: "HIGH",
|
|
23
23
|
* confidence: 0.95,
|
|
24
24
|
* rationale: "The conversation mentions a production outage affecting multiple customers, indicating high urgency and impact.",
|
|
25
|
-
* createdAt: new Date("2024-01-15T10:30:00.000Z")
|
|
25
|
+
* createdAt: new Date("2024-01-15T10:30:00.000Z"),
|
|
26
|
+
* createdBy: {
|
|
27
|
+
* name: "Maven AGI"
|
|
28
|
+
* }
|
|
26
29
|
* }
|
|
27
30
|
*/
|
|
28
31
|
export interface IntelligentFieldValueResponse {
|
|
@@ -40,4 +43,13 @@ export interface IntelligentFieldValueResponse {
|
|
|
40
43
|
rationale?: string;
|
|
41
44
|
/** The date and time this value was computed */
|
|
42
45
|
createdAt?: Date;
|
|
46
|
+
/**
|
|
47
|
+
* Who recorded this value. Most values are computed in the background and read "Maven AGI"
|
|
48
|
+
* with no `actingAppId`. A value computed for a caller's request can name that caller
|
|
49
|
+
* instead, or read "Anonymous" when it was saved with no signed-in caller. Only
|
|
50
|
+
* `intelligentFields.searchValues` returns it; the values a conversation or agent user
|
|
51
|
+
* response carries come from the search index, which stores no author, so they never have
|
|
52
|
+
* it. Absent when no one was recorded.
|
|
53
|
+
*/
|
|
54
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
43
55
|
}
|
|
@@ -4,6 +4,14 @@ export interface UserEvent extends MavenAGI.EventBaseNoId {
|
|
|
4
4
|
id: MavenAGI.EntityId;
|
|
5
5
|
/** The date and time the event was created */
|
|
6
6
|
createdAt?: Date;
|
|
7
|
+
/**
|
|
8
|
+
* Who recorded the event: the caller of `events.create`, or of `conversation.createFeedback` for
|
|
9
|
+
* feedback Maven also records as an event. That is the person an app acted for when they were
|
|
10
|
+
* signed in to Maven, or the app itself when it acted for no one. It is not the user the event is
|
|
11
|
+
* about, which is `userInfo`. A developer app's `eventCreatedOrUpdated` hook doesn't receive it.
|
|
12
|
+
* Absent when no one was recorded.
|
|
13
|
+
*/
|
|
14
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
7
15
|
/** The name of the event. Shown in Agent Designer as "Event type". */
|
|
8
16
|
eventName: MavenAGI.UserEventName;
|
|
9
17
|
/** Information about the user who triggered the event */
|
|
@@ -19,6 +19,10 @@ export interface UserMessage extends MavenAGI.UserMessageBase {
|
|
|
19
19
|
* * `UNKNOWN`: The message status is unknown.
|
|
20
20
|
*/
|
|
21
21
|
status: MavenAGI.MessageStatus;
|
|
22
|
+
/** Who sent the request that added this message. This is the caller, such as an app or a person signed in through one, not necessarily the user in `userId`. Absent when no one was recorded. */
|
|
23
|
+
createdBy?: MavenAGI.ChangeAuthor;
|
|
24
|
+
/** Who last changed this message, as `updatedAt` dates it. Absent when no one was recorded. */
|
|
25
|
+
updatedBy?: MavenAGI.ChangeAuthor;
|
|
22
26
|
/**
|
|
23
27
|
* Only present on newer messaged where `userMessageType` is `USER`.
|
|
24
28
|
* Indicates the state of the answer to the user message.
|
|
@@ -21,6 +21,8 @@ export * from "./AppUserRequest";
|
|
|
21
21
|
export * from "./AppUserResponse";
|
|
22
22
|
export * from "./ArraySettingsSchemaEntry";
|
|
23
23
|
export * from "./AskType";
|
|
24
|
+
export * from "./AttachmentNotSentToModelReason";
|
|
25
|
+
export * from "./AttachmentNotSentToModelWarning";
|
|
24
26
|
export * from "./AttachmentRequest";
|
|
25
27
|
export * from "./AttachmentResponse";
|
|
26
28
|
export * from "./AttachmentStatus";
|
|
@@ -52,6 +54,7 @@ export * from "./BotLogicSteeringItem";
|
|
|
52
54
|
export * from "./BotLogicUserItem";
|
|
53
55
|
export * from "./BotMessage";
|
|
54
56
|
export * from "./BotMessageStatusReason";
|
|
57
|
+
export * from "./BotMessageWarning";
|
|
55
58
|
export * from "./BotOAuthButtonResponse";
|
|
56
59
|
export * from "./BotObjectResponse";
|
|
57
60
|
export * from "./BotResponse";
|
|
@@ -131,6 +134,7 @@ export * from "./FeedbackBase";
|
|
|
131
134
|
export * from "./FeedbackInfo";
|
|
132
135
|
export * from "./FeedbackType";
|
|
133
136
|
export * from "./FieldCondition";
|
|
137
|
+
export * from "./FieldError";
|
|
134
138
|
export * from "./FunctionVersionBinding";
|
|
135
139
|
export * from "./GeoInfo";
|
|
136
140
|
export * from "./HarmfulContentAnalysis";
|
|
@@ -37,6 +37,8 @@ __exportStar(require("./AppUserRequest"), exports);
|
|
|
37
37
|
__exportStar(require("./AppUserResponse"), exports);
|
|
38
38
|
__exportStar(require("./ArraySettingsSchemaEntry"), exports);
|
|
39
39
|
__exportStar(require("./AskType"), exports);
|
|
40
|
+
__exportStar(require("./AttachmentNotSentToModelReason"), exports);
|
|
41
|
+
__exportStar(require("./AttachmentNotSentToModelWarning"), exports);
|
|
40
42
|
__exportStar(require("./AttachmentRequest"), exports);
|
|
41
43
|
__exportStar(require("./AttachmentResponse"), exports);
|
|
42
44
|
__exportStar(require("./AttachmentStatus"), exports);
|
|
@@ -68,6 +70,7 @@ __exportStar(require("./BotLogicSteeringItem"), exports);
|
|
|
68
70
|
__exportStar(require("./BotLogicUserItem"), exports);
|
|
69
71
|
__exportStar(require("./BotMessage"), exports);
|
|
70
72
|
__exportStar(require("./BotMessageStatusReason"), exports);
|
|
73
|
+
__exportStar(require("./BotMessageWarning"), exports);
|
|
71
74
|
__exportStar(require("./BotOAuthButtonResponse"), exports);
|
|
72
75
|
__exportStar(require("./BotObjectResponse"), exports);
|
|
73
76
|
__exportStar(require("./BotResponse"), exports);
|
|
@@ -147,6 +150,7 @@ __exportStar(require("./FeedbackBase"), exports);
|
|
|
147
150
|
__exportStar(require("./FeedbackInfo"), exports);
|
|
148
151
|
__exportStar(require("./FeedbackType"), exports);
|
|
149
152
|
__exportStar(require("./FieldCondition"), exports);
|
|
153
|
+
__exportStar(require("./FieldError"), exports);
|
|
150
154
|
__exportStar(require("./FunctionVersionBinding"), exports);
|
|
151
155
|
__exportStar(require("./GeoInfo"), exports);
|
|
152
156
|
__exportStar(require("./HarmfulContentAnalysis"), exports);
|
|
@@ -145,7 +145,7 @@ export declare class ConversationClient {
|
|
|
145
145
|
*
|
|
146
146
|
* <Warning>This is a destructive operation and cannot be undone. <br/><br/>
|
|
147
147
|
* What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
|
|
148
|
-
* Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
|
|
148
|
+
* Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments and attachment warnings, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
|
|
149
149
|
* Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
|
|
150
150
|
* What is kept: the conversation's metadata, each message's charts, structured answer and app-supplied metadata, the conversation's intelligent field values, its feedback and events, and the users who took part. To wipe a user's data, use `DELETE /users/{userId}` or `DELETE /agentusers/{agentUserId}`.</Warning>
|
|
151
151
|
*
|
|
@@ -446,7 +446,7 @@ class ConversationClient {
|
|
|
446
446
|
*
|
|
447
447
|
* <Warning>This is a destructive operation and cannot be undone. <br/><br/>
|
|
448
448
|
* What is wiped: the conversation's `subject` and `analysis.agentResponse` are cleared, and `analysis.userRequest` is replaced with `reason`.
|
|
449
|
-
* Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
|
|
449
|
+
* Every message's text, from the user and the agent alike, is replaced with `reason`, and its attachments and attachment warnings, follow-up questions, backend LLM prompt and history, the data actions returned, and action arguments are cleared.
|
|
450
450
|
* Evaluation results for the conversation are deleted, the payloads recorded on its trigger and action executions are cleared, and the message recorded on each of its Conversation Kickoff executions is cleared. <br/><br/>
|
|
451
451
|
* What is kept: the conversation's metadata, each message's charts, structured answer and app-supplied metadata, the conversation's intelligent field values, its feedback and events, and the users who took part. To wipe a user's data, use `DELETE /users/{userId}` or `DELETE /agentusers/{agentUserId}`.</Warning>
|
|
452
452
|
*
|
|
@@ -20,8 +20,9 @@ export interface AskRequestFields {
|
|
|
20
20
|
*/
|
|
21
21
|
text?: string;
|
|
22
22
|
/**
|
|
23
|
-
* The attachments to the message. Image attachments
|
|
24
|
-
*
|
|
23
|
+
* The attachments to the message. Image and PDF attachments within the LLM's size limit are sent to the LLM as additional data.
|
|
24
|
+
* Other attachments can be stored and downloaded from the API but are not sent to the LLM.
|
|
25
|
+
* The bot message, as returned by `ask` or a conversation read, lists each attachment the LLM did not see in its `warnings`.
|
|
25
26
|
*/
|
|
26
27
|
attachments?: MavenAGI.AttachmentRequest[];
|
|
27
28
|
/** Transient data which the Maven platform will not persist. This data will only be forwarded to actions taken by this ask request. For example, one may put in user tokens as transient data. */
|
|
@@ -109,13 +109,13 @@ export interface ConversationFilter {
|
|
|
109
109
|
*/
|
|
110
110
|
matchedSegmentIds?: MavenAGI.EntityIdFilter[];
|
|
111
111
|
/**
|
|
112
|
-
* Filter by the charters that any bot
|
|
112
|
+
* Filter by the charters that any bot reply on a conversation matched, Copilot suggestions included.
|
|
113
113
|
* References without a matching charter for the calling agent contribute nothing
|
|
114
114
|
* to the filter — they neither error nor warn, they simply produce no matches.
|
|
115
115
|
*/
|
|
116
116
|
matchedCharterIds?: MavenAGI.EntityIdFilter[];
|
|
117
117
|
/**
|
|
118
|
-
* Filter by whether any bot
|
|
118
|
+
* Filter by whether any bot reply in the conversation, Copilot suggestions included, ran in charter mode.
|
|
119
119
|
* Omit to match every conversation regardless of charter state.
|
|
120
120
|
*/
|
|
121
121
|
anyMsgCharterMode?: boolean;
|
|
@@ -3,6 +3,6 @@ export interface SubmitActionFormRequest {
|
|
|
3
3
|
actionFormId: string;
|
|
4
4
|
/** Map of parameter IDs to values provided by the user. All required action fields must be provided. */
|
|
5
5
|
parameters: Record<string, MavenAGI.ActionFormRequestParamValue>;
|
|
6
|
-
/** Transient data which the Maven platform will not persist.
|
|
6
|
+
/** Transient data which the Maven platform will not persist. It is forwarded to the submitted form's action and to any actions the agent runs in its response to the submission, whichever app owns each action. For example, one may put in user tokens as transient data. */
|
|
7
7
|
transientData?: Record<string, string>;
|
|
8
8
|
}
|
package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts
CHANGED
|
@@ -19,4 +19,9 @@ export interface CreateConversationKickoffRequest {
|
|
|
19
19
|
name: string;
|
|
20
20
|
/** What the kickoff does, shown to whoever manages the agent. */
|
|
21
21
|
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The Function version to bind this kickoff to. A bound kickoff runs exactly this
|
|
24
|
+
* version. Omitting it keeps the kickoff's existing binding.
|
|
25
|
+
*/
|
|
26
|
+
functionBinding?: MavenAGI.FunctionVersionBinding;
|
|
22
27
|
}
|
|
@@ -24,4 +24,6 @@ import type * as MavenAGI from "../../../index";
|
|
|
24
24
|
export interface ConversationKickoff extends MavenAGI.CapabilityBase {
|
|
25
25
|
/** ID that uniquely identifies this Conversation Kickoff. */
|
|
26
26
|
kickoffId: MavenAGI.EntityId;
|
|
27
|
+
/** The Function version this kickoff runs. Absent when the app's own handler runs it. */
|
|
28
|
+
functionBinding?: MavenAGI.FunctionVersionBinding;
|
|
27
29
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* What an app's page in the app directory shows about installing and using it. Its organization sets these.
|
|
4
|
+
*/
|
|
5
|
+
export interface AppDirectoryDetails {
|
|
6
|
+
/**
|
|
7
|
+
* Guidance shown while installing the app, for example how to obtain the credentials it asks for.
|
|
8
|
+
* May use [placeholders](https://developers.mavenagi.com/docs/documentation/configuration-and-integration/placeholders) such as `${agentId}`.
|
|
9
|
+
*/
|
|
10
|
+
installationInstructions?: string;
|
|
11
|
+
/** Guidance shown once the app is installed. May use [placeholders](https://developers.mavenagi.com/docs/documentation/configuration-and-integration/placeholders), settings included. */
|
|
12
|
+
instructions?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Supporting links published by the author, such as documentation or a privacy policy. Their URLs
|
|
15
|
+
* may use [placeholders](https://developers.mavenagi.com/docs/documentation/configuration-and-integration/placeholders) such as `${appHost}`, but never settings: links are public.
|
|
16
|
+
*/
|
|
17
|
+
links: MavenAGI.Link[];
|
|
18
|
+
/**
|
|
19
|
+
* The settings the app accepts. Drives the install form, and describes which values are files
|
|
20
|
+
* rather than plain values.
|
|
21
|
+
*/
|
|
22
|
+
settingsSchema: MavenAGI.SettingsSchema;
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as MavenAGI from "../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* How an app is described on its card in the app directory. Its organization sets these.
|
|
4
|
+
*/
|
|
5
|
+
export interface AppDirectoryListing {
|
|
6
|
+
/** Full description shown on the app's detail page. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** One-line summary shown on the app's card in the directory listing. */
|
|
9
|
+
shortDescription?: string;
|
|
10
|
+
/** Categories the app is filed under in the directory. */
|
|
11
|
+
categories: MavenAGI.AppCategory[];
|
|
12
|
+
/** The kinds of functionality the app provides, such as actions, triggers, or knowledge bases. */
|
|
13
|
+
capabilities: MavenAGI.AppCapability[];
|
|
14
|
+
}
|
|
@@ -2,7 +2,7 @@ import type * as MavenAGI from "../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* The fields every app exposes, whatever the surface it is returned from.
|
|
4
4
|
*/
|
|
5
|
-
export interface BaseApp {
|
|
5
|
+
export interface BaseApp extends MavenAGI.AppDirectoryListing {
|
|
6
6
|
/** Unique, immutable identifier for the app, used as `appId` everywhere in the API. */
|
|
7
7
|
id: string;
|
|
8
8
|
/** Display name shown in the app directory. */
|
|
@@ -17,16 +17,8 @@ export interface BaseApp {
|
|
|
17
17
|
* yet listed.
|
|
18
18
|
*/
|
|
19
19
|
visibility: MavenAGI.AppVisibility;
|
|
20
|
-
/** Full description shown on the app's detail page. */
|
|
21
|
-
description?: string;
|
|
22
|
-
/** One-line summary shown on the app's card in the directory listing. */
|
|
23
|
-
shortDescription?: string;
|
|
24
20
|
/** URL of the app's logo. Presigned and short-lived when the logo is stored by Maven. */
|
|
25
21
|
logoUrl?: string;
|
|
26
|
-
/** Categories the app is filed under in the directory. */
|
|
27
|
-
categories: MavenAGI.AppCategory[];
|
|
28
|
-
/** The kinds of functionality the app provides, such as actions, triggers, or knowledge bases. */
|
|
29
|
-
capabilities: MavenAGI.AppCapability[];
|
|
30
22
|
/** Whether this app is an auto-provisioned agent app created for a specific agent. */
|
|
31
23
|
isAgentApp?: boolean;
|
|
32
24
|
}
|