@mestra-dev/contract 0.0.232 → 0.0.233
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.ts +20 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import type { JwtVariables } from 'hono/jwt';
|
|
|
3
3
|
|
|
4
4
|
type FinanceCurrency = "ruble" | "dollar" | "euro";
|
|
5
5
|
type FinanceTransactionType = "refund" | "income" | "expense" | "transfer";
|
|
6
|
-
type GrowthDirection = "positive" | "negative" | "none";
|
|
7
6
|
type AiUnavailableReason =
|
|
8
7
|
/** AI_ENABLED is not set: the master switch for the whole deployment. */
|
|
9
8
|
"service_disabled" | "no_subscription" | "subscription_not_active"
|
|
@@ -11,6 +10,7 @@ type AiUnavailableReason =
|
|
|
11
10
|
| "payment_pending" | "plan_has_no_ai" | "allowance_exhausted"
|
|
12
11
|
/** The workspace has AI switched off in its own settings. */
|
|
13
12
|
| "workspace_disabled";
|
|
13
|
+
type GrowthDirection = "positive" | "negative" | "none";
|
|
14
14
|
type Variables = JwtVariables;
|
|
15
15
|
/** Shared error body for middleware / HTTPException responses (typed into AppType). */
|
|
16
16
|
export type ApiError = {
|
|
@@ -9686,10 +9686,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9686
9686
|
};
|
|
9687
9687
|
output: {
|
|
9688
9688
|
success: true;
|
|
9689
|
-
settings:
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9689
|
+
settings: {
|
|
9690
|
+
enabled: boolean;
|
|
9691
|
+
systemPrompt: string | null;
|
|
9692
|
+
preferences: {
|
|
9693
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
9694
|
+
};
|
|
9695
|
+
};
|
|
9696
|
+
availability: {
|
|
9697
|
+
available: boolean;
|
|
9698
|
+
reason: AiUnavailableReason | null;
|
|
9699
|
+
allowance: number;
|
|
9700
|
+
used: number;
|
|
9701
|
+
remaining: number;
|
|
9702
|
+
period: {
|
|
9703
|
+
start: string;
|
|
9704
|
+
end: string;
|
|
9705
|
+
kind: "trial" | "billing";
|
|
9706
|
+
} | null;
|
|
9707
|
+
};
|
|
9693
9708
|
};
|
|
9694
9709
|
outputFormat: "json";
|
|
9695
9710
|
status: 200;
|