@stream-io/node-sdk 0.7.18 → 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.
@@ -511,6 +511,8 @@ export interface ActivityRequest {
511
511
 
512
512
  attachments?: Attachment[];
513
513
 
514
+ collection_refs?: string[];
515
+
514
516
  filter_tags?: string[];
515
517
 
516
518
  interest_tags?: string[];
@@ -571,6 +573,8 @@ export interface ActivityResponse {
571
573
 
572
574
  own_reactions: FeedsReactionResponse[];
573
575
 
576
+ collections: Record<string, EnrichedCollectionResponse>;
577
+
574
578
  custom: Record<string, any>;
575
579
 
576
580
  reaction_groups: Record<string, ReactionGroupResponse>;
@@ -701,6 +705,8 @@ export interface AddActivityRequest {
701
705
 
702
706
  attachments?: Attachment[];
703
707
 
708
+ collection_refs?: string[];
709
+
704
710
  filter_tags?: string[];
705
711
 
706
712
  interest_tags?: string[];
@@ -1520,6 +1526,8 @@ export interface BookmarkFolderResponse {
1520
1526
 
1521
1527
  updated_at: Date;
1522
1528
 
1529
+ user: UserResponseCommonFields;
1530
+
1523
1531
  custom?: Record<string, any>;
1524
1532
  }
1525
1533
 
@@ -1544,7 +1552,7 @@ export interface BookmarkResponse {
1544
1552
 
1545
1553
  activity: ActivityResponse;
1546
1554
 
1547
- user: UserResponse;
1555
+ user: UserResponseCommonFields;
1548
1556
 
1549
1557
  custom?: Record<string, any>;
1550
1558
 
@@ -2354,6 +2362,8 @@ export interface CallStatsLocation {
2354
2362
 
2355
2363
  country?: string;
2356
2364
 
2365
+ country_iso_code?: string;
2366
+
2357
2367
  latitude?: number;
2358
2368
 
2359
2369
  longitude?: number;
@@ -2378,6 +2388,10 @@ export interface CallStatsParticipantCounts {
2378
2388
 
2379
2389
  participants: number;
2380
2390
 
2391
+ peak_concurrent_sessions: number;
2392
+
2393
+ peak_concurrent_users: number;
2394
+
2381
2395
  publishers: number;
2382
2396
 
2383
2397
  sessions: number;
@@ -2404,6 +2418,8 @@ export interface CallStatsParticipantSession {
2404
2418
 
2405
2419
  ended_at?: Date;
2406
2420
 
2421
+ os?: string;
2422
+
2407
2423
  publisher_type?: string;
2408
2424
 
2409
2425
  sdk?: string;
@@ -2593,6 +2609,14 @@ export interface CallsPerDayReportResponse {
2593
2609
  daily: DailyAggregateCallsPerDayReportResponse[];
2594
2610
  }
2595
2611
 
2612
+ export interface CampaignChannelMember {
2613
+ user_id: string;
2614
+
2615
+ channel_role?: string;
2616
+
2617
+ custom?: Record<string, any>;
2618
+ }
2619
+
2596
2620
  export interface CampaignChannelTemplate {
2597
2621
  type: string;
2598
2622
 
@@ -2603,6 +2627,8 @@ export interface CampaignChannelTemplate {
2603
2627
  team?: string;
2604
2628
 
2605
2629
  members?: string[];
2630
+
2631
+ members_template?: CampaignChannelMember[];
2606
2632
  }
2607
2633
 
2608
2634
  export interface CampaignCompletedEvent {
@@ -2620,6 +2646,8 @@ export interface CampaignCompletedEvent {
2620
2646
  export interface CampaignMessageTemplate {
2621
2647
  poll_id: string;
2622
2648
 
2649
+ searchable: boolean;
2650
+
2623
2651
  text: string;
2624
2652
 
2625
2653
  attachments: Attachment[];
@@ -2750,6 +2778,8 @@ export interface Channel {
2750
2778
 
2751
2779
  active_live_locations?: SharedLocation[];
2752
2780
 
2781
+ filter_tags?: string[];
2782
+
2753
2783
  invites?: ChannelMember[];
2754
2784
 
2755
2785
  members?: ChannelMember[];
@@ -2826,7 +2856,7 @@ export interface ChannelConfig {
2826
2856
 
2827
2857
  partition_size?: number;
2828
2858
 
2829
- partition_ttl?: number;
2859
+ partition_ttl?: string;
2830
2860
 
2831
2861
  allowed_flag_reasons?: string[];
2832
2862
 
@@ -3006,6 +3036,8 @@ export interface ChannelInput {
3006
3036
 
3007
3037
  truncated_by_id?: string;
3008
3038
 
3039
+ filter_tags?: string[];
3040
+
3009
3041
  invites?: ChannelMemberRequest[];
3010
3042
 
3011
3043
  members?: ChannelMemberRequest[];
@@ -3017,29 +3049,41 @@ export interface ChannelInput {
3017
3049
  custom?: Record<string, any>;
3018
3050
  }
3019
3051
 
3020
- export interface ChannelMember {
3021
- banned: boolean;
3052
+ export interface ChannelInputRequest {
3053
+ auto_translation_enabled?: boolean;
3022
3054
 
3023
- channel_role: string;
3055
+ auto_translation_language?: string;
3024
3056
 
3025
- created_at: Date;
3057
+ disabled?: boolean;
3026
3058
 
3027
- is_global_banned: boolean;
3059
+ frozen?: boolean;
3028
3060
 
3029
- notifications_muted: boolean;
3061
+ team?: string;
3030
3062
 
3031
- shadow_banned: boolean;
3063
+ invites?: ChannelMember[];
3032
3064
 
3033
- updated_at: Date;
3065
+ members?: ChannelMember[];
3034
3066
 
3035
- custom: Record<string, any>;
3067
+ config_overrides?: ConfigOverrides;
3036
3068
 
3069
+ created_by?: User;
3070
+
3071
+ custom?: Record<string, any>;
3072
+ }
3073
+
3074
+ export interface ChannelMember {
3037
3075
  archived_at?: Date;
3038
3076
 
3039
3077
  ban_expires?: Date;
3040
3078
 
3079
+ banned?: boolean;
3080
+
3041
3081
  blocked?: boolean;
3042
3082
 
3083
+ channel_role?: string;
3084
+
3085
+ created_at?: Date;
3086
+
3043
3087
  deleted_at?: Date;
3044
3088
 
3045
3089
  hidden?: boolean;
@@ -3050,18 +3094,28 @@ export interface ChannelMember {
3050
3094
 
3051
3095
  invited?: boolean;
3052
3096
 
3097
+ is_global_banned?: boolean;
3098
+
3053
3099
  is_moderator?: boolean;
3054
3100
 
3101
+ notifications_muted?: boolean;
3102
+
3055
3103
  pinned_at?: Date;
3056
3104
 
3105
+ shadow_banned?: boolean;
3106
+
3057
3107
  status?: string;
3058
3108
 
3109
+ updated_at?: Date;
3110
+
3059
3111
  user_id?: string;
3060
3112
 
3061
3113
  deleted_messages?: string[];
3062
3114
 
3063
3115
  channel?: DenormalizedChannelFields;
3064
3116
 
3117
+ custom?: Record<string, any>;
3118
+
3065
3119
  user?: User;
3066
3120
  }
3067
3121
 
@@ -3209,6 +3263,12 @@ export interface ChannelPushPreferences {
3209
3263
  disabled_until?: Date;
3210
3264
  }
3211
3265
 
3266
+ export interface ChannelPushPreferencesResponse {
3267
+ chat_level?: string;
3268
+
3269
+ disabled_until?: Date;
3270
+ }
3271
+
3212
3272
  export interface ChannelResponse {
3213
3273
  cid: string;
3214
3274
 
@@ -3254,6 +3314,8 @@ export interface ChannelResponse {
3254
3314
 
3255
3315
  truncated_at?: Date;
3256
3316
 
3317
+ filter_tags?: string[];
3318
+
3257
3319
  members?: ChannelMemberResponse[];
3258
3320
 
3259
3321
  own_capabilities?: ChannelOwnCapability[];
@@ -3296,7 +3358,7 @@ export interface ChannelStateResponse {
3296
3358
 
3297
3359
  membership?: ChannelMemberResponse;
3298
3360
 
3299
- push_preferences?: ChannelPushPreferences;
3361
+ push_preferences?: ChannelPushPreferencesResponse;
3300
3362
  }
3301
3363
 
3302
3364
  export interface ChannelStateResponseFields {
@@ -3328,7 +3390,7 @@ export interface ChannelStateResponseFields {
3328
3390
 
3329
3391
  membership?: ChannelMemberResponse;
3330
3392
 
3331
- push_preferences?: ChannelPushPreferences;
3393
+ push_preferences?: ChannelPushPreferencesResponse;
3332
3394
  }
3333
3395
 
3334
3396
  export interface ChannelTruncatedEvent {
@@ -3638,6 +3700,30 @@ export interface CollectUserFeedbackResponse {
3638
3700
  duration: string;
3639
3701
  }
3640
3702
 
3703
+ export interface CollectionRequest {
3704
+ name: string;
3705
+
3706
+ custom: Record<string, any>;
3707
+
3708
+ id?: string;
3709
+
3710
+ user_id?: string;
3711
+ }
3712
+
3713
+ export interface CollectionResponse {
3714
+ id: string;
3715
+
3716
+ name: string;
3717
+
3718
+ created_at?: Date;
3719
+
3720
+ updated_at?: Date;
3721
+
3722
+ user_id?: string;
3723
+
3724
+ custom?: Record<string, any>;
3725
+ }
3726
+
3641
3727
  export interface Command {
3642
3728
  args: string;
3643
3729
 
@@ -3823,10 +3909,6 @@ export interface CommentUpdatedEvent {
3823
3909
  export interface CommitMessageRequest {}
3824
3910
 
3825
3911
  export interface ConfigOverrides {
3826
- commands: string[];
3827
-
3828
- grants: Record<string, string[]>;
3829
-
3830
3912
  blocklist?: string;
3831
3913
 
3832
3914
  blocklist_behavior?: 'flag' | 'block';
@@ -3850,6 +3932,10 @@ export interface ConfigOverrides {
3850
3932
  url_enrichment?: boolean;
3851
3933
 
3852
3934
  user_message_reminders?: boolean;
3935
+
3936
+ commands?: string[];
3937
+
3938
+ grants?: Record<string, string[]>;
3853
3939
  }
3854
3940
 
3855
3941
  export interface ConfigResponse {
@@ -3909,7 +3995,13 @@ export interface CreateBlockListRequest {
3909
3995
 
3910
3996
  team?: string;
3911
3997
 
3912
- type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
3998
+ type?:
3999
+ | 'regex'
4000
+ | 'domain'
4001
+ | 'domain_allowlist'
4002
+ | 'email'
4003
+ | 'email_allowlist'
4004
+ | 'word';
3913
4005
  }
3914
4006
 
3915
4007
  export interface CreateBlockListResponse {
@@ -4088,6 +4180,20 @@ export interface CreateChannelTypeResponse {
4088
4180
  automod_thresholds?: Thresholds;
4089
4181
  }
4090
4182
 
4183
+ export interface CreateCollectionsRequest {
4184
+ collections: CollectionRequest[];
4185
+
4186
+ user_id?: string;
4187
+
4188
+ user?: UserRequest;
4189
+ }
4190
+
4191
+ export interface CreateCollectionsResponse {
4192
+ duration: string;
4193
+
4194
+ collections: CollectionResponse[];
4195
+ }
4196
+
4091
4197
  export interface CreateCommandRequest {
4092
4198
  description: string;
4093
4199
 
@@ -4309,6 +4415,18 @@ export interface CreateRoleResponse {
4309
4415
  role: Role;
4310
4416
  }
4311
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
+
4312
4430
  export interface CustomActionRequest {
4313
4431
  id?: string;
4314
4432
 
@@ -4547,6 +4665,10 @@ export interface DeleteChannelsResultResponse {
4547
4665
  error?: string;
4548
4666
  }
4549
4667
 
4668
+ export interface DeleteCollectionsResponse {
4669
+ duration: string;
4670
+ }
4671
+
4550
4672
  export interface DeleteCommandResponse {
4551
4673
  duration: string;
4552
4674
 
@@ -4651,6 +4773,14 @@ export interface DeleteReminderResponse {
4651
4773
  duration: string;
4652
4774
  }
4653
4775
 
4776
+ export interface DeleteSIPInboundRoutingRuleResponse {
4777
+ duration: string;
4778
+ }
4779
+
4780
+ export interface DeleteSIPTrunkResponse {
4781
+ duration: string;
4782
+ }
4783
+
4654
4784
  export interface DeleteSegmentTargetsRequest {
4655
4785
  target_ids: string[];
4656
4786
  }
@@ -4695,8 +4825,14 @@ export interface DeleteUsersResponse {
4695
4825
  task_id: string;
4696
4826
  }
4697
4827
 
4828
+ export interface DeliveredMessagePayload {
4829
+ cid?: string;
4830
+
4831
+ id?: string;
4832
+ }
4833
+
4698
4834
  export interface DeliveryReceipts {
4699
- enabled: boolean;
4835
+ enabled?: boolean;
4700
4836
  }
4701
4837
 
4702
4838
  export interface DeliveryReceiptsResponse {
@@ -4901,6 +5037,22 @@ export interface EnrichedActivity {
4901
5037
  target?: Data;
4902
5038
  }
4903
5039
 
5040
+ export interface EnrichedCollectionResponse {
5041
+ id: string;
5042
+
5043
+ name: string;
5044
+
5045
+ status: 'ok' | 'notfound';
5046
+
5047
+ created_at?: Date;
5048
+
5049
+ updated_at?: Date;
5050
+
5051
+ user_id?: string;
5052
+
5053
+ custom?: Record<string, any>;
5054
+ }
5055
+
4904
5056
  export interface EnrichedReaction {
4905
5057
  activity_id: string;
4906
5058
 
@@ -5559,6 +5711,20 @@ export interface FeedsPreferences {
5559
5711
  custom_activity_types?: Record<string, string>;
5560
5712
  }
5561
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
+
5562
5728
  export interface FeedsReactionResponse {
5563
5729
  activity_id: string;
5564
5730
 
@@ -5609,6 +5775,12 @@ export interface FileUploadResponse {
5609
5775
  thumb_url?: string;
5610
5776
  }
5611
5777
 
5778
+ export interface FilterConfigResponse {
5779
+ llm_labels: string[];
5780
+
5781
+ ai_text_labels?: string[];
5782
+ }
5783
+
5612
5784
  export interface FirebaseConfig {
5613
5785
  apn_template?: string;
5614
5786
 
@@ -6467,7 +6639,7 @@ export interface GetRateLimitsResponse {
6467
6639
  export interface GetReactionsResponse {
6468
6640
  duration: string;
6469
6641
 
6470
- reactions: Reaction[];
6642
+ reactions: ReactionResponse[];
6471
6643
  }
6472
6644
 
6473
6645
  export interface GetRepliesResponse {
@@ -7065,6 +7237,18 @@ export interface ListRolesResponse {
7065
7237
  roles: Role[];
7066
7238
  }
7067
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
+
7068
7252
  export interface ListTranscriptionsResponse {
7069
7253
  duration: string;
7070
7254
 
@@ -7095,6 +7279,14 @@ export interface MarkChannelsReadRequest {
7095
7279
  user?: UserRequest;
7096
7280
  }
7097
7281
 
7282
+ export interface MarkDeliveredRequest {
7283
+ latest_delivered_messages?: DeliveredMessagePayload[];
7284
+ }
7285
+
7286
+ export interface MarkDeliveredResponse {
7287
+ duration: string;
7288
+ }
7289
+
7098
7290
  export interface MarkReadRequest {
7099
7291
  message_id?: string;
7100
7292
 
@@ -7120,6 +7312,8 @@ export interface MarkReviewedRequest {
7120
7312
  export interface MarkUnreadRequest {
7121
7313
  message_id?: string;
7122
7314
 
7315
+ message_timestamp?: Date;
7316
+
7123
7317
  thread_id?: string;
7124
7318
 
7125
7319
  user_id?: string;
@@ -7839,6 +8033,14 @@ export interface MessageWithChannelResponse {
7839
8033
  shared_location?: SharedLocationResponseData;
7840
8034
  }
7841
8035
 
8036
+ export interface MetricDescriptor {
8037
+ label: string;
8038
+
8039
+ description?: string;
8040
+
8041
+ unit?: string;
8042
+ }
8043
+
7842
8044
  export interface MetricThreshold {
7843
8045
  level: string;
7844
8046
 
@@ -8456,7 +8658,7 @@ export interface OwnUserResponse {
8456
8658
 
8457
8659
  privacy_settings?: PrivacySettingsResponse;
8458
8660
 
8459
- push_preferences?: PushPreferences;
8661
+ push_preferences?: PushPreferencesResponse;
8460
8662
 
8461
8663
  teams_role?: Record<string, string>;
8462
8664
 
@@ -8522,18 +8724,26 @@ export interface ParticipantReportResponse {
8522
8724
  }
8523
8725
 
8524
8726
  export interface ParticipantSeriesPublisherStats {
8727
+ global_metrics_order?: string[];
8728
+
8525
8729
  global?: Record<string, number[][]>;
8526
8730
 
8731
+ global_meta?: Record<string, MetricDescriptor>;
8732
+
8527
8733
  global_thresholds?: Record<string, MetricThreshold[]>;
8528
8734
 
8529
8735
  tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
8530
8736
  }
8531
8737
 
8532
8738
  export interface ParticipantSeriesSubscriberStats {
8739
+ global_metrics_order?: string[];
8740
+
8533
8741
  subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[];
8534
8742
 
8535
8743
  global?: Record<string, number[][]>;
8536
8744
 
8745
+ global_meta?: Record<string, MetricDescriptor>;
8746
+
8537
8747
  global_thresholds?: Record<string, MetricThreshold[]>;
8538
8748
  }
8539
8749
 
@@ -8568,14 +8778,22 @@ export interface ParticipantSeriesTrackMetrics {
8568
8778
 
8569
8779
  track_type?: string;
8570
8780
 
8781
+ metrics_order?: string[];
8782
+
8571
8783
  metrics?: Record<string, number[][]>;
8572
8784
 
8785
+ metrics_meta?: Record<string, MetricDescriptor>;
8786
+
8573
8787
  thresholds?: Record<string, MetricThreshold[]>;
8574
8788
  }
8575
8789
 
8576
8790
  export interface ParticipantSeriesUserStats {
8791
+ metrics_order?: string[];
8792
+
8577
8793
  metrics?: Record<string, number[][]>;
8578
8794
 
8795
+ metrics_meta?: Record<string, MetricDescriptor>;
8796
+
8579
8797
  thresholds?: Record<string, MetricThreshold[]>;
8580
8798
  }
8581
8799
 
@@ -9029,6 +9247,18 @@ export interface PushPreferences {
9029
9247
  feeds_preferences?: FeedsPreferences;
9030
9248
  }
9031
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
+
9032
9262
  export interface PushProvider {
9033
9263
  created_at: Date;
9034
9264
 
@@ -9977,6 +10207,8 @@ export interface QueryReviewQueueResponse {
9977
10207
  next?: string;
9978
10208
 
9979
10209
  prev?: string;
10210
+
10211
+ filter_config?: FilterConfigResponse;
9980
10212
  }
9981
10213
 
9982
10214
  export interface QuerySegmentTargetsRequest {
@@ -10337,8 +10569,14 @@ export interface ReactivateUsersResponse {
10337
10569
  task_id: string;
10338
10570
  }
10339
10571
 
10572
+ export interface ReadCollectionsResponse {
10573
+ duration: string;
10574
+
10575
+ collections: CollectionResponse[];
10576
+ }
10577
+
10340
10578
  export interface ReadReceipts {
10341
- enabled: boolean;
10579
+ enabled?: boolean;
10342
10580
  }
10343
10581
 
10344
10582
  export interface ReadReceiptsResponse {
@@ -10498,9 +10736,9 @@ export interface ReminderResponseData {
10498
10736
 
10499
10737
  channel?: ChannelResponse;
10500
10738
 
10501
- message?: Message;
10739
+ message?: MessageResponse;
10502
10740
 
10503
- user?: User;
10741
+ user?: UserResponse;
10504
10742
  }
10505
10743
 
10506
10744
  export interface ReminderUpdatedEvent {
@@ -10553,6 +10791,26 @@ export interface ReportResponse {
10553
10791
  user_ratings: UserRatingReportResponse;
10554
10792
  }
10555
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
+
10556
10814
  export interface Response {
10557
10815
  duration: string;
10558
10816
  }
@@ -10661,6 +10919,18 @@ export interface ReviewQueueItemUpdatedEvent {
10661
10919
  review_queue_item?: ReviewQueueItemResponse;
10662
10920
  }
10663
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
+
10664
10934
  export interface RingSettings {
10665
10935
  auto_cancel_timeout_ms: number;
10666
10936
 
@@ -10785,6 +11055,182 @@ export interface SDKUsageReportResponse {
10785
11055
  daily: DailyAggregateSDKUsageReportResponse[];
10786
11056
  }
10787
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
+
10788
11234
  export interface SRTIngress {
10789
11235
  address: string;
10790
11236
  }
@@ -11110,27 +11556,13 @@ export interface ShadowBlockActionRequest {
11110
11556
  }
11111
11557
 
11112
11558
  export interface SharedLocation {
11113
- channel_cid: string;
11114
-
11115
- created_at: Date;
11116
-
11117
- created_by_device_id: string;
11118
-
11119
- message_id: string;
11559
+ latitude: number;
11120
11560
 
11121
- updated_at: Date;
11561
+ longitude: number;
11122
11562
 
11123
- user_id: string;
11563
+ created_by_device_id?: string;
11124
11564
 
11125
11565
  end_at?: Date;
11126
-
11127
- latitude?: number;
11128
-
11129
- longitude?: number;
11130
-
11131
- channel?: Channel;
11132
-
11133
- message?: Message;
11134
11566
  }
11135
11567
 
11136
11568
  export interface SharedLocationResponse {
@@ -11205,6 +11637,20 @@ export interface SingleFollowResponse {
11205
11637
  follow: FollowResponse;
11206
11638
  }
11207
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
+
11208
11654
  export interface SortParam {
11209
11655
  direction?: number;
11210
11656
 
@@ -12024,7 +12470,7 @@ export interface TruncateChannelResponse {
12024
12470
  }
12025
12471
 
12026
12472
  export interface TypingIndicators {
12027
- enabled: boolean;
12473
+ enabled?: boolean;
12028
12474
  }
12029
12475
 
12030
12476
  export interface TypingIndicatorsResponse {
@@ -12216,6 +12662,8 @@ export interface UpdateActivityRequest {
12216
12662
 
12217
12663
  attachments?: Attachment[];
12218
12664
 
12665
+ collection_refs?: string[];
12666
+
12219
12667
  feeds?: string[];
12220
12668
 
12221
12669
  filter_tags?: string[];
@@ -12466,12 +12914,16 @@ export interface UpdateChannelRequest {
12466
12914
 
12467
12915
  hide_history?: boolean;
12468
12916
 
12917
+ hide_history_before?: Date;
12918
+
12469
12919
  reject_invite?: boolean;
12470
12920
 
12471
12921
  skip_push?: boolean;
12472
12922
 
12473
12923
  user_id?: string;
12474
12924
 
12925
+ add_filter_tags?: string[];
12926
+
12475
12927
  add_members?: ChannelMemberRequest[];
12476
12928
 
12477
12929
  add_moderators?: string[];
@@ -12482,9 +12934,11 @@ export interface UpdateChannelRequest {
12482
12934
 
12483
12935
  invites?: ChannelMemberRequest[];
12484
12936
 
12937
+ remove_filter_tags?: string[];
12938
+
12485
12939
  remove_members?: string[];
12486
12940
 
12487
- data?: ChannelInput;
12941
+ data?: ChannelInputRequest;
12488
12942
 
12489
12943
  message?: MessageRequest;
12490
12944
 
@@ -12645,6 +13099,28 @@ export interface UpdateChannelTypeResponse {
12645
13099
  automod_thresholds?: Thresholds;
12646
13100
  }
12647
13101
 
13102
+ export interface UpdateCollectionRequest {
13103
+ id: string;
13104
+
13105
+ name: string;
13106
+
13107
+ custom: Record<string, any>;
13108
+ }
13109
+
13110
+ export interface UpdateCollectionsRequest {
13111
+ collections: UpdateCollectionRequest[];
13112
+
13113
+ user_id?: string;
13114
+
13115
+ user?: UserRequest;
13116
+ }
13117
+
13118
+ export interface UpdateCollectionsResponse {
13119
+ duration: string;
13120
+
13121
+ collections: CollectionResponse[];
13122
+ }
13123
+
12648
13124
  export interface UpdateCommandRequest {
12649
13125
  description: string;
12650
13126
 
@@ -12954,6 +13430,44 @@ export interface UpdateReminderResponse {
12954
13430
  reminder: ReminderResponseData;
12955
13431
  }
12956
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
+
12957
13471
  export interface UpdateThreadPartialRequest {
12958
13472
  user_id?: string;
12959
13473
 
@@ -13064,6 +13578,16 @@ export interface UpsertActivitiesResponse {
13064
13578
  activities: ActivityResponse[];
13065
13579
  }
13066
13580
 
13581
+ export interface UpsertCollectionsRequest {
13582
+ collections: CollectionRequest[];
13583
+ }
13584
+
13585
+ export interface UpsertCollectionsResponse {
13586
+ duration: string;
13587
+
13588
+ collections: CollectionResponse[];
13589
+ }
13590
+
13067
13591
  export interface UpsertConfigRequest {
13068
13592
  key: string;
13069
13593
 
@@ -13212,43 +13736,27 @@ export interface UpsertPushTemplateResponse {
13212
13736
  }
13213
13737
 
13214
13738
  export interface User {
13215
- banned: boolean;
13216
-
13217
13739
  id: string;
13218
13740
 
13219
- online: boolean;
13220
-
13221
- role: string;
13222
-
13223
- custom: Record<string, any>;
13224
-
13225
- teams_role: Record<string, string>;
13226
-
13227
- avg_response_time?: number;
13228
-
13229
13741
  ban_expires?: Date;
13230
13742
 
13231
- created_at?: Date;
13232
-
13233
- deactivated_at?: Date;
13234
-
13235
- deleted_at?: Date;
13743
+ banned?: boolean;
13236
13744
 
13237
13745
  invisible?: boolean;
13238
13746
 
13239
13747
  language?: string;
13240
13748
 
13241
- last_active?: Date;
13242
-
13243
- last_engaged_at?: Date;
13244
-
13245
13749
  revoke_tokens_issued_before?: Date;
13246
13750
 
13247
- updated_at?: Date;
13751
+ role?: string;
13248
13752
 
13249
13753
  teams?: string[];
13250
13754
 
13755
+ custom?: Record<string, any>;
13756
+
13251
13757
  privacy_settings?: PrivacySettings;
13758
+
13759
+ teams_role?: Record<string, string>;
13252
13760
  }
13253
13761
 
13254
13762
  export interface UserBannedEvent {