@takeshape/util 11.172.0 → 11.173.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.
@@ -127,6 +127,20 @@ export type Payment = {
127
127
  invoicePdf?: string;
128
128
  billingInterval?: string;
129
129
  };
130
+ export type AiModelUsage = {
131
+ model: string;
132
+ totalTokens: number;
133
+ inputTokens: number;
134
+ outputTokens: number;
135
+ reasoningTokens: number;
136
+ cachedInputTokens: number;
137
+ count: number;
138
+ };
139
+ export type AiServiceUsage = {
140
+ service: string;
141
+ totalTokens: number;
142
+ models: AiModelUsage[];
143
+ };
130
144
  export type BillingUsage = {
131
145
  users: number;
132
146
  endTime: string;
@@ -142,6 +156,7 @@ export type BillingUsage = {
142
156
  apiRequests: number;
143
157
  guards: number;
144
158
  guardrailUnits: number;
159
+ aiTokenUsage: AiServiceUsage[];
145
160
  };
146
161
  export type BillingUsageFromApi = {
147
162
  bandwidth: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/util",
3
- "version": "11.172.0",
3
+ "version": "11.173.0",
4
4
  "description": "Shared utilities",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -45,8 +45,8 @@
45
45
  "tiny-invariant": "1.3.3",
46
46
  "uint8array-extras": "1.4.0",
47
47
  "url-parse": "1.5.3",
48
- "@takeshape/prism": "11.172.0",
49
- "@takeshape/routing": "11.172.0"
48
+ "@takeshape/prism": "11.173.0",
49
+ "@takeshape/routing": "11.173.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/classnames": "2.2.11",