Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/entities/entities-plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"monaco-editor": "^0.52.2",
"vue": ">= 3.3.13 < 4",
"vue-router": "^4.4.5",
"zod": "^4.0.17"
"zod": ">= 4.1.3 < 5"
},
"devDependencies": {
"@dagrejs/dagre": "^1.1.5",
Expand All @@ -54,7 +54,7 @@
"monaco-editor": "^0.52.2",
"vue": "^3.5.13",
"vue-router": "^4.4.5",
"zod": "^4.0.17"
"zod": "^4.1.12"
},
"scripts": {
"dev": "cross-env USE_SANDBOX=true vite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ConfigNodeBaseGuard = z
}
})

const CallNodeSchema = ConfigNodeBaseSchema.extend({
const CallNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('call'),
method: HttpMethodSchema.nullish(),
ssl_server_name: z.string().nullish(),
Expand All @@ -95,36 +95,36 @@ const CallNodeSchema = ConfigNodeBaseSchema.extend({
.nullish(),
}).strict()

const ExitNodeSchema = ConfigNodeBaseSchema.extend({
const ExitNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('exit'),
status: z.union([z.number(), z.string()]).nullish(),
warn_headers_sent: z.boolean().nullish(),
output: z.never().optional(),
outputs: z.never().optional(),
}).strict()

const JqNodeSchema = ConfigNodeBaseSchema.extend({
const JqNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('jq'),
jq: z.string().nullish(),
outputs: z.never().optional(),
}).strict()

const PropertyNodeSchema = ConfigNodeBaseSchema.extend({
const PropertyNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('property'),
content_type: z.string().nullish(),
property: z.string().nullish(),
inputs: z.never().optional(),
outputs: z.never().optional(),
}).strict()

const StaticNodeSchema = ConfigNodeBaseSchema.extend({
const StaticNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('static'),
values: z.record(z.string(), z.unknown()).nullish(),
input: z.never().optional(),
inputs: z.never().optional(),
}).strict()

const CacheNodeSchema = ConfigNodeBaseSchema.extend({
const CacheNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('cache'),
bypass_on_error: z.boolean().nullish(),
inputs: z
Expand Down Expand Up @@ -152,7 +152,7 @@ const CacheNodeSchema = ConfigNodeBaseSchema.extend({
* Supports conditional execution with `then` and `else` branches.
* Each branch contains an array of node names to execute.
*/
export const BranchNodeSchema = ConfigNodeBaseSchema.extend({
export const BranchNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('branch'),
then: z.array(LooseNodeNameSchema).nullish(),
else: z.array(LooseNodeNameSchema).nullish(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const ConfigNodeBaseGuard = z
}
})

export const CallNodeSchema = ConfigNodeBaseSchema.extend({
export const CallNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('call'),
/**
* A string representing an HTTP method, such as GET, POST, PUT, or DELETE.
Expand Down Expand Up @@ -154,7 +154,7 @@ export const CallNodeSchema = ConfigNodeBaseSchema.extend({
/** Make an external HTTP request. */
export type CallNode = z.infer<typeof CallNodeSchema>

export const ExitNodeSchema = ConfigNodeBaseSchema.extend({
export const ExitNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('exit'),
/**
* HTTP status code.
Expand All @@ -170,7 +170,7 @@ export const ExitNodeSchema = ConfigNodeBaseSchema.extend({
/** Terminate the request and send a response to the client. */
export type ExitNode = z.infer<typeof ExitNodeSchema>

export const JqNodeSchema = ConfigNodeBaseSchema.extend({
export const JqNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('jq'),
/**
* The jq filter text. Refer to https://jqlang.org/manual/ for full documentation.
Expand All @@ -183,7 +183,7 @@ export const JqNodeSchema = ConfigNodeBaseSchema.extend({
/** Process data using `jq` syntax. */
export type JqNode = z.infer<typeof JqNodeSchema>

export const PropertyNodeSchema = ConfigNodeBaseSchema.extend({
export const PropertyNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('property'),
/**
* The expected MIME type of the property value. When set to `application/json`,
Expand All @@ -202,7 +202,7 @@ export const PropertyNodeSchema = ConfigNodeBaseSchema.extend({
/** Get or set a property. */
export type PropertyNode = z.infer<typeof PropertyNodeSchema>

export const StaticNodeSchema = ConfigNodeBaseSchema.extend({
export const StaticNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('static'),
/** An object with string keys and free-form values. */
values: z.record(z.string(), z.unknown()),
Expand All @@ -213,7 +213,7 @@ export const StaticNodeSchema = ConfigNodeBaseSchema.extend({
/** Produce reusable outputs from statically-configured values. */
export type StaticNode = z.infer<typeof StaticNodeSchema>

export const CacheNodeSchema = ConfigNodeBaseSchema.extend({
export const CacheNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('cache'),
/** When true, skip cache errors and continue execution. */
bypass_on_error: z.boolean().nullish(),
Expand Down Expand Up @@ -241,7 +241,7 @@ export const CacheNodeSchema = ConfigNodeBaseSchema.extend({
/** Fetch data from configured cache resources. */
export type CacheNode = z.infer<typeof CacheNodeSchema>

export const BranchNodeSchema = ConfigNodeBaseSchema.extend({
export const BranchNodeSchema = ConfigNodeBaseSchema.safeExtend({
type: z.literal('branch'),
then: z.array(NodeNameSchema).nullish(),
else: z.array(NodeNameSchema).nullish(),
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading