@orq-ai/node 4.8.0-rc.30 → 4.8.0-rc.32
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 +58 -35
- package/funcs/policiesList.js +1 -2
- package/funcs/policiesList.js.map +1 -1
- package/funcs/schedulesCreate.d.ts +18 -0
- package/funcs/schedulesCreate.d.ts.map +1 -0
- package/funcs/schedulesCreate.js +125 -0
- package/funcs/schedulesCreate.js.map +1 -0
- package/funcs/schedulesDelete.d.ts +18 -0
- package/funcs/schedulesDelete.d.ts.map +1 -0
- package/funcs/schedulesDelete.js +129 -0
- package/funcs/schedulesDelete.js.map +1 -0
- package/funcs/schedulesList.d.ts +17 -0
- package/funcs/schedulesList.d.ts.map +1 -0
- package/funcs/schedulesList.js +120 -0
- package/funcs/schedulesList.js.map +1 -0
- package/funcs/schedulesRetrieve.d.ts +18 -0
- package/funcs/schedulesRetrieve.d.ts.map +1 -0
- package/funcs/schedulesRetrieve.js +128 -0
- package/funcs/schedulesRetrieve.js.map +1 -0
- package/funcs/schedulesTrigger.d.ts +18 -0
- package/funcs/schedulesTrigger.d.ts.map +1 -0
- package/funcs/schedulesTrigger.js +128 -0
- package/funcs/schedulesTrigger.js.map +1 -0
- package/funcs/schedulesUpdate.d.ts +18 -0
- package/funcs/schedulesUpdate.d.ts.map +1 -0
- package/funcs/schedulesUpdate.js +129 -0
- package/funcs/schedulesUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/expression.d.ts +0 -10
- package/models/components/expression.d.ts.map +1 -1
- package/models/components/expression.js +1 -10
- package/models/components/expression.js.map +1 -1
- package/models/components/expressioninput.d.ts +12 -0
- package/models/components/expressioninput.d.ts.map +1 -0
- package/models/components/expressioninput.js +49 -0
- package/models/components/expressioninput.js.map +1 -0
- package/models/components/index.d.ts +5 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -1
- package/models/components/index.js.map +1 -1
- package/models/components/policy.d.ts +2 -2
- package/models/components/policy.d.ts.map +1 -1
- package/models/components/policy.js +2 -2
- package/models/components/policy.js.map +1 -1
- package/models/components/policyretryconfig.d.ts +19 -0
- package/models/components/policyretryconfig.d.ts.map +1 -0
- package/models/components/{retryconfig.js → policyretryconfig.js} +10 -10
- package/models/components/policyretryconfig.js.map +1 -0
- package/models/components/publicschedule.d.ts +66 -0
- package/models/components/publicschedule.d.ts.map +1 -0
- package/models/components/publicschedule.js +86 -0
- package/models/components/publicschedule.js.map +1 -0
- package/models/components/publicscheduleerrordetail.d.ts +17 -0
- package/models/components/publicscheduleerrordetail.d.ts.map +1 -0
- package/models/components/publicscheduleerrordetail.js +51 -0
- package/models/components/publicscheduleerrordetail.js.map +1 -0
- package/models/components/publicschedulepayload.d.ts +43 -0
- package/models/components/publicschedulepayload.d.ts.map +1 -0
- package/models/components/publicschedulepayload.js +73 -0
- package/models/components/publicschedulepayload.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/createagentschedule.d.ts +46 -0
- package/models/errors/createagentschedule.d.ts.map +1 -0
- package/models/errors/createagentschedule.js +99 -0
- package/models/errors/createagentschedule.js.map +1 -0
- package/models/errors/deleteagentschedule.d.ts +25 -0
- package/models/errors/deleteagentschedule.d.ts.map +1 -0
- package/models/errors/deleteagentschedule.js +71 -0
- package/models/errors/deleteagentschedule.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/retrieveagentschedule.d.ts +25 -0
- package/models/errors/retrieveagentschedule.d.ts.map +1 -0
- package/models/errors/retrieveagentschedule.js +71 -0
- package/models/errors/retrieveagentschedule.js.map +1 -0
- package/models/errors/triggeragentschedule.d.ts +46 -0
- package/models/errors/triggeragentschedule.d.ts.map +1 -0
- package/models/errors/triggeragentschedule.js +99 -0
- package/models/errors/triggeragentschedule.js.map +1 -0
- package/models/errors/updateagentschedule.d.ts +46 -0
- package/models/errors/updateagentschedule.d.ts.map +1 -0
- package/models/errors/updateagentschedule.js +99 -0
- package/models/errors/updateagentschedule.js.map +1 -0
- package/models/operations/createagentschedule.d.ts +123 -0
- package/models/operations/createagentschedule.d.ts.map +1 -0
- package/models/operations/createagentschedule.js +125 -0
- package/models/operations/createagentschedule.js.map +1 -0
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deleteagentschedule.d.ts +20 -0
- package/models/operations/deleteagentschedule.d.ts.map +1 -0
- package/models/operations/deleteagentschedule.js +56 -0
- package/models/operations/deleteagentschedule.js.map +1 -0
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/guardrailrulecreate.d.ts +2 -2
- package/models/operations/guardrailrulecreate.d.ts.map +1 -1
- package/models/operations/guardrailrulecreate.js +1 -1
- package/models/operations/guardrailrulecreate.js.map +1 -1
- package/models/operations/guardrailruleupdate.d.ts +2 -2
- package/models/operations/guardrailruleupdate.d.ts.map +1 -1
- package/models/operations/guardrailruleupdate.js +1 -1
- package/models/operations/guardrailruleupdate.js.map +1 -1
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listagentschedules.d.ts +27 -0
- package/models/operations/listagentschedules.d.ts.map +1 -0
- package/models/operations/listagentschedules.js +64 -0
- package/models/operations/listagentschedules.js.map +1 -0
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/policycreate.d.ts +3 -3
- package/models/operations/policycreate.d.ts.map +1 -1
- package/models/operations/policycreate.js +2 -2
- package/models/operations/policycreate.js.map +1 -1
- package/models/operations/policyget.d.ts +1 -1
- package/models/operations/policyget.d.ts.map +1 -1
- package/models/operations/policyget.js +1 -1
- package/models/operations/policyget.js.map +1 -1
- package/models/operations/policylist.d.ts +3 -8
- package/models/operations/policylist.d.ts.map +1 -1
- package/models/operations/policylist.js +2 -2
- package/models/operations/policylist.js.map +1 -1
- package/models/operations/policyupdate.d.ts +3 -3
- package/models/operations/policyupdate.d.ts.map +1 -1
- package/models/operations/policyupdate.js +2 -2
- package/models/operations/policyupdate.js.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentschedule.d.ts +87 -0
- package/models/operations/retrieveagentschedule.d.ts.map +1 -0
- package/models/operations/retrieveagentschedule.js +100 -0
- package/models/operations/retrieveagentschedule.js.map +1 -0
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/routingrulecreate.d.ts +2 -2
- package/models/operations/routingrulecreate.d.ts.map +1 -1
- package/models/operations/routingrulecreate.js +1 -1
- package/models/operations/routingrulecreate.js.map +1 -1
- package/models/operations/routingruleupdate.d.ts +2 -2
- package/models/operations/routingruleupdate.d.ts.map +1 -1
- package/models/operations/routingruleupdate.js +1 -1
- package/models/operations/routingruleupdate.js.map +1 -1
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/triggeragentschedule.d.ts +35 -0
- package/models/operations/triggeragentschedule.d.ts.map +1 -0
- package/models/operations/triggeragentschedule.js +70 -0
- package/models/operations/triggeragentschedule.js.map +1 -0
- package/models/operations/updateagentschedule.d.ts +133 -0
- package/models/operations/updateagentschedule.d.ts.map +1 -0
- package/models/operations/updateagentschedule.js +129 -0
- package/models/operations/updateagentschedule.js.map +1 -0
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/schedules.d.ts +47 -0
- package/sdk/schedules.d.ts.map +1 -0
- package/sdk/schedules.js +72 -0
- package/sdk/schedules.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/policiesList.ts +1 -2
- package/src/funcs/schedulesCreate.ts +185 -0
- package/src/funcs/schedulesDelete.ts +184 -0
- package/src/funcs/schedulesList.ts +167 -0
- package/src/funcs/schedulesRetrieve.ts +183 -0
- package/src/funcs/schedulesTrigger.ts +190 -0
- package/src/funcs/schedulesUpdate.ts +191 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/expression.ts +0 -18
- package/src/models/components/expressioninput.ts +29 -0
- package/src/models/components/index.ts +5 -1
- package/src/models/components/policy.ts +6 -3
- package/src/models/components/{retryconfig.ts → policyretryconfig.ts} +17 -13
- package/src/models/components/publicschedule.ts +121 -0
- package/src/models/components/publicscheduleerrordetail.ts +39 -0
- package/src/models/components/publicschedulepayload.ts +84 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/createagentschedule.ts +105 -0
- package/src/models/errors/deleteagentschedule.ts +56 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/errors/retrieveagentschedule.ts +56 -0
- package/src/models/errors/triggeragentschedule.ts +105 -0
- package/src/models/errors/updateagentschedule.ts +105 -0
- package/src/models/operations/createagentschedule.ts +230 -0
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deleteagentschedule.ts +46 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/guardrailrulecreate.ts +3 -3
- package/src/models/operations/guardrailruleupdate.ts +3 -3
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listagentschedules.ts +69 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/policycreate.ts +5 -5
- package/src/models/operations/policyget.ts +2 -2
- package/src/models/operations/policylist.ts +5 -10
- package/src/models/operations/policyupdate.ts +5 -5
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentschedule.ts +165 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/routingrulecreate.ts +3 -3
- package/src/models/operations/routingruleupdate.ts +3 -3
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/triggeragentschedule.ts +86 -0
- package/src/models/operations/updateagentschedule.ts +244 -0
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/schedules.ts +117 -0
- package/src/sdk/sdk.ts +6 -0
- package/models/components/retryconfig.d.ts +0 -19
- package/models/components/retryconfig.d.ts.map +0 -1
- package/models/components/retryconfig.js.map +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import { OrqError } from "./orqerror.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Schedule or agent version not found.
|
|
11
|
+
*/
|
|
12
|
+
export type UpdateAgentScheduleSchedulesResponseBodyData = {
|
|
13
|
+
error: components.PublicScheduleErrorDetail;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Schedule or agent version not found.
|
|
18
|
+
*/
|
|
19
|
+
export class UpdateAgentScheduleSchedulesResponseBody extends OrqError {
|
|
20
|
+
error: components.PublicScheduleErrorDetail;
|
|
21
|
+
|
|
22
|
+
/** The original data that was passed to this error instance. */
|
|
23
|
+
data$: UpdateAgentScheduleSchedulesResponseBodyData;
|
|
24
|
+
|
|
25
|
+
constructor(
|
|
26
|
+
err: UpdateAgentScheduleSchedulesResponseBodyData,
|
|
27
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
+
) {
|
|
29
|
+
const message = err.error?.message
|
|
30
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
31
|
+
super(message, httpMeta);
|
|
32
|
+
this.data$ = err;
|
|
33
|
+
this.error = err.error;
|
|
34
|
+
|
|
35
|
+
this.name = "UpdateAgentScheduleSchedulesResponseBody";
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Invalid type, expression, or sub-hour cadence.
|
|
41
|
+
*/
|
|
42
|
+
export type UpdateAgentScheduleResponseBodyData = {
|
|
43
|
+
error: components.PublicScheduleErrorDetail;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Invalid type, expression, or sub-hour cadence.
|
|
48
|
+
*/
|
|
49
|
+
export class UpdateAgentScheduleResponseBody extends OrqError {
|
|
50
|
+
error: components.PublicScheduleErrorDetail;
|
|
51
|
+
|
|
52
|
+
/** The original data that was passed to this error instance. */
|
|
53
|
+
data$: UpdateAgentScheduleResponseBodyData;
|
|
54
|
+
|
|
55
|
+
constructor(
|
|
56
|
+
err: UpdateAgentScheduleResponseBodyData,
|
|
57
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
58
|
+
) {
|
|
59
|
+
const message = err.error?.message
|
|
60
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
61
|
+
super(message, httpMeta);
|
|
62
|
+
this.data$ = err;
|
|
63
|
+
this.error = err.error;
|
|
64
|
+
|
|
65
|
+
this.name = "UpdateAgentScheduleResponseBody";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const UpdateAgentScheduleSchedulesResponseBody$inboundSchema: z.ZodType<
|
|
71
|
+
UpdateAgentScheduleSchedulesResponseBody,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
unknown
|
|
74
|
+
> = z.object({
|
|
75
|
+
error: components.PublicScheduleErrorDetail$inboundSchema,
|
|
76
|
+
request$: z.instanceof(Request),
|
|
77
|
+
response$: z.instanceof(Response),
|
|
78
|
+
body$: z.string(),
|
|
79
|
+
})
|
|
80
|
+
.transform((v) => {
|
|
81
|
+
return new UpdateAgentScheduleSchedulesResponseBody(v, {
|
|
82
|
+
request: v.request$,
|
|
83
|
+
response: v.response$,
|
|
84
|
+
body: v.body$,
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const UpdateAgentScheduleResponseBody$inboundSchema: z.ZodType<
|
|
90
|
+
UpdateAgentScheduleResponseBody,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
unknown
|
|
93
|
+
> = z.object({
|
|
94
|
+
error: components.PublicScheduleErrorDetail$inboundSchema,
|
|
95
|
+
request$: z.instanceof(Request),
|
|
96
|
+
response$: z.instanceof(Response),
|
|
97
|
+
body$: z.string(),
|
|
98
|
+
})
|
|
99
|
+
.transform((v) => {
|
|
100
|
+
return new UpdateAgentScheduleResponseBody(v, {
|
|
101
|
+
request: v.request$,
|
|
102
|
+
response: v.response$,
|
|
103
|
+
body: v.body$,
|
|
104
|
+
});
|
|
105
|
+
});
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Schedule type. cron uses 6-field cron expressions; interval uses @every <duration>; once uses @at <RFC3339-UTC>.
|
|
15
|
+
*/
|
|
16
|
+
export const CreateAgentScheduleType = {
|
|
17
|
+
Cron: "cron",
|
|
18
|
+
Once: "once",
|
|
19
|
+
Interval: "interval",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* Schedule type. cron uses 6-field cron expressions; interval uses @every <duration>; once uses @at <RFC3339-UTC>.
|
|
23
|
+
*/
|
|
24
|
+
export type CreateAgentScheduleType = ClosedEnum<
|
|
25
|
+
typeof CreateAgentScheduleType
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export type CreateAgentScheduleRequestBody = {
|
|
29
|
+
/**
|
|
30
|
+
* Pin this schedule to a specific agent version. Omit to always use the active version.
|
|
31
|
+
*/
|
|
32
|
+
agentTag?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Schedule expression. Examples: cron '0 0 9 * * mon-fri' (9am UTC weekdays), interval '@every 1h', once '@at 2026-05-01T09:00:00Z'. Minimum firing cadence is 1 hour for cron and interval.
|
|
35
|
+
*/
|
|
36
|
+
expression: string;
|
|
37
|
+
payload: components.PublicSchedulePayload;
|
|
38
|
+
/**
|
|
39
|
+
* Schedule type. cron uses 6-field cron expressions; interval uses @every <duration>; once uses @at <RFC3339-UTC>.
|
|
40
|
+
*/
|
|
41
|
+
type: CreateAgentScheduleType;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type CreateAgentScheduleRequest = {
|
|
45
|
+
/**
|
|
46
|
+
* The unique routing key of the agent the schedule belongs to.
|
|
47
|
+
*/
|
|
48
|
+
agentKey: string;
|
|
49
|
+
requestBody: CreateAgentScheduleRequestBody;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Schedule type.
|
|
54
|
+
*/
|
|
55
|
+
export const CreateAgentScheduleSchedulesType = {
|
|
56
|
+
Cron: "cron",
|
|
57
|
+
Once: "once",
|
|
58
|
+
Interval: "interval",
|
|
59
|
+
} as const;
|
|
60
|
+
/**
|
|
61
|
+
* Schedule type.
|
|
62
|
+
*/
|
|
63
|
+
export type CreateAgentScheduleSchedulesType = ClosedEnum<
|
|
64
|
+
typeof CreateAgentScheduleSchedulesType
|
|
65
|
+
>;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Schedule created.
|
|
69
|
+
*/
|
|
70
|
+
export type CreateAgentScheduleResponseBody = {
|
|
71
|
+
/**
|
|
72
|
+
* ULID identifying this schedule.
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
agentKey: string;
|
|
76
|
+
/**
|
|
77
|
+
* Pinned agent version. Omit to always run the agent's current active version.
|
|
78
|
+
*/
|
|
79
|
+
agentTag?: string | undefined;
|
|
80
|
+
created: Date;
|
|
81
|
+
/**
|
|
82
|
+
* ID of the API key that created the schedule.
|
|
83
|
+
*/
|
|
84
|
+
createdById: string;
|
|
85
|
+
/**
|
|
86
|
+
* Cron expression (6-field, seconds required), @every duration, @at RFC3339 timestamp, or a predefined descriptor like @hourly/@daily.
|
|
87
|
+
*/
|
|
88
|
+
expression: string;
|
|
89
|
+
/**
|
|
90
|
+
* Monotonic counter bumped when the schedule's firing cadence changes. Used by the consumer to skip stale in-flight triggers.
|
|
91
|
+
*/
|
|
92
|
+
generation: number;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the schedule is currently firing. once schedules flip to false automatically after firing.
|
|
95
|
+
*/
|
|
96
|
+
isActive: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Timestamp of the most recent firing, if any.
|
|
99
|
+
*/
|
|
100
|
+
lastTriggeredAt?: Date | undefined;
|
|
101
|
+
payload: components.PublicSchedulePayload;
|
|
102
|
+
/**
|
|
103
|
+
* Total firings since creation or last expression/type change.
|
|
104
|
+
*/
|
|
105
|
+
triggerCount: number;
|
|
106
|
+
/**
|
|
107
|
+
* Schedule type.
|
|
108
|
+
*/
|
|
109
|
+
type: CreateAgentScheduleSchedulesType;
|
|
110
|
+
updated: Date;
|
|
111
|
+
workspaceId: string;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const CreateAgentScheduleType$outboundSchema: z.ZodNativeEnum<
|
|
116
|
+
typeof CreateAgentScheduleType
|
|
117
|
+
> = z.nativeEnum(CreateAgentScheduleType);
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export type CreateAgentScheduleRequestBody$Outbound = {
|
|
121
|
+
agent_tag?: string | undefined;
|
|
122
|
+
expression: string;
|
|
123
|
+
payload: components.PublicSchedulePayload$Outbound;
|
|
124
|
+
type: string;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const CreateAgentScheduleRequestBody$outboundSchema: z.ZodType<
|
|
129
|
+
CreateAgentScheduleRequestBody$Outbound,
|
|
130
|
+
z.ZodTypeDef,
|
|
131
|
+
CreateAgentScheduleRequestBody
|
|
132
|
+
> = z.object({
|
|
133
|
+
agentTag: z.string().optional(),
|
|
134
|
+
expression: z.string(),
|
|
135
|
+
payload: components.PublicSchedulePayload$outboundSchema,
|
|
136
|
+
type: CreateAgentScheduleType$outboundSchema,
|
|
137
|
+
}).transform((v) => {
|
|
138
|
+
return remap$(v, {
|
|
139
|
+
agentTag: "agent_tag",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
export function createAgentScheduleRequestBodyToJSON(
|
|
144
|
+
createAgentScheduleRequestBody: CreateAgentScheduleRequestBody,
|
|
145
|
+
): string {
|
|
146
|
+
return JSON.stringify(
|
|
147
|
+
CreateAgentScheduleRequestBody$outboundSchema.parse(
|
|
148
|
+
createAgentScheduleRequestBody,
|
|
149
|
+
),
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export type CreateAgentScheduleRequest$Outbound = {
|
|
155
|
+
agent_key: string;
|
|
156
|
+
RequestBody: CreateAgentScheduleRequestBody$Outbound;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/** @internal */
|
|
160
|
+
export const CreateAgentScheduleRequest$outboundSchema: z.ZodType<
|
|
161
|
+
CreateAgentScheduleRequest$Outbound,
|
|
162
|
+
z.ZodTypeDef,
|
|
163
|
+
CreateAgentScheduleRequest
|
|
164
|
+
> = z.object({
|
|
165
|
+
agentKey: z.string(),
|
|
166
|
+
requestBody: z.lazy(() => CreateAgentScheduleRequestBody$outboundSchema),
|
|
167
|
+
}).transform((v) => {
|
|
168
|
+
return remap$(v, {
|
|
169
|
+
agentKey: "agent_key",
|
|
170
|
+
requestBody: "RequestBody",
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
export function createAgentScheduleRequestToJSON(
|
|
175
|
+
createAgentScheduleRequest: CreateAgentScheduleRequest,
|
|
176
|
+
): string {
|
|
177
|
+
return JSON.stringify(
|
|
178
|
+
CreateAgentScheduleRequest$outboundSchema.parse(createAgentScheduleRequest),
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const CreateAgentScheduleSchedulesType$inboundSchema: z.ZodNativeEnum<
|
|
184
|
+
typeof CreateAgentScheduleSchedulesType
|
|
185
|
+
> = z.nativeEnum(CreateAgentScheduleSchedulesType);
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const CreateAgentScheduleResponseBody$inboundSchema: z.ZodType<
|
|
189
|
+
CreateAgentScheduleResponseBody,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
unknown
|
|
192
|
+
> = z.object({
|
|
193
|
+
_id: z.string(),
|
|
194
|
+
agent_key: z.string(),
|
|
195
|
+
agent_tag: z.string().optional(),
|
|
196
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
197
|
+
created_by_id: z.string(),
|
|
198
|
+
expression: z.string(),
|
|
199
|
+
generation: z.number().int(),
|
|
200
|
+
is_active: z.boolean(),
|
|
201
|
+
last_triggered_at: z.string().datetime({ offset: true }).transform(v =>
|
|
202
|
+
new Date(v)
|
|
203
|
+
).optional(),
|
|
204
|
+
payload: components.PublicSchedulePayload$inboundSchema,
|
|
205
|
+
trigger_count: z.number().int(),
|
|
206
|
+
type: CreateAgentScheduleSchedulesType$inboundSchema,
|
|
207
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
208
|
+
workspace_id: z.string(),
|
|
209
|
+
}).transform((v) => {
|
|
210
|
+
return remap$(v, {
|
|
211
|
+
"_id": "id",
|
|
212
|
+
"agent_key": "agentKey",
|
|
213
|
+
"agent_tag": "agentTag",
|
|
214
|
+
"created_by_id": "createdById",
|
|
215
|
+
"is_active": "isActive",
|
|
216
|
+
"last_triggered_at": "lastTriggeredAt",
|
|
217
|
+
"trigger_count": "triggerCount",
|
|
218
|
+
"workspace_id": "workspaceId",
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
export function createAgentScheduleResponseBodyFromJSON(
|
|
223
|
+
jsonString: string,
|
|
224
|
+
): SafeParseResult<CreateAgentScheduleResponseBody, SDKValidationError> {
|
|
225
|
+
return safeParse(
|
|
226
|
+
jsonString,
|
|
227
|
+
(x) => CreateAgentScheduleResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
228
|
+
`Failed to parse 'CreateAgentScheduleResponseBody' from JSON`,
|
|
229
|
+
);
|
|
230
|
+
}
|
|
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
134
134
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
135
|
.optional(),
|
|
136
136
|
updated: z.string().datetime({ offset: true }).default(
|
|
137
|
-
"2026-04-
|
|
137
|
+
"2026-04-20T13:49:43.154Z",
|
|
138
138
|
).transform(v => new Date(v)),
|
|
139
139
|
}).transform((v) => {
|
|
140
140
|
return remap$(v, {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-04-
|
|
141
|
+
"2026-04-20T13:49:43.154Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2355
2355
|
),
|
|
2356
2356
|
reviewed_by_id: z.string(),
|
|
2357
2357
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2358
|
-
"2026-04-
|
|
2358
|
+
"2026-04-20T13:50:00.396Z",
|
|
2359
2359
|
).transform(v => new Date(v)),
|
|
2360
2360
|
type: z.literal("string_array"),
|
|
2361
2361
|
values: z.array(z.string()),
|
|
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2400
2400
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2401
2401
|
reviewed_by_id: z.string(),
|
|
2402
2402
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2403
|
-
"2026-04-
|
|
2403
|
+
"2026-04-20T13:50:00.395Z",
|
|
2404
2404
|
).transform(v => new Date(v)),
|
|
2405
2405
|
type: z.literal("number"),
|
|
2406
2406
|
value: z.number(),
|
|
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2446
2446
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2447
2447
|
reviewed_by_id: z.string(),
|
|
2448
2448
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2449
|
-
"2026-04-
|
|
2449
|
+
"2026-04-20T13:50:00.395Z",
|
|
2450
2450
|
).transform(v => new Date(v)),
|
|
2451
2451
|
type: z.literal("string"),
|
|
2452
2452
|
value: z.string(),
|
|
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2529
2529
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2530
2530
|
.optional(),
|
|
2531
2531
|
updated: z.string().datetime({ offset: true }).default(
|
|
2532
|
-
"2026-04-
|
|
2532
|
+
"2026-04-20T13:49:43.154Z",
|
|
2533
2533
|
).transform(v => new Date(v)),
|
|
2534
2534
|
}).transform((v) => {
|
|
2535
2535
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KPNJFE3WWXWNE3DKZARC3XDJ"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -2776,8 +2776,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2776
2776
|
> = z.object({
|
|
2777
2777
|
_id: z.string(),
|
|
2778
2778
|
description: z.string(),
|
|
2779
|
-
created: z.string().default("2026-04-
|
|
2780
|
-
updated: z.string().default("2026-04-
|
|
2779
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
2780
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
2781
2781
|
guardrail_config: z.nullable(
|
|
2782
2782
|
z.union([
|
|
2783
2783
|
z.lazy(() =>
|
|
@@ -2965,8 +2965,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2965
2965
|
.object({
|
|
2966
2966
|
_id: z.string(),
|
|
2967
2967
|
description: z.string(),
|
|
2968
|
-
created: z.string().default("2026-04-
|
|
2969
|
-
updated: z.string().default("2026-04-
|
|
2968
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
2969
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
2970
2970
|
guardrail_config: z.nullable(
|
|
2971
2971
|
z.union([
|
|
2972
2972
|
z.lazy(() =>
|
|
@@ -3792,8 +3792,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3792
3792
|
> = z.object({
|
|
3793
3793
|
_id: z.string(),
|
|
3794
3794
|
description: z.string(),
|
|
3795
|
-
created: z.string().default("2026-04-
|
|
3796
|
-
updated: z.string().default("2026-04-
|
|
3795
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
3796
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
3797
3797
|
guardrail_config: z.nullable(
|
|
3798
3798
|
z.union([
|
|
3799
3799
|
z.lazy(() =>
|
|
@@ -4011,8 +4011,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
4011
4011
|
> = z.object({
|
|
4012
4012
|
_id: z.string(),
|
|
4013
4013
|
description: z.string(),
|
|
4014
|
-
created: z.string().default("2026-04-
|
|
4015
|
-
updated: z.string().default("2026-04-
|
|
4014
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4015
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4016
4016
|
guardrail_config: z.nullable(
|
|
4017
4017
|
z.union([
|
|
4018
4018
|
z.lazy(() =>
|
|
@@ -4193,8 +4193,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4193
4193
|
> = z.object({
|
|
4194
4194
|
_id: z.string(),
|
|
4195
4195
|
description: z.string(),
|
|
4196
|
-
created: z.string().default("2026-04-
|
|
4197
|
-
updated: z.string().default("2026-04-
|
|
4196
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4197
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4198
4198
|
guardrail_config: z.nullable(
|
|
4199
4199
|
z.union([
|
|
4200
4200
|
z.lazy(() =>
|
|
@@ -4370,8 +4370,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4370
4370
|
> = z.object({
|
|
4371
4371
|
_id: z.string(),
|
|
4372
4372
|
description: z.string(),
|
|
4373
|
-
created: z.string().default("2026-04-
|
|
4374
|
-
updated: z.string().default("2026-04-
|
|
4373
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4374
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4375
4375
|
guardrail_config: z.nullable(
|
|
4376
4376
|
z.union([
|
|
4377
4377
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4741,8 +4741,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4741
4741
|
> = z.object({
|
|
4742
4742
|
_id: z.string(),
|
|
4743
4743
|
description: z.string(),
|
|
4744
|
-
created: z.string().default("2026-04-
|
|
4745
|
-
updated: z.string().default("2026-04-
|
|
4744
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4745
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4746
4746
|
guardrail_config: z.nullable(
|
|
4747
4747
|
z.union([
|
|
4748
4748
|
z.lazy(() =>
|
|
@@ -4957,8 +4957,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4957
4957
|
> = z.object({
|
|
4958
4958
|
_id: z.string(),
|
|
4959
4959
|
description: z.string(),
|
|
4960
|
-
created: z.string().default("2026-04-
|
|
4961
|
-
updated: z.string().default("2026-04-
|
|
4960
|
+
created: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4961
|
+
updated: z.string().default("2026-04-20T13:49:45.644Z"),
|
|
4962
4962
|
guardrail_config: z.nullable(
|
|
4963
4963
|
z.union([
|
|
4964
4964
|
z.lazy(() =>
|
|
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
139
139
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
140
140
|
.optional(),
|
|
141
141
|
updated: z.string().datetime({ offset: true }).default(
|
|
142
|
-
"2026-04-
|
|
142
|
+
"2026-04-20T13:49:43.154Z",
|
|
143
143
|
).transform(v => new Date(v)),
|
|
144
144
|
}).transform((v) => {
|
|
145
145
|
return remap$(v, {
|
|
@@ -1902,7 +1902,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1902
1902
|
z.ZodTypeDef,
|
|
1903
1903
|
unknown
|
|
1904
1904
|
> = z.object({
|
|
1905
|
-
_id: z.string().default("
|
|
1905
|
+
_id: z.string().default("tool_01KPNJFDZAEQE8XPYJZKZW02QV"),
|
|
1906
1906
|
path: z.string(),
|
|
1907
1907
|
key: z.string(),
|
|
1908
1908
|
display_name: z.string().optional(),
|
|
@@ -1999,7 +1999,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1999
1999
|
z.ZodTypeDef,
|
|
2000
2000
|
unknown
|
|
2001
2001
|
> = z.object({
|
|
2002
|
-
id: z.string().default("
|
|
2002
|
+
id: z.string().default("01KPNJFDZ94X3PXDF0WBHCNKC0"),
|
|
2003
2003
|
name: z.string(),
|
|
2004
2004
|
description: z.string().optional(),
|
|
2005
2005
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2055,7 +2055,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2055
2055
|
z.ZodTypeDef,
|
|
2056
2056
|
unknown
|
|
2057
2057
|
> = z.object({
|
|
2058
|
-
_id: z.string().default("
|
|
2058
|
+
_id: z.string().default("tool_01KPNJFDZ8AEMEAGYHA0TT7CNH"),
|
|
2059
2059
|
path: z.string(),
|
|
2060
2060
|
key: z.string(),
|
|
2061
2061
|
display_name: z.string().optional(),
|
|
@@ -2241,7 +2241,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2241
2241
|
z.ZodTypeDef,
|
|
2242
2242
|
unknown
|
|
2243
2243
|
> = z.object({
|
|
2244
|
-
_id: z.string().default("
|
|
2244
|
+
_id: z.string().default("tool_01KPNJFDZ6G41K4RBTTJSN5EV0"),
|
|
2245
2245
|
path: z.string(),
|
|
2246
2246
|
key: z.string(),
|
|
2247
2247
|
display_name: z.string().optional(),
|
|
@@ -2334,7 +2334,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2334
2334
|
z.ZodTypeDef,
|
|
2335
2335
|
unknown
|
|
2336
2336
|
> = z.object({
|
|
2337
|
-
_id: z.string().default("
|
|
2337
|
+
_id: z.string().default("tool_01KPNJFDZ4TRGJ4E4CXMVFKVCQ"),
|
|
2338
2338
|
path: z.string(),
|
|
2339
2339
|
key: z.string(),
|
|
2340
2340
|
display_name: z.string().optional(),
|
|
@@ -2435,7 +2435,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2435
2435
|
z.ZodTypeDef,
|
|
2436
2436
|
unknown
|
|
2437
2437
|
> = z.object({
|
|
2438
|
-
_id: z.string().default("
|
|
2438
|
+
_id: z.string().default("tool_01KPNJFDZ30N9J8WJG9AS3HJGY"),
|
|
2439
2439
|
path: z.string(),
|
|
2440
2440
|
key: z.string(),
|
|
2441
2441
|
display_name: z.string().optional(),
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type DeleteAgentScheduleRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The unique routing key of the agent the schedule belongs to.
|
|
11
|
+
*/
|
|
12
|
+
agentKey: string;
|
|
13
|
+
/**
|
|
14
|
+
* The schedule's ULID, as returned from create.
|
|
15
|
+
*/
|
|
16
|
+
scheduleId: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type DeleteAgentScheduleRequest$Outbound = {
|
|
21
|
+
agent_key: string;
|
|
22
|
+
schedule_id: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const DeleteAgentScheduleRequest$outboundSchema: z.ZodType<
|
|
27
|
+
DeleteAgentScheduleRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
DeleteAgentScheduleRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
agentKey: z.string(),
|
|
32
|
+
scheduleId: z.string(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
agentKey: "agent_key",
|
|
36
|
+
scheduleId: "schedule_id",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function deleteAgentScheduleRequestToJSON(
|
|
41
|
+
deleteAgentScheduleRequest: DeleteAgentScheduleRequest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
DeleteAgentScheduleRequest$outboundSchema.parse(deleteAgentScheduleRequest),
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
767
767
|
z.ZodTypeDef,
|
|
768
768
|
unknown
|
|
769
769
|
> = z.object({
|
|
770
|
-
_id: z.string().default("
|
|
770
|
+
_id: z.string().default("tool_01KPNJFDYGZNDD6PMBH2MJNSWM"),
|
|
771
771
|
path: z.string(),
|
|
772
772
|
key: z.string(),
|
|
773
773
|
display_name: z.string().optional(),
|
|
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
864
864
|
z.ZodTypeDef,
|
|
865
865
|
unknown
|
|
866
866
|
> = z.object({
|
|
867
|
-
id: z.string().default("
|
|
867
|
+
id: z.string().default("01KPNJFDYFAENV2MVBXZW7YKCB"),
|
|
868
868
|
name: z.string(),
|
|
869
869
|
description: z.string().optional(),
|
|
870
870
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KPNJFDYEP3WM7YZ09DBNB1GP"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1102
1102
|
z.ZodTypeDef,
|
|
1103
1103
|
unknown
|
|
1104
1104
|
> = z.object({
|
|
1105
|
-
_id: z.string().default("
|
|
1105
|
+
_id: z.string().default("tool_01KPNJFDYCKYSJN0T42GAKVFEV"),
|
|
1106
1106
|
path: z.string(),
|
|
1107
1107
|
key: z.string(),
|
|
1108
1108
|
display_name: z.string().optional(),
|
|
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1195
1195
|
z.ZodTypeDef,
|
|
1196
1196
|
unknown
|
|
1197
1197
|
> = z.object({
|
|
1198
|
-
_id: z.string().default("
|
|
1198
|
+
_id: z.string().default("tool_01KPNJFDYA6CP48VE8FY8GBSDN"),
|
|
1199
1199
|
path: z.string(),
|
|
1200
1200
|
key: z.string(),
|
|
1201
1201
|
display_name: z.string().optional(),
|
|
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1297
1297
|
z.ZodTypeDef,
|
|
1298
1298
|
unknown
|
|
1299
1299
|
> = z.object({
|
|
1300
|
-
_id: z.string().default("
|
|
1300
|
+
_id: z.string().default("tool_01KPNJFDY8F1V3HDBTAGT7NX3M"),
|
|
1301
1301
|
path: z.string(),
|
|
1302
1302
|
key: z.string(),
|
|
1303
1303
|
display_name: z.string().optional(),
|