@stream-io/node-sdk 0.6.0 → 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.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 },
@@ -1447,6 +1448,7 @@ decoders.FeedMemberResponse = (input) => {
1447
1448
  user: { type: 'UserResponse', isSingle: true },
1448
1449
  invite_accepted_at: { type: 'DatetimeType', isSingle: true },
1449
1450
  invite_rejected_at: { type: 'DatetimeType', isSingle: true },
1451
+ membership_level: { type: 'MembershipLevelResponse', isSingle: true },
1450
1452
  };
1451
1453
  return decode(typeMappings, input);
1452
1454
  };
@@ -1804,6 +1806,14 @@ decoders.ImportTaskHistory = (input) => {
1804
1806
  };
1805
1807
  return decode(typeMappings, input);
1806
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
+ };
1807
1817
  decoders.ListBlockListResponse = (input) => {
1808
1818
  const typeMappings = {
1809
1819
  blocklists: { type: 'BlockListResponse', isSingle: false },
@@ -3367,6 +3377,7 @@ class CommonApi {
3367
3377
  feeds_v2_region: request?.feeds_v2_region,
3368
3378
  guest_user_creation_disabled: request?.guest_user_creation_disabled,
3369
3379
  image_moderation_enabled: request?.image_moderation_enabled,
3380
+ max_aggregated_activities_length: request?.max_aggregated_activities_length,
3370
3381
  migrate_permissions_to_v2: request?.migrate_permissions_to_v2,
3371
3382
  moderation_enabled: request?.moderation_enabled,
3372
3383
  moderation_webhook_url: request?.moderation_webhook_url,
@@ -4224,6 +4235,21 @@ class VideoApi {
4224
4235
  decoders.GoLiveResponse?.(response.body);
4225
4236
  return { ...response.body, metadata: response.metadata };
4226
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
+ }
4227
4253
  async endCall(request) {
4228
4254
  const pathParams = {
4229
4255
  type: request?.type,
@@ -4674,6 +4700,9 @@ class CallApi {
4674
4700
  goLive(request) {
4675
4701
  return this.videoApi.goLive({ id: this.id, type: this.type, ...request });
4676
4702
  }
4703
+ kickUser(request) {
4704
+ return this.videoApi.kickUser({ id: this.id, type: this.type, ...request });
4705
+ }
4677
4706
  end() {
4678
4707
  return this.videoApi.endCall({ id: this.id, type: this.type });
4679
4708
  }
@@ -5335,6 +5364,7 @@ class ChatApi {
5335
5364
  blocklist: request?.blocklist,
5336
5365
  blocklist_behavior: request?.blocklist_behavior,
5337
5366
  connect_events: request?.connect_events,
5367
+ count_messages: request?.count_messages,
5338
5368
  custom_events: request?.custom_events,
5339
5369
  mark_messages_pending: request?.mark_messages_pending,
5340
5370
  mutes: request?.mutes,
@@ -5461,6 +5491,7 @@ class ChatApi {
5461
5491
  const queryParams = {
5462
5492
  hard: request?.hard,
5463
5493
  deleted_by: request?.deleted_by,
5494
+ delete_for_me: request?.delete_for_me,
5464
5495
  };
5465
5496
  const pathParams = {
5466
5497
  id: request?.id,
@@ -6211,6 +6242,7 @@ class ModerationApi {
6211
6242
  block_list_config: request?.block_list_config,
6212
6243
  bodyguard_config: request?.bodyguard_config,
6213
6244
  google_vision_config: request?.google_vision_config,
6245
+ llm_config: request?.llm_config,
6214
6246
  rule_builder_config: request?.rule_builder_config,
6215
6247
  user: request?.user,
6216
6248
  velocity_filter_config: request?.velocity_filter_config,
@@ -6462,7 +6494,7 @@ class ApiClient {
6462
6494
  const headers = {
6463
6495
  Authorization: this.apiConfig.token,
6464
6496
  'stream-auth-type': 'jwt',
6465
- 'X-Stream-Client': 'stream-node-' + "0.6.0",
6497
+ 'X-Stream-Client': 'stream-node-' + "0.6.2",
6466
6498
  'Accept-Encoding': 'gzip',
6467
6499
  'x-client-request-id': clientRequestId,
6468
6500
  };
@@ -7782,6 +7814,7 @@ const OwnCapability = {
7782
7814
  JOIN_BACKSTAGE: 'join-backstage',
7783
7815
  JOIN_CALL: 'join-call',
7784
7816
  JOIN_ENDED_CALL: 'join-ended-call',
7817
+ KICK_USER: 'kick-user',
7785
7818
  MUTE_USERS: 'mute-users',
7786
7819
  PIN_FOR_EVERYONE: 'pin-for-everyone',
7787
7820
  READ_CALL: 'read-call',