@stream-io/node-sdk 0.5.1 → 0.6.1

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
  };
@@ -1918,6 +1936,8 @@ decoders.FeedMemberResponse = (input?: Record<string, any>) => {
1918
1936
  invite_accepted_at: { type: 'DatetimeType', isSingle: true },
1919
1937
 
1920
1938
  invite_rejected_at: { type: 'DatetimeType', isSingle: true },
1939
+
1940
+ membership_level: { type: 'MembershipLevelResponse', isSingle: true },
1921
1941
  };
1922
1942
  return decode(typeMappings, input);
1923
1943
  };
@@ -1944,6 +1964,8 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
1944
1964
  created_by: { type: 'UserResponse', isSingle: true },
1945
1965
 
1946
1966
  deleted_at: { type: 'DatetimeType', isSingle: true },
1967
+
1968
+ own_follows: { type: 'FollowResponse', isSingle: false },
1947
1969
  };
1948
1970
  return decode(typeMappings, input);
1949
1971
  };
@@ -2262,6 +2284,13 @@ decoders.GetOrCreateCallResponse = (input?: Record<string, any>) => {
2262
2284
  return decode(typeMappings, input);
2263
2285
  };
2264
2286
 
2287
+ decoders.GetOrCreateFeedGroupResponse = (input?: Record<string, any>) => {
2288
+ const typeMappings: TypeMapping = {
2289
+ feed_group: { type: 'FeedGroupResponse', isSingle: true },
2290
+ };
2291
+ return decode(typeMappings, input);
2292
+ };
2293
+
2265
2294
  decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
2266
2295
  const typeMappings: TypeMapping = {
2267
2296
  activities: { type: 'ActivityResponse', isSingle: false },
@@ -2290,6 +2319,13 @@ decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
2290
2319
  return decode(typeMappings, input);
2291
2320
  };
2292
2321
 
2322
+ decoders.GetOrCreateFeedViewResponse = (input?: Record<string, any>) => {
2323
+ const typeMappings: TypeMapping = {
2324
+ feed_view: { type: 'FeedViewResponse', isSingle: true },
2325
+ };
2326
+ return decode(typeMappings, input);
2327
+ };
2328
+
2293
2329
  decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
