@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.
- package/dist/index.cjs.js +214 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +214 -29
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +7 -2
- package/dist/src/gen/models/index.d.ts +295 -51
- package/dist/src/gen/video/CallApi.d.ts +2 -1
- package/dist/src/gen/video/VideoApi.d.ts +22 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +40 -2
- package/src/gen/feeds/FeedsApi.ts +4 -0
- package/src/gen/model-decoders/decoders.ts +97 -39
- package/src/gen/models/index.ts +489 -73
- package/src/gen/video/CallApi.ts +6 -0
- package/src/gen/video/VideoApi.ts +240 -0
|
@@ -284,6 +284,7 @@ export interface ActivityRequest {
|
|
|
284
284
|
parent_id?: string;
|
|
285
285
|
poll_id?: string;
|
|
286
286
|
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
287
|
+
skip_enrich_url?: boolean;
|
|
287
288
|
text?: string;
|
|
288
289
|
user_id?: string;
|
|
289
290
|
visibility?: 'public' | 'private' | 'tag';
|
|
@@ -384,6 +385,7 @@ export interface AddActivityRequest {
|
|
|
384
385
|
parent_id?: string;
|
|
385
386
|
poll_id?: string;
|
|
386
387
|
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
388
|
+
skip_enrich_url?: boolean;
|
|
387
389
|
text?: string;
|
|
388
390
|
user_id?: string;
|
|
389
391
|
visibility?: 'public' | 'private' | 'tag';
|
|
@@ -433,6 +435,7 @@ export interface AddCommentRequest {
|
|
|
433
435
|
create_notification_activity?: boolean;
|
|
434
436
|
id?: string;
|
|
435
437
|
parent_id?: string;
|
|
438
|
+
skip_enrich_url?: boolean;
|
|
436
439
|
skip_push?: boolean;
|
|
437
440
|
user_id?: string;
|
|
438
441
|
attachments?: Attachment[];
|
|
@@ -847,6 +850,7 @@ export interface BookmarkFolderResponse {
|
|
|
847
850
|
id: string;
|
|
848
851
|
name: string;
|
|
849
852
|
updated_at: Date;
|
|
853
|
+
user: UserResponseCommonFields;
|
|
850
854
|
custom?: Record<string, any>;
|
|
851
855
|
}
|
|
852
856
|
export interface BookmarkFolderUpdatedEvent {
|
|
@@ -861,7 +865,7 @@ export interface BookmarkResponse {
|
|
|
861
865
|
created_at: Date;
|
|
862
866
|
updated_at: Date;
|
|
863
867
|
activity: ActivityResponse;
|
|
864
|
-
user:
|
|
868
|
+
user: UserResponseCommonFields;
|
|
865
869
|
custom?: Record<string, any>;
|
|
866
870
|
folder?: BookmarkFolderResponse;
|
|
867
871
|
}
|
|
@@ -1330,6 +1334,7 @@ export interface CallStatsLocation {
|
|
|
1330
1334
|
city?: string;
|
|
1331
1335
|
continent?: string;
|
|
1332
1336
|
country?: string;
|
|
1337
|
+
country_iso_code?: string;
|
|
1333
1338
|
latitude?: number;
|
|
1334
1339
|
longitude?: number;
|
|
1335
1340
|
subdivision?: string;
|
|
@@ -1344,6 +1349,8 @@ export interface CallStatsParticipant {
|
|
|
1344
1349
|
export interface CallStatsParticipantCounts {
|
|
1345
1350
|
live_sessions: number;
|
|
1346
1351
|
participants: number;
|
|
1352
|
+
peak_concurrent_sessions: number;
|
|
1353
|
+
peak_concurrent_users: number;
|
|
1347
1354
|
publishers: number;
|
|
1348
1355
|
sessions: number;
|
|
1349
1356
|
}
|
|
@@ -1358,6 +1365,7 @@ export interface CallStatsParticipantSession {
|
|
|
1358
1365
|
current_sfu?: string;
|
|
1359
1366
|
distance_to_sfu_kilometers?: number;
|
|
1360
1367
|
ended_at?: Date;
|
|
1368
|
+
os?: string;
|
|
1361
1369
|
publisher_type?: string;
|
|
1362
1370
|
sdk?: string;
|
|
1363
1371
|
sdk_version?: string;
|
|
@@ -1467,12 +1475,18 @@ export interface CallsPerDayReport {
|
|
|
1467
1475
|
export interface CallsPerDayReportResponse {
|
|
1468
1476
|
daily: DailyAggregateCallsPerDayReportResponse[];
|
|
1469
1477
|
}
|
|
1478
|
+
export interface CampaignChannelMember {
|
|
1479
|
+
user_id: string;
|
|
1480
|
+
channel_role?: string;
|
|
1481
|
+
custom?: Record<string, any>;
|
|
1482
|
+
}
|
|
1470
1483
|
export interface CampaignChannelTemplate {
|
|
1471
1484
|
type: string;
|
|
1472
1485
|
custom: Record<string, any>;
|
|
1473
1486
|
id?: string;
|
|
1474
1487
|
team?: string;
|
|
1475
1488
|
members?: string[];
|
|
1489
|
+
members_template?: CampaignChannelMember[];
|
|
1476
1490
|
}
|
|
1477
1491
|
export interface CampaignCompletedEvent {
|
|
1478
1492
|
created_at: Date;
|
|
@@ -1483,6 +1497,7 @@ export interface CampaignCompletedEvent {
|
|
|
1483
1497
|
}
|
|
1484
1498
|
export interface CampaignMessageTemplate {
|
|
1485
1499
|
poll_id: string;
|
|
1500
|
+
searchable: boolean;
|
|
1486
1501
|
text: string;
|
|
1487
1502
|
attachments: Attachment[];
|
|
1488
1503
|
custom: Record<string, any>;
|
|
@@ -1553,6 +1568,7 @@ export interface Channel {
|
|
|
1553
1568
|
message_count_updated_at?: Date;
|
|
1554
1569
|
team?: string;
|
|
1555
1570
|
active_live_locations?: SharedLocation[];
|
|
1571
|
+
filter_tags?: string[];
|
|
1556
1572
|
invites?: ChannelMember[];
|
|
1557
1573
|
members?: ChannelMember[];
|
|
1558
1574
|
config?: ChannelConfig;
|
|
@@ -1592,7 +1608,7 @@ export interface ChannelConfig {
|
|
|
1592
1608
|
blocklist?: string;
|
|
1593
1609
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
1594
1610
|
partition_size?: number;
|
|
1595
|
-
partition_ttl?:
|
|
1611
|
+
partition_ttl?: string;
|
|
1596
1612
|
allowed_flag_reasons?: string[];
|
|
1597
1613
|
blocklists?: BlockListOptions[];
|
|
1598
1614
|
automod_thresholds?: Thresholds;
|
|
@@ -1690,35 +1706,48 @@ export interface ChannelInput {
|
|
|
1690
1706
|
frozen?: boolean;
|
|
1691
1707
|
team?: string;
|
|
1692
1708
|
truncated_by_id?: string;
|
|
1709
|
+
filter_tags?: string[];
|
|
1693
1710
|
invites?: ChannelMemberRequest[];
|
|
1694
1711
|
members?: ChannelMemberRequest[];
|
|
1695
1712
|
config_overrides?: ChannelConfig;
|
|
1696
1713
|
created_by?: UserRequest;
|
|
1697
1714
|
custom?: Record<string, any>;
|
|
1698
1715
|
}
|
|
1716
|
+
export interface ChannelInputRequest {
|
|
1717
|
+
auto_translation_enabled?: boolean;
|
|
1718
|
+
auto_translation_language?: string;
|
|
1719
|
+
disabled?: boolean;
|
|
1720
|
+
frozen?: boolean;
|
|
1721
|
+
team?: string;
|
|
1722
|
+
invites?: ChannelMember[];
|
|
1723
|
+
members?: ChannelMember[];
|
|
1724
|
+
config_overrides?: ConfigOverrides;
|
|
1725
|
+
created_by?: User;
|
|
1726
|
+
custom?: Record<string, any>;
|
|
1727
|
+
}
|
|
1699
1728
|
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
1729
|
archived_at?: Date;
|
|
1709
1730
|
ban_expires?: Date;
|
|
1731
|
+
banned?: boolean;
|
|
1710
1732
|
blocked?: boolean;
|
|
1733
|
+
channel_role?: string;
|
|
1734
|
+
created_at?: Date;
|
|
1711
1735
|
deleted_at?: Date;
|
|
1712
1736
|
hidden?: boolean;
|
|
1713
1737
|
invite_accepted_at?: Date;
|
|
1714
1738
|
invite_rejected_at?: Date;
|
|
1715
1739
|
invited?: boolean;
|
|
1740
|
+
is_global_banned?: boolean;
|
|
1716
1741
|
is_moderator?: boolean;
|
|
1742
|
+
notifications_muted?: boolean;
|
|
1717
1743
|
pinned_at?: Date;
|
|
1744
|
+
shadow_banned?: boolean;
|
|
1718
1745
|
status?: string;
|
|
1746
|
+
updated_at?: Date;
|
|
1719
1747
|
user_id?: string;
|
|
1720
1748
|
deleted_messages?: string[];
|
|
1721
1749
|
channel?: DenormalizedChannelFields;
|
|
1750
|
+
custom?: Record<string, any>;
|
|
1722
1751
|
user?: User;
|
|
1723
1752
|
}
|
|
1724
1753
|
export interface ChannelMemberLookup {
|
|
@@ -1818,6 +1847,10 @@ export interface ChannelPushPreferences {
|
|
|
1818
1847
|
chat_level?: string;
|
|
1819
1848
|
disabled_until?: Date;
|
|
1820
1849
|
}
|
|
1850
|
+
export interface ChannelPushPreferencesResponse {
|
|
1851
|
+
chat_level?: string;
|
|
1852
|
+
disabled_until?: Date;
|
|
1853
|
+
}
|
|
1821
1854
|
export interface ChannelResponse {
|
|
1822
1855
|
cid: string;
|
|
1823
1856
|
created_at: Date;
|
|
@@ -1841,6 +1874,7 @@ export interface ChannelResponse {
|
|
|
1841
1874
|
muted?: boolean;
|
|
1842
1875
|
team?: string;
|
|
1843
1876
|
truncated_at?: Date;
|
|
1877
|
+
filter_tags?: string[];
|
|
1844
1878
|
members?: ChannelMemberResponse[];
|
|
1845
1879
|
own_capabilities?: ChannelOwnCapability[];
|
|
1846
1880
|
config?: ChannelConfigWithInfo;
|
|
@@ -1863,7 +1897,7 @@ export interface ChannelStateResponse {
|
|
|
1863
1897
|
channel?: ChannelResponse;
|
|
1864
1898
|
draft?: DraftResponse;
|
|
1865
1899
|
membership?: ChannelMemberResponse;
|
|
1866
|
-
push_preferences?:
|
|
1900
|
+
push_preferences?: ChannelPushPreferencesResponse;
|
|
1867
1901
|
}
|
|
1868
1902
|
export interface ChannelStateResponseFields {
|
|
1869
1903
|
members: ChannelMemberResponse[];
|
|
@@ -1880,7 +1914,7 @@ export interface ChannelStateResponseFields {
|
|
|
1880
1914
|
channel?: ChannelResponse;
|
|
1881
1915
|
draft?: DraftResponse;
|
|
1882
1916
|
membership?: ChannelMemberResponse;
|
|
1883
|
-
push_preferences?:
|
|
1917
|
+
push_preferences?: ChannelPushPreferencesResponse;
|
|
1884
1918
|
}
|
|
1885
1919
|
export interface ChannelTruncatedEvent {
|
|
1886
1920
|
channel_id: string;
|
|
@@ -2060,12 +2094,12 @@ export interface CollectionRequest {
|
|
|
2060
2094
|
user_id?: string;
|
|
2061
2095
|
}
|
|
2062
2096
|
export interface CollectionResponse {
|
|
2063
|
-
created_at: Date;
|
|
2064
2097
|
id: string;
|
|
2065
2098
|
name: string;
|
|
2066
|
-
|
|
2067
|
-
|
|
2099
|
+
created_at?: Date;
|
|
2100
|
+
updated_at?: Date;
|
|
2068
2101
|
user_id?: string;
|
|
2102
|
+
custom?: Record<string, any>;
|
|
2069
2103
|
}
|
|
2070
2104
|
export interface Command {
|
|
2071
2105
|
args: string;
|
|
@@ -2169,8 +2203,6 @@ export interface CommentUpdatedEvent {
|
|
|
2169
2203
|
export interface CommitMessageRequest {
|
|
2170
2204
|
}
|
|
2171
2205
|
export interface ConfigOverrides {
|
|
2172
|
-
commands: string[];
|
|
2173
|
-
grants: Record<string, string[]>;
|
|
2174
2206
|
blocklist?: string;
|
|
2175
2207
|
blocklist_behavior?: 'flag' | 'block';
|
|
2176
2208
|
count_messages?: boolean;
|
|
@@ -2183,6 +2215,8 @@ export interface ConfigOverrides {
|
|
|
2183
2215
|
uploads?: boolean;
|
|
2184
2216
|
url_enrichment?: boolean;
|
|
2185
2217
|
user_message_reminders?: boolean;
|
|
2218
|
+
commands?: string[];
|
|
2219
|
+
grants?: Record<string, string[]>;
|
|
2186
2220
|
}
|
|
2187
2221
|
export interface ConfigResponse {
|
|
2188
2222
|
async: boolean;
|
|
@@ -2216,7 +2250,7 @@ export interface CreateBlockListRequest {
|
|
|
2216
2250
|
is_leet_check_enabled?: boolean;
|
|
2217
2251
|
is_plural_check_enabled?: boolean;
|
|
2218
2252
|
team?: string;
|
|
2219
|
-
type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
|
|
2253
|
+
type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'email_allowlist' | 'word';
|
|
2220
2254
|
}
|
|
2221
2255
|
export interface CreateBlockListResponse {
|
|
2222
2256
|
duration: string;
|
|
@@ -2452,6 +2486,14 @@ export interface CreateRoleResponse {
|
|
|
2452
2486
|
duration: string;
|
|
2453
2487
|
role: Role;
|
|
2454
2488
|
}
|
|
2489
|
+
export interface CreateSIPTrunkRequest {
|
|
2490
|
+
name: string;
|
|
2491
|
+
numbers: string[];
|
|
2492
|
+
}
|
|
2493
|
+
export interface CreateSIPTrunkResponse {
|
|
2494
|
+
duration: string;
|
|
2495
|
+
sip_trunk?: SIPTrunkResponse;
|
|
2496
|
+
}
|
|
2455
2497
|
export interface CustomActionRequest {
|
|
2456
2498
|
id?: string;
|
|
2457
2499
|
options?: Record<string, any>;
|
|
@@ -2677,6 +2719,12 @@ export interface DeleteRecordingResponse {
|
|
|
2677
2719
|
export interface DeleteReminderResponse {
|
|
2678
2720
|
duration: string;
|
|
2679
2721
|
}
|
|
2722
|
+
export interface DeleteSIPInboundRoutingRuleResponse {
|
|
2723
|
+
duration: string;
|
|
2724
|
+
}
|
|
2725
|
+
export interface DeleteSIPTrunkResponse {
|
|
2726
|
+
duration: string;
|
|
2727
|
+
}
|
|
2680
2728
|
export interface DeleteSegmentTargetsRequest {
|
|
2681
2729
|
target_ids: string[];
|
|
2682
2730
|
}
|
|
@@ -2704,8 +2752,12 @@ export interface DeleteUsersResponse {
|
|
|
2704
2752
|
duration: string;
|
|
2705
2753
|
task_id: string;
|
|
2706
2754
|
}
|
|
2755
|
+
export interface DeliveredMessagePayload {
|
|
2756
|
+
cid?: string;
|
|
2757
|
+
id?: string;
|
|
2758
|
+
}
|
|
2707
2759
|
export interface DeliveryReceipts {
|
|
2708
|
-
enabled
|
|
2760
|
+
enabled?: boolean;
|
|
2709
2761
|
}
|
|
2710
2762
|
export interface DeliveryReceiptsResponse {
|
|
2711
2763
|
enabled?: boolean;
|
|
@@ -2824,13 +2876,13 @@ export interface EnrichedActivity {
|
|
|
2824
2876
|
target?: Data;
|
|
2825
2877
|
}
|
|
2826
2878
|
export interface EnrichedCollectionResponse {
|
|
2827
|
-
created_at: Date;
|
|
2828
2879
|
id: string;
|
|
2829
2880
|
name: string;
|
|
2830
2881
|
status: 'ok' | 'notfound';
|
|
2831
|
-
|
|
2832
|
-
|
|
2882
|
+
created_at?: Date;
|
|
2883
|
+
updated_at?: Date;
|
|
2833
2884
|
user_id?: string;
|
|
2885
|
+
custom?: Record<string, any>;
|
|
2834
2886
|
}
|
|
2835
2887
|
export interface EnrichedReaction {
|
|
2836
2888
|
activity_id: string;
|
|
@@ -3211,6 +3263,14 @@ export interface FeedsPreferences {
|
|
|
3211
3263
|
reaction?: 'all' | 'none';
|
|
3212
3264
|
custom_activity_types?: Record<string, string>;
|
|
3213
3265
|
}
|
|
3266
|
+
export interface FeedsPreferencesResponse {
|
|
3267
|
+
comment?: string;
|
|
3268
|
+
comment_reaction?: string;
|
|
3269
|
+
follow?: string;
|
|
3270
|
+
mention?: string;
|
|
3271
|
+
reaction?: string;
|
|
3272
|
+
custom_activity_types?: Record<string, string>;
|
|
3273
|
+
}
|
|
3214
3274
|
export interface FeedsReactionResponse {
|
|
3215
3275
|
activity_id: string;
|
|
3216
3276
|
created_at: Date;
|
|
@@ -3241,6 +3301,10 @@ export interface FileUploadResponse {
|
|
|
3241
3301
|
file?: string;
|
|
3242
3302
|
thumb_url?: string;
|
|
3243
3303
|
}
|
|
3304
|
+
export interface FilterConfigResponse {
|
|
3305
|
+
llm_labels: string[];
|
|
3306
|
+
ai_text_labels?: string[];
|
|
3307
|
+
}
|
|
3244
3308
|
export interface FirebaseConfig {
|
|
3245
3309
|
apn_template?: string;
|
|
3246
3310
|
credentials_json?: string;
|
|
@@ -3734,7 +3798,7 @@ export interface GetRateLimitsResponse {
|
|
|
3734
3798
|
}
|
|
3735
3799
|
export interface GetReactionsResponse {
|
|
3736
3800
|
duration: string;
|
|
3737
|
-
reactions:
|
|
3801
|
+
reactions: ReactionResponse[];
|
|
3738
3802
|
}
|
|
3739
3803
|
export interface GetRepliesResponse {
|
|
3740
3804
|
duration: string;
|
|
@@ -4100,6 +4164,14 @@ export interface ListRolesResponse {
|
|
|
4100
4164
|
duration: string;
|
|
4101
4165
|
roles: Role[];
|
|
4102
4166
|
}
|
|
4167
|
+
export interface ListSIPInboundRoutingRuleResponse {
|
|
4168
|
+
duration: string;
|
|
4169
|
+
sip_inbound_routing_rules: SIPInboundRoutingRuleResponse[];
|
|
4170
|
+
}
|
|
4171
|
+
export interface ListSIPTrunksResponse {
|
|
4172
|
+
duration: string;
|
|
4173
|
+
sip_trunks: SIPTrunkResponse[];
|
|
4174
|
+
}
|
|
4103
4175
|
export interface ListTranscriptionsResponse {
|
|
4104
4176
|
duration: string;
|
|
4105
4177
|
transcriptions: CallTranscription[];
|
|
@@ -4118,6 +4190,12 @@ export interface MarkChannelsReadRequest {
|
|
|
4118
4190
|
read_by_channel?: Record<string, string>;
|
|
4119
4191
|
user?: UserRequest;
|
|
4120
4192
|
}
|
|
4193
|
+
export interface MarkDeliveredRequest {
|
|
4194
|
+
latest_delivered_messages?: DeliveredMessagePayload[];
|
|
4195
|
+
}
|
|
4196
|
+
export interface MarkDeliveredResponse {
|
|
4197
|
+
duration: string;
|
|
4198
|
+
}
|
|
4121
4199
|
export interface MarkReadRequest {
|
|
4122
4200
|
message_id?: string;
|
|
4123
4201
|
thread_id?: string;
|
|
@@ -4134,6 +4212,7 @@ export interface MarkReviewedRequest {
|
|
|
4134
4212
|
}
|
|
4135
4213
|
export interface MarkUnreadRequest {
|
|
4136
4214
|
message_id?: string;
|
|
4215
|
+
message_timestamp?: Date;
|
|
4137
4216
|
thread_id?: string;
|
|
4138
4217
|
user_id?: string;
|
|
4139
4218
|
user?: UserRequest;
|
|
@@ -4522,6 +4601,11 @@ export interface MessageWithChannelResponse {
|
|
|
4522
4601
|
reminder?: ReminderResponseData;
|
|
4523
4602
|
shared_location?: SharedLocationResponseData;
|
|
4524
4603
|
}
|
|
4604
|
+
export interface MetricDescriptor {
|
|
4605
|
+
label: string;
|
|
4606
|
+
description?: string;
|
|
4607
|
+
unit?: string;
|
|
4608
|
+
}
|
|
4525
4609
|
export interface MetricThreshold {
|
|
4526
4610
|
level: string;
|
|
4527
4611
|
operator: string;
|
|
@@ -4700,6 +4784,7 @@ export interface NoiseCancellationSettings {
|
|
|
4700
4784
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
4701
4785
|
}
|
|
4702
4786
|
export interface NotificationConfig {
|
|
4787
|
+
deduplication_window?: string;
|
|
4703
4788
|
track_read?: boolean;
|
|
4704
4789
|
track_seen?: boolean;
|
|
4705
4790
|
}
|
|
@@ -4879,7 +4964,7 @@ export interface OwnUserResponse {
|
|
|
4879
4964
|
blocked_user_ids?: string[];
|
|
4880
4965
|
latest_hidden_channels?: string[];
|
|
4881
4966
|
privacy_settings?: PrivacySettingsResponse;
|
|
4882
|
-
push_preferences?:
|
|
4967
|
+
push_preferences?: PushPreferencesResponse;
|
|
4883
4968
|
teams_role?: Record<string, string>;
|
|
4884
4969
|
total_unread_count_by_team?: Record<string, number>;
|
|
4885
4970
|
}
|
|
@@ -4919,13 +5004,17 @@ export interface ParticipantReportResponse {
|
|
|
4919
5004
|
subscribers?: SubscriberStatsResponse;
|
|
4920
5005
|
}
|
|
4921
5006
|
export interface ParticipantSeriesPublisherStats {
|
|
5007
|
+
global_metrics_order?: string[];
|
|
4922
5008
|
global?: Record<string, number[][]>;
|
|
5009
|
+
global_meta?: Record<string, MetricDescriptor>;
|
|
4923
5010
|
global_thresholds?: Record<string, MetricThreshold[]>;
|
|
4924
5011
|
tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
|
|
4925
5012
|
}
|
|
4926
5013
|
export interface ParticipantSeriesSubscriberStats {
|
|
5014
|
+
global_metrics_order?: string[];
|
|
4927
5015
|
subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[];
|
|
4928
5016
|
global?: Record<string, number[][]>;
|
|
5017
|
+
global_meta?: Record<string, MetricDescriptor>;
|
|
4929
5018
|
global_thresholds?: Record<string, MetricThreshold[]>;
|
|
4930
5019
|
}
|
|
4931
5020
|
export interface ParticipantSeriesSubscriptionTrackMetrics {
|
|
@@ -4946,11 +5035,15 @@ export interface ParticipantSeriesTrackMetrics {
|
|
|
4946
5035
|
label?: string;
|
|
4947
5036
|
rid?: string;
|
|
4948
5037
|
track_type?: string;
|
|
5038
|
+
metrics_order?: string[];
|
|
4949
5039
|
metrics?: Record<string, number[][]>;
|
|
5040
|
+
metrics_meta?: Record<string, MetricDescriptor>;
|
|
4950
5041
|
thresholds?: Record<string, MetricThreshold[]>;
|
|
4951
5042
|
}
|
|
4952
5043
|
export interface ParticipantSeriesUserStats {
|
|
5044
|
+
metrics_order?: string[];
|
|
4953
5045
|
metrics?: Record<string, number[][]>;
|
|
5046
|
+
metrics_meta?: Record<string, MetricDescriptor>;
|
|
4954
5047
|
thresholds?: Record<string, MetricThreshold[]>;
|
|
4955
5048
|
}
|
|
4956
5049
|
export interface PendingMessageEvent {
|
|
@@ -5216,6 +5309,13 @@ export interface PushPreferences {
|
|
|
5216
5309
|
feeds_level?: string;
|
|
5217
5310
|
feeds_preferences?: FeedsPreferences;
|
|
5218
5311
|
}
|
|
5312
|
+
export interface PushPreferencesResponse {
|
|
5313
|
+
call_level?: string;
|
|
5314
|
+
chat_level?: string;
|
|
5315
|
+
disabled_until?: Date;
|
|
5316
|
+
feeds_level?: string;
|
|
5317
|
+
feeds_preferences?: FeedsPreferencesResponse;
|
|
5318
|
+
}
|
|
5219
5319
|
export interface PushProvider {
|
|
5220
5320
|
created_at: Date;
|
|
5221
5321
|
name: string;
|
|
@@ -5756,6 +5856,7 @@ export interface QueryReviewQueueResponse {
|
|
|
5756
5856
|
stats: Record<string, any>;
|
|
5757
5857
|
next?: string;
|
|
5758
5858
|
prev?: string;
|
|
5859
|
+
filter_config?: FilterConfigResponse;
|
|
5759
5860
|
}
|
|
5760
5861
|
export interface QuerySegmentTargetsRequest {
|
|
5761
5862
|
limit?: number;
|
|
@@ -5959,7 +6060,7 @@ export interface ReadCollectionsResponse {
|
|
|
5959
6060
|
collections: CollectionResponse[];
|
|
5960
6061
|
}
|
|
5961
6062
|
export interface ReadReceipts {
|
|
5962
|
-
enabled
|
|
6063
|
+
enabled?: boolean;
|
|
5963
6064
|
}
|
|
5964
6065
|
export interface ReadReceiptsResponse {
|
|
5965
6066
|
enabled?: boolean;
|
|
@@ -6047,8 +6148,8 @@ export interface ReminderResponseData {
|
|
|
6047
6148
|
user_id: string;
|
|
6048
6149
|
remind_at?: Date;
|
|
6049
6150
|
channel?: ChannelResponse;
|
|
6050
|
-
message?:
|
|
6051
|
-
user?:
|
|
6151
|
+
message?: MessageResponse;
|
|
6152
|
+
user?: UserResponse;
|
|
6052
6153
|
}
|
|
6053
6154
|
export interface ReminderUpdatedEvent {
|
|
6054
6155
|
cid: string;
|
|
@@ -6079,6 +6180,18 @@ export interface ReportResponse {
|
|
|
6079
6180
|
participants: ParticipantReportResponse;
|
|
6080
6181
|
user_ratings: UserRatingReportResponse;
|
|
6081
6182
|
}
|
|
6183
|
+
export interface ResolveSipInboundRequest {
|
|
6184
|
+
sip_caller_number: string;
|
|
6185
|
+
sip_trunk_number: string;
|
|
6186
|
+
challenge: SIPChallenge;
|
|
6187
|
+
sip_headers?: Record<string, string>;
|
|
6188
|
+
}
|
|
6189
|
+
export interface ResolveSipInboundResponse {
|
|
6190
|
+
duration: string;
|
|
6191
|
+
credentials: SipInboundCredentials;
|
|
6192
|
+
sip_routing_rule?: SIPInboundRoutingRuleResponse;
|
|
6193
|
+
sip_trunk?: SIPTrunkResponse;
|
|
6194
|
+
}
|
|
6082
6195
|
export interface Response {
|
|
6083
6196
|
duration: string;
|
|
6084
6197
|
}
|
|
@@ -6139,6 +6252,14 @@ export interface ReviewQueueItemUpdatedEvent {
|
|
|
6139
6252
|
action?: ActionLogResponse;
|
|
6140
6253
|
review_queue_item?: ReviewQueueItemResponse;
|
|
6141
6254
|
}
|
|
6255
|
+
export interface RingCallRequest {
|
|
6256
|
+
video?: boolean;
|
|
6257
|
+
members_ids?: string[];
|
|
6258
|
+
}
|
|
6259
|
+
export interface RingCallResponse {
|
|
6260
|
+
duration: string;
|
|
6261
|
+
members_ids: string[];
|
|
6262
|
+
}
|
|
6142
6263
|
export interface RingSettings {
|
|
6143
6264
|
auto_cancel_timeout_ms: number;
|
|
6144
6265
|
incoming_call_timeout_ms: number;
|
|
@@ -6209,6 +6330,108 @@ export interface SDKUsageReport {
|
|
|
6209
6330
|
export interface SDKUsageReportResponse {
|
|
6210
6331
|
daily: DailyAggregateSDKUsageReportResponse[];
|
|
6211
6332
|
}
|
|
6333
|
+
export interface SIPCallConfigsRequest {
|
|
6334
|
+
custom_data?: Record<string, any>;
|
|
6335
|
+
}
|
|
6336
|
+
export interface SIPCallConfigsResponse {
|
|
6337
|
+
custom_data: Record<string, any>;
|
|
6338
|
+
}
|
|
6339
|
+
export interface SIPCallerConfigsRequest {
|
|
6340
|
+
id: string;
|
|
6341
|
+
custom_data?: Record<string, any>;
|
|
6342
|
+
}
|
|
6343
|
+
export interface SIPCallerConfigsResponse {
|
|
6344
|
+
id: string;
|
|
6345
|
+
custom_data: Record<string, any>;
|
|
6346
|
+
}
|
|
6347
|
+
export interface SIPChallenge {
|
|
6348
|
+
a1?: string;
|
|
6349
|
+
algorithm?: string;
|
|
6350
|
+
charset?: string;
|
|
6351
|
+
cnonce?: string;
|
|
6352
|
+
method?: string;
|
|
6353
|
+
nc?: string;
|
|
6354
|
+
nonce?: string;
|
|
6355
|
+
opaque?: string;
|
|
6356
|
+
realm?: string;
|
|
6357
|
+
response?: string;
|
|
6358
|
+
stale?: boolean;
|
|
6359
|
+
uri?: string;
|
|
6360
|
+
userhash?: boolean;
|
|
6361
|
+
username?: string;
|
|
6362
|
+
domain?: string[];
|
|
6363
|
+
qop?: string[];
|
|
6364
|
+
}
|
|
6365
|
+
export interface SIPDirectRoutingRuleCallConfigsRequest {
|
|
6366
|
+
call_id: string;
|
|
6367
|
+
call_type: string;
|
|
6368
|
+
}
|
|
6369
|
+
export interface SIPDirectRoutingRuleCallConfigsResponse {
|
|
6370
|
+
call_id: string;
|
|
6371
|
+
call_type: string;
|
|
6372
|
+
}
|
|
6373
|
+
export interface SIPInboundRoutingRulePinConfigsRequest {
|
|
6374
|
+
custom_webhook_url?: string;
|
|
6375
|
+
pin_failed_attempt_prompt?: string;
|
|
6376
|
+
pin_hangup_prompt?: string;
|
|
6377
|
+
pin_prompt?: string;
|
|
6378
|
+
pin_success_prompt?: string;
|
|
6379
|
+
}
|
|
6380
|
+
export interface SIPInboundRoutingRulePinConfigsResponse {
|
|
6381
|
+
custom_webhook_url?: string;
|
|
6382
|
+
pin_failed_attempt_prompt?: string;
|
|
6383
|
+
pin_hangup_prompt?: string;
|
|
6384
|
+
pin_prompt?: string;
|
|
6385
|
+
pin_success_prompt?: string;
|
|
6386
|
+
}
|
|
6387
|
+
export interface SIPInboundRoutingRuleRequest {
|
|
6388
|
+
name: string;
|
|
6389
|
+
trunk_ids: string[];
|
|
6390
|
+
caller_configs: SIPCallerConfigsRequest;
|
|
6391
|
+
called_numbers?: string[];
|
|
6392
|
+
caller_numbers?: string[];
|
|
6393
|
+
call_configs?: SIPCallConfigsRequest;
|
|
6394
|
+
direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
|
|
6395
|
+
pin_protection_configs?: SIPPinProtectionConfigsRequest;
|
|
6396
|
+
pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
|
|
6397
|
+
}
|
|
6398
|
+
export interface SIPInboundRoutingRuleResponse {
|
|
6399
|
+
created_at: Date;
|
|
6400
|
+
duration: string;
|
|
6401
|
+
id: string;
|
|
6402
|
+
name: string;
|
|
6403
|
+
updated_at: Date;
|
|
6404
|
+
called_numbers: string[];
|
|
6405
|
+
trunk_ids: string[];
|
|
6406
|
+
caller_numbers?: string[];
|
|
6407
|
+
call_configs?: SIPCallConfigsResponse;
|
|
6408
|
+
caller_configs?: SIPCallerConfigsResponse;
|
|
6409
|
+
direct_routing_configs?: SIPDirectRoutingRuleCallConfigsResponse;
|
|
6410
|
+
pin_protection_configs?: SIPPinProtectionConfigsResponse;
|
|
6411
|
+
pin_routing_configs?: SIPInboundRoutingRulePinConfigsResponse;
|
|
6412
|
+
}
|
|
6413
|
+
export interface SIPPinProtectionConfigsRequest {
|
|
6414
|
+
default_pin?: string;
|
|
6415
|
+
enabled?: boolean;
|
|
6416
|
+
max_attempts?: number;
|
|
6417
|
+
required_pin_digits?: number;
|
|
6418
|
+
}
|
|
6419
|
+
export interface SIPPinProtectionConfigsResponse {
|
|
6420
|
+
enabled: boolean;
|
|
6421
|
+
default_pin?: string;
|
|
6422
|
+
max_attempts?: number;
|
|
6423
|
+
required_pin_digits?: number;
|
|
6424
|
+
}
|
|
6425
|
+
export interface SIPTrunkResponse {
|
|
6426
|
+
created_at: Date;
|
|
6427
|
+
id: string;
|
|
6428
|
+
name: string;
|
|
6429
|
+
password: string;
|
|
6430
|
+
updated_at: Date;
|
|
6431
|
+
uri: string;
|
|
6432
|
+
username: string;
|
|
6433
|
+
numbers: string[];
|
|
6434
|
+
}
|
|
6212
6435
|
export interface SRTIngress {
|
|
6213
6436
|
address: string;
|
|
6214
6437
|
}
|
|
@@ -6398,17 +6621,10 @@ export interface ShadowBlockActionRequest {
|
|
|
6398
6621
|
reason?: string;
|
|
6399
6622
|
}
|
|
6400
6623
|
export interface SharedLocation {
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
created_by_device_id
|
|
6404
|
-
message_id: string;
|
|
6405
|
-
updated_at: Date;
|
|
6406
|
-
user_id: string;
|
|
6624
|
+
latitude: number;
|
|
6625
|
+
longitude: number;
|
|
6626
|
+
created_by_device_id?: string;
|
|
6407
6627
|
end_at?: Date;
|
|
6408
|
-
latitude?: number;
|
|
6409
|
-
longitude?: number;
|
|
6410
|
-
channel?: Channel;
|
|
6411
|
-
message?: Message;
|
|
6412
6628
|
}
|
|
6413
6629
|
export interface SharedLocationResponse {
|
|
6414
6630
|
channel_cid: string;
|
|
@@ -6452,6 +6668,14 @@ export interface SingleFollowResponse {
|
|
|
6452
6668
|
duration: string;
|
|
6453
6669
|
follow: FollowResponse;
|
|
6454
6670
|
}
|
|
6671
|
+
export interface SipInboundCredentials {
|
|
6672
|
+
call_id: string;
|
|
6673
|
+
call_type: string;
|
|
6674
|
+
token: string;
|
|
6675
|
+
user_id: string;
|
|
6676
|
+
call_custom_data: Record<string, any>;
|
|
6677
|
+
user_custom_data: Record<string, any>;
|
|
6678
|
+
}
|
|
6455
6679
|
export interface SortParam {
|
|
6456
6680
|
direction?: number;
|
|
6457
6681
|
field?: string;
|
|
@@ -6798,7 +7022,7 @@ export interface TruncateChannelResponse {
|
|
|
6798
7022
|
message?: MessageResponse;
|
|
6799
7023
|
}
|
|
6800
7024
|
export interface TypingIndicators {
|
|
6801
|
-
enabled
|
|
7025
|
+
enabled?: boolean;
|
|
6802
7026
|
}
|
|
6803
7027
|
export interface TypingIndicatorsResponse {
|
|
6804
7028
|
enabled?: boolean;
|
|
@@ -6918,6 +7142,7 @@ export interface UpdateActivityRequest {
|
|
|
6918
7142
|
expires_at?: Date;
|
|
6919
7143
|
poll_id?: string;
|
|
6920
7144
|
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
7145
|
+
skip_enrich_url?: boolean;
|
|
6921
7146
|
text?: string;
|
|
6922
7147
|
user_id?: string;
|
|
6923
7148
|
visibility?: string;
|
|
@@ -7065,16 +7290,19 @@ export interface UpdateChannelRequest {
|
|
|
7065
7290
|
accept_invite?: boolean;
|
|
7066
7291
|
cooldown?: number;
|
|
7067
7292
|
hide_history?: boolean;
|
|
7293
|
+
hide_history_before?: Date;
|
|
7068
7294
|
reject_invite?: boolean;
|
|
7069
7295
|
skip_push?: boolean;
|
|
7070
7296
|
user_id?: string;
|
|
7297
|
+
add_filter_tags?: string[];
|
|
7071
7298
|
add_members?: ChannelMemberRequest[];
|
|
7072
7299
|
add_moderators?: string[];
|
|
7073
7300
|
assign_roles?: ChannelMemberRequest[];
|
|
7074
7301
|
demote_moderators?: string[];
|
|
7075
7302
|
invites?: ChannelMemberRequest[];
|
|
7303
|
+
remove_filter_tags?: string[];
|
|
7076
7304
|
remove_members?: string[];
|
|
7077
|
-
data?:
|
|
7305
|
+
data?: ChannelInputRequest;
|
|
7078
7306
|
message?: MessageRequest;
|
|
7079
7307
|
user?: UserRequest;
|
|
7080
7308
|
}
|
|
@@ -7183,6 +7411,7 @@ export interface UpdateCommandResponse {
|
|
|
7183
7411
|
}
|
|
7184
7412
|
export interface UpdateCommentRequest {
|
|
7185
7413
|
comment?: string;
|
|
7414
|
+
skip_enrich_url?: boolean;
|
|
7186
7415
|
skip_push?: boolean;
|
|
7187
7416
|
user_id?: string;
|
|
7188
7417
|
custom?: Record<string, any>;
|
|
@@ -7356,6 +7585,29 @@ export interface UpdateReminderResponse {
|
|
|
7356
7585
|
duration: string;
|
|
7357
7586
|
reminder: ReminderResponseData;
|
|
7358
7587
|
}
|
|
7588
|
+
export interface UpdateSIPInboundRoutingRuleRequest {
|
|
7589
|
+
name: string;
|
|
7590
|
+
called_numbers: string[];
|
|
7591
|
+
trunk_ids: string[];
|
|
7592
|
+
caller_configs: SIPCallerConfigsRequest;
|
|
7593
|
+
caller_numbers?: string[];
|
|
7594
|
+
call_configs?: SIPCallConfigsRequest;
|
|
7595
|
+
direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
|
|
7596
|
+
pin_protection_configs?: SIPPinProtectionConfigsRequest;
|
|
7597
|
+
pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
|
|
7598
|
+
}
|
|
7599
|
+
export interface UpdateSIPInboundRoutingRuleResponse {
|
|
7600
|
+
duration: string;
|
|
7601
|
+
sip_inbound_routing_rule?: SIPInboundRoutingRuleResponse;
|
|
7602
|
+
}
|
|
7603
|
+
export interface UpdateSIPTrunkRequest {
|
|
7604
|
+
name: string;
|
|
7605
|
+
numbers: string[];
|
|
7606
|
+
}
|
|
7607
|
+
export interface UpdateSIPTrunkResponse {
|
|
7608
|
+
duration: string;
|
|
7609
|
+
sip_trunk?: SIPTrunkResponse;
|
|
7610
|
+
}
|
|
7359
7611
|
export interface UpdateThreadPartialRequest {
|
|
7360
7612
|
user_id?: string;
|
|
7361
7613
|
unset?: string[];
|
|
@@ -7513,25 +7765,17 @@ export interface UpsertPushTemplateResponse {
|
|
|
7513
7765
|
template?: PushTemplate;
|
|
7514
7766
|
}
|
|
7515
7767
|
export interface User {
|
|
7516
|
-
banned: boolean;
|
|
7517
7768
|
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
7769
|
ban_expires?: Date;
|
|
7524
|
-
|
|
7525
|
-
deactivated_at?: Date;
|
|
7526
|
-
deleted_at?: Date;
|
|
7770
|
+
banned?: boolean;
|
|
7527
7771
|
invisible?: boolean;
|
|
7528
7772
|
language?: string;
|
|
7529
|
-
last_active?: Date;
|
|
7530
|
-
last_engaged_at?: Date;
|
|
7531
7773
|
revoke_tokens_issued_before?: Date;
|
|
7532
|
-
|
|
7774
|
+
role?: string;
|
|
7533
7775
|
teams?: string[];
|
|
7776
|
+
custom?: Record<string, any>;
|
|
7534
7777
|
privacy_settings?: PrivacySettings;
|
|
7778
|
+
teams_role?: Record<string, string>;
|
|
7535
7779
|
}
|
|
7536
7780
|
export interface UserBannedEvent {
|
|
7537
7781
|
channel_id: string;
|