polyv-live-api-sdk 1.0.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/dist/auth/index.d.ts +9 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/signature.d.ts +67 -0
- package/dist/auth/signature.d.ts.map +1 -0
- package/dist/client.d.ts +209 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/constants/error-codes.d.ts +134 -0
- package/dist/constants/error-codes.d.ts.map +1 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/errors/index.d.ts +11 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/polyv-api-error.d.ts +71 -0
- package/dist/errors/polyv-api-error.d.ts.map +1 -0
- package/dist/errors/polyv-error.d.ts +31 -0
- package/dist/errors/polyv-error.d.ts.map +1 -0
- package/dist/errors/polyv-validation-error.d.ts +72 -0
- package/dist/errors/polyv-validation-error.d.ts.map +1 -0
- package/dist/errors/type-guards.d.ts +19 -0
- package/dist/errors/type-guards.d.ts.map +1 -0
- package/dist/errors/types.d.ts +13 -0
- package/dist/errors/types.d.ts.map +1 -0
- package/dist/index.cjs +15295 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +19501 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15258 -0
- package/dist/index.js.map +1 -0
- package/dist/services/account.service.d.ts +402 -0
- package/dist/services/account.service.d.ts.map +1 -0
- package/dist/services/channel.service.d.ts +2033 -0
- package/dist/services/channel.service.d.ts.map +1 -0
- package/dist/services/chat.service.d.ts +592 -0
- package/dist/services/chat.service.d.ts.map +1 -0
- package/dist/services/finance.service.d.ts +160 -0
- package/dist/services/finance.service.d.ts.map +1 -0
- package/dist/services/group.service.d.ts +191 -0
- package/dist/services/group.service.d.ts.map +1 -0
- package/dist/services/index.d.ts +27 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/live-interaction.service.d.ts +474 -0
- package/dist/services/live-interaction.service.d.ts.map +1 -0
- package/dist/services/other.service.d.ts +687 -0
- package/dist/services/other.service.d.ts.map +1 -0
- package/dist/services/platform.service.d.ts +190 -0
- package/dist/services/platform.service.d.ts.map +1 -0
- package/dist/services/player.service.d.ts +195 -0
- package/dist/services/player.service.d.ts.map +1 -0
- package/dist/services/v4/ai.service.d.ts +205 -0
- package/dist/services/v4/ai.service.d.ts.map +1 -0
- package/dist/services/v4/channel.service.d.ts +854 -0
- package/dist/services/v4/channel.service.d.ts.map +1 -0
- package/dist/services/v4/chat.service.d.ts +199 -0
- package/dist/services/v4/chat.service.d.ts.map +1 -0
- package/dist/services/v4/global.service.d.ts +86 -0
- package/dist/services/v4/global.service.d.ts.map +1 -0
- package/dist/services/v4/group.service.d.ts +132 -0
- package/dist/services/v4/group.service.d.ts.map +1 -0
- package/dist/services/v4/material.service.d.ts +85 -0
- package/dist/services/v4/material.service.d.ts.map +1 -0
- package/dist/services/v4/platform.service.d.ts +148 -0
- package/dist/services/v4/platform.service.d.ts.map +1 -0
- package/dist/services/v4/robot.service.d.ts +144 -0
- package/dist/services/v4/robot.service.d.ts.map +1 -0
- package/dist/services/v4/statistics.service.d.ts +61 -0
- package/dist/services/v4/statistics.service.d.ts.map +1 -0
- package/dist/services/v4/user.service.d.ts +1014 -0
- package/dist/services/v4/user.service.d.ts.map +1 -0
- package/dist/services/v4/webapp.service.d.ts +131 -0
- package/dist/services/v4/webapp.service.d.ts.map +1 -0
- package/dist/services/web.service.d.ts +758 -0
- package/dist/services/web.service.d.ts.map +1 -0
- package/dist/types/account.d.ts +287 -0
- package/dist/types/account.d.ts.map +1 -0
- package/dist/types/auth.d.ts +31 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/callback.d.ts +156 -0
- package/dist/types/callback.d.ts.map +1 -0
- package/dist/types/channel.d.ts +2263 -0
- package/dist/types/channel.d.ts.map +1 -0
- package/dist/types/chat-banned.d.ts +366 -0
- package/dist/types/chat-banned.d.ts.map +1 -0
- package/dist/types/chat-censor-role.d.ts +190 -0
- package/dist/types/chat-censor-role.d.ts.map +1 -0
- package/dist/types/chat.d.ts +142 -0
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/client.d.ts +43 -0
- package/dist/types/client.d.ts.map +1 -0
- package/dist/types/common.d.ts +52 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/finance.d.ts +252 -0
- package/dist/types/finance.d.ts.map +1 -0
- package/dist/types/group.d.ts +129 -0
- package/dist/types/group.d.ts.map +1 -0
- package/dist/types/index.d.ts +50 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/live-interaction.d.ts +301 -0
- package/dist/types/live-interaction.d.ts.map +1 -0
- package/dist/types/pagination.d.ts +37 -0
- package/dist/types/pagination.d.ts.map +1 -0
- package/dist/types/platform.d.ts +178 -0
- package/dist/types/platform.d.ts.map +1 -0
- package/dist/types/player.d.ts +177 -0
- package/dist/types/player.d.ts.map +1 -0
- package/dist/types/request.d.ts +45 -0
- package/dist/types/request.d.ts.map +1 -0
- package/dist/types/response.d.ts +58 -0
- package/dist/types/response.d.ts.map +1 -0
- package/dist/types/signature.d.ts +50 -0
- package/dist/types/signature.d.ts.map +1 -0
- package/dist/types/upload.d.ts +32 -0
- package/dist/types/upload.d.ts.map +1 -0
- package/dist/types/v4-ai.d.ts +379 -0
- package/dist/types/v4-ai.d.ts.map +1 -0
- package/dist/types/v4-channel.d.ts +2400 -0
- package/dist/types/v4-channel.d.ts.map +1 -0
- package/dist/types/v4-chat.d.ts +190 -0
- package/dist/types/v4-chat.d.ts.map +1 -0
- package/dist/types/v4-global.d.ts +150 -0
- package/dist/types/v4-global.d.ts.map +1 -0
- package/dist/types/v4-group.d.ts +212 -0
- package/dist/types/v4-group.d.ts.map +1 -0
- package/dist/types/v4-material.d.ts +141 -0
- package/dist/types/v4-material.d.ts.map +1 -0
- package/dist/types/v4-platform.d.ts +223 -0
- package/dist/types/v4-platform.d.ts.map +1 -0
- package/dist/types/v4-robot.d.ts +149 -0
- package/dist/types/v4-robot.d.ts.map +1 -0
- package/dist/types/v4-statistics.d.ts +87 -0
- package/dist/types/v4-statistics.d.ts.map +1 -0
- package/dist/types/v4-user.d.ts +1021 -0
- package/dist/types/v4-user.d.ts.map +1 -0
- package/dist/types/v4-webapp.d.ts +161 -0
- package/dist/types/v4-webapp.d.ts.map +1 -0
- package/dist/types/version.d.ts +21 -0
- package/dist/types/version.d.ts.map +1 -0
- package/dist/types/web.d.ts +868 -0
- package/dist/types/web.d.ts.map +1 -0
- package/dist/utils/env.d.ts +54 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/pagination.d.ts +62 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/signature.d.ts +67 -0
- package/dist/utils/signature.d.ts.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Account Service
|
|
3
|
+
*
|
|
4
|
+
* Service for managing PolyV account-related operations.
|
|
5
|
+
* Provides methods for category management, user info, channel lists, statistics, and more.
|
|
6
|
+
*
|
|
7
|
+
* @module services/account
|
|
8
|
+
*/
|
|
9
|
+
import type { PolyVClient } from '../client.js';
|
|
10
|
+
import type { GetCategoryListResponse, CreateCategoryParams, CreateCategoryResponse, DeleteCategoryParams, DeleteCategoryResponse, UpdateCategoryNameParams, UpdateCategoryNameResponse, UpdateCategoryRankParams, UpdateCategoryRankResponse, GetUserInfoResponse, ChannelsParams, ChannelsResponse, ChannelDetailParams, ChannelDetailResponse, GetSimpleChannelListParams, GetSimpleChannelListResponse, UserChannelBasicListParams, UserChannelBasicListResponse, UserPlaybackListParams, UserPlaybackListResponse, ReceiveListParams, ReceiveListResponse, GetIncomeDetailParams, GetIncomeDetailResponse, GetUserDurationsParams, GetUserDurationsResponse, MicDurationParams, MicDurationResponse, SwitchGetResponse, SwitchUpdateParams, SwitchUpdateResponse, SetStreamCallbackParams, SetStreamCallbackResponse, SetRecordCallbackParams, SetRecordCallbackResponse, SetPlaybackCallbackParams, SetPlaybackCallbackResponse, SetUserLoginTokenParams, SetUserLoginTokenResponse, SetUserChildrenLoginTokenParams, SetUserChildrenLoginTokenResponse, SsoLoginParams, SsoLoginResponse, SsoConfigParams, SsoConfigResponse } from '../types/account.js';
|
|
11
|
+
/**
|
|
12
|
+
* AccountService
|
|
13
|
+
*
|
|
14
|
+
* Provides methods to interact with PolyV Live Account APIs.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const client = new PolyVClient({ appId: 'xxx', appSecret: 'yyy' });
|
|
19
|
+
* const categories = await client.account.getCategoryList();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class AccountService {
|
|
23
|
+
private client;
|
|
24
|
+
/**
|
|
25
|
+
* Create a new AccountService instance
|
|
26
|
+
*
|
|
27
|
+
* @param client - The PolyVClient instance to use for API calls
|
|
28
|
+
*/
|
|
29
|
+
constructor(client: PolyVClient);
|
|
30
|
+
/**
|
|
31
|
+
* Get category list
|
|
32
|
+
* Query all live categories for the account
|
|
33
|
+
*
|
|
34
|
+
* @returns Category list
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* const result = await client.account.getCategoryList();
|
|
39
|
+
* console.log(result.categories);
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
getCategoryList(): Promise<GetCategoryListResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Create a new category
|
|
45
|
+
*
|
|
46
|
+
* @param params - Create parameters
|
|
47
|
+
* @returns Created category info
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const result = await client.account.createCategory({
|
|
52
|
+
* categoryName: 'New Category',
|
|
53
|
+
* });
|
|
54
|
+
* console.log(result.categoryId);
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
createCategory(params: CreateCategoryParams): Promise<CreateCategoryResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Delete a category
|
|
60
|
+
*
|
|
61
|
+
* @param params - Delete parameters
|
|
62
|
+
* @returns Delete result
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const result = await client.account.deleteCategory({
|
|
67
|
+
* categoryId: 12345,
|
|
68
|
+
* });
|
|
69
|
+
* console.log(result.success);
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
deleteCategory(params: DeleteCategoryParams): Promise<DeleteCategoryResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Update category name
|
|
75
|
+
*
|
|
76
|
+
* @param params - Update parameters
|
|
77
|
+
* @returns Update result
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```typescript
|
|
81
|
+
* const result = await client.account.updateCategoryName({
|
|
82
|
+
* categoryId: 12345,
|
|
83
|
+
* categoryName: 'Updated Name',
|
|
84
|
+
* });
|
|
85
|
+
* console.log(result.success);
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
updateCategoryName(params: UpdateCategoryNameParams): Promise<UpdateCategoryNameResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Update category rank (sort order)
|
|
91
|
+
*
|
|
92
|
+
* @param params - Update parameters
|
|
93
|
+
* @returns Update result
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* const result = await client.account.updateCategoryRank({
|
|
98
|
+
* categoryId: 12345,
|
|
99
|
+
* rank: 1,
|
|
100
|
+
* });
|
|
101
|
+
* console.log(result.success);
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
updateCategoryRank(params: UpdateCategoryRankParams): Promise<UpdateCategoryRankResponse>;
|
|
105
|
+
/**
|
|
106
|
+
* Get user account information
|
|
107
|
+
*
|
|
108
|
+
* @returns User info
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```typescript
|
|
112
|
+
* const info = await client.account.getUserInfo();
|
|
113
|
+
* console.log(info.userId, info.maxChannels);
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
getUserInfo(): Promise<GetUserInfoResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* Get channel list with pagination
|
|
119
|
+
*
|
|
120
|
+
* @param params - Query parameters
|
|
121
|
+
* @returns Paginated channel list
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```typescript
|
|
125
|
+
* const result = await client.account.channels({
|
|
126
|
+
* page: 1,
|
|
127
|
+
* pageSize: 10,
|
|
128
|
+
* categoryId: 123,
|
|
129
|
+
* });
|
|
130
|
+
* console.log(result.contents);
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
channels(params?: ChannelsParams): Promise<ChannelsResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* Get channel detail
|
|
136
|
+
*
|
|
137
|
+
* @param params - Query parameters
|
|
138
|
+
* @returns Channel detail
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```typescript
|
|
142
|
+
* const detail = await client.account.channelDetail({
|
|
143
|
+
* channelId: '123456',
|
|
144
|
+
* });
|
|
145
|
+
* console.log(detail.channel);
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
channelDetail(params: ChannelDetailParams): Promise<ChannelDetailResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Get simple channel list (lightweight)
|
|
151
|
+
*
|
|
152
|
+
* @param params - Query parameters
|
|
153
|
+
* @returns Simple channel list
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```typescript
|
|
157
|
+
* const result = await client.account.getSimpleChannelList({
|
|
158
|
+
* categoryId: 123,
|
|
159
|
+
* page: 1,
|
|
160
|
+
* pageSize: 100,
|
|
161
|
+
* });
|
|
162
|
+
* console.log(result.contents);
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
getSimpleChannelList(params?: GetSimpleChannelListParams): Promise<GetSimpleChannelListResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Get user channel basic list
|
|
168
|
+
*
|
|
169
|
+
* @param params - Query parameters
|
|
170
|
+
* @returns Channel basic list
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* ```typescript
|
|
174
|
+
* const result = await client.account.userChannelBasicList({
|
|
175
|
+
* page: 1,
|
|
176
|
+
* pageSize: 10,
|
|
177
|
+
* });
|
|
178
|
+
* console.log(result.contents);
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
userChannelBasicList(params?: UserChannelBasicListParams): Promise<UserChannelBasicListResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Get user playback list
|
|
184
|
+
*
|
|
185
|
+
* @param params - Query parameters
|
|
186
|
+
* @returns Playback list
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* const result = await client.account.userPlaybackList({
|
|
191
|
+
* page: 1,
|
|
192
|
+
* pageSize: 10,
|
|
193
|
+
* startDate: '2024-01-01',
|
|
194
|
+
* endDate: '2024-01-31',
|
|
195
|
+
* });
|
|
196
|
+
* console.log(result.contents);
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
userPlaybackList(params?: UserPlaybackListParams): Promise<UserPlaybackListResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* Get receive (income/expense) list
|
|
202
|
+
*
|
|
203
|
+
* @param params - Query parameters
|
|
204
|
+
* @returns Receive list
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* ```typescript
|
|
208
|
+
* const result = await client.account.receiveList({
|
|
209
|
+
* page: 1,
|
|
210
|
+
* pageSize: 10,
|
|
211
|
+
* startDate: '2024-01-01',
|
|
212
|
+
* endDate: '2024-01-31',
|
|
213
|
+
* });
|
|
214
|
+
* console.log(result.contents);
|
|
215
|
+
* ```
|
|
216
|
+
*/
|
|
217
|
+
receiveList(params?: ReceiveListParams): Promise<ReceiveListResponse>;
|
|
218
|
+
/**
|
|
219
|
+
* Get income detail
|
|
220
|
+
*
|
|
221
|
+
* @param params - Query parameters
|
|
222
|
+
* @returns Income detail
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```typescript
|
|
226
|
+
* const result = await client.account.getIncomeDetail({
|
|
227
|
+
* startDate: '2024-01-01',
|
|
228
|
+
* endDate: '2024-01-31',
|
|
229
|
+
* });
|
|
230
|
+
* console.log(result.income);
|
|
231
|
+
* ```
|
|
232
|
+
*/
|
|
233
|
+
getIncomeDetail(params?: GetIncomeDetailParams): Promise<GetIncomeDetailResponse>;
|
|
234
|
+
/**
|
|
235
|
+
* Get user viewing durations
|
|
236
|
+
*
|
|
237
|
+
* @param params - Query parameters
|
|
238
|
+
* @returns User durations
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* ```typescript
|
|
242
|
+
* const result = await client.account.getUserDurations({
|
|
243
|
+
* userId: 'user123',
|
|
244
|
+
* });
|
|
245
|
+
* console.log(result.durations);
|
|
246
|
+
* ```
|
|
247
|
+
*/
|
|
248
|
+
getUserDurations(params?: GetUserDurationsParams): Promise<GetUserDurationsResponse>;
|
|
249
|
+
/**
|
|
250
|
+
* Get mic (co-host) duration statistics
|
|
251
|
+
*
|
|
252
|
+
* @param params - Query parameters
|
|
253
|
+
* @returns Mic duration
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* ```typescript
|
|
257
|
+
* const result = await client.account.micDuration({
|
|
258
|
+
* channelId: '123456',
|
|
259
|
+
* });
|
|
260
|
+
* console.log(result.micDuration);
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
micDuration(params?: MicDurationParams): Promise<MicDurationResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* Get switch configuration
|
|
266
|
+
*
|
|
267
|
+
* @returns Switch configuration
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```typescript
|
|
271
|
+
* const result = await client.account.switchGet();
|
|
272
|
+
* console.log(result.config);
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
switchGet(): Promise<SwitchGetResponse>;
|
|
276
|
+
/**
|
|
277
|
+
* Update switch configuration
|
|
278
|
+
*
|
|
279
|
+
* @param params - Update parameters
|
|
280
|
+
* @returns Update result
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* ```typescript
|
|
284
|
+
* const result = await client.account.switchUpdate({
|
|
285
|
+
* param: 'authEnabled',
|
|
286
|
+
* enabled: 'Y',
|
|
287
|
+
* });
|
|
288
|
+
* console.log(result.success);
|
|
289
|
+
* ```
|
|
290
|
+
*/
|
|
291
|
+
switchUpdate(params: SwitchUpdateParams): Promise<SwitchUpdateResponse>;
|
|
292
|
+
/**
|
|
293
|
+
* Set stream callback URL
|
|
294
|
+
*
|
|
295
|
+
* @param params - Callback parameters
|
|
296
|
+
* @returns Set result
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* ```typescript
|
|
300
|
+
* const result = await client.account.setStreamCallback({
|
|
301
|
+
* url: 'https://example.com/stream-callback',
|
|
302
|
+
* });
|
|
303
|
+
* console.log(result.success);
|
|
304
|
+
* ```
|
|
305
|
+
*/
|
|
306
|
+
setStreamCallback(params: SetStreamCallbackParams): Promise<SetStreamCallbackResponse>;
|
|
307
|
+
/**
|
|
308
|
+
* Set record callback URL
|
|
309
|
+
*
|
|
310
|
+
* @param params - Callback parameters
|
|
311
|
+
* @returns Set result
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```typescript
|
|
315
|
+
* const result = await client.account.setRecordCallback({
|
|
316
|
+
* url: 'https://example.com/record-callback',
|
|
317
|
+
* });
|
|
318
|
+
* console.log(result.success);
|
|
319
|
+
* ```
|
|
320
|
+
*/
|
|
321
|
+
setRecordCallback(params: SetRecordCallbackParams): Promise<SetRecordCallbackResponse>;
|
|
322
|
+
/**
|
|
323
|
+
* Set playback callback URL
|
|
324
|
+
*
|
|
325
|
+
* @param params - Callback parameters
|
|
326
|
+
* @returns Set result
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```typescript
|
|
330
|
+
* const result = await client.account.setPlaybackCallback({
|
|
331
|
+
* url: 'https://example.com/playback-callback',
|
|
332
|
+
* });
|
|
333
|
+
* console.log(result.success);
|
|
334
|
+
* ```
|
|
335
|
+
*/
|
|
336
|
+
setPlaybackCallback(params: SetPlaybackCallbackParams): Promise<SetPlaybackCallbackResponse>;
|
|
337
|
+
/**
|
|
338
|
+
* Set user login token
|
|
339
|
+
*
|
|
340
|
+
* @param params - Token parameters
|
|
341
|
+
* @returns Set result
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* ```typescript
|
|
345
|
+
* const result = await client.account.setUserLoginToken({
|
|
346
|
+
* token: 'your-login-token',
|
|
347
|
+
* });
|
|
348
|
+
* console.log(result.success);
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
setUserLoginToken(params: SetUserLoginTokenParams): Promise<SetUserLoginTokenResponse>;
|
|
352
|
+
/**
|
|
353
|
+
* Set child account login token
|
|
354
|
+
*
|
|
355
|
+
* @param params - Token parameters
|
|
356
|
+
* @returns Set result
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* ```typescript
|
|
360
|
+
* const result = await client.account.setUserChildrenLoginToken({
|
|
361
|
+
* userId: 'child123',
|
|
362
|
+
* token: 'your-login-token',
|
|
363
|
+
* });
|
|
364
|
+
* console.log(result.success);
|
|
365
|
+
* ```
|
|
366
|
+
*/
|
|
367
|
+
setUserChildrenLoginToken(params: SetUserChildrenLoginTokenParams): Promise<SetUserChildrenLoginTokenResponse>;
|
|
368
|
+
/**
|
|
369
|
+
* SSO login
|
|
370
|
+
*
|
|
371
|
+
* @param params - SSO login parameters
|
|
372
|
+
* @returns SSO login response
|
|
373
|
+
*
|
|
374
|
+
* @example
|
|
375
|
+
* ```typescript
|
|
376
|
+
* const result = await client.account.ssoLogin({
|
|
377
|
+
* code: 'sso-auth-code',
|
|
378
|
+
* redirectUri: 'https://example.com/callback',
|
|
379
|
+
* });
|
|
380
|
+
* console.log(result.token);
|
|
381
|
+
* ```
|
|
382
|
+
*/
|
|
383
|
+
ssoLogin(params: SsoLoginParams): Promise<SsoLoginResponse>;
|
|
384
|
+
/**
|
|
385
|
+
* Configure SSO settings
|
|
386
|
+
*
|
|
387
|
+
* @param params - SSO config parameters
|
|
388
|
+
* @returns Config result
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```typescript
|
|
392
|
+
* const result = await client.account.ssoConfig({
|
|
393
|
+
* ssoEnabled: true,
|
|
394
|
+
* ssoUrl: 'https://sso.example.com/login',
|
|
395
|
+
* logoutUrl: 'https://sso.example.com/logout',
|
|
396
|
+
* });
|
|
397
|
+
* console.log(result.success);
|
|
398
|
+
* ```
|
|
399
|
+
*/
|
|
400
|
+
ssoConfig(params: SsoConfigParams): Promise<SsoConfigResponse>;
|
|
401
|
+
}
|
|
402
|
+
//# sourceMappingURL=account.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.service.d.ts","sourceRoot":"","sources":["../../src/services/account.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAEV,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,E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