@lightsage/mcp 0.4.28 → 0.4.30
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/README.md +2 -2
- package/bin/mcp-server.js +1810 -664
- package/bin/mcp-server.js.map +47 -24
- package/esm/funcs/evalResultsList.d.ts +16 -0
- package/esm/funcs/evalResultsList.d.ts.map +1 -0
- package/esm/funcs/evalResultsList.js +91 -0
- package/esm/funcs/evalResultsList.js.map +1 -0
- package/esm/funcs/evalResultsSummary.d.ts +16 -0
- package/esm/funcs/evalResultsSummary.d.ts.map +1 -0
- package/esm/funcs/evalResultsSummary.js +87 -0
- package/esm/funcs/evalResultsSummary.js.map +1 -0
- package/esm/funcs/evalRunsList.d.ts +1 -1
- package/esm/funcs/evalRunsList.js +1 -1
- package/esm/funcs/promptsScheduleRetrieve.d.ts +15 -0
- package/esm/funcs/promptsScheduleRetrieve.d.ts.map +1 -0
- package/esm/funcs/promptsScheduleRetrieve.js +72 -0
- package/esm/funcs/promptsScheduleRetrieve.js.map +1 -0
- package/esm/funcs/promptsScheduleUpdate.d.ts +16 -0
- package/esm/funcs/promptsScheduleUpdate.d.ts.map +1 -0
- package/esm/funcs/promptsScheduleUpdate.js +83 -0
- package/esm/funcs/promptsScheduleUpdate.js.map +1 -0
- package/esm/funcs/promptsTargetsList.d.ts +1 -1
- package/esm/funcs/promptsTargetsList.js +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +9 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalResultsList.d.ts +7 -0
- package/esm/mcp-server/tools/evalResultsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalResultsList.js +35 -0
- package/esm/mcp-server/tools/evalResultsList.js.map +1 -0
- package/esm/mcp-server/tools/evalResultsSummary.d.ts +7 -0
- package/esm/mcp-server/tools/evalResultsSummary.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalResultsSummary.js +35 -0
- package/esm/mcp-server/tools/evalResultsSummary.js.map +1 -0
- package/esm/mcp-server/tools/evalRunsList.js +1 -1
- package/esm/mcp-server/tools/evalRunsList.js.map +1 -1
- package/esm/mcp-server/tools/promptsScheduleRetrieve.d.ts +3 -0
- package/esm/mcp-server/tools/promptsScheduleRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsScheduleRetrieve.js +30 -0
- package/esm/mcp-server/tools/promptsScheduleRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.js +35 -0
- package/esm/mcp-server/tools/promptsScheduleUpdate.js.map +1 -0
- package/esm/mcp-server/tools/promptsTargetsList.js +1 -1
- package/esm/mcp-server/tools/promptsTargetsList.js.map +1 -1
- package/esm/models/createv2evalrequest.js +1 -1
- package/esm/models/createv2evalrequest.js.map +1 -1
- package/esm/models/createv2evalrunrequest.js +1 -1
- package/esm/models/createv2evalrunrequest.js.map +1 -1
- package/esm/models/evaltemplateruntime.js +1 -1
- package/esm/models/evaltemplateruntime.js.map +1 -1
- package/esm/models/graderdefinition.d.ts +6 -0
- package/esm/models/graderdefinition.d.ts.map +1 -1
- package/esm/models/graderdefinition.js +28 -1
- package/esm/models/graderdefinition.js.map +1 -1
- package/esm/models/updatev2promptschedulerequest.d.ts +27 -0
- package/esm/models/updatev2promptschedulerequest.d.ts.map +1 -0
- package/esm/models/updatev2promptschedulerequest.js +27 -0
- package/esm/models/updatev2promptschedulerequest.js.map +1 -0
- package/esm/models/v2evalresultsfailedcheck.d.ts +9 -0
- package/esm/models/v2evalresultsfailedcheck.d.ts.map +1 -0
- package/esm/models/v2evalresultsfailedcheck.js +12 -0
- package/esm/models/v2evalresultsfailedcheck.js.map +1 -0
- package/esm/models/v2evalresultslistitem.d.ts +35 -0
- package/esm/models/v2evalresultslistitem.d.ts.map +1 -0
- package/esm/models/v2evalresultslistitem.js +34 -0
- package/esm/models/v2evalresultslistitem.js.map +1 -0
- package/esm/models/v2evalresultslistop.d.ts +33 -0
- package/esm/models/v2evalresultslistop.d.ts.map +1 -0
- package/esm/models/v2evalresultslistop.js +34 -0
- package/esm/models/v2evalresultslistop.js.map +1 -0
- package/esm/models/v2evalresultslistresponse.d.ts +10 -0
- package/esm/models/v2evalresultslistresponse.d.ts.map +1 -0
- package/esm/models/v2evalresultslistresponse.js +13 -0
- package/esm/models/v2evalresultslistresponse.js.map +1 -0
- package/esm/models/v2evalresultssummary.d.ts +14 -0
- package/esm/models/v2evalresultssummary.d.ts.map +1 -0
- package/esm/models/v2evalresultssummary.js +18 -0
- package/esm/models/v2evalresultssummary.js.map +1 -0
- package/esm/models/v2evalresultssummaryagent.d.ts +9 -0
- package/esm/models/v2evalresultssummaryagent.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryagent.js +12 -0
- package/esm/models/v2evalresultssummaryagent.js.map +1 -0
- package/esm/models/v2evalresultssummaryeval.d.ts +13 -0
- package/esm/models/v2evalresultssummaryeval.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryeval.js +16 -0
- package/esm/models/v2evalresultssummaryeval.js.map +1 -0
- package/esm/models/v2evalresultssummaryevalagent.d.ts +9 -0
- package/esm/models/v2evalresultssummaryevalagent.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryevalagent.js +12 -0
- package/esm/models/v2evalresultssummaryevalagent.js.map +1 -0
- package/esm/models/v2evalresultssummaryfigures.d.ts +12 -0
- package/esm/models/v2evalresultssummaryfigures.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryfigures.js +15 -0
- package/esm/models/v2evalresultssummaryfigures.js.map +1 -0
- package/esm/models/v2evalresultssummaryrange.d.ts +10 -0
- package/esm/models/v2evalresultssummaryrange.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryrange.js +13 -0
- package/esm/models/v2evalresultssummaryrange.js.map +1 -0
- package/esm/models/v2evalresultssummaryretrieveop.d.ts +11 -0
- package/esm/models/v2evalresultssummaryretrieveop.d.ts.map +1 -0
- package/esm/models/v2evalresultssummaryretrieveop.js +17 -0
- package/esm/models/v2evalresultssummaryretrieveop.js.map +1 -0
- package/esm/models/v2promptrunfrequency.d.ts +40 -0
- package/esm/models/v2promptrunfrequency.d.ts.map +1 -0
- package/esm/models/v2promptrunfrequency.js +38 -0
- package/esm/models/v2promptrunfrequency.js.map +1 -0
- package/esm/models/v2promptrunfrequencyinput.d.ts +47 -0
- package/esm/models/v2promptrunfrequencyinput.d.ts.map +1 -0
- package/esm/models/v2promptrunfrequencyinput.js +45 -0
- package/esm/models/v2promptrunfrequencyinput.js.map +1 -0
- package/esm/models/v2promptrunjobresponse.d.ts +1 -1
- package/esm/models/v2promptschedule.d.ts +31 -0
- package/esm/models/v2promptschedule.d.ts.map +1 -0
- package/esm/models/v2promptschedule.js +29 -0
- package/esm/models/v2promptschedule.js.map +1 -0
- package/esm/models/v2promptscheduleupdateop.d.ts +6 -0
- package/esm/models/v2promptscheduleupdateop.d.ts.map +1 -0
- package/esm/models/v2promptscheduleupdateop.js +12 -0
- package/esm/models/v2promptscheduleupdateop.js.map +1 -0
- package/esm/models/v2prompttarget.d.ts +6 -2
- package/esm/models/v2prompttarget.d.ts.map +1 -1
- package/esm/models/v2prompttarget.js +5 -3
- package/esm/models/v2prompttarget.js.map +1 -1
- package/esm/models/v2prompttargetinput.d.ts +10 -6
- package/esm/models/v2prompttargetinput.d.ts.map +1 -1
- package/esm/models/v2prompttargetinput.js +9 -6
- package/esm/models/v2prompttargetinput.js.map +1 -1
- package/esm/models/v2setupcommandoutput.js +1 -1
- package/esm/models/v2setupcommandoutput.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +18 -2
- package/esm/tool-names.js.map +1 -1
- package/lib/feedback.js +2 -2
- package/lib/tool-overrides.js +196 -8
- package/package.json +1 -1
- package/src/funcs/evalResultsList.ts +153 -0
- package/src/funcs/evalResultsSummary.ts +150 -0
- package/src/funcs/evalRunsList.ts +1 -1
- package/src/funcs/promptsScheduleRetrieve.ts +124 -0
- package/src/funcs/promptsScheduleUpdate.ts +145 -0
- package/src/funcs/promptsTargetsList.ts +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/evalResultsList.ts +43 -0
- package/src/mcp-server/tools/evalResultsSummary.ts +43 -0
- package/src/mcp-server/tools/evalRunsList.ts +1 -1
- package/src/mcp-server/tools/promptsScheduleRetrieve.ts +36 -0
- package/src/mcp-server/tools/promptsScheduleUpdate.ts +43 -0
- package/src/mcp-server/tools/promptsTargetsList.ts +1 -1
- package/src/models/createv2evalrequest.ts +1 -1
- package/src/models/createv2evalrunrequest.ts +1 -1
- package/src/models/evaltemplateruntime.ts +1 -1
- package/src/models/graderdefinition.ts +53 -19
- package/src/models/updatev2promptschedulerequest.ts +56 -0
- package/src/models/v2evalresultsfailedcheck.ts +24 -0
- package/src/models/v2evalresultslistitem.ts +70 -0
- package/src/models/v2evalresultslistop.ts +74 -0
- package/src/models/v2evalresultslistresponse.ts +28 -0
- package/src/models/v2evalresultssummary.ts +43 -0
- package/src/models/v2evalresultssummaryagent.ts +26 -0
- package/src/models/v2evalresultssummaryeval.ts +38 -0
- package/src/models/v2evalresultssummaryevalagent.ts +26 -0
- package/src/models/v2evalresultssummaryfigures.ts +38 -0
- package/src/models/v2evalresultssummaryrange.ts +26 -0
- package/src/models/v2evalresultssummaryretrieveop.ts +40 -0
- package/src/models/v2promptrunfrequency.ts +78 -0
- package/src/models/v2promptrunfrequencyinput.ts +76 -0
- package/src/models/v2promptschedule.ts +60 -0
- package/src/models/v2promptscheduleupdateop.ts +25 -0
- package/src/models/v2prompttarget.ts +8 -4
- package/src/models/v2prompttargetinput.ts +18 -11
- package/src/models/v2setupcommandoutput.ts +1 -1
- package/src/tool-names.ts +18 -2
- package/test/tool-overrides.test.js +121 -3
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 6e2fa6ca53be
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
V2EvalResultsFailedCheck,
|
|
10
|
+
V2EvalResultsFailedCheck$zodSchema,
|
|
11
|
+
} from "./v2evalresultsfailedcheck.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* `passed`, `failed` (graded and did not pass) or `errored` (never graded; see `error`).
|
|
15
|
+
*/
|
|
16
|
+
export const Result = {
|
|
17
|
+
Passed: "passed",
|
|
18
|
+
Failed: "failed",
|
|
19
|
+
Errored: "errored",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* `passed`, `failed` (graded and did not pass) or `errored` (never graded; see `error`).
|
|
23
|
+
*/
|
|
24
|
+
export type Result = ClosedEnum<typeof Result>;
|
|
25
|
+
|
|
26
|
+
export const Result$zodSchema = z.enum([
|
|
27
|
+
"passed",
|
|
28
|
+
"failed",
|
|
29
|
+
"errored",
|
|
30
|
+
]).describe(
|
|
31
|
+
"`passed`, `failed` (graded and did not pass) or `errored` (never graded; see `error`).",
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
export type V2EvalResultsListItem = {
|
|
35
|
+
id: string;
|
|
36
|
+
eval_id: string;
|
|
37
|
+
eval_name: string;
|
|
38
|
+
run_id?: string | null | undefined;
|
|
39
|
+
agent: string;
|
|
40
|
+
result: Result;
|
|
41
|
+
error?: string | null | undefined;
|
|
42
|
+
failed_checks?: Array<V2EvalResultsFailedCheck> | undefined;
|
|
43
|
+
time_ms?: number | null | undefined;
|
|
44
|
+
tool_calls?: number | null | undefined;
|
|
45
|
+
created_at: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const V2EvalResultsListItem$zodSchema: z.ZodType<V2EvalResultsListItem> =
|
|
49
|
+
z.object({
|
|
50
|
+
agent: z.string().describe("Agent ID (`harness:model`)."),
|
|
51
|
+
created_at: z.string(),
|
|
52
|
+
error: z.string().nullable().optional().describe(
|
|
53
|
+
"Why an errored attempt never ran.",
|
|
54
|
+
),
|
|
55
|
+
eval_id: z.string(),
|
|
56
|
+
eval_name: z.string(),
|
|
57
|
+
failed_checks: z.array(V2EvalResultsFailedCheck$zodSchema).optional()
|
|
58
|
+
.describe("The judge's checks this attempt failed, with the reasons."),
|
|
59
|
+
id: z.string().describe("Result ID: one attempt by one agent."),
|
|
60
|
+
result: Result$zodSchema.describe(
|
|
61
|
+
"`passed`, `failed` (graded and did not pass) or `errored` (never graded; see `error`).",
|
|
62
|
+
),
|
|
63
|
+
run_id: z.string().nullable().optional().describe(
|
|
64
|
+
"The eval run the result belongs to. Pass it to `GET /v2/eval-runs/{run_id}/trace` for the agent's step-by-step log. Null for a result with no run on record.",
|
|
65
|
+
),
|
|
66
|
+
time_ms: z.int().nullable().optional().describe(
|
|
67
|
+
"Agent time, in milliseconds.",
|
|
68
|
+
),
|
|
69
|
+
tool_calls: z.int().nullable().optional(),
|
|
70
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 2a13b3a5afb9
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
HTTPValidationError,
|
|
10
|
+
HTTPValidationError$zodSchema,
|
|
11
|
+
} from "./httpvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
V2EvalResultsListResponse,
|
|
14
|
+
V2EvalResultsListResponse$zodSchema,
|
|
15
|
+
} from "./v2evalresultslistresponse.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* `passed`, `failed` (graded and did not pass) or `errored` (never graded).
|
|
19
|
+
*/
|
|
20
|
+
export const V2EvalResultsListResult = {
|
|
21
|
+
Passed: "passed",
|
|
22
|
+
Failed: "failed",
|
|
23
|
+
Errored: "errored",
|
|
24
|
+
} as const;
|
|
25
|
+
/**
|
|
26
|
+
* `passed`, `failed` (graded and did not pass) or `errored` (never graded).
|
|
27
|
+
*/
|
|
28
|
+
export type V2EvalResultsListResult = ClosedEnum<
|
|
29
|
+
typeof V2EvalResultsListResult
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
export const V2EvalResultsListResult$zodSchema = z.enum([
|
|
33
|
+
"passed",
|
|
34
|
+
"failed",
|
|
35
|
+
"errored",
|
|
36
|
+
]).describe(
|
|
37
|
+
"`passed`, `failed` (graded and did not pass) or `errored` (never graded).",
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
export type V2EvalResultsListRequest = {
|
|
41
|
+
days?: number | undefined;
|
|
42
|
+
eval_id?: string | undefined;
|
|
43
|
+
agent?: string | undefined;
|
|
44
|
+
result?: V2EvalResultsListResult | undefined;
|
|
45
|
+
limit?: number | undefined;
|
|
46
|
+
cursor?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const V2EvalResultsListRequest$zodSchema: z.ZodType<
|
|
50
|
+
V2EvalResultsListRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
agent: z.string().describe(
|
|
53
|
+
"Only this agent ID (`harness:model`), as `GET /v2/eval-results/summary` names it.",
|
|
54
|
+
).optional(),
|
|
55
|
+
cursor: z.string().describe("`next_cursor` from the previous page.")
|
|
56
|
+
.optional(),
|
|
57
|
+
days: z.int().default(30).describe("Days up to today (UTC) to cover."),
|
|
58
|
+
eval_id: z.string().describe("Only this eval.").optional(),
|
|
59
|
+
limit: z.int().default(50).describe("Results per page."),
|
|
60
|
+
result: V2EvalResultsListResult$zodSchema.optional().describe(
|
|
61
|
+
"`passed`, `failed` (graded and did not pass) or `errored` (never graded).",
|
|
62
|
+
),
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
export type V2EvalResultsListResponseResponse =
|
|
66
|
+
| V2EvalResultsListResponse
|
|
67
|
+
| HTTPValidationError;
|
|
68
|
+
|
|
69
|
+
export const V2EvalResultsListResponseResponse$zodSchema: z.ZodType<
|
|
70
|
+
V2EvalResultsListResponseResponse
|
|
71
|
+
> = z.union([
|
|
72
|
+
V2EvalResultsListResponse$zodSchema,
|
|
73
|
+
HTTPValidationError$zodSchema,
|
|
74
|
+
]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3d617e277093
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
V2EvalResultsListItem,
|
|
9
|
+
V2EvalResultsListItem$zodSchema,
|
|
10
|
+
} from "./v2evalresultslistitem.js";
|
|
11
|
+
|
|
12
|
+
export type V2EvalResultsListResponse = {
|
|
13
|
+
data?: Array<V2EvalResultsListItem> | undefined;
|
|
14
|
+
count: number;
|
|
15
|
+
has_more: boolean;
|
|
16
|
+
next_cursor?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export const V2EvalResultsListResponse$zodSchema: z.ZodType<
|
|
20
|
+
V2EvalResultsListResponse
|
|
21
|
+
> = z.object({
|
|
22
|
+
count: z.int().describe("The number of items in `data`."),
|
|
23
|
+
data: z.array(V2EvalResultsListItem$zodSchema).optional(),
|
|
24
|
+
has_more: z.boolean().describe("Whether more results match."),
|
|
25
|
+
next_cursor: z.string().nullable().optional().describe(
|
|
26
|
+
"Pass as `cursor` to get the next page.",
|
|
27
|
+
),
|
|
28
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 776c20fcec1e
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
V2EvalResultsSummaryAgent,
|
|
9
|
+
V2EvalResultsSummaryAgent$zodSchema,
|
|
10
|
+
} from "./v2evalresultssummaryagent.js";
|
|
11
|
+
import {
|
|
12
|
+
V2EvalResultsSummaryEval,
|
|
13
|
+
V2EvalResultsSummaryEval$zodSchema,
|
|
14
|
+
} from "./v2evalresultssummaryeval.js";
|
|
15
|
+
import {
|
|
16
|
+
V2EvalResultsSummaryFigures,
|
|
17
|
+
V2EvalResultsSummaryFigures$zodSchema,
|
|
18
|
+
} from "./v2evalresultssummaryfigures.js";
|
|
19
|
+
import {
|
|
20
|
+
V2EvalResultsSummaryRange,
|
|
21
|
+
V2EvalResultsSummaryRange$zodSchema,
|
|
22
|
+
} from "./v2evalresultssummaryrange.js";
|
|
23
|
+
|
|
24
|
+
export type V2EvalResultsSummary = {
|
|
25
|
+
range: V2EvalResultsSummaryRange;
|
|
26
|
+
results: V2EvalResultsSummaryFigures;
|
|
27
|
+
previous: V2EvalResultsSummaryFigures;
|
|
28
|
+
agents?: Array<V2EvalResultsSummaryAgent> | undefined;
|
|
29
|
+
evals?: Array<V2EvalResultsSummaryEval> | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const V2EvalResultsSummary$zodSchema: z.ZodType<V2EvalResultsSummary> = z
|
|
33
|
+
.object({
|
|
34
|
+
agents: z.array(V2EvalResultsSummaryAgent$zodSchema).optional().describe(
|
|
35
|
+
"Each agent across every eval in the response, lowest pass rate first.",
|
|
36
|
+
),
|
|
37
|
+
evals: z.array(V2EvalResultsSummaryEval$zodSchema).optional().describe(
|
|
38
|
+
"Each eval with attempts in either range, lowest pass rate first (evals with nothing graded last).",
|
|
39
|
+
),
|
|
40
|
+
previous: V2EvalResultsSummaryFigures$zodSchema,
|
|
41
|
+
range: V2EvalResultsSummaryRange$zodSchema,
|
|
42
|
+
results: V2EvalResultsSummaryFigures$zodSchema,
|
|
43
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b9c7c18cfcdf
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
V2EvalResultsSummaryFigures,
|
|
9
|
+
V2EvalResultsSummaryFigures$zodSchema,
|
|
10
|
+
} from "./v2evalresultssummaryfigures.js";
|
|
11
|
+
|
|
12
|
+
export type V2EvalResultsSummaryAgent = {
|
|
13
|
+
agent: string;
|
|
14
|
+
results: V2EvalResultsSummaryFigures;
|
|
15
|
+
previous: V2EvalResultsSummaryFigures;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const V2EvalResultsSummaryAgent$zodSchema: z.ZodType<
|
|
19
|
+
V2EvalResultsSummaryAgent
|
|
20
|
+
> = z.object({
|
|
21
|
+
agent: z.string().describe(
|
|
22
|
+
"Agent ID (`harness:model`). Pass it as `agent` to `GET /v2/eval-results`.",
|
|
23
|
+
),
|
|
24
|
+
previous: V2EvalResultsSummaryFigures$zodSchema,
|
|
25
|
+
results: V2EvalResultsSummaryFigures$zodSchema,
|
|
26
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3a9781608c65
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
V2EvalResultsSummaryEvalAgent,
|
|
9
|
+
V2EvalResultsSummaryEvalAgent$zodSchema,
|
|
10
|
+
} from "./v2evalresultssummaryevalagent.js";
|
|
11
|
+
import {
|
|
12
|
+
V2EvalResultsSummaryFigures,
|
|
13
|
+
V2EvalResultsSummaryFigures$zodSchema,
|
|
14
|
+
} from "./v2evalresultssummaryfigures.js";
|
|
15
|
+
|
|
16
|
+
export type V2EvalResultsSummaryEval = {
|
|
17
|
+
eval_id: string;
|
|
18
|
+
eval_name: string;
|
|
19
|
+
results: V2EvalResultsSummaryFigures;
|
|
20
|
+
previous: V2EvalResultsSummaryFigures;
|
|
21
|
+
pass_rate_change?: number | null | undefined;
|
|
22
|
+
agents?: Array<V2EvalResultsSummaryEvalAgent> | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const V2EvalResultsSummaryEval$zodSchema: z.ZodType<
|
|
26
|
+
V2EvalResultsSummaryEval
|
|
27
|
+
> = z.object({
|
|
28
|
+
agents: z.array(V2EvalResultsSummaryEvalAgent$zodSchema).optional().describe(
|
|
29
|
+
"This eval's figures for each agent, lowest pass rate first.",
|
|
30
|
+
),
|
|
31
|
+
eval_id: z.string(),
|
|
32
|
+
eval_name: z.string(),
|
|
33
|
+
pass_rate_change: z.number().nullable().optional().describe(
|
|
34
|
+
"`results.pass_rate - previous.pass_rate`. Negative means the eval got worse. Null unless both ranges have at least 5 graded attempts.",
|
|
35
|
+
),
|
|
36
|
+
previous: V2EvalResultsSummaryFigures$zodSchema,
|
|
37
|
+
results: V2EvalResultsSummaryFigures$zodSchema,
|
|
38
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 25971a5bc121
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
V2EvalResultsSummaryFigures,
|
|
9
|
+
V2EvalResultsSummaryFigures$zodSchema,
|
|
10
|
+
} from "./v2evalresultssummaryfigures.js";
|
|
11
|
+
|
|
12
|
+
export type V2EvalResultsSummaryEvalAgent = {
|
|
13
|
+
agent: string;
|
|
14
|
+
results: V2EvalResultsSummaryFigures;
|
|
15
|
+
previous_pass_rate?: number | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const V2EvalResultsSummaryEvalAgent$zodSchema: z.ZodType<
|
|
19
|
+
V2EvalResultsSummaryEvalAgent
|
|
20
|
+
> = z.object({
|
|
21
|
+
agent: z.string().describe("Agent ID (`harness:model`)."),
|
|
22
|
+
previous_pass_rate: z.number().nullable().optional().describe(
|
|
23
|
+
"Pass rate in the range before. Null when nothing was graded.",
|
|
24
|
+
),
|
|
25
|
+
results: V2EvalResultsSummaryFigures$zodSchema,
|
|
26
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 47be34974984
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type V2EvalResultsSummaryFigures = {
|
|
9
|
+
runs: number;
|
|
10
|
+
graded: number;
|
|
11
|
+
passed: number;
|
|
12
|
+
errored: number;
|
|
13
|
+
pass_rate?: number | null | undefined;
|
|
14
|
+
time_ms_per_run?: number | null | undefined;
|
|
15
|
+
tool_calls_per_run?: number | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const V2EvalResultsSummaryFigures$zodSchema: z.ZodType<
|
|
19
|
+
V2EvalResultsSummaryFigures
|
|
20
|
+
> = z.object({
|
|
21
|
+
errored: z.int().describe(
|
|
22
|
+
"Attempts that never reached the judge (the agent crashed or the run could not start). They are left out of every rate and average.",
|
|
23
|
+
),
|
|
24
|
+
graded: z.int().describe(
|
|
25
|
+
"Attempts the judge graded: `runs` minus `errored`.",
|
|
26
|
+
),
|
|
27
|
+
pass_rate: z.number().nullable().optional().describe(
|
|
28
|
+
"`passed / graded` from 0 to 1. Null when nothing was graded.",
|
|
29
|
+
),
|
|
30
|
+
passed: z.int().describe("Graded attempts that passed."),
|
|
31
|
+
runs: z.int().describe("Attempts in the range, graded or not."),
|
|
32
|
+
time_ms_per_run: z.number().nullable().optional().describe(
|
|
33
|
+
"Average agent time per graded attempt, in milliseconds.",
|
|
34
|
+
),
|
|
35
|
+
tool_calls_per_run: z.number().nullable().optional().describe(
|
|
36
|
+
"Average tool calls per graded attempt.",
|
|
37
|
+
),
|
|
38
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 787940e1842d
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type V2EvalResultsSummaryRange = {
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
days: number;
|
|
12
|
+
previous_start: string;
|
|
13
|
+
previous_end: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const V2EvalResultsSummaryRange$zodSchema: z.ZodType<
|
|
17
|
+
V2EvalResultsSummaryRange
|
|
18
|
+
> = z.object({
|
|
19
|
+
days: z.int(),
|
|
20
|
+
end: z.string().describe("Last day of the range (UTC), today."),
|
|
21
|
+
previous_end: z.string(),
|
|
22
|
+
previous_start: z.string().describe(
|
|
23
|
+
"First day of the range of the same length just before.",
|
|
24
|
+
),
|
|
25
|
+
start: z.string().describe("First day of the range (UTC), `YYYY-MM-DD`."),
|
|
26
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 143ba63505ef
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
HTTPValidationError,
|
|
9
|
+
HTTPValidationError$zodSchema,
|
|
10
|
+
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
V2EvalResultsSummary,
|
|
13
|
+
V2EvalResultsSummary$zodSchema,
|
|
14
|
+
} from "./v2evalresultssummary.js";
|
|
15
|
+
|
|
16
|
+
export type V2EvalResultsSummaryRetrieveRequest = {
|
|
17
|
+
days?: number | undefined;
|
|
18
|
+
eval_id?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const V2EvalResultsSummaryRetrieveRequest$zodSchema: z.ZodType<
|
|
22
|
+
V2EvalResultsSummaryRetrieveRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
days: z.int().default(30).describe(
|
|
25
|
+
"Days up to today (UTC) to cover. The response also covers the same number of days before.",
|
|
26
|
+
),
|
|
27
|
+
eval_id: z.string().describe("Only this eval. Leave out for every eval.")
|
|
28
|
+
.optional(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export type V2EvalResultsSummaryRetrieveResponse =
|
|
32
|
+
| V2EvalResultsSummary
|
|
33
|
+
| HTTPValidationError;
|
|
34
|
+
|
|
35
|
+
export const V2EvalResultsSummaryRetrieveResponse$zodSchema: z.ZodType<
|
|
36
|
+
V2EvalResultsSummaryRetrieveResponse
|
|
37
|
+
> = z.union([
|
|
38
|
+
V2EvalResultsSummary$zodSchema,
|
|
39
|
+
HTTPValidationError$zodSchema,
|
|
40
|
+
]);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: bffc14e35e66
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const V2PromptRunFrequencyKind = {
|
|
10
|
+
AnswerEngine: "answer_engine",
|
|
11
|
+
CodingAgent: "coding_agent",
|
|
12
|
+
} as const;
|
|
13
|
+
export type V2PromptRunFrequencyKind = ClosedEnum<
|
|
14
|
+
typeof V2PromptRunFrequencyKind
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
export const V2PromptRunFrequencyKind$zodSchema = z.enum([
|
|
18
|
+
"answer_engine",
|
|
19
|
+
"coding_agent",
|
|
20
|
+
]);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* How often this answer engine or harness runs: its own frequency if `overridden`, otherwise the organization's default.
|
|
24
|
+
*/
|
|
25
|
+
export const V2PromptRunFrequencyFrequency = {
|
|
26
|
+
Daily: "daily",
|
|
27
|
+
EveryOtherDay: "every_other_day",
|
|
28
|
+
Weekly: "weekly",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* How often this answer engine or harness runs: its own frequency if `overridden`, otherwise the organization's default.
|
|
32
|
+
*/
|
|
33
|
+
export type V2PromptRunFrequencyFrequency = ClosedEnum<
|
|
34
|
+
typeof V2PromptRunFrequencyFrequency
|
|
35
|
+
>;
|
|
36
|
+
|
|
37
|
+
export const V2PromptRunFrequencyFrequency$zodSchema = z.enum([
|
|
38
|
+
"daily",
|
|
39
|
+
"every_other_day",
|
|
40
|
+
"weekly",
|
|
41
|
+
]).describe(
|
|
42
|
+
"How often this answer engine or harness runs: its own frequency if `overridden`, otherwise the organization's default.",
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
export type V2PromptRunFrequency = {
|
|
46
|
+
kind: V2PromptRunFrequencyKind;
|
|
47
|
+
answer_engine?: string | null | undefined;
|
|
48
|
+
harness?: string | null | undefined;
|
|
49
|
+
name: string;
|
|
50
|
+
models?: Array<string> | undefined;
|
|
51
|
+
frequency: V2PromptRunFrequencyFrequency;
|
|
52
|
+
overridden: boolean;
|
|
53
|
+
in_use: boolean;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const V2PromptRunFrequency$zodSchema: z.ZodType<V2PromptRunFrequency> = z
|
|
57
|
+
.object({
|
|
58
|
+
answer_engine: z.string().nullable().optional().describe(
|
|
59
|
+
"Answer engine identifier, for answer engines.",
|
|
60
|
+
),
|
|
61
|
+
frequency: V2PromptRunFrequencyFrequency$zodSchema.describe(
|
|
62
|
+
"How often this answer engine or harness runs: its own frequency if `overridden`, otherwise the organization's default.",
|
|
63
|
+
),
|
|
64
|
+
harness: z.string().nullable().optional().describe(
|
|
65
|
+
"Coding-agent harness, such as `claude-code`, for agents.",
|
|
66
|
+
),
|
|
67
|
+
in_use: z.boolean().describe(
|
|
68
|
+
"Whether the organization's prompts run on this answer engine or harness now. The others are ones its plan allows, so their frequency can be set before prompts use them.",
|
|
69
|
+
),
|
|
70
|
+
kind: V2PromptRunFrequencyKind$zodSchema,
|
|
71
|
+
models: z.array(z.string()).optional().describe(
|
|
72
|
+
"Models scheduled on this harness. Empty for answer engines.",
|
|
73
|
+
),
|
|
74
|
+
name: z.string().describe("Human-readable answer engine or harness name."),
|
|
75
|
+
overridden: z.boolean().describe(
|
|
76
|
+
"Whether it is set differently from the organization's default.",
|
|
77
|
+
),
|
|
78
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 070e5cfaebc0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const V2PromptRunFrequencyInputAnswerEngine = {
|
|
10
|
+
Chatgpt: "chatgpt",
|
|
11
|
+
GoogleAiOverviews: "google-ai-overviews",
|
|
12
|
+
GoogleAiMode: "google-ai-mode",
|
|
13
|
+
GeminiSearch: "gemini-search",
|
|
14
|
+
Perplexity: "perplexity",
|
|
15
|
+
Claude: "claude",
|
|
16
|
+
MicrosoftCopilot: "microsoft-copilot",
|
|
17
|
+
} as const;
|
|
18
|
+
export type V2PromptRunFrequencyInputAnswerEngine = ClosedEnum<
|
|
19
|
+
typeof V2PromptRunFrequencyInputAnswerEngine
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export const V2PromptRunFrequencyInputAnswerEngine$zodSchema = z.enum([
|
|
23
|
+
"chatgpt",
|
|
24
|
+
"google-ai-overviews",
|
|
25
|
+
"google-ai-mode",
|
|
26
|
+
"gemini-search",
|
|
27
|
+
"perplexity",
|
|
28
|
+
"claude",
|
|
29
|
+
"microsoft-copilot",
|
|
30
|
+
]);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* How often this answer engine or harness runs your prompts on schedule. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve. `default` puts it back on the organization's default frequency.
|
|
34
|
+
*/
|
|
35
|
+
export const V2PromptRunFrequencyInputFrequency = {
|
|
36
|
+
Daily: "daily",
|
|
37
|
+
EveryOtherDay: "every_other_day",
|
|
38
|
+
Weekly: "weekly",
|
|
39
|
+
Default: "default",
|
|
40
|
+
} as const;
|
|
41
|
+
/**
|
|
42
|
+
* How often this answer engine or harness runs your prompts on schedule. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve. `default` puts it back on the organization's default frequency.
|
|
43
|
+
*/
|
|
44
|
+
export type V2PromptRunFrequencyInputFrequency = ClosedEnum<
|
|
45
|
+
typeof V2PromptRunFrequencyInputFrequency
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
export const V2PromptRunFrequencyInputFrequency$zodSchema = z.enum([
|
|
49
|
+
"daily",
|
|
50
|
+
"every_other_day",
|
|
51
|
+
"weekly",
|
|
52
|
+
"default",
|
|
53
|
+
]).describe(
|
|
54
|
+
"How often this answer engine or harness runs your prompts on schedule. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve. `default` puts it back on the organization's default frequency.",
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
export type V2PromptRunFrequencyInput = {
|
|
58
|
+
answer_engine?: V2PromptRunFrequencyInputAnswerEngine | null | undefined;
|
|
59
|
+
harness?: string | null | undefined;
|
|
60
|
+
frequency: V2PromptRunFrequencyInputFrequency;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const V2PromptRunFrequencyInput$zodSchema: z.ZodType<
|
|
64
|
+
V2PromptRunFrequencyInput
|
|
65
|
+
> = z.object({
|
|
66
|
+
answer_engine: V2PromptRunFrequencyInputAnswerEngine$zodSchema.nullable()
|
|
67
|
+
.optional().describe(
|
|
68
|
+
"Answer engine to set. Set this or `harness`, not both.",
|
|
69
|
+
),
|
|
70
|
+
frequency: V2PromptRunFrequencyInputFrequency$zodSchema.describe(
|
|
71
|
+
"How often this answer engine or harness runs your prompts on schedule. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve. `default` puts it back on the organization's default frequency.",
|
|
72
|
+
),
|
|
73
|
+
harness: z.string().nullable().optional().describe(
|
|
74
|
+
"Coding-agent harness to set, such as `claude-code`, from the `harness` field of `GET /v2/agents`. It covers every model on the harness. Set this or `answer_engine`, not both.",
|
|
75
|
+
),
|
|
76
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4daeba33c373
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
V2PromptRunFrequency,
|
|
10
|
+
V2PromptRunFrequency$zodSchema,
|
|
11
|
+
} from "./v2promptrunfrequency.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.
|
|
15
|
+
*/
|
|
16
|
+
export const V2PromptScheduleFrequency = {
|
|
17
|
+
Daily: "daily",
|
|
18
|
+
EveryOtherDay: "every_other_day",
|
|
19
|
+
Weekly: "weekly",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.
|
|
23
|
+
*/
|
|
24
|
+
export type V2PromptScheduleFrequency = ClosedEnum<
|
|
25
|
+
typeof V2PromptScheduleFrequency
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export const V2PromptScheduleFrequency$zodSchema = z.enum([
|
|
29
|
+
"daily",
|
|
30
|
+
"every_other_day",
|
|
31
|
+
"weekly",
|
|
32
|
+
]).describe(
|
|
33
|
+
"The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.",
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
export type V2PromptSchedule = {
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
time: string;
|
|
39
|
+
timezone: string;
|
|
40
|
+
last_run_at?: string | null | undefined;
|
|
41
|
+
next_run_at?: string | null | undefined;
|
|
42
|
+
frequency: V2PromptScheduleFrequency;
|
|
43
|
+
frequencies?: Array<V2PromptRunFrequency> | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const V2PromptSchedule$zodSchema: z.ZodType<V2PromptSchedule> = z.object(
|
|
47
|
+
{
|
|
48
|
+
enabled: z.boolean().describe("Whether scheduled prompt runs are on."),
|
|
49
|
+
frequencies: z.array(V2PromptRunFrequency$zodSchema).optional().describe(
|
|
50
|
+
"Every answer engine and harness the organization can run prompts on, with how often each runs. `overridden` marks the ones set differently from the default, and `in_use` the ones its prompts use now.",
|
|
51
|
+
),
|
|
52
|
+
frequency: V2PromptScheduleFrequency$zodSchema.describe(
|
|
53
|
+
"The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.",
|
|
54
|
+
),
|
|
55
|
+
last_run_at: z.string().nullable().optional(),
|
|
56
|
+
next_run_at: z.string().nullable().optional(),
|
|
57
|
+
time: z.string().describe("Time of day the daily run starts, as `HH:MM`."),
|
|
58
|
+
timezone: z.string().describe("Time zone of `time`."),
|
|
59
|
+
},
|
|
60
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c74239105043
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
import {
|
|
8
|
+
HTTPValidationError,
|
|
9
|
+
HTTPValidationError$zodSchema,
|
|
10
|
+
} from "./httpvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
V2PromptSchedule,
|
|
13
|
+
V2PromptSchedule$zodSchema,
|
|
14
|
+
} from "./v2promptschedule.js";
|
|
15
|
+
|
|
16
|
+
export type V2PromptScheduleUpdateResponse =
|
|
17
|
+
| V2PromptSchedule
|
|
18
|
+
| HTTPValidationError;
|
|
19
|
+
|
|
20
|
+
export const V2PromptScheduleUpdateResponse$zodSchema: z.ZodType<
|
|
21
|
+
V2PromptScheduleUpdateResponse
|
|
22
|
+
> = z.union([
|
|
23
|
+
V2PromptSchedule$zodSchema,
|
|
24
|
+
HTTPValidationError$zodSchema,
|
|
25
|
+
]);
|