@stream-io/node-sdk 0.2.6 → 0.3.1

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.
Files changed (67) hide show
  1. package/README.md +1 -1
  2. package/dist/index.cjs.js +2461 -2124
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.es.js +2450 -2109
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/src/StreamCall.d.ts +1 -1
  7. package/dist/src/StreamChannel.d.ts +7 -9
  8. package/dist/src/StreamChatClient.d.ts +2 -5
  9. package/dist/src/StreamClient.d.ts +15 -26
  10. package/dist/src/gen/chat/apis/ProductchatApi.d.ts +1750 -0
  11. package/dist/src/gen/chat/apis/index.d.ts +1 -27
  12. package/dist/src/gen/chat/models/index.d.ts +5101 -5891
  13. package/dist/src/gen/chat/runtime.d.ts +2 -2
  14. package/dist/src/gen/video/apis/ProductvideoApi.d.ts +1 -1
  15. package/dist/src/gen/video/models/index.d.ts +189 -35
  16. package/dist/src/gen/video/runtime.d.ts +1 -1
  17. package/package.json +8 -1
  18. package/src/StreamCall.ts +7 -7
  19. package/src/StreamChannel.ts +44 -49
  20. package/src/StreamChatClient.ts +23 -35
  21. package/src/StreamClient.ts +71 -232
  22. package/src/gen/chat/.openapi-generator/FILES +1 -19
  23. package/src/gen/chat/apis/ProductchatApi.ts +7007 -0
  24. package/src/gen/chat/apis/index.ts +1 -27
  25. package/src/gen/chat/models/index.ts +5758 -6564
  26. package/src/gen/chat/runtime.ts +3 -3
  27. package/src/gen/video/apis/ProductvideoApi.ts +1 -1
  28. package/src/gen/video/models/index.ts +184 -36
  29. package/src/gen/video/runtime.ts +1 -1
  30. package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +0 -81
  31. package/dist/src/gen/chat/apis/ChannelsApi.d.ts +0 -280
  32. package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +0 -81
  33. package/dist/src/gen/chat/apis/DefaultApi.d.ts +0 -60
  34. package/dist/src/gen/chat/apis/DevicesApi.d.ts +0 -58
  35. package/dist/src/gen/chat/apis/EventsApi.d.ts +0 -47
  36. package/dist/src/gen/chat/apis/FilesApi.d.ts +0 -85
  37. package/dist/src/gen/chat/apis/GDPRApi.d.ts +0 -114
  38. package/dist/src/gen/chat/apis/ImportsApi.d.ts +0 -67
  39. package/dist/src/gen/chat/apis/MessagesApi.d.ts +0 -374
  40. package/dist/src/gen/chat/apis/ModerationApi.d.ts +0 -271
  41. package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +0 -77
  42. package/dist/src/gen/chat/apis/PushApi.d.ts +0 -65
  43. package/dist/src/gen/chat/apis/ReactionsApi.d.ts +0 -62
  44. package/dist/src/gen/chat/apis/ServerSideApi.d.ts +0 -31
  45. package/dist/src/gen/chat/apis/SettingsApi.d.ts +0 -257
  46. package/dist/src/gen/chat/apis/TasksApi.d.ts +0 -31
  47. package/dist/src/gen/chat/apis/TestingApi.d.ts +0 -57
  48. package/dist/src/gen/chat/apis/UsersApi.d.ts +0 -313
  49. package/src/gen/chat/apis/ChannelTypesApi.ts +0 -275
  50. package/src/gen/chat/apis/ChannelsApi.ts +0 -1096
  51. package/src/gen/chat/apis/CustomCommandsApi.ts +0 -276
  52. package/src/gen/chat/apis/DefaultApi.ts +0 -196
  53. package/src/gen/chat/apis/DevicesApi.ts +0 -180
  54. package/src/gen/chat/apis/EventsApi.ts +0 -147
  55. package/src/gen/chat/apis/FilesApi.ts +0 -312
  56. package/src/gen/chat/apis/GDPRApi.ts +0 -418
  57. package/src/gen/chat/apis/ImportsApi.ts +0 -222
  58. package/src/gen/chat/apis/MessagesApi.ts +0 -1475
  59. package/src/gen/chat/apis/ModerationApi.ts +0 -1038
  60. package/src/gen/chat/apis/PermissionsV2Api.ts +0 -259
  61. package/src/gen/chat/apis/PushApi.ts +0 -183
  62. package/src/gen/chat/apis/ReactionsApi.ts +0 -202
  63. package/src/gen/chat/apis/ServerSideApi.ts +0 -79
  64. package/src/gen/chat/apis/SettingsApi.ts +0 -948
  65. package/src/gen/chat/apis/TasksApi.ts +0 -75
  66. package/src/gen/chat/apis/TestingApi.ts +0 -185
  67. package/src/gen/chat/apis/UsersApi.ts +0 -1203
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Stream Chat API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: v92.7.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- APIError,
19
- GetTaskResponse,
20
- } from '../models';
21
-
22
- export interface GetTaskRequest {
23
- id: string;
24
- }
25
-
26
- /**
27
- *
28
- */
29
- export class TasksApi extends runtime.BaseAPI {
30
-
31
- /**
32
- * Gets status of a task
33
- * Get status of a task
34
- */
35
- async getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTaskResponse>> {
36
- if (requestParameters.id === null || requestParameters.id === undefined) {
37
- throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling getTask.');
38
- }
39
-
40
- const queryParameters: any = {};
41
-
42
- const headerParameters: runtime.HTTPHeaders = {};
43
-
44
- if (this.configuration && this.configuration.apiKey) {
45
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
46
- }
47
-
48
- if (this.configuration && this.configuration.apiKey) {
49
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
50
- }
51
-
52
- if (this.configuration && this.configuration.apiKey) {
53
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
54
- }
55
-
56
- const response = await this.request({
57
- path: `/tasks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
58
- method: 'GET',
59
- headers: headerParameters,
60
- query: queryParameters,
61
- }, initOverrides);
62
-
63
- return new runtime.JSONApiResponse(response);
64
- }
65
-
66
- /**
67
- * Gets status of a task
68
- * Get status of a task
69
- */
70
- async getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTaskResponse> {
71
- const response = await this.getTaskRaw(requestParameters, initOverrides);
72
- return await response.value();
73
- }
74
-
75
- }
@@ -1,185 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Stream Chat API
5
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
- *
7
- * The version of the OpenAPI document: v92.7.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
- import * as runtime from '../runtime';
17
- import type {
18
- APIError,
19
- CheckPushRequest,
20
- CheckPushResponse,
21
- CheckSNSRequest,
22
- CheckSNSResponse,
23
- CheckSQSRequest,
24
- CheckSQSResponse,
25
- } from '../models';
26
-
27
- export interface CheckPushOperationRequest {
28
- checkPushRequest: CheckPushRequest | null;
29
- }
30
-
31
- export interface CheckSNSOperationRequest {
32
- checkSNSRequest: CheckSNSRequest | null;
33
- }
34
-
35
- export interface CheckSQSOperationRequest {
36
- checkSQSRequest: CheckSQSRequest | null;
37
- }
38
-
39
- /**
40
- *
41
- */
42
- export class TestingApi extends runtime.BaseAPI {
43
-
44
- /**
45
- * Sends a test message via push, this is a test endpoint to verify your push settings
46
- * Check push
47
- */
48
- async checkPushRaw(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckPushResponse>> {
49
- if (requestParameters.checkPushRequest === null || requestParameters.checkPushRequest === undefined) {
50
- throw new runtime.RequiredError('checkPushRequest','Required parameter requestParameters.checkPushRequest was null or undefined when calling checkPush.');
51
- }
52
-
53
- const queryParameters: any = {};
54
-
55
- const headerParameters: runtime.HTTPHeaders = {};
56
-
57
- headerParameters['Content-Type'] = 'application/json';
58
-
59
- if (this.configuration && this.configuration.apiKey) {
60
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
61
- }
62
-
63
- if (this.configuration && this.configuration.apiKey) {
64
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
65
- }
66
-
67
- if (this.configuration && this.configuration.apiKey) {
68
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
69
- }
70
-
71
- const response = await this.request({
72
- path: `/check_push`,
73
- method: 'POST',
74
- headers: headerParameters,
75
- query: queryParameters,
76
- body: requestParameters.checkPushRequest,
77
- }, initOverrides);
78
-
79
- return new runtime.JSONApiResponse(response);
80
- }
81
-
82
- /**
83
- * Sends a test message via push, this is a test endpoint to verify your push settings
84
- * Check push
85
- */
86
- async checkPush(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckPushResponse> {
87
- const response = await this.checkPushRaw(requestParameters, initOverrides);
88
- return await response.value();
89
- }
90
-
91
- /**
92
- * Validates Amazon SNS configuration
93
- * Check SNS
94
- */
95
- async checkSNSRaw(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSNSResponse>> {
96
- if (requestParameters.checkSNSRequest === null || requestParameters.checkSNSRequest === undefined) {
97
- throw new runtime.RequiredError('checkSNSRequest','Required parameter requestParameters.checkSNSRequest was null or undefined when calling checkSNS.');
98
- }
99
-
100
- const queryParameters: any = {};
101
-
102
- const headerParameters: runtime.HTTPHeaders = {};
103
-
104
- headerParameters['Content-Type'] = 'application/json';
105
-
106
- if (this.configuration && this.configuration.apiKey) {
107
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
108
- }
109
-
110
- if (this.configuration && this.configuration.apiKey) {
111
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
112
- }
113
-
114
- if (this.configuration && this.configuration.apiKey) {
115
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
116
- }
117
-
118
- const response = await this.request({
119
- path: `/check_sns`,
120
- method: 'POST',
121
- headers: headerParameters,
122
- query: queryParameters,
123
- body: requestParameters.checkSNSRequest,
124
- }, initOverrides);
125
-
126
- return new runtime.JSONApiResponse(response);
127
- }
128
-
129
- /**
130
- * Validates Amazon SNS configuration
131
- * Check SNS
132
- */
133
- async checkSNS(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSNSResponse> {
134
- const response = await this.checkSNSRaw(requestParameters, initOverrides);
135
- return await response.value();
136
- }
137
-
138
- /**
139
- * Validates Amazon SQS credentials
140
- * Check SQS
141
- */
142
- async checkSQSRaw(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSQSResponse>> {
143
- if (requestParameters.checkSQSRequest === null || requestParameters.checkSQSRequest === undefined) {
144
- throw new runtime.RequiredError('checkSQSRequest','Required parameter requestParameters.checkSQSRequest was null or undefined when calling checkSQS.');
145
- }
146
-
147
- const queryParameters: any = {};
148
-
149
- const headerParameters: runtime.HTTPHeaders = {};
150
-
151
- headerParameters['Content-Type'] = 'application/json';
152
-
153
- if (this.configuration && this.configuration.apiKey) {
154
- headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
155
- }
156
-
157
- if (this.configuration && this.configuration.apiKey) {
158
- queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
159
- }
160
-
161
- if (this.configuration && this.configuration.apiKey) {
162
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
163
- }
164
-
165
- const response = await this.request({
166
- path: `/check_sqs`,
167
- method: 'POST',
168
- headers: headerParameters,
169
- query: queryParameters,
170
- body: requestParameters.checkSQSRequest,
171
- }, initOverrides);
172
-
173
- return new runtime.JSONApiResponse(response);
174
- }
175
-
176
- /**
177
- * Validates Amazon SQS credentials
178
- * Check SQS
179
- */
180
- async checkSQS(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSQSResponse> {
181
- const response = await this.checkSQSRaw(requestParameters, initOverrides);
182
- return await response.value();
183
- }
184
-
185
- }