szpt-driver-api 1.0.69 → 1.0.71

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.
@@ -0,0 +1,565 @@
1
+ export declare class Channel {
2
+ channelName: string;
3
+ /** @format int32 */
4
+ userCount: number;
5
+ }
6
+ export declare class ChannelUserListBagEx {
7
+ audience: string[];
8
+ /** @format int32 */
9
+ audienceTotal: number;
10
+ /** audience对应的用户名列表 */
11
+ audienceUsernames: string[];
12
+ /** broadcasters对应的用户名列表 */
13
+ broadcasterUsernames: string[];
14
+ broadcasters: string[];
15
+ channelExist: boolean;
16
+ /** @format int32 */
17
+ mode: number;
18
+ /** @format int64 */
19
+ total: number;
20
+ /** users对应的用户名列表 */
21
+ userUsernames: string[];
22
+ users: string[];
23
+ }
24
+ export declare type InputStream = any;
25
+ export declare class KickUserResponse {
26
+ /** @format int64 */
27
+ id: number;
28
+ status: string;
29
+ }
30
+ export declare class PageResultChannel {
31
+ list: Channel[];
32
+ /** @format int64 */
33
+ total: number;
34
+ }
35
+ export declare class Project {
36
+ /** @format int64 */
37
+ created: number;
38
+ /** @format date-time */
39
+ createdTime: string;
40
+ id: string;
41
+ name: string;
42
+ signKey: string;
43
+ /** @format int32 */
44
+ status: number;
45
+ vendorKey: string;
46
+ }
47
+ export declare class RecordMigrateResult {
48
+ channel: string;
49
+ details: UploadResult[];
50
+ }
51
+ export declare class RecordRequest {
52
+ /** 应用ID */
53
+ appId?: string;
54
+ /** 频道ID */
55
+ channel?: string;
56
+ /** 频道场景。0:(默认)通信场景,1: 直播场景 */
57
+ channelProfile?: string;
58
+ /**
59
+ * 自动停止录制时间
60
+ * @format int32
61
+ */
62
+ idle?: number;
63
+ /**
64
+ * 录制模式: 1 单流模式、2 合流模式
65
+ * @pattern [12]
66
+ */
67
+ mode?: string;
68
+ /** 远程录制地址 */
69
+ remoteHost?: string;
70
+ /**
71
+ * 远程录制模式。默认为false
72
+ * @example false
73
+ */
74
+ remoteMode?: boolean;
75
+ /** 合录模式下的绘制模式。0:(默认)画面裁剪,1: 画面压缩 */
76
+ renderMode?: string;
77
+ /** 录制分辨率 */
78
+ resolution?: string;
79
+ }
80
+ export declare class Recording {
81
+ /**
82
+ * 是否归档
83
+ * @example false
84
+ */
85
+ migrated: boolean;
86
+ /** 对象ID */
87
+ objectId: string;
88
+ /** 路径 */
89
+ path: string;
90
+ /**
91
+ * 大小
92
+ * @format int64
93
+ */
94
+ size: number;
95
+ /**
96
+ * 时间
97
+ * @format date-time
98
+ */
99
+ time: string;
100
+ /** 用户 */
101
+ user: string;
102
+ }
103
+ export declare class RecordingSets {
104
+ /** 应用ID */
105
+ appId: string;
106
+ /** 频道 */
107
+ channel: string;
108
+ /** 频道配置 */
109
+ channelProfile: string;
110
+ /**
111
+ * 是否录制完成
112
+ * @example false
113
+ */
114
+ done: boolean;
115
+ /** 录制实例 */
116
+ instance: string;
117
+ /** 模式 */
118
+ mode: string;
119
+ /** 录制记录 */
120
+ records: Recording[];
121
+ /** 渲染模式 */
122
+ renderMode: string;
123
+ /**
124
+ * 开始时间
125
+ * @format date-time
126
+ */
127
+ startTime: string;
128
+ }
129
+ export declare class Resource {
130
+ description: string;
131
+ /** @format binary */
132
+ file: File;
133
+ filename: string;
134
+ inputStream: InputStream;
135
+ open: boolean;
136
+ readable: boolean;
137
+ /** @format uri */
138
+ uri: string;
139
+ /** @format url */
140
+ url: string;
141
+ }
142
+ export declare class Token {
143
+ token: string;
144
+ }
145
+ export declare class UploadResult {
146
+ error: string;
147
+ objectId: string;
148
+ success: boolean;
149
+ }
150
+ export declare class UserStatus {
151
+ inChannel: boolean;
152
+ /** @format int64 */
153
+ join: number;
154
+ /** @format date-time */
155
+ joinTime: string;
156
+ /** @format int32 */
157
+ role: number;
158
+ }
159
+ export declare class GenerateRtcTokenParams {
160
+ /** appId */
161
+ appId: string;
162
+ /** channel */
163
+ channel: string;
164
+ /**
165
+ * uid
166
+ * @format int32
167
+ */
168
+ uid: number;
169
+ /**
170
+ * expire
171
+ * @format int32
172
+ */
173
+ expire?: number;
174
+ /** role */
175
+ role?: "ROLE_PUBLISHER" | "ROLE_SUBSCRIBER";
176
+ }
177
+ export declare class AppChannelByAppIdParams {
178
+ orderBy?: string[];
179
+ /** @format int32 */
180
+ pageIndex?: number;
181
+ /** @format int32 */
182
+ pageSize?: number;
183
+ /** appId */
184
+ appId: string;
185
+ }
186
+ export declare class RecordParams {
187
+ /** 应用ID */
188
+ appId?: string;
189
+ /** 频道id */
190
+ channel: string;
191
+ }
192
+ export declare class ClearByChannelParams {
193
+ /** ignoreMigration */
194
+ ignoreMigration?: boolean;
195
+ /** channel */
196
+ channel: string;
197
+ }
198
+ export declare class DownloadParams {
199
+ /** path */
200
+ path: string;
201
+ }
202
+ /**
203
+ * @format binary
204
+ */
205
+ export declare type HandleMigratePayload = File;
206
+ export declare class HandleMigrateParams {
207
+ /** path */
208
+ path: string;
209
+ /** dir */
210
+ dir: string;
211
+ /** appId */
212
+ appId: string;
213
+ /** channel */
214
+ channel: string;
215
+ /** fileName */
216
+ fileName: string;
217
+ /** mode */
218
+ mode: string;
219
+ /** instance */
220
+ instance: string;
221
+ /** channelProfile */
222
+ channelProfile?: string;
223
+ /** renderMode */
224
+ renderMode?: string;
225
+ }
226
+ export declare class MigrateParams {
227
+ /** channel */
228
+ channel: string;
229
+ }
230
+ export declare class RecordClearByChannelParams {
231
+ /** ignoreMigration */
232
+ ignoreMigration?: boolean;
233
+ /** channel */
234
+ channel: string;
235
+ }
236
+ import { AxiosRequestConfig, ResponseType } from "axios";
237
+ export declare type QueryParamsType = Record<string | number, any>;
238
+ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
239
+ /** set parameter to `true` for call `securityWorker` for this request */
240
+ secure?: boolean;
241
+ /** request path */
242
+ url: string;
243
+ /** content type of request body */
244
+ type?: ContentType;
245
+ /** query params */
246
+ params?: QueryParamsType;
247
+ /** format of response (i.e. response.json() -> format: "json") */
248
+ ResponseType?: ResponseType;
249
+ /** request body */
250
+ body?: unknown;
251
+ }
252
+ export declare type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
253
+ export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
254
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
255
+ secure?: boolean;
256
+ ResponseType?: ResponseType;
257
+ }
258
+ export declare enum ContentType {
259
+ Json = "application/json",
260
+ FormData = "multipart/form-data",
261
+ UrlEncoded = "application/x-www-form-urlencoded"
262
+ }
263
+ interface HttpClient {
264
+ request: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>;
265
+ }
266
+ /**
267
+ * @title 声网视频会议录制服务
268
+ * @version 1.0
269
+ * @baseUrl http://192.168.200.12:5000
270
+ *
271
+ * 声网视频会议录制服务
272
+ */
273
+ declare class Api {
274
+ private http;
275
+ constructor(http: HttpClient);
276
+ function: {
277
+ /**
278
+ * No description
279
+ *
280
+ * @tags function
281
+ * @name GenerateRtcToken
282
+ * @summary 生成用户token
283
+ * @request POST:/agora-recorder/function/generate-rtc-token
284
+ * @response `200` `Token` OK
285
+ * @response `201` `void` Created
286
+ * @response `401` `void` Unauthorized
287
+ * @response `403` `void` Forbidden
288
+ * @response `404` `void` Not Found
289
+ */
290
+ generateRtcToken: (query: GenerateRtcTokenParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Token>;
291
+ };
292
+ platform: {
293
+ /**
294
+ * No description
295
+ *
296
+ * @tags platform
297
+ * @name App
298
+ * @summary 获取项目列表
299
+ * @request GET:/agora-recorder/platform/app
300
+ * @response `200` `(Project)[]` OK
301
+ * @response `401` `void` Unauthorized
302
+ * @response `403` `void` Forbidden
303
+ * @response `404` `void` Not Found
304
+ */
305
+ app: (axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Project[]>;
306
+ /**
307
+ * No description
308
+ *
309
+ * @tags platform
310
+ * @name AppChannelByAppId
311
+ * @summary 获取频道分页列表
312
+ * @request GET:/agora-recorder/platform/app/{appId}/channel
313
+ * @response `200` `PageResultChannel` OK
314
+ * @response `401` `void` Unauthorized
315
+ * @response `403` `void` Forbidden
316
+ * @response `404` `void` Not Found
317
+ */
318
+ appChannelByAppId: ({ appId, ...query }: AppChannelByAppIdParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<PageResultChannel>;
319
+ /**
320
+ * No description
321
+ *
322
+ * @tags platform
323
+ * @name AppChannelKickAllByAppIdAndChannel
324
+ * @summary 踢除频道内所有用户
325
+ * @request POST:/agora-recorder/platform/app/{appId}/channel/{channel}/kick-all
326
+ * @response `200` `KickUserResponse` OK
327
+ * @response `201` `void` Created
328
+ * @response `401` `void` Unauthorized
329
+ * @response `403` `void` Forbidden
330
+ * @response `404` `void` Not Found
331
+ */
332
+ appChannelKickAllByAppIdAndChannel: (appId: string, channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<KickUserResponse>;
333
+ /**
334
+ * No description
335
+ *
336
+ * @tags platform
337
+ * @name AppChannelUserByAppIdAndChannel
338
+ * @summary 获取频道内用户列表
339
+ * @request GET:/agora-recorder/platform/app/{appId}/channel/{channel}/user
340
+ * @response `200` `ChannelUserListBagEx` OK
341
+ * @response `401` `void` Unauthorized
342
+ * @response `403` `void` Forbidden
343
+ * @response `404` `void` Not Found
344
+ */
345
+ appChannelUserByAppIdAndChannel: (appId: string, channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<ChannelUserListBagEx>;
346
+ /**
347
+ * No description
348
+ *
349
+ * @tags platform
350
+ * @name AppChannelUserByAppIdAndChannelAndUid
351
+ * @summary 获取用户状态信息
352
+ * @request GET:/agora-recorder/platform/app/{appId}/channel/{channel}/user/{uid}
353
+ * @response `200` `UserStatus` OK
354
+ * @response `401` `void` Unauthorized
355
+ * @response `403` `void` Forbidden
356
+ * @response `404` `void` Not Found
357
+ */
358
+ appChannelUserByAppIdAndChannelAndUid: (appId: string, channel: string, uid: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<UserStatus>;
359
+ /**
360
+ * No description
361
+ *
362
+ * @tags platform
363
+ * @name AppChannelUserKickByAppIdAndChannelAndUid
364
+ * @summary 踢除用户
365
+ * @request POST:/agora-recorder/platform/app/{appId}/channel/{channel}/user/{uid}/kick
366
+ * @response `200` `KickUserResponse` OK
367
+ * @response `201` `void` Created
368
+ * @response `401` `void` Unauthorized
369
+ * @response `403` `void` Forbidden
370
+ * @response `404` `void` Not Found
371
+ */
372
+ appChannelUserKickByAppIdAndChannelAndUid: (appId: string, channel: string, uid: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<KickUserResponse>;
373
+ };
374
+ record: {
375
+ /**
376
+ * No description
377
+ *
378
+ * @tags record
379
+ * @name Record
380
+ * @summary 查询录制记录
381
+ * @request GET:/agora-recorder/record
382
+ * @response `200` `(RecordingSets)[]` OK
383
+ * @response `401` `void` Unauthorized
384
+ * @response `403` `void` Forbidden
385
+ * @response `404` `void` Not Found
386
+ */
387
+ record: (query: RecordParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<RecordingSets[]>;
388
+ /**
389
+ * No description
390
+ *
391
+ * @tags record
392
+ * @name ClearByChannel
393
+ * @summary 录制文件删除
394
+ * @request GET:/agora-recorder/record/clear/{channel}
395
+ * @response `200` `void` OK
396
+ * @response `401` `void` Unauthorized
397
+ * @response `403` `void` Forbidden
398
+ * @response `404` `void` Not Found
399
+ */
400
+ clearByChannel: ({ channel, ...query }: ClearByChannelParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
401
+ /**
402
+ * No description
403
+ *
404
+ * @tags record
405
+ * @name DeleteDeleteByChannel
406
+ * @summary 录制文件从对象存储中删除
407
+ * @request DELETE:/agora-recorder/record/delete/{channel}
408
+ * @response `200` `void` OK
409
+ * @response `204` `void` No Content
410
+ * @response `401` `void` Unauthorized
411
+ * @response `403` `void` Forbidden
412
+ */
413
+ deleteDeleteByChannel: (channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
414
+ /**
415
+ * No description
416
+ *
417
+ * @tags record
418
+ * @name Download
419
+ * @summary 下载/播放资源
420
+ * @request GET:/agora-recorder/record/download
421
+ * @response `200` `Resource` OK
422
+ * @response `401` `void` Unauthorized
423
+ * @response `403` `void` Forbidden
424
+ * @response `404` `void` Not Found
425
+ */
426
+ download: (query: DownloadParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
427
+ /**
428
+ * No description
429
+ *
430
+ * @tags record
431
+ * @name FindByChannelAndId
432
+ * @summary 查询录制记录
433
+ * @request GET:/agora-recorder/record/find/{channel}/{id}
434
+ * @response `200` `RecordingSets` OK
435
+ * @response `401` `void` Unauthorized
436
+ * @response `403` `void` Forbidden
437
+ * @response `404` `void` Not Found
438
+ */
439
+ findByChannelAndId: (channel: string, id: number, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<RecordingSets>;
440
+ /**
441
+ * No description
442
+ *
443
+ * @tags record
444
+ * @name HandleMigrate
445
+ * @summary 受理迁移文件
446
+ * @request POST:/agora-recorder/record/handle-migrate
447
+ * @response `200` `string` OK
448
+ * @response `201` `void` Created
449
+ * @response `401` `void` Unauthorized
450
+ * @response `403` `void` Forbidden
451
+ * @response `404` `void` Not Found
452
+ */
453
+ handleMigrate: (query: HandleMigrateParams, data: HandleMigratePayload, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<string>;
454
+ /**
455
+ * No description
456
+ *
457
+ * @tags record
458
+ * @name Migrate
459
+ * @summary 文件迁移到对象存储服务
460
+ * @request GET:/agora-recorder/record/migrate
461
+ * @response `200` `(RecordMigrateResult)[]` OK
462
+ * @response `401` `void` Unauthorized
463
+ * @response `403` `void` Forbidden
464
+ * @response `404` `void` Not Found
465
+ */
466
+ migrate: (query: MigrateParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<RecordMigrateResult[]>;
467
+ /**
468
+ * No description
469
+ *
470
+ * @tags record
471
+ * @name RecordingByAppIdAndChannel
472
+ * @summary 查询是否正在录制
473
+ * @request GET:/agora-recorder/record/recording/{appId}/{channel}
474
+ * @response `200` `boolean` OK
475
+ * @response `401` `void` Unauthorized
476
+ * @response `403` `void` Forbidden
477
+ * @response `404` `void` Not Found
478
+ */
479
+ recordingByAppIdAndChannel: (appId: string, channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
480
+ /**
481
+ * No description
482
+ *
483
+ * @tags record
484
+ * @name Start
485
+ * @summary 开始录制
486
+ * @request POST:/agora-recorder/record/start
487
+ * @response `200` `number` OK
488
+ * @response `201` `void` Created
489
+ * @response `401` `void` Unauthorized
490
+ * @response `403` `void` Forbidden
491
+ * @response `404` `void` Not Found
492
+ */
493
+ start: (data: RecordRequest, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<number>;
494
+ /**
495
+ * No description
496
+ *
497
+ * @tags record
498
+ * @name StopByAppIdAndChannel
499
+ * @summary 停止录制
500
+ * @request POST:/agora-recorder/record/stop/{appId}/{channel}
501
+ * @response `200` `void` OK
502
+ * @response `201` `void` Created
503
+ * @response `401` `void` Unauthorized
504
+ * @response `403` `void` Forbidden
505
+ * @response `404` `void` Not Found
506
+ */
507
+ stopByAppIdAndChannel: (appId: string, channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
508
+ };
509
+ inner: {
510
+ /**
511
+ * No description
512
+ *
513
+ * @tags inner
514
+ * @name RecordByChannel
515
+ * @summary 查询录制记录
516
+ * @request GET:/agora-recorder/inner/record/{channel}
517
+ * @response `200` `(RecordingSets)[]` OK
518
+ * @response `401` `void` Unauthorized
519
+ * @response `403` `void` Forbidden
520
+ * @response `404` `void` Not Found
521
+ */
522
+ recordByChannel: (channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<RecordingSets[]>;
523
+ /**
524
+ * No description
525
+ *
526
+ * @tags inner
527
+ * @name RecordClearByChannel
528
+ * @summary 录制文件删除
529
+ * @request GET:/agora-recorder/inner/record/{channel}/clear
530
+ * @response `200` `void` OK
531
+ * @response `401` `void` Unauthorized
532
+ * @response `403` `void` Forbidden
533
+ * @response `404` `void` Not Found
534
+ */
535
+ recordClearByChannel: ({ channel, ...query }: RecordClearByChannelParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
536
+ /**
537
+ * No description
538
+ *
539
+ * @tags inner
540
+ * @name DeleteRecordDeleteByChannel
541
+ * @summary 录制文件从对象存储中删除
542
+ * @request DELETE:/agora-recorder/inner/record/{channel}/delete
543
+ * @response `200` `void` OK
544
+ * @response `204` `void` No Content
545
+ * @response `401` `void` Unauthorized
546
+ * @response `403` `void` Forbidden
547
+ */
548
+ deleteRecordDeleteByChannel: (channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
549
+ /**
550
+ * No description
551
+ *
552
+ * @tags inner
553
+ * @name RecordMigrateByChannel
554
+ * @summary 文件迁移到对象存储服务
555
+ * @request GET:/agora-recorder/inner/record/{channel}/migrate
556
+ * @response `200` `(RecordMigrateResult)[]` OK
557
+ * @response `401` `void` Unauthorized
558
+ * @response `403` `void` Forbidden
559
+ * @response `404` `void` Not Found
560
+ */
561
+ recordMigrateByChannel: (channel: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<RecordMigrateResult[]>;
562
+ };
563
+ }
564
+ export declare const agoraRecorderApi: Api;
565
+ export {};
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";var e={491:(e,r,t)=>{t.d(r,{M:()=>a});const a={request(e){throw new Error("please setup http client first")}}}},r={};function t(a){var s=r[a];if(void 0!==s)return s.exports;var o=r[a]={exports:{}};return e[a](o,o.exports,t),o.exports}t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{t.r(a),t.d(a,{AppChannelByAppIdParams:()=>f,Channel:()=>o,ChannelUserListBagEx:()=>n,ClearByChannelParams:()=>C,ContentType:()=>e,DownloadParams:()=>T,GenerateRtcTokenParams:()=>y,HandleMigrateParams:()=>P,KickUserResponse:()=>c,MigrateParams:()=>q,PageResultChannel:()=>l,Project:()=>d,RecordClearByChannelParams:()=>E,RecordMigrateResult:()=>p,RecordParams:()=>j,RecordRequest:()=>h,Recording:()=>i,RecordingSets:()=>u,Resource:()=>g,Token:()=>m,UploadResult:()=>O,UserStatus:()=>b,agoraRecorderApi:()=>$});var e,r=t(491),s=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(a=Object.getOwnPropertySymbols(e);s<a.length;s++)r.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]])}return t};class o{}class n{}class c{}class l{}class d{}class p{}class h{}class i{}class u{}class g{}class m{}class O{}class b{}class y{}class f{}class j{}class C{}class T{}class P{}class q{}class E{}!function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded"}(e||(e={}));const $=new class{constructor(e){this.function={generateRtcToken:(e,r={})=>this.http.request(Object.assign({url:"/agora-recorder/function/generate-rtc-token",method:"POST",params:e},r))},this.platform={app:(e={})=>this.http.request(Object.assign({url:"/agora-recorder/platform/app",method:"GET"},e)),appChannelByAppId:(e,r)=>{var{appId:t}=e,a=s(e,["appId"]);return void 0===r&&(r={}),this.http.request(Object.assign({url:`/agora-recorder/platform/app/${t}/channel`,method:"GET",params:a},r))},appChannelKickAllByAppIdAndChannel:(e,r,t={})=>this.http.request(Object.assign({url:`/agora-recorder/platform/app/${e}/channel/${r}/kick-all`,method:"POST"},t)),appChannelUserByAppIdAndChannel:(e,r,t={})=>this.http.request(Object.assign({url:`/agora-recorder/platform/app/${e}/channel/${r}/user`,method:"GET"},t)),appChannelUserByAppIdAndChannelAndUid:(e,r,t,a={})=>this.http.request(Object.assign({url:`/agora-recorder/platform/app/${e}/channel/${r}/user/${t}`,method:"GET"},a)),appChannelUserKickByAppIdAndChannelAndUid:(e,r,t,a={})=>this.http.request(Object.assign({url:`/agora-recorder/platform/app/${e}/channel/${r}/user/${t}/kick`,method:"POST"},a))},this.record={record:(e,r={})=>this.http.request(Object.assign({url:"/agora-recorder/record",method:"GET",params:e},r)),clearByChannel:(e,r)=>{var{channel:t}=e,a=s(e,["channel"]);return void 0===r&&(r={}),this.http.request(Object.assign({url:`/agora-recorder/record/clear/${t}`,method:"GET",params:a},r))},deleteDeleteByChannel:(e,r={})=>this.http.request(Object.assign({url:`/agora-recorder/record/delete/${e}`,method:"DELETE"},r)),download:(e,r={})=>this.http.request(Object.assign({url:"/agora-recorder/record/download",method:"GET",params:e},r)),findByChannelAndId:(e,r,t={})=>this.http.request(Object.assign({url:`/agora-recorder/record/find/${e}/${r}`,method:"GET"},t)),handleMigrate:(e,r,t={})=>this.http.request(Object.assign({url:"/agora-recorder/record/handle-migrate",method:"POST",params:e,data:r},t)),migrate:(e,r={})=>this.http.request(Object.assign({url:"/agora-recorder/record/migrate",method:"GET",params:e},r)),recordingByAppIdAndChannel:(e,r,t={})=>this.http.request(Object.assign({url:`/agora-recorder/record/recording/${e}/${r}`,method:"GET"},t)),start:(e,r={})=>this.http.request(Object.assign({url:"/agora-recorder/record/start",method:"POST",data:e},r)),stopByAppIdAndChannel:(e,r,t={})=>this.http.request(Object.assign({url:`/agora-recorder/record/stop/${e}/${r}`,method:"POST"},t))},this.inner={recordByChannel:(e,r={})=>this.http.request(Object.assign({url:`/agora-recorder/inner/record/${e}`,method:"GET"},r)),recordClearByChannel:(e,r)=>{var{channel:t}=e,a=s(e,["channel"]);return void 0===r&&(r={}),this.http.request(Object.assign({url:`/agora-recorder/inner/record/${t}/clear`,method:"GET",params:a},r))},deleteRecordDeleteByChannel:(e,r={})=>this.http.request(Object.assign({url:`/agora-recorder/inner/record/${e}/delete`,method:"DELETE"},r)),recordMigrateByChannel:(e,r={})=>this.http.request(Object.assign({url:`/agora-recorder/inner/record/${e}/migrate`,method:"GET"},r))},this.http=e}}(r.M)})();var s=exports;for(var o in a)s[o]=a[o];a.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();
2
+ //# sourceMappingURL=agoraRecorder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agoraRecorder.js","mappings":"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","sources":["webpack://nestjs-vue3-ssr/./dist/modules/api/_request.ts","webpack://nestjs-vue3-ssr/webpack/bootstrap","webpack://nestjs-vue3-ssr/webpack/runtime/define property getters","webpack://nestjs-vue3-ssr/webpack/runtime/hasOwnProperty shorthand","webpack://nestjs-vue3-ssr/webpack/runtime/make namespace object","webpack://nestjs-vue3-ssr/./dist/modules/api/agoraRecorder.ts"],"sourcesContent":["\nimport { AxiosRequestConfig, AxiosResponse } from 'axios'\n\nlet isSetup = false\n\ninterface HttpClient {\n\trequest: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>\n}\n\n//@ts-ignore\nexport const httpClient: HttpClient = {\n\trequest(config: AxiosRequestConfig):any {\n\t\tif (!isSetup) {\n\t\t\tthrow new Error('please setup http client first')\n\t\t}\n\t},\n}\n\nexport const setupApi = (request: HttpClient['request']) => {\n\thttpClient.request = request\n\tisSetup = true\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export class Channel {\n channelName: string;\n\n /** @format int32 */\n userCount: number;\n}\n\nexport class ChannelUserListBagEx {\n audience: string[];\n\n /** @format int32 */\n audienceTotal: number;\n\n /** audience对应的用户名列表 */\n audienceUsernames: string[];\n\n /** broadcasters对应的用户名列表 */\n broadcasterUsernames: string[];\n broadcasters: string[];\n channelExist: boolean;\n\n /** @format int32 */\n mode: number;\n\n /** @format int64 */\n total: number;\n\n /** users对应的用户名列表 */\n userUsernames: string[];\n users: string[];\n}\n\nexport type InputStream = any;\n\nexport class KickUserResponse {\n /** @format int64 */\n id: number;\n status: string;\n}\n\nexport class PageResultChannel {\n list: Channel[];\n\n /** @format int64 */\n total: number;\n}\n\nexport class Project {\n /** @format int64 */\n created: number;\n\n /** @format date-time */\n createdTime: string;\n id: string;\n name: string;\n signKey: string;\n\n /** @format int32 */\n status: number;\n vendorKey: string;\n}\n\nexport class RecordMigrateResult {\n channel: string;\n details: UploadResult[];\n}\n\nexport class RecordRequest {\n /** 应用ID */\n appId?: string;\n\n /** 频道ID */\n channel?: string;\n\n /** 频道场景。0:(默认)通信场景,1: 直播场景 */\n channelProfile?: string;\n\n /**\n * 自动停止录制时间\n * @format int32\n */\n idle?: number;\n\n /**\n * 录制模式: 1 单流模式、2 合流模式\n * @pattern [12]\n */\n mode?: string;\n\n /** 远程录制地址 */\n remoteHost?: string;\n\n /**\n * 远程录制模式。默认为false\n * @example false\n */\n remoteMode?: boolean;\n\n /** 合录模式下的绘制模式。0:(默认)画面裁剪,1: 画面压缩 */\n renderMode?: string;\n\n /** 录制分辨率 */\n resolution?: string;\n}\n\nexport class Recording {\n /**\n * 是否归档\n * @example false\n */\n migrated: boolean;\n\n /** 对象ID */\n objectId: string;\n\n /** 路径 */\n path: string;\n\n /**\n * 大小\n * @format int64\n */\n size: number;\n\n /**\n * 时间\n * @format date-time\n */\n time: string;\n\n /** 用户 */\n user: string;\n}\n\nexport class RecordingSets {\n /** 应用ID */\n appId: string;\n\n /** 频道 */\n channel: string;\n\n /** 频道配置 */\n channelProfile: string;\n\n /**\n * 是否录制完成\n * @example false\n */\n done: boolean;\n\n /** 录制实例 */\n instance: string;\n\n /** 模式 */\n mode: string;\n\n /** 录制记录 */\n records: Recording[];\n\n /** 渲染模式 */\n renderMode: string;\n\n /**\n * 开始时间\n * @format date-time\n */\n startTime: string;\n}\n\nexport class Resource {\n description: string;\n\n /** @format binary */\n file: File;\n filename: string;\n inputStream: InputStream;\n open: boolean;\n readable: boolean;\n\n /** @format uri */\n uri: string;\n\n /** @format url */\n url: string;\n}\n\nexport class Token {\n token: string;\n}\n\nexport class UploadResult {\n error: string;\n objectId: string;\n success: boolean;\n}\n\nexport class UserStatus {\n inChannel: boolean;\n\n /** @format int64 */\n join: number;\n\n /** @format date-time */\n joinTime: string;\n\n /** @format int32 */\n role: number;\n}\n\nexport class GenerateRtcTokenParams {\n /** appId */\n appId: string;\n\n /** channel */\n channel: string;\n\n /**\n * uid\n * @format int32\n */\n uid: number;\n\n /**\n * expire\n * @format int32\n */\n expire?: number;\n\n /** role */\n role?: \"ROLE_PUBLISHER\" | \"ROLE_SUBSCRIBER\";\n}\n\nexport class AppChannelByAppIdParams {\n orderBy?: string[];\n\n /** @format int32 */\n pageIndex?: number;\n\n /** @format int32 */\n pageSize?: number;\n\n /** appId */\n appId: string;\n}\n\nexport class RecordParams {\n /** 应用ID */\n appId?: string;\n\n /** 频道id */\n channel: string;\n}\n\nexport class ClearByChannelParams {\n /** ignoreMigration */\n ignoreMigration?: boolean;\n\n /** channel */\n channel: string;\n}\n\nexport class DownloadParams {\n /** path */\n path: string;\n}\n\n/**\n * @format binary\n */\nexport type HandleMigratePayload = File;\n\nexport class HandleMigrateParams {\n /** path */\n path: string;\n\n /** dir */\n dir: string;\n\n /** appId */\n appId: string;\n\n /** channel */\n channel: string;\n\n /** fileName */\n fileName: string;\n\n /** mode */\n mode: string;\n\n /** instance */\n instance: string;\n\n /** channelProfile */\n channelProfile?: string;\n\n /** renderMode */\n renderMode?: string;\n}\n\nexport class MigrateParams {\n /** channel */\n channel: string;\n}\n\nexport class RecordClearByChannelParams {\n /** ignoreMigration */\n ignoreMigration?: boolean;\n\n /** channel */\n channel: string;\n}\n\nimport { AxiosRequestConfig, ResponseType } from \"axios\";\n\nexport type QueryParamsType = Record<string | number, any>;\n\nexport interface FullRequestParams extends Omit<AxiosRequestConfig, \"data\" | \"params\" | \"url\" | \"responseType\"> {\n /** set parameter to `true` for call `securityWorker` for this request */\n secure?: boolean;\n /** request path */\n url: string;\n /** content type of request body */\n type?: ContentType;\n /** query params */\n params?: QueryParamsType;\n /** format of response (i.e. response.json() -> format: \"json\") */\n ResponseType?: ResponseType;\n /** request body */\n body?: unknown;\n}\n\nexport type RequestParams = Omit<FullRequestParams, \"body\" | \"method\" | \"query\" | \"path\">;\n\nexport interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, \"data\" | \"cancelToken\"> {\n securityWorker?: (\n securityData: SecurityDataType | null,\n ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;\n secure?: boolean;\n ResponseType?: ResponseType;\n}\n\nexport enum ContentType {\n Json = \"application/json\",\n FormData = \"multipart/form-data\",\n UrlEncoded = \"application/x-www-form-urlencoded\",\n}\n\ninterface HttpClient {\n request: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>;\n}\n\n/**\n * @title 声网视频会议录制服务\n * @version 1.0\n * @baseUrl http://192.168.200.12:5000\n *\n * 声网视频会议录制服务\n */\nclass Api {\n private http: HttpClient;\n\n constructor(http: HttpClient) {\n this.http = http;\n }\n\n function = {\n /**\n * No description\n *\n * @tags function\n * @name GenerateRtcToken\n * @summary 生成用户token\n * @request POST:/agora-recorder/function/generate-rtc-token\n * @response `200` `Token` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n generateRtcToken: (query: GenerateRtcTokenParams, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<Token, void>({\n url: `/agora-recorder/function/generate-rtc-token`,\n method: \"POST\",\n params: query,\n ...axiosConfig,\n }),\n };\n platform = {\n /**\n * No description\n *\n * @tags platform\n * @name App\n * @summary 获取项目列表\n * @request GET:/agora-recorder/platform/app\n * @response `200` `(Project)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n app: (axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<Project[], void>({\n url: `/agora-recorder/platform/app`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags platform\n * @name AppChannelByAppId\n * @summary 获取频道分页列表\n * @request GET:/agora-recorder/platform/app/{appId}/channel\n * @response `200` `PageResultChannel` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n appChannelByAppId: (\n { appId, ...query }: AppChannelByAppIdParams,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<PageResultChannel, void>({\n url: `/agora-recorder/platform/app/${appId}/channel`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags platform\n * @name AppChannelKickAllByAppIdAndChannel\n * @summary 踢除频道内所有用户\n * @request POST:/agora-recorder/platform/app/{appId}/channel/{channel}/kick-all\n * @response `200` `KickUserResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n appChannelKickAllByAppIdAndChannel: (\n appId: string,\n channel: string,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<KickUserResponse, void>({\n url: `/agora-recorder/platform/app/${appId}/channel/${channel}/kick-all`,\n method: \"POST\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags platform\n * @name AppChannelUserByAppIdAndChannel\n * @summary 获取频道内用户列表\n * @request GET:/agora-recorder/platform/app/{appId}/channel/{channel}/user\n * @response `200` `ChannelUserListBagEx` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n appChannelUserByAppIdAndChannel: (\n appId: string,\n channel: string,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<ChannelUserListBagEx, void>({\n url: `/agora-recorder/platform/app/${appId}/channel/${channel}/user`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags platform\n * @name AppChannelUserByAppIdAndChannelAndUid\n * @summary 获取用户状态信息\n * @request GET:/agora-recorder/platform/app/{appId}/channel/{channel}/user/{uid}\n * @response `200` `UserStatus` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n appChannelUserByAppIdAndChannelAndUid: (\n appId: string,\n channel: string,\n uid: string,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<UserStatus, void>({\n url: `/agora-recorder/platform/app/${appId}/channel/${channel}/user/${uid}`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags platform\n * @name AppChannelUserKickByAppIdAndChannelAndUid\n * @summary 踢除用户\n * @request POST:/agora-recorder/platform/app/{appId}/channel/{channel}/user/{uid}/kick\n * @response `200` `KickUserResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n appChannelUserKickByAppIdAndChannelAndUid: (\n appId: string,\n channel: string,\n uid: string,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<KickUserResponse, void>({\n url: `/agora-recorder/platform/app/${appId}/channel/${channel}/user/${uid}/kick`,\n method: \"POST\",\n ...axiosConfig,\n }),\n };\n record = {\n /**\n * No description\n *\n * @tags record\n * @name Record\n * @summary 查询录制记录\n * @request GET:/agora-recorder/record\n * @response `200` `(RecordingSets)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n record: (query: RecordParams, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<RecordingSets[], void>({\n url: `/agora-recorder/record`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name ClearByChannel\n * @summary 录制文件删除\n * @request GET:/agora-recorder/record/clear/{channel}\n * @response `200` `void` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n clearByChannel: (\n { channel, ...query }: ClearByChannelParams,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<void, void>({\n url: `/agora-recorder/record/clear/${channel}`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name DeleteDeleteByChannel\n * @summary 录制文件从对象存储中删除\n * @request DELETE:/agora-recorder/record/delete/{channel}\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteDeleteByChannel: (channel: string, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<void, void>({\n url: `/agora-recorder/record/delete/${channel}`,\n method: \"DELETE\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name Download\n * @summary 下载/播放资源\n * @request GET:/agora-recorder/record/download\n * @response `200` `Resource` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n download: (query: DownloadParams, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<Resource, void>({\n url: `/agora-recorder/record/download`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name FindByChannelAndId\n * @summary 查询录制记录\n * @request GET:/agora-recorder/record/find/{channel}/{id}\n * @response `200` `RecordingSets` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n findByChannelAndId: (channel: string, id: number, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<RecordingSets, void>({\n url: `/agora-recorder/record/find/${channel}/${id}`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name HandleMigrate\n * @summary 受理迁移文件\n * @request POST:/agora-recorder/record/handle-migrate\n * @response `200` `string` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n handleMigrate: (\n query: HandleMigrateParams,\n data: HandleMigratePayload,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<string, void>({\n url: `/agora-recorder/record/handle-migrate`,\n method: \"POST\",\n params: query,\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name Migrate\n * @summary 文件迁移到对象存储服务\n * @request GET:/agora-recorder/record/migrate\n * @response `200` `(RecordMigrateResult)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n migrate: (query: MigrateParams, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<RecordMigrateResult[], void>({\n url: `/agora-recorder/record/migrate`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name RecordingByAppIdAndChannel\n * @summary 查询是否正在录制\n * @request GET:/agora-recorder/record/recording/{appId}/{channel}\n * @response `200` `boolean` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n recordingByAppIdAndChannel: (\n appId: string,\n channel: string,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<boolean, void>({\n url: `/agora-recorder/record/recording/${appId}/${channel}`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name Start\n * @summary 开始录制\n * @request POST:/agora-recorder/record/start\n * @response `200` `number` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n start: (data: RecordRequest, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<number, void>({\n url: `/agora-recorder/record/start`,\n method: \"POST\",\n data: data,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags record\n * @name StopByAppIdAndChannel\n * @summary 停止录制\n * @request POST:/agora-recorder/record/stop/{appId}/{channel}\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n stopByAppIdAndChannel: (\n appId: string,\n channel: string,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<void, void>({\n url: `/agora-recorder/record/stop/${appId}/${channel}`,\n method: \"POST\",\n ...axiosConfig,\n }),\n };\n inner = {\n /**\n * No description\n *\n * @tags inner\n * @name RecordByChannel\n * @summary 查询录制记录\n * @request GET:/agora-recorder/inner/record/{channel}\n * @response `200` `(RecordingSets)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n recordByChannel: (channel: string, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<RecordingSets[], void>({\n url: `/agora-recorder/inner/record/${channel}`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name RecordClearByChannel\n * @summary 录制文件删除\n * @request GET:/agora-recorder/inner/record/{channel}/clear\n * @response `200` `void` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n recordClearByChannel: (\n { channel, ...query }: RecordClearByChannelParams,\n axiosConfig: AxiosRequestConfig & Record<string, any> = {},\n ) =>\n this.http.request<void, void>({\n url: `/agora-recorder/inner/record/${channel}/clear`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name DeleteRecordDeleteByChannel\n * @summary 录制文件从对象存储中删除\n * @request DELETE:/agora-recorder/inner/record/{channel}/delete\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteRecordDeleteByChannel: (channel: string, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<void, void>({\n url: `/agora-recorder/inner/record/${channel}/delete`,\n method: \"DELETE\",\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags inner\n * @name RecordMigrateByChannel\n * @summary 文件迁移到对象存储服务\n * @request GET:/agora-recorder/inner/record/{channel}/migrate\n * @response `200` `(RecordMigrateResult)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n recordMigrateByChannel: (channel: string, axiosConfig: AxiosRequestConfig & Record<string, any> = {}) =>\n this.http.request<RecordMigrateResult[], void>({\n url: `/agora-recorder/inner/record/${channel}/migrate`,\n method: \"GET\",\n ...axiosConfig,\n }),\n };\n}\n\nimport { httpClient } from \"./_request\";\n\nexport const agoraRecorderApi = new Api(httpClient);\n"],"names":["httpClient","request","config","Error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ContentType","Channel","ChannelUserListBagEx","KickUserResponse","PageResultChannel","Project","RecordMigrateResult","RecordRequest","Recording","RecordingSets","Resource","Token","UploadResult","UserStatus","GenerateRtcTokenParams","AppChannelByAppIdParams","RecordParams","ClearByChannelParams","DownloadParams","HandleMigrateParams","MigrateParams","RecordClearByChannelParams","agoraRecorderApi","constructor","http","function","generateRtcToken","query","axiosConfig","this","url","method","params","platform","app","appChannelByAppId","appId","appChannelKickAllByAppIdAndChannel","channel","appChannelUserByAppIdAndChannel","appChannelUserByAppIdAndChannelAndUid","uid","appChannelUserKickByAppIdAndChannelAndUid","record","clearByChannel","deleteDeleteByChannel","download","findByChannelAndId","id","handleMigrate","data","migrate","recordingByAppIdAndChannel","start","stopByAppIdAndChannel","inner","recordByChannel","recordClearByChannel","deleteRecordDeleteByChannel","recordMigrateByChannel"],"sourceRoot":""}