@stream-io/node-sdk 0.5.0 → 0.6.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.
@@ -917,6 +917,15 @@ decoders.CallSessionEndedEvent = (input?: Record<string, any>) => {
917
917
  return decode(typeMappings, input);
918
918
  };
919
919
 
920
+ decoders.CallSessionParticipantCountsUpdatedEvent = (
921
+ input?: Record<string, any>,
922
+ ) => {
923
+ const typeMappings: TypeMapping = {
924
+ created_at: { type: 'DatetimeType', isSingle: true },
925
+ };
926
+ return decode(typeMappings, input);
927
+ };
928
+
920
929
  decoders.CallSessionParticipantJoinedEvent = (input?: Record<string, any>) => {
921
930
  const typeMappings: TypeMapping = {
922
931
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1647,6 +1656,13 @@ decoders.CreateImportResponse = (input?: Record<string, any>) => {
1647
1656
  return decode(typeMappings, input);
1648
1657
  };
1649
1658
 
1659
+ decoders.CreateMembershipLevelResponse = (input?: Record<string, any>) => {
1660
+ const typeMappings: TypeMapping = {
1661
+ membership_level: { type: 'MembershipLevelResponse', isSingle: true },
1662
+ };
1663
+ return decode(typeMappings, input);
1664
+ };
1665
+
1650
1666
  decoders.CreateRoleResponse = (input?: Record<string, any>) => {
1651
1667
  const typeMappings: TypeMapping = {
1652
1668
  role: { type: 'Role', isSingle: true },
@@ -1879,6 +1895,8 @@ decoders.FeedGroupResponse = (input?: Record<string, any>) => {
1879
1895
  created_at: { type: 'DatetimeType', isSingle: true },
1880
1896
 
1881
1897
  updated_at: { type: 'DatetimeType', isSingle: true },
1898
+
1899
+ activity_selectors: { type: 'ActivitySelectorConfig', isSingle: false },
1882
1900
  };
1883
1901
  return decode(typeMappings, input);
1884
1902
  };
@@ -1944,6 +1962,8 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
1944
1962
  created_by: { type: 'UserResponse', isSingle: true },
1945
1963
 
1946
1964
  deleted_at: { type: 'DatetimeType', isSingle: true },
1965
+
1966
+ own_follows: { type: 'FollowResponse', isSingle: false },
1947
1967
  };
1948
1968
  return decode(typeMappings, input);
1949
1969
  };
@@ -2262,6 +2282,13 @@ decoders.GetOrCreateCallResponse = (input?: Record<string, any>) => {
2262
2282
  return decode(typeMappings, input);
2263
2283
  };
2264
2284
 
2285
+ decoders.GetOrCreateFeedGroupResponse = (input?: Record<string, any>) => {
2286
+ const typeMappings: TypeMapping = {
2287
+ feed_group: { type: 'FeedGroupResponse', isSingle: true },
2288
+ };
2289
+ return decode(typeMappings, input);
2290
+ };
2291
+
2265
2292
  decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
2266
2293
  const typeMappings: TypeMapping = {
2267
2294
  activities: { type: 'ActivityResponse', isSingle: false },
@@ -2290,6 +2317,13 @@ decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
2290
2317
  return decode(typeMappings, input);
2291
2318
  };
2292
2319
 
2320
+ decoders.GetOrCreateFeedViewResponse = (input?: Record<string, any>) => {
2321
+ const typeMappings: TypeMapping = {
2322
+ feed_view: { type: 'FeedViewResponse', isSingle: true },
2323
+ };
2324
+ return decode(typeMappings, input);
2325
+ };
2326
+
2293
2327
  decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
2294
2328
  const typeMappings: TypeMapping = {
2295
2329
  templates: { type: 'PushTemplate', isSingle: false },
@@ -2510,6 +2544,15 @@ decoders.MembersResponse = (input?: Record<string, any>) => {
2510
2544
  return decode(typeMappings, input);
2511
2545
  };
2512
2546
 
2547
+ decoders.MembershipLevelResponse = (input?: Record<string, any>) => {
2548
+ const typeMappings: TypeMapping = {
2549
+ created_at: { type: 'DatetimeType', isSingle: true },
2550
+
2551
+ updated_at: { type: 'DatetimeType', isSingle: true },
2552
+ };
2553
+ return decode(typeMappings, input);
2554
+ };
2555
+
2513
2556
  decoders.Message = (input?: Record<string, any>) => {
2514
2557
  const typeMappings: TypeMapping = {
2515
2558
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2860,6 +2903,24 @@ decoders.MuteResponse = (input?: Record<string, any>) => {
2860
2903
  return decode(typeMappings, input);
2861
2904
  };
2862
2905
 
2906
+ decoders.NotificationFeedUpdatedEvent = (input?: Record<string, any>) => {
2907
+ const typeMappings: TypeMapping = {
2908
+ created_at: { type: 'DatetimeType', isSingle: true },
2909
+
2910
+ received_at: { type: 'DatetimeType', isSingle: true },
2911
+
2912
+ aggregated_activities: {
2913
+ type: 'AggregatedActivityResponse',
2914
+ isSingle: false,
2915
+ },
2916
+
2917
+ notification_status: { type: 'NotificationStatusResponse', isSingle: true },
2918
+
2919
+ user: { type: 'UserResponseCommonFields', isSingle: true },
2920
+ };
2921
+ return decode(typeMappings, input);
2922
+ };
2923
+
2863
2924
  decoders.NotificationMarkUnreadEvent = (input?: Record<string, any>) => {
2864
2925
  const typeMappings: TypeMapping = {
2865
2926
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2875,6 +2936,8 @@ decoders.NotificationMarkUnreadEvent = (input?: Record<string, any>) => {
2875
2936
 
2876
2937
  decoders.NotificationStatusResponse = (input?: Record<string, any>) => {
2877
2938
  const typeMappings: TypeMapping = {
2939
+ last_read_at: { type: 'DatetimeType', isSingle: true },
2940
+
2878
2941
  last_seen_at: { type: 'DatetimeType', isSingle: true },
2879
2942
  };
2880
2943
  return decode(typeMappings, input);
@@ -3256,6 +3319,13 @@ decoders.QueryFollowsResponse = (input?: Record<string, any>) => {
3256
3319
  return decode(typeMappings, input);
3257
3320
  };
3258
3321
 
3322
+ decoders.QueryMembershipLevelsResponse = (input?: Record<string, any>) => {
3323
+ const typeMappings: TypeMapping = {
3324
+ membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
3325
+ };
3326
+ return decode(typeMappings, input);
3327
+ };
3328
+
3259
3329
  decoders.QueryMessageFlagsResponse = (input?: Record<string, any>) => {
3260
3330
  const typeMappings: TypeMapping = {
3261
3331
  flags: { type: 'MessageFlagResponse', isSingle: false },
@@ -3451,6 +3521,39 @@ decoders.RejectFollowResponse = (input?: Record<string, any>) => {
3451
3521
  return decode(typeMappings, input);
3452
3522
  };
3453
3523
 
3524
+ decoders.ReminderCreatedEvent = (input?: Record<string, any>) => {
3525
+ const typeMappings: TypeMapping = {
3526
+ created_at: { type: 'DatetimeType', isSingle: true },
3527
+
3528
+ received_at: { type: 'DatetimeType', isSingle: true },
3529
+
3530
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3531
+ };
3532
+ return decode(typeMappings, input);
3533
+ };
3534
+
3535
+ decoders.ReminderDeletedEvent = (input?: Record<string, any>) => {
3536
+ const typeMappings: TypeMapping = {
3537
+ created_at: { type: 'DatetimeType', isSingle: true },
3538
+
3539
+ received_at: { type: 'DatetimeType', isSingle: true },
3540
+
3541
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3542
+ };
3543
+ return decode(typeMappings, input);
3544
+ };
3545
+
3546
+ decoders.ReminderNotificationEvent = (input?: Record<string, any>) => {
3547
+ const typeMappings: TypeMapping = {
3548
+ created_at: { type: 'DatetimeType', isSingle: true },
3549
+
3550
+ received_at: { type: 'DatetimeType', isSingle: true },
3551
+
3552
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3553
+ };
3554
+ return decode(typeMappings, input);
3555
+ };
3556
+
3454
3557
  decoders.ReminderResponseData = (input?: Record<string, any>) => {
3455
3558
  const typeMappings: TypeMapping = {
3456
3559
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3468,12 +3571,25 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
3468
3571
  return decode(typeMappings, input);
3469
3572
  };
3470
3573
 
3574
+ decoders.ReminderUpdatedEvent = (input?: Record<string, any>) => {
3575
+ const typeMappings: TypeMapping = {
3576
+ created_at: { type: 'DatetimeType', isSingle: true },
3577
+
3578
+ received_at: { type: 'DatetimeType', isSingle: true },
3579
+
3580
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3581
+ };
3582
+ return decode(typeMappings, input);
3583
+ };
3584
+
3471
3585
  decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
3472
3586
  const typeMappings: TypeMapping = {
3473
3587
  created_at: { type: 'DatetimeType', isSingle: true },
3474
3588
 
3475
3589
  received_at: { type: 'DatetimeType', isSingle: true },
3476
3590
 
3591
+ flags: { type: 'ModerationFlagResponse', isSingle: false },
3592
+
3477
3593
  action: { type: 'ActionLogResponse', isSingle: true },
3478
3594
 
3479
3595
  review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
@@ -3491,6 +3607,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
3491
3607
 
3492
3608
  bans: { type: 'Ban', isSingle: false },
3493
3609
 
3610
+ flags: { type: 'ModerationFlagResponse', isSingle: false },
3611
+
3494
3612
  completed_at: { type: 'DatetimeType', isSingle: true },
3495
3613
 
3496
3614
  reviewed_at: { type: 'DatetimeType', isSingle: true },
@@ -3516,6 +3634,8 @@ decoders.ReviewQueueItemUpdatedEvent = (input?: Record<string, any>) => {
3516
3634
 
3517
3635
  received_at: { type: 'DatetimeType', isSingle: true },
3518
3636
 
3637
+ flags: { type: 'ModerationFlagResponse', isSingle: false },
3638
+
3519
3639
  action: { type: 'ActionLogResponse', isSingle: true },
3520
3640
 
3521
3641
  review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
@@ -3818,6 +3938,20 @@ decoders.UnblockedUserEvent = (input?: Record<string, any>) => {
3818
3938
  return decode(typeMappings, input);
3819
3939
  };
3820
3940
 
3941
+ decoders.UnfollowBatchResponse = (input?: Record<string, any>) => {
3942
+ const typeMappings: TypeMapping = {
3943
+ follows: { type: 'FollowResponse', isSingle: false },
3944
+ };
3945
+ return decode(typeMappings, input);
3946
+ };
3947
+
3948
+ decoders.UnfollowResponse = (input?: Record<string, any>) => {
3949
+ const typeMappings: TypeMapping = {
3950
+ follow: { type: 'FollowResponse', isSingle: true },
3951
+ };
3952
+ return decode(typeMappings, input);
3953
+ };
3954
+
3821
3955
  decoders.UnpinActivityResponse = (input?: Record<string, any>) => {
3822
3956
  const typeMappings: TypeMapping = {
3823
3957
  activity: { type: 'ActivityResponse', isSingle: true },
@@ -4002,6 +4136,13 @@ decoders.UpdateMemberPartialResponse = (input?: Record<string, any>) => {
4002
4136
  return decode(typeMappings, input);
4003
4137
  };
4004
4138
 
4139
+ decoders.UpdateMembershipLevelResponse = (input?: Record<string, any>) => {
4140
+ const typeMappings: TypeMapping = {
4141
+ membership_level: { type: 'MembershipLevelResponse', isSingle: true },
4142
+ };
4143
+ return decode(typeMappings, input);
4144
+ };
4145
+
4005
4146
  decoders.UpdateMessagePartialResponse = (input?: Record<string, any>) => {
4006
4147
  const typeMappings: TypeMapping = {
4007
4148
  message: { type: 'MessageResponse', isSingle: true },
@@ -4153,6 +4294,17 @@ decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
4153
4294
  return decode(typeMappings, input);
4154
4295
  };
4155
4296
 
4297
+ decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
4298
+ const typeMappings: TypeMapping = {
4299
+ created_at: { type: 'DatetimeType', isSingle: true },
4300
+
4301
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4302
+
4303
+ received_at: { type: 'DatetimeType', isSingle: true },
4304
+ };
4305
+ return decode(typeMappings, input);
4306
+ };
4307
+
4156
4308
  decoders.UserMute = (input?: Record<string, any>) => {
4157
4309
  const typeMappings: TypeMapping = {
4158
4310
  created_at: { type: 'DatetimeType', isSingle: true },