@vibes.diy/api-types 14.3.329 → 14.3.331
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/app.d.ts +1 -0
- package/app.js +1 -0
- package/moderation.d.ts +24 -1
- package/moderation.js +9 -1
- package/package.json +4 -4
package/app.d.ts
CHANGED
|
@@ -1619,6 +1619,7 @@ export declare const resAppTickStatus: import("arktype/internal/variants/object.
|
|
|
1619
1619
|
graceMs: number;
|
|
1620
1620
|
overdueMs: number;
|
|
1621
1621
|
healed: boolean;
|
|
1622
|
+
releaseIntervalMs?: number | undefined;
|
|
1622
1623
|
}, {}>;
|
|
1623
1624
|
export type ResAppTickStatus = typeof resAppTickStatus.infer;
|
|
1624
1625
|
export declare function isResAppTickStatus(obj: unknown): obj is ResAppTickStatus;
|
package/app.js
CHANGED
|
@@ -382,6 +382,7 @@ export const resAppTickStatus = lazyType(() => type({
|
|
|
382
382
|
graceMs: "number",
|
|
383
383
|
overdueMs: "number",
|
|
384
384
|
healed: "boolean",
|
|
385
|
+
"releaseIntervalMs?": "number",
|
|
385
386
|
}));
|
|
386
387
|
export function isResAppTickStatus(obj) {
|
|
387
388
|
return resAppTickStatus.allows(obj);
|
package/moderation.d.ts
CHANGED
|
@@ -101,6 +101,17 @@ export declare const evtAutoFlagWaiting: import("arktype/internal/variants/objec
|
|
|
101
101
|
}, {}>;
|
|
102
102
|
export type EvtAutoFlagWaiting = typeof evtAutoFlagWaiting.infer;
|
|
103
103
|
export declare function isEvtAutoFlagWaiting(obj: unknown): obj is EvtAutoFlagWaiting;
|
|
104
|
+
export declare const autoFlagSummary: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
105
|
+
since: string;
|
|
106
|
+
total: number;
|
|
107
|
+
rows: {
|
|
108
|
+
status: string;
|
|
109
|
+
category: string;
|
|
110
|
+
inputKind: string;
|
|
111
|
+
n: number;
|
|
112
|
+
}[];
|
|
113
|
+
}, {}>;
|
|
114
|
+
export type AutoFlagSummary = typeof autoFlagSummary.infer;
|
|
104
115
|
export declare const reqModerationAdmin: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
105
116
|
type: "vibes.diy.req-moderation-admin";
|
|
106
117
|
auth: {
|
|
@@ -117,7 +128,9 @@ export declare const reqModerationAdmin: import("arktype/internal/variants/objec
|
|
|
117
128
|
limit?: number | undefined;
|
|
118
129
|
flagId?: string | undefined;
|
|
119
130
|
triage?: "escalated" | "false_alarm" | "resolved" | undefined;
|
|
120
|
-
flagStatus?: "all" | "escalated" | "false_alarm" | "open" | "resolved" | undefined;
|
|
131
|
+
flagStatus?: "all" | "allowed" | "error" | "escalated" | "false_alarm" | "open" | "resolved" | undefined;
|
|
132
|
+
summary?: boolean | undefined;
|
|
133
|
+
since?: string | undefined;
|
|
121
134
|
}, {}>;
|
|
122
135
|
export type ReqModerationAdmin = typeof reqModerationAdmin.infer;
|
|
123
136
|
export declare const vibeReportRow: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -240,6 +253,16 @@ export declare const resModerationAdmin: import("arktype/internal/variants/objec
|
|
|
240
253
|
triagedBy?: string | undefined;
|
|
241
254
|
triageNote?: string | undefined;
|
|
242
255
|
} | undefined;
|
|
256
|
+
flagSummary?: {
|
|
257
|
+
since: string;
|
|
258
|
+
total: number;
|
|
259
|
+
rows: {
|
|
260
|
+
status: string;
|
|
261
|
+
category: string;
|
|
262
|
+
inputKind: string;
|
|
263
|
+
n: number;
|
|
264
|
+
}[];
|
|
265
|
+
} | undefined;
|
|
243
266
|
}, {}>;
|
|
244
267
|
export type ResModerationAdmin = typeof resModerationAdmin.infer;
|
|
245
268
|
export declare function isResModerationAdmin(obj: unknown): obj is ResModerationAdmin;
|
package/moderation.js
CHANGED
|
@@ -98,6 +98,11 @@ export const evtAutoFlagWaiting = lazyType(() => type({
|
|
|
98
98
|
export function isEvtAutoFlagWaiting(obj) {
|
|
99
99
|
return evtAutoFlagWaiting.allows(obj);
|
|
100
100
|
}
|
|
101
|
+
export const autoFlagSummary = lazyType(() => type({
|
|
102
|
+
since: "string",
|
|
103
|
+
total: "number",
|
|
104
|
+
rows: type({ status: "string", category: "string", inputKind: "string", n: "number" }).array(),
|
|
105
|
+
}));
|
|
101
106
|
export const reqModerationAdmin = lazyType(() => type({
|
|
102
107
|
type: "'vibes.diy.req-moderation-admin'",
|
|
103
108
|
auth: dashAuthType,
|
|
@@ -111,7 +116,9 @@ export const reqModerationAdmin = lazyType(() => type({
|
|
|
111
116
|
"limit?": "number",
|
|
112
117
|
"flagId?": "string",
|
|
113
118
|
"triage?": autoFlagTriage,
|
|
114
|
-
"flagStatus?": "'open' | 'false_alarm' | 'escalated' | 'resolved' | 'all'",
|
|
119
|
+
"flagStatus?": "'open' | 'false_alarm' | 'escalated' | 'resolved' | 'allowed' | 'error' | 'all'",
|
|
120
|
+
"summary?": "boolean",
|
|
121
|
+
"since?": "string",
|
|
115
122
|
}));
|
|
116
123
|
export const vibeReportRow = lazyType(() => type({
|
|
117
124
|
reportId: "string",
|
|
@@ -151,6 +158,7 @@ export const resModerationAdmin = lazyType(() => type({
|
|
|
151
158
|
"openReports?": "number",
|
|
152
159
|
"flags?": autoFlagRow.array(),
|
|
153
160
|
"flag?": autoFlagRow,
|
|
161
|
+
"flagSummary?": autoFlagSummary,
|
|
154
162
|
}));
|
|
155
163
|
export function isResModerationAdmin(obj) {
|
|
156
164
|
return resModerationAdmin.allows(obj);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/api-types",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.331",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@adviser/cement": "~0.5.37",
|
|
27
27
|
"@cloudflare/workers-types": "~5.20261101.1",
|
|
28
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
29
|
-
"@vibes.diy/identity": "14.3.
|
|
30
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
28
|
+
"@vibes.diy/call-ai-v2": "14.3.331",
|
|
29
|
+
"@vibes.diy/identity": "14.3.331",
|
|
30
|
+
"@vibes.diy/vibe-types": "14.3.331",
|
|
31
31
|
"arktype": "~2.2.9"
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|