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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/es/es2018/platform-slack-bridge.js +1985 -898
  2. package/dist/es/es2018/types/src/generated/adapters/deleteSlackConversationMember.d.ts +16 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMember.d.ts +30 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getSlackConversationMembers.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getSlackRecordChannelInfo.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/postSlackConversationMembers.d.ts +17 -0
  7. package/dist/es/es2018/types/src/generated/adapters/postSlackRecordChannelInfos.d.ts +18 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +13 -1
  10. package/dist/es/es2018/types/src/generated/resources/deleteConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +14 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeRecord_channelsByRelatedRecordId.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndSlackUserIdAndTeamId.d.ts +18 -0
  13. package/dist/es/es2018/types/src/generated/resources/getConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +17 -0
  14. package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeRecord_channels.d.ts +15 -0
  15. package/dist/es/es2018/types/src/generated/resources/postConnectSlackbridgeTeamChannelMembersByChannelIdAndTeamId.d.ts +16 -0
  16. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfoOutputRepresentation.d.ts +16 -4
  17. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInfosOutputRepresentation.d.ts +12 -3
  18. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationInputRepresentation.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMemberOutputRepresentation.d.ts +40 -0
  20. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersInputRepresentation.d.ts +28 -0
  21. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationMembersOutputRepresentation.d.ts +43 -0
  22. package/dist/es/es2018/types/src/generated/types/SlackBridgeConversationOutputRepresentation.d.ts +5 -3
  23. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoInputRepresentation.d.ts +36 -0
  24. package/dist/es/es2018/types/src/generated/types/SlackBridgeRecordChannelInfoOutputRepresentation.d.ts +53 -0
  25. package/dist/es/es2018/types/src/generated/types/SlackBridgeUserInfoOutputRepresentation.d.ts +1 -1
  26. package/package.json +3 -3
  27. package/sfdc/index.js +2385 -1139
  28. package/src/raml/api.raml +257 -88
  29. package/src/raml/luvio.raml +74 -26
@@ -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;
@@ -112,196 +112,73 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- const VERSION$g = "f4f8dd4ae465a32e7bda2bd6dd6dca13";
116
- function validate$g(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
115
+ const VERSION$j = "a398e130daf23612644f70d0705347e8";
116
+ function validate$j(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
117
117
  const v_error = (() => {
118
118
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
119
119
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
120
120
  }
121
- const obj_id = obj.id;
122
- const path_id = path + '.id';
123
- if (typeof obj_id !== 'string') {
124
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
125
- }
126
- const obj_isArchived = obj.isArchived;
127
- const path_isArchived = path + '.isArchived';
128
- if (typeof obj_isArchived !== 'boolean') {
129
- return new TypeError('Expected "boolean" but received "' + typeof obj_isArchived + '" (at "' + path_isArchived + '")');
130
- }
131
- const obj_isChannel = obj.isChannel;
132
- const path_isChannel = path + '.isChannel';
133
- if (typeof obj_isChannel !== 'boolean') {
134
- 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 + '")');
135
125
  }
136
- const obj_isCustomEmojiSupported = obj.isCustomEmojiSupported;
137
- const path_isCustomEmojiSupported = path + '.isCustomEmojiSupported';
138
- let obj_isCustomEmojiSupported_union0 = null;
139
- const obj_isCustomEmojiSupported_union0_error = (() => {
140
- if (typeof obj_isCustomEmojiSupported !== 'boolean') {
141
- 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 + '")');
142
132
  }
143
133
  })();
144
- if (obj_isCustomEmojiSupported_union0_error != null) {
145
- obj_isCustomEmojiSupported_union0 = obj_isCustomEmojiSupported_union0_error.message;
134
+ if (obj_isCustom_union0_error != null) {
135
+ obj_isCustom_union0 = obj_isCustom_union0_error.message;
146
136
  }
147
- let obj_isCustomEmojiSupported_union1 = null;
148
- const obj_isCustomEmojiSupported_union1_error = (() => {
149
- if (obj_isCustomEmojiSupported !== null) {
150
- 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 + '")');
151
141
  }
152
142
  })();
153
- if (obj_isCustomEmojiSupported_union1_error != null) {
154
- obj_isCustomEmojiSupported_union1 = obj_isCustomEmojiSupported_union1_error.message;
143
+ if (obj_isCustom_union1_error != null) {
144
+ obj_isCustom_union1 = obj_isCustom_union1_error.message;
155
145
  }
156
- if (obj_isCustomEmojiSupported_union0 && obj_isCustomEmojiSupported_union1) {
157
- let message = 'Object doesn\'t match union (at "' + path_isCustomEmojiSupported + '")';
158
- message += '\n' + obj_isCustomEmojiSupported_union0.split('\n').map((line) => '\t' + line).join('\n');
159
- 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');
160
150
  return new TypeError(message);
161
151
  }
162
- const obj_isGroup = obj.isGroup;
163
- const path_isGroup = path + '.isGroup';
164
- if (typeof obj_isGroup !== 'boolean') {
165
- return new TypeError('Expected "boolean" but received "' + typeof obj_isGroup + '" (at "' + path_isGroup + '")');
166
- }
167
- const obj_isIm = obj.isIm;
168
- const path_isIm = path + '.isIm';
169
- if (typeof obj_isIm !== 'boolean') {
170
- return new TypeError('Expected "boolean" but received "' + typeof obj_isIm + '" (at "' + path_isIm + '")');
171
- }
172
- const obj_isMember = obj.isMember;
173
- const path_isMember = path + '.isMember';
174
- if (typeof obj_isMember !== 'boolean') {
175
- return new TypeError('Expected "boolean" but received "' + typeof obj_isMember + '" (at "' + path_isMember + '")');
176
- }
177
- const obj_isOpen = obj.isOpen;
178
- const path_isOpen = path + '.isOpen';
179
- if (typeof obj_isOpen !== 'boolean') {
180
- return new TypeError('Expected "boolean" but received "' + typeof obj_isOpen + '" (at "' + path_isOpen + '")');
181
- }
182
- const obj_isPrivate = obj.isPrivate;
183
- const path_isPrivate = path + '.isPrivate';
184
- if (typeof obj_isPrivate !== 'boolean') {
185
- return new TypeError('Expected "boolean" but received "' + typeof obj_isPrivate + '" (at "' + path_isPrivate + '")');
186
- }
187
- const obj_isReadOnly = obj.isReadOnly;
188
- const path_isReadOnly = path + '.isReadOnly';
189
- if (typeof obj_isReadOnly !== 'boolean') {
190
- return new TypeError('Expected "boolean" but received "' + typeof obj_isReadOnly + '" (at "' + path_isReadOnly + '")');
191
- }
192
- const obj_isThreadOnly = obj.isThreadOnly;
193
- const path_isThreadOnly = path + '.isThreadOnly';
194
- if (typeof obj_isThreadOnly !== 'boolean') {
195
- return new TypeError('Expected "boolean" but received "' + typeof obj_isThreadOnly + '" (at "' + path_isThreadOnly + '")');
196
- }
197
152
  const obj_name = obj.name;
198
153
  const path_name = path + '.name';
199
154
  if (typeof obj_name !== 'string') {
200
155
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
201
156
  }
202
- const obj_numOfMembers = obj.numOfMembers;
203
- const path_numOfMembers = path + '.numOfMembers';
204
- let obj_numOfMembers_union0 = null;
205
- const obj_numOfMembers_union0_error = (() => {
206
- if (typeof obj_numOfMembers !== 'number' || (typeof obj_numOfMembers === 'number' && Math.floor(obj_numOfMembers) !== obj_numOfMembers)) {
207
- return new TypeError('Expected "integer" but received "' + typeof obj_numOfMembers + '" (at "' + path_numOfMembers + '")');
208
- }
209
- })();
210
- if (obj_numOfMembers_union0_error != null) {
211
- obj_numOfMembers_union0 = obj_numOfMembers_union0_error.message;
212
- }
213
- let obj_numOfMembers_union1 = null;
214
- const obj_numOfMembers_union1_error = (() => {
215
- if (obj_numOfMembers !== null) {
216
- return new TypeError('Expected "null" but received "' + typeof obj_numOfMembers + '" (at "' + path_numOfMembers + '")');
217
- }
218
- })();
219
- if (obj_numOfMembers_union1_error != null) {
220
- obj_numOfMembers_union1 = obj_numOfMembers_union1_error.message;
221
- }
222
- if (obj_numOfMembers_union0 && obj_numOfMembers_union1) {
223
- let message = 'Object doesn\'t match union (at "' + path_numOfMembers + '")';
224
- message += '\n' + obj_numOfMembers_union0.split('\n').map((line) => '\t' + line).join('\n');
225
- message += '\n' + obj_numOfMembers_union1.split('\n').map((line) => '\t' + line).join('\n');
226
- return new TypeError(message);
227
- }
228
- const obj_shouldCacheCustomEmoji = obj.shouldCacheCustomEmoji;
229
- const path_shouldCacheCustomEmoji = path + '.shouldCacheCustomEmoji';
230
- let obj_shouldCacheCustomEmoji_union0 = null;
231
- const obj_shouldCacheCustomEmoji_union0_error = (() => {
232
- if (typeof obj_shouldCacheCustomEmoji !== 'boolean') {
233
- return new TypeError('Expected "boolean" but received "' + typeof obj_shouldCacheCustomEmoji + '" (at "' + path_shouldCacheCustomEmoji + '")');
234
- }
235
- })();
236
- if (obj_shouldCacheCustomEmoji_union0_error != null) {
237
- obj_shouldCacheCustomEmoji_union0 = obj_shouldCacheCustomEmoji_union0_error.message;
238
- }
239
- let obj_shouldCacheCustomEmoji_union1 = null;
240
- const obj_shouldCacheCustomEmoji_union1_error = (() => {
241
- if (obj_shouldCacheCustomEmoji !== null) {
242
- return new TypeError('Expected "null" but received "' + typeof obj_shouldCacheCustomEmoji + '" (at "' + path_shouldCacheCustomEmoji + '")');
243
- }
244
- })();
245
- if (obj_shouldCacheCustomEmoji_union1_error != null) {
246
- 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 + '")');
247
161
  }
248
- if (obj_shouldCacheCustomEmoji_union0 && obj_shouldCacheCustomEmoji_union1) {
249
- let message = 'Object doesn\'t match union (at "' + path_shouldCacheCustomEmoji + '")';
250
- message += '\n' + obj_shouldCacheCustomEmoji_union0.split('\n').map((line) => '\t' + line).join('\n');
251
- message += '\n' + obj_shouldCacheCustomEmoji_union1.split('\n').map((line) => '\t' + line).join('\n');
252
- 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 + '")');
253
166
  }
254
167
  })();
255
168
  return v_error === undefined ? null : v_error;
256
169
  }
257
- const select$q = function SlackBridgeConversationInfoOutputRepresentationSelect() {
170
+ const select$y = function SlackBridgeEmojiOutputRepresentationSelect() {
258
171
  return {
259
172
  kind: 'Fragment',
260
- version: VERSION$g,
173
+ version: VERSION$j,
261
174
  private: [],
262
175
  selections: [
263
176
  {
264
- name: 'id',
265
- kind: 'Scalar'
266
- },
267
- {
268
- name: 'isArchived',
269
- kind: 'Scalar'
270
- },
271
- {
272
- name: 'isChannel',
273
- kind: 'Scalar'
274
- },
275
- {
276
- name: 'isCustomEmojiSupported',
277
- kind: 'Scalar'
278
- },
279
- {
280
- name: 'isGroup',
281
- kind: 'Scalar'
282
- },
283
- {
284
- name: 'isIm',
285
- kind: 'Scalar'
286
- },
287
- {
288
- name: 'isMember',
289
- kind: 'Scalar'
290
- },
291
- {
292
- name: 'isOpen',
293
- kind: 'Scalar'
294
- },
295
- {
296
- name: 'isPrivate',
297
- kind: 'Scalar'
298
- },
299
- {
300
- name: 'isReadOnly',
177
+ name: 'altText',
301
178
  kind: 'Scalar'
302
179
  },
303
180
  {
304
- name: 'isThreadOnly',
181
+ name: 'isCustom',
305
182
  kind: 'Scalar'
306
183
  },
307
184
  {
@@ -309,65 +186,20 @@ const select$q = function SlackBridgeConversationInfoOutputRepresentationSelect(
309
186
  kind: 'Scalar'
310
187
  },
311
188
  {
312
- name: 'numOfMembers',
189
+ name: 'unicode',
313
190
  kind: 'Scalar'
314
191
  },
315
192
  {
316
- name: 'shouldCacheCustomEmoji',
193
+ name: 'url',
317
194
  kind: 'Scalar'
318
195
  }
319
196
  ]
320
197
  };
321
198
  };
322
- function equals$g(existing, incoming) {
323
- const existing_isArchived = existing.isArchived;
324
- const incoming_isArchived = incoming.isArchived;
325
- if (!(existing_isArchived === incoming_isArchived)) {
326
- return false;
327
- }
328
- const existing_isChannel = existing.isChannel;
329
- const incoming_isChannel = incoming.isChannel;
330
- if (!(existing_isChannel === incoming_isChannel)) {
331
- return false;
332
- }
333
- const existing_isGroup = existing.isGroup;
334
- const incoming_isGroup = incoming.isGroup;
335
- if (!(existing_isGroup === incoming_isGroup)) {
336
- return false;
337
- }
338
- const existing_isIm = existing.isIm;
339
- const incoming_isIm = incoming.isIm;
340
- if (!(existing_isIm === incoming_isIm)) {
341
- return false;
342
- }
343
- const existing_isMember = existing.isMember;
344
- const incoming_isMember = incoming.isMember;
345
- if (!(existing_isMember === incoming_isMember)) {
346
- return false;
347
- }
348
- const existing_isOpen = existing.isOpen;
349
- const incoming_isOpen = incoming.isOpen;
350
- if (!(existing_isOpen === incoming_isOpen)) {
351
- return false;
352
- }
353
- const existing_isPrivate = existing.isPrivate;
354
- const incoming_isPrivate = incoming.isPrivate;
355
- if (!(existing_isPrivate === incoming_isPrivate)) {
356
- return false;
357
- }
358
- const existing_isReadOnly = existing.isReadOnly;
359
- const incoming_isReadOnly = incoming.isReadOnly;
360
- if (!(existing_isReadOnly === incoming_isReadOnly)) {
361
- return false;
362
- }
363
- const existing_isThreadOnly = existing.isThreadOnly;
364
- const incoming_isThreadOnly = incoming.isThreadOnly;
365
- if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
366
- return false;
367
- }
368
- const existing_id = existing.id;
369
- const incoming_id = incoming.id;
370
- 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)) {
371
203
  return false;
372
204
  }
373
205
  const existing_name = existing.name;
