@cicord/client 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +26 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -546,8 +546,13 @@ interface AnalyticsStatus {
|
|
|
546
546
|
missing: AnalyticsMissing[];
|
|
547
547
|
}
|
|
548
548
|
/** Kind of entity a dimension resolves to. */
|
|
549
|
-
type AnalyticsLabelKind = "channel" | "voice" | "thread" | "role" | "emoji" | "event" | "invite" | "label" |
|
|
550
|
-
/**
|
|
549
|
+
type AnalyticsLabelKind = "channel" | "voice" | "thread" | "role" | "emoji" | "event" | "invite" | "label" |
|
|
550
|
+
/** The channels a plugin instance created, grouped: `name` is the instance's name. */
|
|
551
|
+
"group" | (string & {});
|
|
552
|
+
/**
|
|
553
|
+
* Display name of a dimension (a channel or role ID, a custom emoji…). A deleted channel,
|
|
554
|
+
* role or scheduled event keeps the last name the runtime saw (`deleted: true`).
|
|
555
|
+
*/
|
|
551
556
|
interface AnalyticsLabel {
|
|
552
557
|
name: string;
|
|
553
558
|
kind: AnalyticsLabelKind;
|
|
@@ -609,12 +614,24 @@ interface AnalyticsKpi {
|
|
|
609
614
|
/** The KPI per `step` of the summary (hours or days) over the period, for a sparkline. */
|
|
610
615
|
spark: AnalyticsPoint[];
|
|
611
616
|
}
|
|
612
|
-
/**
|
|
617
|
+
/**
|
|
618
|
+
* One entry of a ranking (top channels, emojis, invites…). In the channel rankings, the
|
|
619
|
+
* channels a plugin created (temporary voice rooms, tickets…) are one entry per plugin
|
|
620
|
+
* instance: `dim` is `"plugin:<bot>/<instance>"` (labelled with kind `"group"`), `count`
|
|
621
|
+
* how many channels it sums and `children` those channels.
|
|
622
|
+
*/
|
|
613
623
|
interface AnalyticsRanked {
|
|
614
624
|
dim: string;
|
|
615
625
|
value: number;
|
|
616
626
|
/** The entry's value over the previous period; null when not covered. */
|
|
617
627
|
previous: number | null;
|
|
628
|
+
/** A group of plugin-created channels: how many channels it sums over the period. */
|
|
629
|
+
count?: number;
|
|
630
|
+
/**
|
|
631
|
+
* A group's channels, largest first: at most 25, the rest summed into an `"other"` child.
|
|
632
|
+
* Their labels (remembered names of deleted channels included) are in `labels`.
|
|
633
|
+
*/
|
|
634
|
+
children?: AnalyticsRanked[];
|
|
618
635
|
}
|
|
619
636
|
/**
|
|
620
637
|
* `GET /servers/{server}/analytics/summary`. For a preset period the window is calendar days
|
|
@@ -1412,11 +1429,16 @@ interface PortalAnalytics {
|
|
|
1412
1429
|
* (average per day). `spark` is per day.
|
|
1413
1430
|
*/
|
|
1414
1431
|
kpis: AnalyticsKpi[];
|
|
1415
|
-
/**
|
|
1432
|
+
/**
|
|
1433
|
+
* Channels with the most messages among those everyone can see, top 5. The channels a
|
|
1434
|
+
* plugin created are never named: those everyone can see count in one entry per plugin
|
|
1435
|
+
* instance (`group: true`, `id` `"plugin:<bot>/<instance>"`, `name` the instance's name).
|
|
1436
|
+
*/
|
|
1416
1437
|
topChannels: {
|
|
1417
1438
|
id: string;
|
|
1418
1439
|
name: string;
|
|
1419
1440
|
value: number;
|
|
1441
|
+
group?: boolean;
|
|
1420
1442
|
}[];
|
|
1421
1443
|
/** Most used bot commands (every bot of the server), top 8; command starts with "/". */
|
|
1422
1444
|
topBotCommands: {
|