@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.cjs.js
CHANGED
|
@@ -888,6 +888,7 @@ decoders.Channel = (input) => {
|
|
|
888
888
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
889
889
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
890
890
|
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
891
|
+
message_count_updated_at: { type: 'DatetimeType', isSingle: true },
|
|
891
892
|
active_live_locations: { type: 'SharedLocation', isSingle: false },
|
|
892
893
|
invites: { type: 'ChannelMember', isSingle: false },
|
|
893
894
|
members: { type: 'ChannelMember', isSingle: false },
|
|
@@ -1824,6 +1825,14 @@ decoders.ImportTaskHistory = (input) => {
|
|
|
1824
1825
|
};
|
|
1825
1826
|
return decode(typeMappings, input);
|
|
1826
1827
|
};
|
|
1828
|
+
decoders.KickedUserEvent = (input) => {
|
|
1829
|
+
const typeMappings = {
|
|
1830
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1831
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1832
|
+
kicked_by_user: { type: 'UserResponse', isSingle: true },
|
|
1833
|
+
};
|
|
1834
|
+
return decode(typeMappings, input);
|
|
1835
|
+
};
|
|
1827
1836
|
decoders.ListBlockListResponse = (input) => {
|
|
1828
1837
|
const typeMappings = {
|
|
1829
1838
|
blocklists: { type: 'BlockListResponse', isSingle: false },
|
|
@@ -3387,6 +3396,7 @@ class CommonApi {
|
|
|
3387
3396
|
feeds_v2_region: request?.feeds_v2_region,
|
|
3388
3397
|
guest_user_creation_disabled: request?.guest_user_creation_disabled,
|
|
3389
3398
|
image_moderation_enabled: request?.image_moderation_enabled,
|
|
3399
|
+
max_aggregated_activities_length: request?.max_aggregated_activities_length,
|
|
3390
3400
|
migrate_permissions_to_v2: request?.migrate_permissions_to_v2,
|
|
3391
3401
|
moderation_enabled: request?.moderation_enabled,
|
|
3392
3402
|
moderation_webhook_url: request?.moderation_webhook_url,
|
|
@@ -4244,6 +4254,21 @@ class VideoApi {
|
|
|
4244
4254
|
decoders.GoLiveResponse?.(response.body);
|
|
4245
4255
|
return { ...response.body, metadata: response.metadata };
|
|
4246
4256
|
}
|
|
4257
|
+
async kickUser(request) {
|
|
4258
|
+
const pathParams = {
|
|
4259
|
+
type: request?.type,
|
|
4260
|
+
id: request?.id,
|
|
4261
|
+
};
|
|
4262
|
+
const body = {
|
|
4263
|
+
user_id: request?.user_id,
|
|
4264
|
+
block: request?.block,
|
|
4265
|
+
kicked_by_id: request?.kicked_by_id,
|
|
4266
|
+
kicked_by: request?.kicked_by,
|
|
4267
|
+
};
|
|
4268
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call/{type}/{id}/kick', pathParams, undefined, body, 'application/json');
|
|
4269
|
+
decoders.KickUserResponse?.(response.body);
|
|
4270
|
+
return { ...response.body, metadata: response.metadata };
|
|
4271
|
+
}
|
|
4247
4272
|
async endCall(request) {
|
|
4248
4273
|
const pathParams = {
|
|
4249
4274
|
type: request?.type,
|
|
@@ -4694,6 +4719,9 @@ class CallApi {
|
|
|
4694
4719
|
goLive(request) {
|
|
4695
4720
|
return this.videoApi.goLive({ id: this.id, type: this.type, ...request });
|
|
4696
4721
|
}
|
|
4722
|
+
kickUser(request) {
|
|
4723
|
+
return this.videoApi.kickUser({ id: this.id, type: this.type, ...request });
|
|
4724
|
+
}
|
|
4697
4725
|
end() {
|
|
4698
4726
|
return this.videoApi.endCall({ id: this.id, type: this.type });
|
|
4699
4727
|
}
|
|
@@ -5355,6 +5383,7 @@ class ChatApi {
|
|
|
5355
5383
|
blocklist: request?.blocklist,
|
|
5356
5384
|
blocklist_behavior: request?.blocklist_behavior,
|
|
5357
5385
|
connect_events: request?.connect_events,
|
|
5386
|
+
count_messages: request?.count_messages,
|
|
5358
5387
|
custom_events: request?.custom_events,
|
|
5359
5388
|
mark_messages_pending: request?.mark_messages_pending,
|
|
5360
5389
|
mutes: request?.mutes,
|
|
@@ -5481,6 +5510,7 @@ class ChatApi {
|
|
|
5481
5510
|
const queryParams = {
|
|
5482
5511
|
hard: request?.hard,
|
|
5483
5512
|
deleted_by: request?.deleted_by,
|
|
5513
|
+
delete_for_me: request?.delete_for_me,
|
|
5484
5514
|
};
|
|
5485
5515
|
const pathParams = {
|
|
5486
5516
|
id: request?.id,
|
|
@@ -6231,6 +6261,7 @@ class ModerationApi {
|
|
|
6231
6261
|
block_list_config: request?.block_list_config,
|
|
6232
6262
|
bodyguard_config: request?.bodyguard_config,
|
|
6233
6263
|
google_vision_config: request?.google_vision_config,
|
|
6264
|
+
llm_config: request?.llm_config,
|
|
6234
6265
|
rule_builder_config: request?.rule_builder_config,
|
|
6235
6266
|
user: request?.user,
|
|
6236
6267
|
velocity_filter_config: request?.velocity_filter_config,
|
|
@@ -6482,7 +6513,7 @@ class ApiClient {
|
|
|
6482
6513
|
const headers = {
|
|
6483
6514
|
Authorization: this.apiConfig.token,
|
|
6484
6515
|
'stream-auth-type': 'jwt',
|
|
6485
|
-
'X-Stream-Client': 'stream-node-' + "0.6.
|
|
6516
|
+
'X-Stream-Client': 'stream-node-' + "0.6.2",
|
|
6486
6517
|
'Accept-Encoding': 'gzip',
|
|
6487
6518
|
'x-client-request-id': clientRequestId,
|
|
6488
6519
|
};
|
|
@@ -7802,6 +7833,7 @@ const OwnCapability = {
|
|
|
7802
7833
|
JOIN_BACKSTAGE: 'join-backstage',
|
|
7803
7834
|
JOIN_CALL: 'join-call',
|
|
7804
7835
|
JOIN_ENDED_CALL: 'join-ended-call',
|
|
7836
|
+
KICK_USER: 'kick-user',
|
|
7805
7837
|
MUTE_USERS: 'mute-users',
|
|
7806
7838
|
PIN_FOR_EVERYONE: 'pin-for-everyone',
|
|
7807
7839
|
READ_CALL: 'read-call',
|