@@ -375,127 +207,14 @@ function equals$g(existing, incoming) {
375
207
  if (!(existing_name === incoming_name)) {
376
208
  return false;
377
209
  }
378
- const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
379
- const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
380
- if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
210
+ const existing_unicode = existing.unicode;
211
+ const incoming_unicode = incoming.unicode;
212
+ if (!(existing_unicode === incoming_unicode)) {
381
213
  return false;
382
214
  }
383
- const existing_numOfMembers = existing.numOfMembers;
384
- const incoming_numOfMembers = incoming.numOfMembers;
385
- if (!(existing_numOfMembers === incoming_numOfMembers)) {
386
- return false;
387
- }
388
- const existing_shouldCacheCustomEmoji = existing.shouldCacheCustomEmoji;
389
- const incoming_shouldCacheCustomEmoji = incoming.shouldCacheCustomEmoji;
390
- if (!(existing_shouldCacheCustomEmoji === incoming_shouldCacheCustomEmoji)) {
391
- return false;
392
- }
393
- return true;
394
- }
395
-
396
- const VERSION$f = "a398e130daf23612644f70d0705347e8";
397
- function validate$f(obj, path = 'SlackBridgeEmojiOutputRepresentation') {
398
- const v_error = (() => {
399
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
400
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
401
- }
402
- const obj_altText = obj.altText;
403
- const path_altText = path + '.altText';
404
- if (typeof obj_altText !== 'string') {
405
- return new TypeError('Expected "string" but received "' + typeof obj_altText + '" (at "' + path_altText + '")');
406
- }
407
- const obj_isCustom = obj.isCustom;
408
- const path_isCustom = path + '.isCustom';
409
- let obj_isCustom_union0 = null;
410
- const obj_isCustom_union0_error = (() => {
411
- if (typeof obj_isCustom !== 'boolean') {
412
- return new TypeError('Expected "boolean" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
413
- }
414
- })();
415
- if (obj_isCustom_union0_error != null) {
416
- obj_isCustom_union0 = obj_isCustom_union0_error.message;
417
- }
418
- let obj_isCustom_union1 = null;
419
- const obj_isCustom_union1_error = (() => {
420
- if (obj_isCustom !== null) {
421
- return new TypeError('Expected "null" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
422
- }
423
- })();
424
- if (obj_isCustom_union1_error != null) {
425
- obj_isCustom_union1 = obj_isCustom_union1_error.message;
426
- }
427
- if (obj_isCustom_union0 && obj_isCustom_union1) {
428
- let message = 'Object doesn\'t match union (at "' + path_isCustom + '")';
429
- message += '\n' + obj_isCustom_union0.split('\n').map((line) => '\t' + line).join('\n');
430
- message += '\n' + obj_isCustom_union1.split('\n').map((line) => '\t' + line).join('\n');
431
- return new TypeError(message);
432
- }
433
- const obj_name = obj.name;
434
- const path_name = path + '.name';
435
- if (typeof obj_name !== 'string') {
436
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
437
- }
438
- const obj_unicode = obj.unicode;
439
- const path_unicode = path + '.unicode';
440
- if (typeof obj_unicode !== 'string') {
441
- return new TypeError('Expected "string" but received "' + typeof obj_unicode + '" (at "' + path_unicode + '")');
442
- }
443
- const obj_url = obj.url;
444
- const path_url = path + '.url';
445
- if (typeof obj_url !== 'string') {
446
- return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
447
- }
448
- })();
449
- return v_error === undefined ? null : v_error;
450
- }
451
- const select$p = function SlackBridgeEmojiOutputRepresentationSelect() {
452
- return {
453
- kind: 'Fragment',
454
- version: VERSION$f,
455
- private: [],
456
- selections: [
457
- {
458
- name: 'altText',
459
- kind: 'Scalar'
460
- },
461
- {
462
- name: 'isCustom',
463
- kind: 'Scalar'
464
- },
465
- {
466
- name: 'name',
467
- kind: 'Scalar'
468
- },
469
- {
470
- name: 'unicode',
471
- kind: 'Scalar'
472
- },
473
- {
474
- name: 'url',
475
- kind: 'Scalar'
476
- }
477
- ]
478
- };
479
- };
480
- function equals$f(existing, incoming) {
481
- const existing_altText = existing.altText;
482
- const incoming_altText = incoming.altText;
483
- if (!(existing_altText === incoming_altText)) {
484
- return false;
485
- }
486
- const existing_name = existing.name;
487
- const incoming_name = incoming.name;
488
- if (!(existing_name === incoming_name)) {
489
- return false;
490
- }
491
- const existing_unicode = existing.unicode;
492
- const incoming_unicode = incoming.unicode;
493
- if (!(existing_unicode === incoming_unicode)) {
494
- return false;
495
- }
496
- const existing_url = existing.url;
497
- const incoming_url = incoming.url;
498
- if (!(existing_url === incoming_url)) {
215
+ const existing_url = existing.url;
216
+ const incoming_url = incoming.url;
217
+ if (!(existing_url === incoming_url)) {
499
218
  return false;
500
219
  }
501
220
  const existing_isCustom = existing.isCustom;
@@ -506,9 +225,9 @@ function equals$f(existing, incoming) {
506
225
  return true;
507
226
  }
508
227
 
509
- const TTL = 300000;
510
- const VERSION$e = "1c89c1c8379c0e55b8f94fecd03d8775";
511
- function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
228
+ const TTL = 600000;
229
+ const VERSION$i = "1c89c1c8379c0e55b8f94fecd03d8775";
230
+ function validate$i(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
512
231
  const v_error = (() => {
513
232
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
514
233
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -703,7 +422,7 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
703
422
  const path_statusEmoji = path + '.statusEmoji';
704
423
  let obj_statusEmoji_union0 = null;
705
424
  const obj_statusEmoji_union0_error = (() => {
706
- const referencepath_statusEmojiValidationError = validate$f(obj_statusEmoji, path_statusEmoji);
425
+ const referencepath_statusEmojiValidationError = validate$j(obj_statusEmoji, path_statusEmoji);
707
426
  if (referencepath_statusEmojiValidationError !== null) {
708
427
  let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
709
428
  message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -741,25 +460,25 @@ function validate$e(obj, path = 'SlackBridgeUserInfoOutputRepresentation') {
741
460
  })();
742
461
  return v_error === undefined ? null : v_error;
743
462
  }
744
- const RepresentationType$a = 'SlackBridgeUserInfoOutputRepresentation';
745
- function keyBuilder$i(luvio, config) {
746
- 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;
747
466
  }
748
- function keyBuilderFromType$4(luvio, object) {
467
+ function keyBuilderFromType$8(luvio, object) {
749
468
  const keyParams = {
750
469
  teamId: object.teamId,
751
470
  slackUserId: object.slackUserId
752
471
  };
753
- return keyBuilder$i(luvio, keyParams);
472
+ return keyBuilder$t(luvio, keyParams);
754
473
  }
755
- function normalize$a(input, existing, path, luvio, store, timestamp) {
474
+ function normalize$e(input, existing, path, luvio, store, timestamp) {
756
475
  return input;
757
476
  }
758
- const select$o = function SlackBridgeUserInfoOutputRepresentationSelect() {
759
- 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();
760
479
  return {
761
480
  kind: 'Fragment',
762
- version: VERSION$e,
481
+ version: VERSION$i,
763
482
  private: [],
764
483
  selections: [
765
484
  {
@@ -827,7 +546,7 @@ const select$o = function SlackBridgeUserInfoOutputRepresentationSelect() {
827
546
  ]
828
547
  };
829
548
  };
830
- function equals$e(existing, incoming) {
549
+ function equals$i(existing, incoming) {
831
550
  const existing_bot = existing.bot;
832
551
  const incoming_bot = incoming.bot;
833
552
  if (!(existing_bot === incoming_bot)) {
@@ -903,98 +622,243 @@ function equals$e(existing, incoming) {
903
622
  if (!(existing_statusEmoji === incoming_statusEmoji
904
623
  || (existing_statusEmoji != null &&
905
624
  incoming_statusEmoji != null &&
906
- equals$f(existing_statusEmoji, incoming_statusEmoji)))) {
625
+ equals$j(existing_statusEmoji, incoming_statusEmoji)))) {
907
626
  return false;
908
627
  }
909
628
  return true;
910
629
  }
911
- const ingest$a = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
630
+ const ingest$e = function SlackBridgeUserInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
912
631
  if (process.env.NODE_ENV !== 'production') {
913
- const validateError = validate$e(input);
632
+ const validateError = validate$i(input);
914
633
  if (validateError !== null) {
915
634
  throw validateError;
916
635
  }
917
636
  }
918
- const key = keyBuilderFromType$4(luvio, input);
637
+ const key = keyBuilderFromType$8(luvio, input);
919
638
  const ttlToUse = TTL;
920
- 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);
921
640
  return createLink(key);
922
641
  };
923
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
642
+ function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
924
643
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
925
- const rootKey = keyBuilderFromType$4(luvio, input);
644
+ const rootKey = keyBuilderFromType$8(luvio, input);
926
645
  rootKeySet.set(rootKey, {
927
646
  namespace: keyPrefix,
928
- representationName: RepresentationType$a,
647
+ representationName: RepresentationType$e,
929
648
  mergeable: false
930
649
  });
931
650
  }
932
651
 
933
- const VERSION$d = "c7dec6b60c7d567a7835fbdd84d3e67e";
934
- function validate$d(obj, path = 'SlackBridgeReactionOutputRepresentation') {
652
+ const VERSION$h = "462819d22d973a88a4f4a49267fd51bd";
653
+ function validate$h(obj, path = 'SlackBridgeConversationInfoOutputRepresentation') {
935
654
  const v_error = (() => {
936
655
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
937
656
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
938
657
  }
939
- const obj_count = obj.count;
940
- const path_count = path + '.count';
941
- if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
942
- 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 + '")');
943
733
  }
944
734
  const obj_name = obj.name;
945
735
  const path_name = path + '.name';
946
736
  if (typeof obj_name !== 'string') {
947
737
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
948
738
  }
949
- const obj_reactedUsers = obj.reactedUsers;
950
- const path_reactedUsers = path + '.reactedUsers';
951
- if (!ArrayIsArray(obj_reactedUsers)) {
952
- return new TypeError('Expected "array" but received "' + typeof obj_reactedUsers + '" (at "' + path_reactedUsers + '")');
953
- }
954
- for (let i = 0; i < obj_reactedUsers.length; i++) {
955
- const obj_reactedUsers_item = obj_reactedUsers[i];
956
- const path_reactedUsers_item = path_reactedUsers + '[' + i + ']';
957
- if (typeof obj_reactedUsers_item !== 'string') {
958
- return new TypeError('Expected "string" but received "' + typeof obj_reactedUsers_item + '" (at "' + path_reactedUsers_item + '")');
959
- }
960
- }
961
- const obj_url = obj.url;
962
- const path_url = path + '.url';
963
- let obj_url_union0 = null;
964
- const obj_url_union0_error = (() => {
965
- if (typeof obj_url !== 'string') {
966
- 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 + '")');
967
745
  }
968
746
  })();
969
- if (obj_url_union0_error != null) {
970
- obj_url_union0 = obj_url_union0_error.message;
747
+ if (obj_numOfMembers_union0_error != null) {
748
+ obj_numOfMembers_union0 = obj_numOfMembers_union0_error.message;
971
749
  }
972
- let obj_url_union1 = null;
973
- const obj_url_union1_error = (() => {
974
- if (obj_url !== null) {
975
- 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 + '")');
976
754
  }
977
755
  })();
978
- if (obj_url_union1_error != null) {
979
- obj_url_union1 = obj_url_union1_error.message;
756
+ if (obj_numOfMembers_union1_error != null) {
757
+ obj_numOfMembers_union1 = obj_numOfMembers_union1_error.message;
980
758
  }
981
- if (obj_url_union0 && obj_url_union1) {
982
- let message = 'Object doesn\'t match union (at "' + path_url + '")';
983
- message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
984
- 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');
985
763
  return new TypeError(message);
986
764
  }
987
- })();
988
- return v_error === undefined ? null : v_error;
989
- }
990
- const select$n = function SlackBridgeReactionOutputRepresentationSelect() {
991
- return {
992
- kind: 'Fragment',
993
- version: VERSION$d,
994
- private: [],
995
- selections: [
996
- {
997
- 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
+ if (obj.url !== undefined) {
792
+ const obj_url = obj.url;
793
+ const path_url = path + '.url';
794
+ if (typeof obj_url !== 'string') {
795
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
796
+ }
797
+ }
798
+ })();
799
+ return v_error === undefined ? null : v_error;
800
+ }
801
+ const RepresentationType$d = 'SlackBridgeConversationInfoOutputRepresentation';
802
+ function keyBuilder$s(luvio, config) {
803
+ return keyPrefix + '::' + RepresentationType$d + ':' + config.id;
804
+ }
805
+ function keyBuilderFromType$7(luvio, object) {
806
+ const keyParams = {
807
+ id: object.id
808
+ };
809
+ return keyBuilder$s(luvio, keyParams);
810
+ }
811
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
812
+ return input;
813
+ }
814
+ const select$w = function SlackBridgeConversationInfoOutputRepresentationSelect() {
815
+ return {
816
+ kind: 'Fragment',
817
+ version: VERSION$h,
818
+ private: [],
819
+ selections: [
820
+ {
821
+ name: 'id',
822
+ kind: 'Scalar'
823
+ },
824
+ {
825
+ name: 'isArchived',
826
+ kind: 'Scalar'
827
+ },
828
+ {
829
+ name: 'isChannel',
830
+ kind: 'Scalar'
831
+ },
832
+ {
833
+ name: 'isCustomEmojiSupported',
834
+ kind: 'Scalar'
835
+ },
836
+ {
837
+ name: 'isGroup',
838
+ kind: 'Scalar'
839
+ },
840
+ {
841
+ name: 'isIm',
842
+ kind: 'Scalar'
843
+ },
844
+ {
845
+ name: 'isMember',
846
+ kind: 'Scalar'
847
+ },
848
+ {
849
+ name: 'isOpen',
850
+ kind: 'Scalar'
851
+ },
852
+ {
853
+ name: 'isPrivate',
854
+ kind: 'Scalar'
855
+ },
856
+ {
857
+ name: 'isReadOnly',
858
+ kind: 'Scalar'
859
+ },
860
+ {
861
+ name: 'isThreadOnly',
998
862
  kind: 'Scalar'
999
863
  },
1000
864
  {
@@ -1002,21 +866,70 @@ const select$n = function SlackBridgeReactionOutputRepresentationSelect() {
1002
866
  kind: 'Scalar'
1003
867
  },
1004
868
  {
1005
- name: 'reactedUsers',
1006
- kind: 'Scalar',
1007
- plural: true
869
+ name: 'numOfMembers',
870
+ kind: 'Scalar'
1008
871
  },
1009
872
  {
1010
- name: 'url',
873
+ name: 'shouldCacheCustomEmoji',
1011
874
  kind: 'Scalar'
875
+ },
876
+ {
877
+ name: 'url',
878
+ kind: 'Scalar',
879
+ required: false
1012
880
  }
1013
881
  ]
1014
882
  };
1015
883
  };
1016
- function equals$d(existing, incoming) {
1017
- const existing_count = existing.count;
1018
- const incoming_count = incoming.count;
1019
- if (!(existing_count === incoming_count)) {
884
+ function equals$h(existing, incoming) {
885
+ const existing_isArchived = existing.isArchived;
886
+ const incoming_isArchived = incoming.isArchived;
887
+ if (!(existing_isArchived === incoming_isArchived)) {
888
+ return false;
889
+ }
890
+ const existing_isChannel = existing.isChannel;
891
+ const incoming_isChannel = incoming.isChannel;
892
+ if (!(existing_isChannel === incoming_isChannel)) {
893
+ return false;
894
+ }
895
+ const existing_isGroup = existing.isGroup;
896
+ const incoming_isGroup = incoming.isGroup;
897
+ if (!(existing_isGroup === incoming_isGroup)) {
898
+ return false;
899
+ }
900
+ const existing_isIm = existing.isIm;
901
+ const incoming_isIm = incoming.isIm;
902
+ if (!(existing_isIm === incoming_isIm)) {
903
+ return false;
904
+ }
905
+ const existing_isMember = existing.isMember;
906
+ const incoming_isMember = incoming.isMember;
907
+ if (!(existing_isMember === incoming_isMember)) {
908
+ return false;
909
+ }
910
+ const existing_isOpen = existing.isOpen;
911
+ const incoming_isOpen = incoming.isOpen;
912
+ if (!(existing_isOpen === incoming_isOpen)) {
913
+ return false;
914
+ }
915
+ const existing_isPrivate = existing.isPrivate;
916
+ const incoming_isPrivate = incoming.isPrivate;
917
+ if (!(existing_isPrivate === incoming_isPrivate)) {
918
+ return false;
919
+ }
920
+ const existing_isReadOnly = existing.isReadOnly;
921
+ const incoming_isReadOnly = incoming.isReadOnly;
922
+ if (!(existing_isReadOnly === incoming_isReadOnly)) {
923
+ return false;
924
+ }
925
+ const existing_isThreadOnly = existing.isThreadOnly;
926
+ const incoming_isThreadOnly = incoming.isThreadOnly;
927
+ if (!(existing_isThreadOnly === incoming_isThreadOnly)) {
928
+ return false;
929
+ }
930
+ const existing_id = existing.id;
931
+ const incoming_id = incoming.id;
932
+ if (!(existing_id === incoming_id)) {
1020
933
  return false;
1021
934
  }
1022
935
  const existing_name = existing.name;
@@ -1024,61 +937,207 @@ function equals$d(existing, incoming) {
1024
937
  if (!(existing_name === incoming_name)) {
1025
938
  return false;
1026
939
  }
1027
- const existing_reactedUsers = existing.reactedUsers;
1028
- const incoming_reactedUsers = incoming.reactedUsers;
1029
- const equals_reactedUsers_items = equalsArray(existing_reactedUsers, incoming_reactedUsers, (existing_reactedUsers_item, incoming_reactedUsers_item) => {
1030
- if (!(existing_reactedUsers_item === incoming_reactedUsers_item)) {
940
+ const existing_url = existing.url;
941
+ const incoming_url = incoming.url;
942
+ // if at least one of these optionals is defined
943
+ if (existing_url !== undefined || incoming_url !== undefined) {
944
+ // if one of these is not defined we know the other is defined and therefore
945
+ // not equal
946
+ if (existing_url === undefined || incoming_url === undefined) {
1031
947
  return false;
1032
948
  }
1033
- });
1034
- if (equals_reactedUsers_items === false) {
949
+ if (!(existing_url === incoming_url)) {
950
+ return false;
951
+ }
952
+ }
953
+ const existing_isCustomEmojiSupported = existing.isCustomEmojiSupported;
954
+ const incoming_isCustomEmojiSupported = incoming.isCustomEmojiSupported;
955
+ if (!(existing_isCustomEmojiSupported === incoming_isCustomEmojiSupported)) {
1035
956
  return false;
1036
957
  }
1037
- const existing_url = existing.url;
1038
- const incoming_url = incoming.url;
1039
- if (!(existing_url === incoming_url)) {
958
+ const existing_numOfMembers = existing.numOfMembers;
959
+ const incoming_numOfMembers = incoming.numOfMembers;
960
+ if (!(existing_numOfMembers === incoming_numOfMembers)) {
961
+ return false;
962
+ }
963
+ const existing_shouldCacheCustomEmoji = existing.shouldCacheCustomEmoji;
964
+ const incoming_shouldCacheCustomEmoji = incoming.shouldCacheCustomEmoji;
965
+ if (!(existing_shouldCacheCustomEmoji === incoming_shouldCacheCustomEmoji)) {
1040
966
  return false;
1041
967
  }
1042
968
  return true;
1043
969
  }
970
+ const ingest$d = function SlackBridgeConversationInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
971
+ if (process.env.NODE_ENV !== 'production') {
972
+ const validateError = validate$h(input);
973
+ if (validateError !== null) {
974
+ throw validateError;
975
+ }
976
+ }
977
+ const key = keyBuilderFromType$7(luvio, input);
978
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
979
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "SlackBridge", VERSION$h, RepresentationType$d, equals$h);
980
+ return createLink(key);
981
+ };
982
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
983
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
984
+ const rootKey = keyBuilderFromType$7(luvio, input);
985
+ rootKeySet.set(rootKey, {
986
+ namespace: keyPrefix,
987
+ representationName: RepresentationType$d,
988
+ mergeable: false
989
+ });
990
+ }
1044
991
 
1045
- const VERSION$c = "4634cd404d8392ac4ca9f0e1be03bfbd";
1046
- function validate$c(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
992
+ const VERSION$g = "c7dec6b60c7d567a7835fbdd84d3e67e";
993
+ function validate$g(obj, path = 'SlackBridgeReactionOutputRepresentation') {
1047
994
  const v_error = (() => {
1048
995
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1049
996
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1050
997
  }
1051
- const obj_extension = obj.extension;
1052
- const path_extension = path + '.extension';
1053
- if (typeof obj_extension !== 'string') {
1054
- return new TypeError('Expected "string" but received "' + typeof obj_extension + '" (at "' + path_extension + '")');
998
+ const obj_count = obj.count;
999
+ const path_count = path + '.count';
1000
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
1001
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
1055
1002
  }
1056
- const obj_iconName = obj.iconName;
1057
- const path_iconName = path + '.iconName';
1058
- if (typeof obj_iconName !== 'string') {
1059
- return new TypeError('Expected "string" but received "' + typeof obj_iconName + '" (at "' + path_iconName + '")');
1003
+ const obj_name = obj.name;
1004
+ const path_name = path + '.name';
1005
+ if (typeof obj_name !== 'string') {
1006
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1007
+ }
1008
+ const obj_reactedUsers = obj.reactedUsers;
1009
+ const path_reactedUsers = path + '.reactedUsers';
1010
+ if (!ArrayIsArray(obj_reactedUsers)) {
1011
+ return new TypeError('Expected "array" but received "' + typeof obj_reactedUsers + '" (at "' + path_reactedUsers + '")');
1012
+ }
1013
+ for (let i = 0; i < obj_reactedUsers.length; i++) {
1014
+ const obj_reactedUsers_item = obj_reactedUsers[i];
1015
+ const path_reactedUsers_item = path_reactedUsers + '[' + i + ']';
1016
+ if (typeof obj_reactedUsers_item !== 'string') {
1017
+ return new TypeError('Expected "string" but received "' + typeof obj_reactedUsers_item + '" (at "' + path_reactedUsers_item + '")');
1018
+ }
1019
+ }
1020
+ const obj_url = obj.url;
1021
+ const path_url = path + '.url';
1022
+ let obj_url_union0 = null;
1023
+ const obj_url_union0_error = (() => {
1024
+ if (typeof obj_url !== 'string') {
1025
+ return new TypeError('Expected "string" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1026
+ }
1027
+ })();
1028
+ if (obj_url_union0_error != null) {
1029
+ obj_url_union0 = obj_url_union0_error.message;
1030
+ }
1031
+ let obj_url_union1 = null;
1032
+ const obj_url_union1_error = (() => {
1033
+ if (obj_url !== null) {
1034
+ return new TypeError('Expected "null" but received "' + typeof obj_url + '" (at "' + path_url + '")');
1035
+ }
1036
+ })();
1037
+ if (obj_url_union1_error != null) {
1038
+ obj_url_union1 = obj_url_union1_error.message;
1039
+ }
1040
+ if (obj_url_union0 && obj_url_union1) {
1041
+ let message = 'Object doesn\'t match union (at "' + path_url + '")';
1042
+ message += '\n' + obj_url_union0.split('\n').map((line) => '\t' + line).join('\n');
1043
+ message += '\n' + obj_url_union1.split('\n').map((line) => '\t' + line).join('\n');
1044
+ return new TypeError(message);
1060
1045
  }
1061
1046
  })();
1062
1047
  return v_error === undefined ? null : v_error;
1063
1048
  }
1064
- const select$m = function SlackBridgeFileTypeOutputRepresentationSelect() {
1049
+ const select$v = function SlackBridgeReactionOutputRepresentationSelect() {
1065
1050
  return {
1066
1051
  kind: 'Fragment',
1067
- version: VERSION$c,
1052
+ version: VERSION$g,
1068
1053
  private: [],
1069
1054
  selections: [
1070
1055
  {
1071
- name: 'extension',
1056
+ name: 'count',
1072
1057
  kind: 'Scalar'
1073
1058
  },
1074
1059
  {
1075
- name: 'iconName',
1060
+ name: 'name',
1061
+ kind: 'Scalar'
1062
+ },
1063
+ {
1064
+ name: 'reactedUsers',
1065
+ kind: 'Scalar',
1066
+ plural: true
1067
+ },
1068
+ {
1069
+ name: 'url',
1076
1070
  kind: 'Scalar'
1077
1071
  }
1078
1072
  ]
1079
1073
  };
1080
1074
  };
1081
- function equals$c(existing, incoming) {
1075
+ function equals$g(existing, incoming) {
1076
+ const existing_count = existing.count;
1077
+ const incoming_count = incoming.count;
1078
+ if (!(existing_count === incoming_count)) {
1079
+ return false;
1080
+ }
1081
+ const existing_name = existing.name;
1082
+ const incoming_name = incoming.name;
1083
+ if (!(existing_name === incoming_name)) {
1084
+ return false;
1085
+ }
1086
+ const existing_reactedUsers = existing.reactedUsers;
1087
+ const incoming_reactedUsers = incoming.reactedUsers;
1088
+ const equals_reactedUsers_items = equalsArray(existing_reactedUsers, incoming_reactedUsers, (existing_reactedUsers_item, incoming_reactedUsers_item) => {
1089
+ if (!(existing_reactedUsers_item === incoming_reactedUsers_item)) {
1090
+ return false;
1091
+ }
1092
+ });
1093
+ if (equals_reactedUsers_items === false) {
1094
+ return false;
1095
+ }
1096
+ const existing_url = existing.url;
1097
+ const incoming_url = incoming.url;
1098
+ if (!(existing_url === incoming_url)) {
1099
+ return false;
1100
+ }
1101
+ return true;
1102
+ }
1103
+
1104
+ const VERSION$f = "4634cd404d8392ac4ca9f0e1be03bfbd";
1105
+ function validate$f(obj, path = 'SlackBridgeFileTypeOutputRepresentation') {
1106
+ const v_error = (() => {
1107
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1108
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1109
+ }
1110
+ const obj_extension = obj.extension;
1111
+ const path_extension = path + '.extension';
1112
+ if (typeof obj_extension !== 'string') {
1113
+ return new TypeError('Expected "string" but received "' + typeof obj_extension + '" (at "' + path_extension + '")');
1114
+ }
1115
+ const obj_iconName = obj.iconName;
1116
+ const path_iconName = path + '.iconName';
1117
+ if (typeof obj_iconName !== 'string') {
1118
+ return new TypeError('Expected "string" but received "' + typeof obj_iconName + '" (at "' + path_iconName + '")');
1119
+ }
1120
+ })();
1121
+ return v_error === undefined ? null : v_error;
1122
+ }
1123
+ const select$u = function SlackBridgeFileTypeOutputRepresentationSelect() {
1124
+ return {
1125
+ kind: 'Fragment',
1126
+ version: VERSION$f,
1127
+ private: [],
1128
+ selections: [
1129
+ {
1130
+ name: 'extension',
1131
+ kind: 'Scalar'
1132
+ },
1133
+ {
1134
+ name: 'iconName',
1135
+ kind: 'Scalar'
1136
+ }
1137
+ ]
1138
+ };
1139
+ };
1140
+ function equals$f(existing, incoming) {
1082
1141
  const existing_extension = existing.extension;
1083
1142
  const incoming_extension = incoming.extension;
1084
1143
  if (!(existing_extension === incoming_extension)) {
@@ -1092,8 +1151,8 @@ function equals$c(existing, incoming) {
1092
1151
  return true;
1093
1152
  }
1094
1153
 
1095
- const VERSION$b = "929dbada9eaca4bca26deee89f9d11b2";
1096
- function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
1154
+ const VERSION$e = "929dbada9eaca4bca26deee89f9d11b2";
1155
+ function validate$e(obj, path = 'SlackBridgeContentVersionOutputRepresentation') {
1097
1156
  const v_error = (() => {
1098
1157
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1099
1158
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1105,7 +1164,7 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
1105
1164
  }
1106
1165
  const obj_filetype = obj.filetype;
1107
1166
  const path_filetype = path + '.filetype';
1108
- const referencepath_filetypeValidationError = validate$c(obj_filetype, path_filetype);
1167
+ const referencepath_filetypeValidationError = validate$f(obj_filetype, path_filetype);
1109
1168
  if (referencepath_filetypeValidationError !== null) {
1110
1169
  let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
1111
1170
  message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1134,11 +1193,11 @@ function validate$b(obj, path = 'SlackBridgeContentVersionOutputRepresentation')
1134
1193
  })();
1135
1194
  return v_error === undefined ? null : v_error;
1136
1195
  }
1137
- const select$l = function SlackBridgeContentVersionOutputRepresentationSelect() {
1138
- const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$m();
1196
+ const select$t = function SlackBridgeContentVersionOutputRepresentationSelect() {
1197
+ const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$u();
1139
1198
  return {
1140
1199
  kind: 'Fragment',
1141
- version: VERSION$b,
1200
+ version: VERSION$e,
1142
1201
  private: [],
1143
1202
  selections: [
1144
1203
  {
@@ -1169,7 +1228,7 @@ const select$l = function SlackBridgeContentVersionOutputRepresentationSelect()
1169
1228
  ]
1170
1229
  };
1171
1230
  };
1172
- function equals$b(existing, incoming) {
1231
+ function equals$e(existing, incoming) {
1173
1232
  const existing_size = existing.size;
1174
1233
  const incoming_size = incoming.size;
1175
1234
  if (!(existing_size === incoming_size)) {
@@ -1197,21 +1256,21 @@ function equals$b(existing, incoming) {
1197
1256
  }
1198
1257
  const existing_filetype = existing.filetype;
1199
1258
  const incoming_filetype = incoming.filetype;
1200
- if (!(equals$c(existing_filetype, incoming_filetype))) {
1259
+ if (!(equals$f(existing_filetype, incoming_filetype))) {
1201
1260
  return false;
1202
1261
  }
1203
1262
  return true;
1204
1263
  }
1205
1264
 
1206
- const VERSION$a = "effdd259bc622bee05493fc2a3ecd276";
1207
- function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
1265
+ const VERSION$d = "effdd259bc622bee05493fc2a3ecd276";
1266
+ function validate$d(obj, path = 'SlackBridgeContentDocumentOutputRepresentation') {
1208
1267
  const v_error = (() => {
1209
1268
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1210
1269
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1211
1270
  }
1212
1271
  const obj_filetype = obj.filetype;
1213
1272
  const path_filetype = path + '.filetype';
1214
- const referencepath_filetypeValidationError = validate$c(obj_filetype, path_filetype);
1273
+ const referencepath_filetypeValidationError = validate$f(obj_filetype, path_filetype);
1215
1274
  if (referencepath_filetypeValidationError !== null) {
1216
1275
  let message = 'Object doesn\'t match SlackBridgeFileTypeOutputRepresentation (at "' + path_filetype + '")\n';
1217
1276
  message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1224,7 +1283,7 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
1224
1283
  }
1225
1284
  const obj_latestPublishedVersion = obj.latestPublishedVersion;
1226
1285
  const path_latestPublishedVersion = path + '.latestPublishedVersion';
1227
- const referencepath_latestPublishedVersionValidationError = validate$b(obj_latestPublishedVersion, path_latestPublishedVersion);
1286
+ const referencepath_latestPublishedVersionValidationError = validate$e(obj_latestPublishedVersion, path_latestPublishedVersion);
1228
1287
  if (referencepath_latestPublishedVersionValidationError !== null) {
1229
1288
  let message = 'Object doesn\'t match SlackBridgeContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
1230
1289
  message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1243,12 +1302,12 @@ function validate$a(obj, path = 'SlackBridgeContentDocumentOutputRepresentation'
1243
1302
  })();
1244
1303
  return v_error === undefined ? null : v_error;
1245
1304
  }
1246
- const select$k = function SlackBridgeContentDocumentOutputRepresentationSelect() {
1247
- const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$m();
1248
- const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$l();
1305
+ const select$s = function SlackBridgeContentDocumentOutputRepresentationSelect() {
1306
+ const { selections: SlackBridgeFileTypeOutputRepresentation__selections, opaque: SlackBridgeFileTypeOutputRepresentation__opaque, } = select$u();
1307
+ const { selections: SlackBridgeContentVersionOutputRepresentation__selections, opaque: SlackBridgeContentVersionOutputRepresentation__opaque, } = select$t();
1249
1308
  return {
1250
1309
  kind: 'Fragment',
1251
- version: VERSION$a,
1310
+ version: VERSION$d,
1252
1311
  private: [],
1253
1312
  selections: [
1254
1313
  {
@@ -1276,7 +1335,7 @@ const select$k = function SlackBridgeContentDocumentOutputRepresentationSelect()
1276
1335
  ]
1277
1336
  };
1278
1337
  };
1279
- function equals$a(existing, incoming) {
1338
+ function equals$d(existing, incoming) {
1280
1339
  const existing_size = existing.size;
1281
1340
  const incoming_size = incoming.size;
1282
1341
  if (!(existing_size === incoming_size)) {
@@ -1294,26 +1353,26 @@ function equals$a(existing, incoming) {
1294
1353
  }
1295
1354
  const existing_filetype = existing.filetype;
1296
1355
  const incoming_filetype = incoming.filetype;
1297
- if (!(equals$c(existing_filetype, incoming_filetype))) {
1356
+ if (!(equals$f(existing_filetype, incoming_filetype))) {
1298
1357
  return false;
1299
1358
  }
1300
1359
  const existing_latestPublishedVersion = existing.latestPublishedVersion;
1301
1360
  const incoming_latestPublishedVersion = incoming.latestPublishedVersion;
1302
- if (!(equals$b(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
1361
+ if (!(equals$e(existing_latestPublishedVersion, incoming_latestPublishedVersion))) {
1303
1362
  return false;
1304
1363
  }
1305
1364
  return true;
1306
1365
  }
1307
1366
 
1308
- const VERSION$9 = "3f1a7f34ee73f6a8d9677314d88bad78";
1309
- function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
1367
+ const VERSION$c = "3f1a7f34ee73f6a8d9677314d88bad78";
1368
+ function validate$c(obj, path = 'SlackBridgeFileOutputRepresentation') {
1310
1369
  const v_error = (() => {
1311
1370
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1312
1371
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1313
1372
  }
1314
1373
  const obj_contentDocument = obj.contentDocument;
1315
1374
  const path_contentDocument = path + '.contentDocument';
1316
- const referencepath_contentDocumentValidationError = validate$a(obj_contentDocument, path_contentDocument);
1375
+ const referencepath_contentDocumentValidationError = validate$d(obj_contentDocument, path_contentDocument);
1317
1376
  if (referencepath_contentDocumentValidationError !== null) {
1318
1377
  let message = 'Object doesn\'t match SlackBridgeContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
1319
1378
  message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1372,24 +1431,24 @@ function validate$9(obj, path = 'SlackBridgeFileOutputRepresentation') {
1372
1431
  })();
1373
1432
  return v_error === undefined ? null : v_error;
1374
1433
  }
1375
- const RepresentationType$9 = 'SlackBridgeFileOutputRepresentation';
1376
- function keyBuilder$h(luvio, config) {
1377
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.uniqueKey;
1434
+ const RepresentationType$c = 'SlackBridgeFileOutputRepresentation';
1435
+ function keyBuilder$r(luvio, config) {
1436
+ return keyPrefix + '::' + RepresentationType$c + ':' + config.uniqueKey;
1378
1437
  }
1379
- function keyBuilderFromType$3(luvio, object) {
1438
+ function keyBuilderFromType$6(luvio, object) {
1380
1439
  const keyParams = {
1381
1440
  uniqueKey: object.uniqueKey
1382
1441
  };
1383
- return keyBuilder$h(luvio, keyParams);
1442
+ return keyBuilder$r(luvio, keyParams);
1384
1443
  }
1385
- function normalize$9(input, existing, path, luvio, store, timestamp) {
1444
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
1386
1445
  return input;
1387
1446
  }
1388
- const select$j = function SlackBridgeFileOutputRepresentationSelect() {
1389
- const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$k();
1447
+ const select$r = function SlackBridgeFileOutputRepresentationSelect() {
1448
+ const { selections: SlackBridgeContentDocumentOutputRepresentation__selections, opaque: SlackBridgeContentDocumentOutputRepresentation__opaque, } = select$s();
1390
1449
  return {
1391
1450
  kind: 'Fragment',
1392
- version: VERSION$9,
1451
+ version: VERSION$c,
1393
1452
  private: [],
1394
1453
  selections: [
1395
1454
  {
@@ -1440,7 +1499,7 @@ const select$j = function SlackBridgeFileOutputRepresentationSelect() {
1440
1499
  ]
1441
1500
  };
1442
1501
  };
1443
- function equals$9(existing, incoming) {
1502
+ function equals$c(existing, incoming) {
1444
1503
  const existing_size = existing.size;
1445
1504
  const incoming_size = incoming.size;
1446
1505
  if (!(existing_size === incoming_size)) {
@@ -1493,35 +1552,35 @@ function equals$9(existing, incoming) {
1493
1552
  }
1494
1553
  const existing_contentDocument = existing.contentDocument;
1495
1554
  const incoming_contentDocument = incoming.contentDocument;
1496
- if (!(equals$a(existing_contentDocument, incoming_contentDocument))) {
1555
+ if (!(equals$d(existing_contentDocument, incoming_contentDocument))) {
1497
1556
  return false;
1498
1557
  }
1499
1558
  return true;
1500
1559
  }
1501
- const ingest$9 = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1560
+ const ingest$c = function SlackBridgeFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1502
1561
  if (process.env.NODE_ENV !== 'production') {
1503
- const validateError = validate$9(input);
1562
+ const validateError = validate$c(input);
1504
1563
  if (validateError !== null) {
1505
1564
  throw validateError;
1506
1565
  }
1507
1566
  }
1508
- const key = keyBuilderFromType$3(luvio, input);
1567
+ const key = keyBuilderFromType$6(luvio, input);
1509
1568
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
1510
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
1569
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "SlackBridge", VERSION$c, RepresentationType$c, equals$c);
1511
1570
  return createLink(key);
1512
1571
  };
1513
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1572
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
1514
1573
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1515
- const rootKey = keyBuilderFromType$3(luvio, input);
1574
+ const rootKey = keyBuilderFromType$6(luvio, input);
1516
1575
  rootKeySet.set(rootKey, {
1517
1576
  namespace: keyPrefix,
1518
- representationName: RepresentationType$9,
1577
+ representationName: RepresentationType$c,
1519
1578
  mergeable: false
1520
1579
  });
1521
1580
  }
1522
1581
 
1523
- const VERSION$8 = "d4fb2fb522a777fd831f500fea806ebe";
1524
- function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1582
+ const VERSION$b = "d4fb2fb522a777fd831f500fea806ebe";
1583
+ function validate$b(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1525
1584
  const v_error = (() => {
1526
1585
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1527
1586
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1665,7 +1724,7 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1665
1724
  for (let i = 0; i < obj_reactions.length; i++) {
1666
1725
  const obj_reactions_item = obj_reactions[i];
1667
1726
  const path_reactions_item = path_reactions + '[' + i + ']';
1668
- const referencepath_reactions_itemValidationError = validate$d(obj_reactions_item, path_reactions_item);
1727
+ const referencepath_reactions_itemValidationError = validate$g(obj_reactions_item, path_reactions_item);
1669
1728
  if (referencepath_reactions_itemValidationError !== null) {
1670
1729
  let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
1671
1730
  message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1806,14 +1865,14 @@ function validate$8(obj, path = 'SlackBridgeMessageOutputRepresentation') {
1806
1865
  })();
1807
1866
  return v_error === undefined ? null : v_error;
1808
1867
  }
1809
- const RepresentationType$8 = 'SlackBridgeMessageOutputRepresentation';
1810
- function normalize$8(input, existing, path, luvio, store, timestamp) {
1868
+ const RepresentationType$b = 'SlackBridgeMessageOutputRepresentation';
1869
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
1811
1870
  const input_files = input.files;
1812
1871
  const input_files_id = path.fullPath + '__files';
1813
1872
  for (let i = 0; i < input_files.length; i++) {
1814
1873
  const input_files_item = input_files[i];
1815
1874
  let input_files_item_id = input_files_id + '__' + i;
1816
- input_files[i] = ingest$9(input_files_item, {
1875
+ input_files[i] = ingest$c(input_files_item, {
1817
1876
  fullPath: input_files_item_id,
1818
1877
  propertyName: i,
1819
1878
  parent: {
@@ -1826,11 +1885,11 @@ function normalize$8(input, existing, path, luvio, store, timestamp) {
1826
1885
  }
1827
1886
  return input;
1828
1887
  }
1829
- const select$i = function SlackBridgeMessageOutputRepresentationSelect() {
1830
- const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$n();
1888
+ const select$q = function SlackBridgeMessageOutputRepresentationSelect() {
1889
+ const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$v();
1831
1890
  return {
1832
1891
  kind: 'Fragment',
1833
- version: VERSION$8,
1892
+ version: VERSION$b,
1834
1893
  private: [],
1835
1894
  selections: [
1836
1895
  {
@@ -1847,7 +1906,7 @@ const select$i = function SlackBridgeMessageOutputRepresentationSelect() {
1847
1906
  name: 'files',
1848
1907
  kind: 'Link',
1849
1908
  plural: true,
1850
- fragment: select$j()
1909
+ fragment: select$r()
1851
1910
  },
1852
1911
  {
1853
1912
  name: 'includesCustomEmoji',
@@ -1919,7 +1978,7 @@ const select$i = function SlackBridgeMessageOutputRepresentationSelect() {
1919
1978
  ]
1920
1979
  };
1921
1980
  };
1922
- function equals$8(existing, incoming) {
1981
+ function equals$b(existing, incoming) {
1923
1982
  const existing_isBroadcast = existing.isBroadcast;
1924
1983
  const incoming_isBroadcast = incoming.isBroadcast;
1925
1984
  if (!(existing_isBroadcast === incoming_isBroadcast)) {
@@ -2013,7 +2072,7 @@ function equals$8(existing, incoming) {
2013
2072
  const existing_reactions = existing.reactions;
2014
2073
  const incoming_reactions = incoming.reactions;
2015
2074
  const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
2016
- if (!(equals$d(existing_reactions_item, incoming_reactions_item))) {
2075
+ if (!(equals$g(existing_reactions_item, incoming_reactions_item))) {
2017
2076
  return false;
2018
2077
  }
2019
2078
  });
@@ -2052,34 +2111,34 @@ function equals$8(existing, incoming) {
2052
2111
  }
2053
2112
  return true;
2054
2113
  }
2055
- const ingest$8 = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2114
+ const ingest$b = function SlackBridgeMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2056
2115
  if (process.env.NODE_ENV !== 'production') {
2057
- const validateError = validate$8(input);
2116
+ const validateError = validate$b(input);
2058
2117
  if (validateError !== null) {
2059
2118
  throw validateError;
2060
2119
  }
2061
2120
  }
2062
2121
  const key = path.fullPath;
2063
2122
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2064
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
2123
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "SlackBridge", VERSION$b, RepresentationType$b, equals$b);
2065
2124
  return createLink(key);
2066
2125
  };
2067
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2126
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
2068
2127
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2069
2128
  const rootKey = fullPathFactory();
2070
2129
  rootKeySet.set(rootKey, {
2071
2130
  namespace: keyPrefix,
2072
- representationName: RepresentationType$8,
2131
+ representationName: RepresentationType$b,
2073
2132
  mergeable: false
2074
2133
  });
2075
2134
  const input_files_length = input.files.length;
2076
2135
  for (let i = 0; i < input_files_length; i++) {
2077
- getTypeCacheKeys$9(rootKeySet, luvio, input.files[i]);
2136
+ getTypeCacheKeys$c(rootKeySet, luvio, input.files[i]);
2078
2137
  }
2079
2138
  }
2080
2139
 
2081
- const VERSION$7 = "5145ac2c241c561e4baa29b3884748dc";
2082
- function validate$7(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
2140
+ const VERSION$a = "5145ac2c241c561e4baa29b3884748dc";
2141
+ function validate$a(obj, path = 'SlackBridgeConversationHistoryOutputRepresentation') {
2083
2142
  const v_error = (() => {
2084
2143
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2085
2144
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2130,14 +2189,14 @@ function validate$7(obj, path = 'SlackBridgeConversationHistoryOutputRepresentat
2130
2189
  })();
2131
2190
  return v_error === undefined ? null : v_error;
2132
2191
  }
2133
- const RepresentationType$7 = 'SlackBridgeConversationHistoryOutputRepresentation';
2134
- function normalize$7(input, existing, path, luvio, store, timestamp) {
2192
+ const RepresentationType$a = 'SlackBridgeConversationHistoryOutputRepresentation';
2193
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
2135
2194
  const input_messages = input.messages;
2136
2195
  const input_messages_id = path.fullPath + '__messages';
2137
2196
  for (let i = 0; i < input_messages.length; i++) {
2138
2197
  const input_messages_item = input_messages[i];
2139
2198
  let input_messages_item_id = input_messages_id + '__' + i;
2140
- input_messages[i] = ingest$8(input_messages_item, {
2199
+ input_messages[i] = ingest$b(input_messages_item, {
2141
2200
  fullPath: input_messages_item_id,
2142
2201
  propertyName: i,
2143
2202
  parent: {
@@ -2150,10 +2209,10 @@ function normalize$7(input, existing, path, luvio, store, timestamp) {
2150
2209
  }
2151
2210
  return input;
2152
2211
  }
2153
- const select$h = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
2212
+ const select$p = function SlackBridgeConversationHistoryOutputRepresentationSelect() {
2154
2213
  return {
2155
2214
  kind: 'Fragment',
2156
- version: VERSION$7,
2215
+ version: VERSION$a,
2157
2216
  private: [],
2158
2217
  selections: [
2159
2218
  {
@@ -2164,7 +2223,7 @@ const select$h = function SlackBridgeConversationHistoryOutputRepresentationSele
2164
2223
  name: 'messages',
2165
2224
  kind: 'Link',
2166
2225
  plural: true,
2167
- fragment: select$i()
2226
+ fragment: select$q()
2168
2227
  },
2169
2228
  {
2170
2229
  name: 'nextCursor',
@@ -2173,7 +2232,7 @@ const select$h = function SlackBridgeConversationHistoryOutputRepresentationSele
2173
2232
  ]
2174
2233
  };
2175
2234
  };
2176
- function equals$7(existing, incoming) {
2235
+ function equals$a(existing, incoming) {
2177
2236
  const existing_hasMore = existing.hasMore;
2178
2237
  const incoming_hasMore = incoming.hasMore;
2179
2238
  if (!(existing_hasMore === incoming_hasMore)) {
@@ -2196,34 +2255,34 @@ function equals$7(existing, incoming) {
2196
2255
  }
2197
2256
  return true;
2198
2257
  }
2199
- const ingest$7 = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2258
+ const ingest$a = function SlackBridgeConversationHistoryOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2200
2259
  if (process.env.NODE_ENV !== 'production') {
2201
- const validateError = validate$7(input);
2260
+ const validateError = validate$a(input);
2202
2261
  if (validateError !== null) {
2203
2262
  throw validateError;
2204
2263
  }
2205
2264
  }
2206
2265
  const key = path.fullPath;
2207
2266
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2208
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
2267
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "SlackBridge", VERSION$a, RepresentationType$a, equals$a);
2209
2268
  return createLink(key);
2210
2269
  };
2211
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
2270
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
2212
2271
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2213
2272
  const rootKey = fullPathFactory();
2214
2273
  rootKeySet.set(rootKey, {
2215
2274
  namespace: keyPrefix,
2216
- representationName: RepresentationType$7,
2275
+ representationName: RepresentationType$a,
2217
2276
  mergeable: false
2218
2277
  });
2219
2278
  const input_messages_length = input.messages.length;
2220
2279
  for (let i = 0; i < input_messages_length; i++) {
2221
- getTypeCacheKeys$8(rootKeySet, luvio, input.messages[i], () => '');
2280
+ getTypeCacheKeys$b(rootKeySet, luvio, input.messages[i], () => '');
2222
2281
  }
2223
2282
  }
2224
2283
 
2225
- const VERSION$6 = "4e131d41ceb4ec6065429b5d681c5d97";
2226
- function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2284
+ const VERSION$9 = "7ec6cbca3e2948ff5ef00e4034f365d5";
2285
+ function validate$9(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2227
2286
  const v_error = (() => {
2228
2287
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2229
2288
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2268,11 +2327,8 @@ function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2268
2327
  const path_conversationInfo = path + '.conversationInfo';
2269
2328
  let obj_conversationInfo_union0 = null;
2270
2329
  const obj_conversationInfo_union0_error = (() => {
2271
- const referencepath_conversationInfoValidationError = validate$g(obj_conversationInfo, path_conversationInfo);
2272
- if (referencepath_conversationInfoValidationError !== null) {
2273
- let message = 'Object doesn\'t match SlackBridgeConversationInfoOutputRepresentation (at "' + path_conversationInfo + '")\n';
2274
- message += referencepath_conversationInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2275
- return new TypeError(message);
2330
+ if (typeof obj_conversationInfo !== 'object') {
2331
+ return new TypeError('Expected "object" but received "' + typeof obj_conversationInfo + '" (at "' + path_conversationInfo + '")');
2276
2332
  }
2277
2333
  })();
2278
2334
  if (obj_conversationInfo_union0_error != null) {
@@ -2352,72 +2408,1090 @@ function validate$6(obj, path = 'SlackBridgeConversationOutputRepresentation') {
2352
2408
  if (obj_websocketUrl_union0_error != null) {
2353
2409
  obj_websocketUrl_union0 = obj_websocketUrl_union0_error.message;
2354
2410
  }
2355
- let obj_websocketUrl_union1 = null;
2356
- const obj_websocketUrl_union1_error = (() => {
2357
- if (obj_websocketUrl !== null) {
2358
- return new TypeError('Expected "null" but received "' + typeof obj_websocketUrl + '" (at "' + path_websocketUrl + '")');
2411
+ let obj_websocketUrl_union1 = null;
2412
+ const obj_websocketUrl_union1_error = (() => {
2413
+ if (obj_websocketUrl !== null) {
2414
+ return new TypeError('Expected "null" but received "' + typeof obj_websocketUrl + '" (at "' + path_websocketUrl + '")');
2415
+ }
2416
+ })();
2417
+ if (obj_websocketUrl_union1_error != null) {
2418
+ obj_websocketUrl_union1 = obj_websocketUrl_union1_error.message;
2419
+ }
2420
+ if (obj_websocketUrl_union0 && obj_websocketUrl_union1) {
2421
+ let message = 'Object doesn\'t match union (at "' + path_websocketUrl + '")';
2422
+ message += '\n' + obj_websocketUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2423
+ message += '\n' + obj_websocketUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
2424
+ return new TypeError(message);
2425
+ }
2426
+ })();
2427
+ return v_error === undefined ? null : v_error;
2428
+ }
2429
+ const RepresentationType$9 = 'SlackBridgeConversationOutputRepresentation';
2430
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
2431
+ const input_contextUserInfo = input.contextUserInfo;
2432
+ const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
2433
+ if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
2434
+ input.contextUserInfo = ingest$e(input_contextUserInfo, {
2435
+ fullPath: input_contextUserInfo_id,
2436
+ propertyName: 'contextUserInfo',
2437
+ parent: {
2438
+ data: input,
2439
+ key: path.fullPath,
2440
+ existing: existing,
2441
+ },
2442
+ ttl: path.ttl
2443
+ }, luvio, store, timestamp);
2444
+ }
2445
+ const input_conversationInfo = input.conversationInfo;
2446
+ const input_conversationInfo_id = path.fullPath + '__conversationInfo';
2447
+ if (input_conversationInfo !== null && typeof input_conversationInfo === 'object') {
2448
+ input.conversationInfo = ingest$d(input_conversationInfo, {
2449
+ fullPath: input_conversationInfo_id,
2450
+ propertyName: 'conversationInfo',
2451
+ parent: {
2452
+ data: input,
2453
+ key: path.fullPath,
2454
+ existing: existing,
2455
+ },
2456
+ ttl: path.ttl
2457
+ }, luvio, store, timestamp);
2458
+ }
2459
+ const input_history = input.history;
2460
+ const input_history_id = path.fullPath + '__history';
2461
+ input.history = ingest$a(input_history, {
2462
+ fullPath: input_history_id,
2463
+ propertyName: 'history',
2464
+ parent: {
2465
+ data: input,
2466
+ key: path.fullPath,
2467
+ existing: existing,
2468
+ },
2469
+ ttl: path.ttl
2470
+ }, luvio, store, timestamp);
2471
+ const input_userInfos = input.userInfos;
2472
+ const input_userInfos_id = path.fullPath + '__userInfos';
2473
+ for (let i = 0; i < input_userInfos.length; i++) {
2474
+ const input_userInfos_item = input_userInfos[i];
2475
+ let input_userInfos_item_id = input_userInfos_id + '__' + i;
2476
+ input_userInfos[i] = ingest$e(input_userInfos_item, {
2477
+ fullPath: input_userInfos_item_id,
2478
+ propertyName: i,
2479
+ parent: {
2480
+ data: input,
2481
+ key: path.fullPath,
2482
+ existing: existing,
2483
+ },
2484
+ ttl: path.ttl
2485
+ }, luvio, store, timestamp);
2486
+ }
2487
+ return input;
2488
+ }
2489
+ const select$o = function SlackBridgeConversationOutputRepresentationSelect() {
2490
+ return {
2491
+ kind: 'Fragment',
2492
+ version: VERSION$9,
2493
+ private: [],
2494
+ selections: [
2495
+ {
2496
+ name: 'channelId',
2497
+ kind: 'Scalar'
2498
+ },
2499
+ {
2500
+ name: 'channelUrl',
2501
+ kind: 'Scalar'
2502
+ },
2503
+ {
2504
+ name: 'contextUserInfo',
2505
+ kind: 'Link',
2506
+ nullable: true,
2507
+ fragment: select$x()
2508
+ },
2509
+ {
2510
+ name: 'conversationInfo',
2511
+ kind: 'Link',
2512
+ nullable: true,
2513
+ fragment: select$w()
2514
+ },
2515
+ {
2516
+ name: 'history',
2517
+ kind: 'Link',
2518
+ fragment: select$p()
2519
+ },
2520
+ {
2521
+ name: 'teamId',
2522
+ kind: 'Scalar'
2523
+ },
2524
+ {
2525
+ name: 'threadTs',
2526
+ kind: 'Scalar'
2527
+ },
2528
+ {
2529
+ name: 'userInfos',
2530
+ kind: 'Link',
2531
+ plural: true,
2532
+ fragment: select$x()
2533
+ },
2534
+ {
2535
+ name: 'websocketUrl',
2536
+ kind: 'Scalar'
2537
+ }
2538
+ ]
2539
+ };
2540
+ };
2541
+ function equals$9(existing, incoming) {
2542
+ const existing_channelId = existing.channelId;
2543
+ const incoming_channelId = incoming.channelId;
2544
+ if (!(existing_channelId === incoming_channelId)) {
2545
+ return false;
2546
+ }
2547
+ const existing_channelUrl = existing.channelUrl;
2548
+ const incoming_channelUrl = incoming.channelUrl;
2549
+ if (!(existing_channelUrl === incoming_channelUrl)) {
2550
+ return false;
2551
+ }
2552
+ const existing_teamId = existing.teamId;
2553
+ const incoming_teamId = incoming.teamId;
2554
+ if (!(existing_teamId === incoming_teamId)) {
2555
+ return false;
2556
+ }
2557
+ const existing_contextUserInfo = existing.contextUserInfo;
2558
+ const incoming_contextUserInfo = incoming.contextUserInfo;
2559
+ if (!(existing_contextUserInfo === incoming_contextUserInfo
2560
+ || (existing_contextUserInfo != null &&
2561
+ incoming_contextUserInfo != null &&
2562
+ existing_contextUserInfo.__ref != null &&
2563
+ incoming_contextUserInfo.__ref != null &&
2564
+ existing_contextUserInfo.__ref === incoming_contextUserInfo.__ref))) {
2565
+ return false;
2566
+ }
2567
+ const existing_conversationInfo = existing.conversationInfo;
2568
+ const incoming_conversationInfo = incoming.conversationInfo;
2569
+ if (!(existing_conversationInfo === incoming_conversationInfo
2570
+ || (existing_conversationInfo != null &&
2571
+ incoming_conversationInfo != null &&
2572
+ existing_conversationInfo.__ref != null &&
2573
+ incoming_conversationInfo.__ref != null &&
2574
+ existing_conversationInfo.__ref === incoming_conversationInfo.__ref))) {
2575
+ return false;
2576
+ }
2577
+ const existing_history = existing.history;
2578
+ const incoming_history = incoming.history;
2579
+ if (!(existing_history.__ref === incoming_history.__ref)) {
2580
+ return false;
2581
+ }
2582
+ const existing_threadTs = existing.threadTs;
2583
+ const incoming_threadTs = incoming.threadTs;
2584
+ if (!(existing_threadTs === incoming_threadTs)) {
2585
+ return false;
2586
+ }
2587
+ const existing_userInfos = existing.userInfos;
2588
+ const incoming_userInfos = incoming.userInfos;
2589
+ const equals_userInfos_items = equalsArray(existing_userInfos, incoming_userInfos, (existing_userInfos_item, incoming_userInfos_item) => {
2590
+ if (!(existing_userInfos_item.__ref === incoming_userInfos_item.__ref)) {
2591
+ return false;
2592
+ }
2593
+ });
2594
+ if (equals_userInfos_items === false) {
2595
+ return false;
2596
+ }
2597
+ const existing_websocketUrl = existing.websocketUrl;
2598
+ const incoming_websocketUrl = incoming.websocketUrl;
2599
+ if (!(existing_websocketUrl === incoming_websocketUrl)) {
2600
+ return false;
2601
+ }
2602
+ return true;
2603
+ }
2604
+ const ingest$9 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2605
+ if (process.env.NODE_ENV !== 'production') {
2606
+ const validateError = validate$9(input);
2607
+ if (validateError !== null) {
2608
+ throw validateError;
2609
+ }
2610
+ }
2611
+ const key = path.fullPath;
2612
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2613
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "SlackBridge", VERSION$9, RepresentationType$9, equals$9);
2614
+ return createLink(key);
2615
+ };
2616
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
2617
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2618
+ const rootKey = fullPathFactory();
2619
+ rootKeySet.set(rootKey, {
2620
+ namespace: keyPrefix,
2621
+ representationName: RepresentationType$9,
2622
+ mergeable: false
2623
+ });
2624
+ if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
2625
+ getTypeCacheKeys$e(rootKeySet, luvio, input.contextUserInfo);
2626
+ }
2627
+ if (input.conversationInfo !== null && typeof input.conversationInfo === 'object') {
2628
+ getTypeCacheKeys$d(rootKeySet, luvio, input.conversationInfo);
2629
+ }
2630
+ getTypeCacheKeys$a(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
2631
+ const input_userInfos_length = input.userInfos.length;
2632
+ for (let i = 0; i < input_userInfos_length; i++) {
2633
+ getTypeCacheKeys$e(rootKeySet, luvio, input.userInfos[i]);
2634
+ }
2635
+ }
2636
+
2637
+ function select$n(luvio, params) {
2638
+ return select$o();
2639
+ }
2640
+ function keyBuilder$q(luvio, params) {
2641
+ 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 + ')';
2642
+ }
2643
+ function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
2644
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$q(luvio, resourceParams));
2645
+ }
2646
+ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
2647
+ const { body } = response;
2648
+ const key = keyBuilder$q(luvio, resourceParams);
2649
+ luvio.storeIngest(key, ingest$9, body);
2650
+ const snapshot = luvio.storeLookup({
2651
+ recordId: key,
2652
+ node: select$n(),
2653
+ variables: {},
2654
+ }, snapshotRefresh);
2655
+ if (process.env.NODE_ENV !== 'production') {
2656
+ if (snapshot.state !== 'Fulfilled') {
2657
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2658
+ }
2659
+ }
2660
+ deepFreeze(snapshot.data);
2661
+ return snapshot;
2662
+ }
2663
+ function ingestError$8(luvio, params, error, snapshotRefresh) {
2664
+ const key = keyBuilder$q(luvio, params);
2665
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2666
+ luvio.storeIngestError(key, errorSnapshot);
2667
+ return errorSnapshot;
2668
+ }
2669
+ function createResourceRequest$h(config) {
2670
+ const headers = {};
2671
+ return {
2672
+ baseUri: '/services/data/v63.0',
2673
+ basePath: '/connect/slackbridge/conversation/messages',
2674
+ method: 'get',
2675
+ body: null,
2676
+ urlParams: {},
2677
+ queryParams: config.queryParams,
2678
+ headers,
2679
+ priority: 'normal',
2680
+ };
2681
+ }
2682
+
2683
+ const adapterName$h = 'getSlackConversation';
2684
+ const getSlackConversation_ConfigPropertyMetadata = [
2685
+ generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
2686
+ generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
2687
+ generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2688
+ generateParamConfigMetadata('latestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2689
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2690
+ generateParamConfigMetadata('oldestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2691
+ generateParamConfigMetadata('parentMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2692
+ generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
2693
+ generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
2694
+ ];
2695
+ const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getSlackConversation_ConfigPropertyMetadata);
2696
+ const createResourceParams$h = /*#__PURE__*/ createResourceParams$i(getSlackConversation_ConfigPropertyMetadata);
2697
+ function keyBuilder$p(luvio, config) {
2698
+ const resourceParams = createResourceParams$h(config);
2699
+ return keyBuilder$q(luvio, resourceParams);
2700
+ }
2701
+ function typeCheckConfig$h(untrustedConfig) {
2702
+ const config = {};
2703
+ typeCheckConfig$i(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
2704
+ return config;
2705
+ }
2706
+ function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
2707
+ if (!untrustedIsObject(untrustedConfig)) {
2708
+ return null;
2709
+ }
2710
+ if (process.env.NODE_ENV !== 'production') {
2711
+ validateConfig(untrustedConfig, configPropertyNames);
2712
+ }
2713
+ const config = typeCheckConfig$h(untrustedConfig);
2714
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2715
+ return null;
2716
+ }
2717
+ return config;
2718
+ }
2719
+ function adapterFragment$8(luvio, config) {
2720
+ createResourceParams$h(config);
2721
+ return select$n();
2722
+ }
2723
+ function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
2724
+ const snapshot = ingestSuccess$e(luvio, resourceParams, response, {
2725
+ config,
2726
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2727
+ });
2728
+ return luvio.storeBroadcast().then(() => snapshot);
2729
+ }
2730
+ function onFetchResponseError$8(luvio, config, resourceParams, response) {
2731
+ const snapshot = ingestError$8(luvio, resourceParams, response, {
2732
+ config,
2733
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2734
+ });
2735
+ return luvio.storeBroadcast().then(() => snapshot);
2736
+ }
2737
+ function buildNetworkSnapshot$h(luvio, config, options) {
2738
+ const resourceParams = createResourceParams$h(config);
2739
+ const request = createResourceRequest$h(resourceParams);
2740
+ return luvio.dispatchResourceRequest(request, options)
2741
+ .then((response) => {
2742
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
2743
+ const cache = new StoreKeyMap();
2744
+ getResponseCacheKeys$h(cache, luvio, resourceParams, response.body);
2745
+ return cache;
2746
+ });
2747
+ }, (response) => {
2748
+ return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
2749
+ });
2750
+ }
2751
+ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
2752
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
2753
+ }
2754
+ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
2755
+ const { luvio, config } = context;
2756
+ const selector = {
2757
+ recordId: keyBuilder$p(luvio, config),
2758
+ node: adapterFragment$8(luvio, config),
2759
+ variables: {},
2760
+ };
2761
+ const cacheSnapshot = storeLookup(selector, {
2762
+ config,
2763
+ resolve: () => buildNetworkSnapshot$h(luvio, config, snapshotRefreshOptions)
2764
+ });
2765
+ return cacheSnapshot;
2766
+ }
2767
+ const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
2768
+ const config = validateAdapterConfig$h(untrustedConfig, getSlackConversation_ConfigPropertyNames);
2769
+ // Invalid or incomplete config
2770
+ if (config === null) {
2771
+ return null;
2772
+ }
2773
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2774
+ buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
2775
+ };
2776
+
2777
+ const VERSION$8 = "769b5b0ed94219341e9be74c08e63aed";
2778
+ function validate$8(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
2779
+ const v_error = (() => {
2780
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2781
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2782
+ }
2783
+ const obj_channelId = obj.channelId;
2784
+ const path_channelId = path + '.channelId';
2785
+ if (typeof obj_channelId !== 'string') {
2786
+ return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
2787
+ }
2788
+ const obj_postedMessage = obj.postedMessage;
2789
+ const path_postedMessage = path + '.postedMessage';
2790
+ if (typeof obj_postedMessage !== 'object') {
2791
+ return new TypeError('Expected "object" but received "' + typeof obj_postedMessage + '" (at "' + path_postedMessage + '")');
2792
+ }
2793
+ const obj_timestamp = obj.timestamp;
2794
+ const path_timestamp = path + '.timestamp';
2795
+ if (typeof obj_timestamp !== 'string') {
2796
+ return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
2797
+ }
2798
+ })();
2799
+ return v_error === undefined ? null : v_error;
2800
+ }
2801
+ const RepresentationType$8 = 'SlackBridgePostMessageOutputRepresentation';
2802
+ function keyBuilder$o(luvio, config) {
2803
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.channelId;
2804
+ }
2805
+ function keyBuilderFromType$5(luvio, object) {
2806
+ const keyParams = {
2807
+ channelId: object.channelId
2808
+ };
2809
+ return keyBuilder$o(luvio, keyParams);
2810
+ }
2811
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
2812
+ const input_postedMessage = input.postedMessage;
2813
+ const input_postedMessage_id = path.fullPath + '__postedMessage';
2814
+ input.postedMessage = ingest$b(input_postedMessage, {
2815
+ fullPath: input_postedMessage_id,
2816
+ propertyName: 'postedMessage',
2817
+ parent: {
2818
+ data: input,
2819
+ key: path.fullPath,
2820
+ existing: existing,
2821
+ },
2822
+ ttl: path.ttl
2823
+ }, luvio, store, timestamp);
2824
+ return input;
2825
+ }
2826
+ const select$m = function SlackBridgePostMessageOutputRepresentationSelect() {
2827
+ return {
2828
+ kind: 'Fragment',
2829
+ version: VERSION$8,
2830
+ private: [],
2831
+ selections: [
2832
+ {
2833
+ name: 'channelId',
2834
+ kind: 'Scalar'
2835
+ },
2836
+ {
2837
+ name: 'postedMessage',
2838
+ kind: 'Link',
2839
+ fragment: select$q()
2840
+ },
2841
+ {
2842
+ name: 'timestamp',
2843
+ kind: 'Scalar'
2844
+ }
2845
+ ]
2846
+ };
2847
+ };
2848
+ function equals$8(existing, incoming) {
2849
+ const existing_channelId = existing.channelId;
2850
+ const incoming_channelId = incoming.channelId;
2851
+ if (!(existing_channelId === incoming_channelId)) {
2852
+ return false;
2853
+ }
2854
+ const existing_timestamp = existing.timestamp;
2855
+ const incoming_timestamp = incoming.timestamp;
2856
+ if (!(existing_timestamp === incoming_timestamp)) {
2857
+ return false;
2858
+ }
2859
+ const existing_postedMessage = existing.postedMessage;
2860
+ const incoming_postedMessage = incoming.postedMessage;
2861
+ if (!(existing_postedMessage.__ref === incoming_postedMessage.__ref)) {
2862
+ return false;
2863
+ }
2864
+ return true;
2865
+ }
2866
+ const ingest$8 = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2867
+ if (process.env.NODE_ENV !== 'production') {
2868
+ const validateError = validate$8(input);
2869
+ if (validateError !== null) {
2870
+ throw validateError;
2871
+ }
2872
+ }
2873
+ const key = keyBuilderFromType$5(luvio, input);
2874
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2875
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "SlackBridge", VERSION$8, RepresentationType$8, equals$8);
2876
+ return createLink(key);
2877
+ };
2878
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
2879
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2880
+ const rootKey = keyBuilderFromType$5(luvio, input);
2881
+ rootKeySet.set(rootKey, {
2882
+ namespace: keyPrefix,
2883
+ representationName: RepresentationType$8,
2884
+ mergeable: false
2885
+ });
2886
+ getTypeCacheKeys$b(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
2887
+ }
2888
+
2889
+ function select$l(luvio, params) {
2890
+ return select$m();
2891
+ }
2892
+ function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
2893
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
2894
+ }
2895
+ function ingestSuccess$d(luvio, resourceParams, response) {
2896
+ const { body } = response;
2897
+ const key = keyBuilderFromType$5(luvio, body);
2898
+ luvio.storeIngest(key, ingest$8, body);
2899
+ const snapshot = luvio.storeLookup({
2900
+ recordId: key,
2901
+ node: select$l(),
2902
+ variables: {},
2903
+ });
2904
+ if (process.env.NODE_ENV !== 'production') {
2905
+ if (snapshot.state !== 'Fulfilled') {
2906
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2907
+ }
2908
+ }
2909
+ deepFreeze(snapshot.data);
2910
+ return snapshot;
2911
+ }
2912
+ function createResourceRequest$g(config) {
2913
+ const headers = {};
2914
+ return {
2915
+ baseUri: '/services/data/v63.0',
2916
+ basePath: '/connect/slackbridge/conversation/messages',
2917
+ method: 'post',
2918
+ body: config.body,
2919
+ urlParams: {},
2920
+ queryParams: {},
2921
+ headers,
2922
+ priority: 'normal',
2923
+ };
2924
+ }
2925
+
2926
+ const adapterName$g = 'postSlackConversation';
2927
+ const postSlackConversation_ConfigPropertyMetadata = [
2928
+ generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
2929
+ generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
2930
+ generateParamConfigMetadata('replyBroadcast', false, 2 /* Body */, 1 /* Boolean */),
2931
+ generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
2932
+ generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2933
+ generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
2934
+ ];
2935
+ const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, postSlackConversation_ConfigPropertyMetadata);
2936
+ const createResourceParams$g = /*#__PURE__*/ createResourceParams$i(postSlackConversation_ConfigPropertyMetadata);
2937
+ function typeCheckConfig$g(untrustedConfig) {
2938
+ const config = {};
2939
+ typeCheckConfig$i(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
2940
+ return config;
2941
+ }
2942
+ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
2943
+ if (!untrustedIsObject(untrustedConfig)) {
2944
+ return null;
2945
+ }
2946
+ if (process.env.NODE_ENV !== 'production') {
2947
+ validateConfig(untrustedConfig, configPropertyNames);
2948
+ }
2949
+ const config = typeCheckConfig$g(untrustedConfig);
2950
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2951
+ return null;
2952
+ }
2953
+ return config;
2954
+ }
2955
+ function buildNetworkSnapshot$g(luvio, config, options) {
2956
+ const resourceParams = createResourceParams$g(config);
2957
+ const request = createResourceRequest$g(resourceParams);
2958
+ return luvio.dispatchResourceRequest(request, options)
2959
+ .then((response) => {
2960
+ return luvio.handleSuccessResponse(() => {
2961
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response);
2962
+ return luvio.storeBroadcast().then(() => snapshot);
2963
+ }, () => {
2964
+ const cache = new StoreKeyMap();
2965
+ getResponseCacheKeys$g(cache, luvio, resourceParams, response.body);
2966
+ return cache;
2967
+ });
2968
+ }, (response) => {
2969
+ deepFreeze(response);
2970
+ throw response;
2971
+ });
2972
+ }
2973
+ const postSlackConversationAdapterFactory = (luvio) => {
2974
+ return function postSlackConversation(untrustedConfig) {
2975
+ const config = validateAdapterConfig$g(untrustedConfig, postSlackConversation_ConfigPropertyNames);
2976
+ // Invalid or incomplete config
2977
+ if (config === null) {
2978
+ throw new Error('Invalid config for "postSlackConversation"');
2979
+ }
2980
+ return buildNetworkSnapshot$g(luvio, config);
2981
+ };
2982
+ };
2983
+
2984
+ function select$k(luvio, params) {
2985
+ return select$r();
2986
+ }
2987
+ function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
2988
+ getTypeCacheKeys$c(storeKeyMap, luvio, response);
2989
+ }
2990
+ function ingestSuccess$c(luvio, resourceParams, response) {
2991
+ const { body } = response;
2992
+ const key = keyBuilderFromType$6(luvio, body);
2993
+ luvio.storeIngest(key, ingest$c, body);
2994
+ const snapshot = luvio.storeLookup({
2995
+ recordId: key,
2996
+ node: select$k(),
2997
+ variables: {},
2998
+ });
2999
+ if (process.env.NODE_ENV !== 'production') {
3000
+ if (snapshot.state !== 'Fulfilled') {
3001
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3002
+ }
3003
+ }
3004
+ deepFreeze(snapshot.data);
3005
+ return snapshot;
3006
+ }
3007
+ function createResourceRequest$f(config) {
3008
+ const headers = {};
3009
+ return {
3010
+ baseUri: '/services/data/v63.0',
3011
+ basePath: '/connect/slackbridge/files',
3012
+ method: 'post',
3013
+ body: config.body,
3014
+ urlParams: {},
3015
+ queryParams: {},
3016
+ headers,
3017
+ priority: 'normal',
3018
+ };
3019
+ }
3020
+
3021
+ const adapterName$f = 'postSlackFile';
3022
+ const postSlackFile_ConfigPropertyMetadata = [
3023
+ generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
3024
+ generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
3025
+ generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
3026
+ generateParamConfigMetadata('fileType', true, 2 /* Body */, 0 /* String */),
3027
+ generateParamConfigMetadata('initialComment', true, 2 /* Body */, 0 /* String */),
3028
+ generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
3029
+ generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
3030
+ generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
3031
+ ];
3032
+ const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, postSlackFile_ConfigPropertyMetadata);
3033
+ const createResourceParams$f = /*#__PURE__*/ createResourceParams$i(postSlackFile_ConfigPropertyMetadata);
3034
+ function typeCheckConfig$f(untrustedConfig) {
3035
+ const config = {};
3036
+ typeCheckConfig$i(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
3037
+ return config;
3038
+ }
3039
+ function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
3040
+ if (!untrustedIsObject(untrustedConfig)) {
3041
+ return null;
3042
+ }
3043
+ if (process.env.NODE_ENV !== 'production') {
3044
+ validateConfig(untrustedConfig, configPropertyNames);
3045
+ }
3046
+ const config = typeCheckConfig$f(untrustedConfig);
3047
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3048
+ return null;
3049
+ }
3050
+ return config;
3051
+ }
3052
+ function buildNetworkSnapshot$f(luvio, config, options) {
3053
+ const resourceParams = createResourceParams$f(config);
3054
+ const request = createResourceRequest$f(resourceParams);
3055
+ return luvio.dispatchResourceRequest(request, options)
3056
+ .then((response) => {
3057
+ return luvio.handleSuccessResponse(() => {
3058
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response);
3059
+ return luvio.storeBroadcast().then(() => snapshot);
3060
+ }, () => {
3061
+ const cache = new StoreKeyMap();
3062
+ getResponseCacheKeys$f(cache, luvio, resourceParams, response.body);
3063
+ return cache;
3064
+ });
3065
+ }, (response) => {
3066
+ deepFreeze(response);
3067
+ throw response;
3068
+ });
3069
+ }
3070
+ const postSlackFileAdapterFactory = (luvio) => {
3071
+ return function postSlackFile(untrustedConfig) {
3072
+ const config = validateAdapterConfig$f(untrustedConfig, postSlackFile_ConfigPropertyNames);
3073
+ // Invalid or incomplete config
3074
+ if (config === null) {
3075
+ throw new Error('Invalid config for "postSlackFile"');
3076
+ }
3077
+ return buildNetworkSnapshot$f(luvio, config);
3078
+ };
3079
+ };
3080
+
3081
+ const VERSION$7 = "ed15e6ba6e9dd618e72c6eea210ee7a8";
3082
+ function validate$7(obj, path = 'SlackBridgeRecordChannelInfoOutputRepresentation') {
3083
+ const v_error = (() => {
3084
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3085
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3086
+ }
3087
+ const obj_conversationInfo = obj.conversationInfo;
3088
+ const path_conversationInfo = path + '.conversationInfo';
3089
+ if (typeof obj_conversationInfo !== 'object') {
3090
+ return new TypeError('Expected "object" but received "' + typeof obj_conversationInfo + '" (at "' + path_conversationInfo + '")');
3091
+ }
3092
+ const obj_relatedRecordId = obj.relatedRecordId;
3093
+ const path_relatedRecordId = path + '.relatedRecordId';
3094
+ if (typeof obj_relatedRecordId !== 'string') {
3095
+ return new TypeError('Expected "string" but received "' + typeof obj_relatedRecordId + '" (at "' + path_relatedRecordId + '")');
3096
+ }
3097
+ const obj_teamId = obj.teamId;
3098
+ const path_teamId = path + '.teamId';
3099
+ if (typeof obj_teamId !== 'string') {
3100
+ return new TypeError('Expected "string" but received "' + typeof obj_teamId + '" (at "' + path_teamId + '")');
3101
+ }
3102
+ })();
3103
+ return v_error === undefined ? null : v_error;
3104
+ }
3105
+ const RepresentationType$7 = 'SlackBridgeRecordChannelInfoOutputRepresentation';
3106
+ function keyBuilder$n(luvio, config) {
3107
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.relatedRecordId;
3108
+ }
3109
+ function keyBuilderFromType$4(luvio, object) {
3110
+ const keyParams = {
3111
+ relatedRecordId: object.relatedRecordId
3112
+ };
3113
+ return keyBuilder$n(luvio, keyParams);
3114
+ }
3115
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
3116
+ const input_conversationInfo = input.conversationInfo;
3117
+ const input_conversationInfo_id = path.fullPath + '__conversationInfo';
3118
+ input.conversationInfo = ingest$d(input_conversationInfo, {
3119
+ fullPath: input_conversationInfo_id,
3120
+ propertyName: 'conversationInfo',
3121
+ parent: {
3122
+ data: input,
3123
+ key: path.fullPath,
3124
+ existing: existing,
3125
+ },
3126
+ ttl: path.ttl
3127
+ }, luvio, store, timestamp);
3128
+ return input;
3129
+ }
3130
+ const select$j = function SlackBridgeRecordChannelInfoOutputRepresentationSelect() {
3131
+ return {
3132
+ kind: 'Fragment',
3133
+ version: VERSION$7,
3134
+ private: [],
3135
+ selections: [
3136
+ {
3137
+ name: 'conversationInfo',
3138
+ kind: 'Link',
3139
+ fragment: select$w()
3140
+ },
3141
+ {
3142
+ name: 'relatedRecordId',
3143
+ kind: 'Scalar'
3144
+ },
3145
+ {
3146
+ name: 'teamId',
3147
+ kind: 'Scalar'
3148
+ }
3149
+ ]
3150
+ };
3151
+ };
3152
+ function equals$7(existing, incoming) {
3153
+ const existing_relatedRecordId = existing.relatedRecordId;
3154
+ const incoming_relatedRecordId = incoming.relatedRecordId;
3155
+ if (!(existing_relatedRecordId === incoming_relatedRecordId)) {
3156
+ return false;
3157
+ }
3158
+ const existing_teamId = existing.teamId;
3159
+ const incoming_teamId = incoming.teamId;
3160
+ if (!(existing_teamId === incoming_teamId)) {
3161
+ return false;
3162
+ }
3163
+ const existing_conversationInfo = existing.conversationInfo;
3164
+ const incoming_conversationInfo = incoming.conversationInfo;
3165
+ if (!(existing_conversationInfo.__ref === incoming_conversationInfo.__ref)) {
3166
+ return false;
3167
+ }
3168
+ return true;
3169
+ }
3170
+ const ingest$7 = function SlackBridgeRecordChannelInfoOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3171
+ if (process.env.NODE_ENV !== 'production') {
3172
+ const validateError = validate$7(input);
3173
+ if (validateError !== null) {
3174
+ throw validateError;
3175
+ }
3176
+ }
3177
+ const key = keyBuilderFromType$4(luvio, input);
3178
+ const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
3179
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "SlackBridge", VERSION$7, RepresentationType$7, equals$7);
3180
+ return createLink(key);
3181
+ };
3182
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
3183
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3184
+ const rootKey = keyBuilderFromType$4(luvio, input);
3185
+ rootKeySet.set(rootKey, {
3186
+ namespace: keyPrefix,
3187
+ representationName: RepresentationType$7,
3188
+ mergeable: false
3189
+ });
3190
+ getTypeCacheKeys$d(rootKeySet, luvio, input.conversationInfo);
3191
+ }
3192
+
3193
+ function select$i(luvio, params) {
3194
+ return select$j();
3195
+ }
3196
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
3197
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
3198
+ }
3199
+ function ingestSuccess$b(luvio, resourceParams, response) {
3200
+ const { body } = response;
3201
+ const key = keyBuilderFromType$4(luvio, body);
3202
+ luvio.storeIngest(key, ingest$7, body);
3203
+ const snapshot = luvio.storeLookup({
3204
+ recordId: key,
3205
+ node: select$i(),
3206
+ variables: {},
3207
+ });
3208
+ if (process.env.NODE_ENV !== 'production') {
3209
+ if (snapshot.state !== 'Fulfilled') {
3210
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3211
+ }
3212
+ }
3213
+ deepFreeze(snapshot.data);
3214
+ return snapshot;
3215
+ }
3216
+ function createResourceRequest$e(config) {
3217
+ const headers = {};
3218
+ return {
3219
+ baseUri: '/services/data/v63.0',
3220
+ basePath: '/connect/slackbridge/record_channels',
3221
+ method: 'post',
3222
+ body: config.body,
3223
+ urlParams: {},
3224
+ queryParams: {},
3225
+ headers,
3226
+ priority: 'normal',
3227
+ };
3228
+ }
3229
+
3230
+ const adapterName$e = 'postSlackRecordChannelInfos';
3231
+ const postSlackRecordChannelInfos_ConfigPropertyMetadata = [
3232
+ generateParamConfigMetadata('conversationInfo', true, 2 /* Body */, 4 /* Unsupported */),
3233
+ generateParamConfigMetadata('relatedRecordId', true, 2 /* Body */, 0 /* String */),
3234
+ ];
3235
+ const postSlackRecordChannelInfos_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, postSlackRecordChannelInfos_ConfigPropertyMetadata);
3236
+ const createResourceParams$e = /*#__PURE__*/ createResourceParams$i(postSlackRecordChannelInfos_ConfigPropertyMetadata);
3237
+ function typeCheckConfig$e(untrustedConfig) {
3238
+ const config = {};
3239
+ typeCheckConfig$i(untrustedConfig, config, postSlackRecordChannelInfos_ConfigPropertyMetadata);
3240
+ const untrustedConfig_conversationInfo = untrustedConfig.conversationInfo;
3241
+ if (untrustedIsObject(untrustedConfig_conversationInfo)) {
3242
+ const untrustedConfig_conversationInfo_object = {};
3243
+ const untrustedConfig_conversationInfo_isPrivate = untrustedConfig_conversationInfo.isPrivate;
3244
+ if (typeof untrustedConfig_conversationInfo_isPrivate === 'boolean') {
3245
+ untrustedConfig_conversationInfo_object.isPrivate = untrustedConfig_conversationInfo_isPrivate;
3246
+ }
3247
+ if (untrustedConfig_conversationInfo_object !== undefined && Object.keys(untrustedConfig_conversationInfo_object).length >= 0) {
3248
+ config.conversationInfo = untrustedConfig_conversationInfo_object;
3249
+ }
3250
+ }
3251
+ return config;
3252
+ }
3253
+ function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
3254
+ if (!untrustedIsObject(untrustedConfig)) {
3255
+ return null;
3256
+ }
3257
+ if (process.env.NODE_ENV !== 'production') {
3258
+ validateConfig(untrustedConfig, configPropertyNames);
3259
+ }
3260
+ const config = typeCheckConfig$e(untrustedConfig);
3261
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3262
+ return null;
3263
+ }
3264
+ return config;
3265
+ }
3266
+ function buildNetworkSnapshot$e(luvio, config, options) {
3267
+ const resourceParams = createResourceParams$e(config);
3268
+ const request = createResourceRequest$e(resourceParams);
3269
+ return luvio.dispatchResourceRequest(request, options)
3270
+ .then((response) => {
3271
+ return luvio.handleSuccessResponse(() => {
3272
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
3273
+ return luvio.storeBroadcast().then(() => snapshot);
3274
+ }, () => {
3275
+ const cache = new StoreKeyMap();
3276
+ getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
3277
+ return cache;
3278
+ });
3279
+ }, (response) => {
3280
+ deepFreeze(response);
3281
+ throw response;
3282
+ });
3283
+ }
3284
+ const postSlackRecordChannelInfosAdapterFactory = (luvio) => {
3285
+ return function postSlackRecordChannelInfos(untrustedConfig) {
3286
+ const config = validateAdapterConfig$e(untrustedConfig, postSlackRecordChannelInfos_ConfigPropertyNames);
3287
+ // Invalid or incomplete config
3288
+ if (config === null) {
3289
+ throw new Error('Invalid config for "postSlackRecordChannelInfos"');
3290
+ }
3291
+ return buildNetworkSnapshot$e(luvio, config);
3292
+ };
3293
+ };
3294
+
3295
+ function select$h(luvio, params) {
3296
+ return select$j();
3297
+ }
3298
+ function keyBuilder$m(luvio, params) {
3299
+ return keyBuilder$n(luvio, {
3300
+ relatedRecordId: params.urlParams.relatedRecordId
3301
+ });
3302
+ }
3303
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
3304
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
3305
+ }
3306
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
3307
+ const { body } = response;
3308
+ const key = keyBuilder$m(luvio, resourceParams);
3309
+ luvio.storeIngest(key, ingest$7, body);
3310
+ const snapshot = luvio.storeLookup({
3311
+ recordId: key,
3312
+ node: select$h(),
3313
+ variables: {},
3314
+ }, snapshotRefresh);
3315
+ if (process.env.NODE_ENV !== 'production') {
3316
+ if (snapshot.state !== 'Fulfilled') {
3317
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3318
+ }
3319
+ }
3320
+ deepFreeze(snapshot.data);
3321
+ return snapshot;
3322
+ }
3323
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
3324
+ const key = keyBuilder$m(luvio, params);
3325
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3326
+ luvio.storeIngestError(key, errorSnapshot);
3327
+ return errorSnapshot;
3328
+ }
3329
+ function createResourceRequest$d(config) {
3330
+ const headers = {};
3331
+ return {
3332
+ baseUri: '/services/data/v63.0',
3333
+ basePath: '/connect/slackbridge/record_channels/' + config.urlParams.relatedRecordId + '',
3334
+ method: 'get',
3335
+ body: null,
3336
+ urlParams: config.urlParams,
3337
+ queryParams: {},
3338
+ headers,
3339
+ priority: 'normal',
3340
+ };
3341
+ }
3342
+
3343
+ const adapterName$d = 'getSlackRecordChannelInfo';
3344
+ const getSlackRecordChannelInfo_ConfigPropertyMetadata = [
3345
+ generateParamConfigMetadata('relatedRecordId', true, 0 /* UrlParameter */, 0 /* String */),
3346
+ ];
3347
+ const getSlackRecordChannelInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getSlackRecordChannelInfo_ConfigPropertyMetadata);
3348
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$i(getSlackRecordChannelInfo_ConfigPropertyMetadata);
3349
+ function keyBuilder$l(luvio, config) {
3350
+ const resourceParams = createResourceParams$d(config);
3351
+ return keyBuilder$m(luvio, resourceParams);
3352
+ }
3353
+ function typeCheckConfig$d(untrustedConfig) {
3354
+ const config = {};
3355
+ typeCheckConfig$i(untrustedConfig, config, getSlackRecordChannelInfo_ConfigPropertyMetadata);
3356
+ return config;
3357
+ }
3358
+ function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
3359
+ if (!untrustedIsObject(untrustedConfig)) {
3360
+ return null;
3361
+ }
3362
+ if (process.env.NODE_ENV !== 'production') {
3363
+ validateConfig(untrustedConfig, configPropertyNames);
3364
+ }
3365
+ const config = typeCheckConfig$d(untrustedConfig);
3366
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3367
+ return null;
3368
+ }
3369
+ return config;
3370
+ }
3371
+ function adapterFragment$7(luvio, config) {
3372
+ createResourceParams$d(config);
3373
+ return select$h();
3374
+ }
3375
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
3376
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
3377
+ config,
3378
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3379
+ });
3380
+ return luvio.storeBroadcast().then(() => snapshot);
3381
+ }
3382
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
3383
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
3384
+ config,
3385
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3386
+ });
3387
+ return luvio.storeBroadcast().then(() => snapshot);
3388
+ }
3389
+ function buildNetworkSnapshot$d(luvio, config, options) {
3390
+ const resourceParams = createResourceParams$d(config);
3391
+ const request = createResourceRequest$d(resourceParams);
3392
+ return luvio.dispatchResourceRequest(request, options)
3393
+ .then((response) => {
3394
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
3395
+ const cache = new StoreKeyMap();
3396
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
3397
+ return cache;
3398
+ });
3399
+ }, (response) => {
3400
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
3401
+ });
3402
+ }
3403
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
3404
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
3405
+ }
3406
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
3407
+ const { luvio, config } = context;
3408
+ const selector = {
3409
+ recordId: keyBuilder$l(luvio, config),
3410
+ node: adapterFragment$7(luvio, config),
3411
+ variables: {},
3412
+ };
3413
+ const cacheSnapshot = storeLookup(selector, {
3414
+ config,
3415
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
3416
+ });
3417
+ return cacheSnapshot;
3418
+ }
3419
+ const getSlackRecordChannelInfoAdapterFactory = (luvio) => function SlackBridge__getSlackRecordChannelInfo(untrustedConfig, requestContext) {
3420
+ const config = validateAdapterConfig$d(untrustedConfig, getSlackRecordChannelInfo_ConfigPropertyNames);
3421
+ // Invalid or incomplete config
3422
+ if (config === null) {
3423
+ return null;
3424
+ }
3425
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3426
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
3427
+ };
3428
+
3429
+ const VERSION$6 = "30b0f3c5bd175b72d9b304944fd9d682";
3430
+ function validate$6(obj, path = 'SlackBridgeConversationMembersOutputRepresentation') {
3431
+ const v_error = (() => {
3432
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3433
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3434
+ }
3435
+ const obj_channelId = obj.channelId;
3436
+ const path_channelId = path + '.channelId';
3437
+ if (typeof obj_channelId !== 'string') {
3438
+ return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
3439
+ }
3440
+ const obj_nextCursor = obj.nextCursor;
3441
+ const path_nextCursor = path + '.nextCursor';
3442
+ let obj_nextCursor_union0 = null;
3443
+ const obj_nextCursor_union0_error = (() => {
3444
+ if (typeof obj_nextCursor !== 'string') {
3445
+ return new TypeError('Expected "string" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
3446
+ }
3447
+ })();
3448
+ if (obj_nextCursor_union0_error != null) {
3449
+ obj_nextCursor_union0 = obj_nextCursor_union0_error.message;
3450
+ }
3451
+ let obj_nextCursor_union1 = null;
3452
+ const obj_nextCursor_union1_error = (() => {
3453
+ if (obj_nextCursor !== null) {
3454
+ return new TypeError('Expected "null" but received "' + typeof obj_nextCursor + '" (at "' + path_nextCursor + '")');
2359
3455
  }
2360
3456
  })();
2361
- if (obj_websocketUrl_union1_error != null) {
2362
- obj_websocketUrl_union1 = obj_websocketUrl_union1_error.message;
3457
+ if (obj_nextCursor_union1_error != null) {
3458
+ obj_nextCursor_union1 = obj_nextCursor_union1_error.message;
2363
3459
  }
2364
- if (obj_websocketUrl_union0 && obj_websocketUrl_union1) {
2365
- let message = 'Object doesn\'t match union (at "' + path_websocketUrl + '")';
2366
- message += '\n' + obj_websocketUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
2367
- message += '\n' + obj_websocketUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
3460
+ if (obj_nextCursor_union0 && obj_nextCursor_union1) {
3461
+ let message = 'Object doesn\'t match union (at "' + path_nextCursor + '")';
3462
+ message += '\n' + obj_nextCursor_union0.split('\n').map((line) => '\t' + line).join('\n');
3463
+ message += '\n' + obj_nextCursor_union1.split('\n').map((line) => '\t' + line).join('\n');
2368
3464
  return new TypeError(message);
2369
3465
  }
3466
+ const obj_slackUserIds = obj.slackUserIds;
3467
+ const path_slackUserIds = path + '.slackUserIds';
3468
+ if (!ArrayIsArray(obj_slackUserIds)) {
3469
+ return new TypeError('Expected "array" but received "' + typeof obj_slackUserIds + '" (at "' + path_slackUserIds + '")');
3470
+ }
3471
+ for (let i = 0; i < obj_slackUserIds.length; i++) {
3472
+ const obj_slackUserIds_item = obj_slackUserIds[i];
3473
+ const path_slackUserIds_item = path_slackUserIds + '[' + i + ']';
3474
+ if (typeof obj_slackUserIds_item !== 'string') {
3475
+ return new TypeError('Expected "string" but received "' + typeof obj_slackUserIds_item + '" (at "' + path_slackUserIds_item + '")');
3476
+ }
3477
+ }
2370
3478
  })();
2371
3479
  return v_error === undefined ? null : v_error;
2372
3480
  }
2373
- const RepresentationType$6 = 'SlackBridgeConversationOutputRepresentation';
3481
+ const RepresentationType$6 = 'SlackBridgeConversationMembersOutputRepresentation';
3482
+ function keyBuilder$k(luvio, config) {
3483
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.channelId;
3484
+ }
3485
+ function keyBuilderFromType$3(luvio, object) {
3486
+ const keyParams = {
3487
+ channelId: object.channelId
3488
+ };
3489
+ return keyBuilder$k(luvio, keyParams);
3490
+ }
2374
3491
  function normalize$6(input, existing, path, luvio, store, timestamp) {
2375
- const input_contextUserInfo = input.contextUserInfo;
2376
- const input_contextUserInfo_id = path.fullPath + '__contextUserInfo';
2377
- if (input_contextUserInfo !== null && typeof input_contextUserInfo === 'object') {
2378
- input.contextUserInfo = ingest$a(input_contextUserInfo, {
2379
- fullPath: input_contextUserInfo_id,
2380
- propertyName: 'contextUserInfo',
2381
- parent: {
2382
- data: input,
2383
- key: path.fullPath,
2384
- existing: existing,
2385
- },
2386
- ttl: path.ttl
2387
- }, luvio, store, timestamp);
2388
- }
2389
- const input_history = input.history;
2390
- const input_history_id = path.fullPath + '__history';
2391
- input.history = ingest$7(input_history, {
2392
- fullPath: input_history_id,
2393
- propertyName: 'history',
2394
- parent: {
2395
- data: input,
2396
- key: path.fullPath,
2397
- existing: existing,
2398
- },
2399
- ttl: path.ttl
2400
- }, luvio, store, timestamp);
2401
- const input_userInfos = input.userInfos;
2402
- const input_userInfos_id = path.fullPath + '__userInfos';
2403
- for (let i = 0; i < input_userInfos.length; i++) {
2404
- const input_userInfos_item = input_userInfos[i];
2405
- let input_userInfos_item_id = input_userInfos_id + '__' + i;
2406
- input_userInfos[i] = ingest$a(input_userInfos_item, {
2407
- fullPath: input_userInfos_item_id,
2408
- propertyName: i,
2409
- parent: {
2410
- data: input,
2411
- key: path.fullPath,
2412
- existing: existing,
2413
- },
2414
- ttl: path.ttl
2415
- }, luvio, store, timestamp);
2416
- }
2417
3492
  return input;
2418
3493
  }
2419
- const select$g = function SlackBridgeConversationOutputRepresentationSelect() {
2420
- const { selections: SlackBridgeConversationInfoOutputRepresentation__selections, opaque: SlackBridgeConversationInfoOutputRepresentation__opaque, } = select$q();
3494
+ const select$g = function SlackBridgeConversationMembersOutputRepresentationSelect() {
2421
3495
  return {
2422
3496
  kind: 'Fragment',
2423
3497
  version: VERSION$6,
@@ -2428,43 +3502,13 @@ const select$g = function SlackBridgeConversationOutputRepresentationSelect() {
2428
3502
  kind: 'Scalar'
2429
3503
  },
2430
3504
  {
2431
- name: 'channelUrl',
2432
- kind: 'Scalar'
2433
- },
2434
- {
2435
- name: 'contextUserInfo',
2436
- kind: 'Link',
2437
- nullable: true,
2438
- fragment: select$o()
2439
- },
2440
- {
2441
- name: 'conversationInfo',
2442
- kind: 'Object',
2443
- nullable: true,
2444
- selections: SlackBridgeConversationInfoOutputRepresentation__selections
2445
- },
2446
- {
2447
- name: 'history',
2448
- kind: 'Link',
2449
- fragment: select$h()
2450
- },
2451
- {
2452
- name: 'teamId',
2453
- kind: 'Scalar'
2454
- },
2455
- {
2456
- name: 'threadTs',
3505
+ name: 'nextCursor',
2457
3506
  kind: 'Scalar'
2458
3507
  },
2459
3508
  {
2460
- name: 'userInfos',
2461
- kind: 'Link',
2462
- plural: true,
2463
- fragment: select$o()
2464
- },
2465
- {
2466
- name: 'websocketUrl',
2467
- kind: 'Scalar'
3509
+ name: 'slackUserIds',
3510
+ kind: 'Scalar',
3511
+ plural: true
2468
3512
  }
2469
3513
  ]
2470
3514
  };
@@ -2475,109 +3519,195 @@ function equals$6(existing, incoming) {
2475
3519
  if (!(existing_channelId === incoming_channelId)) {
2476
3520
  return false;
2477
3521
  }
2478
- const existing_channelUrl = existing.channelUrl;
2479
- const incoming_channelUrl = incoming.channelUrl;
2480
- if (!(existing_channelUrl === incoming_channelUrl)) {
2481
- return false;
2482
- }
2483
- const existing_teamId = existing.teamId;
2484
- const incoming_teamId = incoming.teamId;
2485
- if (!(existing_teamId === incoming_teamId)) {
2486
- return false;
2487
- }
2488
- const existing_contextUserInfo = existing.contextUserInfo;
2489
- const incoming_contextUserInfo = incoming.contextUserInfo;
2490
- if (!(existing_contextUserInfo === incoming_contextUserInfo
2491
- || (existing_contextUserInfo != null &&
2492
- incoming_contextUserInfo != null &&
2493
- existing_contextUserInfo.__ref != null &&
2494
- incoming_contextUserInfo.__ref != null &&
2495
- existing_contextUserInfo.__ref === incoming_contextUserInfo.__ref))) {
2496
- return false;
2497
- }
2498
- const existing_conversationInfo = existing.conversationInfo;
2499
- const incoming_conversationInfo = incoming.conversationInfo;
2500
- if (!(existing_conversationInfo === incoming_conversationInfo
2501
- || (existing_conversationInfo != null &&
2502
- incoming_conversationInfo != null &&
2503
- equals$g(existing_conversationInfo, incoming_conversationInfo)))) {
2504
- return false;
2505
- }
2506
- const existing_history = existing.history;
2507
- const incoming_history = incoming.history;
2508
- if (!(existing_history.__ref === incoming_history.__ref)) {
2509
- return false;
2510
- }
2511
- const existing_threadTs = existing.threadTs;
2512
- const incoming_threadTs = incoming.threadTs;
2513
- if (!(existing_threadTs === incoming_threadTs)) {
3522
+ const existing_nextCursor = existing.nextCursor;
3523
+ const incoming_nextCursor = incoming.nextCursor;
3524
+ if (!(existing_nextCursor === incoming_nextCursor)) {
2514
3525
  return false;
2515
3526
  }
2516
- const existing_userInfos = existing.userInfos;
2517
- const incoming_userInfos = incoming.userInfos;
2518
- const equals_userInfos_items = equalsArray(existing_userInfos, incoming_userInfos, (existing_userInfos_item, incoming_userInfos_item) => {
2519
- if (!(existing_userInfos_item.__ref === incoming_userInfos_item.__ref)) {
3527
+ const existing_slackUserIds = existing.slackUserIds;
3528
+ const incoming_slackUserIds = incoming.slackUserIds;
3529
+ const equals_slackUserIds_items = equalsArray(existing_slackUserIds, incoming_slackUserIds, (existing_slackUserIds_item, incoming_slackUserIds_item) => {
3530
+ if (!(existing_slackUserIds_item === incoming_slackUserIds_item)) {
2520
3531
  return false;
2521
3532
  }
2522
3533
  });
2523
- if (equals_userInfos_items === false) {
2524
- return false;
2525
- }
2526
- const existing_websocketUrl = existing.websocketUrl;
2527
- const incoming_websocketUrl = incoming.websocketUrl;
2528
- if (!(existing_websocketUrl === incoming_websocketUrl)) {
3534
+ if (equals_slackUserIds_items === false) {
2529
3535
  return false;
2530
3536
  }
2531
3537
  return true;
2532
3538
  }
2533
- const ingest$6 = function SlackBridgeConversationOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3539
+ const ingest$6 = function SlackBridgeConversationMembersOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2534
3540
  if (process.env.NODE_ENV !== 'production') {
2535
3541
  const validateError = validate$6(input);
2536
3542
  if (validateError !== null) {
2537
3543
  throw validateError;
2538
3544
  }
2539
3545
  }
2540
- const key = path.fullPath;
3546
+ const key = keyBuilderFromType$3(luvio, input);
2541
3547
  const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
2542
3548
  ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "SlackBridge", VERSION$6, RepresentationType$6, equals$6);
2543
3549
  return createLink(key);
2544
3550
  };
2545
3551
  function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
2546
3552
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2547
- const rootKey = fullPathFactory();
3553
+ const rootKey = keyBuilderFromType$3(luvio, input);
2548
3554
  rootKeySet.set(rootKey, {
2549
3555
  namespace: keyPrefix,
2550
3556
  representationName: RepresentationType$6,
2551
3557
  mergeable: false
2552
3558
  });
2553
- if (input.contextUserInfo !== null && typeof input.contextUserInfo === 'object') {
2554
- getTypeCacheKeys$a(rootKeySet, luvio, input.contextUserInfo);
2555
- }
2556
- getTypeCacheKeys$7(rootKeySet, luvio, input.history, () => rootKey + "__" + "history");
2557
- const input_userInfos_length = input.userInfos.length;
2558
- for (let i = 0; i < input_userInfos_length; i++) {
2559
- getTypeCacheKeys$a(rootKeySet, luvio, input.userInfos[i]);
2560
- }
2561
3559
  }
2562
3560
 
2563
3561
  function select$f(luvio, params) {
2564
3562
  return select$g();
2565
3563
  }
2566
- function keyBuilder$g(luvio, params) {
2567
- 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 + ')';
3564
+ function keyBuilder$j(luvio, params) {
3565
+ return keyBuilder$k(luvio, {
3566
+ channelId: params.urlParams.channelId
3567
+ });
2568
3568
  }
2569
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
2570
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
3569
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
3570
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2571
3571
  }
2572
3572
  function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2573
3573
  const { body } = response;
2574
- const key = keyBuilder$g(luvio, resourceParams);
3574
+ const key = keyBuilder$j(luvio, resourceParams);
3575
+ luvio.storeIngest(key, ingest$6, body);
3576
+ const snapshot = luvio.storeLookup({
3577
+ recordId: key,
3578
+ node: select$f(),
3579
+ variables: {},
3580
+ }, snapshotRefresh);
3581
+ if (process.env.NODE_ENV !== 'production') {
3582
+ if (snapshot.state !== 'Fulfilled') {
3583
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
3584
+ }
3585
+ }
3586
+ deepFreeze(snapshot.data);
3587
+ return snapshot;
3588
+ }
3589
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
3590
+ const key = keyBuilder$j(luvio, params);
3591
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3592
+ luvio.storeIngestError(key, errorSnapshot);
3593
+ return errorSnapshot;
3594
+ }
3595
+ function createResourceRequest$c(config) {
3596
+ const headers = {};
3597
+ return {
3598
+ baseUri: '/services/data/v63.0',
3599
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
3600
+ method: 'get',
3601
+ body: null,
3602
+ urlParams: config.urlParams,
3603
+ queryParams: {},
3604
+ headers,
3605
+ priority: 'normal',
3606
+ };
3607
+ }
3608
+
3609
+ const adapterName$c = 'getSlackConversationMembers';
3610
+ const getSlackConversationMembers_ConfigPropertyMetadata = [
3611
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
3612
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3613
+ ];
3614
+ const getSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getSlackConversationMembers_ConfigPropertyMetadata);
3615
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$i(getSlackConversationMembers_ConfigPropertyMetadata);
3616
+ function keyBuilder$i(luvio, config) {
3617
+ const resourceParams = createResourceParams$c(config);
3618
+ return keyBuilder$j(luvio, resourceParams);
3619
+ }
3620
+ function typeCheckConfig$c(untrustedConfig) {
3621
+ const config = {};
3622
+ typeCheckConfig$i(untrustedConfig, config, getSlackConversationMembers_ConfigPropertyMetadata);
3623
+ return config;
3624
+ }
3625
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
3626
+ if (!untrustedIsObject(untrustedConfig)) {
3627
+ return null;
3628
+ }
3629
+ if (process.env.NODE_ENV !== 'production') {
3630
+ validateConfig(untrustedConfig, configPropertyNames);
3631
+ }
3632
+ const config = typeCheckConfig$c(untrustedConfig);
3633
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
3634
+ return null;
3635
+ }
3636
+ return config;
3637
+ }
3638
+ function adapterFragment$6(luvio, config) {
3639
+ createResourceParams$c(config);
3640
+ return select$f();
3641
+ }
3642
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
3643
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
3644
+ config,
3645
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3646
+ });
3647
+ return luvio.storeBroadcast().then(() => snapshot);
3648
+ }
3649
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
3650
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
3651
+ config,
3652
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3653
+ });
3654
+ return luvio.storeBroadcast().then(() => snapshot);
3655
+ }
3656
+ function buildNetworkSnapshot$c(luvio, config, options) {
3657
+ const resourceParams = createResourceParams$c(config);
3658
+ const request = createResourceRequest$c(resourceParams);
3659
+ return luvio.dispatchResourceRequest(request, options)
3660
+ .then((response) => {
3661
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
3662
+ const cache = new StoreKeyMap();
3663
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
3664
+ return cache;
3665
+ });
3666
+ }, (response) => {
3667
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
3668
+ });
3669
+ }
3670
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
3671
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
3672
+ }
3673
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
3674
+ const { luvio, config } = context;
3675
+ const selector = {
3676
+ recordId: keyBuilder$i(luvio, config),
3677
+ node: adapterFragment$6(luvio, config),
3678
+ variables: {},
3679
+ };
3680
+ const cacheSnapshot = storeLookup(selector, {
3681
+ config,
3682
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
3683
+ });
3684
+ return cacheSnapshot;
3685
+ }
3686
+ const getSlackConversationMembersAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMembers(untrustedConfig, requestContext) {
3687
+ const config = validateAdapterConfig$c(untrustedConfig, getSlackConversationMembers_ConfigPropertyNames);
3688
+ // Invalid or incomplete config
3689
+ if (config === null) {
3690
+ return null;
3691
+ }
3692
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
3693
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
3694
+ };
3695
+
3696
+ function select$e(luvio, params) {
3697
+ return select$g();
3698
+ }
3699
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
3700
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
3701
+ }
3702
+ function ingestSuccess$8(luvio, resourceParams, response) {
3703
+ const { body } = response;
3704
+ const key = keyBuilderFromType$3(luvio, body);
2575
3705
  luvio.storeIngest(key, ingest$6, body);
2576
3706
  const snapshot = luvio.storeLookup({
2577
3707
  recordId: key,
2578
- node: select$f(),
3708
+ node: select$e(),
2579
3709
  variables: {},
2580
- }, snapshotRefresh);
3710
+ });
2581
3711
  if (process.env.NODE_ENV !== 'production') {
2582
3712
  if (snapshot.state !== 'Fulfilled') {
2583
3713
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -2586,47 +3716,31 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
2586
3716
  deepFreeze(snapshot.data);
2587
3717
  return snapshot;
2588
3718
  }
2589
- function ingestError$5(luvio, params, error, snapshotRefresh) {
2590
- const key = keyBuilder$g(luvio, params);
2591
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2592
- luvio.storeIngestError(key, errorSnapshot);
2593
- return errorSnapshot;
2594
- }
2595
3719
  function createResourceRequest$b(config) {
2596
3720
  const headers = {};
2597
3721
  return {
2598
3722
  baseUri: '/services/data/v63.0',
2599
- basePath: '/connect/slackbridge/conversation/messages',
2600
- method: 'get',
2601
- body: null,
2602
- urlParams: {},
2603
- queryParams: config.queryParams,
3723
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members',
3724
+ method: 'post',
3725
+ body: config.body,
3726
+ urlParams: config.urlParams,
3727
+ queryParams: {},
2604
3728
  headers,
2605
3729
  priority: 'normal',
2606
3730
  };
2607
3731
  }
2608
3732
 
2609
- const adapterName$b = 'getSlackConversation';
2610
- const getSlackConversation_ConfigPropertyMetadata = [
2611
- generateParamConfigMetadata('channelId', false, 1 /* QueryParameter */, 0 /* String */),
2612
- generateParamConfigMetadata('includeView', false, 1 /* QueryParameter */, 1 /* Boolean */),
2613
- generateParamConfigMetadata('inclusive', false, 1 /* QueryParameter */, 1 /* Boolean */),
2614
- generateParamConfigMetadata('latestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2615
- generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
2616
- generateParamConfigMetadata('oldestMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2617
- generateParamConfigMetadata('parentMessageTs', false, 1 /* QueryParameter */, 0 /* String */),
2618
- generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
2619
- generateParamConfigMetadata('teamId', false, 1 /* QueryParameter */, 0 /* String */),
3733
+ const adapterName$b = 'postSlackConversationMembers';
3734
+ const postSlackConversationMembers_ConfigPropertyMetadata = [
3735
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
3736
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3737
+ generateParamConfigMetadata('slackUserIds', true, 2 /* Body */, 0 /* String */, true),
2620
3738
  ];
2621
- const getSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getSlackConversation_ConfigPropertyMetadata);
2622
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(getSlackConversation_ConfigPropertyMetadata);
2623
- function keyBuilder$f(luvio, config) {
2624
- const resourceParams = createResourceParams$b(config);
2625
- return keyBuilder$g(luvio, resourceParams);
2626
- }
3739
+ const postSlackConversationMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, postSlackConversationMembers_ConfigPropertyMetadata);
3740
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$i(postSlackConversationMembers_ConfigPropertyMetadata);
2627
3741
  function typeCheckConfig$b(untrustedConfig) {
2628
3742
  const config = {};
2629
- typeCheckConfig$c(untrustedConfig, config, getSlackConversation_ConfigPropertyMetadata);
3743
+ typeCheckConfig$i(untrustedConfig, config, postSlackConversationMembers_ConfigPropertyMetadata);
2630
3744
  return config;
2631
3745
  }
2632
3746
  function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
@@ -2642,66 +3756,37 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
2642
3756
  }
2643
3757
  return config;
2644
3758
  }
