@connectedxm/admin-sdk 16.6.1 → 16.8.0

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.
@@ -177,7 +177,7 @@ const { status, data } = await apiInstance.getThreadMessage(
177
177
  # **getThreadMessages**
178
178
  > GetThreadMessages200Response getThreadMessages()
179
179
 
180
- Returns a cursor-paginated list of messages in the given thread, ordered by send time, with optional search; requires read permission on threads.
180
+ Returns a paginated list of top-level messages in the given thread (excludes replies, which are listed under their parent message), newest first and searchable by message body; requires read permission on threads.
181
181
 
182
182
  ### Example
183
183
 
@@ -191,9 +191,17 @@ const configuration = new Configuration();
191
191
  const apiInstance = new ThreadsMessagesApi(configuration);
192
192
 
193
193
  let threadId: string; //The thread identifier (default to undefined)
194
+ let page: number; //Page number (optional) (default to 1)
195
+ let pageSize: number; //Number of items per page (optional) (default to 25)
196
+ let orderBy: string; //Field to order by (optional) (default to undefined)
197
+ let search: string; //Search query (optional) (default to undefined)
194
198
 
195
199
  const { status, data } = await apiInstance.getThreadMessages(
196
- threadId
200
+ threadId,
201
+ page,
202
+ pageSize,
203
+ orderBy,
204
+ search
197
205
  );
198
206
  ```
199
207
 
@@ -202,6 +210,10 @@ const { status, data } = await apiInstance.getThreadMessages(
202
210
  |Name | Type | Description | Notes|
203
211
  |------------- | ------------- | ------------- | -------------|
204
212
  | **threadId** | [**string**] | The thread identifier | defaults to undefined|
213
+ | **page** | [**number**] | Page number | (optional) defaults to 1|
214
+ | **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
215
+ | **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
216
+ | **search** | [**string**] | Search query | (optional) defaults to undefined|
205
217
 
206
218
 
207
219
  ### Return type
@@ -226,7 +238,7 @@ const { status, data } = await apiInstance.getThreadMessages(
226
238
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
227
239
 
228
240
  # **getThreadMessagesPoll**
229
- > GetThreadMessages200Response getThreadMessagesPoll()
241
+ > GetThreadMessagesPoll200Response getThreadMessagesPoll()
230
242
 
231
243
  Returns any messages sent in the given thread after the provided lastMessageId, for lightweight polling-based updates; requires read permission on threads.
232
244
 
@@ -260,7 +272,7 @@ const { status, data } = await apiInstance.getThreadMessagesPoll(
260
272
 
261
273
  ### Return type
262
274
 
263
- **GetThreadMessages200Response**
275
+ **GetThreadMessagesPoll200Response**
264
276
 
265
277
  ### Authorization
266
278
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin-sdk",
3
- "version": "16.6.1",
3
+ "version": "16.8.0",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {