@stream-io/node-sdk 0.4.25 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +6265 -3834
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.mjs +6263 -3835
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/ApiClient.d.ts +15 -0
- package/dist/src/StreamCall.d.ts +2 -2
- package/dist/src/StreamClient.d.ts +10 -1
- package/dist/src/StreamFeed.d.ts +4 -0
- package/dist/src/StreamFeedsClient.d.ts +5 -0
- package/dist/src/StreamVideoClient.d.ts +3 -2
- package/dist/src/gen/chat/ChannelApi.d.ts +29 -30
- package/dist/src/gen/chat/ChatApi.d.ts +145 -180
- package/dist/src/gen/common/CommonApi.d.ts +122 -79
- package/dist/src/gen/feeds/FeedApi.d.ts +25 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +195 -0
- package/dist/src/gen/models/index.d.ts +1750 -47
- package/dist/src/gen/moderation/ModerationApi.d.ts +28 -27
- package/dist/src/gen/video/CallApi.d.ts +42 -43
- package/dist/src/gen/video/VideoApi.d.ts +91 -89
- package/dist/src/gen-imports.d.ts +5 -0
- package/index.ts +3 -1
- package/package.json +1 -1
- package/src/{BaseApi.ts → ApiClient.ts} +25 -6
- package/src/StreamCall.ts +2 -2
- package/src/StreamClient.ts +51 -14
- package/src/StreamFeed.ts +7 -0
- package/src/StreamFeedsClient.ts +8 -0
- package/src/StreamVideoClient.ts +9 -6
- package/src/gen/chat/ChannelApi.ts +74 -64
- package/src/gen/chat/ChatApi.ts +550 -681
- package/src/gen/common/CommonApi.ts +712 -262
- package/src/gen/feeds/FeedApi.ts +130 -0
- package/src/gen/feeds/FeedsApi.ts +1801 -0
- package/src/gen/model-decoders/{index.ts → decoders.ts} +2248 -336
- package/src/gen/models/index.ts +4668 -2088
- package/src/gen/moderation/ModerationApi.ts +159 -98
- package/src/gen/video/CallApi.ts +97 -108
- package/src/gen/video/VideoApi.ts +303 -203
- package/src/gen-imports.ts +5 -0
- package/dist/src/BaseApi.d.ts +0 -11
- /package/dist/src/gen/model-decoders/{index.d.ts → decoders.d.ts} +0 -0
|
@@ -4,8 +4,10 @@ type TypeMapping = Record<string, { type: string; isSingle: boolean }>;
|
|
|
4
4
|
|
|
5
5
|
export const decoders: Record<string, Decoder> = {};
|
|
6
6
|
|
|
7
|
-
const decodeDatetimeType = (input: number) =>
|
|
8
|
-
|
|
7
|
+
const decodeDatetimeType = (input: number | string) =>
|
|
8
|
+
typeof input === 'number'
|
|
9
|
+
? new Date(Math.floor(input / 1000000))
|
|
10
|
+
: new Date(input);
|
|
9
11
|
|
|
10
12
|
decoders.DatetimeType = decodeDatetimeType;
|
|
11
13
|
|
|
@@ -32,15 +34,16 @@ const decode = (typeMappings: TypeMapping, input?: Record<string, any>) => {
|
|
|
32
34
|
return input;
|
|
33
35
|
};
|
|
34
36
|
|
|
35
|
-
decoders.
|
|
37
|
+
decoders.AcceptFeedMemberInviteResponse = (input?: Record<string, any>) => {
|
|
36
38
|
const typeMappings: TypeMapping = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
target_user: { type: 'User', isSingle: true },
|
|
39
|
+
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
40
|
+
};
|
|
41
|
+
return decode(typeMappings, input);
|
|
42
|
+
};
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
decoders.AcceptFollowResponse = (input?: Record<string, any>) => {
|
|
45
|
+
const typeMappings: TypeMapping = {
|
|
46
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
44
47
|
};
|
|
45
48
|
return decode(typeMappings, input);
|
|
46
49
|
};
|
|
@@ -49,7 +52,7 @@ decoders.ActionLogResponse = (input?: Record<string, any>) => {
|
|
|
49
52
|
const typeMappings: TypeMapping = {
|
|
50
53
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
51
54
|
|
|
52
|
-
review_queue_item: { type: '
|
|
55
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
53
56
|
|
|
54
57
|
target_user: { type: 'UserResponse', isSingle: true },
|
|
55
58
|
|
|
@@ -58,298 +61,384 @@ decoders.ActionLogResponse = (input?: Record<string, any>) => {
|
|
|
58
61
|
return decode(typeMappings, input);
|
|
59
62
|
};
|
|
60
63
|
|
|
61
|
-
decoders.
|
|
64
|
+
decoders.ActivityAddedEvent = (input?: Record<string, any>) => {
|
|
62
65
|
const typeMappings: TypeMapping = {
|
|
63
|
-
|
|
66
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
64
67
|
|
|
65
|
-
|
|
68
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
66
69
|
|
|
67
|
-
|
|
70
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
73
|
+
};
|
|
74
|
+
return decode(typeMappings, input);
|
|
75
|
+
};
|
|
70
76
|
|
|
71
|
-
|
|
77
|
+
decoders.ActivityDeletedEvent = (input?: Record<string, any>) => {
|
|
78
|
+
const typeMappings: TypeMapping = {
|
|
79
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
80
|
+
|
|
81
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
82
|
+
|
|
83
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
84
|
+
|
|
85
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
72
86
|
};
|
|
73
87
|
return decode(typeMappings, input);
|
|
74
88
|
};
|
|
75
89
|
|
|
76
|
-
decoders.
|
|
90
|
+
decoders.ActivityMarkEvent = (input?: Record<string, any>) => {
|
|
77
91
|
const typeMappings: TypeMapping = {
|
|
78
|
-
|
|
92
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
93
|
+
|
|
94
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
95
|
+
|
|
96
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
79
97
|
};
|
|
80
98
|
return decode(typeMappings, input);
|
|
81
99
|
};
|
|
82
100
|
|
|
83
|
-
decoders.
|
|
101
|
+
decoders.ActivityMarkedEvent = (input?: Record<string, any>) => {
|
|
84
102
|
const typeMappings: TypeMapping = {
|
|
85
103
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
104
|
+
};
|
|
105
|
+
return decode(typeMappings, input);
|
|
106
|
+
};
|
|
86
107
|
|
|
87
|
-
|
|
108
|
+
decoders.ActivityPinResponse = (input?: Record<string, any>) => {
|
|
109
|
+
const typeMappings: TypeMapping = {
|
|
110
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
88
111
|
|
|
89
|
-
|
|
112
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
90
113
|
|
|
91
|
-
|
|
114
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
92
115
|
|
|
93
|
-
|
|
116
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
94
117
|
};
|
|
95
118
|
return decode(typeMappings, input);
|
|
96
119
|
};
|
|
97
120
|
|
|
98
|
-
decoders.
|
|
121
|
+
decoders.ActivityPinnedEvent = (input?: Record<string, any>) => {
|
|
99
122
|
const typeMappings: TypeMapping = {
|
|
100
123
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
101
124
|
|
|
102
|
-
|
|
125
|
+
pinned_activity: { type: 'PinActivityResponse', isSingle: true },
|
|
103
126
|
|
|
104
|
-
|
|
127
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
105
128
|
|
|
106
|
-
|
|
129
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
130
|
+
};
|
|
131
|
+
return decode(typeMappings, input);
|
|
132
|
+
};
|
|
107
133
|
|
|
108
|
-
|
|
134
|
+
decoders.ActivityReactionAddedEvent = (input?: Record<string, any>) => {
|
|
135
|
+
const typeMappings: TypeMapping = {
|
|
136
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
137
|
+
|
|
138
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
139
|
+
|
|
140
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
141
|
+
|
|
142
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
143
|
+
|
|
144
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
109
145
|
};
|
|
110
146
|
return decode(typeMappings, input);
|
|
111
147
|
};
|
|
112
148
|
|
|
113
|
-
decoders.
|
|
149
|
+
decoders.ActivityReactionDeletedEvent = (input?: Record<string, any>) => {
|
|
114
150
|
const typeMappings: TypeMapping = {
|
|
115
151
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
116
152
|
|
|
117
|
-
|
|
153
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
154
|
+
|
|
155
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
156
|
+
|
|
157
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
158
|
+
|
|
159
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
118
160
|
};
|
|
119
161
|
return decode(typeMappings, input);
|
|
120
162
|
};
|
|
121
163
|
|
|
122
|
-
decoders.
|
|
164
|
+
decoders.ActivityReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
123
165
|
const typeMappings: TypeMapping = {
|
|
124
166
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
167
|
+
|
|
168
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
169
|
+
|
|
170
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
171
|
+
|
|
172
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
173
|
+
|
|
174
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
125
175
|
};
|
|
126
176
|
return decode(typeMappings, input);
|
|
127
177
|
};
|
|
128
178
|
|
|
129
|
-
decoders.
|
|
179
|
+
decoders.ActivityRemovedFromFeedEvent = (input?: Record<string, any>) => {
|
|
130
180
|
const typeMappings: TypeMapping = {
|
|
131
181
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
132
182
|
|
|
133
|
-
|
|
183
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
134
184
|
|
|
135
|
-
|
|
185
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
186
|
+
|
|
187
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
136
188
|
};
|
|
137
189
|
return decode(typeMappings, input);
|
|
138
190
|
};
|
|
139
191
|
|
|
140
|
-
decoders.
|
|
192
|
+
decoders.ActivityResponse = (input?: Record<string, any>) => {
|
|
141
193
|
const typeMappings: TypeMapping = {
|
|
142
194
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
143
195
|
|
|
144
196
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
145
197
|
|
|
146
|
-
|
|
198
|
+
comments: { type: 'CommentResponse', isSingle: false },
|
|
147
199
|
|
|
148
|
-
|
|
200
|
+
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
149
201
|
|
|
150
|
-
|
|
202
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
151
203
|
|
|
152
|
-
|
|
204
|
+
own_bookmarks: { type: 'BookmarkResponse', isSingle: false },
|
|
153
205
|
|
|
154
|
-
|
|
206
|
+
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
155
207
|
|
|
156
|
-
|
|
208
|
+
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
157
209
|
|
|
158
|
-
|
|
210
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
159
211
|
|
|
160
|
-
|
|
212
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
161
213
|
|
|
162
|
-
|
|
214
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
163
215
|
|
|
164
|
-
|
|
216
|
+
expires_at: { type: 'DatetimeType', isSingle: true },
|
|
165
217
|
|
|
166
|
-
|
|
218
|
+
current_feed: { type: 'FeedResponse', isSingle: true },
|
|
219
|
+
|
|
220
|
+
parent: { type: 'ActivityResponse', isSingle: true },
|
|
221
|
+
|
|
222
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
167
223
|
};
|
|
168
224
|
return decode(typeMappings, input);
|
|
169
225
|
};
|
|
170
226
|
|
|
171
|
-
decoders.
|
|
227
|
+
decoders.ActivitySelectorConfig = (input?: Record<string, any>) => {
|
|
172
228
|
const typeMappings: TypeMapping = {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
176
|
-
|
|
177
|
-
stopped_at: { type: 'DatetimeType', isSingle: true },
|
|
229
|
+
cutoff_time: { type: 'DatetimeType', isSingle: true },
|
|
178
230
|
};
|
|
179
231
|
return decode(typeMappings, input);
|
|
180
232
|
};
|
|
181
233
|
|
|
182
|
-
decoders.
|
|
234
|
+
decoders.ActivityUnpinnedEvent = (input?: Record<string, any>) => {
|
|
183
235
|
const typeMappings: TypeMapping = {
|
|
184
236
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
185
237
|
|
|
186
|
-
|
|
238
|
+
pinned_activity: { type: 'PinActivityResponse', isSingle: true },
|
|
187
239
|
|
|
188
|
-
|
|
240
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
189
241
|
|
|
190
|
-
user: { type: '
|
|
242
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
191
243
|
};
|
|
192
244
|
return decode(typeMappings, input);
|
|
193
245
|
};
|
|
194
246
|
|
|
195
|
-
decoders.
|
|
247
|
+
decoders.ActivityUpdatedEvent = (input?: Record<string, any>) => {
|
|
196
248
|
const typeMappings: TypeMapping = {
|
|
197
|
-
joined_at: { type: 'DatetimeType', isSingle: true },
|
|
198
|
-
|
|
199
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
200
|
-
|
|
201
249
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
202
250
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
251
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
206
252
|
|
|
207
|
-
|
|
253
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
208
254
|
|
|
209
|
-
|
|
255
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
256
|
+
};
|
|
257
|
+
return decode(typeMappings, input);
|
|
258
|
+
};
|
|
210
259
|
|
|
211
|
-
|
|
260
|
+
decoders.AddActivityResponse = (input?: Record<string, any>) => {
|
|
261
|
+
const typeMappings: TypeMapping = {
|
|
262
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
263
|
+
};
|
|
264
|
+
return decode(typeMappings, input);
|
|
265
|
+
};
|
|
212
266
|
|
|
213
|
-
|
|
267
|
+
decoders.AddBookmarkResponse = (input?: Record<string, any>) => {
|
|
268
|
+
const typeMappings: TypeMapping = {
|
|
269
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
214
270
|
};
|
|
215
271
|
return decode(typeMappings, input);
|
|
216
272
|
};
|
|
217
273
|
|
|
218
|
-
decoders.
|
|
274
|
+
decoders.AddCommentReactionResponse = (input?: Record<string, any>) => {
|
|
219
275
|
const typeMappings: TypeMapping = {
|
|
220
|
-
|
|
276
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
221
277
|
|
|
222
|
-
|
|
278
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
223
279
|
};
|
|
224
280
|
return decode(typeMappings, input);
|
|
225
281
|
};
|
|
226
282
|
|
|
227
|
-
decoders.
|
|
283
|
+
decoders.AddCommentResponse = (input?: Record<string, any>) => {
|
|
228
284
|
const typeMappings: TypeMapping = {
|
|
229
|
-
|
|
285
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
286
|
+
};
|
|
287
|
+
return decode(typeMappings, input);
|
|
288
|
+
};
|
|
230
289
|
|
|
231
|
-
|
|
290
|
+
decoders.AddCommentsBatchResponse = (input?: Record<string, any>) => {
|
|
291
|
+
const typeMappings: TypeMapping = {
|
|
292
|
+
comments: { type: 'CommentResponse', isSingle: false },
|
|
232
293
|
};
|
|
233
294
|
return decode(typeMappings, input);
|
|
234
295
|
};
|
|
235
296
|
|
|
236
|
-
decoders.
|
|
297
|
+
decoders.AddReactionResponse = (input?: Record<string, any>) => {
|
|
237
298
|
const typeMappings: TypeMapping = {
|
|
238
|
-
|
|
299
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
239
300
|
|
|
240
|
-
|
|
301
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
241
302
|
};
|
|
242
303
|
return decode(typeMappings, input);
|
|
243
304
|
};
|
|
244
305
|
|
|
245
|
-
decoders.
|
|
306
|
+
decoders.AggregatedActivityResponse = (input?: Record<string, any>) => {
|
|
246
307
|
const typeMappings: TypeMapping = {
|
|
247
308
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
248
309
|
|
|
249
310
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
250
311
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
254
|
-
|
|
255
|
-
starts_at: { type: 'DatetimeType', isSingle: true },
|
|
256
|
-
|
|
257
|
-
session: { type: 'CallSessionResponse', isSingle: true },
|
|
312
|
+
activities: { type: 'ActivityResponse', isSingle: false },
|
|
258
313
|
};
|
|
259
314
|
return decode(typeMappings, input);
|
|
260
315
|
};
|
|
261
316
|
|
|
262
|
-
decoders.
|
|
317
|
+
decoders.AnyEvent = (input?: Record<string, any>) => {
|
|
263
318
|
const typeMappings: TypeMapping = {
|
|
264
319
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
320
|
+
};
|
|
321
|
+
return decode(typeMappings, input);
|
|
322
|
+
};
|
|
265
323
|
|
|
266
|
-
|
|
324
|
+
decoders.AppResponseFields = (input?: Record<string, any>) => {
|
|
325
|
+
const typeMappings: TypeMapping = {
|
|
326
|
+
event_hooks: { type: 'EventHook', isSingle: false },
|
|
267
327
|
|
|
268
|
-
|
|
328
|
+
call_types: { type: 'CallType', isSingle: false },
|
|
269
329
|
|
|
270
|
-
|
|
330
|
+
channel_configs: { type: 'ChannelConfig', isSingle: false },
|
|
271
331
|
|
|
272
|
-
|
|
332
|
+
push_notifications: { type: 'PushNotificationFields', isSingle: true },
|
|
273
333
|
|
|
274
|
-
|
|
334
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
335
|
+
};
|
|
336
|
+
return decode(typeMappings, input);
|
|
337
|
+
};
|
|
275
338
|
|
|
276
|
-
|
|
339
|
+
decoders.AsyncBulkImageModerationEvent = (input?: Record<string, any>) => {
|
|
340
|
+
const typeMappings: TypeMapping = {
|
|
341
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
277
342
|
|
|
278
|
-
|
|
343
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
279
344
|
|
|
280
|
-
|
|
345
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
281
346
|
|
|
282
|
-
|
|
347
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
348
|
+
};
|
|
349
|
+
return decode(typeMappings, input);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
decoders.AsyncExportChannelsEvent = (input?: Record<string, any>) => {
|
|
353
|
+
const typeMappings: TypeMapping = {
|
|
354
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
283
355
|
|
|
284
|
-
|
|
356
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
285
357
|
|
|
286
358
|
started_at: { type: 'DatetimeType', isSingle: true },
|
|
287
359
|
|
|
288
|
-
|
|
360
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
289
361
|
};
|
|
290
362
|
return decode(typeMappings, input);
|
|
291
363
|
};
|
|
292
364
|
|
|
293
|
-
decoders.
|
|
365
|
+
decoders.AsyncExportErrorEvent = (input?: Record<string, any>) => {
|
|
294
366
|
const typeMappings: TypeMapping = {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
accepted_by: { type: 'DatetimeType', isSingle: false },
|
|
367
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
298
368
|
|
|
299
|
-
|
|
369
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
300
370
|
|
|
301
|
-
|
|
371
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
302
372
|
|
|
303
|
-
|
|
373
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
374
|
+
};
|
|
375
|
+
return decode(typeMappings, input);
|
|
376
|
+
};
|
|
304
377
|
|
|
305
|
-
|
|
378
|
+
decoders.AsyncExportModerationLogsEvent = (input?: Record<string, any>) => {
|
|
379
|
+
const typeMappings: TypeMapping = {
|
|
380
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
306
381
|
|
|
307
|
-
|
|
382
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
308
383
|
|
|
309
384
|
started_at: { type: 'DatetimeType', isSingle: true },
|
|
310
385
|
|
|
311
|
-
|
|
386
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
312
387
|
};
|
|
313
388
|
return decode(typeMappings, input);
|
|
314
389
|
};
|
|
315
390
|
|
|
316
|
-
decoders.
|
|
391
|
+
decoders.AsyncExportUsersEvent = (input?: Record<string, any>) => {
|
|
317
392
|
const typeMappings: TypeMapping = {
|
|
318
|
-
|
|
393
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
319
394
|
|
|
320
|
-
|
|
395
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
396
|
+
|
|
397
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
398
|
+
|
|
399
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
321
400
|
};
|
|
322
401
|
return decode(typeMappings, input);
|
|
323
402
|
};
|
|
324
403
|
|
|
325
|
-
decoders.
|
|
404
|
+
decoders.AutomodDetails = (input?: Record<string, any>) => {
|
|
326
405
|
const typeMappings: TypeMapping = {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
406
|
+
result: { type: 'MessageModerationResult', isSingle: true },
|
|
330
407
|
};
|
|
331
408
|
return decode(typeMappings, input);
|
|
332
409
|
};
|
|
333
410
|
|
|
334
|
-
decoders.
|
|
411
|
+
decoders.Ban = (input?: Record<string, any>) => {
|
|
335
412
|
const typeMappings: TypeMapping = {
|
|
336
|
-
|
|
413
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
337
414
|
|
|
338
|
-
|
|
415
|
+
expires: { type: 'DatetimeType', isSingle: true },
|
|
416
|
+
|
|
417
|
+
channel: { type: 'Channel', isSingle: true },
|
|
418
|
+
|
|
419
|
+
created_by: { type: 'User', isSingle: true },
|
|
420
|
+
|
|
421
|
+
target: { type: 'User', isSingle: true },
|
|
339
422
|
};
|
|
340
423
|
return decode(typeMappings, input);
|
|
341
424
|
};
|
|
342
425
|
|
|
343
|
-
decoders.
|
|
426
|
+
decoders.BanResponse = (input?: Record<string, any>) => {
|
|
344
427
|
const typeMappings: TypeMapping = {
|
|
345
428
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
346
429
|
|
|
347
|
-
|
|
430
|
+
expires: { type: 'DatetimeType', isSingle: true },
|
|
431
|
+
|
|
432
|
+
banned_by: { type: 'UserResponse', isSingle: true },
|
|
433
|
+
|
|
434
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
435
|
+
|
|
436
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
348
437
|
};
|
|
349
438
|
return decode(typeMappings, input);
|
|
350
439
|
};
|
|
351
440
|
|
|
352
|
-
decoders.
|
|
441
|
+
decoders.BlockListResponse = (input?: Record<string, any>) => {
|
|
353
442
|
const typeMappings: TypeMapping = {
|
|
354
443
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
355
444
|
|
|
@@ -358,60 +447,75 @@ decoders.CallTypeResponse = (input?: Record<string, any>) => {
|
|
|
358
447
|
return decode(typeMappings, input);
|
|
359
448
|
};
|
|
360
449
|
|
|
361
|
-
decoders.
|
|
450
|
+
decoders.BlockUsersResponse = (input?: Record<string, any>) => {
|
|
362
451
|
const typeMappings: TypeMapping = {
|
|
363
452
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
453
|
+
};
|
|
454
|
+
return decode(typeMappings, input);
|
|
455
|
+
};
|
|
364
456
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
457
|
+
decoders.BlockedUserEvent = (input?: Record<string, any>) => {
|
|
458
|
+
const typeMappings: TypeMapping = {
|
|
459
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
368
460
|
|
|
369
|
-
|
|
461
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
370
462
|
|
|
371
|
-
|
|
463
|
+
blocked_by_user: { type: 'UserResponse', isSingle: true },
|
|
464
|
+
};
|
|
465
|
+
return decode(typeMappings, input);
|
|
466
|
+
};
|
|
372
467
|
|
|
373
|
-
|
|
468
|
+
decoders.BlockedUserResponse = (input?: Record<string, any>) => {
|
|
469
|
+
const typeMappings: TypeMapping = {
|
|
470
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
374
471
|
|
|
375
|
-
|
|
472
|
+
blocked_user: { type: 'UserResponse', isSingle: true },
|
|
376
473
|
|
|
377
|
-
|
|
474
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
378
475
|
};
|
|
379
476
|
return decode(typeMappings, input);
|
|
380
477
|
};
|
|
381
478
|
|
|
382
|
-
decoders.
|
|
479
|
+
decoders.BookmarkAddedEvent = (input?: Record<string, any>) => {
|
|
383
480
|
const typeMappings: TypeMapping = {
|
|
384
|
-
|
|
481
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
385
482
|
|
|
386
|
-
|
|
483
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
484
|
+
|
|
485
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
486
|
+
|
|
487
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
387
488
|
};
|
|
388
489
|
return decode(typeMappings, input);
|
|
389
490
|
};
|
|
390
491
|
|
|
391
|
-
decoders.
|
|
492
|
+
decoders.BookmarkDeletedEvent = (input?: Record<string, any>) => {
|
|
392
493
|
const typeMappings: TypeMapping = {
|
|
393
494
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
394
495
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
496
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
398
497
|
|
|
399
|
-
|
|
498
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
400
499
|
|
|
401
|
-
|
|
500
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
501
|
+
};
|
|
502
|
+
return decode(typeMappings, input);
|
|
503
|
+
};
|
|
402
504
|
|
|
403
|
-
|
|
505
|
+
decoders.BookmarkFolderDeletedEvent = (input?: Record<string, any>) => {
|
|
506
|
+
const typeMappings: TypeMapping = {
|
|
507
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
404
508
|
|
|
405
|
-
|
|
509
|
+
bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
406
510
|
|
|
407
|
-
|
|
511
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
408
512
|
|
|
409
|
-
|
|
513
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
410
514
|
};
|
|
411
515
|
return decode(typeMappings, input);
|
|
412
516
|
};
|
|
413
517
|
|
|
414
|
-
decoders.
|
|
518
|
+
decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {
|
|
415
519
|
const typeMappings: TypeMapping = {
|
|
416
520
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
417
521
|
|
|
@@ -420,457 +524,1545 @@ decoders.ChannelConfig = (input?: Record<string, any>) => {
|
|
|
420
524
|
return decode(typeMappings, input);
|
|
421
525
|
};
|
|
422
526
|
|
|
423
|
-
decoders.
|
|
527
|
+
decoders.BookmarkFolderUpdatedEvent = (input?: Record<string, any>) => {
|
|
424
528
|
const typeMappings: TypeMapping = {
|
|
425
529
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
426
530
|
|
|
427
|
-
|
|
531
|
+
bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
428
532
|
|
|
429
|
-
|
|
533
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
534
|
+
|
|
535
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
430
536
|
};
|
|
431
537
|
return decode(typeMappings, input);
|
|
432
538
|
};
|
|
433
539
|
|
|
434
|
-
decoders.
|
|
540
|
+
decoders.BookmarkResponse = (input?: Record<string, any>) => {
|
|
435
541
|
const typeMappings: TypeMapping = {
|
|
436
542
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
437
543
|
|
|
438
544
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
439
545
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
443
|
-
|
|
444
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
445
|
-
|
|
446
|
-
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
447
|
-
|
|
448
|
-
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
449
|
-
|
|
450
|
-
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
546
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
451
547
|
|
|
452
548
|
user: { type: 'UserResponse', isSingle: true },
|
|
549
|
+
|
|
550
|
+
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
453
551
|
};
|
|
454
552
|
return decode(typeMappings, input);
|
|
455
553
|
};
|
|
456
554
|
|
|
457
|
-
decoders.
|
|
555
|
+
decoders.BookmarkUpdatedEvent = (input?: Record<string, any>) => {
|
|
458
556
|
const typeMappings: TypeMapping = {
|
|
459
557
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
460
558
|
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
archived_at: { type: 'DatetimeType', isSingle: true },
|
|
464
|
-
|
|
465
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
559
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
466
560
|
|
|
467
|
-
|
|
561
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
468
562
|
|
|
469
|
-
|
|
563
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
564
|
+
};
|
|
565
|
+
return decode(typeMappings, input);
|
|
566
|
+
};
|
|
470
567
|
|
|
471
|
-
|
|
568
|
+
decoders.CallAcceptedEvent = (input?: Record<string, any>) => {
|
|
569
|
+
const typeMappings: TypeMapping = {
|
|
570
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
472
571
|
|
|
473
|
-
|
|
572
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
474
573
|
|
|
475
574
|
user: { type: 'UserResponse', isSingle: true },
|
|
476
575
|
};
|
|
477
576
|
return decode(typeMappings, input);
|
|
478
577
|
};
|
|
479
578
|
|
|
480
|
-
decoders.
|
|
579
|
+
decoders.CallClosedCaptionsFailedEvent = (input?: Record<string, any>) => {
|
|
481
580
|
const typeMappings: TypeMapping = {
|
|
482
581
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
483
|
-
|
|
484
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
485
|
-
|
|
486
|
-
expires: { type: 'DatetimeType', isSingle: true },
|
|
487
|
-
|
|
488
|
-
channel: { type: 'ChannelResponse', isSingle: true },
|
|
489
|
-
|
|
490
|
-
user: { type: 'UserResponse', isSingle: true },
|
|
491
582
|
};
|
|
492
583
|
return decode(typeMappings, input);
|
|
493
584
|
};
|
|
494
585
|
|
|
495
|
-
decoders.
|
|
586
|
+
decoders.CallClosedCaptionsStartedEvent = (input?: Record<string, any>) => {
|
|
496
587
|
const typeMappings: TypeMapping = {
|
|
497
|
-
|
|
588
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
498
589
|
};
|
|
499
590
|
return decode(typeMappings, input);
|
|
500
591
|
};
|
|
501
592
|
|
|
502
|
-
decoders.
|
|
593
|
+
decoders.CallClosedCaptionsStoppedEvent = (input?: Record<string, any>) => {
|
|
503
594
|
const typeMappings: TypeMapping = {
|
|
504
595
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
596
|
+
};
|
|
597
|
+
return decode(typeMappings, input);
|
|
598
|
+
};
|
|
505
599
|
|
|
506
|
-
|
|
600
|
+
decoders.CallCreatedEvent = (input?: Record<string, any>) => {
|
|
601
|
+
const typeMappings: TypeMapping = {
|
|
602
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
507
603
|
|
|
508
|
-
|
|
604
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
509
605
|
|
|
510
|
-
|
|
606
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
607
|
+
};
|
|
608
|
+
return decode(typeMappings, input);
|
|
609
|
+
};
|
|
511
610
|
|
|
512
|
-
|
|
611
|
+
decoders.CallDeletedEvent = (input?: Record<string, any>) => {
|
|
612
|
+
const typeMappings: TypeMapping = {
|
|
613
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
513
614
|
|
|
514
|
-
|
|
615
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
616
|
+
};
|
|
617
|
+
return decode(typeMappings, input);
|
|
618
|
+
};
|
|
515
619
|
|
|
516
|
-
|
|
620
|
+
decoders.CallEndedEvent = (input?: Record<string, any>) => {
|
|
621
|
+
const typeMappings: TypeMapping = {
|
|
622
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
517
623
|
|
|
518
|
-
|
|
624
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
519
625
|
|
|
520
|
-
|
|
626
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
627
|
+
};
|
|
628
|
+
return decode(typeMappings, input);
|
|
629
|
+
};
|
|
521
630
|
|
|
522
|
-
|
|
631
|
+
decoders.CallFrameRecordingFailedEvent = (input?: Record<string, any>) => {
|
|
632
|
+
const typeMappings: TypeMapping = {
|
|
633
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
523
634
|
|
|
524
|
-
|
|
635
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
525
636
|
};
|
|
526
637
|
return decode(typeMappings, input);
|
|
527
638
|
};
|
|
528
639
|
|
|
529
|
-
decoders.
|
|
640
|
+
decoders.CallFrameRecordingFrameReadyEvent = (input?: Record<string, any>) => {
|
|
530
641
|
const typeMappings: TypeMapping = {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
messages: { type: 'MessageResponse', isSingle: false },
|
|
642
|
+
captured_at: { type: 'DatetimeType', isSingle: true },
|
|
534
643
|
|
|
535
|
-
|
|
644
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
536
645
|
|
|
537
|
-
|
|
646
|
+
users: { type: 'UserResponse', isSingle: false },
|
|
647
|
+
};
|
|
648
|
+
return decode(typeMappings, input);
|
|
649
|
+
};
|
|
538
650
|
|
|
539
|
-
|
|
651
|
+
decoders.CallFrameRecordingStartedEvent = (input?: Record<string, any>) => {
|
|
652
|
+
const typeMappings: TypeMapping = {
|
|
653
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
540
654
|
|
|
541
|
-
|
|
655
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
656
|
+
};
|
|
657
|
+
return decode(typeMappings, input);
|
|
658
|
+
};
|
|
542
659
|
|
|
543
|
-
|
|
660
|
+
decoders.CallFrameRecordingStoppedEvent = (input?: Record<string, any>) => {
|
|
661
|
+
const typeMappings: TypeMapping = {
|
|
662
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
544
663
|
|
|
545
|
-
|
|
664
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
665
|
+
};
|
|
666
|
+
return decode(typeMappings, input);
|
|
667
|
+
};
|
|
546
668
|
|
|
547
|
-
|
|
669
|
+
decoders.CallHLSBroadcastingFailedEvent = (input?: Record<string, any>) => {
|
|
670
|
+
const typeMappings: TypeMapping = {
|
|
671
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
672
|
+
};
|
|
673
|
+
return decode(typeMappings, input);
|
|
674
|
+
};
|
|
548
675
|
|
|
549
|
-
|
|
676
|
+
decoders.CallHLSBroadcastingStartedEvent = (input?: Record<string, any>) => {
|
|
677
|
+
const typeMappings: TypeMapping = {
|
|
678
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
550
679
|
|
|
551
|
-
|
|
680
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
681
|
+
};
|
|
682
|
+
return decode(typeMappings, input);
|
|
683
|
+
};
|
|
552
684
|
|
|
553
|
-
|
|
685
|
+
decoders.CallHLSBroadcastingStoppedEvent = (input?: Record<string, any>) => {
|
|
686
|
+
const typeMappings: TypeMapping = {
|
|
687
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
554
688
|
};
|
|
555
689
|
return decode(typeMappings, input);
|
|
556
690
|
};
|
|
557
691
|
|
|
558
|
-
decoders.
|
|
692
|
+
decoders.CallLiveStartedEvent = (input?: Record<string, any>) => {
|
|
559
693
|
const typeMappings: TypeMapping = {
|
|
560
|
-
|
|
694
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
561
695
|
|
|
562
|
-
|
|
696
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
697
|
+
};
|
|
698
|
+
return decode(typeMappings, input);
|
|
699
|
+
};
|
|
563
700
|
|
|
564
|
-
|
|
701
|
+
decoders.CallMemberAddedEvent = (input?: Record<string, any>) => {
|
|
702
|
+
const typeMappings: TypeMapping = {
|
|
703
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
565
704
|
|
|
566
|
-
|
|
705
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
567
706
|
|
|
568
|
-
|
|
707
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
708
|
+
};
|
|
709
|
+
return decode(typeMappings, input);
|
|
710
|
+
};
|
|
569
711
|
|
|
570
|
-
|
|
712
|
+
decoders.CallMemberRemovedEvent = (input?: Record<string, any>) => {
|
|
713
|
+
const typeMappings: TypeMapping = {
|
|
714
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
571
715
|
|
|
572
|
-
|
|
716
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
717
|
+
};
|
|
718
|
+
return decode(typeMappings, input);
|
|
719
|
+
};
|
|
573
720
|
|
|
574
|
-
|
|
721
|
+
decoders.CallMemberUpdatedEvent = (input?: Record<string, any>) => {
|
|
722
|
+
const typeMappings: TypeMapping = {
|
|
723
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
575
724
|
|
|
576
|
-
|
|
725
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
577
726
|
|
|
578
|
-
|
|
727
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
728
|
+
};
|
|
729
|
+
return decode(typeMappings, input);
|
|
730
|
+
};
|
|
579
731
|
|
|
580
|
-
|
|
732
|
+
decoders.CallMemberUpdatedPermissionEvent = (input?: Record<string, any>) => {
|
|
733
|
+
const typeMappings: TypeMapping = {
|
|
734
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
581
735
|
|
|
582
|
-
|
|
736
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
737
|
+
|
|
738
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
583
739
|
};
|
|
584
740
|
return decode(typeMappings, input);
|
|
585
741
|
};
|
|
586
742
|
|
|
587
|
-
decoders.
|
|
743
|
+
decoders.CallMissedEvent = (input?: Record<string, any>) => {
|
|
588
744
|
const typeMappings: TypeMapping = {
|
|
589
745
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
590
746
|
|
|
591
|
-
|
|
747
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
592
748
|
|
|
593
|
-
|
|
749
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
750
|
+
|
|
751
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
594
752
|
};
|
|
595
753
|
return decode(typeMappings, input);
|
|
596
754
|
};
|
|
597
755
|
|
|
598
|
-
decoders.
|
|
756
|
+
decoders.CallModerationBlurEvent = (input?: Record<string, any>) => {
|
|
599
757
|
const typeMappings: TypeMapping = {
|
|
600
|
-
|
|
758
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
601
759
|
};
|
|
602
760
|
return decode(typeMappings, input);
|
|
603
761
|
};
|
|
604
762
|
|
|
605
|
-
decoders.
|
|
763
|
+
decoders.CallModerationWarningEvent = (input?: Record<string, any>) => {
|
|
606
764
|
const typeMappings: TypeMapping = {
|
|
607
|
-
|
|
765
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
608
766
|
};
|
|
609
767
|
return decode(typeMappings, input);
|
|
610
768
|
};
|
|
611
769
|
|
|
612
|
-
decoders.
|
|
770
|
+
decoders.CallNotificationEvent = (input?: Record<string, any>) => {
|
|
613
771
|
const typeMappings: TypeMapping = {
|
|
614
772
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
615
773
|
|
|
616
|
-
|
|
774
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
775
|
+
|
|
776
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
777
|
+
|
|
778
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
617
779
|
};
|
|
618
780
|
return decode(typeMappings, input);
|
|
619
781
|
};
|
|
620
782
|
|
|
621
|
-
decoders.
|
|
783
|
+
decoders.CallParticipantResponse = (input?: Record<string, any>) => {
|
|
784
|
+
const typeMappings: TypeMapping = {
|
|
785
|
+
joined_at: { type: 'DatetimeType', isSingle: true },
|
|
786
|
+
|
|
787
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
788
|
+
};
|
|
789
|
+
return decode(typeMappings, input);
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
decoders.CallReactionEvent = (input?: Record<string, any>) => {
|
|
622
793
|
const typeMappings: TypeMapping = {
|
|
623
794
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
624
795
|
|
|
625
|
-
|
|
796
|
+
reaction: { type: 'ReactionResponse', isSingle: true },
|
|
626
797
|
};
|
|
627
798
|
return decode(typeMappings, input);
|
|
628
799
|
};
|
|
629
800
|
|
|
630
|
-
decoders.
|
|
801
|
+
decoders.CallRecording = (input?: Record<string, any>) => {
|
|
631
802
|
const typeMappings: TypeMapping = {
|
|
632
|
-
|
|
803
|
+
end_time: { type: 'DatetimeType', isSingle: true },
|
|
804
|
+
|
|
805
|
+
start_time: { type: 'DatetimeType', isSingle: true },
|
|
633
806
|
};
|
|
634
807
|
return decode(typeMappings, input);
|
|
635
808
|
};
|
|
636
809
|
|
|
637
|
-
decoders.
|
|
810
|
+
decoders.CallRecordingFailedEvent = (input?: Record<string, any>) => {
|
|
638
811
|
const typeMappings: TypeMapping = {
|
|
639
|
-
|
|
812
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
640
813
|
};
|
|
641
814
|
return decode(typeMappings, input);
|
|
642
815
|
};
|
|
643
816
|
|
|
644
|
-
decoders.
|
|
817
|
+
decoders.CallRecordingReadyEvent = (input?: Record<string, any>) => {
|
|
645
818
|
const typeMappings: TypeMapping = {
|
|
646
819
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
647
820
|
|
|
648
|
-
|
|
821
|
+
call_recording: { type: 'CallRecording', isSingle: true },
|
|
649
822
|
};
|
|
650
823
|
return decode(typeMappings, input);
|
|
651
824
|
};
|
|
652
825
|
|
|
653
|
-
decoders.
|
|
826
|
+
decoders.CallRecordingStartedEvent = (input?: Record<string, any>) => {
|
|
654
827
|
const typeMappings: TypeMapping = {
|
|
655
828
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
656
|
-
|
|
657
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
658
829
|
};
|
|
659
830
|
return decode(typeMappings, input);
|
|
660
831
|
};
|
|
661
832
|
|
|
662
|
-
decoders.
|
|
833
|
+
decoders.CallRecordingStoppedEvent = (input?: Record<string, any>) => {
|
|
663
834
|
const typeMappings: TypeMapping = {
|
|
664
|
-
|
|
835
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
665
836
|
};
|
|
666
837
|
return decode(typeMappings, input);
|
|
667
838
|
};
|
|
668
839
|
|
|
669
|
-
decoders.
|
|
840
|
+
decoders.CallRejectedEvent = (input?: Record<string, any>) => {
|
|
670
841
|
const typeMappings: TypeMapping = {
|
|
842
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
843
|
+
|
|
844
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
845
|
+
|
|
671
846
|
user: { type: 'UserResponse', isSingle: true },
|
|
672
847
|
};
|
|
673
848
|
return decode(typeMappings, input);
|
|
674
849
|
};
|
|
675
850
|
|
|
676
|
-
decoders.
|
|
851
|
+
decoders.CallReportResponse = (input?: Record<string, any>) => {
|
|
677
852
|
const typeMappings: TypeMapping = {
|
|
678
|
-
|
|
853
|
+
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
854
|
+
|
|
855
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
679
856
|
};
|
|
680
857
|
return decode(typeMappings, input);
|
|
681
858
|
};
|
|
682
859
|
|
|
683
|
-
decoders.
|
|
860
|
+
decoders.CallResponse = (input?: Record<string, any>) => {
|
|
684
861
|
const typeMappings: TypeMapping = {
|
|
685
|
-
|
|
862
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
863
|
+
|
|
864
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
865
|
+
|
|
866
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
867
|
+
|
|
868
|
+
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
869
|
+
|
|
870
|
+
starts_at: { type: 'DatetimeType', isSingle: true },
|
|
871
|
+
|
|
872
|
+
session: { type: 'CallSessionResponse', isSingle: true },
|
|
873
|
+
};
|
|
874
|
+
return decode(typeMappings, input);
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
decoders.CallRingEvent = (input?: Record<string, any>) => {
|
|
878
|
+
const typeMappings: TypeMapping = {
|
|
879
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
880
|
+
|
|
881
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
882
|
+
|
|
883
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
884
|
+
|
|
885
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
886
|
+
};
|
|
887
|
+
return decode(typeMappings, input);
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
decoders.CallRtmpBroadcastFailedEvent = (input?: Record<string, any>) => {
|
|
891
|
+
const typeMappings: TypeMapping = {
|
|
892
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
893
|
+
};
|
|
894
|
+
return decode(typeMappings, input);
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
decoders.CallRtmpBroadcastStartedEvent = (input?: Record<string, any>) => {
|
|
898
|
+
const typeMappings: TypeMapping = {
|
|
899
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
900
|
+
};
|
|
901
|
+
return decode(typeMappings, input);
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
decoders.CallRtmpBroadcastStoppedEvent = (input?: Record<string, any>) => {
|
|
905
|
+
const typeMappings: TypeMapping = {
|
|
906
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
907
|
+
};
|
|
908
|
+
return decode(typeMappings, input);
|
|
909
|
+
};
|
|
910
|
+
|
|
911
|
+
decoders.CallSessionEndedEvent = (input?: Record<string, any>) => {
|
|
912
|
+
const typeMappings: TypeMapping = {
|
|
913
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
914
|
+
|
|
915
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
916
|
+
};
|
|
917
|
+
return decode(typeMappings, input);
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
decoders.CallSessionParticipantJoinedEvent = (input?: Record<string, any>) => {
|
|
921
|
+
const typeMappings: TypeMapping = {
|
|
922
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
923
|
+
|
|
924
|
+
participant: { type: 'CallParticipantResponse', isSingle: true },
|
|
925
|
+
};
|
|
926
|
+
return decode(typeMappings, input);
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
decoders.CallSessionParticipantLeftEvent = (input?: Record<string, any>) => {
|
|
930
|
+
const typeMappings: TypeMapping = {
|
|
931
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
932
|
+
|
|
933
|
+
participant: { type: 'CallParticipantResponse', isSingle: true },
|
|
934
|
+
};
|
|
935
|
+
return decode(typeMappings, input);
|
|
936
|
+
};
|
|
937
|
+
|
|
938
|
+
decoders.CallSessionResponse = (input?: Record<string, any>) => {
|
|
939
|
+
const typeMappings: TypeMapping = {
|
|
940
|
+
participants: { type: 'CallParticipantResponse', isSingle: false },
|
|
941
|
+
|
|
942
|
+
accepted_by: { type: 'DatetimeType', isSingle: false },
|
|
943
|
+
|
|
944
|
+
missed_by: { type: 'DatetimeType', isSingle: false },
|
|
945
|
+
|
|
946
|
+
rejected_by: { type: 'DatetimeType', isSingle: false },
|
|
947
|
+
|
|
948
|
+
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
949
|
+
|
|
950
|
+
live_ended_at: { type: 'DatetimeType', isSingle: true },
|
|
951
|
+
|
|
952
|
+
live_started_at: { type: 'DatetimeType', isSingle: true },
|
|
953
|
+
|
|
954
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
955
|
+
|
|
956
|
+
timer_ends_at: { type: 'DatetimeType', isSingle: true },
|
|
957
|
+
};
|
|
958
|
+
return decode(typeMappings, input);
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
decoders.CallSessionStartedEvent = (input?: Record<string, any>) => {
|
|
962
|
+
const typeMappings: TypeMapping = {
|
|
963
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
964
|
+
|
|
965
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
966
|
+
};
|
|
967
|
+
return decode(typeMappings, input);
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
decoders.CallStateResponseFields = (input?: Record<string, any>) => {
|
|
971
|
+
const typeMappings: TypeMapping = {
|
|
972
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
973
|
+
|
|
974
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
975
|
+
};
|
|
976
|
+
return decode(typeMappings, input);
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
decoders.CallStatsReportReadyEvent = (input?: Record<string, any>) => {
|
|
980
|
+
const typeMappings: TypeMapping = {
|
|
981
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
982
|
+
};
|
|
983
|
+
return decode(typeMappings, input);
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
decoders.CallStatsReportSummaryResponse = (input?: Record<string, any>) => {
|
|
987
|
+
const typeMappings: TypeMapping = {
|
|
988
|
+
first_stats_time: { type: 'DatetimeType', isSingle: true },
|
|
989
|
+
|
|
990
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
991
|
+
};
|
|
992
|
+
return decode(typeMappings, input);
|
|
993
|
+
};
|
|
994
|
+
|
|
995
|
+
decoders.CallTranscription = (input?: Record<string, any>) => {
|
|
996
|
+
const typeMappings: TypeMapping = {
|
|
997
|
+
end_time: { type: 'DatetimeType', isSingle: true },
|
|
998
|
+
|
|
999
|
+
start_time: { type: 'DatetimeType', isSingle: true },
|
|
1000
|
+
};
|
|
1001
|
+
return decode(typeMappings, input);
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
decoders.CallTranscriptionFailedEvent = (input?: Record<string, any>) => {
|
|
1005
|
+
const typeMappings: TypeMapping = {
|
|
1006
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1007
|
+
};
|
|
1008
|
+
return decode(typeMappings, input);
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
decoders.CallTranscriptionReadyEvent = (input?: Record<string, any>) => {
|
|
1012
|
+
const typeMappings: TypeMapping = {
|
|
1013
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1014
|
+
|
|
1015
|
+
call_transcription: { type: 'CallTranscription', isSingle: true },
|
|
1016
|
+
};
|
|
1017
|
+
return decode(typeMappings, input);
|
|
1018
|
+
};
|
|
1019
|
+
|
|
1020
|
+
decoders.CallTranscriptionStartedEvent = (input?: Record<string, any>) => {
|
|
1021
|
+
const typeMappings: TypeMapping = {
|
|
1022
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1023
|
+
};
|
|
1024
|
+
return decode(typeMappings, input);
|
|
1025
|
+
};
|
|
1026
|
+
|
|
1027
|
+
decoders.CallTranscriptionStoppedEvent = (input?: Record<string, any>) => {
|
|
1028
|
+
const typeMappings: TypeMapping = {
|
|
1029
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1030
|
+
};
|
|
1031
|
+
return decode(typeMappings, input);
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
decoders.CallType = (input?: Record<string, any>) => {
|
|
1035
|
+
const typeMappings: TypeMapping = {
|
|
1036
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1037
|
+
|
|
1038
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1039
|
+
};
|
|
1040
|
+
return decode(typeMappings, input);
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
decoders.CallTypeResponse = (input?: Record<string, any>) => {
|
|
1044
|
+
const typeMappings: TypeMapping = {
|
|
1045
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1046
|
+
|
|
1047
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1048
|
+
};
|
|
1049
|
+
return decode(typeMappings, input);
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
decoders.CallUpdatedEvent = (input?: Record<string, any>) => {
|
|
1053
|
+
const typeMappings: TypeMapping = {
|
|
1054
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1055
|
+
|
|
1056
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
1057
|
+
};
|
|
1058
|
+
return decode(typeMappings, input);
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
decoders.CallUserFeedbackSubmittedEvent = (input?: Record<string, any>) => {
|
|
1062
|
+
const typeMappings: TypeMapping = {
|
|
1063
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1064
|
+
|
|
1065
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1066
|
+
};
|
|
1067
|
+
return decode(typeMappings, input);
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
decoders.CallUserMutedEvent = (input?: Record<string, any>) => {
|
|
1071
|
+
const typeMappings: TypeMapping = {
|
|
1072
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1073
|
+
};
|
|
1074
|
+
return decode(typeMappings, input);
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
decoders.CampaignCompletedEvent = (input?: Record<string, any>) => {
|
|
1078
|
+
const typeMappings: TypeMapping = {
|
|
1079
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1080
|
+
|
|
1081
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1082
|
+
|
|
1083
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
1084
|
+
};
|
|
1085
|
+
return decode(typeMappings, input);
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
decoders.CampaignResponse = (input?: Record<string, any>) => {
|
|
1089
|
+
const typeMappings: TypeMapping = {
|
|
1090
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1091
|
+
|
|
1092
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1093
|
+
|
|
1094
|
+
segments: { type: 'Segment', isSingle: false },
|
|
1095
|
+
|
|
1096
|
+
users: { type: 'UserResponse', isSingle: false },
|
|
1097
|
+
|
|
1098
|
+
stats: { type: 'CampaignStatsResponse', isSingle: true },
|
|
1099
|
+
|
|
1100
|
+
scheduled_for: { type: 'DatetimeType', isSingle: true },
|
|
1101
|
+
|
|
1102
|
+
stop_at: { type: 'DatetimeType', isSingle: true },
|
|
1103
|
+
|
|
1104
|
+
sender: { type: 'UserResponse', isSingle: true },
|
|
1105
|
+
};
|
|
1106
|
+
return decode(typeMappings, input);
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
decoders.CampaignStartedEvent = (input?: Record<string, any>) => {
|
|
1110
|
+
const typeMappings: TypeMapping = {
|
|
1111
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1112
|
+
|
|
1113
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1114
|
+
|
|
1115
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
1116
|
+
};
|
|
1117
|
+
return decode(typeMappings, input);
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
decoders.CampaignStatsResponse = (input?: Record<string, any>) => {
|
|
1121
|
+
const typeMappings: TypeMapping = {
|
|
1122
|
+
stats_completed_at: { type: 'DatetimeType', isSingle: true },
|
|
1123
|
+
|
|
1124
|
+
stats_started_at: { type: 'DatetimeType', isSingle: true },
|
|
1125
|
+
};
|
|
1126
|
+
return decode(typeMappings, input);
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
decoders.Channel = (input?: Record<string, any>) => {
|
|
1130
|
+
const typeMappings: TypeMapping = {
|
|
1131
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1132
|
+
|
|
1133
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1134
|
+
|
|
1135
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1136
|
+
|
|
1137
|
+
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
1138
|
+
|
|
1139
|
+
active_live_locations: { type: 'SharedLocation', isSingle: false },
|
|
1140
|
+
|
|
1141
|
+
invites: { type: 'ChannelMember', isSingle: false },
|
|
1142
|
+
|
|
1143
|
+
members: { type: 'ChannelMember', isSingle: false },
|
|
1144
|
+
|
|
1145
|
+
config: { type: 'ChannelConfig', isSingle: true },
|
|
1146
|
+
|
|
1147
|
+
created_by: { type: 'User', isSingle: true },
|
|
1148
|
+
|
|
1149
|
+
truncated_by: { type: 'User', isSingle: true },
|
|
1150
|
+
};
|
|
1151
|
+
return decode(typeMappings, input);
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
decoders.ChannelConfig = (input?: Record<string, any>) => {
|
|
1155
|
+
const typeMappings: TypeMapping = {
|
|
1156
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1157
|
+
|
|
1158
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1159
|
+
};
|
|
1160
|
+
return decode(typeMappings, input);
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
decoders.ChannelConfigWithInfo = (input?: Record<string, any>) => {
|
|
1164
|
+
const typeMappings: TypeMapping = {
|
|
1165
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1166
|
+
|
|
1167
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1168
|
+
|
|
1169
|
+
commands: { type: 'Command', isSingle: false },
|
|
1170
|
+
};
|
|
1171
|
+
return decode(typeMappings, input);
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
decoders.ChannelCreatedEvent = (input?: Record<string, any>) => {
|
|
1175
|
+
const typeMappings: TypeMapping = {
|
|
1176
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1177
|
+
};
|
|
1178
|
+
return decode(typeMappings, input);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
decoders.ChannelDeletedEvent = (input?: Record<string, any>) => {
|
|
1182
|
+
const typeMappings: TypeMapping = {
|
|
1183
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1184
|
+
|
|
1185
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1186
|
+
};
|
|
1187
|
+
return decode(typeMappings, input);
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
decoders.ChannelFrozenEvent = (input?: Record<string, any>) => {
|
|
1191
|
+
const typeMappings: TypeMapping = {
|
|
1192
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1193
|
+
};
|
|
1194
|
+
return decode(typeMappings, input);
|
|
1195
|
+
};
|
|
1196
|
+
|
|
1197
|
+
decoders.ChannelHiddenEvent = (input?: Record<string, any>) => {
|
|
1198
|
+
const typeMappings: TypeMapping = {
|
|
1199
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1200
|
+
|
|
1201
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1202
|
+
|
|
1203
|
+
user: { type: 'User', isSingle: true },
|
|
1204
|
+
};
|
|
1205
|
+
return decode(typeMappings, input);
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
decoders.ChannelMember = (input?: Record<string, any>) => {
|
|
1209
|
+
const typeMappings: TypeMapping = {
|
|
1210
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1211
|
+
|
|
1212
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1213
|
+
|
|
1214
|
+
archived_at: { type: 'DatetimeType', isSingle: true },
|
|
1215
|
+
|
|
1216
|
+
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1217
|
+
|
|
1218
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1219
|
+
|
|
1220
|
+
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
1221
|
+
|
|
1222
|
+
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
1223
|
+
|
|
1224
|
+
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
1225
|
+
|
|
1226
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1227
|
+
};
|
|
1228
|
+
return decode(typeMappings, input);
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
|
|
1232
|
+
const typeMappings: TypeMapping = {
|
|
1233
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1234
|
+
|
|
1235
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1236
|
+
|
|
1237
|
+
archived_at: { type: 'DatetimeType', isSingle: true },
|
|
1238
|
+
|
|
1239
|
+
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1240
|
+
|
|
1241
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1242
|
+
|
|
1243
|
+
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
1244
|
+
|
|
1245
|
+
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
1246
|
+
|
|
1247
|
+
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
1248
|
+
|
|
1249
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1250
|
+
};
|
|
1251
|
+
return decode(typeMappings, input);
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
decoders.ChannelMute = (input?: Record<string, any>) => {
|
|
1255
|
+
const typeMappings: TypeMapping = {
|
|
1256
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1257
|
+
|
|
1258
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1259
|
+
|
|
1260
|
+
expires: { type: 'DatetimeType', isSingle: true },
|
|
1261
|
+
|
|
1262
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1263
|
+
|
|
1264
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1265
|
+
};
|
|
1266
|
+
return decode(typeMappings, input);
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
decoders.ChannelMutedEvent = (input?: Record<string, any>) => {
|
|
1270
|
+
const typeMappings: TypeMapping = {
|
|
1271
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1272
|
+
};
|
|
1273
|
+
return decode(typeMappings, input);
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
decoders.ChannelPushPreferences = (input?: Record<string, any>) => {
|
|
1277
|
+
const typeMappings: TypeMapping = {
|
|
1278
|
+
disabled_until: { type: 'DatetimeType', isSingle: true },
|
|
1279
|
+
};
|
|
1280
|
+
return decode(typeMappings, input);
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
decoders.ChannelResponse = (input?: Record<string, any>) => {
|
|
1284
|
+
const typeMappings: TypeMapping = {
|
|
1285
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1286
|
+
|
|
1287
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1288
|
+
|
|
1289
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1290
|
+
|
|
1291
|
+
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
1292
|
+
|
|
1293
|
+
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
1294
|
+
|
|
1295
|
+
mute_expires_at: { type: 'DatetimeType', isSingle: true },
|
|
1296
|
+
|
|
1297
|
+
truncated_at: { type: 'DatetimeType', isSingle: true },
|
|
1298
|
+
|
|
1299
|
+
members: { type: 'ChannelMember', isSingle: false },
|
|
1300
|
+
|
|
1301
|
+
config: { type: 'ChannelConfigWithInfo', isSingle: true },
|
|
1302
|
+
|
|
1303
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
1304
|
+
|
|
1305
|
+
truncated_by: { type: 'UserResponse', isSingle: true },
|
|
1306
|
+
};
|
|
1307
|
+
return decode(typeMappings, input);
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1310
|
+
decoders.ChannelStateResponse = (input?: Record<string, any>) => {
|
|
1311
|
+
const typeMappings: TypeMapping = {
|
|
1312
|
+
members: { type: 'ChannelMember', isSingle: false },
|
|
1313
|
+
|
|
1314
|
+
messages: { type: 'MessageResponse', isSingle: false },
|
|
1315
|
+
|
|
1316
|
+
pinned_messages: { type: 'MessageResponse', isSingle: false },
|
|
1317
|
+
|
|
1318
|
+
threads: { type: 'ThreadStateResponse', isSingle: false },
|
|
1319
|
+
|
|
1320
|
+
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
1321
|
+
|
|
1322
|
+
active_live_locations: {
|
|
1323
|
+
type: 'SharedLocationResponseData',
|
|
1324
|
+
isSingle: false,
|
|
1325
|
+
},
|
|
1326
|
+
|
|
1327
|
+
pending_messages: { type: 'PendingMessageResponse', isSingle: false },
|
|
1328
|
+
|
|
1329
|
+
read: { type: 'ReadStateResponse', isSingle: false },
|
|
1330
|
+
|
|
1331
|
+
watchers: { type: 'UserResponse', isSingle: false },
|
|
1332
|
+
|
|
1333
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1334
|
+
|
|
1335
|
+
draft: { type: 'DraftResponse', isSingle: true },
|
|
1336
|
+
|
|
1337
|
+
membership: { type: 'ChannelMember', isSingle: true },
|
|
1338
|
+
|
|
1339
|
+
push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
|
|
1340
|
+
};
|
|
1341
|
+
return decode(typeMappings, input);
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
|
|
1345
|
+
const typeMappings: TypeMapping = {
|
|
1346
|
+
members: { type: 'ChannelMember', isSingle: false },
|
|
1347
|
+
|
|
1348
|
+
messages: { type: 'MessageResponse', isSingle: false },
|
|
1349
|
+
|
|
1350
|
+
pinned_messages: { type: 'MessageResponse', isSingle: false },
|
|
1351
|
+
|
|
1352
|
+
threads: { type: 'ThreadStateResponse', isSingle: false },
|
|
1353
|
+
|
|
1354
|
+
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
1355
|
+
|
|
1356
|
+
active_live_locations: {
|
|
1357
|
+
type: 'SharedLocationResponseData',
|
|
1358
|
+
isSingle: false,
|
|
1359
|
+
},
|
|
1360
|
+
|
|
1361
|
+
pending_messages: { type: 'PendingMessageResponse', isSingle: false },
|
|
1362
|
+
|
|
1363
|
+
read: { type: 'ReadStateResponse', isSingle: false },
|
|
1364
|
+
|
|
1365
|
+
watchers: { type: 'UserResponse', isSingle: false },
|
|
1366
|
+
|
|
1367
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1368
|
+
|
|
1369
|
+
draft: { type: 'DraftResponse', isSingle: true },
|
|
1370
|
+
|
|
1371
|
+
membership: { type: 'ChannelMember', isSingle: true },
|
|
1372
|
+
|
|
1373
|
+
push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
|
|
1374
|
+
};
|
|
1375
|
+
return decode(typeMappings, input);
|
|
1376
|
+
};
|
|
1377
|
+
|
|
1378
|
+
decoders.ChannelTruncatedEvent = (input?: Record<string, any>) => {
|
|
1379
|
+
const typeMappings: TypeMapping = {
|
|
1380
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1381
|
+
|
|
1382
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1383
|
+
};
|
|
1384
|
+
return decode(typeMappings, input);
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
decoders.ChannelTypeConfig = (input?: Record<string, any>) => {
|
|
1388
|
+
const typeMappings: TypeMapping = {
|
|
1389
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1390
|
+
|
|
1391
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1392
|
+
|
|
1393
|
+
commands: { type: 'Command', isSingle: false },
|
|
1394
|
+
};
|
|
1395
|
+
return decode(typeMappings, input);
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
decoders.ChannelUnFrozenEvent = (input?: Record<string, any>) => {
|
|
1399
|
+
const typeMappings: TypeMapping = {
|
|
1400
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1401
|
+
};
|
|
1402
|
+
return decode(typeMappings, input);
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
decoders.ChannelUnmutedEvent = (input?: Record<string, any>) => {
|
|
1406
|
+
const typeMappings: TypeMapping = {
|
|
1407
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1408
|
+
};
|
|
1409
|
+
return decode(typeMappings, input);
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1412
|
+
decoders.ChannelUpdatedEvent = (input?: Record<string, any>) => {
|
|
1413
|
+
const typeMappings: TypeMapping = {
|
|
1414
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1415
|
+
|
|
1416
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1417
|
+
|
|
1418
|
+
message: { type: 'Message', isSingle: true },
|
|
1419
|
+
|
|
1420
|
+
user: { type: 'User', isSingle: true },
|
|
1421
|
+
};
|
|
1422
|
+
return decode(typeMappings, input);
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
decoders.ChannelVisibleEvent = (input?: Record<string, any>) => {
|
|
1426
|
+
const typeMappings: TypeMapping = {
|
|
1427
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1428
|
+
|
|
1429
|
+
user: { type: 'User', isSingle: true },
|
|
1430
|
+
};
|
|
1431
|
+
return decode(typeMappings, input);
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1434
|
+
decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
|
|
1435
|
+
const typeMappings: TypeMapping = {
|
|
1436
|
+
messages: { type: 'MessageStatsResponse', isSingle: true },
|
|
1437
|
+
};
|
|
1438
|
+
return decode(typeMappings, input);
|
|
1439
|
+
};
|
|
1440
|
+
|
|
1441
|
+
decoders.CheckResponse = (input?: Record<string, any>) => {
|
|
1442
|
+
const typeMappings: TypeMapping = {
|
|
1443
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1444
|
+
};
|
|
1445
|
+
return decode(typeMappings, input);
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
decoders.ClosedCaptionEvent = (input?: Record<string, any>) => {
|
|
1449
|
+
const typeMappings: TypeMapping = {
|
|
1450
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1451
|
+
};
|
|
1452
|
+
return decode(typeMappings, input);
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
decoders.Command = (input?: Record<string, any>) => {
|
|
1456
|
+
const typeMappings: TypeMapping = {
|
|
1457
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1458
|
+
|
|
1459
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1460
|
+
};
|
|
1461
|
+
return decode(typeMappings, input);
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
decoders.CommentAddedEvent = (input?: Record<string, any>) => {
|
|
1465
|
+
const typeMappings: TypeMapping = {
|
|
1466
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1467
|
+
|
|
1468
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1469
|
+
|
|
1470
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1471
|
+
|
|
1472
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1473
|
+
};
|
|
1474
|
+
return decode(typeMappings, input);
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
decoders.CommentDeletedEvent = (input?: Record<string, any>) => {
|
|
1478
|
+
const typeMappings: TypeMapping = {
|
|
1479
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1480
|
+
|
|
1481
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1482
|
+
|
|
1483
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1484
|
+
|
|
1485
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1486
|
+
};
|
|
1487
|
+
return decode(typeMappings, input);
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
decoders.CommentReactionAddedEvent = (input?: Record<string, any>) => {
|
|
1491
|
+
const typeMappings: TypeMapping = {
|
|
1492
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1493
|
+
|
|
1494
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1495
|
+
|
|
1496
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
1497
|
+
|
|
1498
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1499
|
+
|
|
1500
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1501
|
+
};
|
|
1502
|
+
return decode(typeMappings, input);
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
decoders.CommentReactionDeletedEvent = (input?: Record<string, any>) => {
|
|
1506
|
+
const typeMappings: TypeMapping = {
|
|
1507
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1508
|
+
|
|
1509
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1510
|
+
|
|
1511
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
1512
|
+
|
|
1513
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1514
|
+
};
|
|
1515
|
+
return decode(typeMappings, input);
|
|
1516
|
+
};
|
|
1517
|
+
|
|
1518
|
+
decoders.CommentReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
1519
|
+
const typeMappings: TypeMapping = {
|
|
1520
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1521
|
+
|
|
1522
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1523
|
+
|
|
1524
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
1525
|
+
|
|
1526
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1527
|
+
|
|
1528
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1529
|
+
};
|
|
1530
|
+
return decode(typeMappings, input);
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
decoders.CommentResponse = (input?: Record<string, any>) => {
|
|
1534
|
+
const typeMappings: TypeMapping = {
|
|
1535
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1536
|
+
|
|
1537
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1538
|
+
|
|
1539
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
1540
|
+
|
|
1541
|
+
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
1542
|
+
|
|
1543
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1544
|
+
|
|
1545
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1546
|
+
|
|
1547
|
+
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
1548
|
+
|
|
1549
|
+
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1550
|
+
};
|
|
1551
|
+
return decode(typeMappings, input);
|
|
1552
|
+
};
|
|
1553
|
+
|
|
1554
|
+
decoders.CommentUpdatedEvent = (input?: Record<string, any>) => {
|
|
1555
|
+
const typeMappings: TypeMapping = {
|
|
1556
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1557
|
+
|
|
1558
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1559
|
+
|
|
1560
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1561
|
+
|
|
1562
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1563
|
+
};
|
|
1564
|
+
return decode(typeMappings, input);
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
decoders.ConfigResponse = (input?: Record<string, any>) => {
|
|
1568
|
+
const typeMappings: TypeMapping = {
|
|
1569
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1570
|
+
|
|
1571
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1572
|
+
};
|
|
1573
|
+
return decode(typeMappings, input);
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
decoders.CountByMinuteResponse = (input?: Record<string, any>) => {
|
|
1577
|
+
const typeMappings: TypeMapping = {
|
|
1578
|
+
start_ts: { type: 'DatetimeType', isSingle: true },
|
|
1579
|
+
};
|
|
1580
|
+
return decode(typeMappings, input);
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
decoders.CreateBlockListResponse = (input?: Record<string, any>) => {
|
|
1584
|
+
const typeMappings: TypeMapping = {
|
|
1585
|
+
blocklist: { type: 'BlockListResponse', isSingle: true },
|
|
1586
|
+
};
|
|
1587
|
+
return decode(typeMappings, input);
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
decoders.CreateCallTypeResponse = (input?: Record<string, any>) => {
|
|
1591
|
+
const typeMappings: TypeMapping = {
|
|
1592
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1593
|
+
|
|
1594
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1595
|
+
};
|
|
1596
|
+
return decode(typeMappings, input);
|
|
1597
|
+
};
|
|
1598
|
+
|
|
1599
|
+
decoders.CreateChannelTypeResponse = (input?: Record<string, any>) => {
|
|
1600
|
+
const typeMappings: TypeMapping = {
|
|
1601
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1602
|
+
|
|
1603
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1604
|
+
};
|
|
1605
|
+
return decode(typeMappings, input);
|
|
1606
|
+
};
|
|
1607
|
+
|
|
1608
|
+
decoders.CreateCommandResponse = (input?: Record<string, any>) => {
|
|
1609
|
+
const typeMappings: TypeMapping = {
|
|
1610
|
+
command: { type: 'Command', isSingle: true },
|
|
1611
|
+
};
|
|
1612
|
+
return decode(typeMappings, input);
|
|
1613
|
+
};
|
|
1614
|
+
|
|
1615
|
+
decoders.CreateFeedGroupResponse = (input?: Record<string, any>) => {
|
|
1616
|
+
const typeMappings: TypeMapping = {
|
|
1617
|
+
feed_group: { type: 'FeedGroupResponse', isSingle: true },
|
|
1618
|
+
};
|
|
1619
|
+
return decode(typeMappings, input);
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
decoders.CreateFeedViewResponse = (input?: Record<string, any>) => {
|
|
1623
|
+
const typeMappings: TypeMapping = {
|
|
1624
|
+
feed_view: { type: 'FeedViewResponse', isSingle: true },
|
|
1625
|
+
};
|
|
1626
|
+
return decode(typeMappings, input);
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
decoders.CreateFeedsBatchResponse = (input?: Record<string, any>) => {
|
|
1630
|
+
const typeMappings: TypeMapping = {
|
|
1631
|
+
feeds: { type: 'FeedResponse', isSingle: false },
|
|
1632
|
+
};
|
|
1633
|
+
return decode(typeMappings, input);
|
|
1634
|
+
};
|
|
1635
|
+
|
|
1636
|
+
decoders.CreateGuestResponse = (input?: Record<string, any>) => {
|
|
1637
|
+
const typeMappings: TypeMapping = {
|
|
1638
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1639
|
+
};
|
|
1640
|
+
return decode(typeMappings, input);
|
|
1641
|
+
};
|
|
1642
|
+
|
|
1643
|
+
decoders.CreateImportResponse = (input?: Record<string, any>) => {
|
|
1644
|
+
const typeMappings: TypeMapping = {
|
|
1645
|
+
import_task: { type: 'ImportTask', isSingle: true },
|
|
1646
|
+
};
|
|
1647
|
+
return decode(typeMappings, input);
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
decoders.CreateRoleResponse = (input?: Record<string, any>) => {
|
|
1651
|
+
const typeMappings: TypeMapping = {
|
|
1652
|
+
role: { type: 'Role', isSingle: true },
|
|
1653
|
+
};
|
|
1654
|
+
return decode(typeMappings, input);
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
decoders.CustomCheckResponse = (input?: Record<string, any>) => {
|
|
1658
|
+
const typeMappings: TypeMapping = {
|
|
1659
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1660
|
+
};
|
|
1661
|
+
return decode(typeMappings, input);
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
decoders.CustomVideoEvent = (input?: Record<string, any>) => {
|
|
1665
|
+
const typeMappings: TypeMapping = {
|
|
1666
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1667
|
+
|
|
1668
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1669
|
+
};
|
|
1670
|
+
return decode(typeMappings, input);
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
decoders.DeactivateUserResponse = (input?: Record<string, any>) => {
|
|
1674
|
+
const typeMappings: TypeMapping = {
|
|
1675
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1676
|
+
};
|
|
1677
|
+
return decode(typeMappings, input);
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
decoders.DeleteActivityReactionResponse = (input?: Record<string, any>) => {
|
|
1681
|
+
const typeMappings: TypeMapping = {
|
|
1682
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
1683
|
+
|
|
1684
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
1685
|
+
};
|
|
1686
|
+
return decode(typeMappings, input);
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
decoders.DeleteBookmarkResponse = (input?: Record<string, any>) => {
|
|
1690
|
+
const typeMappings: TypeMapping = {
|
|
1691
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
1692
|
+
};
|
|
1693
|
+
return decode(typeMappings, input);
|
|
1694
|
+
};
|
|
1695
|
+
|
|
1696
|
+
decoders.DeleteCallResponse = (input?: Record<string, any>) => {
|
|
1697
|
+
const typeMappings: TypeMapping = {
|
|
1698
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
1699
|
+
};
|
|
1700
|
+
return decode(typeMappings, input);
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
decoders.DeleteChannelResponse = (input?: Record<string, any>) => {
|
|
1704
|
+
const typeMappings: TypeMapping = {
|
|
1705
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1706
|
+
};
|
|
1707
|
+
return decode(typeMappings, input);
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
decoders.DeleteCommentReactionResponse = (input?: Record<string, any>) => {
|
|
1711
|
+
const typeMappings: TypeMapping = {
|
|
1712
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1713
|
+
|
|
1714
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
1715
|
+
};
|
|
1716
|
+
return decode(typeMappings, input);
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
decoders.DeleteMessageResponse = (input?: Record<string, any>) => {
|
|
1720
|
+
const typeMappings: TypeMapping = {
|
|
1721
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1722
|
+
};
|
|
1723
|
+
return decode(typeMappings, input);
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
decoders.DeleteReactionResponse = (input?: Record<string, any>) => {
|
|
1727
|
+
const typeMappings: TypeMapping = {
|
|
1728
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1729
|
+
|
|
1730
|
+
reaction: { type: 'ReactionResponse', isSingle: true },
|
|
1731
|
+
};
|
|
1732
|
+
return decode(typeMappings, input);
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
decoders.Device = (input?: Record<string, any>) => {
|
|
1736
|
+
const typeMappings: TypeMapping = {
|
|
1737
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1738
|
+
};
|
|
1739
|
+
return decode(typeMappings, input);
|
|
1740
|
+
};
|
|
1741
|
+
|
|
1742
|
+
decoders.DeviceResponse = (input?: Record<string, any>) => {
|
|
1743
|
+
const typeMappings: TypeMapping = {
|
|
1744
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1745
|
+
};
|
|
1746
|
+
return decode(typeMappings, input);
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1749
|
+
decoders.DraftPayloadResponse = (input?: Record<string, any>) => {
|
|
1750
|
+
const typeMappings: TypeMapping = {
|
|
1751
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
1752
|
+
};
|
|
1753
|
+
return decode(typeMappings, input);
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
decoders.DraftResponse = (input?: Record<string, any>) => {
|
|
1757
|
+
const typeMappings: TypeMapping = {
|
|
1758
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1759
|
+
|
|
1760
|
+
message: { type: 'DraftPayloadResponse', isSingle: true },
|
|
1761
|
+
|
|
1762
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1763
|
+
|
|
1764
|
+
parent_message: { type: 'MessageResponse', isSingle: true },
|
|
1765
|
+
|
|
1766
|
+
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
1767
|
+
};
|
|
1768
|
+
return decode(typeMappings, input);
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
1772
|
+
const typeMappings: TypeMapping = {
|
|
1773
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
1774
|
+
};
|
|
1775
|
+
return decode(typeMappings, input);
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1778
|
+
decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
1779
|
+
const typeMappings: TypeMapping = {
|
|
1780
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1781
|
+
|
|
1782
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1783
|
+
|
|
1784
|
+
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1785
|
+
|
|
1786
|
+
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
1787
|
+
|
|
1788
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1789
|
+
|
|
1790
|
+
last_active: { type: 'DatetimeType', isSingle: true },
|
|
1791
|
+
|
|
1792
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
1793
|
+
|
|
1794
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
1795
|
+
|
|
1796
|
+
push_notifications: {
|
|
1797
|
+
type: 'PushNotificationSettingsResponse',
|
|
1798
|
+
isSingle: true,
|
|
1799
|
+
},
|
|
1800
|
+
};
|
|
1801
|
+
return decode(typeMappings, input);
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1804
|
+
decoders.EventHook = (input?: Record<string, any>) => {
|
|
1805
|
+
const typeMappings: TypeMapping = {
|
|
1806
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1807
|
+
|
|
1808
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
686
1809
|
};
|
|
687
1810
|
return decode(typeMappings, input);
|
|
688
1811
|
};
|
|
689
1812
|
|
|
690
|
-
decoders.
|
|
1813
|
+
decoders.EventResponse = (input?: Record<string, any>) => {
|
|
691
1814
|
const typeMappings: TypeMapping = {
|
|
692
|
-
|
|
1815
|
+
event: { type: 'WSEvent', isSingle: true },
|
|
693
1816
|
};
|
|
694
1817
|
return decode(typeMappings, input);
|
|
695
1818
|
};
|
|
696
1819
|
|
|
697
|
-
decoders.
|
|
1820
|
+
decoders.ExportUserResponse = (input?: Record<string, any>) => {
|
|
698
1821
|
const typeMappings: TypeMapping = {
|
|
1822
|
+
messages: { type: 'MessageResponse', isSingle: false },
|
|
1823
|
+
|
|
1824
|
+
reactions: { type: 'ReactionResponse', isSingle: false },
|
|
1825
|
+
|
|
699
1826
|
user: { type: 'UserResponse', isSingle: true },
|
|
700
1827
|
};
|
|
701
1828
|
return decode(typeMappings, input);
|
|
702
1829
|
};
|
|
703
1830
|
|
|
704
|
-
decoders.
|
|
1831
|
+
decoders.FeedCreatedEvent = (input?: Record<string, any>) => {
|
|
705
1832
|
const typeMappings: TypeMapping = {
|
|
706
|
-
|
|
1833
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1834
|
+
|
|
1835
|
+
members: { type: 'FeedMemberResponse', isSingle: false },
|
|
1836
|
+
|
|
1837
|
+
feed: { type: 'FeedResponse', isSingle: true },
|
|
1838
|
+
|
|
1839
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1840
|
+
|
|
1841
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
707
1842
|
};
|
|
708
1843
|
return decode(typeMappings, input);
|
|
709
1844
|
};
|
|
710
1845
|
|
|
711
|
-
decoders.
|
|
1846
|
+
decoders.FeedDeletedEvent = (input?: Record<string, any>) => {
|
|
712
1847
|
const typeMappings: TypeMapping = {
|
|
713
|
-
|
|
1848
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1849
|
+
|
|
1850
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1851
|
+
|
|
1852
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
714
1853
|
};
|
|
715
1854
|
return decode(typeMappings, input);
|
|
716
1855
|
};
|
|
717
1856
|
|
|
718
|
-
decoders.
|
|
1857
|
+
decoders.FeedGroupChangedEvent = (input?: Record<string, any>) => {
|
|
719
1858
|
const typeMappings: TypeMapping = {
|
|
720
|
-
|
|
1859
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1860
|
+
|
|
1861
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1862
|
+
|
|
1863
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
721
1864
|
};
|
|
722
1865
|
return decode(typeMappings, input);
|
|
723
1866
|
};
|
|
724
1867
|
|
|
725
|
-
decoders.
|
|
1868
|
+
decoders.FeedGroupDeletedEvent = (input?: Record<string, any>) => {
|
|
726
1869
|
const typeMappings: TypeMapping = {
|
|
727
|
-
|
|
1870
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
728
1871
|
|
|
729
|
-
|
|
1872
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
730
1873
|
};
|
|
731
1874
|
return decode(typeMappings, input);
|
|
732
1875
|
};
|
|
733
1876
|
|
|
734
|
-
decoders.
|
|
1877
|
+
decoders.FeedGroupResponse = (input?: Record<string, any>) => {
|
|
735
1878
|
const typeMappings: TypeMapping = {
|
|
736
1879
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1880
|
+
|
|
1881
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
737
1882
|
};
|
|
738
1883
|
return decode(typeMappings, input);
|
|
739
1884
|
};
|
|
740
1885
|
|
|
741
|
-
decoders.
|
|
1886
|
+
decoders.FeedMemberAddedEvent = (input?: Record<string, any>) => {
|
|
742
1887
|
const typeMappings: TypeMapping = {
|
|
743
1888
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1889
|
+
|
|
1890
|
+
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
1891
|
+
|
|
1892
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1893
|
+
|
|
1894
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
744
1895
|
};
|
|
745
1896
|
return decode(typeMappings, input);
|
|
746
1897
|
};
|
|
747
1898
|
|
|
748
|
-
decoders.
|
|
1899
|
+
decoders.FeedMemberRemovedEvent = (input?: Record<string, any>) => {
|
|
749
1900
|
const typeMappings: TypeMapping = {
|
|
750
|
-
|
|
1901
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1902
|
+
|
|
1903
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1904
|
+
|
|
1905
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
751
1906
|
};
|
|
752
1907
|
return decode(typeMappings, input);
|
|
753
1908
|
};
|
|
754
1909
|
|
|
755
|
-
decoders.
|
|
1910
|
+
decoders.FeedMemberResponse = (input?: Record<string, any>) => {
|
|
756
1911
|
const typeMappings: TypeMapping = {
|
|
757
1912
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
758
1913
|
|
|
759
|
-
|
|
1914
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
760
1915
|
|
|
761
|
-
|
|
1916
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
762
1917
|
|
|
763
|
-
|
|
1918
|
+
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
764
1919
|
|
|
765
|
-
|
|
1920
|
+
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
766
1921
|
};
|
|
767
1922
|
return decode(typeMappings, input);
|
|
768
1923
|
};
|
|
769
1924
|
|
|
770
|
-
decoders.
|
|
1925
|
+
decoders.FeedMemberUpdatedEvent = (input?: Record<string, any>) => {
|
|
771
1926
|
const typeMappings: TypeMapping = {
|
|
772
|
-
|
|
1927
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1928
|
+
|
|
1929
|
+
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
1930
|
+
|
|
1931
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1932
|
+
|
|
1933
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
773
1934
|
};
|
|
774
1935
|
return decode(typeMappings, input);
|
|
775
1936
|
};
|
|
776
1937
|
|
|
777
|
-
decoders.
|
|
1938
|
+
decoders.FeedResponse = (input?: Record<string, any>) => {
|
|
778
1939
|
const typeMappings: TypeMapping = {
|
|
779
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
780
|
-
|
|
781
1940
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
782
1941
|
|
|
783
|
-
|
|
1942
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1943
|
+
|
|
1944
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
784
1945
|
|
|
785
1946
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1947
|
+
};
|
|
1948
|
+
return decode(typeMappings, input);
|
|
1949
|
+
};
|
|
786
1950
|
|
|
787
|
-
|
|
1951
|
+
decoders.FeedUpdatedEvent = (input?: Record<string, any>) => {
|
|
1952
|
+
const typeMappings: TypeMapping = {
|
|
1953
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
788
1954
|
|
|
789
|
-
|
|
1955
|
+
feed: { type: 'FeedResponse', isSingle: true },
|
|
790
1956
|
|
|
791
|
-
|
|
1957
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
792
1958
|
|
|
793
|
-
|
|
1959
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
794
1960
|
};
|
|
795
1961
|
return decode(typeMappings, input);
|
|
796
1962
|
};
|
|
797
1963
|
|
|
798
|
-
decoders.
|
|
1964
|
+
decoders.FeedViewResponse = (input?: Record<string, any>) => {
|
|
799
1965
|
const typeMappings: TypeMapping = {
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
803
|
-
|
|
804
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1966
|
+
last_used_at: { type: 'DatetimeType', isSingle: true },
|
|
805
1967
|
|
|
806
|
-
|
|
1968
|
+
activity_selectors: { type: 'ActivitySelectorConfig', isSingle: false },
|
|
1969
|
+
};
|
|
1970
|
+
return decode(typeMappings, input);
|
|
1971
|
+
};
|
|
807
1972
|
|
|
808
|
-
|
|
1973
|
+
decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
|
|
1974
|
+
const typeMappings: TypeMapping = {
|
|
1975
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
809
1976
|
|
|
810
|
-
|
|
1977
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
811
1978
|
|
|
812
|
-
|
|
1979
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1980
|
+
};
|
|
1981
|
+
return decode(typeMappings, input);
|
|
1982
|
+
};
|
|
813
1983
|
|
|
814
|
-
|
|
1984
|
+
decoders.FlagDetails = (input?: Record<string, any>) => {
|
|
1985
|
+
const typeMappings: TypeMapping = {
|
|
1986
|
+
automod: { type: 'AutomodDetails', isSingle: true },
|
|
1987
|
+
};
|
|
1988
|
+
return decode(typeMappings, input);
|
|
1989
|
+
};
|
|
815
1990
|
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
},
|
|
1991
|
+
decoders.FlagFeedback = (input?: Record<string, any>) => {
|
|
1992
|
+
const typeMappings: TypeMapping = {
|
|
1993
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
820
1994
|
};
|
|
821
1995
|
return decode(typeMappings, input);
|
|
822
1996
|
};
|
|
823
1997
|
|
|
824
|
-
decoders.
|
|
1998
|
+
decoders.FlagUpdatedEvent = (input?: Record<string, any>) => {
|
|
825
1999
|
const typeMappings: TypeMapping = {
|
|
826
2000
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
827
2001
|
|
|
828
|
-
|
|
2002
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
2003
|
+
|
|
2004
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
2005
|
+
|
|
2006
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
2007
|
+
|
|
2008
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
829
2009
|
};
|
|
830
2010
|
return decode(typeMappings, input);
|
|
831
2011
|
};
|
|
832
2012
|
|
|
833
|
-
decoders.
|
|
2013
|
+
decoders.FollowBatchResponse = (input?: Record<string, any>) => {
|
|
834
2014
|
const typeMappings: TypeMapping = {
|
|
835
|
-
|
|
2015
|
+
follows: { type: 'FollowResponse', isSingle: false },
|
|
836
2016
|
};
|
|
837
2017
|
return decode(typeMappings, input);
|
|
838
2018
|
};
|
|
839
2019
|
|
|
840
|
-
decoders.
|
|
2020
|
+
decoders.FollowCreatedEvent = (input?: Record<string, any>) => {
|
|
841
2021
|
const typeMappings: TypeMapping = {
|
|
842
|
-
|
|
2022
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
843
2023
|
|
|
844
|
-
|
|
2024
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
845
2025
|
|
|
846
|
-
|
|
2026
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
847
2027
|
};
|
|
848
2028
|
return decode(typeMappings, input);
|
|
849
2029
|
};
|
|
850
2030
|
|
|
851
|
-
decoders.
|
|
2031
|
+
decoders.FollowDeletedEvent = (input?: Record<string, any>) => {
|
|
852
2032
|
const typeMappings: TypeMapping = {
|
|
853
2033
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
854
2034
|
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
review_queue_item: { type: 'ReviewQueueItem', isSingle: true },
|
|
2035
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
858
2036
|
|
|
859
|
-
|
|
2037
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
860
2038
|
};
|
|
861
2039
|
return decode(typeMappings, input);
|
|
862
2040
|
};
|
|
863
2041
|
|
|
864
|
-
decoders.
|
|
2042
|
+
decoders.FollowResponse = (input?: Record<string, any>) => {
|
|
865
2043
|
const typeMappings: TypeMapping = {
|
|
866
|
-
|
|
2044
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2045
|
+
|
|
2046
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2047
|
+
|
|
2048
|
+
source_feed: { type: 'FeedResponse', isSingle: true },
|
|
2049
|
+
|
|
2050
|
+
target_feed: { type: 'FeedResponse', isSingle: true },
|
|
2051
|
+
|
|
2052
|
+
request_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
2053
|
+
|
|
2054
|
+
request_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
867
2055
|
};
|
|
868
2056
|
return decode(typeMappings, input);
|
|
869
2057
|
};
|
|
870
2058
|
|
|
871
|
-
decoders.
|
|
2059
|
+
decoders.FollowUpdatedEvent = (input?: Record<string, any>) => {
|
|
872
2060
|
const typeMappings: TypeMapping = {
|
|
873
2061
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2062
|
+
|
|
2063
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
2064
|
+
|
|
2065
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
874
2066
|
};
|
|
875
2067
|
return decode(typeMappings, input);
|
|
876
2068
|
};
|
|
@@ -900,6 +2092,22 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
|
|
|
900
2092
|
return decode(typeMappings, input);
|
|
901
2093
|
};
|
|
902
2094
|
|
|
2095
|
+
decoders.GetActiveCallsStatusResponse = (input?: Record<string, any>) => {
|
|
2096
|
+
const typeMappings: TypeMapping = {
|
|
2097
|
+
end_time: { type: 'DatetimeType', isSingle: true },
|
|
2098
|
+
|
|
2099
|
+
start_time: { type: 'DatetimeType', isSingle: true },
|
|
2100
|
+
};
|
|
2101
|
+
return decode(typeMappings, input);
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
decoders.GetActivityResponse = (input?: Record<string, any>) => {
|
|
2105
|
+
const typeMappings: TypeMapping = {
|
|
2106
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
2107
|
+
};
|
|
2108
|
+
return decode(typeMappings, input);
|
|
2109
|
+
};
|
|
2110
|
+
|
|
903
2111
|
decoders.GetApplicationResponse = (input?: Record<string, any>) => {
|
|
904
2112
|
const typeMappings: TypeMapping = {
|
|
905
2113
|
app: { type: 'AppResponseFields', isSingle: true },
|
|
@@ -968,6 +2176,27 @@ decoders.GetCommandResponse = (input?: Record<string, any>) => {
|
|
|
968
2176
|
return decode(typeMappings, input);
|
|
969
2177
|
};
|
|
970
2178
|
|
|
2179
|
+
decoders.GetCommentRepliesResponse = (input?: Record<string, any>) => {
|
|
2180
|
+
const typeMappings: TypeMapping = {
|
|
2181
|
+
comments: { type: 'ThreadedCommentResponse', isSingle: false },
|
|
2182
|
+
};
|
|
2183
|
+
return decode(typeMappings, input);
|
|
2184
|
+
};
|
|
2185
|
+
|
|
2186
|
+
decoders.GetCommentResponse = (input?: Record<string, any>) => {
|
|
2187
|
+
const typeMappings: TypeMapping = {
|
|
2188
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
2189
|
+
};
|
|
2190
|
+
return decode(typeMappings, input);
|
|
2191
|
+
};
|
|
2192
|
+
|
|
2193
|
+
decoders.GetCommentsResponse = (input?: Record<string, any>) => {
|
|
2194
|
+
const typeMappings: TypeMapping = {
|
|
2195
|
+
comments: { type: 'ThreadedCommentResponse', isSingle: false },
|
|
2196
|
+
};
|
|
2197
|
+
return decode(typeMappings, input);
|
|
2198
|
+
};
|
|
2199
|
+
|
|
971
2200
|
decoders.GetConfigResponse = (input?: Record<string, any>) => {
|
|
972
2201
|
const typeMappings: TypeMapping = {
|
|
973
2202
|
config: { type: 'ConfigResponse', isSingle: true },
|
|
@@ -982,6 +2211,27 @@ decoders.GetDraftResponse = (input?: Record<string, any>) => {
|
|
|
982
2211
|
return decode(typeMappings, input);
|
|
983
2212
|
};
|
|
984
2213
|
|
|
2214
|
+
decoders.GetFeedGroupResponse = (input?: Record<string, any>) => {
|
|
2215
|
+
const typeMappings: TypeMapping = {
|
|
2216
|
+
feed_group: { type: 'FeedGroupResponse', isSingle: true },
|
|
2217
|
+
};
|
|
2218
|
+
return decode(typeMappings, input);
|
|
2219
|
+
};
|
|
2220
|
+
|
|
2221
|
+
decoders.GetFeedViewResponse = (input?: Record<string, any>) => {
|
|
2222
|
+
const typeMappings: TypeMapping = {
|
|
2223
|
+
feed_view: { type: 'FeedViewResponse', isSingle: true },
|
|
2224
|
+
};
|
|
2225
|
+
return decode(typeMappings, input);
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
decoders.GetFollowSuggestionsResponse = (input?: Record<string, any>) => {
|
|
2229
|
+
const typeMappings: TypeMapping = {
|
|
2230
|
+
suggestions: { type: 'FeedResponse', isSingle: false },
|
|
2231
|
+
};
|
|
2232
|
+
return decode(typeMappings, input);
|
|
2233
|
+
};
|
|
2234
|
+
|
|
985
2235
|
decoders.GetImportResponse = (input?: Record<string, any>) => {
|
|
986
2236
|
const typeMappings: TypeMapping = {
|
|
987
2237
|
import_task: { type: 'ImportTask', isSingle: true },
|
|
@@ -1012,6 +2262,34 @@ decoders.GetOrCreateCallResponse = (input?: Record<string, any>) => {
|
|
|
1012
2262
|
return decode(typeMappings, input);
|
|
1013
2263
|
};
|
|
1014
2264
|
|
|
2265
|
+
decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
|
|
2266
|
+
const typeMappings: TypeMapping = {
|
|
2267
|
+
activities: { type: 'ActivityResponse', isSingle: false },
|
|
2268
|
+
|
|
2269
|
+
aggregated_activities: {
|
|
2270
|
+
type: 'AggregatedActivityResponse',
|
|
2271
|
+
isSingle: false,
|
|
2272
|
+
},
|
|
2273
|
+
|
|
2274
|
+
followers: { type: 'FollowResponse', isSingle: false },
|
|
2275
|
+
|
|
2276
|
+
following: { type: 'FollowResponse', isSingle: false },
|
|
2277
|
+
|
|
2278
|
+
members: { type: 'FeedMemberResponse', isSingle: false },
|
|
2279
|
+
|
|
2280
|
+
pinned_activities: { type: 'ActivityPinResponse', isSingle: false },
|
|
2281
|
+
|
|
2282
|
+
feed: { type: 'FeedResponse', isSingle: true },
|
|
2283
|
+
|
|
2284
|
+
own_follows: { type: 'FollowResponse', isSingle: false },
|
|
2285
|
+
|
|
2286
|
+
notification_status: { type: 'NotificationStatusResponse', isSingle: true },
|
|
2287
|
+
|
|
2288
|
+
own_membership: { type: 'FeedMemberResponse', isSingle: true },
|
|
2289
|
+
};
|
|
2290
|
+
return decode(typeMappings, input);
|
|
2291
|
+
};
|
|
2292
|
+
|
|
1015
2293
|
decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
|
|
1016
2294
|
const typeMappings: TypeMapping = {
|
|
1017
2295
|
templates: { type: 'PushTemplate', isSingle: false },
|
|
@@ -1123,6 +2401,20 @@ decoders.ListDevicesResponse = (input?: Record<string, any>) => {
|
|
|
1123
2401
|
return decode(typeMappings, input);
|
|
1124
2402
|
};
|
|
1125
2403
|
|
|
2404
|
+
decoders.ListFeedGroupsResponse = (input?: Record<string, any>) => {
|
|
2405
|
+
const typeMappings: TypeMapping = {
|
|
2406
|
+
groups: { type: 'FeedGroupResponse', isSingle: false },
|
|
2407
|
+
};
|
|
2408
|
+
return decode(typeMappings, input);
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
decoders.ListFeedViewsResponse = (input?: Record<string, any>) => {
|
|
2412
|
+
const typeMappings: TypeMapping = {
|
|
2413
|
+
views: { type: 'FeedViewResponse', isSingle: false },
|
|
2414
|
+
};
|
|
2415
|
+
return decode(typeMappings, input);
|
|
2416
|
+
};
|
|
2417
|
+
|
|
1126
2418
|
decoders.ListImportsResponse = (input?: Record<string, any>) => {
|
|
1127
2419
|
const typeMappings: TypeMapping = {
|
|
1128
2420
|
import_tasks: { type: 'ImportTask', isSingle: false },
|
|
@@ -1165,6 +2457,28 @@ decoders.MarkReadResponse = (input?: Record<string, any>) => {
|
|
|
1165
2457
|
return decode(typeMappings, input);
|
|
1166
2458
|
};
|
|
1167
2459
|
|
|
2460
|
+
decoders.MemberAddedEvent = (input?: Record<string, any>) => {
|
|
2461
|
+
const typeMappings: TypeMapping = {
|
|
2462
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2463
|
+
|
|
2464
|
+
member: { type: 'ChannelMember', isSingle: true },
|
|
2465
|
+
|
|
2466
|
+
user: { type: 'User', isSingle: true },
|
|
2467
|
+
};
|
|
2468
|
+
return decode(typeMappings, input);
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2471
|
+
decoders.MemberRemovedEvent = (input?: Record<string, any>) => {
|
|
2472
|
+
const typeMappings: TypeMapping = {
|
|
2473
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2474
|
+
|
|
2475
|
+
member: { type: 'ChannelMember', isSingle: true },
|
|
2476
|
+
|
|
2477
|
+
user: { type: 'User', isSingle: true },
|
|
2478
|
+
};
|
|
2479
|
+
return decode(typeMappings, input);
|
|
2480
|
+
};
|
|
2481
|
+
|
|
1168
2482
|
decoders.MemberResponse = (input?: Record<string, any>) => {
|
|
1169
2483
|
const typeMappings: TypeMapping = {
|
|
1170
2484
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1178,6 +2492,17 @@ decoders.MemberResponse = (input?: Record<string, any>) => {
|
|
|
1178
2492
|
return decode(typeMappings, input);
|
|
1179
2493
|
};
|
|
1180
2494
|
|
|
2495
|
+
decoders.MemberUpdatedEvent = (input?: Record<string, any>) => {
|
|
2496
|
+
const typeMappings: TypeMapping = {
|
|
2497
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2498
|
+
|
|
2499
|
+
member: { type: 'ChannelMember', isSingle: true },
|
|
2500
|
+
|
|
2501
|
+
user: { type: 'User', isSingle: true },
|
|
2502
|
+
};
|
|
2503
|
+
return decode(typeMappings, input);
|
|
2504
|
+
};
|
|
2505
|
+
|
|
1181
2506
|
decoders.MembersResponse = (input?: Record<string, any>) => {
|
|
1182
2507
|
const typeMappings: TypeMapping = {
|
|
1183
2508
|
members: { type: 'ChannelMember', isSingle: false },
|
|
@@ -1211,11 +2536,26 @@ decoders.Message = (input?: Record<string, any>) => {
|
|
|
1211
2536
|
|
|
1212
2537
|
pinned_by: { type: 'User', isSingle: true },
|
|
1213
2538
|
|
|
1214
|
-
poll: { type: 'Poll', isSingle: true },
|
|
2539
|
+
poll: { type: 'Poll', isSingle: true },
|
|
2540
|
+
|
|
2541
|
+
quoted_message: { type: 'Message', isSingle: true },
|
|
2542
|
+
|
|
2543
|
+
reminder: { type: 'MessageReminder', isSingle: true },
|
|
2544
|
+
|
|
2545
|
+
shared_location: { type: 'SharedLocation', isSingle: true },
|
|
2546
|
+
|
|
2547
|
+
user: { type: 'User', isSingle: true },
|
|
2548
|
+
};
|
|
2549
|
+
return decode(typeMappings, input);
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
decoders.MessageDeletedEvent = (input?: Record<string, any>) => {
|
|
2553
|
+
const typeMappings: TypeMapping = {
|
|
2554
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1215
2555
|
|
|
1216
|
-
|
|
2556
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
1217
2557
|
|
|
1218
|
-
|
|
2558
|
+
message: { type: 'Message', isSingle: true },
|
|
1219
2559
|
|
|
1220
2560
|
user: { type: 'User', isSingle: true },
|
|
1221
2561
|
};
|
|
@@ -1249,6 +2589,19 @@ decoders.MessageFlagResponse = (input?: Record<string, any>) => {
|
|
|
1249
2589
|
return decode(typeMappings, input);
|
|
1250
2590
|
};
|
|
1251
2591
|
|
|
2592
|
+
decoders.MessageFlaggedEvent = (input?: Record<string, any>) => {
|
|
2593
|
+
const typeMappings: TypeMapping = {
|
|
2594
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2595
|
+
|
|
2596
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
2597
|
+
|
|
2598
|
+
message: { type: 'Message', isSingle: true },
|
|
2599
|
+
|
|
2600
|
+
user: { type: 'User', isSingle: true },
|
|
2601
|
+
};
|
|
2602
|
+
return decode(typeMappings, input);
|
|
2603
|
+
};
|
|
2604
|
+
|
|
1252
2605
|
decoders.MessageHistoryEntryResponse = (input?: Record<string, any>) => {
|
|
1253
2606
|
const typeMappings: TypeMapping = {
|
|
1254
2607
|
message_updated_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1265,6 +2618,19 @@ decoders.MessageModerationResult = (input?: Record<string, any>) => {
|
|
|
1265
2618
|
return decode(typeMappings, input);
|
|
1266
2619
|
};
|
|
1267
2620
|
|
|
2621
|
+
decoders.MessageNewEvent = (input?: Record<string, any>) => {
|
|
2622
|
+
const typeMappings: TypeMapping = {
|
|
2623
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2624
|
+
|
|
2625
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
2626
|
+
|
|
2627
|
+
message: { type: 'Message', isSingle: true },
|
|
2628
|
+
|
|
2629
|
+
user: { type: 'User', isSingle: true },
|
|
2630
|
+
};
|
|
2631
|
+
return decode(typeMappings, input);
|
|
2632
|
+
};
|
|
2633
|
+
|
|
1268
2634
|
decoders.MessageReadEvent = (input?: Record<string, any>) => {
|
|
1269
2635
|
const typeMappings: TypeMapping = {
|
|
1270
2636
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1330,6 +2696,8 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
|
|
|
1330
2696
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1331
2697
|
|
|
1332
2698
|
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
2699
|
+
|
|
2700
|
+
shared_location: { type: 'SharedLocationResponseData', isSingle: true },
|
|
1333
2701
|
};
|
|
1334
2702
|
return decode(typeMappings, input);
|
|
1335
2703
|
};
|
|
@@ -1341,6 +2709,45 @@ decoders.MessageStatsResponse = (input?: Record<string, any>) => {
|
|
|
1341
2709
|
return decode(typeMappings, input);
|
|
1342
2710
|
};
|
|
1343
2711
|
|
|
2712
|
+
decoders.MessageUnblockedEvent = (input?: Record<string, any>) => {
|
|
2713
|
+
const typeMappings: TypeMapping = {
|
|
2714
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2715
|
+
|
|
2716
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
2717
|
+
|
|
2718
|
+
message: { type: 'Message', isSingle: true },
|
|
2719
|
+
|
|
2720
|
+
user: { type: 'User', isSingle: true },
|
|
2721
|
+
};
|
|
2722
|
+
return decode(typeMappings, input);
|
|
2723
|
+
};
|
|
2724
|
+
|
|
2725
|
+
decoders.MessageUndeletedEvent = (input?: Record<string, any>) => {
|
|
2726
|
+
const typeMappings: TypeMapping = {
|
|
2727
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2728
|
+
|
|
2729
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
2730
|
+
|
|
2731
|
+
message: { type: 'Message', isSingle: true },
|
|
2732
|
+
|
|
2733
|
+
user: { type: 'User', isSingle: true },
|
|
2734
|
+
};
|
|
2735
|
+
return decode(typeMappings, input);
|
|
2736
|
+
};
|
|
2737
|
+
|
|
2738
|
+
decoders.MessageUpdatedEvent = (input?: Record<string, any>) => {
|
|
2739
|
+
const typeMappings: TypeMapping = {
|
|
2740
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2741
|
+
|
|
2742
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
2743
|
+
|
|
2744
|
+
message: { type: 'Message', isSingle: true },
|
|
2745
|
+
|
|
2746
|
+
user: { type: 'User', isSingle: true },
|
|
2747
|
+
};
|
|
2748
|
+
return decode(typeMappings, input);
|
|
2749
|
+
};
|
|
2750
|
+
|
|
1344
2751
|
decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
1345
2752
|
const typeMappings: TypeMapping = {
|
|
1346
2753
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1378,19 +2785,61 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
1378
2785
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1379
2786
|
|
|
1380
2787
|
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
2788
|
+
|
|
2789
|
+
shared_location: { type: 'SharedLocationResponseData', isSingle: true },
|
|
2790
|
+
};
|
|
2791
|
+
return decode(typeMappings, input);
|
|
2792
|
+
};
|
|
2793
|
+
|
|
2794
|
+
decoders.ModerationCheckCompletedEvent = (input?: Record<string, any>) => {
|
|
2795
|
+
const typeMappings: TypeMapping = {
|
|
2796
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2797
|
+
|
|
2798
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
2799
|
+
};
|
|
2800
|
+
return decode(typeMappings, input);
|
|
2801
|
+
};
|
|
2802
|
+
|
|
2803
|
+
decoders.ModerationCustomActionEvent = (input?: Record<string, any>) => {
|
|
2804
|
+
const typeMappings: TypeMapping = {
|
|
2805
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2806
|
+
|
|
2807
|
+
message: { type: 'Message', isSingle: true },
|
|
2808
|
+
|
|
2809
|
+
user: { type: 'User', isSingle: true },
|
|
1381
2810
|
};
|
|
1382
2811
|
return decode(typeMappings, input);
|
|
1383
2812
|
};
|
|
1384
2813
|
|
|
1385
2814
|
decoders.ModerationFlagResponse = (input?: Record<string, any>) => {
|
|
1386
2815
|
const typeMappings: TypeMapping = {
|
|
1387
|
-
review_queue_item: { type: '
|
|
2816
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1388
2817
|
|
|
1389
2818
|
user: { type: 'UserResponse', isSingle: true },
|
|
1390
2819
|
};
|
|
1391
2820
|
return decode(typeMappings, input);
|
|
1392
2821
|
};
|
|
1393
2822
|
|
|
2823
|
+
decoders.ModerationFlaggedEvent = (input?: Record<string, any>) => {
|
|
2824
|
+
const typeMappings: TypeMapping = {
|
|
2825
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2826
|
+
|
|
2827
|
+
user: { type: 'User', isSingle: true },
|
|
2828
|
+
};
|
|
2829
|
+
return decode(typeMappings, input);
|
|
2830
|
+
};
|
|
2831
|
+
|
|
2832
|
+
decoders.ModerationMarkReviewedEvent = (input?: Record<string, any>) => {
|
|
2833
|
+
const typeMappings: TypeMapping = {
|
|
2834
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2835
|
+
|
|
2836
|
+
message: { type: 'Message', isSingle: true },
|
|
2837
|
+
|
|
2838
|
+
user: { type: 'User', isSingle: true },
|
|
2839
|
+
};
|
|
2840
|
+
return decode(typeMappings, input);
|
|
2841
|
+
};
|
|
2842
|
+
|
|
1394
2843
|
decoders.MuteChannelResponse = (input?: Record<string, any>) => {
|
|
1395
2844
|
const typeMappings: TypeMapping = {
|
|
1396
2845
|
channel_mutes: { type: 'ChannelMute', isSingle: false },
|
|
@@ -1411,6 +2860,26 @@ decoders.MuteResponse = (input?: Record<string, any>) => {
|
|
|
1411
2860
|
return decode(typeMappings, input);
|
|
1412
2861
|
};
|
|
1413
2862
|
|
|
2863
|
+
decoders.NotificationMarkUnreadEvent = (input?: Record<string, any>) => {
|
|
2864
|
+
const typeMappings: TypeMapping = {
|
|
2865
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2866
|
+
|
|
2867
|
+
last_read_at: { type: 'DatetimeType', isSingle: true },
|
|
2868
|
+
|
|
2869
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
2870
|
+
|
|
2871
|
+
user: { type: 'User', isSingle: true },
|
|
2872
|
+
};
|
|
2873
|
+
return decode(typeMappings, input);
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
decoders.NotificationStatusResponse = (input?: Record<string, any>) => {
|
|
2877
|
+
const typeMappings: TypeMapping = {
|
|
2878
|
+
last_seen_at: { type: 'DatetimeType', isSingle: true },
|
|
2879
|
+
};
|
|
2880
|
+
return decode(typeMappings, input);
|
|
2881
|
+
};
|
|
2882
|
+
|
|
1414
2883
|
decoders.OwnUser = (input?: Record<string, any>) => {
|
|
1415
2884
|
const typeMappings: TypeMapping = {
|
|
1416
2885
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1475,6 +2944,21 @@ decoders.ParticipantCountOverTimeResponse = (input?: Record<string, any>) => {
|
|
|
1475
2944
|
return decode(typeMappings, input);
|
|
1476
2945
|
};
|
|
1477
2946
|
|
|
2947
|
+
decoders.PendingMessageEvent = (input?: Record<string, any>) => {
|
|
2948
|
+
const typeMappings: TypeMapping = {
|
|
2949
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2950
|
+
|
|
2951
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
2952
|
+
|
|
2953
|
+
channel: { type: 'Channel', isSingle: true },
|
|
2954
|
+
|
|
2955
|
+
message: { type: 'Message', isSingle: true },
|
|
2956
|
+
|
|
2957
|
+
user: { type: 'User', isSingle: true },
|
|
2958
|
+
};
|
|
2959
|
+
return decode(typeMappings, input);
|
|
2960
|
+
};
|
|
2961
|
+
|
|
1478
2962
|
decoders.PendingMessageResponse = (input?: Record<string, any>) => {
|
|
1479
2963
|
const typeMappings: TypeMapping = {
|
|
1480
2964
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
@@ -1486,6 +2970,24 @@ decoders.PendingMessageResponse = (input?: Record<string, any>) => {
|
|
|
1486
2970
|
return decode(typeMappings, input);
|
|
1487
2971
|
};
|
|
1488
2972
|
|
|
2973
|
+
decoders.PermissionRequestEvent = (input?: Record<string, any>) => {
|
|
2974
|
+
const typeMappings: TypeMapping = {
|
|
2975
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2976
|
+
|
|
2977
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
2978
|
+
};
|
|
2979
|
+
return decode(typeMappings, input);
|
|
2980
|
+
};
|
|
2981
|
+
|
|
2982
|
+
decoders.PinActivityResponse = (input?: Record<string, any>) => {
|
|
2983
|
+
const typeMappings: TypeMapping = {
|
|
2984
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2985
|
+
|
|
2986
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
2987
|
+
};
|
|
2988
|
+
return decode(typeMappings, input);
|
|
2989
|
+
};
|
|
2990
|
+
|
|
1489
2991
|
decoders.Poll = (input?: Record<string, any>) => {
|
|
1490
2992
|
const typeMappings: TypeMapping = {
|
|
1491
2993
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1613,6 +3115,20 @@ decoders.PushTemplate = (input?: Record<string, any>) => {
|
|
|
1613
3115
|
return decode(typeMappings, input);
|
|
1614
3116
|
};
|
|
1615
3117
|
|
|
3118
|
+
decoders.QueryActivitiesResponse = (input?: Record<string, any>) => {
|
|
3119
|
+
const typeMappings: TypeMapping = {
|
|
3120
|
+
activities: { type: 'ActivityResponse', isSingle: false },
|
|
3121
|
+
};
|
|
3122
|
+
return decode(typeMappings, input);
|
|
3123
|
+
};
|
|
3124
|
+
|
|
3125
|
+
decoders.QueryActivityReactionsResponse = (input?: Record<string, any>) => {
|
|
3126
|
+
const typeMappings: TypeMapping = {
|
|
3127
|
+
reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
3128
|
+
};
|
|
3129
|
+
return decode(typeMappings, input);
|
|
3130
|
+
};
|
|
3131
|
+
|
|
1616
3132
|
decoders.QueryBannedUsersResponse = (input?: Record<string, any>) => {
|
|
1617
3133
|
const typeMappings: TypeMapping = {
|
|
1618
3134
|
bans: { type: 'BanResponse', isSingle: false },
|
|
@@ -1620,6 +3136,20 @@ decoders.QueryBannedUsersResponse = (input?: Record<string, any>) => {
|
|
|
1620
3136
|
return decode(typeMappings, input);
|
|
1621
3137
|
};
|
|
1622
3138
|
|
|
3139
|
+
decoders.QueryBookmarkFoldersResponse = (input?: Record<string, any>) => {
|
|
3140
|
+
const typeMappings: TypeMapping = {
|
|
3141
|
+
bookmark_folders: { type: 'BookmarkFolderResponse', isSingle: false },
|
|
3142
|
+
};
|
|
3143
|
+
return decode(typeMappings, input);
|
|
3144
|
+
};
|
|
3145
|
+
|
|
3146
|
+
decoders.QueryBookmarksResponse = (input?: Record<string, any>) => {
|
|
3147
|
+
const typeMappings: TypeMapping = {
|
|
3148
|
+
bookmarks: { type: 'BookmarkResponse', isSingle: false },
|
|
3149
|
+
};
|
|
3150
|
+
return decode(typeMappings, input);
|
|
3151
|
+
};
|
|
3152
|
+
|
|
1623
3153
|
decoders.QueryCallMembersResponse = (input?: Record<string, any>) => {
|
|
1624
3154
|
const typeMappings: TypeMapping = {
|
|
1625
3155
|
members: { type: 'MemberResponse', isSingle: false },
|
|
@@ -1666,6 +3196,20 @@ decoders.QueryChannelsResponse = (input?: Record<string, any>) => {
|
|
|
1666
3196
|
return decode(typeMappings, input);
|
|
1667
3197
|
};
|
|
1668
3198
|
|
|
3199
|
+
decoders.QueryCommentReactionsResponse = (input?: Record<string, any>) => {
|
|
3200
|
+
const typeMappings: TypeMapping = {
|
|
3201
|
+
reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
3202
|
+
};
|
|
3203
|
+
return decode(typeMappings, input);
|
|
3204
|
+
};
|
|
3205
|
+
|
|
3206
|
+
decoders.QueryCommentsResponse = (input?: Record<string, any>) => {
|
|
3207
|
+
const typeMappings: TypeMapping = {
|
|
3208
|
+
comments: { type: 'CommentResponse', isSingle: false },
|
|
3209
|
+
};
|
|
3210
|
+
return decode(typeMappings, input);
|
|
3211
|
+
};
|
|
3212
|
+
|
|
1669
3213
|
decoders.QueryDraftsResponse = (input?: Record<string, any>) => {
|
|
1670
3214
|
const typeMappings: TypeMapping = {
|
|
1671
3215
|
drafts: { type: 'DraftResponse', isSingle: false },
|
|
@@ -1673,6 +3217,13 @@ decoders.QueryDraftsResponse = (input?: Record<string, any>) => {
|
|
|
1673
3217
|
return decode(typeMappings, input);
|
|
1674
3218
|
};
|
|
1675
3219
|
|
|
3220
|
+
decoders.QueryFeedMembersResponse = (input?: Record<string, any>) => {
|
|
3221
|
+
const typeMappings: TypeMapping = {
|
|
3222
|
+
members: { type: 'FeedMemberResponse', isSingle: false },
|
|
3223
|
+
};
|
|
3224
|
+
return decode(typeMappings, input);
|
|
3225
|
+
};
|
|
3226
|
+
|
|
1676
3227
|
decoders.QueryFeedModerationTemplate = (input?: Record<string, any>) => {
|
|
1677
3228
|
const typeMappings: TypeMapping = {
|
|
1678
3229
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1691,6 +3242,20 @@ decoders.QueryFeedModerationTemplatesResponse = (
|
|
|
1691
3242
|
return decode(typeMappings, input);
|
|
1692
3243
|
};
|
|
1693
3244
|
|
|
3245
|
+
decoders.QueryFeedsResponse = (input?: Record<string, any>) => {
|
|
3246
|
+
const typeMappings: TypeMapping = {
|
|
3247
|
+
feeds: { type: 'FeedResponse', isSingle: false },
|
|
3248
|
+
};
|
|
3249
|
+
return decode(typeMappings, input);
|
|
3250
|
+
};
|
|
3251
|
+
|
|
3252
|
+
decoders.QueryFollowsResponse = (input?: Record<string, any>) => {
|
|
3253
|
+
const typeMappings: TypeMapping = {
|
|
3254
|
+
follows: { type: 'FollowResponse', isSingle: false },
|
|
3255
|
+
};
|
|
3256
|
+
return decode(typeMappings, input);
|
|
3257
|
+
};
|
|
3258
|
+
|
|
1694
3259
|
decoders.QueryMessageFlagsResponse = (input?: Record<string, any>) => {
|
|
1695
3260
|
const typeMappings: TypeMapping = {
|
|
1696
3261
|
flags: { type: 'MessageFlagResponse', isSingle: false },
|
|
@@ -1793,6 +3358,21 @@ decoders.Reaction = (input?: Record<string, any>) => {
|
|
|
1793
3358
|
return decode(typeMappings, input);
|
|
1794
3359
|
};
|
|
1795
3360
|
|
|
3361
|
+
decoders.ReactionDeletedEvent = (input?: Record<string, any>) => {
|
|
3362
|
+
const typeMappings: TypeMapping = {
|
|
3363
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3364
|
+
|
|
3365
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
3366
|
+
|
|
3367
|
+
message: { type: 'Message', isSingle: true },
|
|
3368
|
+
|
|
3369
|
+
reaction: { type: 'Reaction', isSingle: true },
|
|
3370
|
+
|
|
3371
|
+
user: { type: 'User', isSingle: true },
|
|
3372
|
+
};
|
|
3373
|
+
return decode(typeMappings, input);
|
|
3374
|
+
};
|
|
3375
|
+
|
|
1796
3376
|
decoders.ReactionGroupResponse = (input?: Record<string, any>) => {
|
|
1797
3377
|
const typeMappings: TypeMapping = {
|
|
1798
3378
|
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1802,6 +3382,21 @@ decoders.ReactionGroupResponse = (input?: Record<string, any>) => {
|
|
|
1802
3382
|
return decode(typeMappings, input);
|
|
1803
3383
|
};
|
|
1804
3384
|
|
|
3385
|
+
decoders.ReactionNewEvent = (input?: Record<string, any>) => {
|
|
3386
|
+
const typeMappings: TypeMapping = {
|
|
3387
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3388
|
+
|
|
3389
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
3390
|
+
|
|
3391
|
+
message: { type: 'Message', isSingle: true },
|
|
3392
|
+
|
|
3393
|
+
reaction: { type: 'Reaction', isSingle: true },
|
|
3394
|
+
|
|
3395
|
+
user: { type: 'User', isSingle: true },
|
|
3396
|
+
};
|
|
3397
|
+
return decode(typeMappings, input);
|
|
3398
|
+
};
|
|
3399
|
+
|
|
1805
3400
|
decoders.ReactionResponse = (input?: Record<string, any>) => {
|
|
1806
3401
|
const typeMappings: TypeMapping = {
|
|
1807
3402
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1813,6 +3408,19 @@ decoders.ReactionResponse = (input?: Record<string, any>) => {
|
|
|
1813
3408
|
return decode(typeMappings, input);
|
|
1814
3409
|
};
|
|
1815
3410
|
|
|
3411
|
+
decoders.ReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
3412
|
+
const typeMappings: TypeMapping = {
|
|
3413
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3414
|
+
|
|
3415
|
+
message: { type: 'Message', isSingle: true },
|
|
3416
|
+
|
|
3417
|
+
reaction: { type: 'Reaction', isSingle: true },
|
|
3418
|
+
|
|
3419
|
+
user: { type: 'User', isSingle: true },
|
|
3420
|
+
};
|
|
3421
|
+
return decode(typeMappings, input);
|
|
3422
|
+
};
|
|
3423
|
+
|
|
1816
3424
|
decoders.ReactivateUserResponse = (input?: Record<string, any>) => {
|
|
1817
3425
|
const typeMappings: TypeMapping = {
|
|
1818
3426
|
user: { type: 'UserResponse', isSingle: true },
|
|
@@ -1829,6 +3437,20 @@ decoders.ReadStateResponse = (input?: Record<string, any>) => {
|
|
|
1829
3437
|
return decode(typeMappings, input);
|
|
1830
3438
|
};
|
|
1831
3439
|
|
|
3440
|
+
decoders.RejectFeedMemberInviteResponse = (input?: Record<string, any>) => {
|
|
3441
|
+
const typeMappings: TypeMapping = {
|
|
3442
|
+
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
3443
|
+
};
|
|
3444
|
+
return decode(typeMappings, input);
|
|
3445
|
+
};
|
|
3446
|
+
|
|
3447
|
+
decoders.RejectFollowResponse = (input?: Record<string, any>) => {
|
|
3448
|
+
const typeMappings: TypeMapping = {
|
|
3449
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
3450
|
+
};
|
|
3451
|
+
return decode(typeMappings, input);
|
|
3452
|
+
};
|
|
3453
|
+
|
|
1832
3454
|
decoders.ReminderResponseData = (input?: Record<string, any>) => {
|
|
1833
3455
|
const typeMappings: TypeMapping = {
|
|
1834
3456
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1844,31 +3466,17 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
|
|
|
1844
3466
|
user: { type: 'User', isSingle: true },
|
|
1845
3467
|
};
|
|
1846
3468
|
return decode(typeMappings, input);
|
|
1847
|
-
};
|
|
1848
|
-
|
|
1849
|
-
decoders.ReviewQueueItem = (input?: Record<string, any>) => {
|
|
1850
|
-
const typeMappings: TypeMapping = {
|
|
1851
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1852
|
-
|
|
1853
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1854
|
-
|
|
1855
|
-
actions: { type: 'ActionLog', isSingle: false },
|
|
1856
|
-
|
|
1857
|
-
bans: { type: 'Ban', isSingle: false },
|
|
1858
|
-
|
|
1859
|
-
flags: { type: 'Flag', isSingle: false },
|
|
1860
|
-
|
|
1861
|
-
assigned_to: { type: 'User', isSingle: true },
|
|
1862
|
-
|
|
1863
|
-
call: { type: 'Call', isSingle: true },
|
|
3469
|
+
};
|
|
1864
3470
|
|
|
1865
|
-
|
|
3471
|
+
decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
|
|
3472
|
+
const typeMappings: TypeMapping = {
|
|
3473
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1866
3474
|
|
|
1867
|
-
|
|
3475
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1868
3476
|
|
|
1869
|
-
|
|
3477
|
+
action: { type: 'ActionLogResponse', isSingle: true },
|
|
1870
3478
|
|
|
1871
|
-
|
|
3479
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1872
3480
|
};
|
|
1873
3481
|
return decode(typeMappings, input);
|
|
1874
3482
|
};
|
|
@@ -1902,18 +3510,24 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
1902
3510
|
return decode(typeMappings, input);
|
|
1903
3511
|
};
|
|
1904
3512
|
|
|
1905
|
-
decoders.
|
|
3513
|
+
decoders.ReviewQueueItemUpdatedEvent = (input?: Record<string, any>) => {
|
|
1906
3514
|
const typeMappings: TypeMapping = {
|
|
1907
3515
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1908
3516
|
|
|
1909
|
-
|
|
3517
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3518
|
+
|
|
3519
|
+
action: { type: 'ActionLogResponse', isSingle: true },
|
|
3520
|
+
|
|
3521
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1910
3522
|
};
|
|
1911
3523
|
return decode(typeMappings, input);
|
|
1912
3524
|
};
|
|
1913
3525
|
|
|
1914
|
-
decoders.
|
|
3526
|
+
decoders.Role = (input?: Record<string, any>) => {
|
|
1915
3527
|
const typeMappings: TypeMapping = {
|
|
1916
|
-
|
|
3528
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3529
|
+
|
|
3530
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1917
3531
|
};
|
|
1918
3532
|
return decode(typeMappings, input);
|
|
1919
3533
|
};
|
|
@@ -1962,6 +3576,8 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
|
|
|
1962
3576
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1963
3577
|
|
|
1964
3578
|
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
3579
|
+
|
|
3580
|
+
shared_location: { type: 'SharedLocationResponseData', isSingle: true },
|
|
1965
3581
|
};
|
|
1966
3582
|
return decode(typeMappings, input);
|
|
1967
3583
|
};
|
|
@@ -2011,6 +3627,68 @@ decoders.SendReactionResponse = (input?: Record<string, any>) => {
|
|
|
2011
3627
|
return decode(typeMappings, input);
|
|
2012
3628
|
};
|
|
2013
3629
|
|
|
3630
|
+
decoders.SharedLocation = (input?: Record<string, any>) => {
|
|
3631
|
+
const typeMappings: TypeMapping = {
|
|
3632
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3633
|
+
|
|
3634
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3635
|
+
|
|
3636
|
+
end_at: { type: 'DatetimeType', isSingle: true },
|
|
3637
|
+
|
|
3638
|
+
channel: { type: 'Channel', isSingle: true },
|
|
3639
|
+
|
|
3640
|
+
message: { type: 'Message', isSingle: true },
|
|
3641
|
+
};
|
|
3642
|
+
return decode(typeMappings, input);
|
|
3643
|
+
};
|
|
3644
|
+
|
|
3645
|
+
decoders.SharedLocationResponse = (input?: Record<string, any>) => {
|
|
3646
|
+
const typeMappings: TypeMapping = {
|
|
3647
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3648
|
+
|
|
3649
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3650
|
+
|
|
3651
|
+
end_at: { type: 'DatetimeType', isSingle: true },
|
|
3652
|
+
|
|
3653
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
3654
|
+
|
|
3655
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
3656
|
+
};
|
|
3657
|
+
return decode(typeMappings, input);
|
|
3658
|
+
};
|
|
3659
|
+
|
|
3660
|
+
decoders.SharedLocationResponseData = (input?: Record<string, any>) => {
|
|
3661
|
+
const typeMappings: TypeMapping = {
|
|
3662
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3663
|
+
|
|
3664
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3665
|
+
|
|
3666
|
+
end_at: { type: 'DatetimeType', isSingle: true },
|
|
3667
|
+
|
|
3668
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
3669
|
+
|
|
3670
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
3671
|
+
};
|
|
3672
|
+
return decode(typeMappings, input);
|
|
3673
|
+
};
|
|
3674
|
+
|
|
3675
|
+
decoders.SharedLocationsResponse = (input?: Record<string, any>) => {
|
|
3676
|
+
const typeMappings: TypeMapping = {
|
|
3677
|
+
active_live_locations: {
|
|
3678
|
+
type: 'SharedLocationResponseData',
|
|
3679
|
+
isSingle: false,
|
|
3680
|
+
},
|
|
3681
|
+
};
|
|
3682
|
+
return decode(typeMappings, input);
|
|
3683
|
+
};
|
|
3684
|
+
|
|
3685
|
+
decoders.SingleFollowResponse = (input?: Record<string, any>) => {
|
|
3686
|
+
const typeMappings: TypeMapping = {
|
|
3687
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
3688
|
+
};
|
|
3689
|
+
return decode(typeMappings, input);
|
|
3690
|
+
};
|
|
3691
|
+
|
|
2014
3692
|
decoders.StopLiveResponse = (input?: Record<string, any>) => {
|
|
2015
3693
|
const typeMappings: TypeMapping = {
|
|
2016
3694
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -2020,7 +3698,7 @@ decoders.StopLiveResponse = (input?: Record<string, any>) => {
|
|
|
2020
3698
|
|
|
2021
3699
|
decoders.SubmitActionResponse = (input?: Record<string, any>) => {
|
|
2022
3700
|
const typeMappings: TypeMapping = {
|
|
2023
|
-
item: { type: '
|
|
3701
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
2024
3702
|
};
|
|
2025
3703
|
return decode(typeMappings, input);
|
|
2026
3704
|
};
|
|
@@ -2088,6 +3766,40 @@ decoders.ThreadStateResponse = (input?: Record<string, any>) => {
|
|
|
2088
3766
|
return decode(typeMappings, input);
|
|
2089
3767
|
};
|
|
2090
3768
|
|
|
3769
|
+
decoders.ThreadUpdatedEvent = (input?: Record<string, any>) => {
|
|
3770
|
+
const typeMappings: TypeMapping = {
|
|
3771
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3772
|
+
|
|
3773
|
+
thread: { type: 'ThreadResponse', isSingle: true },
|
|
3774
|
+
|
|
3775
|
+
user: { type: 'User', isSingle: true },
|
|
3776
|
+
};
|
|
3777
|
+
return decode(typeMappings, input);
|
|
3778
|
+
};
|
|
3779
|
+
|
|
3780
|
+
decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
|
|
3781
|
+
const typeMappings: TypeMapping = {
|
|
3782
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3783
|
+
|
|
3784
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3785
|
+
|
|
3786
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
3787
|
+
|
|
3788
|
+
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
3789
|
+
|
|
3790
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
3791
|
+
|
|
3792
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
3793
|
+
|
|
3794
|
+
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
3795
|
+
|
|
3796
|
+
replies: { type: 'ThreadedCommentResponse', isSingle: false },
|
|
3797
|
+
|
|
3798
|
+
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
3799
|
+
};
|
|
3800
|
+
return decode(typeMappings, input);
|
|
3801
|
+
};
|
|
3802
|
+
|
|
2091
3803
|
decoders.TruncateChannelResponse = (input?: Record<string, any>) => {
|
|
2092
3804
|
const typeMappings: TypeMapping = {
|
|
2093
3805
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
@@ -2097,6 +3809,22 @@ decoders.TruncateChannelResponse = (input?: Record<string, any>) => {
|
|
|
2097
3809
|
return decode(typeMappings, input);
|
|
2098
3810
|
};
|
|
2099
3811
|
|
|
3812
|
+
decoders.UnblockedUserEvent = (input?: Record<string, any>) => {
|
|
3813
|
+
const typeMappings: TypeMapping = {
|
|
3814
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3815
|
+
|
|
3816
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
3817
|
+
};
|
|
3818
|
+
return decode(typeMappings, input);
|
|
3819
|
+
};
|
|
3820
|
+
|
|
3821
|
+
decoders.UnpinActivityResponse = (input?: Record<string, any>) => {
|
|
3822
|
+
const typeMappings: TypeMapping = {
|
|
3823
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
3824
|
+
};
|
|
3825
|
+
return decode(typeMappings, input);
|
|
3826
|
+
};
|
|
3827
|
+
|
|
2100
3828
|
decoders.UnreadCountsBatchResponse = (input?: Record<string, any>) => {
|
|
2101
3829
|
const typeMappings: TypeMapping = {
|
|
2102
3830
|
counts_by_user: { type: 'UnreadCountsResponse', isSingle: false },
|
|
@@ -2127,6 +3855,20 @@ decoders.UnreadCountsThread = (input?: Record<string, any>) => {
|
|
|
2127
3855
|
return decode(typeMappings, input);
|
|
2128
3856
|
};
|
|
2129
3857
|
|
|
3858
|
+
decoders.UpdateActivityPartialResponse = (input?: Record<string, any>) => {
|
|
3859
|
+
const typeMappings: TypeMapping = {
|
|
3860
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
3861
|
+
};
|
|
3862
|
+
return decode(typeMappings, input);
|
|
3863
|
+
};
|
|
3864
|
+
|
|
3865
|
+
decoders.UpdateActivityResponse = (input?: Record<string, any>) => {
|
|
3866
|
+
const typeMappings: TypeMapping = {
|
|
3867
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
3868
|
+
};
|
|
3869
|
+
return decode(typeMappings, input);
|
|
3870
|
+
};
|
|
3871
|
+
|
|
2130
3872
|
decoders.UpdateBlockListResponse = (input?: Record<string, any>) => {
|
|
2131
3873
|
const typeMappings: TypeMapping = {
|
|
2132
3874
|
blocklist: { type: 'BlockListResponse', isSingle: true },
|
|
@@ -2134,6 +3876,20 @@ decoders.UpdateBlockListResponse = (input?: Record<string, any>) => {
|
|
|
2134
3876
|
return decode(typeMappings, input);
|
|
2135
3877
|
};
|
|
2136
3878
|
|
|
3879
|
+
decoders.UpdateBookmarkFolderResponse = (input?: Record<string, any>) => {
|
|
3880
|
+
const typeMappings: TypeMapping = {
|
|
3881
|
+
bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
3882
|
+
};
|
|
3883
|
+
return decode(typeMappings, input);
|
|
3884
|
+
};
|
|
3885
|
+
|
|
3886
|
+
decoders.UpdateBookmarkResponse = (input?: Record<string, any>) => {
|
|
3887
|
+
const typeMappings: TypeMapping = {
|
|
3888
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
3889
|
+
};
|
|
3890
|
+
return decode(typeMappings, input);
|
|
3891
|
+
};
|
|
3892
|
+
|
|
2137
3893
|
decoders.UpdateCallMembersResponse = (input?: Record<string, any>) => {
|
|
2138
3894
|
const typeMappings: TypeMapping = {
|
|
2139
3895
|
members: { type: 'MemberResponse', isSingle: false },
|
|
@@ -2195,6 +3951,50 @@ decoders.UpdateCommandResponse = (input?: Record<string, any>) => {
|
|
|
2195
3951
|
return decode(typeMappings, input);
|
|
2196
3952
|
};
|
|
2197
3953
|
|
|
3954
|
+
decoders.UpdateCommentResponse = (input?: Record<string, any>) => {
|
|
3955
|
+
const typeMappings: TypeMapping = {
|
|
3956
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
3957
|
+
};
|
|
3958
|
+
return decode(typeMappings, input);
|
|
3959
|
+
};
|
|
3960
|
+
|
|
3961
|
+
decoders.UpdateFeedGroupResponse = (input?: Record<string, any>) => {
|
|
3962
|
+
const typeMappings: TypeMapping = {
|
|
3963
|
+
feed_group: { type: 'FeedGroupResponse', isSingle: true },
|
|
3964
|
+
};
|
|
3965
|
+
return decode(typeMappings, input);
|
|
3966
|
+
};
|
|
3967
|
+
|
|
3968
|
+
decoders.UpdateFeedMembersResponse = (input?: Record<string, any>) => {
|
|
3969
|
+
const typeMappings: TypeMapping = {
|
|
3970
|
+
added: { type: 'FeedMemberResponse', isSingle: false },
|
|
3971
|
+
|
|
3972
|
+
updated: { type: 'FeedMemberResponse', isSingle: false },
|
|
3973
|
+
};
|
|
3974
|
+
return decode(typeMappings, input);
|
|
3975
|
+
};
|
|
3976
|
+
|
|
3977
|
+
decoders.UpdateFeedResponse = (input?: Record<string, any>) => {
|
|
3978
|
+
const typeMappings: TypeMapping = {
|
|
3979
|
+
feed: { type: 'FeedResponse', isSingle: true },
|
|
3980
|
+
};
|
|
3981
|
+
return decode(typeMappings, input);
|
|
3982
|
+
};
|
|
3983
|
+
|
|
3984
|
+
decoders.UpdateFeedViewResponse = (input?: Record<string, any>) => {
|
|
3985
|
+
const typeMappings: TypeMapping = {
|
|
3986
|
+
feed_view: { type: 'FeedViewResponse', isSingle: true },
|
|
3987
|
+
};
|
|
3988
|
+
return decode(typeMappings, input);
|
|
3989
|
+
};
|
|
3990
|
+
|
|
3991
|
+
decoders.UpdateFollowResponse = (input?: Record<string, any>) => {
|
|
3992
|
+
const typeMappings: TypeMapping = {
|
|
3993
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
3994
|
+
};
|
|
3995
|
+
return decode(typeMappings, input);
|
|
3996
|
+
};
|
|
3997
|
+
|
|
2198
3998
|
decoders.UpdateMemberPartialResponse = (input?: Record<string, any>) => {
|
|
2199
3999
|
const typeMappings: TypeMapping = {
|
|
2200
4000
|
channel_member: { type: 'ChannelMemberResponse', isSingle: true },
|
|
@@ -2237,6 +4037,22 @@ decoders.UpdateUsersResponse = (input?: Record<string, any>) => {
|
|
|
2237
4037
|
return decode(typeMappings, input);
|
|
2238
4038
|
};
|
|
2239
4039
|
|
|
4040
|
+
decoders.UpdatedCallPermissionsEvent = (input?: Record<string, any>) => {
|
|
4041
|
+
const typeMappings: TypeMapping = {
|
|
4042
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4043
|
+
|
|
4044
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
4045
|
+
};
|
|
4046
|
+
return decode(typeMappings, input);
|
|
4047
|
+
};
|
|
4048
|
+
|
|
4049
|
+
decoders.UpsertActivitiesResponse = (input?: Record<string, any>) => {
|
|
4050
|
+
const typeMappings: TypeMapping = {
|
|
4051
|
+
activities: { type: 'ActivityResponse', isSingle: false },
|
|
4052
|
+
};
|
|
4053
|
+
return decode(typeMappings, input);
|
|
4054
|
+
};
|
|
4055
|
+
|
|
2240
4056
|
decoders.UpsertConfigResponse = (input?: Record<string, any>) => {
|
|
2241
4057
|
const typeMappings: TypeMapping = {
|
|
2242
4058
|
config: { type: 'ConfigResponse', isSingle: true },
|
|
@@ -2295,6 +4111,48 @@ decoders.User = (input?: Record<string, any>) => {
|
|
|
2295
4111
|
return decode(typeMappings, input);
|
|
2296
4112
|
};
|
|
2297
4113
|
|
|
4114
|
+
decoders.UserBannedEvent = (input?: Record<string, any>) => {
|
|
4115
|
+
const typeMappings: TypeMapping = {
|
|
4116
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4117
|
+
|
|
4118
|
+
created_by: { type: 'User', isSingle: true },
|
|
4119
|
+
|
|
4120
|
+
expiration: { type: 'DatetimeType', isSingle: true },
|
|
4121
|
+
|
|
4122
|
+
user: { type: 'User', isSingle: true },
|
|
4123
|
+
};
|
|
4124
|
+
return decode(typeMappings, input);
|
|
4125
|
+
};
|
|
4126
|
+
|
|
4127
|
+
decoders.UserDeactivatedEvent = (input?: Record<string, any>) => {
|
|
4128
|
+
const typeMappings: TypeMapping = {
|
|
4129
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4130
|
+
|
|
4131
|
+
created_by: { type: 'User', isSingle: true },
|
|
4132
|
+
|
|
4133
|
+
user: { type: 'User', isSingle: true },
|
|
4134
|
+
};
|
|
4135
|
+
return decode(typeMappings, input);
|
|
4136
|
+
};
|
|
4137
|
+
|
|
4138
|
+
decoders.UserDeletedEvent = (input?: Record<string, any>) => {
|
|
4139
|
+
const typeMappings: TypeMapping = {
|
|
4140
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4141
|
+
|
|
4142
|
+
user: { type: 'User', isSingle: true },
|
|
4143
|
+
};
|
|
4144
|
+
return decode(typeMappings, input);
|
|
4145
|
+
};
|
|
4146
|
+
|
|
4147
|
+
decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
|
|
4148
|
+
const typeMappings: TypeMapping = {
|
|
4149
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4150
|
+
|
|
4151
|
+
user: { type: 'User', isSingle: true },
|
|
4152
|
+
};
|
|
4153
|
+
return decode(typeMappings, input);
|
|
4154
|
+
};
|
|
4155
|
+
|
|
2298
4156
|
decoders.UserMute = (input?: Record<string, any>) => {
|
|
2299
4157
|
const typeMappings: TypeMapping = {
|
|
2300
4158
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2325,6 +4183,24 @@ decoders.UserMuteResponse = (input?: Record<string, any>) => {
|
|
|
2325
4183
|
return decode(typeMappings, input);
|
|
2326
4184
|
};
|
|
2327
4185
|
|
|
4186
|
+
decoders.UserMutedEvent = (input?: Record<string, any>) => {
|
|
4187
|
+
const typeMappings: TypeMapping = {
|
|
4188
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4189
|
+
|
|
4190
|
+
user: { type: 'User', isSingle: true },
|
|
4191
|
+
};
|
|
4192
|
+
return decode(typeMappings, input);
|
|
4193
|
+
};
|
|
4194
|
+
|
|
4195
|
+
decoders.UserReactivatedEvent = (input?: Record<string, any>) => {
|
|
4196
|
+
const typeMappings: TypeMapping = {
|
|
4197
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4198
|
+
|
|
4199
|
+
user: { type: 'User', isSingle: true },
|
|
4200
|
+
};
|
|
4201
|
+
return decode(typeMappings, input);
|
|
4202
|
+
};
|
|
4203
|
+
|
|
2328
4204
|
decoders.UserResponse = (input?: Record<string, any>) => {
|
|
2329
4205
|
const typeMappings: TypeMapping = {
|
|
2330
4206
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2368,6 +4244,42 @@ decoders.UserResponseCommonFields = (input?: Record<string, any>) => {
|
|
|
2368
4244
|
return decode(typeMappings, input);
|
|
2369
4245
|
};
|
|
2370
4246
|
|
|
4247
|
+
decoders.UserUnbannedEvent = (input?: Record<string, any>) => {
|
|
4248
|
+
const typeMappings: TypeMapping = {
|
|
4249
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4250
|
+
|
|
4251
|
+
user: { type: 'User', isSingle: true },
|
|
4252
|
+
};
|
|
4253
|
+
return decode(typeMappings, input);
|
|
4254
|
+
};
|
|
4255
|
+
|
|
4256
|
+
decoders.UserUnmutedEvent = (input?: Record<string, any>) => {
|
|
4257
|
+
const typeMappings: TypeMapping = {
|
|
4258
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4259
|
+
|
|
4260
|
+
user: { type: 'User', isSingle: true },
|
|
4261
|
+
};
|
|
4262
|
+
return decode(typeMappings, input);
|
|
4263
|
+
};
|
|
4264
|
+
|
|
4265
|
+
decoders.UserUnreadReminderEvent = (input?: Record<string, any>) => {
|
|
4266
|
+
const typeMappings: TypeMapping = {
|
|
4267
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4268
|
+
|
|
4269
|
+
user: { type: 'User', isSingle: true },
|
|
4270
|
+
};
|
|
4271
|
+
return decode(typeMappings, input);
|
|
4272
|
+
};
|
|
4273
|
+
|
|
4274
|
+
decoders.UserUpdatedEvent = (input?: Record<string, any>) => {
|
|
4275
|
+
const typeMappings: TypeMapping = {
|
|
4276
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4277
|
+
|
|
4278
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4279
|
+
};
|
|
4280
|
+
return decode(typeMappings, input);
|
|
4281
|
+
};
|
|
4282
|
+
|
|
2371
4283
|
decoders.VideoReactionOverTimeResponse = (input?: Record<string, any>) => {
|
|
2372
4284
|
const typeMappings: TypeMapping = {
|
|
2373
4285
|
by_minute: { type: 'CountByMinuteResponse', isSingle: false },
|