@stream-io/node-sdk 0.7.19 → 0.7.21

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.
@@ -501,6 +501,8 @@ export interface ActivityRequest {
501
501
 
502
502
  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
503
503
 
504
+ skip_enrich_url?: boolean;
505
+
504
506
  text?: string;
505
507
 
506
508
  user_id?: string;
@@ -695,6 +697,8 @@ export interface AddActivityRequest {
695
697
 
696
698
  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
697
699
 
700
+ skip_enrich_url?: boolean;
701
+
698
702
  text?: string;
699
703
 
700
704
  user_id?: string;
@@ -781,6 +785,8 @@ export interface AddCommentRequest {
781
785
 
782
786
  parent_id?: string;
783
787
 
788
+ skip_enrich_url?: boolean;
789
+
784
790
  skip_push?: boolean;
785
791
 
786
792
  user_id?: string;
@@ -1526,6 +1532,8 @@ export interface BookmarkFolderResponse {
1526
1532
 
1527
1533
  updated_at: Date;
1528
1534
 
1535
+ user: UserResponseCommonFields;
1536
+
1529
1537
  custom?: Record<string, any>;
1530
1538
  }
1531
1539
 
@@ -1550,7 +1558,7 @@ export interface BookmarkResponse {
1550
1558
 
1551
1559
  activity: ActivityResponse;
1552
1560
 
1553
- user: UserResponse;
1561
+ user: UserResponseCommonFields;
1554
1562
 
1555
1563
  custom?: Record<string, any>;
1556
1564
 
@@ -2360,6 +2368,8 @@ export interface CallStatsLocation {
2360
2368
 
2361
2369
  country?: string;
2362
2370
 
2371
+ country_iso_code?: string;
2372
+
2363
2373
  latitude?: number;
2364
2374
 
2365
2375
  longitude?: number;
@@ -2384,6 +2394,10 @@ export interface CallStatsParticipantCounts {
2384
2394
 
2385
2395
  participants: number;
2386
2396
 
2397
+ peak_concurrent_sessions: number;
2398
+
2399
+ peak_concurrent_users: number;
2400
+
2387
2401
  publishers: number;
2388
2402
 
2389
2403
  sessions: number;
@@ -2410,6 +2424,8 @@ export interface CallStatsParticipantSession {
2410
2424
 
2411
2425
  ended_at?: Date;
2412
2426
 
2427
+ os?: string;
2428
+
2413
2429
  publisher_type?: string;
2414
2430
 
2415
2431
  sdk?: string;
@@ -2599,6 +2615,14 @@ export interface CallsPerDayReportResponse {
2599
2615
  daily: DailyAggregateCallsPerDayReportResponse[];
2600
2616
  }
2601
2617
 
2618
+ export interface CampaignChannelMember {
2619
+ user_id: string;
2620
+
2621
+ channel_role?: string;
2622
+
2623
+ custom?: Record<string, any>;
2624
+ }
2625
+
2602
2626
  export interface CampaignChannelTemplate {
2603
2627
  type: string;
2604
2628
 
@@ -2609,6 +2633,8 @@ export interface CampaignChannelTemplate {
2609
2633
  team?: string;
2610
2634
 
2611
2635
  members?: string[];
2636
+
2637
+ members_template?: CampaignChannelMember[];
2612
2638
  }
2613
2639
 
2614
2640
  export interface CampaignCompletedEvent {
@@ -2626,6 +2652,8 @@ export interface CampaignCompletedEvent {
2626
2652
  export interface CampaignMessageTemplate {
2627
2653
  poll_id: string;
2628
2654
 
2655
+ searchable: boolean;
2656
+
2629
2657
  text: string;
2630
2658
 
2631
2659
  attachments: Attachment[];
@@ -2756,6 +2784,8 @@ export interface Channel {
2756
2784
 
2757
2785
  active_live_locations?: SharedLocation[];
2758
2786
 
2787
+ filter_tags?: string[];
2788
+
2759
2789
  invites?: ChannelMember[];
2760
2790
 
2761
2791
  members?: ChannelMember[];
@@ -2832,7 +2862,7 @@ export interface ChannelConfig {
2832
2862
 
2833
2863
  partition_size?: number;
2834
2864
 
2835
- partition_ttl?: number;
2865
+ partition_ttl?: string;
2836
2866
 
2837
2867
  allowed_flag_reasons?: string[];
2838
2868
 
@@ -3012,6 +3042,8 @@ export interface ChannelInput {
3012
3042
 
3013
3043
  truncated_by_id?: string;
3014
3044
 
3045
+ filter_tags?: string[];
3046
+
3015
3047
  invites?: ChannelMemberRequest[];
3016
3048
 
3017
3049
  members?: ChannelMemberRequest[];
@@ -3023,29 +3055,41 @@ export interface ChannelInput {
3023
3055
  custom?: Record<string, any>;
3024
3056
  }
3025
3057
 
3026
- export interface ChannelMember {
3027
- banned: boolean;
3058
+ export interface ChannelInputRequest {
3059
+ auto_translation_enabled?: boolean;
3028
3060
 
3029
- channel_role: string;
3061
+ auto_translation_language?: string;
3030
3062
 
3031
- created_at: Date;
3063
+ disabled?: boolean;
3032
3064
 
3033
- is_global_banned: boolean;
3065
+ frozen?: boolean;
3034
3066
 
3035
- notifications_muted: boolean;
3067
+ team?: string;
3036
3068
 
3037
- shadow_banned: boolean;
3069
+ invites?: ChannelMember[];
3038
3070
 
3039
- updated_at: Date;
3071
+ members?: ChannelMember[];
3040
3072
 
3041
- custom: Record<string, any>;
3073
+ config_overrides?: ConfigOverrides;
3074
+
3075
+ created_by?: User;
3076
+
3077
+ custom?: Record<string, any>;
3078
+ }
3042
3079
 
3080
+ export interface ChannelMember {
3043
3081
  archived_at?: Date;
3044
3082
 
3045
3083
  ban_expires?: Date;
3046
3084
 
3085
+ banned?: boolean;
3086
+
3047
3087
  blocked?: boolean;
3048
3088
 
3089
+ channel_role?: string;
3090
+
3091
+ created_at?: Date;
3092
+
3049
3093
  deleted_at?: Date;
3050
3094
 
3051
3095
  hidden?: boolean;
@@ -3056,18 +3100,28 @@ export interface ChannelMember {
3056
3100
 
3057
3101
  invited?: boolean;
3058
3102
 
3103
+ is_global_banned?: boolean;
3104
+
3059
3105
  is_moderator?: boolean;
3060
3106
 
3107
+ notifications_muted?: boolean;
3108
+
3061
3109
  pinned_at?: Date;
3062
3110
 
3111
+ shadow_banned?: boolean;
3112
+
3063
3113
  status?: string;
3064
3114
 
3115
+ updated_at?: Date;
3116
+
3065
3117
  user_id?: string;
3066
3118
 
3067
3119
  deleted_messages?: string[];
3068
3120
 
3069
3121
  channel?: DenormalizedChannelFields;
3070
3122
 
3123
+ custom?: Record<string, any>;
3124
+
3071
3125
  user?: User;
3072
3126
  }
3073
3127
 
@@ -3215,6 +3269,12 @@ export interface ChannelPushPreferences {
3215
3269
  disabled_until?: Date;
3216
3270
  }
3217
3271
 
3272
+ export interface ChannelPushPreferencesResponse {
3273
+ chat_level?: string;
3274
+
3275
+ disabled_until?: Date;
3276
+ }
3277
+
3218
3278
  export interface ChannelResponse {
3219
3279
  cid: string;
3220
3280
 
@@ -3260,6 +3320,8 @@ export interface ChannelResponse {
3260
3320
 
3261
3321
  truncated_at?: Date;
3262
3322
 
3323
+ filter_tags?: string[];
3324
+
3263
3325
  members?: ChannelMemberResponse[];
3264
3326
 
3265
3327
  own_capabilities?: ChannelOwnCapability[];
@@ -3302,7 +3364,7 @@ export interface ChannelStateResponse {
3302
3364
 
3303
3365
  membership?: ChannelMemberResponse;
3304
3366
 
3305
- push_preferences?: ChannelPushPreferences;
3367
+ push_preferences?: ChannelPushPreferencesResponse;
3306
3368
  }
3307
3369
 
3308
3370
  export interface ChannelStateResponseFields {
@@ -3334,7 +3396,7 @@ export interface ChannelStateResponseFields {
3334
3396
 
3335
3397
  membership?: ChannelMemberResponse;
3336
3398
 
3337
- push_preferences?: ChannelPushPreferences;
3399
+ push_preferences?: ChannelPushPreferencesResponse;
3338
3400
  }
3339
3401
 
3340
3402
  export interface ChannelTruncatedEvent {
@@ -3655,17 +3717,17 @@ export interface CollectionRequest {
3655
3717
  }
3656
3718
 
3657
3719
  export interface CollectionResponse {
3658
- created_at: Date;
3659
-
3660
3720
  id: string;
3661
3721
 
3662
3722
  name: string;
3663
3723
 
3664
- updated_at: Date;
3724
+ created_at?: Date;
3665
3725
 
3666
- custom: Record<string, any>;
3726
+ updated_at?: Date;
3667
3727
 
3668
3728
  user_id?: string;
3729
+
3730
+ custom?: Record<string, any>;
3669
3731
  }
3670
3732
 
3671
3733
  export interface Command {
@@ -3853,10 +3915,6 @@ export interface CommentUpdatedEvent {
3853
3915
  export interface CommitMessageRequest {}
3854
3916
 
3855
3917
  export interface ConfigOverrides {
3856
- commands: string[];
3857
-
3858
- grants: Record<string, string[]>;
3859
-
3860
3918
  blocklist?: string;
3861
3919
 
3862
3920
  blocklist_behavior?: 'flag' | 'block';
@@ -3880,6 +3938,10 @@ export interface ConfigOverrides {
3880
3938
  url_enrichment?: boolean;
3881
3939
 
3882
3940
  user_message_reminders?: boolean;
3941
+
3942
+ commands?: string[];
3943
+
3944
+ grants?: Record<string, string[]>;
3883
3945
  }
3884
3946
 
3885
3947
  export interface ConfigResponse {
@@ -3939,7 +4001,13 @@ export interface CreateBlockListRequest {
3939
4001
 
3940
4002
  team?: string;
3941
4003
 
3942
- type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
4004
+ type?:
4005
+ | 'regex'
4006
+ | 'domain'
4007
+ | 'domain_allowlist'
4008
+ | 'email'
4009
+ | 'email_allowlist'
4010
+ | 'word';
3943
4011
  }
3944
4012
 
3945
4013
  export interface CreateBlockListResponse {
@@ -4353,6 +4421,18 @@ export interface CreateRoleResponse {
4353
4421
  role: Role;
4354
4422
  }
4355
4423
 
4424
+ export interface CreateSIPTrunkRequest {
4425
+ name: string;
4426
+
4427
+ numbers: string[];
4428
+ }
4429
+
4430
+ export interface CreateSIPTrunkResponse {
4431
+ duration: string;
4432
+
4433
+ sip_trunk?: SIPTrunkResponse;
4434
+ }
4435
+
4356
4436
  export interface CustomActionRequest {
4357
4437
  id?: string;
4358
4438
 
@@ -4699,6 +4779,14 @@ export interface DeleteReminderResponse {
4699
4779
  duration: string;
4700
4780
  }
4701
4781
 
4782
+ export interface DeleteSIPInboundRoutingRuleResponse {
4783
+ duration: string;
4784
+ }
4785
+
4786
+ export interface DeleteSIPTrunkResponse {
4787
+ duration: string;
4788
+ }
4789
+
4702
4790
  export interface DeleteSegmentTargetsRequest {
4703
4791
  target_ids: string[];
4704
4792
  }
@@ -4743,8 +4831,14 @@ export interface DeleteUsersResponse {
4743
4831
  task_id: string;
4744
4832
  }
4745
4833
 
4834
+ export interface DeliveredMessagePayload {
4835
+ cid?: string;
4836
+
4837
+ id?: string;
4838
+ }
4839
+
4746
4840
  export interface DeliveryReceipts {
4747
- enabled: boolean;
4841
+ enabled?: boolean;
4748
4842
  }
4749
4843
 
4750
4844
  export interface DeliveryReceiptsResponse {
@@ -4950,19 +5044,19 @@ export interface EnrichedActivity {
4950
5044
  }
4951
5045
 
4952
5046
  export interface EnrichedCollectionResponse {
4953
- created_at: Date;
4954
-
4955
5047
  id: string;
4956
5048
 
4957
5049
  name: string;
4958
5050
 
4959
5051
  status: 'ok' | 'notfound';
4960
5052
 
4961
- updated_at: Date;
5053
+ created_at?: Date;
4962
5054
 
4963
- custom: Record<string, any>;
5055
+ updated_at?: Date;
4964
5056
 
4965
5057
  user_id?: string;
5058
+
5059
+ custom?: Record<string, any>;
4966
5060
  }
4967
5061
 
4968
5062
  export interface EnrichedReaction {
@@ -5623,6 +5717,20 @@ export interface FeedsPreferences {
5623
5717
  custom_activity_types?: Record<string, string>;
5624
5718
  }
5625
5719
 
5720
+ export interface FeedsPreferencesResponse {
5721
+ comment?: string;
5722
+
5723
+ comment_reaction?: string;
5724
+
5725
+ follow?: string;
5726
+
5727
+ mention?: string;
5728
+
5729
+ reaction?: string;
5730
+
5731
+ custom_activity_types?: Record<string, string>;
5732
+ }
5733
+
5626
5734
  export interface FeedsReactionResponse {
5627
5735
  activity_id: string;
5628
5736
 
@@ -5673,6 +5781,12 @@ export interface FileUploadResponse {
5673
5781
  thumb_url?: string;
5674
5782
  }
5675
5783
 
5784
+ export interface FilterConfigResponse {
5785
+ llm_labels: string[];
5786
+
5787
+ ai_text_labels?: string[];
5788
+ }
5789
+
5676
5790
  export interface FirebaseConfig {
5677
5791
  apn_template?: string;
5678
5792
 
@@ -6531,7 +6645,7 @@ export interface GetRateLimitsResponse {
6531
6645
  export interface GetReactionsResponse {
6532
6646
  duration: string;
6533
6647
 
6534
- reactions: Reaction[];
6648
+ reactions: ReactionResponse[];
6535
6649
  }
6536
6650
 
6537
6651
  export interface GetRepliesResponse {
@@ -7129,6 +7243,18 @@ export interface ListRolesResponse {
7129
7243
  roles: Role[];
7130
7244
  }
7131
7245
 
7246
+ export interface ListSIPInboundRoutingRuleResponse {
7247
+ duration: string;
7248
+
7249
+ sip_inbound_routing_rules: SIPInboundRoutingRuleResponse[];
7250
+ }
7251
+
7252
+ export interface ListSIPTrunksResponse {
7253
+ duration: string;
7254
+
7255
+ sip_trunks: SIPTrunkResponse[];
7256
+ }
7257
+
7132
7258
  export interface ListTranscriptionsResponse {
7133
7259
  duration: string;
7134
7260
 
@@ -7159,6 +7285,14 @@ export interface MarkChannelsReadRequest {
7159
7285
  user?: UserRequest;
7160
7286
  }
7161
7287
 
7288
+ export interface MarkDeliveredRequest {
7289
+ latest_delivered_messages?: DeliveredMessagePayload[];
7290
+ }
7291
+
7292
+ export interface MarkDeliveredResponse {
7293
+ duration: string;
7294
+ }
7295
+
7162
7296
  export interface MarkReadRequest {
7163
7297
  message_id?: string;
7164
7298
 
@@ -7184,6 +7318,8 @@ export interface MarkReviewedRequest {
7184
7318
  export interface MarkUnreadRequest {
7185
7319
  message_id?: string;
7186
7320
 
7321
+ message_timestamp?: Date;
7322
+
7187
7323
  thread_id?: string;
7188
7324
 
7189
7325
  user_id?: string;
@@ -7903,6 +8039,14 @@ export interface MessageWithChannelResponse {
7903
8039
  shared_location?: SharedLocationResponseData;
7904
8040
  }
7905
8041
 
8042
+ export interface MetricDescriptor {
8043
+ label: string;
8044
+
8045
+ description?: string;
8046
+
8047
+ unit?: string;
8048
+ }
8049
+
7906
8050
  export interface MetricThreshold {
7907
8051
  level: string;
7908
8052
 
@@ -8216,6 +8360,8 @@ export interface NoiseCancellationSettings {
8216
8360
  }
8217
8361
 
8218
8362
  export interface NotificationConfig {
8363
+ deduplication_window?: string;
8364
+
8219
8365
  track_read?: boolean;
8220
8366
 
8221
8367
  track_seen?: boolean;
@@ -8520,7 +8666,7 @@ export interface OwnUserResponse {
8520
8666
 
8521
8667
  privacy_settings?: PrivacySettingsResponse;
8522
8668
 
8523
- push_preferences?: PushPreferences;
8669
+ push_preferences?: PushPreferencesResponse;
8524
8670
 
8525
8671
  teams_role?: Record<string, string>;
8526
8672
 
@@ -8586,18 +8732,26 @@ export interface ParticipantReportResponse {
8586
8732
  }
8587
8733
 
8588
8734
  export interface ParticipantSeriesPublisherStats {
8735
+ global_metrics_order?: string[];
8736
+
8589
8737
  global?: Record<string, number[][]>;
8590
8738
 
8739
+ global_meta?: Record<string, MetricDescriptor>;
8740
+
8591
8741
  global_thresholds?: Record<string, MetricThreshold[]>;
8592
8742
 
8593
8743
  tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
8594
8744
  }
8595
8745
 
8596
8746
  export interface ParticipantSeriesSubscriberStats {
8747
+ global_metrics_order?: string[];
8748
+
8597
8749
  subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[];
8598
8750
 
8599
8751
  global?: Record<string, number[][]>;
8600
8752
 
8753
+ global_meta?: Record<string, MetricDescriptor>;
8754
+
8601
8755
  global_thresholds?: Record<string, MetricThreshold[]>;
8602
8756
  }
8603
8757
 
@@ -8632,14 +8786,22 @@ export interface ParticipantSeriesTrackMetrics {
8632
8786
 
8633
8787
  track_type?: string;
8634
8788
 
8789
+ metrics_order?: string[];
8790
+
8635
8791
  metrics?: Record<string, number[][]>;
8636
8792
 
8793
+ metrics_meta?: Record<string, MetricDescriptor>;
8794
+
8637
8795
  thresholds?: Record<string, MetricThreshold[]>;
8638
8796
  }
8639
8797
 
8640
8798
  export interface ParticipantSeriesUserStats {
8799
+ metrics_order?: string[];
8800
+
8641
8801
  metrics?: Record<string, number[][]>;
8642
8802
 
8803
+ metrics_meta?: Record<string, MetricDescriptor>;
8804
+
8643
8805
  thresholds?: Record<string, MetricThreshold[]>;
8644
8806
  }
8645
8807
 
@@ -9093,6 +9255,18 @@ export interface PushPreferences {
9093
9255
  feeds_preferences?: FeedsPreferences;
9094
9256
  }
9095
9257
 
9258
+ export interface PushPreferencesResponse {
9259
+ call_level?: string;
9260
+
9261
+ chat_level?: string;
9262
+
9263
+ disabled_until?: Date;
9264
+
9265
+ feeds_level?: string;
9266
+
9267
+ feeds_preferences?: FeedsPreferencesResponse;
9268
+ }
9269
+
9096
9270
  export interface PushProvider {
9097
9271
  created_at: Date;
9098
9272
 
@@ -10041,6 +10215,8 @@ export interface QueryReviewQueueResponse {
10041
10215
  next?: string;
10042
10216
 
10043
10217
  prev?: string;
10218
+
10219
+ filter_config?: FilterConfigResponse;
10044
10220
  }
10045
10221
 
10046
10222
  export interface QuerySegmentTargetsRequest {
@@ -10408,7 +10584,7 @@ export interface ReadCollectionsResponse {
10408
10584
  }
10409
10585
 
10410
10586
  export interface ReadReceipts {
10411
- enabled: boolean;
10587
+ enabled?: boolean;
10412
10588
  }
10413
10589
 
10414
10590
  export interface ReadReceiptsResponse {
@@ -10568,9 +10744,9 @@ export interface ReminderResponseData {
10568
10744
 
10569
10745
  channel?: ChannelResponse;
10570
10746
 
10571
- message?: Message;
10747
+ message?: MessageResponse;
10572
10748
 
10573
- user?: User;
10749
+ user?: UserResponse;
10574
10750
  }
10575
10751
 
10576
10752
  export interface ReminderUpdatedEvent {
@@ -10623,6 +10799,26 @@ export interface ReportResponse {
10623
10799
  user_ratings: UserRatingReportResponse;
10624
10800
  }
10625
10801
 
10802
+ export interface ResolveSipInboundRequest {
10803
+ sip_caller_number: string;
10804
+
10805
+ sip_trunk_number: string;
10806
+
10807
+ challenge: SIPChallenge;
10808
+
10809
+ sip_headers?: Record<string, string>;
10810
+ }
10811
+
10812
+ export interface ResolveSipInboundResponse {
10813
+ duration: string;
10814
+
10815
+ credentials: SipInboundCredentials;
10816
+
10817
+ sip_routing_rule?: SIPInboundRoutingRuleResponse;
10818
+
10819
+ sip_trunk?: SIPTrunkResponse;
10820
+ }
10821
+
10626
10822
  export interface Response {
10627
10823
  duration: string;
10628
10824
  }
@@ -10731,6 +10927,18 @@ export interface ReviewQueueItemUpdatedEvent {
10731
10927
  review_queue_item?: ReviewQueueItemResponse;
10732
10928
  }
10733
10929
 
10930
+ export interface RingCallRequest {
10931
+ video?: boolean;
10932
+
10933
+ members_ids?: string[];
10934
+ }
10935
+
10936
+ export interface RingCallResponse {
10937
+ duration: string;
10938
+
10939
+ members_ids: string[];
10940
+ }
10941
+
10734
10942
  export interface RingSettings {
10735
10943
  auto_cancel_timeout_ms: number;
10736
10944
 
@@ -10855,6 +11063,182 @@ export interface SDKUsageReportResponse {
10855
11063
  daily: DailyAggregateSDKUsageReportResponse[];
10856
11064
  }
10857
11065
 
11066
+ export interface SIPCallConfigsRequest {
11067
+ custom_data?: Record<string, any>;
11068
+ }
11069
+
11070
+ export interface SIPCallConfigsResponse {
11071
+ custom_data: Record<string, any>;
11072
+ }
11073
+
11074
+ export interface SIPCallerConfigsRequest {
11075
+ id: string;
11076
+
11077
+ custom_data?: Record<string, any>;
11078
+ }
11079
+
11080
+ export interface SIPCallerConfigsResponse {
11081
+ id: string;
11082
+
11083
+ custom_data: Record<string, any>;
11084
+ }
11085
+
11086
+ export interface SIPChallenge {
11087
+ a1?: string;
11088
+
11089
+ algorithm?: string;
11090
+
11091
+ charset?: string;
11092
+
11093
+ cnonce?: string;
11094
+
11095
+ method?: string;
11096
+
11097
+ nc?: string;
11098
+
11099
+ nonce?: string;
11100
+
11101
+ opaque?: string;
11102
+
11103
+ realm?: string;
11104
+
11105
+ response?: string;
11106
+
11107
+ stale?: boolean;
11108
+
11109
+ uri?: string;
11110
+
11111
+ userhash?: boolean;
11112
+
11113
+ username?: string;
11114
+
11115
+ domain?: string[];
11116
+
11117
+ qop?: string[];
11118
+ }
11119
+
11120
+ export interface SIPDirectRoutingRuleCallConfigsRequest {
11121
+ call_id: string;
11122
+
11123
+ call_type: string;
11124
+ }
11125
+
11126
+ export interface SIPDirectRoutingRuleCallConfigsResponse {
11127
+ call_id: string;
11128
+
11129
+ call_type: string;
11130
+ }
11131
+
11132
+ export interface SIPInboundRoutingRulePinConfigsRequest {
11133
+ custom_webhook_url?: string;
11134
+
11135
+ pin_failed_attempt_prompt?: string;
11136
+
11137
+ pin_hangup_prompt?: string;
11138
+
11139
+ pin_prompt?: string;
11140
+
11141
+ pin_success_prompt?: string;
11142
+ }
11143
+
11144
+ export interface SIPInboundRoutingRulePinConfigsResponse {
11145
+ custom_webhook_url?: string;
11146
+
11147
+ pin_failed_attempt_prompt?: string;
11148
+
11149
+ pin_hangup_prompt?: string;
11150
+
11151
+ pin_prompt?: string;
11152
+
11153
+ pin_success_prompt?: string;
11154
+ }
11155
+
11156
+ export interface SIPInboundRoutingRuleRequest {
11157
+ name: string;
11158
+
11159
+ trunk_ids: string[];
11160
+
11161
+ caller_configs: SIPCallerConfigsRequest;
11162
+
11163
+ called_numbers?: string[];
11164
+
11165
+ caller_numbers?: string[];
11166
+
11167
+ call_configs?: SIPCallConfigsRequest;
11168
+
11169
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
11170
+
11171
+ pin_protection_configs?: SIPPinProtectionConfigsRequest;
11172
+
11173
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
11174
+ }
11175
+
11176
+ export interface SIPInboundRoutingRuleResponse {
11177
+ created_at: Date;
11178
+
11179
+ duration: string;
11180
+
11181
+ id: string;
11182
+
11183
+ name: string;
11184
+
11185
+ updated_at: Date;
11186
+
11187
+ called_numbers: string[];
11188
+
11189
+ trunk_ids: string[];
11190
+
11191
+ caller_numbers?: string[];
11192
+
11193
+ call_configs?: SIPCallConfigsResponse;
11194
+
11195
+ caller_configs?: SIPCallerConfigsResponse;
11196
+
11197
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsResponse;
11198
+
11199
+ pin_protection_configs?: SIPPinProtectionConfigsResponse;
11200
+
11201
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsResponse;
11202
+ }
11203
+
11204
+ export interface SIPPinProtectionConfigsRequest {
11205
+ default_pin?: string;
11206
+
11207
+ enabled?: boolean;
11208
+
11209
+ max_attempts?: number;
11210
+
11211
+ required_pin_digits?: number;
11212
+ }
11213
+
11214
+ export interface SIPPinProtectionConfigsResponse {
11215
+ enabled: boolean;
11216
+
11217
+ default_pin?: string;
11218
+
11219
+ max_attempts?: number;
11220
+
11221
+ required_pin_digits?: number;
11222
+ }
11223
+
11224
+ export interface SIPTrunkResponse {
11225
+ created_at: Date;
11226
+
11227
+ id: string;
11228
+
11229
+ name: string;
11230
+
11231
+ password: string;
11232
+
11233
+ updated_at: Date;
11234
+
11235
+ uri: string;
11236
+
11237
+ username: string;
11238
+
11239
+ numbers: string[];
11240
+ }
11241
+
10858
11242
  export interface SRTIngress {
10859
11243
  address: string;
10860
11244
  }
@@ -11180,27 +11564,13 @@ export interface ShadowBlockActionRequest {
11180
11564
  }
11181
11565
 
11182
11566
  export interface SharedLocation {
11183
- channel_cid: string;
11184
-
11185
- created_at: Date;
11186
-
11187
- created_by_device_id: string;
11188
-
11189
- message_id: string;
11567
+ latitude: number;
11190
11568
 
11191
- updated_at: Date;
11569
+ longitude: number;
11192
11570
 
11193
- user_id: string;
11571
+ created_by_device_id?: string;
11194
11572
 
11195
11573
  end_at?: Date;
11196
-
11197
- latitude?: number;
11198
-
11199
- longitude?: number;
11200
-
11201
- channel?: Channel;
11202
-
11203
- message?: Message;
11204
11574
  }
11205
11575
 
11206
11576
  export interface SharedLocationResponse {
@@ -11275,6 +11645,20 @@ export interface SingleFollowResponse {
11275
11645
  follow: FollowResponse;
11276
11646
  }
11277
11647
 
11648
+ export interface SipInboundCredentials {
11649
+ call_id: string;
11650
+
11651
+ call_type: string;
11652
+
11653
+ token: string;
11654
+
11655
+ user_id: string;
11656
+
11657
+ call_custom_data: Record<string, any>;
11658
+
11659
+ user_custom_data: Record<string, any>;
11660
+ }
11661
+
11278
11662
  export interface SortParam {
11279
11663
  direction?: number;
11280
11664
 
@@ -12094,7 +12478,7 @@ export interface TruncateChannelResponse {
12094
12478
  }
12095
12479
 
12096
12480
  export interface TypingIndicators {
12097
- enabled: boolean;
12481
+ enabled?: boolean;
12098
12482
  }
12099
12483
 
12100
12484
  export interface TypingIndicatorsResponse {
@@ -12278,6 +12662,8 @@ export interface UpdateActivityRequest {
12278
12662
 
12279
12663
  restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
12280
12664
 
12665
+ skip_enrich_url?: boolean;
12666
+
12281
12667
  text?: string;
12282
12668
 
12283
12669
  user_id?: string;
@@ -12538,12 +12924,16 @@ export interface UpdateChannelRequest {
12538
12924
 
12539
12925
  hide_history?: boolean;
12540
12926
 
12927
+ hide_history_before?: Date;
12928
+
12541
12929
  reject_invite?: boolean;
12542
12930
 
12543
12931
  skip_push?: boolean;
12544
12932
 
12545
12933
  user_id?: string;
12546
12934
 
12935
+ add_filter_tags?: string[];
12936
+
12547
12937
  add_members?: ChannelMemberRequest[];
12548
12938
 
12549
12939
  add_moderators?: string[];
@@ -12554,9 +12944,11 @@ export interface UpdateChannelRequest {
12554
12944
 
12555
12945
  invites?: ChannelMemberRequest[];
12556
12946
 
12947
+ remove_filter_tags?: string[];
12948
+
12557
12949
  remove_members?: string[];
12558
12950
 
12559
- data?: ChannelInput;
12951
+ data?: ChannelInputRequest;
12560
12952
 
12561
12953
  message?: MessageRequest;
12562
12954
 
@@ -12756,6 +13148,8 @@ export interface UpdateCommandResponse {
12756
13148
  export interface UpdateCommentRequest {
12757
13149
  comment?: string;
12758
13150
 
13151
+ skip_enrich_url?: boolean;
13152
+
12759
13153
  skip_push?: boolean;
12760
13154
 
12761
13155
  user_id?: string;
@@ -13048,6 +13442,44 @@ export interface UpdateReminderResponse {
13048
13442
  reminder: ReminderResponseData;
13049
13443
  }
13050
13444
 
13445
+ export interface UpdateSIPInboundRoutingRuleRequest {
13446
+ name: string;
13447
+
13448
+ called_numbers: string[];
13449
+
13450
+ trunk_ids: string[];
13451
+
13452
+ caller_configs: SIPCallerConfigsRequest;
13453
+
13454
+ caller_numbers?: string[];
13455
+
13456
+ call_configs?: SIPCallConfigsRequest;
13457
+
13458
+ direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
13459
+
13460
+ pin_protection_configs?: SIPPinProtectionConfigsRequest;
13461
+
13462
+ pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
13463
+ }
13464
+
13465
+ export interface UpdateSIPInboundRoutingRuleResponse {
13466
+ duration: string;
13467
+
13468
+ sip_inbound_routing_rule?: SIPInboundRoutingRuleResponse;
13469
+ }
13470
+
13471
+ export interface UpdateSIPTrunkRequest {
13472
+ name: string;
13473
+
13474
+ numbers: string[];
13475
+ }
13476
+
13477
+ export interface UpdateSIPTrunkResponse {
13478
+ duration: string;
13479
+
13480
+ sip_trunk?: SIPTrunkResponse;
13481
+ }
13482
+
13051
13483
  export interface UpdateThreadPartialRequest {
13052
13484
  user_id?: string;
13053
13485
 
@@ -13316,43 +13748,27 @@ export interface UpsertPushTemplateResponse {
13316
13748
  }
13317
13749
 
13318
13750
  export interface User {
13319
- banned: boolean;
13320
-
13321
13751
  id: string;
13322
13752
 
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
13753
  ban_expires?: Date;
13334
13754
 
13335
- created_at?: Date;
13336
-
13337
- deactivated_at?: Date;
13338
-
13339
- deleted_at?: Date;
13755
+ banned?: boolean;
13340
13756
 
13341
13757
  invisible?: boolean;
13342
13758
 
13343
13759
  language?: string;
13344
13760
 
13345
- last_active?: Date;
13346
-
13347
- last_engaged_at?: Date;
13348
-
13349
13761
  revoke_tokens_issued_before?: Date;
13350
13762
 
13351
- updated_at?: Date;
13763
+ role?: string;
13352
13764
 
13353
13765
  teams?: string[];
13354
13766
 
13767
+ custom?: Record<string, any>;
13768
+
13355
13769
  privacy_settings?: PrivacySettings;
13770
+
13771
+ teams_role?: Record<string, string>;
13356
13772
  }
13357
13773
 
13358
13774
  export interface UserBannedEvent {