@salesforce/lds-adapters-platform-slack-bridge 1.332.0-dev4 → 1.332.0-dev6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/es/es2018/platform-slack-bridge.js +1985 -898
  2. package/dist/es/es2018/types/src/generated/adapters/deleteSlackConversationMember.d.ts +16 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMember.d.ts +30 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMembers.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getSlackRecordChannelInfo.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/postSlackConversationMembers.d.ts +17 -0
  7. package/dist/es/es2018/types/src/generated/adapters/postSlackRecordChannelInfos.d.ts +18 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +13 -1
  10. package/dist/es/es2018/types/src/generated/resources/deleteConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +14 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeRecord_channelsByRelatedRecordId.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +18 -0
  13. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeRecord_channels.d.ts +15 -0
  15. package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +16 -0
  16. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +16 -4
  17. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfosOutputRepresentation.d.ts +12 -3
  18. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInputRepresentation.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMemberOutputRepresentation.d.ts +40 -0
  20. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersInputRepresentation.d.ts +28 -0
  21. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersOutputRepresentation.d.ts +43 -0
  22. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +5 -3
  23. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoInputRepresentation.d.ts +36 -0
  24. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoOutputRepresentation.d.ts +53 -0
  25. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +1 -1
  26. package/package.json +3 -3
  27. package/sfdc/index.js +2385 -1139
  28. package/src/raml/api.raml +257 -88
  29. package/src/raml/luvio.raml +74 -26
package/src/raml/api.raml CHANGED
@@ -128,6 +128,10 @@ types:
128
128
  shouldCacheCustomEmoji:
129
129
  description: Should the Custom Emojis be cached?
130
130
  type: boolean | nil
131
+ url:
132
+ description: The URL to the channel
133
+ required: false
134
+ type: string
131
135
  SlackBridgeConversationInfosOutputRepresentation:
132
136
  description: Contains the list of Slack Conversation Information
133
137
  type: object
@@ -140,6 +144,51 @@ types:
140
144
  searchString:
141
145
  description: String used to search this list of conversations (Optional)
142
146
  type: string
147
+ SlackBridgeConversationInputRepresentation:
148
+ description: Representation of a Slack conversation
149
+ type: object
150
+ properties:
151
+ isPrivate:
152
+ description: Flag indicating if the conversation is private
153
+ type: boolean
154
+ name:
155
+ description: Name of the conversation
156
+ type: string
157
+ SlackBridgeConversationMemberOutputRepresentation:
158
+ description: Contains the details of a Slack member for the Slack conversation
159
+ type: object
160
+ properties:
161
+ channelId:
162
+ description: Id of the Channel to which this message belong to
163
+ type: string
164
+ slackUserId:
165
+ description: The Slack user Id of the member of the Slack conversation
166
+ type: string
167
+ SlackBridgeConversationMembersInputRepresentation:
168
+ description: Contains the parameters to post Slack conversation members requests
169
+ type: object
170
+ properties:
171
+ slackUserIds:
172
+ description: List of Slack user ids
173
+ type: array
174
+ items:
175
+ type: string
176
+ SlackBridgeConversationMembersOutputRepresentation:
177
+ description: Contains the details of Slack members for the Slack conversation
178
+ type: object
179
+ properties:
180
+ channelId:
181
+ description: Id of the Channel to which this message belong to
182
+ type: string
183
+ nextCursor:
184
+ description: Used to paginate to the next page by passing this value as the
185
+ cursor parameter in a subsequent request
186
+ type: string | nil
187
+ slackUserIds:
188
+ description: The Slack user Ids of the members of the Slack conversation
189
+ type: array
190
+ items:
191
+ type: string
143
192
  SlackBridgeConversationOutputRepresentation:
144
193
  description: Contains the details of a Slack Conversation
145
194
  type: object
@@ -472,6 +521,33 @@ types:
472
521
  description: The id of the Slack team (Workspace or Enterprise Org) where
473
522
  this conversation exists
474
523
  type: string
524
+ SlackBridgeRecordChannelInfoInputRepresentation:
525
+ description: Representation of a Slack record channel
526
+ type: object
527
+ properties:
528
+ conversationInfo:
529
+ description: The conversation info associated with the record
530
+ type: object
531
+ properties:
532
+ isPrivate:
533
+ description: Is this conversation private?
534
+ type: boolean
535
+ relatedRecordId:
536
+ description: The ID of the Salesforce record associated with the conversation
537
+ type: string
538
+ SlackBridgeRecordChannelInfoOutputRepresentation:
539
+ description: Representation of a Slack record channel
540
+ type: object
541
+ properties:
542
+ conversationInfo:
543
+ description: The conversation info associated with the record
544
+ type: SlackBridgeConversationInfoOutputRepresentation
545
+ relatedRecordId:
546
+ description: The ID of the Salesforce record associated with the conversation
547
+ type: string
548
+ teamId:
549
+ description: The Slack ID of the Slack team
550
+ type: string
475
551
  SlackBridgeUpdateMessageInputRepresentation:
