@mestra-dev/contract 0.0.71 → 0.0.73
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 +33 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6505,7 +6505,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6505
6505
|
"Workspace"
|
|
6506
6506
|
];
|
|
6507
6507
|
readonly summary: "Delete a workspace";
|
|
6508
|
-
readonly description: "Soft-deletes a workspace: sets deleted_at, revokes collaborator access, and purges CRM content (policies, assignees, chat tenants, comments, tasks, customers, services, tags, templates). Billing subscriptions and invoices are retained for audit/history (pending invoices are canceled; the subscription is marked canceled). Free trial workspaces cannot be deleted. Only the owner can delete. Requires write access to crm::general. Also allowed when the workspace was never paid
|
|
6508
|
+
readonly description: "Soft-deletes a workspace: sets deleted_at, revokes collaborator access, and purges CRM content (policies, assignees, chat tenants, comments, tasks, customers, services, tags, templates). Billing subscriptions and invoices are retained for audit/history (pending invoices are canceled; the subscription is marked canceled). Free trial workspaces cannot be deleted. Only the owner can delete. Requires write access to crm::general. Also allowed when the workspace was never paid and still has an unpaid invoice: any open YooKassa checkout is canceled first, then the workspace is deleted. If the payment already succeeded, delete returns 409. Frozen, past-due, or Free trial workspaces cannot be deleted.";
|
|
6509
6509
|
readonly security: readonly [
|
|
6510
6510
|
never
|
|
6511
6511
|
];
|
|
@@ -6566,7 +6566,37 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6566
6566
|
};
|
|
6567
6567
|
};
|
|
6568
6568
|
readonly 403: {
|
|
6569
|
-
readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access or crm::general write, or the workspace is frozen/past-due
|
|
6569
|
+
readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access or crm::general write, or the workspace is frozen/past-due.";
|
|
6570
|
+
readonly content: {
|
|
6571
|
+
readonly "application/json": {
|
|
6572
|
+
readonly schema: {
|
|
6573
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
6574
|
+
};
|
|
6575
|
+
};
|
|
6576
|
+
};
|
|
6577
|
+
};
|
|
6578
|
+
readonly 409: {
|
|
6579
|
+
readonly description: "The pending invoice was paid while deleting (`Invoice is already paid`). The workspace is left intact.";
|
|
6580
|
+
readonly content: {
|
|
6581
|
+
readonly "application/json": {
|
|
6582
|
+
readonly schema: {
|
|
6583
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
6584
|
+
};
|
|
6585
|
+
};
|
|
6586
|
+
};
|
|
6587
|
+
};
|
|
6588
|
+
readonly 502: {
|
|
6589
|
+
readonly description: "YooKassa could not cancel the open checkout (`Unable to cancel the open checkout before deleting this workspace`).";
|
|
6590
|
+
readonly content: {
|
|
6591
|
+
readonly "application/json": {
|
|
6592
|
+
readonly schema: {
|
|
6593
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
6594
|
+
};
|
|
6595
|
+
};
|
|
6596
|
+
};
|
|
6597
|
+
};
|
|
6598
|
+
readonly 503: {
|
|
6599
|
+
readonly description: "YooKassa configuration is missing, so an open checkout cannot be canceled.";
|
|
6570
6600
|
readonly content: {
|
|
6571
6601
|
readonly "application/json": {
|
|
6572
6602
|
readonly schema: {
|
|
@@ -13805,7 +13835,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
13805
13835
|
error: string;
|
|
13806
13836
|
};
|
|
13807
13837
|
outputFormat: "json";
|
|
13808
|
-
status: 400 | 403 | 404;
|
|
13838
|
+
status: 400 | 403 | 404 | 409 | 502 | 503;
|
|
13809
13839
|
} | {
|
|
13810
13840
|
input: {};
|
|
13811
13841
|
output: {
|