@stream-io/node-sdk 0.7.34 → 0.7.35

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
 
@@ -1765,6 +1809,15 @@ decoders.CreateImportResponse = (input?: Record<string, any>) => {
1765
1809
  return decode(typeMappings, input);
1766
1810
  };
1767
1811
 
1812
+ decoders.CreateImportV2TaskResponse = (input?: Record<string, any>) => {
1813
+ const typeMappings: TypeMapping = {
1814
+ created_at: { type: 'DatetimeType', isSingle: true },
1815
+
1816
+ updated_at: { type: 'DatetimeType', isSingle: true },
1817
+ };
1818
+ return decode(typeMappings, input);
1819
+ };
1820
+
1768
1821
  decoders.CreateMembershipLevelResponse = (input?: Record<string, any>) => {
1769
1822
  const typeMappings: TypeMapping = {
1770
1823
  membership_level: { type: 'MembershipLevelResponse', isSingle: true },
@@ -2292,6 +2345,19 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
2292
2345
  return decode(typeMappings, input);
2293
2346
  };
2294
2347
 
2348
+ decoders.FutureChannelBanResponse = (input?: Record<string, any>) => {
2349
+ const typeMappings: TypeMapping = {
2350
+ created_at: { type: 'DatetimeType', isSingle: true },
2351
+
2352
+ expires: { type: 'DatetimeType', isSingle: true },
2353
+
2354
+ banned_by: { type: 'UserResponse', isSingle: true },
2355
+
2356
+ user: { type: 'UserResponse', isSingle: true },
2357
+ };
2358
+ return decode(typeMappings, input);
2359
+ };
2360
+
2295
2361
  decoders.GetActiveCallsStatusResponse = (input?: Record<string, any>) => {
2296
2362
  const typeMappings: TypeMapping = {
2297
2363
  end_time: { type: 'DatetimeType', isSingle: true },
@@ -2308,6 +2374,13 @@ decoders.GetActivityResponse = (input?: Record<string, any>) => {
2308
2374
  return decode(typeMappings, input);
2309
2375
  };
2310
2376
 
2377
+ decoders.GetAppealResponse = (input?: Record<string, any>) => {
2378
+ const typeMappings: TypeMapping = {
2379
+ item: { type: 'AppealItemResponse', isSingle: true },
2380
+ };
2381
+ return decode(typeMappings, input);
2382
+ };
2383
+
2311
2384
  decoders.GetApplicationResponse = (input?: Record<string, any>) => {
2312
2385
  const typeMappings: TypeMapping = {
2313
2386
  app: { type: 'AppResponseFields', isSingle: true },
@@ -2441,6 +2514,15 @@ decoders.GetImportResponse = (input?: Record<string, any>) => {
2441
2514
  return decode(typeMappings, input);
2442
2515
  };
2443
2516
 
2517
+ decoders.GetImportV2TaskResponse = (input?: Record<string, any>) => {
2518
+ const typeMappings: TypeMapping = {
2519
+ created_at: { type: 'DatetimeType', isSingle: true },
2520
+
2521
+ updated_at: { type: 'DatetimeType', isSingle: true },
2522
+ };
2523
+ return decode(typeMappings, input);
2524
+ };
2525
+
2444
2526
  decoders.GetManyMessagesResponse = (input?: Record<string, any>) => {
2445
2527
  const typeMappings: TypeMapping = {
2446
2528
  messages: { type: 'MessageResponse', isSingle: false },
@@ -2585,6 +2667,36 @@ decoders.ImportTaskHistory = (input?: Record<string, any>) => {
2585
2667
  return decode(typeMappings, input);
2586
2668
  };
2587
2669
 
2670
+ decoders.ImportV2TaskItem = (input?: Record<string, any>) => {
2671
+ const typeMappings: TypeMapping = {
2672
+ created_at: { type: 'DatetimeType', isSingle: true },
2673
+
2674
+ updated_at: { type: 'DatetimeType', isSingle: true },
2675
+ };
2676
+ return decode(typeMappings, input);
2677
+ };
2678
+
2679
+ decoders.IngressErrorEvent = (input?: Record<string, any>) => {
2680
+ const typeMappings: TypeMapping = {
2681
+ created_at: { type: 'DatetimeType', isSingle: true },
2682
+ };
2683
+ return decode(typeMappings, input);
2684
+ };
2685
+
2686
+ decoders.IngressStartedEvent = (input?: Record<string, any>) => {
2687
+ const typeMappings: TypeMapping = {
2688
+ created_at: { type: 'DatetimeType', isSingle: true },
2689
+ };
2690
+ return decode(typeMappings, input);
2691
+ };
2692
+
2693
+ decoders.IngressStoppedEvent = (input?: Record<string, any>) => {
2694
+ const typeMappings: TypeMapping = {
2695
+ created_at: { type: 'DatetimeType', isSingle: true },
2696
+ };
2697
+ return decode(typeMappings, input);
2698
+ };
2699
+
2588
2700
  decoders.KickedUserEvent = (input?: Record<string, any>) => {
2589
2701
  const typeMappings: TypeMapping = {
2590
2702
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2645,6 +2757,13 @@ decoders.ListFeedViewsResponse = (input?: Record<string, any>) => {
2645
2757
  return decode(typeMappings, input);
2646
2758
  };
2647
2759
 
2760
+ decoders.ListImportV2TasksResponse = (input?: Record<string, any>) => {
2761
+ const typeMappings: TypeMapping = {
2762
+ import_tasks: { type: 'ImportV2TaskItem', isSingle: false },
2763
+ };
2764
+ return decode(typeMappings, input);
2765
+ };
2766
+
2648
2767
  decoders.ListImportsResponse = (input?: Record<string, any>) => {
2649
2768
  const typeMappings: TypeMapping = {
2650
2769
  import_tasks: { type: 'ImportTask', isSingle: false },
@@ -3261,6 +3380,15 @@ decoders.ParticipantSeriesTimeframe = (input?: Record<string, any>) => {
3261
3380
  return decode(typeMappings, input);
3262
3381
  };
3263
3382
 
3383
+ decoders.ParticipantSessionDetails = (input?: Record<string, any>) => {
3384
+ const typeMappings: TypeMapping = {
3385
+ joined_at: { type: 'DatetimeType', isSingle: true },
3386
+
3387
+ left_at: { type: 'DatetimeType', isSingle: true },
3388
+ };
3389
+ return decode(typeMappings, input);
3390
+ };
3391
+
3264
3392
  decoders.PendingMessageEvent = (input?: Record<string, any>) => {
3265
3393
  const typeMappings: TypeMapping = {
3266
3394
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3455,6 +3583,13 @@ decoders.QueryActivityReactionsResponse = (input?: Record<string, any>) => {
3455
3583
  return decode(typeMappings, input);
3456
3584
  };
3457
3585
 
3586
+ decoders.QueryAppealsResponse = (input?: Record<string, any>) => {
3587
+ const typeMappings: TypeMapping = {
3588
+ items: { type: 'AppealItemResponse', isSingle: false },
3589
+ };
3590
+ return decode(typeMappings, input);
3591
+ };
3592
+
3458
3593
  decoders.QueryBannedUsersResponse = (input?: Record<string, any>) => {
3459
3594
  const typeMappings: TypeMapping = {
3460
3595
  bans: { type: 'BanResponse', isSingle: false },
@@ -3483,6 +3618,20 @@ decoders.QueryCallMembersResponse = (input?: Record<string, any>) => {
3483
3618
  return decode(typeMappings, input);
3484
3619
  };
3485
3620
 
3621
+ decoders.QueryCallParticipantSessionsResponse = (
3622
+ input?: Record<string, any>,
3623
+ ) => {
3624
+ const typeMappings: TypeMapping = {
3625
+ participants_sessions: {
3626
+ type: 'ParticipantSessionDetails',
3627
+ isSingle: false,
3628
+ },
3629
+
3630
+ session: { type: 'CallSessionResponse', isSingle: true },
3631
+ };
3632
+ return decode(typeMappings, input);
3633
+ };
3634
+
3486
3635
  decoders.QueryCallParticipantsResponse = (input?: Record<string, any>) => {
3487
3636
  const typeMappings: TypeMapping = {
3488
3637
  members: { type: 'MemberResponse', isSingle: false },
@@ -3619,6 +3768,13 @@ decoders.QueryFollowsResponse = (input?: Record<string, any>) => {
3619
3768
  return decode(typeMappings, input);
3620
3769
  };
3621
3770
 
3771
+ decoders.QueryFutureChannelBansResponse = (input?: Record<string, any>) => {
3772
+ const typeMappings: TypeMapping = {
3773
+ bans: { type: 'FutureChannelBanResponse', isSingle: false },
3774
+ };
3775
+ return decode(typeMappings, input);
3776
+ };
3777
+
3622
3778
  decoders.QueryMembershipLevelsResponse = (input?: Record<string, any>) => {
3623
3779
  const typeMappings: TypeMapping = {
3624
3780
  membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
@@ -3931,6 +4087,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
3931
4087
 
3932
4088
  reviewed_at: { type: 'DatetimeType', isSingle: true },
3933
4089
 
4090
+ appeal: { type: 'AppealItemResponse', isSingle: true },
4091
+
3934
4092
  assigned_to: { type: 'UserResponse', isSingle: true },
3935
4093
 
3936
4094
  call: { type: 'CallResponse', isSingle: true },
@@ -4170,6 +4328,8 @@ decoders.StoriesFeedUpdatedEvent = (input?: Record<string, any>) => {
4170
4328
 
4171
4329
  decoders.SubmitActionResponse = (input?: Record<string, any>) => {
4172
4330
  const typeMappings: TypeMapping = {
4331
+ appeal_item: { type: 'AppealItemResponse', isSingle: true },
4332
+
4173
4333
  item: { type: 'ReviewQueueItemResponse', isSingle: true },
4174
4334
  };
4175
4335
  return decode(typeMappings, input);