@stream-io/node-sdk 0.1.10 → 0.1.11

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.
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { FileDeleteResponse, FileUploadResponse, ImageSizeRequest, ImageUploadResponse, OnlyUserIDRequest } from '../models';
13
+ import type { FileDeleteResponse, FileUploadResponse,
14
+ /** @ts-expect-error */
15
+ ImageSizeRequest, ImageUploadResponse,
16
+ /** @ts-expect-error */
17
+ OnlyUserIDRequest } from '../models';
14
18
  export interface DeleteFileRequest {
15
19
  type: string;
16
20
  id: string;
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { FileDeleteResponse, FileUploadResponse, FlagRequest, FlagResponse, GetManyMessagesResponse, GetOGResponse, GetReactionsResponse, GetRepliesResponse, ImageSizeRequest, ImageUploadResponse, MarkChannelsReadRequest, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MessageActionRequest, MessageResponse, MessageWithPendingMetadataResponse, OnlyUserIDRequest, QueryMessageFlagsRequest, QueryMessageFlagsResponse, ReactionRemovalResponse, ReactionResponse, Response, SearchRequest, SearchResponse, SendMessageRequest, SendReactionRequest, TranslateMessageRequest, UpdateMessagePartialRequest, UpdateMessageRequest } from '../models';
13
+ import type { FileDeleteResponse, FileUploadResponse, FlagRequest, FlagResponse, GetManyMessagesResponse, GetOGResponse, GetReactionsResponse, GetRepliesResponse,
14
+ /** @ts-expect-error */
15
+ ImageSizeRequest, ImageUploadResponse, MarkChannelsReadRequest, MarkReadRequest, MarkReadResponse, MarkUnreadRequest, MessageActionRequest, MessageResponse, MessageWithPendingMetadataResponse,
16
+ /** @ts-expect-error */
17
+ OnlyUserIDRequest, QueryMessageFlagsRequest, QueryMessageFlagsResponse, ReactionRemovalResponse, ReactionResponse, Response, SearchRequest, SearchResponse, SendMessageRequest, SendReactionRequest, TranslateMessageRequest, UpdateMessagePartialRequest, UpdateMessageRequest } from '../models';
14
18
  export interface DeleteFileRequest {
15
19
  type: string;
16
20
  id: string;
@@ -5,15 +5,23 @@ export * from './DefaultApi';
5
5
  export * from './DevicesApi';
6
6
  export * from './EventsApi';
7
7
  export * from './FilesApi';
8
+ /** @ts-expect-error */
8
9
  export * from './GDPRApi';
9
10
  export * from './ImportsApi';
11
+ /** @ts-expect-error */
10
12
  export * from './MessagesApi';
13
+ /** @ts-expect-error */
11
14
  export * from './ModerationApi';
12
15
  export * from './PermissionsV2Api';
16
+ /** @ts-expect-error */
13
17
  export * from './PushApi';
18
+ /** @ts-expect-error */
14
19
  export * from './ReactionsApi';
15
20
  export * from './ServerSideApi';
21
+ /** @ts-expect-error */
16
22
  export * from './SettingsApi';
17
23
  export * from './TasksApi';
24
+ /** @ts-expect-error */
18
25
  export * from './TestingApi';
26
+ /** @ts-expect-error */
19
27
  export * from './UsersApi';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -42,7 +42,6 @@
42
42
  "@openapitools/openapi-generator-cli": "^2.7.0",
43
43
  "@rollup/plugin-replace": "^5.0.2",
44
44
  "@rollup/plugin-typescript": "^11.1.4",
45
- "@types/jsonwebtoken": "^9.0.3",
46
45
  "@types/uuid": "^9.0.4",
47
46
  "@typescript-eslint/eslint-plugin": "^6.4.0",
48
47
  "dotenv": "^16.3.1",
@@ -62,6 +61,8 @@
62
61
  "vitest-mock-extended": "^1.2.1"
63
62
  },
64
63
  "dependencies": {
64
+ "@types/jsonwebtoken": "^9.0.3",
65
+ "@types/node": "^20.11.24",
65
66
  "jsonwebtoken": "^9.0.2",
66
67
  "uuid": "^9.0.1"
67
68
  }
@@ -42,11 +42,11 @@ export class StreamChannel {
42
42
  public id?: string,
43
43
  ) {
44
44
  const configuration = this.streamClient.getConfiguration();
45
- // @ts-expect-error typing problem
45
+ /** @ts-expect-error */
46
46
  this.channelsApi = new ChannelsApi(configuration);
47
- // @ts-expect-error typing problem
47
+ /** @ts-expect-error */
48
48
  this.messagesApi = new MessagesApi(configuration);
49
- // @ts-expect-error typing problem
49
+ /** @ts-expect-error */
50
50
  this.eventsApi = new EventsApi(configuration);
51
51
  }
52
52
 
@@ -31,13 +31,13 @@ export class StreamChatClient {
31
31
 
32
32
  constructor(private readonly streamClient: StreamClient) {
33
33
  const configuration = this.streamClient.getConfiguration();
34
- // @ts-expect-error typing problem
34
+ /** @ts-expect-error */
35
35
  this.settingsApi = new SettingsApi(configuration);
36
- // @ts-expect-error typing problem
36
+ /** @ts-expect-error */
37
37
  this.channelTypesApi = new ChannelTypesApi(configuration);
38
- // @ts-expect-error typing problem
38
+ /** @ts-expect-error */
39
39
  this.channelsApi = new ChannelsApi(configuration);
40
- // @ts-expect-error typing problem
40
+ /** @ts-expect-error */
41
41
  this.commandsApi = new CustomCommandsApi(configuration);
42
42
  }
43
43
 
@@ -103,23 +103,23 @@ export class StreamClient {
103
103
  }
104
104
 
105
105
  const chatConfiguration = this.getConfiguration();
106
- // @ts-expect-error typing problem
106
+ /** @ts-expect-error */
107
107
  this.usersApi = new UsersApi(chatConfiguration);
108
- // @ts-expect-error typing problem
108
+ /** @ts-expect-error */
109
109
  this.devicesApi = new DevicesApi(chatConfiguration);
110
- // @ts-expect-error typing problem
110
+ /** @ts-expect-error */
111
111
  this.pushApi = new PushApi(chatConfiguration);
112
- // @ts-expect-error typing problem
112
+ /** @ts-expect-error */
113
113
  this.serversideApi = new ServerSideApi(chatConfiguration);
114
- // @ts-expect-error typing problem
114
+ /** @ts-expect-error */
115
115
  this.testingApi = new TestingApi(chatConfiguration);
116
- // @ts-expect-error typing problem
116
+ /** @ts-expect-error */
117
117
  this.permissionsApi = new PermissionsV2Api(chatConfiguration);
118
- // @ts-expect-error typing problem
118
+ /** @ts-expect-error */
119
119
  this.settingsApi = new SettingsApi(chatConfiguration);
120
- // @ts-expect-error typing problem
120
+ /** @ts-expect-error */
121
121
  this.eventsApi = new EventsApi(chatConfiguration);
122
- // @ts-expect-error typing problem
122
+ /** @ts-expect-error */
123
123
  this.tasksApi = new TasksApi(chatConfiguration);
124
124
  }
125
125
 
@@ -292,7 +292,7 @@ export class StreamClient {
292
292
  queryUsers = async (payload: QueryUsersRequest) => {
293
293
  payload.user = this.mapCustomDataBeforeSend(payload.user);
294
294
  const response = await this.usersApi.queryUsers({ payload });
295
- // @ts-expect-error typing problem
295
+ /** @ts-expect-error */
296
296
  response.users = response.users.map((u) =>
297
297
  this.mapCustomDataAfterReceive(u),
298
298
  );
@@ -349,7 +349,7 @@ export class StreamClient {
349
349
  users: UpdateUserPartialRequest[];
350
350
  }) => {
351
351
  const response = await this.usersApi.updateUsersPartial({
352
- // @ts-expect-error typing error
352
+ /** @ts-expect-error */
353
353
  updateUserPartialRequest: request,
354
354
  });
355
355
  Object.keys(response.users).forEach((key) => {
@@ -572,7 +572,7 @@ export class StreamClient {
572
572
  if (!user) {
573
573
  return undefined;
574
574
  }
575
- // @ts-expect-error typing problem
575
+ /** @ts-expect-error */
576
576
  const result: UserObject | UserResponse = {};
577
577
  Object.keys(user).forEach((key) => {
578
578
  if (!this.reservedKeywords.includes(key)) {
@@ -18,10 +18,10 @@ import type {
18
18
  APIError,
19
19
  FileDeleteResponse,
20
20
  FileUploadResponse,
21
- // @ts-expect-error
21
+ /** @ts-expect-error */
22
22
  ImageSizeRequest,
23
23
  ImageUploadResponse,
24
- // @ts-expect-error
24
+ /** @ts-expect-error */
25
25
  OnlyUserIDRequest,
26
26
  } from '../models';
27
27
 
@@ -24,7 +24,7 @@ import type {
24
24
  GetOGResponse,
25
25
  GetReactionsResponse,
26
26
  GetRepliesResponse,
27
- // @ts-expect-error
27
+ /** @ts-expect-error */
28
28
  ImageSizeRequest,
29
29
  ImageUploadResponse,
30
30
  MarkChannelsReadRequest,
@@ -34,7 +34,7 @@ import type {
34
34
  MessageActionRequest,
35
35
  MessageResponse,
36
36
  MessageWithPendingMetadataResponse,
37
- // @ts-expect-error
37
+ /** @ts-expect-error */
38
38
  OnlyUserIDRequest,
39
39
  QueryMessageFlagsRequest,
40
40
  QueryMessageFlagsResponse,
@@ -7,23 +7,23 @@ export * from './DefaultApi';
7
7
  export * from './DevicesApi';
8
8
  export * from './EventsApi';
9
9
  export * from './FilesApi';
10
- // @ts-expect-error
10
+ /** @ts-expect-error */
11
11
  export * from './GDPRApi';
12
12
  export * from './ImportsApi';
13
- // @ts-expect-error
13
+ /** @ts-expect-error */
14
14
  export * from './MessagesApi';
15
- // @ts-expect-error
15
+ /** @ts-expect-error */
16
16
  export * from './ModerationApi';
17
17
  export * from './PermissionsV2Api';
18
- // @ts-expect-error
18
+ /** @ts-expect-error */
19
19
  export * from './PushApi';
20
- // @ts-expect-error
20
+ /** @ts-expect-error */
21
21
  export * from './ReactionsApi';
22
22
  export * from './ServerSideApi';
23
- // @ts-expect-error
23
+ /** @ts-expect-error */
24
24
  export * from './SettingsApi';
25
25
  export * from './TasksApi';
26
- // @ts-expect-error
26
+ /** @ts-expect-error */
27
27
  export * from './TestingApi';
28
- // @ts-expect-error
28
+ /** @ts-expect-error */
29
29
  export * from './UsersApi';