:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(workflows): accept uuidt ids in the node push step schema (#128020)
Chris Shinebf4a310e7a42
diff --git a/nodejs/src/cdp/schema/hogflow.test.ts b/nodejs/src/cdp/schema/hogflow.test.tsindex 409af74b6dac..bbdef2bbd7ad 100644--- a/nodejs/src/cdp/schema/hogflow.test.ts+++ b/nodejs/src/cdp/schema/hogflow.test.ts@@ -25,6 +25,23 @@ describe('hogflow schema', () => {})})+ describe('function_push', () => {+ it('accepts a UUIDT message category id', () => {+ const result = HogFlowActionSchema.safeParse({+ ...commonActionFields,+ type: 'function_push',+ config: {+ template_id: 'template-native-push',+ message_category_id: '0192a1b2-c3d4-0000-8e5f-0a1b2c3d4e5f',+ template_uuid: '0192a1b2-c3d4-0000-8e5f-0a1b2c3d4e60',+ inputs: {},+ },+ })++ expect(result).toMatchObject({ success: true })+ })+ })+describe('wait_until_condition events', () => {const baseConfig = {condition: { filters: {} },diff --git a/nodejs/src/cdp/schema/hogflow.ts b/nodejs/src/cdp/schema/hogflow.tsindex 0907d0d8a3e6..bee0c3698961 100644--- a/nodejs/src/cdp/schema/hogflow.ts+++ b/nodejs/src/cdp/schema/hogflow.ts@@ -296,9 +296,9 @@ export const HogFlowActionSchema = z.discriminatedUnion('type', [..._commonActionFields,type: z.literal('function_push'),config: z.object({- message_category_id: z.string().uuid().optional(),+ message_category_id: z.string().optional(),message_category_type: z.enum(['marketing', 'transactional']).optional(),- template_uuid: z.string().uuid().optional(),+ template_uuid: z.string().optional(),template_id: z.literal('template-native-push'),// When true, the stored asset keeps a placeholder instead of the notification's content, and the// run snapshot keeps no variables.