@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,79 +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
|
-
UpsertPushProviderRequest,
|
|
20
|
-
UpsertPushProviderResponse,
|
|
21
|
-
} from '../models';
|
|
22
|
-
|
|
23
|
-
export interface UpsertPushProviderOperationRequest {
|
|
24
|
-
upsertPushProviderRequest: UpsertPushProviderRequest | null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
export class ServerSideApi extends runtime.BaseAPI {
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Upsert a push provider for v2 with multi bundle/package support
|
|
34
|
-
* Upsert a push provider
|
|
35
|
-
*/
|
|
36
|
-
async upsertPushProviderRaw(requestParameters: UpsertPushProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpsertPushProviderResponse>> {
|
|
37
|
-
if (requestParameters.upsertPushProviderRequest === null || requestParameters.upsertPushProviderRequest === undefined) {
|
|
38
|
-
throw new runtime.RequiredError('upsertPushProviderRequest','Required parameter requestParameters.upsertPushProviderRequest was null or undefined when calling upsertPushProvider.');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const queryParameters: any = {};
|
|
42
|
-
|
|
43
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
44
|
-
|
|
45
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
-
|
|
47
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
48
|
-
headerParameters["Stream-Auth-Type"] = this.configuration.apiKey("Stream-Auth-Type"); // stream-auth-type authentication
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
52
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // api_key authentication
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
56
|
-
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // JWT authentication
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const response = await this.request({
|
|
60
|
-
path: `/push_providers`,
|
|
61
|
-
method: 'POST',
|
|
62
|
-
headers: headerParameters,
|
|
63
|
-
query: queryParameters,
|
|
64
|
-
body: requestParameters.upsertPushProviderRequest,
|
|
65
|
-
}, initOverrides);
|
|
66
|
-
|
|
67
|
-
return new runtime.JSONApiResponse(response);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Upsert a push provider for v2 with multi bundle/package support
|
|
72
|
-
* Upsert a push provider
|
|
73
|
-
*/
|
|
74
|
-
async upsertPushProvider(requestParameters: UpsertPushProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpsertPushProviderResponse> {
|
|
75
|
-
const response = await this.upsertPushProviderRaw(requestParameters, initOverrides);
|
|
76
|
-
return await response.value();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
}
|