2645
- function adapterFragment$5(luvio, config) {
2646
- createResourceParams$b(config);
2647
- return select$f();
2648
- }
2649
- function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
2650
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
2651
- config,
2652
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2653
- });
2654
- return luvio.storeBroadcast().then(() => snapshot);
2655
- }
2656
- function onFetchResponseError$5(luvio, config, resourceParams, response) {
2657
- const snapshot = ingestError$5(luvio, resourceParams, response, {
2658
- config,
2659
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2660
- });
2661
- return luvio.storeBroadcast().then(() => snapshot);
2662
- }
2663
3759
  function buildNetworkSnapshot$b(luvio, config, options) {
2664
3760
  const resourceParams = createResourceParams$b(config);
2665
3761
  const request = createResourceRequest$b(resourceParams);
2666
3762
  return luvio.dispatchResourceRequest(request, options)
2667
3763
  .then((response) => {
2668
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
3764
+ return luvio.handleSuccessResponse(() => {
3765
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
3766
+ return luvio.storeBroadcast().then(() => snapshot);
3767
+ }, () => {
2669
3768
  const cache = new StoreKeyMap();
2670
3769
  getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
2671
3770
  return cache;
2672
3771
  });
2673
3772
  }, (response) => {
2674
- return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
3773
+ deepFreeze(response);
3774
+ throw response;
2675
3775
  });
2676
3776
  }
