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,148 @@
1
+ /**
2
+ * V4 Platform Service
3
+ *
4
+ * Service for managing PolyV V4 Platform operations (Coupon management).
5
+ * Provides methods for coupon CRUD, search, and batch operations.
6
+ *
7
+ * @module services/v4/platform
8
+ */
9
+ import type { PolyVClient } from '../../client.js';
10
+ import type { CreateCouponParams, UpdateCouponParams, SearchCouponsParams, SearchCouponsResponse, SearchCouponViewersParams, SearchCouponViewersResponse, DeleteCouponsBatchParams, UpdateCouponsStatusBatchParams } from '../../types/v4-platform.js';
11
+ /**
12
+ * V4 Platform Service
13
+ *
14
+ * Provides methods for managing coupons including create, update, search, and batch operations.
15
+ */
16
+ export declare class V4PlatformService {
17
+ private client;
18
+ constructor(client: PolyVClient);
19
+ /**
20
+ * Validate pagination parameters
21
+ */
22
+ private validatePagination;
23
+ /**
24
+ * Validate coupon IDs array for batch operations
25
+ */
26
+ private validateCouponIds;
27
+ /**
28
+ * Validate coupon creation parameters
29
+ */
30
+ private validateCreateCouponParams;
31
+ /**
32
+ * Validate coupon update parameters
33
+ */
34
+ private validateUpdateCouponParams;
35
+ /**
36
+ * Create a coupon
37
+ *
38
+ * Creates a new coupon with the specified parameters.
39
+ *
40
+ * @param params - Coupon creation parameters
41
+ * @returns Promise resolving to the created coupon ID
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * const couponId = await client.v4Platform.createCoupon({
46
+ * name: 'Summer Discount',
47
+ * receiveStartTime: Date.now(),
48
+ * receiveEndTime: Date.now() + 7 * 24 * 60 * 60 * 1000,
49
+ * useTimeType: 'DAY',
50
+ * dayOfUse: 30,
51
+ * type: 'MAX_OUT',
52
+ * availableAmount: 1000,
53
+ * rule: {
54
+ * condition: 'UNCONDITIONAL',
55
+ * unconditional: { enable: true, value: 10, unit: 'MONEY' },
56
+ * limitPerPerson: 1
57
+ * }
58
+ * });
59
+ * ```
60
+ */
61
+ createCoupon(params: CreateCouponParams): Promise<string>;
62
+ /**
63
+ * Update a coupon
64
+ *
65
+ * Updates an existing coupon. Cannot update coupons with status FINISHED or INVALID.
66
+ *
67
+ * @param params - Coupon update parameters
68
+ *
69
+ * @example
70
+ * ```typescript
71
+ * await client.v4Platform.updateCoupon({
72
+ * couponId: 'coupon123',
73
+ * name: 'Updated Coupon Name',
74
+ * availableAmount: 2000
75
+ * });
76
+ * ```
77
+ */
78
+ updateCoupon(params: UpdateCouponParams): Promise<void>;
79
+ /**
80
+ * Search coupons
81
+ *
82
+ * Retrieves a paginated list of coupons with optional filtering.
83
+ *
84
+ * @param params - Search parameters
85
+ * @returns Promise resolving to paginated coupon list
86
+ *
87
+ * @example
88
+ * ```typescript
89
+ * const result = await client.v4Platform.searchCoupons({
90
+ * status: 'GOING',
91
+ * pageNumber: 1,
92
+ * pageSize: 20
93
+ * });
94
+ * console.log(`Found ${result.total} active coupons`);
95
+ * ```
96
+ */
97
+ searchCoupons(params?: SearchCouponsParams): Promise<SearchCouponsResponse>;
98
+ /**
99
+ * Search coupon viewers (recipients)
100
+ *
101
+ * Retrieves a paginated list of viewers who have received a specific coupon.
102
+ *
103
+ * @param params - Search parameters (couponId is required)
104
+ * @returns Promise resolving to paginated viewer list
105
+ *
106
+ * @example
107
+ * ```typescript
108
+ * const result = await client.v4Platform.searchCouponViewers({
109
+ * couponId: 'coupon123',
110
+ * pageNumber: 1,
111
+ * pageSize: 50
112
+ * });
113
+ * console.log(`${result.total} viewers received this coupon`);
114
+ * ```
115
+ */
116
+ searchCouponViewers(params: SearchCouponViewersParams): Promise<SearchCouponViewersResponse>;
117
+ /**
118
+ * Delete coupons in batch
119
+ *
120
+ * Deletes multiple coupons at once (max 200).
121
+ *
122
+ * @param params - Batch delete parameters
123
+ *
124
+ * @example
125
+ * ```typescript
126
+ * await client.v4Platform.deleteCouponsBatch({
127
+ * couponIds: ['coupon1', 'coupon2', 'coupon3']
128
+ * });
129
+ * ```
130
+ */
131
+ deleteCouponsBatch(params: DeleteCouponsBatchParams): Promise<void>;
132
+ /**
133
+ * Update coupons status in batch
134
+ *
135
+ * Stops or invalidates multiple coupons at once (max 200).
136
+ *
137
+ * @param params - Batch status update parameters
138
+ *
139
+ * @example
140
+ * ```typescript
141
+ * await client.v4Platform.updateCouponsStatusBatch({
142
+ * couponIds: ['coupon1', 'coupon2']
143
+ * });
144
+ * ```
145
+ */
146
+ updateCouponsStatusBatch(params: UpdateCouponsStatusBatchParams): Promise<void>;
147
+ }
148
+ //# sourceMappingURL=platform.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform.service.d.ts","sourceRoot":"","sources":["../../../src/services/v4/platform.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAEV,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAE3B,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,4BAA4B,CAAC;AAEpC;;;;GAIG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAc;gBAEhB,MAAM,EAAE,WAAW;IAQ/B;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAS1B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IASzB;;OAEG;IACH,OAAO,CAAC,0BAA0B;IA0BlC;;OAEG;IACH,OAAO,CAAC,0BAA0B;IAUlC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAa/D;;;;;;;;;;;;;;;OAeG;IACG,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAY7D;;;;;;;;;;;;;;;;;OAiBG;IACG,aAAa,CAAC,MAAM,GAAE,mBAAwB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAUrF;;;;;;;;;;;;;;;;;OAiBG;IACG,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAiBlG;;;;;;;;;;;;;OAaG;IACG,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IASzE;;;;;;;;;;;;;OAaG;IACG,wBAAwB,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,IAAI,CAAC;CAQtF"}
@@ -0,0 +1,144 @@
1
+ /**
2
+ * V4 Robot Service
3
+ *
4
+ * Service for managing PolyV V4 Robot operations.
5
+ * Provides methods for global robot management and channel robot settings.
6
+ *
7
+ * @module services/v4/robot
8
+ */
9
+ import type { PolyVClient } from '../../client.js';
10
+ import type { ListRobotsParams, ListRobotsResponse, BatchSaveRobotsParams, BatchSaveRobotsResponse, BatchDeleteRobotsParams, GetRobotSettingParams, RobotSetting, UpdateRobotSettingParams, GetRobotStatsParams, RobotStats, PauseRobotParams } from '../../types/v4-robot.js';
11
+ /**
12
+ * V4RobotService
13
+ *
14
+ * Provides methods to interact with PolyV V4 Robot APIs.
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * const client = new PolyVClient({ appId: 'xxx', appSecret: 'yyy' });
19
+ * const robots = await client.v4Robot.listRobots({ pageNumber: 1, pageSize: 10 });
20
+ * ```
21
+ */
22
+ export declare class V4RobotService {
23
+ private client;
24
+ /**
25
+ * Create a new V4RobotService instance
26
+ *
27
+ * @param client - The PolyVClient instance to use for API calls
28
+ */
29
+ constructor(client: PolyVClient);
30
+ /**
31
+ * Query robot virtual nicknames with pagination
32
+ *
33
+ * @param params - Query parameters (optional)
34
+ * @returns Paginated robot list
35
+ *
36
+ * @example
37
+ * ```typescript
38
+ * const result = await client.v4Robot.listRobots({
39
+ * pageNumber: 1,
40
+ * pageSize: 10,
41
+ * });
42
+ * console.log(result.contents);
43
+ * ```
44
+ */
45
+ listRobots(params?: ListRobotsParams): Promise<ListRobotsResponse>;
46
+ /**
47
+ * Batch create robot virtual nicknames
48
+ *
49
+ * @param params - Batch creation parameters
50
+ * @returns Batch creation result
51
+ *
52
+ * @example
53
+ * ```typescript
54
+ * const result = await client.v4Robot.batchSaveRobots({
55
+ * robots: [
56
+ * { name: 'Robot A', avatar: 'https://example.com/a.jpg' },
57
+ * { name: 'Robot B' },
58
+ * ],
59
+ * });
60
+ * console.log(result.savedCount);
61
+ * ```
62
+ */
63
+ batchSaveRobots(params: BatchSaveRobotsParams): Promise<BatchSaveRobotsResponse>;
64
+ /**
65
+ * Batch delete robots
66
+ *
67
+ * @param params - Batch deletion parameters
68
+ *
69
+ * @example
70
+ * ```typescript
71
+ * await client.v4Robot.batchDeleteRobots({
72
+ * ids: [3001, 3002, 3003],
73
+ * });
74
+ * ```
75
+ */
76
+ batchDeleteRobots(params: BatchDeleteRobotsParams): Promise<void>;
77
+ /**
78
+ * Query channel robot settings
79
+ *
80
+ * @param params - Query parameters
81
+ * @returns Channel robot settings
82
+ *
83
+ * @example
84
+ * ```typescript
85
+ * const settings = await client.v4Robot.getRobotSetting({
86
+ * channelId: '12345678',
87
+ * });
88
+ * console.log(settings.robotNumber);
89
+ * ```
90
+ */
91
+ getRobotSetting(params: GetRobotSettingParams): Promise<RobotSetting>;
92
+ /**
93
+ * Update channel robot settings
94
+ *
95
+ * @param params - Update parameters
96
+ *
97
+ * @example
98
+ * ```typescript
99
+ * await client.v4Robot.updateRobotSetting({
100
+ * channelId: '12345678',
101
+ * robotNumber: 10,
102
+ * addRobotModel: 'timely',
103
+ * });
104
+ * ```
105
+ */
106
+ updateRobotSetting(params: UpdateRobotSettingParams): Promise<void>;
107
+ /**
108
+ * Query channel robot stats
109
+ *
110
+ * @param params - Query parameters
111
+ * @returns Channel robot stats
112
+ *
113
+ * @example
114
+ * ```typescript
115
+ * const stats = await client.v4Robot.getRobotStats({
116
+ * channelId: '12345678',
117
+ * });
118
+ * console.log(stats.robotCount);
119
+ * ```
120
+ */
121
+ getRobotStats(params: GetRobotStatsParams): Promise<RobotStats>;
122
+ /**
123
+ * Pause channel robots
124
+ *
125
+ * @param params - Pause parameters
126
+ *
127
+ * @example
128
+ * ```typescript
129
+ * await client.v4Robot.pauseRobot({
130
+ * channelId: '12345678',
131
+ * });
132
+ * ```
133
+ */
134
+ pauseRobot(params: PauseRobotParams): Promise<void>;
135
+ /**
136
+ * Validate channel ID
137
+ */
138
+ private validateChannelId;
139
+ /**
140
+ * Check if string contains emoji
141
+ */
142
+ private containsEmoji;
143
+ }
144
+ //# sourceMappingURL=robot.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"robot.service.d.ts","sourceRoot":"","sources":["../../../src/services/v4/robot.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAGjC;;;;;;;;;;GAUG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,MAAM,CAAc;IAE5B;;;;OAIG;gBACS,MAAM,EAAE,WAAW;IAQ/B;;;;;;;;;;;;;;OAcG;IACG,UAAU,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQxE;;;;;;;;;;;;;;;;OAgBG;IACG,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAsCtF;;;;;;;;;;;OAWG;IACG,iBAAiB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBvE;;;;;;;;;;;;;OAaG;IACG,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,YAAY,CAAC;IAU3E;;;;;;;;;;;;;OAaG;IACG,kBAAkB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAqCzE;;;;;;;;;;;;;OAaG;IACG,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;IAUrE;;;;;;;;;;;OAWG;IACG,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAczD;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAMzB;;OAEG;IACH,OAAO,CAAC,aAAa;CAKtB"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * V4 Statistics Service
3
+ *
4
+ * Service for managing PolyV V4 Statistics operations.
5
+ * Provides methods for querying live session statistics.
6
+ *
7
+ * @module services/v4/statistics
8
+ */
9
+ import type { PolyVClient } from '../../client.js';
10
+ import type { GetSessionStatsSummaryListParams, GetSessionStatsSummaryListResponse } from '../../types/v4-statistics.js';
11
+ /**
12
+ * V4StatisticsService
13
+ *
14
+ * Provides methods to interact with PolyV V4 Statistics APIs.
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * const client = new PolyVClient({ appId: 'xxx', appSecret: 'yyy' });
19
+ * const stats = await client.v4Statistics.getSessionStatsSummaryList({
20
+ * channelId: '123456',
21
+ * pageNumber: 1,
22
+ * pageSize: 10,
23
+ * });
24
+ * ```
25
+ */
26
+ export declare class V4StatisticsService {
27
+ private client;
28
+ /**
29
+ * Create a new V4StatisticsService instance
30
+ *
31
+ * @param client - The PolyVClient instance to use for API calls
32
+ */
33
+ constructor(client: PolyVClient);
34
+ /**
35
+ * Get session stats summary list
36
+ *
37
+ * Query live session summary data list with pagination support.
38
+ *
39
+ * @param params - Query parameters
40
+ * @returns Paginated session stats summary list
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * const result = await client.v4Statistics.getSessionStatsSummaryList({
45
+ * channelId: '123456',
46
+ * keyword: 'test',
47
+ * startTime: '1678800000000',
48
+ * endTime: '1678999999999',
49
+ * pageNumber: 1,
50
+ * pageSize: 10,
51
+ * });
52
+ * console.log(result.contents);
53
+ * ```
54
+ */
55
+ getSessionStatsSummaryList(params: GetSessionStatsSummaryListParams): Promise<GetSessionStatsSummaryListResponse>;
56
+ /**
57
+ * Validate pagination parameters
58
+ */
59
+ private validatePaginationParams;
60
+ }
61
+ //# sourceMappingURL=statistics.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statistics.service.d.ts","sourceRoot":"","sources":["../../../src/services/v4/statistics.service.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EACV,gCAAgC,EAChC,kCAAkC,EACnC,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;;;GAcG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAc;IAE5B;;;;OAIG;gBACS,MAAM,EAAE,WAAW;IAQ/B;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,0BAA0B,CAC9B,MAAM,EAAE,gCAAgC,GACvC,OAAO,CAAC,kCAAkC,CAAC;IAc9C;;OAEG;IACH,OAAO,CAAC,wBAAwB;CAwBjC"}