@salesforce/lds-adapters-platform-slack-bridge 1.332.0 → 1.334.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/es/es2018/platform-slack-bridge.js +2017 -872
  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 +13 -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/SlackBridgeMessageOutputRepresentation.d.ts +15 -1
  24. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoInputRepresentation.d.ts +36 -0
  25. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoOutputRepresentation.d.ts +53 -0
  26. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +1 -1
  27. package/package.json +3 -3
  28. package/sfdc/index.js +2463 -1159
  29. package/src/raml/api.raml +264 -88
  30. package/src/raml/luvio.raml +74 -26
package/src/raml/api.raml CHANGED
@@ -140,6 +140,51 @@ types:
140
140
  searchString:
141
141
  description: String used to search this list of conversations (Optional)
142
142
  type: string
143
+ SlackBridgeConversationMemberOutputRepresentation:
144
+ description: Contains the details of a Slack member for the Slack conversation
145
+ type: object
146
+ properties:
147
+ channelId:
148
+ description: Id of the Channel to which this message belong to
149
+ type: string
150
+ slackUserId:
151
+ description: The Slack user Id of the member of the Slack conversation
152
+ type: string
153
+ SlackBridgeConversationMembersInputRepresentation:
154
+ description: Contains the parameters to post Slack conversation members requests
155
+ type: object
156
+ properties:
157
+ slackUserIds:
158
+ description: List of Slack user ids
159
+ type: array
160
+ items:
161
+ type: string
162
+ SlackBridgeConversationMembersOutputRepresentation:
163
+ description: Contains the details of Slack members for the Slack conversation
164
+ type: object
165
+ properties:
166
+ channelId:
167
+ description: Id of the Channel to which this message belong to
168
+ type: string
169
+ nextCursor:
170
+ description: Used to paginate to the next page by passing this value as the
171
+ cursor parameter in a subsequent request
172
+ type: string | nil
173
+ slackUserIds:
174
+ description: The Slack user Ids of the members of the Slack conversation
175
+ type: array
176
+ items:
177
+ type: string
178
+ SlackBridgeConversationInputRepresentation:
179
+ description: Representation of a Slack conversation
180
+ type: object
181
+ properties:
182
+ isPrivate:
183
+ description: Flag indicating if the conversation is private
184
+ type: boolean
185
+ name:
186
+ description: Name of the conversation
187
+ type: string
143
188
  SlackBridgeConversationOutputRepresentation:
144
189
  description: Contains the details of a Slack Conversation
145
190
  type: object
@@ -319,6 +364,22 @@ types:
319
364
  description: Contains the details of Slack Message
320
365
  type: object
321
366
  properties:
367
+ attachments:
368
+ description: Message attachments
369
+ type: array
370
+ items:
371
+ type: object
372
+ properties:
373
+ //:
374
+ type: any
375
+ blocks:
376
+ description: Message blocks
377
+ type: array
378
+ items:
379
+ type: object
380
+ properties:
381
+ //:
382
+ type: any
322
383
  files:
323
384
  description: List of files attached to this message
324
385
  type: array
@@ -456,6 +517,33 @@ types:
456
517
  description: The id of the Slack team (Workspace or Enterprise Org) where
457
518
  this conversation exists
458
519
  type: string
520
+ SlackBridgeRecordChannelInfoInputRepresentation:
521
+ description: Representation of a Slack record channel
522
+ type: object
523
+ properties:
524
+ conversationInfo:
525
+ description: The conversation info associated with the record
526
+ type: object
527
+ properties:
528
+ isPrivate:
529
+ description: Is this conversation private?
530
+ type: boolean
531
+ relatedRecordId:
532
+ description: The ID of the Salesforce record associated with the conversation
533
+ type: string
534
+ SlackBridgeRecordChannelInfoOutputRepresentation:
535
+ description: Representation of a Slack record channel
536
+ type: object
537
+ properties:
538
+ conversationInfo:
539
+ description: The conversation info associated with the record
540
+ type: SlackBridgeConversationInfoOutputRepresentation
541
+ relatedRecordId:
542
+ description: The ID of the Salesforce record associated with the conversation
543
+ type: string
544
+ teamId:
545
+ description: The Slack ID of the Slack team
546
+ type: string
459
547
  SlackBridgeUpdateMessageInputRepresentation:
