@orq-ai/node 4.8.0-rc.7 → 4.8.0-rc.9
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 +78 -39
- package/funcs/guardrailRulesCreate.d.ts +17 -0
- package/funcs/guardrailRulesCreate.d.ts.map +1 -0
- package/funcs/guardrailRulesCreate.js +114 -0
- package/funcs/guardrailRulesCreate.js.map +1 -0
- package/funcs/guardrailRulesDelete.d.ts +17 -0
- package/funcs/guardrailRulesDelete.d.ts.map +1 -0
- package/funcs/guardrailRulesDelete.js +117 -0
- package/funcs/guardrailRulesDelete.js.map +1 -0
- package/funcs/guardrailRulesGet.d.ts +17 -0
- package/funcs/guardrailRulesGet.d.ts.map +1 -0
- package/funcs/guardrailRulesGet.js +116 -0
- package/funcs/guardrailRulesGet.js.map +1 -0
- package/funcs/guardrailRulesList.d.ts +17 -0
- package/funcs/guardrailRulesList.d.ts.map +1 -0
- package/funcs/guardrailRulesList.js +120 -0
- package/funcs/guardrailRulesList.js.map +1 -0
- package/funcs/guardrailRulesUpdate.d.ts +17 -0
- package/funcs/guardrailRulesUpdate.d.ts.map +1 -0
- package/funcs/guardrailRulesUpdate.js +117 -0
- package/funcs/guardrailRulesUpdate.js.map +1 -0
- package/funcs/policiesCreate.d.ts +17 -0
- package/funcs/policiesCreate.d.ts.map +1 -0
- package/funcs/policiesCreate.js +114 -0
- package/funcs/policiesCreate.js.map +1 -0
- package/funcs/policiesDelete.d.ts +17 -0
- package/funcs/policiesDelete.d.ts.map +1 -0
- package/funcs/policiesDelete.js +120 -0
- package/funcs/policiesDelete.js.map +1 -0
- package/funcs/policiesGet.d.ts +17 -0
- package/funcs/policiesGet.d.ts.map +1 -0
- package/funcs/policiesGet.js +119 -0
- package/funcs/policiesGet.js.map +1 -0
- package/funcs/policiesList.d.ts +17 -0
- package/funcs/policiesList.d.ts.map +1 -0
- package/funcs/policiesList.js +120 -0
- package/funcs/policiesList.js.map +1 -0
- package/funcs/policiesUpdate.d.ts +17 -0
- package/funcs/policiesUpdate.d.ts.map +1 -0
- package/funcs/policiesUpdate.js +120 -0
- package/funcs/policiesUpdate.js.map +1 -0
- package/funcs/routingRulesCreate.d.ts +17 -0
- package/funcs/routingRulesCreate.d.ts.map +1 -0
- package/funcs/routingRulesCreate.js +114 -0
- package/funcs/routingRulesCreate.js.map +1 -0
- package/funcs/routingRulesDelete.d.ts +17 -0
- package/funcs/routingRulesDelete.d.ts.map +1 -0
- package/funcs/routingRulesDelete.js +120 -0
- package/funcs/routingRulesDelete.js.map +1 -0
- package/funcs/routingRulesGet.d.ts +17 -0
- package/funcs/routingRulesGet.d.ts.map +1 -0
- package/funcs/routingRulesGet.js +119 -0
- package/funcs/routingRulesGet.js.map +1 -0
- package/funcs/routingRulesList.d.ts +17 -0
- package/funcs/routingRulesList.d.ts.map +1 -0
- package/funcs/routingRulesList.js +120 -0
- package/funcs/routingRulesList.js.map +1 -0
- package/funcs/routingRulesUpdate.d.ts +17 -0
- package/funcs/routingRulesUpdate.d.ts.map +1 -0
- package/funcs/routingRulesUpdate.js +120 -0
- package/funcs/routingRulesUpdate.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/agentstartedstreamingevent.d.ts +4 -4
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +5 -5
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/budgetlimit.d.ts +41 -0
- package/models/components/budgetlimit.d.ts.map +1 -0
- package/models/components/budgetlimit.js +81 -0
- package/models/components/budgetlimit.js.map +1 -0
- package/models/components/evaluatorref.d.ts +34 -0
- package/models/components/evaluatorref.d.ts.map +1 -0
- package/models/components/evaluatorref.js +86 -0
- package/models/components/evaluatorref.js.map +1 -0
- package/models/components/expression.d.ts +23 -0
- package/models/components/expression.d.ts.map +1 -0
- package/models/components/expression.js +60 -0
- package/models/components/expression.js.map +1 -0
- package/models/components/guardrailref.d.ts +30 -0
- package/models/components/guardrailref.d.ts.map +1 -0
- package/models/components/guardrailref.js +79 -0
- package/models/components/guardrailref.js.map +1 -0
- package/models/components/guardrailruledocument.d.ts +23 -0
- package/models/components/guardrailruledocument.d.ts.map +1 -0
- package/models/components/guardrailruledocument.js +74 -0
- package/models/components/guardrailruledocument.js.map +1 -0
- package/models/components/index.d.ts +13 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +13 -0
- package/models/components/index.js.map +1 -1
- package/models/components/limits.d.ts +24 -0
- package/models/components/limits.d.ts.map +1 -0
- package/models/components/limits.js +66 -0
- package/models/components/limits.js.map +1 -0
- package/models/components/modelref.d.ts +21 -0
- package/models/components/modelref.d.ts.map +1 -0
- package/models/components/modelref.js +71 -0
- package/models/components/modelref.js.map +1 -0
- package/models/components/modelsconfig.d.ts +31 -0
- package/models/components/modelsconfig.d.ts.map +1 -0
- package/models/components/modelsconfig.js +70 -0
- package/models/components/modelsconfig.js.map +1 -0
- package/models/components/policydocument.d.ts +28 -0
- package/models/components/policydocument.d.ts.map +1 -0
- package/models/components/policydocument.js +81 -0
- package/models/components/policydocument.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/requestlimit.d.ts +31 -0
- package/models/components/requestlimit.d.ts.map +1 -0
- package/models/components/requestlimit.js +70 -0
- package/models/components/requestlimit.js.map +1 -0
- package/models/components/retryconfig.d.ts +19 -0
- package/models/components/retryconfig.d.ts.map +1 -0
- package/models/components/retryconfig.js +69 -0
- package/models/components/retryconfig.js.map +1 -0
- package/models/components/routingruledocument.d.ts +23 -0
- package/models/components/routingruledocument.d.ts.map +1 -0
- package/models/components/routingruledocument.js +75 -0
- package/models/components/routingruledocument.js.map +1 -0
- package/models/components/tokenlimit.d.ts +31 -0
- package/models/components/tokenlimit.d.ts.map +1 -0
- package/models/components/tokenlimit.js +70 -0
- package/models/components/tokenlimit.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.d.ts +42 -42
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +64 -63
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevals.js +6 -6
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/getv2humanevalsid.js +6 -6
- package/models/operations/guardrailrulecreate.d.ts +50 -0
- package/models/operations/guardrailrulecreate.d.ts.map +1 -0
- package/models/operations/guardrailrulecreate.js +94 -0
- package/models/operations/guardrailrulecreate.js.map +1 -0
- package/models/operations/guardrailruledelete.d.ts +15 -0
- package/models/operations/guardrailruledelete.d.ts.map +1 -0
- package/models/operations/guardrailruledelete.js +54 -0
- package/models/operations/guardrailruledelete.js.map +1 -0
- package/models/operations/guardrailruleget.d.ts +38 -0
- package/models/operations/guardrailruleget.d.ts.map +1 -0
- package/models/operations/guardrailruleget.js +86 -0
- package/models/operations/guardrailruleget.js.map +1 -0
- package/models/operations/guardrailrulelist.d.ts +41 -0
- package/models/operations/guardrailrulelist.d.ts.map +1 -0
- package/models/operations/guardrailrulelist.js +75 -0
- package/models/operations/guardrailrulelist.js.map +1 -0
- package/models/operations/guardrailruleupdate.d.ts +60 -0
- package/models/operations/guardrailruleupdate.d.ts.map +1 -0
- package/models/operations/guardrailruleupdate.js +105 -0
- package/models/operations/guardrailruleupdate.js.map +1 -0
- package/models/operations/index.d.ts +15 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +15 -0
- package/models/operations/index.js.map +1 -1
- 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/patchv2humanevalsid.js +12 -12
- package/models/operations/policycreate.d.ts +57 -0
- package/models/operations/policycreate.d.ts.map +1 -0
- package/models/operations/policycreate.js +103 -0
- package/models/operations/policycreate.js.map +1 -0
- package/models/operations/policydelete.d.ts +15 -0
- package/models/operations/policydelete.d.ts.map +1 -0
- package/models/operations/policydelete.js +54 -0
- package/models/operations/policydelete.js.map +1 -0
- package/models/operations/policyget.d.ts +41 -0
- package/models/operations/policyget.d.ts.map +1 -0
- package/models/operations/policyget.js +91 -0
- package/models/operations/policyget.js.map +1 -0
- package/models/operations/policylist.d.ts +41 -0
- package/models/operations/policylist.d.ts.map +1 -0
- package/models/operations/policylist.js +75 -0
- package/models/operations/policylist.js.map +1 -0
- package/models/operations/policyupdate.d.ts +67 -0
- package/models/operations/policyupdate.d.ts.map +1 -0
- package/models/operations/policyupdate.js +114 -0
- package/models/operations/policyupdate.js.map +1 -0
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevals.js +12 -12
- package/models/operations/postv2humanevalsets.js +2 -2
- 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 +50 -0
- package/models/operations/routingrulecreate.d.ts.map +1 -0
- package/models/operations/routingrulecreate.js +94 -0
- package/models/operations/routingrulecreate.js.map +1 -0
- package/models/operations/routingruledelete.d.ts +15 -0
- package/models/operations/routingruledelete.d.ts.map +1 -0
- package/models/operations/routingruledelete.js +54 -0
- package/models/operations/routingruledelete.js.map +1 -0
- package/models/operations/routingruleget.d.ts +38 -0
- package/models/operations/routingruleget.d.ts.map +1 -0
- package/models/operations/routingruleget.js +86 -0
- package/models/operations/routingruleget.js.map +1 -0
- package/models/operations/routingrulelist.d.ts +41 -0
- package/models/operations/routingrulelist.d.ts.map +1 -0
- package/models/operations/routingrulelist.js +75 -0
- package/models/operations/routingrulelist.js.map +1 -0
- package/models/operations/routingruleupdate.d.ts +60 -0
- package/models/operations/routingruleupdate.d.ts.map +1 -0
- package/models/operations/routingruleupdate.js +106 -0
- package/models/operations/routingruleupdate.js.map +1 -0
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- 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.d.ts +69 -0
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +92 -19
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/guardrailrules.d.ts +40 -0
- package/sdk/guardrailrules.d.ts.map +1 -0
- package/sdk/guardrailrules.js +62 -0
- package/sdk/guardrailrules.js.map +1 -0
- package/sdk/policies.d.ts +40 -0
- package/sdk/policies.d.ts.map +1 -0
- package/sdk/policies.js +62 -0
- package/sdk/policies.js.map +1 -0
- package/sdk/routingrules.d.ts +40 -0
- package/sdk/routingrules.d.ts.map +1 -0
- package/sdk/routingrules.js +62 -0
- package/sdk/routingrules.js.map +1 -0
- package/sdk/sdk.d.ts +9 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +12 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/guardrailRulesCreate.ts +161 -0
- package/src/funcs/guardrailRulesDelete.ts +170 -0
- package/src/funcs/guardrailRulesGet.ts +168 -0
- package/src/funcs/guardrailRulesList.ts +170 -0
- package/src/funcs/guardrailRulesUpdate.ts +170 -0
- package/src/funcs/policiesCreate.ts +160 -0
- package/src/funcs/policiesDelete.ts +166 -0
- package/src/funcs/policiesGet.ts +165 -0
- package/src/funcs/policiesList.ts +168 -0
- package/src/funcs/policiesUpdate.ts +166 -0
- package/src/funcs/routingRulesCreate.ts +161 -0
- package/src/funcs/routingRulesDelete.ts +166 -0
- package/src/funcs/routingRulesGet.ts +165 -0
- package/src/funcs/routingRulesList.ts +168 -0
- package/src/funcs/routingRulesUpdate.ts +166 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +9 -6
- package/src/models/components/budgetlimit.ts +83 -0
- package/src/models/components/evaluatorref.ts +89 -0
- package/src/models/components/expression.ts +51 -0
- package/src/models/components/guardrailref.ts +75 -0
- package/src/models/components/guardrailruledocument.ts +66 -0
- package/src/models/components/index.ts +13 -0
- package/src/models/components/limits.ts +70 -0
- package/src/models/components/modelref.ts +64 -0
- package/src/models/components/modelsconfig.ts +73 -0
- package/src/models/components/policydocument.ts +76 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/requestlimit.ts +69 -0
- package/src/models/components/retryconfig.ts +60 -0
- package/src/models/components/routingruledocument.ts +67 -0
- package/src/models/components/tokenlimit.ts +69 -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 +213 -160
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevals.ts +6 -6
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/getv2humanevalsid.ts +6 -6
- package/src/models/operations/guardrailrulecreate.ts +124 -0
- package/src/models/operations/guardrailruledelete.ts +39 -0
- package/src/models/operations/guardrailruleget.ts +102 -0
- package/src/models/operations/guardrailrulelist.ts +94 -0
- package/src/models/operations/guardrailruleupdate.ts +153 -0
- package/src/models/operations/index.ts +15 -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/patchv2humanevalsid.ts +12 -12
- package/src/models/operations/policycreate.ts +138 -0
- package/src/models/operations/policydelete.ts +39 -0
- package/src/models/operations/policyget.ts +110 -0
- package/src/models/operations/policylist.ts +94 -0
- package/src/models/operations/policyupdate.ts +167 -0
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevals.ts +12 -12
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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 +124 -0
- package/src/models/operations/routingruledelete.ts +39 -0
- package/src/models/operations/routingruleget.ts +102 -0
- package/src/models/operations/routingrulelist.ts +94 -0
- package/src/models/operations/routingruleupdate.ts +154 -0
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- 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 +178 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/guardrailrules.ts +99 -0
- package/src/sdk/policies.ts +99 -0
- package/src/sdk/routingrules.ts +99 -0
- package/src/sdk/sdk.ts +18 -0
|
@@ -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_01KP3FTGBQ7XHYF9XW0XQEY3ZY"),
|
|
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("01KP3FTGBH0P2KSKB2ZAW9KJNR"),
|
|
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_01KP3FTGBC3XN75CTNGFZHH5KJ"),
|
|
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_01KP3FTGB4X1QCAHZ2ZV9B6BSS"),
|
|
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_01KP3FTGAW7JD31J0JEKR66ST8"),
|
|
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_01KP3FTGARZES0JACQZG22976K"),
|
|
2439
2439
|
path: z.string(),
|
|
2440
2440
|
key: z.string(),
|
|
2441
2441
|
display_name: z.string().optional(),
|
|
@@ -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_01KP3FTG8XG2SS3A2EPV5BD9MP"),
|
|
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("01KP3FTG8R5ANYMPVMCAWAMP0P"),
|
|
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_01KP3FTG8MHE8J481GVHM9V93M"),
|
|
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_01KP3FTG88TR39CVVZJCXG5S6N"),
|
|
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_01KP3FTG81DG1EFF0S0G3EF065"),
|
|
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_01KP3FTG7VW01ZYXGSKTABFQ8B"),
|
|
1301
1301
|
path: z.string(),
|
|
1302
1302
|
key: z.string(),
|
|
1303
1303
|
display_name: z.string().optional(),
|
|
@@ -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-13T13:17:03.347Z"),
|
|
1044
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
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-13T13:17:03.347Z"),
|
|
1224
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
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-13T13:17:03.347Z"),
|
|
2054
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
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-13T13:17:03.347Z"),
|
|
2236
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
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-13T13:17:03.347Z"),
|
|
2414
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
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-13T13:17:03.347Z"),
|
|
2604
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
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-13T13:17:03.347Z"),
|
|
2970
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
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-13T13:17:03.347Z"),
|
|
3179
|
+
updated: z.string().default("2026-04-13T13:17:03.347Z"),
|
|
3180
3180
|
guardrail_config: z.nullable(
|
|
3181
3181
|
z.union([
|
|
3182
3182
|
z.lazy(() =>
|
|
@@ -374,7 +374,7 @@ export const ResponseBody6$inboundSchema: z.ZodType<
|
|
|
374
374
|
> = z.object({
|
|
375
375
|
type: z.literal("text"),
|
|
376
376
|
id: z.string(),
|
|
377
|
-
key: z.string().default("
|
|
377
|
+
key: z.string().default("orq_01kp3ftgwq"),
|
|
378
378
|
display_name: z.string(),
|
|
379
379
|
description: z.string(),
|
|
380
380
|
domain_id: z.string().optional(),
|
|
@@ -440,7 +440,7 @@ export const ResponseBody5$inboundSchema: z.ZodType<
|
|
|
440
440
|
type: z.literal("single_select"),
|
|
441
441
|
options: z.array(z.lazy(() => ResponseBodyOptions$inboundSchema)),
|
|
442
442
|
id: z.string(),
|
|
443
|
-
key: z.string().default("
|
|
443
|
+
key: z.string().default("orq_01kp3ftgwq"),
|
|
444
444
|
display_name: z.string(),
|
|
445
445
|
description: z.string(),
|
|
446
446
|
domain_id: z.string().optional(),
|
|
@@ -510,7 +510,7 @@ export const ResponseBody4$inboundSchema: z.ZodType<
|
|
|
510
510
|
z.lazy(() => GetV2HumanEvalsResponseBodyOptions$inboundSchema),
|
|
511
511
|
),
|
|
512
512
|
id: z.string(),
|
|
513
|
-
key: z.string().default("
|
|
513
|
+
key: z.string().default("orq_01kp3ftgwn"),
|
|
514
514
|
display_name: z.string(),
|
|
515
515
|
description: z.string(),
|
|
516
516
|
domain_id: z.string().optional(),
|
|
@@ -568,7 +568,7 @@ export const ResponseBody3$inboundSchema: z.ZodType<
|
|
|
568
568
|
type: z.literal("range"),
|
|
569
569
|
config: z.lazy(() => ResponseBodyConfig$inboundSchema),
|
|
570
570
|
id: z.string(),
|
|
571
|
-
key: z.string().default("
|
|
571
|
+
key: z.string().default("orq_01kp3ftgwk"),
|
|
572
572
|
display_name: z.string(),
|
|
573
573
|
description: z.string(),
|
|
574
574
|
domain_id: z.string().optional(),
|
|
@@ -605,7 +605,7 @@ export const ResponseBody2$inboundSchema: z.ZodType<
|
|
|
605
605
|
> = z.object({
|
|
606
606
|
type: z.literal("correction"),
|
|
607
607
|
id: z.string(),
|
|
608
|
-
key: z.string().default("
|
|
608
|
+
key: z.string().default("orq_01kp3ftgwj"),
|
|
609
609
|
display_name: z.string(),
|
|
610
610
|
description: z.string(),
|
|
611
611
|
domain_id: z.string().optional(),
|
|
@@ -642,7 +642,7 @@ export const ResponseBody1$inboundSchema: z.ZodType<
|
|
|
642
642
|
> = z.object({
|
|
643
643
|
type: z.literal("boolean"),
|
|
644
644
|
id: z.string(),
|
|
645
|
-
key: z.string().default("
|
|
645
|
+
key: z.string().default("orq_01kp3ftgwg"),
|
|
646
646
|
display_name: z.string(),
|
|
647
647
|
description: z.string(),
|
|
648
648
|
domain_id: z.string().optional(),
|
|
@@ -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-13T13:17:01.083Z",
|
|
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-13T13:17:01.083Z",
|
|
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-13T13:17:01.083Z",
|
|
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-13T13:17:01.083Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -375,7 +375,7 @@ export const GetV2HumanEvalsIdResponseBody6$inboundSchema: z.ZodType<
|
|
|
375
375
|
> = z.object({
|
|
376
376
|
type: z.literal("text"),
|
|
377
377
|
id: z.string(),
|
|
378
|
-
key: z.string().default("
|
|
378
|
+
key: z.string().default("orq_01kp3ftgwx"),
|
|
379
379
|
display_name: z.string(),
|
|
380
380
|
description: z.string(),
|
|
381
381
|
domain_id: z.string().optional(),
|
|
@@ -450,7 +450,7 @@ export const GetV2HumanEvalsIdResponseBody5$inboundSchema: z.ZodType<
|
|
|
450
450
|
z.lazy(() => GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema),
|
|
451
451
|
),
|
|
452
452
|
id: z.string(),
|
|
453
|
-
key: z.string().default("
|
|
453
|
+
key: z.string().default("orq_01kp3ftgww"),
|
|
454
454
|
display_name: z.string(),
|
|
455
455
|
description: z.string(),
|
|
456
456
|
domain_id: z.string().optional(),
|
|
@@ -520,7 +520,7 @@ export const GetV2HumanEvalsIdResponseBody4$inboundSchema: z.ZodType<
|
|
|
520
520
|
z.lazy(() => GetV2HumanEvalsIdResponseBodyOptions$inboundSchema),
|
|
521
521
|
),
|
|
522
522
|
id: z.string(),
|
|
523
|
-
key: z.string().default("
|
|
523
|
+
key: z.string().default("orq_01kp3ftgwv"),
|
|
524
524
|
display_name: z.string(),
|
|
525
525
|
description: z.string(),
|
|
526
526
|
domain_id: z.string().optional(),
|
|
@@ -579,7 +579,7 @@ export const GetV2HumanEvalsIdResponseBody3$inboundSchema: z.ZodType<
|
|
|
579
579
|
type: z.literal("range"),
|
|
580
580
|
config: z.lazy(() => GetV2HumanEvalsIdResponseBodyConfig$inboundSchema),
|
|
581
581
|
id: z.string(),
|
|
582
|
-
key: z.string().default("
|
|
582
|
+
key: z.string().default("orq_01kp3ftgwt"),
|
|
583
583
|
display_name: z.string(),
|
|
584
584
|
description: z.string(),
|
|
585
585
|
domain_id: z.string().optional(),
|
|
@@ -616,7 +616,7 @@ export const GetV2HumanEvalsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
616
616
|
> = z.object({
|
|
617
617
|
type: z.literal("correction"),
|
|
618
618
|
id: z.string(),
|
|
619
|
-
key: z.string().default("
|
|
619
|
+
key: z.string().default("orq_01kp3ftgws"),
|
|
620
620
|
display_name: z.string(),
|
|
621
621
|
description: z.string(),
|
|
622
622
|
domain_id: z.string().optional(),
|
|
@@ -653,7 +653,7 @@ export const GetV2HumanEvalsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
653
653
|
> = z.object({
|
|
654
654
|
type: z.literal("boolean"),
|
|
655
655
|
id: z.string(),
|
|
656
|
-
key: z.string().default("
|
|
656
|
+
key: z.string().default("orq_01kp3ftgwr"),
|
|
657
657
|
display_name: z.string(),
|
|
658
658
|
description: z.string(),
|
|
659
659
|
domain_id: z.string().optional(),
|
|
@@ -0,0 +1,124 @@
|
|
|
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 GuardrailRuleCreateRequestBody = {
|
|
13
|
+
description?: string | undefined;
|
|
14
|
+
displayName: string;
|
|
15
|
+
enabled?: boolean | undefined;
|
|
16
|
+
expression?: components.Expression | undefined;
|
|
17
|
+
guardrails?: Array<components.GuardrailRef> | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Optional project ID. If null/omitted, the entity is global (workspace-wide).
|
|
20
|
+
*/
|
|
21
|
+
projectId?: string | undefined;
|
|
22
|
+
timeout?: number | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Guardrail rule created successfully
|
|
27
|
+
*/
|
|
28
|
+
export type GuardrailRuleCreateResponseBody = {
|
|
29
|
+
id: string;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
createdById: string;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
displayName: string;
|
|
34
|
+
enabled: boolean;
|
|
35
|
+
expression?: components.Expression | undefined;
|
|
36
|
+
guardrails?: Array<components.GuardrailRef> | null | undefined;
|
|
37
|
+
projectId: string;
|
|
38
|
+
timeout: number;
|
|
39
|
+
updatedAt: Date;
|
|
40
|
+
updatedById: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type GuardrailRuleCreateRequestBody$Outbound = {
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
display_name: string;
|
|
47
|
+
enabled?: boolean | undefined;
|
|
48
|
+
expression?: components.Expression$Outbound | undefined;
|
|
49
|
+
guardrails?: Array<components.GuardrailRef$Outbound> | null | undefined;
|
|
50
|
+
project_id?: string | undefined;
|
|
51
|
+
timeout?: number | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const GuardrailRuleCreateRequestBody$outboundSchema: z.ZodType<
|
|
56
|
+
GuardrailRuleCreateRequestBody$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
GuardrailRuleCreateRequestBody
|
|
59
|
+
> = z.object({
|
|
60
|
+
description: z.string().optional(),
|
|
61
|
+
displayName: z.string(),
|
|
62
|
+
enabled: z.boolean().optional(),
|
|
63
|
+
expression: components.Expression$outboundSchema.optional(),
|
|
64
|
+
guardrails: z.nullable(z.array(components.GuardrailRef$outboundSchema))
|
|
65
|
+
.optional(),
|
|
66
|
+
projectId: z.string().optional(),
|
|
67
|
+
timeout: z.number().int().optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
displayName: "display_name",
|
|
71
|
+
projectId: "project_id",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function guardrailRuleCreateRequestBodyToJSON(
|
|
76
|
+
guardrailRuleCreateRequestBody: GuardrailRuleCreateRequestBody,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
GuardrailRuleCreateRequestBody$outboundSchema.parse(
|
|
80
|
+
guardrailRuleCreateRequestBody,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const GuardrailRuleCreateResponseBody$inboundSchema: z.ZodType<
|
|
87
|
+
GuardrailRuleCreateResponseBody,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
unknown
|
|
90
|
+
> = z.object({
|
|
91
|
+
_id: z.string(),
|
|
92
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
93
|
+
created_by_id: z.string(),
|
|
94
|
+
description: z.string().optional(),
|
|
95
|
+
display_name: z.string(),
|
|
96
|
+
enabled: z.boolean(),
|
|
97
|
+
expression: components.Expression$inboundSchema.optional(),
|
|
98
|
+
guardrails: z.nullable(z.array(components.GuardrailRef$inboundSchema))
|
|
99
|
+
.optional(),
|
|
100
|
+
project_id: z.string(),
|
|
101
|
+
timeout: z.number().int(),
|
|
102
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
103
|
+
updated_by_id: z.string(),
|
|
104
|
+
}).transform((v) => {
|
|
105
|
+
return remap$(v, {
|
|
106
|
+
"_id": "id",
|
|
107
|
+
"created_at": "createdAt",
|
|
108
|
+
"created_by_id": "createdById",
|
|
109
|
+
"display_name": "displayName",
|
|
110
|
+
"project_id": "projectId",
|
|
111
|
+
"updated_at": "updatedAt",
|
|
112
|
+
"updated_by_id": "updatedById",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export function guardrailRuleCreateResponseBodyFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<GuardrailRuleCreateResponseBody, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => GuardrailRuleCreateResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'GuardrailRuleCreateResponseBody' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 GuardrailRuleDeleteRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The ID of the guardrail rule
|
|
11
|
+
*/
|
|
12
|
+
guardrailRuleId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type GuardrailRuleDeleteRequest$Outbound = {
|
|
17
|
+
guardrail_rule_id: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const GuardrailRuleDeleteRequest$outboundSchema: z.ZodType<
|
|
22
|
+
GuardrailRuleDeleteRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
GuardrailRuleDeleteRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
guardrailRuleId: z.string(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
guardrailRuleId: "guardrail_rule_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function guardrailRuleDeleteRequestToJSON(
|
|
34
|
+
guardrailRuleDeleteRequest: GuardrailRuleDeleteRequest,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
GuardrailRuleDeleteRequest$outboundSchema.parse(guardrailRuleDeleteRequest),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 GuardrailRuleGetRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the guardrail rule
|
|
15
|
+
*/
|
|
16
|
+
guardrailRuleId: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Guardrail rule retrieved successfully
|
|
21
|
+
*/
|
|
22
|
+
export type GuardrailRuleGetResponseBody = {
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
createdById: string;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
displayName: string;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
expression?: components.Expression | undefined;
|
|
30
|
+
guardrails?: Array<components.GuardrailRef> | null | undefined;
|
|
31
|
+
projectId: string;
|
|
32
|
+
timeout: number;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
updatedById: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type GuardrailRuleGetRequest$Outbound = {
|
|
39
|
+
guardrail_rule_id: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const GuardrailRuleGetRequest$outboundSchema: z.ZodType<
|
|
44
|
+
GuardrailRuleGetRequest$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
GuardrailRuleGetRequest
|
|
47
|
+
> = z.object({
|
|
48
|
+
guardrailRuleId: z.string(),
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
guardrailRuleId: "guardrail_rule_id",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function guardrailRuleGetRequestToJSON(
|
|
56
|
+
guardrailRuleGetRequest: GuardrailRuleGetRequest,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
GuardrailRuleGetRequest$outboundSchema.parse(guardrailRuleGetRequest),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const GuardrailRuleGetResponseBody$inboundSchema: z.ZodType<
|
|
65
|
+
GuardrailRuleGetResponseBody,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({
|
|
69
|
+
_id: z.string(),
|
|
70
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
71
|
+
created_by_id: z.string(),
|
|
72
|
+
description: z.string().optional(),
|
|
73
|
+
display_name: z.string(),
|
|
74
|
+
enabled: z.boolean(),
|
|
75
|
+
expression: components.Expression$inboundSchema.optional(),
|
|
76
|
+
guardrails: z.nullable(z.array(components.GuardrailRef$inboundSchema))
|
|
77
|
+
.optional(),
|
|
78
|
+
project_id: z.string(),
|
|
79
|
+
timeout: z.number().int(),
|
|
80
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
81
|
+
updated_by_id: z.string(),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
"_id": "id",
|
|
85
|
+
"created_at": "createdAt",
|
|
86
|
+
"created_by_id": "createdById",
|
|
87
|
+
"display_name": "displayName",
|
|
88
|
+
"project_id": "projectId",
|
|
89
|
+
"updated_at": "updatedAt",
|
|
90
|
+
"updated_by_id": "updatedById",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
export function guardrailRuleGetResponseBodyFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<GuardrailRuleGetResponseBody, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => GuardrailRuleGetResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'GuardrailRuleGetResponseBody' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|