@mestra-dev/contract 0.0.232 → 0.0.234

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +27 -12
  2. 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 = {
@@ -1378,7 +1378,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
1378
1378
  code: string | undefined;
1379
1379
  };
1380
1380
  outputFormat: "json";
1381
- status: 400 | 404 | 403 | 502 | 409 | 503;
1381
+ status: 400 | 404 | 409 | 403 | 502 | 503;
1382
1382
  } | {
1383
1383
  input: {
1384
1384
  json: {
@@ -9686,10 +9686,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
9686
9686
  };
9687
9687
  output: {
9688
9688
  success: true;
9689
- settings: any;
9690
- availability: any;
9691
- schedule: any;
9692
- activeActivation: any;
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;
@@ -9736,7 +9751,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
9736
9751
  error: string;
9737
9752
  };
9738
9753
  outputFormat: "json";
9739
- status: 403 | 502 | 409;
9754
+ status: 409 | 403 | 502;
9740
9755
  } | {
9741
9756
  input: {
9742
9757
  json: {
@@ -9929,7 +9944,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
9929
9944
  error: string;
9930
9945
  };
9931
9946
  outputFormat: "json";
9932
- status: 400 | 404 | 403 | 502 | 409 | 503;
9947
+ status: 400 | 404 | 409 | 403 | 502 | 503;
9933
9948
  };
9934
9949
  };
9935
9950
  } & {
@@ -9975,7 +9990,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
9975
9990
  code: string | undefined;
9976
9991
  };
9977
9992
  outputFormat: "json";
9978
- status: 400 | 404 | 403 | 502 | 409 | 503;
9993
+ status: 400 | 404 | 409 | 403 | 502 | 503;
9979
9994
  };
9980
9995
  };
9981
9996
  } & {
@@ -10010,7 +10025,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
10010
10025
  error: string;
10011
10026
  };
10012
10027
  outputFormat: "json";
10013
- status: 400 | 404 | 403 | 409;
10028
+ status: 400 | 404 | 409 | 403;
10014
10029
  };
10015
10030
  };
10016
10031
  } & {
@@ -10044,7 +10059,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
10044
10059
  code: string | undefined;
10045
10060
  };
10046
10061
  outputFormat: "json";
10047
- status: 400 | 404 | 403 | 502 | 409 | 503;
10062
+ status: 400 | 404 | 409 | 403 | 502 | 503;
10048
10063
  };
10049
10064
  };
10050
10065
  } & {
@@ -10109,7 +10124,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
10109
10124
  error: string;
10110
10125
  };
10111
10126
  outputFormat: "json";
10112
- status: 400 | 404 | 502 | 409 | 503;
10127
+ status: 400 | 404 | 409 | 502 | 503;
10113
10128
  };
10114
10129
  };
10115
10130
  }, "/payments"> | import("hono/types").MergeSchemaPath<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.232",
3
+ "version": "0.0.234",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,