2677
- function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
2678
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
2679
- }
2680
- function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
2681
- const { luvio, config } = context;
2682
- const selector = {
2683
- recordId: keyBuilder$f(luvio, config),
2684
- node: adapterFragment$5(luvio, config),
2685
- variables: {},
3777
+ const postSlackConversationMembersAdapterFactory = (luvio) => {
3778
+ return function postSlackConversationMembers(untrustedConfig) {
3779
+ const config = validateAdapterConfig$b(untrustedConfig, postSlackConversationMembers_ConfigPropertyNames);
3780
+ // Invalid or incomplete config
3781
+ if (config === null) {
3782
+ throw new Error('Invalid config for "postSlackConversationMembers"');
3783
+ }
3784
+ return buildNetworkSnapshot$b(luvio, config);
2686
3785
  };
2687
- const cacheSnapshot = storeLookup(selector, {
2688
- config,
2689
- resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
2690
- });
2691
- return cacheSnapshot;
2692
- }
2693
- const getSlackConversationAdapterFactory = (luvio) => function SlackBridge__getSlackConversation(untrustedConfig, requestContext) {
2694
- const config = validateAdapterConfig$b(untrustedConfig, getSlackConversation_ConfigPropertyNames);
2695
- // Invalid or incomplete config
2696
- if (config === null) {
2697
- return null;
2698
- }
2699
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2700
- buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
2701
3786
  };
2702
3787
 
2703
- const VERSION$5 = "769b5b0ed94219341e9be74c08e63aed";
2704
- function validate$5(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
3788
+ const VERSION$5 = "5ea9ee9da9dcb5309c4f35bb4bf5def2";
3789
+ function validate$5(obj, path = 'SlackBridgeConversationMemberOutputRepresentation') {
2705
3790
  const v_error = (() => {
2706
3791
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2707
3792
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2711,45 +3796,28 @@ function validate$5(obj, path = 'SlackBridgePostMessageOutputRepresentation') {
2711
3796
  if (typeof obj_channelId !== 'string') {
2712
3797
  return new TypeError('Expected "string" but received "' + typeof obj_channelId + '" (at "' + path_channelId + '")');
2713
3798
  }
2714
- const obj_postedMessage = obj.postedMessage;
2715
- const path_postedMessage = path + '.postedMessage';
2716
- if (typeof obj_postedMessage !== 'object') {
2717
- return new TypeError('Expected "object" but received "' + typeof obj_postedMessage + '" (at "' + path_postedMessage + '")');
2718
- }
2719
- const obj_timestamp = obj.timestamp;
2720
- const path_timestamp = path + '.timestamp';
2721
- if (typeof obj_timestamp !== 'string') {
2722
- return new TypeError('Expected "string" but received "' + typeof obj_timestamp + '" (at "' + path_timestamp + '")');
3799
+ const obj_slackUserId = obj.slackUserId;
3800
+ const path_slackUserId = path + '.slackUserId';
3801
+ if (typeof obj_slackUserId !== 'string') {
3802
+ return new TypeError('Expected "string" but received "' + typeof obj_slackUserId + '" (at "' + path_slackUserId + '")');
2723
3803
  }
2724
3804
  })();
2725
3805
  return v_error === undefined ? null : v_error;
2726
3806
  }
2727
- const RepresentationType$5 = 'SlackBridgePostMessageOutputRepresentation';
2728
- function keyBuilder$e(luvio, config) {
3807
+ const RepresentationType$5 = 'SlackBridgeConversationMemberOutputRepresentation';
3808
+ function keyBuilder$h(luvio, config) {
2729
3809
  return keyPrefix + '::' + RepresentationType$5 + ':' + config.channelId;
2730
3810
  }
2731
3811
  function keyBuilderFromType$2(luvio, object) {
2732
3812
  const keyParams = {
2733
3813
  channelId: object.channelId
2734
3814
  };
2735
- return keyBuilder$e(luvio, keyParams);
3815
+ return keyBuilder$h(luvio, keyParams);
2736
3816
  }
2737
3817
  function normalize$5(input, existing, path, luvio, store, timestamp) {
2738
- const input_postedMessage = input.postedMessage;
2739
- const input_postedMessage_id = path.fullPath + '__postedMessage';
2740
- input.postedMessage = ingest$8(input_postedMessage, {
2741
- fullPath: input_postedMessage_id,
2742
- propertyName: 'postedMessage',
2743
- parent: {
2744
- data: input,
2745
- key: path.fullPath,
2746
- existing: existing,
2747
- },
2748
- ttl: path.ttl
2749
- }, luvio, store, timestamp);
2750
3818
  return input;
2751
3819
  }
2752
- const select$e = function SlackBridgePostMessageOutputRepresentationSelect() {
3820
+ const select$d = function SlackBridgeConversationMemberOutputRepresentationSelect() {
2753
3821
  return {
2754
3822
  kind: 'Fragment',
2755
3823
  version: VERSION$5,
@@ -2760,12 +3828,7 @@ const select$e = function SlackBridgePostMessageOutputRepresentationSelect() {
2760
3828
  kind: 'Scalar'
2761
3829
  },
2762
3830
  {
2763
- name: 'postedMessage',
2764
- kind: 'Link',
2765
- fragment: select$i()
2766
- },
2767
- {
2768
- name: 'timestamp',
3831
+ name: 'slackUserId',
2769
3832
  kind: 'Scalar'
2770
3833
  }
2771
3834
  ]
@@ -2777,19 +3840,14 @@ function equals$5(existing, incoming) {
2777
3840
  if (!(existing_channelId === incoming_channelId)) {
2778
3841
  return false;
2779
3842
  }
2780
- const existing_timestamp = existing.timestamp;
2781
- const incoming_timestamp = incoming.timestamp;
2782
- if (!(existing_timestamp === incoming_timestamp)) {
2783
- return false;
2784
- }
2785
- const existing_postedMessage = existing.postedMessage;
2786
- const incoming_postedMessage = incoming.postedMessage;
2787
- if (!(existing_postedMessage.__ref === incoming_postedMessage.__ref)) {
3843
+ const existing_slackUserId = existing.slackUserId;
3844
+ const incoming_slackUserId = incoming.slackUserId;
3845
+ if (!(existing_slackUserId === incoming_slackUserId)) {
2788
3846
  return false;
2789
3847
  }
2790
3848
  return true;
2791
3849
  }
2792
- const ingest$5 = function SlackBridgePostMessageOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3850
+ const ingest$5 = function SlackBridgeConversationMemberOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2793
3851
  if (process.env.NODE_ENV !== 'production') {
2794
3852
  const validateError = validate$5(input);
2795
3853
  if (validateError !== null) {
@@ -2809,60 +3867,50 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2809
3867
  representationName: RepresentationType$5,
2810
3868
  mergeable: false
2811
3869
  });
2812
- getTypeCacheKeys$8(rootKeySet, luvio, input.postedMessage, () => rootKey + "__" + "postedMessage");
2813
3870
  }
2814
3871
 
2815
- function select$d(luvio, params) {
2816
- return select$e();
2817
- }
2818
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
2819
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
3872
+ function keyBuilder$g(luvio, params) {
3873
+ return keyBuilder$h(luvio, {
3874
+ channelId: params.urlParams.channelId
3875
+ });
2820
3876
  }
2821
- function ingestSuccess$8(luvio, resourceParams, response) {
2822
- const { body } = response;
2823
- const key = keyBuilderFromType$2(luvio, body);
2824
- luvio.storeIngest(key, ingest$5, body);
2825
- const snapshot = luvio.storeLookup({
2826
- recordId: key,
2827
- node: select$d(),
2828
- variables: {},
3877
+ function getResponseCacheKeys$a(cacheKeyMap, luvio, resourceParams) {
3878
+ const key = keyBuilder$g(luvio, resourceParams);
3879
+ cacheKeyMap.set(key, {
3880
+ namespace: keyPrefix,
3881
+ representationName: RepresentationType$5,
3882
+ mergeable: false
2829
3883
  });
2830
- if (process.env.NODE_ENV !== 'production') {
2831
- if (snapshot.state !== 'Fulfilled') {
2832
- throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2833
- }
2834
- }
2835
- deepFreeze(snapshot.data);
2836
- return snapshot;
3884
+ }
3885
+ function evictSuccess$2(luvio, resourceParams) {
3886
+ const key = keyBuilder$g(luvio, resourceParams);
3887
+ luvio.storeEvict(key);
2837
3888
  }
2838
3889
  function createResourceRequest$a(config) {
2839
3890
  const headers = {};
2840
3891
  return {
2841
3892
  baseUri: '/services/data/v63.0',
2842
- basePath: '/connect/slackbridge/conversation/messages',
2843
- method: 'post',
2844
- body: config.body,
2845
- urlParams: {},
3893
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
3894
+ method: 'delete',
3895
+ body: null,
3896
+ urlParams: config.urlParams,
2846
3897
  queryParams: {},
2847
3898
  headers,
2848
3899
  priority: 'normal',
2849
3900
  };
2850
3901
  }
2851
3902
 
2852
- const adapterName$a = 'postSlackConversation';
2853
- const postSlackConversation_ConfigPropertyMetadata = [
2854
- generateParamConfigMetadata('channelId', true, 2 /* Body */, 0 /* String */),
2855
- generateParamConfigMetadata('linkNames', false, 2 /* Body */, 1 /* Boolean */),
2856
- generateParamConfigMetadata('replyBroadcast', false, 2 /* Body */, 1 /* Boolean */),
2857
- generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
2858
- generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
2859
- generateParamConfigMetadata('threadTs', false, 2 /* Body */, 0 /* String */),
3903
+ const adapterName$a = 'deleteSlackConversationMember';
3904
+ const deleteSlackConversationMember_ConfigPropertyMetadata = [
3905
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
3906
+ generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
3907
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
2860
3908
  ];
2861
- const postSlackConversation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, postSlackConversation_ConfigPropertyMetadata);
2862
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(postSlackConversation_ConfigPropertyMetadata);
3909
+ const deleteSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deleteSlackConversationMember_ConfigPropertyMetadata);
3910
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$i(deleteSlackConversationMember_ConfigPropertyMetadata);
2863
3911
  function typeCheckConfig$a(untrustedConfig) {
2864
3912
  const config = {};
2865
- typeCheckConfig$c(untrustedConfig, config, postSlackConversation_ConfigPropertyMetadata);
3913
+ typeCheckConfig$i(untrustedConfig, config, deleteSlackConversationMember_ConfigPropertyMetadata);
2866
3914
  return config;
2867
3915
  }
2868
3916
  function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
@@ -2882,13 +3930,13 @@ function buildNetworkSnapshot$a(luvio, config, options) {
2882
3930
  const resourceParams = createResourceParams$a(config);
2883
3931
  const request = createResourceRequest$a(resourceParams);
2884
3932
  return luvio.dispatchResourceRequest(request, options)
2885
- .then((response) => {
3933
+ .then(() => {
2886
3934
  return luvio.handleSuccessResponse(() => {
2887
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
2888
- return luvio.storeBroadcast().then(() => snapshot);
3935
+ evictSuccess$2(luvio, resourceParams);
3936
+ return luvio.storeBroadcast();
2889
3937
  }, () => {
2890
3938
  const cache = new StoreKeyMap();
2891
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
3939
+ getResponseCacheKeys$a(cache, luvio, resourceParams);
2892
3940
  return cache;
2893
3941
  });
2894
3942
  }, (response) => {
@@ -2896,32 +3944,37 @@ function buildNetworkSnapshot$a(luvio, config, options) {
2896
3944
  throw response;
2897
3945
  });
2898
3946
  }
2899
- const postSlackConversationAdapterFactory = (luvio) => {
2900
- return function postSlackConversation(untrustedConfig) {
2901
- const config = validateAdapterConfig$a(untrustedConfig, postSlackConversation_ConfigPropertyNames);
3947
+ const deleteSlackConversationMemberAdapterFactory = (luvio) => {
3948
+ return function SlackBridgedeleteSlackConversationMember(untrustedConfig) {
3949
+ const config = validateAdapterConfig$a(untrustedConfig, deleteSlackConversationMember_ConfigPropertyNames);
2902
3950
  // Invalid or incomplete config
2903
3951
  if (config === null) {
2904
- throw new Error('Invalid config for "postSlackConversation"');
3952
+ throw new Error(`Invalid config for "${adapterName$a}"`);
2905
3953
  }
2906
3954
  return buildNetworkSnapshot$a(luvio, config);
2907
3955
  };
2908
3956
  };
2909
3957
 
2910
3958
  function select$c(luvio, params) {
2911
- return select$j();
3959
+ return select$d();
3960
+ }
3961
+ function keyBuilder$f(luvio, params) {
3962
+ return keyBuilder$h(luvio, {
3963
+ channelId: params.urlParams.channelId
3964
+ });
2912
3965
  }
2913
3966
  function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
2914
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
3967
+ getTypeCacheKeys$5(storeKeyMap, luvio, response);
2915
3968
  }
2916
- function ingestSuccess$7(luvio, resourceParams, response) {
3969
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
2917
3970
  const { body } = response;
2918
- const key = keyBuilderFromType$3(luvio, body);
2919
- luvio.storeIngest(key, ingest$9, body);
3971
+ const key = keyBuilder$f(luvio, resourceParams);
3972
+ luvio.storeIngest(key, ingest$5, body);
2920
3973
  const snapshot = luvio.storeLookup({
2921
3974
  recordId: key,
2922
3975
  node: select$c(),
2923
3976
  variables: {},
2924
- });
3977
+ }, snapshotRefresh);
2925
3978
  if (process.env.NODE_ENV !== 'production') {
2926
3979
  if (snapshot.state !== 'Fulfilled') {
2927
3980
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -2930,36 +3983,41 @@ function ingestSuccess$7(luvio, resourceParams, response) {
2930
3983
  deepFreeze(snapshot.data);
2931
3984
  return snapshot;
2932
3985
  }
3986
+ function ingestError$5(luvio, params, error, snapshotRefresh) {
3987
+ const key = keyBuilder$f(luvio, params);
3988
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3989
+ luvio.storeIngestError(key, errorSnapshot);
3990
+ return errorSnapshot;
3991
+ }
2933
3992
  function createResourceRequest$9(config) {
2934
3993
  const headers = {};
2935
3994
  return {
2936
3995
  baseUri: '/services/data/v63.0',
2937
- basePath: '/connect/slackbridge/files',
2938
- method: 'post',
2939
- body: config.body,
2940
- urlParams: {},
3996
+ basePath: '/connect/slackbridge/team/' + config.urlParams.teamId + '/channel/' + config.urlParams.channelId + '/members/' + config.urlParams.slackUserId + '',
3997
+ method: 'get',
3998
+ body: null,
3999
+ urlParams: config.urlParams,
2941
4000
  queryParams: {},
2942
4001
  headers,
2943
4002
  priority: 'normal',
2944
4003
  };
2945
4004
  }
2946
4005
 
2947
- const adapterName$9 = 'postSlackFile';
2948
- const postSlackFile_ConfigPropertyMetadata = [
2949
- generateParamConfigMetadata('base64EncodedFileData', true, 2 /* Body */, 0 /* String */),
2950
- generateParamConfigMetadata('channels', true, 2 /* Body */, 0 /* String */, true),
2951
- generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
2952
- generateParamConfigMetadata('fileType', true, 2 /* Body */, 0 /* String */),
2953
- generateParamConfigMetadata('initialComment', true, 2 /* Body */, 0 /* String */),
2954
- generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
2955
- generateParamConfigMetadata('threadTs', true, 2 /* Body */, 0 /* String */),
2956
- generateParamConfigMetadata('title', true, 2 /* Body */, 0 /* String */),
4006
+ const adapterName$9 = 'getSlackConversationMember';
4007
+ const getSlackConversationMember_ConfigPropertyMetadata = [
4008
+ generateParamConfigMetadata('channelId', true, 0 /* UrlParameter */, 0 /* String */),
4009
+ generateParamConfigMetadata('slackUserId', true, 0 /* UrlParameter */, 0 /* String */),
4010
+ generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
2957
4011
  ];
2958
- const postSlackFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, postSlackFile_ConfigPropertyMetadata);
2959
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(postSlackFile_ConfigPropertyMetadata);
4012
+ const getSlackConversationMember_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getSlackConversationMember_ConfigPropertyMetadata);
4013
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$i(getSlackConversationMember_ConfigPropertyMetadata);
4014
+ function keyBuilder$e(luvio, config) {
4015
+ const resourceParams = createResourceParams$9(config);
4016
+ return keyBuilder$f(luvio, resourceParams);
4017
+ }
2960
4018
  function typeCheckConfig$9(untrustedConfig) {
2961
4019
  const config = {};
2962
- typeCheckConfig$c(untrustedConfig, config, postSlackFile_ConfigPropertyMetadata);
4020
+ typeCheckConfig$i(untrustedConfig, config, getSlackConversationMember_ConfigPropertyMetadata);
2963
4021
  return config;
2964
4022
  }
2965
4023
  function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
@@ -2975,33 +4033,62 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
2975
4033
  }
2976
4034
  return config;
2977
4035
  }
4036
+ function adapterFragment$5(luvio, config) {
4037
+ createResourceParams$9(config);
4038
+ return select$c();
4039
+ }
4040
+ function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
4041
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
4042
+ config,
4043
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
4044
+ });
4045
+ return luvio.storeBroadcast().then(() => snapshot);
4046
+ }
4047
+ function onFetchResponseError$5(luvio, config, resourceParams, response) {
4048
+ const snapshot = ingestError$5(luvio, resourceParams, response, {
4049
+ config,
4050
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
4051
+ });
4052
+ return luvio.storeBroadcast().then(() => snapshot);
4053
+ }
2978
4054
  function buildNetworkSnapshot$9(luvio, config, options) {
2979
4055
  const resourceParams = createResourceParams$9(config);
2980
4056
  const request = createResourceRequest$9(resourceParams);
2981
4057
  return luvio.dispatchResourceRequest(request, options)
2982
4058
  .then((response) => {
2983
- return luvio.handleSuccessResponse(() => {
2984
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
2985
- return luvio.storeBroadcast().then(() => snapshot);
2986
- }, () => {
4059
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
2987
4060
  const cache = new StoreKeyMap();
2988
4061
  getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
2989
4062
  return cache;
2990
4063
  });
2991
4064
  }, (response) => {
2992
- deepFreeze(response);
2993
- throw response;
4065
+ return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
2994
4066
  });
2995
4067
  }
2996
- const postSlackFileAdapterFactory = (luvio) => {
2997
- return function postSlackFile(untrustedConfig) {
2998
- const config = validateAdapterConfig$9(untrustedConfig, postSlackFile_ConfigPropertyNames);
2999
- // Invalid or incomplete config
3000
- if (config === null) {
3001
- throw new Error('Invalid config for "postSlackFile"');
3002
- }
3003
- return buildNetworkSnapshot$9(luvio, config);
4068
+ function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
4069
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
4070
+ }
4071
+ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
4072
+ const { luvio, config } = context;
4073
+ const selector = {
4074
+ recordId: keyBuilder$e(luvio, config),
4075
+ node: adapterFragment$5(luvio, config),
4076
+ variables: {},
3004
4077
  };
4078
+ const cacheSnapshot = storeLookup(selector, {
4079
+ config,
4080
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
4081
+ });
4082
+ return cacheSnapshot;
4083
+ }
4084
+ const getSlackConversationMemberAdapterFactory = (luvio) => function SlackBridge__getSlackConversationMember(untrustedConfig, requestContext) {
4085
+ const config = validateAdapterConfig$9(untrustedConfig, getSlackConversationMember_ConfigPropertyNames);
4086
+ // Invalid or incomplete config
4087
+ if (config === null) {
4088
+ return null;
4089
+ }
4090
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
4091
+ buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
3005
4092
  };
3006
4093
 
3007
4094
  const VERSION$4 = "605674abcbc0dad7e2707e4e00e8d4cd";
@@ -3140,10 +4227,10 @@ const deleteSlackMessage_ConfigPropertyMetadata = [
3140
4227
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3141
4228
  ];
3142
4229
  const deleteSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deleteSlackMessage_ConfigPropertyMetadata);
3143
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(deleteSlackMessage_ConfigPropertyMetadata);
4230
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$i(deleteSlackMessage_ConfigPropertyMetadata);
3144
4231
  function typeCheckConfig$8(untrustedConfig) {
3145
4232
  const config = {};
3146
- typeCheckConfig$c(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
4233
+ typeCheckConfig$i(untrustedConfig, config, deleteSlackMessage_ConfigPropertyMetadata);
3147
4234
  return config;
3148
4235
  }
3149
4236
  function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
@@ -3243,14 +4330,14 @@ const getSlackMessage_ConfigPropertyMetadata = [
3243
4330
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3244
4331
  ];
3245
4332
  const getSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSlackMessage_ConfigPropertyMetadata);
3246
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getSlackMessage_ConfigPropertyMetadata);
4333
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$i(getSlackMessage_ConfigPropertyMetadata);
3247
4334
  function keyBuilder$a(luvio, config) {
3248
4335
  const resourceParams = createResourceParams$7(config);
3249
4336
  return keyBuilder$b(luvio, resourceParams);
3250
4337
  }
3251
4338
  function typeCheckConfig$7(untrustedConfig) {
3252
4339
  const config = {};
3253
- typeCheckConfig$c(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
4340
+ typeCheckConfig$i(untrustedConfig, config, getSlackMessage_ConfigPropertyMetadata);
3254
4341
  return config;
3255
4342
  }
3256
4343
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -3299,7 +4386,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
3299
4386
  });
3300
4387
  }
3301
4388
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
3302
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
4389
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
3303
4390
  }
3304
4391
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
3305
4392
  const { luvio, config } = context;
@@ -3369,10 +4456,10 @@ const patchSlackMessage_ConfigPropertyMetadata = [
3369
4456
  generateParamConfigMetadata('text', true, 2 /* Body */, 0 /* String */),
3370
4457
  ];
3371
4458
  const patchSlackMessage_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, patchSlackMessage_ConfigPropertyMetadata);
3372
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(patchSlackMessage_ConfigPropertyMetadata);
4459
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$i(patchSlackMessage_ConfigPropertyMetadata);
3373
4460
  function typeCheckConfig$6(untrustedConfig) {
3374
4461
  const config = {};
3375
- typeCheckConfig$c(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
4462
+ typeCheckConfig$i(untrustedConfig, config, patchSlackMessage_ConfigPropertyMetadata);
3376
4463
  return config;
3377
4464
  }
3378
4465
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -3441,7 +4528,7 @@ function validate$3(obj, path = 'SlackBridgeReactionsOutputRepresentation') {
3441
4528
  for (let i = 0; i < obj_reactions.length; i++) {
3442
4529
  const obj_reactions_item = obj_reactions[i];
3443
4530
  const path_reactions_item = path_reactions + '[' + i + ']';
3444
- const referencepath_reactions_itemValidationError = validate$d(obj_reactions_item, path_reactions_item);
4531
+ const referencepath_reactions_itemValidationError = validate$g(obj_reactions_item, path_reactions_item);
3445
4532
  if (referencepath_reactions_itemValidationError !== null) {
3446
4533
  let message = 'Object doesn\'t match SlackBridgeReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
3447
4534
  message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3470,7 +4557,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
3470
4557
  return input;
3471
4558
  }
3472
4559
  const select$8 = function SlackBridgeReactionsOutputRepresentationSelect() {
3473
- const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$n();
4560
+ const { selections: SlackBridgeReactionOutputRepresentation__selections, opaque: SlackBridgeReactionOutputRepresentation__opaque, } = select$v();
3474
4561
  return {
3475
4562
  kind: 'Fragment',
3476
4563
  version: VERSION$3,
@@ -3516,7 +4603,7 @@ function equals$3(existing, incoming) {
3516
4603
  const existing_reactions = existing.reactions;
3517
4604
  const incoming_reactions = incoming.reactions;
3518
4605
  const equals_reactions_items = equalsArray(existing_reactions, incoming_reactions, (existing_reactions_item, incoming_reactions_item) => {
3519
- if (!(equals$d(existing_reactions_item, incoming_reactions_item))) {
4606
+ if (!(equals$g(existing_reactions_item, incoming_reactions_item))) {
3520
4607
  return false;
3521
4608
  }
3522
4609
  });
@@ -3586,10 +4673,10 @@ const deleteSlackMessageReactions_ConfigPropertyMetadata = [
3586
4673
  generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
3587
4674
  ];
3588
4675
  const deleteSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, deleteSlackMessageReactions_ConfigPropertyMetadata);
3589
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(deleteSlackMessageReactions_ConfigPropertyMetadata);
4676
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$i(deleteSlackMessageReactions_ConfigPropertyMetadata);
3590
4677
  function typeCheckConfig$5(untrustedConfig) {
3591
4678
  const config = {};
3592
- typeCheckConfig$c(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
4679
+ typeCheckConfig$i(untrustedConfig, config, deleteSlackMessageReactions_ConfigPropertyMetadata);
3593
4680
  return config;
3594
4681
  }
3595
4682
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -3679,10 +4766,10 @@ const postSlackMessageReactions_ConfigPropertyMetadata = [
3679
4766
  generateParamConfigMetadata('name', false, 1 /* QueryParameter */, 0 /* String */),
3680
4767
  ];
3681
4768
  const postSlackMessageReactions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postSlackMessageReactions_ConfigPropertyMetadata);
3682
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(postSlackMessageReactions_ConfigPropertyMetadata);
4769
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$i(postSlackMessageReactions_ConfigPropertyMetadata);
3683
4770
  function typeCheckConfig$4(untrustedConfig) {
3684
4771
  const config = {};
3685
- typeCheckConfig$c(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
4772
+ typeCheckConfig$i(untrustedConfig, config, postSlackMessageReactions_ConfigPropertyMetadata);
3686
4773
  return config;
3687
4774
  }
3688
4775
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -3868,14 +4955,14 @@ const getSlackCustomEmoji_ConfigPropertyMetadata = [
3868
4955
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
3869
4956
  ];
3870
4957
  const getSlackCustomEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getSlackCustomEmoji_ConfigPropertyMetadata);
3871
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getSlackCustomEmoji_ConfigPropertyMetadata);
4958
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$i(getSlackCustomEmoji_ConfigPropertyMetadata);
3872
4959
  function keyBuilder$6(luvio, config) {
3873
4960
  const resourceParams = createResourceParams$3(config);
3874
4961
  return keyBuilder$7(luvio, resourceParams);
3875
4962
  }
3876
4963
  function typeCheckConfig$3(untrustedConfig) {
3877
4964
  const config = {};
3878
- typeCheckConfig$c(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
4965
+ typeCheckConfig$i(untrustedConfig, config, getSlackCustomEmoji_ConfigPropertyMetadata);
3879
4966
  return config;
3880
4967
  }
3881
4968
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -3924,7 +5011,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3924
5011
  });
3925
5012
  }
3926
5013
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3927
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
5014
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3928
5015
  }
3929
5016
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3930
5017
  const { luvio, config } = context;
@@ -3963,7 +5050,7 @@ function validate$1(obj, path = 'SlackBridgeEmojisOutputRepresentation') {
3963
5050
  for (let i = 0; i < obj_emojis.length; i++) {
3964
5051
  const obj_emojis_item = obj_emojis[i];
3965
5052
  const path_emojis_item = path_emojis + '[' + i + ']';
3966
- const referencepath_emojis_itemValidationError = validate$f(obj_emojis_item, path_emojis_item);
5053
+ const referencepath_emojis_itemValidationError = validate$j(obj_emojis_item, path_emojis_item);
3967
5054
  if (referencepath_emojis_itemValidationError !== null) {
3968
5055
  let message = 'Object doesn\'t match SlackBridgeEmojiOutputRepresentation (at "' + path_emojis_item + '")\n';
3969
5056
  message += referencepath_emojis_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3983,7 +5070,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
3983
5070
  return input;
3984
5071
  }
3985
5072
  const select$4 = function SlackBridgeEmojisOutputRepresentationSelect() {
3986
- const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$p();
5073
+ const { selections: SlackBridgeEmojiOutputRepresentation__selections, opaque: SlackBridgeEmojiOutputRepresentation__opaque, } = select$y();
3987
5074
  return {
3988
5075
  kind: 'Fragment',
3989
5076
  version: VERSION$1,
@@ -4011,7 +5098,7 @@ function equals$1(existing, incoming) {
4011
5098
  const existing_emojis = existing.emojis;
4012
5099
  const incoming_emojis = incoming.emojis;
4013
5100
  const equals_emojis_items = equalsArray(existing_emojis, incoming_emojis, (existing_emojis_item, incoming_emojis_item) => {
4014
- if (!(equals$f(existing_emojis_item, incoming_emojis_item))) {
5101
+ if (!(equals$j(existing_emojis_item, incoming_emojis_item))) {
4015
5102
  return false;
4016
5103
  }
4017
5104
  });
@@ -4094,14 +5181,14 @@ const getSlackSearchEmoji_ConfigPropertyMetadata = [
4094
5181
  generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
4095
5182
  ];
4096
5183
  const getSlackSearchEmoji_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getSlackSearchEmoji_ConfigPropertyMetadata);
4097
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getSlackSearchEmoji_ConfigPropertyMetadata);
5184
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$i(getSlackSearchEmoji_ConfigPropertyMetadata);
4098
5185
  function keyBuilder$4(luvio, config) {
4099
5186
  const resourceParams = createResourceParams$2(config);
4100
5187
  return keyBuilder$5(luvio, resourceParams);
4101
5188
  }
4102
5189
  function typeCheckConfig$2(untrustedConfig) {
4103
5190
  const config = {};
4104
- typeCheckConfig$c(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
5191
+ typeCheckConfig$i(untrustedConfig, config, getSlackSearchEmoji_ConfigPropertyMetadata);
4105
5192
  return config;
4106
5193
  }
4107
5194
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -4150,7 +5237,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
4150
5237
  });
4151
5238
  }
4152
5239
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
4153
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
5240
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4154
5241
  }
4155
5242
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
4156
5243
  const { luvio, config } = context;
@@ -4208,7 +5295,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
4208
5295
  for (let i = 0; i < input_userInfos.length; i++) {
4209
5296
  const input_userInfos_item = input_userInfos[i];
4210
5297
  let input_userInfos_item_id = input_userInfos_id + '__' + i;
4211
- input_userInfos[i] = ingest$a(input_userInfos_item, {
5298
+ input_userInfos[i] = ingest$e(input_userInfos_item, {
4212
5299
  fullPath: input_userInfos_item_id,
4213
5300
  propertyName: i,
4214
5301
  parent: {
@@ -4235,7 +5322,7 @@ const select$2 = function SlackBridgeUserInfosOutputRepresentationSelect() {
4235
5322
  name: 'userInfos',
4236
5323
  kind: 'Link',
4237
5324
  plural: true,
4238
- fragment: select$o()
5325
+ fragment: select$x()
4239
5326
  }
4240
5327
  ]
4241
5328
  };
@@ -4280,7 +5367,7 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
4280
5367
  });
4281
5368
  const input_userInfos_length = input.userInfos.length;
4282
5369
  for (let i = 0; i < input_userInfos_length; i++) {
4283
- getTypeCacheKeys$a(rootKeySet, luvio, input.userInfos[i]);
5370
+ getTypeCacheKeys$e(rootKeySet, luvio, input.userInfos[i]);
4284
5371
  }
4285
5372
  }
4286
5373
 
@@ -4336,14 +5423,14 @@ const getSlackSearchUser_ConfigPropertyMetadata = [
4336
5423
  generateParamConfigMetadata('search', false, 1 /* QueryParameter */, 0 /* String */),
4337
5424
  ];
4338
5425
  const getSlackSearchUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getSlackSearchUser_ConfigPropertyMetadata);
4339
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getSlackSearchUser_ConfigPropertyMetadata);
5426
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$i(getSlackSearchUser_ConfigPropertyMetadata);
4340
5427
  function keyBuilder$2(luvio, config) {
4341
5428
  const resourceParams = createResourceParams$1(config);
4342
5429
  return keyBuilder$3(luvio, resourceParams);
4343
5430
  }
4344
5431
  function typeCheckConfig$1(untrustedConfig) {
4345
5432
  const config = {};
4346
- typeCheckConfig$c(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
5433
+ typeCheckConfig$i(untrustedConfig, config, getSlackSearchUser_ConfigPropertyMetadata);
4347
5434
  return config;
4348
5435
  }
4349
5436
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -4392,7 +5479,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4392
5479
  });
4393
5480
  }
4394
5481
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4395
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
5482
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4396
5483
  }
4397
5484
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4398
5485
  const { luvio, config } = context;
@@ -4418,21 +5505,21 @@ const getSlackSearchUserAdapterFactory = (luvio) => function SlackBridge__getSla
4418
5505
  };
