You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Content of the snippet. Handlebars must be valid. Disallowed content: script tags with JS sources or non-JSON content, inline JS event handlers (e.g., onload="..."), and javascript: in href or src attributes (anchors and iframes).'
67
-
),
68
-
description: z.string().optional().describe("Description of the snippet"),
69
-
createdByUserId: z
70
-
.string()
71
-
.optional()
72
-
.describe(
73
-
"User ID (email) of the updater. If not provided, defaults to the project creator."
74
-
),
75
-
variables: z
76
-
.array(z.string())
77
-
.optional()
78
-
.describe(
79
-
"List of variable names used in the content with a Handlebars expression such as {{myField}}. Variable names are case-sensitive and should be simple identifiers (letters, numbers, underscores). To learn more about using Handlebars in Snippets, see Customizing Snippets with Variables."
// Identifier schema for get/update/delete operations
117
94
exportconstSnippetIdentifierSchema=z
118
95
.union([
119
96
z.string().describe("Snippet name"),
@@ -133,6 +110,24 @@ export type GetSnippetParams = z.infer<typeof GetSnippetParamsSchema>;
133
110
134
111
exportconstUpdateSnippetParamsSchema=z.object({
135
112
identifier: SnippetIdentifierSchema,
113
+
content: z
114
+
.string()
115
+
.describe(
116
+
'Content of the snippet. Handlebars must be valid. Disallowed content: script tags with JS sources or non-JSON content, inline JS event handlers (e.g., onload="..."), and javascript: in href or src attributes (anchors and iframes).'
117
+
),
118
+
description: z.string().optional().describe("Description of the snippet"),
119
+
createdByUserId: z
120
+
.string()
121
+
.optional()
122
+
.describe(
123
+
"User ID (email) of the updater. If not provided, defaults to the project creator."
124
+
),
125
+
variables: z
126
+
.array(z.string())
127
+
.optional()
128
+
.describe(
129
+
"List of variable names used in the content with a Handlebars expression such as {{myField}}. Variable names are case-sensitive and should be simple identifiers (letters, numbers, underscores). To learn more about using Handlebars in Snippets, see Customizing Snippets with Variables."
0 commit comments