@salesforce/lds-adapters-platform-slack-bridge 1.380.0-dev1 → 1.380.0-dev2

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/src/raml/api.raml CHANGED
@@ -734,6 +734,31 @@ types:
734
734
  timestamp:
735
735
  description: Timestamp of the message posted to Slack
736
736
  type: string
737
+ SlackBridgeConversationOpenInputRepresentation:
738
+ description: Contains the parameters of the conversation to open
739
+ type: object
740
+ properties:
741
+ channel:
742
+ description: Channel id of existing DM or MPDM, optional if users is specified instead
743
+ type: string
744
+ users:
745
+ description: List of user ids for conversation to be opened
746
+ type: array
747
+ items:
748
+ type: string
749
+ preventCreation:
750
+ description: True if we don't want to create new DM/MPDM; used to check if there's an existing DM/MPDM
751
+ type: boolean
752
+ returnIm:
753
+ description: True to return full IM channel definition in response
754
+ type: boolean
755
+ SlackBridgeConversationOpenOutputRepresentation:
756
+ description: Contains the id of channel that was opened
757
+ type: object
758
+ properties:
759
+ channelId:
760
+ description: Id of the channel that was opened (existing channel if found or new channel if created)
761
+ type: string
737
762
  SlackBridgePostMessageReactionInputRepresentation:
738
763
  description: Contains the parameters to post or delete a reaction on Slack message
739
764
  type: object
@@ -957,78 +982,93 @@ types:
957
982
  items:
958
983
  type: SlackBridgeUserInfoOutputRepresentation
959
984
  /connect/slackbridge:
