@stream-io/node-sdk 0.7.35 → 0.7.36
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 +5 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +5 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +1 -0
- package/dist/src/gen/models/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +3 -0
- package/src/gen/model-decoders/decoders.ts +4 -0
- package/src/gen/models/index.ts +8 -0
|
@@ -334,6 +334,7 @@ export interface ActivityResponse {
|
|
|
334
334
|
expires_at?: Date;
|
|
335
335
|
is_watched?: boolean;
|
|
336
336
|
moderation_action?: string;
|
|
337
|
+
selector_source?: string;
|
|
337
338
|
text?: string;
|
|
338
339
|
visibility_tag?: string;
|
|
339
340
|
current_feed?: FeedResponse;
|
|
@@ -2309,6 +2310,7 @@ export interface CommentResponse {
|
|
|
2309
2310
|
user: UserResponse;
|
|
2310
2311
|
controversy_score?: number;
|
|
2311
2312
|
deleted_at?: Date;
|
|
2313
|
+
edited_at?: Date;
|
|
2312
2314
|
parent_id?: string;
|
|
2313
2315
|
text?: string;
|
|
2314
2316
|
attachments?: Attachment[];
|
|
@@ -2744,6 +2746,7 @@ export interface DecayFunctionConfig {
|
|
|
2744
2746
|
}
|
|
2745
2747
|
export interface DeleteActivitiesRequest {
|
|
2746
2748
|
ids: string[];
|
|
2749
|
+
delete_notification_activity?: boolean;
|
|
2747
2750
|
hard_delete?: boolean;
|
|
2748
2751
|
user_id?: string;
|
|
2749
2752
|
user?: UserRequest;
|
|
@@ -7372,6 +7375,7 @@ export interface ThreadedCommentResponse {
|
|
|
7372
7375
|
user: UserResponse;
|
|
7373
7376
|
controversy_score?: number;
|
|
7374
7377
|
deleted_at?: Date;
|
|
7378
|
+
edited_at?: Date;
|
|
7375
7379
|
parent_id?: string;
|
|
7376
7380
|
text?: string;
|
|
7377
7381
|
attachments?: Attachment[];
|
package/package.json
CHANGED
|
@@ -214,6 +214,7 @@ export class FeedsApi {
|
|
|
214
214
|
): Promise<StreamResponse<DeleteActivitiesResponse>> {
|
|
215
215
|
const body = {
|
|
216
216
|
ids: request?.ids,
|
|
217
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
217
218
|
hard_delete: request?.hard_delete,
|
|
218
219
|
user_id: request?.user_id,
|
|
219
220
|
user: request?.user,
|
|
@@ -535,9 +536,11 @@ export class FeedsApi {
|
|
|
535
536
|
async deleteActivity(request: {
|
|
536
537
|
id: string;
|
|
537
538
|
hard_delete?: boolean;
|
|
539
|
+
delete_notification_activity?: boolean;
|
|
538
540
|
}): Promise<StreamResponse<DeleteActivityResponse>> {
|
|
539
541
|
const queryParams = {
|
|
540
542
|
hard_delete: request?.hard_delete,
|
|
543
|
+
delete_notification_activity: request?.delete_notification_activity,
|
|
541
544
|
};
|
|
542
545
|
const pathParams = {
|
|
543
546
|
id: request?.id,
|
|
@@ -1699,6 +1699,8 @@ decoders.CommentResponse = (input?: Record<string, any>) => {
|
|
|
1699
1699
|
|
|
1700
1700
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1701
1701
|
|
|
1702
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
1703
|
+
|
|
1702
1704
|
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
1703
1705
|
|
|
1704
1706
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
@@ -4423,6 +4425,8 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
|
|
|
4423
4425
|
|
|
4424
4426
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
4425
4427
|
|
|
4428
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
4429
|
+
|
|
4426
4430
|
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
4427
4431
|
|
|
4428
4432
|
replies: { type: 'ThreadedCommentResponse', isSingle: false },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -599,6 +599,8 @@ export interface ActivityResponse {
|
|
|
599
599
|
|
|
600
600
|
moderation_action?: string;
|
|
601
601
|
|
|
602
|
+
selector_source?: string;
|
|
603
|
+
|
|
602
604
|
text?: string;
|
|
603
605
|
|
|
604
606
|
visibility_tag?: string;
|
|
@@ -4106,6 +4108,8 @@ export interface CommentResponse {
|
|
|
4106
4108
|
|
|
4107
4109
|
deleted_at?: Date;
|
|
4108
4110
|
|
|
4111
|
+
edited_at?: Date;
|
|
4112
|
+
|
|
4109
4113
|
parent_id?: string;
|
|
4110
4114
|
|
|
4111
4115
|
text?: string;
|
|
@@ -4857,6 +4861,8 @@ export interface DecayFunctionConfig {
|
|
|
4857
4861
|
export interface DeleteActivitiesRequest {
|
|
4858
4862
|
ids: string[];
|
|
4859
4863
|
|
|
4864
|
+
delete_notification_activity?: boolean;
|
|
4865
|
+
|
|
4860
4866
|
hard_delete?: boolean;
|
|
4861
4867
|
|
|
4862
4868
|
user_id?: string;
|
|
@@ -12928,6 +12934,8 @@ export interface ThreadedCommentResponse {
|
|
|
12928
12934
|
|
|
12929
12935
|
deleted_at?: Date;
|
|
12930
12936
|
|
|
12937
|
+
edited_at?: Date;
|
|
12938
|
+
|
|
12931
12939
|
parent_id?: string;
|
|
12932
12940
|
|
|
12933
12941
|
text?: string;
|