2294
2330
  const typeMappings: TypeMapping = {
2295
2331
  templates: { type: 'PushTemplate', isSingle: false },
@@ -2510,6 +2546,15 @@ decoders.MembersResponse = (input?: Record<string, any>) => {
2510
2546
  return decode(typeMappings, input);
2511
2547
  };
2512
2548
 
2549
+ decoders.MembershipLevelResponse = (input?: Record<string, any>) => {
2550
+ const typeMappings: TypeMapping = {
2551
+ created_at: { type: 'DatetimeType', isSingle: true },
2552
+
2553
+ updated_at: { type: 'DatetimeType', isSingle: true },
2554
+ };
2555
+ return decode(typeMappings, input);
2556
+ };
2557
+
2513
2558
  decoders.Message = (input?: Record<string, any>) => {
2514
2559
  const typeMappings: TypeMapping = {
2515
2560
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2860,6 +2905,24 @@ decoders.MuteResponse = (input?: Record<string, any>) => {
2860
2905
  return decode(typeMappings, input);
2861
2906
  };
2862
2907
 
2908
+ decoders.NotificationFeedUpdatedEvent = (input?: Record<string, any>) => {
2909
+ const typeMappings: TypeMapping = {
2910
+ created_at: { type: 'DatetimeType', isSingle: true },
2911
+
2912
+ received_at: { type: 'DatetimeType', isSingle: true },
2913
+
2914
+ aggregated_activities: {
2915
+ type: 'AggregatedActivityResponse',
2916
+ isSingle: false,
2917
+ },
2918
+
2919
+ notification_status: { type: 'NotificationStatusResponse', isSingle: true },
2920
+
2921
+ user: { type: 'UserResponseCommonFields', isSingle: true },
2922
+ };
2923
+ return decode(typeMappings, input);
2924
+ };
2925
+
2863
2926
  decoders.NotificationMarkUnreadEvent = (input?: Record<string, any>) => {
2864
2927
  const typeMappings: TypeMapping = {
2865
2928
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2875,6 +2938,8 @@ decoders.NotificationMarkUnreadEvent = (input?: Record<string, any>) => {
2875
2938
 
2876
2939
  decoders.NotificationStatusResponse = (input?: Record<string, any>) => {
2877
2940
  const typeMappings: TypeMapping = {
2941
+ last_read_at: { type: 'DatetimeType', isSingle: true },
2942
+
2878
2943
  last_seen_at: { type: 'DatetimeType', isSingle: true },
2879
2944
  };
2880
2945
  return decode(typeMappings, input);
@@ -3256,6 +3321,13 @@ decoders.QueryFollowsResponse = (input?: Record<string, any>) => {
3256
3321
  return decode(typeMappings, input);
3257
3322
  };
3258
3323
 
3324
+ decoders.QueryMembershipLevelsResponse = (input?: Record<string, any>) => {
3325
+ const typeMappings: TypeMapping = {
3326
+ membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
3327
+ };
3328
+ return decode(typeMappings, input);
3329
+ };
3330
+
3259
3331
  decoders.QueryMessageFlagsResponse = (input?: Record<string, any>) => {
3260
3332
  const typeMappings: TypeMapping = {
3261
3333
  flags: { type: 'MessageFlagResponse', isSingle: false },
@@ -3451,6 +3523,39 @@ decoders.RejectFollowResponse = (input?: Record<string, any>) => {
3451
3523
  return decode(typeMappings, input);
3452
3524
  };
3453
3525
 
3526
+ decoders.ReminderCreatedEvent = (input?: Record<string, any>) => {
3527
+ const typeMappings: TypeMapping = {
3528
+ created_at: { type: 'DatetimeType', isSingle: true },
3529
+
3530
+ received_at: { type: 'DatetimeType', isSingle: true },
3531
+
3532
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3533
+ };
3534
+ return decode(typeMappings, input);
3535
+ };
3536
+
3537
+ decoders.ReminderDeletedEvent = (input?: Record<string, any>) => {
3538
+ const typeMappings: TypeMapping = {
3539
+ created_at: { type: 'DatetimeType', isSingle: true },
3540
+
3541
+ received_at: { type: 'DatetimeType', isSingle: true },
3542
+
3543
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3544
+ };
3545
+ return decode(typeMappings, input);
3546
+ };
3547
+
3548
+ decoders.ReminderNotificationEvent = (input?: Record<string, any>) => {
3549
+ const typeMappings: TypeMapping = {
3550
+ created_at: { type: 'DatetimeType', isSingle: true },
3551
+
3552
+ received_at: { type: 'DatetimeType', isSingle: true },
3553
+
3554
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3555
+ };
3556
+ return decode(typeMappings, input);
3557
+ };
3558
+
3454
3559
  decoders.ReminderResponseData = (input?: Record<string, any>) => {
3455
3560
  const typeMappings: TypeMapping = {
3456
3561
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3468,12 +3573,25 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
3468
3573
  return decode(typeMappings, input);
3469
3574
  };
3470
3575
 
3576
+ decoders.ReminderUpdatedEvent = (input?: Record<string, any>) => {
3577
+ const typeMappings: TypeMapping = {
3578
+ created_at: { type: 'DatetimeType', isSingle: true },
3579
+
3580
+ received_at: { type: 'DatetimeType', isSingle: true },
3581
+
3582
+ reminder: { type: 'ReminderResponseData', isSingle: true },
3583
+ };
3584
+ return decode(typeMappings, input);
3585
+ };
3586
+
3471
3587
  decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
3472
3588
  const typeMappings: TypeMapping = {
3473
3589
  created_at: { type: 'DatetimeType', isSingle: true },
3474
3590
 
3475
3591
  received_at: { type: 'DatetimeType', isSingle: true },
3476
3592
 
3593
+ flags: { type: 'ModerationFlagResponse', isSingle: false },
3594
+
3477
3595
  action: { type: 'ActionLogResponse', isSingle: true },
3478
3596
 
3479
3597
  review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
@@ -3491,6 +3609,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
3491
3609
 
3492
3610
  bans: { type: 'Ban', isSingle: false },
3493
3611
 
3612
+ flags: { type: 'ModerationFlagResponse', isSingle: false },
3613
+
3494
3614
  completed_at: { type: 'DatetimeType', isSingle: true },
3495
3615
 
3496
3616
  reviewed_at: { type: 'DatetimeType', isSingle: true },
@@ -3516,6 +3636,8 @@ decoders.ReviewQueueItemUpdatedEvent = (input?: Record<string, any>) => {
3516
3636
 
3517
3637
  received_at: { type: 'DatetimeType', isSingle: true },
3518
3638
 
3639
+ flags: { type: 'ModerationFlagResponse', isSingle: false },
3640
+
3519
3641
  action: { type: 'ActionLogResponse', isSingle: true },
3520
3642
 
3521
3643
  review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
@@ -3818,6 +3940,20 @@ decoders.UnblockedUserEvent = (input?: Record<string, any>) => {
3818
3940
  return decode(typeMappings, input);
3819
3941
  };
3820
3942
 
3943
+ decoders.UnfollowBatchResponse = (input?: Record<string, any>) => {
3944
+ const typeMappings: TypeMapping = {
3945
+ follows: { type: 'FollowResponse', isSingle: false },
3946
+ };
3947
+ return decode(typeMappings, input);
3948
+ };
3949
+
3950
+ decoders.UnfollowResponse = (input?: Record<string, any>) => {
3951
+ const typeMappings: TypeMapping = {
3952
+ follow: { type: 'FollowResponse', isSingle: true },
3953
+ };
3954
+ return decode(typeMappings, input);
3955
+ };
3956
+
3821
3957
  decoders.UnpinActivityResponse = (input?: Record<string, any>) => {
3822
3958
  const typeMappings: TypeMapping = {
3823
3959
  activity: { type: 'ActivityResponse', isSingle: true },
@@ -4002,6 +4138,13 @@ decoders.UpdateMemberPartialResponse = (input?: Record<string, any>) => {
4002
4138
  return decode(typeMappings, input);
4003
4139
  };
4004
4140
 
4141
+ decoders.UpdateMembershipLevelResponse = (input?: Record<string, any>) => {
4142
+ const typeMappings: TypeMapping = {
4143
+ membership_level: { type: 'MembershipLevelResponse', isSingle: true },
4144
+ };
4145
+ return decode(typeMappings, input);
4146
+ };
4147
+
4005
4148
  decoders.UpdateMessagePartialResponse = (input?: Record<string, any>) => {
4006
4149
  const typeMappings: TypeMapping = {
4007
4150
  message: { type: 'MessageResponse', isSingle: true },
@@ -4153,6 +4296,17 @@ decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
4153
4296
  return decode(typeMappings, input);
4154
4297
  };
4155
4298
 
4299
+ decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
4300
+ const typeMappings: TypeMapping = {
4301
+ created_at: { type: 'DatetimeType', isSingle: true },
4302
+
4303
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4304
+
4305
+ received_at: { type: 'DatetimeType', isSingle: true },
4306
+ };
4307
+ return decode(typeMappings, input);
4308
+ };
4309
+
4156
4310
  decoders.UserMute = (input?: Record<string, any>) => {
4157
4311
  const typeMappings: TypeMapping = {
4158
4312
  created_at: { type: 'DatetimeType', isSingle: true },