@stream-io/node-sdk 0.8.2 → 0.8.4
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/CHANGELOG.md +14 -0
- package/dist/index.cjs.js +30 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +30 -19
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +2 -2
- package/dist/src/gen/models/index.d.ts +71 -17
- package/dist/src/gen/video/VideoApi.d.ts +1 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +4 -4
- package/src/gen/common/CommonApi.ts +2 -0
- package/src/gen/feeds/FeedsApi.ts +4 -0
- package/src/gen/model-decoders/decoders.ts +15 -8
- package/src/gen/models/index.ts +103 -23
- package/src/gen/video/VideoApi.ts +2 -2
package/src/gen/models/index.ts
CHANGED
|
@@ -210,7 +210,7 @@ export interface AcceptFollowRequest {
|
|
|
210
210
|
target: string;
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
|
-
* Optional role for the follower in the follow relationship
|
|
213
|
+
* Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
|
|
214
214
|
*/
|
|
215
215
|
follower_role?: string;
|
|
216
216
|
}
|
|
@@ -595,6 +595,16 @@ export interface ActivityProcessorConfig {
|
|
|
595
595
|
* Type of activity processor (required)
|
|
596
596
|
*/
|
|
597
597
|
type: string;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Minimum number of characters the activity text must have before this processor runs. 0 (the default) disables the check. Only applies to text_interest_tags.
|
|
601
|
+
*/
|
|
602
|
+
min_text_length?: number;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Minimum number of words the activity text must have before this processor runs. 0 (the default) disables the check. Only applies to text_interest_tags. Words are whitespace-separated, so scripts written without word spacing (Chinese, Japanese, Thai) always count as 1 word regardless of length — use min_text_length for those.
|
|
606
|
+
*/
|
|
607
|
+
min_word_count?: number;
|
|
598
608
|
}
|
|
599
609
|
|
|
600
610
|
export interface ActivityReactionAddedEvent {
|
|
@@ -1926,6 +1936,8 @@ export interface AppResponseFields {
|
|
|
1926
1936
|
|
|
1927
1937
|
max_aggregated_activities_length: number;
|
|
1928
1938
|
|
|
1939
|
+
member_custom_on_mentioned_users_enabled: boolean;
|
|
1940
|
+
|
|
1929
1941
|
member_custom_on_messages_enabled: boolean;
|
|
1930
1942
|
|
|
1931
1943
|
moderation_audio_call_moderation_enabled: boolean;
|
|
@@ -6010,19 +6022,16 @@ export interface ChannelMemberPartialResponse {
|
|
|
6010
6022
|
}
|
|
6011
6023
|
|
|
6012
6024
|
export interface ChannelMemberRequest {
|
|
6013
|
-
user_id: string;
|
|
6014
|
-
|
|
6015
6025
|
/**
|
|
6016
6026
|
* Role of the member in the channel
|
|
6017
6027
|
*/
|
|
6018
6028
|
channel_role?: string;
|
|
6019
6029
|
|
|
6030
|
+
user_id?: string;
|
|
6031
|
+
|
|
6020
6032
|
custom?: Record<string, any>;
|
|
6021
6033
|
|
|
6022
|
-
|
|
6023
|
-
* User response object
|
|
6024
|
-
*/
|
|
6025
|
-
user?: UserResponse;
|
|
6034
|
+
user?: MemberUserRequest;
|
|
6026
6035
|
}
|
|
6027
6036
|
|
|
6028
6037
|
export interface ChannelMemberResponse {
|
|
@@ -8755,6 +8764,8 @@ export interface CreateFeedGroupRequest {
|
|
|
8755
8764
|
*/
|
|
8756
8765
|
id: string;
|
|
8757
8766
|
|
|
8767
|
+
default_follower_role?: string;
|
|
8768
|
+
|
|
8758
8769
|
/**
|
|
8759
8770
|
* Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
|
|
8760
8771
|
*/
|
|
@@ -8824,6 +8835,11 @@ export interface CreateFeedsBatchRequest {
|
|
|
8824
8835
|
*/
|
|
8825
8836
|
feeds: Array<FeedRequest>;
|
|
8826
8837
|
|
|
8838
|
+
/**
|
|
8839
|
+
* Server-side only. If true, auto-creates users referenced by feeds[].created_by_id that don't already exist. Default: false.
|
|
8840
|
+
*/
|
|
8841
|
+
create_users?: boolean;
|
|
8842
|
+
|
|
8827
8843
|
/**
|
|
8828
8844
|
* If true, enriches the created feeds with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
|
|
8829
8845
|
*/
|
|
@@ -9168,6 +9184,15 @@ export interface CreateReminderRequest {
|
|
|
9168
9184
|
user?: UserRequest;
|
|
9169
9185
|
}
|
|
9170
9186
|
|
|
9187
|
+
export interface CreateReminderResponse {
|
|
9188
|
+
/**
|
|
9189
|
+
* Duration of the request in milliseconds
|
|
9190
|
+
*/
|
|
9191
|
+
duration: string;
|
|
9192
|
+
|
|
9193
|
+
reminder: ReminderResponseData;
|
|
9194
|
+
}
|
|
9195
|
+
|
|
9171
9196
|
export interface CreateRoleRequest {
|
|
9172
9197
|
/**
|
|
9173
9198
|
* Role name
|
|
@@ -11044,6 +11069,8 @@ export interface FeedGroup {
|
|
|
11044
11069
|
|
|
11045
11070
|
created_at: Date;
|
|
11046
11071
|
|
|
11072
|
+
default_follower_role: string;
|
|
11073
|
+
|
|
11047
11074
|
default_visibility: string;
|
|
11048
11075
|
|
|
11049
11076
|
group_id: string;
|
|
@@ -11138,6 +11165,11 @@ export interface FeedGroupResponse {
|
|
|
11138
11165
|
*/
|
|
11139
11166
|
updated_at: Date;
|
|
11140
11167
|
|
|
11168
|
+
/**
|
|
11169
|
+
* Role new followers of feeds in this group are given. One of: feed_follower, feed_member_viewer. Empty means feed_follower. Applied when the follow is accepted, so a follow that starts pending picks it up on approval
|
|
11170
|
+
*/
|
|
11171
|
+
default_follower_role?: string;
|
|
11172
|
+
|
|
11141
11173
|
/**
|
|
11142
11174
|
* Default visibility for activities. One of: public, visible, followers, members, private
|
|
11143
11175
|
*/
|
|
@@ -12603,7 +12635,7 @@ export interface FollowResponse {
|
|
|
12603
12635
|
created_at: Date;
|
|
12604
12636
|
|
|
12605
12637
|
/**
|
|
12606
|
-
* Role of the follower (source user) in the follow relationship
|
|
12638
|
+
* Role of the follower (source user) in the follow relationship, as stored. A value outside the allowed set is reported as stored but evaluated as 'feed_follower'.
|
|
12607
12639
|
*/
|
|
12608
12640
|
follower_role: string;
|
|
12609
12641
|
|
|
@@ -13514,6 +13546,8 @@ export interface GetOrCreateCallResponse {
|
|
|
13514
13546
|
}
|
|
13515
13547
|
|
|
13516
13548
|
export interface GetOrCreateFeedGroupRequest {
|
|
13549
|
+
default_follower_role?: string;
|
|
13550
|
+
|
|
13517
13551
|
/**
|
|
13518
13552
|
* Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided.
|
|
13519
13553
|
*/
|
|
@@ -15610,6 +15644,28 @@ export interface MemberUpdatedEvent {
|
|
|
15610
15644
|
user?: UserResponseCommonFields;
|
|
15611
15645
|
}
|
|
15612
15646
|
|
|
15647
|
+
export interface MemberUserRequest {
|
|
15648
|
+
id: string;
|
|
15649
|
+
|
|
15650
|
+
image?: string;
|
|
15651
|
+
|
|
15652
|
+
invisible?: boolean;
|
|
15653
|
+
|
|
15654
|
+
language?: string;
|
|
15655
|
+
|
|
15656
|
+
name?: string;
|
|
15657
|
+
|
|
15658
|
+
role?: string;
|
|
15659
|
+
|
|
15660
|
+
teams?: Array<string>;
|
|
15661
|
+
|
|
15662
|
+
custom?: Record<string, any>;
|
|
15663
|
+
|
|
15664
|
+
privacy_settings?: PrivacySettingsResponse;
|
|
15665
|
+
|
|
15666
|
+
teams_role?: Record<string, string>;
|
|
15667
|
+
}
|
|
15668
|
+
|
|
15613
15669
|
export interface MembersResponse {
|
|
15614
15670
|
/**
|
|
15615
15671
|
* Duration of the request in milliseconds
|
|
@@ -16471,6 +16527,11 @@ export interface MessageResponse {
|
|
|
16471
16527
|
|
|
16472
16528
|
member?: ChannelMemberPartialResponse;
|
|
16473
16529
|
|
|
16530
|
+
/**
|
|
16531
|
+
* Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
|
|
16532
|
+
*/
|
|
16533
|
+
mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
|
|
16534
|
+
|
|
16474
16535
|
moderation?: ModerationV2Response;
|
|
16475
16536
|
|
|
16476
16537
|
/**
|
|
@@ -16841,6 +16902,11 @@ export interface MessageWithChannelResponse {
|
|
|
16841
16902
|
|
|
16842
16903
|
member?: ChannelMemberPartialResponse;
|
|
16843
16904
|
|
|
16905
|
+
/**
|
|
16906
|
+
* Channel member data for the users mentioned in the message, keyed by user id. Only present when the app has member custom on mentioned users enabled, and only for the first two mentioned users of each message
|
|
16907
|
+
*/
|
|
16908
|
+
mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
|
|
16909
|
+
|
|
16844
16910
|
moderation?: ModerationV2Response;
|
|
16845
16911
|
|
|
16846
16912
|
/**
|
|
@@ -18928,7 +18994,11 @@ export interface PollResponseData {
|
|
|
18928
18994
|
|
|
18929
18995
|
vote_count: number;
|
|
18930
18996
|
|
|
18931
|
-
|
|
18997
|
+
/**
|
|
18998
|
+
* Voting visibility of the poll
|
|
18999
|
+
*/
|
|
19000
|
+
|
|
19001
|
+
voting_visibility: 'anonymous' | 'public';
|
|
18932
19002
|
|
|
18933
19003
|
latest_answers: Array<PollVoteResponseData>;
|
|
18934
19004
|
|
|
@@ -20600,11 +20670,6 @@ export interface QueryLabelResultsResponse {
|
|
|
20600
20670
|
export interface QueryMembersPayload {
|
|
20601
20671
|
type: string;
|
|
20602
20672
|
|
|
20603
|
-
/**
|
|
20604
|
-
* Filter conditions to apply to the query
|
|
20605
|
-
*/
|
|
20606
|
-
filter_conditions: Record<string, any>;
|
|
20607
|
-
|
|
20608
20673
|
id?: string;
|
|
20609
20674
|
|
|
20610
20675
|
limit?: number;
|
|
@@ -20620,6 +20685,11 @@ export interface QueryMembersPayload {
|
|
|
20620
20685
|
*/
|
|
20621
20686
|
sort?: Array<SortParamRequest>;
|
|
20622
20687
|
|
|
20688
|
+
/**
|
|
20689
|
+
* Filter conditions to apply to the query
|
|
20690
|
+
*/
|
|
20691
|
+
filter_conditions?: Record<string, any>;
|
|
20692
|
+
|
|
20623
20693
|
/**
|
|
20624
20694
|
* User request object
|
|
20625
20695
|
*/
|
|
@@ -22160,6 +22230,8 @@ export interface ReminderCreatedEvent {
|
|
|
22160
22230
|
|
|
22161
22231
|
custom: Record<string, any>;
|
|
22162
22232
|
|
|
22233
|
+
reminder: ReminderResponseData;
|
|
22234
|
+
|
|
22163
22235
|
/**
|
|
22164
22236
|
* The type of event: "reminder.created" in this case
|
|
22165
22237
|
*/
|
|
@@ -22171,8 +22243,6 @@ export interface ReminderCreatedEvent {
|
|
|
22171
22243
|
parent_id?: string;
|
|
22172
22244
|
|
|
22173
22245
|
received_at?: Date;
|
|
22174
|
-
|
|
22175
|
-
reminder?: ReminderResponseData;
|
|
22176
22246
|
}
|
|
22177
22247
|
|
|
22178
22248
|
export interface ReminderDeletedEvent {
|
|
@@ -22198,6 +22268,8 @@ export interface ReminderDeletedEvent {
|
|
|
22198
22268
|
|
|
22199
22269
|
custom: Record<string, any>;
|
|
22200
22270
|
|
|
22271
|
+
reminder: ReminderResponseData;
|
|
22272
|
+
|
|
22201
22273
|
/**
|
|
22202
22274
|
* The type of event: "reminder.deleted" in this case
|
|
22203
22275
|
*/
|
|
@@ -22209,8 +22281,6 @@ export interface ReminderDeletedEvent {
|
|
|
22209
22281
|
parent_id?: string;
|
|
22210
22282
|
|
|
22211
22283
|
received_at?: Date;
|
|
22212
|
-
|
|
22213
|
-
reminder?: ReminderResponseData;
|
|
22214
22284
|
}
|
|
22215
22285
|
|
|
22216
22286
|
export interface ReminderNotificationEvent {
|
|
@@ -22236,6 +22306,8 @@ export interface ReminderNotificationEvent {
|
|
|
22236
22306
|
|
|
22237
22307
|
custom: Record<string, any>;
|
|
22238
22308
|
|
|
22309
|
+
reminder: ReminderResponseData;
|
|
22310
|
+
|
|
22239
22311
|
/**
|
|
22240
22312
|
* The type of event: "notification.reminder_due" in this case
|
|
22241
22313
|
*/
|
|
@@ -22244,8 +22316,6 @@ export interface ReminderNotificationEvent {
|
|
|
22244
22316
|
parent_id?: string;
|
|
22245
22317
|
|
|
22246
22318
|
received_at?: Date;
|
|
22247
|
-
|
|
22248
|
-
reminder?: ReminderResponseData;
|
|
22249
22319
|
}
|
|
22250
22320
|
|
|
22251
22321
|
export interface ReminderResponseData {
|
|
@@ -22300,6 +22370,8 @@ export interface ReminderUpdatedEvent {
|
|
|
22300
22370
|
|
|
22301
22371
|
custom: Record<string, any>;
|
|
22302
22372
|
|
|
22373
|
+
reminder: ReminderResponseData;
|
|
22374
|
+
|
|
22303
22375
|
/**
|
|
22304
22376
|
* The type of event: "reminder.updated" in this case
|
|
22305
22377
|
*/
|
|
@@ -22311,8 +22383,6 @@ export interface ReminderUpdatedEvent {
|
|
|
22311
22383
|
parent_id?: string;
|
|
22312
22384
|
|
|
22313
22385
|
received_at?: Date;
|
|
22314
|
-
|
|
22315
|
-
reminder?: ReminderResponseData;
|
|
22316
22386
|
}
|
|
22317
22387
|
|
|
22318
22388
|
export interface RemoveUserGroupMembersRequest {
|
|
@@ -23626,6 +23696,8 @@ export interface SearchResultMessage {
|
|
|
23626
23696
|
|
|
23627
23697
|
member?: ChannelMemberPartialResponse;
|
|
23628
23698
|
|
|
23699
|
+
mentioned_channel_members?: Record<string, ChannelMemberPartialResponse>;
|
|
23700
|
+
|
|
23629
23701
|
moderation?: ModerationV2Response;
|
|
23630
23702
|
|
|
23631
23703
|
/**
|
|
@@ -25682,7 +25754,8 @@ export interface UnbanActionRequestPayload {
|
|
|
25682
25754
|
|
|
25683
25755
|
export interface UnbanRequest {
|
|
25684
25756
|
/**
|
|
25685
|
-
*
|
|
25757
|
+
* @deprecated
|
|
25758
|
+
* ID of the user performing the unban Deprecated: not used by the unban flow
|
|
25686
25759
|
*/
|
|
25687
25760
|
unbanned_by_id?: string;
|
|
25688
25761
|
|
|
@@ -26219,6 +26292,8 @@ export interface UpdateAppRequest {
|
|
|
26219
26292
|
|
|
26220
26293
|
max_aggregated_activities_length?: number;
|
|
26221
26294
|
|
|
26295
|
+
member_custom_on_mentioned_users_enabled?: boolean;
|
|
26296
|
+
|
|
26222
26297
|
member_custom_on_messages_enabled?: boolean;
|
|
26223
26298
|
|
|
26224
26299
|
migrate_permissions_to_v2?: boolean;
|
|
@@ -27077,6 +27152,8 @@ export interface UpdateExternalStorageResponse {
|
|
|
27077
27152
|
}
|
|
27078
27153
|
|
|
27079
27154
|
export interface UpdateFeedGroupRequest {
|
|
27155
|
+
default_follower_role?: string;
|
|
27156
|
+
|
|
27080
27157
|
default_visibility?:
|
|
27081
27158
|
'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
27082
27159
|
|
|
@@ -27258,6 +27335,9 @@ export interface UpdateFollowRequest {
|
|
|
27258
27335
|
*/
|
|
27259
27336
|
enrich_own_fields?: boolean;
|
|
27260
27337
|
|
|
27338
|
+
/**
|
|
27339
|
+
* Optional role for the follower in the follow relationship. Server-side only, and one of 'feed_follower' (the default) or 'feed_member_viewer'.
|
|
27340
|
+
*/
|
|
27261
27341
|
follower_role?: string;
|
|
27262
27342
|
|
|
27263
27343
|
/**
|
|
@@ -1955,11 +1955,11 @@ export class VideoApi {
|
|
|
1955
1955
|
|
|
1956
1956
|
async getDailyDigest(request?: {
|
|
1957
1957
|
date?: string;
|
|
1958
|
-
|
|
1958
|
+
target_app_id?: string;
|
|
1959
1959
|
}): Promise<StreamResponse<GetDailyDigestResponse>> {
|
|
1960
1960
|
const queryParams = {
|
|
1961
1961
|
date: request?.date,
|
|
1962
|
-
|
|
1962
|
+
target_app_id: request?.target_app_id,
|
|
1963
1963
|
};
|
|
1964
1964
|
|
|
1965
1965
|
const response = await this.apiClient.sendRequest<
|