@mestra-dev/contract 0.0.258 → 0.0.259
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 +109 -179
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
133
133
|
};
|
|
134
134
|
outputFormat: "json";
|
|
135
135
|
status: 400;
|
|
136
|
+
} | {
|
|
137
|
+
input: {};
|
|
138
|
+
output: {
|
|
139
|
+
success: false;
|
|
140
|
+
error: string;
|
|
141
|
+
};
|
|
142
|
+
outputFormat: "json";
|
|
143
|
+
status: 502;
|
|
136
144
|
};
|
|
137
145
|
};
|
|
138
146
|
} & {
|
|
@@ -166,7 +174,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
166
174
|
error: string;
|
|
167
175
|
};
|
|
168
176
|
outputFormat: "json";
|
|
169
|
-
status:
|
|
177
|
+
status: 503;
|
|
178
|
+
} | {
|
|
179
|
+
input: {};
|
|
180
|
+
output: {
|
|
181
|
+
success: false;
|
|
182
|
+
error: string;
|
|
183
|
+
};
|
|
184
|
+
outputFormat: "json";
|
|
185
|
+
status: 403;
|
|
170
186
|
};
|
|
171
187
|
};
|
|
172
188
|
} & {
|
|
@@ -409,6 +425,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
409
425
|
} & {
|
|
410
426
|
"/refresh": {
|
|
411
427
|
$get: {
|
|
428
|
+
input: {};
|
|
429
|
+
output: {
|
|
430
|
+
success: false;
|
|
431
|
+
error: string;
|
|
432
|
+
};
|
|
433
|
+
outputFormat: "json";
|
|
434
|
+
status: 401;
|
|
435
|
+
} | {
|
|
412
436
|
input: {};
|
|
413
437
|
output: {
|
|
414
438
|
success: true;
|
|
@@ -1125,19 +1149,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1125
1149
|
};
|
|
1126
1150
|
outputFormat: "json";
|
|
1127
1151
|
status: 400;
|
|
1128
|
-
} | {
|
|
1129
|
-
input: {
|
|
1130
|
-
json: {
|
|
1131
|
-
workspace: string;
|
|
1132
|
-
collaboratorId: string;
|
|
1133
|
-
};
|
|
1134
|
-
};
|
|
1135
|
-
output: {
|
|
1136
|
-
success: false;
|
|
1137
|
-
error: string;
|
|
1138
|
-
};
|
|
1139
|
-
outputFormat: "json";
|
|
1140
|
-
status: 500;
|
|
1141
1152
|
} | {
|
|
1142
1153
|
input: {
|
|
1143
1154
|
json: {
|
|
@@ -1272,7 +1283,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1272
1283
|
error: string;
|
|
1273
1284
|
};
|
|
1274
1285
|
outputFormat: "json";
|
|
1275
|
-
status:
|
|
1286
|
+
status: 503;
|
|
1276
1287
|
} | {
|
|
1277
1288
|
input: {
|
|
1278
1289
|
json: {
|
|
@@ -1318,20 +1329,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1318
1329
|
};
|
|
1319
1330
|
outputFormat: "json";
|
|
1320
1331
|
status: 400;
|
|
1321
|
-
} | {
|
|
1322
|
-
input: {
|
|
1323
|
-
json: {
|
|
1324
|
-
workspace: string;
|
|
1325
|
-
collaboratorId: string;
|
|
1326
|
-
role: string;
|
|
1327
|
-
};
|
|
1328
|
-
};
|
|
1329
|
-
output: {
|
|
1330
|
-
success: false;
|
|
1331
|
-
error: string;
|
|
1332
|
-
};
|
|
1333
|
-
outputFormat: "json";
|
|
1334
|
-
status: 500;
|
|
1335
1332
|
} | {
|
|
1336
1333
|
input: {
|
|
1337
1334
|
json: {
|
|
@@ -1376,7 +1373,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1376
1373
|
error: string;
|
|
1377
1374
|
};
|
|
1378
1375
|
outputFormat: "json";
|
|
1379
|
-
status:
|
|
1376
|
+
status: 404;
|
|
1380
1377
|
} | {
|
|
1381
1378
|
input: {
|
|
1382
1379
|
json: {
|
|
@@ -1423,7 +1420,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1423
1420
|
error: string;
|
|
1424
1421
|
};
|
|
1425
1422
|
outputFormat: "json";
|
|
1426
|
-
status:
|
|
1423
|
+
status: 503;
|
|
1427
1424
|
} | {
|
|
1428
1425
|
input: {
|
|
1429
1426
|
json: {
|
|
@@ -1480,19 +1477,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1480
1477
|
};
|
|
1481
1478
|
outputFormat: "json";
|
|
1482
1479
|
status: 400 | 404 | 409 | 403 | 502 | 503;
|
|
1483
|
-
} | {
|
|
1484
|
-
input: {
|
|
1485
|
-
json: {
|
|
1486
|
-
workspace: string;
|
|
1487
|
-
confirm: string;
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
output: {
|
|
1491
|
-
success: false;
|
|
1492
|
-
error: string;
|
|
1493
|
-
};
|
|
1494
|
-
outputFormat: "json";
|
|
1495
|
-
status: 500;
|
|
1496
1480
|
} | {
|
|
1497
1481
|
input: {
|
|
1498
1482
|
json: {
|
|
@@ -1533,18 +1517,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1533
1517
|
};
|
|
1534
1518
|
outputFormat: "json";
|
|
1535
1519
|
status: 400;
|
|
1536
|
-
} | {
|
|
1537
|
-
input: {
|
|
1538
|
-
param: {
|
|
1539
|
-
workspace: string;
|
|
1540
|
-
};
|
|
1541
|
-
};
|
|
1542
|
-
output: {
|
|
1543
|
-
success: false;
|
|
1544
|
-
error: string;
|
|
1545
|
-
};
|
|
1546
|
-
outputFormat: "json";
|
|
1547
|
-
status: 500;
|
|
1548
1520
|
} | {
|
|
1549
1521
|
input: {
|
|
1550
1522
|
param: {
|
|
@@ -1786,6 +1758,27 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1786
1758
|
};
|
|
1787
1759
|
outputFormat: "json";
|
|
1788
1760
|
status: 400;
|
|
1761
|
+
} | {
|
|
1762
|
+
input: {
|
|
1763
|
+
json: {
|
|
1764
|
+
workspace: string;
|
|
1765
|
+
customerId?: string | undefined;
|
|
1766
|
+
subject: string;
|
|
1767
|
+
description?: string | undefined;
|
|
1768
|
+
phaseId?: string | undefined;
|
|
1769
|
+
priority?: "low" | "medium" | "high" | undefined;
|
|
1770
|
+
assignees?: string[] | undefined;
|
|
1771
|
+
comments?: string[] | undefined;
|
|
1772
|
+
attachments?: string[] | undefined;
|
|
1773
|
+
visibility?: "public" | "private" | undefined;
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
output: {
|
|
1777
|
+
success: false;
|
|
1778
|
+
error: string;
|
|
1779
|
+
};
|
|
1780
|
+
outputFormat: "json";
|
|
1781
|
+
status: 404;
|
|
1789
1782
|
} | {
|
|
1790
1783
|
input: {
|
|
1791
1784
|
json: {
|
|
@@ -2095,25 +2088,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2095
2088
|
};
|
|
2096
2089
|
outputFormat: "json";
|
|
2097
2090
|
status: 400;
|
|
2098
|
-
} | {
|
|
2099
|
-
input: {
|
|
2100
|
-
json: {
|
|
2101
|
-
workspace: string;
|
|
2102
|
-
taskId: string;
|
|
2103
|
-
subject?: string | undefined;
|
|
2104
|
-
description?: string | undefined;
|
|
2105
|
-
phaseId?: string | undefined;
|
|
2106
|
-
priority?: "low" | "medium" | "high" | undefined;
|
|
2107
|
-
assignees?: string[] | undefined;
|
|
2108
|
-
visibility?: "public" | "private" | undefined;
|
|
2109
|
-
};
|
|
2110
|
-
};
|
|
2111
|
-
output: {
|
|
2112
|
-
success: false;
|
|
2113
|
-
error: string;
|
|
2114
|
-
};
|
|
2115
|
-
outputFormat: "json";
|
|
2116
|
-
status: 500;
|
|
2117
2091
|
} | {
|
|
2118
2092
|
input: {
|
|
2119
2093
|
json: {
|
|
@@ -3033,6 +3007,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3033
3007
|
};
|
|
3034
3008
|
outputFormat: "json";
|
|
3035
3009
|
status: 404;
|
|
3010
|
+
} | {
|
|
3011
|
+
input: {
|
|
3012
|
+
json: {
|
|
3013
|
+
serviceId: string;
|
|
3014
|
+
workspace: string;
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
output: {
|
|
3018
|
+
success: false;
|
|
3019
|
+
error: string;
|
|
3020
|
+
code: string;
|
|
3021
|
+
};
|
|
3022
|
+
outputFormat: "json";
|
|
3023
|
+
status: 409;
|
|
3036
3024
|
} | {
|
|
3037
3025
|
input: {
|
|
3038
3026
|
json: {
|
|
@@ -5178,7 +5166,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5178
5166
|
error: string;
|
|
5179
5167
|
};
|
|
5180
5168
|
outputFormat: "json";
|
|
5181
|
-
status:
|
|
5169
|
+
status: 503;
|
|
5182
5170
|
} | {
|
|
5183
5171
|
input: {};
|
|
5184
5172
|
output: {
|
|
@@ -5234,32 +5222,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5234
5222
|
} & {
|
|
5235
5223
|
"/calendar/create-event": {
|
|
5236
5224
|
$post: {
|
|
5237
|
-
input: {
|
|
5238
|
-
json: {
|
|
5239
|
-
workspace: string;
|
|
5240
|
-
title: string;
|
|
5241
|
-
description?: string | undefined;
|
|
5242
|
-
startDate: string | number;
|
|
5243
|
-
endDate: string | number;
|
|
5244
|
-
type?: "event" | "conference" | "booking" | "meeting" | undefined;
|
|
5245
|
-
timeZone: string;
|
|
5246
|
-
attendees?: {
|
|
5247
|
-
email: string;
|
|
5248
|
-
}[] | undefined;
|
|
5249
|
-
conferenceData?: boolean | undefined;
|
|
5250
|
-
reminders?: {
|
|
5251
|
-
method: "email" | "popup";
|
|
5252
|
-
minutes: number;
|
|
5253
|
-
}[] | undefined;
|
|
5254
|
-
};
|
|
5255
|
-
};
|
|
5256
|
-
output: {
|
|
5257
|
-
success: false;
|
|
5258
|
-
error: string;
|
|
5259
|
-
};
|
|
5260
|
-
outputFormat: "json";
|
|
5261
|
-
status: 404;
|
|
5262
|
-
} | {
|
|
5263
5225
|
input: {
|
|
5264
5226
|
json: {
|
|
5265
5227
|
workspace: string;
|
|
@@ -7782,18 +7744,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7782
7744
|
} & {
|
|
7783
7745
|
"/calendar/:workspace/get-event": {
|
|
7784
7746
|
$get: {
|
|
7785
|
-
input: {
|
|
7786
|
-
param: {
|
|
7787
|
-
workspace: string;
|
|
7788
|
-
};
|
|
7789
|
-
};
|
|
7790
|
-
output: {
|
|
7791
|
-
success: false;
|
|
7792
|
-
error: string;
|
|
7793
|
-
};
|
|
7794
|
-
outputFormat: "json";
|
|
7795
|
-
status: 404;
|
|
7796
|
-
} | {
|
|
7797
7747
|
input: {
|
|
7798
7748
|
param: {
|
|
7799
7749
|
workspace: string;
|
|
@@ -7997,33 +7947,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7997
7947
|
} & {
|
|
7998
7948
|
"/calendar/update-event": {
|
|
7999
7949
|
$post: {
|
|
8000
|
-
input: {
|
|
8001
|
-
json: {
|
|
8002
|
-
eventId: string;
|
|
8003
|
-
workspace: string;
|
|
8004
|
-
title?: string | undefined;
|
|
8005
|
-
description?: string | undefined;
|
|
8006
|
-
type?: "event" | "conference" | "booking" | "meeting" | undefined;
|
|
8007
|
-
attendees?: {
|
|
8008
|
-
email: string;
|
|
8009
|
-
}[] | undefined;
|
|
8010
|
-
conferenceData?: boolean | undefined;
|
|
8011
|
-
reminders?: {
|
|
8012
|
-
method: "email" | "popup";
|
|
8013
|
-
minutes: number;
|
|
8014
|
-
}[] | undefined;
|
|
8015
|
-
startDate?: string | number | undefined;
|
|
8016
|
-
endDate?: string | number | undefined;
|
|
8017
|
-
timeZone?: string | undefined;
|
|
8018
|
-
};
|
|
8019
|
-
};
|
|
8020
|
-
output: {
|
|
8021
|
-
success: false;
|
|
8022
|
-
error: string;
|
|
8023
|
-
};
|
|
8024
|
-
outputFormat: "json";
|
|
8025
|
-
status: 404;
|
|
8026
|
-
} | {
|
|
8027
7950
|
input: {
|
|
8028
7951
|
json: {
|
|
8029
7952
|
eventId: string;
|
|
@@ -8257,19 +8180,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8257
8180
|
} & {
|
|
8258
8181
|
"/calendar/remove-event": {
|
|
8259
8182
|
$post: {
|
|
8260
|
-
input: {
|
|
8261
|
-
json: {
|
|
8262
|
-
eventId: string;
|
|
8263
|
-
workspace: string;
|
|
8264
|
-
};
|
|
8265
|
-
};
|
|
8266
|
-
output: {
|
|
8267
|
-
success: false;
|
|
8268
|
-
error: string;
|
|
8269
|
-
};
|
|
8270
|
-
outputFormat: "json";
|
|
8271
|
-
status: 404;
|
|
8272
|
-
} | {
|
|
8273
8183
|
input: {
|
|
8274
8184
|
json: {
|
|
8275
8185
|
eventId: string;
|
|
@@ -8286,19 +8196,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8286
8196
|
} & {
|
|
8287
8197
|
"/calendar/cancel-event": {
|
|
8288
8198
|
$post: {
|
|
8289
|
-
input: {
|
|
8290
|
-
json: {
|
|
8291
|
-
eventId: string;
|
|
8292
|
-
workspace: string;
|
|
8293
|
-
};
|
|
8294
|
-
};
|
|
8295
|
-
output: {
|
|
8296
|
-
success: false;
|
|
8297
|
-
error: string;
|
|
8298
|
-
};
|
|
8299
|
-
outputFormat: "json";
|
|
8300
|
-
status: 404;
|
|
8301
|
-
} | {
|
|
8302
8199
|
input: {
|
|
8303
8200
|
json: {
|
|
8304
8201
|
eventId: string;
|
|
@@ -8316,18 +8213,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8316
8213
|
"/calendar/:workspace/list-events-by-month": {
|
|
8317
8214
|
$get: {
|
|
8318
8215
|
input: {
|
|
8319
|
-
|
|
8320
|
-
|
|
8216
|
+
query: {
|
|
8217
|
+
year?: string | string[] | undefined;
|
|
8218
|
+
month: string | string[];
|
|
8321
8219
|
};
|
|
8322
|
-
}
|
|
8323
|
-
output: {
|
|
8324
|
-
success: false;
|
|
8325
|
-
error: string;
|
|
8326
|
-
};
|
|
8327
|
-
outputFormat: "json";
|
|
8328
|
-
status: 404;
|
|
8329
|
-
} | {
|
|
8330
|
-
input: {
|
|
8220
|
+
} & {
|
|
8331
8221
|
param: {
|
|
8332
8222
|
workspace: string;
|
|
8333
8223
|
};
|
|
@@ -8727,6 +8617,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8727
8617
|
} & {
|
|
8728
8618
|
"/pin": {
|
|
8729
8619
|
$post: {
|
|
8620
|
+
input: {
|
|
8621
|
+
json: {
|
|
8622
|
+
workspace: string;
|
|
8623
|
+
path: string;
|
|
8624
|
+
pin: boolean;
|
|
8625
|
+
};
|
|
8626
|
+
};
|
|
8627
|
+
output: {
|
|
8628
|
+
success: false;
|
|
8629
|
+
error: string;
|
|
8630
|
+
};
|
|
8631
|
+
outputFormat: "json";
|
|
8632
|
+
status: 404;
|
|
8633
|
+
} | {
|
|
8730
8634
|
input: {
|
|
8731
8635
|
json: {
|
|
8732
8636
|
workspace: string;
|
|
@@ -9695,7 +9599,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9695
9599
|
error: string;
|
|
9696
9600
|
};
|
|
9697
9601
|
outputFormat: "json";
|
|
9698
|
-
status:
|
|
9602
|
+
status: 503;
|
|
9603
|
+
} | {
|
|
9604
|
+
input: {
|
|
9605
|
+
json: {
|
|
9606
|
+
workspace: string;
|
|
9607
|
+
};
|
|
9608
|
+
};
|
|
9609
|
+
output: {
|
|
9610
|
+
success: false;
|
|
9611
|
+
error: string;
|
|
9612
|
+
};
|
|
9613
|
+
outputFormat: "json";
|
|
9614
|
+
status: 502;
|
|
9699
9615
|
} | {
|
|
9700
9616
|
input: {
|
|
9701
9617
|
json: {
|
|
@@ -11234,6 +11150,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11234
11150
|
};
|
|
11235
11151
|
outputFormat: "json";
|
|
11236
11152
|
status: 404;
|
|
11153
|
+
} | {
|
|
11154
|
+
input: {
|
|
11155
|
+
json: {
|
|
11156
|
+
accountId: string;
|
|
11157
|
+
workspace: string;
|
|
11158
|
+
};
|
|
11159
|
+
};
|
|
11160
|
+
output: {
|
|
11161
|
+
success: false;
|
|
11162
|
+
error: string;
|
|
11163
|
+
code: string;
|
|
11164
|
+
};
|
|
11165
|
+
outputFormat: "json";
|
|
11166
|
+
status: 409;
|
|
11237
11167
|
} | {
|
|
11238
11168
|
input: {
|
|
11239
11169
|
json: {
|