460
548
  description: Contains the parameters to update a message to Slack
461
549
  type: object
@@ -603,97 +691,185 @@ types:
603
691
  application/json:
604
692
  type: SlackBridgeFileInputRepresentation
605
693
  (oas-body-name): slackFileUploadRequest
694
+ /record_channels:
695
+ post:
696
+ displayName: postSlackRecordChannelInfos
697
+ description: Create a Slack record channel
698
+ responses:
699
+ '200':
700
+ description: Success
701
+ body:
702
+ application/json:
703
+ type: SlackBridgeRecordChannelInfoOutputRepresentation
704
+ body:
705
+ application/json:
706
+ type: SlackBridgeRecordChannelInfoInputRepresentation
707
+ (oas-body-name): slackRecordChannelInfo
708
+ /record_channels/{relatedRecordId}:
709
+ get:
710
+ displayName: getSlackRecordChannelInfo
711
+ description: Get Slack conversation from the given Workspace and Channel
712
+ responses:
713
+ '200':
714
+ description: Success
715
+ body:
716
+ application/json:
717
+ type: SlackBridgeRecordChannelInfoOutputRepresentation
606
718
  /team/{teamId}:
607
- /channel/{channelId}/messages/{messageTs}:
608
- delete:
609
- displayName: deleteSlackMessage
610
- description: Request to delete a Slack post
611
- responses:
612
- '200':
613
- description: Success
614
- get:
615
- displayName: getSlackMessage
616
- description: Get Slack message from the given Channel
617
- responses:
618
- '200':
619
- description: Success
620
- body:
621
- application/json:
622
- type: SlackBridgeMessageFragmentOutputRepresentation
623
- patch:
624
- displayName: patchSlackMessage
625
- description: Request to update a Slack post
626
- responses:
627
- '200':
628
- description: Success
629
- body:
630
- application/json:
631
- type: SlackBridgeMessageFragmentOutputRepresentation
632
- body:
633
- application/json:
634
- type: SlackBridgeUpdateMessageInputRepresentation
635
- (oas-body-name): slackMessageUpdateRequest
636
- uriParameters:
637
- channelId:
638
- description: Id of the Slack channel where the message exists
639
- type: string
640
- required: true
641
- messageTs:
642
- description: The timestamp of the Slack message
643
- type: string
644
- required: true
645
- teamId:
646
- description: Id of the Slack team where the conversation exists
647
- type: string
648
- required: true
649
- /channel/{channelId}/messages/{messageTs}/reactions:
650
- delete:
651
- displayName: deleteSlackMessageReactions
652
- description: Request to delete a reaction on Slack message
653
- responses:
654
- '200':
655
- description: Success
656
- queryParameters:
657
- name:
658
- description: The name of the reaction to delete
719
+ /channel/{channelId}:
720
+ /members:
721
+ get:
722
+ displayName: getSlackConversationMembers
723
+ description: Request to get the members of a Slack conversation
724
+ responses:
725
+ '200':
726
+ description: Success
727
+ body:
728
+ application/json:
729
+ type: SlackBridgeConversationMembersOutputRepresentation
730
+ post:
731
+ displayName: postSlackConversationMembers
732
+ description: Request to join the current Slack user or invite other Slack
733
+ users to a Slack conversation
734
+ responses:
735
+ '200':
736
+ description: Success
737
+ body:
738
+ application/json:
739
+ type: SlackBridgeConversationMembersOutputRepresentation
740
+ body:
741
+ application/json:
742
+ type: SlackBridgeConversationMembersInputRepresentation
743
+ (oas-body-name): slackConversationMembersPostRequest
744
+ uriParameters:
745
+ channelId:
746
+ description: Id of the Slack channel where the message exists
659
747
  type: string
660
- required: false
661
- get:
662
- displayName: getSlackMessageReactions
663
- description: Request to get a reaction on a Slack message
664
- responses:
665
- '200':
666
- description: Success
667
- body:
668
- application/json:
669
- type: SlackBridgeReactionsOutputRepresentation
670
- post:
671
- displayName: postSlackMessageReactions
672
- description: Request to post a reaction on Slack message
673
- responses:
674
- '200':
675
- description: Success
676
- body:
677
- application/json:
678
- type: SlackBridgeReactionsOutputRepresentation
679
- queryParameters:
680
- name:
681
- description: The name of the reaction to add
748
+ required: true
749
+ teamId:
750
+ description: Id of the Slack team where the conversation exists
682
751
  type: string
