@mestra-dev/contract 0.0.46 → 0.0.47
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 +18 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
26
26
|
readonly openapi: "3.0.3";
|
|
27
27
|
readonly info: {
|
|
28
28
|
readonly title: "Auth Service API";
|
|
29
|
-
readonly version: "1.5.
|
|
29
|
+
readonly version: "1.5.5";
|
|
30
30
|
readonly description: "OpenAPI specification for the Auth, Integrations, Workspace, Payments, Tasks, Templates, Tags, Comments, Assignees, Chat, Events, Billings, Files, and Notifications endpoints exposed by the k3-core platform. Unhandled HTTPException and unexpected errors are normalized by the global error handler to `{ success: false, error: string }` (status preserved for HTTPException; 500 otherwise).";
|
|
31
31
|
};
|
|
32
32
|
readonly servers: readonly [
|
|
@@ -926,6 +926,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
926
926
|
"maxCollaborators",
|
|
927
927
|
"hasPaid",
|
|
928
928
|
"status",
|
|
929
|
+
"planCode",
|
|
929
930
|
"isOwner",
|
|
930
931
|
"resources"
|
|
931
932
|
];
|
|
@@ -959,6 +960,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
959
960
|
readonly type: "string";
|
|
960
961
|
readonly description: "Collaborator status for the workspace (e.g., active, pending).";
|
|
961
962
|
};
|
|
963
|
+
readonly planCode: {
|
|
964
|
+
readonly type: "string";
|
|
965
|
+
readonly description: "Current workspace plan code (e.g. free, economy, standard, professional, or a private enterprise code).";
|
|
966
|
+
readonly example: "free";
|
|
967
|
+
};
|
|
962
968
|
readonly token: {
|
|
963
969
|
readonly type: "string";
|
|
964
970
|
readonly nullable: true;
|
|
@@ -4982,7 +4988,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
4982
4988
|
"Workspace"
|
|
4983
4989
|
];
|
|
4984
4990
|
readonly summary: "Create a new workspace";
|
|
4985
|
-
readonly description: "Creates a workspace and its billing subscription atomically. Free starts a 15-day trial. Economy, Standard, and Professional create a pending invoice; use the returned invoiceId to start YooKassa checkout. Professional may create one complimentary workspace for an owner with an active paid Professional workspace.";
|
|
4991
|
+
readonly description: "Creates a workspace and its billing subscription atomically. Free starts a 15-day trial (default `TRIAL_WORKSPACE_LIMIT` is 1 Free trial per owner). Economy, Standard, and Professional create a pending invoice; use the returned invoiceId to start YooKassa checkout. An owner may have at most 5 pending unpaid invoices for those paid plans before creating another. Professional may create one complimentary workspace for an owner with an active paid Professional workspace.";
|
|
4986
4992
|
readonly security: readonly [
|
|
4987
4993
|
never
|
|
4988
4994
|
];
|
|
@@ -5047,7 +5053,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5047
5053
|
};
|
|
5048
5054
|
};
|
|
5049
5055
|
readonly 400: {
|
|
5050
|
-
readonly description: "Invalid payload,
|
|
5056
|
+
readonly description: "Invalid payload, unavailable plan, Free-trial limit exceeded (`Each user can create only {TRIAL_WORKSPACE_LIMIT} free trial workspaces`; default 1), or too many pending unpaid invoices for Economy/Standard/Professional (`Pay or cancel unpaid invoices before creating more workspaces (limit 5)`).";
|
|
5051
5057
|
readonly content: {
|
|
5052
5058
|
readonly "application/json": {
|
|
5053
5059
|
readonly schema: {
|
|
@@ -5340,7 +5346,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5340
5346
|
"Workspace"
|
|
5341
5347
|
];
|
|
5342
5348
|
readonly summary: "List workspaces for the authenticated user";
|
|
5343
|
-
readonly description: "Returns workspaces the user collaborates on, each with category, role, billing flags, invitation state, workspace profile picture URL, and the resource grants effective for the caller.";
|
|
5349
|
+
readonly description: "Returns workspaces the user collaborates on, each with category, plan code, role, billing flags, invitation state, workspace profile picture URL, and the resource grants effective for the caller. Also returns `unpaidLimit` (5): the maximum pending unpaid Economy/Standard/Professional invoices an owner may hold before create is blocked.";
|
|
5344
5350
|
readonly security: readonly [
|
|
5345
5351
|
never
|
|
5346
5352
|
];
|
|
@@ -5353,7 +5359,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5353
5359
|
readonly type: "object";
|
|
5354
5360
|
readonly required: readonly [
|
|
5355
5361
|
"success",
|
|
5356
|
-
"workspaces"
|
|
5362
|
+
"workspaces",
|
|
5363
|
+
"unpaidLimit"
|
|
5357
5364
|
];
|
|
5358
5365
|
readonly properties: {
|
|
5359
5366
|
readonly success: {
|
|
@@ -5364,6 +5371,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5364
5371
|
readonly type: "array";
|
|
5365
5372
|
readonly items: any;
|
|
5366
5373
|
};
|
|
5374
|
+
readonly unpaidLimit: {
|
|
5375
|
+
readonly type: "integer";
|
|
5376
|
+
readonly const: 5;
|
|
5377
|
+
readonly description: "Max pending unpaid invoices allowed when creating another Economy/Standard/Professional workspace. Create returns 400 once this many unpaid invoices already exist.";
|
|
5378
|
+
};
|
|
5367
5379
|
};
|
|
5368
5380
|
};
|
|
5369
5381
|
};
|
|
@@ -13093,6 +13105,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
13093
13105
|
maxCollaborators: number;
|
|
13094
13106
|
hasPaid: boolean;
|
|
13095
13107
|
status: string;
|
|
13108
|
+
planCode: string;
|
|
13096
13109
|
token: string | null;
|
|
13097
13110
|
isOwner: boolean;
|
|
13098
13111
|
resources: {
|