@stream-io/node-sdk 0.6.1 → 0.6.2
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 +33 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +33 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +2 -1
- package/dist/src/gen/common/CommonApi.d.ts +1 -1
- package/dist/src/gen/models/index.d.ts +68 -13
- package/dist/src/gen/video/CallApi.d.ts +2 -1
- package/dist/src/gen/video/VideoApi.d.ts +5 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +5 -2
- package/src/gen/common/CommonApi.ts +4 -2
- package/src/gen/model-decoders/decoders.ts +13 -0
- package/src/gen/models/index.ts +120 -19
- package/src/gen/moderation/ModerationApi.ts +1 -0
- package/src/gen/video/CallApi.ts +11 -3
- package/src/gen/video/VideoApi.ts +37 -5
package/dist/index.es.mjs
CHANGED
|
@@ -869,6 +869,7 @@ decoders.Channel = (input) => {
|
|
|
869
869
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
870
870
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
871
871
|
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
872
|
+
message_count_updated_at: { type: 'DatetimeType', isSingle: true },
|
|
872
873
|
active_live_locations: { type: 'SharedLocation', isSingle: false },
|
|
873
874
|
invites: { type: 'ChannelMember', isSingle: false },
|
|
874
875
|
members: { type: 'ChannelMember', isSingle: false },
|
|
@@ -1805,6 +1806,14 @@ decoders.ImportTaskHistory = (input) => {
|
|
|
1805
1806
|
};
|
|
1806
1807
|
return decode(typeMappings, input);
|
|
1807
1808
|
};
|
|
1809
|
+
decoders.KickedUserEvent = (input) => {
|
|
1810
|
+
const typeMappings = {
|
|
1811
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1812
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1813
|
+
kicked_by_user: { type: 'UserResponse', isSingle: true },
|
|
1814
|
+
};
|
|
1815
|
+
return decode(typeMappings, input);
|
|
1816
|
+
};
|
|
1808
1817
|
decoders.ListBlockListResponse = (input) => {
|
|
1809
1818
|
const typeMappings = {
|
|
1810
1819
|
blocklists: { type: 'BlockListResponse', isSingle: false },
|
|
@@ -3368,6 +3377,7 @@ class CommonApi {
|
|
|
3368
3377
|
feeds_v2_region: request?.feeds_v2_region,
|
|
3369
3378
|
guest_user_creation_disabled: request?.guest_user_creation_disabled,
|
|
3370
3379
|
image_moderation_enabled: request?.image_moderation_enabled,
|
|
3380
|
+
max_aggregated_activities_length: request?.max_aggregated_activities_length,
|
|
3371
3381
|
migrate_permissions_to_v2: request?.migrate_permissions_to_v2,
|
|
3372
3382
|
moderation_enabled: request?.moderation_enabled,
|
|
3373
3383
|
moderation_webhook_url: request?.moderation_webhook_url,
|
|
@@ -4225,6 +4235,21 @@ class VideoApi {
|
|
|
4225
4235
|
decoders.GoLiveResponse?.(response.body);
|
|
4226
4236
|
return { ...response.body, metadata: response.metadata };
|
|
4227
4237
|
}
|
|
4238
|
+
async kickUser(request) {
|
|
4239
|
+
const pathParams = {
|
|
4240
|
+
type: request?.type,
|
|
4241
|
+
id: request?.id,
|
|
4242
|
+
};
|
|
4243
|
+
const body = {
|
|
4244
|
+
user_id: request?.user_id,
|
|
4245
|
+
block: request?.block,
|
|
4246
|
+
kicked_by_id: request?.kicked_by_id,
|
|
4247
|
+
kicked_by: request?.kicked_by,
|
|
4248
|
+
};
|
|
4249
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call/{type}/{id}/kick', pathParams, undefined, body, 'application/json');
|
|
4250
|
+
decoders.KickUserResponse?.(response.body);
|
|
4251
|
+
return { ...response.body, metadata: response.metadata };
|
|
4252
|
+
}
|
|
4228
4253
|
async endCall(request) {
|
|
4229
4254
|
const pathParams = {
|
|
4230
4255
|
type: request?.type,
|
|
@@ -4675,6 +4700,9 @@ class CallApi {
|
|
|
4675
4700
|
goLive(request) {
|
|
4676
4701
|
return this.videoApi.goLive({ id: this.id, type: this.type, ...request });
|
|
4677
4702
|
}
|
|
4703
|
+
kickUser(request) {
|
|
4704
|
+
return this.videoApi.kickUser({ id: this.id, type: this.type, ...request });
|
|
4705
|
+
}
|
|
4678
4706
|
end() {
|
|
4679
4707
|
return this.videoApi.endCall({ id: this.id, type: this.type });
|
|
4680
4708
|
}
|
|
@@ -5336,6 +5364,7 @@ class ChatApi {
|
|
|
5336
5364
|
blocklist: request?.blocklist,
|
|
5337
5365
|
blocklist_behavior: request?.blocklist_behavior,
|
|
5338
5366
|
connect_events: request?.connect_events,
|
|
5367
|
+
count_messages: request?.count_messages,
|
|
5339
5368
|
custom_events: request?.custom_events,
|
|
5340
5369
|
mark_messages_pending: request?.mark_messages_pending,
|
|
5341
5370
|
mutes: request?.mutes,
|
|
@@ -5462,6 +5491,7 @@ class ChatApi {
|
|
|
5462
5491
|
const queryParams = {
|
|
5463
5492
|
hard: request?.hard,
|
|
5464
5493
|
deleted_by: request?.deleted_by,
|
|
5494
|
+
delete_for_me: request?.delete_for_me,
|
|
5465
5495
|
};
|
|
5466
5496
|
const pathParams = {
|
|
5467
5497
|
id: request?.id,
|
|
@@ -6212,6 +6242,7 @@ class ModerationApi {
|
|
|
6212
6242
|
block_list_config: request?.block_list_config,
|
|
6213
6243
|
bodyguard_config: request?.bodyguard_config,
|
|
6214
6244
|
google_vision_config: request?.google_vision_config,
|
|
6245
|
+
llm_config: request?.llm_config,
|
|
6215
6246
|
rule_builder_config: request?.rule_builder_config,
|
|
6216
6247
|
user: request?.user,
|
|
6217
6248
|
velocity_filter_config: request?.velocity_filter_config,
|
|
@@ -6463,7 +6494,7 @@ class ApiClient {
|
|
|
6463
6494
|
const headers = {
|
|
6464
6495
|
Authorization: this.apiConfig.token,
|
|
6465
6496
|
'stream-auth-type': 'jwt',
|
|
6466
|
-
'X-Stream-Client': 'stream-node-' + "0.6.
|
|
6497
|
+
'X-Stream-Client': 'stream-node-' + "0.6.2",
|
|
6467
6498
|
'Accept-Encoding': 'gzip',
|
|
6468
6499
|
'x-client-request-id': clientRequestId,
|
|
6469
6500
|
};
|
|
@@ -7783,6 +7814,7 @@ const OwnCapability = {
|
|
|
7783
7814
|
JOIN_BACKSTAGE: 'join-backstage',
|
|
7784
7815
|
JOIN_CALL: 'join-call',
|
|
7785
7816
|
JOIN_ENDED_CALL: 'join-ended-call',
|
|
7817
|
+
KICK_USER: 'kick-user',
|
|
7786
7818
|
MUTE_USERS: 'mute-users',
|
|
7787
7819
|
PIN_FOR_EVERYONE: 'pin-for-everyone',
|
|
7788
7820
|
READ_CALL: 'read-call',
|