@stream-io/node-sdk 0.7.16 → 0.7.18
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.
|
@@ -283,6 +283,7 @@ export interface ActivityRequest {
|
|
|
283
283
|
id?: string;
|
|
284
284
|
parent_id?: string;
|
|
285
285
|
poll_id?: string;
|
|
286
|
+
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
286
287
|
text?: string;
|
|
287
288
|
user_id?: string;
|
|
288
289
|
visibility?: 'public' | 'private' | 'tag';
|
|
@@ -304,6 +305,7 @@ export interface ActivityResponse {
|
|
|
304
305
|
popularity: number;
|
|
305
306
|
preview: boolean;
|
|
306
307
|
reaction_count: number;
|
|
308
|
+
restrict_replies: string;
|
|
307
309
|
score: number;
|
|
308
310
|
share_count: number;
|
|
309
311
|
type: string;
|
|
@@ -379,6 +381,7 @@ export interface AddActivityRequest {
|
|
|
379
381
|
id?: string;
|
|
380
382
|
parent_id?: string;
|
|
381
383
|
poll_id?: string;
|
|
384
|
+
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
382
385
|
text?: string;
|
|
383
386
|
user_id?: string;
|
|
384
387
|
visibility?: 'public' | 'private' | 'tag';
|
|
@@ -425,6 +428,7 @@ export interface AddCommentRequest {
|
|
|
425
428
|
object_type: string;
|
|
426
429
|
comment?: string;
|
|
427
430
|
create_notification_activity?: boolean;
|
|
431
|
+
id?: string;
|
|
428
432
|
parent_id?: string;
|
|
429
433
|
skip_push?: boolean;
|
|
430
434
|
user_id?: string;
|
|
@@ -474,7 +478,7 @@ export interface AggregatedActivityResponse {
|
|
|
474
478
|
is_watched?: boolean;
|
|
475
479
|
}
|
|
476
480
|
export interface AggregationConfig {
|
|
477
|
-
format
|
|
481
|
+
format: string;
|
|
478
482
|
}
|
|
479
483
|
export interface AnyEvent {
|
|
480
484
|
created_at: Date;
|
|
@@ -2338,7 +2342,6 @@ export interface CreateFeedGroupResponse {
|
|
|
2338
2342
|
}
|
|
2339
2343
|
export interface CreateFeedViewRequest {
|
|
2340
2344
|
id: string;
|
|
2341
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
2342
2345
|
activity_selectors?: ActivitySelectorConfig[];
|
|
2343
2346
|
aggregation?: AggregationConfig;
|
|
2344
2347
|
ranking?: RankingConfig;
|
|
@@ -3149,7 +3152,6 @@ export interface FeedUpdatedEvent {
|
|
|
3149
3152
|
export interface FeedViewResponse {
|
|
3150
3153
|
id: string;
|
|
3151
3154
|
last_used_at?: Date;
|
|
3152
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
3153
3155
|
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
3154
3156
|
aggregation?: AggregationConfig;
|
|
3155
3157
|
ranking?: RankingConfig;
|
|
@@ -3645,7 +3647,6 @@ export interface GetOrCreateFeedRequest {
|
|
|
3645
3647
|
user_id?: string;
|
|
3646
3648
|
view?: string;
|
|
3647
3649
|
watch?: boolean;
|
|
3648
|
-
activity_selector_options?: Record<string, any>;
|
|
3649
3650
|
data?: FeedInput;
|
|
3650
3651
|
external_ranking?: Record<string, any>;
|
|
3651
3652
|
filter?: Record<string, any>;
|
|
@@ -3673,7 +3674,6 @@ export interface GetOrCreateFeedResponse {
|
|
|
3673
3674
|
notification_status?: NotificationStatusResponse;
|
|
3674
3675
|
}
|
|
3675
3676
|
export interface GetOrCreateFeedViewRequest {
|
|
3676
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
3677
3677
|
activity_selectors?: ActivitySelectorConfig[];
|
|
3678
3678
|
aggregation?: AggregationConfig;
|
|
3679
3679
|
ranking?: RankingConfig;
|
|
@@ -5252,11 +5252,14 @@ export interface QualityScoreReportResponse {
|
|
|
5252
5252
|
daily: DailyAggregateQualityScoreReportResponse[];
|
|
5253
5253
|
}
|
|
5254
5254
|
export interface QueryActivitiesRequest {
|
|
5255
|
+
include_private_activities?: boolean;
|
|
5255
5256
|
limit?: number;
|
|
5256
5257
|
next?: string;
|
|
5257
5258
|
prev?: string;
|
|
5259
|
+
user_id?: string;
|
|
5258
5260
|
sort?: SortParamRequest[];
|
|
5259
5261
|
filter?: Record<string, any>;
|
|
5262
|
+
user?: UserRequest;
|
|
5260
5263
|
}
|
|
5261
5264
|
export interface QueryActivitiesResponse {
|
|
5262
5265
|
duration: string;
|
|
@@ -6872,6 +6875,7 @@ export interface UpdateActivityPartialResponse {
|
|
|
6872
6875
|
export interface UpdateActivityRequest {
|
|
6873
6876
|
expires_at?: Date;
|
|
6874
6877
|
poll_id?: string;
|
|
6878
|
+
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
6875
6879
|
text?: string;
|
|
6876
6880
|
user_id?: string;
|
|
6877
6881
|
visibility?: string;
|
|
@@ -7183,7 +7187,6 @@ export interface UpdateFeedResponse {
|
|
|
7183
7187
|
feed: FeedResponse;
|
|
7184
7188
|
}
|
|
7185
7189
|
export interface UpdateFeedViewRequest {
|
|
7186
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
7187
7190
|
activity_selectors?: ActivitySelectorConfig[];
|
|
7188
7191
|
aggregation?: AggregationConfig;
|
|
7189
7192
|
ranking?: RankingConfig;
|
package/package.json
CHANGED
|
@@ -141,6 +141,7 @@ export class FeedsApi {
|
|
|
141
141
|
id: request?.id,
|
|
142
142
|
parent_id: request?.parent_id,
|
|
143
143
|
poll_id: request?.poll_id,
|
|
144
|
+
restrict_replies: request?.restrict_replies,
|
|
144
145
|
text: request?.text,
|
|
145
146
|
user_id: request?.user_id,
|
|
146
147
|
visibility: request?.visibility,
|
|
@@ -223,11 +224,14 @@ export class FeedsApi {
|
|
|
223
224
|
request?: QueryActivitiesRequest,
|
|
224
225
|
): Promise<StreamResponse<QueryActivitiesResponse>> {
|
|
225
226
|
const body = {
|
|
227
|
+
include_private_activities: request?.include_private_activities,
|
|
226
228
|
limit: request?.limit,
|
|
227
229
|
next: request?.next,
|
|
228
230
|
prev: request?.prev,
|
|
231
|
+
user_id: request?.user_id,
|
|
229
232
|
sort: request?.sort,
|
|
230
233
|
filter: request?.filter,
|
|
234
|
+
user: request?.user,
|
|
231
235
|
};
|
|
232
236
|
|
|
233
237
|
const response = await this.apiClient.sendRequest<
|
|
@@ -585,6 +589,7 @@ export class FeedsApi {
|
|
|
585
589
|
const body = {
|
|
586
590
|
expires_at: request?.expires_at,
|
|
587
591
|
poll_id: request?.poll_id,
|
|
592
|
+
restrict_replies: request?.restrict_replies,
|
|
588
593
|
text: request?.text,
|
|
589
594
|
user_id: request?.user_id,
|
|
590
595
|
visibility: request?.visibility,
|
|
@@ -755,6 +760,7 @@ export class FeedsApi {
|
|
|
755
760
|
object_type: request?.object_type,
|
|
756
761
|
comment: request?.comment,
|
|
757
762
|
create_notification_activity: request?.create_notification_activity,
|
|
763
|
+
id: request?.id,
|
|
758
764
|
parent_id: request?.parent_id,
|
|
759
765
|
skip_push: request?.skip_push,
|
|
760
766
|
user_id: request?.user_id,
|
|
@@ -1107,7 +1113,6 @@ export class FeedsApi {
|
|
|
1107
1113
|
user_id: request?.user_id,
|
|
1108
1114
|
view: request?.view,
|
|
1109
1115
|
watch: request?.watch,
|
|
1110
|
-
activity_selector_options: request?.activity_selector_options,
|
|
1111
1116
|
data: request?.data,
|
|
1112
1117
|
external_ranking: request?.external_ranking,
|
|
1113
1118
|
filter: request?.filter,
|
|
@@ -1535,7 +1540,6 @@ export class FeedsApi {
|
|
|
1535
1540
|
): Promise<StreamResponse<CreateFeedViewResponse>> {
|
|
1536
1541
|
const body = {
|
|
1537
1542
|
id: request?.id,
|
|
1538
|
-
activity_processors: request?.activity_processors,
|
|
1539
1543
|
activity_selectors: request?.activity_selectors,
|
|
1540
1544
|
aggregation: request?.aggregation,
|
|
1541
1545
|
ranking: request?.ranking,
|
|
@@ -1596,7 +1600,6 @@ export class FeedsApi {
|
|
|
1596
1600
|
id: request?.id,
|
|
1597
1601
|
};
|
|
1598
1602
|
const body = {
|
|
1599
|
-
activity_processors: request?.activity_processors,
|
|
1600
1603
|
activity_selectors: request?.activity_selectors,
|
|
1601
1604
|
aggregation: request?.aggregation,
|
|
1602
1605
|
ranking: request?.ranking,
|
|
@@ -1625,7 +1628,6 @@ export class FeedsApi {
|
|
|
1625
1628
|
id: request?.id,
|
|
1626
1629
|
};
|
|
1627
1630
|
const body = {
|
|
1628
|
-
activity_processors: request?.activity_processors,
|
|
1629
1631
|
activity_selectors: request?.activity_selectors,
|
|
1630
1632
|
aggregation: request?.aggregation,
|
|
1631
1633
|
ranking: request?.ranking,
|
package/src/gen/models/index.ts
CHANGED
|
@@ -499,6 +499,8 @@ export interface ActivityRequest {
|
|
|
499
499
|
|
|
500
500
|
poll_id?: string;
|
|
501
501
|
|
|
502
|
+
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
503
|
+
|
|
502
504
|
text?: string;
|
|
503
505
|
|
|
504
506
|
user_id?: string;
|
|
@@ -539,6 +541,8 @@ export interface ActivityResponse {
|
|
|
539
541
|
|
|
540
542
|
reaction_count: number;
|
|
541
543
|
|
|
544
|
+
restrict_replies: string;
|
|
545
|
+
|
|
542
546
|
score: number;
|
|
543
547
|
|
|
544
548
|
share_count: number;
|
|
@@ -685,6 +689,8 @@ export interface AddActivityRequest {
|
|
|
685
689
|
|
|
686
690
|
poll_id?: string;
|
|
687
691
|
|
|
692
|
+
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
693
|
+
|
|
688
694
|
text?: string;
|
|
689
695
|
|
|
690
696
|
user_id?: string;
|
|
@@ -765,6 +771,8 @@ export interface AddCommentRequest {
|
|
|
765
771
|
|
|
766
772
|
create_notification_activity?: boolean;
|
|
767
773
|
|
|
774
|
+
id?: string;
|
|
775
|
+
|
|
768
776
|
parent_id?: string;
|
|
769
777
|
|
|
770
778
|
skip_push?: boolean;
|
|
@@ -847,7 +855,7 @@ export interface AggregatedActivityResponse {
|
|
|
847
855
|
}
|
|
848
856
|
|
|
849
857
|
export interface AggregationConfig {
|
|
850
|
-
format
|
|
858
|
+
format: string;
|
|
851
859
|
}
|
|
852
860
|
|
|
853
861
|
export interface AnyEvent {
|
|
@@ -4166,8 +4174,6 @@ export interface CreateFeedGroupResponse {
|
|
|
4166
4174
|
export interface CreateFeedViewRequest {
|
|
4167
4175
|
id: string;
|
|
4168
4176
|
|
|
4169
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
4170
|
-
|
|
4171
4177
|
activity_selectors?: ActivitySelectorConfig[];
|
|
4172
4178
|
|
|
4173
4179
|
aggregation?: AggregationConfig;
|
|
@@ -5518,8 +5524,6 @@ export interface FeedViewResponse {
|
|
|
5518
5524
|
|
|
5519
5525
|
last_used_at?: Date;
|
|
5520
5526
|
|
|
5521
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
5522
|
-
|
|
5523
5527
|
activity_selectors?: ActivitySelectorConfigResponse[];
|
|
5524
5528
|
|
|
5525
5529
|
aggregation?: AggregationConfig;
|
|
@@ -6377,8 +6381,6 @@ export interface GetOrCreateFeedRequest {
|
|
|
6377
6381
|
|
|
6378
6382
|
watch?: boolean;
|
|
6379
6383
|
|
|
6380
|
-
activity_selector_options?: Record<string, any>;
|
|
6381
|
-
|
|
6382
6384
|
data?: FeedInput;
|
|
6383
6385
|
|
|
6384
6386
|
external_ranking?: Record<string, any>;
|
|
@@ -6429,8 +6431,6 @@ export interface GetOrCreateFeedResponse {
|
|
|
6429
6431
|
}
|
|
6430
6432
|
|
|
6431
6433
|
export interface GetOrCreateFeedViewRequest {
|
|
6432
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
6433
|
-
|
|
6434
6434
|
activity_selectors?: ActivitySelectorConfig[];
|
|
6435
6435
|
|
|
6436
6436
|
aggregation?: AggregationConfig;
|
|
@@ -9176,15 +9176,21 @@ export interface QualityScoreReportResponse {
|
|
|
9176
9176
|
}
|
|
9177
9177
|
|
|
9178
9178
|
export interface QueryActivitiesRequest {
|
|
9179
|
+
include_private_activities?: boolean;
|
|
9180
|
+
|
|
9179
9181
|
limit?: number;
|
|
9180
9182
|
|
|
9181
9183
|
next?: string;
|
|
9182
9184
|
|
|
9183
9185
|
prev?: string;
|
|
9184
9186
|
|
|
9187
|
+
user_id?: string;
|
|
9188
|
+
|
|
9185
9189
|
sort?: SortParamRequest[];
|
|
9186
9190
|
|
|
9187
9191
|
filter?: Record<string, any>;
|
|
9192
|
+
|
|
9193
|
+
user?: UserRequest;
|
|
9188
9194
|
}
|
|
9189
9195
|
|
|
9190
9196
|
export interface QueryActivitiesResponse {
|
|
@@ -12200,6 +12206,8 @@ export interface UpdateActivityRequest {
|
|
|
12200
12206
|
|
|
12201
12207
|
poll_id?: string;
|
|
12202
12208
|
|
|
12209
|
+
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
12210
|
+
|
|
12203
12211
|
text?: string;
|
|
12204
12212
|
|
|
12205
12213
|
user_id?: string;
|
|
@@ -12761,8 +12769,6 @@ export interface UpdateFeedResponse {
|
|
|
12761
12769
|
}
|
|
12762
12770
|
|
|
12763
12771
|
export interface UpdateFeedViewRequest {
|
|
12764
|
-
activity_processors?: ActivityProcessorConfig[];
|
|
12765
|
-
|
|
12766
12772
|
activity_selectors?: ActivitySelectorConfig[];
|
|
12767
12773
|
|
|
12768
12774
|
aggregation?: AggregationConfig;
|