960
- /conversation/messages:
961
- get:
962
- displayName: getSlackConversation
963
- description: Get Slack conversation from the given Workspace and Channel
964
- responses:
965
- '200':
966
- description: Success
967
- body:
968
- application/json:
969
- type: SlackBridgeConversationOutputRepresentation
970
- queryParameters:
971
- centerMessageTs:
972
- description: Messages before and after this Unix timestamp will be included in results.
973
- type: string
974
- required: false
975
- channelId:
976
- description: Channel where the conversation exist
977
- type: string
978
- required: false
979
- includeView:
980
- description: Include the full view of the conversation.
981
- type: boolean
982
- required: false
983
- inclusive:
984
- description: Include messages with latest or oldest timestamp in results.
985
- Ignored unless either timestamp is specified.
986
- type: boolean
987
- required: false
988
- latestMessageTs:
989
- description: Only messages before this Unix timestamp will be included in
990
- results. Default is the current time.
991
- type: string
992
- required: false
993
- limit:
994
- description: The maximum number of messages to return. Fewer than the requested
995
- number of messages may be returned.
996
- type: integer
997
- required: false
998
- noEmojis:
999
- description: Do not search for references to custom emojis
1000
- type: boolean
1001
- required: false
1002
- oldestMessageTs:
1003
- description: Only messages after this Unix timestamp will be included in
1004
- results. Default is the current time.
1005
- type: string
1006
- required: false
1007
- parentMessageTs:
1008
- description: Parent Message timestamp (if the message(s) belongs to a thread)
1009
- type: string
1010
- required: false
1011
- relatedRecordId:
1012
- description: Id of the record to which the Slack Conversation is related.
1013
- type: string
1014
- required: false
1015
- teamId:
1016
- description: Team or Workspace where the conversation exist
1017
- type: string
1018
- required: false
1019
- post:
1020
- displayName: postSlackConversation
1021
- description: Request to create a Slack post
1022
- responses:
1023
- '200':
1024
- description: Success
1025
- body:
1026
- application/json:
1027
- type: SlackBridgePostMessageOutputRepresentation
1028
- body:
1029
- application/json:
1030
- type: SlackBridgePostMessageInputRepresentation
1031
- (oas-body-name): slackMessagePostRequest
985
+ /conversation:
986
+ /messages:
987
+ get:
988
+ displayName: getSlackConversation
989
+ description: Get Slack conversation from the given Workspace and Channel
990
+ responses:
991
+ '200':
992
+ description: Success
993
+ body:
994
+ application/json:
995
+ type: SlackBridgeConversationOutputRepresentation
996
+ queryParameters:
997
+ centerMessageTs:
998
+ description: Messages before and after this Unix timestamp will be included in results.
999
+ type: string
1000
+ required: false
1001
+ channelId:
1002
+ description: Channel where the conversation exist
1003
+ type: string
1004
+ required: false
1005
+ includeView:
1006
+ description: Include the full view of the conversation.
1007
+ type: boolean
1008
+ required: false
1009
+ inclusive:
1010
+ description: Include messages with latest or oldest timestamp in results.
1011
+ Ignored unless either timestamp is specified.
1012
+ type: boolean
1013
+ required: false
1014
+ latestMessageTs:
1015
+ description: Only messages before this Unix timestamp will be included in
1016
+ results. Default is the current time.
1017
+ type: string
1018
+ required: false
1019
+ limit:
1020
+ description: The maximum number of messages to return. Fewer than the requested
1021
+ number of messages may be returned.
1022
+ type: integer
1023
+ required: false
1024
+ noEmojis:
1025
+ description: Do not search for references to custom emojis
1026
+ type: boolean
1027
+ required: false
1028
+ oldestMessageTs:
1029
+ description: Only messages after this Unix timestamp will be included in
1030
+ results. Default is the current time.
1031
+ type: string
1032
+ required: false
1033
+ parentMessageTs:
1034
+ description: Parent Message timestamp (if the message(s) belongs to a thread)
1035
+ type: string
1036
+ required: false
1037
+ relatedRecordId:
1038
+ description: Id of the record to which the Slack Conversation is related.
1039
+ type: string
1040
+ required: false
1041
+ teamId:
1042
+ description: Team or Workspace where the conversation exist
1043
+ type: string
1044
+ required: false
1045
+ post:
1046
+ displayName: postSlackConversation
1047
+ description: Request to create a Slack post
1048
+ responses:
1049
+ '200':
1050
+ description: Success
1051
+ body:
1052
+ application/json:
1053
+ type: SlackBridgePostMessageOutputRepresentation
1054
+ body:
1055
+ application/json:
1056
+ type: SlackBridgePostMessageInputRepresentation
1057
+ (oas-body-name): slackMessagePostRequest
1058
+ /open:
1059
+ post:
1060
+ displayName: openSlackConversation
1061
+ description: Request to open a Slack conversation
1062
+ responses:
1063
+ '200':
1064
+ description: Success
1065
+ body:
1066
+ application/json:
1067
+ type: SlackBridgeConversationOpenOutputRepresentation
1068
+ body:
1069
+ application/json:
1070
+ type: SlackBridgeConversationOpenInputRepresentation
1071
+ (oas-body-name): slackConversationOpenRequest
1032
1072
  /files:
1033
1073
  post:
1034
1074
  displayName: postSlackFile
@@ -10,6 +10,10 @@ uses:
10
10
  types:
11
11
  SlackBridgeConversationOutputRepresentation:
12
12
  (luvio.ttl): 500
13
+ SlackBridgeConversationOpenOutputRepresentation:
14
+ (luvio.ttl): 500
15
+ (luvio.key):
16
+ channelId: channelId
13
17
  SlackBridgeFileOutputRepresentation:
14
18
  (luvio.key):
15
19
  uniqueKey: uniqueKey
@@ -63,13 +67,18 @@ types:
63
67
  (luvio.ttl): 500
64
68
 
65
69
  /connect/slackbridge:
66
- /conversation/messages:
67
- get:
68
- (luvio.adapter):
69
- name: getSlackConversation
70
- post:
71
- (luvio.adapter):
72
- name: postSlackConversation
70
+ /conversation:
71
+ /messages:
72
+ get:
73
+ (luvio.adapter):
74
+ name: getSlackConversation
75
+ post:
76
+ (luvio.adapter):
77
+ name: postSlackConversation
78
+ /open:
79
+ post:
80
+ (luvio.adapter):
81
+ name: openSlackConversation
73
82
  /files:
74
83
  post:
75
84
  (luvio.adapter):