@stream-io/node-sdk 0.4.26 → 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 +6292 -3831
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.es.mjs +6290 -3832
- 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 +120 -83
- 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 +1498 -17
- 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 +90 -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 +548 -681
- package/src/gen/common/CommonApi.ts +679 -271
- 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} +2294 -276
- package/src/gen/models/index.ts +4233 -2028
- package/src/gen/moderation/ModerationApi.ts +159 -98
- package/src/gen/video/CallApi.ts +97 -108
- package/src/gen/video/VideoApi.ts +294 -207
- 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,6 +34,20 @@ const decode = (typeMappings: TypeMapping, input?: Record<string, any>) => {
|
|
|
32
34
|
return input;
|
|
33
35
|
};
|
|
34
36
|
|
|
37
|
+
decoders.AcceptFeedMemberInviteResponse = (input?: Record<string, any>) => {
|
|
38
|
+
const typeMappings: TypeMapping = {
|
|
39
|
+
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
40
|
+
};
|
|
41
|
+
return decode(typeMappings, input);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
decoders.AcceptFollowResponse = (input?: Record<string, any>) => {
|
|
45
|
+
const typeMappings: TypeMapping = {
|
|
46
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
47
|
+
};
|
|
48
|
+
return decode(typeMappings, input);
|
|
49
|
+
};
|
|
50
|
+
|
|
35
51
|
decoders.ActionLogResponse = (input?: Record<string, any>) => {
|
|
36
52
|
const typeMappings: TypeMapping = {
|
|
37
53
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -45,326 +61,376 @@ decoders.ActionLogResponse = (input?: Record<string, any>) => {
|
|
|
45
61
|
return decode(typeMappings, input);
|
|
46
62
|
};
|
|
47
63
|
|
|
48
|
-
decoders.
|
|
64
|
+
decoders.ActivityAddedEvent = (input?: Record<string, any>) => {
|
|
49
65
|
const typeMappings: TypeMapping = {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
call_types: { type: 'CallType', isSingle: false },
|
|
66
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
53
67
|
|
|
54
|
-
|
|
68
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
55
69
|
|
|
56
|
-
|
|
70
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
57
71
|
|
|
58
|
-
|
|
72
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
59
73
|
};
|
|
60
74
|
return decode(typeMappings, input);
|
|
61
75
|
};
|
|
62
76
|
|
|
63
|
-
decoders.
|
|
77
|
+
decoders.ActivityDeletedEvent = (input?: Record<string, any>) => {
|
|
64
78
|
const typeMappings: TypeMapping = {
|
|
65
|
-
|
|
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 },
|
|
66
86
|
};
|
|
67
87
|
return decode(typeMappings, input);
|
|
68
88
|
};
|
|
69
89
|
|
|
70
|
-
decoders.
|
|
90
|
+
decoders.ActivityMarkEvent = (input?: Record<string, any>) => {
|
|
71
91
|
const typeMappings: TypeMapping = {
|
|
72
92
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
73
93
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
channel: { type: 'Channel', isSingle: true },
|
|
77
|
-
|
|
78
|
-
created_by: { type: 'User', isSingle: true },
|
|
94
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
79
95
|
|
|
80
|
-
|
|
96
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
81
97
|
};
|
|
82
98
|
return decode(typeMappings, input);
|
|
83
99
|
};
|
|
84
100
|
|
|
85
|
-
decoders.
|
|
101
|
+
decoders.ActivityMarkedEvent = (input?: Record<string, any>) => {
|
|
86
102
|
const typeMappings: TypeMapping = {
|
|
87
103
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
88
|
-
|
|
89
|
-
expires: { type: 'DatetimeType', isSingle: true },
|
|
90
|
-
|
|
91
|
-
banned_by: { type: 'UserResponse', isSingle: true },
|
|
92
|
-
|
|
93
|
-
channel: { type: 'ChannelResponse', isSingle: true },
|
|
94
|
-
|
|
95
|
-
user: { type: 'UserResponse', isSingle: true },
|
|
96
104
|
};
|
|
97
105
|
return decode(typeMappings, input);
|
|
98
106
|
};
|
|
99
107
|
|
|
100
|
-
decoders.
|
|
108
|
+
decoders.ActivityPinResponse = (input?: Record<string, any>) => {
|
|
101
109
|
const typeMappings: TypeMapping = {
|
|
102
110
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
103
111
|
|
|
104
112
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
113
|
+
|
|
114
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
115
|
+
|
|
116
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
105
117
|
};
|
|
106
118
|
return decode(typeMappings, input);
|
|
107
119
|
};
|
|
108
120
|
|
|
109
|
-
decoders.
|
|
121
|
+
decoders.ActivityPinnedEvent = (input?: Record<string, any>) => {
|
|
110
122
|
const typeMappings: TypeMapping = {
|
|
111
123
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
124
|
+
|
|
125
|
+
pinned_activity: { type: 'PinActivityResponse', isSingle: true },
|
|
126
|
+
|
|
127
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
128
|
+
|
|
129
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
112
130
|
};
|
|
113
131
|
return decode(typeMappings, input);
|
|
114
132
|
};
|
|
115
133
|
|
|
116
|
-
decoders.
|
|
134
|
+
decoders.ActivityReactionAddedEvent = (input?: Record<string, any>) => {
|
|
117
135
|
const typeMappings: TypeMapping = {
|
|
118
136
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
119
137
|
|
|
120
|
-
|
|
138
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
121
139
|
|
|
122
|
-
|
|
140
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
141
|
+
|
|
142
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
143
|
+
|
|
144
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
123
145
|
};
|
|
124
146
|
return decode(typeMappings, input);
|
|
125
147
|
};
|
|
126
148
|
|
|
127
|
-
decoders.
|
|
149
|
+
decoders.ActivityReactionDeletedEvent = (input?: Record<string, any>) => {
|
|
128
150
|
const typeMappings: TypeMapping = {
|
|
129
|
-
|
|
151
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
130
152
|
|
|
131
|
-
|
|
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 },
|
|
132
160
|
};
|
|
133
161
|
return decode(typeMappings, input);
|
|
134
162
|
};
|
|
135
163
|
|
|
136
|
-
decoders.
|
|
164
|
+
decoders.ActivityReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
137
165
|
const typeMappings: TypeMapping = {
|
|
138
|
-
|
|
166
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
139
167
|
|
|
140
|
-
|
|
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 },
|
|
141
175
|
};
|
|
142
176
|
return decode(typeMappings, input);
|
|
143
177
|
};
|
|
144
178
|
|
|
145
|
-
decoders.
|
|
179
|
+
decoders.ActivityRemovedFromFeedEvent = (input?: Record<string, any>) => {
|
|
146
180
|
const typeMappings: TypeMapping = {
|
|
147
|
-
|
|
181
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
148
182
|
|
|
149
|
-
|
|
183
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
184
|
+
|
|
185
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
186
|
+
|
|
187
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
150
188
|
};
|
|
151
189
|
return decode(typeMappings, input);
|
|
152
190
|
};
|
|
153
191
|
|
|
154
|
-
decoders.
|
|
192
|
+
decoders.ActivityResponse = (input?: Record<string, any>) => {
|
|
155
193
|
const typeMappings: TypeMapping = {
|
|
156
194
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
157
195
|
|
|
158
196
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
159
197
|
|
|
160
|
-
|
|
198
|
+
comments: { type: 'CommentResponse', isSingle: false },
|
|
161
199
|
|
|
162
|
-
|
|
200
|
+
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
163
201
|
|
|
164
|
-
|
|
202
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
165
203
|
|
|
166
|
-
|
|
167
|
-
};
|
|
168
|
-
return decode(typeMappings, input);
|
|
169
|
-
};
|
|
204
|
+
own_bookmarks: { type: 'BookmarkResponse', isSingle: false },
|
|
170
205
|
|
|
171
|
-
|
|
172
|
-
const typeMappings: TypeMapping = {
|
|
173
|
-
participants: { type: 'CallParticipantResponse', isSingle: false },
|
|
206
|
+
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
174
207
|
|
|
175
|
-
|
|
208
|
+
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
176
209
|
|
|
177
|
-
|
|
210
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
178
211
|
|
|
179
|
-
|
|
212
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
180
213
|
|
|
181
|
-
|
|
214
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
182
215
|
|
|
183
|
-
|
|
216
|
+
expires_at: { type: 'DatetimeType', isSingle: true },
|
|
184
217
|
|
|
185
|
-
|
|
218
|
+
current_feed: { type: 'FeedResponse', isSingle: true },
|
|
186
219
|
|
|
187
|
-
|
|
220
|
+
parent: { type: 'ActivityResponse', isSingle: true },
|
|
188
221
|
|
|
189
|
-
|
|
222
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
190
223
|
};
|
|
191
224
|
return decode(typeMappings, input);
|
|
192
225
|
};
|
|
193
226
|
|
|
194
|
-
decoders.
|
|
227
|
+
decoders.ActivitySelectorConfig = (input?: Record<string, any>) => {
|
|
195
228
|
const typeMappings: TypeMapping = {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
call: { type: 'CallResponse', isSingle: true },
|
|
229
|
+
cutoff_time: { type: 'DatetimeType', isSingle: true },
|
|
199
230
|
};
|
|
200
231
|
return decode(typeMappings, input);
|
|
201
232
|
};
|
|
202
233
|
|
|
203
|
-
decoders.
|
|
234
|
+
decoders.ActivityUnpinnedEvent = (input?: Record<string, any>) => {
|
|
204
235
|
const typeMappings: TypeMapping = {
|
|
205
|
-
first_stats_time: { type: 'DatetimeType', isSingle: true },
|
|
206
|
-
|
|
207
236
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
237
|
+
|
|
238
|
+
pinned_activity: { type: 'PinActivityResponse', isSingle: true },
|
|
239
|
+
|
|
240
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
241
|
+
|
|
242
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
208
243
|
};
|
|
209
244
|
return decode(typeMappings, input);
|
|
210
245
|
};
|
|
211
246
|
|
|
212
|
-
decoders.
|
|
247
|
+
decoders.ActivityUpdatedEvent = (input?: Record<string, any>) => {
|
|
213
248
|
const typeMappings: TypeMapping = {
|
|
214
|
-
|
|
249
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
215
250
|
|
|
216
|
-
|
|
251
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
252
|
+
|
|
253
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
254
|
+
|
|
255
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
217
256
|
};
|
|
218
257
|
return decode(typeMappings, input);
|
|
219
258
|
};
|
|
220
259
|
|
|
221
|
-
decoders.
|
|
260
|
+
decoders.AddActivityResponse = (input?: Record<string, any>) => {
|
|
222
261
|
const typeMappings: TypeMapping = {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
262
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
226
263
|
};
|
|
227
264
|
return decode(typeMappings, input);
|
|
228
265
|
};
|
|
229
266
|
|
|
230
|
-
decoders.
|
|
267
|
+
decoders.AddBookmarkResponse = (input?: Record<string, any>) => {
|
|
231
268
|
const typeMappings: TypeMapping = {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
269
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
235
270
|
};
|
|
236
271
|
return decode(typeMappings, input);
|
|
237
272
|
};
|
|
238
273
|
|
|
239
|
-
decoders.
|
|
274
|
+
decoders.AddCommentReactionResponse = (input?: Record<string, any>) => {
|
|
240
275
|
const typeMappings: TypeMapping = {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
244
|
-
|
|
245
|
-
segments: { type: 'Segment', isSingle: false },
|
|
246
|
-
|
|
247
|
-
users: { type: 'UserResponse', isSingle: false },
|
|
248
|
-
|
|
249
|
-
stats: { type: 'CampaignStatsResponse', isSingle: true },
|
|
276
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
250
277
|
|
|
251
|
-
|
|
278
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
279
|
+
};
|
|
280
|
+
return decode(typeMappings, input);
|
|
281
|
+
};
|
|
252
282
|
|
|
253
|
-
|
|
283
|
+
decoders.AddCommentResponse = (input?: Record<string, any>) => {
|
|
284
|
+
const typeMappings: TypeMapping = {
|
|
285
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
286
|
+
};
|
|
287
|
+
return decode(typeMappings, input);
|
|
288
|
+
};
|
|
254
289
|
|
|
255
|
-
|
|
290
|
+
decoders.AddCommentsBatchResponse = (input?: Record<string, any>) => {
|
|
291
|
+
const typeMappings: TypeMapping = {
|
|
292
|
+
comments: { type: 'CommentResponse', isSingle: false },
|
|
256
293
|
};
|
|
257
294
|
return decode(typeMappings, input);
|
|
258
295
|
};
|
|
259
296
|
|
|
260
|
-
decoders.
|
|
297
|
+
decoders.AddReactionResponse = (input?: Record<string, any>) => {
|
|
261
298
|
const typeMappings: TypeMapping = {
|
|
262
|
-
|
|
299
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
263
300
|
|
|
264
|
-
|
|
301
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
265
302
|
};
|
|
266
303
|
return decode(typeMappings, input);
|
|
267
304
|
};
|
|
268
305
|
|
|
269
|
-
decoders.
|
|
306
|
+
decoders.AggregatedActivityResponse = (input?: Record<string, any>) => {
|
|
270
307
|
const typeMappings: TypeMapping = {
|
|
271
308
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
272
309
|
|
|
273
310
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
274
311
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
312
|
+
activities: { type: 'ActivityResponse', isSingle: false },
|
|
313
|
+
};
|
|
314
|
+
return decode(typeMappings, input);
|
|
315
|
+
};
|
|
278
316
|
|
|
279
|
-
|
|
317
|
+
decoders.AnyEvent = (input?: Record<string, any>) => {
|
|
318
|
+
const typeMappings: TypeMapping = {
|
|
319
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
320
|
+
};
|
|
321
|
+
return decode(typeMappings, input);
|
|
322
|
+
};
|
|
280
323
|
|
|
281
|
-
|
|
324
|
+
decoders.AppResponseFields = (input?: Record<string, any>) => {
|
|
325
|
+
const typeMappings: TypeMapping = {
|
|
326
|
+
event_hooks: { type: 'EventHook', isSingle: false },
|
|
282
327
|
|
|
283
|
-
|
|
328
|
+
call_types: { type: 'CallType', isSingle: false },
|
|
284
329
|
|
|
285
|
-
|
|
330
|
+
channel_configs: { type: 'ChannelConfig', isSingle: false },
|
|
286
331
|
|
|
287
|
-
|
|
332
|
+
push_notifications: { type: 'PushNotificationFields', isSingle: true },
|
|
288
333
|
|
|
289
|
-
|
|
334
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
290
335
|
};
|
|
291
336
|
return decode(typeMappings, input);
|
|
292
337
|
};
|
|
293
338
|
|
|
294
|
-
decoders.
|
|
339
|
+
decoders.AsyncBulkImageModerationEvent = (input?: Record<string, any>) => {
|
|
295
340
|
const typeMappings: TypeMapping = {
|
|
296
341
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
297
342
|
|
|
298
|
-
|
|
343
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
344
|
+
|
|
345
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
346
|
+
|
|
347
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
299
348
|
};
|
|
300
349
|
return decode(typeMappings, input);
|
|
301
350
|
};
|
|
302
351
|
|
|
303
|
-
decoders.
|
|
352
|
+
decoders.AsyncExportChannelsEvent = (input?: Record<string, any>) => {
|
|
304
353
|
const typeMappings: TypeMapping = {
|
|
305
354
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
306
355
|
|
|
307
|
-
|
|
356
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
308
357
|
|
|
309
|
-
|
|
358
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
359
|
+
|
|
360
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
310
361
|
};
|
|
311
362
|
return decode(typeMappings, input);
|
|
312
363
|
};
|
|
313
364
|
|
|
314
|
-
decoders.
|
|
365
|
+
decoders.AsyncExportErrorEvent = (input?: Record<string, any>) => {
|
|
315
366
|
const typeMappings: TypeMapping = {
|
|
316
367
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
317
368
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
archived_at: { type: 'DatetimeType', isSingle: true },
|
|
369
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
321
370
|
|
|
322
|
-
|
|
371
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
323
372
|
|
|
324
|
-
|
|
373
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
374
|
+
};
|
|
375
|
+
return decode(typeMappings, input);
|
|
376
|
+
};
|
|
325
377
|
|
|
326
|
-
|
|
378
|
+
decoders.AsyncExportModerationLogsEvent = (input?: Record<string, any>) => {
|
|
379
|
+
const typeMappings: TypeMapping = {
|
|
380
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
327
381
|
|
|
328
|
-
|
|
382
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
329
383
|
|
|
330
|
-
|
|
384
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
331
385
|
|
|
332
|
-
|
|
386
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
333
387
|
};
|
|
334
388
|
return decode(typeMappings, input);
|
|
335
389
|
};
|
|
336
390
|
|
|
337
|
-
decoders.
|
|
391
|
+
decoders.AsyncExportUsersEvent = (input?: Record<string, any>) => {
|
|
338
392
|
const typeMappings: TypeMapping = {
|
|
339
393
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
340
394
|
|
|
341
|
-
|
|
395
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
342
396
|
|
|
343
|
-
|
|
397
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
344
398
|
|
|
345
|
-
|
|
399
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
400
|
+
};
|
|
401
|
+
return decode(typeMappings, input);
|
|
402
|
+
};
|
|
346
403
|
|
|
347
|
-
|
|
404
|
+
decoders.AutomodDetails = (input?: Record<string, any>) => {
|
|
405
|
+
const typeMappings: TypeMapping = {
|
|
406
|
+
result: { type: 'MessageModerationResult', isSingle: true },
|
|
407
|
+
};
|
|
408
|
+
return decode(typeMappings, input);
|
|
409
|
+
};
|
|
348
410
|
|
|
349
|
-
|
|
411
|
+
decoders.Ban = (input?: Record<string, any>) => {
|
|
412
|
+
const typeMappings: TypeMapping = {
|
|
413
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
350
414
|
|
|
351
|
-
|
|
415
|
+
expires: { type: 'DatetimeType', isSingle: true },
|
|
352
416
|
|
|
353
|
-
|
|
417
|
+
channel: { type: 'Channel', isSingle: true },
|
|
354
418
|
|
|
355
|
-
|
|
419
|
+
created_by: { type: 'User', isSingle: true },
|
|
420
|
+
|
|
421
|
+
target: { type: 'User', isSingle: true },
|
|
356
422
|
};
|
|
357
423
|
return decode(typeMappings, input);
|
|
358
424
|
};
|
|
359
425
|
|
|
360
|
-
decoders.
|
|
426
|
+
decoders.BanResponse = (input?: Record<string, any>) => {
|
|
361
427
|
const typeMappings: TypeMapping = {
|
|
362
428
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
363
429
|
|
|
364
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
365
|
-
|
|
366
430
|
expires: { type: 'DatetimeType', isSingle: true },
|
|
367
431
|
|
|
432
|
+
banned_by: { type: 'UserResponse', isSingle: true },
|
|
433
|
+
|
|
368
434
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
369
435
|
|
|
370
436
|
user: { type: 'UserResponse', isSingle: true },
|
|
@@ -372,143 +438,1370 @@ decoders.ChannelMute = (input?: Record<string, any>) => {
|
|
|
372
438
|
return decode(typeMappings, input);
|
|
373
439
|
};
|
|
374
440
|
|
|
375
|
-
decoders.
|
|
441
|
+
decoders.BlockListResponse = (input?: Record<string, any>) => {
|
|
376
442
|
const typeMappings: TypeMapping = {
|
|
377
|
-
|
|
443
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
444
|
+
|
|
445
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
378
446
|
};
|
|
379
447
|
return decode(typeMappings, input);
|
|
380
448
|
};
|
|
381
449
|
|
|
382
|
-
decoders.
|
|
450
|
+
decoders.BlockUsersResponse = (input?: Record<string, any>) => {
|
|
383
451
|
const typeMappings: TypeMapping = {
|
|
384
452
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
453
|
+
};
|
|
454
|
+
return decode(typeMappings, input);
|
|
455
|
+
};
|
|
385
456
|
|
|
386
|
-
|
|
457
|
+
decoders.BlockedUserEvent = (input?: Record<string, any>) => {
|
|
458
|
+
const typeMappings: TypeMapping = {
|
|
459
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
387
460
|
|
|
388
|
-
|
|
461
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
462
|
+
|
|
463
|
+
blocked_by_user: { type: 'UserResponse', isSingle: true },
|
|
464
|
+
};
|
|
465
|
+
return decode(typeMappings, input);
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
decoders.BlockedUserResponse = (input?: Record<string, any>) => {
|
|
469
|
+
const typeMappings: TypeMapping = {
|
|
470
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
471
|
+
|
|
472
|
+
blocked_user: { type: 'UserResponse', isSingle: true },
|
|
473
|
+
|
|
474
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
475
|
+
};
|
|
476
|
+
return decode(typeMappings, input);
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
decoders.BookmarkAddedEvent = (input?: Record<string, any>) => {
|
|
480
|
+
const typeMappings: TypeMapping = {
|
|
481
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
482
|
+
|
|
483
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
484
|
+
|
|
485
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
486
|
+
|
|
487
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
488
|
+
};
|
|
489
|
+
return decode(typeMappings, input);
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
decoders.BookmarkDeletedEvent = (input?: Record<string, any>) => {
|
|
493
|
+
const typeMappings: TypeMapping = {
|
|
494
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
495
|
+
|
|
496
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
497
|
+
|
|
498
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
499
|
+
|
|
500
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
501
|
+
};
|
|
502
|
+
return decode(typeMappings, input);
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
decoders.BookmarkFolderDeletedEvent = (input?: Record<string, any>) => {
|
|
506
|
+
const typeMappings: TypeMapping = {
|
|
507
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
508
|
+
|
|
509
|
+
bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
510
|
+
|
|
511
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
512
|
+
|
|
513
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
514
|
+
};
|
|
515
|
+
return decode(typeMappings, input);
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {
|
|
519
|
+
const typeMappings: TypeMapping = {
|
|
520
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
521
|
+
|
|
522
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
523
|
+
};
|
|
524
|
+
return decode(typeMappings, input);
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
decoders.BookmarkFolderUpdatedEvent = (input?: Record<string, any>) => {
|
|
528
|
+
const typeMappings: TypeMapping = {
|
|
529
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
530
|
+
|
|
531
|
+
bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
532
|
+
|
|
533
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
534
|
+
|
|
535
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
536
|
+
};
|
|
537
|
+
return decode(typeMappings, input);
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
decoders.BookmarkResponse = (input?: Record<string, any>) => {
|
|
541
|
+
const typeMappings: TypeMapping = {
|
|
542
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
543
|
+
|
|
544
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
545
|
+
|
|
546
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
547
|
+
|
|
548
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
549
|
+
|
|
550
|
+
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
551
|
+
};
|
|
552
|
+
return decode(typeMappings, input);
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
decoders.BookmarkUpdatedEvent = (input?: Record<string, any>) => {
|
|
556
|
+
const typeMappings: TypeMapping = {
|
|
557
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
558
|
+
|
|
559
|
+
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
560
|
+
|
|
561
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
562
|
+
|
|
563
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
564
|
+
};
|
|
565
|
+
return decode(typeMappings, input);
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
decoders.CallAcceptedEvent = (input?: Record<string, any>) => {
|
|
569
|
+
const typeMappings: TypeMapping = {
|
|
570
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
571
|
+
|
|
572
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
573
|
+
|
|
574
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
575
|
+
};
|
|
576
|
+
return decode(typeMappings, input);
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
decoders.CallClosedCaptionsFailedEvent = (input?: Record<string, any>) => {
|
|
580
|
+
const typeMappings: TypeMapping = {
|
|
581
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
582
|
+
};
|
|
583
|
+
return decode(typeMappings, input);
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
decoders.CallClosedCaptionsStartedEvent = (input?: Record<string, any>) => {
|
|
587
|
+
const typeMappings: TypeMapping = {
|
|
588
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
589
|
+
};
|
|
590
|
+
return decode(typeMappings, input);
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
decoders.CallClosedCaptionsStoppedEvent = (input?: Record<string, any>) => {
|
|
594
|
+
const typeMappings: TypeMapping = {
|
|
595
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
596
|
+
};
|
|
597
|
+
return decode(typeMappings, input);
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
decoders.CallCreatedEvent = (input?: Record<string, any>) => {
|
|
601
|
+
const typeMappings: TypeMapping = {
|
|
602
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
603
|
+
|
|
604
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
605
|
+
|
|
606
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
607
|
+
};
|
|
608
|
+
return decode(typeMappings, input);
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
decoders.CallDeletedEvent = (input?: Record<string, any>) => {
|
|
612
|
+
const typeMappings: TypeMapping = {
|
|
613
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
614
|
+
|
|
615
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
616
|
+
};
|
|
617
|
+
return decode(typeMappings, input);
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
decoders.CallEndedEvent = (input?: Record<string, any>) => {
|
|
621
|
+
const typeMappings: TypeMapping = {
|
|
622
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
623
|
+
|
|
624
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
625
|
+
|
|
626
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
627
|
+
};
|
|
628
|
+
return decode(typeMappings, input);
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
decoders.CallFrameRecordingFailedEvent = (input?: Record<string, any>) => {
|
|
632
|
+
const typeMappings: TypeMapping = {
|
|
633
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
634
|
+
|
|
635
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
636
|
+
};
|
|
637
|
+
return decode(typeMappings, input);
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
decoders.CallFrameRecordingFrameReadyEvent = (input?: Record<string, any>) => {
|
|
641
|
+
const typeMappings: TypeMapping = {
|
|
642
|
+
captured_at: { type: 'DatetimeType', isSingle: true },
|
|
643
|
+
|
|
644
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
645
|
+
|
|
646
|
+
users: { type: 'UserResponse', isSingle: false },
|
|
647
|
+
};
|
|
648
|
+
return decode(typeMappings, input);
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
decoders.CallFrameRecordingStartedEvent = (input?: Record<string, any>) => {
|
|
652
|
+
const typeMappings: TypeMapping = {
|
|
653
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
654
|
+
|
|
655
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
656
|
+
};
|
|
657
|
+
return decode(typeMappings, input);
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
decoders.CallFrameRecordingStoppedEvent = (input?: Record<string, any>) => {
|
|
661
|
+
const typeMappings: TypeMapping = {
|
|
662
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
663
|
+
|
|
664
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
665
|
+
};
|
|
666
|
+
return decode(typeMappings, input);
|
|
667
|
+
};
|
|
668
|
+
|
|
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
|
+
};
|
|
675
|
+
|
|
676
|
+
decoders.CallHLSBroadcastingStartedEvent = (input?: Record<string, any>) => {
|
|
677
|
+
const typeMappings: TypeMapping = {
|
|
678
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
679
|
+
|
|
680
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
681
|
+
};
|
|
682
|
+
return decode(typeMappings, input);
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
decoders.CallHLSBroadcastingStoppedEvent = (input?: Record<string, any>) => {
|
|
686
|
+
const typeMappings: TypeMapping = {
|
|
687
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
688
|
+
};
|
|
689
|
+
return decode(typeMappings, input);
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
decoders.CallLiveStartedEvent = (input?: Record<string, any>) => {
|
|
693
|
+
const typeMappings: TypeMapping = {
|
|
694
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
695
|
+
|
|
696
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
697
|
+
};
|
|
698
|
+
return decode(typeMappings, input);
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
decoders.CallMemberAddedEvent = (input?: Record<string, any>) => {
|
|
702
|
+
const typeMappings: TypeMapping = {
|
|
703
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
704
|
+
|
|
705
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
706
|
+
|
|
707
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
708
|
+
};
|
|
709
|
+
return decode(typeMappings, input);
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
decoders.CallMemberRemovedEvent = (input?: Record<string, any>) => {
|
|
713
|
+
const typeMappings: TypeMapping = {
|
|
714
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
715
|
+
|
|
716
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
717
|
+
};
|
|
718
|
+
return decode(typeMappings, input);
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
decoders.CallMemberUpdatedEvent = (input?: Record<string, any>) => {
|
|
722
|
+
const typeMappings: TypeMapping = {
|
|
723
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
724
|
+
|
|
725
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
726
|
+
|
|
727
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
728
|
+
};
|
|
729
|
+
return decode(typeMappings, input);
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
decoders.CallMemberUpdatedPermissionEvent = (input?: Record<string, any>) => {
|
|
733
|
+
const typeMappings: TypeMapping = {
|
|
734
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
735
|
+
|
|
736
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
737
|
+
|
|
738
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
739
|
+
};
|
|
740
|
+
return decode(typeMappings, input);
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
decoders.CallMissedEvent = (input?: Record<string, any>) => {
|
|
744
|
+
const typeMappings: TypeMapping = {
|
|
745
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
746
|
+
|
|
747
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
748
|
+
|
|
749
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
750
|
+
|
|
751
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
752
|
+
};
|
|
753
|
+
return decode(typeMappings, input);
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
decoders.CallModerationBlurEvent = (input?: Record<string, any>) => {
|
|
757
|
+
const typeMappings: TypeMapping = {
|
|
758
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
759
|
+
};
|
|
760
|
+
return decode(typeMappings, input);
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
decoders.CallModerationWarningEvent = (input?: Record<string, any>) => {
|
|
764
|
+
const typeMappings: TypeMapping = {
|
|
765
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
766
|
+
};
|
|
767
|
+
return decode(typeMappings, input);
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
decoders.CallNotificationEvent = (input?: Record<string, any>) => {
|
|
771
|
+
const typeMappings: TypeMapping = {
|
|
772
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
773
|
+
|
|
774
|
+
members: { type: 'MemberResponse', isSingle: false },
|
|
775
|
+
|
|
776
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
777
|
+
|
|
778
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
779
|
+
};
|
|
780
|
+
return decode(typeMappings, input);
|
|
781
|
+
};
|
|
782
|
+
|
|
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>) => {
|
|
793
|
+
const typeMappings: TypeMapping = {
|
|
794
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
795
|
+
|
|
796
|
+
reaction: { type: 'ReactionResponse', isSingle: true },
|
|
797
|
+
};
|
|
798
|
+
return decode(typeMappings, input);
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
decoders.CallRecording = (input?: Record<string, any>) => {
|
|
802
|
+
const typeMappings: TypeMapping = {
|
|
803
|
+
end_time: { type: 'DatetimeType', isSingle: true },
|
|
804
|
+
|
|
805
|
+
start_time: { type: 'DatetimeType', isSingle: true },
|
|
806
|
+
};
|
|
807
|
+
return decode(typeMappings, input);
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
decoders.CallRecordingFailedEvent = (input?: Record<string, any>) => {
|
|
811
|
+
const typeMappings: TypeMapping = {
|
|
812
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
813
|
+
};
|
|
814
|
+
return decode(typeMappings, input);
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
decoders.CallRecordingReadyEvent = (input?: Record<string, any>) => {
|
|
818
|
+
const typeMappings: TypeMapping = {
|
|
819
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
820
|
+
|
|
821
|
+
call_recording: { type: 'CallRecording', isSingle: true },
|
|
822
|
+
};
|
|
823
|
+
return decode(typeMappings, input);
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
decoders.CallRecordingStartedEvent = (input?: Record<string, any>) => {
|
|
827
|
+
const typeMappings: TypeMapping = {
|
|
828
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
829
|
+
};
|
|
830
|
+
return decode(typeMappings, input);
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
decoders.CallRecordingStoppedEvent = (input?: Record<string, any>) => {
|
|
834
|
+
const typeMappings: TypeMapping = {
|
|
835
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
836
|
+
};
|
|
837
|
+
return decode(typeMappings, input);
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
decoders.CallRejectedEvent = (input?: Record<string, any>) => {
|
|
841
|
+
const typeMappings: TypeMapping = {
|
|
842
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
843
|
+
|
|
844
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
845
|
+
|
|
846
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
847
|
+
};
|
|
848
|
+
return decode(typeMappings, input);
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
decoders.CallReportResponse = (input?: Record<string, any>) => {
|
|
852
|
+
const typeMappings: TypeMapping = {
|
|
853
|
+
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
854
|
+
|
|
855
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
856
|
+
};
|
|
857
|
+
return decode(typeMappings, input);
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
decoders.CallResponse = (input?: Record<string, any>) => {
|
|
861
|
+
const typeMappings: TypeMapping = {
|
|
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 },
|
|
389
1353
|
|
|
390
1354
|
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
391
1355
|
|
|
392
|
-
|
|
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 },
|
|
393
1458
|
|
|
394
|
-
|
|
1459
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1460
|
+
};
|
|
1461
|
+
return decode(typeMappings, input);
|
|
1462
|
+
};
|
|
395
1463
|
|
|
396
|
-
|
|
1464
|
+
decoders.CommentAddedEvent = (input?: Record<string, any>) => {
|
|
1465
|
+
const typeMappings: TypeMapping = {
|
|
1466
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
397
1467
|
|
|
398
|
-
|
|
1468
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
399
1469
|
|
|
400
|
-
|
|
1470
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
401
1471
|
|
|
402
|
-
|
|
1472
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1473
|
+
};
|
|
1474
|
+
return decode(typeMappings, input);
|
|
1475
|
+
};
|
|
403
1476
|
|
|
404
|
-
|
|
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 },
|
|
405
1486
|
};
|
|
406
1487
|
return decode(typeMappings, input);
|
|
407
1488
|
};
|
|
408
1489
|
|
|
409
|
-
decoders.
|
|
1490
|
+
decoders.CommentReactionAddedEvent = (input?: Record<string, any>) => {
|
|
410
1491
|
const typeMappings: TypeMapping = {
|
|
411
|
-
|
|
1492
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
412
1493
|
|
|
413
|
-
|
|
1494
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
414
1495
|
|
|
415
|
-
|
|
1496
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
416
1497
|
|
|
417
|
-
|
|
1498
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
418
1499
|
|
|
419
|
-
|
|
1500
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1501
|
+
};
|
|
1502
|
+
return decode(typeMappings, input);
|
|
1503
|
+
};
|
|
420
1504
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
},
|
|
1505
|
+
decoders.CommentReactionDeletedEvent = (input?: Record<string, any>) => {
|
|
1506
|
+
const typeMappings: TypeMapping = {
|
|
1507
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
425
1508
|
|
|
426
|
-
|
|
1509
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
427
1510
|
|
|
428
|
-
|
|
1511
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
429
1512
|
|
|
430
|
-
|
|
1513
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1514
|
+
};
|
|
1515
|
+
return decode(typeMappings, input);
|
|
1516
|
+
};
|
|
431
1517
|
|
|
432
|
-
|
|
1518
|
+
decoders.CommentReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
1519
|
+
const typeMappings: TypeMapping = {
|
|
1520
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
433
1521
|
|
|
434
|
-
|
|
1522
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
435
1523
|
|
|
436
|
-
|
|
1524
|
+
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
437
1525
|
|
|
438
|
-
|
|
1526
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1527
|
+
|
|
1528
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
439
1529
|
};
|
|
440
1530
|
return decode(typeMappings, input);
|
|
441
1531
|
};
|
|
442
1532
|
|
|
443
|
-
decoders.
|
|
1533
|
+
decoders.CommentResponse = (input?: Record<string, any>) => {
|
|
444
1534
|
const typeMappings: TypeMapping = {
|
|
445
|
-
|
|
1535
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
446
1536
|
|
|
447
|
-
|
|
1537
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
448
1538
|
|
|
449
|
-
|
|
1539
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
450
1540
|
|
|
451
|
-
|
|
1541
|
+
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
452
1542
|
|
|
453
|
-
|
|
1543
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
454
1544
|
|
|
455
|
-
|
|
456
|
-
type: 'SharedLocationResponseData',
|
|
457
|
-
isSingle: false,
|
|
458
|
-
},
|
|
1545
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
459
1546
|
|
|
460
|
-
|
|
1547
|
+
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
461
1548
|
|
|
462
|
-
|
|
1549
|
+
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1550
|
+
};
|
|
1551
|
+
return decode(typeMappings, input);
|
|
1552
|
+
};
|
|
463
1553
|
|
|
464
|
-
|
|
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
|
+
};
|
|
465
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 = {
|
|
466
1705
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1706
|
+
};
|
|
1707
|
+
return decode(typeMappings, input);
|
|
1708
|
+
};
|
|
467
1709
|
|
|
468
|
-
|
|
1710
|
+
decoders.DeleteCommentReactionResponse = (input?: Record<string, any>) => {
|
|
1711
|
+
const typeMappings: TypeMapping = {
|
|
1712
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
469
1713
|
|
|
470
|
-
|
|
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
|
+
};
|
|
471
1748
|
|
|
472
|
-
|
|
1749
|
+
decoders.DraftPayloadResponse = (input?: Record<string, any>) => {
|
|
1750
|
+
const typeMappings: TypeMapping = {
|
|
1751
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
473
1752
|
};
|
|
474
1753
|
return decode(typeMappings, input);
|
|
475
1754
|
};
|
|
476
1755
|
|
|
477
|
-
decoders.
|
|
1756
|
+
decoders.DraftResponse = (input?: Record<string, any>) => {
|
|
478
1757
|
const typeMappings: TypeMapping = {
|
|
479
1758
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
480
1759
|
|
|
481
|
-
|
|
1760
|
+
message: { type: 'DraftPayloadResponse', isSingle: true },
|
|
482
1761
|
|
|
483
|
-
|
|
484
|
-
};
|
|
485
|
-
return decode(typeMappings, input);
|
|
486
|
-
};
|
|
1762
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
487
1763
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
1764
|
+
parent_message: { type: 'MessageResponse', isSingle: true },
|
|
1765
|
+
|
|
1766
|
+
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
491
1767
|
};
|
|
492
1768
|
return decode(typeMappings, input);
|
|
493
1769
|
};
|
|
494
1770
|
|
|
495
|
-
decoders.
|
|
1771
|
+
decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
496
1772
|
const typeMappings: TypeMapping = {
|
|
497
|
-
|
|
1773
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
498
1774
|
};
|
|
499
1775
|
return decode(typeMappings, input);
|
|
500
1776
|
};
|
|
501
1777
|
|
|
502
|
-
decoders.
|
|
1778
|
+
decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
503
1779
|
const typeMappings: TypeMapping = {
|
|
504
1780
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
505
1781
|
|
|
506
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
|
+
},
|
|
507
1800
|
};
|
|
508
1801
|
return decode(typeMappings, input);
|
|
509
1802
|
};
|
|
510
1803
|
|
|
511
|
-
decoders.
|
|
1804
|
+
decoders.EventHook = (input?: Record<string, any>) => {
|
|
512
1805
|
const typeMappings: TypeMapping = {
|
|
513
1806
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
514
1807
|
|
|
@@ -517,216 +1810,259 @@ decoders.ConfigResponse = (input?: Record<string, any>) => {
|
|
|
517
1810
|
return decode(typeMappings, input);
|
|
518
1811
|
};
|
|
519
1812
|
|
|
520
|
-
decoders.
|
|
1813
|
+
decoders.EventResponse = (input?: Record<string, any>) => {
|
|
521
1814
|
const typeMappings: TypeMapping = {
|
|
522
|
-
|
|
1815
|
+
event: { type: 'WSEvent', isSingle: true },
|
|
523
1816
|
};
|
|
524
1817
|
return decode(typeMappings, input);
|
|
525
1818
|
};
|
|
526
1819
|
|
|
527
|
-
decoders.
|
|
1820
|
+
decoders.ExportUserResponse = (input?: Record<string, any>) => {
|
|
528
1821
|
const typeMappings: TypeMapping = {
|
|
529
|
-
|
|
1822
|
+
messages: { type: 'MessageResponse', isSingle: false },
|
|
1823
|
+
|
|
1824
|
+
reactions: { type: 'ReactionResponse', isSingle: false },
|
|
1825
|
+
|
|
1826
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
530
1827
|
};
|
|
531
1828
|
return decode(typeMappings, input);
|
|
532
1829
|
};
|
|
533
1830
|
|
|
534
|
-
decoders.
|
|
1831
|
+
decoders.FeedCreatedEvent = (input?: Record<string, any>) => {
|
|
535
1832
|
const typeMappings: TypeMapping = {
|
|
536
1833
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
537
1834
|
|
|
538
|
-
|
|
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 },
|
|
539
1842
|
};
|
|
540
1843
|
return decode(typeMappings, input);
|
|
541
1844
|
};
|
|
542
1845
|
|
|
543
|
-
decoders.
|
|
1846
|
+
decoders.FeedDeletedEvent = (input?: Record<string, any>) => {
|
|
544
1847
|
const typeMappings: TypeMapping = {
|
|
545
1848
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
546
1849
|
|
|
547
|
-
|
|
1850
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1851
|
+
|
|
1852
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
548
1853
|
};
|
|
549
1854
|
return decode(typeMappings, input);
|
|
550
1855
|
};
|
|
551
1856
|
|
|
552
|
-
decoders.
|
|
1857
|
+
decoders.FeedGroupChangedEvent = (input?: Record<string, any>) => {
|
|
553
1858
|
const typeMappings: TypeMapping = {
|
|
554
|
-
|
|
1859
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1860
|
+
|
|
1861
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1862
|
+
|
|
1863
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
555
1864
|
};
|
|
556
1865
|
return decode(typeMappings, input);
|
|
557
1866
|
};
|
|
558
1867
|
|
|
559
|
-
decoders.
|
|
1868
|
+
decoders.FeedGroupDeletedEvent = (input?: Record<string, any>) => {
|
|
560
1869
|
const typeMappings: TypeMapping = {
|
|
561
|
-
|
|
1870
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1871
|
+
|
|
1872
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
562
1873
|
};
|
|
563
1874
|
return decode(typeMappings, input);
|
|
564
1875
|
};
|
|
565
1876
|
|
|
566
|
-
decoders.
|
|
1877
|
+
decoders.FeedGroupResponse = (input?: Record<string, any>) => {
|
|
567
1878
|
const typeMappings: TypeMapping = {
|
|
568
|
-
|
|
1879
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1880
|
+
|
|
1881
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
569
1882
|
};
|
|
570
1883
|
return decode(typeMappings, input);
|
|
571
1884
|
};
|
|
572
1885
|
|
|
573
|
-
decoders.
|
|
1886
|
+
decoders.FeedMemberAddedEvent = (input?: Record<string, any>) => {
|
|
574
1887
|
const typeMappings: TypeMapping = {
|
|
575
|
-
|
|
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 },
|
|
576
1895
|
};
|
|
577
1896
|
return decode(typeMappings, input);
|
|
578
1897
|
};
|
|
579
1898
|
|
|
580
|
-
decoders.
|
|
1899
|
+
decoders.FeedMemberRemovedEvent = (input?: Record<string, any>) => {
|
|
581
1900
|
const typeMappings: TypeMapping = {
|
|
582
|
-
|
|
1901
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1902
|
+
|
|
1903
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1904
|
+
|
|
1905
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
583
1906
|
};
|
|
584
1907
|
return decode(typeMappings, input);
|
|
585
1908
|
};
|
|
586
1909
|
|
|
587
|
-
decoders.
|
|
1910
|
+
decoders.FeedMemberResponse = (input?: Record<string, any>) => {
|
|
588
1911
|
const typeMappings: TypeMapping = {
|
|
1912
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1913
|
+
|
|
1914
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1915
|
+
|
|
589
1916
|
user: { type: 'UserResponse', isSingle: true },
|
|
1917
|
+
|
|
1918
|
+
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
1919
|
+
|
|
1920
|
+
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
590
1921
|
};
|
|
591
1922
|
return decode(typeMappings, input);
|
|
592
1923
|
};
|
|
593
1924
|
|
|
594
|
-
decoders.
|
|
1925
|
+
decoders.FeedMemberUpdatedEvent = (input?: Record<string, any>) => {
|
|
595
1926
|
const typeMappings: TypeMapping = {
|
|
596
|
-
|
|
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 },
|
|
597
1934
|
};
|
|
598
1935
|
return decode(typeMappings, input);
|
|
599
1936
|
};
|
|
600
1937
|
|
|
601
|
-
decoders.
|
|
1938
|
+
decoders.FeedResponse = (input?: Record<string, any>) => {
|
|
602
1939
|
const typeMappings: TypeMapping = {
|
|
603
|
-
|
|
1940
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1941
|
+
|
|
1942
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1943
|
+
|
|
1944
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
1945
|
+
|
|
1946
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
604
1947
|
};
|
|
605
1948
|
return decode(typeMappings, input);
|
|
606
1949
|
};
|
|
607
1950
|
|
|
608
|
-
decoders.
|
|
1951
|
+
decoders.FeedUpdatedEvent = (input?: Record<string, any>) => {
|
|
609
1952
|
const typeMappings: TypeMapping = {
|
|
610
|
-
|
|
1953
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1954
|
+
|
|
1955
|
+
feed: { type: 'FeedResponse', isSingle: true },
|
|
1956
|
+
|
|
1957
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1958
|
+
|
|
1959
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
611
1960
|
};
|
|
612
1961
|
return decode(typeMappings, input);
|
|
613
1962
|
};
|
|
614
1963
|
|
|
615
|
-
decoders.
|
|
1964
|
+
decoders.FeedViewResponse = (input?: Record<string, any>) => {
|
|
616
1965
|
const typeMappings: TypeMapping = {
|
|
617
|
-
|
|
1966
|
+
last_used_at: { type: 'DatetimeType', isSingle: true },
|
|
618
1967
|
|
|
619
|
-
|
|
1968
|
+
activity_selectors: { type: 'ActivitySelectorConfig', isSingle: false },
|
|
620
1969
|
};
|
|
621
1970
|
return decode(typeMappings, input);
|
|
622
1971
|
};
|
|
623
1972
|
|
|
624
|
-
decoders.
|
|
1973
|
+
decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
|
|
625
1974
|
const typeMappings: TypeMapping = {
|
|
626
1975
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1976
|
+
|
|
1977
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1978
|
+
|
|
1979
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
627
1980
|
};
|
|
628
1981
|
return decode(typeMappings, input);
|
|
629
1982
|
};
|
|
630
1983
|
|
|
631
|
-
decoders.
|
|
1984
|
+
decoders.FlagDetails = (input?: Record<string, any>) => {
|
|
632
1985
|
const typeMappings: TypeMapping = {
|
|
633
|
-
|
|
1986
|
+
automod: { type: 'AutomodDetails', isSingle: true },
|
|
634
1987
|
};
|
|
635
1988
|
return decode(typeMappings, input);
|
|
636
1989
|
};
|
|
637
1990
|
|
|
638
|
-
decoders.
|
|
1991
|
+
decoders.FlagFeedback = (input?: Record<string, any>) => {
|
|
639
1992
|
const typeMappings: TypeMapping = {
|
|
640
|
-
|
|
1993
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
641
1994
|
};
|
|
642
1995
|
return decode(typeMappings, input);
|
|
643
1996
|
};
|
|
644
1997
|
|
|
645
|
-
decoders.
|
|
1998
|
+
decoders.FlagUpdatedEvent = (input?: Record<string, any>) => {
|
|
646
1999
|
const typeMappings: TypeMapping = {
|
|
647
2000
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
648
2001
|
|
|
649
|
-
|
|
2002
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
650
2003
|
|
|
651
|
-
|
|
2004
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
652
2005
|
|
|
653
|
-
|
|
2006
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
654
2007
|
|
|
655
|
-
|
|
2008
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
656
2009
|
};
|
|
657
2010
|
return decode(typeMappings, input);
|
|
658
2011
|
};
|
|
659
2012
|
|
|
660
|
-
decoders.
|
|
2013
|
+
decoders.FollowBatchResponse = (input?: Record<string, any>) => {
|
|
661
2014
|
const typeMappings: TypeMapping = {
|
|
662
|
-
|
|
2015
|
+
follows: { type: 'FollowResponse', isSingle: false },
|
|
663
2016
|
};
|
|
664
2017
|
return decode(typeMappings, input);
|
|
665
2018
|
};
|
|
666
2019
|
|
|
667
|
-
decoders.
|
|
2020
|
+
decoders.FollowCreatedEvent = (input?: Record<string, any>) => {
|
|
668
2021
|
const typeMappings: TypeMapping = {
|
|
669
2022
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
670
2023
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
674
|
-
|
|
675
|
-
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
676
|
-
|
|
677
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
678
|
-
|
|
679
|
-
last_active: { type: 'DatetimeType', isSingle: true },
|
|
680
|
-
|
|
681
|
-
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
682
|
-
|
|
683
|
-
devices: { type: 'DeviceResponse', isSingle: false },
|
|
2024
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
684
2025
|
|
|
685
|
-
|
|
686
|
-
type: 'PushNotificationSettingsResponse',
|
|
687
|
-
isSingle: true,
|
|
688
|
-
},
|
|
2026
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
689
2027
|
};
|
|
690
2028
|
return decode(typeMappings, input);
|
|
691
2029
|
};
|
|
692
2030
|
|
|
693
|
-
decoders.
|
|
2031
|
+
decoders.FollowDeletedEvent = (input?: Record<string, any>) => {
|
|
694
2032
|
const typeMappings: TypeMapping = {
|
|
695
2033
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
696
2034
|
|
|
697
|
-
|
|
698
|
-
};
|
|
699
|
-
return decode(typeMappings, input);
|
|
700
|
-
};
|
|
2035
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
701
2036
|
|
|
702
|
-
|
|
703
|
-
const typeMappings: TypeMapping = {
|
|
704
|
-
event: { type: 'WSEvent', isSingle: true },
|
|
2037
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
705
2038
|
};
|
|
706
2039
|
return decode(typeMappings, input);
|
|
707
2040
|
};
|
|
708
2041
|
|
|
709
|
-
decoders.
|
|
2042
|
+
decoders.FollowResponse = (input?: Record<string, any>) => {
|
|
710
2043
|
const typeMappings: TypeMapping = {
|
|
711
|
-
|
|
2044
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
712
2045
|
|
|
713
|
-
|
|
2046
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
714
2047
|
|
|
715
|
-
|
|
716
|
-
};
|
|
717
|
-
return decode(typeMappings, input);
|
|
718
|
-
};
|
|
2048
|
+
source_feed: { type: 'FeedResponse', isSingle: true },
|
|
719
2049
|
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
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 },
|
|
723
2055
|
};
|
|
724
2056
|
return decode(typeMappings, input);
|
|
725
2057
|
};
|
|
726
2058
|
|
|
727
|
-
decoders.
|
|
2059
|
+
decoders.FollowUpdatedEvent = (input?: Record<string, any>) => {
|
|
728
2060
|
const typeMappings: TypeMapping = {
|
|
729
2061
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2062
|
+
|
|
2063
|
+
follow: { type: 'FollowResponse', isSingle: true },
|
|
2064
|
+
|
|
2065
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
730
2066
|
};
|
|
731
2067
|
return decode(typeMappings, input);
|
|
732
2068
|
};
|
|
@@ -765,6 +2101,13 @@ decoders.GetActiveCallsStatusResponse = (input?: Record<string, any>) => {
|
|
|
765
2101
|
return decode(typeMappings, input);
|
|
766
2102
|
};
|
|
767
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
|
+
|
|
768
2111
|
decoders.GetApplicationResponse = (input?: Record<string, any>) => {
|
|
769
2112
|
const typeMappings: TypeMapping = {
|
|
770
2113
|
app: { type: 'AppResponseFields', isSingle: true },
|
|
@@ -833,6 +2176,27 @@ decoders.GetCommandResponse = (input?: Record<string, any>) => {
|
|
|
833
2176
|
return decode(typeMappings, input);
|
|
834
2177
|
};
|
|
835
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
|
+
|
|
836
2200
|
decoders.GetConfigResponse = (input?: Record<string, any>) => {
|
|
837
2201
|
const typeMappings: TypeMapping = {
|
|
838
2202
|
config: { type: 'ConfigResponse', isSingle: true },
|
|
@@ -847,6 +2211,27 @@ decoders.GetDraftResponse = (input?: Record<string, any>) => {
|
|
|
847
2211
|
return decode(typeMappings, input);
|
|
848
2212
|
};
|
|
849
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
|
+
|
|
850
2235
|
decoders.GetImportResponse = (input?: Record<string, any>) => {
|
|
851
2236
|
const typeMappings: TypeMapping = {
|
|
852
2237
|
import_task: { type: 'ImportTask', isSingle: true },
|
|
@@ -877,6 +2262,34 @@ decoders.GetOrCreateCallResponse = (input?: Record<string, any>) => {
|
|
|
877
2262
|
return decode(typeMappings, input);
|
|
878
2263
|
};
|
|
879
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
|
+
|
|
880
2293
|
decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
|
|
881
2294
|
const typeMappings: TypeMapping = {
|
|
882
2295
|
templates: { type: 'PushTemplate', isSingle: false },
|
|
@@ -988,6 +2401,20 @@ decoders.ListDevicesResponse = (input?: Record<string, any>) => {
|
|
|
988
2401
|
return decode(typeMappings, input);
|
|
989
2402
|
};
|
|
990
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
|
+
|
|
991
2418
|
decoders.ListImportsResponse = (input?: Record<string, any>) => {
|
|
992
2419
|
const typeMappings: TypeMapping = {
|
|
993
2420
|
import_tasks: { type: 'ImportTask', isSingle: false },
|
|
@@ -1030,6 +2457,28 @@ decoders.MarkReadResponse = (input?: Record<string, any>) => {
|
|
|
1030
2457
|
return decode(typeMappings, input);
|
|
1031
2458
|
};
|
|
1032
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
|
+
|
|
1033
2482
|
decoders.MemberResponse = (input?: Record<string, any>) => {
|
|
1034
2483
|
const typeMappings: TypeMapping = {
|
|
1035
2484
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1043,6 +2492,17 @@ decoders.MemberResponse = (input?: Record<string, any>) => {
|
|
|
1043
2492
|
return decode(typeMappings, input);
|
|
1044
2493
|
};
|
|
1045
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
|
+
|
|
1046
2506
|
decoders.MembersResponse = (input?: Record<string, any>) => {
|
|
1047
2507
|
const typeMappings: TypeMapping = {
|
|
1048
2508
|
members: { type: 'ChannelMember', isSingle: false },
|
|
@@ -1089,6 +2549,19 @@ decoders.Message = (input?: Record<string, any>) => {
|
|
|
1089
2549
|
return decode(typeMappings, input);
|
|
1090
2550
|
};
|
|
1091
2551
|
|
|
2552
|
+
decoders.MessageDeletedEvent = (input?: Record<string, any>) => {
|
|
2553
|
+
const typeMappings: TypeMapping = {
|
|
2554
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2555
|
+
|
|
2556
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
2557
|
+
|
|
2558
|
+
message: { type: 'Message', isSingle: true },
|
|
2559
|
+
|
|
2560
|
+
user: { type: 'User', isSingle: true },
|
|
2561
|
+
};
|
|
2562
|
+
return decode(typeMappings, input);
|
|
2563
|
+
};
|
|
2564
|
+
|
|
1092
2565
|
decoders.MessageFlagResponse = (input?: Record<string, any>) => {
|
|
1093
2566
|
const typeMappings: TypeMapping = {
|
|
1094
2567
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1116,6 +2589,19 @@ decoders.MessageFlagResponse = (input?: Record<string, any>) => {
|
|
|
1116
2589
|
return decode(typeMappings, input);
|
|
1117
2590
|
};
|
|
1118
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
|
+
|
|
1119
2605
|
decoders.MessageHistoryEntryResponse = (input?: Record<string, any>) => {
|
|
1120
2606
|
const typeMappings: TypeMapping = {
|
|
1121
2607
|
message_updated_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1132,6 +2618,19 @@ decoders.MessageModerationResult = (input?: Record<string, any>) => {
|
|
|
1132
2618
|
return decode(typeMappings, input);
|
|
1133
2619
|
};
|
|
1134
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
|
+
|
|
1135
2634
|
decoders.MessageReadEvent = (input?: Record<string, any>) => {
|
|
1136
2635
|
const typeMappings: TypeMapping = {
|
|
1137
2636
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1210,6 +2709,45 @@ decoders.MessageStatsResponse = (input?: Record<string, any>) => {
|
|
|
1210
2709
|
return decode(typeMappings, input);
|
|
1211
2710
|
};
|
|
1212
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
|
+
|
|
1213
2751
|
decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
1214
2752
|
const typeMappings: TypeMapping = {
|
|
1215
2753
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1253,6 +2791,26 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
1253
2791
|
return decode(typeMappings, input);
|
|
1254
2792
|
};
|
|
1255
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 },
|
|
2810
|
+
};
|
|
2811
|
+
return decode(typeMappings, input);
|
|
2812
|
+
};
|
|
2813
|
+
|
|
1256
2814
|
decoders.ModerationFlagResponse = (input?: Record<string, any>) => {
|
|
1257
2815
|
const typeMappings: TypeMapping = {
|
|
1258
2816
|
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
@@ -1262,6 +2820,26 @@ decoders.ModerationFlagResponse = (input?: Record<string, any>) => {
|
|
|
1262
2820
|
return decode(typeMappings, input);
|
|
1263
2821
|
};
|
|
1264
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
|
+
|
|
1265
2843
|
decoders.MuteChannelResponse = (input?: Record<string, any>) => {
|
|
1266
2844
|
const typeMappings: TypeMapping = {
|
|
1267
2845
|
channel_mutes: { type: 'ChannelMute', isSingle: false },
|
|
@@ -1282,6 +2860,26 @@ decoders.MuteResponse = (input?: Record<string, any>) => {
|
|
|
1282
2860
|
return decode(typeMappings, input);
|
|
1283
2861
|
};
|
|
1284
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
|
+
|
|
1285
2883
|
decoders.OwnUser = (input?: Record<string, any>) => {
|
|
1286
2884
|
const typeMappings: TypeMapping = {
|
|
1287
2885
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1346,6 +2944,21 @@ decoders.ParticipantCountOverTimeResponse = (input?: Record<string, any>) => {
|
|
|
1346
2944
|
return decode(typeMappings, input);
|
|
1347
2945
|
};
|
|
1348
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
|
+
|
|
1349
2962
|
decoders.PendingMessageResponse = (input?: Record<string, any>) => {
|
|
1350
2963
|
const typeMappings: TypeMapping = {
|
|
1351
2964
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
@@ -1357,6 +2970,24 @@ decoders.PendingMessageResponse = (input?: Record<string, any>) => {
|
|
|
1357
2970
|
return decode(typeMappings, input);
|
|
1358
2971
|
};
|
|
1359
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
|
+
|
|
1360
2991
|
decoders.Poll = (input?: Record<string, any>) => {
|
|
1361
2992
|
const typeMappings: TypeMapping = {
|
|
1362
2993
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1484,6 +3115,20 @@ decoders.PushTemplate = (input?: Record<string, any>) => {
|
|
|
1484
3115
|
return decode(typeMappings, input);
|
|
1485
3116
|
};
|
|
1486
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
|
+
|
|
1487
3132
|
decoders.QueryBannedUsersResponse = (input?: Record<string, any>) => {
|
|
1488
3133
|
const typeMappings: TypeMapping = {
|
|
1489
3134
|
bans: { type: 'BanResponse', isSingle: false },
|
|
@@ -1491,6 +3136,20 @@ decoders.QueryBannedUsersResponse = (input?: Record<string, any>) => {
|
|
|
1491
3136
|
return decode(typeMappings, input);
|
|
1492
3137
|
};
|
|
1493
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
|
+
|
|
1494
3153
|
decoders.QueryCallMembersResponse = (input?: Record<string, any>) => {
|
|
1495
3154
|
const typeMappings: TypeMapping = {
|
|
1496
3155
|
members: { type: 'MemberResponse', isSingle: false },
|
|
@@ -1537,6 +3196,20 @@ decoders.QueryChannelsResponse = (input?: Record<string, any>) => {
|
|
|
1537
3196
|
return decode(typeMappings, input);
|
|
1538
3197
|
};
|
|
1539
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
|
+
|
|
1540
3213
|
decoders.QueryDraftsResponse = (input?: Record<string, any>) => {
|
|
1541
3214
|
const typeMappings: TypeMapping = {
|
|
1542
3215
|
drafts: { type: 'DraftResponse', isSingle: false },
|
|
@@ -1544,6 +3217,13 @@ decoders.QueryDraftsResponse = (input?: Record<string, any>) => {
|
|
|
1544
3217
|
return decode(typeMappings, input);
|
|
1545
3218
|
};
|
|
1546
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
|
+
|
|
1547
3227
|
decoders.QueryFeedModerationTemplate = (input?: Record<string, any>) => {
|
|
1548
3228
|
const typeMappings: TypeMapping = {
|
|
1549
3229
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1562,6 +3242,20 @@ decoders.QueryFeedModerationTemplatesResponse = (
|
|
|
1562
3242
|
return decode(typeMappings, input);
|
|
1563
3243
|
};
|
|
1564
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
|
+
|
|
1565
3259
|
decoders.QueryMessageFlagsResponse = (input?: Record<string, any>) => {
|
|
1566
3260
|
const typeMappings: TypeMapping = {
|
|
1567
3261
|
flags: { type: 'MessageFlagResponse', isSingle: false },
|
|
@@ -1646,40 +3340,83 @@ decoders.QueryThreadsResponse = (input?: Record<string, any>) => {
|
|
|
1646
3340
|
return decode(typeMappings, input);
|
|
1647
3341
|
};
|
|
1648
3342
|
|
|
1649
|
-
decoders.QueryUsersResponse = (input?: Record<string, any>) => {
|
|
3343
|
+
decoders.QueryUsersResponse = (input?: Record<string, any>) => {
|
|
3344
|
+
const typeMappings: TypeMapping = {
|
|
3345
|
+
users: { type: 'FullUserResponse', isSingle: false },
|
|
3346
|
+
};
|
|
3347
|
+
return decode(typeMappings, input);
|
|
3348
|
+
};
|
|
3349
|
+
|
|
3350
|
+
decoders.Reaction = (input?: Record<string, any>) => {
|
|
3351
|
+
const typeMappings: TypeMapping = {
|
|
3352
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3353
|
+
|
|
3354
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3355
|
+
|
|
3356
|
+
user: { type: 'User', isSingle: true },
|
|
3357
|
+
};
|
|
3358
|
+
return decode(typeMappings, input);
|
|
3359
|
+
};
|
|
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
|
+
|
|
3376
|
+
decoders.ReactionGroupResponse = (input?: Record<string, any>) => {
|
|
1650
3377
|
const typeMappings: TypeMapping = {
|
|
1651
|
-
|
|
3378
|
+
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
3379
|
+
|
|
3380
|
+
last_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
1652
3381
|
};
|
|
1653
3382
|
return decode(typeMappings, input);
|
|
1654
3383
|
};
|
|
1655
3384
|
|
|
1656
|
-
decoders.
|
|
3385
|
+
decoders.ReactionNewEvent = (input?: Record<string, any>) => {
|
|
1657
3386
|
const typeMappings: TypeMapping = {
|
|
1658
3387
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1659
3388
|
|
|
1660
|
-
|
|
3389
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
3390
|
+
|
|
3391
|
+
message: { type: 'Message', isSingle: true },
|
|
3392
|
+
|
|
3393
|
+
reaction: { type: 'Reaction', isSingle: true },
|
|
1661
3394
|
|
|
1662
3395
|
user: { type: 'User', isSingle: true },
|
|
1663
3396
|
};
|
|
1664
3397
|
return decode(typeMappings, input);
|
|
1665
3398
|
};
|
|
1666
3399
|
|
|
1667
|
-
decoders.
|
|
3400
|
+
decoders.ReactionResponse = (input?: Record<string, any>) => {
|
|
1668
3401
|
const typeMappings: TypeMapping = {
|
|
1669
|
-
|
|
3402
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1670
3403
|
|
|
1671
|
-
|
|
3404
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3405
|
+
|
|
3406
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1672
3407
|
};
|
|
1673
3408
|
return decode(typeMappings, input);
|
|
1674
3409
|
};
|
|
1675
3410
|
|
|
1676
|
-
decoders.
|
|
3411
|
+
decoders.ReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
1677
3412
|
const typeMappings: TypeMapping = {
|
|
1678
3413
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1679
3414
|
|
|
1680
|
-
|
|
3415
|
+
message: { type: 'Message', isSingle: true },
|
|
1681
3416
|
|
|
1682
|
-
|
|
3417
|
+
reaction: { type: 'Reaction', isSingle: true },
|
|
3418
|
+
|
|
3419
|
+
user: { type: 'User', isSingle: true },
|
|
1683
3420
|
};
|
|
1684
3421
|
return decode(typeMappings, input);
|
|
1685
3422
|
};
|
|
@@ -1700,6 +3437,20 @@ decoders.ReadStateResponse = (input?: Record<string, any>) => {
|
|
|
1700
3437
|
return decode(typeMappings, input);
|
|
1701
3438
|
};
|
|
1702
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
|
+
|
|
1703
3454
|
decoders.ReminderResponseData = (input?: Record<string, any>) => {
|
|
1704
3455
|
const typeMappings: TypeMapping = {
|
|
1705
3456
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1717,6 +3468,19 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
|
|
|
1717
3468
|
return decode(typeMappings, input);
|
|
1718
3469
|
};
|
|
1719
3470
|
|
|
3471
|
+
decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
|
|
3472
|
+
const typeMappings: TypeMapping = {
|
|
3473
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3474
|
+
|
|
3475
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3476
|
+
|
|
3477
|
+
action: { type: 'ActionLogResponse', isSingle: true },
|
|
3478
|
+
|
|
3479
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
3480
|
+
};
|
|
3481
|
+
return decode(typeMappings, input);
|
|
3482
|
+
};
|
|
3483
|
+
|
|
1720
3484
|
decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
1721
3485
|
const typeMappings: TypeMapping = {
|
|
1722
3486
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1746,6 +3510,19 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
1746
3510
|
return decode(typeMappings, input);
|
|
1747
3511
|
};
|
|
1748
3512
|
|
|
3513
|
+
decoders.ReviewQueueItemUpdatedEvent = (input?: Record<string, any>) => {
|
|
3514
|
+
const typeMappings: TypeMapping = {
|
|
3515
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3516
|
+
|
|
3517
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3518
|
+
|
|
3519
|
+
action: { type: 'ActionLogResponse', isSingle: true },
|
|
3520
|
+
|
|
3521
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
3522
|
+
};
|
|
3523
|
+
return decode(typeMappings, input);
|
|
3524
|
+
};
|
|
3525
|
+
|
|
1749
3526
|
decoders.Role = (input?: Record<string, any>) => {
|
|
1750
3527
|
const typeMappings: TypeMapping = {
|
|
1751
3528
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1905,6 +3682,13 @@ decoders.SharedLocationsResponse = (input?: Record<string, any>) => {
|
|
|
1905
3682
|
return decode(typeMappings, input);
|
|
1906
3683
|
};
|
|
1907
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
|
+
|
|
1908
3692
|
decoders.StopLiveResponse = (input?: Record<string, any>) => {
|
|
1909
3693
|
const typeMappings: TypeMapping = {
|
|
1910
3694
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -1982,6 +3766,40 @@ decoders.ThreadStateResponse = (input?: Record<string, any>) => {
|
|
|
1982
3766
|
return decode(typeMappings, input);
|
|
1983
3767
|
};
|
|
1984
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
|
+
|
|
1985
3803
|
decoders.TruncateChannelResponse = (input?: Record<string, any>) => {
|
|
1986
3804
|
const typeMappings: TypeMapping = {
|
|
1987
3805
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
@@ -1991,6 +3809,22 @@ decoders.TruncateChannelResponse = (input?: Record<string, any>) => {
|
|
|
1991
3809
|
return decode(typeMappings, input);
|
|
1992
3810
|
};
|
|
1993
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
|
+
|
|
1994
3828
|
decoders.UnreadCountsBatchResponse = (input?: Record<string, any>) => {
|
|
1995
3829
|
const typeMappings: TypeMapping = {
|
|
1996
3830
|
counts_by_user: { type: 'UnreadCountsResponse', isSingle: false },
|
|
@@ -2021,6 +3855,20 @@ decoders.UnreadCountsThread = (input?: Record<string, any>) => {
|
|
|
2021
3855
|
return decode(typeMappings, input);
|
|
2022
3856
|
};
|
|
2023
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
|
+
|
|
2024
3872
|
decoders.UpdateBlockListResponse = (input?: Record<string, any>) => {
|
|
2025
3873
|
const typeMappings: TypeMapping = {
|
|
2026
3874
|
blocklist: { type: 'BlockListResponse', isSingle: true },
|
|
@@ -2028,6 +3876,20 @@ decoders.UpdateBlockListResponse = (input?: Record<string, any>) => {
|
|
|
2028
3876
|
return decode(typeMappings, input);
|
|
2029
3877
|
};
|
|
2030
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
|
+
|
|
2031
3893
|
decoders.UpdateCallMembersResponse = (input?: Record<string, any>) => {
|
|
2032
3894
|
const typeMappings: TypeMapping = {
|
|
2033
3895
|
members: { type: 'MemberResponse', isSingle: false },
|
|
@@ -2089,6 +3951,50 @@ decoders.UpdateCommandResponse = (input?: Record<string, any>) => {
|
|
|
2089
3951
|
return decode(typeMappings, input);
|
|
2090
3952
|
};
|
|
2091
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
|
+
|
|
2092
3998
|
decoders.UpdateMemberPartialResponse = (input?: Record<string, any>) => {
|
|
2093
3999
|
const typeMappings: TypeMapping = {
|
|
2094
4000
|
channel_member: { type: 'ChannelMemberResponse', isSingle: true },
|
|
@@ -2131,6 +4037,22 @@ decoders.UpdateUsersResponse = (input?: Record<string, any>) => {
|
|
|
2131
4037
|
return decode(typeMappings, input);
|
|
2132
4038
|
};
|
|
2133
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
|
+
|
|
2134
4056
|
decoders.UpsertConfigResponse = (input?: Record<string, any>) => {
|
|
2135
4057
|
const typeMappings: TypeMapping = {
|
|
2136
4058
|
config: { type: 'ConfigResponse', isSingle: true },
|
|
@@ -2189,6 +4111,48 @@ decoders.User = (input?: Record<string, any>) => {
|
|
|
2189
4111
|
return decode(typeMappings, input);
|
|
2190
4112
|
};
|
|
2191
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
|
+
|
|
2192
4156
|
decoders.UserMute = (input?: Record<string, any>) => {
|
|
2193
4157
|
const typeMappings: TypeMapping = {
|
|
2194
4158
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2219,6 +4183,24 @@ decoders.UserMuteResponse = (input?: Record<string, any>) => {
|
|
|
2219
4183
|
return decode(typeMappings, input);
|
|
2220
4184
|
};
|
|
2221
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
|
+
|
|
2222
4204
|
decoders.UserResponse = (input?: Record<string, any>) => {
|
|
2223
4205
|
const typeMappings: TypeMapping = {
|
|
2224
4206
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2262,6 +4244,42 @@ decoders.UserResponseCommonFields = (input?: Record<string, any>) => {
|
|
|
2262
4244
|
return decode(typeMappings, input);
|
|
2263
4245
|
};
|
|
2264
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
|
+
|
|
2265
4283
|
decoders.VideoReactionOverTimeResponse = (input?: Record<string, any>) => {
|
|
2266
4284
|
const typeMappings: TypeMapping = {
|
|
2267
4285
|
by_minute: { type: 'CountByMinuteResponse', isSingle: false },
|