@keystrokehq/posthog 0.0.6-rename-t1.0 → 0.0.8
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/dist/actions.mjs +5 -5
- package/dist/annotations.mjs +5 -5
- package/dist/capture.mjs +7 -7
- package/dist/cohorts.mjs +8 -8
- package/dist/dashboards.mjs +16 -16
- package/dist/decide.mjs +2 -2
- package/dist/events-management.mjs +10 -10
- package/dist/feature-flags.mjs +15 -15
- package/dist/insights.mjs +16 -16
- package/dist/organizations.mjs +11 -11
- package/dist/persons.mjs +15 -15
- package/dist/projects.mjs +13 -13
- package/dist/session-recordings.mjs +14 -14
- package/dist/surveys.mjs +9 -9
- package/dist/webhook-management.mjs +6 -6
- package/package.json +4 -4
package/dist/actions.mjs
CHANGED
|
@@ -25,7 +25,7 @@ const writeShape = {
|
|
|
25
25
|
deleted: z.boolean().optional()
|
|
26
26
|
};
|
|
27
27
|
const listActions = posthogOperation({
|
|
28
|
-
id: "
|
|
28
|
+
id: "posthog.actions-list",
|
|
29
29
|
name: "PostHog List Actions",
|
|
30
30
|
description: "List actions in a project",
|
|
31
31
|
input: z.object({
|
|
@@ -50,7 +50,7 @@ const listActions = posthogOperation({
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
const getAction = posthogOperation({
|
|
53
|
-
id: "
|
|
53
|
+
id: "posthog.actions-get",
|
|
54
54
|
name: "PostHog Get Action",
|
|
55
55
|
description: "Retrieve an action by id",
|
|
56
56
|
input: z.object(idInput),
|
|
@@ -65,7 +65,7 @@ const getAction = posthogOperation({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
const createAction = posthogOperation({
|
|
68
|
-
id: "
|
|
68
|
+
id: "posthog.actions-create",
|
|
69
69
|
name: "PostHog Create Action",
|
|
70
70
|
description: "Create a new action",
|
|
71
71
|
input: z.object({
|
|
@@ -87,7 +87,7 @@ const createAction = posthogOperation({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
const updateAction = posthogOperation({
|
|
90
|
-
id: "
|
|
90
|
+
id: "posthog.actions-update",
|
|
91
91
|
name: "PostHog Update Action",
|
|
92
92
|
description: "Partial update to an action",
|
|
93
93
|
input: z.object({
|
|
@@ -108,7 +108,7 @@ const updateAction = posthogOperation({
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
const deleteAction = posthogOperation({
|
|
111
|
-
id: "
|
|
111
|
+
id: "posthog.actions-delete",
|
|
112
112
|
name: "PostHog Delete Action",
|
|
113
113
|
description: "Soft-delete an action",
|
|
114
114
|
input: z.object(idInput),
|
package/dist/annotations.mjs
CHANGED
|
@@ -28,7 +28,7 @@ const writeShape = {
|
|
|
28
28
|
deleted: z.boolean().optional()
|
|
29
29
|
};
|
|
30
30
|
const listAnnotations = posthogOperation({
|
|
31
|
-
id: "
|
|
31
|
+
id: "posthog.annotations-list",
|
|
32
32
|
name: "PostHog List Annotations",
|
|
33
33
|
description: "List annotations in a project",
|
|
34
34
|
input: z.object({
|
|
@@ -61,7 +61,7 @@ const listAnnotations = posthogOperation({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
const getAnnotation = posthogOperation({
|
|
64
|
-
id: "
|
|
64
|
+
id: "posthog.annotations-get",
|
|
65
65
|
name: "PostHog Get Annotation",
|
|
66
66
|
description: "Retrieve an annotation by id",
|
|
67
67
|
input: z.object(idInput),
|
|
@@ -76,7 +76,7 @@ const getAnnotation = posthogOperation({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
const createAnnotation = posthogOperation({
|
|
79
|
-
id: "
|
|
79
|
+
id: "posthog.annotations-create",
|
|
80
80
|
name: "PostHog Create Annotation",
|
|
81
81
|
description: "Create a new annotation",
|
|
82
82
|
input: z.object({
|
|
@@ -99,7 +99,7 @@ const createAnnotation = posthogOperation({
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
const updateAnnotation = posthogOperation({
|
|
102
|
-
id: "
|
|
102
|
+
id: "posthog.annotations-update",
|
|
103
103
|
name: "PostHog Update Annotation",
|
|
104
104
|
description: "Partial update to an annotation",
|
|
105
105
|
input: z.object({
|
|
@@ -120,7 +120,7 @@ const updateAnnotation = posthogOperation({
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
const deleteAnnotation = posthogOperation({
|
|
123
|
-
id: "
|
|
123
|
+
id: "posthog.annotations-delete",
|
|
124
124
|
name: "PostHog Delete Annotation",
|
|
125
125
|
description: "Delete an annotation",
|
|
126
126
|
input: z.object(idInput),
|
package/dist/capture.mjs
CHANGED
|
@@ -25,7 +25,7 @@ const eventNameInput = {
|
|
|
25
25
|
* Maps Sim archive tool S1 (`posthog_capture_event`).
|
|
26
26
|
*/
|
|
27
27
|
const captureEvent = posthogOperation({
|
|
28
|
-
id: "
|
|
28
|
+
id: "posthog.capture-event",
|
|
29
29
|
name: "PostHog Capture Event",
|
|
30
30
|
description: "Capture a single analytics event via the PostHog /capture endpoint",
|
|
31
31
|
input: z.object(eventNameInput),
|
|
@@ -52,7 +52,7 @@ const captureEvent = posthogOperation({
|
|
|
52
52
|
* Maps Sim archive tool S2 (`posthog_capture_batch_events`).
|
|
53
53
|
*/
|
|
54
54
|
const captureBatch = posthogOperation({
|
|
55
|
-
id: "
|
|
55
|
+
id: "posthog.capture-batch-events",
|
|
56
56
|
name: "PostHog Capture Batch",
|
|
57
57
|
description: "Capture up to 100 analytics events via the PostHog /batch endpoint",
|
|
58
58
|
input: z.object({ events: z.array(z.object({
|
|
@@ -81,7 +81,7 @@ const captureBatch = posthogOperation({
|
|
|
81
81
|
* Maps Sim archive tool S3 (`posthog_identify_person`).
|
|
82
82
|
*/
|
|
83
83
|
const identifyPerson = posthogOperation({
|
|
84
|
-
id: "
|
|
84
|
+
id: "posthog.identify-person",
|
|
85
85
|
name: "PostHog Identify Person",
|
|
86
86
|
description: "Associate a distinct_id with person properties via a $identify event",
|
|
87
87
|
input: z.object({
|
|
@@ -115,7 +115,7 @@ const identifyPerson = posthogOperation({
|
|
|
115
115
|
* Maps Sim archive tool S4 (`posthog_alias_person`).
|
|
116
116
|
*/
|
|
117
117
|
const aliasPerson = posthogOperation({
|
|
118
|
-
id: "
|
|
118
|
+
id: "posthog.alias-person",
|
|
119
119
|
name: "PostHog Alias Person",
|
|
120
120
|
description: "Merge one distinct_id into another via a $create_alias event",
|
|
121
121
|
input: z.object({
|
|
@@ -145,7 +145,7 @@ const aliasPerson = posthogOperation({
|
|
|
145
145
|
* Maps Sim archive tool S5 (`posthog_group_identify`).
|
|
146
146
|
*/
|
|
147
147
|
const groupIdentify = posthogOperation({
|
|
148
|
-
id: "
|
|
148
|
+
id: "posthog.group-identify",
|
|
149
149
|
name: "PostHog Group Identify",
|
|
150
150
|
description: "Attach properties to a group (organization, project, etc.) via $groupidentify",
|
|
151
151
|
input: z.object({
|
|
@@ -181,7 +181,7 @@ const groupIdentify = posthogOperation({
|
|
|
181
181
|
* Maps Sim archive tool S6 (`posthog_set_person_properties`).
|
|
182
182
|
*/
|
|
183
183
|
const setPersonProperties = posthogOperation({
|
|
184
|
-
id: "
|
|
184
|
+
id: "posthog.set-person-properties",
|
|
185
185
|
name: "PostHog Set Person Properties",
|
|
186
186
|
description: "Set (overwrite) properties on a person via a $set event",
|
|
187
187
|
input: z.object({
|
|
@@ -211,7 +211,7 @@ const setPersonProperties = posthogOperation({
|
|
|
211
211
|
* Maps Sim archive tool S7 (`posthog_set_person_properties_once`).
|
|
212
212
|
*/
|
|
213
213
|
const setPersonPropertiesOnce = posthogOperation({
|
|
214
|
-
id: "
|
|
214
|
+
id: "posthog.set-person-properties-once",
|
|
215
215
|
name: "PostHog Set Person Properties Once",
|
|
216
216
|
description: "Set properties on a person only if not already set ($set_once)",
|
|
217
217
|
input: z.object({
|
package/dist/cohorts.mjs
CHANGED
|
@@ -23,7 +23,7 @@ const writeShape = {
|
|
|
23
23
|
deleted: z.boolean().optional()
|
|
24
24
|
};
|
|
25
25
|
const listCohorts = posthogOperation({
|
|
26
|
-
id: "
|
|
26
|
+
id: "posthog.cohorts-list",
|
|
27
27
|
name: "PostHog List Cohorts",
|
|
28
28
|
description: "List cohorts in a project",
|
|
29
29
|
input: z.object({
|
|
@@ -48,7 +48,7 @@ const listCohorts = posthogOperation({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const getCohort = posthogOperation({
|
|
51
|
-
id: "
|
|
51
|
+
id: "posthog.cohorts-get",
|
|
52
52
|
name: "PostHog Get Cohort",
|
|
53
53
|
description: "Retrieve a cohort by id",
|
|
54
54
|
input: z.object(idInput),
|
|
@@ -63,7 +63,7 @@ const getCohort = posthogOperation({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
const createCohort = posthogOperation({
|
|
66
|
-
id: "
|
|
66
|
+
id: "posthog.cohorts-create",
|
|
67
67
|
name: "PostHog Create Cohort",
|
|
68
68
|
description: "Create a new cohort",
|
|
69
69
|
input: z.object({
|
|
@@ -85,7 +85,7 @@ const createCohort = posthogOperation({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
const updateCohort = posthogOperation({
|
|
88
|
-
id: "
|
|
88
|
+
id: "posthog.cohorts-update",
|
|
89
89
|
name: "PostHog Update Cohort",
|
|
90
90
|
description: "Partial update to a cohort",
|
|
91
91
|
input: z.object({
|
|
@@ -106,7 +106,7 @@ const updateCohort = posthogOperation({
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
const deleteCohort = posthogOperation({
|
|
109
|
-
id: "
|
|
109
|
+
id: "posthog.cohorts-delete",
|
|
110
110
|
name: "PostHog Delete Cohort",
|
|
111
111
|
description: "Soft-delete a cohort",
|
|
112
112
|
input: z.object(idInput),
|
|
@@ -123,7 +123,7 @@ const deleteCohort = posthogOperation({
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
const getCohortPersons = posthogOperation({
|
|
126
|
-
id: "
|
|
126
|
+
id: "posthog.cohorts-persons",
|
|
127
127
|
name: "PostHog List Cohort Persons",
|
|
128
128
|
description: "List persons in a cohort",
|
|
129
129
|
input: z.object({
|
|
@@ -146,7 +146,7 @@ const getCohortPersons = posthogOperation({
|
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
const getCohortActivity = posthogOperation({
|
|
149
|
-
id: "
|
|
149
|
+
id: "posthog.cohorts-activity",
|
|
150
150
|
name: "PostHog Cohort Activity",
|
|
151
151
|
description: "Fetch activity log for a cohort",
|
|
152
152
|
input: z.object({
|
|
@@ -165,7 +165,7 @@ const getCohortActivity = posthogOperation({
|
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
const duplicateCohortAsStatic = posthogOperation({
|
|
168
|
-
id: "
|
|
168
|
+
id: "posthog.cohorts-duplicate-as-static",
|
|
169
169
|
name: "PostHog Duplicate Cohort As Static",
|
|
170
170
|
description: "Duplicate a cohort as a static cohort",
|
|
171
171
|
input: z.object(idInput),
|
package/dist/dashboards.mjs
CHANGED
|
@@ -24,7 +24,7 @@ const writeShape = {
|
|
|
24
24
|
deleted: z.boolean().optional()
|
|
25
25
|
};
|
|
26
26
|
const listDashboards = posthogOperation({
|
|
27
|
-
id: "
|
|
27
|
+
id: "posthog.dashboards-list",
|
|
28
28
|
name: "PostHog List Dashboards",
|
|
29
29
|
description: "List dashboards in a project",
|
|
30
30
|
input: z.object({
|
|
@@ -51,7 +51,7 @@ const listDashboards = posthogOperation({
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
const getDashboard = posthogOperation({
|
|
54
|
-
id: "
|
|
54
|
+
id: "posthog.dashboards-get",
|
|
55
55
|
name: "PostHog Get Dashboard",
|
|
56
56
|
description: "Retrieve a dashboard by id",
|
|
57
57
|
input: z.object(idInput),
|
|
@@ -66,7 +66,7 @@ const getDashboard = posthogOperation({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
const createDashboard = posthogOperation({
|
|
69
|
-
id: "
|
|
69
|
+
id: "posthog.dashboards-create",
|
|
70
70
|
name: "PostHog Create Dashboard",
|
|
71
71
|
description: "Create a new dashboard",
|
|
72
72
|
input: z.object({
|
|
@@ -88,7 +88,7 @@ const createDashboard = posthogOperation({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
const updateDashboard = posthogOperation({
|
|
91
|
-
id: "
|
|
91
|
+
id: "posthog.dashboards-update",
|
|
92
92
|
name: "PostHog Update Dashboard",
|
|
93
93
|
description: "Partial update to a dashboard",
|
|
94
94
|
input: z.object({
|
|
@@ -109,7 +109,7 @@ const updateDashboard = posthogOperation({
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
const deleteDashboard = posthogOperation({
|
|
112
|
-
id: "
|
|
112
|
+
id: "posthog.dashboards-delete",
|
|
113
113
|
name: "PostHog Delete Dashboard",
|
|
114
114
|
description: "Soft-delete a dashboard",
|
|
115
115
|
input: z.object(idInput),
|
|
@@ -126,7 +126,7 @@ const deleteDashboard = posthogOperation({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
const getDashboardSharing = posthogOperation({
|
|
129
|
-
id: "
|
|
129
|
+
id: "posthog.dashboards-sharing-get",
|
|
130
130
|
name: "PostHog Get Dashboard Sharing",
|
|
131
131
|
description: "Fetch sharing configuration for a dashboard",
|
|
132
132
|
input: z.object(idInput),
|
|
@@ -141,7 +141,7 @@ const getDashboardSharing = posthogOperation({
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
const updateDashboardSharing = posthogOperation({
|
|
144
|
-
id: "
|
|
144
|
+
id: "posthog.dashboards-sharing-update",
|
|
145
145
|
name: "PostHog Update Dashboard Sharing",
|
|
146
146
|
description: "Enable or disable sharing for a dashboard",
|
|
147
147
|
input: z.object({
|
|
@@ -161,7 +161,7 @@ const updateDashboardSharing = posthogOperation({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
const listDashboardCollaborators = posthogOperation({
|
|
164
|
-
id: "
|
|
164
|
+
id: "posthog.dashboards-collaborators-list",
|
|
165
165
|
name: "PostHog List Dashboard Collaborators",
|
|
166
166
|
description: "List collaborators on a dashboard",
|
|
167
167
|
input: z.object(idInput),
|
|
@@ -176,7 +176,7 @@ const listDashboardCollaborators = posthogOperation({
|
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
const addDashboardCollaborator = posthogOperation({
|
|
179
|
-
id: "
|
|
179
|
+
id: "posthog.dashboards-collaborators-add",
|
|
180
180
|
name: "PostHog Add Dashboard Collaborator",
|
|
181
181
|
description: "Add a collaborator to a dashboard",
|
|
182
182
|
input: z.object({
|
|
@@ -200,7 +200,7 @@ const addDashboardCollaborator = posthogOperation({
|
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
const removeDashboardCollaborator = posthogOperation({
|
|
203
|
-
id: "
|
|
203
|
+
id: "posthog.dashboards-collaborators-remove",
|
|
204
204
|
name: "PostHog Remove Dashboard Collaborator",
|
|
205
205
|
description: "Remove a collaborator from a dashboard",
|
|
206
206
|
input: z.object({
|
|
@@ -220,7 +220,7 @@ const removeDashboardCollaborator = posthogOperation({
|
|
|
220
220
|
}
|
|
221
221
|
});
|
|
222
222
|
const listDashboardTemplates = posthogOperation({
|
|
223
|
-
id: "
|
|
223
|
+
id: "posthog.dashboard-templates-list",
|
|
224
224
|
name: "PostHog List Dashboard Templates",
|
|
225
225
|
description: "List dashboard templates available in a project",
|
|
226
226
|
input: z.object({
|
|
@@ -243,7 +243,7 @@ const listDashboardTemplates = posthogOperation({
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
const getDashboardTemplate = posthogOperation({
|
|
246
|
-
id: "
|
|
246
|
+
id: "posthog.dashboard-templates-get",
|
|
247
247
|
name: "PostHog Get Dashboard Template",
|
|
248
248
|
description: "Retrieve a dashboard template by id",
|
|
249
249
|
input: z.object({
|
|
@@ -261,7 +261,7 @@ const getDashboardTemplate = posthogOperation({
|
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
263
|
const createDashboardTemplate = posthogOperation({
|
|
264
|
-
id: "
|
|
264
|
+
id: "posthog.dashboard-templates-create",
|
|
265
265
|
name: "PostHog Create Dashboard Template",
|
|
266
266
|
description: "Create a dashboard template from a dashboard",
|
|
267
267
|
input: z.object({
|
|
@@ -286,7 +286,7 @@ const createDashboardTemplate = posthogOperation({
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
const updateDashboardTemplate = posthogOperation({
|
|
289
|
-
id: "
|
|
289
|
+
id: "posthog.dashboard-templates-update",
|
|
290
290
|
name: "PostHog Update Dashboard Template",
|
|
291
291
|
description: "Partial update to a dashboard template",
|
|
292
292
|
input: z.object({
|
|
@@ -313,7 +313,7 @@ const updateDashboardTemplate = posthogOperation({
|
|
|
313
313
|
}
|
|
314
314
|
});
|
|
315
315
|
const deleteDashboardTemplate = posthogOperation({
|
|
316
|
-
id: "
|
|
316
|
+
id: "posthog.dashboard-templates-delete",
|
|
317
317
|
name: "PostHog Delete Dashboard Template",
|
|
318
318
|
description: "Delete a dashboard template",
|
|
319
319
|
input: z.object({
|
|
@@ -333,7 +333,7 @@ const deleteDashboardTemplate = posthogOperation({
|
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
335
|
const getDashboardActivity = posthogOperation({
|
|
336
|
-
id: "
|
|
336
|
+
id: "posthog.dashboards-activity",
|
|
337
337
|
name: "PostHog Dashboard Activity",
|
|
338
338
|
description: "Fetch activity log for a dashboard",
|
|
339
339
|
input: z.object({
|
package/dist/decide.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import { z } from "zod";
|
|
|
20
20
|
*/
|
|
21
21
|
/** Evaluate feature flags for a distinct_id (server-side). Maps Sim tool S8. */
|
|
22
22
|
const decideFeatureFlags = posthogOperation({
|
|
23
|
-
id: "
|
|
23
|
+
id: "posthog.decide-feature-flags",
|
|
24
24
|
name: "PostHog Decide Feature Flags",
|
|
25
25
|
description: "Evaluate all feature flags for a distinct_id via the /decide endpoint",
|
|
26
26
|
input: z.object({
|
|
@@ -52,7 +52,7 @@ const decideFeatureFlags = posthogOperation({
|
|
|
52
52
|
* Maps Sim tool S9 and Composio slug `manage_project_feature_flags_for_local_evaluation`.
|
|
53
53
|
*/
|
|
54
54
|
const decideFeatureFlagsLocal = posthogOperation({
|
|
55
|
-
id: "
|
|
55
|
+
id: "posthog.decide-feature-flags-local",
|
|
56
56
|
name: "PostHog Local Evaluation Payload",
|
|
57
57
|
description: "Fetch the local-evaluation payload for all feature flags in a project",
|
|
58
58
|
input: z.object({
|
|
@@ -16,7 +16,7 @@ const eventDefIdInput = {
|
|
|
16
16
|
id: z.string().min(1)
|
|
17
17
|
};
|
|
18
18
|
const listEvents = posthogOperation({
|
|
19
|
-
id: "
|
|
19
|
+
id: "posthog.events-list",
|
|
20
20
|
name: "PostHog List Events",
|
|
21
21
|
description: "Query captured events",
|
|
22
22
|
input: z.object({
|
|
@@ -49,7 +49,7 @@ const listEvents = posthogOperation({
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
const getEvent = posthogOperation({
|
|
52
|
-
id: "
|
|
52
|
+
id: "posthog.events-get",
|
|
53
53
|
name: "PostHog Get Event",
|
|
54
54
|
description: "Retrieve a single event by id",
|
|
55
55
|
input: z.object({
|
|
@@ -67,7 +67,7 @@ const getEvent = posthogOperation({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
const getEventValues = posthogOperation({
|
|
70
|
-
id: "
|
|
70
|
+
id: "posthog.events-values",
|
|
71
71
|
name: "PostHog Event Property Values",
|
|
72
72
|
description: "Fetch distinct values for an event property",
|
|
73
73
|
input: z.object({
|
|
@@ -90,7 +90,7 @@ const getEventValues = posthogOperation({
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
const listEventDefinitions = posthogOperation({
|
|
93
|
-
id: "
|
|
93
|
+
id: "posthog.event-definitions-list",
|
|
94
94
|
name: "PostHog List Event Definitions",
|
|
95
95
|
description: "List event definitions (the schema for captured events)",
|
|
96
96
|
input: z.object({
|
|
@@ -115,7 +115,7 @@ const listEventDefinitions = posthogOperation({
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
const getEventDefinition = posthogOperation({
|
|
118
|
-
id: "
|
|
118
|
+
id: "posthog.event-definitions-get",
|
|
119
119
|
name: "PostHog Get Event Definition",
|
|
120
120
|
description: "Retrieve an event definition by id",
|
|
121
121
|
input: z.object(eventDefIdInput),
|
|
@@ -130,7 +130,7 @@ const getEventDefinition = posthogOperation({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
const updateEventDefinition = posthogOperation({
|
|
133
|
-
id: "
|
|
133
|
+
id: "posthog.event-definitions-update",
|
|
134
134
|
name: "PostHog Update Event Definition",
|
|
135
135
|
description: "Update description, owner, tags, or verified status on an event definition",
|
|
136
136
|
input: z.object({
|
|
@@ -154,7 +154,7 @@ const updateEventDefinition = posthogOperation({
|
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
const deleteEventDefinition = posthogOperation({
|
|
157
|
-
id: "
|
|
157
|
+
id: "posthog.event-definitions-delete",
|
|
158
158
|
name: "PostHog Delete Event Definition",
|
|
159
159
|
description: "Delete an event definition",
|
|
160
160
|
input: z.object(eventDefIdInput),
|
|
@@ -171,7 +171,7 @@ const deleteEventDefinition = posthogOperation({
|
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
173
|
const listPropertyDefinitions = posthogOperation({
|
|
174
|
-
id: "
|
|
174
|
+
id: "posthog.property-definitions-list",
|
|
175
175
|
name: "PostHog List Property Definitions",
|
|
176
176
|
description: "List property definitions",
|
|
177
177
|
input: z.object({
|
|
@@ -200,7 +200,7 @@ const listPropertyDefinitions = posthogOperation({
|
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
const getPropertyDefinition = posthogOperation({
|
|
203
|
-
id: "
|
|
203
|
+
id: "posthog.property-definitions-get",
|
|
204
204
|
name: "PostHog Get Property Definition",
|
|
205
205
|
description: "Retrieve a property definition by id",
|
|
206
206
|
input: z.object(eventDefIdInput),
|
|
@@ -215,7 +215,7 @@ const getPropertyDefinition = posthogOperation({
|
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
const updatePropertyDefinition = posthogOperation({
|
|
218
|
-
id: "
|
|
218
|
+
id: "posthog.property-definitions-update",
|
|
219
219
|
name: "PostHog Update Property Definition",
|
|
220
220
|
description: "Update description, owner, tags, or verified status on a property definition",
|
|
221
221
|
input: z.object({
|
package/dist/feature-flags.mjs
CHANGED
|
@@ -37,7 +37,7 @@ const listInput = z.object({
|
|
|
37
37
|
});
|
|
38
38
|
const listOutput = paginatedResponseSchema(featureFlagSchema);
|
|
39
39
|
const listFeatureFlags = posthogOperation({
|
|
40
|
-
id: "
|
|
40
|
+
id: "posthog.feature-flags-list",
|
|
41
41
|
name: "PostHog List Feature Flags",
|
|
42
42
|
description: "List feature flags for a project",
|
|
43
43
|
input: listInput,
|
|
@@ -60,7 +60,7 @@ const listFeatureFlags = posthogOperation({
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
const getFeatureFlag = posthogOperation({
|
|
63
|
-
id: "
|
|
63
|
+
id: "posthog.feature-flags-get",
|
|
64
64
|
name: "PostHog Get Feature Flag",
|
|
65
65
|
description: "Retrieve a feature flag by numeric id",
|
|
66
66
|
input: z.object(idInput),
|
|
@@ -75,7 +75,7 @@ const getFeatureFlag = posthogOperation({
|
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
const createFeatureFlag = posthogOperation({
|
|
78
|
-
id: "
|
|
78
|
+
id: "posthog.feature-flags-create",
|
|
79
79
|
name: "PostHog Create Feature Flag",
|
|
80
80
|
description: "Create a new feature flag",
|
|
81
81
|
input: z.object({
|
|
@@ -96,7 +96,7 @@ const createFeatureFlag = posthogOperation({
|
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
const updateFeatureFlag = posthogOperation({
|
|
99
|
-
id: "
|
|
99
|
+
id: "posthog.feature-flags-update",
|
|
100
100
|
name: "PostHog Update Feature Flag",
|
|
101
101
|
description: "Partially update a feature flag",
|
|
102
102
|
input: z.object({
|
|
@@ -124,7 +124,7 @@ const updateFeatureFlag = posthogOperation({
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
const deleteFeatureFlag = posthogOperation({
|
|
127
|
-
id: "
|
|
127
|
+
id: "posthog.feature-flags-delete",
|
|
128
128
|
name: "PostHog Delete Feature Flag",
|
|
129
129
|
description: "Soft-delete a feature flag",
|
|
130
130
|
input: z.object(idInput),
|
|
@@ -141,7 +141,7 @@ const deleteFeatureFlag = posthogOperation({
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
const enableFeatureFlag = posthogOperation({
|
|
144
|
-
id: "
|
|
144
|
+
id: "posthog.feature-flags-enable",
|
|
145
145
|
name: "PostHog Enable Feature Flag",
|
|
146
146
|
description: "Activate a feature flag",
|
|
147
147
|
input: z.object(idInput),
|
|
@@ -158,7 +158,7 @@ const enableFeatureFlag = posthogOperation({
|
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
160
|
const disableFeatureFlag = posthogOperation({
|
|
161
|
-
id: "
|
|
161
|
+
id: "posthog.feature-flags-disable",
|
|
162
162
|
name: "PostHog Disable Feature Flag",
|
|
163
163
|
description: "Deactivate a feature flag",
|
|
164
164
|
input: z.object(idInput),
|
|
@@ -175,7 +175,7 @@ const disableFeatureFlag = posthogOperation({
|
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
const getFeatureFlagActivity = posthogOperation({
|
|
178
|
-
id: "
|
|
178
|
+
id: "posthog.feature-flags-activity",
|
|
179
179
|
name: "PostHog Feature Flag Activity",
|
|
180
180
|
description: "Fetch activity log for a feature flag",
|
|
181
181
|
input: z.object({
|
|
@@ -194,7 +194,7 @@ const getFeatureFlagActivity = posthogOperation({
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
const getMyFeatureFlags = posthogOperation({
|
|
197
|
-
id: "
|
|
197
|
+
id: "posthog.feature-flags-my-flags",
|
|
198
198
|
name: "PostHog My Feature Flags",
|
|
199
199
|
description: "Fetch the feature flags evaluated for the calling user",
|
|
200
200
|
input: z.object(projectIdInputShape),
|
|
@@ -209,7 +209,7 @@ const getMyFeatureFlags = posthogOperation({
|
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
211
|
const getFeatureFlagRoleAccess = posthogOperation({
|
|
212
|
-
id: "
|
|
212
|
+
id: "posthog.feature-flags-role-access-list",
|
|
213
213
|
name: "PostHog List Feature Flag Role Access",
|
|
214
214
|
description: "List role access rules for a feature flag",
|
|
215
215
|
input: z.object(idInput),
|
|
@@ -224,7 +224,7 @@ const getFeatureFlagRoleAccess = posthogOperation({
|
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
const createFeatureFlagRoleAccess = posthogOperation({
|
|
227
|
-
id: "
|
|
227
|
+
id: "posthog.feature-flags-role-access-create",
|
|
228
228
|
name: "PostHog Create Feature Flag Role Access",
|
|
229
229
|
description: "Grant a role access to a feature flag",
|
|
230
230
|
input: z.object({
|
|
@@ -244,7 +244,7 @@ const createFeatureFlagRoleAccess = posthogOperation({
|
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
const deleteFeatureFlagRoleAccess = posthogOperation({
|
|
247
|
-
id: "
|
|
247
|
+
id: "posthog.feature-flags-role-access-delete",
|
|
248
248
|
name: "PostHog Delete Feature Flag Role Access",
|
|
249
249
|
description: "Revoke a role access rule for a feature flag",
|
|
250
250
|
input: z.object({
|
|
@@ -264,7 +264,7 @@ const deleteFeatureFlagRoleAccess = posthogOperation({
|
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
const getFeatureFlagDashboards = posthogOperation({
|
|
267
|
-
id: "
|
|
267
|
+
id: "posthog.feature-flags-dashboards",
|
|
268
268
|
name: "PostHog Feature Flag Dashboards",
|
|
269
269
|
description: "Fetch dashboards linked to a feature flag",
|
|
270
270
|
input: z.object(idInput),
|
|
@@ -279,7 +279,7 @@ const getFeatureFlagDashboards = posthogOperation({
|
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
281
|
const getFeatureFlagRemoteConfig = posthogOperation({
|
|
282
|
-
id: "
|
|
282
|
+
id: "posthog.feature-flags-remote-config",
|
|
283
283
|
name: "PostHog Feature Flag Remote Config",
|
|
284
284
|
description: "Fetch the remote-config payload for a feature flag",
|
|
285
285
|
input: z.object({
|
|
@@ -298,7 +298,7 @@ const getFeatureFlagRemoteConfig = posthogOperation({
|
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
const getFeatureFlagStatus = posthogOperation({
|
|
301
|
-
id: "
|
|
301
|
+
id: "posthog.feature-flags-status",
|
|
302
302
|
name: "PostHog Feature Flag Status",
|
|
303
303
|
description: "Fetch computed status summary for a feature flag",
|
|
304
304
|
input: z.object(idInput),
|