476
552
  description: Contains the parameters to update a message to Slack
477
553
  type: object
@@ -619,97 +695,190 @@ types:
619
695
  application/json:
620
696
  type: SlackBridgeFileInputRepresentation
621
697
  (oas-body-name): slackFileUploadRequest
698
+ /record_channels:
699
+ post:
700
+ displayName: postSlackRecordChannelInfos
701
+ description: Create a Slack record channel
702
+ responses:
703
+ '200':
704
+ description: Success
705
+ body:
706
+ application/json:
707
+ type: SlackBridgeRecordChannelInfoOutputRepresentation
708
+ body:
709
+ application/json:
710
+ type: SlackBridgeRecordChannelInfoInputRepresentation
711
+ (oas-body-name): slackRecordChannelInfo
712
+ /record_channels/{relatedRecordId}:
713
+ get:
714
+ displayName: getSlackRecordChannelInfo
715
+ description: Get Slack conversation from the given Workspace and Channel
716
+ responses:
717
+ '200':
718
+ description: Success
719
+ body:
720
+ application/json:
721
+ type: SlackBridgeRecordChannelInfoOutputRepresentation
722
+ uriParameters:
723
+ relatedRecordId:
724
+ description: Id of the record to which the Slack Conversation is related.
725
+ type: string
726
+ required: true
622
727
  /team/{teamId}:
623
- /channel/{channelId}/messages/{messageTs}:
624
- delete:
625
- displayName: deleteSlackMessage
626
- description: Request to delete a Slack post
627
- responses:
628
- '200':
629
- description: Success
630
- get:
631
- displayName: getSlackMessage
632
- description: Get Slack message from the given Channel
633
- responses:
634
- '200':
635
- description: Success
636
- body:
637
- application/json:
638
- type: SlackBridgeMessageFragmentOutputRepresentation
639
- patch:
640
- displayName: patchSlackMessage
641
- description: Request to update a Slack post
642
- responses:
643
- '200':
644
- description: Success
645
- body:
646
- application/json:
647
- type: SlackBridgeMessageFragmentOutputRepresentation
648
- body:
649
- application/json:
650
- type: SlackBridgeUpdateMessageInputRepresentation
651
- (oas-body-name): slackMessageUpdateRequest
652
- uriParameters:
653
- channelId:
654
- description: Id of the Slack channel where the message exists
655
- type: string
656
- required: true
657
- messageTs:
658
- description: The timestamp of the Slack message
659
- type: string
660
- required: true
661
- teamId:
662
- description: Id of the Slack team where the conversation exists
663
- type: string
664
- required: true
665
- /channel/{channelId}/messages/{messageTs}/reactions:
666
- delete:
667
- displayName: deleteSlackMessageReactions
668
- description: Request to delete a reaction on Slack message
669
- responses:
670
- '200':
671
- description: Success
672
- queryParameters:
673
- name:
674
- description: The name of the reaction to delete
728
+ /channel/{channelId}:
729
+ /members:
730
+ get:
731
+ displayName: getSlackConversationMembers
732
+ description: Request to get the members of a Slack conversation
733
+ responses:
734
+ '200':
735
+ description: Success
736
+ body:
737
+ application/json:
738
+ type: SlackBridgeConversationMembersOutputRepresentation
739
+ post:
740
+ displayName: postSlackConversationMembers
741
+ description: Request to join the current Slack user or invite other Slack
742
+ users to a Slack conversation
743
+ responses:
744
+ '200':
745
+ description: Success
746
+ body:
747
+ application/json:
748
+ type: SlackBridgeConversationMembersOutputRepresentation
749
+ body:
750
+ application/json:
751
+ type: SlackBridgeConversationMembersInputRepresentation
752
+ (oas-body-name): slackConversationMembersPostRequest
753
+ uriParameters:
754
+ channelId:
755
+ description: Id of the Slack channel where the message exists
675
756
  type: string
