@stream-io/feeds-client 1.5.0 → 1.7.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/CHANGELOG.md +14 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-C0uK3mWX.js → feeds-client-BeLCHq7r.js} +157 -46
- package/dist/feeds-client-BeLCHq7r.js.map +1 -0
- package/dist/{feeds-client-C6ZWjV_u.mjs → feeds-client-DYZ59hqW.mjs} +157 -46
- package/dist/feeds-client-DYZ59hqW.mjs.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/feeds-client/feeds-client.d.ts +1 -0
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +5 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +3273 -31
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/feeds-client/feeds-client.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +36 -0
- package/src/gen/model-decoders/decoders.ts +97 -31
- package/src/gen/models/index.ts +3430 -78
- package/dist/feeds-client-C0uK3mWX.js.map +0 -1
- package/dist/feeds-client-C6ZWjV_u.mjs.map +0 -1
|
@@ -617,7 +617,7 @@ decoders.BookmarkUpdatedEvent = (input) => {
|
|
|
617
617
|
decoders.CallParticipantResponse = (input) => {
|
|
618
618
|
return decode({
|
|
619
619
|
joined_at: {
|
|
620
|
-
type: "
|
|
620
|
+
type: "Timestamp",
|
|
621
621
|
isSingle: true
|
|
622
622
|
},
|
|
623
623
|
user: {
|
|
@@ -626,34 +626,6 @@ decoders.CallParticipantResponse = (input) => {
|
|
|
626
626
|
}
|
|
627
627
|
}, input);
|
|
628
628
|
};
|
|
629
|
-
decoders.CallResponse = (input) => {
|
|
630
|
-
return decode({
|
|
631
|
-
created_at: {
|
|
632
|
-
type: "DatetimeType",
|
|
633
|
-
isSingle: true
|
|
634
|
-
},
|
|
635
|
-
updated_at: {
|
|
636
|
-
type: "DatetimeType",
|
|
637
|
-
isSingle: true
|
|
638
|
-
},
|
|
639
|
-
created_by: {
|
|
640
|
-
type: "UserResponse",
|
|
641
|
-
isSingle: true
|
|
642
|
-
},
|
|
643
|
-
ended_at: {
|
|
644
|
-
type: "DatetimeType",
|
|
645
|
-
isSingle: true
|
|
646
|
-
},
|
|
647
|
-
starts_at: {
|
|
648
|
-
type: "DatetimeType",
|
|
649
|
-
isSingle: true
|
|
650
|
-
},
|
|
651
|
-
session: {
|
|
652
|
-
type: "CallSessionResponse",
|
|
653
|
-
isSingle: true
|
|
654
|
-
}
|
|
655
|
-
}, input);
|
|
656
|
-
};
|
|
657
629
|
decoders.CallSessionResponse = (input) => {
|
|
658
630
|
return decode({
|
|
659
631
|
participants: {
|
|
@@ -661,35 +633,35 @@ decoders.CallSessionResponse = (input) => {
|
|
|
661
633
|
isSingle: false
|
|
662
634
|
},
|
|
663
635
|
accepted_by: {
|
|
664
|
-
type: "
|
|
636
|
+
type: "Timestamp",
|
|
665
637
|
isSingle: false
|
|
666
638
|
},
|
|
667
639
|
missed_by: {
|
|
668
|
-
type: "
|
|
640
|
+
type: "Timestamp",
|
|
669
641
|
isSingle: false
|
|
670
642
|
},
|
|
671
643
|
rejected_by: {
|
|
672
|
-
type: "
|
|
644
|
+
type: "Timestamp",
|
|
673
645
|
isSingle: false
|
|
674
646
|
},
|
|
675
647
|
ended_at: {
|
|
676
|
-
type: "
|
|
648
|
+
type: "Timestamp",
|
|
677
649
|
isSingle: true
|
|
678
650
|
},
|
|
679
651
|
live_ended_at: {
|
|
680
|
-
type: "
|
|
652
|
+
type: "Timestamp",
|
|
681
653
|
isSingle: true
|
|
682
654
|
},
|
|
683
655
|
live_started_at: {
|
|
684
|
-
type: "
|
|
656
|
+
type: "Timestamp",
|
|
685
657
|
isSingle: true
|
|
686
658
|
},
|
|
687
659
|
started_at: {
|
|
688
|
-
type: "
|
|
660
|
+
type: "Timestamp",
|
|
689
661
|
isSingle: true
|
|
690
662
|
},
|
|
691
663
|
timer_ends_at: {
|
|
692
|
-
type: "
|
|
664
|
+
type: "Timestamp",
|
|
693
665
|
isSingle: true
|
|
694
666
|
}
|
|
695
667
|
}, input);
|
|
@@ -1144,10 +1116,22 @@ decoders.DraftResponse = (input) => {
|
|
|
1144
1116
|
};
|
|
1145
1117
|
decoders.EgressRTMPResponse = (input) => {
|
|
1146
1118
|
return decode({ started_at: {
|
|
1147
|
-
type: "
|
|
1119
|
+
type: "Timestamp",
|
|
1148
1120
|
isSingle: true
|
|
1149
1121
|
} }, input);
|
|
1150
1122
|
};
|
|
1123
|
+
decoders.EnrichedCollection = (input) => {
|
|
1124
|
+
return decode({
|
|
1125
|
+
created_at: {
|
|
1126
|
+
type: "DatetimeType",
|
|
1127
|
+
isSingle: true
|
|
1128
|
+
},
|
|
1129
|
+
updated_at: {
|
|
1130
|
+
type: "DatetimeType",
|
|
1131
|
+
isSingle: true
|
|
1132
|
+
}
|
|
1133
|
+
}, input);
|
|
1134
|
+
};
|
|
1151
1135
|
decoders.EnrichedCollectionResponse = (input) => {
|
|
1152
1136
|
return decode({
|
|
1153
1137
|
created_at: {
|
|
@@ -1424,6 +1408,18 @@ decoders.FeedUpdatedEvent = (input) => {
|
|
|
1424
1408
|
}
|
|
1425
1409
|
}, input);
|
|
1426
1410
|
};
|
|
1411
|
+
decoders.FeedsReactionGroup = (input) => {
|
|
1412
|
+
return decode({
|
|
1413
|
+
first_reaction_at: {
|
|
1414
|
+
type: "DatetimeType",
|
|
1415
|
+
isSingle: true
|
|
1416
|
+
},
|
|
1417
|
+
last_reaction_at: {
|
|
1418
|
+
type: "DatetimeType",
|
|
1419
|
+
isSingle: true
|
|
1420
|
+
}
|
|
1421
|
+
}, input);
|
|
1422
|
+
};
|
|
1427
1423
|
decoders.FeedsReactionGroupResponse = (input) => {
|
|
1428
1424
|
return decode({
|
|
1429
1425
|
first_reaction_at: {
|
|
@@ -1452,6 +1448,78 @@ decoders.FeedsReactionResponse = (input) => {
|
|
|
1452
1448
|
}
|
|
1453
1449
|
}, input);
|
|
1454
1450
|
};
|
|
1451
|
+
decoders.FeedsV3ActivityResponse = (input) => {
|
|
1452
|
+
return decode({
|
|
1453
|
+
created_at: {
|
|
1454
|
+
type: "DatetimeType",
|
|
1455
|
+
isSingle: true
|
|
1456
|
+
},
|
|
1457
|
+
updated_at: {
|
|
1458
|
+
type: "DatetimeType",
|
|
1459
|
+
isSingle: true
|
|
1460
|
+
},
|
|
1461
|
+
comments: {
|
|
1462
|
+
type: "FeedsV3CommentResponse",
|
|
1463
|
+
isSingle: false
|
|
1464
|
+
},
|
|
1465
|
+
mentioned_users: {
|
|
1466
|
+
type: "UserResponse",
|
|
1467
|
+
isSingle: false
|
|
1468
|
+
},
|
|
1469
|
+
collections: {
|
|
1470
|
+
type: "EnrichedCollection",
|
|
1471
|
+
isSingle: false
|
|
1472
|
+
},
|
|
1473
|
+
reaction_groups: {
|
|
1474
|
+
type: "FeedsReactionGroup",
|
|
1475
|
+
isSingle: false
|
|
1476
|
+
},
|
|
1477
|
+
user: {
|
|
1478
|
+
type: "UserResponse",
|
|
1479
|
+
isSingle: true
|
|
1480
|
+
},
|
|
1481
|
+
deleted_at: {
|
|
1482
|
+
type: "DatetimeType",
|
|
1483
|
+
isSingle: true
|
|
1484
|
+
},
|
|
1485
|
+
edited_at: {
|
|
1486
|
+
type: "DatetimeType",
|
|
1487
|
+
isSingle: true
|
|
1488
|
+
},
|
|
1489
|
+
expires_at: {
|
|
1490
|
+
type: "DatetimeType",
|
|
1491
|
+
isSingle: true
|
|
1492
|
+
}
|
|
1493
|
+
}, input);
|
|
1494
|
+
};
|
|
1495
|
+
decoders.FeedsV3CommentResponse = (input) => {
|
|
1496
|
+
return decode({
|
|
1497
|
+
created_at: {
|
|
1498
|
+
type: "DatetimeType",
|
|
1499
|
+
isSingle: true
|
|
1500
|
+
},
|
|
1501
|
+
updated_at: {
|
|
1502
|
+
type: "DatetimeType",
|
|
1503
|
+
isSingle: true
|
|
1504
|
+
},
|
|
1505
|
+
mentioned_users: {
|
|
1506
|
+
type: "UserResponse",
|
|
1507
|
+
isSingle: false
|
|
1508
|
+
},
|
|
1509
|
+
user: {
|
|
1510
|
+
type: "UserResponse",
|
|
1511
|
+
isSingle: true
|
|
1512
|
+
},
|
|
1513
|
+
deleted_at: {
|
|
1514
|
+
type: "DatetimeType",
|
|
1515
|
+
isSingle: true
|
|
1516
|
+
},
|
|
1517
|
+
edited_at: {
|
|
1518
|
+
type: "DatetimeType",
|
|
1519
|
+
isSingle: true
|
|
1520
|
+
}
|
|
1521
|
+
}, input);
|
|
1522
|
+
};
|
|
1455
1523
|
decoders.FollowBatchResponse = (input) => {
|
|
1456
1524
|
return decode({
|
|
1457
1525
|
created: {
|
|
@@ -2271,6 +2339,22 @@ decoders.ReactionGroupResponse = (input) => {
|
|
|
2271
2339
|
last_reaction_at: {
|
|
2272
2340
|
type: "DatetimeType",
|
|
2273
2341
|
isSingle: true
|
|
2342
|
+
},
|
|
2343
|
+
latest_reactions_by: {
|
|
2344
|
+
type: "ReactionGroupUserResponse",
|
|
2345
|
+
isSingle: false
|
|
2346
|
+
}
|
|
2347
|
+
}, input);
|
|
2348
|
+
};
|
|
2349
|
+
decoders.ReactionGroupUserResponse = (input) => {
|
|
2350
|
+
return decode({
|
|
2351
|
+
created_at: {
|
|
2352
|
+
type: "DatetimeType",
|
|
2353
|
+
isSingle: true
|
|
2354
|
+
},
|
|
2355
|
+
user: {
|
|
2356
|
+
type: "UserResponse",
|
|
2357
|
+
isSingle: true
|
|
2274
2358
|
}
|
|
2275
2359
|
}, input);
|
|
2276
2360
|
};
|
|
@@ -2398,10 +2482,6 @@ decoders.ReviewQueueItemResponse = (input) => {
|
|
|
2398
2482
|
type: "UserResponse",
|
|
2399
2483
|
isSingle: true
|
|
2400
2484
|
},
|
|
2401
|
-
call: {
|
|
2402
|
-
type: "CallResponse",
|
|
2403
|
-
isSingle: true
|
|
2404
|
-
},
|
|
2405
2485
|
entity_creator: {
|
|
2406
2486
|
type: "EntityCreatorResponse",
|
|
2407
2487
|
isSingle: true
|
|
@@ -2411,11 +2491,11 @@ decoders.ReviewQueueItemResponse = (input) => {
|
|
|
2411
2491
|
isSingle: true
|
|
2412
2492
|
},
|
|
2413
2493
|
feeds_v3_activity: {
|
|
2414
|
-
type: "
|
|
2494
|
+
type: "FeedsV3ActivityResponse",
|
|
2415
2495
|
isSingle: true
|
|
2416
2496
|
},
|
|
2417
2497
|
feeds_v3_comment: {
|
|
2418
|
-
type: "
|
|
2498
|
+
type: "FeedsV3CommentResponse",
|
|
2419
2499
|
isSingle: true
|
|
2420
2500
|
},
|
|
2421
2501
|
message: {
|
|
@@ -2570,6 +2650,12 @@ decoders.ThreadedCommentResponse = (input) => {
|
|
|
2570
2650
|
}
|
|
2571
2651
|
}, input);
|
|
2572
2652
|
};
|
|
2653
|
+
decoders.Timestamp = (input) => {
|
|
2654
|
+
return decode({ time: {
|
|
2655
|
+
type: "DatetimeType",
|
|
2656
|
+
isSingle: true
|
|
2657
|
+
} }, input);
|
|
2658
|
+
};
|
|
2573
2659
|
decoders.UnfollowBatchResponse = (input) => {
|
|
2574
2660
|
return decode({ follows: {
|
|
2575
2661
|
type: "FollowResponse",
|
|
@@ -2624,6 +2710,12 @@ decoders.UpdateCollectionsResponse = (input) => {
|
|
|
2624
2710
|
isSingle: false
|
|
2625
2711
|
} }, input);
|
|
2626
2712
|
};
|
|
2713
|
+
decoders.UpdateCommentPartialResponse = (input) => {
|
|
2714
|
+
return decode({ comment: {
|
|
2715
|
+
type: "CommentResponse",
|
|
2716
|
+
isSingle: true
|
|
2717
|
+
} }, input);
|
|
2718
|
+
};
|
|
2627
2719
|
decoders.UpdateCommentResponse = (input) => {
|
|
2628
2720
|
return decode({ comment: {
|
|
2629
2721
|
type: "CommentResponse",
|
|
@@ -3418,6 +3510,23 @@ var FeedsApi = class {
|
|
|
3418
3510
|
metadata: response.metadata
|
|
3419
3511
|
};
|
|
3420
3512
|
}
|
|
3513
|
+
async updateCommentPartial(request) {
|
|
3514
|
+
const pathParams = { id: request?.id };
|
|
3515
|
+
const body = {
|
|
3516
|
+
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
3517
|
+
handle_mention_notifications: request?.handle_mention_notifications,
|
|
3518
|
+
skip_enrich_url: request?.skip_enrich_url,
|
|
3519
|
+
skip_push: request?.skip_push,
|
|
3520
|
+
unset: request?.unset,
|
|
3521
|
+
set: request?.set
|
|
3522
|
+
};
|
|
3523
|
+
const response = await this.apiClient.sendRequest("POST", "/api/v2/feeds/comments/{id}/partial", pathParams, void 0, body, "application/json");
|
|
3524
|
+
decoders.UpdateCommentPartialResponse?.(response.body);
|
|
3525
|
+
return {
|
|
3526
|
+
...response.body,
|
|
3527
|
+
metadata: response.metadata
|
|
3528
|
+
};
|
|
3529
|
+
}
|
|
3421
3530
|
async addCommentReaction(request) {
|
|
3422
3531
|
const pathParams = { id: request?.id };
|
|
3423
3532
|
const body = {
|
|
@@ -3852,6 +3961,7 @@ var FeedsApi = class {
|
|
|
3852
3961
|
async unfollow(request) {
|
|
3853
3962
|
const queryParams = {
|
|
3854
3963
|
delete_notification_activity: request?.delete_notification_activity,
|
|
3964
|
+
keep_history: request?.keep_history,
|
|
3855
3965
|
enrich_own_fields: request?.enrich_own_fields
|
|
3856
3966
|
};
|
|
3857
3967
|
const pathParams = {
|
|
@@ -4203,6 +4313,7 @@ var FeedsApi = class {
|
|
|
4203
4313
|
const pathParams = { id: request?.id };
|
|
4204
4314
|
const body = {
|
|
4205
4315
|
member_ids: request?.member_ids,
|
|
4316
|
+
as_admin: request?.as_admin,
|
|
4206
4317
|
team_id: request?.team_id
|
|
4207
4318
|
};
|
|
4208
4319
|
const response = await this.apiClient.sendRequest("POST", "/api/v2/usergroups/{id}/members", pathParams, void 0, body, "application/json");
|
|
@@ -5030,7 +5141,7 @@ var getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
5030
5141
|
};
|
|
5031
5142
|
//#endregion
|
|
5032
5143
|
//#region package.json
|
|
5033
|
-
var version = "1.
|
|
5144
|
+
var version = "1.7.0";
|
|
5034
5145
|
//#endregion
|
|
5035
5146
|
//#region src/common/ApiClient.ts
|
|
5036
5147
|
var axios = axiosImport.default ?? axiosImport;
|
|
@@ -8802,4 +8913,4 @@ var FeedsClient = class extends FeedsApi {
|
|
|
8802
8913
|
//#endregion
|
|
8803
8914
|
export { LogLevelEnum as C, debounce as S, uniqueArrayMerge as _, ownFeedFields as a, isVoteAnswer as b, shouldUpdateState as c, isFollowResponse as d, isImageFile as f, replaceUniqueArrayMerge as g, Constants as h, activityFilter as i, ensureExhausted as l, isVideoFile as m, ActivityWithStateUpdates as n, updateEntityInArray as o, isReactionResponse as p, Feed as r, getStateUpdateQueueId as s, FeedsClient as t, isCommentResponse as u, checkHasAnotherPage as v, feedsLoggerSystem as w, StreamApiError as x, StreamPoll as y };
|
|
8804
8915
|
|
|
8805
|
-
//# sourceMappingURL=feeds-client-
|
|
8916
|
+
//# sourceMappingURL=feeds-client-DYZ59hqW.mjs.map
|