@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.
@@ -1526,6 +1526,8 @@ export interface BookmarkFolderResponse {
1526
1526
 
1527
1527
  updated_at: Date;
1528
1528
 
1529
+ user: UserResponseCommonFields;
1530
+
1529
1531
  custom?: Record<string, any>;
1530
1532
  }
1531
1533
 
@@ -1550,7 +1552,7 @@ export interface BookmarkResponse {
1550
1552
 
1551
1553
  activity: ActivityResponse;
1552
1554
 
1553
- user: UserResponse;
1555
+ user: UserResponseCommonFields;
1554
1556
 
1555
1557
  custom?: Record<string, any>;
1556
1558
 
@@ -2360,6 +2362,8 @@ export interface CallStatsLocation {
2360
2362
 
2361
2363
  country?: string;
2362
2364
 
2365
+ country_iso_code?: string;
2366
+
2363
2367
  latitude?: number;
2364
2368
 
2365
2369
  longitude?: number;
@@ -2384,6 +2388,10 @@ export interface CallStatsParticipantCounts {
2384
2388
 
2385
2389
  participants: number;
2386
2390
 
2391
+ peak_concurrent_sessions: number;
2392
+
2393
+ peak_concurrent_users: number;
2394
+
2387
2395
  publishers: number;
2388
2396
 
2389
2397
  sessions: number;
@@ -2410,6 +2418,8 @@ export interface CallStatsParticipantSession {
2410
2418
 
2411
2419
  ended_at?: Date;
2412
2420
 
2421
+ os?: string;
2422
+
2413
2423
  publisher_type?: string;
2414
2424
 
2415
2425
  sdk?: string;
@@ -2599,6 +2609,14 @@ export interface CallsPerDayReportResponse {
2599
2609
  daily: DailyAggregateCallsPerDayReportResponse[];
2600
2610
  }
2601
2611
 
2612
+ export interface CampaignChannelMember {
2613
+ user_id: string;
2614
+
2615
+ channel_role?: string;
2616
+
2617
+ custom?: Record<string, any>;
2618
+ }
2619
+
2602
2620
  export interface CampaignChannelTemplate {
2603
2621
  type: string;
2604
2622
 
@@ -2609,6 +2627,8 @@ export interface CampaignChannelTemplate {
2609
2627
  team?: string;
2610
2628
 
2611
2629
  members?: string[];
2630
+
2631
+ members_template?: CampaignChannelMember[];
2612
2632
  }
2613
2633
 
2614
2634
  export interface CampaignCompletedEvent {
@@ -2626,6 +2646,8 @@ export interface CampaignCompletedEvent {
2626
2646
  export interface CampaignMessageTemplate {
2627
2647
  poll_id: string;
2628
2648
 
2649
+ searchable: boolean;
2650
+
2629
2651
  text: string;
2630
2652
 
2631
2653
  attachments: Attachment[];
@@ -2756,6 +2778,8 @@ export interface Channel {
2756
2778
 
2757
2779
  active_live_locations?: SharedLocation[];
2758
2780
 
2781
+ filter_tags?: string[];
2782
+
2759
2783
  invites?: ChannelMember[];
2760
2784
 
2761
2785
  members?: ChannelMember[];
@@ -2832,7 +2856,7 @@ export interface ChannelConfig {
2832
2856
 
2833
2857
  partition_size?: number;
2834
2858
 
2835
- partition_ttl?: number;
2859
+ partition_ttl?: string;
2836
2860
 
2837
2861
  allowed_flag_reasons?: string[];
2838
2862
 
@@ -3012,6 +3036,8 @@ export interface ChannelInput {
3012
3036
 
3013
3037
  truncated_by_id?: string;
3014
3038
 
3039
+ filter_tags?: string[];
3040
+
3015
3041
  invites?: ChannelMemberRequest[];
3016
3042
 
3017
3043
  members?: ChannelMemberRequest[];
@@ -3023,29 +3049,41 @@ export interface ChannelInput {
3023
3049
  custom?: Record<string, any>;
3024
3050
  }
3025
3051
 
3026
- export interface ChannelMember {
3027
- banned: boolean;
3052
+ export interface ChannelInputRequest {
3053
+ auto_translation_enabled?: boolean;
3028
3054
 
3029
- channel_role: string;
3055
+ auto_translation_language?: string;
3030
3056
 
3031
- created_at: Date;
3057
+ disabled?: boolean;
3032
3058
 
3033
- is_global_banned: boolean;
3059
+ frozen?: boolean;
3034
3060
 
3035
- notifications_muted: boolean;
3061
+ team?: string;
3036
3062
 
3037
- shadow_banned: boolean;
3063
+ invites?: ChannelMember[];
3038
3064
 
3039
- updated_at: Date;
3065
+ members?: ChannelMember[];
3040
3066
 
3041
- custom: Record<string, any>;
3067
+ config_overrides?: ConfigOverrides;
3068
+
3069
+ created_by?: User;
3042
3070
 
3071
+ custom?: Record<string, any>;
3072
+ }
3073
+
3074
+ export interface ChannelMember {
3043
3075
  archived_at?: Date;
3044
3076
 
3045
3077
  ban_expires?: Date;
3046
3078
 
3079
+ banned?: boolean;
3080
+
3047
3081
  blocked?: boolean;
3048
3082
 
3083
+ channel_role?: string;
3084
+
3085
+ created_at?: Date;
3086
+
3049
3087
  deleted_at?: Date;
3050
3088
 
3051
3089
  hidden?: boolean;
@@ -3056,18 +3094,28 @@ export interface ChannelMember {
3056
3094
 
3057
3095
  invited?: boolean;
3058
3096
 
3097
+ is_global_banned?: boolean;
3098
+
3059
3099
  is_moderator?: boolean;
3060
3100
 
3101
+ notifications_muted?: boolean;
3102
+
3061
3103
  pinned_at?: Date;
3062
3104
 
3105
+ shadow_banned?: boolean;
3106
+
3063
3107
  status?: string;
3064
3108
 
3109
+ updated_at?: Date;
3110
+
3065
3111
  user_id?: string;
3066
3112
 
3067
3113
  deleted_messages?: string[];
3068
3114
 
3069
3115
  channel?: DenormalizedChannelFields;
3070
3116
 
3117
+ custom?: Record<string, any>;
3118
+
3071
3119
  user?: User;
3072
3120
  }
3073
3121
 
@@ -3215,6 +3263,12 @@ export interface ChannelPushPreferences {
3215
3263
  disabled_until?: Date;
3216
3264
  }
3217
3265
 
3266
+ export interface ChannelPushPreferencesResponse {
3267
+ chat_level?: string;
3268
+
3269
+ disabled_until?: Date;
3270
+ }
3271
+
3218
3272
  export interface ChannelResponse {
3219
3273
  cid: string;
3220
3274
 
@@ -3260,6 +3314,8 @@ export interface ChannelResponse {
3260
3314
 
3261
3315
  truncated_at?: Date;
3262
3316
 
3317
+ filter_tags?: string[];
3318
+
3263
3319
  members?: ChannelMemberResponse[];
3264
3320
 
3265
3321
  own_capabilities?: ChannelOwnCapability[];
@@ -3302,7 +3358,7 @@ export interface ChannelStateResponse {
3302
3358
 
3303
3359
  membership?: ChannelMemberResponse;
3304
3360
 
3305
- push_preferences?: ChannelPushPreferences;
3361
+ push_preferences?: ChannelPushPreferencesResponse;
3306
3362
  }
3307
3363
 
3308
3364
  export interface ChannelStateResponseFields {
@@ -3334,7 +3390,7 @@ export interface ChannelStateResponseFields {
3334
3390
 
3335
3391
  membership?: ChannelMemberResponse;
3336
3392
 
3337
- push_preferences?: ChannelPushPreferences;
3393
+ push_preferences?: ChannelPushPreferencesResponse;
3338
3394
  }
3339
3395
 
3340
3396
  export interface ChannelTruncatedEvent {
@@ -3655,17 +3711,17 @@ export interface CollectionRequest {
3655
3711
  }
3656
3712
 
3657
3713
  export interface CollectionResponse {
3658
- created_at: Date;
3659
-
3660
3714
  id: string;
3661
3715
 
3662
3716
  name: string;
3663
3717
 
3664
- updated_at: Date;
3718
+ created_at?: Date;
3665
3719
 
3666
- custom: Record<string, any>;
3720
+ updated_at?: Date;
3667
3721
 
3668
3722
  user_id?: string;
3723
+
3724
+ custom?: Record<string, any>;
3669
3725
  }
3670
3726
 
3671
3727
  export interface Command {
@@ -3853,10 +3909,6 @@ export interface CommentUpdatedEvent {
3853
3909
  export interface CommitMessageRequest {}
3854
3910
 
3855
3911
  export interface ConfigOverrides {
3856
- commands: string[];
3857
-
3858
- grants: Record<string, string[]>;
3859
-
3860
3912
  blocklist?: string;
3861
3913
 
3862
3914
  blocklist_behavior?: 'flag' | 'block';
@@ -3880,6 +3932,10 @@ export interface ConfigOverrides {
3880
3932
  url_enrichment?: boolean;
3881
3933
 
3882
3934
  user_message_reminders?: boolean;
3935
+
3936
+ commands?: string[];
3937
+
3938
+ grants?: Record<string, string[]>;
3883
3939
  }
3884
3940
 
3885
3941
  export interface ConfigResponse {
@@ -3939,7 +3995,13 @@ export interface CreateBlockListRequest {
3939
3995
 
3940
3996
  team?: string;
3941
3997
 
3942
- type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
3998
+ type?:
3999
+ | 'regex'
4000
+ | 'domain'
4001
+ | 'domain_allowlist'
4002
+ | 'email'
4003
+ | 'email_allowlist'
4004
+ | 'word';
3943
4005
  }
3944
4006
 
3945
4007
  export interface CreateBlockListResponse {
@@ -4353,6 +4415,18 @@ export interface CreateRoleResponse {
4353
4415
  role: Role;
4354
4416
  }
4355
4417
 
4418
+ export interface CreateSIPTrunkRequest {
4419
+ name: string;
4420
+
4421
+ numbers: string[];
4422
+ }
4423
+
4424
+ export interface CreateSIPTrunkResponse {
4425
+ duration: string;
4426
+
4427
+ sip_trunk?: SIPTrunkResponse;
4428
+ }
4429
+
4356
4430
  export interface CustomActionRequest {
4357
4431
  id?: string;
4358
4432
 
@@ -4699,6 +4773,14 @@ export interface DeleteReminderResponse {
4699
4773
  duration: string;
4700
4774
  }
4701
4775
 
4776
+ export interface DeleteSIPInboundRoutingRuleResponse {
4777
+ duration: string;
4778
+ }
4779
+
4780
+ export interface DeleteSIPTrunkResponse {
4781
+ duration: string;
4782
+ }
4783
+
4702
4784
  export interface DeleteSegmentTargetsRequest {
4703
4785
  target_ids: string[];
4704
4786
  }
@@ -4743,8 +4825,14 @@ export interface DeleteUsersResponse {
4743
4825
  task_id: string;
4744
4826
  }
4745
4827
 
4828
+ export interface DeliveredMessagePayload {
4829
+ cid?: string;
4830
+
4831
+ id?: string;
4832
+ }
4833
+
4746
4834
  export interface DeliveryReceipts {
4747
- enabled: boolean;
4835
+ enabled?: boolean;
4748
4836
  }
4749
4837
 
4750
4838
  export interface DeliveryReceiptsResponse {
@@ -4950,19 +5038,19 @@ export interface EnrichedActivity {
4950
5038
  }
4951
5039
 
4952
5040
  export interface EnrichedCollectionResponse {
4953
- created_at: Date;
4954
-
4955
5041
  id: string;
4956
5042
 
4957
5043
  name: string;
4958
5044
 
4959
5045
  status: 'ok' | 'notfound';
4960
5046
 
4961
- updated_at: Date;
5047
+ created_at?: Date;
4962
5048
 
4963
- custom: Record<string, any>;
5049
+ updated_at?: Date;
4964
5050
 
4965
5051
  user_id?: string;
5052
+
5053
+ custom?: Record<string, any>;
4966
5054
  }
4967
5055
 
4968
5056
  export interface EnrichedReaction {
@@ -5623,6 +5711,20 @@ export interface FeedsPreferences {
5623
5711
  custom_activity_types?: Record<string, string>;
5624
5712
  }
5625
5713
 
5714
+ export interface FeedsPreferencesResponse {
5715
+ comment?: string;
5716
+
5717
+ comment_reaction?: string;
5718
+
5719
+ follow?: string;
5720
+
5721
+ mention?: string;
5722
+
5723
+ reaction?: string;
5724
+
5725
+ custom_activity_types?: Record<string, string>;
5726
+ }
5727
+
5626
5728
  export interface FeedsReactionResponse {
5627
5729
  activity_id: string;
5628
5730
 
@@ -5673,6 +5775,12 @@ export interface FileUploadResponse {
5673
5775
  thumb_url?: string;
5674
5776
  }
5675
5777
 
5778
+ export interface FilterConfigResponse {
5779
+ llm_labels: string[];
5780
+
5781
+ ai_text_labels?: string[];
5782
+ }
5783
+
5676
5784
  export interface FirebaseConfig {
5677
5785
  apn_template?: string;
5678
5786
 
@@ -6531,7 +6639,7 @@ export interface GetRateLimitsResponse {
6531
6639
  export interface GetReactionsResponse {
6532
6640
  duration: string;
6533
6641
 
6534
- reactions: Reaction[];
6642
+ reactions: ReactionResponse[];
6535
6643
  }
6536
6644
 
6537
6645
  export interface GetRepliesResponse {
@@ -7129,6 +7237,18 @@ export interface ListRolesResponse {
7129
7237
  roles: Role[];
7130
7238
  }
7131
7239
 
7240
+ export interface ListSIPInboundRoutingRuleResponse {
7241
+ duration: string;
7242
+
7243
+ sip_inbound_routing_rules: SIPInboundRoutingRuleResponse[];
7244
+ }
7245
+
7246
+ export interface ListSIPTrunksResponse {
7247
+ duration: string;
7248
+
7249
+ sip_trunks: SIPTrunkResponse[];
7250
+ }
7251
+
7132
7252
  export interface ListTranscriptionsResponse {
7133
7253
  duration: string;
7134
7254
 
@@ -7159,6 +7279,14 @@ export interface MarkChannelsReadRequest {
7159
7279
  user?: UserRequest;
7160
7280
  }
7161
7281
 
7282
+ export interface MarkDeliveredRequest {
7283
+ latest_delivered_messages?: DeliveredMessagePayload[];
7284
+ }
7285
+
7286
+ export interface MarkDeliveredResponse {
7287
+ duration: string;
7288
+ }
7289
+
7162
7290
  export interface MarkReadRequest {
7163
7291
  message_id?: string;
7164
7292
 
@@ -7184,6 +7312,8 @@ export interface MarkReviewedRequest {
7184
7312
  export interface MarkUnreadRequest {
7185
7313
  message_id?: string;
7186
7314
 
7315
+ message_timestamp?: Date;
7316
+
7187
7317
  thread_id?: string;
7188
7318
 
7189
7319
  user_id?: string;
@@ -7903,6 +8033,14 @@ export interface MessageWithChannelResponse {
7903
8033
  shared_location?: SharedLocationResponseData;
7904
8034
  }
7905
8035
 
8036
+ export interface MetricDescriptor {
8037
+ label: string;
8038
+
8039
+ description?: string;
8040
+
8041
+ unit?: string;
8042
+ }
8043
+
7906
8044
  export interface MetricThreshold {
7907
8045
  level: string;
7908
8046
 
@@ -8520,7 +8658,7 @@ export interface OwnUserResponse {
8520
8658
 
8521
8659
  privacy_settings?: PrivacySettingsResponse;
8522
8660
 
8523
- push_preferences?: PushPreferences;
8661
+ push_preferences?: PushPreferencesResponse;
8524
8662
 
8525
8663
  teams_role?: Record<string, string>;
8526
8664
 
@@ -8586,18 +8724,26 @@ export interface ParticipantReportResponse {
8586
8724
  }
8587
8725
 
8588
8726
  export interface ParticipantSeriesPublisherStats {
8727
+ global_metrics_order?: string[];
8728
+
8589
8729
  global?: Record<string, number[][]>;
8590
8730
 
8731
+ global_meta?: Record<string, MetricDescriptor>;
8732
+
8591
8733
  global_thresholds?: Record<string, MetricThreshold[]>;
8592
8734
 
8593
8735
  tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
8594
8736
  }
8595
8737
 
8596
8738
  export interface ParticipantSeriesSubscriberStats {
8739
+ global_metrics_order?: string[];
8740
+
8597
8741
  subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[];
8598
8742
 
8599
8743
  global?: Record<string, number[][]>;
8600
8744
 
8745
+ global_meta?: Record<string, MetricDescriptor>;
8746
+
8601
8747
  global_thresholds?: Record<string, MetricThreshold[]>;
8602
8748
  }
8603
8749
 
@@ -8632,14 +8778,22 @@ export interface ParticipantSeriesTrackMetrics {
8632
8778
 
8633
8779
  track_type?: string;
8634
8780
 
8781
+ metrics_order?: string[];
8782
+
8635
8783
  metrics?: Record<string, number[][]>;
8636
8784
 
8785
+ metrics_meta?: Record<string, MetricDescriptor>;
8786
+
8637
8787
  thresholds?: Record<string, MetricThreshold[]>;
8638
8788
  }
8639
8789
 
8640
8790
  export interface ParticipantSeriesUserStats {
8791
+ metrics_order?: string[];
8792
+
8641
8793
  metrics?: Record<string, number[][]>;
8642
8794
 
8795
+ metrics_meta?: Record<string, MetricDescriptor>;
8796
+
8643
8797
  thresholds?: Record<string, MetricThreshold[]>;
8644
8798
  }
8645
8799
 
@@ -9093,6 +9247,18 @@ export interface PushPreferences {
9093
9247
  feeds_preferences?: FeedsPreferences;
9094
9248
  }
9095
9249
 
9250
+ export interface PushPreferencesResponse {
9251
+ call_level?: string;
9252
+
9253
+ chat_level?: string;
9254
+
9255
+ disabled_until?: Date;
9256
+
9257
+ feeds_level?: string;
9258
+
9259
+ feeds_preferences?: FeedsPreferencesResponse;
9260
+ }
9261
+
9096
9262
  export interface PushProvider {
9097
9263
  created_at: Date;
9098
9264
 
@@ -10041,6 +10207,8 @@ export interface QueryReviewQueueResponse {
10041
10207
  next?: string;
10042
10208
 
10043
10209
  prev?: string;
10210
+
10211
+ filter_config?: FilterConfigResponse;
10044
10212
  }
10045
10213
 
10046
10214
  export interface QuerySegmentTargetsRequest {
@@ -10408,7 +10576,7 @@ export interface ReadCollectionsResponse {
10408
10576
  }
10409
10577
 
10410
10578
  export interface ReadReceipts {
10411
- enabled: boolean;
10579
+ enabled?: boolean;
10412
10580
  }
10413
10581
 
10414
10582
  export interface ReadReceiptsResponse {
@@ -10568,9 +10736,9 @@ export interface ReminderResponseData {
10568
10736
 
10569
10737
  channel?: ChannelResponse;
10570
10738
 
10571
- message?: Message;
10739
+ message?: MessageResponse;
10572
10740
 
10573
- user?: User;
10741
+ user?: UserResponse;
10574
10742
  }
10575
10743
 
10576
10744
  export interface ReminderUpdatedEvent {
@@ -10623,6 +10791,26 @@ export interface ReportResponse {
10623
10791
  user_ratings: UserRatingReportResponse;
10624
10792
  }
10625
10793
 
10794
+ export interface ResolveSipInboundRequest {
10795
+ sip_caller_number: string;
10796
+
10797
+ sip_trunk_number: string;
10798
+
10799
+ challenge: SIPChallenge;
10800
+
10801
+ sip_headers?: Record<string, string>;
10802
+ }
10803
+
10804
+ export interface ResolveSipInboundResponse {
10805
+ duration: string;
10806
+
10807
+ credentials: SipInboundCredentials;
10808
+
10809
+ sip_routing_rule?: SIPInboundRoutingRuleResponse;
10810
+
10811
+ sip_trunk?: SIPTrunkResponse;
10812
+ }
10813
+
10626
10814
  export interface Response {
10627
10815
  duration: string;
10628
10816
  }
@@ -10731,6 +10919,18 @@ export interface ReviewQueueItemUpdatedEvent {
10731
10919
  review_queue_item?: ReviewQueueItemResponse;
10732
10920
  }
10733
10921
 
10922
+ export interface RingCallRequest {
10923
+ video?: boolean;
10924
+
10925
+ members_ids?: string[];
10926
+ }
10927
+
10928
+ export interface RingCallResponse {
10929
+ duration: string;
10930
+
10931
+ members_ids: string[];
10932
+ }
10933
+
10734
10934
  export interface RingSettings {
10735
10935
  auto_cancel_timeout_ms: number;
10736
10936
 
@@ -10855,6 +11055,182 @@ export interface SDKUsageReportResponse {
10855
11055
  daily: DailyAggregateSDKUsageReportResponse[];
10856
11056
  }
10857
11057
 
11058
+ export interface SIPCallConfigsRequest {
11059
+ custom_data?: Record<string, any>;
11060
+ }
11061
+
11062
+ export interface SIPCallConfigsResponse {
11063
+ custom_data: Record<string, any>;
11064
+ }
11065
+
11066
+ export interface SIPCallerConfigsRequest {
11067
+ id: string;
11068
+
11069
+ custom_data?: Record<string, any>;
11070
+ }
11071
+
11072
+ export interface SIPCallerConfigsResponse {
11073
+ id: string;
11074
+
11075
+ custom_data: Record<string, any>;
11076
+ }
11077
+
11078
+ export interface SIPChallenge {
11079
+ a1?: string;
11080
+
11081
+ algorithm?: string;
11082
+
11083
+ charset?: string;
11084
+
11085
+ cnonce?: string;
11086
+
11087
+ method?: string;
11088
+
11089
+ nc?: string;
11090
+
11091
+ nonce?: string;
11092
+
11093
+ opaque?: string;
11094
+
11095
+ realm?: string;
11096
+
11097
+ response?: string;
11098
+
11099
+ stale?: boolean;
11100
+
11101
+ uri?: string;
11102
+
11103
+ userhash?: boolean;
11104
+
11105
+ username?: string;
11106
+
11107
+ domain?: string[];
11108
+
11109
+ qop?: string[];
11110
+ }
11111
+
11112
+ export interface SIPDirectRoutingRuleCallConfigsRequest {
11113
+ call_id: string;
11114
+
11115
+ call_type: string;
11116
+ }
11117
+
11118
+ export interface SIPDirectRoutingRuleCallConfigsResponse {
11119
+ call_id: string;
11120
+
11121
+ call_type: string;
11122
+ }
11123
+
11124
+ export interface SIPInboundRoutingRulePinConfigsRequest {
11125
+ custom_webhook_url?: string;
11126
+
11127
+ pin_failed_attempt_prompt?: string;
11128
+
11129
+ pin_hangup_prompt?: string;
11130
+
11131
+ pin_prompt?: string;
11132
+
11133
+ pin_success_prompt?: string;
11134
+ }
11135
+
11136
+ export interface SIPInboundRoutingRulePinConfigsResponse {
11137
+ custom_webhook_url?: string;
11138
+
11139
+ pin_failed_attempt_prompt?: string;
11140
+
11141
+ pin_hangup_prompt?: string;
11142
+
11143
+ pin_prompt?: string;
11144
+
11145
+ pin_success_prompt?: string;
11146
+ }
11147
+
11148
+ export interface SIPInboundRoutingRuleRequest {
11149
+ name: string;
11150
+
11151
+ trunk_ids: string[];
11152
+
11153
+ caller_configs: SIPCallerConfigsRequest;
11154
+
11155
+ called_numbers?: string[];
11156
+
11157
+ caller_numbers?: string[];
11158
+
11159
+ call_configs?: SIPCallConfigsRequest;
11160
+
11161
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
11162
+
11163
+ pin_protection_configs?: SIPPinProtectionConfigsRequest;
11164
+
11165
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
11166
+ }
11167
+
11168
+ export interface SIPInboundRoutingRuleResponse {
11169
+ created_at: Date;
11170
+
11171
+ duration: string;
11172
+
11173
+ id: string;
11174
+
11175
+ name: string;
11176
+
11177
+ updated_at: Date;
11178
+
11179
+ called_numbers: string[];
11180
+
11181
+ trunk_ids: string[];
11182
+
11183
+ caller_numbers?: string[];
11184
+
11185
+ call_configs?: SIPCallConfigsResponse;
11186
+
11187
+ caller_configs?: SIPCallerConfigsResponse;
11188
+
11189
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsResponse;
11190
+
11191
+ pin_protection_configs?: SIPPinProtectionConfigsResponse;
11192
+
11193
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsResponse;
11194
+ }
11195
+
11196
+ export interface SIPPinProtectionConfigsRequest {
11197
+ default_pin?: string;
11198
+
11199
+ enabled?: boolean;
11200
+
11201
+ max_attempts?: number;
11202
+
11203
+ required_pin_digits?: number;
11204
+ }
11205
+
11206
+ export interface SIPPinProtectionConfigsResponse {
11207
+ enabled: boolean;
11208
+
11209
+ default_pin?: string;
11210
+
11211
+ max_attempts?: number;
11212
+
11213
+ required_pin_digits?: number;
11214
+ }
11215
+
11216
+ export interface SIPTrunkResponse {
11217
+ created_at: Date;
11218
+
11219
+ id: string;
11220
+
11221
+ name: string;
11222
+
11223
+ password: string;
11224
+
11225
+ updated_at: Date;
11226
+
11227
+ uri: string;
11228
+
11229
+ username: string;
11230
+
11231
+ numbers: string[];
11232
+ }
11233
+
10858
11234
  export interface SRTIngress {
10859
11235
  address: string;
10860
11236
  }
@@ -11180,27 +11556,13 @@ export interface ShadowBlockActionRequest {
11180
11556
  }
11181
11557
 
11182
11558
  export interface SharedLocation {
11183
- channel_cid: string;
11184
-
11185
- created_at: Date;
11186
-
11187
- created_by_device_id: string;
11188
-
11189
- message_id: string;
11559
+ latitude: number;
11190
11560
 
11191
- updated_at: Date;
11561
+ longitude: number;
11192
11562
 
11193
- user_id: string;
11563
+ created_by_device_id?: string;
11194
11564
 
11195
11565
  end_at?: Date;
11196
-
11197
- latitude?: number;
11198
-
11199
- longitude?: number;
11200
-
11201
- channel?: Channel;
11202
-
11203
- message?: Message;
11204
11566
  }
11205
11567
 
11206
11568
  export interface SharedLocationResponse {
@@ -11275,6 +11637,20 @@ export interface SingleFollowResponse {
11275
11637
  follow: FollowResponse;
11276
11638
  }
11277
11639
 
11640
+ export interface SipInboundCredentials {
11641
+ call_id: string;
11642
+
11643
+ call_type: string;
11644
+
11645
+ token: string;
11646
+
11647
+ user_id: string;
11648
+
11649
+ call_custom_data: Record<string, any>;
11650
+
11651
+ user_custom_data: Record<string, any>;
11652
+ }
11653
+
11278
11654
  export interface SortParam {
11279
11655
  direction?: number;
11280
11656
 
@@ -12094,7 +12470,7 @@ export interface TruncateChannelResponse {
12094
12470
  }
12095
12471
 
12096
12472
  export interface TypingIndicators {
12097
- enabled: boolean;
12473
+ enabled?: boolean;
12098
12474
  }
12099
12475
 
12100
12476
  export interface TypingIndicatorsResponse {
@@ -12538,12 +12914,16 @@ export interface UpdateChannelRequest {
12538
12914
 
12539
12915
  hide_history?: boolean;
12540
12916
 
12917
+ hide_history_before?: Date;
12918
+
12541
12919
  reject_invite?: boolean;
12542
12920
 
12543
12921
  skip_push?: boolean;
12544
12922
 
12545
12923
  user_id?: string;
12546
12924
 
12925
+ add_filter_tags?: string[];
12926
+
12547
12927
  add_members?: ChannelMemberRequest[];
12548
12928
 
12549
12929
  add_moderators?: string[];
@@ -12554,9 +12934,11 @@ export interface UpdateChannelRequest {
12554
12934
 
12555
12935
  invites?: ChannelMemberRequest[];
12556
12936
 
12937
+ remove_filter_tags?: string[];
12938
+
12557
12939
  remove_members?: string[];
12558
12940
 
12559
- data?: ChannelInput;
12941
+ data?: ChannelInputRequest;
12560
12942
 
12561
12943
  message?: MessageRequest;
12562
12944
 
@@ -13048,6 +13430,44 @@ export interface UpdateReminderResponse {
13048
13430
  reminder: ReminderResponseData;
13049
13431
  }
13050
13432
 
13433
+ export interface UpdateSIPInboundRoutingRuleRequest {
13434
+ name: string;
13435
+
13436
+ called_numbers: string[];
13437
+
13438
+ trunk_ids: string[];
13439
+
13440
+ caller_configs: SIPCallerConfigsRequest;
13441
+
13442
+ caller_numbers?: string[];
13443
+
13444
+ call_configs?: SIPCallConfigsRequest;
13445
+
13446
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
13447
+
13448
+ pin_protection_configs?: SIPPinProtectionConfigsRequest;
13449
+
13450
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
13451
+ }
13452
+
13453
+ export interface UpdateSIPInboundRoutingRuleResponse {
13454
+ duration: string;
13455
+
13456
+ sip_inbound_routing_rule?: SIPInboundRoutingRuleResponse;
13457
+ }
13458
+
13459
+ export interface UpdateSIPTrunkRequest {
13460
+ name: string;
13461
+
13462
+ numbers: string[];
13463
+ }
13464
+
13465
+ export interface UpdateSIPTrunkResponse {
13466
+ duration: string;
13467
+
13468
+ sip_trunk?: SIPTrunkResponse;
13469
+ }
13470
+
13051
13471
  export interface UpdateThreadPartialRequest {
13052
13472
  user_id?: string;
13053
13473
 
@@ -13316,43 +13736,27 @@ export interface UpsertPushTemplateResponse {
13316
13736
  }
13317
13737
 
13318
13738
  export interface User {
13319
- banned: boolean;
13320
-
13321
13739
  id: string;
13322
13740
 
13323
- online: boolean;
13324
-
13325
- role: string;
13326
-
13327
- custom: Record<string, any>;
13328
-
13329
- teams_role: Record<string, string>;
13330
-
13331
- avg_response_time?: number;
13332
-
13333
13741
  ban_expires?: Date;
13334
13742
 
13335
- created_at?: Date;
13336
-
13337
- deactivated_at?: Date;
13338
-
13339
- deleted_at?: Date;
13743
+ banned?: boolean;
13340
13744
 
13341
13745
  invisible?: boolean;
13342
13746
 
13343
13747
  language?: string;
13344
13748
 
13345
- last_active?: Date;
13346
-
13347
- last_engaged_at?: Date;
13348
-
13349
13749
  revoke_tokens_issued_before?: Date;
13350
13750
 
13351
- updated_at?: Date;
13751
+ role?: string;
13352
13752
 
13353
13753
  teams?: string[];
13354
13754
 
13755
+ custom?: Record<string, any>;
13756
+
13355
13757
  privacy_settings?: PrivacySettings;
13758
+
13759
+ teams_role?: Record<string, string>;
13356
13760
  }
13357
13761
 
13358
13762
  export interface UserBannedEvent {