@stream-io/feeds-client 0.3.6 → 0.3.7
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 +7 -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 +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-Cd2LsXp-.mjs → feeds-client-3aXF89xy.mjs} +83 -2
- package/dist/feeds-client-3aXF89xy.mjs.map +1 -0
- package/dist/{feeds-client-47vliZx_.js → feeds-client-DLiLkrA0.js} +83 -2
- package/dist/feeds-client-DLiLkrA0.js.map +1 -0
- package/dist/types/feed/event-handlers/activity-updater.d.ts +1 -0
- package/dist/types/feed/event-handlers/activity-updater.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +9 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +52 -0
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +86 -0
- package/src/gen/model-decoders/decoders.ts +41 -0
- package/src/gen/models/index.ts +84 -0
- package/dist/feeds-client-47vliZx_.js.map +0 -1
- package/dist/feeds-client-Cd2LsXp-.mjs.map +0 -1
|
@@ -191,6 +191,8 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
|
|
|
191
191
|
|
|
192
192
|
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
193
193
|
|
|
194
|
+
collections: { type: 'EnrichedCollectionResponse', isSingle: false },
|
|
195
|
+
|
|
194
196
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
195
197
|
|
|
196
198
|
user: { type: 'UserResponse', isSingle: true },
|
|
@@ -616,6 +618,15 @@ decoders.ChannelResponse = (input?: Record<string, any>) => {
|
|
|
616
618
|
return decode(typeMappings, input);
|
|
617
619
|
};
|
|
618
620
|
|
|
621
|
+
decoders.CollectionResponse = (input?: Record<string, any>) => {
|
|
622
|
+
const typeMappings: TypeMapping = {
|
|
623
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
624
|
+
|
|
625
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
626
|
+
};
|
|
627
|
+
return decode(typeMappings, input);
|
|
628
|
+
};
|
|
629
|
+
|
|
619
630
|
decoders.Command = (input?: Record<string, any>) => {
|
|
620
631
|
const typeMappings: TypeMapping = {
|
|
621
632
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -740,6 +751,13 @@ decoders.CreateBlockListResponse = (input?: Record<string, any>) => {
|
|
|
740
751
|
return decode(typeMappings, input);
|
|
741
752
|
};
|
|
742
753
|
|
|
754
|
+
decoders.CreateCollectionsResponse = (input?: Record<string, any>) => {
|
|
755
|
+
const typeMappings: TypeMapping = {
|
|
756
|
+
collections: { type: 'CollectionResponse', isSingle: false },
|
|
757
|
+
};
|
|
758
|
+
return decode(typeMappings, input);
|
|
759
|
+
};
|
|
760
|
+
|
|
743
761
|
decoders.CreateFeedsBatchResponse = (input?: Record<string, any>) => {
|
|
744
762
|
const typeMappings: TypeMapping = {
|
|
745
763
|
feeds: { type: 'FeedResponse', isSingle: false },
|
|
@@ -831,6 +849,15 @@ decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
|
831
849
|
return decode(typeMappings, input);
|
|
832
850
|
};
|
|
833
851
|
|
|
852
|
+
decoders.EnrichedCollectionResponse = (input?: Record<string, any>) => {
|
|
853
|
+
const typeMappings: TypeMapping = {
|
|
854
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
855
|
+
|
|
856
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
857
|
+
};
|
|
858
|
+
return decode(typeMappings, input);
|
|
859
|
+
};
|
|
860
|
+
|
|
834
861
|
decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
835
862
|
const typeMappings: TypeMapping = {
|
|
836
863
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1670,6 +1697,13 @@ decoders.ReactionResponse = (input?: Record<string, any>) => {
|
|
|
1670
1697
|
return decode(typeMappings, input);
|
|
1671
1698
|
};
|
|
1672
1699
|
|
|
1700
|
+
decoders.ReadCollectionsResponse = (input?: Record<string, any>) => {
|
|
1701
|
+
const typeMappings: TypeMapping = {
|
|
1702
|
+
collections: { type: 'CollectionResponse', isSingle: false },
|
|
1703
|
+
};
|
|
1704
|
+
return decode(typeMappings, input);
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1673
1707
|
decoders.RejectFeedMemberInviteResponse = (input?: Record<string, any>) => {
|
|
1674
1708
|
const typeMappings: TypeMapping = {
|
|
1675
1709
|
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
@@ -1893,6 +1927,13 @@ decoders.UpdateBookmarkResponse = (input?: Record<string, any>) => {
|
|
|
1893
1927
|
return decode(typeMappings, input);
|
|
1894
1928
|
};
|
|
1895
1929
|
|
|
1930
|
+
decoders.UpdateCollectionsResponse = (input?: Record<string, any>) => {
|
|
1931
|
+
const typeMappings: TypeMapping = {
|
|
1932
|
+
collections: { type: 'CollectionResponse', isSingle: false },
|
|
1933
|
+
};
|
|
1934
|
+
return decode(typeMappings, input);
|
|
1935
|
+
};
|
|
1936
|
+
|
|
1896
1937
|
decoders.UpdateCommentResponse = (input?: Record<string, any>) => {
|
|
1897
1938
|
const typeMappings: TypeMapping = {
|
|
1898
1939
|
comment: { type: 'CommentResponse', isSingle: true },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -383,6 +383,8 @@ export interface ActivityRequest {
|
|
|
383
383
|
|
|
384
384
|
attachments?: Attachment[];
|
|
385
385
|
|
|
386
|
+
collection_refs?: string[];
|
|
387
|
+
|
|
386
388
|
filter_tags?: string[];
|
|
387
389
|
|
|
388
390
|
interest_tags?: string[];
|
|
@@ -443,6 +445,8 @@ export interface ActivityResponse {
|
|
|
443
445
|
|
|
444
446
|
own_reactions: FeedsReactionResponse[];
|
|
445
447
|
|
|
448
|
+
collections: Record<string, EnrichedCollectionResponse>;
|
|
449
|
+
|
|
446
450
|
custom: Record<string, any>;
|
|
447
451
|
|
|
448
452
|
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
@@ -551,6 +555,8 @@ export interface AddActivityRequest {
|
|
|
551
555
|
|
|
552
556
|
attachments?: Attachment[];
|
|
553
557
|
|
|
558
|
+
collection_refs?: string[];
|
|
559
|
+
|
|
554
560
|
filter_tags?: string[];
|
|
555
561
|
|
|
556
562
|
interest_tags?: string[];
|
|
@@ -1672,6 +1678,28 @@ export interface ChannelResponse {
|
|
|
1672
1678
|
truncated_by?: UserResponse;
|
|
1673
1679
|
}
|
|
1674
1680
|
|
|
1681
|
+
export interface CollectionRequest {
|
|
1682
|
+
name: string;
|
|
1683
|
+
|
|
1684
|
+
custom: Record<string, any>;
|
|
1685
|
+
|
|
1686
|
+
id?: string;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1689
|
+
export interface CollectionResponse {
|
|
1690
|
+
created_at: Date;
|
|
1691
|
+
|
|
1692
|
+
id: string;
|
|
1693
|
+
|
|
1694
|
+
name: string;
|
|
1695
|
+
|
|
1696
|
+
updated_at: Date;
|
|
1697
|
+
|
|
1698
|
+
custom: Record<string, any>;
|
|
1699
|
+
|
|
1700
|
+
user_id?: string;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1675
1703
|
export interface Command {
|
|
1676
1704
|
args: string;
|
|
1677
1705
|
|
|
@@ -1960,6 +1988,16 @@ export interface CreateBlockListResponse {
|
|
|
1960
1988
|
blocklist?: BlockListResponse;
|
|
1961
1989
|
}
|
|
1962
1990
|
|
|
1991
|
+
export interface CreateCollectionsRequest {
|
|
1992
|
+
collections: CollectionRequest[];
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
export interface CreateCollectionsResponse {
|
|
1996
|
+
duration: string;
|
|
1997
|
+
|
|
1998
|
+
collections: CollectionResponse[];
|
|
1999
|
+
}
|
|
2000
|
+
|
|
1963
2001
|
export interface CreateDeviceRequest {
|
|
1964
2002
|
id: string;
|
|
1965
2003
|
|
|
@@ -2086,6 +2124,10 @@ export interface DeleteBookmarkResponse {
|
|
|
2086
2124
|
bookmark: BookmarkResponse;
|
|
2087
2125
|
}
|
|
2088
2126
|
|
|
2127
|
+
export interface DeleteCollectionsResponse {
|
|
2128
|
+
duration: string;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2089
2131
|
export interface DeleteCommentReactionResponse {
|
|
2090
2132
|
duration: string;
|
|
2091
2133
|
|
|
@@ -2306,6 +2348,22 @@ export interface EnrichedActivity {
|
|
|
2306
2348
|
target?: Data;
|
|
2307
2349
|
}
|
|
2308
2350
|
|
|
2351
|
+
export interface EnrichedCollectionResponse {
|
|
2352
|
+
created_at: Date;
|
|
2353
|
+
|
|
2354
|
+
id: string;
|
|
2355
|
+
|
|
2356
|
+
name: string;
|
|
2357
|
+
|
|
2358
|
+
status: 'ok' | 'notfound';
|
|
2359
|
+
|
|
2360
|
+
updated_at: Date;
|
|
2361
|
+
|
|
2362
|
+
custom: Record<string, any>;
|
|
2363
|
+
|
|
2364
|
+
user_id?: string;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2309
2367
|
export interface EnrichedReaction {
|
|
2310
2368
|
activity_id: string;
|
|
2311
2369
|
|
|
@@ -4704,6 +4762,12 @@ export interface ReactionResponse {
|
|
|
4704
4762
|
user: UserResponse;
|
|
4705
4763
|
}
|
|
4706
4764
|
|
|
4765
|
+
export interface ReadCollectionsResponse {
|
|
4766
|
+
duration: string;
|
|
4767
|
+
|
|
4768
|
+
collections: CollectionResponse[];
|
|
4769
|
+
}
|
|
4770
|
+
|
|
4707
4771
|
export interface ReadReceipts {
|
|
4708
4772
|
enabled: boolean;
|
|
4709
4773
|
}
|
|
@@ -5344,6 +5408,8 @@ export interface UpdateActivityRequest {
|
|
|
5344
5408
|
|
|
5345
5409
|
attachments?: Attachment[];
|
|
5346
5410
|
|
|
5411
|
+
collection_refs?: string[];
|
|
5412
|
+
|
|
5347
5413
|
feeds?: string[];
|
|
5348
5414
|
|
|
5349
5415
|
filter_tags?: string[];
|
|
@@ -5405,6 +5471,24 @@ export interface UpdateBookmarkResponse {
|
|
|
5405
5471
|
bookmark: BookmarkResponse;
|
|
5406
5472
|
}
|
|
5407
5473
|
|
|
5474
|
+
export interface UpdateCollectionRequest {
|
|
5475
|
+
id: string;
|
|
5476
|
+
|
|
5477
|
+
name: string;
|
|
5478
|
+
|
|
5479
|
+
custom: Record<string, any>;
|
|
5480
|
+
}
|
|
5481
|
+
|
|
5482
|
+
export interface UpdateCollectionsRequest {
|
|
5483
|
+
collections: UpdateCollectionRequest[];
|
|
5484
|
+
}
|
|
5485
|
+
|
|
5486
|
+
export interface UpdateCollectionsResponse {
|
|
5487
|
+
duration: string;
|
|
5488
|
+
|
|
5489
|
+
collections: CollectionResponse[];
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5408
5492
|
export interface UpdateCommentRequest {
|
|
5409
5493
|
comment?: string;
|
|
5410
5494
|
|