@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.
- package/dist/index.cjs.js +296 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +296 -29
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +7 -2
- package/dist/src/gen/feeds/FeedsApi.d.ts +11 -1
- package/dist/src/gen/models/index.d.ts +347 -45
- 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 +117 -0
- package/src/gen/model-decoders/decoders.ts +145 -39
- package/src/gen/models/index.ts +573 -65
- package/src/gen/video/CallApi.ts +6 -0
- package/src/gen/video/VideoApi.ts +240 -0
|
@@ -289,6 +289,7 @@ export interface ActivityRequest {
|
|
|
289
289
|
visibility?: 'public' | 'private' | 'tag';
|
|
290
290
|
visibility_tag?: string;
|
|
291
291
|
attachments?: Attachment[];
|
|
292
|
+
collection_refs?: string[];
|
|
292
293
|
filter_tags?: string[];
|
|
293
294
|
interest_tags?: string[];
|
|
294
295
|
mentioned_user_ids?: string[];
|
|
@@ -320,6 +321,7 @@ export interface ActivityResponse {
|
|
|
320
321
|
mentioned_users: UserResponse[];
|
|
321
322
|
own_bookmarks: BookmarkResponse[];
|
|
322
323
|
own_reactions: FeedsReactionResponse[];
|
|
324
|
+
collections: Record<string, EnrichedCollectionResponse>;
|
|
323
325
|
custom: Record<string, any>;
|
|
324
326
|
reaction_groups: Record<string, ReactionGroupResponse>;
|
|
325
327
|
search_data: Record<string, any>;
|
|
@@ -387,6 +389,7 @@ export interface AddActivityRequest {
|
|
|
387
389
|
visibility?: 'public' | 'private' | 'tag';
|
|
388
390
|
visibility_tag?: string;
|
|
389
391
|
attachments?: Attachment[];
|
|
392
|
+
collection_refs?: string[];
|
|
390
393
|
filter_tags?: string[];
|
|
391
394
|
interest_tags?: string[];
|
|
392
395
|
mentioned_user_ids?: string[];
|
|
@@ -844,6 +847,7 @@ export interface BookmarkFolderResponse {
|
|
|
844
847
|
id: string;
|
|
845
848
|
name: string;
|
|
846
849
|
updated_at: Date;
|
|
850
|
+
user: UserResponseCommonFields;
|
|
847
851
|
custom?: Record<string, any>;
|
|
848
852
|
}
|
|
849
853
|
export interface BookmarkFolderUpdatedEvent {
|
|
@@ -858,7 +862,7 @@ export interface BookmarkResponse {
|
|
|
858
862
|
created_at: Date;
|
|
859
863
|
updated_at: Date;
|
|
860
864
|
activity: ActivityResponse;
|
|
861
|
-
user:
|
|
865
|
+
user: UserResponseCommonFields;
|
|
862
866
|
custom?: Record<string, any>;
|
|
863
867
|
folder?: BookmarkFolderResponse;
|
|
864
868
|
}
|
|
@@ -1327,6 +1331,7 @@ export interface CallStatsLocation {
|
|
|
1327
1331
|
city?: string;
|
|
1328
1332
|
continent?: string;
|
|
1329
1333
|
country?: string;
|
|
1334
|
+
country_iso_code?: string;
|
|
1330
1335
|
latitude?: number;
|
|
1331
1336
|
longitude?: number;
|
|
1332
1337
|
subdivision?: string;
|
|
@@ -1341,6 +1346,8 @@ export interface CallStatsParticipant {
|
|
|
1341
1346
|
export interface CallStatsParticipantCounts {
|
|
1342
1347
|
live_sessions: number;
|
|
1343
1348
|
participants: number;
|
|
1349
|
+
peak_concurrent_sessions: number;
|
|
1350
|
+
peak_concurrent_users: number;
|
|
1344
1351
|
publishers: number;
|
|
1345
1352
|
sessions: number;
|
|
1346
1353
|
}
|
|
@@ -1355,6 +1362,7 @@ export interface CallStatsParticipantSession {
|
|
|
1355
1362
|
current_sfu?: string;
|
|
1356
1363
|
distance_to_sfu_kilometers?: number;
|
|
1357
1364
|
ended_at?: Date;
|
|
1365
|
+
os?: string;
|
|
1358
1366
|
publisher_type?: string;
|
|
1359
1367
|
sdk?: string;
|
|
1360
1368
|
sdk_version?: string;
|
|
@@ -1464,12 +1472,18 @@ export interface CallsPerDayReport {
|
|
|
1464
1472
|
export interface CallsPerDayReportResponse {
|
|
1465
1473
|
daily: DailyAggregateCallsPerDayReportResponse[];
|
|
1466
1474
|
}
|
|
1475
|
+
export interface CampaignChannelMember {
|
|
1476
|
+
user_id: string;
|
|
1477
|
+
channel_role?: string;
|
|
1478
|
+
custom?: Record<string, any>;
|
|
1479
|
+
}
|
|
1467
1480
|
export interface CampaignChannelTemplate {
|
|
1468
1481
|
type: string;
|
|
1469
1482
|
custom: Record<string, any>;
|
|
1470
1483
|
id?: string;
|
|
1471
1484
|
team?: string;
|
|
1472
1485
|
members?: string[];
|
|
1486
|
+
members_template?: CampaignChannelMember[];
|
|
1473
1487
|
}
|
|
1474
1488
|
export interface CampaignCompletedEvent {
|
|
1475
1489
|
created_at: Date;
|
|
@@ -1480,6 +1494,7 @@ export interface CampaignCompletedEvent {
|
|
|
1480
1494
|
}
|
|
1481
1495
|
export interface CampaignMessageTemplate {
|
|
1482
1496
|
poll_id: string;
|
|
1497
|
+
searchable: boolean;
|
|
1483
1498
|
text: string;
|
|
1484
1499
|
attachments: Attachment[];
|
|
1485
1500
|
custom: Record<string, any>;
|
|
@@ -1550,6 +1565,7 @@ export interface Channel {
|
|
|
1550
1565
|
message_count_updated_at?: Date;
|
|
1551
1566
|
team?: string;
|
|
1552
1567
|
active_live_locations?: SharedLocation[];
|
|
1568
|
+
filter_tags?: string[];
|
|
1553
1569
|
invites?: ChannelMember[];
|
|
1554
1570
|
members?: ChannelMember[];
|
|
1555
1571
|
config?: ChannelConfig;
|
|
@@ -1589,7 +1605,7 @@ export interface ChannelConfig {
|
|
|
1589
1605
|
blocklist?: string;
|
|
1590
1606
|
blocklist_behavior?: 'flag' | 'block' | 'shadow_block';
|
|
1591
1607
|
partition_size?: number;
|
|
1592
|
-
partition_ttl?:
|
|
1608
|
+
partition_ttl?: string;
|
|
1593
1609
|
allowed_flag_reasons?: string[];
|
|
1594
1610
|
blocklists?: BlockListOptions[];
|
|
1595
1611
|
automod_thresholds?: Thresholds;
|
|
@@ -1687,35 +1703,48 @@ export interface ChannelInput {
|
|
|
1687
1703
|
frozen?: boolean;
|
|
1688
1704
|
team?: string;
|
|
1689
1705
|
truncated_by_id?: string;
|
|
1706
|
+
filter_tags?: string[];
|
|
1690
1707
|
invites?: ChannelMemberRequest[];
|
|
1691
1708
|
members?: ChannelMemberRequest[];
|
|
1692
1709
|
config_overrides?: ChannelConfig;
|
|
1693
1710
|
created_by?: UserRequest;
|
|
1694
1711
|
custom?: Record<string, any>;
|
|
1695
1712
|
}
|
|
1713
|
+
export interface ChannelInputRequest {
|
|
1714
|
+
auto_translation_enabled?: boolean;
|
|
1715
|
+
auto_translation_language?: string;
|
|
1716
|
+
disabled?: boolean;
|
|
1717
|
+
frozen?: boolean;
|
|
1718
|
+
team?: string;
|
|
1719
|
+
invites?: ChannelMember[];
|
|
1720
|
+
members?: ChannelMember[];
|
|
1721
|
+
config_overrides?: ConfigOverrides;
|
|
1722
|
+
created_by?: User;
|
|
1723
|
+
custom?: Record<string, any>;
|
|
1724
|
+
}
|
|
1696
1725
|
export interface ChannelMember {
|
|
1697
|
-
banned: boolean;
|
|
1698
|
-
channel_role: string;
|
|
1699
|
-
created_at: Date;
|
|
1700
|
-
is_global_banned: boolean;
|
|
1701
|
-
notifications_muted: boolean;
|
|
1702
|
-
shadow_banned: boolean;
|
|
1703
|
-
updated_at: Date;
|
|
1704
|
-
custom: Record<string, any>;
|
|
1705
1726
|
archived_at?: Date;
|
|
1706
1727
|
ban_expires?: Date;
|
|
1728
|
+
banned?: boolean;
|
|
1707
1729
|
blocked?: boolean;
|
|
1730
|
+
channel_role?: string;
|
|
1731
|
+
created_at?: Date;
|
|
1708
1732
|
deleted_at?: Date;
|
|
1709
1733
|
hidden?: boolean;
|
|
1710
1734
|
invite_accepted_at?: Date;
|
|
1711
1735
|
invite_rejected_at?: Date;
|
|
1712
1736
|
invited?: boolean;
|
|
1737
|
+
is_global_banned?: boolean;
|
|
1713
1738
|
is_moderator?: boolean;
|
|
1739
|
+
notifications_muted?: boolean;
|
|
1714
1740
|
pinned_at?: Date;
|
|
1741
|
+
shadow_banned?: boolean;
|
|
1715
1742
|
status?: string;
|
|
1743
|
+
updated_at?: Date;
|
|
1716
1744
|
user_id?: string;
|
|
1717
1745
|
deleted_messages?: string[];
|
|
1718
1746
|
channel?: DenormalizedChannelFields;
|
|
1747
|
+
custom?: Record<string, any>;
|
|
1719
1748
|
user?: User;
|
|
1720
1749
|
}
|
|
1721
1750
|
export interface ChannelMemberLookup {
|
|
@@ -1815,6 +1844,10 @@ export interface ChannelPushPreferences {
|
|
|
1815
1844
|
chat_level?: string;
|
|
1816
1845
|
disabled_until?: Date;
|
|
1817
1846
|
}
|
|
1847
|
+
export interface ChannelPushPreferencesResponse {
|
|
1848
|
+
chat_level?: string;
|
|
1849
|
+
disabled_until?: Date;
|
|
1850
|
+
}
|
|
1818
1851
|
export interface ChannelResponse {
|
|
1819
1852
|
cid: string;
|
|
1820
1853
|
created_at: Date;
|
|
@@ -1838,6 +1871,7 @@ export interface ChannelResponse {
|
|
|
1838
1871
|
muted?: boolean;
|
|
1839
1872
|
team?: string;
|
|
1840
1873
|
truncated_at?: Date;
|
|
1874
|
+
filter_tags?: string[];
|
|
1841
1875
|
members?: ChannelMemberResponse[];
|
|
1842
1876
|
own_capabilities?: ChannelOwnCapability[];
|
|
1843
1877
|
config?: ChannelConfigWithInfo;
|
|
@@ -1860,7 +1894,7 @@ export interface ChannelStateResponse {
|
|
|
1860
1894
|
channel?: ChannelResponse;
|
|
1861
1895
|
draft?: DraftResponse;
|
|
1862
1896
|
membership?: ChannelMemberResponse;
|
|
1863
|
-
push_preferences?:
|
|
1897
|
+
push_preferences?: ChannelPushPreferencesResponse;
|
|
1864
1898
|
}
|
|
1865
1899
|
export interface ChannelStateResponseFields {
|
|
1866
1900
|
members: ChannelMemberResponse[];
|
|
@@ -1877,7 +1911,7 @@ export interface ChannelStateResponseFields {
|
|
|
1877
1911
|
channel?: ChannelResponse;
|
|
1878
1912
|
draft?: DraftResponse;
|
|
1879
1913
|
membership?: ChannelMemberResponse;
|
|
1880
|
-
push_preferences?:
|
|
1914
|
+
push_preferences?: ChannelPushPreferencesResponse;
|
|
1881
1915
|
}
|
|
1882
1916
|
export interface ChannelTruncatedEvent {
|
|
1883
1917
|
channel_id: string;
|
|
@@ -2050,6 +2084,20 @@ export interface CollectUserFeedbackRequest {
|
|
|
2050
2084
|
export interface CollectUserFeedbackResponse {
|
|
2051
2085
|
duration: string;
|
|
2052
2086
|
}
|
|
2087
|
+
export interface CollectionRequest {
|
|
2088
|
+
name: string;
|
|
2089
|
+
custom: Record<string, any>;
|
|
2090
|
+
id?: string;
|
|
2091
|
+
user_id?: string;
|
|
2092
|
+
}
|
|
2093
|
+
export interface CollectionResponse {
|
|
2094
|
+
id: string;
|
|
2095
|
+
name: string;
|
|
2096
|
+
created_at?: Date;
|
|
2097
|
+
updated_at?: Date;
|
|
2098
|
+
user_id?: string;
|
|
2099
|
+
custom?: Record<string, any>;
|
|
2100
|
+
}
|
|
2053
2101
|
export interface Command {
|
|
2054
2102
|
args: string;
|
|
2055
2103
|
description: string;
|
|
@@ -2152,8 +2200,6 @@ export interface CommentUpdatedEvent {
|
|
|
2152
2200
|
export interface CommitMessageRequest {
|
|
2153
2201
|
}
|
|
2154
2202
|
export interface ConfigOverrides {
|
|
2155
|
-
commands: string[];
|
|
2156
|
-
grants: Record<string, string[]>;
|
|
2157
2203
|
blocklist?: string;
|
|
2158
2204
|
blocklist_behavior?: 'flag' | 'block';
|
|
2159
2205
|
count_messages?: boolean;
|
|
@@ -2166,6 +2212,8 @@ export interface ConfigOverrides {
|
|
|
2166
2212
|
uploads?: boolean;
|
|
2167
2213
|
url_enrichment?: boolean;
|
|
2168
2214
|
user_message_reminders?: boolean;
|
|
2215
|
+
commands?: string[];
|
|
2216
|
+
grants?: Record<string, string[]>;
|
|
2169
2217
|
}
|
|
2170
2218
|
export interface ConfigResponse {
|
|
2171
2219
|
async: boolean;
|
|
@@ -2199,7 +2247,7 @@ export interface CreateBlockListRequest {
|
|
|
2199
2247
|
is_leet_check_enabled?: boolean;
|
|
2200
2248
|
is_plural_check_enabled?: boolean;
|
|
2201
2249
|
team?: string;
|
|
2202
|
-
type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
|
|
2250
|
+
type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'email_allowlist' | 'word';
|
|
2203
2251
|
}
|
|
2204
2252
|
export interface CreateBlockListResponse {
|
|
2205
2253
|
duration: string;
|
|
@@ -2294,6 +2342,15 @@ export interface CreateChannelTypeResponse {
|
|
|
2294
2342
|
blocklists?: BlockListOptions[];
|
|
2295
2343
|
automod_thresholds?: Thresholds;
|
|
2296
2344
|
}
|
|
2345
|
+
export interface CreateCollectionsRequest {
|
|
2346
|
+
collections: CollectionRequest[];
|
|
2347
|
+
user_id?: string;
|
|
2348
|
+
user?: UserRequest;
|
|
2349
|
+
}
|
|
2350
|
+
export interface CreateCollectionsResponse {
|
|
2351
|
+
duration: string;
|
|
2352
|
+
collections: CollectionResponse[];
|
|
2353
|
+
}
|
|
2297
2354
|
export interface CreateCommandRequest {
|
|
2298
2355
|
description: string;
|
|
2299
2356
|
name: string;
|
|
@@ -2426,6 +2483,14 @@ export interface CreateRoleResponse {
|
|
|
2426
2483
|
duration: string;
|
|
2427
2484
|
role: Role;
|
|
2428
2485
|
}
|
|
2486
|
+
export interface CreateSIPTrunkRequest {
|
|
2487
|
+
name: string;
|
|
2488
|
+
numbers: string[];
|
|
2489
|
+
}
|
|
2490
|
+
export interface CreateSIPTrunkResponse {
|
|
2491
|
+
duration: string;
|
|
2492
|
+
sip_trunk?: SIPTrunkResponse;
|
|
2493
|
+
}
|
|
2429
2494
|
export interface CustomActionRequest {
|
|
2430
2495
|
id?: string;
|
|
2431
2496
|
options?: Record<string, any>;
|
|
@@ -2578,6 +2643,9 @@ export interface DeleteChannelsResultResponse {
|
|
|
2578
2643
|
status: string;
|
|
2579
2644
|
error?: string;
|
|
2580
2645
|
}
|
|
2646
|
+
export interface DeleteCollectionsResponse {
|
|
2647
|
+
duration: string;
|
|
2648
|
+
}
|
|
2581
2649
|
export interface DeleteCommandResponse {
|
|
2582
2650
|
duration: string;
|
|
2583
2651
|
name: string;
|
|
@@ -2648,6 +2716,12 @@ export interface DeleteRecordingResponse {
|
|
|
2648
2716
|
export interface DeleteReminderResponse {
|
|
2649
2717
|
duration: string;
|
|
2650
2718
|
}
|
|
2719
|
+
export interface DeleteSIPInboundRoutingRuleResponse {
|
|
2720
|
+
duration: string;
|
|
2721
|
+
}
|
|
2722
|
+
export interface DeleteSIPTrunkResponse {
|
|
2723
|
+
duration: string;
|
|
2724
|
+
}
|
|
2651
2725
|
export interface DeleteSegmentTargetsRequest {
|
|
2652
2726
|
target_ids: string[];
|
|
2653
2727
|
}
|
|
@@ -2675,8 +2749,12 @@ export interface DeleteUsersResponse {
|
|
|
2675
2749
|
duration: string;
|
|
2676
2750
|
task_id: string;
|
|
2677
2751
|
}
|
|
2752
|
+
export interface DeliveredMessagePayload {
|
|
2753
|
+
cid?: string;
|
|
2754
|
+
id?: string;
|
|
2755
|
+
}
|
|
2678
2756
|
export interface DeliveryReceipts {
|
|
2679
|
-
enabled
|
|
2757
|
+
enabled?: boolean;
|
|
2680
2758
|
}
|
|
2681
2759
|
export interface DeliveryReceiptsResponse {
|
|
2682
2760
|
enabled?: boolean;
|
|
@@ -2794,6 +2872,15 @@ export interface EnrichedActivity {
|
|
|
2794
2872
|
reaction_counts?: Record<string, number>;
|
|
2795
2873
|
target?: Data;
|
|
2796
2874
|
}
|
|
2875
|
+
export interface EnrichedCollectionResponse {
|
|
2876
|
+
id: string;
|
|
2877
|
+
name: string;
|
|
2878
|
+
status: 'ok' | 'notfound';
|
|
2879
|
+
created_at?: Date;
|
|
2880
|
+
updated_at?: Date;
|
|
2881
|
+
user_id?: string;
|
|
2882
|
+
custom?: Record<string, any>;
|
|
2883
|
+
}
|
|
2797
2884
|
export interface EnrichedReaction {
|
|
2798
2885
|
activity_id: string;
|
|
2799
2886
|
kind: string;
|
|
@@ -3173,6 +3260,14 @@ export interface FeedsPreferences {
|
|
|
3173
3260
|
reaction?: 'all' | 'none';
|
|
3174
3261
|
custom_activity_types?: Record<string, string>;
|
|
3175
3262
|
}
|
|
3263
|
+
export interface FeedsPreferencesResponse {
|
|
3264
|
+
comment?: string;
|
|
3265
|
+
comment_reaction?: string;
|
|
3266
|
+
follow?: string;
|
|
3267
|
+
mention?: string;
|
|
3268
|
+
reaction?: string;
|
|
3269
|
+
custom_activity_types?: Record<string, string>;
|
|
3270
|
+
}
|
|
3176
3271
|
export interface FeedsReactionResponse {
|
|
3177
3272
|
activity_id: string;
|
|
3178
3273
|
created_at: Date;
|
|
@@ -3203,6 +3298,10 @@ export interface FileUploadResponse {
|
|
|
3203
3298
|
file?: string;
|
|
3204
3299
|
thumb_url?: string;
|
|
3205
3300
|
}
|
|
3301
|
+
export interface FilterConfigResponse {
|
|
3302
|
+
llm_labels: string[];
|
|
3303
|
+
ai_text_labels?: string[];
|
|
3304
|
+
}
|
|
3206
3305
|
export interface FirebaseConfig {
|
|
3207
3306
|
apn_template?: string;
|
|
3208
3307
|
credentials_json?: string;
|
|
@@ -3696,7 +3795,7 @@ export interface GetRateLimitsResponse {
|
|
|
3696
3795
|
}
|
|
3697
3796
|
export interface GetReactionsResponse {
|
|
3698
3797
|
duration: string;
|
|
3699
|
-
reactions:
|
|
3798
|
+
reactions: ReactionResponse[];
|
|
3700
3799
|
}
|
|
3701
3800
|
export interface GetRepliesResponse {
|
|
3702
3801
|
duration: string;
|
|
@@ -4062,6 +4161,14 @@ export interface ListRolesResponse {
|
|
|
4062
4161
|
duration: string;
|
|
4063
4162
|
roles: Role[];
|
|
4064
4163
|
}
|
|
4164
|
+
export interface ListSIPInboundRoutingRuleResponse {
|
|
4165
|
+
duration: string;
|
|
4166
|
+
sip_inbound_routing_rules: SIPInboundRoutingRuleResponse[];
|
|
4167
|
+
}
|
|
4168
|
+
export interface ListSIPTrunksResponse {
|
|
4169
|
+
duration: string;
|
|
4170
|
+
sip_trunks: SIPTrunkResponse[];
|
|
4171
|
+
}
|
|
4065
4172
|
export interface ListTranscriptionsResponse {
|
|
4066
4173
|
duration: string;
|
|
4067
4174
|
transcriptions: CallTranscription[];
|
|
@@ -4080,6 +4187,12 @@ export interface MarkChannelsReadRequest {
|
|
|
4080
4187
|
read_by_channel?: Record<string, string>;
|
|
4081
4188
|
user?: UserRequest;
|
|
4082
4189
|
}
|
|
4190
|
+
export interface MarkDeliveredRequest {
|
|
4191
|
+
latest_delivered_messages?: DeliveredMessagePayload[];
|
|
4192
|
+
}
|
|
4193
|
+
export interface MarkDeliveredResponse {
|
|
4194
|
+
duration: string;
|
|
4195
|
+
}
|
|
4083
4196
|
export interface MarkReadRequest {
|
|
4084
4197
|
message_id?: string;
|
|
4085
4198
|
thread_id?: string;
|
|
@@ -4096,6 +4209,7 @@ export interface MarkReviewedRequest {
|
|
|
4096
4209
|
}
|
|
4097
4210
|
export interface MarkUnreadRequest {
|
|
4098
4211
|
message_id?: string;
|
|
4212
|
+
message_timestamp?: Date;
|
|
4099
4213
|
thread_id?: string;
|
|
4100
4214
|
user_id?: string;
|
|
4101
4215
|
user?: UserRequest;
|
|
@@ -4484,6 +4598,11 @@ export interface MessageWithChannelResponse {
|
|
|
4484
4598
|
reminder?: ReminderResponseData;
|
|
4485
4599
|
shared_location?: SharedLocationResponseData;
|
|
4486
4600
|
}
|
|
4601
|
+
export interface MetricDescriptor {
|
|
4602
|
+
label: string;
|
|
4603
|
+
description?: string;
|
|
4604
|
+
unit?: string;
|
|
4605
|
+
}
|
|
4487
4606
|
export interface MetricThreshold {
|
|
4488
4607
|
level: string;
|
|
4489
4608
|
operator: string;
|
|
@@ -4841,7 +4960,7 @@ export interface OwnUserResponse {
|
|
|
4841
4960
|
blocked_user_ids?: string[];
|
|
4842
4961
|
latest_hidden_channels?: string[];
|
|
4843
4962
|
privacy_settings?: PrivacySettingsResponse;
|
|
4844
|
-
push_preferences?:
|
|
4963
|
+
push_preferences?: PushPreferencesResponse;
|
|
4845
4964
|
teams_role?: Record<string, string>;
|
|
4846
4965
|
total_unread_count_by_team?: Record<string, number>;
|
|
4847
4966
|
}
|
|
@@ -4881,13 +5000,17 @@ export interface ParticipantReportResponse {
|
|
|
4881
5000
|
subscribers?: SubscriberStatsResponse;
|
|
4882
5001
|
}
|
|
4883
5002
|
export interface ParticipantSeriesPublisherStats {
|
|
5003
|
+
global_metrics_order?: string[];
|
|
4884
5004
|
global?: Record<string, number[][]>;
|
|
5005
|
+
global_meta?: Record<string, MetricDescriptor>;
|
|
4885
5006
|
global_thresholds?: Record<string, MetricThreshold[]>;
|
|
4886
5007
|
tracks?: Record<string, ParticipantSeriesTrackMetrics[]>;
|
|
4887
5008
|
}
|
|
4888
5009
|
export interface ParticipantSeriesSubscriberStats {
|
|
5010
|
+
global_metrics_order?: string[];
|
|
4889
5011
|
subscriptions?: ParticipantSeriesSubscriptionTrackMetrics[];
|
|
4890
5012
|
global?: Record<string, number[][]>;
|
|
5013
|
+
global_meta?: Record<string, MetricDescriptor>;
|
|
4891
5014
|
global_thresholds?: Record<string, MetricThreshold[]>;
|
|
4892
5015
|
}
|
|
4893
5016
|
export interface ParticipantSeriesSubscriptionTrackMetrics {
|
|
@@ -4908,11 +5031,15 @@ export interface ParticipantSeriesTrackMetrics {
|
|
|
4908
5031
|
label?: string;
|
|
4909
5032
|
rid?: string;
|
|
4910
5033
|
track_type?: string;
|
|
5034
|
+
metrics_order?: string[];
|
|
4911
5035
|
metrics?: Record<string, number[][]>;
|
|
5036
|
+
metrics_meta?: Record<string, MetricDescriptor>;
|
|
4912
5037
|
thresholds?: Record<string, MetricThreshold[]>;
|
|
4913
5038
|
}
|
|
4914
5039
|
export interface ParticipantSeriesUserStats {
|
|
5040
|
+
metrics_order?: string[];
|
|
4915
5041
|
metrics?: Record<string, number[][]>;
|
|
5042
|
+
metrics_meta?: Record<string, MetricDescriptor>;
|
|
4916
5043
|
thresholds?: Record<string, MetricThreshold[]>;
|
|
4917
5044
|
}
|
|
4918
5045
|
export interface PendingMessageEvent {
|
|
@@ -5178,6 +5305,13 @@ export interface PushPreferences {
|
|
|
5178
5305
|
feeds_level?: string;
|
|
5179
5306
|
feeds_preferences?: FeedsPreferences;
|
|
5180
5307
|
}
|
|
5308
|
+
export interface PushPreferencesResponse {
|
|
5309
|
+
call_level?: string;
|
|
5310
|
+
chat_level?: string;
|
|
5311
|
+
disabled_until?: Date;
|
|
5312
|
+
feeds_level?: string;
|
|
5313
|
+
feeds_preferences?: FeedsPreferencesResponse;
|
|
5314
|
+
}
|
|
5181
5315
|
export interface PushProvider {
|
|
5182
5316
|
created_at: Date;
|
|
5183
5317
|
name: string;
|
|
@@ -5718,6 +5852,7 @@ export interface QueryReviewQueueResponse {
|
|
|
5718
5852
|
stats: Record<string, any>;
|
|
5719
5853
|
next?: string;
|
|
5720
5854
|
prev?: string;
|
|
5855
|
+
filter_config?: FilterConfigResponse;
|
|
5721
5856
|
}
|
|
5722
5857
|
export interface QuerySegmentTargetsRequest {
|
|
5723
5858
|
limit?: number;
|
|
@@ -5916,8 +6051,12 @@ export interface ReactivateUsersResponse {
|
|
|
5916
6051
|
duration: string;
|
|
5917
6052
|
task_id: string;
|
|
5918
6053
|
}
|
|
6054
|
+
export interface ReadCollectionsResponse {
|
|
6055
|
+
duration: string;
|
|
6056
|
+
collections: CollectionResponse[];
|
|
6057
|
+
}
|
|
5919
6058
|
export interface ReadReceipts {
|
|
5920
|
-
enabled
|
|
6059
|
+
enabled?: boolean;
|
|
5921
6060
|
}
|
|
5922
6061
|
export interface ReadReceiptsResponse {
|
|
5923
6062
|
enabled?: boolean;
|
|
@@ -6005,8 +6144,8 @@ export interface ReminderResponseData {
|
|
|
6005
6144
|
user_id: string;
|
|
6006
6145
|
remind_at?: Date;
|
|
6007
6146
|
channel?: ChannelResponse;
|
|
6008
|
-
message?:
|
|
6009
|
-
user?:
|
|
6147
|
+
message?: MessageResponse;
|
|
6148
|
+
user?: UserResponse;
|
|
6010
6149
|
}
|
|
6011
6150
|
export interface ReminderUpdatedEvent {
|
|
6012
6151
|
cid: string;
|
|
@@ -6037,6 +6176,18 @@ export interface ReportResponse {
|
|
|
6037
6176
|
participants: ParticipantReportResponse;
|
|
6038
6177
|
user_ratings: UserRatingReportResponse;
|
|
6039
6178
|
}
|
|
6179
|
+
export interface ResolveSipInboundRequest {
|
|
6180
|
+
sip_caller_number: string;
|
|
6181
|
+
sip_trunk_number: string;
|
|
6182
|
+
challenge: SIPChallenge;
|
|
6183
|
+
sip_headers?: Record<string, string>;
|
|
6184
|
+
}
|
|
6185
|
+
export interface ResolveSipInboundResponse {
|
|
6186
|
+
duration: string;
|
|
6187
|
+
credentials: SipInboundCredentials;
|
|
6188
|
+
sip_routing_rule?: SIPInboundRoutingRuleResponse;
|
|
6189
|
+
sip_trunk?: SIPTrunkResponse;
|
|
6190
|
+
}
|
|
6040
6191
|
export interface Response {
|
|
6041
6192
|
duration: string;
|
|
6042
6193
|
}
|
|
@@ -6097,6 +6248,14 @@ export interface ReviewQueueItemUpdatedEvent {
|
|
|
6097
6248
|
action?: ActionLogResponse;
|
|
6098
6249
|
review_queue_item?: ReviewQueueItemResponse;
|
|
6099
6250
|
}
|
|
6251
|
+
export interface RingCallRequest {
|
|
6252
|
+
video?: boolean;
|
|
6253
|
+
members_ids?: string[];
|
|
6254
|
+
}
|
|
6255
|
+
export interface RingCallResponse {
|
|
6256
|
+
duration: string;
|
|
6257
|
+
members_ids: string[];
|
|
6258
|
+
}
|
|
6100
6259
|
export interface RingSettings {
|
|
6101
6260
|
auto_cancel_timeout_ms: number;
|
|
6102
6261
|
incoming_call_timeout_ms: number;
|
|
@@ -6167,6 +6326,108 @@ export interface SDKUsageReport {
|
|
|
6167
6326
|
export interface SDKUsageReportResponse {
|
|
6168
6327
|
daily: DailyAggregateSDKUsageReportResponse[];
|
|
6169
6328
|
}
|
|
6329
|
+
export interface SIPCallConfigsRequest {
|
|
6330
|
+
custom_data?: Record<string, any>;
|
|
6331
|
+
}
|
|
6332
|
+
export interface SIPCallConfigsResponse {
|
|
6333
|
+
custom_data: Record<string, any>;
|
|
6334
|
+
}
|
|
6335
|
+
export interface SIPCallerConfigsRequest {
|
|
6336
|
+
id: string;
|
|
6337
|
+
custom_data?: Record<string, any>;
|
|
6338
|
+
}
|
|
6339
|
+
export interface SIPCallerConfigsResponse {
|
|
6340
|
+
id: string;
|
|
6341
|
+
custom_data: Record<string, any>;
|
|
6342
|
+
}
|
|
6343
|
+
export interface SIPChallenge {
|
|
6344
|
+
a1?: string;
|
|
6345
|
+
algorithm?: string;
|
|
6346
|
+
charset?: string;
|
|
6347
|
+
cnonce?: string;
|
|
6348
|
+
method?: string;
|
|
6349
|
+
nc?: string;
|
|
6350
|
+
nonce?: string;
|
|
6351
|
+
opaque?: string;
|
|
6352
|
+
realm?: string;
|
|
6353
|
+
response?: string;
|
|
6354
|
+
stale?: boolean;
|
|
6355
|
+
uri?: string;
|
|
6356
|
+
userhash?: boolean;
|
|
6357
|
+
username?: string;
|
|
6358
|
+
domain?: string[];
|
|
6359
|
+
qop?: string[];
|
|
6360
|
+
}
|
|
6361
|
+
export interface SIPDirectRoutingRuleCallConfigsRequest {
|
|
6362
|
+
call_id: string;
|
|
6363
|
+
call_type: string;
|
|
6364
|
+
}
|
|
6365
|
+
export interface SIPDirectRoutingRuleCallConfigsResponse {
|
|
6366
|
+
call_id: string;
|
|
6367
|
+
call_type: string;
|
|
6368
|
+
}
|
|
6369
|
+
export interface SIPInboundRoutingRulePinConfigsRequest {
|
|
6370
|
+
custom_webhook_url?: string;
|
|
6371
|
+
pin_failed_attempt_prompt?: string;
|
|
6372
|
+
pin_hangup_prompt?: string;
|
|
6373
|
+
pin_prompt?: string;
|
|
6374
|
+
pin_success_prompt?: string;
|
|
6375
|
+
}
|
|
6376
|
+
export interface SIPInboundRoutingRulePinConfigsResponse {
|
|
6377
|
+
custom_webhook_url?: string;
|
|
6378
|
+
pin_failed_attempt_prompt?: string;
|
|
6379
|
+
pin_hangup_prompt?: string;
|
|
6380
|
+
pin_prompt?: string;
|
|
6381
|
+
pin_success_prompt?: string;
|
|
6382
|
+
}
|
|
6383
|
+
export interface SIPInboundRoutingRuleRequest {
|
|
6384
|
+
name: string;
|
|
6385
|
+
trunk_ids: string[];
|
|
6386
|
+
caller_configs: SIPCallerConfigsRequest;
|
|
6387
|
+
called_numbers?: string[];
|
|
6388
|
+
caller_numbers?: string[];
|
|
6389
|
+
call_configs?: SIPCallConfigsRequest;
|
|
6390
|
+
direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
|
|
6391
|
+
pin_protection_configs?: SIPPinProtectionConfigsRequest;
|
|
6392
|
+
pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
|
|
6393
|
+
}
|
|
6394
|
+
export interface SIPInboundRoutingRuleResponse {
|
|
6395
|
+
created_at: Date;
|
|
6396
|
+
duration: string;
|
|
6397
|
+
id: string;
|
|
6398
|
+
name: string;
|
|
6399
|
+
updated_at: Date;
|
|
6400
|
+
called_numbers: string[];
|
|
6401
|
+
trunk_ids: string[];
|
|
6402
|
+
caller_numbers?: string[];
|
|
6403
|
+
call_configs?: SIPCallConfigsResponse;
|
|
6404
|
+
caller_configs?: SIPCallerConfigsResponse;
|
|
6405
|
+
direct_routing_configs?: SIPDirectRoutingRuleCallConfigsResponse;
|
|
6406
|
+
pin_protection_configs?: SIPPinProtectionConfigsResponse;
|
|
6407
|
+
pin_routing_configs?: SIPInboundRoutingRulePinConfigsResponse;
|
|
6408
|
+
}
|
|
6409
|
+
export interface SIPPinProtectionConfigsRequest {
|
|
6410
|
+
default_pin?: string;
|
|
6411
|
+
enabled?: boolean;
|
|
6412
|
+
max_attempts?: number;
|
|
6413
|
+
required_pin_digits?: number;
|
|
6414
|
+
}
|
|
6415
|
+
export interface SIPPinProtectionConfigsResponse {
|
|
6416
|
+
enabled: boolean;
|
|
6417
|
+
default_pin?: string;
|
|
6418
|
+
max_attempts?: number;
|
|
6419
|
+
required_pin_digits?: number;
|
|
6420
|
+
}
|
|
6421
|
+
export interface SIPTrunkResponse {
|
|
6422
|
+
created_at: Date;
|
|
6423
|
+
id: string;
|
|
6424
|
+
name: string;
|
|
6425
|
+
password: string;
|
|
6426
|
+
updated_at: Date;
|
|
6427
|
+
uri: string;
|
|
6428
|
+
username: string;
|
|
6429
|
+
numbers: string[];
|
|
6430
|
+
}
|
|
6170
6431
|
export interface SRTIngress {
|
|
6171
6432
|
address: string;
|
|
6172
6433
|
}
|
|
@@ -6356,17 +6617,10 @@ export interface ShadowBlockActionRequest {
|
|
|
6356
6617
|
reason?: string;
|
|
6357
6618
|
}
|
|
6358
6619
|
export interface SharedLocation {
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
created_by_device_id
|
|
6362
|
-
message_id: string;
|
|
6363
|
-
updated_at: Date;
|
|
6364
|
-
user_id: string;
|
|
6620
|
+
latitude: number;
|
|
6621
|
+
longitude: number;
|
|
6622
|
+
created_by_device_id?: string;
|
|
6365
6623
|
end_at?: Date;
|
|
6366
|
-
latitude?: number;
|
|
6367
|
-
longitude?: number;
|
|
6368
|
-
channel?: Channel;
|
|
6369
|
-
message?: Message;
|
|
6370
6624
|
}
|
|
6371
6625
|
export interface SharedLocationResponse {
|
|
6372
6626
|
channel_cid: string;
|
|
@@ -6410,6 +6664,14 @@ export interface SingleFollowResponse {
|
|
|
6410
6664
|
duration: string;
|
|
6411
6665
|
follow: FollowResponse;
|
|
6412
6666
|
}
|
|
6667
|
+
export interface SipInboundCredentials {
|
|
6668
|
+
call_id: string;
|
|
6669
|
+
call_type: string;
|
|
6670
|
+
token: string;
|
|
6671
|
+
user_id: string;
|
|
6672
|
+
call_custom_data: Record<string, any>;
|
|
6673
|
+
user_custom_data: Record<string, any>;
|
|
6674
|
+
}
|
|
6413
6675
|
export interface SortParam {
|
|
6414
6676
|
direction?: number;
|
|
6415
6677
|
field?: string;
|
|
@@ -6756,7 +7018,7 @@ export interface TruncateChannelResponse {
|
|
|
6756
7018
|
message?: MessageResponse;
|
|
6757
7019
|
}
|
|
6758
7020
|
export interface TypingIndicators {
|
|
6759
|
-
enabled
|
|
7021
|
+
enabled?: boolean;
|
|
6760
7022
|
}
|
|
6761
7023
|
export interface TypingIndicatorsResponse {
|
|
6762
7024
|
enabled?: boolean;
|
|
@@ -6880,6 +7142,7 @@ export interface UpdateActivityRequest {
|
|
|
6880
7142
|
user_id?: string;
|
|
6881
7143
|
visibility?: string;
|
|
6882
7144
|
attachments?: Attachment[];
|
|
7145
|
+
collection_refs?: string[];
|
|
6883
7146
|
feeds?: string[];
|
|
6884
7147
|
filter_tags?: string[];
|
|
6885
7148
|
interest_tags?: string[];
|
|
@@ -7022,16 +7285,19 @@ export interface UpdateChannelRequest {
|
|
|
7022
7285
|
accept_invite?: boolean;
|
|
7023
7286
|
cooldown?: number;
|
|
7024
7287
|
hide_history?: boolean;
|
|
7288
|
+
hide_history_before?: Date;
|
|
7025
7289
|
reject_invite?: boolean;
|
|
7026
7290
|
skip_push?: boolean;
|
|
7027
7291
|
user_id?: string;
|
|
7292
|
+
add_filter_tags?: string[];
|
|
7028
7293
|
add_members?: ChannelMemberRequest[];
|
|
7029
7294
|
add_moderators?: string[];
|
|
7030
7295
|
assign_roles?: ChannelMemberRequest[];
|
|
7031
7296
|
demote_moderators?: string[];
|
|
7032
7297
|
invites?: ChannelMemberRequest[];
|
|
7298
|
+
remove_filter_tags?: string[];
|
|
7033
7299
|
remove_members?: string[];
|
|
7034
|
-
data?:
|
|
7300
|
+
data?: ChannelInputRequest;
|
|
7035
7301
|
message?: MessageRequest;
|
|
7036
7302
|
user?: UserRequest;
|
|
7037
7303
|
}
|
|
@@ -7115,6 +7381,20 @@ export interface UpdateChannelTypeResponse {
|
|
|
7115
7381
|
blocklists?: BlockListOptions[];
|
|
7116
7382
|
automod_thresholds?: Thresholds;
|
|
7117
7383
|
}
|
|
7384
|
+
export interface UpdateCollectionRequest {
|
|
7385
|
+
id: string;
|
|
7386
|
+
name: string;
|
|
7387
|
+
custom: Record<string, any>;
|
|
7388
|
+
}
|
|
7389
|
+
export interface UpdateCollectionsRequest {
|
|
7390
|
+
collections: UpdateCollectionRequest[];
|
|
7391
|
+
user_id?: string;
|
|
7392
|
+
user?: UserRequest;
|
|
7393
|
+
}
|
|
7394
|
+
export interface UpdateCollectionsResponse {
|
|
7395
|
+
duration: string;
|
|
7396
|
+
collections: CollectionResponse[];
|
|
7397
|
+
}
|
|
7118
7398
|
export interface UpdateCommandRequest {
|
|
7119
7399
|
description: string;
|
|
7120
7400
|
args?: string;
|
|
@@ -7299,6 +7579,29 @@ export interface UpdateReminderResponse {
|
|
|
7299
7579
|
duration: string;
|
|
7300
7580
|
reminder: ReminderResponseData;
|
|
7301
7581
|
}
|
|
7582
|
+
export interface UpdateSIPInboundRoutingRuleRequest {
|
|
7583
|
+
name: string;
|
|
7584
|
+
called_numbers: string[];
|
|
7585
|
+
trunk_ids: string[];
|
|
7586
|
+
caller_configs: SIPCallerConfigsRequest;
|
|
7587
|
+
caller_numbers?: string[];
|
|
7588
|
+
call_configs?: SIPCallConfigsRequest;
|
|
7589
|
+
direct_routing_configs?: SIPDirectRoutingRuleCallConfigsRequest;
|
|
7590
|
+
pin_protection_configs?: SIPPinProtectionConfigsRequest;
|
|
7591
|
+
pin_routing_configs?: SIPInboundRoutingRulePinConfigsRequest;
|
|
7592
|
+
}
|
|
7593
|
+
export interface UpdateSIPInboundRoutingRuleResponse {
|
|
7594
|
+
duration: string;
|
|
7595
|
+
sip_inbound_routing_rule?: SIPInboundRoutingRuleResponse;
|
|
7596
|
+
}
|
|
7597
|
+
export interface UpdateSIPTrunkRequest {
|
|
7598
|
+
name: string;
|
|
7599
|
+
numbers: string[];
|
|
7600
|
+
}
|
|
7601
|
+
export interface UpdateSIPTrunkResponse {
|
|
7602
|
+
duration: string;
|
|
7603
|
+
sip_trunk?: SIPTrunkResponse;
|
|
7604
|
+
}
|
|
7302
7605
|
export interface UpdateThreadPartialRequest {
|
|
7303
7606
|
user_id?: string;
|
|
7304
7607
|
unset?: string[];
|
|
@@ -7369,6 +7672,13 @@ export interface UpsertActivitiesResponse {
|
|
|
7369
7672
|
duration: string;
|
|
7370
7673
|
activities: ActivityResponse[];
|
|
7371
7674
|
}
|
|
7675
|
+
export interface UpsertCollectionsRequest {
|
|
7676
|
+
collections: CollectionRequest[];
|
|
7677
|
+
}
|
|
7678
|
+
export interface UpsertCollectionsResponse {
|
|
7679
|
+
duration: string;
|
|
7680
|
+
collections: CollectionResponse[];
|
|
7681
|
+
}
|
|
7372
7682
|
export interface UpsertConfigRequest {
|
|
7373
7683
|
key: string;
|
|
7374
7684
|
async?: boolean;
|
|
@@ -7449,25 +7759,17 @@ export interface UpsertPushTemplateResponse {
|
|
|
7449
7759
|
template?: PushTemplate;
|
|
7450
7760
|
}
|
|
7451
7761
|
export interface User {
|
|
7452
|
-
banned: boolean;
|
|
7453
7762
|
id: string;
|
|
7454
|
-
online: boolean;
|
|
7455
|
-
role: string;
|
|
7456
|
-
custom: Record<string, any>;
|
|
7457
|
-
teams_role: Record<string, string>;
|
|
7458
|
-
avg_response_time?: number;
|
|
7459
7763
|
ban_expires?: Date;
|
|
7460
|
-
|
|
7461
|
-
deactivated_at?: Date;
|
|
7462
|
-
deleted_at?: Date;
|
|
7764
|
+
banned?: boolean;
|
|
7463
7765
|
invisible?: boolean;
|
|
7464
7766
|
language?: string;
|
|
7465
|
-
last_active?: Date;
|
|
7466
|
-
last_engaged_at?: Date;
|
|
7467
7767
|
revoke_tokens_issued_before?: Date;
|
|
7468
|
-
|
|
7768
|
+
role?: string;
|
|
7469
7769
|
teams?: string[];
|
|
7770
|
+
custom?: Record<string, any>;
|
|
7470
7771
|
privacy_settings?: PrivacySettings;
|
|
7772
|
+
teams_role?: Record<string, string>;
|
|
7471
7773
|
}
|
|
7472
7774
|
export interface UserBannedEvent {
|
|
7473
7775
|
channel_id: string;
|