@mestra-dev/contract 0.0.12 → 0.0.13
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 +84 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20
20
|
readonly openapi: "3.0.3";
|
|
21
21
|
readonly info: {
|
|
22
22
|
readonly title: "Auth Service API";
|
|
23
|
-
readonly version: "1.5.
|
|
23
|
+
readonly version: "1.5.3";
|
|
24
24
|
readonly description: "OpenAPI specification for the Auth, Integrations, Workspace, Tasks, Templates, Tags, Comments, Assignees, Chat, Events, Billings, Files, and Notifications endpoints exposed by the k3-core platform.";
|
|
25
25
|
};
|
|
26
26
|
readonly servers: readonly [
|
|
@@ -96,7 +96,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
readonly name: "Notifications";
|
|
99
|
-
readonly description: "Cursor-based incremental notification sync, plus mark-read
|
|
99
|
+
readonly description: "Cursor-based incremental notification sync, plus mark-read / archive (single or all). Clients store the sync cursor and pass it on the next call; mutations bump updated_at so changes propagate via sync.";
|
|
100
100
|
}
|
|
101
101
|
];
|
|
102
102
|
readonly components: {
|
|
@@ -10178,6 +10178,36 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10178
10178
|
};
|
|
10179
10179
|
};
|
|
10180
10180
|
};
|
|
10181
|
+
readonly "/notifications/read-all": {
|
|
10182
|
+
readonly post: {
|
|
10183
|
+
readonly tags: readonly [
|
|
10184
|
+
"Notifications"
|
|
10185
|
+
];
|
|
10186
|
+
readonly summary: "Mark all notifications as read";
|
|
10187
|
+
readonly description: "Sets `read=true` and bumps `updated_at` on every unread notification owned by the authenticated user so the changes are picked up by `/notifications/sync`. Requires a valid access token (no workspace policy check).";
|
|
10188
|
+
readonly security: readonly [
|
|
10189
|
+
never
|
|
10190
|
+
];
|
|
10191
|
+
readonly responses: {
|
|
10192
|
+
readonly 200: {
|
|
10193
|
+
readonly description: "All unread notifications marked as read.";
|
|
10194
|
+
readonly content: {
|
|
10195
|
+
readonly "application/json": {
|
|
10196
|
+
readonly schema: {
|
|
10197
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
10198
|
+
};
|
|
10199
|
+
};
|
|
10200
|
+
};
|
|
10201
|
+
};
|
|
10202
|
+
readonly 401: {
|
|
10203
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
10204
|
+
};
|
|
10205
|
+
readonly 403: {
|
|
10206
|
+
readonly description: "Forbidden - Token issuer is not 'access'.";
|
|
10207
|
+
};
|
|
10208
|
+
};
|
|
10209
|
+
};
|
|
10210
|
+
};
|
|
10181
10211
|
readonly "/notifications/archive": {
|
|
10182
10212
|
readonly post: {
|
|
10183
10213
|
readonly tags: readonly [
|
|
@@ -10238,6 +10268,36 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10238
10268
|
};
|
|
10239
10269
|
};
|
|
10240
10270
|
};
|
|
10271
|
+
readonly "/notifications/archive-all": {
|
|
10272
|
+
readonly post: {
|
|
10273
|
+
readonly tags: readonly [
|
|
10274
|
+
"Notifications"
|
|
10275
|
+
];
|
|
10276
|
+
readonly summary: "Archive all notifications";
|
|
10277
|
+
readonly description: "Sets `archive=true` and bumps `updated_at` on every unarchived notification owned by the authenticated user so the changes are picked up by `/notifications/sync`. Requires a valid access token (no workspace policy check).";
|
|
10278
|
+
readonly security: readonly [
|
|
10279
|
+
never
|
|
10280
|
+
];
|
|
10281
|
+
readonly responses: {
|
|
10282
|
+
readonly 200: {
|
|
10283
|
+
readonly description: "All unarchived notifications archived.";
|
|
10284
|
+
readonly content: {
|
|
10285
|
+
readonly "application/json": {
|
|
10286
|
+
readonly schema: {
|
|
10287
|
+
readonly $ref: "#/components/schemas/SimpleSuccess";
|
|
10288
|
+
};
|
|
10289
|
+
};
|
|
10290
|
+
};
|
|
10291
|
+
};
|
|
10292
|
+
readonly 401: {
|
|
10293
|
+
readonly description: "Unauthorized - Missing or invalid access token.";
|
|
10294
|
+
};
|
|
10295
|
+
readonly 403: {
|
|
10296
|
+
readonly description: "Forbidden - Token issuer is not 'access'.";
|
|
10297
|
+
};
|
|
10298
|
+
};
|
|
10299
|
+
};
|
|
10300
|
+
};
|
|
10241
10301
|
readonly "/chat/start": {
|
|
10242
10302
|
readonly post: {
|
|
10243
10303
|
readonly tags: readonly [
|
|
@@ -16046,6 +16106,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16046
16106
|
status: 200;
|
|
16047
16107
|
};
|
|
16048
16108
|
};
|
|
16109
|
+
} & {
|
|
16110
|
+
"/read-all": {
|
|
16111
|
+
$post: {
|
|
16112
|
+
input: {};
|
|
16113
|
+
output: {
|
|
16114
|
+
success: true;
|
|
16115
|
+
};
|
|
16116
|
+
outputFormat: "json";
|
|
16117
|
+
status: 200;
|
|
16118
|
+
};
|
|
16119
|
+
};
|
|
16049
16120
|
} & {
|
|
16050
16121
|
"/archive": {
|
|
16051
16122
|
$post: {
|
|
@@ -16073,5 +16144,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16073
16144
|
status: 200;
|
|
16074
16145
|
};
|
|
16075
16146
|
};
|
|
16147
|
+
} & {
|
|
16148
|
+
"/archive-all": {
|
|
16149
|
+
$post: {
|
|
16150
|
+
input: {};
|
|
16151
|
+
output: {
|
|
16152
|
+
success: true;
|
|
16153
|
+
};
|
|
16154
|
+
outputFormat: "json";
|
|
16155
|
+
status: 200;
|
|
16156
|
+
};
|
|
16157
|
+
};
|
|
16076
16158
|
}, "/notifications">, "/", "/">;
|
|
16077
16159
|
export type AppType = typeof routes;
|