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.
Files changed (148) hide show
  1. package/dist/auth/index.d.ts +9 -0
  2. package/dist/auth/index.d.ts.map +1 -0
  3. package/dist/auth/signature.d.ts +67 -0
  4. package/dist/auth/signature.d.ts.map +1 -0
  5. package/dist/client.d.ts +209 -0
  6. package/dist/client.d.ts.map +1 -0
  7. package/dist/constants/error-codes.d.ts +134 -0
  8. package/dist/constants/error-codes.d.ts.map +1 -0
  9. package/dist/constants/index.d.ts +8 -0
  10. package/dist/constants/index.d.ts.map +1 -0
  11. package/dist/errors/index.d.ts +11 -0
  12. package/dist/errors/index.d.ts.map +1 -0
  13. package/dist/errors/polyv-api-error.d.ts +71 -0
  14. package/dist/errors/polyv-api-error.d.ts.map +1 -0
  15. package/dist/errors/polyv-error.d.ts +31 -0
  16. package/dist/errors/polyv-error.d.ts.map +1 -0
  17. package/dist/errors/polyv-validation-error.d.ts +72 -0
  18. package/dist/errors/polyv-validation-error.d.ts.map +1 -0
  19. package/dist/errors/type-guards.d.ts +19 -0
  20. package/dist/errors/type-guards.d.ts.map +1 -0
  21. package/dist/errors/types.d.ts +13 -0
  22. package/dist/errors/types.d.ts.map +1 -0
  23. package/dist/index.cjs +15295 -0
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/index.d.cts +19501 -0
  26. package/dist/index.d.ts +18 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +15258 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/services/account.service.d.ts +402 -0
  31. package/dist/services/account.service.d.ts.map +1 -0
  32. package/dist/services/channel.service.d.ts +2033 -0
  33. package/dist/services/channel.service.d.ts.map +1 -0
  34. package/dist/services/chat.service.d.ts +592 -0
  35. package/dist/services/chat.service.d.ts.map +1 -0
  36. package/dist/services/finance.service.d.ts +160 -0
  37. package/dist/services/finance.service.d.ts.map +1 -0
  38. package/dist/services/group.service.d.ts +191 -0
  39. package/dist/services/group.service.d.ts.map +1 -0
  40. package/dist/services/index.d.ts +27 -0
  41. package/dist/services/index.d.ts.map +1 -0
  42. package/dist/services/live-interaction.service.d.ts +474 -0
  43. package/dist/services/live-interaction.service.d.ts.map +1 -0
  44. package/dist/services/other.service.d.ts +687 -0
  45. package/dist/services/other.service.d.ts.map +1 -0
  46. package/dist/services/platform.service.d.ts +190 -0
  47. package/dist/services/platform.service.d.ts.map +1 -0
  48. package/dist/services/player.service.d.ts +195 -0
  49. package/dist/services/player.service.d.ts.map +1 -0
  50. package/dist/services/v4/ai.service.d.ts +205 -0
  51. package/dist/services/v4/ai.service.d.ts.map +1 -0
  52. package/dist/services/v4/channel.service.d.ts +854 -0
  53. package/dist/services/v4/channel.service.d.ts.map +1 -0
  54. package/dist/services/v4/chat.service.d.ts +199 -0
  55. package/dist/services/v4/chat.service.d.ts.map +1 -0
  56. package/dist/services/v4/global.service.d.ts +86 -0
  57. package/dist/services/v4/global.service.d.ts.map +1 -0
  58. package/dist/services/v4/group.service.d.ts +132 -0
  59. package/dist/services/v4/group.service.d.ts.map +1 -0
  60. package/dist/services/v4/material.service.d.ts +85 -0
  61. package/dist/services/v4/material.service.d.ts.map +1 -0
  62. package/dist/services/v4/platform.service.d.ts +148 -0
  63. package/dist/services/v4/platform.service.d.ts.map +1 -0
  64. package/dist/services/v4/robot.service.d.ts +144 -0
  65. package/dist/services/v4/robot.service.d.ts.map +1 -0
  66. package/dist/services/v4/statistics.service.d.ts +61 -0
  67. package/dist/services/v4/statistics.service.d.ts.map +1 -0
  68. package/dist/services/v4/user.service.d.ts +1014 -0
  69. package/dist/services/v4/user.service.d.ts.map +1 -0
  70. package/dist/services/v4/webapp.service.d.ts +131 -0
  71. package/dist/services/v4/webapp.service.d.ts.map +1 -0
  72. package/dist/services/web.service.d.ts +758 -0
  73. package/dist/services/web.service.d.ts.map +1 -0
  74. package/dist/types/account.d.ts +287 -0
  75. package/dist/types/account.d.ts.map +1 -0
  76. package/dist/types/auth.d.ts +31 -0
  77. package/dist/types/auth.d.ts.map +1 -0
  78. package/dist/types/callback.d.ts +156 -0
  79. package/dist/types/callback.d.ts.map +1 -0
  80. package/dist/types/channel.d.ts +2263 -0
  81. package/dist/types/channel.d.ts.map +1 -0
  82. package/dist/types/chat-banned.d.ts +366 -0
  83. package/dist/types/chat-banned.d.ts.map +1 -0
  84. package/dist/types/chat-censor-role.d.ts +190 -0
  85. package/dist/types/chat-censor-role.d.ts.map +1 -0
  86. package/dist/types/chat.d.ts +142 -0
  87. package/dist/types/chat.d.ts.map +1 -0
  88. package/dist/types/client.d.ts +43 -0
  89. package/dist/types/client.d.ts.map +1 -0
  90. package/dist/types/common.d.ts +52 -0
  91. package/dist/types/common.d.ts.map +1 -0
  92. package/dist/types/finance.d.ts +252 -0
  93. package/dist/types/finance.d.ts.map +1 -0
  94. package/dist/types/group.d.ts +129 -0
  95. package/dist/types/group.d.ts.map +1 -0
  96. package/dist/types/index.d.ts +50 -0
  97. package/dist/types/index.d.ts.map +1 -0
  98. package/dist/types/live-interaction.d.ts +301 -0
  99. package/dist/types/live-interaction.d.ts.map +1 -0
  100. package/dist/types/pagination.d.ts +37 -0
  101. package/dist/types/pagination.d.ts.map +1 -0
  102. package/dist/types/platform.d.ts +178 -0
  103. package/dist/types/platform.d.ts.map +1 -0
  104. package/dist/types/player.d.ts +177 -0
  105. package/dist/types/player.d.ts.map +1 -0
  106. package/dist/types/request.d.ts +45 -0
  107. package/dist/types/request.d.ts.map +1 -0
  108. package/dist/types/response.d.ts +58 -0
  109. package/dist/types/response.d.ts.map +1 -0
  110. package/dist/types/signature.d.ts +50 -0
  111. package/dist/types/signature.d.ts.map +1 -0
  112. package/dist/types/upload.d.ts +32 -0
  113. package/dist/types/upload.d.ts.map +1 -0
  114. package/dist/types/v4-ai.d.ts +379 -0
  115. package/dist/types/v4-ai.d.ts.map +1 -0
  116. package/dist/types/v4-channel.d.ts +2400 -0
  117. package/dist/types/v4-channel.d.ts.map +1 -0
  118. package/dist/types/v4-chat.d.ts +190 -0
  119. package/dist/types/v4-chat.d.ts.map +1 -0
  120. package/dist/types/v4-global.d.ts +150 -0
  121. package/dist/types/v4-global.d.ts.map +1 -0
  122. package/dist/types/v4-group.d.ts +212 -0
  123. package/dist/types/v4-group.d.ts.map +1 -0
  124. package/dist/types/v4-material.d.ts +141 -0
  125. package/dist/types/v4-material.d.ts.map +1 -0
  126. package/dist/types/v4-platform.d.ts +223 -0
  127. package/dist/types/v4-platform.d.ts.map +1 -0
  128. package/dist/types/v4-robot.d.ts +149 -0
  129. package/dist/types/v4-robot.d.ts.map +1 -0
  130. package/dist/types/v4-statistics.d.ts +87 -0
  131. package/dist/types/v4-statistics.d.ts.map +1 -0
  132. package/dist/types/v4-user.d.ts +1021 -0
  133. package/dist/types/v4-user.d.ts.map +1 -0
  134. package/dist/types/v4-webapp.d.ts +161 -0
  135. package/dist/types/v4-webapp.d.ts.map +1 -0
  136. package/dist/types/version.d.ts +21 -0
  137. package/dist/types/version.d.ts.map +1 -0
  138. package/dist/types/web.d.ts +868 -0
  139. package/dist/types/web.d.ts.map +1 -0
  140. package/dist/utils/env.d.ts +54 -0
  141. package/dist/utils/env.d.ts.map +1 -0
  142. package/dist/utils/index.d.ts +11 -0
  143. package/dist/utils/index.d.ts.map +1 -0
  144. package/dist/utils/pagination.d.ts +62 -0
  145. package/dist/utils/pagination.d.ts.map +1 -0
  146. package/dist/utils/signature.d.ts +67 -0
  147. package/dist/utils/signature.d.ts.map +1 -0
  148. package/package.json +76 -0
