@butlerbot/sdk 0.0.8 → 0.0.9
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/types/usage/policy.d.ts +17 -5
- package/package.json +1 -1
|
@@ -20,6 +20,17 @@ export type UsagePolicy = {
|
|
|
20
20
|
rules: PolicyRule[];
|
|
21
21
|
maxConvoLength?: number;
|
|
22
22
|
};
|
|
23
|
+
export type UsagePolicyDataUsage = {
|
|
24
|
+
/** The current user's usage cost for this time period */
|
|
25
|
+
usage: number;
|
|
26
|
+
/** The user's limit for the time period */
|
|
27
|
+
usageLimit: number;
|
|
28
|
+
/** Explanation of limit for this time period */
|
|
29
|
+
limitBreakdown: {
|
|
30
|
+
description: string;
|
|
31
|
+
addition: number;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
23
34
|
export type UsagePolicyData = {
|
|
24
35
|
limit: {
|
|
25
36
|
/** Current usage cost as a percentage of daily limit (0–1) */
|
|
@@ -36,10 +47,11 @@ export type UsagePolicyData = {
|
|
|
36
47
|
};
|
|
37
48
|
/** Usage policy information */
|
|
38
49
|
usagePolicy: UsagePolicy;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
/** Usage information */
|
|
51
|
+
usage: {
|
|
52
|
+
/** Daily usage data */
|
|
53
|
+
daily: UsagePolicyDataUsage;
|
|
54
|
+
/** Weekly usage data */
|
|
55
|
+
weekly: UsagePolicyDataUsage;
|
|
44
56
|
};
|
|
45
57
|
};
|