@stream-io/node-sdk 0.1.0
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-assets/Github-Graphic-JS.jpg +0 -0
- package/LICENSE +219 -0
- package/README.md +29 -0
- package/dist/__tests__/block-lists.test.d.ts +1 -0
- package/dist/__tests__/call-members.test.d.ts +1 -0
- package/dist/__tests__/call-types.test.d.ts +1 -0
- package/dist/__tests__/call.test.d.ts +1 -0
- package/dist/__tests__/channel-types.test.d.ts +1 -0
- package/dist/__tests__/channel.test.d.ts +1 -0
- package/dist/__tests__/command.test.d.ts +1 -0
- package/dist/__tests__/create-token.test.d.ts +1 -0
- package/dist/__tests__/devices-push.test.d.ts +1 -0
- package/dist/__tests__/messages.test.d.ts +1 -0
- package/dist/__tests__/permissions-app-settings.test.d.ts +1 -0
- package/dist/__tests__/user-compat.test.d.ts +1 -0
- package/dist/__tests__/users.test.d.ts +1 -0
- package/dist/index.cjs.js +8789 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +8708 -0
- package/dist/index.es.js.map +1 -0
- package/dist/src/StreamCall.d.ts +37 -0
- package/dist/src/StreamChannel.d.ts +39 -0
- package/dist/src/StreamChatClient.d.ts +31 -0
- package/dist/src/StreamClient.d.ts +68 -0
- package/dist/src/StreamVideoClient.d.ts +16 -0
- package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +81 -0
- package/dist/src/gen/chat/apis/ChannelsApi.d.ts +308 -0
- package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +81 -0
- package/dist/src/gen/chat/apis/DefaultApi.d.ts +60 -0
- package/dist/src/gen/chat/apis/DevicesApi.d.ts +58 -0
- package/dist/src/gen/chat/apis/EventsApi.d.ts +64 -0
- package/dist/src/gen/chat/apis/FilesApi.d.ts +81 -0
- package/dist/src/gen/chat/apis/GDPRApi.d.ts +114 -0
- package/dist/src/gen/chat/apis/ImportsApi.d.ts +67 -0
- package/dist/src/gen/chat/apis/MessagesApi.d.ts +370 -0
- package/dist/src/gen/chat/apis/ModerationApi.d.ts +271 -0
- package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +77 -0
- package/dist/src/gen/chat/apis/PushApi.d.ts +65 -0
- package/dist/src/gen/chat/apis/ReactionsApi.d.ts +62 -0
- package/dist/src/gen/chat/apis/ServerSideApi.d.ts +31 -0
- package/dist/src/gen/chat/apis/SettingsApi.d.ts +257 -0
- package/dist/src/gen/chat/apis/TasksApi.d.ts +31 -0
- package/dist/src/gen/chat/apis/TestingApi.d.ts +57 -0
- package/dist/src/gen/chat/apis/UsersApi.d.ts +313 -0
- package/dist/src/gen/chat/apis/index.d.ts +19 -0
- package/dist/src/gen/chat/index.d.ts +3 -0
- package/dist/src/gen/chat/models/index.d.ts +15624 -0
- package/dist/src/gen/chat/runtime.d.ts +180 -0
- package/dist/src/gen/video/apis/DefaultApi.d.ts +505 -0
- package/dist/src/gen/video/apis/ServerSideApi.d.ts +81 -0
- package/dist/src/gen/video/apis/index.d.ts +2 -0
- package/dist/src/gen/video/index.d.ts +3 -0
- package/dist/src/gen/video/models/index.d.ts +4733 -0
- package/dist/src/gen/video/runtime.d.ts +180 -0
- package/dist/src/types.d.ts +1 -0
- package/dist/src/utils/create-token.d.ts +3 -0
- package/index.ts +7 -0
- package/package.json +47 -0
- package/src/StreamCall.ts +161 -0
- package/src/StreamChannel.ts +165 -0
- package/src/StreamChatClient.ts +102 -0
- package/src/StreamClient.ts +440 -0
- package/src/StreamVideoClient.ts +63 -0
- package/src/gen/chat/.openapi-generator/FILES +24 -0
- package/src/gen/chat/.openapi-generator/VERSION +1 -0
- package/src/gen/chat/.openapi-generator-ignore +23 -0
- package/src/gen/chat/apis/ChannelTypesApi.ts +275 -0
- package/src/gen/chat/apis/ChannelsApi.ts +1221 -0
- package/src/gen/chat/apis/CustomCommandsApi.ts +276 -0
- package/src/gen/chat/apis/DefaultApi.ts +196 -0
- package/src/gen/chat/apis/DevicesApi.ts +180 -0
- package/src/gen/chat/apis/EventsApi.ts +220 -0
- package/src/gen/chat/apis/FilesApi.ts +312 -0
- package/src/gen/chat/apis/GDPRApi.ts +418 -0
- package/src/gen/chat/apis/ImportsApi.ts +222 -0
- package/src/gen/chat/apis/MessagesApi.ts +1475 -0
- package/src/gen/chat/apis/ModerationApi.ts +1038 -0
- package/src/gen/chat/apis/PermissionsV2Api.ts +259 -0
- package/src/gen/chat/apis/PushApi.ts +183 -0
- package/src/gen/chat/apis/ReactionsApi.ts +202 -0
- package/src/gen/chat/apis/ServerSideApi.ts +79 -0
- package/src/gen/chat/apis/SettingsApi.ts +948 -0
- package/src/gen/chat/apis/TasksApi.ts +75 -0
- package/src/gen/chat/apis/TestingApi.ts +185 -0
- package/src/gen/chat/apis/UsersApi.ts +1203 -0
- package/src/gen/chat/apis/index.ts +30 -0
- package/src/gen/chat/index.ts +5 -0
- package/src/gen/chat/models/index.ts +15541 -0
- package/src/gen/chat/runtime.ts +415 -0
- package/src/gen/video/.openapi-generator/FILES +7 -0
- package/src/gen/video/.openapi-generator/VERSION +1 -0
- package/src/gen/video/.openapi-generator-ignore +23 -0
- package/src/gen/video/apis/DefaultApi.ts +1997 -0
- package/src/gen/video/apis/ServerSideApi.ts +276 -0
- package/src/gen/video/apis/index.ts +4 -0
- package/src/gen/video/index.ts +5 -0
- package/src/gen/video/models/index.ts +4642 -0
- package/src/gen/video/runtime.ts +415 -0
- package/src/types.ts +1 -0
- package/src/utils/create-token.ts +49 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Chat API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v89.9.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateRoleRequest, CreateRoleResponse, GetCustomPermissionResponse, ListPermissionsResponse, ListRolesResponse, Response } from '../models';
|
|
14
|
+
export interface CreateRoleOperationRequest {
|
|
15
|
+
createRoleRequest: CreateRoleRequest | null;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteRoleRequest {
|
|
18
|
+
name: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetPermissionRequest {
|
|
21
|
+
id: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class PermissionsV2Api extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Creates custom role
|
|
29
|
+
* Create role
|
|
30
|
+
*/
|
|
31
|
+
createRoleRaw(requestParameters: CreateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateRoleResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Creates custom role
|
|
34
|
+
* Create role
|
|
35
|
+
*/
|
|
36
|
+
createRole(requestParameters: CreateRoleOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateRoleResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Deletes custom role
|
|
39
|
+
* Delete role
|
|
40
|
+
*/
|
|
41
|
+
deleteRoleRaw(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
42
|
+
/**
|
|
43
|
+
* Deletes custom role
|
|
44
|
+
* Delete role
|
|
45
|
+
*/
|
|
46
|
+
deleteRole(requestParameters: DeleteRoleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets custom permission
|
|
49
|
+
* Get permission
|
|
50
|
+
*/
|
|
51
|
+
getPermissionRaw(requestParameters: GetPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCustomPermissionResponse>>;
|
|
52
|
+
/**
|
|
53
|
+
* Gets custom permission
|
|
54
|
+
* Get permission
|
|
55
|
+
*/
|
|
56
|
+
getPermission(requestParameters: GetPermissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCustomPermissionResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Lists all available permissions
|
|
59
|
+
* List permissions
|
|
60
|
+
*/
|
|
61
|
+
listPermissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPermissionsResponse>>;
|
|
62
|
+
/**
|
|
63
|
+
* Lists all available permissions
|
|
64
|
+
* List permissions
|
|
65
|
+
*/
|
|
66
|
+
listPermissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPermissionsResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Lists all available roles
|
|
69
|
+
* List roles
|
|
70
|
+
*/
|
|
71
|
+
listRolesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListRolesResponse>>;
|
|
72
|
+
/**
|
|
73
|
+
* Lists all available roles
|
|
74
|
+
* List roles
|
|
75
|
+
*/
|
|
76
|
+
listRoles(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListRolesResponse>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Chat API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v89.9.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CreateDeviceRequest, ListPushProvidersResponse, Response } from '../models';
|
|
14
|
+
export interface CreateDeviceOperationRequest {
|
|
15
|
+
createDeviceRequest: CreateDeviceRequest | null;
|
|
16
|
+
}
|
|
17
|
+
export interface DeletePushProviderRequest {
|
|
18
|
+
type: DeletePushProviderTypeEnum;
|
|
19
|
+
name: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class PushApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Adds a new device to a user, if the same device already exists the call will have no effect
|
|
27
|
+
* Create device
|
|
28
|
+
*/
|
|
29
|
+
createDeviceRaw(requestParameters: CreateDeviceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
30
|
+
/**
|
|
31
|
+
* Adds a new device to a user, if the same device already exists the call will have no effect
|
|
32
|
+
* Create device
|
|
33
|
+
*/
|
|
34
|
+
createDevice(requestParameters: CreateDeviceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Delete a push provider from v2 with multi bundle/package support. v1 isn\'t supported in this endpoint
|
|
37
|
+
* Delete a push provider
|
|
38
|
+
*/
|
|
39
|
+
deletePushProviderRaw(requestParameters: DeletePushProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
40
|
+
/**
|
|
41
|
+
* Delete a push provider from v2 with multi bundle/package support. v1 isn\'t supported in this endpoint
|
|
42
|
+
* Delete a push provider
|
|
43
|
+
*/
|
|
44
|
+
deletePushProvider(requestParameters: DeletePushProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
45
|
+
/**
|
|
46
|
+
* List details of all push providers.
|
|
47
|
+
* List push providers
|
|
48
|
+
*/
|
|
49
|
+
listPushProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPushProvidersResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* List details of all push providers.
|
|
52
|
+
* List push providers
|
|
53
|
+
*/
|
|
54
|
+
listPushProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPushProvidersResponse>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @export
|
|
58
|
+
*/
|
|
59
|
+
export declare const DeletePushProviderTypeEnum: {
|
|
60
|
+
readonly APN: "apn";
|
|
61
|
+
readonly FIREBASE: "firebase";
|
|
62
|
+
readonly HUAWEI: "huawei";
|
|
63
|
+
readonly XIAOMI: "xiaomi";
|
|
64
|
+
};
|
|
65
|
+
export type DeletePushProviderTypeEnum = typeof DeletePushProviderTypeEnum[keyof typeof DeletePushProviderTypeEnum];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Chat API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v89.9.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { GetReactionsResponse, ReactionRemovalResponse, ReactionResponse, SendReactionRequest } from '../models';
|
|
14
|
+
export interface DeleteReactionRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
userId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetReactionsRequest {
|
|
20
|
+
id: string;
|
|
21
|
+
limit?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface SendReactionOperationRequest {
|
|
25
|
+
id: string;
|
|
26
|
+
sendReactionRequest: SendReactionRequest | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class ReactionsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Removes user reaction from the message Sends events: - reaction.deleted Required permissions: - DeleteReaction
|
|
34
|
+
* Delete reaction
|
|
35
|
+
*/
|
|
36
|
+
deleteReactionRaw(requestParameters: DeleteReactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReactionRemovalResponse>>;
|
|
37
|
+
/**
|
|
38
|
+
* Removes user reaction from the message Sends events: - reaction.deleted Required permissions: - DeleteReaction
|
|
39
|
+
* Delete reaction
|
|
40
|
+
*/
|
|
41
|
+
deleteReaction(requestParameters: DeleteReactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReactionRemovalResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns list of reactions of specific message Required permissions: - ReadChannel
|
|
44
|
+
* Get reactions
|
|
45
|
+
*/
|
|
46
|
+
getReactionsRaw(requestParameters: GetReactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetReactionsResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Returns list of reactions of specific message Required permissions: - ReadChannel
|
|
49
|
+
* Get reactions
|
|
50
|
+
*/
|
|
51
|
+
getReactions(requestParameters: GetReactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetReactionsResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Sends reaction to specified message Sends events: - reaction.new - reaction.updated Required permissions: - CreateReaction - UseFrozenChannel
|
|
54
|
+
* Send reaction
|
|
55
|
+
*/
|
|
56
|
+
sendReactionRaw(requestParameters: SendReactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReactionResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Sends reaction to specified message Sends events: - reaction.new - reaction.updated Required permissions: - CreateReaction - UseFrozenChannel
|
|
59
|
+
* Send reaction
|
|
60
|
+
*/
|
|
61
|
+
sendReaction(requestParameters: SendReactionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReactionResponse>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Chat API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v89.9.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { UpsertPushProviderRequest, UpsertPushProviderResponse } from '../models';
|
|
14
|
+
export interface UpsertPushProviderOperationRequest {
|
|
15
|
+
upsertPushProviderRequest: UpsertPushProviderRequest | null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class ServerSideApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Upsert a push provider for v2 with multi bundle/package support
|
|
23
|
+
* Upsert a push provider
|
|
24
|
+
*/
|
|
25
|
+
upsertPushProviderRaw(requestParameters: UpsertPushProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpsertPushProviderResponse>>;
|
|
26
|
+
/**
|
|
27
|
+
* Upsert a push provider for v2 with multi bundle/package support
|
|
28
|
+
* Upsert a push provider
|
|
29
|
+
*/
|
|
30
|
+
upsertPushProvider(requestParameters: UpsertPushProviderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpsertPushProviderResponse>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Chat API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v89.9.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse, CreateBlockListRequest, CreateChannelTypeRequest, CreateChannelTypeResponse, GetApplicationResponse, GetBlockListResponse, GetRateLimitsResponse, ListBlockListResponse, ListChannelTypesResponse, ListPushProvidersResponse, Response, UpdateAppRequest, UpdateBlockListRequest, UpdateChannelTypeRequest, UpdateChannelTypeResponse } from '../models';
|
|
14
|
+
export interface CheckPushOperationRequest {
|
|
15
|
+
checkPushRequest: CheckPushRequest | null;
|
|
16
|
+
}
|
|
17
|
+
export interface CheckSNSOperationRequest {
|
|
18
|
+
checkSNSRequest: CheckSNSRequest | null;
|
|
19
|
+
}
|
|
20
|
+
export interface CheckSQSOperationRequest {
|
|
21
|
+
checkSQSRequest: CheckSQSRequest | null;
|
|
22
|
+
}
|
|
23
|
+
export interface CreateBlockListOperationRequest {
|
|
24
|
+
createBlockListRequest: CreateBlockListRequest | null;
|
|
25
|
+
}
|
|
26
|
+
export interface CreateChannelTypeOperationRequest {
|
|
27
|
+
createChannelTypeRequest: CreateChannelTypeRequest | null;
|
|
28
|
+
}
|
|
29
|
+
export interface DeleteBlockListRequest {
|
|
30
|
+
name: string;
|
|
31
|
+
}
|
|
32
|
+
export interface DeleteChannelTypeRequest {
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
export interface DeletePushProviderRequest {
|
|
36
|
+
type: DeletePushProviderTypeEnum;
|
|
37
|
+
name: string;
|
|
38
|
+
}
|
|
39
|
+
export interface GetBlockListRequest {
|
|
40
|
+
name: string;
|
|
41
|
+
}
|
|
42
|
+
export interface GetChannelTypeRequest {
|
|
43
|
+
name: string;
|
|
44
|
+
}
|
|
45
|
+
export interface GetRateLimitsRequest {
|
|
46
|
+
serverSide?: boolean;
|
|
47
|
+
android?: boolean;
|
|
48
|
+
ios?: boolean;
|
|
49
|
+
web?: boolean;
|
|
50
|
+
endpoints?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface UpdateAppOperationRequest {
|
|
53
|
+
updateAppRequest: UpdateAppRequest | null;
|
|
54
|
+
}
|
|
55
|
+
export interface UpdateBlockListOperationRequest {
|
|
56
|
+
name: string;
|
|
57
|
+
updateBlockListRequest: UpdateBlockListRequest | null;
|
|
58
|
+
}
|
|
59
|
+
export interface UpdateChannelTypeOperationRequest {
|
|
60
|
+
name: string;
|
|
61
|
+
updateChannelTypeRequest: UpdateChannelTypeRequest | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export declare class SettingsApi extends runtime.BaseAPI {
|
|
67
|
+
/**
|
|
68
|
+
* Sends a test message via push, this is a test endpoint to verify your push settings
|
|
69
|
+
* Check push
|
|
70
|
+
*/
|
|
71
|
+
checkPushRaw(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckPushResponse>>;
|
|
72
|
+
/**
|
|
73
|
+
* Sends a test message via push, this is a test endpoint to verify your push settings
|
|
74
|
+
* Check push
|
|
75
|
+
*/
|
|
76
|
+
checkPush(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckPushResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Validates Amazon SNS configuration
|
|
79
|
+
* Check SNS
|
|
80
|
+
*/
|
|
81
|
+
checkSNSRaw(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSNSResponse>>;
|
|
82
|
+
/**
|
|
83
|
+
* Validates Amazon SNS configuration
|
|
84
|
+
* Check SNS
|
|
85
|
+
*/
|
|
86
|
+
checkSNS(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSNSResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Validates Amazon SQS credentials
|
|
89
|
+
* Check SQS
|
|
90
|
+
*/
|
|
91
|
+
checkSQSRaw(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSQSResponse>>;
|
|
92
|
+
/**
|
|
93
|
+
* Validates Amazon SQS credentials
|
|
94
|
+
* Check SQS
|
|
95
|
+
*/
|
|
96
|
+
checkSQS(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSQSResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* Creates a new application blocklist, once created the blocklist can be used by any channel type
|
|
99
|
+
* Create block list
|
|
100
|
+
*/
|
|
101
|
+
createBlockListRaw(requestParameters: CreateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
102
|
+
/**
|
|
103
|
+
* Creates a new application blocklist, once created the blocklist can be used by any channel type
|
|
104
|
+
* Create block list
|
|
105
|
+
*/
|
|
106
|
+
createBlockList(requestParameters: CreateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
107
|
+
/**
|
|
108
|
+
* Creates new channel type
|
|
109
|
+
* Create channel type
|
|
110
|
+
*/
|
|
111
|
+
createChannelTypeRaw(requestParameters: CreateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateChannelTypeResponse>>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates new channel type
|
|
114
|
+
* Create channel type
|
|
115
|
+
*/
|
|
116
|
+
createChannelType(requestParameters: CreateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateChannelTypeResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* Deletes previously created application blocklist
|
|
119
|
+
* Delete block list
|
|
120
|
+
*/
|
|
121
|
+
deleteBlockListRaw(requestParameters: DeleteBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
122
|
+
/**
|
|
123
|
+
* Deletes previously created application blocklist
|
|
124
|
+
* Delete block list
|
|
125
|
+
*/
|
|
126
|
+
deleteBlockList(requestParameters: DeleteBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
127
|
+
/**
|
|
128
|
+
* Deletes channel type
|
|
129
|
+
* Delete channel type
|
|
130
|
+
*/
|
|
131
|
+
deleteChannelTypeRaw(requestParameters: DeleteChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
132
|
+
/**
|
|
133
|
+
* Deletes channel type
|
|
134
|
+
* Delete channel type
|
|
135
|
+
*/
|
|
136
|
+
deleteChannelType(requestParameters: DeleteChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
137
|
+
/**
|
|
138
|
+
* Delete a push provider from v2 with multi bundle/package support. v1 isn\'t supported in this endpoint
|
|
139
|
+
* Delete a push provider
|
|
140
|
+
*/
|
|
141
|
+
deletePushProviderRaw(requestParameters: DeletePushProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
142
|
+
/**
|
|
143
|
+
* Delete a push provider from v2 with multi bundle/package support. v1 isn\'t supported in this endpoint
|
|
144
|
+
* Delete a push provider
|
|
145
|
+
*/
|
|
146
|
+
deletePushProvider(requestParameters: DeletePushProviderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
147
|
+
/**
|
|
148
|
+
* This method returns the application settings
|
|
149
|
+
* Get App Settings
|
|
150
|
+
*/
|
|
151
|
+
getAppRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetApplicationResponse>>;
|
|
152
|
+
/**
|
|
153
|
+
* This method returns the application settings
|
|
154
|
+
* Get App Settings
|
|
155
|
+
*/
|
|
156
|
+
getApp(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetApplicationResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* Returns block list by given name
|
|
159
|
+
* Get block list
|
|
160
|
+
*/
|
|
161
|
+
getBlockListRaw(requestParameters: GetBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBlockListResponse>>;
|
|
162
|
+
/**
|
|
163
|
+
* Returns block list by given name
|
|
164
|
+
* Get block list
|
|
165
|
+
*/
|
|
166
|
+
getBlockList(requestParameters: GetBlockListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBlockListResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* Gets channel type
|
|
169
|
+
* Get channel type
|
|
170
|
+
*/
|
|
171
|
+
getChannelTypeRaw(requestParameters: GetChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
172
|
+
/**
|
|
173
|
+
* Gets channel type
|
|
174
|
+
* Get channel type
|
|
175
|
+
*/
|
|
176
|
+
getChannelType(requestParameters: GetChannelTypeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
177
|
+
/**
|
|
178
|
+
* Get rate limits usage and quotas
|
|
179
|
+
* Get rate limits
|
|
180
|
+
*/
|
|
181
|
+
getRateLimitsRaw(requestParameters: GetRateLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRateLimitsResponse>>;
|
|
182
|
+
/**
|
|
183
|
+
* Get rate limits usage and quotas
|
|
184
|
+
* Get rate limits
|
|
185
|
+
*/
|
|
186
|
+
getRateLimits(requestParameters?: GetRateLimitsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRateLimitsResponse>;
|
|
187
|
+
/**
|
|
188
|
+
* Returns all available block lists
|
|
189
|
+
* List block lists
|
|
190
|
+
*/
|
|
191
|
+
listBlockListsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBlockListResponse>>;
|
|
192
|
+
/**
|
|
193
|
+
* Returns all available block lists
|
|
194
|
+
* List block lists
|
|
195
|
+
*/
|
|
196
|
+
listBlockLists(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBlockListResponse>;
|
|
197
|
+
/**
|
|
198
|
+
* Lists all available channel types
|
|
199
|
+
* List channel types
|
|
200
|
+
*/
|
|
201
|
+
listChannelTypesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListChannelTypesResponse>>;
|
|
202
|
+
/**
|
|
203
|
+
* Lists all available channel types
|
|
204
|
+
* List channel types
|
|
205
|
+
*/
|
|
206
|
+
listChannelTypes(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListChannelTypesResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* List details of all push providers.
|
|
209
|
+
* List push providers
|
|
210
|
+
*/
|
|
211
|
+
listPushProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListPushProvidersResponse>>;
|
|
212
|
+
/**
|
|
213
|
+
* List details of all push providers.
|
|
214
|
+
* List push providers
|
|
215
|
+
*/
|
|
216
|
+
listPushProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPushProvidersResponse>;
|
|
217
|
+
/**
|
|
218
|
+
* This method updates one or more application settings
|
|
219
|
+
* Update App Settings
|
|
220
|
+
*/
|
|
221
|
+
updateAppRaw(requestParameters: UpdateAppOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
222
|
+
/**
|
|
223
|
+
* This method updates one or more application settings
|
|
224
|
+
* Update App Settings
|
|
225
|
+
*/
|
|
226
|
+
updateApp(requestParameters: UpdateAppOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
227
|
+
/**
|
|
228
|
+
* Updates contents of the block list
|
|
229
|
+
* Update block list
|
|
230
|
+
*/
|
|
231
|
+
updateBlockListRaw(requestParameters: UpdateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Response>>;
|
|
232
|
+
/**
|
|
233
|
+
* Updates contents of the block list
|
|
234
|
+
* Update block list
|
|
235
|
+
*/
|
|
236
|
+
updateBlockList(requestParameters: UpdateBlockListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Response>;
|
|
237
|
+
/**
|
|
238
|
+
* Updates channel type
|
|
239
|
+
* Update channel type
|
|
240
|
+
*/
|
|
241
|
+
updateChannelTypeRaw(requestParameters: UpdateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateChannelTypeResponse>>;
|
|
242
|
+
/**
|
|
243
|
+
* Updates channel type
|
|
244
|
+
* Update channel type
|
|
245
|
+
*/
|
|
246
|
+
updateChannelType(requestParameters: UpdateChannelTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateChannelTypeResponse>;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* @export
|
|
250
|
+
*/
|
|
251
|
+
export declare const DeletePushProviderTypeEnum: {
|
|
252
|
+
readonly APN: "apn";
|
|
253
|
+
readonly FIREBASE: "firebase";
|
|
254
|
+
readonly HUAWEI: "huawei";
|
|
255
|
+
readonly XIAOMI: "xiaomi";
|
|
256
|
+
};
|
|
257
|
+
export type DeletePushProviderTypeEnum = typeof DeletePushProviderTypeEnum[keyof typeof DeletePushProviderTypeEnum];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Chat API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v89.9.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { GetTaskResponse } from '../models';
|
|
14
|
+
export interface GetTaskRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class TasksApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Gets status of a task
|
|
23
|
+
* Get status of a task
|
|
24
|
+
*/
|
|
25
|
+
getTaskRaw(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetTaskResponse>>;
|
|
26
|
+
/**
|
|
27
|
+
* Gets status of a task
|
|
28
|
+
* Get status of a task
|
|
29
|
+
*/
|
|
30
|
+
getTask(requestParameters: GetTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetTaskResponse>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stream Chat API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v89.9.2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CheckPushRequest, CheckPushResponse, CheckSNSRequest, CheckSNSResponse, CheckSQSRequest, CheckSQSResponse } from '../models';
|
|
14
|
+
export interface CheckPushOperationRequest {
|
|
15
|
+
checkPushRequest: CheckPushRequest | null;
|
|
16
|
+
}
|
|
17
|
+
export interface CheckSNSOperationRequest {
|
|
18
|
+
checkSNSRequest: CheckSNSRequest | null;
|
|
19
|
+
}
|
|
20
|
+
export interface CheckSQSOperationRequest {
|
|
21
|
+
checkSQSRequest: CheckSQSRequest | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class TestingApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* Sends a test message via push, this is a test endpoint to verify your push settings
|
|
29
|
+
* Check push
|
|
30
|
+
*/
|
|
31
|
+
checkPushRaw(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckPushResponse>>;
|
|
32
|
+
/**
|
|
33
|
+
* Sends a test message via push, this is a test endpoint to verify your push settings
|
|
34
|
+
* Check push
|
|
35
|
+
*/
|
|
36
|
+
checkPush(requestParameters: CheckPushOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckPushResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Validates Amazon SNS configuration
|
|
39
|
+
* Check SNS
|
|
40
|
+
*/
|
|
41
|
+
checkSNSRaw(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSNSResponse>>;
|
|
42
|
+
/**
|
|
43
|
+
* Validates Amazon SNS configuration
|
|
44
|
+
* Check SNS
|
|
45
|
+
*/
|
|
46
|
+
checkSNS(requestParameters: CheckSNSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSNSResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Validates Amazon SQS credentials
|
|
49
|
+
* Check SQS
|
|
50
|
+
*/
|
|
51
|
+
checkSQSRaw(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CheckSQSResponse>>;
|
|
52
|
+
/**
|
|
53
|
+
* Validates Amazon SQS credentials
|
|
54
|
+
* Check SQS
|
|
55
|
+
*/
|
|
56
|
+
checkSQS(requestParameters: CheckSQSOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckSQSResponse>;
|
|
57
|
+
}
|