@stream-io/node-sdk 0.7.48 → 0.7.49
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 +93 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +93 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +4 -1
- package/dist/src/gen/models/index.d.ts +7243 -7
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +35 -0
- package/src/gen/model-decoders/decoders.ts +101 -2
- package/src/gen/models/index.ts +7457 -9
package/package.json
CHANGED
|
@@ -129,6 +129,8 @@ import {
|
|
|
129
129
|
UpdateBookmarkResponse,
|
|
130
130
|
UpdateCollectionsRequest,
|
|
131
131
|
UpdateCollectionsResponse,
|
|
132
|
+
UpdateCommentPartialRequest,
|
|
133
|
+
UpdateCommentPartialResponse,
|
|
132
134
|
UpdateCommentRequest,
|
|
133
135
|
UpdateCommentResponse,
|
|
134
136
|
UpdateFeedGroupRequest,
|
|
@@ -1188,6 +1190,39 @@ export class FeedsApi {
|
|
|
1188
1190
|
return { ...response.body, metadata: response.metadata };
|
|
1189
1191
|
}
|
|
1190
1192
|
|
|
1193
|
+
async updateCommentPartial(
|
|
1194
|
+
request: UpdateCommentPartialRequest & { id: string },
|
|
1195
|
+
): Promise<StreamResponse<UpdateCommentPartialResponse>> {
|
|
1196
|
+
const pathParams = {
|
|
1197
|
+
id: request?.id,
|
|
1198
|
+
};
|
|
1199
|
+
const body = {
|
|
1200
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
1201
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
1202
|
+
skip_enrich_url: request?.skip_enrich_url,
|
|
1203
|
+
skip_push: request?.skip_push,
|
|
1204
|
+
user_id: request?.user_id,
|
|
1205
|
+
unset: request?.unset,
|
|
1206
|
+
set: request?.set,
|
|
1207
|
+
user: request?.user,
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
const response = await this.apiClient.sendRequest<
|
|
1211
|
+
StreamResponse<UpdateCommentPartialResponse>
|
|
1212
|
+
>(
|
|
1213
|
+
'POST',
|
|
1214
|
+
'/api/v2/feeds/comments/{id}/partial',
|
|
1215
|
+
pathParams,
|
|
1216
|
+
undefined,
|
|
1217
|
+
body,
|
|
1218
|
+
'application/json',
|
|
1219
|
+
);
|
|
1220
|
+
|
|
1221
|
+
decoders.UpdateCommentPartialResponse?.(response.body);
|
|
1222
|
+
|
|
1223
|
+
return { ...response.body, metadata: response.metadata };
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1191
1226
|
async addCommentReaction(
|
|
1192
1227
|
request: AddCommentReactionRequest & { id: string },
|
|
1193
1228
|
): Promise<StreamResponse<AddCommentReactionResponse>> {
|
|
@@ -1986,6 +1986,15 @@ decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
|
1986
1986
|
return decode(typeMappings, input);
|
|
1987
1987
|
};
|
|
1988
1988
|
|
|
1989
|
+
decoders.EnrichedCollection = (input?: Record<string, any>) => {
|
|
1990
|
+
const typeMappings: TypeMapping = {
|
|
1991
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1992
|
+
|
|
1993
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1994
|
+
};
|
|
1995
|
+
return decode(typeMappings, input);
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1989
1998
|
decoders.EnrichedCollectionResponse = (input?: Record<string, any>) => {
|
|
1990
1999
|
const typeMappings: TypeMapping = {
|
|
1991
2000
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2247,6 +2256,15 @@ decoders.FeedViewResponse = (input?: Record<string, any>) => {
|
|
|
2247
2256
|
return decode(typeMappings, input);
|
|
2248
2257
|
};
|
|
2249
2258
|
|
|
2259
|
+
decoders.FeedsReactionGroup = (input?: Record<string, any>) => {
|
|
2260
|
+
const typeMappings: TypeMapping = {
|
|
2261
|
+
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
2262
|
+
|
|
2263
|
+
last_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
2264
|
+
};
|
|
2265
|
+
return decode(typeMappings, input);
|
|
2266
|
+
};
|
|
2267
|
+
|
|
2250
2268
|
decoders.FeedsReactionGroupResponse = (input?: Record<string, any>) => {
|
|
2251
2269
|
const typeMappings: TypeMapping = {
|
|
2252
2270
|
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2267,6 +2285,48 @@ decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
|
|
|
2267
2285
|
return decode(typeMappings, input);
|
|
2268
2286
|
};
|
|
2269
2287
|
|
|
2288
|
+
decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
|
|
2289
|
+
const typeMappings: TypeMapping = {
|
|
2290
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2291
|
+
|
|
2292
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2293
|
+
|
|
2294
|
+
comments: { type: 'FeedsV3CommentResponse', isSingle: false },
|
|
2295
|
+
|
|
2296
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
2297
|
+
|
|
2298
|
+
collections: { type: 'EnrichedCollection', isSingle: false },
|
|
2299
|
+
|
|
2300
|
+
reaction_groups: { type: 'FeedsReactionGroup', isSingle: false },
|
|
2301
|
+
|
|
2302
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
2303
|
+
|
|
2304
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
2305
|
+
|
|
2306
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
2307
|
+
|
|
2308
|
+
expires_at: { type: 'DatetimeType', isSingle: true },
|
|
2309
|
+
};
|
|
2310
|
+
return decode(typeMappings, input);
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
decoders.FeedsV3CommentResponse = (input?: Record<string, any>) => {
|
|
2314
|
+
const typeMappings: TypeMapping = {
|
|
2315
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2316
|
+
|
|
2317
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2318
|
+
|
|
2319
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
2320
|
+
|
|
2321
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
2322
|
+
|
|
2323
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
2324
|
+
|
|
2325
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
2326
|
+
};
|
|
2327
|
+
return decode(typeMappings, input);
|
|
2328
|
+
};
|
|
2329
|
+
|
|
2270
2330
|
decoders.FlagDetailsResponse = (input?: Record<string, any>) => {
|
|
2271
2331
|
const typeMappings: TypeMapping = {
|
|
2272
2332
|
automod: { type: 'AutomodDetailsResponse', isSingle: true },
|
|
@@ -2656,6 +2716,13 @@ decoders.GetRepliesResponse = (input?: Record<string, any>) => {
|
|
|
2656
2716
|
return decode(typeMappings, input);
|
|
2657
2717
|
};
|
|
2658
2718
|
|
|
2719
|
+
decoders.GetRetentionPolicyResponse = (input?: Record<string, any>) => {
|
|
2720
|
+
const typeMappings: TypeMapping = {
|
|
2721
|
+
policies: { type: 'RetentionPolicy', isSingle: false },
|
|
2722
|
+
};
|
|
2723
|
+
return decode(typeMappings, input);
|
|
2724
|
+
};
|
|
2725
|
+
|
|
2659
2726
|
decoders.GetReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
2660
2727
|
const typeMappings: TypeMapping = {
|
|
2661
2728
|
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
@@ -3939,6 +4006,17 @@ decoders.ReactionGroupResponse = (input?: Record<string, any>) => {
|
|
|
3939
4006
|
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
3940
4007
|
|
|
3941
4008
|
last_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
4009
|
+
|
|
4010
|
+
latest_reactions_by: { type: 'ReactionGroupUserResponse', isSingle: false },
|
|
4011
|
+
};
|
|
4012
|
+
return decode(typeMappings, input);
|
|
4013
|
+
};
|
|
4014
|
+
|
|
4015
|
+
decoders.ReactionGroupUserResponse = (input?: Record<string, any>) => {
|
|
4016
|
+
const typeMappings: TypeMapping = {
|
|
4017
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4018
|
+
|
|
4019
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
3942
4020
|
};
|
|
3943
4021
|
return decode(typeMappings, input);
|
|
3944
4022
|
};
|
|
@@ -4129,6 +4207,13 @@ decoders.RestoreFeedGroupResponse = (input?: Record<string, any>) => {
|
|
|
4129
4207
|
return decode(typeMappings, input);
|
|
4130
4208
|
};
|
|
4131
4209
|
|
|
4210
|
+
decoders.RetentionPolicy = (input?: Record<string, any>) => {
|
|
4211
|
+
const typeMappings: TypeMapping = {
|
|
4212
|
+
enabled_at: { type: 'DatetimeType', isSingle: true },
|
|
4213
|
+
};
|
|
4214
|
+
return decode(typeMappings, input);
|
|
4215
|
+
};
|
|
4216
|
+
|
|
4132
4217
|
decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
|
|
4133
4218
|
const typeMappings: TypeMapping = {
|
|
4134
4219
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -4170,9 +4255,9 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
4170
4255
|
|
|
4171
4256
|
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
|
|
4172
4257
|
|
|
4173
|
-
feeds_v3_activity: { type: '
|
|
4258
|
+
feeds_v3_activity: { type: 'FeedsV3ActivityResponse', isSingle: true },
|
|
4174
4259
|
|
|
4175
|
-
feeds_v3_comment: { type: '
|
|
4260
|
+
feeds_v3_comment: { type: 'FeedsV3CommentResponse', isSingle: true },
|
|
4176
4261
|
|
|
4177
4262
|
message: { type: 'MessageResponse', isSingle: true },
|
|
4178
4263
|
|
|
@@ -4334,6 +4419,13 @@ decoders.SessionWarningResponse = (input?: Record<string, any>) => {
|
|
|
4334
4419
|
return decode(typeMappings, input);
|
|
4335
4420
|
};
|
|
4336
4421
|
|
|
4422
|
+
decoders.SetRetentionPolicyResponse = (input?: Record<string, any>) => {
|
|
4423
|
+
const typeMappings: TypeMapping = {
|
|
4424
|
+
policy: { type: 'RetentionPolicy', isSingle: true },
|
|
4425
|
+
};
|
|
4426
|
+
return decode(typeMappings, input);
|
|
4427
|
+
};
|
|
4428
|
+
|
|
4337
4429
|
decoders.SharedLocationResponse = (input?: Record<string, any>) => {
|
|
4338
4430
|
const typeMappings: TypeMapping = {
|
|
4339
4431
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -4702,6 +4794,13 @@ decoders.UpdateCommandResponse = (input?: Record<string, any>) => {
|
|
|
4702
4794
|
return decode(typeMappings, input);
|
|
4703
4795
|
};
|
|
4704
4796
|
|
|
4797
|
+
decoders.UpdateCommentPartialResponse = (input?: Record<string, any>) => {
|
|
4798
|
+
const typeMappings: TypeMapping = {
|
|
4799
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
4800
|
+
};
|
|
4801
|
+
return decode(typeMappings, input);
|
|
4802
|
+
};
|
|
4803
|
+
|
|
4705
4804
|
decoders.UpdateCommentResponse = (input?: Record<string, any>) => {
|
|
4706
4805
|
const typeMappings: TypeMapping = {
|
|
4707
4806
|
comment: { type: 'CommentResponse', isSingle: true },
|