mavenagi 1.2.67 → 1.2.68

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 (143) hide show
  1. package/BaseClient.js +2 -2
  2. package/api/resources/actions/client/Client.d.ts +14 -0
  3. package/api/resources/actions/client/Client.js +14 -0
  4. package/api/resources/agents/client/Client.d.ts +10 -12
  5. package/api/resources/agents/client/Client.js +10 -12
  6. package/api/resources/analytics/client/Client.d.ts +10 -0
  7. package/api/resources/analytics/client/Client.js +10 -0
  8. package/api/resources/appDirectory/client/Client.d.ts +3 -1
  9. package/api/resources/appDirectory/client/Client.js +3 -1
  10. package/api/resources/assets/client/Client.d.ts +4 -0
  11. package/api/resources/assets/client/Client.js +4 -0
  12. package/api/resources/capabilities/client/Client.d.ts +20 -0
  13. package/api/resources/capabilities/client/Client.js +20 -0
  14. package/api/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +4 -0
  15. package/api/resources/charters/client/Client.d.ts +18 -0
  16. package/api/resources/charters/client/Client.js +18 -0
  17. package/api/resources/commons/types/MetadataComparisonOperator.d.ts +4 -4
  18. package/api/resources/commons/types/MetadataComparisonOperator.js +4 -4
  19. package/api/resources/commons/types/MetadataConversationValueFilter.d.ts +1 -1
  20. package/api/resources/commons/types/MetadataFilter.d.ts +6 -1
  21. package/api/resources/commons/types/SimulationContext.d.ts +9 -0
  22. package/api/resources/commons/types/SystemEventName.d.ts +3 -0
  23. package/api/resources/commons/types/SystemEventName.js +3 -0
  24. package/api/resources/conversation/client/Client.d.ts +42 -3
  25. package/api/resources/conversation/client/Client.js +42 -3
  26. package/api/resources/conversation/types/AskRequest.d.ts +1 -62
  27. package/api/resources/conversation/types/AskRequestBase.d.ts +67 -0
  28. package/api/resources/conversation/types/index.d.ts +1 -0
  29. package/api/resources/conversation/types/index.js +1 -0
  30. package/api/resources/conversationKickoffs/client/Client.d.ts +2 -0
  31. package/api/resources/conversationKickoffs/client/Client.js +2 -0
  32. package/api/resources/customers/client/Client.d.ts +14 -0
  33. package/api/resources/customers/client/Client.js +14 -0
  34. package/api/resources/events/client/Client.d.ts +16 -3
  35. package/api/resources/events/client/Client.js +16 -3
  36. package/api/resources/inbox/client/Client.d.ts +20 -0
  37. package/api/resources/inbox/client/Client.js +20 -0
  38. package/api/resources/intelligentFields/client/Client.d.ts +10 -0
  39. package/api/resources/intelligentFields/client/Client.js +10 -0
  40. package/api/resources/intelligentFields/client/requests/IntelligentFieldPatchRequest.d.ts +1 -1
  41. package/api/resources/intelligentFields/types/IntelligentFieldCore.d.ts +2 -1
  42. package/api/resources/knowledge/client/Client.d.ts +40 -0
  43. package/api/resources/knowledge/client/Client.js +40 -0
  44. package/api/resources/knowledge/types/KnowledgeBaseFilter.d.ts +5 -1
  45. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.d.ts +1 -1
  46. package/api/resources/knowledge/types/KnowledgeBaseIndexingStatus.js +1 -1
  47. package/api/resources/knowledge/types/KnowledgeBaseResponse.d.ts +3 -5
  48. package/api/resources/knowledge/types/KnowledgeBaseVersion.d.ts +1 -1
  49. package/api/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +4 -0
  50. package/api/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +9 -3
  51. package/api/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -2
  52. package/api/resources/knowledge/types/index.d.ts +1 -0
  53. package/api/resources/knowledge/types/index.js +1 -0
  54. package/api/resources/segments/client/Client.d.ts +16 -0
  55. package/api/resources/segments/client/Client.js +16 -0
  56. package/api/resources/translations/client/Client.d.ts +2 -0
  57. package/api/resources/translations/client/Client.js +2 -0
  58. package/api/resources/triggers/client/Client.d.ts +10 -0
  59. package/api/resources/triggers/client/Client.js +10 -0
  60. package/api/resources/users/client/Client.d.ts +16 -0
  61. package/api/resources/users/client/Client.js +16 -0
  62. package/api/resources/voice/client/Client.d.ts +1 -1
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/api/resources/voice/types/VoiceSessionTokenRequest.d.ts +4 -2
  65. package/api/resources/voiceConversations/client/Client.d.ts +5 -2
  66. package/api/resources/voiceConversations/client/Client.js +6 -3
  67. package/api/resources/voiceConversations/client/Socket.d.ts +2 -1
  68. package/api/resources/voiceConversations/client/Socket.js +10 -0
  69. package/api/resources/voiceConversations/types/AgentAudioChunk.d.ts +1 -1
  70. package/api/resources/voiceConversations/types/AudioFormat.d.ts +13 -0
  71. package/api/resources/voiceConversations/types/AudioFormat.js +13 -0
  72. package/api/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  73. package/api/resources/voiceConversations/types/Config.d.ts +2 -6
  74. package/api/resources/voiceConversations/types/ConversationReady.d.ts +5 -2
  75. package/api/resources/voiceConversations/types/Error_.d.ts +8 -0
  76. package/api/resources/voiceConversations/types/Mark.d.ts +9 -0
  77. package/api/resources/voiceConversations/types/ServerEventBase.d.ts +3 -2
  78. package/api/resources/voiceConversations/types/Transcript.d.ts +11 -0
  79. package/api/resources/voiceConversations/types/TranscriptRole.d.ts +5 -0
  80. package/api/resources/voiceConversations/types/TranscriptRole.js +8 -0
  81. package/api/resources/voiceConversations/types/VadSpeechStarted.d.ts +8 -0
  82. package/api/resources/voiceConversations/types/VadSpeechStarted.js +3 -0
  83. package/api/resources/voiceConversations/types/VadSpeechStopped.d.ts +7 -0
  84. package/api/resources/voiceConversations/types/VadSpeechStopped.js +3 -0
  85. package/api/resources/voiceConversations/types/index.d.ts +6 -5
  86. package/api/resources/voiceConversations/types/index.js +6 -5
  87. package/package.json +1 -1
  88. package/reference.md +290 -20
  89. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.d.ts +2 -0
  90. package/serialization/resources/capabilities/client/requests/CapabilityExecutionsSearchRequest.js +2 -0
  91. package/serialization/resources/commons/types/SimulationContext.d.ts +1 -0
  92. package/serialization/resources/commons/types/SimulationContext.js +1 -0
  93. package/serialization/resources/commons/types/SystemEventName.d.ts +1 -1
  94. package/serialization/resources/commons/types/SystemEventName.js +1 -0
  95. package/serialization/resources/conversation/types/AskRequest.d.ts +2 -12
  96. package/serialization/resources/conversation/types/AskRequest.js +5 -13
  97. package/serialization/resources/conversation/types/AskRequestBase.d.ts +20 -0
  98. package/serialization/resources/conversation/types/AskRequestBase.js +52 -0
  99. package/serialization/resources/conversation/types/index.d.ts +1 -0
  100. package/serialization/resources/conversation/types/index.js +1 -0
  101. package/serialization/resources/knowledge/types/KnowledgeDocumentMetadataValue.d.ts +7 -0
  102. package/serialization/resources/{voiceConversations/types/UserTranscript.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +5 -8
  103. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.d.ts +2 -1
  104. package/serialization/resources/knowledge/types/KnowledgeDocumentRequest.js +2 -1
  105. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.d.ts +2 -1
  106. package/serialization/resources/knowledge/types/KnowledgeDocumentResponse.js +2 -1
  107. package/serialization/resources/knowledge/types/index.d.ts +1 -0
  108. package/serialization/resources/knowledge/types/index.js +1 -0
  109. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.d.ts +6 -7
  110. package/serialization/resources/voiceConversations/client/socket/VoiceConversationsSocketResponse.js +8 -10
  111. package/serialization/resources/voiceConversations/types/ClientMark.d.ts +10 -0
  112. package/serialization/resources/voiceConversations/types/ClientMark.js +42 -0
  113. package/serialization/resources/voiceConversations/types/Config.d.ts +0 -2
  114. package/serialization/resources/voiceConversations/types/Config.js +0 -2
  115. package/serialization/resources/voiceConversations/types/ConversationReady.d.ts +3 -1
  116. package/serialization/resources/voiceConversations/types/ConversationReady.js +6 -2
  117. package/serialization/resources/voiceConversations/types/{ConversationEnded.d.ts → Mark.d.ts} +4 -3
  118. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +4 -3
  119. package/serialization/resources/voiceConversations/types/ServerEventBase.d.ts +1 -1
  120. package/serialization/resources/voiceConversations/types/ServerEventBase.js +1 -1
  121. package/serialization/resources/voiceConversations/types/{AgentTranscript.d.ts → Transcript.d.ts} +5 -3
  122. package/serialization/resources/voiceConversations/types/{AgentTranscript.js → Transcript.js} +5 -3
  123. package/serialization/resources/voiceConversations/types/TranscriptRole.d.ts +7 -0
  124. package/serialization/resources/voiceConversations/types/TranscriptRole.js +39 -0
  125. package/serialization/resources/voiceConversations/types/{UserTranscript.d.ts → VadSpeechStarted.d.ts} +3 -4
  126. package/serialization/resources/voiceConversations/types/{ConversationEnded.js → VadSpeechStarted.js} +3 -3
  127. package/serialization/resources/voiceConversations/types/{UserStartedSpeaking.d.ts → VadSpeechStopped.d.ts} +3 -3
  128. package/serialization/resources/voiceConversations/types/{UserFinishedSpeaking.js → VadSpeechStopped.js} +3 -3
  129. package/serialization/resources/voiceConversations/types/index.d.ts +6 -5
  130. package/serialization/resources/voiceConversations/types/index.js +6 -5
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
  133. package/api/resources/voiceConversations/types/AgentTranscript.d.ts +0 -9
  134. package/api/resources/voiceConversations/types/ConversationEnded.d.ts +0 -7
  135. package/api/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -7
  136. package/api/resources/voiceConversations/types/UserStartedSpeaking.d.ts +0 -7
  137. package/api/resources/voiceConversations/types/UserTranscript.d.ts +0 -9
  138. package/serialization/resources/voiceConversations/types/UserFinishedSpeaking.d.ts +0 -10
  139. /package/api/resources/{voiceConversations/types/AgentTranscript.js → conversation/types/AskRequestBase.js} +0 -0
  140. /package/api/resources/{voiceConversations/types/ConversationEnded.js → knowledge/types/KnowledgeDocumentMetadataValue.js} +0 -0
  141. /package/api/resources/voiceConversations/types/{UserFinishedSpeaking.js → ClientMark.js} +0 -0
  142. /package/api/resources/voiceConversations/types/{UserStartedSpeaking.js → Mark.js} +0 -0
  143. /package/api/resources/voiceConversations/types/{UserTranscript.js → Transcript.js} +0 -0
package/reference.md CHANGED
@@ -15,6 +15,12 @@
15
15
  Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
16
16
  at once. It returns the fields every capability shares rather than the whole Action;
17
17
  fetch one by its kind and reference ID for the rest.
18
+
19
+ Pagination is limited to the first 10,000 matching actions: `(page + 1) * size` must not
20
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
21
+ later results.
22
+
23
+ <Note>**Required permission:** `read:agents`</Note>
18
24
  </dd>
19
25
  </dl>
20
26
  </dd>
@@ -78,6 +84,8 @@ await client.actions.search({});
78
84
  <dd>
79
85
 
80
86
  Update an action or create it if it doesn't exist
87
+
88
+ <Note>**Required permission:** `edit:agents`</Note>
81
89
  </dd>
82
90
  </dl>
83
91
  </dd>
@@ -164,6 +172,8 @@ Deprecated. Use `GET /v1/capabilities/ACTION/{referenceId}`, which returns this
164
172
  object for an action and the equivalent for every other kind of capability.
165
173
 
166
174
  Get an action by its supplied ID
175
+
176
+ <Note>**Required permission:** `read:agents`</Note>
167
177
  </dd>
168
178
  </dl>
169
179
  </dd>
@@ -238,6 +248,8 @@ Update mutable action fields
238
248
 
239
249
  The `appId` field can be provided to update an action owned by a different app.
240
250
  All other fields will overwrite the existing value on the action only if provided.
251
+
252
+ <Note>**Required permission:** `edit:agents`</Note>
241
253
  </dd>
242
254
  </dl>
243
255
  </dd>
@@ -322,6 +334,8 @@ Deprecated. Use `DELETE /v1/capabilities/ACTION/{referenceId}`, which deletes an
322
334
  capability the same way.
323
335
 
324
336
  Delete an action
337
+
338
+ <Note>**Required permission:** `edit:agents`</Note>
325
339
  </dd>
326
340
  </dl>
327
341
  </dd>
@@ -387,9 +401,9 @@ await client.actions.delete("get-balance");
387
401
 
388
402
  Search for agents across all organizations.
389
403
 
390
- <Tip>
391
- This endpoint requires additional permissions. Contact support to request access.
392
- </Tip>
404
+ Only Maven staff hold this permission.
405
+
406
+ <Note>**Required permission:** `read:all-organizations`</Note>
393
407
  </dd>
394
408
  </dl>
395
409
  </dd>
@@ -453,6 +467,8 @@ await client.agents.search({});
453
467
  <dd>
454
468
 
455
469
  Lists all agents for an organization
470
+
471
+ <Note>**Required permission:** `read:agents`</Note>
456
472
  </dd>
457
473
  </dl>
458
474
  </dd>
@@ -517,9 +533,7 @@ await client.agents.list("organizationReferenceId");
517
533
 
518
534
  Create a new agent
519
535
 
520
- <Tip>
521
- This endpoint requires additional permissions. Contact support to request access.
522
- </Tip>
536
+ <Note>**Required permission:** `create:agents`</Note>
523
537
  </dd>
524
538
  </dl>
525
539
  </dd>
@@ -602,6 +616,8 @@ await client.agents.create("organizationReferenceId", "agentReferenceId", {
602
616
  <dd>
603
617
 
604
618
  Get an agent
619
+
620
+ <Note>**Required permission:** `read:agents`</Note>
605
621
  </dd>
606
622
  </dl>
607
623
  </dd>
@@ -675,9 +691,7 @@ await client.agents.get("organizationReferenceId", "agentReferenceId");
675
691
  Update mutable agent fields
676
692
  All fields will overwrite the existing value on the agent only if provided.
677
693
 
678
- <Tip>
679
- This endpoint requires additional permissions. Contact support to request access.
680
- </Tip>
694
+ <Note>**Required permission:** `edit:agents`</Note>
681
695
  </dd>
682
696
  </dl>
683
697
  </dd>
@@ -758,9 +772,7 @@ await client.agents.patch("organizationReferenceId", "agentReferenceId");
758
772
 
759
773
  Delete an agent.
760
774
 
761
- <Tip>
762
- This endpoint requires additional permissions. Contact support to request access.
763
- </Tip>
775
+ <Note>**Required permission:** `delete:agents`</Note>
764
776
  </dd>
765
777
  </dl>
766
778
  </dd>
@@ -833,6 +845,8 @@ await client.agents.delete("organizationReferenceId", "agentReferenceId");
833
845
  <dd>
834
846
 
835
847
  Retrieves structured conversation data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
848
+
849
+ <Note>**Required permission:** `read:conversations`</Note>
836
850
  </dd>
837
851
  </dl>
838
852
  </dd>
@@ -923,6 +937,8 @@ await client.analytics.getConversationTable({
923
937
  <dd>
924
938
 
925
939
  Fetches conversation data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
940
+
941
+ <Note>**Required permission:** `read:conversations`</Note>
926
942
  </dd>
927
943
  </dl>
928
944
  </dd>
@@ -999,6 +1015,8 @@ await client.analytics.getConversationChart({
999
1015
  Export the conversation analytics table to a CSV file.
1000
1016
 
1001
1017
  This outputs the current table view defined by the request. For most programmatic use cases, prefer `getConversationTable` and format client-side. The CSV format may change and should not be relied upon by code consumers. A maximum of 10,000 rows can be exported at a time.
1018
+
1019
+ <Note>**Required permission:** `read:conversations`</Note>
1002
1020
  </dd>
1003
1021
  </dl>
1004
1022
  </dd>
@@ -1079,6 +1097,7 @@ await client.analytics.exportConversationTable({
1079
1097
  <dd>
1080
1098
 
1081
1099
  Retrieves structured agent user data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
1100
+ <Note>**Required permission:** `read:agents`</Note>
1082
1101
  </dd>
1083
1102
  </dl>
1084
1103
  </dd>
@@ -1152,6 +1171,7 @@ await client.analytics.getAgentUserTable({
1152
1171
  <dd>
1153
1172
 
1154
1173
  Retrieves structured event data formatted as a table, allowing users to group, filter, and define specific metrics to display as columns.
1174
+ <Note>**Required permission:** `read:events`</Note>
1155
1175
  </dd>
1156
1176
  </dl>
1157
1177
  </dd>
@@ -1228,6 +1248,8 @@ await client.analytics.getEventTable({
1228
1248
  <dd>
1229
1249
 
1230
1250
  Fetches event data visualized in a chart format. Supported chart types include pie chart, date histogram, and stacked bar charts.
1251
+
1252
+ <Note>**Required permission:** `read:events`</Note>
1231
1253
  </dd>
1232
1254
  </dl>
1233
1255
  </dd>
@@ -1503,7 +1525,9 @@ await client.appDirectory.install("appId", {
1503
1525
  <dl>
1504
1526
  <dd>
1505
1527
 
1506
- Uninstalls the app from the agent.
1528
+ Uninstalls the app from the agent, and deletes the actions and triggers it created.
1529
+
1530
+ <Note>**Required permission:** `install:apps`</Note>
1507
1531
  </dd>
1508
1532
  </dl>
1509
1533
  </dd>
@@ -1920,6 +1944,8 @@ await client.appSettings.update({
1920
1944
 
1921
1945
  Initiate an upload.
1922
1946
  Returns a pre-signed URL for direct file upload and an asset ID for subsequent operations.
1947
+
1948
+ <Note>**Required permission:** `ask:agent`</Note>
1923
1949
  </dd>
1924
1950
  </dl>
1925
1951
  </dd>
@@ -1986,6 +2012,8 @@ await client.assets.initiateUpload({
1986
2012
 
1987
2013
  Commit an upload after successful file transfer.
1988
2014
  Updates the asset status and makes it available for use.
2015
+
2016
+ <Note>**Required permission:** `ask:agent`</Note>
1989
2017
  </dd>
1990
2018
  </dl>
1991
2019
  </dd>
@@ -2063,6 +2091,8 @@ The response carries the same fields the capability's own API returns, so an Act
2063
2091
  here and an Action read from the Actions API are the same object. Intelligent Fields are the
2064
2092
  one exception: their own API also returns the charters referencing the field, which this
2065
2093
  endpoint leaves out.
2094
+
2095
+ <Note>**Required permission:** `read:agents`</Note>
2066
2096
  </dd>
2067
2097
  </dl>
2068
2098
  </dd>
@@ -2146,6 +2176,8 @@ unpublish operation, and it works the same way for every capability type.
2146
2176
 
2147
2177
  Everything else about a capability -- its name, its description, and any settings
2148
2178
  particular to its kind -- is changed through that capability's own API.
2179
+
2180
+ <Note>**Required permission:** `edit:agents`</Note>
2149
2181
  </dd>
2150
2182
  </dl>
2151
2183
  </dd>
@@ -2231,6 +2263,8 @@ appears in search.
2231
2263
  With `variantReferenceId`, an intelligent field's delete is staged in that variant instead,
2232
2264
  and takes effect when the variant is committed. Until then the agent keeps using the field,
2233
2265
  and only a later patch or delete through the same variant is a 404.
2266
+
2267
+ <Note>**Required permission:** `edit:agents`</Note>
2234
2268
  </dd>
2235
2269
  </dl>
2236
2270
  </dd>
@@ -2318,6 +2352,8 @@ effects in real systems. Nothing here runs a capability live.
2318
2352
 
2319
2353
  Only actions can be simulated today. Triggers and conversation kickoffs are rejected with a
2320
2354
  400 until they can run as simulations. Intelligent fields cannot be simulated.
2355
+
2356
+ <Note>**Required permission:** `create:simulations`</Note>
2321
2357
  </dd>
2322
2358
  </dl>
2323
2359
  </dd>
@@ -2409,6 +2445,12 @@ Sorting by `NAME` or `TYPE` instead orders ascending unless `sortDesc` says othe
2409
2445
  `sortDesc` overrides the default either way.
2410
2446
 
2411
2447
  Deleted capabilities are never returned.
2448
+
2449
+ Pagination is limited to the first 10,000 matching capabilities: `(page + 1) * size` must
2450
+ not exceed 10,000, and a request beyond that is rejected with a 400. Add filters to reach
2451
+ later results.
2452
+
2453
+ <Note>**Required permission:** `read:agents`</Note>
2412
2454
  </dd>
2413
2455
  </dl>
2414
2456
  </dd>
@@ -2480,6 +2522,12 @@ Pass a conversation in `subjectIds` to get the executions recorded against it. A
2480
2522
  those.
2481
2523
 
2482
2524
  Results can trail a run by a few seconds. Executions are searchable for 90 days.
2525
+
2526
+ Pagination is limited to the first 10,000 matching executions: `(page + 1) * size` must not
2527
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow `createdAfter` and
2528
+ `createdBefore` to reach later results.
2529
+
2530
+ <Note>**Required permission:** `read:agents`</Note>
2483
2531
  </dd>
2484
2532
  </dl>
2485
2533
  </dd>
@@ -2565,6 +2613,8 @@ preferences among its siblings. The rank is currently only meaningful
2565
2613
  for leaf charters as we enforce mutual exclusion among the leafs and
2566
2614
  pick only the highest ranked (lowest numerical value) leaf to include in
2567
2615
  the round. userRank may have gaps.
2616
+
2617
+ <Note>**Required permission:** `edit:agents`</Note>
2568
2618
  </dd>
2569
2619
  </dl>
2570
2620
  </dd>
@@ -2647,6 +2697,8 @@ await client.charters.createOrUpdate({
2647
2697
  <dd>
2648
2698
 
2649
2699
  Get a charter by its reference ID.
2700
+
2701
+ <Note>**Required permission:** `read:agents`</Note>
2650
2702
  </dd>
2651
2703
  </dl>
2652
2704
  </dd>
@@ -2733,6 +2785,8 @@ To promote to root level, set `parentCharterId` explicitly to null.
2733
2785
  **userRank conflict resolution**: When `userRank` is set to a value already held by a
2734
2786
  sibling, siblings at that rank and above are shifted up by 1 (like linked list semantics).
2735
2787
  The caller does not need to manage uniqueness explicitly.
2788
+
2789
+ <Note>**Required permission:** `edit:agents`</Note>
2736
2790
  </dd>
2737
2791
  </dl>
2738
2792
  </dd>
@@ -2821,6 +2875,8 @@ soft-deleted regardless.
2821
2875
  Deleted charters are excluded from list results but can be retrieved by ID for archival purposes.
2822
2876
 
2823
2877
  Deleted charters cannot be modified.
2878
+
2879
+ <Note>**Required permission:** `edit:agents`</Note>
2824
2880
  </dd>
2825
2881
  </dl>
2826
2882
  </dd>
@@ -2900,6 +2956,12 @@ Returns both ACTIVE and INACTIVE charters (DELETED charters are excluded).
2900
2956
  Results are ordered by the `sort` field (defaults to CreatedAt). Use `sortDesc`
2901
2957
  to control direction (defaults to descending). An empty filter list is
2902
2958
  equivalent to omitting the field (no filter applied).
2959
+
2960
+ Pagination is limited to the first 10,000 matching charters: `(page + 1) * size` must not
2961
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
2962
+ later results.
2963
+
2964
+ <Note>**Required permission:** `read:agents`</Note>
2903
2965
  </dd>
2904
2966
  </dl>
2905
2967
  </dd>
@@ -2975,6 +3037,8 @@ The list is always finite: charter hierarchies are acyclic, so a charter is neve
2975
3037
  ancestor and the walk to the root terminates.
2976
3038
 
2977
3039
  Returns 404 if the charter does not exist or is deleted.
3040
+
3041
+ <Note>**Required permission:** `read:agents`</Note>
2978
3042
  </dd>
2979
3043
  </dl>
2980
3044
  </dd>
@@ -3055,6 +3119,8 @@ at mixed levels are allowed. Roots and specific parents cannot be mixed
3055
3119
  in one request.
3056
3120
 
3057
3121
  DELETED charters are never returned.
3122
+
3123
+ <Note>**Required permission:** `read:agents`</Note>
3058
3124
  </dd>
3059
3125
  </dl>
3060
3126
  </dd>
@@ -3128,6 +3194,8 @@ behaviour on its own. Updating an existing one rewrites its name and description
3128
3194
  its status alone, so re-registering on every install refresh never deactivates a kickoff
3129
3195
  that is already live. Use the capability APIs to activate it, and to read, search or delete
3130
3196
  it afterwards.
3197
+
3198
+ <Note>**Required permission:** `edit:agents`</Note>
3131
3199
  </dd>
3132
3200
  </dl>
3133
3201
  </dd>
@@ -3205,6 +3273,8 @@ Conversations can not be modified using this API. If the conversation already ex
3205
3273
  After initialization,
3206
3274
  - metadata can be changed using the `updateConversationMetadata` API.
3207
3275
  - messages can be added to the conversation with the `appendNewMessages` or `ask` APIs.
3276
+
3277
+ <Note>**Required permission:** `ask:agent`</Note>
3208
3278
  </dd>
3209
3279
  </dl>
3210
3280
  </dd>
@@ -3279,6 +3349,8 @@ All other fields will overwrite the existing value on the conversation only if p
3279
3349
 
3280
3350
  A closed conversation (`open` set to false) cannot be reopened: a patch setting `open` to true
3281
3351
  returns a 400. Its other fields can still be patched.
3352
+
3353
+ <Note>**Required permission:** `ask:agent`</Note>
3282
3354
  </dd>
3283
3355
  </dl>
3284
3356
  </dd>
@@ -3352,6 +3424,8 @@ await client.conversation.patch("conversation-0", {
3352
3424
  <dd>
3353
3425
 
3354
3426
  Get a conversation
3427
+
3428
+ <Note>**Required permission:** `read:conversations`</Note>
3355
3429
  </dd>
3356
3430
  </dl>
3357
3431
  </dd>
@@ -3425,7 +3499,7 @@ await client.conversation.get("conversationId");
3425
3499
  Wipes the user content from a conversation.
3426
3500
  The conversation and its ID still exist afterwards, and so does its non-content data, so it still counts in metrics.
3427
3501
  The conversation is sealed against further writes as soon as this call returns: adding or changing messages fails with `409 Conflict`, and so does deleting it again once the wipe has finished.
3428
- A `202 Accepted` response means the wipe is still completing and will finish on its own.
3502
+ The call answers `202 Accepted` and the wipe finishes on its own shortly after. Until it does, getting or searching the conversation can still return its original message text.
3429
3503
 
3430
3504
  Simulation conversations will no longer be visible in search results nor metrics.
3431
3505
  Non-simulation conversations remain visible; they cannot be fully removed from the system.
@@ -3435,6 +3509,8 @@ What is wiped: the conversation's `subject` and `analysis.agentResponse` are cle
3435
3509
  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.
3436
3510
  Evaluation results for the conversation are deleted, and the payloads recorded on its trigger and action executions are cleared. <br/><br/>
3437
3511
  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>
3512
+
3513
+ <Note>**Required permission:** `delete:conversations`</Note>
3438
3514
  </dd>
3439
3515
  </dl>
3440
3516
  </dd>
@@ -3510,6 +3586,8 @@ await client.conversation.delete("conversation-0", {
3510
3586
  Append messages to an existing conversation. The conversation must be initialized first. If a message with the same ID already exists, it will be ignored. Messages do not allow modification.
3511
3587
 
3512
3588
  A closed conversation (`open` set to false) takes no new messages and returns a 400.
3589
+
3590
+ <Note>**Required permission:** `ask:agent`</Note>
3513
3591
  </dd>
3514
3592
  </dl>
3515
3593
  </dd>
@@ -3609,6 +3687,8 @@ Concurrency Behavior:
3609
3687
 
3610
3688
  Known Limitation:
3611
3689
  - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
3690
+
3691
+ <Note>**Required permission:** `ask:agent`</Note>
3612
3692
  </dd>
3613
3693
  </dl>
3614
3694
  </dd>
@@ -3711,6 +3791,8 @@ Concurrency Behavior:
3711
3791
 
3712
3792
  Known Limitation:
3713
3793
  - The API does not currently expose metadata indicating whether a response or message is incomplete. This will be addressed in a future update.
3794
+
3795
+ <Note>**Required permission:** `ask:agent`</Note>
3714
3796
  </dd>
3715
3797
  </dl>
3716
3798
  </dd>
@@ -3957,6 +4039,8 @@ Additionally, form submission is only allowed when the form is the last message
3957
4039
  Forms should be disabled in surface UI if a conversation continues and they remain unsubmitted.
3958
4040
 
3959
4041
  A form cannot be submitted on a closed conversation (`open` set to false): that returns a 400.
4042
+
4043
+ <Note>**Required permission:** `ask:agent`</Note>
3960
4044
  </dd>
3961
4045
  </dl>
3962
4046
  </dd>
@@ -4120,6 +4204,8 @@ If it does not exist, it will be added. Will not remove metadata fields.
4120
4204
  Returns all metadata saved by any app on the conversation.
4121
4205
 
4122
4206
  A closed conversation (`open` set to false) takes no new metadata and returns a 400.
4207
+
4208
+ <Note>**Required permission:** `ask:agent`</Note>
4123
4209
  </dd>
4124
4210
  </dl>
4125
4211
  </dd>
@@ -4195,7 +4281,20 @@ await client.conversation.updateConversationMetadata("conversation-0", {
4195
4281
  <dl>
4196
4282
  <dd>
4197
4283
 
4198
- Search conversations
4284
+ Search conversations.
4285
+
4286
+ Pagination is limited to the first 10,000 matching conversations: `(page + 1) * size` must
4287
+ not exceed 10,000, and a request beyond that is rejected with a 400. To read past the
4288
+ 10,000th result, use `searchCursor`.
4289
+
4290
+ `searchCursor` orders results by creation time and has no `sort` field. Its defaults differ
4291
+ from `search` in two ways:
4292
+ - Without `sort`, `search` returns the oldest conversations first. `searchCursor` returns the
4293
+ newest first unless `sortDesc` is `false`.
4294
+ - Without a `filter`, `search` returns conversations of every `billable` value.
4295
+ `searchCursor` leaves out `INELIGIBLE` ones unless `filter.billable` includes it.
4296
+
4297
+ <Note>**Required permission:** `read:conversations`</Note>
4199
4298
  </dd>
4200
4299
  </dl>
4201
4300
  </dd>
@@ -4269,6 +4368,8 @@ rejected rather than silently restarting you at the beginning.
4269
4368
  `nextCursor` is the only reliable end-of-results signal. Do not stop early because a page
4270
4369
  came back with fewer conversations than you asked for: that happens legitimately, and more
4271
4370
  pages may still remain.
4371
+
4372
+ <Note>**Required permission:** `read:conversations`</Note>
4272
4373
  </dd>
4273
4374
  </dl>
4274
4375
  </dd>
@@ -4333,10 +4434,12 @@ await client.conversation.searchCursor({});
4333
4434
 
4334
4435
  Export conversations to a CSV file.
4335
4436
 
4336
- This will output a summary of each conversation that matches the supplied filter. A maximum of 10,000 conversations can be exported at a time.
4437
+ This will output a summary of each conversation that matches the supplied filter. Only the first 10,000 matching conversations can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400.
4337
4438
 
4338
4439
  For most use cases it is recommended to use the `search` API instead and convert the JSON response to your desired format.
4339
4440
  The CSV format may change over time and should not be relied upon by code consumers.
4441
+
4442
+ <Note>**Required permission:** `read:conversations`</Note>
4340
4443
  </dd>
4341
4444
  </dl>
4342
4445
  </dd>
@@ -4407,6 +4510,8 @@ A closed conversation (`open` set to false) takes no new messages and returns a
4407
4510
  Currently, messages can only be successfully delivered to conversations with the `ASYNC` capability.
4408
4511
  User message delivery is not yet supported and returns a 400.
4409
4512
  </Warning>
4513
+
4514
+ <Note>**Required permission:** `ask:agent`</Note>
4410
4515
  </dd>
4411
4516
  </dl>
4412
4517
  </dd>
@@ -4479,6 +4584,26 @@ await client.conversation.deliverMessage({
4479
4584
  <dl>
4480
4585
  <dd>
4481
4586
 
4587
+ #### 📝 Description
4588
+
4589
+ <dl>
4590
+ <dd>
4591
+
4592
+ <dl>
4593
+ <dd>
4594
+
4595
+ Search customers of an agent.
4596
+
4597
+ Pagination is limited to the first 10,000 matching customers: `(page + 1) * size` must not
4598
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
4599
+ later results.
4600
+
4601
+ <Note>**Required permission:** `read:agents`</Note>
4602
+ </dd>
4603
+ </dl>
4604
+ </dd>
4605
+ </dl>
4606
+
4482
4607
  #### 🔌 Usage
4483
4608
 
4484
4609
  <dl>
@@ -4537,6 +4662,8 @@ await client.customers.search({});
4537
4662
  <dd>
4538
4663
 
4539
4664
  Update a customer of an agent or create it if it doesn't exist. In case of an update, fields not provided (e.g., description, status) will be preserved.
4665
+
4666
+ <Note>**Required permission:** `edit:agents`</Note>
4540
4667
  </dd>
4541
4668
  </dl>
4542
4669
  </dd>
@@ -4605,6 +4732,8 @@ await client.customers.createOrUpdate({
4605
4732
  <dd>
4606
4733
 
4607
4734
  Get a customer by its supplied ID
4735
+
4736
+ <Note>**Required permission:** `read:agents`</Note>
4608
4737
  </dd>
4609
4738
  </dl>
4610
4739
  </dd>
@@ -4679,6 +4808,8 @@ Update mutable customer fields
4679
4808
 
4680
4809
  The `appId` field can be provided to update a customer owned by a different app.
4681
4810
  All other fields will overwrite the existing value on the customer only if provided.
4811
+
4812
+ <Note>**Required permission:** `edit:agents`</Note>
4682
4813
  </dd>
4683
4814
  </dl>
4684
4815
  </dd>
@@ -4750,7 +4881,10 @@ await client.customers.patch("customerReferenceId", {});
4750
4881
  <dl>
4751
4882
  <dd>
4752
4883
 
4753
- Create a new event. Events are immutable, so a create that reuses the `referenceId` of an existing event in the same app is rejected with a 409 and leaves that event unchanged.
4884
+ Create a new event. Events are immutable, so a create that reuses the `referenceId` of an
4885
+ existing event in the same app is rejected with a 409 and leaves that event unchanged.
4886
+
4887
+ <Note>**Required permission:** `ask:agent`. An event with `executionMode: SIMULATION` also needs `create:simulations`.</Note>
4754
4888
  </dd>
4755
4889
  </dl>
4756
4890
  </dd>
@@ -4824,7 +4958,13 @@ await client.events.create({
4824
4958
  <dl>
4825
4959
  <dd>
4826
4960
 
4827
- Search events
4961
+ Search events.
4962
+
4963
+ Pagination is limited to the first 10,000 matching events: `(page + 1) * size` must not
4964
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
4965
+ later results.
4966
+
4967
+ <Note>**Required permission:** `read:events`</Note>
4828
4968
  </dd>
4829
4969
  </dl>
4830
4970
  </dd>
@@ -4888,6 +5028,8 @@ await client.events.search({});
4888
5028
  <dd>
4889
5029
 
4890
5030
  Retrieve details of a specific Event item by its ID.
5031
+
5032
+ <Note>**Required permission:** `read:events`</Note>
4891
5033
  </dd>
4892
5034
  </dl>
4893
5035
  </dd>
@@ -4962,7 +5104,9 @@ await client.events.get("eventId", {
4962
5104
 
4963
5105
  Export events to a CSV file.
4964
5106
 
4965
- This will output a summary of each event that matches the supplied filter. A maximum of 10,000 events can be exported at a time. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
5107
+ This will output a summary of each event that matches the supplied filter. Only the first 10,000 matching events can be exported: `(page + 1) * size` must not exceed 10,000, and a request beyond that is rejected with a 400. For most use cases it is recommended to use the search API instead and convert the JSON response to your desired format. The CSV format may change over time and should not be relied upon by code consumers.
5108
+
5109
+ <Note>**Required permission:** `read:events`</Note>
4966
5110
  </dd>
4967
5111
  </dl>
4968
5112
  </dd>
@@ -5027,6 +5171,12 @@ await client.events.export({});
5027
5171
  <dd>
5028
5172
 
5029
5173
  Retrieve a paginated list of inbox items for an agent.
5174
+
5175
+ Pagination is limited to the first 10,000 matching inbox items: `(page + 1) * size` must not
5176
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
5177
+ later results.
5178
+
5179
+ <Note>**Required permission:** `read:agents`. A search whose results include a Duplicate Documents item also needs `read:documents`.</Note>
5030
5180
  </dd>
5031
5181
  </dl>
5032
5182
  </dd>
@@ -5090,6 +5240,8 @@ await client.inbox.search({});
5090
5240
  <dd>
5091
5241
 
5092
5242
  Update an inbox item or create it if it doesn't exist.
5243
+
5244
+ <Note>**Required permission:** `edit:agents`</Note>
5093
5245
  </dd>
5094
5246
  </dl>
5095
5247
  </dd>
@@ -5184,6 +5336,8 @@ Update mutable inbox item fields. Only supported for custom inbox items.
5184
5336
 
5185
5337
  The `appId` field can be provided to update a inbox item owned by a different app.
5186
5338
  All other fields will overwrite the existing value on the inbox item only if provided.
5339
+
5340
+ <Note>**Required permission:** `edit:agents`. Patching a Duplicate Documents item also needs `read:documents`.</Note>
5187
5341
  </dd>
5188
5342
  </dl>
5189
5343
  </dd>
@@ -5260,6 +5414,8 @@ await client.inbox.patch("custom-item-1", {
5260
5414
  <dd>
5261
5415
 
5262
5416
  Update inbox item tag fields. All tags provided will overwrite the existing tags on the inbox item.
5417
+
5418
+ <Note>**Required permission:** `edit:agents`. Updating tags on a Missing Knowledge or Duplicate Documents item also needs `read:agents`, and on a Duplicate Documents item `read:documents` too.</Note>
5263
5419
  </dd>
5264
5420
  </dl>
5265
5421
  </dd>
@@ -5333,6 +5489,8 @@ await client.inbox.applyTags("custom-item-1", {
5333
5489
  <dd>
5334
5490
 
5335
5491
  Retrieve details of a specific inbox item by its ID.
5492
+
5493
+ <Note>**Required permission:** `read:agents`. Getting a Duplicate Documents item also needs `read:documents`.</Note>
5336
5494
  </dd>
5337
5495
  </dl>
5338
5496
  </dd>
@@ -5406,6 +5564,8 @@ await client.inbox.get("inboxItemId", {
5406
5564
  <dd>
5407
5565
 
5408
5566
  Retrieve a suggested fix. Includes document information if the fix is a Missing Knowledge suggestion.
5567
+
5568
+ <Note>**Required permission:** `read:agents`. Getting a Duplicate Documents fix also needs `read:documents`.</Note>
5409
5569
  </dd>
5410
5570
  </dl>
5411
5571
  </dd>
@@ -5479,6 +5639,8 @@ await client.inbox.getFix("inboxItemFixId", {
5479
5639
  <dd>
5480
5640
 
5481
5641
  Apply a list of fixes belonging to an inbox item.
5642
+
5643
+ <Note>**Required permission:** `edit:agents`. Applying fixes also needs `read:agents`. A Missing Knowledge fix also needs `create:documents`, and a Duplicate Documents fix also needs `read:documents`, `edit:documents` and `create:documents`.</Note>
5482
5644
  </dd>
5483
5645
  </dl>
5484
5646
  </dd>
@@ -5553,6 +5715,8 @@ await client.inbox.applyFixes("inboxItemId", {
5553
5715
  <dd>
5554
5716
 
5555
5717
  Ignore a specific inbox item by its ID.
5718
+
5719
+ <Note>**Required permission:** `edit:agents`</Note>
5556
5720
  </dd>
5557
5721
  </dl>
5558
5722
  </dd>
@@ -5720,6 +5884,8 @@ A replace that names a `variantId` must keep the field's `validationType` as tha
5720
5884
  variant has it, or it is rejected with reason `INTELLIGENT_FIELD_TYPE_CHANGED`. To use
5721
5885
  a different type, create a new field. A field deleted in the variant may be recreated
5722
5886
  with any type.
5887
+
5888
+ <Note>**Required permission:** `edit:agents`</Note>
5723
5889
  </dd>
5724
5890
  </dl>
5725
5891
  </dd>
@@ -5807,6 +5973,8 @@ kind of capability the same way. It does not carry `referencingCharters`; search
5807
5973
  charters to find the ones that reference a capability.
5808
5974
 
5809
5975
  Get an intelligent field by its supplied ID
5976
+
5977
+ <Note>**Required permission:** `read:agents`</Note>
5810
5978
  </dd>
5811
5979
  </dl>
5812
5980
  </dd>
@@ -5883,6 +6051,8 @@ the request body are changed.
5883
6051
  This is also how a field is activated and deactivated: set `status` to `ACTIVE` to
5884
6052
  start evaluating it, or `INACTIVE` to stop. `name`, `entityType`, and `validationType`
5885
6053
  cannot be changed after creation.
6054
+
6055
+ <Note>**Required permission:** `edit:agents`</Note>
5886
6056
  </dd>
5887
6057
  </dl>
5888
6058
  </dd>
@@ -5966,6 +6136,8 @@ its identity and entityType, every other setting comes from the request, and it
5966
6136
  status a new field gets.
5967
6137
 
5968
6138
  Deleted fields cannot be modified.
6139
+
6140
+ <Note>**Required permission:** `edit:agents`</Note>
5969
6141
  </dd>
5970
6142
  </dl>
5971
6143
  </dd>
@@ -6042,6 +6214,8 @@ value was computed.
6042
6214
 
6043
6215
  Values only exist for fields that were ACTIVE when the entity was evaluated, so a
6044
6216
  newly activated field returns nothing until evaluation has run.
6217
+
6218
+ <Note>**Required permission:** `read:agents`</Note>
6045
6219
  </dd>
6046
6220
  </dl>
6047
6221
  </dd>
@@ -6129,6 +6303,12 @@ await client.intelligentFields.searchValues({
6129
6303
  <dd>
6130
6304
 
6131
6305
  Search knowledge bases
6306
+
6307
+ Pagination is limited to the first 10,000 matching knowledge bases: `(page + 1) * size` must
6308
+ not exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to
6309
+ reach later results.
6310
+
6311
+ <Note>**Required permission:** `read:agents`</Note>
6132
6312
  </dd>
6133
6313
  </dl>
6134
6314
  </dd>
@@ -6192,6 +6372,8 @@ await client.knowledge.searchKnowledgeBases({});
6192
6372
  <dd>
6193
6373
 
6194
6374
  Update a knowledge base or create it if it doesn't exist.
6375
+
6376
+ <Note>**Required permission:** `edit:agents`</Note>
6195
6377
  </dd>
6196
6378
  </dl>
6197
6379
  </dd>
@@ -6260,6 +6442,8 @@ await client.knowledge.createOrUpdateKnowledgeBase({
6260
6442
  <dd>
6261
6443
 
6262
6444
  Get an existing knowledge base by its supplied ID
6445
+
6446
+ <Note>**Required permission:** `read:agents`</Note>
6263
6447
  </dd>
6264
6448
  </dl>
6265
6449
  </dd>
@@ -6334,6 +6518,8 @@ Request that a knowledge base refresh itself.
6334
6518
 
6335
6519
  Knowledge bases refresh on a schedule determined by the `refreshFrequency` field.
6336
6520
  They can also be refreshed on demand by calling this endpoint.
6521
+
6522
+ <Note>**Required permission:** `edit:agents`</Note>
6337
6523
  </dd>
6338
6524
  </dl>
6339
6525
  </dd>
@@ -6413,6 +6599,8 @@ ingestion workflow and sets the version status to CANCELED.
6413
6599
 
6414
6600
  An app still refreshing that version finds out on its next write to it: adding or
6415
6601
  removing a document on a canceled version is rejected rather than succeeding.
6602
+
6603
+ <Note>**Required permission:** `edit:agents`</Note>
6416
6604
  </dd>
6417
6605
  </dl>
6418
6606
  </dd>
@@ -6484,6 +6672,8 @@ await client.knowledge.cancelKnowledgeBaseVersion("knowledgeBaseReferenceId", {}
6484
6672
  <dd>
6485
6673
 
6486
6674
  Rolls the knowledge base back to its previous published version.
6675
+
6676
+ <Note>**Required permission:** `edit:agents`</Note>
6487
6677
  </dd>
6488
6678
  </dl>
6489
6679
  </dd>
@@ -6550,6 +6740,8 @@ Update mutable knowledge base fields
6550
6740
 
6551
6741
  The `appId` field can be provided to update a knowledge base owned by a different app.
6552
6742
  All other fields will overwrite the existing value on the knowledge base only if provided.
6743
+
6744
+ <Note>**Required permission:** `edit:agents`</Note>
6553
6745
  </dd>
6554
6746
  </dl>
6555
6747
  </dd>
@@ -6636,6 +6828,8 @@ If an existing version is in progress, then that version will be finalized in an
6636
6828
 
6637
6829
  If another version create for the same knowledge base is still in progress, this request may
6638
6830
  return 503 with a `Retry-After` header. Nothing is changed in that case, so it is safe to retry.
6831
+
6832
+ <Note>**Required permission:** `edit:agents`</Note>
6639
6833
  </dd>
6640
6834
  </dl>
6641
6835
  </dd>
@@ -6709,6 +6903,8 @@ await client.knowledge.createKnowledgeBaseVersion("help-center", {
6709
6903
  <dd>
6710
6904
 
6711
6905
  Finalize the latest knowledge base version. Required to indicate the version is complete. Will throw an exception if the latest version is not in progress.
6906
+
6907
+ <Note>**Required permission:** `edit:agents`</Note>
6712
6908
  </dd>
6713
6909
  </dl>
6714
6910
  </dd>
@@ -6791,6 +6987,8 @@ Report refresh progress for an in-progress knowledge base version.
6791
6987
  Progress is advisory and shown to users while a refresh runs. Each call replaces the
6792
6988
  version's entire progress state - no history is kept, only the most recent value is
6793
6989
  retained. Will throw an exception if the target version is not in progress.
6990
+
6991
+ <Note>**Required permission:** `edit:agents`</Note>
6794
6992
  </dd>
6795
6993
  </dl>
6796
6994
  </dd>
@@ -6873,6 +7071,8 @@ await client.knowledge.updateKnowledgeBaseVersionProgress("help-center", {
6873
7071
  <dd>
6874
7072
 
6875
7073
  List all active versions for a knowledge base. Returns the most recent versions first.
7074
+
7075
+ <Note>**Required permission:** `read:agents`</Note>
6876
7076
  </dd>
6877
7077
  </dl>
6878
7078
  </dd>
@@ -6944,6 +7144,12 @@ await client.knowledge.listKnowledgeBaseVersions("knowledgeBaseReferenceId");
6944
7144
  <dd>
6945
7145
 
6946
7146
  Search knowledge documents
7147
+
7148
+ Pagination is limited to the first 10,000 matching knowledge documents: `(page + 1) * size`
7149
+ must not exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter
7150
+ to reach later results.
7151
+
7152
+ <Note>**Required permission:** `read:documents`</Note>
6947
7153
  </dd>
6948
7154
  </dl>
6949
7155
  </dd>
@@ -7013,6 +7219,8 @@ Will throw an exception if the latest version is not in progress.
7013
7219
  This API maintains document version history. If for the same reference ID none of the `title`, `text`, `sourceUrl`, `metadata` fields
7014
7220
  have changed, a new document version will not be created. The existing version will be reused.
7015
7221
  </Tip>
7222
+
7223
+ <Note>**Required permission:** `create:documents`</Note>
7016
7224
  </dd>
7017
7225
  </dl>
7018
7226
  </dd>
@@ -7100,6 +7308,8 @@ await client.knowledge.createKnowledgeDocument("help-center", {
7100
7308
 
7101
7309
  Delete knowledge document from a specific version.
7102
7310
  Requires an existing knowledge base with an in progress version of type PARTIAL. Will throw an exception if the version is not in progress.
7311
+
7312
+ <Note>**Required permission:** `delete:documents`</Note>
7103
7313
  </dd>
7104
7314
  </dl>
7105
7315
  </dd>
@@ -7185,6 +7395,8 @@ await client.knowledge.deleteKnowledgeDocument("help-center", "getting-started",
7185
7395
  <dd>
7186
7396
 
7187
7397
  Get a knowledge document by its supplied version and document IDs. Response includes document content in markdown format.
7398
+
7399
+ <Note>**Required permission:** `read:documents`</Note>
7188
7400
  </dd>
7189
7401
  </dl>
7190
7402
  </dd>
@@ -7271,6 +7483,8 @@ For any changes in document content see the `createKnowledgeBaseVersion` and `cr
7271
7483
 
7272
7484
  The `knowledgeBaseAppId` field can be provided to update a knowledge document in a knowledge base owned by a different app.
7273
7485
  All other fields will overwrite the existing value on the knowledge document only if provided.
7486
+
7487
+ <Note>**Required permission:** `edit:documents`</Note>
7274
7488
  </dd>
7275
7489
  </dl>
7276
7490
  </dd>
@@ -7801,6 +8015,26 @@ await client.organizations.getConversationChart({
7801
8015
  <dl>
7802
8016
  <dd>
7803
8017
 
8018
+ #### 📝 Description
8019
+
8020
+ <dl>
8021
+ <dd>
8022
+
8023
+ <dl>
8024
+ <dd>
8025
+
8026
+ Search segments.
8027
+
8028
+ Pagination is limited to the first 10,000 matching segments: `(page + 1) * size` must not
8029
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
8030
+ later results.
8031
+
8032
+ <Note>**Required permission:** `read:agents`</Note>
8033
+ </dd>
8034
+ </dl>
8035
+ </dd>
8036
+ </dl>
8037
+
7804
8038
  #### 🔌 Usage
7805
8039
 
7806
8040
  <dl>
@@ -7859,6 +8093,8 @@ await client.segments.search({});
7859
8093
  <dd>
7860
8094
 
7861
8095
  Update a segment or create it if it doesn't exist.
8096
+
8097
+ <Note>**Required permission:** `edit:agents`</Note>
7862
8098
  </dd>
7863
8099
  </dl>
7864
8100
  </dd>
@@ -7938,6 +8174,8 @@ await client.segments.createOrUpdate({
7938
8174
  <dd>
7939
8175
 
7940
8176
  Get a segment by its supplied ID
8177
+
8178
+ <Note>**Required permission:** `read:agents`</Note>
7941
8179
  </dd>
7942
8180
  </dl>
7943
8181
  </dd>
@@ -8012,6 +8250,8 @@ Update mutable segment fields
8012
8250
 
8013
8251
  The `appId` field can be provided to update a segment owned by a different app.
8014
8252
  All other fields will overwrite the existing value on the segment only if provided.
8253
+
8254
+ <Note>**Required permission:** `edit:agents`</Note>
8015
8255
  </dd>
8016
8256
  </dl>
8017
8257
  </dd>
@@ -8087,6 +8327,8 @@ Soft delete a segment. Only INACTIVE segments can be deleted.
8087
8327
  Deleted segments are excluded from search results but can still be retrieved by ID for archival purposes. Creating a segment with the same referenceId as a deleted segment reclaims it: the segment keeps its identity, and every other setting comes from the request.
8088
8328
 
8089
8329
  Deleted segments cannot be modified.
8330
+
8331
+ <Note>**Required permission:** `edit:agents`</Note>
8090
8332
  </dd>
8091
8333
  </dl>
8092
8334
  </dd>
@@ -8159,6 +8401,8 @@ await client.segments.delete("segmentReferenceId");
8159
8401
  <dd>
8160
8402
 
8161
8403
  Translate text from one language to another
8404
+
8405
+ <Note>**Required permission:** `ask:agent`</Note>
8162
8406
  </dd>
8163
8407
  </dl>
8164
8408
  </dd>
@@ -8228,6 +8472,8 @@ await client.translations.translate({
8228
8472
  Deprecated. Use `POST /v1/capabilities/search`, which searches every kind of capability
8229
8473
  at once. It returns the fields every capability shares rather than the whole Event
8230
8474
  Trigger; fetch one by its kind and reference ID for the rest.
8475
+
8476
+ <Note>**Required permission:** `read:agents`</Note>
8231
8477
  </dd>
8232
8478
  </dl>
8233
8479
  </dd>
@@ -8291,6 +8537,8 @@ await client.triggers.search({});
8291
8537
  <dd>
8292
8538
 
8293
8539
  Update an event trigger or create it if it doesn't exist.
8540
+
8541
+ <Note>**Required permission:** `edit:agents`</Note>
8294
8542
  </dd>
8295
8543
  </dl>
8296
8544
  </dd>
@@ -8363,6 +8611,8 @@ Deprecated. Use `GET /v1/capabilities/TRIGGER/{referenceId}`, which returns this
8363
8611
  object for a trigger and the equivalent for every other kind of capability.
8364
8612
 
8365
8613
  Get an event trigger by its supplied ID
8614
+
8615
+ <Note>**Required permission:** `read:agents`</Note>
8366
8616
  </dd>
8367
8617
  </dl>
8368
8618
  </dd>
@@ -8429,6 +8679,8 @@ Deprecated. Use `DELETE /v1/capabilities/TRIGGER/{referenceId}`, which deletes a
8429
8679
  of capability the same way.
8430
8680
 
8431
8681
  Delete an event trigger
8682
+
8683
+ <Note>**Required permission:** `edit:agents`</Note>
8432
8684
  </dd>
8433
8685
  </dl>
8434
8686
  </dd>
@@ -8495,6 +8747,8 @@ Updates an event trigger. `enabled` and `condition` are the editable fields.
8495
8747
 
8496
8748
  `PATCH /v1/capabilities/TRIGGER/{referenceId}` with a `status` also turns a trigger on and
8497
8749
  off, the same way it publishes and unpublishes any kind of capability.
8750
+
8751
+ <Note>**Required permission:** `edit:agents`</Note>
8498
8752
  </dd>
8499
8753
  </dl>
8500
8754
  </dd>
@@ -8569,6 +8823,12 @@ await client.triggers.partialUpdate("triggerReferenceId");
8569
8823
  Search across all agent users on an agent.
8570
8824
 
8571
8825
  Agent users are a merged view of the users created by individual apps.
8826
+
8827
+ Pagination is limited to the first 10,000 matching agent users: `(page + 1) * size` must not
8828
+ exceed 10,000, and a request beyond that is rejected with a 400. Narrow the filter to reach
8829
+ later results.
8830
+
8831
+ <Note>**Required permission:** `read:agents`</Note>
8572
8832
  </dd>
8573
8833
  </dl>
8574
8834
  </dd>
@@ -8634,6 +8894,8 @@ await client.users.search({});
8634
8894
  Get an agent user by its supplied ID.
8635
8895
 
8636
8896
  Agent users are a merged view of the users created by individual apps.
8897
+
8898
+ <Note>**Required permission:** `read:agents`</Note>
8637
8899
  </dd>
8638
8900
  </dl>
8639
8901
  </dd>
@@ -8712,6 +8974,8 @@ If the ID belongs to an agent user that has been merged into another, the agent
8712
8974
 
8713
8975
  The agent user's intelligent field values are deleted too, and removed from their `INTELLIGENT_FIELD_VALUE_CHANGED` events; the events themselves are kept.
8714
8976
  Unlike `DELETE /users/{userId}`, the wipe does not recompute the values. They can be computed again later from the user's remaining conversations, for example after the user sends another message; wipe those conversations first to prevent that.
8977
+
8978
+ <Note>**Required permission:** `edit:agents`</Note>
8715
8979
  </dd>
8716
8980
  </dl>
8717
8981
  </dd>
@@ -8775,6 +9039,8 @@ await client.users.deleteAgentUser("aus_1234567890");
8775
9039
  <dd>
8776
9040
 
8777
9041
  Update an app user or create it if it doesn't exist.
9042
+
9043
+ <Note>**Required permission:** `edit:agents`. A user with `executionMode` `SIMULATION` also needs `create:simulations`.</Note>
8778
9044
  </dd>
8779
9045
  </dl>
8780
9046
  </dd>
@@ -8852,6 +9118,8 @@ await client.users.createOrUpdate({
8852
9118
  <dd>
8853
9119
 
8854
9120
  Get an app user by its supplied ID
9121
+
9122
+ <Note>**Required permission:** `read:agents`</Note>
8855
9123
  </dd>
8856
9124
  </dl>
8857
9125
  </dd>
@@ -8933,6 +9201,8 @@ To wipe a conversation, use `DELETE /conversations/{conversationId}`. To wipe ev
8933
9201
  If this user is linked to a user from another app, it will not be unlinked. Unlinking of users is not yet supported.
8934
9202
 
8935
9203
  <Warning>This is a destructive operation and cannot be undone.</Warning>
9204
+
9205
+ <Note>**Required permission:** `edit:agents`</Note>
8936
9206
  </dd>
8937
9207
  </dl>
8938
9208
  </dd>
@@ -9008,7 +9278,7 @@ Creates a short-lived session token for authenticating voice connections.
9008
9278
 
9009
9279
  Supports two token types:
9010
9280
  - **webrtc**: A Twilio-compatible access token for browser-based WebRTC calls
9011
- - **websocket**: An ES256 JWT for direct WebSocket connections to /v1/voice/conversations
9281
+ - **websocket**: An ES256 JWT for direct WebSocket connections to /v1/realtime/conversations
9012
9282
 
9013
9283
  Session tokens are required before establishing any voice connection.
9014
9284
  </dd>