@mestra-dev/contract 0.0.120 → 0.0.122

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 +23 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -992,6 +992,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
992
992
  "hasPaid",
993
993
  "status",
994
994
  "planCode",
995
+ "subscriptionStatus",
996
+ "trialEndsAt",
995
997
  "isOwner",
996
998
  "resources"
997
999
  ];
@@ -1031,6 +1033,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
1031
1033
  readonly description: "Current workspace plan code from the subscription when present (including pending unpaid), else `workspaces.plan_id` (e.g. free, economy, standard, professional, or a private enterprise code). Null only for legacy workspaces that predate billing plans.";
1032
1034
  readonly example: "free";
1033
1035
  };
1036
+ readonly subscriptionStatus: {
1037
+ readonly type: "string";
1038
+ readonly nullable: true;
1039
+ readonly enum: readonly [
1040
+ "trialing",
1041
+ "pending",
1042
+ "active",
1043
+ "past_due",
1044
+ "frozen",
1045
+ "canceled"
1046
+ ];
1047
+ readonly description: "Current billing subscription status. Null for legacy workspaces that predate subscriptions.";
1048
+ };
1049
+ readonly trialEndsAt: {
1050
+ readonly type: "string";
1051
+ readonly format: "date-time";
1052
+ readonly nullable: true;
1053
+ readonly description: "Free-trial expiration time. Null for non-trial and legacy workspaces.";
1054
+ };
1034
1055
  readonly token: {
1035
1056
  readonly type: "string";
1036
1057
  readonly nullable: true;
@@ -15374,6 +15395,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
15374
15395
  hasPaid: boolean;
15375
15396
  status: string;
15376
15397
  planCode: string | null;
15398
+ subscriptionStatus: string | null;
15399
+ trialEndsAt: string | null;
15377
15400
  token: string | null;
15378
15401
  isOwner: boolean;
15379
15402
  resources: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.120",
3
+ "version": "0.0.122",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,