@orq-ai/node 4.8.0-rc.31 → 4.8.0-rc.33
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/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/optionalexpressioninput.d.ts +12 -0
- package/models/components/optionalexpressioninput.d.ts.map +1 -0
- package/models/components/optionalexpressioninput.js +49 -0
- package/models/components/optionalexpressioninput.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/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/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/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 +7 -7
- 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/index.ts +4 -0
- package/src/models/components/optionalexpressioninput.ts +31 -0
- 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/policylist.ts +5 -10
- 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/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
|
@@ -1040,8 +1040,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1040
1040
|
> = z.object({
|
|
1041
1041
|
_id: z.string(),
|
|
1042
1042
|
description: z.string(),
|
|
1043
|
-
created: z.string().default("2026-04-
|
|
1044
|
-
updated: z.string().default("2026-04-
|
|
1043
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
1044
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
1045
1045
|
guardrail_config: z.nullable(
|
|
1046
1046
|
z.union([
|
|
1047
1047
|
z.lazy(() =>
|
|
@@ -1220,8 +1220,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
1220
1220
|
> = z.object({
|
|
1221
1221
|
_id: z.string(),
|
|
1222
1222
|
description: z.string(),
|
|
1223
|
-
created: z.string().default("2026-04-
|
|
1224
|
-
updated: z.string().default("2026-04-
|
|
1223
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
1224
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
1225
1225
|
guardrail_config: z.nullable(
|
|
1226
1226
|
z.union([
|
|
1227
1227
|
z.lazy(() => GetEvalsGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -2050,8 +2050,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
2050
2050
|
> = z.object({
|
|
2051
2051
|
_id: z.string(),
|
|
2052
2052
|
description: z.string(),
|
|
2053
|
-
created: z.string().default("2026-04-
|
|
2054
|
-
updated: z.string().default("2026-04-
|
|
2053
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2054
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2055
2055
|
guardrail_config: z.nullable(
|
|
2056
2056
|
z.union([
|
|
2057
2057
|
z.lazy(() => GetEvalsGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -2232,8 +2232,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
2232
2232
|
> = z.object({
|
|
2233
2233
|
_id: z.string(),
|
|
2234
2234
|
description: z.string(),
|
|
2235
|
-
created: z.string().default("2026-04-
|
|
2236
|
-
updated: z.string().default("2026-04-
|
|
2235
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2236
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2237
2237
|
guardrail_config: z.nullable(
|
|
2238
2238
|
z.union([
|
|
2239
2239
|
z.lazy(() => GetEvalsGuardrailConfigBoolean$inboundSchema),
|
|
@@ -2410,8 +2410,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
2410
2410
|
> = z.object({
|
|
2411
2411
|
_id: z.string(),
|
|
2412
2412
|
description: z.string(),
|
|
2413
|
-
created: z.string().default("2026-04-
|
|
2414
|
-
updated: z.string().default("2026-04-
|
|
2413
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2414
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2415
2415
|
guardrail_config: z.nullable(
|
|
2416
2416
|
z.union([
|
|
2417
2417
|
z.lazy(() =>
|
|
@@ -2600,8 +2600,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
2600
2600
|
> = z.object({
|
|
2601
2601
|
_id: z.string(),
|
|
2602
2602
|
description: z.string(),
|
|
2603
|
-
created: z.string().default("2026-04-
|
|
2604
|
-
updated: z.string().default("2026-04-
|
|
2603
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2604
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2605
2605
|
guardrail_config: z.nullable(
|
|
2606
2606
|
z.union([
|
|
2607
2607
|
z.lazy(() =>
|
|
@@ -2966,8 +2966,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
|
|
|
2966
2966
|
> = z.object({
|
|
2967
2967
|
_id: z.string(),
|
|
2968
2968
|
description: z.string(),
|
|
2969
|
-
created: z.string().default("2026-04-
|
|
2970
|
-
updated: z.string().default("2026-04-
|
|
2969
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2970
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
2971
2971
|
guardrail_config: z.nullable(
|
|
2972
2972
|
z.union([
|
|
2973
2973
|
z.lazy(() =>
|
|
@@ -3175,8 +3175,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
|
|
|
3175
3175
|
> = z.object({
|
|
3176
3176
|
_id: z.string(),
|
|
3177
3177
|
description: z.string(),
|
|
3178
|
-
created: z.string().default("2026-04-
|
|
3179
|
-
updated: z.string().default("2026-04-
|
|
3178
|
+
created: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
3179
|
+
updated: z.string().default("2026-04-20T16:06:23.205Z"),
|
|
3180
3180
|
guardrail_config: z.nullable(
|
|
3181
3181
|
z.union([
|
|
3182
3182
|
z.lazy(() =>
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-04-
|
|
143
|
+
"2026-04-20T16:06:20.851Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-04-
|
|
188
|
+
"2026-04-20T16:06:20.851Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-04-
|
|
144
|
+
"2026-04-20T16:06:20.851Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-04-
|
|
189
|
+
"2026-04-20T16:06:20.851Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -13,7 +13,7 @@ export type GuardrailRuleCreateRequestBody = {
|
|
|
13
13
|
description?: string | undefined;
|
|
14
14
|
displayName: string;
|
|
15
15
|
enabled?: boolean | undefined;
|
|
16
|
-
expression
|
|
16
|
+
expression?: components.OptionalExpressionInput | undefined;
|
|
17
17
|
guardrails?: Array<components.GuardrailRef> | null | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* Optional project ID. If null/omitted, the entity is global (workspace-wide).
|
|
@@ -45,7 +45,7 @@ export type GuardrailRuleCreateRequestBody$Outbound = {
|
|
|
45
45
|
description?: string | undefined;
|
|
46
46
|
display_name: string;
|
|
47
47
|
enabled?: boolean | undefined;
|
|
48
|
-
expression
|
|
48
|
+
expression?: components.OptionalExpressionInput$Outbound | undefined;
|
|
49
49
|
guardrails?: Array<components.GuardrailRef$Outbound> | null | undefined;
|
|
50
50
|
project_id?: string | undefined;
|
|
51
51
|
timeout?: number | undefined;
|
|
@@ -60,7 +60,7 @@ export const GuardrailRuleCreateRequestBody$outboundSchema: z.ZodType<
|
|
|
60
60
|
description: z.string().optional(),
|
|
61
61
|
displayName: z.string(),
|
|
62
62
|
enabled: z.boolean().optional(),
|
|
63
|
-
expression: components.
|
|
63
|
+
expression: components.OptionalExpressionInput$outboundSchema.optional(),
|
|
64
64
|
guardrails: z.nullable(z.array(components.GuardrailRef$outboundSchema))
|
|
65
65
|
.optional(),
|
|
66
66
|
projectId: z.string().optional(),
|
|
@@ -13,7 +13,7 @@ export type GuardrailRuleUpdateRequestBody = {
|
|
|
13
13
|
description?: string | undefined;
|
|
14
14
|
displayName?: string | undefined;
|
|
15
15
|
enabled?: boolean | undefined;
|
|
16
|
-
expression?: components.
|
|
16
|
+
expression?: components.OptionalExpressionInput | undefined;
|
|
17
17
|
guardrails?: Array<components.GuardrailRef> | undefined;
|
|
18
18
|
timeout?: number | undefined;
|
|
19
19
|
};
|
|
@@ -49,7 +49,7 @@ export type GuardrailRuleUpdateRequestBody$Outbound = {
|
|
|
49
49
|
description?: string | undefined;
|
|
50
50
|
display_name?: string | undefined;
|
|
51
51
|
enabled?: boolean | undefined;
|
|
52
|
-
expression?: components.
|
|
52
|
+
expression?: components.OptionalExpressionInput$Outbound | undefined;
|
|
53
53
|
guardrails?: Array<components.GuardrailRef$Outbound> | undefined;
|
|
54
54
|
timeout?: number | undefined;
|
|
55
55
|
};
|
|
@@ -63,7 +63,7 @@ export const GuardrailRuleUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
63
63
|
description: z.string().optional(),
|
|
64
64
|
displayName: z.string().optional(),
|
|
65
65
|
enabled: z.boolean().optional(),
|
|
66
|
-
expression: components.
|
|
66
|
+
expression: components.OptionalExpressionInput$outboundSchema.optional(),
|
|
67
67
|
guardrails: z.array(components.GuardrailRef$outboundSchema).optional(),
|
|
68
68
|
timeout: z.number().int().optional(),
|
|
69
69
|
}).transform((v) => {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export * from "./cleardataset.js";
|
|
6
6
|
export * from "./createagentrequest.js";
|
|
7
7
|
export * from "./createagentresponserequest.js";
|
|
8
|
+
export * from "./createagentschedule.js";
|
|
8
9
|
export * from "./createannotation.js";
|
|
9
10
|
export * from "./createchatcompletion.js";
|
|
10
11
|
export * from "./createchunk.js";
|
|
@@ -33,6 +34,7 @@ export * from "./createtool.js";
|
|
|
33
34
|
export * from "./createtranscription.js";
|
|
34
35
|
export * from "./createtranslation.js";
|
|
35
36
|
export * from "./deleteagent.js";
|
|
37
|
+
export * from "./deleteagentschedule.js";
|
|
36
38
|
export * from "./deleteannotation.js";
|
|
37
39
|
export * from "./deletechunk.js";
|
|
38
40
|
export * from "./deletechunks.js";
|
|
@@ -84,6 +86,7 @@ export * from "./guardrailruleupdate.js";
|
|
|
84
86
|
export * from "./invokeagent.js";
|
|
85
87
|
export * from "./invokeeval.js";
|
|
86
88
|
export * from "./listagents.js";
|
|
89
|
+
export * from "./listagentschedules.js";
|
|
87
90
|
export * from "./listchunks.js";
|
|
88
91
|
export * from "./listchunkspaginated.js";
|
|
89
92
|
export * from "./listdatasetdatapoints.js";
|
|
@@ -109,6 +112,7 @@ export * from "./postv2humanevalsets.js";
|
|
|
109
112
|
export * from "./postv2routerocr.js";
|
|
110
113
|
export * from "./remoteconfigsgetconfig.js";
|
|
111
114
|
export * from "./retrieveagentrequest.js";
|
|
115
|
+
export * from "./retrieveagentschedule.js";
|
|
112
116
|
export * from "./retrievedatapoint.js";
|
|
113
117
|
export * from "./retrievedataset.js";
|
|
114
118
|
export * from "./retrievedatasource.js";
|
|
@@ -127,7 +131,9 @@ export * from "./runagent.js";
|
|
|
127
131
|
export * from "./searchknowledge.js";
|
|
128
132
|
export * from "./streamagent.js";
|
|
129
133
|
export * from "./streamrunagent.js";
|
|
134
|
+
export * from "./triggeragentschedule.js";
|
|
130
135
|
export * from "./updateagent.js";
|
|
136
|
+
export * from "./updateagentschedule.js";
|
|
131
137
|
export * from "./updatechunk.js";
|
|
132
138
|
export * from "./updatedatapoint.js";
|
|
133
139
|
export * from "./updatedataset.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListAgentSchedulesRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The unique routing key of the agent the schedule belongs to.
|
|
15
|
+
*/
|
|
16
|
+
agentKey: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Schedules listed (empty array if none).
|
|
21
|
+
*/
|
|
22
|
+
export type ListAgentSchedulesResponseBody = {
|
|
23
|
+
schedules: Array<components.PublicSchedule> | null;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type ListAgentSchedulesRequest$Outbound = {
|
|
28
|
+
agent_key: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ListAgentSchedulesRequest$outboundSchema: z.ZodType<
|
|
33
|
+
ListAgentSchedulesRequest$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
ListAgentSchedulesRequest
|
|
36
|
+
> = z.object({
|
|
37
|
+
agentKey: z.string(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
agentKey: "agent_key",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export function listAgentSchedulesRequestToJSON(
|
|
45
|
+
listAgentSchedulesRequest: ListAgentSchedulesRequest,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
ListAgentSchedulesRequest$outboundSchema.parse(listAgentSchedulesRequest),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const ListAgentSchedulesResponseBody$inboundSchema: z.ZodType<
|
|
54
|
+
ListAgentSchedulesResponseBody,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
schedules: z.nullable(z.array(components.PublicSchedule$inboundSchema)),
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export function listAgentSchedulesResponseBodyFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<ListAgentSchedulesResponseBody, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => ListAgentSchedulesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'ListAgentSchedulesResponseBody' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-04-
|
|
1273
|
+
"2026-04-20T16:06:37.079Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-04-
|
|
1323
|
+
"2026-04-20T16:06:37.079Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-04-
|
|
1372
|
+
"2026-04-20T16:06:37.078Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-04-
|
|
1451
|
+
"2026-04-20T16:06:20.851Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-04-
|
|
159
|
+
"2026-04-20T16:06:20.851Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -176,7 +176,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
176
176
|
z.ZodTypeDef,
|
|
177
177
|
unknown
|
|
178
178
|
> = z.object({
|
|
179
|
-
_id: z.string().default("
|
|
179
|
+
_id: z.string().default("01KPNT9JPRV3QEX92YEC57AYS3"),
|
|
180
180
|
display_name: z.string(),
|
|
181
181
|
description: z.string().optional(),
|
|
182
182
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -227,7 +227,7 @@ export const ListIdentitiesData$inboundSchema: z.ZodType<
|
|
|
227
227
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
228
228
|
.optional(),
|
|
229
229
|
updated: z.string().datetime({ offset: true }).default(
|
|
230
|
-
"2026-04-
|
|
230
|
+
"2026-04-20T16:06:20.851Z",
|
|
231
231
|
).transform(v => new Date(v)),
|
|
232
232
|
metrics: z.lazy(() => ListIdentitiesMetrics$inboundSchema),
|
|
233
233
|
}).transform((v) => {
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-04-
|
|
321
|
+
"2026-04-20T16:06:20.851Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-04-
|
|
367
|
+
"2026-04-20T16:06:20.851Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -20,13 +20,9 @@ export type PolicyListRequest = {
|
|
|
20
20
|
*/
|
|
21
21
|
endingBefore?: string | undefined;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Optional filter by project ID.
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Free-text search on display name (case-insensitive substring match).
|
|
28
|
-
*/
|
|
29
|
-
q?: string | undefined;
|
|
25
|
+
projectId?: string | undefined;
|
|
30
26
|
};
|
|
31
27
|
|
|
32
28
|
/**
|
|
@@ -43,8 +39,7 @@ export type PolicyListRequest$Outbound = {
|
|
|
43
39
|
limit: number;
|
|
44
40
|
starting_after?: string | undefined;
|
|
45
41
|
ending_before?: string | undefined;
|
|
46
|
-
|
|
47
|
-
q?: string | undefined;
|
|
42
|
+
project_id?: string | undefined;
|
|
48
43
|
};
|
|
49
44
|
|
|
50
45
|
/** @internal */
|
|
@@ -56,12 +51,12 @@ export const PolicyListRequest$outboundSchema: z.ZodType<
|
|
|
56
51
|
limit: z.number().int().default(10),
|
|
57
52
|
startingAfter: z.string().optional(),
|
|
58
53
|
endingBefore: z.string().optional(),
|
|
59
|
-
|
|
60
|
-
q: z.string().optional(),
|
|
54
|
+
projectId: z.string().optional(),
|
|
61
55
|
}).transform((v) => {
|
|
62
56
|
return remap$(v, {
|
|
63
57
|
startingAfter: "starting_after",
|
|
64
58
|
endingBefore: "ending_before",
|
|
59
|
+
projectId: "project_id",
|
|
65
60
|
});
|
|
66
61
|
});
|
|
67
62
|
|
|
@@ -173,7 +173,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
173
173
|
humanReviewId: z.string(),
|
|
174
174
|
source: PostV2FeedbackEvaluationRequestBodyRequestSource$outboundSchema
|
|
175
175
|
.default("orq"),
|
|
176
|
-
reviewedAt: z.date().default(() => new Date("2026-04-
|
|
176
|
+
reviewedAt: z.date().default(() => new Date("2026-04-20T16:06:37.239Z"))
|
|
177
177
|
.transform(v => v.toISOString()),
|
|
178
178
|
type: z.literal("string_array"),
|
|
179
179
|
values: z.array(z.string()),
|
|
@@ -225,7 +225,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
225
225
|
source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
|
|
226
226
|
"orq",
|
|
227
227
|
),
|
|
228
|
-
reviewedAt: z.date().default(() => new Date("2026-04-
|
|
228
|
+
reviewedAt: z.date().default(() => new Date("2026-04-20T16:06:37.238Z"))
|
|
229
229
|
.transform(v => v.toISOString()),
|
|
230
230
|
type: z.literal("number"),
|
|
231
231
|
value: z.number(),
|
|
@@ -275,7 +275,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
275
275
|
evaluationType: EvaluationType$outboundSchema,
|
|
276
276
|
humanReviewId: z.string(),
|
|
277
277
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
278
|
-
reviewedAt: z.date().default(() => new Date("2026-04-
|
|
278
|
+
reviewedAt: z.date().default(() => new Date("2026-04-20T16:06:37.238Z"))
|
|
279
279
|
.transform(v => v.toISOString()),
|
|
280
280
|
type: z.literal("string"),
|
|
281
281
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-04-
|
|
274
|
+
"2026-04-20T16:06:20.851Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-04-
|
|
319
|
+
"2026-04-20T16:06:20.851Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
export type RetrieveAgentScheduleRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* The unique routing key of the agent the schedule belongs to.
|
|
16
|
+
*/
|
|
17
|
+
agentKey: string;
|
|
18
|
+
/**
|
|
19
|
+
* The schedule's ULID, as returned from create.
|
|
20
|
+
*/
|
|
21
|
+
scheduleId: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Schedule type.
|
|
26
|
+
*/
|
|
27
|
+
export const RetrieveAgentScheduleType = {
|
|
28
|
+
Cron: "cron",
|
|
29
|
+
Once: "once",
|
|
30
|
+
Interval: "interval",
|
|
31
|
+
} as const;
|
|
32
|
+
/**
|
|
33
|
+
* Schedule type.
|
|
34
|
+
*/
|
|
35
|
+
export type RetrieveAgentScheduleType = ClosedEnum<
|
|
36
|
+
typeof RetrieveAgentScheduleType
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Schedule retrieved.
|
|
41
|
+
*/
|
|
42
|
+
export type RetrieveAgentScheduleResponseBody = {
|
|
43
|
+
/**
|
|
44
|
+
* ULID identifying this schedule.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
agentKey: string;
|
|
48
|
+
/**
|
|
49
|
+
* Pinned agent version. Omit to always run the agent's current active version.
|
|
50
|
+
*/
|
|
51
|
+
agentTag?: string | undefined;
|
|
52
|
+
created: Date;
|
|
53
|
+
/**
|
|
54
|
+
* ID of the API key that created the schedule.
|
|
55
|
+
*/
|
|
56
|
+
createdById: string;
|
|
57
|
+
/**
|
|
58
|
+
* Cron expression (6-field, seconds required), @every duration, @at RFC3339 timestamp, or a predefined descriptor like @hourly/@daily.
|
|
59
|
+
*/
|
|
60
|
+
expression: string;
|
|
61
|
+
/**
|
|
62
|
+
* Monotonic counter bumped when the schedule's firing cadence changes. Used by the consumer to skip stale in-flight triggers.
|
|
63
|
+
*/
|
|
64
|
+
generation: number;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the schedule is currently firing. once schedules flip to false automatically after firing.
|
|
67
|
+
*/
|
|
68
|
+
isActive: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Timestamp of the most recent firing, if any.
|
|
71
|
+
*/
|
|
72
|
+
lastTriggeredAt?: Date | undefined;
|
|
73
|
+
payload: components.PublicSchedulePayload;
|
|
74
|
+
/**
|
|
75
|
+
* Total firings since creation or last expression/type change.
|
|
76
|
+
*/
|
|
77
|
+
triggerCount: number;
|
|
78
|
+
/**
|
|
79
|
+
* Schedule type.
|
|
80
|
+
*/
|
|
81
|
+
type: RetrieveAgentScheduleType;
|
|
82
|
+
updated: Date;
|
|
83
|
+
workspaceId: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export type RetrieveAgentScheduleRequest$Outbound = {
|
|
88
|
+
agent_key: string;
|
|
89
|
+
schedule_id: string;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const RetrieveAgentScheduleRequest$outboundSchema: z.ZodType<
|
|
94
|
+
RetrieveAgentScheduleRequest$Outbound,
|
|
95
|
+
z.ZodTypeDef,
|
|
96
|
+
RetrieveAgentScheduleRequest
|
|
97
|
+
> = z.object({
|
|
98
|
+
agentKey: z.string(),
|
|
99
|
+
scheduleId: z.string(),
|
|
100
|
+
}).transform((v) => {
|
|
101
|
+
return remap$(v, {
|
|
102
|
+
agentKey: "agent_key",
|
|
103
|
+
scheduleId: "schedule_id",
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export function retrieveAgentScheduleRequestToJSON(
|
|
108
|
+
retrieveAgentScheduleRequest: RetrieveAgentScheduleRequest,
|
|
109
|
+
): string {
|
|
110
|
+
return JSON.stringify(
|
|
111
|
+
RetrieveAgentScheduleRequest$outboundSchema.parse(
|
|
112
|
+
retrieveAgentScheduleRequest,
|
|
113
|
+
),
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const RetrieveAgentScheduleType$inboundSchema: z.ZodNativeEnum<
|
|
119
|
+
typeof RetrieveAgentScheduleType
|
|
120
|
+
> = z.nativeEnum(RetrieveAgentScheduleType);
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const RetrieveAgentScheduleResponseBody$inboundSchema: z.ZodType<
|
|
124
|
+
RetrieveAgentScheduleResponseBody,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
unknown
|
|
127
|
+
> = z.object({
|
|
128
|
+
_id: z.string(),
|
|
129
|
+
agent_key: z.string(),
|
|
130
|
+
agent_tag: z.string().optional(),
|
|
131
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
132
|
+
created_by_id: z.string(),
|
|
133
|
+
expression: z.string(),
|
|
134
|
+
generation: z.number().int(),
|
|
135
|
+
is_active: z.boolean(),
|
|
136
|
+
last_triggered_at: z.string().datetime({ offset: true }).transform(v =>
|
|
137
|
+
new Date(v)
|
|
138
|
+
).optional(),
|
|
139
|
+
payload: components.PublicSchedulePayload$inboundSchema,
|
|
140
|
+
trigger_count: z.number().int(),
|
|
141
|
+
type: RetrieveAgentScheduleType$inboundSchema,
|
|
142
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
143
|
+
workspace_id: z.string(),
|
|
144
|
+
}).transform((v) => {
|
|
145
|
+
return remap$(v, {
|
|
146
|
+
"_id": "id",
|
|
147
|
+
"agent_key": "agentKey",
|
|
148
|
+
"agent_tag": "agentTag",
|
|
149
|
+
"created_by_id": "createdById",
|
|
150
|
+
"is_active": "isActive",
|
|
151
|
+
"last_triggered_at": "lastTriggeredAt",
|
|
152
|
+
"trigger_count": "triggerCount",
|
|
153
|
+
"workspace_id": "workspaceId",
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
export function retrieveAgentScheduleResponseBodyFromJSON(
|
|
158
|
+
jsonString: string,
|
|
159
|
+
): SafeParseResult<RetrieveAgentScheduleResponseBody, SDKValidationError> {
|
|
160
|
+
return safeParse(
|
|
161
|
+
jsonString,
|
|
162
|
+
(x) => RetrieveAgentScheduleResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
163
|
+
`Failed to parse 'RetrieveAgentScheduleResponseBody' from JSON`,
|
|
164
|
+
);
|
|
165
|
+
}
|
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-04-
|
|
1210
|
+
"2026-04-20T16:06:37.086Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-04-
|
|
1258
|
+
"2026-04-20T16:06:37.086Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-04-
|
|
1303
|
+
"2026-04-20T16:06:37.085Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-04-
|
|
1380
|
+
"2026-04-20T16:06:20.851Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
return remap$(v, {
|