@mestra-dev/contract 0.0.86 → 0.0.87
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 +101 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2068,6 +2068,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2068
2068
|
"usedBytes",
|
|
2069
2069
|
"filesBytes",
|
|
2070
2070
|
"commentsBytes",
|
|
2071
|
+
"servicesBytes",
|
|
2071
2072
|
"limitBytes"
|
|
2072
2073
|
];
|
|
2073
2074
|
readonly properties: {
|
|
@@ -2077,7 +2078,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2077
2078
|
};
|
|
2078
2079
|
readonly usedBytes: {
|
|
2079
2080
|
readonly type: "integer";
|
|
2080
|
-
readonly description: "Total finalized storage in bytes (`filesBytes` + `commentsBytes`). Excludes `.tmp` objects.";
|
|
2081
|
+
readonly description: "Total finalized storage in bytes (`filesBytes` + `commentsBytes` + `servicesBytes`). Excludes `.tmp` objects.";
|
|
2081
2082
|
readonly example: 348320;
|
|
2082
2083
|
};
|
|
2083
2084
|
readonly filesBytes: {
|
|
@@ -2090,6 +2091,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2090
2091
|
readonly description: "Finalized comment attachment storage under `{workspace}_comments/`. Excludes `.tmp`.";
|
|
2091
2092
|
readonly example: 100000;
|
|
2092
2093
|
};
|
|
2094
|
+
readonly servicesBytes: {
|
|
2095
|
+
readonly type: "integer";
|
|
2096
|
+
readonly description: "Finalized service file storage under `{workspace}_services/`. Excludes `.tmp`.";
|
|
2097
|
+
readonly example: 50000;
|
|
2098
|
+
};
|
|
2093
2099
|
readonly limitBytes: {
|
|
2094
2100
|
readonly type: "integer";
|
|
2095
2101
|
readonly nullable: true;
|
|
@@ -11819,7 +11825,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11819
11825
|
"Files"
|
|
11820
11826
|
];
|
|
11821
11827
|
readonly summary: "Get workspace storage usage";
|
|
11822
|
-
readonly description: "Returns finalized storage usage broken down by workspace files (`filesBytes`)
|
|
11828
|
+
readonly description: "Returns finalized storage usage broken down by workspace files (`filesBytes`), comment attachments (`commentsBytes`), and service files (`servicesBytes`), plus the combined total and plan limit. Temporary `.tmp` objects are excluded. Requires workspace access and read access to crm::files.";
|
|
11823
11829
|
readonly security: readonly [
|
|
11824
11830
|
never
|
|
11825
11831
|
];
|
|
@@ -19146,6 +19152,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19146
19152
|
usedBytes: number;
|
|
19147
19153
|
filesBytes: number;
|
|
19148
19154
|
commentsBytes: number;
|
|
19155
|
+
servicesBytes: number;
|
|
19149
19156
|
limitBytes: number | null;
|
|
19150
19157
|
};
|
|
19151
19158
|
outputFormat: "json";
|
|
@@ -19560,6 +19567,98 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19560
19567
|
status: 500;
|
|
19561
19568
|
};
|
|
19562
19569
|
};
|
|
19570
|
+
} & {
|
|
19571
|
+
"/upload-to-service": {
|
|
19572
|
+
$post: {
|
|
19573
|
+
input: {};
|
|
19574
|
+
output: {
|
|
19575
|
+
success: false;
|
|
19576
|
+
error: never;
|
|
19577
|
+
};
|
|
19578
|
+
outputFormat: "json";
|
|
19579
|
+
status: 400;
|
|
19580
|
+
} | {
|
|
19581
|
+
input: {};
|
|
19582
|
+
output: {
|
|
19583
|
+
success: false;
|
|
19584
|
+
error: string;
|
|
19585
|
+
};
|
|
19586
|
+
outputFormat: "json";
|
|
19587
|
+
status: 404;
|
|
19588
|
+
} | {
|
|
19589
|
+
input: {};
|
|
19590
|
+
output: {
|
|
19591
|
+
success: true;
|
|
19592
|
+
url: string;
|
|
19593
|
+
fields: {
|
|
19594
|
+
[x: string]: string;
|
|
19595
|
+
};
|
|
19596
|
+
key: string;
|
|
19597
|
+
maxSize: number;
|
|
19598
|
+
};
|
|
19599
|
+
outputFormat: "json";
|
|
19600
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19601
|
+
};
|
|
19602
|
+
};
|
|
19603
|
+
} & {
|
|
19604
|
+
"/confirm-service-file": {
|
|
19605
|
+
$post: {
|
|
19606
|
+
input: {};
|
|
19607
|
+
output: {
|
|
19608
|
+
success: true;
|
|
19609
|
+
key: string;
|
|
19610
|
+
};
|
|
19611
|
+
outputFormat: "json";
|
|
19612
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19613
|
+
} | {
|
|
19614
|
+
input: {};
|
|
19615
|
+
output: {
|
|
19616
|
+
success: false;
|
|
19617
|
+
error: string;
|
|
19618
|
+
};
|
|
19619
|
+
outputFormat: "json";
|
|
19620
|
+
status: 400;
|
|
19621
|
+
};
|
|
19622
|
+
};
|
|
19623
|
+
} & {
|
|
19624
|
+
"/delete-service-file": {
|
|
19625
|
+
$post: {
|
|
19626
|
+
input: {};
|
|
19627
|
+
output: {
|
|
19628
|
+
success: false;
|
|
19629
|
+
error: never;
|
|
19630
|
+
};
|
|
19631
|
+
outputFormat: "json";
|
|
19632
|
+
status: 400;
|
|
19633
|
+
} | {
|
|
19634
|
+
input: {};
|
|
19635
|
+
output: {
|
|
19636
|
+
success: false;
|
|
19637
|
+
message: string;
|
|
19638
|
+
key: string;
|
|
19639
|
+
};
|
|
19640
|
+
outputFormat: "json";
|
|
19641
|
+
status: 404;
|
|
19642
|
+
} | {
|
|
19643
|
+
input: {};
|
|
19644
|
+
output: {
|
|
19645
|
+
success: false;
|
|
19646
|
+
message: string;
|
|
19647
|
+
key: string;
|
|
19648
|
+
};
|
|
19649
|
+
outputFormat: "json";
|
|
19650
|
+
status: 500;
|
|
19651
|
+
} | {
|
|
19652
|
+
input: {};
|
|
19653
|
+
output: {
|
|
19654
|
+
success: true;
|
|
19655
|
+
message: string;
|
|
19656
|
+
key: string;
|
|
19657
|
+
};
|
|
19658
|
+
outputFormat: "json";
|
|
19659
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19660
|
+
};
|
|
19661
|
+
};
|
|
19563
19662
|
}, "/files"> | import("hono/types").MergeSchemaPath<{
|
|
19564
19663
|
"/start": {
|
|
19565
19664
|
$post: {
|