polyv-live-cli 1.0.2

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 (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +417 -0
  3. package/dist/commands/channel.commands.d.ts +9 -0
  4. package/dist/commands/channel.commands.d.ts.map +1 -0
  5. package/dist/commands/channel.commands.js +439 -0
  6. package/dist/commands/channel.commands.js.map +1 -0
  7. package/dist/commands/index.d.ts +3 -0
  8. package/dist/commands/index.d.ts.map +1 -0
  9. package/dist/commands/index.js +8 -0
  10. package/dist/commands/index.js.map +1 -0
  11. package/dist/commands/stream.commands.d.ts +3 -0
  12. package/dist/commands/stream.commands.d.ts.map +1 -0
  13. package/dist/commands/stream.commands.js +272 -0
  14. package/dist/commands/stream.commands.js.map +1 -0
  15. package/dist/config/auth.d.ts +11 -0
  16. package/dist/config/auth.d.ts.map +1 -0
  17. package/dist/config/auth.js +124 -0
  18. package/dist/config/auth.js.map +1 -0
  19. package/dist/config/loader.d.ts +22 -0
  20. package/dist/config/loader.d.ts.map +1 -0
  21. package/dist/config/loader.js +127 -0
  22. package/dist/config/loader.js.map +1 -0
  23. package/dist/config/manager.d.ts +20 -0
  24. package/dist/config/manager.d.ts.map +1 -0
  25. package/dist/config/manager.js +258 -0
  26. package/dist/config/manager.js.map +1 -0
  27. package/dist/config/validator.d.ts +43 -0
  28. package/dist/config/validator.d.ts.map +1 -0
  29. package/dist/config/validator.js +222 -0
  30. package/dist/config/validator.js.map +1 -0
  31. package/dist/handlers/base.handler.d.ts +15 -0
  32. package/dist/handlers/base.handler.d.ts.map +1 -0
  33. package/dist/handlers/base.handler.js +122 -0
  34. package/dist/handlers/base.handler.js.map +1 -0
  35. package/dist/handlers/channel.handler.d.ts +31 -0
  36. package/dist/handlers/channel.handler.d.ts.map +1 -0
  37. package/dist/handlers/channel.handler.js +690 -0
  38. package/dist/handlers/channel.handler.js.map +1 -0
  39. package/dist/handlers/index.d.ts +4 -0
  40. package/dist/handlers/index.d.ts.map +1 -0
  41. package/dist/handlers/index.js +10 -0
  42. package/dist/handlers/index.js.map +1 -0
  43. package/dist/handlers/stream.handler.d.ts +25 -0
  44. package/dist/handlers/stream.handler.d.ts.map +1 -0
  45. package/dist/handlers/stream.handler.js +241 -0
  46. package/dist/handlers/stream.handler.js.map +1 -0
  47. package/dist/index.d.ts +4 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +342 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/services/channel.service.d.ts +25 -0
  52. package/dist/services/channel.service.d.ts.map +1 -0
  53. package/dist/services/channel.service.js +672 -0
  54. package/dist/services/channel.service.js.map +1 -0
  55. package/dist/services/index.d.ts +3 -0
  56. package/dist/services/index.d.ts.map +1 -0
  57. package/dist/services/index.js +8 -0
  58. package/dist/services/index.js.map +1 -0
  59. package/dist/services/stream.service.d.ts +29 -0
  60. package/dist/services/stream.service.d.ts.map +1 -0
  61. package/dist/services/stream.service.js +489 -0
  62. package/dist/services/stream.service.js.map +1 -0
  63. package/dist/types/auth.d.ts +31 -0
  64. package/dist/types/auth.d.ts.map +1 -0
  65. package/dist/types/auth.js +14 -0
  66. package/dist/types/auth.js.map +1 -0
  67. package/dist/types/channel.d.ts +262 -0
  68. package/dist/types/channel.d.ts.map +1 -0
  69. package/dist/types/channel.js +3 -0
  70. package/dist/types/channel.js.map +1 -0
  71. package/dist/types/config.d.ts +82 -0
  72. package/dist/types/config.d.ts.map +1 -0
  73. package/dist/types/config.js +56 -0
  74. package/dist/types/config.js.map +1 -0
  75. package/dist/types/index.d.ts +6 -0
  76. package/dist/types/index.d.ts.map +1 -0
  77. package/dist/types/index.js +22 -0
  78. package/dist/types/index.js.map +1 -0
  79. package/dist/types/signature.d.ts +22 -0
  80. package/dist/types/signature.d.ts.map +1 -0
  81. package/dist/types/signature.js +3 -0
  82. package/dist/types/signature.js.map +1 -0
  83. package/dist/types/stream.d.ts +104 -0
  84. package/dist/types/stream.d.ts.map +1 -0
  85. package/dist/types/stream.js +3 -0
  86. package/dist/types/stream.js.map +1 -0
  87. package/dist/utils/confirmation.d.ts +12 -0
  88. package/dist/utils/confirmation.d.ts.map +1 -0
  89. package/dist/utils/confirmation.js +164 -0
  90. package/dist/utils/confirmation.js.map +1 -0
  91. package/dist/utils/errors.d.ts +40 -0
  92. package/dist/utils/errors.d.ts.map +1 -0
  93. package/dist/utils/errors.js +113 -0
  94. package/dist/utils/errors.js.map +1 -0
  95. package/dist/utils/formatter.d.ts +8 -0
  96. package/dist/utils/formatter.d.ts.map +1 -0
  97. package/dist/utils/formatter.js +93 -0
  98. package/dist/utils/formatter.js.map +1 -0
  99. package/dist/utils/index.d.ts +4 -0
  100. package/dist/utils/index.d.ts.map +1 -0
  101. package/dist/utils/index.js +20 -0
  102. package/dist/utils/index.js.map +1 -0
  103. package/dist/utils/signature.d.ts +9 -0
  104. package/dist/utils/signature.d.ts.map +1 -0
  105. package/dist/utils/signature.js +77 -0
  106. package/dist/utils/signature.js.map +1 -0
  107. package/package.json +86 -0
@@ -0,0 +1,439 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerChannelCommands = registerChannelCommands;
4
+ exports.parseInteger = parseInteger;
5
+ exports.validateScene = validateScene;
6
+ exports.validateTemplate = validateTemplate;
7
+ exports.validateLimit = validateLimit;
8
+ exports.validateOutputFormat = validateOutputFormat;
9
+ const channel_handler_1 = require("../handlers/channel.handler");
10
+ const manager_1 = require("../config/manager");
11
+ const errors_1 = require("../utils/errors");
12
+ function registerChannelCommands(program) {
13
+ const channelCmd = program.command('channel');
14
+ channelCmd.description('Manage live streaming channels');
15
+ const createCmd = channelCmd
16
+ .command('create')
17
+ .description('Create a new live streaming channel')
18
+ .requiredOption('-n, --name <name>', 'channel name (required, max 100 characters)')
19
+ .option('-d, --description <description>', 'channel description (optional, max 500 characters)')
20
+ .option('--max-viewers <number>', 'maximum number of viewers (optional, max 100,000)', parseInteger)
21
+ .option('--auto-record', 'enable automatic recording (optional)')
22
+ .option('--scene <scene>', 'live scene type (optional)', validateScene, 'topclass')
23
+ .option('--template <template>', 'channel template (optional)', validateTemplate, 'ppt')
24
+ .option('-p, --password <password>', 'channel password (optional, 6-16 alphanumeric characters)')
25
+ .option('-o, --output <format>', 'output format (table|json)', validateOutputFormat, 'table')
26
+ .action(async (options) => {
27
+ try {
28
+ const parentOptions = program.opts();
29
+ const configResult = await manager_1.configManager.load({
30
+ cliOptions: parentOptions,
31
+ });
32
+ const serviceConfig = {
33
+ baseUrl: configResult.config.baseUrl,
34
+ timeout: configResult.config.timeout,
35
+ maxRetries: configResult.config.maxRetries,
36
+ debug: configResult.config.debug
37
+ };
38
+ const channelHandler = new channel_handler_1.ChannelHandler(configResult.config.auth, serviceConfig);
39
+ const channelOptions = {
40
+ name: options.name,
41
+ description: options.description,
42
+ maxViewers: options.maxViewers,
43
+ autoRecord: options.autoRecord || false,
44
+ scene: options.scene,
45
+ template: options.template,
46
+ password: options.password,
47
+ output: options.output
48
+ };
49
+ await channelHandler.create(channelOptions);
50
+ }
51
+ catch (error) {
52
+ (0, errors_1.logError)(error instanceof Error ? error : new Error(String(error)));
53
+ process.exit(1);
54
+ }
55
+ });
56
+ createCmd.addHelpText('after', `
57
+ Examples:
58
+ $ polyv-cli channel create -n "My Live Stream"
59
+ $ polyv-cli channel create -n "Demo Channel" -d "Test channel for demo"
60
+ $ polyv-cli channel create -n "Secure Stream" -p "stream123" --max-viewers 500
61
+ $ polyv-cli channel create -n "Video Stream" --scene cloudclass --template video
62
+ $ polyv-cli channel create -n "JSON Output" -o json
63
+
64
+ Alternative (full parameter names):
65
+ $ polyv-cli channel create --name "My Live Stream"
66
+ $ polyv-cli channel create --name "Demo Channel" --description "Test channel for demo"
67
+
68
+ Scene Types:
69
+ topclass - Top class scene (default)
70
+ cloudclass - Cloud class scene
71
+ telecast - Telecast scene
72
+ akt - AKT scene
73
+
74
+ Templates:
75
+ ppt - PowerPoint template (default)
76
+ video - Video template
77
+
78
+ Output Formats:
79
+ table - Formatted table output (default)
80
+ json - JSON format for programmatic use
81
+ `);
82
+ const listCmd = channelCmd
83
+ .command('list')
84
+ .description('List live streaming channels with pagination')
85
+ .option('-P, --page <number>', 'page number (optional, minimum 1, default 1)', parseInteger, 1)
86
+ .option('-l, --limit <number>', 'items per page (optional, 1-100, default 20)', validateLimit, 20)
87
+ .option('-o, --output <format>', 'output format (table|json)', validateOutputFormat, 'table')
88
+ .option('--category-id <id>', 'filter by category ID (optional)')
89
+ .option('--keyword <keyword>', 'filter by channel name keyword (optional)')
90
+ .option('--label-id <id>', 'filter by label ID (optional)')
91
+ .action(async (options) => {
92
+ try {
93
+ const parentOptions = program.opts();
94
+ const configResult = await manager_1.configManager.load({
95
+ cliOptions: parentOptions,
96
+ });
97
+ const serviceConfig = {
98
+ baseUrl: configResult.config.baseUrl,
99
+ timeout: configResult.config.timeout,
100
+ maxRetries: configResult.config.maxRetries,
101
+ debug: configResult.config.debug
102
+ };
103
+ const channelHandler = new channel_handler_1.ChannelHandler(configResult.config.auth, serviceConfig);
104
+ const listOptions = {
105
+ page: options.page,
106
+ limit: options.limit,
107
+ output: options.output,
108
+ categoryId: options.categoryId,
109
+ keyword: options.keyword,
110
+ labelId: options.labelId
111
+ };
112
+ await channelHandler.listChannels(listOptions);
113
+ }
114
+ catch (error) {
115
+ (0, errors_1.logError)(error instanceof Error ? error : new Error(String(error)));
116
+ process.exit(1);
117
+ }
118
+ });
119
+ listCmd.addHelpText('after', `
120
+ Examples:
121
+ $ polyv-cli channel list
122
+ $ polyv-cli channel list -P 2 -l 10
123
+ $ polyv-cli channel list -o json
124
+
125
+ Alternative (full parameter names):
126
+ $ polyv-cli channel list --page 2 --limit 10 --output json
127
+ $ polyv-cli channel list --keyword "live stream"
128
+ $ polyv-cli channel list --category-id "cat123"
129
+ $ polyv-cli channel list --page 1 --limit 5 --output table
130
+
131
+ Pagination:
132
+ --page Page number (minimum 1, default 1)
133
+ --limit Items per page (1-100, default 20)
134
+
135
+ Filters:
136
+ --category-id Filter by category ID
137
+ --keyword Filter by channel name (partial match)
138
+ --label-id Filter by label ID
139
+
140
+ Output Formats:
141
+ table Formatted table output (default)
142
+ json JSON format for programmatic use
143
+ `);
144
+ const getCmd = channelCmd
145
+ .command('get')
146
+ .description('Get detailed information for a specific channel')
147
+ .requiredOption('-c, --channelId <id>', 'channel ID (required)')
148
+ .option('-o, --output <format>', 'output format (table|json)', validateOutputFormat, 'table')
149
+ .action(async (options) => {
150
+ try {
151
+ const parentOptions = program.opts();
152
+ const configResult = await manager_1.configManager.load({
153
+ cliOptions: parentOptions,
154
+ });
155
+ const serviceConfig = {
156
+ baseUrl: configResult.config.baseUrl,
157
+ timeout: configResult.config.timeout,
158
+ maxRetries: configResult.config.maxRetries,
159
+ debug: configResult.config.debug
160
+ };
161
+ const channelHandler = new channel_handler_1.ChannelHandler(configResult.config.auth, serviceConfig);
162
+ const getOptions = {
163
+ channelId: options.channelId,
164
+ output: options.output
165
+ };
166
+ await channelHandler.getChannelDetail(getOptions);
167
+ }
168
+ catch (error) {
169
+ (0, errors_1.logError)(error instanceof Error ? error : new Error(String(error)));
170
+ process.exit(1);
171
+ }
172
+ });
173
+ getCmd.addHelpText('after', `
174
+ Examples:
175
+ $ polyv-cli channel get --channelId 3151318
176
+ $ polyv-cli channel get --channelId 3151318 --output table
177
+ $ polyv-cli channel get --channelId 3151318 --output json
178
+
179
+ Parameter:
180
+ --channelId Channel ID to retrieve details for (required)
181
+
182
+ Output Formats:
183
+ table Formatted table output with grouped information (default)
184
+ json JSON format with all available data for programmatic use
185
+
186
+ Note:
187
+ The table format displays information in groups (Basic Information,
188
+ Configuration, Statistics & Timing, etc.) for better readability.
189
+ The json format includes all available fields from the API response.
190
+ `);
191
+ const updateCmd = channelCmd
192
+ .command('update')
193
+ .description('Update an existing live streaming channel')
194
+ .requiredOption('-c, --channelId <id>', 'channel ID (required)')
195
+ .option('-n, --name <name>', 'channel name (max 100 characters)')
196
+ .option('-d, --description <description>', 'channel description (max 500 characters)')
197
+ .option('--publisher <publisher>', 'publisher/host name')
198
+ .option('-p, --password <password>', 'channel password (6-16 alphanumeric characters)')
199
+ .option('--max-viewers <number>', 'maximum number of viewers', parseInteger)
200
+ .option('--start-time <timestamp>', 'live start time (timestamp)', parseInteger)
201
+ .option('--end-time <timestamp>', 'live end time (timestamp)', parseInteger)
202
+ .option('--page-views <number>', 'page view count', parseInteger)
203
+ .option('--likes <number>', 'likes count', parseInteger)
204
+ .option('--cover-img <url>', 'cover image URL')
205
+ .option('--splash-img <url>', 'splash image URL')
206
+ .option('-o, --output <format>', 'output format (table|json)', validateOutputFormat, 'table')
207
+ .action(async (options) => {
208
+ try {
209
+ const parentOptions = program.opts();
210
+ const configResult = await manager_1.configManager.load({
211
+ cliOptions: parentOptions,
212
+ });
213
+ const serviceConfig = {
214
+ baseUrl: configResult.config.baseUrl,
215
+ timeout: configResult.config.timeout,
216
+ maxRetries: configResult.config.maxRetries,
217
+ debug: configResult.config.debug
218
+ };
219
+ const channelHandler = new channel_handler_1.ChannelHandler(configResult.config.auth, serviceConfig);
220
+ const updateOptions = {
221
+ channelId: options.channelId,
222
+ name: options.name,
223
+ description: options.description,
224
+ publisher: options.publisher,
225
+ password: options.password,
226
+ maxViewers: options.maxViewers,
227
+ startTime: options.startTime,
228
+ endTime: options.endTime,
229
+ pageView: options.pageViews,
230
+ likes: options.likes,
231
+ coverImg: options.coverImg,
232
+ splashImg: options.splashImg,
233
+ output: options.output
234
+ };
235
+ await channelHandler.updateChannel(updateOptions);
236
+ }
237
+ catch (error) {
238
+ (0, errors_1.logError)(error instanceof Error ? error : new Error(String(error)));
239
+ process.exit(1);
240
+ }
241
+ });
242
+ updateCmd.addHelpText('after', `
243
+ Examples:
244
+ $ polyv-cli channel update --channelId 3151318 --name "New Channel Name"
245
+ $ polyv-cli channel update --channelId 3151318 --name "Test" --publisher "Host Name"
246
+ $ polyv-cli channel update --channelId 3151318 --password "newpass123" --max-viewers 1000
247
+ $ polyv-cli channel update --channelId 3151318 --description "Updated description" --output json
248
+ $ polyv-cli channel update --channelId 3151318 --cover-img "https://example.com/cover.jpg"
249
+
250
+ Required Parameter:
251
+ --channelId Channel ID to update (required)
252
+
253
+ Update Parameters (at least one required):
254
+ --name Channel name (max 100 characters)
255
+ --description Channel description (max 500 characters)
256
+ --publisher Publisher/host name
257
+ --password Channel password (6-16 alphanumeric characters)
258
+ --max-viewers Maximum number of viewers (positive integer)
259
+ --start-time Live start time (13-digit timestamp)
260
+ --end-time Live end time (13-digit timestamp)
261
+ --page-views Page view count (non-negative integer)
262
+ --likes Likes count (non-negative integer)
263
+ --cover-img Cover image URL
264
+ --splash-img Splash image URL
265
+
266
+ Output Formats:
267
+ table Formatted table output with update summary (default)
268
+ json JSON format for programmatic use
269
+
270
+ Note:
271
+ At least one update parameter must be provided. The password field will be
272
+ masked in output for security. Time parameters should be 13-digit timestamps.
273
+ `);
274
+ const deleteCmd = channelCmd
275
+ .command('delete')
276
+ .description('Delete a single live streaming channel with confirmation')
277
+ .requiredOption('-c, --channelId <id>', 'channel ID to delete')
278
+ .option('-f, --force', 'force delete without confirmation')
279
+ .option('-o, --output <format>', 'output format (table|json)', validateOutputFormat, 'table')
280
+ .action(async (options) => {
281
+ try {
282
+ const parentOptions = program.opts();
283
+ const configResult = await manager_1.configManager.load({
284
+ cliOptions: parentOptions,
285
+ });
286
+ const serviceConfig = {
287
+ baseUrl: configResult.config.baseUrl,
288
+ timeout: configResult.config.timeout,
289
+ maxRetries: configResult.config.maxRetries,
290
+ debug: configResult.config.debug
291
+ };
292
+ const channelHandler = new channel_handler_1.ChannelHandler(configResult.config.auth, serviceConfig);
293
+ const deleteOptions = {
294
+ channelId: options.channelId,
295
+ force: options.force || false,
296
+ output: options.output
297
+ };
298
+ await channelHandler.deleteChannel(deleteOptions);
299
+ }
300
+ catch (error) {
301
+ (0, errors_1.logError)(error instanceof Error ? error : new Error(String(error)));
302
+ process.exit(1);
303
+ }
304
+ });
305
+ deleteCmd.addHelpText('after', `
306
+ Examples:
307
+ $ polyv-cli channel delete --channelId 3151318
308
+ $ polyv-cli channel delete --channelId 3151318 --force
309
+ $ polyv-cli channel delete --channelId 3151318 --output json
310
+
311
+ Required Parameter:
312
+ --channelId Channel ID to delete (required)
313
+
314
+ Optional Parameters:
315
+ --force Skip interactive confirmation prompt (use with caution!)
316
+ --output Output format (table|json, default: table)
317
+
318
+ Output Formats:
319
+ table Formatted table output with deletion confirmation (default)
320
+ json JSON format for programmatic use
321
+
322
+ 🚨 WARNING:
323
+ Channel deletion is PERMANENT and cannot be undone. All channel data,
324
+ including recordings, chat history, and configurations will be lost.
325
+
326
+ By default, you will be prompted to confirm the deletion. Use --force
327
+ flag to skip confirmation, but be very careful!
328
+
329
+ Interactive Confirmation:
330
+ When not using --force, you will be prompted to type 'yes' to confirm
331
+ the deletion. This helps prevent accidental deletions.
332
+
333
+ Non-Interactive Environments:
334
+ In non-TTY environments (scripts, CI/CD), you must use --force flag
335
+ to proceed with deletion.
336
+ `);
337
+ const batchDeleteCmd = channelCmd
338
+ .command('batch-delete')
339
+ .description('Delete multiple live streaming channels at once')
340
+ .requiredOption('--channelIds <ids...>', 'channel IDs to delete (space-separated list)')
341
+ .option('-f, --force', 'force delete without confirmation')
342
+ .option('-o, --output <format>', 'output format (table|json)', validateOutputFormat, 'table')
343
+ .action(async (options) => {
344
+ try {
345
+ const parentOptions = program.opts();
346
+ const configResult = await manager_1.configManager.load({
347
+ cliOptions: parentOptions,
348
+ });
349
+ const serviceConfig = {
350
+ baseUrl: configResult.config.baseUrl,
351
+ timeout: configResult.config.timeout,
352
+ maxRetries: configResult.config.maxRetries,
353
+ debug: configResult.config.debug
354
+ };
355
+ const channelHandler = new channel_handler_1.ChannelHandler(configResult.config.auth, serviceConfig);
356
+ const deleteOptions = {
357
+ channelIds: options.channelIds,
358
+ force: options.force || false,
359
+ output: options.output
360
+ };
361
+ await channelHandler.deleteChannels(deleteOptions);
362
+ }
363
+ catch (error) {
364
+ (0, errors_1.logError)(error instanceof Error ? error : new Error(String(error)));
365
+ process.exit(1);
366
+ }
367
+ });
368
+ batchDeleteCmd.addHelpText('after', `
369
+ Examples:
370
+ $ polyv-cli channel batch-delete --channelIds 3151318
371
+ $ polyv-cli channel batch-delete --channelIds 3151318 3151319 3151320
372
+ $ polyv-cli channel batch-delete --channelIds 3151318 --force
373
+ $ polyv-cli channel batch-delete --channelIds 3151318 3151319 --output json
374
+
375
+ Required Parameter:
376
+ --channelIds Channel IDs to delete (space-separated list, max 100)
377
+
378
+ Optional Parameters:
379
+ --force Skip confirmation prompts (be careful!)
380
+ --output Output format (table|json, default: table)
381
+
382
+ Output Formats:
383
+ table Formatted table output with deletion summary (default)
384
+ json JSON format for programmatic use
385
+
386
+ ⚠️ WARNING:
387
+ Channel deletion is PERMANENT and cannot be undone. All channel data,
388
+ including recordings, chat history, and configurations will be lost.
389
+
390
+ Use --force flag to skip confirmation prompts, but be very careful!
391
+
392
+ Examples with multiple channels:
393
+ $ polyv-cli channel batch-delete --channelIds 1001 1002 1003
394
+ $ polyv-cli channel batch-delete --channelIds 1001 1002 1003 --force --output json
395
+
396
+ Note:
397
+ This command allows deleting up to 100 channels in a single operation.
398
+ For single channel deletion with interactive confirmation, use 'channel delete' instead.
399
+ `);
400
+ }
401
+ function parseInteger(value) {
402
+ const parsed = parseInt(value, 10);
403
+ if (isNaN(parsed)) {
404
+ throw new Error(`Invalid number: ${value}`);
405
+ }
406
+ return parsed;
407
+ }
408
+ function validateScene(value) {
409
+ const validScenes = ['topclass', 'cloudclass', 'telecast', 'akt'];
410
+ if (!validScenes.includes(value)) {
411
+ throw new Error(`Invalid scene type: ${value}. Must be one of: ${validScenes.join(', ')}`);
412
+ }
413
+ return value;
414
+ }
415
+ function validateTemplate(value) {
416
+ const validTemplates = ['ppt', 'video'];
417
+ if (!validTemplates.includes(value)) {
418
+ throw new Error(`Invalid template: ${value}. Must be one of: ${validTemplates.join(', ')}`);
419
+ }
420
+ return value;
421
+ }
422
+ function validateLimit(value) {
423
+ const parsed = parseInt(value, 10);
424
+ if (isNaN(parsed)) {
425
+ throw new Error(`Invalid limit: ${value}. Must be a number.`);
426
+ }
427
+ if (parsed < 1 || parsed > 100) {
428
+ throw new Error(`Invalid limit: ${value}. Must be between 1 and 100.`);
429
+ }
430
+ return parsed;
431
+ }
432
+ function validateOutputFormat(value) {
433
+ const validFormats = ['table', 'json'];
434
+ if (!validFormats.includes(value)) {
435
+ throw new Error(`Invalid output format: ${value}. Must be one of: ${validFormats.join(', ')}`);
436
+ }
437
+ return value;
438
+ }
439
+ //# sourceMappingURL=channel.commands.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.commands.js","sourceRoot":"","sources":["../../src/commands/channel.commands.ts"],"names":[],"mappings":";;AAgBA,0DAudC;AAwEC,oCAAY;AACZ,sCAAa;AACb,4CAAgB;AAChB,sCAAa;AACb,oDAAoB;AA5iBtB,iEAA6D;AAE7D,+CAAkD;AAClD,4CAA2C;AAM3C,SAAgB,uBAAuB,CAAC,OAAgB;IAGtD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAC9C,UAAU,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC;IAGzD,MAAM,SAAS,GAAG,UAAU;SACzB,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,qCAAqC,CAAC;SAClD,cAAc,CAAC,mBAAmB,EAAE,6CAA6C,CAAC;SAClF,MAAM,CAAC,iCAAiC,EAAE,oDAAoD,CAAC;SAC/F,MAAM,CAAC,wBAAwB,EAAE,mDAAmD,EAAE,YAAY,CAAC;SACnG,MAAM,CAAC,eAAe,EAAE,uCAAuC,CAAC;SAChE,MAAM,CAAC,iBAAiB,EAAE,4BAA4B,EAAE,aAAa,EAAE,UAAU,CAAC;SAClF,MAAM,CAAC,uBAAuB,EAAE,6BAA6B,EAAE,gBAAgB,EAAE,KAAK,CAAC;SACvF,MAAM,CA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qBAAqB,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjG,CAAC;IACD,OAAO,KAAyB,CAAC;AACnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { registerChannelCommands } from './channel.commands';
2
+ export { registerStreamCommands } from './stream.commands';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerStreamCommands = exports.registerChannelCommands = void 0;
4
+ var channel_commands_1 = require("./channel.commands");
5
+ Object.defineProperty(exports, "registerChannelCommands", { enumerable: true, get: function () { return channel_commands_1.registerChannelCommands; } });
6
+ var stream_commands_1 = require("./stream.commands");
7
+ Object.defineProperty(exports, "registerStreamCommands", { enumerable: true, get: function () { return stream_commands_1.registerStreamCommands; } });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;AAOA,uDAA6D;AAApD,2HAAA,uBAAuB,OAAA;AAGhC,qDAA2D;AAAlD,yHAAA,sBAAsB,OAAA"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare function registerStreamCommands(program: Command): void;
3
+ //# sourceMappingURL=stream.commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.commands.d.ts","sourceRoot":"","sources":["../../src/commands/stream.commands.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAmU7D"}