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,868 @@
1
+ /**
2
+ * Web Types
3
+ *
4
+ * TypeScript type definitions for Web Service APIs.
5
+ *
6
+ * @module types/web
7
+ */
8
+ /**
9
+ * File type for Node.js/browser compatibility
10
+ * In Node.js, this would typically be a Buffer or ReadStream
11
+ */
12
+ type PolyVFile = Blob | Buffer | File;
13
+ /**
14
+ * Splash screen settings response
15
+ */
16
+ export interface GetSplashResponse {
17
+ /** Splash image URL */
18
+ splashImg: string;
19
+ /** Splash enabled flag: Y or N */
20
+ splashEnabled: string;
21
+ }
22
+ /**
23
+ * Set splash parameters
24
+ */
25
+ export interface SetSplashParams {
26
+ /** Channel ID (required) */
27
+ channelId: string;
28
+ /** Enable splash screen: Y or N */
29
+ splashEnabled: string;
30
+ /** Image file (optional) */
31
+ imgfile?: PolyVFile;
32
+ }
33
+ /**
34
+ * Set publisher parameters
35
+ */
36
+ export interface SetPublisherParams {
37
+ /** User ID (in URL path) */
38
+ userId: string;
39
+ /** Publisher name (max 50 characters) */
40
+ publisher: string;
41
+ /** Channel ID (optional, -1 for all channels) */
42
+ channelId?: string;
43
+ }
44
+ /**
45
+ * Update channel name parameters
46
+ */
47
+ export interface UpdateChannelNameParams {
48
+ /** Channel ID */
49
+ channelId: string;
50
+ /** New channel name */
51
+ name: string;
52
+ }
53
+ /**
54
+ * Update channel logo parameters
55
+ */
56
+ export interface UpdateChannelLogoParams {
57
+ /** Channel ID */
58
+ channelId: string;
59
+ /** Image file (JPG, JPEG, PNG, max 2MB) */
60
+ imgfile: PolyVFile;
61
+ }
62
+ /**
63
+ * Channel likes info
64
+ */
65
+ export interface ChannelLikes {
66
+ /** Channel ID */
67
+ channelId: string;
68
+ /** Number of likes */
69
+ likes: number;
70
+ /** Number of viewers */
71
+ viewers: number;
72
+ }
73
+ /**
74
+ * Live likes response (array of channel likes)
75
+ */
76
+ export type LiveLikesResponse = ChannelLikes[];
77
+ /**
78
+ * Update likes parameters
79
+ */
80
+ export interface UpdateLikesParams {
81
+ /** Channel ID */
82
+ channelId: string;
83
+ /** Number of likes (optional) */
84
+ likes?: number;
85
+ /** Number of viewers (optional) */
86
+ viewers?: number;
87
+ }
88
+ /**
89
+ * Countdown settings
90
+ */
91
+ export interface GetCountdownResponse {
92
+ /** Booking enabled: Y or N */
93
+ bookingEnabled: string;
94
+ /** Countdown enabled: Y or N */
95
+ countEnabled: string;
96
+ /** Start time (format: yyyy-MM-dd HH:mm:ss) */
97
+ startTime: string;
98
+ /** End time (format: yyyy-MM-dd HH:mm:ss), can be null */
99
+ endTime: string | null;
100
+ }
101
+ /**
102
+ * Set countdown parameters
103
+ */
104
+ export interface SetCountdownParams {
105
+ /** Channel ID */
106
+ channelId: string;
107
+ /** Booking enabled: Y or N (optional) */
108
+ bookingEnabled?: string;
109
+ /** Start time (format: yyyy-MM-dd HH:mm:ss, (optional) */
110
+ startTime?: string;
111
+ }
112
+ /**
113
+ * Menu language types
114
+ */
115
+ export type MenuLang = 'zh_CN' | 'EN';
116
+ /**
117
+ * Menu types
118
+ */
119
+ export type MenuType = 'desc' | 'chat' | 'quiz' | 'text' | 'iframe' | 'qa' | 'buy' | 'invite';
120
+ /**
121
+ * Iframe open types
122
+ */
123
+ export type IframeOpenType = 'currentPage' | 'menuDisplay' | 'newPage';
124
+ /**
125
+ * Link types for iframe menu
126
+ */
127
+ export type LinkType = 10 | 11;
128
+ /**
129
+ * Multi-platform link object for iframe menu
130
+ */
131
+ export interface MultiPlatformLink {
132
+ /** Jump way: NEW_WINDOW/CURRENT_WINDOW/POP_UP */
133
+ jumpWay?: string;
134
+ /** Generic link */
135
+ link?: string;
136
+ /** PC link */
137
+ pcLink?: string;
138
+ /** Mobile link */
139
+ mobileLink?: string;
140
+ /** WeChat mini program original ID */
141
+ wxMiniprogramOriginalId?: string;
142
+ /** WeChat mini program app ID */
143
+ wxMiniprogramAppId?: string;
144
+ /** WeChat mini program page path */
145
+ wxMiniprogramLink?: string;
146
+ /** Mobile app link */
147
+ mobileAppLink?: string;
148
+ /** iOS link */
149
+ iosLink?: string;
150
+ /** Android link */
151
+ androidLink?: string;
152
+ /** Other link */
153
+ otherLink?: string;
154
+ }
155
+ /**
156
+ * Menu item
157
+ */
158
+ export interface MenuItem {
159
+ /** Menu ID */
160
+ menuId: string;
161
+ /** Menu type */
162
+ menuType: MenuType;
163
+ /** Menu name */
164
+ name: string;
165
+ /** Order/rank */
166
+ ordered: number;
167
+ /** Menu content */
168
+ content: string | null;
169
+ /** Menu language */
170
+ lang: MenuLang;
171
+ /** Iframe open type (for iframe menu) */
172
+ iframeOpenType?: IframeOpenType;
173
+ /** Link type (for iframe menu) */
174
+ linkType?: LinkType;
175
+ }
176
+ /**
177
+ * Get menu list parameters
178
+ */
179
+ export interface GetMenuListParams {
180
+ /** Channel ID */
181
+ channelId: string;
182
+ /** Menu language (optional, defaults to zh_CN) */
183
+ lang?: MenuLang;
184
+ }
185
+ /**
186
+ * Get menu list response
187
+ */
188
+ export type GetMenuListResponse = MenuItem[];
189
+ /**
190
+ * Add menu parameters
191
+ */
192
+ export interface AddMenuParams {
193
+ /** Channel ID */
194
+ channelId: string;
195
+ /** Menu name */
196
+ name: string;
197
+ /** Menu type */
198
+ type: MenuType;
199
+ /** Menu content (optional) */
200
+ content?: string;
201
+ /** Menu language (optional, defaults to zh_CN) */
202
+ lang?: MenuLang;
203
+ /** Iframe open type (for iframe menu) */
204
+ iframeOpenType?: IframeOpenType;
205
+ /** Link type (for iframe menu) */
206
+ linkType?: LinkType;
207
+ }
208
+ /**
209
+ * Add menu response
210
+ */
211
+ export interface AddMenuResponse {
212
+ /** Menu ID */
213
+ menuId: string;
214
+ /** Menu type */
215
+ menuType: MenuType;
216
+ /** Menu name */
217
+ name: string;
218
+ /** Order/rank */
219
+ ordered: number;
220
+ /** Menu content */
221
+ content: string;
222
+ /** Menu language */
223
+ lang: MenuLang;
224
+ }
225
+ /**
226
+ * Delete menu parameters
227
+ */
228
+ export interface DeleteMenuParams {
229
+ /** Menu IDs (comma-separated for multiple) */
230
+ menuIds: string;
231
+ /** Menu language (optional, defaults to zh_CN) */
232
+ lang?: MenuLang;
233
+ }
234
+ /**
235
+ * Update menu parameters
236
+ */
237
+ export interface UpdateMenuParams {
238
+ /** Menu ID */
239
+ menuId: string;
240
+ /** Channel ID */
241
+ channelId: string;
242
+ /** Menu content */
243
+ content: string;
244
+ /** Menu language (optional, defaults to zh_CN) */
245
+ lang?: MenuLang;
246
+ /** Iframe open type (for iframe menu) */
247
+ iframeOpenType?: IframeOpenType;
248
+ /** Link type (for iframe menu) */
249
+ linkType?: LinkType;
250
+ }
251
+ /**
252
+ * Set menu parameters (for live introduction menu)
253
+ */
254
+ export interface SetMenuParams {
255
+ /** User ID */
256
+ userId: string;
257
+ /** Channel ID */
258
+ channelId: string;
259
+ /** Menu type (currently only 'desc') */
260
+ menuType: 'desc';
261
+ /** Menu content */
262
+ content: string;
263
+ }
264
+ /**
265
+ * Update menu rank parameters
266
+ */
267
+ export interface UpdateRankParams {
268
+ /** Channel ID */
269
+ channelId: string;
270
+ /** Menu IDs (complete list in desired order, comma-separated) */
271
+ menuIds: string;
272
+ /** Menu language (optional, defaults to zh_CN) */
273
+ lang?: MenuLang;
274
+ }
275
+ /**
276
+ * Update consulting enabled parameters
277
+ */
278
+ export interface UpdateConsultingEnabledParams {
279
+ /** Channel ID */
280
+ channelId: string;
281
+ /** Enable consulting: Y or N */
282
+ enabled: string;
283
+ }
284
+ /**
285
+ * Tuwen (image-text) content item
286
+ */
287
+ export interface TuwenContentItem {
288
+ /** Content ID */
289
+ id: number;
290
+ /** Channel ID */
291
+ channelId: string;
292
+ /** Text content */
293
+ text: string;
294
+ /** Image URLs */
295
+ images: string[];
296
+ /** Is pinned: Y or N */
297
+ top: string;
298
+ /** Created time (13-bit timestamp) */
299
+ createdTime: number;
300
+ }
301
+ /**
302
+ * Tuwen setting
303
+ */
304
+ export interface TuwenSetting {
305
+ /** Setting ID */
306
+ id: number;
307
+ /** Nickname */
308
+ nickname: string;
309
+ /** Actor title */
310
+ actor: string;
311
+ /** Avatar URL */
312
+ avatar: string;
313
+ }
314
+ /**
315
+ * Get tuwen list response
316
+ */
317
+ export interface GetTuwenListResponse {
318
+ /** Total count */
319
+ total: number;
320
+ /** Content items */
321
+ contents: TuwenContentItem[];
322
+ /** Pinned content items */
323
+ topContents: TuwenContentItem[];
324
+ /** Settings */
325
+ setting: TuwenSetting;
326
+ }
327
+ /**
328
+ * Get tuwen list parameters
329
+ */
330
+ export interface GetTuwenListParams {
331
+ /** Channel ID */
332
+ channelId: string;
333
+ /** Content ID for pagination (optional) */
334
+ id?: number;
335
+ /** Image mode: Y or N (optional, defaults to N) */
336
+ imageMode?: string;
337
+ }
338
+ /**
339
+ * Donate goods item
340
+ */
341
+ export interface DonateGoodsItem {
342
+ /** Good name (max 5 characters) */
343
+ goodName: string;
344
+ /** Good image URL (max 120 characters) */
345
+ goodImg: string;
346
+ /** Good price */
347
+ goodPrice: number;
348
+ /** Good enabled flag: Y or N */
349
+ goodEnabled: string;
350
+ }
351
+ /**
352
+ * Get donate settings response
353
+ */
354
+ export interface GetDonateResponse {
355
+ /** Global setting enabled: Y or N */
356
+ globalSettingEnabled: string;
357
+ /** Donate cash enabled: Y or N */
358
+ donateCashEnabled: string;
359
+ /** Donate goods enabled: Y or N */
360
+ donateGoodEnabled: string;
361
+ /** Donate tips */
362
+ donateTips: string;
363
+ /** Minimum cash amount */
364
+ cashMin: number;
365
+ /** Cash amount options */
366
+ cashes: number[];
367
+ /** Goods list */
368
+ goods: DonateGoodsItem[];
369
+ /** Donate point enabled: Y or N */
370
+ donatePointEnabled: string;
371
+ /** Point unit */
372
+ pointUnit: string;
373
+ }
374
+ /**
375
+ * Get weixin share response
376
+ */
377
+ export interface GetWeixinShareResponse {
378
+ /** Channel ID */
379
+ channelId: string;
380
+ /** Channel name */
381
+ channelName: string;
382
+ /** Cover image URL */
383
+ coverImg: string;
384
+ /** WeChat share title */
385
+ weixinShareTitle: string;
386
+ /** WeChat share description */
387
+ weixinShareDesc: string;
388
+ /** WeChat share custom URL */
389
+ weixinShareCustomUrl: string;
390
+ /** Web share custom URL */
391
+ webShareCustomUrl: string;
392
+ }
393
+ /**
394
+ * Good item for update-good request
395
+ */
396
+ export interface GoodItem {
397
+ /** Good name (max 5 characters) */
398
+ goodName: string;
399
+ /** Good image URL (max 120 characters) */
400
+ goodImg: string;
401
+ /** Good price */
402
+ goodPrice: number;
403
+ /** Good enabled flag: Y or N */
404
+ goodEnabled: string;
405
+ }
406
+ /**
407
+ * Update cash parameters
408
+ */
409
+ export interface UpdateCashParams {
410
+ /** Channel ID (optional, null = global setting) */
411
+ channelId?: string;
412
+ /** Cash amount options (array of 6 numbers, required) */
413
+ cashes: number[];
414
+ /** Minimum cash amount (required) */
415
+ cashMin: number;
416
+ /** Enabled flag: Y or N (optional, defaults to Y) */
417
+ enabled?: string;
418
+ }
419
+ /**
420
+ * Update good parameters
421
+ */
422
+ export interface UpdateGoodParams {
423
+ /** Channel ID (optional) */
424
+ channelId?: string;
425
+ /** Goods list (1-10 items) */
426
+ goods: GoodItem[];
427
+ /** Enabled flag: Y or N (optional) */
428
+ enabled?: string;
429
+ }
430
+ /**
431
+ * Update weixin share parameters
432
+ */
433
+ export interface UpdateWeixinShareParams {
434
+ /** Channel ID (required) */
435
+ channelId: string;
436
+ /** WeChat share title (max 30 characters, optional) */
437
+ weixinShareTitle?: string;
438
+ /** WeChat share description (max 120 characters, optional) */
439
+ weixinShareDesc?: string;
440
+ }
441
+ /**
442
+ * Global enabled type
443
+ * Determines which setting to enable/disable
444
+ */
445
+ export type GlobalEnabledType = 'auth' | 'switch' | 'marquee' | 'restrict' | 'donate' | 'advert' | 'callback' | 'player' | 'watchtheme';
446
+ /**
447
+ * Update global enabled parameters
448
+ */
449
+ export interface UpdateGlobalEnabledParams {
450
+ /** Channel ID (required) */
451
+ channelId: string;
452
+ /** Global enabled type */
453
+ globalEnabledType: GlobalEnabledType;
454
+ /** Enabled flag: Y or N (required) */
455
+ enabled: string;
456
+ }
457
+ /**
458
+ * Upload image type
459
+ * Determines which type of image is being uploaded
460
+ */
461
+ export type UploadImageType = 'coverImage' | 'splashImage' | 'logoImage' | 'adminAvatar' | 'assistantAvatar' | 'authCodeImage' | 'warmImage' | 'adImage' | 'startAdImage' | 'stopAdImage' | 'goodImage' | 'invitationImage' | 'menuImage';
462
+ /**
463
+ * Upload image parameters
464
+ */
465
+ export interface UploadImageParams {
466
+ /** Image type */
467
+ type: UploadImageType;
468
+ /** Files to upload (1-6 files) */
469
+ files: PolyVFile[];
470
+ }
471
+ /**
472
+ * Upload image response (array of image URLs)
473
+ */
474
+ export type UploadImageResponse = string[];
475
+ /**
476
+ * Auth type for watch conditions
477
+ */
478
+ export type AuthType = 'none' | 'code' | 'pay' | 'phone' | 'info' | 'wxshare' | 'custom' | 'external' | 'direct' | 'public' | 'wx';
479
+ /**
480
+ * Sub auth type (used when authType is 'none')
481
+ */
482
+ export type SubAuthType = 'public' | 'wx';
483
+ /**
484
+ * Info field type for registration watching
485
+ */
486
+ export type InfoFieldType = 'text' | 'number' | 'option' | 'name' | 'mobile';
487
+ /**
488
+ * Info field for registration watching
489
+ */
490
+ export interface InfoField {
491
+ /** Field type */
492
+ type: InfoFieldType;
493
+ /** Field name/label */
494
+ name: string;
495
+ /** Options (for type 'option') */
496
+ options?: string;
497
+ /** Placeholder text */
498
+ placeholder?: string;
499
+ /** SMS verification enabled: Y or N */
500
+ sms?: string;
501
+ }
502
+ /**
503
+ * Auth setting for set-watch-condition request
504
+ */
505
+ export interface AuthSetting {
506
+ /** Rank: 1 (primary) or 2 (secondary) */
507
+ rank: 1 | 2;
508
+ /** Auth type */
509
+ authType?: AuthType;
510
+ /** Enabled: Y or N */
511
+ enabled?: 'Y' | 'N';
512
+ /** Password (for authType 'code') */
513
+ code?: string;
514
+ /** Price in cents (for authType 'pay') */
515
+ payAmount?: number;
516
+ /** Info fields (for authType 'info') */
517
+ infoFields?: InfoField[];
518
+ /** Sub auth type (for authType 'none') */
519
+ subAuthType?: SubAuthType;
520
+ /** External key (for authType 'external') */
521
+ externalKey?: string;
522
+ /** External URI (for authType 'external') */
523
+ externalUri?: string;
524
+ /** External redirect URI (for authType 'external') */
525
+ externalRedirectUri?: string;
526
+ /** External button enabled: Y or N */
527
+ externalButtonEnabled?: 'Y' | 'N';
528
+ /** Custom key (for authType 'custom') */
529
+ customKey?: string;
530
+ /** Custom URI (for authType 'custom') */
531
+ customUri?: string;
532
+ /** Direct key (for authType 'direct') */
533
+ directKey?: string;
534
+ }
535
+ /**
536
+ * Watch condition response
537
+ */
538
+ export interface WatchConditionResponse {
539
+ /** Channel ID */
540
+ channelId: string;
541
+ /** Auth type */
542
+ authType: AuthType;
543
+ /** Sub auth type */
544
+ subAuthType?: SubAuthType;
545
+ /** Whether watch condition is enabled: Y or N */
546
+ enabled?: string;
547
+ /** Password (for authType 'code') */
548
+ code?: string;
549
+ /** Price in cents (for authType 'pay') */
550
+ payAmount?: number;
551
+ /** Info fields (for authType 'info') */
552
+ infoFields?: InfoField[];
553
+ /** External key (for authType 'external') */
554
+ externalKey?: string;
555
+ /** External URI (for authType 'external') */
556
+ externalUri?: string;
557
+ /** External redirect URI */
558
+ externalRedirectUri?: string;
559
+ /** External button enabled: Y or N */
560
+ externalButtonEnabled?: string;
561
+ /** Custom key (for authType 'custom') */
562
+ customKey?: string;
563
+ /** Custom URI (for authType 'custom') */
564
+ customUri?: string;
565
+ /** Direct key (for authType 'direct') */
566
+ directKey?: string;
567
+ /** Auth URL */
568
+ authUrl?: string;
569
+ /** Authorized addresses */
570
+ authAddresses?: string;
571
+ }
572
+ /**
573
+ * Get watch condition parameters
574
+ */
575
+ export interface GetWatchConditionParams {
576
+ /** Channel ID (optional, omit for global settings) */
577
+ channelId?: string;
578
+ }
579
+ /**
580
+ * Set watch condition parameters
581
+ */
582
+ export interface SetWatchConditionParams {
583
+ /** Channel ID (optional, omit for global settings) */
584
+ channelId?: string;
585
+ /** Auth settings array */
586
+ authSettings: AuthSetting[];
587
+ }
588
+ /**
589
+ * Set auth type parameters
590
+ */
591
+ export interface SetAuthTypeParams {
592
+ /** Channel ID (required) */
593
+ channelId: string;
594
+ /** Auth type */
595
+ authType: 'none';
596
+ }
597
+ /**
598
+ * White list item
599
+ */
600
+ export interface WhiteListItem {
601
+ /** Name */
602
+ name: string;
603
+ /** Phone number */
604
+ phone: string;
605
+ }
606
+ /**
607
+ * Get white list parameters
608
+ */
609
+ export interface GetWhiteListParams {
610
+ /** Rank: 1 (primary) or 2 (secondary) */
611
+ rank: 1 | 2;
612
+ /** Channel ID (optional, omit for global settings) */
613
+ channelId?: string;
614
+ /** Page number (optional, default 1) */
615
+ page?: number;
616
+ /** Page size (optional, default 10) */
617
+ pageSize?: number;
618
+ /** Search keyword (optional) */
619
+ keyword?: string;
620
+ }
621
+ /**
622
+ * Get white list response
623
+ */
624
+ export interface GetWhiteListResponse {
625
+ /** Current page number */
626
+ pageNumber: number;
627
+ /** Total pages */
628
+ totalPages: number;
629
+ /** Page size */
630
+ pageSize: number;
631
+ /** White list contents */
632
+ contents: WhiteListItem[];
633
+ }
634
+ /**
635
+ * Add white list parameters
636
+ */
637
+ export interface AddWhiteListParams {
638
+ /** Rank: 1 (primary) or 2 (secondary) */
639
+ rank: 1 | 2;
640
+ /** Phone number/code (required, max 50 characters) */
641
+ code: string;
642
+ /** Name (optional, max 50 characters) */
643
+ name?: string;
644
+ /** Channel ID (optional, omit for global settings) */
645
+ channelId?: string;
646
+ }
647
+ /**
648
+ * Update white list parameters
649
+ */
650
+ export interface UpdateWhiteListParams {
651
+ /** Rank: 1 (primary) or 2 (secondary) */
652
+ rank: 1 | 2;
653
+ /** Phone number/code (required, max 50 characters) */
654
+ code: string;
655
+ /** Name (optional, max 50 characters) */
656
+ name?: string;
657
+ /** Channel ID (optional, omit for global settings) */
658
+ channelId?: string;
659
+ }
660
+ /**
661
+ * Delete white list parameters
662
+ */
663
+ export interface DeleteWhiteListParams {
664
+ /** Rank: 1 (primary) or 2 (secondary) */
665
+ rank: 1 | 2;
666
+ /** Phone numbers/codes to delete (comma-separated) */
667
+ codes: string;
668
+ /** Channel ID (optional, omit for global settings) */
669
+ channelId?: string;
670
+ }
671
+ /**
672
+ * Upload white list parameters
673
+ */
674
+ export interface UploadWhiteListParams {
675
+ /** Rank: 1 (primary) or 2 (secondary) */
676
+ rank: 1 | 2;
677
+ /** Excel file (from template) */
678
+ file: PolyVFile;
679
+ /** Channel ID (optional, omit for global settings) */
680
+ channelId?: string;
681
+ }
682
+ /**
683
+ * Download white list parameters
684
+ */
685
+ export interface DownloadWhiteListParams {
686
+ /** Rank: 1 (primary) or 2 (secondary) */
687
+ rank: 1 | 2;
688
+ /** Channel ID (optional, omit for global settings) */
689
+ channelId?: string;
690
+ }
691
+ /**
692
+ * Set external auth parameters
693
+ */
694
+ export interface SetExternalAuthParams {
695
+ /** Channel ID (required) */
696
+ channelId: string;
697
+ /** External key (optional) */
698
+ externalKey?: string;
699
+ /** External URI (optional) */
700
+ externalUri?: string;
701
+ /** External redirect URI (optional) */
702
+ externalRedirectUri?: string;
703
+ /** External button enabled: Y or N (optional) */
704
+ externalButtonEnabled?: 'Y' | 'N';
705
+ }
706
+ /**
707
+ * Set custom auth parameters
708
+ */
709
+ export interface SetCustomAuthParams {
710
+ /** Channel ID (required) */
711
+ channelId: string;
712
+ /** Custom key (optional) */
713
+ customKey?: string;
714
+ /** Custom URI (optional) */
715
+ customUri?: string;
716
+ }
717
+ /**
718
+ * Set direct auth parameters
719
+ */
720
+ export interface SetDirectAuthParams {
721
+ /** Channel ID (required) */
722
+ channelId: string;
723
+ /** Direct key (optional) */
724
+ directKey?: string;
725
+ }
726
+ /**
727
+ * Direct auth parameters
728
+ */
729
+ export interface DirectAuthParams {
730
+ /** Channel ID (required) */
731
+ channelId: string;
732
+ }
733
+ /**
734
+ * Direct auth response
735
+ */
736
+ export interface DirectAuthResponse {
737
+ /** Direct key */
738
+ directKey: string;
739
+ }
740
+ /**
741
+ * Get record field parameters
742
+ */
743
+ export interface GetRecordFieldParams {
744
+ /** Channel ID (required) */
745
+ channelId: string;
746
+ }
747
+ /**
748
+ * Record field response
749
+ */
750
+ export interface RecordFieldResponse {
751
+ /** Info fields */
752
+ infoFields: InfoField[];
753
+ }
754
+ /**
755
+ * Get record info parameters
756
+ */
757
+ export interface GetRecordInfoParams {
758
+ /** Channel ID (required) */
759
+ channelId: string;
760
+ }
761
+ /**
762
+ * Record info item
763
+ */
764
+ export interface RecordInfoItem {
765
+ /** Record ID */
766
+ id: number;
767
+ /** Name */
768
+ name: string;
769
+ /** Phone */
770
+ phone: string;
771
+ /** Custom fields data */
772
+ [key: string]: unknown;
773
+ }
774
+ /**
775
+ * Record info response
776
+ */
777
+ export interface RecordInfoResponse {
778
+ /** Total count */
779
+ total: number;
780
+ /** Record info items */
781
+ contents: RecordInfoItem[];
782
+ }
783
+ /**
784
+ * Enroll list parameters
785
+ */
786
+ export interface EnrollListParams {
787
+ /** Channel ID (required) */
788
+ channelId: string;
789
+ /** Page number (optional, default 1) */
790
+ page?: number;
791
+ /** Page size (optional, default 10) */
792
+ pageSize?: number;
793
+ }
794
+ /**
795
+ * Enroll item
796
+ */
797
+ export interface EnrollItem {
798
+ /** Enroll ID */
799
+ id: number;
800
+ /** User ID */
801
+ userId: string;
802
+ /** Nickname */
803
+ nickname: string;
804
+ /** Avatar */
805
+ avatar: string;
806
+ /** Enroll time (13-bit timestamp) */
807
+ createdTime: number;
808
+ /** Custom fields data */
809
+ [key: string]: unknown;
810
+ }
811
+ /**
812
+ * Enroll list response
813
+ */
814
+ export interface EnrollListResponse {
815
+ /** Total count */
816
+ total: number;
817
+ /** Current page */
818
+ pageNumber: number;
819
+ /** Total pages */
820
+ totalPages: number;
821
+ /** Page size */
822
+ pageSize: number;
823
+ /** Enroll items */
824
+ contents: EnrollItem[];
825
+ }
826
+ /**
827
+ * Download record info parameters
828
+ */
829
+ export interface DownloadRecordInfoParams {
830
+ /** Channel ID (required) */
831
+ channelId: string;
832
+ }
833
+ /**
834
+ * Update auth URL parameters
835
+ */
836
+ export interface UpdateAuthUrlParams {
837
+ /** Channel ID (required) */
838
+ channelId: string;
839
+ /** Auth URL (optional) */
840
+ authUrl?: string;
841
+ }
842
+ /**
843
+ * Set authorized address parameters
844
+ */
845
+ export interface SetAuthorizedAddressParams {
846
+ /** Channel ID (required) */
847
+ channelId: string;
848
+ /** Authorized addresses (comma-separated, optional) */
849
+ authAddresses?: string;
850
+ }
851
+ /**
852
+ * Custom auth info response (customauth2)
853
+ */
854
+ export interface CustomAuthInfoResponse {
855
+ /** Custom key */
856
+ customKey: string;
857
+ /** Custom URI */
858
+ customUri: string;
859
+ }
860
+ /**
861
+ * PolyV URL response
862
+ */
863
+ export interface PolyvUrlResponse {
864
+ /** PolyV auth URL */
865
+ url: string;
866
+ }
867
+ export {};
868
+ //# sourceMappingURL=web.d.ts.map