mavenagi 1.2.61 → 1.2.62
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 +6 -0
- package/Client.js +40 -30
- package/api/resources/actions/client/Client.d.ts +16 -0
- package/api/resources/actions/client/Client.js +16 -0
- package/api/resources/capabilities/client/Client.d.ts +118 -0
- package/api/resources/capabilities/client/Client.js +521 -0
- package/api/resources/capabilities/client/index.d.ts +1 -0
- package/api/resources/capabilities/client/index.js +17 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +36 -0
- package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +3 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
- package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
- package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
- package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
- package/api/resources/capabilities/client/requests/index.d.ts +4 -0
- package/api/resources/capabilities/client/requests/index.js +2 -0
- package/api/resources/capabilities/exports.d.ts +2 -0
- package/api/resources/capabilities/exports.js +21 -0
- package/api/resources/capabilities/index.d.ts +2 -0
- package/api/resources/capabilities/index.js +18 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
- package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
- package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
- package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
- package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
- package/api/resources/capabilities/types/index.d.ts +4 -0
- package/api/resources/capabilities/types/index.js +20 -0
- package/api/resources/charters/types/CharterSearchFilter.d.ts +12 -9
- package/api/resources/commons/types/ActionResponse.d.ts +11 -2
- package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
- package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
- package/api/resources/commons/types/CapabilityBase.js +3 -0
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +6 -3
- package/api/resources/{intelligentFields/types/IntelligentFieldStatus.js → commons/types/CapabilityStatus.js} +6 -3
- package/api/resources/commons/types/CapabilityType.d.ts +8 -0
- package/api/resources/commons/types/CapabilityType.js +11 -0
- package/api/resources/commons/types/EntityType.d.ts +5 -1
- package/api/resources/commons/types/EntityType.js +5 -1
- package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
- package/api/resources/commons/types/ErrorReason.d.ts +31 -0
- package/api/resources/commons/types/ErrorReason.js +34 -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 -0
- package/api/resources/conversation/client/Client.js +1 -0
- package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
- package/api/resources/conversationKickoffs/client/Client.js +175 -0
- package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/index.js +17 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
- package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
- package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
- package/api/resources/conversationKickoffs/exports.d.ts +2 -0
- package/api/resources/conversationKickoffs/exports.js +21 -0
- package/api/resources/conversationKickoffs/index.d.ts +2 -0
- package/api/resources/conversationKickoffs/index.js +18 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
- package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
- package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/api/resources/conversationKickoffs/types/index.js +17 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/intelligentFields/client/Client.d.ts +13 -1
- package/api/resources/intelligentFields/client/Client.js +13 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +1 -1
- package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
- package/api/resources/intelligentFields/types/EnumOption.d.ts +5 -0
- package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -4
- package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +1 -1
- package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +6 -1
- package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
- package/api/resources/intelligentFields/types/index.d.ts +0 -1
- package/api/resources/intelligentFields/types/index.js +0 -1
- package/api/resources/knowledge/client/Client.d.ts +3 -0
- package/api/resources/knowledge/client/Client.js +3 -0
- package/api/resources/triggers/client/Client.d.ts +21 -0
- package/api/resources/triggers/client/Client.js +21 -0
- package/api/resources/triggers/types/EventTriggerBase.d.ts +0 -4
- package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
- package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
- package/package.json +1 -1
- package/reference.md +461 -1
- package/serialization/resources/capabilities/client/index.d.ts +1 -0
- package/serialization/resources/capabilities/client/index.js +17 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +21 -0
- package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +55 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
- package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
- package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
- package/serialization/resources/capabilities/client/requests/index.js +7 -0
- package/serialization/resources/capabilities/index.d.ts +2 -0
- package/serialization/resources/capabilities/index.js +18 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
- package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
- package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
- package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
- package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
- package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
- package/serialization/resources/capabilities/types/index.d.ts +4 -0
- package/serialization/resources/capabilities/types/index.js +20 -0
- package/serialization/resources/charters/types/CharterSearchFilter.d.ts +1 -0
- package/serialization/resources/charters/types/CharterSearchFilter.js +1 -0
- package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
- package/serialization/resources/commons/types/ActionResponse.js +4 -2
- package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
- package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
- package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
- package/serialization/resources/commons/types/CapabilityBase.js +46 -0
- package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
- package/serialization/resources/commons/types/CapabilityStatus.js +39 -0
- package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
- package/serialization/resources/commons/types/CapabilityType.js +39 -0
- package/serialization/resources/commons/types/EntityType.d.ts +1 -1
- package/serialization/resources/commons/types/EntityType.js +1 -1
- 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 +7 -0
- package/serialization/resources/commons/types/ErrorReason.js +49 -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/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/index.js +17 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
- package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
- package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
- package/serialization/resources/conversationKickoffs/index.js +18 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
- package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
- package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
- package/serialization/resources/conversationKickoffs/types/index.js +17 -0
- package/serialization/resources/index.d.ts +6 -0
- package/serialization/resources/index.js +7 -1
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
- package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +2 -2
- package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
- package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
- package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
- package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
- package/serialization/resources/intelligentFields/types/index.js +0 -1
- package/serialization/resources/triggers/types/EventTriggerBase.d.ts +0 -2
- package/serialization/resources/triggers/types/EventTriggerBase.js +0 -2
- 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 -1
- package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -20,7 +20,6 @@ __exportStar(require("./IntelligentFieldCore"), exports);
|
|
|
20
20
|
__exportStar(require("./IntelligentFieldDetailResponse"), exports);
|
|
21
21
|
__exportStar(require("./IntelligentFieldRequest"), exports);
|
|
22
22
|
__exportStar(require("./IntelligentFieldResponse"), exports);
|
|
23
|
-
__exportStar(require("./IntelligentFieldStatus"), exports);
|
|
24
23
|
__exportStar(require("./IntelligentFieldType"), exports);
|
|
25
24
|
__exportStar(require("./IntelligentFieldValueEntityFilter"), exports);
|
|
26
25
|
__exportStar(require("./IntelligentFieldValueFieldFilter"), exports);
|
|
@@ -181,6 +181,9 @@ export declare class KnowledgeClient {
|
|
|
181
181
|
*
|
|
182
182
|
* If an existing version is in progress, then that version will be finalized in an error state.
|
|
183
183
|
*
|
|
184
|
+
* If another version create for the same knowledge base is still in progress, this request may
|
|
185
|
+
* return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
|
|
186
|
+
*
|
|
184
187
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
|
|
185
188
|
* @param {MavenAGI.KnowledgeBaseVersionRequest} request
|
|
186
189
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -780,6 +780,9 @@ class KnowledgeClient {
|
|
|
780
780
|
*
|
|
781
781
|
* If an existing version is in progress, then that version will be finalized in an error state.
|
|
782
782
|
*
|
|
783
|
+
* If another version create for the same knowledge base is still in progress, this request may
|
|
784
|
+
* return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
|
|
785
|
+
*
|
|
783
786
|
* @param {string} knowledgeBaseReferenceId - The reference ID of the knowledge base to create a version for. All other entity ID fields are inferred from the request.
|
|
784
787
|
* @param {MavenAGI.KnowledgeBaseVersionRequest} request
|
|
785
788
|
* @param {KnowledgeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -11,6 +11,12 @@ export declare class TriggersClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<TriggersClient.Options>;
|
|
12
12
|
constructor(options: TriggersClient.Options);
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*
|
|
16
|
+
* Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
17
|
+
* at once. It returns the fields every capability shares rather than the whole Event
|
|
18
|
+
* Trigger; fetch one by its kind and reference ID for the rest.
|
|
19
|
+
*
|
|
14
20
|
* @param {MavenAGI.EventTriggersSearchRequest} request
|
|
15
21
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
22
|
*
|
|
@@ -53,6 +59,11 @@ export declare class TriggersClient {
|
|
|
53
59
|
createOrUpdate(request: MavenAGI.EventTriggerRequest, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.EventTriggerResponse>;
|
|
54
60
|
private __createOrUpdate;
|
|
55
61
|
/**
|
|
62
|
+
* @deprecated
|
|
63
|
+
*
|
|
64
|
+
* Deprecated. Use `GET /v1/capabilities/TRIGGER/{referenceId}`, which returns this same
|
|
65
|
+
* object for a trigger and the equivalent for every other kind of capability.
|
|
66
|
+
*
|
|
56
67
|
* Get an event trigger by its supplied ID
|
|
57
68
|
*
|
|
58
69
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
@@ -72,6 +83,11 @@ export declare class TriggersClient {
|
|
|
72
83
|
get(triggerReferenceId: string, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<MavenAGI.EventTriggerResponse>;
|
|
73
84
|
private __get;
|
|
74
85
|
/**
|
|
86
|
+
* @deprecated
|
|
87
|
+
*
|
|
88
|
+
* Deprecated. Use `DELETE /v1/capabilities/TRIGGER/{referenceId}`, which deletes any kind
|
|
89
|
+
* of capability the same way.
|
|
90
|
+
*
|
|
75
91
|
* Delete an event trigger
|
|
76
92
|
*
|
|
77
93
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
|
|
@@ -91,6 +107,11 @@ export declare class TriggersClient {
|
|
|
91
107
|
delete(triggerReferenceId: string, requestOptions?: TriggersClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
92
108
|
private __delete;
|
|
93
109
|
/**
|
|
110
|
+
* @deprecated
|
|
111
|
+
*
|
|
112
|
+
* Deprecated. Use `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status`, which
|
|
113
|
+
* publishes and unpublishes any kind of capability the same way.
|
|
114
|
+
*
|
|
94
115
|
* Updates an event trigger. Only the enabled field is editable.
|
|
95
116
|
*
|
|
96
117
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
@@ -58,6 +58,12 @@ class TriggersClient {
|
|
|
58
58
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
+
* @deprecated
|
|
62
|
+
*
|
|
63
|
+
* Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
|
|
64
|
+
* at once. It returns the fields every capability shares rather than the whole Event
|
|
65
|
+
* Trigger; fetch one by its kind and reference ID for the rest.
|
|
66
|
+
*
|
|
61
67
|
* @param {MavenAGI.EventTriggersSearchRequest} request
|
|
62
68
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
69
|
*
|
|
@@ -264,6 +270,11 @@ class TriggersClient {
|
|
|
264
270
|
});
|
|
265
271
|
}
|
|
266
272
|
/**
|
|
273
|
+
* @deprecated
|
|
274
|
+
*
|
|
275
|
+
* Deprecated. Use `GET /v1/capabilities/TRIGGER/{referenceId}`, which returns this same
|
|
276
|
+
* object for a trigger and the equivalent for every other kind of capability.
|
|
277
|
+
*
|
|
267
278
|
* Get an event trigger by its supplied ID
|
|
268
279
|
*
|
|
269
280
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to get. All other entity ID fields are inferred from the request.
|
|
@@ -362,6 +373,11 @@ class TriggersClient {
|
|
|
362
373
|
});
|
|
363
374
|
}
|
|
364
375
|
/**
|
|
376
|
+
* @deprecated
|
|
377
|
+
*
|
|
378
|
+
* Deprecated. Use `DELETE /v1/capabilities/TRIGGER/{referenceId}`, which deletes any kind
|
|
379
|
+
* of capability the same way.
|
|
380
|
+
*
|
|
365
381
|
* Delete an event trigger
|
|
366
382
|
*
|
|
367
383
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to delete. All other entity ID fields are inferred from the request.
|
|
@@ -452,6 +468,11 @@ class TriggersClient {
|
|
|
452
468
|
});
|
|
453
469
|
}
|
|
454
470
|
/**
|
|
471
|
+
* @deprecated
|
|
472
|
+
*
|
|
473
|
+
* Deprecated. Use `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status`, which
|
|
474
|
+
* publishes and unpublishes any kind of capability the same way.
|
|
475
|
+
*
|
|
455
476
|
* Updates an event trigger. Only the enabled field is editable.
|
|
456
477
|
*
|
|
457
478
|
* @param {string} triggerReferenceId - The reference ID of the event trigger to update. All other entity ID fields are inferred from the request.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type * as MavenAGI from "../../../index";
|
|
2
2
|
export interface EventTriggerBase {
|
|
3
|
-
/** The name of the trigger, displayed to end users. If not set, a name is derived from the app ID and trigger type. */
|
|
4
|
-
name?: string;
|
|
5
|
-
/** The description of what the event trigger does, shown in the Maven Dashboard */
|
|
6
|
-
description: string;
|
|
7
3
|
/**
|
|
8
4
|
* The type of event trigger this app wishes to handle.
|
|
9
5
|
*
|
|
@@ -10,6 +10,10 @@ import type * as MavenAGI from "../../../index";
|
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface EventTriggerRequest extends MavenAGI.EventTriggerBase {
|
|
13
|
+
/** The name of the trigger, displayed to end users. If not set, a name is derived from the app ID and trigger type. */
|
|
14
|
+
name?: string;
|
|
15
|
+
/** The description of what the event trigger does, shown in the Maven Dashboard */
|
|
16
|
+
description: string;
|
|
13
17
|
/** ID that uniquely identifies this event trigger */
|
|
14
18
|
triggerId: MavenAGI.EntityIdBase;
|
|
15
19
|
}
|
|
@@ -9,14 +9,22 @@ import type * as MavenAGI from "../../../index";
|
|
|
9
9
|
* agentId: "support",
|
|
10
10
|
* type: MavenAGI.EntityType.EventTrigger
|
|
11
11
|
* },
|
|
12
|
+
* name: "Store in Snowflake",
|
|
12
13
|
* description: "Stores conversation data in Snowflake",
|
|
13
14
|
* type: MavenAGI.EventTriggerType.ConversationCreated,
|
|
14
|
-
* enabled: true
|
|
15
|
+
* enabled: true,
|
|
16
|
+
* createdAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
17
|
+
* updatedAt: new Date("2026-01-15T10:30:00.000Z"),
|
|
18
|
+
* status: MavenAGI.CapabilityStatus.Active
|
|
15
19
|
* }
|
|
16
20
|
*/
|
|
17
|
-
export interface EventTriggerResponse extends MavenAGI.EventTriggerBase {
|
|
21
|
+
export interface EventTriggerResponse extends MavenAGI.EventTriggerBase, MavenAGI.CapabilityBase {
|
|
18
22
|
/** ID that uniquely identifies this event trigger */
|
|
19
23
|
triggerId: MavenAGI.EntityId;
|
|
20
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Deprecated. Superseded by `status`, which says the same thing for every capability type.
|
|
26
|
+
*
|
|
27
|
+
* Whether this trigger will be called by Maven.
|
|
28
|
+
*/
|
|
21
29
|
enabled: boolean;
|
|
22
30
|
}
|