683
- required: false
684
- uriParameters:
685
- channelId:
686
- description: Id of the Slack channel where the message exists
687
- type: string
688
- required: true
689
- messageTs:
690
- description: The timestamp of the Slack message
691
- type: string
692
- required: true
693
- teamId:
694
- description: Id of the Slack team where the conversation exists
695
- type: string
696
- required: true
752
+ required: true
753
+ /members/{slackUserId}:
754
+ delete:
755
+ displayName: deleteSlackConversationMember
756
+ description: Request to leave a Slack conversation or kick a member from
757
+ a Slack conversation
758
+ responses:
759
+ '200':
760
+ description: Success
761
+ get:
762
+ displayName: getSlackConversationMember
763
+ description: Request to get a member of a Slack conversation
764
+ responses:
765
+ '200':
766
+ description: Success
767
+ body:
768
+ application/json:
769
+ type: SlackBridgeConversationMemberOutputRepresentation
770
+ uriParameters:
771
+ channelId:
772
+ description: Id of the Slack channel where the message exists
773
+ type: string
774
+ required: true
775
+ slackUserId:
776
+ description: Id of the Slack member to leave or kick from the conversation
777
+ type: string
778
+ required: true
779
+ teamId:
780
+ description: Id of the Slack team where the conversation exists
781
+ type: string
782
+ required: true
783
+ /messages/{messageTs}:
784
+ delete:
785
+ displayName: deleteSlackMessage
786
+ description: Request to delete a Slack post
787
+ responses:
788
+ '200':
789
+ description: Success
790
+ get:
791
+ displayName: getSlackMessage
792
+ description: Get Slack message from the given Channel
793
+ responses:
794
+ '200':
795
+ description: Success
796
+ body:
797
+ application/json:
798
+ type: SlackBridgeMessageFragmentOutputRepresentation
799
+ patch:
800
+ displayName: patchSlackMessage
801
+ description: Request to update a Slack post
802
+ responses:
803
+ '200':
804
+ description: Success
805
+ body:
806
+ application/json:
807
+ type: SlackBridgeMessageFragmentOutputRepresentation
808
+ body:
809
+ application/json:
810
+ type: SlackBridgeUpdateMessageInputRepresentation
811
+ (oas-body-name): slackMessageUpdateRequest
812
+ uriParameters:
813
+ channelId:
814
+ description: Id of the Slack channel where the message exists
815
+ type: string
816
+ required: true
817
+ messageTs:
818
+ description: The timestamp of the Slack message
819
+ type: string
820
+ required: true
821
+ teamId:
822
+ description: Id of the Slack team where the conversation exists
823
+ type: string
824
+ required: true
825
+ /messages/{messageTs}/reactions:
826
+ delete:
827
+ displayName: deleteSlackMessageReactions
828
+ description: Request to delete a reaction on Slack message
829
+ responses:
830
+ '200':
831
+ description: Success
832
+ queryParameters:
833
+ name:
834
+ description: The name of the reaction to delete
835
+ type: string
836
+ required: false
837
+ get:
838
+ displayName: getSlackMessageReactions
839
+ description: Request to get a reaction on a Slack message
840
+ responses:
841
+ '200':
842
+ description: Success
843
+ body:
844
+ application/json:
845
+ type: SlackBridgeReactionsOutputRepresentation
846
+ post:
847
+ displayName: postSlackMessageReactions
848
+ description: Request to post a reaction on Slack message
849
+ responses:
850
+ '200':
851
+ description: Success
852
+ body:
853
+ application/json:
854
+ type: SlackBridgeReactionsOutputRepresentation
855
+ queryParameters:
856
+ name:
857
+ description: The name of the reaction to add
858
+ type: string
859
+ required: false
860
+ uriParameters:
861
+ channelId:
862
+ description: Id of the Slack channel where the message exists
863
+ type: string
864
+ required: true
865
+ messageTs:
866
+ description: The timestamp of the Slack message
867
+ type: string
868
+ required: true
869
+ teamId:
870
+ description: Id of the Slack team where the conversation exists
871
+ type: string
872
+ required: true
697
873
  /emojis:
698
874
  get:
699
875
  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):