@salesforce/lds-adapters-platform-slack-bridge 1.333.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
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$6, typeCheckConfig as typeCheckConfig$c, StoreKeyMap, createResourceParams as createResourceParams$c } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$i, StoreKeyMap, createResourceParams as createResourceParams$i } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -73,6 +73,7 @@ const keyPrefix = 'SlackBridge';
73
73
 
74
74
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
75
75
  const { isArray: ArrayIsArray } = Array;
76
+ const { stringify: JSONStringify } = JSON;
76
77
  function equalsArray(a, b, equalsItem) {
77
78
  const aLength = a.length;
78
79
  const bLength = b.length;
@@ -111,196 +112,73 @@ function createLink(ref) {
111
112
  };
112
113
  }
113
114
 
114
- const VERSION$g = "f4f8dd4ae465a32e7bda2bd6dd6dca13";
115
- function validate$g(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
115
+ const VERSION$j = "a398e130daf23612644f70d0705347e8";
116
+ function validate$j(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
116
117
  const v_error = (() => {
117
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
118
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
119
120
  }
120
- const obj_id = obj.id;
121
- const path_id = path + '.id';
122
- if (typeof obj_id !== 'string') {
123
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
124
- }
125
- const obj_isArchived = obj.isArchived;
126
- const path_isArchived = path + '.isArchived';
127
- if (typeof obj_isArchived !== 'boolean') {
128
- return new TypeError('Expected "boolean" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
129
- }
130
- const obj_isChannel = obj.isChannel;
131
- const path_isChannel = path + '.isChannel';
132
- if (typeof obj_isChannel !== 'boolean') {
133
- return new TypeError('Expected "boolean" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
121
+ const obj_altText = obj.altText;
122
+ const path_altText = path + '.altText';
123
+ if (typeof obj_altText !== 'string') {
124
+ return new TypeError('Expected "string" but received "' + typeof obj_altText + '" (at "' + path_altText + '")');
134
125
  }
135
- const obj_isCustomEmojiSupported = obj.isCustomEmojiSupported;
136
- const path_isCustomEmojiSupported = path + '.isCustomEmojiSupported';
137
- let obj_isCustomEmojiSupported_union0 = null;
138
- const obj_isCustomEmojiSupported_union0_error = (() => {
139
- if (typeof obj_isCustomEmojiSupported !== 'boolean') {
140
- return new TypeError('Expected "boolean" but received "' + typeof obj_isCustomEmojiSupported + '" (at "' + path_isCustomEmojiSupported + '")');
126
+ const obj_isCustom = obj.isCustom;
127
+ const path_isCustom = path + '.isCustom';
128
+ let obj_isCustom_union0 = null;
129
+ const obj_isCustom_union0_error = (() => {
130
+ if (typeof obj_isCustom !== 'boolean') {
131
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
141
132
  }
142
133
  })();
143
- if (obj_isCustomEmojiSupported_union0_error != null) {
144
- obj_isCustomEmojiSupported_union0 = obj_isCustomEmojiSupported_union0_error.message;
134
+ if (obj_isCustom_union0_error != null) {
135
+ obj_isCustom_union0 = obj_isCustom_union0_error.message;
145
136
  }
146
- let obj_isCustomEmojiSupported_union1 = null;
147
- const obj_isCustomEmojiSupported_union1_error = (() => {
148
- if (obj_isCustomEmojiSupported !== null) {
149
- return new TypeError('Expected "null" but received "' + typeof obj_isCustomEmojiSupported + '" (at "' + path_isCustomEmojiSupported + '")');
137
+ let obj_isCustom_union1 = null;
138
+ const obj_isCustom_union1_error = (() => {
139
+ if (obj_isCustom !== null) {
140
+ return new TypeError('Expected "null" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
150
141
  }
151
142
  })();
152
- if (obj_isCustomEmojiSupported_union1_error != null) {
153
- obj_isCustomEmojiSupported_union1 = obj_isCustomEmojiSupported_union1_error.message;
143
+ if (obj_isCustom_union1_error != null) {
144
+ obj_isCustom_union1 = obj_isCustom_union1_error.message;
154
145
  }
155
- if (obj_isCustomEmojiSupported_union0 && obj_isCustomEmojiSupported_union1) {
156
- let message = 'Object doesn\'t match union (at "' + path_isCustomEmojiSupported + '")';
157
- message += '\n' + obj_isCustomEmojiSupported_union0.split('\n').map((line) => '\t' + line).join('\n');
158
- message += '\n' + obj_isCustomEmojiSupported_union1.split('\n').map((line) => '\t' + line).join('\n');
146
+ if (obj_isCustom_union0 && obj_isCustom_union1) {
147
+ let message = 'Object doesn\'t match union (at "' + path_isCustom + '")';
148
+ message += '\n' + obj_isCustom_union0.split('\n').map((line) => '\t' + line).join('\n');
149
+ message += '\n' + obj_isCustom_union1.split('\n').map((line) => '\t' + line).join('\n');
159
150
  return new TypeError(message);
160
151
  }
161
- const obj_isGroup = obj.isGroup;
162
- const path_isGroup = path + '.isGroup';
163
- if (typeof obj_isGroup !== 'boolean') {
164
- return new TypeError('Expected "boolean" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
165
- }
166
- const obj_isIm = obj.isIm;
167
- const path_isIm = path + '.isIm';
168
- if (typeof obj_isIm !== 'boolean') {
169
- return new TypeError('Expected "boolean" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
170
- }
171
- const obj_isMember = obj.isMember;
172
- const path_isMember = path + '.isMember';
173
- if (typeof obj_isMember !== 'boolean') {
174
- return new TypeError('Expected "boolean" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
175
- }
176
- const obj_isOpen = obj.isOpen;
177
- const path_isOpen = path + '.isOpen';
178
- if (typeof obj_isOpen !== 'boolean') {
179
- return new TypeError('Expected "boolean" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
180
- }
181
- const obj_isPrivate = obj.isPrivate;
182
- const path_isPrivate = path + '.isPrivate';
183
- if (typeof obj_isPrivate !== 'boolean') {
184
- return new TypeError('Expected "boolean" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
185
- }
186
- const obj_isReadOnly = obj.isReadOnly;
187
- const path_isReadOnly = path + '.isReadOnly';
188
- if (typeof obj_isReadOnly !== 'boolean') {
189
- return new TypeError('Expected "boolean" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
190
- }
191
- const obj_isThreadOnly = obj.isThreadOnly;
192
- const path_isThreadOnly = path + '.isThreadOnly';
193
- if (typeof obj_isThreadOnly !== 'boolean') {
194
- return new TypeError('Expected "boolean" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
195
- }
196
152
  const obj_name = obj.name;
197
153
  const path_name = path + '.name';
198
154
  if (typeof obj_name !== 'string') {
199
155
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
200
156
  }
201
- const obj_numOfMembers = obj.numOfMembers;
202
- const path_numOfMembers = path + '.numOfMembers';
203
- let obj_numOfMembers_union0 = null;
204
- const obj_numOfMembers_union0_error = (() => {
205
- if (typeof obj_numOfMembers !== 'number' || (typeof obj_numOfMembers === 'number' && Math.floor(obj_numOfMembers) !== obj_numOfMembers)) {
206
- return new TypeError('Expected "integer" but received "' + typeof obj_numOfMembers + '" (at "' + path_numOfMembers + '")');
207
- }
208
- })();
209
- if (obj_numOfMembers_union0_error != null) {
210
- obj_numOfMembers_union0 = obj_numOfMembers_union0_error.message;
211
- }
212
- let obj_numOfMembers_union1 = null;
213
- const obj_numOfMembers_union1_error = (() => {
214
- if (obj_numOfMembers !== null) {
215
- return new TypeError('Expected "null" but received "' + typeof obj_numOfMembers + '" (at "' + path_numOfMembers + '")');
216
- }
217
- })();
218
- if (obj_numOfMembers_union1_error != null) {
219
- obj_numOfMembers_union1 = obj_numOfMembers_union1_error.message;
220
- }
221
- if (obj_numOfMembers_union0 && obj_numOfMembers_union1) {
222
- let message = 'Object doesn\'t match union (at "' + path_numOfMembers + '")';
223
- message += '\n' + obj_numOfMembers_union0.split('\n').map((line) => '\t' + line).join('\n');
224
- message += '\n' + obj_numOfMembers_union1.split('\n').map((line) => '\t' + line).join('\n');
225
- return new TypeError(message);
226
- }
227
- const obj_shouldCacheCustomEmoji = obj.shouldCacheCustomEmoji;
228
- const path_shouldCacheCustomEmoji = path + '.shouldCacheCustomEmoji';
229
- let obj_shouldCacheCustomEmoji_union0 = null;
230
- const obj_shouldCacheCustomEmoji_union0_error = (() => {
231
- if (typeof obj_shouldCacheCustomEmoji !== 'boolean') {
232
- return new TypeError('Expected "boolean" but received "' + typeof obj_shouldCacheCustomEmoji + '" (at "' + path_shouldCacheCustomEmoji + '")');
233
- }
234
- })();
235
- if (obj_shouldCacheCustomEmoji_union0_error != null) {
236
- obj_shouldCacheCustomEmoji_union0 = obj_shouldCacheCustomEmoji_union0_error.message;
237
- }
238
- let obj_shouldCacheCustomEmoji_union1 = null;
239
- const obj_shouldCacheCustomEmoji_union1_error = (() => {
240
- if (obj_shouldCacheCustomEmoji !== null) {
241
- return new TypeError('Expected "null" but received "' + typeof obj_shouldCacheCustomEmoji + '" (at "' + path_shouldCacheCustomEmoji + '")');
242
- }
243
- })();
244
- if (obj_shouldCacheCustomEmoji_union1_error != null) {
245
- obj_shouldCacheCustomEmoji_union1 = obj_shouldCacheCustomEmoji_union1_error.message;
157
+ const obj_unicode = obj.unicode;
158
+ const path_unicode = path + '.unicode';
159
+ if (typeof obj_unicode !== 'string') {
160
+ return new TypeError('Expected "string" but received "' + typeof obj_unicode + '" (at "' + path_unicode + '")');
246
161
  }
247
- if (obj_shouldCacheCustomEmoji_union0 && obj_shouldCacheCustomEmoji_union1) {
248
- let message = 'Object doesn\'t match union (at "' + path_shouldCacheCustomEmoji + '")';
249
- message += '\n' + obj_shouldCacheCustomEmoji_union0.split('\n').map((line) => '\t' + line).join('\n');
250
- message += '\n' + obj_shouldCacheCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
251
- return new TypeError(message);
162
+ const obj_url = obj.url;
163
+ const path_url = path + '.url';
164
+ if (typeof obj_url !== 'string') {
165
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
252
166
  }
253
167
  })();
254
168
  return v_error === undefined ? null : v_error;
255
169
  }
256
- const select$q = function SlackBridgeConversationInfoOutputRepresentationSelect() {
170
+ const select$y = function SlackBridgeEmojiOutputRepresentationSelect() {
257
171
  return {
258
172
  kind: 'Fragment',
259
- version: VERSION$g,
173
+ version: VERSION$j,
260
174
  private: [],
261
175
  selections: [
262
176
  {
263
- name: 'id',
264
- kind: 'Scalar'
265
- },
266
- {
267
- name: 'isArchived',
268
- kind: 'Scalar'
269
- },
270
- {
271
- name: 'isChannel',
272
- kind: 'Scalar'
273
- },
274
- {
275
- name: 'isCustomEmojiSupported',
276
- kind: 'Scalar'
277
- },
278
- {
279
- name: 'isGroup',
280
- kind: 'Scalar'
281
- },
282
- {
283
- name: 'isIm',
284
- kind: 'Scalar'
285
- },
286
- {
287
- name: 'isMember',
288
- kind: 'Scalar'
289
- },
290
- {
291
- name: 'isOpen',
292
- kind: 'Scalar'
293
- },
294
- {
295
- name: 'isPrivate',
296
- kind: 'Scalar'
297
- },
298
- {
299
- name: 'isReadOnly',
177
+ name: 'altText',
300
178
  kind: 'Scalar'
301
179
  },
302
180
  {
303
- name: 'isThreadOnly',
181
+ name: 'isCustom',
304
182
  kind: 'Scalar'
305
183
  },
306
184
  {
@@ -308,65 +186,20 @@ const select$q = function SlackBridgeConversationInfoOutputRepresentationSelect(
308
186
  kind: 'Scalar'
309
187
  },
310
188
  {
311
- name: 'numOfMembers',
189
+ name: 'unicode',
312
190
  kind: 'Scalar'
313
191
  },
314
192
  {
315
- name: 'shouldCacheCustomEmoji',
193
+ name: 'url',
316
194
  kind: 'Scalar'
317
195
  }
318
196
  ]
319
197
  };
320
198
  };
321
- function equals$g(existing, incoming) {
322
- const existing_isArchived = existing.isArchived;
323
- const incoming_isArchived = incoming.isArchived;
324
- if (!(existing_isArchived === incoming_isArchived)) {
325
- return false;
326
- }
327
- const existing_isChannel = existing.isChannel;
328
- const incoming_isChannel = incoming.isChannel;
329
- if (!(existing_isChannel === incoming_isChannel)) {
330
- return false;
331
- }
332
- const existing_isGroup = existing.isGroup;
333
- const incoming_isGroup = incoming.isGroup;
334
- if (!(existing_isGroup === incoming_isGroup)) {
335
- return false;
336
- }
337
- const existing_isIm = existing.isIm;
338
- const incoming_isIm = incoming.isIm;
339
- if (!(existing_isIm === incoming_isIm)) {
340
- return false;
341
- }
342
- const existing_isMember = existing.isMember;
343
- const incoming_isMember = incoming.isMember;
344
- if (!(existing_isMember === incoming_isMember)) {
345
- return false;
346
- }
347
- const existing_isOpen = existing.isOpen;
348
- const incoming_isOpen = incoming.isOpen;
349
- if (!(existing_isOpen === incoming_isOpen)) {
350
- return false;
351
- }
352
- const existing_isPrivate = existing.isPrivate;
353
- const incoming_isPrivate = incoming.isPrivate;
354
- if (!(existing_isPrivate === incoming_isPrivate)) {
355
- return false;
356
- }
357
- const existing_isReadOnly = existing.isReadOnly;
358
- const incoming_isReadOnly = incoming.isReadOnly;
359
- if (!(existing_isReadOnly === incoming_isReadOnly)) {
360
- return false;
361
- }
362
- const existing_isThreadOnly = existing.isThreadOnly;
363
- const incoming_isThreadOnly = incoming.isThreadOnly;
364
- if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
365
- return false;
366
- }
367
- const existing_id = existing.id;
368
- const incoming_id = incoming.id;
369
- if (!(existing_id === incoming_id)) {
199
+ function equals$j(existing, incoming) {
200
+ const existing_altText = existing.altText;
201
+ const incoming_altText = incoming.altText;
202
+ if (!(existing_altText === incoming_altText)) {
370
203
  return false;
371
204
  }
372
205
  const existing_name = existing.name;
@@ -374,127 +207,14 @@ function equals$g(existing, incoming) {
374
207
  if (!(existing_name === incoming_name)) {
375
208
  return false;
376
209
  }
377
- const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
378
- const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
379
- if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
210
+ const existing_unicode = existing.unicode;
211
+ const incoming_unicode = incoming.unicode;
212
+ if (!(existing_unicode === incoming_unicode)) {
380
213
  return false;
381
214
  }
382
- const existing_numOfMembers = existing.numOfMembers;
383
- const incoming_numOfMembers = incoming.numOfMembers;
384
- if (!(existing_numOfMembers === incoming_numOfMembers)) {
385
- return false;
386
- }
387
- const existing_shouldCacheCustomEmoji = existing.shouldCacheCustomEmoji;
388
- const incoming_shouldCacheCustomEmoji = incoming.shouldCacheCustomEmoji;
389
- if (!(existing_shouldCacheCustomEmoji === incoming_shouldCacheCustomEmoji)) {
390
- return false;
391
- }
392
- return true;
393
- }
394
-
395
- const VERSION$f = "a398e130daf23612644f70d0705347e8";
396
- function validate$f(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
397
- const v_error = (() => {
398
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
399
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
400
- }
401
- const obj_altText = obj.altText;
402
- const path_altText = path + '.altText';
403
- if (typeof obj_altText !== 'string') {
404
- return new TypeError('Expected "string" but received "' + typeof obj_altText + '" (at "' + path_altText + '")');
405
- }
406
- const obj_isCustom = obj.isCustom;
407
- const path_isCustom = path + '.isCustom';
408
- let obj_isCustom_union0 = null;
409
- const obj_isCustom_union0_error = (() => {
410
- if (typeof obj_isCustom !== 'boolean') {
411
- return new TypeError('Expected "boolean" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
412
- }
413
- })();
414
- if (obj_isCustom_union0_error != null) {
415
- obj_isCustom_union0 = obj_isCustom_union0_error.message;
416
- }
417
- let obj_isCustom_union1 = null;
418
- const obj_isCustom_union1_error = (() => {
419
- if (obj_isCustom !== null) {
420
- return new TypeError('Expected "null" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
421
- }
422
- })();
423
- if (obj_isCustom_union1_error != null) {
424
- obj_isCustom_union1 = obj_isCustom_union1_error.message;
425
- }
426
- if (obj_isCustom_union0 && obj_isCustom_union1) {
427
- let message = 'Object doesn\'t match union (at "' + path_isCustom + '")';
428
- message += '\n' + obj_isCustom_union0.split('\n').map((line) => '\t' + line).join('\n');
429
- message += '\n' + obj_isCustom_union1.split('\n').map((line) => '\t' + line).join('\n');
430
- return new TypeError(message);
431
- }
432
- const obj_name = obj.name;
433
- const path_name = path + '.name';
434
- if (typeof obj_name !== 'string') {
435
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
436
- }
437
- const obj_unicode = obj.unicode;
438
- const path_unicode = path + '.unicode';
439
- if (typeof obj_unicode !== 'string') {
440
- return new TypeError('Expected "string" but received "' + typeof obj_unicode + '" (at "' + path_unicode + '")');
441
- }
442
- const obj_url = obj.url;
443
- const path_url = path + '.url';
444
- if (typeof obj_url !== 'string') {
445
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
446
- }
447
- })();
448
- return v_error === undefined ? null : v_error;
449
- }
450
- const select$p = function SlackBridgeEmojiOutputRepresentationSelect() {
451
- return {
452
- kind: 'Fragment',
453
- version: VERSION$f,
454
- private: [],
455
- selections: [
456
- {
457
- name: 'altText',
458
- kind: 'Scalar'
459
- },
460
- {
461
- name: 'isCustom',
462
- kind: 'Scalar'
463
- },
464
- {
465
- name: 'name',
466
- kind: 'Scalar'
467
- },
468
- {
469
- name: 'unicode',
470
- kind: 'Scalar'
471
- },
472
- {
473
- name: 'url',
474
- kind: 'Scalar'
475
- }
476
- ]
477
- };
478
- };
479
- function equals$f(existing, incoming) {
480
- const existing_altText = existing.altText;
481
- const incoming_altText = incoming.altText;
482
- if (!(existing_altText === incoming_altText)) {
483
- return false;
484
- }
485
- const existing_name = existing.name;
486
- const incoming_name = incoming.name;
487
- if (!(existing_name === incoming_name)) {
488
- return false;
489
- }
490
- const existing_unicode = existing.unicode;
491
- const incoming_unicode = incoming.unicode;
492
- if (!(existing_unicode === incoming_unicode)) {
493
- return false;
494
- }
495
- const existing_url = existing.url;
496
- const incoming_url = incoming.url;
497
- if (!(existing_url === incoming_url)) {
215
+ const existing_url = existing.url;
216
+ const incoming_url = incoming.url;
217
+ if (!(existing_url === incoming_url)) {
498
218
  return false;
499
219
  }
500
220
  const existing_isCustom = existing.isCustom;
@@ -505,9 +225,9 @@ function equals$f(existing, incoming) {
505
225
  return true;
506
226
  }
507
227
 
508
- const TTL = 300000;
509
- const VERSION$e = "1c89c1c8379c0e55b8f94fecd03d8775";
510
- function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
228
+ const TTL = 600000;
229
+ const VERSION$i = "1c89c1c8379c0e55b8f94fecd03d8775";
230
+ function validate$i(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
511
231
  const v_error = (() => {
512
232
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
513
233
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -702,7 +422,7 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
702
422
  const path_statusEmoji = path + '.statusEmoji';
703
423
  let obj_statusEmoji_union0 = null;
704
424
  const obj_statusEmoji_union0_error = (() => {
705
- const referencepath_statusEmojiValidationError = validate$f(obj_statusEmoji, path_statusEmoji);
425
+ const referencepath_statusEmojiValidationError = validate$j(obj_statusEmoji, path_statusEmoji);
706
426
  if (referencepath_statusEmojiValidationError !== null) {
707
427
  let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
708
428
  message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -740,25 +460,25 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
740
460
  })();
741
461
  return v_error === undefined ? null : v_error;
742
462
  }
743
- const RepresentationType$a = 'SlackBridgeUserInfoOutputRepresentation';
744
- function keyBuilder$i(luvio, config) {
745
- return keyPrefix + '::' + RepresentationType$a + ':' + config.teamId + ':' + config.slackUserId;
463
+ const RepresentationType$e = 'SlackBridgeUserInfoOutputRepresentation';
464
+ function keyBuilder$t(luvio, config) {
465
+ return keyPrefix + '::' + RepresentationType$e + ':' + config.teamId + ':' + config.slackUserId;
746
466
  }
747
- function keyBuilderFromType$4(luvio, object) {
467
+ function keyBuilderFromType$8(luvio, object) {
748
468
  const keyParams = {
749
469
  teamId: object.teamId,
750
470
  slackUserId: object.slackUserId
751
471
  };
752
- return keyBuilder$i(luvio, keyParams);
472
+ return keyBuilder$t(luvio, keyParams);
753
473
  }
754
- function normalize$a(input, existing, path, luvio, store, timestamp) {
474
+ function normalize$e(input, existing, path, luvio, store, timestamp) {
755
475
  return input;
756
476
  }
757
- const select$o = function SlackBridgeUserInfoOutputRepresentationSelect() {
758
- const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$p();
477
+ const select$x = function SlackBridgeUserInfoOutputRepresentationSelect() {
478
+ const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$y();
759
479
  return {
760
480
  kind: 'Fragment',
761
- version: VERSION$e,
481
+ version: VERSION$i,
762
482
  private: [],
763
483
  selections: [
764
484
  {
@@ -826,7 +546,7 @@ const select$o = function SlackBridgeUserInfoOutputRepresentationSelect() {
826
546
  ]
827
547
  };
828
548
  };
829
- function equals$e(existing, incoming) {
549
+ function equals$i(existing, incoming) {
830
550
  const existing_bot = existing.bot;
831
551
  const incoming_bot = incoming.bot;
832
552
  if (!(existing_bot === incoming_bot)) {
@@ -902,98 +622,413 @@ function equals$e(existing, incoming) {
902
622
  if (!(existing_statusEmoji === incoming_statusEmoji
903
623
  || (existing_statusEmoji != null &&
904
624
  incoming_statusEmoji != null &&
905
- equals$f(existing_statusEmoji, incoming_statusEmoji)))) {
625
+ equals$j(existing_statusEmoji, incoming_statusEmoji)))) {
906
626
  return false;
907
627
  }
908
628
  return true;
909
629
  }
910
- const ingest$a = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
630
+ const ingest$e = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
911
631
  if (process.env.NODE_ENV !== 'production') {
912
- const validateError = validate$e(input);
632
+ const validateError = validate$i(input);
913
633
  if (validateError !== null) {
914
634
  throw validateError;
915
635
  }
916
636
  }
917
- const key = keyBuilderFromType$4(luvio, input);
637
+ const key = keyBuilderFromType$8(luvio, input);
918
638
  const ttlToUse = TTL;
919
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$e, RepresentationType$a, equals$e);
639
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "SlackBridge", VERSION$i, RepresentationType$e, equals$i);
920
640
  return createLink(key);
921
641
  };
922
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
642
+ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
923
643
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
924
- const rootKey = keyBuilderFromType$4(luvio, input);
644
+ const rootKey = keyBuilderFromType$8(luvio, input);
925
645
  rootKeySet.set(rootKey, {
926
646
  namespace: keyPrefix,
927
- representationName: RepresentationType$a,
647
+ representationName: RepresentationType$e,
928
648
  mergeable: false
929
649
  });
930
650
  }
931
651
 
932
- const VERSION$d = "c7dec6b60c7d567a7835fbdd84d3e67e";
933
- function validate$d(obj, path = 'SlackBridgeReactionOutputRepresentation') {
652
+ const VERSION$h = "77e079f223fc937e8ca5847158ca51a5";
653
+ function validate$h(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
934
654
  const v_error = (() => {
935
655
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
936
656
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
937
657
  }
938
- const obj_count = obj.count;
939
- const path_count = path + '.count';
940
- if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
941
- return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
658
+ const obj_id = obj.id;
659
+ const path_id = path + '.id';
660
+ if (typeof obj_id !== 'string') {
661
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
662
+ }
663
+ const obj_isArchived = obj.isArchived;
664
+ const path_isArchived = path + '.isArchived';
665
+ if (typeof obj_isArchived !== 'boolean') {
666
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
667
+ }
668
+ const obj_isChannel = obj.isChannel;
669
+ const path_isChannel = path + '.isChannel';
670
+ if (typeof obj_isChannel !== 'boolean') {
671
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isChannel + '" (at "' + path_isChannel + '")');
672
+ }
673
+ const obj_isCustomEmojiSupported = obj.isCustomEmojiSupported;
674
+ const path_isCustomEmojiSupported = path + '.isCustomEmojiSupported';
675
+ let obj_isCustomEmojiSupported_union0 = null;
676
+ const obj_isCustomEmojiSupported_union0_error = (() => {
677
+ if (typeof obj_isCustomEmojiSupported !== 'boolean') {
678
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isCustomEmojiSupported + '" (at "' + path_isCustomEmojiSupported + '")');
679
+ }
680
+ })();
681
+ if (obj_isCustomEmojiSupported_union0_error != null) {
682
+ obj_isCustomEmojiSupported_union0 = obj_isCustomEmojiSupported_union0_error.message;
683
+ }
684
+ let obj_isCustomEmojiSupported_union1 = null;
685
+ const obj_isCustomEmojiSupported_union1_error = (() => {
686
+ if (obj_isCustomEmojiSupported !== null) {
687
+ return new TypeError('Expected "null" but received "' + typeof obj_isCustomEmojiSupported + '" (at "' + path_isCustomEmojiSupported + '")');
688
+ }
689
+ })();
690
+ if (obj_isCustomEmojiSupported_union1_error != null) {
691
+ obj_isCustomEmojiSupported_union1 = obj_isCustomEmojiSupported_union1_error.message;
692
+ }
693
+ if (obj_isCustomEmojiSupported_union0 && obj_isCustomEmojiSupported_union1) {
694
+ let message = 'Object doesn\'t match union (at "' + path_isCustomEmojiSupported + '")';
695
+ message += '\n' + obj_isCustomEmojiSupported_union0.split('\n').map((line) => '\t' + line).join('\n');
696
+ message += '\n' + obj_isCustomEmojiSupported_union1.split('\n').map((line) => '\t' + line).join('\n');
697
+ return new TypeError(message);
698
+ }
699
+ const obj_isGroup = obj.isGroup;
700
+ const path_isGroup = path + '.isGroup';
701
+ if (typeof obj_isGroup !== 'boolean') {
702
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
703
+ }
704
+ const obj_isIm = obj.isIm;
705
+ const path_isIm = path + '.isIm';
706
+ if (typeof obj_isIm !== 'boolean') {
707
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
708
+ }
709
+ const obj_isMember = obj.isMember;
710
+ const path_isMember = path + '.isMember';
711
+ if (typeof obj_isMember !== 'boolean') {
712
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
713
+ }
714
+ const obj_isOpen = obj.isOpen;
715
+ const path_isOpen = path + '.isOpen';
716
+ if (typeof obj_isOpen !== 'boolean') {
717
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
718
+ }
719
+ const obj_isPrivate = obj.isPrivate;
720
+ const path_isPrivate = path + '.isPrivate';
721
+ if (typeof obj_isPrivate !== 'boolean') {
722
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
723
+ }
724
+ const obj_isReadOnly = obj.isReadOnly;
725
+ const path_isReadOnly = path + '.isReadOnly';
726
+ if (typeof obj_isReadOnly !== 'boolean') {
727
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
728
+ }
729
+ const obj_isThreadOnly = obj.isThreadOnly;
730
+ const path_isThreadOnly = path + '.isThreadOnly';
731
+ if (typeof obj_isThreadOnly !== 'boolean') {
732
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
942
733
  }
943
734
  const obj_name = obj.name;
944
735
  const path_name = path + '.name';
945
736
  if (typeof obj_name !== 'string') {
946
737
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
947
738
  }
948
- const obj_reactedUsers = obj.reactedUsers;
949
- const path_reactedUsers = path + '.reactedUsers';
950
- if (!ArrayIsArray(obj_reactedUsers)) {
951
- return new TypeError('Expected "array" but received "' + typeof obj_reactedUsers + '" (at "' + path_reactedUsers + '")');
952
- }
953
- for (let i = 0; i < obj_reactedUsers.length; i++) {
954
- const obj_reactedUsers_item = obj_reactedUsers[i];
955
- const path_reactedUsers_item = path_reactedUsers + '[' + i + ']';
956
- if (typeof obj_reactedUsers_item !== 'string') {
957
- return new TypeError('Expected "string" but received "' + typeof obj_reactedUsers_item + '" (at "' + path_reactedUsers_item + '")');
958
- }
959
- }
960
- const obj_url = obj.url;
961
- const path_url = path + '.url';
962
- let obj_url_union0 = null;
963
- const obj_url_union0_error = (() => {
964
- if (typeof obj_url !== 'string') {
965
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
739
+ const obj_numOfMembers = obj.numOfMembers;
740
+ const path_numOfMembers = path + '.numOfMembers';
741
+ let obj_numOfMembers_union0 = null;
742
+ const obj_numOfMembers_union0_error = (() => {
743
+ if (typeof obj_numOfMembers !== 'number' || (typeof obj_numOfMembers === 'number' && Math.floor(obj_numOfMembers) !== obj_numOfMembers)) {
744
+ return new TypeError('Expected "integer" but received "' + typeof obj_numOfMembers + '" (at "' + path_numOfMembers + '")');
966
745
  }
967
746
  })();
968
- if (obj_url_union0_error != null) {
969
- obj_url_union0 = obj_url_union0_error.message;
747
+ if (obj_numOfMembers_union0_error != null) {
748
+ obj_numOfMembers_union0 = obj_numOfMembers_union0_error.message;
970
749
  }
971
- let obj_url_union1 = null;
972
- const obj_url_union1_error = (() => {
973
- if (obj_url !== null) {
974
- return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
750
+ let obj_numOfMembers_union1 = null;
751
+ const obj_numOfMembers_union1_error = (() => {
752
+ if (obj_numOfMembers !== null) {
753
+ return new TypeError('Expected "null" but received "' + typeof obj_numOfMembers + '" (at "' + path_numOfMembers + '")');
975
754
  }
976
755
  })();
977
- if (obj_url_union1_error != null) {
978
- obj_url_union1 = obj_url_union1_error.message;
756
+ if (obj_numOfMembers_union1_error != null) {
757
+ obj_numOfMembers_union1 = obj_numOfMembers_union1_error.message;
979
758
  }
980
- if (obj_url_union0 && obj_url_union1) {
981
- let message = 'Object doesn\'t match union (at "' + path_url + '")';
982
- message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
983
- message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
759
+ if (obj_numOfMembers_union0 && obj_numOfMembers_union1) {
760
+ let message = 'Object doesn\'t match union (at "' + path_numOfMembers + '")';
761
+ message += '\n' + obj_numOfMembers_union0.split('\n').map((line) => '\t' + line).join('\n');
762
+ message += '\n' + obj_numOfMembers_union1.split('\n').map((line) => '\t' + line).join('\n');
984
763
  return new TypeError(message);
985
764
  }
986
- })();
987
- return v_error === undefined ? null : v_error;
988
- }
989
- const select$n = function SlackBridgeReactionOutputRepresentationSelect() {
990
- return {
991
- kind: 'Fragment',
992
- version: VERSION$d,
993
- private: [],
994
- selections: [
995
- {
996
- name: 'count',
765
+ const obj_shouldCacheCustomEmoji = obj.shouldCacheCustomEmoji;
766
+ const path_shouldCacheCustomEmoji = path + '.shouldCacheCustomEmoji';
767
+ let obj_shouldCacheCustomEmoji_union0 = null;
768
+ const obj_shouldCacheCustomEmoji_union0_error = (() => {
769
+ if (typeof obj_shouldCacheCustomEmoji !== 'boolean') {
770
+ return new TypeError('Expected "boolean" but received "' + typeof obj_shouldCacheCustomEmoji + '" (at "' + path_shouldCacheCustomEmoji + '")');
771
+ }
772
+ })();
773
+ if (obj_shouldCacheCustomEmoji_union0_error != null) {
774
+ obj_shouldCacheCustomEmoji_union0 = obj_shouldCacheCustomEmoji_union0_error.message;
775
+ }
776
+ let obj_shouldCacheCustomEmoji_union1 = null;
777
+ const obj_shouldCacheCustomEmoji_union1_error = (() => {
778
+ if (obj_shouldCacheCustomEmoji !== null) {
779
+ return new TypeError('Expected "null" but received "' + typeof obj_shouldCacheCustomEmoji + '" (at "' + path_shouldCacheCustomEmoji + '")');
780
+ }
781
+ })();
782
+ if (obj_shouldCacheCustomEmoji_union1_error != null) {
783
+ obj_shouldCacheCustomEmoji_union1 = obj_shouldCacheCustomEmoji_union1_error.message;
784
+ }
785
+ if (obj_shouldCacheCustomEmoji_union0 && obj_shouldCacheCustomEmoji_union1) {
786
+ let message = 'Object doesn\'t match union (at "' + path_shouldCacheCustomEmoji + '")';
787
+ message += '\n' + obj_shouldCacheCustomEmoji_union0.split('\n').map((line) => '\t' + line).join('\n');
788
+ message += '\n' + obj_shouldCacheCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
789
+ return new TypeError(message);
790
+ }
791
+ })();
792
+ return v_error === undefined ? null : v_error;
793
+ }
794
+ const RepresentationType$d = 'SlackBridgeConversationInfoOutputRepresentation';
795
+ function keyBuilder$s(luvio, config) {
796
+ return keyPrefix + '::' + RepresentationType$d + ':' + config.id;
797
+ }
798
+ function keyBuilderFromType$7(luvio, object) {
799
+ const keyParams = {
800
+ id: object.id
801
+ };
802
+ return keyBuilder$s(luvio, keyParams);
803
+ }
804
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
805
+ return input;
806
+ }
807
+ const select$w = function SlackBridgeConversationInfoOutputRepresentationSelect() {
808
+ return {
809
+ kind: 'Fragment',
810
+ version: VERSION$h,
811
+ private: [],
812
+ selections: [
813
+ {
814
+ name: 'id',
815
+ kind: 'Scalar'
816
+ },
817
+ {
818
+ name: 'isArchived',
819
+ kind: 'Scalar'
820
+ },
821
+ {
822
+ name: 'isChannel',
823
+ kind: 'Scalar'
824
+ },
825
+ {
826
+ name: 'isCustomEmojiSupported',
827
+ kind: 'Scalar'
828
+ },
829
+ {
830
+ name: 'isGroup',
831
+ kind: 'Scalar'
832
+ },
833
+ {
834
+ name: 'isIm',
835
+ kind: 'Scalar'
836
+ },
837
+ {
838
+ name: 'isMember',
839
+ kind: 'Scalar'
840
+ },
841
+ {
842
+ name: 'isOpen',
843
+ kind: 'Scalar'
844
+ },
845
+ {
846
+ name: 'isPrivate',
847
+ kind: 'Scalar'
848
+ },
849
+ {
850
+ name: 'isReadOnly',
851
+ kind: 'Scalar'
852
+ },
853
+ {
854
+ name: 'isThreadOnly',
855
+ kind: 'Scalar'
856
+ },
857
+ {
858
+ name: 'name',
859
+ kind: 'Scalar'
860
+ },
861
+ {
862
+ name: 'numOfMembers',
863
+ kind: 'Scalar'
864
+ },
865
+ {
866
+ name: 'shouldCacheCustomEmoji',
867
+ kind: 'Scalar'
868
+ }
869
+ ]
870
+ };
871
+ };
872
+ function equals$h(existing, incoming) {
873
+ const existing_isArchived = existing.isArchived;
874
+ const incoming_isArchived = incoming.isArchived;
875
+ if (!(existing_isArchived === incoming_isArchived)) {
876
+ return false;
877
+ }
878
+ const existing_isChannel = existing.isChannel;
879
+ const incoming_isChannel = incoming.isChannel;
880
+ if (!(existing_isChannel === incoming_isChannel)) {
881
+ return false;
882
+ }
883
+ const existing_isGroup = existing.isGroup;
884
+ const incoming_isGroup = incoming.isGroup;
885
+ if (!(existing_isGroup === incoming_isGroup)) {
886
+ return false;
887
+ }
888
+ const existing_isIm = existing.isIm;
889
+ const incoming_isIm = incoming.isIm;
890
+ if (!(existing_isIm === incoming_isIm)) {
891
+ return false;
892
+ }
893
+ const existing_isMember = existing.isMember;
894
+ const incoming_isMember = incoming.isMember;
895
+ if (!(existing_isMember === incoming_isMember)) {
896
+ return false;
897
+ }
898
+ const existing_isOpen = existing.isOpen;
899
+ const incoming_isOpen = incoming.isOpen;
900
+ if (!(existing_isOpen === incoming_isOpen)) {
901
+ return false;
902
+ }
903
+ const existing_isPrivate = existing.isPrivate;
904
+ const incoming_isPrivate = incoming.isPrivate;
905
+ if (!(existing_isPrivate === incoming_isPrivate)) {
906
+ return false;
907
+ }
908
+ const existing_isReadOnly = existing.isReadOnly;
909
+ const incoming_isReadOnly = incoming.isReadOnly;
910
+ if (!(existing_isReadOnly === incoming_isReadOnly)) {
911
+ return false;
912
+ }
913
+ const existing_isThreadOnly = existing.isThreadOnly;
914
+ const incoming_isThreadOnly = incoming.isThreadOnly;
915
+ if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
916
+ return false;
917
+ }
918
+ const existing_id = existing.id;
919
+ const incoming_id = incoming.id;
920
+ if (!(existing_id === incoming_id)) {
921
+ return false;
922
+ }
923
+ const existing_name = existing.name;
924
+ const incoming_name = incoming.name;
925
+ if (!(existing_name === incoming_name)) {
926
+ return false;
927
+ }
928
+ const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
929
+ const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
930
+ if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
931
+ return false;
932
+ }
933
+ const existing_numOfMembers = existing.numOfMembers;
934
+ const incoming_numOfMembers = incoming.numOfMembers;
935
+ if (!(existing_numOfMembers === incoming_numOfMembers)) {
936
+ return false;
937
+ }
938
+ const existing_shouldCacheCustomEmoji = existing.shouldCacheCustomEmoji;
939
+ const incoming_shouldCacheCustomEmoji = incoming.shouldCacheCustomEmoji;
940
+ if (!(existing_shouldCacheCustomEmoji === incoming_shouldCacheCustomEmoji)) {
941
+ return false;
942
+ }
943
+ return true;
944
+ }
945
+ const ingest$d = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
946
+ if (process.env.NODE_ENV !== 'production') {
947
+ const validateError = validate$h(input);
948
+ if (validateError !== null) {
949
+ throw validateError;
950
+ }
951
+ }
952
+ const key = keyBuilderFromType$7(luvio, input);
953
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
954
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$h, RepresentationType$d, equals$h);
955
+ return createLink(key);
956
+ };
957
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
958
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
959
+ const rootKey = keyBuilderFromType$7(luvio, input);
960
+ rootKeySet.set(rootKey, {
961
+ namespace: keyPrefix,
962
+ representationName: RepresentationType$d,
963
+ mergeable: false
964
+ });
965
+ }
966
+
967
+ const VERSION$g = "c7dec6b60c7d567a7835fbdd84d3e67e";
968
+ function validate$g(obj, path = 'SlackBridgeReactionOutputRepresentation') {
969
+ const v_error = (() => {
970
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
971
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
972
+ }
973
+ const obj_count = obj.count;
974
+ const path_count = path + '.count';
975
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
976
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
977
+ }
978
+ const obj_name = obj.name;
979
+ const path_name = path + '.name';
980
+ if (typeof obj_name !== 'string') {
981
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
982
+ }
983
+ const obj_reactedUsers = obj.reactedUsers;
984
+ const path_reactedUsers = path + '.reactedUsers';
985
+ if (!ArrayIsArray(obj_reactedUsers)) {
986
+ return new TypeError('Expected "array" but received "' + typeof obj_reactedUsers + '" (at "' + path_reactedUsers + '")');
987
+ }
988
+ for (let i = 0; i < obj_reactedUsers.length; i++) {
989
+ const obj_reactedUsers_item = obj_reactedUsers[i];
990
+ const path_reactedUsers_item = path_reactedUsers + '[' + i + ']';
991
+ if (typeof obj_reactedUsers_item !== 'string') {
992
+ return new TypeError('Expected "string" but received "' + typeof obj_reactedUsers_item + '" (at "' + path_reactedUsers_item + '")');
993
+ }
994
+ }
995
+ const obj_url = obj.url;
996
+ const path_url = path + '.url';
997
+ let obj_url_union0 = null;
998
+ const obj_url_union0_error = (() => {
999
+ if (typeof obj_url !== 'string') {
1000
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1001
+ }
1002
+ })();
1003
+ if (obj_url_union0_error != null) {
1004
+ obj_url_union0 = obj_url_union0_error.message;
1005
+ }
1006
+ let obj_url_union1 = null;
1007
+ const obj_url_union1_error = (() => {
1008
+ if (obj_url !== null) {
1009
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1010
+ }
1011
+ })();
1012
+ if (obj_url_union1_error != null) {
1013
+ obj_url_union1 = obj_url_union1_error.message;
1014
+ }
1015
+ if (obj_url_union0 && obj_url_union1) {
1016
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
1017
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
1018
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
1019
+ return new TypeError(message);
1020
+ }
1021
+ })();
1022
+ return v_error === undefined ? null : v_error;
1023
+ }
1024
+ const select$v = function SlackBridgeReactionOutputRepresentationSelect() {
1025
+ return {
1026
+ kind: 'Fragment',
1027
+ version: VERSION$g,
1028
+ private: [],
1029
+ selections: [
1030
+ {
1031
+ name: 'count',
997
1032
  kind: 'Scalar'
998
1033
  },
999
1034
  {
@@ -1012,7 +1047,7 @@ const select$n = function SlackBridgeReactionOutputRepresentationSelect() {
1012
1047
  ]
1013
1048
  };
1014
1049
  };
1015
- function equals$d(existing, incoming) {
1050
+ function equals$g(existing, incoming) {
1016
1051
  const existing_count = existing.count;
1017
1052
  const incoming_count = incoming.count;
1018
1053
  if (!(existing_count === incoming_count)) {
@@ -1041,8 +1076,8 @@ function equals$d(existing, incoming) {
1041
1076
  return true;
1042
1077
  }
1043
1078
 
1044
- const VERSION$c = "4634cd404d8392ac4ca9f0e1be03bfbd";
1045
- function validate$c(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
1079
+ const VERSION$f = "4634cd404d8392ac4ca9f0e1be03bfbd";
1080
+ function validate$f(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
1046
1081
  const v_error = (() => {
1047
1082
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1048
1083
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1060,10 +1095,10 @@ function validate$c(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
1060
1095
  })();
1061
1096
  return v_error === undefined ? null : v_error;
1062
1097
  }
1063
- const select$m = function SlackBridgeFileTypeOutputRepresentationSelect() {
1098
+ const select$u = function SlackBridgeFileTypeOutputRepresentationSelect() {
1064
1099
  return {
1065
1100
  kind: 'Fragment',
1066
- version: VERSION$c,
1101
+ version: VERSION$f,
1067
1102
  private: [],
1068
1103
  selections: [
1069
1104
  {
@@ -1077,7 +1112,7 @@ const select$m = function SlackBridgeFileTypeOutputRepresentationSelect() {
1077
1112
  ]
1078
1113
  };
1079
1114
  };
1080
- function equals$c(existing, incoming) {
1115
+ function equals$f(existing, incoming) {
1081
1116
  const existing_extension = existing.extension;
1082
1117
  const incoming_extension = incoming.extension;
1083
1118
  if (!(existing_extension === incoming_extension)) {
@@ -1091,8 +1126,8 @@ function equals$c(existing, incoming) {
1091
1126
  return true;
1092
1127
  }
1093
1128
 
1094
- const VERSION$b = "929dbada9eaca4bca26deee89f9d11b2";
1095
- function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
1129
+ const VERSION$e = "929dbada9eaca4bca26deee89f9d11b2";
1130
+ function validate$e(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
1096
1131
  const v_error = (() => {
1097
1132
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1098
1133
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1104,7 +1139,7 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
1104
1139
  }
1105
1140
  const obj_filetype = obj.filetype;
1106
1141
  const path_filetype = path + '.filetype';
1107
- const referencepath_filetypeValidationError = validate$c(obj_filetype, path_filetype);
1142
+ const referencepath_filetypeValidationError = validate$f(obj_filetype, path_filetype);
1108
1143
  if (referencepath_filetypeValidationError !== null) {
1109
1144
  let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
1110
1145
  message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1133,11 +1168,11 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
1133
1168
  })();
1134
1169
  return v_error === undefined ? null : v_error;
1135
1170
  }
1136
- const select$l = function SlackBridgeContentVersionOutputRepresentationSelect() {
1137
- const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$m();
1171
+ const select$t = function SlackBridgeContentVersionOutputRepresentationSelect() {
1172
+ const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$u();
1138
1173
  return {
1139
1174
  kind: 'Fragment',
1140
- version: VERSION$b,
1175
+ version: VERSION$e,
1141
1176
  private: [],
1142
1177
  selections: [
1143
1178
  {
@@ -1168,7 +1203,7 @@ const select$l = function SlackBridgeContentVersionOutputRepresentationSelect()
1168
1203
  ]
1169
1204
  };
1170
1205
  };
1171
- function equals$b(existing, incoming) {
1206
+ function equals$e(existing, incoming) {
1172
1207
  const existing_size = existing.size;
1173
1208
  const incoming_size = incoming.size;
1174
1209
  if (!(existing_size === incoming_size)) {
@@ -1196,21 +1231,21 @@ function equals$b(existing, incoming) {
1196
1231
  }
1197
1232
  const existing_filetype = existing.filetype;
1198
1233
  const incoming_filetype = incoming.filetype;
1199
- if (!(equals$c(existing_filetype, incoming_filetype))) {
1234
+ if (!(equals$f(existing_filetype, incoming_filetype))) {
1200
1235
  return false;
1201
1236
  }
1202
1237
  return true;
1203
1238
  }
1204
1239
 
1205
- const VERSION$a = "effdd259bc622bee05493fc2a3ecd276";
1206
- function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
1240
+ const VERSION$d = "effdd259bc622bee05493fc2a3ecd276";
1241
+ function validate$d(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
1207
1242
  const v_error = (() => {
1208
1243
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1209
1244
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1210
1245
  }
1211
1246
  const obj_filetype = obj.filetype;
1212
1247
  const path_filetype = path + '.filetype';
1213
- const referencepath_filetypeValidationError = validate$c(obj_filetype, path_filetype);
1248
+ const referencepath_filetypeValidationError = validate$f(obj_filetype, path_filetype);
1214
1249
  if (referencepath_filetypeValidationError !== null) {
1215
1250
  let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
1216
1251
  message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1223,7 +1258,7 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
1223
1258
  }
1224
1259
  const obj_latestPublishedVersion = obj.latestPublishedVersion;
1225
1260
  const path_latestPublishedVersion = path + '.latestPublishedVersion';
1226
- const referencepath_latestPublishedVersionValidationError = validate$b(obj_latestPublishedVersion, path_latestPublishedVersion);
1261
+ const referencepath_latestPublishedVersionValidationError = validate$e(obj_latestPublishedVersion, path_latestPublishedVersion);
1227
1262
  if (referencepath_latestPublishedVersionValidationError !== null) {
1228
1263
  let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
1229
1264
  message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1242,12 +1277,12 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
1242
1277
  })();
1243
1278
  return v_error === undefined ? null : v_error;
1244
1279
  }
1245
- const select$k = function SlackBridgeContentDocumentOutputRepresentationSelect() {
1246
- const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$m();
1247
- const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$l();
1280
+ const select$s = function SlackBridgeContentDocumentOutputRepresentationSelect() {
1281
+ const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$u();
1282
+ const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$t();
1248
1283
  return {
1249
1284
  kind: 'Fragment',
1250
- version: VERSION$a,
1285
+ version: VERSION$d,
1251
1286
  private: [],
1252
1287
  selections: [
1253
1288
  {
@@ -1275,7 +1310,7 @@ const select$k = function SlackBridgeContentDocumentOutputRepresentationSelect()
1275
1310
  ]
1276
1311
  };
1277
1312
  };
1278
- function equals$a(existing, incoming) {
1313
+ function equals$d(existing, incoming) {
1279
1314
  const existing_size = existing.size;
1280
1315
  const incoming_size = incoming.size;
1281
1316
  if (!(existing_size === incoming_size)) {
@@ -1293,26 +1328,26 @@ function equals$a(existing, incoming) {
1293
1328
  }
1294
1329
  const existing_filetype = existing.filetype;
1295
1330
  const incoming_filetype = incoming.filetype;
1296
- if (!(equals$c(existing_filetype, incoming_filetype))) {
1331
+ if (!(equals$f(existing_filetype, incoming_filetype))) {
1297
1332
  return false;
1298
1333
  }
1299
1334
  const existing_latestPublishedVersion = existing.latestPublishedVersion;
1300
1335
  const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
1301
- if (!(equals$b(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
1336
+ if (!(equals$e(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
1302
1337
  return false;
1303
1338
  }
1304
1339
  return true;
1305
1340
  }
1306
1341
 
1307
- const VERSION$9 = "3f1a7f34ee73f6a8d9677314d88bad78";
1308
- function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
1342
+ const VERSION$c = "3f1a7f34ee73f6a8d9677314d88bad78";
1343
+ function validate$c(obj, path = 'SlackBridgeFileOutputRepresentation') {
1309
1344
  const v_error = (() => {
1310
1345
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1311
1346
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1312
1347
  }
1313
1348
  const obj_contentDocument = obj.contentDocument;
1314
1349
  const path_contentDocument = path + '.contentDocument';
1315
- const referencepath_contentDocumentValidationError = validate$a(obj_contentDocument, path_contentDocument);
1350
+ const referencepath_contentDocumentValidationError = validate$d(obj_contentDocument, path_contentDocument);
1316
1351
  if (referencepath_contentDocumentValidationError !== null) {
1317
1352
  let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
1318
1353
  message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1371,24 +1406,24 @@ function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
1371
1406
  })();
1372
1407
  return v_error === undefined ? null : v_error;
1373
1408
  }
1374
- const RepresentationType$9 = 'SlackBridgeFileOutputRepresentation';
1375
- function keyBuilder$h(luvio, config) {
1376
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.uniqueKey;
1409
+ const RepresentationType$c = 'SlackBridgeFileOutputRepresentation';
1410
+ function keyBuilder$r(luvio, config) {
1411
+ return keyPrefix + '::' + RepresentationType$c + ':' + config.uniqueKey;
1377
1412
  }
1378
- function keyBuilderFromType$3(luvio, object) {
1413
+ function keyBuilderFromType$6(luvio, object) {
1379
1414
  const keyParams = {
1380
1415
  uniqueKey: object.uniqueKey
1381
1416
  };
1382
- return keyBuilder$h(luvio, keyParams);
1417
+ return keyBuilder$r(luvio, keyParams);
1383
1418
  }
1384
- function normalize$9(input, existing, path, luvio, store, timestamp) {
1419
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
1385
1420
  return input;
1386
1421
  }
1387
- const select$j = function SlackBridgeFileOutputRepresentationSelect() {
1388
- const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$k();
1422
+ const select$r = function SlackBridgeFileOutputRepresentationSelect() {
1423
+ const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$s();
1389
1424
  return {
1390
1425
  kind: 'Fragment',
1391
- version: VERSION$9,
1426
+ version: VERSION$c,
1392
1427
  private: [],
1393
1428
  selections: [
1394
1429
  {
@@ -1439,7 +1474,7 @@ const select$j = function SlackBridgeFileOutputRepresentationSelect() {
1439
1474
  ]
1440
1475
  };
1441
1476
  };
1442
- function equals$9(existing, incoming) {
1477
+ function equals$c(existing, incoming) {
1443
1478
  const existing_size = existing.size;
1444
1479
  const incoming_size = incoming.size;
1445
1480
  if (!(existing_size === incoming_size)) {
@@ -1492,39 +1527,81 @@ function equals$9(existing, incoming) {
1492
1527
  }
1493
1528
  const existing_contentDocument = existing.contentDocument;
1494
1529
  const incoming_contentDocument = incoming.contentDocument;
1495
- if (!(equals$a(existing_contentDocument, incoming_contentDocument))) {
1530
+ if (!(equals$d(existing_contentDocument, incoming_contentDocument))) {
1496
1531
  return false;
1497
1532
  }
1498
1533
  return true;
1499
1534
  }
1500
- const ingest$9 = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1535
+ const ingest$c = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1501
1536
  if (process.env.NODE_ENV !== 'production') {
1502
- const validateError = validate$9(input);
1537
+ const validateError = validate$c(input);
1503
1538
  if (validateError !== null) {
1504
1539
  throw validateError;
1505
1540
  }
1506
1541
  }
1507
- const key = keyBuilderFromType$3(luvio, input);
1542
+ const key = keyBuilderFromType$6(luvio, input);
1508
1543
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1509
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
1544
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$c, RepresentationType$c, equals$c);
1510
1545
  return createLink(key);
1511
1546
  };
1512
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1547
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
1513
1548
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1514
- const rootKey = keyBuilderFromType$3(luvio, input);
1549
+ const rootKey = keyBuilderFromType$6(luvio, input);
1515
1550
  rootKeySet.set(rootKey, {
1516
1551
  namespace: keyPrefix,
1517
- representationName: RepresentationType$9,
1552
+ representationName: RepresentationType$c,
1518
1553
  mergeable: false
1519
1554
  });
1520
1555
  }
1521
1556
 
1522
- const VERSION$8 = "2685fcb652b41bdb9cb71cc45d73e44b";
1523
- function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1557
+ const VERSION$b = "d4fb2fb522a777fd831f500fea806ebe";
1558
+ function validate$b(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1524
1559
  const v_error = (() => {
1525
1560
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1526
1561
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1527
1562
  }
1563
+ const obj_attachments = obj.attachments;
1564
+ const path_attachments = path + '.attachments';
1565
+ if (!ArrayIsArray(obj_attachments)) {
1566
+ return new TypeError('Expected "array" but received "' + typeof obj_attachments + '" (at "' + path_attachments + '")');
1567
+ }
1568
+ for (let i = 0; i < obj_attachments.length; i++) {
1569
+ const obj_attachments_item = obj_attachments[i];
1570
+ const path_attachments_item = path_attachments + '[' + i + ']';
1571
+ if (typeof obj_attachments_item !== 'object' || ArrayIsArray(obj_attachments_item) || obj_attachments_item === null) {
1572
+ return new TypeError('Expected "object" but received "' + typeof obj_attachments_item + '" (at "' + path_attachments_item + '")');
1573
+ }
1574
+ const obj_attachments_item_keys = ObjectKeys(obj_attachments_item);
1575
+ for (let i = 0; i < obj_attachments_item_keys.length; i++) {
1576
+ const key = obj_attachments_item_keys[i];
1577
+ const obj_attachments_item_prop = obj_attachments_item[key];
1578
+ const path_attachments_item_prop = path_attachments_item + '["' + key + '"]';
1579
+ if (obj_attachments_item_prop === undefined) {
1580
+ return new TypeError('Expected "defined" but received "' + typeof obj_attachments_item_prop + '" (at "' + path_attachments_item_prop + '")');
1581
+ }
1582
+ }
1583
+ }
1584
+ const obj_blocks = obj.blocks;
1585
+ const path_blocks = path + '.blocks';
1586
+ if (!ArrayIsArray(obj_blocks)) {
1587
+ return new TypeError('Expected "array" but received "' + typeof obj_blocks + '" (at "' + path_blocks + '")');
1588
+ }
1589
+ for (let i = 0; i < obj_blocks.length; i++) {
1590
+ const obj_blocks_item = obj_blocks[i];
1591
+ const path_blocks_item = path_blocks + '[' + i + ']';
1592
+ if (typeof obj_blocks_item !== 'object' || ArrayIsArray(obj_blocks_item) || obj_blocks_item === null) {
1593
+ return new TypeError('Expected "object" but received "' + typeof obj_blocks_item + '" (at "' + path_blocks_item + '")');
1594
+ }
1595
+ const obj_blocks_item_keys = ObjectKeys(obj_blocks_item);
1596
+ for (let i = 0; i < obj_blocks_item_keys.length; i++) {
1597
+ const key = obj_blocks_item_keys[i];
1598
+ const obj_blocks_item_prop = obj_blocks_item[key];
1599
+ const path_blocks_item_prop = path_blocks_item + '["' + key + '"]';
1600
+ if (obj_blocks_item_prop === undefined) {
1601
+ return new TypeError('Expected "defined" but received "' + typeof obj_blocks_item_prop + '" (at "' + path_blocks_item_prop + '")');
1602
+ }
1603
+ }
1604
+ }
1528
1605
  const obj_files = obj.files;
1529
1606
  const path_files = path + '.files';
1530
1607
  if (!ArrayIsArray(obj_files)) {
@@ -1622,7 +1699,7 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1622
1699
  for (let i = 0; i < obj_reactions.length; i++) {
1623
1700
  const obj_reactions_item = obj_reactions[i];
1624
1701
  const path_reactions_item = path_reactions + '[' + i + ']';
1625
- const referencepath_reactions_itemValidationError = validate$d(obj_reactions_item, path_reactions_item);
1702
+ const referencepath_reactions_itemValidationError = validate$g(obj_reactions_item, path_reactions_item);
1626
1703
  if (referencepath_reactions_itemValidationError !== null) {
1627
1704
  let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
1628
1705
  message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1763,14 +1840,14 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1763
1840
  })();
1764
1841
  return v_error === undefined ? null : v_error;
1765
1842
  }
1766
- const RepresentationType$8 = 'SlackBridgeMessageOutputRepresentation';
1767
- function normalize$8(input, existing, path, luvio, store, timestamp) {
1843
+ const RepresentationType$b = 'SlackBridgeMessageOutputRepresentation';
1844
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
1768
1845
  const input_files = input.files;
1769
1846
  const input_files_id = path.fullPath + '__files';
1770
1847
  for (let i = 0; i < input_files.length; i++) {
1771
1848
  const input_files_item = input_files[i];
1772
1849
  let input_files_item_id = input_files_id + '__' + i;
1773
- input_files[i] = ingest$9(input_files_item, {
1850
+ input_files[i] = ingest$c(input_files_item, {
1774
1851
  fullPath: input_files_item_id,
1775
1852
  propertyName: i,
1776
1853
  parent: {
@@ -1783,18 +1860,28 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
1783
1860
  }
1784
1861
  return input;
1785
1862
  }
1786
- const select$i = function SlackBridgeMessageOutputRepresentationSelect() {
1787
- const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$n();
1863
+ const select$q = function SlackBridgeMessageOutputRepresentationSelect() {
1864
+ const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$v();
1788
1865
  return {
1789
1866
  kind: 'Fragment',
1790
- version: VERSION$8,
1867
+ version: VERSION$b,
1791
1868
  private: [],
1792
1869
  selections: [
1870
+ {
1871
+ name: 'attachments',
1872
+ kind: 'Object',
1873
+ // any
1874
+ },
1875
+ {
1876
+ name: 'blocks',
1877
+ kind: 'Object',
1878
+ // any
1879
+ },
1793
1880
  {
1794
1881
  name: 'files',
1795
1882
  kind: 'Link',
1796
1883
  plural: true,
1797
- fragment: select$j()
1884
+ fragment: select$r()
1798
1885
  },
1799
1886
  {
1800
1887
  name: 'includesCustomEmoji',
@@ -1866,7 +1953,7 @@ const select$i = function SlackBridgeMessageOutputRepresentationSelect() {
1866
1953
  ]
1867
1954
  };
1868
1955
  };
1869
- function equals$8(existing, incoming) {
1956
+ function equals$b(existing, incoming) {
1870
1957
  const existing_isBroadcast = existing.isBroadcast;
1871
1958
  const incoming_isBroadcast = incoming.isBroadcast;
1872
1959
  if (!(existing_isBroadcast === incoming_isBroadcast)) {
@@ -1907,6 +1994,36 @@ function equals$8(existing, incoming) {
1907
1994
  if (!(existing_url === incoming_url)) {
1908
1995
  return false;
1909
1996
  }
1997
+ const existing_attachments = existing.attachments;
1998
+ const incoming_attachments = incoming.attachments;
1999
+ const equals_attachments_items = equalsArray(existing_attachments, incoming_attachments, (existing_attachments_item, incoming_attachments_item) => {
2000
+ const equals_attachments_items_props = equalsObject(existing_attachments_item, incoming_attachments_item, (existing_attachments_item_prop, incoming_attachments_item_prop) => {
2001
+ if (JSONStringify(incoming_attachments_item_prop) !== JSONStringify(existing_attachments_item_prop)) {
2002
+ return false;
2003
+ }
2004
+ });
2005
+ if (equals_attachments_items_props === false) {
2006
+ return false;
2007
+ }
2008
+ });
2009
+ if (equals_attachments_items === false) {
2010
+ return false;
2011
+ }
2012
+ const existing_blocks = existing.blocks;
2013
+ const incoming_blocks = incoming.blocks;
2014
+ const equals_blocks_items = equalsArray(existing_blocks, incoming_blocks, (existing_blocks_item, incoming_blocks_item) => {
2015
+ const equals_blocks_items_props = equalsObject(existing_blocks_item, incoming_blocks_item, (existing_blocks_item_prop, incoming_blocks_item_prop) => {
2016
+ if (JSONStringify(incoming_blocks_item_prop) !== JSONStringify(existing_blocks_item_prop)) {
2017
+ return false;
2018
+ }
2019
+ });
2020
+ if (equals_blocks_items_props === false) {
2021
+ return false;
2022
+ }
2023
+ });
2024
+ if (equals_blocks_items === false) {
2025
+ return false;
2026
+ }
1910
2027
  const existing_files = existing.files;
1911
2028
  const incoming_files = incoming.files;
1912
2029
  const equals_files_items = equalsArray(existing_files, incoming_files, (existing_files_item, incoming_files_item) => {
@@ -1930,7 +2047,7 @@ function equals$8(existing, incoming) {
1930
2047
  const existing_reactions = existing.reactions;
1931
2048
  const incoming_reactions = incoming.reactions;
1932
2049
  const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
1933
- if (!(equals$d(existing_reactions_item, incoming_reactions_item))) {
2050
+ if (!(equals$g(existing_reactions_item, incoming_reactions_item))) {
1934
2051
  return false;
1935
2052
  }
1936
2053
  });
@@ -1969,34 +2086,34 @@ function equals$8(existing, incoming) {
1969
2086
  }
1970
2087
  return true;
1971
2088
  }
1972
- const ingest$8 = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2089
+ const ingest$b = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1973
2090
  if (process.env.NODE_ENV !== 'production') {
1974
- const validateError = validate$8(input);
2091
+ const validateError = validate$b(input);
1975
2092
  if (validateError !== null) {
1976
2093
  throw validateError;
1977
2094
  }
1978
2095
  }
1979
2096
  const key = path.fullPath;
1980
2097
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1981
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
2098
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$b, RepresentationType$b, equals$b);
1982
2099
  return createLink(key);
1983
2100
  };
1984
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2101
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
1985
2102
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1986
2103
  const rootKey = fullPathFactory();
1987
2104
  rootKeySet.set(rootKey, {
1988
2105
  namespace: keyPrefix,
1989
- representationName: RepresentationType$8,
2106
+ representationName: RepresentationType$b,
1990
2107
  mergeable: false
1991
2108
  });
1992
2109
  const input_files_length = input.files.length;
1993
2110
  for (let i = 0; i < input_files_length; i++) {
1994
- getTypeCacheKeys$9(rootKeySet, luvio, input.files[i]);
2111
+ getTypeCacheKeys$c(rootKeySet, luvio, input.files[i]);
1995
2112
  }
1996
2113
  }
1997
2114
 
1998
- const VERSION$7 = "5145ac2c241c561e4baa29b3884748dc";
1999
- function validate$7(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
2115
+ const VERSION$a = "5145ac2c241c561e4baa29b3884748dc";
2116
+ function validate$a(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
2000
2117
  const v_error = (() => {
2001
2118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2002
2119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2047,14 +2164,14 @@ function validate$7(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
2047
2164
  })();
2048
2165
  return v_error === undefined ? null : v_error;
2049
2166
  }
2050
- const RepresentationType$7 = 'SlackBridgeConversationHistoryOutputRepresentation';
2051
- function normalize$7(input, existing, path, luvio, store, timestamp) {
2167
+ const RepresentationType$a = 'SlackBridgeConversationHistoryOutputRepresentation';
2168
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
2052
2169
  const input_messages = input.messages;
2053
2170
  const input_messages_id = path.fullPath + '__messages';
2054
2171
  for (let i = 0; i < input_messages.length; i++) {
2055
2172
  const input_messages_item = input_messages[i];
2056
2173
  let input_messages_item_id = input_messages_id + '__' + i;
2057
- input_messages[i] = ingest$8(input_messages_item, {
2174
+ input_messages[i] = ingest$b(input_messages_item, {
2058
2175
  fullPath: input_messages_item_id,
2059
2176
  propertyName: i,
2060
2177
  parent: {
@@ -2067,10 +2184,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
2067
2184
  }
2068
2185
  return input;
2069
2186
  }
2070
- const select$h = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
2187
+ const select$p = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
2071
2188
  return {
2072
2189
  kind: 'Fragment',
2073
- version: VERSION$7,
2190
+ version: VERSION$a,
2074
2191
  private: [],
2075
2192
  selections: [
2076
2193
  {
@@ -2081,7 +2198,7 @@ const select$h = function SlackBridgeConversationHistoryOutputRepresentationSele
2081
2198
  name: 'messages',
2082
2199
  kind: 'Link',
2083
2200
  plural: true,
2084
- fragment: select$i()
2201
+ fragment: select$q()
2085
2202
  },
2086
2203
  {
2087
2204
  name: 'nextCursor',
@@ -2090,7 +2207,7 @@ const select$h = function SlackBridgeConversationHistoryOutputRepresentationSele
2090
2207
  ]
2091
2208
  };
2092
2209
  };
2093
- function equals$7(existing, incoming) {
2210
+ function equals$a(existing, incoming) {
2094
2211
  const existing_hasMore = existing.hasMore;
2095
2212
  const incoming_hasMore = incoming.hasMore;
2096
2213
  if (!(existing_hasMore === incoming_hasMore)) {
@@ -2113,34 +2230,34 @@ function equals$7(existing, incoming) {
2113
2230
  }
2114
2231
  return true;
2115
2232
  }
2116
- const ingest$7 = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2233
+ const ingest$a = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2117
2234
  if (process.env.NODE_ENV !== 'production') {
2118
- const validateError = validate$7(input);
2235
+ const validateError = validate$a(input);
2119
2236
  if (validateError !== null) {
2120
2237
  throw validateError;
2121
2238
  }
2122
2239
  }
2123
2240
  const key = path.fullPath;
2124
2241
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2125
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
2242
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
2126
2243
  return createLink(key);
2127
2244
  };
2128
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
2245
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
2129
2246
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2130
2247
  const rootKey = fullPathFactory();
2131
2248
  rootKeySet.set(rootKey, {
2132
2249
  namespace: keyPrefix,
2133
- representationName: RepresentationType$7,
2250
+ representationName: RepresentationType$a,
2134
2251
  mergeable: false
2135
2252
  });
2136
2253
  const input_messages_length = input.messages.length;
2137
2254
  for (let i = 0; i < input_messages_length; i++) {
2138
- getTypeCacheKeys$8(rootKeySet, luvio, input.messages[i], () => '');
2255
+ getTypeCacheKeys$b(rootKeySet, luvio, input.messages[i], () => '');
2139
2256
  }
2140
2257
  }
2141
2258
 
2142
- const VERSION$6 = "4e131d41ceb4ec6065429b5d681c5d97";
2143
- function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2259
+ const VERSION$9 = "7ec6cbca3e2948ff5ef00e4034f365d5";
2260
+ function validate$9(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2144
2261
  const v_error = (() => {
2145
2262
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2146
2263
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2185,11 +2302,8 @@ function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2185
2302
  const path_conversationInfo = path + '.conversationInfo';
2186
2303
  let obj_conversationInfo_union0 = null;
2187
2304
  const obj_conversationInfo_union0_error = (() => {
2188
- const referencepath_conversationInfoValidationError = validate$g(obj_conversationInfo, path_conversationInfo);
2189
- if (referencepath_conversationInfoValidationError !== null) {
2190
- let message = 'Object doesn\'t match SlackBridgeConversationInfoOutputRepresentation (at "' + path_conversationInfo + '")\n';
2191
- message += referencepath_conversationInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2192
- return new TypeError(message);
2305
+ if (typeof obj_conversationInfo !== 'object') {
2306
+ return new TypeError('Expected "object" but received "' + typeof obj_conversationInfo + '" (at "' + path_conversationInfo + '")');
2193
2307
  }
2194
2308
  })();
2195
2309
  if (obj_conversationInfo_union0_error != null) {
@@ -2269,72 +2383,1090 @@ function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2269
2383
  if (obj_websocketUrl_union0_error != null) {
2270
2384
  obj_websocketUrl_union0 = obj_websocketUrl_union0_error.message;
2271
2385
  }
2272
- let obj_websocketUrl_union1 = null;
2273
- const obj_websocketUrl_union1_error = (() => {
2274
- if (obj_websocketUrl !== null) {
2275
- return new TypeError('Expected "null" but received "' + typeof obj_websocketUrl + '" (at "' + path_websocketUrl + '")');
2386
+ let obj_websocketUrl_union1 = null;
2387
+ const obj_websocketUrl_union1_error = (() => {
2388
+ if (obj_websocketUrl !== null) {
2389
+ return new TypeError('Expected "null" but received "' + typeof obj_websocketUrl + '" (at "' + path_websocketUrl + '")');
2390
+ }
2391
+ })();
2392
+ if (obj_websocketUrl_union1_error != null) {
2393
+ obj_websocketUrl_union1 = obj_websocketUrl_union1_error.message;
2394
+ }
2395
+ if (obj_websocketUrl_union0 && obj_websocketUrl_union1) {
2396
+ let message = 'Object doesn\'t match union (at "' + path_websocketUrl + '")';
2397
+ message += '\n' + obj_websocketUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2398
+ message += '\n' + obj_websocketUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2399
+ return new TypeError(message);
2400
+ }
2401
+ })();
2402
+ return v_error === undefined ? null : v_error;
2403
+ }
2404
+ const RepresentationType$9 = 'SlackBridgeConversationOutputRepresentation';
2405
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
2406
+ const input_contextUserInfo = input.contextUserInfo;
2407
+ const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
2408
+ if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
2409
+ input.contextUserInfo = ingest$e(input_contextUserInfo, {
2410
+ fullPath: input_contextUserInfo_id,
2411
+ propertyName: 'contextUserInfo',
2412
+ parent: {
2413
+ data: input,
2414
+ key: path.fullPath,
2415
+ existing: existing,
2416
+ },
2417
+ ttl: path.ttl
2418
+ }, luvio, store, timestamp);
2419
+ }
2420
+ const input_conversationInfo = input.conversationInfo;
2421
+ const input_conversationInfo_id = path.fullPath + '__conversationInfo';
2422
+ if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
2423
+ input.conversationInfo = ingest$d(input_conversationInfo, {
2424
+ fullPath: input_conversationInfo_id,
2425
+ propertyName: 'conversationInfo',
2426
+ parent: {
2427
+ data: input,
2428
+ key: path.fullPath,
2429
+ existing: existing,
2430
+ },
2431
+ ttl: path.ttl
2432
+ }, luvio, store, timestamp);
2433
+ }
2434
+ const input_history = input.history;
2435
+ const input_history_id = path.fullPath + '__history';
2436
+ input.history = ingest$a(input_history, {
2437
+ fullPath: input_history_id,
2438
+ propertyName: 'history',
2439
+ parent: {
2440
+ data: input,
2441
+ key: path.fullPath,
2442
+ existing: existing,
2443
+ },
2444
+ ttl: path.ttl
2445
+ }, luvio, store, timestamp);
2446
+ const input_userInfos = input.userInfos;
2447
+ const input_userInfos_id = path.fullPath + '__userInfos';
2448
+ for (let i = 0; i < input_userInfos.length; i++) {
2449
+ const input_userInfos_item = input_userInfos[i];
2450
+ let input_userInfos_item_id = input_userInfos_id + '__' + i;
2451
+ input_userInfos[i] = ingest$e(input_userInfos_item, {
2452
+ fullPath: input_userInfos_item_id,
2453
+ propertyName: i,
2454
+ parent: {
2455
+ data: input,
2456
+ key: path.fullPath,
2457
+ existing: existing,
2458
+ },
2459
+ ttl: path.ttl
2460
+ }, luvio, store, timestamp);
2461
+ }
2462
+ return input;
2463
+ }
2464
+ const select$o = function SlackBridgeConversationOutputRepresentationSelect() {
2465
+ return {
2466
+ kind: 'Fragment',
2467
+ version: VERSION$9,
2468
+ private: [],
2469
+ selections: [
2470
+ {
2471
+ name: 'channelId',
2472
+ kind: 'Scalar'
2473
+ },
2474
+ {
2475
+ name: 'channelUrl',
2476
+ kind: 'Scalar'
2477
+ },
2478
+ {
2479
+ name: 'contextUserInfo',
2480
+ kind: 'Link',
2481
+ nullable: true,
2482
+ fragment: select$x()
2483
+ },
2484
+ {
2485
+ name: 'conversationInfo',
2486
+ kind: 'Link',
2487
+ nullable: true,
2488
+ fragment: select$w()
2489
+ },
2490
+ {
2491
+ name: 'history',
2492
+ kind: 'Link',
2493
+ fragment: select$p()
2494
+ },
2495
+ {
2496
+ name: 'teamId',
2497
+ kind: 'Scalar'
2498
+ },
2499
+ {
2500
+ name: 'threadTs',
2501
+ kind: 'Scalar'
2502
+ },
2503
+ {
2504
+ name: 'userInfos',
2505
+ kind: 'Link',
2506
+ plural: true,
2507
+ fragment: select$x()
2508
+ },
2509
+ {
2510
+ name: 'websocketUrl',
2511
+ kind: 'Scalar'
2512
+ }
2513
+ ]
2514
+ };
2515
+ };
2516
+ function equals$9(existing, incoming) {
2517
+ const existing_channelId = existing.channelId;
2518
+ const incoming_channelId = incoming.channelId;
2519
+ if (!(existing_channelId === incoming_channelId)) {
2520
+ return false;
2521
+ }
2522
+ const existing_channelUrl = existing.channelUrl;
2523
+ const incoming_channelUrl = incoming.channelUrl;
2524
+ if (!(existing_channelUrl === incoming_channelUrl)) {
2525
+ return false;
2526
+ }
2527
+ const existing_teamId = existing.teamId;
2528
+ const incoming_teamId = incoming.teamId;
2529
+ if (!(existing_teamId === incoming_teamId)) {
2530
+ return false;
2531
+ }
2532
+ const existing_contextUserInfo = existing.contextUserInfo;
2533
+ const incoming_contextUserInfo = incoming.contextUserInfo;
2534
+ if (!(existing_contextUserInfo === incoming_contextUserInfo
2535
+ || (existing_contextUserInfo != null &&
2536
+ incoming_contextUserInfo != null &&
2537
+ existing_contextUserInfo.__ref != null &&
2538
+ incoming_contextUserInfo.__ref != null &&
2539
+ existing_contextUserInfo.__ref === incoming_contextUserInfo.__ref))) {
2540
+ return false;
2541
+ }
2542
+ const existing_conversationInfo = existing.conversationInfo;
2543
+ const incoming_conversationInfo = incoming.conversationInfo;
2544
+ if (!(existing_conversationInfo === incoming_conversationInfo
2545
+ || (existing_conversationInfo != null &&
2546
+ incoming_conversationInfo != null &&
2547
+ existing_conversationInfo.__ref != null &&
2548
+ incoming_conversationInfo.__ref != null &&
2549
+ existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
2550
+ return false;
2551
+ }
2552
+ const existing_history = existing.history;
2553
+ const incoming_history = incoming.history;
2554
+ if (!(existing_history.__ref === incoming_history.__ref)) {
2555
+ return false;
2556
+ }
2557
+ const existing_threadTs = existing.threadTs;
2558
+ const incoming_threadTs = incoming.threadTs;
2559
+ if (!(existing_threadTs === incoming_threadTs)) {
2560
+ return false;
2561
+ }
2562
+ const existing_userInfos = existing.userInfos;
2563
+ const incoming_userInfos = incoming.userInfos;
2564
+ const equals_userInfos_items = equalsArray(existing_userInfos, incoming_userInfos, (existing_userInfos_item, incoming_userInfos_item) => {
2565
+ if (!(existing_userInfos_item.__ref === incoming_userInfos_item.__ref)) {
2566
+ return false;
2567
+ }
2568
+ });
2569
+ if (equals_userInfos_items === false) {
2570
+ return false;
2571
+ }
2572
+ const existing_websocketUrl = existing.websocketUrl;
2573
+ const incoming_websocketUrl = incoming.websocketUrl;
2574
+ if (!(existing_websocketUrl === incoming_websocketUrl)) {
2575
+ return false;
2576
+ }
2577
+ return true;
2578
+ }
2579
+ const ingest$9 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2580
+ if (process.env.NODE_ENV !== 'production') {
2581
+ const validateError = validate$9(input);
2582
+ if (validateError !== null) {
2583
+ throw validateError;
2584
+ }
2585
+ }
2586
+ const key = path.fullPath;
2587
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2588
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
2589
+ return createLink(key);
2590
+ };
2591
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
2592
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2593
+ const rootKey = fullPathFactory();
2594
+ rootKeySet.set(rootKey, {
2595
+ namespace: keyPrefix,
2596
+ representationName: RepresentationType$9,
2597
+ mergeable: false
2598
+ });
2599
+ if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
2600
+ getTypeCacheKeys$e(rootKeySet, luvio, input.contextUserInfo);
2601
+ }
2602
+ if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
2603
+ getTypeCacheKeys$d(rootKeySet, luvio, input.conversationInfo);
2604
+ }
2605
+ getTypeCacheKeys$a(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
2606
+ const input_userInfos_length = input.userInfos.length;
2607
+ for (let i = 0; i < input_userInfos_length; i++) {
2608
+ getTypeCacheKeys$e(rootKeySet, luvio, input.userInfos[i]);
2609
+ }
2610
+ }
2611
+
2612
+ function select$n(luvio, params) {
2613
+ return select$o();
2614
+ }
2615
+ function keyBuilder$q(luvio, params) {
2616
+ return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
2617
+ }
2618
+ function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
2619
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
2620
+ }
2621
+ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
2622
+ const { body } = response;
2623
+ const key = keyBuilder$q(luvio, resourceParams);
2624
+ luvio.storeIngest(key, ingest$9, body);
2625
+ const snapshot = luvio.storeLookup({
2626
+ recordId: key,
2627
+ node: select$n(),
2628
+ variables: {},
2629
+ }, snapshotRefresh);
2630
+ if (process.env.NODE_ENV !== 'production') {
2631
+ if (snapshot.state !== 'Fulfilled') {
2632
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2633
+ }
2634
+ }
2635
+ deepFreeze(snapshot.data);
2636
+ return snapshot;
2637
+ }
2638
+ function ingestError$8(luvio, params, error, snapshotRefresh) {
2639
+ const key = keyBuilder$q(luvio, params);
2640
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2641
+ luvio.storeIngestError(key, errorSnapshot);
2642
+ return errorSnapshot;
2643
+ }
2644
+ function createResourceRequest$h(config) {
2645
+ const headers = {};
2646
+ return {
2647
+ baseUri: '/services/data/v63.0',
2648
+ basePath: '/connect/slackbridge/conversation/messages',
2649
+ method: 'get',
2650
+ body: null,
2651
+ urlParams: {},
2652
+ queryParams: config.queryParams,
2653
+ headers,
2654
+ priority: 'normal',
2655
+ };
2656
+ }
2657
+
2658
+ const adapterName$h = 'getSlackConversation';
2659
+ const getSlackConversation_ConfigPropertyMetadata = [
2660
+ generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
2661
+ generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
2662
+ generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2663
+ generateParamConfigMetadata('latestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2664
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2665
+ generateParamConfigMetadata('oldestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2666
+ generateParamConfigMetadata('parentMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2667
+ generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
2668
+ generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
2669
+ ];
2670
+ const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversation_ConfigPropertyMetadata);
2671
+ const createResourceParams$h = /*#__PURE__*/ createResourceParams$i(getSlackConversation_ConfigPropertyMetadata);
2672
+ function keyBuilder$p(luvio, config) {
2673
+ const resourceParams = createResourceParams$h(config);
2674
+ return keyBuilder$q(luvio, resourceParams);
2675
+ }
2676
+ function typeCheckConfig$h(untrustedConfig) {
2677
+ const config = {};
2678
+ typeCheckConfig$i(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
2679
+ return config;
2680
+ }
2681
+ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
2682
+ if (!untrustedIsObject(untrustedConfig)) {
2683
+ return null;
2684
+ }
2685
+ if (process.env.NODE_ENV !== 'production') {
2686
+ validateConfig(untrustedConfig, configPropertyNames);
2687
+ }
2688
+ const config = typeCheckConfig$h(untrustedConfig);
2689
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2690
+ return null;
2691
+ }
2692
+ return config;
2693
+ }
2694
+ function adapterFragment$8(luvio, config) {
2695
+ createResourceParams$h(config);
2696
+ return select$n();
2697
+ }
2698
+ function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
2699
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
2700
+ config,
2701
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2702
+ });
2703
+ return luvio.storeBroadcast().then(() => snapshot);
2704
+ }
2705
+ function onFetchResponseError$8(luvio, config, resourceParams, response) {
2706
+ const snapshot = ingestError$8(luvio, resourceParams, response, {
2707
+ config,
2708
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2709
+ });
2710
+ return luvio.storeBroadcast().then(() => snapshot);
2711
+ }
2712
+ function buildNetworkSnapshot$h(luvio, config, options) {
2713
+ const resourceParams = createResourceParams$h(config);
2714
+ const request = createResourceRequest$h(resourceParams);
2715
+ return luvio.dispatchResourceRequest(request, options)
2716
+ .then((response) => {
2717
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
2718
+ const cache = new StoreKeyMap();
2719
+ getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
2720
+ return cache;
2721
+ });
2722
+ }, (response) => {
2723
+ return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
2724
+ });
2725
+ }
2726
+ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
2727
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
2728
+ }
2729
+ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
2730
+ const { luvio, config } = context;
2731
+ const selector = {
2732
+ recordId: keyBuilder$p(luvio, config),
2733
+ node: adapterFragment$8(luvio, config),
2734
+ variables: {},
2735
+ };
2736
+ const cacheSnapshot = storeLookup(selector, {
2737
+ config,
2738
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2739
+ });
2740
+ return cacheSnapshot;
2741
+ }
2742
+ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
2743
+ const config = validateAdapterConfig$h(untrustedConfig, getSlackConversation_ConfigPropertyNames);
2744
+ // Invalid or incomplete config
2745
+ if (config === null) {
2746
+ return null;
2747
+ }
2748
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2749
+ buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
2750
+ };
2751
+
2752
+ const VERSION$8 = "769b5b0ed94219341e9be74c08e63aed";
2753
+ function validate$8(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
2754
+ const v_error = (() => {
2755
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2756
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2757
+ }
2758
+ const obj_channelId = obj.channelId;
2759
+ const path_channelId = path + '.channelId';
2760
+ if (typeof obj_channelId !== 'string') {
2761
+ return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
2762
+ }
2763
+ const obj_postedMessage = obj.postedMessage;
2764
+ const path_postedMessage = path + '.postedMessage';
2765
+ if (typeof obj_postedMessage !== 'object') {
2766
+ return new TypeError('Expected "object" but received "' + typeof obj_postedMessage + '" (at "' + path_postedMessage + '")');
2767
+ }
2768
+ const obj_timestamp = obj.timestamp;
2769
+ const path_timestamp = path + '.timestamp';
2770
+ if (typeof obj_timestamp !== 'string') {
2771
+ return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
2772
+ }
2773
+ })();
2774
+ return v_error === undefined ? null : v_error;
2775
+ }
2776
+ const RepresentationType$8 = 'SlackBridgePostMessageOutputRepresentation';
2777
+ function keyBuilder$o(luvio, config) {
2778
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.channelId;
2779
+ }
2780
+ function keyBuilderFromType$5(luvio, object) {
2781
+ const keyParams = {
2782
+ channelId: object.channelId
2783
+ };
2784
+ return keyBuilder$o(luvio, keyParams);
2785
+ }
2786
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
2787
+ const input_postedMessage = input.postedMessage;
2788
+ const input_postedMessage_id = path.fullPath + '__postedMessage';
2789
+ input.postedMessage = ingest$b(input_postedMessage, {
2790
+ fullPath: input_postedMessage_id,
2791
+ propertyName: 'postedMessage',
2792
+ parent: {
2793
+ data: input,
2794
+ key: path.fullPath,
2795
+ existing: existing,
2796
+ },
2797
+ ttl: path.ttl
2798
+ }, luvio, store, timestamp);
2799
+ return input;
2800
+ }
2801
+ const select$m = function SlackBridgePostMessageOutputRepresentationSelect() {
2802
+ return {
2803
+ kind: 'Fragment',
2804
+ version: VERSION$8,
2805
+ private: [],
2806
+ selections: [
2807
+ {
2808
+ name: 'channelId',
2809
+ kind: 'Scalar'
2810
+ },
2811
+ {
2812
+ name: 'postedMessage',
2813
+ kind: 'Link',
2814
+ fragment: select$q()
2815
+ },
2816
+ {
2817
+ name: 'timestamp',
2818
+ kind: 'Scalar'
2819
+ }
2820
+ ]
2821
+ };
2822
+ };
2823
+ function equals$8(existing, incoming) {
2824
+ const existing_channelId = existing.channelId;
2825
+ const incoming_channelId = incoming.channelId;
2826
+ if (!(existing_channelId === incoming_channelId)) {
2827
+ return false;
2828
+ }
2829
+ const existing_timestamp = existing.timestamp;
2830
+ const incoming_timestamp = incoming.timestamp;
2831
+ if (!(existing_timestamp === incoming_timestamp)) {
2832
+ return false;
2833
+ }
2834
+ const existing_postedMessage = existing.postedMessage;
2835
+ const incoming_postedMessage = incoming.postedMessage;
2836
+ if (!(existing_postedMessage.__ref === incoming_postedMessage.__ref)) {
2837
+ return false;
2838
+ }
2839
+ return true;
2840
+ }
2841
+ const ingest$8 = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2842
+ if (process.env.NODE_ENV !== 'production') {
2843
+ const validateError = validate$8(input);
2844
+ if (validateError !== null) {
2845
+ throw validateError;
2846
+ }
2847
+ }
2848
+ const key = keyBuilderFromType$5(luvio, input);
2849
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2850
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
2851
+ return createLink(key);
2852
+ };
2853
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2854
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2855
+ const rootKey = keyBuilderFromType$5(luvio, input);
2856
+ rootKeySet.set(rootKey, {
2857
+ namespace: keyPrefix,
2858
+ representationName: RepresentationType$8,
2859
+ mergeable: false
2860
+ });
2861
+ getTypeCacheKeys$b(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
2862
+ }
2863
+
2864
+ function select$l(luvio, params) {
2865
+ return select$m();
2866
+ }
2867
+ function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
2868
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
2869
+ }
2870
+ function ingestSuccess$d(luvio, resourceParams, response) {
2871
+ const { body } = response;
2872
+ const key = keyBuilderFromType$5(luvio, body);
2873
+ luvio.storeIngest(key, ingest$8, body);
2874
+ const snapshot = luvio.storeLookup({
2875
+ recordId: key,
2876
+ node: select$l(),
2877
+ variables: {},
2878
+ });
2879
+ if (process.env.NODE_ENV !== 'production') {
2880
+ if (snapshot.state !== 'Fulfilled') {
2881
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2882
+ }
2883
+ }
2884
+ deepFreeze(snapshot.data);
2885
+ return snapshot;
2886
+ }
2887
+ function createResourceRequest$g(config) {
2888
+ const headers = {};
2889
+ return {
2890
+ baseUri: '/services/data/v63.0',
2891
+ basePath: '/connect/slackbridge/conversation/messages',
2892
+ method: 'post',
2893
+ body: config.body,
2894
+ urlParams: {},
2895
+ queryParams: {},
2896
+ headers,
2897
+ priority: 'normal',
2898
+ };
2899
+ }
2900
+
2901
+ const adapterName$g = 'postSlackConversation';
2902
+ const postSlackConversation_ConfigPropertyMetadata = [
2903
+ generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
2904
+ generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
2905
+ generateParamConfigMetadata('replyBroadcast', false, 2 /* Body */, 1 /* Boolean */),
2906
+ generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
2907
+ generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2908
+ generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
2909
+ ];
2910
+ const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, postSlackConversation_ConfigPropertyMetadata);
2911
+ const createResourceParams$g = /*#__PURE__*/ createResourceParams$i(postSlackConversation_ConfigPropertyMetadata);
2912
+ function typeCheckConfig$g(untrustedConfig) {
2913
+ const config = {};
2914
+ typeCheckConfig$i(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
2915
+ return config;
2916
+ }
2917
+ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
2918
+ if (!untrustedIsObject(untrustedConfig)) {
2919
+ return null;
2920
+ }
2921
+ if (process.env.NODE_ENV !== 'production') {
2922
+ validateConfig(untrustedConfig, configPropertyNames);
2923
+ }
2924
+ const config = typeCheckConfig$g(untrustedConfig);
2925
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2926
+ return null;
2927
+ }
2928
+ return config;
2929
+ }
2930
+ function buildNetworkSnapshot$g(luvio, config, options) {
2931
+ const resourceParams = createResourceParams$g(config);
2932
+ const request = createResourceRequest$g(resourceParams);
2933
+ return luvio.dispatchResourceRequest(request, options)
2934
+ .then((response) => {
2935
+ return luvio.handleSuccessResponse(() => {
2936
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response);
2937
+ return luvio.storeBroadcast().then(() => snapshot);
2938
+ }, () => {
2939
+ const cache = new StoreKeyMap();
2940
+ getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
2941
+ return cache;
2942
+ });
2943
+ }, (response) => {
2944
+ deepFreeze(response);
2945
+ throw response;
2946
+ });
2947
+ }
2948
+ const postSlackConversationAdapterFactory = (luvio) => {
2949
+ return function postSlackConversation(untrustedConfig) {
2950
+ const config = validateAdapterConfig$g(untrustedConfig, postSlackConversation_ConfigPropertyNames);
2951
+ // Invalid or incomplete config
2952
+ if (config === null) {
2953
+ throw new Error('Invalid config for "postSlackConversation"');
2954
+ }
2955
+ return buildNetworkSnapshot$g(luvio, config);
2956
+ };
2957
+ };
2958
+
2959
+ function select$k(luvio, params) {
2960
+ return select$r();
2961
+ }
2962
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
2963
+ getTypeCacheKeys$c(storeKeyMap, luvio, response);
2964
+ }
2965
+ function ingestSuccess$c(luvio, resourceParams, response) {
2966
+ const { body } = response;
2967
+ const key = keyBuilderFromType$6(luvio, body);
2968
+ luvio.storeIngest(key, ingest$c, body);
2969
+ const snapshot = luvio.storeLookup({
2970
+ recordId: key,
2971
+ node: select$k(),
2972
+ variables: {},
2973
+ });
2974
+ if (process.env.NODE_ENV !== 'production') {
2975
+ if (snapshot.state !== 'Fulfilled') {
2976
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2977
+ }
2978
+ }
2979
+ deepFreeze(snapshot.data);
2980
+ return snapshot;
2981
+ }
2982
+ function createResourceRequest$f(config) {
2983
+ const headers = {};
2984
+ return {
2985
+ baseUri: '/services/data/v63.0',
2986
+ basePath: '/connect/slackbridge/files',
2987
+ method: 'post',
2988
+ body: config.body,
2989
+ urlParams: {},
2990
+ queryParams: {},
2991
+ headers,
2992
+ priority: 'normal',
2993
+ };
2994
+ }
2995
+
2996
+ const adapterName$f = 'postSlackFile';
2997
+ const postSlackFile_ConfigPropertyMetadata = [
2998
+ generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
2999
+ generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
3000
+ generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
3001
+ generateParamConfigMetadata('fileType', true, 2 /* Body */, 0 /* String */),
3002
+ generateParamConfigMetadata('initialComment', true, 2 /* Body */, 0 /* String */),
3003
+ generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
3004
+ generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
3005
+ generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
3006
+ ];
3007
+ const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackFile_ConfigPropertyMetadata);
3008
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$i(postSlackFile_ConfigPropertyMetadata);
3009
+ function typeCheckConfig$f(untrustedConfig) {
3010
+ const config = {};
3011
+ typeCheckConfig$i(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
3012
+ return config;
3013
+ }
3014
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
3015
+ if (!untrustedIsObject(untrustedConfig)) {
3016
+ return null;
3017
+ }
3018
+ if (process.env.NODE_ENV !== 'production') {
3019
+ validateConfig(untrustedConfig, configPropertyNames);
3020
+ }
3021
+ const config = typeCheckConfig$f(untrustedConfig);
3022
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3023
+ return null;
3024
+ }
3025
+ return config;
3026
+ }
3027
+ function buildNetworkSnapshot$f(luvio, config, options) {
3028
+ const resourceParams = createResourceParams$f(config);
3029
+ const request = createResourceRequest$f(resourceParams);
3030
+ return luvio.dispatchResourceRequest(request, options)
3031
+ .then((response) => {
3032
+ return luvio.handleSuccessResponse(() => {
3033
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
3034
+ return luvio.storeBroadcast().then(() => snapshot);
3035
+ }, () => {
3036
+ const cache = new StoreKeyMap();
3037
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
3038
+ return cache;
3039
+ });
3040
+ }, (response) => {
3041
+ deepFreeze(response);
3042
+ throw response;
3043
+ });
3044
+ }
3045
+ const postSlackFileAdapterFactory = (luvio) => {
3046
+ return function postSlackFile(untrustedConfig) {
3047
+ const config = validateAdapterConfig$f(untrustedConfig, postSlackFile_ConfigPropertyNames);
3048
+ // Invalid or incomplete config
3049
+ if (config === null) {
3050
+ throw new Error('Invalid config for "postSlackFile"');
3051
+ }
3052
+ return buildNetworkSnapshot$f(luvio, config);
3053
+ };
3054
+ };
3055
+
3056
+ const VERSION$7 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
3057
+ function validate$7(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
3058
+ const v_error = (() => {
3059
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3060
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3061
+ }
3062
+ const obj_conversationInfo = obj.conversationInfo;
3063
+ const path_conversationInfo = path + '.conversationInfo';
3064
+ if (typeof obj_conversationInfo !== 'object') {
3065
+ return new TypeError('Expected "object" but received "' + typeof obj_conversationInfo + '" (at "' + path_conversationInfo + '")');
3066
+ }
3067
+ const obj_relatedRecordId = obj.relatedRecordId;
3068
+ const path_relatedRecordId = path + '.relatedRecordId';
3069
+ if (typeof obj_relatedRecordId !== 'string') {
3070
+ return new TypeError('Expected "string" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
3071
+ }
3072
+ const obj_teamId = obj.teamId;
3073
+ const path_teamId = path + '.teamId';
3074
+ if (typeof obj_teamId !== 'string') {
3075
+ return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
3076
+ }
3077
+ })();
3078
+ return v_error === undefined ? null : v_error;
3079
+ }
3080
+ const RepresentationType$7 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
3081
+ function keyBuilder$n(luvio, config) {
3082
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.relatedRecordId;
3083
+ }
3084
+ function keyBuilderFromType$4(luvio, object) {
3085
+ const keyParams = {
3086
+ relatedRecordId: object.relatedRecordId
3087
+ };
3088
+ return keyBuilder$n(luvio, keyParams);
3089
+ }
3090
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
3091
+ const input_conversationInfo = input.conversationInfo;
3092
+ const input_conversationInfo_id = path.fullPath + '__conversationInfo';
3093
+ input.conversationInfo = ingest$d(input_conversationInfo, {
3094
+ fullPath: input_conversationInfo_id,
3095
+ propertyName: 'conversationInfo',
3096
+ parent: {
3097
+ data: input,
3098
+ key: path.fullPath,
3099
+ existing: existing,
3100
+ },
3101
+ ttl: path.ttl
3102
+ }, luvio, store, timestamp);
3103
+ return input;
3104
+ }
3105
+ const select$j = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
3106
+ return {
3107
+ kind: 'Fragment',
3108
+ version: VERSION$7,
3109
+ private: [],
3110
+ selections: [
3111
+ {
3112
+ name: 'conversationInfo',
3113
+ kind: 'Link',
3114
+ fragment: select$w()
3115
+ },
3116
+ {
3117
+ name: 'relatedRecordId',
3118
+ kind: 'Scalar'
3119
+ },
3120
+ {
3121
+ name: 'teamId',
3122
+ kind: 'Scalar'
3123
+ }
3124
+ ]
3125
+ };
3126
+ };
3127
+ function equals$7(existing, incoming) {
3128
+ const existing_relatedRecordId = existing.relatedRecordId;
3129
+ const incoming_relatedRecordId = incoming.relatedRecordId;
3130
+ if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
3131
+ return false;
3132
+ }
3133
+ const existing_teamId = existing.teamId;
3134
+ const incoming_teamId = incoming.teamId;
3135
+ if (!(existing_teamId === incoming_teamId)) {
3136
+ return false;
3137
+ }
3138
+ const existing_conversationInfo = existing.conversationInfo;
3139
+ const incoming_conversationInfo = incoming.conversationInfo;
3140
+ if (!(existing_conversationInfo.__ref === incoming_conversationInfo.__ref)) {
3141
+ return false;
3142
+ }
3143
+ return true;
3144
+ }
3145
+ const ingest$7 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3146
+ if (process.env.NODE_ENV !== 'production') {
3147
+ const validateError = validate$7(input);
3148
+ if (validateError !== null) {
3149
+ throw validateError;
3150
+ }
3151
+ }
3152
+ const key = keyBuilderFromType$4(luvio, input);
3153
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
3154
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
3155
+ return createLink(key);
3156
+ };
3157
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
3158
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3159
+ const rootKey = keyBuilderFromType$4(luvio, input);
3160
+ rootKeySet.set(rootKey, {
3161
+ namespace: keyPrefix,
3162
+ representationName: RepresentationType$7,
3163
+ mergeable: false
3164
+ });
3165
+ getTypeCacheKeys$d(rootKeySet, luvio, input.conversationInfo);
3166
+ }
3167
+
3168
+ function select$i(luvio, params) {
3169
+ return select$j();
3170
+ }
3171
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
3172
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
3173
+ }
3174
+ function ingestSuccess$b(luvio, resourceParams, response) {
3175
+ const { body } = response;
3176
+ const key = keyBuilderFromType$4(luvio, body);
3177
+ luvio.storeIngest(key, ingest$7, body);
3178
+ const snapshot = luvio.storeLookup({
3179
+ recordId: key,
3180
+ node: select$i(),
3181
+ variables: {},
3182
+ });
3183
+ if (process.env.NODE_ENV !== 'production') {
3184
+ if (snapshot.state !== 'Fulfilled') {
3185
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3186
+ }
3187
+ }
3188
+ deepFreeze(snapshot.data);
3189
+ return snapshot;
3190
+ }
3191
+ function createResourceRequest$e(config) {
3192
+ const headers = {};
3193
+ return {
3194
+ baseUri: '/services/data/v63.0',
3195
+ basePath: '/connect/slackbridge/record_channels',
3196
+ method: 'post',
3197
+ body: config.body,
3198
+ urlParams: {},
3199
+ queryParams: {},
3200
+ headers,
3201
+ priority: 'normal',
3202
+ };
3203
+ }
3204
+
3205
+ const adapterName$e = 'postSlackRecordChannelInfos';
3206
+ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
3207
+ generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
3208
+ generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
3209
+ ];
3210
+ const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, postSlackRecordChannelInfos_ConfigPropertyMetadata);
3211
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$i(postSlackRecordChannelInfos_ConfigPropertyMetadata);
3212
+ function typeCheckConfig$e(untrustedConfig) {
3213
+ const config = {};
3214
+ typeCheckConfig$i(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
3215
+ const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
3216
+ if (untrustedIsObject(untrustedConfig_conversationInfo)) {
3217
+ const untrustedConfig_conversationInfo_object = {};
3218
+ const untrustedConfig_conversationInfo_isPrivate = untrustedConfig_conversationInfo.isPrivate;
3219
+ if (typeof untrustedConfig_conversationInfo_isPrivate === 'boolean') {
3220
+ untrustedConfig_conversationInfo_object.isPrivate = untrustedConfig_conversationInfo_isPrivate;
3221
+ }
3222
+ if (untrustedConfig_conversationInfo_object !== undefined && Object.keys(untrustedConfig_conversationInfo_object).length >= 0) {
3223
+ config.conversationInfo = untrustedConfig_conversationInfo_object;
3224
+ }
3225
+ }
3226
+ return config;
3227
+ }
3228
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
3229
+ if (!untrustedIsObject(untrustedConfig)) {
3230
+ return null;
3231
+ }
3232
+ if (process.env.NODE_ENV !== 'production') {
3233
+ validateConfig(untrustedConfig, configPropertyNames);
3234
+ }
3235
+ const config = typeCheckConfig$e(untrustedConfig);
3236
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3237
+ return null;
3238
+ }
3239
+ return config;
3240
+ }
3241
+ function buildNetworkSnapshot$e(luvio, config, options) {
3242
+ const resourceParams = createResourceParams$e(config);
3243
+ const request = createResourceRequest$e(resourceParams);
3244
+ return luvio.dispatchResourceRequest(request, options)
3245
+ .then((response) => {
3246
+ return luvio.handleSuccessResponse(() => {
3247
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
3248
+ return luvio.storeBroadcast().then(() => snapshot);
3249
+ }, () => {
3250
+ const cache = new StoreKeyMap();
3251
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
3252
+ return cache;
3253
+ });
3254
+ }, (response) => {
3255
+ deepFreeze(response);
3256
+ throw response;
3257
+ });
3258
+ }
3259
+ const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
3260
+ return function postSlackRecordChannelInfos(untrustedConfig) {
3261
+ const config = validateAdapterConfig$e(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
3262
+ // Invalid or incomplete config
3263
+ if (config === null) {
3264
+ throw new Error('Invalid config for "postSlackRecordChannelInfos"');
3265
+ }
3266
+ return buildNetworkSnapshot$e(luvio, config);
3267
+ };
3268
+ };
3269
+
3270
+ function select$h(luvio, params) {
3271
+ return select$j();
3272
+ }
3273
+ function keyBuilder$m(luvio, params) {
3274
+ return keyBuilder$n(luvio, {
3275
+ relatedRecordId: params.urlParams.relatedRecordId
3276
+ });
3277
+ }
3278
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
3279
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
3280
+ }
3281
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
3282
+ const { body } = response;
3283
+ const key = keyBuilder$m(luvio, resourceParams);
3284
+ luvio.storeIngest(key, ingest$7, body);
3285
+ const snapshot = luvio.storeLookup({
3286
+ recordId: key,
3287
+ node: select$h(),
3288
+ variables: {},
3289
+ }, snapshotRefresh);
3290
+ if (process.env.NODE_ENV !== 'production') {
3291
+ if (snapshot.state !== 'Fulfilled') {
3292
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3293
+ }
3294
+ }
3295
+ deepFreeze(snapshot.data);
3296
+ return snapshot;
3297
+ }
3298
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
3299
+ const key = keyBuilder$m(luvio, params);
3300
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3301
+ luvio.storeIngestError(key, errorSnapshot);
3302
+ return errorSnapshot;
3303
+ }
3304
+ function createResourceRequest$d(config) {
3305
+ const headers = {};
3306
+ return {
3307
+ baseUri: '/services/data/v63.0',
3308
+ basePath: '/connect/slackbridge/record_channels/' + config.urlParams.relatedRecordId + '',
3309
+ method: 'get',
3310
+ body: null,
3311
+ urlParams: config.urlParams,
3312
+ queryParams: {},
3313
+ headers,
3314
+ priority: 'normal',
3315
+ };
3316
+ }
3317
+
3318
+ const adapterName$d = 'getSlackRecordChannelInfo';
3319
+ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
3320
+ generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
3321
+ ];
3322
+ const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackRecordChannelInfo_ConfigPropertyMetadata);
3323
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$i(getSlackRecordChannelInfo_ConfigPropertyMetadata);
3324
+ function keyBuilder$l(luvio, config) {
3325
+ const resourceParams = createResourceParams$d(config);
3326
+ return keyBuilder$m(luvio, resourceParams);
3327
+ }
3328
+ function typeCheckConfig$d(untrustedConfig) {
3329
+ const config = {};
3330
+ typeCheckConfig$i(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
3331
+ return config;
3332
+ }
3333
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
3334
+ if (!untrustedIsObject(untrustedConfig)) {
3335
+ return null;
3336
+ }
3337
+ if (process.env.NODE_ENV !== 'production') {
3338
+ validateConfig(untrustedConfig, configPropertyNames);
3339
+ }
3340
+ const config = typeCheckConfig$d(untrustedConfig);
3341
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3342
+ return null;
3343
+ }
3344
+ return config;
3345
+ }
3346
+ function adapterFragment$7(luvio, config) {
3347
+ createResourceParams$d(config);
3348
+ return select$h();
3349
+ }
3350
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
3351
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
3352
+ config,
3353
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3354
+ });
3355
+ return luvio.storeBroadcast().then(() => snapshot);
3356
+ }
3357
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
3358
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
3359
+ config,
3360
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3361
+ });
3362
+ return luvio.storeBroadcast().then(() => snapshot);
3363
+ }
3364
+ function buildNetworkSnapshot$d(luvio, config, options) {
3365
+ const resourceParams = createResourceParams$d(config);
3366
+ const request = createResourceRequest$d(resourceParams);
3367
+ return luvio.dispatchResourceRequest(request, options)
3368
+ .then((response) => {
3369
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
3370
+ const cache = new StoreKeyMap();
3371
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
3372
+ return cache;
3373
+ });
3374
+ }, (response) => {
3375
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
3376
+ });
3377
+ }
3378
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
3379
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
3380
+ }
3381
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
3382
+ const { luvio, config } = context;
3383
+ const selector = {
3384
+ recordId: keyBuilder$l(luvio, config),
3385
+ node: adapterFragment$7(luvio, config),
3386
+ variables: {},
3387
+ };
3388
+ const cacheSnapshot = storeLookup(selector, {
3389
+ config,
3390
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3391
+ });
3392
+ return cacheSnapshot;
3393
+ }
3394
+ const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
3395
+ const config = validateAdapterConfig$d(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
3396
+ // Invalid or incomplete config
3397
+ if (config === null) {
3398
+ return null;
3399
+ }
3400
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3401
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
3402
+ };
3403
+
3404
+ const VERSION$6 = "30b0f3c5bd175b72d9b304944fd9d682";
3405
+ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
3406
+ const v_error = (() => {
3407
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3408
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3409
+ }
3410
+ const obj_channelId = obj.channelId;
3411
+ const path_channelId = path + '.channelId';
3412
+ if (typeof obj_channelId !== 'string') {
3413
+ return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
3414
+ }
3415
+ const obj_nextCursor = obj.nextCursor;
3416
+ const path_nextCursor = path + '.nextCursor';
3417
+ let obj_nextCursor_union0 = null;
3418
+ const obj_nextCursor_union0_error = (() => {
3419
+ if (typeof obj_nextCursor !== 'string') {
3420
+ return new TypeError('Expected "string" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
3421
+ }
3422
+ })();
3423
+ if (obj_nextCursor_union0_error != null) {
3424
+ obj_nextCursor_union0 = obj_nextCursor_union0_error.message;
3425
+ }
3426
+ let obj_nextCursor_union1 = null;
3427
+ const obj_nextCursor_union1_error = (() => {
3428
+ if (obj_nextCursor !== null) {
3429
+ return new TypeError('Expected "null" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
2276
3430
  }
2277
3431
  })();
2278
- if (obj_websocketUrl_union1_error != null) {
2279
- obj_websocketUrl_union1 = obj_websocketUrl_union1_error.message;
3432
+ if (obj_nextCursor_union1_error != null) {
3433
+ obj_nextCursor_union1 = obj_nextCursor_union1_error.message;
2280
3434
  }
2281
- if (obj_websocketUrl_union0 && obj_websocketUrl_union1) {
2282
- let message = 'Object doesn\'t match union (at "' + path_websocketUrl + '")';
2283
- message += '\n' + obj_websocketUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2284
- message += '\n' + obj_websocketUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3435
+ if (obj_nextCursor_union0 && obj_nextCursor_union1) {
3436
+ let message = 'Object doesn\'t match union (at "' + path_nextCursor + '")';
3437
+ message += '\n' + obj_nextCursor_union0.split('\n').map((line) => '\t' + line).join('\n');
3438
+ message += '\n' + obj_nextCursor_union1.split('\n').map((line) => '\t' + line).join('\n');
2285
3439
  return new TypeError(message);
2286
3440
  }
3441
+ const obj_slackUserIds = obj.slackUserIds;
3442
+ const path_slackUserIds = path + '.slackUserIds';
3443
+ if (!ArrayIsArray(obj_slackUserIds)) {
3444
+ return new TypeError('Expected "array" but received "' + typeof obj_slackUserIds + '" (at "' + path_slackUserIds + '")');
3445
+ }
3446
+ for (let i = 0; i < obj_slackUserIds.length; i++) {
3447
+ const obj_slackUserIds_item = obj_slackUserIds[i];
3448
+ const path_slackUserIds_item = path_slackUserIds + '[' + i + ']';
3449
+ if (typeof obj_slackUserIds_item !== 'string') {
3450
+ return new TypeError('Expected "string" but received "' + typeof obj_slackUserIds_item + '" (at "' + path_slackUserIds_item + '")');
3451
+ }
3452
+ }
2287
3453
  })();
2288
3454
  return v_error === undefined ? null : v_error;
2289
3455
  }
2290
- const RepresentationType$6 = 'SlackBridgeConversationOutputRepresentation';
3456
+ const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
3457
+ function keyBuilder$k(luvio, config) {
3458
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
3459
+ }
3460
+ function keyBuilderFromType$3(luvio, object) {
3461
+ const keyParams = {
3462
+ channelId: object.channelId
3463
+ };
3464
+ return keyBuilder$k(luvio, keyParams);
3465
+ }
2291
3466
  function normalize$6(input, existing, path, luvio, store, timestamp) {
2292
- const input_contextUserInfo = input.contextUserInfo;
2293
- const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
2294
- if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
2295
- input.contextUserInfo = ingest$a(input_contextUserInfo, {
2296
- fullPath: input_contextUserInfo_id,
2297
- propertyName: 'contextUserInfo',
2298
- parent: {
2299
- data: input,
2300
- key: path.fullPath,
2301
- existing: existing,
2302
- },
2303
- ttl: path.ttl
2304
- }, luvio, store, timestamp);
2305
- }
2306
- const input_history = input.history;
2307
- const input_history_id = path.fullPath + '__history';
2308
- input.history = ingest$7(input_history, {
2309
- fullPath: input_history_id,
2310
- propertyName: 'history',
2311
- parent: {
2312
- data: input,
2313
- key: path.fullPath,
2314
- existing: existing,
2315
- },
2316
- ttl: path.ttl
2317
- }, luvio, store, timestamp);
2318
- const input_userInfos = input.userInfos;
2319
- const input_userInfos_id = path.fullPath + '__userInfos';
2320
- for (let i = 0; i < input_userInfos.length; i++) {
2321
- const input_userInfos_item = input_userInfos[i];
2322
- let input_userInfos_item_id = input_userInfos_id + '__' + i;
2323
- input_userInfos[i] = ingest$a(input_userInfos_item, {
2324
- fullPath: input_userInfos_item_id,
2325
- propertyName: i,
2326
- parent: {
2327
- data: input,
2328
- key: path.fullPath,
2329
- existing: existing,
2330
- },
2331
- ttl: path.ttl
2332
- }, luvio, store, timestamp);
2333
- }
2334
3467
  return input;
2335
3468
  }
2336
- const select$g = function SlackBridgeConversationOutputRepresentationSelect() {
2337
- const { selections: SlackBridgeConversationInfoOutputRepresentation__selections, opaque: SlackBridgeConversationInfoOutputRepresentation__opaque, } = select$q();
3469
+ const select$g = function SlackBridgeConversationMembersOutputRepresentationSelect() {
2338
3470
  return {
2339
3471
  kind: 'Fragment',
2340
3472
  version: VERSION$6,
@@ -2345,43 +3477,13 @@ const select$g = function SlackBridgeConversationOutputRepresentationSelect() {
2345
3477
  kind: 'Scalar'
2346
3478
  },
2347
3479
  {
2348
- name: 'channelUrl',
2349
- kind: 'Scalar'
2350
- },
2351
- {
2352
- name: 'contextUserInfo',
2353
- kind: 'Link',
2354
- nullable: true,
2355
- fragment: select$o()
2356
- },
2357
- {
2358
- name: 'conversationInfo',
2359
- kind: 'Object',
2360
- nullable: true,
2361
- selections: SlackBridgeConversationInfoOutputRepresentation__selections
2362
- },
2363
- {
2364
- name: 'history',
2365
- kind: 'Link',
2366
- fragment: select$h()
2367
- },
2368
- {
2369
- name: 'teamId',
2370
- kind: 'Scalar'
2371
- },
2372
- {
2373
- name: 'threadTs',
3480
+ name: 'nextCursor',
2374
3481
  kind: 'Scalar'
2375
3482
  },
2376
3483
  {
2377
- name: 'userInfos',
2378
- kind: 'Link',
2379
- plural: true,
2380
- fragment: select$o()
2381
- },
2382
- {
2383
- name: 'websocketUrl',
2384
- kind: 'Scalar'
3484
+ name: 'slackUserIds',
3485
+ kind: 'Scalar',
3486
+ plural: true
2385
3487
  }
2386
3488
  ]
2387
3489
  };
@@ -2392,109 +3494,195 @@ function equals$6(existing, incoming) {
2392
3494
  if (!(existing_channelId === incoming_channelId)) {
2393
3495
  return false;
2394
3496
  }
2395
- const existing_channelUrl = existing.channelUrl;
2396
- const incoming_channelUrl = incoming.channelUrl;
2397
- if (!(existing_channelUrl === incoming_channelUrl)) {
2398
- return false;
2399
- }
2400
- const existing_teamId = existing.teamId;
2401
- const incoming_teamId = incoming.teamId;
2402
- if (!(existing_teamId === incoming_teamId)) {
2403
- return false;
2404
- }
2405
- const existing_contextUserInfo = existing.contextUserInfo;
2406
- const incoming_contextUserInfo = incoming.contextUserInfo;
2407
- if (!(existing_contextUserInfo === incoming_contextUserInfo
2408
- || (existing_contextUserInfo != null &&
2409
- incoming_contextUserInfo != null &&
2410
- existing_contextUserInfo.__ref != null &&
2411
- incoming_contextUserInfo.__ref != null &&
2412
- existing_contextUserInfo.__ref === incoming_contextUserInfo.__ref))) {
2413
- return false;
2414
- }
2415
- const existing_conversationInfo = existing.conversationInfo;
2416
- const incoming_conversationInfo = incoming.conversationInfo;
2417
- if (!(existing_conversationInfo === incoming_conversationInfo
2418
- || (existing_conversationInfo != null &&
2419
- incoming_conversationInfo != null &&
2420
- equals$g(existing_conversationInfo, incoming_conversationInfo)))) {
2421
- return false;
2422
- }
2423
- const existing_history = existing.history;
2424
- const incoming_history = incoming.history;
2425
- if (!(existing_history.__ref === incoming_history.__ref)) {
2426
- return false;
2427
- }
2428
- const existing_threadTs = existing.threadTs;
2429
- const incoming_threadTs = incoming.threadTs;
2430
- if (!(existing_threadTs === incoming_threadTs)) {
3497
+ const existing_nextCursor = existing.nextCursor;
3498
+ const incoming_nextCursor = incoming.nextCursor;
3499
+ if (!(existing_nextCursor === incoming_nextCursor)) {
2431
3500
  return false;
2432
3501
  }
2433
- const existing_userInfos = existing.userInfos;
2434
- const incoming_userInfos = incoming.userInfos;
2435
- const equals_userInfos_items = equalsArray(existing_userInfos, incoming_userInfos, (existing_userInfos_item, incoming_userInfos_item) => {
2436
- if (!(existing_userInfos_item.__ref === incoming_userInfos_item.__ref)) {
3502
+ const existing_slackUserIds = existing.slackUserIds;
3503
+ const incoming_slackUserIds = incoming.slackUserIds;
3504
+ const equals_slackUserIds_items = equalsArray(existing_slackUserIds, incoming_slackUserIds, (existing_slackUserIds_item, incoming_slackUserIds_item) => {
3505
+ if (!(existing_slackUserIds_item === incoming_slackUserIds_item)) {
2437
3506
  return false;
2438
3507
  }
2439
3508
  });
2440
- if (equals_userInfos_items === false) {
2441
- return false;
2442
- }
2443
- const existing_websocketUrl = existing.websocketUrl;
2444
- const incoming_websocketUrl = incoming.websocketUrl;
2445
- if (!(existing_websocketUrl === incoming_websocketUrl)) {
3509
+ if (equals_slackUserIds_items === false) {
2446
3510
  return false;
2447
3511
  }
2448
3512
  return true;
2449
3513
  }
2450
- const ingest$6 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3514
+ const ingest$6 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2451
3515
  if (process.env.NODE_ENV !== 'production') {
2452
3516
  const validateError = validate$6(input);
2453
3517
  if (validateError !== null) {
2454
3518
  throw validateError;
2455
3519
  }
2456
3520
  }
2457
- const key = path.fullPath;
3521
+ const key = keyBuilderFromType$3(luvio, input);
2458
3522
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2459
3523
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
2460
3524
  return createLink(key);
2461
3525
  };
2462
3526
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2463
3527
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2464
- const rootKey = fullPathFactory();
3528
+ const rootKey = keyBuilderFromType$3(luvio, input);
2465
3529
  rootKeySet.set(rootKey, {
2466
3530
  namespace: keyPrefix,
2467
3531
  representationName: RepresentationType$6,
2468
3532
  mergeable: false
2469
3533
  });
2470
- if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
2471
- getTypeCacheKeys$a(rootKeySet, luvio, input.contextUserInfo);
2472
- }
2473
- getTypeCacheKeys$7(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
2474
- const input_userInfos_length = input.userInfos.length;
2475
- for (let i = 0; i < input_userInfos_length; i++) {
2476
- getTypeCacheKeys$a(rootKeySet, luvio, input.userInfos[i]);
2477
- }
2478
3534
  }
2479
3535
 
2480
3536
  function select$f(luvio, params) {
2481
3537
  return select$g();
2482
3538
  }
2483
- function keyBuilder$g(luvio, params) {
2484
- return keyPrefix + '::SlackBridgeConversationOutputRepresentation:(' + 'channelId:' + params.queryParams.channelId + ',' + 'includeView:' + params.queryParams.includeView + ',' + 'inclusive:' + params.queryParams.inclusive + ',' + 'latestMessageTs:' + params.queryParams.latestMessageTs + ',' + 'limit:' + params.queryParams.limit + ',' + 'oldestMessageTs:' + params.queryParams.oldestMessageTs + ',' + 'parentMessageTs:' + params.queryParams.parentMessageTs + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'teamId:' + params.queryParams.teamId + ')';
3539
+ function keyBuilder$j(luvio, params) {
3540
+ return keyBuilder$k(luvio, {
3541
+ channelId: params.urlParams.channelId
3542
+ });
2485
3543
  }
2486
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
2487
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
3544
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
3545
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2488
3546
  }
2489
3547
  function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2490
3548
  const { body } = response;
2491
- const key = keyBuilder$g(luvio, resourceParams);
3549
+ const key = keyBuilder$j(luvio, resourceParams);
3550
+ luvio.storeIngest(key, ingest$6, body);
3551
+ const snapshot = luvio.storeLookup({
3552
+ recordId: key,
3553
+ node: select$f(),
3554
+ variables: {},
3555
+ }, snapshotRefresh);
3556
+ if (process.env.NODE_ENV !== 'production') {
3557
+ if (snapshot.state !== 'Fulfilled') {
3558
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3559
+ }
3560
+ }
3561
+ deepFreeze(snapshot.data);
3562
+ return snapshot;
3563
+ }
3564
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
3565
+ const key = keyBuilder$j(luvio, params);
3566
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3567
+ luvio.storeIngestError(key, errorSnapshot);
3568
+ return errorSnapshot;
3569
+ }
3570
+ function createResourceRequest$c(config) {
3571
+ const headers = {};
3572
+ return {
3573
+ baseUri: '/services/data/v63.0',
3574
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
3575
+ method: 'get',
3576
+ body: null,
3577
+ urlParams: config.urlParams,
3578
+ queryParams: {},
3579
+ headers,
3580
+ priority: 'normal',
3581
+ };
3582
+ }
3583
+
3584
+ const adapterName$c = 'getSlackConversationMembers';
3585
+ const getSlackConversationMembers_ConfigPropertyMetadata = [
3586
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
3587
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3588
+ ];
3589
+ const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackConversationMembers_ConfigPropertyMetadata);
3590
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$i(getSlackConversationMembers_ConfigPropertyMetadata);
3591
+ function keyBuilder$i(luvio, config) {
3592
+ const resourceParams = createResourceParams$c(config);
3593
+ return keyBuilder$j(luvio, resourceParams);
3594
+ }
3595
+ function typeCheckConfig$c(untrustedConfig) {
3596
+ const config = {};
3597
+ typeCheckConfig$i(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
3598
+ return config;
3599
+ }
3600
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
3601
+ if (!untrustedIsObject(untrustedConfig)) {
3602
+ return null;
3603
+ }
3604
+ if (process.env.NODE_ENV !== 'production') {
3605
+ validateConfig(untrustedConfig, configPropertyNames);
3606
+ }
3607
+ const config = typeCheckConfig$c(untrustedConfig);
3608
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3609
+ return null;
3610
+ }
3611
+ return config;
3612
+ }
3613
+ function adapterFragment$6(luvio, config) {
3614
+ createResourceParams$c(config);
3615
+ return select$f();
3616
+ }
3617
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
3618
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
3619
+ config,
3620
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3621
+ });
3622
+ return luvio.storeBroadcast().then(() => snapshot);
3623
+ }
3624
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
3625
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
3626
+ config,
3627
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3628
+ });
3629
+ return luvio.storeBroadcast().then(() => snapshot);
3630
+ }
3631
+ function buildNetworkSnapshot$c(luvio, config, options) {
3632
+ const resourceParams = createResourceParams$c(config);
3633
+ const request = createResourceRequest$c(resourceParams);
3634
+ return luvio.dispatchResourceRequest(request, options)
3635
+ .then((response) => {
3636
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
3637
+ const cache = new StoreKeyMap();
3638
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
3639
+ return cache;
3640
+ });
3641
+ }, (response) => {
3642
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
3643
+ });
3644
+ }
3645
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
3646
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
3647
+ }
3648
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
3649
+ const { luvio, config } = context;
3650
+ const selector = {
3651
+ recordId: keyBuilder$i(luvio, config),
3652
+ node: adapterFragment$6(luvio, config),
3653
+ variables: {},
3654
+ };
3655
+ const cacheSnapshot = storeLookup(selector, {
3656
+ config,
3657
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3658
+ });
3659
+ return cacheSnapshot;
3660
+ }
3661
+ const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
3662
+ const config = validateAdapterConfig$c(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
3663
+ // Invalid or incomplete config
3664
+ if (config === null) {
3665
+ return null;
3666
+ }
3667
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3668
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
3669
+ };
3670
+
3671
+ function select$e(luvio, params) {
3672
+ return select$g();
3673
+ }
3674
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
3675
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
3676
+ }
3677
+ function ingestSuccess$8(luvio, resourceParams, response) {
3678
+ const { body } = response;
3679
+ const key = keyBuilderFromType$3(luvio, body);
2492
3680
  luvio.storeIngest(key, ingest$6, body);
2493
3681
  const snapshot = luvio.storeLookup({
2494
3682
  recordId: key,
2495
- node: select$f(),
3683
+ node: select$e(),
2496
3684
  variables: {},
2497
- }, snapshotRefresh);
3685
+ });
2498
3686
  if (process.env.NODE_ENV !== 'production') {
2499
3687
  if (snapshot.state !== 'Fulfilled') {
2500
3688
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -2503,47 +3691,31 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2503
3691
  deepFreeze(snapshot.data);
2504
3692
  return snapshot;
2505
3693
  }
2506
- function ingestError$5(luvio, params, error, snapshotRefresh) {
2507
- const key = keyBuilder$g(luvio, params);
2508
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2509
- luvio.storeIngestError(key, errorSnapshot);
2510
- return errorSnapshot;
2511
- }
2512
3694
  function createResourceRequest$b(config) {
2513
3695
  const headers = {};
2514
3696
  return {
2515
3697
  baseUri: '/services/data/v63.0',
2516
- basePath: '/connect/slackbridge/conversation/messages',
2517
- method: 'get',
2518
- body: null,
2519
- urlParams: {},
2520
- queryParams: config.queryParams,
3698
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
3699
+ method: 'post',
3700
+ body: config.body,
3701
+ urlParams: config.urlParams,
3702
+ queryParams: {},
2521
3703
  headers,
2522
3704
  priority: 'normal',
2523
3705
  };
2524
3706
  }
2525
3707
 
2526
- const adapterName$b = 'getSlackConversation';
2527
- const getSlackConversation_ConfigPropertyMetadata = [
2528
- generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
2529
- generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
2530
- generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2531
- generateParamConfigMetadata('latestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2532
- generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2533
- generateParamConfigMetadata('oldestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2534
- generateParamConfigMetadata('parentMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2535
- generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
2536
- generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
3708
+ const adapterName$b = 'postSlackConversationMembers';
3709
+ const postSlackConversationMembers_ConfigPropertyMetadata = [
3710
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
3711
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3712
+ generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
2537
3713
  ];
2538
- const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackConversation_ConfigPropertyMetadata);
2539
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getSlackConversation_ConfigPropertyMetadata);
2540
- function keyBuilder$f(luvio, config) {
2541
- const resourceParams = createResourceParams$b(config);
2542
- return keyBuilder$g(luvio, resourceParams);
2543
- }
3714
+ const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, postSlackConversationMembers_ConfigPropertyMetadata);
3715
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$i(postSlackConversationMembers_ConfigPropertyMetadata);
2544
3716
  function typeCheckConfig$b(untrustedConfig) {
2545
3717
  const config = {};
2546
- typeCheckConfig$c(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
3718
+ typeCheckConfig$i(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
2547
3719
  return config;
2548
3720
  }
2549
3721
  function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
@@ -2559,66 +3731,37 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
2559
3731
  }
2560
3732
  return config;
2561
3733
  }
2562
- function adapterFragment$5(luvio, config) {
2563
- createResourceParams$b(config);
2564
- return select$f();
2565
- }
2566
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2567
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
2568
- config,
2569
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2570
- });
2571
- return luvio.storeBroadcast().then(() => snapshot);
2572
- }
2573
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
2574
- const snapshot = ingestError$5(luvio, resourceParams, response, {
2575
- config,
2576
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2577
- });
2578
- return luvio.storeBroadcast().then(() => snapshot);
2579
- }
2580
3734
  function buildNetworkSnapshot$b(luvio, config, options) {
2581
3735
  const resourceParams = createResourceParams$b(config);
2582
3736
  const request = createResourceRequest$b(resourceParams);
2583
3737
  return luvio.dispatchResourceRequest(request, options)
2584
3738
  .then((response) => {
2585
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
3739
+ return luvio.handleSuccessResponse(() => {
3740
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
3741
+ return luvio.storeBroadcast().then(() => snapshot);
3742
+ }, () => {
2586
3743
  const cache = new StoreKeyMap();
2587
3744
  getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
2588
3745
  return cache;
2589
3746
  });
2590
3747
  }, (response) => {
2591
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
3748
+ deepFreeze(response);
3749
+ throw response;
2592
3750
  });
2593
3751
  }
2594
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2595
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
2596
- }
2597
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2598
- const { luvio, config } = context;
2599
- const selector = {
2600
- recordId: keyBuilder$f(luvio, config),
2601
- node: adapterFragment$5(luvio, config),
2602
- variables: {},
3752
+ const postSlackConversationMembersAdapterFactory = (luvio) => {
3753
+ return function postSlackConversationMembers(untrustedConfig) {
3754
+ const config = validateAdapterConfig$b(untrustedConfig, postSlackConversationMembers_ConfigPropertyNames);
3755
+ // Invalid or incomplete config
3756
+ if (config === null) {
3757
+ throw new Error('Invalid config for "postSlackConversationMembers"');
3758
+ }
3759
+ return buildNetworkSnapshot$b(luvio, config);
2603
3760
  };
2604
- const cacheSnapshot = storeLookup(selector, {
2605
- config,
2606
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2607
- });
2608
- return cacheSnapshot;
2609
- }
2610
- const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
2611
- const config = validateAdapterConfig$b(untrustedConfig, getSlackConversation_ConfigPropertyNames);
2612
- // Invalid or incomplete config
2613
- if (config === null) {
2614
- return null;
2615
- }
2616
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2617
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2618
3761
  };
2619
3762
 
2620
- const VERSION$5 = "769b5b0ed94219341e9be74c08e63aed";
2621
- function validate$5(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
3763
+ const VERSION$5 = "5ea9ee9da9dcb5309c4f35bb4bf5def2";
3764
+ function validate$5(obj, path = 'SlackBridgeConversationMemberOutputRepresentation') {
2622
3765
  const v_error = (() => {
2623
3766
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2624
3767
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2628,45 +3771,28 @@ function validate$5(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
2628
3771
  if (typeof obj_channelId !== 'string') {
2629
3772
  return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
2630
3773
  }
2631
- const obj_postedMessage = obj.postedMessage;
2632
- const path_postedMessage = path + '.postedMessage';
2633
- if (typeof obj_postedMessage !== 'object') {
2634
- return new TypeError('Expected "object" but received "' + typeof obj_postedMessage + '" (at "' + path_postedMessage + '")');
2635
- }
2636
- const obj_timestamp = obj.timestamp;
2637
- const path_timestamp = path + '.timestamp';
2638
- if (typeof obj_timestamp !== 'string') {
2639
- return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
3774
+ const obj_slackUserId = obj.slackUserId;
3775
+ const path_slackUserId = path + '.slackUserId';
3776
+ if (typeof obj_slackUserId !== 'string') {
3777
+ return new TypeError('Expected "string" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
2640
3778
  }
2641
3779
  })();
2642
3780
  return v_error === undefined ? null : v_error;
2643
3781
  }
2644
- const RepresentationType$5 = 'SlackBridgePostMessageOutputRepresentation';
2645
- function keyBuilder$e(luvio, config) {
3782
+ const RepresentationType$5 = 'SlackBridgeConversationMemberOutputRepresentation';
3783
+ function keyBuilder$h(luvio, config) {
2646
3784
  return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
2647
3785
  }
2648
3786
  function keyBuilderFromType$2(luvio, object) {
2649
3787
  const keyParams = {
2650
3788
  channelId: object.channelId
2651
3789
  };
2652
- return keyBuilder$e(luvio, keyParams);
3790
+ return keyBuilder$h(luvio, keyParams);
2653
3791
  }
2654
3792
  function normalize$5(input, existing, path, luvio, store, timestamp) {
2655
- const input_postedMessage = input.postedMessage;
2656
- const input_postedMessage_id = path.fullPath + '__postedMessage';
2657
- input.postedMessage = ingest$8(input_postedMessage, {
2658
- fullPath: input_postedMessage_id,
2659
- propertyName: 'postedMessage',
2660
- parent: {
2661
- data: input,
2662
- key: path.fullPath,
2663
- existing: existing,
2664
- },
2665
- ttl: path.ttl
2666
- }, luvio, store, timestamp);
2667
3793
  return input;
2668
3794
  }
2669
- const select$e = function SlackBridgePostMessageOutputRepresentationSelect() {
3795
+ const select$d = function SlackBridgeConversationMemberOutputRepresentationSelect() {
2670
3796
  return {
2671
3797
  kind: 'Fragment',
2672
3798
  version: VERSION$5,
@@ -2677,12 +3803,7 @@ const select$e = function SlackBridgePostMessageOutputRepresentationSelect() {
2677
3803
  kind: 'Scalar'
2678
3804
  },
2679
3805
  {
2680
- name: 'postedMessage',
2681
- kind: 'Link',
2682
- fragment: select$i()
2683
- },
2684
- {
2685
- name: 'timestamp',
3806
+ name: 'slackUserId',
2686
3807
  kind: 'Scalar'
2687
3808
  }
2688
3809
  ]
@@ -2694,19 +3815,14 @@ function equals$5(existing, incoming) {
2694
3815
  if (!(existing_channelId === incoming_channelId)) {
2695
3816
  return false;
2696
3817
  }
2697
- const existing_timestamp = existing.timestamp;
2698
- const incoming_timestamp = incoming.timestamp;
2699
- if (!(existing_timestamp === incoming_timestamp)) {
2700
- return false;
2701
- }
2702
- const existing_postedMessage = existing.postedMessage;
2703
- const incoming_postedMessage = incoming.postedMessage;
2704
- if (!(existing_postedMessage.__ref === incoming_postedMessage.__ref)) {
3818
+ const existing_slackUserId = existing.slackUserId;
3819
+ const incoming_slackUserId = incoming.slackUserId;
3820
+ if (!(existing_slackUserId === incoming_slackUserId)) {
2705
3821
  return false;
2706
3822
  }
2707
3823
  return true;
2708
3824
  }
2709
- const ingest$5 = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3825
+ const ingest$5 = function SlackBridgeConversationMemberOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2710
3826
  if (process.env.NODE_ENV !== 'production') {
2711
3827
  const validateError = validate$5(input);
2712
3828
  if (validateError !== null) {
@@ -2726,60 +3842,50 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2726
3842
  representationName: RepresentationType$5,
2727
3843
  mergeable: false
2728
3844
  });
2729
- getTypeCacheKeys$8(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
2730
3845
  }
2731
3846
 
2732
- function select$d(luvio, params) {
2733
- return select$e();
2734
- }
2735
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
2736
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
3847
+ function keyBuilder$g(luvio, params) {
3848
+ return keyBuilder$h(luvio, {
3849
+ channelId: params.urlParams.channelId
3850
+ });
2737
3851
  }
2738
- function ingestSuccess$8(luvio, resourceParams, response) {
2739
- const { body } = response;
2740
- const key = keyBuilderFromType$2(luvio, body);
2741
- luvio.storeIngest(key, ingest$5, body);
2742
- const snapshot = luvio.storeLookup({
2743
- recordId: key,
2744
- node: select$d(),
2745
- variables: {},
3852
+ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
3853
+ const key = keyBuilder$g(luvio, resourceParams);
3854
+ cacheKeyMap.set(key, {
3855
+ namespace: keyPrefix,
3856
+ representationName: RepresentationType$5,
3857
+ mergeable: false
2746
3858
  });
2747
- if (process.env.NODE_ENV !== 'production') {
2748
- if (snapshot.state !== 'Fulfilled') {
2749
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2750
- }
2751
- }
2752
- deepFreeze(snapshot.data);
2753
- return snapshot;
3859
+ }
3860
+ function evictSuccess$2(luvio, resourceParams) {
3861
+ const key = keyBuilder$g(luvio, resourceParams);
3862
+ luvio.storeEvict(key);
2754
3863
  }
2755
3864
  function createResourceRequest$a(config) {
2756
3865
  const headers = {};
2757
3866
  return {
2758
3867
  baseUri: '/services/data/v63.0',
2759
- basePath: '/connect/slackbridge/conversation/messages',
2760
- method: 'post',
2761
- body: config.body,
2762
- urlParams: {},
3868
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
3869
+ method: 'delete',
3870
+ body: null,
3871
+ urlParams: config.urlParams,
2763
3872
  queryParams: {},
2764
3873
  headers,
2765
3874
  priority: 'normal',
2766
3875
  };
2767
3876
  }
2768
3877
 
2769
- const adapterName$a = 'postSlackConversation';
2770
- const postSlackConversation_ConfigPropertyMetadata = [
2771
- generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
2772
- generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
2773
- generateParamConfigMetadata('replyBroadcast', false, 2 /* Body */, 1 /* Boolean */),
2774
- generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
2775
- generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2776
- generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
3878
+ const adapterName$a = 'deleteSlackConversationMember';
3879
+ const deleteSlackConversationMember_ConfigPropertyMetadata = [
3880
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
3881
+ generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
3882
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
2777
3883
  ];
2778
- const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, postSlackConversation_ConfigPropertyMetadata);
2779
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(postSlackConversation_ConfigPropertyMetadata);
3884
+ const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteSlackConversationMember_ConfigPropertyMetadata);
3885
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$i(deleteSlackConversationMember_ConfigPropertyMetadata);
2780
3886
  function typeCheckConfig$a(untrustedConfig) {
2781
3887
  const config = {};
2782
- typeCheckConfig$c(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
3888
+ typeCheckConfig$i(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
2783
3889
  return config;
2784
3890
  }
2785
3891
  function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
@@ -2799,13 +3905,13 @@ function buildNetworkSnapshot$a(luvio, config, options) {
2799
3905
  const resourceParams = createResourceParams$a(config);
2800
3906
  const request = createResourceRequest$a(resourceParams);
2801
3907
  return luvio.dispatchResourceRequest(request, options)
2802
- .then((response) => {
3908
+ .then(() => {
2803
3909
  return luvio.handleSuccessResponse(() => {
2804
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
2805
- return luvio.storeBroadcast().then(() => snapshot);
3910
+ evictSuccess$2(luvio, resourceParams);
3911
+ return luvio.storeBroadcast();
2806
3912
  }, () => {
2807
3913
  const cache = new StoreKeyMap();
2808
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
3914
+ getResponseCacheKeys$a(cache, luvio, resourceParams);
2809
3915
  return cache;
2810
3916
  });
2811
3917
  }, (response) => {
@@ -2813,32 +3919,37 @@ function buildNetworkSnapshot$a(luvio, config, options) {
2813
3919
  throw response;
2814
3920
  });
2815
3921
  }
2816
- const postSlackConversationAdapterFactory = (luvio) => {
2817
- return function postSlackConversation(untrustedConfig) {
2818
- const config = validateAdapterConfig$a(untrustedConfig, postSlackConversation_ConfigPropertyNames);
3922
+ const deleteSlackConversationMemberAdapterFactory = (luvio) => {
3923
+ return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
3924
+ const config = validateAdapterConfig$a(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
2819
3925
  // Invalid or incomplete config
2820
3926
  if (config === null) {
2821
- throw new Error('Invalid config for "postSlackConversation"');
3927
+ throw new Error(`Invalid config for "${adapterName$a}"`);
2822
3928
  }
2823
3929
  return buildNetworkSnapshot$a(luvio, config);
2824
3930
  };
2825
3931
  };
2826
3932
 
2827
3933
  function select$c(luvio, params) {
2828
- return select$j();
3934
+ return select$d();
3935
+ }
3936
+ function keyBuilder$f(luvio, params) {
3937
+ return keyBuilder$h(luvio, {
3938
+ channelId: params.urlParams.channelId
3939
+ });
2829
3940
  }
2830
3941
  function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2831
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
3942
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2832
3943
  }
2833
- function ingestSuccess$7(luvio, resourceParams, response) {
3944
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2834
3945
  const { body } = response;
2835
- const key = keyBuilderFromType$3(luvio, body);
2836
- luvio.storeIngest(key, ingest$9, body);
3946
+ const key = keyBuilder$f(luvio, resourceParams);
3947
+ luvio.storeIngest(key, ingest$5, body);
2837
3948
  const snapshot = luvio.storeLookup({
2838
3949
  recordId: key,
2839
3950
  node: select$c(),
2840
3951
  variables: {},
2841
- });
3952
+ }, snapshotRefresh);
2842
3953
  if (process.env.NODE_ENV !== 'production') {
2843
3954
  if (snapshot.state !== 'Fulfilled') {
2844
3955
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -2847,36 +3958,41 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2847
3958
  deepFreeze(snapshot.data);
2848
3959
  return snapshot;
2849
3960
  }
3961
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
3962
+ const key = keyBuilder$f(luvio, params);
3963
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3964
+ luvio.storeIngestError(key, errorSnapshot);
3965
+ return errorSnapshot;
3966
+ }
2850
3967
  function createResourceRequest$9(config) {
2851
3968
  const headers = {};
2852
3969
  return {
2853
3970
  baseUri: '/services/data/v63.0',
2854
- basePath: '/connect/slackbridge/files',
2855
- method: 'post',
2856
- body: config.body,
2857
- urlParams: {},
3971
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
3972
+ method: 'get',
3973
+ body: null,
3974
+ urlParams: config.urlParams,
2858
3975
  queryParams: {},
2859
3976
  headers,
2860
3977
  priority: 'normal',
2861
3978
  };
2862
3979
  }
2863
3980
 
2864
- const adapterName$9 = 'postSlackFile';
2865
- const postSlackFile_ConfigPropertyMetadata = [
2866
- generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
2867
- generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
2868
- generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
2869
- generateParamConfigMetadata('fileType', true, 2 /* Body */, 0 /* String */),
2870
- generateParamConfigMetadata('initialComment', true, 2 /* Body */, 0 /* String */),
2871
- generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
2872
- generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
2873
- generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
3981
+ const adapterName$9 = 'getSlackConversationMember';
3982
+ const getSlackConversationMember_ConfigPropertyMetadata = [
3983
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
3984
+ generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
3985
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
2874
3986
  ];
2875
- const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, postSlackFile_ConfigPropertyMetadata);
2876
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(postSlackFile_ConfigPropertyMetadata);
3987
+ const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackConversationMember_ConfigPropertyMetadata);
3988
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$i(getSlackConversationMember_ConfigPropertyMetadata);
3989
+ function keyBuilder$e(luvio, config) {
3990
+ const resourceParams = createResourceParams$9(config);
3991
+ return keyBuilder$f(luvio, resourceParams);
3992
+ }
2877
3993
  function typeCheckConfig$9(untrustedConfig) {
2878
3994
  const config = {};
2879
- typeCheckConfig$c(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
3995
+ typeCheckConfig$i(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
2880
3996
  return config;
2881
3997
  }
2882
3998
  function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
@@ -2892,33 +4008,62 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2892
4008
  }
2893
4009
  return config;
2894
4010
  }
4011
+ function adapterFragment$5(luvio, config) {
4012
+ createResourceParams$9(config);
4013
+ return select$c();
4014
+ }
4015
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
4016
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
4017
+ config,
4018
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
4019
+ });
4020
+ return luvio.storeBroadcast().then(() => snapshot);
4021
+ }
4022
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
4023
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
4024
+ config,
4025
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
4026
+ });
4027
+ return luvio.storeBroadcast().then(() => snapshot);
4028
+ }
2895
4029
  function buildNetworkSnapshot$9(luvio, config, options) {
2896
4030
  const resourceParams = createResourceParams$9(config);
2897
4031
  const request = createResourceRequest$9(resourceParams);
2898
4032
  return luvio.dispatchResourceRequest(request, options)
2899
4033
  .then((response) => {
2900
- return luvio.handleSuccessResponse(() => {
2901
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
2902
- return luvio.storeBroadcast().then(() => snapshot);
2903
- }, () => {
4034
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2904
4035
  const cache = new StoreKeyMap();
2905
4036
  getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2906
4037
  return cache;
2907
4038
  });
2908
4039
  }, (response) => {
2909
- deepFreeze(response);
2910
- throw response;
4040
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2911
4041
  });
2912
4042
  }
2913
- const postSlackFileAdapterFactory = (luvio) => {
2914
- return function postSlackFile(untrustedConfig) {
2915
- const config = validateAdapterConfig$9(untrustedConfig, postSlackFile_ConfigPropertyNames);
2916
- // Invalid or incomplete config
2917
- if (config === null) {
2918
- throw new Error('Invalid config for "postSlackFile"');
2919
- }
2920
- return buildNetworkSnapshot$9(luvio, config);
4043
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
4044
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
4045
+ }
4046
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
4047
+ const { luvio, config } = context;
4048
+ const selector = {
4049
+ recordId: keyBuilder$e(luvio, config),
4050
+ node: adapterFragment$5(luvio, config),
4051
+ variables: {},
2921
4052
  };
4053
+ const cacheSnapshot = storeLookup(selector, {
4054
+ config,
4055
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
4056
+ });
4057
+ return cacheSnapshot;
4058
+ }
4059
+ const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
4060
+ const config = validateAdapterConfig$9(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
4061
+ // Invalid or incomplete config
4062
+ if (config === null) {
4063
+ return null;
4064
+ }
4065
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4066
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2922
4067
  };
2923
4068
 
2924
4069
  const VERSION$4 = "605674abcbc0dad7e2707e4e00e8d4cd";
@@ -3057,10 +4202,10 @@ const deleteSlackMessage_ConfigPropertyMetadata = [
3057
4202
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3058
4203
  ];
3059
4204
  const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteSlackMessage_ConfigPropertyMetadata);
3060
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(deleteSlackMessage_ConfigPropertyMetadata);
4205
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$i(deleteSlackMessage_ConfigPropertyMetadata);
3061
4206
  function typeCheckConfig$8(untrustedConfig) {
3062
4207
  const config = {};
3063
- typeCheckConfig$c(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
4208
+ typeCheckConfig$i(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
3064
4209
  return config;
3065
4210
  }
3066
4211
  function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
@@ -3160,14 +4305,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
3160
4305
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3161
4306
  ];
3162
4307
  const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackMessage_ConfigPropertyMetadata);
3163
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getSlackMessage_ConfigPropertyMetadata);
4308
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$i(getSlackMessage_ConfigPropertyMetadata);
3164
4309
  function keyBuilder$a(luvio, config) {
3165
4310
  const resourceParams = createResourceParams$7(config);
3166
4311
  return keyBuilder$b(luvio, resourceParams);
3167
4312
  }
3168
4313
  function typeCheckConfig$7(untrustedConfig) {
3169
4314
  const config = {};
3170
- typeCheckConfig$c(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
4315
+ typeCheckConfig$i(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
3171
4316
  return config;
3172
4317
  }
3173
4318
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -3216,7 +4361,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
3216
4361
  });
3217
4362
  }
3218
4363
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
3219
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
4364
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
3220
4365
  }
3221
4366
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
3222
4367
  const { luvio, config } = context;
@@ -3286,10 +4431,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
3286
4431
  generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
3287
4432
  ];
3288
4433
  const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
3289
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(patchSlackMessage_ConfigPropertyMetadata);
4434
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$i(patchSlackMessage_ConfigPropertyMetadata);
3290
4435
  function typeCheckConfig$6(untrustedConfig) {
3291
4436
  const config = {};
3292
- typeCheckConfig$c(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
4437
+ typeCheckConfig$i(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
3293
4438
  return config;
3294
4439
  }
3295
4440
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -3358,7 +4503,7 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
3358
4503
  for (let i = 0; i < obj_reactions.length; i++) {
3359
4504
  const obj_reactions_item = obj_reactions[i];
3360
4505
  const path_reactions_item = path_reactions + '[' + i + ']';
3361
- const referencepath_reactions_itemValidationError = validate$d(obj_reactions_item, path_reactions_item);
4506
+ const referencepath_reactions_itemValidationError = validate$g(obj_reactions_item, path_reactions_item);
3362
4507
  if (referencepath_reactions_itemValidationError !== null) {
3363
4508
  let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
3364
4509
  message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3387,7 +4532,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
3387
4532
  return input;
3388
4533
  }
3389
4534
  const select$8 = function SlackBridgeReactionsOutputRepresentationSelect() {
3390
- const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$n();
4535
+ const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$v();
3391
4536
  return {
3392
4537
  kind: 'Fragment',
3393
4538
  version: VERSION$3,
@@ -3433,7 +4578,7 @@ function equals$3(existing, incoming) {
3433
4578
  const existing_reactions = existing.reactions;
3434
4579
  const incoming_reactions = incoming.reactions;
3435
4580
  const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
3436
- if (!(equals$d(existing_reactions_item, incoming_reactions_item))) {
4581
+ if (!(equals$g(existing_reactions_item, incoming_reactions_item))) {
3437
4582
  return false;
3438
4583
  }
3439
4584
  });
@@ -3503,10 +4648,10 @@ const deleteSlackMessageReactions_ConfigPropertyMetadata = [
3503
4648
  generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
3504
4649
  ];
3505
4650
  const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteSlackMessageReactions_ConfigPropertyMetadata);
3506
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(deleteSlackMessageReactions_ConfigPropertyMetadata);
4651
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$i(deleteSlackMessageReactions_ConfigPropertyMetadata);
3507
4652
  function typeCheckConfig$5(untrustedConfig) {
3508
4653
  const config = {};
3509
- typeCheckConfig$c(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
4654
+ typeCheckConfig$i(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
3510
4655
  return config;
3511
4656
  }
3512
4657
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -3596,10 +4741,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
3596
4741
  generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
3597
4742
  ];
3598
4743
  const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackMessageReactions_ConfigPropertyMetadata);
3599
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(postSlackMessageReactions_ConfigPropertyMetadata);
4744
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$i(postSlackMessageReactions_ConfigPropertyMetadata);
3600
4745
  function typeCheckConfig$4(untrustedConfig) {
3601
4746
  const config = {};
3602
- typeCheckConfig$c(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
4747
+ typeCheckConfig$i(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
3603
4748
  return config;
3604
4749
  }
3605
4750
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -3785,14 +4930,14 @@ const getSlackCustomEmoji_ConfigPropertyMetadata = [
3785
4930
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3786
4931
  ];
3787
4932
  const getSlackCustomEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackCustomEmoji_ConfigPropertyMetadata);
3788
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getSlackCustomEmoji_ConfigPropertyMetadata);
4933
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$i(getSlackCustomEmoji_ConfigPropertyMetadata);
3789
4934
  function keyBuilder$6(luvio, config) {
3790
4935
  const resourceParams = createResourceParams$3(config);
3791
4936
  return keyBuilder$7(luvio, resourceParams);
3792
4937
  }
3793
4938
  function typeCheckConfig$3(untrustedConfig) {
3794
4939
  const config = {};
3795
- typeCheckConfig$c(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
4940
+ typeCheckConfig$i(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
3796
4941
  return config;
3797
4942
  }
3798
4943
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -3841,7 +4986,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3841
4986
  });
3842
4987
  }
3843
4988
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3844
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
4989
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3845
4990
  }
3846
4991
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3847
4992
  const { luvio, config } = context;
@@ -3880,7 +5025,7 @@ function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
3880
5025
  for (let i = 0; i < obj_emojis.length; i++) {
3881
5026
  const obj_emojis_item = obj_emojis[i];
3882
5027
  const path_emojis_item = path_emojis + '[' + i + ']';
3883
- const referencepath_emojis_itemValidationError = validate$f(obj_emojis_item, path_emojis_item);
5028
+ const referencepath_emojis_itemValidationError = validate$j(obj_emojis_item, path_emojis_item);
3884
5029
  if (referencepath_emojis_itemValidationError !== null) {
3885
5030
  let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
3886
5031
  message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3900,7 +5045,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
3900
5045
  return input;
3901
5046
  }
3902
5047
  const select$4 = function SlackBridgeEmojisOutputRepresentationSelect() {
3903
- const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$p();
5048
+ const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$y();
3904
5049
  return {
3905
5050
  kind: 'Fragment',
3906
5051
  version: VERSION$1,
@@ -3928,7 +5073,7 @@ function equals$1(existing, incoming) {
3928
5073
  const existing_emojis = existing.emojis;
3929
5074
  const incoming_emojis = incoming.emojis;
3930
5075
  const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
3931
- if (!(equals$f(existing_emojis_item, incoming_emojis_item))) {
5076
+ if (!(equals$j(existing_emojis_item, incoming_emojis_item))) {
3932
5077
  return false;
3933
5078
  }
3934
5079
  });
@@ -4011,14 +5156,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
4011
5156
  generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
4012
5157
  ];
4013
5158
  const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
4014
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getSlackSearchEmoji_ConfigPropertyMetadata);
5159
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$i(getSlackSearchEmoji_ConfigPropertyMetadata);
4015
5160
  function keyBuilder$4(luvio, config) {
4016
5161
  const resourceParams = createResourceParams$2(config);
4017
5162
  return keyBuilder$5(luvio, resourceParams);
4018
5163
  }
4019
5164
  function typeCheckConfig$2(untrustedConfig) {
4020
5165
  const config = {};
4021
- typeCheckConfig$c(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
5166
+ typeCheckConfig$i(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
4022
5167
  return config;
4023
5168
  }
4024
5169
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -4067,7 +5212,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
4067
5212
  });
4068
5213
  }
4069
5214
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
4070
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
5215
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4071
5216
  }
4072
5217
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
4073
5218
  const { luvio, config } = context;
@@ -4125,7 +5270,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
4125
5270
  for (let i = 0; i < input_userInfos.length; i++) {
4126
5271
  const input_userInfos_item = input_userInfos[i];
4127
5272
  let input_userInfos_item_id = input_userInfos_id + '__' + i;
4128
- input_userInfos[i] = ingest$a(input_userInfos_item, {
5273
+ input_userInfos[i] = ingest$e(input_userInfos_item, {
4129
5274
  fullPath: input_userInfos_item_id,
4130
5275
  propertyName: i,
4131
5276
  parent: {
@@ -4152,7 +5297,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
4152
5297
  name: 'userInfos',
4153
5298
  kind: 'Link',
4154
5299
  plural: true,
4155
- fragment: select$o()
5300
+ fragment: select$x()
4156
5301
  }
4157
5302
  ]
4158
5303
  };
@@ -4197,7 +5342,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
4197
5342
  });
4198
5343
  const input_userInfos_length = input.userInfos.length;
4199
5344
  for (let i = 0; i < input_userInfos_length; i++) {
4200
- getTypeCacheKeys$a(rootKeySet, luvio, input.userInfos[i]);
5345
+ getTypeCacheKeys$e(rootKeySet, luvio, input.userInfos[i]);
4201
5346
  }
4202
5347
  }
4203
5348
 
@@ -4253,14 +5398,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
4253
5398
  generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
4254
5399
  ];
4255
5400
  const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
4256
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getSlackSearchUser_ConfigPropertyMetadata);
5401
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$i(getSlackSearchUser_ConfigPropertyMetadata);
4257
5402
  function keyBuilder$2(luvio, config) {
4258
5403
  const resourceParams = createResourceParams$1(config);
4259
5404
  return keyBuilder$3(luvio, resourceParams);
4260
5405
  }
4261
5406
  function typeCheckConfig$1(untrustedConfig) {
4262
5407
  const config = {};
4263
- typeCheckConfig$c(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
5408
+ typeCheckConfig$i(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
4264
5409
  return config;
4265
5410
  }
4266
5411
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -4309,7 +5454,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4309
5454
  });
4310
5455
  }
4311
5456
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4312
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
5457
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4313
5458
  }
4314
5459
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4315
5460
  const { luvio, config } = context;
@@ -4335,21 +5480,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
4335
5480
  };
4336
5481
 
4337
5482
  function select(luvio, params) {
4338
- return select$o();
5483
+ return select$x();
4339
5484
  }
4340
5485
  function keyBuilder$1(luvio, params) {
4341
- return keyBuilder$i(luvio, {
5486
+ return keyBuilder$t(luvio, {
4342
5487
  slackUserId: params.urlParams.slackUserId,
4343
5488
  teamId: params.urlParams.teamId
4344
5489
  });
4345
5490
  }
4346
5491
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4347
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
5492
+ getTypeCacheKeys$e(storeKeyMap, luvio, response);
4348
5493
  }
4349
5494
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
4350
5495
  const { body } = response;
4351
5496
  const key = keyBuilder$1(luvio, resourceParams);
4352
- luvio.storeIngest(key, ingest$a, body);
5497
+ luvio.storeIngest(key, ingest$e, body);
4353
5498
  const snapshot = luvio.storeLookup({
4354
5499
  recordId: key,
4355
5500
  node: select(),
@@ -4369,8 +5514,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
4369
5514
  const storeMetadataParams = {
4370
5515
  ttl: TTL,
4371
5516
  namespace: keyPrefix,
4372
- version: VERSION$e,
4373
- representationName: RepresentationType$a
5517
+ version: VERSION$i,
5518
+ representationName: RepresentationType$e
4374
5519
  };
4375
5520
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4376
5521
  return errorSnapshot;
@@ -4395,14 +5540,14 @@ const getSlackUser_ConfigPropertyMetadata = [
4395
5540
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
4396
5541
  ];
4397
5542
  const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
4398
- const createResourceParams = /*#__PURE__*/ createResourceParams$c(getSlackUser_ConfigPropertyMetadata);
5543
+ const createResourceParams = /*#__PURE__*/ createResourceParams$i(getSlackUser_ConfigPropertyMetadata);
4399
5544
  function keyBuilder(luvio, config) {
4400
5545
  const resourceParams = createResourceParams(config);
4401
5546
  return keyBuilder$1(luvio, resourceParams);
4402
5547
  }
4403
5548
  function typeCheckConfig(untrustedConfig) {
4404
5549
  const config = {};
4405
- typeCheckConfig$c(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
5550
+ typeCheckConfig$i(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
4406
5551
  return config;
4407
5552
  }
4408
5553
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -4451,7 +5596,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4451
5596
  });
4452
5597
  }
4453
5598
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4454
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
5599
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4455
5600
  }
4456
5601
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4457
5602
  const { luvio, config } = context;
@@ -4476,4 +5621,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
4476
5621
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4477
5622
  };
4478
5623
 
4479
- export { deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory };
5624
+ export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };