@mestra-dev/contract 0.0.39 → 0.0.41
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 +6 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3180,8 +3180,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3180
3180
|
readonly BillingCycles: {
|
|
3181
3181
|
readonly type: "integer";
|
|
3182
3182
|
readonly minimum: 1;
|
|
3183
|
-
readonly
|
|
3184
|
-
readonly description: "Number of prepaid billing units. Monthly supports 1\u201311 months; yearly supports 1\u20132 years.";
|
|
3183
|
+
readonly description: "Number of prepaid billing units (integer \u2265 1). Interval-specific caps are enforced by billing: monthly 1\u201311 months, yearly 1\u20132 years.";
|
|
3185
3184
|
};
|
|
3186
3185
|
readonly WorkspacePlan: {
|
|
3187
3186
|
readonly type: "object";
|
|
@@ -3448,7 +3447,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3448
3447
|
};
|
|
3449
3448
|
readonly billingCycles: {
|
|
3450
3449
|
readonly $ref: "#/components/schemas/BillingCycles";
|
|
3451
|
-
readonly description: "Prepaid
|
|
3450
|
+
readonly description: "Prepaid billing units (integer \u2265 1). Defaults to 1. Interval-specific caps apply after validation.";
|
|
3452
3451
|
};
|
|
3453
3452
|
};
|
|
3454
3453
|
};
|
|
@@ -5024,7 +5023,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5024
5023
|
};
|
|
5025
5024
|
readonly billingCycles: {
|
|
5026
5025
|
readonly $ref: "#/components/schemas/BillingCycles";
|
|
5027
|
-
readonly description: "Prepaid
|
|
5026
|
+
readonly description: "Prepaid billing units (integer \u2265 1). Defaults to 1. Interval-specific caps apply after validation.";
|
|
5028
5027
|
};
|
|
5029
5028
|
};
|
|
5030
5029
|
};
|
|
@@ -6239,7 +6238,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6239
6238
|
"Workspace"
|
|
6240
6239
|
];
|
|
6241
6240
|
readonly summary: "Delete a workspace";
|
|
6242
|
-
readonly description: "Deletes a workspace and cascades removal of related data (policies, assignees, chat tenants, collaborators, comments, task tags, tasks, customers, services, billings, tags, templates). Only the owner can delete a workspace. Requires write access to crm::general
|
|
6241
|
+
readonly description: "Deletes a workspace and cascades removal of related data (policies, assignees, chat tenants, collaborators, comments, task tags, tasks, customers, services, billings, subscription invoices, tags, templates). Only the owner can delete a workspace. Requires write access to crm::general. Also allowed when the workspace was never paid, still has its first unpaid initial invoice, and YooKassa checkout has not been started; frozen, past-due, or open-checkout workspaces cannot be deleted.";
|
|
6243
6242
|
readonly security: readonly [
|
|
6244
6243
|
never
|
|
6245
6244
|
];
|
|
@@ -6300,7 +6299,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6300
6299
|
};
|
|
6301
6300
|
};
|
|
6302
6301
|
readonly 403: {
|
|
6303
|
-
readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or
|
|
6302
|
+
readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access or crm::general write, or the workspace is frozen/past-due/has an open YooKassa checkout (delete is only exempt for an unpaid initial invoice with no checkout).";
|
|
6304
6303
|
readonly content: {
|
|
6305
6304
|
readonly "application/json": {
|
|
6306
6305
|
readonly schema: {
|
|
@@ -13470,7 +13469,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
13470
13469
|
error: string;
|
|
13471
13470
|
};
|
|
13472
13471
|
outputFormat: "json";
|
|
13473
|
-
status: 400;
|
|
13472
|
+
status: 400 | 403 | 404;
|
|
13474
13473
|
} | {
|
|
13475
13474
|
input: {};
|
|
13476
13475
|
output: {
|