@stream-io/node-sdk 0.1.10 → 0.1.12
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/dist/index.cjs.js +82 -32
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +82 -32
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +2 -2
- package/dist/src/gen/chat/apis/FilesApi.d.ts +5 -1
- package/dist/src/gen/chat/apis/MessagesApi.d.ts +5 -1
- package/dist/src/gen/chat/apis/index.d.ts +8 -0
- package/dist/src/gen/video/apis/DefaultApi.d.ts +21 -6
- package/dist/src/gen/video/apis/ServerSideApi.d.ts +1 -1
- package/dist/src/gen/video/apis/SettingsApi.d.ts +1 -1
- package/dist/src/gen/video/models/index.d.ts +69 -0
- package/dist/src/gen/video/runtime.d.ts +1 -1
- package/package.json +5 -4
- package/src/StreamCall.ts +8 -2
- package/src/StreamChannel.ts +3 -3
- package/src/StreamChatClient.ts +4 -4
- package/src/StreamClient.ts +18 -14
- package/src/gen/chat/apis/FilesApi.ts +2 -2
- package/src/gen/chat/apis/MessagesApi.ts +2 -2
- package/src/gen/chat/apis/index.ts +8 -8
- package/src/gen/video/apis/DefaultApi.ts +68 -5
- package/src/gen/video/apis/ServerSideApi.ts +1 -1
- package/src/gen/video/apis/SettingsApi.ts +1 -1
- package/src/gen/video/models/index.ts +69 -0
- package/src/gen/video/runtime.ts +1 -1
package/dist/src/StreamCall.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StreamClient } from './StreamClient';
|
|
2
|
-
import { GetCallRequest, VideoPinRequest, VideoUnpinRequest, VideoBlockUserRequest, VideoGetOrCreateCallRequest, VideoGoLiveRequest, VideoMuteUsersRequest, VideoUnblockUserRequest, VideoUpdateCallRequest, VideoUpdateCallMembersRequest, VideoUpdateUserPermissionsRequest, VideoQueryMembersRequest, VideoStartRecordingRequest } from './gen/video';
|
|
2
|
+
import { GetCallRequest, VideoPinRequest, VideoUnpinRequest, VideoBlockUserRequest, VideoGetOrCreateCallRequest, VideoGoLiveRequest, VideoMuteUsersRequest, VideoUnblockUserRequest, VideoUpdateCallRequest, VideoUpdateCallMembersRequest, VideoUpdateUserPermissionsRequest, VideoQueryMembersRequest, VideoStartRecordingRequest, VideoStartTranscriptionRequest } from './gen/video';
|
|
3
3
|
import { OmitTypeId } from './types';
|
|
4
4
|
export declare class StreamCall {
|
|
5
5
|
private readonly streamClient;
|
|
@@ -20,7 +20,7 @@ export declare class StreamCall {
|
|
|
20
20
|
sendCustomEvent: (event: Record<string, any>) => Promise<import("./gen/video").VideoSendEventResponse>;
|
|
21
21
|
startHLSBroadcasting: () => Promise<import("./gen/video").VideoStartHLSBroadcastingResponse>;
|
|
22
22
|
startRecording: (request?: VideoStartRecordingRequest) => Promise<import("./gen/video").VideoStartRecordingResponse>;
|
|
23
|
-
startTranscription: () => Promise<import("./gen/video").VideoStartTranscriptionResponse>;
|
|
23
|
+
startTranscription: (videoStartTranscriptionRequest?: VideoStartTranscriptionRequest) => Promise<import("./gen/video").VideoStartTranscriptionResponse>;
|
|
24
24
|
stopHLSBroadcasting: () => Promise<import("./gen/video").VideoStopHLSBroadcastingResponse>;
|
|
25
25
|
stopLive: () => Promise<import("./gen/video").VideoStopLiveResponse>;
|
|
26
26
|
stopRecording: () => Promise<import("./gen/video").VideoStopRecordingResponse>;
|
|
@@ -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,
|
|
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,
|
|
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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { VideoBlockUserRequest, VideoBlockUserResponse, VideoCreateDeviceRequest, VideoCreateGuestRequest, VideoCreateGuestResponse, VideoEndCallResponse, VideoGetCallResponse, VideoGetEdgesResponse, VideoGetOrCreateCallRequest, VideoGetOrCreateCallResponse, VideoGoLiveRequest, VideoGoLiveResponse, VideoListDevicesResponse, VideoListRecordingsResponse, VideoMuteUsersRequest, VideoMuteUsersResponse, VideoPinRequest, VideoPinResponse, VideoQueryCallsRequest, VideoQueryCallsResponse, VideoQueryMembersRequest, VideoQueryMembersResponse, VideoResponse, VideoSendEventRequest, VideoSendEventResponse, VideoStartHLSBroadcastingResponse, VideoStartRecordingRequest, VideoStartRecordingResponse, VideoStartTranscriptionResponse, VideoStopHLSBroadcastingResponse, VideoStopLiveResponse, VideoStopRecordingResponse, VideoStopTranscriptionResponse, VideoUnblockUserRequest, VideoUnblockUserResponse, VideoUnpinRequest, VideoUnpinResponse, VideoUpdateCallMembersRequest, VideoUpdateCallMembersResponse, VideoUpdateCallRequest, VideoUpdateCallResponse, VideoUpdateUserPermissionsRequest, VideoUpdateUserPermissionsResponse, VideoWSAuthMessageRequest } from '../models';
|
|
13
|
+
import type { VideoBlockUserRequest, VideoBlockUserResponse, VideoCreateDeviceRequest, VideoCreateGuestRequest, VideoCreateGuestResponse, VideoEndCallResponse, VideoGetCallResponse, VideoGetEdgesResponse, VideoGetOrCreateCallRequest, VideoGetOrCreateCallResponse, VideoGoLiveRequest, VideoGoLiveResponse, VideoListDevicesResponse, VideoListRecordingsResponse, VideoListTranscriptionsResponse, VideoMuteUsersRequest, VideoMuteUsersResponse, VideoPinRequest, VideoPinResponse, VideoQueryCallsRequest, VideoQueryCallsResponse, VideoQueryMembersRequest, VideoQueryMembersResponse, VideoResponse, VideoSendEventRequest, VideoSendEventResponse, VideoStartHLSBroadcastingResponse, VideoStartRecordingRequest, VideoStartRecordingResponse, VideoStartTranscriptionRequest, VideoStartTranscriptionResponse, VideoStopHLSBroadcastingResponse, VideoStopLiveResponse, VideoStopRecordingResponse, VideoStopTranscriptionResponse, VideoUnblockUserRequest, VideoUnblockUserResponse, VideoUnpinRequest, VideoUnpinResponse, VideoUpdateCallMembersRequest, VideoUpdateCallMembersResponse, VideoUpdateCallRequest, VideoUpdateCallResponse, VideoUpdateUserPermissionsRequest, VideoUpdateUserPermissionsResponse, VideoWSAuthMessageRequest } from '../models';
|
|
14
14
|
export interface BlockUserRequest {
|
|
15
15
|
type: string;
|
|
16
16
|
id: string;
|
|
@@ -56,6 +56,10 @@ export interface ListRecordingsRequest {
|
|
|
56
56
|
type: string;
|
|
57
57
|
id: string;
|
|
58
58
|
}
|
|
59
|
+
export interface ListTranscriptionsRequest {
|
|
60
|
+
type: string;
|
|
61
|
+
id: string;
|
|
62
|
+
}
|
|
59
63
|
export interface MuteUsersRequest {
|
|
60
64
|
type: string;
|
|
61
65
|
id: string;
|
|
@@ -85,6 +89,7 @@ export interface StartRecordingRequest {
|
|
|
85
89
|
export interface StartTranscriptionRequest {
|
|
86
90
|
type: string;
|
|
87
91
|
id: string;
|
|
92
|
+
videoStartTranscriptionRequest: VideoStartTranscriptionRequest | null;
|
|
88
93
|
}
|
|
89
94
|
export interface StopHLSBroadcastingRequest {
|
|
90
95
|
type: string;
|
|
@@ -249,6 +254,16 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
249
254
|
* List recordings
|
|
250
255
|
*/
|
|
251
256
|
listRecordings(requestParameters: ListRecordingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListRecordingsResponse>;
|
|
257
|
+
/**
|
|
258
|
+
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
259
|
+
* List transcriptions
|
|
260
|
+
*/
|
|
261
|
+
listTranscriptionsRaw(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoListTranscriptionsResponse>>;
|
|
262
|
+
/**
|
|
263
|
+
* Lists transcriptions Required permissions: - ListTranscriptions
|
|
264
|
+
* List transcriptions
|
|
265
|
+
*/
|
|
266
|
+
listTranscriptions(requestParameters: ListTranscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoListTranscriptionsResponse>;
|
|
252
267
|
/**
|
|
253
268
|
* Mutes users in a call Required permissions: - MuteUsers
|
|
254
269
|
* Mute users
|
|
@@ -300,12 +315,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
300
315
|
*/
|
|
301
316
|
startHLSBroadcasting(requestParameters: StartHLSBroadcastingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartHLSBroadcastingResponse>;
|
|
302
317
|
/**
|
|
303
|
-
* Starts recording Sends events: - call.recording_started Required permissions: -
|
|
318
|
+
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
304
319
|
* Start recording
|
|
305
320
|
*/
|
|
306
321
|
startRecordingRaw(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStartRecordingResponse>>;
|
|
307
322
|
/**
|
|
308
|
-
* Starts recording Sends events: - call.recording_started Required permissions: -
|
|
323
|
+
* Starts recording Sends events: - call.recording_started Required permissions: - StartRecording
|
|
309
324
|
* Start recording
|
|
310
325
|
*/
|
|
311
326
|
startRecording(requestParameters: StartRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStartRecordingResponse>;
|
|
@@ -350,12 +365,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
350
365
|
*/
|
|
351
366
|
stopRecording(requestParameters: StopRecordingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopRecordingResponse>;
|
|
352
367
|
/**
|
|
353
|
-
* Stops transcription Required permissions: - StopTranscription
|
|
368
|
+
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
354
369
|
* Stop transcription
|
|
355
370
|
*/
|
|
356
371
|
stopTranscriptionRaw(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VideoStopTranscriptionResponse>>;
|
|
357
372
|
/**
|
|
358
|
-
* Stops transcription Required permissions: - StopTranscription
|
|
373
|
+
* Stops transcription Sends events: - call.transcription_stopped Required permissions: - StopTranscription
|
|
359
374
|
* Stop transcription
|
|
360
375
|
*/
|
|
361
376
|
stopTranscription(requestParameters: StopTranscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VideoStopTranscriptionResponse>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -793,6 +793,37 @@ export interface VideoCallStateResponseFields {
|
|
|
793
793
|
*/
|
|
794
794
|
own_capabilities: Array<VideoOwnCapability>;
|
|
795
795
|
}
|
|
796
|
+
/**
|
|
797
|
+
* CallTranscription represents a transcription of a call.
|
|
798
|
+
* @export
|
|
799
|
+
* @interface VideoCallTranscription
|
|
800
|
+
*/
|
|
801
|
+
export interface VideoCallTranscription {
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {string}
|
|
805
|
+
* @memberof VideoCallTranscription
|
|
806
|
+
*/
|
|
807
|
+
end_time: string;
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @type {string}
|
|
811
|
+
* @memberof VideoCallTranscription
|
|
812
|
+
*/
|
|
813
|
+
filename: string;
|
|
814
|
+
/**
|
|
815
|
+
*
|
|
816
|
+
* @type {string}
|
|
817
|
+
* @memberof VideoCallTranscription
|
|
818
|
+
*/
|
|
819
|
+
start_time: string;
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
* @type {string}
|
|
823
|
+
* @memberof VideoCallTranscription
|
|
824
|
+
*/
|
|
825
|
+
url: string;
|
|
826
|
+
}
|
|
796
827
|
/**
|
|
797
828
|
*
|
|
798
829
|
* @export
|
|
@@ -1660,6 +1691,12 @@ export interface VideoGoLiveRequest {
|
|
|
1660
1691
|
* @memberof VideoGoLiveRequest
|
|
1661
1692
|
*/
|
|
1662
1693
|
start_transcription?: boolean;
|
|
1694
|
+
/**
|
|
1695
|
+
*
|
|
1696
|
+
* @type {string}
|
|
1697
|
+
* @memberof VideoGoLiveRequest
|
|
1698
|
+
*/
|
|
1699
|
+
transcription_storage_name?: string;
|
|
1663
1700
|
}
|
|
1664
1701
|
/**
|
|
1665
1702
|
*
|
|
@@ -1906,6 +1943,25 @@ export interface VideoListRecordingsResponse {
|
|
|
1906
1943
|
*/
|
|
1907
1944
|
recordings: Array<VideoCallRecording>;
|
|
1908
1945
|
}
|
|
1946
|
+
/**
|
|
1947
|
+
*
|
|
1948
|
+
* @export
|
|
1949
|
+
* @interface VideoListTranscriptionsResponse
|
|
1950
|
+
*/
|
|
1951
|
+
export interface VideoListTranscriptionsResponse {
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @type {string}
|
|
1955
|
+
* @memberof VideoListTranscriptionsResponse
|
|
1956
|
+
*/
|
|
1957
|
+
duration: string;
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @type {Array<VideoCallTranscription>}
|
|
1961
|
+
* @memberof VideoListTranscriptionsResponse
|
|
1962
|
+
*/
|
|
1963
|
+
transcriptions: Array<VideoCallTranscription>;
|
|
1964
|
+
}
|
|
1909
1965
|
/**
|
|
1910
1966
|
*
|
|
1911
1967
|
* @export
|
|
@@ -2626,6 +2682,19 @@ export interface VideoStartRecordingResponse {
|
|
|
2626
2682
|
*/
|
|
2627
2683
|
duration: string;
|
|
2628
2684
|
}
|
|
2685
|
+
/**
|
|
2686
|
+
*
|
|
2687
|
+
* @export
|
|
2688
|
+
* @interface VideoStartTranscriptionRequest
|
|
2689
|
+
*/
|
|
2690
|
+
export interface VideoStartTranscriptionRequest {
|
|
2691
|
+
/**
|
|
2692
|
+
*
|
|
2693
|
+
* @type {string}
|
|
2694
|
+
* @memberof VideoStartTranscriptionRequest
|
|
2695
|
+
*/
|
|
2696
|
+
transcription_external_storage?: string;
|
|
2697
|
+
}
|
|
2629
2698
|
/**
|
|
2630
2699
|
*
|
|
2631
2700
|
* @export
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Stream API
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document:
|
|
5
|
+
* The version of the OpenAPI document: v100.4.3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stream-io/node-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"test:bun": "bun run vitest",
|
|
19
19
|
"start": "rollup -w -c",
|
|
20
20
|
"build": "rm -rf dist && rollup -c",
|
|
21
|
-
"generate:open-api": "./generate-openapi.sh protocol",
|
|
22
|
-
"generate:open-api:dev": "./generate-openapi.sh chat",
|
|
21
|
+
"generate:open-api": "./generate-openapi.sh protocol $PRODUCT",
|
|
22
|
+
"generate:open-api:dev": "./generate-openapi.sh chat $PRODUCT",
|
|
23
23
|
"lint": "eslint **/*.ts",
|
|
24
24
|
"lint:fix": "eslint --fix **/*.ts",
|
|
25
25
|
"prettier:fix": "prettier . --write"
|
|
@@ -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
|
}
|
package/src/StreamCall.ts
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
VideoUpdateUserPermissionsRequest,
|
|
15
15
|
VideoQueryMembersRequest,
|
|
16
16
|
VideoStartRecordingRequest,
|
|
17
|
+
VideoStartTranscriptionRequest,
|
|
17
18
|
} from './gen/video';
|
|
18
19
|
import { OmitTypeId } from './types';
|
|
19
20
|
|
|
@@ -101,8 +102,13 @@ export class StreamCall {
|
|
|
101
102
|
});
|
|
102
103
|
};
|
|
103
104
|
|
|
104
|
-
startTranscription = (
|
|
105
|
-
|
|
105
|
+
startTranscription = (
|
|
106
|
+
videoStartTranscriptionRequest: VideoStartTranscriptionRequest = {},
|
|
107
|
+
) => {
|
|
108
|
+
return this.apiClient.startTranscription({
|
|
109
|
+
...this.baseRequest,
|
|
110
|
+
videoStartTranscriptionRequest,
|
|
111
|
+
});
|
|
106
112
|
};
|
|
107
113
|
|
|
108
114
|
stopHLSBroadcasting = () => {
|
package/src/StreamChannel.ts
CHANGED
|
@@ -42,11 +42,11 @@ export class StreamChannel {
|
|
|
42
42
|
public id?: string,
|
|
43
43
|
) {
|
|
44
44
|
const configuration = this.streamClient.getConfiguration();
|
|
45
|
-
|
|
45
|
+
/** @ts-expect-error */
|
|
46
46
|
this.channelsApi = new ChannelsApi(configuration);
|
|
47
|
-
|
|
47
|
+
/** @ts-expect-error */
|
|
48
48
|
this.messagesApi = new MessagesApi(configuration);
|
|
49
|
-
|
|
49
|
+
/** @ts-expect-error */
|
|
50
50
|
this.eventsApi = new EventsApi(configuration);
|
|
51
51
|
}
|
|
52
52
|
|
package/src/StreamChatClient.ts
CHANGED
|
@@ -31,13 +31,13 @@ export class StreamChatClient {
|
|
|
31
31
|
|
|
32
32
|
constructor(private readonly streamClient: StreamClient) {
|
|
33
33
|
const configuration = this.streamClient.getConfiguration();
|
|
34
|
-
|
|
34
|
+
/** @ts-expect-error */
|
|
35
35
|
this.settingsApi = new SettingsApi(configuration);
|
|
36
|
-
|
|
36
|
+
/** @ts-expect-error */
|
|
37
37
|
this.channelTypesApi = new ChannelTypesApi(configuration);
|
|
38
|
-
|
|
38
|
+
/** @ts-expect-error */
|
|
39
39
|
this.channelsApi = new ChannelsApi(configuration);
|
|
40
|
-
|
|
40
|
+
/** @ts-expect-error */
|
|
41
41
|
this.commandsApi = new CustomCommandsApi(configuration);
|
|
42
42
|
}
|
|
43
43
|
|
package/src/StreamClient.ts
CHANGED
|
@@ -92,34 +92,38 @@ export class StreamClient {
|
|
|
92
92
|
readonly config?: string | StreamClientOptions,
|
|
93
93
|
) {
|
|
94
94
|
this.token = JWTServerToken(this.secret);
|
|
95
|
-
this.video = new StreamVideoClient(this);
|
|
96
|
-
this.chat = new StreamChatClient(this);
|
|
97
95
|
|
|
98
96
|
if (typeof config === 'string') {
|
|
99
97
|
this.options.basePath = config;
|
|
100
98
|
this.options.timeout = StreamClient.DEFAULT_TIMEOUT;
|
|
101
99
|
} else {
|
|
100
|
+
if (config) {
|
|
101
|
+
this.options = config;
|
|
102
|
+
}
|
|
102
103
|
this.options.timeout = config?.timeout ?? StreamClient.DEFAULT_TIMEOUT;
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
this.video = new StreamVideoClient(this);
|
|
107
|
+
this.chat = new StreamChatClient(this);
|
|
108
|
+
|
|
105
109
|
const chatConfiguration = this.getConfiguration();
|
|
106
|
-
|
|
110
|
+
/** @ts-expect-error */
|
|
107
111
|
this.usersApi = new UsersApi(chatConfiguration);
|
|
108
|
-
|
|
112
|
+
/** @ts-expect-error */
|
|
109
113
|
this.devicesApi = new DevicesApi(chatConfiguration);
|
|
110
|
-
|
|
114
|
+
/** @ts-expect-error */
|
|
111
115
|
this.pushApi = new PushApi(chatConfiguration);
|
|
112
|
-
|
|
116
|
+
/** @ts-expect-error */
|
|
113
117
|
this.serversideApi = new ServerSideApi(chatConfiguration);
|
|
114
|
-
|
|
118
|
+
/** @ts-expect-error */
|
|
115
119
|
this.testingApi = new TestingApi(chatConfiguration);
|
|
116
|
-
|
|
120
|
+
/** @ts-expect-error */
|
|
117
121
|
this.permissionsApi = new PermissionsV2Api(chatConfiguration);
|
|
118
|
-
|
|
122
|
+
/** @ts-expect-error */
|
|
119
123
|
this.settingsApi = new SettingsApi(chatConfiguration);
|
|
120
|
-
|
|
124
|
+
/** @ts-expect-error */
|
|
121
125
|
this.eventsApi = new EventsApi(chatConfiguration);
|
|
122
|
-
|
|
126
|
+
/** @ts-expect-error */
|
|
123
127
|
this.tasksApi = new TasksApi(chatConfiguration);
|
|
124
128
|
}
|
|
125
129
|
|
|
@@ -292,7 +296,7 @@ export class StreamClient {
|
|
|
292
296
|
queryUsers = async (payload: QueryUsersRequest) => {
|
|
293
297
|
payload.user = this.mapCustomDataBeforeSend(payload.user);
|
|
294
298
|
const response = await this.usersApi.queryUsers({ payload });
|
|
295
|
-
|
|
299
|
+
/** @ts-expect-error */
|
|
296
300
|
response.users = response.users.map((u) =>
|
|
297
301
|
this.mapCustomDataAfterReceive(u),
|
|
298
302
|
);
|
|
@@ -349,7 +353,7 @@ export class StreamClient {
|
|
|
349
353
|
users: UpdateUserPartialRequest[];
|
|
350
354
|
}) => {
|
|
351
355
|
const response = await this.usersApi.updateUsersPartial({
|
|
352
|
-
|
|
356
|
+
/** @ts-expect-error */
|
|
353
357
|
updateUserPartialRequest: request,
|
|
354
358
|
});
|
|
355
359
|
Object.keys(response.users).forEach((key) => {
|
|
@@ -572,7 +576,7 @@ export class StreamClient {
|
|
|
572
576
|
if (!user) {
|
|
573
577
|
return undefined;
|
|
574
578
|
}
|
|
575
|
-
|
|
579
|
+
/** @ts-expect-error */
|
|
576
580
|
const result: UserObject | UserResponse = {};
|
|
577
581
|
Object.keys(user).forEach((key) => {
|
|
578
582
|
if (!this.reservedKeywords.includes(key)) {
|
|
@@ -18,10 +18,10 @@ import type {
|
|
|
18
18
|
APIError,
|
|
19
19
|
FileDeleteResponse,
|
|
20
20
|
FileUploadResponse,
|
|
21
|
-
|
|
21
|
+
/** @ts-expect-error */
|
|
22
22
|
ImageSizeRequest,
|
|
23
23
|
ImageUploadResponse,
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
10
|
+
/** @ts-expect-error */
|
|
11
11
|
export * from './GDPRApi';
|
|
12
12
|
export * from './ImportsApi';
|
|
13
|
-
|
|
13
|
+
/** @ts-expect-error */
|
|
14
14
|
export * from './MessagesApi';
|
|
15
|
-
|
|
15
|
+
/** @ts-expect-error */
|
|
16
16
|
export * from './ModerationApi';
|
|
17
17
|
export * from './PermissionsV2Api';
|
|
18
|
-
|
|
18
|
+
/** @ts-expect-error */
|
|
19
19
|
export * from './PushApi';
|
|
20
|
-
|
|
20
|
+
/** @ts-expect-error */
|
|
21
21
|
export * from './ReactionsApi';
|
|
22
22
|
export * from './ServerSideApi';
|
|
23
|
-
|
|
23
|
+
/** @ts-expect-error */
|
|
24
24
|
export * from './SettingsApi';
|
|
25
25
|
export * from './TasksApi';
|
|
26
|
-
|
|
26
|
+
/** @ts-expect-error */
|
|
27
27
|
export * from './TestingApi';
|
|
28
|
-
|
|
28
|
+
/** @ts-expect-error */
|
|
29
29
|
export * from './UsersApi';
|