@salesforce/lds-adapters-platform-slack-bridge 1.354.0-dev1 → 1.354.0-dev11
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/es/es2018/platform-slack-bridge.js +3099 -896
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfo.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/adapters/getSlackConversationInfos.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByChannelIdAndTeamId.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelsByTeamId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +24 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationPropertiesOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationRestrictionsOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeDisplayLoginOutputRepresentation.d.ts +4 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeEnterpriseUserInfoOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/SlackBridgeFileOutputRepresentation.d.ts +78 -3
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +32 -10
- package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfosOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +4879 -2610
- package/src/raml/api.raml +241 -6
- package/src/raml/luvio.raml +12 -3
package/src/raml/api.raml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
securedBy:
|
|
3
3
|
- OAuth2
|
|
4
4
|
title: Salesforce Connect API
|
|
5
|
-
version: '
|
|
5
|
+
version: '64.0'
|
|
6
6
|
mediaType: application/json
|
|
7
7
|
protocols:
|
|
8
8
|
- https
|
|
@@ -86,6 +86,9 @@ types:
|
|
|
86
86
|
description: Contains the conversation info
|
|
87
87
|
type: object
|
|
88
88
|
properties:
|
|
89
|
+
conversationHostId:
|
|
90
|
+
description: The conversation host id
|
|
91
|
+
type: string | nil
|
|
89
92
|
id:
|
|
90
93
|
description: Id of the Conversation
|
|
91
94
|
type: string
|
|
@@ -98,6 +101,9 @@ types:
|
|
|
98
101
|
isCustomEmojiSupported:
|
|
99
102
|
description: Is Custom Emoji supported?
|
|
100
103
|
type: boolean | nil
|
|
104
|
+
isExtShared:
|
|
105
|
+
description: Is this conversation externally shared?
|
|
106
|
+
type: boolean | nil
|
|
101
107
|
isGroup:
|
|
102
108
|
description: Is this a group?
|
|
103
109
|
type: boolean | nil
|
|
@@ -110,21 +116,38 @@ types:
|
|
|
110
116
|
isOpen:
|
|
111
117
|
description: Is this conversation open?
|
|
112
118
|
type: boolean | nil
|
|
119
|
+
isOrgShared:
|
|
120
|
+
description: Is this conversation org shared?
|
|
121
|
+
type: boolean | nil
|
|
122
|
+
isPendingExtShared:
|
|
123
|
+
description: Is this conversation pending external sharing?
|
|
124
|
+
type: boolean | nil
|
|
113
125
|
isPrivate:
|
|
114
126
|
description: Is this conversation private?
|
|
115
127
|
type: boolean | nil
|
|
116
128
|
isReadOnly:
|
|
117
129
|
description: Is this conversation read-only?
|
|
118
130
|
type: boolean | nil
|
|
131
|
+
isShared:
|
|
132
|
+
description: Is this conversation shared?
|
|
133
|
+
type: boolean | nil
|
|
119
134
|
isThreadOnly:
|
|
120
135
|
description: Is this conversation thread-only?
|
|
121
136
|
type: boolean | nil
|
|
137
|
+
lastRead:
|
|
138
|
+
description: The timestamp of the last read message of this conversation by
|
|
139
|
+
the current user
|
|
140
|
+
type: string | nil
|
|
122
141
|
name:
|
|
123
142
|
description: Name of the Conversation
|
|
124
143
|
type: string
|
|
125
144
|
numOfMembers:
|
|
126
145
|
description: Number of members in the Conversation
|
|
127
146
|
type: integer | nil
|
|
147
|
+
properties:
|
|
148
|
+
description: The properties of the conversation
|
|
149
|
+
required: false
|
|
150
|
+
type: SlackBridgeConversationPropertiesOutputRepresentation | nil
|
|
128
151
|
shouldCacheCustomEmoji:
|
|
129
152
|
description: Should the Custom Emojis be cached?
|
|
130
153
|
type: boolean | nil
|
|
@@ -217,6 +240,16 @@ types:
|
|
|
217
240
|
conversationInfo:
|
|
218
241
|
description: The full information describing this conversation
|
|
219
242
|
type: SlackBridgeConversationInfoOutputRepresentation | nil
|
|
243
|
+
conversationInfos:
|
|
244
|
+
description: A collection of related conversations
|
|
245
|
+
type: array
|
|
246
|
+
items:
|
|
247
|
+
type: SlackBridgeConversationInfoOutputRepresentation
|
|
248
|
+
emojis:
|
|
249
|
+
description: A collection of emojis used in this conversation
|
|
250
|
+
type: array
|
|
251
|
+
items:
|
|
252
|
+
type: SlackBridgeEmojiOutputRepresentation
|
|
220
253
|
history:
|
|
221
254
|
description: A segment of this conversation's message history, either part
|
|
222
255
|
of the top-level conversation or a single message's thread of replies
|
|
@@ -238,6 +271,39 @@ types:
|
|
|
238
271
|
description: The websocket URL to subscribe to RTM topics associated with
|
|
239
272
|
the conversation
|
|
240
273
|
type: string | nil
|
|
274
|
+
SlackBridgeConversationPropertiesOutputRepresentation:
|
|
275
|
+
description: Properties of a conversation
|
|
276
|
+
type: object
|
|
277
|
+
properties:
|
|
278
|
+
atChannelRestricted:
|
|
279
|
+
description: Is @channel restricted
|
|
280
|
+
type: boolean | nil
|
|
281
|
+
atHereRestricted:
|
|
282
|
+
description: Is @here restricted
|
|
283
|
+
type: boolean | nil
|
|
284
|
+
huddlesRestricted:
|
|
285
|
+
description: Are huddles restricted
|
|
286
|
+
type: boolean | nil
|
|
287
|
+
postingRestrictedTo:
|
|
288
|
+
description: Posting restrictions
|
|
289
|
+
type: SlackBridgeConversationRestrictionsOutputRepresentation | nil
|
|
290
|
+
threadsRestrictedTo:
|
|
291
|
+
description: Thread replying restrictions
|
|
292
|
+
type: SlackBridgeConversationRestrictionsOutputRepresentation | nil
|
|
293
|
+
SlackBridgeConversationRestrictionsOutputRepresentation:
|
|
294
|
+
description: Restrictions on a conversation
|
|
295
|
+
type: object
|
|
296
|
+
properties:
|
|
297
|
+
type:
|
|
298
|
+
description: Types
|
|
299
|
+
type: array
|
|
300
|
+
items:
|
|
301
|
+
type: string
|
|
302
|
+
user:
|
|
303
|
+
description: Users
|
|
304
|
+
type: array
|
|
305
|
+
items:
|
|
306
|
+
type: string
|
|
241
307
|
SlackBridgeDisplayLoginOutputRepresentation:
|
|
242
308
|
description: Contains Salesforce Org info and Slack Team info
|
|
243
309
|
type: object
|
|
@@ -247,7 +313,7 @@ types:
|
|
|
247
313
|
type: string
|
|
248
314
|
slackTeam:
|
|
249
315
|
description: Slack Team Info
|
|
250
|
-
type: SlackBridgeSlackTeamOutputRepresentation
|
|
316
|
+
type: SlackBridgeSlackTeamOutputRepresentation | nil
|
|
251
317
|
SlackBridgeEmojiOutputRepresentation:
|
|
252
318
|
description: Contains the details of a Slack Emoji
|
|
253
319
|
type: object
|
|
@@ -294,6 +360,28 @@ types:
|
|
|
294
360
|
type: array
|
|
295
361
|
items:
|
|
296
362
|
type: SlackBridgeEmojiOutputRepresentation
|
|
363
|
+
SlackBridgeEnterpriseUserInfoOutputRepresentation:
|
|
364
|
+
description: Contains the details of Slack Enterprise User object
|
|
365
|
+
type: object
|
|
366
|
+
properties:
|
|
367
|
+
enterpriseId:
|
|
368
|
+
description: Enterprise org id
|
|
369
|
+
type: string
|
|
370
|
+
enterpriseName:
|
|
371
|
+
description: Enterprise org name
|
|
372
|
+
type: string
|
|
373
|
+
id:
|
|
374
|
+
description: Slack User id
|
|
375
|
+
type: string
|
|
376
|
+
isAdmin:
|
|
377
|
+
description: Is Slack User an admin?
|
|
378
|
+
type: boolean
|
|
379
|
+
isOwner:
|
|
380
|
+
description: Is Slack User an owner?
|
|
381
|
+
type: boolean
|
|
382
|
+
isPrimaryOwner:
|
|
383
|
+
description: Is Slack User aa primary owner?
|
|
384
|
+
type: boolean
|
|
297
385
|
SlackBridgeFileInputRepresentation:
|
|
298
386
|
description: Contains the parameters to upload a file to Slack
|
|
299
387
|
type: object
|
|
@@ -327,7 +415,7 @@ types:
|
|
|
327
415
|
description: Title of file.
|
|
328
416
|
type: string
|
|
329
417
|
SlackBridgeFileOutputRepresentation:
|
|
330
|
-
description: Contains the details of
|
|
418
|
+
description: Contains the details of a Slack file
|
|
331
419
|
type: object
|
|
332
420
|
properties:
|
|
333
421
|
contentDocument:
|
|
@@ -345,12 +433,88 @@ types:
|
|
|
345
433
|
name:
|
|
346
434
|
description: Name of the File
|
|
347
435
|
type: string
|
|
436
|
+
prettyType:
|
|
437
|
+
description: Pretty type of the File
|
|
438
|
+
required: false
|
|
439
|
+
type: string | nil
|
|
348
440
|
size:
|
|
349
441
|
description: Size of the File
|
|
350
442
|
type: integer | nil
|
|
351
443
|
slackPermalink:
|
|
352
444
|
description: Slack Permalink for the File
|
|
353
445
|
type: string
|
|
446
|
+
thumb1024:
|
|
447
|
+
description: Thumbnail URL (1024 height)
|
|
448
|
+
type: string | nil
|
|
449
|
+
thumb1024H:
|
|
450
|
+
description: Thumbnail 1024 height
|
|
451
|
+
type: integer | nil
|
|
452
|
+
thumb1024W:
|
|
453
|
+
description: Thumbnail 1024 width
|
|
454
|
+
type: integer | nil
|
|
455
|
+
thumb360:
|
|
456
|
+
description: Thumbnail URL (360 height)
|
|
457
|
+
type: string | nil
|
|
458
|
+
thumb360H:
|
|
459
|
+
description: Thumbnail 360 height
|
|
460
|
+
type: integer | nil
|
|
461
|
+
thumb360W:
|
|
462
|
+
description: Thumbnail 360 width
|
|
463
|
+
type: integer | nil
|
|
464
|
+
thumb480:
|
|
465
|
+
description: Thumbnail URL (480 height)
|
|
466
|
+
type: string | nil
|
|
467
|
+
thumb480H:
|
|
468
|
+
description: Thumbnail 480 height
|
|
469
|
+
type: integer | nil
|
|
470
|
+
thumb480W:
|
|
471
|
+
description: Thumbnail 480 width
|
|
472
|
+
type: integer | nil
|
|
473
|
+
thumb64:
|
|
474
|
+
description: Thumbnail URL (64 height)
|
|
475
|
+
type: string | nil
|
|
476
|
+
thumb720:
|
|
477
|
+
description: Thumbnail URL (720 height)
|
|
478
|
+
type: string | nil
|
|
479
|
+
thumb720H:
|
|
480
|
+
description: Thumbnail 720 height
|
|
481
|
+
type: integer | nil
|
|
482
|
+
thumb720W:
|
|
483
|
+
description: Thumbnail 720 width
|
|
484
|
+
type: integer | nil
|
|
485
|
+
thumb80:
|
|
486
|
+
description: Thumbnail URL (80 height)
|
|
487
|
+
type: string | nil
|
|
488
|
+
thumb800:
|
|
489
|
+
description: Thumbnail URL (800 height)
|
|
490
|
+
type: string | nil
|
|
491
|
+
thumb800H:
|
|
492
|
+
description: Thumbnail 800 height
|
|
493
|
+
type: integer | nil
|
|
494
|
+
thumb800W:
|
|
495
|
+
description: Thumbnail 800 width
|
|
496
|
+
type: integer | nil
|
|
497
|
+
thumb960:
|
|
498
|
+
description: Thumbnail URL (960 height)
|
|
499
|
+
type: string | nil
|
|
500
|
+
thumbPdf:
|
|
501
|
+
description: PDF thumbnail URL
|
|
502
|
+
type: string | nil
|
|
503
|
+
thumbPdfH:
|
|
504
|
+
description: PDF thumbnail height
|
|
505
|
+
type: integer | nil
|
|
506
|
+
thumbPdfW:
|
|
507
|
+
description: PDF thumbnail width
|
|
508
|
+
type: integer | nil
|
|
509
|
+
thumbVideo:
|
|
510
|
+
description: Video thumbnail
|
|
511
|
+
type: string | nil
|
|
512
|
+
thumbVideoHeight:
|
|
513
|
+
description: Video thumbnail height
|
|
514
|
+
type: integer | nil
|
|
515
|
+
thumbVideoWidth:
|
|
516
|
+
description: Video thumbnail width
|
|
517
|
+
type: integer | nil
|
|
354
518
|
title:
|
|
355
519
|
description: Title of the File
|
|
356
520
|
type: string
|
|
@@ -629,6 +793,10 @@ types:
|
|
|
629
793
|
email:
|
|
630
794
|
description: Email of the Slack User
|
|
631
795
|
type: string | nil
|
|
796
|
+
enterpriseUser:
|
|
797
|
+
description: The enterprise user mapping
|
|
798
|
+
required: false
|
|
799
|
+
type: SlackBridgeEnterpriseUserInfoOutputRepresentation | nil
|
|
632
800
|
image24:
|
|
633
801
|
description: 24x24 version of the Slack User image
|
|
634
802
|
required: false
|
|
@@ -646,12 +814,26 @@ types:
|
|
|
646
814
|
isActive:
|
|
647
815
|
description: Is this Slack User currently active?
|
|
648
816
|
type: boolean | nil
|
|
817
|
+
isAdmin:
|
|
818
|
+
description: Is Slack User an admin?
|
|
819
|
+
type: boolean
|
|
649
820
|
isExternal:
|
|
650
821
|
description: Is Slack User external?
|
|
651
822
|
type: boolean | nil
|
|
823
|
+
isOwner:
|
|
824
|
+
description: Is Slack User an owner?
|
|
825
|
+
type: boolean
|
|
826
|
+
isPrimaryOwner:
|
|
827
|
+
description: Is Slack User aa primary owner?
|
|
828
|
+
type: boolean
|
|
829
|
+
isRestricted:
|
|
830
|
+
description: Is Slack User restricted?
|
|
831
|
+
type: boolean
|
|
832
|
+
isUltraRestricted:
|
|
833
|
+
description: Is Slack User ultra restricted?
|
|
834
|
+
type: boolean
|
|
652
835
|
isWorkflowBot:
|
|
653
|
-
description: Is
|
|
654
|
-
required: false
|
|
836
|
+
description: Is Slack User a workflow bot?
|
|
655
837
|
type: boolean
|
|
656
838
|
name:
|
|
657
839
|
description: Name of the Slack User
|
|
@@ -676,14 +858,25 @@ types:
|
|
|
676
858
|
type: string | nil
|
|
677
859
|
teamId:
|
|
678
860
|
description: Slack Workspace Id
|
|
679
|
-
type: string
|
|
861
|
+
type: string | nil
|
|
680
862
|
title:
|
|
681
863
|
description: Title of the Slack User
|
|
682
864
|
type: string | nil
|
|
865
|
+
tz:
|
|
866
|
+
description: Time zone of the Slack user, ie. America/New_York
|
|
867
|
+
required: false
|
|
868
|
+
type: string | nil
|
|
869
|
+
tzLabel:
|
|
870
|
+
description: Time zone label of the Slack user, ie. Eastern Daylight Time
|
|
871
|
+
required: false
|
|
872
|
+
type: string | nil
|
|
683
873
|
SlackBridgeUserInfosOutputRepresentation:
|
|
684
874
|
description: Contains the list of Slack User Information
|
|
685
875
|
type: object
|
|
686
876
|
properties:
|
|
877
|
+
nextMarker:
|
|
878
|
+
description: Next marker used for pagination. (Optional)
|
|
879
|
+
type: string | nil
|
|
687
880
|
searchString:
|
|
688
881
|
description: String used to search this list of conversations (Optional)
|
|
689
882
|
type: string | nil
|
|
@@ -1005,6 +1198,48 @@ types:
|
|
|
1005
1198
|
description: Id of the Slack team where the conversation exists
|
|
1006
1199
|
type: string
|
|
1007
1200
|
required: true
|
|
1201
|
+
/channels:
|
|
1202
|
+
get:
|
|
1203
|
+
displayName: getSlackConversationInfos
|
|
1204
|
+
description: Request to get a collection of a Slack conversation infos
|
|
1205
|
+
responses:
|
|
1206
|
+
'200':
|
|
1207
|
+
description: Success
|
|
1208
|
+
body:
|
|
1209
|
+
application/json:
|
|
1210
|
+
type: SlackBridgeConversationInfosOutputRepresentation
|
|
1211
|
+
queryParameters:
|
|
1212
|
+
channelIds:
|
|
1213
|
+
description: List of Channel Ids
|
|
1214
|
+
type: array
|
|
1215
|
+
required: true
|
|
1216
|
+
items:
|
|
1217
|
+
type: string
|
|
1218
|
+
(oas-collectionFormat): csv
|
|
1219
|
+
uriParameters:
|
|
1220
|
+
teamId:
|
|
1221
|
+
description: Id of the Slack team where the conversations exists
|
|
1222
|
+
type: string
|
|
1223
|
+
required: true
|
|
1224
|
+
/channels/{channelId}:
|
|
1225
|
+
get:
|
|
1226
|
+
displayName: getSlackConversationInfo
|
|
1227
|
+
description: Request to get a collection of a Slack conversation infos
|
|
1228
|
+
responses:
|
|
1229
|
+
'200':
|
|
1230
|
+
description: Success
|
|
1231
|
+
body:
|
|
1232
|
+
application/json:
|
|
1233
|
+
type: SlackBridgeConversationInfoOutputRepresentation
|
|
1234
|
+
uriParameters:
|
|
1235
|
+
channelId:
|
|
1236
|
+
description: Id of the Slack channel
|
|
1237
|
+
type: string
|
|
1238
|
+
required: true
|
|
1239
|
+
teamId:
|
|
1240
|
+
description: Id of the Slack team where the conversations exists
|
|
1241
|
+
type: string
|
|
1242
|
+
required: true
|
|
1008
1243
|
/emojis:
|
|
1009
1244
|
get:
|
|
1010
1245
|
displayName: getSlackEmojis
|
package/src/raml/luvio.raml
CHANGED
|
@@ -12,9 +12,8 @@ types:
|
|
|
12
12
|
(luvio.key):
|
|
13
13
|
uniqueKey: uniqueKey
|
|
14
14
|
SlackBridgeUserInfoOutputRepresentation:
|
|
15
|
-
(luvio.ttl):
|
|
15
|
+
(luvio.ttl): 900000
|
|
16
16
|
(luvio.key):
|
|
17
|
-
teamId: teamId
|
|
18
17
|
slackUserId: slackUserId
|
|
19
18
|
SlackBridgePostMessageOutputRepresentation:
|
|
20
19
|
(luvio.key):
|
|
@@ -36,6 +35,7 @@ types:
|
|
|
36
35
|
(luvio.key):
|
|
37
36
|
channelId: channelId
|
|
38
37
|
SlackBridgeConversationInfoOutputRepresentation:
|
|
38
|
+
(luvio.ttl): 900000
|
|
39
39
|
(luvio.key):
|
|
40
40
|
id: id
|
|
41
41
|
SlackBridgeRecordChannelInfoOutputRepresentation:
|
|
@@ -132,6 +132,16 @@ types:
|
|
|
132
132
|
post:
|
|
133
133
|
(luvio.adapter):
|
|
134
134
|
name: postSlackMessageReactions
|
|
135
|
+
/channels:
|
|
136
|
+
get:
|
|
137
|
+
(luvio.adapter):
|
|
138
|
+
name: getSlackConversationInfos
|
|
139
|
+
/channels/{channelId}:
|
|
140
|
+
get:
|
|
141
|
+
(luvio.adapter):
|
|
142
|
+
name: getSlackConversationInfo
|
|
143
|
+
(luvio.key):
|
|
144
|
+
id: urlParams.channelId
|
|
135
145
|
/emojis:
|
|
136
146
|
get:
|
|
137
147
|
(luvio.adapter):
|
|
@@ -161,7 +171,6 @@ types:
|
|
|
161
171
|
name: getSlackUser
|
|
162
172
|
(luvio.key):
|
|
163
173
|
slackUserId: urlParams.slackUserId
|
|
164
|
-
teamId: urlParams.teamId
|
|
165
174
|
/related_threads/entity/{entityId}:
|
|
166
175
|
get:
|
|
167
176
|
(luvio.adapter):
|