@pushwoosh/rpc-gateway-ai-assistant 0.1.552 → 0.1.554
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/data.js +42 -0
- package/package.json +1 -1
- package/pushwoosh_agentrunner_v1.d.ts +26 -0
package/data.js
CHANGED
|
@@ -277,6 +277,48 @@ export const data = {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
|
+
"pushwoosh.agentrunner.v1.GetQuotaRequest": {
|
|
281
|
+
"type": "I",
|
|
282
|
+
"fields": {}
|
|
283
|
+
},
|
|
284
|
+
"pushwoosh.agentrunner.v1.Quota": {
|
|
285
|
+
"type": "I",
|
|
286
|
+
"fields": {
|
|
287
|
+
"windows": {
|
|
288
|
+
"type": "pushwoosh.agentrunner.v1.QuotaWindow",
|
|
289
|
+
"array": true
|
|
290
|
+
},
|
|
291
|
+
"overageStatus": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"overageDisabledReason": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
},
|
|
297
|
+
"checkedAt": {
|
|
298
|
+
"type": "number"
|
|
299
|
+
},
|
|
300
|
+
"error": {
|
|
301
|
+
"type": "string"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"pushwoosh.agentrunner.v1.QuotaWindow": {
|
|
306
|
+
"type": "I",
|
|
307
|
+
"fields": {
|
|
308
|
+
"window": {
|
|
309
|
+
"type": "string"
|
|
310
|
+
},
|
|
311
|
+
"utilizationPercent": {
|
|
312
|
+
"type": "number"
|
|
313
|
+
},
|
|
314
|
+
"resetsAt": {
|
|
315
|
+
"type": "number"
|
|
316
|
+
},
|
|
317
|
+
"status": {
|
|
318
|
+
"type": "string"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
280
322
|
"pushwoosh.agentrunner.v1.Usage": {
|
|
281
323
|
"type": "I",
|
|
282
324
|
"fields": {
|
package/package.json
CHANGED
|
@@ -173,6 +173,32 @@ export type RateLimit = {
|
|
|
173
173
|
/** why overage is off, e.g. overage_not_provisioned */
|
|
174
174
|
overageDisabledReason: string;
|
|
175
175
|
};
|
|
176
|
+
export type GetQuotaRequest = {};
|
|
177
|
+
/**
|
|
178
|
+
* Quota is read off the response headers of a one-token ping: unlike RateLimit, it carries
|
|
179
|
+
* every window's utilization whether or not the CLI would have warned about it.
|
|
180
|
+
*/
|
|
181
|
+
export type Quota = {
|
|
182
|
+
windows: QuotaWindow[];
|
|
183
|
+
/** allowed | allowed_warning | rejected */
|
|
184
|
+
overageStatus: string;
|
|
185
|
+
/** e.g. out_of_credits */
|
|
186
|
+
overageDisabledReason: string;
|
|
187
|
+
/** unix seconds of the last successful ping; 0 = none yet */
|
|
188
|
+
checkedAt: number;
|
|
189
|
+
/** the last ping's failure, empty when it succeeded */
|
|
190
|
+
error: string;
|
|
191
|
+
};
|
|
192
|
+
export type QuotaWindow = {
|
|
193
|
+
/** five_hour | seven_day | … */
|
|
194
|
+
window: string;
|
|
195
|
+
/** 0..100 */
|
|
196
|
+
utilizationPercent: number;
|
|
197
|
+
/** unix seconds */
|
|
198
|
+
resetsAt: number;
|
|
199
|
+
/** allowed | allowed_warning | rejected */
|
|
200
|
+
status: string;
|
|
201
|
+
};
|
|
176
202
|
export type Usage = {
|
|
177
203
|
model: string;
|
|
178
204
|
inputTokens: number;
|