@@ -90,6 +90,9 @@ import {
90
90
AppsManifestUpdateResponse ,
91
91
AppsManifestValidateResponse ,
92
92
AppsUninstallResponse ,
93
+ AssistantThreadsSetStatusResponse ,
94
+ AssistantThreadsSetSuggestedPromptsResponse ,
95
+ AssistantThreadsSetTitleResponse ,
93
96
AuthRevokeResponse ,
94
97
AuthTeamsListResponse ,
95
98
AuthTestResponse ,
@@ -553,6 +556,35 @@ export abstract class Methods extends EventEmitter<WebClientEvent> {
553
556
uninstall : bindApiCall < AppsUninstallArguments , AppsUninstallResponse > ( this , 'apps.uninstall' ) ,
554
557
} ;
555
558
559
+ public readonly assistant = {
560
+ threads : {
561
+ /**
562
+ * @description Set loading status to indicate that the app is building a response.
563
+ * @see {@link https://api.slack.com/methods/assistant.threads.setStatus `assistant.threads.setStatus` API reference }.
564
+ */
565
+ setStatus : bindApiCall < AssistantThreadsSetStatusArguments , AssistantThreadsSetStatusResponse > (
566
+ this ,
567
+ 'assistant.threads.setStatus' ,
568
+ ) ,
569
+ /**
570
+ * @description Set suggested prompts for the user. Can suggest up to four prompts.
571
+ * @see {@link https://api.slack.com/methods/assistant.threads.setSuggestedPrompts `assistant.threads.setSuggestedPrompts` API reference }.
572
+ */
573
+ setSuggestedPrompts : bindApiCall <
574
+ AssistantThreadsSetSuggestedPromptsArguments ,
575
+ AssistantThreadsSetSuggestedPromptsResponse
576
+ > ( this , 'assistant.threads.setSuggestedPrompts' ) ,
577
+ /**
578
+ * @description Set the title of the thread. This is shown when a user views the app's chat history.
579
+ * @see {@link https://api.slack.com/methods/assistant.threads.setTitle `assistant.threads.setTitle` API reference }.
580
+ */
581
+ setTitle : bindApiCall < AssistantThreadsSetTitleArguments , AssistantThreadsSetTitleResponse > (
582
+ this ,
583
+ 'assistant.threads.setTitle' ,
584
+ ) ,
585
+ } ,
586
+ } ;
587
+
556
588
public readonly auth = {
557
589
revoke : bindApiCall < AuthRevokeArguments , AuthRevokeResponse > ( this , 'auth.revoke' ) ,
558
590
teams : {
@@ -1456,6 +1488,48 @@ export interface AppsUninstallArguments extends WebAPICallOptions {
1456
1488
client_secret : string ;
1457
1489
}
1458
1490
1491
+ /*
1492
+ * `assistant.*`
1493
+ */
1494
+ // https://api.slack.com/methods/assistant.threads.setStatus
1495
+ export interface AssistantThreadsSetStatusArguments extends WebAPICallOptions , TokenOverridable {
1496
+ /** @description Channel ID containing the assistant thread. */
1497
+ channel_id : string ;
1498
+ /** @description Status of the assistant (e.g. 'is thinking...') */
1499
+ status : string ;
1500
+ /** @description Message timestamp of the thread. */
1501
+ thread_ts : string ;
1502
+ }
1503
+
1504
+ // https://api.slack.com/methods/assistant.threads.setSuggestedPrompts
1505
+ export interface AssistantThreadsSetSuggestedPromptsArguments extends WebAPICallOptions , TokenOverridable {
1506
+ /** @description Channel ID containing the assistant thread. */
1507
+ channel_id : string ;
1508
+ /** @description Prompt suggestions that appear when opening assistant thread. */
1509
+ prompts : [ AssistantPrompt , ...AssistantPrompt [ ] ] ;
1510
+ /** @description Message timestamp of the thread. */
1511
+ thread_ts : string ;
1512
+ /** @description Title for the prompts. */
1513
+ title ?: string ;
1514
+ }
1515
+
1516
+ interface AssistantPrompt {
1517
+ /** @description Title of the prompt. */
1518
+ title : string ;
1519
+ /** @description Message of the prompt. */
1520
+ message : string ;
1521
+ }
1522
+
1523
+ // https://api.slack.com/methods/assistant.threads.setTitle
1524
+ export interface AssistantThreadsSetTitleArguments extends WebAPICallOptions , TokenOverridable {
1525
+ /** @description Channel ID containing the assistant thread. */
1526
+ channel_id : string ;
1527
+ /** @description Message timestamp of the thread. */
1528
+ thread_ts : string ;
1529
+ /** @description Title of the thread. */
1530
+ title : string ;
1531
+ }
1532
+
1459
1533
/*
1460
1534
* `auth.*`
1461
1535
*/
0 commit comments