@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/projects.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/projects.d.ts
|
|
6
6
|
declare const listProjects: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -27,7 +27,7 @@ declare const listProjects: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
27
27
|
timezone: z.ZodOptional<z.ZodString>;
|
|
28
28
|
access_control: z.ZodOptional<z.ZodBoolean>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
30
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
31
31
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
32
32
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
33
33
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -57,7 +57,7 @@ declare const getProject: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
57
57
|
is_demo: z.ZodOptional<z.ZodBoolean>;
|
|
58
58
|
timezone: z.ZodOptional<z.ZodString>;
|
|
59
59
|
access_control: z.ZodOptional<z.ZodBoolean>;
|
|
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>;
|
|
@@ -97,7 +97,7 @@ declare const createProject: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
97
97
|
is_demo: z.ZodOptional<z.ZodBoolean>;
|
|
98
98
|
timezone: z.ZodOptional<z.ZodString>;
|
|
99
99
|
access_control: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
100
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
101
101
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
102
102
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
103
103
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -137,7 +137,7 @@ declare const updateProject: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
137
137
|
is_demo: z.ZodOptional<z.ZodBoolean>;
|
|
138
138
|
timezone: z.ZodOptional<z.ZodString>;
|
|
139
139
|
access_control: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
140
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
141
141
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
142
142
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
143
143
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -154,7 +154,7 @@ declare const deleteProject: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
154
154
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
155
155
|
}, z.core.$strip>, z.ZodObject<{
|
|
156
156
|
success: z.ZodBoolean;
|
|
157
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
157
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
158
158
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
159
159
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
160
160
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -184,7 +184,7 @@ declare const rotateProjectApiKey: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
184
184
|
is_demo: z.ZodOptional<z.ZodBoolean>;
|
|
185
185
|
timezone: z.ZodOptional<z.ZodString>;
|
|
186
186
|
access_control: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
187
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
188
188
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
189
189
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
190
190
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -202,7 +202,7 @@ declare const getProjectActivity: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
202
202
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
203
203
|
}, z.core.$strip>, z.ZodObject<{
|
|
204
204
|
results: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
205
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
205
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
206
206
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
207
207
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
208
208
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -220,7 +220,7 @@ declare const getProjectIsGeneric: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
220
220
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
221
221
|
}, z.core.$strip>, z.ZodObject<{
|
|
222
222
|
is_generic_email_provider: z.ZodBoolean;
|
|
223
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
223
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
224
224
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
225
225
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
226
226
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -236,7 +236,7 @@ declare const getProjectIsGeneric: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
236
236
|
declare const addUserIntegration: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
237
237
|
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
238
238
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
239
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
239
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
240
240
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
241
241
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
242
242
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -265,7 +265,7 @@ declare const listProjectMembers: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
265
265
|
joined_at: z.ZodOptional<z.ZodString>;
|
|
266
266
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
267
267
|
}, z.core.$strip>>;
|
|
268
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
268
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
269
269
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
270
270
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
271
271
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -289,7 +289,7 @@ declare const addProjectMember: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
289
289
|
parent_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
290
290
|
joined_at: z.ZodOptional<z.ZodString>;
|
|
291
291
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
292
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
292
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
293
293
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
294
294
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
295
295
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -313,7 +313,7 @@ declare const updateProjectMember: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
313
313
|
parent_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
314
314
|
joined_at: z.ZodOptional<z.ZodString>;
|
|
315
315
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
316
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
316
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
317
317
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
318
318
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
319
319
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -331,7 +331,7 @@ declare const removeProjectMember: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
331
331
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
332
332
|
}, z.core.$strip>, z.ZodObject<{
|
|
333
333
|
success: z.ZodBoolean;
|
|
334
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
334
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
335
335
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
336
336
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
337
337
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
package/dist/projects.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPosthogManagementClient } from "./client.mjs";
|
|
2
2
|
import { paginatedResponseSchema, projectMemberSchema, projectSchema, 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/projects.ts
|
|
@@ -30,7 +30,7 @@ const writeShape = {
|
|
|
30
30
|
autocapture_opt_out: z.boolean().optional()
|
|
31
31
|
};
|
|
32
32
|
const listProjects = posthogOperation({
|
|
33
|
-
id: "
|
|
33
|
+
id: "posthog.projects-list",
|
|
34
34
|
name: "PostHog List Projects",
|
|
35
35
|
description: "List projects in an organization",
|
|
36
36
|
input: z.object({
|
|
@@ -51,7 +51,7 @@ const listProjects = posthogOperation({
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
const getProject = posthogOperation({
|
|
54
|
-
id: "
|
|
54
|
+
id: "posthog.projects-get",
|
|
55
55
|
name: "PostHog Get Project",
|
|
56
56
|
description: "Retrieve a project by id",
|
|
57
57
|
input: z.object(projectIdInput),
|
|
@@ -66,7 +66,7 @@ const getProject = posthogOperation({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
const createProject = posthogOperation({
|
|
69
|
-
id: "
|
|
69
|
+
id: "posthog.projects-create",
|
|
70
70
|
name: "PostHog Create Project",
|
|
71
71
|
description: "Create a new project in an organization",
|
|
72
72
|
input: z.object({
|
|
@@ -87,7 +87,7 @@ const createProject = posthogOperation({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
const updateProject = posthogOperation({
|
|
90
|
-
id: "
|
|
90
|
+
id: "posthog.projects-update",
|
|
91
91
|
name: "PostHog Update Project",
|
|
92
92
|
description: "Partial update to a project",
|
|
93
93
|
input: z.object({
|
|
@@ -108,7 +108,7 @@ const updateProject = posthogOperation({
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
const deleteProject = posthogOperation({
|
|
111
|
-
id: "
|
|
111
|
+
id: "posthog.projects-delete",
|
|
112
112
|
name: "PostHog Delete Project",
|
|
113
113
|
description: "Delete a project",
|
|
114
114
|
input: z.object(projectIdInput),
|
|
@@ -125,7 +125,7 @@ const deleteProject = posthogOperation({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
const rotateProjectApiKey = posthogOperation({
|
|
128
|
-
id: "
|
|
128
|
+
id: "posthog.projects-reset-token",
|
|
129
129
|
name: "PostHog Rotate Project API Key",
|
|
130
130
|
description: "Reset (rotate) the project API token",
|
|
131
131
|
input: z.object(projectIdInput),
|
|
@@ -141,7 +141,7 @@ const rotateProjectApiKey = posthogOperation({
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
const getProjectActivity = posthogOperation({
|
|
144
|
-
id: "
|
|
144
|
+
id: "posthog.projects-activity",
|
|
145
145
|
name: "PostHog Project Activity",
|
|
146
146
|
description: "Fetch the project-level activity feed",
|
|
147
147
|
input: z.object({
|
|
@@ -160,7 +160,7 @@ const getProjectActivity = posthogOperation({
|
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
162
|
const getProjectIsGeneric = posthogOperation({
|
|
163
|
-
id: "
|
|
163
|
+
id: "posthog.projects-is-generic-email-provider",
|
|
164
164
|
name: "PostHog Check Generic Email",
|
|
165
165
|
description: "Check if an email domain is a generic provider",
|
|
166
166
|
input: z.object({
|
|
@@ -179,7 +179,7 @@ const getProjectIsGeneric = posthogOperation({
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
const addUserIntegration = posthogOperation({
|
|
182
|
-
id: "
|
|
182
|
+
id: "posthog.projects-add-user-integration",
|
|
183
183
|
name: "PostHog Add Project User Integration",
|
|
184
184
|
description: "Attach arbitrary user-integration properties to a project",
|
|
185
185
|
input: z.object({
|
|
@@ -199,7 +199,7 @@ const addUserIntegration = posthogOperation({
|
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
201
|
const listProjectMembers = posthogOperation({
|
|
202
|
-
id: "
|
|
202
|
+
id: "posthog.project-members-list",
|
|
203
203
|
name: "PostHog List Project Members",
|
|
204
204
|
description: "List members of a project",
|
|
205
205
|
input: z.object({
|
|
@@ -222,7 +222,7 @@ const listProjectMembers = posthogOperation({
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
const addProjectMember = posthogOperation({
|
|
225
|
-
id: "
|
|
225
|
+
id: "posthog.project-members-add",
|
|
226
226
|
name: "PostHog Add Project Member",
|
|
227
227
|
description: "Add a user to a project with a given access level",
|
|
228
228
|
input: z.object({
|
|
@@ -246,7 +246,7 @@ const addProjectMember = posthogOperation({
|
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
248
|
const updateProjectMember = posthogOperation({
|
|
249
|
-
id: "
|
|
249
|
+
id: "posthog.project-members-update",
|
|
250
250
|
name: "PostHog Update Project Member",
|
|
251
251
|
description: "Update a project member's access level",
|
|
252
252
|
input: z.object({
|
|
@@ -266,7 +266,7 @@ const updateProjectMember = posthogOperation({
|
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
const removeProjectMember = posthogOperation({
|
|
269
|
-
id: "
|
|
269
|
+
id: "posthog.project-members-remove",
|
|
270
270
|
name: "PostHog Remove Project Member",
|
|
271
271
|
description: "Remove a user from a project",
|
|
272
272
|
input: z.object(memberIdInput),
|
package/dist/schemas.d.mts
CHANGED
|
@@ -192,12 +192,12 @@ declare const surveySchema: z.ZodObject<{
|
|
|
192
192
|
name: z.ZodOptional<z.ZodString>;
|
|
193
193
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
194
|
type: z.ZodOptional<z.ZodEnum<{
|
|
195
|
+
email: "email";
|
|
195
196
|
popover: "popover";
|
|
196
197
|
api: "api";
|
|
197
198
|
widget: "widget";
|
|
198
199
|
button: "button";
|
|
199
200
|
full_screen: "full_screen";
|
|
200
|
-
email: "email";
|
|
201
201
|
}>>;
|
|
202
202
|
questions: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
203
203
|
conditions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -215,9 +215,9 @@ declare const actionStepSchema: z.ZodObject<{
|
|
|
215
215
|
event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
216
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
217
|
url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
218
|
+
exact: "exact";
|
|
218
219
|
contains: "contains";
|
|
219
220
|
regex: "regex";
|
|
220
|
-
exact: "exact";
|
|
221
221
|
}>>>;
|
|
222
222
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
223
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -234,9 +234,9 @@ declare const actionSchema: z.ZodObject<{
|
|
|
234
234
|
event: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
235
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
236
236
|
url_matching: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
237
|
+
exact: "exact";
|
|
237
238
|
contains: "contains";
|
|
238
239
|
regex: "regex";
|
|
239
|
-
exact: "exact";
|
|
240
240
|
}>>>;
|
|
241
241
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
242
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -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/session-recordings.d.ts
|
|
6
6
|
declare const listSessionRecordings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
@@ -35,7 +35,7 @@ declare const listSessionRecordings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
35
35
|
is_identified: z.ZodOptional<z.ZodBoolean>;
|
|
36
36
|
}, z.core.$strip>>>;
|
|
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>;
|
|
@@ -70,7 +70,7 @@ declare const getSessionRecording: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
70
70
|
created_at: z.ZodOptional<z.ZodString>;
|
|
71
71
|
is_identified: z.ZodOptional<z.ZodBoolean>;
|
|
72
72
|
}, z.core.$strip>>>;
|
|
73
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
73
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
74
74
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
75
75
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
76
76
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -107,7 +107,7 @@ declare const updateSessionRecording: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
107
107
|
created_at: z.ZodOptional<z.ZodString>;
|
|
108
108
|
is_identified: z.ZodOptional<z.ZodBoolean>;
|
|
109
109
|
}, z.core.$strip>>>;
|
|
110
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
110
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
111
111
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
112
112
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
113
113
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -125,7 +125,7 @@ declare const deleteSessionRecording: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
125
125
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
126
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
127
127
|
success: z.ZodBoolean;
|
|
128
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
128
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
129
129
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
130
130
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
131
131
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -145,7 +145,7 @@ declare const getSessionRecordingSnapshots: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
145
145
|
}>>;
|
|
146
146
|
id: z.ZodString;
|
|
147
147
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
148
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
148
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
149
149
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
150
150
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
151
151
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -161,7 +161,7 @@ declare const getSessionRecordingSnapshots: _keystrokehq_core0.Operation<z.ZodOb
|
|
|
161
161
|
declare const getSessionRecordingProperties: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
162
162
|
id: z.ZodString;
|
|
163
163
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
164
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
164
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
165
165
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
166
166
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
167
167
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -193,7 +193,7 @@ declare const listPlaylists: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
193
193
|
created_at: z.ZodOptional<z.ZodString>;
|
|
194
194
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
195
195
|
}, z.core.$strip>>;
|
|
196
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
196
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
197
197
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
198
198
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
199
199
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -219,7 +219,7 @@ declare const getPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
219
219
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
220
220
|
created_at: z.ZodOptional<z.ZodString>;
|
|
221
221
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
222
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
222
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
223
223
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
224
224
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
225
225
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -248,7 +248,7 @@ declare const createPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
248
248
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
249
249
|
created_at: z.ZodOptional<z.ZodString>;
|
|
250
250
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
251
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
251
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
252
252
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
253
253
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
254
254
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -279,7 +279,7 @@ declare const updatePlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
279
279
|
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
280
280
|
created_at: z.ZodOptional<z.ZodString>;
|
|
281
281
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
282
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
282
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
283
283
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
284
284
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
285
285
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -297,7 +297,7 @@ declare const deletePlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
297
297
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
298
298
|
}, z.core.$strip>, z.ZodObject<{
|
|
299
299
|
success: z.ZodBoolean;
|
|
300
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
300
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
301
301
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
302
302
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
303
303
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -338,7 +338,7 @@ declare const listPlaylistRecordings: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
338
338
|
is_identified: z.ZodOptional<z.ZodBoolean>;
|
|
339
339
|
}, z.core.$strip>>>;
|
|
340
340
|
}, z.core.$strip>>;
|
|
341
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
341
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
342
342
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
343
343
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
344
344
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -355,7 +355,7 @@ declare const addRecordingToPlaylist: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
|
355
355
|
session_recording_id: z.ZodString;
|
|
356
356
|
playlistId: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
357
357
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
358
|
-
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
358
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
359
359
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
360
360
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
361
361
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -374,7 +374,7 @@ declare const removeRecordingFromPlaylist: _keystrokehq_core0.Operation<z.ZodObj
|
|
|
374
374
|
projectId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
375
375
|
}, z.core.$strip>, z.ZodObject<{
|
|
376
376
|
success: z.ZodBoolean;
|
|
377
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"
|
|
377
|
+
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"posthog", z.ZodObject<{
|
|
378
378
|
POSTHOG_PERSONAL_API_KEY: z.ZodString;
|
|
379
379
|
POSTHOG_PROJECT_API_KEY: z.ZodOptional<z.ZodString>;
|
|
380
380
|
POSTHOG_HOST: z.ZodDefault<z.ZodURL>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPosthogManagementClient } from "./client.mjs";
|
|
2
2
|
import { paginatedResponseSchema, projectIdInputShape, sessionRecordingPlaylistSchema, sessionRecordingSchema } 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/session-recordings.ts
|
|
@@ -17,7 +17,7 @@ const idInput = {
|
|
|
17
17
|
id: z.string().min(1)
|
|
18
18
|
};
|
|
19
19
|
const listSessionRecordings = posthogOperation({
|
|
20
|
-
id: "
|
|
20
|
+
id: "posthog.session-recordings-list",
|
|
21
21
|
name: "PostHog List Session Recordings",
|
|
22
22
|
description: "List session recordings, optionally filtered",
|
|
23
23
|
input: z.object({
|
|
@@ -48,7 +48,7 @@ const listSessionRecordings = posthogOperation({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const getSessionRecording = posthogOperation({
|
|
51
|
-
id: "
|
|
51
|
+
id: "posthog.session-recordings-get",
|
|
52
52
|
name: "PostHog Get Session Recording",
|
|
53
53
|
description: "Retrieve a session recording by id",
|
|
54
54
|
input: z.object(idInput),
|
|
@@ -63,7 +63,7 @@ const getSessionRecording = posthogOperation({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
const updateSessionRecording = posthogOperation({
|
|
66
|
-
id: "
|
|
66
|
+
id: "posthog.session-recordings-update",
|
|
67
67
|
name: "PostHog Update Session Recording",
|
|
68
68
|
description: "Mark a session recording as viewed or update summary metadata",
|
|
69
69
|
input: z.object({
|
|
@@ -87,7 +87,7 @@ const updateSessionRecording = posthogOperation({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
const deleteSessionRecording = posthogOperation({
|
|
90
|
-
id: "
|
|
90
|
+
id: "posthog.session-recordings-delete",
|
|
91
91
|
name: "PostHog Delete Session Recording",
|
|
92
92
|
description: "Delete a session recording",
|
|
93
93
|
input: z.object(idInput),
|
|
@@ -104,7 +104,7 @@ const deleteSessionRecording = posthogOperation({
|
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
const getSessionRecordingSnapshots = posthogOperation({
|
|
107
|
-
id: "
|
|
107
|
+
id: "posthog.session-recordings-snapshots",
|
|
108
108
|
name: "PostHog Session Recording Snapshots",
|
|
109
109
|
description: "Fetch rrweb snapshot urls for a session recording",
|
|
110
110
|
input: z.object({
|
|
@@ -123,7 +123,7 @@ const getSessionRecordingSnapshots = posthogOperation({
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
const getSessionRecordingProperties = posthogOperation({
|
|
126
|
-
id: "
|
|
126
|
+
id: "posthog.session-recordings-properties",
|
|
127
127
|
name: "PostHog Session Recording Properties",
|
|
128
128
|
description: "Fetch aggregated properties for a session recording",
|
|
129
129
|
input: z.object(idInput),
|
|
@@ -142,7 +142,7 @@ const playlistIdInput = {
|
|
|
142
142
|
playlistId: z.union([z.string(), z.number().int()])
|
|
143
143
|
};
|
|
144
144
|
const listPlaylists = posthogOperation({
|
|
145
|
-
id: "
|
|
145
|
+
id: "posthog.session-recording-playlists-list",
|
|
146
146
|
name: "PostHog List Replay Playlists",
|
|
147
147
|
description: "List session replay playlists",
|
|
148
148
|
input: z.object({
|
|
@@ -165,7 +165,7 @@ const listPlaylists = posthogOperation({
|
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
const getPlaylist = posthogOperation({
|
|
168
|
-
id: "
|
|
168
|
+
id: "posthog.session-recording-playlists-get",
|
|
169
169
|
name: "PostHog Get Replay Playlist",
|
|
170
170
|
description: "Retrieve a session replay playlist by id",
|
|
171
171
|
input: z.object(playlistIdInput),
|
|
@@ -180,7 +180,7 @@ const getPlaylist = posthogOperation({
|
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
const createPlaylist = posthogOperation({
|
|
183
|
-
id: "
|
|
183
|
+
id: "posthog.session-recording-playlists-create",
|
|
184
184
|
name: "PostHog Create Replay Playlist",
|
|
185
185
|
description: "Create a new session replay playlist",
|
|
186
186
|
input: z.object({
|
|
@@ -204,7 +204,7 @@ const createPlaylist = posthogOperation({
|
|
|
204
204
|
}
|
|
205
205
|
});
|
|
206
206
|
const updatePlaylist = posthogOperation({
|
|
207
|
-
id: "
|
|
207
|
+
id: "posthog.session-recording-playlists-update",
|
|
208
208
|
name: "PostHog Update Replay Playlist",
|
|
209
209
|
description: "Partial update to a session replay playlist",
|
|
210
210
|
input: z.object({
|
|
@@ -229,7 +229,7 @@ const updatePlaylist = posthogOperation({
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
const deletePlaylist = posthogOperation({
|
|
232
|
-
id: "
|
|
232
|
+
id: "posthog.session-recording-playlists-delete",
|
|
233
233
|
name: "PostHog Delete Replay Playlist",
|
|
234
234
|
description: "Delete a session replay playlist",
|
|
235
235
|
input: z.object(playlistIdInput),
|
|
@@ -246,7 +246,7 @@ const deletePlaylist = posthogOperation({
|
|
|
246
246
|
}
|
|
247
247
|
});
|
|
248
248
|
const listPlaylistRecordings = posthogOperation({
|
|
249
|
-
id: "
|
|
249
|
+
id: "posthog.session-recording-playlists-recordings-list",
|
|
250
250
|
name: "PostHog List Playlist Recordings",
|
|
251
251
|
description: "List recordings in a session replay playlist",
|
|
252
252
|
input: z.object({
|
|
@@ -265,7 +265,7 @@ const listPlaylistRecordings = posthogOperation({
|
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
const addRecordingToPlaylist = posthogOperation({
|
|
268
|
-
id: "
|
|
268
|
+
id: "posthog.session-recording-playlists-add-recording",
|
|
269
269
|
name: "PostHog Add Recording To Playlist",
|
|
270
270
|
description: "Add a recording to a session replay playlist",
|
|
271
271
|
input: z.object({
|
|
@@ -284,7 +284,7 @@ const addRecordingToPlaylist = posthogOperation({
|
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
const removeRecordingFromPlaylist = posthogOperation({
|
|
287
|
-
id: "
|
|
287
|
+
id: "posthog.session-recording-playlists-remove-recording",
|
|
288
288
|
name: "PostHog Remove Recording From Playlist",
|
|
289
289
|
description: "Remove a recording from a session replay playlist",
|
|
290
290
|
input: z.object({
|