676
- required: false
677
- get:
678
- displayName: getSlackMessageReactions
679
- description: Request to get a reaction on a Slack message
680
- responses:
681
- '200':
682
- description: Success
683
- body:
684
- application/json:
685
- type: SlackBridgeReactionsOutputRepresentation
686
- post:
687
- displayName: postSlackMessageReactions
688
- description: Request to post a reaction on Slack message
689
- responses:
690
- '200':
691
- description: Success
692
- body:
693
- application/json:
694
- type: SlackBridgeReactionsOutputRepresentation
695
- queryParameters:
696
- name:
697
- description: The name of the reaction to add
757
+ required: true
758
+ teamId:
759
+ description: Id of the Slack team where the conversation exists
698
760
  type: string
699
- required: false
700
- uriParameters:
701
- channelId:
702
- description: Id of the Slack channel where the message exists
703
- type: string
704
- required: true
705
- messageTs:
706
- description: The timestamp of the Slack message
707
- type: string
708
- required: true
709
- teamId:
710
- description: Id of the Slack team where the conversation exists
711
- type: string
712
- required: true
761
+ required: true
762
+ /members/{slackUserId}:
763
+ delete:
764
+ displayName: deleteSlackConversationMember
765
+ description: Request to leave a Slack conversation or kick a member from
766
+ a Slack conversation
767
+ responses:
768
+ '200':
769
+ description: Success
770
+ get:
771
+ displayName: getSlackConversationMember
772
+ description: Request to get a member of a Slack conversation
773
+ responses:
774
+ '200':
775
+ description: Success
776
+ body:
777
+ application/json:
778
+ type: SlackBridgeConversationMemberOutputRepresentation
779
+ uriParameters:
780
+ channelId:
781
+ description: Id of the Slack channel where the message exists
782
+ type: string
783
+ required: true
784
+ slackUserId:
785
+ description: Id of the Slack member to leave or kick from the conversation
786
+ type: string
787
+ required: true
788
+ teamId:
789
+ description: Id of the Slack team where the conversation exists
790
+ type: string
791
+ required: true
792
+ /messages/{messageTs}:
793
+ delete:
794
+ displayName: deleteSlackMessage
795
+ description: Request to delete a Slack post
796
+ responses:
797
+ '200':
798
+ description: Success
799
+ get:
800
+ displayName: getSlackMessage
801
+ description: Get Slack message from the given Channel
802
+ responses:
803
+ '200':
804
+ description: Success
805
+ body:
806
+ application/json:
807
+ type: SlackBridgeMessageFragmentOutputRepresentation
808
+ patch:
809
+ displayName: patchSlackMessage
810
+ description: Request to update a Slack post
811
+ responses:
812
+ '200':
813
+ description: Success
814
+ body:
815
+ application/json:
816
+ type: SlackBridgeMessageFragmentOutputRepresentation
817
+ body:
818
+ application/json:
819
+ type: SlackBridgeUpdateMessageInputRepresentation
820
+ (oas-body-name): slackMessageUpdateRequest
821
+ uriParameters:
822
+ channelId:
823
+ description: Id of the Slack channel where the message exists
824
+ type: string
825
+ required: true
826
+ messageTs:
827
+ description: The timestamp of the Slack message
828
+ type: string
829
+ required: true
830
+ teamId:
831
+ description: Id of the Slack team where the conversation exists
832
+ type: string
833
+ required: true
834
+ /messages/{messageTs}/reactions:
835
+ delete:
836
+ displayName: deleteSlackMessageReactions
837
+ description: Request to delete a reaction on Slack message
838
+ responses:
839
+ '200':
840
+ description: Success
841
+ queryParameters:
842
+ name:
843
+ description: The name of the reaction to delete
844
+ type: string
845
+ required: false
846
+ get:
847
+ displayName: getSlackMessageReactions
848
+ description: Request to get a reaction on a Slack message
849
+ responses:
850
+ '200':
851
+ description: Success
852
+ body:
853
+ application/json:
854
+ type: SlackBridgeReactionsOutputRepresentation
855
+ post:
856
+ displayName: postSlackMessageReactions
857
+ description: Request to post a reaction on Slack message
858
+ responses:
859
+ '200':
860
+ description: Success
861
+ body:
862
+ application/json:
863
+ type: SlackBridgeReactionsOutputRepresentation
864
+ queryParameters:
865
+ name:
866
+ description: The name of the reaction to add
867
+ type: string
868
+ required: false
869
+ uriParameters:
870
+ channelId:
871
+ description: Id of the Slack channel where the message exists
872
+ type: string
873
+ required: true
874
+ messageTs:
875
+ description: The timestamp of the Slack message
876
+ type: string
877
+ required: true
878
+ teamId:
879
+ description: Id of the Slack team where the conversation exists
880
+ type: string
881
+ required: true
713
882
  /emojis:
714
883
  get:
715
884
  displayName: getSlackCustomEmoji