4419
5506
 
4420
5507
  function select(luvio, params) {
4421
- return select$o();
5508
+ return select$x();
4422
5509
  }
4423
5510
  function keyBuilder$1(luvio, params) {
4424
- return keyBuilder$i(luvio, {
5511
+ return keyBuilder$t(luvio, {
4425
5512
  slackUserId: params.urlParams.slackUserId,
4426
5513
  teamId: params.urlParams.teamId
4427
5514
  });
4428
5515
  }
4429
5516
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4430
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
5517
+ getTypeCacheKeys$e(storeKeyMap, luvio, response);
4431
5518
  }
4432
5519
  function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
4433
5520
  const { body } = response;
4434
5521
  const key = keyBuilder$1(luvio, resourceParams);
4435
- luvio.storeIngest(key, ingest$a, body);
5522
+ luvio.storeIngest(key, ingest$e, body);
4436
5523
  const snapshot = luvio.storeLookup({
4437
5524
  recordId: key,
4438
5525
  node: select(),
@@ -4452,8 +5539,8 @@ function ingestError(luvio, params, error, snapshotRefresh) {
4452
5539
  const storeMetadataParams = {
4453
5540
  ttl: TTL,
4454
5541
  namespace: keyPrefix,
4455
- version: VERSION$e,
4456
- representationName: RepresentationType$a
5542
+ version: VERSION$i,
5543
+ representationName: RepresentationType$e
4457
5544
  };
4458
5545
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
4459
5546
  return errorSnapshot;
@@ -4478,14 +5565,14 @@ const getSlackUser_ConfigPropertyMetadata = [
4478
5565
  generateParamConfigMetadata('teamId', true, 0 /* UrlParameter */, 0 /* String */),
4479
5566
  ];
4480
5567
  const getSlackUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getSlackUser_ConfigPropertyMetadata);
4481
- const createResourceParams = /*#__PURE__*/ createResourceParams$c(getSlackUser_ConfigPropertyMetadata);
5568
+ const createResourceParams = /*#__PURE__*/ createResourceParams$i(getSlackUser_ConfigPropertyMetadata);
4482
5569
  function keyBuilder(luvio, config) {
4483
5570
  const resourceParams = createResourceParams(config);
4484
5571
  return keyBuilder$1(luvio, resourceParams);
4485
5572
  }
4486
5573
  function typeCheckConfig(untrustedConfig) {
4487
5574
  const config = {};
4488
- typeCheckConfig$c(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
5575
+ typeCheckConfig$i(untrustedConfig, config, getSlackUser_ConfigPropertyMetadata);
4489
5576
  return config;
4490
5577
  }
4491
5578
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -4534,7 +5621,7 @@ function buildNetworkSnapshot(luvio, config, options) {
4534
5621
  });
4535
5622
  }
4536
5623
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4537
- return buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
5624
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
4538
5625
  }
4539
5626
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4540
5627
  const { luvio, config } = context;
@@ -4559,4 +5646,4 @@ const getSlackUserAdapterFactory = (luvio) => function SlackBridge__getSlackUser
4559
5646
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4560
5647
  };
4561
5648
 
4562
- export { deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory };
5649
+ export { deleteSlackConversationMemberAdapterFactory, deleteSlackMessageAdapterFactory, deleteSlackMessageReactionsAdapterFactory, getSlackConversationAdapterFactory, getSlackConversationMemberAdapterFactory, getSlackConversationMembersAdapterFactory, getSlackCustomEmojiAdapterFactory, getSlackMessageAdapterFactory, getSlackRecordChannelInfoAdapterFactory, getSlackSearchEmojiAdapterFactory, getSlackSearchUserAdapterFactory, getSlackUserAdapterFactory, patchSlackMessageAdapterFactory, postSlackConversationAdapterFactory, postSlackConversationMembersAdapterFactory, postSlackFileAdapterFactory, postSlackMessageReactionsAdapterFactory, postSlackRecordChannelInfosAdapterFactory };