@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.
- package/README.md +1 -1
- package/dist/index.cjs.js +2461 -2124
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2450 -2109
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +1 -1
- package/dist/src/StreamChannel.d.ts +7 -9
- package/dist/src/StreamChatClient.d.ts +2 -5
- package/dist/src/StreamClient.d.ts +15 -26
- package/dist/src/gen/chat/apis/ProductchatApi.d.ts +1750 -0
- package/dist/src/gen/chat/apis/index.d.ts +1 -27
- package/dist/src/gen/chat/models/index.d.ts +5101 -5891
- package/dist/src/gen/chat/runtime.d.ts +2 -2
- package/dist/src/gen/video/apis/ProductvideoApi.d.ts +1 -1
- package/dist/src/gen/video/models/index.d.ts +189 -35
- package/dist/src/gen/video/runtime.d.ts +1 -1
- package/package.json +8 -1
- package/src/StreamCall.ts +7 -7
- package/src/StreamChannel.ts +44 -49
- package/src/StreamChatClient.ts +23 -35
- package/src/StreamClient.ts +71 -232
- package/src/gen/chat/.openapi-generator/FILES +1 -19
- package/src/gen/chat/apis/ProductchatApi.ts +7007 -0
- package/src/gen/chat/apis/index.ts +1 -27
- package/src/gen/chat/models/index.ts +5758 -6564
- package/src/gen/chat/runtime.ts +3 -3
- package/src/gen/video/apis/ProductvideoApi.ts +1 -1
- package/src/gen/video/models/index.ts +184 -36
- package/src/gen/video/runtime.ts +1 -1
- package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +0 -81
- package/dist/src/gen/chat/apis/ChannelsApi.d.ts +0 -280
- package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +0 -81
- package/dist/src/gen/chat/apis/DefaultApi.d.ts +0 -60
- package/dist/src/gen/chat/apis/DevicesApi.d.ts +0 -58
- package/dist/src/gen/chat/apis/EventsApi.d.ts +0 -47
- package/dist/src/gen/chat/apis/FilesApi.d.ts +0 -85
- package/dist/src/gen/chat/apis/GDPRApi.d.ts +0 -114
- package/dist/src/gen/chat/apis/ImportsApi.d.ts +0 -67
- package/dist/src/gen/chat/apis/MessagesApi.d.ts +0 -374
- package/dist/src/gen/chat/apis/ModerationApi.d.ts +0 -271
- package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +0 -77
- package/dist/src/gen/chat/apis/PushApi.d.ts +0 -65
- package/dist/src/gen/chat/apis/ReactionsApi.d.ts +0 -62
- package/dist/src/gen/chat/apis/ServerSideApi.d.ts +0 -31
- package/dist/src/gen/chat/apis/SettingsApi.d.ts +0 -257
- package/dist/src/gen/chat/apis/TasksApi.d.ts +0 -31
- package/dist/src/gen/chat/apis/TestingApi.d.ts +0 -57
- package/dist/src/gen/chat/apis/UsersApi.d.ts +0 -313
- package/src/gen/chat/apis/ChannelTypesApi.ts +0 -275
- package/src/gen/chat/apis/ChannelsApi.ts +0 -1096
- package/src/gen/chat/apis/CustomCommandsApi.ts +0 -276
- package/src/gen/chat/apis/DefaultApi.ts +0 -196
- package/src/gen/chat/apis/DevicesApi.ts +0 -180
- package/src/gen/chat/apis/EventsApi.ts +0 -147
- package/src/gen/chat/apis/FilesApi.ts +0 -312
- package/src/gen/chat/apis/GDPRApi.ts +0 -418
- package/src/gen/chat/apis/ImportsApi.ts +0 -222
- package/src/gen/chat/apis/MessagesApi.ts +0 -1475
- package/src/gen/chat/apis/ModerationApi.ts +0 -1038
- package/src/gen/chat/apis/PermissionsV2Api.ts +0 -259
- package/src/gen/chat/apis/PushApi.ts +0 -183
- package/src/gen/chat/apis/ReactionsApi.ts +0 -202
- package/src/gen/chat/apis/ServerSideApi.ts +0 -79
- package/src/gen/chat/apis/SettingsApi.ts +0 -948
- package/src/gen/chat/apis/TasksApi.ts +0 -75
- package/src/gen/chat/apis/TestingApi.ts +0 -185
- 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
|
-
}
|