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
package/reference.md CHANGED
@@ -4,6 +4,22 @@
4
4
  <dl>
5
5
  <dd>
6
6
 
7
+ #### 📝 Description
8
+
9
+ <dl>
10
+ <dd>
11
+
12
+ <dl>
13
+ <dd>
14
+
15
+ Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
16
+ at once. It returns the fields every capability shares rather than the whole Action;
17
+ fetch one by its kind and reference ID for the rest.
18
+ </dd>
19
+ </dl>
20
+ </dd>
21
+ </dl>
22
+
7
23
  #### 🔌 Usage
8
24
 
9
25
  <dl>
@@ -144,6 +160,9 @@ await client.actions.createOrUpdate({
144
160
  <dl>
145
161
  <dd>
146
162
 
163
+ Deprecated. Use `GET /v1/capabilities/ACTION/{referenceId}`, which returns this same
164
+ object for an action and the equivalent for every other kind of capability.
165
+
147
166
  Get an action by its supplied ID
148
167
  </dd>
149
168
  </dl>
@@ -299,6 +318,9 @@ await client.actions.patch("get-balance", {
299
318
  <dl>
300
319
  <dd>
301
320
 
321
+ Deprecated. Use `DELETE /v1/capabilities/ACTION/{referenceId}`, which deletes any kind of
322
+ capability the same way.
323
+
302
324
  Delete an action
303
325
  </dd>
304
326
  </dl>
@@ -2098,6 +2120,330 @@ await client.assets.commitUpload("assetReferenceId", {});
2098
2120
  </dl>
2099
2121
 
2100
2122
 
2123
+ </dd>
2124
+ </dl>
2125
+ </details>
2126
+
2127
+ ## Capabilities
2128
+ <details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">getCapability</a>(capabilityType, referenceId, { ...params }) -> MavenAGI.CapabilityResponse</code></summary>
2129
+ <dl>
2130
+ <dd>
2131
+
2132
+ #### 📝 Description
2133
+
2134
+ <dl>
2135
+ <dd>
2136
+
2137
+ <dl>
2138
+ <dd>
2139
+
2140
+ Fetch one of an agent's capabilities by its type and reference ID.
2141
+
2142
+ The response carries the same fields the capability's own API returns, so an Action read
2143
+ here and an Action read from the Actions API are the same object. Intelligent Fields are the
2144
+ one exception: their own API also returns the charters referencing the field, which this
2145
+ endpoint leaves out.
2146
+ </dd>
2147
+ </dl>
2148
+ </dd>
2149
+ </dl>
2150
+
2151
+ #### 🔌 Usage
2152
+
2153
+ <dl>
2154
+ <dd>
2155
+
2156
+ <dl>
2157
+ <dd>
2158
+
2159
+ ```typescript
2160
+ await client.capabilities.getCapability("ACTION", "referenceId");
2161
+
2162
+ ```
2163
+ </dd>
2164
+ </dl>
2165
+ </dd>
2166
+ </dl>
2167
+
2168
+ #### ⚙️ Parameters
2169
+
2170
+ <dl>
2171
+ <dd>
2172
+
2173
+ <dl>
2174
+ <dd>
2175
+
2176
+ **capabilityType:** `MavenAGI.CapabilityType` — Which kind of capability to fetch.
2177
+
2178
+ </dd>
2179
+ </dl>
2180
+
2181
+ <dl>
2182
+ <dd>
2183
+
2184
+ **referenceId:** `string` — The capability's reference ID, unique within its type and app.
2185
+
2186
+ </dd>
2187
+ </dl>
2188
+
2189
+ <dl>
2190
+ <dd>
2191
+
2192
+ **request:** `MavenAGI.GetCapabilityByTypeRequest`
2193
+
2194
+ </dd>
2195
+ </dl>
2196
+
2197
+ <dl>
2198
+ <dd>
2199
+
2200
+ **requestOptions:** `CapabilitiesClient.RequestOptions`
2201
+
2202
+ </dd>
2203
+ </dl>
2204
+ </dd>
2205
+ </dl>
2206
+
2207
+
2208
+ </dd>
2209
+ </dl>
2210
+ </details>
2211
+
2212
+ <details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">patchCapability</a>(capabilityType, referenceId, { ...params }) -> MavenAGI.CapabilityResponse</code></summary>
2213
+ <dl>
2214
+ <dd>
2215
+
2216
+ #### 📝 Description
2217
+
2218
+ <dl>
2219
+ <dd>
2220
+
2221
+ <dl>
2222
+ <dd>
2223
+
2224
+ Set whether the agent uses a capability, whatever kind it is. This is the publish and
2225
+ unpublish operation, and it works the same way for every capability type.
2226
+
2227
+ Everything else about a capability -- its name, its description, and any settings
2228
+ particular to its kind -- is changed through that capability's own API.
2229
+ </dd>
2230
+ </dl>
2231
+ </dd>
2232
+ </dl>
2233
+
2234
+ #### 🔌 Usage
2235
+
2236
+ <dl>
2237
+ <dd>
2238
+
2239
+ <dl>
2240
+ <dd>
2241
+
2242
+ ```typescript
2243
+ await client.capabilities.patchCapability("ACTION", "referenceId");
2244
+
2245
+ ```
2246
+ </dd>
2247
+ </dl>
2248
+ </dd>
2249
+ </dl>
2250
+
2251
+ #### ⚙️ Parameters
2252
+
2253
+ <dl>
2254
+ <dd>
2255
+
2256
+ <dl>
2257
+ <dd>
2258
+
2259
+ **capabilityType:** `MavenAGI.CapabilityType` — Which kind of capability to update.
2260
+
2261
+ </dd>
2262
+ </dl>
2263
+
2264
+ <dl>
2265
+ <dd>
2266
+
2267
+ **referenceId:** `string` — The capability's reference ID, unique within its type and app.
2268
+
2269
+ </dd>
2270
+ </dl>
2271
+
2272
+ <dl>
2273
+ <dd>
2274
+
2275
+ **request:** `MavenAGI.PatchCapabilityByTypeRequest`
2276
+
2277
+ </dd>
2278
+ </dl>
2279
+
2280
+ <dl>
2281
+ <dd>
2282
+
2283
+ **requestOptions:** `CapabilitiesClient.RequestOptions`
2284
+
2285
+ </dd>
2286
+ </dl>
2287
+ </dd>
2288
+ </dl>
2289
+
2290
+
2291
+ </dd>
2292
+ </dl>
2293
+ </details>
2294
+
2295
+ <details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">deleteCapability</a>(capabilityType, referenceId, { ...params }) -> void</code></summary>
2296
+ <dl>
2297
+ <dd>
2298
+
2299
+ #### 📝 Description
2300
+
2301
+ <dl>
2302
+ <dd>
2303
+
2304
+ <dl>
2305
+ <dd>
2306
+
2307
+ Delete one of an agent's capabilities. The agent stops using it, and it stops being
2308
+ addressable: a later get, patch or delete of the same capability is a 404, and it no longer
2309
+ appears in search.
2310
+
2311
+ With `variantReferenceId`, an intelligent field's delete is staged in that variant instead,
2312
+ and takes effect when the variant is committed. Until then the agent keeps using the field,
2313
+ and only a later patch or delete through the same variant is a 404.
2314
+ </dd>
2315
+ </dl>
2316
+ </dd>
2317
+ </dl>
2318
+
2319
+ #### 🔌 Usage
2320
+
2321
+ <dl>
2322
+ <dd>
2323
+
2324
+ <dl>
2325
+ <dd>
2326
+
2327
+ ```typescript
2328
+ await client.capabilities.deleteCapability("ACTION", "referenceId");
2329
+
2330
+ ```
2331
+ </dd>
2332
+ </dl>
2333
+ </dd>
2334
+ </dl>
2335
+
2336
+ #### ⚙️ Parameters
2337
+
2338
+ <dl>
2339
+ <dd>
2340
+
2341
+ <dl>
2342
+ <dd>
2343
+
2344
+ **capabilityType:** `MavenAGI.CapabilityType` — Which kind of capability to delete.
2345
+
2346
+ </dd>
2347
+ </dl>
2348
+
2349
+ <dl>
2350
+ <dd>
2351
+
2352
+ **referenceId:** `string` — The capability's reference ID, unique within its type and app.
2353
+
2354
+ </dd>
2355
+ </dl>
2356
+
2357
+ <dl>
2358
+ <dd>
2359
+
2360
+ **request:** `MavenAGI.DeleteCapabilityByTypeRequest`
2361
+
2362
+ </dd>
2363
+ </dl>
2364
+
2365
+ <dl>
2366
+ <dd>
2367
+
2368
+ **requestOptions:** `CapabilitiesClient.RequestOptions`
2369
+
2370
+ </dd>
2371
+ </dl>
2372
+ </dd>
2373
+ </dl>
2374
+
2375
+
2376
+ </dd>
2377
+ </dl>
2378
+ </details>
2379
+
2380
+ <details><summary><code>client.capabilities.<a href="/src/api/resources/capabilities/client/Client.ts">searchCapabilities</a>({ ...params }) -> MavenAGI.CapabilitiesSearchResponse</code></summary>
2381
+ <dl>
2382
+ <dd>
2383
+
2384
+ #### 📝 Description
2385
+
2386
+ <dl>
2387
+ <dd>
2388
+
2389
+ <dl>
2390
+ <dd>
2391
+
2392
+ Search an agent's capabilities of every kind at once, newest first by default.
2393
+
2394
+ Returns the fields every capability shares. Fetch one by its type and reference ID for the
2395
+ settings particular to its kind.
2396
+
2397
+ Sorting by `NAME` or `TYPE` instead orders ascending unless `sortDesc` says otherwise;
2398
+ `sortDesc` overrides the default either way.
2399
+
2400
+ Deleted capabilities are never returned.
2401
+ </dd>
2402
+ </dl>
2403
+ </dd>
2404
+ </dl>
2405
+
2406
+ #### 🔌 Usage
2407
+
2408
+ <dl>
2409
+ <dd>
2410
+
2411
+ <dl>
2412
+ <dd>
2413
+
2414
+ ```typescript
2415
+ await client.capabilities.searchCapabilities();
2416
+
2417
+ ```
2418
+ </dd>
2419
+ </dl>
2420
+ </dd>
2421
+ </dl>
2422
+
2423
+ #### ⚙️ Parameters
2424
+
2425
+ <dl>
2426
+ <dd>
2427
+
2428
+ <dl>
2429
+ <dd>
2430
+
2431
+ **request:** `MavenAGI.CapabilitiesSearchRequest`
2432
+
2433
+ </dd>
2434
+ </dl>
2435
+
2436
+ <dl>
2437
+ <dd>
2438
+
2439
+ **requestOptions:** `CapabilitiesClient.RequestOptions`
2440
+
2441
+ </dd>
2442
+ </dl>
2443
+ </dd>
2444
+ </dl>
2445
+
2446
+
2101
2447
  </dd>
2102
2448
  </dl>
2103
2449
  </details>
@@ -2667,6 +3013,83 @@ await client.charters.listChildren({
2667
3013
  </dl>
2668
3014
 
2669
3015
 
3016
+ </dd>
3017
+ </dl>
3018
+ </details>
3019
+
3020
+ ## ConversationKickoffs
3021
+ <details><summary><code>client.conversationKickoffs.<a href="/src/api/resources/conversationKickoffs/client/Client.ts">createOrUpdate</a>({ ...params }) -> MavenAGI.ConversationKickoff</code></summary>
3022
+ <dl>
3023
+ <dd>
3024
+
3025
+ #### 📝 Description
3026
+
3027
+ <dl>
3028
+ <dd>
3029
+
3030
+ <dl>
3031
+ <dd>
3032
+
3033
+ Register or update one of the calling app's Conversation Kickoffs for this agent. An app may
3034
+ hold multiple independent installs, and any number of an agent's kickoffs may run at once.
3035
+
3036
+ A newly installed kickoff starts inactive, so installing one never changes an agent's
3037
+ behaviour on its own. Updating an existing one rewrites its name and description and leaves
3038
+ its status alone, so re-registering on every install refresh never deactivates a kickoff
3039
+ that is already live. Use the capability APIs to activate it, and to read, search or delete
3040
+ it afterwards.
3041
+ </dd>
3042
+ </dl>
3043
+ </dd>
3044
+ </dl>
3045
+
3046
+ #### 🔌 Usage
3047
+
3048
+ <dl>
3049
+ <dd>
3050
+
3051
+ <dl>
3052
+ <dd>
3053
+
3054
+ ```typescript
3055
+ await client.conversationKickoffs.createOrUpdate({
3056
+ kickoffId: {
3057
+ referenceId: "greet-returning-customer"
3058
+ },
3059
+ name: "Greet returning customer",
3060
+ description: "Looks up the customer's open orders before the agent's first reply"
3061
+ });
3062
+
3063
+ ```
3064
+ </dd>
3065
+ </dl>
3066
+ </dd>
3067
+ </dl>
3068
+
3069
+ #### ⚙️ Parameters
3070
+
3071
+ <dl>
3072
+ <dd>
3073
+
3074
+ <dl>
3075
+ <dd>
3076
+
3077
+ **request:** `MavenAGI.CreateConversationKickoffRequest`
3078
+
3079
+ </dd>
3080
+ </dl>
3081
+
3082
+ <dl>
3083
+ <dd>
3084
+
3085
+ **requestOptions:** `ConversationKickoffsClient.RequestOptions`
3086
+
3087
+ </dd>
3088
+ </dl>
3089
+ </dd>
3090
+ </dl>
3091
+
3092
+
2670
3093
  </dd>
2671
3094
  </dl>
2672
3095
  </details>
@@ -2927,6 +3350,7 @@ await client.conversation.get("conversationId");
2927
3350
  Wipes a conversation of all user data.
2928
3351
  The conversation ID will still exist and non-user specific data will still be retained.
2929
3352
  Attempts to modify or add messages to the conversation will throw an error.
3353
+ The conversation is sealed against further writes as soon as this call returns. A `202 Accepted` response means the wipe is still completing and will finish on its own.
2930
3354
 
2931
3355
  Simulation conversations will no longer be visible in search results nor metrics.
2932
3356
  Non-simulation conversations will remain visible - they can not be fully removed from the system.
@@ -5217,7 +5641,8 @@ await client.intelligentFields.createOrUpdate({
5217
5641
  validationType: "STRING",
5218
5642
  enumOptions: [{
5219
5643
  value: "HIGH",
5220
- label: "High Priority"
5644
+ label: "High Priority",
5645
+ description: "The customer is blocked or reports an outage."
5221
5646
  }, {
5222
5647
  value: "MEDIUM",
5223
5648
  label: "Medium Priority"
@@ -5274,6 +5699,10 @@ await client.intelligentFields.createOrUpdate({
5274
5699
  <dl>
5275
5700
  <dd>
5276
5701
 
5702
+ Deprecated. Use `GET /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which reads any
5703
+ kind of capability the same way. It does not carry `referencingCharters`; search
5704
+ charters to find the ones that reference a capability.
5705
+
5277
5706
  Get an intelligent field by its supplied ID
5278
5707
  </dd>
5279
5708
  </dl>
@@ -5423,6 +5852,9 @@ await client.intelligentFields.patch("ticket-priority", {
5423
5852
  <dl>
5424
5853
  <dd>
5425
5854
 
5855
+ Deprecated. Use `DELETE /v1/capabilities/INTELLIGENT_FIELD/{referenceId}`, which
5856
+ deletes any kind of capability the same way. That endpoint returns no body.
5857
+
5426
5858
  Soft delete an intelligent field. Only INACTIVE fields can be deleted.
5427
5859
 
5428
5860
  Deleted fields are excluded from search results but can still be retrieved by ID.
@@ -6097,6 +6529,9 @@ await client.knowledge.patchKnowledgeBase("help-center", {
6097
6529
  Create a new knowledge base version.
6098
6530
 
6099
6531
  If an existing version is in progress, then that version will be finalized in an error state.
6532
+
6533
+ If another version create for the same knowledge base is still in progress, this request may
6534
+ return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
6100
6535
  </dd>
6101
6536
  </dl>
6102
6537
  </dd>
@@ -7680,6 +8115,22 @@ await client.translations.translate({
7680
8115
  <dl>
7681
8116
  <dd>
7682
8117
 
8118
+ #### 📝 Description
8119
+
8120
+ <dl>
8121
+ <dd>
8122
+
8123
+ <dl>
8124
+ <dd>
8125
+
8126
+ Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
8127
+ at once. It returns the fields every capability shares rather than the whole Event
8128
+ Trigger; fetch one by its kind and reference ID for the rest.
8129
+ </dd>
8130
+ </dl>
8131
+ </dd>
8132
+ </dl>
8133
+
7683
8134
  #### 🔌 Usage
7684
8135
 
7685
8136
  <dl>
@@ -7806,6 +8257,9 @@ await client.triggers.createOrUpdate({
7806
8257
  <dl>
7807
8258
  <dd>
7808
8259
 
8260
+ Deprecated. Use `GET /v1/capabilities/TRIGGER/{referenceId}`, which returns this same
8261
+ object for a trigger and the equivalent for every other kind of capability.
8262
+
7809
8263
  Get an event trigger by its supplied ID
7810
8264
  </dd>
7811
8265
  </dl>
@@ -7869,6 +8323,9 @@ await client.triggers.get("store-in-snowflake");
7869
8323
  <dl>
7870
8324
  <dd>
7871
8325
 
8326
+ Deprecated. Use `DELETE /v1/capabilities/TRIGGER/{referenceId}`, which deletes any kind
8327
+ of capability the same way.
8328
+
7872
8329
  Delete an event trigger
7873
8330
  </dd>
7874
8331
  </dl>
@@ -7932,6 +8389,9 @@ await client.triggers.delete("store-in-snowflake");
7932
8389
  <dl>
7933
8390
  <dd>
7934
8391
 
8392
+ Deprecated. Use `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status`, which
8393
+ publishes and unpublishes any kind of capability the same way.
8394
+
7935
8395
  Updates an event trigger. Only the enabled field is editable.
7936
8396
  </dd>
7937
8397
  </dl>
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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,21 @@
1
+ import type * as MavenAGI from "../../../../../api/index";
2
+ import * as core from "../../../../../core";
3
+ import type * as serializers from "../../../../index";
4
+ import { BaseCappedPaginatedRequest } from "../../../commons/types/BaseCappedPaginatedRequest";
5
+ import { CapabilityStatus } from "../../../commons/types/CapabilityStatus";
6
+ import { CapabilityType } from "../../../commons/types/CapabilityType";
7
+ import { CapabilitySortField } from "../../types/CapabilitySortField";
8
+ export declare const CapabilitiesSearchRequest: core.serialization.Schema<serializers.CapabilitiesSearchRequest.Raw, MavenAGI.CapabilitiesSearchRequest>;
9
+ export declare namespace CapabilitiesSearchRequest {
10
+ interface Raw extends BaseCappedPaginatedRequest.Raw {
11
+ capabilityTypes?: CapabilityType.Raw[] | null;
12
+ statuses?: CapabilityStatus.Raw[] | null;
13
+ appIds?: string[] | null;
14
+ name?: string | null;
15
+ description?: string | null;
16
+ userInteractionRequired?: boolean | null;
17
+ sortId?: CapabilitySortField.Raw | null;
18
+ variantReferenceId?: string | null;
19
+ variantAppId?: string | null;
20
+ }
21
+ }
@@ -0,0 +1,55 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CapabilitiesSearchRequest = void 0;
38
+ const core = __importStar(require("../../../../../core"));
39
+ const BaseCappedPaginatedRequest_1 = require("../../../commons/types/BaseCappedPaginatedRequest");
40
+ const CapabilityStatus_1 = require("../../../commons/types/CapabilityStatus");
41
+ const CapabilityType_1 = require("../../../commons/types/CapabilityType");
42
+ const CapabilitySortField_1 = require("../../types/CapabilitySortField");
43
+ exports.CapabilitiesSearchRequest = core.serialization
44
+ .object({
45
+ capabilityTypes: core.serialization.list(CapabilityType_1.CapabilityType).optional(),
46
+ statuses: core.serialization.list(CapabilityStatus_1.CapabilityStatus).optional(),
47
+ appIds: core.serialization.list(core.serialization.string()).optional(),
48
+ name: core.serialization.string().optional(),
49
+ description: core.serialization.string().optional(),
50
+ userInteractionRequired: core.serialization.boolean().optional(),
51
+ sortId: CapabilitySortField_1.CapabilitySortField.optional(),
52
+ variantReferenceId: core.serialization.string().optional(),
53
+ variantAppId: core.serialization.string().optional(),
54
+ })
55
+ .extend(BaseCappedPaginatedRequest_1.BaseCappedPaginatedRequest);
@@ -0,0 +1,10 @@
1
+ import type * as MavenAGI from "../../../../../api/index";
2
+ import * as core from "../../../../../core";
3
+ import type * as serializers from "../../../../index";
4
+ import { CapabilityStatus } from "../../../commons/types/CapabilityStatus";
5
+ export declare const PatchCapabilityByTypeRequest: core.serialization.Schema<serializers.PatchCapabilityByTypeRequest.Raw, Omit<MavenAGI.PatchCapabilityByTypeRequest, "appId" | "variantReferenceId" | "variantAppId">>;
6
+ export declare namespace PatchCapabilityByTypeRequest {
7
+ interface Raw {
8
+ status?: CapabilityStatus.Raw | null;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.PatchCapabilityByTypeRequest = void 0;
38
+ const core = __importStar(require("../../../../../core"));
39
+ const CapabilityStatus_1 = require("../../../commons/types/CapabilityStatus");
40
+ exports.PatchCapabilityByTypeRequest = core.serialization.object({
41
+ status: CapabilityStatus_1.CapabilityStatus.optional(),
42
+ });