@stream-io/node-sdk 0.7.19 → 0.7.20

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.
@@ -847,6 +847,7 @@ export interface BookmarkFolderResponse {
847
847
  id: string;
848
848
  name: string;
849
849
  updated_at: Date;
850
+ user: UserResponseCommonFields;
850
851
  custom?: Record<string, any>;
851
852
  }
852
853
  export interface BookmarkFolderUpdatedEvent {
@@ -861,7 +862,7 @@ export interface BookmarkResponse {
861
862
  created_at: Date;
862
863
  updated_at: Date;
863
864
  activity: ActivityResponse;
864
- user: UserResponse;
865
+ user: UserResponseCommonFields;
865
866
  custom?: Record<string, any>;
866
867
  folder?: BookmarkFolderResponse;
867
868
  }
@@ -1330,6 +1331,7 @@ export interface CallStatsLocation {
1330
1331
  city?: string;
1331
1332
  continent?: string;
1332
1333
  country?: string;
1334
+ country_iso_code?: string;
1333
1335
  latitude?: number;
1334
1336
  longitude?: number;
1335
1337
  subdivision?: string;
@@ -1344,6 +1346,8 @@ export interface CallStatsParticipant {
1344
1346
  export interface CallStatsParticipantCounts {
1345
1347
  live_sessions: number;
1346
1348
  participants: number;
1349
+ peak_concurrent_sessions: number;
1350
+ peak_concurrent_users: number;
1347
1351
  publishers: number;
1348
1352
  sessions: number;
1349
1353
  }
@@ -1358,6 +1362,7 @@ export interface CallStatsParticipantSession {
1358
1362
  current_sfu?: string;
1359
1363
  distance_to_sfu_kilometers?: number;
1360
1364
  ended_at?: Date;
1365
+ os?: string;
1361
1366
  publisher_type?: string;
1362
1367
  sdk?: string;
1363
1368
  sdk_version?: string;
@@ -1467,12 +1472,18 @@ export interface CallsPerDayReport {
1467
1472
  export interface CallsPerDayReportResponse {
1468
1473
  daily: DailyAggregateCallsPerDayReportResponse[];
1469
1474
  }
1475
+ export interface CampaignChannelMember {
1476
+ user_id: string;
1477
+ channel_role?: string;
1478
+ custom?: Record<string, any>;
1479
+ }
1470
1480
  export interface CampaignChannelTemplate {
1471
1481
  type: string;
1472
1482
  custom: Record<string, any>;
1473
1483
  id?: string;
1474
1484
  team?: string;
1475
1485
  members?: string[];
1486
+ members_template?: CampaignChannelMember[];
1476
1487
  }
1477
1488
  export interface CampaignCompletedEvent {
1478
1489
  created_at: Date;
@@ -1483,6 +1494,7 @@ export interface CampaignCompletedEvent {
1483
1494
  }
1484
1495
  export interface CampaignMessageTemplate {
1485
1496
  poll_id: string;
1497
+ searchable: boolean;
1486
1498
  text: string;
1487
1499
  attachments: Attachment[];
1488
1500
  custom: Record<string, any>;
@@ -1553,6 +1565,7 @@ export interface Channel {
1553
1565
  message_count_updated_at?: Date;
1554
1566
  team?: string;
1555
1567
  active_live_locations?: SharedLocation[];
1568
+ filter_tags?: string[];
1556
1569
  invites?: ChannelMember[];
1557
1570
  members?: ChannelMember[];
1558
1571
  config?: ChannelConfig;
@@ -1592,7 +1605,7 @@ export interface ChannelConfig {
1592
1605
  blocklist?: string;
1593
1606
  blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
1594
1607
  partition_size?: number;
1595
- partition_ttl?: number;
1608
+ partition_ttl?: string;
1596
1609
  allowed_flag_reasons?: string[];
1597
1610
  blocklists?: BlockListOptions[];
1598
1611
  automod_thresholds?: Thresholds;
@@ -1690,35 +1703,48 @@ export interface ChannelInput {
1690
1703
  frozen?: boolean;
1691
1704
  team?: string;
1692
1705
  truncated_by_id?: string;
1706
+ filter_tags?: string[];
1693
1707
  invites?: ChannelMemberRequest[];
1694
1708
  members?: ChannelMemberRequest[];
1695
1709
  config_overrides?: ChannelConfig;
1696
1710
  created_by?: UserRequest;
1697
1711
  custom?: Record<string, any>;
1698
1712
  }
1713
+ export interface ChannelInputRequest {
1714
+ auto_translation_enabled?: boolean;
1715
+ auto_translation_language?: string;
1716
+ disabled?: boolean;
1717
+ frozen?: boolean;
1718
+ team?: string;
1719
+ invites?: ChannelMember[];
1720
+ members?: ChannelMember[];
1721
+ config_overrides?: ConfigOverrides;
1722
+ created_by?: User;
1723
+ custom?: Record<string, any>;
1724
+ }
1699
1725
  export interface ChannelMember {
1700
- banned: boolean;
1701
- channel_role: string;
1702
- created_at: Date;
1703
- is_global_banned: boolean;
1704
- notifications_muted: boolean;
1705
- shadow_banned: boolean;
1706
- updated_at: Date;
1707
- custom: Record<string, any>;
1708
1726
  archived_at?: Date;
1709
1727
  ban_expires?: Date;
1728
+ banned?: boolean;
1710
1729
  blocked?: boolean;
1730
+ channel_role?: string;
1731
+ created_at?: Date;
1711
1732
  deleted_at?: Date;
1712
1733
  hidden?: boolean;
1713
1734
  invite_accepted_at?: Date;
1714
1735
  invite_rejected_at?: Date;
1715
1736
  invited?: boolean;
1737
+ is_global_banned?: boolean;
1716
1738
  is_moderator?: boolean;
1739
+ notifications_muted?: boolean;
1717
1740
  pinned_at?: Date;
1741
+ shadow_banned?: boolean;
1718
1742
  status?: string;
1743
+ updated_at?: Date;
1719
1744
  user_id?: string;
1720
1745
  deleted_messages?: string[];
1721
1746
  channel?: DenormalizedChannelFields;
1747
+ custom?: Record<string, any>;
1722
1748
  user?: User;
1723
1749
  }
1724
1750
  export interface ChannelMemberLookup {
@@ -1818,6 +1844,10 @@ export interface ChannelPushPreferences {
1818
1844
  chat_level?: string;
1819
1845
  disabled_until?: Date;
1820
1846
  }
1847
+ export interface ChannelPushPreferencesResponse {
1848
+ chat_level?: string;
1849
+ disabled_until?: Date;
1850
+ }
1821
1851
  export interface ChannelResponse {
1822
1852
  cid: string;
1823
1853
  created_at: Date;
@@ -1841,6 +1871,7 @@ export interface ChannelResponse {
1841
1871
  muted?: boolean;
1842
1872
  team?: string;
1843
1873
  truncated_at?: Date;
1874
+ filter_tags?: string[];
1844
1875
  members?: ChannelMemberResponse[];
1845
1876
  own_capabilities?: ChannelOwnCapability[];
1846
1877
  config?: ChannelConfigWithInfo;
@@ -1863,7 +1894,7 @@ export interface ChannelStateResponse {
1863
1894
  channel?: ChannelResponse;
1864
1895
  draft?: DraftResponse;
1865
1896
  membership?: ChannelMemberResponse;
1866
- push_preferences?: ChannelPushPreferences;
1897
+ push_preferences?: ChannelPushPreferencesResponse;
1867
1898
  }
1868
1899
  export interface ChannelStateResponseFields {
1869
1900
  members: ChannelMemberResponse[];
@@ -1880,7 +1911,7 @@ export interface ChannelStateResponseFields {
1880
1911
  channel?: ChannelResponse;
1881
1912
  draft?: DraftResponse;
1882
1913
  membership?: ChannelMemberResponse;
1883
- push_preferences?: ChannelPushPreferences;
1914
+ push_preferences?: ChannelPushPreferencesResponse;
1884
1915
  }
1885
1916
  export interface ChannelTruncatedEvent {
1886
1917
  channel_id: string;
@@ -2060,12 +2091,12 @@ export interface CollectionRequest {
2060
2091
  user_id?: string;
2061
2092
  }
2062
2093
  export interface CollectionResponse {
2063
- created_at: Date;
2064
2094
  id: string;
2065
2095
  name: string;
2066
- updated_at: Date;
2067
- custom: Record<string, any>;
2096
+ created_at?: Date;
2097
+ updated_at?: Date;
2068
2098
  user_id?: string;
2099
+ custom?: Record<string, any>;
2069
2100
  }
2070
2101
  export interface Command {
2071
2102
  args: string;
@@ -2169,8 +2200,6 @@ export interface CommentUpdatedEvent {
2169
2200
  export interface CommitMessageRequest {
2170
2201
  }
2171
2202
  export interface ConfigOverrides {
2172
- commands: string[];
2173
- grants: Record<string, string[]>;
2174
2203
  blocklist?: string;
2175
2204
  blocklist_behavior?: 'flag' | 'block';
2176
2205
  count_messages?: boolean;
@@ -2183,6 +2212,8 @@ export interface ConfigOverrides {
2183
2212
  uploads?: boolean;
2184
2213
  url_enrichment?: boolean;
2185
2214
  user_message_reminders?: boolean;
2215
+ commands?: string[];
2216
+ grants?: Record<string, string[]>;
2186
2217
  }
2187
2218
  export interface ConfigResponse {
2188
2219
  async: boolean;
@@ -2216,7 +2247,7 @@ export interface CreateBlockListRequest {
2216
2247
  is_leet_check_enabled?: boolean;
2217
2248
  is_plural_check_enabled?: boolean;
2218
2249
  team?: string;
2219
- type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
2250
+ type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'email_allowlist' | 'word';
2220
2251
  }
2221
2252
  export interface CreateBlockListResponse {
2222
2253
  duration: string;
@@ -2452,6 +2483,14 @@ export interface CreateRoleResponse {
2452
2483
  duration: string;
2453
2484
  role: Role;
2454
2485
  }
2486
+ export interface CreateSIPTrunkRequest {
2487
+ name: string;
2488
+ numbers: string[];
2489
+ }
2490
+ export interface CreateSIPTrunkResponse {
2491
+ duration: string;
2492
+ sip_trunk?: SIPTrunkResponse;
2493
+ }
2455
2494
  export interface CustomActionRequest {
2456
2495
  id?: string;
2457
2496
  options?: Record<string, any>;
@@ -2677,6 +2716,12 @@ export interface DeleteRecordingResponse {
2677
2716
  export interface DeleteReminderResponse {
2678
2717
  duration: string;
2679
2718
  }
2719
+ export interface DeleteSIPInboundRoutingRuleResponse {
2720
+ duration: string;
2721
+ }
2722
+ export interface DeleteSIPTrunkResponse {
2723
+ duration: string;
2724
+ }
2680
2725
  export interface DeleteSegmentTargetsRequest {
2681
2726
  target_ids: string[];
2682
2727
  }
@@ -2704,8 +2749,12 @@ export interface DeleteUsersResponse {
2704
2749
  duration: string;
2705
2750
  task_id: string;
2706
2751
  }
2752
+ export interface DeliveredMessagePayload {
2753
+ cid?: string;
2754
+ id?: string;
2755
+ }
2707
2756
  export interface DeliveryReceipts {
2708
- enabled: boolean;
2757
+ enabled?: boolean;
2709
2758
  }
2710
2759
  export interface DeliveryReceiptsResponse {
2711
2760
  enabled?: boolean;
@@ -2824,13 +2873,13 @@ export interface EnrichedActivity {
2824
2873
  target?: Data;
2825
2874
  }
2826
2875
  export interface EnrichedCollectionResponse {
2827
- created_at: Date;
2828
2876
  id: string;
2829
2877
  name: string;
2830
2878
  status: 'ok' | 'notfound';
2831
- updated_at: Date;
2832
- custom: Record<string, any>;
2879
+ created_at?: Date;
2880
+ updated_at?: Date;
2833
2881
  user_id?: string;
2882
+ custom?: Record<string, any>;
2834
2883
  }
2835
2884
  export interface EnrichedReaction {
2836
2885
  activity_id: string;
@@ -3211,6 +3260,14 @@ export interface FeedsPreferences {
3211
3260
  reaction?: 'all' | 'none';
3212
3261
  custom_activity_types?: Record<string, string>;
3213
3262
  }
3263
+ export interface FeedsPreferencesResponse {
3264
+ comment?: string;
3265
+ comment_reaction?: string;
3266
+ follow?: string;
3267
+ mention?: string;
3268
+ reaction?: string;
3269
+ custom_activity_types?: Record<string, string>;
3270
+ }
3214
3271
  export interface FeedsReactionResponse {
3215
3272
  activity_id: string;
3216
3273
  created_at: Date;
@@ -3241,6 +3298,10 @@ export interface FileUploadResponse {
3241
3298
  file?: string;
3242
3299
  thumb_url?: string;
3243
3300
  }
3301
+ export interface FilterConfigResponse {
3302
+ llm_labels: string[];
3303
+ ai_text_labels?: string[];
3304
+ }
3244
3305
  export interface FirebaseConfig {
3245
3306
  apn_template?: string;
3246
3307
  credentials_json?: string;
@@ -3734,7 +3795,7 @@ export interface GetRateLimitsResponse {
3734
3795
  }
3735
3796
  export interface GetReactionsResponse {
3736
3797
  duration: string;
3737
- reactions: Reaction[];
3798
+ reactions: ReactionResponse[];
3738
3799
  }
3739
3800
  export interface GetRepliesResponse {
3740
3801
  duration: string;
@@ -4100,6 +4161,14 @@ export interface ListRolesResponse {
4100
4161
  duration: string;
4101
4162
  roles: Role[];
4102
4163
  }
4164
+ export interface ListSIPInboundRoutingRuleResponse {
4165
+ duration: string;
4166
+ sip_inbound_routing_rules: SIPInboundRoutingRuleResponse[];
4167
+ }
4168
+ export interface ListSIPTrunksResponse {
4169
+ duration: string;
4170
+ sip_trunks: SIPTrunkResponse[];
4171
+ }
4103
4172
  export interface ListTranscriptionsResponse {
4104
4173
  duration: string;
4105
4174
  transcriptions: CallTranscription[];
@@ -4118,6 +4187,12 @@ export interface MarkChannelsReadRequest {
4118
4187
  read_by_channel?: Record<string, string>;
4119
4188
  user?: UserRequest;
4120
4189
  }
4190
+ export interface MarkDeliveredRequest {
4191
+ latest_delivered_messages?: DeliveredMessagePayload[];
4192
+ }
4193
+ export interface MarkDeliveredResponse {
4194
+ duration: string;
4195
+ }
4121
4196
  export interface MarkReadRequest {
4122
4197
  message_id?: string;
4123
4198
  thread_id?: string;
@@ -4134,6 +4209,7 @@ export interface MarkReviewedRequest {
4134
4209
  }
4135
4210
  export interface MarkUnreadRequest {
4136
4211
  message_id?: string;
4212
+ message_timestamp?: Date;
4137
4213
  thread_id?: string;
4138
4214
  user_id?: string;
4139
4215
  user?: UserRequest;
@@ -4522,6 +4598,11 @@ export interface MessageWithChannelResponse {
4522
4598
  reminder?: ReminderResponseData;
4523
4599
  shared_location?: SharedLocationResponseData;
4524
4600
  }
4601
+ export interface MetricDescriptor {
4602
+ label: string;
4603
+ description?: string;
4604
+ unit?: string;
4605
+ }
4525
4606
  export interface MetricThreshold {
4526
4607
  level: string;
4527
4608
  operator: string;
@@ -4879,7 +4960,7 @@ export interface OwnUserResponse {
4879
4960
  blocked_user_ids?: string[];
4880
4961
  latest_hidden_channels?: string[];
4881
4962
  privacy_settings?: PrivacySettingsResponse;
4882
- push_preferences?: PushPreferences;
4963
+ push_preferences?: PushPreferencesResponse;
4883
4964
  teams_role?: Record<string, string>;
4884
4965
  total_unread_count_by_team?: Record<string, number>;
4885
4966
  }
@@ -4919,13 +5000,17 @@ export interface ParticipantReportResponse {
4919
5000
  subscribers?: SubscriberStatsResponse;
4920
5001
  }
4921
5002
  export interface ParticipantSeriesPublisherStats {
5003
+ global_metrics_order?: string[];
4922
5004
  global?: Record<string, number[][]>;
5005
+ global_meta?: Record<string, MetricDescriptor>;
4923
5006
  global_thresholds?: Record<string, MetricThreshold[]>;
4924
5007
  tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
4925
5008
  }
4926
5009
  export interface ParticipantSeriesSubscriberStats {
5010
+ global_metrics_order?: string[];
4927
5011
  subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[];
4928
5012
  global?: Record<string, number[][]>;
5013
+ global_meta?: Record<string, MetricDescriptor>;
4929
5014
  global_thresholds?: Record<string, MetricThreshold[]>;
4930
5015
  }
4931
5016
  export interface ParticipantSeriesSubscriptionTrackMetrics {
@@ -4946,11 +5031,15 @@ export interface ParticipantSeriesTrackMetrics {
4946
5031
  label?: string;
4947
5032
  rid?: string;
4948
5033
  track_type?: string;
5034
+ metrics_order?: string[];
4949
5035
  metrics?: Record<string, number[][]>;
5036
+ metrics_meta?: Record<string, MetricDescriptor>;
4950
5037
  thresholds?: Record<string, MetricThreshold[]>;
4951
5038
  }
4952
5039
  export interface ParticipantSeriesUserStats {
5040
+ metrics_order?: string[];
4953
5041
  metrics?: Record<string, number[][]>;
5042
+ metrics_meta?: Record<string, MetricDescriptor>;
4954
5043
  thresholds?: Record<string, MetricThreshold[]>;
4955
5044
  }
4956
5045
  export interface PendingMessageEvent {
@@ -5216,6 +5305,13 @@ export interface PushPreferences {
5216
5305
  feeds_level?: string;
5217
5306
  feeds_preferences?: FeedsPreferences;
5218
5307
  }
5308
+ export interface PushPreferencesResponse {
5309
+ call_level?: string;
5310
+ chat_level?: string;
5311
+ disabled_until?: Date;
5312
+ feeds_level?: string;
5313
+ feeds_preferences?: FeedsPreferencesResponse;
5314
+ }
5219
5315
  export interface PushProvider {
5220
5316
  created_at: Date;
5221
5317
  name: string;
@@ -5756,6 +5852,7 @@ export interface QueryReviewQueueResponse {
5756
5852
  stats: Record<string, any>;
5757
5853
  next?: string;
5758
5854
  prev?: string;
5855
+ filter_config?: FilterConfigResponse;
5759
5856
  }
5760
5857
  export interface QuerySegmentTargetsRequest {
5761
5858
  limit?: number;
@@ -5959,7 +6056,7 @@ export interface ReadCollectionsResponse {
5959
6056
  collections: CollectionResponse[];
5960
6057
  }
5961
6058
  export interface ReadReceipts {
5962
- enabled: boolean;
6059
+ enabled?: boolean;
5963
6060
  }
5964
6061
  export interface ReadReceiptsResponse {
5965
6062
  enabled?: boolean;
@@ -6047,8 +6144,8 @@ export interface ReminderResponseData {
6047
6144
  user_id: string;
6048
6145
  remind_at?: Date;
6049
6146
  channel?: ChannelResponse;
6050
- message?: Message;
6051
- user?: User;
6147
+ message?: MessageResponse;
6148
+ user?: UserResponse;
6052
6149
  }
6053
6150
  export interface ReminderUpdatedEvent {
6054
6151
  cid: string;
@@ -6079,6 +6176,18 @@ export interface ReportResponse {
6079
6176
  participants: ParticipantReportResponse;
6080
6177
  user_ratings: UserRatingReportResponse;
6081
6178
  }
6179
+ export interface ResolveSipInboundRequest {
6180
+ sip_caller_number: string;
6181
+ sip_trunk_number: string;
6182
+ challenge: SIPChallenge;
6183
+ sip_headers?: Record<string, string>;
6184
+ }
6185
+ export interface ResolveSipInboundResponse {
6186
+ duration: string;
6187
+ credentials: SipInboundCredentials;
6188
+ sip_routing_rule?: SIPInboundRoutingRuleResponse;
6189
+ sip_trunk?: SIPTrunkResponse;
6190
+ }
6082
6191
  export interface Response {
6083
6192
  duration: string;
6084
6193
  }
@@ -6139,6 +6248,14 @@ export interface ReviewQueueItemUpdatedEvent {
6139
6248
  action?: ActionLogResponse;
6140
6249
  review_queue_item?: ReviewQueueItemResponse;
6141
6250
  }
6251
+ export interface RingCallRequest {
6252
+ video?: boolean;
6253
+ members_ids?: string[];
6254
+ }
6255
+ export interface RingCallResponse {
6256
+ duration: string;
6257
+ members_ids: string[];
6258
+ }
6142
6259
  export interface RingSettings {
6143
6260
  auto_cancel_timeout_ms: number;
6144
6261
  incoming_call_timeout_ms: number;
@@ -6209,6 +6326,108 @@ export interface SDKUsageReport {
6209
6326
  export interface SDKUsageReportResponse {
6210
6327
  daily: DailyAggregateSDKUsageReportResponse[];
6211
6328
  }
6329
+ export interface SIPCallConfigsRequest {
6330
+ custom_data?: Record<string, any>;
6331
+ }
6332
+ export interface SIPCallConfigsResponse {
6333
+ custom_data: Record<string, any>;
6334
+ }
6335
+ export interface SIPCallerConfigsRequest {
6336
+ id: string;
6337
+ custom_data?: Record<string, any>;
6338
+ }
6339
+ export interface SIPCallerConfigsResponse {
6340
+ id: string;
6341
+ custom_data: Record<string, any>;
6342
+ }
6343
+ export interface SIPChallenge {
6344
+ a1?: string;
6345
+ algorithm?: string;
6346
+ charset?: string;
6347
+ cnonce?: string;
6348
+ method?: string;
6349
+ nc?: string;
6350
+ nonce?: string;
6351
+ opaque?: string;
6352
+ realm?: string;
6353
+ response?: string;
6354
+ stale?: boolean;
6355
+ uri?: string;
6356
+ userhash?: boolean;
6357
+ username?: string;
6358
+ domain?: string[];
6359
+ qop?: string[];
6360
+ }
6361
+ export interface SIPDirectRoutingRuleCallConfigsRequest {
6362
+ call_id: string;
6363
+ call_type: string;
6364
+ }
6365
+ export interface SIPDirectRoutingRuleCallConfigsResponse {
6366
+ call_id: string;
6367
+ call_type: string;
6368
+ }
6369
+ export interface SIPInboundRoutingRulePinConfigsRequest {
6370
+ custom_webhook_url?: string;
6371
+ pin_failed_attempt_prompt?: string;
6372
+ pin_hangup_prompt?: string;
6373
+ pin_prompt?: string;
6374
+ pin_success_prompt?: string;
6375
+ }
6376
+ export interface SIPInboundRoutingRulePinConfigsResponse {
6377
+ custom_webhook_url?: string;
6378
+ pin_failed_attempt_prompt?: string;
6379
+ pin_hangup_prompt?: string;
6380
+ pin_prompt?: string;
6381
+ pin_success_prompt?: string;
6382
+ }
6383
+ export interface SIPInboundRoutingRuleRequest {
6384
+ name: string;
6385
+ trunk_ids: string[];
6386
+ caller_configs: SIPCallerConfigsRequest;
6387
+ called_numbers?: string[];
6388
+ caller_numbers?: string[];
6389
+ call_configs?: SIPCallConfigsRequest;
6390
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
6391
+ pin_protection_configs?: SIPPinProtectionConfigsRequest;
6392
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
6393
+ }
6394
+ export interface SIPInboundRoutingRuleResponse {
6395
+ created_at: Date;
6396
+ duration: string;
6397
+ id: string;
6398
+ name: string;
6399
+ updated_at: Date;
6400
+ called_numbers: string[];
6401
+ trunk_ids: string[];
6402
+ caller_numbers?: string[];
6403
+ call_configs?: SIPCallConfigsResponse;
6404
+ caller_configs?: SIPCallerConfigsResponse;
6405
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsResponse;
6406
+ pin_protection_configs?: SIPPinProtectionConfigsResponse;
6407
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsResponse;
6408
+ }
6409
+ export interface SIPPinProtectionConfigsRequest {
6410
+ default_pin?: string;
6411
+ enabled?: boolean;
6412
+ max_attempts?: number;
6413
+ required_pin_digits?: number;
6414
+ }
6415
+ export interface SIPPinProtectionConfigsResponse {
6416
+ enabled: boolean;
6417
+ default_pin?: string;
6418
+ max_attempts?: number;
6419
+ required_pin_digits?: number;
6420
+ }
6421
+ export interface SIPTrunkResponse {
6422
+ created_at: Date;
6423
+ id: string;
6424
+ name: string;
6425
+ password: string;
6426
+ updated_at: Date;
6427
+ uri: string;
6428
+ username: string;
6429
+ numbers: string[];
6430
+ }
6212
6431
  export interface SRTIngress {
6213
6432
  address: string;
6214
6433
  }
@@ -6398,17 +6617,10 @@ export interface ShadowBlockActionRequest {
6398
6617
  reason?: string;
6399
6618
  }
6400
6619
  export interface SharedLocation {
6401
- channel_cid: string;
6402
- created_at: Date;
6403
- created_by_device_id: string;
6404
- message_id: string;
6405
- updated_at: Date;
6406
- user_id: string;
6620
+ latitude: number;
6621
+ longitude: number;
6622
+ created_by_device_id?: string;
6407
6623
  end_at?: Date;
6408
- latitude?: number;
6409
- longitude?: number;
6410
- channel?: Channel;
6411
- message?: Message;
6412
6624
  }
6413
6625
  export interface SharedLocationResponse {
6414
6626
  channel_cid: string;
@@ -6452,6 +6664,14 @@ export interface SingleFollowResponse {
6452
6664
  duration: string;
6453
6665
  follow: FollowResponse;
6454
6666
  }
6667
+ export interface SipInboundCredentials {
6668
+ call_id: string;
6669
+ call_type: string;
6670
+ token: string;
6671
+ user_id: string;
6672
+ call_custom_data: Record<string, any>;
6673
+ user_custom_data: Record<string, any>;
6674
+ }
6455
6675
  export interface SortParam {
6456
6676
  direction?: number;
6457
6677
  field?: string;
@@ -6798,7 +7018,7 @@ export interface TruncateChannelResponse {
6798
7018
  message?: MessageResponse;
6799
7019
  }
6800
7020
  export interface TypingIndicators {
6801
- enabled: boolean;
7021
+ enabled?: boolean;
6802
7022
  }
6803
7023
  export interface TypingIndicatorsResponse {
6804
7024
  enabled?: boolean;
@@ -7065,16 +7285,19 @@ export interface UpdateChannelRequest {
7065
7285
  accept_invite?: boolean;
7066
7286
  cooldown?: number;
7067
7287
  hide_history?: boolean;
7288
+ hide_history_before?: Date;
7068
7289
  reject_invite?: boolean;
7069
7290
  skip_push?: boolean;
7070
7291
  user_id?: string;
7292
+ add_filter_tags?: string[];
7071
7293
  add_members?: ChannelMemberRequest[];
7072
7294
  add_moderators?: string[];
7073
7295
  assign_roles?: ChannelMemberRequest[];
7074
7296
  demote_moderators?: string[];
7075
7297
  invites?: ChannelMemberRequest[];
7298
+ remove_filter_tags?: string[];
7076
7299
  remove_members?: string[];
7077
- data?: ChannelInput;
7300
+ data?: ChannelInputRequest;
7078
7301
  message?: MessageRequest;
7079
7302
  user?: UserRequest;
7080
7303
  }
@@ -7356,6 +7579,29 @@ export interface UpdateReminderResponse {
7356
7579
  duration: string;
7357
7580
  reminder: ReminderResponseData;
7358
7581
  }
7582
+ export interface UpdateSIPInboundRoutingRuleRequest {
7583
+ name: string;
7584
+ called_numbers: string[];
7585
+ trunk_ids: string[];
7586
+ caller_configs: SIPCallerConfigsRequest;
7587
+ caller_numbers?: string[];
7588
+ call_configs?: SIPCallConfigsRequest;
7589
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
7590
+ pin_protection_configs?: SIPPinProtectionConfigsRequest;
7591
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
7592
+ }
7593
+ export interface UpdateSIPInboundRoutingRuleResponse {
7594
+ duration: string;
7595
+ sip_inbound_routing_rule?: SIPInboundRoutingRuleResponse;
7596
+ }
7597
+ export interface UpdateSIPTrunkRequest {
7598
+ name: string;
7599
+ numbers: string[];
7600
+ }
7601
+ export interface UpdateSIPTrunkResponse {
7602
+ duration: string;
7603
+ sip_trunk?: SIPTrunkResponse;
7604
+ }
7359
7605
  export interface UpdateThreadPartialRequest {
7360
7606
  user_id?: string;
7361
7607
  unset?: string[];
@@ -7513,25 +7759,17 @@ export interface UpsertPushTemplateResponse {
7513
7759
  template?: PushTemplate;
7514
7760
  }
7515
7761
  export interface User {
7516
- banned: boolean;
7517
7762
  id: string;
7518
- online: boolean;
7519
- role: string;
7520
- custom: Record<string, any>;
7521
- teams_role: Record<string, string>;
7522
- avg_response_time?: number;
7523
7763
  ban_expires?: Date;
7524
- created_at?: Date;
7525
- deactivated_at?: Date;
7526
- deleted_at?: Date;
7764
+ banned?: boolean;
7527
7765
  invisible?: boolean;
7528
7766
  language?: string;
7529
- last_active?: Date;
7530
- last_engaged_at?: Date;
7531
7767
  revoke_tokens_issued_before?: Date;
7532
- updated_at?: Date;
7768
+ role?: string;
7533
7769
  teams?: string[];
7770
+ custom?: Record<string, any>;
7534
7771
  privacy_settings?: PrivacySettings;
7772
+ teams_role?: Record<string, string>;
7535
7773
  }
7536
7774
  export interface UserBannedEvent {
7537
7775
  channel_id: string;