@@ -12,7 +12,7 @@ types:
12
12
  (luvio.key):
13
13
  uniqueKey: uniqueKey
14
14
  SlackBridgeUserInfoOutputRepresentation:
15
- (luvio.ttl): 300000
15
+ (luvio.ttl): 600000
16
16
  (luvio.key):
17
17
  teamId: teamId
18
18
  slackUserId: slackUserId
@@ -27,6 +27,20 @@ types:
27
27
  # Uses a junk key because we don't care about caching this
28
28
  (luvio.key):
29
29
  channelId: channelId
30
+ SlackBridgeConversationMemberOutputRepresentation:
31
+ # Uses a junk key because we don't care about caching this
32
+ (luvio.key):
33
+ channelId: channelId
34
+ SlackBridgeConversationMembersOutputRepresentation:
35
+ # Uses a junk key because we don't care about caching this
36
+ (luvio.key):
37
+ channelId: channelId
38
+ SlackBridgeConversationInfoOutputRepresentation:
39
+ (luvio.key):
40
+ id: id
41
+ SlackBridgeRecordChannelInfoOutputRepresentation:
42
+ (luvio.key):
43
+ relatedRecordId: relatedRecordId
30
44
 
31
45
  /connect/slackbridge:
32
46
  /conversation/messages:
@@ -40,32 +54,66 @@ types:
40
54
  post:
41
55
  (luvio.adapter):
42
56
  name: postSlackFile
57
+ /record_channels:
58
+ post:
59
+ (luvio.adapter):
60
+ name: postSlackRecordChannelInfos
61
+ /record_channels/{relatedRecordId}:
62
+ get:
63
+ (luvio.adapter):
64
+ name: getSlackRecordChannelInfo
65
+ (luvio.key):
66
+ relatedRecordId: urlParams.relatedRecordId
43
67
  /team/{teamId}:
44
- /channel/{channelId}/messages/{messageTs}:
45
- delete:
46
- (luvio.adapter):
47
- name: deleteSlackMessage
48
- (luvio.key):
49
- # JUNK key: don't cache this in any meaningful way
50
- channelId: urlParams.channelId
51
- get:
52
- (luvio.adapter):
53
- name: getSlackMessage
54
- (luvio.key):
55
- channelId: urlParams.channelId
56
- patch:
57
- (luvio.adapter):
58
- name: patchSlackMessage
59
- /channel/{channelId}/messages/{messageTs}/reactions:
60
- delete:
61
- (luvio.adapter):
62
- name: deleteSlackMessageReactions
63
- (luvio.key):
64
- # JUNK key: don't cache this in any meaningful way
65
- channelId: urlParams.channelId
66
- post:
67
- (luvio.adapter):
68
- name: postSlackMessageReactions
68
+ /channel/{channelId}:
69
+ /members:
70
+ get:
71
+ (luvio.adapter):
72
+ name: getSlackConversationMembers
73
+ (luvio.key):
74
+ # JUNK key: don't cache this in any meaningful way
75
+ channelId: urlParams.channelId
76
+ post:
77
+ (luvio.adapter):
78
+ name: postSlackConversationMembers
79
+ /members/{slackUserId}:
80
+ delete:
81
+ (luvio.adapter):
82
+ name: deleteSlackConversationMember
83
+ (luvio.key):
84
+ # JUNK key: don't cache this in any meaningful way
85
+ channelId: urlParams.channelId
86
+ get:
87
+ (luvio.adapter):
88
+ name: getSlackConversationMember
89
+ (luvio.key):
90
+ # JUNK key: don't cache this in any meaningful way
91
+ channelId: urlParams.channelId
92
+ /messages/{messageTs}:
93
+ delete:
94
+ (luvio.adapter):
95
+ name: deleteSlackMessage
96
+ (luvio.key):
97
+ # JUNK key: don't cache this in any meaningful way
98
+ channelId: urlParams.channelId
99
+ get:
100
+ (luvio.adapter):
101
+ name: getSlackMessage
102
+ (luvio.key):
103
+ channelId: urlParams.channelId
104
+ patch:
105
+ (luvio.adapter):
106
+ name: patchSlackMessage
107
+ /messages/{messageTs}/reactions:
108
+ delete:
109
+ (luvio.adapter):
110
+ name: deleteSlackMessageReactions
111
+ (luvio.key):
112
+ # JUNK key: don't cache this in any meaningful way
113
+ channelId: urlParams.channelId
114
+ post:
115
+ (luvio.adapter):
116
+ name: postSlackMessageReactions
69
117
  /emojis:
70
118
  get:
71
119
  (luvio.adapter):