@stream-io/node-sdk 0.4.10 → 0.4.11

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.
@@ -167,8 +167,6 @@ export interface ActionLogResponse {
167
167
  }
168
168
 
169
169
  export interface AggregatedStats {
170
- countrywise_aggregate_stats?: Record<string, CountrywiseAggregateStats>;
171
-
172
170
  publisher_aggregate_stats?: PublisherAggregateStats;
173
171
 
174
172
  turn?: TURNAggregatedStats;
@@ -951,6 +949,8 @@ export interface CallRecordingFailedEvent {
951
949
 
952
950
  created_at: Date;
953
951
 
952
+ egress_id: string;
953
+
954
954
  type: string;
955
955
  }
956
956
 
@@ -959,6 +959,8 @@ export interface CallRecordingReadyEvent {
959
959
 
960
960
  created_at: Date;
961
961
 
962
+ egress_id: string;
963
+
962
964
  call_recording: CallRecording;
963
965
 
964
966
  type: string;
@@ -969,6 +971,8 @@ export interface CallRecordingStartedEvent {
969
971
 
970
972
  created_at: Date;
971
973
 
974
+ egress_id: string;
975
+
972
976
  type: string;
973
977
  }
974
978
 
@@ -977,6 +981,8 @@ export interface CallRecordingStoppedEvent {
977
981
 
978
982
  created_at: Date;
979
983
 
984
+ egress_id: string;
985
+
980
986
  type: string;
981
987
  }
982
988
 
@@ -1313,6 +1319,8 @@ export interface CallTranscriptionFailedEvent {
1313
1319
 
1314
1320
  created_at: Date;
1315
1321
 
1322
+ egress_id: string;
1323
+
1316
1324
  type: string;
1317
1325
  }
1318
1326
 
@@ -1321,6 +1329,8 @@ export interface CallTranscriptionReadyEvent {
1321
1329
 
1322
1330
  created_at: Date;
1323
1331
 
1332
+ egress_id: string;
1333
+
1324
1334
  call_transcription: CallTranscription;
1325
1335
 
1326
1336
  type: string;
@@ -1331,6 +1341,8 @@ export interface CallTranscriptionStartedEvent {
1331
1341
 
1332
1342
  created_at: Date;
1333
1343
 
1344
+ egress_id: string;
1345
+
1334
1346
  type: string;
1335
1347
  }
1336
1348
 
@@ -1339,6 +1351,8 @@ export interface CallTranscriptionStoppedEvent {
1339
1351
 
1340
1352
  created_at: Date;
1341
1353
 
1354
+ egress_id: string;
1355
+
1342
1356
  type: string;
1343
1357
  }
1344
1358
 
@@ -1423,6 +1437,8 @@ export interface CampaignChannelTemplate {
1423
1437
  export interface CampaignCompletedEvent {
1424
1438
  created_at: Date;
1425
1439
 
1440
+ custom: Record<string, any>;
1441
+
1426
1442
  type: string;
1427
1443
 
1428
1444
  received_at?: Date;
@@ -1487,6 +1503,8 @@ export interface CampaignResponse {
1487
1503
  export interface CampaignStartedEvent {
1488
1504
  created_at: Date;
1489
1505
 
1506
+ custom: Record<string, any>;
1507
+
1490
1508
  type: string;
1491
1509
 
1492
1510
  received_at?: Date;
@@ -1939,6 +1957,12 @@ export const ChannelOwnCapability = {
1939
1957
  export type ChannelOwnCapability =
1940
1958
  (typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
1941
1959
 
1960
+ export interface ChannelPushPreferences {
1961
+ chat_level?: string;
1962
+
1963
+ disabled_until?: Date;
1964
+ }
1965
+
1942
1966
  export interface ChannelResponse {
1943
1967
  cid: string;
1944
1968
 
@@ -2019,6 +2043,8 @@ export interface ChannelStateResponse {
2019
2043
  channel?: ChannelResponse;
2020
2044
 
2021
2045
  membership?: ChannelMember;
2046
+
2047
+ push_preferences?: ChannelPushPreferences;
2022
2048
  }
2023
2049
 
2024
2050
  export interface ChannelStateResponseFields {
@@ -2045,6 +2071,8 @@ export interface ChannelStateResponseFields {
2045
2071
  channel?: ChannelResponse;
2046
2072
 
2047
2073
  membership?: ChannelMember;
2074
+
2075
+ push_preferences?: ChannelPushPreferences;
2048
2076
  }
2049
2077
 
2050
2078
  export interface ChannelTruncatedEvent {
@@ -2409,18 +2437,6 @@ export interface Count {
2409
2437
  value: number;
2410
2438
  }
2411
2439
 
2412
- export interface CountrywiseAggregateStats {
2413
- participant_count?: Count;
2414
-
2415
- publisher_jitter?: TimeStats;
2416
-
2417
- publisher_latency?: TimeStats;
2418
-
2419
- subscriber_jitter?: TimeStats;
2420
-
2421
- subscriber_latency?: TimeStats;
2422
- }
2423
-
2424
2440
  export interface CreateBlockListRequest {
2425
2441
  name: string;
2426
2442
 
@@ -3049,6 +3065,8 @@ export interface EdgeResponse {
3049
3065
 
3050
3066
  export interface EgressHLSResponse {
3051
3067
  playlist_url: string;
3068
+
3069
+ status: string;
3052
3070
  }
3053
3071
 
3054
3072
  export interface EgressRTMPResponse {
@@ -3167,8 +3185,6 @@ export interface EntityCreator {
3167
3185
  teams?: string[];
3168
3186
 
3169
3187
  privacy_settings?: PrivacySettings;
3170
-
3171
- push_notifications?: PushNotificationSettings;
3172
3188
  }
3173
3189
 
3174
3190
  export interface EntityCreatorResponse {
@@ -3196,8 +3212,6 @@ export interface EntityCreatorResponse {
3196
3212
 
3197
3213
  blocked_user_ids: string[];
3198
3214
 
3199
- devices: DeviceResponse[];
3200
-
3201
3215
  teams: string[];
3202
3216
 
3203
3217
  custom: Record<string, any>;
@@ -3216,6 +3230,8 @@ export interface EntityCreatorResponse {
3216
3230
 
3217
3231
  revoke_tokens_issued_before?: Date;
3218
3232
 
3233
+ devices?: DeviceResponse[];
3234
+
3219
3235
  privacy_settings?: PrivacySettingsResponse;
3220
3236
 
3221
3237
  push_notifications?: PushNotificationSettingsResponse;
@@ -3522,6 +3538,8 @@ export interface FlagResponse {
3522
3538
  export interface FlagUpdatedEvent {
3523
3539
  created_at: Date;
3524
3540
 
3541
+ custom: Record<string, any>;
3542
+
3525
3543
  type: string;
3526
3544
 
3527
3545
  received_at?: Date;
@@ -3587,8 +3605,6 @@ export interface FullUserResponse {
3587
3605
  latest_hidden_channels?: string[];
3588
3606
 
3589
3607
  privacy_settings?: PrivacySettingsResponse;
3590
-
3591
- push_notifications?: PushNotificationSettingsResponse;
3592
3608
  }
3593
3609
 
3594
3610
  export interface GeofenceResponse {
@@ -4726,13 +4742,15 @@ export interface MessageReadEvent {
4726
4742
 
4727
4743
  type: string;
4728
4744
 
4745
+ channel_last_message_at?: Date;
4746
+
4729
4747
  last_read_message_id?: string;
4730
4748
 
4731
4749
  team?: string;
4732
4750
 
4733
4751
  thread?: ThreadResponse;
4734
4752
 
4735
- user?: UserResponse;
4753
+ user?: UserResponseCommonFields;
4736
4754
  }
4737
4755
 
4738
4756
  export interface MessageRequest {
@@ -5020,6 +5038,8 @@ export interface ModerationCustomActionEvent {
5020
5038
  export interface ModerationEvent {
5021
5039
  created_at: Date;
5022
5040
 
5041
+ custom: Record<string, any>;
5042
+
5023
5043
  type: string;
5024
5044
 
5025
5045
  received_at?: Date;
@@ -5249,17 +5269,7 @@ export interface NotificationSettings {
5249
5269
  session_started: EventNotificationSettings;
5250
5270
  }
5251
5271
 
5252
- export interface NullBool {
5253
- has_value?: boolean;
5254
-
5255
- value?: boolean;
5256
- }
5257
-
5258
- export interface NullTime {
5259
- has_value?: boolean;
5260
-
5261
- value?: Date;
5262
- }
5272
+ export interface NullTime {}
5263
5273
 
5264
5274
  export interface OnlyUserID {
5265
5275
  id: string;
@@ -5348,7 +5358,7 @@ export interface OwnUser {
5348
5358
 
5349
5359
  privacy_settings?: PrivacySettings;
5350
5360
 
5351
- push_notifications?: PushNotificationSettings;
5361
+ push_preferences?: PushPreferences;
5352
5362
  }
5353
5363
 
5354
5364
  export interface OwnUserResponse {
@@ -5404,7 +5414,7 @@ export interface OwnUserResponse {
5404
5414
 
5405
5415
  privacy_settings?: PrivacySettingsResponse;
5406
5416
 
5407
- push_notifications?: PushNotificationSettingsResponse;
5417
+ push_preferences?: PushPreferences;
5408
5418
  }
5409
5419
 
5410
5420
  export interface PaginationParams {
@@ -5753,20 +5763,28 @@ export interface PushNotificationFields {
5753
5763
  providers?: PushProvider[];
5754
5764
  }
5755
5765
 
5756
- export interface PushNotificationSettings {
5766
+ export interface PushNotificationSettingsResponse {
5757
5767
  disabled?: boolean;
5758
5768
 
5759
5769
  disabled_until?: Date;
5760
5770
  }
5761
5771
 
5762
- export interface PushNotificationSettingsInput {
5763
- disabled?: NullBool;
5772
+ export interface PushPreferenceInput {
5773
+ channel_cid?: string;
5774
+
5775
+ chat_level?: 'all' | 'mentions' | 'none' | 'default';
5764
5776
 
5765
- disabled_until?: NullTime;
5777
+ disabled_until?: Date;
5778
+
5779
+ remove_disable?: boolean;
5780
+
5781
+ user_id?: string;
5766
5782
  }
5767
5783
 
5768
- export interface PushNotificationSettingsResponse {
5769
- disabled?: boolean;
5784
+ export interface PushPreferences {
5785
+ call_level?: string;
5786
+
5787
+ chat_level?: string;
5770
5788
 
5771
5789
  disabled_until?: Date;
5772
5790
  }
@@ -6280,7 +6298,7 @@ export interface QueryReviewQueueResponse {
6280
6298
 
6281
6299
  action_config: Record<string, ModerationActionConfig[]>;
6282
6300
 
6283
- stats: Record<string, number>;
6301
+ stats: Record<string, any>;
6284
6302
 
6285
6303
  next?: string;
6286
6304
 
@@ -6796,8 +6814,6 @@ export interface ReviewQueueItem {
6796
6814
 
6797
6815
  teams: string[];
6798
6816
 
6799
- completed_at: NullTime;
6800
-
6801
6817
  reviewed_at: NullTime;
6802
6818
 
6803
6819
  assigned_to?: User;
@@ -8476,6 +8492,21 @@ export interface UpsertModerationTemplateResponse {
8476
8492
  config?: FeedsModerationTemplateConfig;
8477
8493
  }
8478
8494
 
8495
+ export interface UpsertPushPreferencesRequest {
8496
+ preferences: PushPreferenceInput[];
8497
+ }
8498
+
8499
+ export interface UpsertPushPreferencesResponse {
8500
+ duration: string;
8501
+
8502
+ user_channel_preferences: Record<
8503
+ string,
8504
+ Record<string, ChannelPushPreferences>
8505
+ >;
8506
+
8507
+ user_preferences: Record<string, PushPreferences>;
8508
+ }
8509
+
8479
8510
  export interface UpsertPushProviderRequest {
8480
8511
  push_provider?: PushProvider;
8481
8512
  }
@@ -8520,8 +8551,6 @@ export interface User {
8520
8551
  teams?: string[];
8521
8552
 
8522
8553
  privacy_settings?: PrivacySettings;
8523
-
8524
- push_notifications?: PushNotificationSettings;
8525
8554
  }
8526
8555
 
8527
8556
  export interface UserBannedEvent {
@@ -8586,44 +8615,6 @@ export interface UserDeletedEvent {
8586
8615
  user?: User;
8587
8616
  }
8588
8617
 
8589
- export interface UserEventPayload {
8590
- banned: boolean;
8591
-
8592
- created_at: Date;
8593
-
8594
- id: string;
8595
-
8596
- language: string;
8597
-
8598
- online: boolean;
8599
-
8600
- role: string;
8601
-
8602
- updated_at: Date;
8603
-
8604
- blocked_user_ids: string[];
8605
-
8606
- teams: string[];
8607
-
8608
- custom: Record<string, any>;
8609
-
8610
- deactivated_at?: Date;
8611
-
8612
- deleted_at?: Date;
8613
-
8614
- image?: string;
8615
-
8616
- invisible?: boolean;
8617
-
8618
- last_active?: Date;
8619
-
8620
- name?: string;
8621
-
8622
- revoke_tokens_issued_before?: Date;
8623
-
8624
- privacy_settings?: PrivacySettingsResponse;
8625
- }
8626
-
8627
8618
  export interface UserFeedbackReport {
8628
8619
  unreported_count: number;
8629
8620
 
@@ -8746,8 +8737,6 @@ export interface UserRequest {
8746
8737
  custom?: Record<string, any>;
8747
8738
 
8748
8739
  privacy_settings?: PrivacySettingsResponse;
8749
-
8750
- push_notifications?: PushNotificationSettingsInput;
8751
8740
  }
8752
8741
 
8753
8742
  export interface UserResponse {
@@ -8771,8 +8760,6 @@ export interface UserResponse {
8771
8760
 
8772
8761
  blocked_user_ids: string[];
8773
8762
 
8774
- devices: DeviceResponse[];
8775
-
8776
8763
  teams: string[];
8777
8764
 
8778
8765
  custom: Record<string, any>;
@@ -8791,11 +8778,85 @@ export interface UserResponse {
8791
8778
 
8792
8779
  revoke_tokens_issued_before?: Date;
8793
8780
 
8781
+ devices?: DeviceResponse[];
8782
+
8794
8783
  privacy_settings?: PrivacySettingsResponse;
8795
8784
 
8796
8785
  push_notifications?: PushNotificationSettingsResponse;
8797
8786
  }
8798
8787
 
8788
+ export interface UserResponseCommonFields {
8789
+ banned: boolean;
8790
+
8791
+ created_at: Date;
8792
+
8793
+ id: string;
8794
+
8795
+ language: string;
8796
+
8797
+ online: boolean;
8798
+
8799
+ role: string;
8800
+
8801
+ updated_at: Date;
8802
+
8803
+ blocked_user_ids: string[];
8804
+
8805
+ teams: string[];
8806
+
8807
+ custom: Record<string, any>;
8808
+
8809
+ deactivated_at?: Date;
8810
+
8811
+ deleted_at?: Date;
8812
+
8813
+ image?: string;
8814
+
8815
+ last_active?: Date;
8816
+
8817
+ name?: string;
8818
+
8819
+ revoke_tokens_issued_before?: Date;
8820
+ }
8821
+
8822
+ export interface UserResponsePrivacyFields {
8823
+ banned: boolean;
8824
+
8825
+ created_at: Date;
8826
+
8827
+ id: string;
8828
+
8829
+ language: string;
8830
+
8831
+ online: boolean;
8832
+
8833
+ role: string;
8834
+
8835
+ updated_at: Date;
8836
+
8837
+ blocked_user_ids: string[];
8838
+
8839
+ teams: string[];
8840
+
8841
+ custom: Record<string, any>;
8842
+
8843
+ deactivated_at?: Date;
8844
+
8845
+ deleted_at?: Date;
8846
+
8847
+ image?: string;
8848
+
8849
+ invisible?: boolean;
8850
+
8851
+ last_active?: Date;
8852
+
8853
+ name?: string;
8854
+
8855
+ revoke_tokens_issued_before?: Date;
8856
+
8857
+ privacy_settings?: PrivacySettingsResponse;
8858
+ }
8859
+
8799
8860
  export interface UserSessionStats {
8800
8861
  freeze_duration_seconds: number;
8801
8862
 
@@ -8955,7 +9016,9 @@ export interface UserUnreadReminderEvent {
8955
9016
  export interface UserUpdatedEvent {
8956
9017
  created_at: Date;
8957
9018
 
8958
- user: UserEventPayload;
9019
+ custom: Record<string, any>;
9020
+
9021
+ user: UserResponsePrivacyFields;
8959
9022
 
8960
9023
  type: string;
8961
9024
 
@@ -9067,6 +9130,8 @@ export interface WSEvent {
9067
9130
 
9068
9131
  channel_id?: string;
9069
9132
 
9133
+ channel_last_message_at?: Date;
9134
+
9070
9135
  channel_type?: string;
9071
9136
 
9072
9137
  cid?: string;