@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.
@@ -46,6 +46,7 @@ export declare class FeedsApi {
46
46
  deleteActivity(request: {
47
47
  id: string;
48
48
  hard_delete?: boolean;
49
+ delete_notification_activity?: boolean;
49
50
  }): Promise<StreamResponse<DeleteActivityResponse>>;
50
51
  getActivity(request: {
51
52
  id: string;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.35",
3
+ "version": "0.7.36",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -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 },
@@ -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;