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.
Files changed (164) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +6 -0
  3. package/Client.js +40 -30
  4. package/api/resources/actions/client/Client.d.ts +16 -0
  5. package/api/resources/actions/client/Client.js +16 -0
  6. package/api/resources/capabilities/client/Client.d.ts +118 -0
  7. package/api/resources/capabilities/client/Client.js +521 -0
  8. package/api/resources/capabilities/client/index.d.ts +1 -0
  9. package/api/resources/capabilities/client/index.js +17 -0
  10. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +36 -0
  11. package/api/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +3 -0
  12. package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.d.ts +18 -0
  13. package/api/resources/capabilities/client/requests/DeleteCapabilityByTypeRequest.js +3 -0
  14. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.d.ts +22 -0
  15. package/api/resources/capabilities/client/requests/GetCapabilityByTypeRequest.js +3 -0
  16. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +24 -0
  17. package/api/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +3 -0
  18. package/api/resources/capabilities/client/requests/index.d.ts +4 -0
  19. package/api/resources/capabilities/client/requests/index.js +2 -0
  20. package/api/resources/capabilities/exports.d.ts +2 -0
  21. package/api/resources/capabilities/exports.js +21 -0
  22. package/api/resources/capabilities/index.d.ts +2 -0
  23. package/api/resources/capabilities/index.js +18 -0
  24. package/api/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +43 -0
  25. package/api/resources/capabilities/types/CapabilitiesSearchResponse.js +3 -0
  26. package/api/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  27. package/api/resources/capabilities/types/CapabilityResponse.js +3 -0
  28. package/api/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  29. package/api/resources/capabilities/types/CapabilitySortField.js +10 -0
  30. package/api/resources/capabilities/types/CapabilitySummary.d.ts +28 -0
  31. package/api/resources/capabilities/types/CapabilitySummary.js +3 -0
  32. package/api/resources/capabilities/types/index.d.ts +4 -0
  33. package/api/resources/capabilities/types/index.js +20 -0
  34. package/api/resources/charters/types/CharterSearchFilter.d.ts +12 -9
  35. package/api/resources/commons/types/ActionResponse.d.ts +11 -2
  36. package/api/resources/commons/types/BaseConversationResponse.d.ts +6 -0
  37. package/api/resources/commons/types/CapabilityBase.d.ts +23 -0
  38. package/api/resources/commons/types/CapabilityBase.js +3 -0
  39. package/api/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +6 -3
  40. package/api/resources/{intelligentFields/types/IntelligentFieldStatus.js → commons/types/CapabilityStatus.js} +6 -3
  41. package/api/resources/commons/types/CapabilityType.d.ts +8 -0
  42. package/api/resources/commons/types/CapabilityType.js +11 -0
  43. package/api/resources/commons/types/EntityType.d.ts +5 -1
  44. package/api/resources/commons/types/EntityType.js +5 -1
  45. package/api/resources/commons/types/ErrorMessage.d.ts +3 -0
  46. package/api/resources/commons/types/ErrorReason.d.ts +31 -0
  47. package/api/resources/commons/types/ErrorReason.js +34 -0
  48. package/api/resources/commons/types/index.d.ts +4 -0
  49. package/api/resources/commons/types/index.js +4 -0
  50. package/api/resources/conversation/client/Client.d.ts +1 -0
  51. package/api/resources/conversation/client/Client.js +1 -0
  52. package/api/resources/conversationKickoffs/client/Client.d.ts +45 -0
  53. package/api/resources/conversationKickoffs/client/Client.js +175 -0
  54. package/api/resources/conversationKickoffs/client/index.d.ts +1 -0
  55. package/api/resources/conversationKickoffs/client/index.js +17 -0
  56. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +22 -0
  57. package/api/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +3 -0
  58. package/api/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  59. package/api/resources/conversationKickoffs/client/requests/index.js +2 -0
  60. package/api/resources/conversationKickoffs/exports.d.ts +2 -0
  61. package/api/resources/conversationKickoffs/exports.js +21 -0
  62. package/api/resources/conversationKickoffs/index.d.ts +2 -0
  63. package/api/resources/conversationKickoffs/index.js +18 -0
  64. package/api/resources/conversationKickoffs/types/ConversationKickoff.d.ts +27 -0
  65. package/api/resources/conversationKickoffs/types/ConversationKickoff.js +3 -0
  66. package/api/resources/conversationKickoffs/types/index.d.ts +1 -0
  67. package/api/resources/conversationKickoffs/types/index.js +17 -0
  68. package/api/resources/index.d.ts +6 -0
  69. package/api/resources/index.js +7 -1
  70. package/api/resources/intelligentFields/client/Client.d.ts +13 -1
  71. package/api/resources/intelligentFields/client/Client.js +13 -1
  72. package/api/resources/intelligentFields/client/requests/IntelligentFieldDeleteRequest.d.ts +1 -1
  73. package/api/resources/intelligentFields/client/requests/IntelligentFieldGetRequest.d.ts +1 -1
  74. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
  75. package/api/resources/intelligentFields/types/EnumOption.d.ts +5 -0
  76. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -4
  77. package/api/resources/intelligentFields/types/IntelligentFieldDetailResponse.d.ts +1 -1
  78. package/api/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +6 -1
  79. package/api/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -8
  80. package/api/resources/intelligentFields/types/index.d.ts +0 -1
  81. package/api/resources/intelligentFields/types/index.js +0 -1
  82. package/api/resources/knowledge/client/Client.d.ts +3 -0
  83. package/api/resources/knowledge/client/Client.js +3 -0
  84. package/api/resources/triggers/client/Client.d.ts +21 -0
  85. package/api/resources/triggers/client/Client.js +21 -0
  86. package/api/resources/triggers/types/EventTriggerBase.d.ts +0 -4
  87. package/api/resources/triggers/types/EventTriggerRequest.d.ts +4 -0
  88. package/api/resources/triggers/types/EventTriggerResponse.d.ts +11 -3
  89. package/package.json +1 -1
  90. package/reference.md +461 -1
  91. package/serialization/resources/capabilities/client/index.d.ts +1 -0
  92. package/serialization/resources/capabilities/client/index.js +17 -0
  93. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.d.ts +21 -0
  94. package/serialization/resources/capabilities/client/requests/CapabilitiesSearchRequest.js +55 -0
  95. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.d.ts +10 -0
  96. package/serialization/resources/capabilities/client/requests/PatchCapabilityByTypeRequest.js +42 -0
  97. package/serialization/resources/capabilities/client/requests/index.d.ts +2 -0
  98. package/serialization/resources/capabilities/client/requests/index.js +7 -0
  99. package/serialization/resources/capabilities/index.d.ts +2 -0
  100. package/serialization/resources/capabilities/index.js +18 -0
  101. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.d.ts +11 -0
  102. package/serialization/resources/capabilities/types/CapabilitiesSearchResponse.js +45 -0
  103. package/serialization/resources/capabilities/types/CapabilityResponse.d.ts +23 -0
  104. package/serialization/resources/capabilities/types/CapabilityResponse.js +53 -0
  105. package/serialization/resources/capabilities/types/CapabilitySortField.d.ts +7 -0
  106. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.js → capabilities/types/CapabilitySortField.js} +2 -2
  107. package/serialization/resources/capabilities/types/CapabilitySummary.d.ts +13 -0
  108. package/serialization/resources/capabilities/types/CapabilitySummary.js +47 -0
  109. package/serialization/resources/capabilities/types/index.d.ts +4 -0
  110. package/serialization/resources/capabilities/types/index.js +20 -0
  111. package/serialization/resources/charters/types/CharterSearchFilter.d.ts +1 -0
  112. package/serialization/resources/charters/types/CharterSearchFilter.js +1 -0
  113. package/serialization/resources/commons/types/ActionResponse.d.ts +3 -2
  114. package/serialization/resources/commons/types/ActionResponse.js +4 -2
  115. package/serialization/resources/commons/types/BaseConversationResponse.d.ts +1 -0
  116. package/serialization/resources/commons/types/BaseConversationResponse.js +1 -0
  117. package/serialization/resources/commons/types/CapabilityBase.d.ts +14 -0
  118. package/serialization/resources/commons/types/CapabilityBase.js +46 -0
  119. package/serialization/resources/{intelligentFields/types/IntelligentFieldStatus.d.ts → commons/types/CapabilityStatus.d.ts} +2 -2
  120. package/serialization/resources/commons/types/CapabilityStatus.js +39 -0
  121. package/serialization/resources/commons/types/CapabilityType.d.ts +7 -0
  122. package/serialization/resources/commons/types/CapabilityType.js +39 -0
  123. package/serialization/resources/commons/types/EntityType.d.ts +1 -1
  124. package/serialization/resources/commons/types/EntityType.js +1 -1
  125. package/serialization/resources/commons/types/ErrorMessage.d.ts +2 -0
  126. package/serialization/resources/commons/types/ErrorMessage.js +2 -0
  127. package/serialization/resources/commons/types/ErrorReason.d.ts +7 -0
  128. package/serialization/resources/commons/types/ErrorReason.js +49 -0
  129. package/serialization/resources/commons/types/index.d.ts +4 -0
  130. package/serialization/resources/commons/types/index.js +4 -0
  131. package/serialization/resources/conversationKickoffs/client/index.d.ts +1 -0
  132. package/serialization/resources/conversationKickoffs/client/index.js +17 -0
  133. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.d.ts +12 -0
  134. package/serialization/resources/conversationKickoffs/client/requests/CreateConversationKickoffRequest.js +44 -0
  135. package/serialization/resources/conversationKickoffs/client/requests/index.d.ts +1 -0
  136. package/serialization/resources/conversationKickoffs/client/requests/index.js +5 -0
  137. package/serialization/resources/conversationKickoffs/index.d.ts +2 -0
  138. package/serialization/resources/conversationKickoffs/index.js +18 -0
  139. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.d.ts +11 -0
  140. package/serialization/resources/conversationKickoffs/types/ConversationKickoff.js +45 -0
  141. package/serialization/resources/conversationKickoffs/types/index.d.ts +1 -0
  142. package/serialization/resources/conversationKickoffs/types/index.js +17 -0
  143. package/serialization/resources/index.d.ts +6 -0
  144. package/serialization/resources/index.js +7 -1
  145. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +2 -2
  146. package/serialization/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.js +2 -2
  147. package/serialization/resources/intelligentFields/types/EnumOption.d.ts +1 -0
  148. package/serialization/resources/intelligentFields/types/EnumOption.js +1 -0
  149. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.d.ts +0 -2
  150. package/serialization/resources/intelligentFields/types/IntelligentFieldCore.js +0 -2
  151. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.d.ts +2 -0
  152. package/serialization/resources/intelligentFields/types/IntelligentFieldRequest.js +2 -0
  153. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.d.ts +2 -5
  154. package/serialization/resources/intelligentFields/types/IntelligentFieldResponse.js +3 -5
  155. package/serialization/resources/intelligentFields/types/index.d.ts +0 -1
  156. package/serialization/resources/intelligentFields/types/index.js +0 -1
  157. package/serialization/resources/triggers/types/EventTriggerBase.d.ts +0 -2
  158. package/serialization/resources/triggers/types/EventTriggerBase.js +0 -2
  159. package/serialization/resources/triggers/types/EventTriggerRequest.d.ts +2 -0
  160. package/serialization/resources/triggers/types/EventTriggerRequest.js +2 -0
  161. package/serialization/resources/triggers/types/EventTriggerResponse.d.ts +2 -1
  162. package/serialization/resources/triggers/types/EventTriggerResponse.js +3 -1
  163. package/version.d.ts +1 -1
  164. 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
- /** Whether this trigger will be called by Maven. */
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mavenagi",
3
- "version": "1.2.61",
3
+ "version": "1.2.62",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",