@@ -0,0 +1,474 @@
1
+ /**
2
+ * LiveInteraction Service
3
+ *
4
+ * 直播互动功能服务 (抽奖、问卷、签到、答题卡、点赞、打赏)
5
+ *
6
+ * @module services/live-interaction.service
7
+ */
8
+ import type { PolyVClient } from '../client.js';
9
+ import type { GetCheckinListParams, GetCheckinByCheckinIdParams, GetCheckinBySessionIdParams, GetCheckinByTimeParams, CheckinListResponse, CheckinRecordResponse, CreateQuestionnaireParams, BatchCreateQuestionnaireParams, BatchCreateQuestionnaireBody, AddEditQuestionnaireParams, AddEditQuestionnaireBody, ListQuestionnaireParams, ListQuestionnaireByPageParams, GetQuestionnaireDetailParams, GetQuestionnaireResultParams, QuestionnaireListResponse, QuestionnaireDetailResponse, QuestionnaireResultResponse, ListQuestionParams, ListQuestionSendTimeParams, AddEditQuestionParams, DeleteQuestionParams, SendQuestionParams, StopQuestionParams, SendQuestionResultParams, GetAnswerListParams, QuestionListResponse, AnswerListResponse, ListLotteryParams, ListChannelsLotteryParams, GetWinnerDetailParams, DownloadWinnerDetailParams, AddReceiveInfoParams, AddReceiveInfoV4Params, LotteryListResponse, WinnerDetailResponse, AddReceiveInfoResponse, SendFavorParams, SendFavorResponse, SendRewardMsgParams, SendRewardMsgResponse, GetQuestionListParams, QuestionListResponse2 } from '../types/live-interaction.js';
10
+ /**
11
+ * LiveInteractionService
12
+ *
13
+ * 提供直播互动功能API,包括:
14
+ * - 签到管理
15
+ * - 问卷管理
16
+ * - 答题卡管理
17
+ * - 抽奖管理
18
+ * - 点赞、打赏等互动功能
19
+ */
20
+ export declare class LiveInteractionService {
21
+ private readonly client;
22
+ constructor(client: PolyVClient);
23
+ /**
24
+ * 查询频道签到记录(仅返回已签到记录)
25
+ *
26
+ * @param params - Query parameters
27
+ * @returns Paginated checkin list
28
+ *
29
+ * @example
30
+ * ```typescript
31
+ * const result = await client.liveInteraction.getCheckinList({
32
+ * channelId: '2191569',
33
+ * date: '2024-01-01',
34
+ * page: 1,
35
+ * pageSize: 20,
36
+ * });
37
+ * ```
38
+ */
39
+ getCheckinList(params: GetCheckinListParams): Promise<CheckinListResponse>;
40
+ /**
41
+ * 通过签到id查询签到记录(包括已签到与未签到记录)
42
+ *
43
+ * @param params - Query parameters
44
+ * @returns Checkin record data
45
+ *
46
+ * @example
47
+ * ```typescript
48
+ * const result = await client.liveInteraction.getCheckinByCheckinId({
49
+ * channelId: '2191569',
50
+ * checkinId: 'checkin-001',
51
+ * });
52
+ * ```
53
+ */
54
+ getCheckinByCheckinId(params: GetCheckinByCheckinIdParams): Promise<CheckinRecordResponse>;
55
+ /**
56
+ * 通过直播场次id查询签到发起记录
57
+ *
58
+ * @param params - Query parameters
59
+ * @returns Checkin record data
60
+ *
61
+ * @example
62
+ * ```typescript
63
+ * const result = await client.liveInteraction.getCheckinBySessionId({
64
+ * channelId: '2191569',
65
+ * sessionId: 'session-001',
66
+ * });
67
+ * ```
68
+ */
69
+ getCheckinBySessionId(params: GetCheckinBySessionIdParams): Promise<CheckinRecordResponse>;
70
+ /**
71
+ * 通过指定时间范围查询签到发起记录
72
+ *
73
+ * @param params - Query parameters
74
+ * @returns Checkin record data
75
+ *
76
+ * @example
77
+ * ```typescript
78
+ * const result = await client.liveInteraction.getCheckinByTime({
79
+ * channelId: '2191569',
80
+ * startDate: '2024-01-01',
81
+ * endDate: '2024-01-31',
82
+ * });
83
+ * ```
84
+ */
85
+ getCheckinByTime(params: GetCheckinByTimeParams): Promise<CheckinRecordResponse>;
86
+ /**
87
+ * 创建问卷
88
+ *
89
+ * @param params - Create parameters
90
+ * @param body - Questionnaire data
91
+ * @returns Questionnaire detail
92
+ *
93
+ * @example
94
+ * ```typescript
95
+ * const result = await client.liveInteraction.createQuestionnaire({
96
+ * channelId: 2191569,
97
+ * });
98
+ * ```
99
+ */
100
+ createQuestionnaire(params: CreateQuestionnaireParams): Promise<QuestionnaireDetailResponse>;
101
+ /**
102
+ * 批量创建问卷(支持多频道同时创建)
103
+ *
104
+ * @param params - Create parameters
105
+ * @param body - Questionnaire data with channel IDs
106
+ * @returns Questionnaire detail
107
+ *
108
+ * @example
109
+ * ```typescript
110
+ * const result = await client.liveInteraction.batchCreateQuestionnaire({}, {
111
+ * channelIds: [2191569, 2191570],
112
+ * title: '问卷调查',
113
+ * items: [{ type: 'R', question: '您喜欢这个直播吗?', options: ['是', '否'] }],
114
+ * });
115
+ * ```
116
+ */
117
+ batchCreateQuestionnaire(params: BatchCreateQuestionnaireParams, body: BatchCreateQuestionnaireBody): Promise<QuestionnaireDetailResponse>;
118
+ /**
119
+ * 编辑或添加问卷信息
120
+ *
121
+ * @param params - Query parameters
122
+ * @param body - Questionnaire data
123
+ * @returns Questionnaire detail
124
+ *
125
+ * @example
126
+ * ```typescript
127
+ * const result = await client.liveInteraction.addEditQuestionnaire({
128
+ * channelId: '2191569',
129
+ * }, {
130
+ * questionnaireId: 'questionnaire-001',
131
+ * title: '问卷调查',
132
+ * items: [{ type: 'R', question: '问题', options: ['选项1', '选项2'] }],
133
+ * });
134
+ * ```
135
+ */
136
+ addEditQuestionnaire(params: AddEditQuestionnaireParams, body: AddEditQuestionnaireBody): Promise<QuestionnaireDetailResponse>;
137
+ /**
138
+ * 获取频道的问卷列表
139
+ *
140
+ * @param params - Query parameters
141
+ * @returns Questionnaire list
142
+ *
143
+ * @example
144
+ * ```typescript
145
+ * const result = await client.liveInteraction.listQuestionnaire({
146
+ * channelId: '2191569',
147
+ * startTime: 1704067200000,
148
+ * endTime: 1704153600000,
149
+ * });
150
+ * ```
151
+ */
152
+ listQuestionnaire(params: ListQuestionnaireParams): Promise<QuestionnaireListResponse>;
153
+ /**
154
+ * 分页查询频道问卷结果
155
+ *
156
+ * @param params - Query parameters
157
+ * @returns Questionnaire list
158
+ *
159
+ * @example
160
+ * ```typescript
161
+ * const result = await client.liveInteraction.listQuestionnaireByPage({
162
+ * channelId: '2191569',
163
+ * page: 1,
164
+ * pageSize: 10,
165
+ * });
166
+ * ```
167
+ */
168
+ listQuestionnaireByPage(params: ListQuestionnaireByPageParams): Promise<QuestionnaireListResponse>;
169
+ /**
170
+ * 查询频道问卷题目与结果
171
+ *
172
+ * @param params - Query parameters
173
+ * @returns Questionnaire detail
174
+ *
175
+ * @example
176
+ * ```typescript
177
+ * const result = await client.liveInteraction.getQuestionnaireDetail({
178
+ * channelId: '2191569',
179
+ * questionnaireId: 'questionnaire-001',
180
+ * });
181
+ * ```
182
+ */
183
+ getQuestionnaireDetail(params: GetQuestionnaireDetailParams): Promise<QuestionnaireDetailResponse>;
184
+ /**
185
+ * 查询直播问卷的答题结果及统计
186
+ *
187
+ * @param params - Query parameters
188
+ * @returns Questionnaire result
189
+ *
190
+ * @example
191
+ * ```typescript
192
+ * const result = await client.liveInteraction.getQuestionnaireResult({
193
+ * channelId: '2191569',
194
+ * questionnaireId: 'questionnaire-001',
195
+ * });
196
+ * ```
197
+ */
198
+ getQuestionnaireResult(params: GetQuestionnaireResultParams): Promise<QuestionnaireResultResponse>;
199
+ /**
200
+ * 获取频道的答题卡列表
201
+ *
202
+ * @param params - Query parameters
203
+ * @returns Question list
204
+ *
205
+ * @example
206
+ * ```typescript
207
+ * const result = await client.liveInteraction.listQuestion({
208
+ * channelId: '2191569',
209
+ * });
210
+ * ```
211
+ */
212
+ listQuestion(params: ListQuestionParams): Promise<QuestionListResponse>;
213
+ /**
214
+ * 获取频道的答题卡发送时间列表
215
+ *
216
+ * @param params - Query parameters
217
+ * @returns Question send time list
218
+ *
219
+ * @example
220
+ * ```typescript
221
+ * const result = await client.liveInteraction.listQuestionSendTime({
222
+ * channelId: '2191569',
223
+ * });
224
+ * ```
225
+ */
226
+ listQuestionSendTime(params: ListQuestionSendTimeParams): Promise<QuestionListResponse>;
227
+ /**
228
+ * 编辑或添加答题卡信息
229
+ *
230
+ * @param params - Query parameters
231
+ * @returns Success response
232
+ *
233
+ * @example
234
+ * ```typescript
235
+ * const result = await client.liveInteraction.addEditQuestion({
236
+ * channelId: '2191569',
237
+ * _type: 'R',
238
+ * answer: 'A',
239
+ * name: '单选题',
240
+ * itemType: 0,
241
+ * option1_option15: 'A,B,C,D',
242
+ * });
243
+ * ```
244
+ */
245
+ addEditQuestion(params: AddEditQuestionParams): Promise<QuestionListResponse>;
246
+ /**
247
+ * 删除频道答题卡信息
248
+ *
249
+ * @param params - Delete parameters
250
+ * @returns Success response
251
+ *
252
+ * @example
253
+ * ```typescript
254
+ * const result = await client.liveInteraction.deleteQuestion({
255
+ * channelId: '2191569',
256
+ * questionId: 'question-001',
257
+ * });
258
+ * ```
259
+ */
260
+ deleteQuestion(params: DeleteQuestionParams): Promise<QuestionListResponse>;
261
+ /**
262
+ * 发送答题卡
263
+ *
264
+ * @param params - Send parameters
265
+ * @returns Success response
266
+ *
267
+ * @example
268
+ * ```typescript
269
+ * const result = await client.liveInteraction.sendQuestion({
270
+ * channelId: 2191569,
271
+ * questionId: 'question-001',
272
+ * duration: 30,
273
+ * });
274
+ * ```
275
+ */
276
+ sendQuestion(params: SendQuestionParams): Promise<QuestionListResponse>;
277
+ /**
278
+ * 停止答题卡
279
+ *
280
+ * @param params - Stop parameters
281
+ * @returns Success response
282
+ *
283
+ * @example
284
+ * ```typescript
285
+ * const result = await client.liveInteraction.stopQuestion({
286
+ * channelId: 2191569,
287
+ * questionId: 'question-001',
288
+ * });
289
+ * ```
290
+ */
291
+ stopQuestion(params: StopQuestionParams): Promise<QuestionListResponse>;
292
+ /**
293
+ * 发送答题卡结果
294
+ *
295
+ * @param params - Send parameters
296
+ * @returns Success response
297
+ *
298
+ * @example
299
+ * ```typescript
300
+ * const result = await client.liveInteraction.sendQuestionResult({
301
+ * channelId: 2191569,
302
+ * questionId: 'question-001',
303
+ * });
304
+ * ```
305
+ */
306
+ sendQuestionResult(params: SendQuestionResultParams): Promise<QuestionListResponse>;
307
+ /**
308
+ * 查询答题卡答题结果列表
309
+ *
310
+ * @param params - Query parameters
311
+ * @returns Answer list
312
+ *
313
+ * @example
314
+ * ```typescript
315
+ * const result = await client.liveInteraction.getAnswerList({
316
+ * channelId: '2191569',
317
+ * sessionId: 'session-001',
318
+ * });
319
+ * ```
320
+ */
321
+ getAnswerList(params: GetAnswerListParams): Promise<AnswerListResponse>;
322
+ /**
323
+ * 获取一段时间内的直播频道抽奖记录列表
324
+ *
325
+ * @param params - Query parameters
326
+ * @returns Lottery list
327
+ *
328
+ * @example
329
+ * ```typescript
330
+ * const result = await client.liveInteraction.listLottery({
331
+ * channelId: '2191569',
332
+ * startTime: 1704067200000,
333
+ * endTime: 1704153600000,
334
+ * });
335
+ * ```
336
+ */
337
+ listLottery(params: ListLotteryParams): Promise<LotteryListResponse>;
338
+ /**
339
+ * 获取一段时间内的多个直播频道发起抽奖记录列表
340
+ *
341
+ * @param params - Query parameters
342
+ * @returns Lottery list
343
+ *
344
+ * @example
345
+ * ```typescript
346
+ * const result = await client.liveInteraction.listChannelsLottery({
347
+ * channelIds: '2191569,2191570',
348
+ * startTime: 1704067200000,
349
+ * endTime: 1704153600000,
350
+ * });
351
+ * ```
352
+ */
353
+ listChannelsLottery(params: ListChannelsLotteryParams): Promise<LotteryListResponse>;
354
+ /**
355
+ * 通过抽奖ID获取频道的单场抽奖的中奖用户列表
356
+ *
357
+ * @param params - Query parameters
358
+ * @returns Winner detail list
359
+ *
360
+ * @example
361
+ * ```typescript
362
+ * const result = await client.liveInteraction.getWinnerDetail({
363
+ * channelId: '2191569',
364
+ * lotteryId: 'lottery-001',
365
+ * page: 1,
366
+ * limit: 10,
367
+ * });
368
+ * ```
369
+ */
370
+ getWinnerDetail(params: GetWinnerDetailParams): Promise<WinnerDetailResponse>;
371
+ /**
372
+ * 导出频道的单抽奖的中奖用户列表的中奖文件
373
+ *
374
+ * @param params - Query parameters
375
+ * @returns File download URL or data
376
+ *
377
+ * @example
378
+ * ```typescript
379
+ * const result = await client.liveInteraction.downloadWinnerDetail({
380
+ * channelId: '2191569',
381
+ * lotteryId: 'lottery-001',
382
+ * });
383
+ * ```
384
+ */
385
+ downloadWinnerDetail(params: DownloadWinnerDetailParams): Promise<unknown>;
386
+ /**
387
+ * 提交中奖者填写的信息
388
+ *
389
+ * @param params - Receive info parameters
390
+ * @returns Success response
391
+ *
392
+ * @example
393
+ * ```typescript
394
+ * const result = await client.liveInteraction.addReceiveInfo({
395
+ * channelId: '2191569',
396
+ * lotteryId: 'lottery-001',
397
+ * winnerCode: 'WIN001',
398
+ * viewerId: 'viewer-001',
399
+ * name: '张三',
400
+ * telephone: '13800138000',
401
+ * });
402
+ * ```
403
+ */
404
+ addReceiveInfo(params: AddReceiveInfoParams): Promise<AddReceiveInfoResponse>;
405
+ /**
406
+ * 提交中奖者填写的信息 (V4版本)
407
+ *
408
+ * @param params - Receive info parameters
409
+ * @returns Success response
410
+ *
411
+ * @example
412
+ * ```typescript
413
+ * const result = await client.liveInteraction.addReceiveInfoV4({
414
+ * channelId: '2191569',
415
+ * lotteryId: 'lottery-001',
416
+ * winnerCode: 'WIN001',
417
+ * viewerId: 'viewer-001',
418
+ * receiveInfo: [{ field: '姓名', value: '张三' }],
419
+ * });
420
+ * ```
421
+ */
422
+ addReceiveInfoV4(params: AddReceiveInfoV4Params): Promise<AddReceiveInfoResponse>;
423
+ /**
424
+ * 点赞
425
+ *
426
+ * @param params - Favor parameters
427
+ * @returns Like count
428
+ *
429
+ * @example
430
+ * ```typescript
431
+ * const result = await client.liveInteraction.sendFavor({
432
+ * viewerId: 'viewer-001',
433
+ * times: 1,
434
+ * });
435
+ * ```
436
+ */
437
+ sendFavor(params: SendFavorParams): Promise<SendFavorResponse>;
438
+ /**
439
+ * 发送打赏消息
440
+ *
441
+ * @param params - Reward parameters
442
+ * @returns Success response
443
+ *
444
+ * @example
445
+ * ```typescript
446
+ * const result = await client.liveInteraction.sendRewardMsg({
447
+ * channelId: '2191569',
448
+ * nickname: '张三',
449
+ * avatar: 'https://example.com/avatar.png',
450
+ * viewerId: 'viewer-001',
451
+ * donateType: 'cash',
452
+ * content: '100',
453
+ * });
454
+ * ```
455
+ */
456
+ sendRewardMsg(params: SendRewardMsgParams): Promise<SendRewardMsgResponse>;
457
+ /**
458
+ * 查询咨询提问记录
459
+ *
460
+ * @param channelId - Channel ID
461
+ * @param params - Query parameters
462
+ * @returns Question list
463
+ *
464
+ * @example
465
+ * ```typescript
466
+ * const result = await client.liveInteraction.getQuestionList('2191569', {
467
+ * begin: 0,
468
+ * end: 100,
469
+ * });
470
+ * ```
471
+ */
472
+ getQuestionList(channelId: string, params?: GetQuestionListParams): Promise<QuestionListResponse2>;
473
+ }
474
+ //# sourceMappingURL=live-interaction.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"live-interaction.service.d.ts","sourceRoot":"","sources":["../../src/services/live-interaction.service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAEV,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EAErB,yBAAyB,EACzB,8BAA8B,EAC9B,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,6BAA6B,EAC7B,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAE3B,kBAAkB,EAClB,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAElB,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EAEtB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,8BAA8B,CAAC;AAEtC;;;;;;;;;GASG;AACH,qBAAa,sBAAsB;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAMhD;;;;;;;;;;;;;;;OAeG;IACG,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAQhF;;;;;;;;;;;;;OAaG;IACG,qBAAqB,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAQhG;;;;;;;;;;;;;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