@stream-io/node-sdk 0.7.34 → 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.
@@ -349,6 +349,50 @@ decoders.AppResponseFields = (input?: Record<string, any>) => {
349
349
  return decode(typeMappings, input);
350
350
  };
351
351
 
352
+ decoders.AppealAcceptedEvent = (input?: Record<string, any>) => {
353
+ const typeMappings: TypeMapping = {
354
+ created_at: { type: 'DatetimeType', isSingle: true },
355
+
356
+ received_at: { type: 'DatetimeType', isSingle: true },
357
+
358
+ appeal: { type: 'AppealItemResponse', isSingle: true },
359
+ };
360
+ return decode(typeMappings, input);
361
+ };
362
+
363
+ decoders.AppealCreatedEvent = (input?: Record<string, any>) => {
364
+ const typeMappings: TypeMapping = {
365
+ created_at: { type: 'DatetimeType', isSingle: true },
366
+
367
+ received_at: { type: 'DatetimeType', isSingle: true },
368
+
369
+ appeal: { type: 'AppealItemResponse', isSingle: true },
370
+ };
371
+ return decode(typeMappings, input);
372
+ };
373
+
374
+ decoders.AppealItemResponse = (input?: Record<string, any>) => {
375
+ const typeMappings: TypeMapping = {
376
+ created_at: { type: 'DatetimeType', isSingle: true },
377
+
378
+ updated_at: { type: 'DatetimeType', isSingle: true },
379
+
380
+ user: { type: 'UserResponse', isSingle: true },
381
+ };
382
+ return decode(typeMappings, input);
383
+ };
384
+
385
+ decoders.AppealRejectedEvent = (input?: Record<string, any>) => {
386
+ const typeMappings: TypeMapping = {
387
+ created_at: { type: 'DatetimeType', isSingle: true },
388
+
389
+ received_at: { type: 'DatetimeType', isSingle: true },
390
+
391
+ appeal: { type: 'AppealItemResponse', isSingle: true },
392
+ };
393
+ return decode(typeMappings, input);
394
+ };
395
+
352
396
  decoders.AsyncBulkImageModerationEvent = (input?: Record<string, any>) => {
353
397
  const typeMappings: TypeMapping = {
354
398
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1204,7 +1248,7 @@ decoders.Channel = (input?: Record<string, any>) => {
1204
1248
  return decode(typeMappings, input);
1205
1249
  };
1206
1250
 
1207
- decoders.ChannelBatchUpdatedCompletedEvent = (input?: Record<string, any>) => {
1251
+ decoders.ChannelBatchCompletedEvent = (input?: Record<string, any>) => {
1208
1252
  const typeMappings: TypeMapping = {
1209
1253
  batch_created_at: { type: 'DatetimeType', isSingle: true },
1210
1254
 
@@ -1217,7 +1261,7 @@ decoders.ChannelBatchUpdatedCompletedEvent = (input?: Record<string, any>) => {
1217
1261
  return decode(typeMappings, input);
1218
1262
  };
1219
1263
 
1220
- decoders.ChannelBatchUpdatedStartedEvent = (input?: Record<string, any>) => {
1264
+ decoders.ChannelBatchStartedEvent = (input?: Record<string, any>) => {
1221
1265
  const typeMappings: TypeMapping = {
1222
1266
  batch_created_at: { type: 'DatetimeType', isSingle: true },
1223
1267
 
@@ -1655,6 +1699,8 @@ decoders.CommentResponse = (input?: Record<string, any>) => {
1655
1699
 
1656
1700
  deleted_at: { type: 'DatetimeType', isSingle: true },
1657
1701
 
1702
+ edited_at: { type: 'DatetimeType', isSingle: true },
1703
+
1658
1704
  latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
1659
1705
 
1660
1706
  reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
@@ -1765,6 +1811,15 @@ decoders.CreateImportResponse = (input?: Record<string, any>) => {
1765
1811
  return decode(typeMappings, input);
1766
1812
  };
1767
1813
 
1814
+ decoders.CreateImportV2TaskResponse = (input?: Record<string, any>) => {
1815
+ const typeMappings: TypeMapping = {
1816
+ created_at: { type: 'DatetimeType', isSingle: true },
1817
+
1818
+ updated_at: { type: 'DatetimeType', isSingle: true },
1819
+ };
1820
+ return decode(typeMappings, input);
1821
+ };
1822
+
1768
1823
  decoders.CreateMembershipLevelResponse = (input?: Record<string, any>) => {
1769
1824
  const typeMappings: TypeMapping = {
1770
1825
  membership_level: { type: 'MembershipLevelResponse', isSingle: true },
@@ -2292,6 +2347,19 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
2292
2347
  return decode(typeMappings, input);
2293
2348
  };
2294
2349
 
2350
+ decoders.FutureChannelBanResponse = (input?: Record<string, any>) => {
2351
+ const typeMappings: TypeMapping = {
2352
+ created_at: { type: 'DatetimeType', isSingle: true },
2353
+
2354
+ expires: { type: 'DatetimeType', isSingle: true },
2355
+
2356
+ banned_by: { type: 'UserResponse', isSingle: true },
2357
+
2358
+ user: { type: 'UserResponse', isSingle: true },
2359
+ };
2360
+ return decode(typeMappings, input);
2361
+ };
2362
+
2295
2363
  decoders.GetActiveCallsStatusResponse = (input?: Record<string, any>) => {
2296
2364
  const typeMappings: TypeMapping = {
2297
2365
  end_time: { type: 'DatetimeType', isSingle: true },
@@ -2308,6 +2376,13 @@ decoders.GetActivityResponse = (input?: Record<string, any>) => {
2308
2376
  return decode(typeMappings, input);
2309
2377
  };
2310
2378
 
2379
+ decoders.GetAppealResponse = (input?: Record<string, any>) => {
2380
+ const typeMappings: TypeMapping = {
2381
+ item: { type: 'AppealItemResponse', isSingle: true },
2382
+ };
2383
+ return decode(typeMappings, input);
2384
+ };
2385
+
2311
2386
  decoders.GetApplicationResponse = (input?: Record<string, any>) => {
2312
2387
  const typeMappings: TypeMapping = {
2313
2388
  app: { type: 'AppResponseFields', isSingle: true },
@@ -2441,6 +2516,15 @@ decoders.GetImportResponse = (input?: Record<string, any>) => {
2441
2516
  return decode(typeMappings, input);
2442
2517
  };
2443
2518
 
2519
+ decoders.GetImportV2TaskResponse = (input?: Record<string, any>) => {
2520
+ const typeMappings: TypeMapping = {
2521
+ created_at: { type: 'DatetimeType', isSingle: true },
2522
+
2523
+ updated_at: { type: 'DatetimeType', isSingle: true },
2524
+ };
2525
+ return decode(typeMappings, input);
2526
+ };
2527
+
2444
2528
  decoders.GetManyMessagesResponse = (input?: Record<string, any>) => {
2445
2529
  const typeMappings: TypeMapping = {
2446
2530
  messages: { type: 'MessageResponse', isSingle: false },
@@ -2585,6 +2669,36 @@ decoders.ImportTaskHistory = (input?: Record<string, any>) => {
2585
2669
  return decode(typeMappings, input);
2586
2670
  };
2587
2671
 
2672
+ decoders.ImportV2TaskItem = (input?: Record<string, any>) => {
2673
+ const typeMappings: TypeMapping = {
2674
+ created_at: { type: 'DatetimeType', isSingle: true },
2675
+
2676
+ updated_at: { type: 'DatetimeType', isSingle: true },
2677
+ };
2678
+ return decode(typeMappings, input);
2679
+ };
2680
+
2681
+ decoders.IngressErrorEvent = (input?: Record<string, any>) => {
2682
+ const typeMappings: TypeMapping = {
2683
+ created_at: { type: 'DatetimeType', isSingle: true },
2684
+ };
2685
+ return decode(typeMappings, input);
2686
+ };
2687
+
2688
+ decoders.IngressStartedEvent = (input?: Record<string, any>) => {
2689
+ const typeMappings: TypeMapping = {
2690
+ created_at: { type: 'DatetimeType', isSingle: true },
2691
+ };
2692
+ return decode(typeMappings, input);
2693
+ };
2694
+
2695
+ decoders.IngressStoppedEvent = (input?: Record<string, any>) => {
2696
+ const typeMappings: TypeMapping = {
2697
+ created_at: { type: 'DatetimeType', isSingle: true },
2698
+ };
2699
+ return decode(typeMappings, input);
2700
+ };
2701
+
2588
2702
  decoders.KickedUserEvent = (input?: Record<string, any>) => {
2589
2703
  const typeMappings: TypeMapping = {
2590
2704
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2645,6 +2759,13 @@ decoders.ListFeedViewsResponse = (input?: Record<string, any>) => {
2645
2759
  return decode(typeMappings, input);
2646
2760
  };
2647
2761
 
2762
+ decoders.ListImportV2TasksResponse = (input?: Record<string, any>) => {
2763
+ const typeMappings: TypeMapping = {
2764
+ import_tasks: { type: 'ImportV2TaskItem', isSingle: false },
2765
+ };
2766
+ return decode(typeMappings, input);
2767
+ };
2768
+
2648
2769
  decoders.ListImportsResponse = (input?: Record<string, any>) => {
2649
2770
  const typeMappings: TypeMapping = {
2650
2771
  import_tasks: { type: 'ImportTask', isSingle: false },
@@ -3261,6 +3382,15 @@ decoders.ParticipantSeriesTimeframe = (input?: Record<string, any>) => {
3261
3382
  return decode(typeMappings, input);
3262
3383
  };
3263
3384
 
3385
+ decoders.ParticipantSessionDetails = (input?: Record<string, any>) => {
3386
+ const typeMappings: TypeMapping = {
3387
+ joined_at: { type: 'DatetimeType', isSingle: true },
3388
+
3389
+ left_at: { type: 'DatetimeType', isSingle: true },
3390
+ };
3391
+ return decode(typeMappings, input);
3392
+ };
3393
+
3264
3394
  decoders.PendingMessageEvent = (input?: Record<string, any>) => {
3265
3395
  const typeMappings: TypeMapping = {
3266
3396
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3455,6 +3585,13 @@ decoders.QueryActivityReactionsResponse = (input?: Record<string, any>) => {
3455
3585
  return decode(typeMappings, input);
3456
3586
  };
3457
3587
 
3588
+ decoders.QueryAppealsResponse = (input?: Record<string, any>) => {
3589
+ const typeMappings: TypeMapping = {
3590
+ items: { type: 'AppealItemResponse', isSingle: false },
3591
+ };
3592
+ return decode(typeMappings, input);
3593
+ };
3594
+
3458
3595
  decoders.QueryBannedUsersResponse = (input?: Record<string, any>) => {
3459
3596
  const typeMappings: TypeMapping = {
3460
3597
  bans: { type: 'BanResponse', isSingle: false },
@@ -3483,6 +3620,20 @@ decoders.QueryCallMembersResponse = (input?: Record<string, any>) => {
3483
3620
  return decode(typeMappings, input);
3484
3621
  };
3485
3622
 
3623
+ decoders.QueryCallParticipantSessionsResponse = (
3624
+ input?: Record<string, any>,
3625
+ ) => {
3626
+ const typeMappings: TypeMapping = {
3627
+ participants_sessions: {
3628
+ type: 'ParticipantSessionDetails',
3629
+ isSingle: false,
3630
+ },
3631
+
3632
+ session: { type: 'CallSessionResponse', isSingle: true },
3633
+ };
3634
+ return decode(typeMappings, input);
3635
+ };
3636
+
3486
3637
  decoders.QueryCallParticipantsResponse = (input?: Record<string, any>) => {
3487
3638
  const typeMappings: TypeMapping = {
3488
3639
  members: { type: 'MemberResponse', isSingle: false },
@@ -3619,6 +3770,13 @@ decoders.QueryFollowsResponse = (input?: Record<string, any>) => {
3619
3770
  return decode(typeMappings, input);
3620
3771
  };
3621
3772
 
3773
+ decoders.QueryFutureChannelBansResponse = (input?: Record<string, any>) => {
3774
+ const typeMappings: TypeMapping = {
3775
+ bans: { type: 'FutureChannelBanResponse', isSingle: false },
3776
+ };
3777
+ return decode(typeMappings, input);
3778
+ };
3779
+
3622
3780
  decoders.QueryMembershipLevelsResponse = (input?: Record<string, any>) => {
3623
3781
  const typeMappings: TypeMapping = {
3624
3782
  membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
@@ -3931,6 +4089,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
3931
4089
 
3932
4090
  reviewed_at: { type: 'DatetimeType', isSingle: true },
3933
4091
 
4092
+ appeal: { type: 'AppealItemResponse', isSingle: true },
4093
+
3934
4094
  assigned_to: { type: 'UserResponse', isSingle: true },
3935
4095
 
3936
4096
  call: { type: 'CallResponse', isSingle: true },
@@ -4170,6 +4330,8 @@ decoders.StoriesFeedUpdatedEvent = (input?: Record<string, any>) => {
4170
4330
 
4171
4331
  decoders.SubmitActionResponse = (input?: Record<string, any>) => {
4172
4332
  const typeMappings: TypeMapping = {
4333
+ appeal_item: { type: 'AppealItemResponse', isSingle: true },
4334
+
4173
4335
  item: { type: 'ReviewQueueItemResponse', isSingle: true },
4174
4336
  };
4175
4337
  return decode(typeMappings, input);
@@ -4263,6 +4425,8 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
4263
4425
 
4264
4426
  deleted_at: { type: 'DatetimeType', isSingle: true },
4265
4427
 
4428
+ edited_at: { type: 'DatetimeType', isSingle: true },
4429
+
4266
4430
  latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
4267
4431
 
4268
4432
  replies: { type: 'ThreadedCommentResponse', isSingle: false },