rocketchat-ts-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +191 -191
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +191 -191
- package/dist/index.js.map +1 -1
- package/dist/resources/channelResource.d.ts.map +1 -1
- package/dist/resources/chatResource.d.ts.map +1 -1
- package/dist/resources/directoryResource.d.ts.map +1 -1
- package/dist/resources/dmResource.d.ts.map +1 -1
- package/dist/resources/groupResource.d.ts.map +1 -1
- package/dist/resources/inviteResource.d.ts.map +1 -1
- package/dist/resources/messagingResource.d.ts.map +1 -1
- package/dist/resources/methodCallResource.d.ts.map +1 -1
- package/dist/resources/roomResource.d.ts.map +1 -1
- package/dist/resources/subscriptionResource.d.ts.map +1 -1
- package/dist/resources/teamResource.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -186,7 +186,7 @@ class ChannelResource extends BaseResource {
|
|
|
186
186
|
* accepts payload with roomId
|
|
187
187
|
*/
|
|
188
188
|
channelClose(payload, customHeaders = {}) {
|
|
189
|
-
const path = `/
|
|
189
|
+
const path = `/channels.close`;
|
|
190
190
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
@@ -194,7 +194,7 @@ class ChannelResource extends BaseResource {
|
|
|
194
194
|
* accepts query with roomId/roomName and optional userId
|
|
195
195
|
*/
|
|
196
196
|
channelCounters(query, customHeaders = {}) {
|
|
197
|
-
const path = `/
|
|
197
|
+
const path = `/channels.counters${this.addQuery(query)}`;
|
|
198
198
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
199
199
|
}
|
|
200
200
|
/**
|
|
@@ -202,7 +202,7 @@ class ChannelResource extends BaseResource {
|
|
|
202
202
|
* accepts payload with name, members, readOnly, etc.
|
|
203
203
|
*/
|
|
204
204
|
channelCreate(payload, customHeaders = {}) {
|
|
205
|
-
const path = `/
|
|
205
|
+
const path = `/channels.create`;
|
|
206
206
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
@@ -210,7 +210,7 @@ class ChannelResource extends BaseResource {
|
|
|
210
210
|
* accepts payload with roomId or roomName
|
|
211
211
|
*/
|
|
212
212
|
channelDelete(payload, customHeaders = {}) {
|
|
213
|
-
const path = `/
|
|
213
|
+
const path = `/channels.delete`;
|
|
214
214
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
@@ -218,7 +218,7 @@ class ChannelResource extends BaseResource {
|
|
|
218
218
|
* accepts query with roomId/roomName and pagination params
|
|
219
219
|
*/
|
|
220
220
|
channelFiles(query, customHeaders = {}) {
|
|
221
|
-
const path = `/
|
|
221
|
+
const path = `/channels.files${this.addQuery(query)}`;
|
|
222
222
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
@@ -226,7 +226,7 @@ class ChannelResource extends BaseResource {
|
|
|
226
226
|
* accepts query with roomId/roomName and pagination/filtering params
|
|
227
227
|
*/
|
|
228
228
|
channelHistory(query, customHeaders = {}) {
|
|
229
|
-
const path = `/
|
|
229
|
+
const path = `/channels.history${this.addQuery(query)}`;
|
|
230
230
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
@@ -234,7 +234,7 @@ class ChannelResource extends BaseResource {
|
|
|
234
234
|
* accepts query with roomId or roomName
|
|
235
235
|
*/
|
|
236
236
|
channelInfo(query, customHeaders = {}) {
|
|
237
|
-
const path = `/
|
|
237
|
+
const path = `/channels.info${this.addQuery(query)}`;
|
|
238
238
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
@@ -242,7 +242,7 @@ class ChannelResource extends BaseResource {
|
|
|
242
242
|
* accepts payload with roomId and userId(s)
|
|
243
243
|
*/
|
|
244
244
|
channelInvite(payload, customHeaders = {}) {
|
|
245
|
-
const path = `/
|
|
245
|
+
const path = `/channels.invite`;
|
|
246
246
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
247
247
|
}
|
|
248
248
|
/**
|
|
@@ -250,7 +250,7 @@ class ChannelResource extends BaseResource {
|
|
|
250
250
|
* accepts payload with roomId and optional joinCode
|
|
251
251
|
*/
|
|
252
252
|
channelJoin(payload, customHeaders = {}) {
|
|
253
|
-
const path = `/
|
|
253
|
+
const path = `/channels.join`;
|
|
254
254
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
255
255
|
}
|
|
256
256
|
/**
|
|
@@ -258,7 +258,7 @@ class ChannelResource extends BaseResource {
|
|
|
258
258
|
* accepts payload with roomId and userId
|
|
259
259
|
*/
|
|
260
260
|
channelKick(payload, customHeaders = {}) {
|
|
261
|
-
const path = `/
|
|
261
|
+
const path = `/channels.kick`;
|
|
262
262
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
@@ -266,7 +266,7 @@ class ChannelResource extends BaseResource {
|
|
|
266
266
|
* accepts payload with roomId
|
|
267
267
|
*/
|
|
268
268
|
channelLeave(payload, customHeaders = {}) {
|
|
269
|
-
const path = `/
|
|
269
|
+
const path = `/channels.leave`;
|
|
270
270
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
@@ -274,7 +274,7 @@ class ChannelResource extends BaseResource {
|
|
|
274
274
|
* accepts query with pagination and filtering params
|
|
275
275
|
*/
|
|
276
276
|
channelList(query, customHeaders = {}) {
|
|
277
|
-
const path = `/
|
|
277
|
+
const path = `/channels.list${this.addQuery(query)}`;
|
|
278
278
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
@@ -282,7 +282,7 @@ class ChannelResource extends BaseResource {
|
|
|
282
282
|
* accepts query with pagination params
|
|
283
283
|
*/
|
|
284
284
|
channelListJoined(query, customHeaders = {}) {
|
|
285
|
-
const path = `/
|
|
285
|
+
const path = `/channels.list.joined${this.addQuery(query)}`;
|
|
286
286
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
287
287
|
}
|
|
288
288
|
/**
|
|
@@ -290,7 +290,7 @@ class ChannelResource extends BaseResource {
|
|
|
290
290
|
* accepts query with roomId/roomName and pagination/filtering params
|
|
291
291
|
*/
|
|
292
292
|
channelMembers(query, customHeaders = {}) {
|
|
293
|
-
const path = `/
|
|
293
|
+
const path = `/channels.members${this.addQuery(query)}`;
|
|
294
294
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
295
295
|
}
|
|
296
296
|
/**
|
|
@@ -298,7 +298,7 @@ class ChannelResource extends BaseResource {
|
|
|
298
298
|
* accepts query with roomId and pagination/filtering params
|
|
299
299
|
*/
|
|
300
300
|
channelMessages(query, customHeaders = {}) {
|
|
301
|
-
const path = `/
|
|
301
|
+
const path = `/channels.messages${this.addQuery(query)}`;
|
|
302
302
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
303
303
|
}
|
|
304
304
|
/**
|
|
@@ -306,7 +306,7 @@ class ChannelResource extends BaseResource {
|
|
|
306
306
|
* accepts query with roomId or roomName
|
|
307
307
|
*/
|
|
308
308
|
channelModerators(query, customHeaders = {}) {
|
|
309
|
-
const path = `/
|
|
309
|
+
const path = `/channels.moderators${this.addQuery(query)}`;
|
|
310
310
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
311
311
|
}
|
|
312
312
|
/**
|
|
@@ -314,7 +314,7 @@ class ChannelResource extends BaseResource {
|
|
|
314
314
|
* accepts query with roomId or roomName
|
|
315
315
|
*/
|
|
316
316
|
channelOnline(query, customHeaders = {}) {
|
|
317
|
-
const path = `/
|
|
317
|
+
const path = `/channels.online${this.addQuery(query)}`;
|
|
318
318
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
@@ -322,7 +322,7 @@ class ChannelResource extends BaseResource {
|
|
|
322
322
|
* accepts query with roomId or roomName
|
|
323
323
|
*/
|
|
324
324
|
channelRoles(query, customHeaders = {}) {
|
|
325
|
-
const path = `/
|
|
325
|
+
const path = `/channels.roles${this.addQuery(query)}`;
|
|
326
326
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
327
327
|
}
|
|
328
328
|
/**
|
|
@@ -330,7 +330,7 @@ class ChannelResource extends BaseResource {
|
|
|
330
330
|
* accepts query with roomId and pagination params
|
|
331
331
|
*/
|
|
332
332
|
channelGetAllUserMentionsByChannel(query, customHeaders = {}) {
|
|
333
|
-
const path = `/
|
|
333
|
+
const path = `/channels.getAllUserMentionsByChannel${this.addQuery(query)}`;
|
|
334
334
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
335
335
|
}
|
|
336
336
|
/**
|
|
@@ -338,7 +338,7 @@ class ChannelResource extends BaseResource {
|
|
|
338
338
|
* accepts query with roomId and pagination params
|
|
339
339
|
*/
|
|
340
340
|
channelGetIntegrations(query, customHeaders = {}) {
|
|
341
|
-
const path = `/
|
|
341
|
+
const path = `/channels.getIntegrations${this.addQuery(query)}`;
|
|
342
342
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
343
343
|
}
|
|
344
344
|
/**
|
|
@@ -346,7 +346,7 @@ class ChannelResource extends BaseResource {
|
|
|
346
346
|
* accepts payload with roomId
|
|
347
347
|
*/
|
|
348
348
|
channelOpen(payload, customHeaders = {}) {
|
|
349
|
-
const path = `/
|
|
349
|
+
const path = `/channels.open`;
|
|
350
350
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
@@ -354,7 +354,7 @@ class ChannelResource extends BaseResource {
|
|
|
354
354
|
* accepts payload with roomId
|
|
355
355
|
*/
|
|
356
356
|
channelArchive(payload, customHeaders = {}) {
|
|
357
|
-
const path = `/
|
|
357
|
+
const path = `/channels.archive`;
|
|
358
358
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
359
359
|
}
|
|
360
360
|
/**
|
|
@@ -362,7 +362,7 @@ class ChannelResource extends BaseResource {
|
|
|
362
362
|
* accepts payload with roomId and activeUsersOnly flag
|
|
363
363
|
*/
|
|
364
364
|
channelAddAll(payload, customHeaders = {}) {
|
|
365
|
-
const path = `/
|
|
365
|
+
const path = `/channels.addAll`;
|
|
366
366
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
367
367
|
}
|
|
368
368
|
/**
|
|
@@ -370,7 +370,7 @@ class ChannelResource extends BaseResource {
|
|
|
370
370
|
* accepts payload with roomId and userId
|
|
371
371
|
*/
|
|
372
372
|
channelAddLeader(payload, customHeaders = {}) {
|
|
373
|
-
const path = `/
|
|
373
|
+
const path = `/channels.addLeader`;
|
|
374
374
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
@@ -378,7 +378,7 @@ class ChannelResource extends BaseResource {
|
|
|
378
378
|
* accepts payload with roomId and userId
|
|
379
379
|
*/
|
|
380
380
|
channelAddModerator(payload, customHeaders = {}) {
|
|
381
|
-
const path = `/
|
|
381
|
+
const path = `/channels.addModerator`;
|
|
382
382
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
@@ -386,7 +386,7 @@ class ChannelResource extends BaseResource {
|
|
|
386
386
|
* accepts payload with roomId and userId
|
|
387
387
|
*/
|
|
388
388
|
channelAddOwner(payload, customHeaders = {}) {
|
|
389
|
-
const path = `/
|
|
389
|
+
const path = `/channels.addOwner`;
|
|
390
390
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
391
391
|
}
|
|
392
392
|
/**
|
|
@@ -394,7 +394,7 @@ class ChannelResource extends BaseResource {
|
|
|
394
394
|
* accepts payload with roomId and userId
|
|
395
395
|
*/
|
|
396
396
|
channelRemoveLeader(payload, customHeaders = {}) {
|
|
397
|
-
const path = `/
|
|
397
|
+
const path = `/channels.removeLeader`;
|
|
398
398
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
@@ -402,7 +402,7 @@ class ChannelResource extends BaseResource {
|
|
|
402
402
|
* accepts payload with roomId and userId
|
|
403
403
|
*/
|
|
404
404
|
channelRemoveModerator(payload, customHeaders = {}) {
|
|
405
|
-
const path = `/
|
|
405
|
+
const path = `/channels.removeModerator`;
|
|
406
406
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
407
407
|
}
|
|
408
408
|
/**
|
|
@@ -410,7 +410,7 @@ class ChannelResource extends BaseResource {
|
|
|
410
410
|
* accepts payload with roomId and userId
|
|
411
411
|
*/
|
|
412
412
|
channelRemoveOwner(payload, customHeaders = {}) {
|
|
413
|
-
const path = `/
|
|
413
|
+
const path = `/channels.removeOwner`;
|
|
414
414
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
@@ -418,7 +418,7 @@ class ChannelResource extends BaseResource {
|
|
|
418
418
|
* accepts payload with roomId and name
|
|
419
419
|
*/
|
|
420
420
|
channelRename(payload, customHeaders = {}) {
|
|
421
|
-
const path = `/
|
|
421
|
+
const path = `/channels.rename`;
|
|
422
422
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
423
423
|
}
|
|
424
424
|
/**
|
|
@@ -426,7 +426,7 @@ class ChannelResource extends BaseResource {
|
|
|
426
426
|
* accepts payload with roomId and announcement
|
|
427
427
|
*/
|
|
428
428
|
channelSetAnnouncement(payload, customHeaders = {}) {
|
|
429
|
-
const path = `/
|
|
429
|
+
const path = `/channels.setAnnouncement`;
|
|
430
430
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
@@ -434,7 +434,7 @@ class ChannelResource extends BaseResource {
|
|
|
434
434
|
* accepts payload with roomId and description
|
|
435
435
|
*/
|
|
436
436
|
channelSetDescription(payload, customHeaders = {}) {
|
|
437
|
-
const path = `/
|
|
437
|
+
const path = `/channels.setDescription`;
|
|
438
438
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
439
439
|
}
|
|
440
440
|
/**
|
|
@@ -442,7 +442,7 @@ class ChannelResource extends BaseResource {
|
|
|
442
442
|
* accepts payload with roomId and joinCode
|
|
443
443
|
*/
|
|
444
444
|
channelSetJoinCode(payload, customHeaders = {}) {
|
|
445
|
-
const path = `/
|
|
445
|
+
const path = `/channels.setJoinCode`;
|
|
446
446
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
@@ -450,7 +450,7 @@ class ChannelResource extends BaseResource {
|
|
|
450
450
|
* accepts payload with roomId and purpose
|
|
451
451
|
*/
|
|
452
452
|
channelSetPurpose(payload, customHeaders = {}) {
|
|
453
|
-
const path = `/
|
|
453
|
+
const path = `/channels.setPurpose`;
|
|
454
454
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
455
455
|
}
|
|
456
456
|
/**
|
|
@@ -458,7 +458,7 @@ class ChannelResource extends BaseResource {
|
|
|
458
458
|
* accepts payload with roomId and readOnly flag
|
|
459
459
|
*/
|
|
460
460
|
channelSetReadOnly(payload, customHeaders = {}) {
|
|
461
|
-
const path = `/
|
|
461
|
+
const path = `/channels.setReadOnly`;
|
|
462
462
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
@@ -466,7 +466,7 @@ class ChannelResource extends BaseResource {
|
|
|
466
466
|
* accepts payload with roomId and topic
|
|
467
467
|
*/
|
|
468
468
|
channelSetTopic(payload, customHeaders = {}) {
|
|
469
|
-
const path = `/
|
|
469
|
+
const path = `/channels.setTopic`;
|
|
470
470
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
471
471
|
}
|
|
472
472
|
/**
|
|
@@ -474,7 +474,7 @@ class ChannelResource extends BaseResource {
|
|
|
474
474
|
* accepts payload with roomId and type
|
|
475
475
|
*/
|
|
476
476
|
channelSetType(payload, customHeaders = {}) {
|
|
477
|
-
const path = `/
|
|
477
|
+
const path = `/channels.setType`;
|
|
478
478
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
@@ -482,7 +482,7 @@ class ChannelResource extends BaseResource {
|
|
|
482
482
|
* accepts payload with roomId
|
|
483
483
|
*/
|
|
484
484
|
channelUnarchive(payload, customHeaders = {}) {
|
|
485
|
-
const path = `/
|
|
485
|
+
const path = `/channels.unarchive`;
|
|
486
486
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
487
487
|
}
|
|
488
488
|
/**
|
|
@@ -490,7 +490,7 @@ class ChannelResource extends BaseResource {
|
|
|
490
490
|
* accepts payload with channelId
|
|
491
491
|
*/
|
|
492
492
|
channelConvertToTeam(payload, customHeaders = {}) {
|
|
493
|
-
const path = `/
|
|
493
|
+
const path = `/channels.convertToTeam`;
|
|
494
494
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
@@ -503,7 +503,7 @@ class ChatResource extends BaseResource {
|
|
|
503
503
|
* accepts payload with roomId, msgId, and optional asUser
|
|
504
504
|
*/
|
|
505
505
|
delete(payload, customHeaders = {}) {
|
|
506
|
-
const path = `/
|
|
506
|
+
const path = `/chat.delete`;
|
|
507
507
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
@@ -511,7 +511,7 @@ class ChatResource extends BaseResource {
|
|
|
511
511
|
* accepts payload with messageId, emoji or reaction, and shouldReact
|
|
512
512
|
*/
|
|
513
513
|
react(payload, customHeaders = {}) {
|
|
514
|
-
const path = `/
|
|
514
|
+
const path = `/chat.react`;
|
|
515
515
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
516
516
|
}
|
|
517
517
|
/**
|
|
@@ -519,7 +519,7 @@ class ChatResource extends BaseResource {
|
|
|
519
519
|
* accepts payload with roomId, msgId, text, and optional previewUrls and customFields
|
|
520
520
|
*/
|
|
521
521
|
update(payload, customHeaders = {}) {
|
|
522
|
-
const path = `/
|
|
522
|
+
const path = `/chat.update`;
|
|
523
523
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
524
524
|
}
|
|
525
525
|
/**
|
|
@@ -527,7 +527,7 @@ class ChatResource extends BaseResource {
|
|
|
527
527
|
* accepts payload with messageId and description
|
|
528
528
|
*/
|
|
529
529
|
reportMessage(payload, customHeaders = {}) {
|
|
530
|
-
const path = `/
|
|
530
|
+
const path = `/chat.reportMessage`;
|
|
531
531
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
532
532
|
}
|
|
533
533
|
/**
|
|
@@ -535,7 +535,7 @@ class ChatResource extends BaseResource {
|
|
|
535
535
|
* accepts payload with mid (message ID)
|
|
536
536
|
*/
|
|
537
537
|
followMessage(payload, customHeaders = {}) {
|
|
538
|
-
const path = `/
|
|
538
|
+
const path = `/chat.followMessage`;
|
|
539
539
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
540
540
|
}
|
|
541
541
|
/**
|
|
@@ -543,7 +543,7 @@ class ChatResource extends BaseResource {
|
|
|
543
543
|
* accepts query with msgId
|
|
544
544
|
*/
|
|
545
545
|
getMessage(query, customHeaders = {}) {
|
|
546
|
-
const path = `/
|
|
546
|
+
const path = `/chat.getMessage${this.addQuery(query)}`;
|
|
547
547
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
548
548
|
}
|
|
549
549
|
/**
|
|
@@ -551,7 +551,7 @@ class ChatResource extends BaseResource {
|
|
|
551
551
|
* accepts query with rid and optional pagination/filtering params
|
|
552
552
|
*/
|
|
553
553
|
getThreadsList(query, customHeaders = {}) {
|
|
554
|
-
const path = `/
|
|
554
|
+
const path = `/chat.getThreadsList${this.addQuery(query)}`;
|
|
555
555
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
556
556
|
}
|
|
557
557
|
/**
|
|
@@ -559,7 +559,7 @@ class ChatResource extends BaseResource {
|
|
|
559
559
|
* accepts query with roomId, since date, and optional pagination params
|
|
560
560
|
*/
|
|
561
561
|
getDeletedMessages(query, customHeaders = {}) {
|
|
562
|
-
const path = `/
|
|
562
|
+
const path = `/chat.getDeletedMessages${this.addQuery(query)}`;
|
|
563
563
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
564
564
|
}
|
|
565
565
|
/**
|
|
@@ -567,7 +567,7 @@ class ChatResource extends BaseResource {
|
|
|
567
567
|
* accepts query with roomId and optional pagination/filtering params
|
|
568
568
|
*/
|
|
569
569
|
getDiscussions(query, customHeaders = {}) {
|
|
570
|
-
const path = `/
|
|
570
|
+
const path = `/chat.getDiscussions${this.addQuery(query)}`;
|
|
571
571
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
572
572
|
}
|
|
573
573
|
/**
|
|
@@ -575,7 +575,7 @@ class ChatResource extends BaseResource {
|
|
|
575
575
|
* accepts query with roomId and optional pagination params
|
|
576
576
|
*/
|
|
577
577
|
getMentionedMessages(query, customHeaders = {}) {
|
|
578
|
-
const path = `/
|
|
578
|
+
const path = `/chat.getMentionedMessages${this.addQuery(query)}`;
|
|
579
579
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
@@ -583,7 +583,7 @@ class ChatResource extends BaseResource {
|
|
|
583
583
|
* accepts query with messageId and optional pagination params
|
|
584
584
|
*/
|
|
585
585
|
getMessageReadReceipts(query, customHeaders = {}) {
|
|
586
|
-
const path = `/
|
|
586
|
+
const path = `/chat.getMessageReadReceipts${this.addQuery(query)}`;
|
|
587
587
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
588
588
|
}
|
|
589
589
|
/**
|
|
@@ -591,7 +591,7 @@ class ChatResource extends BaseResource {
|
|
|
591
591
|
* accepts query with roomId and optional pagination params
|
|
592
592
|
*/
|
|
593
593
|
getPinnedMessages(query, customHeaders = {}) {
|
|
594
|
-
const path = `/
|
|
594
|
+
const path = `/chat.getPinnedMessages${this.addQuery(query)}`;
|
|
595
595
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
596
596
|
}
|
|
597
597
|
/**
|
|
@@ -599,7 +599,7 @@ class ChatResource extends BaseResource {
|
|
|
599
599
|
* accepts query with roomId and optional pagination params
|
|
600
600
|
*/
|
|
601
601
|
getStarredMessages(query, customHeaders = {}) {
|
|
602
|
-
const path = `/
|
|
602
|
+
const path = `/chat.getStarredMessages${this.addQuery(query)}`;
|
|
603
603
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
@@ -607,7 +607,7 @@ class ChatResource extends BaseResource {
|
|
|
607
607
|
* accepts query with tmid and optional pagination/filtering params
|
|
608
608
|
*/
|
|
609
609
|
getThreadMessages(query, customHeaders = {}) {
|
|
610
|
-
const path = `/
|
|
610
|
+
const path = `/chat.getThreadMessages${this.addQuery(query)}`;
|
|
611
611
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
@@ -615,7 +615,7 @@ class ChatResource extends BaseResource {
|
|
|
615
615
|
* accepts query with rid, userId, and ignore flag
|
|
616
616
|
*/
|
|
617
617
|
ignoreUser(query, customHeaders = {}) {
|
|
618
|
-
const path = `/
|
|
618
|
+
const path = `/chat.ignoreUser${this.addQuery(query)}`;
|
|
619
619
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
@@ -623,7 +623,7 @@ class ChatResource extends BaseResource {
|
|
|
623
623
|
* accepts payload with messageId
|
|
624
624
|
*/
|
|
625
625
|
pinMessage(payload, customHeaders = {}) {
|
|
626
|
-
const path = `/
|
|
626
|
+
const path = `/chat.pinMessage`;
|
|
627
627
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
628
628
|
}
|
|
629
629
|
/**
|
|
@@ -631,7 +631,7 @@ class ChatResource extends BaseResource {
|
|
|
631
631
|
* accepts payload with messageId
|
|
632
632
|
*/
|
|
633
633
|
unPinMessage(payload, customHeaders = {}) {
|
|
634
|
-
const path = `/
|
|
634
|
+
const path = `/chat.unPinMessage`;
|
|
635
635
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
636
636
|
}
|
|
637
637
|
/**
|
|
@@ -639,7 +639,7 @@ class ChatResource extends BaseResource {
|
|
|
639
639
|
* accepts payload with roomId or channel, text, and optional attachments, alias, etc.
|
|
640
640
|
*/
|
|
641
641
|
postMessage(payload, customHeaders = {}) {
|
|
642
|
-
const path = `/
|
|
642
|
+
const path = `/chat.postMessage`;
|
|
643
643
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
@@ -647,7 +647,7 @@ class ChatResource extends BaseResource {
|
|
|
647
647
|
* accepts payload with message object and optional previewUrls
|
|
648
648
|
*/
|
|
649
649
|
sendMessage(payload, customHeaders = {}) {
|
|
650
|
-
const path = `/
|
|
650
|
+
const path = `/chat.sendMessage`;
|
|
651
651
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
652
652
|
}
|
|
653
653
|
/**
|
|
@@ -655,7 +655,7 @@ class ChatResource extends BaseResource {
|
|
|
655
655
|
* accepts payload with messageId
|
|
656
656
|
*/
|
|
657
657
|
starMessage(payload, customHeaders = {}) {
|
|
658
|
-
const path = `/
|
|
658
|
+
const path = `/chat.starMessage`;
|
|
659
659
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
660
660
|
}
|
|
661
661
|
/**
|
|
@@ -663,7 +663,7 @@ class ChatResource extends BaseResource {
|
|
|
663
663
|
* accepts payload with messageId
|
|
664
664
|
*/
|
|
665
665
|
unStarMessage(payload, customHeaders = {}) {
|
|
666
|
-
const path = `/
|
|
666
|
+
const path = `/chat.unStarMessage`;
|
|
667
667
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
@@ -671,7 +671,7 @@ class ChatResource extends BaseResource {
|
|
|
671
671
|
* accepts query with rid, updatedSince, and optional filtering params
|
|
672
672
|
*/
|
|
673
673
|
syncThreadsList(query, customHeaders = {}) {
|
|
674
|
-
const path = `/
|
|
674
|
+
const path = `/chat.syncThreadsList${this.addQuery(query)}`;
|
|
675
675
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
676
676
|
}
|
|
677
677
|
/**
|
|
@@ -679,7 +679,7 @@ class ChatResource extends BaseResource {
|
|
|
679
679
|
* accepts query with updatedSince, tmid, and optional pagination/filtering params
|
|
680
680
|
*/
|
|
681
681
|
syncThreadMessages(query, customHeaders = {}) {
|
|
682
|
-
const path = `/
|
|
682
|
+
const path = `/chat.syncThreadMessages${this.addQuery(query)}`;
|
|
683
683
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
684
684
|
}
|
|
685
685
|
/**
|
|
@@ -687,7 +687,7 @@ class ChatResource extends BaseResource {
|
|
|
687
687
|
* accepts query with roomId and optional sync/pagination params
|
|
688
688
|
*/
|
|
689
689
|
syncMessages(query, customHeaders = {}) {
|
|
690
|
-
const path = `/
|
|
690
|
+
const path = `/chat.syncMessages${this.addQuery(query)}`;
|
|
691
691
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
692
692
|
}
|
|
693
693
|
/**
|
|
@@ -695,7 +695,7 @@ class ChatResource extends BaseResource {
|
|
|
695
695
|
* accepts query with roomId and url
|
|
696
696
|
*/
|
|
697
697
|
getURLPreview(query, customHeaders = {}) {
|
|
698
|
-
const path = `/
|
|
698
|
+
const path = `/chat.getURLPreview${this.addQuery(query)}`;
|
|
699
699
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
700
700
|
}
|
|
701
701
|
}
|
|
@@ -706,7 +706,7 @@ class DirectoryResource extends BaseResource {
|
|
|
706
706
|
* accepts query with search and pagination params
|
|
707
707
|
*/
|
|
708
708
|
directory(query, customHeaders = {}) {
|
|
709
|
-
const path = `/
|
|
709
|
+
const path = `/directory${this.addQuery(query)}`;
|
|
710
710
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
711
711
|
}
|
|
712
712
|
}
|
|
@@ -720,7 +720,7 @@ class DmResource extends BaseResource {
|
|
|
720
720
|
* accepts payload with roomId
|
|
721
721
|
*/
|
|
722
722
|
close(payload, customHeaders = {}) {
|
|
723
|
-
const path = `/
|
|
723
|
+
const path = `/dm.close`;
|
|
724
724
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
725
725
|
}
|
|
726
726
|
/**
|
|
@@ -728,7 +728,7 @@ class DmResource extends BaseResource {
|
|
|
728
728
|
* accepts query with roomId and optional userId
|
|
729
729
|
*/
|
|
730
730
|
counters(query, customHeaders = {}) {
|
|
731
|
-
const path = `/
|
|
731
|
+
const path = `/dm.counters${this.addQuery(query)}`;
|
|
732
732
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
@@ -736,7 +736,7 @@ class DmResource extends BaseResource {
|
|
|
736
736
|
* accepts payload with username, usernames, or excludeSelf
|
|
737
737
|
*/
|
|
738
738
|
create(payload, customHeaders = {}) {
|
|
739
|
-
const path = `/
|
|
739
|
+
const path = `/dm.create`;
|
|
740
740
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
741
741
|
}
|
|
742
742
|
/**
|
|
@@ -744,7 +744,7 @@ class DmResource extends BaseResource {
|
|
|
744
744
|
* accepts payload with roomId or username
|
|
745
745
|
*/
|
|
746
746
|
delete(payload, customHeaders = {}) {
|
|
747
|
-
const path = `/
|
|
747
|
+
const path = `/dm.delete`;
|
|
748
748
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
749
749
|
}
|
|
750
750
|
/**
|
|
@@ -752,7 +752,7 @@ class DmResource extends BaseResource {
|
|
|
752
752
|
* accepts query with roomId or username and optional pagination/filtering params
|
|
753
753
|
*/
|
|
754
754
|
files(query, customHeaders = {}) {
|
|
755
|
-
const path = `/
|
|
755
|
+
const path = `/dm.files${this.addQuery(query)}`;
|
|
756
756
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
757
757
|
}
|
|
758
758
|
/**
|
|
@@ -760,7 +760,7 @@ class DmResource extends BaseResource {
|
|
|
760
760
|
* accepts query with roomId or username and optional pagination/filtering params
|
|
761
761
|
*/
|
|
762
762
|
history(query, customHeaders = {}) {
|
|
763
|
-
const path = `/
|
|
763
|
+
const path = `/dm.history${this.addQuery(query)}`;
|
|
764
764
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
765
765
|
}
|
|
766
766
|
/**
|
|
@@ -768,7 +768,7 @@ class DmResource extends BaseResource {
|
|
|
768
768
|
* accepts query with optional pagination/filtering params
|
|
769
769
|
*/
|
|
770
770
|
listEveryone(query, customHeaders = {}) {
|
|
771
|
-
const path = `/
|
|
771
|
+
const path = `/dm.list.everyone${this.addQuery(query)}`;
|
|
772
772
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
773
773
|
}
|
|
774
774
|
/**
|
|
@@ -776,7 +776,7 @@ class DmResource extends BaseResource {
|
|
|
776
776
|
* accepts query with roomId or username and optional pagination params
|
|
777
777
|
*/
|
|
778
778
|
members(query, customHeaders = {}) {
|
|
779
|
-
const path = `/
|
|
779
|
+
const path = `/dm.members${this.addQuery(query)}`;
|
|
780
780
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
781
781
|
}
|
|
782
782
|
/**
|
|
@@ -784,7 +784,7 @@ class DmResource extends BaseResource {
|
|
|
784
784
|
* accepts query with roomId or username and optional filtering/pagination params
|
|
785
785
|
*/
|
|
786
786
|
messages(query, customHeaders = {}) {
|
|
787
|
-
const path = `/
|
|
787
|
+
const path = `/dm.messages${this.addQuery(query)}`;
|
|
788
788
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
@@ -792,7 +792,7 @@ class DmResource extends BaseResource {
|
|
|
792
792
|
* accepts query with roomId and optional pagination/filtering params
|
|
793
793
|
*/
|
|
794
794
|
messagesOthers(query, customHeaders = {}) {
|
|
795
|
-
const path = `/
|
|
795
|
+
const path = `/dm.messages.others${this.addQuery(query)}`;
|
|
796
796
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
797
797
|
}
|
|
798
798
|
/**
|
|
@@ -800,7 +800,7 @@ class DmResource extends BaseResource {
|
|
|
800
800
|
* accepts payload with roomId
|
|
801
801
|
*/
|
|
802
802
|
open(payload, customHeaders = {}) {
|
|
803
|
-
const path = `/
|
|
803
|
+
const path = `/dm.open`;
|
|
804
804
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
805
805
|
}
|
|
806
806
|
/**
|
|
@@ -808,7 +808,7 @@ class DmResource extends BaseResource {
|
|
|
808
808
|
* accepts payload with roomId and topic
|
|
809
809
|
*/
|
|
810
810
|
setTopic(payload, customHeaders = {}) {
|
|
811
|
-
const path = `/
|
|
811
|
+
const path = `/dm.setTopic`;
|
|
812
812
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
@@ -819,7 +819,7 @@ class GroupResource extends BaseResource {
|
|
|
819
819
|
* accepts payload with roomId
|
|
820
820
|
*/
|
|
821
821
|
groupArchive(payload, customHeaders = {}) {
|
|
822
|
-
const path = `/
|
|
822
|
+
const path = `/groups.archive`;
|
|
823
823
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
824
824
|
}
|
|
825
825
|
/**
|
|
@@ -827,7 +827,7 @@ class GroupResource extends BaseResource {
|
|
|
827
827
|
* accepts payload with roomId
|
|
828
828
|
*/
|
|
829
829
|
groupClose(payload, customHeaders = {}) {
|
|
830
|
-
const path = `/
|
|
830
|
+
const path = `/groups.close`;
|
|
831
831
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
832
832
|
}
|
|
833
833
|
/**
|
|
@@ -835,7 +835,7 @@ class GroupResource extends BaseResource {
|
|
|
835
835
|
* accepts query with roomId/roomName and optional userId
|
|
836
836
|
*/
|
|
837
837
|
groupCounters(query, customHeaders = {}) {
|
|
838
|
-
const path = `/
|
|
838
|
+
const path = `/groups.counters${this.addQuery(query)}`;
|
|
839
839
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
840
840
|
}
|
|
841
841
|
/**
|
|
@@ -843,7 +843,7 @@ class GroupResource extends BaseResource {
|
|
|
843
843
|
* accepts payload with name, members, readOnly, etc.
|
|
844
844
|
*/
|
|
845
845
|
groupCreate(payload, customHeaders = {}) {
|
|
846
|
-
const path = `/
|
|
846
|
+
const path = `/groups.create`;
|
|
847
847
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
848
848
|
}
|
|
849
849
|
/**
|
|
@@ -851,7 +851,7 @@ class GroupResource extends BaseResource {
|
|
|
851
851
|
* accepts payload with roomId or roomName
|
|
852
852
|
*/
|
|
853
853
|
groupDelete(payload, customHeaders = {}) {
|
|
854
|
-
const path = `/
|
|
854
|
+
const path = `/groups.delete`;
|
|
855
855
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
856
856
|
}
|
|
857
857
|
/**
|
|
@@ -859,7 +859,7 @@ class GroupResource extends BaseResource {
|
|
|
859
859
|
* accepts query with roomId/roomName and pagination params
|
|
860
860
|
*/
|
|
861
861
|
groupFiles(query, customHeaders = {}) {
|
|
862
|
-
const path = `/
|
|
862
|
+
const path = `/groups.files${this.addQuery(query)}`;
|
|
863
863
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
864
864
|
}
|
|
865
865
|
/**
|
|
@@ -867,7 +867,7 @@ class GroupResource extends BaseResource {
|
|
|
867
867
|
* accepts query with roomId/roomName and pagination/filtering params
|
|
868
868
|
*/
|
|
869
869
|
groupHistory(query, customHeaders = {}) {
|
|
870
|
-
const path = `/
|
|
870
|
+
const path = `/groups.history${this.addQuery(query)}`;
|
|
871
871
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
872
872
|
}
|
|
873
873
|
/**
|
|
@@ -875,7 +875,7 @@ class GroupResource extends BaseResource {
|
|
|
875
875
|
* accepts query with roomId or roomName
|
|
876
876
|
*/
|
|
877
877
|
groupInfo(query, customHeaders = {}) {
|
|
878
|
-
const path = `/
|
|
878
|
+
const path = `/groups.info${this.addQuery(query)}`;
|
|
879
879
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
880
880
|
}
|
|
881
881
|
/**
|
|
@@ -883,7 +883,7 @@ class GroupResource extends BaseResource {
|
|
|
883
883
|
* accepts payload with roomId and userId(s)
|
|
884
884
|
*/
|
|
885
885
|
groupInvite(payload, customHeaders = {}) {
|
|
886
|
-
const path = `/
|
|
886
|
+
const path = `/groups.invite`;
|
|
887
887
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
888
888
|
}
|
|
889
889
|
/**
|
|
@@ -891,7 +891,7 @@ class GroupResource extends BaseResource {
|
|
|
891
891
|
* accepts payload with roomId and userId
|
|
892
892
|
*/
|
|
893
893
|
groupKick(payload, customHeaders = {}) {
|
|
894
|
-
const path = `/
|
|
894
|
+
const path = `/groups.kick`;
|
|
895
895
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
896
896
|
}
|
|
897
897
|
/**
|
|
@@ -899,7 +899,7 @@ class GroupResource extends BaseResource {
|
|
|
899
899
|
* accepts payload with roomId
|
|
900
900
|
*/
|
|
901
901
|
groupLeave(payload, customHeaders = {}) {
|
|
902
|
-
const path = `/
|
|
902
|
+
const path = `/groups.leave`;
|
|
903
903
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
904
904
|
}
|
|
905
905
|
/**
|
|
@@ -907,7 +907,7 @@ class GroupResource extends BaseResource {
|
|
|
907
907
|
* accepts query with pagination params
|
|
908
908
|
*/
|
|
909
909
|
groupList(query, customHeaders = {}) {
|
|
910
|
-
const path = `/
|
|
910
|
+
const path = `/groups.list${this.addQuery(query)}`;
|
|
911
911
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
912
912
|
}
|
|
913
913
|
/**
|
|
@@ -915,7 +915,7 @@ class GroupResource extends BaseResource {
|
|
|
915
915
|
* accepts query with pagination params
|
|
916
916
|
*/
|
|
917
917
|
groupListAll(query, customHeaders = {}) {
|
|
918
|
-
const path = `/
|
|
918
|
+
const path = `/groups.listAll${this.addQuery(query)}`;
|
|
919
919
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
920
920
|
}
|
|
921
921
|
/**
|
|
@@ -923,7 +923,7 @@ class GroupResource extends BaseResource {
|
|
|
923
923
|
* accepts query with roomId/roomName and pagination/filtering params
|
|
924
924
|
*/
|
|
925
925
|
groupMembers(query, customHeaders = {}) {
|
|
926
|
-
const path = `/
|
|
926
|
+
const path = `/groups.members${this.addQuery(query)}`;
|
|
927
927
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
928
928
|
}
|
|
929
929
|
/**
|
|
@@ -931,7 +931,7 @@ class GroupResource extends BaseResource {
|
|
|
931
931
|
* accepts query with roomId and pagination/filtering params
|
|
932
932
|
*/
|
|
933
933
|
groupMessages(query, customHeaders = {}) {
|
|
934
|
-
const path = `/
|
|
934
|
+
const path = `/groups.messages${this.addQuery(query)}`;
|
|
935
935
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
936
936
|
}
|
|
937
937
|
/**
|
|
@@ -939,7 +939,7 @@ class GroupResource extends BaseResource {
|
|
|
939
939
|
* accepts query with roomId or roomName
|
|
940
940
|
*/
|
|
941
941
|
groupModerators(query, customHeaders = {}) {
|
|
942
|
-
const path = `/
|
|
942
|
+
const path = `/groups.moderators${this.addQuery(query)}`;
|
|
943
943
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
944
944
|
}
|
|
945
945
|
/**
|
|
@@ -947,7 +947,7 @@ class GroupResource extends BaseResource {
|
|
|
947
947
|
* accepts payload with roomId
|
|
948
948
|
*/
|
|
949
949
|
groupOpen(payload, customHeaders = {}) {
|
|
950
|
-
const path = `/
|
|
950
|
+
const path = `/groups.open`;
|
|
951
951
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
952
952
|
}
|
|
953
953
|
/**
|
|
@@ -955,7 +955,7 @@ class GroupResource extends BaseResource {
|
|
|
955
955
|
* accepts payload with roomId and activeUsersOnly flag
|
|
956
956
|
*/
|
|
957
957
|
groupAddAll(payload, customHeaders = {}) {
|
|
958
|
-
const path = `/
|
|
958
|
+
const path = `/groups.addAll`;
|
|
959
959
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
960
960
|
}
|
|
961
961
|
/**
|
|
@@ -963,7 +963,7 @@ class GroupResource extends BaseResource {
|
|
|
963
963
|
* accepts payload with roomId and userId
|
|
964
964
|
*/
|
|
965
965
|
groupAddLeader(payload, customHeaders = {}) {
|
|
966
|
-
const path = `/
|
|
966
|
+
const path = `/groups.addLeader`;
|
|
967
967
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
968
968
|
}
|
|
969
969
|
/**
|
|
@@ -971,7 +971,7 @@ class GroupResource extends BaseResource {
|
|
|
971
971
|
* accepts payload with roomId and userId
|
|
972
972
|
*/
|
|
973
973
|
groupAddModerator(payload, customHeaders = {}) {
|
|
974
|
-
const path = `/
|
|
974
|
+
const path = `/groups.addModerator`;
|
|
975
975
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
976
976
|
}
|
|
977
977
|
/**
|
|
@@ -979,7 +979,7 @@ class GroupResource extends BaseResource {
|
|
|
979
979
|
* accepts payload with roomId and userId
|
|
980
980
|
*/
|
|
981
981
|
groupAddOwner(payload, customHeaders = {}) {
|
|
982
|
-
const path = `/
|
|
982
|
+
const path = `/groups.addOwner`;
|
|
983
983
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
984
984
|
}
|
|
985
985
|
/**
|
|
@@ -987,7 +987,7 @@ class GroupResource extends BaseResource {
|
|
|
987
987
|
* accepts payload with roomId and userId
|
|
988
988
|
*/
|
|
989
989
|
groupRemoveLeader(payload, customHeaders = {}) {
|
|
990
|
-
const path = `/
|
|
990
|
+
const path = `/groups.removeLeader`;
|
|
991
991
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
992
992
|
}
|
|
993
993
|
/**
|
|
@@ -995,7 +995,7 @@ class GroupResource extends BaseResource {
|
|
|
995
995
|
* accepts payload with roomId and userId
|
|
996
996
|
*/
|
|
997
997
|
groupRemoveModerator(payload, customHeaders = {}) {
|
|
998
|
-
const path = `/
|
|
998
|
+
const path = `/groups.removeModerator`;
|
|
999
999
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1000
1000
|
}
|
|
1001
1001
|
/**
|
|
@@ -1003,7 +1003,7 @@ class GroupResource extends BaseResource {
|
|
|
1003
1003
|
* accepts payload with roomId and userId
|
|
1004
1004
|
*/
|
|
1005
1005
|
groupRemoveOwner(payload, customHeaders = {}) {
|
|
1006
|
-
const path = `/
|
|
1006
|
+
const path = `/groups.removeOwner`;
|
|
1007
1007
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1008
1008
|
}
|
|
1009
1009
|
/**
|
|
@@ -1011,7 +1011,7 @@ class GroupResource extends BaseResource {
|
|
|
1011
1011
|
* accepts payload with roomId and name
|
|
1012
1012
|
*/
|
|
1013
1013
|
groupRename(payload, customHeaders = {}) {
|
|
1014
|
-
const path = `/
|
|
1014
|
+
const path = `/groups.rename`;
|
|
1015
1015
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1016
1016
|
}
|
|
1017
1017
|
/**
|
|
@@ -1019,7 +1019,7 @@ class GroupResource extends BaseResource {
|
|
|
1019
1019
|
* accepts payload with roomId and announcement
|
|
1020
1020
|
*/
|
|
1021
1021
|
groupSetAnnouncement(payload, customHeaders = {}) {
|
|
1022
|
-
const path = `/
|
|
1022
|
+
const path = `/groups.setAnnouncement`;
|
|
1023
1023
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1024
1024
|
}
|
|
1025
1025
|
/**
|
|
@@ -1027,7 +1027,7 @@ class GroupResource extends BaseResource {
|
|
|
1027
1027
|
* accepts payload with roomId and description
|
|
1028
1028
|
*/
|
|
1029
1029
|
groupSetDescription(payload, customHeaders = {}) {
|
|
1030
|
-
const path = `/
|
|
1030
|
+
const path = `/groups.setDescription`;
|
|
1031
1031
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1032
1032
|
}
|
|
1033
1033
|
/**
|
|
@@ -1035,7 +1035,7 @@ class GroupResource extends BaseResource {
|
|
|
1035
1035
|
* accepts payload with roomId and purpose
|
|
1036
1036
|
*/
|
|
1037
1037
|
groupSetPurpose(payload, customHeaders = {}) {
|
|
1038
|
-
const path = `/
|
|
1038
|
+
const path = `/groups.setPurpose`;
|
|
1039
1039
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1040
1040
|
}
|
|
1041
1041
|
/**
|
|
@@ -1043,7 +1043,7 @@ class GroupResource extends BaseResource {
|
|
|
1043
1043
|
* accepts payload with roomId and readOnly flag
|
|
1044
1044
|
*/
|
|
1045
1045
|
groupSetReadOnly(payload, customHeaders = {}) {
|
|
1046
|
-
const path = `/
|
|
1046
|
+
const path = `/groups.setReadOnly`;
|
|
1047
1047
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1048
1048
|
}
|
|
1049
1049
|
/**
|
|
@@ -1051,7 +1051,7 @@ class GroupResource extends BaseResource {
|
|
|
1051
1051
|
* accepts payload with roomId and topic
|
|
1052
1052
|
*/
|
|
1053
1053
|
groupSetTopic(payload, customHeaders = {}) {
|
|
1054
|
-
const path = `/
|
|
1054
|
+
const path = `/groups.setTopic`;
|
|
1055
1055
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1056
1056
|
}
|
|
1057
1057
|
/**
|
|
@@ -1059,7 +1059,7 @@ class GroupResource extends BaseResource {
|
|
|
1059
1059
|
* accepts payload with roomId and type
|
|
1060
1060
|
*/
|
|
1061
1061
|
groupSetType(payload, customHeaders = {}) {
|
|
1062
|
-
const path = `/
|
|
1062
|
+
const path = `/groups.setType`;
|
|
1063
1063
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1064
1064
|
}
|
|
1065
1065
|
/**
|
|
@@ -1067,7 +1067,7 @@ class GroupResource extends BaseResource {
|
|
|
1067
1067
|
* accepts payload with roomId
|
|
1068
1068
|
*/
|
|
1069
1069
|
groupUnarchive(payload, customHeaders = {}) {
|
|
1070
|
-
const path = `/
|
|
1070
|
+
const path = `/groups.unarchive`;
|
|
1071
1071
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1072
1072
|
}
|
|
1073
1073
|
/**
|
|
@@ -1075,7 +1075,7 @@ class GroupResource extends BaseResource {
|
|
|
1075
1075
|
* accepts query with roomId and pagination params
|
|
1076
1076
|
*/
|
|
1077
1077
|
groupGetIntegrations(query, customHeaders = {}) {
|
|
1078
|
-
const path = `/
|
|
1078
|
+
const path = `/groups.getIntegrations${this.addQuery(query)}`;
|
|
1079
1079
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1080
1080
|
}
|
|
1081
1081
|
/**
|
|
@@ -1083,7 +1083,7 @@ class GroupResource extends BaseResource {
|
|
|
1083
1083
|
* accepts payload with roomId
|
|
1084
1084
|
*/
|
|
1085
1085
|
groupConvertToTeam(payload, customHeaders = {}) {
|
|
1086
|
-
const path = `/
|
|
1086
|
+
const path = `/groups.convertToTeam`;
|
|
1087
1087
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
@@ -1094,7 +1094,7 @@ class InviteResource extends BaseResource {
|
|
|
1094
1094
|
* accepts payload with rid and invite options
|
|
1095
1095
|
*/
|
|
1096
1096
|
findOrCreateInvite(payload, customHeaders = {}) {
|
|
1097
|
-
const path = `/
|
|
1097
|
+
const path = `/findOrCreateInvite`;
|
|
1098
1098
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1099
1099
|
}
|
|
1100
1100
|
/**
|
|
@@ -1102,7 +1102,7 @@ class InviteResource extends BaseResource {
|
|
|
1102
1102
|
* accepts query (may be empty)
|
|
1103
1103
|
*/
|
|
1104
1104
|
listInvites(query, customHeaders = {}) {
|
|
1105
|
-
const path = `/
|
|
1105
|
+
const path = `/listInvites${this.addQuery(query)}`;
|
|
1106
1106
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1107
1107
|
}
|
|
1108
1108
|
/**
|
|
@@ -1110,7 +1110,7 @@ class InviteResource extends BaseResource {
|
|
|
1110
1110
|
* accepts payload with token
|
|
1111
1111
|
*/
|
|
1112
1112
|
useInvite(payload, customHeaders = {}) {
|
|
1113
|
-
const path = `/
|
|
1113
|
+
const path = `/useInvite`;
|
|
1114
1114
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1115
1115
|
}
|
|
1116
1116
|
/**
|
|
@@ -1118,7 +1118,7 @@ class InviteResource extends BaseResource {
|
|
|
1118
1118
|
* accepts payload with token
|
|
1119
1119
|
*/
|
|
1120
1120
|
validateInviteToken(payload, customHeaders = {}) {
|
|
1121
|
-
const path = `/
|
|
1121
|
+
const path = `/validateInviteToken`;
|
|
1122
1122
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
@@ -1134,7 +1134,7 @@ class MessagingResource extends BaseResource {
|
|
|
1134
1134
|
* accepts payload with roomId, msgId, and optional asUser
|
|
1135
1135
|
*/
|
|
1136
1136
|
delete(payload, customHeaders = {}) {
|
|
1137
|
-
const path = `/
|
|
1137
|
+
const path = `/chat.delete`;
|
|
1138
1138
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
@@ -1142,7 +1142,7 @@ class MessagingResource extends BaseResource {
|
|
|
1142
1142
|
* accepts payload with messageId, emoji or reaction, and shouldReact
|
|
1143
1143
|
*/
|
|
1144
1144
|
react(payload, customHeaders = {}) {
|
|
1145
|
-
const path = `/
|
|
1145
|
+
const path = `/chat.react`;
|
|
1146
1146
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1147
1147
|
}
|
|
1148
1148
|
/**
|
|
@@ -1150,7 +1150,7 @@ class MessagingResource extends BaseResource {
|
|
|
1150
1150
|
* accepts payload with roomId, msgId, text, and optional previewUrls and customFields
|
|
1151
1151
|
*/
|
|
1152
1152
|
update(payload, customHeaders = {}) {
|
|
1153
|
-
const path = `/
|
|
1153
|
+
const path = `/chat.update`;
|
|
1154
1154
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1155
1155
|
}
|
|
1156
1156
|
/**
|
|
@@ -1158,7 +1158,7 @@ class MessagingResource extends BaseResource {
|
|
|
1158
1158
|
* accepts payload with messageId and description
|
|
1159
1159
|
*/
|
|
1160
1160
|
reportMessage(payload, customHeaders = {}) {
|
|
1161
|
-
const path = `/
|
|
1161
|
+
const path = `/chat.reportMessage`;
|
|
1162
1162
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1163
1163
|
}
|
|
1164
1164
|
/**
|
|
@@ -1166,7 +1166,7 @@ class MessagingResource extends BaseResource {
|
|
|
1166
1166
|
* accepts payload with mid (message ID)
|
|
1167
1167
|
*/
|
|
1168
1168
|
followMessage(payload, customHeaders = {}) {
|
|
1169
|
-
const path = `/
|
|
1169
|
+
const path = `/chat.followMessage`;
|
|
1170
1170
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1171
1171
|
}
|
|
1172
1172
|
/**
|
|
@@ -1174,7 +1174,7 @@ class MessagingResource extends BaseResource {
|
|
|
1174
1174
|
* accepts query with msgId
|
|
1175
1175
|
*/
|
|
1176
1176
|
getMessage(query, customHeaders = {}) {
|
|
1177
|
-
const path = `/
|
|
1177
|
+
const path = `/chat.getMessage${this.addQuery(query)}`;
|
|
1178
1178
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1179
1179
|
}
|
|
1180
1180
|
/**
|
|
@@ -1182,7 +1182,7 @@ class MessagingResource extends BaseResource {
|
|
|
1182
1182
|
* accepts query with rid and optional pagination/filtering params
|
|
1183
1183
|
*/
|
|
1184
1184
|
getThreadsList(query, customHeaders = {}) {
|
|
1185
|
-
const path = `/
|
|
1185
|
+
const path = `/chat.getThreadsList${this.addQuery(query)}`;
|
|
1186
1186
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1187
1187
|
}
|
|
1188
1188
|
/**
|
|
@@ -1190,7 +1190,7 @@ class MessagingResource extends BaseResource {
|
|
|
1190
1190
|
* accepts query with roomId, since date, and optional pagination params
|
|
1191
1191
|
*/
|
|
1192
1192
|
getDeletedMessages(query, customHeaders = {}) {
|
|
1193
|
-
const path = `/
|
|
1193
|
+
const path = `/chat.getDeletedMessages${this.addQuery(query)}`;
|
|
1194
1194
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1195
1195
|
}
|
|
1196
1196
|
/**
|
|
@@ -1198,7 +1198,7 @@ class MessagingResource extends BaseResource {
|
|
|
1198
1198
|
* accepts query with roomId and optional pagination/filtering params
|
|
1199
1199
|
*/
|
|
1200
1200
|
getDiscussions(query, customHeaders = {}) {
|
|
1201
|
-
const path = `/
|
|
1201
|
+
const path = `/chat.getDiscussions${this.addQuery(query)}`;
|
|
1202
1202
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1203
1203
|
}
|
|
1204
1204
|
/**
|
|
@@ -1206,7 +1206,7 @@ class MessagingResource extends BaseResource {
|
|
|
1206
1206
|
* accepts query with roomId and optional pagination params
|
|
1207
1207
|
*/
|
|
1208
1208
|
getMentionedMessages(query, customHeaders = {}) {
|
|
1209
|
-
const path = `/
|
|
1209
|
+
const path = `/chat.getMentionedMessages${this.addQuery(query)}`;
|
|
1210
1210
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1211
1211
|
}
|
|
1212
1212
|
/**
|
|
@@ -1214,7 +1214,7 @@ class MessagingResource extends BaseResource {
|
|
|
1214
1214
|
* accepts query with messageId and optional pagination params
|
|
1215
1215
|
*/
|
|
1216
1216
|
getMessageReadReceipts(query, customHeaders = {}) {
|
|
1217
|
-
const path = `/
|
|
1217
|
+
const path = `/chat.getMessageReadReceipts${this.addQuery(query)}`;
|
|
1218
1218
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1219
1219
|
}
|
|
1220
1220
|
/**
|
|
@@ -1222,7 +1222,7 @@ class MessagingResource extends BaseResource {
|
|
|
1222
1222
|
* accepts query with roomId and optional pagination params
|
|
1223
1223
|
*/
|
|
1224
1224
|
getPinnedMessages(query, customHeaders = {}) {
|
|
1225
|
-
const path = `/
|
|
1225
|
+
const path = `/chat.getPinnedMessages${this.addQuery(query)}`;
|
|
1226
1226
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1227
1227
|
}
|
|
1228
1228
|
/**
|
|
@@ -1230,7 +1230,7 @@ class MessagingResource extends BaseResource {
|
|
|
1230
1230
|
* accepts query with roomId and optional pagination params
|
|
1231
1231
|
*/
|
|
1232
1232
|
getStarredMessages(query, customHeaders = {}) {
|
|
1233
|
-
const path = `/
|
|
1233
|
+
const path = `/chat.getStarredMessages${this.addQuery(query)}`;
|
|
1234
1234
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1235
1235
|
}
|
|
1236
1236
|
/**
|
|
@@ -1238,7 +1238,7 @@ class MessagingResource extends BaseResource {
|
|
|
1238
1238
|
* accepts query with tmid and optional pagination/filtering params
|
|
1239
1239
|
*/
|
|
1240
1240
|
getThreadMessages(query, customHeaders = {}) {
|
|
1241
|
-
const path = `/
|
|
1241
|
+
const path = `/chat.getThreadMessages${this.addQuery(query)}`;
|
|
1242
1242
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1243
1243
|
}
|
|
1244
1244
|
/**
|
|
@@ -1246,7 +1246,7 @@ class MessagingResource extends BaseResource {
|
|
|
1246
1246
|
* accepts query with rid, userId, and ignore flag
|
|
1247
1247
|
*/
|
|
1248
1248
|
ignoreUser(query, customHeaders = {}) {
|
|
1249
|
-
const path = `/
|
|
1249
|
+
const path = `/chat.ignoreUser${this.addQuery(query)}`;
|
|
1250
1250
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1251
1251
|
}
|
|
1252
1252
|
/**
|
|
@@ -1254,7 +1254,7 @@ class MessagingResource extends BaseResource {
|
|
|
1254
1254
|
* accepts payload with messageId
|
|
1255
1255
|
*/
|
|
1256
1256
|
pinMessage(payload, customHeaders = {}) {
|
|
1257
|
-
const path = `/
|
|
1257
|
+
const path = `/chat.pinMessage`;
|
|
1258
1258
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1259
1259
|
}
|
|
1260
1260
|
/**
|
|
@@ -1262,7 +1262,7 @@ class MessagingResource extends BaseResource {
|
|
|
1262
1262
|
* accepts payload with messageId
|
|
1263
1263
|
*/
|
|
1264
1264
|
unPinMessage(payload, customHeaders = {}) {
|
|
1265
|
-
const path = `/
|
|
1265
|
+
const path = `/chat.unPinMessage`;
|
|
1266
1266
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1267
1267
|
}
|
|
1268
1268
|
/**
|
|
@@ -1270,7 +1270,7 @@ class MessagingResource extends BaseResource {
|
|
|
1270
1270
|
* accepts payload with roomId or channel, text, and optional attachments, alias, etc.
|
|
1271
1271
|
*/
|
|
1272
1272
|
postMessage(payload, customHeaders = {}) {
|
|
1273
|
-
const path = `/
|
|
1273
|
+
const path = `/chat.postMessage`;
|
|
1274
1274
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1275
1275
|
}
|
|
1276
1276
|
/**
|
|
@@ -1278,7 +1278,7 @@ class MessagingResource extends BaseResource {
|
|
|
1278
1278
|
* accepts payload with message object and optional previewUrls
|
|
1279
1279
|
*/
|
|
1280
1280
|
sendMessage(payload, customHeaders = {}) {
|
|
1281
|
-
const path = `/
|
|
1281
|
+
const path = `/chat.sendMessage`;
|
|
1282
1282
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1283
1283
|
}
|
|
1284
1284
|
/**
|
|
@@ -1286,7 +1286,7 @@ class MessagingResource extends BaseResource {
|
|
|
1286
1286
|
* accepts payload with messageId
|
|
1287
1287
|
*/
|
|
1288
1288
|
starMessage(payload, customHeaders = {}) {
|
|
1289
|
-
const path = `/
|
|
1289
|
+
const path = `/chat.starMessage`;
|
|
1290
1290
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1291
1291
|
}
|
|
1292
1292
|
/**
|
|
@@ -1294,7 +1294,7 @@ class MessagingResource extends BaseResource {
|
|
|
1294
1294
|
* accepts payload with messageId
|
|
1295
1295
|
*/
|
|
1296
1296
|
unStarMessage(payload, customHeaders = {}) {
|
|
1297
|
-
const path = `/
|
|
1297
|
+
const path = `/chat.unStarMessage`;
|
|
1298
1298
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1299
1299
|
}
|
|
1300
1300
|
/**
|
|
@@ -1302,7 +1302,7 @@ class MessagingResource extends BaseResource {
|
|
|
1302
1302
|
* accepts query with rid, updatedSince, and optional filtering params
|
|
1303
1303
|
*/
|
|
1304
1304
|
syncThreadsList(query, customHeaders = {}) {
|
|
1305
|
-
const path = `/
|
|
1305
|
+
const path = `/chat.syncThreadsList${this.addQuery(query)}`;
|
|
1306
1306
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1307
1307
|
}
|
|
1308
1308
|
/**
|
|
@@ -1310,7 +1310,7 @@ class MessagingResource extends BaseResource {
|
|
|
1310
1310
|
* accepts query with updatedSince, tmid, and optional pagination/filtering params
|
|
1311
1311
|
*/
|
|
1312
1312
|
syncThreadMessages(query, customHeaders = {}) {
|
|
1313
|
-
const path = `/
|
|
1313
|
+
const path = `/chat.syncThreadMessages${this.addQuery(query)}`;
|
|
1314
1314
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1315
1315
|
}
|
|
1316
1316
|
/**
|
|
@@ -1318,7 +1318,7 @@ class MessagingResource extends BaseResource {
|
|
|
1318
1318
|
* accepts query with roomId and optional sync/pagination params
|
|
1319
1319
|
*/
|
|
1320
1320
|
syncMessages(query, customHeaders = {}) {
|
|
1321
|
-
const path = `/
|
|
1321
|
+
const path = `/chat.syncMessages${this.addQuery(query)}`;
|
|
1322
1322
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1323
1323
|
}
|
|
1324
1324
|
/**
|
|
@@ -1326,7 +1326,7 @@ class MessagingResource extends BaseResource {
|
|
|
1326
1326
|
* accepts query with roomId and url
|
|
1327
1327
|
*/
|
|
1328
1328
|
getURLPreview(query, customHeaders = {}) {
|
|
1329
|
-
const path = `/
|
|
1329
|
+
const path = `/chat.getURLPreview${this.addQuery(query)}`;
|
|
1330
1330
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1331
1331
|
}
|
|
1332
1332
|
// DM endpoints
|
|
@@ -1335,7 +1335,7 @@ class MessagingResource extends BaseResource {
|
|
|
1335
1335
|
* accepts payload with roomId
|
|
1336
1336
|
*/
|
|
1337
1337
|
dmClose(payload, customHeaders = {}) {
|
|
1338
|
-
const path = `/
|
|
1338
|
+
const path = `/dm.close`;
|
|
1339
1339
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1340
1340
|
}
|
|
1341
1341
|
/**
|
|
@@ -1343,7 +1343,7 @@ class MessagingResource extends BaseResource {
|
|
|
1343
1343
|
* accepts query with roomId and optional userId
|
|
1344
1344
|
*/
|
|
1345
1345
|
dmCounters(query, customHeaders = {}) {
|
|
1346
|
-
const path = `/
|
|
1346
|
+
const path = `/dm.counters${this.addQuery(query)}`;
|
|
1347
1347
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1348
1348
|
}
|
|
1349
1349
|
/**
|
|
@@ -1351,7 +1351,7 @@ class MessagingResource extends BaseResource {
|
|
|
1351
1351
|
* accepts payload with username, usernames, or excludeSelf
|
|
1352
1352
|
*/
|
|
1353
1353
|
dmCreate(payload, customHeaders = {}) {
|
|
1354
|
-
const path = `/
|
|
1354
|
+
const path = `/dm.create`;
|
|
1355
1355
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1356
1356
|
}
|
|
1357
1357
|
/**
|
|
@@ -1359,7 +1359,7 @@ class MessagingResource extends BaseResource {
|
|
|
1359
1359
|
* accepts payload with roomId or username
|
|
1360
1360
|
*/
|
|
1361
1361
|
dmDelete(payload, customHeaders = {}) {
|
|
1362
|
-
const path = `/
|
|
1362
|
+
const path = `/dm.delete`;
|
|
1363
1363
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1364
1364
|
}
|
|
1365
1365
|
/**
|
|
@@ -1367,7 +1367,7 @@ class MessagingResource extends BaseResource {
|
|
|
1367
1367
|
* accepts query with roomId or username and optional pagination/filtering params
|
|
1368
1368
|
*/
|
|
1369
1369
|
dmFiles(query, customHeaders = {}) {
|
|
1370
|
-
const path = `/
|
|
1370
|
+
const path = `/dm.files${this.addQuery(query)}`;
|
|
1371
1371
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1372
1372
|
}
|
|
1373
1373
|
/**
|
|
@@ -1375,7 +1375,7 @@ class MessagingResource extends BaseResource {
|
|
|
1375
1375
|
* accepts query with roomId or username and optional pagination/filtering params
|
|
1376
1376
|
*/
|
|
1377
1377
|
dmHistory(query, customHeaders = {}) {
|
|
1378
|
-
const path = `/
|
|
1378
|
+
const path = `/dm.history${this.addQuery(query)}`;
|
|
1379
1379
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1380
1380
|
}
|
|
1381
1381
|
/**
|
|
@@ -1383,7 +1383,7 @@ class MessagingResource extends BaseResource {
|
|
|
1383
1383
|
* accepts query with optional pagination/filtering params
|
|
1384
1384
|
*/
|
|
1385
1385
|
dmListEveryone(query, customHeaders = {}) {
|
|
1386
|
-
const path = `/
|
|
1386
|
+
const path = `/dm.list.everyone${this.addQuery(query)}`;
|
|
1387
1387
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1388
1388
|
}
|
|
1389
1389
|
/**
|
|
@@ -1391,7 +1391,7 @@ class MessagingResource extends BaseResource {
|
|
|
1391
1391
|
* accepts query with roomId or username and optional pagination params
|
|
1392
1392
|
*/
|
|
1393
1393
|
dmMembers(query, customHeaders = {}) {
|
|
1394
|
-
const path = `/
|
|
1394
|
+
const path = `/dm.members${this.addQuery(query)}`;
|
|
1395
1395
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1396
1396
|
}
|
|
1397
1397
|
/**
|
|
@@ -1399,7 +1399,7 @@ class MessagingResource extends BaseResource {
|
|
|
1399
1399
|
* accepts query with roomId or username and optional filtering/pagination params
|
|
1400
1400
|
*/
|
|
1401
1401
|
dmMessages(query, customHeaders = {}) {
|
|
1402
|
-
const path = `/
|
|
1402
|
+
const path = `/dm.messages${this.addQuery(query)}`;
|
|
1403
1403
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1404
1404
|
}
|
|
1405
1405
|
/**
|
|
@@ -1407,7 +1407,7 @@ class MessagingResource extends BaseResource {
|
|
|
1407
1407
|
* accepts query with roomId and optional pagination/filtering params
|
|
1408
1408
|
*/
|
|
1409
1409
|
dmMessagesOthers(query, customHeaders = {}) {
|
|
1410
|
-
const path = `/
|
|
1410
|
+
const path = `/dm.messages.others${this.addQuery(query)}`;
|
|
1411
1411
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1412
1412
|
}
|
|
1413
1413
|
/**
|
|
@@ -1415,7 +1415,7 @@ class MessagingResource extends BaseResource {
|
|
|
1415
1415
|
* accepts payload with roomId
|
|
1416
1416
|
*/
|
|
1417
1417
|
dmOpen(payload, customHeaders = {}) {
|
|
1418
|
-
const path = `/
|
|
1418
|
+
const path = `/dm.open`;
|
|
1419
1419
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1420
1420
|
}
|
|
1421
1421
|
/**
|
|
@@ -1423,7 +1423,7 @@ class MessagingResource extends BaseResource {
|
|
|
1423
1423
|
* accepts payload with roomId and topic
|
|
1424
1424
|
*/
|
|
1425
1425
|
dmSetTopic(payload, customHeaders = {}) {
|
|
1426
|
-
const path = `/
|
|
1426
|
+
const path = `/dm.setTopic`;
|
|
1427
1427
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
@@ -1436,7 +1436,7 @@ class MethodCallResource extends BaseResource {
|
|
|
1436
1436
|
* accepts payload with message containing method details
|
|
1437
1437
|
*/
|
|
1438
1438
|
loadHistory(payload, customHeaders = {}) {
|
|
1439
|
-
const path = `/
|
|
1439
|
+
const path = `/method.call/loadHistory`;
|
|
1440
1440
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
@@ -1447,7 +1447,7 @@ class RoomResource extends BaseResource {
|
|
|
1447
1447
|
* accepts query with optional types filter
|
|
1448
1448
|
*/
|
|
1449
1449
|
roomAdminRooms(query, customHeaders = {}) {
|
|
1450
|
-
const path = `/
|
|
1450
|
+
const path = `/rooms.adminRooms${this.addQuery(query)}`;
|
|
1451
1451
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1452
1452
|
}
|
|
1453
1453
|
/**
|
|
@@ -1455,7 +1455,7 @@ class RoomResource extends BaseResource {
|
|
|
1455
1455
|
* accepts payload with roomId and history cleaning options
|
|
1456
1456
|
*/
|
|
1457
1457
|
roomCleanHistory(payload, customHeaders = {}) {
|
|
1458
|
-
const path = `/
|
|
1458
|
+
const path = `/rooms.cleanHistory`;
|
|
1459
1459
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1460
1460
|
}
|
|
1461
1461
|
/**
|
|
@@ -1463,7 +1463,7 @@ class RoomResource extends BaseResource {
|
|
|
1463
1463
|
* accepts query with roomId/roomName and optional fields
|
|
1464
1464
|
*/
|
|
1465
1465
|
roomInfo(query, customHeaders = {}) {
|
|
1466
|
-
const path = `/
|
|
1466
|
+
const path = `/rooms.info${this.addQuery(query)}`;
|
|
1467
1467
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1468
1468
|
}
|
|
1469
1469
|
/**
|
|
@@ -1471,7 +1471,7 @@ class RoomResource extends BaseResource {
|
|
|
1471
1471
|
* accepts query with roomId/roomName and pagination params
|
|
1472
1472
|
*/
|
|
1473
1473
|
roomGetDiscussions(query, customHeaders = {}) {
|
|
1474
|
-
const path = `/
|
|
1474
|
+
const path = `/rooms.getDiscussions${this.addQuery(query)}`;
|
|
1475
1475
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1476
1476
|
}
|
|
1477
1477
|
/**
|
|
@@ -1479,7 +1479,7 @@ class RoomResource extends BaseResource {
|
|
|
1479
1479
|
* accepts query with pagination and fields params
|
|
1480
1480
|
*/
|
|
1481
1481
|
roomGet(query, customHeaders = {}) {
|
|
1482
|
-
const path = `/
|
|
1482
|
+
const path = `/rooms.get${this.addQuery(query)}`;
|
|
1483
1483
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1484
1484
|
}
|
|
1485
1485
|
/**
|
|
@@ -1487,7 +1487,7 @@ class RoomResource extends BaseResource {
|
|
|
1487
1487
|
* accepts payload with roomId
|
|
1488
1488
|
*/
|
|
1489
1489
|
roomLeave(payload, customHeaders = {}) {
|
|
1490
|
-
const path = `/
|
|
1490
|
+
const path = `/rooms.leave`;
|
|
1491
1491
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1492
1492
|
}
|
|
1493
1493
|
/**
|
|
@@ -1495,7 +1495,7 @@ class RoomResource extends BaseResource {
|
|
|
1495
1495
|
* accepts payload with roomId or roomName
|
|
1496
1496
|
*/
|
|
1497
1497
|
roomDelete(payload, customHeaders = {}) {
|
|
1498
|
-
const path = `/
|
|
1498
|
+
const path = `/rooms.delete`;
|
|
1499
1499
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1500
1500
|
}
|
|
1501
1501
|
/**
|
|
@@ -1503,7 +1503,7 @@ class RoomResource extends BaseResource {
|
|
|
1503
1503
|
* accepts payload with favorite boolean and roomId
|
|
1504
1504
|
*/
|
|
1505
1505
|
roomFavorite(payload, customHeaders = {}) {
|
|
1506
|
-
const path = `/
|
|
1506
|
+
const path = `/rooms.favorite`;
|
|
1507
1507
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1508
1508
|
}
|
|
1509
1509
|
/**
|
|
@@ -1511,7 +1511,7 @@ class RoomResource extends BaseResource {
|
|
|
1511
1511
|
* accepts query with selector string
|
|
1512
1512
|
*/
|
|
1513
1513
|
roomAutocompleteChannelAndPrivate(query, customHeaders = {}) {
|
|
1514
|
-
const path = `/
|
|
1514
|
+
const path = `/rooms.autocomplete.channelAndPrivate${this.addQuery(query)}`;
|
|
1515
1515
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1516
1516
|
}
|
|
1517
1517
|
/**
|
|
@@ -1519,7 +1519,7 @@ class RoomResource extends BaseResource {
|
|
|
1519
1519
|
* accepts query with selector string
|
|
1520
1520
|
*/
|
|
1521
1521
|
roomAutocompleteAdminRooms(query, customHeaders = {}) {
|
|
1522
|
-
const path = `/
|
|
1522
|
+
const path = `/rooms.autocomplete.adminRooms${this.addQuery(query)}`;
|
|
1523
1523
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1524
1524
|
}
|
|
1525
1525
|
/**
|
|
@@ -1527,7 +1527,7 @@ class RoomResource extends BaseResource {
|
|
|
1527
1527
|
* accepts query with rid
|
|
1528
1528
|
*/
|
|
1529
1529
|
roomAdminRoomsGetRoom(query, customHeaders = {}) {
|
|
1530
|
-
const path = `/
|
|
1530
|
+
const path = `/rooms.adminRooms.getRoom${this.addQuery(query)}`;
|
|
1531
1531
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1532
1532
|
}
|
|
1533
1533
|
/**
|
|
@@ -1535,7 +1535,7 @@ class RoomResource extends BaseResource {
|
|
|
1535
1535
|
* accepts payload with roomId and various room settings
|
|
1536
1536
|
*/
|
|
1537
1537
|
roomSaveRoomSettings(payload, customHeaders = {}) {
|
|
1538
|
-
const path = `/
|
|
1538
|
+
const path = `/rooms.saveRoomSettings`;
|
|
1539
1539
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1540
1540
|
}
|
|
1541
1541
|
/**
|
|
@@ -1543,7 +1543,7 @@ class RoomResource extends BaseResource {
|
|
|
1543
1543
|
* accepts query with roomName
|
|
1544
1544
|
*/
|
|
1545
1545
|
roomNameExists(query, customHeaders = {}) {
|
|
1546
|
-
const path = `/
|
|
1546
|
+
const path = `/rooms.nameExists${this.addQuery(query)}`;
|
|
1547
1547
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1548
1548
|
}
|
|
1549
1549
|
/**
|
|
@@ -1551,7 +1551,7 @@ class RoomResource extends BaseResource {
|
|
|
1551
1551
|
* accepts payload with rid and action
|
|
1552
1552
|
*/
|
|
1553
1553
|
roomChangeArchivationState(payload, customHeaders = {}) {
|
|
1554
|
-
const path = `/
|
|
1554
|
+
const path = `/rooms.changeArchivationState`;
|
|
1555
1555
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1556
1556
|
}
|
|
1557
1557
|
/**
|
|
@@ -1559,7 +1559,7 @@ class RoomResource extends BaseResource {
|
|
|
1559
1559
|
* accepts payload with rid, type, and export options
|
|
1560
1560
|
*/
|
|
1561
1561
|
roomExport(payload, customHeaders = {}) {
|
|
1562
|
-
const path = `/
|
|
1562
|
+
const path = `/rooms.export`;
|
|
1563
1563
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1564
1564
|
}
|
|
1565
1565
|
/**
|
|
@@ -1567,7 +1567,7 @@ class RoomResource extends BaseResource {
|
|
|
1567
1567
|
* accepts payload with roomId and userId/username
|
|
1568
1568
|
*/
|
|
1569
1569
|
roomMuteUser(payload, customHeaders = {}) {
|
|
1570
|
-
const path = `/
|
|
1570
|
+
const path = `/rooms.muteUser`;
|
|
1571
1571
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1572
1572
|
}
|
|
1573
1573
|
/**
|
|
@@ -1575,7 +1575,7 @@ class RoomResource extends BaseResource {
|
|
|
1575
1575
|
* accepts payload with roomId and userId/username
|
|
1576
1576
|
*/
|
|
1577
1577
|
roomUnmuteUser(payload, customHeaders = {}) {
|
|
1578
|
-
const path = `/
|
|
1578
|
+
const path = `/rooms.unmuteUser`;
|
|
1579
1579
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1580
1580
|
}
|
|
1581
1581
|
/**
|
|
@@ -1583,7 +1583,7 @@ class RoomResource extends BaseResource {
|
|
|
1583
1583
|
* accepts query with roomId/roomName and pagination params
|
|
1584
1584
|
*/
|
|
1585
1585
|
roomImages(query, customHeaders = {}) {
|
|
1586
|
-
const path = `/
|
|
1586
|
+
const path = `/rooms.images${this.addQuery(query)}`;
|
|
1587
1587
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1588
1588
|
}
|
|
1589
1589
|
/**
|
|
@@ -1591,7 +1591,7 @@ class RoomResource extends BaseResource {
|
|
|
1591
1591
|
* accepts query with roomId and pagination params
|
|
1592
1592
|
*/
|
|
1593
1593
|
roomAuditMembers(query, customHeaders = {}) {
|
|
1594
|
-
const path = `/
|
|
1594
|
+
const path = `/audit/rooms.members${this.addQuery(query)}`;
|
|
1595
1595
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1596
1596
|
}
|
|
1597
1597
|
/**
|
|
@@ -1599,7 +1599,7 @@ class RoomResource extends BaseResource {
|
|
|
1599
1599
|
* accepts payload with roomId
|
|
1600
1600
|
*/
|
|
1601
1601
|
roomHide(payload, customHeaders = {}) {
|
|
1602
|
-
const path = `/
|
|
1602
|
+
const path = `/rooms.hide`;
|
|
1603
1603
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1604
1604
|
}
|
|
1605
1605
|
/**
|
|
@@ -1608,7 +1608,7 @@ class RoomResource extends BaseResource {
|
|
|
1608
1608
|
*/
|
|
1609
1609
|
roomMediaUpload(payload, customHeaders = {}) {
|
|
1610
1610
|
const { rid, file, msg } = payload;
|
|
1611
|
-
const path = `/
|
|
1611
|
+
const path = `/rooms.media/${rid}`;
|
|
1612
1612
|
const formData = new FormData();
|
|
1613
1613
|
formData.append("file", file);
|
|
1614
1614
|
if (msg) {
|
|
@@ -1622,7 +1622,7 @@ class RoomResource extends BaseResource {
|
|
|
1622
1622
|
*/
|
|
1623
1623
|
roomMediaConfirm(payload, customHeaders = {}) {
|
|
1624
1624
|
const { rid, fileId } = payload;
|
|
1625
|
-
const path = `/
|
|
1625
|
+
const path = `/rooms.mediaConfirm/${rid}/${fileId}`;
|
|
1626
1626
|
return this.client.request("POST", path, {}, {}, customHeaders);
|
|
1627
1627
|
}
|
|
1628
1628
|
/**
|
|
@@ -1630,7 +1630,7 @@ class RoomResource extends BaseResource {
|
|
|
1630
1630
|
* accepts query with roomId or roomName
|
|
1631
1631
|
*/
|
|
1632
1632
|
roomRoles(query, customHeaders = {}) {
|
|
1633
|
-
const path = `/
|
|
1633
|
+
const path = `/rooms.roles${this.addQuery(query)}`;
|
|
1634
1634
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1635
1635
|
}
|
|
1636
1636
|
/**
|
|
@@ -1638,7 +1638,7 @@ class RoomResource extends BaseResource {
|
|
|
1638
1638
|
* accepts query with selector and pagination params
|
|
1639
1639
|
*/
|
|
1640
1640
|
roomAutocompleteChannelAndPrivateWithPagination(query, customHeaders = {}) {
|
|
1641
|
-
const path = `/
|
|
1641
|
+
const path = `/rooms.autocomplete.channelAndPrivate.withPagination${this.addQuery(query)}`;
|
|
1642
1642
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
@@ -1649,7 +1649,7 @@ class SubscriptionResource extends BaseResource {
|
|
|
1649
1649
|
* accepts optional query with updatedSince
|
|
1650
1650
|
*/
|
|
1651
1651
|
subscriptionsGet(query, customHeaders = {}) {
|
|
1652
|
-
const path = `/
|
|
1652
|
+
const path = `/subscriptions.get${this.addQuery(query)}`;
|
|
1653
1653
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1654
1654
|
}
|
|
1655
1655
|
/**
|
|
@@ -1657,7 +1657,7 @@ class SubscriptionResource extends BaseResource {
|
|
|
1657
1657
|
* accepts payload with rid (room ID)
|
|
1658
1658
|
*/
|
|
1659
1659
|
subscriptionsRead(payload, customHeaders = {}) {
|
|
1660
|
-
const path = `/
|
|
1660
|
+
const path = `/subscriptions.read`;
|
|
1661
1661
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
@@ -1668,7 +1668,7 @@ class TeamResource extends BaseResource {
|
|
|
1668
1668
|
* accepts query with pagination params
|
|
1669
1669
|
*/
|
|
1670
1670
|
teamListAll(query, customHeaders = {}) {
|
|
1671
|
-
const path = `/
|
|
1671
|
+
const path = `/teams.listAll${this.addQuery(query)}`;
|
|
1672
1672
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1673
1673
|
}
|
|
1674
1674
|
/**
|
|
@@ -1676,7 +1676,7 @@ class TeamResource extends BaseResource {
|
|
|
1676
1676
|
* accepts query with pagination and filtering params
|
|
1677
1677
|
*/
|
|
1678
1678
|
teamList(query, customHeaders = {}) {
|
|
1679
|
-
const path = `/
|
|
1679
|
+
const path = `/teams.list${this.addQuery(query)}`;
|
|
1680
1680
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1681
1681
|
}
|
|
1682
1682
|
/**
|
|
@@ -1684,7 +1684,7 @@ class TeamResource extends BaseResource {
|
|
|
1684
1684
|
* accepts query with teamId or teamName
|
|
1685
1685
|
*/
|
|
1686
1686
|
teamInfo(query, customHeaders = {}) {
|
|
1687
|
-
const path = `/
|
|
1687
|
+
const path = `/teams.info${this.addQuery(query)}`;
|
|
1688
1688
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1689
1689
|
}
|
|
1690
1690
|
/**
|
|
@@ -1692,7 +1692,7 @@ class TeamResource extends BaseResource {
|
|
|
1692
1692
|
* accepts payload with teamId/teamName and rooms array
|
|
1693
1693
|
*/
|
|
1694
1694
|
teamAddRoom(payload, customHeaders = {}) {
|
|
1695
|
-
const path = `/
|
|
1695
|
+
const path = `/teams.addRoom`;
|
|
1696
1696
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1697
1697
|
}
|
|
1698
1698
|
/**
|
|
@@ -1700,7 +1700,7 @@ class TeamResource extends BaseResource {
|
|
|
1700
1700
|
* accepts payload with teamId/teamName and roomId
|
|
1701
1701
|
*/
|
|
1702
1702
|
teamRemoveRoom(payload, customHeaders = {}) {
|
|
1703
|
-
const path = `/
|
|
1703
|
+
const path = `/teams.removeRoom`;
|
|
1704
1704
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1705
1705
|
}
|
|
1706
1706
|
/**
|
|
@@ -1708,7 +1708,7 @@ class TeamResource extends BaseResource {
|
|
|
1708
1708
|
* accepts payload with roomId and isDefault flag
|
|
1709
1709
|
*/
|
|
1710
1710
|
teamUpdateRoom(payload, customHeaders = {}) {
|
|
1711
|
-
const path = `/
|
|
1711
|
+
const path = `/teams.updateRoom`;
|
|
1712
1712
|
return this.client.request("POST", path, payload, {}, customHeaders);
|
|
1713
1713
|
}
|
|
1714
1714
|
/**
|
|
@@ -1716,7 +1716,7 @@ class TeamResource extends BaseResource {
|
|
|
1716
1716
|
* accepts query with teamId/teamName and pagination params
|
|
1717
1717
|
*/
|
|
1718
1718
|
teamListRooms(query, customHeaders = {}) {
|
|
1719
|
-
const path = `/
|
|
1719
|
+
const path = `/teams.listRooms${this.addQuery(query)}`;
|
|
1720
1720
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1721
1721
|
}
|
|
1722
1722
|
/**
|
|
@@ -1724,7 +1724,7 @@ class TeamResource extends BaseResource {
|
|
|
1724
1724
|
* accepts query with teamId/teamName, userId, and pagination params
|
|
1725
1725
|
*/
|
|
1726
1726
|
teamListRoomsOfUser(query, customHeaders = {}) {
|
|
1727
|
-
const path = `/
|
|
1727
|
+
const path = `/teams.listRoomsOfUser${this.addQuery(query)}`;
|
|
1728
1728
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1729
1729
|
}
|
|
1730
1730
|
/**
|
|
@@ -1732,7 +1732,7 @@ class TeamResource extends BaseResource {
|
|
|
1732
1732
|
* accepts query with teamId/teamName and pagination/filtering params
|
|
1733
1733
|
*/
|
|
1734
1734
|
teamListChildren(query, customHeaders = {}) {
|
|
1735
|
-
const path = `/
|
|
1735
|
+
const path = `/teams.listChildren${this.addQuery(query)}`;
|
|
1736
1736
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
@@ -1743,7 +1743,7 @@ class ChatUserResource extends BaseResource {
|
|
|
1743
1743
|
* accepts query with optional filters, sorting, and field selection
|
|
1744
1744
|
*/
|
|
1745
1745
|
userList(query, customHeaders = {}) {
|
|
1746
|
-
const path = `/
|
|
1746
|
+
const path = `/users.list${this.addQuery(query)}`;
|
|
1747
1747
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1748
1748
|
}
|
|
1749
1749
|
/**
|
|
@@ -1752,11 +1752,11 @@ class ChatUserResource extends BaseResource {
|
|
|
1752
1752
|
*/
|
|
1753
1753
|
userPresence(userIds, customHeaders = {}) {
|
|
1754
1754
|
const query = { ids: userIds };
|
|
1755
|
-
const path = `/
|
|
1755
|
+
const path = `/users.presence${this.addQuery(query)}`;
|
|
1756
1756
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1757
1757
|
}
|
|
1758
1758
|
chatWhoAmI(customHeaders = {}) {
|
|
1759
|
-
const path = `/
|
|
1759
|
+
const path = `/me`;
|
|
1760
1760
|
return this.client.request("GET", path, {}, {}, customHeaders);
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|