@keystrokehq/posthog 0.0.7 → 0.0.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/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/_runtime/index.d.mts +1 -2
- package/dist/_runtime/index.mjs +1 -1
- package/dist/actions.d.mts +13 -13
- package/dist/actions.mjs +6 -6
- package/dist/annotations.d.mts +6 -6
- package/dist/annotations.mjs +6 -6
- package/dist/capture.d.mts +8 -8
- package/dist/capture.mjs +8 -8
- package/dist/client.d.mts +1 -2
- package/dist/client.mjs +1 -1
- package/dist/cohorts.d.mts +9 -9
- package/dist/cohorts.mjs +9 -9
- package/dist/connection.d.mts +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/dashboards.d.mts +17 -17
- package/dist/dashboards.mjs +17 -17
- package/dist/decide.d.mts +3 -3
- package/dist/decide.mjs +3 -3
- package/dist/events-management.d.mts +11 -11
- package/dist/events-management.mjs +11 -11
- package/dist/factory-C3ssyfSy.mjs +7 -0
- package/dist/feature-flags.d.mts +16 -16
- package/dist/feature-flags.mjs +16 -16
- package/dist/http-BYcjqxPi.mjs +84 -0
- package/dist/insights.d.mts +17 -17
- package/dist/insights.mjs +17 -17
- package/dist/{integration-Td6D39_E.d.mts → integration-BN7xcpga.d.mts} +15 -5
- package/dist/integration-D0HdrI0T.mjs +120 -0
- package/dist/organizations.d.mts +12 -12
- package/dist/organizations.mjs +12 -12
- package/dist/persons.d.mts +16 -16
- package/dist/persons.mjs +16 -16
- package/dist/projects.d.mts +14 -14
- package/dist/projects.mjs +14 -14
- package/dist/schemas.d.mts +3 -3
- package/dist/session-recordings.d.mts +15 -15
- package/dist/session-recordings.mjs +15 -15
- package/dist/surveys.d.mts +16 -16
- package/dist/surveys.mjs +10 -10
- package/dist/triggers.d.mts +5 -3
- package/dist/triggers.mjs +52 -3
- package/dist/webhook-management.d.mts +10 -10
- package/dist/webhook-management.mjs +7 -7
- package/package.json +4 -4
- package/dist/factory-DYDvHOGb.mjs +0 -8
- package/dist/integration-Doy2Dwli.mjs +0 -30
package/dist/dashboards.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/dashboards.d.ts
|
|
6
6
|
declare const listDashboards: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -25,7 +25,7 @@ declare const listDashboards: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
25
25
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
26
26
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
28
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
29
29
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
30
30
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
31
31
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -52,7 +52,7 @@ declare const getDashboard: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
52
52
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
53
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
54
54
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
55
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
56
56
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
57
57
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
58
58
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -84,7 +84,7 @@ declare const createDashboard: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
84
84
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
85
85
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
86
86
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
87
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
87
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
88
88
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
89
89
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
90
90
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -117,7 +117,7 @@ declare const updateDashboard: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
117
117
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
118
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
119
119
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
120
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
120
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
121
121
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
122
122
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
123
123
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -144,7 +144,7 @@ declare const deleteDashboard: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
144
144
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
145
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
146
146
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
147
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
147
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
148
148
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
149
149
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
150
150
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -164,7 +164,7 @@ declare const getDashboardSharing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
164
164
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
165
165
|
access_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
166
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
167
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
168
168
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
169
169
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
170
170
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -185,7 +185,7 @@ declare const updateDashboardSharing: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
185
185
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
186
186
|
access_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
187
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
188
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
189
189
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
190
190
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
191
191
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -215,7 +215,7 @@ declare const listDashboardCollaborators: _keystrokehq_core0.Operation<z.ZodObje
|
|
|
215
215
|
}>>;
|
|
216
216
|
added_at: z.ZodOptional<z.ZodString>;
|
|
217
217
|
}, z.core.$strip>>;
|
|
218
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
218
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
219
219
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
220
220
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
221
221
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -245,7 +245,7 @@ declare const addDashboardCollaborator: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
245
245
|
can_edit: "can_edit";
|
|
246
246
|
}>>;
|
|
247
247
|
added_at: z.ZodOptional<z.ZodString>;
|
|
248
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
248
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
249
249
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
250
250
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
251
251
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -264,7 +264,7 @@ declare const removeDashboardCollaborator: _keystrokehq_core0.Operation<z.ZodObj
|
|
|
264
264
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
265
265
|
}, z.core.$strip>, z.ZodObject<{
|
|
266
266
|
success: z.ZodBoolean;
|
|
267
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
267
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
268
268
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
269
269
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
270
270
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -295,7 +295,7 @@ declare const listDashboardTemplates: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
295
295
|
variables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
296
296
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
297
297
|
}, z.core.$strip>>;
|
|
298
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
298
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
299
299
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
300
300
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
301
301
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -320,7 +320,7 @@ declare const getDashboardTemplate: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
320
320
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
321
321
|
variables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
322
322
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
323
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
323
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
324
324
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
325
325
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
326
326
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -349,7 +349,7 @@ declare const createDashboardTemplate: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
349
349
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
350
350
|
variables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
351
351
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
352
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
353
353
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
354
354
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
355
355
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -380,7 +380,7 @@ declare const updateDashboardTemplate: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
380
380
|
tiles: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
381
381
|
variables: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
382
382
|
deleted: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
383
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
384
384
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
385
385
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
386
386
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -398,7 +398,7 @@ declare const deleteDashboardTemplate: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
398
398
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
399
399
|
}, z.core.$strip>, z.ZodObject<{
|
|
400
400
|
success: z.ZodBoolean;
|
|
401
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
401
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
402
402
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
403
403
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
404
404
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -417,7 +417,7 @@ declare const getDashboardActivity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
417
417
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
418
418
|
}, z.core.$strip>, z.ZodObject<{
|
|
419
419
|
results: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
420
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
420
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
421
421
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
422
422
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
423
423
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
package/dist/dashboards.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPosthogManagementClient } from "./client.mjs";
|
|
2
2
|
import { dashboardCollaboratorSchema, dashboardSchema, dashboardTemplateSchema, paginatedResponseSchema, projectIdInputShape, sharingConfigurationSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as posthogOperation } from "./factory-
|
|
3
|
+
import { t as posthogOperation } from "./factory-C3ssyfSy.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/dashboards.ts
|
|
@@ -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.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/decide.d.ts
|
|
6
6
|
/** Evaluate feature flags for a distinct_id (server-side). Maps Sim tool S8. */
|
|
@@ -17,7 +17,7 @@ declare const decideFeatureFlags: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
17
17
|
errorsWhileComputingFlags: z.ZodOptional<z.ZodBoolean>;
|
|
18
18
|
toolbarParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
19
|
sessionRecording: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
20
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
20
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
21
21
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
22
22
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
23
23
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -57,7 +57,7 @@ declare const decideFeatureFlagsLocal: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
57
57
|
}, z.core.$strip>>>;
|
|
58
58
|
group_type_mapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
59
|
cohorts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
60
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
60
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
61
61
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
62
62
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
63
63
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
package/dist/decide.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPosthogDecideClient, createPosthogManagementClient } from "./client.mjs";
|
|
2
2
|
import { decideResponseSchema, localEvaluationResponseSchema, propertiesBagSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as posthogOperation } from "./factory-
|
|
3
|
+
import { t as posthogOperation } from "./factory-C3ssyfSy.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/decide.ts
|
|
@@ -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({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
import * as _keystrokehq_core_credential_set0 from "@keystrokehq/core/credential-set";
|
|
3
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
4
4
|
|
|
5
5
|
//#region src/events-management.d.ts
|
|
6
6
|
declare const listEvents: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -35,7 +35,7 @@ declare const listEvents: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
35
35
|
elements: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
36
36
|
elements_chain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
}, z.core.$strip>>;
|
|
38
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
38
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
39
39
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
40
40
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
41
41
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -69,7 +69,7 @@ declare const getEvent: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
69
69
|
}, z.core.$strip>>>;
|
|
70
70
|
elements: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
71
71
|
elements_chain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
72
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
73
73
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
74
74
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
75
75
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -86,7 +86,7 @@ declare const getEventValues: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
86
86
|
key: z.ZodString;
|
|
87
87
|
value: z.ZodOptional<z.ZodString>;
|
|
88
88
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
89
|
-
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
89
|
+
}, z.core.$strip>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
90
90
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
91
91
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
92
92
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -118,7 +118,7 @@ declare const listEventDefinitions: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
118
118
|
verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
119
|
created_at: z.ZodOptional<z.ZodString>;
|
|
120
120
|
}, z.core.$strip>>;
|
|
121
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
121
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
122
122
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
123
123
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
124
124
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -143,7 +143,7 @@ declare const getEventDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
143
143
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
144
144
|
verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
145
|
created_at: z.ZodOptional<z.ZodString>;
|
|
146
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
146
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
147
147
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
148
148
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
149
149
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -172,7 +172,7 @@ declare const updateEventDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
172
172
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
173
173
|
verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
174
|
created_at: z.ZodOptional<z.ZodString>;
|
|
175
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
175
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
176
176
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
177
177
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
178
178
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -190,7 +190,7 @@ declare const deleteEventDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
190
190
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
191
191
|
}, z.core.$strip>, z.ZodObject<{
|
|
192
192
|
success: z.ZodBoolean;
|
|
193
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
193
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
194
194
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
195
195
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
196
196
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -224,7 +224,7 @@ declare const listPropertyDefinitions: _keystrokehq_core0.Operation<z.ZodObject<
|
|
|
224
224
|
verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
225
225
|
created_at: z.ZodOptional<z.ZodString>;
|
|
226
226
|
}, z.core.$strip>>;
|
|
227
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
227
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
228
228
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
229
229
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
230
230
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -249,7 +249,7 @@ declare const getPropertyDefinition: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
249
249
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
250
250
|
verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
251
|
created_at: z.ZodOptional<z.ZodString>;
|
|
252
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
252
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
253
253
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
254
254
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
255
255
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -277,7 +277,7 @@ declare const updatePropertyDefinition: _keystrokehq_core0.Operation<z.ZodObject
|
|
|
277
277
|
verified: z.ZodOptional<z.ZodBoolean>;
|
|
278
278
|
verified_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
279
279
|
created_at: z.ZodOptional<z.ZodString>;
|
|
280
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
280
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
281
281
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
282
282
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
283
283
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPosthogManagementClient } from "./client.mjs";
|
|
2
2
|
import { analyticsEventSchema, eventDefinitionSchema, paginatedResponseSchema, projectIdInputShape } from "./schemas.mjs";
|
|
3
|
-
import { t as posthogOperation } from "./factory-
|
|
3
|
+
import { t as posthogOperation } from "./factory-C3ssyfSy.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/events-management.ts
|
|
@@ -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({
|